@milaboratories/milaboratories.monetization-test.ui 1.1.37 → 1.1.39

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.
@@ -664,7 +664,7 @@ If you are trying to annotate ${s} with application data, use the '${s}.context'
664
664
  <div data-ref="eMenuContainer" class="ag-chart-docked-container"></div>
665
665
  </div>
666
666
  </div>
667
- `),this.eChart=fe,this.eWrapper=fe,this.eChartContainer=fe,this.eMenuContainer=fe,this.eEmpty=fe,this.params=e}wireBeans(e){this.crossFilterService=e.chartCrossFilterSvc,this.chartTranslation=e.chartTranslation,this.chartMenuSvc=e.chartMenuSvc,this.focusSvc=e.focusSvc,this.popupSvc=e.popupSvc,this.enterpriseChartProxyFactory=e.enterpriseChartProxyFactory,this.environment=e.environment}postConstruct(){const e={...this.params,chartType:SS(this.params.chartType),chartThemeName:this.getThemeName()},t=this.gos.get("enableRtl");this.eWrapper.classList.add(t?"ag-rtl":"ag-ltr");const r=this.createBean(new y2e(e));this.chartController=this.createManagedBean(new nFe(r)),this.chartOptionsService=this.createManagedBean(new hRe(this.chartController)),this.validateCustomThemes(),this.createChart(),this.params.insideDialog?this.addDialog():(this.addManagedEventListeners({gridStylesChanged:this.updateTheme.bind(this)}),this.updateTheme()),this.addMenu(),this.addManagedElementListeners(this.getGui(),{focusin:this.setActiveChartCellRange.bind(this)}),this.addManagedListeners(this.chartController,{chartModelUpdate:this.update.bind(this)}),this.addManagedPropertyListeners(["chartThemeOverrides","chartThemes"],this.reactivePropertyUpdate.bind(this)),this.update(),this.raiseChartCreatedEvent()}updateTheme(){this.environment.applyThemeClasses(this.getGui())}createChart(){let e;this.chartProxy&&(e=this.chartProxy.destroy({keepChartInstance:!0}));const t=(n,i)=>{const o=this.params.crossFilteringContext;o.lastSelectedChartId=i?"":this.chartController.getChartId(),i&&this.params.crossFilteringResetCallback(),this.crossFilterService.filter(n,i)},r=this.chartController.getChartType(),s={agChartsExports:this.beans.agChartsExports,chartType:r,chartInstance:e,getChartThemeName:this.getChartThemeName.bind(this),getChartThemes:this.getChartThemes.bind(this),customChartThemes:this.gos.get("customChartThemes"),getGridOptionsChartThemeOverrides:()=>this.getGridOptionsChartThemeOverrides(),getExtraPaddingDirections:()=>{var n;return((n=this.chartMenu)==null?void 0:n.getExtraPaddingDirections())??[]},apiChartThemeOverrides:this.params.chartThemeOverrides,crossFiltering:this.params.crossFiltering??!1,crossFilterCallback:t,parentElement:this.eChart,grouping:this.chartController.isGrouping(),chartThemeToRestore:this.params.chartThemeName,chartOptionsToRestore:this.params.chartOptionsToRestore,chartPaletteToRestore:this.params.chartPaletteToRestore,seriesChartTypes:this.chartController.getSeriesChartTypes(),translate:n=>this.chartTranslation.translate(n)};if(this.params.chartOptionsToRestore=void 0,this.chartType=r,this.chartProxy=this.createChartProxy(s),!this.chartProxy){Ce(138,{chartType:s.chartType});return}this.chartController.setChartProxy(this.chartProxy),this.createMenuContext()}createMenuContext(){if(this.chartMenuContext)return;const e=this.createManagedBean(new Ev(this.chartOptionsService.getChartThemeOverridesProxy())),t=this.createManagedBean(new Ev(this.chartOptionsService.getAxisThemeOverridesProxy()));this.chartMenuContext={chartController:this.chartController,chartOptionsService:this.chartOptionsService,chartMenuParamsFactory:e,chartAxisMenuParamsFactory:t}}getChartThemeName(){return this.chartController.getChartThemeName()}getChartThemes(){return this.chartController.getThemeNames()}getGridOptionsChartThemeOverrides(){return this.gos.get("chartThemeOverrides")}createChartProxy(e){var s;const{chartType:t}=e;switch(t){case"column":case"bar":case"groupedColumn":case"stackedColumn":case"normalizedColumn":case"groupedBar":case"stackedBar":case"normalizedBar":return new aFe(e);case"pie":case"donut":case"doughnut":return new hFe(e);case"area":case"stackedArea":case"normalizedArea":return new iFe(e);case"line":case"stackedLine":case"normalizedLine":return new lFe(e);case"scatter":case"bubble":return new cFe(e);case"columnLineCombo":case"areaColumnCombo":case"customCombo":return new uFe(e)}const r=(s=this.enterpriseChartProxyFactory)==null?void 0:s.createChartProxy(e);if(!r)throw Kc(251,{chartType:t});return r}addDialog(){const e=this.chartTranslation.translate(this.params.pivotChart?"pivotChartTitle":"rangeChartTitle"),{width:t,height:r}=this.getBestDialogSize(),s=this.params.focusDialogOnOpen?()=>setTimeout(()=>wi(this.getGui())):void 0;this.chartDialog=new Ux({resizable:!0,movable:!0,maximizable:!0,title:e,width:t,height:r,component:this,centered:!0,closable:!0,afterGuiAttached:s,postProcessPopupParams:{type:"chart"}}),this.createBean(this.chartDialog),this.chartDialog.addEventListener("destroyed",()=>{this.destroy(),this.chartMenuSvc.hideAdvancedSettings();const n=this.focusSvc.getFocusedCell();setTimeout(()=>{this.focusSvc.isAlive()&&(n?this.focusSvc.setFocusedCell({...n,forceBrowserFocus:!0}):Nj(this.beans))})})}getBestDialogSize(){const e=this.popupSvc.getPopupParent(),t=mv(e)*.75,r=KR(e)*.75,s=.553,n=this.chartProxy.getChart();let i=this.params.insideDialog?850:n.width,o=this.params.insideDialog?470:n.height;return(i>t||o>r)&&(i=Math.min(i,t),o=Math.round(i*s),o>r&&(o=r,i=Math.min(i,Math.round(o/s)))),{width:i,height:o}}addMenu(){this.params.crossFiltering||(this.chartMenu=this.createBean(new cRe(this.eChartContainer,this.eMenuContainer,this.chartMenuContext)),this.eChartContainer.appendChild(this.chartMenu.getGui()))}update(e){if(e!=null&&e.chartId&&!this.chartController.update(e))return;const t=this.chartTypeChanged(e),r=t||this.chartEmpty?(n=>{const i=this.chartType,o=n,a=this.chartProxy.getChart(),l=a==null?void 0:a.getOptions(),c=a==null?void 0:a.axes;return this.chartOptionsService.getPersistedChartThemeOverrides(l,c,i,o??i)})(t):void 0;t&&this.createChart(),r&&(e!=null&&e.chartThemeOverrides)&&Kn(r,e.chartThemeOverrides);const s=r??(e==null?void 0:e.chartThemeOverrides);this.updateChart(s),e!=null&&e.chartId&&this.chartProxy.getChart().waitForUpdate().then(()=>{this.chartController.raiseChartApiUpdateEvent()})}updateChart(e){const{chartProxy:t}=this,r=this.chartController.getSelectedValueColState(),s=this.chartController.getChartData(),n=this.handleEmptyChart(s,r.length);if(this.chartEmpty=n,n){e&&this.chartController.updateThemeOverrides(e);return}const i=this.chartController.getChartUpdateParams(e);t.update(i),this.chartProxy.getChart().waitForUpdate().then(()=>{this.chartController.raiseChartUpdatedEvent()})}chartTypeChanged(e){const[t,r]=[this.chartController.getChartType(),e==null?void 0:e.chartType],s=r?SS(r):void 0;return this.chartType!==t?s??t:s&&t!==s?s:null}getChartModel(){return this.chartController.getChartModel()}getChartImageDataURL(e){return this.chartProxy.getChartImageDataURL(e)}handleEmptyChart(e,t){const r=this.chartController.isPivotChart()&&!this.chartController.isPivotMode(),s=this.chartController.getChartType();let n=1;this.chartController.isActiveXYChart()?n=s==="bubble"?3:2:Zm(ln(s))&&(n=0);const i=t<n||e.length===0;if(this.eChart){const o=r||i;vt(this.eChart,!o),vt(this.eEmpty,o)}return r?(this.eEmpty.innerText=this.chartTranslation.translate("pivotChartRequiresPivotMode"),!0):i?(this.eEmpty.innerText=this.chartTranslation.translate("noDataToChart"),!0):!1}downloadChart(e,t,r){this.chartProxy.downloadChart(e,t,r)}openChartToolPanel(e){const t=e&&C2[e];this.chartMenu.showMenu({panel:t})}closeChartToolPanel(){this.chartMenu.hideMenu()}getChartId(){return this.chartController.getChartId()}getUnderlyingChart(){return this.chartProxy.getChartRef()}crossFilteringReset(){this.chartProxy.crossFilteringReset()}setActiveChartCellRange(e){this.getGui().contains(e.relatedTarget)||this.chartController.setChartRange(!0)}getThemeName(){const e=this.gos.get("chartThemes")||QZ;if(e.length===0)throw new Error(Kc(254));const{chartThemeName:t}=this.params;return e.includes(t)?t:e[0]}getAllKeysInObjects(e){const t={};return e.filter(r=>r!=null).forEach(r=>{Object.keys(r).forEach(s=>t[s]=null)}),Object.keys(t)}validateCustomThemes(){const e=this.getChartThemes(),t=this.gos.get("customChartThemes");t&&this.getAllKeysInObjects([t]).forEach(r=>{e.includes(r)||Ce(139,{customThemeName:r})})}reactivePropertyUpdate(){this.chartController.setChartThemeName(this.getThemeName(),!0);const e=this.getChartId(),t=this.chartController.isCrossFilterChart()?"crossFilter":this.getChartModel().modelType,r=this.gos.get("chartThemeOverrides")||{};this.update({type:`${t}ChartUpdate`,chartId:e,chartThemeOverrides:r})}raiseChartCreatedEvent(){this.chartProxy.getChart().waitForUpdate().then(()=>{this.eventSvc.dispatchEvent({type:"chartCreated",chartId:this.chartController.getChartId()})})}raiseChartDestroyedEvent(){this.eventSvc.dispatchEvent({type:"chartDestroyed",chartId:this.chartController.getChartId()})}destroy(){var t;super.destroy(),this.chartProxy&&this.chartProxy.destroy(),this.destroyBean(this.chartMenu),this.chartDialog&&this.chartDialog.isAlive()&&this.destroyBean(this.chartDialog),(t=this.onDestroyColorSchemeChangeListener)==null||t.call(this);const e=this.getGui();$r(e),Dn(e),this.raiseChartDestroyedEvent()}};function fRe(e){return e.version,e.version==null&&(e.version=DRe(e)),e=Ro("23.0.0",e,ARe),e=Ro("24.0.0",e,mRe),e=Ro("25.1.0",e,vRe),e=Ro("26.0.0",e,CRe),e=Ro("26.1.0",e,wRe),e=Ro("26.2.0",e,yRe),e=Ro("28.0.0",e,bRe),e=Ro("28.2.0",e,SRe),e=Ro("29.0.0",e,xRe),e=Ro("29.1.0",e,BX),e=Ro("29.2.0",e,LX),e=Ro("30.0.0",e,ERe),e=Ro("31.0.0",e,PRe),e=Ro("32.0.0",e,FRe),e=Ro("33.0.0",e,RRe),e=TRe(e),e=Ro(Rr,e,t=>t),e}function ARe(e){return e=to("chartOptions.legend.item.marker.type","shape",e),e=to("chartOptions.seriesDefaults.marker.type","shape",e),e=to("chartOptions.legend.padding","spacing",e),e}function mRe(e){e=js("chartOptions.seriesDefaults.marker.minSize",e);const{chartType:t,chartPalette:r,chartOptions:{xAxis:s,yAxis:n,...i},...o}=e,a=$Pe(t),l=a==null?void 0:a.map((u,d)=>({type:u,...d===0?s:n}));return{chartType:t,chartThemeName:{borneo:"ag-default",material:"ag-material",bright:"ag-vivid"}[r]??"ag-default",chartOptions:{...i,axes:l,xAxis:s,yAxis:n},...o}}function vRe(e){return e=to("chartOptions.seriesDefaults.label.minRequiredAngle","minAngle",e),e}function CRe(e){return e=sg("chartOptions.seriesDefaults.highlightStyle",e,({dimOpacity:r,...s})=>({...s,...r!=null?{series:{dimOpacity:r}}:{}})),e=js("chart",e),e=js("chartOptions.seriesDefaults.tooltipClass",e),e=js("chartOptions.seriesDefaults.tooltipTracking",e),e=FG("chartOptions.axes[].label.rotation",0,e),e=FG("chartOptions.axes[].label.rotation",335,e),e}function wRe(e){const t=({item:r,series:s,...n})=>({item:{...n,...r},...s?{series:s}:{}});return e=sg("chartOptions.seriesDefaults.highlightStyle",e,t),e=sg("chartOptions.series[].highlightStyle",e,t),e}function yRe(e){e=w2("chartOptions.seriesDefaults.fill.opacity","chartOptions.seriesDefaults.fillOpacity",e),e=w2("chartOptions.seriesDefaults.stroke.opacity","chartOptions.seriesDefaults.strokeOpacity",e),e=w2("chartOptions.seriesDefaults.stroke.width","chartOptions.seriesDefaults.strokeWidth",e),e=js("chartOptions.seriesDefaults.fill",e),e=js("chartOptions.seriesDefaults.stroke",e),e=js("chartOptions.seriesDefaults.callout.colors",e),e=js("chartOptions.xAxis",e),e=js("chartOptions.yAxis",e);const{chartType:t,chartOptions:{axes:r,series:s,seriesDefaults:n,...i},...o}=e,a=SS(t),l=ln(a),c=[l],u={};if(!DZ(l)){const g={top:{},bottom:{},left:{},right:{}},A=r.map(({type:w,...v})=>({[w]:{...g,...v}})).reduce(TG,{});IZ.filter(w=>A[w]==null).forEach(w=>{A[w]={...g}}),u.axes=A}const d=c.map(g=>({[g]:{...u,series:n,...i}})).reduce(TG,{});return e={...o,chartType:a,chartOptions:d},e}function bRe(e){return e=js("chartOptions.*.title.padding",e),e=js("chartOptions.*.subtitle.padding",e),e=js("chartOptions.*.axes.*.title.padding",e),e=c5("chartOptions.*.axes.*.title.enabled",!1,e),e}function SRe(e){return e=to("chartOptions.pie.series.callout","calloutLine",e),e=to("chartOptions.pie.series.label","calloutLabel",e),e=to("chartOptions.pie.series.labelKey","sectorLabelKey",e),e=to("chartOptions.pie.series.labelName","sectorLabelName",e),e=to("chartOptions.donut.series.callout","calloutLine",e),e=to("chartOptions.donut.series.label","calloutLabel",e),e=to("chartOptions.donut.series.labelKey","sectorLabelKey",e),e=to("chartOptions.donut.series.labelName","sectorLabelName",e),e}function xRe(e){return e=Mb("chartOptions.scatter.series.fill","chartOptions.scatter.series.marker.fill",e),e=Mb("chartOptions.scatter.series.fillOpacity","chartOptions.scatter.series.marker.fillOpacity",e),e=Mb("chartOptions.scatter.series.stroke","chartOptions.scatter.series.marker.stroke",e),e=Mb("chartOptions.scatter.series.strokeOpacity","chartOptions.scatter.series.marker.strokeOpacity",e),e=Mb("chartOptions.scatter.series.strokeWidth","chartOptions.scatter.series.marker.strokeWidth",e),e=w2("chartOptions.scatter.series.paired","chartOptions.scatter.paired",e),e}function BX(e){return e=js("chartOptions.axes[].tick.count",e),e}function LX(e){return e=sg("chartOptions.*.tooltip",e,({tracking:r,...s})=>{const n={...s};return r===!1?(n.position??(n.position={type:"pointer"}),n.range??(n.range="nearest")):r===!0&&(n.position??(n.position={type:"node"}),n.range??(n.range="nearest")),n}),e}function ERe(e){return e=to("chartOptions.pie.series.labelKey","sectorLabelKey",e),e=to("chartOptions.pie.series.labelName","sectorLabelName",e),e=BX(e),e=LX(e),e=js("chartOptions.*.series.flipXY",e),e=HX("chartOptions.common.legend.enabled",!0,e),e=c5("chartOptions.common.legend.position","right",e),e}function PRe(e){const t={"ag-pastel":"ag-sheets","ag-solar":"ag-polychroma"},r=to("chartOptions.column","bar",e),s=t[r.chartThemeName]||r.chartThemeName;return{...r,chartThemeName:s}}function FRe(e){return e=id("chartOptions.*.autoSize",!0,e,(t,r)=>{t[r]===!0||t[r]===!1&&(t.minHeight=600,t.minWidth=300),delete t[r]}),e}function RRe(e){return e=js("chartOptions.*.axes.category.label.format",e),e=js("chartOptions.*.axes.category.crosshair.label.format",e),e=js("chartOptions.*.axes.angle-category.label.format",e),e=js("chartOptions.*.axes.radius-category.label.format",e),e=to("chartOptions.*.axes.*.label.padding","spacing",e),e=to("chartOptions.*.navigator.miniChart.label.padding","spacing",e),e=js("chartOptions.*.axes.*.crossLines.label.className",e),e=id("chartOptions.*.axes.*.crossLines.label.position",!0,e,(t,r)=>{typeof t[r]=="string"&&(t[r]=t[r].replace(/([A-Z])/,"-$1").toLowerCase())}),e=js("chartOptions.bullet",e),e=RG("chartOptions.bar.series.label.placement",e,{inside:"inside-center",outside:"inside-end"}),e=RG("chartOptions.waterfall.series.item.*.label.placement",e,{inside:"inside-center",start:"outside-start",end:"outside-end"}),e=js("chartOptions.*.navigator.min",e),e=js("chartOptions.*.navigator.max",e),e=js("chartOptions.*.zoom.ratioX",e),e=js("chartOptions.*.zoom.ratioY",e),e=js("chartOptions.*.zoom.rangeX",e),e=js("chartOptions.*.zoom.rangeY",e),e}function TRe(e){return e=js("chartOptions.*.width",e),e=js("chartOptions.*.height",e),e=c5("chartOptions.*.axes.category.label.autoRotate",!0,e),e}function DRe(e){var c,u;const t=e;if(e.version!=null)return e.version;const r=(d,...g)=>Object.keys(d||{}).some(A=>g.includes(A)),s=t.chartOptions,n=r(s,"seriesDefaults")?s==null?void 0:s.seriesDefaults:s==null?void 0:s[Object.keys(s)[0]],i={"27.0.0":r(t,"seriesChartTypes"),"26.2.0":!r(s,"seriesDefaults"),"26.1.0":r(n==null?void 0:n.highlightStyle,"item"),"26.0.0":r(n==null?void 0:n.highlightStyle,"series"),"25.1.0":r(n==null?void 0:n.label,"minAngle"),"25.0.0":r(t,"modelType","aggFunc","unlinkChart","suppressChartRanges")||r(n,"lineDash","lineDashOffset"),"24.0.0":r(t,"chartThemeName","chart")||r(s,"series"),"23.2.0":r(s,"navigator"),"23.0.0":r((u=(c=s==null?void 0:s.legend)==null?void 0:c.item)==null?void 0:u.marker,"shape"),"22.1.0":r(t,"chartPalette","chartType")},o="27.1.0",a=Object.entries(i).filter(([d,g])=>g),[l=o]=a[0];return l}function Ro(e,t,r){if(PG(e)>PG(t.version)){const s=r(t);return s.version=e,s}return t}function MRe(e){const t=e.includes("-beta")?e.replace(/-beta.*/,""):e,r=typeof t=="string"?t.split(".").map(s=>Number(s)):[];if(r.length!==3||r.some(s=>isNaN(s)))throw new Error(Kc(253,{version:t}));return{major:r[0],minor:r[1],patch:r[2]}}function PG(e){const{major:t,minor:r,patch:s}=MRe(e);return t*1e4+r*100+s}function FG(e,t,r){return id(e,!0,r,(s,n)=>{s[n]===t&&delete s[n]})}function c5(e,t,r){return id(e,!1,r,(s,n)=>{s[n]==null&&(s[n]=t)})}function HX(e,t,r){typeof e=="string"&&(e=e.split("."));const s=e[0];return e.length>1&&(r[s]=HX(e.slice(1),t,r[s]??{})),Object.keys(r).includes(s)||(r[s]=t),r}function w2(e,t,r){let s,n=!1;return r=id(e,!0,r,(i,o)=>{n=!0,s=i[o],delete i[o]}),n?id(t,!1,r,(i,o)=>{i[o]=s}):r}function Mb(e,t,r){let s,n=!1;return r=id(e,!0,r,(i,o)=>{n=!0,s=i[o],delete i[o]}),n?id(t,!1,r,(i,o)=>{i[o]===void 0&&(i[o]=s)}):r}function to(e,t,r){return id(e,!0,r,(s,n)=>{s[t]=s[n],delete s[n]})}function js(e,t){return id(e,!0,t,(r,s)=>delete r[s])}function id(e,t,r,s){const n=e instanceof Array?e:e.split("."),i=n.slice(0,n.length-1),o=n[n.length-1];return sg(i,r,a=>{const l=Object.keys(a).includes(o);if(t&&!l)return a;const c={...a};return s(c,o),c})}function sg(e,t,r){const s=e instanceof Array?e:e.split(".");if(t={...t},s.length===0)return r(t);if(s[0].startsWith("{")){const n=s[0].substring(1,s[0].lastIndexOf("}")).split(",");for(const i of n)t[i]!=null&&(t[i]=sg(s.slice(1),t[i],r))}else if(s[0].endsWith("[]")){const n=s[0].substring(0,e[0].indexOf("["));t[n]instanceof Array&&(t[n]=t[n].map(i=>sg(s.slice(1),i,r)))}else if(s[0]==="*")for(const n of Object.keys(t))t[n]=sg(s.slice(1),t[n],r);else t[s[0]]!=null&&(t[s[0]]=sg(s.slice(1),t[s[0]],r));return t}function RG(e,t,r){return id(e,!0,t,(s,n)=>{typeof s[n]=="string"&&(s[n]=r[n]??n)})}var TG=(e,t)=>({...e,...t}),IRe=class extends ve{constructor(){super(...arguments),this.beanName="chartSvc",this.activeCharts=new Set,this.activeChartComps=new Set,this.crossFilteringContext={lastSelectedChartId:""},this.isEnterprise=()=>this.agChartsExports.isEnterprise}wireBeans(e){this.visibleCols=e.visibleCols,this.rangeSvc=e.rangeSvc,this.agChartsExports=e.agChartsExports}updateChart(e){if(this.activeChartComps.size===0){Ce(124);return}const t=[...this.activeChartComps].find(r=>r.getChartId()===e.chartId);if(!t){Ce(125,{chartId:e.chartId});return}t.update(e)}getChartModels(){const e=[],t=r=>({...r,version:Rr});return this.activeChartComps.forEach(r=>e.push(t(r.getChartModel()))),e}getChartRef(e){let t;return this.activeCharts.forEach(r=>{r.chartId===e&&(t=r)}),t}getChartComp(e){let t;return this.activeChartComps.forEach(r=>{r.getChartId()===e&&(t=r)}),t}getChartImageDataURL(e){let t;return this.activeChartComps.forEach(r=>{r.getChartId()===e.chartId&&(t=r.getChartImageDataURL(e.fileFormat))}),t}downloadChart(e){const t=Array.from(this.activeChartComps).find(r=>r.getChartId()===e.chartId);t==null||t.downloadChart(e.dimensions,e.fileName,e.fileFormat)}openChartToolPanel(e){const t=Array.from(this.activeChartComps).find(r=>r.getChartId()===e.chartId);t==null||t.openChartToolPanel(e.panel)}closeChartToolPanel(e){const t=Array.from(this.activeChartComps).find(r=>r.getChartId()===e);t==null||t.closeChartToolPanel()}createChartFromCurrentRange(e="groupedColumn",t){const r=this.getSelectedRange();return this.createChart({cellRange:r,chartType:e,focusDialogOnOpen:!t})}restoreChart(e,t){if(!e){Ce(126);return}e.version!==Rr&&(e=fRe(e));let r,s,n,i;if(e.modelType==="pivot"?(this.gos.updateGridOptions({options:{pivotMode:!0},source:"pivotChart"}),r=this.createCellRange(void 0,!0),s=!0,n=!0):(r=this.createCellRange(e.cellRange),i=e.chartPalette,n=e.suppressChartRanges),!!r)return this.createChart({...e,cellRange:r,pivotChart:s,suppressChartRanges:n,chartContainer:t,chartOptionsToRestore:e.chartOptions,chartPaletteToRestore:i})}createRangeChart(e,t){const r=this.createCellRange(e.cellRange);if(r)return this.createChart({...e,cellRange:r,focusDialogOnOpen:!t})}createPivotChart(e,t){this.gos.updateGridOptions({options:{pivotMode:!0},source:"pivotChart"});const r=this.createCellRange(void 0,!0);if(r)return this.createChart({...e,cellRange:r,pivotChart:!0,suppressChartRanges:!0,focusDialogOnOpen:!t})}createCrossFilterChart(e,t){const r=this.createCellRange(e.cellRange);if(!r)return;const n=typeof e.suppressChartRanges<"u"&&e.suppressChartRanges!==null?e.suppressChartRanges:!0;return this.createChart({...e,cellRange:r,suppressChartRanges:n,crossFiltering:!0,focusDialogOnOpen:!t})}createChart(e){const t=eFe(e,this.agChartsExports.isEnterprise);if(!t)return;e=t===!0?e:t;const{chartType:r,chartContainer:s}=e,n=this.gos.getCallback("createChartContainer"),i={...e,chartId:this.generateId(),chartType:SS(r),insideDialog:!(s||n),crossFilteringContext:this.crossFilteringContext,crossFilteringResetCallback:()=>this.activeChartComps.forEach(l=>l.crossFilteringReset())},o=new gRe(i);this.createBean(o);const a=this.createChartRef(o);return s?s.appendChild(a.chartElement):n?n(a):o.addEventListener("destroyed",()=>{this.activeChartComps.delete(o),this.activeCharts.delete(a)}),a}createChartRef(e){const t={destroyChart:()=>{this.activeCharts.has(t)&&(this.destroyBean(e),this.activeChartComps.delete(e),this.activeCharts.delete(t))},focusChart:()=>{wi(e.getGui())},chartElement:e.getGui(),chart:e.getUnderlyingChart(),chartId:e.getChartModel().chartId};return this.activeCharts.add(t),this.activeChartComps.add(e),t}getSelectedRange(){var t;const e=((t=this.rangeSvc)==null?void 0:t.getCellRanges())??[];return e.length>0?e[0]:{columns:[]}}generateId(){return`id-${Math.random().toString(36).substring(2,18)}`}createCellRange(e,t){var n;const r=t?{rowStartIndex:null,rowStartPinned:void 0,rowEndIndex:null,rowEndPinned:void 0,columns:this.visibleCols.allCols.map(i=>i.getColId())}:e,s=r&&((n=this.rangeSvc)==null?void 0:n.createPartialCellRangeFromRangeParams(r,!0));return s||Ce(127,{allRange:t}),s}destroy(){this.activeCharts.forEach(e=>e.destroyChart()),super.destroy()}};function kRe(e){return e.frameworkOverrides.wrapIncoming(()=>{var t;return(t=e.chartSvc)==null?void 0:t.getChartModels()})}function BRe(e,t){return e.frameworkOverrides.wrapIncoming(()=>{var r;return(r=e.chartSvc)==null?void 0:r.getChartRef(t)})}function LRe(e,t){return e.frameworkOverrides.wrapIncoming(()=>{var r;return(r=e.chartSvc)==null?void 0:r.getChartImageDataURL(t)})}function HRe(e,t){return e.frameworkOverrides.wrapIncoming(()=>{var r;return(r=e.chartSvc)==null?void 0:r.downloadChart(t)})}function GRe(e,t){return e.frameworkOverrides.wrapIncoming(()=>{var r;return(r=e.chartSvc)==null?void 0:r.openChartToolPanel(t)})}function ORe(e,t){return e.frameworkOverrides.wrapIncoming(()=>{var r;return(r=e.chartSvc)==null?void 0:r.closeChartToolPanel(t.chartId)})}function NRe(e,t){return e.frameworkOverrides.wrapIncoming(()=>{var r;return(r=e.chartSvc)==null?void 0:r.createRangeChart(t,!0)})}function _Re(e,t){return e.frameworkOverrides.wrapIncoming(()=>{var r;return(r=e.chartSvc)==null?void 0:r.createPivotChart(t,!0)})}function VRe(e,t){return e.frameworkOverrides.wrapIncoming(()=>{var r;return(r=e.chartSvc)==null?void 0:r.createCrossFilterChart(t,!0)})}function zRe(e,t){return e.frameworkOverrides.wrapIncoming(()=>{var r;return(r=e.chartSvc)==null?void 0:r.updateChart(t)})}function QRe(e,t,r){return e.frameworkOverrides.wrapIncoming(()=>{var s;return(s=e.chartSvc)==null?void 0:s.restoreChart(t,r)})}var URe=`.ag-chart{display:flex;height:100%;position:relative;width:100%}.ag-chart-components-wrapper{display:flex}.ag-chart-canvas-wrapper,.ag-chart-components-wrapper{flex:1 1 auto;position:relative}.ag-chart-menu{background:var(--ag-background-color);background-color:color-mix(in srgb,transparent,var(--ag-background-color) 30%);border-radius:var(--ag-border-radius);display:flex;flex-direction:row;gap:20px;padding:4px 2px;position:absolute;top:8px;width:auto;--ag-icon-size:20px}:where(.ag-ltr) .ag-chart-menu{justify-content:right;right:calc(var(--ag-cell-horizontal-padding) + var(--ag-spacing) - 4px)}:where(.ag-rtl) .ag-chart-menu{justify-content:left;left:calc(var(--ag-cell-horizontal-padding) + var(--ag-spacing) - 4px)}:where(.ag-chart) .ag-chart-menu{display:none}:where(.ag-chart-menu-hidden:hover) .ag-chart-menu{display:block}.ag-chart-docked-container{min-width:var(--ag-chart-menu-panel-width);position:relative}:where(.ag-chart-menu-hidden)~.ag-chart-docked-container{display:none}.ag-chart-tabbed-menu{display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%}.ag-chart-tabbed-menu-header{cursor:default;flex:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-chart-tabbed-menu-body{align-items:stretch;display:flex;flex:1 1 auto;overflow:hidden;position:relative;&:after{background:linear-gradient(var(--ag-background-color),transparent);content:"";display:block;height:16px;left:0;position:absolute;right:0;top:0}}.ag-chart-tab{overflow:hidden;overflow-y:auto;width:100%}.ag-chart-settings{overflow-x:hidden}.ag-chart-settings-wrapper{display:flex;flex-direction:column;height:100%;overflow:hidden;position:relative;width:100%}.ag-chart-settings-nav-bar{align-items:center;border-top:1px solid var(--ag-border-color);display:flex;height:30px;padding:0 10px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ag-chart-settings-card-selector{align-items:center;display:flex;flex:1 1 auto;height:100%;justify-content:space-around;padding:0 10px}.ag-chart-settings-card-item{background-color:var(--ag-foreground-color);border-radius:4px;cursor:pointer;height:8px;position:relative;width:8px;&.ag-not-selected{opacity:.2}&:before{background-color:transparent;content:" ";display:block;height:20px;left:50%;margin-left:-10px;margin-top:-10px;position:absolute;top:50%;width:20px}&.ag-selected{background-color:var(--ag-accent-color)}}.ag-chart-settings-next,.ag-chart-settings-prev{flex:none;position:relative;&:focus-within{border-radius:1px;box-shadow:var(--ag-focus-shadow)}}.ag-chart-settings-next-button,.ag-chart-settings-prev-button{cursor:pointer;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%}.ag-chart-settings-mini-charts-container{flex:1 1 auto;overflow:hidden auto;position:relative}.ag-chart-settings-mini-wrapper{display:flex;flex-direction:column;left:0;min-height:100%;overflow:hidden;padding-bottom:var(--ag-widget-container-vertical-padding);position:absolute;top:0;width:100%;&.ag-animating{transition:left .3s;transition-timing-function:ease-in-out}}.ag-chart-mini-thumbnail{border:1px solid var(--ag-border-color);border-radius:5px;cursor:pointer;&.ag-selected{border-color:var(--ag-accent-color);border-width:2px}&:focus-visible{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}}.ag-chart-mini-thumbnail-canvas{display:block}.ag-chart-advanced-settings-wrapper,.ag-chart-data-wrapper,.ag-chart-format-wrapper{display:flex;flex-direction:column;padding-bottom:16px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-chart-advanced-settings-wrapper,.ag-chart-data-wrapper{height:100%;overflow-y:auto}.ag-chart-advanced-settings{background-color:var(--ag-chrome-background-color)}.ag-chart-advanced-settings,.ag-chart-advanced-settings-wrapper{width:100%}.ag-chart-advanced-settings-wrapper{padding-bottom:0}.ag-chart-advanced-settings-section{border-bottom:1px solid var(--ag-border-color);display:flex;margin:0;padding-bottom:var(--ag-widget-container-vertical-padding);padding-top:var(--ag-widget-container-vertical-padding)}.ag-chart-empty-text{align-items:center;background-color:var(--ag-background-color);display:flex;height:100%;justify-content:center;top:0;width:100%}.ag-charts-font-size-color{align-self:stretch;display:flex;justify-content:space-between}.ag-charts-data-group-item{padding-bottom:var(--ag-widget-container-vertical-padding);position:relative}.ag-charts-data-group-item:where(:not(:last-child)){margin-bottom:var(--ag-spacing)}.ag-chart-menu-icon{border-radius:var(--ag-border-radius);cursor:pointer;margin:2px 0;opacity:.8;&:hover{opacity:1}}.ag-chart-menu-toolbar-button{background-color:unset;border:0;border-radius:1px;padding:0 2px}.ag-chart-data-column-drag-handle{margin-left:var(--ag-spacing)}.ag-charts-advanced-settings-top-level-group-title-bar{background-color:unset;position:relative}.ag-charts-data-group-container{padding:calc(var(--ag-widget-container-vertical-padding)*.5) var(--ag-widget-container-horizontal-padding)}.ag-charts-data-group-item:where(:not(.ag-charts-format-sub-level-group,.ag-pill-select,.ag-select)){height:var(--ag-list-item-height)}.ag-charts-data-group-item:where(.ag-picker-field){margin-top:var(--ag-spacing)}.ag-charts-advanced-settings-top-level-group-container,.ag-charts-format-top-level-group-container{margin-left:calc(var(--ag-spacing)*2);padding:var(--ag-spacing)}.ag-charts-advanced-settings-top-level-group-item,.ag-charts-format-top-level-group-item{margin:var(--ag-spacing) 0}.ag-charts-format-sub-level-group-container{display:flex;flex-direction:column;padding:var(--ag-widget-vertical-spacing) 0}.ag-charts-settings-group-container{display:grid;grid-template-columns:60px 1fr 60px 1fr 60px;padding:var(--ag-spacing);row-gap:8px;:where(.ag-chart-mini-thumbnail:nth-child(3n+1)){grid-column:1}:where(.ag-chart-mini-thumbnail:nth-child(3n+2)){grid-column:3}:where(.ag-chart-mini-thumbnail:nth-child(3n+3)){grid-column:5}}.ag-chart-data-section,.ag-chart-format-section{display:flex;margin:0;:where(.ag-label:not(.ag-group-title-bar)){color:var(--ag-chart-menu-label-color)}:where(.ag-label-align-top .ag-label){margin-bottom:var(--ag-widget-vertical-spacing);margin-top:calc(var(--ag-widget-vertical-spacing)*.5)}:where(.ag-slider.ag-label-align-top .ag-label){margin-bottom:0}:where(label){display:inline-block}}.ag-chart-menu-panel{--ag-panel-background-color:var(--ag-chrome-background-color)}:where(.ag-ltr) .ag-chart-menu-panel{border-left:1px solid var(--ag-border-color)}:where(.ag-rtl) .ag-chart-menu-panel{border-right:1px solid var(--ag-border-color)}.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-container,.ag-charts-settings-group-title-bar{border-top:none;font-weight:500;padding:0 calc(var(--ag-spacing)*1.5)}.ag-charts-format-sub-level-group-title-bar{background:none;font-weight:500;padding:var(--ag-widget-vertical-spacing) 0}.ag-chart-data-wrapper,.ag-chart-format-wrapper,.ag-charts-data-group-container,.ag-charts-data-group-title-bar,.ag-charts-format-sub-level-group,.ag-charts-format-sub-level-group-container>*,.ag-charts-format-sub-level-group-item:last-child,.ag-charts-format-top-level-group,.ag-charts-format-top-level-group-item,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-container,.ag-charts-settings-group-title-bar,:where(.ag-charts-format-top-level-group) .ag-charts-format-top-level-group-container{margin:0;padding:0}.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-title-bar{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:relative}.ag-charts-data-group,.ag-charts-format-top-level-group{border-top:1px solid var(--ag-border-color)}:where(.ag-charts-data-group) .ag-charts-data-group-container,:where(.ag-charts-format-top-level-group) .ag-charts-format-top-level-group-container,:where(.ag-charts-settings-group) .ag-charts-settings-group-container{padding:0 var(--ag-widget-container-horizontal-padding)}.ag-charts-format-sub-level-group-container>*,.ag-charts-format-sub-level-no-header-group-container>*,.ag-charts-format-top-level-group-container>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-charts-advanced-settings-top-level-group-container{margin:0}:where(.ag-charts-advanced-settings-top-level-group){.ag-charts-advanced-settings-top-level-group-container,.ag-charts-advanced-settings-top-level-group-title-bar{padding:0 var(--ag-widget-container-horizontal-padding)}}.ag-charts-advanced-settings-top-level-group-item{margin-bottom:0;margin-top:calc(var(--ag-widget-vertical-spacing)*2)}.ag-chart-settings-card-item.ag-not-selected:hover{opacity:.35}.ag-angle-select{align-items:center;display:flex}.ag-angle-select-wrapper{display:flex}.ag-angle-select-parent-circle{background-color:var(--ag-background-color);border:1px solid;border-color:var(--ag-border-color);border-radius:12px;display:block;height:24px;position:relative;width:24px}.ag-angle-select-child-circle{background-color:var(--ag-foreground-color);border-radius:3px;height:6px;left:12px;margin-left:-3px;margin-top:-4px;position:absolute;top:4px;width:6px}.ag-slider-wrapper{display:flex;:where(.ag-input-field){flex:1 1 auto}}.ag-color-panel{display:flex;flex-direction:column;padding:var(--ag-spacing);text-align:center;width:100%}.ag-spectrum-color{cursor:default;flex:1 1 auto;overflow:visible;position:relative}.ag-spectrum-fill{inset:0;position:absolute}.ag-spectrum-val{background-image:linear-gradient(0deg,#000,hsla(20,42%,65%,0));cursor:pointer}.ag-spectrum-dragger{background:#000;border:3px solid #fff;border-radius:18px;box-shadow:0 0 2px 0 rgba(0,0,0,.24);cursor:pointer;height:18px;pointer-events:none;position:absolute;width:18px}.ag-spectrum-alpha,.ag-spectrum-hue{cursor:default}.ag-spectrum-hue-background{background:linear-gradient(270deg,red 3%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);height:100%;width:100%}.ag-spectrum-alpha-background{background:linear-gradient(to right,var(--ag-internal-spectrum-alpha-color-from),var(--ag-internal-spectrum-alpha-color-to)),url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect x="0" y="0" width="4" height="4" fill="%23fff"/><path d="M0 0H2V4H4V2H0Z" fill="%23b2b2b2"/></svg>') 0 0 /4px 4px;height:100%;width:100%}.ag-spectrum-tool{border-radius:2px;cursor:pointer;height:11px;margin-bottom:10px;position:relative}.ag-spectrum-slider{border:2px solid #fff;border-radius:13px;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);height:13px;margin-top:-12px;pointer-events:none;position:absolute;width:13px}:where(.ag-spectrum-alpha) .ag-spectrum-slider{background:linear-gradient(to bottom,var(--ag-internal-spectrum-alpha-color),var(--ag-internal-spectrum-alpha-color)) var(--ag-background-color)}.ag-recent-colors{display:flex;gap:6px;margin-bottom:2px;margin-left:var(--ag-spacing);margin-right:var(--ag-spacing)}.ag-recent-color{border:1px solid var(--ag-border-color);cursor:pointer}.ag-angle-select[disabled]{opacity:.5;pointer-events:none}:where(.ag-ltr) .ag-angle-select-field,:where(.ag-ltr) .ag-slider-field{margin-right:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-angle-select-field,:where(.ag-rtl) .ag-slider-field{margin-left:calc(var(--ag-spacing)*2)}.ag-color-dialog{border-radius:5px}:where(.ag-color-picker){.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:var(--ag-spacing)}.ag-picker-field-display{align-items:center;display:flex;flex-direction:row;min-height:var(--ag-list-item-height)}}:where(.ag-ltr) .ag-color-picker-color,:where(.ag-ltr) .ag-color-picker-value{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-color-picker-color,:where(.ag-rtl) .ag-color-picker-value{margin-left:var(--ag-spacing)}.ag-spectrum-tools{padding-bottom:0;padding-left:0;padding-right:0}.ag-spectrum-alpha-background,.ag-spectrum-hue-background{border-radius:2px}.ag-color-input-color,.ag-color-picker-color,.ag-recent-color{border-radius:4px}.ag-spectrum-sat{background-image:linear-gradient(90deg,#fff,hsla(20,42%,65%,0))}.ag-recent-color,.ag-spectrum-color,.ag-spectrum-slider{&:where(:not(:disabled,[readonly])):focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-color-input-color,.ag-color-picker-color{border:1px solid var(--ag-border-color);border-radius:2px;height:var(--ag-icon-size);width:var(--ag-icon-size)}:where(.ag-color-input){.ag-color-input-color{position:absolute}}:where(.ag-ltr) :where(.ag-color-input){.ag-input-field-input{padding-left:calc(var(--ag-icon-size) + var(--ag-spacing)*2)}.ag-color-input-color{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-color-input){.ag-input-field-input{padding-right:calc(var(--ag-icon-size) + var(--ag-spacing)*2)}.ag-color-input-color{margin-right:var(--ag-spacing)}}.ag-range-field{align-items:center;display:flex;:where(.ag-input-wrapper){height:100%}}.ag-range-field-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;height:100%;overflow:visible;padding:0;width:100%;&:disabled{opacity:.5}}.ag-range-field-input{&::-webkit-slider-runnable-track{background-color:var(--ag-border-color);border-radius:1.5px;height:3px;margin:0;padding:0;width:100%}&::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:100%;height:var(--ag-icon-size);margin:0;padding:0;transform:translateY(calc(var(--ag-icon-size)*-.5 + 1.5px));width:var(--ag-icon-size)}&:focus::-webkit-slider-thumb{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}&:active::-webkit-slider-runnable-track{background-color:var(--ag-accent-color)}}.ag-range-field-input{&::-moz-range-track{background-color:var(--ag-border-color);border-radius:1.5px;height:3px;margin:0;padding:0;width:100%}&::-moz-ag-range-thumb{-moz-appearance:none;appearance:none;background-color:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:100%;height:var(--ag-icon-size);margin:0;padding:0;transform:translateY(calc(var(--ag-icon-size)*-.5 + 1.5px));width:var(--ag-icon-size)}&:focus::-moz-ag-range-thumb{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}&:active::-moz-ag-range-track{background-color:var(--ag-accent-color)}}`,GX=28,OX=6;function Qk(e){return e&&e.match(/\d+\.\d+\.\d+/)}function WRe({gridMajorVersion:e,chartsMajorVersion:t}){const r=parseInt(e,10),s=parseInt(t,10),n=r-GX,i=s-OX,o=n>=0;return n===i&&o}function jRe(e){if(!e||!Qk(e))return;const[t,r]=e.split(".")||[],s=`${t}.${r}.x`,i=parseInt(t,10)-GX+OX;if(i<0)return;const a=`${i}.${r}.x`;return{gridMajorMinor:s,chartsMajorMinor:a}}function eP({type:e,gridVersion:t,chartsVersion:r}){const s="AG Grid: AG Grid version is incompatible. Please see https://www.ag-grid.com/javascript-data-grid/modules/ for more information.";if(!t)return s;const n=jRe(t);if(!n)return s;const{gridMajorMinor:i,chartsMajorMinor:o}=n;return e==="incompatible"?`AG Grid version ${t} and AG Charts version ${r} is not supported. AG Grid version ${i} should be used with AG Chart ${o}. Please see https://www.ag-grid.com/javascript-data-grid/modules/ for more information.`:e==="invalidCharts"?`AG Grid version ${i} should be used with AG Chart ${o} not ${r}. Please see https://www.ag-grid.com/javascript-data-grid/modules/ for more information.`:s}function KRe({gridVersion:e,chartsVersion:t}){if(!Qk(t))return{isValid:!1,message:eP({type:"invalidCharts",gridVersion:e,chartsVersion:t})};if(!Qk(e))return{isValid:!1,message:eP({type:"invalidGrid",gridVersion:e,chartsVersion:t})};const[r,s]=e.split(".")||[],[n,i,o]=t.split(".")||[],a=WRe({gridMajorVersion:r,chartsMajorVersion:n});return a&&s===i||o.includes("beta")?{isValid:!0}:!a||s!==i?{isValid:!1,message:eP({type:"incompatible",gridVersion:e,chartsVersion:t})}:{isValid:!1,message:eP({type:"invalid",gridVersion:e,chartsVersion:t})}}var YRe={linked:"linked",unlinked:"unlinked",chartsMenu:"menu-alt",chartsDownload:"save",chartsMenuEdit:"chart",chartsMenuAdvancedSettings:"settings",chartsMenuAdd:"plus",chartsColorPicker:"small-down",chartsThemePrevious:"previous",chartsThemeNext:"next"},ZRe={getChartModels:kRe,getChartRef:BRe,getChartImageDataURL:LRe,downloadChart:HRe,openChartToolPanel:GRe,closeChartToolPanel:ORe,createRangeChart:NRe,createPivotChart:_Re,createCrossFilterChart:VRe,updateChart:zRe,restoreChart:QRe},DG=[SZ,Qs,jw,Eg,AT],MG="IntegratedCharts",XRe={moduleName:MG,version:Rr,dependsOn:DG,validate:()=>({isValid:!1,message:ZW(257)}),with:e=>{var t;if(e.setup(),(t=e.setGridContext)==null||t.call(e,!0),e.isEnterprise&&e.setLicenseKey){const r={setLicenseKey:e.setLicenseKey};p1.setChartsLicenseManager(r)}return{moduleName:MG,version:Rr,icons:YRe,apiFunctions:ZRe,dependsOn:DG,css:[URe],validate:()=>KRe({gridVersion:Rr,chartsVersion:e.VERSION}),beans:[NPe.bind(null,e),IRe,U2e,_2e,O2e,z2e,x2e,H2e]}}},IG=[F0e,W3e,_Se,Vxe,J3e,lEe,oxe,axe,SZ,lxe,vZ,k3e,B3e,kPe,BPe,wxe,Kxe,Q1e,NL,Lxe,H3e,jEe,iPe],kG="AllEnterprise",$Re={with:e=>({moduleName:kG,version:Rr,dependsOn:[...IG,XRe.with(e),OPe.with(e)]}),moduleName:kG,version:Rr,dependsOn:IG},y2={},JRe=Object.defineProperty,NX=e=>{throw TypeError(e)},qRe=(e,t,r)=>t in e?JRe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bs=(e,t,r)=>qRe(e,typeof t!="symbol"?t+"":t,r),u5=(e,t,r)=>t.has(e)||NX("Cannot "+r),de=(e,t,r)=>(u5(e,t,"read from private field"),r?r.call(e):t.get(e)),As=(e,t,r)=>t.has(e)?NX("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),hr=(e,t,r,s)=>(u5(e,t,"write to private field"),t.set(e,r),r),Wt=(e,t,r)=>(u5(e,t,"access private method"),r),Uk=(e,t,r,s)=>({set _(n){hr(e,t,n)},get _(){return de(e,t,s)}});function eTe(e,t){if(e==null)throw Error(t);return e}const SF=Array.isArray;function BG(e){return e!==null&&typeof e=="object"}function xS(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null}function LG(e){return Object.values(e).reduce((t,r)=>r!==void 0?t+1:t,0)}function Lc(e,t){if(!(BG(e)&&BG(t)))return e===t;if(SF(e)&&SF(t))return e.length!==t.length?!1:[...e.keys()].every(r=>Lc(e[r],t[r]));if(xS(e)&&xS(t))return LG(e)!==LG(t)?!1:Object.keys(e).every(r=>Lc(e[r],t[r]));throw Error(`Cannot compare a ${String(e)} and b ${String(t)}`)}function Th(e){if(Array.isArray(e)){const t=[];for(let r=0;r<e.length;r++)t[r]=Th(e[r]);return t}else if(xS(e)){const t={};return Object.keys(e).forEach(r=>{t[r]=Th(e[r])}),t}else return e}function _X(e,t){return new Set([...Object.keys(e),...Object.keys(t)]).forEach(r=>{const s=e[r],n=t[r];xS(s)&&xS(n)||SF(s)&&SF(n)&&s.length===n.length?_X(s,n):e[r]=n}),e}var Ib=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tTe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ms;(function(e){e.assertEqual=n=>n;function t(n){}e.assertIs=t;function r(n){throw new Error}e.assertNever=r,e.arrayToEnum=n=>{const i={};for(const o of n)i[o]=o;return i},e.getValidEnumValues=n=>{const i=e.objectKeys(n).filter(a=>typeof n[n[a]]!="number"),o={};for(const a of i)o[a]=n[a];return e.objectValues(o)},e.objectValues=n=>e.objectKeys(n).map(function(i){return n[i]}),e.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{const i=[];for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&i.push(o);return i},e.find=(n,i)=>{for(const o of n)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&isFinite(n)&&Math.floor(n)===n;function s(n,i=" | "){return n.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=s,e.jsonStringifyReplacer=(n,i)=>typeof i=="bigint"?i.toString():i})(ms||(ms={}));var Wk;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(Wk||(Wk={}));const Ht=ms.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Yf=e=>{switch(typeof e){case"undefined":return Ht.undefined;case"string":return Ht.string;case"number":return isNaN(e)?Ht.nan:Ht.number;case"boolean":return Ht.boolean;case"function":return Ht.function;case"bigint":return Ht.bigint;case"symbol":return Ht.symbol;case"object":return Array.isArray(e)?Ht.array:e===null?Ht.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ht.promise:typeof Map<"u"&&e instanceof Map?Ht.map:typeof Set<"u"&&e instanceof Set?Ht.set:typeof Date<"u"&&e instanceof Date?Ht.date:Ht.object;default:return Ht.unknown}},ft=ms.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),rTe=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Ul extends Error{constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const r=t||function(i){return i.message},s={_errors:[]},n=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(n);else if(o.code==="invalid_return_type")n(o.returnTypeError);else if(o.code==="invalid_arguments")n(o.argumentsError);else if(o.path.length===0)s._errors.push(r(o));else{let a=s,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(r(o))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return n(this),s}static assert(t){if(!(t instanceof Ul))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ms.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},s=[];for(const n of this.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):s.push(t(n));return{formErrors:s,fieldErrors:r}}get formErrors(){return this.flatten()}}Ul.create=e=>new Ul(e);const xw=(e,t)=>{let r;switch(e.code){case ft.invalid_type:e.received===Ht.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case ft.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,ms.jsonStringifyReplacer)}`;break;case ft.unrecognized_keys:r=`Unrecognized key(s) in object: ${ms.joinValues(e.keys,", ")}`;break;case ft.invalid_union:r="Invalid input";break;case ft.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ms.joinValues(e.options)}`;break;case ft.invalid_enum_value:r=`Invalid enum value. Expected ${ms.joinValues(e.options)}, received '${e.received}'`;break;case ft.invalid_arguments:r="Invalid function arguments";break;case ft.invalid_return_type:r="Invalid function return type";break;case ft.invalid_date:r="Invalid date";break;case ft.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:ms.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case ft.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case ft.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case ft.custom:r="Invalid input";break;case ft.invalid_intersection_types:r="Intersection results could not be merged";break;case ft.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case ft.not_finite:r="Number must be finite";break;default:r=t.defaultError,ms.assertNever(e)}return{message:r}};let VX=xw;function sTe(e){VX=e}function xF(){return VX}const EF=e=>{const{data:t,path:r,errorMaps:s,issueData:n}=e,i=[...r,...n.path||[]],o={...n,path:i};if(n.message!==void 0)return{...n,path:i,message:n.message};let a="";const l=s.filter(c=>!!c).slice().reverse();for(const c of l)a=c(o,{data:t,defaultError:a}).message;return{...n,path:i,message:a}},nTe=[];function Mt(e,t){const r=xF(),s=EF({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===xw?void 0:xw].filter(n=>!!n)});e.common.issues.push(s)}class Go{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const s=[];for(const n of r){if(n.status==="aborted")return Pr;n.status==="dirty"&&t.dirty(),s.push(n.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,r){const s=[];for(const n of r){const i=await n.key,o=await n.value;s.push({key:i,value:o})}return Go.mergeObjectSync(t,s)}static mergeObjectSync(t,r){const s={};for(const n of r){const{key:i,value:o}=n;if(i.status==="aborted"||o.status==="aborted")return Pr;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||n.alwaysSet)&&(s[i.value]=o.value)}return{status:t.value,value:s}}}const Pr=Object.freeze({status:"aborted"}),PF=e=>({status:"dirty",value:e}),fa=e=>({status:"valid",value:e}),jk=e=>e.status==="aborted",Kk=e=>e.status==="dirty",ES=e=>e.status==="valid",PS=e=>typeof Promise<"u"&&e instanceof Promise;function FF(e,t,r,s){if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function zX(e,t,r,s,n){if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}var $t;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})($t||($t={}));var f1,A1;class Oh{constructor(t,r,s,n){this._cachedPath=[],this.parent=t,this.data=r,this._path=s,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const HG=(e,t)=>{if(ES(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Ul(e.common.issues);return this._error=r,this._error}}};function _r(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:s,description:n}=e;if(t&&(r||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:n}:{errorMap:(i,o)=>{var a,l;const{message:c}=e;return i.code==="invalid_enum_value"?{message:c??o.defaultError}:typeof o.data>"u"?{message:(a=c??s)!==null&&a!==void 0?a:o.defaultError}:i.code!=="invalid_type"?{message:o.defaultError}:{message:(l=c??r)!==null&&l!==void 0?l:o.defaultError}},description:n}}class Yr{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Yf(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Yf(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Go,ctx:{common:t.parent.common,data:t.data,parsedType:Yf(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(PS(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const s=this.safeParse(t,r);if(s.success)return s.data;throw s.error}safeParse(t,r){var s;const n={common:{issues:[],async:(s=r==null?void 0:r.async)!==null&&s!==void 0?s:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Yf(t)},i=this._parseSync({data:t,path:n.path,parent:n});return HG(n,i)}async parseAsync(t,r){const s=await this.safeParseAsync(t,r);if(s.success)return s.data;throw s.error}async safeParseAsync(t,r){const s={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Yf(t)},n=this._parse({data:t,path:s.path,parent:s}),i=await(PS(n)?n:Promise.resolve(n));return HG(s,i)}refine(t,r){const s=n=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,i)=>{const o=t(n),a=()=>i.addIssue({code:ft.custom,...s(n)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,r){return this._refinement((s,n)=>t(s)?!0:(n.addIssue(typeof r=="function"?r(s,n):r),!1))}_refinement(t){return new od({schema:this,typeName:mr.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Dh.create(this,this._def)}nullable(){return CA.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return $u.create(this,this._def)}promise(){return Pw.create(this,this._def)}or(t){return DS.create([this,t],this._def)}and(t){return MS.create(this,t,this._def)}transform(t){return new od({..._r(this._def),schema:this,typeName:mr.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new HS({..._r(this._def),innerType:this,defaultValue:r,typeName:mr.ZodDefault})}brand(){return new d5({typeName:mr.ZodBranded,type:this,..._r(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new GS({..._r(this._def),innerType:this,catchValue:r,typeName:mr.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Xx.create(this,t)}readonly(){return OS.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const iTe=/^c[^\s-]{8,}$/i,oTe=/^[0-9a-z]+$/,aTe=/^[0-9A-HJKMNP-TV-Z]{26}$/,lTe=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,cTe=/^[a-z0-9_-]{21}$/i,uTe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,dTe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,hTe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let o4;const pTe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,gTe=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,fTe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,QX="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ATe=new RegExp(`^${QX}$`);function UX(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function mTe(e){return new RegExp(`^${UX(e)}$`)}function WX(e){let t=`${QX}T${UX(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function vTe(e,t){return!!((t==="v4"||!t)&&pTe.test(e)||(t==="v6"||!t)&&gTe.test(e))}class zu extends Yr{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ht.string){const n=this._getOrReturnCtx(t);return Mt(n,{code:ft.invalid_type,expected:Ht.string,received:n.parsedType}),Pr}const r=new Go;let s;for(const n of this._def.checks)if(n.kind==="min")t.data.length<n.value&&(s=this._getOrReturnCtx(t,s),Mt(s,{code:ft.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if(n.kind==="max")t.data.length>n.value&&(s=this._getOrReturnCtx(t,s),Mt(s,{code:ft.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if(n.kind==="length"){const i=t.data.length>n.value,o=t.data.length<n.value;(i||o)&&(s=this._getOrReturnCtx(t,s),i?Mt(s,{code:ft.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):o&&Mt(s,{code:ft.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),r.dirty())}else if(n.kind==="email")dTe.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"email",code:ft.invalid_string,message:n.message}),r.dirty());else if(n.kind==="emoji")o4||(o4=new RegExp(hTe,"u")),o4.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"emoji",code:ft.invalid_string,message:n.message}),r.dirty());else if(n.kind==="uuid")lTe.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"uuid",code:ft.invalid_string,message:n.message}),r.dirty());else if(n.kind==="nanoid")cTe.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"nanoid",code:ft.invalid_string,message:n.message}),r.dirty());else if(n.kind==="cuid")iTe.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"cuid",code:ft.invalid_string,message:n.message}),r.dirty());else if(n.kind==="cuid2")oTe.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"cuid2",code:ft.invalid_string,message:n.message}),r.dirty());else if(n.kind==="ulid")aTe.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"ulid",code:ft.invalid_string,message:n.message}),r.dirty());else if(n.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),Mt(s,{validation:"url",code:ft.invalid_string,message:n.message}),r.dirty()}else n.kind==="regex"?(n.regex.lastIndex=0,n.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"regex",code:ft.invalid_string,message:n.message}),r.dirty())):n.kind==="trim"?t.data=t.data.trim():n.kind==="includes"?t.data.includes(n.value,n.position)||(s=this._getOrReturnCtx(t,s),Mt(s,{code:ft.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),r.dirty()):n.kind==="toLowerCase"?t.data=t.data.toLowerCase():n.kind==="toUpperCase"?t.data=t.data.toUpperCase():n.kind==="startsWith"?t.data.startsWith(n.value)||(s=this._getOrReturnCtx(t,s),Mt(s,{code:ft.invalid_string,validation:{startsWith:n.value},message:n.message}),r.dirty()):n.kind==="endsWith"?t.data.endsWith(n.value)||(s=this._getOrReturnCtx(t,s),Mt(s,{code:ft.invalid_string,validation:{endsWith:n.value},message:n.message}),r.dirty()):n.kind==="datetime"?WX(n).test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{code:ft.invalid_string,validation:"datetime",message:n.message}),r.dirty()):n.kind==="date"?ATe.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{code:ft.invalid_string,validation:"date",message:n.message}),r.dirty()):n.kind==="time"?mTe(n).test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{code:ft.invalid_string,validation:"time",message:n.message}),r.dirty()):n.kind==="duration"?uTe.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"duration",code:ft.invalid_string,message:n.message}),r.dirty()):n.kind==="ip"?vTe(t.data,n.version)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"ip",code:ft.invalid_string,message:n.message}),r.dirty()):n.kind==="base64"?fTe.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"base64",code:ft.invalid_string,message:n.message}),r.dirty()):ms.assertNever(n);return{status:r.value,value:t.data}}_regex(t,r,s){return this.refinement(n=>t.test(n),{validation:r,code:ft.invalid_string,...$t.errToObj(s)})}_addCheck(t){return new zu({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...$t.errToObj(t)})}url(t){return this._addCheck({kind:"url",...$t.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...$t.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...$t.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...$t.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...$t.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...$t.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...$t.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...$t.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...$t.errToObj(t)})}datetime(t){var r,s;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,local:(s=t==null?void 0:t.local)!==null&&s!==void 0?s:!1,...$t.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...$t.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...$t.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...$t.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...$t.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...$t.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...$t.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...$t.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...$t.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...$t.errToObj(r)})}nonempty(t){return this.min(1,$t.errToObj(t))}trim(){return new zu({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new zu({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new zu({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}zu.create=e=>{var t;return new zu({checks:[],typeName:mr.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,..._r(e)})};function CTe(e,t){const r=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,n=r>s?r:s,i=parseInt(e.toFixed(n).replace(".","")),o=parseInt(t.toFixed(n).replace(".",""));return i%o/Math.pow(10,n)}class AA extends Yr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ht.number){const n=this._getOrReturnCtx(t);return Mt(n,{code:ft.invalid_type,expected:Ht.number,received:n.parsedType}),Pr}let r;const s=new Go;for(const n of this._def.checks)n.kind==="int"?ms.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Mt(r,{code:ft.invalid_type,expected:"integer",received:"float",message:n.message}),s.dirty()):n.kind==="min"?(n.inclusive?t.data<n.value:t.data<=n.value)&&(r=this._getOrReturnCtx(t,r),Mt(r,{code:ft.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),s.dirty()):n.kind==="max"?(n.inclusive?t.data>n.value:t.data>=n.value)&&(r=this._getOrReturnCtx(t,r),Mt(r,{code:ft.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),s.dirty()):n.kind==="multipleOf"?CTe(t.data,n.value)!==0&&(r=this._getOrReturnCtx(t,r),Mt(r,{code:ft.not_multiple_of,multipleOf:n.value,message:n.message}),s.dirty()):n.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Mt(r,{code:ft.not_finite,message:n.message}),s.dirty()):ms.assertNever(n);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,$t.toString(r))}gt(t,r){return this.setLimit("min",t,!1,$t.toString(r))}lte(t,r){return this.setLimit("max",t,!0,$t.toString(r))}lt(t,r){return this.setLimit("max",t,!1,$t.toString(r))}setLimit(t,r,s,n){return new AA({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:s,message:$t.toString(n)}]})}_addCheck(t){return new AA({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:$t.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:$t.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:$t.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:$t.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:$t.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:$t.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:$t.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:$t.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:$t.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ms.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(r===null||s.value>r)&&(r=s.value):s.kind==="max"&&(t===null||s.value<t)&&(t=s.value)}return Number.isFinite(r)&&Number.isFinite(t)}}AA.create=e=>new AA({checks:[],typeName:mr.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,..._r(e)});class mA extends Yr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==Ht.bigint){const n=this._getOrReturnCtx(t);return Mt(n,{code:ft.invalid_type,expected:Ht.bigint,received:n.parsedType}),Pr}let r;const s=new Go;for(const n of this._def.checks)n.kind==="min"?(n.inclusive?t.data<n.value:t.data<=n.value)&&(r=this._getOrReturnCtx(t,r),Mt(r,{code:ft.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),s.dirty()):n.kind==="max"?(n.inclusive?t.data>n.value:t.data>=n.value)&&(r=this._getOrReturnCtx(t,r),Mt(r,{code:ft.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),s.dirty()):n.kind==="multipleOf"?t.data%n.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Mt(r,{code:ft.not_multiple_of,multipleOf:n.value,message:n.message}),s.dirty()):ms.assertNever(n);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,$t.toString(r))}gt(t,r){return this.setLimit("min",t,!1,$t.toString(r))}lte(t,r){return this.setLimit("max",t,!0,$t.toString(r))}lt(t,r){return this.setLimit("max",t,!1,$t.toString(r))}setLimit(t,r,s,n){return new mA({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:s,message:$t.toString(n)}]})}_addCheck(t){return new mA({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:$t.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:$t.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:$t.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:$t.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:$t.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}mA.create=e=>{var t;return new mA({checks:[],typeName:mr.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,..._r(e)})};class FS extends Yr{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ht.boolean){const r=this._getOrReturnCtx(t);return Mt(r,{code:ft.invalid_type,expected:Ht.boolean,received:r.parsedType}),Pr}return fa(t.data)}}FS.create=e=>new FS({typeName:mr.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,..._r(e)});class Fv extends Yr{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ht.date){const n=this._getOrReturnCtx(t);return Mt(n,{code:ft.invalid_type,expected:Ht.date,received:n.parsedType}),Pr}if(isNaN(t.data.getTime())){const n=this._getOrReturnCtx(t);return Mt(n,{code:ft.invalid_date}),Pr}const r=new Go;let s;for(const n of this._def.checks)n.kind==="min"?t.data.getTime()<n.value&&(s=this._getOrReturnCtx(t,s),Mt(s,{code:ft.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):n.kind==="max"?t.data.getTime()>n.value&&(s=this._getOrReturnCtx(t,s),Mt(s,{code:ft.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):ms.assertNever(n);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Fv({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:$t.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:$t.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}Fv.create=e=>new Fv({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:mr.ZodDate,..._r(e)});class RF extends Yr{_parse(t){if(this._getType(t)!==Ht.symbol){const r=this._getOrReturnCtx(t);return Mt(r,{code:ft.invalid_type,expected:Ht.symbol,received:r.parsedType}),Pr}return fa(t.data)}}RF.create=e=>new RF({typeName:mr.ZodSymbol,..._r(e)});class RS extends Yr{_parse(t){if(this._getType(t)!==Ht.undefined){const r=this._getOrReturnCtx(t);return Mt(r,{code:ft.invalid_type,expected:Ht.undefined,received:r.parsedType}),Pr}return fa(t.data)}}RS.create=e=>new RS({typeName:mr.ZodUndefined,..._r(e)});class TS extends Yr{_parse(t){if(this._getType(t)!==Ht.null){const r=this._getOrReturnCtx(t);return Mt(r,{code:ft.invalid_type,expected:Ht.null,received:r.parsedType}),Pr}return fa(t.data)}}TS.create=e=>new TS({typeName:mr.ZodNull,..._r(e)});class Ew extends Yr{constructor(){super(...arguments),this._any=!0}_parse(t){return fa(t.data)}}Ew.create=e=>new Ew({typeName:mr.ZodAny,..._r(e)});class lv extends Yr{constructor(){super(...arguments),this._unknown=!0}_parse(t){return fa(t.data)}}lv.create=e=>new lv({typeName:mr.ZodUnknown,..._r(e)});class Ag extends Yr{_parse(t){const r=this._getOrReturnCtx(t);return Mt(r,{code:ft.invalid_type,expected:Ht.never,received:r.parsedType}),Pr}}Ag.create=e=>new Ag({typeName:mr.ZodNever,..._r(e)});class TF extends Yr{_parse(t){if(this._getType(t)!==Ht.undefined){const r=this._getOrReturnCtx(t);return Mt(r,{code:ft.invalid_type,expected:Ht.void,received:r.parsedType}),Pr}return fa(t.data)}}TF.create=e=>new TF({typeName:mr.ZodVoid,..._r(e)});class $u extends Yr{_parse(t){const{ctx:r,status:s}=this._processInputParams(t),n=this._def;if(r.parsedType!==Ht.array)return Mt(r,{code:ft.invalid_type,expected:Ht.array,received:r.parsedType}),Pr;if(n.exactLength!==null){const o=r.data.length>n.exactLength.value,a=r.data.length<n.exactLength.value;(o||a)&&(Mt(r,{code:o?ft.too_big:ft.too_small,minimum:a?n.exactLength.value:void 0,maximum:o?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),s.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(Mt(r,{code:ft.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),s.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(Mt(r,{code:ft.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),s.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>n.type._parseAsync(new Oh(r,o,r.path,a)))).then(o=>Go.mergeArray(s,o));const i=[...r.data].map((o,a)=>n.type._parseSync(new Oh(r,o,r.path,a)));return Go.mergeArray(s,i)}get element(){return this._def.type}min(t,r){return new $u({...this._def,minLength:{value:t,message:$t.toString(r)}})}max(t,r){return new $u({...this._def,maxLength:{value:t,message:$t.toString(r)}})}length(t,r){return new $u({...this._def,exactLength:{value:t,message:$t.toString(r)}})}nonempty(t){return this.min(1,t)}}$u.create=(e,t)=>new $u({type:e,minLength:null,maxLength:null,exactLength:null,typeName:mr.ZodArray,..._r(t)});function B0(e){if(e instanceof Fn){const t={};for(const r in e.shape){const s=e.shape[r];t[r]=Dh.create(B0(s))}return new Fn({...e._def,shape:()=>t})}else return e instanceof $u?new $u({...e._def,type:B0(e.element)}):e instanceof Dh?Dh.create(B0(e.unwrap())):e instanceof CA?CA.create(B0(e.unwrap())):e instanceof Nh?Nh.create(e.items.map(t=>B0(t))):e}class Fn extends Yr{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=ms.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==Ht.object){const l=this._getOrReturnCtx(t);return Mt(l,{code:ft.invalid_type,expected:Ht.object,received:l.parsedType}),Pr}const{status:r,ctx:s}=this._processInputParams(t),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof Ag&&this._def.unknownKeys==="strip"))for(const l in s.data)i.includes(l)||o.push(l);const a=[];for(const l of i){const c=n[l],u=s.data[l];a.push({key:{status:"valid",value:l},value:c._parse(new Oh(s,u,s.path,l)),alwaysSet:l in s.data})}if(this._def.catchall instanceof Ag){const l=this._def.unknownKeys;if(l==="passthrough")for(const c of o)a.push({key:{status:"valid",value:c},value:{status:"valid",value:s.data[c]}});else if(l==="strict")o.length>0&&(Mt(s,{code:ft.unrecognized_keys,keys:o}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const c of o){const u=s.data[c];a.push({key:{status:"valid",value:c},value:l._parse(new Oh(s,u,s.path,c)),alwaysSet:c in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const l=[];for(const c of a){const u=await c.key,d=await c.value;l.push({key:u,value:d,alwaysSet:c.alwaysSet})}return l}).then(l=>Go.mergeObjectSync(r,l)):Go.mergeObjectSync(r,a)}get shape(){return this._def.shape()}strict(t){return $t.errToObj,new Fn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,s)=>{var n,i,o,a;const l=(o=(i=(n=this._def).errorMap)===null||i===void 0?void 0:i.call(n,r,s).message)!==null&&o!==void 0?o:s.defaultError;return r.code==="unrecognized_keys"?{message:(a=$t.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new Fn({...this._def,unknownKeys:"strip"})}passthrough(){return new Fn({...this._def,unknownKeys:"passthrough"})}extend(t){return new Fn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Fn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:mr.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new Fn({...this._def,catchall:t})}pick(t){const r={};return ms.objectKeys(t).forEach(s=>{t[s]&&this.shape[s]&&(r[s]=this.shape[s])}),new Fn({...this._def,shape:()=>r})}omit(t){const r={};return ms.objectKeys(this.shape).forEach(s=>{t[s]||(r[s]=this.shape[s])}),new Fn({...this._def,shape:()=>r})}deepPartial(){return B0(this)}partial(t){const r={};return ms.objectKeys(this.shape).forEach(s=>{const n=this.shape[s];t&&!t[s]?r[s]=n:r[s]=n.optional()}),new Fn({...this._def,shape:()=>r})}required(t){const r={};return ms.objectKeys(this.shape).forEach(s=>{if(t&&!t[s])r[s]=this.shape[s];else{let n=this.shape[s];for(;n instanceof Dh;)n=n._def.innerType;r[s]=n}}),new Fn({...this._def,shape:()=>r})}keyof(){return jX(ms.objectKeys(this.shape))}}Fn.create=(e,t)=>new Fn({shape:()=>e,unknownKeys:"strip",catchall:Ag.create(),typeName:mr.ZodObject,..._r(t)});Fn.strictCreate=(e,t)=>new Fn({shape:()=>e,unknownKeys:"strict",catchall:Ag.create(),typeName:mr.ZodObject,..._r(t)});Fn.lazycreate=(e,t)=>new Fn({shape:e,unknownKeys:"strip",catchall:Ag.create(),typeName:mr.ZodObject,..._r(t)});class DS extends Yr{_parse(t){const{ctx:r}=this._processInputParams(t),s=this._def.options;function n(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new Ul(a.ctx.common.issues));return Mt(r,{code:ft.invalid_union,unionErrors:o}),Pr}if(r.common.async)return Promise.all(s.map(async i=>{const o={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(n);{let i;const o=[];for(const l of s){const c={...r,common:{...r.common,issues:[]},parent:null},u=l._parseSync({data:r.data,path:r.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(l=>new Ul(l));return Mt(r,{code:ft.invalid_union,unionErrors:a}),Pr}}get options(){return this._def.options}}DS.create=(e,t)=>new DS({options:e,typeName:mr.ZodUnion,..._r(t)});const If=e=>e instanceof kS?If(e.schema):e instanceof od?If(e.innerType()):e instanceof BS?[e.value]:e instanceof vA?e.options:e instanceof LS?ms.objectValues(e.enum):e instanceof HS?If(e._def.innerType):e instanceof RS?[void 0]:e instanceof TS?[null]:e instanceof Dh?[void 0,...If(e.unwrap())]:e instanceof CA?[null,...If(e.unwrap())]:e instanceof d5||e instanceof OS?If(e.unwrap()):e instanceof GS?If(e._def.innerType):[];class yT extends Yr{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ht.object)return Mt(r,{code:ft.invalid_type,expected:Ht.object,received:r.parsedType}),Pr;const s=this.discriminator,n=r.data[s],i=this.optionsMap.get(n);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(Mt(r,{code:ft.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),Pr)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,s){const n=new Map;for(const i of r){const o=If(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of o){if(n.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);n.set(a,i)}}return new yT({typeName:mr.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:n,..._r(s)})}}function Yk(e,t){const r=Yf(e),s=Yf(t);if(e===t)return{valid:!0,data:e};if(r===Ht.object&&s===Ht.object){const n=ms.objectKeys(t),i=ms.objectKeys(e).filter(a=>n.indexOf(a)!==-1),o={...e,...t};for(const a of i){const l=Yk(e[a],t[a]);if(!l.valid)return{valid:!1};o[a]=l.data}return{valid:!0,data:o}}else if(r===Ht.array&&s===Ht.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let i=0;i<e.length;i++){const o=e[i],a=t[i],l=Yk(o,a);if(!l.valid)return{valid:!1};n.push(l.data)}return{valid:!0,data:n}}else return r===Ht.date&&s===Ht.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class MS extends Yr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t),n=(i,o)=>{if(jk(i)||jk(o))return Pr;const a=Yk(i.value,o.value);return a.valid?((Kk(i)||Kk(o))&&r.dirty(),{status:r.value,value:a.data}):(Mt(s,{code:ft.invalid_intersection_types}),Pr)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,o])=>n(i,o)):n(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}MS.create=(e,t,r)=>new MS({left:e,right:t,typeName:mr.ZodIntersection,..._r(r)});class Nh extends Yr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Ht.array)return Mt(s,{code:ft.invalid_type,expected:Ht.array,received:s.parsedType}),Pr;if(s.data.length<this._def.items.length)return Mt(s,{code:ft.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Pr;!this._def.rest&&s.data.length>this._def.items.length&&(Mt(s,{code:ft.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const n=[...s.data].map((i,o)=>{const a=this._def.items[o]||this._def.rest;return a?a._parse(new Oh(s,i,s.path,o)):null}).filter(i=>!!i);return s.common.async?Promise.all(n).then(i=>Go.mergeArray(r,i)):Go.mergeArray(r,n)}get items(){return this._def.items}rest(t){return new Nh({...this._def,rest:t})}}Nh.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Nh({items:e,typeName:mr.ZodTuple,rest:null,..._r(t)})};class IS extends Yr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Ht.object)return Mt(s,{code:ft.invalid_type,expected:Ht.object,received:s.parsedType}),Pr;const n=[],i=this._def.keyType,o=this._def.valueType;for(const a in s.data)n.push({key:i._parse(new Oh(s,a,s.path,a)),value:o._parse(new Oh(s,s.data[a],s.path,a)),alwaysSet:a in s.data});return s.common.async?Go.mergeObjectAsync(r,n):Go.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(t,r,s){return r instanceof Yr?new IS({keyType:t,valueType:r,typeName:mr.ZodRecord,..._r(s)}):new IS({keyType:zu.create(),valueType:t,typeName:mr.ZodRecord,..._r(r)})}}class DF extends Yr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Ht.map)return Mt(s,{code:ft.invalid_type,expected:Ht.map,received:s.parsedType}),Pr;const n=this._def.keyType,i=this._def.valueType,o=[...s.data.entries()].map(([a,l],c)=>({key:n._parse(new Oh(s,a,s.path,[c,"key"])),value:i._parse(new Oh(s,l,s.path,[c,"value"]))}));if(s.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of o){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return Pr;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(c.value,u.value)}return{status:r.value,value:a}})}else{const a=new Map;for(const l of o){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return Pr;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(c.value,u.value)}return{status:r.value,value:a}}}}DF.create=(e,t,r)=>new DF({valueType:t,keyType:e,typeName:mr.ZodMap,..._r(r)});class Rv extends Yr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Ht.set)return Mt(s,{code:ft.invalid_type,expected:Ht.set,received:s.parsedType}),Pr;const n=this._def;n.minSize!==null&&s.data.size<n.minSize.value&&(Mt(s,{code:ft.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&s.data.size>n.maxSize.value&&(Mt(s,{code:ft.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());const i=this._def.valueType;function o(l){const c=new Set;for(const u of l){if(u.status==="aborted")return Pr;u.status==="dirty"&&r.dirty(),c.add(u.value)}return{status:r.value,value:c}}const a=[...s.data.values()].map((l,c)=>i._parse(new Oh(s,l,s.path,c)));return s.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(t,r){return new Rv({...this._def,minSize:{value:t,message:$t.toString(r)}})}max(t,r){return new Rv({...this._def,maxSize:{value:t,message:$t.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}Rv.create=(e,t)=>new Rv({valueType:e,minSize:null,maxSize:null,typeName:mr.ZodSet,..._r(t)});class rw extends Yr{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ht.function)return Mt(r,{code:ft.invalid_type,expected:Ht.function,received:r.parsedType}),Pr;function s(a,l){return EF({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,xF(),xw].filter(c=>!!c),issueData:{code:ft.invalid_arguments,argumentsError:l}})}function n(a,l){return EF({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,xF(),xw].filter(c=>!!c),issueData:{code:ft.invalid_return_type,returnTypeError:l}})}const i={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Pw){const a=this;return fa(async function(...l){const c=new Ul([]),u=await a._def.args.parseAsync(l,i).catch(g=>{throw c.addIssue(s(l,g)),c}),d=await Reflect.apply(o,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(g=>{throw c.addIssue(n(d,g)),c})})}else{const a=this;return fa(function(...l){const c=a._def.args.safeParse(l,i);if(!c.success)throw new Ul([s(l,c.error)]);const u=Reflect.apply(o,this,c.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new Ul([n(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new rw({...this._def,args:Nh.create(t).rest(lv.create())})}returns(t){return new rw({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,s){return new rw({args:t||Nh.create([]).rest(lv.create()),returns:r||lv.create(),typeName:mr.ZodFunction,..._r(s)})}}class kS extends Yr{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}kS.create=(e,t)=>new kS({getter:e,typeName:mr.ZodLazy,..._r(t)});class BS extends Yr{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return Mt(r,{received:r.data,code:ft.invalid_literal,expected:this._def.value}),Pr}return{status:"valid",value:t.data}}get value(){return this._def.value}}BS.create=(e,t)=>new BS({value:e,typeName:mr.ZodLiteral,..._r(t)});function jX(e,t){return new vA({values:e,typeName:mr.ZodEnum,..._r(t)})}class vA extends Yr{constructor(){super(...arguments),f1.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),s=this._def.values;return Mt(r,{expected:ms.joinValues(s),received:r.parsedType,code:ft.invalid_type}),Pr}if(FF(this,f1)||zX(this,f1,new Set(this._def.values)),!FF(this,f1).has(t.data)){const r=this._getOrReturnCtx(t),s=this._def.values;return Mt(r,{received:r.data,code:ft.invalid_enum_value,options:s}),Pr}return fa(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return vA.create(t,{...this._def,...r})}exclude(t,r=this._def){return vA.create(this.options.filter(s=>!t.includes(s)),{...this._def,...r})}}f1=new WeakMap;vA.create=jX;class LS extends Yr{constructor(){super(...arguments),A1.set(this,void 0)}_parse(t){const r=ms.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==Ht.string&&s.parsedType!==Ht.number){const n=ms.objectValues(r);return Mt(s,{expected:ms.joinValues(n),received:s.parsedType,code:ft.invalid_type}),Pr}if(FF(this,A1)||zX(this,A1,new Set(ms.getValidEnumValues(this._def.values))),!FF(this,A1).has(t.data)){const n=ms.objectValues(r);return Mt(s,{received:s.data,code:ft.invalid_enum_value,options:n}),Pr}return fa(t.data)}get enum(){return this._def.values}}A1=new WeakMap;LS.create=(e,t)=>new LS({values:e,typeName:mr.ZodNativeEnum,..._r(t)});class Pw extends Yr{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ht.promise&&r.common.async===!1)return Mt(r,{code:ft.invalid_type,expected:Ht.promise,received:r.parsedType}),Pr;const s=r.parsedType===Ht.promise?r.data:Promise.resolve(r.data);return fa(s.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Pw.create=(e,t)=>new Pw({type:e,typeName:mr.ZodPromise,..._r(t)});class od extends Yr{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===mr.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:s}=this._processInputParams(t),n=this._def.effect||null,i={addIssue:o=>{Mt(s,o),o.fatal?r.abort():r.dirty()},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),n.type==="preprocess"){const o=n.transform(s.data,i);if(s.common.async)return Promise.resolve(o).then(async a=>{if(r.value==="aborted")return Pr;const l=await this._def.schema._parseAsync({data:a,path:s.path,parent:s});return l.status==="aborted"?Pr:l.status==="dirty"||r.value==="dirty"?PF(l.value):l});{if(r.value==="aborted")return Pr;const a=this._def.schema._parseSync({data:o,path:s.path,parent:s});return a.status==="aborted"?Pr:a.status==="dirty"||r.value==="dirty"?PF(a.value):a}}if(n.type==="refinement"){const o=a=>{const l=n.refinement(a,i);if(s.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(s.common.async===!1){const a=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?Pr:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(a=>a.status==="aborted"?Pr:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(n.type==="transform")if(s.common.async===!1){const o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!ES(o))return o;const a=n.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>ES(o)?Promise.resolve(n.transform(o.value,i)).then(a=>({status:r.value,value:a})):o);ms.assertNever(n)}}od.create=(e,t,r)=>new od({schema:e,typeName:mr.ZodEffects,effect:t,..._r(r)});od.createWithPreprocess=(e,t,r)=>new od({schema:t,effect:{type:"preprocess",transform:e},typeName:mr.ZodEffects,..._r(r)});class Dh extends Yr{_parse(t){return this._getType(t)===Ht.undefined?fa(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Dh.create=(e,t)=>new Dh({innerType:e,typeName:mr.ZodOptional,..._r(t)});class CA extends Yr{_parse(t){return this._getType(t)===Ht.null?fa(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}CA.create=(e,t)=>new CA({innerType:e,typeName:mr.ZodNullable,..._r(t)});class HS extends Yr{_parse(t){const{ctx:r}=this._processInputParams(t);let s=r.data;return r.parsedType===Ht.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}HS.create=(e,t)=>new HS({innerType:e,typeName:mr.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,..._r(t)});class GS extends Yr{_parse(t){const{ctx:r}=this._processInputParams(t),s={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return PS(n)?n.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ul(s.common.issues)},input:s.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new Ul(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}GS.create=(e,t)=>new GS({innerType:e,typeName:mr.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,..._r(t)});class MF extends Yr{_parse(t){if(this._getType(t)!==Ht.nan){const r=this._getOrReturnCtx(t);return Mt(r,{code:ft.invalid_type,expected:Ht.nan,received:r.parsedType}),Pr}return{status:"valid",value:t.data}}}MF.create=e=>new MF({typeName:mr.ZodNaN,..._r(e)});const wTe=Symbol("zod_brand");class d5 extends Yr{_parse(t){const{ctx:r}=this._processInputParams(t),s=r.data;return this._def.type._parse({data:s,path:r.path,parent:r})}unwrap(){return this._def.type}}class Xx extends Yr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{const n=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?Pr:n.status==="dirty"?(r.dirty(),PF(n.value)):this._def.out._parseAsync({data:n.value,path:s.path,parent:s})})();{const n=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?Pr:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:s.path,parent:s})}}static create(t,r){return new Xx({in:t,out:r,typeName:mr.ZodPipeline})}}class OS extends Yr{_parse(t){const r=this._def.innerType._parse(t),s=n=>(ES(n)&&(n.value=Object.freeze(n.value)),n);return PS(r)?r.then(n=>s(n)):s(r)}unwrap(){return this._def.innerType}}OS.create=(e,t)=>new OS({innerType:e,typeName:mr.ZodReadonly,..._r(t)});function KX(e,t={},r){return e?Ew.create().superRefine((s,n)=>{var i,o;if(!e(s)){const a=typeof t=="function"?t(s):typeof t=="string"?{message:t}:t,l=(o=(i=a.fatal)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:!0,c=typeof a=="string"?{message:a}:a;n.addIssue({code:"custom",...c,fatal:l})}}):Ew.create()}const yTe={object:Fn.lazycreate};var mr;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(mr||(mr={}));const bTe=(e,t={message:`Input not instance of ${e.name}`})=>KX(r=>r instanceof e,t),YX=zu.create,ZX=AA.create,STe=MF.create,xTe=mA.create,XX=FS.create,ETe=Fv.create,PTe=RF.create,FTe=RS.create,RTe=TS.create,TTe=Ew.create,DTe=lv.create,MTe=Ag.create,ITe=TF.create,kTe=$u.create,BTe=Fn.create,LTe=Fn.strictCreate,HTe=DS.create,GTe=yT.create,OTe=MS.create,NTe=Nh.create,_Te=IS.create,VTe=DF.create,zTe=Rv.create,QTe=rw.create,UTe=kS.create,WTe=BS.create,jTe=vA.create,KTe=LS.create,YTe=Pw.create,GG=od.create,ZTe=Dh.create,XTe=CA.create,$Te=od.createWithPreprocess,JTe=Xx.create,qTe=()=>YX().optional(),eDe=()=>ZX().optional(),tDe=()=>XX().optional(),rDe={string:e=>zu.create({...e,coerce:!0}),number:e=>AA.create({...e,coerce:!0}),boolean:e=>FS.create({...e,coerce:!0}),bigint:e=>mA.create({...e,coerce:!0}),date:e=>Fv.create({...e,coerce:!0})},sDe=Pr;var y=Object.freeze({__proto__:null,defaultErrorMap:xw,setErrorMap:sTe,getErrorMap:xF,makeIssue:EF,EMPTY_PATH:nTe,addIssueToContext:Mt,ParseStatus:Go,INVALID:Pr,DIRTY:PF,OK:fa,isAborted:jk,isDirty:Kk,isValid:ES,isAsync:PS,get util(){return ms},get objectUtil(){return Wk},ZodParsedType:Ht,getParsedType:Yf,ZodType:Yr,datetimeRegex:WX,ZodString:zu,ZodNumber:AA,ZodBigInt:mA,ZodBoolean:FS,ZodDate:Fv,ZodSymbol:RF,ZodUndefined:RS,ZodNull:TS,ZodAny:Ew,ZodUnknown:lv,ZodNever:Ag,ZodVoid:TF,ZodArray:$u,ZodObject:Fn,ZodUnion:DS,ZodDiscriminatedUnion:yT,ZodIntersection:MS,ZodTuple:Nh,ZodRecord:IS,ZodMap:DF,ZodSet:Rv,ZodFunction:rw,ZodLazy:kS,ZodLiteral:BS,ZodEnum:vA,ZodNativeEnum:LS,ZodPromise:Pw,ZodEffects:od,ZodTransformer:od,ZodOptional:Dh,ZodNullable:CA,ZodDefault:HS,ZodCatch:GS,ZodNaN:MF,BRAND:wTe,ZodBranded:d5,ZodPipeline:Xx,ZodReadonly:OS,custom:KX,Schema:Yr,ZodSchema:Yr,late:yTe,get ZodFirstPartyTypeKind(){return mr},coerce:rDe,any:TTe,array:kTe,bigint:xTe,boolean:XX,date:ETe,discriminatedUnion:GTe,effect:GG,enum:jTe,function:QTe,instanceof:bTe,intersection:OTe,lazy:UTe,literal:WTe,map:VTe,nan:STe,nativeEnum:KTe,never:MTe,null:RTe,nullable:XTe,number:ZX,object:BTe,oboolean:tDe,onumber:eDe,optional:ZTe,ostring:qTe,pipeline:JTe,preprocess:$Te,promise:YTe,record:_Te,set:zTe,strictObject:LTe,string:YX,symbol:PTe,transformer:GG,tuple:NTe,undefined:FTe,union:HTe,unknown:DTe,void:ITe,NEVER:sDe,ZodIssueCode:ft,quotelessJson:rTe,ZodError:Ul});y.object({__isRef:y.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),blockId:y.string().describe("Upstream block id"),name:y.string().describe("Name of the output provided to the upstream block's output context"),requireEnrichments:y.literal(!0).optional().describe("True if current block that stores this reference in its args, may need enrichments for the references value originating from the blocks in between current and referenced block")}).describe("Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees.").readonly();const nDe=24;y.string().length(nDe).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");var OG={exports:{}};(function(e,t){t=e.exports=r,t.getSerialize=s;function r(n,i,o,a){return JSON.stringify(n,s(i,a),o)}function s(n,i){var o=[],a=[];return i==null&&(i=function(l,c){return o[0]===c?"[Circular ~]":"[Circular ~."+a.slice(0,o.indexOf(c)).join(".")+"]"}),function(l,c){if(o.length>0){var u=o.indexOf(this);~u?o.splice(u+1):o.push(this),~u?a.splice(u,1/0,l):a.push(l),~o.indexOf(c)&&(c=i.call(this,l,c))}else o.push(c);return n==null?c:n.call(this,l,c)}}})(OG,OG.exports);const iDe=y.object({type:y.literal("PlError"),name:y.string(),message:y.string(),fullMessage:y.string().optional(),stack:y.string().optional()}),oDe=iDe.extend({cause:y.lazy(()=>IF).optional(),errors:y.lazy(()=>IF.array()).optional()}),aDe=y.object({type:y.literal("StandardError"),name:y.string(),message:y.string(),stack:y.string().optional()}),lDe=aDe.extend({cause:y.lazy(()=>IF).optional(),errors:y.lazy(()=>IF.array()).optional()}),IF=y.union([lDe,oDe]),cDe=y.object({name:y.string(),message:y.string(),fullMessage:y.string().optional(),stack:y.string().optional()}),NG=cDe.extend({cause:y.lazy(()=>NG).optional(),errors:y.lazy(()=>NG.array()).optional()});function uDe(e){if(e&&typeof globalThis.getPlatforma=="function")return globalThis.getPlatforma(e);if(typeof globalThis.platforma<"u")return globalThis.platforma;throw new Error("Can't get platforma instance.")}const dDe=y.object({type:y.string(),importance:y.number().optional(),id:y.string().optional(),label:y.string()});y.array(dDe);const hDe="1.31.6";function $X(){return uDe({sdkVersion:hDe})}function pDe(e){try{return $X()}catch{return e}}function gDe(e){if(typeof globalThis.getEnvironmentValue=="function")return globalThis.getEnvironmentValue(e)}class fDe extends Error{}class JX extends Error{constructor(t){super(t.map(r=>typeof r=="string"?r:r.message).join(`
667
+ `),this.eChart=fe,this.eWrapper=fe,this.eChartContainer=fe,this.eMenuContainer=fe,this.eEmpty=fe,this.params=e}wireBeans(e){this.crossFilterService=e.chartCrossFilterSvc,this.chartTranslation=e.chartTranslation,this.chartMenuSvc=e.chartMenuSvc,this.focusSvc=e.focusSvc,this.popupSvc=e.popupSvc,this.enterpriseChartProxyFactory=e.enterpriseChartProxyFactory,this.environment=e.environment}postConstruct(){const e={...this.params,chartType:SS(this.params.chartType),chartThemeName:this.getThemeName()},t=this.gos.get("enableRtl");this.eWrapper.classList.add(t?"ag-rtl":"ag-ltr");const r=this.createBean(new y2e(e));this.chartController=this.createManagedBean(new nFe(r)),this.chartOptionsService=this.createManagedBean(new hRe(this.chartController)),this.validateCustomThemes(),this.createChart(),this.params.insideDialog?this.addDialog():(this.addManagedEventListeners({gridStylesChanged:this.updateTheme.bind(this)}),this.updateTheme()),this.addMenu(),this.addManagedElementListeners(this.getGui(),{focusin:this.setActiveChartCellRange.bind(this)}),this.addManagedListeners(this.chartController,{chartModelUpdate:this.update.bind(this)}),this.addManagedPropertyListeners(["chartThemeOverrides","chartThemes"],this.reactivePropertyUpdate.bind(this)),this.update(),this.raiseChartCreatedEvent()}updateTheme(){this.environment.applyThemeClasses(this.getGui())}createChart(){let e;this.chartProxy&&(e=this.chartProxy.destroy({keepChartInstance:!0}));const t=(n,i)=>{const o=this.params.crossFilteringContext;o.lastSelectedChartId=i?"":this.chartController.getChartId(),i&&this.params.crossFilteringResetCallback(),this.crossFilterService.filter(n,i)},r=this.chartController.getChartType(),s={agChartsExports:this.beans.agChartsExports,chartType:r,chartInstance:e,getChartThemeName:this.getChartThemeName.bind(this),getChartThemes:this.getChartThemes.bind(this),customChartThemes:this.gos.get("customChartThemes"),getGridOptionsChartThemeOverrides:()=>this.getGridOptionsChartThemeOverrides(),getExtraPaddingDirections:()=>{var n;return((n=this.chartMenu)==null?void 0:n.getExtraPaddingDirections())??[]},apiChartThemeOverrides:this.params.chartThemeOverrides,crossFiltering:this.params.crossFiltering??!1,crossFilterCallback:t,parentElement:this.eChart,grouping:this.chartController.isGrouping(),chartThemeToRestore:this.params.chartThemeName,chartOptionsToRestore:this.params.chartOptionsToRestore,chartPaletteToRestore:this.params.chartPaletteToRestore,seriesChartTypes:this.chartController.getSeriesChartTypes(),translate:n=>this.chartTranslation.translate(n)};if(this.params.chartOptionsToRestore=void 0,this.chartType=r,this.chartProxy=this.createChartProxy(s),!this.chartProxy){Ce(138,{chartType:s.chartType});return}this.chartController.setChartProxy(this.chartProxy),this.createMenuContext()}createMenuContext(){if(this.chartMenuContext)return;const e=this.createManagedBean(new Ev(this.chartOptionsService.getChartThemeOverridesProxy())),t=this.createManagedBean(new Ev(this.chartOptionsService.getAxisThemeOverridesProxy()));this.chartMenuContext={chartController:this.chartController,chartOptionsService:this.chartOptionsService,chartMenuParamsFactory:e,chartAxisMenuParamsFactory:t}}getChartThemeName(){return this.chartController.getChartThemeName()}getChartThemes(){return this.chartController.getThemeNames()}getGridOptionsChartThemeOverrides(){return this.gos.get("chartThemeOverrides")}createChartProxy(e){var s;const{chartType:t}=e;switch(t){case"column":case"bar":case"groupedColumn":case"stackedColumn":case"normalizedColumn":case"groupedBar":case"stackedBar":case"normalizedBar":return new aFe(e);case"pie":case"donut":case"doughnut":return new hFe(e);case"area":case"stackedArea":case"normalizedArea":return new iFe(e);case"line":case"stackedLine":case"normalizedLine":return new lFe(e);case"scatter":case"bubble":return new cFe(e);case"columnLineCombo":case"areaColumnCombo":case"customCombo":return new uFe(e)}const r=(s=this.enterpriseChartProxyFactory)==null?void 0:s.createChartProxy(e);if(!r)throw Kc(251,{chartType:t});return r}addDialog(){const e=this.chartTranslation.translate(this.params.pivotChart?"pivotChartTitle":"rangeChartTitle"),{width:t,height:r}=this.getBestDialogSize(),s=this.params.focusDialogOnOpen?()=>setTimeout(()=>wi(this.getGui())):void 0;this.chartDialog=new Ux({resizable:!0,movable:!0,maximizable:!0,title:e,width:t,height:r,component:this,centered:!0,closable:!0,afterGuiAttached:s,postProcessPopupParams:{type:"chart"}}),this.createBean(this.chartDialog),this.chartDialog.addEventListener("destroyed",()=>{this.destroy(),this.chartMenuSvc.hideAdvancedSettings();const n=this.focusSvc.getFocusedCell();setTimeout(()=>{this.focusSvc.isAlive()&&(n?this.focusSvc.setFocusedCell({...n,forceBrowserFocus:!0}):Nj(this.beans))})})}getBestDialogSize(){const e=this.popupSvc.getPopupParent(),t=mv(e)*.75,r=KR(e)*.75,s=.553,n=this.chartProxy.getChart();let i=this.params.insideDialog?850:n.width,o=this.params.insideDialog?470:n.height;return(i>t||o>r)&&(i=Math.min(i,t),o=Math.round(i*s),o>r&&(o=r,i=Math.min(i,Math.round(o/s)))),{width:i,height:o}}addMenu(){this.params.crossFiltering||(this.chartMenu=this.createBean(new cRe(this.eChartContainer,this.eMenuContainer,this.chartMenuContext)),this.eChartContainer.appendChild(this.chartMenu.getGui()))}update(e){if(e!=null&&e.chartId&&!this.chartController.update(e))return;const t=this.chartTypeChanged(e),r=t||this.chartEmpty?(n=>{const i=this.chartType,o=n,a=this.chartProxy.getChart(),l=a==null?void 0:a.getOptions(),c=a==null?void 0:a.axes;return this.chartOptionsService.getPersistedChartThemeOverrides(l,c,i,o??i)})(t):void 0;t&&this.createChart(),r&&(e!=null&&e.chartThemeOverrides)&&Kn(r,e.chartThemeOverrides);const s=r??(e==null?void 0:e.chartThemeOverrides);this.updateChart(s),e!=null&&e.chartId&&this.chartProxy.getChart().waitForUpdate().then(()=>{this.chartController.raiseChartApiUpdateEvent()})}updateChart(e){const{chartProxy:t}=this,r=this.chartController.getSelectedValueColState(),s=this.chartController.getChartData(),n=this.handleEmptyChart(s,r.length);if(this.chartEmpty=n,n){e&&this.chartController.updateThemeOverrides(e);return}const i=this.chartController.getChartUpdateParams(e);t.update(i),this.chartProxy.getChart().waitForUpdate().then(()=>{this.chartController.raiseChartUpdatedEvent()})}chartTypeChanged(e){const[t,r]=[this.chartController.getChartType(),e==null?void 0:e.chartType],s=r?SS(r):void 0;return this.chartType!==t?s??t:s&&t!==s?s:null}getChartModel(){return this.chartController.getChartModel()}getChartImageDataURL(e){return this.chartProxy.getChartImageDataURL(e)}handleEmptyChart(e,t){const r=this.chartController.isPivotChart()&&!this.chartController.isPivotMode(),s=this.chartController.getChartType();let n=1;this.chartController.isActiveXYChart()?n=s==="bubble"?3:2:Zm(ln(s))&&(n=0);const i=t<n||e.length===0;if(this.eChart){const o=r||i;vt(this.eChart,!o),vt(this.eEmpty,o)}return r?(this.eEmpty.innerText=this.chartTranslation.translate("pivotChartRequiresPivotMode"),!0):i?(this.eEmpty.innerText=this.chartTranslation.translate("noDataToChart"),!0):!1}downloadChart(e,t,r){this.chartProxy.downloadChart(e,t,r)}openChartToolPanel(e){const t=e&&C2[e];this.chartMenu.showMenu({panel:t})}closeChartToolPanel(){this.chartMenu.hideMenu()}getChartId(){return this.chartController.getChartId()}getUnderlyingChart(){return this.chartProxy.getChartRef()}crossFilteringReset(){this.chartProxy.crossFilteringReset()}setActiveChartCellRange(e){this.getGui().contains(e.relatedTarget)||this.chartController.setChartRange(!0)}getThemeName(){const e=this.gos.get("chartThemes")||QZ;if(e.length===0)throw new Error(Kc(254));const{chartThemeName:t}=this.params;return e.includes(t)?t:e[0]}getAllKeysInObjects(e){const t={};return e.filter(r=>r!=null).forEach(r=>{Object.keys(r).forEach(s=>t[s]=null)}),Object.keys(t)}validateCustomThemes(){const e=this.getChartThemes(),t=this.gos.get("customChartThemes");t&&this.getAllKeysInObjects([t]).forEach(r=>{e.includes(r)||Ce(139,{customThemeName:r})})}reactivePropertyUpdate(){this.chartController.setChartThemeName(this.getThemeName(),!0);const e=this.getChartId(),t=this.chartController.isCrossFilterChart()?"crossFilter":this.getChartModel().modelType,r=this.gos.get("chartThemeOverrides")||{};this.update({type:`${t}ChartUpdate`,chartId:e,chartThemeOverrides:r})}raiseChartCreatedEvent(){this.chartProxy.getChart().waitForUpdate().then(()=>{this.eventSvc.dispatchEvent({type:"chartCreated",chartId:this.chartController.getChartId()})})}raiseChartDestroyedEvent(){this.eventSvc.dispatchEvent({type:"chartDestroyed",chartId:this.chartController.getChartId()})}destroy(){var t;super.destroy(),this.chartProxy&&this.chartProxy.destroy(),this.destroyBean(this.chartMenu),this.chartDialog&&this.chartDialog.isAlive()&&this.destroyBean(this.chartDialog),(t=this.onDestroyColorSchemeChangeListener)==null||t.call(this);const e=this.getGui();$r(e),Dn(e),this.raiseChartDestroyedEvent()}};function fRe(e){return e.version,e.version==null&&(e.version=DRe(e)),e=Ro("23.0.0",e,ARe),e=Ro("24.0.0",e,mRe),e=Ro("25.1.0",e,vRe),e=Ro("26.0.0",e,CRe),e=Ro("26.1.0",e,wRe),e=Ro("26.2.0",e,yRe),e=Ro("28.0.0",e,bRe),e=Ro("28.2.0",e,SRe),e=Ro("29.0.0",e,xRe),e=Ro("29.1.0",e,BX),e=Ro("29.2.0",e,LX),e=Ro("30.0.0",e,ERe),e=Ro("31.0.0",e,PRe),e=Ro("32.0.0",e,FRe),e=Ro("33.0.0",e,RRe),e=TRe(e),e=Ro(Rr,e,t=>t),e}function ARe(e){return e=to("chartOptions.legend.item.marker.type","shape",e),e=to("chartOptions.seriesDefaults.marker.type","shape",e),e=to("chartOptions.legend.padding","spacing",e),e}function mRe(e){e=js("chartOptions.seriesDefaults.marker.minSize",e);const{chartType:t,chartPalette:r,chartOptions:{xAxis:s,yAxis:n,...i},...o}=e,a=$Pe(t),l=a==null?void 0:a.map((u,d)=>({type:u,...d===0?s:n}));return{chartType:t,chartThemeName:{borneo:"ag-default",material:"ag-material",bright:"ag-vivid"}[r]??"ag-default",chartOptions:{...i,axes:l,xAxis:s,yAxis:n},...o}}function vRe(e){return e=to("chartOptions.seriesDefaults.label.minRequiredAngle","minAngle",e),e}function CRe(e){return e=sg("chartOptions.seriesDefaults.highlightStyle",e,({dimOpacity:r,...s})=>({...s,...r!=null?{series:{dimOpacity:r}}:{}})),e=js("chart",e),e=js("chartOptions.seriesDefaults.tooltipClass",e),e=js("chartOptions.seriesDefaults.tooltipTracking",e),e=FG("chartOptions.axes[].label.rotation",0,e),e=FG("chartOptions.axes[].label.rotation",335,e),e}function wRe(e){const t=({item:r,series:s,...n})=>({item:{...n,...r},...s?{series:s}:{}});return e=sg("chartOptions.seriesDefaults.highlightStyle",e,t),e=sg("chartOptions.series[].highlightStyle",e,t),e}function yRe(e){e=w2("chartOptions.seriesDefaults.fill.opacity","chartOptions.seriesDefaults.fillOpacity",e),e=w2("chartOptions.seriesDefaults.stroke.opacity","chartOptions.seriesDefaults.strokeOpacity",e),e=w2("chartOptions.seriesDefaults.stroke.width","chartOptions.seriesDefaults.strokeWidth",e),e=js("chartOptions.seriesDefaults.fill",e),e=js("chartOptions.seriesDefaults.stroke",e),e=js("chartOptions.seriesDefaults.callout.colors",e),e=js("chartOptions.xAxis",e),e=js("chartOptions.yAxis",e);const{chartType:t,chartOptions:{axes:r,series:s,seriesDefaults:n,...i},...o}=e,a=SS(t),l=ln(a),c=[l],u={};if(!DZ(l)){const g={top:{},bottom:{},left:{},right:{}},A=r.map(({type:w,...v})=>({[w]:{...g,...v}})).reduce(TG,{});IZ.filter(w=>A[w]==null).forEach(w=>{A[w]={...g}}),u.axes=A}const d=c.map(g=>({[g]:{...u,series:n,...i}})).reduce(TG,{});return e={...o,chartType:a,chartOptions:d},e}function bRe(e){return e=js("chartOptions.*.title.padding",e),e=js("chartOptions.*.subtitle.padding",e),e=js("chartOptions.*.axes.*.title.padding",e),e=c5("chartOptions.*.axes.*.title.enabled",!1,e),e}function SRe(e){return e=to("chartOptions.pie.series.callout","calloutLine",e),e=to("chartOptions.pie.series.label","calloutLabel",e),e=to("chartOptions.pie.series.labelKey","sectorLabelKey",e),e=to("chartOptions.pie.series.labelName","sectorLabelName",e),e=to("chartOptions.donut.series.callout","calloutLine",e),e=to("chartOptions.donut.series.label","calloutLabel",e),e=to("chartOptions.donut.series.labelKey","sectorLabelKey",e),e=to("chartOptions.donut.series.labelName","sectorLabelName",e),e}function xRe(e){return e=Mb("chartOptions.scatter.series.fill","chartOptions.scatter.series.marker.fill",e),e=Mb("chartOptions.scatter.series.fillOpacity","chartOptions.scatter.series.marker.fillOpacity",e),e=Mb("chartOptions.scatter.series.stroke","chartOptions.scatter.series.marker.stroke",e),e=Mb("chartOptions.scatter.series.strokeOpacity","chartOptions.scatter.series.marker.strokeOpacity",e),e=Mb("chartOptions.scatter.series.strokeWidth","chartOptions.scatter.series.marker.strokeWidth",e),e=w2("chartOptions.scatter.series.paired","chartOptions.scatter.paired",e),e}function BX(e){return e=js("chartOptions.axes[].tick.count",e),e}function LX(e){return e=sg("chartOptions.*.tooltip",e,({tracking:r,...s})=>{const n={...s};return r===!1?(n.position??(n.position={type:"pointer"}),n.range??(n.range="nearest")):r===!0&&(n.position??(n.position={type:"node"}),n.range??(n.range="nearest")),n}),e}function ERe(e){return e=to("chartOptions.pie.series.labelKey","sectorLabelKey",e),e=to("chartOptions.pie.series.labelName","sectorLabelName",e),e=BX(e),e=LX(e),e=js("chartOptions.*.series.flipXY",e),e=HX("chartOptions.common.legend.enabled",!0,e),e=c5("chartOptions.common.legend.position","right",e),e}function PRe(e){const t={"ag-pastel":"ag-sheets","ag-solar":"ag-polychroma"},r=to("chartOptions.column","bar",e),s=t[r.chartThemeName]||r.chartThemeName;return{...r,chartThemeName:s}}function FRe(e){return e=id("chartOptions.*.autoSize",!0,e,(t,r)=>{t[r]===!0||t[r]===!1&&(t.minHeight=600,t.minWidth=300),delete t[r]}),e}function RRe(e){return e=js("chartOptions.*.axes.category.label.format",e),e=js("chartOptions.*.axes.category.crosshair.label.format",e),e=js("chartOptions.*.axes.angle-category.label.format",e),e=js("chartOptions.*.axes.radius-category.label.format",e),e=to("chartOptions.*.axes.*.label.padding","spacing",e),e=to("chartOptions.*.navigator.miniChart.label.padding","spacing",e),e=js("chartOptions.*.axes.*.crossLines.label.className",e),e=id("chartOptions.*.axes.*.crossLines.label.position",!0,e,(t,r)=>{typeof t[r]=="string"&&(t[r]=t[r].replace(/([A-Z])/,"-$1").toLowerCase())}),e=js("chartOptions.bullet",e),e=RG("chartOptions.bar.series.label.placement",e,{inside:"inside-center",outside:"inside-end"}),e=RG("chartOptions.waterfall.series.item.*.label.placement",e,{inside:"inside-center",start:"outside-start",end:"outside-end"}),e=js("chartOptions.*.navigator.min",e),e=js("chartOptions.*.navigator.max",e),e=js("chartOptions.*.zoom.ratioX",e),e=js("chartOptions.*.zoom.ratioY",e),e=js("chartOptions.*.zoom.rangeX",e),e=js("chartOptions.*.zoom.rangeY",e),e}function TRe(e){return e=js("chartOptions.*.width",e),e=js("chartOptions.*.height",e),e=c5("chartOptions.*.axes.category.label.autoRotate",!0,e),e}function DRe(e){var c,u;const t=e;if(e.version!=null)return e.version;const r=(d,...g)=>Object.keys(d||{}).some(A=>g.includes(A)),s=t.chartOptions,n=r(s,"seriesDefaults")?s==null?void 0:s.seriesDefaults:s==null?void 0:s[Object.keys(s)[0]],i={"27.0.0":r(t,"seriesChartTypes"),"26.2.0":!r(s,"seriesDefaults"),"26.1.0":r(n==null?void 0:n.highlightStyle,"item"),"26.0.0":r(n==null?void 0:n.highlightStyle,"series"),"25.1.0":r(n==null?void 0:n.label,"minAngle"),"25.0.0":r(t,"modelType","aggFunc","unlinkChart","suppressChartRanges")||r(n,"lineDash","lineDashOffset"),"24.0.0":r(t,"chartThemeName","chart")||r(s,"series"),"23.2.0":r(s,"navigator"),"23.0.0":r((u=(c=s==null?void 0:s.legend)==null?void 0:c.item)==null?void 0:u.marker,"shape"),"22.1.0":r(t,"chartPalette","chartType")},o="27.1.0",a=Object.entries(i).filter(([d,g])=>g),[l=o]=a[0];return l}function Ro(e,t,r){if(PG(e)>PG(t.version)){const s=r(t);return s.version=e,s}return t}function MRe(e){const t=e.includes("-beta")?e.replace(/-beta.*/,""):e,r=typeof t=="string"?t.split(".").map(s=>Number(s)):[];if(r.length!==3||r.some(s=>isNaN(s)))throw new Error(Kc(253,{version:t}));return{major:r[0],minor:r[1],patch:r[2]}}function PG(e){const{major:t,minor:r,patch:s}=MRe(e);return t*1e4+r*100+s}function FG(e,t,r){return id(e,!0,r,(s,n)=>{s[n]===t&&delete s[n]})}function c5(e,t,r){return id(e,!1,r,(s,n)=>{s[n]==null&&(s[n]=t)})}function HX(e,t,r){typeof e=="string"&&(e=e.split("."));const s=e[0];return e.length>1&&(r[s]=HX(e.slice(1),t,r[s]??{})),Object.keys(r).includes(s)||(r[s]=t),r}function w2(e,t,r){let s,n=!1;return r=id(e,!0,r,(i,o)=>{n=!0,s=i[o],delete i[o]}),n?id(t,!1,r,(i,o)=>{i[o]=s}):r}function Mb(e,t,r){let s,n=!1;return r=id(e,!0,r,(i,o)=>{n=!0,s=i[o],delete i[o]}),n?id(t,!1,r,(i,o)=>{i[o]===void 0&&(i[o]=s)}):r}function to(e,t,r){return id(e,!0,r,(s,n)=>{s[t]=s[n],delete s[n]})}function js(e,t){return id(e,!0,t,(r,s)=>delete r[s])}function id(e,t,r,s){const n=e instanceof Array?e:e.split("."),i=n.slice(0,n.length-1),o=n[n.length-1];return sg(i,r,a=>{const l=Object.keys(a).includes(o);if(t&&!l)return a;const c={...a};return s(c,o),c})}function sg(e,t,r){const s=e instanceof Array?e:e.split(".");if(t={...t},s.length===0)return r(t);if(s[0].startsWith("{")){const n=s[0].substring(1,s[0].lastIndexOf("}")).split(",");for(const i of n)t[i]!=null&&(t[i]=sg(s.slice(1),t[i],r))}else if(s[0].endsWith("[]")){const n=s[0].substring(0,e[0].indexOf("["));t[n]instanceof Array&&(t[n]=t[n].map(i=>sg(s.slice(1),i,r)))}else if(s[0]==="*")for(const n of Object.keys(t))t[n]=sg(s.slice(1),t[n],r);else t[s[0]]!=null&&(t[s[0]]=sg(s.slice(1),t[s[0]],r));return t}function RG(e,t,r){return id(e,!0,t,(s,n)=>{typeof s[n]=="string"&&(s[n]=r[n]??n)})}var TG=(e,t)=>({...e,...t}),IRe=class extends ve{constructor(){super(...arguments),this.beanName="chartSvc",this.activeCharts=new Set,this.activeChartComps=new Set,this.crossFilteringContext={lastSelectedChartId:""},this.isEnterprise=()=>this.agChartsExports.isEnterprise}wireBeans(e){this.visibleCols=e.visibleCols,this.rangeSvc=e.rangeSvc,this.agChartsExports=e.agChartsExports}updateChart(e){if(this.activeChartComps.size===0){Ce(124);return}const t=[...this.activeChartComps].find(r=>r.getChartId()===e.chartId);if(!t){Ce(125,{chartId:e.chartId});return}t.update(e)}getChartModels(){const e=[],t=r=>({...r,version:Rr});return this.activeChartComps.forEach(r=>e.push(t(r.getChartModel()))),e}getChartRef(e){let t;return this.activeCharts.forEach(r=>{r.chartId===e&&(t=r)}),t}getChartComp(e){let t;return this.activeChartComps.forEach(r=>{r.getChartId()===e&&(t=r)}),t}getChartImageDataURL(e){let t;return this.activeChartComps.forEach(r=>{r.getChartId()===e.chartId&&(t=r.getChartImageDataURL(e.fileFormat))}),t}downloadChart(e){const t=Array.from(this.activeChartComps).find(r=>r.getChartId()===e.chartId);t==null||t.downloadChart(e.dimensions,e.fileName,e.fileFormat)}openChartToolPanel(e){const t=Array.from(this.activeChartComps).find(r=>r.getChartId()===e.chartId);t==null||t.openChartToolPanel(e.panel)}closeChartToolPanel(e){const t=Array.from(this.activeChartComps).find(r=>r.getChartId()===e);t==null||t.closeChartToolPanel()}createChartFromCurrentRange(e="groupedColumn",t){const r=this.getSelectedRange();return this.createChart({cellRange:r,chartType:e,focusDialogOnOpen:!t})}restoreChart(e,t){if(!e){Ce(126);return}e.version!==Rr&&(e=fRe(e));let r,s,n,i;if(e.modelType==="pivot"?(this.gos.updateGridOptions({options:{pivotMode:!0},source:"pivotChart"}),r=this.createCellRange(void 0,!0),s=!0,n=!0):(r=this.createCellRange(e.cellRange),i=e.chartPalette,n=e.suppressChartRanges),!!r)return this.createChart({...e,cellRange:r,pivotChart:s,suppressChartRanges:n,chartContainer:t,chartOptionsToRestore:e.chartOptions,chartPaletteToRestore:i})}createRangeChart(e,t){const r=this.createCellRange(e.cellRange);if(r)return this.createChart({...e,cellRange:r,focusDialogOnOpen:!t})}createPivotChart(e,t){this.gos.updateGridOptions({options:{pivotMode:!0},source:"pivotChart"});const r=this.createCellRange(void 0,!0);if(r)return this.createChart({...e,cellRange:r,pivotChart:!0,suppressChartRanges:!0,focusDialogOnOpen:!t})}createCrossFilterChart(e,t){const r=this.createCellRange(e.cellRange);if(!r)return;const n=typeof e.suppressChartRanges<"u"&&e.suppressChartRanges!==null?e.suppressChartRanges:!0;return this.createChart({...e,cellRange:r,suppressChartRanges:n,crossFiltering:!0,focusDialogOnOpen:!t})}createChart(e){const t=eFe(e,this.agChartsExports.isEnterprise);if(!t)return;e=t===!0?e:t;const{chartType:r,chartContainer:s}=e,n=this.gos.getCallback("createChartContainer"),i={...e,chartId:this.generateId(),chartType:SS(r),insideDialog:!(s||n),crossFilteringContext:this.crossFilteringContext,crossFilteringResetCallback:()=>this.activeChartComps.forEach(l=>l.crossFilteringReset())},o=new gRe(i);this.createBean(o);const a=this.createChartRef(o);return s?s.appendChild(a.chartElement):n?n(a):o.addEventListener("destroyed",()=>{this.activeChartComps.delete(o),this.activeCharts.delete(a)}),a}createChartRef(e){const t={destroyChart:()=>{this.activeCharts.has(t)&&(this.destroyBean(e),this.activeChartComps.delete(e),this.activeCharts.delete(t))},focusChart:()=>{wi(e.getGui())},chartElement:e.getGui(),chart:e.getUnderlyingChart(),chartId:e.getChartModel().chartId};return this.activeCharts.add(t),this.activeChartComps.add(e),t}getSelectedRange(){var t;const e=((t=this.rangeSvc)==null?void 0:t.getCellRanges())??[];return e.length>0?e[0]:{columns:[]}}generateId(){return`id-${Math.random().toString(36).substring(2,18)}`}createCellRange(e,t){var n;const r=t?{rowStartIndex:null,rowStartPinned:void 0,rowEndIndex:null,rowEndPinned:void 0,columns:this.visibleCols.allCols.map(i=>i.getColId())}:e,s=r&&((n=this.rangeSvc)==null?void 0:n.createPartialCellRangeFromRangeParams(r,!0));return s||Ce(127,{allRange:t}),s}destroy(){this.activeCharts.forEach(e=>e.destroyChart()),super.destroy()}};function kRe(e){return e.frameworkOverrides.wrapIncoming(()=>{var t;return(t=e.chartSvc)==null?void 0:t.getChartModels()})}function BRe(e,t){return e.frameworkOverrides.wrapIncoming(()=>{var r;return(r=e.chartSvc)==null?void 0:r.getChartRef(t)})}function LRe(e,t){return e.frameworkOverrides.wrapIncoming(()=>{var r;return(r=e.chartSvc)==null?void 0:r.getChartImageDataURL(t)})}function HRe(e,t){return e.frameworkOverrides.wrapIncoming(()=>{var r;return(r=e.chartSvc)==null?void 0:r.downloadChart(t)})}function GRe(e,t){return e.frameworkOverrides.wrapIncoming(()=>{var r;return(r=e.chartSvc)==null?void 0:r.openChartToolPanel(t)})}function ORe(e,t){return e.frameworkOverrides.wrapIncoming(()=>{var r;return(r=e.chartSvc)==null?void 0:r.closeChartToolPanel(t.chartId)})}function NRe(e,t){return e.frameworkOverrides.wrapIncoming(()=>{var r;return(r=e.chartSvc)==null?void 0:r.createRangeChart(t,!0)})}function _Re(e,t){return e.frameworkOverrides.wrapIncoming(()=>{var r;return(r=e.chartSvc)==null?void 0:r.createPivotChart(t,!0)})}function VRe(e,t){return e.frameworkOverrides.wrapIncoming(()=>{var r;return(r=e.chartSvc)==null?void 0:r.createCrossFilterChart(t,!0)})}function zRe(e,t){return e.frameworkOverrides.wrapIncoming(()=>{var r;return(r=e.chartSvc)==null?void 0:r.updateChart(t)})}function QRe(e,t,r){return e.frameworkOverrides.wrapIncoming(()=>{var s;return(s=e.chartSvc)==null?void 0:s.restoreChart(t,r)})}var URe=`.ag-chart{display:flex;height:100%;position:relative;width:100%}.ag-chart-components-wrapper{display:flex}.ag-chart-canvas-wrapper,.ag-chart-components-wrapper{flex:1 1 auto;position:relative}.ag-chart-menu{background:var(--ag-background-color);background-color:color-mix(in srgb,transparent,var(--ag-background-color) 30%);border-radius:var(--ag-border-radius);display:flex;flex-direction:row;gap:20px;padding:4px 2px;position:absolute;top:8px;width:auto;--ag-icon-size:20px}:where(.ag-ltr) .ag-chart-menu{justify-content:right;right:calc(var(--ag-cell-horizontal-padding) + var(--ag-spacing) - 4px)}:where(.ag-rtl) .ag-chart-menu{justify-content:left;left:calc(var(--ag-cell-horizontal-padding) + var(--ag-spacing) - 4px)}:where(.ag-chart) .ag-chart-menu{display:none}:where(.ag-chart-menu-hidden:hover) .ag-chart-menu{display:block}.ag-chart-docked-container{min-width:var(--ag-chart-menu-panel-width);position:relative}:where(.ag-chart-menu-hidden)~.ag-chart-docked-container{display:none}.ag-chart-tabbed-menu{display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%}.ag-chart-tabbed-menu-header{cursor:default;flex:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-chart-tabbed-menu-body{align-items:stretch;display:flex;flex:1 1 auto;overflow:hidden;position:relative;&:after{background:linear-gradient(var(--ag-background-color),transparent);content:"";display:block;height:16px;left:0;position:absolute;right:0;top:0}}.ag-chart-tab{overflow:hidden;overflow-y:auto;width:100%}.ag-chart-settings{overflow-x:hidden}.ag-chart-settings-wrapper{display:flex;flex-direction:column;height:100%;overflow:hidden;position:relative;width:100%}.ag-chart-settings-nav-bar{align-items:center;border-top:1px solid var(--ag-border-color);display:flex;height:30px;padding:0 10px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.ag-chart-settings-card-selector{align-items:center;display:flex;flex:1 1 auto;height:100%;justify-content:space-around;padding:0 10px}.ag-chart-settings-card-item{background-color:var(--ag-foreground-color);border-radius:4px;cursor:pointer;height:8px;position:relative;width:8px;&.ag-not-selected{opacity:.2}&:before{background-color:transparent;content:" ";display:block;height:20px;left:50%;margin-left:-10px;margin-top:-10px;position:absolute;top:50%;width:20px}&.ag-selected{background-color:var(--ag-accent-color)}}.ag-chart-settings-next,.ag-chart-settings-prev{flex:none;position:relative;&:focus-within{border-radius:1px;box-shadow:var(--ag-focus-shadow)}}.ag-chart-settings-next-button,.ag-chart-settings-prev-button{cursor:pointer;height:100%;left:0;opacity:0;position:absolute;top:0;width:100%}.ag-chart-settings-mini-charts-container{flex:1 1 auto;overflow:hidden auto;position:relative}.ag-chart-settings-mini-wrapper{display:flex;flex-direction:column;left:0;min-height:100%;overflow:hidden;padding-bottom:var(--ag-widget-container-vertical-padding);position:absolute;top:0;width:100%;&.ag-animating{transition:left .3s;transition-timing-function:ease-in-out}}.ag-chart-mini-thumbnail{border:1px solid var(--ag-border-color);border-radius:5px;cursor:pointer;&.ag-selected{border-color:var(--ag-accent-color);border-width:2px}&:focus-visible{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}}.ag-chart-mini-thumbnail-canvas{display:block}.ag-chart-advanced-settings-wrapper,.ag-chart-data-wrapper,.ag-chart-format-wrapper{display:flex;flex-direction:column;padding-bottom:16px;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ag-chart-advanced-settings-wrapper,.ag-chart-data-wrapper{height:100%;overflow-y:auto}.ag-chart-advanced-settings{background-color:var(--ag-chrome-background-color)}.ag-chart-advanced-settings,.ag-chart-advanced-settings-wrapper{width:100%}.ag-chart-advanced-settings-wrapper{padding-bottom:0}.ag-chart-advanced-settings-section{border-bottom:1px solid var(--ag-border-color);display:flex;margin:0;padding-bottom:var(--ag-widget-container-vertical-padding);padding-top:var(--ag-widget-container-vertical-padding)}.ag-chart-empty-text{align-items:center;background-color:var(--ag-background-color);display:flex;height:100%;justify-content:center;top:0;width:100%}.ag-charts-font-size-color{align-self:stretch;display:flex;justify-content:space-between}.ag-charts-data-group-item{padding-bottom:var(--ag-widget-container-vertical-padding);position:relative}.ag-charts-data-group-item:where(:not(:last-child)){margin-bottom:var(--ag-spacing)}.ag-chart-menu-icon{border-radius:var(--ag-border-radius);cursor:pointer;margin:2px 0;opacity:.8;&:hover{opacity:1}}.ag-chart-menu-toolbar-button{background-color:unset;border:0;border-radius:1px;padding:0 2px}.ag-chart-data-column-drag-handle{margin-left:var(--ag-spacing)}.ag-charts-advanced-settings-top-level-group-title-bar{background-color:unset;position:relative}.ag-charts-data-group-container{padding:calc(var(--ag-widget-container-vertical-padding)*.5) var(--ag-widget-container-horizontal-padding)}.ag-charts-data-group-item:where(:not(.ag-charts-format-sub-level-group,.ag-pill-select,.ag-select)){height:var(--ag-list-item-height)}.ag-charts-data-group-item:where(.ag-picker-field){margin-top:var(--ag-spacing)}.ag-charts-advanced-settings-top-level-group-container,.ag-charts-format-top-level-group-container{margin-left:calc(var(--ag-spacing)*2);padding:var(--ag-spacing)}.ag-charts-advanced-settings-top-level-group-item,.ag-charts-format-top-level-group-item{margin:var(--ag-spacing) 0}.ag-charts-format-sub-level-group-container{display:flex;flex-direction:column;padding:var(--ag-widget-vertical-spacing) 0}.ag-charts-settings-group-container{display:grid;grid-template-columns:60px 1fr 60px 1fr 60px;padding:var(--ag-spacing);row-gap:8px;:where(.ag-chart-mini-thumbnail:nth-child(3n+1)){grid-column:1}:where(.ag-chart-mini-thumbnail:nth-child(3n+2)){grid-column:3}:where(.ag-chart-mini-thumbnail:nth-child(3n+3)){grid-column:5}}.ag-chart-data-section,.ag-chart-format-section{display:flex;margin:0;:where(.ag-label:not(.ag-group-title-bar)){color:var(--ag-chart-menu-label-color)}:where(.ag-label-align-top .ag-label){margin-bottom:var(--ag-widget-vertical-spacing);margin-top:calc(var(--ag-widget-vertical-spacing)*.5)}:where(.ag-slider.ag-label-align-top .ag-label){margin-bottom:0}:where(label){display:inline-block}}.ag-chart-menu-panel{--ag-panel-background-color:var(--ag-chrome-background-color)}:where(.ag-ltr) .ag-chart-menu-panel{border-left:1px solid var(--ag-border-color)}:where(.ag-rtl) .ag-chart-menu-panel{border-right:1px solid var(--ag-border-color)}.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-container,.ag-charts-settings-group-title-bar{border-top:none;font-weight:500;padding:0 calc(var(--ag-spacing)*1.5)}.ag-charts-format-sub-level-group-title-bar{background:none;font-weight:500;padding:var(--ag-widget-vertical-spacing) 0}.ag-chart-data-wrapper,.ag-chart-format-wrapper,.ag-charts-data-group-container,.ag-charts-data-group-title-bar,.ag-charts-format-sub-level-group,.ag-charts-format-sub-level-group-container>*,.ag-charts-format-sub-level-group-item:last-child,.ag-charts-format-top-level-group,.ag-charts-format-top-level-group-item,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-container,.ag-charts-settings-group-title-bar,:where(.ag-charts-format-top-level-group) .ag-charts-format-top-level-group-container{margin:0;padding:0}.ag-charts-data-group-title-bar,.ag-charts-format-top-level-group-title-bar,.ag-charts-settings-group-title-bar{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:relative}.ag-charts-data-group,.ag-charts-format-top-level-group{border-top:1px solid var(--ag-border-color)}:where(.ag-charts-data-group) .ag-charts-data-group-container,:where(.ag-charts-format-top-level-group) .ag-charts-format-top-level-group-container,:where(.ag-charts-settings-group) .ag-charts-settings-group-container{padding:0 var(--ag-widget-container-horizontal-padding)}.ag-charts-format-sub-level-group-container>*,.ag-charts-format-sub-level-no-header-group-container>*,.ag-charts-format-top-level-group-container>*{margin-bottom:var(--ag-widget-vertical-spacing)}.ag-charts-advanced-settings-top-level-group-container{margin:0}:where(.ag-charts-advanced-settings-top-level-group){.ag-charts-advanced-settings-top-level-group-container,.ag-charts-advanced-settings-top-level-group-title-bar{padding:0 var(--ag-widget-container-horizontal-padding)}}.ag-charts-advanced-settings-top-level-group-item{margin-bottom:0;margin-top:calc(var(--ag-widget-vertical-spacing)*2)}.ag-chart-settings-card-item.ag-not-selected:hover{opacity:.35}.ag-angle-select{align-items:center;display:flex}.ag-angle-select-wrapper{display:flex}.ag-angle-select-parent-circle{background-color:var(--ag-background-color);border:1px solid;border-color:var(--ag-border-color);border-radius:12px;display:block;height:24px;position:relative;width:24px}.ag-angle-select-child-circle{background-color:var(--ag-foreground-color);border-radius:3px;height:6px;left:12px;margin-left:-3px;margin-top:-4px;position:absolute;top:4px;width:6px}.ag-slider-wrapper{display:flex;:where(.ag-input-field){flex:1 1 auto}}.ag-color-panel{display:flex;flex-direction:column;padding:var(--ag-spacing);text-align:center;width:100%}.ag-spectrum-color{cursor:default;flex:1 1 auto;overflow:visible;position:relative}.ag-spectrum-fill{inset:0;position:absolute}.ag-spectrum-val{background-image:linear-gradient(0deg,#000,hsla(20,42%,65%,0));cursor:pointer}.ag-spectrum-dragger{background:#000;border:3px solid #fff;border-radius:18px;box-shadow:0 0 2px 0 rgba(0,0,0,.24);cursor:pointer;height:18px;pointer-events:none;position:absolute;width:18px}.ag-spectrum-alpha,.ag-spectrum-hue{cursor:default}.ag-spectrum-hue-background{background:linear-gradient(270deg,red 3%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);height:100%;width:100%}.ag-spectrum-alpha-background{background:linear-gradient(to right,var(--ag-internal-spectrum-alpha-color-from),var(--ag-internal-spectrum-alpha-color-to)),url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><rect x="0" y="0" width="4" height="4" fill="%23fff"/><path d="M0 0H2V4H4V2H0Z" fill="%23b2b2b2"/></svg>') 0 0 /4px 4px;height:100%;width:100%}.ag-spectrum-tool{border-radius:2px;cursor:pointer;height:11px;margin-bottom:10px;position:relative}.ag-spectrum-slider{border:2px solid #fff;border-radius:13px;box-shadow:0 1px 4px 0 rgba(0,0,0,.37);height:13px;margin-top:-12px;pointer-events:none;position:absolute;width:13px}:where(.ag-spectrum-alpha) .ag-spectrum-slider{background:linear-gradient(to bottom,var(--ag-internal-spectrum-alpha-color),var(--ag-internal-spectrum-alpha-color)) var(--ag-background-color)}.ag-recent-colors{display:flex;gap:6px;margin-bottom:2px;margin-left:var(--ag-spacing);margin-right:var(--ag-spacing)}.ag-recent-color{border:1px solid var(--ag-border-color);cursor:pointer}.ag-angle-select[disabled]{opacity:.5;pointer-events:none}:where(.ag-ltr) .ag-angle-select-field,:where(.ag-ltr) .ag-slider-field{margin-right:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-angle-select-field,:where(.ag-rtl) .ag-slider-field{margin-left:calc(var(--ag-spacing)*2)}.ag-color-dialog{border-radius:5px}:where(.ag-color-picker){.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:var(--ag-spacing)}.ag-picker-field-display{align-items:center;display:flex;flex-direction:row;min-height:var(--ag-list-item-height)}}:where(.ag-ltr) .ag-color-picker-color,:where(.ag-ltr) .ag-color-picker-value{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-color-picker-color,:where(.ag-rtl) .ag-color-picker-value{margin-left:var(--ag-spacing)}.ag-spectrum-tools{padding-bottom:0;padding-left:0;padding-right:0}.ag-spectrum-alpha-background,.ag-spectrum-hue-background{border-radius:2px}.ag-color-input-color,.ag-color-picker-color,.ag-recent-color{border-radius:4px}.ag-spectrum-sat{background-image:linear-gradient(90deg,#fff,hsla(20,42%,65%,0))}.ag-recent-color,.ag-spectrum-color,.ag-spectrum-slider{&:where(:not(:disabled,[readonly])):focus-visible{box-shadow:var(--ag-focus-shadow)}}.ag-color-input-color,.ag-color-picker-color{border:1px solid var(--ag-border-color);border-radius:2px;height:var(--ag-icon-size);width:var(--ag-icon-size)}:where(.ag-color-input){.ag-color-input-color{position:absolute}}:where(.ag-ltr) :where(.ag-color-input){.ag-input-field-input{padding-left:calc(var(--ag-icon-size) + var(--ag-spacing)*2)}.ag-color-input-color{margin-left:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-color-input){.ag-input-field-input{padding-right:calc(var(--ag-icon-size) + var(--ag-spacing)*2)}.ag-color-input-color{margin-right:var(--ag-spacing)}}.ag-range-field{align-items:center;display:flex;:where(.ag-input-wrapper){height:100%}}.ag-range-field-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;height:100%;overflow:visible;padding:0;width:100%;&:disabled{opacity:.5}}.ag-range-field-input{&::-webkit-slider-runnable-track{background-color:var(--ag-border-color);border-radius:1.5px;height:3px;margin:0;padding:0;width:100%}&::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:100%;height:var(--ag-icon-size);margin:0;padding:0;transform:translateY(calc(var(--ag-icon-size)*-.5 + 1.5px));width:var(--ag-icon-size)}&:focus::-webkit-slider-thumb{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}&:active::-webkit-slider-runnable-track{background-color:var(--ag-accent-color)}}.ag-range-field-input{&::-moz-range-track{background-color:var(--ag-border-color);border-radius:1.5px;height:3px;margin:0;padding:0;width:100%}&::-moz-ag-range-thumb{-moz-appearance:none;appearance:none;background-color:var(--ag-background-color);border:1px solid var(--ag-border-color);border-radius:100%;height:var(--ag-icon-size);margin:0;padding:0;transform:translateY(calc(var(--ag-icon-size)*-.5 + 1.5px));width:var(--ag-icon-size)}&:focus::-moz-ag-range-thumb{border-color:var(--ag-accent-color);box-shadow:var(--ag-focus-shadow)}&:active::-moz-ag-range-track{background-color:var(--ag-accent-color)}}`,GX=28,OX=6;function Qk(e){return e&&e.match(/\d+\.\d+\.\d+/)}function WRe({gridMajorVersion:e,chartsMajorVersion:t}){const r=parseInt(e,10),s=parseInt(t,10),n=r-GX,i=s-OX,o=n>=0;return n===i&&o}function jRe(e){if(!e||!Qk(e))return;const[t,r]=e.split(".")||[],s=`${t}.${r}.x`,i=parseInt(t,10)-GX+OX;if(i<0)return;const a=`${i}.${r}.x`;return{gridMajorMinor:s,chartsMajorMinor:a}}function eP({type:e,gridVersion:t,chartsVersion:r}){const s="AG Grid: AG Grid version is incompatible. Please see https://www.ag-grid.com/javascript-data-grid/modules/ for more information.";if(!t)return s;const n=jRe(t);if(!n)return s;const{gridMajorMinor:i,chartsMajorMinor:o}=n;return e==="incompatible"?`AG Grid version ${t} and AG Charts version ${r} is not supported. AG Grid version ${i} should be used with AG Chart ${o}. Please see https://www.ag-grid.com/javascript-data-grid/modules/ for more information.`:e==="invalidCharts"?`AG Grid version ${i} should be used with AG Chart ${o} not ${r}. Please see https://www.ag-grid.com/javascript-data-grid/modules/ for more information.`:s}function KRe({gridVersion:e,chartsVersion:t}){if(!Qk(t))return{isValid:!1,message:eP({type:"invalidCharts",gridVersion:e,chartsVersion:t})};if(!Qk(e))return{isValid:!1,message:eP({type:"invalidGrid",gridVersion:e,chartsVersion:t})};const[r,s]=e.split(".")||[],[n,i,o]=t.split(".")||[],a=WRe({gridMajorVersion:r,chartsMajorVersion:n});return a&&s===i||o.includes("beta")?{isValid:!0}:!a||s!==i?{isValid:!1,message:eP({type:"incompatible",gridVersion:e,chartsVersion:t})}:{isValid:!1,message:eP({type:"invalid",gridVersion:e,chartsVersion:t})}}var YRe={linked:"linked",unlinked:"unlinked",chartsMenu:"menu-alt",chartsDownload:"save",chartsMenuEdit:"chart",chartsMenuAdvancedSettings:"settings",chartsMenuAdd:"plus",chartsColorPicker:"small-down",chartsThemePrevious:"previous",chartsThemeNext:"next"},ZRe={getChartModels:kRe,getChartRef:BRe,getChartImageDataURL:LRe,downloadChart:HRe,openChartToolPanel:GRe,closeChartToolPanel:ORe,createRangeChart:NRe,createPivotChart:_Re,createCrossFilterChart:VRe,updateChart:zRe,restoreChart:QRe},DG=[SZ,Qs,jw,Eg,AT],MG="IntegratedCharts",XRe={moduleName:MG,version:Rr,dependsOn:DG,validate:()=>({isValid:!1,message:ZW(257)}),with:e=>{var t;if(e.setup(),(t=e.setGridContext)==null||t.call(e,!0),e.isEnterprise&&e.setLicenseKey){const r={setLicenseKey:e.setLicenseKey};p1.setChartsLicenseManager(r)}return{moduleName:MG,version:Rr,icons:YRe,apiFunctions:ZRe,dependsOn:DG,css:[URe],validate:()=>KRe({gridVersion:Rr,chartsVersion:e.VERSION}),beans:[NPe.bind(null,e),IRe,U2e,_2e,O2e,z2e,x2e,H2e]}}},IG=[F0e,W3e,_Se,Vxe,J3e,lEe,oxe,axe,SZ,lxe,vZ,k3e,B3e,kPe,BPe,wxe,Kxe,Q1e,NL,Lxe,H3e,jEe,iPe],kG="AllEnterprise",$Re={with:e=>({moduleName:kG,version:Rr,dependsOn:[...IG,XRe.with(e),OPe.with(e)]}),moduleName:kG,version:Rr,dependsOn:IG},y2={},JRe=Object.defineProperty,NX=e=>{throw TypeError(e)},qRe=(e,t,r)=>t in e?JRe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bs=(e,t,r)=>qRe(e,typeof t!="symbol"?t+"":t,r),u5=(e,t,r)=>t.has(e)||NX("Cannot "+r),de=(e,t,r)=>(u5(e,t,"read from private field"),r?r.call(e):t.get(e)),As=(e,t,r)=>t.has(e)?NX("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),hr=(e,t,r,s)=>(u5(e,t,"write to private field"),t.set(e,r),r),Wt=(e,t,r)=>(u5(e,t,"access private method"),r),Uk=(e,t,r,s)=>({set _(n){hr(e,t,n)},get _(){return de(e,t,s)}});function eTe(e,t){if(e==null)throw Error(t);return e}const SF=Array.isArray;function BG(e){return e!==null&&typeof e=="object"}function xS(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null}function LG(e){return Object.values(e).reduce((t,r)=>r!==void 0?t+1:t,0)}function Lc(e,t){if(!(BG(e)&&BG(t)))return e===t;if(SF(e)&&SF(t))return e.length!==t.length?!1:[...e.keys()].every(r=>Lc(e[r],t[r]));if(xS(e)&&xS(t))return LG(e)!==LG(t)?!1:Object.keys(e).every(r=>Lc(e[r],t[r]));throw Error(`Cannot compare a ${String(e)} and b ${String(t)}`)}function Th(e){if(Array.isArray(e)){const t=[];for(let r=0;r<e.length;r++)t[r]=Th(e[r]);return t}else if(xS(e)){const t={};return Object.keys(e).forEach(r=>{t[r]=Th(e[r])}),t}else return e}function _X(e,t){return new Set([...Object.keys(e),...Object.keys(t)]).forEach(r=>{const s=e[r],n=t[r];xS(s)&&xS(n)||SF(s)&&SF(n)&&s.length===n.length?_X(s,n):e[r]=n}),e}var Ib=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tTe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ms;(function(e){e.assertEqual=n=>n;function t(n){}e.assertIs=t;function r(n){throw new Error}e.assertNever=r,e.arrayToEnum=n=>{const i={};for(const o of n)i[o]=o;return i},e.getValidEnumValues=n=>{const i=e.objectKeys(n).filter(a=>typeof n[n[a]]!="number"),o={};for(const a of i)o[a]=n[a];return e.objectValues(o)},e.objectValues=n=>e.objectKeys(n).map(function(i){return n[i]}),e.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{const i=[];for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&i.push(o);return i},e.find=(n,i)=>{for(const o of n)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&isFinite(n)&&Math.floor(n)===n;function s(n,i=" | "){return n.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=s,e.jsonStringifyReplacer=(n,i)=>typeof i=="bigint"?i.toString():i})(ms||(ms={}));var Wk;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(Wk||(Wk={}));const Ht=ms.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Yf=e=>{switch(typeof e){case"undefined":return Ht.undefined;case"string":return Ht.string;case"number":return isNaN(e)?Ht.nan:Ht.number;case"boolean":return Ht.boolean;case"function":return Ht.function;case"bigint":return Ht.bigint;case"symbol":return Ht.symbol;case"object":return Array.isArray(e)?Ht.array:e===null?Ht.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ht.promise:typeof Map<"u"&&e instanceof Map?Ht.map:typeof Set<"u"&&e instanceof Set?Ht.set:typeof Date<"u"&&e instanceof Date?Ht.date:Ht.object;default:return Ht.unknown}},ft=ms.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),rTe=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Ul extends Error{constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const r=t||function(i){return i.message},s={_errors:[]},n=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(n);else if(o.code==="invalid_return_type")n(o.returnTypeError);else if(o.code==="invalid_arguments")n(o.argumentsError);else if(o.path.length===0)s._errors.push(r(o));else{let a=s,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(r(o))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return n(this),s}static assert(t){if(!(t instanceof Ul))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ms.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},s=[];for(const n of this.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):s.push(t(n));return{formErrors:s,fieldErrors:r}}get formErrors(){return this.flatten()}}Ul.create=e=>new Ul(e);const xw=(e,t)=>{let r;switch(e.code){case ft.invalid_type:e.received===Ht.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case ft.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,ms.jsonStringifyReplacer)}`;break;case ft.unrecognized_keys:r=`Unrecognized key(s) in object: ${ms.joinValues(e.keys,", ")}`;break;case ft.invalid_union:r="Invalid input";break;case ft.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ms.joinValues(e.options)}`;break;case ft.invalid_enum_value:r=`Invalid enum value. Expected ${ms.joinValues(e.options)}, received '${e.received}'`;break;case ft.invalid_arguments:r="Invalid function arguments";break;case ft.invalid_return_type:r="Invalid function return type";break;case ft.invalid_date:r="Invalid date";break;case ft.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:ms.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case ft.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case ft.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case ft.custom:r="Invalid input";break;case ft.invalid_intersection_types:r="Intersection results could not be merged";break;case ft.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case ft.not_finite:r="Number must be finite";break;default:r=t.defaultError,ms.assertNever(e)}return{message:r}};let VX=xw;function sTe(e){VX=e}function xF(){return VX}const EF=e=>{const{data:t,path:r,errorMaps:s,issueData:n}=e,i=[...r,...n.path||[]],o={...n,path:i};if(n.message!==void 0)return{...n,path:i,message:n.message};let a="";const l=s.filter(c=>!!c).slice().reverse();for(const c of l)a=c(o,{data:t,defaultError:a}).message;return{...n,path:i,message:a}},nTe=[];function Mt(e,t){const r=xF(),s=EF({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===xw?void 0:xw].filter(n=>!!n)});e.common.issues.push(s)}class Go{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const s=[];for(const n of r){if(n.status==="aborted")return Pr;n.status==="dirty"&&t.dirty(),s.push(n.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,r){const s=[];for(const n of r){const i=await n.key,o=await n.value;s.push({key:i,value:o})}return Go.mergeObjectSync(t,s)}static mergeObjectSync(t,r){const s={};for(const n of r){const{key:i,value:o}=n;if(i.status==="aborted"||o.status==="aborted")return Pr;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||n.alwaysSet)&&(s[i.value]=o.value)}return{status:t.value,value:s}}}const Pr=Object.freeze({status:"aborted"}),PF=e=>({status:"dirty",value:e}),fa=e=>({status:"valid",value:e}),jk=e=>e.status==="aborted",Kk=e=>e.status==="dirty",ES=e=>e.status==="valid",PS=e=>typeof Promise<"u"&&e instanceof Promise;function FF(e,t,r,s){if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function zX(e,t,r,s,n){if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}var $t;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})($t||($t={}));var f1,A1;class Oh{constructor(t,r,s,n){this._cachedPath=[],this.parent=t,this.data=r,this._path=s,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const HG=(e,t)=>{if(ES(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Ul(e.common.issues);return this._error=r,this._error}}};function _r(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:s,description:n}=e;if(t&&(r||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:n}:{errorMap:(i,o)=>{var a,l;const{message:c}=e;return i.code==="invalid_enum_value"?{message:c??o.defaultError}:typeof o.data>"u"?{message:(a=c??s)!==null&&a!==void 0?a:o.defaultError}:i.code!=="invalid_type"?{message:o.defaultError}:{message:(l=c??r)!==null&&l!==void 0?l:o.defaultError}},description:n}}class Yr{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Yf(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Yf(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Go,ctx:{common:t.parent.common,data:t.data,parsedType:Yf(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(PS(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const s=this.safeParse(t,r);if(s.success)return s.data;throw s.error}safeParse(t,r){var s;const n={common:{issues:[],async:(s=r==null?void 0:r.async)!==null&&s!==void 0?s:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Yf(t)},i=this._parseSync({data:t,path:n.path,parent:n});return HG(n,i)}async parseAsync(t,r){const s=await this.safeParseAsync(t,r);if(s.success)return s.data;throw s.error}async safeParseAsync(t,r){const s={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Yf(t)},n=this._parse({data:t,path:s.path,parent:s}),i=await(PS(n)?n:Promise.resolve(n));return HG(s,i)}refine(t,r){const s=n=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,i)=>{const o=t(n),a=()=>i.addIssue({code:ft.custom,...s(n)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,r){return this._refinement((s,n)=>t(s)?!0:(n.addIssue(typeof r=="function"?r(s,n):r),!1))}_refinement(t){return new od({schema:this,typeName:mr.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Dh.create(this,this._def)}nullable(){return CA.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return $u.create(this,this._def)}promise(){return Pw.create(this,this._def)}or(t){return DS.create([this,t],this._def)}and(t){return MS.create(this,t,this._def)}transform(t){return new od({..._r(this._def),schema:this,typeName:mr.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new HS({..._r(this._def),innerType:this,defaultValue:r,typeName:mr.ZodDefault})}brand(){return new d5({typeName:mr.ZodBranded,type:this,..._r(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new GS({..._r(this._def),innerType:this,catchValue:r,typeName:mr.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return Xx.create(this,t)}readonly(){return OS.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const iTe=/^c[^\s-]{8,}$/i,oTe=/^[0-9a-z]+$/,aTe=/^[0-9A-HJKMNP-TV-Z]{26}$/,lTe=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,cTe=/^[a-z0-9_-]{21}$/i,uTe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,dTe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,hTe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let o4;const pTe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,gTe=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,fTe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,QX="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ATe=new RegExp(`^${QX}$`);function UX(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function mTe(e){return new RegExp(`^${UX(e)}$`)}function WX(e){let t=`${QX}T${UX(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function vTe(e,t){return!!((t==="v4"||!t)&&pTe.test(e)||(t==="v6"||!t)&&gTe.test(e))}class zu extends Yr{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ht.string){const n=this._getOrReturnCtx(t);return Mt(n,{code:ft.invalid_type,expected:Ht.string,received:n.parsedType}),Pr}const r=new Go;let s;for(const n of this._def.checks)if(n.kind==="min")t.data.length<n.value&&(s=this._getOrReturnCtx(t,s),Mt(s,{code:ft.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if(n.kind==="max")t.data.length>n.value&&(s=this._getOrReturnCtx(t,s),Mt(s,{code:ft.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if(n.kind==="length"){const i=t.data.length>n.value,o=t.data.length<n.value;(i||o)&&(s=this._getOrReturnCtx(t,s),i?Mt(s,{code:ft.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):o&&Mt(s,{code:ft.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),r.dirty())}else if(n.kind==="email")dTe.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"email",code:ft.invalid_string,message:n.message}),r.dirty());else if(n.kind==="emoji")o4||(o4=new RegExp(hTe,"u")),o4.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"emoji",code:ft.invalid_string,message:n.message}),r.dirty());else if(n.kind==="uuid")lTe.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"uuid",code:ft.invalid_string,message:n.message}),r.dirty());else if(n.kind==="nanoid")cTe.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"nanoid",code:ft.invalid_string,message:n.message}),r.dirty());else if(n.kind==="cuid")iTe.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"cuid",code:ft.invalid_string,message:n.message}),r.dirty());else if(n.kind==="cuid2")oTe.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"cuid2",code:ft.invalid_string,message:n.message}),r.dirty());else if(n.kind==="ulid")aTe.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"ulid",code:ft.invalid_string,message:n.message}),r.dirty());else if(n.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),Mt(s,{validation:"url",code:ft.invalid_string,message:n.message}),r.dirty()}else n.kind==="regex"?(n.regex.lastIndex=0,n.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"regex",code:ft.invalid_string,message:n.message}),r.dirty())):n.kind==="trim"?t.data=t.data.trim():n.kind==="includes"?t.data.includes(n.value,n.position)||(s=this._getOrReturnCtx(t,s),Mt(s,{code:ft.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),r.dirty()):n.kind==="toLowerCase"?t.data=t.data.toLowerCase():n.kind==="toUpperCase"?t.data=t.data.toUpperCase():n.kind==="startsWith"?t.data.startsWith(n.value)||(s=this._getOrReturnCtx(t,s),Mt(s,{code:ft.invalid_string,validation:{startsWith:n.value},message:n.message}),r.dirty()):n.kind==="endsWith"?t.data.endsWith(n.value)||(s=this._getOrReturnCtx(t,s),Mt(s,{code:ft.invalid_string,validation:{endsWith:n.value},message:n.message}),r.dirty()):n.kind==="datetime"?WX(n).test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{code:ft.invalid_string,validation:"datetime",message:n.message}),r.dirty()):n.kind==="date"?ATe.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{code:ft.invalid_string,validation:"date",message:n.message}),r.dirty()):n.kind==="time"?mTe(n).test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{code:ft.invalid_string,validation:"time",message:n.message}),r.dirty()):n.kind==="duration"?uTe.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"duration",code:ft.invalid_string,message:n.message}),r.dirty()):n.kind==="ip"?vTe(t.data,n.version)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"ip",code:ft.invalid_string,message:n.message}),r.dirty()):n.kind==="base64"?fTe.test(t.data)||(s=this._getOrReturnCtx(t,s),Mt(s,{validation:"base64",code:ft.invalid_string,message:n.message}),r.dirty()):ms.assertNever(n);return{status:r.value,value:t.data}}_regex(t,r,s){return this.refinement(n=>t.test(n),{validation:r,code:ft.invalid_string,...$t.errToObj(s)})}_addCheck(t){return new zu({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...$t.errToObj(t)})}url(t){return this._addCheck({kind:"url",...$t.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...$t.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...$t.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...$t.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...$t.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...$t.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...$t.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...$t.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...$t.errToObj(t)})}datetime(t){var r,s;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,local:(s=t==null?void 0:t.local)!==null&&s!==void 0?s:!1,...$t.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...$t.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...$t.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...$t.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...$t.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...$t.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...$t.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...$t.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...$t.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...$t.errToObj(r)})}nonempty(t){return this.min(1,$t.errToObj(t))}trim(){return new zu({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new zu({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new zu({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}zu.create=e=>{var t;return new zu({checks:[],typeName:mr.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,..._r(e)})};function CTe(e,t){const r=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,n=r>s?r:s,i=parseInt(e.toFixed(n).replace(".","")),o=parseInt(t.toFixed(n).replace(".",""));return i%o/Math.pow(10,n)}class AA extends Yr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ht.number){const n=this._getOrReturnCtx(t);return Mt(n,{code:ft.invalid_type,expected:Ht.number,received:n.parsedType}),Pr}let r;const s=new Go;for(const n of this._def.checks)n.kind==="int"?ms.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Mt(r,{code:ft.invalid_type,expected:"integer",received:"float",message:n.message}),s.dirty()):n.kind==="min"?(n.inclusive?t.data<n.value:t.data<=n.value)&&(r=this._getOrReturnCtx(t,r),Mt(r,{code:ft.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),s.dirty()):n.kind==="max"?(n.inclusive?t.data>n.value:t.data>=n.value)&&(r=this._getOrReturnCtx(t,r),Mt(r,{code:ft.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),s.dirty()):n.kind==="multipleOf"?CTe(t.data,n.value)!==0&&(r=this._getOrReturnCtx(t,r),Mt(r,{code:ft.not_multiple_of,multipleOf:n.value,message:n.message}),s.dirty()):n.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Mt(r,{code:ft.not_finite,message:n.message}),s.dirty()):ms.assertNever(n);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,$t.toString(r))}gt(t,r){return this.setLimit("min",t,!1,$t.toString(r))}lte(t,r){return this.setLimit("max",t,!0,$t.toString(r))}lt(t,r){return this.setLimit("max",t,!1,$t.toString(r))}setLimit(t,r,s,n){return new AA({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:s,message:$t.toString(n)}]})}_addCheck(t){return new AA({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:$t.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:$t.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:$t.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:$t.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:$t.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:$t.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:$t.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:$t.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:$t.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ms.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(r===null||s.value>r)&&(r=s.value):s.kind==="max"&&(t===null||s.value<t)&&(t=s.value)}return Number.isFinite(r)&&Number.isFinite(t)}}AA.create=e=>new AA({checks:[],typeName:mr.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,..._r(e)});class mA extends Yr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==Ht.bigint){const n=this._getOrReturnCtx(t);return Mt(n,{code:ft.invalid_type,expected:Ht.bigint,received:n.parsedType}),Pr}let r;const s=new Go;for(const n of this._def.checks)n.kind==="min"?(n.inclusive?t.data<n.value:t.data<=n.value)&&(r=this._getOrReturnCtx(t,r),Mt(r,{code:ft.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),s.dirty()):n.kind==="max"?(n.inclusive?t.data>n.value:t.data>=n.value)&&(r=this._getOrReturnCtx(t,r),Mt(r,{code:ft.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),s.dirty()):n.kind==="multipleOf"?t.data%n.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Mt(r,{code:ft.not_multiple_of,multipleOf:n.value,message:n.message}),s.dirty()):ms.assertNever(n);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,$t.toString(r))}gt(t,r){return this.setLimit("min",t,!1,$t.toString(r))}lte(t,r){return this.setLimit("max",t,!0,$t.toString(r))}lt(t,r){return this.setLimit("max",t,!1,$t.toString(r))}setLimit(t,r,s,n){return new mA({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:s,message:$t.toString(n)}]})}_addCheck(t){return new mA({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:$t.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:$t.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:$t.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:$t.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:$t.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}mA.create=e=>{var t;return new mA({checks:[],typeName:mr.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,..._r(e)})};class FS extends Yr{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ht.boolean){const r=this._getOrReturnCtx(t);return Mt(r,{code:ft.invalid_type,expected:Ht.boolean,received:r.parsedType}),Pr}return fa(t.data)}}FS.create=e=>new FS({typeName:mr.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,..._r(e)});class Fv extends Yr{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ht.date){const n=this._getOrReturnCtx(t);return Mt(n,{code:ft.invalid_type,expected:Ht.date,received:n.parsedType}),Pr}if(isNaN(t.data.getTime())){const n=this._getOrReturnCtx(t);return Mt(n,{code:ft.invalid_date}),Pr}const r=new Go;let s;for(const n of this._def.checks)n.kind==="min"?t.data.getTime()<n.value&&(s=this._getOrReturnCtx(t,s),Mt(s,{code:ft.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):n.kind==="max"?t.data.getTime()>n.value&&(s=this._getOrReturnCtx(t,s),Mt(s,{code:ft.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):ms.assertNever(n);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Fv({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:$t.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:$t.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}Fv.create=e=>new Fv({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:mr.ZodDate,..._r(e)});class RF extends Yr{_parse(t){if(this._getType(t)!==Ht.symbol){const r=this._getOrReturnCtx(t);return Mt(r,{code:ft.invalid_type,expected:Ht.symbol,received:r.parsedType}),Pr}return fa(t.data)}}RF.create=e=>new RF({typeName:mr.ZodSymbol,..._r(e)});class RS extends Yr{_parse(t){if(this._getType(t)!==Ht.undefined){const r=this._getOrReturnCtx(t);return Mt(r,{code:ft.invalid_type,expected:Ht.undefined,received:r.parsedType}),Pr}return fa(t.data)}}RS.create=e=>new RS({typeName:mr.ZodUndefined,..._r(e)});class TS extends Yr{_parse(t){if(this._getType(t)!==Ht.null){const r=this._getOrReturnCtx(t);return Mt(r,{code:ft.invalid_type,expected:Ht.null,received:r.parsedType}),Pr}return fa(t.data)}}TS.create=e=>new TS({typeName:mr.ZodNull,..._r(e)});class Ew extends Yr{constructor(){super(...arguments),this._any=!0}_parse(t){return fa(t.data)}}Ew.create=e=>new Ew({typeName:mr.ZodAny,..._r(e)});class lv extends Yr{constructor(){super(...arguments),this._unknown=!0}_parse(t){return fa(t.data)}}lv.create=e=>new lv({typeName:mr.ZodUnknown,..._r(e)});class Ag extends Yr{_parse(t){const r=this._getOrReturnCtx(t);return Mt(r,{code:ft.invalid_type,expected:Ht.never,received:r.parsedType}),Pr}}Ag.create=e=>new Ag({typeName:mr.ZodNever,..._r(e)});class TF extends Yr{_parse(t){if(this._getType(t)!==Ht.undefined){const r=this._getOrReturnCtx(t);return Mt(r,{code:ft.invalid_type,expected:Ht.void,received:r.parsedType}),Pr}return fa(t.data)}}TF.create=e=>new TF({typeName:mr.ZodVoid,..._r(e)});class $u extends Yr{_parse(t){const{ctx:r,status:s}=this._processInputParams(t),n=this._def;if(r.parsedType!==Ht.array)return Mt(r,{code:ft.invalid_type,expected:Ht.array,received:r.parsedType}),Pr;if(n.exactLength!==null){const o=r.data.length>n.exactLength.value,a=r.data.length<n.exactLength.value;(o||a)&&(Mt(r,{code:o?ft.too_big:ft.too_small,minimum:a?n.exactLength.value:void 0,maximum:o?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),s.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(Mt(r,{code:ft.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),s.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(Mt(r,{code:ft.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),s.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>n.type._parseAsync(new Oh(r,o,r.path,a)))).then(o=>Go.mergeArray(s,o));const i=[...r.data].map((o,a)=>n.type._parseSync(new Oh(r,o,r.path,a)));return Go.mergeArray(s,i)}get element(){return this._def.type}min(t,r){return new $u({...this._def,minLength:{value:t,message:$t.toString(r)}})}max(t,r){return new $u({...this._def,maxLength:{value:t,message:$t.toString(r)}})}length(t,r){return new $u({...this._def,exactLength:{value:t,message:$t.toString(r)}})}nonempty(t){return this.min(1,t)}}$u.create=(e,t)=>new $u({type:e,minLength:null,maxLength:null,exactLength:null,typeName:mr.ZodArray,..._r(t)});function B0(e){if(e instanceof Fn){const t={};for(const r in e.shape){const s=e.shape[r];t[r]=Dh.create(B0(s))}return new Fn({...e._def,shape:()=>t})}else return e instanceof $u?new $u({...e._def,type:B0(e.element)}):e instanceof Dh?Dh.create(B0(e.unwrap())):e instanceof CA?CA.create(B0(e.unwrap())):e instanceof Nh?Nh.create(e.items.map(t=>B0(t))):e}class Fn extends Yr{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=ms.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==Ht.object){const l=this._getOrReturnCtx(t);return Mt(l,{code:ft.invalid_type,expected:Ht.object,received:l.parsedType}),Pr}const{status:r,ctx:s}=this._processInputParams(t),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof Ag&&this._def.unknownKeys==="strip"))for(const l in s.data)i.includes(l)||o.push(l);const a=[];for(const l of i){const c=n[l],u=s.data[l];a.push({key:{status:"valid",value:l},value:c._parse(new Oh(s,u,s.path,l)),alwaysSet:l in s.data})}if(this._def.catchall instanceof Ag){const l=this._def.unknownKeys;if(l==="passthrough")for(const c of o)a.push({key:{status:"valid",value:c},value:{status:"valid",value:s.data[c]}});else if(l==="strict")o.length>0&&(Mt(s,{code:ft.unrecognized_keys,keys:o}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const c of o){const u=s.data[c];a.push({key:{status:"valid",value:c},value:l._parse(new Oh(s,u,s.path,c)),alwaysSet:c in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const l=[];for(const c of a){const u=await c.key,d=await c.value;l.push({key:u,value:d,alwaysSet:c.alwaysSet})}return l}).then(l=>Go.mergeObjectSync(r,l)):Go.mergeObjectSync(r,a)}get shape(){return this._def.shape()}strict(t){return $t.errToObj,new Fn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,s)=>{var n,i,o,a;const l=(o=(i=(n=this._def).errorMap)===null||i===void 0?void 0:i.call(n,r,s).message)!==null&&o!==void 0?o:s.defaultError;return r.code==="unrecognized_keys"?{message:(a=$t.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new Fn({...this._def,unknownKeys:"strip"})}passthrough(){return new Fn({...this._def,unknownKeys:"passthrough"})}extend(t){return new Fn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Fn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:mr.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new Fn({...this._def,catchall:t})}pick(t){const r={};return ms.objectKeys(t).forEach(s=>{t[s]&&this.shape[s]&&(r[s]=this.shape[s])}),new Fn({...this._def,shape:()=>r})}omit(t){const r={};return ms.objectKeys(this.shape).forEach(s=>{t[s]||(r[s]=this.shape[s])}),new Fn({...this._def,shape:()=>r})}deepPartial(){return B0(this)}partial(t){const r={};return ms.objectKeys(this.shape).forEach(s=>{const n=this.shape[s];t&&!t[s]?r[s]=n:r[s]=n.optional()}),new Fn({...this._def,shape:()=>r})}required(t){const r={};return ms.objectKeys(this.shape).forEach(s=>{if(t&&!t[s])r[s]=this.shape[s];else{let n=this.shape[s];for(;n instanceof Dh;)n=n._def.innerType;r[s]=n}}),new Fn({...this._def,shape:()=>r})}keyof(){return jX(ms.objectKeys(this.shape))}}Fn.create=(e,t)=>new Fn({shape:()=>e,unknownKeys:"strip",catchall:Ag.create(),typeName:mr.ZodObject,..._r(t)});Fn.strictCreate=(e,t)=>new Fn({shape:()=>e,unknownKeys:"strict",catchall:Ag.create(),typeName:mr.ZodObject,..._r(t)});Fn.lazycreate=(e,t)=>new Fn({shape:e,unknownKeys:"strip",catchall:Ag.create(),typeName:mr.ZodObject,..._r(t)});class DS extends Yr{_parse(t){const{ctx:r}=this._processInputParams(t),s=this._def.options;function n(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new Ul(a.ctx.common.issues));return Mt(r,{code:ft.invalid_union,unionErrors:o}),Pr}if(r.common.async)return Promise.all(s.map(async i=>{const o={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(n);{let i;const o=[];for(const l of s){const c={...r,common:{...r.common,issues:[]},parent:null},u=l._parseSync({data:r.data,path:r.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(l=>new Ul(l));return Mt(r,{code:ft.invalid_union,unionErrors:a}),Pr}}get options(){return this._def.options}}DS.create=(e,t)=>new DS({options:e,typeName:mr.ZodUnion,..._r(t)});const If=e=>e instanceof kS?If(e.schema):e instanceof od?If(e.innerType()):e instanceof BS?[e.value]:e instanceof vA?e.options:e instanceof LS?ms.objectValues(e.enum):e instanceof HS?If(e._def.innerType):e instanceof RS?[void 0]:e instanceof TS?[null]:e instanceof Dh?[void 0,...If(e.unwrap())]:e instanceof CA?[null,...If(e.unwrap())]:e instanceof d5||e instanceof OS?If(e.unwrap()):e instanceof GS?If(e._def.innerType):[];class yT extends Yr{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ht.object)return Mt(r,{code:ft.invalid_type,expected:Ht.object,received:r.parsedType}),Pr;const s=this.discriminator,n=r.data[s],i=this.optionsMap.get(n);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(Mt(r,{code:ft.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),Pr)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,s){const n=new Map;for(const i of r){const o=If(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of o){if(n.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);n.set(a,i)}}return new yT({typeName:mr.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:n,..._r(s)})}}function Yk(e,t){const r=Yf(e),s=Yf(t);if(e===t)return{valid:!0,data:e};if(r===Ht.object&&s===Ht.object){const n=ms.objectKeys(t),i=ms.objectKeys(e).filter(a=>n.indexOf(a)!==-1),o={...e,...t};for(const a of i){const l=Yk(e[a],t[a]);if(!l.valid)return{valid:!1};o[a]=l.data}return{valid:!0,data:o}}else if(r===Ht.array&&s===Ht.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let i=0;i<e.length;i++){const o=e[i],a=t[i],l=Yk(o,a);if(!l.valid)return{valid:!1};n.push(l.data)}return{valid:!0,data:n}}else return r===Ht.date&&s===Ht.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class MS extends Yr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t),n=(i,o)=>{if(jk(i)||jk(o))return Pr;const a=Yk(i.value,o.value);return a.valid?((Kk(i)||Kk(o))&&r.dirty(),{status:r.value,value:a.data}):(Mt(s,{code:ft.invalid_intersection_types}),Pr)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,o])=>n(i,o)):n(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}MS.create=(e,t,r)=>new MS({left:e,right:t,typeName:mr.ZodIntersection,..._r(r)});class Nh extends Yr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Ht.array)return Mt(s,{code:ft.invalid_type,expected:Ht.array,received:s.parsedType}),Pr;if(s.data.length<this._def.items.length)return Mt(s,{code:ft.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Pr;!this._def.rest&&s.data.length>this._def.items.length&&(Mt(s,{code:ft.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const n=[...s.data].map((i,o)=>{const a=this._def.items[o]||this._def.rest;return a?a._parse(new Oh(s,i,s.path,o)):null}).filter(i=>!!i);return s.common.async?Promise.all(n).then(i=>Go.mergeArray(r,i)):Go.mergeArray(r,n)}get items(){return this._def.items}rest(t){return new Nh({...this._def,rest:t})}}Nh.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Nh({items:e,typeName:mr.ZodTuple,rest:null,..._r(t)})};class IS extends Yr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Ht.object)return Mt(s,{code:ft.invalid_type,expected:Ht.object,received:s.parsedType}),Pr;const n=[],i=this._def.keyType,o=this._def.valueType;for(const a in s.data)n.push({key:i._parse(new Oh(s,a,s.path,a)),value:o._parse(new Oh(s,s.data[a],s.path,a)),alwaysSet:a in s.data});return s.common.async?Go.mergeObjectAsync(r,n):Go.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(t,r,s){return r instanceof Yr?new IS({keyType:t,valueType:r,typeName:mr.ZodRecord,..._r(s)}):new IS({keyType:zu.create(),valueType:t,typeName:mr.ZodRecord,..._r(r)})}}class DF extends Yr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Ht.map)return Mt(s,{code:ft.invalid_type,expected:Ht.map,received:s.parsedType}),Pr;const n=this._def.keyType,i=this._def.valueType,o=[...s.data.entries()].map(([a,l],c)=>({key:n._parse(new Oh(s,a,s.path,[c,"key"])),value:i._parse(new Oh(s,l,s.path,[c,"value"]))}));if(s.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of o){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return Pr;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(c.value,u.value)}return{status:r.value,value:a}})}else{const a=new Map;for(const l of o){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return Pr;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(c.value,u.value)}return{status:r.value,value:a}}}}DF.create=(e,t,r)=>new DF({valueType:t,keyType:e,typeName:mr.ZodMap,..._r(r)});class Rv extends Yr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Ht.set)return Mt(s,{code:ft.invalid_type,expected:Ht.set,received:s.parsedType}),Pr;const n=this._def;n.minSize!==null&&s.data.size<n.minSize.value&&(Mt(s,{code:ft.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&s.data.size>n.maxSize.value&&(Mt(s,{code:ft.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());const i=this._def.valueType;function o(l){const c=new Set;for(const u of l){if(u.status==="aborted")return Pr;u.status==="dirty"&&r.dirty(),c.add(u.value)}return{status:r.value,value:c}}const a=[...s.data.values()].map((l,c)=>i._parse(new Oh(s,l,s.path,c)));return s.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(t,r){return new Rv({...this._def,minSize:{value:t,message:$t.toString(r)}})}max(t,r){return new Rv({...this._def,maxSize:{value:t,message:$t.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}Rv.create=(e,t)=>new Rv({valueType:e,minSize:null,maxSize:null,typeName:mr.ZodSet,..._r(t)});class rw extends Yr{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ht.function)return Mt(r,{code:ft.invalid_type,expected:Ht.function,received:r.parsedType}),Pr;function s(a,l){return EF({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,xF(),xw].filter(c=>!!c),issueData:{code:ft.invalid_arguments,argumentsError:l}})}function n(a,l){return EF({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,xF(),xw].filter(c=>!!c),issueData:{code:ft.invalid_return_type,returnTypeError:l}})}const i={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Pw){const a=this;return fa(async function(...l){const c=new Ul([]),u=await a._def.args.parseAsync(l,i).catch(g=>{throw c.addIssue(s(l,g)),c}),d=await Reflect.apply(o,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(g=>{throw c.addIssue(n(d,g)),c})})}else{const a=this;return fa(function(...l){const c=a._def.args.safeParse(l,i);if(!c.success)throw new Ul([s(l,c.error)]);const u=Reflect.apply(o,this,c.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new Ul([n(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new rw({...this._def,args:Nh.create(t).rest(lv.create())})}returns(t){return new rw({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,s){return new rw({args:t||Nh.create([]).rest(lv.create()),returns:r||lv.create(),typeName:mr.ZodFunction,..._r(s)})}}class kS extends Yr{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}kS.create=(e,t)=>new kS({getter:e,typeName:mr.ZodLazy,..._r(t)});class BS extends Yr{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return Mt(r,{received:r.data,code:ft.invalid_literal,expected:this._def.value}),Pr}return{status:"valid",value:t.data}}get value(){return this._def.value}}BS.create=(e,t)=>new BS({value:e,typeName:mr.ZodLiteral,..._r(t)});function jX(e,t){return new vA({values:e,typeName:mr.ZodEnum,..._r(t)})}class vA extends Yr{constructor(){super(...arguments),f1.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),s=this._def.values;return Mt(r,{expected:ms.joinValues(s),received:r.parsedType,code:ft.invalid_type}),Pr}if(FF(this,f1)||zX(this,f1,new Set(this._def.values)),!FF(this,f1).has(t.data)){const r=this._getOrReturnCtx(t),s=this._def.values;return Mt(r,{received:r.data,code:ft.invalid_enum_value,options:s}),Pr}return fa(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return vA.create(t,{...this._def,...r})}exclude(t,r=this._def){return vA.create(this.options.filter(s=>!t.includes(s)),{...this._def,...r})}}f1=new WeakMap;vA.create=jX;class LS extends Yr{constructor(){super(...arguments),A1.set(this,void 0)}_parse(t){const r=ms.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==Ht.string&&s.parsedType!==Ht.number){const n=ms.objectValues(r);return Mt(s,{expected:ms.joinValues(n),received:s.parsedType,code:ft.invalid_type}),Pr}if(FF(this,A1)||zX(this,A1,new Set(ms.getValidEnumValues(this._def.values))),!FF(this,A1).has(t.data)){const n=ms.objectValues(r);return Mt(s,{received:s.data,code:ft.invalid_enum_value,options:n}),Pr}return fa(t.data)}get enum(){return this._def.values}}A1=new WeakMap;LS.create=(e,t)=>new LS({values:e,typeName:mr.ZodNativeEnum,..._r(t)});class Pw extends Yr{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ht.promise&&r.common.async===!1)return Mt(r,{code:ft.invalid_type,expected:Ht.promise,received:r.parsedType}),Pr;const s=r.parsedType===Ht.promise?r.data:Promise.resolve(r.data);return fa(s.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Pw.create=(e,t)=>new Pw({type:e,typeName:mr.ZodPromise,..._r(t)});class od extends Yr{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===mr.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:s}=this._processInputParams(t),n=this._def.effect||null,i={addIssue:o=>{Mt(s,o),o.fatal?r.abort():r.dirty()},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),n.type==="preprocess"){const o=n.transform(s.data,i);if(s.common.async)return Promise.resolve(o).then(async a=>{if(r.value==="aborted")return Pr;const l=await this._def.schema._parseAsync({data:a,path:s.path,parent:s});return l.status==="aborted"?Pr:l.status==="dirty"||r.value==="dirty"?PF(l.value):l});{if(r.value==="aborted")return Pr;const a=this._def.schema._parseSync({data:o,path:s.path,parent:s});return a.status==="aborted"?Pr:a.status==="dirty"||r.value==="dirty"?PF(a.value):a}}if(n.type==="refinement"){const o=a=>{const l=n.refinement(a,i);if(s.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(s.common.async===!1){const a=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?Pr:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(a=>a.status==="aborted"?Pr:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(n.type==="transform")if(s.common.async===!1){const o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!ES(o))return o;const a=n.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>ES(o)?Promise.resolve(n.transform(o.value,i)).then(a=>({status:r.value,value:a})):o);ms.assertNever(n)}}od.create=(e,t,r)=>new od({schema:e,typeName:mr.ZodEffects,effect:t,..._r(r)});od.createWithPreprocess=(e,t,r)=>new od({schema:t,effect:{type:"preprocess",transform:e},typeName:mr.ZodEffects,..._r(r)});class Dh extends Yr{_parse(t){return this._getType(t)===Ht.undefined?fa(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Dh.create=(e,t)=>new Dh({innerType:e,typeName:mr.ZodOptional,..._r(t)});class CA extends Yr{_parse(t){return this._getType(t)===Ht.null?fa(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}CA.create=(e,t)=>new CA({innerType:e,typeName:mr.ZodNullable,..._r(t)});class HS extends Yr{_parse(t){const{ctx:r}=this._processInputParams(t);let s=r.data;return r.parsedType===Ht.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}HS.create=(e,t)=>new HS({innerType:e,typeName:mr.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,..._r(t)});class GS extends Yr{_parse(t){const{ctx:r}=this._processInputParams(t),s={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return PS(n)?n.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Ul(s.common.issues)},input:s.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new Ul(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}GS.create=(e,t)=>new GS({innerType:e,typeName:mr.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,..._r(t)});class MF extends Yr{_parse(t){if(this._getType(t)!==Ht.nan){const r=this._getOrReturnCtx(t);return Mt(r,{code:ft.invalid_type,expected:Ht.nan,received:r.parsedType}),Pr}return{status:"valid",value:t.data}}}MF.create=e=>new MF({typeName:mr.ZodNaN,..._r(e)});const wTe=Symbol("zod_brand");class d5 extends Yr{_parse(t){const{ctx:r}=this._processInputParams(t),s=r.data;return this._def.type._parse({data:s,path:r.path,parent:r})}unwrap(){return this._def.type}}class Xx extends Yr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{const n=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?Pr:n.status==="dirty"?(r.dirty(),PF(n.value)):this._def.out._parseAsync({data:n.value,path:s.path,parent:s})})();{const n=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?Pr:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:s.path,parent:s})}}static create(t,r){return new Xx({in:t,out:r,typeName:mr.ZodPipeline})}}class OS extends Yr{_parse(t){const r=this._def.innerType._parse(t),s=n=>(ES(n)&&(n.value=Object.freeze(n.value)),n);return PS(r)?r.then(n=>s(n)):s(r)}unwrap(){return this._def.innerType}}OS.create=(e,t)=>new OS({innerType:e,typeName:mr.ZodReadonly,..._r(t)});function KX(e,t={},r){return e?Ew.create().superRefine((s,n)=>{var i,o;if(!e(s)){const a=typeof t=="function"?t(s):typeof t=="string"?{message:t}:t,l=(o=(i=a.fatal)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:!0,c=typeof a=="string"?{message:a}:a;n.addIssue({code:"custom",...c,fatal:l})}}):Ew.create()}const yTe={object:Fn.lazycreate};var mr;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(mr||(mr={}));const bTe=(e,t={message:`Input not instance of ${e.name}`})=>KX(r=>r instanceof e,t),YX=zu.create,ZX=AA.create,STe=MF.create,xTe=mA.create,XX=FS.create,ETe=Fv.create,PTe=RF.create,FTe=RS.create,RTe=TS.create,TTe=Ew.create,DTe=lv.create,MTe=Ag.create,ITe=TF.create,kTe=$u.create,BTe=Fn.create,LTe=Fn.strictCreate,HTe=DS.create,GTe=yT.create,OTe=MS.create,NTe=Nh.create,_Te=IS.create,VTe=DF.create,zTe=Rv.create,QTe=rw.create,UTe=kS.create,WTe=BS.create,jTe=vA.create,KTe=LS.create,YTe=Pw.create,GG=od.create,ZTe=Dh.create,XTe=CA.create,$Te=od.createWithPreprocess,JTe=Xx.create,qTe=()=>YX().optional(),eDe=()=>ZX().optional(),tDe=()=>XX().optional(),rDe={string:e=>zu.create({...e,coerce:!0}),number:e=>AA.create({...e,coerce:!0}),boolean:e=>FS.create({...e,coerce:!0}),bigint:e=>mA.create({...e,coerce:!0}),date:e=>Fv.create({...e,coerce:!0})},sDe=Pr;var y=Object.freeze({__proto__:null,defaultErrorMap:xw,setErrorMap:sTe,getErrorMap:xF,makeIssue:EF,EMPTY_PATH:nTe,addIssueToContext:Mt,ParseStatus:Go,INVALID:Pr,DIRTY:PF,OK:fa,isAborted:jk,isDirty:Kk,isValid:ES,isAsync:PS,get util(){return ms},get objectUtil(){return Wk},ZodParsedType:Ht,getParsedType:Yf,ZodType:Yr,datetimeRegex:WX,ZodString:zu,ZodNumber:AA,ZodBigInt:mA,ZodBoolean:FS,ZodDate:Fv,ZodSymbol:RF,ZodUndefined:RS,ZodNull:TS,ZodAny:Ew,ZodUnknown:lv,ZodNever:Ag,ZodVoid:TF,ZodArray:$u,ZodObject:Fn,ZodUnion:DS,ZodDiscriminatedUnion:yT,ZodIntersection:MS,ZodTuple:Nh,ZodRecord:IS,ZodMap:DF,ZodSet:Rv,ZodFunction:rw,ZodLazy:kS,ZodLiteral:BS,ZodEnum:vA,ZodNativeEnum:LS,ZodPromise:Pw,ZodEffects:od,ZodTransformer:od,ZodOptional:Dh,ZodNullable:CA,ZodDefault:HS,ZodCatch:GS,ZodNaN:MF,BRAND:wTe,ZodBranded:d5,ZodPipeline:Xx,ZodReadonly:OS,custom:KX,Schema:Yr,ZodSchema:Yr,late:yTe,get ZodFirstPartyTypeKind(){return mr},coerce:rDe,any:TTe,array:kTe,bigint:xTe,boolean:XX,date:ETe,discriminatedUnion:GTe,effect:GG,enum:jTe,function:QTe,instanceof:bTe,intersection:OTe,lazy:UTe,literal:WTe,map:VTe,nan:STe,nativeEnum:KTe,never:MTe,null:RTe,nullable:XTe,number:ZX,object:BTe,oboolean:tDe,onumber:eDe,optional:ZTe,ostring:qTe,pipeline:JTe,preprocess:$Te,promise:YTe,record:_Te,set:zTe,strictObject:LTe,string:YX,symbol:PTe,transformer:GG,tuple:NTe,undefined:FTe,union:HTe,unknown:DTe,void:ITe,NEVER:sDe,ZodIssueCode:ft,quotelessJson:rTe,ZodError:Ul});y.object({__isRef:y.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),blockId:y.string().describe("Upstream block id"),name:y.string().describe("Name of the output provided to the upstream block's output context"),requireEnrichments:y.literal(!0).optional().describe("True if current block that stores this reference in its args, may need enrichments for the references value originating from the blocks in between current and referenced block")}).describe("Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees.").readonly();const nDe=24;y.string().length(nDe).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");var OG={exports:{}};(function(e,t){t=e.exports=r,t.getSerialize=s;function r(n,i,o,a){return JSON.stringify(n,s(i,a),o)}function s(n,i){var o=[],a=[];return i==null&&(i=function(l,c){return o[0]===c?"[Circular ~]":"[Circular ~."+a.slice(0,o.indexOf(c)).join(".")+"]"}),function(l,c){if(o.length>0){var u=o.indexOf(this);~u?o.splice(u+1):o.push(this),~u?a.splice(u,1/0,l):a.push(l),~o.indexOf(c)&&(c=i.call(this,l,c))}else o.push(c);return n==null?c:n.call(this,l,c)}}})(OG,OG.exports);const iDe=y.object({type:y.literal("PlError"),name:y.string(),message:y.string(),fullMessage:y.string().optional(),stack:y.string().optional()}),oDe=iDe.extend({cause:y.lazy(()=>IF).optional(),errors:y.lazy(()=>IF.array()).optional()}),aDe=y.object({type:y.literal("StandardError"),name:y.string(),message:y.string(),stack:y.string().optional()}),lDe=aDe.extend({cause:y.lazy(()=>IF).optional(),errors:y.lazy(()=>IF.array()).optional()}),IF=y.union([lDe,oDe]),cDe=y.object({name:y.string(),message:y.string(),fullMessage:y.string().optional(),stack:y.string().optional()}),NG=cDe.extend({cause:y.lazy(()=>NG).optional(),errors:y.lazy(()=>NG.array()).optional()});function uDe(e){if(e&&typeof globalThis.getPlatforma=="function")return globalThis.getPlatforma(e);if(typeof globalThis.platforma<"u")return globalThis.platforma;throw new Error("Can't get platforma instance.")}const dDe=y.object({type:y.string(),importance:y.number().optional(),id:y.string().optional(),label:y.string()});y.array(dDe);const hDe="1.31.15";function $X(){return uDe({sdkVersion:hDe})}function pDe(e){try{return $X()}catch{return e}}function gDe(e){if(typeof globalThis.getEnvironmentValue=="function")return globalThis.getEnvironmentValue(e)}class fDe extends Error{}class JX extends Error{constructor(t){super(t.map(r=>typeof r=="string"?r:r.message).join(`
668
668
  `)),bs(this,"fullMessage"),this.errors=t,this.fullMessage=t.map(r=>typeof r=="string"?r:r.type=="PlError"&&"fullMessage"in r?r.fullMessage:r.message).join(`
669
669
  `)}}function ADe(e){if(!e)throw new fDe;if(!e.ok)throw new JX(e.errors);return e.value}const qX=e=>e,e$=e=>e instanceof Error?e:Error(String(e)),t$=e=>e.name==="ZodError",r$=e=>{const{formErrors:t,fieldErrors:r}=e.flatten(),s=Object.entries(r).map(([n,i])=>n+":"+(i==null?void 0:i.join(",")));return t.concat(s).join("; ")};function _G(e){const t=e.validate??qX,{autoSave:r}=e,s=br(),n=br(),i=w=>{n.value={model:Th(w)}};tn(()=>e.get(),w=>i(w),{immediate:!0});const o=()=>{var w;e.onSave(t(Th((w=n.value)==null?void 0:w.model)))},a=()=>{i(e.get()),s.value=void 0},l=w=>{const v=e$(w);t$(v)?s.value=Error(r$(v)):s.value=v},c=w=>{s.value=void 0;try{t(w),r&&o()}catch(v){l(v)}},u=Je({get:()=>{var w;return(w=n.value)==null?void 0:w.model},set(w){i(w),c(w)}});tn(n,(w,v)=>{w&&w===v&&c(w.model)},{deep:!0});const d=Je(()=>!s.value),g=Je(()=>!Lc(e.get(),Pe(n))),A=Je(()=>s.value?s.value.message:"");return oi({model:u,valid:d,isChanged:g,error:s,errorString:A,save:o,revert:a,setError:l})}function mDe(e,t,r){const s=e.validate??qX,{autoSave:n}=e,i=br(),o=br(),a=b=>{var S;if(r.deepPatchModel){const P=(S=o.value)==null?void 0:S.model,F=Object.assign(Th(b),t??{});o.value={model:P?_X(P,F):F,stage:Symbol()}}else o.value={model:Object.assign(Th(b),t??{}),stage:Symbol()}};tn(()=>e.get(),b=>a(b),{immediate:!0});const l=()=>{var b;e.onSave(s(Th((b=o.value)==null?void 0:b.model)))},c=()=>{a(e.get()),i.value=void 0},u=b=>{const S=e$(b);t$(S)?i.value=Error(r$(S)):i.value=S},d=b=>{i.value=void 0;try{s(b),n&&l()}catch(S){u(S)}},g=Je({get:()=>{var b;return(b=o.value)==null?void 0:b.model},set(){throw Error("Cannot replace base model")}});tn([()=>({args:g.value.args,ui:g.value.ui}),()=>{var b;return(b=o.value)==null?void 0:b.stage}],([b,S],[P,F])=>{S===F&&d(b)},{deep:!0});const A=Je(()=>!i.value),w=Je(()=>{var b;const{args:S,ui:P}=((b=Pe(o))==null?void 0:b.model)??{};return!Lc(e.get(),{args:S,ui:P})}),v=Je(()=>i.value?i.value.message:"");return oi({model:g,valid:A,isChanged:w,error:i,errorString:v,save:l,revert:c,setError:u})}const vDe=e=>Object.fromEntries(new URL(e,"http://dummy").searchParams);function VG(e){return x7()?(iU(e),!0):!1}const zG=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const QG=()=>{};function CDe(e,t){function r(...s){return new Promise((n,i)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(n).catch(i)})}return r}function wDe(e,t={}){let r,s,n=QG;const i=o=>{clearTimeout(o),n(),n=QG};return o=>{const a=N2(e),l=N2(t.maxWait);return r&&i(r),a<=0||l!==void 0&&l<=0?(s&&(i(s),s=null),Promise.resolve(o())):new Promise((c,u)=>{n=t.rejectOnCancel?u:c,l&&!s&&(s=setTimeout(()=>{r&&i(r),s=null,c(o())},l)),r=setTimeout(()=>{s&&i(s),s=null,c(o())},a)})}}function a4(e,t=200,r={}){return CDe(wDe(t,r),e)}function yDe(e,t=1e3,r={}){const{immediate:s=!0,immediateCallback:n=!1}=r;let i=null;const o=br(!1);function a(){i&&(clearInterval(i),i=null)}function l(){o.value=!1,a()}function c(){const u=N2(t);u<=0||(o.value=!0,n&&e(),a(),o.value&&(i=setInterval(e,u)))}if(s&&zG&&c(),Ci(t)||typeof t=="function"){const u=tn(t,()=>{o.value&&zG&&c()});VG(u)}return VG(l),{isActive:o,pause:l,resume:c}}function bDe(e,t,r){const s=(P,...F)=>{r.debug&&console.log(`%c>>> %c${P}`,"color: orange; font-weight: bold","color: orange",...F)},n=oi({args:Object.freeze(e.args),outputs:Object.freeze(e.outputs),ui:Object.freeze(e.ui),navigationState:Object.freeze(e.navigationState)}),i=r.debounceSpan??100,o=r.debounceMaxWait??1e3,a=a4(P=>{Lc(P,n.args)||t.setBlockArgs(P)},i,{maxWait:o}),l=a4(P=>{Lc(P,n.ui)||t.setBlockUiState(P)},i,{maxWait:o}),c=a4((P,F)=>{(!Lc(P,n.args)||!Lc(F,n.ui))&&t.setBlockArgsAndUiState(P,F)},i,{maxWait:o});t.onStateUpdates(async P=>{P.forEach(F=>{F.key==="args"&&!Lc(n.args,F.value)&&(n.args=Object.freeze(F.value),s("args patch",n.args)),F.key==="ui"&&!Lc(n.ui,F.value)&&(n.ui=Object.freeze(F.value),s("ui patch",n.ui)),F.key==="outputs"&&!Lc(n.outputs,F.value)&&(n.outputs=Object.freeze(F.value),s("outputs patch",n.outputs)),F.key==="navigationState"&&!Lc(n.navigationState,F.value)&&(n.navigationState=Object.freeze(F.value),s("navigationState patch",n.navigationState))}),await HR()});const u=()=>Th(n.args),d=()=>Th(n.ui),g=()=>Th(n.navigationState),A={createArgsModel(P={}){return _G({get(){return P.transform?P.transform(n.args):n.args},validate:P.validate,autoSave:!0,onSave(F){a(F)}})},createUiModel(P={},F){return _G({get(){return P.transform?P.transform(n.ui):n.ui??F()},validate:P.validate,autoSave:!0,onSave(T){l(T)}})},useOutputs(...P){const F=oi({errors:void 0,value:void 0});return tn(()=>n.outputs,()=>{try{Object.assign(F,{value:this.unwrapOutputs(...P),errors:void 0})}catch(T){Object.assign(F,{value:void 0,errors:[String(T)]})}},{immediate:!0,deep:!0}),F},unwrapOutputs(...P){const F=n.outputs,T=P.map(D=>[D,ADe(F[D])]);return Object.fromEntries(T)},updateArgs(P){const F=u();return P(F),t.setBlockArgs(F)},updateUiState(P){const F=d();return t.setBlockUiState(P(F))},updateNavigationState(P){const F=g();return P(F),t.setNavigationState(F)},navigateTo(P){const F=g();return F.href=P,t.setNavigationState(F)}},w=Je(()=>{const P=Object.entries(n.outputs).map(([F,T])=>[F,T.ok&&T.value!==void 0?T.value:void 0]);return Object.fromEntries(P)}),v=Je(()=>{const P=Object.entries(n.outputs).map(([F,T])=>[F,T&&!T.ok?new JX(T.errors):void 0]);return Object.fromEntries(P)}),b={snapshot:n,queryParams:Je(()=>vDe(n.navigationState.href)),href:Je(()=>n.navigationState.href),hasErrors:Je(()=>Object.values(n.outputs).some(P=>!(P!=null&&P.ok)))},S=mDe({get(){return{args:n.args,ui:n.ui}},autoSave:!0,onSave(P){c(P.args,P.ui)}},{outputs:w,outputErrors:v},r);return oi(Object.assign(S,A,b))}const SDe=`.ag-header {
670
670
  border-bottom: 1px solid var(--border-color-default);
@@ -699,7 +699,7 @@ If you are trying to annotate ${s} with application data, use the '${s}.context'
699
699
  <rect x="3" y="3" width="18" height="18" rx="2" fill="#110529"/>
700
700
  <path fill-rule="evenodd" clip-rule="evenodd" d="M17.5431 8.51739L10.3333 16.0877L6.45691 12.0174L7.54312 10.9829L10.3333 13.9127L16.4569 7.48291L17.5431 8.51739Z" fill="white"/>
701
701
  </svg>
702
- `,mMe=["innerHTML"],vMe={class:"dropdown-list-item__title-container"},CMe={class:"dropdown-list-item__title text-s"},wMe={key:0,class:"dropdown-list-item__description text-description"},yMe={key:1,class:"dropdown-list-item__icon flex-self-start"},i$=Tr({__name:"DropdownListItem",props:{option:{},isSelected:{type:Boolean,default:!1},size:{default:"small"},isHovered:{type:Boolean,default:!1},useCheckbox:{type:Boolean,default:!1}},setup(e){const t=e,r=Je(()=>{const i=[];return t.size==="small"&&i.push("dropdown-list-item__small"),t.isSelected&&i.push("dropdown-list-item__selected"),t.isHovered&&i.push("hovered-item"),i.join(" ")}),s=Je(()=>{const i=["dropdown-list-item__checkbox","flex-self-start"];return t.isSelected&&i.push("checked"),i.join(" ")}),n=Je(()=>t.isSelected?AMe:fMe);return(i,o)=>(ye(),je("div",{class:St([r.value,"dropdown-list-item"])},[t.useCheckbox?(ye(),je("div",{key:0,class:St(s.value),innerHTML:n.value},null,10,mMe)):yt("",!0),o[1]||(o[1]=Ne()),We("div",vMe,[We("div",CMe,Zt(i.option.label),1),o[0]||(o[0]=Ne()),i.option.description?(ye(),je("div",wMe,Zt(i.option.description),1)):yt("",!0)]),o[2]||(o[2]=Ne()),!t.useCheckbox&&t.isSelected?(ye(),je("div",yMe)):yt("",!0)],2))}});function bMe(e){return e()}function SMe(e){let t=!1;return function(...r){t||(requestAnimationFrame(()=>{e(...r),t=!1}),t=!0)}}function xMe(e){return new Promise(t=>setTimeout(t,e))}function EMe(e,t){const r=setTimeout(e,t);return()=>{clearTimeout(r)}}function PMe(e){return function(t){return 1-e(1-t)}}function FMe(e){const{duration:t,draw:r,timing:s}=e,n=performance.now();let i=!1;return requestAnimationFrame(function o(a){let l=(a-n)/t;(l>1||i)&&(l=1);const c=s(l);r(c),l<1&&requestAnimationFrame(o)}),function(){i=!0}}function RMe(e,t,r=!0){let s=0,n;return function(...i){n=()=>{e.apply(this,i),s=new Date().getTime()+t,n=null,r&&setTimeout(()=>{n==null||n()},t)},new Date().getTime()>s&&n()}}function o$(e){if(!Array.isArray(e))throw Error("Invalid component options: "+String(e));return e.map(t=>({label:"label"in t?t.label:t.text,value:t.value,description:t.description}))}function a$(e,t){const r=SMe(()=>{if(e.value){const{scrollTop:s,scrollLeft:n,scrollHeight:i,scrollWidth:o,clientHeight:a,clientWidth:l}=document.documentElement,c=e.value.getBoundingClientRect();t({scrollTop:s,scrollLeft:n,scrollHeight:i,scrollWidth:o,clientHeight:a,clientWidth:l,offsetY:s+c.y,offsetX:n+c.x,top:c.top,right:c.right,bottom:c.bottom,left:c.left,width:c.width,height:c.height,x:c.x,y:c.y})}});Yh(r),cv(window,"scroll",r,{capture:!0,passive:!0}),cv(window,"resize",r,{passive:!0}),cv(window,"adjust",r,!0)}const TMe=Tr({__name:"PlMaskIcon16",props:{name:{},size:{}},setup(e){const t=e,r=Je(()=>t.size==="large"?"--mask-size: 24px":""),s=Je(()=>`mask-16 mask-${t.name}`);return(n,i)=>(ye(),je("i",{style:oo(r.value),class:St([s.value,n.$style.icon])},null,6))}}),DMe="_icon_1ugxm_2",MMe={icon:DMe},IMe={$style:MMe},Zk=$h(TMe,[["__cssModules",IMe]]);function l$(e){function t(r){const s=r.currentTarget,n=document.createElement("span"),i=Math.max(s.clientWidth,s.clientHeight),o=i/2;n.style.width=n.style.height=`${i}px`,n.style.left=`${r.clientX-s.offsetLeft-o}px`,n.style.top=`${r.clientY-s.offsetTop-o}px`,n.classList.add("ripple");const a=s.getElementsByClassName("ripple")[0];a&&a.remove(),s.appendChild(n)}Yh(()=>{var r;(r=e.value)==null||r.addEventListener("click",t)})}const kMe={key:0},BMe={inheritAttrs:!1},c$=Tr({...BMe,__name:"BtnBase",props:{loading:{type:Boolean},small:{type:Boolean},large:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(e){const t=e,r=br(),s=Je(()=>t.small||t.size==="small"),n=Je(()=>t.large||t.size==="large");return l$(r),(i,o)=>(ye(),je("button",dl({ref_key:"btn",ref:r,tabindex:"0",class:{loading:i.loading,small:s.value,large:n.value,round:i.round,reverse:i.reverse,justifyCenter:i.justifyCenter,[i.$attrs.class+""]:!0}},{...i.$attrs,disabled:!!i.$attrs.disabled||i.loading}),[i.round?yt("",!0):(ye(),je("span",kMe,[jr(i.$slots,"default")])),o[0]||(o[0]=Ne()),i.loading?(ye(),jt(Pe(Zk),{key:1,name:"loading",size:i.size},null,8,["size"])):i.icon?(ye(),jt(Pe(Zk),{key:2,name:i.icon,size:i.size},null,8,["name","size"])):yt("",!0)],16))}}),LMe={name:"PlBtnPrimary"},kF=Tr({...LMe,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(e){const t=e;return(r,s)=>(ye(),jt(c$,dl({class:"pl-btn-primary"},t),{default:er(()=>[jr(r.$slots,"default")]),_:3},16))}}),HMe={name:"PlBtnSecondary"},u$=Tr({...HMe,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(e){const t=e;return(r,s)=>(ye(),jt(c$,dl(t,{class:"pl-btn-secondary"}),{default:er(()=>[jr(r.$slots,"default")]),_:3},16))}}),GMe=Tr({__name:"PlMaskIcon24",props:{name:{},size:{}},setup(e){const t=e,r=Je(()=>`mask-24 mask-${t.name}`);return(s,n)=>(ye(),je("i",{class:St([r.value,s.$style.icon])},null,2))}}),OMe="_icon_1ugxm_2",NMe={icon:OMe},_Me={$style:NMe},Vc=$h(GMe,[["__cssModules",_Me]]),VMe={key:0},zMe={name:"PlBtnGhost"},g5=Tr({...zMe,props:{loading:{type:Boolean},size:{default:void 0},round:{type:Boolean},icon:{default:void 0},reverse:{type:Boolean},justifyCenter:{type:Boolean,default:!1}},setup(e){const t=e,r=Je(()=>t.size==="small"),s=Je(()=>t.size==="large"),n=br(),i=dd();return l$(n),(o,a)=>(ye(),je("button",dl({ref_key:"btnRef",ref:n,tabindex:"0",class:["pl-btn-ghost",{loading:o.loading,small:r.value,large:s.value,round:o.round,reverse:o.reverse,justifyCenter:o.justifyCenter,[o.$attrs.class+""]:!0}]},{...o.$attrs,disabled:!!o.$attrs.disabled||o.loading}),[Pe(i).default&&!o.round?(ye(),je("span",VMe,[jr(o.$slots,"default")])):yt("",!0),a[0]||(a[0]=Ne()),o.loading?(ye(),jt(Pe(Vc),{key:1,name:"loading",size:o.size},null,8,["size"])):o.icon?(ye(),jt(Pe(Vc),{key:2,name:o.icon,size:o.size},null,8,["name","size"])):yt("",!0),a[1]||(a[1]=Ne()),jr(o.$slots,"append")],16))}});function QMe(e,t){const r=br();return a$(e,s=>{r.value=s}),Je(()=>{const s=Pe(r),n=Pe(t),i=n.position??"top",o=n.gap??8;if(!s)return"";const a=s.offsetY+Math.floor(s.height/2),l=s.offsetX+Math.floor(s.width/2);return i==="top-left"?`left: ${s.offsetX}px; top: ${s.offsetY-o}px;`:i==="top"?`left: ${l}px; top: ${s.offsetY-o}px;`:i==="right"?`left: ${s.offsetX+s.width+o}px; top: ${a}px;`:i==="left"?`right: ${s.scrollWidth-s.x+o}px; top: ${a}px;`:i==="southwest"?`left: ${s.offsetX+s.width}px; top: ${s.offsetY+s.height+o}px;`:""})}function f5(e,t){return t(e)}function d$(e,t){if(e!=null)return t(e)}function UMe(e){return Array.isArray(e)?e:[e]}function h$(e,t){cv(document,"click",r=>{document.contains(r.target)&&(UMe(e).map(s=>s.value).filter(s=>!!s).some(s=>s==null?void 0:s.contains(r.target))||t())})}const WMe={},jMe={class:"beak",width:"5",height:"9",viewBox:"0 0 3 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function KMe(e,t){return ye(),je("svg",jMe,t[0]||(t[0]=[We("path",{d:"M4.00222 8.00933L0 4.00711L4.00222 0.00488281L4.00222 8.00933Z",fill:"#24223D"},null,-1)]))}const YMe=$h(WMe,[["render",KMe]]),u4=new Map,ZMe={name:"PlTooltip"},_h=Tr({...ZMe,props:{openDelay:{default:100},closeDelay:{default:1e3},position:{default:"top"},hide:{type:Boolean},gap:{default:8},element:{default:"div"},maxWidth:{default:"300px"}},emits:["tooltip:close"],setup(e,{emit:t}){const r=t,s=Symbol(),n=e,i=oi({open:!1,over:!1,tooltipOpen:!1,key:Symbol()});u4.set(s,()=>c()),tn(()=>i.open,b=>{requestAnimationFrame(()=>{i.tooltipOpen=b})});let o=()=>{};const a=RMe(()=>window.dispatchEvent(new CustomEvent("adjust")),1e3),l=()=>{i.open=!0;for(const[b,S]of u4.entries())b!==s&&S()},c=()=>{i.open=!1,r("tooltip:close")},u=async()=>{n.hide||(a(),i.over=!0,o(),await xMe(100),i.over&&l())},d=()=>{i.over=!1,o=EMe(()=>{i.over||c()},n.closeDelay)};tn(()=>n.hide,b=>{b&&c()});const g=br(),A=br(),w=QMe(g,I7(n));h$([g,A],()=>c());const v=Je(()=>({"--pl-tooltip-max-width":n.maxWidth}));return Bx(()=>{u4.delete(s)}),(b,S)=>(ye(),jt(QU(b.element),dl(b.$attrs,{ref_key:"rootRef",ref:g,onClick:u,onMouseover:u,onMouseleave:d}),{default:er(()=>[jr(b.$slots,"default"),S[1]||(S[1]=Ne()),b.$slots.tooltip&&i.open?(ye(),jt(kx,{key:0,to:"body"},[zt(V7,{name:"tooltip-transition"},{default:er(()=>[i.tooltipOpen?(ye(),je("div",{key:0,class:"pl-tooltip__container",style:oo(Pe(w))},[We("div",{ref_key:"tooltip",ref:A,class:St(["pl-tooltip",b.position]),style:oo(v.value),onMouseover:u,onMouseleave:d},[We("div",null,[jr(b.$slots,"tooltip")]),S[0]||(S[0]=Ne()),zt(YMe)],38)],4)):yt("",!0)]),_:3})])):yt("",!0)]),_:3},16))}}),XMe={},$Me={class:"inner-border"};function JMe(e,t,r,s,n,i){return ye(),je("div",$Me,[jr(e.$slots,"default")])}const qMe=$h(XMe,[["render",JMe]]),e4e={key:0},t4e=["tabindex","onKeydown","onClick"],r4e={key:1,class:"pl-btn-group__helper"},s4e={key:2,class:"pl-btn-group__error"},n4e={name:"PlBtnGroup"},i4e=Tr({...n4e,props:{modelValue:{},label:{},options:{},disabled:{type:Boolean},compact:{type:Boolean},helper:{},error:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=dd(),s=t,n=a=>s("update:modelValue",a),i=e,o=Je(()=>i.options.map(a=>({label:"label"in a?a.label:a.text,value:a.value})));return(a,l)=>(ye(),je("div",{class:St(["pl-btn-group",{disabled:a.disabled,compact:a.compact}])},[a.label?(ye(),je("label",e4e,[We("span",null,Zt(a.label),1),l[0]||(l[0]=Ne()),Pe(r).tooltip?(ye(),jt(Pe(_h),{key:0,class:"info",position:"top"},{tooltip:er(()=>[jr(a.$slots,"tooltip")]),_:3})):yt("",!0)])):yt("",!0),l[1]||(l[1]=Ne()),zt(qMe,{class:"pl-btn-group__container"},{default:er(()=>[(ye(!0),je(_s,null,Fh(o.value,(c,u)=>(ye(),je("div",{key:u,class:St(["pl-btn-group__option text-s",{active:a.modelValue===c.value}]),tabindex:a.modelValue===c.value||a.disabled?void 0:0,onKeydown:dw(d=>n(c.value),["enter"]),onClick:d=>n(c.value)},Zt(c.label),43,t4e))),128))]),_:1}),l[2]||(l[2]=Ne()),a.helper?(ye(),je("div",r4e,Zt(a.helper),1)):a.error?(ye(),je("div",s4e,Zt(a.error),1)):yt("",!0)],2))}}),o4e={inheritAttrs:!1},a4e={class:"double-contour"};function l4e(e,t,r,s,n,i){return ye(),je("div",a4e,[We("div",hie(gW(e.$attrs)),[jr(e.$slots,"default")],16)])}const $x=$h(o4e,[["render",l4e]]);function c4e(e){Yh(e),L7(e)}const A5=new WeakMap,Xk=new ResizeObserver(e=>{for(const t of e)d$(A5.get(t.target),r=>r(t))});function u4e(e,t){A5.set(e,t),Xk.unobserve(e),Xk.observe(e)}function d4e(e){Xk.unobserve(e),A5.delete(e)}const h4e=8,jG=4;function Jx(e,t="label"){const r=new Set;c4e(()=>{d$(e==null?void 0:e.value,s=>{const n=s.querySelector(t);n&&(r.add(n),u4e(n,()=>{const i=bMe(()=>n.getBoundingClientRect().width+f5(h4e,o=>Number.isNaN(o)?jG:o+jG));s.style.getPropertyValue("--label-offset-right-x")!==`${i}px`&&s.style.setProperty("--label-offset-right-x",`${i}px`)}))})}),H7(()=>{Array.from(r.values()).map(s=>d4e(s))})}function p4e(e,t){const r=[];return t&&t.length>0&&t.forEach(s=>{const n=s(e);typeof n=="string"&&r.push(n)}),{isValid:r.length===0,errors:r}}function g4e(e,t){return Je(()=>p4e(e.value,t))}const f4e=Tr({__name:"PlIcon16",props:{name:{},size:{}},setup(e){const t=e,r=Je(()=>t.size==="large"?"--icon-size: 24px":""),s=Je(()=>`icon-16 icon-${t.name}`);return(n,i)=>(ye(),je("i",{style:oo(r.value),class:St([s.value,n.$style.icon])},null,6))}}),A4e="_icon_1ugxm_2",m4e={icon:A4e},v4e={$style:m4e},_S=$h(f4e,[["__cssModules",v4e]]),C4e={class:"pl-text-field__envelope"},w4e={key:0,ref:"label"},y4e={key:0,class:"required-icon"},b4e={key:1,class:"pl-text-field__prefix"},S4e=["disabled","placeholder","type"],x4e={key:0,class:"pl-text-field__error"},E4e={key:1,class:"pl-text-field__helper"},P4e={name:"PlTextField"},d4=Tr({...P4e,props:KU({label:{},clearable:{type:[Boolean,Function]},parse:{type:Function},required:{type:Boolean},error:{},helper:{},placeholder:{},disabled:{type:Boolean},dashed:{type:Boolean},prefix:{},rules:{},type:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=dd(),r=lW(e,"modelValue"),s=e,n=br(void 0),i=br(),o=br(!1),a=oi({cached:void 0}),l=Je({get(){return a.cached?a.cached.value:r.value===void 0||r.value===null?"":String(r.value)},set(D){if(a.cached=void 0,s.parse)try{r.value=s.parse(D)}catch(B){a.cached={error:B instanceof Error?B.message:String(B),value:D}}else r.value=D}}),c=Je(()=>s.type&&s.type==="password"?o.value?"text":s.type:"text"),u=Je(()=>o.value?"view-show":"view-hide"),d=()=>{s.clearable&&(a.cached=void 0,r.value=s.clearable===!0?"":s.clearable())},g=g4e(l,s.rules||[]),A=Je(()=>s.clearable?s.clearable===!0?r.value==="":r.value===s.clearable():r.value===""),w=Je(()=>!A.value),v=Je(()=>{const D=[];return s.error&&D.push(s.error),a.cached&&D.push(a.cached.error),g.value.isValid||D.push(...g.value.errors),D}),b=Je(()=>v.value.length>0),S=Je(()=>s.clearable&&w.value&&s.type!=="password"&&!s.disabled),P=()=>o.value=!o.value,F=()=>{a.cached=void 0},T=()=>{var D;return(D=i.value)==null?void 0:D.focus()};return Jx(n),(D,B)=>(ye(),je("div",C4e,[We("div",{ref_key:"rootRef",ref:n,class:St(["pl-text-field",{error:b.value,disabled:D.disabled,dashed:D.dashed,nonEmpty:w.value}])},[D.label?(ye(),je("label",w4e,[D.required?(ye(),je("i",y4e)):yt("",!0),B[1]||(B[1]=Ne()),We("span",null,Zt(D.label),1),B[2]||(B[2]=Ne()),Pe(t).tooltip?(ye(),jt(Pe(_h),{key:1,class:"info",position:"top"},{tooltip:er(()=>[jr(D.$slots,"tooltip")]),_:3})):yt("",!0)],512)):yt("",!0),B[5]||(B[5]=Ne()),D.prefix?(ye(),je("div",b4e,Zt(D.prefix),1)):yt("",!0),B[6]||(B[6]=Ne()),Av(We("input",{ref_key:"inputRef",ref:i,"onUpdate:modelValue":B[0]||(B[0]=k=>l.value=k),disabled:D.disabled,placeholder:D.placeholder||"...",type:c.value,spellcheck:"false",onFocusout:F},null,40,S4e),[[Pae,l.value]]),B[7]||(B[7]=Ne()),We("div",{class:"pl-text-field__append",onClick:T},[S.value?(ye(),jt(Pe(_S),{key:0,class:"pl-text-field__clearable",name:"delete-clear",onClick:Nn(d,["stop"])})):yt("",!0),B[3]||(B[3]=Ne()),D.type==="password"?(ye(),jt(Pe(Vc),{key:1,name:u.value,style:{cursor:"pointer"},onClick:Nn(P,["stop"])},null,8,["name"])):yt("",!0),B[4]||(B[4]=Ne()),jr(D.$slots,"append")]),B[8]||(B[8]=Ne()),zt($x,{class:"pl-text-field__contour"})],2),B[9]||(B[9]=Ne()),b.value?(ye(),je("div",x4e,Zt(v.value.join(" ")),1)):D.helper?(ye(),je("div",E4e,Zt(D.helper),1)):yt("",!0)]))}}),F4e=Tr({__name:"PlIcon24",props:{name:{},size:{}},setup(e){const t=e,r=Je(()=>`icon-24 icon-${t.name}`);return(s,n)=>(ye(),je("i",{class:St([r.value,s.$style.icon])},null,2))}}),R4e="_icon_1ugxm_2",T4e={icon:R4e},D4e={$style:T4e},m5=$h(F4e,[["__cssModules",D4e]]),M4e=["disabled","placeholder"],I4e=Tr({__name:"PlSearchField",props:{modelValue:{},clearable:{type:Boolean},placeholder:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const r=t,s=e,n=br(void 0),i=br(),o=Je({get(){return s.modelValue??""},set(c){r("update:modelValue",c)}}),a=Je(()=>!!s.modelValue),l=()=>r("update:modelValue","");return(c,u)=>(ye(),je("div",{ref_key:"root",ref:n,class:St(["pl-search-field",[c.$style.component]])},[zt(Pe(m5),{name:"search"}),u[1]||(u[1]=Ne()),Av(We("input",{ref_key:"input",ref:i,"onUpdate:modelValue":u[0]||(u[0]=d=>o.value=d),disabled:c.disabled,type:"text",placeholder:c.placeholder||"Find...",spellcheck:"false"},null,8,M4e),[[pS,o.value]]),u[2]||(u[2]=Ne()),c.clearable&&a.value?(ye(),jt(Pe(_S),{key:0,class:St(c.$style.clear),name:"delete-clear",onClick:Nn(l,["stop"])},null,8,["class"])):yt("",!0)],2))}}),k4e="_component_pz0lo_1",B4e="_clear_pz0lo_35",L4e={component:k4e,clear:B4e},H4e={$style:L4e},G4e=$h(I4e,[["__cssModules",H4e]]);function KG(e){return e!==null&&typeof e=="object"}function ng(e,t){return KG(e)&&KG(t)?Object.keys(e).length!==Object.keys(t).length?!1:Object.keys(e).every(r=>ng(e[r],t[r])):e===t}function YG(e,t){return e.some(r=>ng(r,t))}const O4e=Tr({__name:"LongText",setup(e){cae(u=>({"5deba9de":o.value}));const t=br(!1),r=br(),s=br(!1),n=Je(()=>s.value&&t.value?"ui-lt-animate":""),i=MDe(u=>s.value=u,500),o=Je(()=>{var u;return r.value?`${((u=r.value)==null?void 0:u.innerHTML.length)*.4}s`:"5s"});function a(){const u=NS(r.value,"span cannot be empty");t.value=u.clientWidth<u.scrollWidth}function l(){a(),i(!0)}function c(){i(!1)}return(u,d)=>(ye(),je("div",dl(u.$attrs,{class:"ui-lt-container"}),[We("span",{onMouseover:l,onMouseleave:c},[We("span",{ref_key:"span",ref:r,class:St(n.value)},[jr(u.$slots,"default")],2)],32)],16))}});function N4e(e,t){const r=e.scrollTop,s=e.getBoundingClientRect().height,n=t.offsetTop,i=t.getBoundingClientRect().height;return n+i<s+r&&n>r}function _4e(e,t){const r=e.scrollTop,s=e.getBoundingClientRect().height,n=t.offsetTop,i=t.getBoundingClientRect().height;return n+i<s+r?"ceil":n>r?"floor":"visible"}function V4e(e,t,r={}){const s=e.scrollTop,n=e.getBoundingClientRect().height,i=t.getBoundingClientRect().height,o=t.offsetTop,a=_4e(e,t);if(a==="visible")return;const l=c=>{const u=a==="floor"?o-(n-i):o;e.scrollTop=s+c*(u-s)};N4e(e,t)||FMe({duration:r.duration||100,timing:PMe(c=>c),draw:l})}const p$=Tr({__name:"DropdownOverlay",props:{root:{},gap:{}},setup(e,{expose:t}){const r=e,s=oi({optionsHeight:0}),n=oi({top:"0px",left:"0px",width:"0px"}),i=I7(r,"root"),o=br();return t({scrollIntoActive:()=>{const a=o.value;a&&p5(a.querySelector(".hovered-item"),l=>{V4e(a,l)})},listRef:o}),tn(o,a=>{a&&requestAnimationFrame(()=>{const l=a.getBoundingClientRect();s.optionsHeight=l.height,window.dispatchEvent(new CustomEvent("adjust"))})}),a$(i,a=>{const l=document.body.getBoundingClientRect(),c=a.top-l.top,u=a.left-l.left,d=r.gap??0,g=c+a.height+d;g+s.optionsHeight>a.clientHeight?n.top=c-s.optionsHeight-d+"px":n.top=g+"px",n.left=u+"px",n.width=a.width+"px"}),(a,l)=>(ye(),jt(kx,{to:"body"},[We("div",dl({ref_key:"listRef",ref:o},a.$attrs,{style:n,tabindex:"-1"}),[jr(a.$slots,"default",{ref:"list"})],16)]))}}),z4e=["tabindex"],Q4e={class:"pl-dropdown__container"},U4e={class:"pl-dropdown__field"},W4e=["disabled","placeholder"],j4e={key:0,class:"input-value"},K4e={class:"pl-dropdown__controls"},Y4e={key:2,class:"arrow-icon arrow-icon-default"},Z4e={key:0},X4e={key:0,class:"required-icon"},$4e={key:0,class:"nothing-found"},J4e={key:0,class:"pl-dropdown__error"},q4e={key:1,class:"pl-dropdown__helper"},eIe={key:2,class:"pl-dropdown__helper"},tIe={name:"PlDropdown"},g$=Tr({...tIe,props:{modelValue:{},label:{default:""},options:{default:void 0},helper:{default:void 0},loadingOptionsHelper:{default:void 0},error:{default:void 0},placeholder:{default:"..."},clearable:{type:Boolean,default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},arrowIcon:{default:void 0},arrowIconLarge:{default:void 0},optionSize:{default:"small"}},emits:["update:modelValue"],setup(e,{emit:t}){const r=t,s=e,n=dd(),i=br(),o=br(),a=B7("overlay"),l=oi({search:"",activeIndex:-1,open:!1,optionsHeight:0}),c=()=>f5(F.value.findIndex(G=>ng(G.value,s.modelValue)),G=>G<0?0:G),u=()=>l.activeIndex=c(),d=Je(()=>s.options===void 0),g=Je(()=>d.value?!0:s.disabled),A=Je(()=>(s.options??[]).findIndex(G=>ng(G.value,s.modelValue))),w=Je(()=>{if(!d.value){if(s.error)return s.error;if(s.modelValue!==void 0&&A.value===-1)return"The selected value is not one of the options"}}),v=Je(()=>o$(s.options??[]).map((G,N)=>({...G,index:N,isSelected:N===A.value,isActive:N===l.activeIndex}))),b=Je(()=>{const G=Pe(v).find(N=>ng(N.value,s.modelValue));return(G==null?void 0:G.label)||s.modelValue}),S=Je(()=>!l.open&&s.modelValue?"":s.modelValue?String(b.value):s.placeholder),P=Je(()=>s.modelValue!==void 0&&s.modelValue!==null),F=Je(()=>{const G=v.value;return l.search?G.filter(N=>{const W=l.search.toLowerCase();return N.label.toLowerCase().includes(W)||N.description&&N.description.toLowerCase().includes(W)?!0:typeof N.value=="string"?N.value.toLowerCase().includes(W):N.value===l.search}):G}),T=Je(()=>g.value?void 0:"0"),D=G=>{var N;r("update:modelValue",G),l.search="",l.open=!1,(N=i==null?void 0:i.value)==null||N.focus()},B=()=>r("update:modelValue",void 0),k=()=>{var G;return(G=o.value)==null?void 0:G.focus()},z=()=>{l.open=!l.open,l.open||(l.search="")},O=()=>l.open=!0,j=G=>{var N,W,V;const q=G.relatedTarget;!((N=i.value)!=null&&N.contains(q))&&!((V=(W=a.value)==null?void 0:W.listRef)!=null&&V.contains(q))&&(l.search="",l.open=!1)},_=G=>{var N,W;if(["ArrowDown","ArrowUp","Enter","Escape"].includes(G.code))G.preventDefault();else return;const{open:V,activeIndex:q}=l;if(!V){G.code==="Enter"&&(l.open=!0);return}G.code==="Escape"&&(l.open=!1,(N=i.value)==null||N.focus());const pe=Pe(F),{length:X}=pe;if(!X)return;G.code==="Enter"&&D((W=pe.find(se=>se.index===q))==null?void 0:W.value);const re=pe.findIndex(se=>se.index===q)??-1,ae=G.code==="ArrowDown"?1:G.code==="ArrowUp"?-1:0,$=Math.abs(re+ae+X)%X;l.activeIndex=F.value[$].index??-1};return Jx(i),tn(()=>s.modelValue,u,{immediate:!0}),tn(()=>l.open,G=>{var N;return G?(N=o.value)==null?void 0:N.focus():""}),oW(()=>{var G;l.search,l.activeIndex>=0&&l.open&&((G=a.value)==null||G.scrollIntoActive())}),(G,N)=>(ye(),je("div",{class:"pl-dropdown__envelope",onClick:k},[We("div",{ref_key:"rootRef",ref:i,tabindex:T.value,class:St(["pl-dropdown",{open:l.open,error:G.error,disabled:g.value}]),onKeydown:_,onFocusout:j},[We("div",Q4e,[We("div",U4e,[Av(We("input",{ref_key:"input",ref:o,"onUpdate:modelValue":N[0]||(N[0]=W=>l.search=W),type:"text",tabindex:"-1",disabled:g.value,placeholder:S.value,spellcheck:"false",autocomplete:"chrome-off",onFocus:O},null,40,W4e),[[pS,l.search]]),N[4]||(N[4]=Ne()),l.open?yt("",!0):(ye(),je("div",j4e,[zt(O4e,null,{default:er(()=>[Ne(Zt(b.value),1)]),_:1})])),N[5]||(N[5]=Ne()),We("div",K4e,[d.value?(ye(),jt(Pe(Vc),{key:0,name:"loading"})):yt("",!0),N[1]||(N[1]=Ne()),G.clearable&&P.value?(ye(),jt(Pe(_S),{key:1,name:"delete-clear",onClick:Nn(B,["stop"])})):yt("",!0),N[2]||(N[2]=Ne()),jr(G.$slots,"append"),N[3]||(N[3]=Ne()),We("div",{class:"pl-dropdown__arrow-wrapper",onClick:Nn(z,["stop"])},[G.arrowIconLarge?(ye(),je("div",{key:0,class:St(["arrow-icon",[`icon-24 ${G.arrowIconLarge}`]])},null,2)):G.arrowIcon?(ye(),je("div",{key:1,class:St(["arrow-icon",[`icon-16 ${G.arrowIcon}`]])},null,2)):(ye(),je("div",Y4e))])])]),N[9]||(N[9]=Ne()),G.label?(ye(),je("label",Z4e,[G.required?(ye(),je("i",X4e)):yt("",!0),N[6]||(N[6]=Ne()),We("span",null,Zt(G.label),1),N[7]||(N[7]=Ne()),Pe(n).tooltip?(ye(),jt(Pe(_h),{key:1,class:"info",position:"top"},{tooltip:er(()=>[jr(G.$slots,"tooltip")]),_:3})):yt("",!0)])):yt("",!0),N[10]||(N[10]=Ne()),l.open?(ye(),jt(Pe(p$),{key:1,ref:"overlay",root:i.value,class:"pl-dropdown__options",tabindex:"-1",gap:3},{default:er(()=>[(ye(!0),je(_s,null,Fh(F.value,(W,V)=>(ye(),jt(i$,{key:V,option:W,"is-selected":W.isSelected,"is-hovered":W.isActive,size:G.optionSize,onClick:Nn(q=>D(W.value),["stop"])},null,8,["option","is-selected","is-hovered","size","onClick"]))),128)),N[8]||(N[8]=Ne()),F.value.length?yt("",!0):(ye(),je("div",$4e,"Nothing found"))]),_:1},8,["root"])):yt("",!0),N[11]||(N[11]=Ne()),zt($x,{class:"pl-dropdown__contour"})])],42,z4e),N[12]||(N[12]=Ne()),w.value?(ye(),je("div",J4e,Zt(w.value),1)):d.value&&G.loadingOptionsHelper?(ye(),je("div",q4e,Zt(G.loadingOptionsHelper),1)):G.helper?(ye(),je("div",eIe,Zt(G.helper),1)):yt("",!0)]))}}),rIe={class:"pl-chip__text"},ZG=Tr({__name:"PlChip",props:{closeable:{type:Boolean},small:{type:Boolean}},emits:["close"],setup(e){const t=br(),r=br(!1);return Yh(()=>{var s;t.value&&(r.value=((s=t.value)==null?void 0:s.clientWidth)>=256)}),(s,n)=>(ye(),jt(Pe(_h),{position:"top",class:"pl-chip-tooltip",delay:500},UU({default:er(()=>[n[4]||(n[4]=Ne()),We("div",{ref_key:"chip",ref:t,class:St(["pl-chip",{small:s.small}])},[We("div",rIe,[jr(s.$slots,"default")]),n[3]||(n[3]=Ne()),s.closeable?(ye(),je("div",{key:0,tabindex:"0",class:"pl-chip__close",onKeydown:n[0]||(n[0]=dw(i=>s.$emit("close"),["enter"])),onClick:n[1]||(n[1]=Nn(i=>s.$emit("close"),["stop"]))},n[2]||(n[2]=[We("div",{class:"pl-chip__close--icon"},null,-1)]),32)):yt("",!0)],2)]),_:2},[r.value?{name:"tooltip",fn:er(()=>[jr(s.$slots,"default")]),key:"0"}:void 0]),1024))}}),sIe=["tabindex"],nIe={class:"pl-dropdown-multi__container"},iIe={class:"pl-dropdown-multi__field"},oIe=["disabled","placeholder"],aIe={key:0,class:"chips-container"},lIe={class:"pl-dropdown-multi__controls"},cIe={key:0},uIe={key:0,class:"required-icon"},dIe={class:"pl-dropdown-multi__open-chips-container"},hIe={key:0,class:"nothing-found"},pIe={key:0,class:"pl-dropdown-multi__error"},gIe={key:1,class:"pl-dropdown-multi__helper"},fIe={name:"PlDropdownMulti"},AIe=Tr({...fIe,props:{modelValue:{default:()=>[]},label:{default:void 0},options:{default:void 0},helper:{default:void 0},error:{default:void 0},placeholder:{default:"..."},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const r=t,s=O=>r("update:modelValue",O),n=dd(),i=e,o=br(),a=br(),l=B7("overlay"),c=oi({search:"",activeOption:-1,open:!1,optionsHeight:0}),u=Je(()=>Array.isArray(i.modelValue)?i.modelValue:[]),d=Je(()=>c.open&&i.modelValue.length>0?i.placeholder:i.modelValue.length>0?"":i.placeholder),g=Je(()=>o$(i.options??[])),A=Je(()=>u.value.map(O=>g.value.find(j=>ng(j.value,O))).filter(O=>O!==void 0)),w=Je(()=>{const O=Pe(u),j=Pe(g);return(c.search?j.filter(_=>{const G=c.search.toLowerCase();return _.label.toLowerCase().includes(G)?!0:typeof _.value=="string"?_.value.toLowerCase().includes(G):_.value===c.search}):[...j]).map(_=>({..._,selected:YG(O,_.value)}))}),v=Je(()=>i.options===void 0),b=Je(()=>v.value?!0:i.disabled),S=Je(()=>b.value?void 0:"0"),P=()=>{c.activeOption=f5(w.value.findIndex(O=>ng(O.value,i.modelValue)),O=>O<0?0:O)},F=O=>{var j;const _=Pe(u);s(YG(_,O)?_.filter(G=>!ng(G,O)):[..._,O]),c.search="",(j=o==null?void 0:o.value)==null||j.focus()},T=O=>s(Pe(u).filter(j=>!ng(j,O))),D=()=>{var O;return(O=a.value)==null?void 0:O.focus()},B=()=>{c.open=!c.open,c.open||(c.search="")},k=O=>{var j,_,G;const N=O.relatedTarget;!((j=o.value)!=null&&j.contains(N))&&!((G=(_=l.value)==null?void 0:_.listRef)!=null&&G.contains(N))&&(c.search="",c.open=!1)},z=O=>{var j;const{open:_,activeOption:G}=c;if(!_){O.code==="Enter"&&(c.open=!0);return}O.code==="Escape"&&(c.open=!1,(j=o.value)==null||j.focus());const N=Pe(w),{length:W}=N;if(!W)return;["ArrowDown","ArrowUp","Enter"].includes(O.code)&&O.preventDefault(),O.code==="Enter"&&F(N[G].value);const V=O.code==="ArrowDown"?1:O.code==="ArrowUp"?-1:0;c.activeOption=Math.abs(G+V+W)%W,requestAnimationFrame(()=>{var q;return(q=l.value)==null?void 0:q.scrollIntoActive()})};return Jx(o),tn(()=>i.modelValue,()=>P(),{immediate:!0}),oW(()=>{var O;c.search,c.open&&((O=l.value)==null||O.scrollIntoActive())}),(O,j)=>(ye(),je("div",{class:"pl-dropdown-multi__envelope",onClick:D},[We("div",{ref_key:"rootRef",ref:o,tabindex:S.value,class:St(["pl-dropdown-multi",{open:c.open,error:O.error,disabled:b.value}]),onKeydown:z,onFocusout:k},[We("div",nIe,[We("div",iIe,[Av(We("input",{ref_key:"input",ref:a,"onUpdate:modelValue":j[0]||(j[0]=_=>c.search=_),type:"text",tabindex:"-1",disabled:b.value,placeholder:d.value,spellcheck:"false",autocomplete:"chrome-off",onFocus:j[1]||(j[1]=_=>c.open=!0)},null,40,oIe),[[pS,c.search]]),j[6]||(j[6]=Ne()),c.open?yt("",!0):(ye(),je("div",aIe,[(ye(!0),je(_s,null,Fh(A.value,(_,G)=>(ye(),jt(Pe(ZG),{key:G,closeable:"",small:"",onClick:j[2]||(j[2]=Nn(N=>c.open=!0,["stop"])),onClose:N=>T(_.value)},{default:er(()=>[Ne(Zt(_.label||_.value),1)]),_:2},1032,["onClose"]))),128))])),j[7]||(j[7]=Ne()),We("div",lIe,[v.value?(ye(),jt(Pe(Vc),{key:0,name:"loading"})):yt("",!0),j[4]||(j[4]=Ne()),jr(O.$slots,"append"),j[5]||(j[5]=Ne()),We("div",{class:"pl-dropdown-multi__arrow-wrapper",onClick:Nn(B,["stop"])},j[3]||(j[3]=[We("div",{class:"arrow-icon arrow-icon-default"},null,-1)]))])]),j[12]||(j[12]=Ne()),O.label?(ye(),je("label",cIe,[O.required?(ye(),je("i",uIe)):yt("",!0),j[8]||(j[8]=Ne()),We("span",null,Zt(O.label),1),j[9]||(j[9]=Ne()),Pe(n).tooltip?(ye(),jt(Pe(_h),{key:1,class:"info",position:"top"},{tooltip:er(()=>[jr(O.$slots,"tooltip")]),_:3})):yt("",!0)])):yt("",!0),j[13]||(j[13]=Ne()),c.open?(ye(),jt(p$,{key:1,ref_key:"overlay",ref:l,root:o.value,class:"pl-dropdown-multi__options",gap:5,tabindex:"-1",onFocusout:k},{default:er(()=>[We("div",dIe,[(ye(!0),je(_s,null,Fh(A.value,(_,G)=>(ye(),jt(Pe(ZG),{key:G,closeable:"",small:"",onClose:N=>T(_.value)},{default:er(()=>[Ne(Zt(_.label||_.value),1)]),_:2},1032,["onClose"]))),128))]),j[10]||(j[10]=Ne()),(ye(!0),je(_s,null,Fh(w.value,(_,G)=>(ye(),jt(i$,{key:G,option:_,"text-item":"text","is-selected":_.selected,"is-hovered":c.activeOption==G,size:"medium","use-checkbox":"",onClick:Nn(N=>F(_.value),["stop"])},null,8,["option","is-selected","is-hovered","onClick"]))),128)),j[11]||(j[11]=Ne()),w.value.length?yt("",!0):(ye(),je("div",hIe,"Nothing found"))]),_:1},8,["root"])):yt("",!0),j[14]||(j[14]=Ne()),zt($x,{class:"pl-dropdown-multi__contour"})])],42,sIe),j[15]||(j[15]=Ne()),O.error?(ye(),je("div",pIe,Zt(O.error),1)):O.helper?(ye(),je("div",gIe,Zt(O.helper),1)):yt("",!0)]))}}),XG=Tr({__name:"PlCheckboxBase",props:{modelValue:{type:Boolean},disabled:{type:Boolean},indeterminate:{type:Boolean}},emits:["update:modelValue"],setup(e){const t=e;return(r,s)=>(ye(),je("div",{tabindex:"0",class:St(["pl-checkbox-base",{...t.indeterminate?{indeterminate:!0}:{checked:t.modelValue},disabled:r.disabled}]),onClick:s[0]||(s[0]=n=>r.$emit("update:modelValue",!r.modelValue)),onKeydown:s[1]||(s[1]=dw(Nn(n=>r.$emit("update:modelValue",!r.modelValue),["prevent"]),["space"]))},null,34))}}),mIe={name:"PlCheckbox"},vIe=Tr({...mIe,props:{modelValue:{type:Boolean},disabled:{type:Boolean},indeterminate:{type:Boolean}},emits:["update:modelValue"],setup(e){const t=e,r=dd();return(s,n)=>Pe(r).default?(ye(),je("div",{key:0,class:St(["pl-checkbox",{disabled:s.disabled}])},[zt(XG,dl(t,{"onUpdate:modelValue":n[0]||(n[0]=i=>s.$emit("update:modelValue",i))}),null,16),n[3]||(n[3]=Ne()),We("label",{onClick:n[1]||(n[1]=i=>s.$emit("update:modelValue",!s.$props.modelValue))},[jr(s.$slots,"default")])],2)):(ye(),jt(XG,dl({key:1},t,{"onUpdate:modelValue":n[2]||(n[2]=i=>s.$emit("update:modelValue",i))}),null,16))}}),CIe="_component_tupwt_1",wIe={component:CIe},yIe={};function bIe(e,t){return ye(),je("div",{class:St(e.$style.component)},t[0]||(t[0]=[We("div",null,null,-1)]),2)}const SIe={$style:wIe},xIe=$h(yIe,[["render",bIe],["__cssModules",SIe]]),EIe={key:1,class:"pl-dialog-modal__title"},PIe={inheritAttrs:!1},f$=Tr({...PIe,__name:"PlDialogModal",props:{modelValue:{type:Boolean},width:{default:"448px"},height:{default:"auto"},minHeight:{default:"auto"},maxHeight:{default:"auto"},closable:{type:Boolean,default:!0},noContentGutters:{type:Boolean,default:!1},noTopContentGutter:{type:Boolean},actionsHasTopBorder:{type:Boolean,default:!0},closeOnOutsideClick:{type:Boolean},size:{default:void 0}},emits:["update:modelValue"],setup(e,{emit:t}){const r=dd(),s=t,n=e,i=br(),o=Je(()=>{const{width:l,height:c,minHeight:u,maxHeight:d,size:g}=n;return g==="small"?{width:"448px",height:"440px",minHeight:"auto",maxHeight:"auto"}:g==="medium"?{width:"720px",height:"720px",minHeight:"auto",maxHeight:"auto"}:g==="large"?{width:"1080px",height:"880px",minHeight:"auto",maxHeight:"auto"}:{width:l,height:c,minHeight:u,maxHeight:d}});function a(l){i.value&&n.closeOnOutsideClick&&document.contains(l.target)&&!i.value.contains(l.target)&&s("update:modelValue",!1)}return cv(document.body,"keyup",l=>{n.modelValue&&l.code==="Escape"&&s("update:modelValue",!1)}),(l,c)=>(ye(),jt(kx,{to:"body"},[zt(V7,{name:"dialog"},{default:er(()=>[l.modelValue?(ye(),je("div",{key:0,class:"pl-dialog-modal__shadow",onClick:a},[We("div",dl(l.$attrs,{ref_key:"modal",ref:i,class:["pl-dialog-modal",{"has-title":Pe(r).title,"has-content":Pe(r).default}],style:o.value}),[l.closable?(ye(),jt(xIe,{key:0,class:"close-modal-btn",onClick:c[0]||(c[0]=Nn(u=>s("update:modelValue",!1),["stop"]))})):yt("",!0),c[1]||(c[1]=Ne()),Pe(r).title?(ye(),je("div",EIe,[jr(l.$slots,"title")])):yt("",!0),c[2]||(c[2]=Ne()),We("div",{class:St(["pl-dialog-modal__content",{"no-content-gutters":l.noContentGutters,"no-top-content-gutter":l.noTopContentGutter}])},[jr(l.$slots,"default")],2),c[3]||(c[3]=Ne()),Pe(r).actions?(ye(),je("div",{key:2,class:St(["pl-dialog-modal__actions",{"has-top-border":l.actionsHasTopBorder}])},[jr(l.$slots,"actions")],2)):yt("",!0)],16)])):yt("",!0)]),_:3})]))}}),FIe=Tr({__name:"TransitionSlidePanel",setup(e){function t(){window.dispatchEvent(new CustomEvent("adjust"))}function r(){window.dispatchEvent(new CustomEvent("adjust"))}return(s,n)=>(ye(),jt(V7,{name:"slide-panel",onAfterEnter:t,onAfterLeave:r},{default:er(()=>[jr(s.$slots,"default")]),_:3}))}}),RIe={key:0,class:"pl-slide-modal__title"},TIe={class:"pl-slide-modal__title-content"},DIe={class:"pl-slide-modal__content"},MIe={key:1,class:"pl-slide-modal__actions"},IIe={name:"PlSlideModal",inheritAttrs:!1},kIe=Tr({...IIe,props:{modelValue:{type:Boolean,default:!1},width:{default:"368px"},shadow:{type:Boolean,default:!1},closeOnOutsideClick:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const r=dd(),s=t,n=e,i=br(),o=doe();return h$(i,()=>{n.modelValue&&n.closeOnOutsideClick&&s("update:modelValue",!1)}),cv(document,"keydown",a=>{a.key==="Escape"&&s("update:modelValue",!1)}),(a,l)=>(ye(),jt(kx,{to:"body"},[zt(FIe,null,{default:er(()=>[a.modelValue?(ye(),je("div",dl({key:0,ref_key:"modal",ref:i,style:{width:a.width}},Pe(o),{class:["pl-slide-modal",{"has-title":Pe(r).title,"has-actions":Pe(r).actions}],onKeyup:l[1]||(l[1]=dw(c=>s("update:modelValue",!1),["esc"]))}),[We("div",{class:"close-dialog-btn",onClick:l[0]||(l[0]=c=>s("update:modelValue",!1))}),l[3]||(l[3]=Ne()),Pe(r).title?(ye(),je("div",RIe,[We("span",TIe,[jr(a.$slots,"title")])])):yt("",!0),l[4]||(l[4]=Ne()),We("div",DIe,[jr(a.$slots,"default")]),l[5]||(l[5]=Ne()),Pe(r).actions?(ye(),je("div",MIe,[jr(a.$slots,"actions")])):yt("",!0)],16)):yt("",!0)]),_:3}),l[6]||(l[6]=Ne()),a.modelValue&&a.shadow?(ye(),je("div",{key:0,class:"pl-slide-modal__shadow",onKeyup:l[2]||(l[2]=dw(c=>s("update:modelValue",!1),["esc"]))},null,32)):yt("",!0)]))}});function A$(e){return x7()?(iU(e),!0):!1}const m$=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function BIe(e,t,r={}){const{immediate:s=!0}=r,n=br(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function a(){n.value=!1,o()}function l(...c){o(),n.value=!0,i=setTimeout(()=>{n.value=!1,i=null,e(...c)},N2(t))}return s&&(n.value=!0,m$&&l()),A$(a),{isPending:T7(n),start:l,stop:a}}function LIe(e,t,r){return tn(e,(s,n,i)=>{s&&t(s,n,i)},{...r,once:!1})}function HIe(e,t,r={}){const{immediate:s=!0}=r,{start:n}=BIe(o,t,{immediate:!1}),i=br(!1);async function o(){i.value&&(await e(),n())}function a(){i.value||(i.value=!0,o())}function l(){i.value=!1}return s&&m$&&a(),A$(l),{isActive:i,pause:l,resume:a}}var vs;(function(e){e.assertEqual=n=>n;function t(n){}e.assertIs=t;function r(n){throw new Error}e.assertNever=r,e.arrayToEnum=n=>{const i={};for(const o of n)i[o]=o;return i},e.getValidEnumValues=n=>{const i=e.objectKeys(n).filter(a=>typeof n[n[a]]!="number"),o={};for(const a of i)o[a]=n[a];return e.objectValues(o)},e.objectValues=n=>e.objectKeys(n).map(function(i){return n[i]}),e.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{const i=[];for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&i.push(o);return i},e.find=(n,i)=>{for(const o of n)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&isFinite(n)&&Math.floor(n)===n;function s(n,i=" | "){return n.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=s,e.jsonStringifyReplacer=(n,i)=>typeof i=="bigint"?i.toString():i})(vs||(vs={}));var $k;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})($k||($k={}));const Gt=vs.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Zf=e=>{switch(typeof e){case"undefined":return Gt.undefined;case"string":return Gt.string;case"number":return isNaN(e)?Gt.nan:Gt.number;case"boolean":return Gt.boolean;case"function":return Gt.function;case"bigint":return Gt.bigint;case"symbol":return Gt.symbol;case"object":return Array.isArray(e)?Gt.array:e===null?Gt.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Gt.promise:typeof Map<"u"&&e instanceof Map?Gt.map:typeof Set<"u"&&e instanceof Set?Gt.set:typeof Date<"u"&&e instanceof Date?Gt.date:Gt.object;default:return Gt.unknown}},At=vs.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),GIe=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Wl extends Error{constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const r=t||function(i){return i.message},s={_errors:[]},n=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(n);else if(o.code==="invalid_return_type")n(o.returnTypeError);else if(o.code==="invalid_arguments")n(o.argumentsError);else if(o.path.length===0)s._errors.push(r(o));else{let a=s,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(r(o))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return n(this),s}static assert(t){if(!(t instanceof Wl))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,vs.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},s=[];for(const n of this.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):s.push(t(n));return{formErrors:s,fieldErrors:r}}get formErrors(){return this.flatten()}}Wl.create=e=>new Wl(e);const Fw=(e,t)=>{let r;switch(e.code){case At.invalid_type:e.received===Gt.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case At.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,vs.jsonStringifyReplacer)}`;break;case At.unrecognized_keys:r=`Unrecognized key(s) in object: ${vs.joinValues(e.keys,", ")}`;break;case At.invalid_union:r="Invalid input";break;case At.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${vs.joinValues(e.options)}`;break;case At.invalid_enum_value:r=`Invalid enum value. Expected ${vs.joinValues(e.options)}, received '${e.received}'`;break;case At.invalid_arguments:r="Invalid function arguments";break;case At.invalid_return_type:r="Invalid function return type";break;case At.invalid_date:r="Invalid date";break;case At.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:vs.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case At.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case At.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case At.custom:r="Invalid input";break;case At.invalid_intersection_types:r="Intersection results could not be merged";break;case At.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case At.not_finite:r="Number must be finite";break;default:r=t.defaultError,vs.assertNever(e)}return{message:r}};let v$=Fw;function OIe(e){v$=e}function BF(){return v$}const LF=e=>{const{data:t,path:r,errorMaps:s,issueData:n}=e,i=[...r,...n.path||[]],o={...n,path:i};if(n.message!==void 0)return{...n,path:i,message:n.message};let a="";const l=s.filter(c=>!!c).slice().reverse();for(const c of l)a=c(o,{data:t,defaultError:a}).message;return{...n,path:i,message:a}},NIe=[];function It(e,t){const r=BF(),s=LF({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Fw?void 0:Fw].filter(n=>!!n)});e.common.issues.push(s)}class Oo{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const s=[];for(const n of r){if(n.status==="aborted")return Fr;n.status==="dirty"&&t.dirty(),s.push(n.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,r){const s=[];for(const n of r){const i=await n.key,o=await n.value;s.push({key:i,value:o})}return Oo.mergeObjectSync(t,s)}static mergeObjectSync(t,r){const s={};for(const n of r){const{key:i,value:o}=n;if(i.status==="aborted"||o.status==="aborted")return Fr;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||n.alwaysSet)&&(s[i.value]=o.value)}return{status:t.value,value:s}}}const Fr=Object.freeze({status:"aborted"}),HF=e=>({status:"dirty",value:e}),Aa=e=>({status:"valid",value:e}),Jk=e=>e.status==="aborted",qk=e=>e.status==="dirty",VS=e=>e.status==="valid",zS=e=>typeof Promise<"u"&&e instanceof Promise;function GF(e,t,r,s){if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function C$(e,t,r,s,n){if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}var Jt;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Jt||(Jt={}));var m1,v1;let Vh=class{constructor(e,t,r,s){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}};const $G=(e,t)=>{if(VS(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Wl(e.common.issues);return this._error=r,this._error}}};function Vr(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:s,description:n}=e;if(t&&(r||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:n}:{errorMap:(i,o)=>{var a,l;const{message:c}=e;return i.code==="invalid_enum_value"?{message:c??o.defaultError}:typeof o.data>"u"?{message:(a=c??s)!==null&&a!==void 0?a:o.defaultError}:i.code!=="invalid_type"?{message:o.defaultError}:{message:(l=c??r)!==null&&l!==void 0?l:o.defaultError}},description:n}}let Zr=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return Zf(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Zf(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Oo,ctx:{common:e.parent.common,data:e.data,parsedType:Zf(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(zS(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;const s={common:{issues:[],async:(r=t==null?void 0:t.async)!==null&&r!==void 0?r:!1,contextualErrorMap:t==null?void 0:t.errorMap},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Zf(e)},n=this._parseSync({data:e,path:s.path,parent:s});return $G(s,n)}async parseAsync(e,t){const r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){const r={common:{issues:[],contextualErrorMap:t==null?void 0:t.errorMap,async:!0},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Zf(e)},s=this._parse({data:e,path:r.path,parent:r}),n=await(zS(s)?s:Promise.resolve(s));return $G(r,n)}refine(e,t){const r=s=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(s):t;return this._refinement((s,n)=>{const i=e(s),o=()=>n.addIssue({code:At.custom,...r(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(a=>a?!0:(o(),!1)):i?!0:(o(),!1)})}refinement(e,t){return this._refinement((r,s)=>e(r)?!0:(s.addIssue(typeof t=="function"?t(r,s):t),!1))}_refinement(e){return new ad({schema:this,typeName:vr.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Mh.create(this,this._def)}nullable(){return bA.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ju.create(this,this._def)}promise(){return Tw.create(this,this._def)}or(e){return YS.create([this,e],this._def)}and(e){return ZS.create(this,e,this._def)}transform(e){return new ad({...Vr(this._def),schema:this,typeName:vr.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new ex({...Vr(this._def),innerType:this,defaultValue:t,typeName:vr.ZodDefault})}brand(){return new v5({typeName:vr.ZodBranded,type:this,...Vr(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new tx({...Vr(this._def),innerType:this,catchValue:t,typeName:vr.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return e3.create(this,e)}readonly(){return rx.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};const _Ie=/^c[^\s-]{8,}$/i,VIe=/^[0-9a-z]+$/,zIe=/^[0-9A-HJKMNP-TV-Z]{26}$/,QIe=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,UIe=/^[a-z0-9_-]{21}$/i,WIe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,jIe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,KIe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let h4;const YIe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ZIe=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,XIe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,w$="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",$Ie=new RegExp(`^${w$}$`);function y$(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function JIe(e){return new RegExp(`^${y$(e)}$`)}function b$(e){let t=`${w$}T${y$(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function qIe(e,t){return!!((t==="v4"||!t)&&YIe.test(e)||(t==="v6"||!t)&&ZIe.test(e))}class Qu extends Zr{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Gt.string){const n=this._getOrReturnCtx(t);return It(n,{code:At.invalid_type,expected:Gt.string,received:n.parsedType}),Fr}const r=new Oo;let s;for(const n of this._def.checks)if(n.kind==="min")t.data.length<n.value&&(s=this._getOrReturnCtx(t,s),It(s,{code:At.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if(n.kind==="max")t.data.length>n.value&&(s=this._getOrReturnCtx(t,s),It(s,{code:At.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if(n.kind==="length"){const i=t.data.length>n.value,o=t.data.length<n.value;(i||o)&&(s=this._getOrReturnCtx(t,s),i?It(s,{code:At.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):o&&It(s,{code:At.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),r.dirty())}else if(n.kind==="email")jIe.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"email",code:At.invalid_string,message:n.message}),r.dirty());else if(n.kind==="emoji")h4||(h4=new RegExp(KIe,"u")),h4.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"emoji",code:At.invalid_string,message:n.message}),r.dirty());else if(n.kind==="uuid")QIe.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"uuid",code:At.invalid_string,message:n.message}),r.dirty());else if(n.kind==="nanoid")UIe.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"nanoid",code:At.invalid_string,message:n.message}),r.dirty());else if(n.kind==="cuid")_Ie.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"cuid",code:At.invalid_string,message:n.message}),r.dirty());else if(n.kind==="cuid2")VIe.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"cuid2",code:At.invalid_string,message:n.message}),r.dirty());else if(n.kind==="ulid")zIe.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"ulid",code:At.invalid_string,message:n.message}),r.dirty());else if(n.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),It(s,{validation:"url",code:At.invalid_string,message:n.message}),r.dirty()}else n.kind==="regex"?(n.regex.lastIndex=0,n.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"regex",code:At.invalid_string,message:n.message}),r.dirty())):n.kind==="trim"?t.data=t.data.trim():n.kind==="includes"?t.data.includes(n.value,n.position)||(s=this._getOrReturnCtx(t,s),It(s,{code:At.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),r.dirty()):n.kind==="toLowerCase"?t.data=t.data.toLowerCase():n.kind==="toUpperCase"?t.data=t.data.toUpperCase():n.kind==="startsWith"?t.data.startsWith(n.value)||(s=this._getOrReturnCtx(t,s),It(s,{code:At.invalid_string,validation:{startsWith:n.value},message:n.message}),r.dirty()):n.kind==="endsWith"?t.data.endsWith(n.value)||(s=this._getOrReturnCtx(t,s),It(s,{code:At.invalid_string,validation:{endsWith:n.value},message:n.message}),r.dirty()):n.kind==="datetime"?b$(n).test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{code:At.invalid_string,validation:"datetime",message:n.message}),r.dirty()):n.kind==="date"?$Ie.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{code:At.invalid_string,validation:"date",message:n.message}),r.dirty()):n.kind==="time"?JIe(n).test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{code:At.invalid_string,validation:"time",message:n.message}),r.dirty()):n.kind==="duration"?WIe.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"duration",code:At.invalid_string,message:n.message}),r.dirty()):n.kind==="ip"?qIe(t.data,n.version)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"ip",code:At.invalid_string,message:n.message}),r.dirty()):n.kind==="base64"?XIe.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"base64",code:At.invalid_string,message:n.message}),r.dirty()):vs.assertNever(n);return{status:r.value,value:t.data}}_regex(t,r,s){return this.refinement(n=>t.test(n),{validation:r,code:At.invalid_string,...Jt.errToObj(s)})}_addCheck(t){return new Qu({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Jt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Jt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Jt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Jt.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Jt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Jt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Jt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Jt.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Jt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Jt.errToObj(t)})}datetime(t){var r,s;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,local:(s=t==null?void 0:t.local)!==null&&s!==void 0?s:!1,...Jt.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Jt.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Jt.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...Jt.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...Jt.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...Jt.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...Jt.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...Jt.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...Jt.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...Jt.errToObj(r)})}nonempty(t){return this.min(1,Jt.errToObj(t))}trim(){return new Qu({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Qu({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Qu({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}Qu.create=e=>{var t;return new Qu({checks:[],typeName:vr.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Vr(e)})};function eke(e,t){const r=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,n=r>s?r:s,i=parseInt(e.toFixed(n).replace(".","")),o=parseInt(t.toFixed(n).replace(".",""));return i%o/Math.pow(10,n)}let QS=class eB extends Zr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Gt.number){const n=this._getOrReturnCtx(t);return It(n,{code:At.invalid_type,expected:Gt.number,received:n.parsedType}),Fr}let r;const s=new Oo;for(const n of this._def.checks)n.kind==="int"?vs.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),It(r,{code:At.invalid_type,expected:"integer",received:"float",message:n.message}),s.dirty()):n.kind==="min"?(n.inclusive?t.data<n.value:t.data<=n.value)&&(r=this._getOrReturnCtx(t,r),It(r,{code:At.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),s.dirty()):n.kind==="max"?(n.inclusive?t.data>n.value:t.data>=n.value)&&(r=this._getOrReturnCtx(t,r),It(r,{code:At.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),s.dirty()):n.kind==="multipleOf"?eke(t.data,n.value)!==0&&(r=this._getOrReturnCtx(t,r),It(r,{code:At.not_multiple_of,multipleOf:n.value,message:n.message}),s.dirty()):n.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),It(r,{code:At.not_finite,message:n.message}),s.dirty()):vs.assertNever(n);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Jt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Jt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Jt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Jt.toString(r))}setLimit(t,r,s,n){return new eB({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:s,message:Jt.toString(n)}]})}_addCheck(t){return new eB({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Jt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Jt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Jt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Jt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Jt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Jt.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:Jt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Jt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Jt.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&vs.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(r===null||s.value>r)&&(r=s.value):s.kind==="max"&&(t===null||s.value<t)&&(t=s.value)}return Number.isFinite(r)&&Number.isFinite(t)}};QS.create=e=>new QS({checks:[],typeName:vr.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Vr(e)});class wA extends Zr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==Gt.bigint){const n=this._getOrReturnCtx(t);return It(n,{code:At.invalid_type,expected:Gt.bigint,received:n.parsedType}),Fr}let r;const s=new Oo;for(const n of this._def.checks)n.kind==="min"?(n.inclusive?t.data<n.value:t.data<=n.value)&&(r=this._getOrReturnCtx(t,r),It(r,{code:At.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),s.dirty()):n.kind==="max"?(n.inclusive?t.data>n.value:t.data>=n.value)&&(r=this._getOrReturnCtx(t,r),It(r,{code:At.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),s.dirty()):n.kind==="multipleOf"?t.data%n.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),It(r,{code:At.not_multiple_of,multipleOf:n.value,message:n.message}),s.dirty()):vs.assertNever(n);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Jt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Jt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Jt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Jt.toString(r))}setLimit(t,r,s,n){return new wA({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:s,message:Jt.toString(n)}]})}_addCheck(t){return new wA({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Jt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Jt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Jt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Jt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Jt.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}wA.create=e=>{var t;return new wA({checks:[],typeName:vr.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Vr(e)})};let US=class extends Zr{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Gt.boolean){const t=this._getOrReturnCtx(e);return It(t,{code:At.invalid_type,expected:Gt.boolean,received:t.parsedType}),Fr}return Aa(e.data)}};US.create=e=>new US({typeName:vr.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Vr(e)});let WS=class S$ extends Zr{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Gt.date){const n=this._getOrReturnCtx(t);return It(n,{code:At.invalid_type,expected:Gt.date,received:n.parsedType}),Fr}if(isNaN(t.data.getTime())){const n=this._getOrReturnCtx(t);return It(n,{code:At.invalid_date}),Fr}const r=new Oo;let s;for(const n of this._def.checks)n.kind==="min"?t.data.getTime()<n.value&&(s=this._getOrReturnCtx(t,s),It(s,{code:At.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):n.kind==="max"?t.data.getTime()>n.value&&(s=this._getOrReturnCtx(t,s),It(s,{code:At.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):vs.assertNever(n);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new S$({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:Jt.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:Jt.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};WS.create=e=>new WS({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:vr.ZodDate,...Vr(e)});let OF=class extends Zr{_parse(e){if(this._getType(e)!==Gt.symbol){const t=this._getOrReturnCtx(e);return It(t,{code:At.invalid_type,expected:Gt.symbol,received:t.parsedType}),Fr}return Aa(e.data)}};OF.create=e=>new OF({typeName:vr.ZodSymbol,...Vr(e)});class jS extends Zr{_parse(t){if(this._getType(t)!==Gt.undefined){const r=this._getOrReturnCtx(t);return It(r,{code:At.invalid_type,expected:Gt.undefined,received:r.parsedType}),Fr}return Aa(t.data)}}jS.create=e=>new jS({typeName:vr.ZodUndefined,...Vr(e)});class KS extends Zr{_parse(t){if(this._getType(t)!==Gt.null){const r=this._getOrReturnCtx(t);return It(r,{code:At.invalid_type,expected:Gt.null,received:r.parsedType}),Fr}return Aa(t.data)}}KS.create=e=>new KS({typeName:vr.ZodNull,...Vr(e)});let Rw=class extends Zr{constructor(){super(...arguments),this._any=!0}_parse(e){return Aa(e.data)}};Rw.create=e=>new Rw({typeName:vr.ZodAny,...Vr(e)});class uv extends Zr{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Aa(t.data)}}uv.create=e=>new uv({typeName:vr.ZodUnknown,...Vr(e)});class mg extends Zr{_parse(t){const r=this._getOrReturnCtx(t);return It(r,{code:At.invalid_type,expected:Gt.never,received:r.parsedType}),Fr}}mg.create=e=>new mg({typeName:vr.ZodNever,...Vr(e)});let NF=class extends Zr{_parse(e){if(this._getType(e)!==Gt.undefined){const t=this._getOrReturnCtx(e);return It(t,{code:At.invalid_type,expected:Gt.void,received:t.parsedType}),Fr}return Aa(e.data)}};NF.create=e=>new NF({typeName:vr.ZodVoid,...Vr(e)});class Ju extends Zr{_parse(t){const{ctx:r,status:s}=this._processInputParams(t),n=this._def;if(r.parsedType!==Gt.array)return It(r,{code:At.invalid_type,expected:Gt.array,received:r.parsedType}),Fr;if(n.exactLength!==null){const o=r.data.length>n.exactLength.value,a=r.data.length<n.exactLength.value;(o||a)&&(It(r,{code:o?At.too_big:At.too_small,minimum:a?n.exactLength.value:void 0,maximum:o?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),s.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(It(r,{code:At.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),s.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(It(r,{code:At.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),s.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>n.type._parseAsync(new Vh(r,o,r.path,a)))).then(o=>Oo.mergeArray(s,o));const i=[...r.data].map((o,a)=>n.type._parseSync(new Vh(r,o,r.path,a)));return Oo.mergeArray(s,i)}get element(){return this._def.type}min(t,r){return new Ju({...this._def,minLength:{value:t,message:Jt.toString(r)}})}max(t,r){return new Ju({...this._def,maxLength:{value:t,message:Jt.toString(r)}})}length(t,r){return new Ju({...this._def,exactLength:{value:t,message:Jt.toString(r)}})}nonempty(t){return this.min(1,t)}}Ju.create=(e,t)=>new Ju({type:e,minLength:null,maxLength:null,exactLength:null,typeName:vr.ZodArray,...Vr(t)});function L0(e){if(e instanceof Jc){const t={};for(const r in e.shape){const s=e.shape[r];t[r]=Mh.create(L0(s))}return new Jc({...e._def,shape:()=>t})}else return e instanceof Ju?new Ju({...e._def,type:L0(e.element)}):e instanceof Mh?Mh.create(L0(e.unwrap())):e instanceof bA?bA.create(L0(e.unwrap())):e instanceof yA?yA.create(e.items.map(t=>L0(t))):e}let Jc=class Lu extends Zr{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=vs.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==Gt.object){const l=this._getOrReturnCtx(t);return It(l,{code:At.invalid_type,expected:Gt.object,received:l.parsedType}),Fr}const{status:r,ctx:s}=this._processInputParams(t),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof mg&&this._def.unknownKeys==="strip"))for(const l in s.data)i.includes(l)||o.push(l);const a=[];for(const l of i){const c=n[l],u=s.data[l];a.push({key:{status:"valid",value:l},value:c._parse(new Vh(s,u,s.path,l)),alwaysSet:l in s.data})}if(this._def.catchall instanceof mg){const l=this._def.unknownKeys;if(l==="passthrough")for(const c of o)a.push({key:{status:"valid",value:c},value:{status:"valid",value:s.data[c]}});else if(l==="strict")o.length>0&&(It(s,{code:At.unrecognized_keys,keys:o}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const c of o){const u=s.data[c];a.push({key:{status:"valid",value:c},value:l._parse(new Vh(s,u,s.path,c)),alwaysSet:c in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const l=[];for(const c of a){const u=await c.key,d=await c.value;l.push({key:u,value:d,alwaysSet:c.alwaysSet})}return l}).then(l=>Oo.mergeObjectSync(r,l)):Oo.mergeObjectSync(r,a)}get shape(){return this._def.shape()}strict(t){return Jt.errToObj,new Lu({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,s)=>{var n,i,o,a;const l=(o=(i=(n=this._def).errorMap)===null||i===void 0?void 0:i.call(n,r,s).message)!==null&&o!==void 0?o:s.defaultError;return r.code==="unrecognized_keys"?{message:(a=Jt.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new Lu({...this._def,unknownKeys:"strip"})}passthrough(){return new Lu({...this._def,unknownKeys:"passthrough"})}extend(t){return new Lu({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Lu({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:vr.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new Lu({...this._def,catchall:t})}pick(t){const r={};return vs.objectKeys(t).forEach(s=>{t[s]&&this.shape[s]&&(r[s]=this.shape[s])}),new Lu({...this._def,shape:()=>r})}omit(t){const r={};return vs.objectKeys(this.shape).forEach(s=>{t[s]||(r[s]=this.shape[s])}),new Lu({...this._def,shape:()=>r})}deepPartial(){return L0(this)}partial(t){const r={};return vs.objectKeys(this.shape).forEach(s=>{const n=this.shape[s];t&&!t[s]?r[s]=n:r[s]=n.optional()}),new Lu({...this._def,shape:()=>r})}required(t){const r={};return vs.objectKeys(this.shape).forEach(s=>{if(t&&!t[s])r[s]=this.shape[s];else{let n=this.shape[s];for(;n instanceof Mh;)n=n._def.innerType;r[s]=n}}),new Lu({...this._def,shape:()=>r})}keyof(){return F$(vs.objectKeys(this.shape))}};Jc.create=(e,t)=>new Jc({shape:()=>e,unknownKeys:"strip",catchall:mg.create(),typeName:vr.ZodObject,...Vr(t)});Jc.strictCreate=(e,t)=>new Jc({shape:()=>e,unknownKeys:"strict",catchall:mg.create(),typeName:vr.ZodObject,...Vr(t)});Jc.lazycreate=(e,t)=>new Jc({shape:e,unknownKeys:"strip",catchall:mg.create(),typeName:vr.ZodObject,...Vr(t)});let YS=class extends Zr{_parse(e){const{ctx:t}=this._processInputParams(e),r=this._def.options;function s(n){for(const o of n)if(o.result.status==="valid")return o.result;for(const o of n)if(o.result.status==="dirty")return t.common.issues.push(...o.ctx.common.issues),o.result;const i=n.map(o=>new Wl(o.ctx.common.issues));return It(t,{code:At.invalid_union,unionErrors:i}),Fr}if(t.common.async)return Promise.all(r.map(async n=>{const i={...t,common:{...t.common,issues:[]},parent:null};return{result:await n._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(s);{let n;const i=[];for(const a of r){const l={...t,common:{...t.common,issues:[]},parent:null},c=a._parseSync({data:t.data,path:t.path,parent:l});if(c.status==="valid")return c;c.status==="dirty"&&!n&&(n={result:c,ctx:l}),l.common.issues.length&&i.push(l.common.issues)}if(n)return t.common.issues.push(...n.ctx.common.issues),n.result;const o=i.map(a=>new Wl(a));return It(t,{code:At.invalid_union,unionErrors:o}),Fr}}get options(){return this._def.options}};YS.create=(e,t)=>new YS({options:e,typeName:vr.ZodUnion,...Vr(t)});const kf=e=>e instanceof $S?kf(e.schema):e instanceof ad?kf(e.innerType()):e instanceof JS?[e.value]:e instanceof qx?e.options:e instanceof qS?vs.objectValues(e.enum):e instanceof ex?kf(e._def.innerType):e instanceof jS?[void 0]:e instanceof KS?[null]:e instanceof Mh?[void 0,...kf(e.unwrap())]:e instanceof bA?[null,...kf(e.unwrap())]:e instanceof v5||e instanceof rx?kf(e.unwrap()):e instanceof tx?kf(e._def.innerType):[];let x$=class E$ extends Zr{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Gt.object)return It(r,{code:At.invalid_type,expected:Gt.object,received:r.parsedType}),Fr;const s=this.discriminator,n=r.data[s],i=this.optionsMap.get(n);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(It(r,{code:At.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),Fr)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,s){const n=new Map;for(const i of r){const o=kf(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of o){if(n.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);n.set(a,i)}}return new E$({typeName:vr.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:n,...Vr(s)})}};function tB(e,t){const r=Zf(e),s=Zf(t);if(e===t)return{valid:!0,data:e};if(r===Gt.object&&s===Gt.object){const n=vs.objectKeys(t),i=vs.objectKeys(e).filter(a=>n.indexOf(a)!==-1),o={...e,...t};for(const a of i){const l=tB(e[a],t[a]);if(!l.valid)return{valid:!1};o[a]=l.data}return{valid:!0,data:o}}else if(r===Gt.array&&s===Gt.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let i=0;i<e.length;i++){const o=e[i],a=t[i],l=tB(o,a);if(!l.valid)return{valid:!1};n.push(l.data)}return{valid:!0,data:n}}else return r===Gt.date&&s===Gt.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ZS extends Zr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t),n=(i,o)=>{if(Jk(i)||Jk(o))return Fr;const a=tB(i.value,o.value);return a.valid?((qk(i)||qk(o))&&r.dirty(),{status:r.value,value:a.data}):(It(s,{code:At.invalid_intersection_types}),Fr)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,o])=>n(i,o)):n(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}ZS.create=(e,t,r)=>new ZS({left:e,right:t,typeName:vr.ZodIntersection,...Vr(r)});let yA=class P$ extends Zr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Gt.array)return It(s,{code:At.invalid_type,expected:Gt.array,received:s.parsedType}),Fr;if(s.data.length<this._def.items.length)return It(s,{code:At.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Fr;!this._def.rest&&s.data.length>this._def.items.length&&(It(s,{code:At.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const n=[...s.data].map((i,o)=>{const a=this._def.items[o]||this._def.rest;return a?a._parse(new Vh(s,i,s.path,o)):null}).filter(i=>!!i);return s.common.async?Promise.all(n).then(i=>Oo.mergeArray(r,i)):Oo.mergeArray(r,n)}get items(){return this._def.items}rest(t){return new P$({...this._def,rest:t})}};yA.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new yA({items:e,typeName:vr.ZodTuple,rest:null,...Vr(t)})};class XS extends Zr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Gt.object)return It(s,{code:At.invalid_type,expected:Gt.object,received:s.parsedType}),Fr;const n=[],i=this._def.keyType,o=this._def.valueType;for(const a in s.data)n.push({key:i._parse(new Vh(s,a,s.path,a)),value:o._parse(new Vh(s,s.data[a],s.path,a)),alwaysSet:a in s.data});return s.common.async?Oo.mergeObjectAsync(r,n):Oo.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(t,r,s){return r instanceof Zr?new XS({keyType:t,valueType:r,typeName:vr.ZodRecord,...Vr(s)}):new XS({keyType:Qu.create(),valueType:t,typeName:vr.ZodRecord,...Vr(r)})}}let _F=class extends Zr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==Gt.map)return It(r,{code:At.invalid_type,expected:Gt.map,received:r.parsedType}),Fr;const s=this._def.keyType,n=this._def.valueType,i=[...r.data.entries()].map(([o,a],l)=>({key:s._parse(new Vh(r,o,r.path,[l,"key"])),value:n._parse(new Vh(r,a,r.path,[l,"value"]))}));if(r.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const a of i){const l=await a.key,c=await a.value;if(l.status==="aborted"||c.status==="aborted")return Fr;(l.status==="dirty"||c.status==="dirty")&&t.dirty(),o.set(l.value,c.value)}return{status:t.value,value:o}})}else{const o=new Map;for(const a of i){const l=a.key,c=a.value;if(l.status==="aborted"||c.status==="aborted")return Fr;(l.status==="dirty"||c.status==="dirty")&&t.dirty(),o.set(l.value,c.value)}return{status:t.value,value:o}}}};_F.create=(e,t,r)=>new _F({valueType:t,keyType:e,typeName:vr.ZodMap,...Vr(r)});let VF=class rB extends Zr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Gt.set)return It(s,{code:At.invalid_type,expected:Gt.set,received:s.parsedType}),Fr;const n=this._def;n.minSize!==null&&s.data.size<n.minSize.value&&(It(s,{code:At.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&s.data.size>n.maxSize.value&&(It(s,{code:At.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());const i=this._def.valueType;function o(l){const c=new Set;for(const u of l){if(u.status==="aborted")return Fr;u.status==="dirty"&&r.dirty(),c.add(u.value)}return{status:r.value,value:c}}const a=[...s.data.values()].map((l,c)=>i._parse(new Vh(s,l,s.path,c)));return s.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(t,r){return new rB({...this._def,minSize:{value:t,message:Jt.toString(r)}})}max(t,r){return new rB({...this._def,maxSize:{value:t,message:Jt.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};VF.create=(e,t)=>new VF({valueType:e,minSize:null,maxSize:null,typeName:vr.ZodSet,...Vr(t)});class sw extends Zr{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Gt.function)return It(r,{code:At.invalid_type,expected:Gt.function,received:r.parsedType}),Fr;function s(a,l){return LF({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,BF(),Fw].filter(c=>!!c),issueData:{code:At.invalid_arguments,argumentsError:l}})}function n(a,l){return LF({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,BF(),Fw].filter(c=>!!c),issueData:{code:At.invalid_return_type,returnTypeError:l}})}const i={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Tw){const a=this;return Aa(async function(...l){const c=new Wl([]),u=await a._def.args.parseAsync(l,i).catch(g=>{throw c.addIssue(s(l,g)),c}),d=await Reflect.apply(o,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(g=>{throw c.addIssue(n(d,g)),c})})}else{const a=this;return Aa(function(...l){const c=a._def.args.safeParse(l,i);if(!c.success)throw new Wl([s(l,c.error)]);const u=Reflect.apply(o,this,c.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new Wl([n(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new sw({...this._def,args:yA.create(t).rest(uv.create())})}returns(t){return new sw({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,s){return new sw({args:t||yA.create([]).rest(uv.create()),returns:r||uv.create(),typeName:vr.ZodFunction,...Vr(s)})}}let $S=class extends Zr{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};$S.create=(e,t)=>new $S({getter:e,typeName:vr.ZodLazy,...Vr(t)});let JS=class extends Zr{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return It(t,{received:t.data,code:At.invalid_literal,expected:this._def.value}),Fr}return{status:"valid",value:e.data}}get value(){return this._def.value}};JS.create=(e,t)=>new JS({value:e,typeName:vr.ZodLiteral,...Vr(t)});function F$(e,t){return new qx({values:e,typeName:vr.ZodEnum,...Vr(t)})}let qx=class sB extends Zr{constructor(){super(...arguments),m1.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),s=this._def.values;return It(r,{expected:vs.joinValues(s),received:r.parsedType,code:At.invalid_type}),Fr}if(GF(this,m1)||C$(this,m1,new Set(this._def.values)),!GF(this,m1).has(t.data)){const r=this._getOrReturnCtx(t),s=this._def.values;return It(r,{received:r.data,code:At.invalid_enum_value,options:s}),Fr}return Aa(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return sB.create(t,{...this._def,...r})}exclude(t,r=this._def){return sB.create(this.options.filter(s=>!t.includes(s)),{...this._def,...r})}};m1=new WeakMap;qx.create=F$;let qS=class extends Zr{constructor(){super(...arguments),v1.set(this,void 0)}_parse(e){const t=vs.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==Gt.string&&r.parsedType!==Gt.number){const s=vs.objectValues(t);return It(r,{expected:vs.joinValues(s),received:r.parsedType,code:At.invalid_type}),Fr}if(GF(this,v1)||C$(this,v1,new Set(vs.getValidEnumValues(this._def.values))),!GF(this,v1).has(e.data)){const s=vs.objectValues(t);return It(r,{received:r.data,code:At.invalid_enum_value,options:s}),Fr}return Aa(e.data)}get enum(){return this._def.values}};v1=new WeakMap;qS.create=(e,t)=>new qS({values:e,typeName:vr.ZodNativeEnum,...Vr(t)});class Tw extends Zr{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Gt.promise&&r.common.async===!1)return It(r,{code:At.invalid_type,expected:Gt.promise,received:r.parsedType}),Fr;const s=r.parsedType===Gt.promise?r.data:Promise.resolve(r.data);return Aa(s.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Tw.create=(e,t)=>new Tw({type:e,typeName:vr.ZodPromise,...Vr(t)});class ad extends Zr{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===vr.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:s}=this._processInputParams(t),n=this._def.effect||null,i={addIssue:o=>{It(s,o),o.fatal?r.abort():r.dirty()},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),n.type==="preprocess"){const o=n.transform(s.data,i);if(s.common.async)return Promise.resolve(o).then(async a=>{if(r.value==="aborted")return Fr;const l=await this._def.schema._parseAsync({data:a,path:s.path,parent:s});return l.status==="aborted"?Fr:l.status==="dirty"||r.value==="dirty"?HF(l.value):l});{if(r.value==="aborted")return Fr;const a=this._def.schema._parseSync({data:o,path:s.path,parent:s});return a.status==="aborted"?Fr:a.status==="dirty"||r.value==="dirty"?HF(a.value):a}}if(n.type==="refinement"){const o=a=>{const l=n.refinement(a,i);if(s.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(s.common.async===!1){const a=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?Fr:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(a=>a.status==="aborted"?Fr:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(n.type==="transform")if(s.common.async===!1){const o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!VS(o))return o;const a=n.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>VS(o)?Promise.resolve(n.transform(o.value,i)).then(a=>({status:r.value,value:a})):o);vs.assertNever(n)}}ad.create=(e,t,r)=>new ad({schema:e,typeName:vr.ZodEffects,effect:t,...Vr(r)});ad.createWithPreprocess=(e,t,r)=>new ad({schema:t,effect:{type:"preprocess",transform:e},typeName:vr.ZodEffects,...Vr(r)});let Mh=class extends Zr{_parse(e){return this._getType(e)===Gt.undefined?Aa(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Mh.create=(e,t)=>new Mh({innerType:e,typeName:vr.ZodOptional,...Vr(t)});class bA extends Zr{_parse(t){return this._getType(t)===Gt.null?Aa(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}bA.create=(e,t)=>new bA({innerType:e,typeName:vr.ZodNullable,...Vr(t)});let ex=class extends Zr{_parse(e){const{ctx:t}=this._processInputParams(e);let r=t.data;return t.parsedType===Gt.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};ex.create=(e,t)=>new ex({innerType:e,typeName:vr.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Vr(t)});let tx=class extends Zr{_parse(e){const{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return zS(s)?s.then(n=>({status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new Wl(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Wl(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};tx.create=(e,t)=>new tx({innerType:e,typeName:vr.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Vr(t)});let zF=class extends Zr{_parse(e){if(this._getType(e)!==Gt.nan){const t=this._getOrReturnCtx(e);return It(t,{code:At.invalid_type,expected:Gt.nan,received:t.parsedType}),Fr}return{status:"valid",value:e.data}}};zF.create=e=>new zF({typeName:vr.ZodNaN,...Vr(e)});const tke=Symbol("zod_brand");let v5=class extends Zr{_parse(e){const{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}};class e3 extends Zr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{const n=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?Fr:n.status==="dirty"?(r.dirty(),HF(n.value)):this._def.out._parseAsync({data:n.value,path:s.path,parent:s})})();{const n=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?Fr:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:s.path,parent:s})}}static create(t,r){return new e3({in:t,out:r,typeName:vr.ZodPipeline})}}let rx=class extends Zr{_parse(e){const t=this._def.innerType._parse(e),r=s=>(VS(s)&&(s.value=Object.freeze(s.value)),s);return zS(t)?t.then(s=>r(s)):r(t)}unwrap(){return this._def.innerType}};rx.create=(e,t)=>new rx({innerType:e,typeName:vr.ZodReadonly,...Vr(t)});function R$(e,t={},r){return e?Rw.create().superRefine((s,n)=>{var i,o;if(!e(s)){const a=typeof t=="function"?t(s):typeof t=="string"?{message:t}:t,l=(o=(i=a.fatal)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:!0,c=typeof a=="string"?{message:a}:a;n.addIssue({code:"custom",...c,fatal:l})}}):Rw.create()}const rke={object:Jc.lazycreate};var vr;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(vr||(vr={}));const ske=(e,t={message:`Input not instance of ${e.name}`})=>R$(r=>r instanceof e,t),T$=Qu.create,D$=QS.create,nke=zF.create,ike=wA.create,M$=US.create,oke=WS.create,ake=OF.create,lke=jS.create,cke=KS.create,uke=Rw.create,dke=uv.create,hke=mg.create,pke=NF.create,gke=Ju.create,fke=Jc.create,Ake=Jc.strictCreate,mke=YS.create,vke=x$.create,Cke=ZS.create,wke=yA.create,yke=XS.create,bke=_F.create,Ske=VF.create,xke=sw.create,Eke=$S.create,Pke=JS.create,Fke=qx.create,Rke=qS.create,Tke=Tw.create,JG=ad.create,Dke=Mh.create,Mke=bA.create,Ike=ad.createWithPreprocess,kke=e3.create,Bke=()=>T$().optional(),Lke=()=>D$().optional(),Hke=()=>M$().optional(),Gke={string:e=>Qu.create({...e,coerce:!0}),number:e=>QS.create({...e,coerce:!0}),boolean:e=>US.create({...e,coerce:!0}),bigint:e=>wA.create({...e,coerce:!0}),date:e=>WS.create({...e,coerce:!0})},Oke=Fr;var cs=Object.freeze({__proto__:null,defaultErrorMap:Fw,setErrorMap:OIe,getErrorMap:BF,makeIssue:LF,EMPTY_PATH:NIe,addIssueToContext:It,ParseStatus:Oo,INVALID:Fr,DIRTY:HF,OK:Aa,isAborted:Jk,isDirty:qk,isValid:VS,isAsync:zS,get util(){return vs},get objectUtil(){return $k},ZodParsedType:Gt,getParsedType:Zf,ZodType:Zr,datetimeRegex:b$,ZodString:Qu,ZodNumber:QS,ZodBigInt:wA,ZodBoolean:US,ZodDate:WS,ZodSymbol:OF,ZodUndefined:jS,ZodNull:KS,ZodAny:Rw,ZodUnknown:uv,ZodNever:mg,ZodVoid:NF,ZodArray:Ju,ZodObject:Jc,ZodUnion:YS,ZodDiscriminatedUnion:x$,ZodIntersection:ZS,ZodTuple:yA,ZodRecord:XS,ZodMap:_F,ZodSet:VF,ZodFunction:sw,ZodLazy:$S,ZodLiteral:JS,ZodEnum:qx,ZodNativeEnum:qS,ZodPromise:Tw,ZodEffects:ad,ZodTransformer:ad,ZodOptional:Mh,ZodNullable:bA,ZodDefault:ex,ZodCatch:tx,ZodNaN:zF,BRAND:tke,ZodBranded:v5,ZodPipeline:e3,ZodReadonly:rx,custom:R$,Schema:Zr,ZodSchema:Zr,late:rke,get ZodFirstPartyTypeKind(){return vr},coerce:Gke,any:uke,array:gke,bigint:ike,boolean:M$,date:oke,discriminatedUnion:vke,effect:JG,enum:Fke,function:xke,instanceof:ske,intersection:Cke,lazy:Eke,literal:Pke,map:bke,nan:nke,nativeEnum:Rke,never:hke,null:cke,nullable:Mke,number:D$,object:fke,oboolean:Hke,onumber:Lke,optional:Dke,ostring:Bke,pipeline:kke,preprocess:Ike,promise:Tke,record:yke,set:Ske,strictObject:Ake,string:T$,symbol:ake,transformer:JG,tuple:wke,undefined:lke,union:mke,unknown:dke,void:pke,NEVER:Oke,ZodIssueCode:At,quotelessJson:GIe,ZodError:Wl});function Nke(e){throw new Error("Unexpected object: "+e)}const I$="upload://upload/",k$="index://index/";function _ke(e){return e.startsWith(I$)}function Vke(e){return e.startsWith(k$)}function B$(e){if(Vke(e)){const t=e.slice(k$.length);return JSON.parse(decodeURIComponent(t)).path}else if(_ke(e)){const t=e.slice(I$.length);return JSON.parse(decodeURIComponent(t)).localPath}Nke(e)}function zke(e){return e.replace(/^.*[\\/]/,"")}function Qke(e){return zke(B$(e))}cs.object({__isRef:cs.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),blockId:cs.string().describe("Upstream block id"),name:cs.string().describe("Name of the output provided to the upstream block's output context"),requireEnrichments:cs.literal(!0).optional().describe("True if current block that stores this reference in its args, may need enrichments for the references value originating from the blocks in between current and referenced block")}).describe("Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees.").readonly();const Uke=24;cs.string().length(Uke).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");var qG={exports:{}};(function(e,t){t=e.exports=r,t.getSerialize=s;function r(n,i,o,a){return JSON.stringify(n,s(i,a),o)}function s(n,i){var o=[],a=[];return i==null&&(i=function(l,c){return o[0]===c?"[Circular ~]":"[Circular ~."+a.slice(0,o.indexOf(c)).join(".")+"]"}),function(l,c){if(o.length>0){var u=o.indexOf(this);~u?o.splice(u+1):o.push(this),~u?a.splice(u,1/0,l):a.push(l),~o.indexOf(c)&&(c=i.call(this,l,c))}else o.push(c);return n==null?c:n.call(this,l,c)}}})(qG,qG.exports);const Wke=cs.object({type:cs.literal("PlError"),name:cs.string(),message:cs.string(),fullMessage:cs.string().optional(),stack:cs.string().optional()}),jke=Wke.extend({cause:cs.lazy(()=>QF).optional(),errors:cs.lazy(()=>QF.array()).optional()}),Kke=cs.object({type:cs.literal("StandardError"),name:cs.string(),message:cs.string(),stack:cs.string().optional()}),Yke=Kke.extend({cause:cs.lazy(()=>QF).optional(),errors:cs.lazy(()=>QF.array()).optional()}),QF=cs.union([Yke,jke]),Zke=cs.object({name:cs.string(),message:cs.string(),fullMessage:cs.string().optional(),stack:cs.string().optional()}),eO=Zke.extend({cause:cs.lazy(()=>eO).optional(),errors:cs.lazy(()=>eO.array()).optional()});function Xke(e){if(e&&typeof globalThis.getPlatforma=="function")return globalThis.getPlatforma(e);if(typeof globalThis.platforma<"u")return globalThis.platforma;throw new Error("Can't get platforma instance.")}const $ke=cs.object({type:cs.string(),importance:cs.number().optional(),id:cs.string().optional(),label:cs.string()});cs.array($ke);const Jke="1.31.6";function tA(){return Xke({sdkVersion:Jke})}const qke="[==PROGRESS==]";function eBe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function tBe(e){const t=br(),r=oi({errorCount:0});async function s(){var i;let o=t.value;if(o===void 0)return;const a=e.mockPlatforma??tA();if(!a){console.warn("Platforma API is not available");return}for(;;){const l=await a.logDriver.readText(o.logHandle,100,o.lastOffset);if(o.error=void 0,r.errorCount=0,l.shouldUpdateHandle||o.logHandle!==((i=t.value)==null?void 0:i.logHandle))return;const c=e.progressPrefix??qke,u=new TextDecoder().decode(l.data).replace(new RegExp(`${eBe(c)}`,"g"),"");if(o=Object.assign(o,{lines:o.lines+u,lastOffset:l.newOffset,finished:!l.live}),l.newOffset>=l.size)break}}const n=HIe(()=>s().catch(i=>{t.value&&(r.errorCount++,r.errorCount>(e.maxRetries??3)?t.value.error=i:console.warn("skip error:",i,"retry..."))}),1500,{immediate:!1});return LIe(()=>{var i;return(i=t==null?void 0:t.value)==null?void 0:i.finished},()=>n.pause()),tn(()=>e.logHandle,i=>{var o;i===void 0?(t.value=void 0,n.pause()):i!==((o=t.value)==null?void 0:o.logHandle)&&(t.value={logHandle:i,lastOffset:0,lines:"",finished:!1,error:void 0},r.errorCount=0,n.resume())},{immediate:!0}),t}const rBe={key:0},sBe={class:"pl-log-view__copy"},nBe={key:1,class:"pl-log-view__error"},iBe={name:"PlLogView"},oBe=Tr({...iBe,props:{value:{},valueToCopy:{},logHandle:{},progressPrefix:{},error:{},output:{},maxRetries:{},mockPlatforma:{},label:{},disableAutoScroll:{type:Boolean}},setup(e){const t=v=>{if(v&&v.ok===!1)return v.errors.join(`
702
+ `,mMe=["innerHTML"],vMe={class:"dropdown-list-item__title-container"},CMe={class:"dropdown-list-item__title text-s"},wMe={key:0,class:"dropdown-list-item__description text-description"},yMe={key:1,class:"dropdown-list-item__icon flex-self-start"},i$=Tr({__name:"DropdownListItem",props:{option:{},isSelected:{type:Boolean,default:!1},size:{default:"small"},isHovered:{type:Boolean,default:!1},useCheckbox:{type:Boolean,default:!1}},setup(e){const t=e,r=Je(()=>{const i=[];return t.size==="small"&&i.push("dropdown-list-item__small"),t.isSelected&&i.push("dropdown-list-item__selected"),t.isHovered&&i.push("hovered-item"),i.join(" ")}),s=Je(()=>{const i=["dropdown-list-item__checkbox","flex-self-start"];return t.isSelected&&i.push("checked"),i.join(" ")}),n=Je(()=>t.isSelected?AMe:fMe);return(i,o)=>(ye(),je("div",{class:St([r.value,"dropdown-list-item"])},[t.useCheckbox?(ye(),je("div",{key:0,class:St(s.value),innerHTML:n.value},null,10,mMe)):yt("",!0),o[1]||(o[1]=Ne()),We("div",vMe,[We("div",CMe,Zt(i.option.label),1),o[0]||(o[0]=Ne()),i.option.description?(ye(),je("div",wMe,Zt(i.option.description),1)):yt("",!0)]),o[2]||(o[2]=Ne()),!t.useCheckbox&&t.isSelected?(ye(),je("div",yMe)):yt("",!0)],2))}});function bMe(e){return e()}function SMe(e){let t=!1;return function(...r){t||(requestAnimationFrame(()=>{e(...r),t=!1}),t=!0)}}function xMe(e){return new Promise(t=>setTimeout(t,e))}function EMe(e,t){const r=setTimeout(e,t);return()=>{clearTimeout(r)}}function PMe(e){return function(t){return 1-e(1-t)}}function FMe(e){const{duration:t,draw:r,timing:s}=e,n=performance.now();let i=!1;return requestAnimationFrame(function o(a){let l=(a-n)/t;(l>1||i)&&(l=1);const c=s(l);r(c),l<1&&requestAnimationFrame(o)}),function(){i=!0}}function RMe(e,t,r=!0){let s=0,n;return function(...i){n=()=>{e.apply(this,i),s=new Date().getTime()+t,n=null,r&&setTimeout(()=>{n==null||n()},t)},new Date().getTime()>s&&n()}}function o$(e){if(!Array.isArray(e))throw Error("Invalid component options: "+String(e));return e.map(t=>({label:"label"in t?t.label:t.text,value:t.value,description:t.description}))}function a$(e,t){const r=SMe(()=>{if(e.value){const{scrollTop:s,scrollLeft:n,scrollHeight:i,scrollWidth:o,clientHeight:a,clientWidth:l}=document.documentElement,c=e.value.getBoundingClientRect();t({scrollTop:s,scrollLeft:n,scrollHeight:i,scrollWidth:o,clientHeight:a,clientWidth:l,offsetY:s+c.y,offsetX:n+c.x,top:c.top,right:c.right,bottom:c.bottom,left:c.left,width:c.width,height:c.height,x:c.x,y:c.y})}});Yh(r),cv(window,"scroll",r,{capture:!0,passive:!0}),cv(window,"resize",r,{passive:!0}),cv(window,"adjust",r,!0)}const TMe=Tr({__name:"PlMaskIcon16",props:{name:{},size:{}},setup(e){const t=e,r=Je(()=>t.size==="large"?"--mask-size: 24px":""),s=Je(()=>`mask-16 mask-${t.name}`);return(n,i)=>(ye(),je("i",{style:oo(r.value),class:St([s.value,n.$style.icon])},null,6))}}),DMe="_icon_1ugxm_2",MMe={icon:DMe},IMe={$style:MMe},Zk=$h(TMe,[["__cssModules",IMe]]);function l$(e){function t(r){const s=r.currentTarget,n=document.createElement("span"),i=Math.max(s.clientWidth,s.clientHeight),o=i/2;n.style.width=n.style.height=`${i}px`,n.style.left=`${r.clientX-s.offsetLeft-o}px`,n.style.top=`${r.clientY-s.offsetTop-o}px`,n.classList.add("ripple");const a=s.getElementsByClassName("ripple")[0];a&&a.remove(),s.appendChild(n)}Yh(()=>{var r;(r=e.value)==null||r.addEventListener("click",t)})}const kMe={key:0},BMe={inheritAttrs:!1},c$=Tr({...BMe,__name:"BtnBase",props:{loading:{type:Boolean},small:{type:Boolean},large:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(e){const t=e,r=br(),s=Je(()=>t.small||t.size==="small"),n=Je(()=>t.large||t.size==="large");return l$(r),(i,o)=>(ye(),je("button",dl({ref_key:"btn",ref:r,tabindex:"0",class:{loading:i.loading,small:s.value,large:n.value,round:i.round,reverse:i.reverse,justifyCenter:i.justifyCenter,[i.$attrs.class+""]:!0}},{...i.$attrs,disabled:!!i.$attrs.disabled||i.loading}),[i.round?yt("",!0):(ye(),je("span",kMe,[jr(i.$slots,"default")])),o[0]||(o[0]=Ne()),i.loading?(ye(),jt(Pe(Zk),{key:1,name:"loading",size:i.size},null,8,["size"])):i.icon?(ye(),jt(Pe(Zk),{key:2,name:i.icon,size:i.size},null,8,["name","size"])):yt("",!0)],16))}}),LMe={name:"PlBtnPrimary"},kF=Tr({...LMe,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(e){const t=e;return(r,s)=>(ye(),jt(c$,dl({class:"pl-btn-primary"},t),{default:er(()=>[jr(r.$slots,"default")]),_:3},16))}}),HMe={name:"PlBtnSecondary"},u$=Tr({...HMe,props:{loading:{type:Boolean},size:{},round:{type:Boolean},icon:{},reverse:{type:Boolean},justifyCenter:{type:Boolean}},setup(e){const t=e;return(r,s)=>(ye(),jt(c$,dl(t,{class:"pl-btn-secondary"}),{default:er(()=>[jr(r.$slots,"default")]),_:3},16))}}),GMe=Tr({__name:"PlMaskIcon24",props:{name:{},size:{}},setup(e){const t=e,r=Je(()=>`mask-24 mask-${t.name}`);return(s,n)=>(ye(),je("i",{class:St([r.value,s.$style.icon])},null,2))}}),OMe="_icon_1ugxm_2",NMe={icon:OMe},_Me={$style:NMe},Vc=$h(GMe,[["__cssModules",_Me]]),VMe={key:0},zMe={name:"PlBtnGhost"},g5=Tr({...zMe,props:{loading:{type:Boolean},size:{default:void 0},round:{type:Boolean},icon:{default:void 0},reverse:{type:Boolean},justifyCenter:{type:Boolean,default:!1}},setup(e){const t=e,r=Je(()=>t.size==="small"),s=Je(()=>t.size==="large"),n=br(),i=dd();return l$(n),(o,a)=>(ye(),je("button",dl({ref_key:"btnRef",ref:n,tabindex:"0",class:["pl-btn-ghost",{loading:o.loading,small:r.value,large:s.value,round:o.round,reverse:o.reverse,justifyCenter:o.justifyCenter,[o.$attrs.class+""]:!0}]},{...o.$attrs,disabled:!!o.$attrs.disabled||o.loading}),[Pe(i).default&&!o.round?(ye(),je("span",VMe,[jr(o.$slots,"default")])):yt("",!0),a[0]||(a[0]=Ne()),o.loading?(ye(),jt(Pe(Vc),{key:1,name:"loading",size:o.size},null,8,["size"])):o.icon?(ye(),jt(Pe(Vc),{key:2,name:o.icon,size:o.size},null,8,["name","size"])):yt("",!0),a[1]||(a[1]=Ne()),jr(o.$slots,"append")],16))}});function QMe(e,t){const r=br();return a$(e,s=>{r.value=s}),Je(()=>{const s=Pe(r),n=Pe(t),i=n.position??"top",o=n.gap??8;if(!s)return"";const a=s.offsetY+Math.floor(s.height/2),l=s.offsetX+Math.floor(s.width/2);return i==="top-left"?`left: ${s.offsetX}px; top: ${s.offsetY-o}px;`:i==="top"?`left: ${l}px; top: ${s.offsetY-o}px;`:i==="right"?`left: ${s.offsetX+s.width+o}px; top: ${a}px;`:i==="left"?`right: ${s.scrollWidth-s.x+o}px; top: ${a}px;`:i==="southwest"?`left: ${s.offsetX+s.width}px; top: ${s.offsetY+s.height+o}px;`:""})}function f5(e,t){return t(e)}function d$(e,t){if(e!=null)return t(e)}function UMe(e){return Array.isArray(e)?e:[e]}function h$(e,t){cv(document,"click",r=>{document.contains(r.target)&&(UMe(e).map(s=>s.value).filter(s=>!!s).some(s=>s==null?void 0:s.contains(r.target))||t())})}const WMe={},jMe={class:"beak",width:"5",height:"9",viewBox:"0 0 3 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function KMe(e,t){return ye(),je("svg",jMe,t[0]||(t[0]=[We("path",{d:"M4.00222 8.00933L0 4.00711L4.00222 0.00488281L4.00222 8.00933Z",fill:"#24223D"},null,-1)]))}const YMe=$h(WMe,[["render",KMe]]),u4=new Map,ZMe={name:"PlTooltip"},_h=Tr({...ZMe,props:{openDelay:{default:100},closeDelay:{default:1e3},position:{default:"top"},hide:{type:Boolean},gap:{default:8},element:{default:"div"},maxWidth:{default:"300px"}},emits:["tooltip:close"],setup(e,{emit:t}){const r=t,s=Symbol(),n=e,i=oi({open:!1,over:!1,tooltipOpen:!1,key:Symbol()});u4.set(s,()=>c()),tn(()=>i.open,b=>{requestAnimationFrame(()=>{i.tooltipOpen=b})});let o=()=>{};const a=RMe(()=>window.dispatchEvent(new CustomEvent("adjust")),1e3),l=()=>{i.open=!0;for(const[b,S]of u4.entries())b!==s&&S()},c=()=>{i.open=!1,r("tooltip:close")},u=async()=>{n.hide||(a(),i.over=!0,o(),await xMe(100),i.over&&l())},d=()=>{i.over=!1,o=EMe(()=>{i.over||c()},n.closeDelay)};tn(()=>n.hide,b=>{b&&c()});const g=br(),A=br(),w=QMe(g,I7(n));h$([g,A],()=>c());const v=Je(()=>({"--pl-tooltip-max-width":n.maxWidth}));return Bx(()=>{u4.delete(s)}),(b,S)=>(ye(),jt(QU(b.element),dl(b.$attrs,{ref_key:"rootRef",ref:g,onClick:u,onMouseover:u,onMouseleave:d}),{default:er(()=>[jr(b.$slots,"default"),S[1]||(S[1]=Ne()),b.$slots.tooltip&&i.open?(ye(),jt(kx,{key:0,to:"body"},[zt(V7,{name:"tooltip-transition"},{default:er(()=>[i.tooltipOpen?(ye(),je("div",{key:0,class:"pl-tooltip__container",style:oo(Pe(w))},[We("div",{ref_key:"tooltip",ref:A,class:St(["pl-tooltip",b.position]),style:oo(v.value),onMouseover:u,onMouseleave:d},[We("div",null,[jr(b.$slots,"tooltip")]),S[0]||(S[0]=Ne()),zt(YMe)],38)],4)):yt("",!0)]),_:3})])):yt("",!0)]),_:3},16))}}),XMe={},$Me={class:"inner-border"};function JMe(e,t,r,s,n,i){return ye(),je("div",$Me,[jr(e.$slots,"default")])}const qMe=$h(XMe,[["render",JMe]]),e4e={key:0},t4e=["tabindex","onKeydown","onClick"],r4e={key:1,class:"pl-btn-group__helper"},s4e={key:2,class:"pl-btn-group__error"},n4e={name:"PlBtnGroup"},i4e=Tr({...n4e,props:{modelValue:{},label:{},options:{},disabled:{type:Boolean},compact:{type:Boolean},helper:{},error:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=dd(),s=t,n=a=>s("update:modelValue",a),i=e,o=Je(()=>i.options.map(a=>({label:"label"in a?a.label:a.text,value:a.value})));return(a,l)=>(ye(),je("div",{class:St(["pl-btn-group",{disabled:a.disabled,compact:a.compact}])},[a.label?(ye(),je("label",e4e,[We("span",null,Zt(a.label),1),l[0]||(l[0]=Ne()),Pe(r).tooltip?(ye(),jt(Pe(_h),{key:0,class:"info",position:"top"},{tooltip:er(()=>[jr(a.$slots,"tooltip")]),_:3})):yt("",!0)])):yt("",!0),l[1]||(l[1]=Ne()),zt(qMe,{class:"pl-btn-group__container"},{default:er(()=>[(ye(!0),je(_s,null,Fh(o.value,(c,u)=>(ye(),je("div",{key:u,class:St(["pl-btn-group__option text-s",{active:a.modelValue===c.value}]),tabindex:a.modelValue===c.value||a.disabled?void 0:0,onKeydown:dw(d=>n(c.value),["enter"]),onClick:d=>n(c.value)},Zt(c.label),43,t4e))),128))]),_:1}),l[2]||(l[2]=Ne()),a.helper?(ye(),je("div",r4e,Zt(a.helper),1)):a.error?(ye(),je("div",s4e,Zt(a.error),1)):yt("",!0)],2))}}),o4e={inheritAttrs:!1},a4e={class:"double-contour"};function l4e(e,t,r,s,n,i){return ye(),je("div",a4e,[We("div",hie(gW(e.$attrs)),[jr(e.$slots,"default")],16)])}const $x=$h(o4e,[["render",l4e]]);function c4e(e){Yh(e),L7(e)}const A5=new WeakMap,Xk=new ResizeObserver(e=>{for(const t of e)d$(A5.get(t.target),r=>r(t))});function u4e(e,t){A5.set(e,t),Xk.unobserve(e),Xk.observe(e)}function d4e(e){Xk.unobserve(e),A5.delete(e)}const h4e=8,jG=4;function Jx(e,t="label"){const r=new Set;c4e(()=>{d$(e==null?void 0:e.value,s=>{const n=s.querySelector(t);n&&(r.add(n),u4e(n,()=>{const i=bMe(()=>n.getBoundingClientRect().width+f5(h4e,o=>Number.isNaN(o)?jG:o+jG));s.style.getPropertyValue("--label-offset-right-x")!==`${i}px`&&s.style.setProperty("--label-offset-right-x",`${i}px`)}))})}),H7(()=>{Array.from(r.values()).map(s=>d4e(s))})}function p4e(e,t){const r=[];return t&&t.length>0&&t.forEach(s=>{const n=s(e);typeof n=="string"&&r.push(n)}),{isValid:r.length===0,errors:r}}function g4e(e,t){return Je(()=>p4e(e.value,t))}const f4e=Tr({__name:"PlIcon16",props:{name:{},size:{}},setup(e){const t=e,r=Je(()=>t.size==="large"?"--icon-size: 24px":""),s=Je(()=>`icon-16 icon-${t.name}`);return(n,i)=>(ye(),je("i",{style:oo(r.value),class:St([s.value,n.$style.icon])},null,6))}}),A4e="_icon_1ugxm_2",m4e={icon:A4e},v4e={$style:m4e},_S=$h(f4e,[["__cssModules",v4e]]),C4e={class:"pl-text-field__envelope"},w4e={key:0,ref:"label"},y4e={key:0,class:"required-icon"},b4e={key:1,class:"pl-text-field__prefix"},S4e=["disabled","placeholder","type"],x4e={key:0,class:"pl-text-field__error"},E4e={key:1,class:"pl-text-field__helper"},P4e={name:"PlTextField"},d4=Tr({...P4e,props:KU({label:{},clearable:{type:[Boolean,Function]},parse:{type:Function},required:{type:Boolean},error:{},helper:{},placeholder:{},disabled:{type:Boolean},dashed:{type:Boolean},prefix:{},rules:{},type:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=dd(),r=lW(e,"modelValue"),s=e,n=br(void 0),i=br(),o=br(!1),a=oi({cached:void 0}),l=Je({get(){return a.cached?a.cached.value:r.value===void 0||r.value===null?"":String(r.value)},set(D){if(a.cached=void 0,s.parse)try{r.value=s.parse(D)}catch(B){a.cached={error:B instanceof Error?B.message:String(B),value:D}}else r.value=D}}),c=Je(()=>s.type&&s.type==="password"?o.value?"text":s.type:"text"),u=Je(()=>o.value?"view-show":"view-hide"),d=()=>{s.clearable&&(a.cached=void 0,r.value=s.clearable===!0?"":s.clearable())},g=g4e(l,s.rules||[]),A=Je(()=>s.clearable?s.clearable===!0?r.value==="":r.value===s.clearable():r.value===""),w=Je(()=>!A.value),v=Je(()=>{const D=[];return s.error&&D.push(s.error),a.cached&&D.push(a.cached.error),g.value.isValid||D.push(...g.value.errors),D}),b=Je(()=>v.value.length>0),S=Je(()=>s.clearable&&w.value&&s.type!=="password"&&!s.disabled),P=()=>o.value=!o.value,F=()=>{a.cached=void 0},T=()=>{var D;return(D=i.value)==null?void 0:D.focus()};return Jx(n),(D,B)=>(ye(),je("div",C4e,[We("div",{ref_key:"rootRef",ref:n,class:St(["pl-text-field",{error:b.value,disabled:D.disabled,dashed:D.dashed,nonEmpty:w.value}])},[D.label?(ye(),je("label",w4e,[D.required?(ye(),je("i",y4e)):yt("",!0),B[1]||(B[1]=Ne()),We("span",null,Zt(D.label),1),B[2]||(B[2]=Ne()),Pe(t).tooltip?(ye(),jt(Pe(_h),{key:1,class:"info",position:"top"},{tooltip:er(()=>[jr(D.$slots,"tooltip")]),_:3})):yt("",!0)],512)):yt("",!0),B[5]||(B[5]=Ne()),D.prefix?(ye(),je("div",b4e,Zt(D.prefix),1)):yt("",!0),B[6]||(B[6]=Ne()),Av(We("input",{ref_key:"inputRef",ref:i,"onUpdate:modelValue":B[0]||(B[0]=k=>l.value=k),disabled:D.disabled,placeholder:D.placeholder||"...",type:c.value,spellcheck:"false",onFocusout:F},null,40,S4e),[[Pae,l.value]]),B[7]||(B[7]=Ne()),We("div",{class:"pl-text-field__append",onClick:T},[S.value?(ye(),jt(Pe(_S),{key:0,class:"pl-text-field__clearable",name:"delete-clear",onClick:Nn(d,["stop"])})):yt("",!0),B[3]||(B[3]=Ne()),D.type==="password"?(ye(),jt(Pe(Vc),{key:1,name:u.value,style:{cursor:"pointer"},onClick:Nn(P,["stop"])},null,8,["name"])):yt("",!0),B[4]||(B[4]=Ne()),jr(D.$slots,"append")]),B[8]||(B[8]=Ne()),zt($x,{class:"pl-text-field__contour"})],2),B[9]||(B[9]=Ne()),b.value?(ye(),je("div",x4e,Zt(v.value.join(" ")),1)):D.helper?(ye(),je("div",E4e,Zt(D.helper),1)):yt("",!0)]))}}),F4e=Tr({__name:"PlIcon24",props:{name:{},size:{}},setup(e){const t=e,r=Je(()=>`icon-24 icon-${t.name}`);return(s,n)=>(ye(),je("i",{class:St([r.value,s.$style.icon])},null,2))}}),R4e="_icon_1ugxm_2",T4e={icon:R4e},D4e={$style:T4e},m5=$h(F4e,[["__cssModules",D4e]]),M4e=["disabled","placeholder"],I4e=Tr({__name:"PlSearchField",props:{modelValue:{},clearable:{type:Boolean},placeholder:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const r=t,s=e,n=br(void 0),i=br(),o=Je({get(){return s.modelValue??""},set(c){r("update:modelValue",c)}}),a=Je(()=>!!s.modelValue),l=()=>r("update:modelValue","");return(c,u)=>(ye(),je("div",{ref_key:"root",ref:n,class:St(["pl-search-field",[c.$style.component]])},[zt(Pe(m5),{name:"search"}),u[1]||(u[1]=Ne()),Av(We("input",{ref_key:"input",ref:i,"onUpdate:modelValue":u[0]||(u[0]=d=>o.value=d),disabled:c.disabled,type:"text",placeholder:c.placeholder||"Find...",spellcheck:"false"},null,8,M4e),[[pS,o.value]]),u[2]||(u[2]=Ne()),c.clearable&&a.value?(ye(),jt(Pe(_S),{key:0,class:St(c.$style.clear),name:"delete-clear",onClick:Nn(l,["stop"])},null,8,["class"])):yt("",!0)],2))}}),k4e="_component_pz0lo_1",B4e="_clear_pz0lo_35",L4e={component:k4e,clear:B4e},H4e={$style:L4e},G4e=$h(I4e,[["__cssModules",H4e]]);function KG(e){return e!==null&&typeof e=="object"}function ng(e,t){return KG(e)&&KG(t)?Object.keys(e).length!==Object.keys(t).length?!1:Object.keys(e).every(r=>ng(e[r],t[r])):e===t}function YG(e,t){return e.some(r=>ng(r,t))}const O4e=Tr({__name:"LongText",setup(e){cae(u=>({"5deba9de":o.value}));const t=br(!1),r=br(),s=br(!1),n=Je(()=>s.value&&t.value?"ui-lt-animate":""),i=MDe(u=>s.value=u,500),o=Je(()=>{var u;return r.value?`${((u=r.value)==null?void 0:u.innerHTML.length)*.4}s`:"5s"});function a(){const u=NS(r.value,"span cannot be empty");t.value=u.clientWidth<u.scrollWidth}function l(){a(),i(!0)}function c(){i(!1)}return(u,d)=>(ye(),je("div",dl(u.$attrs,{class:"ui-lt-container"}),[We("span",{onMouseover:l,onMouseleave:c},[We("span",{ref_key:"span",ref:r,class:St(n.value)},[jr(u.$slots,"default")],2)],32)],16))}});function N4e(e,t){const r=e.scrollTop,s=e.getBoundingClientRect().height,n=t.offsetTop,i=t.getBoundingClientRect().height;return n+i<s+r&&n>r}function _4e(e,t){const r=e.scrollTop,s=e.getBoundingClientRect().height,n=t.offsetTop,i=t.getBoundingClientRect().height;return n+i<s+r?"ceil":n>r?"floor":"visible"}function V4e(e,t,r={}){const s=e.scrollTop,n=e.getBoundingClientRect().height,i=t.getBoundingClientRect().height,o=t.offsetTop,a=_4e(e,t);if(a==="visible")return;const l=c=>{const u=a==="floor"?o-(n-i):o;e.scrollTop=s+c*(u-s)};N4e(e,t)||FMe({duration:r.duration||100,timing:PMe(c=>c),draw:l})}const p$=Tr({__name:"DropdownOverlay",props:{root:{},gap:{}},setup(e,{expose:t}){const r=e,s=oi({optionsHeight:0}),n=oi({top:"0px",left:"0px",width:"0px"}),i=I7(r,"root"),o=br();return t({scrollIntoActive:()=>{const a=o.value;a&&p5(a.querySelector(".hovered-item"),l=>{V4e(a,l)})},listRef:o}),tn(o,a=>{a&&requestAnimationFrame(()=>{const l=a.getBoundingClientRect();s.optionsHeight=l.height,window.dispatchEvent(new CustomEvent("adjust"))})}),a$(i,a=>{const l=document.body.getBoundingClientRect(),c=a.top-l.top,u=a.left-l.left,d=r.gap??0,g=c+a.height+d;g+s.optionsHeight>a.clientHeight?n.top=c-s.optionsHeight-d+"px":n.top=g+"px",n.left=u+"px",n.width=a.width+"px"}),(a,l)=>(ye(),jt(kx,{to:"body"},[We("div",dl({ref_key:"listRef",ref:o},a.$attrs,{style:n,tabindex:"-1"}),[jr(a.$slots,"default",{ref:"list"})],16)]))}}),z4e=["tabindex"],Q4e={class:"pl-dropdown__container"},U4e={class:"pl-dropdown__field"},W4e=["disabled","placeholder"],j4e={key:0,class:"input-value"},K4e={class:"pl-dropdown__controls"},Y4e={key:2,class:"arrow-icon arrow-icon-default"},Z4e={key:0},X4e={key:0,class:"required-icon"},$4e={key:0,class:"nothing-found"},J4e={key:0,class:"pl-dropdown__error"},q4e={key:1,class:"pl-dropdown__helper"},eIe={key:2,class:"pl-dropdown__helper"},tIe={name:"PlDropdown"},g$=Tr({...tIe,props:{modelValue:{},label:{default:""},options:{default:void 0},helper:{default:void 0},loadingOptionsHelper:{default:void 0},error:{default:void 0},placeholder:{default:"..."},clearable:{type:Boolean,default:!1},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},arrowIcon:{default:void 0},arrowIconLarge:{default:void 0},optionSize:{default:"small"}},emits:["update:modelValue"],setup(e,{emit:t}){const r=t,s=e,n=dd(),i=br(),o=br(),a=B7("overlay"),l=oi({search:"",activeIndex:-1,open:!1,optionsHeight:0}),c=()=>f5(F.value.findIndex(G=>ng(G.value,s.modelValue)),G=>G<0?0:G),u=()=>l.activeIndex=c(),d=Je(()=>s.options===void 0),g=Je(()=>d.value?!0:s.disabled),A=Je(()=>(s.options??[]).findIndex(G=>ng(G.value,s.modelValue))),w=Je(()=>{if(!d.value){if(s.error)return s.error;if(s.modelValue!==void 0&&A.value===-1)return"The selected value is not one of the options"}}),v=Je(()=>o$(s.options??[]).map((G,N)=>({...G,index:N,isSelected:N===A.value,isActive:N===l.activeIndex}))),b=Je(()=>{const G=Pe(v).find(N=>ng(N.value,s.modelValue));return(G==null?void 0:G.label)||s.modelValue}),S=Je(()=>!l.open&&s.modelValue?"":s.modelValue?String(b.value):s.placeholder),P=Je(()=>s.modelValue!==void 0&&s.modelValue!==null),F=Je(()=>{const G=v.value;return l.search?G.filter(N=>{const W=l.search.toLowerCase();return N.label.toLowerCase().includes(W)||N.description&&N.description.toLowerCase().includes(W)?!0:typeof N.value=="string"?N.value.toLowerCase().includes(W):N.value===l.search}):G}),T=Je(()=>g.value?void 0:"0"),D=G=>{var N;r("update:modelValue",G),l.search="",l.open=!1,(N=i==null?void 0:i.value)==null||N.focus()},B=()=>r("update:modelValue",void 0),k=()=>{var G;return(G=o.value)==null?void 0:G.focus()},z=()=>{l.open=!l.open,l.open||(l.search="")},O=()=>l.open=!0,j=G=>{var N,W,V;const q=G.relatedTarget;!((N=i.value)!=null&&N.contains(q))&&!((V=(W=a.value)==null?void 0:W.listRef)!=null&&V.contains(q))&&(l.search="",l.open=!1)},_=G=>{var N,W;if(["ArrowDown","ArrowUp","Enter","Escape"].includes(G.code))G.preventDefault();else return;const{open:V,activeIndex:q}=l;if(!V){G.code==="Enter"&&(l.open=!0);return}G.code==="Escape"&&(l.open=!1,(N=i.value)==null||N.focus());const pe=Pe(F),{length:X}=pe;if(!X)return;G.code==="Enter"&&D((W=pe.find(se=>se.index===q))==null?void 0:W.value);const re=pe.findIndex(se=>se.index===q)??-1,ae=G.code==="ArrowDown"?1:G.code==="ArrowUp"?-1:0,$=Math.abs(re+ae+X)%X;l.activeIndex=F.value[$].index??-1};return Jx(i),tn(()=>s.modelValue,u,{immediate:!0}),tn(()=>l.open,G=>{var N;return G?(N=o.value)==null?void 0:N.focus():""}),oW(()=>{var G;l.search,l.activeIndex>=0&&l.open&&((G=a.value)==null||G.scrollIntoActive())}),(G,N)=>(ye(),je("div",{class:"pl-dropdown__envelope",onClick:k},[We("div",{ref_key:"rootRef",ref:i,tabindex:T.value,class:St(["pl-dropdown",{open:l.open,error:G.error,disabled:g.value}]),onKeydown:_,onFocusout:j},[We("div",Q4e,[We("div",U4e,[Av(We("input",{ref_key:"input",ref:o,"onUpdate:modelValue":N[0]||(N[0]=W=>l.search=W),type:"text",tabindex:"-1",disabled:g.value,placeholder:S.value,spellcheck:"false",autocomplete:"chrome-off",onFocus:O},null,40,W4e),[[pS,l.search]]),N[4]||(N[4]=Ne()),l.open?yt("",!0):(ye(),je("div",j4e,[zt(O4e,null,{default:er(()=>[Ne(Zt(b.value),1)]),_:1})])),N[5]||(N[5]=Ne()),We("div",K4e,[d.value?(ye(),jt(Pe(Vc),{key:0,name:"loading"})):yt("",!0),N[1]||(N[1]=Ne()),G.clearable&&P.value?(ye(),jt(Pe(_S),{key:1,name:"delete-clear",onClick:Nn(B,["stop"])})):yt("",!0),N[2]||(N[2]=Ne()),jr(G.$slots,"append"),N[3]||(N[3]=Ne()),We("div",{class:"pl-dropdown__arrow-wrapper",onClick:Nn(z,["stop"])},[G.arrowIconLarge?(ye(),je("div",{key:0,class:St(["arrow-icon",[`icon-24 ${G.arrowIconLarge}`]])},null,2)):G.arrowIcon?(ye(),je("div",{key:1,class:St(["arrow-icon",[`icon-16 ${G.arrowIcon}`]])},null,2)):(ye(),je("div",Y4e))])])]),N[9]||(N[9]=Ne()),G.label?(ye(),je("label",Z4e,[G.required?(ye(),je("i",X4e)):yt("",!0),N[6]||(N[6]=Ne()),We("span",null,Zt(G.label),1),N[7]||(N[7]=Ne()),Pe(n).tooltip?(ye(),jt(Pe(_h),{key:1,class:"info",position:"top"},{tooltip:er(()=>[jr(G.$slots,"tooltip")]),_:3})):yt("",!0)])):yt("",!0),N[10]||(N[10]=Ne()),l.open?(ye(),jt(Pe(p$),{key:1,ref:"overlay",root:i.value,class:"pl-dropdown__options",tabindex:"-1",gap:3},{default:er(()=>[(ye(!0),je(_s,null,Fh(F.value,(W,V)=>(ye(),jt(i$,{key:V,option:W,"is-selected":W.isSelected,"is-hovered":W.isActive,size:G.optionSize,onClick:Nn(q=>D(W.value),["stop"])},null,8,["option","is-selected","is-hovered","size","onClick"]))),128)),N[8]||(N[8]=Ne()),F.value.length?yt("",!0):(ye(),je("div",$4e,"Nothing found"))]),_:1},8,["root"])):yt("",!0),N[11]||(N[11]=Ne()),zt($x,{class:"pl-dropdown__contour"})])],42,z4e),N[12]||(N[12]=Ne()),w.value?(ye(),je("div",J4e,Zt(w.value),1)):d.value&&G.loadingOptionsHelper?(ye(),je("div",q4e,Zt(G.loadingOptionsHelper),1)):G.helper?(ye(),je("div",eIe,Zt(G.helper),1)):yt("",!0)]))}}),rIe={class:"pl-chip__text"},ZG=Tr({__name:"PlChip",props:{closeable:{type:Boolean},small:{type:Boolean}},emits:["close"],setup(e){const t=br(),r=br(!1);return Yh(()=>{var s;t.value&&(r.value=((s=t.value)==null?void 0:s.clientWidth)>=256)}),(s,n)=>(ye(),jt(Pe(_h),{position:"top",class:"pl-chip-tooltip",delay:500},UU({default:er(()=>[n[4]||(n[4]=Ne()),We("div",{ref_key:"chip",ref:t,class:St(["pl-chip",{small:s.small}])},[We("div",rIe,[jr(s.$slots,"default")]),n[3]||(n[3]=Ne()),s.closeable?(ye(),je("div",{key:0,tabindex:"0",class:"pl-chip__close",onKeydown:n[0]||(n[0]=dw(i=>s.$emit("close"),["enter"])),onClick:n[1]||(n[1]=Nn(i=>s.$emit("close"),["stop"]))},n[2]||(n[2]=[We("div",{class:"pl-chip__close--icon"},null,-1)]),32)):yt("",!0)],2)]),_:2},[r.value?{name:"tooltip",fn:er(()=>[jr(s.$slots,"default")]),key:"0"}:void 0]),1024))}}),sIe=["tabindex"],nIe={class:"pl-dropdown-multi__container"},iIe={class:"pl-dropdown-multi__field"},oIe=["disabled","placeholder"],aIe={key:0,class:"chips-container"},lIe={class:"pl-dropdown-multi__controls"},cIe={key:0},uIe={key:0,class:"required-icon"},dIe={class:"pl-dropdown-multi__open-chips-container"},hIe={key:0,class:"nothing-found"},pIe={key:0,class:"pl-dropdown-multi__error"},gIe={key:1,class:"pl-dropdown-multi__helper"},fIe={name:"PlDropdownMulti"},AIe=Tr({...fIe,props:{modelValue:{default:()=>[]},label:{default:void 0},options:{default:void 0},helper:{default:void 0},error:{default:void 0},placeholder:{default:"..."},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const r=t,s=O=>r("update:modelValue",O),n=dd(),i=e,o=br(),a=br(),l=B7("overlay"),c=oi({search:"",activeOption:-1,open:!1,optionsHeight:0}),u=Je(()=>Array.isArray(i.modelValue)?i.modelValue:[]),d=Je(()=>c.open&&i.modelValue.length>0?i.placeholder:i.modelValue.length>0?"":i.placeholder),g=Je(()=>o$(i.options??[])),A=Je(()=>u.value.map(O=>g.value.find(j=>ng(j.value,O))).filter(O=>O!==void 0)),w=Je(()=>{const O=Pe(u),j=Pe(g);return(c.search?j.filter(_=>{const G=c.search.toLowerCase();return _.label.toLowerCase().includes(G)?!0:typeof _.value=="string"?_.value.toLowerCase().includes(G):_.value===c.search}):[...j]).map(_=>({..._,selected:YG(O,_.value)}))}),v=Je(()=>i.options===void 0),b=Je(()=>v.value?!0:i.disabled),S=Je(()=>b.value?void 0:"0"),P=()=>{c.activeOption=f5(w.value.findIndex(O=>ng(O.value,i.modelValue)),O=>O<0?0:O)},F=O=>{var j;const _=Pe(u);s(YG(_,O)?_.filter(G=>!ng(G,O)):[..._,O]),c.search="",(j=o==null?void 0:o.value)==null||j.focus()},T=O=>s(Pe(u).filter(j=>!ng(j,O))),D=()=>{var O;return(O=a.value)==null?void 0:O.focus()},B=()=>{c.open=!c.open,c.open||(c.search="")},k=O=>{var j,_,G;const N=O.relatedTarget;!((j=o.value)!=null&&j.contains(N))&&!((G=(_=l.value)==null?void 0:_.listRef)!=null&&G.contains(N))&&(c.search="",c.open=!1)},z=O=>{var j;const{open:_,activeOption:G}=c;if(!_){O.code==="Enter"&&(c.open=!0);return}O.code==="Escape"&&(c.open=!1,(j=o.value)==null||j.focus());const N=Pe(w),{length:W}=N;if(!W)return;["ArrowDown","ArrowUp","Enter"].includes(O.code)&&O.preventDefault(),O.code==="Enter"&&F(N[G].value);const V=O.code==="ArrowDown"?1:O.code==="ArrowUp"?-1:0;c.activeOption=Math.abs(G+V+W)%W,requestAnimationFrame(()=>{var q;return(q=l.value)==null?void 0:q.scrollIntoActive()})};return Jx(o),tn(()=>i.modelValue,()=>P(),{immediate:!0}),oW(()=>{var O;c.search,c.open&&((O=l.value)==null||O.scrollIntoActive())}),(O,j)=>(ye(),je("div",{class:"pl-dropdown-multi__envelope",onClick:D},[We("div",{ref_key:"rootRef",ref:o,tabindex:S.value,class:St(["pl-dropdown-multi",{open:c.open,error:O.error,disabled:b.value}]),onKeydown:z,onFocusout:k},[We("div",nIe,[We("div",iIe,[Av(We("input",{ref_key:"input",ref:a,"onUpdate:modelValue":j[0]||(j[0]=_=>c.search=_),type:"text",tabindex:"-1",disabled:b.value,placeholder:d.value,spellcheck:"false",autocomplete:"chrome-off",onFocus:j[1]||(j[1]=_=>c.open=!0)},null,40,oIe),[[pS,c.search]]),j[6]||(j[6]=Ne()),c.open?yt("",!0):(ye(),je("div",aIe,[(ye(!0),je(_s,null,Fh(A.value,(_,G)=>(ye(),jt(Pe(ZG),{key:G,closeable:"",small:"",onClick:j[2]||(j[2]=Nn(N=>c.open=!0,["stop"])),onClose:N=>T(_.value)},{default:er(()=>[Ne(Zt(_.label||_.value),1)]),_:2},1032,["onClose"]))),128))])),j[7]||(j[7]=Ne()),We("div",lIe,[v.value?(ye(),jt(Pe(Vc),{key:0,name:"loading"})):yt("",!0),j[4]||(j[4]=Ne()),jr(O.$slots,"append"),j[5]||(j[5]=Ne()),We("div",{class:"pl-dropdown-multi__arrow-wrapper",onClick:Nn(B,["stop"])},j[3]||(j[3]=[We("div",{class:"arrow-icon arrow-icon-default"},null,-1)]))])]),j[12]||(j[12]=Ne()),O.label?(ye(),je("label",cIe,[O.required?(ye(),je("i",uIe)):yt("",!0),j[8]||(j[8]=Ne()),We("span",null,Zt(O.label),1),j[9]||(j[9]=Ne()),Pe(n).tooltip?(ye(),jt(Pe(_h),{key:1,class:"info",position:"top"},{tooltip:er(()=>[jr(O.$slots,"tooltip")]),_:3})):yt("",!0)])):yt("",!0),j[13]||(j[13]=Ne()),c.open?(ye(),jt(p$,{key:1,ref_key:"overlay",ref:l,root:o.value,class:"pl-dropdown-multi__options",gap:5,tabindex:"-1",onFocusout:k},{default:er(()=>[We("div",dIe,[(ye(!0),je(_s,null,Fh(A.value,(_,G)=>(ye(),jt(Pe(ZG),{key:G,closeable:"",small:"",onClose:N=>T(_.value)},{default:er(()=>[Ne(Zt(_.label||_.value),1)]),_:2},1032,["onClose"]))),128))]),j[10]||(j[10]=Ne()),(ye(!0),je(_s,null,Fh(w.value,(_,G)=>(ye(),jt(i$,{key:G,option:_,"text-item":"text","is-selected":_.selected,"is-hovered":c.activeOption==G,size:"medium","use-checkbox":"",onClick:Nn(N=>F(_.value),["stop"])},null,8,["option","is-selected","is-hovered","onClick"]))),128)),j[11]||(j[11]=Ne()),w.value.length?yt("",!0):(ye(),je("div",hIe,"Nothing found"))]),_:1},8,["root"])):yt("",!0),j[14]||(j[14]=Ne()),zt($x,{class:"pl-dropdown-multi__contour"})])],42,sIe),j[15]||(j[15]=Ne()),O.error?(ye(),je("div",pIe,Zt(O.error),1)):O.helper?(ye(),je("div",gIe,Zt(O.helper),1)):yt("",!0)]))}}),XG=Tr({__name:"PlCheckboxBase",props:{modelValue:{type:Boolean},disabled:{type:Boolean},indeterminate:{type:Boolean}},emits:["update:modelValue"],setup(e){const t=e;return(r,s)=>(ye(),je("div",{tabindex:"0",class:St(["pl-checkbox-base",{...t.indeterminate?{indeterminate:!0}:{checked:t.modelValue},disabled:r.disabled}]),onClick:s[0]||(s[0]=n=>r.$emit("update:modelValue",!r.modelValue)),onKeydown:s[1]||(s[1]=dw(Nn(n=>r.$emit("update:modelValue",!r.modelValue),["prevent"]),["space"]))},null,34))}}),mIe={name:"PlCheckbox"},vIe=Tr({...mIe,props:{modelValue:{type:Boolean},disabled:{type:Boolean},indeterminate:{type:Boolean}},emits:["update:modelValue"],setup(e){const t=e,r=dd();return(s,n)=>Pe(r).default?(ye(),je("div",{key:0,class:St(["pl-checkbox",{disabled:s.disabled}])},[zt(XG,dl(t,{"onUpdate:modelValue":n[0]||(n[0]=i=>s.$emit("update:modelValue",i))}),null,16),n[3]||(n[3]=Ne()),We("label",{onClick:n[1]||(n[1]=i=>s.$emit("update:modelValue",!s.$props.modelValue))},[jr(s.$slots,"default")])],2)):(ye(),jt(XG,dl({key:1},t,{"onUpdate:modelValue":n[2]||(n[2]=i=>s.$emit("update:modelValue",i))}),null,16))}}),CIe="_component_tupwt_1",wIe={component:CIe},yIe={};function bIe(e,t){return ye(),je("div",{class:St(e.$style.component)},t[0]||(t[0]=[We("div",null,null,-1)]),2)}const SIe={$style:wIe},xIe=$h(yIe,[["render",bIe],["__cssModules",SIe]]),EIe={key:1,class:"pl-dialog-modal__title"},PIe={inheritAttrs:!1},f$=Tr({...PIe,__name:"PlDialogModal",props:{modelValue:{type:Boolean},width:{default:"448px"},height:{default:"auto"},minHeight:{default:"auto"},maxHeight:{default:"auto"},closable:{type:Boolean,default:!0},noContentGutters:{type:Boolean,default:!1},noTopContentGutter:{type:Boolean},actionsHasTopBorder:{type:Boolean,default:!0},closeOnOutsideClick:{type:Boolean},size:{default:void 0}},emits:["update:modelValue"],setup(e,{emit:t}){const r=dd(),s=t,n=e,i=br(),o=Je(()=>{const{width:l,height:c,minHeight:u,maxHeight:d,size:g}=n;return g==="small"?{width:"448px",height:"440px",minHeight:"auto",maxHeight:"auto"}:g==="medium"?{width:"720px",height:"720px",minHeight:"auto",maxHeight:"auto"}:g==="large"?{width:"1080px",height:"880px",minHeight:"auto",maxHeight:"auto"}:{width:l,height:c,minHeight:u,maxHeight:d}});function a(l){i.value&&n.closeOnOutsideClick&&document.contains(l.target)&&!i.value.contains(l.target)&&s("update:modelValue",!1)}return cv(document.body,"keyup",l=>{n.modelValue&&l.code==="Escape"&&s("update:modelValue",!1)}),(l,c)=>(ye(),jt(kx,{to:"body"},[zt(V7,{name:"dialog"},{default:er(()=>[l.modelValue?(ye(),je("div",{key:0,class:"pl-dialog-modal__shadow",onClick:a},[We("div",dl(l.$attrs,{ref_key:"modal",ref:i,class:["pl-dialog-modal",{"has-title":Pe(r).title,"has-content":Pe(r).default}],style:o.value}),[l.closable?(ye(),jt(xIe,{key:0,class:"close-modal-btn",onClick:c[0]||(c[0]=Nn(u=>s("update:modelValue",!1),["stop"]))})):yt("",!0),c[1]||(c[1]=Ne()),Pe(r).title?(ye(),je("div",EIe,[jr(l.$slots,"title")])):yt("",!0),c[2]||(c[2]=Ne()),We("div",{class:St(["pl-dialog-modal__content",{"no-content-gutters":l.noContentGutters,"no-top-content-gutter":l.noTopContentGutter}])},[jr(l.$slots,"default")],2),c[3]||(c[3]=Ne()),Pe(r).actions?(ye(),je("div",{key:2,class:St(["pl-dialog-modal__actions",{"has-top-border":l.actionsHasTopBorder}])},[jr(l.$slots,"actions")],2)):yt("",!0)],16)])):yt("",!0)]),_:3})]))}}),FIe=Tr({__name:"TransitionSlidePanel",setup(e){function t(){window.dispatchEvent(new CustomEvent("adjust"))}function r(){window.dispatchEvent(new CustomEvent("adjust"))}return(s,n)=>(ye(),jt(V7,{name:"slide-panel",onAfterEnter:t,onAfterLeave:r},{default:er(()=>[jr(s.$slots,"default")]),_:3}))}}),RIe={key:0,class:"pl-slide-modal__title"},TIe={class:"pl-slide-modal__title-content"},DIe={class:"pl-slide-modal__content"},MIe={key:1,class:"pl-slide-modal__actions"},IIe={name:"PlSlideModal",inheritAttrs:!1},kIe=Tr({...IIe,props:{modelValue:{type:Boolean,default:!1},width:{default:"368px"},shadow:{type:Boolean,default:!1},closeOnOutsideClick:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const r=dd(),s=t,n=e,i=br(),o=doe();return h$(i,()=>{n.modelValue&&n.closeOnOutsideClick&&s("update:modelValue",!1)}),cv(document,"keydown",a=>{a.key==="Escape"&&s("update:modelValue",!1)}),(a,l)=>(ye(),jt(kx,{to:"body"},[zt(FIe,null,{default:er(()=>[a.modelValue?(ye(),je("div",dl({key:0,ref_key:"modal",ref:i,style:{width:a.width}},Pe(o),{class:["pl-slide-modal",{"has-title":Pe(r).title,"has-actions":Pe(r).actions}],onKeyup:l[1]||(l[1]=dw(c=>s("update:modelValue",!1),["esc"]))}),[We("div",{class:"close-dialog-btn",onClick:l[0]||(l[0]=c=>s("update:modelValue",!1))}),l[3]||(l[3]=Ne()),Pe(r).title?(ye(),je("div",RIe,[We("span",TIe,[jr(a.$slots,"title")])])):yt("",!0),l[4]||(l[4]=Ne()),We("div",DIe,[jr(a.$slots,"default")]),l[5]||(l[5]=Ne()),Pe(r).actions?(ye(),je("div",MIe,[jr(a.$slots,"actions")])):yt("",!0)],16)):yt("",!0)]),_:3}),l[6]||(l[6]=Ne()),a.modelValue&&a.shadow?(ye(),je("div",{key:0,class:"pl-slide-modal__shadow",onKeyup:l[2]||(l[2]=dw(c=>s("update:modelValue",!1),["esc"]))},null,32)):yt("",!0)]))}});function A$(e){return x7()?(iU(e),!0):!1}const m$=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function BIe(e,t,r={}){const{immediate:s=!0}=r,n=br(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function a(){n.value=!1,o()}function l(...c){o(),n.value=!0,i=setTimeout(()=>{n.value=!1,i=null,e(...c)},N2(t))}return s&&(n.value=!0,m$&&l()),A$(a),{isPending:T7(n),start:l,stop:a}}function LIe(e,t,r){return tn(e,(s,n,i)=>{s&&t(s,n,i)},{...r,once:!1})}function HIe(e,t,r={}){const{immediate:s=!0}=r,{start:n}=BIe(o,t,{immediate:!1}),i=br(!1);async function o(){i.value&&(await e(),n())}function a(){i.value||(i.value=!0,o())}function l(){i.value=!1}return s&&m$&&a(),A$(l),{isActive:i,pause:l,resume:a}}var vs;(function(e){e.assertEqual=n=>n;function t(n){}e.assertIs=t;function r(n){throw new Error}e.assertNever=r,e.arrayToEnum=n=>{const i={};for(const o of n)i[o]=o;return i},e.getValidEnumValues=n=>{const i=e.objectKeys(n).filter(a=>typeof n[n[a]]!="number"),o={};for(const a of i)o[a]=n[a];return e.objectValues(o)},e.objectValues=n=>e.objectKeys(n).map(function(i){return n[i]}),e.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{const i=[];for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&i.push(o);return i},e.find=(n,i)=>{for(const o of n)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&isFinite(n)&&Math.floor(n)===n;function s(n,i=" | "){return n.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=s,e.jsonStringifyReplacer=(n,i)=>typeof i=="bigint"?i.toString():i})(vs||(vs={}));var $k;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})($k||($k={}));const Gt=vs.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Zf=e=>{switch(typeof e){case"undefined":return Gt.undefined;case"string":return Gt.string;case"number":return isNaN(e)?Gt.nan:Gt.number;case"boolean":return Gt.boolean;case"function":return Gt.function;case"bigint":return Gt.bigint;case"symbol":return Gt.symbol;case"object":return Array.isArray(e)?Gt.array:e===null?Gt.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Gt.promise:typeof Map<"u"&&e instanceof Map?Gt.map:typeof Set<"u"&&e instanceof Set?Gt.set:typeof Date<"u"&&e instanceof Date?Gt.date:Gt.object;default:return Gt.unknown}},At=vs.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),GIe=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Wl extends Error{constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const r=t||function(i){return i.message},s={_errors:[]},n=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(n);else if(o.code==="invalid_return_type")n(o.returnTypeError);else if(o.code==="invalid_arguments")n(o.argumentsError);else if(o.path.length===0)s._errors.push(r(o));else{let a=s,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(r(o))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return n(this),s}static assert(t){if(!(t instanceof Wl))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,vs.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},s=[];for(const n of this.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):s.push(t(n));return{formErrors:s,fieldErrors:r}}get formErrors(){return this.flatten()}}Wl.create=e=>new Wl(e);const Fw=(e,t)=>{let r;switch(e.code){case At.invalid_type:e.received===Gt.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case At.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,vs.jsonStringifyReplacer)}`;break;case At.unrecognized_keys:r=`Unrecognized key(s) in object: ${vs.joinValues(e.keys,", ")}`;break;case At.invalid_union:r="Invalid input";break;case At.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${vs.joinValues(e.options)}`;break;case At.invalid_enum_value:r=`Invalid enum value. Expected ${vs.joinValues(e.options)}, received '${e.received}'`;break;case At.invalid_arguments:r="Invalid function arguments";break;case At.invalid_return_type:r="Invalid function return type";break;case At.invalid_date:r="Invalid date";break;case At.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:vs.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case At.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case At.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case At.custom:r="Invalid input";break;case At.invalid_intersection_types:r="Intersection results could not be merged";break;case At.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case At.not_finite:r="Number must be finite";break;default:r=t.defaultError,vs.assertNever(e)}return{message:r}};let v$=Fw;function OIe(e){v$=e}function BF(){return v$}const LF=e=>{const{data:t,path:r,errorMaps:s,issueData:n}=e,i=[...r,...n.path||[]],o={...n,path:i};if(n.message!==void 0)return{...n,path:i,message:n.message};let a="";const l=s.filter(c=>!!c).slice().reverse();for(const c of l)a=c(o,{data:t,defaultError:a}).message;return{...n,path:i,message:a}},NIe=[];function It(e,t){const r=BF(),s=LF({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Fw?void 0:Fw].filter(n=>!!n)});e.common.issues.push(s)}class Oo{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const s=[];for(const n of r){if(n.status==="aborted")return Fr;n.status==="dirty"&&t.dirty(),s.push(n.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,r){const s=[];for(const n of r){const i=await n.key,o=await n.value;s.push({key:i,value:o})}return Oo.mergeObjectSync(t,s)}static mergeObjectSync(t,r){const s={};for(const n of r){const{key:i,value:o}=n;if(i.status==="aborted"||o.status==="aborted")return Fr;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||n.alwaysSet)&&(s[i.value]=o.value)}return{status:t.value,value:s}}}const Fr=Object.freeze({status:"aborted"}),HF=e=>({status:"dirty",value:e}),Aa=e=>({status:"valid",value:e}),Jk=e=>e.status==="aborted",qk=e=>e.status==="dirty",VS=e=>e.status==="valid",zS=e=>typeof Promise<"u"&&e instanceof Promise;function GF(e,t,r,s){if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function C$(e,t,r,s,n){if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}var Jt;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Jt||(Jt={}));var m1,v1;let Vh=class{constructor(e,t,r,s){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}};const $G=(e,t)=>{if(VS(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Wl(e.common.issues);return this._error=r,this._error}}};function Vr(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:s,description:n}=e;if(t&&(r||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:n}:{errorMap:(i,o)=>{var a,l;const{message:c}=e;return i.code==="invalid_enum_value"?{message:c??o.defaultError}:typeof o.data>"u"?{message:(a=c??s)!==null&&a!==void 0?a:o.defaultError}:i.code!=="invalid_type"?{message:o.defaultError}:{message:(l=c??r)!==null&&l!==void 0?l:o.defaultError}},description:n}}let Zr=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return Zf(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Zf(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Oo,ctx:{common:e.parent.common,data:e.data,parsedType:Zf(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(zS(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;const s={common:{issues:[],async:(r=t==null?void 0:t.async)!==null&&r!==void 0?r:!1,contextualErrorMap:t==null?void 0:t.errorMap},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Zf(e)},n=this._parseSync({data:e,path:s.path,parent:s});return $G(s,n)}async parseAsync(e,t){const r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){const r={common:{issues:[],contextualErrorMap:t==null?void 0:t.errorMap,async:!0},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Zf(e)},s=this._parse({data:e,path:r.path,parent:r}),n=await(zS(s)?s:Promise.resolve(s));return $G(r,n)}refine(e,t){const r=s=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(s):t;return this._refinement((s,n)=>{const i=e(s),o=()=>n.addIssue({code:At.custom,...r(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(a=>a?!0:(o(),!1)):i?!0:(o(),!1)})}refinement(e,t){return this._refinement((r,s)=>e(r)?!0:(s.addIssue(typeof t=="function"?t(r,s):t),!1))}_refinement(e){return new ad({schema:this,typeName:vr.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Mh.create(this,this._def)}nullable(){return bA.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ju.create(this,this._def)}promise(){return Tw.create(this,this._def)}or(e){return YS.create([this,e],this._def)}and(e){return ZS.create(this,e,this._def)}transform(e){return new ad({...Vr(this._def),schema:this,typeName:vr.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new ex({...Vr(this._def),innerType:this,defaultValue:t,typeName:vr.ZodDefault})}brand(){return new v5({typeName:vr.ZodBranded,type:this,...Vr(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new tx({...Vr(this._def),innerType:this,catchValue:t,typeName:vr.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return e3.create(this,e)}readonly(){return rx.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};const _Ie=/^c[^\s-]{8,}$/i,VIe=/^[0-9a-z]+$/,zIe=/^[0-9A-HJKMNP-TV-Z]{26}$/,QIe=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,UIe=/^[a-z0-9_-]{21}$/i,WIe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,jIe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,KIe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let h4;const YIe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ZIe=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,XIe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,w$="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",$Ie=new RegExp(`^${w$}$`);function y$(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function JIe(e){return new RegExp(`^${y$(e)}$`)}function b$(e){let t=`${w$}T${y$(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function qIe(e,t){return!!((t==="v4"||!t)&&YIe.test(e)||(t==="v6"||!t)&&ZIe.test(e))}class Qu extends Zr{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Gt.string){const n=this._getOrReturnCtx(t);return It(n,{code:At.invalid_type,expected:Gt.string,received:n.parsedType}),Fr}const r=new Oo;let s;for(const n of this._def.checks)if(n.kind==="min")t.data.length<n.value&&(s=this._getOrReturnCtx(t,s),It(s,{code:At.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if(n.kind==="max")t.data.length>n.value&&(s=this._getOrReturnCtx(t,s),It(s,{code:At.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),r.dirty());else if(n.kind==="length"){const i=t.data.length>n.value,o=t.data.length<n.value;(i||o)&&(s=this._getOrReturnCtx(t,s),i?It(s,{code:At.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):o&&It(s,{code:At.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),r.dirty())}else if(n.kind==="email")jIe.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"email",code:At.invalid_string,message:n.message}),r.dirty());else if(n.kind==="emoji")h4||(h4=new RegExp(KIe,"u")),h4.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"emoji",code:At.invalid_string,message:n.message}),r.dirty());else if(n.kind==="uuid")QIe.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"uuid",code:At.invalid_string,message:n.message}),r.dirty());else if(n.kind==="nanoid")UIe.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"nanoid",code:At.invalid_string,message:n.message}),r.dirty());else if(n.kind==="cuid")_Ie.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"cuid",code:At.invalid_string,message:n.message}),r.dirty());else if(n.kind==="cuid2")VIe.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"cuid2",code:At.invalid_string,message:n.message}),r.dirty());else if(n.kind==="ulid")zIe.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"ulid",code:At.invalid_string,message:n.message}),r.dirty());else if(n.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),It(s,{validation:"url",code:At.invalid_string,message:n.message}),r.dirty()}else n.kind==="regex"?(n.regex.lastIndex=0,n.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"regex",code:At.invalid_string,message:n.message}),r.dirty())):n.kind==="trim"?t.data=t.data.trim():n.kind==="includes"?t.data.includes(n.value,n.position)||(s=this._getOrReturnCtx(t,s),It(s,{code:At.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),r.dirty()):n.kind==="toLowerCase"?t.data=t.data.toLowerCase():n.kind==="toUpperCase"?t.data=t.data.toUpperCase():n.kind==="startsWith"?t.data.startsWith(n.value)||(s=this._getOrReturnCtx(t,s),It(s,{code:At.invalid_string,validation:{startsWith:n.value},message:n.message}),r.dirty()):n.kind==="endsWith"?t.data.endsWith(n.value)||(s=this._getOrReturnCtx(t,s),It(s,{code:At.invalid_string,validation:{endsWith:n.value},message:n.message}),r.dirty()):n.kind==="datetime"?b$(n).test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{code:At.invalid_string,validation:"datetime",message:n.message}),r.dirty()):n.kind==="date"?$Ie.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{code:At.invalid_string,validation:"date",message:n.message}),r.dirty()):n.kind==="time"?JIe(n).test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{code:At.invalid_string,validation:"time",message:n.message}),r.dirty()):n.kind==="duration"?WIe.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"duration",code:At.invalid_string,message:n.message}),r.dirty()):n.kind==="ip"?qIe(t.data,n.version)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"ip",code:At.invalid_string,message:n.message}),r.dirty()):n.kind==="base64"?XIe.test(t.data)||(s=this._getOrReturnCtx(t,s),It(s,{validation:"base64",code:At.invalid_string,message:n.message}),r.dirty()):vs.assertNever(n);return{status:r.value,value:t.data}}_regex(t,r,s){return this.refinement(n=>t.test(n),{validation:r,code:At.invalid_string,...Jt.errToObj(s)})}_addCheck(t){return new Qu({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Jt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Jt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Jt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Jt.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Jt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Jt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Jt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Jt.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Jt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Jt.errToObj(t)})}datetime(t){var r,s;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,local:(s=t==null?void 0:t.local)!==null&&s!==void 0?s:!1,...Jt.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Jt.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Jt.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...Jt.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...Jt.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...Jt.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...Jt.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...Jt.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...Jt.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...Jt.errToObj(r)})}nonempty(t){return this.min(1,Jt.errToObj(t))}trim(){return new Qu({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Qu({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Qu({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}Qu.create=e=>{var t;return new Qu({checks:[],typeName:vr.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Vr(e)})};function eke(e,t){const r=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,n=r>s?r:s,i=parseInt(e.toFixed(n).replace(".","")),o=parseInt(t.toFixed(n).replace(".",""));return i%o/Math.pow(10,n)}let QS=class eB extends Zr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Gt.number){const n=this._getOrReturnCtx(t);return It(n,{code:At.invalid_type,expected:Gt.number,received:n.parsedType}),Fr}let r;const s=new Oo;for(const n of this._def.checks)n.kind==="int"?vs.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),It(r,{code:At.invalid_type,expected:"integer",received:"float",message:n.message}),s.dirty()):n.kind==="min"?(n.inclusive?t.data<n.value:t.data<=n.value)&&(r=this._getOrReturnCtx(t,r),It(r,{code:At.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),s.dirty()):n.kind==="max"?(n.inclusive?t.data>n.value:t.data>=n.value)&&(r=this._getOrReturnCtx(t,r),It(r,{code:At.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),s.dirty()):n.kind==="multipleOf"?eke(t.data,n.value)!==0&&(r=this._getOrReturnCtx(t,r),It(r,{code:At.not_multiple_of,multipleOf:n.value,message:n.message}),s.dirty()):n.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),It(r,{code:At.not_finite,message:n.message}),s.dirty()):vs.assertNever(n);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Jt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Jt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Jt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Jt.toString(r))}setLimit(t,r,s,n){return new eB({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:s,message:Jt.toString(n)}]})}_addCheck(t){return new eB({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Jt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Jt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Jt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Jt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Jt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Jt.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:Jt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Jt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Jt.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&vs.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(r===null||s.value>r)&&(r=s.value):s.kind==="max"&&(t===null||s.value<t)&&(t=s.value)}return Number.isFinite(r)&&Number.isFinite(t)}};QS.create=e=>new QS({checks:[],typeName:vr.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Vr(e)});class wA extends Zr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==Gt.bigint){const n=this._getOrReturnCtx(t);return It(n,{code:At.invalid_type,expected:Gt.bigint,received:n.parsedType}),Fr}let r;const s=new Oo;for(const n of this._def.checks)n.kind==="min"?(n.inclusive?t.data<n.value:t.data<=n.value)&&(r=this._getOrReturnCtx(t,r),It(r,{code:At.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),s.dirty()):n.kind==="max"?(n.inclusive?t.data>n.value:t.data>=n.value)&&(r=this._getOrReturnCtx(t,r),It(r,{code:At.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),s.dirty()):n.kind==="multipleOf"?t.data%n.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),It(r,{code:At.not_multiple_of,multipleOf:n.value,message:n.message}),s.dirty()):vs.assertNever(n);return{status:s.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Jt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Jt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Jt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Jt.toString(r))}setLimit(t,r,s,n){return new wA({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:s,message:Jt.toString(n)}]})}_addCheck(t){return new wA({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Jt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Jt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Jt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Jt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Jt.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}wA.create=e=>{var t;return new wA({checks:[],typeName:vr.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Vr(e)})};let US=class extends Zr{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Gt.boolean){const t=this._getOrReturnCtx(e);return It(t,{code:At.invalid_type,expected:Gt.boolean,received:t.parsedType}),Fr}return Aa(e.data)}};US.create=e=>new US({typeName:vr.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Vr(e)});let WS=class S$ extends Zr{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Gt.date){const n=this._getOrReturnCtx(t);return It(n,{code:At.invalid_type,expected:Gt.date,received:n.parsedType}),Fr}if(isNaN(t.data.getTime())){const n=this._getOrReturnCtx(t);return It(n,{code:At.invalid_date}),Fr}const r=new Oo;let s;for(const n of this._def.checks)n.kind==="min"?t.data.getTime()<n.value&&(s=this._getOrReturnCtx(t,s),It(s,{code:At.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):n.kind==="max"?t.data.getTime()>n.value&&(s=this._getOrReturnCtx(t,s),It(s,{code:At.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):vs.assertNever(n);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new S$({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:Jt.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:Jt.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};WS.create=e=>new WS({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:vr.ZodDate,...Vr(e)});let OF=class extends Zr{_parse(e){if(this._getType(e)!==Gt.symbol){const t=this._getOrReturnCtx(e);return It(t,{code:At.invalid_type,expected:Gt.symbol,received:t.parsedType}),Fr}return Aa(e.data)}};OF.create=e=>new OF({typeName:vr.ZodSymbol,...Vr(e)});class jS extends Zr{_parse(t){if(this._getType(t)!==Gt.undefined){const r=this._getOrReturnCtx(t);return It(r,{code:At.invalid_type,expected:Gt.undefined,received:r.parsedType}),Fr}return Aa(t.data)}}jS.create=e=>new jS({typeName:vr.ZodUndefined,...Vr(e)});class KS extends Zr{_parse(t){if(this._getType(t)!==Gt.null){const r=this._getOrReturnCtx(t);return It(r,{code:At.invalid_type,expected:Gt.null,received:r.parsedType}),Fr}return Aa(t.data)}}KS.create=e=>new KS({typeName:vr.ZodNull,...Vr(e)});let Rw=class extends Zr{constructor(){super(...arguments),this._any=!0}_parse(e){return Aa(e.data)}};Rw.create=e=>new Rw({typeName:vr.ZodAny,...Vr(e)});class uv extends Zr{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Aa(t.data)}}uv.create=e=>new uv({typeName:vr.ZodUnknown,...Vr(e)});class mg extends Zr{_parse(t){const r=this._getOrReturnCtx(t);return It(r,{code:At.invalid_type,expected:Gt.never,received:r.parsedType}),Fr}}mg.create=e=>new mg({typeName:vr.ZodNever,...Vr(e)});let NF=class extends Zr{_parse(e){if(this._getType(e)!==Gt.undefined){const t=this._getOrReturnCtx(e);return It(t,{code:At.invalid_type,expected:Gt.void,received:t.parsedType}),Fr}return Aa(e.data)}};NF.create=e=>new NF({typeName:vr.ZodVoid,...Vr(e)});class Ju extends Zr{_parse(t){const{ctx:r,status:s}=this._processInputParams(t),n=this._def;if(r.parsedType!==Gt.array)return It(r,{code:At.invalid_type,expected:Gt.array,received:r.parsedType}),Fr;if(n.exactLength!==null){const o=r.data.length>n.exactLength.value,a=r.data.length<n.exactLength.value;(o||a)&&(It(r,{code:o?At.too_big:At.too_small,minimum:a?n.exactLength.value:void 0,maximum:o?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),s.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(It(r,{code:At.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),s.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(It(r,{code:At.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),s.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>n.type._parseAsync(new Vh(r,o,r.path,a)))).then(o=>Oo.mergeArray(s,o));const i=[...r.data].map((o,a)=>n.type._parseSync(new Vh(r,o,r.path,a)));return Oo.mergeArray(s,i)}get element(){return this._def.type}min(t,r){return new Ju({...this._def,minLength:{value:t,message:Jt.toString(r)}})}max(t,r){return new Ju({...this._def,maxLength:{value:t,message:Jt.toString(r)}})}length(t,r){return new Ju({...this._def,exactLength:{value:t,message:Jt.toString(r)}})}nonempty(t){return this.min(1,t)}}Ju.create=(e,t)=>new Ju({type:e,minLength:null,maxLength:null,exactLength:null,typeName:vr.ZodArray,...Vr(t)});function L0(e){if(e instanceof Jc){const t={};for(const r in e.shape){const s=e.shape[r];t[r]=Mh.create(L0(s))}return new Jc({...e._def,shape:()=>t})}else return e instanceof Ju?new Ju({...e._def,type:L0(e.element)}):e instanceof Mh?Mh.create(L0(e.unwrap())):e instanceof bA?bA.create(L0(e.unwrap())):e instanceof yA?yA.create(e.items.map(t=>L0(t))):e}let Jc=class Lu extends Zr{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=vs.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==Gt.object){const l=this._getOrReturnCtx(t);return It(l,{code:At.invalid_type,expected:Gt.object,received:l.parsedType}),Fr}const{status:r,ctx:s}=this._processInputParams(t),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof mg&&this._def.unknownKeys==="strip"))for(const l in s.data)i.includes(l)||o.push(l);const a=[];for(const l of i){const c=n[l],u=s.data[l];a.push({key:{status:"valid",value:l},value:c._parse(new Vh(s,u,s.path,l)),alwaysSet:l in s.data})}if(this._def.catchall instanceof mg){const l=this._def.unknownKeys;if(l==="passthrough")for(const c of o)a.push({key:{status:"valid",value:c},value:{status:"valid",value:s.data[c]}});else if(l==="strict")o.length>0&&(It(s,{code:At.unrecognized_keys,keys:o}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const c of o){const u=s.data[c];a.push({key:{status:"valid",value:c},value:l._parse(new Vh(s,u,s.path,c)),alwaysSet:c in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const l=[];for(const c of a){const u=await c.key,d=await c.value;l.push({key:u,value:d,alwaysSet:c.alwaysSet})}return l}).then(l=>Oo.mergeObjectSync(r,l)):Oo.mergeObjectSync(r,a)}get shape(){return this._def.shape()}strict(t){return Jt.errToObj,new Lu({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,s)=>{var n,i,o,a;const l=(o=(i=(n=this._def).errorMap)===null||i===void 0?void 0:i.call(n,r,s).message)!==null&&o!==void 0?o:s.defaultError;return r.code==="unrecognized_keys"?{message:(a=Jt.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new Lu({...this._def,unknownKeys:"strip"})}passthrough(){return new Lu({...this._def,unknownKeys:"passthrough"})}extend(t){return new Lu({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Lu({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:vr.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new Lu({...this._def,catchall:t})}pick(t){const r={};return vs.objectKeys(t).forEach(s=>{t[s]&&this.shape[s]&&(r[s]=this.shape[s])}),new Lu({...this._def,shape:()=>r})}omit(t){const r={};return vs.objectKeys(this.shape).forEach(s=>{t[s]||(r[s]=this.shape[s])}),new Lu({...this._def,shape:()=>r})}deepPartial(){return L0(this)}partial(t){const r={};return vs.objectKeys(this.shape).forEach(s=>{const n=this.shape[s];t&&!t[s]?r[s]=n:r[s]=n.optional()}),new Lu({...this._def,shape:()=>r})}required(t){const r={};return vs.objectKeys(this.shape).forEach(s=>{if(t&&!t[s])r[s]=this.shape[s];else{let n=this.shape[s];for(;n instanceof Mh;)n=n._def.innerType;r[s]=n}}),new Lu({...this._def,shape:()=>r})}keyof(){return F$(vs.objectKeys(this.shape))}};Jc.create=(e,t)=>new Jc({shape:()=>e,unknownKeys:"strip",catchall:mg.create(),typeName:vr.ZodObject,...Vr(t)});Jc.strictCreate=(e,t)=>new Jc({shape:()=>e,unknownKeys:"strict",catchall:mg.create(),typeName:vr.ZodObject,...Vr(t)});Jc.lazycreate=(e,t)=>new Jc({shape:e,unknownKeys:"strip",catchall:mg.create(),typeName:vr.ZodObject,...Vr(t)});let YS=class extends Zr{_parse(e){const{ctx:t}=this._processInputParams(e),r=this._def.options;function s(n){for(const o of n)if(o.result.status==="valid")return o.result;for(const o of n)if(o.result.status==="dirty")return t.common.issues.push(...o.ctx.common.issues),o.result;const i=n.map(o=>new Wl(o.ctx.common.issues));return It(t,{code:At.invalid_union,unionErrors:i}),Fr}if(t.common.async)return Promise.all(r.map(async n=>{const i={...t,common:{...t.common,issues:[]},parent:null};return{result:await n._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(s);{let n;const i=[];for(const a of r){const l={...t,common:{...t.common,issues:[]},parent:null},c=a._parseSync({data:t.data,path:t.path,parent:l});if(c.status==="valid")return c;c.status==="dirty"&&!n&&(n={result:c,ctx:l}),l.common.issues.length&&i.push(l.common.issues)}if(n)return t.common.issues.push(...n.ctx.common.issues),n.result;const o=i.map(a=>new Wl(a));return It(t,{code:At.invalid_union,unionErrors:o}),Fr}}get options(){return this._def.options}};YS.create=(e,t)=>new YS({options:e,typeName:vr.ZodUnion,...Vr(t)});const kf=e=>e instanceof $S?kf(e.schema):e instanceof ad?kf(e.innerType()):e instanceof JS?[e.value]:e instanceof qx?e.options:e instanceof qS?vs.objectValues(e.enum):e instanceof ex?kf(e._def.innerType):e instanceof jS?[void 0]:e instanceof KS?[null]:e instanceof Mh?[void 0,...kf(e.unwrap())]:e instanceof bA?[null,...kf(e.unwrap())]:e instanceof v5||e instanceof rx?kf(e.unwrap()):e instanceof tx?kf(e._def.innerType):[];let x$=class E$ extends Zr{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Gt.object)return It(r,{code:At.invalid_type,expected:Gt.object,received:r.parsedType}),Fr;const s=this.discriminator,n=r.data[s],i=this.optionsMap.get(n);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(It(r,{code:At.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),Fr)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,s){const n=new Map;for(const i of r){const o=kf(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of o){if(n.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);n.set(a,i)}}return new E$({typeName:vr.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:n,...Vr(s)})}};function tB(e,t){const r=Zf(e),s=Zf(t);if(e===t)return{valid:!0,data:e};if(r===Gt.object&&s===Gt.object){const n=vs.objectKeys(t),i=vs.objectKeys(e).filter(a=>n.indexOf(a)!==-1),o={...e,...t};for(const a of i){const l=tB(e[a],t[a]);if(!l.valid)return{valid:!1};o[a]=l.data}return{valid:!0,data:o}}else if(r===Gt.array&&s===Gt.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let i=0;i<e.length;i++){const o=e[i],a=t[i],l=tB(o,a);if(!l.valid)return{valid:!1};n.push(l.data)}return{valid:!0,data:n}}else return r===Gt.date&&s===Gt.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ZS extends Zr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t),n=(i,o)=>{if(Jk(i)||Jk(o))return Fr;const a=tB(i.value,o.value);return a.valid?((qk(i)||qk(o))&&r.dirty(),{status:r.value,value:a.data}):(It(s,{code:At.invalid_intersection_types}),Fr)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,o])=>n(i,o)):n(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}ZS.create=(e,t,r)=>new ZS({left:e,right:t,typeName:vr.ZodIntersection,...Vr(r)});let yA=class P$ extends Zr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Gt.array)return It(s,{code:At.invalid_type,expected:Gt.array,received:s.parsedType}),Fr;if(s.data.length<this._def.items.length)return It(s,{code:At.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Fr;!this._def.rest&&s.data.length>this._def.items.length&&(It(s,{code:At.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const n=[...s.data].map((i,o)=>{const a=this._def.items[o]||this._def.rest;return a?a._parse(new Vh(s,i,s.path,o)):null}).filter(i=>!!i);return s.common.async?Promise.all(n).then(i=>Oo.mergeArray(r,i)):Oo.mergeArray(r,n)}get items(){return this._def.items}rest(t){return new P$({...this._def,rest:t})}};yA.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new yA({items:e,typeName:vr.ZodTuple,rest:null,...Vr(t)})};class XS extends Zr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Gt.object)return It(s,{code:At.invalid_type,expected:Gt.object,received:s.parsedType}),Fr;const n=[],i=this._def.keyType,o=this._def.valueType;for(const a in s.data)n.push({key:i._parse(new Vh(s,a,s.path,a)),value:o._parse(new Vh(s,s.data[a],s.path,a)),alwaysSet:a in s.data});return s.common.async?Oo.mergeObjectAsync(r,n):Oo.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(t,r,s){return r instanceof Zr?new XS({keyType:t,valueType:r,typeName:vr.ZodRecord,...Vr(s)}):new XS({keyType:Qu.create(),valueType:t,typeName:vr.ZodRecord,...Vr(r)})}}let _F=class extends Zr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==Gt.map)return It(r,{code:At.invalid_type,expected:Gt.map,received:r.parsedType}),Fr;const s=this._def.keyType,n=this._def.valueType,i=[...r.data.entries()].map(([o,a],l)=>({key:s._parse(new Vh(r,o,r.path,[l,"key"])),value:n._parse(new Vh(r,a,r.path,[l,"value"]))}));if(r.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const a of i){const l=await a.key,c=await a.value;if(l.status==="aborted"||c.status==="aborted")return Fr;(l.status==="dirty"||c.status==="dirty")&&t.dirty(),o.set(l.value,c.value)}return{status:t.value,value:o}})}else{const o=new Map;for(const a of i){const l=a.key,c=a.value;if(l.status==="aborted"||c.status==="aborted")return Fr;(l.status==="dirty"||c.status==="dirty")&&t.dirty(),o.set(l.value,c.value)}return{status:t.value,value:o}}}};_F.create=(e,t,r)=>new _F({valueType:t,keyType:e,typeName:vr.ZodMap,...Vr(r)});let VF=class rB extends Zr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Gt.set)return It(s,{code:At.invalid_type,expected:Gt.set,received:s.parsedType}),Fr;const n=this._def;n.minSize!==null&&s.data.size<n.minSize.value&&(It(s,{code:At.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&s.data.size>n.maxSize.value&&(It(s,{code:At.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());const i=this._def.valueType;function o(l){const c=new Set;for(const u of l){if(u.status==="aborted")return Fr;u.status==="dirty"&&r.dirty(),c.add(u.value)}return{status:r.value,value:c}}const a=[...s.data.values()].map((l,c)=>i._parse(new Vh(s,l,s.path,c)));return s.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(t,r){return new rB({...this._def,minSize:{value:t,message:Jt.toString(r)}})}max(t,r){return new rB({...this._def,maxSize:{value:t,message:Jt.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};VF.create=(e,t)=>new VF({valueType:e,minSize:null,maxSize:null,typeName:vr.ZodSet,...Vr(t)});class sw extends Zr{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Gt.function)return It(r,{code:At.invalid_type,expected:Gt.function,received:r.parsedType}),Fr;function s(a,l){return LF({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,BF(),Fw].filter(c=>!!c),issueData:{code:At.invalid_arguments,argumentsError:l}})}function n(a,l){return LF({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,BF(),Fw].filter(c=>!!c),issueData:{code:At.invalid_return_type,returnTypeError:l}})}const i={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Tw){const a=this;return Aa(async function(...l){const c=new Wl([]),u=await a._def.args.parseAsync(l,i).catch(g=>{throw c.addIssue(s(l,g)),c}),d=await Reflect.apply(o,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(g=>{throw c.addIssue(n(d,g)),c})})}else{const a=this;return Aa(function(...l){const c=a._def.args.safeParse(l,i);if(!c.success)throw new Wl([s(l,c.error)]);const u=Reflect.apply(o,this,c.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new Wl([n(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new sw({...this._def,args:yA.create(t).rest(uv.create())})}returns(t){return new sw({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,s){return new sw({args:t||yA.create([]).rest(uv.create()),returns:r||uv.create(),typeName:vr.ZodFunction,...Vr(s)})}}let $S=class extends Zr{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};$S.create=(e,t)=>new $S({getter:e,typeName:vr.ZodLazy,...Vr(t)});let JS=class extends Zr{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return It(t,{received:t.data,code:At.invalid_literal,expected:this._def.value}),Fr}return{status:"valid",value:e.data}}get value(){return this._def.value}};JS.create=(e,t)=>new JS({value:e,typeName:vr.ZodLiteral,...Vr(t)});function F$(e,t){return new qx({values:e,typeName:vr.ZodEnum,...Vr(t)})}let qx=class sB extends Zr{constructor(){super(...arguments),m1.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),s=this._def.values;return It(r,{expected:vs.joinValues(s),received:r.parsedType,code:At.invalid_type}),Fr}if(GF(this,m1)||C$(this,m1,new Set(this._def.values)),!GF(this,m1).has(t.data)){const r=this._getOrReturnCtx(t),s=this._def.values;return It(r,{received:r.data,code:At.invalid_enum_value,options:s}),Fr}return Aa(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return sB.create(t,{...this._def,...r})}exclude(t,r=this._def){return sB.create(this.options.filter(s=>!t.includes(s)),{...this._def,...r})}};m1=new WeakMap;qx.create=F$;let qS=class extends Zr{constructor(){super(...arguments),v1.set(this,void 0)}_parse(e){const t=vs.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==Gt.string&&r.parsedType!==Gt.number){const s=vs.objectValues(t);return It(r,{expected:vs.joinValues(s),received:r.parsedType,code:At.invalid_type}),Fr}if(GF(this,v1)||C$(this,v1,new Set(vs.getValidEnumValues(this._def.values))),!GF(this,v1).has(e.data)){const s=vs.objectValues(t);return It(r,{received:r.data,code:At.invalid_enum_value,options:s}),Fr}return Aa(e.data)}get enum(){return this._def.values}};v1=new WeakMap;qS.create=(e,t)=>new qS({values:e,typeName:vr.ZodNativeEnum,...Vr(t)});class Tw extends Zr{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Gt.promise&&r.common.async===!1)return It(r,{code:At.invalid_type,expected:Gt.promise,received:r.parsedType}),Fr;const s=r.parsedType===Gt.promise?r.data:Promise.resolve(r.data);return Aa(s.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Tw.create=(e,t)=>new Tw({type:e,typeName:vr.ZodPromise,...Vr(t)});class ad extends Zr{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===vr.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:s}=this._processInputParams(t),n=this._def.effect||null,i={addIssue:o=>{It(s,o),o.fatal?r.abort():r.dirty()},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),n.type==="preprocess"){const o=n.transform(s.data,i);if(s.common.async)return Promise.resolve(o).then(async a=>{if(r.value==="aborted")return Fr;const l=await this._def.schema._parseAsync({data:a,path:s.path,parent:s});return l.status==="aborted"?Fr:l.status==="dirty"||r.value==="dirty"?HF(l.value):l});{if(r.value==="aborted")return Fr;const a=this._def.schema._parseSync({data:o,path:s.path,parent:s});return a.status==="aborted"?Fr:a.status==="dirty"||r.value==="dirty"?HF(a.value):a}}if(n.type==="refinement"){const o=a=>{const l=n.refinement(a,i);if(s.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(s.common.async===!1){const a=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?Fr:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(a=>a.status==="aborted"?Fr:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(n.type==="transform")if(s.common.async===!1){const o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!VS(o))return o;const a=n.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>VS(o)?Promise.resolve(n.transform(o.value,i)).then(a=>({status:r.value,value:a})):o);vs.assertNever(n)}}ad.create=(e,t,r)=>new ad({schema:e,typeName:vr.ZodEffects,effect:t,...Vr(r)});ad.createWithPreprocess=(e,t,r)=>new ad({schema:t,effect:{type:"preprocess",transform:e},typeName:vr.ZodEffects,...Vr(r)});let Mh=class extends Zr{_parse(e){return this._getType(e)===Gt.undefined?Aa(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Mh.create=(e,t)=>new Mh({innerType:e,typeName:vr.ZodOptional,...Vr(t)});class bA extends Zr{_parse(t){return this._getType(t)===Gt.null?Aa(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}bA.create=(e,t)=>new bA({innerType:e,typeName:vr.ZodNullable,...Vr(t)});let ex=class extends Zr{_parse(e){const{ctx:t}=this._processInputParams(e);let r=t.data;return t.parsedType===Gt.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};ex.create=(e,t)=>new ex({innerType:e,typeName:vr.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Vr(t)});let tx=class extends Zr{_parse(e){const{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return zS(s)?s.then(n=>({status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new Wl(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Wl(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};tx.create=(e,t)=>new tx({innerType:e,typeName:vr.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Vr(t)});let zF=class extends Zr{_parse(e){if(this._getType(e)!==Gt.nan){const t=this._getOrReturnCtx(e);return It(t,{code:At.invalid_type,expected:Gt.nan,received:t.parsedType}),Fr}return{status:"valid",value:e.data}}};zF.create=e=>new zF({typeName:vr.ZodNaN,...Vr(e)});const tke=Symbol("zod_brand");let v5=class extends Zr{_parse(e){const{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}};class e3 extends Zr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{const n=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?Fr:n.status==="dirty"?(r.dirty(),HF(n.value)):this._def.out._parseAsync({data:n.value,path:s.path,parent:s})})();{const n=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?Fr:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:s.path,parent:s})}}static create(t,r){return new e3({in:t,out:r,typeName:vr.ZodPipeline})}}let rx=class extends Zr{_parse(e){const t=this._def.innerType._parse(e),r=s=>(VS(s)&&(s.value=Object.freeze(s.value)),s);return zS(t)?t.then(s=>r(s)):r(t)}unwrap(){return this._def.innerType}};rx.create=(e,t)=>new rx({innerType:e,typeName:vr.ZodReadonly,...Vr(t)});function R$(e,t={},r){return e?Rw.create().superRefine((s,n)=>{var i,o;if(!e(s)){const a=typeof t=="function"?t(s):typeof t=="string"?{message:t}:t,l=(o=(i=a.fatal)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:!0,c=typeof a=="string"?{message:a}:a;n.addIssue({code:"custom",...c,fatal:l})}}):Rw.create()}const rke={object:Jc.lazycreate};var vr;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(vr||(vr={}));const ske=(e,t={message:`Input not instance of ${e.name}`})=>R$(r=>r instanceof e,t),T$=Qu.create,D$=QS.create,nke=zF.create,ike=wA.create,M$=US.create,oke=WS.create,ake=OF.create,lke=jS.create,cke=KS.create,uke=Rw.create,dke=uv.create,hke=mg.create,pke=NF.create,gke=Ju.create,fke=Jc.create,Ake=Jc.strictCreate,mke=YS.create,vke=x$.create,Cke=ZS.create,wke=yA.create,yke=XS.create,bke=_F.create,Ske=VF.create,xke=sw.create,Eke=$S.create,Pke=JS.create,Fke=qx.create,Rke=qS.create,Tke=Tw.create,JG=ad.create,Dke=Mh.create,Mke=bA.create,Ike=ad.createWithPreprocess,kke=e3.create,Bke=()=>T$().optional(),Lke=()=>D$().optional(),Hke=()=>M$().optional(),Gke={string:e=>Qu.create({...e,coerce:!0}),number:e=>QS.create({...e,coerce:!0}),boolean:e=>US.create({...e,coerce:!0}),bigint:e=>wA.create({...e,coerce:!0}),date:e=>WS.create({...e,coerce:!0})},Oke=Fr;var cs=Object.freeze({__proto__:null,defaultErrorMap:Fw,setErrorMap:OIe,getErrorMap:BF,makeIssue:LF,EMPTY_PATH:NIe,addIssueToContext:It,ParseStatus:Oo,INVALID:Fr,DIRTY:HF,OK:Aa,isAborted:Jk,isDirty:qk,isValid:VS,isAsync:zS,get util(){return vs},get objectUtil(){return $k},ZodParsedType:Gt,getParsedType:Zf,ZodType:Zr,datetimeRegex:b$,ZodString:Qu,ZodNumber:QS,ZodBigInt:wA,ZodBoolean:US,ZodDate:WS,ZodSymbol:OF,ZodUndefined:jS,ZodNull:KS,ZodAny:Rw,ZodUnknown:uv,ZodNever:mg,ZodVoid:NF,ZodArray:Ju,ZodObject:Jc,ZodUnion:YS,ZodDiscriminatedUnion:x$,ZodIntersection:ZS,ZodTuple:yA,ZodRecord:XS,ZodMap:_F,ZodSet:VF,ZodFunction:sw,ZodLazy:$S,ZodLiteral:JS,ZodEnum:qx,ZodNativeEnum:qS,ZodPromise:Tw,ZodEffects:ad,ZodTransformer:ad,ZodOptional:Mh,ZodNullable:bA,ZodDefault:ex,ZodCatch:tx,ZodNaN:zF,BRAND:tke,ZodBranded:v5,ZodPipeline:e3,ZodReadonly:rx,custom:R$,Schema:Zr,ZodSchema:Zr,late:rke,get ZodFirstPartyTypeKind(){return vr},coerce:Gke,any:uke,array:gke,bigint:ike,boolean:M$,date:oke,discriminatedUnion:vke,effect:JG,enum:Fke,function:xke,instanceof:ske,intersection:Cke,lazy:Eke,literal:Pke,map:bke,nan:nke,nativeEnum:Rke,never:hke,null:cke,nullable:Mke,number:D$,object:fke,oboolean:Hke,onumber:Lke,optional:Dke,ostring:Bke,pipeline:kke,preprocess:Ike,promise:Tke,record:yke,set:Ske,strictObject:Ake,string:T$,symbol:ake,transformer:JG,tuple:wke,undefined:lke,union:mke,unknown:dke,void:pke,NEVER:Oke,ZodIssueCode:At,quotelessJson:GIe,ZodError:Wl});function Nke(e){throw new Error("Unexpected object: "+e)}const I$="upload://upload/",k$="index://index/";function _ke(e){return e.startsWith(I$)}function Vke(e){return e.startsWith(k$)}function B$(e){if(Vke(e)){const t=e.slice(k$.length);return JSON.parse(decodeURIComponent(t)).path}else if(_ke(e)){const t=e.slice(I$.length);return JSON.parse(decodeURIComponent(t)).localPath}Nke(e)}function zke(e){return e.replace(/^.*[\\/]/,"")}function Qke(e){return zke(B$(e))}cs.object({__isRef:cs.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),blockId:cs.string().describe("Upstream block id"),name:cs.string().describe("Name of the output provided to the upstream block's output context"),requireEnrichments:cs.literal(!0).optional().describe("True if current block that stores this reference in its args, may need enrichments for the references value originating from the blocks in between current and referenced block")}).describe("Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees.").readonly();const Uke=24;cs.string().length(Uke).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");var qG={exports:{}};(function(e,t){t=e.exports=r,t.getSerialize=s;function r(n,i,o,a){return JSON.stringify(n,s(i,a),o)}function s(n,i){var o=[],a=[];return i==null&&(i=function(l,c){return o[0]===c?"[Circular ~]":"[Circular ~."+a.slice(0,o.indexOf(c)).join(".")+"]"}),function(l,c){if(o.length>0){var u=o.indexOf(this);~u?o.splice(u+1):o.push(this),~u?a.splice(u,1/0,l):a.push(l),~o.indexOf(c)&&(c=i.call(this,l,c))}else o.push(c);return n==null?c:n.call(this,l,c)}}})(qG,qG.exports);const Wke=cs.object({type:cs.literal("PlError"),name:cs.string(),message:cs.string(),fullMessage:cs.string().optional(),stack:cs.string().optional()}),jke=Wke.extend({cause:cs.lazy(()=>QF).optional(),errors:cs.lazy(()=>QF.array()).optional()}),Kke=cs.object({type:cs.literal("StandardError"),name:cs.string(),message:cs.string(),stack:cs.string().optional()}),Yke=Kke.extend({cause:cs.lazy(()=>QF).optional(),errors:cs.lazy(()=>QF.array()).optional()}),QF=cs.union([Yke,jke]),Zke=cs.object({name:cs.string(),message:cs.string(),fullMessage:cs.string().optional(),stack:cs.string().optional()}),eO=Zke.extend({cause:cs.lazy(()=>eO).optional(),errors:cs.lazy(()=>eO.array()).optional()});function Xke(e){if(e&&typeof globalThis.getPlatforma=="function")return globalThis.getPlatforma(e);if(typeof globalThis.platforma<"u")return globalThis.platforma;throw new Error("Can't get platforma instance.")}const $ke=cs.object({type:cs.string(),importance:cs.number().optional(),id:cs.string().optional(),label:cs.string()});cs.array($ke);const Jke="1.31.15";function tA(){return Xke({sdkVersion:Jke})}const qke="[==PROGRESS==]";function eBe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function tBe(e){const t=br(),r=oi({errorCount:0});async function s(){var i;let o=t.value;if(o===void 0)return;const a=e.mockPlatforma??tA();if(!a){console.warn("Platforma API is not available");return}for(;;){const l=await a.logDriver.readText(o.logHandle,100,o.lastOffset);if(o.error=void 0,r.errorCount=0,l.shouldUpdateHandle||o.logHandle!==((i=t.value)==null?void 0:i.logHandle))return;const c=e.progressPrefix??qke,u=new TextDecoder().decode(l.data).replace(new RegExp(`${eBe(c)}`,"g"),"");if(o=Object.assign(o,{lines:o.lines+u,lastOffset:l.newOffset,finished:!l.live}),l.newOffset>=l.size)break}}const n=HIe(()=>s().catch(i=>{t.value&&(r.errorCount++,r.errorCount>(e.maxRetries??3)?t.value.error=i:console.warn("skip error:",i,"retry..."))}),1500,{immediate:!1});return LIe(()=>{var i;return(i=t==null?void 0:t.value)==null?void 0:i.finished},()=>n.pause()),tn(()=>e.logHandle,i=>{var o;i===void 0?(t.value=void 0,n.pause()):i!==((o=t.value)==null?void 0:o.logHandle)&&(t.value={logHandle:i,lastOffset:0,lines:"",finished:!1,error:void 0},r.errorCount=0,n.resume())},{immediate:!0}),t}const rBe={key:0},sBe={class:"pl-log-view__copy"},nBe={key:1,class:"pl-log-view__error"},iBe={name:"PlLogView"},oBe=Tr({...iBe,props:{value:{},valueToCopy:{},logHandle:{},progressPrefix:{},error:{},output:{},maxRetries:{},mockPlatforma:{},label:{},disableAutoScroll:{type:Boolean}},setup(e){const t=v=>{if(v&&v.ok===!1)return v.errors.join(`
703
703
  `)},r=dd(),s=e,n=tBe(s),i=br(!0),o=br(),a=br(),l=Je(()=>{var v;return((v=n.value)==null?void 0:v.error)??s.error??t(s.output)}),c=Je(()=>{var v;return((v=n.value)==null?void 0:v.lines)??s.value??RDe(s.output)}),u=br(!1);Jx(a);const d=Je(()=>u.value?"clipboard-copied":"clipboard"),g=()=>{u.value=!0,setTimeout(()=>{u.value=!1},1200);let v;s.valueToCopy?v=s.valueToCopy:c.value&&typeof c.value=="string"&&(v=c.value),v!==void 0&&navigator.clipboard.writeText(v)},A=()=>{s.disableAutoScroll||p5(o.value,v=>{i.value&&v.scrollTo(v.scrollLeft,v.scrollHeight)})};tn(c,()=>{requestAnimationFrame(()=>{A()})},{immediate:!0});const w=v=>{const b=v.target;i.value=b.scrollTop+20>=b.scrollHeight-b.offsetHeight};return(v,b)=>(ye(),je("div",{ref_key:"root",ref:a,class:St(["pl-log-view",{"has-error":l.value}])},[v.label?(ye(),je("label",rBe,[We("span",null,Zt(v.label),1),b[0]||(b[0]=Ne()),Pe(r).tooltip?(ye(),jt(Pe(_h),{key:0,class:"info",position:"top"},{tooltip:er(()=>[jr(v.$slots,"tooltip")]),_:3})):yt("",!0)])):yt("",!0),b[2]||(b[2]=Ne()),zt($x,{class:"pl-log-view__contour"}),b[3]||(b[3]=Ne()),We("div",sBe,[zt(Pe(_h),{"close-delay":800,position:"top"},{tooltip:er(()=>[Ne(Zt(u.value?"copied":"copy"),1)]),default:er(()=>[zt(Pe(Vc),{title:"Copy content",name:d.value,onClick:g},null,8,["name"]),b[1]||(b[1]=Ne())]),_:1})]),b[4]||(b[4]=Ne()),l.value?(ye(),je("div",nBe,Zt(l.value),1)):(ye(),je("div",{key:2,ref_key:"contentRef",ref:o,class:"pl-log-view__content",onScroll:w},Zt(c.value),545))],2))}}),aBe="_component_1uz6e_1",lBe="_local_1uz6e_1",cBe="_supported_1uz6e_26",uBe="_remote_1uz6e_32",dBe="_search_1uz6e_40",hBe="_selected_1uz6e_72",pBe="_breadcrumbs_1uz6e_86",gBe="_cat_1uz6e_116",fBe="_message_1uz6e_122",ABe="_isFile_1uz6e_196",mBe="_isDir_1uz6e_200",vBe="_canBeSelected_1uz6e_206",CBe="_spin_1uz6e_1",ni={component:aBe,local:lBe,supported:cBe,remote:uBe,search:dBe,"ls-container":"_ls-container_1uz6e_50","ls-head":"_ls-head_1uz6e_57",selected:hBe,breadcrumbs:pBe,"ls-error":"_ls-error_1uz6e_108",cat:gBe,message:fBe,"ls-empty":"_ls-empty_1uz6e_131","ls-body":"_ls-body_1uz6e_152",isFile:ABe,isDir:mBe,canBeSelected:vBe,"ls-loader":"_ls-loader_1uz6e_212","loader-icon":"_loader-icon_1uz6e_220",spin:CBe},wBe=Tr({__name:"Shortcuts",setup(e){return(t,r)=>(ye(),jt(Pe(_h),{class:"info",position:"southwest","max-width":"420px"},{tooltip:er(()=>[We("span",{class:St(t.$style.title)},"Shortcuts",2),r[2]||(r[2]=Ne()),We("div",{class:St([t.$style.row,t.$style.head])},r[0]||(r[0]=[We("div",null,null,-1),Ne(),We("div",null,"MacOS",-1),Ne(),We("div",null,"Windows/Linux",-1)]),2),r[3]||(r[3]=Ne()),We("div",{class:St([t.$style.row,t.$style.body])},r[1]||(r[1]=[We("div",null,"Single File",-1),Ne(),We("div",null,"Click the file",-1),Ne(),We("div",null,"Click the file",-1),Ne(),We("div",null,"Adjacent multiple files",-1),Ne(),We("div",null,"Hold Shift, click first and last files",-1),Ne(),We("div",null,"Hold Shift, click first and last files",-1),Ne(),We("div",null,"Non-adjacent multiple files",-1),Ne(),We("div",null,"Hold Command (⌘), click each file",-1),Ne(),We("div",null,"Hold Ctrl, click each file",-1),Ne(),We("div",null,"All files",-1),Ne(),We("div",null,"Press Command (⌘) + A",-1),Ne(),We("div",null,"Press Ctrl + A",-1)]),2)]),_:1}))}}),yBe="_title_14dct_2",bBe="_row_14dct_10",SBe="_head_14dct_30",xBe="_body_14dct_58",EBe={title:yBe,row:bBe,head:SBe,body:xBe},PBe={$style:EBe},FBe=$h(wBe,[["__cssModules",PBe]]),tO=()=>({dirPath:"",search:"",storageEntry:void 0,items:[],error:"",storageOptions:[],selected:[],lastSelected:void 0,currentLoadingPath:void 0,showHiddenItems:!1});function RBe(e){return Je(()=>{let t=e.items;if(e.showHiddenItems||(t=t.filter(r=>!r.name.startsWith("."))),e.search){const r=e.search.toLocaleLowerCase();t=t.filter(s=>s.name.toLocaleLowerCase().includes(r))}return t})}const rO={mounted:e=>{if(e.clientWidth<e.scrollWidth){const t=e.innerText;e.innerText=t.substring(0,57)+"..."+t.substring(t.length-10)}}};function L$(e){return e?e.map(t=>"."+DDe(t,["."])):void 0}function TBe(e){const t="/",r=e.startsWith(t),s=TDe(e,[t]).split(t),n=[{index:0,name:"Root",path:""}];if(s.length===1&&s[0]==="")return n;for(let i=0;i<s.length;i++){const o=(r?t:"")+s.slice(0,i+1).join(t);n.push({index:i+1,name:s[i],path:o})}return n}const DBe=["title","onClick"],MBe={key:0,class:"ls-loader"},IBe=["onClick"],kBe=["title"],BBe=["onClick"],LBe=["title"],HBe=Tr({__name:"Remote",props:{modelValue:{type:Boolean},extensions:{default:void 0},multi:{type:Boolean},title:{default:void 0},autoSelectStorage:{type:Boolean,default:!0},submit:{}},emits:["update:modelValue","import:files"],setup(e,{expose:t}){const r=D=>D.ctrlKey||D.metaKey,s=e,n=oi(tO()),i=()=>{n.search="",n.error="",n.lastSelected=void 0},o=Je(()=>L$(s.extensions)),a=RBe(n),l=Je(()=>{var D;return{modelValue:s.modelValue,dirPath:n.dirPath,storageHandle:(D=n.storageEntry)==null?void 0:D.handle}}),c=(D,B)=>{tA()&&n.currentLoadingPath!==B&&(n.currentLoadingPath=B,tA().lsDriver.listFiles(D,B).then(k=>{B===n.dirPath&&(n.items=NS(k).entries.map(z=>({path:z.fullPath,name:z.name,isDir:z.type==="dir",canBeSelected:z.type==="file"&&(!o.value||o.value.some(O=>z.fullPath.endsWith(O))),handle:z.type==="file"?z.handle:void 0,selected:!1})).sort((z,O)=>z.isDir&&!O.isDir?-1:!z.isDir&&O.isDir?1:z.name.localeCompare(O.name)).map((z,O)=>({id:O,...z})),n.lastSelected=void 0)}).catch(k=>n.error=String(k)).finally(()=>{n.currentLoadingPath=void 0}))},u=()=>{i();const{storageHandle:D,dirPath:B,modelValue:k}=l.value;D&&k&&c(D,B)},d=Je(()=>TBe(n.dirPath)),g=Je(()=>n.items.filter(D=>D.canBeSelected&&D.selected&&!D.isDir)),A=Je(()=>{var D;return g.value.length>0&&((D=n.storageEntry)==null?void 0:D.handle)}),w=()=>{var D;return{storageHandle:NS((D=n.storageEntry)==null?void 0:D.handle),files:g.value.map(B=>B.handle)}},v=D=>{n.dirPath=D},b=(D,B)=>{const{shiftKey:k}=D,z=r(D),{lastSelected:O}=n;D.preventDefault();const j=a.value;if(B.canBeSelected){if(s.multi||j.forEach(_=>_.selected=!1),B.selected=!B.selected,!s.multi)return;!z&&!k&&j.forEach(_=>{_.id!==B.id&&(_.selected=!1)}),k&&O!==void 0&&j.forEach(_=>{FDe(_.id,O,B.id)&&(_.selected=!0)}),B.selected&&(n.lastSelected=B.id)}},S=D=>{D&&!s.multi||a.value.filter(B=>B.canBeSelected).forEach(B=>{B.selected=D})},P=()=>S(!0),F=()=>S(!1),T=()=>{if(i(),F(),!tA()){console.warn("platforma API is not found");return}tA().lsDriver.getStorageList().then(D=>{D=D.filter(B=>B.name!=="local"&&!B.name.startsWith("local_disk_")),n.storageOptions=D.map(B=>({text:B.name,value:B})),s.autoSelectStorage&&p5(D[0],B=>{n.storageEntry=B})}).catch(D=>n.error=String(D))};return tn(I7(n,"storageEntry"),D=>{i(),n.dirPath=(D==null?void 0:D.initialFullPath)??""},{immediate:!0}),tn([()=>n.dirPath,()=>n.storageEntry],()=>{u()}),tn(()=>s.modelValue,D=>{D?T():Object.assign(n,tO())},{immediate:!0}),cv(document,"keydown",D=>{if(!s.modelValue||D.target!==document.body)return;const B=r(D);B&&D.code==="KeyA"&&(D.preventDefault(),P()),B&&D.shiftKey&&D.code==="Period"&&(D.preventDefault(),n.showHiddenItems=!n.showHiddenItems),D.code==="Enter"&&s.submit()}),t({isReady:A,getFilesToImport:w}),Yh(T),(D,B)=>(ye(),je("div",{class:St(Pe(ni).remote),onClick:Nn(F,["stop"])},[We("div",{class:St(Pe(ni).search)},[We("div",null,[zt(Pe(g$),{modelValue:n.storageEntry,"onUpdate:modelValue":B[0]||(B[0]=k=>n.storageEntry=k),label:"Select storage",options:n.storageOptions},null,8,["modelValue","options"])]),B[2]||(B[2]=Ne()),We("div",null,[zt(Pe(G4e),{modelValue:n.search,"onUpdate:modelValue":B[1]||(B[1]=k=>n.search=k),label:"Search in folder",clearable:""},null,8,["modelValue"])])],2),B[12]||(B[12]=Ne()),We("div",{class:St(Pe(ni)["ls-container"])},[We("div",{class:St(Pe(ni)["ls-head"])},[We("div",{class:St(Pe(ni).breadcrumbs)},[(ye(!0),je(_s,null,Fh(d.value,(k,z)=>(ye(),je(_s,{key:z},[We("div",{title:k.path,onClick:O=>v(k.path)},Zt(k.name),9,DBe),B[3]||(B[3]=Ne()),k.index!==d.value.length-1?(ye(),jt(Pe(_S),{key:0,name:"chevron-right"})):yt("",!0)],64))),128))],2),B[5]||(B[5]=Ne()),We("div",{class:St(Pe(ni).selected)},[We("span",null,"Selected: "+Zt(g.value.length),1),B[4]||(B[4]=Ne()),zt(FBe)],2)],2),B[11]||(B[11]=Ne()),n.currentLoadingPath!==void 0?(ye(),je("div",MBe,B[6]||(B[6]=[We("i",{class:"mask-24 mask-loading loader-icon"},null,-1)]))):n.storageEntry?n.error?(ye(),je("div",{key:2,class:St(Pe(ni)["ls-error"])},[We("div",{class:St(Pe(ni).cat)},null,2),B[8]||(B[8]=Ne()),We("div",{class:St(Pe(ni).message)},Zt(n.error),3)],2)):(ye(),je("div",{key:3,class:St(Pe(ni)["ls-body"])},[(ye(!0),je(_s,null,Fh(Pe(a),k=>(ye(),je(_s,{key:k.id},[k.isDir?(ye(),je("div",{key:0,class:St(Pe(ni).isDir),onClick:z=>v(k.path)},[zt(Pe(_S),{name:"chevron-right"}),B[9]||(B[9]=Ne()),Av((ye(),je("span",{title:k.name},[Ne(Zt(k.name),1)],8,kBe)),[[Pe(rO)]])],10,IBe)):(ye(),je("div",{key:1,class:St({[Pe(ni).canBeSelected]:k.canBeSelected,[Pe(ni).selected]:k.selected}),onClick:Nn(z=>b(z,k),["stop"])},[zt(Pe(Zk),{name:"box",class:St(Pe(ni).isFile)},null,8,["class"]),B[10]||(B[10]=Ne()),Av((ye(),je("span",{title:k.name},[Ne(Zt(k.name),1)],8,LBe)),[[Pe(rO)]])],10,BBe))],64))),128))],2)):(ye(),je("div",{key:1,class:St(Pe(ni)["ls-empty"])},[We("div",{class:St(Pe(ni).cat)},null,2),B[7]||(B[7]=Ne()),We("div",{class:St(Pe(ni).message)},"Select storage to preview",2)],2))],2)],2))}}),GBe={key:1,class:"alert-error"},OBe=Tr({__name:"Local",props:{importFiles:{type:Function},multi:{type:Boolean},extensions:{}},setup(e){const t=e,r=oi({error:void 0}),s=Je(()=>t.multi?"Drag & Drop files here or click to add":"Drag & Drop file here or click to add"),n=async o=>{var a,l,c;const u=(l=(a=tA())==null?void 0:a.lsDriver)==null?void 0:l.fileToImportHandle;if(!u)return console.error("API getPlatformaRawInstance().lsDriver.fileToImportHandle is not available");const d=L$(t.extensions),g=await Promise.all([...((c=o.dataTransfer)==null?void 0:c.files)??[]].filter(A=>!!A).filter(A=>d?d.some(w=>A.name.endsWith(w)):!0).map(A=>u(A)));g.length&&t.importFiles({files:g})},i=async()=>{var o,a;const l=t.extensions?[{name:"All Files",extensions:t.extensions}]:[];t.multi?(o=tA())==null||o.lsDriver.showOpenMultipleFilesDialog({title:"Select files to import",filters:l}).then(({files:c})=>{c&&t.importFiles({files:c})}).catch(c=>r.error=c):(a=tA())==null||a.lsDriver.showOpenSingleFileDialog({title:"Select file to import",filters:l}).then(({file:c})=>{c&&t.importFiles({files:[c]})}).catch(c=>r.error=c)};return(o,a)=>(ye(),je("div",{class:St(Pe(ni).local),onDrop:n,onDragover:a[0]||(a[0]=Nn(()=>{},["prevent"])),onClick:i},[zt(Pe(m5),{name:"cloud-upload"}),a[1]||(a[1]=Ne()),We("span",null,Zt(s.value),1),a[2]||(a[2]=Ne()),o.extensions?(ye(),je("span",{key:0,class:St(Pe(ni).supported)},"Supported formats: "+Zt(o.extensions.join(", ")),3)):yt("",!0),a[3]||(a[3]=Ne()),r.error?(ye(),je("span",GBe,Zt(r.error),1)):yt("",!0)],34))}}),NBe={style:{margin:"0 24px"}},H$=Tr({__name:"PlFileDialog",props:{modelValue:{type:Boolean},extensions:{default:void 0},multi:{type:Boolean},title:{default:void 0},autoSelectStorage:{type:Boolean,default:!0},closeOnOutsideClick:{type:Boolean,default:!0}},emits:["update:modelValue","import:files"],setup(e,{emit:t}){const r=t,s=e,n=br("local"),i=Je(()=>s.multi?"Select Files to Import":"Select File to Import"),o=[{label:"My Computer",value:"local"},{label:"Remote",value:"remote"}],a=()=>r("update:modelValue",!1),l=B7("remote"),c=()=>{var d,g;(d=l.value)!=null&&d.isReady&&(r("import:files",NS((g=l.value)==null?void 0:g.getFilesToImport())),a())},u=d=>{r("import:files",d),a()};return(d,g)=>(ye(),jt(Pe(f$),{"no-content-gutters":!0,"close-on-outside-click":d.closeOnOutsideClick,class:St(["pl-dialog-modal",Pe(ni).component]),"model-value":d.modelValue,width:"688px",height:"720px","onUpdate:modelValue":a},UU({title:er(()=>[Ne(Zt(d.title??i.value),1)]),default:er(()=>[g[4]||(g[4]=Ne()),We("div",NBe,[zt(Pe(i4e),{modelValue:n.value,"onUpdate:modelValue":g[0]||(g[0]=A=>n.value=A),options:o},null,8,["modelValue"])]),g[5]||(g[5]=Ne()),n.value==="remote"?(ye(),jt(HBe,dl({key:0,ref:"remote"},d.$props,{submit:c}),null,16)):yt("",!0),g[6]||(g[6]=Ne()),n.value==="local"?(ye(),jt(OBe,dl({key:1,"import-files":u},d.$props),null,16)):yt("",!0),g[7]||(g[7]=Ne())]),_:2},[n.value==="remote"?{name:"actions",fn:er(()=>{var A;return[zt(Pe(kF),{style:{"min-width":"160px"},disabled:!((A=Pe(l))!=null&&A.isReady),onClick:Nn(c,["stop"])},{default:er(()=>g[1]||(g[1]=[Ne("Import")])),_:1},8,["disabled"]),g[3]||(g[3]=Ne()),zt(Pe(g5),{"justify-center":!1,onClick:Nn(a,["stop"])},{default:er(()=>g[2]||(g[2]=[Ne("Cancel")])),_:1})]}),key:"0"}:void 0]),1032,["close-on-outside-click","class","model-value"]))}}),_Be={key:0,ref:"label"},VBe={key:0,class:"required-icon"},zBe=["data-placeholder"],QBe={key:5,class:"pl-file-input__stats"},UBe={key:0,class:"pl-file-input__error"},WBe={key:1,class:"pl-file-input__helper"},jBe=Tr({__name:"PlFileInput",props:{modelValue:{},label:{default:void 0},required:{type:Boolean},dashed:{type:Boolean},extensions:{default:void 0},placeholder:{default:void 0},progress:{default:void 0},error:{default:void 0},helper:{default:void 0},cellStyle:{type:Boolean,default:!1},fileDialogTitle:{default:void 0},fileDialogCloseOnOutsideClick:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const r=oi({fileDialogOpen:!1,error:""}),s=dd(),n=t,i=e,o=(F,T)=>{if(F)try{return T(F)}catch(D){return r.error=D instanceof Error?D.message:String(D),F}},a=Je(()=>o(i.modelValue,Qke)),l=Je(()=>o(i.modelValue,B$)),c=Je(()=>i.progress&&!i.progress.done),u=Je(()=>i.progress&&i.progress.done),d=Je(()=>r.error??i.error),g=Je(()=>!!d.value),A=Je(()=>{const{status:F,done:T}=i.progress??{};return!F||!F.bytesTotal?"":F.bytesProcessed&&!T?l4(F.bytesProcessed,{})+" / "+l4(F.bytesTotal,{}):l4(F.bytesTotal,{})}),w=Je(()=>{var F;const{progress:T}=i;return T?{width:T.done?"100%":Math.round((((F=T.status)==null?void 0:F.progress)??0)*100)+"%"}:{}}),v=()=>{r.fileDialogOpen=!0},b=F=>{F.files.length&&n("update:modelValue",F.files[0])},S=()=>n("update:modelValue",void 0);tn(()=>i.modelValue,()=>{r.error=""},{immediate:!0});const P=br();return i.cellStyle||Jx(P),(F,T)=>(ye(),je(_s,null,[We("div",{class:St([{"pl-file-input__cell-style":!!F.cellStyle,"has-file":!!a.value},"pl-file-input__envelope"])},[We("div",{ref_key:"rootRef",ref:P,class:St(["pl-file-input",{dashed:F.dashed,error:g.value}]),tabindex:"0",onKeyup:dw(v,["enter"]),onClick:Nn(v,["stop"])},[We("div",{class:"pl-file-input__progress",style:oo(w.value)},null,4),T[3]||(T[3]=Ne()),!F.cellStyle&&F.label?(ye(),je("label",_Be,[F.required?(ye(),je("i",VBe)):yt("",!0),T[1]||(T[1]=Ne()),We("span",null,Zt(F.label),1),T[2]||(T[2]=Ne()),Pe(s).tooltip||l.value?(ye(),jt(Pe(_h),{key:1,class:"info",position:"top"},{tooltip:er(()=>[Pe(s).tooltip?jr(F.$slots,"tooltip",{key:0}):(ye(),je(_s,{key:1},[Ne(Zt(l.value),1)],64))]),_:3})):yt("",!0)],512)):yt("",!0),T[4]||(T[4]=Ne()),g.value?(ye(),jt(Pe(Vc),{key:1,name:"restart"})):c.value?(ye(),jt(Pe(Vc),{key:2,name:"cloud-upload"})):u.value?(ye(),jt(Pe(Vc),{key:3,name:"success"})):(ye(),jt(Pe(Vc),{key:4,name:"paper-clip"})),T[5]||(T[5]=Ne()),We("div",{"data-placeholder":F.placeholder??"Choose file",class:"pl-file-input__filename"},Zt(a.value),9,zBe),T[6]||(T[6]=Ne()),A.value?(ye(),je("div",QBe,Zt(A.value),1)):yt("",!0),T[7]||(T[7]=Ne()),F.modelValue?(ye(),jt(Pe(Vc),{key:6,name:"close",onClick:Nn(S,["stop"])})):yt("",!0),T[8]||(T[8]=Ne()),zt($x,{class:"pl-file-input__contour"})],34),T[9]||(T[9]=Ne()),g.value?(ye(),je("div",UBe,Zt(d.value),1)):F.helper?(ye(),je("div",WBe,Zt(F.helper),1)):yt("",!0)],2),T[10]||(T[10]=Ne()),zt(Pe(H$),{modelValue:r.fileDialogOpen,"onUpdate:modelValue":T[0]||(T[0]=D=>r.fileDialogOpen=D),extensions:F.extensions,title:F.fileDialogTitle,"close-on-outside-click":F.fileDialogCloseOnOutsideClick,"onImport:files":b},null,8,["modelValue","extensions","title","close-on-outside-click"])],64))}}),KBe={class:"pl-notification-alert__wrapper d-flex text-s"},YBe={class:"pl-notification-alert__content flex-grow-1"},ZBe={key:0,class:"pl-notification-alert__close"},XBe={key:0,class:"pl-notification-alert__actions d-flex"},$Be=Tr({__name:"PlNotificationAlert",props:KU({type:{default:"neutral"},width:{default:"256px"},closable:{type:Boolean}},{modelValue:{type:Boolean,default:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=lW(e,"modelValue");function s(){t.closable&&(r.value=!1)}return(n,i)=>r.value?(ye(),je("div",{key:0,class:St([n.type,"pl-notification-alert d-flex flex-column gap-16"]),style:oo({width:`${n.width}`})},[We("div",KBe,[We("div",YBe,[jr(n.$slots,"default")]),i[0]||(i[0]=Ne()),n.closable?(ye(),je("div",ZBe,[zt(Pe(g5),{icon:"close",onClick:Nn(s,["stop"])})])):yt("",!0)]),i[1]||(i[1]=Ne()),n.$slots.actions?(ye(),je("div",XBe,[jr(n.$slots,"actions")])):yt("",!0)],6)):yt("",!0)}});function S2(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function JBe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function G$(e){let t,r,s;e.length!==2?(t=S2,r=(a,l)=>S2(e(a),l),s=(a,l)=>e(a)-l):(t=e===S2||e===JBe?e:qBe,r=e,s=e);function n(a,l,c=0,u=a.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;r(a[d],l)<0?c=d+1:u=d}while(c<u)}return c}function i(a,l,c=0,u=a.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;r(a[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function o(a,l,c=0,u=a.length){const d=n(a,l,c,u-1);return d>c&&s(a[d-1],l)>-s(a[d],l)?d-1:d}return{left:n,center:o,right:i}}function qBe(){return 0}function e7e(e){return e===null?NaN:+e}G$(S2);G$(e7e).center;var t7e={value:()=>{}};function O$(){for(var e=0,t=arguments.length,r={},s;e<t;++e){if(!(s=arguments[e]+"")||s in r||/[\s.]/.test(s))throw new Error("illegal type: "+s);r[s]=[]}return new x2(r)}function x2(e){this._=e}function r7e(e,t){return e.trim().split(/^|\s+/).map(function(r){var s="",n=r.indexOf(".");if(n>=0&&(s=r.slice(n+1),r=r.slice(0,n)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:s}})}x2.prototype=O$.prototype={constructor:x2,on:function(e,t){var r=this._,s=r7e(e+"",r),n,i=-1,o=s.length;if(arguments.length<2){for(;++i<o;)if((n=(e=s[i]).type)&&(n=s7e(r[n],e.name)))return n;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<o;)if(n=(e=s[i]).type)r[n]=sO(r[n],e.name,t);else if(t==null)for(n in r)r[n]=sO(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new x2(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var r=new Array(n),s=0,n,i;s<n;++s)r[s]=arguments[s+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],s=0,n=i.length;s<n;++s)i[s].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var s=this._[e],n=0,i=s.length;n<i;++n)s[n].value.apply(t,r)}};function s7e(e,t){for(var r=0,s=e.length,n;r<s;++r)if((n=e[r]).name===t)return n.value}function sO(e,t,r){for(var s=0,n=e.length;s<n;++s)if(e[s].name===t){e[s]=t7e,e=e.slice(0,s).concat(e.slice(s+1));break}return r!=null&&e.push({name:t,value:r}),e}var nB="http://www.w3.org/1999/xhtml";const nO={svg:"http://www.w3.org/2000/svg",xhtml:nB,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function bT(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),nO.hasOwnProperty(t)?{space:nO[t],local:e}:e}function n7e(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===nB&&t.documentElement.namespaceURI===nB?t.createElement(e):t.createElementNS(r,e)}}function i7e(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function N$(e){var t=bT(e);return(t.local?i7e:n7e)(t)}function o7e(){}function C5(e){return e==null?o7e:function(){return this.querySelector(e)}}function a7e(e){typeof e!="function"&&(e=C5(e));for(var t=this._groups,r=t.length,s=new Array(r),n=0;n<r;++n)for(var i=t[n],o=i.length,a=s[n]=new Array(o),l,c,u=0;u<o;++u)(l=i[u])&&(c=e.call(l,l.__data__,u,i))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new ld(s,this._parents)}function l7e(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function c7e(){return[]}function _$(e){return e==null?c7e:function(){return this.querySelectorAll(e)}}function u7e(e){return function(){return l7e(e.apply(this,arguments))}}function d7e(e){typeof e=="function"?e=u7e(e):e=_$(e);for(var t=this._groups,r=t.length,s=[],n=[],i=0;i<r;++i)for(var o=t[i],a=o.length,l,c=0;c<a;++c)(l=o[c])&&(s.push(e.call(l,l.__data__,c,o)),n.push(l));return new ld(s,n)}function V$(e){return function(){return this.matches(e)}}function z$(e){return function(t){return t.matches(e)}}var h7e=Array.prototype.find;function p7e(e){return function(){return h7e.call(this.children,e)}}function g7e(){return this.firstElementChild}function f7e(e){return this.select(e==null?g7e:p7e(typeof e=="function"?e:z$(e)))}var A7e=Array.prototype.filter;function m7e(){return Array.from(this.children)}function v7e(e){return function(){return A7e.call(this.children,e)}}function C7e(e){return this.selectAll(e==null?m7e:v7e(typeof e=="function"?e:z$(e)))}function w7e(e){typeof e!="function"&&(e=V$(e));for(var t=this._groups,r=t.length,s=new Array(r),n=0;n<r;++n)for(var i=t[n],o=i.length,a=s[n]=[],l,c=0;c<o;++c)(l=i[c])&&e.call(l,l.__data__,c,i)&&a.push(l);return new ld(s,this._parents)}function Q$(e){return new Array(e.length)}function y7e(){return new ld(this._enter||this._groups.map(Q$),this._parents)}function UF(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}UF.prototype={constructor:UF,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function b7e(e){return function(){return e}}function S7e(e,t,r,s,n,i){for(var o=0,a,l=t.length,c=i.length;o<c;++o)(a=t[o])?(a.__data__=i[o],s[o]=a):r[o]=new UF(e,i[o]);for(;o<l;++o)(a=t[o])&&(n[o]=a)}function x7e(e,t,r,s,n,i,o){var a,l,c=new Map,u=t.length,d=i.length,g=new Array(u),A;for(a=0;a<u;++a)(l=t[a])&&(g[a]=A=o.call(l,l.__data__,a,t)+"",c.has(A)?n[a]=l:c.set(A,l));for(a=0;a<d;++a)A=o.call(e,i[a],a,i)+"",(l=c.get(A))?(s[a]=l,l.__data__=i[a],c.delete(A)):r[a]=new UF(e,i[a]);for(a=0;a<u;++a)(l=t[a])&&c.get(g[a])===l&&(n[a]=l)}function E7e(e){return e.__data__}function P7e(e,t){if(!arguments.length)return Array.from(this,E7e);var r=t?x7e:S7e,s=this._parents,n=this._groups;typeof e!="function"&&(e=b7e(e));for(var i=n.length,o=new Array(i),a=new Array(i),l=new Array(i),c=0;c<i;++c){var u=s[c],d=n[c],g=d.length,A=F7e(e.call(u,u&&u.__data__,c,s)),w=A.length,v=a[c]=new Array(w),b=o[c]=new Array(w),S=l[c]=new Array(g);r(u,d,v,b,S,A,t);for(var P=0,F=0,T,D;P<w;++P)if(T=v[P]){for(P>=F&&(F=P+1);!(D=b[F])&&++F<w;);T._next=D||null}}return o=new ld(o,s),o._enter=a,o._exit=l,o}function F7e(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function R7e(){return new ld(this._exit||this._groups.map(Q$),this._parents)}function T7e(e,t,r){var s=this.enter(),n=this,i=this.exit();return typeof e=="function"?(s=e(s),s&&(s=s.selection())):s=s.append(e+""),t!=null&&(n=t(n),n&&(n=n.selection())),r==null?i.remove():r(i),s&&n?s.merge(n).order():n}function D7e(e){for(var t=e.selection?e.selection():e,r=this._groups,s=t._groups,n=r.length,i=s.length,o=Math.min(n,i),a=new Array(n),l=0;l<o;++l)for(var c=r[l],u=s[l],d=c.length,g=a[l]=new Array(d),A,w=0;w<d;++w)(A=c[w]||u[w])&&(g[w]=A);for(;l<n;++l)a[l]=r[l];return new ld(a,this._parents)}function M7e(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var s=e[t],n=s.length-1,i=s[n],o;--n>=0;)(o=s[n])&&(i&&o.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(o,i),i=o);return this}function I7e(e){e||(e=k7e);function t(d,g){return d&&g?e(d.__data__,g.__data__):!d-!g}for(var r=this._groups,s=r.length,n=new Array(s),i=0;i<s;++i){for(var o=r[i],a=o.length,l=n[i]=new Array(a),c,u=0;u<a;++u)(c=o[u])&&(l[u]=c);l.sort(t)}return new ld(n,this._parents).order()}function k7e(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function B7e(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function L7e(){return Array.from(this)}function H7e(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var s=e[t],n=0,i=s.length;n<i;++n){var o=s[n];if(o)return o}return null}function G7e(){let e=0;for(const t of this)++e;return e}function O7e(){return!this.node()}function N7e(e){for(var t=this._groups,r=0,s=t.length;r<s;++r)for(var n=t[r],i=0,o=n.length,a;i<o;++i)(a=n[i])&&e.call(a,a.__data__,i,n);return this}function _7e(e){return function(){this.removeAttribute(e)}}function V7e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function z7e(e,t){return function(){this.setAttribute(e,t)}}function Q7e(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function U7e(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function W7e(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function j7e(e,t){var r=bT(e);if(arguments.length<2){var s=this.node();return r.local?s.getAttributeNS(r.space,r.local):s.getAttribute(r)}return this.each((t==null?r.local?V7e:_7e:typeof t=="function"?r.local?W7e:U7e:r.local?Q7e:z7e)(r,t))}function U$(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function K7e(e){return function(){this.style.removeProperty(e)}}function Y7e(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Z7e(e,t,r){return function(){var s=t.apply(this,arguments);s==null?this.style.removeProperty(e):this.style.setProperty(e,s,r)}}function X7e(e,t,r){return arguments.length>1?this.each((t==null?K7e:typeof t=="function"?Z7e:Y7e)(e,t,r??"")):Dw(this.node(),e)}function Dw(e,t){return e.style.getPropertyValue(t)||U$(e).getComputedStyle(e,null).getPropertyValue(t)}function $7e(e){return function(){delete this[e]}}function J7e(e,t){return function(){this[e]=t}}function q7e(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function eLe(e,t){return arguments.length>1?this.each((t==null?$7e:typeof t=="function"?q7e:J7e)(e,t)):this.node()[e]}function W$(e){return e.trim().split(/^|\s+/)}function w5(e){return e.classList||new j$(e)}function j$(e){this._node=e,this._names=W$(e.getAttribute("class")||"")}j$.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function K$(e,t){for(var r=w5(e),s=-1,n=t.length;++s<n;)r.add(t[s])}function Y$(e,t){for(var r=w5(e),s=-1,n=t.length;++s<n;)r.remove(t[s])}function tLe(e){return function(){K$(this,e)}}function rLe(e){return function(){Y$(this,e)}}function sLe(e,t){return function(){(t.apply(this,arguments)?K$:Y$)(this,e)}}function nLe(e,t){var r=W$(e+"");if(arguments.length<2){for(var s=w5(this.node()),n=-1,i=r.length;++n<i;)if(!s.contains(r[n]))return!1;return!0}return this.each((typeof t=="function"?sLe:t?tLe:rLe)(r,t))}function iLe(){this.textContent=""}function oLe(e){return function(){this.textContent=e}}function aLe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function lLe(e){return arguments.length?this.each(e==null?iLe:(typeof e=="function"?aLe:oLe)(e)):this.node().textContent}function cLe(){this.innerHTML=""}function uLe(e){return function(){this.innerHTML=e}}function dLe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function hLe(e){return arguments.length?this.each(e==null?cLe:(typeof e=="function"?dLe:uLe)(e)):this.node().innerHTML}function pLe(){this.nextSibling&&this.parentNode.appendChild(this)}function gLe(){return this.each(pLe)}function fLe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ALe(){return this.each(fLe)}function mLe(e){var t=typeof e=="function"?e:N$(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function vLe(){return null}function CLe(e,t){var r=typeof e=="function"?e:N$(e),s=t==null?vLe:typeof t=="function"?t:C5(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),s.apply(this,arguments)||null)})}function wLe(){var e=this.parentNode;e&&e.removeChild(this)}function yLe(){return this.each(wLe)}function bLe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function SLe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function xLe(e){return this.select(e?SLe:bLe)}function ELe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function PLe(e){return function(t){e.call(this,t,this.__data__)}}function FLe(e){return e.trim().split(/^|\s+/).map(function(t){var r="",s=t.indexOf(".");return s>=0&&(r=t.slice(s+1),t=t.slice(0,s)),{type:t,name:r}})}function RLe(e){return function(){var t=this.__on;if(t){for(var r=0,s=-1,n=t.length,i;r<n;++r)i=t[r],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):t[++s]=i;++s?t.length=s:delete this.__on}}}function TLe(e,t,r){return function(){var s=this.__on,n,i=PLe(t);if(s){for(var o=0,a=s.length;o<a;++o)if((n=s[o]).type===e.type&&n.name===e.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=i,n.options=r),n.value=t;return}}this.addEventListener(e.type,i,r),n={type:e.type,name:e.name,value:t,listener:i,options:r},s?s.push(n):this.__on=[n]}}function DLe(e,t,r){var s=FLe(e+""),n,i=s.length,o;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,u;l<c;++l)for(n=0,u=a[l];n<i;++n)if((o=s[n]).type===u.type&&o.name===u.name)return u.value}return}for(a=t?TLe:RLe,n=0;n<i;++n)this.each(a(s[n],t,r));return this}function Z$(e,t,r){var s=U$(e),n=s.CustomEvent;typeof n=="function"?n=new n(t,r):(n=s.document.createEvent("Event"),r?(n.initEvent(t,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(t,!1,!1)),e.dispatchEvent(n)}function MLe(e,t){return function(){return Z$(this,e,t)}}function ILe(e,t){return function(){return Z$(this,e,t.apply(this,arguments))}}function kLe(e,t){return this.each((typeof t=="function"?ILe:MLe)(e,t))}function*BLe(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var s=e[t],n=0,i=s.length,o;n<i;++n)(o=s[n])&&(yield o)}var LLe=[null];function ld(e,t){this._groups=e,this._parents=t}function t3(){return new ld([[document.documentElement]],LLe)}function HLe(){return this}ld.prototype=t3.prototype={constructor:ld,select:a7e,selectAll:d7e,selectChild:f7e,selectChildren:C7e,filter:w7e,data:P7e,enter:y7e,exit:R7e,join:T7e,merge:D7e,selection:HLe,order:M7e,sort:I7e,call:B7e,nodes:L7e,node:H7e,size:G7e,empty:O7e,each:N7e,attr:j7e,style:X7e,property:eLe,classed:nLe,text:lLe,html:hLe,raise:gLe,lower:ALe,append:mLe,insert:CLe,remove:yLe,clone:xLe,datum:ELe,on:DLe,dispatch:kLe,[Symbol.iterator]:BLe};function y5(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function X$(e,t){var r=Object.create(e.prototype);for(var s in t)r[s]=t[s];return r}function r3(){}var sx=.7,WF=1/sx,nw="\\s*([+-]?\\d+)\\s*",nx="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ih="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",GLe=/^#([0-9a-f]{3,8})$/,OLe=new RegExp(`^rgb\\(${nw},${nw},${nw}\\)$`),NLe=new RegExp(`^rgb\\(${Ih},${Ih},${Ih}\\)$`),_Le=new RegExp(`^rgba\\(${nw},${nw},${nw},${nx}\\)$`),VLe=new RegExp(`^rgba\\(${Ih},${Ih},${Ih},${nx}\\)$`),zLe=new RegExp(`^hsl\\(${nx},${Ih},${Ih}\\)$`),QLe=new RegExp(`^hsla\\(${nx},${Ih},${Ih},${nx}\\)$`),iO={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};y5(r3,ix,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:oO,formatHex:oO,formatHex8:ULe,formatHsl:WLe,formatRgb:aO,toString:aO});function oO(){return this.rgb().formatHex()}function ULe(){return this.rgb().formatHex8()}function WLe(){return $$(this).formatHsl()}function aO(){return this.rgb().formatRgb()}function ix(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=GLe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?lO(t):r===3?new sl(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?tP(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?tP(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=OLe.exec(e))?new sl(t[1],t[2],t[3],1):(t=NLe.exec(e))?new sl(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=_Le.exec(e))?tP(t[1],t[2],t[3],t[4]):(t=VLe.exec(e))?tP(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=zLe.exec(e))?dO(t[1],t[2]/100,t[3]/100,1):(t=QLe.exec(e))?dO(t[1],t[2]/100,t[3]/100,t[4]):iO.hasOwnProperty(e)?lO(iO[e]):e==="transparent"?new sl(NaN,NaN,NaN,0):null}function lO(e){return new sl(e>>16&255,e>>8&255,e&255,1)}function tP(e,t,r,s){return s<=0&&(e=t=r=NaN),new sl(e,t,r,s)}function jLe(e){return e instanceof r3||(e=ix(e)),e?(e=e.rgb(),new sl(e.r,e.g,e.b,e.opacity)):new sl}function iB(e,t,r,s){return arguments.length===1?jLe(e):new sl(e,t,r,s??1)}function sl(e,t,r,s){this.r=+e,this.g=+t,this.b=+r,this.opacity=+s}y5(sl,iB,X$(r3,{brighter(e){return e=e==null?WF:Math.pow(WF,e),new sl(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?sx:Math.pow(sx,e),new sl(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new sl(dv(this.r),dv(this.g),dv(this.b),jF(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cO,formatHex:cO,formatHex8:KLe,formatRgb:uO,toString:uO}));function cO(){return`#${Xm(this.r)}${Xm(this.g)}${Xm(this.b)}`}function KLe(){return`#${Xm(this.r)}${Xm(this.g)}${Xm(this.b)}${Xm((isNaN(this.opacity)?1:this.opacity)*255)}`}function uO(){const e=jF(this.opacity);return`${e===1?"rgb(":"rgba("}${dv(this.r)}, ${dv(this.g)}, ${dv(this.b)}${e===1?")":`, ${e})`}`}function jF(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function dv(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xm(e){return e=dv(e),(e<16?"0":"")+e.toString(16)}function dO(e,t,r,s){return s<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Nu(e,t,r,s)}function $$(e){if(e instanceof Nu)return new Nu(e.h,e.s,e.l,e.opacity);if(e instanceof r3||(e=ix(e)),!e)return new Nu;if(e instanceof Nu)return e;e=e.rgb();var t=e.r/255,r=e.g/255,s=e.b/255,n=Math.min(t,r,s),i=Math.max(t,r,s),o=NaN,a=i-n,l=(i+n)/2;return a?(t===i?o=(r-s)/a+(r<s)*6:r===i?o=(s-t)/a+2:o=(t-r)/a+4,a/=l<.5?i+n:2-i-n,o*=60):a=l>0&&l<1?0:o,new Nu(o,a,l,e.opacity)}function YLe(e,t,r,s){return arguments.length===1?$$(e):new Nu(e,t,r,s??1)}function Nu(e,t,r,s){this.h=+e,this.s=+t,this.l=+r,this.opacity=+s}y5(Nu,YLe,X$(r3,{brighter(e){return e=e==null?WF:Math.pow(WF,e),new Nu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?sx:Math.pow(sx,e),new Nu(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,s=r+(r<.5?r:1-r)*t,n=2*r-s;return new sl(p4(e>=240?e-240:e+120,n,s),p4(e,n,s),p4(e<120?e+240:e-120,n,s),this.opacity)},clamp(){return new Nu(hO(this.h),rP(this.s),rP(this.l),jF(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=jF(this.opacity);return`${e===1?"hsl(":"hsla("}${hO(this.h)}, ${rP(this.s)*100}%, ${rP(this.l)*100}%${e===1?")":`, ${e})`}`}}));function hO(e){return e=(e||0)%360,e<0?e+360:e}function rP(e){return Math.max(0,Math.min(1,e||0))}function p4(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const J$=e=>()=>e;function ZLe(e,t){return function(r){return e+r*t}}function XLe(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(s){return Math.pow(e+s*t,r)}}function $Le(e){return(e=+e)==1?q$:function(t,r){return r-t?XLe(t,r,e):J$(isNaN(t)?r:t)}}function q$(e,t){var r=t-e;return r?ZLe(e,r):J$(isNaN(e)?t:e)}const pO=function e(t){var r=$Le(t);function s(n,i){var o=r((n=iB(n)).r,(i=iB(i)).r),a=r(n.g,i.g),l=r(n.b,i.b),c=q$(n.opacity,i.opacity);return function(u){return n.r=o(u),n.g=a(u),n.b=l(u),n.opacity=c(u),n+""}}return s.gamma=e,s}(1);function Uf(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var oB=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,g4=new RegExp(oB.source,"g");function JLe(e){return function(){return e}}function qLe(e){return function(t){return e(t)+""}}function e5e(e,t){var r=oB.lastIndex=g4.lastIndex=0,s,n,i,o=-1,a=[],l=[];for(e=e+"",t=t+"";(s=oB.exec(e))&&(n=g4.exec(t));)(i=n.index)>r&&(i=t.slice(r,i),a[o]?a[o]+=i:a[++o]=i),(s=s[0])===(n=n[0])?a[o]?a[o]+=n:a[++o]=n:(a[++o]=null,l.push({i:o,x:Uf(s,n)})),r=g4.lastIndex;return r<t.length&&(i=t.slice(r),a[o]?a[o]+=i:a[++o]=i),a.length<2?l[0]?qLe(l[0].x):JLe(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)a[(d=l[u]).i]=d.x(c);return a.join("")})}var gO=180/Math.PI,eJ={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tJ(e,t,r,s,n,i){var o,a,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*s)&&(r-=e*l,s-=t*l),(a=Math.sqrt(r*r+s*s))&&(r/=a,s/=a,l/=a),e*s<t*r&&(e=-e,t=-t,l=-l,o=-o),{translateX:n,translateY:i,rotate:Math.atan2(t,e)*gO,skewX:Math.atan(l)*gO,scaleX:o,scaleY:a}}var sP;function t5e(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?eJ:tJ(t.a,t.b,t.c,t.d,t.e,t.f)}function r5e(e){return e==null||(sP||(sP=document.createElementNS("http://www.w3.org/2000/svg","g")),sP.setAttribute("transform",e),!(e=sP.transform.baseVal.consolidate()))?eJ:(e=e.matrix,tJ(e.a,e.b,e.c,e.d,e.e,e.f))}function rJ(e,t,r,s){function n(c){return c.length?c.pop()+" ":""}function i(c,u,d,g,A,w){if(c!==d||u!==g){var v=A.push("translate(",null,t,null,r);w.push({i:v-4,x:Uf(c,d)},{i:v-2,x:Uf(u,g)})}else(d||g)&&A.push("translate("+d+t+g+r)}function o(c,u,d,g){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),g.push({i:d.push(n(d)+"rotate(",null,s)-2,x:Uf(c,u)})):u&&d.push(n(d)+"rotate("+u+s)}function a(c,u,d,g){c!==u?g.push({i:d.push(n(d)+"skewX(",null,s)-2,x:Uf(c,u)}):u&&d.push(n(d)+"skewX("+u+s)}function l(c,u,d,g,A,w){if(c!==d||u!==g){var v=A.push(n(A)+"scale(",null,",",null,")");w.push({i:v-4,x:Uf(c,d)},{i:v-2,x:Uf(u,g)})}else(d!==1||g!==1)&&A.push(n(A)+"scale("+d+","+g+")")}return function(c,u){var d=[],g=[];return c=e(c),u=e(u),i(c.translateX,c.translateY,u.translateX,u.translateY,d,g),o(c.rotate,u.rotate,d,g),a(c.skewX,u.skewX,d,g),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,g),c=u=null,function(A){for(var w=-1,v=g.length,b;++w<v;)d[(b=g[w]).i]=b.x(A);return d.join("")}}}var s5e=rJ(t5e,"px, ","px)","deg)"),n5e=rJ(r5e,", ",")",")"),Mw=0,C1=0,Bb=0,sJ=1e3,KF,w1,YF=0,Tv=0,ST=0,ox=typeof performance=="object"&&performance.now?performance:Date,nJ=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function b5(){return Tv||(nJ(i5e),Tv=ox.now()+ST)}function i5e(){Tv=0}function ZF(){this._call=this._time=this._next=null}ZF.prototype=iJ.prototype={constructor:ZF,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?b5():+r)+(t==null?0:+t),!this._next&&w1!==this&&(w1?w1._next=this:KF=this,w1=this),this._call=e,this._time=r,aB()},stop:function(){this._call&&(this._call=null,this._time=1/0,aB())}};function iJ(e,t,r){var s=new ZF;return s.restart(e,t,r),s}function o5e(){b5(),++Mw;for(var e=KF,t;e;)(t=Tv-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Mw}function fO(){Tv=(YF=ox.now())+ST,Mw=C1=0;try{o5e()}finally{Mw=0,l5e(),Tv=0}}function a5e(){var e=ox.now(),t=e-YF;t>sJ&&(ST-=t,YF=e)}function l5e(){for(var e,t=KF,r,s=1/0;t;)t._call?(s>t._time&&(s=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:KF=r);w1=e,aB(s)}function aB(e){if(!Mw){C1&&(C1=clearTimeout(C1));var t=e-Tv;t>24?(e<1/0&&(C1=setTimeout(fO,e-ox.now()-ST)),Bb&&(Bb=clearInterval(Bb))):(Bb||(YF=ox.now(),Bb=setInterval(a5e,sJ)),Mw=1,nJ(fO))}}function AO(e,t,r){var s=new ZF;return t=t==null?0:+t,s.restart(n=>{s.stop(),e(n+t)},t,r),s}var c5e=O$("start","end","cancel","interrupt"),u5e=[],oJ=0,mO=1,lB=2,E2=3,vO=4,cB=5,P2=6;function xT(e,t,r,s,n,i){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;d5e(e,r,{name:t,index:s,group:n,on:c5e,tween:u5e,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:oJ})}function S5(e,t){var r=Ad(e,t);if(r.state>oJ)throw new Error("too late; already scheduled");return r}function Jh(e,t){var r=Ad(e,t);if(r.state>E2)throw new Error("too late; already running");return r}function Ad(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function d5e(e,t,r){var s=e.__transition,n;s[t]=r,r.timer=iJ(i,0,r.time);function i(c){r.state=mO,r.timer.restart(o,r.delay,r.time),r.delay<=c&&o(c-r.delay)}function o(c){var u,d,g,A;if(r.state!==mO)return l();for(u in s)if(A=s[u],A.name===r.name){if(A.state===E2)return AO(o);A.state===vO?(A.state=P2,A.timer.stop(),A.on.call("interrupt",e,e.__data__,A.index,A.group),delete s[u]):+u<t&&(A.state=P2,A.timer.stop(),A.on.call("cancel",e,e.__data__,A.index,A.group),delete s[u])}if(AO(function(){r.state===E2&&(r.state=vO,r.timer.restart(a,r.delay,r.time),a(c))}),r.state=lB,r.on.call("start",e,e.__data__,r.index,r.group),r.state===lB){for(r.state=E2,n=new Array(g=r.tween.length),u=0,d=-1;u<g;++u)(A=r.tween[u].value.call(e,e.__data__,r.index,r.group))&&(n[++d]=A);n.length=d+1}}function a(c){for(var u=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(l),r.state=cB,1),d=-1,g=n.length;++d<g;)n[d].call(e,u);r.state===cB&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=P2,r.timer.stop(),delete s[t];for(var c in s)return;delete e.__transition}}function h5e(e,t){var r=e.__transition,s,n,i=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((s=r[o]).name!==t){i=!1;continue}n=s.state>lB&&s.state<cB,s.state=P2,s.timer.stop(),s.on.call(n?"interrupt":"cancel",e,e.__data__,s.index,s.group),delete r[o]}i&&delete e.__transition}}function p5e(e){return this.each(function(){h5e(this,e)})}function g5e(e,t){var r,s;return function(){var n=Jh(this,e),i=n.tween;if(i!==r){s=r=i;for(var o=0,a=s.length;o<a;++o)if(s[o].name===t){s=s.slice(),s.splice(o,1);break}}n.tween=s}}function f5e(e,t,r){var s,n;if(typeof r!="function")throw new Error;return function(){var i=Jh(this,e),o=i.tween;if(o!==s){n=(s=o).slice();for(var a={name:t,value:r},l=0,c=n.length;l<c;++l)if(n[l].name===t){n[l]=a;break}l===c&&n.push(a)}i.tween=n}}function A5e(e,t){var r=this._id;if(e+="",arguments.length<2){for(var s=Ad(this.node(),r).tween,n=0,i=s.length,o;n<i;++n)if((o=s[n]).name===e)return o.value;return null}return this.each((t==null?g5e:f5e)(r,e,t))}function x5(e,t,r){var s=e._id;return e.each(function(){var n=Jh(this,s);(n.value||(n.value={}))[t]=r.apply(this,arguments)}),function(n){return Ad(n,s).value[t]}}function aJ(e,t){var r;return(typeof t=="number"?Uf:t instanceof ix?pO:(r=ix(t))?(t=r,pO):e5e)(e,t)}function m5e(e){return function(){this.removeAttribute(e)}}function v5e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function C5e(e,t,r){var s,n=r+"",i;return function(){var o=this.getAttribute(e);return o===n?null:o===s?i:i=t(s=o,r)}}function w5e(e,t,r){var s,n=r+"",i;return function(){var o=this.getAttributeNS(e.space,e.local);return o===n?null:o===s?i:i=t(s=o,r)}}function y5e(e,t,r){var s,n,i;return function(){var o,a=r(this),l;return a==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=a+"",o===l?null:o===s&&l===n?i:(n=l,i=t(s=o,a)))}}function b5e(e,t,r){var s,n,i;return function(){var o,a=r(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=a+"",o===l?null:o===s&&l===n?i:(n=l,i=t(s=o,a)))}}function S5e(e,t){var r=bT(e),s=r==="transform"?n5e:aJ;return this.attrTween(e,typeof t=="function"?(r.local?b5e:y5e)(r,s,x5(this,"attr."+e,t)):t==null?(r.local?v5e:m5e)(r):(r.local?w5e:C5e)(r,s,t))}function x5e(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function E5e(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function P5e(e,t){var r,s;function n(){var i=t.apply(this,arguments);return i!==s&&(r=(s=i)&&E5e(e,i)),r}return n._value=t,n}function F5e(e,t){var r,s;function n(){var i=t.apply(this,arguments);return i!==s&&(r=(s=i)&&x5e(e,i)),r}return n._value=t,n}function R5e(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var s=bT(e);return this.tween(r,(s.local?P5e:F5e)(s,t))}function T5e(e,t){return function(){S5(this,e).delay=+t.apply(this,arguments)}}function D5e(e,t){return t=+t,function(){S5(this,e).delay=t}}function M5e(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?T5e:D5e)(t,e)):Ad(this.node(),t).delay}function I5e(e,t){return function(){Jh(this,e).duration=+t.apply(this,arguments)}}function k5e(e,t){return t=+t,function(){Jh(this,e).duration=t}}function B5e(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?I5e:k5e)(t,e)):Ad(this.node(),t).duration}function L5e(e,t){if(typeof t!="function")throw new Error;return function(){Jh(this,e).ease=t}}function H5e(e){var t=this._id;return arguments.length?this.each(L5e(t,e)):Ad(this.node(),t).ease}function G5e(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Jh(this,e).ease=r}}function O5e(e){if(typeof e!="function")throw new Error;return this.each(G5e(this._id,e))}function N5e(e){typeof e!="function"&&(e=V$(e));for(var t=this._groups,r=t.length,s=new Array(r),n=0;n<r;++n)for(var i=t[n],o=i.length,a=s[n]=[],l,c=0;c<o;++c)(l=i[c])&&e.call(l,l.__data__,c,i)&&a.push(l);return new vg(s,this._parents,this._name,this._id)}function _5e(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,s=t.length,n=r.length,i=Math.min(s,n),o=new Array(s),a=0;a<i;++a)for(var l=t[a],c=r[a],u=l.length,d=o[a]=new Array(u),g,A=0;A<u;++A)(g=l[A]||c[A])&&(d[A]=g);for(;a<s;++a)o[a]=t[a];return new vg(o,this._parents,this._name,this._id)}function V5e(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function z5e(e,t,r){var s,n,i=V5e(t)?S5:Jh;return function(){var o=i(this,e),a=o.on;a!==s&&(n=(s=a).copy()).on(t,r),o.on=n}}function Q5e(e,t){var r=this._id;return arguments.length<2?Ad(this.node(),r).on.on(e):this.each(z5e(r,e,t))}function U5e(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function W5e(){return this.on("end.remove",U5e(this._id))}function j5e(e){var t=this._name,r=this._id;typeof e!="function"&&(e=C5(e));for(var s=this._groups,n=s.length,i=new Array(n),o=0;o<n;++o)for(var a=s[o],l=a.length,c=i[o]=new Array(l),u,d,g=0;g<l;++g)(u=a[g])&&(d=e.call(u,u.__data__,g,a))&&("__data__"in u&&(d.__data__=u.__data__),c[g]=d,xT(c[g],t,r,g,c,Ad(u,r)));return new vg(i,this._parents,t,r)}function K5e(e){var t=this._name,r=this._id;typeof e!="function"&&(e=_$(e));for(var s=this._groups,n=s.length,i=[],o=[],a=0;a<n;++a)for(var l=s[a],c=l.length,u,d=0;d<c;++d)if(u=l[d]){for(var g=e.call(u,u.__data__,d,l),A,w=Ad(u,r),v=0,b=g.length;v<b;++v)(A=g[v])&&xT(A,t,r,v,g,w);i.push(g),o.push(u)}return new vg(i,o,t,r)}var Y5e=t3.prototype.constructor;function Z5e(){return new Y5e(this._groups,this._parents)}function X5e(e,t){var r,s,n;return function(){var i=Dw(this,e),o=(this.style.removeProperty(e),Dw(this,e));return i===o?null:i===r&&o===s?n:n=t(r=i,s=o)}}function lJ(e){return function(){this.style.removeProperty(e)}}function $5e(e,t,r){var s,n=r+"",i;return function(){var o=Dw(this,e);return o===n?null:o===s?i:i=t(s=o,r)}}function J5e(e,t,r){var s,n,i;return function(){var o=Dw(this,e),a=r(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),Dw(this,e))),o===l?null:o===s&&l===n?i:(n=l,i=t(s=o,a))}}function q5e(e,t){var r,s,n,i="style."+t,o="end."+i,a;return function(){var l=Jh(this,e),c=l.on,u=l.value[i]==null?a||(a=lJ(t)):void 0;(c!==r||n!==u)&&(s=(r=c).copy()).on(o,n=u),l.on=s}}function e6e(e,t,r){var s=(e+="")=="transform"?s5e:aJ;return t==null?this.styleTween(e,X5e(e,s)).on("end.style."+e,lJ(e)):typeof t=="function"?this.styleTween(e,J5e(e,s,x5(this,"style."+e,t))).each(q5e(this._id,e)):this.styleTween(e,$5e(e,s,t),r).on("end.style."+e,null)}function t6e(e,t,r){return function(s){this.style.setProperty(e,t.call(this,s),r)}}function r6e(e,t,r){var s,n;function i(){var o=t.apply(this,arguments);return o!==n&&(s=(n=o)&&t6e(e,o,r)),s}return i._value=t,i}function s6e(e,t,r){var s="style."+(e+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(t==null)return this.tween(s,null);if(typeof t!="function")throw new Error;return this.tween(s,r6e(e,t,r??""))}function n6e(e){return function(){this.textContent=e}}function i6e(e){return function(){var t=e(this);this.textContent=t??""}}function o6e(e){return this.tween("text",typeof e=="function"?i6e(x5(this,"text",e)):n6e(e==null?"":e+""))}function a6e(e){return function(t){this.textContent=e.call(this,t)}}function l6e(e){var t,r;function s(){var n=e.apply(this,arguments);return n!==r&&(t=(r=n)&&a6e(n)),t}return s._value=e,s}function c6e(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,l6e(e))}function u6e(){for(var e=this._name,t=this._id,r=cJ(),s=this._groups,n=s.length,i=0;i<n;++i)for(var o=s[i],a=o.length,l,c=0;c<a;++c)if(l=o[c]){var u=Ad(l,t);xT(l,e,r,c,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new vg(s,this._parents,e,r)}function d6e(){var e,t,r=this,s=r._id,n=r.size();return new Promise(function(i,o){var a={value:o},l={value:function(){--n===0&&i()}};r.each(function(){var c=Jh(this,s),u=c.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),c.on=t}),n===0&&i()})}var h6e=0;function vg(e,t,r,s){this._groups=e,this._parents=t,this._name=r,this._id=s}function cJ(){return++h6e}var _p=t3.prototype;vg.prototype={constructor:vg,select:j5e,selectAll:K5e,selectChild:_p.selectChild,selectChildren:_p.selectChildren,filter:N5e,merge:_5e,selection:Z5e,transition:u6e,call:_p.call,nodes:_p.nodes,node:_p.node,size:_p.size,empty:_p.empty,each:_p.each,on:Q5e,attr:S5e,attrTween:R5e,style:e6e,styleTween:s6e,text:o6e,textTween:c6e,remove:W5e,tween:A5e,delay:M5e,duration:B5e,ease:H5e,easeVarying:O5e,end:d6e,[Symbol.iterator]:_p[Symbol.iterator]};function p6e(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var g6e={time:null,delay:0,duration:250,ease:p6e};function f6e(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function A6e(e){var t,r;e instanceof vg?(t=e._id,e=e._name):(t=cJ(),(r=g6e).time=b5(),e=e==null?null:e+"");for(var s=this._groups,n=s.length,i=0;i<n;++i)for(var o=s[i],a=o.length,l,c=0;c<a;++c)(l=o[c])&&xT(l,e,t,c,o,r||f6e(l,t));return new vg(s,this._parents,e,t)}t3.prototype.interrupt=p5e;t3.prototype.transition=A6e;function m6e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function XF(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,s=e.slice(0,r);return[s.length>1?s[0]+s.slice(2):s,+e.slice(r+1)]}function v6e(e){return e=XF(Math.abs(e)),e?e[1]:NaN}function C6e(e,t){return function(r,s){for(var n=r.length,i=[],o=0,a=e[0],l=0;n>0&&a>0&&(l+a+1>s&&(a=Math.max(1,s-l)),i.push(r.substring(n-=a,n+a)),!((l+=a+1)>s));)a=e[o=(o+1)%e.length];return i.reverse().join(t)}}function w6e(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var y6e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function uB(e){if(!(t=y6e.exec(e)))throw new Error("invalid format: "+e);var t;return new E5({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}uB.prototype=E5.prototype;function E5(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}E5.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function b6e(e){e:for(var t=e.length,r=1,s=-1,n;r<t;++r)switch(e[r]){case".":s=n=r;break;case"0":s===0&&(s=r),n=r;break;default:if(!+e[r])break e;s>0&&(s=0);break}return s>0?e.slice(0,s)+e.slice(n+1):e}var uJ;function S6e(e,t){var r=XF(e,t);if(!r)return e+"";var s=r[0],n=r[1],i=n-(uJ=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1,o=s.length;return i===o?s:i>o?s+new Array(i-o+1).join("0"):i>0?s.slice(0,i)+"."+s.slice(i):"0."+new Array(1-i).join("0")+XF(e,Math.max(0,t+i-1))[0]}function CO(e,t){var r=XF(e,t);if(!r)return e+"";var s=r[0],n=r[1];return n<0?"0."+new Array(-n).join("0")+s:s.length>n+1?s.slice(0,n+1)+"."+s.slice(n+1):s+new Array(n-s.length+2).join("0")}const wO={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:m6e,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>CO(e*100,t),r:CO,s:S6e,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function yO(e){return e}var bO=Array.prototype.map,SO=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function x6e(e){var t=e.grouping===void 0||e.thousands===void 0?yO:C6e(bO.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",s=e.currency===void 0?"":e.currency[1]+"",n=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?yO:w6e(bO.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=uB(d);var g=d.fill,A=d.align,w=d.sign,v=d.symbol,b=d.zero,S=d.width,P=d.comma,F=d.precision,T=d.trim,D=d.type;D==="n"?(P=!0,D="g"):wO[D]||(F===void 0&&(F=12),T=!0,D="g"),(b||g==="0"&&A==="=")&&(b=!0,g="0",A="=");var B=v==="$"?r:v==="#"&&/[boxX]/.test(D)?"0"+D.toLowerCase():"",k=v==="$"?s:/[%p]/.test(D)?o:"",z=wO[D],O=/[defgprs%]/.test(D);F=F===void 0?6:/[gprs]/.test(D)?Math.max(1,Math.min(21,F)):Math.max(0,Math.min(20,F));function j(_){var G=B,N=k,W,V,q;if(D==="c")N=z(_)+N,_="";else{_=+_;var pe=_<0||1/_<0;if(_=isNaN(_)?l:z(Math.abs(_),F),T&&(_=b6e(_)),pe&&+_==0&&w!=="+"&&(pe=!1),G=(pe?w==="("?w:a:w==="-"||w==="("?"":w)+G,N=(D==="s"?SO[8+uJ/3]:"")+N+(pe&&w==="("?")":""),O){for(W=-1,V=_.length;++W<V;)if(q=_.charCodeAt(W),48>q||q>57){N=(q===46?n+_.slice(W+1):_.slice(W))+N,_=_.slice(0,W);break}}}P&&!b&&(_=t(_,1/0));var X=G.length+_.length+N.length,re=X<S?new Array(S-X+1).join(g):"";switch(P&&b&&(_=t(re+_,re.length?S-N.length:1/0),re=""),A){case"<":_=G+_+N+re;break;case"=":_=G+re+_+N;break;case"^":_=re.slice(0,X=re.length>>1)+G+_+N+re.slice(X);break;default:_=re+G+_+N;break}return i(_)}return j.toString=function(){return d+""},j}function u(d,g){var A=c((d=uB(d),d.type="f",d)),w=Math.max(-8,Math.min(8,Math.floor(v6e(g)/3)))*3,v=Math.pow(10,-w),b=SO[8+w/3];return function(S){return A(v*S)+b}}return{format:c,formatPrefix:u}}var nP;E6e({thousands:",",grouping:[3],currency:["$",""]});function E6e(e){return nP=x6e(e),nP.format,nP.formatPrefix,nP}function y1(e,t,r){this.k=e,this.x=t,this.y=r}y1.prototype={constructor:y1,scale:function(e){return e===1?this:new y1(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new y1(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};y1.prototype;const P6e={class:"block__not-found"},F6e=Tr({__name:"NotFound",setup(e){const t=h5().useApp(),r=()=>{t.updateNavigationState(s=>{s.href="/"})};return(s,n)=>(ye(),je("div",P6e,[We("h1",null,"Not found route: "+Zt(Pe(t).snapshot.navigationState.href),1),zt(Pe(u$),{onClick:Nn(r,["stop"])},{default:er(()=>n[0]||(n[0]=[Ne("Return to main page")])),_:1})]))}}),s3=(e,t)=>{const r=e.__vccOpts||e;for(const[s,n]of t)r[s]=n;return r},R6e={},T6e={class:"block__loader-page"};function D6e(e,t){return ye(),je("div",T6e,t[0]||(t[0]=[We("div",{class:"loader-container"},[We("i",{class:"mask-24 mask-loading loader-icon"})],-1)]))}const M6e=s3(R6e,[["render",D6e]]),I6e={class:"pl-app-notification-alert"},k6e={class:"pl-app-notification-alert__content"},B6e={class:"pl-app-notification-alert__title"},L6e=Tr({__name:"PlAppErrorNotificationAlert",props:{errors:{}},setup(e){const t=e,r=br(!1),s=br(!0),n=Je(()=>Object.entries(t.errors).filter(o=>!!o[1]));function i(){r.value=!0}return tn(()=>t.errors,o=>{s.value=Object.values(o).some(a=>!!a)},{immediate:!0,deep:!0}),(o,a)=>(ye(),je("div",I6e,[zt(Pe(f$),{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=l=>r.value=l),width:"720px",style:{"max-height":"100vh"}},{title:er(()=>a[2]||(a[2]=[Ne(" Errors ")])),default:er(()=>[We("div",k6e,[(ye(!0),je(_s,null,Fh(n.value,l=>{var c,u;return ye(),je("div",{key:l[0],class:"pl-app-notification-alert__item"},[We("div",B6e,"Block output: "+Zt(l[0]),1),zt(Pe(oBe),{value:(c=l[1])==null?void 0:c.message,valueToCopy:"fullMessage"in(l[1]??{})?l[1].fullMessage:(u=l[1])==null?void 0:u.message},null,8,["value","valueToCopy"])])}),128))])]),_:1},8,["modelValue"]),zt(Pe($Be),{modelValue:s.value,"onUpdate:modelValue":a[1]||(a[1]=l=>s.value=l),type:"error",closable:""},{actions:er(()=>[zt(Pe(kF),{icon:"arrow-right",onClick:i},{default:er(()=>a[3]||(a[3]=[Ne("See errors")])),_:1}),zt(Pe(cMe))]),default:er(()=>[a[4]||(a[4]=Ne(" Some outputs have errors. "))]),_:1},8,["modelValue"])]))}}),H6e={key:0,class:"block__loader"},G6e=Tr({__name:"BlockLoader",props:{value:{type:[Boolean,Number]}},setup(e){const t=e,r=Je(()=>typeof t.value=="boolean"&&t.value),s=Je(()=>{const n=t.value;if(typeof n=="number")return n>=1?void 0:(n*100).toFixed(2)+"%"});return(n,i)=>r.value?(ye(),je("div",H6e)):s.value!==void 0?(ye(),je("div",{key:1,class:"block__progress",style:oo({"--progress-width":s.value})},null,4)):yt("",!0)}});function O6e(e){const t=br(),r=".pl-block-page__title__append",s=()=>{HR(()=>{if(!e.value){t.value=void 0;return}t.value=document.querySelector(r)?r:void 0,t.value||console.error("[Monetization] use #title slot to place monetization button")})};return Yh(s),L7(s),t}const N6e=y.literal("trial"),_6e=y.literal("free"),V6e=y.literal("single_payment"),z6e=y.literal("subscription"),Q6e=y.union([N6e,_6e,V6e,z6e,y.literal("base")]),U6e=y.object({type:y.union([y.literal("unique_launches"),y.literal("volume_limit")]),used:y.number(),toSpend:y.number(),available:y.number().nullable()}),W6e=y.object({productKey:y.string(),productName:y.string().default("Unknown product"),customerEmail:y.string().optional(),canRun:y.boolean(),status:y.string(),mnz:y.object({type:Q6e.optional(),endOfBillingPeriod:y.string().nullable().optional(),limits:y.array(U6e).optional()})},{message:"Invalid DryRunResult"}),j6e=y.object({httpError:y.string().optional(),response:y.object({result:W6e.optional(),error:y.unknown().optional()}).optional()}).optional();function K6e(){const e=h5(),t=Je(()=>e.loaded?e.useApp():void 0),r=Je(()=>{var b,S;return"__mnzDate"in((S=(b=t.value)==null?void 0:b.model)==null?void 0:S.args)}),s=Je(()=>{var b;return j6e.safeParse((b=t.value)==null?void 0:b.model.outputs.__mnzInfo)}),n=Je(()=>{var b;return(b=s.value)==null?void 0:b.data}),i=Je(()=>{var b,S,P;return((b=s.value)==null?void 0:b.error)??((P=(S=o.value)==null?void 0:S.response)==null?void 0:P.error)}),o=br(void 0),a=br(!1),l=br(0);tn([n],([b])=>{if(b){o.value=b;const S=++l.value;setTimeout(()=>{l.value===S&&(a.value=!1)},1e3)}},{immediate:!0});const c=Je(()=>{var b,S;return(S=(b=o.value)==null?void 0:b.response)==null?void 0:S.result}),u=Je(()=>{var b;return!!((b=c.value)!=null&&b.canRun)}),d=Je(()=>{var b;return n.value?(b=c.value)==null?void 0:b.status:"awaiting"}),g=Je(()=>{var b;return(b=c.value)==null?void 0:b.customerEmail}),A=Je(()=>{var b;return(b=c.value)==null?void 0:b.mnz.endOfBillingPeriod}),w=Je(()=>{var b;return(b=c.value)==null?void 0:b.mnz.limits}),v=()=>{var b;a.value=!0,((b=t.value)==null?void 0:b.model.args).__mnzDate=new Date().toISOString()};return tn(u,b=>{var S;r.value&&(((S=t.value)==null?void 0:S.model.args).__mnzCanRun=b)}),r.value&&yDe(v,6e4),{hasMonetization:r,result:c,error:i,canRun:u,status:d,customerEmail:g,endOfBillingPeriod:A,limits:w,refresh:v,version:l,isLoading:a}}const Y6e=["title"],Z6e=Tr({__name:"UserCabinetCard",props:{userCabinetUrl:{}},setup(e){const t=e,r=br(""),s=Je(()=>r.value?"clipboard-copied":"clipboard"),n=()=>{t.userCabinetUrl&&navigator.clipboard.writeText(t.userCabinetUrl).then(()=>{r.value="URL copied!",setTimeout(()=>{r.value=""},2e3)}).catch(i=>{console.error("Failed to copy text: ",i),r.value="Copy failed",setTimeout(()=>{r.value=""},2e3)})};return(i,o)=>(ye(),je("div",null,[i.userCabinetUrl?(ye(),je("div",{key:0,class:St(i.$style.urlSection)},[We("div",{class:St(i.$style.urlLabel)},"Scientist cabinet URL:",2),We("div",{class:St(i.$style.urlActions)},[We("div",{class:St(i.$style.urlDisplay),title:i.userCabinetUrl},Zt(i.userCabinetUrl),11,Y6e),zt(Pe(_h),{"close-delay":800,position:"top"},{tooltip:er(()=>[Ne(Zt(r.value?r.value:"Copy"),1)]),default:er(()=>[zt(Pe(Vc),{class:St(i.$style.copyIcon),title:"Copy content",name:s.value,onClick:n},null,8,["class","name"])]),_:1})],2)],2)):yt("",!0),We("div",{class:St(i.$style.hint)}," * Copy and paste the link into your browser ",2)]))}}),X6e="_hint_1bvg8_2",$6e="_copyIcon_1bvg8_10",J6e="_urlSection_1bvg8_14",q6e="_urlLabel_1bvg8_23",e8e="_urlActions_1bvg8_28",t8e="_urlDisplay_1bvg8_35",r8e={hint:X6e,copyIcon:$6e,urlSection:J6e,urlLabel:q6e,urlActions:e8e,urlDisplay:t8e},s8e={$style:r8e},n8e=s3(Z6e,[["__cssModules",s8e]]),i8e=Tr({__name:"RunStatus",props:{canRun:{type:Boolean},statusText:{}},setup(e){const t=e;Je(()=>t.canRun?"Can run":"Cannot run: check your monetization settings");const r=Je(()=>t.canRun?"Ready to run":"Cannot run");return(s,n)=>(ye(),je("div",null,[We("div",{class:St([{[s.$style["can-run"]]:s.canRun},s.$style.container])},[We("div",{class:St(s.$style.badge)},[We("i",{class:St(s.$style.blob)},[We("span",null,[We("span",{class:St(s.$style.dot)},null,2)])],2),We("span",null,Zt(r.value),1)],2),yt("",!0),jr(s.$slots,"default")],2),s.statusText?(ye(),je("div",{key:0,class:St(s.$style.statusText)},Zt(s.statusText),3)):yt("",!0)]))}}),o8e="_container_s8cm3_2",a8e="_statusText_s8cm3_14",l8e="_badge_s8cm3_22",c8e="_blob_s8cm3_33",u8e="_dot_s8cm3_50",d8e={container:o8e,"can-run":"_can-run_s8cm3_8",statusText:a8e,badge:l8e,blob:c8e,"pulse-glob":"_pulse-glob_s8cm3_1",dot:u8e},h8e={$style:d8e},p8e=s3(i8e,[["__cssModules",h8e]]),g8e={key:0},f8e={key:1},A8e=Tr({__name:"LimitCard",props:{type:{},label:{},used:{},toSpend:{},available:{},unit:{}},setup(e){const t=e,r=Je(()=>t.available===null?0:t.toSpend/t.available*100),s=Je(()=>t.available===null?0:t.used/t.available*100),n=Je(()=>t.available===null?100:100-s.value-r.value),i=Je(()=>t.type==="unique_launches"?"Runs Limits":t.type==="volume_limit"?"Volume Limits":t.label),o=l=>(l/1024/1024/1024).toFixed(2)+" GB",a=l=>t.type==="volume_limit"?o(l):l;return(l,c)=>(ye(),je("div",{class:St(l.$style.container)},[We("span",{class:St(l.$style.label)},Zt(i.value),3),We("div",{class:St(l.$style.content)},[We("div",{class:St(l.$style.contentAvailable)},[c[0]||(c[0]=Ne(" Available: ")),c[1]||(c[1]=We("div",{style:{flex:"1"}},null,-1)),l.available!==null?(ye(),je("span",g8e,[We("strong",null,Zt(a(l.available)),1),Ne(" / "+Zt(a(l.available+l.toSpend+l.used)),1)])):(ye(),je("span",f8e,"Unlimited"))],2),We("div",{class:St(l.$style.progressBar)},[We("span",{class:St(l.$style.progressBarAvailable),style:oo({width:`${n.value}%`})},null,6),We("span",{class:St(l.$style.progressBarToSpend),style:oo({width:`${r.value}%`})},null,6),We("span",{class:St(l.$style.progressBarUsed),style:oo({width:`${s.value}%`})},null,6)],2),We("div",{class:St(l.$style.legends)},[We("div",{class:St(l.$style.usedLegend)},[c[2]||(c[2]=We("span",null,null,-1)),Ne(" Used: "+Zt(a(l.used)),1)],2),We("div",{class:St(l.$style.toSpendLegend)},[c[3]||(c[3]=We("span",null,null,-1)),Ne(" To spend: "+Zt(a(l.toSpend)),1)],2)],2)],2)],2))}}),m8e="_container_1qgbe_2",v8e="_label_1qgbe_16",C8e="_content_1qgbe_25",w8e="_contentAvailable_1qgbe_31",y8e="_progressBar_1qgbe_43",b8e="_progressBarAvailable_1qgbe_57",S8e="_progressBarUsed_1qgbe_62",x8e="_progressBarToSpend_1qgbe_67",E8e="_legends_1qgbe_72",P8e="_usedLegend_1qgbe_89",F8e="_toSpendLegend_1qgbe_98",R8e={container:m8e,label:v8e,content:C8e,contentAvailable:w8e,progressBar:y8e,progressBarAvailable:b8e,progressBarUsed:S8e,progressBarToSpend:x8e,legends:E8e,usedLegend:P8e,toSpendLegend:F8e},T8e={$style:R8e},D8e=s3(A8e,[["__cssModules",T8e]]),M8e=Tr({__name:"EndOfPeriod",props:{endOfPeriod:{}},setup(e){const t=r=>{if(!r)return"N/A";const s=new Date(r),n=s.getDate().toString().padStart(2,"0"),i=(s.getMonth()+1).toString().padStart(2,"0"),o=s.getFullYear();return`${n}.${i}.${o}`};return(r,s)=>(ye(),je("div",{class:St(r.$style.container)},[s[0]||(s[0]=We("span",null,"End of period",-1)),We("span",null,Zt(t(r.endOfPeriod)),1)],2))}}),I8e="_container_1vyu9_2",k8e={container:I8e},B8e={$style:k8e},L8e=s3(M8e,[["__cssModules",B8e]]),H8e=Tr({__name:"MonetizationSidebar",setup(e){const t=br(!1),{result:r,error:s,hasMonetization:n,canRun:i,status:o,customerEmail:a,endOfBillingPeriod:l,limits:c,refresh:u,isLoading:d}=K6e(),g=O6e(n),A=Je(()=>{var P;return(P=r.value)==null?void 0:P.productName}),w=Je(()=>{if(!r.value)return;const P=new URL(`https://scientist.platforma.bio/product/${r.value.productKey}`);return a.value&&P.searchParams.set("email",a.value),P.toString()}),v=Je(()=>r.value?[{label:r.value.productName,value:r.value.productName}]:[]),b=Je(()=>{switch(o.value){case"active":return"";case"limits_exceeded":return"Usage limits exceeded for the current billing period.";case"payment_required":return"Payment required to continue using the service.";case"select-tariff":return"Select a subscription plan in the Scientist Cabinet.";case"inactive":return"Not found billing period.";case"awaiting":return"Waiting for monetization information";default:return"Unknown status: "+o.value}}),S=Je(()=>i.value?"monetization-on":"monetization-off");return(P,F)=>(ye(),je(_s,null,[Pe(n)?(ye(),jt(Pe(kIe),{key:0,modelValue:t.value,"onUpdate:modelValue":F[0]||(F[0]=T=>t.value=T)},{title:er(()=>F[2]||(F[2]=[We("div",{class:"flex items-center gap-2"},[We("span",null,"Subscription")],-1)])),default:er(()=>[zt(Pe(g$),{label:"Product",readonly:"","model-value":A.value,options:v.value},null,8,["model-value","options"]),zt(p8e,{"can-run":Pe(i),"status-text":b.value},{default:er(()=>[zt(Pe(u$),{title:"Refresh status",round:"",size:"small",style:{"margin-left":"auto"},icon:"loading",loading:Pe(d),onClick:Pe(u)},null,8,["loading","onClick"])]),_:1},8,["can-run","status-text"]),Pe(s)?(ye(),jt(Pe(b2),{key:0,type:"error"},{default:er(()=>[Ne(Zt(Pe(s)),1)]),_:1})):yt("",!0),w.value?(ye(),jt(n8e,{key:1,"user-cabinet-url":w.value},null,8,["user-cabinet-url"])):yt("",!0),Pe(l)?(ye(),jt(L8e,{key:2,"end-of-period":Pe(l)},null,8,["end-of-period"])):yt("",!0),Pe(c)?(ye(!0),je(_s,{key:3},Fh(Pe(c),T=>(ye(),jt(D8e,{key:T.type,type:T.type,label:T.type,used:T.used,"to-spend":T.toSpend,available:T.available},null,8,["type","label","used","to-spend","available"]))),128)):yt("",!0)]),_:1},8,["modelValue"])):yt("",!0),Pe(n)&&Pe(g)?(ye(),jt(kx,{key:1,to:Pe(g)},[zt(Pe(g5),{onClick:F[1]||(F[1]=Nn(T=>t.value=!0,["stop"]))},{append:er(()=>[zt(Pe(m5),{name:S.value},null,8,["name"])]),default:er(()=>[F[3]||(F[3]=Ne(" Subscription "))]),_:1})],8,["to"])):yt("",!0)],64))}}),G8e={class:"block block__layout"},O8e={key:0},N8e=Tr({__name:"BlockLayout",setup(e){const t=h5(),r=c=>{try{return new URL(c,"http://dummy").pathname}catch{console.error("Invalid href",c);return}},s=Je(()=>t.loaded?t.useApp().href:void 0),n=Je(()=>{if(t.loaded){const c=t.useApp(),u=r(c.snapshot.navigationState.href);return u?c.getRoute(u):void 0}}),i=Je(()=>t.loaded?t.useApp():void 0),o=Je(()=>i.value?i.value.model.outputErrors:{}),a=Je(()=>{var c;return((c=i.value)==null?void 0:c.showErrorsNotification)??!0}),l=Je(()=>{var c,u;return(u=(c=i.value)==null?void 0:c.progress)==null?void 0:u.call(c)});return(c,u)=>(ye(),je(_s,null,[We("div",G8e,[zt(G6e,{value:l.value},null,8,["value"]),Pe(t).error?(ye(),je("div",O8e,Zt(Pe(t).error),1)):Pe(t).loaded?n.value?(ye(),jt(QU(n.value),{key:s.value})):(ye(),jt(F6e,{key:3})):(ye(),jt(M6e,{key:1},{default:er(()=>u[0]||(u[0]=[Ne("Loading...")])),_:1})),Pe(t).loaded&&a.value?(ye(),jt(Pe(L6e),{key:4,errors:o.value},null,8,["errors"])):yt("",!0)]),n.value?(ye(),jt(Pe(H8e),{key:0})):yt("",!0)],64))}});var $F={exports:{}};/**
704
704
  * @license
705
705
  * Lodash <https://lodash.com/>
@@ -726,7 +726,7 @@ __p += '`),as&&(lt+=`' +
726
726
  function print() { __p += __j.call(arguments, '') }
727
727
  `:`;
728
728
  `)+lt+`return __p
729
- }`;var Kr=c8(function(){return ps(ie,Yt+"return "+lt).apply(r,ge)});if(Kr.source=lt,XD(Kr))throw Kr;return Kr}function cne(f){return Gs(f).toLowerCase()}function une(f){return Gs(f).toUpperCase()}function dne(f,m,E){if(f=Gs(f),f&&(E||m===r))return ht(f);if(!f||!(m=xo(m)))return f;var H=Xo(f),K=Xo(m),ie=Ls(H,K),ge=ui(H,K)+1;return Pu(H,ie,ge).join("")}function hne(f,m,E){if(f=Gs(f),f&&(E||m===r))return f.slice(0,aC(f)+1);if(!f||!(m=xo(m)))return f;var H=Xo(f),K=ui(H,Xo(m))+1;return Pu(H,0,K).join("")}function pne(f,m,E){if(f=Gs(f),f&&(E||m===r))return f.replace(bd,"");if(!f||!(m=xo(m)))return f;var H=Xo(f),K=Ls(H,Xo(m));return Pu(H,K).join("")}function gne(f,m){var E=j,H=_;if(Pn(m)){var K="separator"in m?m.separator:K;E="length"in m?Wr(m.length):E,H="omission"in m?xo(m.omission):H}f=Gs(f);var ie=f.length;if(Ug(f)){var ge=Xo(f);ie=ge.length}if(E>=ie)return f;var me=E-pp(H);if(me<1)return H;var Ee=ge?Pu(ge,0,me).join(""):f.slice(0,me);if(K===r)return Ee+H;if(ge&&(me+=Ee.length-me),$D(K)){if(f.slice(me).search(K)){var qe,et=Ee;for(K.global||(K=KA(K.source,Gs(Cl.exec(K))+"g")),K.lastIndex=0;qe=K.exec(et);)var lt=qe.index;Ee=Ee.slice(0,lt===r?me:lt)}}else if(f.indexOf(xo(K),me)!=me){var Pt=Ee.lastIndexOf(K);Pt>-1&&(Ee=Ee.slice(0,Pt))}return Ee+H}function fne(f){return f=Gs(f),f&&ql.test(f)?f.replace(fo,k3):f}var Ane=Pp(function(f,m,E){return f+(E?" ":"")+m.toUpperCase()}),eM=jy("toUpperCase");function l8(f,m,E){return f=Gs(f),m=E?r:m,m===r?yD(f)?ED(f):Vg(f):f.match(m)||[]}var c8=Ur(function(f,m){try{return kn(f,r,m)}catch(E){return XD(E)?E:new xr(E)}}),mne=bc(function(f,m){return Sn(m,function(E){E=Dl(E),fc(f,E,ct(f[E],f))}),f});function vne(f){var m=f==null?0:f.length,E=lr();return f=m?Ts(f,function(H){if(typeof H[1]!="function")throw new ka(o);return[E(H[0]),H[1]]}):[],Ur(function(H){for(var K=-1;++K<m;){var ie=f[K];if(kn(ie[0],this,H))return kn(ie[1],this,H)}})}function Cne(f){return K3(So(f,d))}function tM(f){return function(){return f}}function wne(f,m){return f==null||f!==f?m:f}var yne=_C(),bne=_C(!0);function ja(f){return f}function rM(f){return of(typeof f=="function"?f:So(f,d))}function Sne(f){return TC(So(f,d))}function xne(f,m){return rn(f,So(m,d))}var Ene=Ur(function(f,m){return function(E){return Oa(E,f,m)}}),Pne=Ur(function(f,m){return function(E){return Oa(f,E,m)}});function sM(f,m,E){var H=Ii(m),K=sf(m,H);E==null&&!(Pn(m)&&(K.length||!H.length))&&(E=m,m=f,f=this,K=sf(m,Ii(m)));var ie=!(Pn(E)&&"chain"in E)||!!E.chain,ge=Bp(f);return Sn(K,function(me){var Ee=m[me];f[me]=Ee,ge&&(f.prototype[me]=function(){var qe=this.__chain__;if(ie||qe){var et=f(this.__wrapped__),lt=et.__actions__=ji(this.__actions__);return lt.push({func:Ee,args:arguments,thisArg:f}),et.__chain__=qe,et}return Ee.apply(f,Ma([this.value()],arguments))})}),f}function Fne(){return zs._===this&&(zs._=H3),this}function nM(){}function Rne(f){return f=Wr(f),Ur(function(m){return DC(m,f)})}var Tne=VC(Ts),Dne=VC(_g),Mne=VC(Od);function u8(f){return Bt(f)?I(Dl(f)):dn(f)}function Ine(f){return function(m){return f==null?r:yu(f,m)}}var kne=Yy(),Bne=Yy(!0);function iM(){return[]}function oM(){return!1}function Lne(){return{}}function Hne(){return""}function Gne(){return!0}function One(f,m){if(f=Wr(f),f<1||f>X)return[];var E=$,H=Ei(f,$);m=lr(m),f-=$;for(var K=Te(H,m);++E<f;)m(E);return K}function Nne(f){return Gr(f)?Ts(f,Dl):kl(f)?[f]:ji(ob(Gs(f)))}function _ne(f){var m=++Kg;return Gs(f)+m}var Vne=gm(function(f,m){return f+m},0),zne=hi("ceil"),Qne=gm(function(f,m){return f/m},1),Une=hi("floor");function Wne(f){return f&&f.length?yp(f,ja,Kd):r}function jne(f,m){return f&&f.length?yp(f,lr(m,2),Kd):r}function Kne(f){return WA(f,ja)}function Yne(f,m){return WA(f,lr(m,2))}function Zne(f){return f&&f.length?yp(f,ja,Yd):r}function Xne(f,m){return f&&f.length?yp(f,lr(m,2),Yd):r}var $ne=gm(function(f,m){return f*m},1),Jne=hi("round"),qne=gm(function(f,m){return f-m},0);function eie(f){return f&&f.length?ke(f,ja):0}function tie(f,m){return f&&f.length?ke(f,lr(m,2)):0}return ee.after=Ae,ee.ary=Ge,ee.assign=use,ee.assignIn=t8,ee.assignInWith=ME,ee.assignWith=dse,ee.at=hse,ee.before=at,ee.bind=ct,ee.bindAll=mne,ee.bindKey=it,ee.castArray=Lre,ee.chain=n0,ee.chunk=XC,ee.compact=ab,ee.concat=za,ee.cond=vne,ee.conforms=Cne,ee.constant=tM,ee.countBy=xE,ee.create=pse,ee.curry=Dt,ee.curryRight=_t,ee.debounce=Ut,ee.defaults=gse,ee.defaultsDeep=fse,ee.defer=En,ee.delay=Re,ee.difference=os,ee.differenceBy=ti,ee.differenceWith=Hn,ee.drop=fi,ee.dropRight=ta,ee.dropRightWhile=mf,ee.dropWhile=Qn,ee.fill=bm,ee.filter=a0,ee.flatMap=Cb,ee.flatMapDeep=WD,ee.flatMapDepth=FE,ee.flatten=$C,ee.flattenDeep=xm,ee.flattenDepth=Eo,ee.flip=we,ee.flow=yne,ee.flowRight=bne,ee.fromPairs=lb,ee.functions=bse,ee.functionsIn=Sse,ee.groupBy=wb,ee.initial=JC,ee.intersection=cb,ee.intersectionBy=qd,ee.intersectionWith=qC,ee.invert=Ese,ee.invertBy=Pse,ee.invokeMap=RE,ee.iteratee=rM,ee.keyBy=jD,ee.keys=Ii,ee.keysIn=Wa,ee.map=kp,ee.mapKeys=Rse,ee.mapValues=Tse,ee.matches=Sne,ee.matchesProperty=xne,ee.memoize=Me,ee.merge=Dse,ee.mergeWith=r8,ee.method=Ene,ee.methodOf=Pne,ee.mixin=sM,ee.negate=pt,ee.nthArg=Rne,ee.omit=Mse,ee.omitBy=Ise,ee.once=Kt,ee.orderBy=KD,ee.over=Tne,ee.overArgs=or,ee.overEvery=Dne,ee.overSome=Mne,ee.partial=tr,ee.partialRight=pr,ee.partition=Rm,ee.pick=kse,ee.pickBy=s8,ee.property=u8,ee.propertyOf=Ine,ee.pull=e0,ee.pullAll=Pm,ee.pullAllBy=Xi,ee.pullAllWith=th,ee.pullAt=Ml,ee.range=kne,ee.rangeRight=Bne,ee.rearg=ri,ee.reject=h,ee.remove=Po,ee.rest=fs,ee.reverse=t0,ee.sampleSize=C,ee.set=Lse,ee.setWith=Hse,ee.shuffle=x,ee.slice=db,ee.sortBy=Z,ee.sortedUniq=gb,ee.sortedUniqBy=Dp,ee.split=ine,ee.spread=sh,ee.tail=mE,ee.take=vE,ee.takeRight=fb,ee.takeRightWhile=r0,ee.takeWhile=LD,ee.tap=zD,ee.throttle=ZD,ee.thru=Il,ee.toArray=J6,ee.toPairs=n8,ee.toPairsIn=i8,ee.toPath=Nne,ee.toPlainObject=e8,ee.transform=Gse,ee.unary=kre,ee.union=HD,ee.unionBy=CE,ee.unionWith=wE,ee.uniq=Mp,ee.uniqBy=GD,ee.uniqWith=vf,ee.unset=Ose,ee.unzip=s0,ee.unzipWith=hn,ee.update=Nse,ee.updateWith=_se,ee.values=p0,ee.valuesIn=Vse,ee.without=OD,ee.words=l8,ee.wrap=Bre,ee.xor=yE,ee.xorBy=ND,ee.xorWith=_D,ee.zip=bE,ee.zipObject=SE,ee.zipObjectDeep=VD,ee.zipWith=Qa,ee.entries=n8,ee.entriesIn=i8,ee.extend=t8,ee.extendWith=ME,sM(ee,ee),ee.add=Vne,ee.attempt=c8,ee.camelCase=Wse,ee.capitalize=o8,ee.ceil=zne,ee.clamp=zse,ee.clone=Hre,ee.cloneDeep=Ore,ee.cloneDeepWith=Nre,ee.cloneWith=Gre,ee.conformsTo=_re,ee.deburr=a8,ee.defaultTo=wne,ee.divide=Qne,ee.endsWith=jse,ee.eq=Du,ee.escape=Kse,ee.escapeRegExp=Yse,ee.every=EE,ee.find=l0,ee.findIndex=Jd,ee.findKey=Ase,ee.findLast=PE,ee.findLastIndex=Sm,ee.findLastKey=mse,ee.floor=Une,ee.forEach=c0,ee.forEachRight=Fm,ee.forIn=vse,ee.forInRight=Cse,ee.forOwn=wse,ee.forOwnRight=yse,ee.get=JD,ee.gt=Vre,ee.gte=zre,ee.has=xse,ee.hasIn=qD,ee.head=Rp,ee.identity=ja,ee.includes=u0,ee.indexOf=Tu,ee.inRange=Qse,ee.invoke=Fse,ee.isArguments=Tm,ee.isArray=Gr,ee.isArrayBuffer=Qre,ee.isArrayLike=Ua,ee.isArrayLikeObject=Un,ee.isBoolean=Ure,ee.isBuffer=Cf,ee.isDate=Wre,ee.isElement=jre,ee.isEmpty=Kre,ee.isEqual=Yre,ee.isEqualWith=Zre,ee.isError=XD,ee.isFinite=Xre,ee.isFunction=Bp,ee.isInteger=Y6,ee.isLength=TE,ee.isMap=Z6,ee.isMatch=$re,ee.isMatchWith=Jre,ee.isNaN=qre,ee.isNative=ese,ee.isNil=rse,ee.isNull=tse,ee.isNumber=X6,ee.isObject=Pn,ee.isObjectLike=Gn,ee.isPlainObject=yb,ee.isRegExp=$D,ee.isSafeInteger=sse,ee.isSet=$6,ee.isString=DE,ee.isSymbol=kl,ee.isTypedArray=h0,ee.isUndefined=nse,ee.isWeakMap=ise,ee.isWeakSet=ose,ee.join=eh,ee.kebabCase=Zse,ee.last=Zi,ee.lastIndexOf=Em,ee.lowerCase=Xse,ee.lowerFirst=$se,ee.lt=ase,ee.lte=lse,ee.max=Wne,ee.maxBy=jne,ee.mean=Kne,ee.meanBy=Yne,ee.min=Zne,ee.minBy=Xne,ee.stubArray=iM,ee.stubFalse=oM,ee.stubObject=Lne,ee.stubString=Hne,ee.stubTrue=Gne,ee.multiply=$ne,ee.nth=ub,ee.noConflict=Fne,ee.noop=nM,ee.now=he,ee.pad=Jse,ee.padEnd=qse,ee.padStart=ene,ee.parseInt=tne,ee.random=Use,ee.reduce=YD,ee.reduceRight=d0,ee.repeat=rne,ee.replace=sne,ee.result=Bse,ee.round=Jne,ee.runInContext=be,ee.sample=p,ee.size=R,ee.snakeCase=nne,ee.some=L,ee.sortedIndex=hb,ee.sortedIndexBy=BD,ee.sortedIndexOf=rh,ee.sortedLastIndex=AE,ee.sortedLastIndexBy=pb,ee.sortedLastIndexOf=Tp,ee.startCase=one,ee.startsWith=ane,ee.subtract=qne,ee.sum=eie,ee.sumBy=tie,ee.template=lne,ee.times=One,ee.toFinite=Lp,ee.toInteger=Wr,ee.toLength=q6,ee.toLower=cne,ee.toNumber=xc,ee.toSafeInteger=cse,ee.toString=Gs,ee.toUpper=une,ee.trim=dne,ee.trimEnd=hne,ee.trimStart=pne,ee.truncate=gne,ee.unescape=fne,ee.uniqueId=_ne,ee.upperCase=Ane,ee.upperFirst=eM,ee.each=c0,ee.eachRight=Fm,ee.first=Rp,sM(ee,function(){var f={};return qo(ee,function(m,E){gs.call(ee.prototype,E)||(f[E]=m)}),f}(),{chain:!1}),ee.VERSION=s,Sn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(f){ee[f].placeholder=ee}),Sn(["drop","take"],function(f,m){Hr.prototype[f]=function(E){E=E===r?1:Ln(Wr(E),0);var H=this.__filtered__&&!m?new Hr(this):this.clone();return H.__filtered__?H.__takeCount__=Ei(E,H.__takeCount__):H.__views__.push({size:Ei(E,$),type:f+(H.__dir__<0?"Right":"")}),H},Hr.prototype[f+"Right"]=function(E){return this.reverse()[f](E).reverse()}}),Sn(["filter","map","takeWhile"],function(f,m){var E=m+1,H=E==W||E==q;Hr.prototype[f]=function(K){var ie=this.clone();return ie.__iteratees__.push({iteratee:lr(K,3),type:E}),ie.__filtered__=ie.__filtered__||H,ie}}),Sn(["head","last"],function(f,m){var E="take"+(m?"Right":"");Hr.prototype[f]=function(){return this[E](1).value()[0]}}),Sn(["initial","tail"],function(f,m){var E="drop"+(m?"":"Right");Hr.prototype[f]=function(){return this.__filtered__?new Hr(this):this[E](1)}}),Hr.prototype.compact=function(){return this.filter(ja)},Hr.prototype.find=function(f){return this.filter(f).head()},Hr.prototype.findLast=function(f){return this.reverse().find(f)},Hr.prototype.invokeMap=Ur(function(f,m){return typeof f=="function"?new Hr(this):this.map(function(E){return Oa(E,f,m)})}),Hr.prototype.reject=function(f){return this.filter(pt(lr(f)))},Hr.prototype.slice=function(f,m){f=Wr(f);var E=this;return E.__filtered__&&(f>0||m<0)?new Hr(E):(f<0?E=E.takeRight(-f):f&&(E=E.drop(f)),m!==r&&(m=Wr(m),E=m<0?E.dropRight(-m):E.take(m-f)),E)},Hr.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},Hr.prototype.toArray=function(){return this.take($)},qo(Hr.prototype,function(f,m){var E=/^(?:filter|find|map|reject)|While$/.test(m),H=/^(?:head|last)$/.test(m),K=ee[H?"take"+(m=="last"?"Right":""):m],ie=H||/^find/.test(m);K&&(ee.prototype[m]=function(){var ge=this.__wrapped__,me=H?[1]:arguments,Ee=ge instanceof Hr,qe=me[0],et=Ee||Gr(ge),lt=function(rs){var as=K.apply(ee,Ma([rs],me));return H&&Pt?as[0]:as};et&&E&&typeof qe=="function"&&qe.length!=1&&(Ee=et=!1);var Pt=this.__chain__,Yt=!!this.__actions__.length,gr=ie&&!Pt,Kr=Ee&&!Yt;if(!ie&&et){ge=Kr?ge:new Hr(this);var fr=f.apply(ge,me);return fr.__actions__.push({func:Il,args:[lt],thisArg:r}),new Pi(fr,Pt)}return gr&&Kr?f.apply(this,me):(fr=this.thru(lt),gr?H?fr.value()[0]:fr.value():fr)})}),Sn(["pop","push","shift","sort","splice","unshift"],function(f){var m=Au[f],E=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",H=/^(?:pop|shift)$/.test(f);ee.prototype[f]=function(){var K=arguments;if(H&&!this.__chain__){var ie=this.value();return m.apply(Gr(ie)?ie:[],K)}return this[E](function(ge){return m.apply(Gr(ge)?ge:[],K)})}}),qo(Hr.prototype,function(f,m){var E=ee[m];if(E){var H=E.name+"";gs.call($g,H)||($g[H]=[]),$g[H].push({name:m,func:E})}}),$g[pf(r,S).name]=[{name:"wrapper",func:r}],Hr.prototype.clone=vC,Hr.prototype.reverse=Fy,Hr.prototype.value=ef,ee.prototype.at=i0,ee.prototype.chain=Ip,ee.prototype.commit=o0,ee.prototype.next=Ab,ee.prototype.plant=QD,ee.prototype.reverse=vb,ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=UD,ee.prototype.first=ee.prototype.head,vu&&(ee.prototype[vu]=mb),ee},Wg=PD();Da?((Da.exports=Wg)._=Wg,Bd._=Wg):zs._=Wg}).call(Ib)})($F,$F.exports);$F.exports;var dB={exports:{}};const _8e="2.0.0",dJ=256,V8e=Number.MAX_SAFE_INTEGER||9007199254740991,z8e=16,Q8e=dJ-6,U8e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var ET={MAX_LENGTH:dJ,MAX_SAFE_COMPONENT_LENGTH:z8e,MAX_SAFE_BUILD_LENGTH:Q8e,MAX_SAFE_INTEGER:V8e,RELEASE_TYPES:U8e,SEMVER_SPEC_VERSION:_8e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const W8e=typeof process=="object"&&y2&&y2.NODE_DEBUG&&/\bsemver\b/i.test(y2.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var PT=W8e;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:n}=ET,i=PT;t=e.exports={};const o=t.re=[],a=t.safeRe=[],l=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const g="[a-zA-Z0-9-]",A=[["\\s",1],["\\d",n],[g,s]],w=b=>{for(const[S,P]of A)b=b.split(`${S}*`).join(`${S}{0,${P}}`).split(`${S}+`).join(`${S}{1,${P}}`);return b},v=(b,S,P)=>{const F=w(S),T=d++;i(b,T,S),u[b]=T,l[T]=S,c[T]=F,o[T]=new RegExp(S,P?"g":void 0),a[T]=new RegExp(F,P?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${g}*`),v("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${l[u.NUMERICIDENTIFIER]}|${l[u.NONNUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NUMERICIDENTIFIERLOOSE]}|${l[u.NONNUMERICIDENTIFIER]})`),v("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${g}+`),v("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),v("FULL",`^${l[u.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),v("LOOSE",`^${l[u.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),v("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),v("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),v("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),v("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?(?:${l[u.BUILD]})?(?:$|[^\\d])`),v("COERCERTL",l[u.COERCE],!0),v("COERCERTLFULL",l[u.COERCEFULL],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(dB,dB.exports);var n3=dB.exports;const j8e=Object.freeze({loose:!0}),K8e=Object.freeze({}),Y8e=e=>e?typeof e!="object"?j8e:e:K8e;var P5=Y8e;const xO=/^[0-9]+$/,hJ=(e,t)=>{const r=xO.test(e),s=xO.test(t);return r&&s&&(e=+e,t=+t),e===t?0:r&&!s?-1:s&&!r?1:e<t?-1:1},Z8e=(e,t)=>hJ(t,e);var pJ={compareIdentifiers:hJ,rcompareIdentifiers:Z8e};const iP=PT,{MAX_LENGTH:EO,MAX_SAFE_INTEGER:oP}=ET,{safeRe:PO,safeSrc:FO,t:aP}=n3,X8e=P5,{compareIdentifiers:m0}=pJ;let $8e=class hh{constructor(t,r){if(r=X8e(r),t instanceof hh){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>EO)throw new TypeError(`version is longer than ${EO} characters`);iP("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const s=t.trim().match(r.loose?PO[aP.LOOSE]:PO[aP.FULL]);if(!s)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>oP||this.major<0)throw new TypeError("Invalid major version");if(this.minor>oP||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>oP||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){const i=+n;if(i>=0&&i<oP)return i}return n}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(iP("SemVer.compare",this.version,this.options,t),!(t instanceof hh)){if(typeof t=="string"&&t===this.version)return 0;t=new hh(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof hh||(t=new hh(t,this.options)),m0(this.major,t.major)||m0(this.minor,t.minor)||m0(this.patch,t.patch)}comparePre(t){if(t instanceof hh||(t=new hh(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const s=this.prerelease[r],n=t.prerelease[r];if(iP("prerelease compare",r,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s!==n)return m0(s,n)}while(++r)}compareBuild(t){t instanceof hh||(t=new hh(t,this.options));let r=0;do{const s=this.build[r],n=t.build[r];if(iP("build compare",r,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s!==n)return m0(s,n)}while(++r)}inc(t,r,s){if(t.startsWith("pre")){if(!r&&s===!1)throw new Error("invalid increment argument: identifier is empty");if(r){const n=new RegExp(`^${this.options.loose?FO[aP.PRERELEASELOOSE]:FO[aP.PRERELEASE]}$`),i=`-${r}`.match(n);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,s),this.inc("pre",r,s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,s),this.inc("pre",r,s);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const n=Number(s)?1:0;if(this.prerelease.length===0)this.prerelease=[n];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(r===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(n)}}if(r){let i=[r,n];s===!1&&(i=[r]),m0(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var ba=$8e;const RO=ba,J8e=(e,t,r=!1)=>{if(e instanceof RO)return e;try{return new RO(e,t)}catch(s){if(!r)return null;throw s}};var Jw=J8e;const q8e=Jw,eHe=(e,t)=>{const r=q8e(e,t);return r?r.version:null};var tHe=eHe;const rHe=Jw,sHe=(e,t)=>{const r=rHe(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var nHe=sHe;const TO=ba,iHe=(e,t,r,s,n)=>{typeof r=="string"&&(n=s,s=r,r=void 0);try{return new TO(e instanceof TO?e.version:e,r).inc(t,s,n).version}catch{return null}};var oHe=iHe;const DO=Jw,aHe=(e,t)=>{const r=DO(e,null,!0),s=DO(t,null,!0),n=r.compare(s);if(n===0)return null;const i=n>0,o=i?r:s,a=i?s:r,l=!!o.prerelease.length;if(a.prerelease.length&&!l){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}const c=l?"pre":"";return r.major!==s.major?c+"major":r.minor!==s.minor?c+"minor":r.patch!==s.patch?c+"patch":"prerelease"};var lHe=aHe;const cHe=ba,uHe=(e,t)=>new cHe(e,t).major;var dHe=uHe;const hHe=ba,pHe=(e,t)=>new hHe(e,t).minor;var gHe=pHe;const fHe=ba,AHe=(e,t)=>new fHe(e,t).patch;var mHe=AHe;const vHe=Jw,CHe=(e,t)=>{const r=vHe(e,t);return r&&r.prerelease.length?r.prerelease:null};var wHe=CHe;const MO=ba,yHe=(e,t,r)=>new MO(e,r).compare(new MO(t,r));var md=yHe;const bHe=md,SHe=(e,t,r)=>bHe(t,e,r);var xHe=SHe;const EHe=md,PHe=(e,t)=>EHe(e,t,!0);var FHe=PHe;const IO=ba,RHe=(e,t,r)=>{const s=new IO(e,r),n=new IO(t,r);return s.compare(n)||s.compareBuild(n)};var F5=RHe;const THe=F5,DHe=(e,t)=>e.sort((r,s)=>THe(r,s,t));var MHe=DHe;const IHe=F5,kHe=(e,t)=>e.sort((r,s)=>IHe(s,r,t));var BHe=kHe;const LHe=md,HHe=(e,t,r)=>LHe(e,t,r)>0;var FT=HHe;const GHe=md,OHe=(e,t,r)=>GHe(e,t,r)<0;var R5=OHe;const NHe=md,_He=(e,t,r)=>NHe(e,t,r)===0;var gJ=_He;const VHe=md,zHe=(e,t,r)=>VHe(e,t,r)!==0;var fJ=zHe;const QHe=md,UHe=(e,t,r)=>QHe(e,t,r)>=0;var T5=UHe;const WHe=md,jHe=(e,t,r)=>WHe(e,t,r)<=0;var D5=jHe;const KHe=gJ,YHe=fJ,ZHe=FT,XHe=T5,$He=R5,JHe=D5,qHe=(e,t,r,s)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return KHe(e,r,s);case"!=":return YHe(e,r,s);case">":return ZHe(e,r,s);case">=":return XHe(e,r,s);case"<":return $He(e,r,s);case"<=":return JHe(e,r,s);default:throw new TypeError(`Invalid operator: ${t}`)}};var AJ=qHe;const eGe=ba,tGe=Jw,{safeRe:lP,t:cP}=n3,rGe=(e,t)=>{if(e instanceof eGe)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?lP[cP.COERCEFULL]:lP[cP.COERCE]);else{const l=t.includePrerelease?lP[cP.COERCERTLFULL]:lP[cP.COERCERTL];let c;for(;(c=l.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||c.index+c[0].length!==r.index+r[0].length)&&(r=c),l.lastIndex=c.index+c[1].length+c[2].length;l.lastIndex=-1}if(r===null)return null;const s=r[2],n=r[3]||"0",i=r[4]||"0",o=t.includePrerelease&&r[5]?`-${r[5]}`:"",a=t.includePrerelease&&r[6]?`+${r[6]}`:"";return tGe(`${s}.${n}.${i}${o}${a}`,t)};var sGe=rGe;let nGe=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){const r=this.map.keys().next().value;this.delete(r)}this.map.set(e,t)}return this}};var iGe=nGe,f4,kO;function vd(){if(kO)return f4;kO=1;const e=/\s+/g;class t{constructor(V,q){if(q=n(q),V instanceof t)return V.loose===!!q.loose&&V.includePrerelease===!!q.includePrerelease?V:new t(V.raw,q);if(V instanceof i)return this.raw=V.value,this.set=[[V]],this.formatted=void 0,this;if(this.options=q,this.loose=!!q.loose,this.includePrerelease=!!q.includePrerelease,this.raw=V.trim().replace(e," "),this.set=this.raw.split("||").map(pe=>this.parseRange(pe.trim())).filter(pe=>pe.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const pe=this.set[0];if(this.set=this.set.filter(X=>!v(X[0])),this.set.length===0)this.set=[pe];else if(this.set.length>1){for(const X of this.set)if(X.length===1&&b(X[0])){this.set=[X];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let V=0;V<this.set.length;V++){V>0&&(this.formatted+="||");const q=this.set[V];for(let pe=0;pe<q.length;pe++)pe>0&&(this.formatted+=" "),this.formatted+=q[pe].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(V){const q=((this.options.includePrerelease&&A)|(this.options.loose&&w))+":"+V,pe=s.get(q);if(pe)return pe;const X=this.options.loose,re=X?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];V=V.replace(re,G(this.options.includePrerelease)),o("hyphen replace",V),V=V.replace(l[c.COMPARATORTRIM],u),o("comparator trim",V),V=V.replace(l[c.TILDETRIM],d),o("tilde trim",V),V=V.replace(l[c.CARETTRIM],g),o("caret trim",V);let ae=V.split(" ").map(Oe=>P(Oe,this.options)).join(" ").split(/\s+/).map(Oe=>_(Oe,this.options));X&&(ae=ae.filter(Oe=>(o("loose invalid filter",Oe,this.options),!!Oe.match(l[c.COMPARATORLOOSE])))),o("range list",ae);const $=new Map,se=ae.map(Oe=>new i(Oe,this.options));for(const Oe of se){if(v(Oe))return[Oe];$.set(Oe.value,Oe)}$.size>1&&$.has("")&&$.delete("");const De=[...$.values()];return s.set(q,De),De}intersects(V,q){if(!(V instanceof t))throw new TypeError("a Range is required");return this.set.some(pe=>S(pe,q)&&V.set.some(X=>S(X,q)&&pe.every(re=>X.every(ae=>re.intersects(ae,q)))))}test(V){if(!V)return!1;if(typeof V=="string")try{V=new a(V,this.options)}catch{return!1}for(let q=0;q<this.set.length;q++)if(N(this.set[q],V,this.options))return!0;return!1}}f4=t;const r=iGe,s=new r,n=P5,i=RT(),o=PT,a=ba,{safeRe:l,t:c,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:g}=n3,{FLAG_INCLUDE_PRERELEASE:A,FLAG_LOOSE:w}=ET,v=W=>W.value==="<0.0.0-0",b=W=>W.value==="",S=(W,V)=>{let q=!0;const pe=W.slice();let X=pe.pop();for(;q&&pe.length;)q=pe.every(re=>X.intersects(re,V)),X=pe.pop();return q},P=(W,V)=>(o("comp",W,V),W=B(W,V),o("caret",W),W=T(W,V),o("tildes",W),W=z(W,V),o("xrange",W),W=j(W,V),o("stars",W),W),F=W=>!W||W.toLowerCase()==="x"||W==="*",T=(W,V)=>W.trim().split(/\s+/).map(q=>D(q,V)).join(" "),D=(W,V)=>{const q=V.loose?l[c.TILDELOOSE]:l[c.TILDE];return W.replace(q,(pe,X,re,ae,$)=>{o("tilde",W,pe,X,re,ae,$);let se;return F(X)?se="":F(re)?se=`>=${X}.0.0 <${+X+1}.0.0-0`:F(ae)?se=`>=${X}.${re}.0 <${X}.${+re+1}.0-0`:$?(o("replaceTilde pr",$),se=`>=${X}.${re}.${ae}-${$} <${X}.${+re+1}.0-0`):se=`>=${X}.${re}.${ae} <${X}.${+re+1}.0-0`,o("tilde return",se),se})},B=(W,V)=>W.trim().split(/\s+/).map(q=>k(q,V)).join(" "),k=(W,V)=>{o("caret",W,V);const q=V.loose?l[c.CARETLOOSE]:l[c.CARET],pe=V.includePrerelease?"-0":"";return W.replace(q,(X,re,ae,$,se)=>{o("caret",W,X,re,ae,$,se);let De;return F(re)?De="":F(ae)?De=`>=${re}.0.0${pe} <${+re+1}.0.0-0`:F($)?re==="0"?De=`>=${re}.${ae}.0${pe} <${re}.${+ae+1}.0-0`:De=`>=${re}.${ae}.0${pe} <${+re+1}.0.0-0`:se?(o("replaceCaret pr",se),re==="0"?ae==="0"?De=`>=${re}.${ae}.${$}-${se} <${re}.${ae}.${+$+1}-0`:De=`>=${re}.${ae}.${$}-${se} <${re}.${+ae+1}.0-0`:De=`>=${re}.${ae}.${$}-${se} <${+re+1}.0.0-0`):(o("no pr"),re==="0"?ae==="0"?De=`>=${re}.${ae}.${$}${pe} <${re}.${ae}.${+$+1}-0`:De=`>=${re}.${ae}.${$}${pe} <${re}.${+ae+1}.0-0`:De=`>=${re}.${ae}.${$} <${+re+1}.0.0-0`),o("caret return",De),De})},z=(W,V)=>(o("replaceXRanges",W,V),W.split(/\s+/).map(q=>O(q,V)).join(" ")),O=(W,V)=>{W=W.trim();const q=V.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return W.replace(q,(pe,X,re,ae,$,se)=>{o("xRange",W,pe,X,re,ae,$,se);const De=F(re),Oe=De||F(ae),Be=Oe||F($),Ve=Be;return X==="="&&Ve&&(X=""),se=V.includePrerelease?"-0":"",De?X===">"||X==="<"?pe="<0.0.0-0":pe="*":X&&Ve?(Oe&&(ae=0),$=0,X===">"?(X=">=",Oe?(re=+re+1,ae=0,$=0):(ae=+ae+1,$=0)):X==="<="&&(X="<",Oe?re=+re+1:ae=+ae+1),X==="<"&&(se="-0"),pe=`${X+re}.${ae}.${$}${se}`):Oe?pe=`>=${re}.0.0${se} <${+re+1}.0.0-0`:Be&&(pe=`>=${re}.${ae}.0${se} <${re}.${+ae+1}.0-0`),o("xRange return",pe),pe})},j=(W,V)=>(o("replaceStars",W,V),W.trim().replace(l[c.STAR],"")),_=(W,V)=>(o("replaceGTE0",W,V),W.trim().replace(l[V.includePrerelease?c.GTE0PRE:c.GTE0],"")),G=W=>(V,q,pe,X,re,ae,$,se,De,Oe,Be,Ve)=>(F(pe)?q="":F(X)?q=`>=${pe}.0.0${W?"-0":""}`:F(re)?q=`>=${pe}.${X}.0${W?"-0":""}`:ae?q=`>=${q}`:q=`>=${q}${W?"-0":""}`,F(De)?se="":F(Oe)?se=`<${+De+1}.0.0-0`:F(Be)?se=`<${De}.${+Oe+1}.0-0`:Ve?se=`<=${De}.${Oe}.${Be}-${Ve}`:W?se=`<${De}.${Oe}.${+Be+1}-0`:se=`<=${se}`,`${q} ${se}`.trim()),N=(W,V,q)=>{for(let pe=0;pe<W.length;pe++)if(!W[pe].test(V))return!1;if(V.prerelease.length&&!q.includePrerelease){for(let pe=0;pe<W.length;pe++)if(o(W[pe].semver),W[pe].semver!==i.ANY&&W[pe].semver.prerelease.length>0){const X=W[pe].semver;if(X.major===V.major&&X.minor===V.minor&&X.patch===V.patch)return!0}return!1}return!0};return f4}var A4,BO;function RT(){if(BO)return A4;BO=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(u,d){if(d=r(d),u instanceof t){if(u.loose===!!d.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),o("comparator",u,d),this.options=d,this.loose=!!d.loose,this.parse(u),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(u){const d=this.options.loose?s[n.COMPARATORLOOSE]:s[n.COMPARATOR],g=u.match(d);if(!g)throw new TypeError(`Invalid comparator: ${u}`);this.operator=g[1]!==void 0?g[1]:"",this.operator==="="&&(this.operator=""),g[2]?this.semver=new a(g[2],this.options.loose):this.semver=e}toString(){return this.value}test(u){if(o("Comparator.test",u,this.options.loose),this.semver===e||u===e)return!0;if(typeof u=="string")try{u=new a(u,this.options)}catch{return!1}return i(u,this.operator,this.semver,this.options)}intersects(u,d){if(!(u instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(u.value,d).test(this.value):u.operator===""?u.value===""?!0:new l(this.value,d).test(u.semver):(d=r(d),d.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||i(this.semver,"<",u.semver,d)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||i(this.semver,">",u.semver,d)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}A4=t;const r=P5,{safeRe:s,t:n}=n3,i=AJ,o=PT,a=ba,l=vd();return A4}const oGe=vd(),aGe=(e,t,r)=>{try{t=new oGe(t,r)}catch{return!1}return t.test(e)};var TT=aGe;const lGe=vd(),cGe=(e,t)=>new lGe(e,t).set.map(r=>r.map(s=>s.value).join(" ").trim().split(" "));var uGe=cGe;const dGe=ba,hGe=vd(),pGe=(e,t,r)=>{let s=null,n=null,i=null;try{i=new hGe(t,r)}catch{return null}return e.forEach(o=>{i.test(o)&&(!s||n.compare(o)===-1)&&(s=o,n=new dGe(s,r))}),s};var gGe=pGe;const fGe=ba,AGe=vd(),mGe=(e,t,r)=>{let s=null,n=null,i=null;try{i=new AGe(t,r)}catch{return null}return e.forEach(o=>{i.test(o)&&(!s||n.compare(o)===1)&&(s=o,n=new fGe(s,r))}),s};var vGe=mGe;const m4=ba,CGe=vd(),LO=FT,wGe=(e,t)=>{e=new CGe(e,t);let r=new m4("0.0.0");if(e.test(r)||(r=new m4("0.0.0-0"),e.test(r)))return r;r=null;for(let s=0;s<e.set.length;++s){const n=e.set[s];let i=null;n.forEach(o=>{const a=new m4(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!i||LO(a,i))&&(i=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!r||LO(r,i))&&(r=i)}return r&&e.test(r)?r:null};var yGe=wGe;const bGe=vd(),SGe=(e,t)=>{try{return new bGe(e,t).range||"*"}catch{return null}};var xGe=SGe;const EGe=ba,mJ=RT(),{ANY:PGe}=mJ,FGe=vd(),RGe=TT,HO=FT,GO=R5,TGe=D5,DGe=T5,MGe=(e,t,r,s)=>{e=new EGe(e,s),t=new FGe(t,s);let n,i,o,a,l;switch(r){case">":n=HO,i=TGe,o=GO,a=">",l=">=";break;case"<":n=GO,i=DGe,o=HO,a="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(RGe(e,t,s))return!1;for(let c=0;c<t.set.length;++c){const u=t.set[c];let d=null,g=null;if(u.forEach(A=>{A.semver===PGe&&(A=new mJ(">=0.0.0")),d=d||A,g=g||A,n(A.semver,d.semver,s)?d=A:o(A.semver,g.semver,s)&&(g=A)}),d.operator===a||d.operator===l||(!g.operator||g.operator===a)&&i(e,g.semver)||g.operator===l&&o(e,g.semver))return!1}return!0};var M5=MGe;const IGe=M5,kGe=(e,t,r)=>IGe(e,t,">",r);var BGe=kGe;const LGe=M5,HGe=(e,t,r)=>LGe(e,t,"<",r);var GGe=HGe;const OO=vd(),OGe=(e,t,r)=>(e=new OO(e,r),t=new OO(t,r),e.intersects(t,r));var NGe=OGe;const _Ge=TT,VGe=md;var zGe=(e,t,r)=>{const s=[];let n=null,i=null;const o=e.sort((u,d)=>VGe(u,d,r));for(const u of o)_Ge(u,t,r)?(i=u,n||(n=u)):(i&&s.push([n,i]),i=null,n=null);n&&s.push([n,null]);const a=[];for(const[u,d]of s)u===d?a.push(u):!d&&u===o[0]?a.push("*"):d?u===o[0]?a.push(`<=${d}`):a.push(`${u} - ${d}`):a.push(`>=${u}`);const l=a.join(" || "),c=typeof t.raw=="string"?t.raw:String(t);return l.length<c.length?l:t};const NO=vd(),I5=RT(),{ANY:v4}=I5,Lb=TT,k5=md,QGe=(e,t,r={})=>{if(e===t)return!0;e=new NO(e,r),t=new NO(t,r);let s=!1;e:for(const n of e.set){for(const i of t.set){const o=WGe(n,i,r);if(s=s||o!==null,o)continue e}if(s)return!1}return!0},UGe=[new I5(">=0.0.0-0")],_O=[new I5(">=0.0.0")],WGe=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===v4){if(t.length===1&&t[0].semver===v4)return!0;r.includePrerelease?e=UGe:e=_O}if(t.length===1&&t[0].semver===v4){if(r.includePrerelease)return!0;t=_O}const s=new Set;let n,i;for(const A of e)A.operator===">"||A.operator===">="?n=VO(n,A,r):A.operator==="<"||A.operator==="<="?i=zO(i,A,r):s.add(A.semver);if(s.size>1)return null;let o;if(n&&i&&(o=k5(n.semver,i.semver,r),o>0||o===0&&(n.operator!==">="||i.operator!=="<=")))return null;for(const A of s){if(n&&!Lb(A,String(n),r)||i&&!Lb(A,String(i),r))return null;for(const w of t)if(!Lb(A,String(w),r))return!1;return!0}let a,l,c,u,d=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1,g=n&&!r.includePrerelease&&n.semver.prerelease.length?n.semver:!1;d&&d.prerelease.length===1&&i.operator==="<"&&d.prerelease[0]===0&&(d=!1);for(const A of t){if(u=u||A.operator===">"||A.operator===">=",c=c||A.operator==="<"||A.operator==="<=",n){if(g&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===g.major&&A.semver.minor===g.minor&&A.semver.patch===g.patch&&(g=!1),A.operator===">"||A.operator===">="){if(a=VO(n,A,r),a===A&&a!==n)return!1}else if(n.operator===">="&&!Lb(n.semver,String(A),r))return!1}if(i){if(d&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===d.major&&A.semver.minor===d.minor&&A.semver.patch===d.patch&&(d=!1),A.operator==="<"||A.operator==="<="){if(l=zO(i,A,r),l===A&&l!==i)return!1}else if(i.operator==="<="&&!Lb(i.semver,String(A),r))return!1}if(!A.operator&&(i||n)&&o!==0)return!1}return!(n&&c&&!i&&o!==0||i&&u&&!n&&o!==0||g||d)},VO=(e,t,r)=>{if(!e)return t;const s=k5(e.semver,t.semver,r);return s>0?e:s<0||t.operator===">"&&e.operator===">="?t:e},zO=(e,t,r)=>{if(!e)return t;const s=k5(e.semver,t.semver,r);return s<0?e:s>0||t.operator==="<"&&e.operator==="<="?t:e};var jGe=QGe;const C4=n3,QO=ET,KGe=ba,UO=pJ,YGe=Jw,ZGe=tHe,XGe=nHe,$Ge=oHe,JGe=lHe,qGe=dHe,eOe=gHe,tOe=mHe,rOe=wHe,sOe=md,nOe=xHe,iOe=FHe,oOe=F5,aOe=MHe,lOe=BHe,cOe=FT,uOe=R5,dOe=gJ,hOe=fJ,pOe=T5,gOe=D5,fOe=AJ,AOe=sGe,mOe=RT(),vOe=vd(),COe=TT,wOe=uGe,yOe=gGe,bOe=vGe,SOe=yGe,xOe=xGe,EOe=M5,POe=BGe,FOe=GGe,ROe=NGe,TOe=zGe,DOe=jGe;C4.re,C4.src,C4.t,QO.SEMVER_SPEC_VERSION,QO.RELEASE_TYPES,UO.compareIdentifiers,UO.rcompareIdentifiers;const MOe="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2NvbnN0ICQ9U3ltYm9sKCJDb21saW5rLnByb3h5IiksQT1TeW1ib2woIkNvbWxpbmsuZW5kcG9pbnQiKSxSPVN5bWJvbCgiQ29tbGluay5yZWxlYXNlUHJveHkiKSx5PVN5bWJvbCgiQ29tbGluay50aHJvd24iKSxfPWU9PnR5cGVvZiBlPT0ib2JqZWN0IiYmZSE9PW51bGx8fHR5cGVvZiBlPT0iZnVuY3Rpb24iLEw9e2NhbkhhbmRsZTplPT5fKGUpJiZlWyRdLHNlcmlhbGl6ZShlKXtjb25zdHtwb3J0MTpyLHBvcnQyOml9PW5ldyBNZXNzYWdlQ2hhbm5lbDtyZXR1cm4gdyhlLHIpLFtpLFtpXV19LGRlc2VyaWFsaXplKGUpe3JldHVybiBlLnN0YXJ0KCksQyhlKX19LE89e2NhbkhhbmRsZTplPT5fKGUpJiZ5IGluIGUsc2VyaWFsaXplKHt2YWx1ZTplfSl7bGV0IHI7cmV0dXJuIGUgaW5zdGFuY2VvZiBFcnJvcj9yPXtpc0Vycm9yOiEwLHZhbHVlOnttZXNzYWdlOmUubWVzc2FnZSxuYW1lOmUubmFtZSxzdGFjazplLnN0YWNrfX06cj17aXNFcnJvcjohMSx2YWx1ZTplfSxbcixbXV19LGRlc2VyaWFsaXplKGUpe3Rocm93IGUuaXNFcnJvcj9PYmplY3QuYXNzaWduKG5ldyBFcnJvcihlLnZhbHVlLm1lc3NhZ2UpLGUudmFsdWUpOmUudmFsdWV9fSxFPW5ldyBNYXAoW1sicHJveHkiLExdLFsidGhyb3ciLE9dXSk7ZnVuY3Rpb24gdyhlLHI9c2VsZil7ci5hZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIixmdW5jdGlvbiBpKHMpe2lmKCFzfHwhcy5kYXRhKXJldHVybjtjb25zdHtpZDpvLHR5cGU6YSxwYXRoOm59PU9iamVjdC5hc3NpZ24oe3BhdGg6W119LHMuZGF0YSksYz0ocy5kYXRhLmFyZ3VtZW50TGlzdHx8W10pLm1hcChtKTtsZXQgbDt0cnl7Y29uc3QgdT1uLnNsaWNlKDAsLTEpLnJlZHVjZSgoZCxwKT0+ZFtwXSxlKSxmPW4ucmVkdWNlKChkLHApPT5kW3BdLGUpO3N3aXRjaChhKXtjYXNlIkdFVCI6bD1mO2JyZWFrO2Nhc2UiU0VUIjp1W24uc2xpY2UoLTEpWzBdXT1tKHMuZGF0YS52YWx1ZSksbD0hMDticmVhaztjYXNlIkFQUExZIjpsPWYuYXBwbHkodSxjKTticmVhaztjYXNlIkNPTlNUUlVDVCI6e2NvbnN0IGQ9bmV3IGYoLi4uYyk7bD16KGQpfWJyZWFrO2Nhc2UiRU5EUE9JTlQiOntjb25zdHtwb3J0MTpkLHBvcnQyOnB9PW5ldyBNZXNzYWdlQ2hhbm5lbDt3KGUscCksbD1OKGQsW2RdKX1icmVhaztjYXNlIlJFTEVBU0UiOmw9dm9pZCAwO2JyZWFrO2RlZmF1bHQ6cmV0dXJufX1jYXRjaCh1KXtsPXt2YWx1ZTp1LFt5XTowfX1Qcm9taXNlLnJlc29sdmUobCkuY2F0Y2godT0+KHt2YWx1ZTp1LFt5XTowfSkpLnRoZW4odT0+e2NvbnN0W2YsZF09Uyh1KTtyLnBvc3RNZXNzYWdlKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxmKSx7aWQ6b30pLGQpLGE9PT0iUkVMRUFTRSImJihyLnJlbW92ZUV2ZW50TGlzdGVuZXIoIm1lc3NhZ2UiLGkpLE0ocikpfSl9KSxyLnN0YXJ0JiZyLnN0YXJ0KCl9ZnVuY3Rpb24gVChlKXtyZXR1cm4gZS5jb25zdHJ1Y3Rvci5uYW1lPT09Ik1lc3NhZ2VQb3J0In1mdW5jdGlvbiBNKGUpe1QoZSkmJmUuY2xvc2UoKX1mdW5jdGlvbiBDKGUscil7cmV0dXJuIGIoZSxbXSxyKX1mdW5jdGlvbiBoKGUpe2lmKGUpdGhyb3cgbmV3IEVycm9yKCJQcm94eSBoYXMgYmVlbiByZWxlYXNlZCBhbmQgaXMgbm90IHVzZWFibGUiKX1mdW5jdGlvbiBiKGUscj1bXSxpPWZ1bmN0aW9uKCl7fSl7bGV0IHM9ITE7Y29uc3Qgbz1uZXcgUHJveHkoaSx7Z2V0KGEsbil7aWYoaChzKSxuPT09UilyZXR1cm4oKT0+ZyhlLHt0eXBlOiJSRUxFQVNFIixwYXRoOnIubWFwKGM9PmMudG9TdHJpbmcoKSl9KS50aGVuKCgpPT57TShlKSxzPSEwfSk7aWYobj09PSJ0aGVuIil7aWYoci5sZW5ndGg9PT0wKXJldHVybnt0aGVuOigpPT5vfTtjb25zdCBjPWcoZSx7dHlwZToiR0VUIixwYXRoOnIubWFwKGw9PmwudG9TdHJpbmcoKSl9KS50aGVuKG0pO3JldHVybiBjLnRoZW4uYmluZChjKX1yZXR1cm4gYihlLFsuLi5yLG5dKX0sc2V0KGEsbixjKXtoKHMpO2NvbnN0W2wsdV09UyhjKTtyZXR1cm4gZyhlLHt0eXBlOiJTRVQiLHBhdGg6Wy4uLnIsbl0ubWFwKGY9PmYudG9TdHJpbmcoKSksdmFsdWU6bH0sdSkudGhlbihtKX0sYXBwbHkoYSxuLGMpe2gocyk7Y29uc3QgbD1yW3IubGVuZ3RoLTFdO2lmKGw9PT1BKXJldHVybiBnKGUse3R5cGU6IkVORFBPSU5UIn0pLnRoZW4obSk7aWYobD09PSJiaW5kIilyZXR1cm4gYihlLHIuc2xpY2UoMCwtMSkpO2NvbnN0W3UsZl09RihjKTtyZXR1cm4gZyhlLHt0eXBlOiJBUFBMWSIscGF0aDpyLm1hcChkPT5kLnRvU3RyaW5nKCkpLGFyZ3VtZW50TGlzdDp1fSxmKS50aGVuKG0pfSxjb25zdHJ1Y3QoYSxuKXtoKHMpO2NvbnN0W2MsbF09RihuKTtyZXR1cm4gZyhlLHt0eXBlOiJDT05TVFJVQ1QiLHBhdGg6ci5tYXAodT0+dS50b1N0cmluZygpKSxhcmd1bWVudExpc3Q6Y30sbCkudGhlbihtKX19KTtyZXR1cm4gb31mdW5jdGlvbiBEKGUpe3JldHVybiBBcnJheS5wcm90b3R5cGUuY29uY2F0LmFwcGx5KFtdLGUpfWZ1bmN0aW9uIEYoZSl7Y29uc3Qgcj1lLm1hcChTKTtyZXR1cm5bci5tYXAoaT0+aVswXSksRChyLm1hcChpPT5pWzFdKSldfWNvbnN0IFA9bmV3IFdlYWtNYXA7ZnVuY3Rpb24gTihlLHIpe3JldHVybiBQLnNldChlLHIpLGV9ZnVuY3Rpb24geihlKXtyZXR1cm4gT2JqZWN0LmFzc2lnbihlLHtbJF06ITB9KX1mdW5jdGlvbiBTKGUpe2Zvcihjb25zdFtyLGldb2YgRSlpZihpLmNhbkhhbmRsZShlKSl7Y29uc3RbcyxvXT1pLnNlcmlhbGl6ZShlKTtyZXR1cm5be3R5cGU6IkhBTkRMRVIiLG5hbWU6cix2YWx1ZTpzfSxvXX1yZXR1cm5be3R5cGU6IlJBVyIsdmFsdWU6ZX0sUC5nZXQoZSl8fFtdXX1mdW5jdGlvbiBtKGUpe3N3aXRjaChlLnR5cGUpe2Nhc2UiSEFORExFUiI6cmV0dXJuIEUuZ2V0KGUubmFtZSkuZGVzZXJpYWxpemUoZS52YWx1ZSk7Y2FzZSJSQVciOnJldHVybiBlLnZhbHVlfX1mdW5jdGlvbiBnKGUscixpKXtyZXR1cm4gbmV3IFByb21pc2Uocz0+e2NvbnN0IG89VSgpO2UuYWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsZnVuY3Rpb24gYShuKXshbi5kYXRhfHwhbi5kYXRhLmlkfHxuLmRhdGEuaWQhPT1vfHwoZS5yZW1vdmVFdmVudExpc3RlbmVyKCJtZXNzYWdlIixhKSxzKG4uZGF0YSkpfSksZS5zdGFydCYmZS5zdGFydCgpLGUucG9zdE1lc3NhZ2UoT2JqZWN0LmFzc2lnbih7aWQ6b30sciksaSl9KX1mdW5jdGlvbiBVKCl7cmV0dXJuIG5ldyBBcnJheSg0KS5maWxsKDApLm1hcCgoKT0+TWF0aC5mbG9vcihNYXRoLnJhbmRvbSgpKk51bWJlci5NQVhfU0FGRV9JTlRFR0VSKS50b1N0cmluZygxNikpLmpvaW4oIi0iKX1jb25zdCBXPWFzeW5jKCk9PldlYkFzc2VtYmx5LnZhbGlkYXRlKG5ldyBVaW50OEFycmF5KFswLDk3LDExNSwxMDksMSwwLDAsMCwxLDUsMSw5NiwwLDEsMTIzLDMsMiwxLDAsMTAsMTAsMSw4LDAsNjUsMCwyNTMsMTUsMjUzLDk4LDExXSkpLGs9ImVhZ2VyIix4PSJsYXp5IixqPXtzc3c6WyJzaW1kIl0sbWluaW1hcDI6WyJzaW1kIl19LHQ9e3Rvb2xzOltdLGNvbmZpZzp7fSxmaWxlczpbXSxiYXNlOnt9LGZzOnt9LGFzeW5jIGluaXQoKXtpZih0LnRvb2xzLmxlbmd0aD09PTApdGhyb3ciRXhwZWN0aW5nIGF0IGxlYXN0IDEgdG9vbC4iO2lmKG5ldyBTZXQodC50b29scy5tYXAocj0+YCR7ci50b29sfS8ke3IucHJvZ3JhbXx8ci50b29sfWApKS5zaXplIT09dC50b29scy5sZW5ndGgpdGhyb3ciRm91bmQgZHVwbGljYXRlIHRvb2xzOyBjYW4gb25seSBoYXZlIGVhY2ggdG9vbC9wcm9ncmFtIGNvbWJpbmF0aW9uIGF0IG1vc3Qgb25jZS4iO2lmKHQuYmFzZT10LnRvb2xzLmZpbmQocj0+ci5yZWluaXQhPT0hMCksIXQuYmFzZSl0aHJvdyJDb3VsZCBub3QgZmluZCBhIHRvb2wgd2l0aCBgcmVpbml0OiBmYWxzZWAgdG8gdXNlIGFzIHRoZSBiYXNlIG1vZHVsZS4gVG8gZml4IHRoaXMgaXNzdWUsIGluY2x1ZGUgdGhlIHRvb2wgYGJhc2UvMS4wLjBgIHdoZW4gaW5pdGlhbGl6aW5nIEFpb2xpLiI7cmV0dXJuIHQuYmFzZS5pc0Jhc2VNb2R1bGU9ITAsYXdhaXQgdGhpcy5fc2V0dXAodC5iYXNlKSxhd2FpdCB0aGlzLl9pbml0TW9kdWxlcygpLHQuX2xvZygiUmVhZHkiKSwhMH0sYXN5bmMgX2luaXRNb2R1bGVzKCl7YXdhaXQgUHJvbWlzZS5hbGwodC50b29scy5tYXAodGhpcy5fc2V0dXApKSxhd2FpdCB0aGlzLl9zZXR1cEZTKCl9LG1vdW50KGU9W10pe2NvbnN0IHI9YCR7dC5jb25maWcuZGlyU2hhcmVkfSR7dC5jb25maWcuZGlyRGF0YX1gLGk9YCR7dC5jb25maWcuZGlyU2hhcmVkfSR7dC5jb25maWcuZGlyTW91bnRlZH1gO2xldCBzPVtdLG89W10sYT1bXTshQXJyYXkuaXNBcnJheShlKSYmIShlIGluc3RhbmNlb2YgRmlsZUxpc3QpJiYoZT1bZV0pLHQuX2xvZyhgTW91bnRpbmcgJHtlLmxlbmd0aH0gZmlsZXNgKTtmb3IobGV0IG4gb2YgZSl7aWYobiBpbnN0YW5jZW9mIEZpbGV8fChuPT1udWxsP3ZvaWQgMDpuLmRhdGEpaW5zdGFuY2VvZiBCbG9iJiZuLm5hbWV8fHR5cGVvZihuPT1udWxsP3ZvaWQgMDpuLmRhdGEpPT0ic3RyaW5nIiYmbi5uYW1lKXR5cGVvZihuPT1udWxsP3ZvaWQgMDpuLmRhdGEpPT0ic3RyaW5nIiYmKG4uZGF0YT1uZXcgQmxvYihbbi5kYXRhXSx7dHlwZToidGV4dC9wbGFpbiJ9KSkscy5wdXNoKG4pO2Vsc2UgaWYobi5uYW1lJiZuLnVybClvLnB1c2gobik7ZWxzZSBpZih0eXBlb2Ygbj09InN0cmluZyImJm4uc3RhcnRzV2l0aCgiaHR0cCIpKW49e3VybDpuLG5hbWU6bi5zcGxpdCgiLy8iKS5wb3AoKS5yZXBsYWNlKC9cLy9nLCItIil9LG8ucHVzaChuKTtlbHNlIHRocm93J0Nhbm5vdCBtb3VudCBmaWxlKHMpIHNwZWNpZmllZC4gTXVzdCBiZSBhIEZpbGUsIEJsb2IsIGEgVVJMIHN0cmluZywgb3IgeyBuYW1lOiAiZmlsZS50eHQiLCBkYXRhOiAic3RyaW5nIiB9Lic7YS5wdXNoKG4ubmFtZSl9dHJ5e3QuZnMudW5tb3VudChpKX1jYXRjaHt9Zm9yKGxldCBuIG9mIG8pdC5mcy5jcmVhdGVMYXp5RmlsZShyLG4ubmFtZSxuLnVybCwhMCwhMCk7cmV0dXJuIHQuZmlsZXM9dC5maWxlcy5jb25jYXQocyksdC5iYXNlLm1vZHVsZS5GUy5tb3VudCh0LmJhc2UubW9kdWxlLldPUktFUkZTLHtmaWxlczp0LmZpbGVzLmZpbHRlcihuPT5uIGluc3RhbmNlb2YgRmlsZSksYmxvYnM6dC5maWxlcy5maWx0ZXIobj0+KG49PW51bGw/dm9pZCAwOm4uZGF0YSlpbnN0YW5jZW9mIEJsb2IpfSxpKSxzLm1hcChuPT57Y29uc3QgYz1gJHtpfS8ke24ubmFtZX1gLGw9YCR7cn0vJHtuLm5hbWV9YDt0cnl7dC5mcy51bmxpbmsobCl9Y2F0Y2h7fXQuX2xvZyhgQ3JlYXRpbmcgc3ltbGluazogJHtsfSAtLT4gJHtjfWApLHQuZnMuc3ltbGluayhjLGwpfSksYS5tYXAobj0+YCR7cn0vJHtufWApfSxhc3luYyBleGVjKGUscj1udWxsKXtpZih0Ll9sb2coYEV4ZWN1dGluZyAlYyR7ZX0lYyBhcmdzPSR7cn1gLCJjb2xvcjpkYXJrYmx1ZTsgZm9udC13ZWlnaHQ6Ym9sZCIsIiIpLCFlKXRocm93IkV4cGVjdGluZyBhIGNvbW1hbmQiO2xldCBpPWU7cj09bnVsbCYmKHI9ZS5zcGxpdCgiICIpLGk9ci5zaGlmdCgpKTtjb25zdCBzPXQudG9vbHMuZmluZChhPT57dmFyIGM7bGV0IG49aTtyZXR1cm4oKGM9YT09bnVsbD92b2lkIDA6YS5mZWF0dXJlcyk9PW51bGw/dm9pZCAwOmMuc2ltZCk9PT0hMCYmKG49YCR7bn0tc2ltZGApLGEucHJvZ3JhbT09bn0pO2lmKHM9PW51bGwpdGhyb3dgUHJvZ3JhbSAke2l9IG5vdCBmb3VuZC5gO3Muc3Rkb3V0PSIiLHMuc3RkZXJyPSIiLHMubG9hZGluZz09eCYmKHMubG9hZGluZz1rLGF3YWl0IHRoaXMuX2luaXRNb2R1bGVzKCkpO3RyeXtzLm1vZHVsZS5jYWxsTWFpbihyKX1jYXRjaChhKXtjb25zb2xlLmVycm9yKGEpfXRyeXtzLm1vZHVsZS5GUy5jbG9zZShzLm1vZHVsZS5GUy5zdHJlYW1zWzFdKSxzLm1vZHVsZS5GUy5jbG9zZShzLm1vZHVsZS5GUy5zdHJlYW1zWzJdKX1jYXRjaHt9cy5tb2R1bGUuRlMuc3RyZWFtc1sxXT1zLm1vZHVsZS5GUy5vcGVuKCIvZGV2L3N0ZG91dCIsInciKSxzLm1vZHVsZS5GUy5zdHJlYW1zWzJdPXMubW9kdWxlLkZTLm9wZW4oIi9kZXYvc3RkZXJyIiwidyIpO2xldCBvPXtzdGRvdXQ6cy5zdGRvdXQsc3RkZXJyOnMuc3RkZXJyfTtyZXR1cm4gdC5jb25maWcucHJpbnRJbnRlcmxlYXZlZCYmKG89cy5zdGRvdXQpLHMucmVpbml0PT09ITAmJmF3YWl0IHRoaXMucmVpbml0KHMudG9vbCksb30sY2F0KGUpe3JldHVybiB0Ll9maWxlb3AoImNhdCIsZSl9LGxzKGUpe3JldHVybiB0Ll9maWxlb3AoImxzIixlKX0sZG93bmxvYWQoZSl7cmV0dXJuIHQuX2ZpbGVvcCgiZG93bmxvYWQiLGUpfSxwd2QoKXtyZXR1cm4gdC5mcy5jd2QoKX0sY2QoZSl7Zm9yKGxldCByIG9mIHQudG9vbHMpIXIubW9kdWxlfHxyLm1vZHVsZS5GUy5jaGRpcihlKX0sbWtkaXIoZSl7cmV0dXJuIHQuZnMubWtkaXIoZSksITB9LHJlYWQoe3BhdGg6ZSxsZW5ndGg6cixmbGFnOmk9InIiLG9mZnNldDpzPTAscG9zaXRpb246bz0wfSl7Y29uc3QgYT10LmZzLm9wZW4oZSxpKSxuPW5ldyBVaW50OEFycmF5KHIpO3JldHVybiB0LmZzLnJlYWQoYSxuLHMscixvKSx0LmZzLmNsb3NlKGEpLG59LHdyaXRlKHtwYXRoOmUsYnVmZmVyOnIsZmxhZzppPSJ3KyIsb2Zmc2V0OnM9MCxwb3NpdGlvbjpvPTB9KXtjb25zdCBhPXQuZnMub3BlbihlLGkpO3QuZnMud3JpdGUoYSxyLHMsci5sZW5ndGgsbyksdC5mcy5jbG9zZShhKX0sYXN5bmMgcmVpbml0KGUpe2NvbnN0IHI9dC50b29scy5maW5kKHM9PnMudG9vbD09ZSksaT10LmJhc2UubW9kdWxlLkZTLmN3ZCgpO09iamVjdC5hc3NpZ24ocixyLmNvbmZpZyksci5yZWFkeT0hMSxhd2FpdCB0aGlzLmluaXQoKSxyLmlzQmFzZU1vZHVsZSYmdGhpcy5tb3VudCgpLHRoaXMuY2QoaSl9LF9zdGRpblR4dDoiIixfc3RkaW5QdHI6MCxnZXQgc3RkaW4oKXtyZXR1cm4gdC5fc3RkaW5UeHR9LHNldCBzdGRpbihlPSIiKXt0Ll9sb2coYFNldHRpbmcgc3RkaW4gdG8gJWMke2V9JWNgLCJjb2xvcjpkYXJrYmx1ZSIsIiIpLHQuX3N0ZGluVHh0PWUsdC5fc3RkaW5QdHI9MH0sYXN5bmMgX3NldHVwKGUpe2lmKGUucmVhZHkpcmV0dXJuO2lmKHQuX2xvZyhgU2V0dGluZyB1cCAke2UudG9vbH0gKGJhc2UgPSAke2UuaXNCYXNlTW9kdWxlPT09ITB9KS4uLmApLGUuY29uZmlnPU9iamVjdC5hc3NpZ24oe30sZSksZS51cmxQcmVmaXh8fChlLnVybFByZWZpeD1gJHt0LmNvbmZpZy51cmxDRE59LyR7ZS50b29sfS8ke2UudmVyc2lvbn1gKSxlLnByb2dyYW18fChlLnByb2dyYW09ZS50b29sKSxlLmZlYXR1cmVzfHwoZS5mZWF0dXJlcz17fSwoaltlLnByb2dyYW1dfHxbXSkuaW5jbHVkZXMoInNpbWQiKSYmKGF3YWl0IFcoKT8oZS5wcm9ncmFtKz0iLXNpbWQiLGUuZmVhdHVyZXMuc2ltZD0hMCk6dC5fbG9nKGBXZWJBc3NlbWJseSBTSU1EIGlzIG5vdCBzdXBwb3J0ZWQgaW4gdGhpcyBicm93c2VyOyB3aWxsIGxvYWQgbm9uLVNJTUQgdmVyc2lvbiBvZiAke2UucHJvZ3JhbX0uYCkpKSxlLmlzQmFzZU1vZHVsZSYmKGUubG9hZGluZz1rKSxlLmxvYWRpbmc9PT14KXt0Ll9sb2coYFdpbGwgbGF6eS1sb2FkICR7ZS50b29sfTsgc2tpcHBpbmcgaW5pdGlhbGl6YXRpb24uYCk7cmV0dXJufXNlbGYuaW1wb3J0U2NyaXB0cyhgJHtlLnVybFByZWZpeH0vJHtlLnByb2dyYW19LmpzYCksZS5tb2R1bGU9YXdhaXQgTW9kdWxlKHt0aGlzUHJvZ3JhbTplLnByb2dyYW0sbG9jYXRlRmlsZTooaSxzKT0+YCR7ZS51cmxQcmVmaXh9LyR7aX1gLHN0ZGluOigpPT50Ll9zdGRpblB0cjx0LnN0ZGluLmxlbmd0aD90LnN0ZGluLmNoYXJDb2RlQXQodC5fc3RkaW5QdHIrKyk6KHQuc3RkaW49IiIsbnVsbCkscHJpbnQ6aT0+e3QuY29uZmlnLnByaW50U3RyZWFtP3Bvc3RNZXNzYWdlKHt0eXBlOiJiaW93YXNtIix2YWx1ZTp7c3Rkb3V0Oml9fSk6ZS5zdGRvdXQrPWkrYApgfSxwcmludEVycjppPT57Y29uc3Qgcz10LmNvbmZpZy5wcmludEludGVybGVhdmVkPyJzdGRvdXQiOiJzdGRlcnIiO3QuY29uZmlnLnByaW50U3RyZWFtP3Bvc3RNZXNzYWdlKHt0eXBlOiJiaW93YXNtIix2YWx1ZTp7W3NdOml9fSk6ZVtzXSs9aStgCmB9fSk7Y29uc3Qgcj1lLm1vZHVsZS5GUztlLmlzQmFzZU1vZHVsZT8odC5fbG9nKGBTZXR0aW5nIHVwICR7ZS50b29sfSB3aXRoIGJhc2UgbW9kdWxlIGZpbGVzeXN0ZW0uLi5gKSxyLm1rZGlyKHQuY29uZmlnLmRpclNoYXJlZCw1MTEpLHIubWtkaXIoYCR7dC5jb25maWcuZGlyU2hhcmVkfS8ke3QuY29uZmlnLmRpckRhdGF9YCw1MTEpLHIubWtkaXIoYCR7dC5jb25maWcuZGlyU2hhcmVkfS8ke3QuY29uZmlnLmRpck1vdW50ZWR9YCw1MTEpLHIuY2hkaXIoYCR7dC5jb25maWcuZGlyU2hhcmVkfS8ke3QuY29uZmlnLmRpckRhdGF9YCksdC5mcz1yKToodC5fbG9nKGBTZXR0aW5nIHVwICR7ZS50b29sfSB3aXRoIGZpbGVzeXN0ZW0uLi5gKSxyLm1rZGlyKHQuY29uZmlnLmRpclNoYXJlZCksci5tb3VudChlLm1vZHVsZS5QUk9YWUZTLHtyb290OnQuY29uZmlnLmRpclNoYXJlZCxmczp0LmZzfSx0LmNvbmZpZy5kaXJTaGFyZWQpLHIuY2hkaXIodC5mcy5jd2QoKSkpLGUuc3Rkb3V0PSIiLGUuc3RkZXJyPSIiLGUucmVhZHk9ITB9LGFzeW5jIF9zZXR1cEZTKCl7Y29uc3QgZT10LmZzO2ZvcihsZXQgciBvZiB0LnRvb2xzKXtpZighci5yZWFkeSljb250aW51ZTtjb25zdCBpPXIubW9kdWxlLkZTLHM9YC8ke3IudG9vbH1gLG89YCR7dC5jb25maWcuZGlyU2hhcmVkfSR7c31gOyFpLmFuYWx5emVQYXRoKHMpLmV4aXN0c3x8ZS5hbmFseXplUGF0aChvKS5leGlzdHN8fCh0Ll9sb2coYE1vdW50aW5nICR7c30gb250byAke3QuYmFzZS50b29sfSBmaWxlc3lzdGVtIGF0ICR7b31gKSxlLm1rZGlyKG8pLGUubW91bnQodC5iYXNlLm1vZHVsZS5QUk9YWUZTLHtyb290OnMsZnM6aX0sbykpfX0sX2ZpbGVvcChlLHIpe3QuX2xvZyhgUnVubmluZyAke2V9ICR7cn1gKTtjb25zdCBpPXQuZnMuYW5hbHl6ZVBhdGgocik7aWYoIWkuZXhpc3RzKXJldHVybiB0Ll9sb2coYEZpbGUgJHtyfSBub3QgZm91bmQuYCksITE7c3dpdGNoKGUpe2Nhc2UiY2F0IjpyZXR1cm4gdC5mcy5yZWFkRmlsZShyLHtlbmNvZGluZzoidXRmOCJ9KTtjYXNlImxzIjpyZXR1cm4gdC5mcy5pc0ZpbGUoaS5vYmplY3QubW9kZSk/dC5mcy5zdGF0KHIpOnQuZnMucmVhZGRpcihyKTtjYXNlImRvd25sb2FkIjpjb25zdCBzPW5ldyBCbG9iKFt0aGlzLmNhdChyKV0pO3JldHVybiBVUkwuY3JlYXRlT2JqZWN0VVJMKHMpfXJldHVybiExfSxfbG9nKGUpe2lmKCF0LmNvbmZpZy5kZWJ1ZylyZXR1cm47bGV0IHI9Wy4uLmFyZ3VtZW50c107ci5zaGlmdCgpLGNvbnNvbGUubG9nKGAlY1tXZWJXb3JrZXJdJWMgJHtlfWAsImZvbnQtd2VpZ2h0OmJvbGQiLCIiLC4uLnIpfX07dyh0KX0pKCk7Cg==";typeof window<"u"&&window.Blob&&new Blob([atob(MOe)],{type:"text/javascript;charset=utf-8"});function F2(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function IOe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function B5(e){let t,r,s;e.length!==2?(t=F2,r=(a,l)=>F2(e(a),l),s=(a,l)=>e(a)-l):(t=e===F2||e===IOe?e:kOe,r=e,s=e);function n(a,l,c=0,u=a.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;r(a[d],l)<0?c=d+1:u=d}while(c<u)}return c}function i(a,l,c=0,u=a.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;r(a[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function o(a,l,c=0,u=a.length){const d=n(a,l,c,u-1);return d>c&&s(a[d-1],l)>-s(a[d],l)?d-1:d}return{left:n,center:o,right:i}}function kOe(){return 0}function BOe(e){return e===null?NaN:+e}const LOe=B5(F2),HOe=LOe.right;B5(BOe).center;const GOe=Math.sqrt(50),OOe=Math.sqrt(10),NOe=Math.sqrt(2);function JF(e,t,r){const s=(t-e)/Math.max(0,r),n=Math.floor(Math.log10(s)),i=s/Math.pow(10,n),o=i>=GOe?10:i>=OOe?5:i>=NOe?2:1;let a,l,c;return n<0?(c=Math.pow(10,-n)/o,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,n)*o,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=r&&r<2?JF(e,t,r*2):[a,l,c]}function hB(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const s=t<e,[n,i,o]=s?JF(t,e,r):JF(e,t,r);if(!(i>=n))return[];const a=i-n+1,l=new Array(a);if(s)if(o<0)for(let c=0;c<a;++c)l[c]=(i-c)/-o;else for(let c=0;c<a;++c)l[c]=(i-c)*o;else if(o<0)for(let c=0;c<a;++c)l[c]=(n+c)/-o;else for(let c=0;c<a;++c)l[c]=(n+c)*o;return l}function pB(e,t,r){return t=+t,e=+e,r=+r,JF(e,t,r)[2]}function gB(e,t,r){t=+t,e=+e,r=+r;const s=t<e,n=s?pB(t,e,r):pB(e,t,r);return(s?-1:1)*(n<0?1/-n:n)}function _Oe(e){var t=0,r=e.children,s=r&&r.length;if(!s)t=1;else for(;--s>=0;)t+=r[s].value;e.value=t}function VOe(){return this.eachAfter(_Oe)}function zOe(e,t){let r=-1;for(const s of this)e.call(t,s,++r,this);return this}function QOe(e,t){for(var r=this,s=[r],n,i,o=-1;r=s.pop();)if(e.call(t,r,++o,this),n=r.children)for(i=n.length-1;i>=0;--i)s.push(n[i]);return this}function UOe(e,t){for(var r=this,s=[r],n=[],i,o,a,l=-1;r=s.pop();)if(n.push(r),i=r.children)for(o=0,a=i.length;o<a;++o)s.push(i[o]);for(;r=n.pop();)e.call(t,r,++l,this);return this}function WOe(e,t){let r=-1;for(const s of this)if(e.call(t,s,++r,this))return s}function jOe(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,s=t.children,n=s&&s.length;--n>=0;)r+=s[n].value;t.value=r})}function KOe(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function YOe(e){for(var t=this,r=ZOe(t,e),s=[t];t!==r;)t=t.parent,s.push(t);for(var n=s.length;e!==r;)s.splice(n,0,e),e=e.parent;return s}function ZOe(e,t){if(e===t)return e;var r=e.ancestors(),s=t.ancestors(),n=null;for(e=r.pop(),t=s.pop();e===t;)n=e,e=r.pop(),t=s.pop();return n}function XOe(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function $Oe(){return Array.from(this)}function JOe(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function qOe(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function*e9e(){var e=this,t,r=[e],s,n,i;do for(t=r.reverse(),r=[];e=t.pop();)if(yield e,s=e.children)for(n=0,i=s.length;n<i;++n)r.push(s[n]);while(r.length)}function vJ(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=s9e)):t===void 0&&(t=r9e);for(var r=new qF(e),s,n=[r],i,o,a,l;s=n.pop();)if((o=t(s.data))&&(l=(o=Array.from(o)).length))for(s.children=o,a=l-1;a>=0;--a)n.push(i=o[a]=new qF(o[a])),i.parent=s,i.depth=s.depth+1;return r.eachBefore(i9e)}function t9e(){return vJ(this).eachBefore(n9e)}function r9e(e){return e.children}function s9e(e){return Array.isArray(e)?e[1]:null}function n9e(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function i9e(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function qF(e){this.data=e,this.depth=this.height=0,this.parent=null}qF.prototype=vJ.prototype={constructor:qF,count:VOe,each:zOe,eachAfter:UOe,eachBefore:QOe,find:WOe,sum:jOe,sort:KOe,path:YOe,ancestors:XOe,descendants:$Oe,leaves:JOe,links:qOe,copy:t9e,[Symbol.iterator]:e9e};var Lm={},CJ={exports:{}},qr={};/**
729
+ }`;var Kr=c8(function(){return ps(ie,Yt+"return "+lt).apply(r,ge)});if(Kr.source=lt,XD(Kr))throw Kr;return Kr}function cne(f){return Gs(f).toLowerCase()}function une(f){return Gs(f).toUpperCase()}function dne(f,m,E){if(f=Gs(f),f&&(E||m===r))return ht(f);if(!f||!(m=xo(m)))return f;var H=Xo(f),K=Xo(m),ie=Ls(H,K),ge=ui(H,K)+1;return Pu(H,ie,ge).join("")}function hne(f,m,E){if(f=Gs(f),f&&(E||m===r))return f.slice(0,aC(f)+1);if(!f||!(m=xo(m)))return f;var H=Xo(f),K=ui(H,Xo(m))+1;return Pu(H,0,K).join("")}function pne(f,m,E){if(f=Gs(f),f&&(E||m===r))return f.replace(bd,"");if(!f||!(m=xo(m)))return f;var H=Xo(f),K=Ls(H,Xo(m));return Pu(H,K).join("")}function gne(f,m){var E=j,H=_;if(Pn(m)){var K="separator"in m?m.separator:K;E="length"in m?Wr(m.length):E,H="omission"in m?xo(m.omission):H}f=Gs(f);var ie=f.length;if(Ug(f)){var ge=Xo(f);ie=ge.length}if(E>=ie)return f;var me=E-pp(H);if(me<1)return H;var Ee=ge?Pu(ge,0,me).join(""):f.slice(0,me);if(K===r)return Ee+H;if(ge&&(me+=Ee.length-me),$D(K)){if(f.slice(me).search(K)){var qe,et=Ee;for(K.global||(K=KA(K.source,Gs(Cl.exec(K))+"g")),K.lastIndex=0;qe=K.exec(et);)var lt=qe.index;Ee=Ee.slice(0,lt===r?me:lt)}}else if(f.indexOf(xo(K),me)!=me){var Pt=Ee.lastIndexOf(K);Pt>-1&&(Ee=Ee.slice(0,Pt))}return Ee+H}function fne(f){return f=Gs(f),f&&ql.test(f)?f.replace(fo,k3):f}var Ane=Pp(function(f,m,E){return f+(E?" ":"")+m.toUpperCase()}),eM=jy("toUpperCase");function l8(f,m,E){return f=Gs(f),m=E?r:m,m===r?yD(f)?ED(f):Vg(f):f.match(m)||[]}var c8=Ur(function(f,m){try{return kn(f,r,m)}catch(E){return XD(E)?E:new xr(E)}}),mne=bc(function(f,m){return Sn(m,function(E){E=Dl(E),fc(f,E,ct(f[E],f))}),f});function vne(f){var m=f==null?0:f.length,E=lr();return f=m?Ts(f,function(H){if(typeof H[1]!="function")throw new ka(o);return[E(H[0]),H[1]]}):[],Ur(function(H){for(var K=-1;++K<m;){var ie=f[K];if(kn(ie[0],this,H))return kn(ie[1],this,H)}})}function Cne(f){return K3(So(f,d))}function tM(f){return function(){return f}}function wne(f,m){return f==null||f!==f?m:f}var yne=_C(),bne=_C(!0);function ja(f){return f}function rM(f){return of(typeof f=="function"?f:So(f,d))}function Sne(f){return TC(So(f,d))}function xne(f,m){return rn(f,So(m,d))}var Ene=Ur(function(f,m){return function(E){return Oa(E,f,m)}}),Pne=Ur(function(f,m){return function(E){return Oa(f,E,m)}});function sM(f,m,E){var H=Ii(m),K=sf(m,H);E==null&&!(Pn(m)&&(K.length||!H.length))&&(E=m,m=f,f=this,K=sf(m,Ii(m)));var ie=!(Pn(E)&&"chain"in E)||!!E.chain,ge=Bp(f);return Sn(K,function(me){var Ee=m[me];f[me]=Ee,ge&&(f.prototype[me]=function(){var qe=this.__chain__;if(ie||qe){var et=f(this.__wrapped__),lt=et.__actions__=ji(this.__actions__);return lt.push({func:Ee,args:arguments,thisArg:f}),et.__chain__=qe,et}return Ee.apply(f,Ma([this.value()],arguments))})}),f}function Fne(){return zs._===this&&(zs._=H3),this}function nM(){}function Rne(f){return f=Wr(f),Ur(function(m){return DC(m,f)})}var Tne=VC(Ts),Dne=VC(_g),Mne=VC(Od);function u8(f){return Bt(f)?I(Dl(f)):dn(f)}function Ine(f){return function(m){return f==null?r:yu(f,m)}}var kne=Yy(),Bne=Yy(!0);function iM(){return[]}function oM(){return!1}function Lne(){return{}}function Hne(){return""}function Gne(){return!0}function One(f,m){if(f=Wr(f),f<1||f>X)return[];var E=$,H=Ei(f,$);m=lr(m),f-=$;for(var K=Te(H,m);++E<f;)m(E);return K}function Nne(f){return Gr(f)?Ts(f,Dl):kl(f)?[f]:ji(ob(Gs(f)))}function _ne(f){var m=++Kg;return Gs(f)+m}var Vne=gm(function(f,m){return f+m},0),zne=hi("ceil"),Qne=gm(function(f,m){return f/m},1),Une=hi("floor");function Wne(f){return f&&f.length?yp(f,ja,Kd):r}function jne(f,m){return f&&f.length?yp(f,lr(m,2),Kd):r}function Kne(f){return WA(f,ja)}function Yne(f,m){return WA(f,lr(m,2))}function Zne(f){return f&&f.length?yp(f,ja,Yd):r}function Xne(f,m){return f&&f.length?yp(f,lr(m,2),Yd):r}var $ne=gm(function(f,m){return f*m},1),Jne=hi("round"),qne=gm(function(f,m){return f-m},0);function eie(f){return f&&f.length?ke(f,ja):0}function tie(f,m){return f&&f.length?ke(f,lr(m,2)):0}return ee.after=Ae,ee.ary=Ge,ee.assign=use,ee.assignIn=t8,ee.assignInWith=ME,ee.assignWith=dse,ee.at=hse,ee.before=at,ee.bind=ct,ee.bindAll=mne,ee.bindKey=it,ee.castArray=Lre,ee.chain=n0,ee.chunk=XC,ee.compact=ab,ee.concat=za,ee.cond=vne,ee.conforms=Cne,ee.constant=tM,ee.countBy=xE,ee.create=pse,ee.curry=Dt,ee.curryRight=_t,ee.debounce=Ut,ee.defaults=gse,ee.defaultsDeep=fse,ee.defer=En,ee.delay=Re,ee.difference=os,ee.differenceBy=ti,ee.differenceWith=Hn,ee.drop=fi,ee.dropRight=ta,ee.dropRightWhile=mf,ee.dropWhile=Qn,ee.fill=bm,ee.filter=a0,ee.flatMap=Cb,ee.flatMapDeep=WD,ee.flatMapDepth=FE,ee.flatten=$C,ee.flattenDeep=xm,ee.flattenDepth=Eo,ee.flip=we,ee.flow=yne,ee.flowRight=bne,ee.fromPairs=lb,ee.functions=bse,ee.functionsIn=Sse,ee.groupBy=wb,ee.initial=JC,ee.intersection=cb,ee.intersectionBy=qd,ee.intersectionWith=qC,ee.invert=Ese,ee.invertBy=Pse,ee.invokeMap=RE,ee.iteratee=rM,ee.keyBy=jD,ee.keys=Ii,ee.keysIn=Wa,ee.map=kp,ee.mapKeys=Rse,ee.mapValues=Tse,ee.matches=Sne,ee.matchesProperty=xne,ee.memoize=Me,ee.merge=Dse,ee.mergeWith=r8,ee.method=Ene,ee.methodOf=Pne,ee.mixin=sM,ee.negate=pt,ee.nthArg=Rne,ee.omit=Mse,ee.omitBy=Ise,ee.once=Kt,ee.orderBy=KD,ee.over=Tne,ee.overArgs=or,ee.overEvery=Dne,ee.overSome=Mne,ee.partial=tr,ee.partialRight=pr,ee.partition=Rm,ee.pick=kse,ee.pickBy=s8,ee.property=u8,ee.propertyOf=Ine,ee.pull=e0,ee.pullAll=Pm,ee.pullAllBy=Xi,ee.pullAllWith=th,ee.pullAt=Ml,ee.range=kne,ee.rangeRight=Bne,ee.rearg=ri,ee.reject=h,ee.remove=Po,ee.rest=fs,ee.reverse=t0,ee.sampleSize=C,ee.set=Lse,ee.setWith=Hse,ee.shuffle=x,ee.slice=db,ee.sortBy=Z,ee.sortedUniq=gb,ee.sortedUniqBy=Dp,ee.split=ine,ee.spread=sh,ee.tail=mE,ee.take=vE,ee.takeRight=fb,ee.takeRightWhile=r0,ee.takeWhile=LD,ee.tap=zD,ee.throttle=ZD,ee.thru=Il,ee.toArray=J6,ee.toPairs=n8,ee.toPairsIn=i8,ee.toPath=Nne,ee.toPlainObject=e8,ee.transform=Gse,ee.unary=kre,ee.union=HD,ee.unionBy=CE,ee.unionWith=wE,ee.uniq=Mp,ee.uniqBy=GD,ee.uniqWith=vf,ee.unset=Ose,ee.unzip=s0,ee.unzipWith=hn,ee.update=Nse,ee.updateWith=_se,ee.values=p0,ee.valuesIn=Vse,ee.without=OD,ee.words=l8,ee.wrap=Bre,ee.xor=yE,ee.xorBy=ND,ee.xorWith=_D,ee.zip=bE,ee.zipObject=SE,ee.zipObjectDeep=VD,ee.zipWith=Qa,ee.entries=n8,ee.entriesIn=i8,ee.extend=t8,ee.extendWith=ME,sM(ee,ee),ee.add=Vne,ee.attempt=c8,ee.camelCase=Wse,ee.capitalize=o8,ee.ceil=zne,ee.clamp=zse,ee.clone=Hre,ee.cloneDeep=Ore,ee.cloneDeepWith=Nre,ee.cloneWith=Gre,ee.conformsTo=_re,ee.deburr=a8,ee.defaultTo=wne,ee.divide=Qne,ee.endsWith=jse,ee.eq=Du,ee.escape=Kse,ee.escapeRegExp=Yse,ee.every=EE,ee.find=l0,ee.findIndex=Jd,ee.findKey=Ase,ee.findLast=PE,ee.findLastIndex=Sm,ee.findLastKey=mse,ee.floor=Une,ee.forEach=c0,ee.forEachRight=Fm,ee.forIn=vse,ee.forInRight=Cse,ee.forOwn=wse,ee.forOwnRight=yse,ee.get=JD,ee.gt=Vre,ee.gte=zre,ee.has=xse,ee.hasIn=qD,ee.head=Rp,ee.identity=ja,ee.includes=u0,ee.indexOf=Tu,ee.inRange=Qse,ee.invoke=Fse,ee.isArguments=Tm,ee.isArray=Gr,ee.isArrayBuffer=Qre,ee.isArrayLike=Ua,ee.isArrayLikeObject=Un,ee.isBoolean=Ure,ee.isBuffer=Cf,ee.isDate=Wre,ee.isElement=jre,ee.isEmpty=Kre,ee.isEqual=Yre,ee.isEqualWith=Zre,ee.isError=XD,ee.isFinite=Xre,ee.isFunction=Bp,ee.isInteger=Y6,ee.isLength=TE,ee.isMap=Z6,ee.isMatch=$re,ee.isMatchWith=Jre,ee.isNaN=qre,ee.isNative=ese,ee.isNil=rse,ee.isNull=tse,ee.isNumber=X6,ee.isObject=Pn,ee.isObjectLike=Gn,ee.isPlainObject=yb,ee.isRegExp=$D,ee.isSafeInteger=sse,ee.isSet=$6,ee.isString=DE,ee.isSymbol=kl,ee.isTypedArray=h0,ee.isUndefined=nse,ee.isWeakMap=ise,ee.isWeakSet=ose,ee.join=eh,ee.kebabCase=Zse,ee.last=Zi,ee.lastIndexOf=Em,ee.lowerCase=Xse,ee.lowerFirst=$se,ee.lt=ase,ee.lte=lse,ee.max=Wne,ee.maxBy=jne,ee.mean=Kne,ee.meanBy=Yne,ee.min=Zne,ee.minBy=Xne,ee.stubArray=iM,ee.stubFalse=oM,ee.stubObject=Lne,ee.stubString=Hne,ee.stubTrue=Gne,ee.multiply=$ne,ee.nth=ub,ee.noConflict=Fne,ee.noop=nM,ee.now=he,ee.pad=Jse,ee.padEnd=qse,ee.padStart=ene,ee.parseInt=tne,ee.random=Use,ee.reduce=YD,ee.reduceRight=d0,ee.repeat=rne,ee.replace=sne,ee.result=Bse,ee.round=Jne,ee.runInContext=be,ee.sample=p,ee.size=R,ee.snakeCase=nne,ee.some=L,ee.sortedIndex=hb,ee.sortedIndexBy=BD,ee.sortedIndexOf=rh,ee.sortedLastIndex=AE,ee.sortedLastIndexBy=pb,ee.sortedLastIndexOf=Tp,ee.startCase=one,ee.startsWith=ane,ee.subtract=qne,ee.sum=eie,ee.sumBy=tie,ee.template=lne,ee.times=One,ee.toFinite=Lp,ee.toInteger=Wr,ee.toLength=q6,ee.toLower=cne,ee.toNumber=xc,ee.toSafeInteger=cse,ee.toString=Gs,ee.toUpper=une,ee.trim=dne,ee.trimEnd=hne,ee.trimStart=pne,ee.truncate=gne,ee.unescape=fne,ee.uniqueId=_ne,ee.upperCase=Ane,ee.upperFirst=eM,ee.each=c0,ee.eachRight=Fm,ee.first=Rp,sM(ee,function(){var f={};return qo(ee,function(m,E){gs.call(ee.prototype,E)||(f[E]=m)}),f}(),{chain:!1}),ee.VERSION=s,Sn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(f){ee[f].placeholder=ee}),Sn(["drop","take"],function(f,m){Hr.prototype[f]=function(E){E=E===r?1:Ln(Wr(E),0);var H=this.__filtered__&&!m?new Hr(this):this.clone();return H.__filtered__?H.__takeCount__=Ei(E,H.__takeCount__):H.__views__.push({size:Ei(E,$),type:f+(H.__dir__<0?"Right":"")}),H},Hr.prototype[f+"Right"]=function(E){return this.reverse()[f](E).reverse()}}),Sn(["filter","map","takeWhile"],function(f,m){var E=m+1,H=E==W||E==q;Hr.prototype[f]=function(K){var ie=this.clone();return ie.__iteratees__.push({iteratee:lr(K,3),type:E}),ie.__filtered__=ie.__filtered__||H,ie}}),Sn(["head","last"],function(f,m){var E="take"+(m?"Right":"");Hr.prototype[f]=function(){return this[E](1).value()[0]}}),Sn(["initial","tail"],function(f,m){var E="drop"+(m?"":"Right");Hr.prototype[f]=function(){return this.__filtered__?new Hr(this):this[E](1)}}),Hr.prototype.compact=function(){return this.filter(ja)},Hr.prototype.find=function(f){return this.filter(f).head()},Hr.prototype.findLast=function(f){return this.reverse().find(f)},Hr.prototype.invokeMap=Ur(function(f,m){return typeof f=="function"?new Hr(this):this.map(function(E){return Oa(E,f,m)})}),Hr.prototype.reject=function(f){return this.filter(pt(lr(f)))},Hr.prototype.slice=function(f,m){f=Wr(f);var E=this;return E.__filtered__&&(f>0||m<0)?new Hr(E):(f<0?E=E.takeRight(-f):f&&(E=E.drop(f)),m!==r&&(m=Wr(m),E=m<0?E.dropRight(-m):E.take(m-f)),E)},Hr.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},Hr.prototype.toArray=function(){return this.take($)},qo(Hr.prototype,function(f,m){var E=/^(?:filter|find|map|reject)|While$/.test(m),H=/^(?:head|last)$/.test(m),K=ee[H?"take"+(m=="last"?"Right":""):m],ie=H||/^find/.test(m);K&&(ee.prototype[m]=function(){var ge=this.__wrapped__,me=H?[1]:arguments,Ee=ge instanceof Hr,qe=me[0],et=Ee||Gr(ge),lt=function(rs){var as=K.apply(ee,Ma([rs],me));return H&&Pt?as[0]:as};et&&E&&typeof qe=="function"&&qe.length!=1&&(Ee=et=!1);var Pt=this.__chain__,Yt=!!this.__actions__.length,gr=ie&&!Pt,Kr=Ee&&!Yt;if(!ie&&et){ge=Kr?ge:new Hr(this);var fr=f.apply(ge,me);return fr.__actions__.push({func:Il,args:[lt],thisArg:r}),new Pi(fr,Pt)}return gr&&Kr?f.apply(this,me):(fr=this.thru(lt),gr?H?fr.value()[0]:fr.value():fr)})}),Sn(["pop","push","shift","sort","splice","unshift"],function(f){var m=Au[f],E=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",H=/^(?:pop|shift)$/.test(f);ee.prototype[f]=function(){var K=arguments;if(H&&!this.__chain__){var ie=this.value();return m.apply(Gr(ie)?ie:[],K)}return this[E](function(ge){return m.apply(Gr(ge)?ge:[],K)})}}),qo(Hr.prototype,function(f,m){var E=ee[m];if(E){var H=E.name+"";gs.call($g,H)||($g[H]=[]),$g[H].push({name:m,func:E})}}),$g[pf(r,S).name]=[{name:"wrapper",func:r}],Hr.prototype.clone=vC,Hr.prototype.reverse=Fy,Hr.prototype.value=ef,ee.prototype.at=i0,ee.prototype.chain=Ip,ee.prototype.commit=o0,ee.prototype.next=Ab,ee.prototype.plant=QD,ee.prototype.reverse=vb,ee.prototype.toJSON=ee.prototype.valueOf=ee.prototype.value=UD,ee.prototype.first=ee.prototype.head,vu&&(ee.prototype[vu]=mb),ee},Wg=PD();Da?((Da.exports=Wg)._=Wg,Bd._=Wg):zs._=Wg}).call(Ib)})($F,$F.exports);$F.exports;function _8e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function JF(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,s=e.slice(0,r);return[s.length>1?s[0]+s.slice(2):s,+e.slice(r+1)]}function Iw(e){return e=JF(Math.abs(e)),e?e[1]:NaN}function V8e(e,t){return function(r,s){for(var n=r.length,i=[],o=0,a=e[0],l=0;n>0&&a>0&&(l+a+1>s&&(a=Math.max(1,s-l)),i.push(r.substring(n-=a,n+a)),!((l+=a+1)>s));)a=e[o=(o+1)%e.length];return i.reverse().join(t)}}function z8e(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Q8e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ax(e){if(!(t=Q8e.exec(e)))throw new Error("invalid format: "+e);var t;return new P5({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ax.prototype=P5.prototype;function P5(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}P5.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function U8e(e){e:for(var t=e.length,r=1,s=-1,n;r<t;++r)switch(e[r]){case".":s=n=r;break;case"0":s===0&&(s=r),n=r;break;default:if(!+e[r])break e;s>0&&(s=0);break}return s>0?e.slice(0,s)+e.slice(n+1):e}var dJ;function W8e(e,t){var r=JF(e,t);if(!r)return e+"";var s=r[0],n=r[1],i=n-(dJ=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1,o=s.length;return i===o?s:i>o?s+new Array(i-o+1).join("0"):i>0?s.slice(0,i)+"."+s.slice(i):"0."+new Array(1-i).join("0")+JF(e,Math.max(0,t+i-1))[0]}function xO(e,t){var r=JF(e,t);if(!r)return e+"";var s=r[0],n=r[1];return n<0?"0."+new Array(-n).join("0")+s:s.length>n+1?s.slice(0,n+1)+"."+s.slice(n+1):s+new Array(n-s.length+2).join("0")}const EO={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:_8e,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>xO(e*100,t),r:xO,s:W8e,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function PO(e){return e}var FO=Array.prototype.map,RO=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function j8e(e){var t=e.grouping===void 0||e.thousands===void 0?PO:V8e(FO.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",s=e.currency===void 0?"":e.currency[1]+"",n=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?PO:z8e(FO.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=ax(d);var g=d.fill,A=d.align,w=d.sign,v=d.symbol,b=d.zero,S=d.width,P=d.comma,F=d.precision,T=d.trim,D=d.type;D==="n"?(P=!0,D="g"):EO[D]||(F===void 0&&(F=12),T=!0,D="g"),(b||g==="0"&&A==="=")&&(b=!0,g="0",A="=");var B=v==="$"?r:v==="#"&&/[boxX]/.test(D)?"0"+D.toLowerCase():"",k=v==="$"?s:/[%p]/.test(D)?o:"",z=EO[D],O=/[defgprs%]/.test(D);F=F===void 0?6:/[gprs]/.test(D)?Math.max(1,Math.min(21,F)):Math.max(0,Math.min(20,F));function j(_){var G=B,N=k,W,V,q;if(D==="c")N=z(_)+N,_="";else{_=+_;var pe=_<0||1/_<0;if(_=isNaN(_)?l:z(Math.abs(_),F),T&&(_=U8e(_)),pe&&+_==0&&w!=="+"&&(pe=!1),G=(pe?w==="("?w:a:w==="-"||w==="("?"":w)+G,N=(D==="s"?RO[8+dJ/3]:"")+N+(pe&&w==="("?")":""),O){for(W=-1,V=_.length;++W<V;)if(q=_.charCodeAt(W),48>q||q>57){N=(q===46?n+_.slice(W+1):_.slice(W))+N,_=_.slice(0,W);break}}}P&&!b&&(_=t(_,1/0));var X=G.length+_.length+N.length,re=X<S?new Array(S-X+1).join(g):"";switch(P&&b&&(_=t(re+_,re.length?S-N.length:1/0),re=""),A){case"<":_=G+_+N+re;break;case"=":_=G+re+_+N;break;case"^":_=re.slice(0,X=re.length>>1)+G+_+N+re.slice(X);break;default:_=re+G+_+N;break}return i(_)}return j.toString=function(){return d+""},j}function u(d,g){var A=c((d=ax(d),d.type="f",d)),w=Math.max(-8,Math.min(8,Math.floor(Iw(g)/3)))*3,v=Math.pow(10,-w),b=RO[8+w/3];return function(S){return A(v*S)+b}}return{format:c,formatPrefix:u}}var iP,lx,hJ;K8e({thousands:",",grouping:[3],currency:["$",""]});function K8e(e){return iP=j8e(e),lx=iP.format,hJ=iP.formatPrefix,iP}function Y8e(e){return Math.max(0,-Iw(Math.abs(e)))}function Z8e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Iw(t)/3)))*3-Iw(Math.abs(e)))}function X8e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Iw(t)-Iw(e))+1}var dB={exports:{}};const $8e="2.0.0",pJ=256,J8e=Number.MAX_SAFE_INTEGER||9007199254740991,q8e=16,eHe=pJ-6,tHe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var ET={MAX_LENGTH:pJ,MAX_SAFE_COMPONENT_LENGTH:q8e,MAX_SAFE_BUILD_LENGTH:eHe,MAX_SAFE_INTEGER:J8e,RELEASE_TYPES:tHe,SEMVER_SPEC_VERSION:$8e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const rHe=typeof process=="object"&&y2&&y2.NODE_DEBUG&&/\bsemver\b/i.test(y2.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var PT=rHe;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:n}=ET,i=PT;t=e.exports={};const o=t.re=[],a=t.safeRe=[],l=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const g="[a-zA-Z0-9-]",A=[["\\s",1],["\\d",n],[g,s]],w=b=>{for(const[S,P]of A)b=b.split(`${S}*`).join(`${S}{0,${P}}`).split(`${S}+`).join(`${S}{1,${P}}`);return b},v=(b,S,P)=>{const F=w(S),T=d++;i(b,T,S),u[b]=T,l[T]=S,c[T]=F,o[T]=new RegExp(S,P?"g":void 0),a[T]=new RegExp(F,P?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","\\d+"),v("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${g}*`),v("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${l[u.NUMERICIDENTIFIER]}|${l[u.NONNUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NUMERICIDENTIFIERLOOSE]}|${l[u.NONNUMERICIDENTIFIER]})`),v("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER",`${g}+`),v("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),v("FULL",`^${l[u.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),v("LOOSE",`^${l[u.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),v("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),v("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),v("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),v("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?(?:${l[u.BUILD]})?(?:$|[^\\d])`),v("COERCERTL",l[u.COERCE],!0),v("COERCERTLFULL",l[u.COERCEFULL],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",v("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",v("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(dB,dB.exports);var n3=dB.exports;const sHe=Object.freeze({loose:!0}),nHe=Object.freeze({}),iHe=e=>e?typeof e!="object"?sHe:e:nHe;var F5=iHe;const TO=/^[0-9]+$/,gJ=(e,t)=>{const r=TO.test(e),s=TO.test(t);return r&&s&&(e=+e,t=+t),e===t?0:r&&!s?-1:s&&!r?1:e<t?-1:1},oHe=(e,t)=>gJ(t,e);var fJ={compareIdentifiers:gJ,rcompareIdentifiers:oHe};const oP=PT,{MAX_LENGTH:DO,MAX_SAFE_INTEGER:aP}=ET,{safeRe:MO,safeSrc:IO,t:lP}=n3,aHe=F5,{compareIdentifiers:m0}=fJ;let lHe=class hh{constructor(t,r){if(r=aHe(r),t instanceof hh){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>DO)throw new TypeError(`version is longer than ${DO} characters`);oP("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const s=t.trim().match(r.loose?MO[lP.LOOSE]:MO[lP.FULL]);if(!s)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>aP||this.major<0)throw new TypeError("Invalid major version");if(this.minor>aP||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>aP||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){const i=+n;if(i>=0&&i<aP)return i}return n}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(oP("SemVer.compare",this.version,this.options,t),!(t instanceof hh)){if(typeof t=="string"&&t===this.version)return 0;t=new hh(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof hh||(t=new hh(t,this.options)),m0(this.major,t.major)||m0(this.minor,t.minor)||m0(this.patch,t.patch)}comparePre(t){if(t instanceof hh||(t=new hh(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const s=this.prerelease[r],n=t.prerelease[r];if(oP("prerelease compare",r,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s!==n)return m0(s,n)}while(++r)}compareBuild(t){t instanceof hh||(t=new hh(t,this.options));let r=0;do{const s=this.build[r],n=t.build[r];if(oP("build compare",r,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s!==n)return m0(s,n)}while(++r)}inc(t,r,s){if(t.startsWith("pre")){if(!r&&s===!1)throw new Error("invalid increment argument: identifier is empty");if(r){const n=new RegExp(`^${this.options.loose?IO[lP.PRERELEASELOOSE]:IO[lP.PRERELEASE]}$`),i=`-${r}`.match(n);if(!i||i[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,s),this.inc("pre",r,s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,s),this.inc("pre",r,s);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const n=Number(s)?1:0;if(this.prerelease.length===0)this.prerelease=[n];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(r===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(n)}}if(r){let i=[r,n];s===!1&&(i=[r]),m0(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var ba=lHe;const kO=ba,cHe=(e,t,r=!1)=>{if(e instanceof kO)return e;try{return new kO(e,t)}catch(s){if(!r)return null;throw s}};var Jw=cHe;const uHe=Jw,dHe=(e,t)=>{const r=uHe(e,t);return r?r.version:null};var hHe=dHe;const pHe=Jw,gHe=(e,t)=>{const r=pHe(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var fHe=gHe;const BO=ba,AHe=(e,t,r,s,n)=>{typeof r=="string"&&(n=s,s=r,r=void 0);try{return new BO(e instanceof BO?e.version:e,r).inc(t,s,n).version}catch{return null}};var mHe=AHe;const LO=Jw,vHe=(e,t)=>{const r=LO(e,null,!0),s=LO(t,null,!0),n=r.compare(s);if(n===0)return null;const i=n>0,o=i?r:s,a=i?s:r,l=!!o.prerelease.length;if(a.prerelease.length&&!l){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}const c=l?"pre":"";return r.major!==s.major?c+"major":r.minor!==s.minor?c+"minor":r.patch!==s.patch?c+"patch":"prerelease"};var CHe=vHe;const wHe=ba,yHe=(e,t)=>new wHe(e,t).major;var bHe=yHe;const SHe=ba,xHe=(e,t)=>new SHe(e,t).minor;var EHe=xHe;const PHe=ba,FHe=(e,t)=>new PHe(e,t).patch;var RHe=FHe;const THe=Jw,DHe=(e,t)=>{const r=THe(e,t);return r&&r.prerelease.length?r.prerelease:null};var MHe=DHe;const HO=ba,IHe=(e,t,r)=>new HO(e,r).compare(new HO(t,r));var md=IHe;const kHe=md,BHe=(e,t,r)=>kHe(t,e,r);var LHe=BHe;const HHe=md,GHe=(e,t)=>HHe(e,t,!0);var OHe=GHe;const GO=ba,NHe=(e,t,r)=>{const s=new GO(e,r),n=new GO(t,r);return s.compare(n)||s.compareBuild(n)};var R5=NHe;const _He=R5,VHe=(e,t)=>e.sort((r,s)=>_He(r,s,t));var zHe=VHe;const QHe=R5,UHe=(e,t)=>e.sort((r,s)=>QHe(s,r,t));var WHe=UHe;const jHe=md,KHe=(e,t,r)=>jHe(e,t,r)>0;var FT=KHe;const YHe=md,ZHe=(e,t,r)=>YHe(e,t,r)<0;var T5=ZHe;const XHe=md,$He=(e,t,r)=>XHe(e,t,r)===0;var AJ=$He;const JHe=md,qHe=(e,t,r)=>JHe(e,t,r)!==0;var mJ=qHe;const eGe=md,tGe=(e,t,r)=>eGe(e,t,r)>=0;var D5=tGe;const rGe=md,sGe=(e,t,r)=>rGe(e,t,r)<=0;var M5=sGe;const nGe=AJ,iGe=mJ,oGe=FT,aGe=D5,lGe=T5,cGe=M5,uGe=(e,t,r,s)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return nGe(e,r,s);case"!=":return iGe(e,r,s);case">":return oGe(e,r,s);case">=":return aGe(e,r,s);case"<":return lGe(e,r,s);case"<=":return cGe(e,r,s);default:throw new TypeError(`Invalid operator: ${t}`)}};var vJ=uGe;const dGe=ba,hGe=Jw,{safeRe:cP,t:uP}=n3,pGe=(e,t)=>{if(e instanceof dGe)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?cP[uP.COERCEFULL]:cP[uP.COERCE]);else{const l=t.includePrerelease?cP[uP.COERCERTLFULL]:cP[uP.COERCERTL];let c;for(;(c=l.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||c.index+c[0].length!==r.index+r[0].length)&&(r=c),l.lastIndex=c.index+c[1].length+c[2].length;l.lastIndex=-1}if(r===null)return null;const s=r[2],n=r[3]||"0",i=r[4]||"0",o=t.includePrerelease&&r[5]?`-${r[5]}`:"",a=t.includePrerelease&&r[6]?`+${r[6]}`:"";return hGe(`${s}.${n}.${i}${o}${a}`,t)};var gGe=pGe;let fGe=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){const r=this.map.keys().next().value;this.delete(r)}this.map.set(e,t)}return this}};var AGe=fGe,f4,OO;function vd(){if(OO)return f4;OO=1;const e=/\s+/g;class t{constructor(V,q){if(q=n(q),V instanceof t)return V.loose===!!q.loose&&V.includePrerelease===!!q.includePrerelease?V:new t(V.raw,q);if(V instanceof i)return this.raw=V.value,this.set=[[V]],this.formatted=void 0,this;if(this.options=q,this.loose=!!q.loose,this.includePrerelease=!!q.includePrerelease,this.raw=V.trim().replace(e," "),this.set=this.raw.split("||").map(pe=>this.parseRange(pe.trim())).filter(pe=>pe.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const pe=this.set[0];if(this.set=this.set.filter(X=>!v(X[0])),this.set.length===0)this.set=[pe];else if(this.set.length>1){for(const X of this.set)if(X.length===1&&b(X[0])){this.set=[X];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let V=0;V<this.set.length;V++){V>0&&(this.formatted+="||");const q=this.set[V];for(let pe=0;pe<q.length;pe++)pe>0&&(this.formatted+=" "),this.formatted+=q[pe].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(V){const q=((this.options.includePrerelease&&A)|(this.options.loose&&w))+":"+V,pe=s.get(q);if(pe)return pe;const X=this.options.loose,re=X?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];V=V.replace(re,G(this.options.includePrerelease)),o("hyphen replace",V),V=V.replace(l[c.COMPARATORTRIM],u),o("comparator trim",V),V=V.replace(l[c.TILDETRIM],d),o("tilde trim",V),V=V.replace(l[c.CARETTRIM],g),o("caret trim",V);let ae=V.split(" ").map(Oe=>P(Oe,this.options)).join(" ").split(/\s+/).map(Oe=>_(Oe,this.options));X&&(ae=ae.filter(Oe=>(o("loose invalid filter",Oe,this.options),!!Oe.match(l[c.COMPARATORLOOSE])))),o("range list",ae);const $=new Map,se=ae.map(Oe=>new i(Oe,this.options));for(const Oe of se){if(v(Oe))return[Oe];$.set(Oe.value,Oe)}$.size>1&&$.has("")&&$.delete("");const De=[...$.values()];return s.set(q,De),De}intersects(V,q){if(!(V instanceof t))throw new TypeError("a Range is required");return this.set.some(pe=>S(pe,q)&&V.set.some(X=>S(X,q)&&pe.every(re=>X.every(ae=>re.intersects(ae,q)))))}test(V){if(!V)return!1;if(typeof V=="string")try{V=new a(V,this.options)}catch{return!1}for(let q=0;q<this.set.length;q++)if(N(this.set[q],V,this.options))return!0;return!1}}f4=t;const r=AGe,s=new r,n=F5,i=RT(),o=PT,a=ba,{safeRe:l,t:c,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:g}=n3,{FLAG_INCLUDE_PRERELEASE:A,FLAG_LOOSE:w}=ET,v=W=>W.value==="<0.0.0-0",b=W=>W.value==="",S=(W,V)=>{let q=!0;const pe=W.slice();let X=pe.pop();for(;q&&pe.length;)q=pe.every(re=>X.intersects(re,V)),X=pe.pop();return q},P=(W,V)=>(o("comp",W,V),W=B(W,V),o("caret",W),W=T(W,V),o("tildes",W),W=z(W,V),o("xrange",W),W=j(W,V),o("stars",W),W),F=W=>!W||W.toLowerCase()==="x"||W==="*",T=(W,V)=>W.trim().split(/\s+/).map(q=>D(q,V)).join(" "),D=(W,V)=>{const q=V.loose?l[c.TILDELOOSE]:l[c.TILDE];return W.replace(q,(pe,X,re,ae,$)=>{o("tilde",W,pe,X,re,ae,$);let se;return F(X)?se="":F(re)?se=`>=${X}.0.0 <${+X+1}.0.0-0`:F(ae)?se=`>=${X}.${re}.0 <${X}.${+re+1}.0-0`:$?(o("replaceTilde pr",$),se=`>=${X}.${re}.${ae}-${$} <${X}.${+re+1}.0-0`):se=`>=${X}.${re}.${ae} <${X}.${+re+1}.0-0`,o("tilde return",se),se})},B=(W,V)=>W.trim().split(/\s+/).map(q=>k(q,V)).join(" "),k=(W,V)=>{o("caret",W,V);const q=V.loose?l[c.CARETLOOSE]:l[c.CARET],pe=V.includePrerelease?"-0":"";return W.replace(q,(X,re,ae,$,se)=>{o("caret",W,X,re,ae,$,se);let De;return F(re)?De="":F(ae)?De=`>=${re}.0.0${pe} <${+re+1}.0.0-0`:F($)?re==="0"?De=`>=${re}.${ae}.0${pe} <${re}.${+ae+1}.0-0`:De=`>=${re}.${ae}.0${pe} <${+re+1}.0.0-0`:se?(o("replaceCaret pr",se),re==="0"?ae==="0"?De=`>=${re}.${ae}.${$}-${se} <${re}.${ae}.${+$+1}-0`:De=`>=${re}.${ae}.${$}-${se} <${re}.${+ae+1}.0-0`:De=`>=${re}.${ae}.${$}-${se} <${+re+1}.0.0-0`):(o("no pr"),re==="0"?ae==="0"?De=`>=${re}.${ae}.${$}${pe} <${re}.${ae}.${+$+1}-0`:De=`>=${re}.${ae}.${$}${pe} <${re}.${+ae+1}.0-0`:De=`>=${re}.${ae}.${$} <${+re+1}.0.0-0`),o("caret return",De),De})},z=(W,V)=>(o("replaceXRanges",W,V),W.split(/\s+/).map(q=>O(q,V)).join(" ")),O=(W,V)=>{W=W.trim();const q=V.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return W.replace(q,(pe,X,re,ae,$,se)=>{o("xRange",W,pe,X,re,ae,$,se);const De=F(re),Oe=De||F(ae),Be=Oe||F($),Ve=Be;return X==="="&&Ve&&(X=""),se=V.includePrerelease?"-0":"",De?X===">"||X==="<"?pe="<0.0.0-0":pe="*":X&&Ve?(Oe&&(ae=0),$=0,X===">"?(X=">=",Oe?(re=+re+1,ae=0,$=0):(ae=+ae+1,$=0)):X==="<="&&(X="<",Oe?re=+re+1:ae=+ae+1),X==="<"&&(se="-0"),pe=`${X+re}.${ae}.${$}${se}`):Oe?pe=`>=${re}.0.0${se} <${+re+1}.0.0-0`:Be&&(pe=`>=${re}.${ae}.0${se} <${re}.${+ae+1}.0-0`),o("xRange return",pe),pe})},j=(W,V)=>(o("replaceStars",W,V),W.trim().replace(l[c.STAR],"")),_=(W,V)=>(o("replaceGTE0",W,V),W.trim().replace(l[V.includePrerelease?c.GTE0PRE:c.GTE0],"")),G=W=>(V,q,pe,X,re,ae,$,se,De,Oe,Be,Ve)=>(F(pe)?q="":F(X)?q=`>=${pe}.0.0${W?"-0":""}`:F(re)?q=`>=${pe}.${X}.0${W?"-0":""}`:ae?q=`>=${q}`:q=`>=${q}${W?"-0":""}`,F(De)?se="":F(Oe)?se=`<${+De+1}.0.0-0`:F(Be)?se=`<${De}.${+Oe+1}.0-0`:Ve?se=`<=${De}.${Oe}.${Be}-${Ve}`:W?se=`<${De}.${Oe}.${+Be+1}-0`:se=`<=${se}`,`${q} ${se}`.trim()),N=(W,V,q)=>{for(let pe=0;pe<W.length;pe++)if(!W[pe].test(V))return!1;if(V.prerelease.length&&!q.includePrerelease){for(let pe=0;pe<W.length;pe++)if(o(W[pe].semver),W[pe].semver!==i.ANY&&W[pe].semver.prerelease.length>0){const X=W[pe].semver;if(X.major===V.major&&X.minor===V.minor&&X.patch===V.patch)return!0}return!1}return!0};return f4}var A4,NO;function RT(){if(NO)return A4;NO=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(u,d){if(d=r(d),u instanceof t){if(u.loose===!!d.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),o("comparator",u,d),this.options=d,this.loose=!!d.loose,this.parse(u),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(u){const d=this.options.loose?s[n.COMPARATORLOOSE]:s[n.COMPARATOR],g=u.match(d);if(!g)throw new TypeError(`Invalid comparator: ${u}`);this.operator=g[1]!==void 0?g[1]:"",this.operator==="="&&(this.operator=""),g[2]?this.semver=new a(g[2],this.options.loose):this.semver=e}toString(){return this.value}test(u){if(o("Comparator.test",u,this.options.loose),this.semver===e||u===e)return!0;if(typeof u=="string")try{u=new a(u,this.options)}catch{return!1}return i(u,this.operator,this.semver,this.options)}intersects(u,d){if(!(u instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(u.value,d).test(this.value):u.operator===""?u.value===""?!0:new l(this.value,d).test(u.semver):(d=r(d),d.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||i(this.semver,"<",u.semver,d)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||i(this.semver,">",u.semver,d)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}A4=t;const r=F5,{safeRe:s,t:n}=n3,i=vJ,o=PT,a=ba,l=vd();return A4}const mGe=vd(),vGe=(e,t,r)=>{try{t=new mGe(t,r)}catch{return!1}return t.test(e)};var TT=vGe;const CGe=vd(),wGe=(e,t)=>new CGe(e,t).set.map(r=>r.map(s=>s.value).join(" ").trim().split(" "));var yGe=wGe;const bGe=ba,SGe=vd(),xGe=(e,t,r)=>{let s=null,n=null,i=null;try{i=new SGe(t,r)}catch{return null}return e.forEach(o=>{i.test(o)&&(!s||n.compare(o)===-1)&&(s=o,n=new bGe(s,r))}),s};var EGe=xGe;const PGe=ba,FGe=vd(),RGe=(e,t,r)=>{let s=null,n=null,i=null;try{i=new FGe(t,r)}catch{return null}return e.forEach(o=>{i.test(o)&&(!s||n.compare(o)===1)&&(s=o,n=new PGe(s,r))}),s};var TGe=RGe;const m4=ba,DGe=vd(),_O=FT,MGe=(e,t)=>{e=new DGe(e,t);let r=new m4("0.0.0");if(e.test(r)||(r=new m4("0.0.0-0"),e.test(r)))return r;r=null;for(let s=0;s<e.set.length;++s){const n=e.set[s];let i=null;n.forEach(o=>{const a=new m4(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!i||_O(a,i))&&(i=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),i&&(!r||_O(r,i))&&(r=i)}return r&&e.test(r)?r:null};var IGe=MGe;const kGe=vd(),BGe=(e,t)=>{try{return new kGe(e,t).range||"*"}catch{return null}};var LGe=BGe;const HGe=ba,CJ=RT(),{ANY:GGe}=CJ,OGe=vd(),NGe=TT,VO=FT,zO=T5,_Ge=M5,VGe=D5,zGe=(e,t,r,s)=>{e=new HGe(e,s),t=new OGe(t,s);let n,i,o,a,l;switch(r){case">":n=VO,i=_Ge,o=zO,a=">",l=">=";break;case"<":n=zO,i=VGe,o=VO,a="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(NGe(e,t,s))return!1;for(let c=0;c<t.set.length;++c){const u=t.set[c];let d=null,g=null;if(u.forEach(A=>{A.semver===GGe&&(A=new CJ(">=0.0.0")),d=d||A,g=g||A,n(A.semver,d.semver,s)?d=A:o(A.semver,g.semver,s)&&(g=A)}),d.operator===a||d.operator===l||(!g.operator||g.operator===a)&&i(e,g.semver)||g.operator===l&&o(e,g.semver))return!1}return!0};var I5=zGe;const QGe=I5,UGe=(e,t,r)=>QGe(e,t,">",r);var WGe=UGe;const jGe=I5,KGe=(e,t,r)=>jGe(e,t,"<",r);var YGe=KGe;const QO=vd(),ZGe=(e,t,r)=>(e=new QO(e,r),t=new QO(t,r),e.intersects(t,r));var XGe=ZGe;const $Ge=TT,JGe=md;var qGe=(e,t,r)=>{const s=[];let n=null,i=null;const o=e.sort((u,d)=>JGe(u,d,r));for(const u of o)$Ge(u,t,r)?(i=u,n||(n=u)):(i&&s.push([n,i]),i=null,n=null);n&&s.push([n,null]);const a=[];for(const[u,d]of s)u===d?a.push(u):!d&&u===o[0]?a.push("*"):d?u===o[0]?a.push(`<=${d}`):a.push(`${u} - ${d}`):a.push(`>=${u}`);const l=a.join(" || "),c=typeof t.raw=="string"?t.raw:String(t);return l.length<c.length?l:t};const UO=vd(),k5=RT(),{ANY:v4}=k5,Lb=TT,B5=md,eOe=(e,t,r={})=>{if(e===t)return!0;e=new UO(e,r),t=new UO(t,r);let s=!1;e:for(const n of e.set){for(const i of t.set){const o=rOe(n,i,r);if(s=s||o!==null,o)continue e}if(s)return!1}return!0},tOe=[new k5(">=0.0.0-0")],WO=[new k5(">=0.0.0")],rOe=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===v4){if(t.length===1&&t[0].semver===v4)return!0;r.includePrerelease?e=tOe:e=WO}if(t.length===1&&t[0].semver===v4){if(r.includePrerelease)return!0;t=WO}const s=new Set;let n,i;for(const A of e)A.operator===">"||A.operator===">="?n=jO(n,A,r):A.operator==="<"||A.operator==="<="?i=KO(i,A,r):s.add(A.semver);if(s.size>1)return null;let o;if(n&&i&&(o=B5(n.semver,i.semver,r),o>0||o===0&&(n.operator!==">="||i.operator!=="<=")))return null;for(const A of s){if(n&&!Lb(A,String(n),r)||i&&!Lb(A,String(i),r))return null;for(const w of t)if(!Lb(A,String(w),r))return!1;return!0}let a,l,c,u,d=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1,g=n&&!r.includePrerelease&&n.semver.prerelease.length?n.semver:!1;d&&d.prerelease.length===1&&i.operator==="<"&&d.prerelease[0]===0&&(d=!1);for(const A of t){if(u=u||A.operator===">"||A.operator===">=",c=c||A.operator==="<"||A.operator==="<=",n){if(g&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===g.major&&A.semver.minor===g.minor&&A.semver.patch===g.patch&&(g=!1),A.operator===">"||A.operator===">="){if(a=jO(n,A,r),a===A&&a!==n)return!1}else if(n.operator===">="&&!Lb(n.semver,String(A),r))return!1}if(i){if(d&&A.semver.prerelease&&A.semver.prerelease.length&&A.semver.major===d.major&&A.semver.minor===d.minor&&A.semver.patch===d.patch&&(d=!1),A.operator==="<"||A.operator==="<="){if(l=KO(i,A,r),l===A&&l!==i)return!1}else if(i.operator==="<="&&!Lb(i.semver,String(A),r))return!1}if(!A.operator&&(i||n)&&o!==0)return!1}return!(n&&c&&!i&&o!==0||i&&u&&!n&&o!==0||g||d)},jO=(e,t,r)=>{if(!e)return t;const s=B5(e.semver,t.semver,r);return s>0?e:s<0||t.operator===">"&&e.operator===">="?t:e},KO=(e,t,r)=>{if(!e)return t;const s=B5(e.semver,t.semver,r);return s<0?e:s>0||t.operator==="<"&&e.operator==="<="?t:e};var sOe=eOe;const C4=n3,YO=ET,nOe=ba,ZO=fJ,iOe=Jw,oOe=hHe,aOe=fHe,lOe=mHe,cOe=CHe,uOe=bHe,dOe=EHe,hOe=RHe,pOe=MHe,gOe=md,fOe=LHe,AOe=OHe,mOe=R5,vOe=zHe,COe=WHe,wOe=FT,yOe=T5,bOe=AJ,SOe=mJ,xOe=D5,EOe=M5,POe=vJ,FOe=gGe,ROe=RT(),TOe=vd(),DOe=TT,MOe=yGe,IOe=EGe,kOe=TGe,BOe=IGe,LOe=LGe,HOe=I5,GOe=WGe,OOe=YGe,NOe=XGe,_Oe=qGe,VOe=sOe;C4.re,C4.src,C4.t,YO.SEMVER_SPEC_VERSION,YO.RELEASE_TYPES,ZO.compareIdentifiers,ZO.rcompareIdentifiers;const zOe="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2NvbnN0ICQ9U3ltYm9sKCJDb21saW5rLnByb3h5IiksQT1TeW1ib2woIkNvbWxpbmsuZW5kcG9pbnQiKSxSPVN5bWJvbCgiQ29tbGluay5yZWxlYXNlUHJveHkiKSx5PVN5bWJvbCgiQ29tbGluay50aHJvd24iKSxfPWU9PnR5cGVvZiBlPT0ib2JqZWN0IiYmZSE9PW51bGx8fHR5cGVvZiBlPT0iZnVuY3Rpb24iLEw9e2NhbkhhbmRsZTplPT5fKGUpJiZlWyRdLHNlcmlhbGl6ZShlKXtjb25zdHtwb3J0MTpyLHBvcnQyOml9PW5ldyBNZXNzYWdlQ2hhbm5lbDtyZXR1cm4gdyhlLHIpLFtpLFtpXV19LGRlc2VyaWFsaXplKGUpe3JldHVybiBlLnN0YXJ0KCksQyhlKX19LE89e2NhbkhhbmRsZTplPT5fKGUpJiZ5IGluIGUsc2VyaWFsaXplKHt2YWx1ZTplfSl7bGV0IHI7cmV0dXJuIGUgaW5zdGFuY2VvZiBFcnJvcj9yPXtpc0Vycm9yOiEwLHZhbHVlOnttZXNzYWdlOmUubWVzc2FnZSxuYW1lOmUubmFtZSxzdGFjazplLnN0YWNrfX06cj17aXNFcnJvcjohMSx2YWx1ZTplfSxbcixbXV19LGRlc2VyaWFsaXplKGUpe3Rocm93IGUuaXNFcnJvcj9PYmplY3QuYXNzaWduKG5ldyBFcnJvcihlLnZhbHVlLm1lc3NhZ2UpLGUudmFsdWUpOmUudmFsdWV9fSxFPW5ldyBNYXAoW1sicHJveHkiLExdLFsidGhyb3ciLE9dXSk7ZnVuY3Rpb24gdyhlLHI9c2VsZil7ci5hZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIixmdW5jdGlvbiBpKHMpe2lmKCFzfHwhcy5kYXRhKXJldHVybjtjb25zdHtpZDpvLHR5cGU6YSxwYXRoOm59PU9iamVjdC5hc3NpZ24oe3BhdGg6W119LHMuZGF0YSksYz0ocy5kYXRhLmFyZ3VtZW50TGlzdHx8W10pLm1hcChtKTtsZXQgbDt0cnl7Y29uc3QgdT1uLnNsaWNlKDAsLTEpLnJlZHVjZSgoZCxwKT0+ZFtwXSxlKSxmPW4ucmVkdWNlKChkLHApPT5kW3BdLGUpO3N3aXRjaChhKXtjYXNlIkdFVCI6bD1mO2JyZWFrO2Nhc2UiU0VUIjp1W24uc2xpY2UoLTEpWzBdXT1tKHMuZGF0YS52YWx1ZSksbD0hMDticmVhaztjYXNlIkFQUExZIjpsPWYuYXBwbHkodSxjKTticmVhaztjYXNlIkNPTlNUUlVDVCI6e2NvbnN0IGQ9bmV3IGYoLi4uYyk7bD16KGQpfWJyZWFrO2Nhc2UiRU5EUE9JTlQiOntjb25zdHtwb3J0MTpkLHBvcnQyOnB9PW5ldyBNZXNzYWdlQ2hhbm5lbDt3KGUscCksbD1OKGQsW2RdKX1icmVhaztjYXNlIlJFTEVBU0UiOmw9dm9pZCAwO2JyZWFrO2RlZmF1bHQ6cmV0dXJufX1jYXRjaCh1KXtsPXt2YWx1ZTp1LFt5XTowfX1Qcm9taXNlLnJlc29sdmUobCkuY2F0Y2godT0+KHt2YWx1ZTp1LFt5XTowfSkpLnRoZW4odT0+e2NvbnN0W2YsZF09Uyh1KTtyLnBvc3RNZXNzYWdlKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxmKSx7aWQ6b30pLGQpLGE9PT0iUkVMRUFTRSImJihyLnJlbW92ZUV2ZW50TGlzdGVuZXIoIm1lc3NhZ2UiLGkpLE0ocikpfSl9KSxyLnN0YXJ0JiZyLnN0YXJ0KCl9ZnVuY3Rpb24gVChlKXtyZXR1cm4gZS5jb25zdHJ1Y3Rvci5uYW1lPT09Ik1lc3NhZ2VQb3J0In1mdW5jdGlvbiBNKGUpe1QoZSkmJmUuY2xvc2UoKX1mdW5jdGlvbiBDKGUscil7cmV0dXJuIGIoZSxbXSxyKX1mdW5jdGlvbiBoKGUpe2lmKGUpdGhyb3cgbmV3IEVycm9yKCJQcm94eSBoYXMgYmVlbiByZWxlYXNlZCBhbmQgaXMgbm90IHVzZWFibGUiKX1mdW5jdGlvbiBiKGUscj1bXSxpPWZ1bmN0aW9uKCl7fSl7bGV0IHM9ITE7Y29uc3Qgbz1uZXcgUHJveHkoaSx7Z2V0KGEsbil7aWYoaChzKSxuPT09UilyZXR1cm4oKT0+ZyhlLHt0eXBlOiJSRUxFQVNFIixwYXRoOnIubWFwKGM9PmMudG9TdHJpbmcoKSl9KS50aGVuKCgpPT57TShlKSxzPSEwfSk7aWYobj09PSJ0aGVuIil7aWYoci5sZW5ndGg9PT0wKXJldHVybnt0aGVuOigpPT5vfTtjb25zdCBjPWcoZSx7dHlwZToiR0VUIixwYXRoOnIubWFwKGw9PmwudG9TdHJpbmcoKSl9KS50aGVuKG0pO3JldHVybiBjLnRoZW4uYmluZChjKX1yZXR1cm4gYihlLFsuLi5yLG5dKX0sc2V0KGEsbixjKXtoKHMpO2NvbnN0W2wsdV09UyhjKTtyZXR1cm4gZyhlLHt0eXBlOiJTRVQiLHBhdGg6Wy4uLnIsbl0ubWFwKGY9PmYudG9TdHJpbmcoKSksdmFsdWU6bH0sdSkudGhlbihtKX0sYXBwbHkoYSxuLGMpe2gocyk7Y29uc3QgbD1yW3IubGVuZ3RoLTFdO2lmKGw9PT1BKXJldHVybiBnKGUse3R5cGU6IkVORFBPSU5UIn0pLnRoZW4obSk7aWYobD09PSJiaW5kIilyZXR1cm4gYihlLHIuc2xpY2UoMCwtMSkpO2NvbnN0W3UsZl09RihjKTtyZXR1cm4gZyhlLHt0eXBlOiJBUFBMWSIscGF0aDpyLm1hcChkPT5kLnRvU3RyaW5nKCkpLGFyZ3VtZW50TGlzdDp1fSxmKS50aGVuKG0pfSxjb25zdHJ1Y3QoYSxuKXtoKHMpO2NvbnN0W2MsbF09RihuKTtyZXR1cm4gZyhlLHt0eXBlOiJDT05TVFJVQ1QiLHBhdGg6ci5tYXAodT0+dS50b1N0cmluZygpKSxhcmd1bWVudExpc3Q6Y30sbCkudGhlbihtKX19KTtyZXR1cm4gb31mdW5jdGlvbiBEKGUpe3JldHVybiBBcnJheS5wcm90b3R5cGUuY29uY2F0LmFwcGx5KFtdLGUpfWZ1bmN0aW9uIEYoZSl7Y29uc3Qgcj1lLm1hcChTKTtyZXR1cm5bci5tYXAoaT0+aVswXSksRChyLm1hcChpPT5pWzFdKSldfWNvbnN0IFA9bmV3IFdlYWtNYXA7ZnVuY3Rpb24gTihlLHIpe3JldHVybiBQLnNldChlLHIpLGV9ZnVuY3Rpb24geihlKXtyZXR1cm4gT2JqZWN0LmFzc2lnbihlLHtbJF06ITB9KX1mdW5jdGlvbiBTKGUpe2Zvcihjb25zdFtyLGldb2YgRSlpZihpLmNhbkhhbmRsZShlKSl7Y29uc3RbcyxvXT1pLnNlcmlhbGl6ZShlKTtyZXR1cm5be3R5cGU6IkhBTkRMRVIiLG5hbWU6cix2YWx1ZTpzfSxvXX1yZXR1cm5be3R5cGU6IlJBVyIsdmFsdWU6ZX0sUC5nZXQoZSl8fFtdXX1mdW5jdGlvbiBtKGUpe3N3aXRjaChlLnR5cGUpe2Nhc2UiSEFORExFUiI6cmV0dXJuIEUuZ2V0KGUubmFtZSkuZGVzZXJpYWxpemUoZS52YWx1ZSk7Y2FzZSJSQVciOnJldHVybiBlLnZhbHVlfX1mdW5jdGlvbiBnKGUscixpKXtyZXR1cm4gbmV3IFByb21pc2Uocz0+e2NvbnN0IG89VSgpO2UuYWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsZnVuY3Rpb24gYShuKXshbi5kYXRhfHwhbi5kYXRhLmlkfHxuLmRhdGEuaWQhPT1vfHwoZS5yZW1vdmVFdmVudExpc3RlbmVyKCJtZXNzYWdlIixhKSxzKG4uZGF0YSkpfSksZS5zdGFydCYmZS5zdGFydCgpLGUucG9zdE1lc3NhZ2UoT2JqZWN0LmFzc2lnbih7aWQ6b30sciksaSl9KX1mdW5jdGlvbiBVKCl7cmV0dXJuIG5ldyBBcnJheSg0KS5maWxsKDApLm1hcCgoKT0+TWF0aC5mbG9vcihNYXRoLnJhbmRvbSgpKk51bWJlci5NQVhfU0FGRV9JTlRFR0VSKS50b1N0cmluZygxNikpLmpvaW4oIi0iKX1jb25zdCBXPWFzeW5jKCk9PldlYkFzc2VtYmx5LnZhbGlkYXRlKG5ldyBVaW50OEFycmF5KFswLDk3LDExNSwxMDksMSwwLDAsMCwxLDUsMSw5NiwwLDEsMTIzLDMsMiwxLDAsMTAsMTAsMSw4LDAsNjUsMCwyNTMsMTUsMjUzLDk4LDExXSkpLGs9ImVhZ2VyIix4PSJsYXp5IixqPXtzc3c6WyJzaW1kIl0sbWluaW1hcDI6WyJzaW1kIl19LHQ9e3Rvb2xzOltdLGNvbmZpZzp7fSxmaWxlczpbXSxiYXNlOnt9LGZzOnt9LGFzeW5jIGluaXQoKXtpZih0LnRvb2xzLmxlbmd0aD09PTApdGhyb3ciRXhwZWN0aW5nIGF0IGxlYXN0IDEgdG9vbC4iO2lmKG5ldyBTZXQodC50b29scy5tYXAocj0+YCR7ci50b29sfS8ke3IucHJvZ3JhbXx8ci50b29sfWApKS5zaXplIT09dC50b29scy5sZW5ndGgpdGhyb3ciRm91bmQgZHVwbGljYXRlIHRvb2xzOyBjYW4gb25seSBoYXZlIGVhY2ggdG9vbC9wcm9ncmFtIGNvbWJpbmF0aW9uIGF0IG1vc3Qgb25jZS4iO2lmKHQuYmFzZT10LnRvb2xzLmZpbmQocj0+ci5yZWluaXQhPT0hMCksIXQuYmFzZSl0aHJvdyJDb3VsZCBub3QgZmluZCBhIHRvb2wgd2l0aCBgcmVpbml0OiBmYWxzZWAgdG8gdXNlIGFzIHRoZSBiYXNlIG1vZHVsZS4gVG8gZml4IHRoaXMgaXNzdWUsIGluY2x1ZGUgdGhlIHRvb2wgYGJhc2UvMS4wLjBgIHdoZW4gaW5pdGlhbGl6aW5nIEFpb2xpLiI7cmV0dXJuIHQuYmFzZS5pc0Jhc2VNb2R1bGU9ITAsYXdhaXQgdGhpcy5fc2V0dXAodC5iYXNlKSxhd2FpdCB0aGlzLl9pbml0TW9kdWxlcygpLHQuX2xvZygiUmVhZHkiKSwhMH0sYXN5bmMgX2luaXRNb2R1bGVzKCl7YXdhaXQgUHJvbWlzZS5hbGwodC50b29scy5tYXAodGhpcy5fc2V0dXApKSxhd2FpdCB0aGlzLl9zZXR1cEZTKCl9LG1vdW50KGU9W10pe2NvbnN0IHI9YCR7dC5jb25maWcuZGlyU2hhcmVkfSR7dC5jb25maWcuZGlyRGF0YX1gLGk9YCR7dC5jb25maWcuZGlyU2hhcmVkfSR7dC5jb25maWcuZGlyTW91bnRlZH1gO2xldCBzPVtdLG89W10sYT1bXTshQXJyYXkuaXNBcnJheShlKSYmIShlIGluc3RhbmNlb2YgRmlsZUxpc3QpJiYoZT1bZV0pLHQuX2xvZyhgTW91bnRpbmcgJHtlLmxlbmd0aH0gZmlsZXNgKTtmb3IobGV0IG4gb2YgZSl7aWYobiBpbnN0YW5jZW9mIEZpbGV8fChuPT1udWxsP3ZvaWQgMDpuLmRhdGEpaW5zdGFuY2VvZiBCbG9iJiZuLm5hbWV8fHR5cGVvZihuPT1udWxsP3ZvaWQgMDpuLmRhdGEpPT0ic3RyaW5nIiYmbi5uYW1lKXR5cGVvZihuPT1udWxsP3ZvaWQgMDpuLmRhdGEpPT0ic3RyaW5nIiYmKG4uZGF0YT1uZXcgQmxvYihbbi5kYXRhXSx7dHlwZToidGV4dC9wbGFpbiJ9KSkscy5wdXNoKG4pO2Vsc2UgaWYobi5uYW1lJiZuLnVybClvLnB1c2gobik7ZWxzZSBpZih0eXBlb2Ygbj09InN0cmluZyImJm4uc3RhcnRzV2l0aCgiaHR0cCIpKW49e3VybDpuLG5hbWU6bi5zcGxpdCgiLy8iKS5wb3AoKS5yZXBsYWNlKC9cLy9nLCItIil9LG8ucHVzaChuKTtlbHNlIHRocm93J0Nhbm5vdCBtb3VudCBmaWxlKHMpIHNwZWNpZmllZC4gTXVzdCBiZSBhIEZpbGUsIEJsb2IsIGEgVVJMIHN0cmluZywgb3IgeyBuYW1lOiAiZmlsZS50eHQiLCBkYXRhOiAic3RyaW5nIiB9Lic7YS5wdXNoKG4ubmFtZSl9dHJ5e3QuZnMudW5tb3VudChpKX1jYXRjaHt9Zm9yKGxldCBuIG9mIG8pdC5mcy5jcmVhdGVMYXp5RmlsZShyLG4ubmFtZSxuLnVybCwhMCwhMCk7cmV0dXJuIHQuZmlsZXM9dC5maWxlcy5jb25jYXQocyksdC5iYXNlLm1vZHVsZS5GUy5tb3VudCh0LmJhc2UubW9kdWxlLldPUktFUkZTLHtmaWxlczp0LmZpbGVzLmZpbHRlcihuPT5uIGluc3RhbmNlb2YgRmlsZSksYmxvYnM6dC5maWxlcy5maWx0ZXIobj0+KG49PW51bGw/dm9pZCAwOm4uZGF0YSlpbnN0YW5jZW9mIEJsb2IpfSxpKSxzLm1hcChuPT57Y29uc3QgYz1gJHtpfS8ke24ubmFtZX1gLGw9YCR7cn0vJHtuLm5hbWV9YDt0cnl7dC5mcy51bmxpbmsobCl9Y2F0Y2h7fXQuX2xvZyhgQ3JlYXRpbmcgc3ltbGluazogJHtsfSAtLT4gJHtjfWApLHQuZnMuc3ltbGluayhjLGwpfSksYS5tYXAobj0+YCR7cn0vJHtufWApfSxhc3luYyBleGVjKGUscj1udWxsKXtpZih0Ll9sb2coYEV4ZWN1dGluZyAlYyR7ZX0lYyBhcmdzPSR7cn1gLCJjb2xvcjpkYXJrYmx1ZTsgZm9udC13ZWlnaHQ6Ym9sZCIsIiIpLCFlKXRocm93IkV4cGVjdGluZyBhIGNvbW1hbmQiO2xldCBpPWU7cj09bnVsbCYmKHI9ZS5zcGxpdCgiICIpLGk9ci5zaGlmdCgpKTtjb25zdCBzPXQudG9vbHMuZmluZChhPT57dmFyIGM7bGV0IG49aTtyZXR1cm4oKGM9YT09bnVsbD92b2lkIDA6YS5mZWF0dXJlcyk9PW51bGw/dm9pZCAwOmMuc2ltZCk9PT0hMCYmKG49YCR7bn0tc2ltZGApLGEucHJvZ3JhbT09bn0pO2lmKHM9PW51bGwpdGhyb3dgUHJvZ3JhbSAke2l9IG5vdCBmb3VuZC5gO3Muc3Rkb3V0PSIiLHMuc3RkZXJyPSIiLHMubG9hZGluZz09eCYmKHMubG9hZGluZz1rLGF3YWl0IHRoaXMuX2luaXRNb2R1bGVzKCkpO3RyeXtzLm1vZHVsZS5jYWxsTWFpbihyKX1jYXRjaChhKXtjb25zb2xlLmVycm9yKGEpfXRyeXtzLm1vZHVsZS5GUy5jbG9zZShzLm1vZHVsZS5GUy5zdHJlYW1zWzFdKSxzLm1vZHVsZS5GUy5jbG9zZShzLm1vZHVsZS5GUy5zdHJlYW1zWzJdKX1jYXRjaHt9cy5tb2R1bGUuRlMuc3RyZWFtc1sxXT1zLm1vZHVsZS5GUy5vcGVuKCIvZGV2L3N0ZG91dCIsInciKSxzLm1vZHVsZS5GUy5zdHJlYW1zWzJdPXMubW9kdWxlLkZTLm9wZW4oIi9kZXYvc3RkZXJyIiwidyIpO2xldCBvPXtzdGRvdXQ6cy5zdGRvdXQsc3RkZXJyOnMuc3RkZXJyfTtyZXR1cm4gdC5jb25maWcucHJpbnRJbnRlcmxlYXZlZCYmKG89cy5zdGRvdXQpLHMucmVpbml0PT09ITAmJmF3YWl0IHRoaXMucmVpbml0KHMudG9vbCksb30sY2F0KGUpe3JldHVybiB0Ll9maWxlb3AoImNhdCIsZSl9LGxzKGUpe3JldHVybiB0Ll9maWxlb3AoImxzIixlKX0sZG93bmxvYWQoZSl7cmV0dXJuIHQuX2ZpbGVvcCgiZG93bmxvYWQiLGUpfSxwd2QoKXtyZXR1cm4gdC5mcy5jd2QoKX0sY2QoZSl7Zm9yKGxldCByIG9mIHQudG9vbHMpIXIubW9kdWxlfHxyLm1vZHVsZS5GUy5jaGRpcihlKX0sbWtkaXIoZSl7cmV0dXJuIHQuZnMubWtkaXIoZSksITB9LHJlYWQoe3BhdGg6ZSxsZW5ndGg6cixmbGFnOmk9InIiLG9mZnNldDpzPTAscG9zaXRpb246bz0wfSl7Y29uc3QgYT10LmZzLm9wZW4oZSxpKSxuPW5ldyBVaW50OEFycmF5KHIpO3JldHVybiB0LmZzLnJlYWQoYSxuLHMscixvKSx0LmZzLmNsb3NlKGEpLG59LHdyaXRlKHtwYXRoOmUsYnVmZmVyOnIsZmxhZzppPSJ3KyIsb2Zmc2V0OnM9MCxwb3NpdGlvbjpvPTB9KXtjb25zdCBhPXQuZnMub3BlbihlLGkpO3QuZnMud3JpdGUoYSxyLHMsci5sZW5ndGgsbyksdC5mcy5jbG9zZShhKX0sYXN5bmMgcmVpbml0KGUpe2NvbnN0IHI9dC50b29scy5maW5kKHM9PnMudG9vbD09ZSksaT10LmJhc2UubW9kdWxlLkZTLmN3ZCgpO09iamVjdC5hc3NpZ24ocixyLmNvbmZpZyksci5yZWFkeT0hMSxhd2FpdCB0aGlzLmluaXQoKSxyLmlzQmFzZU1vZHVsZSYmdGhpcy5tb3VudCgpLHRoaXMuY2QoaSl9LF9zdGRpblR4dDoiIixfc3RkaW5QdHI6MCxnZXQgc3RkaW4oKXtyZXR1cm4gdC5fc3RkaW5UeHR9LHNldCBzdGRpbihlPSIiKXt0Ll9sb2coYFNldHRpbmcgc3RkaW4gdG8gJWMke2V9JWNgLCJjb2xvcjpkYXJrYmx1ZSIsIiIpLHQuX3N0ZGluVHh0PWUsdC5fc3RkaW5QdHI9MH0sYXN5bmMgX3NldHVwKGUpe2lmKGUucmVhZHkpcmV0dXJuO2lmKHQuX2xvZyhgU2V0dGluZyB1cCAke2UudG9vbH0gKGJhc2UgPSAke2UuaXNCYXNlTW9kdWxlPT09ITB9KS4uLmApLGUuY29uZmlnPU9iamVjdC5hc3NpZ24oe30sZSksZS51cmxQcmVmaXh8fChlLnVybFByZWZpeD1gJHt0LmNvbmZpZy51cmxDRE59LyR7ZS50b29sfS8ke2UudmVyc2lvbn1gKSxlLnByb2dyYW18fChlLnByb2dyYW09ZS50b29sKSxlLmZlYXR1cmVzfHwoZS5mZWF0dXJlcz17fSwoaltlLnByb2dyYW1dfHxbXSkuaW5jbHVkZXMoInNpbWQiKSYmKGF3YWl0IFcoKT8oZS5wcm9ncmFtKz0iLXNpbWQiLGUuZmVhdHVyZXMuc2ltZD0hMCk6dC5fbG9nKGBXZWJBc3NlbWJseSBTSU1EIGlzIG5vdCBzdXBwb3J0ZWQgaW4gdGhpcyBicm93c2VyOyB3aWxsIGxvYWQgbm9uLVNJTUQgdmVyc2lvbiBvZiAke2UucHJvZ3JhbX0uYCkpKSxlLmlzQmFzZU1vZHVsZSYmKGUubG9hZGluZz1rKSxlLmxvYWRpbmc9PT14KXt0Ll9sb2coYFdpbGwgbGF6eS1sb2FkICR7ZS50b29sfTsgc2tpcHBpbmcgaW5pdGlhbGl6YXRpb24uYCk7cmV0dXJufXNlbGYuaW1wb3J0U2NyaXB0cyhgJHtlLnVybFByZWZpeH0vJHtlLnByb2dyYW19LmpzYCksZS5tb2R1bGU9YXdhaXQgTW9kdWxlKHt0aGlzUHJvZ3JhbTplLnByb2dyYW0sbG9jYXRlRmlsZTooaSxzKT0+YCR7ZS51cmxQcmVmaXh9LyR7aX1gLHN0ZGluOigpPT50Ll9zdGRpblB0cjx0LnN0ZGluLmxlbmd0aD90LnN0ZGluLmNoYXJDb2RlQXQodC5fc3RkaW5QdHIrKyk6KHQuc3RkaW49IiIsbnVsbCkscHJpbnQ6aT0+e3QuY29uZmlnLnByaW50U3RyZWFtP3Bvc3RNZXNzYWdlKHt0eXBlOiJiaW93YXNtIix2YWx1ZTp7c3Rkb3V0Oml9fSk6ZS5zdGRvdXQrPWkrYApgfSxwcmludEVycjppPT57Y29uc3Qgcz10LmNvbmZpZy5wcmludEludGVybGVhdmVkPyJzdGRvdXQiOiJzdGRlcnIiO3QuY29uZmlnLnByaW50U3RyZWFtP3Bvc3RNZXNzYWdlKHt0eXBlOiJiaW93YXNtIix2YWx1ZTp7W3NdOml9fSk6ZVtzXSs9aStgCmB9fSk7Y29uc3Qgcj1lLm1vZHVsZS5GUztlLmlzQmFzZU1vZHVsZT8odC5fbG9nKGBTZXR0aW5nIHVwICR7ZS50b29sfSB3aXRoIGJhc2UgbW9kdWxlIGZpbGVzeXN0ZW0uLi5gKSxyLm1rZGlyKHQuY29uZmlnLmRpclNoYXJlZCw1MTEpLHIubWtkaXIoYCR7dC5jb25maWcuZGlyU2hhcmVkfS8ke3QuY29uZmlnLmRpckRhdGF9YCw1MTEpLHIubWtkaXIoYCR7dC5jb25maWcuZGlyU2hhcmVkfS8ke3QuY29uZmlnLmRpck1vdW50ZWR9YCw1MTEpLHIuY2hkaXIoYCR7dC5jb25maWcuZGlyU2hhcmVkfS8ke3QuY29uZmlnLmRpckRhdGF9YCksdC5mcz1yKToodC5fbG9nKGBTZXR0aW5nIHVwICR7ZS50b29sfSB3aXRoIGZpbGVzeXN0ZW0uLi5gKSxyLm1rZGlyKHQuY29uZmlnLmRpclNoYXJlZCksci5tb3VudChlLm1vZHVsZS5QUk9YWUZTLHtyb290OnQuY29uZmlnLmRpclNoYXJlZCxmczp0LmZzfSx0LmNvbmZpZy5kaXJTaGFyZWQpLHIuY2hkaXIodC5mcy5jd2QoKSkpLGUuc3Rkb3V0PSIiLGUuc3RkZXJyPSIiLGUucmVhZHk9ITB9LGFzeW5jIF9zZXR1cEZTKCl7Y29uc3QgZT10LmZzO2ZvcihsZXQgciBvZiB0LnRvb2xzKXtpZighci5yZWFkeSljb250aW51ZTtjb25zdCBpPXIubW9kdWxlLkZTLHM9YC8ke3IudG9vbH1gLG89YCR7dC5jb25maWcuZGlyU2hhcmVkfSR7c31gOyFpLmFuYWx5emVQYXRoKHMpLmV4aXN0c3x8ZS5hbmFseXplUGF0aChvKS5leGlzdHN8fCh0Ll9sb2coYE1vdW50aW5nICR7c30gb250byAke3QuYmFzZS50b29sfSBmaWxlc3lzdGVtIGF0ICR7b31gKSxlLm1rZGlyKG8pLGUubW91bnQodC5iYXNlLm1vZHVsZS5QUk9YWUZTLHtyb290OnMsZnM6aX0sbykpfX0sX2ZpbGVvcChlLHIpe3QuX2xvZyhgUnVubmluZyAke2V9ICR7cn1gKTtjb25zdCBpPXQuZnMuYW5hbHl6ZVBhdGgocik7aWYoIWkuZXhpc3RzKXJldHVybiB0Ll9sb2coYEZpbGUgJHtyfSBub3QgZm91bmQuYCksITE7c3dpdGNoKGUpe2Nhc2UiY2F0IjpyZXR1cm4gdC5mcy5yZWFkRmlsZShyLHtlbmNvZGluZzoidXRmOCJ9KTtjYXNlImxzIjpyZXR1cm4gdC5mcy5pc0ZpbGUoaS5vYmplY3QubW9kZSk/dC5mcy5zdGF0KHIpOnQuZnMucmVhZGRpcihyKTtjYXNlImRvd25sb2FkIjpjb25zdCBzPW5ldyBCbG9iKFt0aGlzLmNhdChyKV0pO3JldHVybiBVUkwuY3JlYXRlT2JqZWN0VVJMKHMpfXJldHVybiExfSxfbG9nKGUpe2lmKCF0LmNvbmZpZy5kZWJ1ZylyZXR1cm47bGV0IHI9Wy4uLmFyZ3VtZW50c107ci5zaGlmdCgpLGNvbnNvbGUubG9nKGAlY1tXZWJXb3JrZXJdJWMgJHtlfWAsImZvbnQtd2VpZ2h0OmJvbGQiLCIiLC4uLnIpfX07dyh0KX0pKCk7Cg==";typeof window<"u"&&window.Blob&&new Blob([atob(zOe)],{type:"text/javascript;charset=utf-8"});function F2(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function QOe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function L5(e){let t,r,s;e.length!==2?(t=F2,r=(a,l)=>F2(e(a),l),s=(a,l)=>e(a)-l):(t=e===F2||e===QOe?e:UOe,r=e,s=e);function n(a,l,c=0,u=a.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;r(a[d],l)<0?c=d+1:u=d}while(c<u)}return c}function i(a,l,c=0,u=a.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;r(a[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function o(a,l,c=0,u=a.length){const d=n(a,l,c,u-1);return d>c&&s(a[d-1],l)>-s(a[d],l)?d-1:d}return{left:n,center:o,right:i}}function UOe(){return 0}function WOe(e){return e===null?NaN:+e}const jOe=L5(F2),KOe=jOe.right;L5(WOe).center;const YOe=Math.sqrt(50),ZOe=Math.sqrt(10),XOe=Math.sqrt(2);function qF(e,t,r){const s=(t-e)/Math.max(0,r),n=Math.floor(Math.log10(s)),i=s/Math.pow(10,n),o=i>=YOe?10:i>=ZOe?5:i>=XOe?2:1;let a,l,c;return n<0?(c=Math.pow(10,-n)/o,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,n)*o,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=r&&r<2?qF(e,t,r*2):[a,l,c]}function hB(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const s=t<e,[n,i,o]=s?qF(t,e,r):qF(e,t,r);if(!(i>=n))return[];const a=i-n+1,l=new Array(a);if(s)if(o<0)for(let c=0;c<a;++c)l[c]=(i-c)/-o;else for(let c=0;c<a;++c)l[c]=(i-c)*o;else if(o<0)for(let c=0;c<a;++c)l[c]=(n+c)/-o;else for(let c=0;c<a;++c)l[c]=(n+c)*o;return l}function pB(e,t,r){return t=+t,e=+e,r=+r,qF(e,t,r)[2]}function gB(e,t,r){t=+t,e=+e,r=+r;const s=t<e,n=s?pB(t,e,r):pB(e,t,r);return(s?-1:1)*(n<0?1/-n:n)}function $Oe(e){var t=0,r=e.children,s=r&&r.length;if(!s)t=1;else for(;--s>=0;)t+=r[s].value;e.value=t}function JOe(){return this.eachAfter($Oe)}function qOe(e,t){let r=-1;for(const s of this)e.call(t,s,++r,this);return this}function e9e(e,t){for(var r=this,s=[r],n,i,o=-1;r=s.pop();)if(e.call(t,r,++o,this),n=r.children)for(i=n.length-1;i>=0;--i)s.push(n[i]);return this}function t9e(e,t){for(var r=this,s=[r],n=[],i,o,a,l=-1;r=s.pop();)if(n.push(r),i=r.children)for(o=0,a=i.length;o<a;++o)s.push(i[o]);for(;r=n.pop();)e.call(t,r,++l,this);return this}function r9e(e,t){let r=-1;for(const s of this)if(e.call(t,s,++r,this))return s}function s9e(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,s=t.children,n=s&&s.length;--n>=0;)r+=s[n].value;t.value=r})}function n9e(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function i9e(e){for(var t=this,r=o9e(t,e),s=[t];t!==r;)t=t.parent,s.push(t);for(var n=s.length;e!==r;)s.splice(n,0,e),e=e.parent;return s}function o9e(e,t){if(e===t)return e;var r=e.ancestors(),s=t.ancestors(),n=null;for(e=r.pop(),t=s.pop();e===t;)n=e,e=r.pop(),t=s.pop();return n}function a9e(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function l9e(){return Array.from(this)}function c9e(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function u9e(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function*d9e(){var e=this,t,r=[e],s,n,i;do for(t=r.reverse(),r=[];e=t.pop();)if(yield e,s=e.children)for(n=0,i=s.length;n<i;++n)r.push(s[n]);while(r.length)}function wJ(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=g9e)):t===void 0&&(t=p9e);for(var r=new eR(e),s,n=[r],i,o,a,l;s=n.pop();)if((o=t(s.data))&&(l=(o=Array.from(o)).length))for(s.children=o,a=l-1;a>=0;--a)n.push(i=o[a]=new eR(o[a])),i.parent=s,i.depth=s.depth+1;return r.eachBefore(A9e)}function h9e(){return wJ(this).eachBefore(f9e)}function p9e(e){return e.children}function g9e(e){return Array.isArray(e)?e[1]:null}function f9e(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function A9e(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function eR(e){this.data=e,this.depth=this.height=0,this.parent=null}eR.prototype=wJ.prototype={constructor:eR,count:JOe,each:qOe,eachAfter:t9e,eachBefore:e9e,find:r9e,sum:s9e,sort:n9e,path:i9e,ancestors:a9e,descendants:l9e,leaves:c9e,links:u9e,copy:h9e,[Symbol.iterator]:d9e};var Lm={},yJ={exports:{}},qr={};/**
730
730
  * @license React
731
731
  * react.production.min.js
732
732
  *
@@ -734,7 +734,7 @@ function print() { __p += __j.call(arguments, '') }
734
734
  *
735
735
  * This source code is licensed under the MIT license found in the
736
736
  * LICENSE file in the root directory of this source tree.
737
- */var WO;function o9e(){if(WO)return qr;WO=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.iterator;function g($){return $===null||typeof $!="object"?null:($=d&&$[d]||$["@@iterator"],typeof $=="function"?$:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,v={};function b($,se,De){this.props=$,this.context=se,this.refs=v,this.updater=De||A}b.prototype.isReactComponent={},b.prototype.setState=function($,se){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,$,se,"setState")},b.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function S(){}S.prototype=b.prototype;function P($,se,De){this.props=$,this.context=se,this.refs=v,this.updater=De||A}var F=P.prototype=new S;F.constructor=P,w(F,b.prototype),F.isPureReactComponent=!0;var T=Array.isArray,D=Object.prototype.hasOwnProperty,B={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function z($,se,De){var Oe,Be={},Ve=null,ze=null;if(se!=null)for(Oe in se.ref!==void 0&&(ze=se.ref),se.key!==void 0&&(Ve=""+se.key),se)D.call(se,Oe)&&!k.hasOwnProperty(Oe)&&(Be[Oe]=se[Oe]);var nt=arguments.length-2;if(nt===1)Be.children=De;else if(1<nt){for(var xe=Array(nt),He=0;He<nt;He++)xe[He]=arguments[He+2];Be.children=xe}if($&&$.defaultProps)for(Oe in nt=$.defaultProps,nt)Be[Oe]===void 0&&(Be[Oe]=nt[Oe]);return{$$typeof:e,type:$,key:Ve,ref:ze,props:Be,_owner:B.current}}function O($,se){return{$$typeof:e,type:$.type,key:se,ref:$.ref,props:$.props,_owner:$._owner}}function j($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function _($){var se={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(De){return se[De]})}var G=/\/+/g;function N($,se){return typeof $=="object"&&$!==null&&$.key!=null?_(""+$.key):se.toString(36)}function W($,se,De,Oe,Be){var Ve=typeof $;(Ve==="undefined"||Ve==="boolean")&&($=null);var ze=!1;if($===null)ze=!0;else switch(Ve){case"string":case"number":ze=!0;break;case"object":switch($.$$typeof){case e:case t:ze=!0}}if(ze)return ze=$,Be=Be(ze),$=Oe===""?"."+N(ze,0):Oe,T(Be)?(De="",$!=null&&(De=$.replace(G,"$&/")+"/"),W(Be,se,De,"",function(He){return He})):Be!=null&&(j(Be)&&(Be=O(Be,De+(!Be.key||ze&&ze.key===Be.key?"":(""+Be.key).replace(G,"$&/")+"/")+$)),se.push(Be)),1;if(ze=0,Oe=Oe===""?".":Oe+":",T($))for(var nt=0;nt<$.length;nt++){Ve=$[nt];var xe=Oe+N(Ve,nt);ze+=W(Ve,se,De,xe,Be)}else if(xe=g($),typeof xe=="function")for($=xe.call($),nt=0;!(Ve=$.next()).done;)Ve=Ve.value,xe=Oe+N(Ve,nt++),ze+=W(Ve,se,De,xe,Be);else if(Ve==="object")throw se=String($),Error("Objects are not valid as a React child (found: "+(se==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":se)+"). If you meant to render a collection of children, use an array instead.");return ze}function V($,se,De){if($==null)return $;var Oe=[],Be=0;return W($,Oe,"","",function(Ve){return se.call(De,Ve,Be++)}),Oe}function q($){if($._status===-1){var se=$._result;se=se(),se.then(function(De){($._status===0||$._status===-1)&&($._status=1,$._result=De)},function(De){($._status===0||$._status===-1)&&($._status=2,$._result=De)}),$._status===-1&&($._status=0,$._result=se)}if($._status===1)return $._result.default;throw $._result}var pe={current:null},X={transition:null},re={ReactCurrentDispatcher:pe,ReactCurrentBatchConfig:X,ReactCurrentOwner:B};function ae(){throw Error("act(...) is not supported in production builds of React.")}return qr.Children={map:V,forEach:function($,se,De){V($,function(){se.apply(this,arguments)},De)},count:function($){var se=0;return V($,function(){se++}),se},toArray:function($){return V($,function(se){return se})||[]},only:function($){if(!j($))throw Error("React.Children.only expected to receive a single React element child.");return $}},qr.Component=b,qr.Fragment=r,qr.Profiler=n,qr.PureComponent=P,qr.StrictMode=s,qr.Suspense=l,qr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,qr.act=ae,qr.cloneElement=function($,se,De){if($==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+$+".");var Oe=w({},$.props),Be=$.key,Ve=$.ref,ze=$._owner;if(se!=null){if(se.ref!==void 0&&(Ve=se.ref,ze=B.current),se.key!==void 0&&(Be=""+se.key),$.type&&$.type.defaultProps)var nt=$.type.defaultProps;for(xe in se)D.call(se,xe)&&!k.hasOwnProperty(xe)&&(Oe[xe]=se[xe]===void 0&&nt!==void 0?nt[xe]:se[xe])}var xe=arguments.length-2;if(xe===1)Oe.children=De;else if(1<xe){nt=Array(xe);for(var He=0;He<xe;He++)nt[He]=arguments[He+2];Oe.children=nt}return{$$typeof:e,type:$.type,key:Be,ref:Ve,props:Oe,_owner:ze}},qr.createContext=function($){return $={$$typeof:o,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},$.Provider={$$typeof:i,_context:$},$.Consumer=$},qr.createElement=z,qr.createFactory=function($){var se=z.bind(null,$);return se.type=$,se},qr.createRef=function(){return{current:null}},qr.forwardRef=function($){return{$$typeof:a,render:$}},qr.isValidElement=j,qr.lazy=function($){return{$$typeof:u,_payload:{_status:-1,_result:$},_init:q}},qr.memo=function($,se){return{$$typeof:c,type:$,compare:se===void 0?null:se}},qr.startTransition=function($){var se=X.transition;X.transition={};try{$()}finally{X.transition=se}},qr.unstable_act=ae,qr.useCallback=function($,se){return pe.current.useCallback($,se)},qr.useContext=function($){return pe.current.useContext($)},qr.useDebugValue=function(){},qr.useDeferredValue=function($){return pe.current.useDeferredValue($)},qr.useEffect=function($,se){return pe.current.useEffect($,se)},qr.useId=function(){return pe.current.useId()},qr.useImperativeHandle=function($,se,De){return pe.current.useImperativeHandle($,se,De)},qr.useInsertionEffect=function($,se){return pe.current.useInsertionEffect($,se)},qr.useLayoutEffect=function($,se){return pe.current.useLayoutEffect($,se)},qr.useMemo=function($,se){return pe.current.useMemo($,se)},qr.useReducer=function($,se,De){return pe.current.useReducer($,se,De)},qr.useRef=function($){return pe.current.useRef($)},qr.useState=function($){return pe.current.useState($)},qr.useSyncExternalStore=function($,se,De){return pe.current.useSyncExternalStore($,se,De)},qr.useTransition=function(){return pe.current.useTransition()},qr.version="18.3.1",qr}CJ.exports=o9e();var qu=CJ.exports;const wJ=tTe(qu);/**
737
+ */var XO;function m9e(){if(XO)return qr;XO=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.iterator;function g($){return $===null||typeof $!="object"?null:($=d&&$[d]||$["@@iterator"],typeof $=="function"?$:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,v={};function b($,se,De){this.props=$,this.context=se,this.refs=v,this.updater=De||A}b.prototype.isReactComponent={},b.prototype.setState=function($,se){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,$,se,"setState")},b.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function S(){}S.prototype=b.prototype;function P($,se,De){this.props=$,this.context=se,this.refs=v,this.updater=De||A}var F=P.prototype=new S;F.constructor=P,w(F,b.prototype),F.isPureReactComponent=!0;var T=Array.isArray,D=Object.prototype.hasOwnProperty,B={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function z($,se,De){var Oe,Be={},Ve=null,ze=null;if(se!=null)for(Oe in se.ref!==void 0&&(ze=se.ref),se.key!==void 0&&(Ve=""+se.key),se)D.call(se,Oe)&&!k.hasOwnProperty(Oe)&&(Be[Oe]=se[Oe]);var nt=arguments.length-2;if(nt===1)Be.children=De;else if(1<nt){for(var xe=Array(nt),He=0;He<nt;He++)xe[He]=arguments[He+2];Be.children=xe}if($&&$.defaultProps)for(Oe in nt=$.defaultProps,nt)Be[Oe]===void 0&&(Be[Oe]=nt[Oe]);return{$$typeof:e,type:$,key:Ve,ref:ze,props:Be,_owner:B.current}}function O($,se){return{$$typeof:e,type:$.type,key:se,ref:$.ref,props:$.props,_owner:$._owner}}function j($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function _($){var se={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(De){return se[De]})}var G=/\/+/g;function N($,se){return typeof $=="object"&&$!==null&&$.key!=null?_(""+$.key):se.toString(36)}function W($,se,De,Oe,Be){var Ve=typeof $;(Ve==="undefined"||Ve==="boolean")&&($=null);var ze=!1;if($===null)ze=!0;else switch(Ve){case"string":case"number":ze=!0;break;case"object":switch($.$$typeof){case e:case t:ze=!0}}if(ze)return ze=$,Be=Be(ze),$=Oe===""?"."+N(ze,0):Oe,T(Be)?(De="",$!=null&&(De=$.replace(G,"$&/")+"/"),W(Be,se,De,"",function(He){return He})):Be!=null&&(j(Be)&&(Be=O(Be,De+(!Be.key||ze&&ze.key===Be.key?"":(""+Be.key).replace(G,"$&/")+"/")+$)),se.push(Be)),1;if(ze=0,Oe=Oe===""?".":Oe+":",T($))for(var nt=0;nt<$.length;nt++){Ve=$[nt];var xe=Oe+N(Ve,nt);ze+=W(Ve,se,De,xe,Be)}else if(xe=g($),typeof xe=="function")for($=xe.call($),nt=0;!(Ve=$.next()).done;)Ve=Ve.value,xe=Oe+N(Ve,nt++),ze+=W(Ve,se,De,xe,Be);else if(Ve==="object")throw se=String($),Error("Objects are not valid as a React child (found: "+(se==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":se)+"). If you meant to render a collection of children, use an array instead.");return ze}function V($,se,De){if($==null)return $;var Oe=[],Be=0;return W($,Oe,"","",function(Ve){return se.call(De,Ve,Be++)}),Oe}function q($){if($._status===-1){var se=$._result;se=se(),se.then(function(De){($._status===0||$._status===-1)&&($._status=1,$._result=De)},function(De){($._status===0||$._status===-1)&&($._status=2,$._result=De)}),$._status===-1&&($._status=0,$._result=se)}if($._status===1)return $._result.default;throw $._result}var pe={current:null},X={transition:null},re={ReactCurrentDispatcher:pe,ReactCurrentBatchConfig:X,ReactCurrentOwner:B};function ae(){throw Error("act(...) is not supported in production builds of React.")}return qr.Children={map:V,forEach:function($,se,De){V($,function(){se.apply(this,arguments)},De)},count:function($){var se=0;return V($,function(){se++}),se},toArray:function($){return V($,function(se){return se})||[]},only:function($){if(!j($))throw Error("React.Children.only expected to receive a single React element child.");return $}},qr.Component=b,qr.Fragment=r,qr.Profiler=n,qr.PureComponent=P,qr.StrictMode=s,qr.Suspense=l,qr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,qr.act=ae,qr.cloneElement=function($,se,De){if($==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+$+".");var Oe=w({},$.props),Be=$.key,Ve=$.ref,ze=$._owner;if(se!=null){if(se.ref!==void 0&&(Ve=se.ref,ze=B.current),se.key!==void 0&&(Be=""+se.key),$.type&&$.type.defaultProps)var nt=$.type.defaultProps;for(xe in se)D.call(se,xe)&&!k.hasOwnProperty(xe)&&(Oe[xe]=se[xe]===void 0&&nt!==void 0?nt[xe]:se[xe])}var xe=arguments.length-2;if(xe===1)Oe.children=De;else if(1<xe){nt=Array(xe);for(var He=0;He<xe;He++)nt[He]=arguments[He+2];Oe.children=nt}return{$$typeof:e,type:$.type,key:Be,ref:Ve,props:Oe,_owner:ze}},qr.createContext=function($){return $={$$typeof:o,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},$.Provider={$$typeof:i,_context:$},$.Consumer=$},qr.createElement=z,qr.createFactory=function($){var se=z.bind(null,$);return se.type=$,se},qr.createRef=function(){return{current:null}},qr.forwardRef=function($){return{$$typeof:a,render:$}},qr.isValidElement=j,qr.lazy=function($){return{$$typeof:u,_payload:{_status:-1,_result:$},_init:q}},qr.memo=function($,se){return{$$typeof:c,type:$,compare:se===void 0?null:se}},qr.startTransition=function($){var se=X.transition;X.transition={};try{$()}finally{X.transition=se}},qr.unstable_act=ae,qr.useCallback=function($,se){return pe.current.useCallback($,se)},qr.useContext=function($){return pe.current.useContext($)},qr.useDebugValue=function(){},qr.useDeferredValue=function($){return pe.current.useDeferredValue($)},qr.useEffect=function($,se){return pe.current.useEffect($,se)},qr.useId=function(){return pe.current.useId()},qr.useImperativeHandle=function($,se,De){return pe.current.useImperativeHandle($,se,De)},qr.useInsertionEffect=function($,se){return pe.current.useInsertionEffect($,se)},qr.useLayoutEffect=function($,se){return pe.current.useLayoutEffect($,se)},qr.useMemo=function($,se){return pe.current.useMemo($,se)},qr.useReducer=function($,se,De){return pe.current.useReducer($,se,De)},qr.useRef=function($){return pe.current.useRef($)},qr.useState=function($){return pe.current.useState($)},qr.useSyncExternalStore=function($,se,De){return pe.current.useSyncExternalStore($,se,De)},qr.useTransition=function(){return pe.current.useTransition()},qr.version="18.3.1",qr}yJ.exports=m9e();var qu=yJ.exports;const bJ=tTe(qu);/**
738
738
  * @license React
739
739
  * react-dom-server-legacy.browser.production.min.js
740
740
  *
@@ -742,13 +742,13 @@ function print() { __p += __j.call(arguments, '') }
742
742
  *
743
743
  * This source code is licensed under the MIT license found in the
744
744
  * LICENSE file in the root directory of this source tree.
745
- */var jO;function a9e(){if(jO)return Lm;jO=1;var e=qu;function t(M){for(var U="https://reactjs.org/docs/error-decoder.html?invariant="+M,te=1;te<arguments.length;te++)U+="&args[]="+encodeURIComponent(arguments[te]);return"Minified React error #"+M+"; visit "+U+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=Object.prototype.hasOwnProperty,s=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,n={},i={};function o(M){return r.call(i,M)?!0:r.call(n,M)?!1:s.test(M)?i[M]=!0:(n[M]=!0,!1)}function a(M,U,te,ce,Ie,Fe,Ye){this.acceptsBooleans=U===2||U===3||U===4,this.attributeName=ce,this.attributeNamespace=Ie,this.mustUseProperty=te,this.propertyName=M,this.type=U,this.sanitizeURL=Fe,this.removeEmptyString=Ye}var l={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(M){l[M]=new a(M,0,!1,M,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(M){var U=M[0];l[U]=new a(U,1,!1,M[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(M){l[M]=new a(M,2,!1,M.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(M){l[M]=new a(M,2,!1,M,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(M){l[M]=new a(M,3,!1,M.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(M){l[M]=new a(M,3,!0,M,null,!1,!1)}),["capture","download"].forEach(function(M){l[M]=new a(M,4,!1,M,null,!1,!1)}),["cols","rows","size","span"].forEach(function(M){l[M]=new a(M,6,!1,M,null,!1,!1)}),["rowSpan","start"].forEach(function(M){l[M]=new a(M,5,!1,M.toLowerCase(),null,!1,!1)});var c=/[\-:]([a-z])/g;function u(M){return M[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(M){var U=M.replace(c,u);l[U]=new a(U,1,!1,M,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(M){var U=M.replace(c,u);l[U]=new a(U,1,!1,M,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(M){var U=M.replace(c,u);l[U]=new a(U,1,!1,M,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(M){l[M]=new a(M,1,!1,M.toLowerCase(),null,!1,!1)}),l.xlinkHref=new a("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(M){l[M]=new a(M,1,!1,M.toLowerCase(),null,!0,!0)});var d={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},g=["Webkit","ms","Moz","O"];Object.keys(d).forEach(function(M){g.forEach(function(U){U=U+M.charAt(0).toUpperCase()+M.substring(1),d[U]=d[M]})});var A=/["'&<>]/;function w(M){if(typeof M=="boolean"||typeof M=="number")return""+M;M=""+M;var U=A.exec(M);if(U){var te="",ce,Ie=0;for(ce=U.index;ce<M.length;ce++){switch(M.charCodeAt(ce)){case 34:U="&quot;";break;case 38:U="&amp;";break;case 39:U="&#x27;";break;case 60:U="&lt;";break;case 62:U="&gt;";break;default:continue}Ie!==ce&&(te+=M.substring(Ie,ce)),Ie=ce+1,te+=U}M=Ie!==ce?te+M.substring(Ie,ce):te}return M}var v=/([A-Z])/g,b=/^ms-/,S=Array.isArray;function P(M,U){return{insertionMode:M,selectedValue:U}}function F(M,U,te){switch(U){case"select":return P(1,te.value!=null?te.value:te.defaultValue);case"svg":return P(2,null);case"math":return P(3,null);case"foreignObject":return P(1,null);case"table":return P(4,null);case"thead":case"tbody":case"tfoot":return P(5,null);case"colgroup":return P(7,null);case"tr":return P(6,null)}return 4<=M.insertionMode||M.insertionMode===0?P(1,null):M}var T=new Map;function D(M,U,te){if(typeof te!="object")throw Error(t(62));U=!0;for(var ce in te)if(r.call(te,ce)){var Ie=te[ce];if(Ie!=null&&typeof Ie!="boolean"&&Ie!==""){if(ce.indexOf("--")===0){var Fe=w(ce);Ie=w((""+Ie).trim())}else{Fe=ce;var Ye=T.get(Fe);Ye!==void 0||(Ye=w(Fe.replace(v,"-$1").toLowerCase().replace(b,"-ms-")),T.set(Fe,Ye)),Fe=Ye,Ie=typeof Ie=="number"?Ie===0||r.call(d,ce)?""+Ie:Ie+"px":w((""+Ie).trim())}U?(U=!1,M.push(' style="',Fe,":",Ie)):M.push(";",Fe,":",Ie)}}U||M.push('"')}function B(M,U,te,ce){switch(te){case"style":D(M,U,ce);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<te.length)||te[0]!=="o"&&te[0]!=="O"||te[1]!=="n"&&te[1]!=="N"){if(U=l.hasOwnProperty(te)?l[te]:null,U!==null){switch(typeof ce){case"function":case"symbol":return;case"boolean":if(!U.acceptsBooleans)return}switch(te=U.attributeName,U.type){case 3:ce&&M.push(" ",te,'=""');break;case 4:ce===!0?M.push(" ",te,'=""'):ce!==!1&&M.push(" ",te,'="',w(ce),'"');break;case 5:isNaN(ce)||M.push(" ",te,'="',w(ce),'"');break;case 6:!isNaN(ce)&&1<=ce&&M.push(" ",te,'="',w(ce),'"');break;default:U.sanitizeURL&&(ce=""+ce),M.push(" ",te,'="',w(ce),'"')}}else if(o(te)){switch(typeof ce){case"function":case"symbol":return;case"boolean":if(U=te.toLowerCase().slice(0,5),U!=="data-"&&U!=="aria-")return}M.push(" ",te,'="',w(ce),'"')}}}function k(M,U,te){if(U!=null){if(te!=null)throw Error(t(60));if(typeof U!="object"||!("__html"in U))throw Error(t(61));U=U.__html,U!=null&&M.push(""+U)}}function z(M){var U="";return e.Children.forEach(M,function(te){te!=null&&(U+=te)}),U}function O(M,U,te,ce){M.push(G(te));var Ie=te=null,Fe;for(Fe in U)if(r.call(U,Fe)){var Ye=U[Fe];if(Ye!=null)switch(Fe){case"children":te=Ye;break;case"dangerouslySetInnerHTML":Ie=Ye;break;default:B(M,ce,Fe,Ye)}}return M.push(">"),k(M,Ie,te),typeof te=="string"?(M.push(w(te)),null):te}var j=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,_=new Map;function G(M){var U=_.get(M);if(U===void 0){if(!j.test(M))throw Error(t(65,M));U="<"+M,_.set(M,U)}return U}function N(M,U,te,ce,Ie){switch(U){case"select":M.push(G("select"));var Fe=null,Ye=null;for(wr in te)if(r.call(te,wr)){var gt=te[wr];if(gt!=null)switch(wr){case"children":Fe=gt;break;case"dangerouslySetInnerHTML":Ye=gt;break;case"defaultValue":case"value":break;default:B(M,ce,wr,gt)}}return M.push(">"),k(M,Ye,Fe),Fe;case"option":Ye=Ie.selectedValue,M.push(G("option"));var bt=gt=null,Xt=null,wr=null;for(Fe in te)if(r.call(te,Fe)){var Rs=te[Fe];if(Rs!=null)switch(Fe){case"children":gt=Rs;break;case"selected":Xt=Rs;break;case"dangerouslySetInnerHTML":wr=Rs;break;case"value":bt=Rs;default:B(M,ce,Fe,Rs)}}if(Ye!=null)if(te=bt!==null?""+bt:z(gt),S(Ye)){for(ce=0;ce<Ye.length;ce++)if(""+Ye[ce]===te){M.push(' selected=""');break}}else""+Ye===te&&M.push(' selected=""');else Xt&&M.push(' selected=""');return M.push(">"),k(M,wr,gt),gt;case"textarea":M.push(G("textarea")),wr=Ye=Fe=null;for(gt in te)if(r.call(te,gt)&&(bt=te[gt],bt!=null))switch(gt){case"children":wr=bt;break;case"value":Fe=bt;break;case"defaultValue":Ye=bt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:B(M,ce,gt,bt)}if(Fe===null&&Ye!==null&&(Fe=Ye),M.push(">"),wr!=null){if(Fe!=null)throw Error(t(92));if(S(wr)&&1<wr.length)throw Error(t(93));Fe=""+wr}return typeof Fe=="string"&&Fe[0]===`
745
+ */var $O;function v9e(){if($O)return Lm;$O=1;var e=qu;function t(M){for(var U="https://reactjs.org/docs/error-decoder.html?invariant="+M,te=1;te<arguments.length;te++)U+="&args[]="+encodeURIComponent(arguments[te]);return"Minified React error #"+M+"; visit "+U+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=Object.prototype.hasOwnProperty,s=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,n={},i={};function o(M){return r.call(i,M)?!0:r.call(n,M)?!1:s.test(M)?i[M]=!0:(n[M]=!0,!1)}function a(M,U,te,ce,Ie,Fe,Ye){this.acceptsBooleans=U===2||U===3||U===4,this.attributeName=ce,this.attributeNamespace=Ie,this.mustUseProperty=te,this.propertyName=M,this.type=U,this.sanitizeURL=Fe,this.removeEmptyString=Ye}var l={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(M){l[M]=new a(M,0,!1,M,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(M){var U=M[0];l[U]=new a(U,1,!1,M[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(M){l[M]=new a(M,2,!1,M.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(M){l[M]=new a(M,2,!1,M,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(M){l[M]=new a(M,3,!1,M.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(M){l[M]=new a(M,3,!0,M,null,!1,!1)}),["capture","download"].forEach(function(M){l[M]=new a(M,4,!1,M,null,!1,!1)}),["cols","rows","size","span"].forEach(function(M){l[M]=new a(M,6,!1,M,null,!1,!1)}),["rowSpan","start"].forEach(function(M){l[M]=new a(M,5,!1,M.toLowerCase(),null,!1,!1)});var c=/[\-:]([a-z])/g;function u(M){return M[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(M){var U=M.replace(c,u);l[U]=new a(U,1,!1,M,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(M){var U=M.replace(c,u);l[U]=new a(U,1,!1,M,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(M){var U=M.replace(c,u);l[U]=new a(U,1,!1,M,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(M){l[M]=new a(M,1,!1,M.toLowerCase(),null,!1,!1)}),l.xlinkHref=new a("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(M){l[M]=new a(M,1,!1,M.toLowerCase(),null,!0,!0)});var d={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},g=["Webkit","ms","Moz","O"];Object.keys(d).forEach(function(M){g.forEach(function(U){U=U+M.charAt(0).toUpperCase()+M.substring(1),d[U]=d[M]})});var A=/["'&<>]/;function w(M){if(typeof M=="boolean"||typeof M=="number")return""+M;M=""+M;var U=A.exec(M);if(U){var te="",ce,Ie=0;for(ce=U.index;ce<M.length;ce++){switch(M.charCodeAt(ce)){case 34:U="&quot;";break;case 38:U="&amp;";break;case 39:U="&#x27;";break;case 60:U="&lt;";break;case 62:U="&gt;";break;default:continue}Ie!==ce&&(te+=M.substring(Ie,ce)),Ie=ce+1,te+=U}M=Ie!==ce?te+M.substring(Ie,ce):te}return M}var v=/([A-Z])/g,b=/^ms-/,S=Array.isArray;function P(M,U){return{insertionMode:M,selectedValue:U}}function F(M,U,te){switch(U){case"select":return P(1,te.value!=null?te.value:te.defaultValue);case"svg":return P(2,null);case"math":return P(3,null);case"foreignObject":return P(1,null);case"table":return P(4,null);case"thead":case"tbody":case"tfoot":return P(5,null);case"colgroup":return P(7,null);case"tr":return P(6,null)}return 4<=M.insertionMode||M.insertionMode===0?P(1,null):M}var T=new Map;function D(M,U,te){if(typeof te!="object")throw Error(t(62));U=!0;for(var ce in te)if(r.call(te,ce)){var Ie=te[ce];if(Ie!=null&&typeof Ie!="boolean"&&Ie!==""){if(ce.indexOf("--")===0){var Fe=w(ce);Ie=w((""+Ie).trim())}else{Fe=ce;var Ye=T.get(Fe);Ye!==void 0||(Ye=w(Fe.replace(v,"-$1").toLowerCase().replace(b,"-ms-")),T.set(Fe,Ye)),Fe=Ye,Ie=typeof Ie=="number"?Ie===0||r.call(d,ce)?""+Ie:Ie+"px":w((""+Ie).trim())}U?(U=!1,M.push(' style="',Fe,":",Ie)):M.push(";",Fe,":",Ie)}}U||M.push('"')}function B(M,U,te,ce){switch(te){case"style":D(M,U,ce);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<te.length)||te[0]!=="o"&&te[0]!=="O"||te[1]!=="n"&&te[1]!=="N"){if(U=l.hasOwnProperty(te)?l[te]:null,U!==null){switch(typeof ce){case"function":case"symbol":return;case"boolean":if(!U.acceptsBooleans)return}switch(te=U.attributeName,U.type){case 3:ce&&M.push(" ",te,'=""');break;case 4:ce===!0?M.push(" ",te,'=""'):ce!==!1&&M.push(" ",te,'="',w(ce),'"');break;case 5:isNaN(ce)||M.push(" ",te,'="',w(ce),'"');break;case 6:!isNaN(ce)&&1<=ce&&M.push(" ",te,'="',w(ce),'"');break;default:U.sanitizeURL&&(ce=""+ce),M.push(" ",te,'="',w(ce),'"')}}else if(o(te)){switch(typeof ce){case"function":case"symbol":return;case"boolean":if(U=te.toLowerCase().slice(0,5),U!=="data-"&&U!=="aria-")return}M.push(" ",te,'="',w(ce),'"')}}}function k(M,U,te){if(U!=null){if(te!=null)throw Error(t(60));if(typeof U!="object"||!("__html"in U))throw Error(t(61));U=U.__html,U!=null&&M.push(""+U)}}function z(M){var U="";return e.Children.forEach(M,function(te){te!=null&&(U+=te)}),U}function O(M,U,te,ce){M.push(G(te));var Ie=te=null,Fe;for(Fe in U)if(r.call(U,Fe)){var Ye=U[Fe];if(Ye!=null)switch(Fe){case"children":te=Ye;break;case"dangerouslySetInnerHTML":Ie=Ye;break;default:B(M,ce,Fe,Ye)}}return M.push(">"),k(M,Ie,te),typeof te=="string"?(M.push(w(te)),null):te}var j=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,_=new Map;function G(M){var U=_.get(M);if(U===void 0){if(!j.test(M))throw Error(t(65,M));U="<"+M,_.set(M,U)}return U}function N(M,U,te,ce,Ie){switch(U){case"select":M.push(G("select"));var Fe=null,Ye=null;for(wr in te)if(r.call(te,wr)){var gt=te[wr];if(gt!=null)switch(wr){case"children":Fe=gt;break;case"dangerouslySetInnerHTML":Ye=gt;break;case"defaultValue":case"value":break;default:B(M,ce,wr,gt)}}return M.push(">"),k(M,Ye,Fe),Fe;case"option":Ye=Ie.selectedValue,M.push(G("option"));var bt=gt=null,Xt=null,wr=null;for(Fe in te)if(r.call(te,Fe)){var Rs=te[Fe];if(Rs!=null)switch(Fe){case"children":gt=Rs;break;case"selected":Xt=Rs;break;case"dangerouslySetInnerHTML":wr=Rs;break;case"value":bt=Rs;default:B(M,ce,Fe,Rs)}}if(Ye!=null)if(te=bt!==null?""+bt:z(gt),S(Ye)){for(ce=0;ce<Ye.length;ce++)if(""+Ye[ce]===te){M.push(' selected=""');break}}else""+Ye===te&&M.push(' selected=""');else Xt&&M.push(' selected=""');return M.push(">"),k(M,wr,gt),gt;case"textarea":M.push(G("textarea")),wr=Ye=Fe=null;for(gt in te)if(r.call(te,gt)&&(bt=te[gt],bt!=null))switch(gt){case"children":wr=bt;break;case"value":Fe=bt;break;case"defaultValue":Ye=bt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:B(M,ce,gt,bt)}if(Fe===null&&Ye!==null&&(Fe=Ye),M.push(">"),wr!=null){if(Fe!=null)throw Error(t(92));if(S(wr)&&1<wr.length)throw Error(t(93));Fe=""+wr}return typeof Fe=="string"&&Fe[0]===`
746
746
  `&&M.push(`
747
747
  `),Fe!==null&&M.push(w(""+Fe)),null;case"input":M.push(G("input")),bt=wr=gt=Fe=null;for(Ye in te)if(r.call(te,Ye)&&(Xt=te[Ye],Xt!=null))switch(Ye){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":bt=Xt;break;case"defaultValue":gt=Xt;break;case"checked":wr=Xt;break;case"value":Fe=Xt;break;default:B(M,ce,Ye,Xt)}return wr!==null?B(M,ce,"checked",wr):bt!==null&&B(M,ce,"checked",bt),Fe!==null?B(M,ce,"value",Fe):gt!==null&&B(M,ce,"value",gt),M.push("/>"),null;case"menuitem":M.push(G("menuitem"));for(var Ao in te)if(r.call(te,Ao)&&(Fe=te[Ao],Fe!=null))switch(Ao){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:B(M,ce,Ao,Fe)}return M.push(">"),null;case"title":M.push(G("title")),Fe=null;for(Rs in te)if(r.call(te,Rs)&&(Ye=te[Rs],Ye!=null))switch(Rs){case"children":Fe=Ye;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:B(M,ce,Rs,Ye)}return M.push(">"),Fe;case"listing":case"pre":M.push(G(U)),Ye=Fe=null;for(bt in te)if(r.call(te,bt)&&(gt=te[bt],gt!=null))switch(bt){case"children":Fe=gt;break;case"dangerouslySetInnerHTML":Ye=gt;break;default:B(M,ce,bt,gt)}if(M.push(">"),Ye!=null){if(Fe!=null)throw Error(t(60));if(typeof Ye!="object"||!("__html"in Ye))throw Error(t(61));te=Ye.__html,te!=null&&(typeof te=="string"&&0<te.length&&te[0]===`
748
748
  `?M.push(`
749
749
  `,te):M.push(""+te))}return typeof Fe=="string"&&Fe[0]===`
750
750
  `&&M.push(`
751
- `),Fe;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":M.push(G(U));for(var zi in te)if(r.call(te,zi)&&(Fe=te[zi],Fe!=null))switch(zi){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,U));default:B(M,ce,zi,Fe)}return M.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return O(M,te,U,ce);case"html":return Ie.insertionMode===0&&M.push("<!DOCTYPE html>"),O(M,te,U,ce);default:if(U.indexOf("-")===-1&&typeof te.is!="string")return O(M,te,U,ce);M.push(G(U)),Ye=Fe=null;for(Xt in te)if(r.call(te,Xt)&&(gt=te[Xt],gt!=null))switch(Xt){case"children":Fe=gt;break;case"dangerouslySetInnerHTML":Ye=gt;break;case"style":D(M,ce,gt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:o(Xt)&&typeof gt!="function"&&typeof gt!="symbol"&&M.push(" ",Xt,'="',w(gt),'"')}return M.push(">"),k(M,Ye,Fe),Fe}}function W(M,U,te){if(M.push('<!--$?--><template id="'),te===null)throw Error(t(395));return M.push(te),M.push('"></template>')}function V(M,U,te,ce){switch(te.insertionMode){case 0:case 1:return M.push('<div hidden id="'),M.push(U.segmentPrefix),U=ce.toString(16),M.push(U),M.push('">');case 2:return M.push('<svg aria-hidden="true" style="display:none" id="'),M.push(U.segmentPrefix),U=ce.toString(16),M.push(U),M.push('">');case 3:return M.push('<math aria-hidden="true" style="display:none" id="'),M.push(U.segmentPrefix),U=ce.toString(16),M.push(U),M.push('">');case 4:return M.push('<table hidden id="'),M.push(U.segmentPrefix),U=ce.toString(16),M.push(U),M.push('">');case 5:return M.push('<table hidden><tbody id="'),M.push(U.segmentPrefix),U=ce.toString(16),M.push(U),M.push('">');case 6:return M.push('<table hidden><tr id="'),M.push(U.segmentPrefix),U=ce.toString(16),M.push(U),M.push('">');case 7:return M.push('<table hidden><colgroup id="'),M.push(U.segmentPrefix),U=ce.toString(16),M.push(U),M.push('">');default:throw Error(t(397))}}function q(M,U){switch(U.insertionMode){case 0:case 1:return M.push("</div>");case 2:return M.push("</svg>");case 3:return M.push("</math>");case 4:return M.push("</table>");case 5:return M.push("</tbody></table>");case 6:return M.push("</tr></table>");case 7:return M.push("</colgroup></table>");default:throw Error(t(397))}}var pe=/[<\u2028\u2029]/g;function X(M){return JSON.stringify(M).replace(pe,function(U){switch(U){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function re(M,U){return U=U===void 0?"":U,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:U+"P:",segmentPrefix:U+"S:",boundaryPrefix:U+"B:",idPrefix:U,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:M}}function ae(M,U,te,ce){return te.generateStaticMarkup?(M.push(w(U)),!1):(U===""?M=ce:(ce&&M.push("<!-- -->"),M.push(w(U)),M=!0),M)}var $=Object.assign,se=Symbol.for("react.element"),De=Symbol.for("react.portal"),Oe=Symbol.for("react.fragment"),Be=Symbol.for("react.strict_mode"),Ve=Symbol.for("react.profiler"),ze=Symbol.for("react.provider"),nt=Symbol.for("react.context"),xe=Symbol.for("react.forward_ref"),He=Symbol.for("react.suspense"),wt=Symbol.for("react.suspense_list"),_e=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),oe=Symbol.for("react.scope"),Se=Symbol.for("react.debug_trace_mode"),$e=Symbol.for("react.legacy_hidden"),Ke=Symbol.for("react.default_value"),rt=Symbol.iterator;function Ct(M){if(M==null)return null;if(typeof M=="function")return M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case Oe:return"Fragment";case De:return"Portal";case Ve:return"Profiler";case Be:return"StrictMode";case He:return"Suspense";case wt:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case nt:return(M.displayName||"Context")+".Consumer";case ze:return(M._context.displayName||"Context")+".Provider";case xe:var U=M.render;return M=M.displayName,M||(M=U.displayName||U.name||"",M=M!==""?"ForwardRef("+M+")":"ForwardRef"),M;case _e:return U=M.displayName||null,U!==null?U:Ct(M.type)||"Memo";case ne:U=M._payload,M=M._init;try{return Ct(M(U))}catch{}}return null}var dt={};function ot(M,U){if(M=M.contextTypes,!M)return dt;var te={},ce;for(ce in M)te[ce]=U[ce];return te}var tt=null;function Rt(M,U){if(M!==U){M.context._currentValue2=M.parentValue,M=M.parent;var te=U.parent;if(M===null){if(te!==null)throw Error(t(401))}else{if(te===null)throw Error(t(401));Rt(M,te)}U.context._currentValue2=U.value}}function xt(M){M.context._currentValue2=M.parentValue,M=M.parent,M!==null&&xt(M)}function Lt(M){var U=M.parent;U!==null&&Lt(U),M.context._currentValue2=M.value}function sr(M,U){if(M.context._currentValue2=M.parentValue,M=M.parent,M===null)throw Error(t(402));M.depth===U.depth?Rt(M,U):sr(M,U)}function Ar(M,U){var te=U.parent;if(te===null)throw Error(t(402));M.depth===te.depth?Rt(M,te):Ar(M,te),U.context._currentValue2=U.value}function Mr(M){var U=tt;U!==M&&(U===null?Lt(M):M===null?xt(U):U.depth===M.depth?Rt(U,M):U.depth>M.depth?sr(U,M):Ar(U,M),tt=M)}var Qr={isMounted:function(){return!1},enqueueSetState:function(M,U){M=M._reactInternals,M.queue!==null&&M.queue.push(U)},enqueueReplaceState:function(M,U){M=M._reactInternals,M.replace=!0,M.queue=[U]},enqueueForceUpdate:function(){}};function Us(M,U,te,ce){var Ie=M.state!==void 0?M.state:null;M.updater=Qr,M.props=te,M.state=Ie;var Fe={queue:[],replace:!1};M._reactInternals=Fe;var Ye=U.contextType;if(M.context=typeof Ye=="object"&&Ye!==null?Ye._currentValue2:ce,Ye=U.getDerivedStateFromProps,typeof Ye=="function"&&(Ye=Ye(te,Ie),Ie=Ye==null?Ie:$({},Ie,Ye),M.state=Ie),typeof U.getDerivedStateFromProps!="function"&&typeof M.getSnapshotBeforeUpdate!="function"&&(typeof M.UNSAFE_componentWillMount=="function"||typeof M.componentWillMount=="function"))if(U=M.state,typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount(),U!==M.state&&Qr.enqueueReplaceState(M,M.state,null),Fe.queue!==null&&0<Fe.queue.length)if(U=Fe.queue,Ye=Fe.replace,Fe.queue=null,Fe.replace=!1,Ye&&U.length===1)M.state=U[0];else{for(Fe=Ye?U[0]:M.state,Ie=!0,Ye=Ye?1:0;Ye<U.length;Ye++){var gt=U[Ye];gt=typeof gt=="function"?gt.call(M,Fe,te,ce):gt,gt!=null&&(Ie?(Ie=!1,Fe=$({},Fe,gt)):$(Fe,gt))}M.state=Fe}else Fe.queue=null}var ks={id:1,overflow:""};function bn(M,U,te){var ce=M.id;M=M.overflow;var Ie=32-Xs(ce)-1;ce&=~(1<<Ie),te+=1;var Fe=32-Xs(U)+Ie;if(30<Fe){var Ye=Ie-Ie%5;return Fe=(ce&(1<<Ye)-1).toString(32),ce>>=Ye,Ie-=Ye,{id:1<<32-Xs(U)+Ie|te<<Ie|ce,overflow:Fe+M}}return{id:1<<Fe|te<<Ie|ce,overflow:M}}var Xs=Math.clz32?Math.clz32:un,go=Math.log,$l=Math.LN2;function un(M){return M>>>=0,M===0?32:31-(go(M)/$l|0)|0}function In(M,U){return M===U&&(M!==0||1/M===1/U)||M!==M&&U!==U}var Jl=typeof Object.is=="function"?Object.is:In,Si=null,nu=null,fo=null,Jr=null,ql=!1,iu=!1,ec=0,Qo=null,tc=0;function Uo(){if(Si===null)throw Error(t(321));return Si}function sp(){if(0<tc)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function Al(){return Jr===null?fo===null?(ql=!1,fo=Jr=sp()):(ql=!0,Jr=fo):Jr.next===null?(ql=!1,Jr=Jr.next=sp()):(ql=!0,Jr=Jr.next),Jr}function ml(){nu=Si=null,iu=!1,fo=null,tc=0,Jr=Qo=null}function rc(M,U){return typeof U=="function"?U(M):U}function bd(M,U,te){if(Si=Uo(),Jr=Al(),ql){var ce=Jr.queue;if(U=ce.dispatch,Qo!==null&&(te=Qo.get(ce),te!==void 0)){Qo.delete(ce),ce=Jr.memoizedState;do ce=M(ce,te.action),te=te.next;while(te!==null);return Jr.memoizedState=ce,[ce,U]}return[Jr.memoizedState,U]}return M=M===rc?typeof U=="function"?U():U:te!==void 0?te(U):U,Jr.memoizedState=M,M=Jr.queue={last:null,dispatch:null},M=M.dispatch=Sd.bind(null,Si,M),[Jr.memoizedState,M]}function sc(M,U){if(Si=Uo(),Jr=Al(),U=U===void 0?null:U,Jr!==null){var te=Jr.memoizedState;if(te!==null&&U!==null){var ce=te[1];e:if(ce===null)ce=!1;else{for(var Ie=0;Ie<ce.length&&Ie<U.length;Ie++)if(!Jl(U[Ie],ce[Ie])){ce=!1;break e}ce=!0}if(ce)return te[0]}}return M=M(),Jr.memoizedState=[M,U],M}function Sd(M,U,te){if(25<=tc)throw Error(t(301));if(M===Si)if(iu=!0,M={action:te,next:null},Qo===null&&(Qo=new Map),te=Qo.get(U),te===void 0)Qo.set(U,M);else{for(U=te;U.next!==null;)U=U.next;U.next=M}}function xd(){throw Error(t(394))}function nc(){}var Bg={readContext:function(M){return M._currentValue2},useContext:function(M){return Uo(),M._currentValue2},useMemo:sc,useReducer:bd,useRef:function(M){Si=Uo(),Jr=Al();var U=Jr.memoizedState;return U===null?(M={current:M},Jr.memoizedState=M):U},useState:function(M){return bd(rc,M)},useInsertionEffect:nc,useLayoutEffect:function(){},useCallback:function(M,U){return sc(function(){return M},U)},useImperativeHandle:nc,useEffect:nc,useDebugValue:nc,useDeferredValue:function(M){return Uo(),M},useTransition:function(){return Uo(),[!1,xd]},useId:function(){var M=nu.treeContext,U=M.overflow;M=M.id,M=(M&~(1<<32-Xs(M)-1)).toString(32)+U;var te=Ed;if(te===null)throw Error(t(404));return U=ec++,M=":"+te.idPrefix+"R"+M,0<U&&(M+="H"+U.toString(32)),M+":"},useMutableSource:function(M,U){return Uo(),U(M._source)},useSyncExternalStore:function(M,U,te){if(te===void 0)throw Error(t(407));return te()}},Ed=null,np=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function vl(M){return console.error(M),null}function Cl(){}function Lg(M,U,te,ce,Ie,Fe,Ye,gt,bt){var Xt=[],wr=new Set;return U={destination:null,responseState:U,progressiveChunkSize:ce,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:wr,pingedTasks:Xt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Ie===void 0?vl:Ie,onAllReady:Cl,onShellReady:Ye===void 0?Cl:Ye,onShellError:Cl,onFatalError:Cl},te=ou(U,0,null,te,!1,!1),te.parentFlushed=!0,M=ip(U,M,null,te,wr,dt,null,ks),Xt.push(M),U}function ip(M,U,te,ce,Ie,Fe,Ye,gt){M.allPendingTasks++,te===null?M.pendingRootTasks++:te.pendingTasks++;var bt={node:U,ping:function(){var Xt=M.pingedTasks;Xt.push(bt),Xt.length===1&&Vi(M)},blockedBoundary:te,blockedSegment:ce,abortSet:Ie,legacyContext:Fe,context:Ye,treeContext:gt};return Ie.add(bt),bt}function ou(M,U,te,ce,Ie,Fe){return{status:0,id:-1,index:U,parentFlushed:!1,chunks:[],children:[],formatContext:ce,boundary:te,lastPushedText:Ie,textEmbedded:Fe}}function ic(M,U){if(M=M.onError(U),M!=null&&typeof M!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof M+'" instead');return M}function au(M,U){var te=M.onShellError;te(U),te=M.onFatalError,te(U),M.destination!==null?(M.status=2,M.destination.destroy(U)):(M.status=1,M.fatalError=U)}function op(M,U,te,ce,Ie){for(Si={},nu=U,ec=0,M=te(ce,Ie);iu;)iu=!1,ec=0,tc+=1,Jr=null,M=te(ce,Ie);return ml(),M}function lu(M,U,te,ce){var Ie=te.render(),Fe=ce.childContextTypes;if(Fe!=null){var Ye=U.legacyContext;if(typeof te.getChildContext!="function")ce=Ye;else{te=te.getChildContext();for(var gt in te)if(!(gt in Fe))throw Error(t(108,Ct(ce)||"Unknown",gt));ce=$({},Ye,te)}U.legacyContext=ce,ai(M,U,Ie),U.legacyContext=Ye}else ai(M,U,Ie)}function Hg(M,U){if(M&&M.defaultProps){U=$({},U),M=M.defaultProps;for(var te in M)U[te]===void 0&&(U[te]=M[te]);return U}return U}function ys(M,U,te,ce,Ie){if(typeof te=="function")if(te.prototype&&te.prototype.isReactComponent){Ie=ot(te,U.legacyContext);var Fe=te.contextType;Fe=new te(ce,typeof Fe=="object"&&Fe!==null?Fe._currentValue2:Ie),Us(Fe,te,ce,Ie),lu(M,U,Fe,te)}else{Fe=ot(te,U.legacyContext),Ie=op(M,U,te,ce,Fe);var Ye=ec!==0;if(typeof Ie=="object"&&Ie!==null&&typeof Ie.render=="function"&&Ie.$$typeof===void 0)Us(Ie,te,ce,Fe),lu(M,U,Ie,te);else if(Ye){ce=U.treeContext,U.treeContext=bn(ce,1,0);try{ai(M,U,Ie)}finally{U.treeContext=ce}}else ai(M,U,Ie)}else if(typeof te=="string"){switch(Ie=U.blockedSegment,Fe=N(Ie.chunks,te,ce,M.responseState,Ie.formatContext),Ie.lastPushedText=!1,Ye=Ie.formatContext,Ie.formatContext=F(Ye,te,ce),Fd(M,U,Fe),Ie.formatContext=Ye,te){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:Ie.chunks.push("</",te,">")}Ie.lastPushedText=!1}else{switch(te){case $e:case Se:case Be:case Ve:case Oe:ai(M,U,ce.children);return;case wt:ai(M,U,ce.children);return;case oe:throw Error(t(343));case He:e:{te=U.blockedBoundary,Ie=U.blockedSegment,Fe=ce.fallback,ce=ce.children,Ye=new Set;var gt={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Ye,errorDigest:null},bt=ou(M,Ie.chunks.length,gt,Ie.formatContext,!1,!1);Ie.children.push(bt),Ie.lastPushedText=!1;var Xt=ou(M,0,null,Ie.formatContext,!1,!1);Xt.parentFlushed=!0,U.blockedBoundary=gt,U.blockedSegment=Xt;try{if(Fd(M,U,ce),M.responseState.generateStaticMarkup||Xt.lastPushedText&&Xt.textEmbedded&&Xt.chunks.push("<!-- -->"),Xt.status=1,Pa(gt,Xt),gt.pendingTasks===0)break e}catch(wr){Xt.status=4,gt.forceClientRender=!0,gt.errorDigest=ic(M,wr)}finally{U.blockedBoundary=te,U.blockedSegment=Ie}U=ip(M,Fe,te,bt,Ye,U.legacyContext,U.context,U.treeContext),M.pingedTasks.push(U)}return}if(typeof te=="object"&&te!==null)switch(te.$$typeof){case xe:if(ce=op(M,U,te.render,ce,Ie),ec!==0){te=U.treeContext,U.treeContext=bn(te,1,0);try{ai(M,U,ce)}finally{U.treeContext=te}}else ai(M,U,ce);return;case _e:te=te.type,ce=Hg(te,ce),ys(M,U,te,ce,Ie);return;case ze:if(Ie=ce.children,te=te._context,ce=ce.value,Fe=te._currentValue2,te._currentValue2=ce,Ye=tt,tt=ce={parent:Ye,depth:Ye===null?0:Ye.depth+1,context:te,parentValue:Fe,value:ce},U.context=ce,ai(M,U,Ie),M=tt,M===null)throw Error(t(403));ce=M.parentValue,M.context._currentValue2=ce===Ke?M.context._defaultValue:ce,M=tt=M.parent,U.context=M;return;case nt:ce=ce.children,ce=ce(te._currentValue2),ai(M,U,ce);return;case ne:Ie=te._init,te=Ie(te._payload),ce=Hg(te,ce),ys(M,U,te,ce,void 0);return}throw Error(t(130,te==null?te:typeof te,""))}}function ai(M,U,te){if(U.node=te,typeof te=="object"&&te!==null){switch(te.$$typeof){case se:ys(M,U,te.type,te.props,te.ref);return;case De:throw Error(t(257));case ne:var ce=te._init;te=ce(te._payload),ai(M,U,te);return}if(S(te)){Pd(M,U,te);return}if(te===null||typeof te!="object"?ce=null:(ce=rt&&te[rt]||te["@@iterator"],ce=typeof ce=="function"?ce:null),ce&&(ce=ce.call(te))){if(te=ce.next(),!te.done){var Ie=[];do Ie.push(te.value),te=ce.next();while(!te.done);Pd(M,U,Ie)}return}throw M=Object.prototype.toString.call(te),Error(t(31,M==="[object Object]"?"object with keys {"+Object.keys(te).join(", ")+"}":M))}typeof te=="string"?(ce=U.blockedSegment,ce.lastPushedText=ae(U.blockedSegment.chunks,te,M.responseState,ce.lastPushedText)):typeof te=="number"&&(ce=U.blockedSegment,ce.lastPushedText=ae(U.blockedSegment.chunks,""+te,M.responseState,ce.lastPushedText))}function Pd(M,U,te){for(var ce=te.length,Ie=0;Ie<ce;Ie++){var Fe=U.treeContext;U.treeContext=bn(Fe,ce,Ie);try{Fd(M,U,te[Ie])}finally{U.treeContext=Fe}}}function Fd(M,U,te){var ce=U.blockedSegment.formatContext,Ie=U.legacyContext,Fe=U.context;try{return ai(M,U,te)}catch(bt){if(ml(),typeof bt=="object"&&bt!==null&&typeof bt.then=="function"){te=bt;var Ye=U.blockedSegment,gt=ou(M,Ye.chunks.length,null,Ye.formatContext,Ye.lastPushedText,!0);Ye.children.push(gt),Ye.lastPushedText=!1,M=ip(M,U.node,U.blockedBoundary,gt,U.abortSet,U.legacyContext,U.context,U.treeContext).ping,te.then(M,M),U.blockedSegment.formatContext=ce,U.legacyContext=Ie,U.context=Fe,Mr(Fe)}else throw U.blockedSegment.formatContext=ce,U.legacyContext=Ie,U.context=Fe,Mr(Fe),bt}}function wl(M){var U=M.blockedBoundary;M=M.blockedSegment,M.status=3,Wo(this,U,M)}function ap(M,U,te){var ce=M.blockedBoundary;M.blockedSegment.status=3,ce===null?(U.allPendingTasks--,U.status!==2&&(U.status=2,U.destination!==null&&U.destination.push(null))):(ce.pendingTasks--,ce.forceClientRender||(ce.forceClientRender=!0,M=te===void 0?Error(t(432)):te,ce.errorDigest=U.onError(M),ce.parentFlushed&&U.clientRenderedBoundaries.push(ce)),ce.fallbackAbortableTasks.forEach(function(Ie){return ap(Ie,U,te)}),ce.fallbackAbortableTasks.clear(),U.allPendingTasks--,U.allPendingTasks===0&&(ce=U.onAllReady,ce()))}function Pa(M,U){if(U.chunks.length===0&&U.children.length===1&&U.children[0].boundary===null){var te=U.children[0];te.id=U.id,te.parentFlushed=!0,te.status===1&&Pa(M,te)}else M.completedSegments.push(U)}function Wo(M,U,te){if(U===null){if(te.parentFlushed){if(M.completedRootSegment!==null)throw Error(t(389));M.completedRootSegment=te}M.pendingRootTasks--,M.pendingRootTasks===0&&(M.onShellError=Cl,U=M.onShellReady,U())}else U.pendingTasks--,U.forceClientRender||(U.pendingTasks===0?(te.parentFlushed&&te.status===1&&Pa(U,te),U.parentFlushed&&M.completedBoundaries.push(U),U.fallbackAbortableTasks.forEach(wl,M),U.fallbackAbortableTasks.clear()):te.parentFlushed&&te.status===1&&(Pa(U,te),U.completedSegments.length===1&&U.parentFlushed&&M.partialBoundaries.push(U)));M.allPendingTasks--,M.allPendingTasks===0&&(M=M.onAllReady,M())}function Vi(M){if(M.status!==2){var U=tt,te=np.current;np.current=Bg;var ce=Ed;Ed=M.responseState;try{var Ie=M.pingedTasks,Fe;for(Fe=0;Fe<Ie.length;Fe++){var Ye=Ie[Fe],gt=M,bt=Ye.blockedSegment;if(bt.status===0){Mr(Ye.context);try{ai(gt,Ye,Ye.node),gt.responseState.generateStaticMarkup||bt.lastPushedText&&bt.textEmbedded&&bt.chunks.push("<!-- -->"),Ye.abortSet.delete(Ye),bt.status=1,Wo(gt,Ye.blockedBoundary,bt)}catch(li){if(ml(),typeof li=="object"&&li!==null&&typeof li.then=="function"){var Xt=Ye.ping;li.then(Xt,Xt)}else{Ye.abortSet.delete(Ye),bt.status=4;var wr=Ye.blockedBoundary,Rs=li,Ao=ic(gt,Rs);if(wr===null?au(gt,Rs):(wr.pendingTasks--,wr.forceClientRender||(wr.forceClientRender=!0,wr.errorDigest=Ao,wr.parentFlushed&&gt.clientRenderedBoundaries.push(wr))),gt.allPendingTasks--,gt.allPendingTasks===0){var zi=gt.onAllReady;zi()}}}finally{}}}Ie.splice(0,Fe),M.destination!==null&&jo(M,M.destination)}catch(li){ic(M,li),au(M,li)}finally{Ed=ce,np.current=te,te===Bg&&Mr(U)}}}function cu(M,U,te){switch(te.parentFlushed=!0,te.status){case 0:var ce=te.id=M.nextSegmentId++;return te.lastPushedText=!1,te.textEmbedded=!1,M=M.responseState,U.push('<template id="'),U.push(M.placeholderPrefix),M=ce.toString(16),U.push(M),U.push('"></template>');case 1:te.status=2;var Ie=!0;ce=te.chunks;var Fe=0;te=te.children;for(var Ye=0;Ye<te.length;Ye++){for(Ie=te[Ye];Fe<Ie.index;Fe++)U.push(ce[Fe]);Ie=Vn(M,U,Ie)}for(;Fe<ce.length-1;Fe++)U.push(ce[Fe]);return Fe<ce.length&&(Ie=U.push(ce[Fe])),Ie;default:throw Error(t(390))}}function Vn(M,U,te){var ce=te.boundary;if(ce===null)return cu(M,U,te);if(ce.parentFlushed=!0,ce.forceClientRender)return M.responseState.generateStaticMarkup||(ce=ce.errorDigest,U.push("<!--$!-->"),U.push("<template"),ce&&(U.push(' data-dgst="'),ce=w(ce),U.push(ce),U.push('"')),U.push("></template>")),cu(M,U,te),M=M.responseState.generateStaticMarkup?!0:U.push("<!--/$-->"),M;if(0<ce.pendingTasks){ce.rootSegmentID=M.nextSegmentId++,0<ce.completedSegments.length&&M.partialBoundaries.push(ce);var Ie=M.responseState,Fe=Ie.nextSuspenseID++;return Ie=Ie.boundaryPrefix+Fe.toString(16),ce=ce.id=Ie,W(U,M.responseState,ce),cu(M,U,te),U.push("<!--/$-->")}if(ce.byteSize>M.progressiveChunkSize)return ce.rootSegmentID=M.nextSegmentId++,M.completedBoundaries.push(ce),W(U,M.responseState,ce.id),cu(M,U,te),U.push("<!--/$-->");if(M.responseState.generateStaticMarkup||U.push("<!--$-->"),te=ce.completedSegments,te.length!==1)throw Error(t(391));return Vn(M,U,te[0]),M=M.responseState.generateStaticMarkup?!0:U.push("<!--/$-->"),M}function Rd(M,U,te){return V(U,M.responseState,te.formatContext,te.id),Vn(M,U,te),q(U,te.formatContext)}function Td(M,U,te){for(var ce=te.completedSegments,Ie=0;Ie<ce.length;Ie++)Dd(M,U,te,ce[Ie]);if(ce.length=0,M=M.responseState,ce=te.id,te=te.rootSegmentID,U.push(M.startInlineScript),M.sentCompleteBoundaryFunction?U.push('$RC("'):(M.sentCompleteBoundaryFunction=!0,U.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),ce===null)throw Error(t(395));return te=te.toString(16),U.push(ce),U.push('","'),U.push(M.segmentPrefix),U.push(te),U.push('")<\/script>')}function Dd(M,U,te,ce){if(ce.status===2)return!0;var Ie=ce.id;if(Ie===-1){if((ce.id=te.rootSegmentID)===-1)throw Error(t(392));return Rd(M,U,ce)}return Rd(M,U,ce),M=M.responseState,U.push(M.startInlineScript),M.sentCompleteSegmentFunction?U.push('$RS("'):(M.sentCompleteSegmentFunction=!0,U.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),U.push(M.segmentPrefix),Ie=Ie.toString(16),U.push(Ie),U.push('","'),U.push(M.placeholderPrefix),U.push(Ie),U.push('")<\/script>')}function jo(M,U){try{var te=M.completedRootSegment;if(te!==null&&M.pendingRootTasks===0){Vn(M,U,te),M.completedRootSegment=null;var ce=M.responseState.bootstrapChunks;for(te=0;te<ce.length-1;te++)U.push(ce[te]);te<ce.length&&U.push(ce[te])}var Ie=M.clientRenderedBoundaries,Fe;for(Fe=0;Fe<Ie.length;Fe++){var Ye=Ie[Fe];ce=U;var gt=M.responseState,bt=Ye.id,Xt=Ye.errorDigest,wr=Ye.errorMessage,Rs=Ye.errorComponentStack;if(ce.push(gt.startInlineScript),gt.sentClientRenderFunction?ce.push('$RX("'):(gt.sentClientRenderFunction=!0,ce.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),bt===null)throw Error(t(395));if(ce.push(bt),ce.push('"'),Xt||wr||Rs){ce.push(",");var Ao=X(Xt||"");ce.push(Ao)}if(wr||Rs){ce.push(",");var zi=X(wr||"");ce.push(zi)}if(Rs){ce.push(",");var li=X(Rs);ce.push(li)}if(!ce.push(")<\/script>")){M.destination=null,Fe++,Ie.splice(0,Fe);return}}Ie.splice(0,Fe);var Fa=M.completedBoundaries;for(Fe=0;Fe<Fa.length;Fe++)if(!Td(M,U,Fa[Fe])){M.destination=null,Fe++,Fa.splice(0,Fe);return}Fa.splice(0,Fe);var Qi=M.partialBoundaries;for(Fe=0;Fe<Qi.length;Fe++){var mo=Qi[Fe];e:{Ie=M,Ye=U;var xi=mo.completedSegments;for(gt=0;gt<xi.length;gt++)if(!Dd(Ie,Ye,mo,xi[gt])){gt++,xi.splice(0,gt);var Yo=!1;break e}xi.splice(0,gt),Yo=!0}if(!Yo){M.destination=null,Fe++,Qi.splice(0,Fe);return}}Qi.splice(0,Fe);var Ui=M.completedBoundaries;for(Fe=0;Fe<Ui.length;Fe++)if(!Td(M,U,Ui[Fe])){M.destination=null,Fe++,Ui.splice(0,Fe);return}Ui.splice(0,Fe)}finally{M.allPendingTasks===0&&M.pingedTasks.length===0&&M.clientRenderedBoundaries.length===0&&M.completedBoundaries.length===0&&U.push(null)}}function uu(M,U){try{var te=M.abortableTasks;te.forEach(function(ce){return ap(ce,M,U)}),te.clear(),M.destination!==null&&jo(M,M.destination)}catch(ce){ic(M,ce),au(M,ce)}}function yl(){}function Ko(M,U,te,ce){var Ie=!1,Fe=null,Ye="",gt={push:function(Xt){return Xt!==null&&(Ye+=Xt),!0},destroy:function(Xt){Ie=!0,Fe=Xt}},bt=!1;if(M=Lg(M,re(te,U?U.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,yl,void 0,function(){bt=!0}),Vi(M),uu(M,ce),M.status===1)M.status=2,gt.destroy(M.fatalError);else if(M.status!==2&&M.destination===null){M.destination=gt;try{jo(M,gt)}catch(Xt){ic(M,Xt),au(M,Xt)}}if(Ie)throw Fe;if(!bt)throw Error(t(426));return Ye}return Lm.renderToNodeStream=function(){throw Error(t(207))},Lm.renderToStaticMarkup=function(M,U){return Ko(M,U,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Lm.renderToStaticNodeStream=function(){throw Error(t(208))},Lm.renderToString=function(M,U){return Ko(M,U,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Lm.version="18.3.1",Lm}var uP={};/**
751
+ `),Fe;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":M.push(G(U));for(var zi in te)if(r.call(te,zi)&&(Fe=te[zi],Fe!=null))switch(zi){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,U));default:B(M,ce,zi,Fe)}return M.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return O(M,te,U,ce);case"html":return Ie.insertionMode===0&&M.push("<!DOCTYPE html>"),O(M,te,U,ce);default:if(U.indexOf("-")===-1&&typeof te.is!="string")return O(M,te,U,ce);M.push(G(U)),Ye=Fe=null;for(Xt in te)if(r.call(te,Xt)&&(gt=te[Xt],gt!=null))switch(Xt){case"children":Fe=gt;break;case"dangerouslySetInnerHTML":Ye=gt;break;case"style":D(M,ce,gt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:o(Xt)&&typeof gt!="function"&&typeof gt!="symbol"&&M.push(" ",Xt,'="',w(gt),'"')}return M.push(">"),k(M,Ye,Fe),Fe}}function W(M,U,te){if(M.push('<!--$?--><template id="'),te===null)throw Error(t(395));return M.push(te),M.push('"></template>')}function V(M,U,te,ce){switch(te.insertionMode){case 0:case 1:return M.push('<div hidden id="'),M.push(U.segmentPrefix),U=ce.toString(16),M.push(U),M.push('">');case 2:return M.push('<svg aria-hidden="true" style="display:none" id="'),M.push(U.segmentPrefix),U=ce.toString(16),M.push(U),M.push('">');case 3:return M.push('<math aria-hidden="true" style="display:none" id="'),M.push(U.segmentPrefix),U=ce.toString(16),M.push(U),M.push('">');case 4:return M.push('<table hidden id="'),M.push(U.segmentPrefix),U=ce.toString(16),M.push(U),M.push('">');case 5:return M.push('<table hidden><tbody id="'),M.push(U.segmentPrefix),U=ce.toString(16),M.push(U),M.push('">');case 6:return M.push('<table hidden><tr id="'),M.push(U.segmentPrefix),U=ce.toString(16),M.push(U),M.push('">');case 7:return M.push('<table hidden><colgroup id="'),M.push(U.segmentPrefix),U=ce.toString(16),M.push(U),M.push('">');default:throw Error(t(397))}}function q(M,U){switch(U.insertionMode){case 0:case 1:return M.push("</div>");case 2:return M.push("</svg>");case 3:return M.push("</math>");case 4:return M.push("</table>");case 5:return M.push("</tbody></table>");case 6:return M.push("</tr></table>");case 7:return M.push("</colgroup></table>");default:throw Error(t(397))}}var pe=/[<\u2028\u2029]/g;function X(M){return JSON.stringify(M).replace(pe,function(U){switch(U){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function re(M,U){return U=U===void 0?"":U,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:U+"P:",segmentPrefix:U+"S:",boundaryPrefix:U+"B:",idPrefix:U,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:M}}function ae(M,U,te,ce){return te.generateStaticMarkup?(M.push(w(U)),!1):(U===""?M=ce:(ce&&M.push("<!-- -->"),M.push(w(U)),M=!0),M)}var $=Object.assign,se=Symbol.for("react.element"),De=Symbol.for("react.portal"),Oe=Symbol.for("react.fragment"),Be=Symbol.for("react.strict_mode"),Ve=Symbol.for("react.profiler"),ze=Symbol.for("react.provider"),nt=Symbol.for("react.context"),xe=Symbol.for("react.forward_ref"),He=Symbol.for("react.suspense"),wt=Symbol.for("react.suspense_list"),_e=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),oe=Symbol.for("react.scope"),Se=Symbol.for("react.debug_trace_mode"),$e=Symbol.for("react.legacy_hidden"),Ke=Symbol.for("react.default_value"),rt=Symbol.iterator;function Ct(M){if(M==null)return null;if(typeof M=="function")return M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case Oe:return"Fragment";case De:return"Portal";case Ve:return"Profiler";case Be:return"StrictMode";case He:return"Suspense";case wt:return"SuspenseList"}if(typeof M=="object")switch(M.$$typeof){case nt:return(M.displayName||"Context")+".Consumer";case ze:return(M._context.displayName||"Context")+".Provider";case xe:var U=M.render;return M=M.displayName,M||(M=U.displayName||U.name||"",M=M!==""?"ForwardRef("+M+")":"ForwardRef"),M;case _e:return U=M.displayName||null,U!==null?U:Ct(M.type)||"Memo";case ne:U=M._payload,M=M._init;try{return Ct(M(U))}catch{}}return null}var dt={};function ot(M,U){if(M=M.contextTypes,!M)return dt;var te={},ce;for(ce in M)te[ce]=U[ce];return te}var tt=null;function Rt(M,U){if(M!==U){M.context._currentValue2=M.parentValue,M=M.parent;var te=U.parent;if(M===null){if(te!==null)throw Error(t(401))}else{if(te===null)throw Error(t(401));Rt(M,te)}U.context._currentValue2=U.value}}function xt(M){M.context._currentValue2=M.parentValue,M=M.parent,M!==null&&xt(M)}function Lt(M){var U=M.parent;U!==null&&Lt(U),M.context._currentValue2=M.value}function sr(M,U){if(M.context._currentValue2=M.parentValue,M=M.parent,M===null)throw Error(t(402));M.depth===U.depth?Rt(M,U):sr(M,U)}function Ar(M,U){var te=U.parent;if(te===null)throw Error(t(402));M.depth===te.depth?Rt(M,te):Ar(M,te),U.context._currentValue2=U.value}function Mr(M){var U=tt;U!==M&&(U===null?Lt(M):M===null?xt(U):U.depth===M.depth?Rt(U,M):U.depth>M.depth?sr(U,M):Ar(U,M),tt=M)}var Qr={isMounted:function(){return!1},enqueueSetState:function(M,U){M=M._reactInternals,M.queue!==null&&M.queue.push(U)},enqueueReplaceState:function(M,U){M=M._reactInternals,M.replace=!0,M.queue=[U]},enqueueForceUpdate:function(){}};function Us(M,U,te,ce){var Ie=M.state!==void 0?M.state:null;M.updater=Qr,M.props=te,M.state=Ie;var Fe={queue:[],replace:!1};M._reactInternals=Fe;var Ye=U.contextType;if(M.context=typeof Ye=="object"&&Ye!==null?Ye._currentValue2:ce,Ye=U.getDerivedStateFromProps,typeof Ye=="function"&&(Ye=Ye(te,Ie),Ie=Ye==null?Ie:$({},Ie,Ye),M.state=Ie),typeof U.getDerivedStateFromProps!="function"&&typeof M.getSnapshotBeforeUpdate!="function"&&(typeof M.UNSAFE_componentWillMount=="function"||typeof M.componentWillMount=="function"))if(U=M.state,typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount(),U!==M.state&&Qr.enqueueReplaceState(M,M.state,null),Fe.queue!==null&&0<Fe.queue.length)if(U=Fe.queue,Ye=Fe.replace,Fe.queue=null,Fe.replace=!1,Ye&&U.length===1)M.state=U[0];else{for(Fe=Ye?U[0]:M.state,Ie=!0,Ye=Ye?1:0;Ye<U.length;Ye++){var gt=U[Ye];gt=typeof gt=="function"?gt.call(M,Fe,te,ce):gt,gt!=null&&(Ie?(Ie=!1,Fe=$({},Fe,gt)):$(Fe,gt))}M.state=Fe}else Fe.queue=null}var ks={id:1,overflow:""};function bn(M,U,te){var ce=M.id;M=M.overflow;var Ie=32-Xs(ce)-1;ce&=~(1<<Ie),te+=1;var Fe=32-Xs(U)+Ie;if(30<Fe){var Ye=Ie-Ie%5;return Fe=(ce&(1<<Ye)-1).toString(32),ce>>=Ye,Ie-=Ye,{id:1<<32-Xs(U)+Ie|te<<Ie|ce,overflow:Fe+M}}return{id:1<<Fe|te<<Ie|ce,overflow:M}}var Xs=Math.clz32?Math.clz32:un,go=Math.log,$l=Math.LN2;function un(M){return M>>>=0,M===0?32:31-(go(M)/$l|0)|0}function In(M,U){return M===U&&(M!==0||1/M===1/U)||M!==M&&U!==U}var Jl=typeof Object.is=="function"?Object.is:In,Si=null,nu=null,fo=null,Jr=null,ql=!1,iu=!1,ec=0,Qo=null,tc=0;function Uo(){if(Si===null)throw Error(t(321));return Si}function sp(){if(0<tc)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function Al(){return Jr===null?fo===null?(ql=!1,fo=Jr=sp()):(ql=!0,Jr=fo):Jr.next===null?(ql=!1,Jr=Jr.next=sp()):(ql=!0,Jr=Jr.next),Jr}function ml(){nu=Si=null,iu=!1,fo=null,tc=0,Jr=Qo=null}function rc(M,U){return typeof U=="function"?U(M):U}function bd(M,U,te){if(Si=Uo(),Jr=Al(),ql){var ce=Jr.queue;if(U=ce.dispatch,Qo!==null&&(te=Qo.get(ce),te!==void 0)){Qo.delete(ce),ce=Jr.memoizedState;do ce=M(ce,te.action),te=te.next;while(te!==null);return Jr.memoizedState=ce,[ce,U]}return[Jr.memoizedState,U]}return M=M===rc?typeof U=="function"?U():U:te!==void 0?te(U):U,Jr.memoizedState=M,M=Jr.queue={last:null,dispatch:null},M=M.dispatch=Sd.bind(null,Si,M),[Jr.memoizedState,M]}function sc(M,U){if(Si=Uo(),Jr=Al(),U=U===void 0?null:U,Jr!==null){var te=Jr.memoizedState;if(te!==null&&U!==null){var ce=te[1];e:if(ce===null)ce=!1;else{for(var Ie=0;Ie<ce.length&&Ie<U.length;Ie++)if(!Jl(U[Ie],ce[Ie])){ce=!1;break e}ce=!0}if(ce)return te[0]}}return M=M(),Jr.memoizedState=[M,U],M}function Sd(M,U,te){if(25<=tc)throw Error(t(301));if(M===Si)if(iu=!0,M={action:te,next:null},Qo===null&&(Qo=new Map),te=Qo.get(U),te===void 0)Qo.set(U,M);else{for(U=te;U.next!==null;)U=U.next;U.next=M}}function xd(){throw Error(t(394))}function nc(){}var Bg={readContext:function(M){return M._currentValue2},useContext:function(M){return Uo(),M._currentValue2},useMemo:sc,useReducer:bd,useRef:function(M){Si=Uo(),Jr=Al();var U=Jr.memoizedState;return U===null?(M={current:M},Jr.memoizedState=M):U},useState:function(M){return bd(rc,M)},useInsertionEffect:nc,useLayoutEffect:function(){},useCallback:function(M,U){return sc(function(){return M},U)},useImperativeHandle:nc,useEffect:nc,useDebugValue:nc,useDeferredValue:function(M){return Uo(),M},useTransition:function(){return Uo(),[!1,xd]},useId:function(){var M=nu.treeContext,U=M.overflow;M=M.id,M=(M&~(1<<32-Xs(M)-1)).toString(32)+U;var te=Ed;if(te===null)throw Error(t(404));return U=ec++,M=":"+te.idPrefix+"R"+M,0<U&&(M+="H"+U.toString(32)),M+":"},useMutableSource:function(M,U){return Uo(),U(M._source)},useSyncExternalStore:function(M,U,te){if(te===void 0)throw Error(t(407));return te()}},Ed=null,np=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function vl(M){return console.error(M),null}function Cl(){}function Lg(M,U,te,ce,Ie,Fe,Ye,gt,bt){var Xt=[],wr=new Set;return U={destination:null,responseState:U,progressiveChunkSize:ce,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:wr,pingedTasks:Xt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Ie===void 0?vl:Ie,onAllReady:Cl,onShellReady:Ye===void 0?Cl:Ye,onShellError:Cl,onFatalError:Cl},te=ou(U,0,null,te,!1,!1),te.parentFlushed=!0,M=ip(U,M,null,te,wr,dt,null,ks),Xt.push(M),U}function ip(M,U,te,ce,Ie,Fe,Ye,gt){M.allPendingTasks++,te===null?M.pendingRootTasks++:te.pendingTasks++;var bt={node:U,ping:function(){var Xt=M.pingedTasks;Xt.push(bt),Xt.length===1&&Vi(M)},blockedBoundary:te,blockedSegment:ce,abortSet:Ie,legacyContext:Fe,context:Ye,treeContext:gt};return Ie.add(bt),bt}function ou(M,U,te,ce,Ie,Fe){return{status:0,id:-1,index:U,parentFlushed:!1,chunks:[],children:[],formatContext:ce,boundary:te,lastPushedText:Ie,textEmbedded:Fe}}function ic(M,U){if(M=M.onError(U),M!=null&&typeof M!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof M+'" instead');return M}function au(M,U){var te=M.onShellError;te(U),te=M.onFatalError,te(U),M.destination!==null?(M.status=2,M.destination.destroy(U)):(M.status=1,M.fatalError=U)}function op(M,U,te,ce,Ie){for(Si={},nu=U,ec=0,M=te(ce,Ie);iu;)iu=!1,ec=0,tc+=1,Jr=null,M=te(ce,Ie);return ml(),M}function lu(M,U,te,ce){var Ie=te.render(),Fe=ce.childContextTypes;if(Fe!=null){var Ye=U.legacyContext;if(typeof te.getChildContext!="function")ce=Ye;else{te=te.getChildContext();for(var gt in te)if(!(gt in Fe))throw Error(t(108,Ct(ce)||"Unknown",gt));ce=$({},Ye,te)}U.legacyContext=ce,ai(M,U,Ie),U.legacyContext=Ye}else ai(M,U,Ie)}function Hg(M,U){if(M&&M.defaultProps){U=$({},U),M=M.defaultProps;for(var te in M)U[te]===void 0&&(U[te]=M[te]);return U}return U}function ys(M,U,te,ce,Ie){if(typeof te=="function")if(te.prototype&&te.prototype.isReactComponent){Ie=ot(te,U.legacyContext);var Fe=te.contextType;Fe=new te(ce,typeof Fe=="object"&&Fe!==null?Fe._currentValue2:Ie),Us(Fe,te,ce,Ie),lu(M,U,Fe,te)}else{Fe=ot(te,U.legacyContext),Ie=op(M,U,te,ce,Fe);var Ye=ec!==0;if(typeof Ie=="object"&&Ie!==null&&typeof Ie.render=="function"&&Ie.$$typeof===void 0)Us(Ie,te,ce,Fe),lu(M,U,Ie,te);else if(Ye){ce=U.treeContext,U.treeContext=bn(ce,1,0);try{ai(M,U,Ie)}finally{U.treeContext=ce}}else ai(M,U,Ie)}else if(typeof te=="string"){switch(Ie=U.blockedSegment,Fe=N(Ie.chunks,te,ce,M.responseState,Ie.formatContext),Ie.lastPushedText=!1,Ye=Ie.formatContext,Ie.formatContext=F(Ye,te,ce),Fd(M,U,Fe),Ie.formatContext=Ye,te){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:Ie.chunks.push("</",te,">")}Ie.lastPushedText=!1}else{switch(te){case $e:case Se:case Be:case Ve:case Oe:ai(M,U,ce.children);return;case wt:ai(M,U,ce.children);return;case oe:throw Error(t(343));case He:e:{te=U.blockedBoundary,Ie=U.blockedSegment,Fe=ce.fallback,ce=ce.children,Ye=new Set;var gt={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Ye,errorDigest:null},bt=ou(M,Ie.chunks.length,gt,Ie.formatContext,!1,!1);Ie.children.push(bt),Ie.lastPushedText=!1;var Xt=ou(M,0,null,Ie.formatContext,!1,!1);Xt.parentFlushed=!0,U.blockedBoundary=gt,U.blockedSegment=Xt;try{if(Fd(M,U,ce),M.responseState.generateStaticMarkup||Xt.lastPushedText&&Xt.textEmbedded&&Xt.chunks.push("<!-- -->"),Xt.status=1,Pa(gt,Xt),gt.pendingTasks===0)break e}catch(wr){Xt.status=4,gt.forceClientRender=!0,gt.errorDigest=ic(M,wr)}finally{U.blockedBoundary=te,U.blockedSegment=Ie}U=ip(M,Fe,te,bt,Ye,U.legacyContext,U.context,U.treeContext),M.pingedTasks.push(U)}return}if(typeof te=="object"&&te!==null)switch(te.$$typeof){case xe:if(ce=op(M,U,te.render,ce,Ie),ec!==0){te=U.treeContext,U.treeContext=bn(te,1,0);try{ai(M,U,ce)}finally{U.treeContext=te}}else ai(M,U,ce);return;case _e:te=te.type,ce=Hg(te,ce),ys(M,U,te,ce,Ie);return;case ze:if(Ie=ce.children,te=te._context,ce=ce.value,Fe=te._currentValue2,te._currentValue2=ce,Ye=tt,tt=ce={parent:Ye,depth:Ye===null?0:Ye.depth+1,context:te,parentValue:Fe,value:ce},U.context=ce,ai(M,U,Ie),M=tt,M===null)throw Error(t(403));ce=M.parentValue,M.context._currentValue2=ce===Ke?M.context._defaultValue:ce,M=tt=M.parent,U.context=M;return;case nt:ce=ce.children,ce=ce(te._currentValue2),ai(M,U,ce);return;case ne:Ie=te._init,te=Ie(te._payload),ce=Hg(te,ce),ys(M,U,te,ce,void 0);return}throw Error(t(130,te==null?te:typeof te,""))}}function ai(M,U,te){if(U.node=te,typeof te=="object"&&te!==null){switch(te.$$typeof){case se:ys(M,U,te.type,te.props,te.ref);return;case De:throw Error(t(257));case ne:var ce=te._init;te=ce(te._payload),ai(M,U,te);return}if(S(te)){Pd(M,U,te);return}if(te===null||typeof te!="object"?ce=null:(ce=rt&&te[rt]||te["@@iterator"],ce=typeof ce=="function"?ce:null),ce&&(ce=ce.call(te))){if(te=ce.next(),!te.done){var Ie=[];do Ie.push(te.value),te=ce.next();while(!te.done);Pd(M,U,Ie)}return}throw M=Object.prototype.toString.call(te),Error(t(31,M==="[object Object]"?"object with keys {"+Object.keys(te).join(", ")+"}":M))}typeof te=="string"?(ce=U.blockedSegment,ce.lastPushedText=ae(U.blockedSegment.chunks,te,M.responseState,ce.lastPushedText)):typeof te=="number"&&(ce=U.blockedSegment,ce.lastPushedText=ae(U.blockedSegment.chunks,""+te,M.responseState,ce.lastPushedText))}function Pd(M,U,te){for(var ce=te.length,Ie=0;Ie<ce;Ie++){var Fe=U.treeContext;U.treeContext=bn(Fe,ce,Ie);try{Fd(M,U,te[Ie])}finally{U.treeContext=Fe}}}function Fd(M,U,te){var ce=U.blockedSegment.formatContext,Ie=U.legacyContext,Fe=U.context;try{return ai(M,U,te)}catch(bt){if(ml(),typeof bt=="object"&&bt!==null&&typeof bt.then=="function"){te=bt;var Ye=U.blockedSegment,gt=ou(M,Ye.chunks.length,null,Ye.formatContext,Ye.lastPushedText,!0);Ye.children.push(gt),Ye.lastPushedText=!1,M=ip(M,U.node,U.blockedBoundary,gt,U.abortSet,U.legacyContext,U.context,U.treeContext).ping,te.then(M,M),U.blockedSegment.formatContext=ce,U.legacyContext=Ie,U.context=Fe,Mr(Fe)}else throw U.blockedSegment.formatContext=ce,U.legacyContext=Ie,U.context=Fe,Mr(Fe),bt}}function wl(M){var U=M.blockedBoundary;M=M.blockedSegment,M.status=3,Wo(this,U,M)}function ap(M,U,te){var ce=M.blockedBoundary;M.blockedSegment.status=3,ce===null?(U.allPendingTasks--,U.status!==2&&(U.status=2,U.destination!==null&&U.destination.push(null))):(ce.pendingTasks--,ce.forceClientRender||(ce.forceClientRender=!0,M=te===void 0?Error(t(432)):te,ce.errorDigest=U.onError(M),ce.parentFlushed&&U.clientRenderedBoundaries.push(ce)),ce.fallbackAbortableTasks.forEach(function(Ie){return ap(Ie,U,te)}),ce.fallbackAbortableTasks.clear(),U.allPendingTasks--,U.allPendingTasks===0&&(ce=U.onAllReady,ce()))}function Pa(M,U){if(U.chunks.length===0&&U.children.length===1&&U.children[0].boundary===null){var te=U.children[0];te.id=U.id,te.parentFlushed=!0,te.status===1&&Pa(M,te)}else M.completedSegments.push(U)}function Wo(M,U,te){if(U===null){if(te.parentFlushed){if(M.completedRootSegment!==null)throw Error(t(389));M.completedRootSegment=te}M.pendingRootTasks--,M.pendingRootTasks===0&&(M.onShellError=Cl,U=M.onShellReady,U())}else U.pendingTasks--,U.forceClientRender||(U.pendingTasks===0?(te.parentFlushed&&te.status===1&&Pa(U,te),U.parentFlushed&&M.completedBoundaries.push(U),U.fallbackAbortableTasks.forEach(wl,M),U.fallbackAbortableTasks.clear()):te.parentFlushed&&te.status===1&&(Pa(U,te),U.completedSegments.length===1&&U.parentFlushed&&M.partialBoundaries.push(U)));M.allPendingTasks--,M.allPendingTasks===0&&(M=M.onAllReady,M())}function Vi(M){if(M.status!==2){var U=tt,te=np.current;np.current=Bg;var ce=Ed;Ed=M.responseState;try{var Ie=M.pingedTasks,Fe;for(Fe=0;Fe<Ie.length;Fe++){var Ye=Ie[Fe],gt=M,bt=Ye.blockedSegment;if(bt.status===0){Mr(Ye.context);try{ai(gt,Ye,Ye.node),gt.responseState.generateStaticMarkup||bt.lastPushedText&&bt.textEmbedded&&bt.chunks.push("<!-- -->"),Ye.abortSet.delete(Ye),bt.status=1,Wo(gt,Ye.blockedBoundary,bt)}catch(li){if(ml(),typeof li=="object"&&li!==null&&typeof li.then=="function"){var Xt=Ye.ping;li.then(Xt,Xt)}else{Ye.abortSet.delete(Ye),bt.status=4;var wr=Ye.blockedBoundary,Rs=li,Ao=ic(gt,Rs);if(wr===null?au(gt,Rs):(wr.pendingTasks--,wr.forceClientRender||(wr.forceClientRender=!0,wr.errorDigest=Ao,wr.parentFlushed&&gt.clientRenderedBoundaries.push(wr))),gt.allPendingTasks--,gt.allPendingTasks===0){var zi=gt.onAllReady;zi()}}}finally{}}}Ie.splice(0,Fe),M.destination!==null&&jo(M,M.destination)}catch(li){ic(M,li),au(M,li)}finally{Ed=ce,np.current=te,te===Bg&&Mr(U)}}}function cu(M,U,te){switch(te.parentFlushed=!0,te.status){case 0:var ce=te.id=M.nextSegmentId++;return te.lastPushedText=!1,te.textEmbedded=!1,M=M.responseState,U.push('<template id="'),U.push(M.placeholderPrefix),M=ce.toString(16),U.push(M),U.push('"></template>');case 1:te.status=2;var Ie=!0;ce=te.chunks;var Fe=0;te=te.children;for(var Ye=0;Ye<te.length;Ye++){for(Ie=te[Ye];Fe<Ie.index;Fe++)U.push(ce[Fe]);Ie=Vn(M,U,Ie)}for(;Fe<ce.length-1;Fe++)U.push(ce[Fe]);return Fe<ce.length&&(Ie=U.push(ce[Fe])),Ie;default:throw Error(t(390))}}function Vn(M,U,te){var ce=te.boundary;if(ce===null)return cu(M,U,te);if(ce.parentFlushed=!0,ce.forceClientRender)return M.responseState.generateStaticMarkup||(ce=ce.errorDigest,U.push("<!--$!-->"),U.push("<template"),ce&&(U.push(' data-dgst="'),ce=w(ce),U.push(ce),U.push('"')),U.push("></template>")),cu(M,U,te),M=M.responseState.generateStaticMarkup?!0:U.push("<!--/$-->"),M;if(0<ce.pendingTasks){ce.rootSegmentID=M.nextSegmentId++,0<ce.completedSegments.length&&M.partialBoundaries.push(ce);var Ie=M.responseState,Fe=Ie.nextSuspenseID++;return Ie=Ie.boundaryPrefix+Fe.toString(16),ce=ce.id=Ie,W(U,M.responseState,ce),cu(M,U,te),U.push("<!--/$-->")}if(ce.byteSize>M.progressiveChunkSize)return ce.rootSegmentID=M.nextSegmentId++,M.completedBoundaries.push(ce),W(U,M.responseState,ce.id),cu(M,U,te),U.push("<!--/$-->");if(M.responseState.generateStaticMarkup||U.push("<!--$-->"),te=ce.completedSegments,te.length!==1)throw Error(t(391));return Vn(M,U,te[0]),M=M.responseState.generateStaticMarkup?!0:U.push("<!--/$-->"),M}function Rd(M,U,te){return V(U,M.responseState,te.formatContext,te.id),Vn(M,U,te),q(U,te.formatContext)}function Td(M,U,te){for(var ce=te.completedSegments,Ie=0;Ie<ce.length;Ie++)Dd(M,U,te,ce[Ie]);if(ce.length=0,M=M.responseState,ce=te.id,te=te.rootSegmentID,U.push(M.startInlineScript),M.sentCompleteBoundaryFunction?U.push('$RC("'):(M.sentCompleteBoundaryFunction=!0,U.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),ce===null)throw Error(t(395));return te=te.toString(16),U.push(ce),U.push('","'),U.push(M.segmentPrefix),U.push(te),U.push('")<\/script>')}function Dd(M,U,te,ce){if(ce.status===2)return!0;var Ie=ce.id;if(Ie===-1){if((ce.id=te.rootSegmentID)===-1)throw Error(t(392));return Rd(M,U,ce)}return Rd(M,U,ce),M=M.responseState,U.push(M.startInlineScript),M.sentCompleteSegmentFunction?U.push('$RS("'):(M.sentCompleteSegmentFunction=!0,U.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),U.push(M.segmentPrefix),Ie=Ie.toString(16),U.push(Ie),U.push('","'),U.push(M.placeholderPrefix),U.push(Ie),U.push('")<\/script>')}function jo(M,U){try{var te=M.completedRootSegment;if(te!==null&&M.pendingRootTasks===0){Vn(M,U,te),M.completedRootSegment=null;var ce=M.responseState.bootstrapChunks;for(te=0;te<ce.length-1;te++)U.push(ce[te]);te<ce.length&&U.push(ce[te])}var Ie=M.clientRenderedBoundaries,Fe;for(Fe=0;Fe<Ie.length;Fe++){var Ye=Ie[Fe];ce=U;var gt=M.responseState,bt=Ye.id,Xt=Ye.errorDigest,wr=Ye.errorMessage,Rs=Ye.errorComponentStack;if(ce.push(gt.startInlineScript),gt.sentClientRenderFunction?ce.push('$RX("'):(gt.sentClientRenderFunction=!0,ce.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),bt===null)throw Error(t(395));if(ce.push(bt),ce.push('"'),Xt||wr||Rs){ce.push(",");var Ao=X(Xt||"");ce.push(Ao)}if(wr||Rs){ce.push(",");var zi=X(wr||"");ce.push(zi)}if(Rs){ce.push(",");var li=X(Rs);ce.push(li)}if(!ce.push(")<\/script>")){M.destination=null,Fe++,Ie.splice(0,Fe);return}}Ie.splice(0,Fe);var Fa=M.completedBoundaries;for(Fe=0;Fe<Fa.length;Fe++)if(!Td(M,U,Fa[Fe])){M.destination=null,Fe++,Fa.splice(0,Fe);return}Fa.splice(0,Fe);var Qi=M.partialBoundaries;for(Fe=0;Fe<Qi.length;Fe++){var mo=Qi[Fe];e:{Ie=M,Ye=U;var xi=mo.completedSegments;for(gt=0;gt<xi.length;gt++)if(!Dd(Ie,Ye,mo,xi[gt])){gt++,xi.splice(0,gt);var Yo=!1;break e}xi.splice(0,gt),Yo=!0}if(!Yo){M.destination=null,Fe++,Qi.splice(0,Fe);return}}Qi.splice(0,Fe);var Ui=M.completedBoundaries;for(Fe=0;Fe<Ui.length;Fe++)if(!Td(M,U,Ui[Fe])){M.destination=null,Fe++,Ui.splice(0,Fe);return}Ui.splice(0,Fe)}finally{M.allPendingTasks===0&&M.pingedTasks.length===0&&M.clientRenderedBoundaries.length===0&&M.completedBoundaries.length===0&&U.push(null)}}function uu(M,U){try{var te=M.abortableTasks;te.forEach(function(ce){return ap(ce,M,U)}),te.clear(),M.destination!==null&&jo(M,M.destination)}catch(ce){ic(M,ce),au(M,ce)}}function yl(){}function Ko(M,U,te,ce){var Ie=!1,Fe=null,Ye="",gt={push:function(Xt){return Xt!==null&&(Ye+=Xt),!0},destroy:function(Xt){Ie=!0,Fe=Xt}},bt=!1;if(M=Lg(M,re(te,U?U.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,yl,void 0,function(){bt=!0}),Vi(M),uu(M,ce),M.status===1)M.status=2,gt.destroy(M.fatalError);else if(M.status!==2&&M.destination===null){M.destination=gt;try{jo(M,gt)}catch(Xt){ic(M,Xt),au(M,Xt)}}if(Ie)throw Fe;if(!bt)throw Error(t(426));return Ye}return Lm.renderToNodeStream=function(){throw Error(t(207))},Lm.renderToStaticMarkup=function(M,U){return Ko(M,U,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Lm.renderToStaticNodeStream=function(){throw Error(t(208))},Lm.renderToString=function(M,U){return Ko(M,U,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Lm.version="18.3.1",Lm}var dP={};/**
752
752
  * @license React
753
753
  * react-dom-server.browser.production.min.js
754
754
  *
@@ -756,11 +756,11 @@ function print() { __p += __j.call(arguments, '') }
756
756
  *
757
757
  * This source code is licensed under the MIT license found in the
758
758
  * LICENSE file in the root directory of this source tree.
759
- */var KO;function l9e(){if(KO)return uP;KO=1;var e=qu;function t(I){for(var Q="https://reactjs.org/docs/error-decoder.html?invariant="+I,J=1;J<arguments.length;J++)Q+="&args[]="+encodeURIComponent(arguments[J]);return"Minified React error #"+I+"; visit "+Q+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=null,s=0;function n(I,Q){if(Q.length!==0)if(512<Q.length)0<s&&(I.enqueue(new Uint8Array(r.buffer,0,s)),r=new Uint8Array(512),s=0),I.enqueue(Q);else{var J=r.length-s;J<Q.length&&(J===0?I.enqueue(r):(r.set(Q.subarray(0,J),s),I.enqueue(r),Q=Q.subarray(J)),r=new Uint8Array(512),s=0),r.set(Q,s),s+=Q.length}}function i(I,Q){return n(I,Q),!0}function o(I){r&&0<s&&(I.enqueue(new Uint8Array(r.buffer,0,s)),r=null,s=0)}var a=new TextEncoder;function l(I){return a.encode(I)}function c(I){return a.encode(I)}function u(I,Q){typeof I.error=="function"?I.error(Q):I.close()}var d=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,A={},w={};function v(I){return d.call(w,I)?!0:d.call(A,I)?!1:g.test(I)?w[I]=!0:(A[I]=!0,!1)}function b(I,Q,J,le,ke,Te,Xe){this.acceptsBooleans=Q===2||Q===3||Q===4,this.attributeName=le,this.attributeNamespace=ke,this.mustUseProperty=J,this.propertyName=I,this.type=Q,this.sanitizeURL=Te,this.removeEmptyString=Xe}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(I){S[I]=new b(I,0,!1,I,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(I){var Q=I[0];S[Q]=new b(Q,1,!1,I[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(I){S[I]=new b(I,2,!1,I.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(I){S[I]=new b(I,2,!1,I,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(I){S[I]=new b(I,3,!1,I.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(I){S[I]=new b(I,3,!0,I,null,!1,!1)}),["capture","download"].forEach(function(I){S[I]=new b(I,4,!1,I,null,!1,!1)}),["cols","rows","size","span"].forEach(function(I){S[I]=new b(I,6,!1,I,null,!1,!1)}),["rowSpan","start"].forEach(function(I){S[I]=new b(I,5,!1,I.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function F(I){return I[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(I){var Q=I.replace(P,F);S[Q]=new b(Q,1,!1,I,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(I){var Q=I.replace(P,F);S[Q]=new b(Q,1,!1,I,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(I){var Q=I.replace(P,F);S[Q]=new b(Q,1,!1,I,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(I){S[I]=new b(I,1,!1,I.toLowerCase(),null,!1,!1)}),S.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(I){S[I]=new b(I,1,!1,I.toLowerCase(),null,!0,!0)});var T={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},D=["Webkit","ms","Moz","O"];Object.keys(T).forEach(function(I){D.forEach(function(Q){Q=Q+I.charAt(0).toUpperCase()+I.substring(1),T[Q]=T[I]})});var B=/["'&<>]/;function k(I){if(typeof I=="boolean"||typeof I=="number")return""+I;I=""+I;var Q=B.exec(I);if(Q){var J="",le,ke=0;for(le=Q.index;le<I.length;le++){switch(I.charCodeAt(le)){case 34:Q="&quot;";break;case 38:Q="&amp;";break;case 39:Q="&#x27;";break;case 60:Q="&lt;";break;case 62:Q="&gt;";break;default:continue}ke!==le&&(J+=I.substring(ke,le)),ke=le+1,J+=Q}I=ke!==le?J+I.substring(ke,le):J}return I}var z=/([A-Z])/g,O=/^ms-/,j=Array.isArray,_=c("<script>"),G=c("<\/script>"),N=c('<script src="'),W=c('<script type="module" src="'),V=c('" async=""><\/script>'),q=/(<\/|<)(s)(cript)/gi;function pe(I,Q,J,le){return""+Q+(J==="s"?"\\u0073":"\\u0053")+le}function X(I,Q,J,le,ke){I=I===void 0?"":I,Q=Q===void 0?_:c('<script nonce="'+k(Q)+'">');var Te=[];if(J!==void 0&&Te.push(Q,l((""+J).replace(q,pe)),G),le!==void 0)for(J=0;J<le.length;J++)Te.push(N,l(k(le[J])),V);if(ke!==void 0)for(le=0;le<ke.length;le++)Te.push(W,l(k(ke[le])),V);return{bootstrapChunks:Te,startInlineScript:Q,placeholderPrefix:c(I+"P:"),segmentPrefix:c(I+"S:"),boundaryPrefix:I+"B:",idPrefix:I,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function re(I,Q){return{insertionMode:I,selectedValue:Q}}function ae(I){return re(I==="http://www.w3.org/2000/svg"?2:I==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function $(I,Q,J){switch(Q){case"select":return re(1,J.value!=null?J.value:J.defaultValue);case"svg":return re(2,null);case"math":return re(3,null);case"foreignObject":return re(1,null);case"table":return re(4,null);case"thead":case"tbody":case"tfoot":return re(5,null);case"colgroup":return re(7,null);case"tr":return re(6,null)}return 4<=I.insertionMode||I.insertionMode===0?re(1,null):I}var se=c("<!-- -->");function De(I,Q,J,le){return Q===""?le:(le&&I.push(se),I.push(l(k(Q))),!0)}var Oe=new Map,Be=c(' style="'),Ve=c(":"),ze=c(";");function nt(I,Q,J){if(typeof J!="object")throw Error(t(62));Q=!0;for(var le in J)if(d.call(J,le)){var ke=J[le];if(ke!=null&&typeof ke!="boolean"&&ke!==""){if(le.indexOf("--")===0){var Te=l(k(le));ke=l(k((""+ke).trim()))}else{Te=le;var Xe=Oe.get(Te);Xe!==void 0||(Xe=c(k(Te.replace(z,"-$1").toLowerCase().replace(O,"-ms-"))),Oe.set(Te,Xe)),Te=Xe,ke=typeof ke=="number"?ke===0||d.call(T,le)?l(""+ke):l(ke+"px"):l(k((""+ke).trim()))}Q?(Q=!1,I.push(Be,Te,Ve,ke)):I.push(ze,Te,Ve,ke)}}Q||I.push(wt)}var xe=c(" "),He=c('="'),wt=c('"'),_e=c('=""');function ne(I,Q,J,le){switch(J){case"style":nt(I,Q,le);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<J.length)||J[0]!=="o"&&J[0]!=="O"||J[1]!=="n"&&J[1]!=="N"){if(Q=S.hasOwnProperty(J)?S[J]:null,Q!==null){switch(typeof le){case"function":case"symbol":return;case"boolean":if(!Q.acceptsBooleans)return}switch(J=l(Q.attributeName),Q.type){case 3:le&&I.push(xe,J,_e);break;case 4:le===!0?I.push(xe,J,_e):le!==!1&&I.push(xe,J,He,l(k(le)),wt);break;case 5:isNaN(le)||I.push(xe,J,He,l(k(le)),wt);break;case 6:!isNaN(le)&&1<=le&&I.push(xe,J,He,l(k(le)),wt);break;default:Q.sanitizeURL&&(le=""+le),I.push(xe,J,He,l(k(le)),wt)}}else if(v(J)){switch(typeof le){case"function":case"symbol":return;case"boolean":if(Q=J.toLowerCase().slice(0,5),Q!=="data-"&&Q!=="aria-")return}I.push(xe,l(J),He,l(k(le)),wt)}}}var oe=c(">"),Se=c("/>");function $e(I,Q,J){if(Q!=null){if(J!=null)throw Error(t(60));if(typeof Q!="object"||!("__html"in Q))throw Error(t(61));Q=Q.__html,Q!=null&&I.push(l(""+Q))}}function Ke(I){var Q="";return e.Children.forEach(I,function(J){J!=null&&(Q+=J)}),Q}var rt=c(' selected=""');function Ct(I,Q,J,le){I.push(Rt(J));var ke=J=null,Te;for(Te in Q)if(d.call(Q,Te)){var Xe=Q[Te];if(Xe!=null)switch(Te){case"children":J=Xe;break;case"dangerouslySetInnerHTML":ke=Xe;break;default:ne(I,le,Te,Xe)}}return I.push(oe),$e(I,ke,J),typeof J=="string"?(I.push(l(k(J))),null):J}var dt=c(`
759
+ */var JO;function C9e(){if(JO)return dP;JO=1;var e=qu;function t(I){for(var Q="https://reactjs.org/docs/error-decoder.html?invariant="+I,J=1;J<arguments.length;J++)Q+="&args[]="+encodeURIComponent(arguments[J]);return"Minified React error #"+I+"; visit "+Q+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=null,s=0;function n(I,Q){if(Q.length!==0)if(512<Q.length)0<s&&(I.enqueue(new Uint8Array(r.buffer,0,s)),r=new Uint8Array(512),s=0),I.enqueue(Q);else{var J=r.length-s;J<Q.length&&(J===0?I.enqueue(r):(r.set(Q.subarray(0,J),s),I.enqueue(r),Q=Q.subarray(J)),r=new Uint8Array(512),s=0),r.set(Q,s),s+=Q.length}}function i(I,Q){return n(I,Q),!0}function o(I){r&&0<s&&(I.enqueue(new Uint8Array(r.buffer,0,s)),r=null,s=0)}var a=new TextEncoder;function l(I){return a.encode(I)}function c(I){return a.encode(I)}function u(I,Q){typeof I.error=="function"?I.error(Q):I.close()}var d=Object.prototype.hasOwnProperty,g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,A={},w={};function v(I){return d.call(w,I)?!0:d.call(A,I)?!1:g.test(I)?w[I]=!0:(A[I]=!0,!1)}function b(I,Q,J,le,ke,Te,Xe){this.acceptsBooleans=Q===2||Q===3||Q===4,this.attributeName=le,this.attributeNamespace=ke,this.mustUseProperty=J,this.propertyName=I,this.type=Q,this.sanitizeURL=Te,this.removeEmptyString=Xe}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(I){S[I]=new b(I,0,!1,I,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(I){var Q=I[0];S[Q]=new b(Q,1,!1,I[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(I){S[I]=new b(I,2,!1,I.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(I){S[I]=new b(I,2,!1,I,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(I){S[I]=new b(I,3,!1,I.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(I){S[I]=new b(I,3,!0,I,null,!1,!1)}),["capture","download"].forEach(function(I){S[I]=new b(I,4,!1,I,null,!1,!1)}),["cols","rows","size","span"].forEach(function(I){S[I]=new b(I,6,!1,I,null,!1,!1)}),["rowSpan","start"].forEach(function(I){S[I]=new b(I,5,!1,I.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function F(I){return I[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(I){var Q=I.replace(P,F);S[Q]=new b(Q,1,!1,I,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(I){var Q=I.replace(P,F);S[Q]=new b(Q,1,!1,I,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(I){var Q=I.replace(P,F);S[Q]=new b(Q,1,!1,I,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(I){S[I]=new b(I,1,!1,I.toLowerCase(),null,!1,!1)}),S.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(I){S[I]=new b(I,1,!1,I.toLowerCase(),null,!0,!0)});var T={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},D=["Webkit","ms","Moz","O"];Object.keys(T).forEach(function(I){D.forEach(function(Q){Q=Q+I.charAt(0).toUpperCase()+I.substring(1),T[Q]=T[I]})});var B=/["'&<>]/;function k(I){if(typeof I=="boolean"||typeof I=="number")return""+I;I=""+I;var Q=B.exec(I);if(Q){var J="",le,ke=0;for(le=Q.index;le<I.length;le++){switch(I.charCodeAt(le)){case 34:Q="&quot;";break;case 38:Q="&amp;";break;case 39:Q="&#x27;";break;case 60:Q="&lt;";break;case 62:Q="&gt;";break;default:continue}ke!==le&&(J+=I.substring(ke,le)),ke=le+1,J+=Q}I=ke!==le?J+I.substring(ke,le):J}return I}var z=/([A-Z])/g,O=/^ms-/,j=Array.isArray,_=c("<script>"),G=c("<\/script>"),N=c('<script src="'),W=c('<script type="module" src="'),V=c('" async=""><\/script>'),q=/(<\/|<)(s)(cript)/gi;function pe(I,Q,J,le){return""+Q+(J==="s"?"\\u0073":"\\u0053")+le}function X(I,Q,J,le,ke){I=I===void 0?"":I,Q=Q===void 0?_:c('<script nonce="'+k(Q)+'">');var Te=[];if(J!==void 0&&Te.push(Q,l((""+J).replace(q,pe)),G),le!==void 0)for(J=0;J<le.length;J++)Te.push(N,l(k(le[J])),V);if(ke!==void 0)for(le=0;le<ke.length;le++)Te.push(W,l(k(ke[le])),V);return{bootstrapChunks:Te,startInlineScript:Q,placeholderPrefix:c(I+"P:"),segmentPrefix:c(I+"S:"),boundaryPrefix:I+"B:",idPrefix:I,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function re(I,Q){return{insertionMode:I,selectedValue:Q}}function ae(I){return re(I==="http://www.w3.org/2000/svg"?2:I==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function $(I,Q,J){switch(Q){case"select":return re(1,J.value!=null?J.value:J.defaultValue);case"svg":return re(2,null);case"math":return re(3,null);case"foreignObject":return re(1,null);case"table":return re(4,null);case"thead":case"tbody":case"tfoot":return re(5,null);case"colgroup":return re(7,null);case"tr":return re(6,null)}return 4<=I.insertionMode||I.insertionMode===0?re(1,null):I}var se=c("<!-- -->");function De(I,Q,J,le){return Q===""?le:(le&&I.push(se),I.push(l(k(Q))),!0)}var Oe=new Map,Be=c(' style="'),Ve=c(":"),ze=c(";");function nt(I,Q,J){if(typeof J!="object")throw Error(t(62));Q=!0;for(var le in J)if(d.call(J,le)){var ke=J[le];if(ke!=null&&typeof ke!="boolean"&&ke!==""){if(le.indexOf("--")===0){var Te=l(k(le));ke=l(k((""+ke).trim()))}else{Te=le;var Xe=Oe.get(Te);Xe!==void 0||(Xe=c(k(Te.replace(z,"-$1").toLowerCase().replace(O,"-ms-"))),Oe.set(Te,Xe)),Te=Xe,ke=typeof ke=="number"?ke===0||d.call(T,le)?l(""+ke):l(ke+"px"):l(k((""+ke).trim()))}Q?(Q=!1,I.push(Be,Te,Ve,ke)):I.push(ze,Te,Ve,ke)}}Q||I.push(wt)}var xe=c(" "),He=c('="'),wt=c('"'),_e=c('=""');function ne(I,Q,J,le){switch(J){case"style":nt(I,Q,le);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<J.length)||J[0]!=="o"&&J[0]!=="O"||J[1]!=="n"&&J[1]!=="N"){if(Q=S.hasOwnProperty(J)?S[J]:null,Q!==null){switch(typeof le){case"function":case"symbol":return;case"boolean":if(!Q.acceptsBooleans)return}switch(J=l(Q.attributeName),Q.type){case 3:le&&I.push(xe,J,_e);break;case 4:le===!0?I.push(xe,J,_e):le!==!1&&I.push(xe,J,He,l(k(le)),wt);break;case 5:isNaN(le)||I.push(xe,J,He,l(k(le)),wt);break;case 6:!isNaN(le)&&1<=le&&I.push(xe,J,He,l(k(le)),wt);break;default:Q.sanitizeURL&&(le=""+le),I.push(xe,J,He,l(k(le)),wt)}}else if(v(J)){switch(typeof le){case"function":case"symbol":return;case"boolean":if(Q=J.toLowerCase().slice(0,5),Q!=="data-"&&Q!=="aria-")return}I.push(xe,l(J),He,l(k(le)),wt)}}}var oe=c(">"),Se=c("/>");function $e(I,Q,J){if(Q!=null){if(J!=null)throw Error(t(60));if(typeof Q!="object"||!("__html"in Q))throw Error(t(61));Q=Q.__html,Q!=null&&I.push(l(""+Q))}}function Ke(I){var Q="";return e.Children.forEach(I,function(J){J!=null&&(Q+=J)}),Q}var rt=c(' selected=""');function Ct(I,Q,J,le){I.push(Rt(J));var ke=J=null,Te;for(Te in Q)if(d.call(Q,Te)){var Xe=Q[Te];if(Xe!=null)switch(Te){case"children":J=Xe;break;case"dangerouslySetInnerHTML":ke=Xe;break;default:ne(I,le,Te,Xe)}}return I.push(oe),$e(I,ke,J),typeof J=="string"?(I.push(l(k(J))),null):J}var dt=c(`
760
760
  `),ot=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,tt=new Map;function Rt(I){var Q=tt.get(I);if(Q===void 0){if(!ot.test(I))throw Error(t(65,I));Q=c("<"+I),tt.set(I,Q)}return Q}var xt=c("<!DOCTYPE html>");function Lt(I,Q,J,le,ke){switch(Q){case"select":I.push(Rt("select"));var Te=null,Xe=null;for(ar in J)if(d.call(J,ar)){var ht=J[ar];if(ht!=null)switch(ar){case"children":Te=ht;break;case"dangerouslySetInnerHTML":Xe=ht;break;case"defaultValue":case"value":break;default:ne(I,le,ar,ht)}}return I.push(oe),$e(I,Xe,Te),Te;case"option":Xe=ke.selectedValue,I.push(Rt("option"));var Qt=ht=null,Sr=null,ar=null;for(Te in J)if(d.call(J,Te)){var Ls=J[Te];if(Ls!=null)switch(Te){case"children":ht=Ls;break;case"selected":Sr=Ls;break;case"dangerouslySetInnerHTML":ar=Ls;break;case"value":Qt=Ls;default:ne(I,le,Te,Ls)}}if(Xe!=null)if(J=Qt!==null?""+Qt:Ke(ht),j(Xe)){for(le=0;le<Xe.length;le++)if(""+Xe[le]===J){I.push(rt);break}}else""+Xe===J&&I.push(rt);else Sr&&I.push(rt);return I.push(oe),$e(I,ar,ht),ht;case"textarea":I.push(Rt("textarea")),ar=Xe=Te=null;for(ht in J)if(d.call(J,ht)&&(Qt=J[ht],Qt!=null))switch(ht){case"children":ar=Qt;break;case"value":Te=Qt;break;case"defaultValue":Xe=Qt;break;case"dangerouslySetInnerHTML":throw Error(t(91));default:ne(I,le,ht,Qt)}if(Te===null&&Xe!==null&&(Te=Xe),I.push(oe),ar!=null){if(Te!=null)throw Error(t(92));if(j(ar)&&1<ar.length)throw Error(t(93));Te=""+ar}return typeof Te=="string"&&Te[0]===`
761
761
  `&&I.push(dt),Te!==null&&I.push(l(k(""+Te))),null;case"input":I.push(Rt("input")),Qt=ar=ht=Te=null;for(Xe in J)if(d.call(J,Xe)&&(Sr=J[Xe],Sr!=null))switch(Xe){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,"input"));case"defaultChecked":Qt=Sr;break;case"defaultValue":ht=Sr;break;case"checked":ar=Sr;break;case"value":Te=Sr;break;default:ne(I,le,Xe,Sr)}return ar!==null?ne(I,le,"checked",ar):Qt!==null&&ne(I,le,"checked",Qt),Te!==null?ne(I,le,"value",Te):ht!==null&&ne(I,le,"value",ht),I.push(Se),null;case"menuitem":I.push(Rt("menuitem"));for(var ui in J)if(d.call(J,ui)&&(Te=J[ui],Te!=null))switch(ui){case"children":case"dangerouslySetInnerHTML":throw Error(t(400));default:ne(I,le,ui,Te)}return I.push(oe),null;case"title":I.push(Rt("title")),Te=null;for(Ls in J)if(d.call(J,Ls)&&(Xe=J[Ls],Xe!=null))switch(Ls){case"children":Te=Xe;break;case"dangerouslySetInnerHTML":throw Error(t(434));default:ne(I,le,Ls,Xe)}return I.push(oe),Te;case"listing":case"pre":I.push(Rt(Q)),Xe=Te=null;for(Qt in J)if(d.call(J,Qt)&&(ht=J[Qt],ht!=null))switch(Qt){case"children":Te=ht;break;case"dangerouslySetInnerHTML":Xe=ht;break;default:ne(I,le,Qt,ht)}if(I.push(oe),Xe!=null){if(Te!=null)throw Error(t(60));if(typeof Xe!="object"||!("__html"in Xe))throw Error(t(61));J=Xe.__html,J!=null&&(typeof J=="string"&&0<J.length&&J[0]===`
762
762
  `?I.push(dt,l(J)):I.push(l(""+J)))}return typeof Te=="string"&&Te[0]===`
763
- `&&I.push(dt),Te;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":I.push(Rt(Q));for(var vo in J)if(d.call(J,vo)&&(Te=J[vo],Te!=null))switch(vo){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,Q));default:ne(I,le,vo,Te)}return I.push(Se),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Ct(I,J,Q,le);case"html":return ke.insertionMode===0&&I.push(xt),Ct(I,J,Q,le);default:if(Q.indexOf("-")===-1&&typeof J.is!="string")return Ct(I,J,Q,le);I.push(Rt(Q)),Xe=Te=null;for(Sr in J)if(d.call(J,Sr)&&(ht=J[Sr],ht!=null))switch(Sr){case"children":Te=ht;break;case"dangerouslySetInnerHTML":Xe=ht;break;case"style":nt(I,le,ht);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:v(Sr)&&typeof ht!="function"&&typeof ht!="symbol"&&I.push(xe,l(Sr),He,l(k(ht)),wt)}return I.push(oe),$e(I,Xe,Te),Te}}var sr=c("</"),Ar=c(">"),Mr=c('<template id="'),Qr=c('"></template>'),Us=c("<!--$-->"),ks=c('<!--$?--><template id="'),bn=c('"></template>'),Xs=c("<!--$!-->"),go=c("<!--/$-->"),$l=c("<template"),un=c('"'),In=c(' data-dgst="');c(' data-msg="'),c(' data-stck="');var Jl=c("></template>");function Si(I,Q,J){if(n(I,ks),J===null)throw Error(t(395));return n(I,J),i(I,bn)}var nu=c('<div hidden id="'),fo=c('">'),Jr=c("</div>"),ql=c('<svg aria-hidden="true" style="display:none" id="'),iu=c('">'),ec=c("</svg>"),Qo=c('<math aria-hidden="true" style="display:none" id="'),tc=c('">'),Uo=c("</math>"),sp=c('<table hidden id="'),Al=c('">'),ml=c("</table>"),rc=c('<table hidden><tbody id="'),bd=c('">'),sc=c("</tbody></table>"),Sd=c('<table hidden><tr id="'),xd=c('">'),nc=c("</tr></table>"),Bg=c('<table hidden><colgroup id="'),Ed=c('">'),np=c("</colgroup></table>");function vl(I,Q,J,le){switch(J.insertionMode){case 0:case 1:return n(I,nu),n(I,Q.segmentPrefix),n(I,l(le.toString(16))),i(I,fo);case 2:return n(I,ql),n(I,Q.segmentPrefix),n(I,l(le.toString(16))),i(I,iu);case 3:return n(I,Qo),n(I,Q.segmentPrefix),n(I,l(le.toString(16))),i(I,tc);case 4:return n(I,sp),n(I,Q.segmentPrefix),n(I,l(le.toString(16))),i(I,Al);case 5:return n(I,rc),n(I,Q.segmentPrefix),n(I,l(le.toString(16))),i(I,bd);case 6:return n(I,Sd),n(I,Q.segmentPrefix),n(I,l(le.toString(16))),i(I,xd);case 7:return n(I,Bg),n(I,Q.segmentPrefix),n(I,l(le.toString(16))),i(I,Ed);default:throw Error(t(397))}}function Cl(I,Q){switch(Q.insertionMode){case 0:case 1:return i(I,Jr);case 2:return i(I,ec);case 3:return i(I,Uo);case 4:return i(I,ml);case 5:return i(I,sc);case 6:return i(I,nc);case 7:return i(I,np);default:throw Error(t(397))}}var Lg=c('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),ip=c('$RS("'),ou=c('","'),ic=c('")<\/script>'),au=c('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),op=c('$RC("'),lu=c('","'),Hg=c('")<\/script>'),ys=c('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),ai=c('$RX("'),Pd=c('"'),Fd=c(")<\/script>"),wl=c(","),ap=/[<\u2028\u2029]/g;function Pa(I){return JSON.stringify(I).replace(ap,function(Q){switch(Q){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Wo=Object.assign,Vi=Symbol.for("react.element"),cu=Symbol.for("react.portal"),Vn=Symbol.for("react.fragment"),Rd=Symbol.for("react.strict_mode"),Td=Symbol.for("react.profiler"),Dd=Symbol.for("react.provider"),jo=Symbol.for("react.context"),uu=Symbol.for("react.forward_ref"),yl=Symbol.for("react.suspense"),Ko=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),te=Symbol.for("react.scope"),ce=Symbol.for("react.debug_trace_mode"),Ie=Symbol.for("react.legacy_hidden"),Fe=Symbol.for("react.default_value"),Ye=Symbol.iterator;function gt(I){if(I==null)return null;if(typeof I=="function")return I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case Vn:return"Fragment";case cu:return"Portal";case Td:return"Profiler";case Rd:return"StrictMode";case yl:return"Suspense";case Ko:return"SuspenseList"}if(typeof I=="object")switch(I.$$typeof){case jo:return(I.displayName||"Context")+".Consumer";case Dd:return(I._context.displayName||"Context")+".Provider";case uu:var Q=I.render;return I=I.displayName,I||(I=Q.displayName||Q.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case M:return Q=I.displayName||null,Q!==null?Q:gt(I.type)||"Memo";case U:Q=I._payload,I=I._init;try{return gt(I(Q))}catch{}}return null}var bt={};function Xt(I,Q){if(I=I.contextTypes,!I)return bt;var J={},le;for(le in I)J[le]=Q[le];return J}var wr=null;function Rs(I,Q){if(I!==Q){I.context._currentValue=I.parentValue,I=I.parent;var J=Q.parent;if(I===null){if(J!==null)throw Error(t(401))}else{if(J===null)throw Error(t(401));Rs(I,J)}Q.context._currentValue=Q.value}}function Ao(I){I.context._currentValue=I.parentValue,I=I.parent,I!==null&&Ao(I)}function zi(I){var Q=I.parent;Q!==null&&zi(Q),I.context._currentValue=I.value}function li(I,Q){if(I.context._currentValue=I.parentValue,I=I.parent,I===null)throw Error(t(402));I.depth===Q.depth?Rs(I,Q):li(I,Q)}function Fa(I,Q){var J=Q.parent;if(J===null)throw Error(t(402));I.depth===J.depth?Rs(I,J):Fa(I,J),Q.context._currentValue=Q.value}function Qi(I){var Q=wr;Q!==I&&(Q===null?zi(I):I===null?Ao(Q):Q.depth===I.depth?Rs(Q,I):Q.depth>I.depth?li(Q,I):Fa(Q,I),wr=I)}var mo={isMounted:function(){return!1},enqueueSetState:function(I,Q){I=I._reactInternals,I.queue!==null&&I.queue.push(Q)},enqueueReplaceState:function(I,Q){I=I._reactInternals,I.replace=!0,I.queue=[Q]},enqueueForceUpdate:function(){}};function xi(I,Q,J,le){var ke=I.state!==void 0?I.state:null;I.updater=mo,I.props=J,I.state=ke;var Te={queue:[],replace:!1};I._reactInternals=Te;var Xe=Q.contextType;if(I.context=typeof Xe=="object"&&Xe!==null?Xe._currentValue:le,Xe=Q.getDerivedStateFromProps,typeof Xe=="function"&&(Xe=Xe(J,ke),ke=Xe==null?ke:Wo({},ke,Xe),I.state=ke),typeof Q.getDerivedStateFromProps!="function"&&typeof I.getSnapshotBeforeUpdate!="function"&&(typeof I.UNSAFE_componentWillMount=="function"||typeof I.componentWillMount=="function"))if(Q=I.state,typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount(),Q!==I.state&&mo.enqueueReplaceState(I,I.state,null),Te.queue!==null&&0<Te.queue.length)if(Q=Te.queue,Xe=Te.replace,Te.queue=null,Te.replace=!1,Xe&&Q.length===1)I.state=Q[0];else{for(Te=Xe?Q[0]:I.state,ke=!0,Xe=Xe?1:0;Xe<Q.length;Xe++){var ht=Q[Xe];ht=typeof ht=="function"?ht.call(I,Te,J,le):ht,ht!=null&&(ke?(ke=!1,Te=Wo({},Te,ht)):Wo(Te,ht))}I.state=Te}else Te.queue=null}var Yo={id:1,overflow:""};function Ui(I,Q,J){var le=I.id;I=I.overflow;var ke=32-oc(le)-1;le&=~(1<<ke),J+=1;var Te=32-oc(Q)+ke;if(30<Te){var Xe=ke-ke%5;return Te=(le&(1<<Xe)-1).toString(32),le>>=Xe,ke-=Xe,{id:1<<32-oc(Q)+ke|J<<ke|le,overflow:Te+I}}return{id:1<<Te|J<<ke|le,overflow:I}}var oc=Math.clz32?Math.clz32:rC,ac=Math.log,Cy=Math.LN2;function rC(I){return I>>>=0,I===0?32:31-(ac(I)/Cy|0)|0}function du(I,Q){return I===Q&&(I!==0||1/I===1/Q)||I!==I&&Q!==Q}var wy=typeof Object.is=="function"?Object.is:du,Ra=null,Md=null,lp=null,Bs=null,es=!1,ts=!1,Ta=0,Zo=null,Gg=0;function hu(){if(Ra===null)throw Error(t(321));return Ra}function Og(){if(0<Gg)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function Id(){return Bs===null?lp===null?(es=!1,lp=Bs=Og()):(es=!0,Bs=lp):Bs.next===null?(es=!1,Bs=Bs.next=Og()):(es=!0,Bs=Bs.next),Bs}function kd(){Md=Ra=null,ts=!1,lp=null,Gg=0,Bs=Zo=null}function VA(I,Q){return typeof Q=="function"?Q(I):Q}function zs(I,Q,J){if(Ra=hu(),Bs=Id(),es){var le=Bs.queue;if(Q=le.dispatch,Zo!==null&&(J=Zo.get(le),J!==void 0)){Zo.delete(le),le=Bs.memoizedState;do le=I(le,J.action),J=J.next;while(J!==null);return Bs.memoizedState=le,[le,Q]}return[Bs.memoizedState,Q]}return I=I===VA?typeof Q=="function"?Q():Q:J!==void 0?J(Q):Q,Bs.memoizedState=I,I=Bs.queue={last:null,dispatch:null},I=I.dispatch=Da.bind(null,Ra,I),[Bs.memoizedState,I]}function Bd(I,Q){if(Ra=hu(),Bs=Id(),Q=Q===void 0?null:Q,Bs!==null){var J=Bs.memoizedState;if(J!==null&&Q!==null){var le=J[1];e:if(le===null)le=!1;else{for(var ke=0;ke<le.length&&ke<Q.length;ke++)if(!wy(Q[ke],le[ke])){le=!1;break e}le=!0}if(le)return J[0]}}return I=I(),Bs.memoizedState=[I,Q],I}function Da(I,Q,J){if(25<=Gg)throw Error(t(301));if(I===Ra)if(ts=!0,I={action:J,next:null},Zo===null&&(Zo=new Map),J=Zo.get(Q),J===void 0)Zo.set(Q,I);else{for(Q=J;Q.next!==null;)Q=Q.next;Q.next=I}}function zA(){throw Error(t(394))}function bl(){}var Jn={readContext:function(I){return I._currentValue},useContext:function(I){return hu(),I._currentValue},useMemo:Bd,useReducer:zs,useRef:function(I){Ra=hu(),Bs=Id();var Q=Bs.memoizedState;return Q===null?(I={current:I},Bs.memoizedState=I):Q},useState:function(I){return zs(VA,I)},useInsertionEffect:bl,useLayoutEffect:function(){},useCallback:function(I,Q){return Bd(function(){return I},Q)},useImperativeHandle:bl,useEffect:bl,useDebugValue:bl,useDeferredValue:function(I){return hu(),I},useTransition:function(){return hu(),[!1,zA]},useId:function(){var I=Md.treeContext,Q=I.overflow;I=I.id,I=(I&~(1<<32-oc(I)-1)).toString(32)+Q;var J=Ld;if(J===null)throw Error(t(404));return Q=Ta++,I=":"+J.idPrefix+"R"+I,0<Q&&(I+="H"+Q.toString(32)),I+":"},useMutableSource:function(I,Q){return hu(),Q(I._source)},useSyncExternalStore:function(I,Q,J){if(J===void 0)throw Error(t(407));return J()}},Ld=null,qn=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function pu(I){return console.error(I),null}function lc(){}function Hd(I,Q,J,le,ke,Te,Xe,ht,Qt){var Sr=[],ar=new Set;return Q={destination:null,responseState:Q,progressiveChunkSize:le===void 0?12800:le,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:ar,pingedTasks:Sr,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:ke===void 0?pu:ke,onAllReady:Te===void 0?lc:Te,onShellReady:Xe===void 0?lc:Xe,onShellError:ht===void 0?lc:ht,onFatalError:Qt===void 0?lc:Qt},J=kn(Q,0,null,J,!1,!1),J.parentFlushed=!0,I=Ng(Q,I,null,J,ar,bt,null,Yo),Sr.push(I),Q}function Ng(I,Q,J,le,ke,Te,Xe,ht){I.allPendingTasks++,J===null?I.pendingRootTasks++:J.pendingTasks++;var Qt={node:Q,ping:function(){var Sr=I.pingedTasks;Sr.push(Qt),Sr.length===1&&UA(I)},blockedBoundary:J,blockedSegment:le,abortSet:ke,legacyContext:Te,context:Xe,treeContext:ht};return ke.add(Qt),Qt}function kn(I,Q,J,le,ke,Te){return{status:0,id:-1,index:Q,parentFlushed:!1,chunks:[],children:[],formatContext:le,boundary:J,lastPushedText:ke,textEmbedded:Te}}function gu(I,Q){if(I=I.onError(Q),I!=null&&typeof I!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof I+'" instead');return I}function Sn(I,Q){var J=I.onShellError;J(Q),J=I.onFatalError,J(Q),I.destination!==null?(I.status=2,u(I.destination,Q)):(I.status=1,I.fatalError=Q)}function cp(I,Q,J,le,ke){for(Ra={},Md=Q,Ta=0,I=J(le,ke);ts;)ts=!1,Ta=0,Gg+=1,Bs=null,I=J(le,ke);return kd(),I}function _g(I,Q,J,le){var ke=J.render(),Te=le.childContextTypes;if(Te!=null){var Xe=Q.legacyContext;if(typeof J.getChildContext!="function")le=Xe;else{J=J.getChildContext();for(var ht in J)if(!(ht in Te))throw Error(t(108,gt(le)||"Unknown",ht));le=Wo({},Xe,J)}Q.legacyContext=le,ci(I,Q,ke),Q.legacyContext=Xe}else ci(I,Q,ke)}function Sl(I,Q){if(I&&I.defaultProps){Q=Wo({},Q),I=I.defaultProps;for(var J in I)Q[J]===void 0&&(Q[J]=I[J]);return Q}return Q}function Gd(I,Q,J,le,ke){if(typeof J=="function")if(J.prototype&&J.prototype.isReactComponent){ke=Xt(J,Q.legacyContext);var Te=J.contextType;Te=new J(le,typeof Te=="object"&&Te!==null?Te._currentValue:ke),xi(Te,J,le,ke),_g(I,Q,Te,J)}else{Te=Xt(J,Q.legacyContext),ke=cp(I,Q,J,le,Te);var Xe=Ta!==0;if(typeof ke=="object"&&ke!==null&&typeof ke.render=="function"&&ke.$$typeof===void 0)xi(ke,J,le,Te),_g(I,Q,ke,J);else if(Xe){le=Q.treeContext,Q.treeContext=Ui(le,1,0);try{ci(I,Q,ke)}finally{Q.treeContext=le}}else ci(I,Q,ke)}else if(typeof J=="string"){switch(ke=Q.blockedSegment,Te=Lt(ke.chunks,J,le,I.responseState,ke.formatContext),ke.lastPushedText=!1,Xe=ke.formatContext,ke.formatContext=$(Xe,J,le),Ma(I,Q,Te),ke.formatContext=Xe,J){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:ke.chunks.push(sr,l(J),Ar)}ke.lastPushedText=!1}else{switch(J){case Ie:case ce:case Rd:case Td:case Vn:ci(I,Q,le.children);return;case Ko:ci(I,Q,le.children);return;case te:throw Error(t(343));case yl:e:{J=Q.blockedBoundary,ke=Q.blockedSegment,Te=le.fallback,le=le.children,Xe=new Set;var ht={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Xe,errorDigest:null},Qt=kn(I,ke.chunks.length,ht,ke.formatContext,!1,!1);ke.children.push(Qt),ke.lastPushedText=!1;var Sr=kn(I,0,null,ke.formatContext,!1,!1);Sr.parentFlushed=!0,Q.blockedBoundary=ht,Q.blockedSegment=Sr;try{if(Ma(I,Q,le),Sr.lastPushedText&&Sr.textEmbedded&&Sr.chunks.push(se),Sr.status=1,Od(ht,Sr),ht.pendingTasks===0)break e}catch(ar){Sr.status=4,ht.forceClientRender=!0,ht.errorDigest=gu(I,ar)}finally{Q.blockedBoundary=J,Q.blockedSegment=ke}Q=Ng(I,Te,J,Qt,Xe,Q.legacyContext,Q.context,Q.treeContext),I.pingedTasks.push(Q)}return}if(typeof J=="object"&&J!==null)switch(J.$$typeof){case uu:if(le=cp(I,Q,J.render,le,ke),Ta!==0){J=Q.treeContext,Q.treeContext=Ui(J,1,0);try{ci(I,Q,le)}finally{Q.treeContext=J}}else ci(I,Q,le);return;case M:J=J.type,le=Sl(J,le),Gd(I,Q,J,le,ke);return;case Dd:if(ke=le.children,J=J._context,le=le.value,Te=J._currentValue,J._currentValue=le,Xe=wr,wr=le={parent:Xe,depth:Xe===null?0:Xe.depth+1,context:J,parentValue:Te,value:le},Q.context=le,ci(I,Q,ke),I=wr,I===null)throw Error(t(403));le=I.parentValue,I.context._currentValue=le===Fe?I.context._defaultValue:le,I=wr=I.parent,Q.context=I;return;case jo:le=le.children,le=le(J._currentValue),ci(I,Q,le);return;case U:ke=J._init,J=ke(J._payload),le=Sl(J,le),Gd(I,Q,J,le,void 0);return}throw Error(t(130,J==null?J:typeof J,""))}}function ci(I,Q,J){if(Q.node=J,typeof J=="object"&&J!==null){switch(J.$$typeof){case Vi:Gd(I,Q,J.type,J.props,J.ref);return;case cu:throw Error(t(257));case U:var le=J._init;J=le(J._payload),ci(I,Q,J);return}if(j(J)){Ts(I,Q,J);return}if(J===null||typeof J!="object"?le=null:(le=Ye&&J[Ye]||J["@@iterator"],le=typeof le=="function"?le:null),le&&(le=le.call(J))){if(J=le.next(),!J.done){var ke=[];do ke.push(J.value),J=le.next();while(!J.done);Ts(I,Q,ke)}return}throw I=Object.prototype.toString.call(J),Error(t(31,I==="[object Object]"?"object with keys {"+Object.keys(J).join(", ")+"}":I))}typeof J=="string"?(le=Q.blockedSegment,le.lastPushedText=De(Q.blockedSegment.chunks,J,I.responseState,le.lastPushedText)):typeof J=="number"&&(le=Q.blockedSegment,le.lastPushedText=De(Q.blockedSegment.chunks,""+J,I.responseState,le.lastPushedText))}function Ts(I,Q,J){for(var le=J.length,ke=0;ke<le;ke++){var Te=Q.treeContext;Q.treeContext=Ui(Te,le,ke);try{Ma(I,Q,J[ke])}finally{Q.treeContext=Te}}}function Ma(I,Q,J){var le=Q.blockedSegment.formatContext,ke=Q.legacyContext,Te=Q.context;try{return ci(I,Q,J)}catch(Qt){if(kd(),typeof Qt=="object"&&Qt!==null&&typeof Qt.then=="function"){J=Qt;var Xe=Q.blockedSegment,ht=kn(I,Xe.chunks.length,null,Xe.formatContext,Xe.lastPushedText,!0);Xe.children.push(ht),Xe.lastPushedText=!1,I=Ng(I,Q.node,Q.blockedBoundary,ht,Q.abortSet,Q.legacyContext,Q.context,Q.treeContext).ping,J.then(I,I),Q.blockedSegment.formatContext=le,Q.legacyContext=ke,Q.context=Te,Qi(Te)}else throw Q.blockedSegment.formatContext=le,Q.legacyContext=ke,Q.context=Te,Qi(Te),Qt}}function QA(I){var Q=I.blockedBoundary;I=I.blockedSegment,I.status=3,nC(this,Q,I)}function sC(I,Q,J){var le=I.blockedBoundary;I.blockedSegment.status=3,le===null?(Q.allPendingTasks--,Q.status!==2&&(Q.status=2,Q.destination!==null&&Q.destination.close())):(le.pendingTasks--,le.forceClientRender||(le.forceClientRender=!0,I=J===void 0?Error(t(432)):J,le.errorDigest=Q.onError(I),le.parentFlushed&&Q.clientRenderedBoundaries.push(le)),le.fallbackAbortableTasks.forEach(function(ke){return sC(ke,Q,J)}),le.fallbackAbortableTasks.clear(),Q.allPendingTasks--,Q.allPendingTasks===0&&(le=Q.onAllReady,le()))}function Od(I,Q){if(Q.chunks.length===0&&Q.children.length===1&&Q.children[0].boundary===null){var J=Q.children[0];J.id=Q.id,J.parentFlushed=!0,J.status===1&&Od(I,J)}else I.completedSegments.push(Q)}function nC(I,Q,J){if(Q===null){if(J.parentFlushed){if(I.completedRootSegment!==null)throw Error(t(389));I.completedRootSegment=J}I.pendingRootTasks--,I.pendingRootTasks===0&&(I.onShellError=lc,Q=I.onShellReady,Q())}else Q.pendingTasks--,Q.forceClientRender||(Q.pendingTasks===0?(J.parentFlushed&&J.status===1&&Od(Q,J),Q.parentFlushed&&I.completedBoundaries.push(Q),Q.fallbackAbortableTasks.forEach(QA,I),Q.fallbackAbortableTasks.clear()):J.parentFlushed&&J.status===1&&(Od(Q,J),Q.completedSegments.length===1&&Q.parentFlushed&&I.partialBoundaries.push(Q)));I.allPendingTasks--,I.allPendingTasks===0&&(I=I.onAllReady,I())}function UA(I){if(I.status!==2){var Q=wr,J=qn.current;qn.current=Jn;var le=Ld;Ld=I.responseState;try{var ke=I.pingedTasks,Te;for(Te=0;Te<ke.length;Te++){var Xe=ke[Te],ht=I,Qt=Xe.blockedSegment;if(Qt.status===0){Qi(Xe.context);try{ci(ht,Xe,Xe.node),Qt.lastPushedText&&Qt.textEmbedded&&Qt.chunks.push(se),Xe.abortSet.delete(Xe),Qt.status=1,nC(ht,Xe.blockedBoundary,Qt)}catch(Co){if(kd(),typeof Co=="object"&&Co!==null&&typeof Co.then=="function"){var Sr=Xe.ping;Co.then(Sr,Sr)}else{Xe.abortSet.delete(Xe),Qt.status=4;var ar=Xe.blockedBoundary,Ls=Co,ui=gu(ht,Ls);if(ar===null?Sn(ht,Ls):(ar.pendingTasks--,ar.forceClientRender||(ar.forceClientRender=!0,ar.errorDigest=ui,ar.parentFlushed&&ht.clientRenderedBoundaries.push(ar))),ht.allPendingTasks--,ht.allPendingTasks===0){var vo=ht.onAllReady;vo()}}}finally{}}}ke.splice(0,Te),I.destination!==null&&Qg(I,I.destination)}catch(Co){gu(I,Co),Sn(I,Co)}finally{Ld=le,qn.current=J,J===Jn&&Qi(Q)}}}function Vg(I,Q,J){switch(J.parentFlushed=!0,J.status){case 0:var le=J.id=I.nextSegmentId++;return J.lastPushedText=!1,J.textEmbedded=!1,I=I.responseState,n(Q,Mr),n(Q,I.placeholderPrefix),I=l(le.toString(16)),n(Q,I),i(Q,Qr);case 1:J.status=2;var ke=!0;le=J.chunks;var Te=0;J=J.children;for(var Xe=0;Xe<J.length;Xe++){for(ke=J[Xe];Te<ke.index;Te++)n(Q,le[Te]);ke=up(I,Q,ke)}for(;Te<le.length-1;Te++)n(Q,le[Te]);return Te<le.length&&(ke=i(Q,le[Te])),ke;default:throw Error(t(390))}}function up(I,Q,J){var le=J.boundary;if(le===null)return Vg(I,Q,J);if(le.parentFlushed=!0,le.forceClientRender)le=le.errorDigest,i(Q,Xs),n(Q,$l),le&&(n(Q,In),n(Q,l(k(le))),n(Q,un)),i(Q,Jl),Vg(I,Q,J);else if(0<le.pendingTasks){le.rootSegmentID=I.nextSegmentId++,0<le.completedSegments.length&&I.partialBoundaries.push(le);var ke=I.responseState,Te=ke.nextSuspenseID++;ke=c(ke.boundaryPrefix+Te.toString(16)),le=le.id=ke,Si(Q,I.responseState,le),Vg(I,Q,J)}else if(le.byteSize>I.progressiveChunkSize)le.rootSegmentID=I.nextSegmentId++,I.completedBoundaries.push(le),Si(Q,I.responseState,le.id),Vg(I,Q,J);else{if(i(Q,Us),J=le.completedSegments,J.length!==1)throw Error(t(391));up(I,Q,J[0])}return i(Q,go)}function dp(I,Q,J){return vl(Q,I.responseState,J.formatContext,J.id),up(I,Q,J),Cl(Q,J.formatContext)}function fu(I,Q,J){for(var le=J.completedSegments,ke=0;ke<le.length;ke++)zg(I,Q,J,le[ke]);if(le.length=0,I=I.responseState,le=J.id,J=J.rootSegmentID,n(Q,I.startInlineScript),I.sentCompleteBoundaryFunction?n(Q,op):(I.sentCompleteBoundaryFunction=!0,n(Q,au)),le===null)throw Error(t(395));return J=l(J.toString(16)),n(Q,le),n(Q,lu),n(Q,I.segmentPrefix),n(Q,J),i(Q,Hg)}function zg(I,Q,J,le){if(le.status===2)return!0;var ke=le.id;if(ke===-1){if((le.id=J.rootSegmentID)===-1)throw Error(t(392));return dp(I,Q,le)}return dp(I,Q,le),I=I.responseState,n(Q,I.startInlineScript),I.sentCompleteSegmentFunction?n(Q,ip):(I.sentCompleteSegmentFunction=!0,n(Q,Lg)),n(Q,I.segmentPrefix),ke=l(ke.toString(16)),n(Q,ke),n(Q,ou),n(Q,I.placeholderPrefix),n(Q,ke),i(Q,ic)}function Qg(I,Q){r=new Uint8Array(512),s=0;try{var J=I.completedRootSegment;if(J!==null&&I.pendingRootTasks===0){up(I,Q,J),I.completedRootSegment=null;var le=I.responseState.bootstrapChunks;for(J=0;J<le.length-1;J++)n(Q,le[J]);J<le.length&&i(Q,le[J])}var ke=I.clientRenderedBoundaries,Te;for(Te=0;Te<ke.length;Te++){var Xe=ke[Te];le=Q;var ht=I.responseState,Qt=Xe.id,Sr=Xe.errorDigest,ar=Xe.errorMessage,Ls=Xe.errorComponentStack;if(n(le,ht.startInlineScript),ht.sentClientRenderFunction?n(le,ai):(ht.sentClientRenderFunction=!0,n(le,ys)),Qt===null)throw Error(t(395));n(le,Qt),n(le,Pd),(Sr||ar||Ls)&&(n(le,wl),n(le,l(Pa(Sr||"")))),(ar||Ls)&&(n(le,wl),n(le,l(Pa(ar||"")))),Ls&&(n(le,wl),n(le,l(Pa(Ls)))),i(le,Fd)}ke.splice(0,Te);var ui=I.completedBoundaries;for(Te=0;Te<ui.length;Te++)fu(I,Q,ui[Te]);ui.splice(0,Te),o(Q),r=new Uint8Array(512),s=0;var vo=I.partialBoundaries;for(Te=0;Te<vo.length;Te++){var Co=vo[Te];e:{ke=I,Xe=Q;var hp=Co.completedSegments;for(ht=0;ht<hp.length;ht++)if(!zg(ke,Xe,Co,hp[ht])){ht++,hp.splice(0,ht);var jA=!1;break e}hp.splice(0,ht),jA=!0}if(!jA){I.destination=null,Te++,vo.splice(0,Te);return}}vo.splice(0,Te);var cc=I.completedBoundaries;for(Te=0;Te<cc.length;Te++)fu(I,Q,cc[Te]);cc.splice(0,Te)}finally{o(Q),I.allPendingTasks===0&&I.pingedTasks.length===0&&I.clientRenderedBoundaries.length===0&&I.completedBoundaries.length===0&&Q.close()}}function WA(I,Q){try{var J=I.abortableTasks;J.forEach(function(le){return sC(le,I,Q)}),J.clear(),I.destination!==null&&Qg(I,I.destination)}catch(le){gu(I,le),Sn(I,le)}}return uP.renderToReadableStream=function(I,Q){return new Promise(function(J,le){var ke,Te,Xe=new Promise(function(ar,Ls){Te=ar,ke=Ls}),ht=Hd(I,X(Q?Q.identifierPrefix:void 0,Q?Q.nonce:void 0,Q?Q.bootstrapScriptContent:void 0,Q?Q.bootstrapScripts:void 0,Q?Q.bootstrapModules:void 0),ae(Q?Q.namespaceURI:void 0),Q?Q.progressiveChunkSize:void 0,Q?Q.onError:void 0,Te,function(){var ar=new ReadableStream({type:"bytes",pull:function(Ls){if(ht.status===1)ht.status=2,u(Ls,ht.fatalError);else if(ht.status!==2&&ht.destination===null){ht.destination=Ls;try{Qg(ht,Ls)}catch(ui){gu(ht,ui),Sn(ht,ui)}}},cancel:function(){WA(ht)}},{highWaterMark:0});ar.allReady=Xe,J(ar)},function(ar){Xe.catch(function(){}),le(ar)},ke);if(Q&&Q.signal){var Qt=Q.signal,Sr=function(){WA(ht,Qt.reason),Qt.removeEventListener("abort",Sr)};Qt.addEventListener("abort",Sr)}UA(ht)})},uP.version="18.3.1",uP}var qw,yJ;qw=a9e(),yJ=l9e();qw.version;qw.renderToString;qw.renderToStaticMarkup;qw.renderToNodeStream;qw.renderToStaticNodeStream;yJ.renderToReadableStream;var bJ={exports:{}},Za={},YO={exports:{}},ZO={};/**
763
+ `&&I.push(dt),Te;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":I.push(Rt(Q));for(var vo in J)if(d.call(J,vo)&&(Te=J[vo],Te!=null))switch(vo){case"children":case"dangerouslySetInnerHTML":throw Error(t(399,Q));default:ne(I,le,vo,Te)}return I.push(Se),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Ct(I,J,Q,le);case"html":return ke.insertionMode===0&&I.push(xt),Ct(I,J,Q,le);default:if(Q.indexOf("-")===-1&&typeof J.is!="string")return Ct(I,J,Q,le);I.push(Rt(Q)),Xe=Te=null;for(Sr in J)if(d.call(J,Sr)&&(ht=J[Sr],ht!=null))switch(Sr){case"children":Te=ht;break;case"dangerouslySetInnerHTML":Xe=ht;break;case"style":nt(I,le,ht);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:v(Sr)&&typeof ht!="function"&&typeof ht!="symbol"&&I.push(xe,l(Sr),He,l(k(ht)),wt)}return I.push(oe),$e(I,Xe,Te),Te}}var sr=c("</"),Ar=c(">"),Mr=c('<template id="'),Qr=c('"></template>'),Us=c("<!--$-->"),ks=c('<!--$?--><template id="'),bn=c('"></template>'),Xs=c("<!--$!-->"),go=c("<!--/$-->"),$l=c("<template"),un=c('"'),In=c(' data-dgst="');c(' data-msg="'),c(' data-stck="');var Jl=c("></template>");function Si(I,Q,J){if(n(I,ks),J===null)throw Error(t(395));return n(I,J),i(I,bn)}var nu=c('<div hidden id="'),fo=c('">'),Jr=c("</div>"),ql=c('<svg aria-hidden="true" style="display:none" id="'),iu=c('">'),ec=c("</svg>"),Qo=c('<math aria-hidden="true" style="display:none" id="'),tc=c('">'),Uo=c("</math>"),sp=c('<table hidden id="'),Al=c('">'),ml=c("</table>"),rc=c('<table hidden><tbody id="'),bd=c('">'),sc=c("</tbody></table>"),Sd=c('<table hidden><tr id="'),xd=c('">'),nc=c("</tr></table>"),Bg=c('<table hidden><colgroup id="'),Ed=c('">'),np=c("</colgroup></table>");function vl(I,Q,J,le){switch(J.insertionMode){case 0:case 1:return n(I,nu),n(I,Q.segmentPrefix),n(I,l(le.toString(16))),i(I,fo);case 2:return n(I,ql),n(I,Q.segmentPrefix),n(I,l(le.toString(16))),i(I,iu);case 3:return n(I,Qo),n(I,Q.segmentPrefix),n(I,l(le.toString(16))),i(I,tc);case 4:return n(I,sp),n(I,Q.segmentPrefix),n(I,l(le.toString(16))),i(I,Al);case 5:return n(I,rc),n(I,Q.segmentPrefix),n(I,l(le.toString(16))),i(I,bd);case 6:return n(I,Sd),n(I,Q.segmentPrefix),n(I,l(le.toString(16))),i(I,xd);case 7:return n(I,Bg),n(I,Q.segmentPrefix),n(I,l(le.toString(16))),i(I,Ed);default:throw Error(t(397))}}function Cl(I,Q){switch(Q.insertionMode){case 0:case 1:return i(I,Jr);case 2:return i(I,ec);case 3:return i(I,Uo);case 4:return i(I,ml);case 5:return i(I,sc);case 6:return i(I,nc);case 7:return i(I,np);default:throw Error(t(397))}}var Lg=c('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),ip=c('$RS("'),ou=c('","'),ic=c('")<\/script>'),au=c('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),op=c('$RC("'),lu=c('","'),Hg=c('")<\/script>'),ys=c('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),ai=c('$RX("'),Pd=c('"'),Fd=c(")<\/script>"),wl=c(","),ap=/[<\u2028\u2029]/g;function Pa(I){return JSON.stringify(I).replace(ap,function(Q){switch(Q){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Wo=Object.assign,Vi=Symbol.for("react.element"),cu=Symbol.for("react.portal"),Vn=Symbol.for("react.fragment"),Rd=Symbol.for("react.strict_mode"),Td=Symbol.for("react.profiler"),Dd=Symbol.for("react.provider"),jo=Symbol.for("react.context"),uu=Symbol.for("react.forward_ref"),yl=Symbol.for("react.suspense"),Ko=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),te=Symbol.for("react.scope"),ce=Symbol.for("react.debug_trace_mode"),Ie=Symbol.for("react.legacy_hidden"),Fe=Symbol.for("react.default_value"),Ye=Symbol.iterator;function gt(I){if(I==null)return null;if(typeof I=="function")return I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case Vn:return"Fragment";case cu:return"Portal";case Td:return"Profiler";case Rd:return"StrictMode";case yl:return"Suspense";case Ko:return"SuspenseList"}if(typeof I=="object")switch(I.$$typeof){case jo:return(I.displayName||"Context")+".Consumer";case Dd:return(I._context.displayName||"Context")+".Provider";case uu:var Q=I.render;return I=I.displayName,I||(I=Q.displayName||Q.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case M:return Q=I.displayName||null,Q!==null?Q:gt(I.type)||"Memo";case U:Q=I._payload,I=I._init;try{return gt(I(Q))}catch{}}return null}var bt={};function Xt(I,Q){if(I=I.contextTypes,!I)return bt;var J={},le;for(le in I)J[le]=Q[le];return J}var wr=null;function Rs(I,Q){if(I!==Q){I.context._currentValue=I.parentValue,I=I.parent;var J=Q.parent;if(I===null){if(J!==null)throw Error(t(401))}else{if(J===null)throw Error(t(401));Rs(I,J)}Q.context._currentValue=Q.value}}function Ao(I){I.context._currentValue=I.parentValue,I=I.parent,I!==null&&Ao(I)}function zi(I){var Q=I.parent;Q!==null&&zi(Q),I.context._currentValue=I.value}function li(I,Q){if(I.context._currentValue=I.parentValue,I=I.parent,I===null)throw Error(t(402));I.depth===Q.depth?Rs(I,Q):li(I,Q)}function Fa(I,Q){var J=Q.parent;if(J===null)throw Error(t(402));I.depth===J.depth?Rs(I,J):Fa(I,J),Q.context._currentValue=Q.value}function Qi(I){var Q=wr;Q!==I&&(Q===null?zi(I):I===null?Ao(Q):Q.depth===I.depth?Rs(Q,I):Q.depth>I.depth?li(Q,I):Fa(Q,I),wr=I)}var mo={isMounted:function(){return!1},enqueueSetState:function(I,Q){I=I._reactInternals,I.queue!==null&&I.queue.push(Q)},enqueueReplaceState:function(I,Q){I=I._reactInternals,I.replace=!0,I.queue=[Q]},enqueueForceUpdate:function(){}};function xi(I,Q,J,le){var ke=I.state!==void 0?I.state:null;I.updater=mo,I.props=J,I.state=ke;var Te={queue:[],replace:!1};I._reactInternals=Te;var Xe=Q.contextType;if(I.context=typeof Xe=="object"&&Xe!==null?Xe._currentValue:le,Xe=Q.getDerivedStateFromProps,typeof Xe=="function"&&(Xe=Xe(J,ke),ke=Xe==null?ke:Wo({},ke,Xe),I.state=ke),typeof Q.getDerivedStateFromProps!="function"&&typeof I.getSnapshotBeforeUpdate!="function"&&(typeof I.UNSAFE_componentWillMount=="function"||typeof I.componentWillMount=="function"))if(Q=I.state,typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount(),Q!==I.state&&mo.enqueueReplaceState(I,I.state,null),Te.queue!==null&&0<Te.queue.length)if(Q=Te.queue,Xe=Te.replace,Te.queue=null,Te.replace=!1,Xe&&Q.length===1)I.state=Q[0];else{for(Te=Xe?Q[0]:I.state,ke=!0,Xe=Xe?1:0;Xe<Q.length;Xe++){var ht=Q[Xe];ht=typeof ht=="function"?ht.call(I,Te,J,le):ht,ht!=null&&(ke?(ke=!1,Te=Wo({},Te,ht)):Wo(Te,ht))}I.state=Te}else Te.queue=null}var Yo={id:1,overflow:""};function Ui(I,Q,J){var le=I.id;I=I.overflow;var ke=32-oc(le)-1;le&=~(1<<ke),J+=1;var Te=32-oc(Q)+ke;if(30<Te){var Xe=ke-ke%5;return Te=(le&(1<<Xe)-1).toString(32),le>>=Xe,ke-=Xe,{id:1<<32-oc(Q)+ke|J<<ke|le,overflow:Te+I}}return{id:1<<Te|J<<ke|le,overflow:I}}var oc=Math.clz32?Math.clz32:rC,ac=Math.log,Cy=Math.LN2;function rC(I){return I>>>=0,I===0?32:31-(ac(I)/Cy|0)|0}function du(I,Q){return I===Q&&(I!==0||1/I===1/Q)||I!==I&&Q!==Q}var wy=typeof Object.is=="function"?Object.is:du,Ra=null,Md=null,lp=null,Bs=null,es=!1,ts=!1,Ta=0,Zo=null,Gg=0;function hu(){if(Ra===null)throw Error(t(321));return Ra}function Og(){if(0<Gg)throw Error(t(312));return{memoizedState:null,queue:null,next:null}}function Id(){return Bs===null?lp===null?(es=!1,lp=Bs=Og()):(es=!0,Bs=lp):Bs.next===null?(es=!1,Bs=Bs.next=Og()):(es=!0,Bs=Bs.next),Bs}function kd(){Md=Ra=null,ts=!1,lp=null,Gg=0,Bs=Zo=null}function VA(I,Q){return typeof Q=="function"?Q(I):Q}function zs(I,Q,J){if(Ra=hu(),Bs=Id(),es){var le=Bs.queue;if(Q=le.dispatch,Zo!==null&&(J=Zo.get(le),J!==void 0)){Zo.delete(le),le=Bs.memoizedState;do le=I(le,J.action),J=J.next;while(J!==null);return Bs.memoizedState=le,[le,Q]}return[Bs.memoizedState,Q]}return I=I===VA?typeof Q=="function"?Q():Q:J!==void 0?J(Q):Q,Bs.memoizedState=I,I=Bs.queue={last:null,dispatch:null},I=I.dispatch=Da.bind(null,Ra,I),[Bs.memoizedState,I]}function Bd(I,Q){if(Ra=hu(),Bs=Id(),Q=Q===void 0?null:Q,Bs!==null){var J=Bs.memoizedState;if(J!==null&&Q!==null){var le=J[1];e:if(le===null)le=!1;else{for(var ke=0;ke<le.length&&ke<Q.length;ke++)if(!wy(Q[ke],le[ke])){le=!1;break e}le=!0}if(le)return J[0]}}return I=I(),Bs.memoizedState=[I,Q],I}function Da(I,Q,J){if(25<=Gg)throw Error(t(301));if(I===Ra)if(ts=!0,I={action:J,next:null},Zo===null&&(Zo=new Map),J=Zo.get(Q),J===void 0)Zo.set(Q,I);else{for(Q=J;Q.next!==null;)Q=Q.next;Q.next=I}}function zA(){throw Error(t(394))}function bl(){}var Jn={readContext:function(I){return I._currentValue},useContext:function(I){return hu(),I._currentValue},useMemo:Bd,useReducer:zs,useRef:function(I){Ra=hu(),Bs=Id();var Q=Bs.memoizedState;return Q===null?(I={current:I},Bs.memoizedState=I):Q},useState:function(I){return zs(VA,I)},useInsertionEffect:bl,useLayoutEffect:function(){},useCallback:function(I,Q){return Bd(function(){return I},Q)},useImperativeHandle:bl,useEffect:bl,useDebugValue:bl,useDeferredValue:function(I){return hu(),I},useTransition:function(){return hu(),[!1,zA]},useId:function(){var I=Md.treeContext,Q=I.overflow;I=I.id,I=(I&~(1<<32-oc(I)-1)).toString(32)+Q;var J=Ld;if(J===null)throw Error(t(404));return Q=Ta++,I=":"+J.idPrefix+"R"+I,0<Q&&(I+="H"+Q.toString(32)),I+":"},useMutableSource:function(I,Q){return hu(),Q(I._source)},useSyncExternalStore:function(I,Q,J){if(J===void 0)throw Error(t(407));return J()}},Ld=null,qn=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function pu(I){return console.error(I),null}function lc(){}function Hd(I,Q,J,le,ke,Te,Xe,ht,Qt){var Sr=[],ar=new Set;return Q={destination:null,responseState:Q,progressiveChunkSize:le===void 0?12800:le,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:ar,pingedTasks:Sr,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:ke===void 0?pu:ke,onAllReady:Te===void 0?lc:Te,onShellReady:Xe===void 0?lc:Xe,onShellError:ht===void 0?lc:ht,onFatalError:Qt===void 0?lc:Qt},J=kn(Q,0,null,J,!1,!1),J.parentFlushed=!0,I=Ng(Q,I,null,J,ar,bt,null,Yo),Sr.push(I),Q}function Ng(I,Q,J,le,ke,Te,Xe,ht){I.allPendingTasks++,J===null?I.pendingRootTasks++:J.pendingTasks++;var Qt={node:Q,ping:function(){var Sr=I.pingedTasks;Sr.push(Qt),Sr.length===1&&UA(I)},blockedBoundary:J,blockedSegment:le,abortSet:ke,legacyContext:Te,context:Xe,treeContext:ht};return ke.add(Qt),Qt}function kn(I,Q,J,le,ke,Te){return{status:0,id:-1,index:Q,parentFlushed:!1,chunks:[],children:[],formatContext:le,boundary:J,lastPushedText:ke,textEmbedded:Te}}function gu(I,Q){if(I=I.onError(Q),I!=null&&typeof I!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof I+'" instead');return I}function Sn(I,Q){var J=I.onShellError;J(Q),J=I.onFatalError,J(Q),I.destination!==null?(I.status=2,u(I.destination,Q)):(I.status=1,I.fatalError=Q)}function cp(I,Q,J,le,ke){for(Ra={},Md=Q,Ta=0,I=J(le,ke);ts;)ts=!1,Ta=0,Gg+=1,Bs=null,I=J(le,ke);return kd(),I}function _g(I,Q,J,le){var ke=J.render(),Te=le.childContextTypes;if(Te!=null){var Xe=Q.legacyContext;if(typeof J.getChildContext!="function")le=Xe;else{J=J.getChildContext();for(var ht in J)if(!(ht in Te))throw Error(t(108,gt(le)||"Unknown",ht));le=Wo({},Xe,J)}Q.legacyContext=le,ci(I,Q,ke),Q.legacyContext=Xe}else ci(I,Q,ke)}function Sl(I,Q){if(I&&I.defaultProps){Q=Wo({},Q),I=I.defaultProps;for(var J in I)Q[J]===void 0&&(Q[J]=I[J]);return Q}return Q}function Gd(I,Q,J,le,ke){if(typeof J=="function")if(J.prototype&&J.prototype.isReactComponent){ke=Xt(J,Q.legacyContext);var Te=J.contextType;Te=new J(le,typeof Te=="object"&&Te!==null?Te._currentValue:ke),xi(Te,J,le,ke),_g(I,Q,Te,J)}else{Te=Xt(J,Q.legacyContext),ke=cp(I,Q,J,le,Te);var Xe=Ta!==0;if(typeof ke=="object"&&ke!==null&&typeof ke.render=="function"&&ke.$$typeof===void 0)xi(ke,J,le,Te),_g(I,Q,ke,J);else if(Xe){le=Q.treeContext,Q.treeContext=Ui(le,1,0);try{ci(I,Q,ke)}finally{Q.treeContext=le}}else ci(I,Q,ke)}else if(typeof J=="string"){switch(ke=Q.blockedSegment,Te=Lt(ke.chunks,J,le,I.responseState,ke.formatContext),ke.lastPushedText=!1,Xe=ke.formatContext,ke.formatContext=$(Xe,J,le),Ma(I,Q,Te),ke.formatContext=Xe,J){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:ke.chunks.push(sr,l(J),Ar)}ke.lastPushedText=!1}else{switch(J){case Ie:case ce:case Rd:case Td:case Vn:ci(I,Q,le.children);return;case Ko:ci(I,Q,le.children);return;case te:throw Error(t(343));case yl:e:{J=Q.blockedBoundary,ke=Q.blockedSegment,Te=le.fallback,le=le.children,Xe=new Set;var ht={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Xe,errorDigest:null},Qt=kn(I,ke.chunks.length,ht,ke.formatContext,!1,!1);ke.children.push(Qt),ke.lastPushedText=!1;var Sr=kn(I,0,null,ke.formatContext,!1,!1);Sr.parentFlushed=!0,Q.blockedBoundary=ht,Q.blockedSegment=Sr;try{if(Ma(I,Q,le),Sr.lastPushedText&&Sr.textEmbedded&&Sr.chunks.push(se),Sr.status=1,Od(ht,Sr),ht.pendingTasks===0)break e}catch(ar){Sr.status=4,ht.forceClientRender=!0,ht.errorDigest=gu(I,ar)}finally{Q.blockedBoundary=J,Q.blockedSegment=ke}Q=Ng(I,Te,J,Qt,Xe,Q.legacyContext,Q.context,Q.treeContext),I.pingedTasks.push(Q)}return}if(typeof J=="object"&&J!==null)switch(J.$$typeof){case uu:if(le=cp(I,Q,J.render,le,ke),Ta!==0){J=Q.treeContext,Q.treeContext=Ui(J,1,0);try{ci(I,Q,le)}finally{Q.treeContext=J}}else ci(I,Q,le);return;case M:J=J.type,le=Sl(J,le),Gd(I,Q,J,le,ke);return;case Dd:if(ke=le.children,J=J._context,le=le.value,Te=J._currentValue,J._currentValue=le,Xe=wr,wr=le={parent:Xe,depth:Xe===null?0:Xe.depth+1,context:J,parentValue:Te,value:le},Q.context=le,ci(I,Q,ke),I=wr,I===null)throw Error(t(403));le=I.parentValue,I.context._currentValue=le===Fe?I.context._defaultValue:le,I=wr=I.parent,Q.context=I;return;case jo:le=le.children,le=le(J._currentValue),ci(I,Q,le);return;case U:ke=J._init,J=ke(J._payload),le=Sl(J,le),Gd(I,Q,J,le,void 0);return}throw Error(t(130,J==null?J:typeof J,""))}}function ci(I,Q,J){if(Q.node=J,typeof J=="object"&&J!==null){switch(J.$$typeof){case Vi:Gd(I,Q,J.type,J.props,J.ref);return;case cu:throw Error(t(257));case U:var le=J._init;J=le(J._payload),ci(I,Q,J);return}if(j(J)){Ts(I,Q,J);return}if(J===null||typeof J!="object"?le=null:(le=Ye&&J[Ye]||J["@@iterator"],le=typeof le=="function"?le:null),le&&(le=le.call(J))){if(J=le.next(),!J.done){var ke=[];do ke.push(J.value),J=le.next();while(!J.done);Ts(I,Q,ke)}return}throw I=Object.prototype.toString.call(J),Error(t(31,I==="[object Object]"?"object with keys {"+Object.keys(J).join(", ")+"}":I))}typeof J=="string"?(le=Q.blockedSegment,le.lastPushedText=De(Q.blockedSegment.chunks,J,I.responseState,le.lastPushedText)):typeof J=="number"&&(le=Q.blockedSegment,le.lastPushedText=De(Q.blockedSegment.chunks,""+J,I.responseState,le.lastPushedText))}function Ts(I,Q,J){for(var le=J.length,ke=0;ke<le;ke++){var Te=Q.treeContext;Q.treeContext=Ui(Te,le,ke);try{Ma(I,Q,J[ke])}finally{Q.treeContext=Te}}}function Ma(I,Q,J){var le=Q.blockedSegment.formatContext,ke=Q.legacyContext,Te=Q.context;try{return ci(I,Q,J)}catch(Qt){if(kd(),typeof Qt=="object"&&Qt!==null&&typeof Qt.then=="function"){J=Qt;var Xe=Q.blockedSegment,ht=kn(I,Xe.chunks.length,null,Xe.formatContext,Xe.lastPushedText,!0);Xe.children.push(ht),Xe.lastPushedText=!1,I=Ng(I,Q.node,Q.blockedBoundary,ht,Q.abortSet,Q.legacyContext,Q.context,Q.treeContext).ping,J.then(I,I),Q.blockedSegment.formatContext=le,Q.legacyContext=ke,Q.context=Te,Qi(Te)}else throw Q.blockedSegment.formatContext=le,Q.legacyContext=ke,Q.context=Te,Qi(Te),Qt}}function QA(I){var Q=I.blockedBoundary;I=I.blockedSegment,I.status=3,nC(this,Q,I)}function sC(I,Q,J){var le=I.blockedBoundary;I.blockedSegment.status=3,le===null?(Q.allPendingTasks--,Q.status!==2&&(Q.status=2,Q.destination!==null&&Q.destination.close())):(le.pendingTasks--,le.forceClientRender||(le.forceClientRender=!0,I=J===void 0?Error(t(432)):J,le.errorDigest=Q.onError(I),le.parentFlushed&&Q.clientRenderedBoundaries.push(le)),le.fallbackAbortableTasks.forEach(function(ke){return sC(ke,Q,J)}),le.fallbackAbortableTasks.clear(),Q.allPendingTasks--,Q.allPendingTasks===0&&(le=Q.onAllReady,le()))}function Od(I,Q){if(Q.chunks.length===0&&Q.children.length===1&&Q.children[0].boundary===null){var J=Q.children[0];J.id=Q.id,J.parentFlushed=!0,J.status===1&&Od(I,J)}else I.completedSegments.push(Q)}function nC(I,Q,J){if(Q===null){if(J.parentFlushed){if(I.completedRootSegment!==null)throw Error(t(389));I.completedRootSegment=J}I.pendingRootTasks--,I.pendingRootTasks===0&&(I.onShellError=lc,Q=I.onShellReady,Q())}else Q.pendingTasks--,Q.forceClientRender||(Q.pendingTasks===0?(J.parentFlushed&&J.status===1&&Od(Q,J),Q.parentFlushed&&I.completedBoundaries.push(Q),Q.fallbackAbortableTasks.forEach(QA,I),Q.fallbackAbortableTasks.clear()):J.parentFlushed&&J.status===1&&(Od(Q,J),Q.completedSegments.length===1&&Q.parentFlushed&&I.partialBoundaries.push(Q)));I.allPendingTasks--,I.allPendingTasks===0&&(I=I.onAllReady,I())}function UA(I){if(I.status!==2){var Q=wr,J=qn.current;qn.current=Jn;var le=Ld;Ld=I.responseState;try{var ke=I.pingedTasks,Te;for(Te=0;Te<ke.length;Te++){var Xe=ke[Te],ht=I,Qt=Xe.blockedSegment;if(Qt.status===0){Qi(Xe.context);try{ci(ht,Xe,Xe.node),Qt.lastPushedText&&Qt.textEmbedded&&Qt.chunks.push(se),Xe.abortSet.delete(Xe),Qt.status=1,nC(ht,Xe.blockedBoundary,Qt)}catch(Co){if(kd(),typeof Co=="object"&&Co!==null&&typeof Co.then=="function"){var Sr=Xe.ping;Co.then(Sr,Sr)}else{Xe.abortSet.delete(Xe),Qt.status=4;var ar=Xe.blockedBoundary,Ls=Co,ui=gu(ht,Ls);if(ar===null?Sn(ht,Ls):(ar.pendingTasks--,ar.forceClientRender||(ar.forceClientRender=!0,ar.errorDigest=ui,ar.parentFlushed&&ht.clientRenderedBoundaries.push(ar))),ht.allPendingTasks--,ht.allPendingTasks===0){var vo=ht.onAllReady;vo()}}}finally{}}}ke.splice(0,Te),I.destination!==null&&Qg(I,I.destination)}catch(Co){gu(I,Co),Sn(I,Co)}finally{Ld=le,qn.current=J,J===Jn&&Qi(Q)}}}function Vg(I,Q,J){switch(J.parentFlushed=!0,J.status){case 0:var le=J.id=I.nextSegmentId++;return J.lastPushedText=!1,J.textEmbedded=!1,I=I.responseState,n(Q,Mr),n(Q,I.placeholderPrefix),I=l(le.toString(16)),n(Q,I),i(Q,Qr);case 1:J.status=2;var ke=!0;le=J.chunks;var Te=0;J=J.children;for(var Xe=0;Xe<J.length;Xe++){for(ke=J[Xe];Te<ke.index;Te++)n(Q,le[Te]);ke=up(I,Q,ke)}for(;Te<le.length-1;Te++)n(Q,le[Te]);return Te<le.length&&(ke=i(Q,le[Te])),ke;default:throw Error(t(390))}}function up(I,Q,J){var le=J.boundary;if(le===null)return Vg(I,Q,J);if(le.parentFlushed=!0,le.forceClientRender)le=le.errorDigest,i(Q,Xs),n(Q,$l),le&&(n(Q,In),n(Q,l(k(le))),n(Q,un)),i(Q,Jl),Vg(I,Q,J);else if(0<le.pendingTasks){le.rootSegmentID=I.nextSegmentId++,0<le.completedSegments.length&&I.partialBoundaries.push(le);var ke=I.responseState,Te=ke.nextSuspenseID++;ke=c(ke.boundaryPrefix+Te.toString(16)),le=le.id=ke,Si(Q,I.responseState,le),Vg(I,Q,J)}else if(le.byteSize>I.progressiveChunkSize)le.rootSegmentID=I.nextSegmentId++,I.completedBoundaries.push(le),Si(Q,I.responseState,le.id),Vg(I,Q,J);else{if(i(Q,Us),J=le.completedSegments,J.length!==1)throw Error(t(391));up(I,Q,J[0])}return i(Q,go)}function dp(I,Q,J){return vl(Q,I.responseState,J.formatContext,J.id),up(I,Q,J),Cl(Q,J.formatContext)}function fu(I,Q,J){for(var le=J.completedSegments,ke=0;ke<le.length;ke++)zg(I,Q,J,le[ke]);if(le.length=0,I=I.responseState,le=J.id,J=J.rootSegmentID,n(Q,I.startInlineScript),I.sentCompleteBoundaryFunction?n(Q,op):(I.sentCompleteBoundaryFunction=!0,n(Q,au)),le===null)throw Error(t(395));return J=l(J.toString(16)),n(Q,le),n(Q,lu),n(Q,I.segmentPrefix),n(Q,J),i(Q,Hg)}function zg(I,Q,J,le){if(le.status===2)return!0;var ke=le.id;if(ke===-1){if((le.id=J.rootSegmentID)===-1)throw Error(t(392));return dp(I,Q,le)}return dp(I,Q,le),I=I.responseState,n(Q,I.startInlineScript),I.sentCompleteSegmentFunction?n(Q,ip):(I.sentCompleteSegmentFunction=!0,n(Q,Lg)),n(Q,I.segmentPrefix),ke=l(ke.toString(16)),n(Q,ke),n(Q,ou),n(Q,I.placeholderPrefix),n(Q,ke),i(Q,ic)}function Qg(I,Q){r=new Uint8Array(512),s=0;try{var J=I.completedRootSegment;if(J!==null&&I.pendingRootTasks===0){up(I,Q,J),I.completedRootSegment=null;var le=I.responseState.bootstrapChunks;for(J=0;J<le.length-1;J++)n(Q,le[J]);J<le.length&&i(Q,le[J])}var ke=I.clientRenderedBoundaries,Te;for(Te=0;Te<ke.length;Te++){var Xe=ke[Te];le=Q;var ht=I.responseState,Qt=Xe.id,Sr=Xe.errorDigest,ar=Xe.errorMessage,Ls=Xe.errorComponentStack;if(n(le,ht.startInlineScript),ht.sentClientRenderFunction?n(le,ai):(ht.sentClientRenderFunction=!0,n(le,ys)),Qt===null)throw Error(t(395));n(le,Qt),n(le,Pd),(Sr||ar||Ls)&&(n(le,wl),n(le,l(Pa(Sr||"")))),(ar||Ls)&&(n(le,wl),n(le,l(Pa(ar||"")))),Ls&&(n(le,wl),n(le,l(Pa(Ls)))),i(le,Fd)}ke.splice(0,Te);var ui=I.completedBoundaries;for(Te=0;Te<ui.length;Te++)fu(I,Q,ui[Te]);ui.splice(0,Te),o(Q),r=new Uint8Array(512),s=0;var vo=I.partialBoundaries;for(Te=0;Te<vo.length;Te++){var Co=vo[Te];e:{ke=I,Xe=Q;var hp=Co.completedSegments;for(ht=0;ht<hp.length;ht++)if(!zg(ke,Xe,Co,hp[ht])){ht++,hp.splice(0,ht);var jA=!1;break e}hp.splice(0,ht),jA=!0}if(!jA){I.destination=null,Te++,vo.splice(0,Te);return}}vo.splice(0,Te);var cc=I.completedBoundaries;for(Te=0;Te<cc.length;Te++)fu(I,Q,cc[Te]);cc.splice(0,Te)}finally{o(Q),I.allPendingTasks===0&&I.pingedTasks.length===0&&I.clientRenderedBoundaries.length===0&&I.completedBoundaries.length===0&&Q.close()}}function WA(I,Q){try{var J=I.abortableTasks;J.forEach(function(le){return sC(le,I,Q)}),J.clear(),I.destination!==null&&Qg(I,I.destination)}catch(le){gu(I,le),Sn(I,le)}}return dP.renderToReadableStream=function(I,Q){return new Promise(function(J,le){var ke,Te,Xe=new Promise(function(ar,Ls){Te=ar,ke=Ls}),ht=Hd(I,X(Q?Q.identifierPrefix:void 0,Q?Q.nonce:void 0,Q?Q.bootstrapScriptContent:void 0,Q?Q.bootstrapScripts:void 0,Q?Q.bootstrapModules:void 0),ae(Q?Q.namespaceURI:void 0),Q?Q.progressiveChunkSize:void 0,Q?Q.onError:void 0,Te,function(){var ar=new ReadableStream({type:"bytes",pull:function(Ls){if(ht.status===1)ht.status=2,u(Ls,ht.fatalError);else if(ht.status!==2&&ht.destination===null){ht.destination=Ls;try{Qg(ht,Ls)}catch(ui){gu(ht,ui),Sn(ht,ui)}}},cancel:function(){WA(ht)}},{highWaterMark:0});ar.allReady=Xe,J(ar)},function(ar){Xe.catch(function(){}),le(ar)},ke);if(Q&&Q.signal){var Qt=Q.signal,Sr=function(){WA(ht,Qt.reason),Qt.removeEventListener("abort",Sr)};Qt.addEventListener("abort",Sr)}UA(ht)})},dP.version="18.3.1",dP}var qw,SJ;qw=v9e(),SJ=C9e();qw.version;qw.renderToString;qw.renderToStaticMarkup;qw.renderToNodeStream;qw.renderToStaticNodeStream;SJ.renderToReadableStream;var xJ={exports:{}},Za={},qO={exports:{}},e9={};/**
764
764
  * @license React
765
765
  * scheduler.production.min.js
766
766
  *
@@ -768,7 +768,7 @@ function print() { __p += __j.call(arguments, '') }
768
768
  *
769
769
  * This source code is licensed under the MIT license found in the
770
770
  * LICENSE file in the root directory of this source tree.
771
- */var XO;function c9e(){return XO||(XO=1,function(e){function t(X,re){var ae=X.length;X.push(re);e:for(;0<ae;){var $=ae-1>>>1,se=X[$];if(0<n(se,re))X[$]=re,X[ae]=se,ae=$;else break e}}function r(X){return X.length===0?null:X[0]}function s(X){if(X.length===0)return null;var re=X[0],ae=X.pop();if(ae!==re){X[0]=ae;e:for(var $=0,se=X.length,De=se>>>1;$<De;){var Oe=2*($+1)-1,Be=X[Oe],Ve=Oe+1,ze=X[Ve];if(0>n(Be,ae))Ve<se&&0>n(ze,Be)?(X[$]=ze,X[Ve]=ae,$=Ve):(X[$]=Be,X[Oe]=ae,$=Oe);else if(Ve<se&&0>n(ze,ae))X[$]=ze,X[Ve]=ae,$=Ve;else break e}}return re}function n(X,re){var ae=X.sortIndex-re.sortIndex;return ae!==0?ae:X.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],u=1,d=null,g=3,A=!1,w=!1,v=!1,b=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function F(X){for(var re=r(c);re!==null;){if(re.callback===null)s(c);else if(re.startTime<=X)s(c),re.sortIndex=re.expirationTime,t(l,re);else break;re=r(c)}}function T(X){if(v=!1,F(X),!w)if(r(l)!==null)w=!0,q(D);else{var re=r(c);re!==null&&pe(T,re.startTime-X)}}function D(X,re){w=!1,v&&(v=!1,S(z),z=-1),A=!0;var ae=g;try{for(F(re),d=r(l);d!==null&&(!(d.expirationTime>re)||X&&!_());){var $=d.callback;if(typeof $=="function"){d.callback=null,g=d.priorityLevel;var se=$(d.expirationTime<=re);re=e.unstable_now(),typeof se=="function"?d.callback=se:d===r(l)&&s(l),F(re)}else s(l);d=r(l)}if(d!==null)var De=!0;else{var Oe=r(c);Oe!==null&&pe(T,Oe.startTime-re),De=!1}return De}finally{d=null,g=ae,A=!1}}var B=!1,k=null,z=-1,O=5,j=-1;function _(){return!(e.unstable_now()-j<O)}function G(){if(k!==null){var X=e.unstable_now();j=X;var re=!0;try{re=k(!0,X)}finally{re?N():(B=!1,k=null)}}else B=!1}var N;if(typeof P=="function")N=function(){P(G)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,V=W.port2;W.port1.onmessage=G,N=function(){V.postMessage(null)}}else N=function(){b(G,0)};function q(X){k=X,B||(B=!0,N())}function pe(X,re){z=b(function(){X(e.unstable_now())},re)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(X){X.callback=null},e.unstable_continueExecution=function(){w||A||(w=!0,q(D))},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(X){switch(g){case 1:case 2:case 3:var re=3;break;default:re=g}var ae=g;g=re;try{return X()}finally{g=ae}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(X,re){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var ae=g;g=X;try{return re()}finally{g=ae}},e.unstable_scheduleCallback=function(X,re,ae){var $=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?$+ae:$):ae=$,X){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=ae+se,X={id:u++,callback:re,priorityLevel:X,startTime:ae,expirationTime:se,sortIndex:-1},ae>$?(X.sortIndex=ae,t(c,X),r(l)===null&&X===r(c)&&(v?(S(z),z=-1):v=!0,pe(T,ae-$))):(X.sortIndex=se,t(l,X),w||A||(w=!0,q(D))),X},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(X){var re=g;return function(){var ae=g;g=re;try{return X.apply(this,arguments)}finally{g=ae}}}}(ZO)),ZO}var $O;function u9e(){return $O||($O=1,YO.exports=c9e()),YO.exports}/**
771
+ */var t9;function w9e(){return t9||(t9=1,function(e){function t(X,re){var ae=X.length;X.push(re);e:for(;0<ae;){var $=ae-1>>>1,se=X[$];if(0<n(se,re))X[$]=re,X[ae]=se,ae=$;else break e}}function r(X){return X.length===0?null:X[0]}function s(X){if(X.length===0)return null;var re=X[0],ae=X.pop();if(ae!==re){X[0]=ae;e:for(var $=0,se=X.length,De=se>>>1;$<De;){var Oe=2*($+1)-1,Be=X[Oe],Ve=Oe+1,ze=X[Ve];if(0>n(Be,ae))Ve<se&&0>n(ze,Be)?(X[$]=ze,X[Ve]=ae,$=Ve):(X[$]=Be,X[Oe]=ae,$=Oe);else if(Ve<se&&0>n(ze,ae))X[$]=ze,X[Ve]=ae,$=Ve;else break e}}return re}function n(X,re){var ae=X.sortIndex-re.sortIndex;return ae!==0?ae:X.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],u=1,d=null,g=3,A=!1,w=!1,v=!1,b=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function F(X){for(var re=r(c);re!==null;){if(re.callback===null)s(c);else if(re.startTime<=X)s(c),re.sortIndex=re.expirationTime,t(l,re);else break;re=r(c)}}function T(X){if(v=!1,F(X),!w)if(r(l)!==null)w=!0,q(D);else{var re=r(c);re!==null&&pe(T,re.startTime-X)}}function D(X,re){w=!1,v&&(v=!1,S(z),z=-1),A=!0;var ae=g;try{for(F(re),d=r(l);d!==null&&(!(d.expirationTime>re)||X&&!_());){var $=d.callback;if(typeof $=="function"){d.callback=null,g=d.priorityLevel;var se=$(d.expirationTime<=re);re=e.unstable_now(),typeof se=="function"?d.callback=se:d===r(l)&&s(l),F(re)}else s(l);d=r(l)}if(d!==null)var De=!0;else{var Oe=r(c);Oe!==null&&pe(T,Oe.startTime-re),De=!1}return De}finally{d=null,g=ae,A=!1}}var B=!1,k=null,z=-1,O=5,j=-1;function _(){return!(e.unstable_now()-j<O)}function G(){if(k!==null){var X=e.unstable_now();j=X;var re=!0;try{re=k(!0,X)}finally{re?N():(B=!1,k=null)}}else B=!1}var N;if(typeof P=="function")N=function(){P(G)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,V=W.port2;W.port1.onmessage=G,N=function(){V.postMessage(null)}}else N=function(){b(G,0)};function q(X){k=X,B||(B=!0,N())}function pe(X,re){z=b(function(){X(e.unstable_now())},re)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(X){X.callback=null},e.unstable_continueExecution=function(){w||A||(w=!0,q(D))},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(X){switch(g){case 1:case 2:case 3:var re=3;break;default:re=g}var ae=g;g=re;try{return X()}finally{g=ae}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(X,re){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var ae=g;g=X;try{return re()}finally{g=ae}},e.unstable_scheduleCallback=function(X,re,ae){var $=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?$+ae:$):ae=$,X){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=ae+se,X={id:u++,callback:re,priorityLevel:X,startTime:ae,expirationTime:se,sortIndex:-1},ae>$?(X.sortIndex=ae,t(c,X),r(l)===null&&X===r(c)&&(v?(S(z),z=-1):v=!0,pe(T,ae-$))):(X.sortIndex=se,t(l,X),w||A||(w=!0,q(D))),X},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(X){var re=g;return function(){var ae=g;g=re;try{return X.apply(this,arguments)}finally{g=ae}}}}(e9)),e9}var r9;function y9e(){return r9||(r9=1,qO.exports=w9e()),qO.exports}/**
772
772
  * @license React
773
773
  * react-dom.production.min.js
774
774
  *
@@ -776,14 +776,14 @@ function print() { __p += __j.call(arguments, '') }
776
776
  *
777
777
  * This source code is licensed under the MIT license found in the
778
778
  * LICENSE file in the root directory of this source tree.
779
- */var JO;function d9e(){if(JO)return Za;JO=1;var e=qu,t=u9e();function r(h){for(var p="https://reactjs.org/docs/error-decoder.html?invariant="+h,C=1;C<arguments.length;C++)p+="&args[]="+encodeURIComponent(arguments[C]);return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,n={};function i(h,p){o(h,p),o(h+"Capture",p)}function o(h,p){for(n[h]=p,h=0;h<p.length;h++)s.add(p[h])}var a=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,c=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,u={},d={};function g(h){return l.call(d,h)?!0:l.call(u,h)?!1:c.test(h)?d[h]=!0:(u[h]=!0,!1)}function A(h,p,C,x){if(C!==null&&C.type===0)return!1;switch(typeof p){case"function":case"symbol":return!0;case"boolean":return x?!1:C!==null?!C.acceptsBooleans:(h=h.toLowerCase().slice(0,5),h!=="data-"&&h!=="aria-");default:return!1}}function w(h,p,C,x){if(p===null||typeof p>"u"||A(h,p,C,x))return!0;if(x)return!1;if(C!==null)switch(C.type){case 3:return!p;case 4:return p===!1;case 5:return isNaN(p);case 6:return isNaN(p)||1>p}return!1}function v(h,p,C,x,R,L,Z){this.acceptsBooleans=p===2||p===3||p===4,this.attributeName=x,this.attributeNamespace=R,this.mustUseProperty=C,this.propertyName=h,this.type=p,this.sanitizeURL=L,this.removeEmptyString=Z}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(h){b[h]=new v(h,0,!1,h,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(h){var p=h[0];b[p]=new v(p,1,!1,h[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(h){b[h]=new v(h,2,!1,h.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(h){b[h]=new v(h,2,!1,h,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(h){b[h]=new v(h,3,!1,h.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(h){b[h]=new v(h,3,!0,h,null,!1,!1)}),["capture","download"].forEach(function(h){b[h]=new v(h,4,!1,h,null,!1,!1)}),["cols","rows","size","span"].forEach(function(h){b[h]=new v(h,6,!1,h,null,!1,!1)}),["rowSpan","start"].forEach(function(h){b[h]=new v(h,5,!1,h.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function P(h){return h[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(h){var p=h.replace(S,P);b[p]=new v(p,1,!1,h,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(h){var p=h.replace(S,P);b[p]=new v(p,1,!1,h,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(h){var p=h.replace(S,P);b[p]=new v(p,1,!1,h,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(h){b[h]=new v(h,1,!1,h.toLowerCase(),null,!1,!1)}),b.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(h){b[h]=new v(h,1,!1,h.toLowerCase(),null,!0,!0)});function F(h,p,C,x){var R=b.hasOwnProperty(p)?b[p]:null;(R!==null?R.type!==0:x||!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N")&&(w(p,C,R,x)&&(C=null),x||R===null?g(p)&&(C===null?h.removeAttribute(p):h.setAttribute(p,""+C)):R.mustUseProperty?h[R.propertyName]=C===null?R.type===3?!1:"":C:(p=R.attributeName,x=R.attributeNamespace,C===null?h.removeAttribute(p):(R=R.type,C=R===3||R===4&&C===!0?"":""+C,x?h.setAttributeNS(x,p,C):h.setAttribute(p,C))))}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,D=Symbol.for("react.element"),B=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),_=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),pe=Symbol.for("react.offscreen"),X=Symbol.iterator;function re(h){return h===null||typeof h!="object"?null:(h=X&&h[X]||h["@@iterator"],typeof h=="function"?h:null)}var ae=Object.assign,$;function se(h){if($===void 0)try{throw Error()}catch(C){var p=C.stack.trim().match(/\n( *(at )?)/);$=p&&p[1]||""}return`
779
+ */var s9;function b9e(){if(s9)return Za;s9=1;var e=qu,t=y9e();function r(h){for(var p="https://reactjs.org/docs/error-decoder.html?invariant="+h,C=1;C<arguments.length;C++)p+="&args[]="+encodeURIComponent(arguments[C]);return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,n={};function i(h,p){o(h,p),o(h+"Capture",p)}function o(h,p){for(n[h]=p,h=0;h<p.length;h++)s.add(p[h])}var a=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,c=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,u={},d={};function g(h){return l.call(d,h)?!0:l.call(u,h)?!1:c.test(h)?d[h]=!0:(u[h]=!0,!1)}function A(h,p,C,x){if(C!==null&&C.type===0)return!1;switch(typeof p){case"function":case"symbol":return!0;case"boolean":return x?!1:C!==null?!C.acceptsBooleans:(h=h.toLowerCase().slice(0,5),h!=="data-"&&h!=="aria-");default:return!1}}function w(h,p,C,x){if(p===null||typeof p>"u"||A(h,p,C,x))return!0;if(x)return!1;if(C!==null)switch(C.type){case 3:return!p;case 4:return p===!1;case 5:return isNaN(p);case 6:return isNaN(p)||1>p}return!1}function v(h,p,C,x,R,L,Z){this.acceptsBooleans=p===2||p===3||p===4,this.attributeName=x,this.attributeNamespace=R,this.mustUseProperty=C,this.propertyName=h,this.type=p,this.sanitizeURL=L,this.removeEmptyString=Z}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(h){b[h]=new v(h,0,!1,h,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(h){var p=h[0];b[p]=new v(p,1,!1,h[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(h){b[h]=new v(h,2,!1,h.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(h){b[h]=new v(h,2,!1,h,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(h){b[h]=new v(h,3,!1,h.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(h){b[h]=new v(h,3,!0,h,null,!1,!1)}),["capture","download"].forEach(function(h){b[h]=new v(h,4,!1,h,null,!1,!1)}),["cols","rows","size","span"].forEach(function(h){b[h]=new v(h,6,!1,h,null,!1,!1)}),["rowSpan","start"].forEach(function(h){b[h]=new v(h,5,!1,h.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function P(h){return h[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(h){var p=h.replace(S,P);b[p]=new v(p,1,!1,h,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(h){var p=h.replace(S,P);b[p]=new v(p,1,!1,h,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(h){var p=h.replace(S,P);b[p]=new v(p,1,!1,h,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(h){b[h]=new v(h,1,!1,h.toLowerCase(),null,!1,!1)}),b.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(h){b[h]=new v(h,1,!1,h.toLowerCase(),null,!0,!0)});function F(h,p,C,x){var R=b.hasOwnProperty(p)?b[p]:null;(R!==null?R.type!==0:x||!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N")&&(w(p,C,R,x)&&(C=null),x||R===null?g(p)&&(C===null?h.removeAttribute(p):h.setAttribute(p,""+C)):R.mustUseProperty?h[R.propertyName]=C===null?R.type===3?!1:"":C:(p=R.attributeName,x=R.attributeNamespace,C===null?h.removeAttribute(p):(R=R.type,C=R===3||R===4&&C===!0?"":""+C,x?h.setAttributeNS(x,p,C):h.setAttribute(p,C))))}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,D=Symbol.for("react.element"),B=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),_=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),pe=Symbol.for("react.offscreen"),X=Symbol.iterator;function re(h){return h===null||typeof h!="object"?null:(h=X&&h[X]||h["@@iterator"],typeof h=="function"?h:null)}var ae=Object.assign,$;function se(h){if($===void 0)try{throw Error()}catch(C){var p=C.stack.trim().match(/\n( *(at )?)/);$=p&&p[1]||""}return`
780
780
  `+$+h}var De=!1;function Oe(h,p){if(!h||De)return"";De=!0;var C=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(p)if(p=function(){throw Error()},Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(Ge){var x=Ge}Reflect.construct(h,[],p)}else{try{p.call()}catch(Ge){x=Ge}h.call(p.prototype)}else{try{throw Error()}catch(Ge){x=Ge}h()}}catch(Ge){if(Ge&&x&&typeof Ge.stack=="string"){for(var R=Ge.stack.split(`
781
781
  `),L=x.stack.split(`
782
782
  `),Z=R.length-1,he=L.length-1;1<=Z&&0<=he&&R[Z]!==L[he];)he--;for(;1<=Z&&0<=he;Z--,he--)if(R[Z]!==L[he]){if(Z!==1||he!==1)do if(Z--,he--,0>he||R[Z]!==L[he]){var Ae=`
783
783
  `+R[Z].replace(" at new "," at ");return h.displayName&&Ae.includes("<anonymous>")&&(Ae=Ae.replace("<anonymous>",h.displayName)),Ae}while(1<=Z&&0<=he);break}}}finally{De=!1,Error.prepareStackTrace=C}return(h=h?h.displayName||h.name:"")?se(h):""}function Be(h){switch(h.tag){case 5:return se(h.type);case 16:return se("Lazy");case 13:return se("Suspense");case 19:return se("SuspenseList");case 0:case 2:case 15:return h=Oe(h.type,!1),h;case 11:return h=Oe(h.type.render,!1),h;case 1:return h=Oe(h.type,!0),h;default:return""}}function Ve(h){if(h==null)return null;if(typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case k:return"Fragment";case B:return"Portal";case O:return"Profiler";case z:return"StrictMode";case N:return"Suspense";case W:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case _:return(h.displayName||"Context")+".Consumer";case j:return(h._context.displayName||"Context")+".Provider";case G:var p=h.render;return h=h.displayName,h||(h=p.displayName||p.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case V:return p=h.displayName||null,p!==null?p:Ve(h.type)||"Memo";case q:p=h._payload,h=h._init;try{return Ve(h(p))}catch{}}return null}function ze(h){var p=h.type;switch(h.tag){case 24:return"Cache";case 9:return(p.displayName||"Context")+".Consumer";case 10:return(p._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return h=p.render,h=h.displayName||h.name||"",p.displayName||(h!==""?"ForwardRef("+h+")":"ForwardRef");case 7:return"Fragment";case 5:return p;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ve(p);case 8:return p===z?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p}return null}function nt(h){switch(typeof h){case"boolean":case"number":case"string":case"undefined":return h;case"object":return h;default:return""}}function xe(h){var p=h.type;return(h=h.nodeName)&&h.toLowerCase()==="input"&&(p==="checkbox"||p==="radio")}function He(h){var p=xe(h)?"checked":"value",C=Object.getOwnPropertyDescriptor(h.constructor.prototype,p),x=""+h[p];if(!h.hasOwnProperty(p)&&typeof C<"u"&&typeof C.get=="function"&&typeof C.set=="function"){var R=C.get,L=C.set;return Object.defineProperty(h,p,{configurable:!0,get:function(){return R.call(this)},set:function(Z){x=""+Z,L.call(this,Z)}}),Object.defineProperty(h,p,{enumerable:C.enumerable}),{getValue:function(){return x},setValue:function(Z){x=""+Z},stopTracking:function(){h._valueTracker=null,delete h[p]}}}}function wt(h){h._valueTracker||(h._valueTracker=He(h))}function _e(h){if(!h)return!1;var p=h._valueTracker;if(!p)return!0;var C=p.getValue(),x="";return h&&(x=xe(h)?h.checked?"true":"false":h.value),h=x,h!==C?(p.setValue(h),!0):!1}function ne(h){if(h=h||(typeof document<"u"?document:void 0),typeof h>"u")return null;try{return h.activeElement||h.body}catch{return h.body}}function oe(h,p){var C=p.checked;return ae({},p,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:C??h._wrapperState.initialChecked})}function Se(h,p){var C=p.defaultValue==null?"":p.defaultValue,x=p.checked!=null?p.checked:p.defaultChecked;C=nt(p.value!=null?p.value:C),h._wrapperState={initialChecked:x,initialValue:C,controlled:p.type==="checkbox"||p.type==="radio"?p.checked!=null:p.value!=null}}function $e(h,p){p=p.checked,p!=null&&F(h,"checked",p,!1)}function Ke(h,p){$e(h,p);var C=nt(p.value),x=p.type;if(C!=null)x==="number"?(C===0&&h.value===""||h.value!=C)&&(h.value=""+C):h.value!==""+C&&(h.value=""+C);else if(x==="submit"||x==="reset"){h.removeAttribute("value");return}p.hasOwnProperty("value")?Ct(h,p.type,C):p.hasOwnProperty("defaultValue")&&Ct(h,p.type,nt(p.defaultValue)),p.checked==null&&p.defaultChecked!=null&&(h.defaultChecked=!!p.defaultChecked)}function rt(h,p,C){if(p.hasOwnProperty("value")||p.hasOwnProperty("defaultValue")){var x=p.type;if(!(x!=="submit"&&x!=="reset"||p.value!==void 0&&p.value!==null))return;p=""+h._wrapperState.initialValue,C||p===h.value||(h.value=p),h.defaultValue=p}C=h.name,C!==""&&(h.name=""),h.defaultChecked=!!h._wrapperState.initialChecked,C!==""&&(h.name=C)}function Ct(h,p,C){(p!=="number"||ne(h.ownerDocument)!==h)&&(C==null?h.defaultValue=""+h._wrapperState.initialValue:h.defaultValue!==""+C&&(h.defaultValue=""+C))}var dt=Array.isArray;function ot(h,p,C,x){if(h=h.options,p){p={};for(var R=0;R<C.length;R++)p["$"+C[R]]=!0;for(C=0;C<h.length;C++)R=p.hasOwnProperty("$"+h[C].value),h[C].selected!==R&&(h[C].selected=R),R&&x&&(h[C].defaultSelected=!0)}else{for(C=""+nt(C),p=null,R=0;R<h.length;R++){if(h[R].value===C){h[R].selected=!0,x&&(h[R].defaultSelected=!0);return}p!==null||h[R].disabled||(p=h[R])}p!==null&&(p.selected=!0)}}function tt(h,p){if(p.dangerouslySetInnerHTML!=null)throw Error(r(91));return ae({},p,{value:void 0,defaultValue:void 0,children:""+h._wrapperState.initialValue})}function Rt(h,p){var C=p.value;if(C==null){if(C=p.children,p=p.defaultValue,C!=null){if(p!=null)throw Error(r(92));if(dt(C)){if(1<C.length)throw Error(r(93));C=C[0]}p=C}p==null&&(p=""),C=p}h._wrapperState={initialValue:nt(C)}}function xt(h,p){var C=nt(p.value),x=nt(p.defaultValue);C!=null&&(C=""+C,C!==h.value&&(h.value=C),p.defaultValue==null&&h.defaultValue!==C&&(h.defaultValue=C)),x!=null&&(h.defaultValue=""+x)}function Lt(h){var p=h.textContent;p===h._wrapperState.initialValue&&p!==""&&p!==null&&(h.value=p)}function sr(h){switch(h){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ar(h,p){return h==null||h==="http://www.w3.org/1999/xhtml"?sr(p):h==="http://www.w3.org/2000/svg"&&p==="foreignObject"?"http://www.w3.org/1999/xhtml":h}var Mr,Qr=function(h){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(p,C,x,R){MSApp.execUnsafeLocalFunction(function(){return h(p,C,x,R)})}:h}(function(h,p){if(h.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in h)h.innerHTML=p;else{for(Mr=Mr||document.createElement("div"),Mr.innerHTML="<svg>"+p.valueOf().toString()+"</svg>",p=Mr.firstChild;h.firstChild;)h.removeChild(h.firstChild);for(;p.firstChild;)h.appendChild(p.firstChild)}});function Us(h,p){if(p){var C=h.firstChild;if(C&&C===h.lastChild&&C.nodeType===3){C.nodeValue=p;return}}h.textContent=p}var ks={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bn=["Webkit","ms","Moz","O"];Object.keys(ks).forEach(function(h){bn.forEach(function(p){p=p+h.charAt(0).toUpperCase()+h.substring(1),ks[p]=ks[h]})});function Xs(h,p,C){return p==null||typeof p=="boolean"||p===""?"":C||typeof p!="number"||p===0||ks.hasOwnProperty(h)&&ks[h]?(""+p).trim():p+"px"}function go(h,p){h=h.style;for(var C in p)if(p.hasOwnProperty(C)){var x=C.indexOf("--")===0,R=Xs(C,p[C],x);C==="float"&&(C="cssFloat"),x?h.setProperty(C,R):h[C]=R}}var $l=ae({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function un(h,p){if(p){if($l[h]&&(p.children!=null||p.dangerouslySetInnerHTML!=null))throw Error(r(137,h));if(p.dangerouslySetInnerHTML!=null){if(p.children!=null)throw Error(r(60));if(typeof p.dangerouslySetInnerHTML!="object"||!("__html"in p.dangerouslySetInnerHTML))throw Error(r(61))}if(p.style!=null&&typeof p.style!="object")throw Error(r(62))}}function In(h,p){if(h.indexOf("-")===-1)return typeof p.is=="string";switch(h){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Jl=null;function Si(h){return h=h.target||h.srcElement||window,h.correspondingUseElement&&(h=h.correspondingUseElement),h.nodeType===3?h.parentNode:h}var nu=null,fo=null,Jr=null;function ql(h){if(h=Pi(h)){if(typeof nu!="function")throw Error(r(280));var p=h.stateNode;p&&(p=vC(p),nu(h.stateNode,h.type,p))}}function iu(h){fo?Jr?Jr.push(h):Jr=[h]:fo=h}function ec(){if(fo){var h=fo,p=Jr;if(Jr=fo=null,ql(h),p)for(h=0;h<p.length;h++)ql(p[h])}}function Qo(h,p){return h(p)}function tc(){}var Uo=!1;function sp(h,p,C){if(Uo)return h(p,C);Uo=!0;try{return Qo(h,p,C)}finally{Uo=!1,(fo!==null||Jr!==null)&&(tc(),ec())}}function Al(h,p){var C=h.stateNode;if(C===null)return null;var x=vC(C);if(x===null)return null;C=x[p];e:switch(p){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(x=!x.disabled)||(h=h.type,x=!(h==="button"||h==="input"||h==="select"||h==="textarea")),h=!x;break e;default:h=!1}if(h)return null;if(C&&typeof C!="function")throw Error(r(231,p,typeof C));return C}var ml=!1;if(a)try{var rc={};Object.defineProperty(rc,"passive",{get:function(){ml=!0}}),window.addEventListener("test",rc,rc),window.removeEventListener("test",rc,rc)}catch{ml=!1}function bd(h,p,C,x,R,L,Z,he,Ae){var Ge=Array.prototype.slice.call(arguments,3);try{p.apply(C,Ge)}catch(at){this.onError(at)}}var sc=!1,Sd=null,xd=!1,nc=null,Bg={onError:function(h){sc=!0,Sd=h}};function Ed(h,p,C,x,R,L,Z,he,Ae){sc=!1,Sd=null,bd.apply(Bg,arguments)}function np(h,p,C,x,R,L,Z,he,Ae){if(Ed.apply(this,arguments),sc){if(sc){var Ge=Sd;sc=!1,Sd=null}else throw Error(r(198));xd||(xd=!0,nc=Ge)}}function vl(h){var p=h,C=h;if(h.alternate)for(;p.return;)p=p.return;else{h=p;do p=h,p.flags&4098&&(C=p.return),h=p.return;while(h)}return p.tag===3?C:null}function Cl(h){if(h.tag===13){var p=h.memoizedState;if(p===null&&(h=h.alternate,h!==null&&(p=h.memoizedState)),p!==null)return p.dehydrated}return null}function Lg(h){if(vl(h)!==h)throw Error(r(188))}function ip(h){var p=h.alternate;if(!p){if(p=vl(h),p===null)throw Error(r(188));return p!==h?null:h}for(var C=h,x=p;;){var R=C.return;if(R===null)break;var L=R.alternate;if(L===null){if(x=R.return,x!==null){C=x;continue}break}if(R.child===L.child){for(L=R.child;L;){if(L===C)return Lg(R),h;if(L===x)return Lg(R),p;L=L.sibling}throw Error(r(188))}if(C.return!==x.return)C=R,x=L;else{for(var Z=!1,he=R.child;he;){if(he===C){Z=!0,C=R,x=L;break}if(he===x){Z=!0,x=R,C=L;break}he=he.sibling}if(!Z){for(he=L.child;he;){if(he===C){Z=!0,C=L,x=R;break}if(he===x){Z=!0,x=L,C=R;break}he=he.sibling}if(!Z)throw Error(r(189))}}if(C.alternate!==x)throw Error(r(190))}if(C.tag!==3)throw Error(r(188));return C.stateNode.current===C?h:p}function ou(h){return h=ip(h),h!==null?ic(h):null}function ic(h){if(h.tag===5||h.tag===6)return h;for(h=h.child;h!==null;){var p=ic(h);if(p!==null)return p;h=h.sibling}return null}var au=t.unstable_scheduleCallback,op=t.unstable_cancelCallback,lu=t.unstable_shouldYield,Hg=t.unstable_requestPaint,ys=t.unstable_now,ai=t.unstable_getCurrentPriorityLevel,Pd=t.unstable_ImmediatePriority,Fd=t.unstable_UserBlockingPriority,wl=t.unstable_NormalPriority,ap=t.unstable_LowPriority,Pa=t.unstable_IdlePriority,Wo=null,Vi=null;function cu(h){if(Vi&&typeof Vi.onCommitFiberRoot=="function")try{Vi.onCommitFiberRoot(Wo,h,void 0,(h.current.flags&128)===128)}catch{}}var Vn=Math.clz32?Math.clz32:Dd,Rd=Math.log,Td=Math.LN2;function Dd(h){return h>>>=0,h===0?32:31-(Rd(h)/Td|0)|0}var jo=64,uu=4194304;function yl(h){switch(h&-h){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return h&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return h&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return h}}function Ko(h,p){var C=h.pendingLanes;if(C===0)return 0;var x=0,R=h.suspendedLanes,L=h.pingedLanes,Z=C&268435455;if(Z!==0){var he=Z&~R;he!==0?x=yl(he):(L&=Z,L!==0&&(x=yl(L)))}else Z=C&~R,Z!==0?x=yl(Z):L!==0&&(x=yl(L));if(x===0)return 0;if(p!==0&&p!==x&&!(p&R)&&(R=x&-x,L=p&-p,R>=L||R===16&&(L&4194240)!==0))return p;if(x&4&&(x|=C&16),p=h.entangledLanes,p!==0)for(h=h.entanglements,p&=x;0<p;)C=31-Vn(p),R=1<<C,x|=h[C],p&=~R;return x}function M(h,p){switch(h){case 1:case 2:case 4:return p+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return p+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function U(h,p){for(var C=h.suspendedLanes,x=h.pingedLanes,R=h.expirationTimes,L=h.pendingLanes;0<L;){var Z=31-Vn(L),he=1<<Z,Ae=R[Z];Ae===-1?(!(he&C)||he&x)&&(R[Z]=M(he,p)):Ae<=p&&(h.expiredLanes|=he),L&=~he}}function te(h){return h=h.pendingLanes&-1073741825,h!==0?h:h&1073741824?1073741824:0}function ce(){var h=jo;return jo<<=1,!(jo&4194240)&&(jo=64),h}function Ie(h){for(var p=[],C=0;31>C;C++)p.push(h);return p}function Fe(h,p,C){h.pendingLanes|=p,p!==536870912&&(h.suspendedLanes=0,h.pingedLanes=0),h=h.eventTimes,p=31-Vn(p),h[p]=C}function Ye(h,p){var C=h.pendingLanes&~p;h.pendingLanes=p,h.suspendedLanes=0,h.pingedLanes=0,h.expiredLanes&=p,h.mutableReadLanes&=p,h.entangledLanes&=p,p=h.entanglements;var x=h.eventTimes;for(h=h.expirationTimes;0<C;){var R=31-Vn(C),L=1<<R;p[R]=0,x[R]=-1,h[R]=-1,C&=~L}}function gt(h,p){var C=h.entangledLanes|=p;for(h=h.entanglements;C;){var x=31-Vn(C),R=1<<x;R&p|h[x]&p&&(h[x]|=p),C&=~R}}var bt=0;function Xt(h){return h&=-h,1<h?4<h?h&268435455?16:536870912:4:1}var wr,Rs,Ao,zi,li,Fa=!1,Qi=[],mo=null,xi=null,Yo=null,Ui=new Map,oc=new Map,ac=[],Cy="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function rC(h,p){switch(h){case"focusin":case"focusout":mo=null;break;case"dragenter":case"dragleave":xi=null;break;case"mouseover":case"mouseout":Yo=null;break;case"pointerover":case"pointerout":Ui.delete(p.pointerId);break;case"gotpointercapture":case"lostpointercapture":oc.delete(p.pointerId)}}function du(h,p,C,x,R,L){return h===null||h.nativeEvent!==L?(h={blockedOn:p,domEventName:C,eventSystemFlags:x,nativeEvent:L,targetContainers:[R]},p!==null&&(p=Pi(p),p!==null&&Rs(p)),h):(h.eventSystemFlags|=x,p=h.targetContainers,R!==null&&p.indexOf(R)===-1&&p.push(R),h)}function wy(h,p,C,x,R){switch(p){case"focusin":return mo=du(mo,h,p,C,x,R),!0;case"dragenter":return xi=du(xi,h,p,C,x,R),!0;case"mouseover":return Yo=du(Yo,h,p,C,x,R),!0;case"pointerover":var L=R.pointerId;return Ui.set(L,du(Ui.get(L)||null,h,p,C,x,R)),!0;case"gotpointercapture":return L=R.pointerId,oc.set(L,du(oc.get(L)||null,h,p,C,x,R)),!0}return!1}function Ra(h){var p=hc(h.target);if(p!==null){var C=vl(p);if(C!==null){if(p=C.tag,p===13){if(p=Cl(C),p!==null){h.blockedOn=p,li(h.priority,function(){Ao(C)});return}}else if(p===3&&C.stateNode.current.memoizedState.isDehydrated){h.blockedOn=C.tag===3?C.stateNode.containerInfo:null;return}}}h.blockedOn=null}function Md(h){if(h.blockedOn!==null)return!1;for(var p=h.targetContainers;0<p.length;){var C=kd(h.domEventName,h.eventSystemFlags,p[0],h.nativeEvent);if(C===null){C=h.nativeEvent;var x=new C.constructor(C.type,C);Jl=x,C.target.dispatchEvent(x),Jl=null}else return p=Pi(C),p!==null&&Rs(p),h.blockedOn=C,!1;p.shift()}return!0}function lp(h,p,C){Md(h)&&C.delete(p)}function Bs(){Fa=!1,mo!==null&&Md(mo)&&(mo=null),xi!==null&&Md(xi)&&(xi=null),Yo!==null&&Md(Yo)&&(Yo=null),Ui.forEach(lp),oc.forEach(lp)}function es(h,p){h.blockedOn===p&&(h.blockedOn=null,Fa||(Fa=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bs)))}function ts(h){function p(R){return es(R,h)}if(0<Qi.length){es(Qi[0],h);for(var C=1;C<Qi.length;C++){var x=Qi[C];x.blockedOn===h&&(x.blockedOn=null)}}for(mo!==null&&es(mo,h),xi!==null&&es(xi,h),Yo!==null&&es(Yo,h),Ui.forEach(p),oc.forEach(p),C=0;C<ac.length;C++)x=ac[C],x.blockedOn===h&&(x.blockedOn=null);for(;0<ac.length&&(C=ac[0],C.blockedOn===null);)Ra(C),C.blockedOn===null&&ac.shift()}var Ta=T.ReactCurrentBatchConfig,Zo=!0;function Gg(h,p,C,x){var R=bt,L=Ta.transition;Ta.transition=null;try{bt=1,Og(h,p,C,x)}finally{bt=R,Ta.transition=L}}function hu(h,p,C,x){var R=bt,L=Ta.transition;Ta.transition=null;try{bt=4,Og(h,p,C,x)}finally{bt=R,Ta.transition=L}}function Og(h,p,C,x){if(Zo){var R=kd(h,p,C,x);if(R===null)Ey(h,p,x,Id,C),rC(h,x);else if(wy(R,h,p,C,x))x.stopPropagation();else if(rC(h,x),p&4&&-1<Cy.indexOf(h)){for(;R!==null;){var L=Pi(R);if(L!==null&&wr(L),L=kd(h,p,C,x),L===null&&Ey(h,p,x,Id,C),L===R)break;R=L}R!==null&&x.stopPropagation()}else Ey(h,p,x,null,C)}}var Id=null;function kd(h,p,C,x){if(Id=null,h=Si(x),h=hc(h),h!==null)if(p=vl(h),p===null)h=null;else if(C=p.tag,C===13){if(h=Cl(p),h!==null)return h;h=null}else if(C===3){if(p.stateNode.current.memoizedState.isDehydrated)return p.tag===3?p.stateNode.containerInfo:null;h=null}else p!==h&&(h=null);return Id=h,null}function VA(h){switch(h){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ai()){case Pd:return 1;case Fd:return 4;case wl:case ap:return 16;case Pa:return 536870912;default:return 16}default:return 16}}var zs=null,Bd=null,Da=null;function zA(){if(Da)return Da;var h,p=Bd,C=p.length,x,R="value"in zs?zs.value:zs.textContent,L=R.length;for(h=0;h<C&&p[h]===R[h];h++);var Z=C-h;for(x=1;x<=Z&&p[C-x]===R[L-x];x++);return Da=R.slice(h,1<x?1-x:void 0)}function bl(h){var p=h.keyCode;return"charCode"in h?(h=h.charCode,h===0&&p===13&&(h=13)):h=p,h===10&&(h=13),32<=h||h===13?h:0}function Jn(){return!0}function Ld(){return!1}function qn(h){function p(C,x,R,L,Z){this._reactName=C,this._targetInst=R,this.type=x,this.nativeEvent=L,this.target=Z,this.currentTarget=null;for(var he in h)h.hasOwnProperty(he)&&(C=h[he],this[he]=C?C(L):L[he]);return this.isDefaultPrevented=(L.defaultPrevented!=null?L.defaultPrevented:L.returnValue===!1)?Jn:Ld,this.isPropagationStopped=Ld,this}return ae(p.prototype,{preventDefault:function(){this.defaultPrevented=!0;var C=this.nativeEvent;C&&(C.preventDefault?C.preventDefault():typeof C.returnValue!="unknown"&&(C.returnValue=!1),this.isDefaultPrevented=Jn)},stopPropagation:function(){var C=this.nativeEvent;C&&(C.stopPropagation?C.stopPropagation():typeof C.cancelBubble!="unknown"&&(C.cancelBubble=!0),this.isPropagationStopped=Jn)},persist:function(){},isPersistent:Jn}),p}var pu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(h){return h.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lc=qn(pu),Hd=ae({},pu,{view:0,detail:0}),Ng=qn(Hd),kn,gu,Sn,cp=ae({},Hd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zg,button:0,buttons:0,relatedTarget:function(h){return h.relatedTarget===void 0?h.fromElement===h.srcElement?h.toElement:h.fromElement:h.relatedTarget},movementX:function(h){return"movementX"in h?h.movementX:(h!==Sn&&(Sn&&h.type==="mousemove"?(kn=h.screenX-Sn.screenX,gu=h.screenY-Sn.screenY):gu=kn=0,Sn=h),kn)},movementY:function(h){return"movementY"in h?h.movementY:gu}}),_g=qn(cp),Sl=ae({},cp,{dataTransfer:0}),Gd=qn(Sl),ci=ae({},Hd,{relatedTarget:0}),Ts=qn(ci),Ma=ae({},pu,{animationName:0,elapsedTime:0,pseudoElement:0}),QA=qn(Ma),sC=ae({},pu,{clipboardData:function(h){return"clipboardData"in h?h.clipboardData:window.clipboardData}}),Od=qn(sC),nC=ae({},pu,{data:0}),UA=qn(nC),Vg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},up={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},dp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fu(h){var p=this.nativeEvent;return p.getModifierState?p.getModifierState(h):(h=dp[h])?!!p[h]:!1}function zg(){return fu}var Qg=ae({},Hd,{key:function(h){if(h.key){var p=Vg[h.key]||h.key;if(p!=="Unidentified")return p}return h.type==="keypress"?(h=bl(h),h===13?"Enter":String.fromCharCode(h)):h.type==="keydown"||h.type==="keyup"?up[h.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zg,charCode:function(h){return h.type==="keypress"?bl(h):0},keyCode:function(h){return h.type==="keydown"||h.type==="keyup"?h.keyCode:0},which:function(h){return h.type==="keypress"?bl(h):h.type==="keydown"||h.type==="keyup"?h.keyCode:0}}),WA=qn(Qg),I=ae({},cp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Q=qn(I),J=ae({},Hd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zg}),le=qn(J),ke=ae({},pu,{propertyName:0,elapsedTime:0,pseudoElement:0}),Te=qn(ke),Xe=ae({},cp,{deltaX:function(h){return"deltaX"in h?h.deltaX:"wheelDeltaX"in h?-h.wheelDeltaX:0},deltaY:function(h){return"deltaY"in h?h.deltaY:"wheelDeltaY"in h?-h.wheelDeltaY:"wheelDelta"in h?-h.wheelDelta:0},deltaZ:0,deltaMode:0}),ht=qn(Xe),Qt=[9,13,27,32],Sr=a&&"CompositionEvent"in window,ar=null;a&&"documentMode"in document&&(ar=document.documentMode);var Ls=a&&"TextEvent"in window&&!ar,ui=a&&(!Sr||ar&&8<ar&&11>=ar),vo=" ",Co=!1;function hp(h,p){switch(h){case"keyup":return Qt.indexOf(p.keyCode)!==-1;case"keydown":return p.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jA(h){return h=h.detail,typeof h=="object"&&"data"in h?h.data:null}var cc=!1;function Ug(h,p){switch(h){case"compositionend":return jA(p);case"keypress":return p.which!==32?null:(Co=!0,vo);case"textInput":return h=p.data,h===vo&&Co?null:h;default:return null}}function yD(h,p){if(cc)return h==="compositionend"||!Sr&&hp(h,p)?(h=zA(),Da=Bd=zs=null,cc=!1,h):null;switch(h){case"paste":return null;case"keypress":if(!(p.ctrlKey||p.altKey||p.metaKey)||p.ctrlKey&&p.altKey){if(p.char&&1<p.char.length)return p.char;if(p.which)return String.fromCharCode(p.which)}return null;case"compositionend":return ui&&p.locale!=="ko"?null:p.data;default:return null}}var bD={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function iC(h){var p=h&&h.nodeName&&h.nodeName.toLowerCase();return p==="input"?!!bD[h.type]:p==="textarea"}function yy(h,p,C,x){iu(x),p=gC(p,"onChange"),0<p.length&&(C=new lc("onChange","change",null,C,x),h.push({event:C,listeners:p}))}var Ia=null,Nd=null;function SD(h){N3(h,0)}function oC(h){var p=Hr(h);if(_e(p))return h}function xD(h,p){if(h==="change")return p}var pp=!1;if(a){var Xo;if(a){var aC="oninput"in document;if(!aC){var k3=document.createElement("div");k3.setAttribute("oninput","return;"),aC=typeof k3.oninput=="function"}Xo=aC}else Xo=!1;pp=Xo&&(!document.documentMode||9<document.documentMode)}function B3(){Ia&&(Ia.detachEvent("onpropertychange",L3),Nd=Ia=null)}function L3(h){if(h.propertyName==="value"&&oC(Nd)){var p=[];yy(p,Nd,h,Si(h)),sp(SD,p)}}function ED(h,p,C){h==="focusin"?(B3(),Ia=p,Nd=C,Ia.attachEvent("onpropertychange",L3)):h==="focusout"&&B3()}function PD(h){if(h==="selectionchange"||h==="keyup"||h==="keydown")return oC(Nd)}function Wg(h,p){if(h==="click")return oC(p)}function be(h,p){if(h==="input"||h==="change")return oC(p)}function Ze(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var Le=typeof Object.is=="function"?Object.is:Ze;function Tt(h,p){if(Le(h,p))return!0;if(typeof h!="object"||h===null||typeof p!="object"||p===null)return!1;var C=Object.keys(h),x=Object.keys(p);if(C.length!==x.length)return!1;for(x=0;x<C.length;x++){var R=C[x];if(!l.call(p,R)||!Le(h[R],p[R]))return!1}return!0}function xr(h){for(;h&&h.firstChild;)h=h.firstChild;return h}function ps(h,p){var C=xr(h);h=0;for(var x;C;){if(C.nodeType===3){if(x=h+C.textContent.length,h<=p&&x>=p)return{node:C,offset:p-h};h=x}e:{for(;C;){if(C.nextSibling){C=C.nextSibling;break e}C=C.parentNode}C=void 0}C=xr(C)}}function Bn(h,p){return h&&p?h===p?!0:h&&h.nodeType===3?!1:p&&p.nodeType===3?Bn(h,p.parentNode):"contains"in h?h.contains(p):h.compareDocumentPosition?!!(h.compareDocumentPosition(p)&16):!1:!1}function Hs(){for(var h=window,p=ne();p instanceof h.HTMLIFrameElement;){try{var C=typeof p.contentWindow.location.href=="string"}catch{C=!1}if(C)h=p.contentWindow;else break;p=ne(h.document)}return p}function KA(h){var p=h&&h.nodeName&&h.nodeName.toLowerCase();return p&&(p==="input"&&(h.type==="text"||h.type==="search"||h.type==="tel"||h.type==="url"||h.type==="password")||p==="textarea"||h.contentEditable==="true")}function FD(h){var p=Hs(),C=h.focusedElem,x=h.selectionRange;if(p!==C&&C&&C.ownerDocument&&Bn(C.ownerDocument.documentElement,C)){if(x!==null&&KA(C)){if(p=x.start,h=x.end,h===void 0&&(h=p),"selectionStart"in C)C.selectionStart=p,C.selectionEnd=Math.min(h,C.value.length);else if(h=(p=C.ownerDocument||document)&&p.defaultView||window,h.getSelection){h=h.getSelection();var R=C.textContent.length,L=Math.min(x.start,R);x=x.end===void 0?L:Math.min(x.end,R),!h.extend&&L>x&&(R=x,x=L,L=R),R=ps(C,L);var Z=ps(C,x);R&&Z&&(h.rangeCount!==1||h.anchorNode!==R.node||h.anchorOffset!==R.offset||h.focusNode!==Z.node||h.focusOffset!==Z.offset)&&(p=p.createRange(),p.setStart(R.node,R.offset),h.removeAllRanges(),L>x?(h.addRange(p),h.extend(Z.node,Z.offset)):(p.setEnd(Z.node,Z.offset),h.addRange(p)))}}for(p=[],h=C;h=h.parentNode;)h.nodeType===1&&p.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C<p.length;C++)h=p[C],h.element.scrollLeft=h.left,h.element.scrollTop=h.top}}var ka=a&&"documentMode"in document&&11>=document.documentMode,Au=null,by=null,uc=null,jg=!1;function YA(h,p,C){var x=C.window===C?C.document:C.nodeType===9?C:C.ownerDocument;jg||Au==null||Au!==ne(x)||(x=Au,"selectionStart"in x&&KA(x)?x={start:x.selectionStart,end:x.selectionEnd}:(x=(x.ownerDocument&&x.ownerDocument.defaultView||window).getSelection(),x={anchorNode:x.anchorNode,anchorOffset:x.anchorOffset,focusNode:x.focusNode,focusOffset:x.focusOffset}),uc&&Tt(uc,x)||(uc=x,x=gC(by,"onSelect"),0<x.length&&(p=new lc("onSelect","select",null,p,C),h.push({event:p,listeners:x}),p.target=Au)))}function gs(h,p){var C={};return C[h.toLowerCase()]=p.toLowerCase(),C["Webkit"+h]="webkit"+p,C["Moz"+h]="moz"+p,C}var Kg={animationend:gs("Animation","AnimationEnd"),animationiteration:gs("Animation","AnimationIteration"),animationstart:gs("Animation","AnimationStart"),transitionend:gs("Transition","TransitionEnd")},lC={},ZA={};a&&(ZA=document.createElement("div").style,"AnimationEvent"in window||(delete Kg.animationend.animation,delete Kg.animationiteration.animation,delete Kg.animationstart.animation),"TransitionEvent"in window||delete Kg.transitionend.transition);function cC(h){if(lC[h])return lC[h];if(!Kg[h])return h;var p=Kg[h],C;for(C in p)if(p.hasOwnProperty(C)&&C in ZA)return lC[h]=p[C];return h}var H3=cC("animationend"),G3=cC("animationiteration"),XA=cC("animationstart"),mu=cC("transitionend"),$A=new Map,Sy="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function xl(h,p){$A.set(h,p),i(p,[h])}for(var uC=0;uC<Sy.length;uC++){var dC=Sy[uC],hC=dC.toLowerCase(),O3=dC[0].toUpperCase()+dC.slice(1);xl(hC,"on"+O3)}xl(H3,"onAnimationEnd"),xl(G3,"onAnimationIteration"),xl(XA,"onAnimationStart"),xl("dblclick","onDoubleClick"),xl("focusin","onFocus"),xl("focusout","onBlur"),xl(mu,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),gp=new Set("cancel close invalid load scroll toggle".split(" ").concat(vu));function JA(h,p,C){var x=h.type||"unknown-event";h.currentTarget=C,np(x,p,void 0,h),h.currentTarget=null}function N3(h,p){p=(p&4)!==0;for(var C=0;C<h.length;C++){var x=h[C],R=x.event;x=x.listeners;e:{var L=void 0;if(p)for(var Z=x.length-1;0<=Z;Z--){var he=x[Z],Ae=he.instance,Ge=he.currentTarget;if(he=he.listener,Ae!==L&&R.isPropagationStopped())break e;JA(R,he,Ge),L=Ae}else for(Z=0;Z<x.length;Z++){if(he=x[Z],Ae=he.instance,Ge=he.currentTarget,he=he.listener,Ae!==L&&R.isPropagationStopped())break e;JA(R,he,Ge),L=Ae}}}if(xd)throw h=nc,xd=!1,nc=null,h}function $s(h,p){var C=p[mC];C===void 0&&(C=p[mC]=new Set);var x=h+"__bubble";C.has(x)||(pC(p,h,2,!1),C.add(x))}function xy(h,p,C){var x=0;p&&(x|=4),pC(C,h,x,p)}var fp="_reactListening"+Math.random().toString(36).slice(2);function _d(h){if(!h[fp]){h[fp]=!0,s.forEach(function(C){C!=="selectionchange"&&(gp.has(C)||xy(C,!1,h),xy(C,!0,h))});var p=h.nodeType===9?h:h.ownerDocument;p===null||p[fp]||(p[fp]=!0,xy("selectionchange",!1,p))}}function pC(h,p,C,x){switch(VA(p)){case 1:var R=Gg;break;case 4:R=hu;break;default:R=Og}C=R.bind(null,p,C,h),R=void 0,!ml||p!=="touchstart"&&p!=="touchmove"&&p!=="wheel"||(R=!0),x?R!==void 0?h.addEventListener(p,C,{capture:!0,passive:R}):h.addEventListener(p,C,!0):R!==void 0?h.addEventListener(p,C,{passive:R}):h.addEventListener(p,C,!1)}function Ey(h,p,C,x,R){var L=x;if(!(p&1)&&!(p&2)&&x!==null)e:for(;;){if(x===null)return;var Z=x.tag;if(Z===3||Z===4){var he=x.stateNode.containerInfo;if(he===R||he.nodeType===8&&he.parentNode===R)break;if(Z===4)for(Z=x.return;Z!==null;){var Ae=Z.tag;if((Ae===3||Ae===4)&&(Ae=Z.stateNode.containerInfo,Ae===R||Ae.nodeType===8&&Ae.parentNode===R))return;Z=Z.return}for(;he!==null;){if(Z=hc(he),Z===null)return;if(Ae=Z.tag,Ae===5||Ae===6){x=L=Z;continue e}he=he.parentNode}}x=x.return}sp(function(){var Ge=L,at=Si(C),ct=[];e:{var it=$A.get(h);if(it!==void 0){var Dt=lc,_t=h;switch(h){case"keypress":if(bl(C)===0)break e;case"keydown":case"keyup":Dt=WA;break;case"focusin":_t="focus",Dt=Ts;break;case"focusout":_t="blur",Dt=Ts;break;case"beforeblur":case"afterblur":Dt=Ts;break;case"click":if(C.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Dt=_g;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Dt=Gd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Dt=le;break;case H3:case G3:case XA:Dt=QA;break;case mu:Dt=Te;break;case"scroll":Dt=Ng;break;case"wheel":Dt=ht;break;case"copy":case"cut":case"paste":Dt=Od;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Dt=Q}var Ut=(p&4)!==0,En=!Ut&&h==="scroll",Re=Ut?it!==null?it+"Capture":null:it;Ut=[];for(var we=Ge,Me;we!==null;){Me=we;var pt=Me.stateNode;if(Me.tag===5&&pt!==null&&(Me=pt,Re!==null&&(pt=Al(we,Re),pt!=null&&Ut.push(Yg(we,pt,Me)))),En)break;we=we.return}0<Ut.length&&(it=new Dt(it,_t,null,C,at),ct.push({event:it,listeners:Ut}))}}if(!(p&7)){e:{if(it=h==="mouseover"||h==="pointerover",Dt=h==="mouseout"||h==="pointerout",it&&C!==Jl&&(_t=C.relatedTarget||C.fromElement)&&(hc(_t)||_t[$o]))break e;if((Dt||it)&&(it=at.window===at?at:(it=at.ownerDocument)?it.defaultView||it.parentWindow:window,Dt?(_t=C.relatedTarget||C.toElement,Dt=Ge,_t=_t?hc(_t):null,_t!==null&&(En=vl(_t),_t!==En||_t.tag!==5&&_t.tag!==6)&&(_t=null)):(Dt=null,_t=Ge),Dt!==_t)){if(Ut=_g,pt="onMouseLeave",Re="onMouseEnter",we="mouse",(h==="pointerout"||h==="pointerover")&&(Ut=Q,pt="onPointerLeave",Re="onPointerEnter",we="pointer"),En=Dt==null?it:Hr(Dt),Me=_t==null?it:Hr(_t),it=new Ut(pt,we+"leave",Dt,C,at),it.target=En,it.relatedTarget=Me,pt=null,hc(at)===Ge&&(Ut=new Ut(Re,we+"enter",_t,C,at),Ut.target=Me,Ut.relatedTarget=En,pt=Ut),En=pt,Dt&&_t)t:{for(Ut=Dt,Re=_t,we=0,Me=Ut;Me;Me=Zg(Me))we++;for(Me=0,pt=Re;pt;pt=Zg(pt))Me++;for(;0<we-Me;)Ut=Zg(Ut),we--;for(;0<Me-we;)Re=Zg(Re),Me--;for(;we--;){if(Ut===Re||Re!==null&&Ut===Re.alternate)break t;Ut=Zg(Ut),Re=Zg(Re)}Ut=null}else Ut=null;Dt!==null&&Ln(ct,it,Dt,Ut,!1),_t!==null&&En!==null&&Ln(ct,En,_t,Ut,!0)}}e:{if(it=Ge?Hr(Ge):window,Dt=it.nodeName&&it.nodeName.toLowerCase(),Dt==="select"||Dt==="input"&&it.type==="file")var Kt=xD;else if(iC(it))if(pp)Kt=be;else{Kt=PD;var or=ED}else(Dt=it.nodeName)&&Dt.toLowerCase()==="input"&&(it.type==="checkbox"||it.type==="radio")&&(Kt=Wg);if(Kt&&(Kt=Kt(h,Ge))){yy(ct,Kt,C,at);break e}or&&or(h,it,Ge),h==="focusout"&&(or=it._wrapperState)&&or.controlled&&it.type==="number"&&Ct(it,"number",it.value)}switch(or=Ge?Hr(Ge):window,h){case"focusin":(iC(or)||or.contentEditable==="true")&&(Au=or,by=Ge,uc=null);break;case"focusout":uc=by=Au=null;break;case"mousedown":jg=!0;break;case"contextmenu":case"mouseup":case"dragend":jg=!1,YA(ct,C,at);break;case"selectionchange":if(ka)break;case"keydown":case"keyup":YA(ct,C,at)}var tr;if(Sr)e:{switch(h){case"compositionstart":var pr="onCompositionStart";break e;case"compositionend":pr="onCompositionEnd";break e;case"compositionupdate":pr="onCompositionUpdate";break e}pr=void 0}else cc?hp(h,C)&&(pr="onCompositionEnd"):h==="keydown"&&C.keyCode===229&&(pr="onCompositionStart");pr&&(ui&&C.locale!=="ko"&&(cc||pr!=="onCompositionStart"?pr==="onCompositionEnd"&&cc&&(tr=zA()):(zs=at,Bd="value"in zs?zs.value:zs.textContent,cc=!0)),or=gC(Ge,pr),0<or.length&&(pr=new UA(pr,h,null,C,at),ct.push({event:pr,listeners:or}),tr?pr.data=tr:(tr=jA(C),tr!==null&&(pr.data=tr)))),(tr=Ls?Ug(h,C):yD(h,C))&&(Ge=gC(Ge,"onBeforeInput"),0<Ge.length&&(at=new UA("onBeforeInput","beforeinput",null,C,at),ct.push({event:at,listeners:Ge}),at.data=tr))}N3(ct,p)})}function Yg(h,p,C){return{instance:h,listener:p,currentTarget:C}}function gC(h,p){for(var C=p+"Capture",x=[];h!==null;){var R=h,L=R.stateNode;R.tag===5&&L!==null&&(R=L,L=Al(h,C),L!=null&&x.unshift(Yg(h,L,R)),L=Al(h,p),L!=null&&x.push(Yg(h,L,R))),h=h.return}return x}function Zg(h){if(h===null)return null;do h=h.return;while(h&&h.tag!==5);return h||null}function Ln(h,p,C,x,R){for(var L=p._reactName,Z=[];C!==null&&C!==x;){var he=C,Ae=he.alternate,Ge=he.stateNode;if(Ae!==null&&Ae===x)break;he.tag===5&&Ge!==null&&(he=Ge,R?(Ae=Al(C,L),Ae!=null&&Z.unshift(Yg(C,Ae,he))):R||(Ae=Al(C,L),Ae!=null&&Z.push(Yg(C,Ae,he)))),C=C.return}Z.length!==0&&h.push({event:p,listeners:Z})}var Ei=/\r\n?/g,RD=/\u0000|\uFFFD/g;function _3(h){return(typeof h=="string"?h:""+h).replace(Ei,`
784
784
  `).replace(RD,"")}function qA(h,p,C){if(p=_3(p),_3(h)!==p&&C)throw Error(r(425))}function fC(){}var em=null,Ap=null;function tm(h,p){return h==="textarea"||h==="noscript"||typeof p.children=="string"||typeof p.children=="number"||typeof p.dangerouslySetInnerHTML=="object"&&p.dangerouslySetInnerHTML!==null&&p.dangerouslySetInnerHTML.__html!=null}var Vd=typeof setTimeout=="function"?setTimeout:void 0,rm=typeof clearTimeout=="function"?clearTimeout:void 0,Xg=typeof Promise=="function"?Promise:void 0,AC=typeof queueMicrotask=="function"?queueMicrotask:typeof Xg<"u"?function(h){return Xg.resolve(null).then(h).catch($g)}:Vd;function $g(h){setTimeout(function(){throw h})}function Py(h,p){var C=p,x=0;do{var R=C.nextSibling;if(h.removeChild(C),R&&R.nodeType===8)if(C=R.data,C==="/$"){if(x===0){h.removeChild(R),ts(p);return}x--}else C!=="$"&&C!=="$?"&&C!=="$!"||x++;C=R}while(C);ts(p)}function zd(h){for(;h!=null;h=h.nextSibling){var p=h.nodeType;if(p===1||p===3)break;if(p===8){if(p=h.data,p==="$"||p==="$!"||p==="$?")break;if(p==="/$")return null}}return h}function V3(h){h=h.previousSibling;for(var p=0;h;){if(h.nodeType===8){var C=h.data;if(C==="$"||C==="$!"||C==="$?"){if(p===0)return h;p--}else C==="/$"&&p++}h=h.previousSibling}return null}var Jg=Math.random().toString(36).slice(2),dc="__reactFiber$"+Jg,Qd="__reactProps$"+Jg,$o="__reactContainer$"+Jg,mC="__reactEvents$"+Jg,ee="__reactListeners$"+Jg,qg="__reactHandles$"+Jg;function hc(h){var p=h[dc];if(p)return p;for(var C=h.parentNode;C;){if(p=C[$o]||C[dc]){if(C=p.alternate,p.child!==null||C!==null&&C.child!==null)for(h=V3(h);h!==null;){if(C=h[dc])return C;h=V3(h)}return p}h=C,C=h.parentNode}return null}function Pi(h){return h=h[dc]||h[$o],!h||h.tag!==5&&h.tag!==6&&h.tag!==13&&h.tag!==3?null:h}function Hr(h){if(h.tag===5||h.tag===6)return h.stateNode;throw Error(r(33))}function vC(h){return h[Qd]||null}var Fy=[],ef=-1;function wo(h){return{current:h}}function Js(h){0>ef||(h.current=Fy[ef],Fy[ef]=null,ef--)}function Ws(h,p){ef++,Fy[ef]=h.current,h.current=p}var Ud={},Fi=wo(Ud),yo=wo(!1),Wi=Ud;function tf(h,p){var C=h.type.contextTypes;if(!C)return Ud;var x=h.stateNode;if(x&&x.__reactInternalMemoizedUnmaskedChildContext===p)return x.__reactInternalMemoizedMaskedChildContext;var R={},L;for(L in C)R[L]=p[L];return x&&(h=h.stateNode,h.__reactInternalMemoizedUnmaskedChildContext=p,h.__reactInternalMemoizedMaskedChildContext=R),R}function bo(h){return h=h.childContextTypes,h!=null}function CC(){Js(yo),Js(Fi)}function z3(h,p,C){if(Fi.current!==Ud)throw Error(r(168));Ws(Fi,p),Ws(yo,C)}function Q3(h,p,C){var x=h.stateNode;if(p=p.childContextTypes,typeof x.getChildContext!="function")return C;x=x.getChildContext();for(var R in x)if(!(R in p))throw Error(r(108,ze(h)||"Unknown",R));return ae({},C,x)}function Ba(h){return h=(h=h.stateNode)&&h.__reactInternalMemoizedMergedChildContext||Ud,Wi=Fi.current,Ws(Fi,h),Ws(yo,yo.current),!0}function U3(h,p,C){var x=h.stateNode;if(!x)throw Error(r(169));C?(h=Q3(h,p,Wi),x.__reactInternalMemoizedMergedChildContext=h,Js(yo),Js(Fi),Ws(Fi,h)):Js(yo),Ws(yo,C)}var Cu=null,wC=!1,Ry=!1;function W3(h){Cu===null?Cu=[h]:Cu.push(h)}function mp(h){wC=!0,W3(h)}function Wd(){if(!Ry&&Cu!==null){Ry=!0;var h=0,p=bt;try{var C=Cu;for(bt=1;h<C.length;h++){var x=C[h];do x=x(!0);while(x!==null)}Cu=null,wC=!1}catch(R){throw Cu!==null&&(Cu=Cu.slice(h+1)),au(Pd,Wd),R}finally{bt=p,Ry=!1}}return null}var rf=[],Ri=0,yC=null,bC=0,La=[],Ha=0,vp=null,pc=1,gc="";function Cp(h,p){rf[Ri++]=bC,rf[Ri++]=yC,yC=h,bC=p}function j3(h,p,C){La[Ha++]=pc,La[Ha++]=gc,La[Ha++]=vp,vp=h;var x=pc;h=gc;var R=32-Vn(x)-1;x&=~(1<<R),C+=1;var L=32-Vn(p)+R;if(30<L){var Z=R-R%5;L=(x&(1<<Z)-1).toString(32),x>>=Z,R-=Z,pc=1<<32-Vn(p)+R|C<<R|x,gc=L+h}else pc=1<<L|C<<R|x,gc=h}function sm(h){h.return!==null&&(Cp(h,1),j3(h,1,0))}function wp(h){for(;h===yC;)yC=rf[--Ri],rf[Ri]=null,bC=rf[--Ri],rf[Ri]=null;for(;h===vp;)vp=La[--Ha],La[Ha]=null,gc=La[--Ha],La[Ha]=null,pc=La[--Ha],La[Ha]=null}var Ti=null,Jo=null,qs=!1,El=null;function fc(h,p){var C=Qa(5,null,null,0);C.elementType="DELETED",C.stateNode=p,C.return=h,p=h.deletions,p===null?(h.deletions=[C],h.flags|=16):p.push(C)}function SC(h,p){switch(h.tag){case 5:var C=h.type;return p=p.nodeType!==1||C.toLowerCase()!==p.nodeName.toLowerCase()?null:p,p!==null?(h.stateNode=p,Ti=h,Jo=zd(p.firstChild),!0):!1;case 6:return p=h.pendingProps===""||p.nodeType!==3?null:p,p!==null?(h.stateNode=p,Ti=h,Jo=null,!0):!1;case 13:return p=p.nodeType!==8?null:p,p!==null?(C=vp!==null?{id:pc,overflow:gc}:null,h.memoizedState={dehydrated:p,treeContext:C,retryLane:1073741824},C=Qa(18,null,null,0),C.stateNode=p,C.return=h,h.child=C,Ti=h,Jo=null,!0):!1;default:return!1}}function wu(h){return(h.mode&1)!==0&&(h.flags&128)===0}function So(h){if(qs){var p=Jo;if(p){var C=p;if(!SC(h,p)){if(wu(h))throw Error(r(418));p=zd(C.nextSibling);var x=Ti;p&&SC(h,p)?fc(x,C):(h.flags=h.flags&-4097|2,qs=!1,Ti=h)}}else{if(wu(h))throw Error(r(418));h.flags=h.flags&-4097|2,qs=!1,Ti=h}}}function K3(h){for(h=h.return;h!==null&&h.tag!==5&&h.tag!==3&&h.tag!==13;)h=h.return;Ti=h}function nm(h){if(h!==Ti)return!1;if(!qs)return K3(h),qs=!0,!1;var p;if((p=h.tag!==3)&&!(p=h.tag!==5)&&(p=h.type,p=p!=="head"&&p!=="body"&&!tm(h.type,h.memoizedProps)),p&&(p=Jo)){if(wu(h))throw Ty(),Error(r(418));for(;p;)fc(h,p),p=zd(p.nextSibling)}if(K3(h),h.tag===13){if(h=h.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(r(317));e:{for(h=h.nextSibling,p=0;h;){if(h.nodeType===8){var C=h.data;if(C==="/$"){if(p===0){Jo=zd(h.nextSibling);break e}p--}else C!=="$"&&C!=="$!"&&C!=="$?"||p++}h=h.nextSibling}Jo=null}}else Jo=Ti?zd(h.stateNode.nextSibling):null;return!0}function Ty(){for(var h=Jo;h;)h=zd(h.nextSibling)}function Ac(){Jo=Ti=null,qs=!1}function mc(h){El===null?El=[h]:El.push(h)}var Y3=T.ReactCurrentBatchConfig;function im(h,p,C){if(h=C.ref,h!==null&&typeof h!="function"&&typeof h!="object"){if(C._owner){if(C=C._owner,C){if(C.tag!==1)throw Error(r(309));var x=C.stateNode}if(!x)throw Error(r(147,h));var R=x,L=""+h;return p!==null&&p.ref!==null&&typeof p.ref=="function"&&p.ref._stringRef===L?p.ref:(p=function(Z){var he=R.refs;Z===null?delete he[L]:he[L]=Z},p._stringRef=L,p)}if(typeof h!="string")throw Error(r(284));if(!C._owner)throw Error(r(290,h))}return h}function yp(h,p){throw h=Object.prototype.toString.call(p),Error(r(31,h==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":h))}function Z3(h){var p=h._init;return p(h._payload)}function Dy(h){function p(Re,we){if(h){var Me=Re.deletions;Me===null?(Re.deletions=[we],Re.flags|=16):Me.push(we)}}function C(Re,we){if(!h)return null;for(;we!==null;)p(Re,we),we=we.sibling;return null}function x(Re,we){for(Re=new Map;we!==null;)we.key!==null?Re.set(we.key,we):Re.set(we.index,we),we=we.sibling;return Re}function R(Re,we){return Re=Il(Re,we),Re.index=0,Re.sibling=null,Re}function L(Re,we,Me){return Re.index=Me,h?(Me=Re.alternate,Me!==null?(Me=Me.index,Me<we?(Re.flags|=2,we):Me):(Re.flags|=2,we)):(Re.flags|=1048576,we)}function Z(Re){return h&&Re.alternate===null&&(Re.flags|=2),Re}function he(Re,we,Me,pt){return we===null||we.tag!==6?(we=Ab(Me,Re.mode,pt),we.return=Re,we):(we=R(we,Me),we.return=Re,we)}function Ae(Re,we,Me,pt){var Kt=Me.type;return Kt===k?at(Re,we,Me.props.children,pt,Me.key):we!==null&&(we.elementType===Kt||typeof Kt=="object"&&Kt!==null&&Kt.$$typeof===q&&Z3(Kt)===we.type)?(pt=R(we,Me.props),pt.ref=im(Re,we,Me),pt.return=Re,pt):(pt=i0(Me.type,Me.key,Me.props,null,Re.mode,pt),pt.ref=im(Re,we,Me),pt.return=Re,pt)}function Ge(Re,we,Me,pt){return we===null||we.tag!==4||we.stateNode.containerInfo!==Me.containerInfo||we.stateNode.implementation!==Me.implementation?(we=mb(Me,Re.mode,pt),we.return=Re,we):(we=R(we,Me.children||[]),we.return=Re,we)}function at(Re,we,Me,pt,Kt){return we===null||we.tag!==7?(we=Ip(Me,Re.mode,pt,Kt),we.return=Re,we):(we=R(we,Me),we.return=Re,we)}function ct(Re,we,Me){if(typeof we=="string"&&we!==""||typeof we=="number")return we=Ab(""+we,Re.mode,Me),we.return=Re,we;if(typeof we=="object"&&we!==null){switch(we.$$typeof){case D:return Me=i0(we.type,we.key,we.props,null,Re.mode,Me),Me.ref=im(Re,null,we),Me.return=Re,Me;case B:return we=mb(we,Re.mode,Me),we.return=Re,we;case q:var pt=we._init;return ct(Re,pt(we._payload),Me)}if(dt(we)||re(we))return we=Ip(we,Re.mode,Me,null),we.return=Re,we;yp(Re,we)}return null}function it(Re,we,Me,pt){var Kt=we!==null?we.key:null;if(typeof Me=="string"&&Me!==""||typeof Me=="number")return Kt!==null?null:he(Re,we,""+Me,pt);if(typeof Me=="object"&&Me!==null){switch(Me.$$typeof){case D:return Me.key===Kt?Ae(Re,we,Me,pt):null;case B:return Me.key===Kt?Ge(Re,we,Me,pt):null;case q:return Kt=Me._init,it(Re,we,Kt(Me._payload),pt)}if(dt(Me)||re(Me))return Kt!==null?null:at(Re,we,Me,pt,null);yp(Re,Me)}return null}function Dt(Re,we,Me,pt,Kt){if(typeof pt=="string"&&pt!==""||typeof pt=="number")return Re=Re.get(Me)||null,he(we,Re,""+pt,Kt);if(typeof pt=="object"&&pt!==null){switch(pt.$$typeof){case D:return Re=Re.get(pt.key===null?Me:pt.key)||null,Ae(we,Re,pt,Kt);case B:return Re=Re.get(pt.key===null?Me:pt.key)||null,Ge(we,Re,pt,Kt);case q:var or=pt._init;return Dt(Re,we,Me,or(pt._payload),Kt)}if(dt(pt)||re(pt))return Re=Re.get(Me)||null,at(we,Re,pt,Kt,null);yp(we,pt)}return null}function _t(Re,we,Me,pt){for(var Kt=null,or=null,tr=we,pr=we=0,ri=null;tr!==null&&pr<Me.length;pr++){tr.index>pr?(ri=tr,tr=null):ri=tr.sibling;var fs=it(Re,tr,Me[pr],pt);if(fs===null){tr===null&&(tr=ri);break}h&&tr&&fs.alternate===null&&p(Re,tr),we=L(fs,we,pr),or===null?Kt=fs:or.sibling=fs,or=fs,tr=ri}if(pr===Me.length)return C(Re,tr),qs&&Cp(Re,pr),Kt;if(tr===null){for(;pr<Me.length;pr++)tr=ct(Re,Me[pr],pt),tr!==null&&(we=L(tr,we,pr),or===null?Kt=tr:or.sibling=tr,or=tr);return qs&&Cp(Re,pr),Kt}for(tr=x(Re,tr);pr<Me.length;pr++)ri=Dt(tr,Re,pr,Me[pr],pt),ri!==null&&(h&&ri.alternate!==null&&tr.delete(ri.key===null?pr:ri.key),we=L(ri,we,pr),or===null?Kt=ri:or.sibling=ri,or=ri);return h&&tr.forEach(function(sh){return p(Re,sh)}),qs&&Cp(Re,pr),Kt}function Ut(Re,we,Me,pt){var Kt=re(Me);if(typeof Kt!="function")throw Error(r(150));if(Me=Kt.call(Me),Me==null)throw Error(r(151));for(var or=Kt=null,tr=we,pr=we=0,ri=null,fs=Me.next();tr!==null&&!fs.done;pr++,fs=Me.next()){tr.index>pr?(ri=tr,tr=null):ri=tr.sibling;var sh=it(Re,tr,fs.value,pt);if(sh===null){tr===null&&(tr=ri);break}h&&tr&&sh.alternate===null&&p(Re,tr),we=L(sh,we,pr),or===null?Kt=sh:or.sibling=sh,or=sh,tr=ri}if(fs.done)return C(Re,tr),qs&&Cp(Re,pr),Kt;if(tr===null){for(;!fs.done;pr++,fs=Me.next())fs=ct(Re,fs.value,pt),fs!==null&&(we=L(fs,we,pr),or===null?Kt=fs:or.sibling=fs,or=fs);return qs&&Cp(Re,pr),Kt}for(tr=x(Re,tr);!fs.done;pr++,fs=Me.next())fs=Dt(tr,Re,pr,fs.value,pt),fs!==null&&(h&&fs.alternate!==null&&tr.delete(fs.key===null?pr:fs.key),we=L(fs,we,pr),or===null?Kt=fs:or.sibling=fs,or=fs);return h&&tr.forEach(function(ZD){return p(Re,ZD)}),qs&&Cp(Re,pr),Kt}function En(Re,we,Me,pt){if(typeof Me=="object"&&Me!==null&&Me.type===k&&Me.key===null&&(Me=Me.props.children),typeof Me=="object"&&Me!==null){switch(Me.$$typeof){case D:e:{for(var Kt=Me.key,or=we;or!==null;){if(or.key===Kt){if(Kt=Me.type,Kt===k){if(or.tag===7){C(Re,or.sibling),we=R(or,Me.props.children),we.return=Re,Re=we;break e}}else if(or.elementType===Kt||typeof Kt=="object"&&Kt!==null&&Kt.$$typeof===q&&Z3(Kt)===or.type){C(Re,or.sibling),we=R(or,Me.props),we.ref=im(Re,or,Me),we.return=Re,Re=we;break e}C(Re,or);break}else p(Re,or);or=or.sibling}Me.type===k?(we=Ip(Me.props.children,Re.mode,pt,Me.key),we.return=Re,Re=we):(pt=i0(Me.type,Me.key,Me.props,null,Re.mode,pt),pt.ref=im(Re,we,Me),pt.return=Re,Re=pt)}return Z(Re);case B:e:{for(or=Me.key;we!==null;){if(we.key===or)if(we.tag===4&&we.stateNode.containerInfo===Me.containerInfo&&we.stateNode.implementation===Me.implementation){C(Re,we.sibling),we=R(we,Me.children||[]),we.return=Re,Re=we;break e}else{C(Re,we);break}else p(Re,we);we=we.sibling}we=mb(Me,Re.mode,pt),we.return=Re,Re=we}return Z(Re);case q:return or=Me._init,En(Re,we,or(Me._payload),pt)}if(dt(Me))return _t(Re,we,Me,pt);if(re(Me))return Ut(Re,we,Me,pt);yp(Re,Me)}return typeof Me=="string"&&Me!==""||typeof Me=="number"?(Me=""+Me,we!==null&&we.tag===6?(C(Re,we.sibling),we=R(we,Me),we.return=Re,Re=we):(C(Re,we),we=Ab(Me,Re.mode,pt),we.return=Re,Re=we),Z(Re)):C(Re,we)}return En}var vn=Dy(!0),xC=Dy(!1),om=wo(null),qo=null,jd=null,sf=null;function yu(){sf=jd=qo=null}function EC(h){var p=om.current;Js(om),h._currentValue=p}function di(h,p,C){for(;h!==null;){var x=h.alternate;if((h.childLanes&p)!==p?(h.childLanes|=p,x!==null&&(x.childLanes|=p)):x!==null&&(x.childLanes&p)!==p&&(x.childLanes|=p),h===C)break;h=h.return}}function Kd(h,p){qo=h,sf=jd=null,h=h.dependencies,h!==null&&h.firstContext!==null&&(h.lanes&p&&(Ki=!0),h.firstContext=null)}function Ga(h){var p=h._currentValue;if(sf!==h)if(h={context:h,memoizedValue:p,next:null},jd===null){if(qo===null)throw Error(r(308));jd=h,qo.dependencies={lanes:0,firstContext:h}}else jd=jd.next=h;return p}var bp=null;function My(h){bp===null?bp=[h]:bp.push(h)}function PC(h,p,C,x){var R=p.interleaved;return R===null?(C.next=C,My(p)):(C.next=R.next,R.next=C),p.interleaved=C,bu(h,x)}function bu(h,p){h.lanes|=p;var C=h.alternate;for(C!==null&&(C.lanes|=p),C=h,h=h.return;h!==null;)h.childLanes|=p,C=h.alternate,C!==null&&(C.childLanes|=p),C=h,h=h.return;return C.tag===3?C.stateNode:null}var Oa=!1;function FC(h){h.updateQueue={baseState:h.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function X3(h,p){h=h.updateQueue,p.updateQueue===h&&(p.updateQueue={baseState:h.baseState,firstBaseUpdate:h.firstBaseUpdate,lastBaseUpdate:h.lastBaseUpdate,shared:h.shared,effects:h.effects})}function Su(h,p){return{eventTime:h,lane:p,tag:0,payload:null,callback:null,next:null}}function Na(h,p,C){var x=h.updateQueue;if(x===null)return null;if(x=x.shared,os&2){var R=x.pending;return R===null?p.next=p:(p.next=R.next,R.next=p),x.pending=p,bu(h,C)}return R=x.interleaved,R===null?(p.next=p,My(x)):(p.next=R.next,R.next=p),x.interleaved=p,bu(h,C)}function RC(h,p,C){if(p=p.updateQueue,p!==null&&(p=p.shared,(C&4194240)!==0)){var x=p.lanes;x&=h.pendingLanes,C|=x,p.lanes=C,gt(h,C)}}function $3(h,p){var C=h.updateQueue,x=h.alternate;if(x!==null&&(x=x.updateQueue,C===x)){var R=null,L=null;if(C=C.firstBaseUpdate,C!==null){do{var Z={eventTime:C.eventTime,lane:C.lane,tag:C.tag,payload:C.payload,callback:C.callback,next:null};L===null?R=L=Z:L=L.next=Z,C=C.next}while(C!==null);L===null?R=L=p:L=L.next=p}else R=L=p;C={baseState:x.baseState,firstBaseUpdate:R,lastBaseUpdate:L,shared:x.shared,effects:x.effects},h.updateQueue=C;return}h=C.lastBaseUpdate,h===null?C.firstBaseUpdate=p:h.next=p,C.lastBaseUpdate=p}function nf(h,p,C,x){var R=h.updateQueue;Oa=!1;var L=R.firstBaseUpdate,Z=R.lastBaseUpdate,he=R.shared.pending;if(he!==null){R.shared.pending=null;var Ae=he,Ge=Ae.next;Ae.next=null,Z===null?L=Ge:Z.next=Ge,Z=Ae;var at=h.alternate;at!==null&&(at=at.updateQueue,he=at.lastBaseUpdate,he!==Z&&(he===null?at.firstBaseUpdate=Ge:he.next=Ge,at.lastBaseUpdate=Ae))}if(L!==null){var ct=R.baseState;Z=0,at=Ge=Ae=null,he=L;do{var it=he.lane,Dt=he.eventTime;if((x&it)===it){at!==null&&(at=at.next={eventTime:Dt,lane:0,tag:he.tag,payload:he.payload,callback:he.callback,next:null});e:{var _t=h,Ut=he;switch(it=p,Dt=C,Ut.tag){case 1:if(_t=Ut.payload,typeof _t=="function"){ct=_t.call(Dt,ct,it);break e}ct=_t;break e;case 3:_t.flags=_t.flags&-65537|128;case 0:if(_t=Ut.payload,it=typeof _t=="function"?_t.call(Dt,ct,it):_t,it==null)break e;ct=ae({},ct,it);break e;case 2:Oa=!0}}he.callback!==null&&he.lane!==0&&(h.flags|=64,it=R.effects,it===null?R.effects=[he]:it.push(he))}else Dt={eventTime:Dt,lane:it,tag:he.tag,payload:he.payload,callback:he.callback,next:null},at===null?(Ge=at=Dt,Ae=ct):at=at.next=Dt,Z|=it;if(he=he.next,he===null){if(he=R.shared.pending,he===null)break;it=he,he=it.next,it.next=null,R.lastBaseUpdate=it,R.shared.pending=null}}while(!0);if(at===null&&(Ae=ct),R.baseState=Ae,R.firstBaseUpdate=Ge,R.lastBaseUpdate=at,p=R.shared.interleaved,p!==null){R=p;do Z|=R.lane,R=R.next;while(R!==p)}else L===null&&(R.shared.lanes=0);Jd|=Z,h.lanes=Z,h.memoizedState=ct}}function Iy(h,p,C){if(h=p.effects,p.effects=null,h!==null)for(p=0;p<h.length;p++){var x=h[p],R=x.callback;if(R!==null){if(x.callback=null,x=C,typeof R!="function")throw Error(r(191,R));R.call(x)}}}var am={},vc=wo(am),lm=wo(am),of=wo(am);function xu(h){if(h===am)throw Error(r(174));return h}function ky(h,p){switch(Ws(of,p),Ws(lm,h),Ws(vc,am),h=p.nodeType,h){case 9:case 11:p=(p=p.documentElement)?p.namespaceURI:Ar(null,"");break;default:h=h===8?p.parentNode:p,p=h.namespaceURI||null,h=h.tagName,p=Ar(p,h)}Js(vc),Ws(vc,p)}function Yd(){Js(vc),Js(lm),Js(of)}function By(h){xu(of.current);var p=xu(vc.current),C=Ar(p,h.type);p!==C&&(Ws(lm,h),Ws(vc,C))}function TC(h){lm.current===h&&(Js(vc),Js(lm))}var rn=wo(0);function Sp(h){for(var p=h;p!==null;){if(p.tag===13){var C=p.memoizedState;if(C!==null&&(C=C.dehydrated,C===null||C.data==="$?"||C.data==="$!"))return p}else if(p.tag===19&&p.memoizedProps.revealOrder!==void 0){if(p.flags&128)return p}else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===h)break;for(;p.sibling===null;){if(p.return===null||p.return===h)return null;p=p.return}p.sibling.return=p.return,p=p.sibling}return null}var Ly=[];function DC(){for(var h=0;h<Ly.length;h++)Ly[h]._workInProgressVersionPrimary=null;Ly.length=0}var cm=T.ReactCurrentDispatcher,Hy=T.ReactCurrentBatchConfig,Zd=0,dn=null,xn=null,zn=null,af=!1,um=!1,xp=0,Ur=0;function Di(){throw Error(r(321))}function Gy(h,p){if(p===null)return!1;for(var C=0;C<p.length&&C<h.length;C++)if(!Le(h[C],p[C]))return!1;return!0}function Ep(h,p,C,x,R,L){if(Zd=L,dn=p,p.memoizedState=null,p.updateQueue=null,p.lanes=0,cm.current=h===null||h.memoizedState===null?DD:GC,h=C(x,R),um){L=0;do{if(um=!1,xp=0,25<=L)throw Error(r(301));L+=1,zn=xn=null,p.updateQueue=null,cm.current=df,h=C(x,R)}while(um)}if(cm.current=HC,p=xn!==null&&xn.next!==null,Zd=0,zn=xn=dn=null,af=!1,p)throw Error(r(300));return h}function MC(){var h=xp!==0;return xp=0,h}function Cc(){var h={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zn===null?dn.memoizedState=zn=h:zn=zn.next=h,zn}function _a(){if(xn===null){var h=dn.alternate;h=h!==null?h.memoizedState:null}else h=xn.next;var p=zn===null?dn.memoizedState:zn.next;if(p!==null)zn=p,xn=h;else{if(h===null)throw Error(r(310));xn=h,h={memoizedState:xn.memoizedState,baseState:xn.baseState,baseQueue:xn.baseQueue,queue:xn.queue,next:null},zn===null?dn.memoizedState=zn=h:zn=zn.next=h}return zn}function Mi(h,p){return typeof p=="function"?p(h):p}function Oy(h){var p=_a(),C=p.queue;if(C===null)throw Error(r(311));C.lastRenderedReducer=h;var x=xn,R=x.baseQueue,L=C.pending;if(L!==null){if(R!==null){var Z=R.next;R.next=L.next,L.next=Z}x.baseQueue=R=L,C.pending=null}if(R!==null){L=R.next,x=x.baseState;var he=Z=null,Ae=null,Ge=L;do{var at=Ge.lane;if((Zd&at)===at)Ae!==null&&(Ae=Ae.next={lane:0,action:Ge.action,hasEagerState:Ge.hasEagerState,eagerState:Ge.eagerState,next:null}),x=Ge.hasEagerState?Ge.eagerState:h(x,Ge.action);else{var ct={lane:at,action:Ge.action,hasEagerState:Ge.hasEagerState,eagerState:Ge.eagerState,next:null};Ae===null?(he=Ae=ct,Z=x):Ae=Ae.next=ct,dn.lanes|=at,Jd|=at}Ge=Ge.next}while(Ge!==null&&Ge!==L);Ae===null?Z=x:Ae.next=he,Le(x,p.memoizedState)||(Ki=!0),p.memoizedState=x,p.baseState=Z,p.baseQueue=Ae,C.lastRenderedState=x}if(h=C.interleaved,h!==null){R=h;do L=R.lane,dn.lanes|=L,Jd|=L,R=R.next;while(R!==h)}else R===null&&(C.lanes=0);return[p.memoizedState,C.dispatch]}function lf(h){var p=_a(),C=p.queue;if(C===null)throw Error(r(311));C.lastRenderedReducer=h;var x=C.dispatch,R=C.pending,L=p.memoizedState;if(R!==null){C.pending=null;var Z=R=R.next;do L=h(L,Z.action),Z=Z.next;while(Z!==R);Le(L,p.memoizedState)||(Ki=!0),p.memoizedState=L,p.baseQueue===null&&(p.baseState=L),C.lastRenderedState=L}return[L,x]}function IC(){}function Ny(h,p){var C=dn,x=_a(),R=p(),L=!Le(x.memoizedState,R);if(L&&(x.memoizedState=R,Ki=!0),x=x.queue,wc(Eu.bind(null,C,x,h),[h]),x.getSnapshot!==p||L||zn!==null&&zn.memoizedState.tag&1){if(C.flags|=2048,cf(9,xo.bind(null,C,x,R,p),void 0,null),ti===null)throw Error(r(349));Zd&30||_y(C,p,R)}return R}function _y(h,p,C){h.flags|=16384,h={getSnapshot:p,value:C},p=dn.updateQueue,p===null?(p={lastEffect:null,stores:null},dn.updateQueue=p,p.stores=[h]):(C=p.stores,C===null?p.stores=[h]:C.push(h))}function xo(h,p,C,x){p.value=C,p.getSnapshot=x,kC(p)&&Vy(h)}function Eu(h,p,C){return C(function(){kC(p)&&Vy(h)})}function kC(h){var p=h.getSnapshot;h=h.value;try{var C=p();return!Le(h,C)}catch{return!0}}function Vy(h){var p=bu(h,1);p!==null&&Ml(p,h,1,-1)}function dm(h){var p=Cc();return typeof h=="function"&&(h=h()),p.memoizedState=p.baseState=h,h={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mi,lastRenderedState:h},p.queue=h,h=h.dispatch=sE.bind(null,dn,h),[p.memoizedState,h]}function cf(h,p,C,x){return h={tag:h,create:p,destroy:C,deps:x,next:null},p=dn.updateQueue,p===null?(p={lastEffect:null,stores:null},dn.updateQueue=p,p.lastEffect=h.next=h):(C=p.lastEffect,C===null?p.lastEffect=h.next=h:(x=C.next,C.next=h,h.next=x,p.lastEffect=h)),h}function BC(){return _a().memoizedState}function hm(h,p,C,x){var R=Cc();dn.flags|=h,R.memoizedState=cf(1|p,C,void 0,x===void 0?null:x)}function uf(h,p,C,x){var R=_a();x=x===void 0?null:x;var L=void 0;if(xn!==null){var Z=xn.memoizedState;if(L=Z.destroy,x!==null&&Gy(x,Z.deps)){R.memoizedState=cf(p,C,L,x);return}}dn.flags|=h,R.memoizedState=cf(1|p,C,L,x)}function LC(h,p){return hm(8390656,8,h,p)}function wc(h,p){return uf(2048,8,h,p)}function J3(h,p){return uf(4,2,h,p)}function Pu(h,p){return uf(4,4,h,p)}function zy(h,p){if(typeof p=="function")return h=h(),p(h),function(){p(null)};if(p!=null)return h=h(),p.current=h,function(){p.current=null}}function Qy(h,p,C){return C=C!=null?C.concat([h]):null,uf(4,4,zy.bind(null,p,h),C)}function pm(){}function q3(h,p){var C=_a();p=p===void 0?null:p;var x=C.memoizedState;return x!==null&&p!==null&&Gy(p,x[1])?x[0]:(C.memoizedState=[h,p],h)}function eE(h,p){var C=_a();p=p===void 0?null:p;var x=C.memoizedState;return x!==null&&p!==null&&Gy(p,x[1])?x[0]:(h=h(),C.memoizedState=[h,p],h)}function tE(h,p,C){return Zd&21?(Le(C,p)||(C=ce(),dn.lanes|=C,Jd|=C,h.baseState=!0),p):(h.baseState&&(h.baseState=!1,Ki=!0),h.memoizedState=C)}function rE(h,p){var C=bt;bt=C!==0&&4>C?C:4,h(!0);var x=Hy.transition;Hy.transition={};try{h(!1),p()}finally{bt=C,Hy.transition=x}}function Uy(){return _a().memoizedState}function TD(h,p,C){var x=th(h);if(C={lane:x,action:C,hasEagerState:!1,eagerState:null,next:null},Wy(h))ji(p,C);else if(C=PC(h,p,C,x),C!==null){var R=Xi();Ml(C,h,x,R),Pl(C,p,x)}}function sE(h,p,C){var x=th(h),R={lane:x,action:C,hasEagerState:!1,eagerState:null,next:null};if(Wy(h))ji(p,R);else{var L=h.alternate;if(h.lanes===0&&(L===null||L.lanes===0)&&(L=p.lastRenderedReducer,L!==null))try{var Z=p.lastRenderedState,he=L(Z,C);if(R.hasEagerState=!0,R.eagerState=he,Le(he,Z)){var Ae=p.interleaved;Ae===null?(R.next=R,My(p)):(R.next=Ae.next,Ae.next=R),p.interleaved=R;return}}catch{}finally{}C=PC(h,p,R,x),C!==null&&(R=Xi(),Ml(C,h,x,R),Pl(C,p,x))}}function Wy(h){var p=h.alternate;return h===dn||p!==null&&p===dn}function ji(h,p){um=af=!0;var C=h.pending;C===null?p.next=p:(p.next=C.next,C.next=p),h.pending=p}function Pl(h,p,C){if(C&4194240){var x=p.lanes;x&=h.pendingLanes,C|=x,p.lanes=C,gt(h,C)}}var HC={readContext:Ga,useCallback:Di,useContext:Di,useEffect:Di,useImperativeHandle:Di,useInsertionEffect:Di,useLayoutEffect:Di,useMemo:Di,useReducer:Di,useRef:Di,useState:Di,useDebugValue:Di,useDeferredValue:Di,useTransition:Di,useMutableSource:Di,useSyncExternalStore:Di,useId:Di,unstable_isNewReconciler:!1},DD={readContext:Ga,useCallback:function(h,p){return Cc().memoizedState=[h,p===void 0?null:p],h},useContext:Ga,useEffect:LC,useImperativeHandle:function(h,p,C){return C=C!=null?C.concat([h]):null,hm(4194308,4,zy.bind(null,p,h),C)},useLayoutEffect:function(h,p){return hm(4194308,4,h,p)},useInsertionEffect:function(h,p){return hm(4,2,h,p)},useMemo:function(h,p){var C=Cc();return p=p===void 0?null:p,h=h(),C.memoizedState=[h,p],h},useReducer:function(h,p,C){var x=Cc();return p=C!==void 0?C(p):p,x.memoizedState=x.baseState=p,h={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:h,lastRenderedState:p},x.queue=h,h=h.dispatch=TD.bind(null,dn,h),[x.memoizedState,h]},useRef:function(h){var p=Cc();return h={current:h},p.memoizedState=h},useState:dm,useDebugValue:pm,useDeferredValue:function(h){return Cc().memoizedState=h},useTransition:function(){var h=dm(!1),p=h[0];return h=rE.bind(null,h[1]),Cc().memoizedState=h,[p,h]},useMutableSource:function(){},useSyncExternalStore:function(h,p,C){var x=dn,R=Cc();if(qs){if(C===void 0)throw Error(r(407));C=C()}else{if(C=p(),ti===null)throw Error(r(349));Zd&30||_y(x,p,C)}R.memoizedState=C;var L={value:C,getSnapshot:p};return R.queue=L,LC(Eu.bind(null,x,L,h),[h]),x.flags|=2048,cf(9,xo.bind(null,x,L,C,p),void 0,null),C},useId:function(){var h=Cc(),p=ti.identifierPrefix;if(qs){var C=gc,x=pc;C=(x&~(1<<32-Vn(x)-1)).toString(32)+C,p=":"+p+"R"+C,C=xp++,0<C&&(p+="H"+C.toString(32)),p+=":"}else C=Ur++,p=":"+p+"r"+C.toString(32)+":";return h.memoizedState=p},unstable_isNewReconciler:!1},GC={readContext:Ga,useCallback:q3,useContext:Ga,useEffect:wc,useImperativeHandle:Qy,useInsertionEffect:J3,useLayoutEffect:Pu,useMemo:eE,useReducer:Oy,useRef:BC,useState:function(){return Oy(Mi)},useDebugValue:pm,useDeferredValue:function(h){var p=_a();return tE(p,xn.memoizedState,h)},useTransition:function(){var h=Oy(Mi)[0],p=_a().memoizedState;return[h,p]},useMutableSource:IC,useSyncExternalStore:Ny,useId:Uy,unstable_isNewReconciler:!1},df={readContext:Ga,useCallback:q3,useContext:Ga,useEffect:wc,useImperativeHandle:Qy,useInsertionEffect:J3,useLayoutEffect:Pu,useMemo:eE,useReducer:lf,useRef:BC,useState:function(){return lf(Mi)},useDebugValue:pm,useDeferredValue:function(h){var p=_a();return xn===null?p.memoizedState=h:tE(p,xn.memoizedState,h)},useTransition:function(){var h=lf(Mi)[0],p=_a().memoizedState;return[h,p]},useMutableSource:IC,useSyncExternalStore:Ny,useId:Uy,unstable_isNewReconciler:!1};function Va(h,p){if(h&&h.defaultProps){p=ae({},p),h=h.defaultProps;for(var C in h)p[C]===void 0&&(p[C]=h[C]);return p}return p}function OC(h,p,C,x){p=h.memoizedState,C=C(x,p),C=C==null?p:ae({},p,C),h.memoizedState=C,h.lanes===0&&(h.updateQueue.baseState=C)}var NC={isMounted:function(h){return(h=h._reactInternals)?vl(h)===h:!1},enqueueSetState:function(h,p,C){h=h._reactInternals;var x=Xi(),R=th(h),L=Su(x,R);L.payload=p,C!=null&&(L.callback=C),p=Na(h,L,R),p!==null&&(Ml(p,h,R,x),RC(p,h,R))},enqueueReplaceState:function(h,p,C){h=h._reactInternals;var x=Xi(),R=th(h),L=Su(x,R);L.tag=1,L.payload=p,C!=null&&(L.callback=C),p=Na(h,L,R),p!==null&&(Ml(p,h,R,x),RC(p,h,R))},enqueueForceUpdate:function(h,p){h=h._reactInternals;var C=Xi(),x=th(h),R=Su(C,x);R.tag=2,p!=null&&(R.callback=p),p=Na(h,R,x),p!==null&&(Ml(p,h,x,C),RC(p,h,x))}};function jy(h,p,C,x,R,L,Z){return h=h.stateNode,typeof h.shouldComponentUpdate=="function"?h.shouldComponentUpdate(x,L,Z):p.prototype&&p.prototype.isPureReactComponent?!Tt(C,x)||!Tt(R,L):!0}function Pp(h,p,C){var x=!1,R=Ud,L=p.contextType;return typeof L=="object"&&L!==null?L=Ga(L):(R=bo(p)?Wi:Fi.current,x=p.contextTypes,L=(x=x!=null)?tf(h,R):Ud),p=new p(C,L),h.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=NC,h.stateNode=p,p._reactInternals=h,x&&(h=h.stateNode,h.__reactInternalMemoizedUnmaskedChildContext=R,h.__reactInternalMemoizedMaskedChildContext=L),p}function hf(h,p,C,x){h=p.state,typeof p.componentWillReceiveProps=="function"&&p.componentWillReceiveProps(C,x),typeof p.UNSAFE_componentWillReceiveProps=="function"&&p.UNSAFE_componentWillReceiveProps(C,x),p.state!==h&&NC.enqueueReplaceState(p,p.state,null)}function Ky(h,p,C,x){var R=h.stateNode;R.props=C,R.state=h.memoizedState,R.refs={},FC(h);var L=p.contextType;typeof L=="object"&&L!==null?R.context=Ga(L):(L=bo(p)?Wi:Fi.current,R.context=tf(h,L)),R.state=h.memoizedState,L=p.getDerivedStateFromProps,typeof L=="function"&&(OC(h,p,L,C),R.state=h.memoizedState),typeof p.getDerivedStateFromProps=="function"||typeof R.getSnapshotBeforeUpdate=="function"||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(p=R.state,typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount(),p!==R.state&&NC.enqueueReplaceState(R,R.state,null),nf(h,C,R,x),R.state=h.memoizedState),typeof R.componentDidMount=="function"&&(h.flags|=4194308)}function Fp(h,p){try{var C="",x=p;do C+=Be(x),x=x.return;while(x);var R=C}catch(L){R=`
785
785
  Error generating stack: `+L.message+`
786
- `+L.stack}return{value:h,source:p,stack:R,digest:null}}function _C(h,p,C){return{value:h,source:null,stack:C??null,digest:p??null}}function pf(h,p){try{console.error(p.value)}catch(C){setTimeout(function(){throw C})}}var nE=typeof WeakMap=="function"?WeakMap:Map;function gm(h,p,C){C=Su(-1,C),C.tag=3,C.payload={element:null};var x=p.value;return C.callback=function(){JC||(JC=!0,cb=x),pf(h,p)},C}function VC(h,p,C){C=Su(-1,C),C.tag=3;var x=h.type.getDerivedStateFromError;if(typeof x=="function"){var R=p.value;C.payload=function(){return x(R)},C.callback=function(){pf(h,p)}}var L=h.stateNode;return L!==null&&typeof L.componentDidCatch=="function"&&(C.callback=function(){pf(h,p),typeof x!="function"&&(qd===null?qd=new Set([this]):qd.add(this));var Z=p.stack;this.componentDidCatch(p.value,{componentStack:Z!==null?Z:""})}),C}function fm(h,p,C){var x=h.pingCache;if(x===null){x=h.pingCache=new nE;var R=new Set;x.set(p,R)}else R=x.get(p),R===void 0&&(R=new Set,x.set(p,R));R.has(C)||(R.add(C),h=OD.bind(null,h,p,C),p.then(h,h))}function iE(h){do{var p;if((p=h.tag===13)&&(p=h.memoizedState,p=p!==null?p.dehydrated!==null:!0),p)return h;h=h.return}while(h!==null);return null}function Yy(h,p,C,x,R){return h.mode&1?(h.flags|=65536,h.lanes=R,h):(h===p?h.flags|=65536:(h.flags|=128,C.flags|=131072,C.flags&=-52805,C.tag===1&&(C.alternate===null?C.tag=17:(p=Su(-1,1),p.tag=2,Na(C,p,1))),C.lanes|=1),h)}var zC=T.ReactCurrentOwner,Ki=!1;function hi(h,p,C,x){p.child=h===null?xC(p,null,C,x):vn(p,h.child,C,x)}function oE(h,p,C,x,R){C=C.render;var L=p.ref;return Kd(p,R),x=Ep(h,p,C,x,L,R),C=MC(),h!==null&&!Ki?(p.updateQueue=h.updateQueue,p.flags&=-2053,h.lanes&=~R,Fl(h,p,R)):(qs&&C&&sm(p),p.flags|=1,hi(h,p,x,R),p.child)}function Zy(h,p,C,x,R){if(h===null){var L=C.type;return typeof L=="function"&&!n0(L)&&L.defaultProps===void 0&&C.compare===null&&C.defaultProps===void 0?(p.tag=15,p.type=L,yc(h,p,L,x,R)):(h=i0(C.type,null,x,p,p.mode,R),h.ref=p.ref,h.return=p,p.child=h)}if(L=h.child,!(h.lanes&R)){var Z=L.memoizedProps;if(C=C.compare,C=C!==null?C:Tt,C(Z,x)&&h.ref===p.ref)return Fl(h,p,R)}return p.flags|=1,h=Il(L,x),h.ref=p.ref,h.return=p,p.child=h}function yc(h,p,C,x,R){if(h!==null){var L=h.memoizedProps;if(Tt(L,x)&&h.ref===p.ref)if(Ki=!1,p.pendingProps=x=L,(h.lanes&R)!==0)h.flags&131072&&(Ki=!0);else return p.lanes=h.lanes,Fl(h,p,R)}return Jy(h,p,C,x,R)}function Xy(h,p,C){var x=p.pendingProps,R=x.children,L=h!==null?h.memoizedState:null;if(x.mode==="hidden")if(!(p.mode&1))p.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ws(mf,ta),ta|=C;else{if(!(C&1073741824))return h=L!==null?L.baseLanes|C:C,p.lanes=p.childLanes=1073741824,p.memoizedState={baseLanes:h,cachePool:null,transitions:null},p.updateQueue=null,Ws(mf,ta),ta|=h,null;p.memoizedState={baseLanes:0,cachePool:null,transitions:null},x=L!==null?L.baseLanes:C,Ws(mf,ta),ta|=x}else L!==null?(x=L.baseLanes|C,p.memoizedState=null):x=C,Ws(mf,ta),ta|=x;return hi(h,p,R,C),p.child}function $y(h,p){var C=p.ref;(h===null&&C!==null||h!==null&&h.ref!==C)&&(p.flags|=512,p.flags|=2097152)}function Jy(h,p,C,x,R){var L=bo(C)?Wi:Fi.current;return L=tf(p,L),Kd(p,R),C=Ep(h,p,C,x,L,R),x=MC(),h!==null&&!Ki?(p.updateQueue=h.updateQueue,p.flags&=-2053,h.lanes&=~R,Fl(h,p,R)):(qs&&x&&sm(p),p.flags|=1,hi(h,p,C,R),p.child)}function qy(h,p,C,x,R){if(bo(C)){var L=!0;Ba(p)}else L=!1;if(Kd(p,R),p.stateNode===null)UC(h,p),Pp(p,C,x),Ky(p,C,x,R),x=!0;else if(h===null){var Z=p.stateNode,he=p.memoizedProps;Z.props=he;var Ae=Z.context,Ge=C.contextType;typeof Ge=="object"&&Ge!==null?Ge=Ga(Ge):(Ge=bo(C)?Wi:Fi.current,Ge=tf(p,Ge));var at=C.getDerivedStateFromProps,ct=typeof at=="function"||typeof Z.getSnapshotBeforeUpdate=="function";ct||typeof Z.UNSAFE_componentWillReceiveProps!="function"&&typeof Z.componentWillReceiveProps!="function"||(he!==x||Ae!==Ge)&&hf(p,Z,x,Ge),Oa=!1;var it=p.memoizedState;Z.state=it,nf(p,x,Z,R),Ae=p.memoizedState,he!==x||it!==Ae||yo.current||Oa?(typeof at=="function"&&(OC(p,C,at,x),Ae=p.memoizedState),(he=Oa||jy(p,C,he,x,it,Ae,Ge))?(ct||typeof Z.UNSAFE_componentWillMount!="function"&&typeof Z.componentWillMount!="function"||(typeof Z.componentWillMount=="function"&&Z.componentWillMount(),typeof Z.UNSAFE_componentWillMount=="function"&&Z.UNSAFE_componentWillMount()),typeof Z.componentDidMount=="function"&&(p.flags|=4194308)):(typeof Z.componentDidMount=="function"&&(p.flags|=4194308),p.memoizedProps=x,p.memoizedState=Ae),Z.props=x,Z.state=Ae,Z.context=Ge,x=he):(typeof Z.componentDidMount=="function"&&(p.flags|=4194308),x=!1)}else{Z=p.stateNode,X3(h,p),he=p.memoizedProps,Ge=p.type===p.elementType?he:Va(p.type,he),Z.props=Ge,ct=p.pendingProps,it=Z.context,Ae=C.contextType,typeof Ae=="object"&&Ae!==null?Ae=Ga(Ae):(Ae=bo(C)?Wi:Fi.current,Ae=tf(p,Ae));var Dt=C.getDerivedStateFromProps;(at=typeof Dt=="function"||typeof Z.getSnapshotBeforeUpdate=="function")||typeof Z.UNSAFE_componentWillReceiveProps!="function"&&typeof Z.componentWillReceiveProps!="function"||(he!==ct||it!==Ae)&&hf(p,Z,x,Ae),Oa=!1,it=p.memoizedState,Z.state=it,nf(p,x,Z,R);var _t=p.memoizedState;he!==ct||it!==_t||yo.current||Oa?(typeof Dt=="function"&&(OC(p,C,Dt,x),_t=p.memoizedState),(Ge=Oa||jy(p,C,Ge,x,it,_t,Ae)||!1)?(at||typeof Z.UNSAFE_componentWillUpdate!="function"&&typeof Z.componentWillUpdate!="function"||(typeof Z.componentWillUpdate=="function"&&Z.componentWillUpdate(x,_t,Ae),typeof Z.UNSAFE_componentWillUpdate=="function"&&Z.UNSAFE_componentWillUpdate(x,_t,Ae)),typeof Z.componentDidUpdate=="function"&&(p.flags|=4),typeof Z.getSnapshotBeforeUpdate=="function"&&(p.flags|=1024)):(typeof Z.componentDidUpdate!="function"||he===h.memoizedProps&&it===h.memoizedState||(p.flags|=4),typeof Z.getSnapshotBeforeUpdate!="function"||he===h.memoizedProps&&it===h.memoizedState||(p.flags|=1024),p.memoizedProps=x,p.memoizedState=_t),Z.props=x,Z.state=_t,Z.context=Ae,x=Ge):(typeof Z.componentDidUpdate!="function"||he===h.memoizedProps&&it===h.memoizedState||(p.flags|=4),typeof Z.getSnapshotBeforeUpdate!="function"||he===h.memoizedProps&&it===h.memoizedState||(p.flags|=1024),x=!1)}return eb(h,p,C,x,L,R)}function eb(h,p,C,x,R,L){$y(h,p);var Z=(p.flags&128)!==0;if(!x&&!Z)return R&&U3(p,C,!1),Fl(h,p,L);x=p.stateNode,zC.current=p;var he=Z&&typeof C.getDerivedStateFromError!="function"?null:x.render();return p.flags|=1,h!==null&&Z?(p.child=vn(p,h.child,null,L),p.child=vn(p,null,he,L)):hi(h,p,he,L),p.memoizedState=x.state,R&&U3(p,C,!0),p.child}function aE(h){var p=h.stateNode;p.pendingContext?z3(h,p.pendingContext,p.pendingContext!==p.context):p.context&&z3(h,p.context,!1),ky(h,p.containerInfo)}function bc(h,p,C,x,R){return Ac(),mc(R),p.flags|=256,hi(h,p,C,x),p.child}var Am={dehydrated:null,treeContext:null,retryLane:0};function mm(h){return{baseLanes:h,cachePool:null,transitions:null}}function QC(h,p,C){var x=p.pendingProps,R=rn.current,L=!1,Z=(p.flags&128)!==0,he;if((he=Z)||(he=h!==null&&h.memoizedState===null?!1:(R&2)!==0),he?(L=!0,p.flags&=-129):(h===null||h.memoizedState!==null)&&(R|=1),Ws(rn,R&1),h===null)return So(p),h=p.memoizedState,h!==null&&(h=h.dehydrated,h!==null)?(p.mode&1?h.data==="$!"?p.lanes=8:p.lanes=1073741824:p.lanes=1,null):(Z=x.children,h=x.fallback,L?(x=p.mode,L=p.child,Z={mode:"hidden",children:Z},!(x&1)&&L!==null?(L.childLanes=0,L.pendingProps=Z):L=o0(Z,x,0,null),h=Ip(h,x,C,null),L.return=p,h.return=p,L.sibling=h,p.child=L,p.child.memoizedState=mm(C),p.memoizedState=Am,h):gf(p,Z));if(R=h.memoizedState,R!==null&&(he=R.dehydrated,he!==null))return lr(h,p,Z,x,he,R,C);if(L){L=x.fallback,Z=p.mode,R=h.child,he=R.sibling;var Ae={mode:"hidden",children:x.children};return!(Z&1)&&p.child!==R?(x=p.child,x.childLanes=0,x.pendingProps=Ae,p.deletions=null):(x=Il(R,Ae),x.subtreeFlags=R.subtreeFlags&14680064),he!==null?L=Il(he,L):(L=Ip(L,Z,C,null),L.flags|=2),L.return=p,x.return=p,x.sibling=L,p.child=x,x=L,L=p.child,Z=h.child.memoizedState,Z=Z===null?mm(C):{baseLanes:Z.baseLanes|C,cachePool:null,transitions:Z.transitions},L.memoizedState=Z,L.childLanes=h.childLanes&~C,p.memoizedState=Am,x}return L=h.child,h=L.sibling,x=Il(L,{mode:"visible",children:x.children}),!(p.mode&1)&&(x.lanes=C),x.return=p,x.sibling=null,h!==null&&(C=p.deletions,C===null?(p.deletions=[h],p.flags|=16):C.push(h)),p.child=x,p.memoizedState=null,x}function gf(h,p){return p=o0({mode:"visible",children:p},h.mode,0,null),p.return=h,h.child=p}function Fu(h,p,C,x){return x!==null&&mc(x),vn(p,h.child,null,C),h=gf(p,p.pendingProps.children),h.flags|=2,p.memoizedState=null,h}function lr(h,p,C,x,R,L,Z){if(C)return p.flags&256?(p.flags&=-257,x=_C(Error(r(422))),Fu(h,p,Z,x)):p.memoizedState!==null?(p.child=h.child,p.flags|=128,null):(L=x.fallback,R=p.mode,x=o0({mode:"visible",children:x.children},R,0,null),L=Ip(L,R,Z,null),L.flags|=2,x.return=p,L.return=p,x.sibling=L,p.child=x,p.mode&1&&vn(p,h.child,null,Z),p.child.memoizedState=mm(Z),p.memoizedState=Am,L);if(!(p.mode&1))return Fu(h,p,Z,null);if(R.data==="$!"){if(x=R.nextSibling&&R.nextSibling.dataset,x)var he=x.dgst;return x=he,L=Error(r(419)),x=_C(L,x,void 0),Fu(h,p,Z,x)}if(he=(Z&h.childLanes)!==0,Ki||he){if(x=ti,x!==null){switch(Z&-Z){case 4:R=2;break;case 16:R=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:R=32;break;case 536870912:R=268435456;break;default:R=0}R=R&(x.suspendedLanes|Z)?0:R,R!==0&&R!==L.retryLane&&(L.retryLane=R,bu(h,R),Ml(x,h,R,-1))}return fb(),x=_C(Error(r(421))),Fu(h,p,Z,x)}return R.data==="$?"?(p.flags|=128,p.child=h.child,p=ND.bind(null,h),R._reactRetry=p,null):(h=L.treeContext,Jo=zd(R.nextSibling),Ti=p,qs=!0,El=null,h!==null&&(La[Ha++]=pc,La[Ha++]=gc,La[Ha++]=vp,pc=h.id,gc=h.overflow,vp=p),p=gf(p,x.children),p.flags|=4096,p)}function vm(h,p,C){h.lanes|=p;var x=h.alternate;x!==null&&(x.lanes|=p),di(h.return,p,C)}function Cm(h,p,C,x,R){var L=h.memoizedState;L===null?h.memoizedState={isBackwards:p,rendering:null,renderingStartTime:0,last:x,tail:C,tailMode:R}:(L.isBackwards=p,L.rendering=null,L.renderingStartTime=0,L.last=x,L.tail=C,L.tailMode=R)}function Xd(h,p,C){var x=p.pendingProps,R=x.revealOrder,L=x.tail;if(hi(h,p,x.children,C),x=rn.current,x&2)x=x&1|2,p.flags|=128;else{if(h!==null&&h.flags&128)e:for(h=p.child;h!==null;){if(h.tag===13)h.memoizedState!==null&&vm(h,C,p);else if(h.tag===19)vm(h,C,p);else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===p)break e;for(;h.sibling===null;){if(h.return===null||h.return===p)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}x&=1}if(Ws(rn,x),!(p.mode&1))p.memoizedState=null;else switch(R){case"forwards":for(C=p.child,R=null;C!==null;)h=C.alternate,h!==null&&Sp(h)===null&&(R=C),C=C.sibling;C=R,C===null?(R=p.child,p.child=null):(R=C.sibling,C.sibling=null),Cm(p,!1,R,C,L);break;case"backwards":for(C=null,R=p.child,p.child=null;R!==null;){if(h=R.alternate,h!==null&&Sp(h)===null){p.child=R;break}h=R.sibling,R.sibling=C,C=R,R=h}Cm(p,!0,C,null,L);break;case"together":Cm(p,!1,null,null,void 0);break;default:p.memoizedState=null}return p.child}function UC(h,p){!(p.mode&1)&&h!==null&&(h.alternate=null,p.alternate=null,p.flags|=2)}function Fl(h,p,C){if(h!==null&&(p.dependencies=h.dependencies),Jd|=p.lanes,!(C&p.childLanes))return null;if(h!==null&&p.child!==h.child)throw Error(r(153));if(p.child!==null){for(h=p.child,C=Il(h,h.pendingProps),p.child=C,C.return=p;h.sibling!==null;)h=h.sibling,C=C.sibling=Il(h,h.pendingProps),C.return=p;C.sibling=null}return p.child}function lE(h,p,C){switch(p.tag){case 3:aE(p),Ac();break;case 5:By(p);break;case 1:bo(p.type)&&Ba(p);break;case 4:ky(p,p.stateNode.containerInfo);break;case 10:var x=p.type._context,R=p.memoizedProps.value;Ws(om,x._currentValue),x._currentValue=R;break;case 13:if(x=p.memoizedState,x!==null)return x.dehydrated!==null?(Ws(rn,rn.current&1),p.flags|=128,null):C&p.child.childLanes?QC(h,p,C):(Ws(rn,rn.current&1),h=Fl(h,p,C),h!==null?h.sibling:null);Ws(rn,rn.current&1);break;case 19:if(x=(C&p.childLanes)!==0,h.flags&128){if(x)return Xd(h,p,C);p.flags|=128}if(R=p.memoizedState,R!==null&&(R.rendering=null,R.tail=null,R.lastEffect=null),Ws(rn,rn.current),x)break;return null;case 22:case 23:return p.lanes=0,Xy(h,p,C)}return Fl(h,p,C)}var pi,tb,cE,rb;pi=function(h,p){for(var C=p.child;C!==null;){if(C.tag===5||C.tag===6)h.appendChild(C.stateNode);else if(C.tag!==4&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===p)break;for(;C.sibling===null;){if(C.return===null||C.return===p)return;C=C.return}C.sibling.return=C.return,C=C.sibling}},tb=function(){},cE=function(h,p,C,x){var R=h.memoizedProps;if(R!==x){h=p.stateNode,xu(vc.current);var L=null;switch(C){case"input":R=oe(h,R),x=oe(h,x),L=[];break;case"select":R=ae({},R,{value:void 0}),x=ae({},x,{value:void 0}),L=[];break;case"textarea":R=tt(h,R),x=tt(h,x),L=[];break;default:typeof R.onClick!="function"&&typeof x.onClick=="function"&&(h.onclick=fC)}un(C,x);var Z;C=null;for(Ge in R)if(!x.hasOwnProperty(Ge)&&R.hasOwnProperty(Ge)&&R[Ge]!=null)if(Ge==="style"){var he=R[Ge];for(Z in he)he.hasOwnProperty(Z)&&(C||(C={}),C[Z]="")}else Ge!=="dangerouslySetInnerHTML"&&Ge!=="children"&&Ge!=="suppressContentEditableWarning"&&Ge!=="suppressHydrationWarning"&&Ge!=="autoFocus"&&(n.hasOwnProperty(Ge)?L||(L=[]):(L=L||[]).push(Ge,null));for(Ge in x){var Ae=x[Ge];if(he=R!=null?R[Ge]:void 0,x.hasOwnProperty(Ge)&&Ae!==he&&(Ae!=null||he!=null))if(Ge==="style")if(he){for(Z in he)!he.hasOwnProperty(Z)||Ae&&Ae.hasOwnProperty(Z)||(C||(C={}),C[Z]="");for(Z in Ae)Ae.hasOwnProperty(Z)&&he[Z]!==Ae[Z]&&(C||(C={}),C[Z]=Ae[Z])}else C||(L||(L=[]),L.push(Ge,C)),C=Ae;else Ge==="dangerouslySetInnerHTML"?(Ae=Ae?Ae.__html:void 0,he=he?he.__html:void 0,Ae!=null&&he!==Ae&&(L=L||[]).push(Ge,Ae)):Ge==="children"?typeof Ae!="string"&&typeof Ae!="number"||(L=L||[]).push(Ge,""+Ae):Ge!=="suppressContentEditableWarning"&&Ge!=="suppressHydrationWarning"&&(n.hasOwnProperty(Ge)?(Ae!=null&&Ge==="onScroll"&&$s("scroll",h),L||he===Ae||(L=[])):(L=L||[]).push(Ge,Ae))}C&&(L=L||[]).push("style",C);var Ge=L;(p.updateQueue=Ge)&&(p.flags|=4)}},rb=function(h,p,C,x){C!==x&&(p.flags|=4)};function wm(h,p){if(!qs)switch(h.tailMode){case"hidden":p=h.tail;for(var C=null;p!==null;)p.alternate!==null&&(C=p),p=p.sibling;C===null?h.tail=null:C.sibling=null;break;case"collapsed":C=h.tail;for(var x=null;C!==null;)C.alternate!==null&&(x=C),C=C.sibling;x===null?p||h.tail===null?h.tail=null:h.tail.sibling=null:x.sibling=null}}function gi(h){var p=h.alternate!==null&&h.alternate.child===h.child,C=0,x=0;if(p)for(var R=h.child;R!==null;)C|=R.lanes|R.childLanes,x|=R.subtreeFlags&14680064,x|=R.flags&14680064,R.return=h,R=R.sibling;else for(R=h.child;R!==null;)C|=R.lanes|R.childLanes,x|=R.subtreeFlags,x|=R.flags,R.return=h,R=R.sibling;return h.subtreeFlags|=x,h.childLanes=C,p}function MD(h,p,C){var x=p.pendingProps;switch(wp(p),p.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gi(p),null;case 1:return bo(p.type)&&CC(),gi(p),null;case 3:return x=p.stateNode,Yd(),Js(yo),Js(Fi),DC(),x.pendingContext&&(x.context=x.pendingContext,x.pendingContext=null),(h===null||h.child===null)&&(nm(p)?p.flags|=4:h===null||h.memoizedState.isDehydrated&&!(p.flags&256)||(p.flags|=1024,El!==null&&(hb(El),El=null))),tb(h,p),gi(p),null;case 5:TC(p);var R=xu(of.current);if(C=p.type,h!==null&&p.stateNode!=null)cE(h,p,C,x,R),h.ref!==p.ref&&(p.flags|=512,p.flags|=2097152);else{if(!x){if(p.stateNode===null)throw Error(r(166));return gi(p),null}if(h=xu(vc.current),nm(p)){x=p.stateNode,C=p.type;var L=p.memoizedProps;switch(x[dc]=p,x[Qd]=L,h=(p.mode&1)!==0,C){case"dialog":$s("cancel",x),$s("close",x);break;case"iframe":case"object":case"embed":$s("load",x);break;case"video":case"audio":for(R=0;R<vu.length;R++)$s(vu[R],x);break;case"source":$s("error",x);break;case"img":case"image":case"link":$s("error",x),$s("load",x);break;case"details":$s("toggle",x);break;case"input":Se(x,L),$s("invalid",x);break;case"select":x._wrapperState={wasMultiple:!!L.multiple},$s("invalid",x);break;case"textarea":Rt(x,L),$s("invalid",x)}un(C,L),R=null;for(var Z in L)if(L.hasOwnProperty(Z)){var he=L[Z];Z==="children"?typeof he=="string"?x.textContent!==he&&(L.suppressHydrationWarning!==!0&&qA(x.textContent,he,h),R=["children",he]):typeof he=="number"&&x.textContent!==""+he&&(L.suppressHydrationWarning!==!0&&qA(x.textContent,he,h),R=["children",""+he]):n.hasOwnProperty(Z)&&he!=null&&Z==="onScroll"&&$s("scroll",x)}switch(C){case"input":wt(x),rt(x,L,!0);break;case"textarea":wt(x),Lt(x);break;case"select":case"option":break;default:typeof L.onClick=="function"&&(x.onclick=fC)}x=R,p.updateQueue=x,x!==null&&(p.flags|=4)}else{Z=R.nodeType===9?R:R.ownerDocument,h==="http://www.w3.org/1999/xhtml"&&(h=sr(C)),h==="http://www.w3.org/1999/xhtml"?C==="script"?(h=Z.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild)):typeof x.is=="string"?h=Z.createElement(C,{is:x.is}):(h=Z.createElement(C),C==="select"&&(Z=h,x.multiple?Z.multiple=!0:x.size&&(Z.size=x.size))):h=Z.createElementNS(h,C),h[dc]=p,h[Qd]=x,pi(h,p,!1,!1),p.stateNode=h;e:{switch(Z=In(C,x),C){case"dialog":$s("cancel",h),$s("close",h),R=x;break;case"iframe":case"object":case"embed":$s("load",h),R=x;break;case"video":case"audio":for(R=0;R<vu.length;R++)$s(vu[R],h);R=x;break;case"source":$s("error",h),R=x;break;case"img":case"image":case"link":$s("error",h),$s("load",h),R=x;break;case"details":$s("toggle",h),R=x;break;case"input":Se(h,x),R=oe(h,x),$s("invalid",h);break;case"option":R=x;break;case"select":h._wrapperState={wasMultiple:!!x.multiple},R=ae({},x,{value:void 0}),$s("invalid",h);break;case"textarea":Rt(h,x),R=tt(h,x),$s("invalid",h);break;default:R=x}un(C,R),he=R;for(L in he)if(he.hasOwnProperty(L)){var Ae=he[L];L==="style"?go(h,Ae):L==="dangerouslySetInnerHTML"?(Ae=Ae?Ae.__html:void 0,Ae!=null&&Qr(h,Ae)):L==="children"?typeof Ae=="string"?(C!=="textarea"||Ae!=="")&&Us(h,Ae):typeof Ae=="number"&&Us(h,""+Ae):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(n.hasOwnProperty(L)?Ae!=null&&L==="onScroll"&&$s("scroll",h):Ae!=null&&F(h,L,Ae,Z))}switch(C){case"input":wt(h),rt(h,x,!1);break;case"textarea":wt(h),Lt(h);break;case"option":x.value!=null&&h.setAttribute("value",""+nt(x.value));break;case"select":h.multiple=!!x.multiple,L=x.value,L!=null?ot(h,!!x.multiple,L,!1):x.defaultValue!=null&&ot(h,!!x.multiple,x.defaultValue,!0);break;default:typeof R.onClick=="function"&&(h.onclick=fC)}switch(C){case"button":case"input":case"select":case"textarea":x=!!x.autoFocus;break e;case"img":x=!0;break e;default:x=!1}}x&&(p.flags|=4)}p.ref!==null&&(p.flags|=512,p.flags|=2097152)}return gi(p),null;case 6:if(h&&p.stateNode!=null)rb(h,p,h.memoizedProps,x);else{if(typeof x!="string"&&p.stateNode===null)throw Error(r(166));if(C=xu(of.current),xu(vc.current),nm(p)){if(x=p.stateNode,C=p.memoizedProps,x[dc]=p,(L=x.nodeValue!==C)&&(h=Ti,h!==null))switch(h.tag){case 3:qA(x.nodeValue,C,(h.mode&1)!==0);break;case 5:h.memoizedProps.suppressHydrationWarning!==!0&&qA(x.nodeValue,C,(h.mode&1)!==0)}L&&(p.flags|=4)}else x=(C.nodeType===9?C:C.ownerDocument).createTextNode(x),x[dc]=p,p.stateNode=x}return gi(p),null;case 13:if(Js(rn),x=p.memoizedState,h===null||h.memoizedState!==null&&h.memoizedState.dehydrated!==null){if(qs&&Jo!==null&&p.mode&1&&!(p.flags&128))Ty(),Ac(),p.flags|=98560,L=!1;else if(L=nm(p),x!==null&&x.dehydrated!==null){if(h===null){if(!L)throw Error(r(318));if(L=p.memoizedState,L=L!==null?L.dehydrated:null,!L)throw Error(r(317));L[dc]=p}else Ac(),!(p.flags&128)&&(p.memoizedState=null),p.flags|=4;gi(p),L=!1}else El!==null&&(hb(El),El=null),L=!0;if(!L)return p.flags&65536?p:null}return p.flags&128?(p.lanes=C,p):(x=x!==null,x!==(h!==null&&h.memoizedState!==null)&&x&&(p.child.flags|=8192,p.mode&1&&(h===null||rn.current&1?Qn===0&&(Qn=3):fb())),p.updateQueue!==null&&(p.flags|=4),gi(p),null);case 4:return Yd(),tb(h,p),h===null&&_d(p.stateNode.containerInfo),gi(p),null;case 10:return EC(p.type._context),gi(p),null;case 17:return bo(p.type)&&CC(),gi(p),null;case 19:if(Js(rn),L=p.memoizedState,L===null)return gi(p),null;if(x=(p.flags&128)!==0,Z=L.rendering,Z===null)if(x)wm(L,!1);else{if(Qn!==0||h!==null&&h.flags&128)for(h=p.child;h!==null;){if(Z=Sp(h),Z!==null){for(p.flags|=128,wm(L,!1),x=Z.updateQueue,x!==null&&(p.updateQueue=x,p.flags|=4),p.subtreeFlags=0,x=C,C=p.child;C!==null;)L=C,h=x,L.flags&=14680066,Z=L.alternate,Z===null?(L.childLanes=0,L.lanes=h,L.child=null,L.subtreeFlags=0,L.memoizedProps=null,L.memoizedState=null,L.updateQueue=null,L.dependencies=null,L.stateNode=null):(L.childLanes=Z.childLanes,L.lanes=Z.lanes,L.child=Z.child,L.subtreeFlags=0,L.deletions=null,L.memoizedProps=Z.memoizedProps,L.memoizedState=Z.memoizedState,L.updateQueue=Z.updateQueue,L.type=Z.type,h=Z.dependencies,L.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext}),C=C.sibling;return Ws(rn,rn.current&1|2),p.child}h=h.sibling}L.tail!==null&&ys()>Rp&&(p.flags|=128,x=!0,wm(L,!1),p.lanes=4194304)}else{if(!x)if(h=Sp(Z),h!==null){if(p.flags|=128,x=!0,C=h.updateQueue,C!==null&&(p.updateQueue=C,p.flags|=4),wm(L,!0),L.tail===null&&L.tailMode==="hidden"&&!Z.alternate&&!qs)return gi(p),null}else 2*ys()-L.renderingStartTime>Rp&&C!==1073741824&&(p.flags|=128,x=!0,wm(L,!1),p.lanes=4194304);L.isBackwards?(Z.sibling=p.child,p.child=Z):(C=L.last,C!==null?C.sibling=Z:p.child=Z,L.last=Z)}return L.tail!==null?(p=L.tail,L.rendering=p,L.tail=p.sibling,L.renderingStartTime=ys(),p.sibling=null,C=rn.current,Ws(rn,x?C&1|2:C&1),p):(gi(p),null);case 22:case 23:return gb(),x=p.memoizedState!==null,h!==null&&h.memoizedState!==null!==x&&(p.flags|=8192),x&&p.mode&1?ta&1073741824&&(gi(p),p.subtreeFlags&6&&(p.flags|=8192)):gi(p),null;case 24:return null;case 25:return null}throw Error(r(156,p.tag))}function ID(h,p){switch(wp(p),p.tag){case 1:return bo(p.type)&&CC(),h=p.flags,h&65536?(p.flags=h&-65537|128,p):null;case 3:return Yd(),Js(yo),Js(Fi),DC(),h=p.flags,h&65536&&!(h&128)?(p.flags=h&-65537|128,p):null;case 5:return TC(p),null;case 13:if(Js(rn),h=p.memoizedState,h!==null&&h.dehydrated!==null){if(p.alternate===null)throw Error(r(340));Ac()}return h=p.flags,h&65536?(p.flags=h&-65537|128,p):null;case 19:return Js(rn),null;case 4:return Yd(),null;case 10:return EC(p.type._context),null;case 22:case 23:return gb(),null;case 24:return null;default:return null}}var WC=!1,sn=!1,Yi=typeof WeakSet=="function"?WeakSet:Set,Bt=null;function ff(h,p){var C=h.ref;if(C!==null)if(typeof C=="function")try{C(null)}catch(x){hn(h,p,x)}else C.current=null}function jC(h,p,C){try{C()}catch(x){hn(h,p,x)}}var uE=!1;function kD(h,p){if(em=Zo,h=Hs(),KA(h)){if("selectionStart"in h)var C={start:h.selectionStart,end:h.selectionEnd};else e:{C=(C=h.ownerDocument)&&C.defaultView||window;var x=C.getSelection&&C.getSelection();if(x&&x.rangeCount!==0){C=x.anchorNode;var R=x.anchorOffset,L=x.focusNode;x=x.focusOffset;try{C.nodeType,L.nodeType}catch{C=null;break e}var Z=0,he=-1,Ae=-1,Ge=0,at=0,ct=h,it=null;t:for(;;){for(var Dt;ct!==C||R!==0&&ct.nodeType!==3||(he=Z+R),ct!==L||x!==0&&ct.nodeType!==3||(Ae=Z+x),ct.nodeType===3&&(Z+=ct.nodeValue.length),(Dt=ct.firstChild)!==null;)it=ct,ct=Dt;for(;;){if(ct===h)break t;if(it===C&&++Ge===R&&(he=Z),it===L&&++at===x&&(Ae=Z),(Dt=ct.nextSibling)!==null)break;ct=it,it=ct.parentNode}ct=Dt}C=he===-1||Ae===-1?null:{start:he,end:Ae}}else C=null}C=C||{start:0,end:0}}else C=null;for(Ap={focusedElem:h,selectionRange:C},Zo=!1,Bt=p;Bt!==null;)if(p=Bt,h=p.child,(p.subtreeFlags&1028)!==0&&h!==null)h.return=p,Bt=h;else for(;Bt!==null;){p=Bt;try{var _t=p.alternate;if(p.flags&1024)switch(p.tag){case 0:case 11:case 15:break;case 1:if(_t!==null){var Ut=_t.memoizedProps,En=_t.memoizedState,Re=p.stateNode,we=Re.getSnapshotBeforeUpdate(p.elementType===p.type?Ut:Va(p.type,Ut),En);Re.__reactInternalSnapshotBeforeUpdate=we}break;case 3:var Me=p.stateNode.containerInfo;Me.nodeType===1?Me.textContent="":Me.nodeType===9&&Me.documentElement&&Me.removeChild(Me.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(pt){hn(p,p.return,pt)}if(h=p.sibling,h!==null){h.return=p.return,Bt=h;break}Bt=p.return}return _t=uE,uE=!1,_t}function Ru(h,p,C){var x=p.updateQueue;if(x=x!==null?x.lastEffect:null,x!==null){var R=x=x.next;do{if((R.tag&h)===h){var L=R.destroy;R.destroy=void 0,L!==void 0&&jC(p,C,L)}R=R.next}while(R!==x)}}function ym(h,p){if(p=p.updateQueue,p=p!==null?p.lastEffect:null,p!==null){var C=p=p.next;do{if((C.tag&h)===h){var x=C.create;C.destroy=x()}C=C.next}while(C!==p)}}function KC(h){var p=h.ref;if(p!==null){var C=h.stateNode;switch(h.tag){case 5:h=C;break;default:h=C}typeof p=="function"?p(h):p.current=h}}function dE(h){var p=h.alternate;p!==null&&(h.alternate=null,dE(p)),h.child=null,h.deletions=null,h.sibling=null,h.tag===5&&(p=h.stateNode,p!==null&&(delete p[dc],delete p[Qd],delete p[mC],delete p[ee],delete p[qg])),h.stateNode=null,h.return=null,h.dependencies=null,h.memoizedProps=null,h.memoizedState=null,h.pendingProps=null,h.stateNode=null,h.updateQueue=null}function hE(h){return h.tag===5||h.tag===3||h.tag===4}function pE(h){e:for(;;){for(;h.sibling===null;){if(h.return===null||hE(h.return))return null;h=h.return}for(h.sibling.return=h.return,h=h.sibling;h.tag!==5&&h.tag!==6&&h.tag!==18;){if(h.flags&2||h.child===null||h.tag===4)continue e;h.child.return=h,h=h.child}if(!(h.flags&2))return h.stateNode}}function sb(h,p,C){var x=h.tag;if(x===5||x===6)h=h.stateNode,p?C.nodeType===8?C.parentNode.insertBefore(h,p):C.insertBefore(h,p):(C.nodeType===8?(p=C.parentNode,p.insertBefore(h,C)):(p=C,p.appendChild(h)),C=C._reactRootContainer,C!=null||p.onclick!==null||(p.onclick=fC));else if(x!==4&&(h=h.child,h!==null))for(sb(h,p,C),h=h.sibling;h!==null;)sb(h,p,C),h=h.sibling}function YC(h,p,C){var x=h.tag;if(x===5||x===6)h=h.stateNode,p?C.insertBefore(h,p):C.appendChild(h);else if(x!==4&&(h=h.child,h!==null))for(YC(h,p,C),h=h.sibling;h!==null;)YC(h,p,C),h=h.sibling}var ei=null,Rl=!1;function Sc(h,p,C){for(C=C.child;C!==null;)nb(h,p,C),C=C.sibling}function nb(h,p,C){if(Vi&&typeof Vi.onCommitFiberUnmount=="function")try{Vi.onCommitFiberUnmount(Wo,C)}catch{}switch(C.tag){case 5:sn||ff(C,p);case 6:var x=ei,R=Rl;ei=null,Sc(h,p,C),ei=x,Rl=R,ei!==null&&(Rl?(h=ei,C=C.stateNode,h.nodeType===8?h.parentNode.removeChild(C):h.removeChild(C)):ei.removeChild(C.stateNode));break;case 18:ei!==null&&(Rl?(h=ei,C=C.stateNode,h.nodeType===8?Py(h.parentNode,C):h.nodeType===1&&Py(h,C),ts(h)):Py(ei,C.stateNode));break;case 4:x=ei,R=Rl,ei=C.stateNode.containerInfo,Rl=!0,Sc(h,p,C),ei=x,Rl=R;break;case 0:case 11:case 14:case 15:if(!sn&&(x=C.updateQueue,x!==null&&(x=x.lastEffect,x!==null))){R=x=x.next;do{var L=R,Z=L.destroy;L=L.tag,Z!==void 0&&(L&2||L&4)&&jC(C,p,Z),R=R.next}while(R!==x)}Sc(h,p,C);break;case 1:if(!sn&&(ff(C,p),x=C.stateNode,typeof x.componentWillUnmount=="function"))try{x.props=C.memoizedProps,x.state=C.memoizedState,x.componentWillUnmount()}catch(he){hn(C,p,he)}Sc(h,p,C);break;case 21:Sc(h,p,C);break;case 22:C.mode&1?(sn=(x=sn)||C.memoizedState!==null,Sc(h,p,C),sn=x):Sc(h,p,C);break;default:Sc(h,p,C)}}function Af(h){var p=h.updateQueue;if(p!==null){h.updateQueue=null;var C=h.stateNode;C===null&&(C=h.stateNode=new Yi),p.forEach(function(x){var R=_D.bind(null,h,x);C.has(x)||(C.add(x),x.then(R,R))})}}function ea(h,p){var C=p.deletions;if(C!==null)for(var x=0;x<C.length;x++){var R=C[x];try{var L=h,Z=p,he=Z;e:for(;he!==null;){switch(he.tag){case 5:ei=he.stateNode,Rl=!1;break e;case 3:ei=he.stateNode.containerInfo,Rl=!0;break e;case 4:ei=he.stateNode.containerInfo,Rl=!0;break e}he=he.return}if(ei===null)throw Error(r(160));nb(L,Z,R),ei=null,Rl=!1;var Ae=R.alternate;Ae!==null&&(Ae.return=null),R.return=null}catch(Ge){hn(R,p,Ge)}}if(p.subtreeFlags&12854)for(p=p.child;p!==null;)ib(p,h),p=p.sibling}function ib(h,p){var C=h.alternate,x=h.flags;switch(h.tag){case 0:case 11:case 14:case 15:if(ea(p,h),Tl(h),x&4){try{Ru(3,h,h.return),ym(3,h)}catch(Ut){hn(h,h.return,Ut)}try{Ru(5,h,h.return)}catch(Ut){hn(h,h.return,Ut)}}break;case 1:ea(p,h),Tl(h),x&512&&C!==null&&ff(C,C.return);break;case 5:if(ea(p,h),Tl(h),x&512&&C!==null&&ff(C,C.return),h.flags&32){var R=h.stateNode;try{Us(R,"")}catch(Ut){hn(h,h.return,Ut)}}if(x&4&&(R=h.stateNode,R!=null)){var L=h.memoizedProps,Z=C!==null?C.memoizedProps:L,he=h.type,Ae=h.updateQueue;if(h.updateQueue=null,Ae!==null)try{he==="input"&&L.type==="radio"&&L.name!=null&&$e(R,L),In(he,Z);var Ge=In(he,L);for(Z=0;Z<Ae.length;Z+=2){var at=Ae[Z],ct=Ae[Z+1];at==="style"?go(R,ct):at==="dangerouslySetInnerHTML"?Qr(R,ct):at==="children"?Us(R,ct):F(R,at,ct,Ge)}switch(he){case"input":Ke(R,L);break;case"textarea":xt(R,L);break;case"select":var it=R._wrapperState.wasMultiple;R._wrapperState.wasMultiple=!!L.multiple;var Dt=L.value;Dt!=null?ot(R,!!L.multiple,Dt,!1):it!==!!L.multiple&&(L.defaultValue!=null?ot(R,!!L.multiple,L.defaultValue,!0):ot(R,!!L.multiple,L.multiple?[]:"",!1))}R[Qd]=L}catch(Ut){hn(h,h.return,Ut)}}break;case 6:if(ea(p,h),Tl(h),x&4){if(h.stateNode===null)throw Error(r(162));R=h.stateNode,L=h.memoizedProps;try{R.nodeValue=L}catch(Ut){hn(h,h.return,Ut)}}break;case 3:if(ea(p,h),Tl(h),x&4&&C!==null&&C.memoizedState.isDehydrated)try{ts(p.containerInfo)}catch(Ut){hn(h,h.return,Ut)}break;case 4:ea(p,h),Tl(h);break;case 13:ea(p,h),Tl(h),R=h.child,R.flags&8192&&(L=R.memoizedState!==null,R.stateNode.isHidden=L,!L||R.alternate!==null&&R.alternate.memoizedState!==null||(lb=ys())),x&4&&Af(h);break;case 22:if(at=C!==null&&C.memoizedState!==null,h.mode&1?(sn=(Ge=sn)||at,ea(p,h),sn=Ge):ea(p,h),Tl(h),x&8192){if(Ge=h.memoizedState!==null,(h.stateNode.isHidden=Ge)&&!at&&h.mode&1)for(Bt=h,at=h.child;at!==null;){for(ct=Bt=at;Bt!==null;){switch(it=Bt,Dt=it.child,it.tag){case 0:case 11:case 14:case 15:Ru(4,it,it.return);break;case 1:ff(it,it.return);var _t=it.stateNode;if(typeof _t.componentWillUnmount=="function"){x=it,C=it.return;try{p=x,_t.props=p.memoizedProps,_t.state=p.memoizedState,_t.componentWillUnmount()}catch(Ut){hn(x,C,Ut)}}break;case 5:ff(it,it.return);break;case 22:if(it.memoizedState!==null){$d(ct);continue}}Dt!==null?(Dt.return=it,Bt=Dt):$d(ct)}at=at.sibling}e:for(at=null,ct=h;;){if(ct.tag===5){if(at===null){at=ct;try{R=ct.stateNode,Ge?(L=R.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none"):(he=ct.stateNode,Ae=ct.memoizedProps.style,Z=Ae!=null&&Ae.hasOwnProperty("display")?Ae.display:null,he.style.display=Xs("display",Z))}catch(Ut){hn(h,h.return,Ut)}}}else if(ct.tag===6){if(at===null)try{ct.stateNode.nodeValue=Ge?"":ct.memoizedProps}catch(Ut){hn(h,h.return,Ut)}}else if((ct.tag!==22&&ct.tag!==23||ct.memoizedState===null||ct===h)&&ct.child!==null){ct.child.return=ct,ct=ct.child;continue}if(ct===h)break e;for(;ct.sibling===null;){if(ct.return===null||ct.return===h)break e;at===ct&&(at=null),ct=ct.return}at===ct&&(at=null),ct.sibling.return=ct.return,ct=ct.sibling}}break;case 19:ea(p,h),Tl(h),x&4&&Af(h);break;case 21:break;default:ea(p,h),Tl(h)}}function Tl(h){var p=h.flags;if(p&2){try{e:{for(var C=h.return;C!==null;){if(hE(C)){var x=C;break e}C=C.return}throw Error(r(160))}switch(x.tag){case 5:var R=x.stateNode;x.flags&32&&(Us(R,""),x.flags&=-33);var L=pE(h);YC(h,L,R);break;case 3:case 4:var Z=x.stateNode.containerInfo,he=pE(h);sb(h,he,Z);break;default:throw Error(r(161))}}catch(Ae){hn(h,h.return,Ae)}h.flags&=-3}p&4096&&(h.flags&=-4097)}function ZC(h,p,C){Bt=h,ob(h)}function ob(h,p,C){for(var x=(h.mode&1)!==0;Bt!==null;){var R=Bt,L=R.child;if(R.tag===22&&x){var Z=R.memoizedState!==null||WC;if(!Z){var he=R.alternate,Ae=he!==null&&he.memoizedState!==null||sn;he=WC;var Ge=sn;if(WC=Z,(sn=Ae)&&!Ge)for(Bt=R;Bt!==null;)Z=Bt,Ae=Z.child,Z.tag===22&&Z.memoizedState!==null?gE(R):Ae!==null?(Ae.return=Z,Bt=Ae):gE(R);for(;L!==null;)Bt=L,ob(L),L=L.sibling;Bt=R,WC=he,sn=Ge}Dl(h)}else R.subtreeFlags&8772&&L!==null?(L.return=R,Bt=L):Dl(h)}}function Dl(h){for(;Bt!==null;){var p=Bt;if(p.flags&8772){var C=p.alternate;try{if(p.flags&8772)switch(p.tag){case 0:case 11:case 15:sn||ym(5,p);break;case 1:var x=p.stateNode;if(p.flags&4&&!sn)if(C===null)x.componentDidMount();else{var R=p.elementType===p.type?C.memoizedProps:Va(p.type,C.memoizedProps);x.componentDidUpdate(R,C.memoizedState,x.__reactInternalSnapshotBeforeUpdate)}var L=p.updateQueue;L!==null&&Iy(p,L,x);break;case 3:var Z=p.updateQueue;if(Z!==null){if(C=null,p.child!==null)switch(p.child.tag){case 5:C=p.child.stateNode;break;case 1:C=p.child.stateNode}Iy(p,Z,C)}break;case 5:var he=p.stateNode;if(C===null&&p.flags&4){C=he;var Ae=p.memoizedProps;switch(p.type){case"button":case"input":case"select":case"textarea":Ae.autoFocus&&C.focus();break;case"img":Ae.src&&(C.src=Ae.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(p.memoizedState===null){var Ge=p.alternate;if(Ge!==null){var at=Ge.memoizedState;if(at!==null){var ct=at.dehydrated;ct!==null&&ts(ct)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}sn||p.flags&512&&KC(p)}catch(it){hn(p,p.return,it)}}if(p===h){Bt=null;break}if(C=p.sibling,C!==null){C.return=p.return,Bt=C;break}Bt=p.return}}function $d(h){for(;Bt!==null;){var p=Bt;if(p===h){Bt=null;break}var C=p.sibling;if(C!==null){C.return=p.return,Bt=C;break}Bt=p.return}}function gE(h){for(;Bt!==null;){var p=Bt;try{switch(p.tag){case 0:case 11:case 15:var C=p.return;try{ym(4,p)}catch(Ae){hn(p,C,Ae)}break;case 1:var x=p.stateNode;if(typeof x.componentDidMount=="function"){var R=p.return;try{x.componentDidMount()}catch(Ae){hn(p,R,Ae)}}var L=p.return;try{KC(p)}catch(Ae){hn(p,L,Ae)}break;case 5:var Z=p.return;try{KC(p)}catch(Ae){hn(p,Z,Ae)}}}catch(Ae){hn(p,p.return,Ae)}if(p===h){Bt=null;break}var he=p.sibling;if(he!==null){he.return=p.return,Bt=he;break}Bt=p.return}}var fE=Math.ceil,XC=T.ReactCurrentDispatcher,ab=T.ReactCurrentOwner,za=T.ReactCurrentBatchConfig,os=0,ti=null,Hn=null,fi=0,ta=0,mf=wo(0),Qn=0,bm=null,Jd=0,Sm=0,$C=0,xm=null,Eo=null,lb=0,Rp=1/0,Tu=null,JC=!1,cb=null,qd=null,qC=!1,eh=null,Zi=0,Em=0,ub=null,e0=-1,Pm=0;function Xi(){return os&6?ys():e0!==-1?e0:e0=ys()}function th(h){return h.mode&1?os&2&&fi!==0?fi&-fi:Y3.transition!==null?(Pm===0&&(Pm=ce()),Pm):(h=bt,h!==0||(h=window.event,h=h===void 0?16:VA(h.type)),h):1}function Ml(h,p,C,x){if(50<Em)throw Em=0,ub=null,Error(r(185));Fe(h,C,x),(!(os&2)||h!==ti)&&(h===ti&&(!(os&2)&&(Sm|=C),Qn===4&&rh(h,fi)),Po(h,x),C===1&&os===0&&!(p.mode&1)&&(Rp=ys()+500,wC&&Wd()))}function Po(h,p){var C=h.callbackNode;U(h,p);var x=Ko(h,h===ti?fi:0);if(x===0)C!==null&&op(C),h.callbackNode=null,h.callbackPriority=0;else if(p=x&-x,h.callbackPriority!==p){if(C!=null&&op(C),p===1)h.tag===0?mp(AE.bind(null,h)):W3(AE.bind(null,h)),AC(function(){!(os&6)&&Wd()}),C=null;else{switch(Xt(x)){case 1:C=Pd;break;case 4:C=Fd;break;case 16:C=wl;break;case 536870912:C=Pa;break;default:C=wl}C=SE(C,t0.bind(null,h))}h.callbackPriority=p,h.callbackNode=C}}function t0(h,p){if(e0=-1,Pm=0,os&6)throw Error(r(327));var C=h.callbackNode;if(vf()&&h.callbackNode!==C)return null;var x=Ko(h,h===ti?fi:0);if(x===0)return null;if(x&30||x&h.expiredLanes||p)p=r0(h,x);else{p=x;var R=os;os|=2;var L=vE();(ti!==h||fi!==p)&&(Tu=null,Rp=ys()+500,Dp(h,p));do try{HD();break}catch(he){mE(h,he)}while(!0);yu(),XC.current=L,os=R,Hn!==null?p=0:(ti=null,fi=0,p=Qn)}if(p!==0){if(p===2&&(R=te(h),R!==0&&(x=R,p=db(h,R))),p===1)throw C=bm,Dp(h,0),rh(h,x),Po(h,ys()),C;if(p===6)rh(h,x);else{if(R=h.current.alternate,!(x&30)&&!BD(R)&&(p=r0(h,x),p===2&&(L=te(h),L!==0&&(x=L,p=db(h,L))),p===1))throw C=bm,Dp(h,0),rh(h,x),Po(h,ys()),C;switch(h.finishedWork=R,h.finishedLanes=x,p){case 0:case 1:throw Error(r(345));case 2:Mp(h,Eo,Tu);break;case 3:if(rh(h,x),(x&130023424)===x&&(p=lb+500-ys(),10<p)){if(Ko(h,0)!==0)break;if(R=h.suspendedLanes,(R&x)!==x){Xi(),h.pingedLanes|=h.suspendedLanes&R;break}h.timeoutHandle=Vd(Mp.bind(null,h,Eo,Tu),p);break}Mp(h,Eo,Tu);break;case 4:if(rh(h,x),(x&4194240)===x)break;for(p=h.eventTimes,R=-1;0<x;){var Z=31-Vn(x);L=1<<Z,Z=p[Z],Z>R&&(R=Z),x&=~L}if(x=R,x=ys()-x,x=(120>x?120:480>x?480:1080>x?1080:1920>x?1920:3e3>x?3e3:4320>x?4320:1960*fE(x/1960))-x,10<x){h.timeoutHandle=Vd(Mp.bind(null,h,Eo,Tu),x);break}Mp(h,Eo,Tu);break;case 5:Mp(h,Eo,Tu);break;default:throw Error(r(329))}}}return Po(h,ys()),h.callbackNode===C?t0.bind(null,h):null}function db(h,p){var C=xm;return h.current.memoizedState.isDehydrated&&(Dp(h,p).flags|=256),h=r0(h,p),h!==2&&(p=Eo,Eo=C,p!==null&&hb(p)),h}function hb(h){Eo===null?Eo=h:Eo.push.apply(Eo,h)}function BD(h){for(var p=h;;){if(p.flags&16384){var C=p.updateQueue;if(C!==null&&(C=C.stores,C!==null))for(var x=0;x<C.length;x++){var R=C[x],L=R.getSnapshot;R=R.value;try{if(!Le(L(),R))return!1}catch{return!1}}}if(C=p.child,p.subtreeFlags&16384&&C!==null)C.return=p,p=C;else{if(p===h)break;for(;p.sibling===null;){if(p.return===null||p.return===h)return!0;p=p.return}p.sibling.return=p.return,p=p.sibling}}return!0}function rh(h,p){for(p&=~$C,p&=~Sm,h.suspendedLanes|=p,h.pingedLanes&=~p,h=h.expirationTimes;0<p;){var C=31-Vn(p),x=1<<C;h[C]=-1,p&=~x}}function AE(h){if(os&6)throw Error(r(327));vf();var p=Ko(h,0);if(!(p&1))return Po(h,ys()),null;var C=r0(h,p);if(h.tag!==0&&C===2){var x=te(h);x!==0&&(p=x,C=db(h,x))}if(C===1)throw C=bm,Dp(h,0),rh(h,p),Po(h,ys()),C;if(C===6)throw Error(r(345));return h.finishedWork=h.current.alternate,h.finishedLanes=p,Mp(h,Eo,Tu),Po(h,ys()),null}function pb(h,p){var C=os;os|=1;try{return h(p)}finally{os=C,os===0&&(Rp=ys()+500,wC&&Wd())}}function Tp(h){eh!==null&&eh.tag===0&&!(os&6)&&vf();var p=os;os|=1;var C=za.transition,x=bt;try{if(za.transition=null,bt=1,h)return h()}finally{bt=x,za.transition=C,os=p,!(os&6)&&Wd()}}function gb(){ta=mf.current,Js(mf)}function Dp(h,p){h.finishedWork=null,h.finishedLanes=0;var C=h.timeoutHandle;if(C!==-1&&(h.timeoutHandle=-1,rm(C)),Hn!==null)for(C=Hn.return;C!==null;){var x=C;switch(wp(x),x.tag){case 1:x=x.type.childContextTypes,x!=null&&CC();break;case 3:Yd(),Js(yo),Js(Fi),DC();break;case 5:TC(x);break;case 4:Yd();break;case 13:Js(rn);break;case 19:Js(rn);break;case 10:EC(x.type._context);break;case 22:case 23:gb()}C=C.return}if(ti=h,Hn=h=Il(h.current,null),fi=ta=p,Qn=0,bm=null,$C=Sm=Jd=0,Eo=xm=null,bp!==null){for(p=0;p<bp.length;p++)if(C=bp[p],x=C.interleaved,x!==null){C.interleaved=null;var R=x.next,L=C.pending;if(L!==null){var Z=L.next;L.next=R,x.next=Z}C.pending=x}bp=null}return h}function mE(h,p){do{var C=Hn;try{if(yu(),cm.current=HC,af){for(var x=dn.memoizedState;x!==null;){var R=x.queue;R!==null&&(R.pending=null),x=x.next}af=!1}if(Zd=0,zn=xn=dn=null,um=!1,xp=0,ab.current=null,C===null||C.return===null){Qn=1,bm=p,Hn=null;break}e:{var L=h,Z=C.return,he=C,Ae=p;if(p=fi,he.flags|=32768,Ae!==null&&typeof Ae=="object"&&typeof Ae.then=="function"){var Ge=Ae,at=he,ct=at.tag;if(!(at.mode&1)&&(ct===0||ct===11||ct===15)){var it=at.alternate;it?(at.updateQueue=it.updateQueue,at.memoizedState=it.memoizedState,at.lanes=it.lanes):(at.updateQueue=null,at.memoizedState=null)}var Dt=iE(Z);if(Dt!==null){Dt.flags&=-257,Yy(Dt,Z,he,L,p),Dt.mode&1&&fm(L,Ge,p),p=Dt,Ae=Ge;var _t=p.updateQueue;if(_t===null){var Ut=new Set;Ut.add(Ae),p.updateQueue=Ut}else _t.add(Ae);break e}else{if(!(p&1)){fm(L,Ge,p),fb();break e}Ae=Error(r(426))}}else if(qs&&he.mode&1){var En=iE(Z);if(En!==null){!(En.flags&65536)&&(En.flags|=256),Yy(En,Z,he,L,p),mc(Fp(Ae,he));break e}}L=Ae=Fp(Ae,he),Qn!==4&&(Qn=2),xm===null?xm=[L]:xm.push(L),L=Z;do{switch(L.tag){case 3:L.flags|=65536,p&=-p,L.lanes|=p;var Re=gm(L,Ae,p);$3(L,Re);break e;case 1:he=Ae;var we=L.type,Me=L.stateNode;if(!(L.flags&128)&&(typeof we.getDerivedStateFromError=="function"||Me!==null&&typeof Me.componentDidCatch=="function"&&(qd===null||!qd.has(Me)))){L.flags|=65536,p&=-p,L.lanes|=p;var pt=VC(L,he,p);$3(L,pt);break e}}L=L.return}while(L!==null)}wE(C)}catch(Kt){p=Kt,Hn===C&&C!==null&&(Hn=C=C.return);continue}break}while(!0)}function vE(){var h=XC.current;return XC.current=HC,h===null?HC:h}function fb(){(Qn===0||Qn===3||Qn===2)&&(Qn=4),ti===null||!(Jd&268435455)&&!(Sm&268435455)||rh(ti,fi)}function r0(h,p){var C=os;os|=2;var x=vE();(ti!==h||fi!==p)&&(Tu=null,Dp(h,p));do try{LD();break}catch(R){mE(h,R)}while(!0);if(yu(),os=C,XC.current=x,Hn!==null)throw Error(r(261));return ti=null,fi=0,Qn}function LD(){for(;Hn!==null;)CE(Hn)}function HD(){for(;Hn!==null&&!lu();)CE(Hn)}function CE(h){var p=bE(h.alternate,h,ta);h.memoizedProps=h.pendingProps,p===null?wE(h):Hn=p,ab.current=null}function wE(h){var p=h;do{var C=p.alternate;if(h=p.return,p.flags&32768){if(C=ID(C,p),C!==null){C.flags&=32767,Hn=C;return}if(h!==null)h.flags|=32768,h.subtreeFlags=0,h.deletions=null;else{Qn=6,Hn=null;return}}else if(C=MD(C,p,ta),C!==null){Hn=C;return}if(p=p.sibling,p!==null){Hn=p;return}Hn=p=h}while(p!==null);Qn===0&&(Qn=5)}function Mp(h,p,C){var x=bt,R=za.transition;try{za.transition=null,bt=1,GD(h,p,C,x)}finally{za.transition=R,bt=x}return null}function GD(h,p,C,x){do vf();while(eh!==null);if(os&6)throw Error(r(327));C=h.finishedWork;var R=h.finishedLanes;if(C===null)return null;if(h.finishedWork=null,h.finishedLanes=0,C===h.current)throw Error(r(177));h.callbackNode=null,h.callbackPriority=0;var L=C.lanes|C.childLanes;if(Ye(h,L),h===ti&&(Hn=ti=null,fi=0),!(C.subtreeFlags&2064)&&!(C.flags&2064)||qC||(qC=!0,SE(wl,function(){return vf(),null})),L=(C.flags&15990)!==0,C.subtreeFlags&15990||L){L=za.transition,za.transition=null;var Z=bt;bt=1;var he=os;os|=4,ab.current=null,kD(h,C),ib(C,h),FD(Ap),Zo=!!em,Ap=em=null,h.current=C,ZC(C),Hg(),os=he,bt=Z,za.transition=L}else h.current=C;if(qC&&(qC=!1,eh=h,Zi=R),L=h.pendingLanes,L===0&&(qd=null),cu(C.stateNode),Po(h,ys()),p!==null)for(x=h.onRecoverableError,C=0;C<p.length;C++)R=p[C],x(R.value,{componentStack:R.stack,digest:R.digest});if(JC)throw JC=!1,h=cb,cb=null,h;return Zi&1&&h.tag!==0&&vf(),L=h.pendingLanes,L&1?h===ub?Em++:(Em=0,ub=h):Em=0,Wd(),null}function vf(){if(eh!==null){var h=Xt(Zi),p=za.transition,C=bt;try{if(za.transition=null,bt=16>h?16:h,eh===null)var x=!1;else{if(h=eh,eh=null,Zi=0,os&6)throw Error(r(331));var R=os;for(os|=4,Bt=h.current;Bt!==null;){var L=Bt,Z=L.child;if(Bt.flags&16){var he=L.deletions;if(he!==null){for(var Ae=0;Ae<he.length;Ae++){var Ge=he[Ae];for(Bt=Ge;Bt!==null;){var at=Bt;switch(at.tag){case 0:case 11:case 15:Ru(8,at,L)}var ct=at.child;if(ct!==null)ct.return=at,Bt=ct;else for(;Bt!==null;){at=Bt;var it=at.sibling,Dt=at.return;if(dE(at),at===Ge){Bt=null;break}if(it!==null){it.return=Dt,Bt=it;break}Bt=Dt}}}var _t=L.alternate;if(_t!==null){var Ut=_t.child;if(Ut!==null){_t.child=null;do{var En=Ut.sibling;Ut.sibling=null,Ut=En}while(Ut!==null)}}Bt=L}}if(L.subtreeFlags&2064&&Z!==null)Z.return=L,Bt=Z;else e:for(;Bt!==null;){if(L=Bt,L.flags&2048)switch(L.tag){case 0:case 11:case 15:Ru(9,L,L.return)}var Re=L.sibling;if(Re!==null){Re.return=L.return,Bt=Re;break e}Bt=L.return}}var we=h.current;for(Bt=we;Bt!==null;){Z=Bt;var Me=Z.child;if(Z.subtreeFlags&2064&&Me!==null)Me.return=Z,Bt=Me;else e:for(Z=we;Bt!==null;){if(he=Bt,he.flags&2048)try{switch(he.tag){case 0:case 11:case 15:ym(9,he)}}catch(Kt){hn(he,he.return,Kt)}if(he===Z){Bt=null;break e}var pt=he.sibling;if(pt!==null){pt.return=he.return,Bt=pt;break e}Bt=he.return}}if(os=R,Wd(),Vi&&typeof Vi.onPostCommitFiberRoot=="function")try{Vi.onPostCommitFiberRoot(Wo,h)}catch{}x=!0}return x}finally{bt=C,za.transition=p}}return!1}function s0(h,p,C){p=Fp(C,p),p=gm(h,p,1),h=Na(h,p,1),p=Xi(),h!==null&&(Fe(h,1,p),Po(h,p))}function hn(h,p,C){if(h.tag===3)s0(h,h,C);else for(;p!==null;){if(p.tag===3){s0(p,h,C);break}else if(p.tag===1){var x=p.stateNode;if(typeof p.type.getDerivedStateFromError=="function"||typeof x.componentDidCatch=="function"&&(qd===null||!qd.has(x))){h=Fp(C,h),h=VC(p,h,1),p=Na(p,h,1),h=Xi(),p!==null&&(Fe(p,1,h),Po(p,h));break}}p=p.return}}function OD(h,p,C){var x=h.pingCache;x!==null&&x.delete(p),p=Xi(),h.pingedLanes|=h.suspendedLanes&C,ti===h&&(fi&C)===C&&(Qn===4||Qn===3&&(fi&130023424)===fi&&500>ys()-lb?Dp(h,0):$C|=C),Po(h,p)}function yE(h,p){p===0&&(h.mode&1?(p=uu,uu<<=1,!(uu&130023424)&&(uu=4194304)):p=1);var C=Xi();h=bu(h,p),h!==null&&(Fe(h,p,C),Po(h,C))}function ND(h){var p=h.memoizedState,C=0;p!==null&&(C=p.retryLane),yE(h,C)}function _D(h,p){var C=0;switch(h.tag){case 13:var x=h.stateNode,R=h.memoizedState;R!==null&&(C=R.retryLane);break;case 19:x=h.stateNode;break;default:throw Error(r(314))}x!==null&&x.delete(p),yE(h,C)}var bE;bE=function(h,p,C){if(h!==null)if(h.memoizedProps!==p.pendingProps||yo.current)Ki=!0;else{if(!(h.lanes&C)&&!(p.flags&128))return Ki=!1,lE(h,p,C);Ki=!!(h.flags&131072)}else Ki=!1,qs&&p.flags&1048576&&j3(p,bC,p.index);switch(p.lanes=0,p.tag){case 2:var x=p.type;UC(h,p),h=p.pendingProps;var R=tf(p,Fi.current);Kd(p,C),R=Ep(null,p,x,h,R,C);var L=MC();return p.flags|=1,typeof R=="object"&&R!==null&&typeof R.render=="function"&&R.$$typeof===void 0?(p.tag=1,p.memoizedState=null,p.updateQueue=null,bo(x)?(L=!0,Ba(p)):L=!1,p.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,FC(p),R.updater=NC,p.stateNode=R,R._reactInternals=p,Ky(p,x,h,C),p=eb(null,p,x,!0,L,C)):(p.tag=0,qs&&L&&sm(p),hi(null,p,R,C),p=p.child),p;case 16:x=p.elementType;e:{switch(UC(h,p),h=p.pendingProps,R=x._init,x=R(x._payload),p.type=x,R=p.tag=zD(x),h=Va(x,h),R){case 0:p=Jy(null,p,x,h,C);break e;case 1:p=qy(null,p,x,h,C);break e;case 11:p=oE(null,p,x,h,C);break e;case 14:p=Zy(null,p,x,Va(x.type,h),C);break e}throw Error(r(306,x,""))}return p;case 0:return x=p.type,R=p.pendingProps,R=p.elementType===x?R:Va(x,R),Jy(h,p,x,R,C);case 1:return x=p.type,R=p.pendingProps,R=p.elementType===x?R:Va(x,R),qy(h,p,x,R,C);case 3:e:{if(aE(p),h===null)throw Error(r(387));x=p.pendingProps,L=p.memoizedState,R=L.element,X3(h,p),nf(p,x,null,C);var Z=p.memoizedState;if(x=Z.element,L.isDehydrated)if(L={element:x,isDehydrated:!1,cache:Z.cache,pendingSuspenseBoundaries:Z.pendingSuspenseBoundaries,transitions:Z.transitions},p.updateQueue.baseState=L,p.memoizedState=L,p.flags&256){R=Fp(Error(r(423)),p),p=bc(h,p,x,C,R);break e}else if(x!==R){R=Fp(Error(r(424)),p),p=bc(h,p,x,C,R);break e}else for(Jo=zd(p.stateNode.containerInfo.firstChild),Ti=p,qs=!0,El=null,C=xC(p,null,x,C),p.child=C;C;)C.flags=C.flags&-3|4096,C=C.sibling;else{if(Ac(),x===R){p=Fl(h,p,C);break e}hi(h,p,x,C)}p=p.child}return p;case 5:return By(p),h===null&&So(p),x=p.type,R=p.pendingProps,L=h!==null?h.memoizedProps:null,Z=R.children,tm(x,R)?Z=null:L!==null&&tm(x,L)&&(p.flags|=32),$y(h,p),hi(h,p,Z,C),p.child;case 6:return h===null&&So(p),null;case 13:return QC(h,p,C);case 4:return ky(p,p.stateNode.containerInfo),x=p.pendingProps,h===null?p.child=vn(p,null,x,C):hi(h,p,x,C),p.child;case 11:return x=p.type,R=p.pendingProps,R=p.elementType===x?R:Va(x,R),oE(h,p,x,R,C);case 7:return hi(h,p,p.pendingProps,C),p.child;case 8:return hi(h,p,p.pendingProps.children,C),p.child;case 12:return hi(h,p,p.pendingProps.children,C),p.child;case 10:e:{if(x=p.type._context,R=p.pendingProps,L=p.memoizedProps,Z=R.value,Ws(om,x._currentValue),x._currentValue=Z,L!==null)if(Le(L.value,Z)){if(L.children===R.children&&!yo.current){p=Fl(h,p,C);break e}}else for(L=p.child,L!==null&&(L.return=p);L!==null;){var he=L.dependencies;if(he!==null){Z=L.child;for(var Ae=he.firstContext;Ae!==null;){if(Ae.context===x){if(L.tag===1){Ae=Su(-1,C&-C),Ae.tag=2;var Ge=L.updateQueue;if(Ge!==null){Ge=Ge.shared;var at=Ge.pending;at===null?Ae.next=Ae:(Ae.next=at.next,at.next=Ae),Ge.pending=Ae}}L.lanes|=C,Ae=L.alternate,Ae!==null&&(Ae.lanes|=C),di(L.return,C,p),he.lanes|=C;break}Ae=Ae.next}}else if(L.tag===10)Z=L.type===p.type?null:L.child;else if(L.tag===18){if(Z=L.return,Z===null)throw Error(r(341));Z.lanes|=C,he=Z.alternate,he!==null&&(he.lanes|=C),di(Z,C,p),Z=L.sibling}else Z=L.child;if(Z!==null)Z.return=L;else for(Z=L;Z!==null;){if(Z===p){Z=null;break}if(L=Z.sibling,L!==null){L.return=Z.return,Z=L;break}Z=Z.return}L=Z}hi(h,p,R.children,C),p=p.child}return p;case 9:return R=p.type,x=p.pendingProps.children,Kd(p,C),R=Ga(R),x=x(R),p.flags|=1,hi(h,p,x,C),p.child;case 14:return x=p.type,R=Va(x,p.pendingProps),R=Va(x.type,R),Zy(h,p,x,R,C);case 15:return yc(h,p,p.type,p.pendingProps,C);case 17:return x=p.type,R=p.pendingProps,R=p.elementType===x?R:Va(x,R),UC(h,p),p.tag=1,bo(x)?(h=!0,Ba(p)):h=!1,Kd(p,C),Pp(p,x,R),Ky(p,x,R,C),eb(null,p,x,!0,h,C);case 19:return Xd(h,p,C);case 22:return Xy(h,p,C)}throw Error(r(156,p.tag))};function SE(h,p){return au(h,p)}function VD(h,p,C,x){this.tag=h,this.key=C,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=x,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qa(h,p,C,x){return new VD(h,p,C,x)}function n0(h){return h=h.prototype,!(!h||!h.isReactComponent)}function zD(h){if(typeof h=="function")return n0(h)?1:0;if(h!=null){if(h=h.$$typeof,h===G)return 11;if(h===V)return 14}return 2}function Il(h,p){var C=h.alternate;return C===null?(C=Qa(h.tag,p,h.key,h.mode),C.elementType=h.elementType,C.type=h.type,C.stateNode=h.stateNode,C.alternate=h,h.alternate=C):(C.pendingProps=p,C.type=h.type,C.flags=0,C.subtreeFlags=0,C.deletions=null),C.flags=h.flags&14680064,C.childLanes=h.childLanes,C.lanes=h.lanes,C.child=h.child,C.memoizedProps=h.memoizedProps,C.memoizedState=h.memoizedState,C.updateQueue=h.updateQueue,p=h.dependencies,C.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},C.sibling=h.sibling,C.index=h.index,C.ref=h.ref,C}function i0(h,p,C,x,R,L){var Z=2;if(x=h,typeof h=="function")n0(h)&&(Z=1);else if(typeof h=="string")Z=5;else e:switch(h){case k:return Ip(C.children,R,L,p);case z:Z=8,R|=8;break;case O:return h=Qa(12,C,p,R|2),h.elementType=O,h.lanes=L,h;case N:return h=Qa(13,C,p,R),h.elementType=N,h.lanes=L,h;case W:return h=Qa(19,C,p,R),h.elementType=W,h.lanes=L,h;case pe:return o0(C,R,L,p);default:if(typeof h=="object"&&h!==null)switch(h.$$typeof){case j:Z=10;break e;case _:Z=9;break e;case G:Z=11;break e;case V:Z=14;break e;case q:Z=16,x=null;break e}throw Error(r(130,h==null?h:typeof h,""))}return p=Qa(Z,C,p,R),p.elementType=h,p.type=x,p.lanes=L,p}function Ip(h,p,C,x){return h=Qa(7,h,x,p),h.lanes=C,h}function o0(h,p,C,x){return h=Qa(22,h,x,p),h.elementType=pe,h.lanes=C,h.stateNode={isHidden:!1},h}function Ab(h,p,C){return h=Qa(6,h,null,p),h.lanes=C,h}function mb(h,p,C){return p=Qa(4,h.children!==null?h.children:[],h.key,p),p.lanes=C,p.stateNode={containerInfo:h.containerInfo,pendingChildren:null,implementation:h.implementation},p}function QD(h,p,C,x,R){this.tag=p,this.containerInfo=h,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ie(0),this.expirationTimes=Ie(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ie(0),this.identifierPrefix=x,this.onRecoverableError=R,this.mutableSourceEagerHydrationData=null}function vb(h,p,C,x,R,L,Z,he,Ae){return h=new QD(h,p,C,he,Ae),p===1?(p=1,L===!0&&(p|=8)):p=0,L=Qa(3,null,null,p),h.current=L,L.stateNode=h,L.memoizedState={element:x,isDehydrated:C,cache:null,transitions:null,pendingSuspenseBoundaries:null},FC(L),h}function UD(h,p,C){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:B,key:x==null?null:""+x,children:h,containerInfo:p,implementation:C}}function xE(h){if(!h)return Ud;h=h._reactInternals;e:{if(vl(h)!==h||h.tag!==1)throw Error(r(170));var p=h;do{switch(p.tag){case 3:p=p.stateNode.context;break e;case 1:if(bo(p.type)){p=p.stateNode.__reactInternalMemoizedMergedChildContext;break e}}p=p.return}while(p!==null);throw Error(r(171))}if(h.tag===1){var C=h.type;if(bo(C))return Q3(h,C,p)}return p}function EE(h,p,C,x,R,L,Z,he,Ae){return h=vb(C,x,!0,h,R,L,Z,he,Ae),h.context=xE(null),C=h.current,x=Xi(),R=th(C),L=Su(x,R),L.callback=p??null,Na(C,L,R),h.current.lanes=R,Fe(h,R,x),Po(h,x),h}function a0(h,p,C,x){var R=p.current,L=Xi(),Z=th(R);return C=xE(C),p.context===null?p.context=C:p.pendingContext=C,p=Su(L,Z),p.payload={element:h},x=x===void 0?null:x,x!==null&&(p.callback=x),h=Na(R,p,Z),h!==null&&(Ml(h,R,Z,L),RC(h,R,Z)),Z}function l0(h){if(h=h.current,!h.child)return null;switch(h.child.tag){case 5:return h.child.stateNode;default:return h.child.stateNode}}function PE(h,p){if(h=h.memoizedState,h!==null&&h.dehydrated!==null){var C=h.retryLane;h.retryLane=C!==0&&C<p?C:p}}function Cb(h,p){PE(h,p),(h=h.alternate)&&PE(h,p)}function WD(){return null}var FE=typeof reportError=="function"?reportError:function(h){console.error(h)};function c0(h){this._internalRoot=h}Fm.prototype.render=c0.prototype.render=function(h){var p=this._internalRoot;if(p===null)throw Error(r(409));a0(h,p,null,null)},Fm.prototype.unmount=c0.prototype.unmount=function(){var h=this._internalRoot;if(h!==null){this._internalRoot=null;var p=h.containerInfo;Tp(function(){a0(null,h,null,null)}),p[$o]=null}};function Fm(h){this._internalRoot=h}Fm.prototype.unstable_scheduleHydration=function(h){if(h){var p=zi();h={blockedOn:null,target:h,priority:p};for(var C=0;C<ac.length&&p!==0&&p<ac[C].priority;C++);ac.splice(C,0,h),C===0&&Ra(h)}};function wb(h){return!(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)}function u0(h){return!(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11&&(h.nodeType!==8||h.nodeValue!==" react-mount-point-unstable "))}function RE(){}function jD(h,p,C,x,R){if(R){if(typeof x=="function"){var L=x;x=function(){var Ge=l0(Z);L.call(Ge)}}var Z=EE(p,x,h,0,null,!1,!1,"",RE);return h._reactRootContainer=Z,h[$o]=Z.current,_d(h.nodeType===8?h.parentNode:h),Tp(),Z}for(;R=h.lastChild;)h.removeChild(R);if(typeof x=="function"){var he=x;x=function(){var Ge=l0(Ae);he.call(Ge)}}var Ae=vb(h,0,!1,null,null,!1,!1,"",RE);return h._reactRootContainer=Ae,h[$o]=Ae.current,_d(h.nodeType===8?h.parentNode:h),Tp(function(){a0(p,Ae,C,x)}),Ae}function kp(h,p,C,x,R){var L=C._reactRootContainer;if(L){var Z=L;if(typeof R=="function"){var he=R;R=function(){var Ae=l0(Z);he.call(Ae)}}a0(p,Z,h,R)}else Z=jD(C,p,h,R,x);return l0(Z)}wr=function(h){switch(h.tag){case 3:var p=h.stateNode;if(p.current.memoizedState.isDehydrated){var C=yl(p.pendingLanes);C!==0&&(gt(p,C|1),Po(p,ys()),!(os&6)&&(Rp=ys()+500,Wd()))}break;case 13:Tp(function(){var x=bu(h,1);if(x!==null){var R=Xi();Ml(x,h,1,R)}}),Cb(h,1)}},Rs=function(h){if(h.tag===13){var p=bu(h,134217728);if(p!==null){var C=Xi();Ml(p,h,134217728,C)}Cb(h,134217728)}},Ao=function(h){if(h.tag===13){var p=th(h),C=bu(h,p);if(C!==null){var x=Xi();Ml(C,h,p,x)}Cb(h,p)}},zi=function(){return bt},li=function(h,p){var C=bt;try{return bt=h,p()}finally{bt=C}},nu=function(h,p,C){switch(p){case"input":if(Ke(h,C),p=C.name,C.type==="radio"&&p!=null){for(C=h;C.parentNode;)C=C.parentNode;for(C=C.querySelectorAll("input[name="+JSON.stringify(""+p)+'][type="radio"]'),p=0;p<C.length;p++){var x=C[p];if(x!==h&&x.form===h.form){var R=vC(x);if(!R)throw Error(r(90));_e(x),Ke(x,R)}}}break;case"textarea":xt(h,C);break;case"select":p=C.value,p!=null&&ot(h,!!C.multiple,p,!1)}},Qo=pb,tc=Tp;var KD={usingClientEntryPoint:!1,Events:[Pi,Hr,vC,iu,ec,pb]},Rm={findFiberByHostInstance:hc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},YD={bundleType:Rm.bundleType,version:Rm.version,rendererPackageName:Rm.rendererPackageName,rendererConfig:Rm.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(h){return h=ou(h),h===null?null:h.stateNode},findFiberByHostInstance:Rm.findFiberByHostInstance||WD,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var d0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!d0.isDisabled&&d0.supportsFiber)try{Wo=d0.inject(YD),Vi=d0}catch{}}return Za.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=KD,Za.createPortal=function(h,p){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wb(p))throw Error(r(200));return UD(h,p,null,C)},Za.createRoot=function(h,p){if(!wb(h))throw Error(r(299));var C=!1,x="",R=FE;return p!=null&&(p.unstable_strictMode===!0&&(C=!0),p.identifierPrefix!==void 0&&(x=p.identifierPrefix),p.onRecoverableError!==void 0&&(R=p.onRecoverableError)),p=vb(h,1,!1,null,null,C,!1,x,R),h[$o]=p.current,_d(h.nodeType===8?h.parentNode:h),new c0(p)},Za.findDOMNode=function(h){if(h==null)return null;if(h.nodeType===1)return h;var p=h._reactInternals;if(p===void 0)throw typeof h.render=="function"?Error(r(188)):(h=Object.keys(h).join(","),Error(r(268,h)));return h=ou(p),h=h===null?null:h.stateNode,h},Za.flushSync=function(h){return Tp(h)},Za.hydrate=function(h,p,C){if(!u0(p))throw Error(r(200));return kp(null,h,p,!0,C)},Za.hydrateRoot=function(h,p,C){if(!wb(h))throw Error(r(405));var x=C!=null&&C.hydratedSources||null,R=!1,L="",Z=FE;if(C!=null&&(C.unstable_strictMode===!0&&(R=!0),C.identifierPrefix!==void 0&&(L=C.identifierPrefix),C.onRecoverableError!==void 0&&(Z=C.onRecoverableError)),p=EE(p,null,h,1,C??null,R,!1,L,Z),h[$o]=p.current,_d(h),x)for(h=0;h<x.length;h++)C=x[h],R=C._getVersion,R=R(C._source),p.mutableSourceEagerHydrationData==null?p.mutableSourceEagerHydrationData=[C,R]:p.mutableSourceEagerHydrationData.push(C,R);return new Fm(p)},Za.render=function(h,p,C){if(!u0(p))throw Error(r(200));return kp(null,h,p,!1,C)},Za.unmountComponentAtNode=function(h){if(!u0(h))throw Error(r(40));return h._reactRootContainer?(Tp(function(){kp(null,null,h,!1,function(){h._reactRootContainer=null,h[$o]=null})}),!0):!1},Za.unstable_batchedUpdates=pb,Za.unstable_renderSubtreeIntoContainer=function(h,p,C,x){if(!u0(C))throw Error(r(200));if(h==null||h._reactInternals===void 0)throw Error(r(38));return kp(h,p,C,!1,x)},Za.version="18.3.1-next-f1338f8080-20240426",Za}function SJ(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(SJ)}catch(e){console.error(e)}}SJ(),bJ.exports=d9e();var xJ=bJ.exports,qO=xJ;qO.createRoot,qO.hydrateRoot;function DT(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function L5(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function EJ(e,t){var r=Object.create(e.prototype);for(var s in t)r[s]=t[s];return r}function i3(){}var ax=.7,eR=1/ax,iw="\\s*([+-]?\\d+)\\s*",lx="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",kh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h9e=/^#([0-9a-f]{3,8})$/,p9e=new RegExp(`^rgb\\(${iw},${iw},${iw}\\)$`),g9e=new RegExp(`^rgb\\(${kh},${kh},${kh}\\)$`),f9e=new RegExp(`^rgba\\(${iw},${iw},${iw},${lx}\\)$`),A9e=new RegExp(`^rgba\\(${kh},${kh},${kh},${lx}\\)$`),m9e=new RegExp(`^hsl\\(${lx},${kh},${kh}\\)$`),v9e=new RegExp(`^hsla\\(${lx},${kh},${kh},${lx}\\)$`),e9={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};L5(i3,Dv,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:t9,formatHex:t9,formatHex8:C9e,formatHsl:w9e,formatRgb:r9,toString:r9});function t9(){return this.rgb().formatHex()}function C9e(){return this.rgb().formatHex8()}function w9e(){return PJ(this).formatHsl()}function r9(){return this.rgb().formatRgb()}function Dv(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=h9e.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?s9(t):r===3?new nl(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?dP(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?dP(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=p9e.exec(e))?new nl(t[1],t[2],t[3],1):(t=g9e.exec(e))?new nl(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=f9e.exec(e))?dP(t[1],t[2],t[3],t[4]):(t=A9e.exec(e))?dP(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=m9e.exec(e))?o9(t[1],t[2]/100,t[3]/100,1):(t=v9e.exec(e))?o9(t[1],t[2]/100,t[3]/100,t[4]):e9.hasOwnProperty(e)?s9(e9[e]):e==="transparent"?new nl(NaN,NaN,NaN,0):null}function s9(e){return new nl(e>>16&255,e>>8&255,e&255,1)}function dP(e,t,r,s){return s<=0&&(e=t=r=NaN),new nl(e,t,r,s)}function y9e(e){return e instanceof i3||(e=Dv(e)),e?(e=e.rgb(),new nl(e.r,e.g,e.b,e.opacity)):new nl}function fB(e,t,r,s){return arguments.length===1?y9e(e):new nl(e,t,r,s??1)}function nl(e,t,r,s){this.r=+e,this.g=+t,this.b=+r,this.opacity=+s}L5(nl,fB,EJ(i3,{brighter(e){return e=e==null?eR:Math.pow(eR,e),new nl(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ax:Math.pow(ax,e),new nl(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nl(hv(this.r),hv(this.g),hv(this.b),tR(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:n9,formatHex:n9,formatHex8:b9e,formatRgb:i9,toString:i9}));function n9(){return`#${$m(this.r)}${$m(this.g)}${$m(this.b)}`}function b9e(){return`#${$m(this.r)}${$m(this.g)}${$m(this.b)}${$m((isNaN(this.opacity)?1:this.opacity)*255)}`}function i9(){const e=tR(this.opacity);return`${e===1?"rgb(":"rgba("}${hv(this.r)}, ${hv(this.g)}, ${hv(this.b)}${e===1?")":`, ${e})`}`}function tR(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function hv(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $m(e){return e=hv(e),(e<16?"0":"")+e.toString(16)}function o9(e,t,r,s){return s<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new _u(e,t,r,s)}function PJ(e){if(e instanceof _u)return new _u(e.h,e.s,e.l,e.opacity);if(e instanceof i3||(e=Dv(e)),!e)return new _u;if(e instanceof _u)return e;e=e.rgb();var t=e.r/255,r=e.g/255,s=e.b/255,n=Math.min(t,r,s),i=Math.max(t,r,s),o=NaN,a=i-n,l=(i+n)/2;return a?(t===i?o=(r-s)/a+(r<s)*6:r===i?o=(s-t)/a+2:o=(t-r)/a+4,a/=l<.5?i+n:2-i-n,o*=60):a=l>0&&l<1?0:o,new _u(o,a,l,e.opacity)}function S9e(e,t,r,s){return arguments.length===1?PJ(e):new _u(e,t,r,s??1)}function _u(e,t,r,s){this.h=+e,this.s=+t,this.l=+r,this.opacity=+s}L5(_u,S9e,EJ(i3,{brighter(e){return e=e==null?eR:Math.pow(eR,e),new _u(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ax:Math.pow(ax,e),new _u(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,s=r+(r<.5?r:1-r)*t,n=2*r-s;return new nl(w4(e>=240?e-240:e+120,n,s),w4(e,n,s),w4(e<120?e+240:e-120,n,s),this.opacity)},clamp(){return new _u(a9(this.h),hP(this.s),hP(this.l),tR(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=tR(this.opacity);return`${e===1?"hsl(":"hsla("}${a9(this.h)}, ${hP(this.s)*100}%, ${hP(this.l)*100}%${e===1?")":`, ${e})`}`}}));function a9(e){return e=(e||0)%360,e<0?e+360:e}function hP(e){return Math.max(0,Math.min(1,e||0))}function w4(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const H5=e=>()=>e;function x9e(e,t){return function(r){return e+r*t}}function E9e(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(s){return Math.pow(e+s*t,r)}}function P9e(e){return(e=+e)==1?FJ:function(t,r){return r-t?E9e(t,r,e):H5(isNaN(t)?r:t)}}function FJ(e,t){var r=t-e;return r?x9e(e,r):H5(isNaN(e)?t:e)}const rR=function e(t){var r=P9e(t);function s(n,i){var o=r((n=fB(n)).r,(i=fB(i)).r),a=r(n.g,i.g),l=r(n.b,i.b),c=FJ(n.opacity,i.opacity);return function(u){return n.r=o(u),n.g=a(u),n.b=l(u),n.opacity=c(u),n+""}}return s.gamma=e,s}(1);function F9e(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,s=t.slice(),n;return function(i){for(n=0;n<r;++n)s[n]=e[n]*(1-i)+t[n]*i;return s}}function R9e(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function T9e(e,t){var r=t?t.length:0,s=e?Math.min(r,e.length):0,n=new Array(s),i=new Array(r),o;for(o=0;o<s;++o)n[o]=G5(e[o],t[o]);for(;o<r;++o)i[o]=t[o];return function(a){for(o=0;o<s;++o)i[o]=n[o](a);return i}}function D9e(e,t){var r=new Date;return e=+e,t=+t,function(s){return r.setTime(e*(1-s)+t*s),r}}function Gu(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function M9e(e,t){var r={},s={},n;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(n in t)n in e?r[n]=G5(e[n],t[n]):s[n]=t[n];return function(i){for(n in r)s[n]=r[n](i);return s}}var AB=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,y4=new RegExp(AB.source,"g");function I9e(e){return function(){return e}}function k9e(e){return function(t){return e(t)+""}}function RJ(e,t){var r=AB.lastIndex=y4.lastIndex=0,s,n,i,o=-1,a=[],l=[];for(e=e+"",t=t+"";(s=AB.exec(e))&&(n=y4.exec(t));)(i=n.index)>r&&(i=t.slice(r,i),a[o]?a[o]+=i:a[++o]=i),(s=s[0])===(n=n[0])?a[o]?a[o]+=n:a[++o]=n:(a[++o]=null,l.push({i:o,x:Gu(s,n)})),r=y4.lastIndex;return r<t.length&&(i=t.slice(r),a[o]?a[o]+=i:a[++o]=i),a.length<2?l[0]?k9e(l[0].x):I9e(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)a[(d=l[u]).i]=d.x(c);return a.join("")})}function G5(e,t){var r=typeof t,s;return t==null||r==="boolean"?H5(t):(r==="number"?Gu:r==="string"?(s=Dv(t))?(t=s,rR):RJ:t instanceof Dv?rR:t instanceof Date?D9e:R9e(t)?F9e:Array.isArray(t)?T9e:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?M9e:Gu)(e,t)}function B9e(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var l9=180/Math.PI,TJ={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function DJ(e,t,r,s,n,i){var o,a,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*s)&&(r-=e*l,s-=t*l),(a=Math.sqrt(r*r+s*s))&&(r/=a,s/=a,l/=a),e*s<t*r&&(e=-e,t=-t,l=-l,o=-o),{translateX:n,translateY:i,rotate:Math.atan2(t,e)*l9,skewX:Math.atan(l)*l9,scaleX:o,scaleY:a}}var pP;function L9e(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?TJ:DJ(t.a,t.b,t.c,t.d,t.e,t.f)}function H9e(e){return e==null||(pP||(pP=document.createElementNS("http://www.w3.org/2000/svg","g")),pP.setAttribute("transform",e),!(e=pP.transform.baseVal.consolidate()))?TJ:(e=e.matrix,DJ(e.a,e.b,e.c,e.d,e.e,e.f))}function MJ(e,t,r,s){function n(c){return c.length?c.pop()+" ":""}function i(c,u,d,g,A,w){if(c!==d||u!==g){var v=A.push("translate(",null,t,null,r);w.push({i:v-4,x:Gu(c,d)},{i:v-2,x:Gu(u,g)})}else(d||g)&&A.push("translate("+d+t+g+r)}function o(c,u,d,g){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),g.push({i:d.push(n(d)+"rotate(",null,s)-2,x:Gu(c,u)})):u&&d.push(n(d)+"rotate("+u+s)}function a(c,u,d,g){c!==u?g.push({i:d.push(n(d)+"skewX(",null,s)-2,x:Gu(c,u)}):u&&d.push(n(d)+"skewX("+u+s)}function l(c,u,d,g,A,w){if(c!==d||u!==g){var v=A.push(n(A)+"scale(",null,",",null,")");w.push({i:v-4,x:Gu(c,d)},{i:v-2,x:Gu(u,g)})}else(d!==1||g!==1)&&A.push(n(A)+"scale("+d+","+g+")")}return function(c,u){var d=[],g=[];return c=e(c),u=e(u),i(c.translateX,c.translateY,u.translateX,u.translateY,d,g),o(c.rotate,u.rotate,d,g),a(c.skewX,u.skewX,d,g),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,g),c=u=null,function(A){for(var w=-1,v=g.length,b;++w<v;)d[(b=g[w]).i]=b.x(A);return d.join("")}}}var G9e=MJ(L9e,"px, ","px)","deg)"),O9e=MJ(H9e,", ",")",")"),N9e=1e-12;function c9(e){return((e=Math.exp(e))+1/e)/2}function _9e(e){return((e=Math.exp(e))-1/e)/2}function V9e(e){return((e=Math.exp(2*e))-1)/(e+1)}(function e(t,r,s){function n(i,o){var a=i[0],l=i[1],c=i[2],u=o[0],d=o[1],g=o[2],A=u-a,w=d-l,v=A*A+w*w,b,S;if(v<N9e)S=Math.log(g/c)/t,b=function(k){return[a+k*A,l+k*w,c*Math.exp(t*k*S)]};else{var P=Math.sqrt(v),F=(g*g-c*c+s*v)/(2*c*r*P),T=(g*g-c*c-s*v)/(2*g*r*P),D=Math.log(Math.sqrt(F*F+1)-F),B=Math.log(Math.sqrt(T*T+1)-T);S=(B-D)/t,b=function(k){var z=k*S,O=c9(D),j=c/(r*P)*(O*V9e(t*z+D)-_9e(D));return[a+j*A,l+j*w,c*O/c9(t*z+D)]}}return b.duration=S*1e3*t/Math.SQRT2,b}return n.rho=function(i){var o=Math.max(.001,+i),a=o*o,l=a*a;return e(o,a,l)},n})(Math.SQRT2,2,4);function z9e(e){return function(){return e}}function mB(e){return+e}var u9=[0,1];function Ph(e){return e}function vB(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:z9e(isNaN(t)?NaN:.5)}function Q9e(e,t){var r;return e>t&&(r=e,e=t,t=r),function(s){return Math.max(e,Math.min(t,s))}}function U9e(e,t,r){var s=e[0],n=e[1],i=t[0],o=t[1];return n<s?(s=vB(n,s),i=r(o,i)):(s=vB(s,n),i=r(i,o)),function(a){return i(s(a))}}function W9e(e,t,r){var s=Math.min(e.length,t.length)-1,n=new Array(s),i=new Array(s),o=-1;for(e[s]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<s;)n[o]=vB(e[o],e[o+1]),i[o]=r(t[o],t[o+1]);return function(a){var l=HOe(e,a,1,s)-1;return i[l](n[l](a))}}function MT(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function O5(){var e=u9,t=u9,r=G5,s,n,i,o=Ph,a,l,c;function u(){var g=Math.min(e.length,t.length);return o!==Ph&&(o=Q9e(e[0],e[g-1])),a=g>2?W9e:U9e,l=c=null,d}function d(g){return g==null||isNaN(g=+g)?i:(l||(l=a(e.map(s),t,r)))(s(o(g)))}return d.invert=function(g){return o(n((c||(c=a(t,e.map(s),Gu)))(g)))},d.domain=function(g){return arguments.length?(e=Array.from(g,mB),u()):e.slice()},d.range=function(g){return arguments.length?(t=Array.from(g),u()):t.slice()},d.rangeRound=function(g){return t=Array.from(g),r=B9e,u()},d.clamp=function(g){return arguments.length?(o=g?!0:Ph,u()):o!==Ph},d.interpolate=function(g){return arguments.length?(r=g,u()):r},d.unknown=function(g){return arguments.length?(i=g,d):i},function(g,A){return s=g,n=A,u()}}function IJ(){return O5()(Ph,Ph)}function j9e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function sR(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,s=e.slice(0,r);return[s.length>1?s[0]+s.slice(2):s,+e.slice(r+1)]}function Iw(e){return e=sR(Math.abs(e)),e?e[1]:NaN}function K9e(e,t){return function(r,s){for(var n=r.length,i=[],o=0,a=e[0],l=0;n>0&&a>0&&(l+a+1>s&&(a=Math.max(1,s-l)),i.push(r.substring(n-=a,n+a)),!((l+=a+1)>s));)a=e[o=(o+1)%e.length];return i.reverse().join(t)}}function Y9e(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Z9e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function cx(e){if(!(t=Z9e.exec(e)))throw new Error("invalid format: "+e);var t;return new N5({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}cx.prototype=N5.prototype;function N5(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}N5.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function X9e(e){e:for(var t=e.length,r=1,s=-1,n;r<t;++r)switch(e[r]){case".":s=n=r;break;case"0":s===0&&(s=r),n=r;break;default:if(!+e[r])break e;s>0&&(s=0);break}return s>0?e.slice(0,s)+e.slice(n+1):e}var kJ;function $9e(e,t){var r=sR(e,t);if(!r)return e+"";var s=r[0],n=r[1],i=n-(kJ=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1,o=s.length;return i===o?s:i>o?s+new Array(i-o+1).join("0"):i>0?s.slice(0,i)+"."+s.slice(i):"0."+new Array(1-i).join("0")+sR(e,Math.max(0,t+i-1))[0]}function d9(e,t){var r=sR(e,t);if(!r)return e+"";var s=r[0],n=r[1];return n<0?"0."+new Array(-n).join("0")+s:s.length>n+1?s.slice(0,n+1)+"."+s.slice(n+1):s+new Array(n-s.length+2).join("0")}const h9={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:j9e,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>d9(e*100,t),r:d9,s:$9e,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function p9(e){return e}var g9=Array.prototype.map,f9=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function J9e(e){var t=e.grouping===void 0||e.thousands===void 0?p9:K9e(g9.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",s=e.currency===void 0?"":e.currency[1]+"",n=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?p9:Y9e(g9.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",a=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=cx(d);var g=d.fill,A=d.align,w=d.sign,v=d.symbol,b=d.zero,S=d.width,P=d.comma,F=d.precision,T=d.trim,D=d.type;D==="n"?(P=!0,D="g"):h9[D]||(F===void 0&&(F=12),T=!0,D="g"),(b||g==="0"&&A==="=")&&(b=!0,g="0",A="=");var B=v==="$"?r:v==="#"&&/[boxX]/.test(D)?"0"+D.toLowerCase():"",k=v==="$"?s:/[%p]/.test(D)?o:"",z=h9[D],O=/[defgprs%]/.test(D);F=F===void 0?6:/[gprs]/.test(D)?Math.max(1,Math.min(21,F)):Math.max(0,Math.min(20,F));function j(_){var G=B,N=k,W,V,q;if(D==="c")N=z(_)+N,_="";else{_=+_;var pe=_<0||1/_<0;if(_=isNaN(_)?l:z(Math.abs(_),F),T&&(_=X9e(_)),pe&&+_==0&&w!=="+"&&(pe=!1),G=(pe?w==="("?w:a:w==="-"||w==="("?"":w)+G,N=(D==="s"?f9[8+kJ/3]:"")+N+(pe&&w==="("?")":""),O){for(W=-1,V=_.length;++W<V;)if(q=_.charCodeAt(W),48>q||q>57){N=(q===46?n+_.slice(W+1):_.slice(W))+N,_=_.slice(0,W);break}}}P&&!b&&(_=t(_,1/0));var X=G.length+_.length+N.length,re=X<S?new Array(S-X+1).join(g):"";switch(P&&b&&(_=t(re+_,re.length?S-N.length:1/0),re=""),A){case"<":_=G+_+N+re;break;case"=":_=G+re+_+N;break;case"^":_=re.slice(0,X=re.length>>1)+G+_+N+re.slice(X);break;default:_=re+G+_+N;break}return i(_)}return j.toString=function(){return d+""},j}function u(d,g){var A=c((d=cx(d),d.type="f",d)),w=Math.max(-8,Math.min(8,Math.floor(Iw(g)/3)))*3,v=Math.pow(10,-w),b=f9[8+w/3];return function(S){return A(v*S)+b}}return{format:c,formatPrefix:u}}var gP,ux,BJ;q9e({thousands:",",grouping:[3],currency:["$",""]});function q9e(e){return gP=J9e(e),ux=gP.format,BJ=gP.formatPrefix,gP}function eNe(e){return Math.max(0,-Iw(Math.abs(e)))}function tNe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Iw(t)/3)))*3-Iw(Math.abs(e)))}function rNe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Iw(t)-Iw(e))+1}function sNe(e,t,r,s){var n=gB(e,t,r),i;switch(s=cx(s??",f"),s.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return s.precision==null&&!isNaN(i=tNe(n,o))&&(s.precision=i),BJ(s,o)}case"":case"e":case"g":case"p":case"r":{s.precision==null&&!isNaN(i=rNe(n,Math.max(Math.abs(e),Math.abs(t))))&&(s.precision=i-(s.type==="e"));break}case"f":case"%":{s.precision==null&&!isNaN(i=eNe(n))&&(s.precision=i-(s.type==="%")*2);break}}return ux(s)}function _5(e){var t=e.domain;return e.ticks=function(r){var s=t();return hB(s[0],s[s.length-1],r??10)},e.tickFormat=function(r,s){var n=t();return sNe(n[0],n[n.length-1],r??10,s)},e.nice=function(r){r==null&&(r=10);var s=t(),n=0,i=s.length-1,o=s[n],a=s[i],l,c,u=10;for(a<o&&(c=o,o=a,a=c,c=n,n=i,i=c);u-- >0;){if(c=pB(o,a,r),c===l)return s[n]=o,s[i]=a,t(s);if(c>0)o=Math.floor(o/c)*c,a=Math.ceil(a/c)*c;else if(c<0)o=Math.ceil(o*c)/c,a=Math.floor(a*c)/c;else break;l=c}return e},e}function V5(){var e=IJ();return e.copy=function(){return MT(e,V5())},DT.apply(e,arguments),_5(e)}function LJ(e){var t;function r(s){return s==null||isNaN(s=+s)?t:s}return r.invert=r,r.domain=r.range=function(s){return arguments.length?(e=Array.from(s,mB),r):e.slice()},r.unknown=function(s){return arguments.length?(t=s,r):t},r.copy=function(){return LJ(e).unknown(t)},e=arguments.length?Array.from(e,mB):[0,1],_5(r)}function HJ(e,t){e=e.slice();var r=0,s=e.length-1,n=e[r],i=e[s],o;return i<n&&(o=r,r=s,s=o,o=n,n=i,i=o),e[r]=t.floor(n),e[s]=t.ceil(i),e}function A9(e){return Math.log(e)}function m9(e){return Math.exp(e)}function nNe(e){return-Math.log(-e)}function iNe(e){return-Math.exp(-e)}function oNe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function aNe(e){return e===10?oNe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function lNe(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function v9(e){return(t,r)=>-e(-t,r)}function cNe(e){const t=e(A9,m9),r=t.domain;let s=10,n,i;function o(){return n=lNe(s),i=aNe(s),r()[0]<0?(n=v9(n),i=v9(i),e(nNe,iNe)):e(A9,m9),t}return t.base=function(a){return arguments.length?(s=+a,o()):s},t.domain=function(a){return arguments.length?(r(a),o()):r()},t.ticks=a=>{const l=r();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let g=n(c),A=n(u),w,v;const b=a==null?10:+a;let S=[];if(!(s%1)&&A-g<b){if(g=Math.floor(g),A=Math.ceil(A),c>0){for(;g<=A;++g)for(w=1;w<s;++w)if(v=g<0?w/i(-g):w*i(g),!(v<c)){if(v>u)break;S.push(v)}}else for(;g<=A;++g)for(w=s-1;w>=1;--w)if(v=g>0?w/i(-g):w*i(g),!(v<c)){if(v>u)break;S.push(v)}S.length*2<b&&(S=hB(c,u,b))}else S=hB(g,A,Math.min(A-g,b)).map(i);return d?S.reverse():S},t.tickFormat=(a,l)=>{if(a==null&&(a=10),l==null&&(l=s===10?"s":","),typeof l!="function"&&(!(s%1)&&(l=cx(l)).precision==null&&(l.trim=!0),l=ux(l)),a===1/0)return l;const c=Math.max(1,s*a/t.ticks().length);return u=>{let d=u/i(Math.round(n(u)));return d*s<s-.5&&(d*=s),d<=c?l(u):""}},t.nice=()=>r(HJ(r(),{floor:a=>i(Math.floor(n(a))),ceil:a=>i(Math.ceil(n(a)))})),t}function GJ(){const e=cNe(O5()).domain([1,10]);return e.copy=()=>MT(e,GJ()).base(e.base()),DT.apply(e,arguments),e}function C9(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function uNe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function dNe(e){return e<0?-e*e:e*e}function hNe(e){var t=e(Ph,Ph),r=1;function s(){return r===1?e(Ph,Ph):r===.5?e(uNe,dNe):e(C9(r),C9(1/r))}return t.exponent=function(n){return arguments.length?(r=+n,s()):r},_5(t)}function OJ(){var e=hNe(O5());return e.copy=function(){return MT(e,OJ()).exponent(e.exponent())},DT.apply(e,arguments),e}const b4=new Date,S4=new Date;function yi(e,t,r,s){function n(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return n.floor=i=>(e(i=new Date(+i)),i),n.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),n.round=i=>{const o=n(i),a=n.ceil(i);return i-o<a-i?o:a},n.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),n.range=(i,o,a)=>{const l=[];if(i=n.ceil(i),a=a==null?1:Math.floor(a),!(i<o)||!(a>0))return l;let c;do l.push(c=new Date(+i)),t(i,a),e(i);while(c<i&&i<o);return l},n.filter=i=>yi(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,a)=>{if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!i(o););else for(;--a>=0;)for(;t(o,1),!i(o););}),r&&(n.count=(i,o)=>(b4.setTime(+i),S4.setTime(+o),e(b4),e(S4),Math.floor(r(b4,S4))),n.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?n.filter(s?o=>s(o)%i===0:o=>n.count(0,o)%i===0):n)),n}const nR=yi(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);nR.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?yi(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):nR);nR.range;const ig=1e3,Qc=ig*60,og=Qc*60,Cg=og*24,z5=Cg*7,w9=Cg*30,x4=Cg*365,V0=yi(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ig)},(e,t)=>(t-e)/ig,e=>e.getUTCSeconds());V0.range;const Q5=yi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ig)},(e,t)=>{e.setTime(+e+t*Qc)},(e,t)=>(t-e)/Qc,e=>e.getMinutes());Q5.range;const pNe=yi(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Qc)},(e,t)=>(t-e)/Qc,e=>e.getUTCMinutes());pNe.range;const U5=yi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ig-e.getMinutes()*Qc)},(e,t)=>{e.setTime(+e+t*og)},(e,t)=>(t-e)/og,e=>e.getHours());U5.range;const gNe=yi(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*og)},(e,t)=>(t-e)/og,e=>e.getUTCHours());gNe.range;const o3=yi(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Qc)/Cg,e=>e.getDate()-1);o3.range;const W5=yi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Cg,e=>e.getUTCDate()-1);W5.range;const fNe=yi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Cg,e=>Math.floor(e/Cg));fNe.range;function Ov(e){return yi(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Qc)/z5)}const IT=Ov(0),iR=Ov(1),ANe=Ov(2),mNe=Ov(3),kw=Ov(4),vNe=Ov(5),CNe=Ov(6);IT.range;iR.range;ANe.range;mNe.range;kw.range;vNe.range;CNe.range;function Nv(e){return yi(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/z5)}const NJ=Nv(0),oR=Nv(1),wNe=Nv(2),yNe=Nv(3),Bw=Nv(4),bNe=Nv(5),SNe=Nv(6);NJ.range;oR.range;wNe.range;yNe.range;Bw.range;bNe.range;SNe.range;const j5=yi(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());j5.range;const xNe=yi(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());xNe.range;const wg=yi(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());wg.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:yi(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});wg.range;const Mv=yi(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Mv.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:yi(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Mv.range;function ENe(e,t,r,s,n,i){const o=[[V0,1,ig],[V0,5,5*ig],[V0,15,15*ig],[V0,30,30*ig],[i,1,Qc],[i,5,5*Qc],[i,15,15*Qc],[i,30,30*Qc],[n,1,og],[n,3,3*og],[n,6,6*og],[n,12,12*og],[s,1,Cg],[s,2,2*Cg],[r,1,z5],[t,1,w9],[t,3,3*w9],[e,1,x4]];function a(c,u,d){const g=u<c;g&&([c,u]=[u,c]);const A=d&&typeof d.range=="function"?d:l(c,u,d),w=A?A.range(c,+u+1):[];return g?w.reverse():w}function l(c,u,d){const g=Math.abs(u-c)/d,A=B5(([,,b])=>b).right(o,g);if(A===o.length)return e.every(gB(c/x4,u/x4,d));if(A===0)return nR.every(Math.max(gB(c,u,d),1));const[w,v]=o[g/o[A-1][2]<o[A][2]/g?A-1:A];return w.every(v)}return[a,l]}const[PNe,FNe]=ENe(wg,j5,IT,o3,U5,Q5);function E4(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function P4(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Hb(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function RNe(e){var t=e.dateTime,r=e.date,s=e.time,n=e.periods,i=e.days,o=e.shortDays,a=e.months,l=e.shortMonths,c=Gb(n),u=Ob(n),d=Gb(i),g=Ob(i),A=Gb(o),w=Ob(o),v=Gb(a),b=Ob(a),S=Gb(l),P=Ob(l),F={a:pe,A:X,b:re,B:ae,c:null,d:P9,e:P9,f:$Ne,g:a_e,G:c_e,H:YNe,I:ZNe,j:XNe,L:_J,m:JNe,M:qNe,p:$,q:se,Q:T9,s:D9,S:e_e,u:t_e,U:r_e,V:s_e,w:n_e,W:i_e,x:null,X:null,y:o_e,Y:l_e,Z:u_e,"%":R9},T={a:De,A:Oe,b:Be,B:Ve,c:null,d:F9,e:F9,f:g_e,g:x_e,G:P_e,H:d_e,I:h_e,j:p_e,L:zJ,m:f_e,M:A_e,p:ze,q:nt,Q:T9,s:D9,S:m_e,u:v_e,U:C_e,V:w_e,w:y_e,W:b_e,x:null,X:null,y:S_e,Y:E_e,Z:F_e,"%":R9},D={a:j,A:_,b:G,B:N,c:W,d:x9,e:x9,f:UNe,g:S9,G:b9,H:E9,I:E9,j:_Ne,L:QNe,m:NNe,M:VNe,p:O,q:ONe,Q:jNe,s:KNe,S:zNe,u:kNe,U:BNe,V:LNe,w:INe,W:HNe,x:V,X:q,y:S9,Y:b9,Z:GNe,"%":WNe};F.x=B(r,F),F.X=B(s,F),F.c=B(t,F),T.x=B(r,T),T.X=B(s,T),T.c=B(t,T);function B(xe,He){return function(wt){var _e=[],ne=-1,oe=0,Se=xe.length,$e,Ke,rt;for(wt instanceof Date||(wt=new Date(+wt));++ne<Se;)xe.charCodeAt(ne)===37&&(_e.push(xe.slice(oe,ne)),(Ke=y9[$e=xe.charAt(++ne)])!=null?$e=xe.charAt(++ne):Ke=$e==="e"?" ":"0",(rt=He[$e])&&($e=rt(wt,Ke)),_e.push($e),oe=ne+1);return _e.push(xe.slice(oe,ne)),_e.join("")}}function k(xe,He){return function(wt){var _e=Hb(1900,void 0,1),ne=z(_e,xe,wt+="",0),oe,Se;if(ne!=wt.length)return null;if("Q"in _e)return new Date(_e.Q);if("s"in _e)return new Date(_e.s*1e3+("L"in _e?_e.L:0));if(He&&!("Z"in _e)&&(_e.Z=0),"p"in _e&&(_e.H=_e.H%12+_e.p*12),_e.m===void 0&&(_e.m="q"in _e?_e.q:0),"V"in _e){if(_e.V<1||_e.V>53)return null;"w"in _e||(_e.w=1),"Z"in _e?(oe=P4(Hb(_e.y,0,1)),Se=oe.getUTCDay(),oe=Se>4||Se===0?oR.ceil(oe):oR(oe),oe=W5.offset(oe,(_e.V-1)*7),_e.y=oe.getUTCFullYear(),_e.m=oe.getUTCMonth(),_e.d=oe.getUTCDate()+(_e.w+6)%7):(oe=E4(Hb(_e.y,0,1)),Se=oe.getDay(),oe=Se>4||Se===0?iR.ceil(oe):iR(oe),oe=o3.offset(oe,(_e.V-1)*7),_e.y=oe.getFullYear(),_e.m=oe.getMonth(),_e.d=oe.getDate()+(_e.w+6)%7)}else("W"in _e||"U"in _e)&&("w"in _e||(_e.w="u"in _e?_e.u%7:"W"in _e?1:0),Se="Z"in _e?P4(Hb(_e.y,0,1)).getUTCDay():E4(Hb(_e.y,0,1)).getDay(),_e.m=0,_e.d="W"in _e?(_e.w+6)%7+_e.W*7-(Se+5)%7:_e.w+_e.U*7-(Se+6)%7);return"Z"in _e?(_e.H+=_e.Z/100|0,_e.M+=_e.Z%100,P4(_e)):E4(_e)}}function z(xe,He,wt,_e){for(var ne=0,oe=He.length,Se=wt.length,$e,Ke;ne<oe;){if(_e>=Se)return-1;if($e=He.charCodeAt(ne++),$e===37){if($e=He.charAt(ne++),Ke=D[$e in y9?He.charAt(ne++):$e],!Ke||(_e=Ke(xe,wt,_e))<0)return-1}else if($e!=wt.charCodeAt(_e++))return-1}return _e}function O(xe,He,wt){var _e=c.exec(He.slice(wt));return _e?(xe.p=u.get(_e[0].toLowerCase()),wt+_e[0].length):-1}function j(xe,He,wt){var _e=A.exec(He.slice(wt));return _e?(xe.w=w.get(_e[0].toLowerCase()),wt+_e[0].length):-1}function _(xe,He,wt){var _e=d.exec(He.slice(wt));return _e?(xe.w=g.get(_e[0].toLowerCase()),wt+_e[0].length):-1}function G(xe,He,wt){var _e=S.exec(He.slice(wt));return _e?(xe.m=P.get(_e[0].toLowerCase()),wt+_e[0].length):-1}function N(xe,He,wt){var _e=v.exec(He.slice(wt));return _e?(xe.m=b.get(_e[0].toLowerCase()),wt+_e[0].length):-1}function W(xe,He,wt){return z(xe,t,He,wt)}function V(xe,He,wt){return z(xe,r,He,wt)}function q(xe,He,wt){return z(xe,s,He,wt)}function pe(xe){return o[xe.getDay()]}function X(xe){return i[xe.getDay()]}function re(xe){return l[xe.getMonth()]}function ae(xe){return a[xe.getMonth()]}function $(xe){return n[+(xe.getHours()>=12)]}function se(xe){return 1+~~(xe.getMonth()/3)}function De(xe){return o[xe.getUTCDay()]}function Oe(xe){return i[xe.getUTCDay()]}function Be(xe){return l[xe.getUTCMonth()]}function Ve(xe){return a[xe.getUTCMonth()]}function ze(xe){return n[+(xe.getUTCHours()>=12)]}function nt(xe){return 1+~~(xe.getUTCMonth()/3)}return{format:function(xe){var He=B(xe+="",F);return He.toString=function(){return xe},He},parse:function(xe){var He=k(xe+="",!1);return He.toString=function(){return xe},He},utcFormat:function(xe){var He=B(xe+="",T);return He.toString=function(){return xe},He},utcParse:function(xe){var He=k(xe+="",!0);return He.toString=function(){return xe},He}}}var y9={"-":"",_:" ",0:"0"},Ni=/^\s*\d+/,TNe=/^%/,DNe=/[\\^$*+?|[\]().{}]/g;function Ps(e,t,r){var s=e<0?"-":"",n=(s?-e:e)+"",i=n.length;return s+(i<r?new Array(r-i+1).join(t)+n:n)}function MNe(e){return e.replace(DNe,"\\$&")}function Gb(e){return new RegExp("^(?:"+e.map(MNe).join("|")+")","i")}function Ob(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function INe(e,t,r){var s=Ni.exec(t.slice(r,r+1));return s?(e.w=+s[0],r+s[0].length):-1}function kNe(e,t,r){var s=Ni.exec(t.slice(r,r+1));return s?(e.u=+s[0],r+s[0].length):-1}function BNe(e,t,r){var s=Ni.exec(t.slice(r,r+2));return s?(e.U=+s[0],r+s[0].length):-1}function LNe(e,t,r){var s=Ni.exec(t.slice(r,r+2));return s?(e.V=+s[0],r+s[0].length):-1}function HNe(e,t,r){var s=Ni.exec(t.slice(r,r+2));return s?(e.W=+s[0],r+s[0].length):-1}function b9(e,t,r){var s=Ni.exec(t.slice(r,r+4));return s?(e.y=+s[0],r+s[0].length):-1}function S9(e,t,r){var s=Ni.exec(t.slice(r,r+2));return s?(e.y=+s[0]+(+s[0]>68?1900:2e3),r+s[0].length):-1}function GNe(e,t,r){var s=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return s?(e.Z=s[1]?0:-(s[2]+(s[3]||"00")),r+s[0].length):-1}function ONe(e,t,r){var s=Ni.exec(t.slice(r,r+1));return s?(e.q=s[0]*3-3,r+s[0].length):-1}function NNe(e,t,r){var s=Ni.exec(t.slice(r,r+2));return s?(e.m=s[0]-1,r+s[0].length):-1}function x9(e,t,r){var s=Ni.exec(t.slice(r,r+2));return s?(e.d=+s[0],r+s[0].length):-1}function _Ne(e,t,r){var s=Ni.exec(t.slice(r,r+3));return s?(e.m=0,e.d=+s[0],r+s[0].length):-1}function E9(e,t,r){var s=Ni.exec(t.slice(r,r+2));return s?(e.H=+s[0],r+s[0].length):-1}function VNe(e,t,r){var s=Ni.exec(t.slice(r,r+2));return s?(e.M=+s[0],r+s[0].length):-1}function zNe(e,t,r){var s=Ni.exec(t.slice(r,r+2));return s?(e.S=+s[0],r+s[0].length):-1}function QNe(e,t,r){var s=Ni.exec(t.slice(r,r+3));return s?(e.L=+s[0],r+s[0].length):-1}function UNe(e,t,r){var s=Ni.exec(t.slice(r,r+6));return s?(e.L=Math.floor(s[0]/1e3),r+s[0].length):-1}function WNe(e,t,r){var s=TNe.exec(t.slice(r,r+1));return s?r+s[0].length:-1}function jNe(e,t,r){var s=Ni.exec(t.slice(r));return s?(e.Q=+s[0],r+s[0].length):-1}function KNe(e,t,r){var s=Ni.exec(t.slice(r));return s?(e.s=+s[0],r+s[0].length):-1}function P9(e,t){return Ps(e.getDate(),t,2)}function YNe(e,t){return Ps(e.getHours(),t,2)}function ZNe(e,t){return Ps(e.getHours()%12||12,t,2)}function XNe(e,t){return Ps(1+o3.count(wg(e),e),t,3)}function _J(e,t){return Ps(e.getMilliseconds(),t,3)}function $Ne(e,t){return _J(e,t)+"000"}function JNe(e,t){return Ps(e.getMonth()+1,t,2)}function qNe(e,t){return Ps(e.getMinutes(),t,2)}function e_e(e,t){return Ps(e.getSeconds(),t,2)}function t_e(e){var t=e.getDay();return t===0?7:t}function r_e(e,t){return Ps(IT.count(wg(e)-1,e),t,2)}function VJ(e){var t=e.getDay();return t>=4||t===0?kw(e):kw.ceil(e)}function s_e(e,t){return e=VJ(e),Ps(kw.count(wg(e),e)+(wg(e).getDay()===4),t,2)}function n_e(e){return e.getDay()}function i_e(e,t){return Ps(iR.count(wg(e)-1,e),t,2)}function o_e(e,t){return Ps(e.getFullYear()%100,t,2)}function a_e(e,t){return e=VJ(e),Ps(e.getFullYear()%100,t,2)}function l_e(e,t){return Ps(e.getFullYear()%1e4,t,4)}function c_e(e,t){var r=e.getDay();return e=r>=4||r===0?kw(e):kw.ceil(e),Ps(e.getFullYear()%1e4,t,4)}function u_e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ps(t/60|0,"0",2)+Ps(t%60,"0",2)}function F9(e,t){return Ps(e.getUTCDate(),t,2)}function d_e(e,t){return Ps(e.getUTCHours(),t,2)}function h_e(e,t){return Ps(e.getUTCHours()%12||12,t,2)}function p_e(e,t){return Ps(1+W5.count(Mv(e),e),t,3)}function zJ(e,t){return Ps(e.getUTCMilliseconds(),t,3)}function g_e(e,t){return zJ(e,t)+"000"}function f_e(e,t){return Ps(e.getUTCMonth()+1,t,2)}function A_e(e,t){return Ps(e.getUTCMinutes(),t,2)}function m_e(e,t){return Ps(e.getUTCSeconds(),t,2)}function v_e(e){var t=e.getUTCDay();return t===0?7:t}function C_e(e,t){return Ps(NJ.count(Mv(e)-1,e),t,2)}function QJ(e){var t=e.getUTCDay();return t>=4||t===0?Bw(e):Bw.ceil(e)}function w_e(e,t){return e=QJ(e),Ps(Bw.count(Mv(e),e)+(Mv(e).getUTCDay()===4),t,2)}function y_e(e){return e.getUTCDay()}function b_e(e,t){return Ps(oR.count(Mv(e)-1,e),t,2)}function S_e(e,t){return Ps(e.getUTCFullYear()%100,t,2)}function x_e(e,t){return e=QJ(e),Ps(e.getUTCFullYear()%100,t,2)}function E_e(e,t){return Ps(e.getUTCFullYear()%1e4,t,4)}function P_e(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Bw(e):Bw.ceil(e),Ps(e.getUTCFullYear()%1e4,t,4)}function F_e(){return"+0000"}function R9(){return"%"}function T9(e){return+e}function D9(e){return Math.floor(+e/1e3)}var v0,UJ;R_e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function R_e(e){return v0=RNe(e),UJ=v0.format,v0.parse,v0.utcFormat,v0.utcParse,v0}function T_e(e){return new Date(e)}function D_e(e){return e instanceof Date?+e:+new Date(+e)}function WJ(e,t,r,s,n,i,o,a,l,c){var u=IJ(),d=u.invert,g=u.domain,A=c(".%L"),w=c(":%S"),v=c("%I:%M"),b=c("%I %p"),S=c("%a %d"),P=c("%b %d"),F=c("%B"),T=c("%Y");function D(B){return(l(B)<B?A:a(B)<B?w:o(B)<B?v:i(B)<B?b:s(B)<B?n(B)<B?S:P:r(B)<B?F:T)(B)}return u.invert=function(B){return new Date(d(B))},u.domain=function(B){return arguments.length?g(Array.from(B,D_e)):g().map(T_e)},u.ticks=function(B){var k=g();return e(k[0],k[k.length-1],B??10)},u.tickFormat=function(B,k){return k==null?D:c(k)},u.nice=function(B){var k=g();return(!B||typeof B.range!="function")&&(B=t(k[0],k[k.length-1],B??10)),B?g(HJ(k,B)):u},u.copy=function(){return MT(u,WJ(e,t,r,s,n,i,o,a,l,c))},u}function M_e(){return DT.apply(WJ(PNe,FNe,wg,j5,IT,o3,U5,Q5,V0,UJ).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var jJ={exports:{}},Nb={};/**
786
+ `+L.stack}return{value:h,source:p,stack:R,digest:null}}function _C(h,p,C){return{value:h,source:null,stack:C??null,digest:p??null}}function pf(h,p){try{console.error(p.value)}catch(C){setTimeout(function(){throw C})}}var nE=typeof WeakMap=="function"?WeakMap:Map;function gm(h,p,C){C=Su(-1,C),C.tag=3,C.payload={element:null};var x=p.value;return C.callback=function(){JC||(JC=!0,cb=x),pf(h,p)},C}function VC(h,p,C){C=Su(-1,C),C.tag=3;var x=h.type.getDerivedStateFromError;if(typeof x=="function"){var R=p.value;C.payload=function(){return x(R)},C.callback=function(){pf(h,p)}}var L=h.stateNode;return L!==null&&typeof L.componentDidCatch=="function"&&(C.callback=function(){pf(h,p),typeof x!="function"&&(qd===null?qd=new Set([this]):qd.add(this));var Z=p.stack;this.componentDidCatch(p.value,{componentStack:Z!==null?Z:""})}),C}function fm(h,p,C){var x=h.pingCache;if(x===null){x=h.pingCache=new nE;var R=new Set;x.set(p,R)}else R=x.get(p),R===void 0&&(R=new Set,x.set(p,R));R.has(C)||(R.add(C),h=OD.bind(null,h,p,C),p.then(h,h))}function iE(h){do{var p;if((p=h.tag===13)&&(p=h.memoizedState,p=p!==null?p.dehydrated!==null:!0),p)return h;h=h.return}while(h!==null);return null}function Yy(h,p,C,x,R){return h.mode&1?(h.flags|=65536,h.lanes=R,h):(h===p?h.flags|=65536:(h.flags|=128,C.flags|=131072,C.flags&=-52805,C.tag===1&&(C.alternate===null?C.tag=17:(p=Su(-1,1),p.tag=2,Na(C,p,1))),C.lanes|=1),h)}var zC=T.ReactCurrentOwner,Ki=!1;function hi(h,p,C,x){p.child=h===null?xC(p,null,C,x):vn(p,h.child,C,x)}function oE(h,p,C,x,R){C=C.render;var L=p.ref;return Kd(p,R),x=Ep(h,p,C,x,L,R),C=MC(),h!==null&&!Ki?(p.updateQueue=h.updateQueue,p.flags&=-2053,h.lanes&=~R,Fl(h,p,R)):(qs&&C&&sm(p),p.flags|=1,hi(h,p,x,R),p.child)}function Zy(h,p,C,x,R){if(h===null){var L=C.type;return typeof L=="function"&&!n0(L)&&L.defaultProps===void 0&&C.compare===null&&C.defaultProps===void 0?(p.tag=15,p.type=L,yc(h,p,L,x,R)):(h=i0(C.type,null,x,p,p.mode,R),h.ref=p.ref,h.return=p,p.child=h)}if(L=h.child,!(h.lanes&R)){var Z=L.memoizedProps;if(C=C.compare,C=C!==null?C:Tt,C(Z,x)&&h.ref===p.ref)return Fl(h,p,R)}return p.flags|=1,h=Il(L,x),h.ref=p.ref,h.return=p,p.child=h}function yc(h,p,C,x,R){if(h!==null){var L=h.memoizedProps;if(Tt(L,x)&&h.ref===p.ref)if(Ki=!1,p.pendingProps=x=L,(h.lanes&R)!==0)h.flags&131072&&(Ki=!0);else return p.lanes=h.lanes,Fl(h,p,R)}return Jy(h,p,C,x,R)}function Xy(h,p,C){var x=p.pendingProps,R=x.children,L=h!==null?h.memoizedState:null;if(x.mode==="hidden")if(!(p.mode&1))p.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ws(mf,ta),ta|=C;else{if(!(C&1073741824))return h=L!==null?L.baseLanes|C:C,p.lanes=p.childLanes=1073741824,p.memoizedState={baseLanes:h,cachePool:null,transitions:null},p.updateQueue=null,Ws(mf,ta),ta|=h,null;p.memoizedState={baseLanes:0,cachePool:null,transitions:null},x=L!==null?L.baseLanes:C,Ws(mf,ta),ta|=x}else L!==null?(x=L.baseLanes|C,p.memoizedState=null):x=C,Ws(mf,ta),ta|=x;return hi(h,p,R,C),p.child}function $y(h,p){var C=p.ref;(h===null&&C!==null||h!==null&&h.ref!==C)&&(p.flags|=512,p.flags|=2097152)}function Jy(h,p,C,x,R){var L=bo(C)?Wi:Fi.current;return L=tf(p,L),Kd(p,R),C=Ep(h,p,C,x,L,R),x=MC(),h!==null&&!Ki?(p.updateQueue=h.updateQueue,p.flags&=-2053,h.lanes&=~R,Fl(h,p,R)):(qs&&x&&sm(p),p.flags|=1,hi(h,p,C,R),p.child)}function qy(h,p,C,x,R){if(bo(C)){var L=!0;Ba(p)}else L=!1;if(Kd(p,R),p.stateNode===null)UC(h,p),Pp(p,C,x),Ky(p,C,x,R),x=!0;else if(h===null){var Z=p.stateNode,he=p.memoizedProps;Z.props=he;var Ae=Z.context,Ge=C.contextType;typeof Ge=="object"&&Ge!==null?Ge=Ga(Ge):(Ge=bo(C)?Wi:Fi.current,Ge=tf(p,Ge));var at=C.getDerivedStateFromProps,ct=typeof at=="function"||typeof Z.getSnapshotBeforeUpdate=="function";ct||typeof Z.UNSAFE_componentWillReceiveProps!="function"&&typeof Z.componentWillReceiveProps!="function"||(he!==x||Ae!==Ge)&&hf(p,Z,x,Ge),Oa=!1;var it=p.memoizedState;Z.state=it,nf(p,x,Z,R),Ae=p.memoizedState,he!==x||it!==Ae||yo.current||Oa?(typeof at=="function"&&(OC(p,C,at,x),Ae=p.memoizedState),(he=Oa||jy(p,C,he,x,it,Ae,Ge))?(ct||typeof Z.UNSAFE_componentWillMount!="function"&&typeof Z.componentWillMount!="function"||(typeof Z.componentWillMount=="function"&&Z.componentWillMount(),typeof Z.UNSAFE_componentWillMount=="function"&&Z.UNSAFE_componentWillMount()),typeof Z.componentDidMount=="function"&&(p.flags|=4194308)):(typeof Z.componentDidMount=="function"&&(p.flags|=4194308),p.memoizedProps=x,p.memoizedState=Ae),Z.props=x,Z.state=Ae,Z.context=Ge,x=he):(typeof Z.componentDidMount=="function"&&(p.flags|=4194308),x=!1)}else{Z=p.stateNode,X3(h,p),he=p.memoizedProps,Ge=p.type===p.elementType?he:Va(p.type,he),Z.props=Ge,ct=p.pendingProps,it=Z.context,Ae=C.contextType,typeof Ae=="object"&&Ae!==null?Ae=Ga(Ae):(Ae=bo(C)?Wi:Fi.current,Ae=tf(p,Ae));var Dt=C.getDerivedStateFromProps;(at=typeof Dt=="function"||typeof Z.getSnapshotBeforeUpdate=="function")||typeof Z.UNSAFE_componentWillReceiveProps!="function"&&typeof Z.componentWillReceiveProps!="function"||(he!==ct||it!==Ae)&&hf(p,Z,x,Ae),Oa=!1,it=p.memoizedState,Z.state=it,nf(p,x,Z,R);var _t=p.memoizedState;he!==ct||it!==_t||yo.current||Oa?(typeof Dt=="function"&&(OC(p,C,Dt,x),_t=p.memoizedState),(Ge=Oa||jy(p,C,Ge,x,it,_t,Ae)||!1)?(at||typeof Z.UNSAFE_componentWillUpdate!="function"&&typeof Z.componentWillUpdate!="function"||(typeof Z.componentWillUpdate=="function"&&Z.componentWillUpdate(x,_t,Ae),typeof Z.UNSAFE_componentWillUpdate=="function"&&Z.UNSAFE_componentWillUpdate(x,_t,Ae)),typeof Z.componentDidUpdate=="function"&&(p.flags|=4),typeof Z.getSnapshotBeforeUpdate=="function"&&(p.flags|=1024)):(typeof Z.componentDidUpdate!="function"||he===h.memoizedProps&&it===h.memoizedState||(p.flags|=4),typeof Z.getSnapshotBeforeUpdate!="function"||he===h.memoizedProps&&it===h.memoizedState||(p.flags|=1024),p.memoizedProps=x,p.memoizedState=_t),Z.props=x,Z.state=_t,Z.context=Ae,x=Ge):(typeof Z.componentDidUpdate!="function"||he===h.memoizedProps&&it===h.memoizedState||(p.flags|=4),typeof Z.getSnapshotBeforeUpdate!="function"||he===h.memoizedProps&&it===h.memoizedState||(p.flags|=1024),x=!1)}return eb(h,p,C,x,L,R)}function eb(h,p,C,x,R,L){$y(h,p);var Z=(p.flags&128)!==0;if(!x&&!Z)return R&&U3(p,C,!1),Fl(h,p,L);x=p.stateNode,zC.current=p;var he=Z&&typeof C.getDerivedStateFromError!="function"?null:x.render();return p.flags|=1,h!==null&&Z?(p.child=vn(p,h.child,null,L),p.child=vn(p,null,he,L)):hi(h,p,he,L),p.memoizedState=x.state,R&&U3(p,C,!0),p.child}function aE(h){var p=h.stateNode;p.pendingContext?z3(h,p.pendingContext,p.pendingContext!==p.context):p.context&&z3(h,p.context,!1),ky(h,p.containerInfo)}function bc(h,p,C,x,R){return Ac(),mc(R),p.flags|=256,hi(h,p,C,x),p.child}var Am={dehydrated:null,treeContext:null,retryLane:0};function mm(h){return{baseLanes:h,cachePool:null,transitions:null}}function QC(h,p,C){var x=p.pendingProps,R=rn.current,L=!1,Z=(p.flags&128)!==0,he;if((he=Z)||(he=h!==null&&h.memoizedState===null?!1:(R&2)!==0),he?(L=!0,p.flags&=-129):(h===null||h.memoizedState!==null)&&(R|=1),Ws(rn,R&1),h===null)return So(p),h=p.memoizedState,h!==null&&(h=h.dehydrated,h!==null)?(p.mode&1?h.data==="$!"?p.lanes=8:p.lanes=1073741824:p.lanes=1,null):(Z=x.children,h=x.fallback,L?(x=p.mode,L=p.child,Z={mode:"hidden",children:Z},!(x&1)&&L!==null?(L.childLanes=0,L.pendingProps=Z):L=o0(Z,x,0,null),h=Ip(h,x,C,null),L.return=p,h.return=p,L.sibling=h,p.child=L,p.child.memoizedState=mm(C),p.memoizedState=Am,h):gf(p,Z));if(R=h.memoizedState,R!==null&&(he=R.dehydrated,he!==null))return lr(h,p,Z,x,he,R,C);if(L){L=x.fallback,Z=p.mode,R=h.child,he=R.sibling;var Ae={mode:"hidden",children:x.children};return!(Z&1)&&p.child!==R?(x=p.child,x.childLanes=0,x.pendingProps=Ae,p.deletions=null):(x=Il(R,Ae),x.subtreeFlags=R.subtreeFlags&14680064),he!==null?L=Il(he,L):(L=Ip(L,Z,C,null),L.flags|=2),L.return=p,x.return=p,x.sibling=L,p.child=x,x=L,L=p.child,Z=h.child.memoizedState,Z=Z===null?mm(C):{baseLanes:Z.baseLanes|C,cachePool:null,transitions:Z.transitions},L.memoizedState=Z,L.childLanes=h.childLanes&~C,p.memoizedState=Am,x}return L=h.child,h=L.sibling,x=Il(L,{mode:"visible",children:x.children}),!(p.mode&1)&&(x.lanes=C),x.return=p,x.sibling=null,h!==null&&(C=p.deletions,C===null?(p.deletions=[h],p.flags|=16):C.push(h)),p.child=x,p.memoizedState=null,x}function gf(h,p){return p=o0({mode:"visible",children:p},h.mode,0,null),p.return=h,h.child=p}function Fu(h,p,C,x){return x!==null&&mc(x),vn(p,h.child,null,C),h=gf(p,p.pendingProps.children),h.flags|=2,p.memoizedState=null,h}function lr(h,p,C,x,R,L,Z){if(C)return p.flags&256?(p.flags&=-257,x=_C(Error(r(422))),Fu(h,p,Z,x)):p.memoizedState!==null?(p.child=h.child,p.flags|=128,null):(L=x.fallback,R=p.mode,x=o0({mode:"visible",children:x.children},R,0,null),L=Ip(L,R,Z,null),L.flags|=2,x.return=p,L.return=p,x.sibling=L,p.child=x,p.mode&1&&vn(p,h.child,null,Z),p.child.memoizedState=mm(Z),p.memoizedState=Am,L);if(!(p.mode&1))return Fu(h,p,Z,null);if(R.data==="$!"){if(x=R.nextSibling&&R.nextSibling.dataset,x)var he=x.dgst;return x=he,L=Error(r(419)),x=_C(L,x,void 0),Fu(h,p,Z,x)}if(he=(Z&h.childLanes)!==0,Ki||he){if(x=ti,x!==null){switch(Z&-Z){case 4:R=2;break;case 16:R=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:R=32;break;case 536870912:R=268435456;break;default:R=0}R=R&(x.suspendedLanes|Z)?0:R,R!==0&&R!==L.retryLane&&(L.retryLane=R,bu(h,R),Ml(x,h,R,-1))}return fb(),x=_C(Error(r(421))),Fu(h,p,Z,x)}return R.data==="$?"?(p.flags|=128,p.child=h.child,p=ND.bind(null,h),R._reactRetry=p,null):(h=L.treeContext,Jo=zd(R.nextSibling),Ti=p,qs=!0,El=null,h!==null&&(La[Ha++]=pc,La[Ha++]=gc,La[Ha++]=vp,pc=h.id,gc=h.overflow,vp=p),p=gf(p,x.children),p.flags|=4096,p)}function vm(h,p,C){h.lanes|=p;var x=h.alternate;x!==null&&(x.lanes|=p),di(h.return,p,C)}function Cm(h,p,C,x,R){var L=h.memoizedState;L===null?h.memoizedState={isBackwards:p,rendering:null,renderingStartTime:0,last:x,tail:C,tailMode:R}:(L.isBackwards=p,L.rendering=null,L.renderingStartTime=0,L.last=x,L.tail=C,L.tailMode=R)}function Xd(h,p,C){var x=p.pendingProps,R=x.revealOrder,L=x.tail;if(hi(h,p,x.children,C),x=rn.current,x&2)x=x&1|2,p.flags|=128;else{if(h!==null&&h.flags&128)e:for(h=p.child;h!==null;){if(h.tag===13)h.memoizedState!==null&&vm(h,C,p);else if(h.tag===19)vm(h,C,p);else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===p)break e;for(;h.sibling===null;){if(h.return===null||h.return===p)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}x&=1}if(Ws(rn,x),!(p.mode&1))p.memoizedState=null;else switch(R){case"forwards":for(C=p.child,R=null;C!==null;)h=C.alternate,h!==null&&Sp(h)===null&&(R=C),C=C.sibling;C=R,C===null?(R=p.child,p.child=null):(R=C.sibling,C.sibling=null),Cm(p,!1,R,C,L);break;case"backwards":for(C=null,R=p.child,p.child=null;R!==null;){if(h=R.alternate,h!==null&&Sp(h)===null){p.child=R;break}h=R.sibling,R.sibling=C,C=R,R=h}Cm(p,!0,C,null,L);break;case"together":Cm(p,!1,null,null,void 0);break;default:p.memoizedState=null}return p.child}function UC(h,p){!(p.mode&1)&&h!==null&&(h.alternate=null,p.alternate=null,p.flags|=2)}function Fl(h,p,C){if(h!==null&&(p.dependencies=h.dependencies),Jd|=p.lanes,!(C&p.childLanes))return null;if(h!==null&&p.child!==h.child)throw Error(r(153));if(p.child!==null){for(h=p.child,C=Il(h,h.pendingProps),p.child=C,C.return=p;h.sibling!==null;)h=h.sibling,C=C.sibling=Il(h,h.pendingProps),C.return=p;C.sibling=null}return p.child}function lE(h,p,C){switch(p.tag){case 3:aE(p),Ac();break;case 5:By(p);break;case 1:bo(p.type)&&Ba(p);break;case 4:ky(p,p.stateNode.containerInfo);break;case 10:var x=p.type._context,R=p.memoizedProps.value;Ws(om,x._currentValue),x._currentValue=R;break;case 13:if(x=p.memoizedState,x!==null)return x.dehydrated!==null?(Ws(rn,rn.current&1),p.flags|=128,null):C&p.child.childLanes?QC(h,p,C):(Ws(rn,rn.current&1),h=Fl(h,p,C),h!==null?h.sibling:null);Ws(rn,rn.current&1);break;case 19:if(x=(C&p.childLanes)!==0,h.flags&128){if(x)return Xd(h,p,C);p.flags|=128}if(R=p.memoizedState,R!==null&&(R.rendering=null,R.tail=null,R.lastEffect=null),Ws(rn,rn.current),x)break;return null;case 22:case 23:return p.lanes=0,Xy(h,p,C)}return Fl(h,p,C)}var pi,tb,cE,rb;pi=function(h,p){for(var C=p.child;C!==null;){if(C.tag===5||C.tag===6)h.appendChild(C.stateNode);else if(C.tag!==4&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===p)break;for(;C.sibling===null;){if(C.return===null||C.return===p)return;C=C.return}C.sibling.return=C.return,C=C.sibling}},tb=function(){},cE=function(h,p,C,x){var R=h.memoizedProps;if(R!==x){h=p.stateNode,xu(vc.current);var L=null;switch(C){case"input":R=oe(h,R),x=oe(h,x),L=[];break;case"select":R=ae({},R,{value:void 0}),x=ae({},x,{value:void 0}),L=[];break;case"textarea":R=tt(h,R),x=tt(h,x),L=[];break;default:typeof R.onClick!="function"&&typeof x.onClick=="function"&&(h.onclick=fC)}un(C,x);var Z;C=null;for(Ge in R)if(!x.hasOwnProperty(Ge)&&R.hasOwnProperty(Ge)&&R[Ge]!=null)if(Ge==="style"){var he=R[Ge];for(Z in he)he.hasOwnProperty(Z)&&(C||(C={}),C[Z]="")}else Ge!=="dangerouslySetInnerHTML"&&Ge!=="children"&&Ge!=="suppressContentEditableWarning"&&Ge!=="suppressHydrationWarning"&&Ge!=="autoFocus"&&(n.hasOwnProperty(Ge)?L||(L=[]):(L=L||[]).push(Ge,null));for(Ge in x){var Ae=x[Ge];if(he=R!=null?R[Ge]:void 0,x.hasOwnProperty(Ge)&&Ae!==he&&(Ae!=null||he!=null))if(Ge==="style")if(he){for(Z in he)!he.hasOwnProperty(Z)||Ae&&Ae.hasOwnProperty(Z)||(C||(C={}),C[Z]="");for(Z in Ae)Ae.hasOwnProperty(Z)&&he[Z]!==Ae[Z]&&(C||(C={}),C[Z]=Ae[Z])}else C||(L||(L=[]),L.push(Ge,C)),C=Ae;else Ge==="dangerouslySetInnerHTML"?(Ae=Ae?Ae.__html:void 0,he=he?he.__html:void 0,Ae!=null&&he!==Ae&&(L=L||[]).push(Ge,Ae)):Ge==="children"?typeof Ae!="string"&&typeof Ae!="number"||(L=L||[]).push(Ge,""+Ae):Ge!=="suppressContentEditableWarning"&&Ge!=="suppressHydrationWarning"&&(n.hasOwnProperty(Ge)?(Ae!=null&&Ge==="onScroll"&&$s("scroll",h),L||he===Ae||(L=[])):(L=L||[]).push(Ge,Ae))}C&&(L=L||[]).push("style",C);var Ge=L;(p.updateQueue=Ge)&&(p.flags|=4)}},rb=function(h,p,C,x){C!==x&&(p.flags|=4)};function wm(h,p){if(!qs)switch(h.tailMode){case"hidden":p=h.tail;for(var C=null;p!==null;)p.alternate!==null&&(C=p),p=p.sibling;C===null?h.tail=null:C.sibling=null;break;case"collapsed":C=h.tail;for(var x=null;C!==null;)C.alternate!==null&&(x=C),C=C.sibling;x===null?p||h.tail===null?h.tail=null:h.tail.sibling=null:x.sibling=null}}function gi(h){var p=h.alternate!==null&&h.alternate.child===h.child,C=0,x=0;if(p)for(var R=h.child;R!==null;)C|=R.lanes|R.childLanes,x|=R.subtreeFlags&14680064,x|=R.flags&14680064,R.return=h,R=R.sibling;else for(R=h.child;R!==null;)C|=R.lanes|R.childLanes,x|=R.subtreeFlags,x|=R.flags,R.return=h,R=R.sibling;return h.subtreeFlags|=x,h.childLanes=C,p}function MD(h,p,C){var x=p.pendingProps;switch(wp(p),p.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gi(p),null;case 1:return bo(p.type)&&CC(),gi(p),null;case 3:return x=p.stateNode,Yd(),Js(yo),Js(Fi),DC(),x.pendingContext&&(x.context=x.pendingContext,x.pendingContext=null),(h===null||h.child===null)&&(nm(p)?p.flags|=4:h===null||h.memoizedState.isDehydrated&&!(p.flags&256)||(p.flags|=1024,El!==null&&(hb(El),El=null))),tb(h,p),gi(p),null;case 5:TC(p);var R=xu(of.current);if(C=p.type,h!==null&&p.stateNode!=null)cE(h,p,C,x,R),h.ref!==p.ref&&(p.flags|=512,p.flags|=2097152);else{if(!x){if(p.stateNode===null)throw Error(r(166));return gi(p),null}if(h=xu(vc.current),nm(p)){x=p.stateNode,C=p.type;var L=p.memoizedProps;switch(x[dc]=p,x[Qd]=L,h=(p.mode&1)!==0,C){case"dialog":$s("cancel",x),$s("close",x);break;case"iframe":case"object":case"embed":$s("load",x);break;case"video":case"audio":for(R=0;R<vu.length;R++)$s(vu[R],x);break;case"source":$s("error",x);break;case"img":case"image":case"link":$s("error",x),$s("load",x);break;case"details":$s("toggle",x);break;case"input":Se(x,L),$s("invalid",x);break;case"select":x._wrapperState={wasMultiple:!!L.multiple},$s("invalid",x);break;case"textarea":Rt(x,L),$s("invalid",x)}un(C,L),R=null;for(var Z in L)if(L.hasOwnProperty(Z)){var he=L[Z];Z==="children"?typeof he=="string"?x.textContent!==he&&(L.suppressHydrationWarning!==!0&&qA(x.textContent,he,h),R=["children",he]):typeof he=="number"&&x.textContent!==""+he&&(L.suppressHydrationWarning!==!0&&qA(x.textContent,he,h),R=["children",""+he]):n.hasOwnProperty(Z)&&he!=null&&Z==="onScroll"&&$s("scroll",x)}switch(C){case"input":wt(x),rt(x,L,!0);break;case"textarea":wt(x),Lt(x);break;case"select":case"option":break;default:typeof L.onClick=="function"&&(x.onclick=fC)}x=R,p.updateQueue=x,x!==null&&(p.flags|=4)}else{Z=R.nodeType===9?R:R.ownerDocument,h==="http://www.w3.org/1999/xhtml"&&(h=sr(C)),h==="http://www.w3.org/1999/xhtml"?C==="script"?(h=Z.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild)):typeof x.is=="string"?h=Z.createElement(C,{is:x.is}):(h=Z.createElement(C),C==="select"&&(Z=h,x.multiple?Z.multiple=!0:x.size&&(Z.size=x.size))):h=Z.createElementNS(h,C),h[dc]=p,h[Qd]=x,pi(h,p,!1,!1),p.stateNode=h;e:{switch(Z=In(C,x),C){case"dialog":$s("cancel",h),$s("close",h),R=x;break;case"iframe":case"object":case"embed":$s("load",h),R=x;break;case"video":case"audio":for(R=0;R<vu.length;R++)$s(vu[R],h);R=x;break;case"source":$s("error",h),R=x;break;case"img":case"image":case"link":$s("error",h),$s("load",h),R=x;break;case"details":$s("toggle",h),R=x;break;case"input":Se(h,x),R=oe(h,x),$s("invalid",h);break;case"option":R=x;break;case"select":h._wrapperState={wasMultiple:!!x.multiple},R=ae({},x,{value:void 0}),$s("invalid",h);break;case"textarea":Rt(h,x),R=tt(h,x),$s("invalid",h);break;default:R=x}un(C,R),he=R;for(L in he)if(he.hasOwnProperty(L)){var Ae=he[L];L==="style"?go(h,Ae):L==="dangerouslySetInnerHTML"?(Ae=Ae?Ae.__html:void 0,Ae!=null&&Qr(h,Ae)):L==="children"?typeof Ae=="string"?(C!=="textarea"||Ae!=="")&&Us(h,Ae):typeof Ae=="number"&&Us(h,""+Ae):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(n.hasOwnProperty(L)?Ae!=null&&L==="onScroll"&&$s("scroll",h):Ae!=null&&F(h,L,Ae,Z))}switch(C){case"input":wt(h),rt(h,x,!1);break;case"textarea":wt(h),Lt(h);break;case"option":x.value!=null&&h.setAttribute("value",""+nt(x.value));break;case"select":h.multiple=!!x.multiple,L=x.value,L!=null?ot(h,!!x.multiple,L,!1):x.defaultValue!=null&&ot(h,!!x.multiple,x.defaultValue,!0);break;default:typeof R.onClick=="function"&&(h.onclick=fC)}switch(C){case"button":case"input":case"select":case"textarea":x=!!x.autoFocus;break e;case"img":x=!0;break e;default:x=!1}}x&&(p.flags|=4)}p.ref!==null&&(p.flags|=512,p.flags|=2097152)}return gi(p),null;case 6:if(h&&p.stateNode!=null)rb(h,p,h.memoizedProps,x);else{if(typeof x!="string"&&p.stateNode===null)throw Error(r(166));if(C=xu(of.current),xu(vc.current),nm(p)){if(x=p.stateNode,C=p.memoizedProps,x[dc]=p,(L=x.nodeValue!==C)&&(h=Ti,h!==null))switch(h.tag){case 3:qA(x.nodeValue,C,(h.mode&1)!==0);break;case 5:h.memoizedProps.suppressHydrationWarning!==!0&&qA(x.nodeValue,C,(h.mode&1)!==0)}L&&(p.flags|=4)}else x=(C.nodeType===9?C:C.ownerDocument).createTextNode(x),x[dc]=p,p.stateNode=x}return gi(p),null;case 13:if(Js(rn),x=p.memoizedState,h===null||h.memoizedState!==null&&h.memoizedState.dehydrated!==null){if(qs&&Jo!==null&&p.mode&1&&!(p.flags&128))Ty(),Ac(),p.flags|=98560,L=!1;else if(L=nm(p),x!==null&&x.dehydrated!==null){if(h===null){if(!L)throw Error(r(318));if(L=p.memoizedState,L=L!==null?L.dehydrated:null,!L)throw Error(r(317));L[dc]=p}else Ac(),!(p.flags&128)&&(p.memoizedState=null),p.flags|=4;gi(p),L=!1}else El!==null&&(hb(El),El=null),L=!0;if(!L)return p.flags&65536?p:null}return p.flags&128?(p.lanes=C,p):(x=x!==null,x!==(h!==null&&h.memoizedState!==null)&&x&&(p.child.flags|=8192,p.mode&1&&(h===null||rn.current&1?Qn===0&&(Qn=3):fb())),p.updateQueue!==null&&(p.flags|=4),gi(p),null);case 4:return Yd(),tb(h,p),h===null&&_d(p.stateNode.containerInfo),gi(p),null;case 10:return EC(p.type._context),gi(p),null;case 17:return bo(p.type)&&CC(),gi(p),null;case 19:if(Js(rn),L=p.memoizedState,L===null)return gi(p),null;if(x=(p.flags&128)!==0,Z=L.rendering,Z===null)if(x)wm(L,!1);else{if(Qn!==0||h!==null&&h.flags&128)for(h=p.child;h!==null;){if(Z=Sp(h),Z!==null){for(p.flags|=128,wm(L,!1),x=Z.updateQueue,x!==null&&(p.updateQueue=x,p.flags|=4),p.subtreeFlags=0,x=C,C=p.child;C!==null;)L=C,h=x,L.flags&=14680066,Z=L.alternate,Z===null?(L.childLanes=0,L.lanes=h,L.child=null,L.subtreeFlags=0,L.memoizedProps=null,L.memoizedState=null,L.updateQueue=null,L.dependencies=null,L.stateNode=null):(L.childLanes=Z.childLanes,L.lanes=Z.lanes,L.child=Z.child,L.subtreeFlags=0,L.deletions=null,L.memoizedProps=Z.memoizedProps,L.memoizedState=Z.memoizedState,L.updateQueue=Z.updateQueue,L.type=Z.type,h=Z.dependencies,L.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext}),C=C.sibling;return Ws(rn,rn.current&1|2),p.child}h=h.sibling}L.tail!==null&&ys()>Rp&&(p.flags|=128,x=!0,wm(L,!1),p.lanes=4194304)}else{if(!x)if(h=Sp(Z),h!==null){if(p.flags|=128,x=!0,C=h.updateQueue,C!==null&&(p.updateQueue=C,p.flags|=4),wm(L,!0),L.tail===null&&L.tailMode==="hidden"&&!Z.alternate&&!qs)return gi(p),null}else 2*ys()-L.renderingStartTime>Rp&&C!==1073741824&&(p.flags|=128,x=!0,wm(L,!1),p.lanes=4194304);L.isBackwards?(Z.sibling=p.child,p.child=Z):(C=L.last,C!==null?C.sibling=Z:p.child=Z,L.last=Z)}return L.tail!==null?(p=L.tail,L.rendering=p,L.tail=p.sibling,L.renderingStartTime=ys(),p.sibling=null,C=rn.current,Ws(rn,x?C&1|2:C&1),p):(gi(p),null);case 22:case 23:return gb(),x=p.memoizedState!==null,h!==null&&h.memoizedState!==null!==x&&(p.flags|=8192),x&&p.mode&1?ta&1073741824&&(gi(p),p.subtreeFlags&6&&(p.flags|=8192)):gi(p),null;case 24:return null;case 25:return null}throw Error(r(156,p.tag))}function ID(h,p){switch(wp(p),p.tag){case 1:return bo(p.type)&&CC(),h=p.flags,h&65536?(p.flags=h&-65537|128,p):null;case 3:return Yd(),Js(yo),Js(Fi),DC(),h=p.flags,h&65536&&!(h&128)?(p.flags=h&-65537|128,p):null;case 5:return TC(p),null;case 13:if(Js(rn),h=p.memoizedState,h!==null&&h.dehydrated!==null){if(p.alternate===null)throw Error(r(340));Ac()}return h=p.flags,h&65536?(p.flags=h&-65537|128,p):null;case 19:return Js(rn),null;case 4:return Yd(),null;case 10:return EC(p.type._context),null;case 22:case 23:return gb(),null;case 24:return null;default:return null}}var WC=!1,sn=!1,Yi=typeof WeakSet=="function"?WeakSet:Set,Bt=null;function ff(h,p){var C=h.ref;if(C!==null)if(typeof C=="function")try{C(null)}catch(x){hn(h,p,x)}else C.current=null}function jC(h,p,C){try{C()}catch(x){hn(h,p,x)}}var uE=!1;function kD(h,p){if(em=Zo,h=Hs(),KA(h)){if("selectionStart"in h)var C={start:h.selectionStart,end:h.selectionEnd};else e:{C=(C=h.ownerDocument)&&C.defaultView||window;var x=C.getSelection&&C.getSelection();if(x&&x.rangeCount!==0){C=x.anchorNode;var R=x.anchorOffset,L=x.focusNode;x=x.focusOffset;try{C.nodeType,L.nodeType}catch{C=null;break e}var Z=0,he=-1,Ae=-1,Ge=0,at=0,ct=h,it=null;t:for(;;){for(var Dt;ct!==C||R!==0&&ct.nodeType!==3||(he=Z+R),ct!==L||x!==0&&ct.nodeType!==3||(Ae=Z+x),ct.nodeType===3&&(Z+=ct.nodeValue.length),(Dt=ct.firstChild)!==null;)it=ct,ct=Dt;for(;;){if(ct===h)break t;if(it===C&&++Ge===R&&(he=Z),it===L&&++at===x&&(Ae=Z),(Dt=ct.nextSibling)!==null)break;ct=it,it=ct.parentNode}ct=Dt}C=he===-1||Ae===-1?null:{start:he,end:Ae}}else C=null}C=C||{start:0,end:0}}else C=null;for(Ap={focusedElem:h,selectionRange:C},Zo=!1,Bt=p;Bt!==null;)if(p=Bt,h=p.child,(p.subtreeFlags&1028)!==0&&h!==null)h.return=p,Bt=h;else for(;Bt!==null;){p=Bt;try{var _t=p.alternate;if(p.flags&1024)switch(p.tag){case 0:case 11:case 15:break;case 1:if(_t!==null){var Ut=_t.memoizedProps,En=_t.memoizedState,Re=p.stateNode,we=Re.getSnapshotBeforeUpdate(p.elementType===p.type?Ut:Va(p.type,Ut),En);Re.__reactInternalSnapshotBeforeUpdate=we}break;case 3:var Me=p.stateNode.containerInfo;Me.nodeType===1?Me.textContent="":Me.nodeType===9&&Me.documentElement&&Me.removeChild(Me.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(pt){hn(p,p.return,pt)}if(h=p.sibling,h!==null){h.return=p.return,Bt=h;break}Bt=p.return}return _t=uE,uE=!1,_t}function Ru(h,p,C){var x=p.updateQueue;if(x=x!==null?x.lastEffect:null,x!==null){var R=x=x.next;do{if((R.tag&h)===h){var L=R.destroy;R.destroy=void 0,L!==void 0&&jC(p,C,L)}R=R.next}while(R!==x)}}function ym(h,p){if(p=p.updateQueue,p=p!==null?p.lastEffect:null,p!==null){var C=p=p.next;do{if((C.tag&h)===h){var x=C.create;C.destroy=x()}C=C.next}while(C!==p)}}function KC(h){var p=h.ref;if(p!==null){var C=h.stateNode;switch(h.tag){case 5:h=C;break;default:h=C}typeof p=="function"?p(h):p.current=h}}function dE(h){var p=h.alternate;p!==null&&(h.alternate=null,dE(p)),h.child=null,h.deletions=null,h.sibling=null,h.tag===5&&(p=h.stateNode,p!==null&&(delete p[dc],delete p[Qd],delete p[mC],delete p[ee],delete p[qg])),h.stateNode=null,h.return=null,h.dependencies=null,h.memoizedProps=null,h.memoizedState=null,h.pendingProps=null,h.stateNode=null,h.updateQueue=null}function hE(h){return h.tag===5||h.tag===3||h.tag===4}function pE(h){e:for(;;){for(;h.sibling===null;){if(h.return===null||hE(h.return))return null;h=h.return}for(h.sibling.return=h.return,h=h.sibling;h.tag!==5&&h.tag!==6&&h.tag!==18;){if(h.flags&2||h.child===null||h.tag===4)continue e;h.child.return=h,h=h.child}if(!(h.flags&2))return h.stateNode}}function sb(h,p,C){var x=h.tag;if(x===5||x===6)h=h.stateNode,p?C.nodeType===8?C.parentNode.insertBefore(h,p):C.insertBefore(h,p):(C.nodeType===8?(p=C.parentNode,p.insertBefore(h,C)):(p=C,p.appendChild(h)),C=C._reactRootContainer,C!=null||p.onclick!==null||(p.onclick=fC));else if(x!==4&&(h=h.child,h!==null))for(sb(h,p,C),h=h.sibling;h!==null;)sb(h,p,C),h=h.sibling}function YC(h,p,C){var x=h.tag;if(x===5||x===6)h=h.stateNode,p?C.insertBefore(h,p):C.appendChild(h);else if(x!==4&&(h=h.child,h!==null))for(YC(h,p,C),h=h.sibling;h!==null;)YC(h,p,C),h=h.sibling}var ei=null,Rl=!1;function Sc(h,p,C){for(C=C.child;C!==null;)nb(h,p,C),C=C.sibling}function nb(h,p,C){if(Vi&&typeof Vi.onCommitFiberUnmount=="function")try{Vi.onCommitFiberUnmount(Wo,C)}catch{}switch(C.tag){case 5:sn||ff(C,p);case 6:var x=ei,R=Rl;ei=null,Sc(h,p,C),ei=x,Rl=R,ei!==null&&(Rl?(h=ei,C=C.stateNode,h.nodeType===8?h.parentNode.removeChild(C):h.removeChild(C)):ei.removeChild(C.stateNode));break;case 18:ei!==null&&(Rl?(h=ei,C=C.stateNode,h.nodeType===8?Py(h.parentNode,C):h.nodeType===1&&Py(h,C),ts(h)):Py(ei,C.stateNode));break;case 4:x=ei,R=Rl,ei=C.stateNode.containerInfo,Rl=!0,Sc(h,p,C),ei=x,Rl=R;break;case 0:case 11:case 14:case 15:if(!sn&&(x=C.updateQueue,x!==null&&(x=x.lastEffect,x!==null))){R=x=x.next;do{var L=R,Z=L.destroy;L=L.tag,Z!==void 0&&(L&2||L&4)&&jC(C,p,Z),R=R.next}while(R!==x)}Sc(h,p,C);break;case 1:if(!sn&&(ff(C,p),x=C.stateNode,typeof x.componentWillUnmount=="function"))try{x.props=C.memoizedProps,x.state=C.memoizedState,x.componentWillUnmount()}catch(he){hn(C,p,he)}Sc(h,p,C);break;case 21:Sc(h,p,C);break;case 22:C.mode&1?(sn=(x=sn)||C.memoizedState!==null,Sc(h,p,C),sn=x):Sc(h,p,C);break;default:Sc(h,p,C)}}function Af(h){var p=h.updateQueue;if(p!==null){h.updateQueue=null;var C=h.stateNode;C===null&&(C=h.stateNode=new Yi),p.forEach(function(x){var R=_D.bind(null,h,x);C.has(x)||(C.add(x),x.then(R,R))})}}function ea(h,p){var C=p.deletions;if(C!==null)for(var x=0;x<C.length;x++){var R=C[x];try{var L=h,Z=p,he=Z;e:for(;he!==null;){switch(he.tag){case 5:ei=he.stateNode,Rl=!1;break e;case 3:ei=he.stateNode.containerInfo,Rl=!0;break e;case 4:ei=he.stateNode.containerInfo,Rl=!0;break e}he=he.return}if(ei===null)throw Error(r(160));nb(L,Z,R),ei=null,Rl=!1;var Ae=R.alternate;Ae!==null&&(Ae.return=null),R.return=null}catch(Ge){hn(R,p,Ge)}}if(p.subtreeFlags&12854)for(p=p.child;p!==null;)ib(p,h),p=p.sibling}function ib(h,p){var C=h.alternate,x=h.flags;switch(h.tag){case 0:case 11:case 14:case 15:if(ea(p,h),Tl(h),x&4){try{Ru(3,h,h.return),ym(3,h)}catch(Ut){hn(h,h.return,Ut)}try{Ru(5,h,h.return)}catch(Ut){hn(h,h.return,Ut)}}break;case 1:ea(p,h),Tl(h),x&512&&C!==null&&ff(C,C.return);break;case 5:if(ea(p,h),Tl(h),x&512&&C!==null&&ff(C,C.return),h.flags&32){var R=h.stateNode;try{Us(R,"")}catch(Ut){hn(h,h.return,Ut)}}if(x&4&&(R=h.stateNode,R!=null)){var L=h.memoizedProps,Z=C!==null?C.memoizedProps:L,he=h.type,Ae=h.updateQueue;if(h.updateQueue=null,Ae!==null)try{he==="input"&&L.type==="radio"&&L.name!=null&&$e(R,L),In(he,Z);var Ge=In(he,L);for(Z=0;Z<Ae.length;Z+=2){var at=Ae[Z],ct=Ae[Z+1];at==="style"?go(R,ct):at==="dangerouslySetInnerHTML"?Qr(R,ct):at==="children"?Us(R,ct):F(R,at,ct,Ge)}switch(he){case"input":Ke(R,L);break;case"textarea":xt(R,L);break;case"select":var it=R._wrapperState.wasMultiple;R._wrapperState.wasMultiple=!!L.multiple;var Dt=L.value;Dt!=null?ot(R,!!L.multiple,Dt,!1):it!==!!L.multiple&&(L.defaultValue!=null?ot(R,!!L.multiple,L.defaultValue,!0):ot(R,!!L.multiple,L.multiple?[]:"",!1))}R[Qd]=L}catch(Ut){hn(h,h.return,Ut)}}break;case 6:if(ea(p,h),Tl(h),x&4){if(h.stateNode===null)throw Error(r(162));R=h.stateNode,L=h.memoizedProps;try{R.nodeValue=L}catch(Ut){hn(h,h.return,Ut)}}break;case 3:if(ea(p,h),Tl(h),x&4&&C!==null&&C.memoizedState.isDehydrated)try{ts(p.containerInfo)}catch(Ut){hn(h,h.return,Ut)}break;case 4:ea(p,h),Tl(h);break;case 13:ea(p,h),Tl(h),R=h.child,R.flags&8192&&(L=R.memoizedState!==null,R.stateNode.isHidden=L,!L||R.alternate!==null&&R.alternate.memoizedState!==null||(lb=ys())),x&4&&Af(h);break;case 22:if(at=C!==null&&C.memoizedState!==null,h.mode&1?(sn=(Ge=sn)||at,ea(p,h),sn=Ge):ea(p,h),Tl(h),x&8192){if(Ge=h.memoizedState!==null,(h.stateNode.isHidden=Ge)&&!at&&h.mode&1)for(Bt=h,at=h.child;at!==null;){for(ct=Bt=at;Bt!==null;){switch(it=Bt,Dt=it.child,it.tag){case 0:case 11:case 14:case 15:Ru(4,it,it.return);break;case 1:ff(it,it.return);var _t=it.stateNode;if(typeof _t.componentWillUnmount=="function"){x=it,C=it.return;try{p=x,_t.props=p.memoizedProps,_t.state=p.memoizedState,_t.componentWillUnmount()}catch(Ut){hn(x,C,Ut)}}break;case 5:ff(it,it.return);break;case 22:if(it.memoizedState!==null){$d(ct);continue}}Dt!==null?(Dt.return=it,Bt=Dt):$d(ct)}at=at.sibling}e:for(at=null,ct=h;;){if(ct.tag===5){if(at===null){at=ct;try{R=ct.stateNode,Ge?(L=R.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none"):(he=ct.stateNode,Ae=ct.memoizedProps.style,Z=Ae!=null&&Ae.hasOwnProperty("display")?Ae.display:null,he.style.display=Xs("display",Z))}catch(Ut){hn(h,h.return,Ut)}}}else if(ct.tag===6){if(at===null)try{ct.stateNode.nodeValue=Ge?"":ct.memoizedProps}catch(Ut){hn(h,h.return,Ut)}}else if((ct.tag!==22&&ct.tag!==23||ct.memoizedState===null||ct===h)&&ct.child!==null){ct.child.return=ct,ct=ct.child;continue}if(ct===h)break e;for(;ct.sibling===null;){if(ct.return===null||ct.return===h)break e;at===ct&&(at=null),ct=ct.return}at===ct&&(at=null),ct.sibling.return=ct.return,ct=ct.sibling}}break;case 19:ea(p,h),Tl(h),x&4&&Af(h);break;case 21:break;default:ea(p,h),Tl(h)}}function Tl(h){var p=h.flags;if(p&2){try{e:{for(var C=h.return;C!==null;){if(hE(C)){var x=C;break e}C=C.return}throw Error(r(160))}switch(x.tag){case 5:var R=x.stateNode;x.flags&32&&(Us(R,""),x.flags&=-33);var L=pE(h);YC(h,L,R);break;case 3:case 4:var Z=x.stateNode.containerInfo,he=pE(h);sb(h,he,Z);break;default:throw Error(r(161))}}catch(Ae){hn(h,h.return,Ae)}h.flags&=-3}p&4096&&(h.flags&=-4097)}function ZC(h,p,C){Bt=h,ob(h)}function ob(h,p,C){for(var x=(h.mode&1)!==0;Bt!==null;){var R=Bt,L=R.child;if(R.tag===22&&x){var Z=R.memoizedState!==null||WC;if(!Z){var he=R.alternate,Ae=he!==null&&he.memoizedState!==null||sn;he=WC;var Ge=sn;if(WC=Z,(sn=Ae)&&!Ge)for(Bt=R;Bt!==null;)Z=Bt,Ae=Z.child,Z.tag===22&&Z.memoizedState!==null?gE(R):Ae!==null?(Ae.return=Z,Bt=Ae):gE(R);for(;L!==null;)Bt=L,ob(L),L=L.sibling;Bt=R,WC=he,sn=Ge}Dl(h)}else R.subtreeFlags&8772&&L!==null?(L.return=R,Bt=L):Dl(h)}}function Dl(h){for(;Bt!==null;){var p=Bt;if(p.flags&8772){var C=p.alternate;try{if(p.flags&8772)switch(p.tag){case 0:case 11:case 15:sn||ym(5,p);break;case 1:var x=p.stateNode;if(p.flags&4&&!sn)if(C===null)x.componentDidMount();else{var R=p.elementType===p.type?C.memoizedProps:Va(p.type,C.memoizedProps);x.componentDidUpdate(R,C.memoizedState,x.__reactInternalSnapshotBeforeUpdate)}var L=p.updateQueue;L!==null&&Iy(p,L,x);break;case 3:var Z=p.updateQueue;if(Z!==null){if(C=null,p.child!==null)switch(p.child.tag){case 5:C=p.child.stateNode;break;case 1:C=p.child.stateNode}Iy(p,Z,C)}break;case 5:var he=p.stateNode;if(C===null&&p.flags&4){C=he;var Ae=p.memoizedProps;switch(p.type){case"button":case"input":case"select":case"textarea":Ae.autoFocus&&C.focus();break;case"img":Ae.src&&(C.src=Ae.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(p.memoizedState===null){var Ge=p.alternate;if(Ge!==null){var at=Ge.memoizedState;if(at!==null){var ct=at.dehydrated;ct!==null&&ts(ct)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}sn||p.flags&512&&KC(p)}catch(it){hn(p,p.return,it)}}if(p===h){Bt=null;break}if(C=p.sibling,C!==null){C.return=p.return,Bt=C;break}Bt=p.return}}function $d(h){for(;Bt!==null;){var p=Bt;if(p===h){Bt=null;break}var C=p.sibling;if(C!==null){C.return=p.return,Bt=C;break}Bt=p.return}}function gE(h){for(;Bt!==null;){var p=Bt;try{switch(p.tag){case 0:case 11:case 15:var C=p.return;try{ym(4,p)}catch(Ae){hn(p,C,Ae)}break;case 1:var x=p.stateNode;if(typeof x.componentDidMount=="function"){var R=p.return;try{x.componentDidMount()}catch(Ae){hn(p,R,Ae)}}var L=p.return;try{KC(p)}catch(Ae){hn(p,L,Ae)}break;case 5:var Z=p.return;try{KC(p)}catch(Ae){hn(p,Z,Ae)}}}catch(Ae){hn(p,p.return,Ae)}if(p===h){Bt=null;break}var he=p.sibling;if(he!==null){he.return=p.return,Bt=he;break}Bt=p.return}}var fE=Math.ceil,XC=T.ReactCurrentDispatcher,ab=T.ReactCurrentOwner,za=T.ReactCurrentBatchConfig,os=0,ti=null,Hn=null,fi=0,ta=0,mf=wo(0),Qn=0,bm=null,Jd=0,Sm=0,$C=0,xm=null,Eo=null,lb=0,Rp=1/0,Tu=null,JC=!1,cb=null,qd=null,qC=!1,eh=null,Zi=0,Em=0,ub=null,e0=-1,Pm=0;function Xi(){return os&6?ys():e0!==-1?e0:e0=ys()}function th(h){return h.mode&1?os&2&&fi!==0?fi&-fi:Y3.transition!==null?(Pm===0&&(Pm=ce()),Pm):(h=bt,h!==0||(h=window.event,h=h===void 0?16:VA(h.type)),h):1}function Ml(h,p,C,x){if(50<Em)throw Em=0,ub=null,Error(r(185));Fe(h,C,x),(!(os&2)||h!==ti)&&(h===ti&&(!(os&2)&&(Sm|=C),Qn===4&&rh(h,fi)),Po(h,x),C===1&&os===0&&!(p.mode&1)&&(Rp=ys()+500,wC&&Wd()))}function Po(h,p){var C=h.callbackNode;U(h,p);var x=Ko(h,h===ti?fi:0);if(x===0)C!==null&&op(C),h.callbackNode=null,h.callbackPriority=0;else if(p=x&-x,h.callbackPriority!==p){if(C!=null&&op(C),p===1)h.tag===0?mp(AE.bind(null,h)):W3(AE.bind(null,h)),AC(function(){!(os&6)&&Wd()}),C=null;else{switch(Xt(x)){case 1:C=Pd;break;case 4:C=Fd;break;case 16:C=wl;break;case 536870912:C=Pa;break;default:C=wl}C=SE(C,t0.bind(null,h))}h.callbackPriority=p,h.callbackNode=C}}function t0(h,p){if(e0=-1,Pm=0,os&6)throw Error(r(327));var C=h.callbackNode;if(vf()&&h.callbackNode!==C)return null;var x=Ko(h,h===ti?fi:0);if(x===0)return null;if(x&30||x&h.expiredLanes||p)p=r0(h,x);else{p=x;var R=os;os|=2;var L=vE();(ti!==h||fi!==p)&&(Tu=null,Rp=ys()+500,Dp(h,p));do try{HD();break}catch(he){mE(h,he)}while(!0);yu(),XC.current=L,os=R,Hn!==null?p=0:(ti=null,fi=0,p=Qn)}if(p!==0){if(p===2&&(R=te(h),R!==0&&(x=R,p=db(h,R))),p===1)throw C=bm,Dp(h,0),rh(h,x),Po(h,ys()),C;if(p===6)rh(h,x);else{if(R=h.current.alternate,!(x&30)&&!BD(R)&&(p=r0(h,x),p===2&&(L=te(h),L!==0&&(x=L,p=db(h,L))),p===1))throw C=bm,Dp(h,0),rh(h,x),Po(h,ys()),C;switch(h.finishedWork=R,h.finishedLanes=x,p){case 0:case 1:throw Error(r(345));case 2:Mp(h,Eo,Tu);break;case 3:if(rh(h,x),(x&130023424)===x&&(p=lb+500-ys(),10<p)){if(Ko(h,0)!==0)break;if(R=h.suspendedLanes,(R&x)!==x){Xi(),h.pingedLanes|=h.suspendedLanes&R;break}h.timeoutHandle=Vd(Mp.bind(null,h,Eo,Tu),p);break}Mp(h,Eo,Tu);break;case 4:if(rh(h,x),(x&4194240)===x)break;for(p=h.eventTimes,R=-1;0<x;){var Z=31-Vn(x);L=1<<Z,Z=p[Z],Z>R&&(R=Z),x&=~L}if(x=R,x=ys()-x,x=(120>x?120:480>x?480:1080>x?1080:1920>x?1920:3e3>x?3e3:4320>x?4320:1960*fE(x/1960))-x,10<x){h.timeoutHandle=Vd(Mp.bind(null,h,Eo,Tu),x);break}Mp(h,Eo,Tu);break;case 5:Mp(h,Eo,Tu);break;default:throw Error(r(329))}}}return Po(h,ys()),h.callbackNode===C?t0.bind(null,h):null}function db(h,p){var C=xm;return h.current.memoizedState.isDehydrated&&(Dp(h,p).flags|=256),h=r0(h,p),h!==2&&(p=Eo,Eo=C,p!==null&&hb(p)),h}function hb(h){Eo===null?Eo=h:Eo.push.apply(Eo,h)}function BD(h){for(var p=h;;){if(p.flags&16384){var C=p.updateQueue;if(C!==null&&(C=C.stores,C!==null))for(var x=0;x<C.length;x++){var R=C[x],L=R.getSnapshot;R=R.value;try{if(!Le(L(),R))return!1}catch{return!1}}}if(C=p.child,p.subtreeFlags&16384&&C!==null)C.return=p,p=C;else{if(p===h)break;for(;p.sibling===null;){if(p.return===null||p.return===h)return!0;p=p.return}p.sibling.return=p.return,p=p.sibling}}return!0}function rh(h,p){for(p&=~$C,p&=~Sm,h.suspendedLanes|=p,h.pingedLanes&=~p,h=h.expirationTimes;0<p;){var C=31-Vn(p),x=1<<C;h[C]=-1,p&=~x}}function AE(h){if(os&6)throw Error(r(327));vf();var p=Ko(h,0);if(!(p&1))return Po(h,ys()),null;var C=r0(h,p);if(h.tag!==0&&C===2){var x=te(h);x!==0&&(p=x,C=db(h,x))}if(C===1)throw C=bm,Dp(h,0),rh(h,p),Po(h,ys()),C;if(C===6)throw Error(r(345));return h.finishedWork=h.current.alternate,h.finishedLanes=p,Mp(h,Eo,Tu),Po(h,ys()),null}function pb(h,p){var C=os;os|=1;try{return h(p)}finally{os=C,os===0&&(Rp=ys()+500,wC&&Wd())}}function Tp(h){eh!==null&&eh.tag===0&&!(os&6)&&vf();var p=os;os|=1;var C=za.transition,x=bt;try{if(za.transition=null,bt=1,h)return h()}finally{bt=x,za.transition=C,os=p,!(os&6)&&Wd()}}function gb(){ta=mf.current,Js(mf)}function Dp(h,p){h.finishedWork=null,h.finishedLanes=0;var C=h.timeoutHandle;if(C!==-1&&(h.timeoutHandle=-1,rm(C)),Hn!==null)for(C=Hn.return;C!==null;){var x=C;switch(wp(x),x.tag){case 1:x=x.type.childContextTypes,x!=null&&CC();break;case 3:Yd(),Js(yo),Js(Fi),DC();break;case 5:TC(x);break;case 4:Yd();break;case 13:Js(rn);break;case 19:Js(rn);break;case 10:EC(x.type._context);break;case 22:case 23:gb()}C=C.return}if(ti=h,Hn=h=Il(h.current,null),fi=ta=p,Qn=0,bm=null,$C=Sm=Jd=0,Eo=xm=null,bp!==null){for(p=0;p<bp.length;p++)if(C=bp[p],x=C.interleaved,x!==null){C.interleaved=null;var R=x.next,L=C.pending;if(L!==null){var Z=L.next;L.next=R,x.next=Z}C.pending=x}bp=null}return h}function mE(h,p){do{var C=Hn;try{if(yu(),cm.current=HC,af){for(var x=dn.memoizedState;x!==null;){var R=x.queue;R!==null&&(R.pending=null),x=x.next}af=!1}if(Zd=0,zn=xn=dn=null,um=!1,xp=0,ab.current=null,C===null||C.return===null){Qn=1,bm=p,Hn=null;break}e:{var L=h,Z=C.return,he=C,Ae=p;if(p=fi,he.flags|=32768,Ae!==null&&typeof Ae=="object"&&typeof Ae.then=="function"){var Ge=Ae,at=he,ct=at.tag;if(!(at.mode&1)&&(ct===0||ct===11||ct===15)){var it=at.alternate;it?(at.updateQueue=it.updateQueue,at.memoizedState=it.memoizedState,at.lanes=it.lanes):(at.updateQueue=null,at.memoizedState=null)}var Dt=iE(Z);if(Dt!==null){Dt.flags&=-257,Yy(Dt,Z,he,L,p),Dt.mode&1&&fm(L,Ge,p),p=Dt,Ae=Ge;var _t=p.updateQueue;if(_t===null){var Ut=new Set;Ut.add(Ae),p.updateQueue=Ut}else _t.add(Ae);break e}else{if(!(p&1)){fm(L,Ge,p),fb();break e}Ae=Error(r(426))}}else if(qs&&he.mode&1){var En=iE(Z);if(En!==null){!(En.flags&65536)&&(En.flags|=256),Yy(En,Z,he,L,p),mc(Fp(Ae,he));break e}}L=Ae=Fp(Ae,he),Qn!==4&&(Qn=2),xm===null?xm=[L]:xm.push(L),L=Z;do{switch(L.tag){case 3:L.flags|=65536,p&=-p,L.lanes|=p;var Re=gm(L,Ae,p);$3(L,Re);break e;case 1:he=Ae;var we=L.type,Me=L.stateNode;if(!(L.flags&128)&&(typeof we.getDerivedStateFromError=="function"||Me!==null&&typeof Me.componentDidCatch=="function"&&(qd===null||!qd.has(Me)))){L.flags|=65536,p&=-p,L.lanes|=p;var pt=VC(L,he,p);$3(L,pt);break e}}L=L.return}while(L!==null)}wE(C)}catch(Kt){p=Kt,Hn===C&&C!==null&&(Hn=C=C.return);continue}break}while(!0)}function vE(){var h=XC.current;return XC.current=HC,h===null?HC:h}function fb(){(Qn===0||Qn===3||Qn===2)&&(Qn=4),ti===null||!(Jd&268435455)&&!(Sm&268435455)||rh(ti,fi)}function r0(h,p){var C=os;os|=2;var x=vE();(ti!==h||fi!==p)&&(Tu=null,Dp(h,p));do try{LD();break}catch(R){mE(h,R)}while(!0);if(yu(),os=C,XC.current=x,Hn!==null)throw Error(r(261));return ti=null,fi=0,Qn}function LD(){for(;Hn!==null;)CE(Hn)}function HD(){for(;Hn!==null&&!lu();)CE(Hn)}function CE(h){var p=bE(h.alternate,h,ta);h.memoizedProps=h.pendingProps,p===null?wE(h):Hn=p,ab.current=null}function wE(h){var p=h;do{var C=p.alternate;if(h=p.return,p.flags&32768){if(C=ID(C,p),C!==null){C.flags&=32767,Hn=C;return}if(h!==null)h.flags|=32768,h.subtreeFlags=0,h.deletions=null;else{Qn=6,Hn=null;return}}else if(C=MD(C,p,ta),C!==null){Hn=C;return}if(p=p.sibling,p!==null){Hn=p;return}Hn=p=h}while(p!==null);Qn===0&&(Qn=5)}function Mp(h,p,C){var x=bt,R=za.transition;try{za.transition=null,bt=1,GD(h,p,C,x)}finally{za.transition=R,bt=x}return null}function GD(h,p,C,x){do vf();while(eh!==null);if(os&6)throw Error(r(327));C=h.finishedWork;var R=h.finishedLanes;if(C===null)return null;if(h.finishedWork=null,h.finishedLanes=0,C===h.current)throw Error(r(177));h.callbackNode=null,h.callbackPriority=0;var L=C.lanes|C.childLanes;if(Ye(h,L),h===ti&&(Hn=ti=null,fi=0),!(C.subtreeFlags&2064)&&!(C.flags&2064)||qC||(qC=!0,SE(wl,function(){return vf(),null})),L=(C.flags&15990)!==0,C.subtreeFlags&15990||L){L=za.transition,za.transition=null;var Z=bt;bt=1;var he=os;os|=4,ab.current=null,kD(h,C),ib(C,h),FD(Ap),Zo=!!em,Ap=em=null,h.current=C,ZC(C),Hg(),os=he,bt=Z,za.transition=L}else h.current=C;if(qC&&(qC=!1,eh=h,Zi=R),L=h.pendingLanes,L===0&&(qd=null),cu(C.stateNode),Po(h,ys()),p!==null)for(x=h.onRecoverableError,C=0;C<p.length;C++)R=p[C],x(R.value,{componentStack:R.stack,digest:R.digest});if(JC)throw JC=!1,h=cb,cb=null,h;return Zi&1&&h.tag!==0&&vf(),L=h.pendingLanes,L&1?h===ub?Em++:(Em=0,ub=h):Em=0,Wd(),null}function vf(){if(eh!==null){var h=Xt(Zi),p=za.transition,C=bt;try{if(za.transition=null,bt=16>h?16:h,eh===null)var x=!1;else{if(h=eh,eh=null,Zi=0,os&6)throw Error(r(331));var R=os;for(os|=4,Bt=h.current;Bt!==null;){var L=Bt,Z=L.child;if(Bt.flags&16){var he=L.deletions;if(he!==null){for(var Ae=0;Ae<he.length;Ae++){var Ge=he[Ae];for(Bt=Ge;Bt!==null;){var at=Bt;switch(at.tag){case 0:case 11:case 15:Ru(8,at,L)}var ct=at.child;if(ct!==null)ct.return=at,Bt=ct;else for(;Bt!==null;){at=Bt;var it=at.sibling,Dt=at.return;if(dE(at),at===Ge){Bt=null;break}if(it!==null){it.return=Dt,Bt=it;break}Bt=Dt}}}var _t=L.alternate;if(_t!==null){var Ut=_t.child;if(Ut!==null){_t.child=null;do{var En=Ut.sibling;Ut.sibling=null,Ut=En}while(Ut!==null)}}Bt=L}}if(L.subtreeFlags&2064&&Z!==null)Z.return=L,Bt=Z;else e:for(;Bt!==null;){if(L=Bt,L.flags&2048)switch(L.tag){case 0:case 11:case 15:Ru(9,L,L.return)}var Re=L.sibling;if(Re!==null){Re.return=L.return,Bt=Re;break e}Bt=L.return}}var we=h.current;for(Bt=we;Bt!==null;){Z=Bt;var Me=Z.child;if(Z.subtreeFlags&2064&&Me!==null)Me.return=Z,Bt=Me;else e:for(Z=we;Bt!==null;){if(he=Bt,he.flags&2048)try{switch(he.tag){case 0:case 11:case 15:ym(9,he)}}catch(Kt){hn(he,he.return,Kt)}if(he===Z){Bt=null;break e}var pt=he.sibling;if(pt!==null){pt.return=he.return,Bt=pt;break e}Bt=he.return}}if(os=R,Wd(),Vi&&typeof Vi.onPostCommitFiberRoot=="function")try{Vi.onPostCommitFiberRoot(Wo,h)}catch{}x=!0}return x}finally{bt=C,za.transition=p}}return!1}function s0(h,p,C){p=Fp(C,p),p=gm(h,p,1),h=Na(h,p,1),p=Xi(),h!==null&&(Fe(h,1,p),Po(h,p))}function hn(h,p,C){if(h.tag===3)s0(h,h,C);else for(;p!==null;){if(p.tag===3){s0(p,h,C);break}else if(p.tag===1){var x=p.stateNode;if(typeof p.type.getDerivedStateFromError=="function"||typeof x.componentDidCatch=="function"&&(qd===null||!qd.has(x))){h=Fp(C,h),h=VC(p,h,1),p=Na(p,h,1),h=Xi(),p!==null&&(Fe(p,1,h),Po(p,h));break}}p=p.return}}function OD(h,p,C){var x=h.pingCache;x!==null&&x.delete(p),p=Xi(),h.pingedLanes|=h.suspendedLanes&C,ti===h&&(fi&C)===C&&(Qn===4||Qn===3&&(fi&130023424)===fi&&500>ys()-lb?Dp(h,0):$C|=C),Po(h,p)}function yE(h,p){p===0&&(h.mode&1?(p=uu,uu<<=1,!(uu&130023424)&&(uu=4194304)):p=1);var C=Xi();h=bu(h,p),h!==null&&(Fe(h,p,C),Po(h,C))}function ND(h){var p=h.memoizedState,C=0;p!==null&&(C=p.retryLane),yE(h,C)}function _D(h,p){var C=0;switch(h.tag){case 13:var x=h.stateNode,R=h.memoizedState;R!==null&&(C=R.retryLane);break;case 19:x=h.stateNode;break;default:throw Error(r(314))}x!==null&&x.delete(p),yE(h,C)}var bE;bE=function(h,p,C){if(h!==null)if(h.memoizedProps!==p.pendingProps||yo.current)Ki=!0;else{if(!(h.lanes&C)&&!(p.flags&128))return Ki=!1,lE(h,p,C);Ki=!!(h.flags&131072)}else Ki=!1,qs&&p.flags&1048576&&j3(p,bC,p.index);switch(p.lanes=0,p.tag){case 2:var x=p.type;UC(h,p),h=p.pendingProps;var R=tf(p,Fi.current);Kd(p,C),R=Ep(null,p,x,h,R,C);var L=MC();return p.flags|=1,typeof R=="object"&&R!==null&&typeof R.render=="function"&&R.$$typeof===void 0?(p.tag=1,p.memoizedState=null,p.updateQueue=null,bo(x)?(L=!0,Ba(p)):L=!1,p.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,FC(p),R.updater=NC,p.stateNode=R,R._reactInternals=p,Ky(p,x,h,C),p=eb(null,p,x,!0,L,C)):(p.tag=0,qs&&L&&sm(p),hi(null,p,R,C),p=p.child),p;case 16:x=p.elementType;e:{switch(UC(h,p),h=p.pendingProps,R=x._init,x=R(x._payload),p.type=x,R=p.tag=zD(x),h=Va(x,h),R){case 0:p=Jy(null,p,x,h,C);break e;case 1:p=qy(null,p,x,h,C);break e;case 11:p=oE(null,p,x,h,C);break e;case 14:p=Zy(null,p,x,Va(x.type,h),C);break e}throw Error(r(306,x,""))}return p;case 0:return x=p.type,R=p.pendingProps,R=p.elementType===x?R:Va(x,R),Jy(h,p,x,R,C);case 1:return x=p.type,R=p.pendingProps,R=p.elementType===x?R:Va(x,R),qy(h,p,x,R,C);case 3:e:{if(aE(p),h===null)throw Error(r(387));x=p.pendingProps,L=p.memoizedState,R=L.element,X3(h,p),nf(p,x,null,C);var Z=p.memoizedState;if(x=Z.element,L.isDehydrated)if(L={element:x,isDehydrated:!1,cache:Z.cache,pendingSuspenseBoundaries:Z.pendingSuspenseBoundaries,transitions:Z.transitions},p.updateQueue.baseState=L,p.memoizedState=L,p.flags&256){R=Fp(Error(r(423)),p),p=bc(h,p,x,C,R);break e}else if(x!==R){R=Fp(Error(r(424)),p),p=bc(h,p,x,C,R);break e}else for(Jo=zd(p.stateNode.containerInfo.firstChild),Ti=p,qs=!0,El=null,C=xC(p,null,x,C),p.child=C;C;)C.flags=C.flags&-3|4096,C=C.sibling;else{if(Ac(),x===R){p=Fl(h,p,C);break e}hi(h,p,x,C)}p=p.child}return p;case 5:return By(p),h===null&&So(p),x=p.type,R=p.pendingProps,L=h!==null?h.memoizedProps:null,Z=R.children,tm(x,R)?Z=null:L!==null&&tm(x,L)&&(p.flags|=32),$y(h,p),hi(h,p,Z,C),p.child;case 6:return h===null&&So(p),null;case 13:return QC(h,p,C);case 4:return ky(p,p.stateNode.containerInfo),x=p.pendingProps,h===null?p.child=vn(p,null,x,C):hi(h,p,x,C),p.child;case 11:return x=p.type,R=p.pendingProps,R=p.elementType===x?R:Va(x,R),oE(h,p,x,R,C);case 7:return hi(h,p,p.pendingProps,C),p.child;case 8:return hi(h,p,p.pendingProps.children,C),p.child;case 12:return hi(h,p,p.pendingProps.children,C),p.child;case 10:e:{if(x=p.type._context,R=p.pendingProps,L=p.memoizedProps,Z=R.value,Ws(om,x._currentValue),x._currentValue=Z,L!==null)if(Le(L.value,Z)){if(L.children===R.children&&!yo.current){p=Fl(h,p,C);break e}}else for(L=p.child,L!==null&&(L.return=p);L!==null;){var he=L.dependencies;if(he!==null){Z=L.child;for(var Ae=he.firstContext;Ae!==null;){if(Ae.context===x){if(L.tag===1){Ae=Su(-1,C&-C),Ae.tag=2;var Ge=L.updateQueue;if(Ge!==null){Ge=Ge.shared;var at=Ge.pending;at===null?Ae.next=Ae:(Ae.next=at.next,at.next=Ae),Ge.pending=Ae}}L.lanes|=C,Ae=L.alternate,Ae!==null&&(Ae.lanes|=C),di(L.return,C,p),he.lanes|=C;break}Ae=Ae.next}}else if(L.tag===10)Z=L.type===p.type?null:L.child;else if(L.tag===18){if(Z=L.return,Z===null)throw Error(r(341));Z.lanes|=C,he=Z.alternate,he!==null&&(he.lanes|=C),di(Z,C,p),Z=L.sibling}else Z=L.child;if(Z!==null)Z.return=L;else for(Z=L;Z!==null;){if(Z===p){Z=null;break}if(L=Z.sibling,L!==null){L.return=Z.return,Z=L;break}Z=Z.return}L=Z}hi(h,p,R.children,C),p=p.child}return p;case 9:return R=p.type,x=p.pendingProps.children,Kd(p,C),R=Ga(R),x=x(R),p.flags|=1,hi(h,p,x,C),p.child;case 14:return x=p.type,R=Va(x,p.pendingProps),R=Va(x.type,R),Zy(h,p,x,R,C);case 15:return yc(h,p,p.type,p.pendingProps,C);case 17:return x=p.type,R=p.pendingProps,R=p.elementType===x?R:Va(x,R),UC(h,p),p.tag=1,bo(x)?(h=!0,Ba(p)):h=!1,Kd(p,C),Pp(p,x,R),Ky(p,x,R,C),eb(null,p,x,!0,h,C);case 19:return Xd(h,p,C);case 22:return Xy(h,p,C)}throw Error(r(156,p.tag))};function SE(h,p){return au(h,p)}function VD(h,p,C,x){this.tag=h,this.key=C,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=x,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qa(h,p,C,x){return new VD(h,p,C,x)}function n0(h){return h=h.prototype,!(!h||!h.isReactComponent)}function zD(h){if(typeof h=="function")return n0(h)?1:0;if(h!=null){if(h=h.$$typeof,h===G)return 11;if(h===V)return 14}return 2}function Il(h,p){var C=h.alternate;return C===null?(C=Qa(h.tag,p,h.key,h.mode),C.elementType=h.elementType,C.type=h.type,C.stateNode=h.stateNode,C.alternate=h,h.alternate=C):(C.pendingProps=p,C.type=h.type,C.flags=0,C.subtreeFlags=0,C.deletions=null),C.flags=h.flags&14680064,C.childLanes=h.childLanes,C.lanes=h.lanes,C.child=h.child,C.memoizedProps=h.memoizedProps,C.memoizedState=h.memoizedState,C.updateQueue=h.updateQueue,p=h.dependencies,C.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},C.sibling=h.sibling,C.index=h.index,C.ref=h.ref,C}function i0(h,p,C,x,R,L){var Z=2;if(x=h,typeof h=="function")n0(h)&&(Z=1);else if(typeof h=="string")Z=5;else e:switch(h){case k:return Ip(C.children,R,L,p);case z:Z=8,R|=8;break;case O:return h=Qa(12,C,p,R|2),h.elementType=O,h.lanes=L,h;case N:return h=Qa(13,C,p,R),h.elementType=N,h.lanes=L,h;case W:return h=Qa(19,C,p,R),h.elementType=W,h.lanes=L,h;case pe:return o0(C,R,L,p);default:if(typeof h=="object"&&h!==null)switch(h.$$typeof){case j:Z=10;break e;case _:Z=9;break e;case G:Z=11;break e;case V:Z=14;break e;case q:Z=16,x=null;break e}throw Error(r(130,h==null?h:typeof h,""))}return p=Qa(Z,C,p,R),p.elementType=h,p.type=x,p.lanes=L,p}function Ip(h,p,C,x){return h=Qa(7,h,x,p),h.lanes=C,h}function o0(h,p,C,x){return h=Qa(22,h,x,p),h.elementType=pe,h.lanes=C,h.stateNode={isHidden:!1},h}function Ab(h,p,C){return h=Qa(6,h,null,p),h.lanes=C,h}function mb(h,p,C){return p=Qa(4,h.children!==null?h.children:[],h.key,p),p.lanes=C,p.stateNode={containerInfo:h.containerInfo,pendingChildren:null,implementation:h.implementation},p}function QD(h,p,C,x,R){this.tag=p,this.containerInfo=h,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ie(0),this.expirationTimes=Ie(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ie(0),this.identifierPrefix=x,this.onRecoverableError=R,this.mutableSourceEagerHydrationData=null}function vb(h,p,C,x,R,L,Z,he,Ae){return h=new QD(h,p,C,he,Ae),p===1?(p=1,L===!0&&(p|=8)):p=0,L=Qa(3,null,null,p),h.current=L,L.stateNode=h,L.memoizedState={element:x,isDehydrated:C,cache:null,transitions:null,pendingSuspenseBoundaries:null},FC(L),h}function UD(h,p,C){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:B,key:x==null?null:""+x,children:h,containerInfo:p,implementation:C}}function xE(h){if(!h)return Ud;h=h._reactInternals;e:{if(vl(h)!==h||h.tag!==1)throw Error(r(170));var p=h;do{switch(p.tag){case 3:p=p.stateNode.context;break e;case 1:if(bo(p.type)){p=p.stateNode.__reactInternalMemoizedMergedChildContext;break e}}p=p.return}while(p!==null);throw Error(r(171))}if(h.tag===1){var C=h.type;if(bo(C))return Q3(h,C,p)}return p}function EE(h,p,C,x,R,L,Z,he,Ae){return h=vb(C,x,!0,h,R,L,Z,he,Ae),h.context=xE(null),C=h.current,x=Xi(),R=th(C),L=Su(x,R),L.callback=p??null,Na(C,L,R),h.current.lanes=R,Fe(h,R,x),Po(h,x),h}function a0(h,p,C,x){var R=p.current,L=Xi(),Z=th(R);return C=xE(C),p.context===null?p.context=C:p.pendingContext=C,p=Su(L,Z),p.payload={element:h},x=x===void 0?null:x,x!==null&&(p.callback=x),h=Na(R,p,Z),h!==null&&(Ml(h,R,Z,L),RC(h,R,Z)),Z}function l0(h){if(h=h.current,!h.child)return null;switch(h.child.tag){case 5:return h.child.stateNode;default:return h.child.stateNode}}function PE(h,p){if(h=h.memoizedState,h!==null&&h.dehydrated!==null){var C=h.retryLane;h.retryLane=C!==0&&C<p?C:p}}function Cb(h,p){PE(h,p),(h=h.alternate)&&PE(h,p)}function WD(){return null}var FE=typeof reportError=="function"?reportError:function(h){console.error(h)};function c0(h){this._internalRoot=h}Fm.prototype.render=c0.prototype.render=function(h){var p=this._internalRoot;if(p===null)throw Error(r(409));a0(h,p,null,null)},Fm.prototype.unmount=c0.prototype.unmount=function(){var h=this._internalRoot;if(h!==null){this._internalRoot=null;var p=h.containerInfo;Tp(function(){a0(null,h,null,null)}),p[$o]=null}};function Fm(h){this._internalRoot=h}Fm.prototype.unstable_scheduleHydration=function(h){if(h){var p=zi();h={blockedOn:null,target:h,priority:p};for(var C=0;C<ac.length&&p!==0&&p<ac[C].priority;C++);ac.splice(C,0,h),C===0&&Ra(h)}};function wb(h){return!(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)}function u0(h){return!(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11&&(h.nodeType!==8||h.nodeValue!==" react-mount-point-unstable "))}function RE(){}function jD(h,p,C,x,R){if(R){if(typeof x=="function"){var L=x;x=function(){var Ge=l0(Z);L.call(Ge)}}var Z=EE(p,x,h,0,null,!1,!1,"",RE);return h._reactRootContainer=Z,h[$o]=Z.current,_d(h.nodeType===8?h.parentNode:h),Tp(),Z}for(;R=h.lastChild;)h.removeChild(R);if(typeof x=="function"){var he=x;x=function(){var Ge=l0(Ae);he.call(Ge)}}var Ae=vb(h,0,!1,null,null,!1,!1,"",RE);return h._reactRootContainer=Ae,h[$o]=Ae.current,_d(h.nodeType===8?h.parentNode:h),Tp(function(){a0(p,Ae,C,x)}),Ae}function kp(h,p,C,x,R){var L=C._reactRootContainer;if(L){var Z=L;if(typeof R=="function"){var he=R;R=function(){var Ae=l0(Z);he.call(Ae)}}a0(p,Z,h,R)}else Z=jD(C,p,h,R,x);return l0(Z)}wr=function(h){switch(h.tag){case 3:var p=h.stateNode;if(p.current.memoizedState.isDehydrated){var C=yl(p.pendingLanes);C!==0&&(gt(p,C|1),Po(p,ys()),!(os&6)&&(Rp=ys()+500,Wd()))}break;case 13:Tp(function(){var x=bu(h,1);if(x!==null){var R=Xi();Ml(x,h,1,R)}}),Cb(h,1)}},Rs=function(h){if(h.tag===13){var p=bu(h,134217728);if(p!==null){var C=Xi();Ml(p,h,134217728,C)}Cb(h,134217728)}},Ao=function(h){if(h.tag===13){var p=th(h),C=bu(h,p);if(C!==null){var x=Xi();Ml(C,h,p,x)}Cb(h,p)}},zi=function(){return bt},li=function(h,p){var C=bt;try{return bt=h,p()}finally{bt=C}},nu=function(h,p,C){switch(p){case"input":if(Ke(h,C),p=C.name,C.type==="radio"&&p!=null){for(C=h;C.parentNode;)C=C.parentNode;for(C=C.querySelectorAll("input[name="+JSON.stringify(""+p)+'][type="radio"]'),p=0;p<C.length;p++){var x=C[p];if(x!==h&&x.form===h.form){var R=vC(x);if(!R)throw Error(r(90));_e(x),Ke(x,R)}}}break;case"textarea":xt(h,C);break;case"select":p=C.value,p!=null&&ot(h,!!C.multiple,p,!1)}},Qo=pb,tc=Tp;var KD={usingClientEntryPoint:!1,Events:[Pi,Hr,vC,iu,ec,pb]},Rm={findFiberByHostInstance:hc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},YD={bundleType:Rm.bundleType,version:Rm.version,rendererPackageName:Rm.rendererPackageName,rendererConfig:Rm.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(h){return h=ou(h),h===null?null:h.stateNode},findFiberByHostInstance:Rm.findFiberByHostInstance||WD,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var d0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!d0.isDisabled&&d0.supportsFiber)try{Wo=d0.inject(YD),Vi=d0}catch{}}return Za.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=KD,Za.createPortal=function(h,p){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wb(p))throw Error(r(200));return UD(h,p,null,C)},Za.createRoot=function(h,p){if(!wb(h))throw Error(r(299));var C=!1,x="",R=FE;return p!=null&&(p.unstable_strictMode===!0&&(C=!0),p.identifierPrefix!==void 0&&(x=p.identifierPrefix),p.onRecoverableError!==void 0&&(R=p.onRecoverableError)),p=vb(h,1,!1,null,null,C,!1,x,R),h[$o]=p.current,_d(h.nodeType===8?h.parentNode:h),new c0(p)},Za.findDOMNode=function(h){if(h==null)return null;if(h.nodeType===1)return h;var p=h._reactInternals;if(p===void 0)throw typeof h.render=="function"?Error(r(188)):(h=Object.keys(h).join(","),Error(r(268,h)));return h=ou(p),h=h===null?null:h.stateNode,h},Za.flushSync=function(h){return Tp(h)},Za.hydrate=function(h,p,C){if(!u0(p))throw Error(r(200));return kp(null,h,p,!0,C)},Za.hydrateRoot=function(h,p,C){if(!wb(h))throw Error(r(405));var x=C!=null&&C.hydratedSources||null,R=!1,L="",Z=FE;if(C!=null&&(C.unstable_strictMode===!0&&(R=!0),C.identifierPrefix!==void 0&&(L=C.identifierPrefix),C.onRecoverableError!==void 0&&(Z=C.onRecoverableError)),p=EE(p,null,h,1,C??null,R,!1,L,Z),h[$o]=p.current,_d(h),x)for(h=0;h<x.length;h++)C=x[h],R=C._getVersion,R=R(C._source),p.mutableSourceEagerHydrationData==null?p.mutableSourceEagerHydrationData=[C,R]:p.mutableSourceEagerHydrationData.push(C,R);return new Fm(p)},Za.render=function(h,p,C){if(!u0(p))throw Error(r(200));return kp(null,h,p,!1,C)},Za.unmountComponentAtNode=function(h){if(!u0(h))throw Error(r(40));return h._reactRootContainer?(Tp(function(){kp(null,null,h,!1,function(){h._reactRootContainer=null,h[$o]=null})}),!0):!1},Za.unstable_batchedUpdates=pb,Za.unstable_renderSubtreeIntoContainer=function(h,p,C,x){if(!u0(C))throw Error(r(200));if(h==null||h._reactInternals===void 0)throw Error(r(38));return kp(h,p,C,!1,x)},Za.version="18.3.1-next-f1338f8080-20240426",Za}function EJ(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(EJ)}catch(e){console.error(e)}}EJ(),xJ.exports=b9e();var PJ=xJ.exports,n9=PJ;n9.createRoot,n9.hydrateRoot;function DT(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function H5(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function FJ(e,t){var r=Object.create(e.prototype);for(var s in t)r[s]=t[s];return r}function i3(){}var cx=.7,tR=1/cx,iw="\\s*([+-]?\\d+)\\s*",ux="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",kh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",S9e=/^#([0-9a-f]{3,8})$/,x9e=new RegExp(`^rgb\\(${iw},${iw},${iw}\\)$`),E9e=new RegExp(`^rgb\\(${kh},${kh},${kh}\\)$`),P9e=new RegExp(`^rgba\\(${iw},${iw},${iw},${ux}\\)$`),F9e=new RegExp(`^rgba\\(${kh},${kh},${kh},${ux}\\)$`),R9e=new RegExp(`^hsl\\(${ux},${kh},${kh}\\)$`),T9e=new RegExp(`^hsla\\(${ux},${kh},${kh},${ux}\\)$`),i9={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};H5(i3,Dv,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:o9,formatHex:o9,formatHex8:D9e,formatHsl:M9e,formatRgb:a9,toString:a9});function o9(){return this.rgb().formatHex()}function D9e(){return this.rgb().formatHex8()}function M9e(){return RJ(this).formatHsl()}function a9(){return this.rgb().formatRgb()}function Dv(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=S9e.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?l9(t):r===3?new nl(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?hP(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?hP(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=x9e.exec(e))?new nl(t[1],t[2],t[3],1):(t=E9e.exec(e))?new nl(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=P9e.exec(e))?hP(t[1],t[2],t[3],t[4]):(t=F9e.exec(e))?hP(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=R9e.exec(e))?d9(t[1],t[2]/100,t[3]/100,1):(t=T9e.exec(e))?d9(t[1],t[2]/100,t[3]/100,t[4]):i9.hasOwnProperty(e)?l9(i9[e]):e==="transparent"?new nl(NaN,NaN,NaN,0):null}function l9(e){return new nl(e>>16&255,e>>8&255,e&255,1)}function hP(e,t,r,s){return s<=0&&(e=t=r=NaN),new nl(e,t,r,s)}function I9e(e){return e instanceof i3||(e=Dv(e)),e?(e=e.rgb(),new nl(e.r,e.g,e.b,e.opacity)):new nl}function fB(e,t,r,s){return arguments.length===1?I9e(e):new nl(e,t,r,s??1)}function nl(e,t,r,s){this.r=+e,this.g=+t,this.b=+r,this.opacity=+s}H5(nl,fB,FJ(i3,{brighter(e){return e=e==null?tR:Math.pow(tR,e),new nl(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?cx:Math.pow(cx,e),new nl(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nl(hv(this.r),hv(this.g),hv(this.b),rR(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:c9,formatHex:c9,formatHex8:k9e,formatRgb:u9,toString:u9}));function c9(){return`#${$m(this.r)}${$m(this.g)}${$m(this.b)}`}function k9e(){return`#${$m(this.r)}${$m(this.g)}${$m(this.b)}${$m((isNaN(this.opacity)?1:this.opacity)*255)}`}function u9(){const e=rR(this.opacity);return`${e===1?"rgb(":"rgba("}${hv(this.r)}, ${hv(this.g)}, ${hv(this.b)}${e===1?")":`, ${e})`}`}function rR(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function hv(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $m(e){return e=hv(e),(e<16?"0":"")+e.toString(16)}function d9(e,t,r,s){return s<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new _u(e,t,r,s)}function RJ(e){if(e instanceof _u)return new _u(e.h,e.s,e.l,e.opacity);if(e instanceof i3||(e=Dv(e)),!e)return new _u;if(e instanceof _u)return e;e=e.rgb();var t=e.r/255,r=e.g/255,s=e.b/255,n=Math.min(t,r,s),i=Math.max(t,r,s),o=NaN,a=i-n,l=(i+n)/2;return a?(t===i?o=(r-s)/a+(r<s)*6:r===i?o=(s-t)/a+2:o=(t-r)/a+4,a/=l<.5?i+n:2-i-n,o*=60):a=l>0&&l<1?0:o,new _u(o,a,l,e.opacity)}function B9e(e,t,r,s){return arguments.length===1?RJ(e):new _u(e,t,r,s??1)}function _u(e,t,r,s){this.h=+e,this.s=+t,this.l=+r,this.opacity=+s}H5(_u,B9e,FJ(i3,{brighter(e){return e=e==null?tR:Math.pow(tR,e),new _u(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?cx:Math.pow(cx,e),new _u(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,s=r+(r<.5?r:1-r)*t,n=2*r-s;return new nl(w4(e>=240?e-240:e+120,n,s),w4(e,n,s),w4(e<120?e+240:e-120,n,s),this.opacity)},clamp(){return new _u(h9(this.h),pP(this.s),pP(this.l),rR(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=rR(this.opacity);return`${e===1?"hsl(":"hsla("}${h9(this.h)}, ${pP(this.s)*100}%, ${pP(this.l)*100}%${e===1?")":`, ${e})`}`}}));function h9(e){return e=(e||0)%360,e<0?e+360:e}function pP(e){return Math.max(0,Math.min(1,e||0))}function w4(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const G5=e=>()=>e;function L9e(e,t){return function(r){return e+r*t}}function H9e(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(s){return Math.pow(e+s*t,r)}}function G9e(e){return(e=+e)==1?TJ:function(t,r){return r-t?H9e(t,r,e):G5(isNaN(t)?r:t)}}function TJ(e,t){var r=t-e;return r?L9e(e,r):G5(isNaN(e)?t:e)}const sR=function e(t){var r=G9e(t);function s(n,i){var o=r((n=fB(n)).r,(i=fB(i)).r),a=r(n.g,i.g),l=r(n.b,i.b),c=TJ(n.opacity,i.opacity);return function(u){return n.r=o(u),n.g=a(u),n.b=l(u),n.opacity=c(u),n+""}}return s.gamma=e,s}(1);function O9e(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,s=t.slice(),n;return function(i){for(n=0;n<r;++n)s[n]=e[n]*(1-i)+t[n]*i;return s}}function N9e(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function _9e(e,t){var r=t?t.length:0,s=e?Math.min(r,e.length):0,n=new Array(s),i=new Array(r),o;for(o=0;o<s;++o)n[o]=O5(e[o],t[o]);for(;o<r;++o)i[o]=t[o];return function(a){for(o=0;o<s;++o)i[o]=n[o](a);return i}}function V9e(e,t){var r=new Date;return e=+e,t=+t,function(s){return r.setTime(e*(1-s)+t*s),r}}function Gu(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function z9e(e,t){var r={},s={},n;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(n in t)n in e?r[n]=O5(e[n],t[n]):s[n]=t[n];return function(i){for(n in r)s[n]=r[n](i);return s}}var AB=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,y4=new RegExp(AB.source,"g");function Q9e(e){return function(){return e}}function U9e(e){return function(t){return e(t)+""}}function DJ(e,t){var r=AB.lastIndex=y4.lastIndex=0,s,n,i,o=-1,a=[],l=[];for(e=e+"",t=t+"";(s=AB.exec(e))&&(n=y4.exec(t));)(i=n.index)>r&&(i=t.slice(r,i),a[o]?a[o]+=i:a[++o]=i),(s=s[0])===(n=n[0])?a[o]?a[o]+=n:a[++o]=n:(a[++o]=null,l.push({i:o,x:Gu(s,n)})),r=y4.lastIndex;return r<t.length&&(i=t.slice(r),a[o]?a[o]+=i:a[++o]=i),a.length<2?l[0]?U9e(l[0].x):Q9e(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)a[(d=l[u]).i]=d.x(c);return a.join("")})}function O5(e,t){var r=typeof t,s;return t==null||r==="boolean"?G5(t):(r==="number"?Gu:r==="string"?(s=Dv(t))?(t=s,sR):DJ:t instanceof Dv?sR:t instanceof Date?V9e:N9e(t)?O9e:Array.isArray(t)?_9e:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?z9e:Gu)(e,t)}function W9e(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var p9=180/Math.PI,MJ={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function IJ(e,t,r,s,n,i){var o,a,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*s)&&(r-=e*l,s-=t*l),(a=Math.sqrt(r*r+s*s))&&(r/=a,s/=a,l/=a),e*s<t*r&&(e=-e,t=-t,l=-l,o=-o),{translateX:n,translateY:i,rotate:Math.atan2(t,e)*p9,skewX:Math.atan(l)*p9,scaleX:o,scaleY:a}}var gP;function j9e(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?MJ:IJ(t.a,t.b,t.c,t.d,t.e,t.f)}function K9e(e){return e==null||(gP||(gP=document.createElementNS("http://www.w3.org/2000/svg","g")),gP.setAttribute("transform",e),!(e=gP.transform.baseVal.consolidate()))?MJ:(e=e.matrix,IJ(e.a,e.b,e.c,e.d,e.e,e.f))}function kJ(e,t,r,s){function n(c){return c.length?c.pop()+" ":""}function i(c,u,d,g,A,w){if(c!==d||u!==g){var v=A.push("translate(",null,t,null,r);w.push({i:v-4,x:Gu(c,d)},{i:v-2,x:Gu(u,g)})}else(d||g)&&A.push("translate("+d+t+g+r)}function o(c,u,d,g){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),g.push({i:d.push(n(d)+"rotate(",null,s)-2,x:Gu(c,u)})):u&&d.push(n(d)+"rotate("+u+s)}function a(c,u,d,g){c!==u?g.push({i:d.push(n(d)+"skewX(",null,s)-2,x:Gu(c,u)}):u&&d.push(n(d)+"skewX("+u+s)}function l(c,u,d,g,A,w){if(c!==d||u!==g){var v=A.push(n(A)+"scale(",null,",",null,")");w.push({i:v-4,x:Gu(c,d)},{i:v-2,x:Gu(u,g)})}else(d!==1||g!==1)&&A.push(n(A)+"scale("+d+","+g+")")}return function(c,u){var d=[],g=[];return c=e(c),u=e(u),i(c.translateX,c.translateY,u.translateX,u.translateY,d,g),o(c.rotate,u.rotate,d,g),a(c.skewX,u.skewX,d,g),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,g),c=u=null,function(A){for(var w=-1,v=g.length,b;++w<v;)d[(b=g[w]).i]=b.x(A);return d.join("")}}}var Y9e=kJ(j9e,"px, ","px)","deg)"),Z9e=kJ(K9e,", ",")",")"),X9e=1e-12;function g9(e){return((e=Math.exp(e))+1/e)/2}function $9e(e){return((e=Math.exp(e))-1/e)/2}function J9e(e){return((e=Math.exp(2*e))-1)/(e+1)}(function e(t,r,s){function n(i,o){var a=i[0],l=i[1],c=i[2],u=o[0],d=o[1],g=o[2],A=u-a,w=d-l,v=A*A+w*w,b,S;if(v<X9e)S=Math.log(g/c)/t,b=function(k){return[a+k*A,l+k*w,c*Math.exp(t*k*S)]};else{var P=Math.sqrt(v),F=(g*g-c*c+s*v)/(2*c*r*P),T=(g*g-c*c-s*v)/(2*g*r*P),D=Math.log(Math.sqrt(F*F+1)-F),B=Math.log(Math.sqrt(T*T+1)-T);S=(B-D)/t,b=function(k){var z=k*S,O=g9(D),j=c/(r*P)*(O*J9e(t*z+D)-$9e(D));return[a+j*A,l+j*w,c*O/g9(t*z+D)]}}return b.duration=S*1e3*t/Math.SQRT2,b}return n.rho=function(i){var o=Math.max(.001,+i),a=o*o,l=a*a;return e(o,a,l)},n})(Math.SQRT2,2,4);function q9e(e){return function(){return e}}function mB(e){return+e}var f9=[0,1];function Ph(e){return e}function vB(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:q9e(isNaN(t)?NaN:.5)}function eNe(e,t){var r;return e>t&&(r=e,e=t,t=r),function(s){return Math.max(e,Math.min(t,s))}}function tNe(e,t,r){var s=e[0],n=e[1],i=t[0],o=t[1];return n<s?(s=vB(n,s),i=r(o,i)):(s=vB(s,n),i=r(i,o)),function(a){return i(s(a))}}function rNe(e,t,r){var s=Math.min(e.length,t.length)-1,n=new Array(s),i=new Array(s),o=-1;for(e[s]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<s;)n[o]=vB(e[o],e[o+1]),i[o]=r(t[o],t[o+1]);return function(a){var l=KOe(e,a,1,s)-1;return i[l](n[l](a))}}function MT(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function N5(){var e=f9,t=f9,r=O5,s,n,i,o=Ph,a,l,c;function u(){var g=Math.min(e.length,t.length);return o!==Ph&&(o=eNe(e[0],e[g-1])),a=g>2?rNe:tNe,l=c=null,d}function d(g){return g==null||isNaN(g=+g)?i:(l||(l=a(e.map(s),t,r)))(s(o(g)))}return d.invert=function(g){return o(n((c||(c=a(t,e.map(s),Gu)))(g)))},d.domain=function(g){return arguments.length?(e=Array.from(g,mB),u()):e.slice()},d.range=function(g){return arguments.length?(t=Array.from(g),u()):t.slice()},d.rangeRound=function(g){return t=Array.from(g),r=W9e,u()},d.clamp=function(g){return arguments.length?(o=g?!0:Ph,u()):o!==Ph},d.interpolate=function(g){return arguments.length?(r=g,u()):r},d.unknown=function(g){return arguments.length?(i=g,d):i},function(g,A){return s=g,n=A,u()}}function BJ(){return N5()(Ph,Ph)}function sNe(e,t,r,s){var n=gB(e,t,r),i;switch(s=ax(s??",f"),s.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return s.precision==null&&!isNaN(i=Z8e(n,o))&&(s.precision=i),hJ(s,o)}case"":case"e":case"g":case"p":case"r":{s.precision==null&&!isNaN(i=X8e(n,Math.max(Math.abs(e),Math.abs(t))))&&(s.precision=i-(s.type==="e"));break}case"f":case"%":{s.precision==null&&!isNaN(i=Y8e(n))&&(s.precision=i-(s.type==="%")*2);break}}return lx(s)}function _5(e){var t=e.domain;return e.ticks=function(r){var s=t();return hB(s[0],s[s.length-1],r??10)},e.tickFormat=function(r,s){var n=t();return sNe(n[0],n[n.length-1],r??10,s)},e.nice=function(r){r==null&&(r=10);var s=t(),n=0,i=s.length-1,o=s[n],a=s[i],l,c,u=10;for(a<o&&(c=o,o=a,a=c,c=n,n=i,i=c);u-- >0;){if(c=pB(o,a,r),c===l)return s[n]=o,s[i]=a,t(s);if(c>0)o=Math.floor(o/c)*c,a=Math.ceil(a/c)*c;else if(c<0)o=Math.ceil(o*c)/c,a=Math.floor(a*c)/c;else break;l=c}return e},e}function V5(){var e=BJ();return e.copy=function(){return MT(e,V5())},DT.apply(e,arguments),_5(e)}function LJ(e){var t;function r(s){return s==null||isNaN(s=+s)?t:s}return r.invert=r,r.domain=r.range=function(s){return arguments.length?(e=Array.from(s,mB),r):e.slice()},r.unknown=function(s){return arguments.length?(t=s,r):t},r.copy=function(){return LJ(e).unknown(t)},e=arguments.length?Array.from(e,mB):[0,1],_5(r)}function HJ(e,t){e=e.slice();var r=0,s=e.length-1,n=e[r],i=e[s],o;return i<n&&(o=r,r=s,s=o,o=n,n=i,i=o),e[r]=t.floor(n),e[s]=t.ceil(i),e}function A9(e){return Math.log(e)}function m9(e){return Math.exp(e)}function nNe(e){return-Math.log(-e)}function iNe(e){return-Math.exp(-e)}function oNe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function aNe(e){return e===10?oNe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function lNe(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function v9(e){return(t,r)=>-e(-t,r)}function cNe(e){const t=e(A9,m9),r=t.domain;let s=10,n,i;function o(){return n=lNe(s),i=aNe(s),r()[0]<0?(n=v9(n),i=v9(i),e(nNe,iNe)):e(A9,m9),t}return t.base=function(a){return arguments.length?(s=+a,o()):s},t.domain=function(a){return arguments.length?(r(a),o()):r()},t.ticks=a=>{const l=r();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let g=n(c),A=n(u),w,v;const b=a==null?10:+a;let S=[];if(!(s%1)&&A-g<b){if(g=Math.floor(g),A=Math.ceil(A),c>0){for(;g<=A;++g)for(w=1;w<s;++w)if(v=g<0?w/i(-g):w*i(g),!(v<c)){if(v>u)break;S.push(v)}}else for(;g<=A;++g)for(w=s-1;w>=1;--w)if(v=g>0?w/i(-g):w*i(g),!(v<c)){if(v>u)break;S.push(v)}S.length*2<b&&(S=hB(c,u,b))}else S=hB(g,A,Math.min(A-g,b)).map(i);return d?S.reverse():S},t.tickFormat=(a,l)=>{if(a==null&&(a=10),l==null&&(l=s===10?"s":","),typeof l!="function"&&(!(s%1)&&(l=ax(l)).precision==null&&(l.trim=!0),l=lx(l)),a===1/0)return l;const c=Math.max(1,s*a/t.ticks().length);return u=>{let d=u/i(Math.round(n(u)));return d*s<s-.5&&(d*=s),d<=c?l(u):""}},t.nice=()=>r(HJ(r(),{floor:a=>i(Math.floor(n(a))),ceil:a=>i(Math.ceil(n(a)))})),t}function GJ(){const e=cNe(N5()).domain([1,10]);return e.copy=()=>MT(e,GJ()).base(e.base()),DT.apply(e,arguments),e}function C9(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function uNe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function dNe(e){return e<0?-e*e:e*e}function hNe(e){var t=e(Ph,Ph),r=1;function s(){return r===1?e(Ph,Ph):r===.5?e(uNe,dNe):e(C9(r),C9(1/r))}return t.exponent=function(n){return arguments.length?(r=+n,s()):r},_5(t)}function OJ(){var e=hNe(N5());return e.copy=function(){return MT(e,OJ()).exponent(e.exponent())},DT.apply(e,arguments),e}const b4=new Date,S4=new Date;function yi(e,t,r,s){function n(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return n.floor=i=>(e(i=new Date(+i)),i),n.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),n.round=i=>{const o=n(i),a=n.ceil(i);return i-o<a-i?o:a},n.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),n.range=(i,o,a)=>{const l=[];if(i=n.ceil(i),a=a==null?1:Math.floor(a),!(i<o)||!(a>0))return l;let c;do l.push(c=new Date(+i)),t(i,a),e(i);while(c<i&&i<o);return l},n.filter=i=>yi(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,a)=>{if(o>=o)if(a<0)for(;++a<=0;)for(;t(o,-1),!i(o););else for(;--a>=0;)for(;t(o,1),!i(o););}),r&&(n.count=(i,o)=>(b4.setTime(+i),S4.setTime(+o),e(b4),e(S4),Math.floor(r(b4,S4))),n.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?n.filter(s?o=>s(o)%i===0:o=>n.count(0,o)%i===0):n)),n}const nR=yi(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);nR.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?yi(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):nR);nR.range;const ig=1e3,Qc=ig*60,og=Qc*60,Cg=og*24,z5=Cg*7,w9=Cg*30,x4=Cg*365,V0=yi(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ig)},(e,t)=>(t-e)/ig,e=>e.getUTCSeconds());V0.range;const Q5=yi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ig)},(e,t)=>{e.setTime(+e+t*Qc)},(e,t)=>(t-e)/Qc,e=>e.getMinutes());Q5.range;const pNe=yi(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Qc)},(e,t)=>(t-e)/Qc,e=>e.getUTCMinutes());pNe.range;const U5=yi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ig-e.getMinutes()*Qc)},(e,t)=>{e.setTime(+e+t*og)},(e,t)=>(t-e)/og,e=>e.getHours());U5.range;const gNe=yi(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*og)},(e,t)=>(t-e)/og,e=>e.getUTCHours());gNe.range;const o3=yi(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Qc)/Cg,e=>e.getDate()-1);o3.range;const W5=yi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Cg,e=>e.getUTCDate()-1);W5.range;const fNe=yi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Cg,e=>Math.floor(e/Cg));fNe.range;function Ov(e){return yi(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Qc)/z5)}const IT=Ov(0),iR=Ov(1),ANe=Ov(2),mNe=Ov(3),kw=Ov(4),vNe=Ov(5),CNe=Ov(6);IT.range;iR.range;ANe.range;mNe.range;kw.range;vNe.range;CNe.range;function Nv(e){return yi(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/z5)}const NJ=Nv(0),oR=Nv(1),wNe=Nv(2),yNe=Nv(3),Bw=Nv(4),bNe=Nv(5),SNe=Nv(6);NJ.range;oR.range;wNe.range;yNe.range;Bw.range;bNe.range;SNe.range;const j5=yi(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());j5.range;const xNe=yi(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());xNe.range;const wg=yi(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());wg.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:yi(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});wg.range;const Mv=yi(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Mv.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:yi(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Mv.range;function ENe(e,t,r,s,n,i){const o=[[V0,1,ig],[V0,5,5*ig],[V0,15,15*ig],[V0,30,30*ig],[i,1,Qc],[i,5,5*Qc],[i,15,15*Qc],[i,30,30*Qc],[n,1,og],[n,3,3*og],[n,6,6*og],[n,12,12*og],[s,1,Cg],[s,2,2*Cg],[r,1,z5],[t,1,w9],[t,3,3*w9],[e,1,x4]];function a(c,u,d){const g=u<c;g&&([c,u]=[u,c]);const A=d&&typeof d.range=="function"?d:l(c,u,d),w=A?A.range(c,+u+1):[];return g?w.reverse():w}function l(c,u,d){const g=Math.abs(u-c)/d,A=L5(([,,b])=>b).right(o,g);if(A===o.length)return e.every(gB(c/x4,u/x4,d));if(A===0)return nR.every(Math.max(gB(c,u,d),1));const[w,v]=o[g/o[A-1][2]<o[A][2]/g?A-1:A];return w.every(v)}return[a,l]}const[PNe,FNe]=ENe(wg,j5,IT,o3,U5,Q5);function E4(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function P4(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Hb(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function RNe(e){var t=e.dateTime,r=e.date,s=e.time,n=e.periods,i=e.days,o=e.shortDays,a=e.months,l=e.shortMonths,c=Gb(n),u=Ob(n),d=Gb(i),g=Ob(i),A=Gb(o),w=Ob(o),v=Gb(a),b=Ob(a),S=Gb(l),P=Ob(l),F={a:pe,A:X,b:re,B:ae,c:null,d:P9,e:P9,f:$Ne,g:a_e,G:c_e,H:YNe,I:ZNe,j:XNe,L:_J,m:JNe,M:qNe,p:$,q:se,Q:T9,s:D9,S:e_e,u:t_e,U:r_e,V:s_e,w:n_e,W:i_e,x:null,X:null,y:o_e,Y:l_e,Z:u_e,"%":R9},T={a:De,A:Oe,b:Be,B:Ve,c:null,d:F9,e:F9,f:g_e,g:x_e,G:P_e,H:d_e,I:h_e,j:p_e,L:zJ,m:f_e,M:A_e,p:ze,q:nt,Q:T9,s:D9,S:m_e,u:v_e,U:C_e,V:w_e,w:y_e,W:b_e,x:null,X:null,y:S_e,Y:E_e,Z:F_e,"%":R9},D={a:j,A:_,b:G,B:N,c:W,d:x9,e:x9,f:UNe,g:S9,G:b9,H:E9,I:E9,j:_Ne,L:QNe,m:NNe,M:VNe,p:O,q:ONe,Q:jNe,s:KNe,S:zNe,u:kNe,U:BNe,V:LNe,w:INe,W:HNe,x:V,X:q,y:S9,Y:b9,Z:GNe,"%":WNe};F.x=B(r,F),F.X=B(s,F),F.c=B(t,F),T.x=B(r,T),T.X=B(s,T),T.c=B(t,T);function B(xe,He){return function(wt){var _e=[],ne=-1,oe=0,Se=xe.length,$e,Ke,rt;for(wt instanceof Date||(wt=new Date(+wt));++ne<Se;)xe.charCodeAt(ne)===37&&(_e.push(xe.slice(oe,ne)),(Ke=y9[$e=xe.charAt(++ne)])!=null?$e=xe.charAt(++ne):Ke=$e==="e"?" ":"0",(rt=He[$e])&&($e=rt(wt,Ke)),_e.push($e),oe=ne+1);return _e.push(xe.slice(oe,ne)),_e.join("")}}function k(xe,He){return function(wt){var _e=Hb(1900,void 0,1),ne=z(_e,xe,wt+="",0),oe,Se;if(ne!=wt.length)return null;if("Q"in _e)return new Date(_e.Q);if("s"in _e)return new Date(_e.s*1e3+("L"in _e?_e.L:0));if(He&&!("Z"in _e)&&(_e.Z=0),"p"in _e&&(_e.H=_e.H%12+_e.p*12),_e.m===void 0&&(_e.m="q"in _e?_e.q:0),"V"in _e){if(_e.V<1||_e.V>53)return null;"w"in _e||(_e.w=1),"Z"in _e?(oe=P4(Hb(_e.y,0,1)),Se=oe.getUTCDay(),oe=Se>4||Se===0?oR.ceil(oe):oR(oe),oe=W5.offset(oe,(_e.V-1)*7),_e.y=oe.getUTCFullYear(),_e.m=oe.getUTCMonth(),_e.d=oe.getUTCDate()+(_e.w+6)%7):(oe=E4(Hb(_e.y,0,1)),Se=oe.getDay(),oe=Se>4||Se===0?iR.ceil(oe):iR(oe),oe=o3.offset(oe,(_e.V-1)*7),_e.y=oe.getFullYear(),_e.m=oe.getMonth(),_e.d=oe.getDate()+(_e.w+6)%7)}else("W"in _e||"U"in _e)&&("w"in _e||(_e.w="u"in _e?_e.u%7:"W"in _e?1:0),Se="Z"in _e?P4(Hb(_e.y,0,1)).getUTCDay():E4(Hb(_e.y,0,1)).getDay(),_e.m=0,_e.d="W"in _e?(_e.w+6)%7+_e.W*7-(Se+5)%7:_e.w+_e.U*7-(Se+6)%7);return"Z"in _e?(_e.H+=_e.Z/100|0,_e.M+=_e.Z%100,P4(_e)):E4(_e)}}function z(xe,He,wt,_e){for(var ne=0,oe=He.length,Se=wt.length,$e,Ke;ne<oe;){if(_e>=Se)return-1;if($e=He.charCodeAt(ne++),$e===37){if($e=He.charAt(ne++),Ke=D[$e in y9?He.charAt(ne++):$e],!Ke||(_e=Ke(xe,wt,_e))<0)return-1}else if($e!=wt.charCodeAt(_e++))return-1}return _e}function O(xe,He,wt){var _e=c.exec(He.slice(wt));return _e?(xe.p=u.get(_e[0].toLowerCase()),wt+_e[0].length):-1}function j(xe,He,wt){var _e=A.exec(He.slice(wt));return _e?(xe.w=w.get(_e[0].toLowerCase()),wt+_e[0].length):-1}function _(xe,He,wt){var _e=d.exec(He.slice(wt));return _e?(xe.w=g.get(_e[0].toLowerCase()),wt+_e[0].length):-1}function G(xe,He,wt){var _e=S.exec(He.slice(wt));return _e?(xe.m=P.get(_e[0].toLowerCase()),wt+_e[0].length):-1}function N(xe,He,wt){var _e=v.exec(He.slice(wt));return _e?(xe.m=b.get(_e[0].toLowerCase()),wt+_e[0].length):-1}function W(xe,He,wt){return z(xe,t,He,wt)}function V(xe,He,wt){return z(xe,r,He,wt)}function q(xe,He,wt){return z(xe,s,He,wt)}function pe(xe){return o[xe.getDay()]}function X(xe){return i[xe.getDay()]}function re(xe){return l[xe.getMonth()]}function ae(xe){return a[xe.getMonth()]}function $(xe){return n[+(xe.getHours()>=12)]}function se(xe){return 1+~~(xe.getMonth()/3)}function De(xe){return o[xe.getUTCDay()]}function Oe(xe){return i[xe.getUTCDay()]}function Be(xe){return l[xe.getUTCMonth()]}function Ve(xe){return a[xe.getUTCMonth()]}function ze(xe){return n[+(xe.getUTCHours()>=12)]}function nt(xe){return 1+~~(xe.getUTCMonth()/3)}return{format:function(xe){var He=B(xe+="",F);return He.toString=function(){return xe},He},parse:function(xe){var He=k(xe+="",!1);return He.toString=function(){return xe},He},utcFormat:function(xe){var He=B(xe+="",T);return He.toString=function(){return xe},He},utcParse:function(xe){var He=k(xe+="",!0);return He.toString=function(){return xe},He}}}var y9={"-":"",_:" ",0:"0"},Ni=/^\s*\d+/,TNe=/^%/,DNe=/[\\^$*+?|[\]().{}]/g;function Ps(e,t,r){var s=e<0?"-":"",n=(s?-e:e)+"",i=n.length;return s+(i<r?new Array(r-i+1).join(t)+n:n)}function MNe(e){return e.replace(DNe,"\\$&")}function Gb(e){return new RegExp("^(?:"+e.map(MNe).join("|")+")","i")}function Ob(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function INe(e,t,r){var s=Ni.exec(t.slice(r,r+1));return s?(e.w=+s[0],r+s[0].length):-1}function kNe(e,t,r){var s=Ni.exec(t.slice(r,r+1));return s?(e.u=+s[0],r+s[0].length):-1}function BNe(e,t,r){var s=Ni.exec(t.slice(r,r+2));return s?(e.U=+s[0],r+s[0].length):-1}function LNe(e,t,r){var s=Ni.exec(t.slice(r,r+2));return s?(e.V=+s[0],r+s[0].length):-1}function HNe(e,t,r){var s=Ni.exec(t.slice(r,r+2));return s?(e.W=+s[0],r+s[0].length):-1}function b9(e,t,r){var s=Ni.exec(t.slice(r,r+4));return s?(e.y=+s[0],r+s[0].length):-1}function S9(e,t,r){var s=Ni.exec(t.slice(r,r+2));return s?(e.y=+s[0]+(+s[0]>68?1900:2e3),r+s[0].length):-1}function GNe(e,t,r){var s=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return s?(e.Z=s[1]?0:-(s[2]+(s[3]||"00")),r+s[0].length):-1}function ONe(e,t,r){var s=Ni.exec(t.slice(r,r+1));return s?(e.q=s[0]*3-3,r+s[0].length):-1}function NNe(e,t,r){var s=Ni.exec(t.slice(r,r+2));return s?(e.m=s[0]-1,r+s[0].length):-1}function x9(e,t,r){var s=Ni.exec(t.slice(r,r+2));return s?(e.d=+s[0],r+s[0].length):-1}function _Ne(e,t,r){var s=Ni.exec(t.slice(r,r+3));return s?(e.m=0,e.d=+s[0],r+s[0].length):-1}function E9(e,t,r){var s=Ni.exec(t.slice(r,r+2));return s?(e.H=+s[0],r+s[0].length):-1}function VNe(e,t,r){var s=Ni.exec(t.slice(r,r+2));return s?(e.M=+s[0],r+s[0].length):-1}function zNe(e,t,r){var s=Ni.exec(t.slice(r,r+2));return s?(e.S=+s[0],r+s[0].length):-1}function QNe(e,t,r){var s=Ni.exec(t.slice(r,r+3));return s?(e.L=+s[0],r+s[0].length):-1}function UNe(e,t,r){var s=Ni.exec(t.slice(r,r+6));return s?(e.L=Math.floor(s[0]/1e3),r+s[0].length):-1}function WNe(e,t,r){var s=TNe.exec(t.slice(r,r+1));return s?r+s[0].length:-1}function jNe(e,t,r){var s=Ni.exec(t.slice(r));return s?(e.Q=+s[0],r+s[0].length):-1}function KNe(e,t,r){var s=Ni.exec(t.slice(r));return s?(e.s=+s[0],r+s[0].length):-1}function P9(e,t){return Ps(e.getDate(),t,2)}function YNe(e,t){return Ps(e.getHours(),t,2)}function ZNe(e,t){return Ps(e.getHours()%12||12,t,2)}function XNe(e,t){return Ps(1+o3.count(wg(e),e),t,3)}function _J(e,t){return Ps(e.getMilliseconds(),t,3)}function $Ne(e,t){return _J(e,t)+"000"}function JNe(e,t){return Ps(e.getMonth()+1,t,2)}function qNe(e,t){return Ps(e.getMinutes(),t,2)}function e_e(e,t){return Ps(e.getSeconds(),t,2)}function t_e(e){var t=e.getDay();return t===0?7:t}function r_e(e,t){return Ps(IT.count(wg(e)-1,e),t,2)}function VJ(e){var t=e.getDay();return t>=4||t===0?kw(e):kw.ceil(e)}function s_e(e,t){return e=VJ(e),Ps(kw.count(wg(e),e)+(wg(e).getDay()===4),t,2)}function n_e(e){return e.getDay()}function i_e(e,t){return Ps(iR.count(wg(e)-1,e),t,2)}function o_e(e,t){return Ps(e.getFullYear()%100,t,2)}function a_e(e,t){return e=VJ(e),Ps(e.getFullYear()%100,t,2)}function l_e(e,t){return Ps(e.getFullYear()%1e4,t,4)}function c_e(e,t){var r=e.getDay();return e=r>=4||r===0?kw(e):kw.ceil(e),Ps(e.getFullYear()%1e4,t,4)}function u_e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ps(t/60|0,"0",2)+Ps(t%60,"0",2)}function F9(e,t){return Ps(e.getUTCDate(),t,2)}function d_e(e,t){return Ps(e.getUTCHours(),t,2)}function h_e(e,t){return Ps(e.getUTCHours()%12||12,t,2)}function p_e(e,t){return Ps(1+W5.count(Mv(e),e),t,3)}function zJ(e,t){return Ps(e.getUTCMilliseconds(),t,3)}function g_e(e,t){return zJ(e,t)+"000"}function f_e(e,t){return Ps(e.getUTCMonth()+1,t,2)}function A_e(e,t){return Ps(e.getUTCMinutes(),t,2)}function m_e(e,t){return Ps(e.getUTCSeconds(),t,2)}function v_e(e){var t=e.getUTCDay();return t===0?7:t}function C_e(e,t){return Ps(NJ.count(Mv(e)-1,e),t,2)}function QJ(e){var t=e.getUTCDay();return t>=4||t===0?Bw(e):Bw.ceil(e)}function w_e(e,t){return e=QJ(e),Ps(Bw.count(Mv(e),e)+(Mv(e).getUTCDay()===4),t,2)}function y_e(e){return e.getUTCDay()}function b_e(e,t){return Ps(oR.count(Mv(e)-1,e),t,2)}function S_e(e,t){return Ps(e.getUTCFullYear()%100,t,2)}function x_e(e,t){return e=QJ(e),Ps(e.getUTCFullYear()%100,t,2)}function E_e(e,t){return Ps(e.getUTCFullYear()%1e4,t,4)}function P_e(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Bw(e):Bw.ceil(e),Ps(e.getUTCFullYear()%1e4,t,4)}function F_e(){return"+0000"}function R9(){return"%"}function T9(e){return+e}function D9(e){return Math.floor(+e/1e3)}var v0,UJ;R_e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function R_e(e){return v0=RNe(e),UJ=v0.format,v0.parse,v0.utcFormat,v0.utcParse,v0}function T_e(e){return new Date(e)}function D_e(e){return e instanceof Date?+e:+new Date(+e)}function WJ(e,t,r,s,n,i,o,a,l,c){var u=BJ(),d=u.invert,g=u.domain,A=c(".%L"),w=c(":%S"),v=c("%I:%M"),b=c("%I %p"),S=c("%a %d"),P=c("%b %d"),F=c("%B"),T=c("%Y");function D(B){return(l(B)<B?A:a(B)<B?w:o(B)<B?v:i(B)<B?b:s(B)<B?n(B)<B?S:P:r(B)<B?F:T)(B)}return u.invert=function(B){return new Date(d(B))},u.domain=function(B){return arguments.length?g(Array.from(B,D_e)):g().map(T_e)},u.ticks=function(B){var k=g();return e(k[0],k[k.length-1],B??10)},u.tickFormat=function(B,k){return k==null?D:c(k)},u.nice=function(B){var k=g();return(!B||typeof B.range!="function")&&(B=t(k[0],k[k.length-1],B??10)),B?g(HJ(k,B)):u},u.copy=function(){return MT(u,WJ(e,t,r,s,n,i,o,a,l,c))},u}function M_e(){return DT.apply(WJ(PNe,FNe,wg,j5,IT,o3,U5,Q5,V0,UJ).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var jJ={exports:{}},Nb={};/**
787
787
  * @license React
788
788
  * react-jsx-runtime.production.min.js
789
789
  *
@@ -13586,7 +13586,7 @@ Error generating stack: `+L.message+`
13586
13586
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13587
13587
  * See the License for the specific language governing permissions and
13588
13588
  * limitations under the License.
13589
- */Zv.isPrimitive;BT.primitives;var i2t=vPt.factory;i2t(0,1);function o2t(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return gte(this.cover(t,r),t,r,e)}function gte(e,t,r,s){if(isNaN(t)||isNaN(r))return e;var n,i=e._root,o={data:s},a=e._x0,l=e._y0,c=e._x1,u=e._y1,d,g,A,w,v,b,S,P;if(!i)return e._root=o,e;for(;i.length;)if((v=t>=(d=(a+c)/2))?a=d:c=d,(b=r>=(g=(l+u)/2))?l=g:u=g,n=i,!(i=i[S=b<<1|v]))return n[S]=o,e;if(A=+e._x.call(null,i.data),w=+e._y.call(null,i.data),t===A&&r===w)return o.next=i,n?n[S]=o:e._root=o,e;do n=n?n[S]=new Array(4):e._root=new Array(4),(v=t>=(d=(a+c)/2))?a=d:c=d,(b=r>=(g=(l+u)/2))?l=g:u=g;while((S=b<<1|v)===(P=(w>=g)<<1|A>=d));return n[P]=i,n[S]=o,e}function a2t(e){var t,r,s=e.length,n,i,o=new Array(s),a=new Array(s),l=1/0,c=1/0,u=-1/0,d=-1/0;for(r=0;r<s;++r)isNaN(n=+this._x.call(null,t=e[r]))||isNaN(i=+this._y.call(null,t))||(o[r]=n,a[r]=i,n<l&&(l=n),n>u&&(u=n),i<c&&(c=i),i>d&&(d=i));if(l>u||c>d)return this;for(this.cover(l,c).cover(u,d),r=0;r<s;++r)gte(this,o[r],a[r],e[r]);return this}function l2t(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,s=this._y0,n=this._x1,i=this._y1;if(isNaN(r))n=(r=Math.floor(e))+1,i=(s=Math.floor(t))+1;else{for(var o=n-r||1,a=this._root,l,c;r>e||e>=n||s>t||t>=i;)switch(c=(t<s)<<1|e<r,l=new Array(4),l[c]=a,a=l,o*=2,c){case 0:n=r+o,i=s+o;break;case 1:r=n-o,i=s+o;break;case 2:n=r+o,s=i-o;break;case 3:r=n-o,s=i-o;break}this._root&&this._root.length&&(this._root=a)}return this._x0=r,this._y0=s,this._x1=n,this._y1=i,this}function c2t(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function u2t(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function ua(e,t,r,s,n){this.node=e,this.x0=t,this.y0=r,this.x1=s,this.y1=n}function d2t(e,t,r){var s,n=this._x0,i=this._y0,o,a,l,c,u=this._x1,d=this._y1,g=[],A=this._root,w,v;for(A&&g.push(new ua(A,n,i,u,d)),r==null?r=1/0:(n=e-r,i=t-r,u=e+r,d=t+r,r*=r);w=g.pop();)if(!(!(A=w.node)||(o=w.x0)>u||(a=w.y0)>d||(l=w.x1)<n||(c=w.y1)<i))if(A.length){var b=(o+l)/2,S=(a+c)/2;g.push(new ua(A[3],b,S,l,c),new ua(A[2],o,S,b,c),new ua(A[1],b,a,l,S),new ua(A[0],o,a,b,S)),(v=(t>=S)<<1|e>=b)&&(w=g[g.length-1],g[g.length-1]=g[g.length-1-v],g[g.length-1-v]=w)}else{var P=e-+this._x.call(null,A.data),F=t-+this._y.call(null,A.data),T=P*P+F*F;if(T<r){var D=Math.sqrt(r=T);n=e-D,i=t-D,u=e+D,d=t+D,s=A.data}}return s}function h2t(e){if(isNaN(u=+this._x.call(null,e))||isNaN(d=+this._y.call(null,e)))return this;var t,r=this._root,s,n,i,o=this._x0,a=this._y0,l=this._x1,c=this._y1,u,d,g,A,w,v,b,S;if(!r)return this;if(r.length)for(;;){if((w=u>=(g=(o+l)/2))?o=g:l=g,(v=d>=(A=(a+c)/2))?a=A:c=A,t=r,!(r=r[b=v<<1|w]))return this;if(!r.length)break;(t[b+1&3]||t[b+2&3]||t[b+3&3])&&(s=t,S=b)}for(;r.data!==e;)if(n=r,!(r=r.next))return this;return(i=r.next)&&delete r.next,n?(i?n.next=i:delete n.next,this):t?(i?t[b]=i:delete t[b],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(s?s[S]=r:this._root=r),this):(this._root=i,this)}function p2t(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function g2t(){return this._root}function f2t(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function A2t(e){var t=[],r,s=this._root,n,i,o,a,l;for(s&&t.push(new ua(s,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(s=r.node,i=r.x0,o=r.y0,a=r.x1,l=r.y1)&&s.length){var c=(i+a)/2,u=(o+l)/2;(n=s[3])&&t.push(new ua(n,c,u,a,l)),(n=s[2])&&t.push(new ua(n,i,u,c,l)),(n=s[1])&&t.push(new ua(n,c,o,a,u)),(n=s[0])&&t.push(new ua(n,i,o,c,u))}return this}function m2t(e){var t=[],r=[],s;for(this._root&&t.push(new ua(this._root,this._x0,this._y0,this._x1,this._y1));s=t.pop();){var n=s.node;if(n.length){var i,o=s.x0,a=s.y0,l=s.x1,c=s.y1,u=(o+l)/2,d=(a+c)/2;(i=n[0])&&t.push(new ua(i,o,a,u,d)),(i=n[1])&&t.push(new ua(i,u,a,l,d)),(i=n[2])&&t.push(new ua(i,o,d,u,c)),(i=n[3])&&t.push(new ua(i,u,d,l,c))}r.push(s)}for(;s=r.pop();)e(s.node,s.x0,s.y0,s.x1,s.y1);return this}function v2t(e){return arguments.length?(this._x=e,this):this._x}function C2t(e){return arguments.length?(this._y=e,this):this._y}function fte(e,t,r,s,n,i){this._x=e,this._y=t,this._x0=r,this._y0=s,this._x1=n,this._y1=i,this._root=void 0}function dQ(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var xa=fte.prototype;xa.copy=function(){var e=new fte(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,s;if(!t)return e;if(!t.length)return e._root=dQ(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var n=0;n<4;++n)(s=t.source[n])&&(s.length?r.push({source:s,target:t.target[n]=new Array(4)}):t.target[n]=dQ(s));return e};xa.add=o2t;xa.addAll=a2t;xa.cover=l2t;xa.data=c2t;xa.extent=u2t;xa.find=d2t;xa.remove=h2t;xa.removeAll=p2t;xa.root=g2t;xa.size=f2t;xa.visit=A2t;xa.visitAfter=m2t;xa.x=v2t;xa.y=C2t;var e7="http://www.w3.org/1999/xhtml";const hQ={svg:"http://www.w3.org/2000/svg",xhtml:e7,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function lD(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),hQ.hasOwnProperty(t)?{space:hQ[t],local:e}:e}function w2t(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===e7&&t.documentElement.namespaceURI===e7?t.createElement(e):t.createElementNS(r,e)}}function y2t(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ate(e){var t=lD(e);return(t.local?y2t:w2t)(t)}function b2t(){}function P6(e){return e==null?b2t:function(){return this.querySelector(e)}}function S2t(e){typeof e!="function"&&(e=P6(e));for(var t=this._groups,r=t.length,s=new Array(r),n=0;n<r;++n)for(var i=t[n],o=i.length,a=s[n]=new Array(o),l,c,u=0;u<o;++u)(l=i[u])&&(c=e.call(l,l.__data__,u,i))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new cd(s,this._parents)}function x2t(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function E2t(){return[]}function mte(e){return e==null?E2t:function(){return this.querySelectorAll(e)}}function P2t(e){return function(){return x2t(e.apply(this,arguments))}}function F2t(e){typeof e=="function"?e=P2t(e):e=mte(e);for(var t=this._groups,r=t.length,s=[],n=[],i=0;i<r;++i)for(var o=t[i],a=o.length,l,c=0;c<a;++c)(l=o[c])&&(s.push(e.call(l,l.__data__,c,o)),n.push(l));return new cd(s,n)}function vte(e){return function(){return this.matches(e)}}function Cte(e){return function(t){return t.matches(e)}}var R2t=Array.prototype.find;function T2t(e){return function(){return R2t.call(this.children,e)}}function D2t(){return this.firstElementChild}function M2t(e){return this.select(e==null?D2t:T2t(typeof e=="function"?e:Cte(e)))}var I2t=Array.prototype.filter;function k2t(){return Array.from(this.children)}function B2t(e){return function(){return I2t.call(this.children,e)}}function L2t(e){return this.selectAll(e==null?k2t:B2t(typeof e=="function"?e:Cte(e)))}function H2t(e){typeof e!="function"&&(e=vte(e));for(var t=this._groups,r=t.length,s=new Array(r),n=0;n<r;++n)for(var i=t[n],o=i.length,a=s[n]=[],l,c=0;c<o;++c)(l=i[c])&&e.call(l,l.__data__,c,i)&&a.push(l);return new cd(s,this._parents)}function wte(e){return new Array(e.length)}function G2t(){return new cd(this._enter||this._groups.map(wte),this._parents)}function dR(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}dR.prototype={constructor:dR,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function O2t(e){return function(){return e}}function N2t(e,t,r,s,n,i){for(var o=0,a,l=t.length,c=i.length;o<c;++o)(a=t[o])?(a.__data__=i[o],s[o]=a):r[o]=new dR(e,i[o]);for(;o<l;++o)(a=t[o])&&(n[o]=a)}function _2t(e,t,r,s,n,i,o){var a,l,c=new Map,u=t.length,d=i.length,g=new Array(u),A;for(a=0;a<u;++a)(l=t[a])&&(g[a]=A=o.call(l,l.__data__,a,t)+"",c.has(A)?n[a]=l:c.set(A,l));for(a=0;a<d;++a)A=o.call(e,i[a],a,i)+"",(l=c.get(A))?(s[a]=l,l.__data__=i[a],c.delete(A)):r[a]=new dR(e,i[a]);for(a=0;a<u;++a)(l=t[a])&&c.get(g[a])===l&&(n[a]=l)}function V2t(e){return e.__data__}function z2t(e,t){if(!arguments.length)return Array.from(this,V2t);var r=t?_2t:N2t,s=this._parents,n=this._groups;typeof e!="function"&&(e=O2t(e));for(var i=n.length,o=new Array(i),a=new Array(i),l=new Array(i),c=0;c<i;++c){var u=s[c],d=n[c],g=d.length,A=Q2t(e.call(u,u&&u.__data__,c,s)),w=A.length,v=a[c]=new Array(w),b=o[c]=new Array(w),S=l[c]=new Array(g);r(u,d,v,b,S,A,t);for(var P=0,F=0,T,D;P<w;++P)if(T=v[P]){for(P>=F&&(F=P+1);!(D=b[F])&&++F<w;);T._next=D||null}}return o=new cd(o,s),o._enter=a,o._exit=l,o}function Q2t(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function U2t(){return new cd(this._exit||this._groups.map(wte),this._parents)}function W2t(e,t,r){var s=this.enter(),n=this,i=this.exit();return typeof e=="function"?(s=e(s),s&&(s=s.selection())):s=s.append(e+""),t!=null&&(n=t(n),n&&(n=n.selection())),r==null?i.remove():r(i),s&&n?s.merge(n).order():n}function j2t(e){for(var t=e.selection?e.selection():e,r=this._groups,s=t._groups,n=r.length,i=s.length,o=Math.min(n,i),a=new Array(n),l=0;l<o;++l)for(var c=r[l],u=s[l],d=c.length,g=a[l]=new Array(d),A,w=0;w<d;++w)(A=c[w]||u[w])&&(g[w]=A);for(;l<n;++l)a[l]=r[l];return new cd(a,this._parents)}function K2t(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var s=e[t],n=s.length-1,i=s[n],o;--n>=0;)(o=s[n])&&(i&&o.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(o,i),i=o);return this}function Y2t(e){e||(e=Z2t);function t(d,g){return d&&g?e(d.__data__,g.__data__):!d-!g}for(var r=this._groups,s=r.length,n=new Array(s),i=0;i<s;++i){for(var o=r[i],a=o.length,l=n[i]=new Array(a),c,u=0;u<a;++u)(c=o[u])&&(l[u]=c);l.sort(t)}return new cd(n,this._parents).order()}function Z2t(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function X2t(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function $2t(){return Array.from(this)}function J2t(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var s=e[t],n=0,i=s.length;n<i;++n){var o=s[n];if(o)return o}return null}function q2t(){let e=0;for(const t of this)++e;return e}function eFt(){return!this.node()}function tFt(e){for(var t=this._groups,r=0,s=t.length;r<s;++r)for(var n=t[r],i=0,o=n.length,a;i<o;++i)(a=n[i])&&e.call(a,a.__data__,i,n);return this}function rFt(e){return function(){this.removeAttribute(e)}}function sFt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function nFt(e,t){return function(){this.setAttribute(e,t)}}function iFt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function oFt(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function aFt(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function lFt(e,t){var r=lD(e);if(arguments.length<2){var s=this.node();return r.local?s.getAttributeNS(r.space,r.local):s.getAttribute(r)}return this.each((t==null?r.local?sFt:rFt:typeof t=="function"?r.local?aFt:oFt:r.local?iFt:nFt)(r,t))}function yte(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function cFt(e){return function(){this.style.removeProperty(e)}}function uFt(e,t,r){return function(){this.style.setProperty(e,t,r)}}function dFt(e,t,r){return function(){var s=t.apply(this,arguments);s==null?this.style.removeProperty(e):this.style.setProperty(e,s,r)}}function hFt(e,t,r){return arguments.length>1?this.each((t==null?cFt:typeof t=="function"?dFt:uFt)(e,t,r??"")):Gw(this.node(),e)}function Gw(e,t){return e.style.getPropertyValue(t)||yte(e).getComputedStyle(e,null).getPropertyValue(t)}function pFt(e){return function(){delete this[e]}}function gFt(e,t){return function(){this[e]=t}}function fFt(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function AFt(e,t){return arguments.length>1?this.each((t==null?pFt:typeof t=="function"?fFt:gFt)(e,t)):this.node()[e]}function bte(e){return e.trim().split(/^|\s+/)}function F6(e){return e.classList||new Ste(e)}function Ste(e){this._node=e,this._names=bte(e.getAttribute("class")||"")}Ste.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function xte(e,t){for(var r=F6(e),s=-1,n=t.length;++s<n;)r.add(t[s])}function Ete(e,t){for(var r=F6(e),s=-1,n=t.length;++s<n;)r.remove(t[s])}function mFt(e){return function(){xte(this,e)}}function vFt(e){return function(){Ete(this,e)}}function CFt(e,t){return function(){(t.apply(this,arguments)?xte:Ete)(this,e)}}function wFt(e,t){var r=bte(e+"");if(arguments.length<2){for(var s=F6(this.node()),n=-1,i=r.length;++n<i;)if(!s.contains(r[n]))return!1;return!0}return this.each((typeof t=="function"?CFt:t?mFt:vFt)(r,t))}function yFt(){this.textContent=""}function bFt(e){return function(){this.textContent=e}}function SFt(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function xFt(e){return arguments.length?this.each(e==null?yFt:(typeof e=="function"?SFt:bFt)(e)):this.node().textContent}function EFt(){this.innerHTML=""}function PFt(e){return function(){this.innerHTML=e}}function FFt(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function RFt(e){return arguments.length?this.each(e==null?EFt:(typeof e=="function"?FFt:PFt)(e)):this.node().innerHTML}function TFt(){this.nextSibling&&this.parentNode.appendChild(this)}function DFt(){return this.each(TFt)}function MFt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function IFt(){return this.each(MFt)}function kFt(e){var t=typeof e=="function"?e:Ate(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function BFt(){return null}function LFt(e,t){var r=typeof e=="function"?e:Ate(e),s=t==null?BFt:typeof t=="function"?t:P6(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),s.apply(this,arguments)||null)})}function HFt(){var e=this.parentNode;e&&e.removeChild(this)}function GFt(){return this.each(HFt)}function OFt(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function NFt(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function _Ft(e){return this.select(e?NFt:OFt)}function VFt(e){return arguments.length?this.property("__data__",e):this.node().__data__}function zFt(e){return function(t){e.call(this,t,this.__data__)}}function QFt(e){return e.trim().split(/^|\s+/).map(function(t){var r="",s=t.indexOf(".");return s>=0&&(r=t.slice(s+1),t=t.slice(0,s)),{type:t,name:r}})}function UFt(e){return function(){var t=this.__on;if(t){for(var r=0,s=-1,n=t.length,i;r<n;++r)i=t[r],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):t[++s]=i;++s?t.length=s:delete this.__on}}}function WFt(e,t,r){return function(){var s=this.__on,n,i=zFt(t);if(s){for(var o=0,a=s.length;o<a;++o)if((n=s[o]).type===e.type&&n.name===e.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=i,n.options=r),n.value=t;return}}this.addEventListener(e.type,i,r),n={type:e.type,name:e.name,value:t,listener:i,options:r},s?s.push(n):this.__on=[n]}}function jFt(e,t,r){var s=QFt(e+""),n,i=s.length,o;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,u;l<c;++l)for(n=0,u=a[l];n<i;++n)if((o=s[n]).type===u.type&&o.name===u.name)return u.value}return}for(a=t?WFt:UFt,n=0;n<i;++n)this.each(a(s[n],t,r));return this}function Pte(e,t,r){var s=yte(e),n=s.CustomEvent;typeof n=="function"?n=new n(t,r):(n=s.document.createEvent("Event"),r?(n.initEvent(t,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(t,!1,!1)),e.dispatchEvent(n)}function KFt(e,t){return function(){return Pte(this,e,t)}}function YFt(e,t){return function(){return Pte(this,e,t.apply(this,arguments))}}function ZFt(e,t){return this.each((typeof t=="function"?YFt:KFt)(e,t))}function*XFt(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var s=e[t],n=0,i=s.length,o;n<i;++n)(o=s[n])&&(yield o)}var $Ft=[null];function cd(e,t){this._groups=e,this._parents=t}function w3(){return new cd([[document.documentElement]],$Ft)}function JFt(){return this}cd.prototype=w3.prototype={constructor:cd,select:S2t,selectAll:F2t,selectChild:M2t,selectChildren:L2t,filter:H2t,data:z2t,enter:G2t,exit:U2t,join:W2t,merge:j2t,selection:JFt,order:K2t,sort:Y2t,call:X2t,nodes:$2t,node:J2t,size:q2t,empty:eFt,each:tFt,attr:lFt,style:hFt,property:AFt,classed:wFt,text:xFt,html:RFt,raise:DFt,lower:IFt,append:kFt,insert:LFt,remove:GFt,clone:_Ft,datum:VFt,on:jFt,dispatch:ZFt,[Symbol.iterator]:XFt};var qFt={value:()=>{}};function Fte(){for(var e=0,t=arguments.length,r={},s;e<t;++e){if(!(s=arguments[e]+"")||s in r||/[\s.]/.test(s))throw new Error("illegal type: "+s);r[s]=[]}return new R2(r)}function R2(e){this._=e}function eRt(e,t){return e.trim().split(/^|\s+/).map(function(r){var s="",n=r.indexOf(".");if(n>=0&&(s=r.slice(n+1),r=r.slice(0,n)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:s}})}R2.prototype=Fte.prototype={constructor:R2,on:function(e,t){var r=this._,s=eRt(e+"",r),n,i=-1,o=s.length;if(arguments.length<2){for(;++i<o;)if((n=(e=s[i]).type)&&(n=tRt(r[n],e.name)))return n;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<o;)if(n=(e=s[i]).type)r[n]=pQ(r[n],e.name,t);else if(t==null)for(n in r)r[n]=pQ(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new R2(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var r=new Array(n),s=0,n,i;s<n;++s)r[s]=arguments[s+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],s=0,n=i.length;s<n;++s)i[s].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var s=this._[e],n=0,i=s.length;n<i;++n)s[n].value.apply(t,r)}};function tRt(e,t){for(var r=0,s=e.length,n;r<s;++r)if((n=e[r]).name===t)return n.value}function pQ(e,t,r){for(var s=0,n=e.length;s<n;++s)if(e[s].name===t){e[s]=qFt,e=e.slice(0,s).concat(e.slice(s+1));break}return r!=null&&e.push({name:t,value:r}),e}var Ow=0,b1=0,i1=0,Rte=1e3,hR,S1,pR=0,Iv=0,cD=0,fx=typeof performance=="object"&&performance.now?performance:Date,Tte=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function R6(){return Iv||(Tte(rRt),Iv=fx.now()+cD)}function rRt(){Iv=0}function gR(){this._call=this._time=this._next=null}gR.prototype=Dte.prototype={constructor:gR,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?R6():+r)+(t==null?0:+t),!this._next&&S1!==this&&(S1?S1._next=this:hR=this,S1=this),this._call=e,this._time=r,t7()},stop:function(){this._call&&(this._call=null,this._time=1/0,t7())}};function Dte(e,t,r){var s=new gR;return s.restart(e,t,r),s}function sRt(){R6(),++Ow;for(var e=hR,t;e;)(t=Iv-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ow}function gQ(){Iv=(pR=fx.now())+cD,Ow=b1=0;try{sRt()}finally{Ow=0,iRt(),Iv=0}}function nRt(){var e=fx.now(),t=e-pR;t>Rte&&(cD-=t,pR=e)}function iRt(){for(var e,t=hR,r,s=1/0;t;)t._call?(s>t._time&&(s=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:hR=r);S1=e,t7(s)}function t7(e){if(!Ow){b1&&(b1=clearTimeout(b1));var t=e-Iv;t>24?(e<1/0&&(b1=setTimeout(gQ,e-fx.now()-cD)),i1&&(i1=clearInterval(i1))):(i1||(pR=fx.now(),i1=setInterval(nRt,Rte)),Ow=1,Tte(gQ))}}function fQ(e,t,r){var s=new gR;return t=t==null?0:+t,s.restart(n=>{s.stop(),e(n+t)},t,r),s}var oRt=Fte("start","end","cancel","interrupt"),aRt=[],Mte=0,AQ=1,r7=2,T2=3,mQ=4,s7=5,D2=6;function uD(e,t,r,s,n,i){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;lRt(e,r,{name:t,index:s,group:n,on:oRt,tween:aRt,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:Mte})}function T6(e,t){var r=wd(e,t);if(r.state>Mte)throw new Error("too late; already scheduled");return r}function rp(e,t){var r=wd(e,t);if(r.state>T2)throw new Error("too late; already running");return r}function wd(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function lRt(e,t,r){var s=e.__transition,n;s[t]=r,r.timer=Dte(i,0,r.time);function i(c){r.state=AQ,r.timer.restart(o,r.delay,r.time),r.delay<=c&&o(c-r.delay)}function o(c){var u,d,g,A;if(r.state!==AQ)return l();for(u in s)if(A=s[u],A.name===r.name){if(A.state===T2)return fQ(o);A.state===mQ?(A.state=D2,A.timer.stop(),A.on.call("interrupt",e,e.__data__,A.index,A.group),delete s[u]):+u<t&&(A.state=D2,A.timer.stop(),A.on.call("cancel",e,e.__data__,A.index,A.group),delete s[u])}if(fQ(function(){r.state===T2&&(r.state=mQ,r.timer.restart(a,r.delay,r.time),a(c))}),r.state=r7,r.on.call("start",e,e.__data__,r.index,r.group),r.state===r7){for(r.state=T2,n=new Array(g=r.tween.length),u=0,d=-1;u<g;++u)(A=r.tween[u].value.call(e,e.__data__,r.index,r.group))&&(n[++d]=A);n.length=d+1}}function a(c){for(var u=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(l),r.state=s7,1),d=-1,g=n.length;++d<g;)n[d].call(e,u);r.state===s7&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=D2,r.timer.stop(),delete s[t];for(var c in s)return;delete e.__transition}}function cRt(e,t){var r=e.__transition,s,n,i=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((s=r[o]).name!==t){i=!1;continue}n=s.state>r7&&s.state<s7,s.state=D2,s.timer.stop(),s.on.call(n?"interrupt":"cancel",e,e.__data__,s.index,s.group),delete r[o]}i&&delete e.__transition}}function uRt(e){return this.each(function(){cRt(this,e)})}function dRt(e,t){var r,s;return function(){var n=rp(this,e),i=n.tween;if(i!==r){s=r=i;for(var o=0,a=s.length;o<a;++o)if(s[o].name===t){s=s.slice(),s.splice(o,1);break}}n.tween=s}}function hRt(e,t,r){var s,n;if(typeof r!="function")throw new Error;return function(){var i=rp(this,e),o=i.tween;if(o!==s){n=(s=o).slice();for(var a={name:t,value:r},l=0,c=n.length;l<c;++l)if(n[l].name===t){n[l]=a;break}l===c&&n.push(a)}i.tween=n}}function pRt(e,t){var r=this._id;if(e+="",arguments.length<2){for(var s=wd(this.node(),r).tween,n=0,i=s.length,o;n<i;++n)if((o=s[n]).name===e)return o.value;return null}return this.each((t==null?dRt:hRt)(r,e,t))}function D6(e,t,r){var s=e._id;return e.each(function(){var n=rp(this,s);(n.value||(n.value={}))[t]=r.apply(this,arguments)}),function(n){return wd(n,s).value[t]}}function Ite(e,t){var r;return(typeof t=="number"?Gu:t instanceof Dv?rR:(r=Dv(t))?(t=r,rR):RJ)(e,t)}function gRt(e){return function(){this.removeAttribute(e)}}function fRt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ARt(e,t,r){var s,n=r+"",i;return function(){var o=this.getAttribute(e);return o===n?null:o===s?i:i=t(s=o,r)}}function mRt(e,t,r){var s,n=r+"",i;return function(){var o=this.getAttributeNS(e.space,e.local);return o===n?null:o===s?i:i=t(s=o,r)}}function vRt(e,t,r){var s,n,i;return function(){var o,a=r(this),l;return a==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=a+"",o===l?null:o===s&&l===n?i:(n=l,i=t(s=o,a)))}}function CRt(e,t,r){var s,n,i;return function(){var o,a=r(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=a+"",o===l?null:o===s&&l===n?i:(n=l,i=t(s=o,a)))}}function wRt(e,t){var r=lD(e),s=r==="transform"?O9e:Ite;return this.attrTween(e,typeof t=="function"?(r.local?CRt:vRt)(r,s,D6(this,"attr."+e,t)):t==null?(r.local?fRt:gRt)(r):(r.local?mRt:ARt)(r,s,t))}function yRt(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function bRt(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function SRt(e,t){var r,s;function n(){var i=t.apply(this,arguments);return i!==s&&(r=(s=i)&&bRt(e,i)),r}return n._value=t,n}function xRt(e,t){var r,s;function n(){var i=t.apply(this,arguments);return i!==s&&(r=(s=i)&&yRt(e,i)),r}return n._value=t,n}function ERt(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var s=lD(e);return this.tween(r,(s.local?SRt:xRt)(s,t))}function PRt(e,t){return function(){T6(this,e).delay=+t.apply(this,arguments)}}function FRt(e,t){return t=+t,function(){T6(this,e).delay=t}}function RRt(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?PRt:FRt)(t,e)):wd(this.node(),t).delay}function TRt(e,t){return function(){rp(this,e).duration=+t.apply(this,arguments)}}function DRt(e,t){return t=+t,function(){rp(this,e).duration=t}}function MRt(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?TRt:DRt)(t,e)):wd(this.node(),t).duration}function IRt(e,t){if(typeof t!="function")throw new Error;return function(){rp(this,e).ease=t}}function kRt(e){var t=this._id;return arguments.length?this.each(IRt(t,e)):wd(this.node(),t).ease}function BRt(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;rp(this,e).ease=r}}function LRt(e){if(typeof e!="function")throw new Error;return this.each(BRt(this._id,e))}function HRt(e){typeof e!="function"&&(e=vte(e));for(var t=this._groups,r=t.length,s=new Array(r),n=0;n<r;++n)for(var i=t[n],o=i.length,a=s[n]=[],l,c=0;c<o;++c)(l=i[c])&&e.call(l,l.__data__,c,i)&&a.push(l);return new yg(s,this._parents,this._name,this._id)}function GRt(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,s=t.length,n=r.length,i=Math.min(s,n),o=new Array(s),a=0;a<i;++a)for(var l=t[a],c=r[a],u=l.length,d=o[a]=new Array(u),g,A=0;A<u;++A)(g=l[A]||c[A])&&(d[A]=g);for(;a<s;++a)o[a]=t[a];return new yg(o,this._parents,this._name,this._id)}function ORt(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function NRt(e,t,r){var s,n,i=ORt(t)?T6:rp;return function(){var o=i(this,e),a=o.on;a!==s&&(n=(s=a).copy()).on(t,r),o.on=n}}function _Rt(e,t){var r=this._id;return arguments.length<2?wd(this.node(),r).on.on(e):this.each(NRt(r,e,t))}function VRt(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function zRt(){return this.on("end.remove",VRt(this._id))}function QRt(e){var t=this._name,r=this._id;typeof e!="function"&&(e=P6(e));for(var s=this._groups,n=s.length,i=new Array(n),o=0;o<n;++o)for(var a=s[o],l=a.length,c=i[o]=new Array(l),u,d,g=0;g<l;++g)(u=a[g])&&(d=e.call(u,u.__data__,g,a))&&("__data__"in u&&(d.__data__=u.__data__),c[g]=d,uD(c[g],t,r,g,c,wd(u,r)));return new yg(i,this._parents,t,r)}function URt(e){var t=this._name,r=this._id;typeof e!="function"&&(e=mte(e));for(var s=this._groups,n=s.length,i=[],o=[],a=0;a<n;++a)for(var l=s[a],c=l.length,u,d=0;d<c;++d)if(u=l[d]){for(var g=e.call(u,u.__data__,d,l),A,w=wd(u,r),v=0,b=g.length;v<b;++v)(A=g[v])&&uD(A,t,r,v,g,w);i.push(g),o.push(u)}return new yg(i,o,t,r)}var WRt=w3.prototype.constructor;function jRt(){return new WRt(this._groups,this._parents)}function KRt(e,t){var r,s,n;return function(){var i=Gw(this,e),o=(this.style.removeProperty(e),Gw(this,e));return i===o?null:i===r&&o===s?n:n=t(r=i,s=o)}}function kte(e){return function(){this.style.removeProperty(e)}}function YRt(e,t,r){var s,n=r+"",i;return function(){var o=Gw(this,e);return o===n?null:o===s?i:i=t(s=o,r)}}function ZRt(e,t,r){var s,n,i;return function(){var o=Gw(this,e),a=r(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),Gw(this,e))),o===l?null:o===s&&l===n?i:(n=l,i=t(s=o,a))}}function XRt(e,t){var r,s,n,i="style."+t,o="end."+i,a;return function(){var l=rp(this,e),c=l.on,u=l.value[i]==null?a||(a=kte(t)):void 0;(c!==r||n!==u)&&(s=(r=c).copy()).on(o,n=u),l.on=s}}function $Rt(e,t,r){var s=(e+="")=="transform"?G9e:Ite;return t==null?this.styleTween(e,KRt(e,s)).on("end.style."+e,kte(e)):typeof t=="function"?this.styleTween(e,ZRt(e,s,D6(this,"style."+e,t))).each(XRt(this._id,e)):this.styleTween(e,YRt(e,s,t),r).on("end.style."+e,null)}function JRt(e,t,r){return function(s){this.style.setProperty(e,t.call(this,s),r)}}function qRt(e,t,r){var s,n;function i(){var o=t.apply(this,arguments);return o!==n&&(s=(n=o)&&JRt(e,o,r)),s}return i._value=t,i}function eTt(e,t,r){var s="style."+(e+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(t==null)return this.tween(s,null);if(typeof t!="function")throw new Error;return this.tween(s,qRt(e,t,r??""))}function tTt(e){return function(){this.textContent=e}}function rTt(e){return function(){var t=e(this);this.textContent=t??""}}function sTt(e){return this.tween("text",typeof e=="function"?rTt(D6(this,"text",e)):tTt(e==null?"":e+""))}function nTt(e){return function(t){this.textContent=e.call(this,t)}}function iTt(e){var t,r;function s(){var n=e.apply(this,arguments);return n!==r&&(t=(r=n)&&nTt(n)),t}return s._value=e,s}function oTt(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,iTt(e))}function aTt(){for(var e=this._name,t=this._id,r=Bte(),s=this._groups,n=s.length,i=0;i<n;++i)for(var o=s[i],a=o.length,l,c=0;c<a;++c)if(l=o[c]){var u=wd(l,t);uD(l,e,r,c,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new yg(s,this._parents,e,r)}function lTt(){var e,t,r=this,s=r._id,n=r.size();return new Promise(function(i,o){var a={value:o},l={value:function(){--n===0&&i()}};r.each(function(){var c=rp(this,s),u=c.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),c.on=t}),n===0&&i()})}var cTt=0;function yg(e,t,r,s){this._groups=e,this._parents=t,this._name=r,this._id=s}function Bte(){return++cTt}var Yp=w3.prototype;yg.prototype={constructor:yg,select:QRt,selectAll:URt,selectChild:Yp.selectChild,selectChildren:Yp.selectChildren,filter:HRt,merge:GRt,selection:jRt,transition:aTt,call:Yp.call,nodes:Yp.nodes,node:Yp.node,size:Yp.size,empty:Yp.empty,each:Yp.each,on:_Rt,attr:wRt,attrTween:ERt,style:$Rt,styleTween:eTt,text:sTt,textTween:oTt,remove:zRt,tween:pRt,delay:RRt,duration:MRt,ease:kRt,easeVarying:LRt,end:lTt,[Symbol.iterator]:Yp[Symbol.iterator]};function uTt(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var dTt={time:null,delay:0,duration:250,ease:uTt};function hTt(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function pTt(e){var t,r;e instanceof yg?(t=e._id,e=e._name):(t=Bte(),(r=dTt).time=R6(),e=e==null?null:e+"");for(var s=this._groups,n=s.length,i=0;i<n;++i)for(var o=s[i],a=o.length,l,c=0;c<a;++c)(l=o[c])&&uD(l,e,t,c,o,r||hTt(l,t));return new yg(s,this._parents,e,t)}w3.prototype.interrupt=uRt;w3.prototype.transition=pTt;function x1(e,t,r){this.k=e,this.x=t,this.y=r}x1.prototype={constructor:x1,scale:function(e){return e===1?this:new x1(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new x1(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};x1.prototype;const M6="__d3fc-elements__",y3=e=>e[M6]||{},Lte=(e,t)=>void(e[M6]=t),gTt=e=>delete e[M6],fTt=e=>e.tagName==="D3FC-GROUP"?[e,...e.querySelectorAll("d3fc-canvas, d3fc-group, d3fc-svg")]:[e],ATt=e=>{const{width:t,height:r}=y3(e),s=e.useDevicePixelRatio&&window.devicePixelRatio!=null?window.devicePixelRatio:1,n=e.clientWidth*s,i=e.clientHeight*s,o=n!==t||i!==r,a=e.children[0];Lte(e,{pixelRatio:s,width:n,height:i,resized:o,child:a})};if(typeof CustomEvent!="function")throw new Error("d3fc-element depends on CustomEvent. Make sure that you load a polyfill in older browsers. See README.");const mTt=e=>{const t=y3(e),r=new CustomEvent("measure",{detail:t});e.dispatchEvent(r)},vTt=e=>{const t=y3(e),r=new CustomEvent("draw",{detail:t});e.dispatchEvent(r)},CTt=e=>{const t=e.map(fTt).reduce((r,s)=>r.concat(s));t.forEach(ATt),t.forEach(mTt),t.forEach(vTt)},Hte=e=>y3(e.ownerDocument).queue||[],wTt=(e,t)=>{let{requestId:r}=y3(e.ownerDocument);r==null&&(r=requestAnimationFrame(()=>{const s=Hte(e);CTt(s),yTt(e)})),Lte(e.ownerDocument,{queue:t,requestId:r})},yTt=e=>gTt(e.ownerDocument),vQ=(e,t)=>{let r=e;do if(r.parentNode===t)return!0;while(r=r.parentNode);return!1},I6=e=>{const t=Hte(e);if(t.indexOf(e)>-1||t.some(s=>vQ(e,s)))return;const r=t.filter(s=>!vQ(s,e));r.push(e),wTt(e,r)};if(typeof HTMLElement!="function")throw new Error("d3fc-element depends on Custom Elements (v1). Make sure that you load a polyfill in older browsers. See README.");const bTt=e=>{e.__measureListener__==null&&(e.__measureListener__=t=>e.setMeasurements(t.detail),e.addEventListener("measure",e.__measureListener__))},STt=e=>{e.__measureListener__!=null&&(e.removeEventListener("measure",e.__measureListener__),e.__measureListener__=null)},Gte=(e,t)=>class extends HTMLElement{static get observedAttributes(){return["use-device-pixel-ratio"]}attributeChangedCallback(r){switch(r){case"use-device-pixel-ratio":this.requestRedraw();break}}connectedCallback(){this.childNodes.length===0&&this.appendChild(e()),bTt(this)}disconnectedCallback(){STt(this)}setMeasurements({width:r,height:s}){const{childNodes:[n,...i]}=this;if(i.length>0)throw new Error("A d3fc-svg/canvas element must only contain a single svg/canvas element.");t(this,n,{width:r,height:s})}get useDevicePixelRatio(){return this.hasAttribute("use-device-pixel-ratio")&&this.getAttribute("use-device-pixel-ratio")!=="false"}set useDevicePixelRatio(r){r&&!this.useDevicePixelRatio?this.setAttribute("use-device-pixel-ratio",""):!r&&this.useDevicePixelRatio&&this.removeAttribute("use-device-pixel-ratio"),this.requestRedraw()}requestRedraw(){I6(this)}};class xTt extends Gte(()=>document.createElement("canvas"),(t,r,{width:s,height:n})=>{r.setAttribute("width",s),r.setAttribute("height",n),t.setWebglViewport&&r.getContext("webgl").viewport(0,0,s,n)}){get setWebglViewport(){return this.hasAttribute("set-webgl-viewport")&&this.getAttribute("set-webgl-viewport")!=="false"}set setWebglViewport(t){t&&!this.setWebglViewport?this.setAttribute("set-webgl-viewport",""):!t&&this.setWebglViewport&&this.removeAttribute("set-webgl-viewport"),this.requestRedraw()}}const GI=e=>{e.autoResize?ETt(e):Ote(e)},ETt=e=>{e.__autoResizeListener__==null&&(e.__autoResizeListener__=()=>I6(e),addEventListener("resize",e.__autoResizeListener__))},Ote=e=>{e.__autoResizeListener__!=null&&(removeEventListener("resize",e.__autoResizeListener__),e.__autoResizeListener__=null)};class PTt extends HTMLElement{connectedCallback(){GI(this)}disconnectedCallback(){Ote(this)}requestRedraw(){I6(this)}get autoResize(){return this.hasAttribute("auto-resize")&&this.getAttribute("auto-resize")!=="false"}set autoResize(t){t&&!this.autoResize?this.setAttribute("auto-resize",""):!t&&this.autoResize&&this.removeAttribute("auto-resize"),GI(this)}static get observedAttributes(){return["auto-resize"]}attributeChangedCallback(t){switch(t){case"auto-resize":GI(this);break}}}const FTt=Gte(()=>document.createElementNS("http://www.w3.org/2000/svg","svg"),(e,t,{width:r,height:s})=>{t.setAttribute("viewBox",`0 0 ${r} ${s}`)}),CQ="d3fc-canvas,d3fc-svg{position:relative;display:block}d3fc-canvas>canvas,d3fc-svg>svg{position:absolute;height:100%;width:100%}d3fc-svg>svg{overflow:visible}",J1=document.createElement("style");J1.setAttribute("type","text/css");document.querySelector("head").appendChild(J1);J1.styleSheet?J1.styleSheet.cssText+=CQ:J1.textContent+=CQ;if(typeof customElements!="object"||typeof customElements.define!="function")throw new Error("d3fc-element depends on Custom Elements (v1). Make sure that you load a polyfill in older browsers. See README.");const n7=[],k6=(e,t)=>{customElements.get(e)?n7.push(e):customElements.define(e,t)};k6("d3fc-canvas",xTt);k6("d3fc-group",PTt);k6("d3fc-svg",FTt);n7.length>0&&console.warn(`The d3fc components "${n7.join(", ")}" is/are already registered on window. Be aware that this can create compatibility issues if different versions are used.`);const wQ=`d3fc-group.cartesian-chart{width:100%;height:100%;overflow:hidden;display:grid;display:-ms-grid;grid-template-columns:minmax(1em,max-content) auto 1fr auto minmax(1em,max-content);-ms-grid-columns:minmax(1em,max-content) auto 1fr auto minmax(1em,max-content);grid-template-rows:minmax(1em,max-content) auto 1fr auto minmax(1em,max-content);-ms-grid-rows:minmax(1em,max-content) auto 1fr auto minmax(1em,max-content);}
13589
+ */Zv.isPrimitive;BT.primitives;var i2t=vPt.factory;i2t(0,1);function o2t(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return gte(this.cover(t,r),t,r,e)}function gte(e,t,r,s){if(isNaN(t)||isNaN(r))return e;var n,i=e._root,o={data:s},a=e._x0,l=e._y0,c=e._x1,u=e._y1,d,g,A,w,v,b,S,P;if(!i)return e._root=o,e;for(;i.length;)if((v=t>=(d=(a+c)/2))?a=d:c=d,(b=r>=(g=(l+u)/2))?l=g:u=g,n=i,!(i=i[S=b<<1|v]))return n[S]=o,e;if(A=+e._x.call(null,i.data),w=+e._y.call(null,i.data),t===A&&r===w)return o.next=i,n?n[S]=o:e._root=o,e;do n=n?n[S]=new Array(4):e._root=new Array(4),(v=t>=(d=(a+c)/2))?a=d:c=d,(b=r>=(g=(l+u)/2))?l=g:u=g;while((S=b<<1|v)===(P=(w>=g)<<1|A>=d));return n[P]=i,n[S]=o,e}function a2t(e){var t,r,s=e.length,n,i,o=new Array(s),a=new Array(s),l=1/0,c=1/0,u=-1/0,d=-1/0;for(r=0;r<s;++r)isNaN(n=+this._x.call(null,t=e[r]))||isNaN(i=+this._y.call(null,t))||(o[r]=n,a[r]=i,n<l&&(l=n),n>u&&(u=n),i<c&&(c=i),i>d&&(d=i));if(l>u||c>d)return this;for(this.cover(l,c).cover(u,d),r=0;r<s;++r)gte(this,o[r],a[r],e[r]);return this}function l2t(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,s=this._y0,n=this._x1,i=this._y1;if(isNaN(r))n=(r=Math.floor(e))+1,i=(s=Math.floor(t))+1;else{for(var o=n-r||1,a=this._root,l,c;r>e||e>=n||s>t||t>=i;)switch(c=(t<s)<<1|e<r,l=new Array(4),l[c]=a,a=l,o*=2,c){case 0:n=r+o,i=s+o;break;case 1:r=n-o,i=s+o;break;case 2:n=r+o,s=i-o;break;case 3:r=n-o,s=i-o;break}this._root&&this._root.length&&(this._root=a)}return this._x0=r,this._y0=s,this._x1=n,this._y1=i,this}function c2t(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function u2t(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function ua(e,t,r,s,n){this.node=e,this.x0=t,this.y0=r,this.x1=s,this.y1=n}function d2t(e,t,r){var s,n=this._x0,i=this._y0,o,a,l,c,u=this._x1,d=this._y1,g=[],A=this._root,w,v;for(A&&g.push(new ua(A,n,i,u,d)),r==null?r=1/0:(n=e-r,i=t-r,u=e+r,d=t+r,r*=r);w=g.pop();)if(!(!(A=w.node)||(o=w.x0)>u||(a=w.y0)>d||(l=w.x1)<n||(c=w.y1)<i))if(A.length){var b=(o+l)/2,S=(a+c)/2;g.push(new ua(A[3],b,S,l,c),new ua(A[2],o,S,b,c),new ua(A[1],b,a,l,S),new ua(A[0],o,a,b,S)),(v=(t>=S)<<1|e>=b)&&(w=g[g.length-1],g[g.length-1]=g[g.length-1-v],g[g.length-1-v]=w)}else{var P=e-+this._x.call(null,A.data),F=t-+this._y.call(null,A.data),T=P*P+F*F;if(T<r){var D=Math.sqrt(r=T);n=e-D,i=t-D,u=e+D,d=t+D,s=A.data}}return s}function h2t(e){if(isNaN(u=+this._x.call(null,e))||isNaN(d=+this._y.call(null,e)))return this;var t,r=this._root,s,n,i,o=this._x0,a=this._y0,l=this._x1,c=this._y1,u,d,g,A,w,v,b,S;if(!r)return this;if(r.length)for(;;){if((w=u>=(g=(o+l)/2))?o=g:l=g,(v=d>=(A=(a+c)/2))?a=A:c=A,t=r,!(r=r[b=v<<1|w]))return this;if(!r.length)break;(t[b+1&3]||t[b+2&3]||t[b+3&3])&&(s=t,S=b)}for(;r.data!==e;)if(n=r,!(r=r.next))return this;return(i=r.next)&&delete r.next,n?(i?n.next=i:delete n.next,this):t?(i?t[b]=i:delete t[b],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(s?s[S]=r:this._root=r),this):(this._root=i,this)}function p2t(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function g2t(){return this._root}function f2t(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function A2t(e){var t=[],r,s=this._root,n,i,o,a,l;for(s&&t.push(new ua(s,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(s=r.node,i=r.x0,o=r.y0,a=r.x1,l=r.y1)&&s.length){var c=(i+a)/2,u=(o+l)/2;(n=s[3])&&t.push(new ua(n,c,u,a,l)),(n=s[2])&&t.push(new ua(n,i,u,c,l)),(n=s[1])&&t.push(new ua(n,c,o,a,u)),(n=s[0])&&t.push(new ua(n,i,o,c,u))}return this}function m2t(e){var t=[],r=[],s;for(this._root&&t.push(new ua(this._root,this._x0,this._y0,this._x1,this._y1));s=t.pop();){var n=s.node;if(n.length){var i,o=s.x0,a=s.y0,l=s.x1,c=s.y1,u=(o+l)/2,d=(a+c)/2;(i=n[0])&&t.push(new ua(i,o,a,u,d)),(i=n[1])&&t.push(new ua(i,u,a,l,d)),(i=n[2])&&t.push(new ua(i,o,d,u,c)),(i=n[3])&&t.push(new ua(i,u,d,l,c))}r.push(s)}for(;s=r.pop();)e(s.node,s.x0,s.y0,s.x1,s.y1);return this}function v2t(e){return arguments.length?(this._x=e,this):this._x}function C2t(e){return arguments.length?(this._y=e,this):this._y}function fte(e,t,r,s,n,i){this._x=e,this._y=t,this._x0=r,this._y0=s,this._x1=n,this._y1=i,this._root=void 0}function dQ(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var xa=fte.prototype;xa.copy=function(){var e=new fte(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,s;if(!t)return e;if(!t.length)return e._root=dQ(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var n=0;n<4;++n)(s=t.source[n])&&(s.length?r.push({source:s,target:t.target[n]=new Array(4)}):t.target[n]=dQ(s));return e};xa.add=o2t;xa.addAll=a2t;xa.cover=l2t;xa.data=c2t;xa.extent=u2t;xa.find=d2t;xa.remove=h2t;xa.removeAll=p2t;xa.root=g2t;xa.size=f2t;xa.visit=A2t;xa.visitAfter=m2t;xa.x=v2t;xa.y=C2t;var e7="http://www.w3.org/1999/xhtml";const hQ={svg:"http://www.w3.org/2000/svg",xhtml:e7,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function lD(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),hQ.hasOwnProperty(t)?{space:hQ[t],local:e}:e}function w2t(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===e7&&t.documentElement.namespaceURI===e7?t.createElement(e):t.createElementNS(r,e)}}function y2t(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ate(e){var t=lD(e);return(t.local?y2t:w2t)(t)}function b2t(){}function P6(e){return e==null?b2t:function(){return this.querySelector(e)}}function S2t(e){typeof e!="function"&&(e=P6(e));for(var t=this._groups,r=t.length,s=new Array(r),n=0;n<r;++n)for(var i=t[n],o=i.length,a=s[n]=new Array(o),l,c,u=0;u<o;++u)(l=i[u])&&(c=e.call(l,l.__data__,u,i))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new cd(s,this._parents)}function x2t(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function E2t(){return[]}function mte(e){return e==null?E2t:function(){return this.querySelectorAll(e)}}function P2t(e){return function(){return x2t(e.apply(this,arguments))}}function F2t(e){typeof e=="function"?e=P2t(e):e=mte(e);for(var t=this._groups,r=t.length,s=[],n=[],i=0;i<r;++i)for(var o=t[i],a=o.length,l,c=0;c<a;++c)(l=o[c])&&(s.push(e.call(l,l.__data__,c,o)),n.push(l));return new cd(s,n)}function vte(e){return function(){return this.matches(e)}}function Cte(e){return function(t){return t.matches(e)}}var R2t=Array.prototype.find;function T2t(e){return function(){return R2t.call(this.children,e)}}function D2t(){return this.firstElementChild}function M2t(e){return this.select(e==null?D2t:T2t(typeof e=="function"?e:Cte(e)))}var I2t=Array.prototype.filter;function k2t(){return Array.from(this.children)}function B2t(e){return function(){return I2t.call(this.children,e)}}function L2t(e){return this.selectAll(e==null?k2t:B2t(typeof e=="function"?e:Cte(e)))}function H2t(e){typeof e!="function"&&(e=vte(e));for(var t=this._groups,r=t.length,s=new Array(r),n=0;n<r;++n)for(var i=t[n],o=i.length,a=s[n]=[],l,c=0;c<o;++c)(l=i[c])&&e.call(l,l.__data__,c,i)&&a.push(l);return new cd(s,this._parents)}function wte(e){return new Array(e.length)}function G2t(){return new cd(this._enter||this._groups.map(wte),this._parents)}function dR(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}dR.prototype={constructor:dR,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function O2t(e){return function(){return e}}function N2t(e,t,r,s,n,i){for(var o=0,a,l=t.length,c=i.length;o<c;++o)(a=t[o])?(a.__data__=i[o],s[o]=a):r[o]=new dR(e,i[o]);for(;o<l;++o)(a=t[o])&&(n[o]=a)}function _2t(e,t,r,s,n,i,o){var a,l,c=new Map,u=t.length,d=i.length,g=new Array(u),A;for(a=0;a<u;++a)(l=t[a])&&(g[a]=A=o.call(l,l.__data__,a,t)+"",c.has(A)?n[a]=l:c.set(A,l));for(a=0;a<d;++a)A=o.call(e,i[a],a,i)+"",(l=c.get(A))?(s[a]=l,l.__data__=i[a],c.delete(A)):r[a]=new dR(e,i[a]);for(a=0;a<u;++a)(l=t[a])&&c.get(g[a])===l&&(n[a]=l)}function V2t(e){return e.__data__}function z2t(e,t){if(!arguments.length)return Array.from(this,V2t);var r=t?_2t:N2t,s=this._parents,n=this._groups;typeof e!="function"&&(e=O2t(e));for(var i=n.length,o=new Array(i),a=new Array(i),l=new Array(i),c=0;c<i;++c){var u=s[c],d=n[c],g=d.length,A=Q2t(e.call(u,u&&u.__data__,c,s)),w=A.length,v=a[c]=new Array(w),b=o[c]=new Array(w),S=l[c]=new Array(g);r(u,d,v,b,S,A,t);for(var P=0,F=0,T,D;P<w;++P)if(T=v[P]){for(P>=F&&(F=P+1);!(D=b[F])&&++F<w;);T._next=D||null}}return o=new cd(o,s),o._enter=a,o._exit=l,o}function Q2t(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function U2t(){return new cd(this._exit||this._groups.map(wte),this._parents)}function W2t(e,t,r){var s=this.enter(),n=this,i=this.exit();return typeof e=="function"?(s=e(s),s&&(s=s.selection())):s=s.append(e+""),t!=null&&(n=t(n),n&&(n=n.selection())),r==null?i.remove():r(i),s&&n?s.merge(n).order():n}function j2t(e){for(var t=e.selection?e.selection():e,r=this._groups,s=t._groups,n=r.length,i=s.length,o=Math.min(n,i),a=new Array(n),l=0;l<o;++l)for(var c=r[l],u=s[l],d=c.length,g=a[l]=new Array(d),A,w=0;w<d;++w)(A=c[w]||u[w])&&(g[w]=A);for(;l<n;++l)a[l]=r[l];return new cd(a,this._parents)}function K2t(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var s=e[t],n=s.length-1,i=s[n],o;--n>=0;)(o=s[n])&&(i&&o.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(o,i),i=o);return this}function Y2t(e){e||(e=Z2t);function t(d,g){return d&&g?e(d.__data__,g.__data__):!d-!g}for(var r=this._groups,s=r.length,n=new Array(s),i=0;i<s;++i){for(var o=r[i],a=o.length,l=n[i]=new Array(a),c,u=0;u<a;++u)(c=o[u])&&(l[u]=c);l.sort(t)}return new cd(n,this._parents).order()}function Z2t(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function X2t(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function $2t(){return Array.from(this)}function J2t(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var s=e[t],n=0,i=s.length;n<i;++n){var o=s[n];if(o)return o}return null}function q2t(){let e=0;for(const t of this)++e;return e}function eFt(){return!this.node()}function tFt(e){for(var t=this._groups,r=0,s=t.length;r<s;++r)for(var n=t[r],i=0,o=n.length,a;i<o;++i)(a=n[i])&&e.call(a,a.__data__,i,n);return this}function rFt(e){return function(){this.removeAttribute(e)}}function sFt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function nFt(e,t){return function(){this.setAttribute(e,t)}}function iFt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function oFt(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function aFt(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function lFt(e,t){var r=lD(e);if(arguments.length<2){var s=this.node();return r.local?s.getAttributeNS(r.space,r.local):s.getAttribute(r)}return this.each((t==null?r.local?sFt:rFt:typeof t=="function"?r.local?aFt:oFt:r.local?iFt:nFt)(r,t))}function yte(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function cFt(e){return function(){this.style.removeProperty(e)}}function uFt(e,t,r){return function(){this.style.setProperty(e,t,r)}}function dFt(e,t,r){return function(){var s=t.apply(this,arguments);s==null?this.style.removeProperty(e):this.style.setProperty(e,s,r)}}function hFt(e,t,r){return arguments.length>1?this.each((t==null?cFt:typeof t=="function"?dFt:uFt)(e,t,r??"")):Gw(this.node(),e)}function Gw(e,t){return e.style.getPropertyValue(t)||yte(e).getComputedStyle(e,null).getPropertyValue(t)}function pFt(e){return function(){delete this[e]}}function gFt(e,t){return function(){this[e]=t}}function fFt(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function AFt(e,t){return arguments.length>1?this.each((t==null?pFt:typeof t=="function"?fFt:gFt)(e,t)):this.node()[e]}function bte(e){return e.trim().split(/^|\s+/)}function F6(e){return e.classList||new Ste(e)}function Ste(e){this._node=e,this._names=bte(e.getAttribute("class")||"")}Ste.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function xte(e,t){for(var r=F6(e),s=-1,n=t.length;++s<n;)r.add(t[s])}function Ete(e,t){for(var r=F6(e),s=-1,n=t.length;++s<n;)r.remove(t[s])}function mFt(e){return function(){xte(this,e)}}function vFt(e){return function(){Ete(this,e)}}function CFt(e,t){return function(){(t.apply(this,arguments)?xte:Ete)(this,e)}}function wFt(e,t){var r=bte(e+"");if(arguments.length<2){for(var s=F6(this.node()),n=-1,i=r.length;++n<i;)if(!s.contains(r[n]))return!1;return!0}return this.each((typeof t=="function"?CFt:t?mFt:vFt)(r,t))}function yFt(){this.textContent=""}function bFt(e){return function(){this.textContent=e}}function SFt(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function xFt(e){return arguments.length?this.each(e==null?yFt:(typeof e=="function"?SFt:bFt)(e)):this.node().textContent}function EFt(){this.innerHTML=""}function PFt(e){return function(){this.innerHTML=e}}function FFt(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function RFt(e){return arguments.length?this.each(e==null?EFt:(typeof e=="function"?FFt:PFt)(e)):this.node().innerHTML}function TFt(){this.nextSibling&&this.parentNode.appendChild(this)}function DFt(){return this.each(TFt)}function MFt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function IFt(){return this.each(MFt)}function kFt(e){var t=typeof e=="function"?e:Ate(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function BFt(){return null}function LFt(e,t){var r=typeof e=="function"?e:Ate(e),s=t==null?BFt:typeof t=="function"?t:P6(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),s.apply(this,arguments)||null)})}function HFt(){var e=this.parentNode;e&&e.removeChild(this)}function GFt(){return this.each(HFt)}function OFt(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function NFt(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function _Ft(e){return this.select(e?NFt:OFt)}function VFt(e){return arguments.length?this.property("__data__",e):this.node().__data__}function zFt(e){return function(t){e.call(this,t,this.__data__)}}function QFt(e){return e.trim().split(/^|\s+/).map(function(t){var r="",s=t.indexOf(".");return s>=0&&(r=t.slice(s+1),t=t.slice(0,s)),{type:t,name:r}})}function UFt(e){return function(){var t=this.__on;if(t){for(var r=0,s=-1,n=t.length,i;r<n;++r)i=t[r],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):t[++s]=i;++s?t.length=s:delete this.__on}}}function WFt(e,t,r){return function(){var s=this.__on,n,i=zFt(t);if(s){for(var o=0,a=s.length;o<a;++o)if((n=s[o]).type===e.type&&n.name===e.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=i,n.options=r),n.value=t;return}}this.addEventListener(e.type,i,r),n={type:e.type,name:e.name,value:t,listener:i,options:r},s?s.push(n):this.__on=[n]}}function jFt(e,t,r){var s=QFt(e+""),n,i=s.length,o;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,u;l<c;++l)for(n=0,u=a[l];n<i;++n)if((o=s[n]).type===u.type&&o.name===u.name)return u.value}return}for(a=t?WFt:UFt,n=0;n<i;++n)this.each(a(s[n],t,r));return this}function Pte(e,t,r){var s=yte(e),n=s.CustomEvent;typeof n=="function"?n=new n(t,r):(n=s.document.createEvent("Event"),r?(n.initEvent(t,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(t,!1,!1)),e.dispatchEvent(n)}function KFt(e,t){return function(){return Pte(this,e,t)}}function YFt(e,t){return function(){return Pte(this,e,t.apply(this,arguments))}}function ZFt(e,t){return this.each((typeof t=="function"?YFt:KFt)(e,t))}function*XFt(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var s=e[t],n=0,i=s.length,o;n<i;++n)(o=s[n])&&(yield o)}var $Ft=[null];function cd(e,t){this._groups=e,this._parents=t}function w3(){return new cd([[document.documentElement]],$Ft)}function JFt(){return this}cd.prototype=w3.prototype={constructor:cd,select:S2t,selectAll:F2t,selectChild:M2t,selectChildren:L2t,filter:H2t,data:z2t,enter:G2t,exit:U2t,join:W2t,merge:j2t,selection:JFt,order:K2t,sort:Y2t,call:X2t,nodes:$2t,node:J2t,size:q2t,empty:eFt,each:tFt,attr:lFt,style:hFt,property:AFt,classed:wFt,text:xFt,html:RFt,raise:DFt,lower:IFt,append:kFt,insert:LFt,remove:GFt,clone:_Ft,datum:VFt,on:jFt,dispatch:ZFt,[Symbol.iterator]:XFt};var qFt={value:()=>{}};function Fte(){for(var e=0,t=arguments.length,r={},s;e<t;++e){if(!(s=arguments[e]+"")||s in r||/[\s.]/.test(s))throw new Error("illegal type: "+s);r[s]=[]}return new R2(r)}function R2(e){this._=e}function eRt(e,t){return e.trim().split(/^|\s+/).map(function(r){var s="",n=r.indexOf(".");if(n>=0&&(s=r.slice(n+1),r=r.slice(0,n)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:s}})}R2.prototype=Fte.prototype={constructor:R2,on:function(e,t){var r=this._,s=eRt(e+"",r),n,i=-1,o=s.length;if(arguments.length<2){for(;++i<o;)if((n=(e=s[i]).type)&&(n=tRt(r[n],e.name)))return n;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<o;)if(n=(e=s[i]).type)r[n]=pQ(r[n],e.name,t);else if(t==null)for(n in r)r[n]=pQ(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new R2(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var r=new Array(n),s=0,n,i;s<n;++s)r[s]=arguments[s+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],s=0,n=i.length;s<n;++s)i[s].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var s=this._[e],n=0,i=s.length;n<i;++n)s[n].value.apply(t,r)}};function tRt(e,t){for(var r=0,s=e.length,n;r<s;++r)if((n=e[r]).name===t)return n.value}function pQ(e,t,r){for(var s=0,n=e.length;s<n;++s)if(e[s].name===t){e[s]=qFt,e=e.slice(0,s).concat(e.slice(s+1));break}return r!=null&&e.push({name:t,value:r}),e}var Ow=0,b1=0,i1=0,Rte=1e3,hR,S1,pR=0,Iv=0,cD=0,fx=typeof performance=="object"&&performance.now?performance:Date,Tte=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function R6(){return Iv||(Tte(rRt),Iv=fx.now()+cD)}function rRt(){Iv=0}function gR(){this._call=this._time=this._next=null}gR.prototype=Dte.prototype={constructor:gR,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?R6():+r)+(t==null?0:+t),!this._next&&S1!==this&&(S1?S1._next=this:hR=this,S1=this),this._call=e,this._time=r,t7()},stop:function(){this._call&&(this._call=null,this._time=1/0,t7())}};function Dte(e,t,r){var s=new gR;return s.restart(e,t,r),s}function sRt(){R6(),++Ow;for(var e=hR,t;e;)(t=Iv-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ow}function gQ(){Iv=(pR=fx.now())+cD,Ow=b1=0;try{sRt()}finally{Ow=0,iRt(),Iv=0}}function nRt(){var e=fx.now(),t=e-pR;t>Rte&&(cD-=t,pR=e)}function iRt(){for(var e,t=hR,r,s=1/0;t;)t._call?(s>t._time&&(s=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:hR=r);S1=e,t7(s)}function t7(e){if(!Ow){b1&&(b1=clearTimeout(b1));var t=e-Iv;t>24?(e<1/0&&(b1=setTimeout(gQ,e-fx.now()-cD)),i1&&(i1=clearInterval(i1))):(i1||(pR=fx.now(),i1=setInterval(nRt,Rte)),Ow=1,Tte(gQ))}}function fQ(e,t,r){var s=new gR;return t=t==null?0:+t,s.restart(n=>{s.stop(),e(n+t)},t,r),s}var oRt=Fte("start","end","cancel","interrupt"),aRt=[],Mte=0,AQ=1,r7=2,T2=3,mQ=4,s7=5,D2=6;function uD(e,t,r,s,n,i){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;lRt(e,r,{name:t,index:s,group:n,on:oRt,tween:aRt,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:Mte})}function T6(e,t){var r=wd(e,t);if(r.state>Mte)throw new Error("too late; already scheduled");return r}function rp(e,t){var r=wd(e,t);if(r.state>T2)throw new Error("too late; already running");return r}function wd(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function lRt(e,t,r){var s=e.__transition,n;s[t]=r,r.timer=Dte(i,0,r.time);function i(c){r.state=AQ,r.timer.restart(o,r.delay,r.time),r.delay<=c&&o(c-r.delay)}function o(c){var u,d,g,A;if(r.state!==AQ)return l();for(u in s)if(A=s[u],A.name===r.name){if(A.state===T2)return fQ(o);A.state===mQ?(A.state=D2,A.timer.stop(),A.on.call("interrupt",e,e.__data__,A.index,A.group),delete s[u]):+u<t&&(A.state=D2,A.timer.stop(),A.on.call("cancel",e,e.__data__,A.index,A.group),delete s[u])}if(fQ(function(){r.state===T2&&(r.state=mQ,r.timer.restart(a,r.delay,r.time),a(c))}),r.state=r7,r.on.call("start",e,e.__data__,r.index,r.group),r.state===r7){for(r.state=T2,n=new Array(g=r.tween.length),u=0,d=-1;u<g;++u)(A=r.tween[u].value.call(e,e.__data__,r.index,r.group))&&(n[++d]=A);n.length=d+1}}function a(c){for(var u=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(l),r.state=s7,1),d=-1,g=n.length;++d<g;)n[d].call(e,u);r.state===s7&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=D2,r.timer.stop(),delete s[t];for(var c in s)return;delete e.__transition}}function cRt(e,t){var r=e.__transition,s,n,i=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((s=r[o]).name!==t){i=!1;continue}n=s.state>r7&&s.state<s7,s.state=D2,s.timer.stop(),s.on.call(n?"interrupt":"cancel",e,e.__data__,s.index,s.group),delete r[o]}i&&delete e.__transition}}function uRt(e){return this.each(function(){cRt(this,e)})}function dRt(e,t){var r,s;return function(){var n=rp(this,e),i=n.tween;if(i!==r){s=r=i;for(var o=0,a=s.length;o<a;++o)if(s[o].name===t){s=s.slice(),s.splice(o,1);break}}n.tween=s}}function hRt(e,t,r){var s,n;if(typeof r!="function")throw new Error;return function(){var i=rp(this,e),o=i.tween;if(o!==s){n=(s=o).slice();for(var a={name:t,value:r},l=0,c=n.length;l<c;++l)if(n[l].name===t){n[l]=a;break}l===c&&n.push(a)}i.tween=n}}function pRt(e,t){var r=this._id;if(e+="",arguments.length<2){for(var s=wd(this.node(),r).tween,n=0,i=s.length,o;n<i;++n)if((o=s[n]).name===e)return o.value;return null}return this.each((t==null?dRt:hRt)(r,e,t))}function D6(e,t,r){var s=e._id;return e.each(function(){var n=rp(this,s);(n.value||(n.value={}))[t]=r.apply(this,arguments)}),function(n){return wd(n,s).value[t]}}function Ite(e,t){var r;return(typeof t=="number"?Gu:t instanceof Dv?sR:(r=Dv(t))?(t=r,sR):DJ)(e,t)}function gRt(e){return function(){this.removeAttribute(e)}}function fRt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ARt(e,t,r){var s,n=r+"",i;return function(){var o=this.getAttribute(e);return o===n?null:o===s?i:i=t(s=o,r)}}function mRt(e,t,r){var s,n=r+"",i;return function(){var o=this.getAttributeNS(e.space,e.local);return o===n?null:o===s?i:i=t(s=o,r)}}function vRt(e,t,r){var s,n,i;return function(){var o,a=r(this),l;return a==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=a+"",o===l?null:o===s&&l===n?i:(n=l,i=t(s=o,a)))}}function CRt(e,t,r){var s,n,i;return function(){var o,a=r(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=a+"",o===l?null:o===s&&l===n?i:(n=l,i=t(s=o,a)))}}function wRt(e,t){var r=lD(e),s=r==="transform"?Z9e:Ite;return this.attrTween(e,typeof t=="function"?(r.local?CRt:vRt)(r,s,D6(this,"attr."+e,t)):t==null?(r.local?fRt:gRt)(r):(r.local?mRt:ARt)(r,s,t))}function yRt(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function bRt(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function SRt(e,t){var r,s;function n(){var i=t.apply(this,arguments);return i!==s&&(r=(s=i)&&bRt(e,i)),r}return n._value=t,n}function xRt(e,t){var r,s;function n(){var i=t.apply(this,arguments);return i!==s&&(r=(s=i)&&yRt(e,i)),r}return n._value=t,n}function ERt(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var s=lD(e);return this.tween(r,(s.local?SRt:xRt)(s,t))}function PRt(e,t){return function(){T6(this,e).delay=+t.apply(this,arguments)}}function FRt(e,t){return t=+t,function(){T6(this,e).delay=t}}function RRt(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?PRt:FRt)(t,e)):wd(this.node(),t).delay}function TRt(e,t){return function(){rp(this,e).duration=+t.apply(this,arguments)}}function DRt(e,t){return t=+t,function(){rp(this,e).duration=t}}function MRt(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?TRt:DRt)(t,e)):wd(this.node(),t).duration}function IRt(e,t){if(typeof t!="function")throw new Error;return function(){rp(this,e).ease=t}}function kRt(e){var t=this._id;return arguments.length?this.each(IRt(t,e)):wd(this.node(),t).ease}function BRt(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;rp(this,e).ease=r}}function LRt(e){if(typeof e!="function")throw new Error;return this.each(BRt(this._id,e))}function HRt(e){typeof e!="function"&&(e=vte(e));for(var t=this._groups,r=t.length,s=new Array(r),n=0;n<r;++n)for(var i=t[n],o=i.length,a=s[n]=[],l,c=0;c<o;++c)(l=i[c])&&e.call(l,l.__data__,c,i)&&a.push(l);return new yg(s,this._parents,this._name,this._id)}function GRt(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,s=t.length,n=r.length,i=Math.min(s,n),o=new Array(s),a=0;a<i;++a)for(var l=t[a],c=r[a],u=l.length,d=o[a]=new Array(u),g,A=0;A<u;++A)(g=l[A]||c[A])&&(d[A]=g);for(;a<s;++a)o[a]=t[a];return new yg(o,this._parents,this._name,this._id)}function ORt(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function NRt(e,t,r){var s,n,i=ORt(t)?T6:rp;return function(){var o=i(this,e),a=o.on;a!==s&&(n=(s=a).copy()).on(t,r),o.on=n}}function _Rt(e,t){var r=this._id;return arguments.length<2?wd(this.node(),r).on.on(e):this.each(NRt(r,e,t))}function VRt(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function zRt(){return this.on("end.remove",VRt(this._id))}function QRt(e){var t=this._name,r=this._id;typeof e!="function"&&(e=P6(e));for(var s=this._groups,n=s.length,i=new Array(n),o=0;o<n;++o)for(var a=s[o],l=a.length,c=i[o]=new Array(l),u,d,g=0;g<l;++g)(u=a[g])&&(d=e.call(u,u.__data__,g,a))&&("__data__"in u&&(d.__data__=u.__data__),c[g]=d,uD(c[g],t,r,g,c,wd(u,r)));return new yg(i,this._parents,t,r)}function URt(e){var t=this._name,r=this._id;typeof e!="function"&&(e=mte(e));for(var s=this._groups,n=s.length,i=[],o=[],a=0;a<n;++a)for(var l=s[a],c=l.length,u,d=0;d<c;++d)if(u=l[d]){for(var g=e.call(u,u.__data__,d,l),A,w=wd(u,r),v=0,b=g.length;v<b;++v)(A=g[v])&&uD(A,t,r,v,g,w);i.push(g),o.push(u)}return new yg(i,o,t,r)}var WRt=w3.prototype.constructor;function jRt(){return new WRt(this._groups,this._parents)}function KRt(e,t){var r,s,n;return function(){var i=Gw(this,e),o=(this.style.removeProperty(e),Gw(this,e));return i===o?null:i===r&&o===s?n:n=t(r=i,s=o)}}function kte(e){return function(){this.style.removeProperty(e)}}function YRt(e,t,r){var s,n=r+"",i;return function(){var o=Gw(this,e);return o===n?null:o===s?i:i=t(s=o,r)}}function ZRt(e,t,r){var s,n,i;return function(){var o=Gw(this,e),a=r(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),Gw(this,e))),o===l?null:o===s&&l===n?i:(n=l,i=t(s=o,a))}}function XRt(e,t){var r,s,n,i="style."+t,o="end."+i,a;return function(){var l=rp(this,e),c=l.on,u=l.value[i]==null?a||(a=kte(t)):void 0;(c!==r||n!==u)&&(s=(r=c).copy()).on(o,n=u),l.on=s}}function $Rt(e,t,r){var s=(e+="")=="transform"?Y9e:Ite;return t==null?this.styleTween(e,KRt(e,s)).on("end.style."+e,kte(e)):typeof t=="function"?this.styleTween(e,ZRt(e,s,D6(this,"style."+e,t))).each(XRt(this._id,e)):this.styleTween(e,YRt(e,s,t),r).on("end.style."+e,null)}function JRt(e,t,r){return function(s){this.style.setProperty(e,t.call(this,s),r)}}function qRt(e,t,r){var s,n;function i(){var o=t.apply(this,arguments);return o!==n&&(s=(n=o)&&JRt(e,o,r)),s}return i._value=t,i}function eTt(e,t,r){var s="style."+(e+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(t==null)return this.tween(s,null);if(typeof t!="function")throw new Error;return this.tween(s,qRt(e,t,r??""))}function tTt(e){return function(){this.textContent=e}}function rTt(e){return function(){var t=e(this);this.textContent=t??""}}function sTt(e){return this.tween("text",typeof e=="function"?rTt(D6(this,"text",e)):tTt(e==null?"":e+""))}function nTt(e){return function(t){this.textContent=e.call(this,t)}}function iTt(e){var t,r;function s(){var n=e.apply(this,arguments);return n!==r&&(t=(r=n)&&nTt(n)),t}return s._value=e,s}function oTt(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,iTt(e))}function aTt(){for(var e=this._name,t=this._id,r=Bte(),s=this._groups,n=s.length,i=0;i<n;++i)for(var o=s[i],a=o.length,l,c=0;c<a;++c)if(l=o[c]){var u=wd(l,t);uD(l,e,r,c,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new yg(s,this._parents,e,r)}function lTt(){var e,t,r=this,s=r._id,n=r.size();return new Promise(function(i,o){var a={value:o},l={value:function(){--n===0&&i()}};r.each(function(){var c=rp(this,s),u=c.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),c.on=t}),n===0&&i()})}var cTt=0;function yg(e,t,r,s){this._groups=e,this._parents=t,this._name=r,this._id=s}function Bte(){return++cTt}var Yp=w3.prototype;yg.prototype={constructor:yg,select:QRt,selectAll:URt,selectChild:Yp.selectChild,selectChildren:Yp.selectChildren,filter:HRt,merge:GRt,selection:jRt,transition:aTt,call:Yp.call,nodes:Yp.nodes,node:Yp.node,size:Yp.size,empty:Yp.empty,each:Yp.each,on:_Rt,attr:wRt,attrTween:ERt,style:$Rt,styleTween:eTt,text:sTt,textTween:oTt,remove:zRt,tween:pRt,delay:RRt,duration:MRt,ease:kRt,easeVarying:LRt,end:lTt,[Symbol.iterator]:Yp[Symbol.iterator]};function uTt(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var dTt={time:null,delay:0,duration:250,ease:uTt};function hTt(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function pTt(e){var t,r;e instanceof yg?(t=e._id,e=e._name):(t=Bte(),(r=dTt).time=R6(),e=e==null?null:e+"");for(var s=this._groups,n=s.length,i=0;i<n;++i)for(var o=s[i],a=o.length,l,c=0;c<a;++c)(l=o[c])&&uD(l,e,t,c,o,r||hTt(l,t));return new yg(s,this._parents,e,t)}w3.prototype.interrupt=uRt;w3.prototype.transition=pTt;function x1(e,t,r){this.k=e,this.x=t,this.y=r}x1.prototype={constructor:x1,scale:function(e){return e===1?this:new x1(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new x1(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};x1.prototype;const M6="__d3fc-elements__",y3=e=>e[M6]||{},Lte=(e,t)=>void(e[M6]=t),gTt=e=>delete e[M6],fTt=e=>e.tagName==="D3FC-GROUP"?[e,...e.querySelectorAll("d3fc-canvas, d3fc-group, d3fc-svg")]:[e],ATt=e=>{const{width:t,height:r}=y3(e),s=e.useDevicePixelRatio&&window.devicePixelRatio!=null?window.devicePixelRatio:1,n=e.clientWidth*s,i=e.clientHeight*s,o=n!==t||i!==r,a=e.children[0];Lte(e,{pixelRatio:s,width:n,height:i,resized:o,child:a})};if(typeof CustomEvent!="function")throw new Error("d3fc-element depends on CustomEvent. Make sure that you load a polyfill in older browsers. See README.");const mTt=e=>{const t=y3(e),r=new CustomEvent("measure",{detail:t});e.dispatchEvent(r)},vTt=e=>{const t=y3(e),r=new CustomEvent("draw",{detail:t});e.dispatchEvent(r)},CTt=e=>{const t=e.map(fTt).reduce((r,s)=>r.concat(s));t.forEach(ATt),t.forEach(mTt),t.forEach(vTt)},Hte=e=>y3(e.ownerDocument).queue||[],wTt=(e,t)=>{let{requestId:r}=y3(e.ownerDocument);r==null&&(r=requestAnimationFrame(()=>{const s=Hte(e);CTt(s),yTt(e)})),Lte(e.ownerDocument,{queue:t,requestId:r})},yTt=e=>gTt(e.ownerDocument),vQ=(e,t)=>{let r=e;do if(r.parentNode===t)return!0;while(r=r.parentNode);return!1},I6=e=>{const t=Hte(e);if(t.indexOf(e)>-1||t.some(s=>vQ(e,s)))return;const r=t.filter(s=>!vQ(s,e));r.push(e),wTt(e,r)};if(typeof HTMLElement!="function")throw new Error("d3fc-element depends on Custom Elements (v1). Make sure that you load a polyfill in older browsers. See README.");const bTt=e=>{e.__measureListener__==null&&(e.__measureListener__=t=>e.setMeasurements(t.detail),e.addEventListener("measure",e.__measureListener__))},STt=e=>{e.__measureListener__!=null&&(e.removeEventListener("measure",e.__measureListener__),e.__measureListener__=null)},Gte=(e,t)=>class extends HTMLElement{static get observedAttributes(){return["use-device-pixel-ratio"]}attributeChangedCallback(r){switch(r){case"use-device-pixel-ratio":this.requestRedraw();break}}connectedCallback(){this.childNodes.length===0&&this.appendChild(e()),bTt(this)}disconnectedCallback(){STt(this)}setMeasurements({width:r,height:s}){const{childNodes:[n,...i]}=this;if(i.length>0)throw new Error("A d3fc-svg/canvas element must only contain a single svg/canvas element.");t(this,n,{width:r,height:s})}get useDevicePixelRatio(){return this.hasAttribute("use-device-pixel-ratio")&&this.getAttribute("use-device-pixel-ratio")!=="false"}set useDevicePixelRatio(r){r&&!this.useDevicePixelRatio?this.setAttribute("use-device-pixel-ratio",""):!r&&this.useDevicePixelRatio&&this.removeAttribute("use-device-pixel-ratio"),this.requestRedraw()}requestRedraw(){I6(this)}};class xTt extends Gte(()=>document.createElement("canvas"),(t,r,{width:s,height:n})=>{r.setAttribute("width",s),r.setAttribute("height",n),t.setWebglViewport&&r.getContext("webgl").viewport(0,0,s,n)}){get setWebglViewport(){return this.hasAttribute("set-webgl-viewport")&&this.getAttribute("set-webgl-viewport")!=="false"}set setWebglViewport(t){t&&!this.setWebglViewport?this.setAttribute("set-webgl-viewport",""):!t&&this.setWebglViewport&&this.removeAttribute("set-webgl-viewport"),this.requestRedraw()}}const GI=e=>{e.autoResize?ETt(e):Ote(e)},ETt=e=>{e.__autoResizeListener__==null&&(e.__autoResizeListener__=()=>I6(e),addEventListener("resize",e.__autoResizeListener__))},Ote=e=>{e.__autoResizeListener__!=null&&(removeEventListener("resize",e.__autoResizeListener__),e.__autoResizeListener__=null)};class PTt extends HTMLElement{connectedCallback(){GI(this)}disconnectedCallback(){Ote(this)}requestRedraw(){I6(this)}get autoResize(){return this.hasAttribute("auto-resize")&&this.getAttribute("auto-resize")!=="false"}set autoResize(t){t&&!this.autoResize?this.setAttribute("auto-resize",""):!t&&this.autoResize&&this.removeAttribute("auto-resize"),GI(this)}static get observedAttributes(){return["auto-resize"]}attributeChangedCallback(t){switch(t){case"auto-resize":GI(this);break}}}const FTt=Gte(()=>document.createElementNS("http://www.w3.org/2000/svg","svg"),(e,t,{width:r,height:s})=>{t.setAttribute("viewBox",`0 0 ${r} ${s}`)}),CQ="d3fc-canvas,d3fc-svg{position:relative;display:block}d3fc-canvas>canvas,d3fc-svg>svg{position:absolute;height:100%;width:100%}d3fc-svg>svg{overflow:visible}",J1=document.createElement("style");J1.setAttribute("type","text/css");document.querySelector("head").appendChild(J1);J1.styleSheet?J1.styleSheet.cssText+=CQ:J1.textContent+=CQ;if(typeof customElements!="object"||typeof customElements.define!="function")throw new Error("d3fc-element depends on Custom Elements (v1). Make sure that you load a polyfill in older browsers. See README.");const n7=[],k6=(e,t)=>{customElements.get(e)?n7.push(e):customElements.define(e,t)};k6("d3fc-canvas",xTt);k6("d3fc-group",PTt);k6("d3fc-svg",FTt);n7.length>0&&console.warn(`The d3fc components "${n7.join(", ")}" is/are already registered on window. Be aware that this can create compatibility issues if different versions are used.`);const wQ=`d3fc-group.cartesian-chart{width:100%;height:100%;overflow:hidden;display:grid;display:-ms-grid;grid-template-columns:minmax(1em,max-content) auto 1fr auto minmax(1em,max-content);-ms-grid-columns:minmax(1em,max-content) auto 1fr auto minmax(1em,max-content);grid-template-rows:minmax(1em,max-content) auto 1fr auto minmax(1em,max-content);-ms-grid-rows:minmax(1em,max-content) auto 1fr auto minmax(1em,max-content);}
13590
13590
  d3fc-group.cartesian-chart>.top-label{align-self:center;-ms-grid-column-align:center;justify-self:center;-ms-grid-row-align:center;grid-column:3;-ms-grid-column:3;grid-row:1;-ms-grid-row:1;}
13591
13591
  d3fc-group.cartesian-chart>.top-axis{height:2em;grid-column:3;-ms-grid-column:3;grid-row:2;-ms-grid-row:2;}
13592
13592
  d3fc-group.cartesian-chart>.left-label{align-self:center;-ms-grid-column-align:center;justify-self:center;-ms-grid-row-align:center;grid-column:1;-ms-grid-column:1;grid-row:3;-ms-grid-row:3;}
@@ -13651,6 +13651,6 @@ d3fc-group.cartesian-chart>.y-label{display:flex;transform:rotate(-90deg);width:
13651
13651
  V ${o+Es}
13652
13652
  Q ${n},${o} ${n-Es},${o}
13653
13653
  H ${On}
13654
- L 0,0 z`}function D7t(e,t,r,s,n){switch(r){case"left":return P7t(e,t,n);case"right":return F7t(e,t,n);case"top":return R7t(e,t,s);case"bottom":return T7t(e,t,s);default:z6(r,"Unknown tooltip direction")}}function M7t(e,t,r,s,n,i,o){return o?i.right-r-n-On>e?"right":"left":i.top+s-n-On>t?"top":"bottom"}function I7t(e,t,r,s,n,i){return e==="left"||e==="right"?`translate(${e==="left"?-(s+On+t):s+On},${-r/2+i})`:`translate(${-t/2+n},${e==="top"?-(r+s+On):s+On})`}function k7t(e,t){return e==="left"||e==="right"?`translate(${e==="left"?-t:t},0)`:`translate(0,${e==="top"?-t:t})`}function B7t(e,t,r,s){if(e==="left"||e==="right")return 0;let n=t.right-r,i=t.left+r;return n<s/2?n-s/2:i<s/2?s/2-i:0}function L7t(e,t,r,s){if(e==="top"||e==="bottom")return 0;let n=t.top+r,i=t.bottom-r;return n<s/2?s/2-n:i<s/2?i-s/2:0}function H7t({content:e,x:t,y:r,active:s,container:n,sideDistances:i,offset:o=S7t,horizontal:a=!0}){if(!s||!n&&n!==null)return null;let l=E7t(e),c=x7t(e),u=M7t(l,c,t,r,o,i,a),d=B7t(u,i,t,l),g=L7t(u,i,r,c),A=st.jsxs("g",{transform:`translate(${i.left+t},${i.top+r})`,opacity:s?1:0,stroke:"none",fill:"none",style:{pointerEvents:"none"},children:[st.jsx("path",{transform:k7t(u,o),d:D7t(l,c,u,d,g),fill:Bi}),st.jsx("g",{fontSize:"14px",fontFamily:"Manrope",fill:"white",transform:I7t(u,l,c,o,d,g),children:e.map((w,v)=>st.jsx("text",{x:dre,y:ure+i7*v+i7/2,dominantBaseline:"central",children:w},v))})]});return n===null?A:xJ.createPortal(A,n)}function a1(e){return V5().domain([0,1]).range([e,Bi])(.25)}var t2=1.4;function hre(e,t=6,r=Bi,s=null){switch(e){case null:return"";case"0":return st.jsx("path",{d:`M -${t},-${t} l ${t*2},0 l 0,${t*2} l -${t*2},0 l 0,-${t*2}z`,fill:"none",stroke:r});case"1":return st.jsx("path",{d:`M -${t},0 a ${t},${t} 0 1,0 ${t*2},0 a ${t},${t} 0 1,0 -${t*2},0z`,fill:"none",stroke:r});case"2":return st.jsx("path",{d:`M0,-${t}L ${2*t*Math.tan(Math.PI/6)},${t}L ${-2*t*Math.tan(Math.PI/6)},${t}z`,fill:"none",stroke:r});case"3":return st.jsx("path",{d:`M0,-${t}L 0,${t} M -${t},0 L ${t},0`,fill:"none",stroke:r});case"4":return st.jsx("path",{d:`M-${t},-${t}L ${t},${t} M ${t},-${t} L -${t},${t}`,fill:"none",stroke:r});case"5":{let n=t*t2;return st.jsx("path",{d:`M0,-${n}L ${n},0 L 0,${n} L -${n},0z`,fill:"none",stroke:r})}case"6":return st.jsx("path",{d:`M${-2*t*Math.tan(Math.PI/6)},-${t}L ${2*t*Math.tan(Math.PI/6)},-${t}L0,${t}z`,fill:"none",stroke:r});case"7":return st.jsx("path",{d:`M -${t},-${t} l ${t*2},0 l 0,${t*2} l -${t*2},0 l 0,-${t*2}z M-${t},-${t}L ${t},${t} M ${t},-${t} L -${t},${t}`,fill:"none",stroke:r});case"8":{let n=t*2*Math.cos(Math.PI/4);return st.jsx("path",{d:`M0,-${n}L 0,${n} M -${n},0 L ${n},0 M-${t},-${t}L ${t},${t} M ${t},-${t} L -${t},${t}`,fill:"none",stroke:r})}case"9":{let n=t*t2;return st.jsx("path",{d:`M0,-${n}L ${n},0 L 0,${n} L -${n},0z M0,-${n}L 0,${n} M -${n},0 L ${n},0`,fill:"none",stroke:r})}case"10":return st.jsx("path",{d:`M -${t},0 a ${t},${t} 0 1,0 ${t*2},0 a ${t},${t} 0 1,0 -${t*2},0z M0,-${t}L 0,${t} M -${t},0 L ${t},0`,fill:"none",stroke:r});case"11":{let n=2*t*Math.tan(Math.PI/6);return st.jsx("path",{d:`M-${n},-${t}L${n},-${t}L0,${-t+2*n}z
13655
- M-${n},${t}L0,${t-2*n}L${n},${t}z`,fill:"none",stroke:r})}case"12":return st.jsx("path",{d:`M -${t},-${t} l ${t*2},0 l 0,${t*2} l -${t*2},0 l 0,-${t*2}z M0,-${t}L 0,${t} M -${t},0 L ${t},0`,fill:"none",stroke:r});case"13":return st.jsx("path",{d:`M -${t},0 a ${t},${t} 0 1,0 ${t*2},0 a ${t},${t} 0 1,0 -${t*2},0z M-${t},-${t}L ${t},${t} M ${t},-${t} L -${t},${t}`,fill:"none",stroke:r});case"14":return st.jsx("path",{d:`M -${t},-${t} l ${t*2},0 l 0,${t*2} l -${t*2},0 l 0,-${t*2}z M-${t},${t}L0,${-t}L${t},${t}`,fill:"none",stroke:r});case"15":return st.jsx("path",{d:`M -${t},-${t} l ${t*2},0 l 0,${t*2} l -${t*2},0 l 0,-${t*2}z`,fill:r,stroke:r});case"16":return st.jsx("path",{d:`M -${t},0 a ${t},${t} 0 1,0 ${t*2},0 a ${t},${t} 0 1,0 -${t*2},0z`,fill:r,stroke:r});case"17":return st.jsx("path",{d:`M0,-${t}L ${2*t*Math.tan(Math.PI/6)},${t}L ${-2*t*Math.tan(Math.PI/6)},${t}z`,fill:r,stroke:r});case"18":{let n=t*t2;return st.jsx("path",{d:`M0,-${n}L ${n},0 L 0,${n} L -${n},0z`,fill:r,stroke:r})}case"20":{let n=t*2/3;return st.jsx("path",{d:`M -${n},0 a ${n},${n} 0 1,0 ${n*2},0 a ${n},${n} 0 1,0 -${n*2},0z`,fill:r,stroke:r})}case"22":return st.jsx("path",{d:`M -${t},-${t} l ${t*2},0 l 0,${t*2} l -${t*2},0 l 0,-${t*2}z`,fill:r,stroke:s??a1(r)});case"21":return st.jsx("path",{d:`M -${t},0 a ${t},${t} 0 1,0 ${t*2},0 a ${t},${t} 0 1,0 -${t*2},0z`,fill:r,stroke:s??a1(r)});case"24":return st.jsx("path",{d:`M0,-${t}L ${2*t*Math.tan(Math.PI/6)},${t}L ${-2*t*Math.tan(Math.PI/6)},${t}z`,fill:r,stroke:s??a1(r)});case"23":{let n=t*t2;return st.jsx("path",{d:`M0,-${n}L ${n},0 L 0,${n} L -${n},0z`,fill:r,stroke:s??a1(r)})}case"25":return st.jsx("path",{d:`M${-2*t*Math.tan(Math.PI/6)},-${t}L ${2*t*Math.tan(Math.PI/6)},-${t}L0,${t}z`,fill:r,stroke:s??a1(r)});default:z6(e,`Unknown point shape ${e}`)}}function G7t({message:e}){return st.jsx("div",{style:{width:"500px",height:"400px",color:"#ee1616",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"25px",fontFamily:"Arial",border:"1px solid"},children:e})}var o7=4;function SQ(e){return isNaN(e)?"?":e===0?"0":Math.abs(e)<.01?ux(".1e")(e):ux(".2f")(e)}function xQ(e=null){switch(e){case null:return"";case"solid":return"";case"dashed":return"6 6";case"dotted":return"1.5 4";case"dotdash":return"1.4 4 8 4";case"longdash":return"10 4";case"twodash":return"3 3 9 3";default:z6(e,`Unknown line shape ${e}`)}}(class extends wJ.Component{constructor(e){super(e),this.state={hasError:!1,message:""}}static getDerivedStateFromError(e){return{hasError:!0,message:e.message}}componentDidUpdate(e){e.dataId!==this.props.dataId&&this.setState({hasError:!1,message:"error.message"})}componentDidCatch(e,t){console.log(t)}render(){return this.state.hasError?st.jsx(G7t,{message:this.state.message}):this.props.children}});function O7t(e,t,r,s){return e==="left"?r:e==="right"?t-s:(t-(r+s))/2+r}function N7t(e){return e==="left"?"start":e==="right"?"end":"middle"}function _7t({show:e,position:t,title:r,chartsWidth:s,leftPadding:n,rightPadding:i}){return e?st.jsx("g",{children:r.map((o,a)=>st.jsx("text",{x:O7t(t,s,n,i),textAnchor:N7t(t),y:-(r.length-a-1)*24-24-24/2,fontSize:"20px",fontFamily:"Manrope",fontWeight:"500",dominantBaseline:"central",children:o},`${o}_${a}`))}):null}var ro=12,l1=-12,EQ=14;function V7t(e=null){return e==="dashed"?"M1 11.25H6V12.75H1V11.25ZM9.5 11.25H14.5V12.75H9.5V11.25ZM18 11.25H23V12.75H18V11.25Z":e==="dotted"?"M2.75 11.25H1.25V12.75H2.75V11.25Z M11.25 11.25H12.75V12.75H11.25V11.25Z M22.75 11.25H21.25V12.75H22.75V11.25Z M7.75 11.25H6.25V12.75H7.75V11.25Z M16.25 11.25H17.75V12.75H16.25V11.25Z":e==="longdash"?"M1 11.25H10V12.75H1V11.25ZM14 11.25H23V12.75H14V11.25Z":e==="dotdash"?"M1 11.25H2.5V12.75H1V11.25ZM17 12.75H7V11.25H17V12.75ZM21.5 12.75V11.25H23V12.75H21.5Z":e==="twodash"?"M1 11.25H4V12.75H1V11.25ZM17.0261 12.75H7V11.25H17.0261V12.75ZM20 12.75V11.25H23V12.75H20Z":"M1 11.25H23V12.75H1V11.25Z"}var z7t=3,Q7t=24;function U7t({aes:e,label:t,usedAes:r}){let s=r.lineShape,n=r.dotShape,i=r.fillColor||r.lineColor&&!r.lineShape||r.dotFill&&!r.dotShape,o=n?hre(e.dotShape??"21",z7t,i?Bi:e.dotFill??Bi):null,a=(n&&s?2*ro:0)-6,l=s?a+Q7t+8:ro+8;return st.jsxs("g",{children:[i&&st.jsx("rect",{width:ro,height:ro,stroke:e.fillColor??e.lineColor,fill:e.fillColor??e.lineColor,rx:"1",ry:"1"}),n&&st.jsx("g",{transform:`translate(${ro/2},${ro/2})`,children:o}),s&&st.jsx("path",{transform:`translate(${a},-5)`,fillRule:"evenodd",clipRule:"evenodd",d:V7t(e.lineShape),fill:e.lineColor}),st.jsx("text",{x:l,y:ro/2,dominantBaseline:"central",fontWeight:500,children:t})]})}function W7t({aes:e,label:t}){let r=hre(e.shape,e.size,e.color);return st.jsxs("g",{children:[st.jsx("g",{transform:`translate(${ro/2},${ro/2})`,children:r}),st.jsx("text",{x:ro+8,y:ro/2,dominantBaseline:"central",fontWeight:500,children:t})]})}function j7t({legendData:e}){let t=e.items.filter(r=>r.type==="continuous");return st.jsxs("g",{children:[st.jsx("defs",{children:t.map(r=>st.jsx("linearGradient",{id:r.id,gradientTransform:"rotate(90)",children:r.scale.domain().reverse().map(s=>{let n=r.scale.domain(),i=n[n.length-1]-n[0],o=i>0?100-(s-n[0])/i*100:0;return st.jsx("stop",{offset:`${o}%`,stopColor:r.scale(s)},s)})},r.id))}),e.items.map(r=>{if(r.type==="continuous")return st.jsxs("g",{transform:`translate(${r.left},${r.top})`,children:[st.jsx("text",{fontWeight:500,fontSize:"14px",y:l1,children:r.title}),st.jsx("rect",{x:"0",y:"0",width:EQ,height:r.height,stroke:Bi,fill:`url(#${r.id})`}),st.jsx("g",{transform:`translate(${EQ},0)`,children:r.values.map(s=>{let n=r.tickPositionScale(s)??0;return st.jsxs("g",{transform:`translate(0,${n})`,children:[st.jsx("line",{x1:"0",x2:-4,stroke:Bi}),st.jsx("text",{x:8,y:4,children:s})]},s)})}),!1]},r.id);if(r.type==="discreteColor")return st.jsxs("g",{transform:`translate(${r.left},${r.top})`,children:[st.jsx("text",{fontWeight:500,fontSize:"14px",y:l1,children:r.title}),r.values.map((s,n)=>st.jsxs("g",{transform:`translate(0, ${n*(ro+4)})`,children:[st.jsx("rect",{x:"0",y:"0",width:ro,height:ro,fill:r.scale(s),rx:"1",ry:"1",stroke:Bi}),st.jsx("text",{x:ro+8,y:10,children:s})]},s)),!1]},r.id);if(r.type==="discreteMulti")return st.jsxs("g",{transform:`translate(${r.left},${r.top})`,fontSize:"14px",fontWeight:500,children:[st.jsx("text",{fontWeight:600,y:l1,children:r.title}),r.values.map((s,n)=>st.jsx("g",{transform:`translate(0, ${n*(ro+4)})`,children:st.jsx(U7t,{aes:r.scale(s),label:r.labels[s],usedAes:r.usedAes})},s)),!1]},r.id);if(r.type==="dots")return st.jsxs("g",{transform:`translate(${r.left},${r.top})`,fontSize:"14px",fontWeight:500,children:[st.jsx("text",{fontWeight:500,y:l1,children:r.title}),r.values.map((s,n)=>st.jsx("g",{transform:`translate(0, ${n*(ro+4)})`,children:st.jsx(W7t,{aes:r.scale(s),label:r.labels[s]})},s)),!1]},r.id);if(r.type==="size"){let s=r.height/r.values.length;return st.jsxs("g",{transform:`translate(${r.left},${r.top})`,fontSize:"14px",fontWeight:500,children:[st.jsx("text",{fontWeight:500,y:l1,children:r.title}),r.values.map((n,i)=>{let o=r.scale(n);return st.jsxs("g",{transform:`translate(0, ${i*s})`,children:[st.jsx("circle",{r:o,cx:s/2,cy:s/2,fill:Bi}),st.jsx("text",{x:s+4,y:s/2,alignmentBaseline:"central",children:r.labels[n]})]},n)}),!1]},r.id)}})]})}new CD("600 14px Manrope");function K7t(e,t,r=!1){let s=Math.abs(e.range()[0]-e.range()[1]),n=r?Math.min(Math.floor(s/45),10):10,i=e.ticks(n).filter(l=>t&&l>=0||!t),o=new Set(i);if(!r&&i.length>1){let l=e(i[0]),c=e(i[0]);for(let u=1;u<i.length;u++)c=e(i[u]),Math.abs(c-l)>=20?l=c:o.delete(i[u])}r&&i.length>2&&Math.abs(e(i[1])-e(i[0]))<45&&(i=i.filter((l,c)=>c%2===0));let a=i.some(l=>Math.abs(l)<1e-4&&l!==0||l>1e4)?",e":",f";return{ticks:i,format:l=>o.has(l)?e.tickFormat(n,a)(l):""}}var Y7t=1;function Z7t({scaleX:e,scaleY:t,width:r,height:s,axisX:n,axisY:i,frameType:o,updatingKey:a=""}){let[l,c]=qu.useState(e.ticks()),[u,d]=qu.useState(t.ticks()),{significantLines:g=[]}=n,{significantLines:A=[]}=i;return qu.useEffect(()=>{let w=e.ticks().filter(b=>!g.includes(b)),v=t.ticks().filter(b=>!A.includes(b));c(w),d(v)},[e,t,a]),st.jsxs("g",{stroke:o1,children:[n.showGrid&&l.map(w=>{let v=e(w);return st.jsx("line",{x1:v,x2:v,y1:0,y2:s},`x_${v}_${s}`)}),i.showGrid&&u.map(w=>{let v=t(w);return st.jsx("line",{x1:0,x2:r,y1:v,y2:v},`y_${v}_${r}`)}),st.jsx("g",{strokeDasharray:xQ(n.significantLinesStyle),stroke:Bi,children:g.map(w=>{let v=e(w);return v<0||v>r?null:st.jsx("line",{x1:v,x2:v,y1:0,y2:s},`significant_${v}_${s}`)})}),st.jsx("g",{strokeDasharray:xQ(i.significantLinesStyle),stroke:Bi,children:A.map(w=>{let v=t(w);return v<0||v>s?null:st.jsx("line",{x1:0,x2:r,y1:v,y2:v},`significant_${v}_${r}`)})}),o!=="empty"&&st.jsxs("g",{strokeWidth:Y7t,children:[(n.showGrid||o!=="left")&&st.jsx("line",{stroke:o==="left"?o1:Bi,x1:"0",x2:r,y1:s,y2:s}),(n.showGrid||o!=="bottom")&&st.jsx("line",{stroke:o==="bottom"?o1:Bi,x1:"0",x2:"0",y1:"0",y2:s}),(n.showGrid||o==="full")&&st.jsx("line",{stroke:o==="full"?Bi:o1,x1:r,x2:r,y1:"0",y2:s}),(i.showGrid||o==="full")&&st.jsx("line",{stroke:o==="full"?Bi:o1,x1:"0",x2:r,y1:"0",y2:"0"})]})]})}function X7t(e){return`translate(${e},0)`}function $7t(e){return`translate(0,${e})`}function J7t(e){return e==="bottom"?`translate(0,${o7})`:`translate(${-o7},0)`}function q7t(e){return e==="bottom"?"hanging":"central"}function eLt(e){return e==="bottom"?"middle":"end"}var PQ=({scale:e,tickSize:t=6,tickPadding:r=o7,orient:s="bottom",onlyPositive:n=!1,offset:i=typeof window<"u"&&window.devicePixelRatio>1?0:.5})=>{function o(v){return b=>{let S=v(b);return S===void 0?0:+S}}let{ticks:a,format:l}=K7t(e,n,s==="bottom"),c=Math.max(t,0)+r,u=o(e.copy()),d=s==="bottom"?X7t:$7t,g=s==="left"?-1:1,A={[(s==="left"?"x":"y")+"2"]:g*t},w={[s==="left"?"x":"y"]:g*c};return st.jsx("g",{children:a.map((v,b)=>st.jsxs("g",{className:"tick",transform:d(u(v)+i),children:[st.jsx("line",{stroke:Bi,...A}),st.jsx("g",{transform:J7t(s),children:st.jsx("text",{fill:Bi,fontSize:"14px",fontWeight:"500",fontFamily:"Manrope",dominantBaseline:q7t(s),textAnchor:eLt(s),...w,children:l(v)})})]},b))})};new CD("16px Manrope");BTt(MBt());var OI=20,FQ=4,tLt=24;function rLt(e,t,r=[]){let s=e.data,n=[`x: ${SQ(e.x)}`,`y: ${SQ(e.y)}`];t.label&&n.unshift(`${t.label}: ${s[t.label]}`);for(let i of r)n.push(`${i.label}: ${s[i.valueLabels??i.value]}`);return n}function RQ(e){return typeof e=="string"?e:e.label??e.value}var TQ=V_e().curve(z_e);function sLt({scales:e,chartSettings:t,mainTitle:r,keyColumn:s,margins:n,chartSizes:i,onlyPositive:o,container:a,zoomStateKey:l,legendData:c,dotsByGrouping:u,layers:d,aesGetters:g,selectedDot:A=null}){var w;let{title:v,xAxis:b,yAxis:S,frame:P,legend:F}=t,T=b.showTicks?FQ:0,D=S.showTicks?FQ:0,B=b.title,k=S.title,z={left:0,right:i.chartWidth,top:0,bottom:i.chartHeight};if(!a)return null;let O=d.find(N=>N.type==="curve"),[j,_]=qu.useState([]);function G(){let N=Object.entries(u).map(([W,V])=>({key:W,d:O!=null&&O.smoothing?TQ(V)??"":V.map(q=>`${e.x(q.x)},${e.y(q.y)}`).join(" "),dot:V[0]}));_(N)}return qu.useEffect(()=>{O&&(TQ.x(N=>e.x(N.x)).y(N=>e.y(N.y)),G())},[l]),qu.useEffect(()=>{O&&G()},[O==null?void 0:O.smoothing]),st.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${i.totalWidth} ${i.totalHeight}`,width:i.totalWidth,height:i.totalHeight,style:{pointerEvents:"none"},children:[st.jsx("defs",{children:b7t}),st.jsxs("g",{transform:`translate(${n.left},${n.top})`,fontFamily:"Manrope",children:[st.jsx("clipPath",{id:"viewportClipPath",children:st.jsx("rect",{x:"0",y:"0",width:i.chartWidth,height:i.chartHeight})}),st.jsx(_7t,{title:r,show:v.show,position:v.position,leftPadding:n.left,rightPadding:n.right,chartsWidth:i.chartWidth}),st.jsxs("g",{dominantBaseline:"central",textAnchor:"middle",fontWeight:"500",fontSize:"14px",fill:Bi,children:[B&&st.jsx("text",{x:i.chartWidth/2,y:i.chartHeight+n.bottom-OI/2,children:RQ(B)}),k&&st.jsx("text",{x:-n.left+OI/2,y:i.chartHeight/2,transform:`rotate(-90,${-n.left+OI/2},${i.chartHeight/2})`,children:RQ(k)})]}),st.jsx(Z7t,{width:i.chartWidth,height:i.chartHeight,scaleX:e.x,scaleY:e.y,axisX:b,axisY:S,updatingKey:l,frameType:P.type}),st.jsx("g",{transform:`translate(0,${i.chartHeight})`,children:st.jsx(PQ,{scale:e.x,orient:"bottom",onlyPositive:o.x,tickSize:T})}),st.jsx("g",{children:st.jsx(PQ,{scale:e.y,orient:"left",onlyPositive:o.y,tickSize:D})}),O&&O.smoothing&&st.jsx("g",{clipPath:"url(#viewportClipPath)",children:j.map(({key:N,d:W,dot:V})=>st.jsx("path",{d:W,fill:"none",stroke:g.dotFill(V.data),strokeWidth:O.aes.lineWidth,strokeDasharray:g.lineType(V.data)},N))}),O&&!O.smoothing&&st.jsx("g",{clipPath:"url(#viewportClipPath)",children:j.map(({key:N,d:W,dot:V})=>st.jsx("polyline",{points:W,fill:"none",stroke:g.dotFill(V.data),strokeWidth:O.aes.lineWidth,strokeDasharray:g.lineType(V.data)},N))}),A&&st.jsx(H7t,{content:rLt(A,s,(w=t.tooltips)==null?void 0:w.content),x:e.x(A.x),y:e.y(A.y),active:!0,sideDistances:z,container:a}),F.show&&st.jsx("g",{transform:`translate(${i.chartWidth+tLt},0)`,children:st.jsx(j7t,{legendData:c})})]})]})}wJ.memo(sLt);var I2=y.object({type:y.literal("grouping"),value:y.string()}),nLt=y.object({type:y.literal("dots"),aes:y.optional(y.object({dotFill:y.optional(y.union([y.string(),I2,Bh(y.string())])),dotShape:y.optional(y.union([pl,I2])),dotSize:y.optional(y.union([y.number(),I2]))}))}),iLt=y.object({type:y.literal("curve"),smoothing:y.optional(y.boolean()),aes:y.optional(y.object({lineWidth:y.optional(y.number()),lineShape:y.optional(Xc),lineColor:y.optional(y.union([y.string(),I2,Bh(y.string())])),opacity:y.optional(y.number())}))}),oLt=y.union([nLt,iLt]);y.object({type:y.literal("scatterplot-umap"),title:y.object({name:y.string(),show:y.optional(y.boolean()),position:y.optional(SA)}),size:y.optional(y.object({width:y.optional(y.number()),height:y.optional(y.number())})),legend:y.optional(y.object({show:y.optional(y.boolean()),position:y.optional(tC)})),tooltips:y.optional(y.object({show:y.optional(y.boolean()),content:y.optional(y.array(nr))})),frame:y.optional(y.object({type:y.optional(D3)})),keyColumn:nr,x:nr,y:nr,xAxis:y.optional(_w),yAxis:y.optional(_w),grouping:y.optional(y.array(nr)),label:y.optional(nr),inheritedAes:y.optional(y.record(y.string(),Nw)),layers:y.array(oLt),lassoMode:y.optional(y.boolean())});const aw=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,pre=new Set,a7=typeof process=="object"&&process?process:{},gre=(e,t,r,s)=>{typeof a7.emitWarning=="function"?a7.emitWarning(e,t,r,s):console.error(`[${r}] ${t}: ${e}`)};let AR=globalThis.AbortController,DQ=globalThis.AbortSignal;var MQ;if(typeof AR>"u"){DQ=class{constructor(){bs(this,"onabort"),bs(this,"_onabort",[]),bs(this,"reason"),bs(this,"aborted",!1)}addEventListener(r,s){this._onabort.push(s)}},AR=class{constructor(){bs(this,"signal",new DQ),t()}abort(r){var s,n;if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(const i of this.signal._onabort)i(r);(n=(s=this.signal).onabort)==null||n.call(s,r)}}};let e=((MQ=a7.env)==null?void 0:MQ.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const t=()=>{e&&(e=!1,gre("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}const aLt=e=>!pre.has(e),Xf=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),fre=e=>Xf(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?k2:null:null;class k2 extends Array{constructor(t){super(t),this.fill(0)}}var eS;const Are=class E1{constructor(t,r){if(bs(this,"heap"),bs(this,"length"),!de(E1,eS))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}static create(t){const r=fre(t);if(!r)return[];hr(E1,eS,!0);const s=new E1(t,r);return hr(E1,eS,!1),s}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}};eS=new WeakMap,As(Are,eS,!1);let lLt=Are;var IQ,kQ,mh,kc,vh,H0,gh,tS,P1,ki,Bc,mi,wn,Or,el,Hc,oa,qi,Sh,eo,Ch,wh,Gc,yh,ev,tl,F1,Vt,l7,z0,Wf,mR,Oc,mre,Q0,rS,vR,Bf,jf,NI,CR,B2,pn,_I,R1,rA,c7;const cLt=class vre{constructor(t){As(this,Vt),As(this,mh),As(this,kc),As(this,vh),As(this,H0),As(this,gh),As(this,tS),As(this,P1),bs(this,"ttl"),bs(this,"ttlResolution"),bs(this,"ttlAutopurge"),bs(this,"updateAgeOnGet"),bs(this,"updateAgeOnHas"),bs(this,"allowStale"),bs(this,"noDisposeOnSet"),bs(this,"noUpdateTTL"),bs(this,"maxEntrySize"),bs(this,"sizeCalculation"),bs(this,"noDeleteOnFetchRejection"),bs(this,"noDeleteOnStaleGet"),bs(this,"allowStaleOnFetchAbort"),bs(this,"allowStaleOnFetchRejection"),bs(this,"ignoreFetchAbort"),As(this,ki),As(this,Bc),As(this,mi),As(this,wn),As(this,Or),As(this,el),As(this,Hc),As(this,oa),As(this,qi),As(this,Sh),As(this,eo),As(this,Ch),As(this,wh),As(this,Gc),As(this,yh),As(this,ev),As(this,tl),As(this,F1),As(this,z0,()=>{}),As(this,Wf,()=>{}),As(this,mR,()=>{}),As(this,Oc,()=>!1),As(this,Q0,O=>{}),As(this,rS,(O,j,_)=>{}),As(this,vR,(O,j,_,G)=>{if(_||G)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0}),bs(this,IQ,"LRUCache");const{max:r=0,ttl:s,ttlResolution:n=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:c,onInsert:u,disposeAfter:d,noDisposeOnSet:g,noUpdateTTL:A,maxSize:w=0,maxEntrySize:v=0,sizeCalculation:b,fetchMethod:S,memoMethod:P,noDeleteOnFetchRejection:F,noDeleteOnStaleGet:T,allowStaleOnFetchRejection:D,allowStaleOnFetchAbort:B,ignoreFetchAbort:k}=t;if(r!==0&&!Xf(r))throw new TypeError("max option must be a nonnegative integer");const z=r?fre(r):Array;if(!z)throw new Error("invalid max value: "+r);if(hr(this,mh,r),hr(this,kc,w),this.maxEntrySize=v||de(this,kc),this.sizeCalculation=b,this.sizeCalculation){if(!de(this,kc)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(P!==void 0&&typeof P!="function")throw new TypeError("memoMethod must be a function if defined");if(hr(this,P1,P),S!==void 0&&typeof S!="function")throw new TypeError("fetchMethod must be a function if specified");if(hr(this,tS,S),hr(this,ev,!!S),hr(this,mi,new Map),hr(this,wn,new Array(r).fill(void 0)),hr(this,Or,new Array(r).fill(void 0)),hr(this,el,new z(r)),hr(this,Hc,new z(r)),hr(this,oa,0),hr(this,qi,0),hr(this,Sh,lLt.create(r)),hr(this,ki,0),hr(this,Bc,0),typeof c=="function"&&hr(this,vh,c),typeof u=="function"&&hr(this,H0,u),typeof d=="function"?(hr(this,gh,d),hr(this,eo,[])):(hr(this,gh,void 0),hr(this,eo,void 0)),hr(this,yh,!!de(this,vh)),hr(this,F1,!!de(this,H0)),hr(this,tl,!!de(this,gh)),this.noDisposeOnSet=!!g,this.noUpdateTTL=!!A,this.noDeleteOnFetchRejection=!!F,this.allowStaleOnFetchRejection=!!D,this.allowStaleOnFetchAbort=!!B,this.ignoreFetchAbort=!!k,this.maxEntrySize!==0){if(de(this,kc)!==0&&!Xf(de(this,kc)))throw new TypeError("maxSize must be a positive integer if specified");if(!Xf(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Wt(this,Vt,mre).call(this)}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!T,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Xf(n)||n===0?n:1,this.ttlAutopurge=!!i,this.ttl=s||0,this.ttl){if(!Xf(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Wt(this,Vt,l7).call(this)}if(de(this,mh)===0&&this.ttl===0&&de(this,kc)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!de(this,mh)&&!de(this,kc)){const O="LRU_CACHE_UNBOUNDED";aLt(O)&&(pre.add(O),gre("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",O,vre))}}static unsafeExposeInternals(t){return{starts:de(t,wh),ttls:de(t,Gc),sizes:de(t,Ch),keyMap:de(t,mi),keyList:de(t,wn),valList:de(t,Or),next:de(t,el),prev:de(t,Hc),get head(){return de(t,oa)},get tail(){return de(t,qi)},free:de(t,Sh),isBackgroundFetch:r=>{var s;return Wt(s=t,Vt,pn).call(s,r)},backgroundFetch:(r,s,n,i)=>{var o;return Wt(o=t,Vt,B2).call(o,r,s,n,i)},moveToTail:r=>{var s;return Wt(s=t,Vt,R1).call(s,r)},indexes:r=>{var s;return Wt(s=t,Vt,Bf).call(s,r)},rindexes:r=>{var s;return Wt(s=t,Vt,jf).call(s,r)},isStale:r=>{var s;return de(s=t,Oc).call(s,r)}}}get max(){return de(this,mh)}get maxSize(){return de(this,kc)}get calculatedSize(){return de(this,Bc)}get size(){return de(this,ki)}get fetchMethod(){return de(this,tS)}get memoMethod(){return de(this,P1)}get dispose(){return de(this,vh)}get onInsert(){return de(this,H0)}get disposeAfter(){return de(this,gh)}getRemainingTTL(t){return de(this,mi).has(t)?1/0:0}*entries(){for(const t of Wt(this,Vt,Bf).call(this))de(this,Or)[t]!==void 0&&de(this,wn)[t]!==void 0&&!Wt(this,Vt,pn).call(this,de(this,Or)[t])&&(yield[de(this,wn)[t],de(this,Or)[t]])}*rentries(){for(const t of Wt(this,Vt,jf).call(this))de(this,Or)[t]!==void 0&&de(this,wn)[t]!==void 0&&!Wt(this,Vt,pn).call(this,de(this,Or)[t])&&(yield[de(this,wn)[t],de(this,Or)[t]])}*keys(){for(const t of Wt(this,Vt,Bf).call(this)){const r=de(this,wn)[t];r!==void 0&&!Wt(this,Vt,pn).call(this,de(this,Or)[t])&&(yield r)}}*rkeys(){for(const t of Wt(this,Vt,jf).call(this)){const r=de(this,wn)[t];r!==void 0&&!Wt(this,Vt,pn).call(this,de(this,Or)[t])&&(yield r)}}*values(){for(const t of Wt(this,Vt,Bf).call(this))de(this,Or)[t]!==void 0&&!Wt(this,Vt,pn).call(this,de(this,Or)[t])&&(yield de(this,Or)[t])}*rvalues(){for(const t of Wt(this,Vt,jf).call(this))de(this,Or)[t]!==void 0&&!Wt(this,Vt,pn).call(this,de(this,Or)[t])&&(yield de(this,Or)[t])}[(kQ=Symbol.iterator,IQ=Symbol.toStringTag,kQ)](){return this.entries()}find(t,r={}){for(const s of Wt(this,Vt,Bf).call(this)){const n=de(this,Or)[s],i=Wt(this,Vt,pn).call(this,n)?n.__staleWhileFetching:n;if(i!==void 0&&t(i,de(this,wn)[s],this))return this.get(de(this,wn)[s],r)}}forEach(t,r=this){for(const s of Wt(this,Vt,Bf).call(this)){const n=de(this,Or)[s],i=Wt(this,Vt,pn).call(this,n)?n.__staleWhileFetching:n;i!==void 0&&t.call(r,i,de(this,wn)[s],this)}}rforEach(t,r=this){for(const s of Wt(this,Vt,jf).call(this)){const n=de(this,Or)[s],i=Wt(this,Vt,pn).call(this,n)?n.__staleWhileFetching:n;i!==void 0&&t.call(r,i,de(this,wn)[s],this)}}purgeStale(){let t=!1;for(const r of Wt(this,Vt,jf).call(this,{allowStale:!0}))de(this,Oc).call(this,r)&&(Wt(this,Vt,rA).call(this,de(this,wn)[r],"expire"),t=!0);return t}info(t){const r=de(this,mi).get(t);if(r===void 0)return;const s=de(this,Or)[r],n=Wt(this,Vt,pn).call(this,s)?s.__staleWhileFetching:s;if(n===void 0)return;const i={value:n};if(de(this,Gc)&&de(this,wh)){const o=de(this,Gc)[r],a=de(this,wh)[r];if(o&&a){const l=o-(aw.now()-a);i.ttl=l,i.start=Date.now()}}return de(this,Ch)&&(i.size=de(this,Ch)[r]),i}dump(){const t=[];for(const r of Wt(this,Vt,Bf).call(this,{allowStale:!0})){const s=de(this,wn)[r],n=de(this,Or)[r],i=Wt(this,Vt,pn).call(this,n)?n.__staleWhileFetching:n;if(i===void 0||s===void 0)continue;const o={value:i};if(de(this,Gc)&&de(this,wh)){o.ttl=de(this,Gc)[r];const a=aw.now()-de(this,wh)[r];o.start=Math.floor(Date.now()-a)}de(this,Ch)&&(o.size=de(this,Ch)[r]),t.unshift([s,o])}return t}load(t){this.clear();for(const[r,s]of t){if(s.start){const n=Date.now()-s.start;s.start=aw.now()-n}this.set(r,s.value,s)}}set(t,r,s={}){var n,i,o,a,l,c,u;if(r===void 0)return this.delete(t),this;const{ttl:d=this.ttl,start:g,noDisposeOnSet:A=this.noDisposeOnSet,sizeCalculation:w=this.sizeCalculation,status:v}=s;let{noUpdateTTL:b=this.noUpdateTTL}=s;const S=de(this,vR).call(this,t,r,s.size||0,w);if(this.maxEntrySize&&S>this.maxEntrySize)return v&&(v.set="miss",v.maxEntrySizeExceeded=!0),Wt(this,Vt,rA).call(this,t,"set"),this;let P=de(this,ki)===0?void 0:de(this,mi).get(t);if(P===void 0)P=de(this,ki)===0?de(this,qi):de(this,Sh).length!==0?de(this,Sh).pop():de(this,ki)===de(this,mh)?Wt(this,Vt,CR).call(this,!1):de(this,ki),de(this,wn)[P]=t,de(this,Or)[P]=r,de(this,mi).set(t,P),de(this,el)[de(this,qi)]=P,de(this,Hc)[P]=de(this,qi),hr(this,qi,P),Uk(this,ki)._++,de(this,rS).call(this,P,S,v),v&&(v.set="add"),b=!1,de(this,F1)&&((n=de(this,H0))==null||n.call(this,r,t,"add"));else{Wt(this,Vt,R1).call(this,P);const F=de(this,Or)[P];if(r!==F){if(de(this,ev)&&Wt(this,Vt,pn).call(this,F)){F.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:T}=F;T!==void 0&&!A&&(de(this,yh)&&((i=de(this,vh))==null||i.call(this,T,t,"set")),de(this,tl)&&((o=de(this,eo))==null||o.push([T,t,"set"])))}else A||(de(this,yh)&&((a=de(this,vh))==null||a.call(this,F,t,"set")),de(this,tl)&&((l=de(this,eo))==null||l.push([F,t,"set"])));if(de(this,Q0).call(this,P),de(this,rS).call(this,P,S,v),de(this,Or)[P]=r,v){v.set="replace";const T=F&&Wt(this,Vt,pn).call(this,F)?F.__staleWhileFetching:F;T!==void 0&&(v.oldValue=T)}}else v&&(v.set="update");de(this,F1)&&((c=this.onInsert)==null||c.call(this,r,t,r===F?"update":"replace"))}if(d!==0&&!de(this,Gc)&&Wt(this,Vt,l7).call(this),de(this,Gc)&&(b||de(this,mR).call(this,P,d,g),v&&de(this,Wf).call(this,v,P)),!A&&de(this,tl)&&de(this,eo)){const F=de(this,eo);let T;for(;T=F==null?void 0:F.shift();)(u=de(this,gh))==null||u.call(this,...T)}return this}pop(){var t;try{for(;de(this,ki);){const r=de(this,Or)[de(this,oa)];if(Wt(this,Vt,CR).call(this,!0),Wt(this,Vt,pn).call(this,r)){if(r.__staleWhileFetching)return r.__staleWhileFetching}else if(r!==void 0)return r}}finally{if(de(this,tl)&&de(this,eo)){const r=de(this,eo);let s;for(;s=r==null?void 0:r.shift();)(t=de(this,gh))==null||t.call(this,...s)}}}has(t,r={}){const{updateAgeOnHas:s=this.updateAgeOnHas,status:n}=r,i=de(this,mi).get(t);if(i!==void 0){const o=de(this,Or)[i];if(Wt(this,Vt,pn).call(this,o)&&o.__staleWhileFetching===void 0)return!1;if(de(this,Oc).call(this,i))n&&(n.has="stale",de(this,Wf).call(this,n,i));else return s&&de(this,z0).call(this,i),n&&(n.has="hit",de(this,Wf).call(this,n,i)),!0}else n&&(n.has="miss");return!1}peek(t,r={}){const{allowStale:s=this.allowStale}=r,n=de(this,mi).get(t);if(n===void 0||!s&&de(this,Oc).call(this,n))return;const i=de(this,Or)[n];return Wt(this,Vt,pn).call(this,i)?i.__staleWhileFetching:i}async fetch(t,r={}){const{allowStale:s=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:g=this.allowStaleOnFetchRejection,ignoreFetchAbort:A=this.ignoreFetchAbort,allowStaleOnFetchAbort:w=this.allowStaleOnFetchAbort,context:v,forceRefresh:b=!1,status:S,signal:P}=r;if(!de(this,ev))return S&&(S.fetch="get"),this.get(t,{allowStale:s,updateAgeOnGet:n,noDeleteOnStaleGet:i,status:S});const F={allowStale:s,updateAgeOnGet:n,noDeleteOnStaleGet:i,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:c,noUpdateTTL:u,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:g,allowStaleOnFetchAbort:w,ignoreFetchAbort:A,status:S,signal:P};let T=de(this,mi).get(t);if(T===void 0){S&&(S.fetch="miss");const D=Wt(this,Vt,B2).call(this,t,T,F,v);return D.__returned=D}else{const D=de(this,Or)[T];if(Wt(this,Vt,pn).call(this,D)){const O=s&&D.__staleWhileFetching!==void 0;return S&&(S.fetch="inflight",O&&(S.returnedStale=!0)),O?D.__staleWhileFetching:D.__returned=D}const B=de(this,Oc).call(this,T);if(!b&&!B)return S&&(S.fetch="hit"),Wt(this,Vt,R1).call(this,T),n&&de(this,z0).call(this,T),S&&de(this,Wf).call(this,S,T),D;const k=Wt(this,Vt,B2).call(this,t,T,F,v),z=k.__staleWhileFetching!==void 0&&s;return S&&(S.fetch=B?"stale":"refresh",z&&B&&(S.returnedStale=!0)),z?k.__staleWhileFetching:k.__returned=k}}async forceFetch(t,r={}){const s=await this.fetch(t,r);if(s===void 0)throw new Error("fetch() returned undefined");return s}memo(t,r={}){const s=de(this,P1);if(!s)throw new Error("no memoMethod provided to constructor");const{context:n,forceRefresh:i,...o}=r,a=this.get(t,o);if(!i&&a!==void 0)return a;const l=s(t,a,{options:o,context:n});return this.set(t,l,o),l}get(t,r={}){const{allowStale:s=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:o}=r,a=de(this,mi).get(t);if(a!==void 0){const l=de(this,Or)[a],c=Wt(this,Vt,pn).call(this,l);return o&&de(this,Wf).call(this,o,a),de(this,Oc).call(this,a)?(o&&(o.get="stale"),c?(o&&s&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),s?l.__staleWhileFetching:void 0):(i||Wt(this,Vt,rA).call(this,t,"expire"),o&&s&&(o.returnedStale=!0),s?l:void 0)):(o&&(o.get="hit"),c?l.__staleWhileFetching:(Wt(this,Vt,R1).call(this,a),n&&de(this,z0).call(this,a),l))}else o&&(o.get="miss")}delete(t){return Wt(this,Vt,rA).call(this,t,"delete")}clear(){return Wt(this,Vt,c7).call(this,"delete")}};mh=new WeakMap,kc=new WeakMap,vh=new WeakMap,H0=new WeakMap,gh=new WeakMap,tS=new WeakMap,P1=new WeakMap,ki=new WeakMap,Bc=new WeakMap,mi=new WeakMap,wn=new WeakMap,Or=new WeakMap,el=new WeakMap,Hc=new WeakMap,oa=new WeakMap,qi=new WeakMap,Sh=new WeakMap,eo=new WeakMap,Ch=new WeakMap,wh=new WeakMap,Gc=new WeakMap,yh=new WeakMap,ev=new WeakMap,tl=new WeakMap,F1=new WeakMap,Vt=new WeakSet,l7=function(){const e=new k2(de(this,mh)),t=new k2(de(this,mh));hr(this,Gc,e),hr(this,wh,t),hr(this,mR,(n,i,o=aw.now())=>{if(t[n]=i!==0?o:0,e[n]=i,i!==0&&this.ttlAutopurge){const a=setTimeout(()=>{de(this,Oc).call(this,n)&&Wt(this,Vt,rA).call(this,de(this,wn)[n],"expire")},i+1);a.unref&&a.unref()}}),hr(this,z0,n=>{t[n]=e[n]!==0?aw.now():0}),hr(this,Wf,(n,i)=>{if(e[i]){const o=e[i],a=t[i];if(!o||!a)return;n.ttl=o,n.start=a,n.now=r||s();const l=n.now-a;n.remainingTTL=o-l}});let r=0;const s=()=>{const n=aw.now();if(this.ttlResolution>0){r=n;const i=setTimeout(()=>r=0,this.ttlResolution);i.unref&&i.unref()}return n};this.getRemainingTTL=n=>{const i=de(this,mi).get(n);if(i===void 0)return 0;const o=e[i],a=t[i];if(!o||!a)return 1/0;const l=(r||s())-a;return o-l},hr(this,Oc,n=>{const i=t[n],o=e[n];return!!o&&!!i&&(r||s())-i>o})},z0=new WeakMap,Wf=new WeakMap,mR=new WeakMap,Oc=new WeakMap,mre=function(){const e=new k2(de(this,mh));hr(this,Bc,0),hr(this,Ch,e),hr(this,Q0,t=>{hr(this,Bc,de(this,Bc)-e[t]),e[t]=0}),hr(this,vR,(t,r,s,n)=>{if(Wt(this,Vt,pn).call(this,r))return 0;if(!Xf(s))if(n){if(typeof n!="function")throw new TypeError("sizeCalculation must be a function");if(s=n(r,t),!Xf(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return s}),hr(this,rS,(t,r,s)=>{if(e[t]=r,de(this,kc)){const n=de(this,kc)-e[t];for(;de(this,Bc)>n;)Wt(this,Vt,CR).call(this,!0)}hr(this,Bc,de(this,Bc)+e[t]),s&&(s.entrySize=r,s.totalCalculatedSize=de(this,Bc))})},Q0=new WeakMap,rS=new WeakMap,vR=new WeakMap,Bf=function*({allowStale:e=this.allowStale}={}){if(de(this,ki))for(let t=de(this,qi);!(!Wt(this,Vt,NI).call(this,t)||((e||!de(this,Oc).call(this,t))&&(yield t),t===de(this,oa)));)t=de(this,Hc)[t]},jf=function*({allowStale:e=this.allowStale}={}){if(de(this,ki))for(let t=de(this,oa);!(!Wt(this,Vt,NI).call(this,t)||((e||!de(this,Oc).call(this,t))&&(yield t),t===de(this,qi)));)t=de(this,el)[t]},NI=function(e){return e!==void 0&&de(this,mi).get(de(this,wn)[e])===e},CR=function(e){var t,r;const s=de(this,oa),n=de(this,wn)[s],i=de(this,Or)[s];return de(this,ev)&&Wt(this,Vt,pn).call(this,i)?i.__abortController.abort(new Error("evicted")):(de(this,yh)||de(this,tl))&&(de(this,yh)&&((t=de(this,vh))==null||t.call(this,i,n,"evict")),de(this,tl)&&((r=de(this,eo))==null||r.push([i,n,"evict"]))),de(this,Q0).call(this,s),e&&(de(this,wn)[s]=void 0,de(this,Or)[s]=void 0,de(this,Sh).push(s)),de(this,ki)===1?(hr(this,oa,hr(this,qi,0)),de(this,Sh).length=0):hr(this,oa,de(this,el)[s]),de(this,mi).delete(n),Uk(this,ki)._--,s},B2=function(e,t,r,s){const n=t===void 0?void 0:de(this,Or)[t];if(Wt(this,Vt,pn).call(this,n))return n;const i=new AR,{signal:o}=r;o==null||o.addEventListener("abort",()=>i.abort(o.reason),{signal:i.signal});const a={signal:i.signal,options:r,context:s},l=(w,v=!1)=>{const{aborted:b}=i.signal,S=r.ignoreFetchAbort&&w!==void 0;if(r.status&&(b&&!v?(r.status.fetchAborted=!0,r.status.fetchError=i.signal.reason,S&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),b&&!S&&!v)return u(i.signal.reason);const P=g;return de(this,Or)[t]===g&&(w===void 0?P.__staleWhileFetching?de(this,Or)[t]=P.__staleWhileFetching:Wt(this,Vt,rA).call(this,e,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(e,w,a.options))),w},c=w=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=w),u(w)),u=w=>{const{aborted:v}=i.signal,b=v&&r.allowStaleOnFetchAbort,S=b||r.allowStaleOnFetchRejection,P=S||r.noDeleteOnFetchRejection,F=g;if(de(this,Or)[t]===g&&(!P||F.__staleWhileFetching===void 0?Wt(this,Vt,rA).call(this,e,"fetch"):b||(de(this,Or)[t]=F.__staleWhileFetching)),S)return r.status&&F.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),F.__staleWhileFetching;if(F.__returned===F)throw w},d=(w,v)=>{var b;const S=(b=de(this,tS))==null?void 0:b.call(this,e,n,a);S&&S instanceof Promise&&S.then(P=>w(P===void 0?void 0:P),v),i.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(w(void 0),r.allowStaleOnFetchAbort&&(w=P=>l(P,!0)))})};r.status&&(r.status.fetchDispatched=!0);const g=new Promise(d).then(l,c),A=Object.assign(g,{__abortController:i,__staleWhileFetching:n,__returned:void 0});return t===void 0?(this.set(e,A,{...a.options,status:void 0}),t=de(this,mi).get(e)):de(this,Or)[t]=A,A},pn=function(e){if(!de(this,ev))return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof AR},_I=function(e,t){de(this,Hc)[t]=e,de(this,el)[e]=t},R1=function(e){e!==de(this,qi)&&(e===de(this,oa)?hr(this,oa,de(this,el)[e]):Wt(this,Vt,_I).call(this,de(this,Hc)[e],de(this,el)[e]),Wt(this,Vt,_I).call(this,de(this,qi),e),hr(this,qi,e))},rA=function(e,t){var r,s,n,i;let o=!1;if(de(this,ki)!==0){const a=de(this,mi).get(e);if(a!==void 0)if(o=!0,de(this,ki)===1)Wt(this,Vt,c7).call(this,t);else{de(this,Q0).call(this,a);const l=de(this,Or)[a];if(Wt(this,Vt,pn).call(this,l)?l.__abortController.abort(new Error("deleted")):(de(this,yh)||de(this,tl))&&(de(this,yh)&&((r=de(this,vh))==null||r.call(this,l,e,t)),de(this,tl)&&((s=de(this,eo))==null||s.push([l,e,t]))),de(this,mi).delete(e),de(this,wn)[a]=void 0,de(this,Or)[a]=void 0,a===de(this,qi))hr(this,qi,de(this,Hc)[a]);else if(a===de(this,oa))hr(this,oa,de(this,el)[a]);else{const c=de(this,Hc)[a];de(this,el)[c]=de(this,el)[a];const u=de(this,el)[a];de(this,Hc)[u]=de(this,Hc)[a]}Uk(this,ki)._--,de(this,Sh).push(a)}}if(de(this,tl)&&(n=de(this,eo))!=null&&n.length){const a=de(this,eo);let l;for(;l=a==null?void 0:a.shift();)(i=de(this,gh))==null||i.call(this,...l)}return o},c7=function(e){var t,r,s;for(const n of Wt(this,Vt,jf).call(this,{allowStale:!0})){const i=de(this,Or)[n];if(Wt(this,Vt,pn).call(this,i))i.__abortController.abort(new Error("deleted"));else{const o=de(this,wn)[n];de(this,yh)&&((t=de(this,vh))==null||t.call(this,i,o,e)),de(this,tl)&&((r=de(this,eo))==null||r.push([i,o,e]))}}if(de(this,mi).clear(),de(this,Or).fill(void 0),de(this,wn).fill(void 0),de(this,Gc)&&de(this,wh)&&(de(this,Gc).fill(0),de(this,wh).fill(0)),de(this,Ch)&&de(this,Ch).fill(0),hr(this,oa,0),hr(this,qi,0),de(this,Sh).length=0,hr(this,Bc,0),hr(this,ki,0),de(this,tl)&&de(this,eo)){const n=de(this,eo);let i;for(;i=n==null?void 0:n.shift();)(s=de(this,gh))==null||s.call(this,...i)}};let uLt=cLt;const dLt={cacheSize:15e6};class hLt{constructor(t){bs(this,"_str"),bs(this,"_rawJson"),bs(this,"_zodSchema"),bs(this,"_validatedJson"),this.bytes=t}get str(){return this._str===void 0&&(this._str=new TextDecoder().decode(this.bytes)),this._str}get rawJson(){return this._rawJson===void 0&&(this._rawJson=JSON.parse(this.str)),this._rawJson}validatedJson(t){return this._zodSchema!==t&&(this._validatedJson=t.parse(this.rawJson),this._zodSchema=t),this._validatedJson}}const BQ=class L2{constructor(t){bs(this,"fileDataCache"),bs(this,"fileDataRefs",new Map);const r={...dLt,...t??{}};this.fileDataCache=new uLt({maxSize:r.cacheSize,fetchMethod:async s=>new hLt(await $X().blobDriver.getContent(s)),sizeCalculation:s=>s.bytes.length,dispose:(s,n)=>{this.fileDataRefs.delete(n)}})}getDataRef(t){const r=this.fileDataRefs.get(t);if(r!==void 0)return r;const s=yU();return this.fileDataRefs.set(t,s),(async()=>{try{const n=await this.fileDataCache.fetch(t);s.value=n}catch(n){console.error(n)}})(),s}getContentBytes(t){if(t===void 0)return;const r=this.getDataRef(t);return Je(()=>{var s;return(s=r.value)==null?void 0:s.bytes})}getContentString(t){if(t===void 0)return;const r=this.getDataRef(t);return Je(()=>{var s;return(s=r==null?void 0:r.value)==null?void 0:s.str})}getContentJson(t,r){if(t===void 0)return;const s=this.getDataRef(t);return Je(()=>{var n,i;return r===void 0?(n=s==null?void 0:s.value)==null?void 0:n.rawJson:(i=s==null?void 0:s.value)==null?void 0:i.validatedJson(r)})}static getContentBytes(t){return L2.globalInstance.getContentBytes(t)}static getContentString(t){return L2.globalInstance.getContentString(t)}static getContentJson(t,r){return L2.globalInstance.getContentJson(t,r)}};bs(BQ,"globalInstance",new BQ);function pLt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gLt=function e(t){if(typeof t=="number"&&isNaN(t))throw new Error("NaN is not allowed");if(typeof t=="number"&&!isFinite(t))throw new Error("Infinity is not allowed");return t===null||typeof t!="object"?JSON.stringify(t):t.toJSON instanceof Function?e(t.toJSON()):Array.isArray(t)?`[${t.reduce((n,i,o)=>`${n}${o===0?"":","}${e(i===void 0||typeof i=="symbol"?null:i)}`,"")}]`:`{${Object.keys(t).sort().reduce((s,n)=>{if(t[n]===void 0||typeof t[n]=="symbol")return s;const i=s.length===0?"":",";return`${s}${i}${e(n)}:${e(t[n])}`},"")}}`};const vy=pLt(gLt);var Cs;(function(e){e.assertEqual=n=>n;function t(n){}e.assertIs=t;function r(n){throw new Error}e.assertNever=r,e.arrayToEnum=n=>{const i={};for(const o of n)i[o]=o;return i},e.getValidEnumValues=n=>{const i=e.objectKeys(n).filter(a=>typeof n[n[a]]!="number"),o={};for(const a of i)o[a]=n[a];return e.objectValues(o)},e.objectValues=n=>e.objectKeys(n).map(function(i){return n[i]}),e.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{const i=[];for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&i.push(o);return i},e.find=(n,i)=>{for(const o of n)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&isFinite(n)&&Math.floor(n)===n;function s(n,i=" | "){return n.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=s,e.jsonStringifyReplacer=(n,i)=>typeof i=="bigint"?i.toString():i})(Cs||(Cs={}));var u7;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(u7||(u7={}));const Ot=Cs.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),$f=e=>{switch(typeof e){case"undefined":return Ot.undefined;case"string":return Ot.string;case"number":return isNaN(e)?Ot.nan:Ot.number;case"boolean":return Ot.boolean;case"function":return Ot.function;case"bigint":return Ot.bigint;case"symbol":return Ot.symbol;case"object":return Array.isArray(e)?Ot.array:e===null?Ot.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ot.promise:typeof Map<"u"&&e instanceof Map?Ot.map:typeof Set<"u"&&e instanceof Set?Ot.set:typeof Date<"u"&&e instanceof Date?Ot.date:Ot.object;default:return Ot.unknown}},mt=Cs.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),fLt=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class jl extends Error{constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const r=t||function(i){return i.message},s={_errors:[]},n=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(n);else if(o.code==="invalid_return_type")n(o.returnTypeError);else if(o.code==="invalid_arguments")n(o.argumentsError);else if(o.path.length===0)s._errors.push(r(o));else{let a=s,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(r(o))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return n(this),s}static assert(t){if(!(t instanceof jl))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Cs.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},s=[];for(const n of this.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):s.push(t(n));return{formErrors:s,fieldErrors:r}}get formErrors(){return this.flatten()}}jl.create=e=>new jl(e);const Vw=(e,t)=>{let r;switch(e.code){case mt.invalid_type:e.received===Ot.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case mt.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Cs.jsonStringifyReplacer)}`;break;case mt.unrecognized_keys:r=`Unrecognized key(s) in object: ${Cs.joinValues(e.keys,", ")}`;break;case mt.invalid_union:r="Invalid input";break;case mt.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Cs.joinValues(e.options)}`;break;case mt.invalid_enum_value:r=`Invalid enum value. Expected ${Cs.joinValues(e.options)}, received '${e.received}'`;break;case mt.invalid_arguments:r="Invalid function arguments";break;case mt.invalid_return_type:r="Invalid function return type";break;case mt.invalid_date:r="Invalid date";break;case mt.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Cs.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case mt.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case mt.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case mt.custom:r="Invalid input";break;case mt.invalid_intersection_types:r="Intersection results could not be merged";break;case mt.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case mt.not_finite:r="Number must be finite";break;default:r=t.defaultError,Cs.assertNever(e)}return{message:r}};let Cre=Vw;function ALt(e){Cre=e}function wR(){return Cre}const yR=e=>{const{data:t,path:r,errorMaps:s,issueData:n}=e,i=[...r,...n.path||[]],o={...n,path:i};if(n.message!==void 0)return{...n,path:i,message:n.message};let a="";const l=s.filter(c=>!!c).slice().reverse();for(const c of l)a=c(o,{data:t,defaultError:a}).message;return{...n,path:i,message:a}},mLt=[];function kt(e,t){const r=wR(),s=yR({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Vw?void 0:Vw].filter(n=>!!n)});e.common.issues.push(s)}class No{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const s=[];for(const n of r){if(n.status==="aborted")return yr;n.status==="dirty"&&t.dirty(),s.push(n.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,r){const s=[];for(const n of r){const i=await n.key,o=await n.value;s.push({key:i,value:o})}return No.mergeObjectSync(t,s)}static mergeObjectSync(t,r){const s={};for(const n of r){const{key:i,value:o}=n;if(i.status==="aborted"||o.status==="aborted")return yr;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||n.alwaysSet)&&(s[i.value]=o.value)}return{status:t.value,value:s}}}const yr=Object.freeze({status:"aborted"}),U0=e=>({status:"dirty",value:e}),Ca=e=>({status:"valid",value:e}),d7=e=>e.status==="aborted",h7=e=>e.status==="dirty",Ax=e=>e.status==="valid",mx=e=>typeof Promise<"u"&&e instanceof Promise;function bR(e,t,r,s){if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function wre(e,t,r,s,n){if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}var qt;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(qt||(qt={}));var T1,D1;class jh{constructor(t,r,s,n){this._cachedPath=[],this.parent=t,this.data=r,this._path=s,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const LQ=(e,t)=>{if(Ax(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new jl(e.common.issues);return this._error=r,this._error}}};function zr(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:s,description:n}=e;if(t&&(r||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:n}:{errorMap:(o,a)=>{var l,c;const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(l=u??s)!==null&&l!==void 0?l:a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:(c=u??r)!==null&&c!==void 0?c:a.defaultError}},description:n}}class Xr{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return $f(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:$f(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new No,ctx:{common:t.parent.common,data:t.data,parsedType:$f(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(mx(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const s=this.safeParse(t,r);if(s.success)return s.data;throw s.error}safeParse(t,r){var s;const n={common:{issues:[],async:(s=r==null?void 0:r.async)!==null&&s!==void 0?s:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:$f(t)},i=this._parseSync({data:t,path:n.path,parent:n});return LQ(n,i)}async parseAsync(t,r){const s=await this.safeParseAsync(t,r);if(s.success)return s.data;throw s.error}async safeParseAsync(t,r){const s={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:$f(t)},n=this._parse({data:t,path:s.path,parent:s}),i=await(mx(n)?n:Promise.resolve(n));return LQ(s,i)}refine(t,r){const s=n=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,i)=>{const o=t(n),a=()=>i.addIssue({code:mt.custom,...s(n)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,r){return this._refinement((s,n)=>t(s)?!0:(n.addIssue(typeof r=="function"?r(s,n):r),!1))}_refinement(t){return new ud({schema:this,typeName:Cr.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Lh.create(this,this._def)}nullable(){return FA.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ed.create(this,this._def)}promise(){return Qw.create(this,this._def)}or(t){return yx.create([this,t],this._def)}and(t){return bx.create(this,t,this._def)}transform(t){return new ud({...zr(this._def),schema:this,typeName:Cr.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new Fx({...zr(this._def),innerType:this,defaultValue:r,typeName:Cr.ZodDefault})}brand(){return new Q6({typeName:Cr.ZodBranded,type:this,...zr(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new Rx({...zr(this._def),innerType:this,catchValue:r,typeName:Cr.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return M3.create(this,t)}readonly(){return Tx.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const vLt=/^c[^\s-]{8,}$/i,CLt=/^[0-9a-z]+$/,wLt=/^[0-9A-HJKMNP-TV-Z]{26}$/,yLt=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,bLt=/^[a-z0-9_-]{21}$/i,SLt=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,xLt=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ELt="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let VI;const PLt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,FLt=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,RLt=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,yre="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",TLt=new RegExp(`^${yre}$`);function bre(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function DLt(e){return new RegExp(`^${bre(e)}$`)}function Sre(e){let t=`${yre}T${bre(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function MLt(e,t){return!!((t==="v4"||!t)&&PLt.test(e)||(t==="v6"||!t)&&FLt.test(e))}class Uu extends Xr{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ot.string){const i=this._getOrReturnCtx(t);return kt(i,{code:mt.invalid_type,expected:Ot.string,received:i.parsedType}),yr}const s=new No;let n;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(n=this._getOrReturnCtx(t,n),kt(n,{code:mt.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="max")t.data.length>i.value&&(n=this._getOrReturnCtx(t,n),kt(n,{code:mt.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,a=t.data.length<i.value;(o||a)&&(n=this._getOrReturnCtx(t,n),o?kt(n,{code:mt.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&kt(n,{code:mt.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),s.dirty())}else if(i.kind==="email")xLt.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"email",code:mt.invalid_string,message:i.message}),s.dirty());else if(i.kind==="emoji")VI||(VI=new RegExp(ELt,"u")),VI.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"emoji",code:mt.invalid_string,message:i.message}),s.dirty());else if(i.kind==="uuid")yLt.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"uuid",code:mt.invalid_string,message:i.message}),s.dirty());else if(i.kind==="nanoid")bLt.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"nanoid",code:mt.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid")vLt.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"cuid",code:mt.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid2")CLt.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"cuid2",code:mt.invalid_string,message:i.message}),s.dirty());else if(i.kind==="ulid")wLt.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"ulid",code:mt.invalid_string,message:i.message}),s.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{n=this._getOrReturnCtx(t,n),kt(n,{validation:"url",code:mt.invalid_string,message:i.message}),s.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"regex",code:mt.invalid_string,message:i.message}),s.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(n=this._getOrReturnCtx(t,n),kt(n,{code:mt.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),s.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(n=this._getOrReturnCtx(t,n),kt(n,{code:mt.invalid_string,validation:{startsWith:i.value},message:i.message}),s.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(n=this._getOrReturnCtx(t,n),kt(n,{code:mt.invalid_string,validation:{endsWith:i.value},message:i.message}),s.dirty()):i.kind==="datetime"?Sre(i).test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{code:mt.invalid_string,validation:"datetime",message:i.message}),s.dirty()):i.kind==="date"?TLt.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{code:mt.invalid_string,validation:"date",message:i.message}),s.dirty()):i.kind==="time"?DLt(i).test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{code:mt.invalid_string,validation:"time",message:i.message}),s.dirty()):i.kind==="duration"?SLt.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"duration",code:mt.invalid_string,message:i.message}),s.dirty()):i.kind==="ip"?MLt(t.data,i.version)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"ip",code:mt.invalid_string,message:i.message}),s.dirty()):i.kind==="base64"?RLt.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"base64",code:mt.invalid_string,message:i.message}),s.dirty()):Cs.assertNever(i);return{status:s.value,value:t.data}}_regex(t,r,s){return this.refinement(n=>t.test(n),{validation:r,code:mt.invalid_string,...qt.errToObj(s)})}_addCheck(t){return new Uu({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...qt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...qt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...qt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...qt.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...qt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...qt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...qt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...qt.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...qt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...qt.errToObj(t)})}datetime(t){var r,s;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,local:(s=t==null?void 0:t.local)!==null&&s!==void 0?s:!1,...qt.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...qt.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...qt.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...qt.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...qt.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...qt.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...qt.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...qt.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...qt.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...qt.errToObj(r)})}nonempty(t){return this.min(1,qt.errToObj(t))}trim(){return new Uu({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Uu({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Uu({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}Uu.create=e=>{var t;return new Uu({checks:[],typeName:Cr.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...zr(e)})};function ILt(e,t){const r=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,n=r>s?r:s,i=parseInt(e.toFixed(n).replace(".","")),o=parseInt(t.toFixed(n).replace(".",""));return i%o/Math.pow(10,n)}class xA extends Xr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ot.number){const i=this._getOrReturnCtx(t);return kt(i,{code:mt.invalid_type,expected:Ot.number,received:i.parsedType}),yr}let s;const n=new No;for(const i of this._def.checks)i.kind==="int"?Cs.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),kt(s,{code:mt.invalid_type,expected:"integer",received:"float",message:i.message}),n.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),kt(s,{code:mt.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),kt(s,{code:mt.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):i.kind==="multipleOf"?ILt(t.data,i.value)!==0&&(s=this._getOrReturnCtx(t,s),kt(s,{code:mt.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),kt(s,{code:mt.not_finite,message:i.message}),n.dirty()):Cs.assertNever(i);return{status:n.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,qt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,qt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,qt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,qt.toString(r))}setLimit(t,r,s,n){return new xA({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:s,message:qt.toString(n)}]})}_addCheck(t){return new xA({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:qt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:qt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:qt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:qt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:qt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:qt.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:qt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:qt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:qt.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Cs.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(r===null||s.value>r)&&(r=s.value):s.kind==="max"&&(t===null||s.value<t)&&(t=s.value)}return Number.isFinite(r)&&Number.isFinite(t)}}xA.create=e=>new xA({checks:[],typeName:Cr.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...zr(e)});class EA extends Xr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==Ot.bigint){const i=this._getOrReturnCtx(t);return kt(i,{code:mt.invalid_type,expected:Ot.bigint,received:i.parsedType}),yr}let s;const n=new No;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),kt(s,{code:mt.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),kt(s,{code:mt.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),kt(s,{code:mt.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):Cs.assertNever(i);return{status:n.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,qt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,qt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,qt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,qt.toString(r))}setLimit(t,r,s,n){return new EA({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:s,message:qt.toString(n)}]})}_addCheck(t){return new EA({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:qt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:qt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:qt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:qt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:qt.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}EA.create=e=>{var t;return new EA({checks:[],typeName:Cr.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...zr(e)})};class vx extends Xr{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ot.boolean){const s=this._getOrReturnCtx(t);return kt(s,{code:mt.invalid_type,expected:Ot.boolean,received:s.parsedType}),yr}return Ca(t.data)}}vx.create=e=>new vx({typeName:Cr.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...zr(e)});class kv extends Xr{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ot.date){const i=this._getOrReturnCtx(t);return kt(i,{code:mt.invalid_type,expected:Ot.date,received:i.parsedType}),yr}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return kt(i,{code:mt.invalid_date}),yr}const s=new No;let n;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(n=this._getOrReturnCtx(t,n),kt(n,{code:mt.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),s.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(n=this._getOrReturnCtx(t,n),kt(n,{code:mt.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),s.dirty()):Cs.assertNever(i);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new kv({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:qt.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:qt.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}kv.create=e=>new kv({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Cr.ZodDate,...zr(e)});class SR extends Xr{_parse(t){if(this._getType(t)!==Ot.symbol){const s=this._getOrReturnCtx(t);return kt(s,{code:mt.invalid_type,expected:Ot.symbol,received:s.parsedType}),yr}return Ca(t.data)}}SR.create=e=>new SR({typeName:Cr.ZodSymbol,...zr(e)});class Cx extends Xr{_parse(t){if(this._getType(t)!==Ot.undefined){const s=this._getOrReturnCtx(t);return kt(s,{code:mt.invalid_type,expected:Ot.undefined,received:s.parsedType}),yr}return Ca(t.data)}}Cx.create=e=>new Cx({typeName:Cr.ZodUndefined,...zr(e)});class wx extends Xr{_parse(t){if(this._getType(t)!==Ot.null){const s=this._getOrReturnCtx(t);return kt(s,{code:mt.invalid_type,expected:Ot.null,received:s.parsedType}),yr}return Ca(t.data)}}wx.create=e=>new wx({typeName:Cr.ZodNull,...zr(e)});class zw extends Xr{constructor(){super(...arguments),this._any=!0}_parse(t){return Ca(t.data)}}zw.create=e=>new zw({typeName:Cr.ZodAny,...zr(e)});class pv extends Xr{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ca(t.data)}}pv.create=e=>new pv({typeName:Cr.ZodUnknown,...zr(e)});class bg extends Xr{_parse(t){const r=this._getOrReturnCtx(t);return kt(r,{code:mt.invalid_type,expected:Ot.never,received:r.parsedType}),yr}}bg.create=e=>new bg({typeName:Cr.ZodNever,...zr(e)});class xR extends Xr{_parse(t){if(this._getType(t)!==Ot.undefined){const s=this._getOrReturnCtx(t);return kt(s,{code:mt.invalid_type,expected:Ot.void,received:s.parsedType}),yr}return Ca(t.data)}}xR.create=e=>new xR({typeName:Cr.ZodVoid,...zr(e)});class ed extends Xr{_parse(t){const{ctx:r,status:s}=this._processInputParams(t),n=this._def;if(r.parsedType!==Ot.array)return kt(r,{code:mt.invalid_type,expected:Ot.array,received:r.parsedType}),yr;if(n.exactLength!==null){const o=r.data.length>n.exactLength.value,a=r.data.length<n.exactLength.value;(o||a)&&(kt(r,{code:o?mt.too_big:mt.too_small,minimum:a?n.exactLength.value:void 0,maximum:o?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),s.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(kt(r,{code:mt.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),s.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(kt(r,{code:mt.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),s.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>n.type._parseAsync(new jh(r,o,r.path,a)))).then(o=>No.mergeArray(s,o));const i=[...r.data].map((o,a)=>n.type._parseSync(new jh(r,o,r.path,a)));return No.mergeArray(s,i)}get element(){return this._def.type}min(t,r){return new ed({...this._def,minLength:{value:t,message:qt.toString(r)}})}max(t,r){return new ed({...this._def,maxLength:{value:t,message:qt.toString(r)}})}length(t,r){return new ed({...this._def,exactLength:{value:t,message:qt.toString(r)}})}nonempty(t){return this.min(1,t)}}ed.create=(e,t)=>new ed({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Cr.ZodArray,...zr(t)});function G0(e){if(e instanceof Rn){const t={};for(const r in e.shape){const s=e.shape[r];t[r]=Lh.create(G0(s))}return new Rn({...e._def,shape:()=>t})}else return e instanceof ed?new ed({...e._def,type:G0(e.element)}):e instanceof Lh?Lh.create(G0(e.unwrap())):e instanceof FA?FA.create(G0(e.unwrap())):e instanceof Kh?Kh.create(e.items.map(t=>G0(t))):e}class Rn extends Xr{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=Cs.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==Ot.object){const c=this._getOrReturnCtx(t);return kt(c,{code:mt.invalid_type,expected:Ot.object,received:c.parsedType}),yr}const{status:s,ctx:n}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof bg&&this._def.unknownKeys==="strip"))for(const c in n.data)o.includes(c)||a.push(c);const l=[];for(const c of o){const u=i[c],d=n.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new jh(n,d,n.path,c)),alwaysSet:c in n.data})}if(this._def.catchall instanceof bg){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:n.data[u]}});else if(c==="strict")a.length>0&&(kt(n,{code:mt.unrecognized_keys,keys:a}),s.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const d=n.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new jh(n,d,n.path,u)),alwaysSet:u in n.data})}}return n.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key,g=await u.value;c.push({key:d,value:g,alwaysSet:u.alwaysSet})}return c}).then(c=>No.mergeObjectSync(s,c)):No.mergeObjectSync(s,l)}get shape(){return this._def.shape()}strict(t){return qt.errToObj,new Rn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,s)=>{var n,i,o,a;const l=(o=(i=(n=this._def).errorMap)===null||i===void 0?void 0:i.call(n,r,s).message)!==null&&o!==void 0?o:s.defaultError;return r.code==="unrecognized_keys"?{message:(a=qt.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new Rn({...this._def,unknownKeys:"strip"})}passthrough(){return new Rn({...this._def,unknownKeys:"passthrough"})}extend(t){return new Rn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Rn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Cr.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new Rn({...this._def,catchall:t})}pick(t){const r={};return Cs.objectKeys(t).forEach(s=>{t[s]&&this.shape[s]&&(r[s]=this.shape[s])}),new Rn({...this._def,shape:()=>r})}omit(t){const r={};return Cs.objectKeys(this.shape).forEach(s=>{t[s]||(r[s]=this.shape[s])}),new Rn({...this._def,shape:()=>r})}deepPartial(){return G0(this)}partial(t){const r={};return Cs.objectKeys(this.shape).forEach(s=>{const n=this.shape[s];t&&!t[s]?r[s]=n:r[s]=n.optional()}),new Rn({...this._def,shape:()=>r})}required(t){const r={};return Cs.objectKeys(this.shape).forEach(s=>{if(t&&!t[s])r[s]=this.shape[s];else{let i=this.shape[s];for(;i instanceof Lh;)i=i._def.innerType;r[s]=i}}),new Rn({...this._def,shape:()=>r})}keyof(){return xre(Cs.objectKeys(this.shape))}}Rn.create=(e,t)=>new Rn({shape:()=>e,unknownKeys:"strip",catchall:bg.create(),typeName:Cr.ZodObject,...zr(t)});Rn.strictCreate=(e,t)=>new Rn({shape:()=>e,unknownKeys:"strict",catchall:bg.create(),typeName:Cr.ZodObject,...zr(t)});Rn.lazycreate=(e,t)=>new Rn({shape:e,unknownKeys:"strip",catchall:bg.create(),typeName:Cr.ZodObject,...zr(t)});class yx extends Xr{_parse(t){const{ctx:r}=this._processInputParams(t),s=this._def.options;function n(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new jl(a.ctx.common.issues));return kt(r,{code:mt.invalid_union,unionErrors:o}),yr}if(r.common.async)return Promise.all(s.map(async i=>{const o={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(n);{let i;const o=[];for(const l of s){const c={...r,common:{...r.common,issues:[]},parent:null},u=l._parseSync({data:r.data,path:r.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(l=>new jl(l));return kt(r,{code:mt.invalid_union,unionErrors:a}),yr}}get options(){return this._def.options}}yx.create=(e,t)=>new yx({options:e,typeName:Cr.ZodUnion,...zr(t)});const Zp=e=>e instanceof xx?Zp(e.schema):e instanceof ud?Zp(e.innerType()):e instanceof Ex?[e.value]:e instanceof PA?e.options:e instanceof Px?Cs.objectValues(e.enum):e instanceof Fx?Zp(e._def.innerType):e instanceof Cx?[void 0]:e instanceof wx?[null]:e instanceof Lh?[void 0,...Zp(e.unwrap())]:e instanceof FA?[null,...Zp(e.unwrap())]:e instanceof Q6||e instanceof Tx?Zp(e.unwrap()):e instanceof Rx?Zp(e._def.innerType):[];class wD extends Xr{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ot.object)return kt(r,{code:mt.invalid_type,expected:Ot.object,received:r.parsedType}),yr;const s=this.discriminator,n=r.data[s],i=this.optionsMap.get(n);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(kt(r,{code:mt.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),yr)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,s){const n=new Map;for(const i of r){const o=Zp(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of o){if(n.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);n.set(a,i)}}return new wD({typeName:Cr.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:n,...zr(s)})}}function p7(e,t){const r=$f(e),s=$f(t);if(e===t)return{valid:!0,data:e};if(r===Ot.object&&s===Ot.object){const n=Cs.objectKeys(t),i=Cs.objectKeys(e).filter(a=>n.indexOf(a)!==-1),o={...e,...t};for(const a of i){const l=p7(e[a],t[a]);if(!l.valid)return{valid:!1};o[a]=l.data}return{valid:!0,data:o}}else if(r===Ot.array&&s===Ot.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let i=0;i<e.length;i++){const o=e[i],a=t[i],l=p7(o,a);if(!l.valid)return{valid:!1};n.push(l.data)}return{valid:!0,data:n}}else return r===Ot.date&&s===Ot.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class bx extends Xr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t),n=(i,o)=>{if(d7(i)||d7(o))return yr;const a=p7(i.value,o.value);return a.valid?((h7(i)||h7(o))&&r.dirty(),{status:r.value,value:a.data}):(kt(s,{code:mt.invalid_intersection_types}),yr)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,o])=>n(i,o)):n(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}bx.create=(e,t,r)=>new bx({left:e,right:t,typeName:Cr.ZodIntersection,...zr(r)});class Kh extends Xr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Ot.array)return kt(s,{code:mt.invalid_type,expected:Ot.array,received:s.parsedType}),yr;if(s.data.length<this._def.items.length)return kt(s,{code:mt.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),yr;!this._def.rest&&s.data.length>this._def.items.length&&(kt(s,{code:mt.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const i=[...s.data].map((o,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new jh(s,o,s.path,a)):null}).filter(o=>!!o);return s.common.async?Promise.all(i).then(o=>No.mergeArray(r,o)):No.mergeArray(r,i)}get items(){return this._def.items}rest(t){return new Kh({...this._def,rest:t})}}Kh.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Kh({items:e,typeName:Cr.ZodTuple,rest:null,...zr(t)})};class Sx extends Xr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Ot.object)return kt(s,{code:mt.invalid_type,expected:Ot.object,received:s.parsedType}),yr;const n=[],i=this._def.keyType,o=this._def.valueType;for(const a in s.data)n.push({key:i._parse(new jh(s,a,s.path,a)),value:o._parse(new jh(s,s.data[a],s.path,a)),alwaysSet:a in s.data});return s.common.async?No.mergeObjectAsync(r,n):No.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(t,r,s){return r instanceof Xr?new Sx({keyType:t,valueType:r,typeName:Cr.ZodRecord,...zr(s)}):new Sx({keyType:Uu.create(),valueType:t,typeName:Cr.ZodRecord,...zr(r)})}}class ER extends Xr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Ot.map)return kt(s,{code:mt.invalid_type,expected:Ot.map,received:s.parsedType}),yr;const n=this._def.keyType,i=this._def.valueType,o=[...s.data.entries()].map(([a,l],c)=>({key:n._parse(new jh(s,a,s.path,[c,"key"])),value:i._parse(new jh(s,l,s.path,[c,"value"]))}));if(s.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of o){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return yr;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(c.value,u.value)}return{status:r.value,value:a}})}else{const a=new Map;for(const l of o){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return yr;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(c.value,u.value)}return{status:r.value,value:a}}}}ER.create=(e,t,r)=>new ER({valueType:t,keyType:e,typeName:Cr.ZodMap,...zr(r)});class Bv extends Xr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Ot.set)return kt(s,{code:mt.invalid_type,expected:Ot.set,received:s.parsedType}),yr;const n=this._def;n.minSize!==null&&s.data.size<n.minSize.value&&(kt(s,{code:mt.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&s.data.size>n.maxSize.value&&(kt(s,{code:mt.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());const i=this._def.valueType;function o(l){const c=new Set;for(const u of l){if(u.status==="aborted")return yr;u.status==="dirty"&&r.dirty(),c.add(u.value)}return{status:r.value,value:c}}const a=[...s.data.values()].map((l,c)=>i._parse(new jh(s,l,s.path,c)));return s.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(t,r){return new Bv({...this._def,minSize:{value:t,message:qt.toString(r)}})}max(t,r){return new Bv({...this._def,maxSize:{value:t,message:qt.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}Bv.create=(e,t)=>new Bv({valueType:e,minSize:null,maxSize:null,typeName:Cr.ZodSet,...zr(t)});class lw extends Xr{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ot.function)return kt(r,{code:mt.invalid_type,expected:Ot.function,received:r.parsedType}),yr;function s(a,l){return yR({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,wR(),Vw].filter(c=>!!c),issueData:{code:mt.invalid_arguments,argumentsError:l}})}function n(a,l){return yR({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,wR(),Vw].filter(c=>!!c),issueData:{code:mt.invalid_return_type,returnTypeError:l}})}const i={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Qw){const a=this;return Ca(async function(...l){const c=new jl([]),u=await a._def.args.parseAsync(l,i).catch(A=>{throw c.addIssue(s(l,A)),c}),d=await Reflect.apply(o,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(A=>{throw c.addIssue(n(d,A)),c})})}else{const a=this;return Ca(function(...l){const c=a._def.args.safeParse(l,i);if(!c.success)throw new jl([s(l,c.error)]);const u=Reflect.apply(o,this,c.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new jl([n(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new lw({...this._def,args:Kh.create(t).rest(pv.create())})}returns(t){return new lw({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,s){return new lw({args:t||Kh.create([]).rest(pv.create()),returns:r||pv.create(),typeName:Cr.ZodFunction,...zr(s)})}}class xx extends Xr{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}xx.create=(e,t)=>new xx({getter:e,typeName:Cr.ZodLazy,...zr(t)});class Ex extends Xr{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return kt(r,{received:r.data,code:mt.invalid_literal,expected:this._def.value}),yr}return{status:"valid",value:t.data}}get value(){return this._def.value}}Ex.create=(e,t)=>new Ex({value:e,typeName:Cr.ZodLiteral,...zr(t)});function xre(e,t){return new PA({values:e,typeName:Cr.ZodEnum,...zr(t)})}class PA extends Xr{constructor(){super(...arguments),T1.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),s=this._def.values;return kt(r,{expected:Cs.joinValues(s),received:r.parsedType,code:mt.invalid_type}),yr}if(bR(this,T1)||wre(this,T1,new Set(this._def.values)),!bR(this,T1).has(t.data)){const r=this._getOrReturnCtx(t),s=this._def.values;return kt(r,{received:r.data,code:mt.invalid_enum_value,options:s}),yr}return Ca(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return PA.create(t,{...this._def,...r})}exclude(t,r=this._def){return PA.create(this.options.filter(s=>!t.includes(s)),{...this._def,...r})}}T1=new WeakMap;PA.create=xre;class Px extends Xr{constructor(){super(...arguments),D1.set(this,void 0)}_parse(t){const r=Cs.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==Ot.string&&s.parsedType!==Ot.number){const n=Cs.objectValues(r);return kt(s,{expected:Cs.joinValues(n),received:s.parsedType,code:mt.invalid_type}),yr}if(bR(this,D1)||wre(this,D1,new Set(Cs.getValidEnumValues(this._def.values))),!bR(this,D1).has(t.data)){const n=Cs.objectValues(r);return kt(s,{received:s.data,code:mt.invalid_enum_value,options:n}),yr}return Ca(t.data)}get enum(){return this._def.values}}D1=new WeakMap;Px.create=(e,t)=>new Px({values:e,typeName:Cr.ZodNativeEnum,...zr(t)});class Qw extends Xr{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ot.promise&&r.common.async===!1)return kt(r,{code:mt.invalid_type,expected:Ot.promise,received:r.parsedType}),yr;const s=r.parsedType===Ot.promise?r.data:Promise.resolve(r.data);return Ca(s.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Qw.create=(e,t)=>new Qw({type:e,typeName:Cr.ZodPromise,...zr(t)});class ud extends Xr{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Cr.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:s}=this._processInputParams(t),n=this._def.effect||null,i={addIssue:o=>{kt(s,o),o.fatal?r.abort():r.dirty()},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),n.type==="preprocess"){const o=n.transform(s.data,i);if(s.common.async)return Promise.resolve(o).then(async a=>{if(r.value==="aborted")return yr;const l=await this._def.schema._parseAsync({data:a,path:s.path,parent:s});return l.status==="aborted"?yr:l.status==="dirty"||r.value==="dirty"?U0(l.value):l});{if(r.value==="aborted")return yr;const a=this._def.schema._parseSync({data:o,path:s.path,parent:s});return a.status==="aborted"?yr:a.status==="dirty"||r.value==="dirty"?U0(a.value):a}}if(n.type==="refinement"){const o=a=>{const l=n.refinement(a,i);if(s.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(s.common.async===!1){const a=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?yr:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(a=>a.status==="aborted"?yr:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(n.type==="transform")if(s.common.async===!1){const o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Ax(o))return o;const a=n.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>Ax(o)?Promise.resolve(n.transform(o.value,i)).then(a=>({status:r.value,value:a})):o);Cs.assertNever(n)}}ud.create=(e,t,r)=>new ud({schema:e,typeName:Cr.ZodEffects,effect:t,...zr(r)});ud.createWithPreprocess=(e,t,r)=>new ud({schema:t,effect:{type:"preprocess",transform:e},typeName:Cr.ZodEffects,...zr(r)});class Lh extends Xr{_parse(t){return this._getType(t)===Ot.undefined?Ca(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Lh.create=(e,t)=>new Lh({innerType:e,typeName:Cr.ZodOptional,...zr(t)});class FA extends Xr{_parse(t){return this._getType(t)===Ot.null?Ca(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}FA.create=(e,t)=>new FA({innerType:e,typeName:Cr.ZodNullable,...zr(t)});class Fx extends Xr{_parse(t){const{ctx:r}=this._processInputParams(t);let s=r.data;return r.parsedType===Ot.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Fx.create=(e,t)=>new Fx({innerType:e,typeName:Cr.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...zr(t)});class Rx extends Xr{_parse(t){const{ctx:r}=this._processInputParams(t),s={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return mx(n)?n.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new jl(s.common.issues)},input:s.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new jl(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}Rx.create=(e,t)=>new Rx({innerType:e,typeName:Cr.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...zr(t)});class PR extends Xr{_parse(t){if(this._getType(t)!==Ot.nan){const s=this._getOrReturnCtx(t);return kt(s,{code:mt.invalid_type,expected:Ot.nan,received:s.parsedType}),yr}return{status:"valid",value:t.data}}}PR.create=e=>new PR({typeName:Cr.ZodNaN,...zr(e)});const kLt=Symbol("zod_brand");class Q6 extends Xr{_parse(t){const{ctx:r}=this._processInputParams(t),s=r.data;return this._def.type._parse({data:s,path:r.path,parent:r})}unwrap(){return this._def.type}}class M3 extends Xr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?yr:i.status==="dirty"?(r.dirty(),U0(i.value)):this._def.out._parseAsync({data:i.value,path:s.path,parent:s})})();{const n=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?yr:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:s.path,parent:s})}}static create(t,r){return new M3({in:t,out:r,typeName:Cr.ZodPipeline})}}class Tx extends Xr{_parse(t){const r=this._def.innerType._parse(t),s=n=>(Ax(n)&&(n.value=Object.freeze(n.value)),n);return mx(r)?r.then(n=>s(n)):s(r)}unwrap(){return this._def.innerType}}Tx.create=(e,t)=>new Tx({innerType:e,typeName:Cr.ZodReadonly,...zr(t)});function Ere(e,t={},r){return e?zw.create().superRefine((s,n)=>{var i,o;if(!e(s)){const a=typeof t=="function"?t(s):typeof t=="string"?{message:t}:t,l=(o=(i=a.fatal)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:!0,c=typeof a=="string"?{message:a}:a;n.addIssue({code:"custom",...c,fatal:l})}}):zw.create()}const BLt={object:Rn.lazycreate};var Cr;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Cr||(Cr={}));const LLt=(e,t={message:`Input not instance of ${e.name}`})=>Ere(r=>r instanceof e,t),Pre=Uu.create,Fre=xA.create,HLt=PR.create,GLt=EA.create,Rre=vx.create,OLt=kv.create,NLt=SR.create,_Lt=Cx.create,VLt=wx.create,zLt=zw.create,QLt=pv.create,ULt=bg.create,WLt=xR.create,jLt=ed.create,KLt=Rn.create,YLt=Rn.strictCreate,ZLt=yx.create,XLt=wD.create,$Lt=bx.create,JLt=Kh.create,qLt=Sx.create,e5t=ER.create,t5t=Bv.create,r5t=lw.create,s5t=xx.create,n5t=Ex.create,i5t=PA.create,o5t=Px.create,a5t=Qw.create,HQ=ud.create,l5t=Lh.create,c5t=FA.create,u5t=ud.createWithPreprocess,d5t=M3.create,h5t=()=>Pre().optional(),p5t=()=>Fre().optional(),g5t=()=>Rre().optional(),f5t={string:e=>Uu.create({...e,coerce:!0}),number:e=>xA.create({...e,coerce:!0}),boolean:e=>vx.create({...e,coerce:!0}),bigint:e=>EA.create({...e,coerce:!0}),date:e=>kv.create({...e,coerce:!0})},A5t=yr;var us=Object.freeze({__proto__:null,defaultErrorMap:Vw,setErrorMap:ALt,getErrorMap:wR,makeIssue:yR,EMPTY_PATH:mLt,addIssueToContext:kt,ParseStatus:No,INVALID:yr,DIRTY:U0,OK:Ca,isAborted:d7,isDirty:h7,isValid:Ax,isAsync:mx,get util(){return Cs},get objectUtil(){return u7},ZodParsedType:Ot,getParsedType:$f,ZodType:Xr,datetimeRegex:Sre,ZodString:Uu,ZodNumber:xA,ZodBigInt:EA,ZodBoolean:vx,ZodDate:kv,ZodSymbol:SR,ZodUndefined:Cx,ZodNull:wx,ZodAny:zw,ZodUnknown:pv,ZodNever:bg,ZodVoid:xR,ZodArray:ed,ZodObject:Rn,ZodUnion:yx,ZodDiscriminatedUnion:wD,ZodIntersection:bx,ZodTuple:Kh,ZodRecord:Sx,ZodMap:ER,ZodSet:Bv,ZodFunction:lw,ZodLazy:xx,ZodLiteral:Ex,ZodEnum:PA,ZodNativeEnum:Px,ZodPromise:Qw,ZodEffects:ud,ZodTransformer:ud,ZodOptional:Lh,ZodNullable:FA,ZodDefault:Fx,ZodCatch:Rx,ZodNaN:PR,BRAND:kLt,ZodBranded:Q6,ZodPipeline:M3,ZodReadonly:Tx,custom:Ere,Schema:Xr,ZodSchema:Xr,late:BLt,get ZodFirstPartyTypeKind(){return Cr},coerce:f5t,any:zLt,array:jLt,bigint:GLt,boolean:Rre,date:OLt,discriminatedUnion:XLt,effect:HQ,enum:i5t,function:r5t,instanceof:LLt,intersection:$Lt,lazy:s5t,literal:n5t,map:e5t,nan:HLt,nativeEnum:o5t,never:ULt,null:VLt,nullable:c5t,number:Fre,object:KLt,oboolean:g5t,onumber:p5t,optional:l5t,ostring:h5t,pipeline:d5t,preprocess:u5t,promise:a5t,record:qLt,set:t5t,strictObject:YLt,string:Pre,symbol:NLt,transformer:HQ,tuple:JLt,undefined:_Lt,union:ZLt,unknown:QLt,void:WLt,NEVER:A5t,ZodIssueCode:mt,quotelessJson:fLt,ZodError:jl}),m5t=Object.defineProperty,v5t=(e,t,r)=>t in e?m5t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,r2=(e,t,r)=>v5t(e,typeof t!="symbol"?t+"":t,r);function Tre(e){throw new Error("Unexpected object: "+e)}function U6(e){if(!e||typeof e!="object")return!1;const t=e;if(!("type"in t))return!1;switch(t.type){case"Json":return typeof t.keyLength=="number"&&t.data!==void 0&&typeof t.data=="object";case"JsonPartitioned":return typeof t.partitionKeyLength=="number"&&t.parts!==void 0&&typeof t.parts=="object";case"BinaryPartitioned":return typeof t.partitionKeyLength=="number"&&t.parts!==void 0&&typeof t.parts=="object";default:return!1}}function C5t(e,t){if(e!==void 0)switch(e.type){case"Json":return e;case"JsonPartitioned":{const r={};for(const[s,n]of Object.entries(e.parts))r[s]=t(n);return{...e,parts:r}}case"BinaryPartitioned":{const r={};for(const[s,n]of Object.entries(e.parts))r[s]={index:t(n.index),values:t(n.values)};return{...e,parts:r}}}}function W6(e){if(!e||typeof e!="object")return!1;const t=e;if(!("type"in t))return!1;switch(t.type){case"Json":return typeof t.keyLength=="number"&&Array.isArray(t.data);case"JsonPartitioned":return typeof t.partitionKeyLength=="number"&&Array.isArray(t.parts);case"BinaryPartitioned":return typeof t.partitionKeyLength=="number"&&Array.isArray(t.parts);default:return!1}}function w5t(e){return W6(e)?e.type==="JsonPartitioned"||e.type==="BinaryPartitioned":!1}function y5t(e){switch(e.type){case"Json":{const t=Object.entries(e.data).map(([r,s])=>({key:JSON.parse(r),value:s}));return{type:"Json",keyLength:e.keyLength,data:t}}case"JsonPartitioned":{const t=Object.entries(e.parts).map(([r,s])=>({key:JSON.parse(r),value:s}));return{type:"JsonPartitioned",partitionKeyLength:e.partitionKeyLength,parts:t}}case"BinaryPartitioned":{const t=Object.entries(e.parts).map(([r,s])=>({key:JSON.parse(r),value:s}));return{type:"BinaryPartitioned",partitionKeyLength:e.partitionKeyLength,parts:t}}}}function b5t(e){switch(e.type){case"Json":{const t={};for(const r of e.data)t[JSON.stringify(r.key)]=r.value;return{type:"Json",keyLength:e.keyLength,data:t}}case"JsonPartitioned":{const t={};for(const r of e.parts)t[JSON.stringify(r.key)]=r.value;return{type:"JsonPartitioned",partitionKeyLength:e.partitionKeyLength,parts:t}}case"BinaryPartitioned":{const t={};for(const r of e.parts)t[JSON.stringify(r.key)]=r.value;return{type:"BinaryPartitioned",partitionKeyLength:e.partitionKeyLength,parts:t}}}}function RA(e){const{type:t,name:r,domain:s}=e;return{type:t,name:r,...s&&{domain:s}}}function S5t(e){return e.map(RA)}function x5t(e){return vy(RA(e))}function E5t(e,t){if(e===void 0)return t===void 0;if(t===void 0)return!0;for(const r in t)if(e[r]!==t[r])return!1;return!0}function P5t(e,t){return e.name===t.name&&E5t(e.domain,t.domain)}function F5t(e,t){return{...e,src:H2(e.src,t)}}function H2(e,t){switch(e.type){case"column":return{type:"column",column:t(e.column)};case"slicedColumn":return{type:"slicedColumn",column:t(e.column),newId:e.newId,axisFilters:e.axisFilters};case"inlineColumn":return e;case"inner":case"full":return{type:e.type,entries:e.entries.map(r=>H2(r,t))};case"outer":return{type:"outer",primary:H2(e.primary,t),secondary:e.secondary.map(r=>H2(r,t))};default:Tre(e)}}function R5t(e){return vy(e)}function GQ(e){return vy(RA(e))}function OQ(e,t){return JSON.stringify([e,t])}class NQ{constructor(t){r2(this,"domains",new Map),r2(this,"axes",new Map),r2(this,"domainPacks",[]),r2(this,"domainPackToAnchor",new Map),this.anchors=t;const r=Object.entries(t);r.sort((s,n)=>s[0].localeCompare(n[0]));for(const[s,n]of r){for(let i=0;i<n.axesSpec.length;i++){const o=n.axesSpec[i],a=GQ(o);this.axes.set(a,{anchor:s,idx:i})}if(n.domain!==void 0){const i=Object.entries(n.domain);i.sort((o,a)=>o[0].localeCompare(a[0])),this.domainPackToAnchor.set(JSON.stringify(i),s),this.domainPacks.push(i.map(([o])=>o));for(const[o,a]of i){const l=OQ(o,a);this.domains.set(l,s)}}}}derive(t,r){const s={name:t.name,axes:[]};let n;if(t.domain!==void 0)e:for(const o of this.domainPacks){const a=[];for(const c of o){const u=t.domain[c];if(u!==void 0)a.push([c,u]);else break e}const l=this.domainPackToAnchor.get(JSON.stringify(a));if(l!==void 0){s.domainAnchor=l,n=new Set(o);break}}for(const[o,a]of Object.entries(t.domain??{})){if(n!==void 0&&n.has(o))continue;const l=OQ(o,a),c=this.domains.get(l);s.domain??(s.domain={}),s.domain[o]=c?{anchor:c}:a}if(s.axes=t.axesSpec.map(o=>{const a=GQ(o),l=this.axes.get(a);return l===void 0?RA(o):l}),!r||r.length===0)return s;const i=[];for(const o of r){const[a,l]=o;if(typeof a=="number"){if(a<0||a>=t.axesSpec.length)throw new Error(`Axis index ${a} is out of bounds (0-${t.axesSpec.length-1})`);i.push([a,l])}else{const c=t.axesSpec.findIndex(u=>u.name===a);if(c===-1)throw new Error(`Axis with name "${a}" not found in the column specification`);i.push([c,l])}}return i.sort((o,a)=>o[0]-a[0]),{source:s,axisFilters:i}}deriveS(t,r){return R5t(this.derive(t,r))}}function _Q(e,t,r){const s={...t},n=(r==null?void 0:r.ignoreMissingDomains)??!1;if(s.domainAnchor!==void 0){const i=e[s.domainAnchor];if(!i)throw new Error(`Anchor "${s.domainAnchor}" not found`);const o=i.domain||{};s.domain={...o,...s.domain},delete s.domainAnchor}if(s.domain){const i={};for(const[o,a]of Object.entries(s.domain))if(typeof a=="string")i[o]=a;else{const l=e[a.anchor];if(!l)throw new Error(`Anchor "${a.anchor}" not found for domain key "${o}"`);if(!l.domain||l.domain[o]===void 0){if(!n)throw new Error(`Domain key "${o}" not found in anchor "${a.anchor}"`);continue}i[o]=l.domain[o]}s.domain=i}return s.axes&&(s.axes=s.axes.map(i=>T5t(e,i))),s}function T5t(e,t){if(!D5t(t))return t;const r=t.anchor,s=e[r];if(!s)throw new Error(`Anchor "${r}" not found for axis reference`);if("idx"in t){if(t.idx<0||t.idx>=s.axesSpec.length)throw new Error(`Axis index ${t.idx} out of bounds for anchor "${r}"`);return s.axesSpec[t.idx]}else if("name"in t){const n=s.axesSpec.filter(i=>i.name===t.name);if(n.length>1)throw new Error(`Multiple axes with name "${t.name}" found in anchor "${r}"`);if(n.length===0)throw new Error(`Axis with name "${t.name}" not found in anchor "${r}"`);return n[0]}else if("id"in t){const n=s.axesSpec.filter(i=>P5t(t.id,RA(i)));if(n.length>1)throw new Error(`Multiple matching axes found for matcher in anchor "${r}"`);if(n.length===0)throw new Error(`No matching axis found for matcher in anchor "${r}"`);return n[0]}throw new Error("Unsupported axis reference type")}function D5t(e){return typeof e=="object"&&"anchor"in e}function oA(e){return e.kind==="PColumn"}function j6(e){return oA(e.spec)}function M5t(e){if(!j6(e))throw new Error(`not a PColumn (kind = ${e.spec.kind})`);return e}function K6(e,t){return e===void 0?void 0:{...e,data:t(e.data)}}function I5t(e){const t=new Map,r=s=>{switch(s.type){case"column":t.set(s.column.id,s.column);return;case"slicedColumn":t.set(s.column.id,s.column);return;case"inlineColumn":return;case"full":case"inner":for(const n of s.entries)r(n);return;case"outer":r(s.primary);for(const n of s.secondary)r(n);return;default:Tre(s)}};return r(e),[...t.values()]}function VQ(e,t){if(e.name!==void 0&&e.name!==t.name)return!1;if(e.type!==void 0){if(Array.isArray(e.type)){if(!e.type.includes(t.type))return!1}else if(e.type!==t.type)return!1}if(e.domain!==void 0){const r=t.domain||{};for(const[s,n]of Object.entries(e.domain))if(r[s]!==n)return!1}return!0}function zQ(e,t){if(t.name!==void 0&&e.name!==t.name||t.namePattern!==void 0&&!new RegExp(t.namePattern).test(e.name))return!1;if(t.type!==void 0){if(Array.isArray(t.type)){if(!t.type.includes(e.valueType))return!1}else if(t.type!==e.valueType)return!1}if(t.domain!==void 0){const r=e.domain||{};for(const[s,n]of Object.entries(t.domain))if(r[s]!==n)return!1}if(t.axes!==void 0){const r=e.axesSpec.map(RA);if(t.partialAxesMatch){for(const s of t.axes)if(!r.some(n=>VQ(s,n)))return!1}else{if(r.length!==t.axes.length)return!1;for(let s=0;s<t.axes.length;s++)if(!VQ(t.axes[s],r[s]))return!1}}if(t.annotations!==void 0){const r=e.annotations||{};for(const[s,n]of Object.entries(t.annotations))if(r[s]!==n)return!1}if(t.annotationPatterns!==void 0){const r=e.annotations||{};for(const[s,n]of Object.entries(t.annotationPatterns)){const i=r[s];if(i===void 0||!new RegExp(n).test(i))return!1}}return!0}function Dx(e){return Array.isArray(e)?t=>e.some(r=>oA(t)&&zQ(t,r)):t=>oA(t)&&zQ(t,e)}function k5t(e){const t={kind:e.kind,name:e.name};return e.domain!==void 0&&(t.domain=e.domain),oA(e)&&(t.axesSpec=S5t(e.axesSpec)),vy(t)}us.object({__isRef:us.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),blockId:us.string().describe("Upstream block id"),name:us.string().describe("Name of the output provided to the upstream block's output context"),requireEnrichments:us.literal(!0).optional().describe("True if current block that stores this reference in its args, may need enrichments for the references value originating from the blocks in between current and referenced block")}).describe("Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees.").readonly();function B5t(e){return typeof e=="object"&&e!==null&&"__isRef"in e&&e.__isRef===!0&&"blockId"in e&&"name"in e}function QQ(e,t=!0){if(t)return{...e,requireEnrichments:!0};{const{requireEnrichments:r,...s}=e;return s}}function L5t(e,t){return e.ok?{ok:!0,value:t(e.value)}:e}const H5t=24;us.string().length(H5t).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");var UQ={exports:{}};(function(e,t){t=e.exports=r,t.getSerialize=s;function r(n,i,o,a){return JSON.stringify(n,s(i,a),o)}function s(n,i){var o=[],a=[];return i==null&&(i=function(l,c){return o[0]===c?"[Circular ~]":"[Circular ~."+a.slice(0,o.indexOf(c)).join(".")+"]"}),function(l,c){if(o.length>0){var u=o.indexOf(this);~u?o.splice(u+1):o.push(this),~u?a.splice(u,1/0,l):a.push(l),~o.indexOf(c)&&(c=i.call(this,l,c))}else o.push(c);return n==null?c:n.call(this,l,c)}}})(UQ,UQ.exports);const G5t=us.object({type:us.literal("PlError"),name:us.string(),message:us.string(),fullMessage:us.string().optional(),stack:us.string().optional()}),O5t=G5t.extend({cause:us.lazy(()=>FR).optional(),errors:us.lazy(()=>FR.array()).optional()}),N5t=us.object({type:us.literal("StandardError"),name:us.string(),message:us.string(),stack:us.string().optional()}),_5t=N5t.extend({cause:us.lazy(()=>FR).optional(),errors:us.lazy(()=>FR.array()).optional()}),FR=us.union([_5t,O5t]),V5t=us.object({name:us.string(),message:us.string(),fullMessage:us.string().optional(),stack:us.string().optional()}),WQ=V5t.extend({cause:us.lazy(()=>WQ).optional(),errors:us.lazy(()=>WQ.array()).optional()});var z5t=Object.defineProperty,Q5t=(e,t,r)=>t in e?z5t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Vu=(e,t,r)=>Q5t(e,typeof t!="symbol"?t+"":t,r);function zI(e){return{type:"Immediate",value:e}}function U5t(){return typeof globalThis.getPlatforma<"u"||typeof globalThis.platforma<"u"}function W5t(e){if(e&&typeof globalThis.getPlatforma=="function")return globalThis.getPlatforma(e);if(typeof globalThis.platforma<"u")return globalThis.platforma;throw new Error("Can't get platforma instance.")}function j5t(){if(typeof globalThis.cfgRenderCtx<"u")return globalThis.cfgRenderCtx}function Os(){if(typeof globalThis.cfgRenderCtx<"u")return globalThis.cfgRenderCtx;throw new Error("Not in config rendering context")}function c1(e,t){const r=j5t();if(r===void 0)return!1;if(e in r.callbackRegistry)throw new Error(`Callback with key ${e} already registered.`);return r.callbackRegistry[e]=t,!0}const QI=new Map;function K5t(e,t){e in Os().callbackRegistry||(Os().callbackRegistry[e]=r=>{for(const s of QI.get(e))s(r)},QI.set(e,[])),QI.get(e).push(t)}class qa{constructor(t,r=s=>s){Vu(this,"isResolved",!1),Vu(this,"resolvedValue"),this.handle=t,this.postProcess=r,K5t(t,s=>{this.resolvedValue=r(s),this.isResolved=!0})}map(t){return new qa(this.handle,r=>t(this.postProcess(r)))}mapDefined(t){return new qa(this.handle,r=>{const s=this.postProcess(r);return s?t(s):void 0})}toJSON(){return this.isResolved?this.resolvedValue:{__awaited_futures__:[this.handle]}}}function g7(e,t){return e===void 0?void 0:t(e)}class td{constructor(t,r){this.handle=t,this.resolvePath=r}resolve(...t){const r=t.map(s=>({assertFieldType:"Input",...typeof s=="string"?{field:s}:s}));return this.resolveWithCommon({},...r)}resolveOutput(...t){const r=t.map(s=>({assertFieldType:"Output",...typeof s=="string"?{field:s}:s}));return this.resolveWithCommon({},...r)}resolveInput(...t){const r=t.map(s=>({assertFieldType:"Input",...typeof s=="string"?{field:s}:s}));return this.resolveWithCommon({},...r)}resolveAny(...t){return this.resolveWithCommon({},...t)}resolveWithCommon(t,...r){const s=[...this.resolvePath,...r.map(n=>typeof n=="string"?n:n.field)];return g7(Os().resolveWithCommon(this.handle,t,...r),n=>new td(n,s))}get resourceType(){return Os().getResourceType(this.handle)}getInputsLocked(){return Os().getInputsLocked(this.handle)}getOutputsLocked(){return Os().getOutputsLocked(this.handle)}getIsReadyOrError(){return Os().getIsReadyOrError(this.handle)}getIsFinal(){return Os().getIsFinal(this.handle)}getError(){const t=[...this.resolvePath,"error"];return g7(Os().getError(this.handle),r=>new td(r,t))}listInputFields(){return Os().listInputFields(this.handle)}listOutputFields(){return Os().listOutputFields(this.handle)}listDynamicFields(){return Os().listDynamicFields(this.handle)}getKeyValueBase64(t){return Os().getKeyValueBase64(this.handle,t)}getKeyValueAsString(t){return Os().getKeyValueAsString(this.handle,t)}getKeyValueAsJson(t){const r=this.getKeyValueAsString(t);if(r==null)throw new Error("Resource has no content.");return JSON.parse(r)}getDataBase64(){return Os().getDataBase64(this.handle)}getDataAsString(){return Os().getDataAsString(this.handle)}getDataAsJson(){const t=this.getDataAsString();if(t==null)throw new Error("Resource has no content.");return JSON.parse(t)}getPColumns(t=!1,r=""){const s=this.parsePObjectCollection(t,r);return s===void 0?void 0:Object.entries(s).map(([,n])=>{if(!j6(n))throw new Error(`not a PColumn (kind = ${n.spec.kind})`);return n})}parsePObjectCollection(t=!1,r=""){const s=Os().parsePObjectCollection(this.handle,t,r,...this.resolvePath);if(s===void 0)return;const n={};for(const[i,o]of Object.entries(s)){const a=[...this.resolvePath,i];n[i]=K6(o,l=>new td(l,a))}return n}getFileContentAsBase64(t){return new qa(Os().getBlobContentAsBase64(this.handle,t))}getFileContentAsString(t){return new qa(Os().getBlobContentAsString(this.handle,t))}getFileContentAsJson(t){return new qa(Os().getBlobContentAsString(this.handle,t)).mapDefined(r=>JSON.parse(r))}getBlobContentAsBase64(){return this.getFileContentAsBase64()}getBlobContentAsString(){return this.getFileContentAsString()}getFileHandle(){return new qa(Os().getDownloadedBlobContentHandle(this.handle))}getDownloadedBlobHandle(){return this.getFileHandle()}getRemoteFileHandle(){return new qa(Os().getOnDemandBlobContentHandle(this.handle))}getOnDemandBlobHandle(){return this.getRemoteFileHandle()}extractArchiveAndGetURL(t){return new qa(Os().extractArchiveAndGetURL(this.handle,t))}getImportProgress(){return new qa(Os().getImportProgress(this.handle))}getLastLogs(t){return new qa(Os().getLastLogs(this.handle,t))}getProgressLog(t){return new qa(Os().getProgressLog(this.handle,t))}getProgressLogWithInfo(t){return new qa(Os().getProgressLogWithInfo(this.handle,t))}getLogHandle(){return new qa(Os().getLogHandle(this.handle))}allFieldsResolved(t="Input"){switch(t){case"Input":return this.getInputsLocked()&&this.listInputFields().every(r=>this.resolve({field:r,assertFieldType:"Input"})!==void 0);case"Output":return this.getOutputsLocked()&&this.listOutputFields().every(r=>this.resolve({field:r,assertFieldType:"Output"})!==void 0)}}mapFields(t,r){const{fieldType:s,requireLocked:n,skipUnresolved:i}={fieldType:"Input",requireLocked:!0,skipUnresolved:!1,...r},o=t;if(n&&(s==="Input"&&!this.getInputsLocked()||s==="Output"&&!this.getOutputsLocked()))return;let a=(s==="Input"?this.listInputFields():s==="Output"?this.listOutputFields():this.listDynamicFields()).map(l=>[l,this.resolve({field:l,assertFieldType:s})]);return i&&(a=a.filter(l=>l[1]!==void 0)),a.map(([l,c])=>o(l,c))}}const Y5t="staging",Z5t="main",X5t="pl7.app/label",$5t="pl7.app/trace",J5t=us.object({type:us.string(),importance:us.number().optional(),id:us.string().optional(),label:us.string()}),q5t=us.array(J5t),e6t=.001,t6t="__LABEL__",jQ="__LABEL__@1";function Dre(e,t,r={}){const s=new Map,n=r.forceTraceElements!==void 0&&r.forceTraceElements.length>0?new Set(r.forceTraceElements):void 0,i=new Map,o=e.map(A=>{var w,v;const b=t(A);let S,P,F;"spec"in b&&typeof b.spec=="object"?(S=b.spec,P=b.prefixTrace,F=b.suffixTrace):S=b;const T=(w=S.annotations)==null?void 0:w[X5t],D=(v=S.annotations)==null?void 0:v[$5t],B=(D?q5t.safeParse(JSON.parse(D)).data:void 0)??[],k=[...P??[],...B,...F??[]];if(T!==void 0){const j={label:T,type:t6t,importance:-2};r.addLabelAsSuffix?k.push(j):k.splice(0,0,j)}const z=[],O=new Map;for(let j=k.length-1;j>=0;--j){const{type:_}=k[j],G=k[j].importance??0,N=(O.get(_)??0)+1;O.set(_,N);const W=`${_}@${N}`;i.set(W,(i.get(W)??0)+1),s.set(W,Math.max(s.get(W)??Number.NEGATIVE_INFINITY,G-(k.length-j)*e6t)),z.push({...k[j],fullType:W,occurrenceIndex:N})}return z.reverse(),{value:A,spec:S,label:T,fullTrace:z}}),a=[],l=[],c=[...s];c.sort(([,A],[,w])=>w-A);for(const[A]of c)A.endsWith("@1")||i.get(A)===e.length?a.push(A):l.push(A);const u=(A,w=!1)=>{const v=[];for(let b=0;b<o.length;b++){const S=o[b],P=S.fullTrace.filter(D=>A.has(D.fullType)||n&&n.has(D.type));if(P.length===0)if(w)v.push({label:"Unlabeled",value:S.value});else return;const F=P.map(D=>D.label),T=r.separator??" / ";v.push({label:F.join(T),value:S.value})}return v};if(a.length===0){if(l.length!==0)throw new Error("Non-empty secondary types list while main types list is empty.");return u(new Set(jQ),!0)}let d=0,g=-1;for(;d<a.length;){const A=new Set;r.includeNativeLabel&&A.add(jQ);for(let v=0;v<d;++v)A.add(a[v]);g>=0&&A.add(a[g]);const w=u(A);if(w!==void 0&&new Set(w.map(v=>v.label)).size===e.length)return w;g++,g>=a.length&&(d++,g=d)}return u(new Set([...a,...l]),!0)}const I3="PColumnData/",f7=I3+"ResourceMap",A7=I3+"Partitioned/ResourceMap",sS=I3+"JsonPartitioned",cw=I3+"BinaryPartitioned",Mre=I3+"Partitioned/",RR=Mre+"JsonPartitioned",nS=Mre+"BinaryPartitioned",m7=e=>{if(e.endsWith(".index"))return{baseKey:e.substring(0,e.length-6),type:"index"};if(e.endsWith(".values"))return{baseKey:e.substring(0,e.length-7),type:"values"};throw new Error(`key must ends on .index/.values for binary p-column, got: ${e}`)};function r6t(e){if(!e)return;const t=e.resourceType.name,r=e.getDataAsJson(),s=[];let n=0;switch(t){case f7:n=r.keyLength;break;case A7:n=r.partitionKeyLength+r.keyLength;break;case sS:case cw:n=r.partitionKeyLength;break;case nS:case RR:n=r.superPartitionKeyLength+r.partitionKeyLength;break}switch(t){case f7:case sS:case cw:for(let i of e.listInputFields()){t===cw&&(i=m7(i).baseKey);const o=[...JSON.parse(i)];s.push(o)}break;case A7:case nS:case RR:for(const i of e.listInputFields()){const o=[...JSON.parse(i)],a=e.resolve({field:i,assertFieldType:"Input"});if(a!==void 0)for(let l of a.listInputFields()){t===nS&&(l=m7(l).baseKey);const c=[...o,...JSON.parse(l)];s.push(c)}}break}return{data:s,keyLength:n}}function s6t(e){if(e.type!=="JsonPartitioned"&&e.type!=="BinaryPartitioned")throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${e.type}`);const{parts:t,partitionKeyLength:r}=e,s=[];for(let n=0;n<r;++n)s.push(new Set);for(const n of t){const i=n.key;if(i.length!==r)throw new Error(`Key length (${i.length}) does not match partition length (${r}) for key: ${JSON.stringify(i)}`);for(let o=0;o<r;++o)s[o].add(i[o])}return s.map(n=>Array.from(n.values()))}function n6t(e){if(e===void 0)return;if(W6(e))return s6t(e);const t=r6t(e);if(!t)return;const{data:r,keyLength:s}=t,n=[];for(let i=0;i<s;++i)n.push(new Set);for(const i of r){if(i.length!==s)throw new Error("key length does not match partition length");for(let o=0;o<s;++o)n[o].add(i[o])}return n.map(i=>Array.from(i.values()))}function v7(e,t=[]){if(e===void 0||!e.getIsReadyOrError())return;const r=e.resourceType.name,s=e.getDataAsJson();if(t.length>0&&(r===RR||r===nS))throw new Error(`Unexpected nested super-partitioned resource: ${r}`);switch(r){case f7:case A7:throw new Error(`Only data columns are supported, got: ${r}`);case sS:{if(typeof(s==null?void 0:s.partitionKeyLength)!="number")throw new Error(`Missing partitionKeyLength in metadata for ${r}`);const n=[];for(const i of e.listInputFields()){const o=e.resolve({field:i,assertFieldType:"Input"});if(o===void 0)return;const a=[...t,...JSON.parse(i)];n.push({key:a,value:o})}return{type:"JsonPartitioned",partitionKeyLength:s.partitionKeyLength,parts:n}}case cw:{if(typeof(s==null?void 0:s.partitionKeyLength)!="number")throw new Error(`Missing partitionKeyLength in metadata for ${r}`);const n=[],i=new Map;for(const o of e.listInputFields()){const a=m7(o),l=e.resolve({field:o,assertFieldType:"Input"});if(l===void 0)return;let c=i.get(a.baseKey);c||(c={},i.set(a.baseKey,c)),a.type==="index"?c.index=l:c.values=l}for(const[o,a]of i.entries()){if(!a.index||!a.values)return;const l=[...t,...JSON.parse(o)];n.push({key:l,value:{index:a.index,values:a.values}})}return{type:"BinaryPartitioned",partitionKeyLength:s.partitionKeyLength,parts:n}}case RR:{if(typeof(s==null?void 0:s.superPartitionKeyLength)!="number"||typeof(s==null?void 0:s.partitionKeyLength)!="number")throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${r}`);const n=s.superPartitionKeyLength+s.partitionKeyLength,i=[];for(const o of e.listInputFields()){const a=e.resolve({field:o,assertFieldType:"Input"});if(a===void 0)return;if(a.resourceType.name!==sS)throw new Error(`Expected ${sS} inside ${r}, but got ${a.resourceType.name}`);const l=v7(a,JSON.parse(o));if(l===void 0)return;if(l.type!=="JsonPartitioned")throw new Error(`Unexpected inner result type for ${r}: ${l.type}`);i.push(...l.parts)}return{type:"JsonPartitioned",partitionKeyLength:n,parts:i}}case nS:{if(typeof(s==null?void 0:s.superPartitionKeyLength)!="number"||typeof(s==null?void 0:s.partitionKeyLength)!="number")throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${r}`);const n=s.superPartitionKeyLength+s.partitionKeyLength,i=[];for(const o of e.listInputFields()){const a=e.resolve({field:o,assertFieldType:"Input"});if(a===void 0)return;if(a.resourceType.name!==cw)throw new Error(`Expected ${cw} inside ${r}, but got ${a.resourceType.name}`);const l=v7(a,JSON.parse(o));if(l===void 0)return;if(l.type!=="BinaryPartitioned")throw new Error(`Unexpected inner result type for ${r}: ${l.type}`);i.push(...l.parts)}return{type:"BinaryPartitioned",partitionKeyLength:n,parts:i}}default:throw new Error(`Unknown resource type: ${r}`)}}function i6t(e){if(e!==void 0){if(W6(e))return e;if(U6(e))return y5t(e);if(e instanceof td)return v7(e);throw new Error(`Unexpected input type: ${typeof e}`)}}function o6t(e,t){const r=[...t].sort((i,o)=>o[0]-i[0]);if(e.type==="JsonPartitioned"||e.type==="BinaryPartitioned"){const{partitionKeyLength:i}=e;for(const[o]of t)if(o>=i)throw new Error(`Can't filter on non-partitioned axis ${o}. Must be >= ${i}`)}else if(e.type==="Json"){const{keyLength:i}=e;for(const[o]of t)if(o>=i)throw new Error(`Can't filter on non-data axis ${o}. Must be >= ${i}`)}const s=i=>{for(const[o,a]of r)if(i[o]!==a)return!1;return!0},n=i=>{const o=[...i];for(const[a]of r)o.splice(a,1);return o};switch(e.type){case"Json":{const i=e.data.filter(o=>s(o.key)).map(o=>({key:n(o.key),value:o.value}));return{type:"Json",keyLength:e.keyLength-t.length,data:i}}case"JsonPartitioned":{const i=e.parts.filter(o=>s(o.key)).map(o=>({key:n(o.key),value:o.value}));return{type:"JsonPartitioned",partitionKeyLength:e.partitionKeyLength-t.length,parts:i}}case"BinaryPartitioned":{const i=e.parts.filter(o=>s(o.key)).map(o=>({key:n(o.key),value:o.value}));return{type:"BinaryPartitioned",partitionKeyLength:e.partitionKeyLength-t.length,parts:i}}}}class a6t{constructor(t){this.columns=t}selectColumns(t){const r=typeof t=="function"?t:Dx(t);return this.columns.filter(s=>r(s.spec))}}function l6t(e){if(e)return e.map(t=>({type:`split:${x5t(t.axisId)}`,label:t.label,importance:1e6}))}function c6t(e){if(e)return e.map(t=>[t.axisIdx,t.value])}function u6t(e,t){if(!t||t.length===0)return e;const r=[...t].sort((s,n)=>s[0]-n[0]);return vy({id:e,axisFilters:r})}function KQ(e){if(!e||typeof e!="object")return!1;const t=e,r=t.domain&&typeof t.domain=="object"&&Object.values(t.domain).some(n=>typeof n=="object"&&n!==null&&"anchor"in n),s=t.axes&&Array.isArray(t.axes)&&t.axes.some(n=>typeof n=="object"&&n!==null&&"anchor"in n);return!!t.domainAnchor||r||s}function d6t(e){if(typeof e!="object"||!("axes"in e)||e.axes===void 0)return[];const t=e.axes.map((r,s)=>typeof r=="object"&&"split"in r&&r.split===!0?s:-1).filter(r=>r!==-1);if(t.length>0&&e.partialAxesMatch!==void 0)throw new Error("Axis splitting is not supported when `partialAxesMatch` is defined.");return t.sort((r,s)=>r-s),t}class YQ{constructor(){Vu(this,"defaultProviderStore",[]),Vu(this,"providers",[new a6t(this.defaultProviderStore)]),Vu(this,"axisLabelProviders",[])}addColumnProvider(t){return this.providers.push(t),this}addAxisLabelProvider(t){return this.axisLabelProviders.push(t),this}addColumns(t){return this.defaultProviderStore.push(...t),this}addColumn(t){return this.defaultProviderStore.push(t),this}findLabels(t){for(const r of this.axisLabelProviders){const s=r.findLabels(t);if(s)return s}}getUniversalEntries(t,r){const{anchorCtx:s,labelOps:n,dontWaitAllData:i=!1,overrideLabelAnnotation:o=!1,exclude:a}=r??{},l={...o&&(n==null?void 0:n.includeNativeLabel)!==!1?{includeNativeLabel:!0}:{},...n??{}};let c=()=>!1;if(a){const v=(Array.isArray(a)?a:[a]).map(b=>{if(KQ(b)){if(!s)throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");return Dx(_Q(s.anchors,b,r))}else return Dx(b)});c=b=>v.some(S=>S(b))}const u=typeof t=="function"?[t]:Array.isArray(t)?t:[t],d=[],g=new Set;for(const v of u){const b=KQ(v);let S;if(b){if(!s)throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");S=_Q(s.anchors,v,r)}else S=v;const P=new Set,F=[];for(const B of this.providers){const k=B.selectColumns(S);for(const z of k){if(c(z.spec))continue;if(P.has(z.id))throw new Error(`Duplicate column id ${z.id} in provider ${B.constructor.name}`);const O=k5t(z.spec);g.has(O)||(P.add(z.id),g.add(O),F.push(z))}}if(F.length===0)continue;const T=d6t(v),D=T.length>0;for(const B of F){if(!oA(B.spec))continue;const k=B.spec;if(D){const z=i6t(B.data);if(!z){if(i)continue;return}if(!w5t(z))throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${z.type} for column ${B.id}`);const O=n6t(z),j=T[T.length-1];if(j>=z.partitionKeyLength)throw new Error(`Not enough partition keys (${z.partitionKeyLength}) for requested split axes (max index ${j}) in column ${k.name}`);const _=T.map(pe=>this.findLabels(RA(k.axesSpec[pe]))),G=[],N=(pe,X)=>{if(X>=T.length){if(G.push([...pe]),G.length>1e4)throw new Error("Too many key combinations, aborting.");return}const re=T[X];if(re>=O.length)throw new Error(`Axis index ${re} out of bounds for unique keys array (length ${O.length}) during split key generation for column ${B.id}`);const ae=O[re];if(!ae||ae.length===0){G.length=0;return}for(const $ of ae)pe.push($),N(pe,X+1),pe.pop()};if(N([],0),G.length===0)continue;const W=[...k.axesSpec],V=T.map(pe=>pe);for(let pe=T.length-1;pe>=0;pe--)W.splice(T[pe],1);const q={...k,axesSpec:W};for(const pe of G){const X=pe.map((re,ae)=>{const $=V[ae],se=RA(k.axesSpec[$]),De=_[ae],Oe=(De==null?void 0:De[re])??String(re);return{axisIdx:$,axisId:se,value:re,label:Oe}});d.push({type:"split",originalColumn:B,spec:k,adjustedSpec:q,dataEntries:z,axisFilters:X})}}else d.push({type:"direct",originalColumn:B,spec:k,adjustedSpec:k})}}if(d.length===0)return[];const A=Dre(d,v=>({spec:v.spec,suffixTrace:v.type==="split"?l6t(v.axisFilters):void 0}),l),w=[];for(const{value:v,label:b}of A){const{originalColumn:S,spec:P}=v,F=v.type==="split"?v.axisFilters:void 0,T=c6t(F);let D;s?D=s.deriveS(P,T):D=u6t(S.id,T);let B={...v.adjustedSpec};o&&(B={...B,annotations:{...B.annotations??{},"pl7.app/label":b}}),w.push({id:D,spec:B,data:()=>v.type==="split"?b5t(o6t(v.dataEntries,T)):v.originalColumn.data,label:b})}return w}getColumns(t,r){const s=this.getUniversalEntries(t,{overrideLabelAnnotation:!0,...r??{}});if(!s)return;const n=[];for(const i of s){const o=i.data();if(!o){if(r!=null&&r.dontWaitAllData)continue;return}n.push({id:i.id,spec:i.spec,data:o})}return n}}function UI(e,t){if(e===void 0)return t===void 0;if(t===void 0)return!0;for(const r in t)if(e[r]!==t[r])return!1;return!0}function ZQ(e){return K6(e,t=>t instanceof td?t.handle:U6(t)?C5t(t,r=>r.handle):t)}class h6t{constructor(){Vu(this,"ctx",Os())}calculateOptions(t){return this.ctx.calculateOptions(t)}getOptions(t,r){const s=typeof t=="function"?t:Dx(t),n=this.getSpecs().entries.filter(a=>s(a.obj));let i={},o=!1;return typeof r<"u"&&(typeof r=="function"?i=r:typeof r=="object"&&("includeNativeLabel"in r||"separator"in r||"addLabelAsSuffix"in r?i=r:(r=r,i=r.label??{},o=r.refsWithEnrichments??!1))),typeof i=="object"?Dre(n,a=>a.obj,i??{}).map(({value:{ref:a},label:l})=>({ref:QQ(a,o),label:l})):n.map(({ref:a,obj:l})=>({ref:QQ(a,o),label:i(l,a)}))}resolveAnchorCtx(t){if(t instanceof NQ)return t;const r={};for(const[s,n]of Object.entries(t))if(B5t(n)){const i=this.getPColumnSpecByRef(n);if(!i)return;r[s]=i}else r[s]=n;return new NQ(r)}getAnchoredPColumns(t,r,s){const n=this.resolveAnchorCtx(t);if(n)return new YQ().addColumnProvider(this).addAxisLabelProvider(this).getColumns(r,{...s,anchorCtx:n})}getCanonicalOptions(t,r,s){const n=this.resolveAnchorCtx(t);if(!n)return;const i=new YQ().addColumnProvider(this).addAxisLabelProvider(this).getUniversalEntries(r,{...s,anchorCtx:n});if(i)return i.map(o=>({value:o.id,label:o.label}))}getDataFromResultPool(){return this.getData()}getData(){const t=this.ctx.getDataFromResultPool();return{isComplete:t.isComplete,entries:t.entries.map(r=>({ref:r.ref,obj:{...r.obj,data:new td(r.obj.data,[r.ref.blockId,r.ref.name])}}))}}getDataWithErrorsFromResultPool(){return this.getDataWithErrors()}getDataWithErrors(){const t=this.ctx.getDataWithErrorsFromResultPool();return{isComplete:t.isComplete,entries:t.entries.map(r=>({ref:r.ref,obj:{...r.obj,data:L5t(r.obj.data,s=>new td(s,[r.ref.blockId,r.ref.name]))}}))}}getSpecsFromResultPool(){return this.getSpecs()}getSpecs(){return this.ctx.getSpecsFromResultPool()}getDataByRef(t){var r;if(typeof this.ctx.getDataFromResultPoolByRef>"u")return(r=this.getData().entries.find(n=>n.ref.blockId===t.blockId&&n.ref.name===t.name))==null?void 0:r.obj;const s=this.ctx.getDataFromResultPoolByRef(t.blockId,t.name);if(s)return K6(s,n=>new td(n,[t.blockId,t.name]))}getPColumnByRef(t){const r=this.getDataByRef(t);if(r)return M5t(r)}getPColumnSpecByRef(t){const r=this.getSpecByRef(t);if(r){if(!oA(r))throw new Error(`not a PColumn spec (kind = ${r.kind})`);return r}}getSpecByRef(t){return this.ctx.getSpecFromResultPoolByRef(t.blockId,t.name)}findDataWithCompatibleSpec(t){const r=[];e:for(const s of this.getData().entries){if(!oA(s.obj.spec))continue;const n=s.obj.spec;if(t.name===n.name&&t.valueType===n.valueType&&t.axesSpec.length===n.axesSpec.length&&UI(t.domain,n.domain)){for(let i=0;i<t.axesSpec.length;++i){const o=t.axesSpec[i],a=n.axesSpec[i];if(o.name!==a.name||o.type!==a.type||!UI(o.domain,a.domain))continue e}r.push(s.obj)}}return r}findLabels(t){const r=this.getData();for(const s of r.entries){if(!j6(s.obj))continue;const n=s.obj.spec;if(n.name==="pl7.app/label"&&n.axesSpec.length===1&&n.axesSpec[0].name===t.name&&n.axesSpec[0].type===t.type&&UI(t.domain,n.axesSpec[0].domain)){if(s.obj.data.resourceType.name!=="PColumnData/Json")throw Error(`Expected JSON column for labels, got: ${s.obj.data.resourceType.name}`);return Object.fromEntries(Object.entries(s.obj.data.getDataAsJson().data).map(i=>[JSON.parse(i[0])[0],i[1]]))}}}selectColumns(t){const r=typeof t=="function"?t:Dx(t);return this.getSpecs().entries.filter(({obj:s})=>oA(s)?r(s):!1).map(({ref:s,obj:n})=>{const i=n;let o=null;const a=this;return{id:vy(s),spec:i,get data(){var l;return o!==null||(o=(l=a.getPColumnByRef(s))==null?void 0:l.data),o}}})}findLabelsForColumnAxis(t,r){var s;const n=this.findLabels(t.axesSpec[r]);if(!n)return;const i=(s=t.annotations)==null?void 0:s["pl7.app/axisKeys/"+r];if(i!==void 0){const o=JSON.parse(i);return Object.fromEntries(o.map(a=>[a,n[a]??"Unlabelled"]))}else return n}}class s2{constructor(){Vu(this,"ctx"),Vu(this,"args"),Vu(this,"uiState"),Vu(this,"_activeArgsCache"),Vu(this,"resultPool",new h6t),this.ctx=Os(),this.args=JSON.parse(this.ctx.args),this.uiState=this.ctx.uiState!==void 0?JSON.parse(this.ctx.uiState):{}}get activeArgs(){return this._activeArgsCache===void 0&&(this._activeArgsCache={v:this.ctx.activeArgs?JSON.parse(this.ctx.activeArgs):void 0}),this._activeArgsCache.v}getNamedAccessor(t){return g7(this.ctx.getAccessorHandleByName(t),r=>new td(r,[t]))}get prerun(){return this.getNamedAccessor(Y5t)}get outputs(){return this.getNamedAccessor(Z5t)}findLabels(t){return this.resultPool.findLabels(t)}verifyInlineAndExplicitColumnsSupport(t){var r;const s=t.some(i=>!(i.data instanceof td)||U6(i.data)),n=((r=this.ctx.featureFlags)==null?void 0:r.inlineColumnsSupport)===!0;if(s&&!n)throw Error("Inline or explicit columns not supported")}createPFrame(t){return this.verifyInlineAndExplicitColumnsSupport(t),this.ctx.createPFrame(t.map(r=>ZQ(r)))}createPTable(t){let r;return"columns"in t?r={src:{type:"full",entries:t.columns.map(s=>({type:"column",column:s}))},filters:t.filters??[],sorting:t.sorting??[]}:r=t,this.verifyInlineAndExplicitColumnsSupport(I5t(r.src)),this.ctx.createPTable(F5t(r,s=>ZQ(s)))}getBlockLabel(t){return this.ctx.getBlockLabel(t)}getCurrentUnstableMarker(){return this.ctx.getCurrentUnstableMarker()}}const WI="1.31.6";function p6t(e){return e.__renderLambda===!0}function jI(e){if(e!==void 0)return p6t(e)?e.handle:e}class $a{constructor(t,r,s,n,i,o,a,l){this._renderingMode=t,this._initialArgs=r,this._initialUiState=s,this._outputs=n,this._inputsValid=i,this._sections=o,this._title=a,this._enrichmentTargets=l}static create(t="Heavy"){return new $a(t,void 0,{},{},zI(!0),zI([]),void 0,void 0)}output(t,r,s={}){if(typeof r=="function"){const n=`output#${t}`;return c1(n,()=>r(new s2)),new $a(this._renderingMode,this._initialArgs,this._initialUiState,{...this._outputs,[t]:{__renderLambda:!0,handle:n,...s}},this._inputsValid,this._sections,this._title,this._enrichmentTargets)}else return new $a(this._renderingMode,this._initialArgs,this._initialUiState,{...this._outputs,[t]:r},this._inputsValid,this._sections,this._title,this._enrichmentTargets)}retentiveOutput(t,r){return this.output(t,r,{retentive:!0})}argsValid(t){return typeof t=="function"?(c1("inputsValid",()=>t(new s2)),new $a(this._renderingMode,this._initialArgs,this._initialUiState,this._outputs,{__renderLambda:!0,handle:"inputsValid"},this._sections,this._title,this._enrichmentTargets)):new $a(this._renderingMode,this._initialArgs,this._initialUiState,this._outputs,t,this._sections,this._title,this._enrichmentTargets)}sections(t){return Array.isArray(t)?this.sections(zI(t)):typeof t=="function"?(c1("sections",()=>t(new s2)),new $a(this._renderingMode,this._initialArgs,this._initialUiState,this._outputs,this._inputsValid,{__renderLambda:!0,handle:"sections"},this._title,this._enrichmentTargets)):new $a(this._renderingMode,this._initialArgs,this._initialUiState,this._outputs,this._inputsValid,t,this._title,this._enrichmentTargets)}title(t){return c1("title",()=>t(new s2)),new $a(this._renderingMode,this._initialArgs,this._initialUiState,this._outputs,this._inputsValid,this._sections,{__renderLambda:!0,handle:"title"},this._enrichmentTargets)}initialArgs(t){return new $a(this._renderingMode,t,this._initialUiState,this._outputs,this._inputsValid,this._sections,this._title,this._enrichmentTargets)}withArgs(t){return new $a(this._renderingMode,t,this._initialUiState,this._outputs,this._inputsValid,this._sections,this._title,this._enrichmentTargets)}withUiState(t){return new $a(this._renderingMode,this._initialArgs,t,this._outputs,this._inputsValid,this._sections,this._title,this._enrichmentTargets)}enriches(t){return c1("enrichmentTargets",t),new $a(this._renderingMode,this._initialArgs,this._initialUiState,this._outputs,this._inputsValid,this._sections,this._title,{__renderLambda:!0,handle:"enrichmentTargets"})}done(){if(this._initialArgs===void 0)throw new Error("Initial arguments not set.");const t={v3:{sdkVersion:WI,renderingMode:this._renderingMode,initialArgs:this._initialArgs,initialUiState:this._initialUiState,inputsValid:this._inputsValid,sections:this._sections,title:this._title,outputs:this._outputs,enrichmentTargets:this._enrichmentTargets},sdkVersion:WI,renderingMode:this._renderingMode,initialArgs:this._initialArgs,inputsValid:jI(this._inputsValid),sections:jI(this._sections),outputs:Object.fromEntries(Object.entries(this._outputs).map(([r,s])=>[r,jI(s)]))};return U5t()?W5t({sdkVersion:WI}):{config:t}}}var g6t=$a.create().withArgs({productKey:"MIFAKEMIFAKEMIFAKE",inputHandles:[],shouldAddRunPerFile:!1,__mnzDate:new Date().toISOString(),__mnzCanRun:!1}).argsValid(e=>e.args.__mnzCanRun).output("__mnzInfo",e=>{var t,r;return(r=(t=e.prerun)==null?void 0:t.resolve("info"))==null?void 0:r.getDataAsJson()}).output("token",e=>{var t,r;return(r=(t=e.outputs)==null?void 0:t.resolve("token"))==null?void 0:r.getDataAsString()}).output("progresses",e=>{var s;const t=(s=e.prerun)==null?void 0:s.resolve("progresses"),r=t==null?void 0:t.mapFields((n,i)=>[n,i==null?void 0:i.getImportProgress()]);return Object.fromEntries(r??[])}).output("mainProgresses",e=>{var s;const t=(s=e.outputs)==null?void 0:s.resolve("progresses"),r=t==null?void 0:t.mapFields((n,i)=>[n,i==null?void 0:i.getImportProgress()]);return Object.fromEntries(r??[])}).sections(e=>[{type:"link",href:"/",label:"Main"}]).done();const f6t="MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAECGShTw8Plag1uMuCg9OMYVHCF+wzjvXKr3cihyO77jEe9CrF6RP9tfnCd2XjM7XqQ0QH3i41rz5ohCB9fDDBbQ==",A6t=Tr({__name:"MainPage",setup(e){const t=m6t(),r=[{text:"sha256",value:"sha256"},{text:"lines (only in .zip files)",value:"lines"},{text:"size",value:"size"}],s=oi({isMultiDialogFileOpen:!1}),n=(c,u)=>{c?t.model.args.inputHandles[u].handle=c:t.model.args.inputHandles.splice(u,1)},i=c=>{t.model.args.inputHandles=c.files.map((u,d)=>({handle:u,fileName:`test${d}.txt`,argName:`arg_${d}`,options:["size","sha256"]}))},o=Je({get:()=>{var d;const u=(((d=t.model.outputs.token)==null?void 0:d.split("."))??[])[1];return JSON.parse(atob(u))},set:()=>{}}),a=br("");async function l(c){const u=await crypto.subtle.importKey("spki",Uint8Array.from(atob(f6t),v=>v.charCodeAt(0)).buffer,{name:"ECDSA",namedCurve:"P-256"},!0,["verify"]),[d,g,A]=c.split(".");if(!d||typeof g!="string"||typeof A!="string")throw new Error("Invalid token body");const w=Uint8Array.from(atob(A.replace(/-/g,"+").replace(/_/g,"/")),v=>v.charCodeAt(0));try{await crypto.subtle.verify({name:"ECDSA",hash:{name:"SHA-256"}},u,w,new TextEncoder().encode(`${d}.${g}`))?a.value="Signature is correct":a.value="Signature is incorrect"}catch{a.value="Verification failed"}}return(c,u)=>(ye(),jt(Pe(sMe),null,{title:er(()=>u[5]||(u[5]=[Ne(" Monetization example ")])),default:er(()=>[zt(Pe(d4),{modelValue:Pe(t).model.args.productKey,"onUpdate:modelValue":u[0]||(u[0]=d=>Pe(t).model.args.productKey=d),label:"Enter product key (keep MIFAKEMIFAKEMIFAKE for fake product)",clearable:""},null,8,["modelValue"]),zt(Pe(vIe),{modelValue:Pe(t).model.args.shouldAddRunPerFile,"onUpdate:modelValue":u[1]||(u[1]=d=>Pe(t).model.args.shouldAddRunPerFile=d)},{default:er(()=>u[6]||(u[6]=[Ne(" Add run per file ")])),_:1},8,["modelValue"]),zt(Pe(WG),{width:"400px"},{default:er(()=>[zt(Pe(kF),{onClick:u[2]||(u[2]=d=>s.isMultiDialogFileOpen=!0)},{default:er(()=>u[7]||(u[7]=[Ne(" Open multiple files to monetize ")])),_:1})]),_:1}),(ye(!0),je(_s,null,Fh(Pe(t).model.args.inputHandles,({handle:d},g)=>(ye(),jt(Pe(oMe),{key:g},{default:er(()=>[zt(Pe(d4),{modelValue:Pe(t).model.args.inputHandles[g].fileName,"onUpdate:modelValue":A=>Pe(t).model.args.inputHandles[g].fileName=A,label:"Type file name"},null,8,["modelValue","onUpdate:modelValue"]),zt(Pe(d4),{modelValue:Pe(t).model.args.inputHandles[g].argName,"onUpdate:modelValue":A=>Pe(t).model.args.inputHandles[g].argName=A,label:"Type argument name"},null,8,["modelValue","onUpdate:modelValue"]),zt(Pe(jBe),{"model-value":d,"onUpdate:modelValue":A=>n(A,g)},null,8,["model-value","onUpdate:modelValue"]),zt(Pe(AIe),{label:"Metrics to monetize",modelValue:Pe(t).model.args.inputHandles[g].options,"onUpdate:modelValue":A=>Pe(t).model.args.inputHandles[g].options=A,options:r},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024))),128)),zt(Pe(H$),{modelValue:s.isMultiDialogFileOpen,"onUpdate:modelValue":u[3]||(u[3]=d=>s.isMultiDialogFileOpen=d),multi:"","onImport:files":i},null,8,["modelValue"]),zt(Pe(WG)),We("pre",null," "+Zt(Pe(t).model.outputs.__mnzInfo)+" ",1),Pe(t).model.outputs.token?(ye(),jt(Pe(b2),{key:0,label:"token"},{default:er(()=>[Ne(Zt(Pe(t).model.outputs.token),1)]),_:1})):yt("",!0),Pe(t).model.outputs.token?(ye(),jt(Pe(kF),{key:1,onClick:u[4]||(u[4]=d=>l(Pe(t).model.outputs.token))},{default:er(()=>u[8]||(u[8]=[Ne(" Verify")])),_:1})):yt("",!0),a.value?(ye(),jt(Pe(b2),{key:2,label:"token verification"},{default:er(()=>[Ne(Zt(a.value),1)]),_:1})):yt("",!0),Pe(t).model.outputs.token?(ye(),jt(Pe(b2),{key:3,label:"trying to parse a token"},{default:er(()=>[We("pre",null," "+Zt(JSON.stringify(o.value,null,2))+" ",1)]),_:1})):yt("",!0)]),_:1}))}}),Ire=PDe(g6t,()=>({routes:{"/":()=>A6t}})),m6t=Ire.useApp;kae(N8e).use(Ire).mount("#app");
13656
- //# sourceMappingURL=index-DCRXof9h.js.map
13654
+ L 0,0 z`}function D7t(e,t,r,s,n){switch(r){case"left":return P7t(e,t,n);case"right":return F7t(e,t,n);case"top":return R7t(e,t,s);case"bottom":return T7t(e,t,s);default:z6(r,"Unknown tooltip direction")}}function M7t(e,t,r,s,n,i,o){return o?i.right-r-n-On>e?"right":"left":i.top+s-n-On>t?"top":"bottom"}function I7t(e,t,r,s,n,i){return e==="left"||e==="right"?`translate(${e==="left"?-(s+On+t):s+On},${-r/2+i})`:`translate(${-t/2+n},${e==="top"?-(r+s+On):s+On})`}function k7t(e,t){return e==="left"||e==="right"?`translate(${e==="left"?-t:t},0)`:`translate(0,${e==="top"?-t:t})`}function B7t(e,t,r,s){if(e==="left"||e==="right")return 0;let n=t.right-r,i=t.left+r;return n<s/2?n-s/2:i<s/2?s/2-i:0}function L7t(e,t,r,s){if(e==="top"||e==="bottom")return 0;let n=t.top+r,i=t.bottom-r;return n<s/2?s/2-n:i<s/2?i-s/2:0}function H7t({content:e,x:t,y:r,active:s,container:n,sideDistances:i,offset:o=S7t,horizontal:a=!0}){if(!s||!n&&n!==null)return null;let l=E7t(e),c=x7t(e),u=M7t(l,c,t,r,o,i,a),d=B7t(u,i,t,l),g=L7t(u,i,r,c),A=st.jsxs("g",{transform:`translate(${i.left+t},${i.top+r})`,opacity:s?1:0,stroke:"none",fill:"none",style:{pointerEvents:"none"},children:[st.jsx("path",{transform:k7t(u,o),d:D7t(l,c,u,d,g),fill:Bi}),st.jsx("g",{fontSize:"14px",fontFamily:"Manrope",fill:"white",transform:I7t(u,l,c,o,d,g),children:e.map((w,v)=>st.jsx("text",{x:dre,y:ure+i7*v+i7/2,dominantBaseline:"central",children:w},v))})]});return n===null?A:PJ.createPortal(A,n)}function a1(e){return V5().domain([0,1]).range([e,Bi])(.25)}var t2=1.4;function hre(e,t=6,r=Bi,s=null){switch(e){case null:return"";case"0":return st.jsx("path",{d:`M -${t},-${t} l ${t*2},0 l 0,${t*2} l -${t*2},0 l 0,-${t*2}z`,fill:"none",stroke:r});case"1":return st.jsx("path",{d:`M -${t},0 a ${t},${t} 0 1,0 ${t*2},0 a ${t},${t} 0 1,0 -${t*2},0z`,fill:"none",stroke:r});case"2":return st.jsx("path",{d:`M0,-${t}L ${2*t*Math.tan(Math.PI/6)},${t}L ${-2*t*Math.tan(Math.PI/6)},${t}z`,fill:"none",stroke:r});case"3":return st.jsx("path",{d:`M0,-${t}L 0,${t} M -${t},0 L ${t},0`,fill:"none",stroke:r});case"4":return st.jsx("path",{d:`M-${t},-${t}L ${t},${t} M ${t},-${t} L -${t},${t}`,fill:"none",stroke:r});case"5":{let n=t*t2;return st.jsx("path",{d:`M0,-${n}L ${n},0 L 0,${n} L -${n},0z`,fill:"none",stroke:r})}case"6":return st.jsx("path",{d:`M${-2*t*Math.tan(Math.PI/6)},-${t}L ${2*t*Math.tan(Math.PI/6)},-${t}L0,${t}z`,fill:"none",stroke:r});case"7":return st.jsx("path",{d:`M -${t},-${t} l ${t*2},0 l 0,${t*2} l -${t*2},0 l 0,-${t*2}z M-${t},-${t}L ${t},${t} M ${t},-${t} L -${t},${t}`,fill:"none",stroke:r});case"8":{let n=t*2*Math.cos(Math.PI/4);return st.jsx("path",{d:`M0,-${n}L 0,${n} M -${n},0 L ${n},0 M-${t},-${t}L ${t},${t} M ${t},-${t} L -${t},${t}`,fill:"none",stroke:r})}case"9":{let n=t*t2;return st.jsx("path",{d:`M0,-${n}L ${n},0 L 0,${n} L -${n},0z M0,-${n}L 0,${n} M -${n},0 L ${n},0`,fill:"none",stroke:r})}case"10":return st.jsx("path",{d:`M -${t},0 a ${t},${t} 0 1,0 ${t*2},0 a ${t},${t} 0 1,0 -${t*2},0z M0,-${t}L 0,${t} M -${t},0 L ${t},0`,fill:"none",stroke:r});case"11":{let n=2*t*Math.tan(Math.PI/6);return st.jsx("path",{d:`M-${n},-${t}L${n},-${t}L0,${-t+2*n}z
13655
+ M-${n},${t}L0,${t-2*n}L${n},${t}z`,fill:"none",stroke:r})}case"12":return st.jsx("path",{d:`M -${t},-${t} l ${t*2},0 l 0,${t*2} l -${t*2},0 l 0,-${t*2}z M0,-${t}L 0,${t} M -${t},0 L ${t},0`,fill:"none",stroke:r});case"13":return st.jsx("path",{d:`M -${t},0 a ${t},${t} 0 1,0 ${t*2},0 a ${t},${t} 0 1,0 -${t*2},0z M-${t},-${t}L ${t},${t} M ${t},-${t} L -${t},${t}`,fill:"none",stroke:r});case"14":return st.jsx("path",{d:`M -${t},-${t} l ${t*2},0 l 0,${t*2} l -${t*2},0 l 0,-${t*2}z M-${t},${t}L0,${-t}L${t},${t}`,fill:"none",stroke:r});case"15":return st.jsx("path",{d:`M -${t},-${t} l ${t*2},0 l 0,${t*2} l -${t*2},0 l 0,-${t*2}z`,fill:r,stroke:r});case"16":return st.jsx("path",{d:`M -${t},0 a ${t},${t} 0 1,0 ${t*2},0 a ${t},${t} 0 1,0 -${t*2},0z`,fill:r,stroke:r});case"17":return st.jsx("path",{d:`M0,-${t}L ${2*t*Math.tan(Math.PI/6)},${t}L ${-2*t*Math.tan(Math.PI/6)},${t}z`,fill:r,stroke:r});case"18":{let n=t*t2;return st.jsx("path",{d:`M0,-${n}L ${n},0 L 0,${n} L -${n},0z`,fill:r,stroke:r})}case"20":{let n=t*2/3;return st.jsx("path",{d:`M -${n},0 a ${n},${n} 0 1,0 ${n*2},0 a ${n},${n} 0 1,0 -${n*2},0z`,fill:r,stroke:r})}case"22":return st.jsx("path",{d:`M -${t},-${t} l ${t*2},0 l 0,${t*2} l -${t*2},0 l 0,-${t*2}z`,fill:r,stroke:s??a1(r)});case"21":return st.jsx("path",{d:`M -${t},0 a ${t},${t} 0 1,0 ${t*2},0 a ${t},${t} 0 1,0 -${t*2},0z`,fill:r,stroke:s??a1(r)});case"24":return st.jsx("path",{d:`M0,-${t}L ${2*t*Math.tan(Math.PI/6)},${t}L ${-2*t*Math.tan(Math.PI/6)},${t}z`,fill:r,stroke:s??a1(r)});case"23":{let n=t*t2;return st.jsx("path",{d:`M0,-${n}L ${n},0 L 0,${n} L -${n},0z`,fill:r,stroke:s??a1(r)})}case"25":return st.jsx("path",{d:`M${-2*t*Math.tan(Math.PI/6)},-${t}L ${2*t*Math.tan(Math.PI/6)},-${t}L0,${t}z`,fill:r,stroke:s??a1(r)});default:z6(e,`Unknown point shape ${e}`)}}function G7t({message:e}){return st.jsx("div",{style:{width:"500px",height:"400px",color:"#ee1616",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"25px",fontFamily:"Arial",border:"1px solid"},children:e})}var o7=4;function SQ(e){return isNaN(e)?"?":e===0?"0":Math.abs(e)<.01?lx(".1e")(e):lx(".2f")(e)}function xQ(e=null){switch(e){case null:return"";case"solid":return"";case"dashed":return"6 6";case"dotted":return"1.5 4";case"dotdash":return"1.4 4 8 4";case"longdash":return"10 4";case"twodash":return"3 3 9 3";default:z6(e,`Unknown line shape ${e}`)}}(class extends bJ.Component{constructor(e){super(e),this.state={hasError:!1,message:""}}static getDerivedStateFromError(e){return{hasError:!0,message:e.message}}componentDidUpdate(e){e.dataId!==this.props.dataId&&this.setState({hasError:!1,message:"error.message"})}componentDidCatch(e,t){console.log(t)}render(){return this.state.hasError?st.jsx(G7t,{message:this.state.message}):this.props.children}});function O7t(e,t,r,s){return e==="left"?r:e==="right"?t-s:(t-(r+s))/2+r}function N7t(e){return e==="left"?"start":e==="right"?"end":"middle"}function _7t({show:e,position:t,title:r,chartsWidth:s,leftPadding:n,rightPadding:i}){return e?st.jsx("g",{children:r.map((o,a)=>st.jsx("text",{x:O7t(t,s,n,i),textAnchor:N7t(t),y:-(r.length-a-1)*24-24-24/2,fontSize:"20px",fontFamily:"Manrope",fontWeight:"500",dominantBaseline:"central",children:o},`${o}_${a}`))}):null}var ro=12,l1=-12,EQ=14;function V7t(e=null){return e==="dashed"?"M1 11.25H6V12.75H1V11.25ZM9.5 11.25H14.5V12.75H9.5V11.25ZM18 11.25H23V12.75H18V11.25Z":e==="dotted"?"M2.75 11.25H1.25V12.75H2.75V11.25Z M11.25 11.25H12.75V12.75H11.25V11.25Z M22.75 11.25H21.25V12.75H22.75V11.25Z M7.75 11.25H6.25V12.75H7.75V11.25Z M16.25 11.25H17.75V12.75H16.25V11.25Z":e==="longdash"?"M1 11.25H10V12.75H1V11.25ZM14 11.25H23V12.75H14V11.25Z":e==="dotdash"?"M1 11.25H2.5V12.75H1V11.25ZM17 12.75H7V11.25H17V12.75ZM21.5 12.75V11.25H23V12.75H21.5Z":e==="twodash"?"M1 11.25H4V12.75H1V11.25ZM17.0261 12.75H7V11.25H17.0261V12.75ZM20 12.75V11.25H23V12.75H20Z":"M1 11.25H23V12.75H1V11.25Z"}var z7t=3,Q7t=24;function U7t({aes:e,label:t,usedAes:r}){let s=r.lineShape,n=r.dotShape,i=r.fillColor||r.lineColor&&!r.lineShape||r.dotFill&&!r.dotShape,o=n?hre(e.dotShape??"21",z7t,i?Bi:e.dotFill??Bi):null,a=(n&&s?2*ro:0)-6,l=s?a+Q7t+8:ro+8;return st.jsxs("g",{children:[i&&st.jsx("rect",{width:ro,height:ro,stroke:e.fillColor??e.lineColor,fill:e.fillColor??e.lineColor,rx:"1",ry:"1"}),n&&st.jsx("g",{transform:`translate(${ro/2},${ro/2})`,children:o}),s&&st.jsx("path",{transform:`translate(${a},-5)`,fillRule:"evenodd",clipRule:"evenodd",d:V7t(e.lineShape),fill:e.lineColor}),st.jsx("text",{x:l,y:ro/2,dominantBaseline:"central",fontWeight:500,children:t})]})}function W7t({aes:e,label:t}){let r=hre(e.shape,e.size,e.color);return st.jsxs("g",{children:[st.jsx("g",{transform:`translate(${ro/2},${ro/2})`,children:r}),st.jsx("text",{x:ro+8,y:ro/2,dominantBaseline:"central",fontWeight:500,children:t})]})}function j7t({legendData:e}){let t=e.items.filter(r=>r.type==="continuous");return st.jsxs("g",{children:[st.jsx("defs",{children:t.map(r=>st.jsx("linearGradient",{id:r.id,gradientTransform:"rotate(90)",children:r.scale.domain().reverse().map(s=>{let n=r.scale.domain(),i=n[n.length-1]-n[0],o=i>0?100-(s-n[0])/i*100:0;return st.jsx("stop",{offset:`${o}%`,stopColor:r.scale(s)},s)})},r.id))}),e.items.map(r=>{if(r.type==="continuous")return st.jsxs("g",{transform:`translate(${r.left},${r.top})`,children:[st.jsx("text",{fontWeight:500,fontSize:"14px",y:l1,children:r.title}),st.jsx("rect",{x:"0",y:"0",width:EQ,height:r.height,stroke:Bi,fill:`url(#${r.id})`}),st.jsx("g",{transform:`translate(${EQ},0)`,children:r.values.map(s=>{let n=r.tickPositionScale(s)??0;return st.jsxs("g",{transform:`translate(0,${n})`,children:[st.jsx("line",{x1:"0",x2:-4,stroke:Bi}),st.jsx("text",{x:8,y:4,children:s})]},s)})}),!1]},r.id);if(r.type==="discreteColor")return st.jsxs("g",{transform:`translate(${r.left},${r.top})`,children:[st.jsx("text",{fontWeight:500,fontSize:"14px",y:l1,children:r.title}),r.values.map((s,n)=>st.jsxs("g",{transform:`translate(0, ${n*(ro+4)})`,children:[st.jsx("rect",{x:"0",y:"0",width:ro,height:ro,fill:r.scale(s),rx:"1",ry:"1",stroke:Bi}),st.jsx("text",{x:ro+8,y:10,children:s})]},s)),!1]},r.id);if(r.type==="discreteMulti")return st.jsxs("g",{transform:`translate(${r.left},${r.top})`,fontSize:"14px",fontWeight:500,children:[st.jsx("text",{fontWeight:600,y:l1,children:r.title}),r.values.map((s,n)=>st.jsx("g",{transform:`translate(0, ${n*(ro+4)})`,children:st.jsx(U7t,{aes:r.scale(s),label:r.labels[s],usedAes:r.usedAes})},s)),!1]},r.id);if(r.type==="dots")return st.jsxs("g",{transform:`translate(${r.left},${r.top})`,fontSize:"14px",fontWeight:500,children:[st.jsx("text",{fontWeight:500,y:l1,children:r.title}),r.values.map((s,n)=>st.jsx("g",{transform:`translate(0, ${n*(ro+4)})`,children:st.jsx(W7t,{aes:r.scale(s),label:r.labels[s]})},s)),!1]},r.id);if(r.type==="size"){let s=r.height/r.values.length;return st.jsxs("g",{transform:`translate(${r.left},${r.top})`,fontSize:"14px",fontWeight:500,children:[st.jsx("text",{fontWeight:500,y:l1,children:r.title}),r.values.map((n,i)=>{let o=r.scale(n);return st.jsxs("g",{transform:`translate(0, ${i*s})`,children:[st.jsx("circle",{r:o,cx:s/2,cy:s/2,fill:Bi}),st.jsx("text",{x:s+4,y:s/2,alignmentBaseline:"central",children:r.labels[n]})]},n)}),!1]},r.id)}})]})}new CD("600 14px Manrope");function K7t(e,t,r=!1){let s=Math.abs(e.range()[0]-e.range()[1]),n=r?Math.min(Math.floor(s/45),10):10,i=e.ticks(n).filter(l=>t&&l>=0||!t),o=new Set(i);if(!r&&i.length>1){let l=e(i[0]),c=e(i[0]);for(let u=1;u<i.length;u++)c=e(i[u]),Math.abs(c-l)>=20?l=c:o.delete(i[u])}r&&i.length>2&&Math.abs(e(i[1])-e(i[0]))<45&&(i=i.filter((l,c)=>c%2===0));let a=i.some(l=>Math.abs(l)<1e-4&&l!==0||l>1e4)?",e":",f";return{ticks:i,format:l=>o.has(l)?e.tickFormat(n,a)(l):""}}var Y7t=1;function Z7t({scaleX:e,scaleY:t,width:r,height:s,axisX:n,axisY:i,frameType:o,updatingKey:a=""}){let[l,c]=qu.useState(e.ticks()),[u,d]=qu.useState(t.ticks()),{significantLines:g=[]}=n,{significantLines:A=[]}=i;return qu.useEffect(()=>{let w=e.ticks().filter(b=>!g.includes(b)),v=t.ticks().filter(b=>!A.includes(b));c(w),d(v)},[e,t,a]),st.jsxs("g",{stroke:o1,children:[n.showGrid&&l.map(w=>{let v=e(w);return st.jsx("line",{x1:v,x2:v,y1:0,y2:s},`x_${v}_${s}`)}),i.showGrid&&u.map(w=>{let v=t(w);return st.jsx("line",{x1:0,x2:r,y1:v,y2:v},`y_${v}_${r}`)}),st.jsx("g",{strokeDasharray:xQ(n.significantLinesStyle),stroke:Bi,children:g.map(w=>{let v=e(w);return v<0||v>r?null:st.jsx("line",{x1:v,x2:v,y1:0,y2:s},`significant_${v}_${s}`)})}),st.jsx("g",{strokeDasharray:xQ(i.significantLinesStyle),stroke:Bi,children:A.map(w=>{let v=t(w);return v<0||v>s?null:st.jsx("line",{x1:0,x2:r,y1:v,y2:v},`significant_${v}_${r}`)})}),o!=="empty"&&st.jsxs("g",{strokeWidth:Y7t,children:[(n.showGrid||o!=="left")&&st.jsx("line",{stroke:o==="left"?o1:Bi,x1:"0",x2:r,y1:s,y2:s}),(n.showGrid||o!=="bottom")&&st.jsx("line",{stroke:o==="bottom"?o1:Bi,x1:"0",x2:"0",y1:"0",y2:s}),(n.showGrid||o==="full")&&st.jsx("line",{stroke:o==="full"?Bi:o1,x1:r,x2:r,y1:"0",y2:s}),(i.showGrid||o==="full")&&st.jsx("line",{stroke:o==="full"?Bi:o1,x1:"0",x2:r,y1:"0",y2:"0"})]})]})}function X7t(e){return`translate(${e},0)`}function $7t(e){return`translate(0,${e})`}function J7t(e){return e==="bottom"?`translate(0,${o7})`:`translate(${-o7},0)`}function q7t(e){return e==="bottom"?"hanging":"central"}function eLt(e){return e==="bottom"?"middle":"end"}var PQ=({scale:e,tickSize:t=6,tickPadding:r=o7,orient:s="bottom",onlyPositive:n=!1,offset:i=typeof window<"u"&&window.devicePixelRatio>1?0:.5})=>{function o(v){return b=>{let S=v(b);return S===void 0?0:+S}}let{ticks:a,format:l}=K7t(e,n,s==="bottom"),c=Math.max(t,0)+r,u=o(e.copy()),d=s==="bottom"?X7t:$7t,g=s==="left"?-1:1,A={[(s==="left"?"x":"y")+"2"]:g*t},w={[s==="left"?"x":"y"]:g*c};return st.jsx("g",{children:a.map((v,b)=>st.jsxs("g",{className:"tick",transform:d(u(v)+i),children:[st.jsx("line",{stroke:Bi,...A}),st.jsx("g",{transform:J7t(s),children:st.jsx("text",{fill:Bi,fontSize:"14px",fontWeight:"500",fontFamily:"Manrope",dominantBaseline:q7t(s),textAnchor:eLt(s),...w,children:l(v)})})]},b))})};new CD("16px Manrope");BTt(MBt());var OI=20,FQ=4,tLt=24;function rLt(e,t,r=[]){let s=e.data,n=[`x: ${SQ(e.x)}`,`y: ${SQ(e.y)}`];t.label&&n.unshift(`${t.label}: ${s[t.label]}`);for(let i of r)n.push(`${i.label}: ${s[i.valueLabels??i.value]}`);return n}function RQ(e){return typeof e=="string"?e:e.label??e.value}var TQ=V_e().curve(z_e);function sLt({scales:e,chartSettings:t,mainTitle:r,keyColumn:s,margins:n,chartSizes:i,onlyPositive:o,container:a,zoomStateKey:l,legendData:c,dotsByGrouping:u,layers:d,aesGetters:g,selectedDot:A=null}){var w;let{title:v,xAxis:b,yAxis:S,frame:P,legend:F}=t,T=b.showTicks?FQ:0,D=S.showTicks?FQ:0,B=b.title,k=S.title,z={left:0,right:i.chartWidth,top:0,bottom:i.chartHeight};if(!a)return null;let O=d.find(N=>N.type==="curve"),[j,_]=qu.useState([]);function G(){let N=Object.entries(u).map(([W,V])=>({key:W,d:O!=null&&O.smoothing?TQ(V)??"":V.map(q=>`${e.x(q.x)},${e.y(q.y)}`).join(" "),dot:V[0]}));_(N)}return qu.useEffect(()=>{O&&(TQ.x(N=>e.x(N.x)).y(N=>e.y(N.y)),G())},[l]),qu.useEffect(()=>{O&&G()},[O==null?void 0:O.smoothing]),st.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${i.totalWidth} ${i.totalHeight}`,width:i.totalWidth,height:i.totalHeight,style:{pointerEvents:"none"},children:[st.jsx("defs",{children:b7t}),st.jsxs("g",{transform:`translate(${n.left},${n.top})`,fontFamily:"Manrope",children:[st.jsx("clipPath",{id:"viewportClipPath",children:st.jsx("rect",{x:"0",y:"0",width:i.chartWidth,height:i.chartHeight})}),st.jsx(_7t,{title:r,show:v.show,position:v.position,leftPadding:n.left,rightPadding:n.right,chartsWidth:i.chartWidth}),st.jsxs("g",{dominantBaseline:"central",textAnchor:"middle",fontWeight:"500",fontSize:"14px",fill:Bi,children:[B&&st.jsx("text",{x:i.chartWidth/2,y:i.chartHeight+n.bottom-OI/2,children:RQ(B)}),k&&st.jsx("text",{x:-n.left+OI/2,y:i.chartHeight/2,transform:`rotate(-90,${-n.left+OI/2},${i.chartHeight/2})`,children:RQ(k)})]}),st.jsx(Z7t,{width:i.chartWidth,height:i.chartHeight,scaleX:e.x,scaleY:e.y,axisX:b,axisY:S,updatingKey:l,frameType:P.type}),st.jsx("g",{transform:`translate(0,${i.chartHeight})`,children:st.jsx(PQ,{scale:e.x,orient:"bottom",onlyPositive:o.x,tickSize:T})}),st.jsx("g",{children:st.jsx(PQ,{scale:e.y,orient:"left",onlyPositive:o.y,tickSize:D})}),O&&O.smoothing&&st.jsx("g",{clipPath:"url(#viewportClipPath)",children:j.map(({key:N,d:W,dot:V})=>st.jsx("path",{d:W,fill:"none",stroke:g.dotFill(V.data),strokeWidth:O.aes.lineWidth,strokeDasharray:g.lineType(V.data)},N))}),O&&!O.smoothing&&st.jsx("g",{clipPath:"url(#viewportClipPath)",children:j.map(({key:N,d:W,dot:V})=>st.jsx("polyline",{points:W,fill:"none",stroke:g.dotFill(V.data),strokeWidth:O.aes.lineWidth,strokeDasharray:g.lineType(V.data)},N))}),A&&st.jsx(H7t,{content:rLt(A,s,(w=t.tooltips)==null?void 0:w.content),x:e.x(A.x),y:e.y(A.y),active:!0,sideDistances:z,container:a}),F.show&&st.jsx("g",{transform:`translate(${i.chartWidth+tLt},0)`,children:st.jsx(j7t,{legendData:c})})]})]})}bJ.memo(sLt);var I2=y.object({type:y.literal("grouping"),value:y.string()}),nLt=y.object({type:y.literal("dots"),aes:y.optional(y.object({dotFill:y.optional(y.union([y.string(),I2,Bh(y.string())])),dotShape:y.optional(y.union([pl,I2])),dotSize:y.optional(y.union([y.number(),I2]))}))}),iLt=y.object({type:y.literal("curve"),smoothing:y.optional(y.boolean()),aes:y.optional(y.object({lineWidth:y.optional(y.number()),lineShape:y.optional(Xc),lineColor:y.optional(y.union([y.string(),I2,Bh(y.string())])),opacity:y.optional(y.number())}))}),oLt=y.union([nLt,iLt]);y.object({type:y.literal("scatterplot-umap"),title:y.object({name:y.string(),show:y.optional(y.boolean()),position:y.optional(SA)}),size:y.optional(y.object({width:y.optional(y.number()),height:y.optional(y.number())})),legend:y.optional(y.object({show:y.optional(y.boolean()),position:y.optional(tC)})),tooltips:y.optional(y.object({show:y.optional(y.boolean()),content:y.optional(y.array(nr))})),frame:y.optional(y.object({type:y.optional(D3)})),keyColumn:nr,x:nr,y:nr,xAxis:y.optional(_w),yAxis:y.optional(_w),grouping:y.optional(y.array(nr)),label:y.optional(nr),inheritedAes:y.optional(y.record(y.string(),Nw)),layers:y.array(oLt),lassoMode:y.optional(y.boolean())});const aw=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,pre=new Set,a7=typeof process=="object"&&process?process:{},gre=(e,t,r,s)=>{typeof a7.emitWarning=="function"?a7.emitWarning(e,t,r,s):console.error(`[${r}] ${t}: ${e}`)};let AR=globalThis.AbortController,DQ=globalThis.AbortSignal;var MQ;if(typeof AR>"u"){DQ=class{constructor(){bs(this,"onabort"),bs(this,"_onabort",[]),bs(this,"reason"),bs(this,"aborted",!1)}addEventListener(r,s){this._onabort.push(s)}},AR=class{constructor(){bs(this,"signal",new DQ),t()}abort(r){var s,n;if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(const i of this.signal._onabort)i(r);(n=(s=this.signal).onabort)==null||n.call(s,r)}}};let e=((MQ=a7.env)==null?void 0:MQ.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const t=()=>{e&&(e=!1,gre("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}const aLt=e=>!pre.has(e),Xf=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),fre=e=>Xf(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?k2:null:null;class k2 extends Array{constructor(t){super(t),this.fill(0)}}var eS;const Are=class E1{constructor(t,r){if(bs(this,"heap"),bs(this,"length"),!de(E1,eS))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}static create(t){const r=fre(t);if(!r)return[];hr(E1,eS,!0);const s=new E1(t,r);return hr(E1,eS,!1),s}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}};eS=new WeakMap,As(Are,eS,!1);let lLt=Are;var IQ,kQ,mh,kc,vh,H0,gh,tS,P1,ki,Bc,mi,wn,Or,el,Hc,oa,qi,Sh,eo,Ch,wh,Gc,yh,ev,tl,F1,Vt,l7,z0,Wf,mR,Oc,mre,Q0,rS,vR,Bf,jf,NI,CR,B2,pn,_I,R1,rA,c7;const cLt=class vre{constructor(t){As(this,Vt),As(this,mh),As(this,kc),As(this,vh),As(this,H0),As(this,gh),As(this,tS),As(this,P1),bs(this,"ttl"),bs(this,"ttlResolution"),bs(this,"ttlAutopurge"),bs(this,"updateAgeOnGet"),bs(this,"updateAgeOnHas"),bs(this,"allowStale"),bs(this,"noDisposeOnSet"),bs(this,"noUpdateTTL"),bs(this,"maxEntrySize"),bs(this,"sizeCalculation"),bs(this,"noDeleteOnFetchRejection"),bs(this,"noDeleteOnStaleGet"),bs(this,"allowStaleOnFetchAbort"),bs(this,"allowStaleOnFetchRejection"),bs(this,"ignoreFetchAbort"),As(this,ki),As(this,Bc),As(this,mi),As(this,wn),As(this,Or),As(this,el),As(this,Hc),As(this,oa),As(this,qi),As(this,Sh),As(this,eo),As(this,Ch),As(this,wh),As(this,Gc),As(this,yh),As(this,ev),As(this,tl),As(this,F1),As(this,z0,()=>{}),As(this,Wf,()=>{}),As(this,mR,()=>{}),As(this,Oc,()=>!1),As(this,Q0,O=>{}),As(this,rS,(O,j,_)=>{}),As(this,vR,(O,j,_,G)=>{if(_||G)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0}),bs(this,IQ,"LRUCache");const{max:r=0,ttl:s,ttlResolution:n=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:c,onInsert:u,disposeAfter:d,noDisposeOnSet:g,noUpdateTTL:A,maxSize:w=0,maxEntrySize:v=0,sizeCalculation:b,fetchMethod:S,memoMethod:P,noDeleteOnFetchRejection:F,noDeleteOnStaleGet:T,allowStaleOnFetchRejection:D,allowStaleOnFetchAbort:B,ignoreFetchAbort:k}=t;if(r!==0&&!Xf(r))throw new TypeError("max option must be a nonnegative integer");const z=r?fre(r):Array;if(!z)throw new Error("invalid max value: "+r);if(hr(this,mh,r),hr(this,kc,w),this.maxEntrySize=v||de(this,kc),this.sizeCalculation=b,this.sizeCalculation){if(!de(this,kc)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(P!==void 0&&typeof P!="function")throw new TypeError("memoMethod must be a function if defined");if(hr(this,P1,P),S!==void 0&&typeof S!="function")throw new TypeError("fetchMethod must be a function if specified");if(hr(this,tS,S),hr(this,ev,!!S),hr(this,mi,new Map),hr(this,wn,new Array(r).fill(void 0)),hr(this,Or,new Array(r).fill(void 0)),hr(this,el,new z(r)),hr(this,Hc,new z(r)),hr(this,oa,0),hr(this,qi,0),hr(this,Sh,lLt.create(r)),hr(this,ki,0),hr(this,Bc,0),typeof c=="function"&&hr(this,vh,c),typeof u=="function"&&hr(this,H0,u),typeof d=="function"?(hr(this,gh,d),hr(this,eo,[])):(hr(this,gh,void 0),hr(this,eo,void 0)),hr(this,yh,!!de(this,vh)),hr(this,F1,!!de(this,H0)),hr(this,tl,!!de(this,gh)),this.noDisposeOnSet=!!g,this.noUpdateTTL=!!A,this.noDeleteOnFetchRejection=!!F,this.allowStaleOnFetchRejection=!!D,this.allowStaleOnFetchAbort=!!B,this.ignoreFetchAbort=!!k,this.maxEntrySize!==0){if(de(this,kc)!==0&&!Xf(de(this,kc)))throw new TypeError("maxSize must be a positive integer if specified");if(!Xf(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Wt(this,Vt,mre).call(this)}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!T,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Xf(n)||n===0?n:1,this.ttlAutopurge=!!i,this.ttl=s||0,this.ttl){if(!Xf(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Wt(this,Vt,l7).call(this)}if(de(this,mh)===0&&this.ttl===0&&de(this,kc)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!de(this,mh)&&!de(this,kc)){const O="LRU_CACHE_UNBOUNDED";aLt(O)&&(pre.add(O),gre("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",O,vre))}}static unsafeExposeInternals(t){return{starts:de(t,wh),ttls:de(t,Gc),sizes:de(t,Ch),keyMap:de(t,mi),keyList:de(t,wn),valList:de(t,Or),next:de(t,el),prev:de(t,Hc),get head(){return de(t,oa)},get tail(){return de(t,qi)},free:de(t,Sh),isBackgroundFetch:r=>{var s;return Wt(s=t,Vt,pn).call(s,r)},backgroundFetch:(r,s,n,i)=>{var o;return Wt(o=t,Vt,B2).call(o,r,s,n,i)},moveToTail:r=>{var s;return Wt(s=t,Vt,R1).call(s,r)},indexes:r=>{var s;return Wt(s=t,Vt,Bf).call(s,r)},rindexes:r=>{var s;return Wt(s=t,Vt,jf).call(s,r)},isStale:r=>{var s;return de(s=t,Oc).call(s,r)}}}get max(){return de(this,mh)}get maxSize(){return de(this,kc)}get calculatedSize(){return de(this,Bc)}get size(){return de(this,ki)}get fetchMethod(){return de(this,tS)}get memoMethod(){return de(this,P1)}get dispose(){return de(this,vh)}get onInsert(){return de(this,H0)}get disposeAfter(){return de(this,gh)}getRemainingTTL(t){return de(this,mi).has(t)?1/0:0}*entries(){for(const t of Wt(this,Vt,Bf).call(this))de(this,Or)[t]!==void 0&&de(this,wn)[t]!==void 0&&!Wt(this,Vt,pn).call(this,de(this,Or)[t])&&(yield[de(this,wn)[t],de(this,Or)[t]])}*rentries(){for(const t of Wt(this,Vt,jf).call(this))de(this,Or)[t]!==void 0&&de(this,wn)[t]!==void 0&&!Wt(this,Vt,pn).call(this,de(this,Or)[t])&&(yield[de(this,wn)[t],de(this,Or)[t]])}*keys(){for(const t of Wt(this,Vt,Bf).call(this)){const r=de(this,wn)[t];r!==void 0&&!Wt(this,Vt,pn).call(this,de(this,Or)[t])&&(yield r)}}*rkeys(){for(const t of Wt(this,Vt,jf).call(this)){const r=de(this,wn)[t];r!==void 0&&!Wt(this,Vt,pn).call(this,de(this,Or)[t])&&(yield r)}}*values(){for(const t of Wt(this,Vt,Bf).call(this))de(this,Or)[t]!==void 0&&!Wt(this,Vt,pn).call(this,de(this,Or)[t])&&(yield de(this,Or)[t])}*rvalues(){for(const t of Wt(this,Vt,jf).call(this))de(this,Or)[t]!==void 0&&!Wt(this,Vt,pn).call(this,de(this,Or)[t])&&(yield de(this,Or)[t])}[(kQ=Symbol.iterator,IQ=Symbol.toStringTag,kQ)](){return this.entries()}find(t,r={}){for(const s of Wt(this,Vt,Bf).call(this)){const n=de(this,Or)[s],i=Wt(this,Vt,pn).call(this,n)?n.__staleWhileFetching:n;if(i!==void 0&&t(i,de(this,wn)[s],this))return this.get(de(this,wn)[s],r)}}forEach(t,r=this){for(const s of Wt(this,Vt,Bf).call(this)){const n=de(this,Or)[s],i=Wt(this,Vt,pn).call(this,n)?n.__staleWhileFetching:n;i!==void 0&&t.call(r,i,de(this,wn)[s],this)}}rforEach(t,r=this){for(const s of Wt(this,Vt,jf).call(this)){const n=de(this,Or)[s],i=Wt(this,Vt,pn).call(this,n)?n.__staleWhileFetching:n;i!==void 0&&t.call(r,i,de(this,wn)[s],this)}}purgeStale(){let t=!1;for(const r of Wt(this,Vt,jf).call(this,{allowStale:!0}))de(this,Oc).call(this,r)&&(Wt(this,Vt,rA).call(this,de(this,wn)[r],"expire"),t=!0);return t}info(t){const r=de(this,mi).get(t);if(r===void 0)return;const s=de(this,Or)[r],n=Wt(this,Vt,pn).call(this,s)?s.__staleWhileFetching:s;if(n===void 0)return;const i={value:n};if(de(this,Gc)&&de(this,wh)){const o=de(this,Gc)[r],a=de(this,wh)[r];if(o&&a){const l=o-(aw.now()-a);i.ttl=l,i.start=Date.now()}}return de(this,Ch)&&(i.size=de(this,Ch)[r]),i}dump(){const t=[];for(const r of Wt(this,Vt,Bf).call(this,{allowStale:!0})){const s=de(this,wn)[r],n=de(this,Or)[r],i=Wt(this,Vt,pn).call(this,n)?n.__staleWhileFetching:n;if(i===void 0||s===void 0)continue;const o={value:i};if(de(this,Gc)&&de(this,wh)){o.ttl=de(this,Gc)[r];const a=aw.now()-de(this,wh)[r];o.start=Math.floor(Date.now()-a)}de(this,Ch)&&(o.size=de(this,Ch)[r]),t.unshift([s,o])}return t}load(t){this.clear();for(const[r,s]of t){if(s.start){const n=Date.now()-s.start;s.start=aw.now()-n}this.set(r,s.value,s)}}set(t,r,s={}){var n,i,o,a,l,c,u;if(r===void 0)return this.delete(t),this;const{ttl:d=this.ttl,start:g,noDisposeOnSet:A=this.noDisposeOnSet,sizeCalculation:w=this.sizeCalculation,status:v}=s;let{noUpdateTTL:b=this.noUpdateTTL}=s;const S=de(this,vR).call(this,t,r,s.size||0,w);if(this.maxEntrySize&&S>this.maxEntrySize)return v&&(v.set="miss",v.maxEntrySizeExceeded=!0),Wt(this,Vt,rA).call(this,t,"set"),this;let P=de(this,ki)===0?void 0:de(this,mi).get(t);if(P===void 0)P=de(this,ki)===0?de(this,qi):de(this,Sh).length!==0?de(this,Sh).pop():de(this,ki)===de(this,mh)?Wt(this,Vt,CR).call(this,!1):de(this,ki),de(this,wn)[P]=t,de(this,Or)[P]=r,de(this,mi).set(t,P),de(this,el)[de(this,qi)]=P,de(this,Hc)[P]=de(this,qi),hr(this,qi,P),Uk(this,ki)._++,de(this,rS).call(this,P,S,v),v&&(v.set="add"),b=!1,de(this,F1)&&((n=de(this,H0))==null||n.call(this,r,t,"add"));else{Wt(this,Vt,R1).call(this,P);const F=de(this,Or)[P];if(r!==F){if(de(this,ev)&&Wt(this,Vt,pn).call(this,F)){F.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:T}=F;T!==void 0&&!A&&(de(this,yh)&&((i=de(this,vh))==null||i.call(this,T,t,"set")),de(this,tl)&&((o=de(this,eo))==null||o.push([T,t,"set"])))}else A||(de(this,yh)&&((a=de(this,vh))==null||a.call(this,F,t,"set")),de(this,tl)&&((l=de(this,eo))==null||l.push([F,t,"set"])));if(de(this,Q0).call(this,P),de(this,rS).call(this,P,S,v),de(this,Or)[P]=r,v){v.set="replace";const T=F&&Wt(this,Vt,pn).call(this,F)?F.__staleWhileFetching:F;T!==void 0&&(v.oldValue=T)}}else v&&(v.set="update");de(this,F1)&&((c=this.onInsert)==null||c.call(this,r,t,r===F?"update":"replace"))}if(d!==0&&!de(this,Gc)&&Wt(this,Vt,l7).call(this),de(this,Gc)&&(b||de(this,mR).call(this,P,d,g),v&&de(this,Wf).call(this,v,P)),!A&&de(this,tl)&&de(this,eo)){const F=de(this,eo);let T;for(;T=F==null?void 0:F.shift();)(u=de(this,gh))==null||u.call(this,...T)}return this}pop(){var t;try{for(;de(this,ki);){const r=de(this,Or)[de(this,oa)];if(Wt(this,Vt,CR).call(this,!0),Wt(this,Vt,pn).call(this,r)){if(r.__staleWhileFetching)return r.__staleWhileFetching}else if(r!==void 0)return r}}finally{if(de(this,tl)&&de(this,eo)){const r=de(this,eo);let s;for(;s=r==null?void 0:r.shift();)(t=de(this,gh))==null||t.call(this,...s)}}}has(t,r={}){const{updateAgeOnHas:s=this.updateAgeOnHas,status:n}=r,i=de(this,mi).get(t);if(i!==void 0){const o=de(this,Or)[i];if(Wt(this,Vt,pn).call(this,o)&&o.__staleWhileFetching===void 0)return!1;if(de(this,Oc).call(this,i))n&&(n.has="stale",de(this,Wf).call(this,n,i));else return s&&de(this,z0).call(this,i),n&&(n.has="hit",de(this,Wf).call(this,n,i)),!0}else n&&(n.has="miss");return!1}peek(t,r={}){const{allowStale:s=this.allowStale}=r,n=de(this,mi).get(t);if(n===void 0||!s&&de(this,Oc).call(this,n))return;const i=de(this,Or)[n];return Wt(this,Vt,pn).call(this,i)?i.__staleWhileFetching:i}async fetch(t,r={}){const{allowStale:s=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:g=this.allowStaleOnFetchRejection,ignoreFetchAbort:A=this.ignoreFetchAbort,allowStaleOnFetchAbort:w=this.allowStaleOnFetchAbort,context:v,forceRefresh:b=!1,status:S,signal:P}=r;if(!de(this,ev))return S&&(S.fetch="get"),this.get(t,{allowStale:s,updateAgeOnGet:n,noDeleteOnStaleGet:i,status:S});const F={allowStale:s,updateAgeOnGet:n,noDeleteOnStaleGet:i,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:c,noUpdateTTL:u,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:g,allowStaleOnFetchAbort:w,ignoreFetchAbort:A,status:S,signal:P};let T=de(this,mi).get(t);if(T===void 0){S&&(S.fetch="miss");const D=Wt(this,Vt,B2).call(this,t,T,F,v);return D.__returned=D}else{const D=de(this,Or)[T];if(Wt(this,Vt,pn).call(this,D)){const O=s&&D.__staleWhileFetching!==void 0;return S&&(S.fetch="inflight",O&&(S.returnedStale=!0)),O?D.__staleWhileFetching:D.__returned=D}const B=de(this,Oc).call(this,T);if(!b&&!B)return S&&(S.fetch="hit"),Wt(this,Vt,R1).call(this,T),n&&de(this,z0).call(this,T),S&&de(this,Wf).call(this,S,T),D;const k=Wt(this,Vt,B2).call(this,t,T,F,v),z=k.__staleWhileFetching!==void 0&&s;return S&&(S.fetch=B?"stale":"refresh",z&&B&&(S.returnedStale=!0)),z?k.__staleWhileFetching:k.__returned=k}}async forceFetch(t,r={}){const s=await this.fetch(t,r);if(s===void 0)throw new Error("fetch() returned undefined");return s}memo(t,r={}){const s=de(this,P1);if(!s)throw new Error("no memoMethod provided to constructor");const{context:n,forceRefresh:i,...o}=r,a=this.get(t,o);if(!i&&a!==void 0)return a;const l=s(t,a,{options:o,context:n});return this.set(t,l,o),l}get(t,r={}){const{allowStale:s=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:o}=r,a=de(this,mi).get(t);if(a!==void 0){const l=de(this,Or)[a],c=Wt(this,Vt,pn).call(this,l);return o&&de(this,Wf).call(this,o,a),de(this,Oc).call(this,a)?(o&&(o.get="stale"),c?(o&&s&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),s?l.__staleWhileFetching:void 0):(i||Wt(this,Vt,rA).call(this,t,"expire"),o&&s&&(o.returnedStale=!0),s?l:void 0)):(o&&(o.get="hit"),c?l.__staleWhileFetching:(Wt(this,Vt,R1).call(this,a),n&&de(this,z0).call(this,a),l))}else o&&(o.get="miss")}delete(t){return Wt(this,Vt,rA).call(this,t,"delete")}clear(){return Wt(this,Vt,c7).call(this,"delete")}};mh=new WeakMap,kc=new WeakMap,vh=new WeakMap,H0=new WeakMap,gh=new WeakMap,tS=new WeakMap,P1=new WeakMap,ki=new WeakMap,Bc=new WeakMap,mi=new WeakMap,wn=new WeakMap,Or=new WeakMap,el=new WeakMap,Hc=new WeakMap,oa=new WeakMap,qi=new WeakMap,Sh=new WeakMap,eo=new WeakMap,Ch=new WeakMap,wh=new WeakMap,Gc=new WeakMap,yh=new WeakMap,ev=new WeakMap,tl=new WeakMap,F1=new WeakMap,Vt=new WeakSet,l7=function(){const e=new k2(de(this,mh)),t=new k2(de(this,mh));hr(this,Gc,e),hr(this,wh,t),hr(this,mR,(n,i,o=aw.now())=>{if(t[n]=i!==0?o:0,e[n]=i,i!==0&&this.ttlAutopurge){const a=setTimeout(()=>{de(this,Oc).call(this,n)&&Wt(this,Vt,rA).call(this,de(this,wn)[n],"expire")},i+1);a.unref&&a.unref()}}),hr(this,z0,n=>{t[n]=e[n]!==0?aw.now():0}),hr(this,Wf,(n,i)=>{if(e[i]){const o=e[i],a=t[i];if(!o||!a)return;n.ttl=o,n.start=a,n.now=r||s();const l=n.now-a;n.remainingTTL=o-l}});let r=0;const s=()=>{const n=aw.now();if(this.ttlResolution>0){r=n;const i=setTimeout(()=>r=0,this.ttlResolution);i.unref&&i.unref()}return n};this.getRemainingTTL=n=>{const i=de(this,mi).get(n);if(i===void 0)return 0;const o=e[i],a=t[i];if(!o||!a)return 1/0;const l=(r||s())-a;return o-l},hr(this,Oc,n=>{const i=t[n],o=e[n];return!!o&&!!i&&(r||s())-i>o})},z0=new WeakMap,Wf=new WeakMap,mR=new WeakMap,Oc=new WeakMap,mre=function(){const e=new k2(de(this,mh));hr(this,Bc,0),hr(this,Ch,e),hr(this,Q0,t=>{hr(this,Bc,de(this,Bc)-e[t]),e[t]=0}),hr(this,vR,(t,r,s,n)=>{if(Wt(this,Vt,pn).call(this,r))return 0;if(!Xf(s))if(n){if(typeof n!="function")throw new TypeError("sizeCalculation must be a function");if(s=n(r,t),!Xf(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return s}),hr(this,rS,(t,r,s)=>{if(e[t]=r,de(this,kc)){const n=de(this,kc)-e[t];for(;de(this,Bc)>n;)Wt(this,Vt,CR).call(this,!0)}hr(this,Bc,de(this,Bc)+e[t]),s&&(s.entrySize=r,s.totalCalculatedSize=de(this,Bc))})},Q0=new WeakMap,rS=new WeakMap,vR=new WeakMap,Bf=function*({allowStale:e=this.allowStale}={}){if(de(this,ki))for(let t=de(this,qi);!(!Wt(this,Vt,NI).call(this,t)||((e||!de(this,Oc).call(this,t))&&(yield t),t===de(this,oa)));)t=de(this,Hc)[t]},jf=function*({allowStale:e=this.allowStale}={}){if(de(this,ki))for(let t=de(this,oa);!(!Wt(this,Vt,NI).call(this,t)||((e||!de(this,Oc).call(this,t))&&(yield t),t===de(this,qi)));)t=de(this,el)[t]},NI=function(e){return e!==void 0&&de(this,mi).get(de(this,wn)[e])===e},CR=function(e){var t,r;const s=de(this,oa),n=de(this,wn)[s],i=de(this,Or)[s];return de(this,ev)&&Wt(this,Vt,pn).call(this,i)?i.__abortController.abort(new Error("evicted")):(de(this,yh)||de(this,tl))&&(de(this,yh)&&((t=de(this,vh))==null||t.call(this,i,n,"evict")),de(this,tl)&&((r=de(this,eo))==null||r.push([i,n,"evict"]))),de(this,Q0).call(this,s),e&&(de(this,wn)[s]=void 0,de(this,Or)[s]=void 0,de(this,Sh).push(s)),de(this,ki)===1?(hr(this,oa,hr(this,qi,0)),de(this,Sh).length=0):hr(this,oa,de(this,el)[s]),de(this,mi).delete(n),Uk(this,ki)._--,s},B2=function(e,t,r,s){const n=t===void 0?void 0:de(this,Or)[t];if(Wt(this,Vt,pn).call(this,n))return n;const i=new AR,{signal:o}=r;o==null||o.addEventListener("abort",()=>i.abort(o.reason),{signal:i.signal});const a={signal:i.signal,options:r,context:s},l=(w,v=!1)=>{const{aborted:b}=i.signal,S=r.ignoreFetchAbort&&w!==void 0;if(r.status&&(b&&!v?(r.status.fetchAborted=!0,r.status.fetchError=i.signal.reason,S&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),b&&!S&&!v)return u(i.signal.reason);const P=g;return de(this,Or)[t]===g&&(w===void 0?P.__staleWhileFetching?de(this,Or)[t]=P.__staleWhileFetching:Wt(this,Vt,rA).call(this,e,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(e,w,a.options))),w},c=w=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=w),u(w)),u=w=>{const{aborted:v}=i.signal,b=v&&r.allowStaleOnFetchAbort,S=b||r.allowStaleOnFetchRejection,P=S||r.noDeleteOnFetchRejection,F=g;if(de(this,Or)[t]===g&&(!P||F.__staleWhileFetching===void 0?Wt(this,Vt,rA).call(this,e,"fetch"):b||(de(this,Or)[t]=F.__staleWhileFetching)),S)return r.status&&F.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),F.__staleWhileFetching;if(F.__returned===F)throw w},d=(w,v)=>{var b;const S=(b=de(this,tS))==null?void 0:b.call(this,e,n,a);S&&S instanceof Promise&&S.then(P=>w(P===void 0?void 0:P),v),i.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(w(void 0),r.allowStaleOnFetchAbort&&(w=P=>l(P,!0)))})};r.status&&(r.status.fetchDispatched=!0);const g=new Promise(d).then(l,c),A=Object.assign(g,{__abortController:i,__staleWhileFetching:n,__returned:void 0});return t===void 0?(this.set(e,A,{...a.options,status:void 0}),t=de(this,mi).get(e)):de(this,Or)[t]=A,A},pn=function(e){if(!de(this,ev))return!1;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof AR},_I=function(e,t){de(this,Hc)[t]=e,de(this,el)[e]=t},R1=function(e){e!==de(this,qi)&&(e===de(this,oa)?hr(this,oa,de(this,el)[e]):Wt(this,Vt,_I).call(this,de(this,Hc)[e],de(this,el)[e]),Wt(this,Vt,_I).call(this,de(this,qi),e),hr(this,qi,e))},rA=function(e,t){var r,s,n,i;let o=!1;if(de(this,ki)!==0){const a=de(this,mi).get(e);if(a!==void 0)if(o=!0,de(this,ki)===1)Wt(this,Vt,c7).call(this,t);else{de(this,Q0).call(this,a);const l=de(this,Or)[a];if(Wt(this,Vt,pn).call(this,l)?l.__abortController.abort(new Error("deleted")):(de(this,yh)||de(this,tl))&&(de(this,yh)&&((r=de(this,vh))==null||r.call(this,l,e,t)),de(this,tl)&&((s=de(this,eo))==null||s.push([l,e,t]))),de(this,mi).delete(e),de(this,wn)[a]=void 0,de(this,Or)[a]=void 0,a===de(this,qi))hr(this,qi,de(this,Hc)[a]);else if(a===de(this,oa))hr(this,oa,de(this,el)[a]);else{const c=de(this,Hc)[a];de(this,el)[c]=de(this,el)[a];const u=de(this,el)[a];de(this,Hc)[u]=de(this,Hc)[a]}Uk(this,ki)._--,de(this,Sh).push(a)}}if(de(this,tl)&&(n=de(this,eo))!=null&&n.length){const a=de(this,eo);let l;for(;l=a==null?void 0:a.shift();)(i=de(this,gh))==null||i.call(this,...l)}return o},c7=function(e){var t,r,s;for(const n of Wt(this,Vt,jf).call(this,{allowStale:!0})){const i=de(this,Or)[n];if(Wt(this,Vt,pn).call(this,i))i.__abortController.abort(new Error("deleted"));else{const o=de(this,wn)[n];de(this,yh)&&((t=de(this,vh))==null||t.call(this,i,o,e)),de(this,tl)&&((r=de(this,eo))==null||r.push([i,o,e]))}}if(de(this,mi).clear(),de(this,Or).fill(void 0),de(this,wn).fill(void 0),de(this,Gc)&&de(this,wh)&&(de(this,Gc).fill(0),de(this,wh).fill(0)),de(this,Ch)&&de(this,Ch).fill(0),hr(this,oa,0),hr(this,qi,0),de(this,Sh).length=0,hr(this,Bc,0),hr(this,ki,0),de(this,tl)&&de(this,eo)){const n=de(this,eo);let i;for(;i=n==null?void 0:n.shift();)(s=de(this,gh))==null||s.call(this,...i)}};let uLt=cLt;const dLt={cacheSize:15e6};class hLt{constructor(t){bs(this,"_str"),bs(this,"_rawJson"),bs(this,"_zodSchema"),bs(this,"_validatedJson"),this.bytes=t}get str(){return this._str===void 0&&(this._str=new TextDecoder().decode(this.bytes)),this._str}get rawJson(){return this._rawJson===void 0&&(this._rawJson=JSON.parse(this.str)),this._rawJson}validatedJson(t){return this._zodSchema!==t&&(this._validatedJson=t.parse(this.rawJson),this._zodSchema=t),this._validatedJson}}const BQ=class L2{constructor(t){bs(this,"fileDataCache"),bs(this,"fileDataRefs",new Map);const r={...dLt,...t??{}};this.fileDataCache=new uLt({maxSize:r.cacheSize,fetchMethod:async s=>new hLt(await $X().blobDriver.getContent(s)),sizeCalculation:s=>s.bytes.length,dispose:(s,n)=>{this.fileDataRefs.delete(n)}})}getDataRef(t){const r=this.fileDataRefs.get(t);if(r!==void 0)return r;const s=yU();return this.fileDataRefs.set(t,s),(async()=>{try{const n=await this.fileDataCache.fetch(t);s.value=n}catch(n){console.error(n)}})(),s}getContentBytes(t){if(t===void 0)return;const r=this.getDataRef(t);return Je(()=>{var s;return(s=r.value)==null?void 0:s.bytes})}getContentString(t){if(t===void 0)return;const r=this.getDataRef(t);return Je(()=>{var s;return(s=r==null?void 0:r.value)==null?void 0:s.str})}getContentJson(t,r){if(t===void 0)return;const s=this.getDataRef(t);return Je(()=>{var n,i;return r===void 0?(n=s==null?void 0:s.value)==null?void 0:n.rawJson:(i=s==null?void 0:s.value)==null?void 0:i.validatedJson(r)})}static getContentBytes(t){return L2.globalInstance.getContentBytes(t)}static getContentString(t){return L2.globalInstance.getContentString(t)}static getContentJson(t,r){return L2.globalInstance.getContentJson(t,r)}};bs(BQ,"globalInstance",new BQ);function pLt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gLt=function e(t){if(typeof t=="number"&&isNaN(t))throw new Error("NaN is not allowed");if(typeof t=="number"&&!isFinite(t))throw new Error("Infinity is not allowed");return t===null||typeof t!="object"?JSON.stringify(t):t.toJSON instanceof Function?e(t.toJSON()):Array.isArray(t)?`[${t.reduce((n,i,o)=>`${n}${o===0?"":","}${e(i===void 0||typeof i=="symbol"?null:i)}`,"")}]`:`{${Object.keys(t).sort().reduce((s,n)=>{if(t[n]===void 0||typeof t[n]=="symbol")return s;const i=s.length===0?"":",";return`${s}${i}${e(n)}:${e(t[n])}`},"")}}`};const vy=pLt(gLt);var Cs;(function(e){e.assertEqual=n=>n;function t(n){}e.assertIs=t;function r(n){throw new Error}e.assertNever=r,e.arrayToEnum=n=>{const i={};for(const o of n)i[o]=o;return i},e.getValidEnumValues=n=>{const i=e.objectKeys(n).filter(a=>typeof n[n[a]]!="number"),o={};for(const a of i)o[a]=n[a];return e.objectValues(o)},e.objectValues=n=>e.objectKeys(n).map(function(i){return n[i]}),e.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{const i=[];for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&i.push(o);return i},e.find=(n,i)=>{for(const o of n)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&isFinite(n)&&Math.floor(n)===n;function s(n,i=" | "){return n.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=s,e.jsonStringifyReplacer=(n,i)=>typeof i=="bigint"?i.toString():i})(Cs||(Cs={}));var u7;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(u7||(u7={}));const Ot=Cs.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),$f=e=>{switch(typeof e){case"undefined":return Ot.undefined;case"string":return Ot.string;case"number":return isNaN(e)?Ot.nan:Ot.number;case"boolean":return Ot.boolean;case"function":return Ot.function;case"bigint":return Ot.bigint;case"symbol":return Ot.symbol;case"object":return Array.isArray(e)?Ot.array:e===null?Ot.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ot.promise:typeof Map<"u"&&e instanceof Map?Ot.map:typeof Set<"u"&&e instanceof Set?Ot.set:typeof Date<"u"&&e instanceof Date?Ot.date:Ot.object;default:return Ot.unknown}},mt=Cs.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),fLt=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class jl extends Error{constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const r=t||function(i){return i.message},s={_errors:[]},n=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(n);else if(o.code==="invalid_return_type")n(o.returnTypeError);else if(o.code==="invalid_arguments")n(o.argumentsError);else if(o.path.length===0)s._errors.push(r(o));else{let a=s,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(r(o))):a[c]=a[c]||{_errors:[]},a=a[c],l++}}};return n(this),s}static assert(t){if(!(t instanceof jl))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Cs.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},s=[];for(const n of this.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):s.push(t(n));return{formErrors:s,fieldErrors:r}}get formErrors(){return this.flatten()}}jl.create=e=>new jl(e);const Vw=(e,t)=>{let r;switch(e.code){case mt.invalid_type:e.received===Ot.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case mt.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Cs.jsonStringifyReplacer)}`;break;case mt.unrecognized_keys:r=`Unrecognized key(s) in object: ${Cs.joinValues(e.keys,", ")}`;break;case mt.invalid_union:r="Invalid input";break;case mt.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Cs.joinValues(e.options)}`;break;case mt.invalid_enum_value:r=`Invalid enum value. Expected ${Cs.joinValues(e.options)}, received '${e.received}'`;break;case mt.invalid_arguments:r="Invalid function arguments";break;case mt.invalid_return_type:r="Invalid function return type";break;case mt.invalid_date:r="Invalid date";break;case mt.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Cs.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case mt.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case mt.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case mt.custom:r="Invalid input";break;case mt.invalid_intersection_types:r="Intersection results could not be merged";break;case mt.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case mt.not_finite:r="Number must be finite";break;default:r=t.defaultError,Cs.assertNever(e)}return{message:r}};let Cre=Vw;function ALt(e){Cre=e}function wR(){return Cre}const yR=e=>{const{data:t,path:r,errorMaps:s,issueData:n}=e,i=[...r,...n.path||[]],o={...n,path:i};if(n.message!==void 0)return{...n,path:i,message:n.message};let a="";const l=s.filter(c=>!!c).slice().reverse();for(const c of l)a=c(o,{data:t,defaultError:a}).message;return{...n,path:i,message:a}},mLt=[];function kt(e,t){const r=wR(),s=yR({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Vw?void 0:Vw].filter(n=>!!n)});e.common.issues.push(s)}class No{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const s=[];for(const n of r){if(n.status==="aborted")return yr;n.status==="dirty"&&t.dirty(),s.push(n.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,r){const s=[];for(const n of r){const i=await n.key,o=await n.value;s.push({key:i,value:o})}return No.mergeObjectSync(t,s)}static mergeObjectSync(t,r){const s={};for(const n of r){const{key:i,value:o}=n;if(i.status==="aborted"||o.status==="aborted")return yr;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||n.alwaysSet)&&(s[i.value]=o.value)}return{status:t.value,value:s}}}const yr=Object.freeze({status:"aborted"}),U0=e=>({status:"dirty",value:e}),Ca=e=>({status:"valid",value:e}),d7=e=>e.status==="aborted",h7=e=>e.status==="dirty",Ax=e=>e.status==="valid",mx=e=>typeof Promise<"u"&&e instanceof Promise;function bR(e,t,r,s){if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function wre(e,t,r,s,n){if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,r),r}var qt;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(qt||(qt={}));var T1,D1;class jh{constructor(t,r,s,n){this._cachedPath=[],this.parent=t,this.data=r,this._path=s,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const LQ=(e,t)=>{if(Ax(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new jl(e.common.issues);return this._error=r,this._error}}};function zr(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:s,description:n}=e;if(t&&(r||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:n}:{errorMap:(o,a)=>{var l,c;const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(l=u??s)!==null&&l!==void 0?l:a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:(c=u??r)!==null&&c!==void 0?c:a.defaultError}},description:n}}class Xr{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return $f(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:$f(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new No,ctx:{common:t.parent.common,data:t.data,parsedType:$f(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(mx(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const s=this.safeParse(t,r);if(s.success)return s.data;throw s.error}safeParse(t,r){var s;const n={common:{issues:[],async:(s=r==null?void 0:r.async)!==null&&s!==void 0?s:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:$f(t)},i=this._parseSync({data:t,path:n.path,parent:n});return LQ(n,i)}async parseAsync(t,r){const s=await this.safeParseAsync(t,r);if(s.success)return s.data;throw s.error}async safeParseAsync(t,r){const s={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:$f(t)},n=this._parse({data:t,path:s.path,parent:s}),i=await(mx(n)?n:Promise.resolve(n));return LQ(s,i)}refine(t,r){const s=n=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,i)=>{const o=t(n),a=()=>i.addIssue({code:mt.custom,...s(n)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,r){return this._refinement((s,n)=>t(s)?!0:(n.addIssue(typeof r=="function"?r(s,n):r),!1))}_refinement(t){return new ud({schema:this,typeName:Cr.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return Lh.create(this,this._def)}nullable(){return FA.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ed.create(this,this._def)}promise(){return Qw.create(this,this._def)}or(t){return yx.create([this,t],this._def)}and(t){return bx.create(this,t,this._def)}transform(t){return new ud({...zr(this._def),schema:this,typeName:Cr.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new Fx({...zr(this._def),innerType:this,defaultValue:r,typeName:Cr.ZodDefault})}brand(){return new Q6({typeName:Cr.ZodBranded,type:this,...zr(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new Rx({...zr(this._def),innerType:this,catchValue:r,typeName:Cr.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return M3.create(this,t)}readonly(){return Tx.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const vLt=/^c[^\s-]{8,}$/i,CLt=/^[0-9a-z]+$/,wLt=/^[0-9A-HJKMNP-TV-Z]{26}$/,yLt=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,bLt=/^[a-z0-9_-]{21}$/i,SLt=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,xLt=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ELt="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let VI;const PLt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,FLt=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,RLt=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,yre="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",TLt=new RegExp(`^${yre}$`);function bre(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function DLt(e){return new RegExp(`^${bre(e)}$`)}function Sre(e){let t=`${yre}T${bre(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function MLt(e,t){return!!((t==="v4"||!t)&&PLt.test(e)||(t==="v6"||!t)&&FLt.test(e))}class Uu extends Xr{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ot.string){const i=this._getOrReturnCtx(t);return kt(i,{code:mt.invalid_type,expected:Ot.string,received:i.parsedType}),yr}const s=new No;let n;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(n=this._getOrReturnCtx(t,n),kt(n,{code:mt.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="max")t.data.length>i.value&&(n=this._getOrReturnCtx(t,n),kt(n,{code:mt.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,a=t.data.length<i.value;(o||a)&&(n=this._getOrReturnCtx(t,n),o?kt(n,{code:mt.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&kt(n,{code:mt.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),s.dirty())}else if(i.kind==="email")xLt.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"email",code:mt.invalid_string,message:i.message}),s.dirty());else if(i.kind==="emoji")VI||(VI=new RegExp(ELt,"u")),VI.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"emoji",code:mt.invalid_string,message:i.message}),s.dirty());else if(i.kind==="uuid")yLt.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"uuid",code:mt.invalid_string,message:i.message}),s.dirty());else if(i.kind==="nanoid")bLt.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"nanoid",code:mt.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid")vLt.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"cuid",code:mt.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid2")CLt.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"cuid2",code:mt.invalid_string,message:i.message}),s.dirty());else if(i.kind==="ulid")wLt.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"ulid",code:mt.invalid_string,message:i.message}),s.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{n=this._getOrReturnCtx(t,n),kt(n,{validation:"url",code:mt.invalid_string,message:i.message}),s.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"regex",code:mt.invalid_string,message:i.message}),s.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(n=this._getOrReturnCtx(t,n),kt(n,{code:mt.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),s.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(n=this._getOrReturnCtx(t,n),kt(n,{code:mt.invalid_string,validation:{startsWith:i.value},message:i.message}),s.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(n=this._getOrReturnCtx(t,n),kt(n,{code:mt.invalid_string,validation:{endsWith:i.value},message:i.message}),s.dirty()):i.kind==="datetime"?Sre(i).test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{code:mt.invalid_string,validation:"datetime",message:i.message}),s.dirty()):i.kind==="date"?TLt.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{code:mt.invalid_string,validation:"date",message:i.message}),s.dirty()):i.kind==="time"?DLt(i).test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{code:mt.invalid_string,validation:"time",message:i.message}),s.dirty()):i.kind==="duration"?SLt.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"duration",code:mt.invalid_string,message:i.message}),s.dirty()):i.kind==="ip"?MLt(t.data,i.version)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"ip",code:mt.invalid_string,message:i.message}),s.dirty()):i.kind==="base64"?RLt.test(t.data)||(n=this._getOrReturnCtx(t,n),kt(n,{validation:"base64",code:mt.invalid_string,message:i.message}),s.dirty()):Cs.assertNever(i);return{status:s.value,value:t.data}}_regex(t,r,s){return this.refinement(n=>t.test(n),{validation:r,code:mt.invalid_string,...qt.errToObj(s)})}_addCheck(t){return new Uu({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...qt.errToObj(t)})}url(t){return this._addCheck({kind:"url",...qt.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...qt.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...qt.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...qt.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...qt.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...qt.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...qt.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...qt.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...qt.errToObj(t)})}datetime(t){var r,s;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(r=t==null?void 0:t.offset)!==null&&r!==void 0?r:!1,local:(s=t==null?void 0:t.local)!==null&&s!==void 0?s:!1,...qt.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...qt.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...qt.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...qt.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...qt.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...qt.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...qt.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...qt.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...qt.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...qt.errToObj(r)})}nonempty(t){return this.min(1,qt.errToObj(t))}trim(){return new Uu({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Uu({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Uu({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}Uu.create=e=>{var t;return new Uu({checks:[],typeName:Cr.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...zr(e)})};function ILt(e,t){const r=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,n=r>s?r:s,i=parseInt(e.toFixed(n).replace(".","")),o=parseInt(t.toFixed(n).replace(".",""));return i%o/Math.pow(10,n)}class xA extends Xr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ot.number){const i=this._getOrReturnCtx(t);return kt(i,{code:mt.invalid_type,expected:Ot.number,received:i.parsedType}),yr}let s;const n=new No;for(const i of this._def.checks)i.kind==="int"?Cs.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),kt(s,{code:mt.invalid_type,expected:"integer",received:"float",message:i.message}),n.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),kt(s,{code:mt.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),kt(s,{code:mt.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):i.kind==="multipleOf"?ILt(t.data,i.value)!==0&&(s=this._getOrReturnCtx(t,s),kt(s,{code:mt.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),kt(s,{code:mt.not_finite,message:i.message}),n.dirty()):Cs.assertNever(i);return{status:n.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,qt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,qt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,qt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,qt.toString(r))}setLimit(t,r,s,n){return new xA({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:s,message:qt.toString(n)}]})}_addCheck(t){return new xA({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:qt.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:qt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:qt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:qt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:qt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:qt.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:qt.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:qt.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:qt.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Cs.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(r===null||s.value>r)&&(r=s.value):s.kind==="max"&&(t===null||s.value<t)&&(t=s.value)}return Number.isFinite(r)&&Number.isFinite(t)}}xA.create=e=>new xA({checks:[],typeName:Cr.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...zr(e)});class EA extends Xr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==Ot.bigint){const i=this._getOrReturnCtx(t);return kt(i,{code:mt.invalid_type,expected:Ot.bigint,received:i.parsedType}),yr}let s;const n=new No;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),kt(s,{code:mt.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),kt(s,{code:mt.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),kt(s,{code:mt.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):Cs.assertNever(i);return{status:n.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,qt.toString(r))}gt(t,r){return this.setLimit("min",t,!1,qt.toString(r))}lte(t,r){return this.setLimit("max",t,!0,qt.toString(r))}lt(t,r){return this.setLimit("max",t,!1,qt.toString(r))}setLimit(t,r,s,n){return new EA({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:s,message:qt.toString(n)}]})}_addCheck(t){return new EA({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:qt.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:qt.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:qt.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:qt.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:qt.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}EA.create=e=>{var t;return new EA({checks:[],typeName:Cr.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...zr(e)})};class vx extends Xr{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ot.boolean){const s=this._getOrReturnCtx(t);return kt(s,{code:mt.invalid_type,expected:Ot.boolean,received:s.parsedType}),yr}return Ca(t.data)}}vx.create=e=>new vx({typeName:Cr.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...zr(e)});class kv extends Xr{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ot.date){const i=this._getOrReturnCtx(t);return kt(i,{code:mt.invalid_type,expected:Ot.date,received:i.parsedType}),yr}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return kt(i,{code:mt.invalid_date}),yr}const s=new No;let n;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(n=this._getOrReturnCtx(t,n),kt(n,{code:mt.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),s.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(n=this._getOrReturnCtx(t,n),kt(n,{code:mt.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),s.dirty()):Cs.assertNever(i);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new kv({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:qt.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:qt.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}kv.create=e=>new kv({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Cr.ZodDate,...zr(e)});class SR extends Xr{_parse(t){if(this._getType(t)!==Ot.symbol){const s=this._getOrReturnCtx(t);return kt(s,{code:mt.invalid_type,expected:Ot.symbol,received:s.parsedType}),yr}return Ca(t.data)}}SR.create=e=>new SR({typeName:Cr.ZodSymbol,...zr(e)});class Cx extends Xr{_parse(t){if(this._getType(t)!==Ot.undefined){const s=this._getOrReturnCtx(t);return kt(s,{code:mt.invalid_type,expected:Ot.undefined,received:s.parsedType}),yr}return Ca(t.data)}}Cx.create=e=>new Cx({typeName:Cr.ZodUndefined,...zr(e)});class wx extends Xr{_parse(t){if(this._getType(t)!==Ot.null){const s=this._getOrReturnCtx(t);return kt(s,{code:mt.invalid_type,expected:Ot.null,received:s.parsedType}),yr}return Ca(t.data)}}wx.create=e=>new wx({typeName:Cr.ZodNull,...zr(e)});class zw extends Xr{constructor(){super(...arguments),this._any=!0}_parse(t){return Ca(t.data)}}zw.create=e=>new zw({typeName:Cr.ZodAny,...zr(e)});class pv extends Xr{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ca(t.data)}}pv.create=e=>new pv({typeName:Cr.ZodUnknown,...zr(e)});class bg extends Xr{_parse(t){const r=this._getOrReturnCtx(t);return kt(r,{code:mt.invalid_type,expected:Ot.never,received:r.parsedType}),yr}}bg.create=e=>new bg({typeName:Cr.ZodNever,...zr(e)});class xR extends Xr{_parse(t){if(this._getType(t)!==Ot.undefined){const s=this._getOrReturnCtx(t);return kt(s,{code:mt.invalid_type,expected:Ot.void,received:s.parsedType}),yr}return Ca(t.data)}}xR.create=e=>new xR({typeName:Cr.ZodVoid,...zr(e)});class ed extends Xr{_parse(t){const{ctx:r,status:s}=this._processInputParams(t),n=this._def;if(r.parsedType!==Ot.array)return kt(r,{code:mt.invalid_type,expected:Ot.array,received:r.parsedType}),yr;if(n.exactLength!==null){const o=r.data.length>n.exactLength.value,a=r.data.length<n.exactLength.value;(o||a)&&(kt(r,{code:o?mt.too_big:mt.too_small,minimum:a?n.exactLength.value:void 0,maximum:o?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),s.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(kt(r,{code:mt.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),s.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(kt(r,{code:mt.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),s.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>n.type._parseAsync(new jh(r,o,r.path,a)))).then(o=>No.mergeArray(s,o));const i=[...r.data].map((o,a)=>n.type._parseSync(new jh(r,o,r.path,a)));return No.mergeArray(s,i)}get element(){return this._def.type}min(t,r){return new ed({...this._def,minLength:{value:t,message:qt.toString(r)}})}max(t,r){return new ed({...this._def,maxLength:{value:t,message:qt.toString(r)}})}length(t,r){return new ed({...this._def,exactLength:{value:t,message:qt.toString(r)}})}nonempty(t){return this.min(1,t)}}ed.create=(e,t)=>new ed({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Cr.ZodArray,...zr(t)});function G0(e){if(e instanceof Rn){const t={};for(const r in e.shape){const s=e.shape[r];t[r]=Lh.create(G0(s))}return new Rn({...e._def,shape:()=>t})}else return e instanceof ed?new ed({...e._def,type:G0(e.element)}):e instanceof Lh?Lh.create(G0(e.unwrap())):e instanceof FA?FA.create(G0(e.unwrap())):e instanceof Kh?Kh.create(e.items.map(t=>G0(t))):e}class Rn extends Xr{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=Cs.objectKeys(t);return this._cached={shape:t,keys:r}}_parse(t){if(this._getType(t)!==Ot.object){const c=this._getOrReturnCtx(t);return kt(c,{code:mt.invalid_type,expected:Ot.object,received:c.parsedType}),yr}const{status:s,ctx:n}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof bg&&this._def.unknownKeys==="strip"))for(const c in n.data)o.includes(c)||a.push(c);const l=[];for(const c of o){const u=i[c],d=n.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new jh(n,d,n.path,c)),alwaysSet:c in n.data})}if(this._def.catchall instanceof bg){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of a)l.push({key:{status:"valid",value:u},value:{status:"valid",value:n.data[u]}});else if(c==="strict")a.length>0&&(kt(n,{code:mt.unrecognized_keys,keys:a}),s.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of a){const d=n.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new jh(n,d,n.path,u)),alwaysSet:u in n.data})}}return n.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key,g=await u.value;c.push({key:d,value:g,alwaysSet:u.alwaysSet})}return c}).then(c=>No.mergeObjectSync(s,c)):No.mergeObjectSync(s,l)}get shape(){return this._def.shape()}strict(t){return qt.errToObj,new Rn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,s)=>{var n,i,o,a;const l=(o=(i=(n=this._def).errorMap)===null||i===void 0?void 0:i.call(n,r,s).message)!==null&&o!==void 0?o:s.defaultError;return r.code==="unrecognized_keys"?{message:(a=qt.errToObj(t).message)!==null&&a!==void 0?a:l}:{message:l}}}:{}})}strip(){return new Rn({...this._def,unknownKeys:"strip"})}passthrough(){return new Rn({...this._def,unknownKeys:"passthrough"})}extend(t){return new Rn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Rn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Cr.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new Rn({...this._def,catchall:t})}pick(t){const r={};return Cs.objectKeys(t).forEach(s=>{t[s]&&this.shape[s]&&(r[s]=this.shape[s])}),new Rn({...this._def,shape:()=>r})}omit(t){const r={};return Cs.objectKeys(this.shape).forEach(s=>{t[s]||(r[s]=this.shape[s])}),new Rn({...this._def,shape:()=>r})}deepPartial(){return G0(this)}partial(t){const r={};return Cs.objectKeys(this.shape).forEach(s=>{const n=this.shape[s];t&&!t[s]?r[s]=n:r[s]=n.optional()}),new Rn({...this._def,shape:()=>r})}required(t){const r={};return Cs.objectKeys(this.shape).forEach(s=>{if(t&&!t[s])r[s]=this.shape[s];else{let i=this.shape[s];for(;i instanceof Lh;)i=i._def.innerType;r[s]=i}}),new Rn({...this._def,shape:()=>r})}keyof(){return xre(Cs.objectKeys(this.shape))}}Rn.create=(e,t)=>new Rn({shape:()=>e,unknownKeys:"strip",catchall:bg.create(),typeName:Cr.ZodObject,...zr(t)});Rn.strictCreate=(e,t)=>new Rn({shape:()=>e,unknownKeys:"strict",catchall:bg.create(),typeName:Cr.ZodObject,...zr(t)});Rn.lazycreate=(e,t)=>new Rn({shape:e,unknownKeys:"strip",catchall:bg.create(),typeName:Cr.ZodObject,...zr(t)});class yx extends Xr{_parse(t){const{ctx:r}=this._processInputParams(t),s=this._def.options;function n(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new jl(a.ctx.common.issues));return kt(r,{code:mt.invalid_union,unionErrors:o}),yr}if(r.common.async)return Promise.all(s.map(async i=>{const o={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(n);{let i;const o=[];for(const l of s){const c={...r,common:{...r.common,issues:[]},parent:null},u=l._parseSync({data:r.data,path:r.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(l=>new jl(l));return kt(r,{code:mt.invalid_union,unionErrors:a}),yr}}get options(){return this._def.options}}yx.create=(e,t)=>new yx({options:e,typeName:Cr.ZodUnion,...zr(t)});const Zp=e=>e instanceof xx?Zp(e.schema):e instanceof ud?Zp(e.innerType()):e instanceof Ex?[e.value]:e instanceof PA?e.options:e instanceof Px?Cs.objectValues(e.enum):e instanceof Fx?Zp(e._def.innerType):e instanceof Cx?[void 0]:e instanceof wx?[null]:e instanceof Lh?[void 0,...Zp(e.unwrap())]:e instanceof FA?[null,...Zp(e.unwrap())]:e instanceof Q6||e instanceof Tx?Zp(e.unwrap()):e instanceof Rx?Zp(e._def.innerType):[];class wD extends Xr{_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ot.object)return kt(r,{code:mt.invalid_type,expected:Ot.object,received:r.parsedType}),yr;const s=this.discriminator,n=r.data[s],i=this.optionsMap.get(n);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(kt(r,{code:mt.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),yr)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,s){const n=new Map;for(const i of r){const o=Zp(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of o){if(n.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);n.set(a,i)}}return new wD({typeName:Cr.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:n,...zr(s)})}}function p7(e,t){const r=$f(e),s=$f(t);if(e===t)return{valid:!0,data:e};if(r===Ot.object&&s===Ot.object){const n=Cs.objectKeys(t),i=Cs.objectKeys(e).filter(a=>n.indexOf(a)!==-1),o={...e,...t};for(const a of i){const l=p7(e[a],t[a]);if(!l.valid)return{valid:!1};o[a]=l.data}return{valid:!0,data:o}}else if(r===Ot.array&&s===Ot.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let i=0;i<e.length;i++){const o=e[i],a=t[i],l=p7(o,a);if(!l.valid)return{valid:!1};n.push(l.data)}return{valid:!0,data:n}}else return r===Ot.date&&s===Ot.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class bx extends Xr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t),n=(i,o)=>{if(d7(i)||d7(o))return yr;const a=p7(i.value,o.value);return a.valid?((h7(i)||h7(o))&&r.dirty(),{status:r.value,value:a.data}):(kt(s,{code:mt.invalid_intersection_types}),yr)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,o])=>n(i,o)):n(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}bx.create=(e,t,r)=>new bx({left:e,right:t,typeName:Cr.ZodIntersection,...zr(r)});class Kh extends Xr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Ot.array)return kt(s,{code:mt.invalid_type,expected:Ot.array,received:s.parsedType}),yr;if(s.data.length<this._def.items.length)return kt(s,{code:mt.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),yr;!this._def.rest&&s.data.length>this._def.items.length&&(kt(s,{code:mt.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const i=[...s.data].map((o,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new jh(s,o,s.path,a)):null}).filter(o=>!!o);return s.common.async?Promise.all(i).then(o=>No.mergeArray(r,o)):No.mergeArray(r,i)}get items(){return this._def.items}rest(t){return new Kh({...this._def,rest:t})}}Kh.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Kh({items:e,typeName:Cr.ZodTuple,rest:null,...zr(t)})};class Sx extends Xr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Ot.object)return kt(s,{code:mt.invalid_type,expected:Ot.object,received:s.parsedType}),yr;const n=[],i=this._def.keyType,o=this._def.valueType;for(const a in s.data)n.push({key:i._parse(new jh(s,a,s.path,a)),value:o._parse(new jh(s,s.data[a],s.path,a)),alwaysSet:a in s.data});return s.common.async?No.mergeObjectAsync(r,n):No.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(t,r,s){return r instanceof Xr?new Sx({keyType:t,valueType:r,typeName:Cr.ZodRecord,...zr(s)}):new Sx({keyType:Uu.create(),valueType:t,typeName:Cr.ZodRecord,...zr(r)})}}class ER extends Xr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Ot.map)return kt(s,{code:mt.invalid_type,expected:Ot.map,received:s.parsedType}),yr;const n=this._def.keyType,i=this._def.valueType,o=[...s.data.entries()].map(([a,l],c)=>({key:n._parse(new jh(s,a,s.path,[c,"key"])),value:i._parse(new jh(s,l,s.path,[c,"value"]))}));if(s.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of o){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return yr;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(c.value,u.value)}return{status:r.value,value:a}})}else{const a=new Map;for(const l of o){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return yr;(c.status==="dirty"||u.status==="dirty")&&r.dirty(),a.set(c.value,u.value)}return{status:r.value,value:a}}}}ER.create=(e,t,r)=>new ER({valueType:t,keyType:e,typeName:Cr.ZodMap,...zr(r)});class Bv extends Xr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Ot.set)return kt(s,{code:mt.invalid_type,expected:Ot.set,received:s.parsedType}),yr;const n=this._def;n.minSize!==null&&s.data.size<n.minSize.value&&(kt(s,{code:mt.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&s.data.size>n.maxSize.value&&(kt(s,{code:mt.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());const i=this._def.valueType;function o(l){const c=new Set;for(const u of l){if(u.status==="aborted")return yr;u.status==="dirty"&&r.dirty(),c.add(u.value)}return{status:r.value,value:c}}const a=[...s.data.values()].map((l,c)=>i._parse(new jh(s,l,s.path,c)));return s.common.async?Promise.all(a).then(l=>o(l)):o(a)}min(t,r){return new Bv({...this._def,minSize:{value:t,message:qt.toString(r)}})}max(t,r){return new Bv({...this._def,maxSize:{value:t,message:qt.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}Bv.create=(e,t)=>new Bv({valueType:e,minSize:null,maxSize:null,typeName:Cr.ZodSet,...zr(t)});class lw extends Xr{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ot.function)return kt(r,{code:mt.invalid_type,expected:Ot.function,received:r.parsedType}),yr;function s(a,l){return yR({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,wR(),Vw].filter(c=>!!c),issueData:{code:mt.invalid_arguments,argumentsError:l}})}function n(a,l){return yR({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,wR(),Vw].filter(c=>!!c),issueData:{code:mt.invalid_return_type,returnTypeError:l}})}const i={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Qw){const a=this;return Ca(async function(...l){const c=new jl([]),u=await a._def.args.parseAsync(l,i).catch(A=>{throw c.addIssue(s(l,A)),c}),d=await Reflect.apply(o,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(A=>{throw c.addIssue(n(d,A)),c})})}else{const a=this;return Ca(function(...l){const c=a._def.args.safeParse(l,i);if(!c.success)throw new jl([s(l,c.error)]);const u=Reflect.apply(o,this,c.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new jl([n(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new lw({...this._def,args:Kh.create(t).rest(pv.create())})}returns(t){return new lw({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,s){return new lw({args:t||Kh.create([]).rest(pv.create()),returns:r||pv.create(),typeName:Cr.ZodFunction,...zr(s)})}}class xx extends Xr{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}xx.create=(e,t)=>new xx({getter:e,typeName:Cr.ZodLazy,...zr(t)});class Ex extends Xr{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return kt(r,{received:r.data,code:mt.invalid_literal,expected:this._def.value}),yr}return{status:"valid",value:t.data}}get value(){return this._def.value}}Ex.create=(e,t)=>new Ex({value:e,typeName:Cr.ZodLiteral,...zr(t)});function xre(e,t){return new PA({values:e,typeName:Cr.ZodEnum,...zr(t)})}class PA extends Xr{constructor(){super(...arguments),T1.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),s=this._def.values;return kt(r,{expected:Cs.joinValues(s),received:r.parsedType,code:mt.invalid_type}),yr}if(bR(this,T1)||wre(this,T1,new Set(this._def.values)),!bR(this,T1).has(t.data)){const r=this._getOrReturnCtx(t),s=this._def.values;return kt(r,{received:r.data,code:mt.invalid_enum_value,options:s}),yr}return Ca(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return PA.create(t,{...this._def,...r})}exclude(t,r=this._def){return PA.create(this.options.filter(s=>!t.includes(s)),{...this._def,...r})}}T1=new WeakMap;PA.create=xre;class Px extends Xr{constructor(){super(...arguments),D1.set(this,void 0)}_parse(t){const r=Cs.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==Ot.string&&s.parsedType!==Ot.number){const n=Cs.objectValues(r);return kt(s,{expected:Cs.joinValues(n),received:s.parsedType,code:mt.invalid_type}),yr}if(bR(this,D1)||wre(this,D1,new Set(Cs.getValidEnumValues(this._def.values))),!bR(this,D1).has(t.data)){const n=Cs.objectValues(r);return kt(s,{received:s.data,code:mt.invalid_enum_value,options:n}),yr}return Ca(t.data)}get enum(){return this._def.values}}D1=new WeakMap;Px.create=(e,t)=>new Px({values:e,typeName:Cr.ZodNativeEnum,...zr(t)});class Qw extends Xr{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ot.promise&&r.common.async===!1)return kt(r,{code:mt.invalid_type,expected:Ot.promise,received:r.parsedType}),yr;const s=r.parsedType===Ot.promise?r.data:Promise.resolve(r.data);return Ca(s.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}}Qw.create=(e,t)=>new Qw({type:e,typeName:Cr.ZodPromise,...zr(t)});class ud extends Xr{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Cr.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:s}=this._processInputParams(t),n=this._def.effect||null,i={addIssue:o=>{kt(s,o),o.fatal?r.abort():r.dirty()},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),n.type==="preprocess"){const o=n.transform(s.data,i);if(s.common.async)return Promise.resolve(o).then(async a=>{if(r.value==="aborted")return yr;const l=await this._def.schema._parseAsync({data:a,path:s.path,parent:s});return l.status==="aborted"?yr:l.status==="dirty"||r.value==="dirty"?U0(l.value):l});{if(r.value==="aborted")return yr;const a=this._def.schema._parseSync({data:o,path:s.path,parent:s});return a.status==="aborted"?yr:a.status==="dirty"||r.value==="dirty"?U0(a.value):a}}if(n.type==="refinement"){const o=a=>{const l=n.refinement(a,i);if(s.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(s.common.async===!1){const a=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?yr:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(a=>a.status==="aborted"?yr:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(n.type==="transform")if(s.common.async===!1){const o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Ax(o))return o;const a=n.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>Ax(o)?Promise.resolve(n.transform(o.value,i)).then(a=>({status:r.value,value:a})):o);Cs.assertNever(n)}}ud.create=(e,t,r)=>new ud({schema:e,typeName:Cr.ZodEffects,effect:t,...zr(r)});ud.createWithPreprocess=(e,t,r)=>new ud({schema:t,effect:{type:"preprocess",transform:e},typeName:Cr.ZodEffects,...zr(r)});class Lh extends Xr{_parse(t){return this._getType(t)===Ot.undefined?Ca(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Lh.create=(e,t)=>new Lh({innerType:e,typeName:Cr.ZodOptional,...zr(t)});class FA extends Xr{_parse(t){return this._getType(t)===Ot.null?Ca(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}FA.create=(e,t)=>new FA({innerType:e,typeName:Cr.ZodNullable,...zr(t)});class Fx extends Xr{_parse(t){const{ctx:r}=this._processInputParams(t);let s=r.data;return r.parsedType===Ot.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Fx.create=(e,t)=>new Fx({innerType:e,typeName:Cr.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...zr(t)});class Rx extends Xr{_parse(t){const{ctx:r}=this._processInputParams(t),s={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return mx(n)?n.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new jl(s.common.issues)},input:s.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new jl(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}Rx.create=(e,t)=>new Rx({innerType:e,typeName:Cr.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...zr(t)});class PR extends Xr{_parse(t){if(this._getType(t)!==Ot.nan){const s=this._getOrReturnCtx(t);return kt(s,{code:mt.invalid_type,expected:Ot.nan,received:s.parsedType}),yr}return{status:"valid",value:t.data}}}PR.create=e=>new PR({typeName:Cr.ZodNaN,...zr(e)});const kLt=Symbol("zod_brand");class Q6 extends Xr{_parse(t){const{ctx:r}=this._processInputParams(t),s=r.data;return this._def.type._parse({data:s,path:r.path,parent:r})}unwrap(){return this._def.type}}class M3 extends Xr{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?yr:i.status==="dirty"?(r.dirty(),U0(i.value)):this._def.out._parseAsync({data:i.value,path:s.path,parent:s})})();{const n=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?yr:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:s.path,parent:s})}}static create(t,r){return new M3({in:t,out:r,typeName:Cr.ZodPipeline})}}class Tx extends Xr{_parse(t){const r=this._def.innerType._parse(t),s=n=>(Ax(n)&&(n.value=Object.freeze(n.value)),n);return mx(r)?r.then(n=>s(n)):s(r)}unwrap(){return this._def.innerType}}Tx.create=(e,t)=>new Tx({innerType:e,typeName:Cr.ZodReadonly,...zr(t)});function Ere(e,t={},r){return e?zw.create().superRefine((s,n)=>{var i,o;if(!e(s)){const a=typeof t=="function"?t(s):typeof t=="string"?{message:t}:t,l=(o=(i=a.fatal)!==null&&i!==void 0?i:r)!==null&&o!==void 0?o:!0,c=typeof a=="string"?{message:a}:a;n.addIssue({code:"custom",...c,fatal:l})}}):zw.create()}const BLt={object:Rn.lazycreate};var Cr;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Cr||(Cr={}));const LLt=(e,t={message:`Input not instance of ${e.name}`})=>Ere(r=>r instanceof e,t),Pre=Uu.create,Fre=xA.create,HLt=PR.create,GLt=EA.create,Rre=vx.create,OLt=kv.create,NLt=SR.create,_Lt=Cx.create,VLt=wx.create,zLt=zw.create,QLt=pv.create,ULt=bg.create,WLt=xR.create,jLt=ed.create,KLt=Rn.create,YLt=Rn.strictCreate,ZLt=yx.create,XLt=wD.create,$Lt=bx.create,JLt=Kh.create,qLt=Sx.create,e5t=ER.create,t5t=Bv.create,r5t=lw.create,s5t=xx.create,n5t=Ex.create,i5t=PA.create,o5t=Px.create,a5t=Qw.create,HQ=ud.create,l5t=Lh.create,c5t=FA.create,u5t=ud.createWithPreprocess,d5t=M3.create,h5t=()=>Pre().optional(),p5t=()=>Fre().optional(),g5t=()=>Rre().optional(),f5t={string:e=>Uu.create({...e,coerce:!0}),number:e=>xA.create({...e,coerce:!0}),boolean:e=>vx.create({...e,coerce:!0}),bigint:e=>EA.create({...e,coerce:!0}),date:e=>kv.create({...e,coerce:!0})},A5t=yr;var us=Object.freeze({__proto__:null,defaultErrorMap:Vw,setErrorMap:ALt,getErrorMap:wR,makeIssue:yR,EMPTY_PATH:mLt,addIssueToContext:kt,ParseStatus:No,INVALID:yr,DIRTY:U0,OK:Ca,isAborted:d7,isDirty:h7,isValid:Ax,isAsync:mx,get util(){return Cs},get objectUtil(){return u7},ZodParsedType:Ot,getParsedType:$f,ZodType:Xr,datetimeRegex:Sre,ZodString:Uu,ZodNumber:xA,ZodBigInt:EA,ZodBoolean:vx,ZodDate:kv,ZodSymbol:SR,ZodUndefined:Cx,ZodNull:wx,ZodAny:zw,ZodUnknown:pv,ZodNever:bg,ZodVoid:xR,ZodArray:ed,ZodObject:Rn,ZodUnion:yx,ZodDiscriminatedUnion:wD,ZodIntersection:bx,ZodTuple:Kh,ZodRecord:Sx,ZodMap:ER,ZodSet:Bv,ZodFunction:lw,ZodLazy:xx,ZodLiteral:Ex,ZodEnum:PA,ZodNativeEnum:Px,ZodPromise:Qw,ZodEffects:ud,ZodTransformer:ud,ZodOptional:Lh,ZodNullable:FA,ZodDefault:Fx,ZodCatch:Rx,ZodNaN:PR,BRAND:kLt,ZodBranded:Q6,ZodPipeline:M3,ZodReadonly:Tx,custom:Ere,Schema:Xr,ZodSchema:Xr,late:BLt,get ZodFirstPartyTypeKind(){return Cr},coerce:f5t,any:zLt,array:jLt,bigint:GLt,boolean:Rre,date:OLt,discriminatedUnion:XLt,effect:HQ,enum:i5t,function:r5t,instanceof:LLt,intersection:$Lt,lazy:s5t,literal:n5t,map:e5t,nan:HLt,nativeEnum:o5t,never:ULt,null:VLt,nullable:c5t,number:Fre,object:KLt,oboolean:g5t,onumber:p5t,optional:l5t,ostring:h5t,pipeline:d5t,preprocess:u5t,promise:a5t,record:qLt,set:t5t,strictObject:YLt,string:Pre,symbol:NLt,transformer:HQ,tuple:JLt,undefined:_Lt,union:ZLt,unknown:QLt,void:WLt,NEVER:A5t,ZodIssueCode:mt,quotelessJson:fLt,ZodError:jl}),m5t=Object.defineProperty,v5t=(e,t,r)=>t in e?m5t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,r2=(e,t,r)=>v5t(e,typeof t!="symbol"?t+"":t,r);function Tre(e){throw new Error("Unexpected object: "+e)}function U6(e){if(!e||typeof e!="object")return!1;const t=e;if(!("type"in t))return!1;switch(t.type){case"Json":return typeof t.keyLength=="number"&&t.data!==void 0&&typeof t.data=="object";case"JsonPartitioned":return typeof t.partitionKeyLength=="number"&&t.parts!==void 0&&typeof t.parts=="object";case"BinaryPartitioned":return typeof t.partitionKeyLength=="number"&&t.parts!==void 0&&typeof t.parts=="object";default:return!1}}function C5t(e,t){if(e!==void 0)switch(e.type){case"Json":return e;case"JsonPartitioned":{const r={};for(const[s,n]of Object.entries(e.parts))r[s]=t(n);return{...e,parts:r}}case"BinaryPartitioned":{const r={};for(const[s,n]of Object.entries(e.parts))r[s]={index:t(n.index),values:t(n.values)};return{...e,parts:r}}}}function W6(e){if(!e||typeof e!="object")return!1;const t=e;if(!("type"in t))return!1;switch(t.type){case"Json":return typeof t.keyLength=="number"&&Array.isArray(t.data);case"JsonPartitioned":return typeof t.partitionKeyLength=="number"&&Array.isArray(t.parts);case"BinaryPartitioned":return typeof t.partitionKeyLength=="number"&&Array.isArray(t.parts);default:return!1}}function w5t(e){return W6(e)?e.type==="JsonPartitioned"||e.type==="BinaryPartitioned":!1}function y5t(e){switch(e.type){case"Json":{const t=Object.entries(e.data).map(([r,s])=>({key:JSON.parse(r),value:s}));return{type:"Json",keyLength:e.keyLength,data:t}}case"JsonPartitioned":{const t=Object.entries(e.parts).map(([r,s])=>({key:JSON.parse(r),value:s}));return{type:"JsonPartitioned",partitionKeyLength:e.partitionKeyLength,parts:t}}case"BinaryPartitioned":{const t=Object.entries(e.parts).map(([r,s])=>({key:JSON.parse(r),value:s}));return{type:"BinaryPartitioned",partitionKeyLength:e.partitionKeyLength,parts:t}}}}function b5t(e){switch(e.type){case"Json":{const t={};for(const r of e.data)t[JSON.stringify(r.key)]=r.value;return{type:"Json",keyLength:e.keyLength,data:t}}case"JsonPartitioned":{const t={};for(const r of e.parts)t[JSON.stringify(r.key)]=r.value;return{type:"JsonPartitioned",partitionKeyLength:e.partitionKeyLength,parts:t}}case"BinaryPartitioned":{const t={};for(const r of e.parts)t[JSON.stringify(r.key)]=r.value;return{type:"BinaryPartitioned",partitionKeyLength:e.partitionKeyLength,parts:t}}}}function RA(e){const{type:t,name:r,domain:s}=e;return{type:t,name:r,...s&&{domain:s}}}function S5t(e){return e.map(RA)}function x5t(e){return vy(RA(e))}function E5t(e,t){if(e===void 0)return t===void 0;if(t===void 0)return!0;for(const r in t)if(e[r]!==t[r])return!1;return!0}function P5t(e,t){return e.name===t.name&&E5t(e.domain,t.domain)}function F5t(e,t){return{...e,src:H2(e.src,t)}}function H2(e,t){switch(e.type){case"column":return{type:"column",column:t(e.column)};case"slicedColumn":return{type:"slicedColumn",column:t(e.column),newId:e.newId,axisFilters:e.axisFilters};case"inlineColumn":return e;case"inner":case"full":return{type:e.type,entries:e.entries.map(r=>H2(r,t))};case"outer":return{type:"outer",primary:H2(e.primary,t),secondary:e.secondary.map(r=>H2(r,t))};default:Tre(e)}}function R5t(e){return vy(e)}function GQ(e){return vy(RA(e))}function OQ(e,t){return JSON.stringify([e,t])}class NQ{constructor(t){r2(this,"domains",new Map),r2(this,"axes",new Map),r2(this,"domainPacks",[]),r2(this,"domainPackToAnchor",new Map),this.anchors=t;const r=Object.entries(t);r.sort((s,n)=>s[0].localeCompare(n[0]));for(const[s,n]of r){for(let i=0;i<n.axesSpec.length;i++){const o=n.axesSpec[i],a=GQ(o);this.axes.set(a,{anchor:s,idx:i})}if(n.domain!==void 0){const i=Object.entries(n.domain);i.sort((o,a)=>o[0].localeCompare(a[0])),this.domainPackToAnchor.set(JSON.stringify(i),s),this.domainPacks.push(i.map(([o])=>o));for(const[o,a]of i){const l=OQ(o,a);this.domains.set(l,s)}}}}derive(t,r){const s={name:t.name,axes:[]};let n;if(t.domain!==void 0)e:for(const o of this.domainPacks){const a=[];for(const c of o){const u=t.domain[c];if(u!==void 0)a.push([c,u]);else break e}const l=this.domainPackToAnchor.get(JSON.stringify(a));if(l!==void 0){s.domainAnchor=l,n=new Set(o);break}}for(const[o,a]of Object.entries(t.domain??{})){if(n!==void 0&&n.has(o))continue;const l=OQ(o,a),c=this.domains.get(l);s.domain??(s.domain={}),s.domain[o]=c?{anchor:c}:a}if(s.axes=t.axesSpec.map(o=>{const a=GQ(o),l=this.axes.get(a);return l===void 0?RA(o):l}),!r||r.length===0)return s;const i=[];for(const o of r){const[a,l]=o;if(typeof a=="number"){if(a<0||a>=t.axesSpec.length)throw new Error(`Axis index ${a} is out of bounds (0-${t.axesSpec.length-1})`);i.push([a,l])}else{const c=t.axesSpec.findIndex(u=>u.name===a);if(c===-1)throw new Error(`Axis with name "${a}" not found in the column specification`);i.push([c,l])}}return i.sort((o,a)=>o[0]-a[0]),{source:s,axisFilters:i}}deriveS(t,r){return R5t(this.derive(t,r))}}function _Q(e,t,r){const s={...t},n=(r==null?void 0:r.ignoreMissingDomains)??!1;if(s.domainAnchor!==void 0){const i=e[s.domainAnchor];if(!i)throw new Error(`Anchor "${s.domainAnchor}" not found`);const o=i.domain||{};s.domain={...o,...s.domain},delete s.domainAnchor}if(s.domain){const i={};for(const[o,a]of Object.entries(s.domain))if(typeof a=="string")i[o]=a;else{const l=e[a.anchor];if(!l)throw new Error(`Anchor "${a.anchor}" not found for domain key "${o}"`);if(!l.domain||l.domain[o]===void 0){if(!n)throw new Error(`Domain key "${o}" not found in anchor "${a.anchor}"`);continue}i[o]=l.domain[o]}s.domain=i}return s.axes&&(s.axes=s.axes.map(i=>T5t(e,i))),s}function T5t(e,t){if(!D5t(t))return t;const r=t.anchor,s=e[r];if(!s)throw new Error(`Anchor "${r}" not found for axis reference`);if("idx"in t){if(t.idx<0||t.idx>=s.axesSpec.length)throw new Error(`Axis index ${t.idx} out of bounds for anchor "${r}"`);return s.axesSpec[t.idx]}else if("name"in t){const n=s.axesSpec.filter(i=>i.name===t.name);if(n.length>1)throw new Error(`Multiple axes with name "${t.name}" found in anchor "${r}"`);if(n.length===0)throw new Error(`Axis with name "${t.name}" not found in anchor "${r}"`);return n[0]}else if("id"in t){const n=s.axesSpec.filter(i=>P5t(t.id,RA(i)));if(n.length>1)throw new Error(`Multiple matching axes found for matcher in anchor "${r}"`);if(n.length===0)throw new Error(`No matching axis found for matcher in anchor "${r}"`);return n[0]}throw new Error("Unsupported axis reference type")}function D5t(e){return typeof e=="object"&&"anchor"in e}function oA(e){return e.kind==="PColumn"}function j6(e){return oA(e.spec)}function M5t(e){if(!j6(e))throw new Error(`not a PColumn (kind = ${e.spec.kind})`);return e}function K6(e,t){return e===void 0?void 0:{...e,data:t(e.data)}}function I5t(e){const t=new Map,r=s=>{switch(s.type){case"column":t.set(s.column.id,s.column);return;case"slicedColumn":t.set(s.column.id,s.column);return;case"inlineColumn":return;case"full":case"inner":for(const n of s.entries)r(n);return;case"outer":r(s.primary);for(const n of s.secondary)r(n);return;default:Tre(s)}};return r(e),[...t.values()]}function VQ(e,t){if(e.name!==void 0&&e.name!==t.name)return!1;if(e.type!==void 0){if(Array.isArray(e.type)){if(!e.type.includes(t.type))return!1}else if(e.type!==t.type)return!1}if(e.domain!==void 0){const r=t.domain||{};for(const[s,n]of Object.entries(e.domain))if(r[s]!==n)return!1}return!0}function zQ(e,t){if(t.name!==void 0&&e.name!==t.name||t.namePattern!==void 0&&!new RegExp(t.namePattern).test(e.name))return!1;if(t.type!==void 0){if(Array.isArray(t.type)){if(!t.type.includes(e.valueType))return!1}else if(t.type!==e.valueType)return!1}if(t.domain!==void 0){const r=e.domain||{};for(const[s,n]of Object.entries(t.domain))if(r[s]!==n)return!1}if(t.axes!==void 0){const r=e.axesSpec.map(RA);if(t.partialAxesMatch){for(const s of t.axes)if(!r.some(n=>VQ(s,n)))return!1}else{if(r.length!==t.axes.length)return!1;for(let s=0;s<t.axes.length;s++)if(!VQ(t.axes[s],r[s]))return!1}}if(t.annotations!==void 0){const r=e.annotations||{};for(const[s,n]of Object.entries(t.annotations))if(r[s]!==n)return!1}if(t.annotationPatterns!==void 0){const r=e.annotations||{};for(const[s,n]of Object.entries(t.annotationPatterns)){const i=r[s];if(i===void 0||!new RegExp(n).test(i))return!1}}return!0}function Dx(e){return Array.isArray(e)?t=>e.some(r=>oA(t)&&zQ(t,r)):t=>oA(t)&&zQ(t,e)}function k5t(e){const t={kind:e.kind,name:e.name};return e.domain!==void 0&&(t.domain=e.domain),oA(e)&&(t.axesSpec=S5t(e.axesSpec)),vy(t)}us.object({__isRef:us.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),blockId:us.string().describe("Upstream block id"),name:us.string().describe("Name of the output provided to the upstream block's output context"),requireEnrichments:us.literal(!0).optional().describe("True if current block that stores this reference in its args, may need enrichments for the references value originating from the blocks in between current and referenced block")}).describe("Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees.").readonly();function B5t(e){return typeof e=="object"&&e!==null&&"__isRef"in e&&e.__isRef===!0&&"blockId"in e&&"name"in e}function QQ(e,t=!0){if(t)return{...e,requireEnrichments:!0};{const{requireEnrichments:r,...s}=e;return s}}function L5t(e,t){return e.ok?{ok:!0,value:t(e.value)}:e}const H5t=24;us.string().length(H5t).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");var UQ={exports:{}};(function(e,t){t=e.exports=r,t.getSerialize=s;function r(n,i,o,a){return JSON.stringify(n,s(i,a),o)}function s(n,i){var o=[],a=[];return i==null&&(i=function(l,c){return o[0]===c?"[Circular ~]":"[Circular ~."+a.slice(0,o.indexOf(c)).join(".")+"]"}),function(l,c){if(o.length>0){var u=o.indexOf(this);~u?o.splice(u+1):o.push(this),~u?a.splice(u,1/0,l):a.push(l),~o.indexOf(c)&&(c=i.call(this,l,c))}else o.push(c);return n==null?c:n.call(this,l,c)}}})(UQ,UQ.exports);const G5t=us.object({type:us.literal("PlError"),name:us.string(),message:us.string(),fullMessage:us.string().optional(),stack:us.string().optional()}),O5t=G5t.extend({cause:us.lazy(()=>FR).optional(),errors:us.lazy(()=>FR.array()).optional()}),N5t=us.object({type:us.literal("StandardError"),name:us.string(),message:us.string(),stack:us.string().optional()}),_5t=N5t.extend({cause:us.lazy(()=>FR).optional(),errors:us.lazy(()=>FR.array()).optional()}),FR=us.union([_5t,O5t]),V5t=us.object({name:us.string(),message:us.string(),fullMessage:us.string().optional(),stack:us.string().optional()}),WQ=V5t.extend({cause:us.lazy(()=>WQ).optional(),errors:us.lazy(()=>WQ.array()).optional()});var z5t=Object.defineProperty,Q5t=(e,t,r)=>t in e?z5t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Vu=(e,t,r)=>Q5t(e,typeof t!="symbol"?t+"":t,r);function zI(e){return{type:"Immediate",value:e}}function U5t(){return typeof globalThis.getPlatforma<"u"||typeof globalThis.platforma<"u"}function W5t(e){if(e&&typeof globalThis.getPlatforma=="function")return globalThis.getPlatforma(e);if(typeof globalThis.platforma<"u")return globalThis.platforma;throw new Error("Can't get platforma instance.")}function j5t(){if(typeof globalThis.cfgRenderCtx<"u")return globalThis.cfgRenderCtx}function Os(){if(typeof globalThis.cfgRenderCtx<"u")return globalThis.cfgRenderCtx;throw new Error("Not in config rendering context")}function c1(e,t){const r=j5t();if(r===void 0)return!1;if(e in r.callbackRegistry)throw new Error(`Callback with key ${e} already registered.`);return r.callbackRegistry[e]=t,!0}const QI=new Map;function K5t(e,t){e in Os().callbackRegistry||(Os().callbackRegistry[e]=r=>{for(const s of QI.get(e))s(r)},QI.set(e,[])),QI.get(e).push(t)}class qa{constructor(t,r=s=>s){Vu(this,"isResolved",!1),Vu(this,"resolvedValue"),this.handle=t,this.postProcess=r,K5t(t,s=>{this.resolvedValue=r(s),this.isResolved=!0})}map(t){return new qa(this.handle,r=>t(this.postProcess(r)))}mapDefined(t){return new qa(this.handle,r=>{const s=this.postProcess(r);return s?t(s):void 0})}toJSON(){return this.isResolved?this.resolvedValue:{__awaited_futures__:[this.handle]}}}function g7(e,t){return e===void 0?void 0:t(e)}class td{constructor(t,r){this.handle=t,this.resolvePath=r}resolve(...t){const r=t.map(s=>({assertFieldType:"Input",...typeof s=="string"?{field:s}:s}));return this.resolveWithCommon({},...r)}resolveOutput(...t){const r=t.map(s=>({assertFieldType:"Output",...typeof s=="string"?{field:s}:s}));return this.resolveWithCommon({},...r)}resolveInput(...t){const r=t.map(s=>({assertFieldType:"Input",...typeof s=="string"?{field:s}:s}));return this.resolveWithCommon({},...r)}resolveAny(...t){return this.resolveWithCommon({},...t)}resolveWithCommon(t,...r){const s=[...this.resolvePath,...r.map(n=>typeof n=="string"?n:n.field)];return g7(Os().resolveWithCommon(this.handle,t,...r),n=>new td(n,s))}get resourceType(){return Os().getResourceType(this.handle)}getInputsLocked(){return Os().getInputsLocked(this.handle)}getOutputsLocked(){return Os().getOutputsLocked(this.handle)}getIsReadyOrError(){return Os().getIsReadyOrError(this.handle)}getIsFinal(){return Os().getIsFinal(this.handle)}getError(){const t=[...this.resolvePath,"error"];return g7(Os().getError(this.handle),r=>new td(r,t))}listInputFields(){return Os().listInputFields(this.handle)}listOutputFields(){return Os().listOutputFields(this.handle)}listDynamicFields(){return Os().listDynamicFields(this.handle)}getKeyValueBase64(t){return Os().getKeyValueBase64(this.handle,t)}getKeyValueAsString(t){return Os().getKeyValueAsString(this.handle,t)}getKeyValueAsJson(t){const r=this.getKeyValueAsString(t);if(r==null)throw new Error("Resource has no content.");return JSON.parse(r)}getDataBase64(){return Os().getDataBase64(this.handle)}getDataAsString(){return Os().getDataAsString(this.handle)}getDataAsJson(){const t=this.getDataAsString();if(t==null)throw new Error("Resource has no content.");return JSON.parse(t)}getPColumns(t=!1,r=""){const s=this.parsePObjectCollection(t,r);return s===void 0?void 0:Object.entries(s).map(([,n])=>{if(!j6(n))throw new Error(`not a PColumn (kind = ${n.spec.kind})`);return n})}parsePObjectCollection(t=!1,r=""){const s=Os().parsePObjectCollection(this.handle,t,r,...this.resolvePath);if(s===void 0)return;const n={};for(const[i,o]of Object.entries(s)){const a=[...this.resolvePath,i];n[i]=K6(o,l=>new td(l,a))}return n}getFileContentAsBase64(t){return new qa(Os().getBlobContentAsBase64(this.handle,t))}getFileContentAsString(t){return new qa(Os().getBlobContentAsString(this.handle,t))}getFileContentAsJson(t){return new qa(Os().getBlobContentAsString(this.handle,t)).mapDefined(r=>JSON.parse(r))}getBlobContentAsBase64(){return this.getFileContentAsBase64()}getBlobContentAsString(){return this.getFileContentAsString()}getFileHandle(){return new qa(Os().getDownloadedBlobContentHandle(this.handle))}getDownloadedBlobHandle(){return this.getFileHandle()}getRemoteFileHandle(){return new qa(Os().getOnDemandBlobContentHandle(this.handle))}getOnDemandBlobHandle(){return this.getRemoteFileHandle()}extractArchiveAndGetURL(t){return new qa(Os().extractArchiveAndGetURL(this.handle,t))}getImportProgress(){return new qa(Os().getImportProgress(this.handle))}getLastLogs(t){return new qa(Os().getLastLogs(this.handle,t))}getProgressLog(t){return new qa(Os().getProgressLog(this.handle,t))}getProgressLogWithInfo(t){return new qa(Os().getProgressLogWithInfo(this.handle,t))}getLogHandle(){return new qa(Os().getLogHandle(this.handle))}allFieldsResolved(t="Input"){switch(t){case"Input":return this.getInputsLocked()&&this.listInputFields().every(r=>this.resolve({field:r,assertFieldType:"Input"})!==void 0);case"Output":return this.getOutputsLocked()&&this.listOutputFields().every(r=>this.resolve({field:r,assertFieldType:"Output"})!==void 0)}}mapFields(t,r){const{fieldType:s,requireLocked:n,skipUnresolved:i}={fieldType:"Input",requireLocked:!0,skipUnresolved:!1,...r},o=t;if(n&&(s==="Input"&&!this.getInputsLocked()||s==="Output"&&!this.getOutputsLocked()))return;let a=(s==="Input"?this.listInputFields():s==="Output"?this.listOutputFields():this.listDynamicFields()).map(l=>[l,this.resolve({field:l,assertFieldType:s})]);return i&&(a=a.filter(l=>l[1]!==void 0)),a.map(([l,c])=>o(l,c))}}const Y5t="staging",Z5t="main",X5t="pl7.app/label",$5t="pl7.app/trace",J5t=us.object({type:us.string(),importance:us.number().optional(),id:us.string().optional(),label:us.string()}),q5t=us.array(J5t),e6t=.001,t6t="__LABEL__",jQ="__LABEL__@1";function Dre(e,t,r={}){const s=new Map,n=r.forceTraceElements!==void 0&&r.forceTraceElements.length>0?new Set(r.forceTraceElements):void 0,i=new Map,o=e.map(A=>{var w,v;const b=t(A);let S,P,F;"spec"in b&&typeof b.spec=="object"?(S=b.spec,P=b.prefixTrace,F=b.suffixTrace):S=b;const T=(w=S.annotations)==null?void 0:w[X5t],D=(v=S.annotations)==null?void 0:v[$5t],B=(D?q5t.safeParse(JSON.parse(D)).data:void 0)??[],k=[...P??[],...B,...F??[]];if(T!==void 0){const j={label:T,type:t6t,importance:-2};r.addLabelAsSuffix?k.push(j):k.splice(0,0,j)}const z=[],O=new Map;for(let j=k.length-1;j>=0;--j){const{type:_}=k[j],G=k[j].importance??0,N=(O.get(_)??0)+1;O.set(_,N);const W=`${_}@${N}`;i.set(W,(i.get(W)??0)+1),s.set(W,Math.max(s.get(W)??Number.NEGATIVE_INFINITY,G-(k.length-j)*e6t)),z.push({...k[j],fullType:W,occurrenceIndex:N})}return z.reverse(),{value:A,spec:S,label:T,fullTrace:z}}),a=[],l=[],c=[...s];c.sort(([,A],[,w])=>w-A);for(const[A]of c)A.endsWith("@1")||i.get(A)===e.length?a.push(A):l.push(A);const u=(A,w=!1)=>{const v=[];for(let b=0;b<o.length;b++){const S=o[b],P=S.fullTrace.filter(D=>A.has(D.fullType)||n&&n.has(D.type));if(P.length===0)if(w)v.push({label:"Unlabeled",value:S.value});else return;const F=P.map(D=>D.label),T=r.separator??" / ";v.push({label:F.join(T),value:S.value})}return v};if(a.length===0){if(l.length!==0)throw new Error("Non-empty secondary types list while main types list is empty.");return u(new Set(jQ),!0)}let d=0,g=-1;for(;d<a.length;){const A=new Set;r.includeNativeLabel&&A.add(jQ);for(let v=0;v<d;++v)A.add(a[v]);g>=0&&A.add(a[g]);const w=u(A);if(w!==void 0&&new Set(w.map(v=>v.label)).size===e.length)return w;g++,g>=a.length&&(d++,g=d)}return u(new Set([...a,...l]),!0)}const I3="PColumnData/",f7=I3+"ResourceMap",A7=I3+"Partitioned/ResourceMap",sS=I3+"JsonPartitioned",cw=I3+"BinaryPartitioned",Mre=I3+"Partitioned/",RR=Mre+"JsonPartitioned",nS=Mre+"BinaryPartitioned",m7=e=>{if(e.endsWith(".index"))return{baseKey:e.substring(0,e.length-6),type:"index"};if(e.endsWith(".values"))return{baseKey:e.substring(0,e.length-7),type:"values"};throw new Error(`key must ends on .index/.values for binary p-column, got: ${e}`)};function r6t(e){if(!e)return;const t=e.resourceType.name,r=e.getDataAsJson(),s=[];let n=0;switch(t){case f7:n=r.keyLength;break;case A7:n=r.partitionKeyLength+r.keyLength;break;case sS:case cw:n=r.partitionKeyLength;break;case nS:case RR:n=r.superPartitionKeyLength+r.partitionKeyLength;break}switch(t){case f7:case sS:case cw:for(let i of e.listInputFields()){t===cw&&(i=m7(i).baseKey);const o=[...JSON.parse(i)];s.push(o)}break;case A7:case nS:case RR:for(const i of e.listInputFields()){const o=[...JSON.parse(i)],a=e.resolve({field:i,assertFieldType:"Input"});if(a!==void 0)for(let l of a.listInputFields()){t===nS&&(l=m7(l).baseKey);const c=[...o,...JSON.parse(l)];s.push(c)}}break}return{data:s,keyLength:n}}function s6t(e){if(e.type!=="JsonPartitioned"&&e.type!=="BinaryPartitioned")throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${e.type}`);const{parts:t,partitionKeyLength:r}=e,s=[];for(let n=0;n<r;++n)s.push(new Set);for(const n of t){const i=n.key;if(i.length!==r)throw new Error(`Key length (${i.length}) does not match partition length (${r}) for key: ${JSON.stringify(i)}`);for(let o=0;o<r;++o)s[o].add(i[o])}return s.map(n=>Array.from(n.values()))}function n6t(e){if(e===void 0)return;if(W6(e))return s6t(e);const t=r6t(e);if(!t)return;const{data:r,keyLength:s}=t,n=[];for(let i=0;i<s;++i)n.push(new Set);for(const i of r){if(i.length!==s)throw new Error("key length does not match partition length");for(let o=0;o<s;++o)n[o].add(i[o])}return n.map(i=>Array.from(i.values()))}function v7(e,t=[]){if(e===void 0||!e.getIsReadyOrError())return;const r=e.resourceType.name,s=e.getDataAsJson();if(t.length>0&&(r===RR||r===nS))throw new Error(`Unexpected nested super-partitioned resource: ${r}`);switch(r){case f7:case A7:throw new Error(`Only data columns are supported, got: ${r}`);case sS:{if(typeof(s==null?void 0:s.partitionKeyLength)!="number")throw new Error(`Missing partitionKeyLength in metadata for ${r}`);const n=[];for(const i of e.listInputFields()){const o=e.resolve({field:i,assertFieldType:"Input"});if(o===void 0)return;const a=[...t,...JSON.parse(i)];n.push({key:a,value:o})}return{type:"JsonPartitioned",partitionKeyLength:s.partitionKeyLength,parts:n}}case cw:{if(typeof(s==null?void 0:s.partitionKeyLength)!="number")throw new Error(`Missing partitionKeyLength in metadata for ${r}`);const n=[],i=new Map;for(const o of e.listInputFields()){const a=m7(o),l=e.resolve({field:o,assertFieldType:"Input"});if(l===void 0)return;let c=i.get(a.baseKey);c||(c={},i.set(a.baseKey,c)),a.type==="index"?c.index=l:c.values=l}for(const[o,a]of i.entries()){if(!a.index||!a.values)return;const l=[...t,...JSON.parse(o)];n.push({key:l,value:{index:a.index,values:a.values}})}return{type:"BinaryPartitioned",partitionKeyLength:s.partitionKeyLength,parts:n}}case RR:{if(typeof(s==null?void 0:s.superPartitionKeyLength)!="number"||typeof(s==null?void 0:s.partitionKeyLength)!="number")throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${r}`);const n=s.superPartitionKeyLength+s.partitionKeyLength,i=[];for(const o of e.listInputFields()){const a=e.resolve({field:o,assertFieldType:"Input"});if(a===void 0)return;if(a.resourceType.name!==sS)throw new Error(`Expected ${sS} inside ${r}, but got ${a.resourceType.name}`);const l=v7(a,JSON.parse(o));if(l===void 0)return;if(l.type!=="JsonPartitioned")throw new Error(`Unexpected inner result type for ${r}: ${l.type}`);i.push(...l.parts)}return{type:"JsonPartitioned",partitionKeyLength:n,parts:i}}case nS:{if(typeof(s==null?void 0:s.superPartitionKeyLength)!="number"||typeof(s==null?void 0:s.partitionKeyLength)!="number")throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${r}`);const n=s.superPartitionKeyLength+s.partitionKeyLength,i=[];for(const o of e.listInputFields()){const a=e.resolve({field:o,assertFieldType:"Input"});if(a===void 0)return;if(a.resourceType.name!==cw)throw new Error(`Expected ${cw} inside ${r}, but got ${a.resourceType.name}`);const l=v7(a,JSON.parse(o));if(l===void 0)return;if(l.type!=="BinaryPartitioned")throw new Error(`Unexpected inner result type for ${r}: ${l.type}`);i.push(...l.parts)}return{type:"BinaryPartitioned",partitionKeyLength:n,parts:i}}default:throw new Error(`Unknown resource type: ${r}`)}}function i6t(e){if(e!==void 0){if(W6(e))return e;if(U6(e))return y5t(e);if(e instanceof td)return v7(e);throw new Error(`Unexpected input type: ${typeof e}`)}}function o6t(e,t){const r=[...t].sort((i,o)=>o[0]-i[0]);if(e.type==="JsonPartitioned"||e.type==="BinaryPartitioned"){const{partitionKeyLength:i}=e;for(const[o]of t)if(o>=i)throw new Error(`Can't filter on non-partitioned axis ${o}. Must be >= ${i}`)}else if(e.type==="Json"){const{keyLength:i}=e;for(const[o]of t)if(o>=i)throw new Error(`Can't filter on non-data axis ${o}. Must be >= ${i}`)}const s=i=>{for(const[o,a]of r)if(i[o]!==a)return!1;return!0},n=i=>{const o=[...i];for(const[a]of r)o.splice(a,1);return o};switch(e.type){case"Json":{const i=e.data.filter(o=>s(o.key)).map(o=>({key:n(o.key),value:o.value}));return{type:"Json",keyLength:e.keyLength-t.length,data:i}}case"JsonPartitioned":{const i=e.parts.filter(o=>s(o.key)).map(o=>({key:n(o.key),value:o.value}));return{type:"JsonPartitioned",partitionKeyLength:e.partitionKeyLength-t.length,parts:i}}case"BinaryPartitioned":{const i=e.parts.filter(o=>s(o.key)).map(o=>({key:n(o.key),value:o.value}));return{type:"BinaryPartitioned",partitionKeyLength:e.partitionKeyLength-t.length,parts:i}}}}class a6t{constructor(t){this.columns=t}selectColumns(t){const r=typeof t=="function"?t:Dx(t);return this.columns.filter(s=>r(s.spec))}}function l6t(e){if(e)return e.map(t=>({type:`split:${x5t(t.axisId)}`,label:t.label,importance:1e6}))}function c6t(e){if(e)return e.map(t=>[t.axisIdx,t.value])}function u6t(e,t){if(!t||t.length===0)return e;const r=[...t].sort((s,n)=>s[0]-n[0]);return vy({id:e,axisFilters:r})}function KQ(e){if(!e||typeof e!="object")return!1;const t=e,r=t.domain&&typeof t.domain=="object"&&Object.values(t.domain).some(n=>typeof n=="object"&&n!==null&&"anchor"in n),s=t.axes&&Array.isArray(t.axes)&&t.axes.some(n=>typeof n=="object"&&n!==null&&"anchor"in n);return!!t.domainAnchor||r||s}function d6t(e){if(typeof e!="object"||!("axes"in e)||e.axes===void 0)return[];const t=e.axes.map((r,s)=>typeof r=="object"&&"split"in r&&r.split===!0?s:-1).filter(r=>r!==-1);if(t.length>0&&e.partialAxesMatch!==void 0)throw new Error("Axis splitting is not supported when `partialAxesMatch` is defined.");return t.sort((r,s)=>r-s),t}class YQ{constructor(){Vu(this,"defaultProviderStore",[]),Vu(this,"providers",[new a6t(this.defaultProviderStore)]),Vu(this,"axisLabelProviders",[])}addColumnProvider(t){return this.providers.push(t),this}addAxisLabelProvider(t){return this.axisLabelProviders.push(t),this}addColumns(t){return this.defaultProviderStore.push(...t),this}addColumn(t){return this.defaultProviderStore.push(t),this}findLabels(t){for(const r of this.axisLabelProviders){const s=r.findLabels(t);if(s)return s}}getUniversalEntries(t,r){const{anchorCtx:s,labelOps:n,dontWaitAllData:i=!1,overrideLabelAnnotation:o=!1,exclude:a}=r??{},l={...o&&(n==null?void 0:n.includeNativeLabel)!==!1?{includeNativeLabel:!0}:{},...n??{}};let c=()=>!1;if(a){const v=(Array.isArray(a)?a:[a]).map(b=>{if(KQ(b)){if(!s)throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");return Dx(_Q(s.anchors,b,r))}else return Dx(b)});c=b=>v.some(S=>S(b))}const u=typeof t=="function"?[t]:Array.isArray(t)?t:[t],d=[],g=new Set;for(const v of u){const b=KQ(v);let S;if(b){if(!s)throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");S=_Q(s.anchors,v,r)}else S=v;const P=new Set,F=[];for(const B of this.providers){const k=B.selectColumns(S);for(const z of k){if(c(z.spec))continue;if(P.has(z.id))throw new Error(`Duplicate column id ${z.id} in provider ${B.constructor.name}`);const O=k5t(z.spec);g.has(O)||(P.add(z.id),g.add(O),F.push(z))}}if(F.length===0)continue;const T=d6t(v),D=T.length>0;for(const B of F){if(!oA(B.spec))continue;const k=B.spec;if(D){const z=i6t(B.data);if(!z){if(i)continue;return}if(!w5t(z))throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${z.type} for column ${B.id}`);const O=n6t(z),j=T[T.length-1];if(j>=z.partitionKeyLength)throw new Error(`Not enough partition keys (${z.partitionKeyLength}) for requested split axes (max index ${j}) in column ${k.name}`);const _=T.map(pe=>this.findLabels(RA(k.axesSpec[pe]))),G=[],N=(pe,X)=>{if(X>=T.length){if(G.push([...pe]),G.length>1e4)throw new Error("Too many key combinations, aborting.");return}const re=T[X];if(re>=O.length)throw new Error(`Axis index ${re} out of bounds for unique keys array (length ${O.length}) during split key generation for column ${B.id}`);const ae=O[re];if(!ae||ae.length===0){G.length=0;return}for(const $ of ae)pe.push($),N(pe,X+1),pe.pop()};if(N([],0),G.length===0)continue;const W=[...k.axesSpec],V=T.map(pe=>pe);for(let pe=T.length-1;pe>=0;pe--)W.splice(T[pe],1);const q={...k,axesSpec:W};for(const pe of G){const X=pe.map((re,ae)=>{const $=V[ae],se=RA(k.axesSpec[$]),De=_[ae],Oe=(De==null?void 0:De[re])??String(re);return{axisIdx:$,axisId:se,value:re,label:Oe}});d.push({type:"split",originalColumn:B,spec:k,adjustedSpec:q,dataEntries:z,axisFilters:X})}}else d.push({type:"direct",originalColumn:B,spec:k,adjustedSpec:k})}}if(d.length===0)return[];const A=Dre(d,v=>({spec:v.spec,suffixTrace:v.type==="split"?l6t(v.axisFilters):void 0}),l),w=[];for(const{value:v,label:b}of A){const{originalColumn:S,spec:P}=v,F=v.type==="split"?v.axisFilters:void 0,T=c6t(F);let D;s?D=s.deriveS(P,T):D=u6t(S.id,T);let B={...v.adjustedSpec};o&&(B={...B,annotations:{...B.annotations??{},"pl7.app/label":b}}),w.push({id:D,spec:B,data:()=>v.type==="split"?b5t(o6t(v.dataEntries,T)):v.originalColumn.data,label:b})}return w}getColumns(t,r){const s=this.getUniversalEntries(t,{overrideLabelAnnotation:!0,...r??{}});if(!s)return;const n=[];for(const i of s){const o=i.data();if(!o){if(r!=null&&r.dontWaitAllData)continue;return}n.push({id:i.id,spec:i.spec,data:o})}return n}}function UI(e,t){if(e===void 0)return t===void 0;if(t===void 0)return!0;for(const r in t)if(e[r]!==t[r])return!1;return!0}function ZQ(e){return K6(e,t=>t instanceof td?t.handle:U6(t)?C5t(t,r=>r.handle):t)}class h6t{constructor(){Vu(this,"ctx",Os())}calculateOptions(t){return this.ctx.calculateOptions(t)}getOptions(t,r){const s=typeof t=="function"?t:Dx(t),n=this.getSpecs().entries.filter(a=>s(a.obj));let i={},o=!1;return typeof r<"u"&&(typeof r=="function"?i=r:typeof r=="object"&&("includeNativeLabel"in r||"separator"in r||"addLabelAsSuffix"in r?i=r:(r=r,i=r.label??{},o=r.refsWithEnrichments??!1))),typeof i=="object"?Dre(n,a=>a.obj,i??{}).map(({value:{ref:a},label:l})=>({ref:QQ(a,o),label:l})):n.map(({ref:a,obj:l})=>({ref:QQ(a,o),label:i(l,a)}))}resolveAnchorCtx(t){if(t instanceof NQ)return t;const r={};for(const[s,n]of Object.entries(t))if(B5t(n)){const i=this.getPColumnSpecByRef(n);if(!i)return;r[s]=i}else r[s]=n;return new NQ(r)}getAnchoredPColumns(t,r,s){const n=this.resolveAnchorCtx(t);if(n)return new YQ().addColumnProvider(this).addAxisLabelProvider(this).getColumns(r,{...s,anchorCtx:n})}getCanonicalOptions(t,r,s){const n=this.resolveAnchorCtx(t);if(!n)return;const i=new YQ().addColumnProvider(this).addAxisLabelProvider(this).getUniversalEntries(r,{...s,anchorCtx:n});if(i)return i.map(o=>({value:o.id,label:o.label}))}getDataFromResultPool(){return this.getData()}getData(){const t=this.ctx.getDataFromResultPool();return{isComplete:t.isComplete,entries:t.entries.map(r=>({ref:r.ref,obj:{...r.obj,data:new td(r.obj.data,[r.ref.blockId,r.ref.name])}}))}}getDataWithErrorsFromResultPool(){return this.getDataWithErrors()}getDataWithErrors(){const t=this.ctx.getDataWithErrorsFromResultPool();return{isComplete:t.isComplete,entries:t.entries.map(r=>({ref:r.ref,obj:{...r.obj,data:L5t(r.obj.data,s=>new td(s,[r.ref.blockId,r.ref.name]))}}))}}getSpecsFromResultPool(){return this.getSpecs()}getSpecs(){return this.ctx.getSpecsFromResultPool()}getDataByRef(t){var r;if(typeof this.ctx.getDataFromResultPoolByRef>"u")return(r=this.getData().entries.find(n=>n.ref.blockId===t.blockId&&n.ref.name===t.name))==null?void 0:r.obj;const s=this.ctx.getDataFromResultPoolByRef(t.blockId,t.name);if(s)return K6(s,n=>new td(n,[t.blockId,t.name]))}getPColumnByRef(t){const r=this.getDataByRef(t);if(r)return M5t(r)}getPColumnSpecByRef(t){const r=this.getSpecByRef(t);if(r){if(!oA(r))throw new Error(`not a PColumn spec (kind = ${r.kind})`);return r}}getSpecByRef(t){return this.ctx.getSpecFromResultPoolByRef(t.blockId,t.name)}findDataWithCompatibleSpec(t){const r=[];e:for(const s of this.getData().entries){if(!oA(s.obj.spec))continue;const n=s.obj.spec;if(t.name===n.name&&t.valueType===n.valueType&&t.axesSpec.length===n.axesSpec.length&&UI(t.domain,n.domain)){for(let i=0;i<t.axesSpec.length;++i){const o=t.axesSpec[i],a=n.axesSpec[i];if(o.name!==a.name||o.type!==a.type||!UI(o.domain,a.domain))continue e}r.push(s.obj)}}return r}findLabels(t){const r=this.getData();for(const s of r.entries){if(!j6(s.obj))continue;const n=s.obj.spec;if(n.name==="pl7.app/label"&&n.axesSpec.length===1&&n.axesSpec[0].name===t.name&&n.axesSpec[0].type===t.type&&UI(t.domain,n.axesSpec[0].domain)){if(s.obj.data.resourceType.name!=="PColumnData/Json")throw Error(`Expected JSON column for labels, got: ${s.obj.data.resourceType.name}`);return Object.fromEntries(Object.entries(s.obj.data.getDataAsJson().data).map(i=>[JSON.parse(i[0])[0],i[1]]))}}}selectColumns(t){const r=typeof t=="function"?t:Dx(t);return this.getSpecs().entries.filter(({obj:s})=>oA(s)?r(s):!1).map(({ref:s,obj:n})=>{const i=n;let o=null;const a=this;return{id:vy(s),spec:i,get data(){var l;return o!==null||(o=(l=a.getPColumnByRef(s))==null?void 0:l.data),o}}})}findLabelsForColumnAxis(t,r){var s;const n=this.findLabels(t.axesSpec[r]);if(!n)return;const i=(s=t.annotations)==null?void 0:s["pl7.app/axisKeys/"+r];if(i!==void 0){const o=JSON.parse(i);return Object.fromEntries(o.map(a=>[a,n[a]??"Unlabelled"]))}else return n}}class s2{constructor(){Vu(this,"ctx"),Vu(this,"args"),Vu(this,"uiState"),Vu(this,"_activeArgsCache"),Vu(this,"resultPool",new h6t),this.ctx=Os(),this.args=JSON.parse(this.ctx.args),this.uiState=this.ctx.uiState!==void 0?JSON.parse(this.ctx.uiState):{}}get activeArgs(){return this._activeArgsCache===void 0&&(this._activeArgsCache={v:this.ctx.activeArgs?JSON.parse(this.ctx.activeArgs):void 0}),this._activeArgsCache.v}getNamedAccessor(t){return g7(this.ctx.getAccessorHandleByName(t),r=>new td(r,[t]))}get prerun(){return this.getNamedAccessor(Y5t)}get outputs(){return this.getNamedAccessor(Z5t)}findLabels(t){return this.resultPool.findLabels(t)}verifyInlineAndExplicitColumnsSupport(t){var r;const s=t.some(i=>!(i.data instanceof td)||U6(i.data)),n=((r=this.ctx.featureFlags)==null?void 0:r.inlineColumnsSupport)===!0;if(s&&!n)throw Error("Inline or explicit columns not supported")}createPFrame(t){return this.verifyInlineAndExplicitColumnsSupport(t),this.ctx.createPFrame(t.map(r=>ZQ(r)))}createPTable(t){let r;return"columns"in t?r={src:{type:"full",entries:t.columns.map(s=>({type:"column",column:s}))},filters:t.filters??[],sorting:t.sorting??[]}:r=t,this.verifyInlineAndExplicitColumnsSupport(I5t(r.src)),this.ctx.createPTable(F5t(r,s=>ZQ(s)))}getBlockLabel(t){return this.ctx.getBlockLabel(t)}getCurrentUnstableMarker(){return this.ctx.getCurrentUnstableMarker()}}const WI="1.31.15";function p6t(e){return e.__renderLambda===!0}function jI(e){if(e!==void 0)return p6t(e)?e.handle:e}class $a{constructor(t,r,s,n,i,o,a,l){this._renderingMode=t,this._initialArgs=r,this._initialUiState=s,this._outputs=n,this._inputsValid=i,this._sections=o,this._title=a,this._enrichmentTargets=l}static create(t="Heavy"){return new $a(t,void 0,{},{},zI(!0),zI([]),void 0,void 0)}output(t,r,s={}){if(typeof r=="function"){const n=`output#${t}`;return c1(n,()=>r(new s2)),new $a(this._renderingMode,this._initialArgs,this._initialUiState,{...this._outputs,[t]:{__renderLambda:!0,handle:n,...s}},this._inputsValid,this._sections,this._title,this._enrichmentTargets)}else return new $a(this._renderingMode,this._initialArgs,this._initialUiState,{...this._outputs,[t]:r},this._inputsValid,this._sections,this._title,this._enrichmentTargets)}retentiveOutput(t,r){return this.output(t,r,{retentive:!0})}argsValid(t){return typeof t=="function"?(c1("inputsValid",()=>t(new s2)),new $a(this._renderingMode,this._initialArgs,this._initialUiState,this._outputs,{__renderLambda:!0,handle:"inputsValid"},this._sections,this._title,this._enrichmentTargets)):new $a(this._renderingMode,this._initialArgs,this._initialUiState,this._outputs,t,this._sections,this._title,this._enrichmentTargets)}sections(t){return Array.isArray(t)?this.sections(zI(t)):typeof t=="function"?(c1("sections",()=>t(new s2)),new $a(this._renderingMode,this._initialArgs,this._initialUiState,this._outputs,this._inputsValid,{__renderLambda:!0,handle:"sections"},this._title,this._enrichmentTargets)):new $a(this._renderingMode,this._initialArgs,this._initialUiState,this._outputs,this._inputsValid,t,this._title,this._enrichmentTargets)}title(t){return c1("title",()=>t(new s2)),new $a(this._renderingMode,this._initialArgs,this._initialUiState,this._outputs,this._inputsValid,this._sections,{__renderLambda:!0,handle:"title"},this._enrichmentTargets)}initialArgs(t){return new $a(this._renderingMode,t,this._initialUiState,this._outputs,this._inputsValid,this._sections,this._title,this._enrichmentTargets)}withArgs(t){return new $a(this._renderingMode,t,this._initialUiState,this._outputs,this._inputsValid,this._sections,this._title,this._enrichmentTargets)}withUiState(t){return new $a(this._renderingMode,this._initialArgs,t,this._outputs,this._inputsValid,this._sections,this._title,this._enrichmentTargets)}enriches(t){return c1("enrichmentTargets",t),new $a(this._renderingMode,this._initialArgs,this._initialUiState,this._outputs,this._inputsValid,this._sections,this._title,{__renderLambda:!0,handle:"enrichmentTargets"})}done(){if(this._initialArgs===void 0)throw new Error("Initial arguments not set.");const t={v3:{sdkVersion:WI,renderingMode:this._renderingMode,initialArgs:this._initialArgs,initialUiState:this._initialUiState,inputsValid:this._inputsValid,sections:this._sections,title:this._title,outputs:this._outputs,enrichmentTargets:this._enrichmentTargets},sdkVersion:WI,renderingMode:this._renderingMode,initialArgs:this._initialArgs,inputsValid:jI(this._inputsValid),sections:jI(this._sections),outputs:Object.fromEntries(Object.entries(this._outputs).map(([r,s])=>[r,jI(s)]))};return U5t()?W5t({sdkVersion:WI}):{config:t}}}var g6t=$a.create().withArgs({productKey:"MIFAKEMIFAKEMIFAKE",inputHandles:[],shouldAddRunPerFile:!1,__mnzDate:new Date().toISOString(),__mnzCanRun:!1}).argsValid(e=>e.args.__mnzCanRun).output("__mnzInfo",e=>{var t,r;return(r=(t=e.prerun)==null?void 0:t.resolve("info"))==null?void 0:r.getDataAsJson()}).output("token",e=>{var t,r;return(r=(t=e.outputs)==null?void 0:t.resolve("token"))==null?void 0:r.getDataAsString()}).output("progresses",e=>{var s;const t=(s=e.prerun)==null?void 0:s.resolve("progresses"),r=t==null?void 0:t.mapFields((n,i)=>[n,i==null?void 0:i.getImportProgress()]);return Object.fromEntries(r??[])}).output("mainProgresses",e=>{var s;const t=(s=e.outputs)==null?void 0:s.resolve("progresses"),r=t==null?void 0:t.mapFields((n,i)=>[n,i==null?void 0:i.getImportProgress()]);return Object.fromEntries(r??[])}).sections(e=>[{type:"link",href:"/",label:"Main"}]).done();const f6t="MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAECGShTw8Plag1uMuCg9OMYVHCF+wzjvXKr3cihyO77jEe9CrF6RP9tfnCd2XjM7XqQ0QH3i41rz5ohCB9fDDBbQ==",A6t=Tr({__name:"MainPage",setup(e){const t=m6t(),r=[{text:"sha256",value:"sha256"},{text:"lines (only in .zip files)",value:"lines"},{text:"size",value:"size"}],s=oi({isMultiDialogFileOpen:!1}),n=(c,u)=>{c?t.model.args.inputHandles[u].handle=c:t.model.args.inputHandles.splice(u,1)},i=c=>{t.model.args.inputHandles=c.files.map((u,d)=>({handle:u,fileName:`test${d}.txt`,argName:`arg_${d}`,options:["size","sha256"]}))},o=Je({get:()=>{var d;const u=(((d=t.model.outputs.token)==null?void 0:d.split("."))??[])[1];return JSON.parse(atob(u))},set:()=>{}}),a=br("");async function l(c){const u=await crypto.subtle.importKey("spki",Uint8Array.from(atob(f6t),v=>v.charCodeAt(0)).buffer,{name:"ECDSA",namedCurve:"P-256"},!0,["verify"]),[d,g,A]=c.split(".");if(!d||typeof g!="string"||typeof A!="string")throw new Error("Invalid token body");const w=Uint8Array.from(atob(A.replace(/-/g,"+").replace(/_/g,"/")),v=>v.charCodeAt(0));try{await crypto.subtle.verify({name:"ECDSA",hash:{name:"SHA-256"}},u,w,new TextEncoder().encode(`${d}.${g}`))?a.value="Signature is correct":a.value="Signature is incorrect"}catch{a.value="Verification failed"}}return(c,u)=>(ye(),jt(Pe(sMe),null,{title:er(()=>u[5]||(u[5]=[Ne(" Monetization example ")])),default:er(()=>[zt(Pe(d4),{modelValue:Pe(t).model.args.productKey,"onUpdate:modelValue":u[0]||(u[0]=d=>Pe(t).model.args.productKey=d),label:"Enter product key (keep MIFAKEMIFAKEMIFAKE for fake product)",clearable:""},null,8,["modelValue"]),zt(Pe(vIe),{modelValue:Pe(t).model.args.shouldAddRunPerFile,"onUpdate:modelValue":u[1]||(u[1]=d=>Pe(t).model.args.shouldAddRunPerFile=d)},{default:er(()=>u[6]||(u[6]=[Ne(" Add run per file ")])),_:1},8,["modelValue"]),zt(Pe(WG),{width:"400px"},{default:er(()=>[zt(Pe(kF),{onClick:u[2]||(u[2]=d=>s.isMultiDialogFileOpen=!0)},{default:er(()=>u[7]||(u[7]=[Ne(" Open multiple files to monetize ")])),_:1})]),_:1}),(ye(!0),je(_s,null,Fh(Pe(t).model.args.inputHandles,({handle:d},g)=>(ye(),jt(Pe(oMe),{key:g},{default:er(()=>[zt(Pe(d4),{modelValue:Pe(t).model.args.inputHandles[g].fileName,"onUpdate:modelValue":A=>Pe(t).model.args.inputHandles[g].fileName=A,label:"Type file name"},null,8,["modelValue","onUpdate:modelValue"]),zt(Pe(d4),{modelValue:Pe(t).model.args.inputHandles[g].argName,"onUpdate:modelValue":A=>Pe(t).model.args.inputHandles[g].argName=A,label:"Type argument name"},null,8,["modelValue","onUpdate:modelValue"]),zt(Pe(jBe),{"model-value":d,"onUpdate:modelValue":A=>n(A,g)},null,8,["model-value","onUpdate:modelValue"]),zt(Pe(AIe),{label:"Metrics to monetize",modelValue:Pe(t).model.args.inputHandles[g].options,"onUpdate:modelValue":A=>Pe(t).model.args.inputHandles[g].options=A,options:r},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024))),128)),zt(Pe(H$),{modelValue:s.isMultiDialogFileOpen,"onUpdate:modelValue":u[3]||(u[3]=d=>s.isMultiDialogFileOpen=d),multi:"","onImport:files":i},null,8,["modelValue"]),zt(Pe(WG)),We("pre",null," "+Zt(Pe(t).model.outputs.__mnzInfo)+" ",1),Pe(t).model.outputs.token?(ye(),jt(Pe(b2),{key:0,label:"token"},{default:er(()=>[Ne(Zt(Pe(t).model.outputs.token),1)]),_:1})):yt("",!0),Pe(t).model.outputs.token?(ye(),jt(Pe(kF),{key:1,onClick:u[4]||(u[4]=d=>l(Pe(t).model.outputs.token))},{default:er(()=>u[8]||(u[8]=[Ne(" Verify")])),_:1})):yt("",!0),a.value?(ye(),jt(Pe(b2),{key:2,label:"token verification"},{default:er(()=>[Ne(Zt(a.value),1)]),_:1})):yt("",!0),Pe(t).model.outputs.token?(ye(),jt(Pe(b2),{key:3,label:"trying to parse a token"},{default:er(()=>[We("pre",null," "+Zt(JSON.stringify(o.value,null,2))+" ",1)]),_:1})):yt("",!0)]),_:1}))}}),Ire=PDe(g6t,()=>({routes:{"/":()=>A6t}})),m6t=Ire.useApp;kae(N8e).use(Ire).mount("#app");
13656
+ //# sourceMappingURL=index-Bh-0eLyW.js.map