@tuongaz/seeflow 0.2.2 → 0.2.3

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.
Files changed (58) hide show
  1. package/dist/web/assets/{architectureDiagram-3BPJPVTR-BP4T6mA1.js → architectureDiagram-3BPJPVTR-D_K4WWP-.js} +1 -1
  2. package/dist/web/assets/{blockDiagram-GPEHLZMM-BtNtXeK-.js → blockDiagram-GPEHLZMM-BBRZF7xo.js} +1 -1
  3. package/dist/web/assets/{c4Diagram-AAUBKEIU-zllILeBc.js → c4Diagram-AAUBKEIU-L2p6fADW.js} +1 -1
  4. package/dist/web/assets/channel-CBju5QaN.js +1 -0
  5. package/dist/web/assets/{chart-CTi57A5k.js → chart-YnnKsrqR.js} +1 -1
  6. package/dist/web/assets/{chunk-2J33WTMH-DK91nAlB.js → chunk-2J33WTMH-C1FtMVln.js} +1 -1
  7. package/dist/web/assets/{chunk-4BX2VUAB-B1nZ2oYH.js → chunk-4BX2VUAB-DqbhUUVX.js} +1 -1
  8. package/dist/web/assets/{chunk-55IACEB6-BO1Yz65k.js → chunk-55IACEB6-D4YZnYWz.js} +1 -1
  9. package/dist/web/assets/{chunk-727SXJPM-Do2lVazW.js → chunk-727SXJPM-CoIKqKcl.js} +1 -1
  10. package/dist/web/assets/{chunk-AQP2D5EJ-COAk4zWW.js → chunk-AQP2D5EJ-yLEJhNlX.js} +1 -1
  11. package/dist/web/assets/{chunk-FMBD7UC4-DlagJm0t.js → chunk-FMBD7UC4-CFOGJUHx.js} +1 -1
  12. package/dist/web/assets/{chunk-ND2GUHAM-MSDepakT.js → chunk-ND2GUHAM-BH47YF_0.js} +1 -1
  13. package/dist/web/assets/{chunk-QZHKN3VN-PNcsoYy5.js → chunk-QZHKN3VN-DnD2ATN8.js} +1 -1
  14. package/dist/web/assets/classDiagram-4FO5ZUOK-DUsSbBRv.js +1 -0
  15. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-DUsSbBRv.js +1 -0
  16. package/dist/web/assets/{code-block-BaLTXteb.js → code-block-g3hkOwqd.js} +1 -1
  17. package/dist/web/assets/{cose-bilkent-S5V4N54A-EsAyOjlw.js → cose-bilkent-S5V4N54A-CI-J1C6c.js} +1 -1
  18. package/dist/web/assets/{dagre-BM42HDAG-BeczwG-p.js → dagre-BM42HDAG-bt5b1f32.js} +1 -1
  19. package/dist/web/assets/{diagram-2AECGRRQ-Cxt-hv3w.js → diagram-2AECGRRQ-Dt_YPspQ.js} +1 -1
  20. package/dist/web/assets/{diagram-5GNKFQAL-DNd2ZjqR.js → diagram-5GNKFQAL-DCpp4jJO.js} +1 -1
  21. package/dist/web/assets/{diagram-KO2AKTUF-fQnbV9uU.js → diagram-KO2AKTUF-CJx0SJcp.js} +1 -1
  22. package/dist/web/assets/{diagram-LMA3HP47-BRMAcCJt.js → diagram-LMA3HP47-B-Px4zgh.js} +1 -1
  23. package/dist/web/assets/{diagram-OG6HWLK6-BwgD3tgr.js → diagram-OG6HWLK6-DcMvFol1.js} +1 -1
  24. package/dist/web/assets/{erDiagram-TEJ5UH35-D9zgPPEj.js → erDiagram-TEJ5UH35-pY73Wieh.js} +1 -1
  25. package/dist/web/assets/{flowDiagram-I6XJVG4X-DeK_DVft.js → flowDiagram-I6XJVG4X-Dg6SmR4-.js} +1 -1
  26. package/dist/web/assets/{ganttDiagram-6RSMTGT7-D5ixoPcv.js → ganttDiagram-6RSMTGT7-BF3fXtIK.js} +1 -1
  27. package/dist/web/assets/{gitGraphDiagram-PVQCEYII-BLGiKLuK.js → gitGraphDiagram-PVQCEYII-N_R9uNIC.js} +1 -1
  28. package/dist/web/assets/{iconify-CfqTggJR.js → iconify-DbiCtyWM.js} +1 -1
  29. package/dist/web/assets/{index-cPs_3Zlh.js → index-BpnbJWOx.js} +6 -6
  30. package/dist/web/assets/{index.es-DIiHxuUF.js → index.es-DaMi_NRR.js} +1 -1
  31. package/dist/web/assets/{infoDiagram-5YYISTIA-faCq5UMN.js → infoDiagram-5YYISTIA-DTtTiY9K.js} +1 -1
  32. package/dist/web/assets/{ishikawaDiagram-YF4QCWOH-B08q3xk1.js → ishikawaDiagram-YF4QCWOH-CokDbOfw.js} +1 -1
  33. package/dist/web/assets/{journeyDiagram-JHISSGLW-B3n-Ia_k.js → journeyDiagram-JHISSGLW-DlLpDuAT.js} +1 -1
  34. package/dist/web/assets/{jspdf.es.min-ByBlwSRB.js → jspdf.es.min-KIHFW2LN.js} +3 -3
  35. package/dist/web/assets/{kanban-definition-UN3LZRKU-BebFqVN1.js → kanban-definition-UN3LZRKU-DCQbOq6T.js} +1 -1
  36. package/dist/web/assets/{linear-COKMY-XV.js → linear-v8WYWOTk.js} +1 -1
  37. package/dist/web/assets/{markdown-DX0LZAiR.js → markdown-BQOIqSv0.js} +1 -1
  38. package/dist/web/assets/{mermaid.core-Iw0pYMV7.js → mermaid.core-DSZBo6BH.js} +4 -4
  39. package/dist/web/assets/{mindmap-definition-RKZ34NQL-CudO6Clp.js → mindmap-definition-RKZ34NQL-CjabZ48y.js} +1 -1
  40. package/dist/web/assets/{pieDiagram-4H26LBE5--7iM2b2h.js → pieDiagram-4H26LBE5-CC5szRjA.js} +1 -1
  41. package/dist/web/assets/{quadrantDiagram-W4KKPZXB-DoEfRS67.js → quadrantDiagram-W4KKPZXB-CTdFIR__.js} +1 -1
  42. package/dist/web/assets/{requirementDiagram-4Y6WPE33-CQCw-vbx.js → requirementDiagram-4Y6WPE33-uX-H7O8Z.js} +1 -1
  43. package/dist/web/assets/{sankeyDiagram-5OEKKPKP-D14wCDvH.js → sankeyDiagram-5OEKKPKP-JcIeADyT.js} +1 -1
  44. package/dist/web/assets/{sequenceDiagram-3UESZ5HK-_l1PC8kz.js → sequenceDiagram-3UESZ5HK-BkEjX91O.js} +1 -1
  45. package/dist/web/assets/{stateDiagram-AJRCARHV-BASnBha4.js → stateDiagram-AJRCARHV-BpuXKpGM.js} +1 -1
  46. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-CO7sZK57.js +1 -0
  47. package/dist/web/assets/{time-IFC44Ku-.js → time-DXqZ8QO3.js} +1 -1
  48. package/dist/web/assets/{timeline-definition-PNZ67QCA-BMzri7cw.js → timeline-definition-PNZ67QCA-CoOJ2nzo.js} +1 -1
  49. package/dist/web/assets/{vennDiagram-CIIHVFJN-DALKnV47.js → vennDiagram-CIIHVFJN-CsEPlEIu.js} +1 -1
  50. package/dist/web/assets/{wardley-L42UT6IY-DASxbKrT.js → wardley-L42UT6IY-TgWBnJsd.js} +1 -1
  51. package/dist/web/assets/{wardleyDiagram-YWT4CUSO-BAWZ9yXf.js → wardleyDiagram-YWT4CUSO-AGW0hV7t.js} +1 -1
  52. package/dist/web/assets/{xychartDiagram-2RQKCTM6-BaKX6VQd.js → xychartDiagram-2RQKCTM6-Bqlg3VJX.js} +1 -1
  53. package/dist/web/index.html +1 -1
  54. package/package.json +1 -1
  55. package/dist/web/assets/channel-BaDcWmt9.js +0 -1
  56. package/dist/web/assets/classDiagram-4FO5ZUOK-CgMT8ikA.js +0 -1
  57. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-CgMT8ikA.js +0 -1
  58. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-B22a_tep.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chart-CTi57A5k.js","assets/step-CWvwoXpJ.js","assets/band-BEGRCkg7.js","assets/init-BFKUnIhM.js","assets/ordinal-BQ3KlzSu.js","assets/linear-COKMY-XV.js","assets/defaultLocale-CrowFXzY.js","assets/time-IFC44Ku-.js","assets/mermaid.core-Iw0pYMV7.js","assets/purify.es-CLGrRn1w.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chart-YnnKsrqR.js","assets/step-CWvwoXpJ.js","assets/band-BEGRCkg7.js","assets/init-BFKUnIhM.js","assets/ordinal-BQ3KlzSu.js","assets/linear-v8WYWOTk.js","assets/defaultLocale-CrowFXzY.js","assets/time-DXqZ8QO3.js","assets/mermaid.core-DSZBo6BH.js","assets/purify.es-CLGrRn1w.js"])))=>i.map(i=>d[i]);
2
2
  function rse(e,t){for(var n=0;n<t.length;n++){const o=t[n];if(typeof o!="string"&&!Array.isArray(o)){for(const r in o)if(r!=="default"&&!(r in e)){const a=Object.getOwnPropertyDescriptor(o,r);a&&Object.defineProperty(e,r,a.get?a:{enumerable:!0,get:()=>o[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();var PP=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Af(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var BX={exports:{}},Wz={},UX={exports:{}},Je={};/**
3
3
  * @license React
4
4
  * react.production.min.js
@@ -8443,7 +8443,7 @@ Error generating stack: `+a.message+`
8443
8443
  *
8444
8444
  * This source code is licensed under the ISC license.
8445
8445
  * See the LICENSE file in the root directory of this source tree.
8446
- */const bEe=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:Ny,AArrowDownIcon:Ny,AArrowUp:Iy,AArrowUpIcon:Iy,ALargeSmall:Ay,ALargeSmallIcon:Ay,Accessibility:Ey,AccessibilityIcon:Ey,Activity:jy,ActivityIcon:jy,ActivitySquare:f1,ActivitySquareIcon:f1,AirVent:$y,AirVentIcon:$y,Airplay:Py,AirplayIcon:Py,AlarmCheck:js,AlarmCheckIcon:js,AlarmClock:Ry,AlarmClockCheck:js,AlarmClockCheckIcon:js,AlarmClockIcon:Ry,AlarmClockMinus:$s,AlarmClockMinusIcon:$s,AlarmClockOff:zy,AlarmClockOffIcon:zy,AlarmClockPlus:Ps,AlarmClockPlusIcon:Ps,AlarmMinus:$s,AlarmMinusIcon:$s,AlarmPlus:Ps,AlarmPlusIcon:Ps,AlarmSmoke:Ty,AlarmSmokeIcon:Ty,Album:Dy,AlbumIcon:Dy,AlertCircle:bi,AlertCircleIcon:bi,AlertOctagon:ql,AlertOctagonIcon:ql,AlertTriangle:qr,AlertTriangleIcon:qr,AlignCenter:Si,AlignCenterHorizontal:Oy,AlignCenterHorizontalIcon:Oy,AlignCenterIcon:Si,AlignCenterVertical:Hy,AlignCenterVerticalIcon:Hy,AlignEndHorizontal:Fy,AlignEndHorizontalIcon:Fy,AlignEndVertical:qy,AlignEndVerticalIcon:qy,AlignHorizontalDistributeCenter:Vy,AlignHorizontalDistributeCenterIcon:Vy,AlignHorizontalDistributeEnd:By,AlignHorizontalDistributeEndIcon:By,AlignHorizontalDistributeStart:Uy,AlignHorizontalDistributeStartIcon:Uy,AlignHorizontalJustifyCenter:Wy,AlignHorizontalJustifyCenterIcon:Wy,AlignHorizontalJustifyEnd:Ky,AlignHorizontalJustifyEndIcon:Ky,AlignHorizontalJustifyStart:Gy,AlignHorizontalJustifyStartIcon:Gy,AlignHorizontalSpaceAround:Xy,AlignHorizontalSpaceAroundIcon:Xy,AlignHorizontalSpaceBetween:Zy,AlignHorizontalSpaceBetweenIcon:Zy,AlignJustify:hd,AlignJustifyIcon:hd,AlignLeft:Zo,AlignLeftIcon:Zo,AlignRight:Li,AlignRightIcon:Li,AlignStartHorizontal:Yy,AlignStartHorizontalIcon:Yy,AlignStartVertical:Qy,AlignStartVerticalIcon:Qy,AlignVerticalDistributeCenter:Jy,AlignVerticalDistributeCenterIcon:Jy,AlignVerticalDistributeEnd:em,AlignVerticalDistributeEndIcon:em,AlignVerticalDistributeStart:tm,AlignVerticalDistributeStartIcon:tm,AlignVerticalJustifyCenter:nm,AlignVerticalJustifyCenterIcon:nm,AlignVerticalJustifyEnd:om,AlignVerticalJustifyEndIcon:om,AlignVerticalJustifyStart:rm,AlignVerticalJustifyStartIcon:rm,AlignVerticalSpaceAround:am,AlignVerticalSpaceAroundIcon:am,AlignVerticalSpaceBetween:im,AlignVerticalSpaceBetweenIcon:im,Ambulance:sm,AmbulanceIcon:sm,Ampersand:cm,AmpersandIcon:cm,Ampersands:lm,AmpersandsIcon:lm,Amphora:dm,AmphoraIcon:dm,Anchor:um,AnchorIcon:um,Angry:hm,AngryIcon:hm,Annoyed:fm,AnnoyedIcon:fm,Antenna:pm,AntennaIcon:pm,Anvil:ym,AnvilIcon:ym,Aperture:mm,ApertureIcon:mm,AppWindow:km,AppWindowIcon:km,AppWindowMac:gm,AppWindowMacIcon:gm,Apple:vm,AppleIcon:vm,Archive:Mm,ArchiveIcon:Mm,ArchiveRestore:xm,ArchiveRestoreIcon:xm,ArchiveX:wm,ArchiveXIcon:wm,AreaChart:Xs,AreaChartIcon:Xs,Armchair:bm,ArmchairIcon:bm,ArrowBigDown:Cm,ArrowBigDownDash:_m,ArrowBigDownDashIcon:_m,ArrowBigDownIcon:Cm,ArrowBigLeft:Lm,ArrowBigLeftDash:Sm,ArrowBigLeftDashIcon:Sm,ArrowBigLeftIcon:Lm,ArrowBigRight:Im,ArrowBigRightDash:Nm,ArrowBigRightDashIcon:Nm,ArrowBigRightIcon:Im,ArrowBigUp:Em,ArrowBigUpDash:Am,ArrowBigUpDashIcon:Am,ArrowBigUpIcon:Em,ArrowDown:Fm,ArrowDown01:jm,ArrowDown01Icon:jm,ArrowDown10:$m,ArrowDown10Icon:$m,ArrowDownAZ:zs,ArrowDownAZIcon:zs,ArrowDownAz:zs,ArrowDownAzIcon:zs,ArrowDownCircle:lc,ArrowDownCircleIcon:lc,ArrowDownFromLine:Pm,ArrowDownFromLineIcon:Pm,ArrowDownIcon:Fm,ArrowDownLeft:Rm,ArrowDownLeftFromCircle:dc,ArrowDownLeftFromCircleIcon:dc,ArrowDownLeftFromSquare:k1,ArrowDownLeftFromSquareIcon:k1,ArrowDownLeftIcon:Rm,ArrowDownLeftSquare:p1,ArrowDownLeftSquareIcon:p1,ArrowDownNarrowWide:zm,ArrowDownNarrowWideIcon:zm,ArrowDownRight:Dm,ArrowDownRightFromCircle:hc,ArrowDownRightFromCircleIcon:hc,ArrowDownRightFromSquare:v1,ArrowDownRightFromSquareIcon:v1,ArrowDownRightIcon:Dm,ArrowDownRightSquare:y1,ArrowDownRightSquareIcon:y1,ArrowDownSquare:m1,ArrowDownSquareIcon:m1,ArrowDownToDot:Tm,ArrowDownToDotIcon:Tm,ArrowDownToLine:Hm,ArrowDownToLineIcon:Hm,ArrowDownUp:Om,ArrowDownUpIcon:Om,ArrowDownWideNarrow:Rs,ArrowDownWideNarrowIcon:Rs,ArrowDownZA:Ts,ArrowDownZAIcon:Ts,ArrowDownZa:Ts,ArrowDownZaIcon:Ts,ArrowLeft:Bm,ArrowLeftCircle:uc,ArrowLeftCircleIcon:uc,ArrowLeftFromLine:qm,ArrowLeftFromLineIcon:qm,ArrowLeftIcon:Bm,ArrowLeftRight:d2,ArrowLeftRightIcon:d2,ArrowLeftSquare:g1,ArrowLeftSquareIcon:g1,ArrowLeftToLine:Vm,ArrowLeftToLineIcon:Vm,ArrowRight:y0,ArrowRightCircle:yc,ArrowRightCircleIcon:yc,ArrowRightFromLine:Um,ArrowRightFromLineIcon:Um,ArrowRightIcon:y0,ArrowRightLeft:Wm,ArrowRightLeftIcon:Wm,ArrowRightSquare:M1,ArrowRightSquareIcon:M1,ArrowRightToLine:Gm,ArrowRightToLineIcon:Gm,ArrowUp:og,ArrowUp01:Km,ArrowUp01Icon:Km,ArrowUp10:Xm,ArrowUp10Icon:Xm,ArrowUpAZ:Ds,ArrowUpAZIcon:Ds,ArrowUpAz:Ds,ArrowUpAzIcon:Ds,ArrowUpCircle:mc,ArrowUpCircleIcon:mc,ArrowUpDown:Zm,ArrowUpDownIcon:Zm,ArrowUpFromDot:Ym,ArrowUpFromDotIcon:Ym,ArrowUpFromLine:Qm,ArrowUpFromLineIcon:Qm,ArrowUpIcon:og,ArrowUpLeft:Jm,ArrowUpLeftFromCircle:fc,ArrowUpLeftFromCircleIcon:fc,ArrowUpLeftFromSquare:x1,ArrowUpLeftFromSquareIcon:x1,ArrowUpLeftIcon:Jm,ArrowUpLeftSquare:b1,ArrowUpLeftSquareIcon:b1,ArrowUpNarrowWide:Hs,ArrowUpNarrowWideIcon:Hs,ArrowUpRight:tg,ArrowUpRightFromCircle:pc,ArrowUpRightFromCircleIcon:pc,ArrowUpRightFromSquare:w1,ArrowUpRightFromSquareIcon:w1,ArrowUpRightIcon:tg,ArrowUpRightSquare:S1,ArrowUpRightSquareIcon:S1,ArrowUpSquare:_1,ArrowUpSquareIcon:_1,ArrowUpToLine:eg,ArrowUpToLineIcon:eg,ArrowUpWideNarrow:ng,ArrowUpWideNarrowIcon:ng,ArrowUpZA:Os,ArrowUpZAIcon:Os,ArrowUpZa:Os,ArrowUpZaIcon:Os,ArrowsUpFromLine:rg,ArrowsUpFromLineIcon:rg,Asterisk:ag,AsteriskIcon:ag,AsteriskSquare:C1,AsteriskSquareIcon:C1,AtSign:ig,AtSignIcon:ig,Atom:sg,AtomIcon:sg,AudioLines:cg,AudioLinesIcon:cg,AudioWaveform:dg,AudioWaveformIcon:dg,Award:lg,AwardIcon:lg,Axe:ug,AxeIcon:ug,Axis3D:Fs,Axis3DIcon:Fs,Axis3d:Fs,Axis3dIcon:Fs,Baby:hg,BabyIcon:hg,Backpack:fg,BackpackIcon:fg,Badge:Ig,BadgeAlert:yg,BadgeAlertIcon:yg,BadgeCent:pg,BadgeCentIcon:pg,BadgeCheck:qs,BadgeCheckIcon:qs,BadgeDollarSign:mg,BadgeDollarSignIcon:mg,BadgeEuro:kg,BadgeEuroIcon:kg,BadgeHelp:Vs,BadgeHelpIcon:Vs,BadgeIcon:Ig,BadgeIndianRupee:gg,BadgeIndianRupeeIcon:gg,BadgeInfo:vg,BadgeInfoIcon:vg,BadgeJapaneseYen:xg,BadgeJapaneseYenIcon:xg,BadgeMinus:wg,BadgeMinusIcon:wg,BadgePercent:Mg,BadgePercentIcon:Mg,BadgePlus:bg,BadgePlusIcon:bg,BadgePoundSterling:_g,BadgePoundSterlingIcon:_g,BadgeQuestionMark:Vs,BadgeQuestionMarkIcon:Vs,BadgeRussianRuble:Cg,BadgeRussianRubleIcon:Cg,BadgeSwissFranc:Sg,BadgeSwissFrancIcon:Sg,BadgeTurkishLira:Lg,BadgeTurkishLiraIcon:Lg,BadgeX:Ng,BadgeXIcon:Ng,BaggageClaim:Ag,BaggageClaimIcon:Ag,Balloon:Eg,BalloonIcon:Eg,Ban:u2,BanIcon:u2,Banana:jg,BananaIcon:jg,Bandage:$g,BandageIcon:$g,Banknote:Tg,BanknoteArrowDown:Pg,BanknoteArrowDownIcon:Pg,BanknoteArrowUp:zg,BanknoteArrowUpIcon:zg,BanknoteIcon:Tg,BanknoteX:Rg,BanknoteXIcon:Rg,BarChart:oc,BarChart2:rc,BarChart2Icon:rc,BarChart3:tc,BarChart3Icon:tc,BarChart4:ec,BarChart4Icon:ec,BarChartBig:Js,BarChartBigIcon:Js,BarChartHorizontal:Ys,BarChartHorizontalBig:Zs,BarChartHorizontalBigIcon:Zs,BarChartHorizontalIcon:Ys,BarChartIcon:oc,Barcode:Dg,BarcodeIcon:Dg,Barrel:Hg,BarrelIcon:Hg,Baseline:Og,BaselineIcon:Og,Bath:Fg,BathIcon:Fg,Battery:Kg,BatteryCharging:qg,BatteryChargingIcon:qg,BatteryFull:Vg,BatteryFullIcon:Vg,BatteryIcon:Kg,BatteryLow:Bg,BatteryLowIcon:Bg,BatteryMedium:Ug,BatteryMediumIcon:Ug,BatteryPlus:Wg,BatteryPlusIcon:Wg,BatteryWarning:Gg,BatteryWarningIcon:Gg,Beaker:Xg,BeakerIcon:Xg,Bean:Yg,BeanIcon:Yg,BeanOff:Zg,BeanOffIcon:Zg,Bed:ek,BedDouble:Qg,BedDoubleIcon:Qg,BedIcon:ek,BedSingle:Jg,BedSingleIcon:Jg,Beef:tk,BeefIcon:tk,Beer:ok,BeerIcon:ok,BeerOff:nk,BeerOffIcon:nk,Bell:dk,BellDot:rk,BellDotIcon:rk,BellElectric:ak,BellElectricIcon:ak,BellIcon:dk,BellMinus:ik,BellMinusIcon:ik,BellOff:sk,BellOffIcon:sk,BellPlus:ck,BellPlusIcon:ck,BellRing:lk,BellRingIcon:lk,BetweenHorizonalEnd:Bs,BetweenHorizonalEndIcon:Bs,BetweenHorizonalStart:Us,BetweenHorizonalStartIcon:Us,BetweenHorizontalEnd:Bs,BetweenHorizontalEndIcon:Bs,BetweenHorizontalStart:Us,BetweenHorizontalStartIcon:Us,BetweenVerticalEnd:uk,BetweenVerticalEndIcon:uk,BetweenVerticalStart:hk,BetweenVerticalStartIcon:hk,BicepsFlexed:fk,BicepsFlexedIcon:fk,Bike:pk,BikeIcon:pk,Binary:yk,BinaryIcon:yk,Binoculars:mk,BinocularsIcon:mk,Biohazard:gk,BiohazardIcon:gk,Bird:kk,BirdIcon:kk,Birdhouse:vk,BirdhouseIcon:vk,Bitcoin:xk,BitcoinIcon:xk,Blend:wk,BlendIcon:wk,Blinds:Mk,BlindsIcon:Mk,Blocks:bk,BlocksIcon:bk,Bluetooth:Lk,BluetoothConnected:_k,BluetoothConnectedIcon:_k,BluetoothIcon:Lk,BluetoothOff:Ck,BluetoothOffIcon:Ck,BluetoothSearching:Sk,BluetoothSearchingIcon:Sk,Bold:Nk,BoldIcon:Nk,Bolt:Ik,BoltIcon:Ik,Bomb:Ak,BombIcon:Ak,Bone:Ek,BoneIcon:Ek,Book:n4,BookA:jk,BookAIcon:jk,BookAlert:$k,BookAlertIcon:$k,BookAudio:Pk,BookAudioIcon:Pk,BookCheck:zk,BookCheckIcon:zk,BookCopy:Rk,BookCopyIcon:Rk,BookDashed:Ws,BookDashedIcon:Ws,BookDown:Tk,BookDownIcon:Tk,BookHeadphones:Dk,BookHeadphonesIcon:Dk,BookHeart:Hk,BookHeartIcon:Hk,BookIcon:n4,BookImage:Ok,BookImageIcon:Ok,BookKey:Fk,BookKeyIcon:Fk,BookLock:qk,BookLockIcon:qk,BookMarked:Vk,BookMarkedIcon:Vk,BookMinus:Bk,BookMinusIcon:Bk,BookOpen:Gk,BookOpenCheck:Uk,BookOpenCheckIcon:Uk,BookOpenIcon:Gk,BookOpenText:Wk,BookOpenTextIcon:Wk,BookPlus:Kk,BookPlusIcon:Kk,BookSearch:Xk,BookSearchIcon:Xk,BookTemplate:Ws,BookTemplateIcon:Ws,BookText:Zk,BookTextIcon:Zk,BookType:Yk,BookTypeIcon:Yk,BookUp:Jk,BookUp2:Qk,BookUp2Icon:Qk,BookUpIcon:Jk,BookUser:e4,BookUserIcon:e4,BookX:t4,BookXIcon:t4,Bookmark:s4,BookmarkCheck:o4,BookmarkCheckIcon:o4,BookmarkIcon:s4,BookmarkMinus:r4,BookmarkMinusIcon:r4,BookmarkPlus:a4,BookmarkPlusIcon:a4,BookmarkX:i4,BookmarkXIcon:i4,BoomBox:c4,BoomBoxIcon:c4,Bot:d4,BotIcon:d4,BotMessageSquare:l4,BotMessageSquareIcon:l4,BotOff:u4,BotOffIcon:u4,BottleWine:h4,BottleWineIcon:h4,BowArrow:f4,BowArrowIcon:f4,Box:p4,BoxIcon:p4,BoxSelect:T1,BoxSelectIcon:T1,Boxes:y4,BoxesIcon:y4,Braces:Gs,BracesIcon:Gs,Brackets:m4,BracketsIcon:m4,Brain:v4,BrainCircuit:g4,BrainCircuitIcon:g4,BrainCog:k4,BrainCogIcon:k4,BrainIcon:v4,BrickWall:M4,BrickWallFire:x4,BrickWallFireIcon:x4,BrickWallIcon:M4,BrickWallShield:w4,BrickWallShieldIcon:w4,Briefcase:S4,BriefcaseBusiness:b4,BriefcaseBusinessIcon:b4,BriefcaseConveyorBelt:_4,BriefcaseConveyorBeltIcon:_4,BriefcaseIcon:S4,BriefcaseMedical:C4,BriefcaseMedicalIcon:C4,BringToFront:L4,BringToFrontIcon:L4,Brush:A4,BrushCleaning:N4,BrushCleaningIcon:N4,BrushIcon:A4,Bubbles:I4,BubblesIcon:I4,Bug:$4,BugIcon:$4,BugOff:E4,BugOffIcon:E4,BugPlay:j4,BugPlayIcon:j4,Building:P4,Building2:z4,Building2Icon:z4,BuildingIcon:P4,Bus:T4,BusFront:R4,BusFrontIcon:R4,BusIcon:T4,Cable:H4,CableCar:D4,CableCarIcon:D4,CableIcon:H4,Cake:F4,CakeIcon:F4,CakeSlice:O4,CakeSliceIcon:O4,Calculator:q4,CalculatorIcon:q4,Calendar:l5,Calendar1:V4,Calendar1Icon:V4,CalendarArrowDown:B4,CalendarArrowDownIcon:B4,CalendarArrowUp:U4,CalendarArrowUpIcon:U4,CalendarCheck:G4,CalendarCheck2:W4,CalendarCheck2Icon:W4,CalendarCheckIcon:G4,CalendarClock:K4,CalendarClockIcon:K4,CalendarCog:X4,CalendarCogIcon:X4,CalendarDays:Z4,CalendarDaysIcon:Z4,CalendarFold:Y4,CalendarFoldIcon:Y4,CalendarHeart:Q4,CalendarHeartIcon:Q4,CalendarIcon:l5,CalendarMinus:e5,CalendarMinus2:J4,CalendarMinus2Icon:J4,CalendarMinusIcon:e5,CalendarOff:t5,CalendarOffIcon:t5,CalendarPlus:r5,CalendarPlus2:n5,CalendarPlus2Icon:n5,CalendarPlusIcon:r5,CalendarRange:o5,CalendarRangeIcon:o5,CalendarSearch:a5,CalendarSearchIcon:a5,CalendarSync:i5,CalendarSyncIcon:i5,CalendarX:c5,CalendarX2:s5,CalendarX2Icon:s5,CalendarXIcon:c5,Calendars:d5,CalendarsIcon:d5,Camera:h5,CameraIcon:h5,CameraOff:u5,CameraOffIcon:u5,CandlestickChart:Qs,CandlestickChartIcon:Qs,Candy:y5,CandyCane:f5,CandyCaneIcon:f5,CandyIcon:y5,CandyOff:p5,CandyOffIcon:p5,Cannabis:g5,CannabisIcon:g5,CannabisOff:m5,CannabisOffIcon:m5,Captions:Ks,CaptionsIcon:Ks,CaptionsOff:k5,CaptionsOffIcon:k5,Car:w5,CarFront:v5,CarFrontIcon:v5,CarIcon:w5,CarTaxiFront:x5,CarTaxiFrontIcon:x5,Caravan:M5,CaravanIcon:M5,CardSim:b5,CardSimIcon:b5,Carrot:_5,CarrotIcon:_5,CaseLower:C5,CaseLowerIcon:C5,CaseSensitive:S5,CaseSensitiveIcon:S5,CaseUpper:L5,CaseUpperIcon:L5,CassetteTape:N5,CassetteTapeIcon:N5,Cast:I5,CastIcon:I5,Castle:A5,CastleIcon:A5,Cat:E5,CatIcon:E5,Cctv:j5,CctvIcon:j5,ChartArea:Xs,ChartAreaIcon:Xs,ChartBar:Ys,ChartBarBig:Zs,ChartBarBigIcon:Zs,ChartBarDecreasing:$5,ChartBarDecreasingIcon:$5,ChartBarIcon:Ys,ChartBarIncreasing:P5,ChartBarIncreasingIcon:P5,ChartBarStacked:z5,ChartBarStackedIcon:z5,ChartCandlestick:Qs,ChartCandlestickIcon:Qs,ChartColumn:tc,ChartColumnBig:Js,ChartColumnBigIcon:Js,ChartColumnDecreasing:R5,ChartColumnDecreasingIcon:R5,ChartColumnIcon:tc,ChartColumnIncreasing:ec,ChartColumnIncreasingIcon:ec,ChartColumnStacked:T5,ChartColumnStackedIcon:T5,ChartGantt:D5,ChartGanttIcon:D5,ChartLine:nc,ChartLineIcon:nc,ChartNetwork:H5,ChartNetworkIcon:H5,ChartNoAxesColumn:rc,ChartNoAxesColumnDecreasing:O5,ChartNoAxesColumnDecreasingIcon:O5,ChartNoAxesColumnIcon:rc,ChartNoAxesColumnIncreasing:oc,ChartNoAxesColumnIncreasingIcon:oc,ChartNoAxesCombined:F5,ChartNoAxesCombinedIcon:F5,ChartNoAxesGantt:ac,ChartNoAxesGanttIcon:ac,ChartPie:ic,ChartPieIcon:ic,ChartScatter:sc,ChartScatterIcon:sc,ChartSpline:q5,ChartSplineIcon:q5,Check:Bi,CheckCheck:V5,CheckCheckIcon:V5,CheckCircle:gc,CheckCircle2:_i,CheckCircle2Icon:_i,CheckCircleIcon:gc,CheckIcon:Bi,CheckLine:B5,CheckLineIcon:B5,CheckSquare:N1,CheckSquare2:I1,CheckSquare2Icon:I1,CheckSquareIcon:N1,ChefHat:U5,ChefHatIcon:U5,Cherry:W5,CherryIcon:W5,ChessBishop:G5,ChessBishopIcon:G5,ChessKing:K5,ChessKingIcon:K5,ChessKnight:X5,ChessKnightIcon:X5,ChessPawn:Z5,ChessPawnIcon:Z5,ChessQueen:Y5,ChessQueenIcon:Y5,ChessRook:J5,ChessRookIcon:J5,ChevronDown:Q5,ChevronDownCircle:kc,ChevronDownCircleIcon:kc,ChevronDownIcon:Q5,ChevronDownSquare:A1,ChevronDownSquareIcon:A1,ChevronFirst:ev,ChevronFirstIcon:ev,ChevronLast:tv,ChevronLastIcon:tv,ChevronLeft:nv,ChevronLeftCircle:vc,ChevronLeftCircleIcon:vc,ChevronLeftIcon:nv,ChevronLeftSquare:E1,ChevronLeftSquareIcon:E1,ChevronRight:ov,ChevronRightCircle:xc,ChevronRightCircleIcon:xc,ChevronRightIcon:ov,ChevronRightSquare:$1,ChevronRightSquareIcon:$1,ChevronUp:rv,ChevronUpCircle:wc,ChevronUpCircleIcon:wc,ChevronUpIcon:rv,ChevronUpSquare:j1,ChevronUpSquareIcon:j1,ChevronsDown:iv,ChevronsDownIcon:iv,ChevronsDownUp:av,ChevronsDownUpIcon:av,ChevronsLeft:lv,ChevronsLeftIcon:lv,ChevronsLeftRight:cv,ChevronsLeftRightEllipsis:sv,ChevronsLeftRightEllipsisIcon:sv,ChevronsLeftRightIcon:cv,ChevronsRight:uv,ChevronsRightIcon:uv,ChevronsRightLeft:dv,ChevronsRightLeftIcon:dv,ChevronsUp:fv,ChevronsUpDown:hv,ChevronsUpDownIcon:hv,ChevronsUpIcon:fv,Chrome:cc,ChromeIcon:cc,Chromium:cc,ChromiumIcon:cc,Church:pv,ChurchIcon:pv,Cigarette:mv,CigaretteIcon:mv,CigaretteOff:yv,CigaretteOffIcon:yv,Circle:m0,CircleAlert:bi,CircleAlertIcon:bi,CircleArrowDown:lc,CircleArrowDownIcon:lc,CircleArrowLeft:uc,CircleArrowLeftIcon:uc,CircleArrowOutDownLeft:dc,CircleArrowOutDownLeftIcon:dc,CircleArrowOutDownRight:hc,CircleArrowOutDownRightIcon:hc,CircleArrowOutUpLeft:fc,CircleArrowOutUpLeftIcon:fc,CircleArrowOutUpRight:pc,CircleArrowOutUpRightIcon:pc,CircleArrowRight:yc,CircleArrowRightIcon:yc,CircleArrowUp:mc,CircleArrowUpIcon:mc,CircleCheck:_i,CircleCheckBig:gc,CircleCheckBigIcon:gc,CircleCheckIcon:_i,CircleChevronDown:kc,CircleChevronDownIcon:kc,CircleChevronLeft:vc,CircleChevronLeftIcon:vc,CircleChevronRight:xc,CircleChevronRightIcon:xc,CircleChevronUp:wc,CircleChevronUpIcon:wc,CircleDashed:gv,CircleDashedIcon:gv,CircleDivide:Mc,CircleDivideIcon:Mc,CircleDollarSign:kv,CircleDollarSignIcon:kv,CircleDot:xv,CircleDotDashed:vv,CircleDotDashedIcon:vv,CircleDotIcon:xv,CircleEllipsis:wv,CircleEllipsisIcon:wv,CircleEqual:Mv,CircleEqualIcon:Mv,CircleFadingArrowUp:bv,CircleFadingArrowUpIcon:bv,CircleFadingPlus:_v,CircleFadingPlusIcon:_v,CircleGauge:bc,CircleGaugeIcon:bc,CircleHelp:Xo,CircleHelpIcon:Xo,CircleIcon:m0,CircleMinus:_c,CircleMinusIcon:_c,CircleOff:Cv,CircleOffIcon:Cv,CircleParking:Sc,CircleParkingIcon:Sc,CircleParkingOff:Cc,CircleParkingOffIcon:Cc,CirclePause:Lc,CirclePauseIcon:Lc,CirclePercent:Nc,CirclePercentIcon:Nc,CirclePile:Sv,CirclePileIcon:Sv,CirclePlay:Ic,CirclePlayIcon:Ic,CirclePlus:Ac,CirclePlusIcon:Ac,CirclePoundSterling:Lv,CirclePoundSterlingIcon:Lv,CirclePower:Ec,CirclePowerIcon:Ec,CircleQuestionMark:Xo,CircleQuestionMarkIcon:Xo,CircleSlash:Nv,CircleSlash2:jc,CircleSlash2Icon:jc,CircleSlashIcon:Nv,CircleSlashed:jc,CircleSlashedIcon:jc,CircleSmall:Iv,CircleSmallIcon:Iv,CircleStar:Av,CircleStarIcon:Av,CircleStop:Pc,CircleStopIcon:Pc,CircleUser:zc,CircleUserIcon:zc,CircleUserRound:$c,CircleUserRoundIcon:$c,CircleX:Rc,CircleXIcon:Rc,CircuitBoard:Ev,CircuitBoardIcon:Ev,Citrus:jv,CitrusIcon:jv,Clapperboard:$v,ClapperboardIcon:$v,Clipboard:Vv,ClipboardCheck:Pv,ClipboardCheckIcon:Pv,ClipboardClock:zv,ClipboardClockIcon:zv,ClipboardCopy:Rv,ClipboardCopyIcon:Rv,ClipboardEdit:Dc,ClipboardEditIcon:Dc,ClipboardIcon:Vv,ClipboardList:Tv,ClipboardListIcon:Tv,ClipboardMinus:Dv,ClipboardMinusIcon:Dv,ClipboardPaste:Hv,ClipboardPasteIcon:Hv,ClipboardPen:Dc,ClipboardPenIcon:Dc,ClipboardPenLine:Tc,ClipboardPenLineIcon:Tc,ClipboardPlus:Ov,ClipboardPlusIcon:Ov,ClipboardSignature:Tc,ClipboardSignatureIcon:Tc,ClipboardType:Fv,ClipboardTypeIcon:Fv,ClipboardX:qv,ClipboardXIcon:qv,Clock:cx,Clock1:Bv,Clock10:Uv,Clock10Icon:Uv,Clock11:Wv,Clock11Icon:Wv,Clock12:Gv,Clock12Icon:Gv,Clock1Icon:Bv,Clock2:Kv,Clock2Icon:Kv,Clock3:Xv,Clock3Icon:Xv,Clock4:Zv,Clock4Icon:Zv,Clock5:Yv,Clock5Icon:Yv,Clock6:Qv,Clock6Icon:Qv,Clock7:Jv,Clock7Icon:Jv,Clock8:ex,Clock8Icon:ex,Clock9:tx,Clock9Icon:tx,ClockAlert:nx,ClockAlertIcon:nx,ClockArrowDown:ox,ClockArrowDownIcon:ox,ClockArrowUp:ix,ClockArrowUpIcon:ix,ClockCheck:rx,ClockCheckIcon:rx,ClockFading:ax,ClockFadingIcon:ax,ClockIcon:cx,ClockPlus:sx,ClockPlusIcon:sx,ClosedCaption:lx,ClosedCaptionIcon:lx,Cloud:h2,CloudAlert:dx,CloudAlertIcon:dx,CloudBackup:ux,CloudBackupIcon:ux,CloudCheck:hx,CloudCheckIcon:hx,CloudCog:fx,CloudCogIcon:fx,CloudDownload:Hc,CloudDownloadIcon:Hc,CloudDrizzle:px,CloudDrizzleIcon:px,CloudFog:yx,CloudFogIcon:yx,CloudHail:mx,CloudHailIcon:mx,CloudIcon:h2,CloudLightning:gx,CloudLightningIcon:gx,CloudMoon:vx,CloudMoonIcon:vx,CloudMoonRain:kx,CloudMoonRainIcon:kx,CloudOff:xx,CloudOffIcon:xx,CloudRain:Mx,CloudRainIcon:Mx,CloudRainWind:wx,CloudRainWindIcon:wx,CloudSnow:bx,CloudSnowIcon:bx,CloudSun:Cx,CloudSunIcon:Cx,CloudSunRain:_x,CloudSunRainIcon:_x,CloudSync:Sx,CloudSyncIcon:Sx,CloudUpload:Oc,CloudUploadIcon:Oc,Cloudy:Lx,CloudyIcon:Lx,Clover:Nx,CloverIcon:Nx,Club:Ix,ClubIcon:Ix,Code:Ax,Code2:Fc,Code2Icon:Fc,CodeIcon:Ax,CodeSquare:P1,CodeSquareIcon:P1,CodeXml:Fc,CodeXmlIcon:Fc,Codepen:Ex,CodepenIcon:Ex,Codesandbox:jx,CodesandboxIcon:jx,Coffee:$x,CoffeeIcon:$x,Cog:Px,CogIcon:Px,Coins:zx,CoinsIcon:zx,Columns:qc,Columns2:qc,Columns2Icon:qc,Columns3:Ci,Columns3Cog:$r,Columns3CogIcon:$r,Columns3Icon:Ci,Columns4:Rx,Columns4Icon:Rx,ColumnsIcon:qc,ColumnsSettings:$r,ColumnsSettingsIcon:$r,Combine:Tx,CombineIcon:Tx,Command:Dx,CommandIcon:Dx,Compass:Hx,CompassIcon:Hx,Component:Ox,ComponentIcon:Ox,Computer:Fx,ComputerIcon:Fx,ConciergeBell:qx,ConciergeBellIcon:qx,Cone:Vx,ConeIcon:Vx,Construction:Bx,ConstructionIcon:Bx,Contact:Ux,Contact2:Vc,Contact2Icon:Vc,ContactIcon:Ux,ContactRound:Vc,ContactRoundIcon:Vc,Container:Wx,ContainerIcon:Wx,Contrast:Gx,ContrastIcon:Gx,Cookie:Kx,CookieIcon:Kx,CookingPot:Xx,CookingPotIcon:Xx,Copy:t3,CopyCheck:Zx,CopyCheckIcon:Zx,CopyIcon:t3,CopyMinus:Yx,CopyMinusIcon:Yx,CopyPlus:Qx,CopyPlusIcon:Qx,CopySlash:Jx,CopySlashIcon:Jx,CopyX:e3,CopyXIcon:e3,Copyleft:o3,CopyleftIcon:o3,Copyright:n3,CopyrightIcon:n3,CornerDownLeft:r3,CornerDownLeftIcon:r3,CornerDownRight:a3,CornerDownRightIcon:a3,CornerLeftDown:i3,CornerLeftDownIcon:i3,CornerLeftUp:s3,CornerLeftUpIcon:s3,CornerRightDown:l3,CornerRightDownIcon:l3,CornerRightUp:c3,CornerRightUpIcon:c3,CornerUpLeft:u3,CornerUpLeftIcon:u3,CornerUpRight:d3,CornerUpRightIcon:d3,Cpu:h3,CpuIcon:h3,CreativeCommons:f3,CreativeCommonsIcon:f3,CreditCard:p3,CreditCardIcon:p3,Croissant:y3,CroissantIcon:y3,Crop:m3,CropIcon:m3,Cross:g3,CrossIcon:g3,Crosshair:k3,CrosshairIcon:k3,Crown:v3,CrownIcon:v3,Cuboid:x3,CuboidIcon:x3,CupSoda:w3,CupSodaIcon:w3,CurlyBraces:Gs,CurlyBracesIcon:Gs,Currency:M3,CurrencyIcon:M3,Cylinder:b3,CylinderIcon:b3,Dam:_3,DamIcon:_3,Database:f2,DatabaseBackup:C3,DatabaseBackupIcon:C3,DatabaseIcon:f2,DatabaseSearch:S3,DatabaseSearchIcon:S3,DatabaseZap:L3,DatabaseZapIcon:L3,DecimalsArrowLeft:N3,DecimalsArrowLeftIcon:N3,DecimalsArrowRight:I3,DecimalsArrowRightIcon:I3,Delete:A3,DeleteIcon:A3,Dessert:E3,DessertIcon:E3,Diameter:j3,DiameterIcon:j3,Diamond:g0,DiamondIcon:g0,DiamondMinus:$3,DiamondMinusIcon:$3,DiamondPercent:Bc,DiamondPercentIcon:Bc,DiamondPlus:P3,DiamondPlusIcon:P3,Dice1:z3,Dice1Icon:z3,Dice2:T3,Dice2Icon:T3,Dice3:R3,Dice3Icon:R3,Dice4:D3,Dice4Icon:D3,Dice5:H3,Dice5Icon:H3,Dice6:O3,Dice6Icon:O3,Dices:F3,DicesIcon:F3,Diff:q3,DiffIcon:q3,Disc:W3,Disc2:V3,Disc2Icon:V3,Disc3:U3,Disc3Icon:U3,DiscAlbum:B3,DiscAlbumIcon:B3,DiscIcon:W3,Divide:G3,DivideCircle:Mc,DivideCircleIcon:Mc,DivideIcon:G3,DivideSquare:D1,DivideSquareIcon:D1,Dna:X3,DnaIcon:X3,DnaOff:K3,DnaOffIcon:K3,Dock:Z3,DockIcon:Z3,Dog:Y3,DogIcon:Y3,DollarSign:Q3,DollarSignIcon:Q3,Donut:J3,DonutIcon:J3,DoorClosed:t8,DoorClosedIcon:t8,DoorClosedLocked:e8,DoorClosedLockedIcon:e8,DoorOpen:n8,DoorOpenIcon:n8,Dot:o8,DotIcon:o8,DotSquare:H1,DotSquareIcon:H1,Download:k0,DownloadCloud:Hc,DownloadCloudIcon:Hc,DownloadIcon:k0,DraftingCompass:r8,DraftingCompassIcon:r8,Drama:a8,DramaIcon:a8,Dribbble:i8,DribbbleIcon:i8,Drill:s8,DrillIcon:s8,Drone:c8,DroneIcon:c8,Droplet:d8,DropletIcon:d8,DropletOff:l8,DropletOffIcon:l8,Droplets:u8,DropletsIcon:u8,Drum:h8,DrumIcon:h8,Drumstick:f8,DrumstickIcon:f8,Dumbbell:p8,DumbbellIcon:p8,Ear:y8,EarIcon:y8,EarOff:m8,EarOffIcon:m8,Earth:Uc,EarthIcon:Uc,EarthLock:g8,EarthLockIcon:g8,Eclipse:k8,EclipseIcon:k8,Edit:so,Edit2:t1,Edit2Icon:t1,Edit3:e1,Edit3Icon:e1,EditIcon:so,Egg:w8,EggFried:v8,EggFriedIcon:v8,EggIcon:w8,EggOff:x8,EggOffIcon:x8,Ellipsis:Gc,EllipsisIcon:Gc,EllipsisVertical:Wc,EllipsisVerticalIcon:Wc,Equal:_8,EqualApproximately:M8,EqualApproximatelyIcon:M8,EqualIcon:_8,EqualNot:b8,EqualNotIcon:b8,EqualSquare:O1,EqualSquareIcon:O1,Eraser:C8,EraserIcon:C8,EthernetPort:S8,EthernetPortIcon:S8,Euro:L8,EuroIcon:L8,EvCharger:N8,EvChargerIcon:N8,Expand:I8,ExpandIcon:I8,ExternalLink:p2,ExternalLinkIcon:p2,Eye:j8,EyeClosed:A8,EyeClosedIcon:A8,EyeIcon:j8,EyeOff:E8,EyeOffIcon:E8,Facebook:$8,FacebookIcon:$8,Factory:P8,FactoryIcon:P8,Fan:R8,FanIcon:R8,FastForward:z8,FastForwardIcon:z8,Feather:T8,FeatherIcon:T8,Fence:D8,FenceIcon:D8,FerrisWheel:H8,FerrisWheelIcon:H8,Figma:O8,FigmaIcon:O8,File:f6,FileArchive:F8,FileArchiveIcon:F8,FileAudio:Pr,FileAudio2:Pr,FileAudio2Icon:Pr,FileAudioIcon:Pr,FileAxis3D:Kc,FileAxis3DIcon:Kc,FileAxis3d:Kc,FileAxis3dIcon:Kc,FileBadge:Xc,FileBadge2:Xc,FileBadge2Icon:Xc,FileBadgeIcon:Xc,FileBarChart:Qc,FileBarChart2:Jc,FileBarChart2Icon:Jc,FileBarChartIcon:Qc,FileBox:q8,FileBoxIcon:q8,FileBraces:Yc,FileBracesCorner:Zc,FileBracesCornerIcon:Zc,FileBracesIcon:Yc,FileChartColumn:Jc,FileChartColumnIcon:Jc,FileChartColumnIncreasing:Qc,FileChartColumnIncreasingIcon:Qc,FileChartLine:el,FileChartLineIcon:el,FileChartPie:tl,FileChartPieIcon:tl,FileCheck:V8,FileCheck2:nl,FileCheck2Icon:nl,FileCheckCorner:nl,FileCheckCornerIcon:nl,FileCheckIcon:V8,FileClock:U8,FileClockIcon:U8,FileCode:B8,FileCode2:ol,FileCode2Icon:ol,FileCodeCorner:ol,FileCodeCornerIcon:ol,FileCodeIcon:B8,FileCog:rl,FileCog2:rl,FileCog2Icon:rl,FileCogIcon:rl,FileDiff:W8,FileDiffIcon:W8,FileDigit:G8,FileDigitIcon:G8,FileDown:y2,FileDownIcon:y2,FileEdit:dl,FileEditIcon:dl,FileExclamationPoint:al,FileExclamationPointIcon:al,FileHeadphone:Pr,FileHeadphoneIcon:Pr,FileHeart:K8,FileHeartIcon:K8,FileIcon:f6,FileImage:X8,FileImageIcon:X8,FileInput:Z8,FileInputIcon:Z8,FileJson:Yc,FileJson2:Zc,FileJson2Icon:Zc,FileJsonIcon:Yc,FileKey:il,FileKey2:il,FileKey2Icon:il,FileKeyIcon:il,FileLineChart:el,FileLineChartIcon:el,FileLock:sl,FileLock2:sl,FileLock2Icon:sl,FileLockIcon:sl,FileMinus:Y8,FileMinus2:cl,FileMinus2Icon:cl,FileMinusCorner:cl,FileMinusCornerIcon:cl,FileMinusIcon:Y8,FileMusic:J8,FileMusicIcon:J8,FileOutput:Q8,FileOutputIcon:Q8,FilePen:dl,FilePenIcon:dl,FilePenLine:ll,FilePenLineIcon:ll,FilePieChart:tl,FilePieChartIcon:tl,FilePlay:ul,FilePlayIcon:ul,FilePlus:e6,FilePlus2:hl,FilePlus2Icon:hl,FilePlusCorner:hl,FilePlusCornerIcon:hl,FilePlusIcon:e6,FileQuestion:fl,FileQuestionIcon:fl,FileQuestionMark:fl,FileQuestionMarkIcon:fl,FileScan:t6,FileScanIcon:t6,FileSearch:n6,FileSearch2:pl,FileSearch2Icon:pl,FileSearchCorner:pl,FileSearchCornerIcon:pl,FileSearchIcon:n6,FileSignal:yl,FileSignalIcon:yl,FileSignature:ll,FileSignatureIcon:ll,FileSliders:o6,FileSlidersIcon:o6,FileSpreadsheet:r6,FileSpreadsheetIcon:r6,FileStack:a6,FileStackIcon:a6,FileSymlink:i6,FileSymlinkIcon:i6,FileTerminal:s6,FileTerminalIcon:s6,FileText:m2,FileTextIcon:m2,FileType:c6,FileType2:ml,FileType2Icon:ml,FileTypeCorner:ml,FileTypeCornerIcon:ml,FileTypeIcon:c6,FileUp:l6,FileUpIcon:l6,FileUser:d6,FileUserIcon:d6,FileVideo:ul,FileVideo2:gl,FileVideo2Icon:gl,FileVideoCamera:gl,FileVideoCameraIcon:gl,FileVideoIcon:ul,FileVolume:u6,FileVolume2:yl,FileVolume2Icon:yl,FileVolumeIcon:u6,FileWarning:al,FileWarningIcon:al,FileX:h6,FileX2:kl,FileX2Icon:kl,FileXCorner:kl,FileXCornerIcon:kl,FileXIcon:h6,Files:p6,FilesIcon:p6,Film:y6,FilmIcon:y6,Filter:bl,FilterIcon:bl,FilterX:Ml,FilterXIcon:Ml,Fingerprint:vl,FingerprintIcon:vl,FingerprintPattern:vl,FingerprintPatternIcon:vl,FireExtinguisher:m6,FireExtinguisherIcon:m6,Fish:v6,FishIcon:v6,FishOff:g6,FishOffIcon:g6,FishSymbol:k6,FishSymbolIcon:k6,FishingHook:x6,FishingHookIcon:x6,Flag:_6,FlagIcon:_6,FlagOff:w6,FlagOffIcon:w6,FlagTriangleLeft:M6,FlagTriangleLeftIcon:M6,FlagTriangleRight:b6,FlagTriangleRightIcon:b6,Flame:S6,FlameIcon:S6,FlameKindling:C6,FlameKindlingIcon:C6,Flashlight:N6,FlashlightIcon:N6,FlashlightOff:L6,FlashlightOffIcon:L6,FlaskConical:E6,FlaskConicalIcon:E6,FlaskConicalOff:I6,FlaskConicalOffIcon:I6,FlaskRound:A6,FlaskRoundIcon:A6,FlipHorizontal:$6,FlipHorizontal2:j6,FlipHorizontal2Icon:j6,FlipHorizontalIcon:$6,FlipVertical:z6,FlipVertical2:P6,FlipVertical2Icon:P6,FlipVerticalIcon:z6,Flower:T6,Flower2:R6,Flower2Icon:R6,FlowerIcon:T6,Focus:D6,FocusIcon:D6,FoldHorizontal:H6,FoldHorizontalIcon:H6,FoldVertical:O6,FoldVerticalIcon:O6,Folder:fw,FolderArchive:F6,FolderArchiveIcon:F6,FolderCheck:q6,FolderCheckIcon:q6,FolderClock:V6,FolderClockIcon:V6,FolderClosed:U6,FolderClosedIcon:U6,FolderCode:B6,FolderCodeIcon:B6,FolderCog:xl,FolderCog2:xl,FolderCog2Icon:xl,FolderCogIcon:xl,FolderDot:W6,FolderDotIcon:W6,FolderDown:G6,FolderDownIcon:G6,FolderEdit:wl,FolderEditIcon:wl,FolderGit:X6,FolderGit2:K6,FolderGit2Icon:K6,FolderGitIcon:X6,FolderHeart:Z6,FolderHeartIcon:Z6,FolderIcon:fw,FolderInput:Y6,FolderInputIcon:Y6,FolderKanban:Q6,FolderKanbanIcon:Q6,FolderKey:J6,FolderKeyIcon:J6,FolderLock:ew,FolderLockIcon:ew,FolderMinus:tw,FolderMinusIcon:tw,FolderOpen:g2,FolderOpenDot:nw,FolderOpenDotIcon:nw,FolderOpenIcon:g2,FolderOutput:ow,FolderOutputIcon:ow,FolderPen:wl,FolderPenIcon:wl,FolderPlus:rw,FolderPlusIcon:rw,FolderRoot:aw,FolderRootIcon:aw,FolderSearch:sw,FolderSearch2:iw,FolderSearch2Icon:iw,FolderSearchIcon:sw,FolderSymlink:cw,FolderSymlinkIcon:cw,FolderSync:lw,FolderSyncIcon:lw,FolderTree:dw,FolderTreeIcon:dw,FolderUp:uw,FolderUpIcon:uw,FolderX:hw,FolderXIcon:hw,Folders:pw,FoldersIcon:pw,Footprints:yw,FootprintsIcon:yw,ForkKnife:Nd,ForkKnifeCrossed:Ld,ForkKnifeCrossedIcon:Ld,ForkKnifeIcon:Nd,Forklift:kw,ForkliftIcon:kw,Form:mw,FormIcon:mw,FormInput:o1,FormInputIcon:o1,Forward:gw,ForwardIcon:gw,Frame:vw,FrameIcon:vw,Framer:Mw,FramerIcon:Mw,Frown:xw,FrownIcon:xw,Fuel:ww,FuelIcon:ww,Fullscreen:bw,FullscreenIcon:bw,FunctionSquare:F1,FunctionSquareIcon:F1,Funnel:bl,FunnelIcon:bl,FunnelPlus:_w,FunnelPlusIcon:_w,FunnelX:Ml,FunnelXIcon:Ml,GalleryHorizontal:Sw,GalleryHorizontalEnd:Cw,GalleryHorizontalEndIcon:Cw,GalleryHorizontalIcon:Sw,GalleryThumbnails:Lw,GalleryThumbnailsIcon:Lw,GalleryVertical:Iw,GalleryVerticalEnd:Nw,GalleryVerticalEndIcon:Nw,GalleryVerticalIcon:Iw,Gamepad:$w,Gamepad2:Aw,Gamepad2Icon:Aw,GamepadDirectional:Ew,GamepadDirectionalIcon:Ew,GamepadIcon:$w,GanttChart:ac,GanttChartIcon:ac,GanttChartSquare:Dr,GanttChartSquareIcon:Dr,Gauge:jw,GaugeCircle:bc,GaugeCircleIcon:bc,GaugeIcon:jw,Gavel:Pw,GavelIcon:Pw,Gem:zw,GemIcon:zw,GeorgianLari:Rw,GeorgianLariIcon:Rw,Ghost:Dw,GhostIcon:Dw,Gift:Tw,GiftIcon:Tw,GitBranch:Fw,GitBranchIcon:Fw,GitBranchMinus:Hw,GitBranchMinusIcon:Hw,GitBranchPlus:Ow,GitBranchPlusIcon:Ow,GitCommit:_l,GitCommitHorizontal:_l,GitCommitHorizontalIcon:_l,GitCommitIcon:_l,GitCommitVertical:qw,GitCommitVerticalIcon:qw,GitCompare:Bw,GitCompareArrows:Vw,GitCompareArrowsIcon:Vw,GitCompareIcon:Bw,GitFork:Uw,GitForkIcon:Uw,GitGraph:Ww,GitGraphIcon:Ww,GitMerge:Gw,GitMergeIcon:Gw,GitPullRequest:Jw,GitPullRequestArrow:Kw,GitPullRequestArrowIcon:Kw,GitPullRequestClosed:Xw,GitPullRequestClosedIcon:Xw,GitPullRequestCreate:Yw,GitPullRequestCreateArrow:Zw,GitPullRequestCreateArrowIcon:Zw,GitPullRequestCreateIcon:Yw,GitPullRequestDraft:Qw,GitPullRequestDraftIcon:Qw,GitPullRequestIcon:Jw,Github:e7,GithubIcon:e7,Gitlab:t7,GitlabIcon:t7,GlassWater:n7,GlassWaterIcon:n7,Glasses:o7,GlassesIcon:o7,Globe:i7,Globe2:Uc,Globe2Icon:Uc,GlobeIcon:i7,GlobeLock:r7,GlobeLockIcon:r7,GlobeX:a7,GlobeXIcon:a7,Goal:s7,GoalIcon:s7,Gpu:c7,GpuIcon:c7,Grab:Il,GrabIcon:Il,GraduationCap:l7,GraduationCapIcon:l7,Grape:d7,GrapeIcon:d7,Grid:zr,Grid2X2:Nl,Grid2X2Check:Cl,Grid2X2CheckIcon:Cl,Grid2X2Icon:Nl,Grid2X2Plus:Sl,Grid2X2PlusIcon:Sl,Grid2X2X:Ll,Grid2X2XIcon:Ll,Grid2x2:Nl,Grid2x2Check:Cl,Grid2x2CheckIcon:Cl,Grid2x2Icon:Nl,Grid2x2Plus:Sl,Grid2x2PlusIcon:Sl,Grid2x2X:Ll,Grid2x2XIcon:Ll,Grid3X3:zr,Grid3X3Icon:zr,Grid3x2:u7,Grid3x2Icon:u7,Grid3x3:zr,Grid3x3Icon:zr,GridIcon:zr,Grip:f7,GripHorizontal:h7,GripHorizontalIcon:h7,GripIcon:f7,GripVertical:p7,GripVerticalIcon:p7,Group:y7,GroupIcon:y7,Guitar:m7,GuitarIcon:m7,Ham:g7,HamIcon:g7,Hamburger:k7,HamburgerIcon:k7,Hammer:v7,HammerIcon:v7,Hand:k2,HandCoins:x7,HandCoinsIcon:x7,HandFist:w7,HandFistIcon:w7,HandGrab:Il,HandGrabIcon:Il,HandHeart:M7,HandHeartIcon:M7,HandHelping:Al,HandHelpingIcon:Al,HandIcon:k2,HandMetal:b7,HandMetalIcon:b7,HandPlatter:_7,HandPlatterIcon:_7,Handbag:C7,HandbagIcon:C7,Handshake:S7,HandshakeIcon:S7,HardDrive:I7,HardDriveDownload:L7,HardDriveDownloadIcon:L7,HardDriveIcon:I7,HardDriveUpload:N7,HardDriveUploadIcon:N7,HardHat:A7,HardHatIcon:A7,Hash:E7,HashIcon:E7,HatGlasses:j7,HatGlassesIcon:j7,Haze:$7,HazeIcon:$7,Hd:P7,HdIcon:P7,HdmiPort:z7,HdmiPortIcon:z7,Heading:q7,Heading1:R7,Heading1Icon:R7,Heading2:T7,Heading2Icon:T7,Heading3:D7,Heading3Icon:D7,Heading4:H7,Heading4Icon:H7,Heading5:O7,Heading5Icon:O7,Heading6:F7,Heading6Icon:F7,HeadingIcon:q7,HeadphoneOff:V7,HeadphoneOffIcon:V7,Headphones:B7,HeadphonesIcon:B7,Headset:U7,HeadsetIcon:U7,Heart:Q7,HeartCrack:W7,HeartCrackIcon:W7,HeartHandshake:K7,HeartHandshakeIcon:K7,HeartIcon:Q7,HeartMinus:G7,HeartMinusIcon:G7,HeartOff:X7,HeartOffIcon:X7,HeartPlus:Z7,HeartPlusIcon:Z7,HeartPulse:Y7,HeartPulseIcon:Y7,Heater:J7,HeaterIcon:J7,Helicopter:eM,HelicopterIcon:eM,HelpCircle:Xo,HelpCircleIcon:Xo,HelpingHand:Al,HelpingHandIcon:Al,Hexagon:v2,HexagonIcon:v2,Highlighter:tM,HighlighterIcon:tM,History:nM,HistoryIcon:nM,Home:El,HomeIcon:El,Hop:oM,HopIcon:oM,HopOff:rM,HopOffIcon:rM,Hospital:aM,HospitalIcon:aM,Hotel:iM,HotelIcon:iM,Hourglass:sM,HourglassIcon:sM,House:El,HouseHeart:cM,HouseHeartIcon:cM,HouseIcon:El,HousePlug:lM,HousePlugIcon:lM,HousePlus:dM,HousePlusIcon:dM,HouseWifi:uM,HouseWifiIcon:uM,IceCream:$l,IceCream2:jl,IceCream2Icon:jl,IceCreamBowl:jl,IceCreamBowlIcon:jl,IceCreamCone:$l,IceCreamConeIcon:$l,IceCreamIcon:$l,Icon:xQ,IdCard:fM,IdCardIcon:fM,IdCardLanyard:hM,IdCardLanyardIcon:hM,Image:w2,ImageDown:pM,ImageDownIcon:pM,ImageIcon:w2,ImageMinus:mM,ImageMinusIcon:mM,ImageOff:yM,ImageOffIcon:yM,ImagePlay:gM,ImagePlayIcon:gM,ImagePlus:x2,ImagePlusIcon:x2,ImageUp:kM,ImageUpIcon:kM,ImageUpscale:vM,ImageUpscaleIcon:vM,Images:xM,ImagesIcon:xM,Import:wM,ImportIcon:wM,Inbox:MM,InboxIcon:MM,Indent:Tr,IndentDecrease:Rr,IndentDecreaseIcon:Rr,IndentIcon:Tr,IndentIncrease:Tr,IndentIncreaseIcon:Tr,IndianRupee:bM,IndianRupeeIcon:bM,Infinity:CM,InfinityIcon:CM,Info:_M,InfoIcon:_M,Inspect:G1,InspectIcon:G1,InspectionPanel:SM,InspectionPanelIcon:SM,Instagram:LM,InstagramIcon:LM,Italic:NM,ItalicIcon:NM,IterationCcw:IM,IterationCcwIcon:IM,IterationCw:AM,IterationCwIcon:AM,JapaneseYen:EM,JapaneseYenIcon:EM,Joystick:jM,JoystickIcon:jM,Kanban:$M,KanbanIcon:$M,KanbanSquare:q1,KanbanSquareDashed:z1,KanbanSquareDashedIcon:z1,KanbanSquareIcon:q1,Kayak:PM,KayakIcon:PM,Key:TM,KeyIcon:TM,KeyRound:zM,KeyRoundIcon:zM,KeySquare:RM,KeySquareIcon:RM,Keyboard:OM,KeyboardIcon:OM,KeyboardMusic:DM,KeyboardMusicIcon:DM,KeyboardOff:HM,KeyboardOffIcon:HM,Lamp:WM,LampCeiling:FM,LampCeilingIcon:FM,LampDesk:qM,LampDeskIcon:qM,LampFloor:VM,LampFloorIcon:VM,LampIcon:WM,LampWallDown:BM,LampWallDownIcon:BM,LampWallUp:UM,LampWallUpIcon:UM,LandPlot:GM,LandPlotIcon:GM,Landmark:KM,LandmarkIcon:KM,Languages:XM,LanguagesIcon:XM,Laptop:QM,Laptop2:Pl,Laptop2Icon:Pl,LaptopIcon:QM,LaptopMinimal:Pl,LaptopMinimalCheck:ZM,LaptopMinimalCheckIcon:ZM,LaptopMinimalIcon:Pl,Lasso:JM,LassoIcon:JM,LassoSelect:YM,LassoSelectIcon:YM,Laugh:eb,LaughIcon:eb,Layers:Pa,Layers2:tb,Layers2Icon:tb,Layers3:Pa,Layers3Icon:Pa,LayersIcon:Pa,LayersPlus:nb,LayersPlusIcon:nb,Layout:Jl,LayoutDashboard:M2,LayoutDashboardIcon:M2,LayoutGrid:ob,LayoutGridIcon:ob,LayoutIcon:Jl,LayoutList:rb,LayoutListIcon:rb,LayoutPanelLeft:ab,LayoutPanelLeftIcon:ab,LayoutPanelTop:sb,LayoutPanelTopIcon:sb,LayoutTemplate:ib,LayoutTemplateIcon:ib,Leaf:cb,LeafIcon:cb,LeafyGreen:lb,LeafyGreenIcon:lb,Lectern:db,LecternIcon:db,LetterText:fd,LetterTextIcon:fd,Library:hb,LibraryBig:ub,LibraryBigIcon:ub,LibraryIcon:hb,LibrarySquare:V1,LibrarySquareIcon:V1,LifeBuoy:fb,LifeBuoyIcon:fb,Ligature:pb,LigatureIcon:pb,Lightbulb:mb,LightbulbIcon:mb,LightbulbOff:yb,LightbulbOffIcon:yb,LineChart:nc,LineChartIcon:nc,LineSquiggle:gb,LineSquiggleIcon:gb,Link:vb,Link2:Ui,Link2Icon:Ui,Link2Off:kb,Link2OffIcon:kb,LinkIcon:vb,Linkedin:xb,LinkedinIcon:xb,List:Hb,ListCheck:wb,ListCheckIcon:wb,ListChecks:Mb,ListChecksIcon:Mb,ListChevronsDownUp:bb,ListChevronsDownUpIcon:bb,ListChevronsUpDown:Cb,ListChevronsUpDownIcon:Cb,ListCollapse:_b,ListCollapseIcon:_b,ListEnd:Sb,ListEndIcon:Sb,ListFilter:Nb,ListFilterIcon:Nb,ListFilterPlus:Lb,ListFilterPlusIcon:Lb,ListIcon:Hb,ListIndentDecrease:Rr,ListIndentDecreaseIcon:Rr,ListIndentIncrease:Tr,ListIndentIncreaseIcon:Tr,ListMinus:Ib,ListMinusIcon:Ib,ListMusic:Ab,ListMusicIcon:Ab,ListOrdered:Eb,ListOrderedIcon:Eb,ListPlus:jb,ListPlusIcon:jb,ListRestart:$b,ListRestartIcon:$b,ListStart:Pb,ListStartIcon:Pb,ListTodo:zb,ListTodoIcon:zb,ListTree:Rb,ListTreeIcon:Rb,ListVideo:Tb,ListVideoIcon:Tb,ListX:Db,ListXIcon:Db,Loader:Fb,Loader2:Wn,Loader2Icon:Wn,LoaderCircle:Wn,LoaderCircleIcon:Wn,LoaderIcon:Fb,LoaderPinwheel:Ob,LoaderPinwheelIcon:Ob,Locate:Bb,LocateFixed:qb,LocateFixedIcon:qb,LocateIcon:Bb,LocateOff:Vb,LocateOffIcon:Vb,LocationEdit:Dl,LocationEditIcon:Dl,Lock:Wb,LockIcon:Wb,LockKeyhole:Ub,LockKeyholeIcon:Ub,LockKeyholeOpen:zl,LockKeyholeOpenIcon:zl,LockOpen:Rl,LockOpenIcon:Rl,LogIn:Gb,LogInIcon:Gb,LogOut:Kb,LogOutIcon:Kb,Logs:Xb,LogsIcon:Xb,Lollipop:Zb,LollipopIcon:Zb,LucideAArrowDown:Ny,LucideAArrowUp:Iy,LucideALargeSmall:Ay,LucideAccessibility:Ey,LucideActivity:jy,LucideActivitySquare:f1,LucideAirVent:$y,LucideAirplay:Py,LucideAlarmCheck:js,LucideAlarmClock:Ry,LucideAlarmClockCheck:js,LucideAlarmClockMinus:$s,LucideAlarmClockOff:zy,LucideAlarmClockPlus:Ps,LucideAlarmMinus:$s,LucideAlarmPlus:Ps,LucideAlarmSmoke:Ty,LucideAlbum:Dy,LucideAlertCircle:bi,LucideAlertOctagon:ql,LucideAlertTriangle:qr,LucideAlignCenter:Si,LucideAlignCenterHorizontal:Oy,LucideAlignCenterVertical:Hy,LucideAlignEndHorizontal:Fy,LucideAlignEndVertical:qy,LucideAlignHorizontalDistributeCenter:Vy,LucideAlignHorizontalDistributeEnd:By,LucideAlignHorizontalDistributeStart:Uy,LucideAlignHorizontalJustifyCenter:Wy,LucideAlignHorizontalJustifyEnd:Ky,LucideAlignHorizontalJustifyStart:Gy,LucideAlignHorizontalSpaceAround:Xy,LucideAlignHorizontalSpaceBetween:Zy,LucideAlignJustify:hd,LucideAlignLeft:Zo,LucideAlignRight:Li,LucideAlignStartHorizontal:Yy,LucideAlignStartVertical:Qy,LucideAlignVerticalDistributeCenter:Jy,LucideAlignVerticalDistributeEnd:em,LucideAlignVerticalDistributeStart:tm,LucideAlignVerticalJustifyCenter:nm,LucideAlignVerticalJustifyEnd:om,LucideAlignVerticalJustifyStart:rm,LucideAlignVerticalSpaceAround:am,LucideAlignVerticalSpaceBetween:im,LucideAmbulance:sm,LucideAmpersand:cm,LucideAmpersands:lm,LucideAmphora:dm,LucideAnchor:um,LucideAngry:hm,LucideAnnoyed:fm,LucideAntenna:pm,LucideAnvil:ym,LucideAperture:mm,LucideAppWindow:km,LucideAppWindowMac:gm,LucideApple:vm,LucideArchive:Mm,LucideArchiveRestore:xm,LucideArchiveX:wm,LucideAreaChart:Xs,LucideArmchair:bm,LucideArrowBigDown:Cm,LucideArrowBigDownDash:_m,LucideArrowBigLeft:Lm,LucideArrowBigLeftDash:Sm,LucideArrowBigRight:Im,LucideArrowBigRightDash:Nm,LucideArrowBigUp:Em,LucideArrowBigUpDash:Am,LucideArrowDown:Fm,LucideArrowDown01:jm,LucideArrowDown10:$m,LucideArrowDownAZ:zs,LucideArrowDownAz:zs,LucideArrowDownCircle:lc,LucideArrowDownFromLine:Pm,LucideArrowDownLeft:Rm,LucideArrowDownLeftFromCircle:dc,LucideArrowDownLeftFromSquare:k1,LucideArrowDownLeftSquare:p1,LucideArrowDownNarrowWide:zm,LucideArrowDownRight:Dm,LucideArrowDownRightFromCircle:hc,LucideArrowDownRightFromSquare:v1,LucideArrowDownRightSquare:y1,LucideArrowDownSquare:m1,LucideArrowDownToDot:Tm,LucideArrowDownToLine:Hm,LucideArrowDownUp:Om,LucideArrowDownWideNarrow:Rs,LucideArrowDownZA:Ts,LucideArrowDownZa:Ts,LucideArrowLeft:Bm,LucideArrowLeftCircle:uc,LucideArrowLeftFromLine:qm,LucideArrowLeftRight:d2,LucideArrowLeftSquare:g1,LucideArrowLeftToLine:Vm,LucideArrowRight:y0,LucideArrowRightCircle:yc,LucideArrowRightFromLine:Um,LucideArrowRightLeft:Wm,LucideArrowRightSquare:M1,LucideArrowRightToLine:Gm,LucideArrowUp:og,LucideArrowUp01:Km,LucideArrowUp10:Xm,LucideArrowUpAZ:Ds,LucideArrowUpAz:Ds,LucideArrowUpCircle:mc,LucideArrowUpDown:Zm,LucideArrowUpFromDot:Ym,LucideArrowUpFromLine:Qm,LucideArrowUpLeft:Jm,LucideArrowUpLeftFromCircle:fc,LucideArrowUpLeftFromSquare:x1,LucideArrowUpLeftSquare:b1,LucideArrowUpNarrowWide:Hs,LucideArrowUpRight:tg,LucideArrowUpRightFromCircle:pc,LucideArrowUpRightFromSquare:w1,LucideArrowUpRightSquare:S1,LucideArrowUpSquare:_1,LucideArrowUpToLine:eg,LucideArrowUpWideNarrow:ng,LucideArrowUpZA:Os,LucideArrowUpZa:Os,LucideArrowsUpFromLine:rg,LucideAsterisk:ag,LucideAsteriskSquare:C1,LucideAtSign:ig,LucideAtom:sg,LucideAudioLines:cg,LucideAudioWaveform:dg,LucideAward:lg,LucideAxe:ug,LucideAxis3D:Fs,LucideAxis3d:Fs,LucideBaby:hg,LucideBackpack:fg,LucideBadge:Ig,LucideBadgeAlert:yg,LucideBadgeCent:pg,LucideBadgeCheck:qs,LucideBadgeDollarSign:mg,LucideBadgeEuro:kg,LucideBadgeHelp:Vs,LucideBadgeIndianRupee:gg,LucideBadgeInfo:vg,LucideBadgeJapaneseYen:xg,LucideBadgeMinus:wg,LucideBadgePercent:Mg,LucideBadgePlus:bg,LucideBadgePoundSterling:_g,LucideBadgeQuestionMark:Vs,LucideBadgeRussianRuble:Cg,LucideBadgeSwissFranc:Sg,LucideBadgeTurkishLira:Lg,LucideBadgeX:Ng,LucideBaggageClaim:Ag,LucideBalloon:Eg,LucideBan:u2,LucideBanana:jg,LucideBandage:$g,LucideBanknote:Tg,LucideBanknoteArrowDown:Pg,LucideBanknoteArrowUp:zg,LucideBanknoteX:Rg,LucideBarChart:oc,LucideBarChart2:rc,LucideBarChart3:tc,LucideBarChart4:ec,LucideBarChartBig:Js,LucideBarChartHorizontal:Ys,LucideBarChartHorizontalBig:Zs,LucideBarcode:Dg,LucideBarrel:Hg,LucideBaseline:Og,LucideBath:Fg,LucideBattery:Kg,LucideBatteryCharging:qg,LucideBatteryFull:Vg,LucideBatteryLow:Bg,LucideBatteryMedium:Ug,LucideBatteryPlus:Wg,LucideBatteryWarning:Gg,LucideBeaker:Xg,LucideBean:Yg,LucideBeanOff:Zg,LucideBed:ek,LucideBedDouble:Qg,LucideBedSingle:Jg,LucideBeef:tk,LucideBeer:ok,LucideBeerOff:nk,LucideBell:dk,LucideBellDot:rk,LucideBellElectric:ak,LucideBellMinus:ik,LucideBellOff:sk,LucideBellPlus:ck,LucideBellRing:lk,LucideBetweenHorizonalEnd:Bs,LucideBetweenHorizonalStart:Us,LucideBetweenHorizontalEnd:Bs,LucideBetweenHorizontalStart:Us,LucideBetweenVerticalEnd:uk,LucideBetweenVerticalStart:hk,LucideBicepsFlexed:fk,LucideBike:pk,LucideBinary:yk,LucideBinoculars:mk,LucideBiohazard:gk,LucideBird:kk,LucideBirdhouse:vk,LucideBitcoin:xk,LucideBlend:wk,LucideBlinds:Mk,LucideBlocks:bk,LucideBluetooth:Lk,LucideBluetoothConnected:_k,LucideBluetoothOff:Ck,LucideBluetoothSearching:Sk,LucideBold:Nk,LucideBolt:Ik,LucideBomb:Ak,LucideBone:Ek,LucideBook:n4,LucideBookA:jk,LucideBookAlert:$k,LucideBookAudio:Pk,LucideBookCheck:zk,LucideBookCopy:Rk,LucideBookDashed:Ws,LucideBookDown:Tk,LucideBookHeadphones:Dk,LucideBookHeart:Hk,LucideBookImage:Ok,LucideBookKey:Fk,LucideBookLock:qk,LucideBookMarked:Vk,LucideBookMinus:Bk,LucideBookOpen:Gk,LucideBookOpenCheck:Uk,LucideBookOpenText:Wk,LucideBookPlus:Kk,LucideBookSearch:Xk,LucideBookTemplate:Ws,LucideBookText:Zk,LucideBookType:Yk,LucideBookUp:Jk,LucideBookUp2:Qk,LucideBookUser:e4,LucideBookX:t4,LucideBookmark:s4,LucideBookmarkCheck:o4,LucideBookmarkMinus:r4,LucideBookmarkPlus:a4,LucideBookmarkX:i4,LucideBoomBox:c4,LucideBot:d4,LucideBotMessageSquare:l4,LucideBotOff:u4,LucideBottleWine:h4,LucideBowArrow:f4,LucideBox:p4,LucideBoxSelect:T1,LucideBoxes:y4,LucideBraces:Gs,LucideBrackets:m4,LucideBrain:v4,LucideBrainCircuit:g4,LucideBrainCog:k4,LucideBrickWall:M4,LucideBrickWallFire:x4,LucideBrickWallShield:w4,LucideBriefcase:S4,LucideBriefcaseBusiness:b4,LucideBriefcaseConveyorBelt:_4,LucideBriefcaseMedical:C4,LucideBringToFront:L4,LucideBrush:A4,LucideBrushCleaning:N4,LucideBubbles:I4,LucideBug:$4,LucideBugOff:E4,LucideBugPlay:j4,LucideBuilding:P4,LucideBuilding2:z4,LucideBus:T4,LucideBusFront:R4,LucideCable:H4,LucideCableCar:D4,LucideCake:F4,LucideCakeSlice:O4,LucideCalculator:q4,LucideCalendar:l5,LucideCalendar1:V4,LucideCalendarArrowDown:B4,LucideCalendarArrowUp:U4,LucideCalendarCheck:G4,LucideCalendarCheck2:W4,LucideCalendarClock:K4,LucideCalendarCog:X4,LucideCalendarDays:Z4,LucideCalendarFold:Y4,LucideCalendarHeart:Q4,LucideCalendarMinus:e5,LucideCalendarMinus2:J4,LucideCalendarOff:t5,LucideCalendarPlus:r5,LucideCalendarPlus2:n5,LucideCalendarRange:o5,LucideCalendarSearch:a5,LucideCalendarSync:i5,LucideCalendarX:c5,LucideCalendarX2:s5,LucideCalendars:d5,LucideCamera:h5,LucideCameraOff:u5,LucideCandlestickChart:Qs,LucideCandy:y5,LucideCandyCane:f5,LucideCandyOff:p5,LucideCannabis:g5,LucideCannabisOff:m5,LucideCaptions:Ks,LucideCaptionsOff:k5,LucideCar:w5,LucideCarFront:v5,LucideCarTaxiFront:x5,LucideCaravan:M5,LucideCardSim:b5,LucideCarrot:_5,LucideCaseLower:C5,LucideCaseSensitive:S5,LucideCaseUpper:L5,LucideCassetteTape:N5,LucideCast:I5,LucideCastle:A5,LucideCat:E5,LucideCctv:j5,LucideChartArea:Xs,LucideChartBar:Ys,LucideChartBarBig:Zs,LucideChartBarDecreasing:$5,LucideChartBarIncreasing:P5,LucideChartBarStacked:z5,LucideChartCandlestick:Qs,LucideChartColumn:tc,LucideChartColumnBig:Js,LucideChartColumnDecreasing:R5,LucideChartColumnIncreasing:ec,LucideChartColumnStacked:T5,LucideChartGantt:D5,LucideChartLine:nc,LucideChartNetwork:H5,LucideChartNoAxesColumn:rc,LucideChartNoAxesColumnDecreasing:O5,LucideChartNoAxesColumnIncreasing:oc,LucideChartNoAxesCombined:F5,LucideChartNoAxesGantt:ac,LucideChartPie:ic,LucideChartScatter:sc,LucideChartSpline:q5,LucideCheck:Bi,LucideCheckCheck:V5,LucideCheckCircle:gc,LucideCheckCircle2:_i,LucideCheckLine:B5,LucideCheckSquare:N1,LucideCheckSquare2:I1,LucideChefHat:U5,LucideCherry:W5,LucideChessBishop:G5,LucideChessKing:K5,LucideChessKnight:X5,LucideChessPawn:Z5,LucideChessQueen:Y5,LucideChessRook:J5,LucideChevronDown:Q5,LucideChevronDownCircle:kc,LucideChevronDownSquare:A1,LucideChevronFirst:ev,LucideChevronLast:tv,LucideChevronLeft:nv,LucideChevronLeftCircle:vc,LucideChevronLeftSquare:E1,LucideChevronRight:ov,LucideChevronRightCircle:xc,LucideChevronRightSquare:$1,LucideChevronUp:rv,LucideChevronUpCircle:wc,LucideChevronUpSquare:j1,LucideChevronsDown:iv,LucideChevronsDownUp:av,LucideChevronsLeft:lv,LucideChevronsLeftRight:cv,LucideChevronsLeftRightEllipsis:sv,LucideChevronsRight:uv,LucideChevronsRightLeft:dv,LucideChevronsUp:fv,LucideChevronsUpDown:hv,LucideChrome:cc,LucideChromium:cc,LucideChurch:pv,LucideCigarette:mv,LucideCigaretteOff:yv,LucideCircle:m0,LucideCircleAlert:bi,LucideCircleArrowDown:lc,LucideCircleArrowLeft:uc,LucideCircleArrowOutDownLeft:dc,LucideCircleArrowOutDownRight:hc,LucideCircleArrowOutUpLeft:fc,LucideCircleArrowOutUpRight:pc,LucideCircleArrowRight:yc,LucideCircleArrowUp:mc,LucideCircleCheck:_i,LucideCircleCheckBig:gc,LucideCircleChevronDown:kc,LucideCircleChevronLeft:vc,LucideCircleChevronRight:xc,LucideCircleChevronUp:wc,LucideCircleDashed:gv,LucideCircleDivide:Mc,LucideCircleDollarSign:kv,LucideCircleDot:xv,LucideCircleDotDashed:vv,LucideCircleEllipsis:wv,LucideCircleEqual:Mv,LucideCircleFadingArrowUp:bv,LucideCircleFadingPlus:_v,LucideCircleGauge:bc,LucideCircleHelp:Xo,LucideCircleMinus:_c,LucideCircleOff:Cv,LucideCircleParking:Sc,LucideCircleParkingOff:Cc,LucideCirclePause:Lc,LucideCirclePercent:Nc,LucideCirclePile:Sv,LucideCirclePlay:Ic,LucideCirclePlus:Ac,LucideCirclePoundSterling:Lv,LucideCirclePower:Ec,LucideCircleQuestionMark:Xo,LucideCircleSlash:Nv,LucideCircleSlash2:jc,LucideCircleSlashed:jc,LucideCircleSmall:Iv,LucideCircleStar:Av,LucideCircleStop:Pc,LucideCircleUser:zc,LucideCircleUserRound:$c,LucideCircleX:Rc,LucideCircuitBoard:Ev,LucideCitrus:jv,LucideClapperboard:$v,LucideClipboard:Vv,LucideClipboardCheck:Pv,LucideClipboardClock:zv,LucideClipboardCopy:Rv,LucideClipboardEdit:Dc,LucideClipboardList:Tv,LucideClipboardMinus:Dv,LucideClipboardPaste:Hv,LucideClipboardPen:Dc,LucideClipboardPenLine:Tc,LucideClipboardPlus:Ov,LucideClipboardSignature:Tc,LucideClipboardType:Fv,LucideClipboardX:qv,LucideClock:cx,LucideClock1:Bv,LucideClock10:Uv,LucideClock11:Wv,LucideClock12:Gv,LucideClock2:Kv,LucideClock3:Xv,LucideClock4:Zv,LucideClock5:Yv,LucideClock6:Qv,LucideClock7:Jv,LucideClock8:ex,LucideClock9:tx,LucideClockAlert:nx,LucideClockArrowDown:ox,LucideClockArrowUp:ix,LucideClockCheck:rx,LucideClockFading:ax,LucideClockPlus:sx,LucideClosedCaption:lx,LucideCloud:h2,LucideCloudAlert:dx,LucideCloudBackup:ux,LucideCloudCheck:hx,LucideCloudCog:fx,LucideCloudDownload:Hc,LucideCloudDrizzle:px,LucideCloudFog:yx,LucideCloudHail:mx,LucideCloudLightning:gx,LucideCloudMoon:vx,LucideCloudMoonRain:kx,LucideCloudOff:xx,LucideCloudRain:Mx,LucideCloudRainWind:wx,LucideCloudSnow:bx,LucideCloudSun:Cx,LucideCloudSunRain:_x,LucideCloudSync:Sx,LucideCloudUpload:Oc,LucideCloudy:Lx,LucideClover:Nx,LucideClub:Ix,LucideCode:Ax,LucideCode2:Fc,LucideCodeSquare:P1,LucideCodeXml:Fc,LucideCodepen:Ex,LucideCodesandbox:jx,LucideCoffee:$x,LucideCog:Px,LucideCoins:zx,LucideColumns:qc,LucideColumns2:qc,LucideColumns3:Ci,LucideColumns3Cog:$r,LucideColumns4:Rx,LucideColumnsSettings:$r,LucideCombine:Tx,LucideCommand:Dx,LucideCompass:Hx,LucideComponent:Ox,LucideComputer:Fx,LucideConciergeBell:qx,LucideCone:Vx,LucideConstruction:Bx,LucideContact:Ux,LucideContact2:Vc,LucideContactRound:Vc,LucideContainer:Wx,LucideContrast:Gx,LucideCookie:Kx,LucideCookingPot:Xx,LucideCopy:t3,LucideCopyCheck:Zx,LucideCopyMinus:Yx,LucideCopyPlus:Qx,LucideCopySlash:Jx,LucideCopyX:e3,LucideCopyleft:o3,LucideCopyright:n3,LucideCornerDownLeft:r3,LucideCornerDownRight:a3,LucideCornerLeftDown:i3,LucideCornerLeftUp:s3,LucideCornerRightDown:l3,LucideCornerRightUp:c3,LucideCornerUpLeft:u3,LucideCornerUpRight:d3,LucideCpu:h3,LucideCreativeCommons:f3,LucideCreditCard:p3,LucideCroissant:y3,LucideCrop:m3,LucideCross:g3,LucideCrosshair:k3,LucideCrown:v3,LucideCuboid:x3,LucideCupSoda:w3,LucideCurlyBraces:Gs,LucideCurrency:M3,LucideCylinder:b3,LucideDam:_3,LucideDatabase:f2,LucideDatabaseBackup:C3,LucideDatabaseSearch:S3,LucideDatabaseZap:L3,LucideDecimalsArrowLeft:N3,LucideDecimalsArrowRight:I3,LucideDelete:A3,LucideDessert:E3,LucideDiameter:j3,LucideDiamond:g0,LucideDiamondMinus:$3,LucideDiamondPercent:Bc,LucideDiamondPlus:P3,LucideDice1:z3,LucideDice2:T3,LucideDice3:R3,LucideDice4:D3,LucideDice5:H3,LucideDice6:O3,LucideDices:F3,LucideDiff:q3,LucideDisc:W3,LucideDisc2:V3,LucideDisc3:U3,LucideDiscAlbum:B3,LucideDivide:G3,LucideDivideCircle:Mc,LucideDivideSquare:D1,LucideDna:X3,LucideDnaOff:K3,LucideDock:Z3,LucideDog:Y3,LucideDollarSign:Q3,LucideDonut:J3,LucideDoorClosed:t8,LucideDoorClosedLocked:e8,LucideDoorOpen:n8,LucideDot:o8,LucideDotSquare:H1,LucideDownload:k0,LucideDownloadCloud:Hc,LucideDraftingCompass:r8,LucideDrama:a8,LucideDribbble:i8,LucideDrill:s8,LucideDrone:c8,LucideDroplet:d8,LucideDropletOff:l8,LucideDroplets:u8,LucideDrum:h8,LucideDrumstick:f8,LucideDumbbell:p8,LucideEar:y8,LucideEarOff:m8,LucideEarth:Uc,LucideEarthLock:g8,LucideEclipse:k8,LucideEdit:so,LucideEdit2:t1,LucideEdit3:e1,LucideEgg:w8,LucideEggFried:v8,LucideEggOff:x8,LucideEllipsis:Gc,LucideEllipsisVertical:Wc,LucideEqual:_8,LucideEqualApproximately:M8,LucideEqualNot:b8,LucideEqualSquare:O1,LucideEraser:C8,LucideEthernetPort:S8,LucideEuro:L8,LucideEvCharger:N8,LucideExpand:I8,LucideExternalLink:p2,LucideEye:j8,LucideEyeClosed:A8,LucideEyeOff:E8,LucideFacebook:$8,LucideFactory:P8,LucideFan:R8,LucideFastForward:z8,LucideFeather:T8,LucideFence:D8,LucideFerrisWheel:H8,LucideFigma:O8,LucideFile:f6,LucideFileArchive:F8,LucideFileAudio:Pr,LucideFileAudio2:Pr,LucideFileAxis3D:Kc,LucideFileAxis3d:Kc,LucideFileBadge:Xc,LucideFileBadge2:Xc,LucideFileBarChart:Qc,LucideFileBarChart2:Jc,LucideFileBox:q8,LucideFileBraces:Yc,LucideFileBracesCorner:Zc,LucideFileChartColumn:Jc,LucideFileChartColumnIncreasing:Qc,LucideFileChartLine:el,LucideFileChartPie:tl,LucideFileCheck:V8,LucideFileCheck2:nl,LucideFileCheckCorner:nl,LucideFileClock:U8,LucideFileCode:B8,LucideFileCode2:ol,LucideFileCodeCorner:ol,LucideFileCog:rl,LucideFileCog2:rl,LucideFileDiff:W8,LucideFileDigit:G8,LucideFileDown:y2,LucideFileEdit:dl,LucideFileExclamationPoint:al,LucideFileHeadphone:Pr,LucideFileHeart:K8,LucideFileImage:X8,LucideFileInput:Z8,LucideFileJson:Yc,LucideFileJson2:Zc,LucideFileKey:il,LucideFileKey2:il,LucideFileLineChart:el,LucideFileLock:sl,LucideFileLock2:sl,LucideFileMinus:Y8,LucideFileMinus2:cl,LucideFileMinusCorner:cl,LucideFileMusic:J8,LucideFileOutput:Q8,LucideFilePen:dl,LucideFilePenLine:ll,LucideFilePieChart:tl,LucideFilePlay:ul,LucideFilePlus:e6,LucideFilePlus2:hl,LucideFilePlusCorner:hl,LucideFileQuestion:fl,LucideFileQuestionMark:fl,LucideFileScan:t6,LucideFileSearch:n6,LucideFileSearch2:pl,LucideFileSearchCorner:pl,LucideFileSignal:yl,LucideFileSignature:ll,LucideFileSliders:o6,LucideFileSpreadsheet:r6,LucideFileStack:a6,LucideFileSymlink:i6,LucideFileTerminal:s6,LucideFileText:m2,LucideFileType:c6,LucideFileType2:ml,LucideFileTypeCorner:ml,LucideFileUp:l6,LucideFileUser:d6,LucideFileVideo:ul,LucideFileVideo2:gl,LucideFileVideoCamera:gl,LucideFileVolume:u6,LucideFileVolume2:yl,LucideFileWarning:al,LucideFileX:h6,LucideFileX2:kl,LucideFileXCorner:kl,LucideFiles:p6,LucideFilm:y6,LucideFilter:bl,LucideFilterX:Ml,LucideFingerprint:vl,LucideFingerprintPattern:vl,LucideFireExtinguisher:m6,LucideFish:v6,LucideFishOff:g6,LucideFishSymbol:k6,LucideFishingHook:x6,LucideFlag:_6,LucideFlagOff:w6,LucideFlagTriangleLeft:M6,LucideFlagTriangleRight:b6,LucideFlame:S6,LucideFlameKindling:C6,LucideFlashlight:N6,LucideFlashlightOff:L6,LucideFlaskConical:E6,LucideFlaskConicalOff:I6,LucideFlaskRound:A6,LucideFlipHorizontal:$6,LucideFlipHorizontal2:j6,LucideFlipVertical:z6,LucideFlipVertical2:P6,LucideFlower:T6,LucideFlower2:R6,LucideFocus:D6,LucideFoldHorizontal:H6,LucideFoldVertical:O6,LucideFolder:fw,LucideFolderArchive:F6,LucideFolderCheck:q6,LucideFolderClock:V6,LucideFolderClosed:U6,LucideFolderCode:B6,LucideFolderCog:xl,LucideFolderCog2:xl,LucideFolderDot:W6,LucideFolderDown:G6,LucideFolderEdit:wl,LucideFolderGit:X6,LucideFolderGit2:K6,LucideFolderHeart:Z6,LucideFolderInput:Y6,LucideFolderKanban:Q6,LucideFolderKey:J6,LucideFolderLock:ew,LucideFolderMinus:tw,LucideFolderOpen:g2,LucideFolderOpenDot:nw,LucideFolderOutput:ow,LucideFolderPen:wl,LucideFolderPlus:rw,LucideFolderRoot:aw,LucideFolderSearch:sw,LucideFolderSearch2:iw,LucideFolderSymlink:cw,LucideFolderSync:lw,LucideFolderTree:dw,LucideFolderUp:uw,LucideFolderX:hw,LucideFolders:pw,LucideFootprints:yw,LucideForkKnife:Nd,LucideForkKnifeCrossed:Ld,LucideForklift:kw,LucideForm:mw,LucideFormInput:o1,LucideForward:gw,LucideFrame:vw,LucideFramer:Mw,LucideFrown:xw,LucideFuel:ww,LucideFullscreen:bw,LucideFunctionSquare:F1,LucideFunnel:bl,LucideFunnelPlus:_w,LucideFunnelX:Ml,LucideGalleryHorizontal:Sw,LucideGalleryHorizontalEnd:Cw,LucideGalleryThumbnails:Lw,LucideGalleryVertical:Iw,LucideGalleryVerticalEnd:Nw,LucideGamepad:$w,LucideGamepad2:Aw,LucideGamepadDirectional:Ew,LucideGanttChart:ac,LucideGanttChartSquare:Dr,LucideGauge:jw,LucideGaugeCircle:bc,LucideGavel:Pw,LucideGem:zw,LucideGeorgianLari:Rw,LucideGhost:Dw,LucideGift:Tw,LucideGitBranch:Fw,LucideGitBranchMinus:Hw,LucideGitBranchPlus:Ow,LucideGitCommit:_l,LucideGitCommitHorizontal:_l,LucideGitCommitVertical:qw,LucideGitCompare:Bw,LucideGitCompareArrows:Vw,LucideGitFork:Uw,LucideGitGraph:Ww,LucideGitMerge:Gw,LucideGitPullRequest:Jw,LucideGitPullRequestArrow:Kw,LucideGitPullRequestClosed:Xw,LucideGitPullRequestCreate:Yw,LucideGitPullRequestCreateArrow:Zw,LucideGitPullRequestDraft:Qw,LucideGithub:e7,LucideGitlab:t7,LucideGlassWater:n7,LucideGlasses:o7,LucideGlobe:i7,LucideGlobe2:Uc,LucideGlobeLock:r7,LucideGlobeX:a7,LucideGoal:s7,LucideGpu:c7,LucideGrab:Il,LucideGraduationCap:l7,LucideGrape:d7,LucideGrid:zr,LucideGrid2X2:Nl,LucideGrid2X2Check:Cl,LucideGrid2X2Plus:Sl,LucideGrid2X2X:Ll,LucideGrid2x2:Nl,LucideGrid2x2Check:Cl,LucideGrid2x2Plus:Sl,LucideGrid2x2X:Ll,LucideGrid3X3:zr,LucideGrid3x2:u7,LucideGrid3x3:zr,LucideGrip:f7,LucideGripHorizontal:h7,LucideGripVertical:p7,LucideGroup:y7,LucideGuitar:m7,LucideHam:g7,LucideHamburger:k7,LucideHammer:v7,LucideHand:k2,LucideHandCoins:x7,LucideHandFist:w7,LucideHandGrab:Il,LucideHandHeart:M7,LucideHandHelping:Al,LucideHandMetal:b7,LucideHandPlatter:_7,LucideHandbag:C7,LucideHandshake:S7,LucideHardDrive:I7,LucideHardDriveDownload:L7,LucideHardDriveUpload:N7,LucideHardHat:A7,LucideHash:E7,LucideHatGlasses:j7,LucideHaze:$7,LucideHd:P7,LucideHdmiPort:z7,LucideHeading:q7,LucideHeading1:R7,LucideHeading2:T7,LucideHeading3:D7,LucideHeading4:H7,LucideHeading5:O7,LucideHeading6:F7,LucideHeadphoneOff:V7,LucideHeadphones:B7,LucideHeadset:U7,LucideHeart:Q7,LucideHeartCrack:W7,LucideHeartHandshake:K7,LucideHeartMinus:G7,LucideHeartOff:X7,LucideHeartPlus:Z7,LucideHeartPulse:Y7,LucideHeater:J7,LucideHelicopter:eM,LucideHelpCircle:Xo,LucideHelpingHand:Al,LucideHexagon:v2,LucideHighlighter:tM,LucideHistory:nM,LucideHome:El,LucideHop:oM,LucideHopOff:rM,LucideHospital:aM,LucideHotel:iM,LucideHourglass:sM,LucideHouse:El,LucideHouseHeart:cM,LucideHousePlug:lM,LucideHousePlus:dM,LucideHouseWifi:uM,LucideIceCream:$l,LucideIceCream2:jl,LucideIceCreamBowl:jl,LucideIceCreamCone:$l,LucideIdCard:fM,LucideIdCardLanyard:hM,LucideImage:w2,LucideImageDown:pM,LucideImageMinus:mM,LucideImageOff:yM,LucideImagePlay:gM,LucideImagePlus:x2,LucideImageUp:kM,LucideImageUpscale:vM,LucideImages:xM,LucideImport:wM,LucideInbox:MM,LucideIndent:Tr,LucideIndentDecrease:Rr,LucideIndentIncrease:Tr,LucideIndianRupee:bM,LucideInfinity:CM,LucideInfo:_M,LucideInspect:G1,LucideInspectionPanel:SM,LucideInstagram:LM,LucideItalic:NM,LucideIterationCcw:IM,LucideIterationCw:AM,LucideJapaneseYen:EM,LucideJoystick:jM,LucideKanban:$M,LucideKanbanSquare:q1,LucideKanbanSquareDashed:z1,LucideKayak:PM,LucideKey:TM,LucideKeyRound:zM,LucideKeySquare:RM,LucideKeyboard:OM,LucideKeyboardMusic:DM,LucideKeyboardOff:HM,LucideLamp:WM,LucideLampCeiling:FM,LucideLampDesk:qM,LucideLampFloor:VM,LucideLampWallDown:BM,LucideLampWallUp:UM,LucideLandPlot:GM,LucideLandmark:KM,LucideLanguages:XM,LucideLaptop:QM,LucideLaptop2:Pl,LucideLaptopMinimal:Pl,LucideLaptopMinimalCheck:ZM,LucideLasso:JM,LucideLassoSelect:YM,LucideLaugh:eb,LucideLayers:Pa,LucideLayers2:tb,LucideLayers3:Pa,LucideLayersPlus:nb,LucideLayout:Jl,LucideLayoutDashboard:M2,LucideLayoutGrid:ob,LucideLayoutList:rb,LucideLayoutPanelLeft:ab,LucideLayoutPanelTop:sb,LucideLayoutTemplate:ib,LucideLeaf:cb,LucideLeafyGreen:lb,LucideLectern:db,LucideLetterText:fd,LucideLibrary:hb,LucideLibraryBig:ub,LucideLibrarySquare:V1,LucideLifeBuoy:fb,LucideLigature:pb,LucideLightbulb:mb,LucideLightbulbOff:yb,LucideLineChart:nc,LucideLineSquiggle:gb,LucideLink:vb,LucideLink2:Ui,LucideLink2Off:kb,LucideLinkedin:xb,LucideList:Hb,LucideListCheck:wb,LucideListChecks:Mb,LucideListChevronsDownUp:bb,LucideListChevronsUpDown:Cb,LucideListCollapse:_b,LucideListEnd:Sb,LucideListFilter:Nb,LucideListFilterPlus:Lb,LucideListIndentDecrease:Rr,LucideListIndentIncrease:Tr,LucideListMinus:Ib,LucideListMusic:Ab,LucideListOrdered:Eb,LucideListPlus:jb,LucideListRestart:$b,LucideListStart:Pb,LucideListTodo:zb,LucideListTree:Rb,LucideListVideo:Tb,LucideListX:Db,LucideLoader:Fb,LucideLoader2:Wn,LucideLoaderCircle:Wn,LucideLoaderPinwheel:Ob,LucideLocate:Bb,LucideLocateFixed:qb,LucideLocateOff:Vb,LucideLocationEdit:Dl,LucideLock:Wb,LucideLockKeyhole:Ub,LucideLockKeyholeOpen:zl,LucideLockOpen:Rl,LucideLogIn:Gb,LucideLogOut:Kb,LucideLogs:Xb,LucideLollipop:Zb,LucideLuggage:Yb,LucideMSquare:B1,LucideMagnet:Qb,LucideMail:i9,LucideMailCheck:Jb,LucideMailMinus:e9,LucideMailOpen:t9,LucideMailPlus:n9,LucideMailQuestion:Tl,LucideMailQuestionMark:Tl,LucideMailSearch:o9,LucideMailWarning:r9,LucideMailX:a9,LucideMailbox:c9,LucideMails:s9,LucideMap:b9,LucideMapMinus:l9,LucideMapPin:x9,LucideMapPinCheck:u9,LucideMapPinCheckInside:d9,LucideMapPinHouse:h9,LucideMapPinMinus:p9,LucideMapPinMinusInside:f9,LucideMapPinOff:y9,LucideMapPinPen:Dl,LucideMapPinPlus:g9,LucideMapPinPlusInside:m9,LucideMapPinX:k9,LucideMapPinXInside:v9,LucideMapPinned:w9,LucideMapPlus:M9,LucideMars:C9,LucideMarsStroke:_9,LucideMartini:S9,LucideMaximize:L9,LucideMaximize2:Od,LucideMedal:N9,LucideMegaphone:A9,LucideMegaphoneOff:I9,LucideMeh:E9,LucideMemoryStick:j9,LucideMenu:P9,LucideMenuSquare:U1,LucideMerge:$9,LucideMessageCircle:B9,LucideMessageCircleCode:z9,LucideMessageCircleDashed:R9,LucideMessageCircleHeart:T9,LucideMessageCircleMore:D9,LucideMessageCircleOff:H9,LucideMessageCirclePlus:O9,LucideMessageCircleQuestion:Hl,LucideMessageCircleQuestionMark:Hl,LucideMessageCircleReply:F9,LucideMessageCircleWarning:q9,LucideMessageCircleX:V9,LucideMessageSquare:i_,LucideMessageSquareCode:U9,LucideMessageSquareDashed:W9,LucideMessageSquareDiff:G9,LucideMessageSquareDot:K9,LucideMessageSquareHeart:X9,LucideMessageSquareLock:Z9,LucideMessageSquareMore:Y9,LucideMessageSquareOff:Q9,LucideMessageSquarePlus:J9,LucideMessageSquareQuote:e_,LucideMessageSquareReply:t_,LucideMessageSquareShare:n_,LucideMessageSquareText:o_,LucideMessageSquareWarning:r_,LucideMessageSquareX:a_,LucideMessagesSquare:s_,LucideMic:l_,LucideMic2:Ol,LucideMicOff:c_,LucideMicVocal:Ol,LucideMicrochip:d_,LucideMicroscope:u_,LucideMicrowave:h_,LucideMilestone:f_,LucideMilk:y_,LucideMilkOff:p_,LucideMinimize:g_,LucideMinimize2:m_,LucideMinus:b2,LucideMinusCircle:_c,LucideMinusSquare:W1,LucideMonitor:E_,LucideMonitorCheck:k_,LucideMonitorCloud:v_,LucideMonitorCog:x_,LucideMonitorDot:w_,LucideMonitorDown:M_,LucideMonitorOff:b_,LucideMonitorPause:__,LucideMonitorPlay:C_,LucideMonitorSmartphone:S_,LucideMonitorSpeaker:L_,LucideMonitorStop:N_,LucideMonitorUp:I_,LucideMonitorX:A_,LucideMoon:$_,LucideMoonStar:j_,LucideMoreHorizontal:Gc,LucideMoreVertical:Wc,LucideMotorbike:P_,LucideMountain:R_,LucideMountainSnow:z_,LucideMouse:q_,LucideMouseOff:T_,LucideMousePointer:F_,LucideMousePointer2:_2,LucideMousePointer2Off:D_,LucideMousePointerBan:H_,LucideMousePointerClick:O_,LucideMousePointerSquareDashed:R1,LucideMove:eC,LucideMove3D:Fl,LucideMove3d:Fl,LucideMoveDiagonal:B_,LucideMoveDiagonal2:V_,LucideMoveDown:G_,LucideMoveDownLeft:U_,LucideMoveDownRight:W_,LucideMoveHorizontal:K_,LucideMoveLeft:C2,LucideMoveRight:X_,LucideMoveUp:Q_,LucideMoveUpLeft:Z_,LucideMoveUpRight:Y_,LucideMoveVertical:J_,LucideMusic:rC,LucideMusic2:tC,LucideMusic3:nC,LucideMusic4:oC,LucideNavigation:cC,LucideNavigation2:iC,LucideNavigation2Off:aC,LucideNavigationOff:sC,LucideNetwork:lC,LucideNewspaper:dC,LucideNfc:uC,LucideNonBinary:hC,LucideNotebook:mC,LucideNotebookPen:fC,LucideNotebookTabs:pC,LucideNotebookText:yC,LucideNotepadText:kC,LucideNotepadTextDashed:gC,LucideNut:vC,LucideNutOff:xC,LucideOctagon:MC,LucideOctagonAlert:ql,LucideOctagonMinus:wC,LucideOctagonPause:Vl,LucideOctagonX:Bl,LucideOmega:bC,LucideOption:CC,LucideOrbit:_C,LucideOrigami:SC,LucideOutdent:Rr,LucidePackage:PC,LucidePackage2:LC,LucidePackageCheck:NC,LucidePackageMinus:IC,LucidePackageOpen:AC,LucidePackagePlus:EC,LucidePackageSearch:jC,LucidePackageX:$C,LucidePaintBucket:zC,LucidePaintRoller:RC,LucidePaintbrush:TC,LucidePaintbrush2:Ul,LucidePaintbrushVertical:Ul,LucidePalette:DC,LucidePalmtree:gd,LucidePanda:HC,LucidePanelBottom:FC,LucidePanelBottomClose:OC,LucidePanelBottomDashed:Wl,LucidePanelBottomInactive:Wl,LucidePanelBottomOpen:qC,LucidePanelLeft:Zl,LucidePanelLeftClose:Gl,LucidePanelLeftDashed:Kl,LucidePanelLeftInactive:Kl,LucidePanelLeftOpen:Xl,LucidePanelLeftRightDashed:VC,LucidePanelRight:BC,LucidePanelRightClose:v0,LucidePanelRightDashed:Yl,LucidePanelRightInactive:Yl,LucidePanelRightOpen:S2,LucidePanelTop:KC,LucidePanelTopBottomDashed:UC,LucidePanelTopClose:WC,LucidePanelTopDashed:Ql,LucidePanelTopInactive:Ql,LucidePanelTopOpen:GC,LucidePanelsLeftBottom:XC,LucidePanelsLeftRight:Ci,LucidePanelsRightBottom:ZC,LucidePanelsTopBottom:i1,LucidePanelsTopLeft:Jl,LucidePaperclip:YC,LucideParentheses:JC,LucideParkingCircle:Sc,LucideParkingCircleOff:Cc,LucideParkingMeter:QC,LucideParkingSquare:X1,LucideParkingSquareOff:K1,LucidePartyPopper:eS,LucidePause:tS,LucidePauseCircle:Lc,LucidePauseOctagon:Vl,LucidePawPrint:nS,LucidePcCase:oS,LucidePen:t1,LucidePenBox:so,LucidePenLine:e1,LucidePenOff:rS,LucidePenSquare:so,LucidePenTool:aS,LucidePencil:N2,LucidePencilLine:L2,LucidePencilOff:iS,LucidePencilRuler:sS,LucidePentagon:cS,LucidePercent:lS,LucidePercentCircle:Nc,LucidePercentDiamond:Bc,LucidePercentSquare:Z1,LucidePersonStanding:uS,LucidePhilippinePeso:dS,LucidePhone:kS,LucidePhoneCall:hS,LucidePhoneForwarded:fS,LucidePhoneIncoming:pS,LucidePhoneMissed:yS,LucidePhoneOff:mS,LucidePhoneOutgoing:gS,LucidePi:vS,LucidePiSquare:J1,LucidePiano:xS,LucidePickaxe:wS,LucidePictureInPicture:bS,LucidePictureInPicture2:MS,LucidePieChart:ic,LucidePiggyBank:_S,LucidePilcrow:LS,LucidePilcrowLeft:CS,LucidePilcrowRight:SS,LucidePilcrowSquare:Y1,LucidePill:IS,LucidePillBottle:NS,LucidePin:ES,LucidePinOff:AS,LucidePipette:jS,LucidePizza:$S,LucidePlane:RS,LucidePlaneLanding:PS,LucidePlaneTakeoff:zS,LucidePlay:Fd,LucidePlayCircle:Ic,LucidePlaySquare:Q1,LucidePlug:DS,LucidePlug2:TS,LucidePlugZap:n1,LucidePlugZap2:n1,LucidePlus:I2,LucidePlusCircle:Ac,LucidePlusSquare:ed,LucidePocket:OS,LucidePocketKnife:HS,LucidePodcast:qS,LucidePointer:VS,LucidePointerOff:FS,LucidePopcorn:BS,LucidePopsicle:US,LucidePoundSterling:WS,LucidePower:KS,LucidePowerCircle:Ec,LucidePowerOff:GS,LucidePowerSquare:td,LucidePresentation:XS,LucidePrinter:QS,LucidePrinterCheck:ZS,LucidePrinterX:YS,LucideProjector:eL,LucideProportions:JS,LucidePuzzle:tL,LucidePyramid:nL,LucideQrCode:oL,LucideQuote:rL,LucideRabbit:aL,LucideRadar:iL,LucideRadiation:sL,LucideRadical:cL,LucideRadio:uL,LucideRadioReceiver:lL,LucideRadioTower:dL,LucideRadius:hL,LucideRailSymbol:fL,LucideRainbow:pL,LucideRat:yL,LucideRatio:mL,LucideReceipt:SL,LucideReceiptCent:gL,LucideReceiptEuro:kL,LucideReceiptIndianRupee:vL,LucideReceiptJapaneseYen:xL,LucideReceiptPoundSterling:wL,LucideReceiptRussianRuble:ML,LucideReceiptSwissFranc:bL,LucideReceiptText:_L,LucideReceiptTurkishLira:CL,LucideRectangleCircle:LL,LucideRectangleEllipsis:o1,LucideRectangleGoggles:NL,LucideRectangleHorizontal:IL,LucideRectangleVertical:AL,LucideRecycle:EL,LucideRedo:PL,LucideRedo2:jL,LucideRedoDot:$L,LucideRefreshCcw:TL,LucideRefreshCcwDot:zL,LucideRefreshCw:DL,LucideRefreshCwOff:RL,LucideRefrigerator:HL,LucideRegex:OL,LucideRemoveFormatting:FL,LucideRepeat:BL,LucideRepeat1:VL,LucideRepeat2:qL,LucideReplace:WL,LucideReplaceAll:UL,LucideReply:KL,LucideReplyAll:GL,LucideRewind:XL,LucideRibbon:YL,LucideRocket:ZL,LucideRockingChair:QL,LucideRollerCoaster:JL,LucideRose:eN,LucideRotate3D:r1,LucideRotate3d:r1,LucideRotateCcw:oN,LucideRotateCcwKey:tN,LucideRotateCcwSquare:nN,LucideRotateCw:aN,LucideRotateCwSquare:rN,LucideRoute:sN,LucideRouteOff:iN,LucideRouter:cN,LucideRows:a1,LucideRows2:a1,LucideRows3:i1,LucideRows4:lN,LucideRss:dN,LucideRuler:hN,LucideRulerDimensionLine:uN,LucideRussianRuble:fN,LucideSailboat:pN,LucideSalad:yN,LucideSandwich:mN,LucideSatellite:kN,LucideSatelliteDish:gN,LucideSaudiRiyal:vN,LucideSave:MN,LucideSaveAll:xN,LucideSaveOff:wN,LucideScale:bN,LucideScale3D:s1,LucideScale3d:s1,LucideScaling:_N,LucideScan:$N,LucideScanBarcode:CN,LucideScanEye:SN,LucideScanFace:LN,LucideScanHeart:NN,LucideScanLine:IN,LucideScanQrCode:AN,LucideScanSearch:EN,LucideScanText:jN,LucideScatterChart:sc,LucideSchool:PN,LucideSchool2:vd,LucideScissors:TN,LucideScissorsLineDashed:zN,LucideScissorsSquare:nd,LucideScissorsSquareDashedBottom:L1,LucideScooter:RN,LucideScreenShare:HN,LucideScreenShareOff:DN,LucideScroll:FN,LucideScrollText:ON,LucideSearch:A2,LucideSearchAlert:qN,LucideSearchCheck:VN,LucideSearchCode:BN,LucideSearchSlash:UN,LucideSearchX:WN,LucideSection:GN,LucideSend:XN,LucideSendHorizonal:c1,LucideSendHorizontal:c1,LucideSendToBack:KN,LucideSeparatorHorizontal:YN,LucideSeparatorVertical:ZN,LucideServer:E2,LucideServerCog:QN,LucideServerCrash:JN,LucideServerOff:eI,LucideSettings:nI,LucideSettings2:tI,LucideShapes:j2,LucideShare:oI,LucideShare2:$2,LucideSheet:rI,LucideShell:aI,LucideShield:yI,LucideShieldAlert:iI,LucideShieldBan:sI,LucideShieldCheck:cI,LucideShieldClose:d1,LucideShieldEllipsis:lI,LucideShieldHalf:dI,LucideShieldMinus:uI,LucideShieldOff:hI,LucideShieldPlus:fI,LucideShieldQuestion:l1,LucideShieldQuestionMark:l1,LucideShieldUser:pI,LucideShieldX:d1,LucideShip:kI,LucideShipWheel:mI,LucideShirt:gI,LucideShoppingBag:xI,LucideShoppingBasket:vI,LucideShoppingCart:wI,LucideShovel:MI,LucideShowerHead:bI,LucideShredder:_I,LucideShrimp:CI,LucideShrink:SI,LucideShrub:LI,LucideShuffle:NI,LucideSidebar:Zl,LucideSidebarClose:Gl,LucideSidebarOpen:Xl,LucideSigma:II,LucideSigmaSquare:od,LucideSignal:PI,LucideSignalHigh:AI,LucideSignalLow:EI,LucideSignalMedium:jI,LucideSignalZero:$I,LucideSignature:zI,LucideSignpost:TI,LucideSignpostBig:RI,LucideSiren:DI,LucideSkipBack:HI,LucideSkipForward:OI,LucideSkull:FI,LucideSlack:qI,LucideSlash:VI,LucideSlashSquare:rd,LucideSlice:BI,LucideSliders:u1,LucideSlidersHorizontal:UI,LucideSlidersVertical:u1,LucideSmartphone:KI,LucideSmartphoneCharging:WI,LucideSmartphoneNfc:GI,LucideSmile:ZI,LucideSmilePlus:XI,LucideSnail:YI,LucideSnowflake:QI,LucideSoapDispenserDroplet:JI,LucideSofa:eA,LucideSolarPanel:tA,LucideSortAsc:Hs,LucideSortDesc:Rs,LucideSoup:nA,LucideSpace:oA,LucideSpade:rA,LucideSparkle:aA,LucideSparkles:h1,LucideSpeaker:iA,LucideSpeech:sA,LucideSpellCheck:lA,LucideSpellCheck2:cA,LucideSpline:dA,LucideSplinePointer:uA,LucideSplit:hA,LucideSplitSquareHorizontal:ad,LucideSplitSquareVertical:id,LucideSpool:fA,LucideSpotlight:pA,LucideSprayCan:yA,LucideSprout:mA,LucideSquare:x0,LucideSquareActivity:f1,LucideSquareArrowDown:m1,LucideSquareArrowDownLeft:p1,LucideSquareArrowDownRight:y1,LucideSquareArrowLeft:g1,LucideSquareArrowOutDownLeft:k1,LucideSquareArrowOutDownRight:v1,LucideSquareArrowOutUpLeft:x1,LucideSquareArrowOutUpRight:w1,LucideSquareArrowRight:M1,LucideSquareArrowUp:_1,LucideSquareArrowUpLeft:b1,LucideSquareArrowUpRight:S1,LucideSquareAsterisk:C1,LucideSquareBottomDashedScissors:L1,LucideSquareChartGantt:Dr,LucideSquareCheck:I1,LucideSquareCheckBig:N1,LucideSquareChevronDown:A1,LucideSquareChevronLeft:E1,LucideSquareChevronRight:$1,LucideSquareChevronUp:j1,LucideSquareCode:P1,LucideSquareDashed:T1,LucideSquareDashedBottom:kA,LucideSquareDashedBottomCode:gA,LucideSquareDashedKanban:z1,LucideSquareDashedMousePointer:R1,LucideSquareDashedTopSolid:vA,LucideSquareDivide:D1,LucideSquareDot:H1,LucideSquareEqual:O1,LucideSquareFunction:F1,LucideSquareGanttChart:Dr,LucideSquareKanban:q1,LucideSquareLibrary:V1,LucideSquareM:B1,LucideSquareMenu:U1,LucideSquareMinus:W1,LucideSquareMousePointer:G1,LucideSquareParking:X1,LucideSquareParkingOff:K1,LucideSquarePause:xA,LucideSquarePen:so,LucideSquarePercent:Z1,LucideSquarePi:J1,LucideSquarePilcrow:Y1,LucideSquarePlay:Q1,LucideSquarePlus:ed,LucideSquarePower:td,LucideSquareRadical:wA,LucideSquareRoundCorner:MA,LucideSquareScissors:nd,LucideSquareSigma:od,LucideSquareSlash:rd,LucideSquareSplitHorizontal:ad,LucideSquareSplitVertical:id,LucideSquareSquare:_A,LucideSquareStack:bA,LucideSquareStar:SA,LucideSquareStop:CA,LucideSquareTerminal:sd,LucideSquareUser:ld,LucideSquareUserRound:cd,LucideSquareX:dd,LucideSquaresExclude:LA,LucideSquaresIntersect:NA,LucideSquaresSubtract:IA,LucideSquaresUnite:AA,LucideSquircle:w0,LucideSquircleDashed:EA,LucideSquirrel:jA,LucideStamp:$A,LucideStar:RA,LucideStarHalf:PA,LucideStarOff:zA,LucideStars:h1,LucideStepBack:TA,LucideStepForward:DA,LucideStethoscope:HA,LucideSticker:M0,LucideStickyNote:P2,LucideStone:OA,LucideStopCircle:Pc,LucideStore:FA,LucideStretchHorizontal:VA,LucideStretchVertical:qA,LucideStrikethrough:BA,LucideSubscript:UA,LucideSubtitles:Ks,LucideSun:ZA,LucideSunDim:WA,LucideSunMedium:GA,LucideSunMoon:KA,LucideSunSnow:XA,LucideSunrise:YA,LucideSunset:QA,LucideSuperscript:JA,LucideSwatchBook:eE,LucideSwissFranc:tE,LucideSwitchCamera:nE,LucideSword:oE,LucideSwords:rE,LucideSyringe:aE,LucideTable:fE,LucideTable2:iE,LucideTableCellsMerge:sE,LucideTableCellsSplit:cE,LucideTableColumnsSplit:lE,LucideTableConfig:$r,LucideTableOfContents:dE,LucideTableProperties:uE,LucideTableRowsSplit:hE,LucideTablet:yE,LucideTabletSmartphone:pE,LucideTablets:mE,LucideTag:gE,LucideTags:kE,LucideTally1:vE,LucideTally2:xE,LucideTally3:wE,LucideTally4:ME,LucideTally5:bE,LucideTangent:_E,LucideTarget:CE,LucideTelescope:SE,LucideTent:NE,LucideTentTree:LE,LucideTerminal:IE,LucideTerminalSquare:sd,LucideTestTube:AE,LucideTestTube2:ud,LucideTestTubeDiagonal:ud,LucideTestTubes:EE,LucideText:Zo,LucideTextAlignCenter:Si,LucideTextAlignEnd:Li,LucideTextAlignJustify:hd,LucideTextAlignStart:Zo,LucideTextCursor:$E,LucideTextCursorInput:jE,LucideTextInitial:fd,LucideTextQuote:PE,LucideTextSearch:zE,LucideTextSelect:pd,LucideTextSelection:pd,LucideTextWrap:yd,LucideTheater:RE,LucideThermometer:HE,LucideThermometerSnowflake:TE,LucideThermometerSun:DE,LucideThumbsDown:OE,LucideThumbsUp:FE,LucideTicket:KE,LucideTicketCheck:qE,LucideTicketMinus:VE,LucideTicketPercent:BE,LucideTicketPlus:UE,LucideTicketSlash:WE,LucideTicketX:GE,LucideTickets:ZE,LucideTicketsPlane:XE,LucideTimer:JE,LucideTimerOff:YE,LucideTimerReset:QE,LucideToggleLeft:ej,LucideToggleRight:tj,LucideToilet:nj,LucideToolCase:rj,LucideToolbox:oj,LucideTornado:aj,LucideTorus:ij,LucideTouchpad:cj,LucideTouchpadOff:sj,LucideTowerControl:lj,LucideToyBrick:dj,LucideTractor:uj,LucideTrafficCone:hj,LucideTrain:md,LucideTrainFront:pj,LucideTrainFrontTunnel:fj,LucideTrainTrack:yj,LucideTramFront:md,LucideTransgender:mj,LucideTrash:gj,LucideTrash2:z2,LucideTreeDeciduous:kj,LucideTreePalm:gd,LucideTreePine:vj,LucideTrees:xj,LucideTrello:wj,LucideTrendingDown:Mj,LucideTrendingUp:_j,LucideTrendingUpDown:bj,LucideTriangle:R2,LucideTriangleAlert:qr,LucideTriangleDashed:Cj,LucideTriangleRight:Sj,LucideTrophy:Lj,LucideTruck:Ij,LucideTruckElectric:Nj,LucideTurkishLira:Aj,LucideTurntable:Ej,LucideTurtle:jj,LucideTv:Pj,LucideTv2:kd,LucideTvMinimal:kd,LucideTvMinimalPlay:$j,LucideTwitch:zj,LucideTwitter:Rj,LucideType:b0,LucideTypeOutline:Tj,LucideUmbrella:Hj,LucideUmbrellaOff:Dj,LucideUnderline:Oj,LucideUndo:Vj,LucideUndo2:Fj,LucideUndoDot:qj,LucideUnfoldHorizontal:Bj,LucideUnfoldVertical:Uj,LucideUngroup:Wj,LucideUniversity:vd,LucideUnlink:Kj,LucideUnlink2:Gj,LucideUnlock:Rl,LucideUnlockKeyhole:zl,LucideUnplug:Xj,LucideUpload:T2,LucideUploadCloud:Oc,LucideUsb:Zj,LucideUser:D2,LucideUser2:Cd,LucideUserCheck:Yj,LucideUserCheck2:xd,LucideUserCircle:zc,LucideUserCircle2:$c,LucideUserCog:Qj,LucideUserCog2:wd,LucideUserKey:Jj,LucideUserLock:e$,LucideUserMinus:t$,LucideUserMinus2:Md,LucideUserPen:n$,LucideUserPlus:o$,LucideUserPlus2:bd,LucideUserRound:Cd,LucideUserRoundCheck:xd,LucideUserRoundCog:wd,LucideUserRoundKey:r$,LucideUserRoundMinus:Md,LucideUserRoundPen:a$,LucideUserRoundPlus:bd,LucideUserRoundSearch:i$,LucideUserRoundX:_d,LucideUserSearch:s$,LucideUserSquare:ld,LucideUserSquare2:cd,LucideUserStar:c$,LucideUserX:l$,LucideUserX2:_d,LucideUsers:d$,LucideUsers2:Sd,LucideUsersRound:Sd,LucideUtensils:Nd,LucideUtensilsCrossed:Ld,LucideUtilityPole:u$,LucideVan:h$,LucideVariable:f$,LucideVault:p$,LucideVectorSquare:y$,LucideVegan:m$,LucideVenetianMask:g$,LucideVenus:v$,LucideVenusAndMars:k$,LucideVerified:qs,LucideVibrate:w$,LucideVibrateOff:x$,LucideVideo:b$,LucideVideoOff:M$,LucideVideotape:_$,LucideView:C$,LucideVoicemail:S$,LucideVolleyball:L$,LucideVolume:j$,LucideVolume1:N$,LucideVolume2:I$,LucideVolumeOff:A$,LucideVolumeX:E$,LucideVote:$$,LucideWallet:z$,LucideWallet2:Id,LucideWalletCards:P$,LucideWalletMinimal:Id,LucideWallpaper:R$,LucideWand:T$,LucideWand2:Ad,LucideWandSparkles:Ad,LucideWarehouse:D$,LucideWashingMachine:H$,LucideWatch:O$,LucideWaves:B$,LucideWavesArrowDown:F$,LucideWavesArrowUp:q$,LucideWavesLadder:V$,LucideWaypoints:U$,LucideWebcam:W$,LucideWebhook:K$,LucideWebhookOff:G$,LucideWeight:Z$,LucideWeightTilde:X$,LucideWheat:J$,LucideWheatOff:Y$,LucideWholeWord:Q$,LucideWifi:sP,LucideWifiCog:eP,LucideWifiHigh:tP,LucideWifiLow:nP,LucideWifiOff:oP,LucideWifiPen:rP,LucideWifiSync:aP,LucideWifiZero:iP,LucideWind:lP,LucideWindArrowDown:cP,LucideWine:uP,LucideWineOff:dP,LucideWorkflow:hP,LucideWorm:fP,LucideWrapText:yd,LucideWrench:pP,LucideX:qd,LucideXCircle:Rc,LucideXOctagon:Bl,LucideXSquare:dd,LucideYoutube:yP,LucideZap:gP,LucideZapOff:mP,LucideZoomIn:kP,LucideZoomOut:vP,Luggage:Yb,LuggageIcon:Yb,MSquare:B1,MSquareIcon:B1,Magnet:Qb,MagnetIcon:Qb,Mail:i9,MailCheck:Jb,MailCheckIcon:Jb,MailIcon:i9,MailMinus:e9,MailMinusIcon:e9,MailOpen:t9,MailOpenIcon:t9,MailPlus:n9,MailPlusIcon:n9,MailQuestion:Tl,MailQuestionIcon:Tl,MailQuestionMark:Tl,MailQuestionMarkIcon:Tl,MailSearch:o9,MailSearchIcon:o9,MailWarning:r9,MailWarningIcon:r9,MailX:a9,MailXIcon:a9,Mailbox:c9,MailboxIcon:c9,Mails:s9,MailsIcon:s9,Map:b9,MapIcon:b9,MapMinus:l9,MapMinusIcon:l9,MapPin:x9,MapPinCheck:u9,MapPinCheckIcon:u9,MapPinCheckInside:d9,MapPinCheckInsideIcon:d9,MapPinHouse:h9,MapPinHouseIcon:h9,MapPinIcon:x9,MapPinMinus:p9,MapPinMinusIcon:p9,MapPinMinusInside:f9,MapPinMinusInsideIcon:f9,MapPinOff:y9,MapPinOffIcon:y9,MapPinPen:Dl,MapPinPenIcon:Dl,MapPinPlus:g9,MapPinPlusIcon:g9,MapPinPlusInside:m9,MapPinPlusInsideIcon:m9,MapPinX:k9,MapPinXIcon:k9,MapPinXInside:v9,MapPinXInsideIcon:v9,MapPinned:w9,MapPinnedIcon:w9,MapPlus:M9,MapPlusIcon:M9,Mars:C9,MarsIcon:C9,MarsStroke:_9,MarsStrokeIcon:_9,Martini:S9,MartiniIcon:S9,Maximize:L9,Maximize2:Od,Maximize2Icon:Od,MaximizeIcon:L9,Medal:N9,MedalIcon:N9,Megaphone:A9,MegaphoneIcon:A9,MegaphoneOff:I9,MegaphoneOffIcon:I9,Meh:E9,MehIcon:E9,MemoryStick:j9,MemoryStickIcon:j9,Menu:P9,MenuIcon:P9,MenuSquare:U1,MenuSquareIcon:U1,Merge:$9,MergeIcon:$9,MessageCircle:B9,MessageCircleCode:z9,MessageCircleCodeIcon:z9,MessageCircleDashed:R9,MessageCircleDashedIcon:R9,MessageCircleHeart:T9,MessageCircleHeartIcon:T9,MessageCircleIcon:B9,MessageCircleMore:D9,MessageCircleMoreIcon:D9,MessageCircleOff:H9,MessageCircleOffIcon:H9,MessageCirclePlus:O9,MessageCirclePlusIcon:O9,MessageCircleQuestion:Hl,MessageCircleQuestionIcon:Hl,MessageCircleQuestionMark:Hl,MessageCircleQuestionMarkIcon:Hl,MessageCircleReply:F9,MessageCircleReplyIcon:F9,MessageCircleWarning:q9,MessageCircleWarningIcon:q9,MessageCircleX:V9,MessageCircleXIcon:V9,MessageSquare:i_,MessageSquareCode:U9,MessageSquareCodeIcon:U9,MessageSquareDashed:W9,MessageSquareDashedIcon:W9,MessageSquareDiff:G9,MessageSquareDiffIcon:G9,MessageSquareDot:K9,MessageSquareDotIcon:K9,MessageSquareHeart:X9,MessageSquareHeartIcon:X9,MessageSquareIcon:i_,MessageSquareLock:Z9,MessageSquareLockIcon:Z9,MessageSquareMore:Y9,MessageSquareMoreIcon:Y9,MessageSquareOff:Q9,MessageSquareOffIcon:Q9,MessageSquarePlus:J9,MessageSquarePlusIcon:J9,MessageSquareQuote:e_,MessageSquareQuoteIcon:e_,MessageSquareReply:t_,MessageSquareReplyIcon:t_,MessageSquareShare:n_,MessageSquareShareIcon:n_,MessageSquareText:o_,MessageSquareTextIcon:o_,MessageSquareWarning:r_,MessageSquareWarningIcon:r_,MessageSquareX:a_,MessageSquareXIcon:a_,MessagesSquare:s_,MessagesSquareIcon:s_,Mic:l_,Mic2:Ol,Mic2Icon:Ol,MicIcon:l_,MicOff:c_,MicOffIcon:c_,MicVocal:Ol,MicVocalIcon:Ol,Microchip:d_,MicrochipIcon:d_,Microscope:u_,MicroscopeIcon:u_,Microwave:h_,MicrowaveIcon:h_,Milestone:f_,MilestoneIcon:f_,Milk:y_,MilkIcon:y_,MilkOff:p_,MilkOffIcon:p_,Minimize:g_,Minimize2:m_,Minimize2Icon:m_,MinimizeIcon:g_,Minus:b2,MinusCircle:_c,MinusCircleIcon:_c,MinusIcon:b2,MinusSquare:W1,MinusSquareIcon:W1,Monitor:E_,MonitorCheck:k_,MonitorCheckIcon:k_,MonitorCloud:v_,MonitorCloudIcon:v_,MonitorCog:x_,MonitorCogIcon:x_,MonitorDot:w_,MonitorDotIcon:w_,MonitorDown:M_,MonitorDownIcon:M_,MonitorIcon:E_,MonitorOff:b_,MonitorOffIcon:b_,MonitorPause:__,MonitorPauseIcon:__,MonitorPlay:C_,MonitorPlayIcon:C_,MonitorSmartphone:S_,MonitorSmartphoneIcon:S_,MonitorSpeaker:L_,MonitorSpeakerIcon:L_,MonitorStop:N_,MonitorStopIcon:N_,MonitorUp:I_,MonitorUpIcon:I_,MonitorX:A_,MonitorXIcon:A_,Moon:$_,MoonIcon:$_,MoonStar:j_,MoonStarIcon:j_,MoreHorizontal:Gc,MoreHorizontalIcon:Gc,MoreVertical:Wc,MoreVerticalIcon:Wc,Motorbike:P_,MotorbikeIcon:P_,Mountain:R_,MountainIcon:R_,MountainSnow:z_,MountainSnowIcon:z_,Mouse:q_,MouseIcon:q_,MouseOff:T_,MouseOffIcon:T_,MousePointer:F_,MousePointer2:_2,MousePointer2Icon:_2,MousePointer2Off:D_,MousePointer2OffIcon:D_,MousePointerBan:H_,MousePointerBanIcon:H_,MousePointerClick:O_,MousePointerClickIcon:O_,MousePointerIcon:F_,MousePointerSquareDashed:R1,MousePointerSquareDashedIcon:R1,Move:eC,Move3D:Fl,Move3DIcon:Fl,Move3d:Fl,Move3dIcon:Fl,MoveDiagonal:B_,MoveDiagonal2:V_,MoveDiagonal2Icon:V_,MoveDiagonalIcon:B_,MoveDown:G_,MoveDownIcon:G_,MoveDownLeft:U_,MoveDownLeftIcon:U_,MoveDownRight:W_,MoveDownRightIcon:W_,MoveHorizontal:K_,MoveHorizontalIcon:K_,MoveIcon:eC,MoveLeft:C2,MoveLeftIcon:C2,MoveRight:X_,MoveRightIcon:X_,MoveUp:Q_,MoveUpIcon:Q_,MoveUpLeft:Z_,MoveUpLeftIcon:Z_,MoveUpRight:Y_,MoveUpRightIcon:Y_,MoveVertical:J_,MoveVerticalIcon:J_,Music:rC,Music2:tC,Music2Icon:tC,Music3:nC,Music3Icon:nC,Music4:oC,Music4Icon:oC,MusicIcon:rC,Navigation:cC,Navigation2:iC,Navigation2Icon:iC,Navigation2Off:aC,Navigation2OffIcon:aC,NavigationIcon:cC,NavigationOff:sC,NavigationOffIcon:sC,Network:lC,NetworkIcon:lC,Newspaper:dC,NewspaperIcon:dC,Nfc:uC,NfcIcon:uC,NonBinary:hC,NonBinaryIcon:hC,Notebook:mC,NotebookIcon:mC,NotebookPen:fC,NotebookPenIcon:fC,NotebookTabs:pC,NotebookTabsIcon:pC,NotebookText:yC,NotebookTextIcon:yC,NotepadText:kC,NotepadTextDashed:gC,NotepadTextDashedIcon:gC,NotepadTextIcon:kC,Nut:vC,NutIcon:vC,NutOff:xC,NutOffIcon:xC,Octagon:MC,OctagonAlert:ql,OctagonAlertIcon:ql,OctagonIcon:MC,OctagonMinus:wC,OctagonMinusIcon:wC,OctagonPause:Vl,OctagonPauseIcon:Vl,OctagonX:Bl,OctagonXIcon:Bl,Omega:bC,OmegaIcon:bC,Option:CC,OptionIcon:CC,Orbit:_C,OrbitIcon:_C,Origami:SC,OrigamiIcon:SC,Outdent:Rr,OutdentIcon:Rr,Package:PC,Package2:LC,Package2Icon:LC,PackageCheck:NC,PackageCheckIcon:NC,PackageIcon:PC,PackageMinus:IC,PackageMinusIcon:IC,PackageOpen:AC,PackageOpenIcon:AC,PackagePlus:EC,PackagePlusIcon:EC,PackageSearch:jC,PackageSearchIcon:jC,PackageX:$C,PackageXIcon:$C,PaintBucket:zC,PaintBucketIcon:zC,PaintRoller:RC,PaintRollerIcon:RC,Paintbrush:TC,Paintbrush2:Ul,Paintbrush2Icon:Ul,PaintbrushIcon:TC,PaintbrushVertical:Ul,PaintbrushVerticalIcon:Ul,Palette:DC,PaletteIcon:DC,Palmtree:gd,PalmtreeIcon:gd,Panda:HC,PandaIcon:HC,PanelBottom:FC,PanelBottomClose:OC,PanelBottomCloseIcon:OC,PanelBottomDashed:Wl,PanelBottomDashedIcon:Wl,PanelBottomIcon:FC,PanelBottomInactive:Wl,PanelBottomInactiveIcon:Wl,PanelBottomOpen:qC,PanelBottomOpenIcon:qC,PanelLeft:Zl,PanelLeftClose:Gl,PanelLeftCloseIcon:Gl,PanelLeftDashed:Kl,PanelLeftDashedIcon:Kl,PanelLeftIcon:Zl,PanelLeftInactive:Kl,PanelLeftInactiveIcon:Kl,PanelLeftOpen:Xl,PanelLeftOpenIcon:Xl,PanelLeftRightDashed:VC,PanelLeftRightDashedIcon:VC,PanelRight:BC,PanelRightClose:v0,PanelRightCloseIcon:v0,PanelRightDashed:Yl,PanelRightDashedIcon:Yl,PanelRightIcon:BC,PanelRightInactive:Yl,PanelRightInactiveIcon:Yl,PanelRightOpen:S2,PanelRightOpenIcon:S2,PanelTop:KC,PanelTopBottomDashed:UC,PanelTopBottomDashedIcon:UC,PanelTopClose:WC,PanelTopCloseIcon:WC,PanelTopDashed:Ql,PanelTopDashedIcon:Ql,PanelTopIcon:KC,PanelTopInactive:Ql,PanelTopInactiveIcon:Ql,PanelTopOpen:GC,PanelTopOpenIcon:GC,PanelsLeftBottom:XC,PanelsLeftBottomIcon:XC,PanelsLeftRight:Ci,PanelsLeftRightIcon:Ci,PanelsRightBottom:ZC,PanelsRightBottomIcon:ZC,PanelsTopBottom:i1,PanelsTopBottomIcon:i1,PanelsTopLeft:Jl,PanelsTopLeftIcon:Jl,Paperclip:YC,PaperclipIcon:YC,Parentheses:JC,ParenthesesIcon:JC,ParkingCircle:Sc,ParkingCircleIcon:Sc,ParkingCircleOff:Cc,ParkingCircleOffIcon:Cc,ParkingMeter:QC,ParkingMeterIcon:QC,ParkingSquare:X1,ParkingSquareIcon:X1,ParkingSquareOff:K1,ParkingSquareOffIcon:K1,PartyPopper:eS,PartyPopperIcon:eS,Pause:tS,PauseCircle:Lc,PauseCircleIcon:Lc,PauseIcon:tS,PauseOctagon:Vl,PauseOctagonIcon:Vl,PawPrint:nS,PawPrintIcon:nS,PcCase:oS,PcCaseIcon:oS,Pen:t1,PenBox:so,PenBoxIcon:so,PenIcon:t1,PenLine:e1,PenLineIcon:e1,PenOff:rS,PenOffIcon:rS,PenSquare:so,PenSquareIcon:so,PenTool:aS,PenToolIcon:aS,Pencil:N2,PencilIcon:N2,PencilLine:L2,PencilLineIcon:L2,PencilOff:iS,PencilOffIcon:iS,PencilRuler:sS,PencilRulerIcon:sS,Pentagon:cS,PentagonIcon:cS,Percent:lS,PercentCircle:Nc,PercentCircleIcon:Nc,PercentDiamond:Bc,PercentDiamondIcon:Bc,PercentIcon:lS,PercentSquare:Z1,PercentSquareIcon:Z1,PersonStanding:uS,PersonStandingIcon:uS,PhilippinePeso:dS,PhilippinePesoIcon:dS,Phone:kS,PhoneCall:hS,PhoneCallIcon:hS,PhoneForwarded:fS,PhoneForwardedIcon:fS,PhoneIcon:kS,PhoneIncoming:pS,PhoneIncomingIcon:pS,PhoneMissed:yS,PhoneMissedIcon:yS,PhoneOff:mS,PhoneOffIcon:mS,PhoneOutgoing:gS,PhoneOutgoingIcon:gS,Pi:vS,PiIcon:vS,PiSquare:J1,PiSquareIcon:J1,Piano:xS,PianoIcon:xS,Pickaxe:wS,PickaxeIcon:wS,PictureInPicture:bS,PictureInPicture2:MS,PictureInPicture2Icon:MS,PictureInPictureIcon:bS,PieChart:ic,PieChartIcon:ic,PiggyBank:_S,PiggyBankIcon:_S,Pilcrow:LS,PilcrowIcon:LS,PilcrowLeft:CS,PilcrowLeftIcon:CS,PilcrowRight:SS,PilcrowRightIcon:SS,PilcrowSquare:Y1,PilcrowSquareIcon:Y1,Pill:IS,PillBottle:NS,PillBottleIcon:NS,PillIcon:IS,Pin:ES,PinIcon:ES,PinOff:AS,PinOffIcon:AS,Pipette:jS,PipetteIcon:jS,Pizza:$S,PizzaIcon:$S,Plane:RS,PlaneIcon:RS,PlaneLanding:PS,PlaneLandingIcon:PS,PlaneTakeoff:zS,PlaneTakeoffIcon:zS,Play:Fd,PlayCircle:Ic,PlayCircleIcon:Ic,PlayIcon:Fd,PlaySquare:Q1,PlaySquareIcon:Q1,Plug:DS,Plug2:TS,Plug2Icon:TS,PlugIcon:DS,PlugZap:n1,PlugZap2:n1,PlugZap2Icon:n1,PlugZapIcon:n1,Plus:I2,PlusCircle:Ac,PlusCircleIcon:Ac,PlusIcon:I2,PlusSquare:ed,PlusSquareIcon:ed,Pocket:OS,PocketIcon:OS,PocketKnife:HS,PocketKnifeIcon:HS,Podcast:qS,PodcastIcon:qS,Pointer:VS,PointerIcon:VS,PointerOff:FS,PointerOffIcon:FS,Popcorn:BS,PopcornIcon:BS,Popsicle:US,PopsicleIcon:US,PoundSterling:WS,PoundSterlingIcon:WS,Power:KS,PowerCircle:Ec,PowerCircleIcon:Ec,PowerIcon:KS,PowerOff:GS,PowerOffIcon:GS,PowerSquare:td,PowerSquareIcon:td,Presentation:XS,PresentationIcon:XS,Printer:QS,PrinterCheck:ZS,PrinterCheckIcon:ZS,PrinterIcon:QS,PrinterX:YS,PrinterXIcon:YS,Projector:eL,ProjectorIcon:eL,Proportions:JS,ProportionsIcon:JS,Puzzle:tL,PuzzleIcon:tL,Pyramid:nL,PyramidIcon:nL,QrCode:oL,QrCodeIcon:oL,Quote:rL,QuoteIcon:rL,Rabbit:aL,RabbitIcon:aL,Radar:iL,RadarIcon:iL,Radiation:sL,RadiationIcon:sL,Radical:cL,RadicalIcon:cL,Radio:uL,RadioIcon:uL,RadioReceiver:lL,RadioReceiverIcon:lL,RadioTower:dL,RadioTowerIcon:dL,Radius:hL,RadiusIcon:hL,RailSymbol:fL,RailSymbolIcon:fL,Rainbow:pL,RainbowIcon:pL,Rat:yL,RatIcon:yL,Ratio:mL,RatioIcon:mL,Receipt:SL,ReceiptCent:gL,ReceiptCentIcon:gL,ReceiptEuro:kL,ReceiptEuroIcon:kL,ReceiptIcon:SL,ReceiptIndianRupee:vL,ReceiptIndianRupeeIcon:vL,ReceiptJapaneseYen:xL,ReceiptJapaneseYenIcon:xL,ReceiptPoundSterling:wL,ReceiptPoundSterlingIcon:wL,ReceiptRussianRuble:ML,ReceiptRussianRubleIcon:ML,ReceiptSwissFranc:bL,ReceiptSwissFrancIcon:bL,ReceiptText:_L,ReceiptTextIcon:_L,ReceiptTurkishLira:CL,ReceiptTurkishLiraIcon:CL,RectangleCircle:LL,RectangleCircleIcon:LL,RectangleEllipsis:o1,RectangleEllipsisIcon:o1,RectangleGoggles:NL,RectangleGogglesIcon:NL,RectangleHorizontal:IL,RectangleHorizontalIcon:IL,RectangleVertical:AL,RectangleVerticalIcon:AL,Recycle:EL,RecycleIcon:EL,Redo:PL,Redo2:jL,Redo2Icon:jL,RedoDot:$L,RedoDotIcon:$L,RedoIcon:PL,RefreshCcw:TL,RefreshCcwDot:zL,RefreshCcwDotIcon:zL,RefreshCcwIcon:TL,RefreshCw:DL,RefreshCwIcon:DL,RefreshCwOff:RL,RefreshCwOffIcon:RL,Refrigerator:HL,RefrigeratorIcon:HL,Regex:OL,RegexIcon:OL,RemoveFormatting:FL,RemoveFormattingIcon:FL,Repeat:BL,Repeat1:VL,Repeat1Icon:VL,Repeat2:qL,Repeat2Icon:qL,RepeatIcon:BL,Replace:WL,ReplaceAll:UL,ReplaceAllIcon:UL,ReplaceIcon:WL,Reply:KL,ReplyAll:GL,ReplyAllIcon:GL,ReplyIcon:KL,Rewind:XL,RewindIcon:XL,Ribbon:YL,RibbonIcon:YL,Rocket:ZL,RocketIcon:ZL,RockingChair:QL,RockingChairIcon:QL,RollerCoaster:JL,RollerCoasterIcon:JL,Rose:eN,RoseIcon:eN,Rotate3D:r1,Rotate3DIcon:r1,Rotate3d:r1,Rotate3dIcon:r1,RotateCcw:oN,RotateCcwIcon:oN,RotateCcwKey:tN,RotateCcwKeyIcon:tN,RotateCcwSquare:nN,RotateCcwSquareIcon:nN,RotateCw:aN,RotateCwIcon:aN,RotateCwSquare:rN,RotateCwSquareIcon:rN,Route:sN,RouteIcon:sN,RouteOff:iN,RouteOffIcon:iN,Router:cN,RouterIcon:cN,Rows:a1,Rows2:a1,Rows2Icon:a1,Rows3:i1,Rows3Icon:i1,Rows4:lN,Rows4Icon:lN,RowsIcon:a1,Rss:dN,RssIcon:dN,Ruler:hN,RulerDimensionLine:uN,RulerDimensionLineIcon:uN,RulerIcon:hN,RussianRuble:fN,RussianRubleIcon:fN,Sailboat:pN,SailboatIcon:pN,Salad:yN,SaladIcon:yN,Sandwich:mN,SandwichIcon:mN,Satellite:kN,SatelliteDish:gN,SatelliteDishIcon:gN,SatelliteIcon:kN,SaudiRiyal:vN,SaudiRiyalIcon:vN,Save:MN,SaveAll:xN,SaveAllIcon:xN,SaveIcon:MN,SaveOff:wN,SaveOffIcon:wN,Scale:bN,Scale3D:s1,Scale3DIcon:s1,Scale3d:s1,Scale3dIcon:s1,ScaleIcon:bN,Scaling:_N,ScalingIcon:_N,Scan:$N,ScanBarcode:CN,ScanBarcodeIcon:CN,ScanEye:SN,ScanEyeIcon:SN,ScanFace:LN,ScanFaceIcon:LN,ScanHeart:NN,ScanHeartIcon:NN,ScanIcon:$N,ScanLine:IN,ScanLineIcon:IN,ScanQrCode:AN,ScanQrCodeIcon:AN,ScanSearch:EN,ScanSearchIcon:EN,ScanText:jN,ScanTextIcon:jN,ScatterChart:sc,ScatterChartIcon:sc,School:PN,School2:vd,School2Icon:vd,SchoolIcon:PN,Scissors:TN,ScissorsIcon:TN,ScissorsLineDashed:zN,ScissorsLineDashedIcon:zN,ScissorsSquare:nd,ScissorsSquareDashedBottom:L1,ScissorsSquareDashedBottomIcon:L1,ScissorsSquareIcon:nd,Scooter:RN,ScooterIcon:RN,ScreenShare:HN,ScreenShareIcon:HN,ScreenShareOff:DN,ScreenShareOffIcon:DN,Scroll:FN,ScrollIcon:FN,ScrollText:ON,ScrollTextIcon:ON,Search:A2,SearchAlert:qN,SearchAlertIcon:qN,SearchCheck:VN,SearchCheckIcon:VN,SearchCode:BN,SearchCodeIcon:BN,SearchIcon:A2,SearchSlash:UN,SearchSlashIcon:UN,SearchX:WN,SearchXIcon:WN,Section:GN,SectionIcon:GN,Send:XN,SendHorizonal:c1,SendHorizonalIcon:c1,SendHorizontal:c1,SendHorizontalIcon:c1,SendIcon:XN,SendToBack:KN,SendToBackIcon:KN,SeparatorHorizontal:YN,SeparatorHorizontalIcon:YN,SeparatorVertical:ZN,SeparatorVerticalIcon:ZN,Server:E2,ServerCog:QN,ServerCogIcon:QN,ServerCrash:JN,ServerCrashIcon:JN,ServerIcon:E2,ServerOff:eI,ServerOffIcon:eI,Settings:nI,Settings2:tI,Settings2Icon:tI,SettingsIcon:nI,Shapes:j2,ShapesIcon:j2,Share:oI,Share2:$2,Share2Icon:$2,ShareIcon:oI,Sheet:rI,SheetIcon:rI,Shell:aI,ShellIcon:aI,Shield:yI,ShieldAlert:iI,ShieldAlertIcon:iI,ShieldBan:sI,ShieldBanIcon:sI,ShieldCheck:cI,ShieldCheckIcon:cI,ShieldClose:d1,ShieldCloseIcon:d1,ShieldEllipsis:lI,ShieldEllipsisIcon:lI,ShieldHalf:dI,ShieldHalfIcon:dI,ShieldIcon:yI,ShieldMinus:uI,ShieldMinusIcon:uI,ShieldOff:hI,ShieldOffIcon:hI,ShieldPlus:fI,ShieldPlusIcon:fI,ShieldQuestion:l1,ShieldQuestionIcon:l1,ShieldQuestionMark:l1,ShieldQuestionMarkIcon:l1,ShieldUser:pI,ShieldUserIcon:pI,ShieldX:d1,ShieldXIcon:d1,Ship:kI,ShipIcon:kI,ShipWheel:mI,ShipWheelIcon:mI,Shirt:gI,ShirtIcon:gI,ShoppingBag:xI,ShoppingBagIcon:xI,ShoppingBasket:vI,ShoppingBasketIcon:vI,ShoppingCart:wI,ShoppingCartIcon:wI,Shovel:MI,ShovelIcon:MI,ShowerHead:bI,ShowerHeadIcon:bI,Shredder:_I,ShredderIcon:_I,Shrimp:CI,ShrimpIcon:CI,Shrink:SI,ShrinkIcon:SI,Shrub:LI,ShrubIcon:LI,Shuffle:NI,ShuffleIcon:NI,Sidebar:Zl,SidebarClose:Gl,SidebarCloseIcon:Gl,SidebarIcon:Zl,SidebarOpen:Xl,SidebarOpenIcon:Xl,Sigma:II,SigmaIcon:II,SigmaSquare:od,SigmaSquareIcon:od,Signal:PI,SignalHigh:AI,SignalHighIcon:AI,SignalIcon:PI,SignalLow:EI,SignalLowIcon:EI,SignalMedium:jI,SignalMediumIcon:jI,SignalZero:$I,SignalZeroIcon:$I,Signature:zI,SignatureIcon:zI,Signpost:TI,SignpostBig:RI,SignpostBigIcon:RI,SignpostIcon:TI,Siren:DI,SirenIcon:DI,SkipBack:HI,SkipBackIcon:HI,SkipForward:OI,SkipForwardIcon:OI,Skull:FI,SkullIcon:FI,Slack:qI,SlackIcon:qI,Slash:VI,SlashIcon:VI,SlashSquare:rd,SlashSquareIcon:rd,Slice:BI,SliceIcon:BI,Sliders:u1,SlidersHorizontal:UI,SlidersHorizontalIcon:UI,SlidersIcon:u1,SlidersVertical:u1,SlidersVerticalIcon:u1,Smartphone:KI,SmartphoneCharging:WI,SmartphoneChargingIcon:WI,SmartphoneIcon:KI,SmartphoneNfc:GI,SmartphoneNfcIcon:GI,Smile:ZI,SmileIcon:ZI,SmilePlus:XI,SmilePlusIcon:XI,Snail:YI,SnailIcon:YI,Snowflake:QI,SnowflakeIcon:QI,SoapDispenserDroplet:JI,SoapDispenserDropletIcon:JI,Sofa:eA,SofaIcon:eA,SolarPanel:tA,SolarPanelIcon:tA,SortAsc:Hs,SortAscIcon:Hs,SortDesc:Rs,SortDescIcon:Rs,Soup:nA,SoupIcon:nA,Space:oA,SpaceIcon:oA,Spade:rA,SpadeIcon:rA,Sparkle:aA,SparkleIcon:aA,Sparkles:h1,SparklesIcon:h1,Speaker:iA,SpeakerIcon:iA,Speech:sA,SpeechIcon:sA,SpellCheck:lA,SpellCheck2:cA,SpellCheck2Icon:cA,SpellCheckIcon:lA,Spline:dA,SplineIcon:dA,SplinePointer:uA,SplinePointerIcon:uA,Split:hA,SplitIcon:hA,SplitSquareHorizontal:ad,SplitSquareHorizontalIcon:ad,SplitSquareVertical:id,SplitSquareVerticalIcon:id,Spool:fA,SpoolIcon:fA,Spotlight:pA,SpotlightIcon:pA,SprayCan:yA,SprayCanIcon:yA,Sprout:mA,SproutIcon:mA,Square:x0,SquareActivity:f1,SquareActivityIcon:f1,SquareArrowDown:m1,SquareArrowDownIcon:m1,SquareArrowDownLeft:p1,SquareArrowDownLeftIcon:p1,SquareArrowDownRight:y1,SquareArrowDownRightIcon:y1,SquareArrowLeft:g1,SquareArrowLeftIcon:g1,SquareArrowOutDownLeft:k1,SquareArrowOutDownLeftIcon:k1,SquareArrowOutDownRight:v1,SquareArrowOutDownRightIcon:v1,SquareArrowOutUpLeft:x1,SquareArrowOutUpLeftIcon:x1,SquareArrowOutUpRight:w1,SquareArrowOutUpRightIcon:w1,SquareArrowRight:M1,SquareArrowRightIcon:M1,SquareArrowUp:_1,SquareArrowUpIcon:_1,SquareArrowUpLeft:b1,SquareArrowUpLeftIcon:b1,SquareArrowUpRight:S1,SquareArrowUpRightIcon:S1,SquareAsterisk:C1,SquareAsteriskIcon:C1,SquareBottomDashedScissors:L1,SquareBottomDashedScissorsIcon:L1,SquareChartGantt:Dr,SquareChartGanttIcon:Dr,SquareCheck:I1,SquareCheckBig:N1,SquareCheckBigIcon:N1,SquareCheckIcon:I1,SquareChevronDown:A1,SquareChevronDownIcon:A1,SquareChevronLeft:E1,SquareChevronLeftIcon:E1,SquareChevronRight:$1,SquareChevronRightIcon:$1,SquareChevronUp:j1,SquareChevronUpIcon:j1,SquareCode:P1,SquareCodeIcon:P1,SquareDashed:T1,SquareDashedBottom:kA,SquareDashedBottomCode:gA,SquareDashedBottomCodeIcon:gA,SquareDashedBottomIcon:kA,SquareDashedIcon:T1,SquareDashedKanban:z1,SquareDashedKanbanIcon:z1,SquareDashedMousePointer:R1,SquareDashedMousePointerIcon:R1,SquareDashedTopSolid:vA,SquareDashedTopSolidIcon:vA,SquareDivide:D1,SquareDivideIcon:D1,SquareDot:H1,SquareDotIcon:H1,SquareEqual:O1,SquareEqualIcon:O1,SquareFunction:F1,SquareFunctionIcon:F1,SquareGanttChart:Dr,SquareGanttChartIcon:Dr,SquareIcon:x0,SquareKanban:q1,SquareKanbanIcon:q1,SquareLibrary:V1,SquareLibraryIcon:V1,SquareM:B1,SquareMIcon:B1,SquareMenu:U1,SquareMenuIcon:U1,SquareMinus:W1,SquareMinusIcon:W1,SquareMousePointer:G1,SquareMousePointerIcon:G1,SquareParking:X1,SquareParkingIcon:X1,SquareParkingOff:K1,SquareParkingOffIcon:K1,SquarePause:xA,SquarePauseIcon:xA,SquarePen:so,SquarePenIcon:so,SquarePercent:Z1,SquarePercentIcon:Z1,SquarePi:J1,SquarePiIcon:J1,SquarePilcrow:Y1,SquarePilcrowIcon:Y1,SquarePlay:Q1,SquarePlayIcon:Q1,SquarePlus:ed,SquarePlusIcon:ed,SquarePower:td,SquarePowerIcon:td,SquareRadical:wA,SquareRadicalIcon:wA,SquareRoundCorner:MA,SquareRoundCornerIcon:MA,SquareScissors:nd,SquareScissorsIcon:nd,SquareSigma:od,SquareSigmaIcon:od,SquareSlash:rd,SquareSlashIcon:rd,SquareSplitHorizontal:ad,SquareSplitHorizontalIcon:ad,SquareSplitVertical:id,SquareSplitVerticalIcon:id,SquareSquare:_A,SquareSquareIcon:_A,SquareStack:bA,SquareStackIcon:bA,SquareStar:SA,SquareStarIcon:SA,SquareStop:CA,SquareStopIcon:CA,SquareTerminal:sd,SquareTerminalIcon:sd,SquareUser:ld,SquareUserIcon:ld,SquareUserRound:cd,SquareUserRoundIcon:cd,SquareX:dd,SquareXIcon:dd,SquaresExclude:LA,SquaresExcludeIcon:LA,SquaresIntersect:NA,SquaresIntersectIcon:NA,SquaresSubtract:IA,SquaresSubtractIcon:IA,SquaresUnite:AA,SquaresUniteIcon:AA,Squircle:w0,SquircleDashed:EA,SquircleDashedIcon:EA,SquircleIcon:w0,Squirrel:jA,SquirrelIcon:jA,Stamp:$A,StampIcon:$A,Star:RA,StarHalf:PA,StarHalfIcon:PA,StarIcon:RA,StarOff:zA,StarOffIcon:zA,Stars:h1,StarsIcon:h1,StepBack:TA,StepBackIcon:TA,StepForward:DA,StepForwardIcon:DA,Stethoscope:HA,StethoscopeIcon:HA,Sticker:M0,StickerIcon:M0,StickyNote:P2,StickyNoteIcon:P2,Stone:OA,StoneIcon:OA,StopCircle:Pc,StopCircleIcon:Pc,Store:FA,StoreIcon:FA,StretchHorizontal:VA,StretchHorizontalIcon:VA,StretchVertical:qA,StretchVerticalIcon:qA,Strikethrough:BA,StrikethroughIcon:BA,Subscript:UA,SubscriptIcon:UA,Subtitles:Ks,SubtitlesIcon:Ks,Sun:ZA,SunDim:WA,SunDimIcon:WA,SunIcon:ZA,SunMedium:GA,SunMediumIcon:GA,SunMoon:KA,SunMoonIcon:KA,SunSnow:XA,SunSnowIcon:XA,Sunrise:YA,SunriseIcon:YA,Sunset:QA,SunsetIcon:QA,Superscript:JA,SuperscriptIcon:JA,SwatchBook:eE,SwatchBookIcon:eE,SwissFranc:tE,SwissFrancIcon:tE,SwitchCamera:nE,SwitchCameraIcon:nE,Sword:oE,SwordIcon:oE,Swords:rE,SwordsIcon:rE,Syringe:aE,SyringeIcon:aE,Table:fE,Table2:iE,Table2Icon:iE,TableCellsMerge:sE,TableCellsMergeIcon:sE,TableCellsSplit:cE,TableCellsSplitIcon:cE,TableColumnsSplit:lE,TableColumnsSplitIcon:lE,TableConfig:$r,TableConfigIcon:$r,TableIcon:fE,TableOfContents:dE,TableOfContentsIcon:dE,TableProperties:uE,TablePropertiesIcon:uE,TableRowsSplit:hE,TableRowsSplitIcon:hE,Tablet:yE,TabletIcon:yE,TabletSmartphone:pE,TabletSmartphoneIcon:pE,Tablets:mE,TabletsIcon:mE,Tag:gE,TagIcon:gE,Tags:kE,TagsIcon:kE,Tally1:vE,Tally1Icon:vE,Tally2:xE,Tally2Icon:xE,Tally3:wE,Tally3Icon:wE,Tally4:ME,Tally4Icon:ME,Tally5:bE,Tally5Icon:bE,Tangent:_E,TangentIcon:_E,Target:CE,TargetIcon:CE,Telescope:SE,TelescopeIcon:SE,Tent:NE,TentIcon:NE,TentTree:LE,TentTreeIcon:LE,Terminal:IE,TerminalIcon:IE,TerminalSquare:sd,TerminalSquareIcon:sd,TestTube:AE,TestTube2:ud,TestTube2Icon:ud,TestTubeDiagonal:ud,TestTubeDiagonalIcon:ud,TestTubeIcon:AE,TestTubes:EE,TestTubesIcon:EE,Text:Zo,TextAlignCenter:Si,TextAlignCenterIcon:Si,TextAlignEnd:Li,TextAlignEndIcon:Li,TextAlignJustify:hd,TextAlignJustifyIcon:hd,TextAlignStart:Zo,TextAlignStartIcon:Zo,TextCursor:$E,TextCursorIcon:$E,TextCursorInput:jE,TextCursorInputIcon:jE,TextIcon:Zo,TextInitial:fd,TextInitialIcon:fd,TextQuote:PE,TextQuoteIcon:PE,TextSearch:zE,TextSearchIcon:zE,TextSelect:pd,TextSelectIcon:pd,TextSelection:pd,TextSelectionIcon:pd,TextWrap:yd,TextWrapIcon:yd,Theater:RE,TheaterIcon:RE,Thermometer:HE,ThermometerIcon:HE,ThermometerSnowflake:TE,ThermometerSnowflakeIcon:TE,ThermometerSun:DE,ThermometerSunIcon:DE,ThumbsDown:OE,ThumbsDownIcon:OE,ThumbsUp:FE,ThumbsUpIcon:FE,Ticket:KE,TicketCheck:qE,TicketCheckIcon:qE,TicketIcon:KE,TicketMinus:VE,TicketMinusIcon:VE,TicketPercent:BE,TicketPercentIcon:BE,TicketPlus:UE,TicketPlusIcon:UE,TicketSlash:WE,TicketSlashIcon:WE,TicketX:GE,TicketXIcon:GE,Tickets:ZE,TicketsIcon:ZE,TicketsPlane:XE,TicketsPlaneIcon:XE,Timer:JE,TimerIcon:JE,TimerOff:YE,TimerOffIcon:YE,TimerReset:QE,TimerResetIcon:QE,ToggleLeft:ej,ToggleLeftIcon:ej,ToggleRight:tj,ToggleRightIcon:tj,Toilet:nj,ToiletIcon:nj,ToolCase:rj,ToolCaseIcon:rj,Toolbox:oj,ToolboxIcon:oj,Tornado:aj,TornadoIcon:aj,Torus:ij,TorusIcon:ij,Touchpad:cj,TouchpadIcon:cj,TouchpadOff:sj,TouchpadOffIcon:sj,TowerControl:lj,TowerControlIcon:lj,ToyBrick:dj,ToyBrickIcon:dj,Tractor:uj,TractorIcon:uj,TrafficCone:hj,TrafficConeIcon:hj,Train:md,TrainFront:pj,TrainFrontIcon:pj,TrainFrontTunnel:fj,TrainFrontTunnelIcon:fj,TrainIcon:md,TrainTrack:yj,TrainTrackIcon:yj,TramFront:md,TramFrontIcon:md,Transgender:mj,TransgenderIcon:mj,Trash:gj,Trash2:z2,Trash2Icon:z2,TrashIcon:gj,TreeDeciduous:kj,TreeDeciduousIcon:kj,TreePalm:gd,TreePalmIcon:gd,TreePine:vj,TreePineIcon:vj,Trees:xj,TreesIcon:xj,Trello:wj,TrelloIcon:wj,TrendingDown:Mj,TrendingDownIcon:Mj,TrendingUp:_j,TrendingUpDown:bj,TrendingUpDownIcon:bj,TrendingUpIcon:_j,Triangle:R2,TriangleAlert:qr,TriangleAlertIcon:qr,TriangleDashed:Cj,TriangleDashedIcon:Cj,TriangleIcon:R2,TriangleRight:Sj,TriangleRightIcon:Sj,Trophy:Lj,TrophyIcon:Lj,Truck:Ij,TruckElectric:Nj,TruckElectricIcon:Nj,TruckIcon:Ij,TurkishLira:Aj,TurkishLiraIcon:Aj,Turntable:Ej,TurntableIcon:Ej,Turtle:jj,TurtleIcon:jj,Tv:Pj,Tv2:kd,Tv2Icon:kd,TvIcon:Pj,TvMinimal:kd,TvMinimalIcon:kd,TvMinimalPlay:$j,TvMinimalPlayIcon:$j,Twitch:zj,TwitchIcon:zj,Twitter:Rj,TwitterIcon:Rj,Type:b0,TypeIcon:b0,TypeOutline:Tj,TypeOutlineIcon:Tj,Umbrella:Hj,UmbrellaIcon:Hj,UmbrellaOff:Dj,UmbrellaOffIcon:Dj,Underline:Oj,UnderlineIcon:Oj,Undo:Vj,Undo2:Fj,Undo2Icon:Fj,UndoDot:qj,UndoDotIcon:qj,UndoIcon:Vj,UnfoldHorizontal:Bj,UnfoldHorizontalIcon:Bj,UnfoldVertical:Uj,UnfoldVerticalIcon:Uj,Ungroup:Wj,UngroupIcon:Wj,University:vd,UniversityIcon:vd,Unlink:Kj,Unlink2:Gj,Unlink2Icon:Gj,UnlinkIcon:Kj,Unlock:Rl,UnlockIcon:Rl,UnlockKeyhole:zl,UnlockKeyholeIcon:zl,Unplug:Xj,UnplugIcon:Xj,Upload:T2,UploadCloud:Oc,UploadCloudIcon:Oc,UploadIcon:T2,Usb:Zj,UsbIcon:Zj,User:D2,User2:Cd,User2Icon:Cd,UserCheck:Yj,UserCheck2:xd,UserCheck2Icon:xd,UserCheckIcon:Yj,UserCircle:zc,UserCircle2:$c,UserCircle2Icon:$c,UserCircleIcon:zc,UserCog:Qj,UserCog2:wd,UserCog2Icon:wd,UserCogIcon:Qj,UserIcon:D2,UserKey:Jj,UserKeyIcon:Jj,UserLock:e$,UserLockIcon:e$,UserMinus:t$,UserMinus2:Md,UserMinus2Icon:Md,UserMinusIcon:t$,UserPen:n$,UserPenIcon:n$,UserPlus:o$,UserPlus2:bd,UserPlus2Icon:bd,UserPlusIcon:o$,UserRound:Cd,UserRoundCheck:xd,UserRoundCheckIcon:xd,UserRoundCog:wd,UserRoundCogIcon:wd,UserRoundIcon:Cd,UserRoundKey:r$,UserRoundKeyIcon:r$,UserRoundMinus:Md,UserRoundMinusIcon:Md,UserRoundPen:a$,UserRoundPenIcon:a$,UserRoundPlus:bd,UserRoundPlusIcon:bd,UserRoundSearch:i$,UserRoundSearchIcon:i$,UserRoundX:_d,UserRoundXIcon:_d,UserSearch:s$,UserSearchIcon:s$,UserSquare:ld,UserSquare2:cd,UserSquare2Icon:cd,UserSquareIcon:ld,UserStar:c$,UserStarIcon:c$,UserX:l$,UserX2:_d,UserX2Icon:_d,UserXIcon:l$,Users:d$,Users2:Sd,Users2Icon:Sd,UsersIcon:d$,UsersRound:Sd,UsersRoundIcon:Sd,Utensils:Nd,UtensilsCrossed:Ld,UtensilsCrossedIcon:Ld,UtensilsIcon:Nd,UtilityPole:u$,UtilityPoleIcon:u$,Van:h$,VanIcon:h$,Variable:f$,VariableIcon:f$,Vault:p$,VaultIcon:p$,VectorSquare:y$,VectorSquareIcon:y$,Vegan:m$,VeganIcon:m$,VenetianMask:g$,VenetianMaskIcon:g$,Venus:v$,VenusAndMars:k$,VenusAndMarsIcon:k$,VenusIcon:v$,Verified:qs,VerifiedIcon:qs,Vibrate:w$,VibrateIcon:w$,VibrateOff:x$,VibrateOffIcon:x$,Video:b$,VideoIcon:b$,VideoOff:M$,VideoOffIcon:M$,Videotape:_$,VideotapeIcon:_$,View:C$,ViewIcon:C$,Voicemail:S$,VoicemailIcon:S$,Volleyball:L$,VolleyballIcon:L$,Volume:j$,Volume1:N$,Volume1Icon:N$,Volume2:I$,Volume2Icon:I$,VolumeIcon:j$,VolumeOff:A$,VolumeOffIcon:A$,VolumeX:E$,VolumeXIcon:E$,Vote:$$,VoteIcon:$$,Wallet:z$,Wallet2:Id,Wallet2Icon:Id,WalletCards:P$,WalletCardsIcon:P$,WalletIcon:z$,WalletMinimal:Id,WalletMinimalIcon:Id,Wallpaper:R$,WallpaperIcon:R$,Wand:T$,Wand2:Ad,Wand2Icon:Ad,WandIcon:T$,WandSparkles:Ad,WandSparklesIcon:Ad,Warehouse:D$,WarehouseIcon:D$,WashingMachine:H$,WashingMachineIcon:H$,Watch:O$,WatchIcon:O$,Waves:B$,WavesArrowDown:F$,WavesArrowDownIcon:F$,WavesArrowUp:q$,WavesArrowUpIcon:q$,WavesIcon:B$,WavesLadder:V$,WavesLadderIcon:V$,Waypoints:U$,WaypointsIcon:U$,Webcam:W$,WebcamIcon:W$,Webhook:K$,WebhookIcon:K$,WebhookOff:G$,WebhookOffIcon:G$,Weight:Z$,WeightIcon:Z$,WeightTilde:X$,WeightTildeIcon:X$,Wheat:J$,WheatIcon:J$,WheatOff:Y$,WheatOffIcon:Y$,WholeWord:Q$,WholeWordIcon:Q$,Wifi:sP,WifiCog:eP,WifiCogIcon:eP,WifiHigh:tP,WifiHighIcon:tP,WifiIcon:sP,WifiLow:nP,WifiLowIcon:nP,WifiOff:oP,WifiOffIcon:oP,WifiPen:rP,WifiPenIcon:rP,WifiSync:aP,WifiSyncIcon:aP,WifiZero:iP,WifiZeroIcon:iP,Wind:lP,WindArrowDown:cP,WindArrowDownIcon:cP,WindIcon:lP,Wine:uP,WineIcon:uP,WineOff:dP,WineOffIcon:dP,Workflow:hP,WorkflowIcon:hP,Worm:fP,WormIcon:fP,WrapText:yd,WrapTextIcon:yd,Wrench:pP,WrenchIcon:pP,X:qd,XCircle:Rc,XCircleIcon:Rc,XIcon:qd,XOctagon:Bl,XOctagonIcon:Bl,XSquare:dd,XSquareIcon:dd,Youtube:yP,YoutubeIcon:yP,Zap:gP,ZapIcon:gP,ZapOff:mP,ZapOffIcon:mP,ZoomIn:kP,ZoomInIcon:kP,ZoomOut:vP,ZoomOutIcon:vP,createLucideIcon:u,icons:MEe},Symbol.toStringTag,{value:"Module"})),_Ee=new Set(["createLucideIcon","Icon","icons","default"]),CEe=Symbol.for("react.forward_ref");function SEe(e){return typeof e=="function"?!0:e!==null&&typeof e=="object"?e.$$typeof===CEe:!1}function LEe(e){return e.replace(/[A-Z]/g,(t,n)=>n===0?t.toLowerCase():`-${t.toLowerCase()}`)}function NEe(){const e={};for(const[t,n]of Object.entries(bEe))_Ee.has(t)||SEe(n)&&(e[LEe(t)]=n);return e}const df=NEe(),IEe="help-circle",AEe=Object.keys(df).sort(),EEe=["logos:aws","logos:google-cloud","logos:microsoft-azure"],iz={lucide:AEe,aws:[],gcp:[],azure:[],iconify:[...EEe]};function UH(e){for(const t of e)t.installed?iz[t.vendor]=[...t.iconNames]:iz[t.vendor]=[]}const jEe=["aws","gcp","azure","iconify"];function wQ(e){if(typeof e!="string")return null;const t=e.trim();if(t.length===0)return null;const n=t.indexOf(":");if(n===-1)return{vendor:"lucide",name:t};const o=t.slice(0,n),r=t.slice(n+1);return r.length===0?null:o==="lucide"?{vendor:"lucide",name:r}:jEe.includes(o)?{vendor:o,name:r}:null}function $Ee(e){return e.vendor==="lucide"?e.name:`${e.vendor}:${e.name}`}function PEe(e,t){const n=wQ(e);if(!n)return null;if(n.vendor==="lucide"){const o=df[n.name];return o?{kind:"lucide",component:o}:null}return n.vendor==="iconify"?{kind:"iconify",identifier:n.name}:{kind:"svg-url",url:`${t.studioBaseUrl}/api/icons/${n.vendor}/${n.name}.svg`}}const zEe="modulepreload",REe=function(e){return"/"+e},kU={},sh=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));r=Promise.allSettled(n.map(c=>{if(c=REe(c),c in kU)return;kU[c]=!0;const l=c.endsWith(".css"),h=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const d=document.createElement("link");if(d.rel=l?"stylesheet":zEe,l||(d.as="script"),d.crossOrigin="",d.href=c,s&&d.setAttribute("nonce",s),document.head.appendChild(d),l)return new Promise((p,y)=>{d.addEventListener("load",p),d.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return r.then(i=>{for(const s of i||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})};let zp=null;function TEe(){return zp||(zp=sh(()=>import("./iconify-CfqTggJR.js"),[]).then(e=>e,()=>null),zp)}function MQ(e,t){return f.jsx(Xo,{className:e,"aria-label":t,"aria-hidden":t===void 0?!0:void 0,"data-testid":"icon-renderer-placeholder"})}function DEe({identifier:e,className:t,ariaLabel:n,color:o}){const[r,a]=m.useState(null);if(m.useEffect(()=>{let s=!0;return TEe().then(c=>{s&&a(c)}),()=>{s=!1}},[]),!r)return MQ(t,n);const i=r.Icon;return f.jsx(i,{icon:e,className:t,color:o,"aria-label":n,"aria-hidden":n===void 0?!0:void 0})}function Qi({iconId:e,studioBaseUrl:t,className:n,ariaLabel:o,color:r,strokeWidth:a,absoluteStrokeWidth:i}){const s=PEe(e,{studioBaseUrl:t});if(!s)return MQ(n,o);if(s.kind==="lucide"){const c=s.component;return f.jsx(c,{className:n,color:r,strokeWidth:a,absoluteStrokeWidth:i,"aria-label":o,"aria-hidden":o===void 0?!0:void 0})}return s.kind==="svg-url"?f.jsx("img",{src:s.url,loading:"lazy",draggable:!1,className:n,alt:o??"","aria-hidden":o===void 0?!0:void 0}):f.jsx(DEe,{identifier:s.identifier,className:n,ariaLabel:o,color:r})}const HEe={studioBaseUrl:""},Tf=m.createContext(HEe);function OEe({value:e,children:t}){return f.jsx(Tf.Provider,{value:e,children:t})}function tq(){return m.useContext(Tf)}const FEe=[".png",".jpg",".jpeg",".gif",".webp",".svg"],qEe=400,WH={width:200,height:200},VEe=e=>{const t=e.lastIndexOf(".");return t>=0?e.slice(t).toLowerCase():""},BEe=e=>{if(e.type.startsWith("image/")){const t=e.type.slice(6).toLowerCase();if(t==="png"||t==="jpeg"||t==="jpg"||t==="gif"||t==="webp"||t==="svg+xml")return!0}return FEe.includes(VEe(e.name))},UEe=e=>{if(!e)return[];const t=e.files;if(!t||t.length===0)return[];const n=[];for(let o=0;o<t.length;o++){const r=t.item(o);r&&BEe(r)&&n.push(r)}return n},WEe=(e,t=qEe)=>{if(e.width<=0||e.height<=0)return{...WH};const n=Math.max(e.width,e.height);if(n<=t)return{width:Math.round(e.width),height:Math.round(e.height)};const o=t/n;return{width:Math.round(e.width*o),height:Math.round(e.height*o)}},GEe=24,KEe=4,XEe=(e,t,n=GEe,o=KEe)=>{if(e.length===0)return[];const r=Math.min(e.length,Math.max(1,o)),a=Math.ceil(e.length/r),i=new Array(r).fill(0),s=new Array(a).fill(0);e.forEach((g,k)=>{const x=k%r,v=Math.floor(k/r);i[x]=Math.max(i[x],g.width),s[v]=Math.max(s[v],g.height)});const c=new Array(r).fill(0);for(let g=1;g<r;g++)c[g]=c[g-1]+i[g-1]+n;const l=new Array(a).fill(0);for(let g=1;g<a;g++)l[g]=l[g-1]+s[g-1]+n;const h=i.reduce((g,k)=>g+k,0)+n*(r-1),d=s.reduce((g,k)=>g+k,0)+n*(a-1),p=t.x-h/2,y=t.y-d/2;return e.map((g,k)=>{const x=k%r,v=Math.floor(k/r);return{x:p+c[x],y:y+l[v]}})},ZEe=async e=>{const t=UEe(e.dataTransfer);if(t.length===0||!e.rfInstance)return!1;const n=e.rfInstance.screenToFlowPosition(e.clientPos),o=await Promise.all(t.map(a=>e.computeDims(a))),r=XEe(o,n);return t.forEach((a,i)=>{e.dispatch({file:a,position:r[i],dims:o[i],originalFilename:a.name})}),!0},YEe=e=>new Promise(t=>{let n=null;const o=a=>{n&&URL.revokeObjectURL(n),t(a)};try{n=URL.createObjectURL(e)}catch{t({...WH});return}const r=new Image;r.onload=()=>{o(WEe({width:r.naturalWidth,height:r.naturalHeight}))},r.onerror=()=>{o({...WH})},r.src=n}),QEe=2048,JEe=e=>{const t=e.type.toLowerCase();return t==="image/png"||t==="image/jpeg"||t==="image/webp"},eje=async(e,t=QEe)=>{if(!JEe(e))return e;try{const n=await createImageBitmap(e),o=Math.max(n.width,n.height);if(o<=t)return n.close(),e;const r=t/o,a=Math.round(n.width*r),i=Math.round(n.height*r),s=document.createElement("canvas");s.width=a,s.height=i;const c=s.getContext("2d");if(!c)return n.close(),e;c.drawImage(n,0,0,a,i),n.close();const l=await new Promise(h=>{s.toBlob(d=>h(d),e.type)});return l?new File([l],e.name,{type:e.type,lastModified:e.lastModified}):e}catch{return e}};function bQ(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=bQ(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function _Q(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=bQ(e))&&(o&&(o+=" "),o+=t);return o}const nq="-",tje=e=>{const t=oje(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const s=i.split(nq);return s[0]===""&&s.length!==1&&s.shift(),CQ(s,t)||nje(i)},getConflictingClassGroupIds:(i,s)=>{const c=n[i]||[];return s&&o[i]?[...c,...o[i]]:c}}},CQ=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),r=o?CQ(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;const a=e.join(nq);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},vU=/^\[(.+)\]$/,nje=e=>{if(vU.test(e)){const t=vU.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},oje=e=>{const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return aje(Object.entries(e.classGroups),n).forEach(([a,i])=>{GH(i,o,a,t)}),o},GH=(e,t,n,o)=>{e.forEach(r=>{if(typeof r=="string"){const a=r===""?t:xU(t,r);a.classGroupId=n;return}if(typeof r=="function"){if(rje(r)){GH(r(o),t,n,o);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([a,i])=>{GH(i,xU(t,a),n,o)})})},xU=(e,t)=>{let n=e;return t.split(nq).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n},rje=e=>e.isThemeGetter,aje=(e,t)=>t?e.map(([n,o])=>{const r=o.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[t+i,s])):a);return[n,r]}):e,ije=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const r=(a,i)=>{n.set(a,i),t++,t>e&&(t=0,o=n,n=new Map)};return{get(a){let i=n.get(a);if(i!==void 0)return i;if((i=o.get(a))!==void 0)return r(a,i),i},set(a,i){n.has(a)?n.set(a,i):r(a,i)}}},SQ="!",sje=e=>{const{separator:t,experimentalParseClassName:n}=e,o=t.length===1,r=t[0],a=t.length,i=s=>{const c=[];let l=0,h=0,d;for(let x=0;x<s.length;x++){let v=s[x];if(l===0){if(v===r&&(o||s.slice(x,x+a)===t)){c.push(s.slice(h,x)),h=x+a;continue}if(v==="/"){d=x;continue}}v==="["?l++:v==="]"&&l--}const p=c.length===0?s:s.substring(h),y=p.startsWith(SQ),g=y?p.substring(1):p,k=d&&d>h?d-h:void 0;return{modifiers:c,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:k}};return n?s=>n({className:s,parseClassName:i}):i},cje=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(o=>{o[0]==="["?(t.push(...n.sort(),o),n=[]):n.push(o)}),t.push(...n.sort()),t},lje=e=>({cache:ije(e.cacheSize),parseClassName:sje(e),...tje(e)}),dje=/\s+/,uje=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r}=t,a=[],i=e.trim().split(dje);let s="";for(let c=i.length-1;c>=0;c-=1){const l=i[c],{modifiers:h,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:y}=n(l);let g=!!y,k=o(g?p.substring(0,y):p);if(!k){if(!g){s=l+(s.length>0?" "+s:s);continue}if(k=o(p),!k){s=l+(s.length>0?" "+s:s);continue}g=!1}const x=cje(h).join(":"),v=d?x+SQ:x,M=v+k;if(a.includes(M))continue;a.push(M);const w=r(k,g);for(let b=0;b<w.length;++b){const C=w[b];a.push(v+C)}s=l+(s.length>0?" "+s:s)}return s};function hje(){let e=0,t,n,o="";for(;e<arguments.length;)(t=arguments[e++])&&(n=LQ(t))&&(o&&(o+=" "),o+=n);return o}const LQ=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=LQ(e[o]))&&(n&&(n+=" "),n+=t);return n};function fje(e,...t){let n,o,r,a=i;function i(c){const l=t.reduce((h,d)=>d(h),e());return n=lje(l),o=n.cache.get,r=n.cache.set,a=s,s(c)}function s(c){const l=o(c);if(l)return l;const h=uje(c,n);return r(c,h),h}return function(){return a(hje.apply(null,arguments))}}const Nt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},NQ=/^\[(?:([a-z-]+):)?(.+)\]$/i,pje=/^\d+\/\d+$/,yje=new Set(["px","full","screen"]),mje=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gje=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,kje=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vje=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xje=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Sa=e=>_0(e)||yje.has(e)||pje.test(e),hi=e=>ch(e,"length",Nje),_0=e=>!!e&&!Number.isNaN(Number(e)),KT=e=>ch(e,"number",_0),Dh=e=>!!e&&Number.isInteger(Number(e)),wje=e=>e.endsWith("%")&&_0(e.slice(0,-1)),Ge=e=>NQ.test(e),fi=e=>mje.test(e),Mje=new Set(["length","size","percentage"]),bje=e=>ch(e,Mje,IQ),_je=e=>ch(e,"position",IQ),Cje=new Set(["image","url"]),Sje=e=>ch(e,Cje,Aje),Lje=e=>ch(e,"",Ije),Hh=()=>!0,ch=(e,t,n)=>{const o=NQ.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):n(o[2]):!1},Nje=e=>gje.test(e)&&!kje.test(e),IQ=()=>!1,Ije=e=>vje.test(e),Aje=e=>xje.test(e),Eje=()=>{const e=Nt("colors"),t=Nt("spacing"),n=Nt("blur"),o=Nt("brightness"),r=Nt("borderColor"),a=Nt("borderRadius"),i=Nt("borderSpacing"),s=Nt("borderWidth"),c=Nt("contrast"),l=Nt("grayscale"),h=Nt("hueRotate"),d=Nt("invert"),p=Nt("gap"),y=Nt("gradientColorStops"),g=Nt("gradientColorStopPositions"),k=Nt("inset"),x=Nt("margin"),v=Nt("opacity"),M=Nt("padding"),w=Nt("saturate"),b=Nt("scale"),C=Nt("sepia"),_=Nt("skew"),S=Nt("space"),L=Nt("translate"),A=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto",Ge,t],j=()=>[Ge,t],V=()=>["",Sa,hi],$=()=>["auto",_0,Ge],T=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],E=()=>["","0",Ge],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[_0,Ge];return{cacheSize:500,separator:":",theme:{colors:[Hh],spacing:[Sa,hi],blur:["none","",fi,Ge],brightness:W(),borderColor:[e],borderRadius:["none","","full",fi,Ge],borderSpacing:j(),borderWidth:V(),contrast:W(),grayscale:E(),hueRotate:W(),invert:E(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[wje,hi],inset:R(),margin:R(),opacity:W(),padding:j(),saturate:W(),scale:W(),sepia:E(),skew:W(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",Ge]}],container:["container"],columns:[{columns:[fi]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...T(),Ge]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Dh,Ge]}],basis:[{basis:R()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ge]}],grow:[{grow:E()}],shrink:[{shrink:E()}],order:[{order:["first","last","none",Dh,Ge]}],"grid-cols":[{"grid-cols":[Hh]}],"col-start-end":[{col:["auto",{span:["full",Dh,Ge]},Ge]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[Hh]}],"row-start-end":[{row:["auto",{span:[Dh,Ge]},Ge]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ge]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ge]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[M]}],px:[{px:[M]}],py:[{py:[M]}],ps:[{ps:[M]}],pe:[{pe:[M]}],pt:[{pt:[M]}],pr:[{pr:[M]}],pb:[{pb:[M]}],pl:[{pl:[M]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ge,t]}],"min-w":[{"min-w":[Ge,t,"min","max","fit"]}],"max-w":[{"max-w":[Ge,t,"none","full","min","max","fit","prose",{screen:[fi]},fi]}],h:[{h:[Ge,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ge,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ge,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ge,t,"auto","min","max","fit"]}],"font-size":[{text:["base",fi,hi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",KT]}],"font-family":[{font:[Hh]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ge]}],"line-clamp":[{"line-clamp":["none",_0,KT]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Sa,Ge]}],"list-image":[{"list-image":["none",Ge]}],"list-style-type":[{list:["none","disc","decimal",Ge]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Sa,hi]}],"underline-offset":[{"underline-offset":["auto",Sa,Ge]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...T(),_je]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",bje]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Sje]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:D()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...D()]}],"outline-offset":[{"outline-offset":[Sa,Ge]}],"outline-w":[{outline:[Sa,hi]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Sa,hi]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",fi,Lje]}],"shadow-color":[{shadow:[Hh]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",fi,Ge]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ge]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",Ge]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ge]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[Dh,Ge]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ge]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ge]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ge]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Sa,hi,KT]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},jje=fje(Eje);function ee(...e){return jje(_Q(e))}function Yt(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,o;n<e.length;n++)(o=Yt(e[n]))!==""&&(t+=(t&&" ")+o);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var $je={value:()=>{}};function hR(){for(var e=0,t=arguments.length,n={},o;e<t;++e){if(!(o=arguments[e]+"")||o in n||/[\s.]/.test(o))throw new Error("illegal type: "+o);n[o]=[]}return new xP(n)}function xP(e){this._=e}function Pje(e,t){return e.trim().split(/^|\s+/).map(function(n){var o="",r=n.indexOf(".");if(r>=0&&(o=n.slice(r+1),n=n.slice(0,r)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}xP.prototype=hR.prototype={constructor:xP,on:function(e,t){var n=this._,o=Pje(e+"",n),r,a=-1,i=o.length;if(arguments.length<2){for(;++a<i;)if((r=(e=o[a]).type)&&(r=zje(n[r],e.name)))return r;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<i;)if(r=(e=o[a]).type)n[r]=wU(n[r],e.name,t);else if(t==null)for(r in n)n[r]=wU(n[r],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new xP(e)},call:function(e,t){if((r=arguments.length-2)>0)for(var n=new Array(r),o=0,r,a;o<r;++o)n[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],o=0,r=a.length;o<r;++o)a[o].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],r=0,a=o.length;r<a;++r)o[r].value.apply(t,n)}};function zje(e,t){for(var n=0,o=e.length,r;n<o;++n)if((r=e[n]).name===t)return r.value}function wU(e,t,n){for(var o=0,r=e.length;o<r;++o)if(e[o].name===t){e[o]=$je,e=e.slice(0,o).concat(e.slice(o+1));break}return n!=null&&e.push({name:t,value:n}),e}var KH="http://www.w3.org/1999/xhtml";const MU={svg:"http://www.w3.org/2000/svg",xhtml:KH,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function fR(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),MU.hasOwnProperty(t)?{space:MU[t],local:e}:e}function Rje(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===KH&&t.documentElement.namespaceURI===KH?t.createElement(e):t.createElementNS(n,e)}}function Tje(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function AQ(e){var t=fR(e);return(t.local?Tje:Rje)(t)}function Dje(){}function oq(e){return e==null?Dje:function(){return this.querySelector(e)}}function Hje(e){typeof e!="function"&&(e=oq(e));for(var t=this._groups,n=t.length,o=new Array(n),r=0;r<n;++r)for(var a=t[r],i=a.length,s=o[r]=new Array(i),c,l,h=0;h<i;++h)(c=a[h])&&(l=e.call(c,c.__data__,h,a))&&("__data__"in c&&(l.__data__=c.__data__),s[h]=l);return new wo(o,this._parents)}function Oje(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Fje(){return[]}function EQ(e){return e==null?Fje:function(){return this.querySelectorAll(e)}}function qje(e){return function(){return Oje(e.apply(this,arguments))}}function Vje(e){typeof e=="function"?e=qje(e):e=EQ(e);for(var t=this._groups,n=t.length,o=[],r=[],a=0;a<n;++a)for(var i=t[a],s=i.length,c,l=0;l<s;++l)(c=i[l])&&(o.push(e.call(c,c.__data__,l,i)),r.push(c));return new wo(o,r)}function jQ(e){return function(){return this.matches(e)}}function $Q(e){return function(t){return t.matches(e)}}var Bje=Array.prototype.find;function Uje(e){return function(){return Bje.call(this.children,e)}}function Wje(){return this.firstElementChild}function Gje(e){return this.select(e==null?Wje:Uje(typeof e=="function"?e:$Q(e)))}var Kje=Array.prototype.filter;function Xje(){return Array.from(this.children)}function Zje(e){return function(){return Kje.call(this.children,e)}}function Yje(e){return this.selectAll(e==null?Xje:Zje(typeof e=="function"?e:$Q(e)))}function Qje(e){typeof e!="function"&&(e=jQ(e));for(var t=this._groups,n=t.length,o=new Array(n),r=0;r<n;++r)for(var a=t[r],i=a.length,s=o[r]=[],c,l=0;l<i;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new wo(o,this._parents)}function PQ(e){return new Array(e.length)}function Jje(){return new wo(this._enter||this._groups.map(PQ),this._parents)}function sz(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}sz.prototype={constructor:sz,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 e$e(e){return function(){return e}}function t$e(e,t,n,o,r,a){for(var i=0,s,c=t.length,l=a.length;i<l;++i)(s=t[i])?(s.__data__=a[i],o[i]=s):n[i]=new sz(e,a[i]);for(;i<c;++i)(s=t[i])&&(r[i]=s)}function n$e(e,t,n,o,r,a,i){var s,c,l=new Map,h=t.length,d=a.length,p=new Array(h),y;for(s=0;s<h;++s)(c=t[s])&&(p[s]=y=i.call(c,c.__data__,s,t)+"",l.has(y)?r[s]=c:l.set(y,c));for(s=0;s<d;++s)y=i.call(e,a[s],s,a)+"",(c=l.get(y))?(o[s]=c,c.__data__=a[s],l.delete(y)):n[s]=new sz(e,a[s]);for(s=0;s<h;++s)(c=t[s])&&l.get(p[s])===c&&(r[s]=c)}function o$e(e){return e.__data__}function r$e(e,t){if(!arguments.length)return Array.from(this,o$e);var n=t?n$e:t$e,o=this._parents,r=this._groups;typeof e!="function"&&(e=e$e(e));for(var a=r.length,i=new Array(a),s=new Array(a),c=new Array(a),l=0;l<a;++l){var h=o[l],d=r[l],p=d.length,y=a$e(e.call(h,h&&h.__data__,l,o)),g=y.length,k=s[l]=new Array(g),x=i[l]=new Array(g),v=c[l]=new Array(p);n(h,d,k,x,v,y,t);for(var M=0,w=0,b,C;M<g;++M)if(b=k[M]){for(M>=w&&(w=M+1);!(C=x[w])&&++w<g;);b._next=C||null}}return i=new wo(i,o),i._enter=s,i._exit=c,i}function a$e(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function i$e(){return new wo(this._exit||this._groups.map(PQ),this._parents)}function s$e(e,t,n){var o=this.enter(),r=this,a=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(r=t(r),r&&(r=r.selection())),n==null?a.remove():n(a),o&&r?o.merge(r).order():r}function c$e(e){for(var t=e.selection?e.selection():e,n=this._groups,o=t._groups,r=n.length,a=o.length,i=Math.min(r,a),s=new Array(r),c=0;c<i;++c)for(var l=n[c],h=o[c],d=l.length,p=s[c]=new Array(d),y,g=0;g<d;++g)(y=l[g]||h[g])&&(p[g]=y);for(;c<r;++c)s[c]=n[c];return new wo(s,this._parents)}function l$e(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var o=e[t],r=o.length-1,a=o[r],i;--r>=0;)(i=o[r])&&(a&&i.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(i,a),a=i);return this}function d$e(e){e||(e=u$e);function t(d,p){return d&&p?e(d.__data__,p.__data__):!d-!p}for(var n=this._groups,o=n.length,r=new Array(o),a=0;a<o;++a){for(var i=n[a],s=i.length,c=r[a]=new Array(s),l,h=0;h<s;++h)(l=i[h])&&(c[h]=l);c.sort(t)}return new wo(r,this._parents).order()}function u$e(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function h$e(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function f$e(){return Array.from(this)}function p$e(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var o=e[t],r=0,a=o.length;r<a;++r){var i=o[r];if(i)return i}return null}function y$e(){let e=0;for(const t of this)++e;return e}function m$e(){return!this.node()}function g$e(e){for(var t=this._groups,n=0,o=t.length;n<o;++n)for(var r=t[n],a=0,i=r.length,s;a<i;++a)(s=r[a])&&e.call(s,s.__data__,a,r);return this}function k$e(e){return function(){this.removeAttribute(e)}}function v$e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function x$e(e,t){return function(){this.setAttribute(e,t)}}function w$e(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function M$e(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function b$e(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function _$e(e,t){var n=fR(e);if(arguments.length<2){var o=this.node();return n.local?o.getAttributeNS(n.space,n.local):o.getAttribute(n)}return this.each((t==null?n.local?v$e:k$e:typeof t=="function"?n.local?b$e:M$e:n.local?w$e:x$e)(n,t))}function zQ(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function C$e(e){return function(){this.style.removeProperty(e)}}function S$e(e,t,n){return function(){this.style.setProperty(e,t,n)}}function L$e(e,t,n){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,n)}}function N$e(e,t,n){return arguments.length>1?this.each((t==null?C$e:typeof t=="function"?L$e:S$e)(e,t,n??"")):D0(this.node(),e)}function D0(e,t){return e.style.getPropertyValue(t)||zQ(e).getComputedStyle(e,null).getPropertyValue(t)}function I$e(e){return function(){delete this[e]}}function A$e(e,t){return function(){this[e]=t}}function E$e(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function j$e(e,t){return arguments.length>1?this.each((t==null?I$e:typeof t=="function"?E$e:A$e)(e,t)):this.node()[e]}function RQ(e){return e.trim().split(/^|\s+/)}function rq(e){return e.classList||new TQ(e)}function TQ(e){this._node=e,this._names=RQ(e.getAttribute("class")||"")}TQ.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 DQ(e,t){for(var n=rq(e),o=-1,r=t.length;++o<r;)n.add(t[o])}function HQ(e,t){for(var n=rq(e),o=-1,r=t.length;++o<r;)n.remove(t[o])}function $$e(e){return function(){DQ(this,e)}}function P$e(e){return function(){HQ(this,e)}}function z$e(e,t){return function(){(t.apply(this,arguments)?DQ:HQ)(this,e)}}function R$e(e,t){var n=RQ(e+"");if(arguments.length<2){for(var o=rq(this.node()),r=-1,a=n.length;++r<a;)if(!o.contains(n[r]))return!1;return!0}return this.each((typeof t=="function"?z$e:t?$$e:P$e)(n,t))}function T$e(){this.textContent=""}function D$e(e){return function(){this.textContent=e}}function H$e(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function O$e(e){return arguments.length?this.each(e==null?T$e:(typeof e=="function"?H$e:D$e)(e)):this.node().textContent}function F$e(){this.innerHTML=""}function q$e(e){return function(){this.innerHTML=e}}function V$e(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function B$e(e){return arguments.length?this.each(e==null?F$e:(typeof e=="function"?V$e:q$e)(e)):this.node().innerHTML}function U$e(){this.nextSibling&&this.parentNode.appendChild(this)}function W$e(){return this.each(U$e)}function G$e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function K$e(){return this.each(G$e)}function X$e(e){var t=typeof e=="function"?e:AQ(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Z$e(){return null}function Y$e(e,t){var n=typeof e=="function"?e:AQ(e),o=t==null?Z$e:typeof t=="function"?t:oq(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),o.apply(this,arguments)||null)})}function Q$e(){var e=this.parentNode;e&&e.removeChild(this)}function J$e(){return this.each(Q$e)}function ePe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function tPe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function nPe(e){return this.select(e?tPe:ePe)}function oPe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function rPe(e){return function(t){e.call(this,t,this.__data__)}}function aPe(e){return e.trim().split(/^|\s+/).map(function(t){var n="",o=t.indexOf(".");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{type:t,name:n}})}function iPe(e){return function(){var t=this.__on;if(t){for(var n=0,o=-1,r=t.length,a;n<r;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++o]=a;++o?t.length=o:delete this.__on}}}function sPe(e,t,n){return function(){var o=this.__on,r,a=rPe(t);if(o){for(var i=0,s=o.length;i<s;++i)if((r=o[i]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),r.value=t;return}}this.addEventListener(e.type,a,n),r={type:e.type,name:e.name,value:t,listener:a,options:n},o?o.push(r):this.__on=[r]}}function cPe(e,t,n){var o=aPe(e+""),r,a=o.length,i;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,h;c<l;++c)for(r=0,h=s[c];r<a;++r)if((i=o[r]).type===h.type&&i.name===h.name)return h.value}return}for(s=t?sPe:iPe,r=0;r<a;++r)this.each(s(o[r],t,n));return this}function OQ(e,t,n){var o=zQ(e),r=o.CustomEvent;typeof r=="function"?r=new r(t,n):(r=o.document.createEvent("Event"),n?(r.initEvent(t,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(t,!1,!1)),e.dispatchEvent(r)}function lPe(e,t){return function(){return OQ(this,e,t)}}function dPe(e,t){return function(){return OQ(this,e,t.apply(this,arguments))}}function uPe(e,t){return this.each((typeof t=="function"?dPe:lPe)(e,t))}function*hPe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var o=e[t],r=0,a=o.length,i;r<a;++r)(i=o[r])&&(yield i)}var FQ=[null];function wo(e,t){this._groups=e,this._parents=t}function Df(){return new wo([[document.documentElement]],FQ)}function fPe(){return this}wo.prototype=Df.prototype={constructor:wo,select:Hje,selectAll:Vje,selectChild:Gje,selectChildren:Yje,filter:Qje,data:r$e,enter:Jje,exit:i$e,join:s$e,merge:c$e,selection:fPe,order:l$e,sort:d$e,call:h$e,nodes:f$e,node:p$e,size:y$e,empty:m$e,each:g$e,attr:_$e,style:N$e,property:j$e,classed:R$e,text:O$e,html:B$e,raise:W$e,lower:K$e,append:X$e,insert:Y$e,remove:J$e,clone:nPe,datum:oPe,on:cPe,dispatch:uPe,[Symbol.iterator]:hPe};function fo(e){return typeof e=="string"?new wo([[document.querySelector(e)]],[document.documentElement]):new wo([[e]],FQ)}function pPe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function er(e,t){if(e=pPe(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var o=n.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var r=t.getBoundingClientRect();return[e.clientX-r.left-t.clientLeft,e.clientY-r.top-t.clientTop]}}return[e.pageX,e.pageY]}const yPe={passive:!1},uf={capture:!0,passive:!1};function XT(e){e.stopImmediatePropagation()}function C0(e){e.preventDefault(),e.stopImmediatePropagation()}function qQ(e){var t=e.document.documentElement,n=fo(e).on("dragstart.drag",C0,uf);"onselectstart"in t?n.on("selectstart.drag",C0,uf):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function VQ(e,t){var n=e.document.documentElement,o=fo(e).on("dragstart.drag",null);t&&(o.on("click.drag",C0,uf),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Rp=e=>()=>e;function XH(e,{sourceEvent:t,subject:n,target:o,identifier:r,active:a,x:i,y:s,dx:c,dy:l,dispatch:h}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:r,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:i,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:h}})}XH.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function mPe(e){return!e.ctrlKey&&!e.button}function gPe(){return this.parentNode}function kPe(e,t){return t??{x:e.x,y:e.y}}function vPe(){return navigator.maxTouchPoints||"ontouchstart"in this}function BQ(){var e=mPe,t=gPe,n=kPe,o=vPe,r={},a=hR("start","drag","end"),i=0,s,c,l,h,d=0;function p(b){b.on("mousedown.drag",y).filter(o).on("touchstart.drag",x).on("touchmove.drag",v,yPe).on("touchend.drag touchcancel.drag",M).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(b,C){if(!(h||!e.call(this,b,C))){var _=w(this,t.call(this,b,C),b,C,"mouse");_&&(fo(b.view).on("mousemove.drag",g,uf).on("mouseup.drag",k,uf),qQ(b.view),XT(b),l=!1,s=b.clientX,c=b.clientY,_("start",b))}}function g(b){if(C0(b),!l){var C=b.clientX-s,_=b.clientY-c;l=C*C+_*_>d}r.mouse("drag",b)}function k(b){fo(b.view).on("mousemove.drag mouseup.drag",null),VQ(b.view,l),C0(b),r.mouse("end",b)}function x(b,C){if(e.call(this,b,C)){var _=b.changedTouches,S=t.call(this,b,C),L=_.length,A,I;for(A=0;A<L;++A)(I=w(this,S,b,C,_[A].identifier,_[A]))&&(XT(b),I("start",b,_[A]))}}function v(b){var C=b.changedTouches,_=C.length,S,L;for(S=0;S<_;++S)(L=r[C[S].identifier])&&(C0(b),L("drag",b,C[S]))}function M(b){var C=b.changedTouches,_=C.length,S,L;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),S=0;S<_;++S)(L=r[C[S].identifier])&&(XT(b),L("end",b,C[S]))}function w(b,C,_,S,L,A){var I=a.copy(),R=er(A||_,C),j,V,$;if(($=n.call(b,new XH("beforestart",{sourceEvent:_,target:p,identifier:L,active:i,x:R[0],y:R[1],dx:0,dy:0,dispatch:I}),S))!=null)return j=$.x-R[0]||0,V=$.y-R[1]||0,function T(D,F,z){var E=R,N;switch(D){case"start":r[L]=T,N=i++;break;case"end":delete r[L],--i;case"drag":R=er(z||F,C),N=i;break}I.call(D,b,new XH(D,{sourceEvent:F,subject:$,target:p,identifier:L,active:N,x:R[0]+j,y:R[1]+V,dx:R[0]-E[0],dy:R[1]-E[1],dispatch:I}),S)}}return p.filter=function(b){return arguments.length?(e=typeof b=="function"?b:Rp(!!b),p):e},p.container=function(b){return arguments.length?(t=typeof b=="function"?b:Rp(b),p):t},p.subject=function(b){return arguments.length?(n=typeof b=="function"?b:Rp(b),p):n},p.touchable=function(b){return arguments.length?(o=typeof b=="function"?b:Rp(!!b),p):o},p.on=function(){var b=a.on.apply(a,arguments);return b===a?p:b},p.clickDistance=function(b){return arguments.length?(d=(b=+b)*b,p):Math.sqrt(d)},p}function aq(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function UQ(e,t){var n=Object.create(e.prototype);for(var o in t)n[o]=t[o];return n}function Hf(){}var hf=.7,cz=1/hf,S0="\\s*([+-]?\\d+)\\s*",ff="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xPe=/^#([0-9a-f]{3,8})$/,wPe=new RegExp(`^rgb\\(${S0},${S0},${S0}\\)$`),MPe=new RegExp(`^rgb\\(${Qr},${Qr},${Qr}\\)$`),bPe=new RegExp(`^rgba\\(${S0},${S0},${S0},${ff}\\)$`),_Pe=new RegExp(`^rgba\\(${Qr},${Qr},${Qr},${ff}\\)$`),CPe=new RegExp(`^hsl\\(${ff},${Qr},${Qr}\\)$`),SPe=new RegExp(`^hsla\\(${ff},${Qr},${Qr},${ff}\\)$`),bU={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};aq(Hf,Zd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:_U,formatHex:_U,formatHex8:LPe,formatHsl:NPe,formatRgb:CU,toString:CU});function _U(){return this.rgb().formatHex()}function LPe(){return this.rgb().formatHex8()}function NPe(){return WQ(this).formatHsl()}function CU(){return this.rgb().formatRgb()}function Zd(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=xPe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?SU(t):n===3?new Kn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Tp(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===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=wPe.exec(e))?new Kn(t[1],t[2],t[3],1):(t=MPe.exec(e))?new Kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=bPe.exec(e))?Tp(t[1],t[2],t[3],t[4]):(t=_Pe.exec(e))?Tp(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=CPe.exec(e))?IU(t[1],t[2]/100,t[3]/100,1):(t=SPe.exec(e))?IU(t[1],t[2]/100,t[3]/100,t[4]):bU.hasOwnProperty(e)?SU(bU[e]):e==="transparent"?new Kn(NaN,NaN,NaN,0):null}function SU(e){return new Kn(e>>16&255,e>>8&255,e&255,1)}function Tp(e,t,n,o){return o<=0&&(e=t=n=NaN),new Kn(e,t,n,o)}function IPe(e){return e instanceof Hf||(e=Zd(e)),e?(e=e.rgb(),new Kn(e.r,e.g,e.b,e.opacity)):new Kn}function ZH(e,t,n,o){return arguments.length===1?IPe(e):new Kn(e,t,n,o??1)}function Kn(e,t,n,o){this.r=+e,this.g=+t,this.b=+n,this.opacity=+o}aq(Kn,ZH,UQ(Hf,{brighter(e){return e=e==null?cz:Math.pow(cz,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?hf:Math.pow(hf,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kn(Vd(this.r),Vd(this.g),Vd(this.b),lz(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:LU,formatHex:LU,formatHex8:APe,formatRgb:NU,toString:NU}));function LU(){return`#${Td(this.r)}${Td(this.g)}${Td(this.b)}`}function APe(){return`#${Td(this.r)}${Td(this.g)}${Td(this.b)}${Td((isNaN(this.opacity)?1:this.opacity)*255)}`}function NU(){const e=lz(this.opacity);return`${e===1?"rgb(":"rgba("}${Vd(this.r)}, ${Vd(this.g)}, ${Vd(this.b)}${e===1?")":`, ${e})`}`}function lz(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vd(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Td(e){return e=Vd(e),(e<16?"0":"")+e.toString(16)}function IU(e,t,n,o){return o<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new or(e,t,n,o)}function WQ(e){if(e instanceof or)return new or(e.h,e.s,e.l,e.opacity);if(e instanceof Hf||(e=Zd(e)),!e)return new or;if(e instanceof or)return e;e=e.rgb();var t=e.r/255,n=e.g/255,o=e.b/255,r=Math.min(t,n,o),a=Math.max(t,n,o),i=NaN,s=a-r,c=(a+r)/2;return s?(t===a?i=(n-o)/s+(n<o)*6:n===a?i=(o-t)/s+2:i=(t-n)/s+4,s/=c<.5?a+r:2-a-r,i*=60):s=c>0&&c<1?0:i,new or(i,s,c,e.opacity)}function EPe(e,t,n,o){return arguments.length===1?WQ(e):new or(e,t,n,o??1)}function or(e,t,n,o){this.h=+e,this.s=+t,this.l=+n,this.opacity=+o}aq(or,EPe,UQ(Hf,{brighter(e){return e=e==null?cz:Math.pow(cz,e),new or(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?hf:Math.pow(hf,e),new or(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,n=this.l,o=n+(n<.5?n:1-n)*t,r=2*n-o;return new Kn(ZT(e>=240?e-240:e+120,r,o),ZT(e,r,o),ZT(e<120?e+240:e-120,r,o),this.opacity)},clamp(){return new or(AU(this.h),Dp(this.s),Dp(this.l),lz(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=lz(this.opacity);return`${e===1?"hsl(":"hsla("}${AU(this.h)}, ${Dp(this.s)*100}%, ${Dp(this.l)*100}%${e===1?")":`, ${e})`}`}}));function AU(e){return e=(e||0)%360,e<0?e+360:e}function Dp(e){return Math.max(0,Math.min(1,e||0))}function ZT(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const pR=e=>()=>e;function GQ(e,t){return function(n){return e+n*t}}function jPe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(o){return Math.pow(e+o*t,n)}}function qst(e,t){var n=t-e;return n?GQ(e,n>180||n<-180?n-360*Math.round(n/360):n):pR(isNaN(e)?t:e)}function $Pe(e){return(e=+e)==1?KQ:function(t,n){return n-t?jPe(t,n,e):pR(isNaN(t)?n:t)}}function KQ(e,t){var n=t-e;return n?GQ(e,n):pR(isNaN(e)?t:e)}const dz=function e(t){var n=$Pe(t);function o(r,a){var i=n((r=ZH(r)).r,(a=ZH(a)).r),s=n(r.g,a.g),c=n(r.b,a.b),l=KQ(r.opacity,a.opacity);return function(h){return r.r=i(h),r.g=s(h),r.b=c(h),r.opacity=l(h),r+""}}return o.gamma=e,o}(1);function PPe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,o=t.slice(),r;return function(a){for(r=0;r<n;++r)o[r]=e[r]*(1-a)+t[r]*a;return o}}function zPe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function RPe(e,t){var n=t?t.length:0,o=e?Math.min(n,e.length):0,r=new Array(o),a=new Array(n),i;for(i=0;i<o;++i)r[i]=H2(e[i],t[i]);for(;i<n;++i)a[i]=t[i];return function(s){for(i=0;i<o;++i)a[i]=r[i](s);return a}}function TPe(e,t){var n=new Date;return e=+e,t=+t,function(o){return n.setTime(e*(1-o)+t*o),n}}function Vr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function DPe(e,t){var n={},o={},r;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(r in t)r in e?n[r]=H2(e[r],t[r]):o[r]=t[r];return function(a){for(r in n)o[r]=n[r](a);return o}}var YH=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,YT=new RegExp(YH.source,"g");function HPe(e){return function(){return e}}function OPe(e){return function(t){return e(t)+""}}function XQ(e,t){var n=YH.lastIndex=YT.lastIndex=0,o,r,a,i=-1,s=[],c=[];for(e=e+"",t=t+"";(o=YH.exec(e))&&(r=YT.exec(t));)(a=r.index)>n&&(a=t.slice(n,a),s[i]?s[i]+=a:s[++i]=a),(o=o[0])===(r=r[0])?s[i]?s[i]+=r:s[++i]=r:(s[++i]=null,c.push({i,x:Vr(o,r)})),n=YT.lastIndex;return n<t.length&&(a=t.slice(n),s[i]?s[i]+=a:s[++i]=a),s.length<2?c[0]?OPe(c[0].x):HPe(t):(t=c.length,function(l){for(var h=0,d;h<t;++h)s[(d=c[h]).i]=d.x(l);return s.join("")})}function H2(e,t){var n=typeof t,o;return t==null||n==="boolean"?pR(t):(n==="number"?Vr:n==="string"?(o=Zd(t))?(t=o,dz):XQ:t instanceof Zd?dz:t instanceof Date?TPe:zPe(t)?PPe:Array.isArray(t)?RPe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?DPe:Vr)(e,t)}var EU=180/Math.PI,QH={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ZQ(e,t,n,o,r,a){var i,s,c;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(c=e*n+t*o)&&(n-=e*c,o-=t*c),(s=Math.sqrt(n*n+o*o))&&(n/=s,o/=s,c/=s),e*o<t*n&&(e=-e,t=-t,c=-c,i=-i),{translateX:r,translateY:a,rotate:Math.atan2(t,e)*EU,skewX:Math.atan(c)*EU,scaleX:i,scaleY:s}}var Hp;function FPe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?QH:ZQ(t.a,t.b,t.c,t.d,t.e,t.f)}function qPe(e){return e==null||(Hp||(Hp=document.createElementNS("http://www.w3.org/2000/svg","g")),Hp.setAttribute("transform",e),!(e=Hp.transform.baseVal.consolidate()))?QH:(e=e.matrix,ZQ(e.a,e.b,e.c,e.d,e.e,e.f))}function YQ(e,t,n,o){function r(l){return l.length?l.pop()+" ":""}function a(l,h,d,p,y,g){if(l!==d||h!==p){var k=y.push("translate(",null,t,null,n);g.push({i:k-4,x:Vr(l,d)},{i:k-2,x:Vr(h,p)})}else(d||p)&&y.push("translate("+d+t+p+n)}function i(l,h,d,p){l!==h?(l-h>180?h+=360:h-l>180&&(l+=360),p.push({i:d.push(r(d)+"rotate(",null,o)-2,x:Vr(l,h)})):h&&d.push(r(d)+"rotate("+h+o)}function s(l,h,d,p){l!==h?p.push({i:d.push(r(d)+"skewX(",null,o)-2,x:Vr(l,h)}):h&&d.push(r(d)+"skewX("+h+o)}function c(l,h,d,p,y,g){if(l!==d||h!==p){var k=y.push(r(y)+"scale(",null,",",null,")");g.push({i:k-4,x:Vr(l,d)},{i:k-2,x:Vr(h,p)})}else(d!==1||p!==1)&&y.push(r(y)+"scale("+d+","+p+")")}return function(l,h){var d=[],p=[];return l=e(l),h=e(h),a(l.translateX,l.translateY,h.translateX,h.translateY,d,p),i(l.rotate,h.rotate,d,p),s(l.skewX,h.skewX,d,p),c(l.scaleX,l.scaleY,h.scaleX,h.scaleY,d,p),l=h=null,function(y){for(var g=-1,k=p.length,x;++g<k;)d[(x=p[g]).i]=x.x(y);return d.join("")}}}var VPe=YQ(FPe,"px, ","px)","deg)"),BPe=YQ(qPe,", ",")",")"),UPe=1e-12;function jU(e){return((e=Math.exp(e))+1/e)/2}function WPe(e){return((e=Math.exp(e))-1/e)/2}function GPe(e){return((e=Math.exp(2*e))-1)/(e+1)}const wP=function e(t,n,o){function r(a,i){var s=a[0],c=a[1],l=a[2],h=i[0],d=i[1],p=i[2],y=h-s,g=d-c,k=y*y+g*g,x,v;if(k<UPe)v=Math.log(p/l)/t,x=function(S){return[s+S*y,c+S*g,l*Math.exp(t*S*v)]};else{var M=Math.sqrt(k),w=(p*p-l*l+o*k)/(2*l*n*M),b=(p*p-l*l-o*k)/(2*p*n*M),C=Math.log(Math.sqrt(w*w+1)-w),_=Math.log(Math.sqrt(b*b+1)-b);v=(_-C)/t,x=function(S){var L=S*v,A=jU(C),I=l/(n*M)*(A*GPe(t*L+C)-WPe(C));return[s+I*y,c+I*g,l*A/jU(t*L+C)]}}return x.duration=v*1e3*t/Math.SQRT2,x}return r.rho=function(a){var i=Math.max(.001,+a),s=i*i,c=s*s;return e(i,s,c)},r}(Math.SQRT2,2,4);var H0=0,Yh=0,Oh=0,QQ=1e3,uz,Qh,hz=0,Yd=0,yR=0,pf=typeof performance=="object"&&performance.now?performance:Date,JQ=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function iq(){return Yd||(JQ(KPe),Yd=pf.now()+yR)}function KPe(){Yd=0}function fz(){this._call=this._time=this._next=null}fz.prototype=eJ.prototype={constructor:fz,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?iq():+n)+(t==null?0:+t),!this._next&&Qh!==this&&(Qh?Qh._next=this:uz=this,Qh=this),this._call=e,this._time=n,JH()},stop:function(){this._call&&(this._call=null,this._time=1/0,JH())}};function eJ(e,t,n){var o=new fz;return o.restart(e,t,n),o}function XPe(){iq(),++H0;for(var e=uz,t;e;)(t=Yd-e._time)>=0&&e._call.call(void 0,t),e=e._next;--H0}function $U(){Yd=(hz=pf.now())+yR,H0=Yh=0;try{XPe()}finally{H0=0,YPe(),Yd=0}}function ZPe(){var e=pf.now(),t=e-hz;t>QQ&&(yR-=t,hz=e)}function YPe(){for(var e,t=uz,n,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:uz=n);Qh=e,JH(o)}function JH(e){if(!H0){Yh&&(Yh=clearTimeout(Yh));var t=e-Yd;t>24?(e<1/0&&(Yh=setTimeout($U,e-pf.now()-yR)),Oh&&(Oh=clearInterval(Oh))):(Oh||(hz=pf.now(),Oh=setInterval(ZPe,QQ)),H0=1,JQ($U))}}function PU(e,t,n){var o=new fz;return t=t==null?0:+t,o.restart(r=>{o.stop(),e(r+t)},t,n),o}var QPe=hR("start","end","cancel","interrupt"),JPe=[],tJ=0,zU=1,eO=2,MP=3,RU=4,tO=5,bP=6;function mR(e,t,n,o,r,a){var i=e.__transition;if(!i)e.__transition={};else if(n in i)return;eze(e,n,{name:t,index:o,group:r,on:QPe,tween:JPe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:tJ})}function sq(e,t){var n=pr(e,t);if(n.state>tJ)throw new Error("too late; already scheduled");return n}function aa(e,t){var n=pr(e,t);if(n.state>MP)throw new Error("too late; already running");return n}function pr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function eze(e,t,n){var o=e.__transition,r;o[t]=n,n.timer=eJ(a,0,n.time);function a(l){n.state=zU,n.timer.restart(i,n.delay,n.time),n.delay<=l&&i(l-n.delay)}function i(l){var h,d,p,y;if(n.state!==zU)return c();for(h in o)if(y=o[h],y.name===n.name){if(y.state===MP)return PU(i);y.state===RU?(y.state=bP,y.timer.stop(),y.on.call("interrupt",e,e.__data__,y.index,y.group),delete o[h]):+h<t&&(y.state=bP,y.timer.stop(),y.on.call("cancel",e,e.__data__,y.index,y.group),delete o[h])}if(PU(function(){n.state===MP&&(n.state=RU,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=eO,n.on.call("start",e,e.__data__,n.index,n.group),n.state===eO){for(n.state=MP,r=new Array(p=n.tween.length),h=0,d=-1;h<p;++h)(y=n.tween[h].value.call(e,e.__data__,n.index,n.group))&&(r[++d]=y);r.length=d+1}}function s(l){for(var h=l<n.duration?n.ease.call(null,l/n.duration):(n.timer.restart(c),n.state=tO,1),d=-1,p=r.length;++d<p;)r[d].call(e,h);n.state===tO&&(n.on.call("end",e,e.__data__,n.index,n.group),c())}function c(){n.state=bP,n.timer.stop(),delete o[t];for(var l in o)return;delete e.__transition}}function _P(e,t){var n=e.__transition,o,r,a=!0,i;if(n){t=t==null?null:t+"";for(i in n){if((o=n[i]).name!==t){a=!1;continue}r=o.state>eO&&o.state<tO,o.state=bP,o.timer.stop(),o.on.call(r?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete n[i]}a&&delete e.__transition}}function tze(e){return this.each(function(){_P(this,e)})}function nze(e,t){var n,o;return function(){var r=aa(this,e),a=r.tween;if(a!==n){o=n=a;for(var i=0,s=o.length;i<s;++i)if(o[i].name===t){o=o.slice(),o.splice(i,1);break}}r.tween=o}}function oze(e,t,n){var o,r;if(typeof n!="function")throw new Error;return function(){var a=aa(this,e),i=a.tween;if(i!==o){r=(o=i).slice();for(var s={name:t,value:n},c=0,l=r.length;c<l;++c)if(r[c].name===t){r[c]=s;break}c===l&&r.push(s)}a.tween=r}}function rze(e,t){var n=this._id;if(e+="",arguments.length<2){for(var o=pr(this.node(),n).tween,r=0,a=o.length,i;r<a;++r)if((i=o[r]).name===e)return i.value;return null}return this.each((t==null?nze:oze)(n,e,t))}function cq(e,t,n){var o=e._id;return e.each(function(){var r=aa(this,o);(r.value||(r.value={}))[t]=n.apply(this,arguments)}),function(r){return pr(r,o).value[t]}}function nJ(e,t){var n;return(typeof t=="number"?Vr:t instanceof Zd?dz:(n=Zd(t))?(t=n,dz):XQ)(e,t)}function aze(e){return function(){this.removeAttribute(e)}}function ize(e){return function(){this.removeAttributeNS(e.space,e.local)}}function sze(e,t,n){var o,r=n+"",a;return function(){var i=this.getAttribute(e);return i===r?null:i===o?a:a=t(o=i,n)}}function cze(e,t,n){var o,r=n+"",a;return function(){var i=this.getAttributeNS(e.space,e.local);return i===r?null:i===o?a:a=t(o=i,n)}}function lze(e,t,n){var o,r,a;return function(){var i,s=n(this),c;return s==null?void this.removeAttribute(e):(i=this.getAttribute(e),c=s+"",i===c?null:i===o&&c===r?a:(r=c,a=t(o=i,s)))}}function dze(e,t,n){var o,r,a;return function(){var i,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(i=this.getAttributeNS(e.space,e.local),c=s+"",i===c?null:i===o&&c===r?a:(r=c,a=t(o=i,s)))}}function uze(e,t){var n=fR(e),o=n==="transform"?BPe:nJ;return this.attrTween(e,typeof t=="function"?(n.local?dze:lze)(n,o,cq(this,"attr."+e,t)):t==null?(n.local?ize:aze)(n):(n.local?cze:sze)(n,o,t))}function hze(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function fze(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function pze(e,t){var n,o;function r(){var a=t.apply(this,arguments);return a!==o&&(n=(o=a)&&fze(e,a)),n}return r._value=t,r}function yze(e,t){var n,o;function r(){var a=t.apply(this,arguments);return a!==o&&(n=(o=a)&&hze(e,a)),n}return r._value=t,r}function mze(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var o=fR(e);return this.tween(n,(o.local?pze:yze)(o,t))}function gze(e,t){return function(){sq(this,e).delay=+t.apply(this,arguments)}}function kze(e,t){return t=+t,function(){sq(this,e).delay=t}}function vze(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?gze:kze)(t,e)):pr(this.node(),t).delay}function xze(e,t){return function(){aa(this,e).duration=+t.apply(this,arguments)}}function wze(e,t){return t=+t,function(){aa(this,e).duration=t}}function Mze(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?xze:wze)(t,e)):pr(this.node(),t).duration}function bze(e,t){if(typeof t!="function")throw new Error;return function(){aa(this,e).ease=t}}function _ze(e){var t=this._id;return arguments.length?this.each(bze(t,e)):pr(this.node(),t).ease}function Cze(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;aa(this,e).ease=n}}function Sze(e){if(typeof e!="function")throw new Error;return this.each(Cze(this._id,e))}function Lze(e){typeof e!="function"&&(e=jQ(e));for(var t=this._groups,n=t.length,o=new Array(n),r=0;r<n;++r)for(var a=t[r],i=a.length,s=o[r]=[],c,l=0;l<i;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Ba(o,this._parents,this._name,this._id)}function Nze(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,o=t.length,r=n.length,a=Math.min(o,r),i=new Array(o),s=0;s<a;++s)for(var c=t[s],l=n[s],h=c.length,d=i[s]=new Array(h),p,y=0;y<h;++y)(p=c[y]||l[y])&&(d[y]=p);for(;s<o;++s)i[s]=t[s];return new Ba(i,this._parents,this._name,this._id)}function Ize(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function Aze(e,t,n){var o,r,a=Ize(t)?sq:aa;return function(){var i=a(this,e),s=i.on;s!==o&&(r=(o=s).copy()).on(t,n),i.on=r}}function Eze(e,t){var n=this._id;return arguments.length<2?pr(this.node(),n).on.on(e):this.each(Aze(n,e,t))}function jze(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function $ze(){return this.on("end.remove",jze(this._id))}function Pze(e){var t=this._name,n=this._id;typeof e!="function"&&(e=oq(e));for(var o=this._groups,r=o.length,a=new Array(r),i=0;i<r;++i)for(var s=o[i],c=s.length,l=a[i]=new Array(c),h,d,p=0;p<c;++p)(h=s[p])&&(d=e.call(h,h.__data__,p,s))&&("__data__"in h&&(d.__data__=h.__data__),l[p]=d,mR(l[p],t,n,p,l,pr(h,n)));return new Ba(a,this._parents,t,n)}function zze(e){var t=this._name,n=this._id;typeof e!="function"&&(e=EQ(e));for(var o=this._groups,r=o.length,a=[],i=[],s=0;s<r;++s)for(var c=o[s],l=c.length,h,d=0;d<l;++d)if(h=c[d]){for(var p=e.call(h,h.__data__,d,c),y,g=pr(h,n),k=0,x=p.length;k<x;++k)(y=p[k])&&mR(y,t,n,k,p,g);a.push(p),i.push(h)}return new Ba(a,i,t,n)}var Rze=Df.prototype.constructor;function Tze(){return new Rze(this._groups,this._parents)}function Dze(e,t){var n,o,r;return function(){var a=D0(this,e),i=(this.style.removeProperty(e),D0(this,e));return a===i?null:a===n&&i===o?r:r=t(n=a,o=i)}}function oJ(e){return function(){this.style.removeProperty(e)}}function Hze(e,t,n){var o,r=n+"",a;return function(){var i=D0(this,e);return i===r?null:i===o?a:a=t(o=i,n)}}function Oze(e,t,n){var o,r,a;return function(){var i=D0(this,e),s=n(this),c=s+"";return s==null&&(c=s=(this.style.removeProperty(e),D0(this,e))),i===c?null:i===o&&c===r?a:(r=c,a=t(o=i,s))}}function Fze(e,t){var n,o,r,a="style."+t,i="end."+a,s;return function(){var c=aa(this,e),l=c.on,h=c.value[a]==null?s||(s=oJ(t)):void 0;(l!==n||r!==h)&&(o=(n=l).copy()).on(i,r=h),c.on=o}}function qze(e,t,n){var o=(e+="")=="transform"?VPe:nJ;return t==null?this.styleTween(e,Dze(e,o)).on("end.style."+e,oJ(e)):typeof t=="function"?this.styleTween(e,Oze(e,o,cq(this,"style."+e,t))).each(Fze(this._id,e)):this.styleTween(e,Hze(e,o,t),n).on("end.style."+e,null)}function Vze(e,t,n){return function(o){this.style.setProperty(e,t.call(this,o),n)}}function Bze(e,t,n){var o,r;function a(){var i=t.apply(this,arguments);return i!==r&&(o=(r=i)&&Vze(e,i,n)),o}return a._value=t,a}function Uze(e,t,n){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,Bze(e,t,n??""))}function Wze(e){return function(){this.textContent=e}}function Gze(e){return function(){var t=e(this);this.textContent=t??""}}function Kze(e){return this.tween("text",typeof e=="function"?Gze(cq(this,"text",e)):Wze(e==null?"":e+""))}function Xze(e){return function(t){this.textContent=e.call(this,t)}}function Zze(e){var t,n;function o(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Xze(r)),t}return o._value=e,o}function Yze(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,Zze(e))}function Qze(){for(var e=this._name,t=this._id,n=rJ(),o=this._groups,r=o.length,a=0;a<r;++a)for(var i=o[a],s=i.length,c,l=0;l<s;++l)if(c=i[l]){var h=pr(c,t);mR(c,e,n,l,i,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Ba(o,this._parents,e,n)}function Jze(){var e,t,n=this,o=n._id,r=n.size();return new Promise(function(a,i){var s={value:i},c={value:function(){--r===0&&a()}};n.each(function(){var l=aa(this,o),h=l.on;h!==e&&(t=(e=h).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),l.on=t}),r===0&&a()})}var eRe=0;function Ba(e,t,n,o){this._groups=e,this._parents=t,this._name=n,this._id=o}function rJ(){return++eRe}var La=Df.prototype;Ba.prototype={constructor:Ba,select:Pze,selectAll:zze,selectChild:La.selectChild,selectChildren:La.selectChildren,filter:Lze,merge:Nze,selection:Tze,transition:Qze,call:La.call,nodes:La.nodes,node:La.node,size:La.size,empty:La.empty,each:La.each,on:Eze,attr:uze,attrTween:mze,style:qze,styleTween:Uze,text:Kze,textTween:Yze,remove:$ze,tween:rze,delay:vze,duration:Mze,ease:_ze,easeVarying:Sze,end:Jze,[Symbol.iterator]:La[Symbol.iterator]};function tRe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var nRe={time:null,delay:0,duration:250,ease:tRe};function oRe(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function rRe(e){var t,n;e instanceof Ba?(t=e._id,e=e._name):(t=rJ(),(n=nRe).time=iq(),e=e==null?null:e+"");for(var o=this._groups,r=o.length,a=0;a<r;++a)for(var i=o[a],s=i.length,c,l=0;l<s;++l)(c=i[l])&&mR(c,e,t,l,i,n||oRe(c,t));return new Ba(o,this._parents,e,t)}Df.prototype.interrupt=tze;Df.prototype.transition=rRe;const Op=e=>()=>e;function aRe(e,{sourceEvent:t,target:n,transform:o,dispatch:r}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:r}})}function Ta(e,t,n){this.k=e,this.x=t,this.y=n}Ta.prototype={constructor:Ta,scale:function(e){return e===1?this:new Ta(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Ta(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+")"}};var gR=new Ta(1,0,0);aJ.prototype=Ta.prototype;function aJ(e){for(;!e.__zoom;)if(!(e=e.parentNode))return gR;return e.__zoom}function QT(e){e.stopImmediatePropagation()}function Fh(e){e.preventDefault(),e.stopImmediatePropagation()}function iRe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function sRe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function TU(){return this.__zoom||gR}function cRe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function lRe(){return navigator.maxTouchPoints||"ontouchstart"in this}function dRe(e,t,n){var o=e.invertX(t[0][0])-n[0][0],r=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],i=e.invertY(t[1][1])-n[1][1];return e.translate(r>o?(o+r)/2:Math.min(0,o)||Math.max(0,r),i>a?(a+i)/2:Math.min(0,a)||Math.max(0,i))}function iJ(){var e=iRe,t=sRe,n=dRe,o=cRe,r=lRe,a=[0,1/0],i=[[-1/0,-1/0],[1/0,1/0]],s=250,c=wP,l=hR("start","zoom","end"),h,d,p,y=500,g=150,k=0,x=10;function v($){$.property("__zoom",TU).on("wheel.zoom",L,{passive:!1}).on("mousedown.zoom",A).on("dblclick.zoom",I).filter(r).on("touchstart.zoom",R).on("touchmove.zoom",j).on("touchend.zoom touchcancel.zoom",V).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}v.transform=function($,T,D,F){var z=$.selection?$.selection():$;z.property("__zoom",TU),$!==z?C($,T,D,F):z.interrupt().each(function(){_(this,arguments).event(F).start().zoom(null,typeof T=="function"?T.apply(this,arguments):T).end()})},v.scaleBy=function($,T,D,F){v.scaleTo($,function(){var z=this.__zoom.k,E=typeof T=="function"?T.apply(this,arguments):T;return z*E},D,F)},v.scaleTo=function($,T,D,F){v.transform($,function(){var z=t.apply(this,arguments),E=this.__zoom,N=D==null?b(z):typeof D=="function"?D.apply(this,arguments):D,W=E.invert(N),O=typeof T=="function"?T.apply(this,arguments):T;return n(w(M(E,O),N,W),z,i)},D,F)},v.translateBy=function($,T,D,F){v.transform($,function(){return n(this.__zoom.translate(typeof T=="function"?T.apply(this,arguments):T,typeof D=="function"?D.apply(this,arguments):D),t.apply(this,arguments),i)},null,F)},v.translateTo=function($,T,D,F,z){v.transform($,function(){var E=t.apply(this,arguments),N=this.__zoom,W=F==null?b(E):typeof F=="function"?F.apply(this,arguments):F;return n(gR.translate(W[0],W[1]).scale(N.k).translate(typeof T=="function"?-T.apply(this,arguments):-T,typeof D=="function"?-D.apply(this,arguments):-D),E,i)},F,z)};function M($,T){return T=Math.max(a[0],Math.min(a[1],T)),T===$.k?$:new Ta(T,$.x,$.y)}function w($,T,D){var F=T[0]-D[0]*$.k,z=T[1]-D[1]*$.k;return F===$.x&&z===$.y?$:new Ta($.k,F,z)}function b($){return[(+$[0][0]+ +$[1][0])/2,(+$[0][1]+ +$[1][1])/2]}function C($,T,D,F){$.on("start.zoom",function(){_(this,arguments).event(F).start()}).on("interrupt.zoom end.zoom",function(){_(this,arguments).event(F).end()}).tween("zoom",function(){var z=this,E=arguments,N=_(z,E).event(F),W=t.apply(z,E),O=D==null?b(W):typeof D=="function"?D.apply(z,E):D,P=Math.max(W[1][0]-W[0][0],W[1][1]-W[0][1]),Y=z.__zoom,Z=typeof T=="function"?T.apply(z,E):T,te=c(Y.invert(O).concat(P/Y.k),Z.invert(O).concat(P/Z.k));return function(ie){if(ie===1)ie=Z;else{var re=te(ie),ae=P/re[2];ie=new Ta(ae,O[0]-re[0]*ae,O[1]-re[1]*ae)}N.zoom(null,ie)}})}function _($,T,D){return!D&&$.__zooming||new S($,T)}function S($,T){this.that=$,this.args=T,this.active=0,this.sourceEvent=null,this.extent=t.apply($,T),this.taps=0}S.prototype={event:function($){return $&&(this.sourceEvent=$),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function($,T){return this.mouse&&$!=="mouse"&&(this.mouse[1]=T.invert(this.mouse[0])),this.touch0&&$!=="touch"&&(this.touch0[1]=T.invert(this.touch0[0])),this.touch1&&$!=="touch"&&(this.touch1[1]=T.invert(this.touch1[0])),this.that.__zoom=T,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function($){var T=fo(this.that).datum();l.call($,this.that,new aRe($,{sourceEvent:this.sourceEvent,target:v,transform:this.that.__zoom,dispatch:l}),T)}};function L($,...T){if(!e.apply(this,arguments))return;var D=_(this,T).event($),F=this.__zoom,z=Math.max(a[0],Math.min(a[1],F.k*Math.pow(2,o.apply(this,arguments)))),E=er($);if(D.wheel)(D.mouse[0][0]!==E[0]||D.mouse[0][1]!==E[1])&&(D.mouse[1]=F.invert(D.mouse[0]=E)),clearTimeout(D.wheel);else{if(F.k===z)return;D.mouse=[E,F.invert(E)],_P(this),D.start()}Fh($),D.wheel=setTimeout(N,g),D.zoom("mouse",n(w(M(F,z),D.mouse[0],D.mouse[1]),D.extent,i));function N(){D.wheel=null,D.end()}}function A($,...T){if(p||!e.apply(this,arguments))return;var D=$.currentTarget,F=_(this,T,!0).event($),z=fo($.view).on("mousemove.zoom",O,!0).on("mouseup.zoom",P,!0),E=er($,D),N=$.clientX,W=$.clientY;qQ($.view),QT($),F.mouse=[E,this.__zoom.invert(E)],_P(this),F.start();function O(Y){if(Fh(Y),!F.moved){var Z=Y.clientX-N,te=Y.clientY-W;F.moved=Z*Z+te*te>k}F.event(Y).zoom("mouse",n(w(F.that.__zoom,F.mouse[0]=er(Y,D),F.mouse[1]),F.extent,i))}function P(Y){z.on("mousemove.zoom mouseup.zoom",null),VQ(Y.view,F.moved),Fh(Y),F.event(Y).end()}}function I($,...T){if(e.apply(this,arguments)){var D=this.__zoom,F=er($.changedTouches?$.changedTouches[0]:$,this),z=D.invert(F),E=D.k*($.shiftKey?.5:2),N=n(w(M(D,E),F,z),t.apply(this,T),i);Fh($),s>0?fo(this).transition().duration(s).call(C,N,F,$):fo(this).call(v.transform,N,F,$)}}function R($,...T){if(e.apply(this,arguments)){var D=$.touches,F=D.length,z=_(this,T,$.changedTouches.length===F).event($),E,N,W,O;for(QT($),N=0;N<F;++N)W=D[N],O=er(W,this),O=[O,this.__zoom.invert(O),W.identifier],z.touch0?!z.touch1&&z.touch0[2]!==O[2]&&(z.touch1=O,z.taps=0):(z.touch0=O,E=!0,z.taps=1+!!h);h&&(h=clearTimeout(h)),E&&(z.taps<2&&(d=O[0],h=setTimeout(function(){h=null},y)),_P(this),z.start())}}function j($,...T){if(this.__zooming){var D=_(this,T).event($),F=$.changedTouches,z=F.length,E,N,W,O;for(Fh($),E=0;E<z;++E)N=F[E],W=er(N,this),D.touch0&&D.touch0[2]===N.identifier?D.touch0[0]=W:D.touch1&&D.touch1[2]===N.identifier&&(D.touch1[0]=W);if(N=D.that.__zoom,D.touch1){var P=D.touch0[0],Y=D.touch0[1],Z=D.touch1[0],te=D.touch1[1],ie=(ie=Z[0]-P[0])*ie+(ie=Z[1]-P[1])*ie,re=(re=te[0]-Y[0])*re+(re=te[1]-Y[1])*re;N=M(N,Math.sqrt(ie/re)),W=[(P[0]+Z[0])/2,(P[1]+Z[1])/2],O=[(Y[0]+te[0])/2,(Y[1]+te[1])/2]}else if(D.touch0)W=D.touch0[0],O=D.touch0[1];else return;D.zoom("touch",n(w(N,W,O),D.extent,i))}}function V($,...T){if(this.__zooming){var D=_(this,T).event($),F=$.changedTouches,z=F.length,E,N;for(QT($),p&&clearTimeout(p),p=setTimeout(function(){p=null},y),E=0;E<z;++E)N=F[E],D.touch0&&D.touch0[2]===N.identifier?delete D.touch0:D.touch1&&D.touch1[2]===N.identifier&&delete D.touch1;if(D.touch1&&!D.touch0&&(D.touch0=D.touch1,delete D.touch1),D.touch0)D.touch0[1]=this.__zoom.invert(D.touch0[0]);else if(D.end(),D.taps===2&&(N=er(N,this),Math.hypot(d[0]-N[0],d[1]-N[1])<x)){var W=fo(this).on("dblclick.zoom");W&&W.apply(this,arguments)}}}return v.wheelDelta=function($){return arguments.length?(o=typeof $=="function"?$:Op(+$),v):o},v.filter=function($){return arguments.length?(e=typeof $=="function"?$:Op(!!$),v):e},v.touchable=function($){return arguments.length?(r=typeof $=="function"?$:Op(!!$),v):r},v.extent=function($){return arguments.length?(t=typeof $=="function"?$:Op([[+$[0][0],+$[0][1]],[+$[1][0],+$[1][1]]]),v):t},v.scaleExtent=function($){return arguments.length?(a[0]=+$[0],a[1]=+$[1],v):[a[0],a[1]]},v.translateExtent=function($){return arguments.length?(i[0][0]=+$[0][0],i[1][0]=+$[1][0],i[0][1]=+$[0][1],i[1][1]=+$[1][1],v):[[i[0][0],i[0][1]],[i[1][0],i[1][1]]]},v.constrain=function($){return arguments.length?(n=$,v):n},v.duration=function($){return arguments.length?(s=+$,v):s},v.interpolate=function($){return arguments.length?(c=$,v):c},v.on=function(){var $=l.on.apply(l,arguments);return $===l?v:$},v.clickDistance=function($){return arguments.length?(k=($=+$)*$,v):Math.sqrt(k)},v.tapDistance=function($){return arguments.length?(x=+$,v):x},v}const ta={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:o})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:o}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},yf=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],sJ=["Enter"," ","Escape"],cJ={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var O0;(function(e){e.Strict="strict",e.Loose="loose"})(O0||(O0={}));var Bd;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Bd||(Bd={}));var F0;(function(e){e.Partial="partial",e.Full="full"})(F0||(F0={}));const lJ={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var Ei;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(Ei||(Ei={}));var mf;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(mf||(mf={}));var ue;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(ue||(ue={}));const DU={[ue.Left]:ue.Right,[ue.Right]:ue.Left,[ue.Top]:ue.Bottom,[ue.Bottom]:ue.Top};function dJ(e){return e===null?null:e?"valid":"invalid"}const uJ=e=>"id"in e&&"source"in e&&"target"in e,uRe=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),lq=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),Of=(e,t=[0,0])=>{const{width:n,height:o}=Xa(e),r=e.origin??t,a=n*r[0],i=o*r[1];return{x:e.position.x-a,y:e.position.y-i}},hRe=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((o,r)=>{const a=typeof r=="string";let i=!t.nodeLookup&&!a?r:void 0;t.nodeLookup&&(i=a?t.nodeLookup.get(r):lq(r)?r:t.nodeLookup.get(r.id));const s=i?pz(i,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return kR(o,s)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return vR(n)},Ff=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},o=!1;return e.forEach(r=>{(t.filter===void 0||t.filter(r))&&(n=kR(n,pz(r)),o=!0)}),o?vR(n):{x:0,y:0,width:0,height:0}},dq=(e,t,[n,o,r]=[0,0,1],a=!1,i=!1)=>{const s={...Vf(t,[n,o,r]),width:t.width/r,height:t.height/r},c=[];for(const l of e.values()){const{measured:h,selectable:d=!0,hidden:p=!1}=l;if(i&&!d||p)continue;const y=h.width??l.width??l.initialWidth??null,g=h.height??l.height??l.initialHeight??null,k=gf(s,V0(l)),x=(y??0)*(g??0),v=a&&k>0;(!l.internals.handleBounds||v||k>=x||l.dragging)&&c.push(l)}return c},fRe=(e,t)=>{const n=new Set;return e.forEach(o=>{n.add(o.id)}),t.filter(o=>n.has(o.source)||n.has(o.target))};function pRe(e,t){const n=new Map,o=t!=null&&t.nodes?new Set(t.nodes.map(r=>r.id)):null;return e.forEach(r=>{r.measured.width&&r.measured.height&&((t==null?void 0:t.includeHiddenNodes)||!r.hidden)&&(!o||o.has(r.id))&&n.set(r.id,r)}),n}async function yRe({nodes:e,width:t,height:n,panZoom:o,minZoom:r,maxZoom:a},i){if(e.size===0)return Promise.resolve(!0);const s=pRe(e,i),c=Ff(s),l=uq(c,t,n,(i==null?void 0:i.minZoom)??r,(i==null?void 0:i.maxZoom)??a,(i==null?void 0:i.padding)??.1);return await o.setViewport(l,{duration:i==null?void 0:i.duration,ease:i==null?void 0:i.ease,interpolate:i==null?void 0:i.interpolate}),Promise.resolve(!0)}function hJ({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:o=[0,0],nodeExtent:r,onError:a}){const i=n.get(e),s=i.parentId?n.get(i.parentId):void 0,{x:c,y:l}=s?s.internals.positionAbsolute:{x:0,y:0},h=i.origin??o;let d=i.extent||r;if(i.extent==="parent"&&!i.expandParent)if(!s)a==null||a("005",ta.error005());else{const y=s.measured.width,g=s.measured.height;y&&g&&(d=[[c,l],[c+y,l+g]])}else s&&B0(i.extent)&&(d=[[i.extent[0][0]+c,i.extent[0][1]+l],[i.extent[1][0]+c,i.extent[1][1]+l]]);const p=B0(d)?Qd(t,d,i.measured):t;return(i.measured.width===void 0||i.measured.height===void 0)&&(a==null||a("015",ta.error015())),{position:{x:p.x-c+(i.measured.width??0)*h[0],y:p.y-l+(i.measured.height??0)*h[1]},positionAbsolute:p}}async function mRe({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:o,onBeforeDelete:r}){const a=new Set(e.map(p=>p.id)),i=[];for(const p of n){if(p.deletable===!1)continue;const y=a.has(p.id),g=!y&&p.parentId&&i.find(k=>k.id===p.parentId);(y||g)&&i.push(p)}const s=new Set(t.map(p=>p.id)),c=o.filter(p=>p.deletable!==!1),h=fRe(i,c);for(const p of c)s.has(p.id)&&!h.find(g=>g.id===p.id)&&h.push(p);if(!r)return{edges:h,nodes:i};const d=await r({nodes:i,edges:h});return typeof d=="boolean"?d?{edges:h,nodes:i}:{edges:[],nodes:[]}:d}const q0=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),Qd=(e={x:0,y:0},t,n)=>({x:q0(e.x,t[0][0],t[1][0]-((n==null?void 0:n.width)??0)),y:q0(e.y,t[0][1],t[1][1]-((n==null?void 0:n.height)??0))});function fJ(e,t,n){const{width:o,height:r}=Xa(n),{x:a,y:i}=n.internals.positionAbsolute;return Qd(e,[[a,i],[a+o,i+r]],t)}const HU=(e,t,n)=>e<t?q0(Math.abs(e-t),1,t)/t:e>n?-q0(Math.abs(e-n),1,t)/t:0,pJ=(e,t,n=15,o=40)=>{const r=HU(e.x,o,t.width-o)*n,a=HU(e.y,o,t.height-o)*n;return[r,a]},kR=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),nO=({x:e,y:t,width:n,height:o})=>({x:e,y:t,x2:e+n,y2:t+o}),vR=({x:e,y:t,x2:n,y2:o})=>({x:e,y:t,width:n-e,height:o-t}),V0=(e,t=[0,0])=>{var r,a;const{x:n,y:o}=lq(e)?e.internals.positionAbsolute:Of(e,t);return{x:n,y:o,width:((r=e.measured)==null?void 0:r.width)??e.width??e.initialWidth??0,height:((a=e.measured)==null?void 0:a.height)??e.height??e.initialHeight??0}},pz=(e,t=[0,0])=>{var r,a;const{x:n,y:o}=lq(e)?e.internals.positionAbsolute:Of(e,t);return{x:n,y:o,x2:n+(((r=e.measured)==null?void 0:r.width)??e.width??e.initialWidth??0),y2:o+(((a=e.measured)==null?void 0:a.height)??e.height??e.initialHeight??0)}},yJ=(e,t)=>vR(kR(nO(e),nO(t))),gf=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),o=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*o)},OU=e=>rr(e.width)&&rr(e.height)&&rr(e.x)&&rr(e.y),rr=e=>!isNaN(e)&&isFinite(e),gRe=(e,t)=>{},qf=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),Vf=({x:e,y:t},[n,o,r],a=!1,i=[1,1])=>{const s={x:(e-n)/r,y:(t-o)/r};return a?qf(s,i):s},yz=({x:e,y:t},[n,o,r])=>({x:e*r+n,y:t*r+o});function $u(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function kRe(e,t,n){if(typeof e=="string"||typeof e=="number"){const o=$u(e,n),r=$u(e,t);return{top:o,right:r,bottom:o,left:r,x:r*2,y:o*2}}if(typeof e=="object"){const o=$u(e.top??e.y??0,n),r=$u(e.bottom??e.y??0,n),a=$u(e.left??e.x??0,t),i=$u(e.right??e.x??0,t);return{top:o,right:i,bottom:r,left:a,x:a+i,y:o+r}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function vRe(e,t,n,o,r,a){const{x:i,y:s}=yz(e,[t,n,o]),{x:c,y:l}=yz({x:e.x+e.width,y:e.y+e.height},[t,n,o]),h=r-c,d=a-l;return{left:Math.floor(i),top:Math.floor(s),right:Math.floor(h),bottom:Math.floor(d)}}const uq=(e,t,n,o,r,a)=>{const i=kRe(a,t,n),s=(t-i.x)/e.width,c=(n-i.y)/e.height,l=Math.min(s,c),h=q0(l,o,r),d=e.x+e.width/2,p=e.y+e.height/2,y=t/2-d*h,g=n/2-p*h,k=vRe(e,y,g,h,t,n),x={left:Math.min(k.left-i.left,0),top:Math.min(k.top-i.top,0),right:Math.min(k.right-i.right,0),bottom:Math.min(k.bottom-i.bottom,0)};return{x:y-x.left+x.right,y:g-x.top+x.bottom,zoom:h}},kf=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function B0(e){return e!=null&&e!=="parent"}function Xa(e){var t,n;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight??0}}function mJ(e){var t,n;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight)!==void 0}function gJ(e,t={width:0,height:0},n,o,r){const a={...e},i=o.get(n);if(i){const s=i.origin||r;a.x+=i.internals.positionAbsolute.x-(t.width??0)*s[0],a.y+=i.internals.positionAbsolute.y-(t.height??0)*s[1]}return a}function FU(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function xRe(){let e,t;return{promise:new Promise((o,r)=>{e=o,t=r}),resolve:e,reject:t}}function wRe(e){return{...cJ,...e||{}}}function O2(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:o,containerBounds:r}){const{x:a,y:i}=ar(e),s=Vf({x:a-((r==null?void 0:r.left)??0),y:i-((r==null?void 0:r.top)??0)},o),{x:c,y:l}=n?qf(s,t):s;return{xSnapped:c,ySnapped:l,...s}}const hq=e=>({width:e.offsetWidth,height:e.offsetHeight}),kJ=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},MRe=["INPUT","SELECT","TEXTAREA"];function vJ(e){var o,r;const t=((r=(o=e.composedPath)==null?void 0:o.call(e))==null?void 0:r[0])||e.target;return(t==null?void 0:t.nodeType)!==1?!1:MRe.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const xJ=e=>"clientX"in e,ar=(e,t)=>{var a,i;const n=xJ(e),o=n?e.clientX:(a=e.touches)==null?void 0:a[0].clientX,r=n?e.clientY:(i=e.touches)==null?void 0:i[0].clientY;return{x:o-((t==null?void 0:t.left)??0),y:r-((t==null?void 0:t.top)??0)}},qU=(e,t,n,o,r)=>{const a=t.querySelectorAll(`.${e}`);return!a||!a.length?null:Array.from(a).map(i=>{const s=i.getBoundingClientRect();return{id:i.getAttribute("data-handleid"),type:e,nodeId:r,position:i.getAttribute("data-handlepos"),x:(s.left-n.left)/o,y:(s.top-n.top)/o,...hq(i)}})};function wJ({sourceX:e,sourceY:t,targetX:n,targetY:o,sourceControlX:r,sourceControlY:a,targetControlX:i,targetControlY:s}){const c=e*.125+r*.375+i*.375+n*.125,l=t*.125+a*.375+s*.375+o*.125,h=Math.abs(c-e),d=Math.abs(l-t);return[c,l,h,d]}function Fp(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function VU({pos:e,x1:t,y1:n,x2:o,y2:r,c:a}){switch(e){case ue.Left:return[t-Fp(t-o,a),n];case ue.Right:return[t+Fp(o-t,a),n];case ue.Top:return[t,n-Fp(n-r,a)];case ue.Bottom:return[t,n+Fp(r-n,a)]}}function xR({sourceX:e,sourceY:t,sourcePosition:n=ue.Bottom,targetX:o,targetY:r,targetPosition:a=ue.Top,curvature:i=.25}){const[s,c]=VU({pos:n,x1:e,y1:t,x2:o,y2:r,c:i}),[l,h]=VU({pos:a,x1:o,y1:r,x2:e,y2:t,c:i}),[d,p,y,g]=wJ({sourceX:e,sourceY:t,targetX:o,targetY:r,sourceControlX:s,sourceControlY:c,targetControlX:l,targetControlY:h});return[`M${e},${t} C${s},${c} ${l},${h} ${o},${r}`,d,p,y,g]}function MJ({sourceX:e,sourceY:t,targetX:n,targetY:o}){const r=Math.abs(n-e)/2,a=n<e?n+r:n-r,i=Math.abs(o-t)/2,s=o<t?o+i:o-i;return[a,s,r,i]}function bRe({sourceNode:e,targetNode:t,selected:n=!1,zIndex:o=0,elevateOnSelect:r=!1,zIndexMode:a="basic"}){if(a==="manual")return o;const i=r&&n?o+1e3:o,s=Math.max(e.parentId||r&&e.selected?e.internals.z:0,t.parentId||r&&t.selected?t.internals.z:0);return i+s}function _Re({sourceNode:e,targetNode:t,width:n,height:o,transform:r}){const a=kR(pz(e),pz(t));a.x===a.x2&&(a.x2+=1),a.y===a.y2&&(a.y2+=1);const i={x:-r[0]/r[2],y:-r[1]/r[2],width:n/r[2],height:o/r[2]};return gf(i,vR(a))>0}const CRe=({source:e,sourceHandle:t,target:n,targetHandle:o})=>`xy-edge__${e}${t||""}-${n}${o||""}`,SRe=(e,t)=>t.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),LRe=(e,t,n={})=>{if(!e.source||!e.target)return t;const o=n.getEdgeId||CRe;let r;return uJ(e)?r={...e}:r={...e,id:o(e)},SRe(r,t)?t:(r.sourceHandle===null&&delete r.sourceHandle,r.targetHandle===null&&delete r.targetHandle,t.concat(r))};function bJ({sourceX:e,sourceY:t,targetX:n,targetY:o}){const[r,a,i,s]=MJ({sourceX:e,sourceY:t,targetX:n,targetY:o});return[`M ${e},${t}L ${n},${o}`,r,a,i,s]}const BU={[ue.Left]:{x:-1,y:0},[ue.Right]:{x:1,y:0},[ue.Top]:{x:0,y:-1},[ue.Bottom]:{x:0,y:1}},NRe=({source:e,sourcePosition:t=ue.Bottom,target:n})=>t===ue.Left||t===ue.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},UU=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function IRe({source:e,sourcePosition:t=ue.Bottom,target:n,targetPosition:o=ue.Top,center:r,offset:a,stepPosition:i}){const s=BU[t],c=BU[o],l={x:e.x+s.x*a,y:e.y+s.y*a},h={x:n.x+c.x*a,y:n.y+c.y*a},d=NRe({source:l,sourcePosition:t,target:h}),p=d.x!==0?"x":"y",y=d[p];let g=[],k,x;const v={x:0,y:0},M={x:0,y:0},[,,w,b]=MJ({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(s[p]*c[p]===-1){p==="x"?(k=r.x??l.x+(h.x-l.x)*i,x=r.y??(l.y+h.y)/2):(k=r.x??(l.x+h.x)/2,x=r.y??l.y+(h.y-l.y)*i);const L=[{x:k,y:l.y},{x:k,y:h.y}],A=[{x:l.x,y:x},{x:h.x,y:x}];s[p]===y?g=p==="x"?L:A:g=p==="x"?A:L}else{const L=[{x:l.x,y:h.y}],A=[{x:h.x,y:l.y}];if(p==="x"?g=s.x===y?A:L:g=s.y===y?L:A,t===o){const $=Math.abs(e[p]-n[p]);if($<=a){const T=Math.min(a-1,a-$);s[p]===y?v[p]=(l[p]>e[p]?-1:1)*T:M[p]=(h[p]>n[p]?-1:1)*T}}if(t!==o){const $=p==="x"?"y":"x",T=s[p]===c[$],D=l[$]>h[$],F=l[$]<h[$];(s[p]===1&&(!T&&D||T&&F)||s[p]!==1&&(!T&&F||T&&D))&&(g=p==="x"?L:A)}const I={x:l.x+v.x,y:l.y+v.y},R={x:h.x+M.x,y:h.y+M.y},j=Math.max(Math.abs(I.x-g[0].x),Math.abs(R.x-g[0].x)),V=Math.max(Math.abs(I.y-g[0].y),Math.abs(R.y-g[0].y));j>=V?(k=(I.x+R.x)/2,x=g[0].y):(k=g[0].x,x=(I.y+R.y)/2)}const C={x:l.x+v.x,y:l.y+v.y},_={x:h.x+M.x,y:h.y+M.y};return[[e,...C.x!==g[0].x||C.y!==g[0].y?[C]:[],...g,..._.x!==g[g.length-1].x||_.y!==g[g.length-1].y?[_]:[],n],k,x,w,b]}function ARe(e,t,n,o){const r=Math.min(UU(e,t)/2,UU(t,n)/2,o),{x:a,y:i}=t;if(e.x===a&&a===n.x||e.y===i&&i===n.y)return`L${a} ${i}`;if(e.y===i){const l=e.x<n.x?-1:1,h=e.y<n.y?1:-1;return`L ${a+r*l},${i}Q ${a},${i} ${a},${i+r*h}`}const s=e.x<n.x?1:-1,c=e.y<n.y?-1:1;return`L ${a},${i+r*c}Q ${a},${i} ${a+r*s},${i}`}function vf({sourceX:e,sourceY:t,sourcePosition:n=ue.Bottom,targetX:o,targetY:r,targetPosition:a=ue.Top,borderRadius:i=5,centerX:s,centerY:c,offset:l=20,stepPosition:h=.5}){const[d,p,y,g,k]=IRe({source:{x:e,y:t},sourcePosition:n,target:{x:o,y:r},targetPosition:a,center:{x:s,y:c},offset:l,stepPosition:h});let x=`M${d[0].x} ${d[0].y}`;for(let v=1;v<d.length-1;v++)x+=ARe(d[v-1],d[v],d[v+1],i);return x+=`L${d[d.length-1].x} ${d[d.length-1].y}`,[x,p,y,g,k]}function WU(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function ERe(e){var d;const{sourceNode:t,targetNode:n}=e;if(!WU(t)||!WU(n))return null;const o=t.internals.handleBounds||GU(t.handles),r=n.internals.handleBounds||GU(n.handles),a=KU((o==null?void 0:o.source)??[],e.sourceHandle),i=KU(e.connectionMode===O0.Strict?(r==null?void 0:r.target)??[]:((r==null?void 0:r.target)??[]).concat((r==null?void 0:r.source)??[]),e.targetHandle);if(!a||!i)return(d=e.onError)==null||d.call(e,"008",ta.error008(a?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const s=(a==null?void 0:a.position)||ue.Bottom,c=(i==null?void 0:i.position)||ue.Top,l=Jd(t,a,s),h=Jd(n,i,c);return{sourceX:l.x,sourceY:l.y,targetX:h.x,targetY:h.y,sourcePosition:s,targetPosition:c}}function GU(e){if(!e)return null;const t=[],n=[];for(const o of e)o.width=o.width??1,o.height=o.height??1,o.type==="source"?t.push(o):o.type==="target"&&n.push(o);return{source:t,target:n}}function Jd(e,t,n=ue.Left,o=!1){const r=((t==null?void 0:t.x)??0)+e.internals.positionAbsolute.x,a=((t==null?void 0:t.y)??0)+e.internals.positionAbsolute.y,{width:i,height:s}=t??Xa(e);if(o)return{x:r+i/2,y:a+s/2};switch((t==null?void 0:t.position)??n){case ue.Top:return{x:r+i/2,y:a};case ue.Right:return{x:r+i,y:a+s/2};case ue.Bottom:return{x:r+i/2,y:a+s};case ue.Left:return{x:r,y:a+s/2}}}function KU(e,t){return e&&(t?e.find(n=>n.id===t):e[0])||null}function oO(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(o=>`${o}=${e[o]}`).join("&")}`:""}function jRe(e,{id:t,defaultColor:n,defaultMarkerStart:o,defaultMarkerEnd:r}){const a=new Set;return e.reduce((i,s)=>([s.markerStart||o,s.markerEnd||r].forEach(c=>{if(c&&typeof c=="object"){const l=oO(c,t);a.has(l)||(i.push({id:l,color:c.color||n,...c}),a.add(l))}}),i),[]).sort((i,s)=>i.id.localeCompare(s.id))}const _J=1e3,$Re=10,fq={nodeOrigin:[0,0],nodeExtent:yf,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},PRe={...fq,checkEquality:!0};function pq(e,t){const n={...e};for(const o in t)t[o]!==void 0&&(n[o]=t[o]);return n}function zRe(e,t,n){const o=pq(fq,n);for(const r of e.values())if(r.parentId)mq(r,e,t,o);else{const a=Of(r,o.nodeOrigin),i=B0(r.extent)?r.extent:o.nodeExtent,s=Qd(a,i,Xa(r));r.internals.positionAbsolute=s}}function RRe(e,t){if(!e.handles)return e.measured?t==null?void 0:t.internals.handleBounds:void 0;const n=[],o=[];for(const r of e.handles){const a={id:r.id,width:r.width??1,height:r.height??1,nodeId:e.id,x:r.x,y:r.y,position:r.position,type:r.type};r.type==="source"?n.push(a):r.type==="target"&&o.push(a)}return{source:n,target:o}}function yq(e){return e==="manual"}function rO(e,t,n,o={}){var h,d;const r=pq(PRe,o),a={i:0},i=new Map(t),s=r!=null&&r.elevateNodesOnSelect&&!yq(r.zIndexMode)?_J:0;let c=e.length>0,l=!1;t.clear(),n.clear();for(const p of e){let y=i.get(p.id);if(r.checkEquality&&p===(y==null?void 0:y.internals.userNode))t.set(p.id,y);else{const g=Of(p,r.nodeOrigin),k=B0(p.extent)?p.extent:r.nodeExtent,x=Qd(g,k,Xa(p));y={...r.defaults,...p,measured:{width:(h=p.measured)==null?void 0:h.width,height:(d=p.measured)==null?void 0:d.height},internals:{positionAbsolute:x,handleBounds:RRe(p,y),z:CJ(p,s,r.zIndexMode),userNode:p}},t.set(p.id,y)}(y.measured===void 0||y.measured.width===void 0||y.measured.height===void 0)&&!y.hidden&&(c=!1),p.parentId&&mq(y,t,n,o,a),l||(l=p.selected??!1)}return{nodesInitialized:c,hasSelectedNodes:l}}function TRe(e,t){if(!e.parentId)return;const n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function mq(e,t,n,o,r){const{elevateNodesOnSelect:a,nodeOrigin:i,nodeExtent:s,zIndexMode:c}=pq(fq,o),l=e.parentId,h=t.get(l);if(!h){console.warn(`Parent node ${l} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}TRe(e,n),r&&!h.parentId&&h.internals.rootParentIndex===void 0&&c==="auto"&&(h.internals.rootParentIndex=++r.i,h.internals.z=h.internals.z+r.i*$Re),r&&h.internals.rootParentIndex!==void 0&&(r.i=h.internals.rootParentIndex);const d=a&&!yq(c)?_J:0,{x:p,y,z:g}=DRe(e,h,i,s,d,c),{positionAbsolute:k}=e.internals,x=p!==k.x||y!==k.y;(x||g!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:x?{x:p,y}:k,z:g}})}function CJ(e,t,n){const o=rr(e.zIndex)?e.zIndex:0;return yq(n)?o:o+(e.selected?t:0)}function DRe(e,t,n,o,r,a){const{x:i,y:s}=t.internals.positionAbsolute,c=Xa(e),l=Of(e,n),h=B0(e.extent)?Qd(l,e.extent,c):l;let d=Qd({x:i+h.x,y:s+h.y},o,c);e.extent==="parent"&&(d=fJ(d,c,t));const p=CJ(e,r,a),y=t.internals.z??0;return{x:d.x,y:d.y,z:y>=p?y+1:p}}function gq(e,t,n,o=[0,0]){var i;const r=[],a=new Map;for(const s of e){const c=t.get(s.parentId);if(!c)continue;const l=((i=a.get(s.parentId))==null?void 0:i.expandedRect)??V0(c),h=yJ(l,s.rect);a.set(s.parentId,{expandedRect:h,parent:c})}return a.size>0&&a.forEach(({expandedRect:s,parent:c},l)=>{var w;const h=c.internals.positionAbsolute,d=Xa(c),p=c.origin??o,y=s.x<h.x?Math.round(Math.abs(h.x-s.x)):0,g=s.y<h.y?Math.round(Math.abs(h.y-s.y)):0,k=Math.max(d.width,Math.round(s.width)),x=Math.max(d.height,Math.round(s.height)),v=(k-d.width)*p[0],M=(x-d.height)*p[1];(y>0||g>0||v||M)&&(r.push({id:l,type:"position",position:{x:c.position.x-y+v,y:c.position.y-g+M}}),(w=n.get(l))==null||w.forEach(b=>{e.some(C=>C.id===b.id)||r.push({id:b.id,type:"position",position:{x:b.position.x+y,y:b.position.y+g}})})),(d.width<s.width||d.height<s.height||y||g)&&r.push({id:l,type:"dimensions",setAttributes:!0,dimensions:{width:k+(y?p[0]*y-v:0),height:x+(g?p[1]*g-M:0)}})}),r}function HRe(e,t,n,o,r,a,i){const s=o==null?void 0:o.querySelector(".xyflow__viewport");let c=!1;if(!s)return{changes:[],updatedInternals:c};const l=[],h=window.getComputedStyle(s),{m22:d}=new window.DOMMatrixReadOnly(h.transform),p=[];for(const y of e.values()){const g=t.get(y.id);if(!g)continue;if(g.hidden){t.set(g.id,{...g,internals:{...g.internals,handleBounds:void 0}}),c=!0;continue}const k=hq(y.nodeElement),x=g.measured.width!==k.width||g.measured.height!==k.height;if(!!(k.width&&k.height&&(x||!g.internals.handleBounds||y.force))){const M=y.nodeElement.getBoundingClientRect(),w=B0(g.extent)?g.extent:a;let{positionAbsolute:b}=g.internals;g.parentId&&g.extent==="parent"?b=fJ(b,k,t.get(g.parentId)):w&&(b=Qd(b,w,k));const C={...g,measured:k,internals:{...g.internals,positionAbsolute:b,handleBounds:{source:qU("source",y.nodeElement,M,d,g.id),target:qU("target",y.nodeElement,M,d,g.id)}}};t.set(g.id,C),g.parentId&&mq(C,t,n,{nodeOrigin:r,zIndexMode:i}),c=!0,x&&(l.push({id:g.id,type:"dimensions",dimensions:k}),g.expandParent&&g.parentId&&p.push({id:g.id,parentId:g.parentId,rect:V0(C,r)}))}}if(p.length>0){const y=gq(p,t,n,r);l.push(...y)}return{changes:l,updatedInternals:c}}async function ORe({delta:e,panZoom:t,transform:n,translateExtent:o,width:r,height:a}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const i=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[r,a]],o),s=!!i&&(i.x!==n[0]||i.y!==n[1]||i.k!==n[2]);return Promise.resolve(s)}function XU(e,t,n,o,r,a){let i=r;const s=o.get(i)||new Map;o.set(i,s.set(n,t)),i=`${r}-${e}`;const c=o.get(i)||new Map;if(o.set(i,c.set(n,t)),a){i=`${r}-${e}-${a}`;const l=o.get(i)||new Map;o.set(i,l.set(n,t))}}function SJ(e,t,n){e.clear(),t.clear();for(const o of n){const{source:r,target:a,sourceHandle:i=null,targetHandle:s=null}=o,c={edgeId:o.id,source:r,target:a,sourceHandle:i,targetHandle:s},l=`${r}-${i}--${a}-${s}`,h=`${a}-${s}--${r}-${i}`;XU("source",c,h,e,r,i),XU("target",c,l,e,a,s),t.set(o.id,o)}}function LJ(e,t){if(!e.parentId)return!1;const n=t.get(e.parentId);return n?n.selected?!0:LJ(n,t):!1}function ZU(e,t,n){var r;let o=e;do{if((r=o==null?void 0:o.matches)!=null&&r.call(o,t))return!0;if(o===n)return!1;o=o==null?void 0:o.parentElement}while(o);return!1}function FRe(e,t,n,o){const r=new Map;for(const[a,i]of e)if((i.selected||i.id===o)&&(!i.parentId||!LJ(i,e))&&(i.draggable||t&&typeof i.draggable>"u")){const s=e.get(a);s&&r.set(a,{id:a,position:s.position||{x:0,y:0},distance:{x:n.x-s.internals.positionAbsolute.x,y:n.y-s.internals.positionAbsolute.y},extent:s.extent,parentId:s.parentId,origin:s.origin,expandParent:s.expandParent,internals:{positionAbsolute:s.internals.positionAbsolute||{x:0,y:0}},measured:{width:s.measured.width??0,height:s.measured.height??0}})}return r}function JT({nodeId:e,dragItems:t,nodeLookup:n,dragging:o=!0}){var i,s,c;const r=[];for(const[l,h]of t){const d=(i=n.get(l))==null?void 0:i.internals.userNode;d&&r.push({...d,position:h.position,dragging:o})}if(!e)return[r[0],r];const a=(s=n.get(e))==null?void 0:s.internals.userNode;return[a?{...a,position:((c=t.get(e))==null?void 0:c.position)||a.position,dragging:o}:r[0],r]}function qRe({dragItems:e,snapGrid:t,x:n,y:o}){const r=e.values().next().value;if(!r)return null;const a={x:n-r.distance.x,y:o-r.distance.y},i=qf(a,t);return{x:i.x-a.x,y:i.y-a.y}}function VRe({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:o,onDragStop:r}){let a={x:null,y:null},i=0,s=new Map,c=!1,l={x:0,y:0},h=null,d=!1,p=null,y=!1,g=!1,k=null;function x({noDragClassName:M,handleSelector:w,domNode:b,isSelectable:C,nodeId:_,nodeClickDistance:S=0}){p=fo(b);function L({x:j,y:V}){const{nodeLookup:$,nodeExtent:T,snapGrid:D,snapToGrid:F,nodeOrigin:z,onNodeDrag:E,onSelectionDrag:N,onError:W,updateNodePositions:O}=t();a={x:j,y:V};let P=!1;const Y=s.size>1,Z=Y&&T?nO(Ff(s)):null,te=Y&&F?qRe({dragItems:s,snapGrid:D,x:j,y:V}):null;for(const[ie,re]of s){if(!$.has(ie))continue;let ae={x:j-re.distance.x,y:V-re.distance.y};F&&(ae=te?{x:Math.round(ae.x+te.x),y:Math.round(ae.y+te.y)}:qf(ae,D));let se=null;if(Y&&T&&!re.extent&&Z){const{positionAbsolute:ge}=re.internals,Pe=ge.x-Z.x+T[0][0],Be=ge.x+re.measured.width-Z.x2+T[1][0],De=ge.y-Z.y+T[0][1],pe=ge.y+re.measured.height-Z.y2+T[1][1];se=[[Pe,De],[Be,pe]]}const{position:ve,positionAbsolute:ke}=hJ({nodeId:ie,nextPosition:ae,nodeLookup:$,nodeExtent:se||T,nodeOrigin:z,onError:W});P=P||re.position.x!==ve.x||re.position.y!==ve.y,re.position=ve,re.internals.positionAbsolute=ke}if(g=g||P,!!P&&(O(s,!0),k&&(o||E||!_&&N))){const[ie,re]=JT({nodeId:_,dragItems:s,nodeLookup:$});o==null||o(k,s,ie,re),E==null||E(k,ie,re),_||N==null||N(k,re)}}async function A(){if(!h)return;const{transform:j,panBy:V,autoPanSpeed:$,autoPanOnNodeDrag:T}=t();if(!T){c=!1,cancelAnimationFrame(i);return}const[D,F]=pJ(l,h,$);(D!==0||F!==0)&&(a.x=(a.x??0)-D/j[2],a.y=(a.y??0)-F/j[2],await V({x:D,y:F})&&L(a)),i=requestAnimationFrame(A)}function I(j){var Y;const{nodeLookup:V,multiSelectionActive:$,nodesDraggable:T,transform:D,snapGrid:F,snapToGrid:z,selectNodesOnDrag:E,onNodeDragStart:N,onSelectionDragStart:W,unselectNodesAndEdges:O}=t();d=!0,(!E||!C)&&!$&&_&&((Y=V.get(_))!=null&&Y.selected||O()),C&&E&&_&&(e==null||e(_));const P=O2(j.sourceEvent,{transform:D,snapGrid:F,snapToGrid:z,containerBounds:h});if(a=P,s=FRe(V,T,P,_),s.size>0&&(n||N||!_&&W)){const[Z,te]=JT({nodeId:_,dragItems:s,nodeLookup:V});n==null||n(j.sourceEvent,s,Z,te),N==null||N(j.sourceEvent,Z,te),_||W==null||W(j.sourceEvent,te)}}const R=BQ().clickDistance(S).on("start",j=>{const{domNode:V,nodeDragThreshold:$,transform:T,snapGrid:D,snapToGrid:F}=t();h=(V==null?void 0:V.getBoundingClientRect())||null,y=!1,g=!1,k=j.sourceEvent,$===0&&I(j),a=O2(j.sourceEvent,{transform:T,snapGrid:D,snapToGrid:F,containerBounds:h}),l=ar(j.sourceEvent,h)}).on("drag",j=>{const{autoPanOnNodeDrag:V,transform:$,snapGrid:T,snapToGrid:D,nodeDragThreshold:F,nodeLookup:z}=t(),E=O2(j.sourceEvent,{transform:$,snapGrid:T,snapToGrid:D,containerBounds:h});if(k=j.sourceEvent,(j.sourceEvent.type==="touchmove"&&j.sourceEvent.touches.length>1||_&&!z.has(_))&&(y=!0),!y){if(!c&&V&&d&&(c=!0,A()),!d){const N=ar(j.sourceEvent,h),W=N.x-l.x,O=N.y-l.y;Math.sqrt(W*W+O*O)>F&&I(j)}(a.x!==E.xSnapped||a.y!==E.ySnapped)&&s&&d&&(l=ar(j.sourceEvent,h),L(E))}}).on("end",j=>{if(!(!d||y)&&(c=!1,d=!1,cancelAnimationFrame(i),s.size>0)){const{nodeLookup:V,updateNodePositions:$,onNodeDragStop:T,onSelectionDragStop:D}=t();if(g&&($(s,!1),g=!1),r||T||!_&&D){const[F,z]=JT({nodeId:_,dragItems:s,nodeLookup:V,dragging:!1});r==null||r(j.sourceEvent,s,F,z),T==null||T(j.sourceEvent,F,z),_||D==null||D(j.sourceEvent,z)}}}).filter(j=>{const V=j.target;return!j.button&&(!M||!ZU(V,`.${M}`,b))&&(!w||ZU(V,w,b))});p.call(R)}function v(){p==null||p.on(".drag",null)}return{update:x,destroy:v}}function BRe(e,t,n){const o=[],r={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const a of t.values())gf(r,V0(a))>0&&o.push(a);return o}const URe=250;function WRe(e,t,n,o){var s,c;let r=[],a=1/0;const i=BRe(e,n,t+URe);for(const l of i){const h=[...((s=l.internals.handleBounds)==null?void 0:s.source)??[],...((c=l.internals.handleBounds)==null?void 0:c.target)??[]];for(const d of h){if(o.nodeId===d.nodeId&&o.type===d.type&&o.id===d.id)continue;const{x:p,y}=Jd(l,d,d.position,!0),g=Math.sqrt(Math.pow(p-e.x,2)+Math.pow(y-e.y,2));g>t||(g<a?(r=[{...d,x:p,y}],a=g):g===a&&r.push({...d,x:p,y}))}}if(!r.length)return null;if(r.length>1){const l=o.type==="source"?"target":"source";return r.find(h=>h.type===l)??r[0]}return r[0]}function NJ(e,t,n,o,r,a=!1){var l,h,d;const i=o.get(e);if(!i)return null;const s=r==="strict"?(l=i.internals.handleBounds)==null?void 0:l[t]:[...((h=i.internals.handleBounds)==null?void 0:h.source)??[],...((d=i.internals.handleBounds)==null?void 0:d.target)??[]],c=(n?s==null?void 0:s.find(p=>p.id===n):s==null?void 0:s[0])??null;return c&&a?{...c,...Jd(i,c,c.position,!0)}:c}function IJ(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function GRe(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}const AJ=()=>!0;function KRe(e,{connectionMode:t,connectionRadius:n,handleId:o,nodeId:r,edgeUpdaterType:a,isTarget:i,domNode:s,nodeLookup:c,lib:l,autoPanOnConnect:h,flowId:d,panBy:p,cancelConnection:y,onConnectStart:g,onConnect:k,onConnectEnd:x,isValidConnection:v=AJ,onReconnectEnd:M,updateConnection:w,getTransform:b,getFromHandle:C,autoPanSpeed:_,dragThreshold:S=1,handleDomNode:L}){const A=kJ(e.target);let I=0,R;const{x:j,y:V}=ar(e),$=IJ(a,L),T=s==null?void 0:s.getBoundingClientRect();let D=!1;if(!T||!$)return;const F=NJ(r,$,o,c,t);if(!F)return;let z=ar(e,T),E=!1,N=null,W=!1,O=null;function P(){if(!h||!T)return;const[ve,ke]=pJ(z,T,_);p({x:ve,y:ke}),I=requestAnimationFrame(P)}const Y={...F,nodeId:r,type:$,position:F.position},Z=c.get(r);let ie={inProgress:!0,isValid:null,from:Jd(Z,Y,ue.Left,!0),fromHandle:Y,fromPosition:Y.position,fromNode:Z,to:z,toHandle:null,toPosition:DU[Y.position],toNode:null,pointer:z};function re(){D=!0,w(ie),g==null||g(e,{nodeId:r,handleId:o,handleType:$})}S===0&&re();function ae(ve){if(!D){const{x:pe,y:me}=ar(ve),Ae=pe-j,Ue=me-V;if(!(Ae*Ae+Ue*Ue>S*S))return;re()}if(!C()||!Y){se(ve);return}const ke=b();z=ar(ve,T),R=WRe(Vf(z,ke,!1,[1,1]),n,c,Y),E||(P(),E=!0);const ge=EJ(ve,{handle:R,connectionMode:t,fromNodeId:r,fromHandleId:o,fromType:i?"target":"source",isValidConnection:v,doc:A,lib:l,flowId:d,nodeLookup:c});O=ge.handleDomNode,N=ge.connection,W=GRe(!!R,ge.isValid);const Pe=c.get(r),Be=Pe?Jd(Pe,Y,ue.Left,!0):ie.from,De={...ie,from:Be,isValid:W,to:ge.toHandle&&W?yz({x:ge.toHandle.x,y:ge.toHandle.y},ke):z,toHandle:ge.toHandle,toPosition:W&&ge.toHandle?ge.toHandle.position:DU[Y.position],toNode:ge.toHandle?c.get(ge.toHandle.nodeId):null,pointer:z};w(De),ie=De}function se(ve){if(!("touches"in ve&&ve.touches.length>0)){if(D){(R||O)&&N&&W&&(k==null||k(N));const{inProgress:ke,...ge}=ie,Pe={...ge,toPosition:ie.toHandle?ie.toPosition:null};x==null||x(ve,Pe),a&&(M==null||M(ve,Pe))}y(),cancelAnimationFrame(I),E=!1,W=!1,N=null,O=null,A.removeEventListener("mousemove",ae),A.removeEventListener("mouseup",se),A.removeEventListener("touchmove",ae),A.removeEventListener("touchend",se)}}A.addEventListener("mousemove",ae),A.addEventListener("mouseup",se),A.addEventListener("touchmove",ae),A.addEventListener("touchend",se)}function EJ(e,{handle:t,connectionMode:n,fromNodeId:o,fromHandleId:r,fromType:a,doc:i,lib:s,flowId:c,isValidConnection:l=AJ,nodeLookup:h}){const d=a==="target",p=t?i.querySelector(`.${s}-flow__handle[data-id="${c}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:y,y:g}=ar(e),k=i.elementFromPoint(y,g),x=k!=null&&k.classList.contains(`${s}-flow__handle`)?k:p,v={handleDomNode:x,isValid:!1,connection:null,toHandle:null};if(x){const M=IJ(void 0,x),w=x.getAttribute("data-nodeid"),b=x.getAttribute("data-handleid"),C=x.classList.contains("connectable"),_=x.classList.contains("connectableend");if(!w||!M)return v;const S={source:d?w:o,sourceHandle:d?b:r,target:d?o:w,targetHandle:d?r:b};v.connection=S;const A=C&&_&&(n===O0.Strict?d&&M==="source"||!d&&M==="target":w!==o||b!==r);v.isValid=A&&l(S),v.toHandle=NJ(w,M,b,h,n,!0)}return v}const aO={onPointerDown:KRe,isValid:EJ};function XRe({domNode:e,panZoom:t,getTransform:n,getViewScale:o}){const r=fo(e);function a({translateExtent:s,width:c,height:l,zoomStep:h=1,pannable:d=!0,zoomable:p=!0,inversePan:y=!1}){const g=w=>{if(w.sourceEvent.type!=="wheel"||!t)return;const b=n(),C=w.sourceEvent.ctrlKey&&kf()?10:1,_=-w.sourceEvent.deltaY*(w.sourceEvent.deltaMode===1?.05:w.sourceEvent.deltaMode?1:.002)*h,S=b[2]*Math.pow(2,_*C);t.scaleTo(S)};let k=[0,0];const x=w=>{(w.sourceEvent.type==="mousedown"||w.sourceEvent.type==="touchstart")&&(k=[w.sourceEvent.clientX??w.sourceEvent.touches[0].clientX,w.sourceEvent.clientY??w.sourceEvent.touches[0].clientY])},v=w=>{const b=n();if(w.sourceEvent.type!=="mousemove"&&w.sourceEvent.type!=="touchmove"||!t)return;const C=[w.sourceEvent.clientX??w.sourceEvent.touches[0].clientX,w.sourceEvent.clientY??w.sourceEvent.touches[0].clientY],_=[C[0]-k[0],C[1]-k[1]];k=C;const S=o()*Math.max(b[2],Math.log(b[2]))*(y?-1:1),L={x:b[0]-_[0]*S,y:b[1]-_[1]*S},A=[[0,0],[c,l]];t.setViewportConstrained({x:L.x,y:L.y,zoom:b[2]},A,s)},M=iJ().on("start",x).on("zoom",d?v:null).on("zoom.wheel",p?g:null);r.call(M,{})}function i(){r.on("zoom",null)}return{update:a,destroy:i,pointer:er}}const wR=e=>({x:e.x,y:e.y,zoom:e.k}),eD=({x:e,y:t,zoom:n})=>gR.translate(e,t).scale(n),a0=(e,t)=>e.target.closest(`.${t}`),jJ=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),ZRe=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,tD=(e,t=0,n=ZRe,o=()=>{})=>{const r=typeof t=="number"&&t>0;return r||o(),r?e.transition().duration(t).ease(n).on("end",o):e},$J=e=>{const t=e.ctrlKey&&kf()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function YRe({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:o,panOnScrollMode:r,panOnScrollSpeed:a,zoomOnPinch:i,onPanZoomStart:s,onPanZoom:c,onPanZoomEnd:l}){return h=>{if(a0(h,t))return h.ctrlKey&&h.preventDefault(),!1;h.preventDefault(),h.stopImmediatePropagation();const d=n.property("__zoom").k||1;if(h.ctrlKey&&i){const x=er(h),v=$J(h),M=d*Math.pow(2,v);o.scaleTo(n,M,x,h);return}const p=h.deltaMode===1?20:1;let y=r===Bd.Vertical?0:h.deltaX*p,g=r===Bd.Horizontal?0:h.deltaY*p;!kf()&&h.shiftKey&&r!==Bd.Vertical&&(y=h.deltaY*p,g=0),o.translateBy(n,-(y/d)*a,-(g/d)*a,{internal:!0});const k=wR(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(c==null||c(h,k),e.panScrollTimeout=setTimeout(()=>{l==null||l(h,k),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,s==null||s(h,k))}}function QRe({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(o,r){const a=o.type==="wheel",i=!t&&a&&!o.ctrlKey,s=a0(o,e);if(o.ctrlKey&&a&&s&&o.preventDefault(),i||s)return null;o.preventDefault(),n.call(this,o,r)}}function JRe({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return o=>{var a,i,s;if((a=o.sourceEvent)!=null&&a.internal)return;const r=wR(o.transform);e.mouseButton=((i=o.sourceEvent)==null?void 0:i.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=r,((s=o.sourceEvent)==null?void 0:s.type)==="mousedown"&&t(!0),n&&(n==null||n(o.sourceEvent,r))}}function eTe({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:o,onPanZoom:r}){return a=>{var i,s;e.usedRightMouseButton=!!(n&&jJ(t,e.mouseButton??0)),(i=a.sourceEvent)!=null&&i.sync||o([a.transform.x,a.transform.y,a.transform.k]),r&&!((s=a.sourceEvent)!=null&&s.internal)&&(r==null||r(a.sourceEvent,wR(a.transform)))}}function tTe({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:o,onPanZoomEnd:r,onPaneContextMenu:a}){return i=>{var s;if(!((s=i.sourceEvent)!=null&&s.internal)&&(e.isZoomingOrPanning=!1,a&&jJ(t,e.mouseButton??0)&&!e.usedRightMouseButton&&i.sourceEvent&&a(i.sourceEvent),e.usedRightMouseButton=!1,o(!1),r)){const c=wR(i.transform);e.prevViewport=c,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{r==null||r(i.sourceEvent,c)},n?150:0)}}}function nTe({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:o,panOnScroll:r,zoomOnDoubleClick:a,userSelectionActive:i,noWheelClassName:s,noPanClassName:c,lib:l,connectionInProgress:h}){return d=>{var x;const p=e||t,y=n&&d.ctrlKey,g=d.type==="wheel";if(d.button===1&&d.type==="mousedown"&&(a0(d,`${l}-flow__node`)||a0(d,`${l}-flow__edge`)))return!0;if(!o&&!p&&!r&&!a&&!n||i||h&&!g||a0(d,s)&&g||a0(d,c)&&(!g||r&&g&&!e)||!n&&d.ctrlKey&&g)return!1;if(!n&&d.type==="touchstart"&&((x=d.touches)==null?void 0:x.length)>1)return d.preventDefault(),!1;if(!p&&!r&&!y&&g||!o&&(d.type==="mousedown"||d.type==="touchstart")||Array.isArray(o)&&!o.includes(d.button)&&d.type==="mousedown")return!1;const k=Array.isArray(o)&&o.includes(d.button)||!d.button||d.button<=1;return(!d.ctrlKey||g)&&k}}function oTe({domNode:e,minZoom:t,maxZoom:n,translateExtent:o,viewport:r,onPanZoom:a,onPanZoomStart:i,onPanZoomEnd:s,onDraggingChange:c}){const l={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},h=e.getBoundingClientRect(),d=iJ().scaleExtent([t,n]).translateExtent(o),p=fo(e).call(d);M({x:r.x,y:r.y,zoom:q0(r.zoom,t,n)},[[0,0],[h.width,h.height]],o);const y=p.on("wheel.zoom"),g=p.on("dblclick.zoom");d.wheelDelta($J);function k(R,j){return p?new Promise(V=>{d==null||d.interpolate((j==null?void 0:j.interpolate)==="linear"?H2:wP).transform(tD(p,j==null?void 0:j.duration,j==null?void 0:j.ease,()=>V(!0)),R)}):Promise.resolve(!1)}function x({noWheelClassName:R,noPanClassName:j,onPaneContextMenu:V,userSelectionActive:$,panOnScroll:T,panOnDrag:D,panOnScrollMode:F,panOnScrollSpeed:z,preventScrolling:E,zoomOnPinch:N,zoomOnScroll:W,zoomOnDoubleClick:O,zoomActivationKeyPressed:P,lib:Y,onTransformChange:Z,connectionInProgress:te,paneClickDistance:ie,selectionOnDrag:re}){$&&!l.isZoomingOrPanning&&v();const ae=T&&!P&&!$;d.clickDistance(re?1/0:!rr(ie)||ie<0?0:ie);const se=ae?YRe({zoomPanValues:l,noWheelClassName:R,d3Selection:p,d3Zoom:d,panOnScrollMode:F,panOnScrollSpeed:z,zoomOnPinch:N,onPanZoomStart:i,onPanZoom:a,onPanZoomEnd:s}):QRe({noWheelClassName:R,preventScrolling:E,d3ZoomHandler:y});if(p.on("wheel.zoom",se,{passive:!1}),!$){const ke=JRe({zoomPanValues:l,onDraggingChange:c,onPanZoomStart:i});d.on("start",ke);const ge=eTe({zoomPanValues:l,panOnDrag:D,onPaneContextMenu:!!V,onPanZoom:a,onTransformChange:Z});d.on("zoom",ge);const Pe=tTe({zoomPanValues:l,panOnDrag:D,panOnScroll:T,onPaneContextMenu:V,onPanZoomEnd:s,onDraggingChange:c});d.on("end",Pe)}const ve=nTe({zoomActivationKeyPressed:P,panOnDrag:D,zoomOnScroll:W,panOnScroll:T,zoomOnDoubleClick:O,zoomOnPinch:N,userSelectionActive:$,noPanClassName:j,noWheelClassName:R,lib:Y,connectionInProgress:te});d.filter(ve),O?p.on("dblclick.zoom",g):p.on("dblclick.zoom",null)}function v(){d.on("zoom",null)}async function M(R,j,V){const $=eD(R),T=d==null?void 0:d.constrain()($,j,V);return T&&await k(T),new Promise(D=>D(T))}async function w(R,j){const V=eD(R);return await k(V,j),new Promise($=>$(V))}function b(R){if(p){const j=eD(R),V=p.property("__zoom");(V.k!==R.zoom||V.x!==R.x||V.y!==R.y)&&(d==null||d.transform(p,j,null,{sync:!0}))}}function C(){const R=p?aJ(p.node()):{x:0,y:0,k:1};return{x:R.x,y:R.y,zoom:R.k}}function _(R,j){return p?new Promise(V=>{d==null||d.interpolate((j==null?void 0:j.interpolate)==="linear"?H2:wP).scaleTo(tD(p,j==null?void 0:j.duration,j==null?void 0:j.ease,()=>V(!0)),R)}):Promise.resolve(!1)}function S(R,j){return p?new Promise(V=>{d==null||d.interpolate((j==null?void 0:j.interpolate)==="linear"?H2:wP).scaleBy(tD(p,j==null?void 0:j.duration,j==null?void 0:j.ease,()=>V(!0)),R)}):Promise.resolve(!1)}function L(R){d==null||d.scaleExtent(R)}function A(R){d==null||d.translateExtent(R)}function I(R){const j=!rr(R)||R<0?0:R;d==null||d.clickDistance(j)}return{update:x,destroy:v,setViewport:w,setViewportConstrained:M,getViewport:C,scaleTo:_,scaleBy:S,setScaleExtent:L,setTranslateExtent:A,syncViewport:b,setClickDistance:I}}var Ji;(function(e){e.Line="line",e.Handle="handle"})(Ji||(Ji={}));function rTe({width:e,prevWidth:t,height:n,prevHeight:o,affectsX:r,affectsY:a}){const i=e-t,s=n-o,c=[i>0?1:i<0?-1:0,s>0?1:s<0?-1:0];return i&&r&&(c[0]=c[0]*-1),s&&a&&(c[1]=c[1]*-1),c}function YU(e){const t=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),o=e.includes("left"),r=e.includes("top");return{isHorizontal:t,isVertical:n,affectsX:o,affectsY:r}}function pi(e,t){return Math.max(0,t-e)}function yi(e,t){return Math.max(0,e-t)}function qp(e,t,n){return Math.max(0,t-e,e-n)}function QU(e,t){return e?!t:t}function aTe(e,t,n,o,r,a,i,s){let{affectsX:c,affectsY:l}=t;const{isHorizontal:h,isVertical:d}=t,p=h&&d,{xSnapped:y,ySnapped:g}=n,{minWidth:k,maxWidth:x,minHeight:v,maxHeight:M}=o,{x:w,y:b,width:C,height:_,aspectRatio:S}=e;let L=Math.floor(h?y-e.pointerX:0),A=Math.floor(d?g-e.pointerY:0);const I=C+(c?-L:L),R=_+(l?-A:A),j=-a[0]*C,V=-a[1]*_;let $=qp(I,k,x),T=qp(R,v,M);if(i){let z=0,E=0;c&&L<0?z=pi(w+L+j,i[0][0]):!c&&L>0&&(z=yi(w+I+j,i[1][0])),l&&A<0?E=pi(b+A+V,i[0][1]):!l&&A>0&&(E=yi(b+R+V,i[1][1])),$=Math.max($,z),T=Math.max(T,E)}if(s){let z=0,E=0;c&&L>0?z=yi(w+L,s[0][0]):!c&&L<0&&(z=pi(w+I,s[1][0])),l&&A>0?E=yi(b+A,s[0][1]):!l&&A<0&&(E=pi(b+R,s[1][1])),$=Math.max($,z),T=Math.max(T,E)}if(r){if(h){const z=qp(I/S,v,M)*S;if($=Math.max($,z),i){let E=0;!c&&!l||c&&!l&&p?E=yi(b+V+I/S,i[1][1])*S:E=pi(b+V+(c?L:-L)/S,i[0][1])*S,$=Math.max($,E)}if(s){let E=0;!c&&!l||c&&!l&&p?E=pi(b+I/S,s[1][1])*S:E=yi(b+(c?L:-L)/S,s[0][1])*S,$=Math.max($,E)}}if(d){const z=qp(R*S,k,x)/S;if(T=Math.max(T,z),i){let E=0;!c&&!l||l&&!c&&p?E=yi(w+R*S+j,i[1][0])/S:E=pi(w+(l?A:-A)*S+j,i[0][0])/S,T=Math.max(T,E)}if(s){let E=0;!c&&!l||l&&!c&&p?E=pi(w+R*S,s[1][0])/S:E=yi(w+(l?A:-A)*S,s[0][0])/S,T=Math.max(T,E)}}}A=A+(A<0?T:-T),L=L+(L<0?$:-$),r&&(p?I>R*S?A=(QU(c,l)?-L:L)/S:L=(QU(c,l)?-A:A)*S:h?(A=L/S,l=c):(L=A*S,c=l));const D=c?w+L:w,F=l?b+A:b;return{width:C+(c?-L:L),height:_+(l?-A:A),x:a[0]*L*(c?-1:1)+D,y:a[1]*A*(l?-1:1)+F}}const PJ={width:0,height:0,x:0,y:0},iTe={...PJ,pointerX:0,pointerY:0,aspectRatio:1};function sTe(e){return[[0,0],[e.measured.width,e.measured.height]]}function cTe(e,t,n){const o=t.position.x+e.position.x,r=t.position.y+e.position.y,a=e.measured.width??0,i=e.measured.height??0,s=n[0]*a,c=n[1]*i;return[[o-s,r-c],[o+a-s,r+i-c]]}function lTe({domNode:e,nodeId:t,getStoreItems:n,onChange:o,onEnd:r}){const a=fo(e);let i={controlDirection:YU("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function s({controlPosition:l,boundaries:h,keepAspectRatio:d,resizeDirection:p,onResizeStart:y,onResize:g,onResizeEnd:k,shouldResize:x}){let v={...PJ},M={...iTe};i={boundaries:h,resizeDirection:p,keepAspectRatio:d,controlDirection:YU(l)};let w,b=null,C=[],_,S,L,A=!1;const I=BQ().on("start",R=>{const{nodeLookup:j,transform:V,snapGrid:$,snapToGrid:T,nodeOrigin:D,paneDomNode:F}=n();if(w=j.get(t),!w)return;b=(F==null?void 0:F.getBoundingClientRect())??null;const{xSnapped:z,ySnapped:E}=O2(R.sourceEvent,{transform:V,snapGrid:$,snapToGrid:T,containerBounds:b});v={width:w.measured.width??0,height:w.measured.height??0,x:w.position.x??0,y:w.position.y??0},M={...v,pointerX:z,pointerY:E,aspectRatio:v.width/v.height},_=void 0,w.parentId&&(w.extent==="parent"||w.expandParent)&&(_=j.get(w.parentId),S=_&&w.extent==="parent"?sTe(_):void 0),C=[],L=void 0;for(const[N,W]of j)if(W.parentId===t&&(C.push({id:N,position:{...W.position},extent:W.extent}),W.extent==="parent"||W.expandParent)){const O=cTe(W,w,W.origin??D);L?L=[[Math.min(O[0][0],L[0][0]),Math.min(O[0][1],L[0][1])],[Math.max(O[1][0],L[1][0]),Math.max(O[1][1],L[1][1])]]:L=O}y==null||y(R,{...v})}).on("drag",R=>{const{transform:j,snapGrid:V,snapToGrid:$,nodeOrigin:T}=n(),D=O2(R.sourceEvent,{transform:j,snapGrid:V,snapToGrid:$,containerBounds:b}),F=[];if(!w)return;const{x:z,y:E,width:N,height:W}=v,O={},P=w.origin??T,{width:Y,height:Z,x:te,y:ie}=aTe(M,i.controlDirection,D,i.boundaries,i.keepAspectRatio,P,S,L),re=Y!==N,ae=Z!==W,se=te!==z&&re,ve=ie!==E&&ae;if(!se&&!ve&&!re&&!ae)return;if((se||ve||P[0]===1||P[1]===1)&&(O.x=se?te:v.x,O.y=ve?ie:v.y,v.x=O.x,v.y=O.y,C.length>0)){const Be=te-z,De=ie-E;for(const pe of C)pe.position={x:pe.position.x-Be+P[0]*(Y-N),y:pe.position.y-De+P[1]*(Z-W)},F.push(pe)}if((re||ae)&&(O.width=re&&(!i.resizeDirection||i.resizeDirection==="horizontal")?Y:v.width,O.height=ae&&(!i.resizeDirection||i.resizeDirection==="vertical")?Z:v.height,v.width=O.width,v.height=O.height),_&&w.expandParent){const Be=P[0]*(O.width??0);O.x&&O.x<Be&&(v.x=Be,M.x=M.x-(O.x-Be));const De=P[1]*(O.height??0);O.y&&O.y<De&&(v.y=De,M.y=M.y-(O.y-De))}const ke=rTe({width:v.width,prevWidth:N,height:v.height,prevHeight:W,affectsX:i.controlDirection.affectsX,affectsY:i.controlDirection.affectsY}),ge={...v,direction:ke};(x==null?void 0:x(R,ge))!==!1&&(A=!0,g==null||g(R,ge),o(O,F))}).on("end",R=>{A&&(k==null||k(R,{...v}),r==null||r({...v}),A=!1)});a.call(I)}function c(){a.on(".drag",null)}return{update:s,destroy:c}}var zJ={exports:{}},RJ={},TJ={exports:{}},DJ={};/**
8446
+ */const bEe=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:Ny,AArrowDownIcon:Ny,AArrowUp:Iy,AArrowUpIcon:Iy,ALargeSmall:Ay,ALargeSmallIcon:Ay,Accessibility:Ey,AccessibilityIcon:Ey,Activity:jy,ActivityIcon:jy,ActivitySquare:f1,ActivitySquareIcon:f1,AirVent:$y,AirVentIcon:$y,Airplay:Py,AirplayIcon:Py,AlarmCheck:js,AlarmCheckIcon:js,AlarmClock:Ry,AlarmClockCheck:js,AlarmClockCheckIcon:js,AlarmClockIcon:Ry,AlarmClockMinus:$s,AlarmClockMinusIcon:$s,AlarmClockOff:zy,AlarmClockOffIcon:zy,AlarmClockPlus:Ps,AlarmClockPlusIcon:Ps,AlarmMinus:$s,AlarmMinusIcon:$s,AlarmPlus:Ps,AlarmPlusIcon:Ps,AlarmSmoke:Ty,AlarmSmokeIcon:Ty,Album:Dy,AlbumIcon:Dy,AlertCircle:bi,AlertCircleIcon:bi,AlertOctagon:ql,AlertOctagonIcon:ql,AlertTriangle:qr,AlertTriangleIcon:qr,AlignCenter:Si,AlignCenterHorizontal:Oy,AlignCenterHorizontalIcon:Oy,AlignCenterIcon:Si,AlignCenterVertical:Hy,AlignCenterVerticalIcon:Hy,AlignEndHorizontal:Fy,AlignEndHorizontalIcon:Fy,AlignEndVertical:qy,AlignEndVerticalIcon:qy,AlignHorizontalDistributeCenter:Vy,AlignHorizontalDistributeCenterIcon:Vy,AlignHorizontalDistributeEnd:By,AlignHorizontalDistributeEndIcon:By,AlignHorizontalDistributeStart:Uy,AlignHorizontalDistributeStartIcon:Uy,AlignHorizontalJustifyCenter:Wy,AlignHorizontalJustifyCenterIcon:Wy,AlignHorizontalJustifyEnd:Ky,AlignHorizontalJustifyEndIcon:Ky,AlignHorizontalJustifyStart:Gy,AlignHorizontalJustifyStartIcon:Gy,AlignHorizontalSpaceAround:Xy,AlignHorizontalSpaceAroundIcon:Xy,AlignHorizontalSpaceBetween:Zy,AlignHorizontalSpaceBetweenIcon:Zy,AlignJustify:hd,AlignJustifyIcon:hd,AlignLeft:Zo,AlignLeftIcon:Zo,AlignRight:Li,AlignRightIcon:Li,AlignStartHorizontal:Yy,AlignStartHorizontalIcon:Yy,AlignStartVertical:Qy,AlignStartVerticalIcon:Qy,AlignVerticalDistributeCenter:Jy,AlignVerticalDistributeCenterIcon:Jy,AlignVerticalDistributeEnd:em,AlignVerticalDistributeEndIcon:em,AlignVerticalDistributeStart:tm,AlignVerticalDistributeStartIcon:tm,AlignVerticalJustifyCenter:nm,AlignVerticalJustifyCenterIcon:nm,AlignVerticalJustifyEnd:om,AlignVerticalJustifyEndIcon:om,AlignVerticalJustifyStart:rm,AlignVerticalJustifyStartIcon:rm,AlignVerticalSpaceAround:am,AlignVerticalSpaceAroundIcon:am,AlignVerticalSpaceBetween:im,AlignVerticalSpaceBetweenIcon:im,Ambulance:sm,AmbulanceIcon:sm,Ampersand:cm,AmpersandIcon:cm,Ampersands:lm,AmpersandsIcon:lm,Amphora:dm,AmphoraIcon:dm,Anchor:um,AnchorIcon:um,Angry:hm,AngryIcon:hm,Annoyed:fm,AnnoyedIcon:fm,Antenna:pm,AntennaIcon:pm,Anvil:ym,AnvilIcon:ym,Aperture:mm,ApertureIcon:mm,AppWindow:km,AppWindowIcon:km,AppWindowMac:gm,AppWindowMacIcon:gm,Apple:vm,AppleIcon:vm,Archive:Mm,ArchiveIcon:Mm,ArchiveRestore:xm,ArchiveRestoreIcon:xm,ArchiveX:wm,ArchiveXIcon:wm,AreaChart:Xs,AreaChartIcon:Xs,Armchair:bm,ArmchairIcon:bm,ArrowBigDown:Cm,ArrowBigDownDash:_m,ArrowBigDownDashIcon:_m,ArrowBigDownIcon:Cm,ArrowBigLeft:Lm,ArrowBigLeftDash:Sm,ArrowBigLeftDashIcon:Sm,ArrowBigLeftIcon:Lm,ArrowBigRight:Im,ArrowBigRightDash:Nm,ArrowBigRightDashIcon:Nm,ArrowBigRightIcon:Im,ArrowBigUp:Em,ArrowBigUpDash:Am,ArrowBigUpDashIcon:Am,ArrowBigUpIcon:Em,ArrowDown:Fm,ArrowDown01:jm,ArrowDown01Icon:jm,ArrowDown10:$m,ArrowDown10Icon:$m,ArrowDownAZ:zs,ArrowDownAZIcon:zs,ArrowDownAz:zs,ArrowDownAzIcon:zs,ArrowDownCircle:lc,ArrowDownCircleIcon:lc,ArrowDownFromLine:Pm,ArrowDownFromLineIcon:Pm,ArrowDownIcon:Fm,ArrowDownLeft:Rm,ArrowDownLeftFromCircle:dc,ArrowDownLeftFromCircleIcon:dc,ArrowDownLeftFromSquare:k1,ArrowDownLeftFromSquareIcon:k1,ArrowDownLeftIcon:Rm,ArrowDownLeftSquare:p1,ArrowDownLeftSquareIcon:p1,ArrowDownNarrowWide:zm,ArrowDownNarrowWideIcon:zm,ArrowDownRight:Dm,ArrowDownRightFromCircle:hc,ArrowDownRightFromCircleIcon:hc,ArrowDownRightFromSquare:v1,ArrowDownRightFromSquareIcon:v1,ArrowDownRightIcon:Dm,ArrowDownRightSquare:y1,ArrowDownRightSquareIcon:y1,ArrowDownSquare:m1,ArrowDownSquareIcon:m1,ArrowDownToDot:Tm,ArrowDownToDotIcon:Tm,ArrowDownToLine:Hm,ArrowDownToLineIcon:Hm,ArrowDownUp:Om,ArrowDownUpIcon:Om,ArrowDownWideNarrow:Rs,ArrowDownWideNarrowIcon:Rs,ArrowDownZA:Ts,ArrowDownZAIcon:Ts,ArrowDownZa:Ts,ArrowDownZaIcon:Ts,ArrowLeft:Bm,ArrowLeftCircle:uc,ArrowLeftCircleIcon:uc,ArrowLeftFromLine:qm,ArrowLeftFromLineIcon:qm,ArrowLeftIcon:Bm,ArrowLeftRight:d2,ArrowLeftRightIcon:d2,ArrowLeftSquare:g1,ArrowLeftSquareIcon:g1,ArrowLeftToLine:Vm,ArrowLeftToLineIcon:Vm,ArrowRight:y0,ArrowRightCircle:yc,ArrowRightCircleIcon:yc,ArrowRightFromLine:Um,ArrowRightFromLineIcon:Um,ArrowRightIcon:y0,ArrowRightLeft:Wm,ArrowRightLeftIcon:Wm,ArrowRightSquare:M1,ArrowRightSquareIcon:M1,ArrowRightToLine:Gm,ArrowRightToLineIcon:Gm,ArrowUp:og,ArrowUp01:Km,ArrowUp01Icon:Km,ArrowUp10:Xm,ArrowUp10Icon:Xm,ArrowUpAZ:Ds,ArrowUpAZIcon:Ds,ArrowUpAz:Ds,ArrowUpAzIcon:Ds,ArrowUpCircle:mc,ArrowUpCircleIcon:mc,ArrowUpDown:Zm,ArrowUpDownIcon:Zm,ArrowUpFromDot:Ym,ArrowUpFromDotIcon:Ym,ArrowUpFromLine:Qm,ArrowUpFromLineIcon:Qm,ArrowUpIcon:og,ArrowUpLeft:Jm,ArrowUpLeftFromCircle:fc,ArrowUpLeftFromCircleIcon:fc,ArrowUpLeftFromSquare:x1,ArrowUpLeftFromSquareIcon:x1,ArrowUpLeftIcon:Jm,ArrowUpLeftSquare:b1,ArrowUpLeftSquareIcon:b1,ArrowUpNarrowWide:Hs,ArrowUpNarrowWideIcon:Hs,ArrowUpRight:tg,ArrowUpRightFromCircle:pc,ArrowUpRightFromCircleIcon:pc,ArrowUpRightFromSquare:w1,ArrowUpRightFromSquareIcon:w1,ArrowUpRightIcon:tg,ArrowUpRightSquare:S1,ArrowUpRightSquareIcon:S1,ArrowUpSquare:_1,ArrowUpSquareIcon:_1,ArrowUpToLine:eg,ArrowUpToLineIcon:eg,ArrowUpWideNarrow:ng,ArrowUpWideNarrowIcon:ng,ArrowUpZA:Os,ArrowUpZAIcon:Os,ArrowUpZa:Os,ArrowUpZaIcon:Os,ArrowsUpFromLine:rg,ArrowsUpFromLineIcon:rg,Asterisk:ag,AsteriskIcon:ag,AsteriskSquare:C1,AsteriskSquareIcon:C1,AtSign:ig,AtSignIcon:ig,Atom:sg,AtomIcon:sg,AudioLines:cg,AudioLinesIcon:cg,AudioWaveform:dg,AudioWaveformIcon:dg,Award:lg,AwardIcon:lg,Axe:ug,AxeIcon:ug,Axis3D:Fs,Axis3DIcon:Fs,Axis3d:Fs,Axis3dIcon:Fs,Baby:hg,BabyIcon:hg,Backpack:fg,BackpackIcon:fg,Badge:Ig,BadgeAlert:yg,BadgeAlertIcon:yg,BadgeCent:pg,BadgeCentIcon:pg,BadgeCheck:qs,BadgeCheckIcon:qs,BadgeDollarSign:mg,BadgeDollarSignIcon:mg,BadgeEuro:kg,BadgeEuroIcon:kg,BadgeHelp:Vs,BadgeHelpIcon:Vs,BadgeIcon:Ig,BadgeIndianRupee:gg,BadgeIndianRupeeIcon:gg,BadgeInfo:vg,BadgeInfoIcon:vg,BadgeJapaneseYen:xg,BadgeJapaneseYenIcon:xg,BadgeMinus:wg,BadgeMinusIcon:wg,BadgePercent:Mg,BadgePercentIcon:Mg,BadgePlus:bg,BadgePlusIcon:bg,BadgePoundSterling:_g,BadgePoundSterlingIcon:_g,BadgeQuestionMark:Vs,BadgeQuestionMarkIcon:Vs,BadgeRussianRuble:Cg,BadgeRussianRubleIcon:Cg,BadgeSwissFranc:Sg,BadgeSwissFrancIcon:Sg,BadgeTurkishLira:Lg,BadgeTurkishLiraIcon:Lg,BadgeX:Ng,BadgeXIcon:Ng,BaggageClaim:Ag,BaggageClaimIcon:Ag,Balloon:Eg,BalloonIcon:Eg,Ban:u2,BanIcon:u2,Banana:jg,BananaIcon:jg,Bandage:$g,BandageIcon:$g,Banknote:Tg,BanknoteArrowDown:Pg,BanknoteArrowDownIcon:Pg,BanknoteArrowUp:zg,BanknoteArrowUpIcon:zg,BanknoteIcon:Tg,BanknoteX:Rg,BanknoteXIcon:Rg,BarChart:oc,BarChart2:rc,BarChart2Icon:rc,BarChart3:tc,BarChart3Icon:tc,BarChart4:ec,BarChart4Icon:ec,BarChartBig:Js,BarChartBigIcon:Js,BarChartHorizontal:Ys,BarChartHorizontalBig:Zs,BarChartHorizontalBigIcon:Zs,BarChartHorizontalIcon:Ys,BarChartIcon:oc,Barcode:Dg,BarcodeIcon:Dg,Barrel:Hg,BarrelIcon:Hg,Baseline:Og,BaselineIcon:Og,Bath:Fg,BathIcon:Fg,Battery:Kg,BatteryCharging:qg,BatteryChargingIcon:qg,BatteryFull:Vg,BatteryFullIcon:Vg,BatteryIcon:Kg,BatteryLow:Bg,BatteryLowIcon:Bg,BatteryMedium:Ug,BatteryMediumIcon:Ug,BatteryPlus:Wg,BatteryPlusIcon:Wg,BatteryWarning:Gg,BatteryWarningIcon:Gg,Beaker:Xg,BeakerIcon:Xg,Bean:Yg,BeanIcon:Yg,BeanOff:Zg,BeanOffIcon:Zg,Bed:ek,BedDouble:Qg,BedDoubleIcon:Qg,BedIcon:ek,BedSingle:Jg,BedSingleIcon:Jg,Beef:tk,BeefIcon:tk,Beer:ok,BeerIcon:ok,BeerOff:nk,BeerOffIcon:nk,Bell:dk,BellDot:rk,BellDotIcon:rk,BellElectric:ak,BellElectricIcon:ak,BellIcon:dk,BellMinus:ik,BellMinusIcon:ik,BellOff:sk,BellOffIcon:sk,BellPlus:ck,BellPlusIcon:ck,BellRing:lk,BellRingIcon:lk,BetweenHorizonalEnd:Bs,BetweenHorizonalEndIcon:Bs,BetweenHorizonalStart:Us,BetweenHorizonalStartIcon:Us,BetweenHorizontalEnd:Bs,BetweenHorizontalEndIcon:Bs,BetweenHorizontalStart:Us,BetweenHorizontalStartIcon:Us,BetweenVerticalEnd:uk,BetweenVerticalEndIcon:uk,BetweenVerticalStart:hk,BetweenVerticalStartIcon:hk,BicepsFlexed:fk,BicepsFlexedIcon:fk,Bike:pk,BikeIcon:pk,Binary:yk,BinaryIcon:yk,Binoculars:mk,BinocularsIcon:mk,Biohazard:gk,BiohazardIcon:gk,Bird:kk,BirdIcon:kk,Birdhouse:vk,BirdhouseIcon:vk,Bitcoin:xk,BitcoinIcon:xk,Blend:wk,BlendIcon:wk,Blinds:Mk,BlindsIcon:Mk,Blocks:bk,BlocksIcon:bk,Bluetooth:Lk,BluetoothConnected:_k,BluetoothConnectedIcon:_k,BluetoothIcon:Lk,BluetoothOff:Ck,BluetoothOffIcon:Ck,BluetoothSearching:Sk,BluetoothSearchingIcon:Sk,Bold:Nk,BoldIcon:Nk,Bolt:Ik,BoltIcon:Ik,Bomb:Ak,BombIcon:Ak,Bone:Ek,BoneIcon:Ek,Book:n4,BookA:jk,BookAIcon:jk,BookAlert:$k,BookAlertIcon:$k,BookAudio:Pk,BookAudioIcon:Pk,BookCheck:zk,BookCheckIcon:zk,BookCopy:Rk,BookCopyIcon:Rk,BookDashed:Ws,BookDashedIcon:Ws,BookDown:Tk,BookDownIcon:Tk,BookHeadphones:Dk,BookHeadphonesIcon:Dk,BookHeart:Hk,BookHeartIcon:Hk,BookIcon:n4,BookImage:Ok,BookImageIcon:Ok,BookKey:Fk,BookKeyIcon:Fk,BookLock:qk,BookLockIcon:qk,BookMarked:Vk,BookMarkedIcon:Vk,BookMinus:Bk,BookMinusIcon:Bk,BookOpen:Gk,BookOpenCheck:Uk,BookOpenCheckIcon:Uk,BookOpenIcon:Gk,BookOpenText:Wk,BookOpenTextIcon:Wk,BookPlus:Kk,BookPlusIcon:Kk,BookSearch:Xk,BookSearchIcon:Xk,BookTemplate:Ws,BookTemplateIcon:Ws,BookText:Zk,BookTextIcon:Zk,BookType:Yk,BookTypeIcon:Yk,BookUp:Jk,BookUp2:Qk,BookUp2Icon:Qk,BookUpIcon:Jk,BookUser:e4,BookUserIcon:e4,BookX:t4,BookXIcon:t4,Bookmark:s4,BookmarkCheck:o4,BookmarkCheckIcon:o4,BookmarkIcon:s4,BookmarkMinus:r4,BookmarkMinusIcon:r4,BookmarkPlus:a4,BookmarkPlusIcon:a4,BookmarkX:i4,BookmarkXIcon:i4,BoomBox:c4,BoomBoxIcon:c4,Bot:d4,BotIcon:d4,BotMessageSquare:l4,BotMessageSquareIcon:l4,BotOff:u4,BotOffIcon:u4,BottleWine:h4,BottleWineIcon:h4,BowArrow:f4,BowArrowIcon:f4,Box:p4,BoxIcon:p4,BoxSelect:T1,BoxSelectIcon:T1,Boxes:y4,BoxesIcon:y4,Braces:Gs,BracesIcon:Gs,Brackets:m4,BracketsIcon:m4,Brain:v4,BrainCircuit:g4,BrainCircuitIcon:g4,BrainCog:k4,BrainCogIcon:k4,BrainIcon:v4,BrickWall:M4,BrickWallFire:x4,BrickWallFireIcon:x4,BrickWallIcon:M4,BrickWallShield:w4,BrickWallShieldIcon:w4,Briefcase:S4,BriefcaseBusiness:b4,BriefcaseBusinessIcon:b4,BriefcaseConveyorBelt:_4,BriefcaseConveyorBeltIcon:_4,BriefcaseIcon:S4,BriefcaseMedical:C4,BriefcaseMedicalIcon:C4,BringToFront:L4,BringToFrontIcon:L4,Brush:A4,BrushCleaning:N4,BrushCleaningIcon:N4,BrushIcon:A4,Bubbles:I4,BubblesIcon:I4,Bug:$4,BugIcon:$4,BugOff:E4,BugOffIcon:E4,BugPlay:j4,BugPlayIcon:j4,Building:P4,Building2:z4,Building2Icon:z4,BuildingIcon:P4,Bus:T4,BusFront:R4,BusFrontIcon:R4,BusIcon:T4,Cable:H4,CableCar:D4,CableCarIcon:D4,CableIcon:H4,Cake:F4,CakeIcon:F4,CakeSlice:O4,CakeSliceIcon:O4,Calculator:q4,CalculatorIcon:q4,Calendar:l5,Calendar1:V4,Calendar1Icon:V4,CalendarArrowDown:B4,CalendarArrowDownIcon:B4,CalendarArrowUp:U4,CalendarArrowUpIcon:U4,CalendarCheck:G4,CalendarCheck2:W4,CalendarCheck2Icon:W4,CalendarCheckIcon:G4,CalendarClock:K4,CalendarClockIcon:K4,CalendarCog:X4,CalendarCogIcon:X4,CalendarDays:Z4,CalendarDaysIcon:Z4,CalendarFold:Y4,CalendarFoldIcon:Y4,CalendarHeart:Q4,CalendarHeartIcon:Q4,CalendarIcon:l5,CalendarMinus:e5,CalendarMinus2:J4,CalendarMinus2Icon:J4,CalendarMinusIcon:e5,CalendarOff:t5,CalendarOffIcon:t5,CalendarPlus:r5,CalendarPlus2:n5,CalendarPlus2Icon:n5,CalendarPlusIcon:r5,CalendarRange:o5,CalendarRangeIcon:o5,CalendarSearch:a5,CalendarSearchIcon:a5,CalendarSync:i5,CalendarSyncIcon:i5,CalendarX:c5,CalendarX2:s5,CalendarX2Icon:s5,CalendarXIcon:c5,Calendars:d5,CalendarsIcon:d5,Camera:h5,CameraIcon:h5,CameraOff:u5,CameraOffIcon:u5,CandlestickChart:Qs,CandlestickChartIcon:Qs,Candy:y5,CandyCane:f5,CandyCaneIcon:f5,CandyIcon:y5,CandyOff:p5,CandyOffIcon:p5,Cannabis:g5,CannabisIcon:g5,CannabisOff:m5,CannabisOffIcon:m5,Captions:Ks,CaptionsIcon:Ks,CaptionsOff:k5,CaptionsOffIcon:k5,Car:w5,CarFront:v5,CarFrontIcon:v5,CarIcon:w5,CarTaxiFront:x5,CarTaxiFrontIcon:x5,Caravan:M5,CaravanIcon:M5,CardSim:b5,CardSimIcon:b5,Carrot:_5,CarrotIcon:_5,CaseLower:C5,CaseLowerIcon:C5,CaseSensitive:S5,CaseSensitiveIcon:S5,CaseUpper:L5,CaseUpperIcon:L5,CassetteTape:N5,CassetteTapeIcon:N5,Cast:I5,CastIcon:I5,Castle:A5,CastleIcon:A5,Cat:E5,CatIcon:E5,Cctv:j5,CctvIcon:j5,ChartArea:Xs,ChartAreaIcon:Xs,ChartBar:Ys,ChartBarBig:Zs,ChartBarBigIcon:Zs,ChartBarDecreasing:$5,ChartBarDecreasingIcon:$5,ChartBarIcon:Ys,ChartBarIncreasing:P5,ChartBarIncreasingIcon:P5,ChartBarStacked:z5,ChartBarStackedIcon:z5,ChartCandlestick:Qs,ChartCandlestickIcon:Qs,ChartColumn:tc,ChartColumnBig:Js,ChartColumnBigIcon:Js,ChartColumnDecreasing:R5,ChartColumnDecreasingIcon:R5,ChartColumnIcon:tc,ChartColumnIncreasing:ec,ChartColumnIncreasingIcon:ec,ChartColumnStacked:T5,ChartColumnStackedIcon:T5,ChartGantt:D5,ChartGanttIcon:D5,ChartLine:nc,ChartLineIcon:nc,ChartNetwork:H5,ChartNetworkIcon:H5,ChartNoAxesColumn:rc,ChartNoAxesColumnDecreasing:O5,ChartNoAxesColumnDecreasingIcon:O5,ChartNoAxesColumnIcon:rc,ChartNoAxesColumnIncreasing:oc,ChartNoAxesColumnIncreasingIcon:oc,ChartNoAxesCombined:F5,ChartNoAxesCombinedIcon:F5,ChartNoAxesGantt:ac,ChartNoAxesGanttIcon:ac,ChartPie:ic,ChartPieIcon:ic,ChartScatter:sc,ChartScatterIcon:sc,ChartSpline:q5,ChartSplineIcon:q5,Check:Bi,CheckCheck:V5,CheckCheckIcon:V5,CheckCircle:gc,CheckCircle2:_i,CheckCircle2Icon:_i,CheckCircleIcon:gc,CheckIcon:Bi,CheckLine:B5,CheckLineIcon:B5,CheckSquare:N1,CheckSquare2:I1,CheckSquare2Icon:I1,CheckSquareIcon:N1,ChefHat:U5,ChefHatIcon:U5,Cherry:W5,CherryIcon:W5,ChessBishop:G5,ChessBishopIcon:G5,ChessKing:K5,ChessKingIcon:K5,ChessKnight:X5,ChessKnightIcon:X5,ChessPawn:Z5,ChessPawnIcon:Z5,ChessQueen:Y5,ChessQueenIcon:Y5,ChessRook:J5,ChessRookIcon:J5,ChevronDown:Q5,ChevronDownCircle:kc,ChevronDownCircleIcon:kc,ChevronDownIcon:Q5,ChevronDownSquare:A1,ChevronDownSquareIcon:A1,ChevronFirst:ev,ChevronFirstIcon:ev,ChevronLast:tv,ChevronLastIcon:tv,ChevronLeft:nv,ChevronLeftCircle:vc,ChevronLeftCircleIcon:vc,ChevronLeftIcon:nv,ChevronLeftSquare:E1,ChevronLeftSquareIcon:E1,ChevronRight:ov,ChevronRightCircle:xc,ChevronRightCircleIcon:xc,ChevronRightIcon:ov,ChevronRightSquare:$1,ChevronRightSquareIcon:$1,ChevronUp:rv,ChevronUpCircle:wc,ChevronUpCircleIcon:wc,ChevronUpIcon:rv,ChevronUpSquare:j1,ChevronUpSquareIcon:j1,ChevronsDown:iv,ChevronsDownIcon:iv,ChevronsDownUp:av,ChevronsDownUpIcon:av,ChevronsLeft:lv,ChevronsLeftIcon:lv,ChevronsLeftRight:cv,ChevronsLeftRightEllipsis:sv,ChevronsLeftRightEllipsisIcon:sv,ChevronsLeftRightIcon:cv,ChevronsRight:uv,ChevronsRightIcon:uv,ChevronsRightLeft:dv,ChevronsRightLeftIcon:dv,ChevronsUp:fv,ChevronsUpDown:hv,ChevronsUpDownIcon:hv,ChevronsUpIcon:fv,Chrome:cc,ChromeIcon:cc,Chromium:cc,ChromiumIcon:cc,Church:pv,ChurchIcon:pv,Cigarette:mv,CigaretteIcon:mv,CigaretteOff:yv,CigaretteOffIcon:yv,Circle:m0,CircleAlert:bi,CircleAlertIcon:bi,CircleArrowDown:lc,CircleArrowDownIcon:lc,CircleArrowLeft:uc,CircleArrowLeftIcon:uc,CircleArrowOutDownLeft:dc,CircleArrowOutDownLeftIcon:dc,CircleArrowOutDownRight:hc,CircleArrowOutDownRightIcon:hc,CircleArrowOutUpLeft:fc,CircleArrowOutUpLeftIcon:fc,CircleArrowOutUpRight:pc,CircleArrowOutUpRightIcon:pc,CircleArrowRight:yc,CircleArrowRightIcon:yc,CircleArrowUp:mc,CircleArrowUpIcon:mc,CircleCheck:_i,CircleCheckBig:gc,CircleCheckBigIcon:gc,CircleCheckIcon:_i,CircleChevronDown:kc,CircleChevronDownIcon:kc,CircleChevronLeft:vc,CircleChevronLeftIcon:vc,CircleChevronRight:xc,CircleChevronRightIcon:xc,CircleChevronUp:wc,CircleChevronUpIcon:wc,CircleDashed:gv,CircleDashedIcon:gv,CircleDivide:Mc,CircleDivideIcon:Mc,CircleDollarSign:kv,CircleDollarSignIcon:kv,CircleDot:xv,CircleDotDashed:vv,CircleDotDashedIcon:vv,CircleDotIcon:xv,CircleEllipsis:wv,CircleEllipsisIcon:wv,CircleEqual:Mv,CircleEqualIcon:Mv,CircleFadingArrowUp:bv,CircleFadingArrowUpIcon:bv,CircleFadingPlus:_v,CircleFadingPlusIcon:_v,CircleGauge:bc,CircleGaugeIcon:bc,CircleHelp:Xo,CircleHelpIcon:Xo,CircleIcon:m0,CircleMinus:_c,CircleMinusIcon:_c,CircleOff:Cv,CircleOffIcon:Cv,CircleParking:Sc,CircleParkingIcon:Sc,CircleParkingOff:Cc,CircleParkingOffIcon:Cc,CirclePause:Lc,CirclePauseIcon:Lc,CirclePercent:Nc,CirclePercentIcon:Nc,CirclePile:Sv,CirclePileIcon:Sv,CirclePlay:Ic,CirclePlayIcon:Ic,CirclePlus:Ac,CirclePlusIcon:Ac,CirclePoundSterling:Lv,CirclePoundSterlingIcon:Lv,CirclePower:Ec,CirclePowerIcon:Ec,CircleQuestionMark:Xo,CircleQuestionMarkIcon:Xo,CircleSlash:Nv,CircleSlash2:jc,CircleSlash2Icon:jc,CircleSlashIcon:Nv,CircleSlashed:jc,CircleSlashedIcon:jc,CircleSmall:Iv,CircleSmallIcon:Iv,CircleStar:Av,CircleStarIcon:Av,CircleStop:Pc,CircleStopIcon:Pc,CircleUser:zc,CircleUserIcon:zc,CircleUserRound:$c,CircleUserRoundIcon:$c,CircleX:Rc,CircleXIcon:Rc,CircuitBoard:Ev,CircuitBoardIcon:Ev,Citrus:jv,CitrusIcon:jv,Clapperboard:$v,ClapperboardIcon:$v,Clipboard:Vv,ClipboardCheck:Pv,ClipboardCheckIcon:Pv,ClipboardClock:zv,ClipboardClockIcon:zv,ClipboardCopy:Rv,ClipboardCopyIcon:Rv,ClipboardEdit:Dc,ClipboardEditIcon:Dc,ClipboardIcon:Vv,ClipboardList:Tv,ClipboardListIcon:Tv,ClipboardMinus:Dv,ClipboardMinusIcon:Dv,ClipboardPaste:Hv,ClipboardPasteIcon:Hv,ClipboardPen:Dc,ClipboardPenIcon:Dc,ClipboardPenLine:Tc,ClipboardPenLineIcon:Tc,ClipboardPlus:Ov,ClipboardPlusIcon:Ov,ClipboardSignature:Tc,ClipboardSignatureIcon:Tc,ClipboardType:Fv,ClipboardTypeIcon:Fv,ClipboardX:qv,ClipboardXIcon:qv,Clock:cx,Clock1:Bv,Clock10:Uv,Clock10Icon:Uv,Clock11:Wv,Clock11Icon:Wv,Clock12:Gv,Clock12Icon:Gv,Clock1Icon:Bv,Clock2:Kv,Clock2Icon:Kv,Clock3:Xv,Clock3Icon:Xv,Clock4:Zv,Clock4Icon:Zv,Clock5:Yv,Clock5Icon:Yv,Clock6:Qv,Clock6Icon:Qv,Clock7:Jv,Clock7Icon:Jv,Clock8:ex,Clock8Icon:ex,Clock9:tx,Clock9Icon:tx,ClockAlert:nx,ClockAlertIcon:nx,ClockArrowDown:ox,ClockArrowDownIcon:ox,ClockArrowUp:ix,ClockArrowUpIcon:ix,ClockCheck:rx,ClockCheckIcon:rx,ClockFading:ax,ClockFadingIcon:ax,ClockIcon:cx,ClockPlus:sx,ClockPlusIcon:sx,ClosedCaption:lx,ClosedCaptionIcon:lx,Cloud:h2,CloudAlert:dx,CloudAlertIcon:dx,CloudBackup:ux,CloudBackupIcon:ux,CloudCheck:hx,CloudCheckIcon:hx,CloudCog:fx,CloudCogIcon:fx,CloudDownload:Hc,CloudDownloadIcon:Hc,CloudDrizzle:px,CloudDrizzleIcon:px,CloudFog:yx,CloudFogIcon:yx,CloudHail:mx,CloudHailIcon:mx,CloudIcon:h2,CloudLightning:gx,CloudLightningIcon:gx,CloudMoon:vx,CloudMoonIcon:vx,CloudMoonRain:kx,CloudMoonRainIcon:kx,CloudOff:xx,CloudOffIcon:xx,CloudRain:Mx,CloudRainIcon:Mx,CloudRainWind:wx,CloudRainWindIcon:wx,CloudSnow:bx,CloudSnowIcon:bx,CloudSun:Cx,CloudSunIcon:Cx,CloudSunRain:_x,CloudSunRainIcon:_x,CloudSync:Sx,CloudSyncIcon:Sx,CloudUpload:Oc,CloudUploadIcon:Oc,Cloudy:Lx,CloudyIcon:Lx,Clover:Nx,CloverIcon:Nx,Club:Ix,ClubIcon:Ix,Code:Ax,Code2:Fc,Code2Icon:Fc,CodeIcon:Ax,CodeSquare:P1,CodeSquareIcon:P1,CodeXml:Fc,CodeXmlIcon:Fc,Codepen:Ex,CodepenIcon:Ex,Codesandbox:jx,CodesandboxIcon:jx,Coffee:$x,CoffeeIcon:$x,Cog:Px,CogIcon:Px,Coins:zx,CoinsIcon:zx,Columns:qc,Columns2:qc,Columns2Icon:qc,Columns3:Ci,Columns3Cog:$r,Columns3CogIcon:$r,Columns3Icon:Ci,Columns4:Rx,Columns4Icon:Rx,ColumnsIcon:qc,ColumnsSettings:$r,ColumnsSettingsIcon:$r,Combine:Tx,CombineIcon:Tx,Command:Dx,CommandIcon:Dx,Compass:Hx,CompassIcon:Hx,Component:Ox,ComponentIcon:Ox,Computer:Fx,ComputerIcon:Fx,ConciergeBell:qx,ConciergeBellIcon:qx,Cone:Vx,ConeIcon:Vx,Construction:Bx,ConstructionIcon:Bx,Contact:Ux,Contact2:Vc,Contact2Icon:Vc,ContactIcon:Ux,ContactRound:Vc,ContactRoundIcon:Vc,Container:Wx,ContainerIcon:Wx,Contrast:Gx,ContrastIcon:Gx,Cookie:Kx,CookieIcon:Kx,CookingPot:Xx,CookingPotIcon:Xx,Copy:t3,CopyCheck:Zx,CopyCheckIcon:Zx,CopyIcon:t3,CopyMinus:Yx,CopyMinusIcon:Yx,CopyPlus:Qx,CopyPlusIcon:Qx,CopySlash:Jx,CopySlashIcon:Jx,CopyX:e3,CopyXIcon:e3,Copyleft:o3,CopyleftIcon:o3,Copyright:n3,CopyrightIcon:n3,CornerDownLeft:r3,CornerDownLeftIcon:r3,CornerDownRight:a3,CornerDownRightIcon:a3,CornerLeftDown:i3,CornerLeftDownIcon:i3,CornerLeftUp:s3,CornerLeftUpIcon:s3,CornerRightDown:l3,CornerRightDownIcon:l3,CornerRightUp:c3,CornerRightUpIcon:c3,CornerUpLeft:u3,CornerUpLeftIcon:u3,CornerUpRight:d3,CornerUpRightIcon:d3,Cpu:h3,CpuIcon:h3,CreativeCommons:f3,CreativeCommonsIcon:f3,CreditCard:p3,CreditCardIcon:p3,Croissant:y3,CroissantIcon:y3,Crop:m3,CropIcon:m3,Cross:g3,CrossIcon:g3,Crosshair:k3,CrosshairIcon:k3,Crown:v3,CrownIcon:v3,Cuboid:x3,CuboidIcon:x3,CupSoda:w3,CupSodaIcon:w3,CurlyBraces:Gs,CurlyBracesIcon:Gs,Currency:M3,CurrencyIcon:M3,Cylinder:b3,CylinderIcon:b3,Dam:_3,DamIcon:_3,Database:f2,DatabaseBackup:C3,DatabaseBackupIcon:C3,DatabaseIcon:f2,DatabaseSearch:S3,DatabaseSearchIcon:S3,DatabaseZap:L3,DatabaseZapIcon:L3,DecimalsArrowLeft:N3,DecimalsArrowLeftIcon:N3,DecimalsArrowRight:I3,DecimalsArrowRightIcon:I3,Delete:A3,DeleteIcon:A3,Dessert:E3,DessertIcon:E3,Diameter:j3,DiameterIcon:j3,Diamond:g0,DiamondIcon:g0,DiamondMinus:$3,DiamondMinusIcon:$3,DiamondPercent:Bc,DiamondPercentIcon:Bc,DiamondPlus:P3,DiamondPlusIcon:P3,Dice1:z3,Dice1Icon:z3,Dice2:T3,Dice2Icon:T3,Dice3:R3,Dice3Icon:R3,Dice4:D3,Dice4Icon:D3,Dice5:H3,Dice5Icon:H3,Dice6:O3,Dice6Icon:O3,Dices:F3,DicesIcon:F3,Diff:q3,DiffIcon:q3,Disc:W3,Disc2:V3,Disc2Icon:V3,Disc3:U3,Disc3Icon:U3,DiscAlbum:B3,DiscAlbumIcon:B3,DiscIcon:W3,Divide:G3,DivideCircle:Mc,DivideCircleIcon:Mc,DivideIcon:G3,DivideSquare:D1,DivideSquareIcon:D1,Dna:X3,DnaIcon:X3,DnaOff:K3,DnaOffIcon:K3,Dock:Z3,DockIcon:Z3,Dog:Y3,DogIcon:Y3,DollarSign:Q3,DollarSignIcon:Q3,Donut:J3,DonutIcon:J3,DoorClosed:t8,DoorClosedIcon:t8,DoorClosedLocked:e8,DoorClosedLockedIcon:e8,DoorOpen:n8,DoorOpenIcon:n8,Dot:o8,DotIcon:o8,DotSquare:H1,DotSquareIcon:H1,Download:k0,DownloadCloud:Hc,DownloadCloudIcon:Hc,DownloadIcon:k0,DraftingCompass:r8,DraftingCompassIcon:r8,Drama:a8,DramaIcon:a8,Dribbble:i8,DribbbleIcon:i8,Drill:s8,DrillIcon:s8,Drone:c8,DroneIcon:c8,Droplet:d8,DropletIcon:d8,DropletOff:l8,DropletOffIcon:l8,Droplets:u8,DropletsIcon:u8,Drum:h8,DrumIcon:h8,Drumstick:f8,DrumstickIcon:f8,Dumbbell:p8,DumbbellIcon:p8,Ear:y8,EarIcon:y8,EarOff:m8,EarOffIcon:m8,Earth:Uc,EarthIcon:Uc,EarthLock:g8,EarthLockIcon:g8,Eclipse:k8,EclipseIcon:k8,Edit:so,Edit2:t1,Edit2Icon:t1,Edit3:e1,Edit3Icon:e1,EditIcon:so,Egg:w8,EggFried:v8,EggFriedIcon:v8,EggIcon:w8,EggOff:x8,EggOffIcon:x8,Ellipsis:Gc,EllipsisIcon:Gc,EllipsisVertical:Wc,EllipsisVerticalIcon:Wc,Equal:_8,EqualApproximately:M8,EqualApproximatelyIcon:M8,EqualIcon:_8,EqualNot:b8,EqualNotIcon:b8,EqualSquare:O1,EqualSquareIcon:O1,Eraser:C8,EraserIcon:C8,EthernetPort:S8,EthernetPortIcon:S8,Euro:L8,EuroIcon:L8,EvCharger:N8,EvChargerIcon:N8,Expand:I8,ExpandIcon:I8,ExternalLink:p2,ExternalLinkIcon:p2,Eye:j8,EyeClosed:A8,EyeClosedIcon:A8,EyeIcon:j8,EyeOff:E8,EyeOffIcon:E8,Facebook:$8,FacebookIcon:$8,Factory:P8,FactoryIcon:P8,Fan:R8,FanIcon:R8,FastForward:z8,FastForwardIcon:z8,Feather:T8,FeatherIcon:T8,Fence:D8,FenceIcon:D8,FerrisWheel:H8,FerrisWheelIcon:H8,Figma:O8,FigmaIcon:O8,File:f6,FileArchive:F8,FileArchiveIcon:F8,FileAudio:Pr,FileAudio2:Pr,FileAudio2Icon:Pr,FileAudioIcon:Pr,FileAxis3D:Kc,FileAxis3DIcon:Kc,FileAxis3d:Kc,FileAxis3dIcon:Kc,FileBadge:Xc,FileBadge2:Xc,FileBadge2Icon:Xc,FileBadgeIcon:Xc,FileBarChart:Qc,FileBarChart2:Jc,FileBarChart2Icon:Jc,FileBarChartIcon:Qc,FileBox:q8,FileBoxIcon:q8,FileBraces:Yc,FileBracesCorner:Zc,FileBracesCornerIcon:Zc,FileBracesIcon:Yc,FileChartColumn:Jc,FileChartColumnIcon:Jc,FileChartColumnIncreasing:Qc,FileChartColumnIncreasingIcon:Qc,FileChartLine:el,FileChartLineIcon:el,FileChartPie:tl,FileChartPieIcon:tl,FileCheck:V8,FileCheck2:nl,FileCheck2Icon:nl,FileCheckCorner:nl,FileCheckCornerIcon:nl,FileCheckIcon:V8,FileClock:U8,FileClockIcon:U8,FileCode:B8,FileCode2:ol,FileCode2Icon:ol,FileCodeCorner:ol,FileCodeCornerIcon:ol,FileCodeIcon:B8,FileCog:rl,FileCog2:rl,FileCog2Icon:rl,FileCogIcon:rl,FileDiff:W8,FileDiffIcon:W8,FileDigit:G8,FileDigitIcon:G8,FileDown:y2,FileDownIcon:y2,FileEdit:dl,FileEditIcon:dl,FileExclamationPoint:al,FileExclamationPointIcon:al,FileHeadphone:Pr,FileHeadphoneIcon:Pr,FileHeart:K8,FileHeartIcon:K8,FileIcon:f6,FileImage:X8,FileImageIcon:X8,FileInput:Z8,FileInputIcon:Z8,FileJson:Yc,FileJson2:Zc,FileJson2Icon:Zc,FileJsonIcon:Yc,FileKey:il,FileKey2:il,FileKey2Icon:il,FileKeyIcon:il,FileLineChart:el,FileLineChartIcon:el,FileLock:sl,FileLock2:sl,FileLock2Icon:sl,FileLockIcon:sl,FileMinus:Y8,FileMinus2:cl,FileMinus2Icon:cl,FileMinusCorner:cl,FileMinusCornerIcon:cl,FileMinusIcon:Y8,FileMusic:J8,FileMusicIcon:J8,FileOutput:Q8,FileOutputIcon:Q8,FilePen:dl,FilePenIcon:dl,FilePenLine:ll,FilePenLineIcon:ll,FilePieChart:tl,FilePieChartIcon:tl,FilePlay:ul,FilePlayIcon:ul,FilePlus:e6,FilePlus2:hl,FilePlus2Icon:hl,FilePlusCorner:hl,FilePlusCornerIcon:hl,FilePlusIcon:e6,FileQuestion:fl,FileQuestionIcon:fl,FileQuestionMark:fl,FileQuestionMarkIcon:fl,FileScan:t6,FileScanIcon:t6,FileSearch:n6,FileSearch2:pl,FileSearch2Icon:pl,FileSearchCorner:pl,FileSearchCornerIcon:pl,FileSearchIcon:n6,FileSignal:yl,FileSignalIcon:yl,FileSignature:ll,FileSignatureIcon:ll,FileSliders:o6,FileSlidersIcon:o6,FileSpreadsheet:r6,FileSpreadsheetIcon:r6,FileStack:a6,FileStackIcon:a6,FileSymlink:i6,FileSymlinkIcon:i6,FileTerminal:s6,FileTerminalIcon:s6,FileText:m2,FileTextIcon:m2,FileType:c6,FileType2:ml,FileType2Icon:ml,FileTypeCorner:ml,FileTypeCornerIcon:ml,FileTypeIcon:c6,FileUp:l6,FileUpIcon:l6,FileUser:d6,FileUserIcon:d6,FileVideo:ul,FileVideo2:gl,FileVideo2Icon:gl,FileVideoCamera:gl,FileVideoCameraIcon:gl,FileVideoIcon:ul,FileVolume:u6,FileVolume2:yl,FileVolume2Icon:yl,FileVolumeIcon:u6,FileWarning:al,FileWarningIcon:al,FileX:h6,FileX2:kl,FileX2Icon:kl,FileXCorner:kl,FileXCornerIcon:kl,FileXIcon:h6,Files:p6,FilesIcon:p6,Film:y6,FilmIcon:y6,Filter:bl,FilterIcon:bl,FilterX:Ml,FilterXIcon:Ml,Fingerprint:vl,FingerprintIcon:vl,FingerprintPattern:vl,FingerprintPatternIcon:vl,FireExtinguisher:m6,FireExtinguisherIcon:m6,Fish:v6,FishIcon:v6,FishOff:g6,FishOffIcon:g6,FishSymbol:k6,FishSymbolIcon:k6,FishingHook:x6,FishingHookIcon:x6,Flag:_6,FlagIcon:_6,FlagOff:w6,FlagOffIcon:w6,FlagTriangleLeft:M6,FlagTriangleLeftIcon:M6,FlagTriangleRight:b6,FlagTriangleRightIcon:b6,Flame:S6,FlameIcon:S6,FlameKindling:C6,FlameKindlingIcon:C6,Flashlight:N6,FlashlightIcon:N6,FlashlightOff:L6,FlashlightOffIcon:L6,FlaskConical:E6,FlaskConicalIcon:E6,FlaskConicalOff:I6,FlaskConicalOffIcon:I6,FlaskRound:A6,FlaskRoundIcon:A6,FlipHorizontal:$6,FlipHorizontal2:j6,FlipHorizontal2Icon:j6,FlipHorizontalIcon:$6,FlipVertical:z6,FlipVertical2:P6,FlipVertical2Icon:P6,FlipVerticalIcon:z6,Flower:T6,Flower2:R6,Flower2Icon:R6,FlowerIcon:T6,Focus:D6,FocusIcon:D6,FoldHorizontal:H6,FoldHorizontalIcon:H6,FoldVertical:O6,FoldVerticalIcon:O6,Folder:fw,FolderArchive:F6,FolderArchiveIcon:F6,FolderCheck:q6,FolderCheckIcon:q6,FolderClock:V6,FolderClockIcon:V6,FolderClosed:U6,FolderClosedIcon:U6,FolderCode:B6,FolderCodeIcon:B6,FolderCog:xl,FolderCog2:xl,FolderCog2Icon:xl,FolderCogIcon:xl,FolderDot:W6,FolderDotIcon:W6,FolderDown:G6,FolderDownIcon:G6,FolderEdit:wl,FolderEditIcon:wl,FolderGit:X6,FolderGit2:K6,FolderGit2Icon:K6,FolderGitIcon:X6,FolderHeart:Z6,FolderHeartIcon:Z6,FolderIcon:fw,FolderInput:Y6,FolderInputIcon:Y6,FolderKanban:Q6,FolderKanbanIcon:Q6,FolderKey:J6,FolderKeyIcon:J6,FolderLock:ew,FolderLockIcon:ew,FolderMinus:tw,FolderMinusIcon:tw,FolderOpen:g2,FolderOpenDot:nw,FolderOpenDotIcon:nw,FolderOpenIcon:g2,FolderOutput:ow,FolderOutputIcon:ow,FolderPen:wl,FolderPenIcon:wl,FolderPlus:rw,FolderPlusIcon:rw,FolderRoot:aw,FolderRootIcon:aw,FolderSearch:sw,FolderSearch2:iw,FolderSearch2Icon:iw,FolderSearchIcon:sw,FolderSymlink:cw,FolderSymlinkIcon:cw,FolderSync:lw,FolderSyncIcon:lw,FolderTree:dw,FolderTreeIcon:dw,FolderUp:uw,FolderUpIcon:uw,FolderX:hw,FolderXIcon:hw,Folders:pw,FoldersIcon:pw,Footprints:yw,FootprintsIcon:yw,ForkKnife:Nd,ForkKnifeCrossed:Ld,ForkKnifeCrossedIcon:Ld,ForkKnifeIcon:Nd,Forklift:kw,ForkliftIcon:kw,Form:mw,FormIcon:mw,FormInput:o1,FormInputIcon:o1,Forward:gw,ForwardIcon:gw,Frame:vw,FrameIcon:vw,Framer:Mw,FramerIcon:Mw,Frown:xw,FrownIcon:xw,Fuel:ww,FuelIcon:ww,Fullscreen:bw,FullscreenIcon:bw,FunctionSquare:F1,FunctionSquareIcon:F1,Funnel:bl,FunnelIcon:bl,FunnelPlus:_w,FunnelPlusIcon:_w,FunnelX:Ml,FunnelXIcon:Ml,GalleryHorizontal:Sw,GalleryHorizontalEnd:Cw,GalleryHorizontalEndIcon:Cw,GalleryHorizontalIcon:Sw,GalleryThumbnails:Lw,GalleryThumbnailsIcon:Lw,GalleryVertical:Iw,GalleryVerticalEnd:Nw,GalleryVerticalEndIcon:Nw,GalleryVerticalIcon:Iw,Gamepad:$w,Gamepad2:Aw,Gamepad2Icon:Aw,GamepadDirectional:Ew,GamepadDirectionalIcon:Ew,GamepadIcon:$w,GanttChart:ac,GanttChartIcon:ac,GanttChartSquare:Dr,GanttChartSquareIcon:Dr,Gauge:jw,GaugeCircle:bc,GaugeCircleIcon:bc,GaugeIcon:jw,Gavel:Pw,GavelIcon:Pw,Gem:zw,GemIcon:zw,GeorgianLari:Rw,GeorgianLariIcon:Rw,Ghost:Dw,GhostIcon:Dw,Gift:Tw,GiftIcon:Tw,GitBranch:Fw,GitBranchIcon:Fw,GitBranchMinus:Hw,GitBranchMinusIcon:Hw,GitBranchPlus:Ow,GitBranchPlusIcon:Ow,GitCommit:_l,GitCommitHorizontal:_l,GitCommitHorizontalIcon:_l,GitCommitIcon:_l,GitCommitVertical:qw,GitCommitVerticalIcon:qw,GitCompare:Bw,GitCompareArrows:Vw,GitCompareArrowsIcon:Vw,GitCompareIcon:Bw,GitFork:Uw,GitForkIcon:Uw,GitGraph:Ww,GitGraphIcon:Ww,GitMerge:Gw,GitMergeIcon:Gw,GitPullRequest:Jw,GitPullRequestArrow:Kw,GitPullRequestArrowIcon:Kw,GitPullRequestClosed:Xw,GitPullRequestClosedIcon:Xw,GitPullRequestCreate:Yw,GitPullRequestCreateArrow:Zw,GitPullRequestCreateArrowIcon:Zw,GitPullRequestCreateIcon:Yw,GitPullRequestDraft:Qw,GitPullRequestDraftIcon:Qw,GitPullRequestIcon:Jw,Github:e7,GithubIcon:e7,Gitlab:t7,GitlabIcon:t7,GlassWater:n7,GlassWaterIcon:n7,Glasses:o7,GlassesIcon:o7,Globe:i7,Globe2:Uc,Globe2Icon:Uc,GlobeIcon:i7,GlobeLock:r7,GlobeLockIcon:r7,GlobeX:a7,GlobeXIcon:a7,Goal:s7,GoalIcon:s7,Gpu:c7,GpuIcon:c7,Grab:Il,GrabIcon:Il,GraduationCap:l7,GraduationCapIcon:l7,Grape:d7,GrapeIcon:d7,Grid:zr,Grid2X2:Nl,Grid2X2Check:Cl,Grid2X2CheckIcon:Cl,Grid2X2Icon:Nl,Grid2X2Plus:Sl,Grid2X2PlusIcon:Sl,Grid2X2X:Ll,Grid2X2XIcon:Ll,Grid2x2:Nl,Grid2x2Check:Cl,Grid2x2CheckIcon:Cl,Grid2x2Icon:Nl,Grid2x2Plus:Sl,Grid2x2PlusIcon:Sl,Grid2x2X:Ll,Grid2x2XIcon:Ll,Grid3X3:zr,Grid3X3Icon:zr,Grid3x2:u7,Grid3x2Icon:u7,Grid3x3:zr,Grid3x3Icon:zr,GridIcon:zr,Grip:f7,GripHorizontal:h7,GripHorizontalIcon:h7,GripIcon:f7,GripVertical:p7,GripVerticalIcon:p7,Group:y7,GroupIcon:y7,Guitar:m7,GuitarIcon:m7,Ham:g7,HamIcon:g7,Hamburger:k7,HamburgerIcon:k7,Hammer:v7,HammerIcon:v7,Hand:k2,HandCoins:x7,HandCoinsIcon:x7,HandFist:w7,HandFistIcon:w7,HandGrab:Il,HandGrabIcon:Il,HandHeart:M7,HandHeartIcon:M7,HandHelping:Al,HandHelpingIcon:Al,HandIcon:k2,HandMetal:b7,HandMetalIcon:b7,HandPlatter:_7,HandPlatterIcon:_7,Handbag:C7,HandbagIcon:C7,Handshake:S7,HandshakeIcon:S7,HardDrive:I7,HardDriveDownload:L7,HardDriveDownloadIcon:L7,HardDriveIcon:I7,HardDriveUpload:N7,HardDriveUploadIcon:N7,HardHat:A7,HardHatIcon:A7,Hash:E7,HashIcon:E7,HatGlasses:j7,HatGlassesIcon:j7,Haze:$7,HazeIcon:$7,Hd:P7,HdIcon:P7,HdmiPort:z7,HdmiPortIcon:z7,Heading:q7,Heading1:R7,Heading1Icon:R7,Heading2:T7,Heading2Icon:T7,Heading3:D7,Heading3Icon:D7,Heading4:H7,Heading4Icon:H7,Heading5:O7,Heading5Icon:O7,Heading6:F7,Heading6Icon:F7,HeadingIcon:q7,HeadphoneOff:V7,HeadphoneOffIcon:V7,Headphones:B7,HeadphonesIcon:B7,Headset:U7,HeadsetIcon:U7,Heart:Q7,HeartCrack:W7,HeartCrackIcon:W7,HeartHandshake:K7,HeartHandshakeIcon:K7,HeartIcon:Q7,HeartMinus:G7,HeartMinusIcon:G7,HeartOff:X7,HeartOffIcon:X7,HeartPlus:Z7,HeartPlusIcon:Z7,HeartPulse:Y7,HeartPulseIcon:Y7,Heater:J7,HeaterIcon:J7,Helicopter:eM,HelicopterIcon:eM,HelpCircle:Xo,HelpCircleIcon:Xo,HelpingHand:Al,HelpingHandIcon:Al,Hexagon:v2,HexagonIcon:v2,Highlighter:tM,HighlighterIcon:tM,History:nM,HistoryIcon:nM,Home:El,HomeIcon:El,Hop:oM,HopIcon:oM,HopOff:rM,HopOffIcon:rM,Hospital:aM,HospitalIcon:aM,Hotel:iM,HotelIcon:iM,Hourglass:sM,HourglassIcon:sM,House:El,HouseHeart:cM,HouseHeartIcon:cM,HouseIcon:El,HousePlug:lM,HousePlugIcon:lM,HousePlus:dM,HousePlusIcon:dM,HouseWifi:uM,HouseWifiIcon:uM,IceCream:$l,IceCream2:jl,IceCream2Icon:jl,IceCreamBowl:jl,IceCreamBowlIcon:jl,IceCreamCone:$l,IceCreamConeIcon:$l,IceCreamIcon:$l,Icon:xQ,IdCard:fM,IdCardIcon:fM,IdCardLanyard:hM,IdCardLanyardIcon:hM,Image:w2,ImageDown:pM,ImageDownIcon:pM,ImageIcon:w2,ImageMinus:mM,ImageMinusIcon:mM,ImageOff:yM,ImageOffIcon:yM,ImagePlay:gM,ImagePlayIcon:gM,ImagePlus:x2,ImagePlusIcon:x2,ImageUp:kM,ImageUpIcon:kM,ImageUpscale:vM,ImageUpscaleIcon:vM,Images:xM,ImagesIcon:xM,Import:wM,ImportIcon:wM,Inbox:MM,InboxIcon:MM,Indent:Tr,IndentDecrease:Rr,IndentDecreaseIcon:Rr,IndentIcon:Tr,IndentIncrease:Tr,IndentIncreaseIcon:Tr,IndianRupee:bM,IndianRupeeIcon:bM,Infinity:CM,InfinityIcon:CM,Info:_M,InfoIcon:_M,Inspect:G1,InspectIcon:G1,InspectionPanel:SM,InspectionPanelIcon:SM,Instagram:LM,InstagramIcon:LM,Italic:NM,ItalicIcon:NM,IterationCcw:IM,IterationCcwIcon:IM,IterationCw:AM,IterationCwIcon:AM,JapaneseYen:EM,JapaneseYenIcon:EM,Joystick:jM,JoystickIcon:jM,Kanban:$M,KanbanIcon:$M,KanbanSquare:q1,KanbanSquareDashed:z1,KanbanSquareDashedIcon:z1,KanbanSquareIcon:q1,Kayak:PM,KayakIcon:PM,Key:TM,KeyIcon:TM,KeyRound:zM,KeyRoundIcon:zM,KeySquare:RM,KeySquareIcon:RM,Keyboard:OM,KeyboardIcon:OM,KeyboardMusic:DM,KeyboardMusicIcon:DM,KeyboardOff:HM,KeyboardOffIcon:HM,Lamp:WM,LampCeiling:FM,LampCeilingIcon:FM,LampDesk:qM,LampDeskIcon:qM,LampFloor:VM,LampFloorIcon:VM,LampIcon:WM,LampWallDown:BM,LampWallDownIcon:BM,LampWallUp:UM,LampWallUpIcon:UM,LandPlot:GM,LandPlotIcon:GM,Landmark:KM,LandmarkIcon:KM,Languages:XM,LanguagesIcon:XM,Laptop:QM,Laptop2:Pl,Laptop2Icon:Pl,LaptopIcon:QM,LaptopMinimal:Pl,LaptopMinimalCheck:ZM,LaptopMinimalCheckIcon:ZM,LaptopMinimalIcon:Pl,Lasso:JM,LassoIcon:JM,LassoSelect:YM,LassoSelectIcon:YM,Laugh:eb,LaughIcon:eb,Layers:Pa,Layers2:tb,Layers2Icon:tb,Layers3:Pa,Layers3Icon:Pa,LayersIcon:Pa,LayersPlus:nb,LayersPlusIcon:nb,Layout:Jl,LayoutDashboard:M2,LayoutDashboardIcon:M2,LayoutGrid:ob,LayoutGridIcon:ob,LayoutIcon:Jl,LayoutList:rb,LayoutListIcon:rb,LayoutPanelLeft:ab,LayoutPanelLeftIcon:ab,LayoutPanelTop:sb,LayoutPanelTopIcon:sb,LayoutTemplate:ib,LayoutTemplateIcon:ib,Leaf:cb,LeafIcon:cb,LeafyGreen:lb,LeafyGreenIcon:lb,Lectern:db,LecternIcon:db,LetterText:fd,LetterTextIcon:fd,Library:hb,LibraryBig:ub,LibraryBigIcon:ub,LibraryIcon:hb,LibrarySquare:V1,LibrarySquareIcon:V1,LifeBuoy:fb,LifeBuoyIcon:fb,Ligature:pb,LigatureIcon:pb,Lightbulb:mb,LightbulbIcon:mb,LightbulbOff:yb,LightbulbOffIcon:yb,LineChart:nc,LineChartIcon:nc,LineSquiggle:gb,LineSquiggleIcon:gb,Link:vb,Link2:Ui,Link2Icon:Ui,Link2Off:kb,Link2OffIcon:kb,LinkIcon:vb,Linkedin:xb,LinkedinIcon:xb,List:Hb,ListCheck:wb,ListCheckIcon:wb,ListChecks:Mb,ListChecksIcon:Mb,ListChevronsDownUp:bb,ListChevronsDownUpIcon:bb,ListChevronsUpDown:Cb,ListChevronsUpDownIcon:Cb,ListCollapse:_b,ListCollapseIcon:_b,ListEnd:Sb,ListEndIcon:Sb,ListFilter:Nb,ListFilterIcon:Nb,ListFilterPlus:Lb,ListFilterPlusIcon:Lb,ListIcon:Hb,ListIndentDecrease:Rr,ListIndentDecreaseIcon:Rr,ListIndentIncrease:Tr,ListIndentIncreaseIcon:Tr,ListMinus:Ib,ListMinusIcon:Ib,ListMusic:Ab,ListMusicIcon:Ab,ListOrdered:Eb,ListOrderedIcon:Eb,ListPlus:jb,ListPlusIcon:jb,ListRestart:$b,ListRestartIcon:$b,ListStart:Pb,ListStartIcon:Pb,ListTodo:zb,ListTodoIcon:zb,ListTree:Rb,ListTreeIcon:Rb,ListVideo:Tb,ListVideoIcon:Tb,ListX:Db,ListXIcon:Db,Loader:Fb,Loader2:Wn,Loader2Icon:Wn,LoaderCircle:Wn,LoaderCircleIcon:Wn,LoaderIcon:Fb,LoaderPinwheel:Ob,LoaderPinwheelIcon:Ob,Locate:Bb,LocateFixed:qb,LocateFixedIcon:qb,LocateIcon:Bb,LocateOff:Vb,LocateOffIcon:Vb,LocationEdit:Dl,LocationEditIcon:Dl,Lock:Wb,LockIcon:Wb,LockKeyhole:Ub,LockKeyholeIcon:Ub,LockKeyholeOpen:zl,LockKeyholeOpenIcon:zl,LockOpen:Rl,LockOpenIcon:Rl,LogIn:Gb,LogInIcon:Gb,LogOut:Kb,LogOutIcon:Kb,Logs:Xb,LogsIcon:Xb,Lollipop:Zb,LollipopIcon:Zb,LucideAArrowDown:Ny,LucideAArrowUp:Iy,LucideALargeSmall:Ay,LucideAccessibility:Ey,LucideActivity:jy,LucideActivitySquare:f1,LucideAirVent:$y,LucideAirplay:Py,LucideAlarmCheck:js,LucideAlarmClock:Ry,LucideAlarmClockCheck:js,LucideAlarmClockMinus:$s,LucideAlarmClockOff:zy,LucideAlarmClockPlus:Ps,LucideAlarmMinus:$s,LucideAlarmPlus:Ps,LucideAlarmSmoke:Ty,LucideAlbum:Dy,LucideAlertCircle:bi,LucideAlertOctagon:ql,LucideAlertTriangle:qr,LucideAlignCenter:Si,LucideAlignCenterHorizontal:Oy,LucideAlignCenterVertical:Hy,LucideAlignEndHorizontal:Fy,LucideAlignEndVertical:qy,LucideAlignHorizontalDistributeCenter:Vy,LucideAlignHorizontalDistributeEnd:By,LucideAlignHorizontalDistributeStart:Uy,LucideAlignHorizontalJustifyCenter:Wy,LucideAlignHorizontalJustifyEnd:Ky,LucideAlignHorizontalJustifyStart:Gy,LucideAlignHorizontalSpaceAround:Xy,LucideAlignHorizontalSpaceBetween:Zy,LucideAlignJustify:hd,LucideAlignLeft:Zo,LucideAlignRight:Li,LucideAlignStartHorizontal:Yy,LucideAlignStartVertical:Qy,LucideAlignVerticalDistributeCenter:Jy,LucideAlignVerticalDistributeEnd:em,LucideAlignVerticalDistributeStart:tm,LucideAlignVerticalJustifyCenter:nm,LucideAlignVerticalJustifyEnd:om,LucideAlignVerticalJustifyStart:rm,LucideAlignVerticalSpaceAround:am,LucideAlignVerticalSpaceBetween:im,LucideAmbulance:sm,LucideAmpersand:cm,LucideAmpersands:lm,LucideAmphora:dm,LucideAnchor:um,LucideAngry:hm,LucideAnnoyed:fm,LucideAntenna:pm,LucideAnvil:ym,LucideAperture:mm,LucideAppWindow:km,LucideAppWindowMac:gm,LucideApple:vm,LucideArchive:Mm,LucideArchiveRestore:xm,LucideArchiveX:wm,LucideAreaChart:Xs,LucideArmchair:bm,LucideArrowBigDown:Cm,LucideArrowBigDownDash:_m,LucideArrowBigLeft:Lm,LucideArrowBigLeftDash:Sm,LucideArrowBigRight:Im,LucideArrowBigRightDash:Nm,LucideArrowBigUp:Em,LucideArrowBigUpDash:Am,LucideArrowDown:Fm,LucideArrowDown01:jm,LucideArrowDown10:$m,LucideArrowDownAZ:zs,LucideArrowDownAz:zs,LucideArrowDownCircle:lc,LucideArrowDownFromLine:Pm,LucideArrowDownLeft:Rm,LucideArrowDownLeftFromCircle:dc,LucideArrowDownLeftFromSquare:k1,LucideArrowDownLeftSquare:p1,LucideArrowDownNarrowWide:zm,LucideArrowDownRight:Dm,LucideArrowDownRightFromCircle:hc,LucideArrowDownRightFromSquare:v1,LucideArrowDownRightSquare:y1,LucideArrowDownSquare:m1,LucideArrowDownToDot:Tm,LucideArrowDownToLine:Hm,LucideArrowDownUp:Om,LucideArrowDownWideNarrow:Rs,LucideArrowDownZA:Ts,LucideArrowDownZa:Ts,LucideArrowLeft:Bm,LucideArrowLeftCircle:uc,LucideArrowLeftFromLine:qm,LucideArrowLeftRight:d2,LucideArrowLeftSquare:g1,LucideArrowLeftToLine:Vm,LucideArrowRight:y0,LucideArrowRightCircle:yc,LucideArrowRightFromLine:Um,LucideArrowRightLeft:Wm,LucideArrowRightSquare:M1,LucideArrowRightToLine:Gm,LucideArrowUp:og,LucideArrowUp01:Km,LucideArrowUp10:Xm,LucideArrowUpAZ:Ds,LucideArrowUpAz:Ds,LucideArrowUpCircle:mc,LucideArrowUpDown:Zm,LucideArrowUpFromDot:Ym,LucideArrowUpFromLine:Qm,LucideArrowUpLeft:Jm,LucideArrowUpLeftFromCircle:fc,LucideArrowUpLeftFromSquare:x1,LucideArrowUpLeftSquare:b1,LucideArrowUpNarrowWide:Hs,LucideArrowUpRight:tg,LucideArrowUpRightFromCircle:pc,LucideArrowUpRightFromSquare:w1,LucideArrowUpRightSquare:S1,LucideArrowUpSquare:_1,LucideArrowUpToLine:eg,LucideArrowUpWideNarrow:ng,LucideArrowUpZA:Os,LucideArrowUpZa:Os,LucideArrowsUpFromLine:rg,LucideAsterisk:ag,LucideAsteriskSquare:C1,LucideAtSign:ig,LucideAtom:sg,LucideAudioLines:cg,LucideAudioWaveform:dg,LucideAward:lg,LucideAxe:ug,LucideAxis3D:Fs,LucideAxis3d:Fs,LucideBaby:hg,LucideBackpack:fg,LucideBadge:Ig,LucideBadgeAlert:yg,LucideBadgeCent:pg,LucideBadgeCheck:qs,LucideBadgeDollarSign:mg,LucideBadgeEuro:kg,LucideBadgeHelp:Vs,LucideBadgeIndianRupee:gg,LucideBadgeInfo:vg,LucideBadgeJapaneseYen:xg,LucideBadgeMinus:wg,LucideBadgePercent:Mg,LucideBadgePlus:bg,LucideBadgePoundSterling:_g,LucideBadgeQuestionMark:Vs,LucideBadgeRussianRuble:Cg,LucideBadgeSwissFranc:Sg,LucideBadgeTurkishLira:Lg,LucideBadgeX:Ng,LucideBaggageClaim:Ag,LucideBalloon:Eg,LucideBan:u2,LucideBanana:jg,LucideBandage:$g,LucideBanknote:Tg,LucideBanknoteArrowDown:Pg,LucideBanknoteArrowUp:zg,LucideBanknoteX:Rg,LucideBarChart:oc,LucideBarChart2:rc,LucideBarChart3:tc,LucideBarChart4:ec,LucideBarChartBig:Js,LucideBarChartHorizontal:Ys,LucideBarChartHorizontalBig:Zs,LucideBarcode:Dg,LucideBarrel:Hg,LucideBaseline:Og,LucideBath:Fg,LucideBattery:Kg,LucideBatteryCharging:qg,LucideBatteryFull:Vg,LucideBatteryLow:Bg,LucideBatteryMedium:Ug,LucideBatteryPlus:Wg,LucideBatteryWarning:Gg,LucideBeaker:Xg,LucideBean:Yg,LucideBeanOff:Zg,LucideBed:ek,LucideBedDouble:Qg,LucideBedSingle:Jg,LucideBeef:tk,LucideBeer:ok,LucideBeerOff:nk,LucideBell:dk,LucideBellDot:rk,LucideBellElectric:ak,LucideBellMinus:ik,LucideBellOff:sk,LucideBellPlus:ck,LucideBellRing:lk,LucideBetweenHorizonalEnd:Bs,LucideBetweenHorizonalStart:Us,LucideBetweenHorizontalEnd:Bs,LucideBetweenHorizontalStart:Us,LucideBetweenVerticalEnd:uk,LucideBetweenVerticalStart:hk,LucideBicepsFlexed:fk,LucideBike:pk,LucideBinary:yk,LucideBinoculars:mk,LucideBiohazard:gk,LucideBird:kk,LucideBirdhouse:vk,LucideBitcoin:xk,LucideBlend:wk,LucideBlinds:Mk,LucideBlocks:bk,LucideBluetooth:Lk,LucideBluetoothConnected:_k,LucideBluetoothOff:Ck,LucideBluetoothSearching:Sk,LucideBold:Nk,LucideBolt:Ik,LucideBomb:Ak,LucideBone:Ek,LucideBook:n4,LucideBookA:jk,LucideBookAlert:$k,LucideBookAudio:Pk,LucideBookCheck:zk,LucideBookCopy:Rk,LucideBookDashed:Ws,LucideBookDown:Tk,LucideBookHeadphones:Dk,LucideBookHeart:Hk,LucideBookImage:Ok,LucideBookKey:Fk,LucideBookLock:qk,LucideBookMarked:Vk,LucideBookMinus:Bk,LucideBookOpen:Gk,LucideBookOpenCheck:Uk,LucideBookOpenText:Wk,LucideBookPlus:Kk,LucideBookSearch:Xk,LucideBookTemplate:Ws,LucideBookText:Zk,LucideBookType:Yk,LucideBookUp:Jk,LucideBookUp2:Qk,LucideBookUser:e4,LucideBookX:t4,LucideBookmark:s4,LucideBookmarkCheck:o4,LucideBookmarkMinus:r4,LucideBookmarkPlus:a4,LucideBookmarkX:i4,LucideBoomBox:c4,LucideBot:d4,LucideBotMessageSquare:l4,LucideBotOff:u4,LucideBottleWine:h4,LucideBowArrow:f4,LucideBox:p4,LucideBoxSelect:T1,LucideBoxes:y4,LucideBraces:Gs,LucideBrackets:m4,LucideBrain:v4,LucideBrainCircuit:g4,LucideBrainCog:k4,LucideBrickWall:M4,LucideBrickWallFire:x4,LucideBrickWallShield:w4,LucideBriefcase:S4,LucideBriefcaseBusiness:b4,LucideBriefcaseConveyorBelt:_4,LucideBriefcaseMedical:C4,LucideBringToFront:L4,LucideBrush:A4,LucideBrushCleaning:N4,LucideBubbles:I4,LucideBug:$4,LucideBugOff:E4,LucideBugPlay:j4,LucideBuilding:P4,LucideBuilding2:z4,LucideBus:T4,LucideBusFront:R4,LucideCable:H4,LucideCableCar:D4,LucideCake:F4,LucideCakeSlice:O4,LucideCalculator:q4,LucideCalendar:l5,LucideCalendar1:V4,LucideCalendarArrowDown:B4,LucideCalendarArrowUp:U4,LucideCalendarCheck:G4,LucideCalendarCheck2:W4,LucideCalendarClock:K4,LucideCalendarCog:X4,LucideCalendarDays:Z4,LucideCalendarFold:Y4,LucideCalendarHeart:Q4,LucideCalendarMinus:e5,LucideCalendarMinus2:J4,LucideCalendarOff:t5,LucideCalendarPlus:r5,LucideCalendarPlus2:n5,LucideCalendarRange:o5,LucideCalendarSearch:a5,LucideCalendarSync:i5,LucideCalendarX:c5,LucideCalendarX2:s5,LucideCalendars:d5,LucideCamera:h5,LucideCameraOff:u5,LucideCandlestickChart:Qs,LucideCandy:y5,LucideCandyCane:f5,LucideCandyOff:p5,LucideCannabis:g5,LucideCannabisOff:m5,LucideCaptions:Ks,LucideCaptionsOff:k5,LucideCar:w5,LucideCarFront:v5,LucideCarTaxiFront:x5,LucideCaravan:M5,LucideCardSim:b5,LucideCarrot:_5,LucideCaseLower:C5,LucideCaseSensitive:S5,LucideCaseUpper:L5,LucideCassetteTape:N5,LucideCast:I5,LucideCastle:A5,LucideCat:E5,LucideCctv:j5,LucideChartArea:Xs,LucideChartBar:Ys,LucideChartBarBig:Zs,LucideChartBarDecreasing:$5,LucideChartBarIncreasing:P5,LucideChartBarStacked:z5,LucideChartCandlestick:Qs,LucideChartColumn:tc,LucideChartColumnBig:Js,LucideChartColumnDecreasing:R5,LucideChartColumnIncreasing:ec,LucideChartColumnStacked:T5,LucideChartGantt:D5,LucideChartLine:nc,LucideChartNetwork:H5,LucideChartNoAxesColumn:rc,LucideChartNoAxesColumnDecreasing:O5,LucideChartNoAxesColumnIncreasing:oc,LucideChartNoAxesCombined:F5,LucideChartNoAxesGantt:ac,LucideChartPie:ic,LucideChartScatter:sc,LucideChartSpline:q5,LucideCheck:Bi,LucideCheckCheck:V5,LucideCheckCircle:gc,LucideCheckCircle2:_i,LucideCheckLine:B5,LucideCheckSquare:N1,LucideCheckSquare2:I1,LucideChefHat:U5,LucideCherry:W5,LucideChessBishop:G5,LucideChessKing:K5,LucideChessKnight:X5,LucideChessPawn:Z5,LucideChessQueen:Y5,LucideChessRook:J5,LucideChevronDown:Q5,LucideChevronDownCircle:kc,LucideChevronDownSquare:A1,LucideChevronFirst:ev,LucideChevronLast:tv,LucideChevronLeft:nv,LucideChevronLeftCircle:vc,LucideChevronLeftSquare:E1,LucideChevronRight:ov,LucideChevronRightCircle:xc,LucideChevronRightSquare:$1,LucideChevronUp:rv,LucideChevronUpCircle:wc,LucideChevronUpSquare:j1,LucideChevronsDown:iv,LucideChevronsDownUp:av,LucideChevronsLeft:lv,LucideChevronsLeftRight:cv,LucideChevronsLeftRightEllipsis:sv,LucideChevronsRight:uv,LucideChevronsRightLeft:dv,LucideChevronsUp:fv,LucideChevronsUpDown:hv,LucideChrome:cc,LucideChromium:cc,LucideChurch:pv,LucideCigarette:mv,LucideCigaretteOff:yv,LucideCircle:m0,LucideCircleAlert:bi,LucideCircleArrowDown:lc,LucideCircleArrowLeft:uc,LucideCircleArrowOutDownLeft:dc,LucideCircleArrowOutDownRight:hc,LucideCircleArrowOutUpLeft:fc,LucideCircleArrowOutUpRight:pc,LucideCircleArrowRight:yc,LucideCircleArrowUp:mc,LucideCircleCheck:_i,LucideCircleCheckBig:gc,LucideCircleChevronDown:kc,LucideCircleChevronLeft:vc,LucideCircleChevronRight:xc,LucideCircleChevronUp:wc,LucideCircleDashed:gv,LucideCircleDivide:Mc,LucideCircleDollarSign:kv,LucideCircleDot:xv,LucideCircleDotDashed:vv,LucideCircleEllipsis:wv,LucideCircleEqual:Mv,LucideCircleFadingArrowUp:bv,LucideCircleFadingPlus:_v,LucideCircleGauge:bc,LucideCircleHelp:Xo,LucideCircleMinus:_c,LucideCircleOff:Cv,LucideCircleParking:Sc,LucideCircleParkingOff:Cc,LucideCirclePause:Lc,LucideCirclePercent:Nc,LucideCirclePile:Sv,LucideCirclePlay:Ic,LucideCirclePlus:Ac,LucideCirclePoundSterling:Lv,LucideCirclePower:Ec,LucideCircleQuestionMark:Xo,LucideCircleSlash:Nv,LucideCircleSlash2:jc,LucideCircleSlashed:jc,LucideCircleSmall:Iv,LucideCircleStar:Av,LucideCircleStop:Pc,LucideCircleUser:zc,LucideCircleUserRound:$c,LucideCircleX:Rc,LucideCircuitBoard:Ev,LucideCitrus:jv,LucideClapperboard:$v,LucideClipboard:Vv,LucideClipboardCheck:Pv,LucideClipboardClock:zv,LucideClipboardCopy:Rv,LucideClipboardEdit:Dc,LucideClipboardList:Tv,LucideClipboardMinus:Dv,LucideClipboardPaste:Hv,LucideClipboardPen:Dc,LucideClipboardPenLine:Tc,LucideClipboardPlus:Ov,LucideClipboardSignature:Tc,LucideClipboardType:Fv,LucideClipboardX:qv,LucideClock:cx,LucideClock1:Bv,LucideClock10:Uv,LucideClock11:Wv,LucideClock12:Gv,LucideClock2:Kv,LucideClock3:Xv,LucideClock4:Zv,LucideClock5:Yv,LucideClock6:Qv,LucideClock7:Jv,LucideClock8:ex,LucideClock9:tx,LucideClockAlert:nx,LucideClockArrowDown:ox,LucideClockArrowUp:ix,LucideClockCheck:rx,LucideClockFading:ax,LucideClockPlus:sx,LucideClosedCaption:lx,LucideCloud:h2,LucideCloudAlert:dx,LucideCloudBackup:ux,LucideCloudCheck:hx,LucideCloudCog:fx,LucideCloudDownload:Hc,LucideCloudDrizzle:px,LucideCloudFog:yx,LucideCloudHail:mx,LucideCloudLightning:gx,LucideCloudMoon:vx,LucideCloudMoonRain:kx,LucideCloudOff:xx,LucideCloudRain:Mx,LucideCloudRainWind:wx,LucideCloudSnow:bx,LucideCloudSun:Cx,LucideCloudSunRain:_x,LucideCloudSync:Sx,LucideCloudUpload:Oc,LucideCloudy:Lx,LucideClover:Nx,LucideClub:Ix,LucideCode:Ax,LucideCode2:Fc,LucideCodeSquare:P1,LucideCodeXml:Fc,LucideCodepen:Ex,LucideCodesandbox:jx,LucideCoffee:$x,LucideCog:Px,LucideCoins:zx,LucideColumns:qc,LucideColumns2:qc,LucideColumns3:Ci,LucideColumns3Cog:$r,LucideColumns4:Rx,LucideColumnsSettings:$r,LucideCombine:Tx,LucideCommand:Dx,LucideCompass:Hx,LucideComponent:Ox,LucideComputer:Fx,LucideConciergeBell:qx,LucideCone:Vx,LucideConstruction:Bx,LucideContact:Ux,LucideContact2:Vc,LucideContactRound:Vc,LucideContainer:Wx,LucideContrast:Gx,LucideCookie:Kx,LucideCookingPot:Xx,LucideCopy:t3,LucideCopyCheck:Zx,LucideCopyMinus:Yx,LucideCopyPlus:Qx,LucideCopySlash:Jx,LucideCopyX:e3,LucideCopyleft:o3,LucideCopyright:n3,LucideCornerDownLeft:r3,LucideCornerDownRight:a3,LucideCornerLeftDown:i3,LucideCornerLeftUp:s3,LucideCornerRightDown:l3,LucideCornerRightUp:c3,LucideCornerUpLeft:u3,LucideCornerUpRight:d3,LucideCpu:h3,LucideCreativeCommons:f3,LucideCreditCard:p3,LucideCroissant:y3,LucideCrop:m3,LucideCross:g3,LucideCrosshair:k3,LucideCrown:v3,LucideCuboid:x3,LucideCupSoda:w3,LucideCurlyBraces:Gs,LucideCurrency:M3,LucideCylinder:b3,LucideDam:_3,LucideDatabase:f2,LucideDatabaseBackup:C3,LucideDatabaseSearch:S3,LucideDatabaseZap:L3,LucideDecimalsArrowLeft:N3,LucideDecimalsArrowRight:I3,LucideDelete:A3,LucideDessert:E3,LucideDiameter:j3,LucideDiamond:g0,LucideDiamondMinus:$3,LucideDiamondPercent:Bc,LucideDiamondPlus:P3,LucideDice1:z3,LucideDice2:T3,LucideDice3:R3,LucideDice4:D3,LucideDice5:H3,LucideDice6:O3,LucideDices:F3,LucideDiff:q3,LucideDisc:W3,LucideDisc2:V3,LucideDisc3:U3,LucideDiscAlbum:B3,LucideDivide:G3,LucideDivideCircle:Mc,LucideDivideSquare:D1,LucideDna:X3,LucideDnaOff:K3,LucideDock:Z3,LucideDog:Y3,LucideDollarSign:Q3,LucideDonut:J3,LucideDoorClosed:t8,LucideDoorClosedLocked:e8,LucideDoorOpen:n8,LucideDot:o8,LucideDotSquare:H1,LucideDownload:k0,LucideDownloadCloud:Hc,LucideDraftingCompass:r8,LucideDrama:a8,LucideDribbble:i8,LucideDrill:s8,LucideDrone:c8,LucideDroplet:d8,LucideDropletOff:l8,LucideDroplets:u8,LucideDrum:h8,LucideDrumstick:f8,LucideDumbbell:p8,LucideEar:y8,LucideEarOff:m8,LucideEarth:Uc,LucideEarthLock:g8,LucideEclipse:k8,LucideEdit:so,LucideEdit2:t1,LucideEdit3:e1,LucideEgg:w8,LucideEggFried:v8,LucideEggOff:x8,LucideEllipsis:Gc,LucideEllipsisVertical:Wc,LucideEqual:_8,LucideEqualApproximately:M8,LucideEqualNot:b8,LucideEqualSquare:O1,LucideEraser:C8,LucideEthernetPort:S8,LucideEuro:L8,LucideEvCharger:N8,LucideExpand:I8,LucideExternalLink:p2,LucideEye:j8,LucideEyeClosed:A8,LucideEyeOff:E8,LucideFacebook:$8,LucideFactory:P8,LucideFan:R8,LucideFastForward:z8,LucideFeather:T8,LucideFence:D8,LucideFerrisWheel:H8,LucideFigma:O8,LucideFile:f6,LucideFileArchive:F8,LucideFileAudio:Pr,LucideFileAudio2:Pr,LucideFileAxis3D:Kc,LucideFileAxis3d:Kc,LucideFileBadge:Xc,LucideFileBadge2:Xc,LucideFileBarChart:Qc,LucideFileBarChart2:Jc,LucideFileBox:q8,LucideFileBraces:Yc,LucideFileBracesCorner:Zc,LucideFileChartColumn:Jc,LucideFileChartColumnIncreasing:Qc,LucideFileChartLine:el,LucideFileChartPie:tl,LucideFileCheck:V8,LucideFileCheck2:nl,LucideFileCheckCorner:nl,LucideFileClock:U8,LucideFileCode:B8,LucideFileCode2:ol,LucideFileCodeCorner:ol,LucideFileCog:rl,LucideFileCog2:rl,LucideFileDiff:W8,LucideFileDigit:G8,LucideFileDown:y2,LucideFileEdit:dl,LucideFileExclamationPoint:al,LucideFileHeadphone:Pr,LucideFileHeart:K8,LucideFileImage:X8,LucideFileInput:Z8,LucideFileJson:Yc,LucideFileJson2:Zc,LucideFileKey:il,LucideFileKey2:il,LucideFileLineChart:el,LucideFileLock:sl,LucideFileLock2:sl,LucideFileMinus:Y8,LucideFileMinus2:cl,LucideFileMinusCorner:cl,LucideFileMusic:J8,LucideFileOutput:Q8,LucideFilePen:dl,LucideFilePenLine:ll,LucideFilePieChart:tl,LucideFilePlay:ul,LucideFilePlus:e6,LucideFilePlus2:hl,LucideFilePlusCorner:hl,LucideFileQuestion:fl,LucideFileQuestionMark:fl,LucideFileScan:t6,LucideFileSearch:n6,LucideFileSearch2:pl,LucideFileSearchCorner:pl,LucideFileSignal:yl,LucideFileSignature:ll,LucideFileSliders:o6,LucideFileSpreadsheet:r6,LucideFileStack:a6,LucideFileSymlink:i6,LucideFileTerminal:s6,LucideFileText:m2,LucideFileType:c6,LucideFileType2:ml,LucideFileTypeCorner:ml,LucideFileUp:l6,LucideFileUser:d6,LucideFileVideo:ul,LucideFileVideo2:gl,LucideFileVideoCamera:gl,LucideFileVolume:u6,LucideFileVolume2:yl,LucideFileWarning:al,LucideFileX:h6,LucideFileX2:kl,LucideFileXCorner:kl,LucideFiles:p6,LucideFilm:y6,LucideFilter:bl,LucideFilterX:Ml,LucideFingerprint:vl,LucideFingerprintPattern:vl,LucideFireExtinguisher:m6,LucideFish:v6,LucideFishOff:g6,LucideFishSymbol:k6,LucideFishingHook:x6,LucideFlag:_6,LucideFlagOff:w6,LucideFlagTriangleLeft:M6,LucideFlagTriangleRight:b6,LucideFlame:S6,LucideFlameKindling:C6,LucideFlashlight:N6,LucideFlashlightOff:L6,LucideFlaskConical:E6,LucideFlaskConicalOff:I6,LucideFlaskRound:A6,LucideFlipHorizontal:$6,LucideFlipHorizontal2:j6,LucideFlipVertical:z6,LucideFlipVertical2:P6,LucideFlower:T6,LucideFlower2:R6,LucideFocus:D6,LucideFoldHorizontal:H6,LucideFoldVertical:O6,LucideFolder:fw,LucideFolderArchive:F6,LucideFolderCheck:q6,LucideFolderClock:V6,LucideFolderClosed:U6,LucideFolderCode:B6,LucideFolderCog:xl,LucideFolderCog2:xl,LucideFolderDot:W6,LucideFolderDown:G6,LucideFolderEdit:wl,LucideFolderGit:X6,LucideFolderGit2:K6,LucideFolderHeart:Z6,LucideFolderInput:Y6,LucideFolderKanban:Q6,LucideFolderKey:J6,LucideFolderLock:ew,LucideFolderMinus:tw,LucideFolderOpen:g2,LucideFolderOpenDot:nw,LucideFolderOutput:ow,LucideFolderPen:wl,LucideFolderPlus:rw,LucideFolderRoot:aw,LucideFolderSearch:sw,LucideFolderSearch2:iw,LucideFolderSymlink:cw,LucideFolderSync:lw,LucideFolderTree:dw,LucideFolderUp:uw,LucideFolderX:hw,LucideFolders:pw,LucideFootprints:yw,LucideForkKnife:Nd,LucideForkKnifeCrossed:Ld,LucideForklift:kw,LucideForm:mw,LucideFormInput:o1,LucideForward:gw,LucideFrame:vw,LucideFramer:Mw,LucideFrown:xw,LucideFuel:ww,LucideFullscreen:bw,LucideFunctionSquare:F1,LucideFunnel:bl,LucideFunnelPlus:_w,LucideFunnelX:Ml,LucideGalleryHorizontal:Sw,LucideGalleryHorizontalEnd:Cw,LucideGalleryThumbnails:Lw,LucideGalleryVertical:Iw,LucideGalleryVerticalEnd:Nw,LucideGamepad:$w,LucideGamepad2:Aw,LucideGamepadDirectional:Ew,LucideGanttChart:ac,LucideGanttChartSquare:Dr,LucideGauge:jw,LucideGaugeCircle:bc,LucideGavel:Pw,LucideGem:zw,LucideGeorgianLari:Rw,LucideGhost:Dw,LucideGift:Tw,LucideGitBranch:Fw,LucideGitBranchMinus:Hw,LucideGitBranchPlus:Ow,LucideGitCommit:_l,LucideGitCommitHorizontal:_l,LucideGitCommitVertical:qw,LucideGitCompare:Bw,LucideGitCompareArrows:Vw,LucideGitFork:Uw,LucideGitGraph:Ww,LucideGitMerge:Gw,LucideGitPullRequest:Jw,LucideGitPullRequestArrow:Kw,LucideGitPullRequestClosed:Xw,LucideGitPullRequestCreate:Yw,LucideGitPullRequestCreateArrow:Zw,LucideGitPullRequestDraft:Qw,LucideGithub:e7,LucideGitlab:t7,LucideGlassWater:n7,LucideGlasses:o7,LucideGlobe:i7,LucideGlobe2:Uc,LucideGlobeLock:r7,LucideGlobeX:a7,LucideGoal:s7,LucideGpu:c7,LucideGrab:Il,LucideGraduationCap:l7,LucideGrape:d7,LucideGrid:zr,LucideGrid2X2:Nl,LucideGrid2X2Check:Cl,LucideGrid2X2Plus:Sl,LucideGrid2X2X:Ll,LucideGrid2x2:Nl,LucideGrid2x2Check:Cl,LucideGrid2x2Plus:Sl,LucideGrid2x2X:Ll,LucideGrid3X3:zr,LucideGrid3x2:u7,LucideGrid3x3:zr,LucideGrip:f7,LucideGripHorizontal:h7,LucideGripVertical:p7,LucideGroup:y7,LucideGuitar:m7,LucideHam:g7,LucideHamburger:k7,LucideHammer:v7,LucideHand:k2,LucideHandCoins:x7,LucideHandFist:w7,LucideHandGrab:Il,LucideHandHeart:M7,LucideHandHelping:Al,LucideHandMetal:b7,LucideHandPlatter:_7,LucideHandbag:C7,LucideHandshake:S7,LucideHardDrive:I7,LucideHardDriveDownload:L7,LucideHardDriveUpload:N7,LucideHardHat:A7,LucideHash:E7,LucideHatGlasses:j7,LucideHaze:$7,LucideHd:P7,LucideHdmiPort:z7,LucideHeading:q7,LucideHeading1:R7,LucideHeading2:T7,LucideHeading3:D7,LucideHeading4:H7,LucideHeading5:O7,LucideHeading6:F7,LucideHeadphoneOff:V7,LucideHeadphones:B7,LucideHeadset:U7,LucideHeart:Q7,LucideHeartCrack:W7,LucideHeartHandshake:K7,LucideHeartMinus:G7,LucideHeartOff:X7,LucideHeartPlus:Z7,LucideHeartPulse:Y7,LucideHeater:J7,LucideHelicopter:eM,LucideHelpCircle:Xo,LucideHelpingHand:Al,LucideHexagon:v2,LucideHighlighter:tM,LucideHistory:nM,LucideHome:El,LucideHop:oM,LucideHopOff:rM,LucideHospital:aM,LucideHotel:iM,LucideHourglass:sM,LucideHouse:El,LucideHouseHeart:cM,LucideHousePlug:lM,LucideHousePlus:dM,LucideHouseWifi:uM,LucideIceCream:$l,LucideIceCream2:jl,LucideIceCreamBowl:jl,LucideIceCreamCone:$l,LucideIdCard:fM,LucideIdCardLanyard:hM,LucideImage:w2,LucideImageDown:pM,LucideImageMinus:mM,LucideImageOff:yM,LucideImagePlay:gM,LucideImagePlus:x2,LucideImageUp:kM,LucideImageUpscale:vM,LucideImages:xM,LucideImport:wM,LucideInbox:MM,LucideIndent:Tr,LucideIndentDecrease:Rr,LucideIndentIncrease:Tr,LucideIndianRupee:bM,LucideInfinity:CM,LucideInfo:_M,LucideInspect:G1,LucideInspectionPanel:SM,LucideInstagram:LM,LucideItalic:NM,LucideIterationCcw:IM,LucideIterationCw:AM,LucideJapaneseYen:EM,LucideJoystick:jM,LucideKanban:$M,LucideKanbanSquare:q1,LucideKanbanSquareDashed:z1,LucideKayak:PM,LucideKey:TM,LucideKeyRound:zM,LucideKeySquare:RM,LucideKeyboard:OM,LucideKeyboardMusic:DM,LucideKeyboardOff:HM,LucideLamp:WM,LucideLampCeiling:FM,LucideLampDesk:qM,LucideLampFloor:VM,LucideLampWallDown:BM,LucideLampWallUp:UM,LucideLandPlot:GM,LucideLandmark:KM,LucideLanguages:XM,LucideLaptop:QM,LucideLaptop2:Pl,LucideLaptopMinimal:Pl,LucideLaptopMinimalCheck:ZM,LucideLasso:JM,LucideLassoSelect:YM,LucideLaugh:eb,LucideLayers:Pa,LucideLayers2:tb,LucideLayers3:Pa,LucideLayersPlus:nb,LucideLayout:Jl,LucideLayoutDashboard:M2,LucideLayoutGrid:ob,LucideLayoutList:rb,LucideLayoutPanelLeft:ab,LucideLayoutPanelTop:sb,LucideLayoutTemplate:ib,LucideLeaf:cb,LucideLeafyGreen:lb,LucideLectern:db,LucideLetterText:fd,LucideLibrary:hb,LucideLibraryBig:ub,LucideLibrarySquare:V1,LucideLifeBuoy:fb,LucideLigature:pb,LucideLightbulb:mb,LucideLightbulbOff:yb,LucideLineChart:nc,LucideLineSquiggle:gb,LucideLink:vb,LucideLink2:Ui,LucideLink2Off:kb,LucideLinkedin:xb,LucideList:Hb,LucideListCheck:wb,LucideListChecks:Mb,LucideListChevronsDownUp:bb,LucideListChevronsUpDown:Cb,LucideListCollapse:_b,LucideListEnd:Sb,LucideListFilter:Nb,LucideListFilterPlus:Lb,LucideListIndentDecrease:Rr,LucideListIndentIncrease:Tr,LucideListMinus:Ib,LucideListMusic:Ab,LucideListOrdered:Eb,LucideListPlus:jb,LucideListRestart:$b,LucideListStart:Pb,LucideListTodo:zb,LucideListTree:Rb,LucideListVideo:Tb,LucideListX:Db,LucideLoader:Fb,LucideLoader2:Wn,LucideLoaderCircle:Wn,LucideLoaderPinwheel:Ob,LucideLocate:Bb,LucideLocateFixed:qb,LucideLocateOff:Vb,LucideLocationEdit:Dl,LucideLock:Wb,LucideLockKeyhole:Ub,LucideLockKeyholeOpen:zl,LucideLockOpen:Rl,LucideLogIn:Gb,LucideLogOut:Kb,LucideLogs:Xb,LucideLollipop:Zb,LucideLuggage:Yb,LucideMSquare:B1,LucideMagnet:Qb,LucideMail:i9,LucideMailCheck:Jb,LucideMailMinus:e9,LucideMailOpen:t9,LucideMailPlus:n9,LucideMailQuestion:Tl,LucideMailQuestionMark:Tl,LucideMailSearch:o9,LucideMailWarning:r9,LucideMailX:a9,LucideMailbox:c9,LucideMails:s9,LucideMap:b9,LucideMapMinus:l9,LucideMapPin:x9,LucideMapPinCheck:u9,LucideMapPinCheckInside:d9,LucideMapPinHouse:h9,LucideMapPinMinus:p9,LucideMapPinMinusInside:f9,LucideMapPinOff:y9,LucideMapPinPen:Dl,LucideMapPinPlus:g9,LucideMapPinPlusInside:m9,LucideMapPinX:k9,LucideMapPinXInside:v9,LucideMapPinned:w9,LucideMapPlus:M9,LucideMars:C9,LucideMarsStroke:_9,LucideMartini:S9,LucideMaximize:L9,LucideMaximize2:Od,LucideMedal:N9,LucideMegaphone:A9,LucideMegaphoneOff:I9,LucideMeh:E9,LucideMemoryStick:j9,LucideMenu:P9,LucideMenuSquare:U1,LucideMerge:$9,LucideMessageCircle:B9,LucideMessageCircleCode:z9,LucideMessageCircleDashed:R9,LucideMessageCircleHeart:T9,LucideMessageCircleMore:D9,LucideMessageCircleOff:H9,LucideMessageCirclePlus:O9,LucideMessageCircleQuestion:Hl,LucideMessageCircleQuestionMark:Hl,LucideMessageCircleReply:F9,LucideMessageCircleWarning:q9,LucideMessageCircleX:V9,LucideMessageSquare:i_,LucideMessageSquareCode:U9,LucideMessageSquareDashed:W9,LucideMessageSquareDiff:G9,LucideMessageSquareDot:K9,LucideMessageSquareHeart:X9,LucideMessageSquareLock:Z9,LucideMessageSquareMore:Y9,LucideMessageSquareOff:Q9,LucideMessageSquarePlus:J9,LucideMessageSquareQuote:e_,LucideMessageSquareReply:t_,LucideMessageSquareShare:n_,LucideMessageSquareText:o_,LucideMessageSquareWarning:r_,LucideMessageSquareX:a_,LucideMessagesSquare:s_,LucideMic:l_,LucideMic2:Ol,LucideMicOff:c_,LucideMicVocal:Ol,LucideMicrochip:d_,LucideMicroscope:u_,LucideMicrowave:h_,LucideMilestone:f_,LucideMilk:y_,LucideMilkOff:p_,LucideMinimize:g_,LucideMinimize2:m_,LucideMinus:b2,LucideMinusCircle:_c,LucideMinusSquare:W1,LucideMonitor:E_,LucideMonitorCheck:k_,LucideMonitorCloud:v_,LucideMonitorCog:x_,LucideMonitorDot:w_,LucideMonitorDown:M_,LucideMonitorOff:b_,LucideMonitorPause:__,LucideMonitorPlay:C_,LucideMonitorSmartphone:S_,LucideMonitorSpeaker:L_,LucideMonitorStop:N_,LucideMonitorUp:I_,LucideMonitorX:A_,LucideMoon:$_,LucideMoonStar:j_,LucideMoreHorizontal:Gc,LucideMoreVertical:Wc,LucideMotorbike:P_,LucideMountain:R_,LucideMountainSnow:z_,LucideMouse:q_,LucideMouseOff:T_,LucideMousePointer:F_,LucideMousePointer2:_2,LucideMousePointer2Off:D_,LucideMousePointerBan:H_,LucideMousePointerClick:O_,LucideMousePointerSquareDashed:R1,LucideMove:eC,LucideMove3D:Fl,LucideMove3d:Fl,LucideMoveDiagonal:B_,LucideMoveDiagonal2:V_,LucideMoveDown:G_,LucideMoveDownLeft:U_,LucideMoveDownRight:W_,LucideMoveHorizontal:K_,LucideMoveLeft:C2,LucideMoveRight:X_,LucideMoveUp:Q_,LucideMoveUpLeft:Z_,LucideMoveUpRight:Y_,LucideMoveVertical:J_,LucideMusic:rC,LucideMusic2:tC,LucideMusic3:nC,LucideMusic4:oC,LucideNavigation:cC,LucideNavigation2:iC,LucideNavigation2Off:aC,LucideNavigationOff:sC,LucideNetwork:lC,LucideNewspaper:dC,LucideNfc:uC,LucideNonBinary:hC,LucideNotebook:mC,LucideNotebookPen:fC,LucideNotebookTabs:pC,LucideNotebookText:yC,LucideNotepadText:kC,LucideNotepadTextDashed:gC,LucideNut:vC,LucideNutOff:xC,LucideOctagon:MC,LucideOctagonAlert:ql,LucideOctagonMinus:wC,LucideOctagonPause:Vl,LucideOctagonX:Bl,LucideOmega:bC,LucideOption:CC,LucideOrbit:_C,LucideOrigami:SC,LucideOutdent:Rr,LucidePackage:PC,LucidePackage2:LC,LucidePackageCheck:NC,LucidePackageMinus:IC,LucidePackageOpen:AC,LucidePackagePlus:EC,LucidePackageSearch:jC,LucidePackageX:$C,LucidePaintBucket:zC,LucidePaintRoller:RC,LucidePaintbrush:TC,LucidePaintbrush2:Ul,LucidePaintbrushVertical:Ul,LucidePalette:DC,LucidePalmtree:gd,LucidePanda:HC,LucidePanelBottom:FC,LucidePanelBottomClose:OC,LucidePanelBottomDashed:Wl,LucidePanelBottomInactive:Wl,LucidePanelBottomOpen:qC,LucidePanelLeft:Zl,LucidePanelLeftClose:Gl,LucidePanelLeftDashed:Kl,LucidePanelLeftInactive:Kl,LucidePanelLeftOpen:Xl,LucidePanelLeftRightDashed:VC,LucidePanelRight:BC,LucidePanelRightClose:v0,LucidePanelRightDashed:Yl,LucidePanelRightInactive:Yl,LucidePanelRightOpen:S2,LucidePanelTop:KC,LucidePanelTopBottomDashed:UC,LucidePanelTopClose:WC,LucidePanelTopDashed:Ql,LucidePanelTopInactive:Ql,LucidePanelTopOpen:GC,LucidePanelsLeftBottom:XC,LucidePanelsLeftRight:Ci,LucidePanelsRightBottom:ZC,LucidePanelsTopBottom:i1,LucidePanelsTopLeft:Jl,LucidePaperclip:YC,LucideParentheses:JC,LucideParkingCircle:Sc,LucideParkingCircleOff:Cc,LucideParkingMeter:QC,LucideParkingSquare:X1,LucideParkingSquareOff:K1,LucidePartyPopper:eS,LucidePause:tS,LucidePauseCircle:Lc,LucidePauseOctagon:Vl,LucidePawPrint:nS,LucidePcCase:oS,LucidePen:t1,LucidePenBox:so,LucidePenLine:e1,LucidePenOff:rS,LucidePenSquare:so,LucidePenTool:aS,LucidePencil:N2,LucidePencilLine:L2,LucidePencilOff:iS,LucidePencilRuler:sS,LucidePentagon:cS,LucidePercent:lS,LucidePercentCircle:Nc,LucidePercentDiamond:Bc,LucidePercentSquare:Z1,LucidePersonStanding:uS,LucidePhilippinePeso:dS,LucidePhone:kS,LucidePhoneCall:hS,LucidePhoneForwarded:fS,LucidePhoneIncoming:pS,LucidePhoneMissed:yS,LucidePhoneOff:mS,LucidePhoneOutgoing:gS,LucidePi:vS,LucidePiSquare:J1,LucidePiano:xS,LucidePickaxe:wS,LucidePictureInPicture:bS,LucidePictureInPicture2:MS,LucidePieChart:ic,LucidePiggyBank:_S,LucidePilcrow:LS,LucidePilcrowLeft:CS,LucidePilcrowRight:SS,LucidePilcrowSquare:Y1,LucidePill:IS,LucidePillBottle:NS,LucidePin:ES,LucidePinOff:AS,LucidePipette:jS,LucidePizza:$S,LucidePlane:RS,LucidePlaneLanding:PS,LucidePlaneTakeoff:zS,LucidePlay:Fd,LucidePlayCircle:Ic,LucidePlaySquare:Q1,LucidePlug:DS,LucidePlug2:TS,LucidePlugZap:n1,LucidePlugZap2:n1,LucidePlus:I2,LucidePlusCircle:Ac,LucidePlusSquare:ed,LucidePocket:OS,LucidePocketKnife:HS,LucidePodcast:qS,LucidePointer:VS,LucidePointerOff:FS,LucidePopcorn:BS,LucidePopsicle:US,LucidePoundSterling:WS,LucidePower:KS,LucidePowerCircle:Ec,LucidePowerOff:GS,LucidePowerSquare:td,LucidePresentation:XS,LucidePrinter:QS,LucidePrinterCheck:ZS,LucidePrinterX:YS,LucideProjector:eL,LucideProportions:JS,LucidePuzzle:tL,LucidePyramid:nL,LucideQrCode:oL,LucideQuote:rL,LucideRabbit:aL,LucideRadar:iL,LucideRadiation:sL,LucideRadical:cL,LucideRadio:uL,LucideRadioReceiver:lL,LucideRadioTower:dL,LucideRadius:hL,LucideRailSymbol:fL,LucideRainbow:pL,LucideRat:yL,LucideRatio:mL,LucideReceipt:SL,LucideReceiptCent:gL,LucideReceiptEuro:kL,LucideReceiptIndianRupee:vL,LucideReceiptJapaneseYen:xL,LucideReceiptPoundSterling:wL,LucideReceiptRussianRuble:ML,LucideReceiptSwissFranc:bL,LucideReceiptText:_L,LucideReceiptTurkishLira:CL,LucideRectangleCircle:LL,LucideRectangleEllipsis:o1,LucideRectangleGoggles:NL,LucideRectangleHorizontal:IL,LucideRectangleVertical:AL,LucideRecycle:EL,LucideRedo:PL,LucideRedo2:jL,LucideRedoDot:$L,LucideRefreshCcw:TL,LucideRefreshCcwDot:zL,LucideRefreshCw:DL,LucideRefreshCwOff:RL,LucideRefrigerator:HL,LucideRegex:OL,LucideRemoveFormatting:FL,LucideRepeat:BL,LucideRepeat1:VL,LucideRepeat2:qL,LucideReplace:WL,LucideReplaceAll:UL,LucideReply:KL,LucideReplyAll:GL,LucideRewind:XL,LucideRibbon:YL,LucideRocket:ZL,LucideRockingChair:QL,LucideRollerCoaster:JL,LucideRose:eN,LucideRotate3D:r1,LucideRotate3d:r1,LucideRotateCcw:oN,LucideRotateCcwKey:tN,LucideRotateCcwSquare:nN,LucideRotateCw:aN,LucideRotateCwSquare:rN,LucideRoute:sN,LucideRouteOff:iN,LucideRouter:cN,LucideRows:a1,LucideRows2:a1,LucideRows3:i1,LucideRows4:lN,LucideRss:dN,LucideRuler:hN,LucideRulerDimensionLine:uN,LucideRussianRuble:fN,LucideSailboat:pN,LucideSalad:yN,LucideSandwich:mN,LucideSatellite:kN,LucideSatelliteDish:gN,LucideSaudiRiyal:vN,LucideSave:MN,LucideSaveAll:xN,LucideSaveOff:wN,LucideScale:bN,LucideScale3D:s1,LucideScale3d:s1,LucideScaling:_N,LucideScan:$N,LucideScanBarcode:CN,LucideScanEye:SN,LucideScanFace:LN,LucideScanHeart:NN,LucideScanLine:IN,LucideScanQrCode:AN,LucideScanSearch:EN,LucideScanText:jN,LucideScatterChart:sc,LucideSchool:PN,LucideSchool2:vd,LucideScissors:TN,LucideScissorsLineDashed:zN,LucideScissorsSquare:nd,LucideScissorsSquareDashedBottom:L1,LucideScooter:RN,LucideScreenShare:HN,LucideScreenShareOff:DN,LucideScroll:FN,LucideScrollText:ON,LucideSearch:A2,LucideSearchAlert:qN,LucideSearchCheck:VN,LucideSearchCode:BN,LucideSearchSlash:UN,LucideSearchX:WN,LucideSection:GN,LucideSend:XN,LucideSendHorizonal:c1,LucideSendHorizontal:c1,LucideSendToBack:KN,LucideSeparatorHorizontal:YN,LucideSeparatorVertical:ZN,LucideServer:E2,LucideServerCog:QN,LucideServerCrash:JN,LucideServerOff:eI,LucideSettings:nI,LucideSettings2:tI,LucideShapes:j2,LucideShare:oI,LucideShare2:$2,LucideSheet:rI,LucideShell:aI,LucideShield:yI,LucideShieldAlert:iI,LucideShieldBan:sI,LucideShieldCheck:cI,LucideShieldClose:d1,LucideShieldEllipsis:lI,LucideShieldHalf:dI,LucideShieldMinus:uI,LucideShieldOff:hI,LucideShieldPlus:fI,LucideShieldQuestion:l1,LucideShieldQuestionMark:l1,LucideShieldUser:pI,LucideShieldX:d1,LucideShip:kI,LucideShipWheel:mI,LucideShirt:gI,LucideShoppingBag:xI,LucideShoppingBasket:vI,LucideShoppingCart:wI,LucideShovel:MI,LucideShowerHead:bI,LucideShredder:_I,LucideShrimp:CI,LucideShrink:SI,LucideShrub:LI,LucideShuffle:NI,LucideSidebar:Zl,LucideSidebarClose:Gl,LucideSidebarOpen:Xl,LucideSigma:II,LucideSigmaSquare:od,LucideSignal:PI,LucideSignalHigh:AI,LucideSignalLow:EI,LucideSignalMedium:jI,LucideSignalZero:$I,LucideSignature:zI,LucideSignpost:TI,LucideSignpostBig:RI,LucideSiren:DI,LucideSkipBack:HI,LucideSkipForward:OI,LucideSkull:FI,LucideSlack:qI,LucideSlash:VI,LucideSlashSquare:rd,LucideSlice:BI,LucideSliders:u1,LucideSlidersHorizontal:UI,LucideSlidersVertical:u1,LucideSmartphone:KI,LucideSmartphoneCharging:WI,LucideSmartphoneNfc:GI,LucideSmile:ZI,LucideSmilePlus:XI,LucideSnail:YI,LucideSnowflake:QI,LucideSoapDispenserDroplet:JI,LucideSofa:eA,LucideSolarPanel:tA,LucideSortAsc:Hs,LucideSortDesc:Rs,LucideSoup:nA,LucideSpace:oA,LucideSpade:rA,LucideSparkle:aA,LucideSparkles:h1,LucideSpeaker:iA,LucideSpeech:sA,LucideSpellCheck:lA,LucideSpellCheck2:cA,LucideSpline:dA,LucideSplinePointer:uA,LucideSplit:hA,LucideSplitSquareHorizontal:ad,LucideSplitSquareVertical:id,LucideSpool:fA,LucideSpotlight:pA,LucideSprayCan:yA,LucideSprout:mA,LucideSquare:x0,LucideSquareActivity:f1,LucideSquareArrowDown:m1,LucideSquareArrowDownLeft:p1,LucideSquareArrowDownRight:y1,LucideSquareArrowLeft:g1,LucideSquareArrowOutDownLeft:k1,LucideSquareArrowOutDownRight:v1,LucideSquareArrowOutUpLeft:x1,LucideSquareArrowOutUpRight:w1,LucideSquareArrowRight:M1,LucideSquareArrowUp:_1,LucideSquareArrowUpLeft:b1,LucideSquareArrowUpRight:S1,LucideSquareAsterisk:C1,LucideSquareBottomDashedScissors:L1,LucideSquareChartGantt:Dr,LucideSquareCheck:I1,LucideSquareCheckBig:N1,LucideSquareChevronDown:A1,LucideSquareChevronLeft:E1,LucideSquareChevronRight:$1,LucideSquareChevronUp:j1,LucideSquareCode:P1,LucideSquareDashed:T1,LucideSquareDashedBottom:kA,LucideSquareDashedBottomCode:gA,LucideSquareDashedKanban:z1,LucideSquareDashedMousePointer:R1,LucideSquareDashedTopSolid:vA,LucideSquareDivide:D1,LucideSquareDot:H1,LucideSquareEqual:O1,LucideSquareFunction:F1,LucideSquareGanttChart:Dr,LucideSquareKanban:q1,LucideSquareLibrary:V1,LucideSquareM:B1,LucideSquareMenu:U1,LucideSquareMinus:W1,LucideSquareMousePointer:G1,LucideSquareParking:X1,LucideSquareParkingOff:K1,LucideSquarePause:xA,LucideSquarePen:so,LucideSquarePercent:Z1,LucideSquarePi:J1,LucideSquarePilcrow:Y1,LucideSquarePlay:Q1,LucideSquarePlus:ed,LucideSquarePower:td,LucideSquareRadical:wA,LucideSquareRoundCorner:MA,LucideSquareScissors:nd,LucideSquareSigma:od,LucideSquareSlash:rd,LucideSquareSplitHorizontal:ad,LucideSquareSplitVertical:id,LucideSquareSquare:_A,LucideSquareStack:bA,LucideSquareStar:SA,LucideSquareStop:CA,LucideSquareTerminal:sd,LucideSquareUser:ld,LucideSquareUserRound:cd,LucideSquareX:dd,LucideSquaresExclude:LA,LucideSquaresIntersect:NA,LucideSquaresSubtract:IA,LucideSquaresUnite:AA,LucideSquircle:w0,LucideSquircleDashed:EA,LucideSquirrel:jA,LucideStamp:$A,LucideStar:RA,LucideStarHalf:PA,LucideStarOff:zA,LucideStars:h1,LucideStepBack:TA,LucideStepForward:DA,LucideStethoscope:HA,LucideSticker:M0,LucideStickyNote:P2,LucideStone:OA,LucideStopCircle:Pc,LucideStore:FA,LucideStretchHorizontal:VA,LucideStretchVertical:qA,LucideStrikethrough:BA,LucideSubscript:UA,LucideSubtitles:Ks,LucideSun:ZA,LucideSunDim:WA,LucideSunMedium:GA,LucideSunMoon:KA,LucideSunSnow:XA,LucideSunrise:YA,LucideSunset:QA,LucideSuperscript:JA,LucideSwatchBook:eE,LucideSwissFranc:tE,LucideSwitchCamera:nE,LucideSword:oE,LucideSwords:rE,LucideSyringe:aE,LucideTable:fE,LucideTable2:iE,LucideTableCellsMerge:sE,LucideTableCellsSplit:cE,LucideTableColumnsSplit:lE,LucideTableConfig:$r,LucideTableOfContents:dE,LucideTableProperties:uE,LucideTableRowsSplit:hE,LucideTablet:yE,LucideTabletSmartphone:pE,LucideTablets:mE,LucideTag:gE,LucideTags:kE,LucideTally1:vE,LucideTally2:xE,LucideTally3:wE,LucideTally4:ME,LucideTally5:bE,LucideTangent:_E,LucideTarget:CE,LucideTelescope:SE,LucideTent:NE,LucideTentTree:LE,LucideTerminal:IE,LucideTerminalSquare:sd,LucideTestTube:AE,LucideTestTube2:ud,LucideTestTubeDiagonal:ud,LucideTestTubes:EE,LucideText:Zo,LucideTextAlignCenter:Si,LucideTextAlignEnd:Li,LucideTextAlignJustify:hd,LucideTextAlignStart:Zo,LucideTextCursor:$E,LucideTextCursorInput:jE,LucideTextInitial:fd,LucideTextQuote:PE,LucideTextSearch:zE,LucideTextSelect:pd,LucideTextSelection:pd,LucideTextWrap:yd,LucideTheater:RE,LucideThermometer:HE,LucideThermometerSnowflake:TE,LucideThermometerSun:DE,LucideThumbsDown:OE,LucideThumbsUp:FE,LucideTicket:KE,LucideTicketCheck:qE,LucideTicketMinus:VE,LucideTicketPercent:BE,LucideTicketPlus:UE,LucideTicketSlash:WE,LucideTicketX:GE,LucideTickets:ZE,LucideTicketsPlane:XE,LucideTimer:JE,LucideTimerOff:YE,LucideTimerReset:QE,LucideToggleLeft:ej,LucideToggleRight:tj,LucideToilet:nj,LucideToolCase:rj,LucideToolbox:oj,LucideTornado:aj,LucideTorus:ij,LucideTouchpad:cj,LucideTouchpadOff:sj,LucideTowerControl:lj,LucideToyBrick:dj,LucideTractor:uj,LucideTrafficCone:hj,LucideTrain:md,LucideTrainFront:pj,LucideTrainFrontTunnel:fj,LucideTrainTrack:yj,LucideTramFront:md,LucideTransgender:mj,LucideTrash:gj,LucideTrash2:z2,LucideTreeDeciduous:kj,LucideTreePalm:gd,LucideTreePine:vj,LucideTrees:xj,LucideTrello:wj,LucideTrendingDown:Mj,LucideTrendingUp:_j,LucideTrendingUpDown:bj,LucideTriangle:R2,LucideTriangleAlert:qr,LucideTriangleDashed:Cj,LucideTriangleRight:Sj,LucideTrophy:Lj,LucideTruck:Ij,LucideTruckElectric:Nj,LucideTurkishLira:Aj,LucideTurntable:Ej,LucideTurtle:jj,LucideTv:Pj,LucideTv2:kd,LucideTvMinimal:kd,LucideTvMinimalPlay:$j,LucideTwitch:zj,LucideTwitter:Rj,LucideType:b0,LucideTypeOutline:Tj,LucideUmbrella:Hj,LucideUmbrellaOff:Dj,LucideUnderline:Oj,LucideUndo:Vj,LucideUndo2:Fj,LucideUndoDot:qj,LucideUnfoldHorizontal:Bj,LucideUnfoldVertical:Uj,LucideUngroup:Wj,LucideUniversity:vd,LucideUnlink:Kj,LucideUnlink2:Gj,LucideUnlock:Rl,LucideUnlockKeyhole:zl,LucideUnplug:Xj,LucideUpload:T2,LucideUploadCloud:Oc,LucideUsb:Zj,LucideUser:D2,LucideUser2:Cd,LucideUserCheck:Yj,LucideUserCheck2:xd,LucideUserCircle:zc,LucideUserCircle2:$c,LucideUserCog:Qj,LucideUserCog2:wd,LucideUserKey:Jj,LucideUserLock:e$,LucideUserMinus:t$,LucideUserMinus2:Md,LucideUserPen:n$,LucideUserPlus:o$,LucideUserPlus2:bd,LucideUserRound:Cd,LucideUserRoundCheck:xd,LucideUserRoundCog:wd,LucideUserRoundKey:r$,LucideUserRoundMinus:Md,LucideUserRoundPen:a$,LucideUserRoundPlus:bd,LucideUserRoundSearch:i$,LucideUserRoundX:_d,LucideUserSearch:s$,LucideUserSquare:ld,LucideUserSquare2:cd,LucideUserStar:c$,LucideUserX:l$,LucideUserX2:_d,LucideUsers:d$,LucideUsers2:Sd,LucideUsersRound:Sd,LucideUtensils:Nd,LucideUtensilsCrossed:Ld,LucideUtilityPole:u$,LucideVan:h$,LucideVariable:f$,LucideVault:p$,LucideVectorSquare:y$,LucideVegan:m$,LucideVenetianMask:g$,LucideVenus:v$,LucideVenusAndMars:k$,LucideVerified:qs,LucideVibrate:w$,LucideVibrateOff:x$,LucideVideo:b$,LucideVideoOff:M$,LucideVideotape:_$,LucideView:C$,LucideVoicemail:S$,LucideVolleyball:L$,LucideVolume:j$,LucideVolume1:N$,LucideVolume2:I$,LucideVolumeOff:A$,LucideVolumeX:E$,LucideVote:$$,LucideWallet:z$,LucideWallet2:Id,LucideWalletCards:P$,LucideWalletMinimal:Id,LucideWallpaper:R$,LucideWand:T$,LucideWand2:Ad,LucideWandSparkles:Ad,LucideWarehouse:D$,LucideWashingMachine:H$,LucideWatch:O$,LucideWaves:B$,LucideWavesArrowDown:F$,LucideWavesArrowUp:q$,LucideWavesLadder:V$,LucideWaypoints:U$,LucideWebcam:W$,LucideWebhook:K$,LucideWebhookOff:G$,LucideWeight:Z$,LucideWeightTilde:X$,LucideWheat:J$,LucideWheatOff:Y$,LucideWholeWord:Q$,LucideWifi:sP,LucideWifiCog:eP,LucideWifiHigh:tP,LucideWifiLow:nP,LucideWifiOff:oP,LucideWifiPen:rP,LucideWifiSync:aP,LucideWifiZero:iP,LucideWind:lP,LucideWindArrowDown:cP,LucideWine:uP,LucideWineOff:dP,LucideWorkflow:hP,LucideWorm:fP,LucideWrapText:yd,LucideWrench:pP,LucideX:qd,LucideXCircle:Rc,LucideXOctagon:Bl,LucideXSquare:dd,LucideYoutube:yP,LucideZap:gP,LucideZapOff:mP,LucideZoomIn:kP,LucideZoomOut:vP,Luggage:Yb,LuggageIcon:Yb,MSquare:B1,MSquareIcon:B1,Magnet:Qb,MagnetIcon:Qb,Mail:i9,MailCheck:Jb,MailCheckIcon:Jb,MailIcon:i9,MailMinus:e9,MailMinusIcon:e9,MailOpen:t9,MailOpenIcon:t9,MailPlus:n9,MailPlusIcon:n9,MailQuestion:Tl,MailQuestionIcon:Tl,MailQuestionMark:Tl,MailQuestionMarkIcon:Tl,MailSearch:o9,MailSearchIcon:o9,MailWarning:r9,MailWarningIcon:r9,MailX:a9,MailXIcon:a9,Mailbox:c9,MailboxIcon:c9,Mails:s9,MailsIcon:s9,Map:b9,MapIcon:b9,MapMinus:l9,MapMinusIcon:l9,MapPin:x9,MapPinCheck:u9,MapPinCheckIcon:u9,MapPinCheckInside:d9,MapPinCheckInsideIcon:d9,MapPinHouse:h9,MapPinHouseIcon:h9,MapPinIcon:x9,MapPinMinus:p9,MapPinMinusIcon:p9,MapPinMinusInside:f9,MapPinMinusInsideIcon:f9,MapPinOff:y9,MapPinOffIcon:y9,MapPinPen:Dl,MapPinPenIcon:Dl,MapPinPlus:g9,MapPinPlusIcon:g9,MapPinPlusInside:m9,MapPinPlusInsideIcon:m9,MapPinX:k9,MapPinXIcon:k9,MapPinXInside:v9,MapPinXInsideIcon:v9,MapPinned:w9,MapPinnedIcon:w9,MapPlus:M9,MapPlusIcon:M9,Mars:C9,MarsIcon:C9,MarsStroke:_9,MarsStrokeIcon:_9,Martini:S9,MartiniIcon:S9,Maximize:L9,Maximize2:Od,Maximize2Icon:Od,MaximizeIcon:L9,Medal:N9,MedalIcon:N9,Megaphone:A9,MegaphoneIcon:A9,MegaphoneOff:I9,MegaphoneOffIcon:I9,Meh:E9,MehIcon:E9,MemoryStick:j9,MemoryStickIcon:j9,Menu:P9,MenuIcon:P9,MenuSquare:U1,MenuSquareIcon:U1,Merge:$9,MergeIcon:$9,MessageCircle:B9,MessageCircleCode:z9,MessageCircleCodeIcon:z9,MessageCircleDashed:R9,MessageCircleDashedIcon:R9,MessageCircleHeart:T9,MessageCircleHeartIcon:T9,MessageCircleIcon:B9,MessageCircleMore:D9,MessageCircleMoreIcon:D9,MessageCircleOff:H9,MessageCircleOffIcon:H9,MessageCirclePlus:O9,MessageCirclePlusIcon:O9,MessageCircleQuestion:Hl,MessageCircleQuestionIcon:Hl,MessageCircleQuestionMark:Hl,MessageCircleQuestionMarkIcon:Hl,MessageCircleReply:F9,MessageCircleReplyIcon:F9,MessageCircleWarning:q9,MessageCircleWarningIcon:q9,MessageCircleX:V9,MessageCircleXIcon:V9,MessageSquare:i_,MessageSquareCode:U9,MessageSquareCodeIcon:U9,MessageSquareDashed:W9,MessageSquareDashedIcon:W9,MessageSquareDiff:G9,MessageSquareDiffIcon:G9,MessageSquareDot:K9,MessageSquareDotIcon:K9,MessageSquareHeart:X9,MessageSquareHeartIcon:X9,MessageSquareIcon:i_,MessageSquareLock:Z9,MessageSquareLockIcon:Z9,MessageSquareMore:Y9,MessageSquareMoreIcon:Y9,MessageSquareOff:Q9,MessageSquareOffIcon:Q9,MessageSquarePlus:J9,MessageSquarePlusIcon:J9,MessageSquareQuote:e_,MessageSquareQuoteIcon:e_,MessageSquareReply:t_,MessageSquareReplyIcon:t_,MessageSquareShare:n_,MessageSquareShareIcon:n_,MessageSquareText:o_,MessageSquareTextIcon:o_,MessageSquareWarning:r_,MessageSquareWarningIcon:r_,MessageSquareX:a_,MessageSquareXIcon:a_,MessagesSquare:s_,MessagesSquareIcon:s_,Mic:l_,Mic2:Ol,Mic2Icon:Ol,MicIcon:l_,MicOff:c_,MicOffIcon:c_,MicVocal:Ol,MicVocalIcon:Ol,Microchip:d_,MicrochipIcon:d_,Microscope:u_,MicroscopeIcon:u_,Microwave:h_,MicrowaveIcon:h_,Milestone:f_,MilestoneIcon:f_,Milk:y_,MilkIcon:y_,MilkOff:p_,MilkOffIcon:p_,Minimize:g_,Minimize2:m_,Minimize2Icon:m_,MinimizeIcon:g_,Minus:b2,MinusCircle:_c,MinusCircleIcon:_c,MinusIcon:b2,MinusSquare:W1,MinusSquareIcon:W1,Monitor:E_,MonitorCheck:k_,MonitorCheckIcon:k_,MonitorCloud:v_,MonitorCloudIcon:v_,MonitorCog:x_,MonitorCogIcon:x_,MonitorDot:w_,MonitorDotIcon:w_,MonitorDown:M_,MonitorDownIcon:M_,MonitorIcon:E_,MonitorOff:b_,MonitorOffIcon:b_,MonitorPause:__,MonitorPauseIcon:__,MonitorPlay:C_,MonitorPlayIcon:C_,MonitorSmartphone:S_,MonitorSmartphoneIcon:S_,MonitorSpeaker:L_,MonitorSpeakerIcon:L_,MonitorStop:N_,MonitorStopIcon:N_,MonitorUp:I_,MonitorUpIcon:I_,MonitorX:A_,MonitorXIcon:A_,Moon:$_,MoonIcon:$_,MoonStar:j_,MoonStarIcon:j_,MoreHorizontal:Gc,MoreHorizontalIcon:Gc,MoreVertical:Wc,MoreVerticalIcon:Wc,Motorbike:P_,MotorbikeIcon:P_,Mountain:R_,MountainIcon:R_,MountainSnow:z_,MountainSnowIcon:z_,Mouse:q_,MouseIcon:q_,MouseOff:T_,MouseOffIcon:T_,MousePointer:F_,MousePointer2:_2,MousePointer2Icon:_2,MousePointer2Off:D_,MousePointer2OffIcon:D_,MousePointerBan:H_,MousePointerBanIcon:H_,MousePointerClick:O_,MousePointerClickIcon:O_,MousePointerIcon:F_,MousePointerSquareDashed:R1,MousePointerSquareDashedIcon:R1,Move:eC,Move3D:Fl,Move3DIcon:Fl,Move3d:Fl,Move3dIcon:Fl,MoveDiagonal:B_,MoveDiagonal2:V_,MoveDiagonal2Icon:V_,MoveDiagonalIcon:B_,MoveDown:G_,MoveDownIcon:G_,MoveDownLeft:U_,MoveDownLeftIcon:U_,MoveDownRight:W_,MoveDownRightIcon:W_,MoveHorizontal:K_,MoveHorizontalIcon:K_,MoveIcon:eC,MoveLeft:C2,MoveLeftIcon:C2,MoveRight:X_,MoveRightIcon:X_,MoveUp:Q_,MoveUpIcon:Q_,MoveUpLeft:Z_,MoveUpLeftIcon:Z_,MoveUpRight:Y_,MoveUpRightIcon:Y_,MoveVertical:J_,MoveVerticalIcon:J_,Music:rC,Music2:tC,Music2Icon:tC,Music3:nC,Music3Icon:nC,Music4:oC,Music4Icon:oC,MusicIcon:rC,Navigation:cC,Navigation2:iC,Navigation2Icon:iC,Navigation2Off:aC,Navigation2OffIcon:aC,NavigationIcon:cC,NavigationOff:sC,NavigationOffIcon:sC,Network:lC,NetworkIcon:lC,Newspaper:dC,NewspaperIcon:dC,Nfc:uC,NfcIcon:uC,NonBinary:hC,NonBinaryIcon:hC,Notebook:mC,NotebookIcon:mC,NotebookPen:fC,NotebookPenIcon:fC,NotebookTabs:pC,NotebookTabsIcon:pC,NotebookText:yC,NotebookTextIcon:yC,NotepadText:kC,NotepadTextDashed:gC,NotepadTextDashedIcon:gC,NotepadTextIcon:kC,Nut:vC,NutIcon:vC,NutOff:xC,NutOffIcon:xC,Octagon:MC,OctagonAlert:ql,OctagonAlertIcon:ql,OctagonIcon:MC,OctagonMinus:wC,OctagonMinusIcon:wC,OctagonPause:Vl,OctagonPauseIcon:Vl,OctagonX:Bl,OctagonXIcon:Bl,Omega:bC,OmegaIcon:bC,Option:CC,OptionIcon:CC,Orbit:_C,OrbitIcon:_C,Origami:SC,OrigamiIcon:SC,Outdent:Rr,OutdentIcon:Rr,Package:PC,Package2:LC,Package2Icon:LC,PackageCheck:NC,PackageCheckIcon:NC,PackageIcon:PC,PackageMinus:IC,PackageMinusIcon:IC,PackageOpen:AC,PackageOpenIcon:AC,PackagePlus:EC,PackagePlusIcon:EC,PackageSearch:jC,PackageSearchIcon:jC,PackageX:$C,PackageXIcon:$C,PaintBucket:zC,PaintBucketIcon:zC,PaintRoller:RC,PaintRollerIcon:RC,Paintbrush:TC,Paintbrush2:Ul,Paintbrush2Icon:Ul,PaintbrushIcon:TC,PaintbrushVertical:Ul,PaintbrushVerticalIcon:Ul,Palette:DC,PaletteIcon:DC,Palmtree:gd,PalmtreeIcon:gd,Panda:HC,PandaIcon:HC,PanelBottom:FC,PanelBottomClose:OC,PanelBottomCloseIcon:OC,PanelBottomDashed:Wl,PanelBottomDashedIcon:Wl,PanelBottomIcon:FC,PanelBottomInactive:Wl,PanelBottomInactiveIcon:Wl,PanelBottomOpen:qC,PanelBottomOpenIcon:qC,PanelLeft:Zl,PanelLeftClose:Gl,PanelLeftCloseIcon:Gl,PanelLeftDashed:Kl,PanelLeftDashedIcon:Kl,PanelLeftIcon:Zl,PanelLeftInactive:Kl,PanelLeftInactiveIcon:Kl,PanelLeftOpen:Xl,PanelLeftOpenIcon:Xl,PanelLeftRightDashed:VC,PanelLeftRightDashedIcon:VC,PanelRight:BC,PanelRightClose:v0,PanelRightCloseIcon:v0,PanelRightDashed:Yl,PanelRightDashedIcon:Yl,PanelRightIcon:BC,PanelRightInactive:Yl,PanelRightInactiveIcon:Yl,PanelRightOpen:S2,PanelRightOpenIcon:S2,PanelTop:KC,PanelTopBottomDashed:UC,PanelTopBottomDashedIcon:UC,PanelTopClose:WC,PanelTopCloseIcon:WC,PanelTopDashed:Ql,PanelTopDashedIcon:Ql,PanelTopIcon:KC,PanelTopInactive:Ql,PanelTopInactiveIcon:Ql,PanelTopOpen:GC,PanelTopOpenIcon:GC,PanelsLeftBottom:XC,PanelsLeftBottomIcon:XC,PanelsLeftRight:Ci,PanelsLeftRightIcon:Ci,PanelsRightBottom:ZC,PanelsRightBottomIcon:ZC,PanelsTopBottom:i1,PanelsTopBottomIcon:i1,PanelsTopLeft:Jl,PanelsTopLeftIcon:Jl,Paperclip:YC,PaperclipIcon:YC,Parentheses:JC,ParenthesesIcon:JC,ParkingCircle:Sc,ParkingCircleIcon:Sc,ParkingCircleOff:Cc,ParkingCircleOffIcon:Cc,ParkingMeter:QC,ParkingMeterIcon:QC,ParkingSquare:X1,ParkingSquareIcon:X1,ParkingSquareOff:K1,ParkingSquareOffIcon:K1,PartyPopper:eS,PartyPopperIcon:eS,Pause:tS,PauseCircle:Lc,PauseCircleIcon:Lc,PauseIcon:tS,PauseOctagon:Vl,PauseOctagonIcon:Vl,PawPrint:nS,PawPrintIcon:nS,PcCase:oS,PcCaseIcon:oS,Pen:t1,PenBox:so,PenBoxIcon:so,PenIcon:t1,PenLine:e1,PenLineIcon:e1,PenOff:rS,PenOffIcon:rS,PenSquare:so,PenSquareIcon:so,PenTool:aS,PenToolIcon:aS,Pencil:N2,PencilIcon:N2,PencilLine:L2,PencilLineIcon:L2,PencilOff:iS,PencilOffIcon:iS,PencilRuler:sS,PencilRulerIcon:sS,Pentagon:cS,PentagonIcon:cS,Percent:lS,PercentCircle:Nc,PercentCircleIcon:Nc,PercentDiamond:Bc,PercentDiamondIcon:Bc,PercentIcon:lS,PercentSquare:Z1,PercentSquareIcon:Z1,PersonStanding:uS,PersonStandingIcon:uS,PhilippinePeso:dS,PhilippinePesoIcon:dS,Phone:kS,PhoneCall:hS,PhoneCallIcon:hS,PhoneForwarded:fS,PhoneForwardedIcon:fS,PhoneIcon:kS,PhoneIncoming:pS,PhoneIncomingIcon:pS,PhoneMissed:yS,PhoneMissedIcon:yS,PhoneOff:mS,PhoneOffIcon:mS,PhoneOutgoing:gS,PhoneOutgoingIcon:gS,Pi:vS,PiIcon:vS,PiSquare:J1,PiSquareIcon:J1,Piano:xS,PianoIcon:xS,Pickaxe:wS,PickaxeIcon:wS,PictureInPicture:bS,PictureInPicture2:MS,PictureInPicture2Icon:MS,PictureInPictureIcon:bS,PieChart:ic,PieChartIcon:ic,PiggyBank:_S,PiggyBankIcon:_S,Pilcrow:LS,PilcrowIcon:LS,PilcrowLeft:CS,PilcrowLeftIcon:CS,PilcrowRight:SS,PilcrowRightIcon:SS,PilcrowSquare:Y1,PilcrowSquareIcon:Y1,Pill:IS,PillBottle:NS,PillBottleIcon:NS,PillIcon:IS,Pin:ES,PinIcon:ES,PinOff:AS,PinOffIcon:AS,Pipette:jS,PipetteIcon:jS,Pizza:$S,PizzaIcon:$S,Plane:RS,PlaneIcon:RS,PlaneLanding:PS,PlaneLandingIcon:PS,PlaneTakeoff:zS,PlaneTakeoffIcon:zS,Play:Fd,PlayCircle:Ic,PlayCircleIcon:Ic,PlayIcon:Fd,PlaySquare:Q1,PlaySquareIcon:Q1,Plug:DS,Plug2:TS,Plug2Icon:TS,PlugIcon:DS,PlugZap:n1,PlugZap2:n1,PlugZap2Icon:n1,PlugZapIcon:n1,Plus:I2,PlusCircle:Ac,PlusCircleIcon:Ac,PlusIcon:I2,PlusSquare:ed,PlusSquareIcon:ed,Pocket:OS,PocketIcon:OS,PocketKnife:HS,PocketKnifeIcon:HS,Podcast:qS,PodcastIcon:qS,Pointer:VS,PointerIcon:VS,PointerOff:FS,PointerOffIcon:FS,Popcorn:BS,PopcornIcon:BS,Popsicle:US,PopsicleIcon:US,PoundSterling:WS,PoundSterlingIcon:WS,Power:KS,PowerCircle:Ec,PowerCircleIcon:Ec,PowerIcon:KS,PowerOff:GS,PowerOffIcon:GS,PowerSquare:td,PowerSquareIcon:td,Presentation:XS,PresentationIcon:XS,Printer:QS,PrinterCheck:ZS,PrinterCheckIcon:ZS,PrinterIcon:QS,PrinterX:YS,PrinterXIcon:YS,Projector:eL,ProjectorIcon:eL,Proportions:JS,ProportionsIcon:JS,Puzzle:tL,PuzzleIcon:tL,Pyramid:nL,PyramidIcon:nL,QrCode:oL,QrCodeIcon:oL,Quote:rL,QuoteIcon:rL,Rabbit:aL,RabbitIcon:aL,Radar:iL,RadarIcon:iL,Radiation:sL,RadiationIcon:sL,Radical:cL,RadicalIcon:cL,Radio:uL,RadioIcon:uL,RadioReceiver:lL,RadioReceiverIcon:lL,RadioTower:dL,RadioTowerIcon:dL,Radius:hL,RadiusIcon:hL,RailSymbol:fL,RailSymbolIcon:fL,Rainbow:pL,RainbowIcon:pL,Rat:yL,RatIcon:yL,Ratio:mL,RatioIcon:mL,Receipt:SL,ReceiptCent:gL,ReceiptCentIcon:gL,ReceiptEuro:kL,ReceiptEuroIcon:kL,ReceiptIcon:SL,ReceiptIndianRupee:vL,ReceiptIndianRupeeIcon:vL,ReceiptJapaneseYen:xL,ReceiptJapaneseYenIcon:xL,ReceiptPoundSterling:wL,ReceiptPoundSterlingIcon:wL,ReceiptRussianRuble:ML,ReceiptRussianRubleIcon:ML,ReceiptSwissFranc:bL,ReceiptSwissFrancIcon:bL,ReceiptText:_L,ReceiptTextIcon:_L,ReceiptTurkishLira:CL,ReceiptTurkishLiraIcon:CL,RectangleCircle:LL,RectangleCircleIcon:LL,RectangleEllipsis:o1,RectangleEllipsisIcon:o1,RectangleGoggles:NL,RectangleGogglesIcon:NL,RectangleHorizontal:IL,RectangleHorizontalIcon:IL,RectangleVertical:AL,RectangleVerticalIcon:AL,Recycle:EL,RecycleIcon:EL,Redo:PL,Redo2:jL,Redo2Icon:jL,RedoDot:$L,RedoDotIcon:$L,RedoIcon:PL,RefreshCcw:TL,RefreshCcwDot:zL,RefreshCcwDotIcon:zL,RefreshCcwIcon:TL,RefreshCw:DL,RefreshCwIcon:DL,RefreshCwOff:RL,RefreshCwOffIcon:RL,Refrigerator:HL,RefrigeratorIcon:HL,Regex:OL,RegexIcon:OL,RemoveFormatting:FL,RemoveFormattingIcon:FL,Repeat:BL,Repeat1:VL,Repeat1Icon:VL,Repeat2:qL,Repeat2Icon:qL,RepeatIcon:BL,Replace:WL,ReplaceAll:UL,ReplaceAllIcon:UL,ReplaceIcon:WL,Reply:KL,ReplyAll:GL,ReplyAllIcon:GL,ReplyIcon:KL,Rewind:XL,RewindIcon:XL,Ribbon:YL,RibbonIcon:YL,Rocket:ZL,RocketIcon:ZL,RockingChair:QL,RockingChairIcon:QL,RollerCoaster:JL,RollerCoasterIcon:JL,Rose:eN,RoseIcon:eN,Rotate3D:r1,Rotate3DIcon:r1,Rotate3d:r1,Rotate3dIcon:r1,RotateCcw:oN,RotateCcwIcon:oN,RotateCcwKey:tN,RotateCcwKeyIcon:tN,RotateCcwSquare:nN,RotateCcwSquareIcon:nN,RotateCw:aN,RotateCwIcon:aN,RotateCwSquare:rN,RotateCwSquareIcon:rN,Route:sN,RouteIcon:sN,RouteOff:iN,RouteOffIcon:iN,Router:cN,RouterIcon:cN,Rows:a1,Rows2:a1,Rows2Icon:a1,Rows3:i1,Rows3Icon:i1,Rows4:lN,Rows4Icon:lN,RowsIcon:a1,Rss:dN,RssIcon:dN,Ruler:hN,RulerDimensionLine:uN,RulerDimensionLineIcon:uN,RulerIcon:hN,RussianRuble:fN,RussianRubleIcon:fN,Sailboat:pN,SailboatIcon:pN,Salad:yN,SaladIcon:yN,Sandwich:mN,SandwichIcon:mN,Satellite:kN,SatelliteDish:gN,SatelliteDishIcon:gN,SatelliteIcon:kN,SaudiRiyal:vN,SaudiRiyalIcon:vN,Save:MN,SaveAll:xN,SaveAllIcon:xN,SaveIcon:MN,SaveOff:wN,SaveOffIcon:wN,Scale:bN,Scale3D:s1,Scale3DIcon:s1,Scale3d:s1,Scale3dIcon:s1,ScaleIcon:bN,Scaling:_N,ScalingIcon:_N,Scan:$N,ScanBarcode:CN,ScanBarcodeIcon:CN,ScanEye:SN,ScanEyeIcon:SN,ScanFace:LN,ScanFaceIcon:LN,ScanHeart:NN,ScanHeartIcon:NN,ScanIcon:$N,ScanLine:IN,ScanLineIcon:IN,ScanQrCode:AN,ScanQrCodeIcon:AN,ScanSearch:EN,ScanSearchIcon:EN,ScanText:jN,ScanTextIcon:jN,ScatterChart:sc,ScatterChartIcon:sc,School:PN,School2:vd,School2Icon:vd,SchoolIcon:PN,Scissors:TN,ScissorsIcon:TN,ScissorsLineDashed:zN,ScissorsLineDashedIcon:zN,ScissorsSquare:nd,ScissorsSquareDashedBottom:L1,ScissorsSquareDashedBottomIcon:L1,ScissorsSquareIcon:nd,Scooter:RN,ScooterIcon:RN,ScreenShare:HN,ScreenShareIcon:HN,ScreenShareOff:DN,ScreenShareOffIcon:DN,Scroll:FN,ScrollIcon:FN,ScrollText:ON,ScrollTextIcon:ON,Search:A2,SearchAlert:qN,SearchAlertIcon:qN,SearchCheck:VN,SearchCheckIcon:VN,SearchCode:BN,SearchCodeIcon:BN,SearchIcon:A2,SearchSlash:UN,SearchSlashIcon:UN,SearchX:WN,SearchXIcon:WN,Section:GN,SectionIcon:GN,Send:XN,SendHorizonal:c1,SendHorizonalIcon:c1,SendHorizontal:c1,SendHorizontalIcon:c1,SendIcon:XN,SendToBack:KN,SendToBackIcon:KN,SeparatorHorizontal:YN,SeparatorHorizontalIcon:YN,SeparatorVertical:ZN,SeparatorVerticalIcon:ZN,Server:E2,ServerCog:QN,ServerCogIcon:QN,ServerCrash:JN,ServerCrashIcon:JN,ServerIcon:E2,ServerOff:eI,ServerOffIcon:eI,Settings:nI,Settings2:tI,Settings2Icon:tI,SettingsIcon:nI,Shapes:j2,ShapesIcon:j2,Share:oI,Share2:$2,Share2Icon:$2,ShareIcon:oI,Sheet:rI,SheetIcon:rI,Shell:aI,ShellIcon:aI,Shield:yI,ShieldAlert:iI,ShieldAlertIcon:iI,ShieldBan:sI,ShieldBanIcon:sI,ShieldCheck:cI,ShieldCheckIcon:cI,ShieldClose:d1,ShieldCloseIcon:d1,ShieldEllipsis:lI,ShieldEllipsisIcon:lI,ShieldHalf:dI,ShieldHalfIcon:dI,ShieldIcon:yI,ShieldMinus:uI,ShieldMinusIcon:uI,ShieldOff:hI,ShieldOffIcon:hI,ShieldPlus:fI,ShieldPlusIcon:fI,ShieldQuestion:l1,ShieldQuestionIcon:l1,ShieldQuestionMark:l1,ShieldQuestionMarkIcon:l1,ShieldUser:pI,ShieldUserIcon:pI,ShieldX:d1,ShieldXIcon:d1,Ship:kI,ShipIcon:kI,ShipWheel:mI,ShipWheelIcon:mI,Shirt:gI,ShirtIcon:gI,ShoppingBag:xI,ShoppingBagIcon:xI,ShoppingBasket:vI,ShoppingBasketIcon:vI,ShoppingCart:wI,ShoppingCartIcon:wI,Shovel:MI,ShovelIcon:MI,ShowerHead:bI,ShowerHeadIcon:bI,Shredder:_I,ShredderIcon:_I,Shrimp:CI,ShrimpIcon:CI,Shrink:SI,ShrinkIcon:SI,Shrub:LI,ShrubIcon:LI,Shuffle:NI,ShuffleIcon:NI,Sidebar:Zl,SidebarClose:Gl,SidebarCloseIcon:Gl,SidebarIcon:Zl,SidebarOpen:Xl,SidebarOpenIcon:Xl,Sigma:II,SigmaIcon:II,SigmaSquare:od,SigmaSquareIcon:od,Signal:PI,SignalHigh:AI,SignalHighIcon:AI,SignalIcon:PI,SignalLow:EI,SignalLowIcon:EI,SignalMedium:jI,SignalMediumIcon:jI,SignalZero:$I,SignalZeroIcon:$I,Signature:zI,SignatureIcon:zI,Signpost:TI,SignpostBig:RI,SignpostBigIcon:RI,SignpostIcon:TI,Siren:DI,SirenIcon:DI,SkipBack:HI,SkipBackIcon:HI,SkipForward:OI,SkipForwardIcon:OI,Skull:FI,SkullIcon:FI,Slack:qI,SlackIcon:qI,Slash:VI,SlashIcon:VI,SlashSquare:rd,SlashSquareIcon:rd,Slice:BI,SliceIcon:BI,Sliders:u1,SlidersHorizontal:UI,SlidersHorizontalIcon:UI,SlidersIcon:u1,SlidersVertical:u1,SlidersVerticalIcon:u1,Smartphone:KI,SmartphoneCharging:WI,SmartphoneChargingIcon:WI,SmartphoneIcon:KI,SmartphoneNfc:GI,SmartphoneNfcIcon:GI,Smile:ZI,SmileIcon:ZI,SmilePlus:XI,SmilePlusIcon:XI,Snail:YI,SnailIcon:YI,Snowflake:QI,SnowflakeIcon:QI,SoapDispenserDroplet:JI,SoapDispenserDropletIcon:JI,Sofa:eA,SofaIcon:eA,SolarPanel:tA,SolarPanelIcon:tA,SortAsc:Hs,SortAscIcon:Hs,SortDesc:Rs,SortDescIcon:Rs,Soup:nA,SoupIcon:nA,Space:oA,SpaceIcon:oA,Spade:rA,SpadeIcon:rA,Sparkle:aA,SparkleIcon:aA,Sparkles:h1,SparklesIcon:h1,Speaker:iA,SpeakerIcon:iA,Speech:sA,SpeechIcon:sA,SpellCheck:lA,SpellCheck2:cA,SpellCheck2Icon:cA,SpellCheckIcon:lA,Spline:dA,SplineIcon:dA,SplinePointer:uA,SplinePointerIcon:uA,Split:hA,SplitIcon:hA,SplitSquareHorizontal:ad,SplitSquareHorizontalIcon:ad,SplitSquareVertical:id,SplitSquareVerticalIcon:id,Spool:fA,SpoolIcon:fA,Spotlight:pA,SpotlightIcon:pA,SprayCan:yA,SprayCanIcon:yA,Sprout:mA,SproutIcon:mA,Square:x0,SquareActivity:f1,SquareActivityIcon:f1,SquareArrowDown:m1,SquareArrowDownIcon:m1,SquareArrowDownLeft:p1,SquareArrowDownLeftIcon:p1,SquareArrowDownRight:y1,SquareArrowDownRightIcon:y1,SquareArrowLeft:g1,SquareArrowLeftIcon:g1,SquareArrowOutDownLeft:k1,SquareArrowOutDownLeftIcon:k1,SquareArrowOutDownRight:v1,SquareArrowOutDownRightIcon:v1,SquareArrowOutUpLeft:x1,SquareArrowOutUpLeftIcon:x1,SquareArrowOutUpRight:w1,SquareArrowOutUpRightIcon:w1,SquareArrowRight:M1,SquareArrowRightIcon:M1,SquareArrowUp:_1,SquareArrowUpIcon:_1,SquareArrowUpLeft:b1,SquareArrowUpLeftIcon:b1,SquareArrowUpRight:S1,SquareArrowUpRightIcon:S1,SquareAsterisk:C1,SquareAsteriskIcon:C1,SquareBottomDashedScissors:L1,SquareBottomDashedScissorsIcon:L1,SquareChartGantt:Dr,SquareChartGanttIcon:Dr,SquareCheck:I1,SquareCheckBig:N1,SquareCheckBigIcon:N1,SquareCheckIcon:I1,SquareChevronDown:A1,SquareChevronDownIcon:A1,SquareChevronLeft:E1,SquareChevronLeftIcon:E1,SquareChevronRight:$1,SquareChevronRightIcon:$1,SquareChevronUp:j1,SquareChevronUpIcon:j1,SquareCode:P1,SquareCodeIcon:P1,SquareDashed:T1,SquareDashedBottom:kA,SquareDashedBottomCode:gA,SquareDashedBottomCodeIcon:gA,SquareDashedBottomIcon:kA,SquareDashedIcon:T1,SquareDashedKanban:z1,SquareDashedKanbanIcon:z1,SquareDashedMousePointer:R1,SquareDashedMousePointerIcon:R1,SquareDashedTopSolid:vA,SquareDashedTopSolidIcon:vA,SquareDivide:D1,SquareDivideIcon:D1,SquareDot:H1,SquareDotIcon:H1,SquareEqual:O1,SquareEqualIcon:O1,SquareFunction:F1,SquareFunctionIcon:F1,SquareGanttChart:Dr,SquareGanttChartIcon:Dr,SquareIcon:x0,SquareKanban:q1,SquareKanbanIcon:q1,SquareLibrary:V1,SquareLibraryIcon:V1,SquareM:B1,SquareMIcon:B1,SquareMenu:U1,SquareMenuIcon:U1,SquareMinus:W1,SquareMinusIcon:W1,SquareMousePointer:G1,SquareMousePointerIcon:G1,SquareParking:X1,SquareParkingIcon:X1,SquareParkingOff:K1,SquareParkingOffIcon:K1,SquarePause:xA,SquarePauseIcon:xA,SquarePen:so,SquarePenIcon:so,SquarePercent:Z1,SquarePercentIcon:Z1,SquarePi:J1,SquarePiIcon:J1,SquarePilcrow:Y1,SquarePilcrowIcon:Y1,SquarePlay:Q1,SquarePlayIcon:Q1,SquarePlus:ed,SquarePlusIcon:ed,SquarePower:td,SquarePowerIcon:td,SquareRadical:wA,SquareRadicalIcon:wA,SquareRoundCorner:MA,SquareRoundCornerIcon:MA,SquareScissors:nd,SquareScissorsIcon:nd,SquareSigma:od,SquareSigmaIcon:od,SquareSlash:rd,SquareSlashIcon:rd,SquareSplitHorizontal:ad,SquareSplitHorizontalIcon:ad,SquareSplitVertical:id,SquareSplitVerticalIcon:id,SquareSquare:_A,SquareSquareIcon:_A,SquareStack:bA,SquareStackIcon:bA,SquareStar:SA,SquareStarIcon:SA,SquareStop:CA,SquareStopIcon:CA,SquareTerminal:sd,SquareTerminalIcon:sd,SquareUser:ld,SquareUserIcon:ld,SquareUserRound:cd,SquareUserRoundIcon:cd,SquareX:dd,SquareXIcon:dd,SquaresExclude:LA,SquaresExcludeIcon:LA,SquaresIntersect:NA,SquaresIntersectIcon:NA,SquaresSubtract:IA,SquaresSubtractIcon:IA,SquaresUnite:AA,SquaresUniteIcon:AA,Squircle:w0,SquircleDashed:EA,SquircleDashedIcon:EA,SquircleIcon:w0,Squirrel:jA,SquirrelIcon:jA,Stamp:$A,StampIcon:$A,Star:RA,StarHalf:PA,StarHalfIcon:PA,StarIcon:RA,StarOff:zA,StarOffIcon:zA,Stars:h1,StarsIcon:h1,StepBack:TA,StepBackIcon:TA,StepForward:DA,StepForwardIcon:DA,Stethoscope:HA,StethoscopeIcon:HA,Sticker:M0,StickerIcon:M0,StickyNote:P2,StickyNoteIcon:P2,Stone:OA,StoneIcon:OA,StopCircle:Pc,StopCircleIcon:Pc,Store:FA,StoreIcon:FA,StretchHorizontal:VA,StretchHorizontalIcon:VA,StretchVertical:qA,StretchVerticalIcon:qA,Strikethrough:BA,StrikethroughIcon:BA,Subscript:UA,SubscriptIcon:UA,Subtitles:Ks,SubtitlesIcon:Ks,Sun:ZA,SunDim:WA,SunDimIcon:WA,SunIcon:ZA,SunMedium:GA,SunMediumIcon:GA,SunMoon:KA,SunMoonIcon:KA,SunSnow:XA,SunSnowIcon:XA,Sunrise:YA,SunriseIcon:YA,Sunset:QA,SunsetIcon:QA,Superscript:JA,SuperscriptIcon:JA,SwatchBook:eE,SwatchBookIcon:eE,SwissFranc:tE,SwissFrancIcon:tE,SwitchCamera:nE,SwitchCameraIcon:nE,Sword:oE,SwordIcon:oE,Swords:rE,SwordsIcon:rE,Syringe:aE,SyringeIcon:aE,Table:fE,Table2:iE,Table2Icon:iE,TableCellsMerge:sE,TableCellsMergeIcon:sE,TableCellsSplit:cE,TableCellsSplitIcon:cE,TableColumnsSplit:lE,TableColumnsSplitIcon:lE,TableConfig:$r,TableConfigIcon:$r,TableIcon:fE,TableOfContents:dE,TableOfContentsIcon:dE,TableProperties:uE,TablePropertiesIcon:uE,TableRowsSplit:hE,TableRowsSplitIcon:hE,Tablet:yE,TabletIcon:yE,TabletSmartphone:pE,TabletSmartphoneIcon:pE,Tablets:mE,TabletsIcon:mE,Tag:gE,TagIcon:gE,Tags:kE,TagsIcon:kE,Tally1:vE,Tally1Icon:vE,Tally2:xE,Tally2Icon:xE,Tally3:wE,Tally3Icon:wE,Tally4:ME,Tally4Icon:ME,Tally5:bE,Tally5Icon:bE,Tangent:_E,TangentIcon:_E,Target:CE,TargetIcon:CE,Telescope:SE,TelescopeIcon:SE,Tent:NE,TentIcon:NE,TentTree:LE,TentTreeIcon:LE,Terminal:IE,TerminalIcon:IE,TerminalSquare:sd,TerminalSquareIcon:sd,TestTube:AE,TestTube2:ud,TestTube2Icon:ud,TestTubeDiagonal:ud,TestTubeDiagonalIcon:ud,TestTubeIcon:AE,TestTubes:EE,TestTubesIcon:EE,Text:Zo,TextAlignCenter:Si,TextAlignCenterIcon:Si,TextAlignEnd:Li,TextAlignEndIcon:Li,TextAlignJustify:hd,TextAlignJustifyIcon:hd,TextAlignStart:Zo,TextAlignStartIcon:Zo,TextCursor:$E,TextCursorIcon:$E,TextCursorInput:jE,TextCursorInputIcon:jE,TextIcon:Zo,TextInitial:fd,TextInitialIcon:fd,TextQuote:PE,TextQuoteIcon:PE,TextSearch:zE,TextSearchIcon:zE,TextSelect:pd,TextSelectIcon:pd,TextSelection:pd,TextSelectionIcon:pd,TextWrap:yd,TextWrapIcon:yd,Theater:RE,TheaterIcon:RE,Thermometer:HE,ThermometerIcon:HE,ThermometerSnowflake:TE,ThermometerSnowflakeIcon:TE,ThermometerSun:DE,ThermometerSunIcon:DE,ThumbsDown:OE,ThumbsDownIcon:OE,ThumbsUp:FE,ThumbsUpIcon:FE,Ticket:KE,TicketCheck:qE,TicketCheckIcon:qE,TicketIcon:KE,TicketMinus:VE,TicketMinusIcon:VE,TicketPercent:BE,TicketPercentIcon:BE,TicketPlus:UE,TicketPlusIcon:UE,TicketSlash:WE,TicketSlashIcon:WE,TicketX:GE,TicketXIcon:GE,Tickets:ZE,TicketsIcon:ZE,TicketsPlane:XE,TicketsPlaneIcon:XE,Timer:JE,TimerIcon:JE,TimerOff:YE,TimerOffIcon:YE,TimerReset:QE,TimerResetIcon:QE,ToggleLeft:ej,ToggleLeftIcon:ej,ToggleRight:tj,ToggleRightIcon:tj,Toilet:nj,ToiletIcon:nj,ToolCase:rj,ToolCaseIcon:rj,Toolbox:oj,ToolboxIcon:oj,Tornado:aj,TornadoIcon:aj,Torus:ij,TorusIcon:ij,Touchpad:cj,TouchpadIcon:cj,TouchpadOff:sj,TouchpadOffIcon:sj,TowerControl:lj,TowerControlIcon:lj,ToyBrick:dj,ToyBrickIcon:dj,Tractor:uj,TractorIcon:uj,TrafficCone:hj,TrafficConeIcon:hj,Train:md,TrainFront:pj,TrainFrontIcon:pj,TrainFrontTunnel:fj,TrainFrontTunnelIcon:fj,TrainIcon:md,TrainTrack:yj,TrainTrackIcon:yj,TramFront:md,TramFrontIcon:md,Transgender:mj,TransgenderIcon:mj,Trash:gj,Trash2:z2,Trash2Icon:z2,TrashIcon:gj,TreeDeciduous:kj,TreeDeciduousIcon:kj,TreePalm:gd,TreePalmIcon:gd,TreePine:vj,TreePineIcon:vj,Trees:xj,TreesIcon:xj,Trello:wj,TrelloIcon:wj,TrendingDown:Mj,TrendingDownIcon:Mj,TrendingUp:_j,TrendingUpDown:bj,TrendingUpDownIcon:bj,TrendingUpIcon:_j,Triangle:R2,TriangleAlert:qr,TriangleAlertIcon:qr,TriangleDashed:Cj,TriangleDashedIcon:Cj,TriangleIcon:R2,TriangleRight:Sj,TriangleRightIcon:Sj,Trophy:Lj,TrophyIcon:Lj,Truck:Ij,TruckElectric:Nj,TruckElectricIcon:Nj,TruckIcon:Ij,TurkishLira:Aj,TurkishLiraIcon:Aj,Turntable:Ej,TurntableIcon:Ej,Turtle:jj,TurtleIcon:jj,Tv:Pj,Tv2:kd,Tv2Icon:kd,TvIcon:Pj,TvMinimal:kd,TvMinimalIcon:kd,TvMinimalPlay:$j,TvMinimalPlayIcon:$j,Twitch:zj,TwitchIcon:zj,Twitter:Rj,TwitterIcon:Rj,Type:b0,TypeIcon:b0,TypeOutline:Tj,TypeOutlineIcon:Tj,Umbrella:Hj,UmbrellaIcon:Hj,UmbrellaOff:Dj,UmbrellaOffIcon:Dj,Underline:Oj,UnderlineIcon:Oj,Undo:Vj,Undo2:Fj,Undo2Icon:Fj,UndoDot:qj,UndoDotIcon:qj,UndoIcon:Vj,UnfoldHorizontal:Bj,UnfoldHorizontalIcon:Bj,UnfoldVertical:Uj,UnfoldVerticalIcon:Uj,Ungroup:Wj,UngroupIcon:Wj,University:vd,UniversityIcon:vd,Unlink:Kj,Unlink2:Gj,Unlink2Icon:Gj,UnlinkIcon:Kj,Unlock:Rl,UnlockIcon:Rl,UnlockKeyhole:zl,UnlockKeyholeIcon:zl,Unplug:Xj,UnplugIcon:Xj,Upload:T2,UploadCloud:Oc,UploadCloudIcon:Oc,UploadIcon:T2,Usb:Zj,UsbIcon:Zj,User:D2,User2:Cd,User2Icon:Cd,UserCheck:Yj,UserCheck2:xd,UserCheck2Icon:xd,UserCheckIcon:Yj,UserCircle:zc,UserCircle2:$c,UserCircle2Icon:$c,UserCircleIcon:zc,UserCog:Qj,UserCog2:wd,UserCog2Icon:wd,UserCogIcon:Qj,UserIcon:D2,UserKey:Jj,UserKeyIcon:Jj,UserLock:e$,UserLockIcon:e$,UserMinus:t$,UserMinus2:Md,UserMinus2Icon:Md,UserMinusIcon:t$,UserPen:n$,UserPenIcon:n$,UserPlus:o$,UserPlus2:bd,UserPlus2Icon:bd,UserPlusIcon:o$,UserRound:Cd,UserRoundCheck:xd,UserRoundCheckIcon:xd,UserRoundCog:wd,UserRoundCogIcon:wd,UserRoundIcon:Cd,UserRoundKey:r$,UserRoundKeyIcon:r$,UserRoundMinus:Md,UserRoundMinusIcon:Md,UserRoundPen:a$,UserRoundPenIcon:a$,UserRoundPlus:bd,UserRoundPlusIcon:bd,UserRoundSearch:i$,UserRoundSearchIcon:i$,UserRoundX:_d,UserRoundXIcon:_d,UserSearch:s$,UserSearchIcon:s$,UserSquare:ld,UserSquare2:cd,UserSquare2Icon:cd,UserSquareIcon:ld,UserStar:c$,UserStarIcon:c$,UserX:l$,UserX2:_d,UserX2Icon:_d,UserXIcon:l$,Users:d$,Users2:Sd,Users2Icon:Sd,UsersIcon:d$,UsersRound:Sd,UsersRoundIcon:Sd,Utensils:Nd,UtensilsCrossed:Ld,UtensilsCrossedIcon:Ld,UtensilsIcon:Nd,UtilityPole:u$,UtilityPoleIcon:u$,Van:h$,VanIcon:h$,Variable:f$,VariableIcon:f$,Vault:p$,VaultIcon:p$,VectorSquare:y$,VectorSquareIcon:y$,Vegan:m$,VeganIcon:m$,VenetianMask:g$,VenetianMaskIcon:g$,Venus:v$,VenusAndMars:k$,VenusAndMarsIcon:k$,VenusIcon:v$,Verified:qs,VerifiedIcon:qs,Vibrate:w$,VibrateIcon:w$,VibrateOff:x$,VibrateOffIcon:x$,Video:b$,VideoIcon:b$,VideoOff:M$,VideoOffIcon:M$,Videotape:_$,VideotapeIcon:_$,View:C$,ViewIcon:C$,Voicemail:S$,VoicemailIcon:S$,Volleyball:L$,VolleyballIcon:L$,Volume:j$,Volume1:N$,Volume1Icon:N$,Volume2:I$,Volume2Icon:I$,VolumeIcon:j$,VolumeOff:A$,VolumeOffIcon:A$,VolumeX:E$,VolumeXIcon:E$,Vote:$$,VoteIcon:$$,Wallet:z$,Wallet2:Id,Wallet2Icon:Id,WalletCards:P$,WalletCardsIcon:P$,WalletIcon:z$,WalletMinimal:Id,WalletMinimalIcon:Id,Wallpaper:R$,WallpaperIcon:R$,Wand:T$,Wand2:Ad,Wand2Icon:Ad,WandIcon:T$,WandSparkles:Ad,WandSparklesIcon:Ad,Warehouse:D$,WarehouseIcon:D$,WashingMachine:H$,WashingMachineIcon:H$,Watch:O$,WatchIcon:O$,Waves:B$,WavesArrowDown:F$,WavesArrowDownIcon:F$,WavesArrowUp:q$,WavesArrowUpIcon:q$,WavesIcon:B$,WavesLadder:V$,WavesLadderIcon:V$,Waypoints:U$,WaypointsIcon:U$,Webcam:W$,WebcamIcon:W$,Webhook:K$,WebhookIcon:K$,WebhookOff:G$,WebhookOffIcon:G$,Weight:Z$,WeightIcon:Z$,WeightTilde:X$,WeightTildeIcon:X$,Wheat:J$,WheatIcon:J$,WheatOff:Y$,WheatOffIcon:Y$,WholeWord:Q$,WholeWordIcon:Q$,Wifi:sP,WifiCog:eP,WifiCogIcon:eP,WifiHigh:tP,WifiHighIcon:tP,WifiIcon:sP,WifiLow:nP,WifiLowIcon:nP,WifiOff:oP,WifiOffIcon:oP,WifiPen:rP,WifiPenIcon:rP,WifiSync:aP,WifiSyncIcon:aP,WifiZero:iP,WifiZeroIcon:iP,Wind:lP,WindArrowDown:cP,WindArrowDownIcon:cP,WindIcon:lP,Wine:uP,WineIcon:uP,WineOff:dP,WineOffIcon:dP,Workflow:hP,WorkflowIcon:hP,Worm:fP,WormIcon:fP,WrapText:yd,WrapTextIcon:yd,Wrench:pP,WrenchIcon:pP,X:qd,XCircle:Rc,XCircleIcon:Rc,XIcon:qd,XOctagon:Bl,XOctagonIcon:Bl,XSquare:dd,XSquareIcon:dd,Youtube:yP,YoutubeIcon:yP,Zap:gP,ZapIcon:gP,ZapOff:mP,ZapOffIcon:mP,ZoomIn:kP,ZoomInIcon:kP,ZoomOut:vP,ZoomOutIcon:vP,createLucideIcon:u,icons:MEe},Symbol.toStringTag,{value:"Module"})),_Ee=new Set(["createLucideIcon","Icon","icons","default"]),CEe=Symbol.for("react.forward_ref");function SEe(e){return typeof e=="function"?!0:e!==null&&typeof e=="object"?e.$$typeof===CEe:!1}function LEe(e){return e.replace(/[A-Z]/g,(t,n)=>n===0?t.toLowerCase():`-${t.toLowerCase()}`)}function NEe(){const e={};for(const[t,n]of Object.entries(bEe))_Ee.has(t)||SEe(n)&&(e[LEe(t)]=n);return e}const df=NEe(),IEe="help-circle",AEe=Object.keys(df).sort(),EEe=["logos:aws","logos:google-cloud","logos:microsoft-azure"],iz={lucide:AEe,aws:[],gcp:[],azure:[],iconify:[...EEe]};function UH(e){for(const t of e)t.installed?iz[t.vendor]=[...t.iconNames]:iz[t.vendor]=[]}const jEe=["aws","gcp","azure","iconify"];function wQ(e){if(typeof e!="string")return null;const t=e.trim();if(t.length===0)return null;const n=t.indexOf(":");if(n===-1)return{vendor:"lucide",name:t};const o=t.slice(0,n),r=t.slice(n+1);return r.length===0?null:o==="lucide"?{vendor:"lucide",name:r}:jEe.includes(o)?{vendor:o,name:r}:null}function $Ee(e){return e.vendor==="lucide"?e.name:`${e.vendor}:${e.name}`}function PEe(e,t){const n=wQ(e);if(!n)return null;if(n.vendor==="lucide"){const o=df[n.name];return o?{kind:"lucide",component:o}:null}return n.vendor==="iconify"?{kind:"iconify",identifier:n.name}:{kind:"svg-url",url:`${t.studioBaseUrl}/api/icons/${n.vendor}/${n.name}.svg`}}const zEe="modulepreload",REe=function(e){return"/"+e},kU={},sh=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));r=Promise.allSettled(n.map(c=>{if(c=REe(c),c in kU)return;kU[c]=!0;const l=c.endsWith(".css"),h=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const d=document.createElement("link");if(d.rel=l?"stylesheet":zEe,l||(d.as="script"),d.crossOrigin="",d.href=c,s&&d.setAttribute("nonce",s),document.head.appendChild(d),l)return new Promise((p,y)=>{d.addEventListener("load",p),d.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return r.then(i=>{for(const s of i||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})};let zp=null;function TEe(){return zp||(zp=sh(()=>import("./iconify-DbiCtyWM.js"),[]).then(e=>e,()=>null),zp)}function MQ(e,t){return f.jsx(Xo,{className:e,"aria-label":t,"aria-hidden":t===void 0?!0:void 0,"data-testid":"icon-renderer-placeholder"})}function DEe({identifier:e,className:t,ariaLabel:n,color:o}){const[r,a]=m.useState(null);if(m.useEffect(()=>{let s=!0;return TEe().then(c=>{s&&a(c)}),()=>{s=!1}},[]),!r)return MQ(t,n);const i=r.Icon;return f.jsx(i,{icon:e,className:t,color:o,"aria-label":n,"aria-hidden":n===void 0?!0:void 0})}function Qi({iconId:e,studioBaseUrl:t,className:n,ariaLabel:o,color:r,strokeWidth:a,absoluteStrokeWidth:i}){const s=PEe(e,{studioBaseUrl:t});if(!s)return MQ(n,o);if(s.kind==="lucide"){const c=s.component;return f.jsx(c,{className:n,color:r,strokeWidth:a,absoluteStrokeWidth:i,"aria-label":o,"aria-hidden":o===void 0?!0:void 0})}return s.kind==="svg-url"?f.jsx("img",{src:s.url,loading:"lazy",draggable:!1,className:n,alt:o??"","aria-hidden":o===void 0?!0:void 0}):f.jsx(DEe,{identifier:s.identifier,className:n,ariaLabel:o,color:r})}const HEe={studioBaseUrl:""},Tf=m.createContext(HEe);function OEe({value:e,children:t}){return f.jsx(Tf.Provider,{value:e,children:t})}function tq(){return m.useContext(Tf)}const FEe=[".png",".jpg",".jpeg",".gif",".webp",".svg"],qEe=400,WH={width:200,height:200},VEe=e=>{const t=e.lastIndexOf(".");return t>=0?e.slice(t).toLowerCase():""},BEe=e=>{if(e.type.startsWith("image/")){const t=e.type.slice(6).toLowerCase();if(t==="png"||t==="jpeg"||t==="jpg"||t==="gif"||t==="webp"||t==="svg+xml")return!0}return FEe.includes(VEe(e.name))},UEe=e=>{if(!e)return[];const t=e.files;if(!t||t.length===0)return[];const n=[];for(let o=0;o<t.length;o++){const r=t.item(o);r&&BEe(r)&&n.push(r)}return n},WEe=(e,t=qEe)=>{if(e.width<=0||e.height<=0)return{...WH};const n=Math.max(e.width,e.height);if(n<=t)return{width:Math.round(e.width),height:Math.round(e.height)};const o=t/n;return{width:Math.round(e.width*o),height:Math.round(e.height*o)}},GEe=24,KEe=4,XEe=(e,t,n=GEe,o=KEe)=>{if(e.length===0)return[];const r=Math.min(e.length,Math.max(1,o)),a=Math.ceil(e.length/r),i=new Array(r).fill(0),s=new Array(a).fill(0);e.forEach((g,k)=>{const x=k%r,v=Math.floor(k/r);i[x]=Math.max(i[x],g.width),s[v]=Math.max(s[v],g.height)});const c=new Array(r).fill(0);for(let g=1;g<r;g++)c[g]=c[g-1]+i[g-1]+n;const l=new Array(a).fill(0);for(let g=1;g<a;g++)l[g]=l[g-1]+s[g-1]+n;const h=i.reduce((g,k)=>g+k,0)+n*(r-1),d=s.reduce((g,k)=>g+k,0)+n*(a-1),p=t.x-h/2,y=t.y-d/2;return e.map((g,k)=>{const x=k%r,v=Math.floor(k/r);return{x:p+c[x],y:y+l[v]}})},ZEe=async e=>{const t=UEe(e.dataTransfer);if(t.length===0||!e.rfInstance)return!1;const n=e.rfInstance.screenToFlowPosition(e.clientPos),o=await Promise.all(t.map(a=>e.computeDims(a))),r=XEe(o,n);return t.forEach((a,i)=>{e.dispatch({file:a,position:r[i],dims:o[i],originalFilename:a.name})}),!0},YEe=e=>new Promise(t=>{let n=null;const o=a=>{n&&URL.revokeObjectURL(n),t(a)};try{n=URL.createObjectURL(e)}catch{t({...WH});return}const r=new Image;r.onload=()=>{o(WEe({width:r.naturalWidth,height:r.naturalHeight}))},r.onerror=()=>{o({...WH})},r.src=n}),QEe=2048,JEe=e=>{const t=e.type.toLowerCase();return t==="image/png"||t==="image/jpeg"||t==="image/webp"},eje=async(e,t=QEe)=>{if(!JEe(e))return e;try{const n=await createImageBitmap(e),o=Math.max(n.width,n.height);if(o<=t)return n.close(),e;const r=t/o,a=Math.round(n.width*r),i=Math.round(n.height*r),s=document.createElement("canvas");s.width=a,s.height=i;const c=s.getContext("2d");if(!c)return n.close(),e;c.drawImage(n,0,0,a,i),n.close();const l=await new Promise(h=>{s.toBlob(d=>h(d),e.type)});return l?new File([l],e.name,{type:e.type,lastModified:e.lastModified}):e}catch{return e}};function bQ(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=bQ(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function _Q(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=bQ(e))&&(o&&(o+=" "),o+=t);return o}const nq="-",tje=e=>{const t=oje(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const s=i.split(nq);return s[0]===""&&s.length!==1&&s.shift(),CQ(s,t)||nje(i)},getConflictingClassGroupIds:(i,s)=>{const c=n[i]||[];return s&&o[i]?[...c,...o[i]]:c}}},CQ=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),r=o?CQ(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;const a=e.join(nq);return(i=t.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},vU=/^\[(.+)\]$/,nje=e=>{if(vU.test(e)){const t=vU.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},oje=e=>{const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return aje(Object.entries(e.classGroups),n).forEach(([a,i])=>{GH(i,o,a,t)}),o},GH=(e,t,n,o)=>{e.forEach(r=>{if(typeof r=="string"){const a=r===""?t:xU(t,r);a.classGroupId=n;return}if(typeof r=="function"){if(rje(r)){GH(r(o),t,n,o);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([a,i])=>{GH(i,xU(t,a),n,o)})})},xU=(e,t)=>{let n=e;return t.split(nq).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n},rje=e=>e.isThemeGetter,aje=(e,t)=>t?e.map(([n,o])=>{const r=o.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[t+i,s])):a);return[n,r]}):e,ije=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const r=(a,i)=>{n.set(a,i),t++,t>e&&(t=0,o=n,n=new Map)};return{get(a){let i=n.get(a);if(i!==void 0)return i;if((i=o.get(a))!==void 0)return r(a,i),i},set(a,i){n.has(a)?n.set(a,i):r(a,i)}}},SQ="!",sje=e=>{const{separator:t,experimentalParseClassName:n}=e,o=t.length===1,r=t[0],a=t.length,i=s=>{const c=[];let l=0,h=0,d;for(let x=0;x<s.length;x++){let v=s[x];if(l===0){if(v===r&&(o||s.slice(x,x+a)===t)){c.push(s.slice(h,x)),h=x+a;continue}if(v==="/"){d=x;continue}}v==="["?l++:v==="]"&&l--}const p=c.length===0?s:s.substring(h),y=p.startsWith(SQ),g=y?p.substring(1):p,k=d&&d>h?d-h:void 0;return{modifiers:c,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:k}};return n?s=>n({className:s,parseClassName:i}):i},cje=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(o=>{o[0]==="["?(t.push(...n.sort(),o),n=[]):n.push(o)}),t.push(...n.sort()),t},lje=e=>({cache:ije(e.cacheSize),parseClassName:sje(e),...tje(e)}),dje=/\s+/,uje=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r}=t,a=[],i=e.trim().split(dje);let s="";for(let c=i.length-1;c>=0;c-=1){const l=i[c],{modifiers:h,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:y}=n(l);let g=!!y,k=o(g?p.substring(0,y):p);if(!k){if(!g){s=l+(s.length>0?" "+s:s);continue}if(k=o(p),!k){s=l+(s.length>0?" "+s:s);continue}g=!1}const x=cje(h).join(":"),v=d?x+SQ:x,M=v+k;if(a.includes(M))continue;a.push(M);const w=r(k,g);for(let b=0;b<w.length;++b){const C=w[b];a.push(v+C)}s=l+(s.length>0?" "+s:s)}return s};function hje(){let e=0,t,n,o="";for(;e<arguments.length;)(t=arguments[e++])&&(n=LQ(t))&&(o&&(o+=" "),o+=n);return o}const LQ=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=LQ(e[o]))&&(n&&(n+=" "),n+=t);return n};function fje(e,...t){let n,o,r,a=i;function i(c){const l=t.reduce((h,d)=>d(h),e());return n=lje(l),o=n.cache.get,r=n.cache.set,a=s,s(c)}function s(c){const l=o(c);if(l)return l;const h=uje(c,n);return r(c,h),h}return function(){return a(hje.apply(null,arguments))}}const Nt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},NQ=/^\[(?:([a-z-]+):)?(.+)\]$/i,pje=/^\d+\/\d+$/,yje=new Set(["px","full","screen"]),mje=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gje=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,kje=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vje=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xje=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Sa=e=>_0(e)||yje.has(e)||pje.test(e),hi=e=>ch(e,"length",Nje),_0=e=>!!e&&!Number.isNaN(Number(e)),KT=e=>ch(e,"number",_0),Dh=e=>!!e&&Number.isInteger(Number(e)),wje=e=>e.endsWith("%")&&_0(e.slice(0,-1)),Ge=e=>NQ.test(e),fi=e=>mje.test(e),Mje=new Set(["length","size","percentage"]),bje=e=>ch(e,Mje,IQ),_je=e=>ch(e,"position",IQ),Cje=new Set(["image","url"]),Sje=e=>ch(e,Cje,Aje),Lje=e=>ch(e,"",Ije),Hh=()=>!0,ch=(e,t,n)=>{const o=NQ.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):n(o[2]):!1},Nje=e=>gje.test(e)&&!kje.test(e),IQ=()=>!1,Ije=e=>vje.test(e),Aje=e=>xje.test(e),Eje=()=>{const e=Nt("colors"),t=Nt("spacing"),n=Nt("blur"),o=Nt("brightness"),r=Nt("borderColor"),a=Nt("borderRadius"),i=Nt("borderSpacing"),s=Nt("borderWidth"),c=Nt("contrast"),l=Nt("grayscale"),h=Nt("hueRotate"),d=Nt("invert"),p=Nt("gap"),y=Nt("gradientColorStops"),g=Nt("gradientColorStopPositions"),k=Nt("inset"),x=Nt("margin"),v=Nt("opacity"),M=Nt("padding"),w=Nt("saturate"),b=Nt("scale"),C=Nt("sepia"),_=Nt("skew"),S=Nt("space"),L=Nt("translate"),A=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto",Ge,t],j=()=>[Ge,t],V=()=>["",Sa,hi],$=()=>["auto",_0,Ge],T=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],E=()=>["","0",Ge],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[_0,Ge];return{cacheSize:500,separator:":",theme:{colors:[Hh],spacing:[Sa,hi],blur:["none","",fi,Ge],brightness:W(),borderColor:[e],borderRadius:["none","","full",fi,Ge],borderSpacing:j(),borderWidth:V(),contrast:W(),grayscale:E(),hueRotate:W(),invert:E(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[wje,hi],inset:R(),margin:R(),opacity:W(),padding:j(),saturate:W(),scale:W(),sepia:E(),skew:W(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",Ge]}],container:["container"],columns:[{columns:[fi]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...T(),Ge]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-x":[{"inset-x":[k]}],"inset-y":[{"inset-y":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Dh,Ge]}],basis:[{basis:R()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ge]}],grow:[{grow:E()}],shrink:[{shrink:E()}],order:[{order:["first","last","none",Dh,Ge]}],"grid-cols":[{"grid-cols":[Hh]}],"col-start-end":[{col:["auto",{span:["full",Dh,Ge]},Ge]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[Hh]}],"row-start-end":[{row:["auto",{span:[Dh,Ge]},Ge]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ge]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ge]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[M]}],px:[{px:[M]}],py:[{py:[M]}],ps:[{ps:[M]}],pe:[{pe:[M]}],pt:[{pt:[M]}],pr:[{pr:[M]}],pb:[{pb:[M]}],pl:[{pl:[M]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ge,t]}],"min-w":[{"min-w":[Ge,t,"min","max","fit"]}],"max-w":[{"max-w":[Ge,t,"none","full","min","max","fit","prose",{screen:[fi]},fi]}],h:[{h:[Ge,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ge,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ge,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ge,t,"auto","min","max","fit"]}],"font-size":[{text:["base",fi,hi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",KT]}],"font-family":[{font:[Hh]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ge]}],"line-clamp":[{"line-clamp":["none",_0,KT]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Sa,Ge]}],"list-image":[{"list-image":["none",Ge]}],"list-style-type":[{list:["none","disc","decimal",Ge]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Sa,hi]}],"underline-offset":[{"underline-offset":["auto",Sa,Ge]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...T(),_je]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",bje]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Sje]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:D()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...D()]}],"outline-offset":[{"outline-offset":[Sa,Ge]}],"outline-w":[{outline:[Sa,hi]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Sa,hi]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",fi,Lje]}],"shadow-color":[{shadow:[Hh]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",fi,Ge]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ge]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",Ge]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ge]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[Dh,Ge]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[_]}],"skew-y":[{"skew-y":[_]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ge]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ge]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ge]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Sa,hi,KT]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},jje=fje(Eje);function ee(...e){return jje(_Q(e))}function Yt(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,o;n<e.length;n++)(o=Yt(e[n]))!==""&&(t+=(t&&" ")+o);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var $je={value:()=>{}};function hR(){for(var e=0,t=arguments.length,n={},o;e<t;++e){if(!(o=arguments[e]+"")||o in n||/[\s.]/.test(o))throw new Error("illegal type: "+o);n[o]=[]}return new xP(n)}function xP(e){this._=e}function Pje(e,t){return e.trim().split(/^|\s+/).map(function(n){var o="",r=n.indexOf(".");if(r>=0&&(o=n.slice(r+1),n=n.slice(0,r)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}xP.prototype=hR.prototype={constructor:xP,on:function(e,t){var n=this._,o=Pje(e+"",n),r,a=-1,i=o.length;if(arguments.length<2){for(;++a<i;)if((r=(e=o[a]).type)&&(r=zje(n[r],e.name)))return r;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<i;)if(r=(e=o[a]).type)n[r]=wU(n[r],e.name,t);else if(t==null)for(r in n)n[r]=wU(n[r],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new xP(e)},call:function(e,t){if((r=arguments.length-2)>0)for(var n=new Array(r),o=0,r,a;o<r;++o)n[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],o=0,r=a.length;o<r;++o)a[o].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],r=0,a=o.length;r<a;++r)o[r].value.apply(t,n)}};function zje(e,t){for(var n=0,o=e.length,r;n<o;++n)if((r=e[n]).name===t)return r.value}function wU(e,t,n){for(var o=0,r=e.length;o<r;++o)if(e[o].name===t){e[o]=$je,e=e.slice(0,o).concat(e.slice(o+1));break}return n!=null&&e.push({name:t,value:n}),e}var KH="http://www.w3.org/1999/xhtml";const MU={svg:"http://www.w3.org/2000/svg",xhtml:KH,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function fR(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),MU.hasOwnProperty(t)?{space:MU[t],local:e}:e}function Rje(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===KH&&t.documentElement.namespaceURI===KH?t.createElement(e):t.createElementNS(n,e)}}function Tje(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function AQ(e){var t=fR(e);return(t.local?Tje:Rje)(t)}function Dje(){}function oq(e){return e==null?Dje:function(){return this.querySelector(e)}}function Hje(e){typeof e!="function"&&(e=oq(e));for(var t=this._groups,n=t.length,o=new Array(n),r=0;r<n;++r)for(var a=t[r],i=a.length,s=o[r]=new Array(i),c,l,h=0;h<i;++h)(c=a[h])&&(l=e.call(c,c.__data__,h,a))&&("__data__"in c&&(l.__data__=c.__data__),s[h]=l);return new wo(o,this._parents)}function Oje(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Fje(){return[]}function EQ(e){return e==null?Fje:function(){return this.querySelectorAll(e)}}function qje(e){return function(){return Oje(e.apply(this,arguments))}}function Vje(e){typeof e=="function"?e=qje(e):e=EQ(e);for(var t=this._groups,n=t.length,o=[],r=[],a=0;a<n;++a)for(var i=t[a],s=i.length,c,l=0;l<s;++l)(c=i[l])&&(o.push(e.call(c,c.__data__,l,i)),r.push(c));return new wo(o,r)}function jQ(e){return function(){return this.matches(e)}}function $Q(e){return function(t){return t.matches(e)}}var Bje=Array.prototype.find;function Uje(e){return function(){return Bje.call(this.children,e)}}function Wje(){return this.firstElementChild}function Gje(e){return this.select(e==null?Wje:Uje(typeof e=="function"?e:$Q(e)))}var Kje=Array.prototype.filter;function Xje(){return Array.from(this.children)}function Zje(e){return function(){return Kje.call(this.children,e)}}function Yje(e){return this.selectAll(e==null?Xje:Zje(typeof e=="function"?e:$Q(e)))}function Qje(e){typeof e!="function"&&(e=jQ(e));for(var t=this._groups,n=t.length,o=new Array(n),r=0;r<n;++r)for(var a=t[r],i=a.length,s=o[r]=[],c,l=0;l<i;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new wo(o,this._parents)}function PQ(e){return new Array(e.length)}function Jje(){return new wo(this._enter||this._groups.map(PQ),this._parents)}function sz(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}sz.prototype={constructor:sz,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 e$e(e){return function(){return e}}function t$e(e,t,n,o,r,a){for(var i=0,s,c=t.length,l=a.length;i<l;++i)(s=t[i])?(s.__data__=a[i],o[i]=s):n[i]=new sz(e,a[i]);for(;i<c;++i)(s=t[i])&&(r[i]=s)}function n$e(e,t,n,o,r,a,i){var s,c,l=new Map,h=t.length,d=a.length,p=new Array(h),y;for(s=0;s<h;++s)(c=t[s])&&(p[s]=y=i.call(c,c.__data__,s,t)+"",l.has(y)?r[s]=c:l.set(y,c));for(s=0;s<d;++s)y=i.call(e,a[s],s,a)+"",(c=l.get(y))?(o[s]=c,c.__data__=a[s],l.delete(y)):n[s]=new sz(e,a[s]);for(s=0;s<h;++s)(c=t[s])&&l.get(p[s])===c&&(r[s]=c)}function o$e(e){return e.__data__}function r$e(e,t){if(!arguments.length)return Array.from(this,o$e);var n=t?n$e:t$e,o=this._parents,r=this._groups;typeof e!="function"&&(e=e$e(e));for(var a=r.length,i=new Array(a),s=new Array(a),c=new Array(a),l=0;l<a;++l){var h=o[l],d=r[l],p=d.length,y=a$e(e.call(h,h&&h.__data__,l,o)),g=y.length,k=s[l]=new Array(g),x=i[l]=new Array(g),v=c[l]=new Array(p);n(h,d,k,x,v,y,t);for(var M=0,w=0,b,C;M<g;++M)if(b=k[M]){for(M>=w&&(w=M+1);!(C=x[w])&&++w<g;);b._next=C||null}}return i=new wo(i,o),i._enter=s,i._exit=c,i}function a$e(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function i$e(){return new wo(this._exit||this._groups.map(PQ),this._parents)}function s$e(e,t,n){var o=this.enter(),r=this,a=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(r=t(r),r&&(r=r.selection())),n==null?a.remove():n(a),o&&r?o.merge(r).order():r}function c$e(e){for(var t=e.selection?e.selection():e,n=this._groups,o=t._groups,r=n.length,a=o.length,i=Math.min(r,a),s=new Array(r),c=0;c<i;++c)for(var l=n[c],h=o[c],d=l.length,p=s[c]=new Array(d),y,g=0;g<d;++g)(y=l[g]||h[g])&&(p[g]=y);for(;c<r;++c)s[c]=n[c];return new wo(s,this._parents)}function l$e(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var o=e[t],r=o.length-1,a=o[r],i;--r>=0;)(i=o[r])&&(a&&i.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(i,a),a=i);return this}function d$e(e){e||(e=u$e);function t(d,p){return d&&p?e(d.__data__,p.__data__):!d-!p}for(var n=this._groups,o=n.length,r=new Array(o),a=0;a<o;++a){for(var i=n[a],s=i.length,c=r[a]=new Array(s),l,h=0;h<s;++h)(l=i[h])&&(c[h]=l);c.sort(t)}return new wo(r,this._parents).order()}function u$e(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function h$e(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function f$e(){return Array.from(this)}function p$e(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var o=e[t],r=0,a=o.length;r<a;++r){var i=o[r];if(i)return i}return null}function y$e(){let e=0;for(const t of this)++e;return e}function m$e(){return!this.node()}function g$e(e){for(var t=this._groups,n=0,o=t.length;n<o;++n)for(var r=t[n],a=0,i=r.length,s;a<i;++a)(s=r[a])&&e.call(s,s.__data__,a,r);return this}function k$e(e){return function(){this.removeAttribute(e)}}function v$e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function x$e(e,t){return function(){this.setAttribute(e,t)}}function w$e(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function M$e(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function b$e(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function _$e(e,t){var n=fR(e);if(arguments.length<2){var o=this.node();return n.local?o.getAttributeNS(n.space,n.local):o.getAttribute(n)}return this.each((t==null?n.local?v$e:k$e:typeof t=="function"?n.local?b$e:M$e:n.local?w$e:x$e)(n,t))}function zQ(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function C$e(e){return function(){this.style.removeProperty(e)}}function S$e(e,t,n){return function(){this.style.setProperty(e,t,n)}}function L$e(e,t,n){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,n)}}function N$e(e,t,n){return arguments.length>1?this.each((t==null?C$e:typeof t=="function"?L$e:S$e)(e,t,n??"")):D0(this.node(),e)}function D0(e,t){return e.style.getPropertyValue(t)||zQ(e).getComputedStyle(e,null).getPropertyValue(t)}function I$e(e){return function(){delete this[e]}}function A$e(e,t){return function(){this[e]=t}}function E$e(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function j$e(e,t){return arguments.length>1?this.each((t==null?I$e:typeof t=="function"?E$e:A$e)(e,t)):this.node()[e]}function RQ(e){return e.trim().split(/^|\s+/)}function rq(e){return e.classList||new TQ(e)}function TQ(e){this._node=e,this._names=RQ(e.getAttribute("class")||"")}TQ.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 DQ(e,t){for(var n=rq(e),o=-1,r=t.length;++o<r;)n.add(t[o])}function HQ(e,t){for(var n=rq(e),o=-1,r=t.length;++o<r;)n.remove(t[o])}function $$e(e){return function(){DQ(this,e)}}function P$e(e){return function(){HQ(this,e)}}function z$e(e,t){return function(){(t.apply(this,arguments)?DQ:HQ)(this,e)}}function R$e(e,t){var n=RQ(e+"");if(arguments.length<2){for(var o=rq(this.node()),r=-1,a=n.length;++r<a;)if(!o.contains(n[r]))return!1;return!0}return this.each((typeof t=="function"?z$e:t?$$e:P$e)(n,t))}function T$e(){this.textContent=""}function D$e(e){return function(){this.textContent=e}}function H$e(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function O$e(e){return arguments.length?this.each(e==null?T$e:(typeof e=="function"?H$e:D$e)(e)):this.node().textContent}function F$e(){this.innerHTML=""}function q$e(e){return function(){this.innerHTML=e}}function V$e(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function B$e(e){return arguments.length?this.each(e==null?F$e:(typeof e=="function"?V$e:q$e)(e)):this.node().innerHTML}function U$e(){this.nextSibling&&this.parentNode.appendChild(this)}function W$e(){return this.each(U$e)}function G$e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function K$e(){return this.each(G$e)}function X$e(e){var t=typeof e=="function"?e:AQ(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Z$e(){return null}function Y$e(e,t){var n=typeof e=="function"?e:AQ(e),o=t==null?Z$e:typeof t=="function"?t:oq(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),o.apply(this,arguments)||null)})}function Q$e(){var e=this.parentNode;e&&e.removeChild(this)}function J$e(){return this.each(Q$e)}function ePe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function tPe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function nPe(e){return this.select(e?tPe:ePe)}function oPe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function rPe(e){return function(t){e.call(this,t,this.__data__)}}function aPe(e){return e.trim().split(/^|\s+/).map(function(t){var n="",o=t.indexOf(".");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{type:t,name:n}})}function iPe(e){return function(){var t=this.__on;if(t){for(var n=0,o=-1,r=t.length,a;n<r;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++o]=a;++o?t.length=o:delete this.__on}}}function sPe(e,t,n){return function(){var o=this.__on,r,a=rPe(t);if(o){for(var i=0,s=o.length;i<s;++i)if((r=o[i]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),r.value=t;return}}this.addEventListener(e.type,a,n),r={type:e.type,name:e.name,value:t,listener:a,options:n},o?o.push(r):this.__on=[r]}}function cPe(e,t,n){var o=aPe(e+""),r,a=o.length,i;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,h;c<l;++c)for(r=0,h=s[c];r<a;++r)if((i=o[r]).type===h.type&&i.name===h.name)return h.value}return}for(s=t?sPe:iPe,r=0;r<a;++r)this.each(s(o[r],t,n));return this}function OQ(e,t,n){var o=zQ(e),r=o.CustomEvent;typeof r=="function"?r=new r(t,n):(r=o.document.createEvent("Event"),n?(r.initEvent(t,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(t,!1,!1)),e.dispatchEvent(r)}function lPe(e,t){return function(){return OQ(this,e,t)}}function dPe(e,t){return function(){return OQ(this,e,t.apply(this,arguments))}}function uPe(e,t){return this.each((typeof t=="function"?dPe:lPe)(e,t))}function*hPe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var o=e[t],r=0,a=o.length,i;r<a;++r)(i=o[r])&&(yield i)}var FQ=[null];function wo(e,t){this._groups=e,this._parents=t}function Df(){return new wo([[document.documentElement]],FQ)}function fPe(){return this}wo.prototype=Df.prototype={constructor:wo,select:Hje,selectAll:Vje,selectChild:Gje,selectChildren:Yje,filter:Qje,data:r$e,enter:Jje,exit:i$e,join:s$e,merge:c$e,selection:fPe,order:l$e,sort:d$e,call:h$e,nodes:f$e,node:p$e,size:y$e,empty:m$e,each:g$e,attr:_$e,style:N$e,property:j$e,classed:R$e,text:O$e,html:B$e,raise:W$e,lower:K$e,append:X$e,insert:Y$e,remove:J$e,clone:nPe,datum:oPe,on:cPe,dispatch:uPe,[Symbol.iterator]:hPe};function fo(e){return typeof e=="string"?new wo([[document.querySelector(e)]],[document.documentElement]):new wo([[e]],FQ)}function pPe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function er(e,t){if(e=pPe(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var o=n.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var r=t.getBoundingClientRect();return[e.clientX-r.left-t.clientLeft,e.clientY-r.top-t.clientTop]}}return[e.pageX,e.pageY]}const yPe={passive:!1},uf={capture:!0,passive:!1};function XT(e){e.stopImmediatePropagation()}function C0(e){e.preventDefault(),e.stopImmediatePropagation()}function qQ(e){var t=e.document.documentElement,n=fo(e).on("dragstart.drag",C0,uf);"onselectstart"in t?n.on("selectstart.drag",C0,uf):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function VQ(e,t){var n=e.document.documentElement,o=fo(e).on("dragstart.drag",null);t&&(o.on("click.drag",C0,uf),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Rp=e=>()=>e;function XH(e,{sourceEvent:t,subject:n,target:o,identifier:r,active:a,x:i,y:s,dx:c,dy:l,dispatch:h}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:r,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:i,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:h}})}XH.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function mPe(e){return!e.ctrlKey&&!e.button}function gPe(){return this.parentNode}function kPe(e,t){return t??{x:e.x,y:e.y}}function vPe(){return navigator.maxTouchPoints||"ontouchstart"in this}function BQ(){var e=mPe,t=gPe,n=kPe,o=vPe,r={},a=hR("start","drag","end"),i=0,s,c,l,h,d=0;function p(b){b.on("mousedown.drag",y).filter(o).on("touchstart.drag",x).on("touchmove.drag",v,yPe).on("touchend.drag touchcancel.drag",M).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(b,C){if(!(h||!e.call(this,b,C))){var _=w(this,t.call(this,b,C),b,C,"mouse");_&&(fo(b.view).on("mousemove.drag",g,uf).on("mouseup.drag",k,uf),qQ(b.view),XT(b),l=!1,s=b.clientX,c=b.clientY,_("start",b))}}function g(b){if(C0(b),!l){var C=b.clientX-s,_=b.clientY-c;l=C*C+_*_>d}r.mouse("drag",b)}function k(b){fo(b.view).on("mousemove.drag mouseup.drag",null),VQ(b.view,l),C0(b),r.mouse("end",b)}function x(b,C){if(e.call(this,b,C)){var _=b.changedTouches,S=t.call(this,b,C),L=_.length,A,I;for(A=0;A<L;++A)(I=w(this,S,b,C,_[A].identifier,_[A]))&&(XT(b),I("start",b,_[A]))}}function v(b){var C=b.changedTouches,_=C.length,S,L;for(S=0;S<_;++S)(L=r[C[S].identifier])&&(C0(b),L("drag",b,C[S]))}function M(b){var C=b.changedTouches,_=C.length,S,L;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),S=0;S<_;++S)(L=r[C[S].identifier])&&(XT(b),L("end",b,C[S]))}function w(b,C,_,S,L,A){var I=a.copy(),R=er(A||_,C),j,V,$;if(($=n.call(b,new XH("beforestart",{sourceEvent:_,target:p,identifier:L,active:i,x:R[0],y:R[1],dx:0,dy:0,dispatch:I}),S))!=null)return j=$.x-R[0]||0,V=$.y-R[1]||0,function T(D,F,z){var E=R,N;switch(D){case"start":r[L]=T,N=i++;break;case"end":delete r[L],--i;case"drag":R=er(z||F,C),N=i;break}I.call(D,b,new XH(D,{sourceEvent:F,subject:$,target:p,identifier:L,active:N,x:R[0]+j,y:R[1]+V,dx:R[0]-E[0],dy:R[1]-E[1],dispatch:I}),S)}}return p.filter=function(b){return arguments.length?(e=typeof b=="function"?b:Rp(!!b),p):e},p.container=function(b){return arguments.length?(t=typeof b=="function"?b:Rp(b),p):t},p.subject=function(b){return arguments.length?(n=typeof b=="function"?b:Rp(b),p):n},p.touchable=function(b){return arguments.length?(o=typeof b=="function"?b:Rp(!!b),p):o},p.on=function(){var b=a.on.apply(a,arguments);return b===a?p:b},p.clickDistance=function(b){return arguments.length?(d=(b=+b)*b,p):Math.sqrt(d)},p}function aq(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function UQ(e,t){var n=Object.create(e.prototype);for(var o in t)n[o]=t[o];return n}function Hf(){}var hf=.7,cz=1/hf,S0="\\s*([+-]?\\d+)\\s*",ff="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xPe=/^#([0-9a-f]{3,8})$/,wPe=new RegExp(`^rgb\\(${S0},${S0},${S0}\\)$`),MPe=new RegExp(`^rgb\\(${Qr},${Qr},${Qr}\\)$`),bPe=new RegExp(`^rgba\\(${S0},${S0},${S0},${ff}\\)$`),_Pe=new RegExp(`^rgba\\(${Qr},${Qr},${Qr},${ff}\\)$`),CPe=new RegExp(`^hsl\\(${ff},${Qr},${Qr}\\)$`),SPe=new RegExp(`^hsla\\(${ff},${Qr},${Qr},${ff}\\)$`),bU={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};aq(Hf,Zd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:_U,formatHex:_U,formatHex8:LPe,formatHsl:NPe,formatRgb:CU,toString:CU});function _U(){return this.rgb().formatHex()}function LPe(){return this.rgb().formatHex8()}function NPe(){return WQ(this).formatHsl()}function CU(){return this.rgb().formatRgb()}function Zd(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=xPe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?SU(t):n===3?new Kn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Tp(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===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=wPe.exec(e))?new Kn(t[1],t[2],t[3],1):(t=MPe.exec(e))?new Kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=bPe.exec(e))?Tp(t[1],t[2],t[3],t[4]):(t=_Pe.exec(e))?Tp(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=CPe.exec(e))?IU(t[1],t[2]/100,t[3]/100,1):(t=SPe.exec(e))?IU(t[1],t[2]/100,t[3]/100,t[4]):bU.hasOwnProperty(e)?SU(bU[e]):e==="transparent"?new Kn(NaN,NaN,NaN,0):null}function SU(e){return new Kn(e>>16&255,e>>8&255,e&255,1)}function Tp(e,t,n,o){return o<=0&&(e=t=n=NaN),new Kn(e,t,n,o)}function IPe(e){return e instanceof Hf||(e=Zd(e)),e?(e=e.rgb(),new Kn(e.r,e.g,e.b,e.opacity)):new Kn}function ZH(e,t,n,o){return arguments.length===1?IPe(e):new Kn(e,t,n,o??1)}function Kn(e,t,n,o){this.r=+e,this.g=+t,this.b=+n,this.opacity=+o}aq(Kn,ZH,UQ(Hf,{brighter(e){return e=e==null?cz:Math.pow(cz,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?hf:Math.pow(hf,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kn(Vd(this.r),Vd(this.g),Vd(this.b),lz(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:LU,formatHex:LU,formatHex8:APe,formatRgb:NU,toString:NU}));function LU(){return`#${Td(this.r)}${Td(this.g)}${Td(this.b)}`}function APe(){return`#${Td(this.r)}${Td(this.g)}${Td(this.b)}${Td((isNaN(this.opacity)?1:this.opacity)*255)}`}function NU(){const e=lz(this.opacity);return`${e===1?"rgb(":"rgba("}${Vd(this.r)}, ${Vd(this.g)}, ${Vd(this.b)}${e===1?")":`, ${e})`}`}function lz(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vd(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Td(e){return e=Vd(e),(e<16?"0":"")+e.toString(16)}function IU(e,t,n,o){return o<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new or(e,t,n,o)}function WQ(e){if(e instanceof or)return new or(e.h,e.s,e.l,e.opacity);if(e instanceof Hf||(e=Zd(e)),!e)return new or;if(e instanceof or)return e;e=e.rgb();var t=e.r/255,n=e.g/255,o=e.b/255,r=Math.min(t,n,o),a=Math.max(t,n,o),i=NaN,s=a-r,c=(a+r)/2;return s?(t===a?i=(n-o)/s+(n<o)*6:n===a?i=(o-t)/s+2:i=(t-n)/s+4,s/=c<.5?a+r:2-a-r,i*=60):s=c>0&&c<1?0:i,new or(i,s,c,e.opacity)}function EPe(e,t,n,o){return arguments.length===1?WQ(e):new or(e,t,n,o??1)}function or(e,t,n,o){this.h=+e,this.s=+t,this.l=+n,this.opacity=+o}aq(or,EPe,UQ(Hf,{brighter(e){return e=e==null?cz:Math.pow(cz,e),new or(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?hf:Math.pow(hf,e),new or(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,n=this.l,o=n+(n<.5?n:1-n)*t,r=2*n-o;return new Kn(ZT(e>=240?e-240:e+120,r,o),ZT(e,r,o),ZT(e<120?e+240:e-120,r,o),this.opacity)},clamp(){return new or(AU(this.h),Dp(this.s),Dp(this.l),lz(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=lz(this.opacity);return`${e===1?"hsl(":"hsla("}${AU(this.h)}, ${Dp(this.s)*100}%, ${Dp(this.l)*100}%${e===1?")":`, ${e})`}`}}));function AU(e){return e=(e||0)%360,e<0?e+360:e}function Dp(e){return Math.max(0,Math.min(1,e||0))}function ZT(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const pR=e=>()=>e;function GQ(e,t){return function(n){return e+n*t}}function jPe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(o){return Math.pow(e+o*t,n)}}function qst(e,t){var n=t-e;return n?GQ(e,n>180||n<-180?n-360*Math.round(n/360):n):pR(isNaN(e)?t:e)}function $Pe(e){return(e=+e)==1?KQ:function(t,n){return n-t?jPe(t,n,e):pR(isNaN(t)?n:t)}}function KQ(e,t){var n=t-e;return n?GQ(e,n):pR(isNaN(e)?t:e)}const dz=function e(t){var n=$Pe(t);function o(r,a){var i=n((r=ZH(r)).r,(a=ZH(a)).r),s=n(r.g,a.g),c=n(r.b,a.b),l=KQ(r.opacity,a.opacity);return function(h){return r.r=i(h),r.g=s(h),r.b=c(h),r.opacity=l(h),r+""}}return o.gamma=e,o}(1);function PPe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,o=t.slice(),r;return function(a){for(r=0;r<n;++r)o[r]=e[r]*(1-a)+t[r]*a;return o}}function zPe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function RPe(e,t){var n=t?t.length:0,o=e?Math.min(n,e.length):0,r=new Array(o),a=new Array(n),i;for(i=0;i<o;++i)r[i]=H2(e[i],t[i]);for(;i<n;++i)a[i]=t[i];return function(s){for(i=0;i<o;++i)a[i]=r[i](s);return a}}function TPe(e,t){var n=new Date;return e=+e,t=+t,function(o){return n.setTime(e*(1-o)+t*o),n}}function Vr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function DPe(e,t){var n={},o={},r;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(r in t)r in e?n[r]=H2(e[r],t[r]):o[r]=t[r];return function(a){for(r in n)o[r]=n[r](a);return o}}var YH=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,YT=new RegExp(YH.source,"g");function HPe(e){return function(){return e}}function OPe(e){return function(t){return e(t)+""}}function XQ(e,t){var n=YH.lastIndex=YT.lastIndex=0,o,r,a,i=-1,s=[],c=[];for(e=e+"",t=t+"";(o=YH.exec(e))&&(r=YT.exec(t));)(a=r.index)>n&&(a=t.slice(n,a),s[i]?s[i]+=a:s[++i]=a),(o=o[0])===(r=r[0])?s[i]?s[i]+=r:s[++i]=r:(s[++i]=null,c.push({i,x:Vr(o,r)})),n=YT.lastIndex;return n<t.length&&(a=t.slice(n),s[i]?s[i]+=a:s[++i]=a),s.length<2?c[0]?OPe(c[0].x):HPe(t):(t=c.length,function(l){for(var h=0,d;h<t;++h)s[(d=c[h]).i]=d.x(l);return s.join("")})}function H2(e,t){var n=typeof t,o;return t==null||n==="boolean"?pR(t):(n==="number"?Vr:n==="string"?(o=Zd(t))?(t=o,dz):XQ:t instanceof Zd?dz:t instanceof Date?TPe:zPe(t)?PPe:Array.isArray(t)?RPe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?DPe:Vr)(e,t)}var EU=180/Math.PI,QH={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ZQ(e,t,n,o,r,a){var i,s,c;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(c=e*n+t*o)&&(n-=e*c,o-=t*c),(s=Math.sqrt(n*n+o*o))&&(n/=s,o/=s,c/=s),e*o<t*n&&(e=-e,t=-t,c=-c,i=-i),{translateX:r,translateY:a,rotate:Math.atan2(t,e)*EU,skewX:Math.atan(c)*EU,scaleX:i,scaleY:s}}var Hp;function FPe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?QH:ZQ(t.a,t.b,t.c,t.d,t.e,t.f)}function qPe(e){return e==null||(Hp||(Hp=document.createElementNS("http://www.w3.org/2000/svg","g")),Hp.setAttribute("transform",e),!(e=Hp.transform.baseVal.consolidate()))?QH:(e=e.matrix,ZQ(e.a,e.b,e.c,e.d,e.e,e.f))}function YQ(e,t,n,o){function r(l){return l.length?l.pop()+" ":""}function a(l,h,d,p,y,g){if(l!==d||h!==p){var k=y.push("translate(",null,t,null,n);g.push({i:k-4,x:Vr(l,d)},{i:k-2,x:Vr(h,p)})}else(d||p)&&y.push("translate("+d+t+p+n)}function i(l,h,d,p){l!==h?(l-h>180?h+=360:h-l>180&&(l+=360),p.push({i:d.push(r(d)+"rotate(",null,o)-2,x:Vr(l,h)})):h&&d.push(r(d)+"rotate("+h+o)}function s(l,h,d,p){l!==h?p.push({i:d.push(r(d)+"skewX(",null,o)-2,x:Vr(l,h)}):h&&d.push(r(d)+"skewX("+h+o)}function c(l,h,d,p,y,g){if(l!==d||h!==p){var k=y.push(r(y)+"scale(",null,",",null,")");g.push({i:k-4,x:Vr(l,d)},{i:k-2,x:Vr(h,p)})}else(d!==1||p!==1)&&y.push(r(y)+"scale("+d+","+p+")")}return function(l,h){var d=[],p=[];return l=e(l),h=e(h),a(l.translateX,l.translateY,h.translateX,h.translateY,d,p),i(l.rotate,h.rotate,d,p),s(l.skewX,h.skewX,d,p),c(l.scaleX,l.scaleY,h.scaleX,h.scaleY,d,p),l=h=null,function(y){for(var g=-1,k=p.length,x;++g<k;)d[(x=p[g]).i]=x.x(y);return d.join("")}}}var VPe=YQ(FPe,"px, ","px)","deg)"),BPe=YQ(qPe,", ",")",")"),UPe=1e-12;function jU(e){return((e=Math.exp(e))+1/e)/2}function WPe(e){return((e=Math.exp(e))-1/e)/2}function GPe(e){return((e=Math.exp(2*e))-1)/(e+1)}const wP=function e(t,n,o){function r(a,i){var s=a[0],c=a[1],l=a[2],h=i[0],d=i[1],p=i[2],y=h-s,g=d-c,k=y*y+g*g,x,v;if(k<UPe)v=Math.log(p/l)/t,x=function(S){return[s+S*y,c+S*g,l*Math.exp(t*S*v)]};else{var M=Math.sqrt(k),w=(p*p-l*l+o*k)/(2*l*n*M),b=(p*p-l*l-o*k)/(2*p*n*M),C=Math.log(Math.sqrt(w*w+1)-w),_=Math.log(Math.sqrt(b*b+1)-b);v=(_-C)/t,x=function(S){var L=S*v,A=jU(C),I=l/(n*M)*(A*GPe(t*L+C)-WPe(C));return[s+I*y,c+I*g,l*A/jU(t*L+C)]}}return x.duration=v*1e3*t/Math.SQRT2,x}return r.rho=function(a){var i=Math.max(.001,+a),s=i*i,c=s*s;return e(i,s,c)},r}(Math.SQRT2,2,4);var H0=0,Yh=0,Oh=0,QQ=1e3,uz,Qh,hz=0,Yd=0,yR=0,pf=typeof performance=="object"&&performance.now?performance:Date,JQ=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function iq(){return Yd||(JQ(KPe),Yd=pf.now()+yR)}function KPe(){Yd=0}function fz(){this._call=this._time=this._next=null}fz.prototype=eJ.prototype={constructor:fz,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?iq():+n)+(t==null?0:+t),!this._next&&Qh!==this&&(Qh?Qh._next=this:uz=this,Qh=this),this._call=e,this._time=n,JH()},stop:function(){this._call&&(this._call=null,this._time=1/0,JH())}};function eJ(e,t,n){var o=new fz;return o.restart(e,t,n),o}function XPe(){iq(),++H0;for(var e=uz,t;e;)(t=Yd-e._time)>=0&&e._call.call(void 0,t),e=e._next;--H0}function $U(){Yd=(hz=pf.now())+yR,H0=Yh=0;try{XPe()}finally{H0=0,YPe(),Yd=0}}function ZPe(){var e=pf.now(),t=e-hz;t>QQ&&(yR-=t,hz=e)}function YPe(){for(var e,t=uz,n,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:uz=n);Qh=e,JH(o)}function JH(e){if(!H0){Yh&&(Yh=clearTimeout(Yh));var t=e-Yd;t>24?(e<1/0&&(Yh=setTimeout($U,e-pf.now()-yR)),Oh&&(Oh=clearInterval(Oh))):(Oh||(hz=pf.now(),Oh=setInterval(ZPe,QQ)),H0=1,JQ($U))}}function PU(e,t,n){var o=new fz;return t=t==null?0:+t,o.restart(r=>{o.stop(),e(r+t)},t,n),o}var QPe=hR("start","end","cancel","interrupt"),JPe=[],tJ=0,zU=1,eO=2,MP=3,RU=4,tO=5,bP=6;function mR(e,t,n,o,r,a){var i=e.__transition;if(!i)e.__transition={};else if(n in i)return;eze(e,n,{name:t,index:o,group:r,on:QPe,tween:JPe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:tJ})}function sq(e,t){var n=pr(e,t);if(n.state>tJ)throw new Error("too late; already scheduled");return n}function aa(e,t){var n=pr(e,t);if(n.state>MP)throw new Error("too late; already running");return n}function pr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function eze(e,t,n){var o=e.__transition,r;o[t]=n,n.timer=eJ(a,0,n.time);function a(l){n.state=zU,n.timer.restart(i,n.delay,n.time),n.delay<=l&&i(l-n.delay)}function i(l){var h,d,p,y;if(n.state!==zU)return c();for(h in o)if(y=o[h],y.name===n.name){if(y.state===MP)return PU(i);y.state===RU?(y.state=bP,y.timer.stop(),y.on.call("interrupt",e,e.__data__,y.index,y.group),delete o[h]):+h<t&&(y.state=bP,y.timer.stop(),y.on.call("cancel",e,e.__data__,y.index,y.group),delete o[h])}if(PU(function(){n.state===MP&&(n.state=RU,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=eO,n.on.call("start",e,e.__data__,n.index,n.group),n.state===eO){for(n.state=MP,r=new Array(p=n.tween.length),h=0,d=-1;h<p;++h)(y=n.tween[h].value.call(e,e.__data__,n.index,n.group))&&(r[++d]=y);r.length=d+1}}function s(l){for(var h=l<n.duration?n.ease.call(null,l/n.duration):(n.timer.restart(c),n.state=tO,1),d=-1,p=r.length;++d<p;)r[d].call(e,h);n.state===tO&&(n.on.call("end",e,e.__data__,n.index,n.group),c())}function c(){n.state=bP,n.timer.stop(),delete o[t];for(var l in o)return;delete e.__transition}}function _P(e,t){var n=e.__transition,o,r,a=!0,i;if(n){t=t==null?null:t+"";for(i in n){if((o=n[i]).name!==t){a=!1;continue}r=o.state>eO&&o.state<tO,o.state=bP,o.timer.stop(),o.on.call(r?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete n[i]}a&&delete e.__transition}}function tze(e){return this.each(function(){_P(this,e)})}function nze(e,t){var n,o;return function(){var r=aa(this,e),a=r.tween;if(a!==n){o=n=a;for(var i=0,s=o.length;i<s;++i)if(o[i].name===t){o=o.slice(),o.splice(i,1);break}}r.tween=o}}function oze(e,t,n){var o,r;if(typeof n!="function")throw new Error;return function(){var a=aa(this,e),i=a.tween;if(i!==o){r=(o=i).slice();for(var s={name:t,value:n},c=0,l=r.length;c<l;++c)if(r[c].name===t){r[c]=s;break}c===l&&r.push(s)}a.tween=r}}function rze(e,t){var n=this._id;if(e+="",arguments.length<2){for(var o=pr(this.node(),n).tween,r=0,a=o.length,i;r<a;++r)if((i=o[r]).name===e)return i.value;return null}return this.each((t==null?nze:oze)(n,e,t))}function cq(e,t,n){var o=e._id;return e.each(function(){var r=aa(this,o);(r.value||(r.value={}))[t]=n.apply(this,arguments)}),function(r){return pr(r,o).value[t]}}function nJ(e,t){var n;return(typeof t=="number"?Vr:t instanceof Zd?dz:(n=Zd(t))?(t=n,dz):XQ)(e,t)}function aze(e){return function(){this.removeAttribute(e)}}function ize(e){return function(){this.removeAttributeNS(e.space,e.local)}}function sze(e,t,n){var o,r=n+"",a;return function(){var i=this.getAttribute(e);return i===r?null:i===o?a:a=t(o=i,n)}}function cze(e,t,n){var o,r=n+"",a;return function(){var i=this.getAttributeNS(e.space,e.local);return i===r?null:i===o?a:a=t(o=i,n)}}function lze(e,t,n){var o,r,a;return function(){var i,s=n(this),c;return s==null?void this.removeAttribute(e):(i=this.getAttribute(e),c=s+"",i===c?null:i===o&&c===r?a:(r=c,a=t(o=i,s)))}}function dze(e,t,n){var o,r,a;return function(){var i,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(i=this.getAttributeNS(e.space,e.local),c=s+"",i===c?null:i===o&&c===r?a:(r=c,a=t(o=i,s)))}}function uze(e,t){var n=fR(e),o=n==="transform"?BPe:nJ;return this.attrTween(e,typeof t=="function"?(n.local?dze:lze)(n,o,cq(this,"attr."+e,t)):t==null?(n.local?ize:aze)(n):(n.local?cze:sze)(n,o,t))}function hze(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function fze(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function pze(e,t){var n,o;function r(){var a=t.apply(this,arguments);return a!==o&&(n=(o=a)&&fze(e,a)),n}return r._value=t,r}function yze(e,t){var n,o;function r(){var a=t.apply(this,arguments);return a!==o&&(n=(o=a)&&hze(e,a)),n}return r._value=t,r}function mze(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var o=fR(e);return this.tween(n,(o.local?pze:yze)(o,t))}function gze(e,t){return function(){sq(this,e).delay=+t.apply(this,arguments)}}function kze(e,t){return t=+t,function(){sq(this,e).delay=t}}function vze(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?gze:kze)(t,e)):pr(this.node(),t).delay}function xze(e,t){return function(){aa(this,e).duration=+t.apply(this,arguments)}}function wze(e,t){return t=+t,function(){aa(this,e).duration=t}}function Mze(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?xze:wze)(t,e)):pr(this.node(),t).duration}function bze(e,t){if(typeof t!="function")throw new Error;return function(){aa(this,e).ease=t}}function _ze(e){var t=this._id;return arguments.length?this.each(bze(t,e)):pr(this.node(),t).ease}function Cze(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;aa(this,e).ease=n}}function Sze(e){if(typeof e!="function")throw new Error;return this.each(Cze(this._id,e))}function Lze(e){typeof e!="function"&&(e=jQ(e));for(var t=this._groups,n=t.length,o=new Array(n),r=0;r<n;++r)for(var a=t[r],i=a.length,s=o[r]=[],c,l=0;l<i;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Ba(o,this._parents,this._name,this._id)}function Nze(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,o=t.length,r=n.length,a=Math.min(o,r),i=new Array(o),s=0;s<a;++s)for(var c=t[s],l=n[s],h=c.length,d=i[s]=new Array(h),p,y=0;y<h;++y)(p=c[y]||l[y])&&(d[y]=p);for(;s<o;++s)i[s]=t[s];return new Ba(i,this._parents,this._name,this._id)}function Ize(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function Aze(e,t,n){var o,r,a=Ize(t)?sq:aa;return function(){var i=a(this,e),s=i.on;s!==o&&(r=(o=s).copy()).on(t,n),i.on=r}}function Eze(e,t){var n=this._id;return arguments.length<2?pr(this.node(),n).on.on(e):this.each(Aze(n,e,t))}function jze(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function $ze(){return this.on("end.remove",jze(this._id))}function Pze(e){var t=this._name,n=this._id;typeof e!="function"&&(e=oq(e));for(var o=this._groups,r=o.length,a=new Array(r),i=0;i<r;++i)for(var s=o[i],c=s.length,l=a[i]=new Array(c),h,d,p=0;p<c;++p)(h=s[p])&&(d=e.call(h,h.__data__,p,s))&&("__data__"in h&&(d.__data__=h.__data__),l[p]=d,mR(l[p],t,n,p,l,pr(h,n)));return new Ba(a,this._parents,t,n)}function zze(e){var t=this._name,n=this._id;typeof e!="function"&&(e=EQ(e));for(var o=this._groups,r=o.length,a=[],i=[],s=0;s<r;++s)for(var c=o[s],l=c.length,h,d=0;d<l;++d)if(h=c[d]){for(var p=e.call(h,h.__data__,d,c),y,g=pr(h,n),k=0,x=p.length;k<x;++k)(y=p[k])&&mR(y,t,n,k,p,g);a.push(p),i.push(h)}return new Ba(a,i,t,n)}var Rze=Df.prototype.constructor;function Tze(){return new Rze(this._groups,this._parents)}function Dze(e,t){var n,o,r;return function(){var a=D0(this,e),i=(this.style.removeProperty(e),D0(this,e));return a===i?null:a===n&&i===o?r:r=t(n=a,o=i)}}function oJ(e){return function(){this.style.removeProperty(e)}}function Hze(e,t,n){var o,r=n+"",a;return function(){var i=D0(this,e);return i===r?null:i===o?a:a=t(o=i,n)}}function Oze(e,t,n){var o,r,a;return function(){var i=D0(this,e),s=n(this),c=s+"";return s==null&&(c=s=(this.style.removeProperty(e),D0(this,e))),i===c?null:i===o&&c===r?a:(r=c,a=t(o=i,s))}}function Fze(e,t){var n,o,r,a="style."+t,i="end."+a,s;return function(){var c=aa(this,e),l=c.on,h=c.value[a]==null?s||(s=oJ(t)):void 0;(l!==n||r!==h)&&(o=(n=l).copy()).on(i,r=h),c.on=o}}function qze(e,t,n){var o=(e+="")=="transform"?VPe:nJ;return t==null?this.styleTween(e,Dze(e,o)).on("end.style."+e,oJ(e)):typeof t=="function"?this.styleTween(e,Oze(e,o,cq(this,"style."+e,t))).each(Fze(this._id,e)):this.styleTween(e,Hze(e,o,t),n).on("end.style."+e,null)}function Vze(e,t,n){return function(o){this.style.setProperty(e,t.call(this,o),n)}}function Bze(e,t,n){var o,r;function a(){var i=t.apply(this,arguments);return i!==r&&(o=(r=i)&&Vze(e,i,n)),o}return a._value=t,a}function Uze(e,t,n){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,Bze(e,t,n??""))}function Wze(e){return function(){this.textContent=e}}function Gze(e){return function(){var t=e(this);this.textContent=t??""}}function Kze(e){return this.tween("text",typeof e=="function"?Gze(cq(this,"text",e)):Wze(e==null?"":e+""))}function Xze(e){return function(t){this.textContent=e.call(this,t)}}function Zze(e){var t,n;function o(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Xze(r)),t}return o._value=e,o}function Yze(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,Zze(e))}function Qze(){for(var e=this._name,t=this._id,n=rJ(),o=this._groups,r=o.length,a=0;a<r;++a)for(var i=o[a],s=i.length,c,l=0;l<s;++l)if(c=i[l]){var h=pr(c,t);mR(c,e,n,l,i,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Ba(o,this._parents,e,n)}function Jze(){var e,t,n=this,o=n._id,r=n.size();return new Promise(function(a,i){var s={value:i},c={value:function(){--r===0&&a()}};n.each(function(){var l=aa(this,o),h=l.on;h!==e&&(t=(e=h).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),l.on=t}),r===0&&a()})}var eRe=0;function Ba(e,t,n,o){this._groups=e,this._parents=t,this._name=n,this._id=o}function rJ(){return++eRe}var La=Df.prototype;Ba.prototype={constructor:Ba,select:Pze,selectAll:zze,selectChild:La.selectChild,selectChildren:La.selectChildren,filter:Lze,merge:Nze,selection:Tze,transition:Qze,call:La.call,nodes:La.nodes,node:La.node,size:La.size,empty:La.empty,each:La.each,on:Eze,attr:uze,attrTween:mze,style:qze,styleTween:Uze,text:Kze,textTween:Yze,remove:$ze,tween:rze,delay:vze,duration:Mze,ease:_ze,easeVarying:Sze,end:Jze,[Symbol.iterator]:La[Symbol.iterator]};function tRe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var nRe={time:null,delay:0,duration:250,ease:tRe};function oRe(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function rRe(e){var t,n;e instanceof Ba?(t=e._id,e=e._name):(t=rJ(),(n=nRe).time=iq(),e=e==null?null:e+"");for(var o=this._groups,r=o.length,a=0;a<r;++a)for(var i=o[a],s=i.length,c,l=0;l<s;++l)(c=i[l])&&mR(c,e,t,l,i,n||oRe(c,t));return new Ba(o,this._parents,e,t)}Df.prototype.interrupt=tze;Df.prototype.transition=rRe;const Op=e=>()=>e;function aRe(e,{sourceEvent:t,target:n,transform:o,dispatch:r}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:r}})}function Ta(e,t,n){this.k=e,this.x=t,this.y=n}Ta.prototype={constructor:Ta,scale:function(e){return e===1?this:new Ta(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Ta(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+")"}};var gR=new Ta(1,0,0);aJ.prototype=Ta.prototype;function aJ(e){for(;!e.__zoom;)if(!(e=e.parentNode))return gR;return e.__zoom}function QT(e){e.stopImmediatePropagation()}function Fh(e){e.preventDefault(),e.stopImmediatePropagation()}function iRe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function sRe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function TU(){return this.__zoom||gR}function cRe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function lRe(){return navigator.maxTouchPoints||"ontouchstart"in this}function dRe(e,t,n){var o=e.invertX(t[0][0])-n[0][0],r=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],i=e.invertY(t[1][1])-n[1][1];return e.translate(r>o?(o+r)/2:Math.min(0,o)||Math.max(0,r),i>a?(a+i)/2:Math.min(0,a)||Math.max(0,i))}function iJ(){var e=iRe,t=sRe,n=dRe,o=cRe,r=lRe,a=[0,1/0],i=[[-1/0,-1/0],[1/0,1/0]],s=250,c=wP,l=hR("start","zoom","end"),h,d,p,y=500,g=150,k=0,x=10;function v($){$.property("__zoom",TU).on("wheel.zoom",L,{passive:!1}).on("mousedown.zoom",A).on("dblclick.zoom",I).filter(r).on("touchstart.zoom",R).on("touchmove.zoom",j).on("touchend.zoom touchcancel.zoom",V).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}v.transform=function($,T,D,F){var z=$.selection?$.selection():$;z.property("__zoom",TU),$!==z?C($,T,D,F):z.interrupt().each(function(){_(this,arguments).event(F).start().zoom(null,typeof T=="function"?T.apply(this,arguments):T).end()})},v.scaleBy=function($,T,D,F){v.scaleTo($,function(){var z=this.__zoom.k,E=typeof T=="function"?T.apply(this,arguments):T;return z*E},D,F)},v.scaleTo=function($,T,D,F){v.transform($,function(){var z=t.apply(this,arguments),E=this.__zoom,N=D==null?b(z):typeof D=="function"?D.apply(this,arguments):D,W=E.invert(N),O=typeof T=="function"?T.apply(this,arguments):T;return n(w(M(E,O),N,W),z,i)},D,F)},v.translateBy=function($,T,D,F){v.transform($,function(){return n(this.__zoom.translate(typeof T=="function"?T.apply(this,arguments):T,typeof D=="function"?D.apply(this,arguments):D),t.apply(this,arguments),i)},null,F)},v.translateTo=function($,T,D,F,z){v.transform($,function(){var E=t.apply(this,arguments),N=this.__zoom,W=F==null?b(E):typeof F=="function"?F.apply(this,arguments):F;return n(gR.translate(W[0],W[1]).scale(N.k).translate(typeof T=="function"?-T.apply(this,arguments):-T,typeof D=="function"?-D.apply(this,arguments):-D),E,i)},F,z)};function M($,T){return T=Math.max(a[0],Math.min(a[1],T)),T===$.k?$:new Ta(T,$.x,$.y)}function w($,T,D){var F=T[0]-D[0]*$.k,z=T[1]-D[1]*$.k;return F===$.x&&z===$.y?$:new Ta($.k,F,z)}function b($){return[(+$[0][0]+ +$[1][0])/2,(+$[0][1]+ +$[1][1])/2]}function C($,T,D,F){$.on("start.zoom",function(){_(this,arguments).event(F).start()}).on("interrupt.zoom end.zoom",function(){_(this,arguments).event(F).end()}).tween("zoom",function(){var z=this,E=arguments,N=_(z,E).event(F),W=t.apply(z,E),O=D==null?b(W):typeof D=="function"?D.apply(z,E):D,P=Math.max(W[1][0]-W[0][0],W[1][1]-W[0][1]),Y=z.__zoom,Z=typeof T=="function"?T.apply(z,E):T,te=c(Y.invert(O).concat(P/Y.k),Z.invert(O).concat(P/Z.k));return function(ie){if(ie===1)ie=Z;else{var re=te(ie),ae=P/re[2];ie=new Ta(ae,O[0]-re[0]*ae,O[1]-re[1]*ae)}N.zoom(null,ie)}})}function _($,T,D){return!D&&$.__zooming||new S($,T)}function S($,T){this.that=$,this.args=T,this.active=0,this.sourceEvent=null,this.extent=t.apply($,T),this.taps=0}S.prototype={event:function($){return $&&(this.sourceEvent=$),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function($,T){return this.mouse&&$!=="mouse"&&(this.mouse[1]=T.invert(this.mouse[0])),this.touch0&&$!=="touch"&&(this.touch0[1]=T.invert(this.touch0[0])),this.touch1&&$!=="touch"&&(this.touch1[1]=T.invert(this.touch1[0])),this.that.__zoom=T,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function($){var T=fo(this.that).datum();l.call($,this.that,new aRe($,{sourceEvent:this.sourceEvent,target:v,transform:this.that.__zoom,dispatch:l}),T)}};function L($,...T){if(!e.apply(this,arguments))return;var D=_(this,T).event($),F=this.__zoom,z=Math.max(a[0],Math.min(a[1],F.k*Math.pow(2,o.apply(this,arguments)))),E=er($);if(D.wheel)(D.mouse[0][0]!==E[0]||D.mouse[0][1]!==E[1])&&(D.mouse[1]=F.invert(D.mouse[0]=E)),clearTimeout(D.wheel);else{if(F.k===z)return;D.mouse=[E,F.invert(E)],_P(this),D.start()}Fh($),D.wheel=setTimeout(N,g),D.zoom("mouse",n(w(M(F,z),D.mouse[0],D.mouse[1]),D.extent,i));function N(){D.wheel=null,D.end()}}function A($,...T){if(p||!e.apply(this,arguments))return;var D=$.currentTarget,F=_(this,T,!0).event($),z=fo($.view).on("mousemove.zoom",O,!0).on("mouseup.zoom",P,!0),E=er($,D),N=$.clientX,W=$.clientY;qQ($.view),QT($),F.mouse=[E,this.__zoom.invert(E)],_P(this),F.start();function O(Y){if(Fh(Y),!F.moved){var Z=Y.clientX-N,te=Y.clientY-W;F.moved=Z*Z+te*te>k}F.event(Y).zoom("mouse",n(w(F.that.__zoom,F.mouse[0]=er(Y,D),F.mouse[1]),F.extent,i))}function P(Y){z.on("mousemove.zoom mouseup.zoom",null),VQ(Y.view,F.moved),Fh(Y),F.event(Y).end()}}function I($,...T){if(e.apply(this,arguments)){var D=this.__zoom,F=er($.changedTouches?$.changedTouches[0]:$,this),z=D.invert(F),E=D.k*($.shiftKey?.5:2),N=n(w(M(D,E),F,z),t.apply(this,T),i);Fh($),s>0?fo(this).transition().duration(s).call(C,N,F,$):fo(this).call(v.transform,N,F,$)}}function R($,...T){if(e.apply(this,arguments)){var D=$.touches,F=D.length,z=_(this,T,$.changedTouches.length===F).event($),E,N,W,O;for(QT($),N=0;N<F;++N)W=D[N],O=er(W,this),O=[O,this.__zoom.invert(O),W.identifier],z.touch0?!z.touch1&&z.touch0[2]!==O[2]&&(z.touch1=O,z.taps=0):(z.touch0=O,E=!0,z.taps=1+!!h);h&&(h=clearTimeout(h)),E&&(z.taps<2&&(d=O[0],h=setTimeout(function(){h=null},y)),_P(this),z.start())}}function j($,...T){if(this.__zooming){var D=_(this,T).event($),F=$.changedTouches,z=F.length,E,N,W,O;for(Fh($),E=0;E<z;++E)N=F[E],W=er(N,this),D.touch0&&D.touch0[2]===N.identifier?D.touch0[0]=W:D.touch1&&D.touch1[2]===N.identifier&&(D.touch1[0]=W);if(N=D.that.__zoom,D.touch1){var P=D.touch0[0],Y=D.touch0[1],Z=D.touch1[0],te=D.touch1[1],ie=(ie=Z[0]-P[0])*ie+(ie=Z[1]-P[1])*ie,re=(re=te[0]-Y[0])*re+(re=te[1]-Y[1])*re;N=M(N,Math.sqrt(ie/re)),W=[(P[0]+Z[0])/2,(P[1]+Z[1])/2],O=[(Y[0]+te[0])/2,(Y[1]+te[1])/2]}else if(D.touch0)W=D.touch0[0],O=D.touch0[1];else return;D.zoom("touch",n(w(N,W,O),D.extent,i))}}function V($,...T){if(this.__zooming){var D=_(this,T).event($),F=$.changedTouches,z=F.length,E,N;for(QT($),p&&clearTimeout(p),p=setTimeout(function(){p=null},y),E=0;E<z;++E)N=F[E],D.touch0&&D.touch0[2]===N.identifier?delete D.touch0:D.touch1&&D.touch1[2]===N.identifier&&delete D.touch1;if(D.touch1&&!D.touch0&&(D.touch0=D.touch1,delete D.touch1),D.touch0)D.touch0[1]=this.__zoom.invert(D.touch0[0]);else if(D.end(),D.taps===2&&(N=er(N,this),Math.hypot(d[0]-N[0],d[1]-N[1])<x)){var W=fo(this).on("dblclick.zoom");W&&W.apply(this,arguments)}}}return v.wheelDelta=function($){return arguments.length?(o=typeof $=="function"?$:Op(+$),v):o},v.filter=function($){return arguments.length?(e=typeof $=="function"?$:Op(!!$),v):e},v.touchable=function($){return arguments.length?(r=typeof $=="function"?$:Op(!!$),v):r},v.extent=function($){return arguments.length?(t=typeof $=="function"?$:Op([[+$[0][0],+$[0][1]],[+$[1][0],+$[1][1]]]),v):t},v.scaleExtent=function($){return arguments.length?(a[0]=+$[0],a[1]=+$[1],v):[a[0],a[1]]},v.translateExtent=function($){return arguments.length?(i[0][0]=+$[0][0],i[1][0]=+$[1][0],i[0][1]=+$[0][1],i[1][1]=+$[1][1],v):[[i[0][0],i[0][1]],[i[1][0],i[1][1]]]},v.constrain=function($){return arguments.length?(n=$,v):n},v.duration=function($){return arguments.length?(s=+$,v):s},v.interpolate=function($){return arguments.length?(c=$,v):c},v.on=function(){var $=l.on.apply(l,arguments);return $===l?v:$},v.clickDistance=function($){return arguments.length?(k=($=+$)*$,v):Math.sqrt(k)},v.tapDistance=function($){return arguments.length?(x=+$,v):x},v}const ta={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:o})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:o}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},yf=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],sJ=["Enter"," ","Escape"],cJ={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var O0;(function(e){e.Strict="strict",e.Loose="loose"})(O0||(O0={}));var Bd;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Bd||(Bd={}));var F0;(function(e){e.Partial="partial",e.Full="full"})(F0||(F0={}));const lJ={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var Ei;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(Ei||(Ei={}));var mf;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(mf||(mf={}));var ue;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(ue||(ue={}));const DU={[ue.Left]:ue.Right,[ue.Right]:ue.Left,[ue.Top]:ue.Bottom,[ue.Bottom]:ue.Top};function dJ(e){return e===null?null:e?"valid":"invalid"}const uJ=e=>"id"in e&&"source"in e&&"target"in e,uRe=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),lq=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),Of=(e,t=[0,0])=>{const{width:n,height:o}=Xa(e),r=e.origin??t,a=n*r[0],i=o*r[1];return{x:e.position.x-a,y:e.position.y-i}},hRe=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((o,r)=>{const a=typeof r=="string";let i=!t.nodeLookup&&!a?r:void 0;t.nodeLookup&&(i=a?t.nodeLookup.get(r):lq(r)?r:t.nodeLookup.get(r.id));const s=i?pz(i,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return kR(o,s)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return vR(n)},Ff=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},o=!1;return e.forEach(r=>{(t.filter===void 0||t.filter(r))&&(n=kR(n,pz(r)),o=!0)}),o?vR(n):{x:0,y:0,width:0,height:0}},dq=(e,t,[n,o,r]=[0,0,1],a=!1,i=!1)=>{const s={...Vf(t,[n,o,r]),width:t.width/r,height:t.height/r},c=[];for(const l of e.values()){const{measured:h,selectable:d=!0,hidden:p=!1}=l;if(i&&!d||p)continue;const y=h.width??l.width??l.initialWidth??null,g=h.height??l.height??l.initialHeight??null,k=gf(s,V0(l)),x=(y??0)*(g??0),v=a&&k>0;(!l.internals.handleBounds||v||k>=x||l.dragging)&&c.push(l)}return c},fRe=(e,t)=>{const n=new Set;return e.forEach(o=>{n.add(o.id)}),t.filter(o=>n.has(o.source)||n.has(o.target))};function pRe(e,t){const n=new Map,o=t!=null&&t.nodes?new Set(t.nodes.map(r=>r.id)):null;return e.forEach(r=>{r.measured.width&&r.measured.height&&((t==null?void 0:t.includeHiddenNodes)||!r.hidden)&&(!o||o.has(r.id))&&n.set(r.id,r)}),n}async function yRe({nodes:e,width:t,height:n,panZoom:o,minZoom:r,maxZoom:a},i){if(e.size===0)return Promise.resolve(!0);const s=pRe(e,i),c=Ff(s),l=uq(c,t,n,(i==null?void 0:i.minZoom)??r,(i==null?void 0:i.maxZoom)??a,(i==null?void 0:i.padding)??.1);return await o.setViewport(l,{duration:i==null?void 0:i.duration,ease:i==null?void 0:i.ease,interpolate:i==null?void 0:i.interpolate}),Promise.resolve(!0)}function hJ({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:o=[0,0],nodeExtent:r,onError:a}){const i=n.get(e),s=i.parentId?n.get(i.parentId):void 0,{x:c,y:l}=s?s.internals.positionAbsolute:{x:0,y:0},h=i.origin??o;let d=i.extent||r;if(i.extent==="parent"&&!i.expandParent)if(!s)a==null||a("005",ta.error005());else{const y=s.measured.width,g=s.measured.height;y&&g&&(d=[[c,l],[c+y,l+g]])}else s&&B0(i.extent)&&(d=[[i.extent[0][0]+c,i.extent[0][1]+l],[i.extent[1][0]+c,i.extent[1][1]+l]]);const p=B0(d)?Qd(t,d,i.measured):t;return(i.measured.width===void 0||i.measured.height===void 0)&&(a==null||a("015",ta.error015())),{position:{x:p.x-c+(i.measured.width??0)*h[0],y:p.y-l+(i.measured.height??0)*h[1]},positionAbsolute:p}}async function mRe({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:o,onBeforeDelete:r}){const a=new Set(e.map(p=>p.id)),i=[];for(const p of n){if(p.deletable===!1)continue;const y=a.has(p.id),g=!y&&p.parentId&&i.find(k=>k.id===p.parentId);(y||g)&&i.push(p)}const s=new Set(t.map(p=>p.id)),c=o.filter(p=>p.deletable!==!1),h=fRe(i,c);for(const p of c)s.has(p.id)&&!h.find(g=>g.id===p.id)&&h.push(p);if(!r)return{edges:h,nodes:i};const d=await r({nodes:i,edges:h});return typeof d=="boolean"?d?{edges:h,nodes:i}:{edges:[],nodes:[]}:d}const q0=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),Qd=(e={x:0,y:0},t,n)=>({x:q0(e.x,t[0][0],t[1][0]-((n==null?void 0:n.width)??0)),y:q0(e.y,t[0][1],t[1][1]-((n==null?void 0:n.height)??0))});function fJ(e,t,n){const{width:o,height:r}=Xa(n),{x:a,y:i}=n.internals.positionAbsolute;return Qd(e,[[a,i],[a+o,i+r]],t)}const HU=(e,t,n)=>e<t?q0(Math.abs(e-t),1,t)/t:e>n?-q0(Math.abs(e-n),1,t)/t:0,pJ=(e,t,n=15,o=40)=>{const r=HU(e.x,o,t.width-o)*n,a=HU(e.y,o,t.height-o)*n;return[r,a]},kR=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),nO=({x:e,y:t,width:n,height:o})=>({x:e,y:t,x2:e+n,y2:t+o}),vR=({x:e,y:t,x2:n,y2:o})=>({x:e,y:t,width:n-e,height:o-t}),V0=(e,t=[0,0])=>{var r,a;const{x:n,y:o}=lq(e)?e.internals.positionAbsolute:Of(e,t);return{x:n,y:o,width:((r=e.measured)==null?void 0:r.width)??e.width??e.initialWidth??0,height:((a=e.measured)==null?void 0:a.height)??e.height??e.initialHeight??0}},pz=(e,t=[0,0])=>{var r,a;const{x:n,y:o}=lq(e)?e.internals.positionAbsolute:Of(e,t);return{x:n,y:o,x2:n+(((r=e.measured)==null?void 0:r.width)??e.width??e.initialWidth??0),y2:o+(((a=e.measured)==null?void 0:a.height)??e.height??e.initialHeight??0)}},yJ=(e,t)=>vR(kR(nO(e),nO(t))),gf=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),o=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*o)},OU=e=>rr(e.width)&&rr(e.height)&&rr(e.x)&&rr(e.y),rr=e=>!isNaN(e)&&isFinite(e),gRe=(e,t)=>{},qf=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),Vf=({x:e,y:t},[n,o,r],a=!1,i=[1,1])=>{const s={x:(e-n)/r,y:(t-o)/r};return a?qf(s,i):s},yz=({x:e,y:t},[n,o,r])=>({x:e*r+n,y:t*r+o});function $u(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function kRe(e,t,n){if(typeof e=="string"||typeof e=="number"){const o=$u(e,n),r=$u(e,t);return{top:o,right:r,bottom:o,left:r,x:r*2,y:o*2}}if(typeof e=="object"){const o=$u(e.top??e.y??0,n),r=$u(e.bottom??e.y??0,n),a=$u(e.left??e.x??0,t),i=$u(e.right??e.x??0,t);return{top:o,right:i,bottom:r,left:a,x:a+i,y:o+r}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function vRe(e,t,n,o,r,a){const{x:i,y:s}=yz(e,[t,n,o]),{x:c,y:l}=yz({x:e.x+e.width,y:e.y+e.height},[t,n,o]),h=r-c,d=a-l;return{left:Math.floor(i),top:Math.floor(s),right:Math.floor(h),bottom:Math.floor(d)}}const uq=(e,t,n,o,r,a)=>{const i=kRe(a,t,n),s=(t-i.x)/e.width,c=(n-i.y)/e.height,l=Math.min(s,c),h=q0(l,o,r),d=e.x+e.width/2,p=e.y+e.height/2,y=t/2-d*h,g=n/2-p*h,k=vRe(e,y,g,h,t,n),x={left:Math.min(k.left-i.left,0),top:Math.min(k.top-i.top,0),right:Math.min(k.right-i.right,0),bottom:Math.min(k.bottom-i.bottom,0)};return{x:y-x.left+x.right,y:g-x.top+x.bottom,zoom:h}},kf=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function B0(e){return e!=null&&e!=="parent"}function Xa(e){var t,n;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight??0}}function mJ(e){var t,n;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight)!==void 0}function gJ(e,t={width:0,height:0},n,o,r){const a={...e},i=o.get(n);if(i){const s=i.origin||r;a.x+=i.internals.positionAbsolute.x-(t.width??0)*s[0],a.y+=i.internals.positionAbsolute.y-(t.height??0)*s[1]}return a}function FU(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function xRe(){let e,t;return{promise:new Promise((o,r)=>{e=o,t=r}),resolve:e,reject:t}}function wRe(e){return{...cJ,...e||{}}}function O2(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:o,containerBounds:r}){const{x:a,y:i}=ar(e),s=Vf({x:a-((r==null?void 0:r.left)??0),y:i-((r==null?void 0:r.top)??0)},o),{x:c,y:l}=n?qf(s,t):s;return{xSnapped:c,ySnapped:l,...s}}const hq=e=>({width:e.offsetWidth,height:e.offsetHeight}),kJ=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},MRe=["INPUT","SELECT","TEXTAREA"];function vJ(e){var o,r;const t=((r=(o=e.composedPath)==null?void 0:o.call(e))==null?void 0:r[0])||e.target;return(t==null?void 0:t.nodeType)!==1?!1:MRe.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const xJ=e=>"clientX"in e,ar=(e,t)=>{var a,i;const n=xJ(e),o=n?e.clientX:(a=e.touches)==null?void 0:a[0].clientX,r=n?e.clientY:(i=e.touches)==null?void 0:i[0].clientY;return{x:o-((t==null?void 0:t.left)??0),y:r-((t==null?void 0:t.top)??0)}},qU=(e,t,n,o,r)=>{const a=t.querySelectorAll(`.${e}`);return!a||!a.length?null:Array.from(a).map(i=>{const s=i.getBoundingClientRect();return{id:i.getAttribute("data-handleid"),type:e,nodeId:r,position:i.getAttribute("data-handlepos"),x:(s.left-n.left)/o,y:(s.top-n.top)/o,...hq(i)}})};function wJ({sourceX:e,sourceY:t,targetX:n,targetY:o,sourceControlX:r,sourceControlY:a,targetControlX:i,targetControlY:s}){const c=e*.125+r*.375+i*.375+n*.125,l=t*.125+a*.375+s*.375+o*.125,h=Math.abs(c-e),d=Math.abs(l-t);return[c,l,h,d]}function Fp(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function VU({pos:e,x1:t,y1:n,x2:o,y2:r,c:a}){switch(e){case ue.Left:return[t-Fp(t-o,a),n];case ue.Right:return[t+Fp(o-t,a),n];case ue.Top:return[t,n-Fp(n-r,a)];case ue.Bottom:return[t,n+Fp(r-n,a)]}}function xR({sourceX:e,sourceY:t,sourcePosition:n=ue.Bottom,targetX:o,targetY:r,targetPosition:a=ue.Top,curvature:i=.25}){const[s,c]=VU({pos:n,x1:e,y1:t,x2:o,y2:r,c:i}),[l,h]=VU({pos:a,x1:o,y1:r,x2:e,y2:t,c:i}),[d,p,y,g]=wJ({sourceX:e,sourceY:t,targetX:o,targetY:r,sourceControlX:s,sourceControlY:c,targetControlX:l,targetControlY:h});return[`M${e},${t} C${s},${c} ${l},${h} ${o},${r}`,d,p,y,g]}function MJ({sourceX:e,sourceY:t,targetX:n,targetY:o}){const r=Math.abs(n-e)/2,a=n<e?n+r:n-r,i=Math.abs(o-t)/2,s=o<t?o+i:o-i;return[a,s,r,i]}function bRe({sourceNode:e,targetNode:t,selected:n=!1,zIndex:o=0,elevateOnSelect:r=!1,zIndexMode:a="basic"}){if(a==="manual")return o;const i=r&&n?o+1e3:o,s=Math.max(e.parentId||r&&e.selected?e.internals.z:0,t.parentId||r&&t.selected?t.internals.z:0);return i+s}function _Re({sourceNode:e,targetNode:t,width:n,height:o,transform:r}){const a=kR(pz(e),pz(t));a.x===a.x2&&(a.x2+=1),a.y===a.y2&&(a.y2+=1);const i={x:-r[0]/r[2],y:-r[1]/r[2],width:n/r[2],height:o/r[2]};return gf(i,vR(a))>0}const CRe=({source:e,sourceHandle:t,target:n,targetHandle:o})=>`xy-edge__${e}${t||""}-${n}${o||""}`,SRe=(e,t)=>t.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),LRe=(e,t,n={})=>{if(!e.source||!e.target)return t;const o=n.getEdgeId||CRe;let r;return uJ(e)?r={...e}:r={...e,id:o(e)},SRe(r,t)?t:(r.sourceHandle===null&&delete r.sourceHandle,r.targetHandle===null&&delete r.targetHandle,t.concat(r))};function bJ({sourceX:e,sourceY:t,targetX:n,targetY:o}){const[r,a,i,s]=MJ({sourceX:e,sourceY:t,targetX:n,targetY:o});return[`M ${e},${t}L ${n},${o}`,r,a,i,s]}const BU={[ue.Left]:{x:-1,y:0},[ue.Right]:{x:1,y:0},[ue.Top]:{x:0,y:-1},[ue.Bottom]:{x:0,y:1}},NRe=({source:e,sourcePosition:t=ue.Bottom,target:n})=>t===ue.Left||t===ue.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},UU=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function IRe({source:e,sourcePosition:t=ue.Bottom,target:n,targetPosition:o=ue.Top,center:r,offset:a,stepPosition:i}){const s=BU[t],c=BU[o],l={x:e.x+s.x*a,y:e.y+s.y*a},h={x:n.x+c.x*a,y:n.y+c.y*a},d=NRe({source:l,sourcePosition:t,target:h}),p=d.x!==0?"x":"y",y=d[p];let g=[],k,x;const v={x:0,y:0},M={x:0,y:0},[,,w,b]=MJ({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(s[p]*c[p]===-1){p==="x"?(k=r.x??l.x+(h.x-l.x)*i,x=r.y??(l.y+h.y)/2):(k=r.x??(l.x+h.x)/2,x=r.y??l.y+(h.y-l.y)*i);const L=[{x:k,y:l.y},{x:k,y:h.y}],A=[{x:l.x,y:x},{x:h.x,y:x}];s[p]===y?g=p==="x"?L:A:g=p==="x"?A:L}else{const L=[{x:l.x,y:h.y}],A=[{x:h.x,y:l.y}];if(p==="x"?g=s.x===y?A:L:g=s.y===y?L:A,t===o){const $=Math.abs(e[p]-n[p]);if($<=a){const T=Math.min(a-1,a-$);s[p]===y?v[p]=(l[p]>e[p]?-1:1)*T:M[p]=(h[p]>n[p]?-1:1)*T}}if(t!==o){const $=p==="x"?"y":"x",T=s[p]===c[$],D=l[$]>h[$],F=l[$]<h[$];(s[p]===1&&(!T&&D||T&&F)||s[p]!==1&&(!T&&F||T&&D))&&(g=p==="x"?L:A)}const I={x:l.x+v.x,y:l.y+v.y},R={x:h.x+M.x,y:h.y+M.y},j=Math.max(Math.abs(I.x-g[0].x),Math.abs(R.x-g[0].x)),V=Math.max(Math.abs(I.y-g[0].y),Math.abs(R.y-g[0].y));j>=V?(k=(I.x+R.x)/2,x=g[0].y):(k=g[0].x,x=(I.y+R.y)/2)}const C={x:l.x+v.x,y:l.y+v.y},_={x:h.x+M.x,y:h.y+M.y};return[[e,...C.x!==g[0].x||C.y!==g[0].y?[C]:[],...g,..._.x!==g[g.length-1].x||_.y!==g[g.length-1].y?[_]:[],n],k,x,w,b]}function ARe(e,t,n,o){const r=Math.min(UU(e,t)/2,UU(t,n)/2,o),{x:a,y:i}=t;if(e.x===a&&a===n.x||e.y===i&&i===n.y)return`L${a} ${i}`;if(e.y===i){const l=e.x<n.x?-1:1,h=e.y<n.y?1:-1;return`L ${a+r*l},${i}Q ${a},${i} ${a},${i+r*h}`}const s=e.x<n.x?1:-1,c=e.y<n.y?-1:1;return`L ${a},${i+r*c}Q ${a},${i} ${a+r*s},${i}`}function vf({sourceX:e,sourceY:t,sourcePosition:n=ue.Bottom,targetX:o,targetY:r,targetPosition:a=ue.Top,borderRadius:i=5,centerX:s,centerY:c,offset:l=20,stepPosition:h=.5}){const[d,p,y,g,k]=IRe({source:{x:e,y:t},sourcePosition:n,target:{x:o,y:r},targetPosition:a,center:{x:s,y:c},offset:l,stepPosition:h});let x=`M${d[0].x} ${d[0].y}`;for(let v=1;v<d.length-1;v++)x+=ARe(d[v-1],d[v],d[v+1],i);return x+=`L${d[d.length-1].x} ${d[d.length-1].y}`,[x,p,y,g,k]}function WU(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function ERe(e){var d;const{sourceNode:t,targetNode:n}=e;if(!WU(t)||!WU(n))return null;const o=t.internals.handleBounds||GU(t.handles),r=n.internals.handleBounds||GU(n.handles),a=KU((o==null?void 0:o.source)??[],e.sourceHandle),i=KU(e.connectionMode===O0.Strict?(r==null?void 0:r.target)??[]:((r==null?void 0:r.target)??[]).concat((r==null?void 0:r.source)??[]),e.targetHandle);if(!a||!i)return(d=e.onError)==null||d.call(e,"008",ta.error008(a?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const s=(a==null?void 0:a.position)||ue.Bottom,c=(i==null?void 0:i.position)||ue.Top,l=Jd(t,a,s),h=Jd(n,i,c);return{sourceX:l.x,sourceY:l.y,targetX:h.x,targetY:h.y,sourcePosition:s,targetPosition:c}}function GU(e){if(!e)return null;const t=[],n=[];for(const o of e)o.width=o.width??1,o.height=o.height??1,o.type==="source"?t.push(o):o.type==="target"&&n.push(o);return{source:t,target:n}}function Jd(e,t,n=ue.Left,o=!1){const r=((t==null?void 0:t.x)??0)+e.internals.positionAbsolute.x,a=((t==null?void 0:t.y)??0)+e.internals.positionAbsolute.y,{width:i,height:s}=t??Xa(e);if(o)return{x:r+i/2,y:a+s/2};switch((t==null?void 0:t.position)??n){case ue.Top:return{x:r+i/2,y:a};case ue.Right:return{x:r+i,y:a+s/2};case ue.Bottom:return{x:r+i/2,y:a+s};case ue.Left:return{x:r,y:a+s/2}}}function KU(e,t){return e&&(t?e.find(n=>n.id===t):e[0])||null}function oO(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(o=>`${o}=${e[o]}`).join("&")}`:""}function jRe(e,{id:t,defaultColor:n,defaultMarkerStart:o,defaultMarkerEnd:r}){const a=new Set;return e.reduce((i,s)=>([s.markerStart||o,s.markerEnd||r].forEach(c=>{if(c&&typeof c=="object"){const l=oO(c,t);a.has(l)||(i.push({id:l,color:c.color||n,...c}),a.add(l))}}),i),[]).sort((i,s)=>i.id.localeCompare(s.id))}const _J=1e3,$Re=10,fq={nodeOrigin:[0,0],nodeExtent:yf,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},PRe={...fq,checkEquality:!0};function pq(e,t){const n={...e};for(const o in t)t[o]!==void 0&&(n[o]=t[o]);return n}function zRe(e,t,n){const o=pq(fq,n);for(const r of e.values())if(r.parentId)mq(r,e,t,o);else{const a=Of(r,o.nodeOrigin),i=B0(r.extent)?r.extent:o.nodeExtent,s=Qd(a,i,Xa(r));r.internals.positionAbsolute=s}}function RRe(e,t){if(!e.handles)return e.measured?t==null?void 0:t.internals.handleBounds:void 0;const n=[],o=[];for(const r of e.handles){const a={id:r.id,width:r.width??1,height:r.height??1,nodeId:e.id,x:r.x,y:r.y,position:r.position,type:r.type};r.type==="source"?n.push(a):r.type==="target"&&o.push(a)}return{source:n,target:o}}function yq(e){return e==="manual"}function rO(e,t,n,o={}){var h,d;const r=pq(PRe,o),a={i:0},i=new Map(t),s=r!=null&&r.elevateNodesOnSelect&&!yq(r.zIndexMode)?_J:0;let c=e.length>0,l=!1;t.clear(),n.clear();for(const p of e){let y=i.get(p.id);if(r.checkEquality&&p===(y==null?void 0:y.internals.userNode))t.set(p.id,y);else{const g=Of(p,r.nodeOrigin),k=B0(p.extent)?p.extent:r.nodeExtent,x=Qd(g,k,Xa(p));y={...r.defaults,...p,measured:{width:(h=p.measured)==null?void 0:h.width,height:(d=p.measured)==null?void 0:d.height},internals:{positionAbsolute:x,handleBounds:RRe(p,y),z:CJ(p,s,r.zIndexMode),userNode:p}},t.set(p.id,y)}(y.measured===void 0||y.measured.width===void 0||y.measured.height===void 0)&&!y.hidden&&(c=!1),p.parentId&&mq(y,t,n,o,a),l||(l=p.selected??!1)}return{nodesInitialized:c,hasSelectedNodes:l}}function TRe(e,t){if(!e.parentId)return;const n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function mq(e,t,n,o,r){const{elevateNodesOnSelect:a,nodeOrigin:i,nodeExtent:s,zIndexMode:c}=pq(fq,o),l=e.parentId,h=t.get(l);if(!h){console.warn(`Parent node ${l} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}TRe(e,n),r&&!h.parentId&&h.internals.rootParentIndex===void 0&&c==="auto"&&(h.internals.rootParentIndex=++r.i,h.internals.z=h.internals.z+r.i*$Re),r&&h.internals.rootParentIndex!==void 0&&(r.i=h.internals.rootParentIndex);const d=a&&!yq(c)?_J:0,{x:p,y,z:g}=DRe(e,h,i,s,d,c),{positionAbsolute:k}=e.internals,x=p!==k.x||y!==k.y;(x||g!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:x?{x:p,y}:k,z:g}})}function CJ(e,t,n){const o=rr(e.zIndex)?e.zIndex:0;return yq(n)?o:o+(e.selected?t:0)}function DRe(e,t,n,o,r,a){const{x:i,y:s}=t.internals.positionAbsolute,c=Xa(e),l=Of(e,n),h=B0(e.extent)?Qd(l,e.extent,c):l;let d=Qd({x:i+h.x,y:s+h.y},o,c);e.extent==="parent"&&(d=fJ(d,c,t));const p=CJ(e,r,a),y=t.internals.z??0;return{x:d.x,y:d.y,z:y>=p?y+1:p}}function gq(e,t,n,o=[0,0]){var i;const r=[],a=new Map;for(const s of e){const c=t.get(s.parentId);if(!c)continue;const l=((i=a.get(s.parentId))==null?void 0:i.expandedRect)??V0(c),h=yJ(l,s.rect);a.set(s.parentId,{expandedRect:h,parent:c})}return a.size>0&&a.forEach(({expandedRect:s,parent:c},l)=>{var w;const h=c.internals.positionAbsolute,d=Xa(c),p=c.origin??o,y=s.x<h.x?Math.round(Math.abs(h.x-s.x)):0,g=s.y<h.y?Math.round(Math.abs(h.y-s.y)):0,k=Math.max(d.width,Math.round(s.width)),x=Math.max(d.height,Math.round(s.height)),v=(k-d.width)*p[0],M=(x-d.height)*p[1];(y>0||g>0||v||M)&&(r.push({id:l,type:"position",position:{x:c.position.x-y+v,y:c.position.y-g+M}}),(w=n.get(l))==null||w.forEach(b=>{e.some(C=>C.id===b.id)||r.push({id:b.id,type:"position",position:{x:b.position.x+y,y:b.position.y+g}})})),(d.width<s.width||d.height<s.height||y||g)&&r.push({id:l,type:"dimensions",setAttributes:!0,dimensions:{width:k+(y?p[0]*y-v:0),height:x+(g?p[1]*g-M:0)}})}),r}function HRe(e,t,n,o,r,a,i){const s=o==null?void 0:o.querySelector(".xyflow__viewport");let c=!1;if(!s)return{changes:[],updatedInternals:c};const l=[],h=window.getComputedStyle(s),{m22:d}=new window.DOMMatrixReadOnly(h.transform),p=[];for(const y of e.values()){const g=t.get(y.id);if(!g)continue;if(g.hidden){t.set(g.id,{...g,internals:{...g.internals,handleBounds:void 0}}),c=!0;continue}const k=hq(y.nodeElement),x=g.measured.width!==k.width||g.measured.height!==k.height;if(!!(k.width&&k.height&&(x||!g.internals.handleBounds||y.force))){const M=y.nodeElement.getBoundingClientRect(),w=B0(g.extent)?g.extent:a;let{positionAbsolute:b}=g.internals;g.parentId&&g.extent==="parent"?b=fJ(b,k,t.get(g.parentId)):w&&(b=Qd(b,w,k));const C={...g,measured:k,internals:{...g.internals,positionAbsolute:b,handleBounds:{source:qU("source",y.nodeElement,M,d,g.id),target:qU("target",y.nodeElement,M,d,g.id)}}};t.set(g.id,C),g.parentId&&mq(C,t,n,{nodeOrigin:r,zIndexMode:i}),c=!0,x&&(l.push({id:g.id,type:"dimensions",dimensions:k}),g.expandParent&&g.parentId&&p.push({id:g.id,parentId:g.parentId,rect:V0(C,r)}))}}if(p.length>0){const y=gq(p,t,n,r);l.push(...y)}return{changes:l,updatedInternals:c}}async function ORe({delta:e,panZoom:t,transform:n,translateExtent:o,width:r,height:a}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const i=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[r,a]],o),s=!!i&&(i.x!==n[0]||i.y!==n[1]||i.k!==n[2]);return Promise.resolve(s)}function XU(e,t,n,o,r,a){let i=r;const s=o.get(i)||new Map;o.set(i,s.set(n,t)),i=`${r}-${e}`;const c=o.get(i)||new Map;if(o.set(i,c.set(n,t)),a){i=`${r}-${e}-${a}`;const l=o.get(i)||new Map;o.set(i,l.set(n,t))}}function SJ(e,t,n){e.clear(),t.clear();for(const o of n){const{source:r,target:a,sourceHandle:i=null,targetHandle:s=null}=o,c={edgeId:o.id,source:r,target:a,sourceHandle:i,targetHandle:s},l=`${r}-${i}--${a}-${s}`,h=`${a}-${s}--${r}-${i}`;XU("source",c,h,e,r,i),XU("target",c,l,e,a,s),t.set(o.id,o)}}function LJ(e,t){if(!e.parentId)return!1;const n=t.get(e.parentId);return n?n.selected?!0:LJ(n,t):!1}function ZU(e,t,n){var r;let o=e;do{if((r=o==null?void 0:o.matches)!=null&&r.call(o,t))return!0;if(o===n)return!1;o=o==null?void 0:o.parentElement}while(o);return!1}function FRe(e,t,n,o){const r=new Map;for(const[a,i]of e)if((i.selected||i.id===o)&&(!i.parentId||!LJ(i,e))&&(i.draggable||t&&typeof i.draggable>"u")){const s=e.get(a);s&&r.set(a,{id:a,position:s.position||{x:0,y:0},distance:{x:n.x-s.internals.positionAbsolute.x,y:n.y-s.internals.positionAbsolute.y},extent:s.extent,parentId:s.parentId,origin:s.origin,expandParent:s.expandParent,internals:{positionAbsolute:s.internals.positionAbsolute||{x:0,y:0}},measured:{width:s.measured.width??0,height:s.measured.height??0}})}return r}function JT({nodeId:e,dragItems:t,nodeLookup:n,dragging:o=!0}){var i,s,c;const r=[];for(const[l,h]of t){const d=(i=n.get(l))==null?void 0:i.internals.userNode;d&&r.push({...d,position:h.position,dragging:o})}if(!e)return[r[0],r];const a=(s=n.get(e))==null?void 0:s.internals.userNode;return[a?{...a,position:((c=t.get(e))==null?void 0:c.position)||a.position,dragging:o}:r[0],r]}function qRe({dragItems:e,snapGrid:t,x:n,y:o}){const r=e.values().next().value;if(!r)return null;const a={x:n-r.distance.x,y:o-r.distance.y},i=qf(a,t);return{x:i.x-a.x,y:i.y-a.y}}function VRe({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:o,onDragStop:r}){let a={x:null,y:null},i=0,s=new Map,c=!1,l={x:0,y:0},h=null,d=!1,p=null,y=!1,g=!1,k=null;function x({noDragClassName:M,handleSelector:w,domNode:b,isSelectable:C,nodeId:_,nodeClickDistance:S=0}){p=fo(b);function L({x:j,y:V}){const{nodeLookup:$,nodeExtent:T,snapGrid:D,snapToGrid:F,nodeOrigin:z,onNodeDrag:E,onSelectionDrag:N,onError:W,updateNodePositions:O}=t();a={x:j,y:V};let P=!1;const Y=s.size>1,Z=Y&&T?nO(Ff(s)):null,te=Y&&F?qRe({dragItems:s,snapGrid:D,x:j,y:V}):null;for(const[ie,re]of s){if(!$.has(ie))continue;let ae={x:j-re.distance.x,y:V-re.distance.y};F&&(ae=te?{x:Math.round(ae.x+te.x),y:Math.round(ae.y+te.y)}:qf(ae,D));let se=null;if(Y&&T&&!re.extent&&Z){const{positionAbsolute:ge}=re.internals,Pe=ge.x-Z.x+T[0][0],Be=ge.x+re.measured.width-Z.x2+T[1][0],De=ge.y-Z.y+T[0][1],pe=ge.y+re.measured.height-Z.y2+T[1][1];se=[[Pe,De],[Be,pe]]}const{position:ve,positionAbsolute:ke}=hJ({nodeId:ie,nextPosition:ae,nodeLookup:$,nodeExtent:se||T,nodeOrigin:z,onError:W});P=P||re.position.x!==ve.x||re.position.y!==ve.y,re.position=ve,re.internals.positionAbsolute=ke}if(g=g||P,!!P&&(O(s,!0),k&&(o||E||!_&&N))){const[ie,re]=JT({nodeId:_,dragItems:s,nodeLookup:$});o==null||o(k,s,ie,re),E==null||E(k,ie,re),_||N==null||N(k,re)}}async function A(){if(!h)return;const{transform:j,panBy:V,autoPanSpeed:$,autoPanOnNodeDrag:T}=t();if(!T){c=!1,cancelAnimationFrame(i);return}const[D,F]=pJ(l,h,$);(D!==0||F!==0)&&(a.x=(a.x??0)-D/j[2],a.y=(a.y??0)-F/j[2],await V({x:D,y:F})&&L(a)),i=requestAnimationFrame(A)}function I(j){var Y;const{nodeLookup:V,multiSelectionActive:$,nodesDraggable:T,transform:D,snapGrid:F,snapToGrid:z,selectNodesOnDrag:E,onNodeDragStart:N,onSelectionDragStart:W,unselectNodesAndEdges:O}=t();d=!0,(!E||!C)&&!$&&_&&((Y=V.get(_))!=null&&Y.selected||O()),C&&E&&_&&(e==null||e(_));const P=O2(j.sourceEvent,{transform:D,snapGrid:F,snapToGrid:z,containerBounds:h});if(a=P,s=FRe(V,T,P,_),s.size>0&&(n||N||!_&&W)){const[Z,te]=JT({nodeId:_,dragItems:s,nodeLookup:V});n==null||n(j.sourceEvent,s,Z,te),N==null||N(j.sourceEvent,Z,te),_||W==null||W(j.sourceEvent,te)}}const R=BQ().clickDistance(S).on("start",j=>{const{domNode:V,nodeDragThreshold:$,transform:T,snapGrid:D,snapToGrid:F}=t();h=(V==null?void 0:V.getBoundingClientRect())||null,y=!1,g=!1,k=j.sourceEvent,$===0&&I(j),a=O2(j.sourceEvent,{transform:T,snapGrid:D,snapToGrid:F,containerBounds:h}),l=ar(j.sourceEvent,h)}).on("drag",j=>{const{autoPanOnNodeDrag:V,transform:$,snapGrid:T,snapToGrid:D,nodeDragThreshold:F,nodeLookup:z}=t(),E=O2(j.sourceEvent,{transform:$,snapGrid:T,snapToGrid:D,containerBounds:h});if(k=j.sourceEvent,(j.sourceEvent.type==="touchmove"&&j.sourceEvent.touches.length>1||_&&!z.has(_))&&(y=!0),!y){if(!c&&V&&d&&(c=!0,A()),!d){const N=ar(j.sourceEvent,h),W=N.x-l.x,O=N.y-l.y;Math.sqrt(W*W+O*O)>F&&I(j)}(a.x!==E.xSnapped||a.y!==E.ySnapped)&&s&&d&&(l=ar(j.sourceEvent,h),L(E))}}).on("end",j=>{if(!(!d||y)&&(c=!1,d=!1,cancelAnimationFrame(i),s.size>0)){const{nodeLookup:V,updateNodePositions:$,onNodeDragStop:T,onSelectionDragStop:D}=t();if(g&&($(s,!1),g=!1),r||T||!_&&D){const[F,z]=JT({nodeId:_,dragItems:s,nodeLookup:V,dragging:!1});r==null||r(j.sourceEvent,s,F,z),T==null||T(j.sourceEvent,F,z),_||D==null||D(j.sourceEvent,z)}}}).filter(j=>{const V=j.target;return!j.button&&(!M||!ZU(V,`.${M}`,b))&&(!w||ZU(V,w,b))});p.call(R)}function v(){p==null||p.on(".drag",null)}return{update:x,destroy:v}}function BRe(e,t,n){const o=[],r={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const a of t.values())gf(r,V0(a))>0&&o.push(a);return o}const URe=250;function WRe(e,t,n,o){var s,c;let r=[],a=1/0;const i=BRe(e,n,t+URe);for(const l of i){const h=[...((s=l.internals.handleBounds)==null?void 0:s.source)??[],...((c=l.internals.handleBounds)==null?void 0:c.target)??[]];for(const d of h){if(o.nodeId===d.nodeId&&o.type===d.type&&o.id===d.id)continue;const{x:p,y}=Jd(l,d,d.position,!0),g=Math.sqrt(Math.pow(p-e.x,2)+Math.pow(y-e.y,2));g>t||(g<a?(r=[{...d,x:p,y}],a=g):g===a&&r.push({...d,x:p,y}))}}if(!r.length)return null;if(r.length>1){const l=o.type==="source"?"target":"source";return r.find(h=>h.type===l)??r[0]}return r[0]}function NJ(e,t,n,o,r,a=!1){var l,h,d;const i=o.get(e);if(!i)return null;const s=r==="strict"?(l=i.internals.handleBounds)==null?void 0:l[t]:[...((h=i.internals.handleBounds)==null?void 0:h.source)??[],...((d=i.internals.handleBounds)==null?void 0:d.target)??[]],c=(n?s==null?void 0:s.find(p=>p.id===n):s==null?void 0:s[0])??null;return c&&a?{...c,...Jd(i,c,c.position,!0)}:c}function IJ(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function GRe(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}const AJ=()=>!0;function KRe(e,{connectionMode:t,connectionRadius:n,handleId:o,nodeId:r,edgeUpdaterType:a,isTarget:i,domNode:s,nodeLookup:c,lib:l,autoPanOnConnect:h,flowId:d,panBy:p,cancelConnection:y,onConnectStart:g,onConnect:k,onConnectEnd:x,isValidConnection:v=AJ,onReconnectEnd:M,updateConnection:w,getTransform:b,getFromHandle:C,autoPanSpeed:_,dragThreshold:S=1,handleDomNode:L}){const A=kJ(e.target);let I=0,R;const{x:j,y:V}=ar(e),$=IJ(a,L),T=s==null?void 0:s.getBoundingClientRect();let D=!1;if(!T||!$)return;const F=NJ(r,$,o,c,t);if(!F)return;let z=ar(e,T),E=!1,N=null,W=!1,O=null;function P(){if(!h||!T)return;const[ve,ke]=pJ(z,T,_);p({x:ve,y:ke}),I=requestAnimationFrame(P)}const Y={...F,nodeId:r,type:$,position:F.position},Z=c.get(r);let ie={inProgress:!0,isValid:null,from:Jd(Z,Y,ue.Left,!0),fromHandle:Y,fromPosition:Y.position,fromNode:Z,to:z,toHandle:null,toPosition:DU[Y.position],toNode:null,pointer:z};function re(){D=!0,w(ie),g==null||g(e,{nodeId:r,handleId:o,handleType:$})}S===0&&re();function ae(ve){if(!D){const{x:pe,y:me}=ar(ve),Ae=pe-j,Ue=me-V;if(!(Ae*Ae+Ue*Ue>S*S))return;re()}if(!C()||!Y){se(ve);return}const ke=b();z=ar(ve,T),R=WRe(Vf(z,ke,!1,[1,1]),n,c,Y),E||(P(),E=!0);const ge=EJ(ve,{handle:R,connectionMode:t,fromNodeId:r,fromHandleId:o,fromType:i?"target":"source",isValidConnection:v,doc:A,lib:l,flowId:d,nodeLookup:c});O=ge.handleDomNode,N=ge.connection,W=GRe(!!R,ge.isValid);const Pe=c.get(r),Be=Pe?Jd(Pe,Y,ue.Left,!0):ie.from,De={...ie,from:Be,isValid:W,to:ge.toHandle&&W?yz({x:ge.toHandle.x,y:ge.toHandle.y},ke):z,toHandle:ge.toHandle,toPosition:W&&ge.toHandle?ge.toHandle.position:DU[Y.position],toNode:ge.toHandle?c.get(ge.toHandle.nodeId):null,pointer:z};w(De),ie=De}function se(ve){if(!("touches"in ve&&ve.touches.length>0)){if(D){(R||O)&&N&&W&&(k==null||k(N));const{inProgress:ke,...ge}=ie,Pe={...ge,toPosition:ie.toHandle?ie.toPosition:null};x==null||x(ve,Pe),a&&(M==null||M(ve,Pe))}y(),cancelAnimationFrame(I),E=!1,W=!1,N=null,O=null,A.removeEventListener("mousemove",ae),A.removeEventListener("mouseup",se),A.removeEventListener("touchmove",ae),A.removeEventListener("touchend",se)}}A.addEventListener("mousemove",ae),A.addEventListener("mouseup",se),A.addEventListener("touchmove",ae),A.addEventListener("touchend",se)}function EJ(e,{handle:t,connectionMode:n,fromNodeId:o,fromHandleId:r,fromType:a,doc:i,lib:s,flowId:c,isValidConnection:l=AJ,nodeLookup:h}){const d=a==="target",p=t?i.querySelector(`.${s}-flow__handle[data-id="${c}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:y,y:g}=ar(e),k=i.elementFromPoint(y,g),x=k!=null&&k.classList.contains(`${s}-flow__handle`)?k:p,v={handleDomNode:x,isValid:!1,connection:null,toHandle:null};if(x){const M=IJ(void 0,x),w=x.getAttribute("data-nodeid"),b=x.getAttribute("data-handleid"),C=x.classList.contains("connectable"),_=x.classList.contains("connectableend");if(!w||!M)return v;const S={source:d?w:o,sourceHandle:d?b:r,target:d?o:w,targetHandle:d?r:b};v.connection=S;const A=C&&_&&(n===O0.Strict?d&&M==="source"||!d&&M==="target":w!==o||b!==r);v.isValid=A&&l(S),v.toHandle=NJ(w,M,b,h,n,!0)}return v}const aO={onPointerDown:KRe,isValid:EJ};function XRe({domNode:e,panZoom:t,getTransform:n,getViewScale:o}){const r=fo(e);function a({translateExtent:s,width:c,height:l,zoomStep:h=1,pannable:d=!0,zoomable:p=!0,inversePan:y=!1}){const g=w=>{if(w.sourceEvent.type!=="wheel"||!t)return;const b=n(),C=w.sourceEvent.ctrlKey&&kf()?10:1,_=-w.sourceEvent.deltaY*(w.sourceEvent.deltaMode===1?.05:w.sourceEvent.deltaMode?1:.002)*h,S=b[2]*Math.pow(2,_*C);t.scaleTo(S)};let k=[0,0];const x=w=>{(w.sourceEvent.type==="mousedown"||w.sourceEvent.type==="touchstart")&&(k=[w.sourceEvent.clientX??w.sourceEvent.touches[0].clientX,w.sourceEvent.clientY??w.sourceEvent.touches[0].clientY])},v=w=>{const b=n();if(w.sourceEvent.type!=="mousemove"&&w.sourceEvent.type!=="touchmove"||!t)return;const C=[w.sourceEvent.clientX??w.sourceEvent.touches[0].clientX,w.sourceEvent.clientY??w.sourceEvent.touches[0].clientY],_=[C[0]-k[0],C[1]-k[1]];k=C;const S=o()*Math.max(b[2],Math.log(b[2]))*(y?-1:1),L={x:b[0]-_[0]*S,y:b[1]-_[1]*S},A=[[0,0],[c,l]];t.setViewportConstrained({x:L.x,y:L.y,zoom:b[2]},A,s)},M=iJ().on("start",x).on("zoom",d?v:null).on("zoom.wheel",p?g:null);r.call(M,{})}function i(){r.on("zoom",null)}return{update:a,destroy:i,pointer:er}}const wR=e=>({x:e.x,y:e.y,zoom:e.k}),eD=({x:e,y:t,zoom:n})=>gR.translate(e,t).scale(n),a0=(e,t)=>e.target.closest(`.${t}`),jJ=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),ZRe=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,tD=(e,t=0,n=ZRe,o=()=>{})=>{const r=typeof t=="number"&&t>0;return r||o(),r?e.transition().duration(t).ease(n).on("end",o):e},$J=e=>{const t=e.ctrlKey&&kf()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function YRe({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:o,panOnScrollMode:r,panOnScrollSpeed:a,zoomOnPinch:i,onPanZoomStart:s,onPanZoom:c,onPanZoomEnd:l}){return h=>{if(a0(h,t))return h.ctrlKey&&h.preventDefault(),!1;h.preventDefault(),h.stopImmediatePropagation();const d=n.property("__zoom").k||1;if(h.ctrlKey&&i){const x=er(h),v=$J(h),M=d*Math.pow(2,v);o.scaleTo(n,M,x,h);return}const p=h.deltaMode===1?20:1;let y=r===Bd.Vertical?0:h.deltaX*p,g=r===Bd.Horizontal?0:h.deltaY*p;!kf()&&h.shiftKey&&r!==Bd.Vertical&&(y=h.deltaY*p,g=0),o.translateBy(n,-(y/d)*a,-(g/d)*a,{internal:!0});const k=wR(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(c==null||c(h,k),e.panScrollTimeout=setTimeout(()=>{l==null||l(h,k),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,s==null||s(h,k))}}function QRe({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(o,r){const a=o.type==="wheel",i=!t&&a&&!o.ctrlKey,s=a0(o,e);if(o.ctrlKey&&a&&s&&o.preventDefault(),i||s)return null;o.preventDefault(),n.call(this,o,r)}}function JRe({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return o=>{var a,i,s;if((a=o.sourceEvent)!=null&&a.internal)return;const r=wR(o.transform);e.mouseButton=((i=o.sourceEvent)==null?void 0:i.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=r,((s=o.sourceEvent)==null?void 0:s.type)==="mousedown"&&t(!0),n&&(n==null||n(o.sourceEvent,r))}}function eTe({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:o,onPanZoom:r}){return a=>{var i,s;e.usedRightMouseButton=!!(n&&jJ(t,e.mouseButton??0)),(i=a.sourceEvent)!=null&&i.sync||o([a.transform.x,a.transform.y,a.transform.k]),r&&!((s=a.sourceEvent)!=null&&s.internal)&&(r==null||r(a.sourceEvent,wR(a.transform)))}}function tTe({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:o,onPanZoomEnd:r,onPaneContextMenu:a}){return i=>{var s;if(!((s=i.sourceEvent)!=null&&s.internal)&&(e.isZoomingOrPanning=!1,a&&jJ(t,e.mouseButton??0)&&!e.usedRightMouseButton&&i.sourceEvent&&a(i.sourceEvent),e.usedRightMouseButton=!1,o(!1),r)){const c=wR(i.transform);e.prevViewport=c,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{r==null||r(i.sourceEvent,c)},n?150:0)}}}function nTe({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:o,panOnScroll:r,zoomOnDoubleClick:a,userSelectionActive:i,noWheelClassName:s,noPanClassName:c,lib:l,connectionInProgress:h}){return d=>{var x;const p=e||t,y=n&&d.ctrlKey,g=d.type==="wheel";if(d.button===1&&d.type==="mousedown"&&(a0(d,`${l}-flow__node`)||a0(d,`${l}-flow__edge`)))return!0;if(!o&&!p&&!r&&!a&&!n||i||h&&!g||a0(d,s)&&g||a0(d,c)&&(!g||r&&g&&!e)||!n&&d.ctrlKey&&g)return!1;if(!n&&d.type==="touchstart"&&((x=d.touches)==null?void 0:x.length)>1)return d.preventDefault(),!1;if(!p&&!r&&!y&&g||!o&&(d.type==="mousedown"||d.type==="touchstart")||Array.isArray(o)&&!o.includes(d.button)&&d.type==="mousedown")return!1;const k=Array.isArray(o)&&o.includes(d.button)||!d.button||d.button<=1;return(!d.ctrlKey||g)&&k}}function oTe({domNode:e,minZoom:t,maxZoom:n,translateExtent:o,viewport:r,onPanZoom:a,onPanZoomStart:i,onPanZoomEnd:s,onDraggingChange:c}){const l={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},h=e.getBoundingClientRect(),d=iJ().scaleExtent([t,n]).translateExtent(o),p=fo(e).call(d);M({x:r.x,y:r.y,zoom:q0(r.zoom,t,n)},[[0,0],[h.width,h.height]],o);const y=p.on("wheel.zoom"),g=p.on("dblclick.zoom");d.wheelDelta($J);function k(R,j){return p?new Promise(V=>{d==null||d.interpolate((j==null?void 0:j.interpolate)==="linear"?H2:wP).transform(tD(p,j==null?void 0:j.duration,j==null?void 0:j.ease,()=>V(!0)),R)}):Promise.resolve(!1)}function x({noWheelClassName:R,noPanClassName:j,onPaneContextMenu:V,userSelectionActive:$,panOnScroll:T,panOnDrag:D,panOnScrollMode:F,panOnScrollSpeed:z,preventScrolling:E,zoomOnPinch:N,zoomOnScroll:W,zoomOnDoubleClick:O,zoomActivationKeyPressed:P,lib:Y,onTransformChange:Z,connectionInProgress:te,paneClickDistance:ie,selectionOnDrag:re}){$&&!l.isZoomingOrPanning&&v();const ae=T&&!P&&!$;d.clickDistance(re?1/0:!rr(ie)||ie<0?0:ie);const se=ae?YRe({zoomPanValues:l,noWheelClassName:R,d3Selection:p,d3Zoom:d,panOnScrollMode:F,panOnScrollSpeed:z,zoomOnPinch:N,onPanZoomStart:i,onPanZoom:a,onPanZoomEnd:s}):QRe({noWheelClassName:R,preventScrolling:E,d3ZoomHandler:y});if(p.on("wheel.zoom",se,{passive:!1}),!$){const ke=JRe({zoomPanValues:l,onDraggingChange:c,onPanZoomStart:i});d.on("start",ke);const ge=eTe({zoomPanValues:l,panOnDrag:D,onPaneContextMenu:!!V,onPanZoom:a,onTransformChange:Z});d.on("zoom",ge);const Pe=tTe({zoomPanValues:l,panOnDrag:D,panOnScroll:T,onPaneContextMenu:V,onPanZoomEnd:s,onDraggingChange:c});d.on("end",Pe)}const ve=nTe({zoomActivationKeyPressed:P,panOnDrag:D,zoomOnScroll:W,panOnScroll:T,zoomOnDoubleClick:O,zoomOnPinch:N,userSelectionActive:$,noPanClassName:j,noWheelClassName:R,lib:Y,connectionInProgress:te});d.filter(ve),O?p.on("dblclick.zoom",g):p.on("dblclick.zoom",null)}function v(){d.on("zoom",null)}async function M(R,j,V){const $=eD(R),T=d==null?void 0:d.constrain()($,j,V);return T&&await k(T),new Promise(D=>D(T))}async function w(R,j){const V=eD(R);return await k(V,j),new Promise($=>$(V))}function b(R){if(p){const j=eD(R),V=p.property("__zoom");(V.k!==R.zoom||V.x!==R.x||V.y!==R.y)&&(d==null||d.transform(p,j,null,{sync:!0}))}}function C(){const R=p?aJ(p.node()):{x:0,y:0,k:1};return{x:R.x,y:R.y,zoom:R.k}}function _(R,j){return p?new Promise(V=>{d==null||d.interpolate((j==null?void 0:j.interpolate)==="linear"?H2:wP).scaleTo(tD(p,j==null?void 0:j.duration,j==null?void 0:j.ease,()=>V(!0)),R)}):Promise.resolve(!1)}function S(R,j){return p?new Promise(V=>{d==null||d.interpolate((j==null?void 0:j.interpolate)==="linear"?H2:wP).scaleBy(tD(p,j==null?void 0:j.duration,j==null?void 0:j.ease,()=>V(!0)),R)}):Promise.resolve(!1)}function L(R){d==null||d.scaleExtent(R)}function A(R){d==null||d.translateExtent(R)}function I(R){const j=!rr(R)||R<0?0:R;d==null||d.clickDistance(j)}return{update:x,destroy:v,setViewport:w,setViewportConstrained:M,getViewport:C,scaleTo:_,scaleBy:S,setScaleExtent:L,setTranslateExtent:A,syncViewport:b,setClickDistance:I}}var Ji;(function(e){e.Line="line",e.Handle="handle"})(Ji||(Ji={}));function rTe({width:e,prevWidth:t,height:n,prevHeight:o,affectsX:r,affectsY:a}){const i=e-t,s=n-o,c=[i>0?1:i<0?-1:0,s>0?1:s<0?-1:0];return i&&r&&(c[0]=c[0]*-1),s&&a&&(c[1]=c[1]*-1),c}function YU(e){const t=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),o=e.includes("left"),r=e.includes("top");return{isHorizontal:t,isVertical:n,affectsX:o,affectsY:r}}function pi(e,t){return Math.max(0,t-e)}function yi(e,t){return Math.max(0,e-t)}function qp(e,t,n){return Math.max(0,t-e,e-n)}function QU(e,t){return e?!t:t}function aTe(e,t,n,o,r,a,i,s){let{affectsX:c,affectsY:l}=t;const{isHorizontal:h,isVertical:d}=t,p=h&&d,{xSnapped:y,ySnapped:g}=n,{minWidth:k,maxWidth:x,minHeight:v,maxHeight:M}=o,{x:w,y:b,width:C,height:_,aspectRatio:S}=e;let L=Math.floor(h?y-e.pointerX:0),A=Math.floor(d?g-e.pointerY:0);const I=C+(c?-L:L),R=_+(l?-A:A),j=-a[0]*C,V=-a[1]*_;let $=qp(I,k,x),T=qp(R,v,M);if(i){let z=0,E=0;c&&L<0?z=pi(w+L+j,i[0][0]):!c&&L>0&&(z=yi(w+I+j,i[1][0])),l&&A<0?E=pi(b+A+V,i[0][1]):!l&&A>0&&(E=yi(b+R+V,i[1][1])),$=Math.max($,z),T=Math.max(T,E)}if(s){let z=0,E=0;c&&L>0?z=yi(w+L,s[0][0]):!c&&L<0&&(z=pi(w+I,s[1][0])),l&&A>0?E=yi(b+A,s[0][1]):!l&&A<0&&(E=pi(b+R,s[1][1])),$=Math.max($,z),T=Math.max(T,E)}if(r){if(h){const z=qp(I/S,v,M)*S;if($=Math.max($,z),i){let E=0;!c&&!l||c&&!l&&p?E=yi(b+V+I/S,i[1][1])*S:E=pi(b+V+(c?L:-L)/S,i[0][1])*S,$=Math.max($,E)}if(s){let E=0;!c&&!l||c&&!l&&p?E=pi(b+I/S,s[1][1])*S:E=yi(b+(c?L:-L)/S,s[0][1])*S,$=Math.max($,E)}}if(d){const z=qp(R*S,k,x)/S;if(T=Math.max(T,z),i){let E=0;!c&&!l||l&&!c&&p?E=yi(w+R*S+j,i[1][0])/S:E=pi(w+(l?A:-A)*S+j,i[0][0])/S,T=Math.max(T,E)}if(s){let E=0;!c&&!l||l&&!c&&p?E=pi(w+R*S,s[1][0])/S:E=yi(w+(l?A:-A)*S,s[0][0])/S,T=Math.max(T,E)}}}A=A+(A<0?T:-T),L=L+(L<0?$:-$),r&&(p?I>R*S?A=(QU(c,l)?-L:L)/S:L=(QU(c,l)?-A:A)*S:h?(A=L/S,l=c):(L=A*S,c=l));const D=c?w+L:w,F=l?b+A:b;return{width:C+(c?-L:L),height:_+(l?-A:A),x:a[0]*L*(c?-1:1)+D,y:a[1]*A*(l?-1:1)+F}}const PJ={width:0,height:0,x:0,y:0},iTe={...PJ,pointerX:0,pointerY:0,aspectRatio:1};function sTe(e){return[[0,0],[e.measured.width,e.measured.height]]}function cTe(e,t,n){const o=t.position.x+e.position.x,r=t.position.y+e.position.y,a=e.measured.width??0,i=e.measured.height??0,s=n[0]*a,c=n[1]*i;return[[o-s,r-c],[o+a-s,r+i-c]]}function lTe({domNode:e,nodeId:t,getStoreItems:n,onChange:o,onEnd:r}){const a=fo(e);let i={controlDirection:YU("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function s({controlPosition:l,boundaries:h,keepAspectRatio:d,resizeDirection:p,onResizeStart:y,onResize:g,onResizeEnd:k,shouldResize:x}){let v={...PJ},M={...iTe};i={boundaries:h,resizeDirection:p,keepAspectRatio:d,controlDirection:YU(l)};let w,b=null,C=[],_,S,L,A=!1;const I=BQ().on("start",R=>{const{nodeLookup:j,transform:V,snapGrid:$,snapToGrid:T,nodeOrigin:D,paneDomNode:F}=n();if(w=j.get(t),!w)return;b=(F==null?void 0:F.getBoundingClientRect())??null;const{xSnapped:z,ySnapped:E}=O2(R.sourceEvent,{transform:V,snapGrid:$,snapToGrid:T,containerBounds:b});v={width:w.measured.width??0,height:w.measured.height??0,x:w.position.x??0,y:w.position.y??0},M={...v,pointerX:z,pointerY:E,aspectRatio:v.width/v.height},_=void 0,w.parentId&&(w.extent==="parent"||w.expandParent)&&(_=j.get(w.parentId),S=_&&w.extent==="parent"?sTe(_):void 0),C=[],L=void 0;for(const[N,W]of j)if(W.parentId===t&&(C.push({id:N,position:{...W.position},extent:W.extent}),W.extent==="parent"||W.expandParent)){const O=cTe(W,w,W.origin??D);L?L=[[Math.min(O[0][0],L[0][0]),Math.min(O[0][1],L[0][1])],[Math.max(O[1][0],L[1][0]),Math.max(O[1][1],L[1][1])]]:L=O}y==null||y(R,{...v})}).on("drag",R=>{const{transform:j,snapGrid:V,snapToGrid:$,nodeOrigin:T}=n(),D=O2(R.sourceEvent,{transform:j,snapGrid:V,snapToGrid:$,containerBounds:b}),F=[];if(!w)return;const{x:z,y:E,width:N,height:W}=v,O={},P=w.origin??T,{width:Y,height:Z,x:te,y:ie}=aTe(M,i.controlDirection,D,i.boundaries,i.keepAspectRatio,P,S,L),re=Y!==N,ae=Z!==W,se=te!==z&&re,ve=ie!==E&&ae;if(!se&&!ve&&!re&&!ae)return;if((se||ve||P[0]===1||P[1]===1)&&(O.x=se?te:v.x,O.y=ve?ie:v.y,v.x=O.x,v.y=O.y,C.length>0)){const Be=te-z,De=ie-E;for(const pe of C)pe.position={x:pe.position.x-Be+P[0]*(Y-N),y:pe.position.y-De+P[1]*(Z-W)},F.push(pe)}if((re||ae)&&(O.width=re&&(!i.resizeDirection||i.resizeDirection==="horizontal")?Y:v.width,O.height=ae&&(!i.resizeDirection||i.resizeDirection==="vertical")?Z:v.height,v.width=O.width,v.height=O.height),_&&w.expandParent){const Be=P[0]*(O.width??0);O.x&&O.x<Be&&(v.x=Be,M.x=M.x-(O.x-Be));const De=P[1]*(O.height??0);O.y&&O.y<De&&(v.y=De,M.y=M.y-(O.y-De))}const ke=rTe({width:v.width,prevWidth:N,height:v.height,prevHeight:W,affectsX:i.controlDirection.affectsX,affectsY:i.controlDirection.affectsY}),ge={...v,direction:ke};(x==null?void 0:x(R,ge))!==!1&&(A=!0,g==null||g(R,ge),o(O,F))}).on("end",R=>{A&&(k==null||k(R,{...v}),r==null||r({...v}),A=!1)});a.call(I)}function c(){a.on(".drag",null)}return{update:s,destroy:c}}var zJ={exports:{}},RJ={},TJ={exports:{}},DJ={};/**
8447
8447
  * @license React
8448
8448
  * use-sync-external-store-shim.production.js
8449
8449
  *
@@ -8466,7 +8466,7 @@ Error generating stack: `+a.message+`
8466
8466
  +`).split(`
8467
8467
  `)),h=l.reduce((d,p)=>d.concat(...p),[]);return[l,h]}return[[],[]]},[e]);return m.useEffect(()=>{const c=(t==null?void 0:t.target)??aW,l=(t==null?void 0:t.actInsideInputWithModifier)??!0;if(e!==null){const h=y=>{var x,v;if(r.current=y.ctrlKey||y.metaKey||y.shiftKey||y.altKey,(!r.current||r.current&&!l)&&vJ(y))return!1;const k=sW(y.code,s);if(a.current.add(y[k]),iW(i,a.current,!1)){const M=((v=(x=y.composedPath)==null?void 0:x.call(y))==null?void 0:v[0])||y.target,w=(M==null?void 0:M.nodeName)==="BUTTON"||(M==null?void 0:M.nodeName)==="A";t.preventDefault!==!1&&(r.current||!w)&&y.preventDefault(),o(!0)}},d=y=>{const g=sW(y.code,s);iW(i,a.current,!0)?(o(!1),a.current.clear()):a.current.delete(y[g]),y.key==="Meta"&&a.current.clear(),r.current=!1},p=()=>{a.current.clear(),o(!1)};return c==null||c.addEventListener("keydown",h),c==null||c.addEventListener("keyup",d),window.addEventListener("blur",p),window.addEventListener("contextmenu",p),()=>{c==null||c.removeEventListener("keydown",h),c==null||c.removeEventListener("keyup",d),window.removeEventListener("blur",p),window.removeEventListener("contextmenu",p)}}},[e,o]),n}function iW(e,t,n){return e.filter(o=>n||o.length===t.size).some(o=>o.every(r=>t.has(r)))}function sW(e,t){return t.includes(e)?"code":"key"}const eDe=()=>{const e=St();return m.useMemo(()=>({zoomIn:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,t):Promise.resolve(!1)},zoomOut:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,t):Promise.resolve(!1)},zoomTo:(t,n)=>{const{panZoom:o}=e.getState();return o?o.scaleTo(t,n):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(t,n)=>{const{transform:[o,r,a],panZoom:i}=e.getState();return i?(await i.setViewport({x:t.x??o,y:t.y??r,zoom:t.zoom??a},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[t,n,o]=e.getState().transform;return{x:t,y:n,zoom:o}},setCenter:async(t,n,o)=>e.getState().setCenter(t,n,o),fitBounds:async(t,n)=>{const{width:o,height:r,minZoom:a,maxZoom:i,panZoom:s}=e.getState(),c=uq(t,o,r,a,i,(n==null?void 0:n.padding)??.1);return s?(await s.setViewport(c,{duration:n==null?void 0:n.duration,ease:n==null?void 0:n.ease,interpolate:n==null?void 0:n.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(t,n={})=>{const{transform:o,snapGrid:r,snapToGrid:a,domNode:i}=e.getState();if(!i)return t;const{x:s,y:c}=i.getBoundingClientRect(),l={x:t.x-s,y:t.y-c},h=n.snapGrid??r,d=n.snapToGrid??a;return Vf(l,o,d,h)},flowToScreenPosition:t=>{const{transform:n,domNode:o}=e.getState();if(!o)return t;const{x:r,y:a}=o.getBoundingClientRect(),i=yz(t,n);return{x:i.x+r,y:i.y+a}}}),[])};function BJ(e,t){const n=[],o=new Map,r=[];for(const a of e)if(a.type==="add"){r.push(a);continue}else if(a.type==="remove"||a.type==="replace")o.set(a.id,[a]);else{const i=o.get(a.id);i?i.push(a):o.set(a.id,[a])}for(const a of t){const i=o.get(a.id);if(!i){n.push(a);continue}if(i[0].type==="remove")continue;if(i[0].type==="replace"){n.push({...i[0].item});continue}const s={...a};for(const c of i)tDe(c,s);n.push(s)}return r.length&&r.forEach(a=>{a.index!==void 0?n.splice(a.index,0,{...a.item}):n.push({...a.item})}),n}function tDe(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured={...e.dimensions},e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(t.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(t.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function UJ(e,t){return BJ(e,t)}function WJ(e,t){return BJ(e,t)}function Ed(e,t){return{id:e,type:"select",selected:t}}function i0(e,t=new Set,n=!1){const o=[];for(const[r,a]of e){const i=t.has(r);!(a.selected===void 0&&!i)&&a.selected!==i&&(n&&(a.selected=i),o.push(Ed(a.id,i)))}return o}function cW({items:e=[],lookup:t}){var r;const n=[],o=new Map(e.map(a=>[a.id,a]));for(const[a,i]of e.entries()){const s=t.get(i.id),c=((r=s==null?void 0:s.internals)==null?void 0:r.userNode)??s;c!==void 0&&c!==i&&n.push({id:i.id,item:i,type:"replace"}),c===void 0&&n.push({item:i,type:"add",index:a})}for(const[a]of t)o.get(a)===void 0&&n.push({id:a,type:"remove"});return n}function lW(e){return{id:e.id,type:"remove"}}const dW=e=>uRe(e),nDe=e=>uJ(e);function GJ(e){return m.forwardRef(e)}function uW(e){const[t,n]=m.useState(BigInt(0)),[o]=m.useState(()=>oDe(()=>n(r=>r+BigInt(1))));return iO(()=>{const r=o.get();r.length&&(e(r),o.reset())},[t]),o}function oDe(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:n=>{t.push(n),e()}}}const KJ=m.createContext(null);function rDe({children:e}){const t=St(),n=m.useCallback(s=>{const{nodes:c=[],setNodes:l,hasDefaultNodes:h,onNodesChange:d,nodeLookup:p,fitViewQueued:y,onNodesChangeMiddlewareMap:g}=t.getState();let k=c;for(const v of s)k=typeof v=="function"?v(k):v;let x=cW({items:k,lookup:p});for(const v of g.values())x=v(x);h&&l(k),x.length>0?d==null||d(x):y&&window.requestAnimationFrame(()=>{const{fitViewQueued:v,nodes:M,setNodes:w}=t.getState();v&&w(M)})},[]),o=uW(n),r=m.useCallback(s=>{const{edges:c=[],setEdges:l,hasDefaultEdges:h,onEdgesChange:d,edgeLookup:p}=t.getState();let y=c;for(const g of s)y=typeof g=="function"?g(y):g;h?l(y):d&&d(cW({items:y,lookup:p}))},[]),a=uW(r),i=m.useMemo(()=>({nodeQueue:o,edgeQueue:a}),[]);return f.jsx(KJ.Provider,{value:i,children:e})}function aDe(){const e=m.useContext(KJ);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const iDe=e=>!!e.panZoom;function _R(){const e=eDe(),t=St(),n=aDe(),o=je(iDe),r=m.useMemo(()=>{const a=d=>t.getState().nodeLookup.get(d),i=d=>{n.nodeQueue.push(d)},s=d=>{n.edgeQueue.push(d)},c=d=>{var v,M;const{nodeLookup:p,nodeOrigin:y}=t.getState(),g=dW(d)?d:p.get(d.id),k=g.parentId?gJ(g.position,g.measured,g.parentId,p,y):g.position,x={...g,position:k,width:((v=g.measured)==null?void 0:v.width)??g.width,height:((M=g.measured)==null?void 0:M.height)??g.height};return V0(x)},l=(d,p,y={replace:!1})=>{i(g=>g.map(k=>{if(k.id===d){const x=typeof p=="function"?p(k):p;return y.replace&&dW(x)?x:{...k,...x}}return k}))},h=(d,p,y={replace:!1})=>{s(g=>g.map(k=>{if(k.id===d){const x=typeof p=="function"?p(k):p;return y.replace&&nDe(x)?x:{...k,...x}}return k}))};return{getNodes:()=>t.getState().nodes.map(d=>({...d})),getNode:d=>{var p;return(p=a(d))==null?void 0:p.internals.userNode},getInternalNode:a,getEdges:()=>{const{edges:d=[]}=t.getState();return d.map(p=>({...p}))},getEdge:d=>t.getState().edgeLookup.get(d),setNodes:i,setEdges:s,addNodes:d=>{const p=Array.isArray(d)?d:[d];n.nodeQueue.push(y=>[...y,...p])},addEdges:d=>{const p=Array.isArray(d)?d:[d];n.edgeQueue.push(y=>[...y,...p])},toObject:()=>{const{nodes:d=[],edges:p=[],transform:y}=t.getState(),[g,k,x]=y;return{nodes:d.map(v=>({...v})),edges:p.map(v=>({...v})),viewport:{x:g,y:k,zoom:x}}},deleteElements:async({nodes:d=[],edges:p=[]})=>{const{nodes:y,edges:g,onNodesDelete:k,onEdgesDelete:x,triggerNodeChanges:v,triggerEdgeChanges:M,onDelete:w,onBeforeDelete:b}=t.getState(),{nodes:C,edges:_}=await mRe({nodesToRemove:d,edgesToRemove:p,nodes:y,edges:g,onBeforeDelete:b}),S=_.length>0,L=C.length>0;if(S){const A=_.map(lW);x==null||x(_),M(A)}if(L){const A=C.map(lW);k==null||k(C),v(A)}return(L||S)&&(w==null||w({nodes:C,edges:_})),{deletedNodes:C,deletedEdges:_}},getIntersectingNodes:(d,p=!0,y)=>{const g=OU(d),k=g?d:c(d),x=y!==void 0;return k?(y||t.getState().nodes).filter(v=>{const M=t.getState().nodeLookup.get(v.id);if(M&&!g&&(v.id===d.id||!M.internals.positionAbsolute))return!1;const w=V0(x?v:M),b=gf(w,k);return p&&b>0||b>=w.width*w.height||b>=k.width*k.height}):[]},isNodeIntersecting:(d,p,y=!0)=>{const k=OU(d)?d:c(d);if(!k)return!1;const x=gf(k,p);return y&&x>0||x>=p.width*p.height||x>=k.width*k.height},updateNode:l,updateNodeData:(d,p,y={replace:!1})=>{l(d,g=>{const k=typeof p=="function"?p(g):p;return y.replace?{...g,data:k}:{...g,data:{...g.data,...k}}},y)},updateEdge:h,updateEdgeData:(d,p,y={replace:!1})=>{h(d,g=>{const k=typeof p=="function"?p(g):p;return y.replace?{...g,data:k}:{...g,data:{...g.data,...k}}},y)},getNodesBounds:d=>{const{nodeLookup:p,nodeOrigin:y}=t.getState();return hRe(d,{nodeLookup:p,nodeOrigin:y})},getHandleConnections:({type:d,id:p,nodeId:y})=>{var g;return Array.from(((g=t.getState().connectionLookup.get(`${y}-${d}${p?`-${p}`:""}`))==null?void 0:g.values())??[])},getNodeConnections:({type:d,handleId:p,nodeId:y})=>{var g;return Array.from(((g=t.getState().connectionLookup.get(`${y}${d?p?`-${d}-${p}`:`-${d}`:""}`))==null?void 0:g.values())??[])},fitView:async d=>{const p=t.getState().fitViewResolver??xRe();return t.setState({fitViewQueued:!0,fitViewOptions:d,fitViewResolver:p}),n.nodeQueue.push(y=>[...y]),p.promise}}},[]);return m.useMemo(()=>({...r,...e,viewportInitialized:o}),[o])}const hW=e=>e.selected,sDe=typeof window<"u"?window:void 0;function cDe({deleteKeyCode:e,multiSelectionKeyCode:t}){const n=St(),{deleteElements:o}=_R(),r=xf(e,{actInsideInputWithModifier:!1}),a=xf(t,{target:sDe});m.useEffect(()=>{if(r){const{edges:i,nodes:s}=n.getState();o({nodes:s.filter(hW),edges:i.filter(hW)}),n.setState({nodesSelectionActive:!1})}},[r]),m.useEffect(()=>{n.setState({multiSelectionActive:a})},[a])}function lDe(e){const t=St();m.useEffect(()=>{const n=()=>{var r,a,i,s;if(!e.current||!(((a=(r=e.current).checkVisibility)==null?void 0:a.call(r))??!0))return!1;const o=hq(e.current);(o.height===0||o.width===0)&&((s=(i=t.getState()).onError)==null||s.call(i,"004",ta.error004())),t.setState({width:o.width||500,height:o.height||500})};if(e.current){n(),window.addEventListener("resize",n);const o=new ResizeObserver(()=>n());return o.observe(e.current),()=>{window.removeEventListener("resize",n),o&&e.current&&o.unobserve(e.current)}}},[])}const CR={position:"absolute",width:"100%",height:"100%",top:0,left:0},dDe=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function uDe({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:o=!1,panOnScrollSpeed:r=.5,panOnScrollMode:a=Bd.Free,zoomOnDoubleClick:i=!0,panOnDrag:s=!0,defaultViewport:c,translateExtent:l,minZoom:h,maxZoom:d,zoomActivationKeyCode:p,preventScrolling:y=!0,children:g,noWheelClassName:k,noPanClassName:x,onViewportChange:v,isControlledViewport:M,paneClickDistance:w,selectionOnDrag:b}){const C=St(),_=m.useRef(null),{userSelectionActive:S,lib:L,connectionInProgress:A}=je(dDe,jt),I=xf(p),R=m.useRef();lDe(_);const j=m.useCallback(V=>{v==null||v({x:V[0],y:V[1],zoom:V[2]}),M||C.setState({transform:V})},[v,M]);return m.useEffect(()=>{if(_.current){R.current=oTe({domNode:_.current,minZoom:h,maxZoom:d,translateExtent:l,viewport:c,onDraggingChange:D=>C.setState(F=>F.paneDragging===D?F:{paneDragging:D}),onPanZoomStart:(D,F)=>{const{onViewportChangeStart:z,onMoveStart:E}=C.getState();E==null||E(D,F),z==null||z(F)},onPanZoom:(D,F)=>{const{onViewportChange:z,onMove:E}=C.getState();E==null||E(D,F),z==null||z(F)},onPanZoomEnd:(D,F)=>{const{onViewportChangeEnd:z,onMoveEnd:E}=C.getState();E==null||E(D,F),z==null||z(F)}});const{x:V,y:$,zoom:T}=R.current.getViewport();return C.setState({panZoom:R.current,transform:[V,$,T],domNode:_.current.closest(".react-flow")}),()=>{var D;(D=R.current)==null||D.destroy()}}},[]),m.useEffect(()=>{var V;(V=R.current)==null||V.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:o,panOnScrollSpeed:r,panOnScrollMode:a,zoomOnDoubleClick:i,panOnDrag:s,zoomActivationKeyPressed:I,preventScrolling:y,noPanClassName:x,userSelectionActive:S,noWheelClassName:k,lib:L,onTransformChange:j,connectionInProgress:A,selectionOnDrag:b,paneClickDistance:w})},[e,t,n,o,r,a,i,s,I,y,x,S,k,L,j,A,b,w]),f.jsx("div",{className:"react-flow__renderer",ref:_,style:CR,children:g})}const hDe=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function fDe(){const{userSelectionActive:e,userSelectionRect:t}=je(hDe,jt);return e&&t?f.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const oD=(e,t)=>n=>{n.target===t.current&&(e==null||e(n))},pDe=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function yDe({isSelecting:e,selectionKeyPressed:t,selectionMode:n=F0.Full,panOnDrag:o,paneClickDistance:r,selectionOnDrag:a,onSelectionStart:i,onSelectionEnd:s,onPaneClick:c,onPaneContextMenu:l,onPaneScroll:h,onPaneMouseEnter:d,onPaneMouseMove:p,onPaneMouseLeave:y,children:g}){const k=St(),{userSelectionActive:x,elementsSelectable:v,dragging:M,connectionInProgress:w}=je(pDe,jt),b=v&&(e||x),C=m.useRef(null),_=m.useRef(),S=m.useRef(new Set),L=m.useRef(new Set),A=m.useRef(!1),I=z=>{if(A.current||w){A.current=!1;return}c==null||c(z),k.getState().resetSelectedElements(),k.setState({nodesSelectionActive:!1})},R=z=>{if(Array.isArray(o)&&(o!=null&&o.includes(2))){z.preventDefault();return}l==null||l(z)},j=h?z=>h(z):void 0,V=z=>{A.current&&(z.stopPropagation(),A.current=!1)},$=z=>{var Z,te;const{domNode:E}=k.getState();if(_.current=E==null?void 0:E.getBoundingClientRect(),!_.current)return;const N=z.target===C.current;if(!N&&!!z.target.closest(".nokey")||!e||!(a&&N||t)||z.button!==0||!z.isPrimary)return;(te=(Z=z.target)==null?void 0:Z.setPointerCapture)==null||te.call(Z,z.pointerId),A.current=!1;const{x:P,y:Y}=ar(z.nativeEvent,_.current);k.setState({userSelectionRect:{width:0,height:0,startX:P,startY:Y,x:P,y:Y}}),N||(z.stopPropagation(),z.preventDefault())},T=z=>{const{userSelectionRect:E,transform:N,nodeLookup:W,edgeLookup:O,connectionLookup:P,triggerNodeChanges:Y,triggerEdgeChanges:Z,defaultEdgeOptions:te,resetSelectedElements:ie}=k.getState();if(!_.current||!E)return;const{x:re,y:ae}=ar(z.nativeEvent,_.current),{startX:se,startY:ve}=E;if(!A.current){const De=t?0:r;if(Math.hypot(re-se,ae-ve)<=De)return;ie(),i==null||i(z)}A.current=!0;const ke={startX:se,startY:ve,x:re<se?re:se,y:ae<ve?ae:ve,width:Math.abs(re-se),height:Math.abs(ae-ve)},ge=S.current,Pe=L.current;S.current=new Set(dq(W,ke,N,n===F0.Partial,!0).map(De=>De.id)),L.current=new Set;const Be=(te==null?void 0:te.selectable)??!0;for(const De of S.current){const pe=P.get(De);if(pe)for(const{edgeId:me}of pe.values()){const Ae=O.get(me);Ae&&(Ae.selectable??Be)&&L.current.add(me)}}if(!FU(ge,S.current)){const De=i0(W,S.current,!0);Y(De)}if(!FU(Pe,L.current)){const De=i0(O,L.current);Z(De)}k.setState({userSelectionRect:ke,userSelectionActive:!0,nodesSelectionActive:!1})},D=z=>{var E,N;z.button===0&&((N=(E=z.target)==null?void 0:E.releasePointerCapture)==null||N.call(E,z.pointerId),!x&&z.target===C.current&&k.getState().userSelectionRect&&(I==null||I(z)),k.setState({userSelectionActive:!1,userSelectionRect:null}),A.current&&(s==null||s(z),k.setState({nodesSelectionActive:S.current.size>0})))},F=o===!0||Array.isArray(o)&&o.includes(0);return f.jsxs("div",{className:Yt(["react-flow__pane",{draggable:F,dragging:M,selection:e}]),onClick:b?void 0:oD(I,C),onContextMenu:oD(R,C),onWheel:oD(j,C),onPointerEnter:b?void 0:d,onPointerMove:b?T:p,onPointerUp:b?D:void 0,onPointerDownCapture:b?$:void 0,onClickCapture:b?V:void 0,onPointerLeave:y,ref:C,style:CR,children:[g,f.jsx(fDe,{})]})}function sO({id:e,store:t,unselect:n=!1,nodeRef:o}){const{addSelectedNodes:r,unselectNodesAndEdges:a,multiSelectionActive:i,nodeLookup:s,onError:c}=t.getState(),l=s.get(e);if(!l){c==null||c("012",ta.error012(e));return}t.setState({nodesSelectionActive:!1}),l.selected?(n||l.selected&&i)&&(a({nodes:[l],edges:[]}),requestAnimationFrame(()=>{var h;return(h=o==null?void 0:o.current)==null?void 0:h.blur()})):r([e])}function XJ({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:o,nodeId:r,isSelectable:a,nodeClickDistance:i}){const s=St(),[c,l]=m.useState(!1),h=m.useRef();return m.useEffect(()=>{h.current=VRe({getStoreItems:()=>s.getState(),onNodeMouseDown:d=>{sO({id:d,store:s,nodeRef:e})},onDragStart:()=>{l(!0)},onDragStop:()=>{l(!1)}})},[]),m.useEffect(()=>{if(!(t||!e.current||!h.current))return h.current.update({noDragClassName:n,handleSelector:o,domNode:e.current,isSelectable:a,nodeId:r,nodeClickDistance:i}),()=>{var d;(d=h.current)==null||d.destroy()}},[n,o,t,a,e,r,i]),c}const mDe=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function ZJ(){const e=St();return m.useCallback(n=>{const{nodeExtent:o,snapToGrid:r,snapGrid:a,nodesDraggable:i,onError:s,updateNodePositions:c,nodeLookup:l,nodeOrigin:h}=e.getState(),d=new Map,p=mDe(i),y=r?a[0]:5,g=r?a[1]:5,k=n.direction.x*y*n.factor,x=n.direction.y*g*n.factor;for(const[,v]of l){if(!p(v))continue;let M={x:v.internals.positionAbsolute.x+k,y:v.internals.positionAbsolute.y+x};r&&(M=qf(M,a));const{position:w,positionAbsolute:b}=hJ({nodeId:v.id,nextPosition:M,nodeLookup:l,nodeExtent:o,nodeOrigin:h,onError:s});v.position=w,v.internals.positionAbsolute=b,d.set(v.id,v)}c(d)},[])}const kq=m.createContext(null),gDe=kq.Provider;kq.Consumer;const YJ=()=>m.useContext(kq),kDe=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),vDe=(e,t,n)=>o=>{const{connectionClickStartHandle:r,connectionMode:a,connection:i}=o,{fromHandle:s,toHandle:c,isValid:l}=i,h=(c==null?void 0:c.nodeId)===e&&(c==null?void 0:c.id)===t&&(c==null?void 0:c.type)===n;return{connectingFrom:(s==null?void 0:s.nodeId)===e&&(s==null?void 0:s.id)===t&&(s==null?void 0:s.type)===n,connectingTo:h,clickConnecting:(r==null?void 0:r.nodeId)===e&&(r==null?void 0:r.id)===t&&(r==null?void 0:r.type)===n,isPossibleEndHandle:a===O0.Strict?(s==null?void 0:s.type)!==n:e!==(s==null?void 0:s.nodeId)||t!==(s==null?void 0:s.id),connectionInProcess:!!s,clickConnectionInProcess:!!r,valid:h&&l}};function xDe({type:e="source",position:t=ue.Top,isValidConnection:n,isConnectable:o=!0,isConnectableStart:r=!0,isConnectableEnd:a=!0,id:i,onConnect:s,children:c,className:l,onMouseDown:h,onTouchStart:d,...p},y){var T,D;const g=i||null,k=e==="target",x=St(),v=YJ(),{connectOnClick:M,noPanClassName:w,rfId:b}=je(kDe,jt),{connectingFrom:C,connectingTo:_,clickConnecting:S,isPossibleEndHandle:L,connectionInProcess:A,clickConnectionInProcess:I,valid:R}=je(vDe(v,g,e),jt);v||(D=(T=x.getState()).onError)==null||D.call(T,"010",ta.error010());const j=F=>{const{defaultEdgeOptions:z,onConnect:E,hasDefaultEdges:N}=x.getState(),W={...z,...F};if(N){const{edges:O,setEdges:P}=x.getState();P(LRe(W,O))}E==null||E(W),s==null||s(W)},V=F=>{if(!v)return;const z=xJ(F.nativeEvent);if(r&&(z&&F.button===0||!z)){const E=x.getState();aO.onPointerDown(F.nativeEvent,{handleDomNode:F.currentTarget,autoPanOnConnect:E.autoPanOnConnect,connectionMode:E.connectionMode,connectionRadius:E.connectionRadius,domNode:E.domNode,nodeLookup:E.nodeLookup,lib:E.lib,isTarget:k,handleId:g,nodeId:v,flowId:E.rfId,panBy:E.panBy,cancelConnection:E.cancelConnection,onConnectStart:E.onConnectStart,onConnectEnd:(...N)=>{var W,O;return(O=(W=x.getState()).onConnectEnd)==null?void 0:O.call(W,...N)},updateConnection:E.updateConnection,onConnect:j,isValidConnection:n||((...N)=>{var W,O;return((O=(W=x.getState()).isValidConnection)==null?void 0:O.call(W,...N))??!0}),getTransform:()=>x.getState().transform,getFromHandle:()=>x.getState().connection.fromHandle,autoPanSpeed:E.autoPanSpeed,dragThreshold:E.connectionDragThreshold})}z?h==null||h(F):d==null||d(F)},$=F=>{const{onClickConnectStart:z,onClickConnectEnd:E,connectionClickStartHandle:N,connectionMode:W,isValidConnection:O,lib:P,rfId:Y,nodeLookup:Z,connection:te}=x.getState();if(!v||!N&&!r)return;if(!N){z==null||z(F.nativeEvent,{nodeId:v,handleId:g,handleType:e}),x.setState({connectionClickStartHandle:{nodeId:v,type:e,id:g}});return}const ie=kJ(F.target),re=n||O,{connection:ae,isValid:se}=aO.isValid(F.nativeEvent,{handle:{nodeId:v,id:g,type:e},connectionMode:W,fromNodeId:N.nodeId,fromHandleId:N.id||null,fromType:N.type,isValidConnection:re,flowId:Y,doc:ie,lib:P,nodeLookup:Z});se&&ae&&j(ae);const ve=structuredClone(te);delete ve.inProgress,ve.toPosition=ve.toHandle?ve.toHandle.position:null,E==null||E(F,ve),x.setState({connectionClickStartHandle:null})};return f.jsx("div",{"data-handleid":g,"data-nodeid":v,"data-handlepos":t,"data-id":`${b}-${v}-${g}-${e}`,className:Yt(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",w,l,{source:!k,target:k,connectable:o,connectablestart:r,connectableend:a,clickconnecting:S,connectingfrom:C,connectingto:_,valid:R,connectionindicator:o&&(!A||L)&&(A||I?a:r)}]),onMouseDown:V,onTouchStart:V,onClick:M?$:void 0,ref:y,...p,children:c})}const lt=m.memo(GJ(xDe));function wDe({data:e,isConnectable:t,sourcePosition:n=ue.Bottom}){return f.jsxs(f.Fragment,{children:[e==null?void 0:e.label,f.jsx(lt,{type:"source",position:n,isConnectable:t})]})}function MDe({data:e,isConnectable:t,targetPosition:n=ue.Top,sourcePosition:o=ue.Bottom}){return f.jsxs(f.Fragment,{children:[f.jsx(lt,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label,f.jsx(lt,{type:"source",position:o,isConnectable:t})]})}function bDe(){return null}function _De({data:e,isConnectable:t,targetPosition:n=ue.Top}){return f.jsxs(f.Fragment,{children:[f.jsx(lt,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label]})}const mz={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},fW={input:wDe,default:MDe,output:_De,group:bDe};function CDe(e){var t,n,o,r;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((t=e.style)==null?void 0:t.width),height:e.height??e.initialHeight??((n=e.style)==null?void 0:n.height)}:{width:e.width??((o=e.style)==null?void 0:o.width),height:e.height??((r=e.style)==null?void 0:r.height)}}const SDe=e=>{const{width:t,height:n,x:o,y:r}=Ff(e.nodeLookup,{filter:a=>!!a.selected});return{width:rr(t)?t:null,height:rr(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${o}px,${r}px)`}};function LDe({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const o=St(),{width:r,height:a,transformString:i,userSelectionActive:s}=je(SDe,jt),c=ZJ(),l=m.useRef(null);m.useEffect(()=>{var y;n||(y=l.current)==null||y.focus({preventScroll:!0})},[n]);const h=!s&&r!==null&&a!==null;if(XJ({nodeRef:l,disabled:!h}),!h)return null;const d=e?y=>{const g=o.getState().nodes.filter(k=>k.selected);e(y,g)}:void 0,p=y=>{Object.prototype.hasOwnProperty.call(mz,y.key)&&(y.preventDefault(),c({direction:mz[y.key],factor:y.shiftKey?4:1}))};return f.jsx("div",{className:Yt(["react-flow__nodesselection","react-flow__container",t]),style:{transform:i},children:f.jsx("div",{ref:l,className:"react-flow__nodesselection-rect",onContextMenu:d,tabIndex:n?void 0:-1,onKeyDown:n?void 0:p,style:{width:r,height:a}})})}const pW=typeof window<"u"?window:void 0,NDe=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function QJ({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:r,onPaneContextMenu:a,onPaneScroll:i,paneClickDistance:s,deleteKeyCode:c,selectionKeyCode:l,selectionOnDrag:h,selectionMode:d,onSelectionStart:p,onSelectionEnd:y,multiSelectionKeyCode:g,panActivationKeyCode:k,zoomActivationKeyCode:x,elementsSelectable:v,zoomOnScroll:M,zoomOnPinch:w,panOnScroll:b,panOnScrollSpeed:C,panOnScrollMode:_,zoomOnDoubleClick:S,panOnDrag:L,defaultViewport:A,translateExtent:I,minZoom:R,maxZoom:j,preventScrolling:V,onSelectionContextMenu:$,noWheelClassName:T,noPanClassName:D,disableKeyboardA11y:F,onViewportChange:z,isControlledViewport:E}){const{nodesSelectionActive:N,userSelectionActive:W}=je(NDe,jt),O=xf(l,{target:pW}),P=xf(k,{target:pW}),Y=P||L,Z=P||b,te=h&&Y!==!0,ie=O||W||te;return cDe({deleteKeyCode:c,multiSelectionKeyCode:g}),f.jsx(uDe,{onPaneContextMenu:a,elementsSelectable:v,zoomOnScroll:M,zoomOnPinch:w,panOnScroll:Z,panOnScrollSpeed:C,panOnScrollMode:_,zoomOnDoubleClick:S,panOnDrag:!O&&Y,defaultViewport:A,translateExtent:I,minZoom:R,maxZoom:j,zoomActivationKeyCode:x,preventScrolling:V,noWheelClassName:T,noPanClassName:D,onViewportChange:z,isControlledViewport:E,paneClickDistance:s,selectionOnDrag:te,children:f.jsxs(yDe,{onSelectionStart:p,onSelectionEnd:y,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:r,onPaneContextMenu:a,onPaneScroll:i,panOnDrag:Y,isSelecting:!!ie,selectionMode:d,selectionKeyPressed:O,paneClickDistance:s,selectionOnDrag:te,children:[e,N&&f.jsx(LDe,{onSelectionContextMenu:$,noPanClassName:D,disableKeyboardA11y:F})]})})}QJ.displayName="FlowRenderer";const IDe=m.memo(QJ),ADe=e=>t=>e?dq(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(n=>n.id):Array.from(t.nodeLookup.keys());function EDe(e){return je(m.useCallback(ADe(e),[e]),jt)}const jDe=e=>e.updateNodeInternals;function $De(){const e=je(jDe),[t]=m.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const o=new Map;n.forEach(r=>{const a=r.target.getAttribute("data-id");o.set(a,{id:a,nodeElement:r.target,force:!0})}),e(o)}));return m.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function PDe({node:e,nodeType:t,hasDimensions:n,resizeObserver:o}){const r=St(),a=m.useRef(null),i=m.useRef(null),s=m.useRef(e.sourcePosition),c=m.useRef(e.targetPosition),l=m.useRef(t),h=n&&!!e.internals.handleBounds;return m.useEffect(()=>{a.current&&!e.hidden&&(!h||i.current!==a.current)&&(i.current&&(o==null||o.unobserve(i.current)),o==null||o.observe(a.current),i.current=a.current)},[h,e.hidden]),m.useEffect(()=>()=>{i.current&&(o==null||o.unobserve(i.current),i.current=null)},[]),m.useEffect(()=>{if(a.current){const d=l.current!==t,p=s.current!==e.sourcePosition,y=c.current!==e.targetPosition;(d||p||y)&&(l.current=t,s.current=e.sourcePosition,c.current=e.targetPosition,r.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:a.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),a}function zDe({id:e,onClick:t,onMouseEnter:n,onMouseMove:o,onMouseLeave:r,onContextMenu:a,onDoubleClick:i,nodesDraggable:s,elementsSelectable:c,nodesConnectable:l,nodesFocusable:h,resizeObserver:d,noDragClassName:p,noPanClassName:y,disableKeyboardA11y:g,rfId:k,nodeTypes:x,nodeClickDistance:v,onError:M}){const{node:w,internals:b,isParent:C}=je(re=>{const ae=re.nodeLookup.get(e),se=re.parentLookup.has(e);return{node:ae,internals:ae.internals,isParent:se}},jt);let _=w.type||"default",S=(x==null?void 0:x[_])||fW[_];S===void 0&&(M==null||M("003",ta.error003(_)),_="default",S=(x==null?void 0:x.default)||fW.default);const L=!!(w.draggable||s&&typeof w.draggable>"u"),A=!!(w.selectable||c&&typeof w.selectable>"u"),I=!!(w.connectable||l&&typeof w.connectable>"u"),R=!!(w.focusable||h&&typeof w.focusable>"u"),j=St(),V=mJ(w),$=PDe({node:w,nodeType:_,hasDimensions:V,resizeObserver:d}),T=XJ({nodeRef:$,disabled:w.hidden||!L,noDragClassName:p,handleSelector:w.dragHandle,nodeId:e,isSelectable:A,nodeClickDistance:v}),D=ZJ();if(w.hidden)return null;const F=Xa(w),z=CDe(w),E=A||L||t||n||o||r,N=n?re=>n(re,{...b.userNode}):void 0,W=o?re=>o(re,{...b.userNode}):void 0,O=r?re=>r(re,{...b.userNode}):void 0,P=a?re=>a(re,{...b.userNode}):void 0,Y=i?re=>i(re,{...b.userNode}):void 0,Z=re=>{const{selectNodesOnDrag:ae,nodeDragThreshold:se}=j.getState();A&&(!ae||!L||se>0)&&sO({id:e,store:j,nodeRef:$}),t&&t(re,{...b.userNode})},te=re=>{if(!(vJ(re.nativeEvent)||g)){if(sJ.includes(re.key)&&A){const ae=re.key==="Escape";sO({id:e,store:j,unselect:ae,nodeRef:$})}else if(L&&w.selected&&Object.prototype.hasOwnProperty.call(mz,re.key)){re.preventDefault();const{ariaLabelConfig:ae}=j.getState();j.setState({ariaLiveMessage:ae["node.a11yDescription.ariaLiveMessage"]({direction:re.key.replace("Arrow","").toLowerCase(),x:~~b.positionAbsolute.x,y:~~b.positionAbsolute.y})}),D({direction:mz[re.key],factor:re.shiftKey?4:1})}}},ie=()=>{var Pe;if(g||!((Pe=$.current)!=null&&Pe.matches(":focus-visible")))return;const{transform:re,width:ae,height:se,autoPanOnNodeFocus:ve,setCenter:ke}=j.getState();if(!ve)return;dq(new Map([[e,w]]),{x:0,y:0,width:ae,height:se},re,!0).length>0||ke(w.position.x+F.width/2,w.position.y+F.height/2,{zoom:re[2]})};return f.jsx("div",{className:Yt(["react-flow__node",`react-flow__node-${_}`,{[y]:L},w.className,{selected:w.selected,selectable:A,parent:C,draggable:L,dragging:T}]),ref:$,style:{zIndex:b.z,transform:`translate(${b.positionAbsolute.x}px,${b.positionAbsolute.y}px)`,pointerEvents:E?"all":"none",visibility:V?"visible":"hidden",...w.style,...z},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:N,onMouseMove:W,onMouseLeave:O,onContextMenu:P,onClick:Z,onDoubleClick:Y,onKeyDown:R?te:void 0,tabIndex:R?0:void 0,onFocus:R?ie:void 0,role:w.ariaRole??(R?"group":void 0),"aria-roledescription":"node","aria-describedby":g?void 0:`${FJ}-${k}`,"aria-label":w.ariaLabel,...w.domAttributes,children:f.jsx(gDe,{value:e,children:f.jsx(S,{id:e,data:w.data,type:_,positionAbsoluteX:b.positionAbsolute.x,positionAbsoluteY:b.positionAbsolute.y,selected:w.selected??!1,selectable:A,draggable:L,deletable:w.deletable??!0,isConnectable:I,sourcePosition:w.sourcePosition,targetPosition:w.targetPosition,dragging:T,dragHandle:w.dragHandle,zIndex:b.z,parentId:w.parentId,...F})})})}var RDe=m.memo(zDe);const TDe=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function JJ(e){const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:o,elementsSelectable:r,onError:a}=je(TDe,jt),i=EDe(e.onlyRenderVisibleElements),s=$De();return f.jsx("div",{className:"react-flow__nodes",style:CR,children:i.map(c=>f.jsx(RDe,{id:c,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:s,nodesDraggable:t,nodesConnectable:n,nodesFocusable:o,elementsSelectable:r,nodeClickDistance:e.nodeClickDistance,onError:a},c))})}JJ.displayName="NodeRenderer";const DDe=m.memo(JJ);function HDe(e){return je(m.useCallback(n=>{if(!e)return n.edges.map(r=>r.id);const o=[];if(n.width&&n.height)for(const r of n.edges){const a=n.nodeLookup.get(r.source),i=n.nodeLookup.get(r.target);a&&i&&_Re({sourceNode:a,targetNode:i,width:n.width,height:n.height,transform:n.transform})&&o.push(r.id)}return o},[e]),jt)}const ODe=({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e}};return f.jsx("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},FDe=({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e,fill:e}};return f.jsx("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},yW={[mf.Arrow]:ODe,[mf.ArrowClosed]:FDe};function qDe(e){const t=St();return m.useMemo(()=>{var r,a;return Object.prototype.hasOwnProperty.call(yW,e)?yW[e]:((a=(r=t.getState()).onError)==null||a.call(r,"009",ta.error009(e)),null)},[e])}const VDe=({id:e,type:t,color:n,width:o=12.5,height:r=12.5,markerUnits:a="strokeWidth",strokeWidth:i,orient:s="auto-start-reverse"})=>{const c=qDe(t);return c?f.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${o}`,markerHeight:`${r}`,viewBox:"-10 -10 20 20",markerUnits:a,orient:s,refX:"0",refY:"0",children:f.jsx(c,{color:n,strokeWidth:i})}):null},eee=({defaultColor:e,rfId:t})=>{const n=je(a=>a.edges),o=je(a=>a.defaultEdgeOptions),r=m.useMemo(()=>jRe(n,{id:t,defaultColor:e,defaultMarkerStart:o==null?void 0:o.markerStart,defaultMarkerEnd:o==null?void 0:o.markerEnd}),[n,o,t,e]);return r.length?f.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:f.jsx("defs",{children:r.map(a=>f.jsx(VDe,{id:a.id,type:a.type,color:a.color,width:a.width,height:a.height,markerUnits:a.markerUnits,strokeWidth:a.strokeWidth,orient:a.orient},a.id))})}):null};eee.displayName="MarkerDefinitions";var BDe=m.memo(eee);function tee({x:e,y:t,label:n,labelStyle:o,labelShowBg:r=!0,labelBgStyle:a,labelBgPadding:i=[2,4],labelBgBorderRadius:s=2,children:c,className:l,...h}){const[d,p]=m.useState({x:1,y:0,width:0,height:0}),y=Yt(["react-flow__edge-textwrapper",l]),g=m.useRef(null);return m.useEffect(()=>{if(g.current){const k=g.current.getBBox();p({x:k.x,y:k.y,width:k.width,height:k.height})}},[n]),n?f.jsxs("g",{transform:`translate(${e-d.width/2} ${t-d.height/2})`,className:y,visibility:d.width?"visible":"hidden",...h,children:[r&&f.jsx("rect",{width:d.width+2*i[0],x:-i[0],y:-i[1],height:d.height+2*i[1],className:"react-flow__edge-textbg",style:a,rx:s,ry:s}),f.jsx("text",{className:"react-flow__edge-text",y:d.height/2,dy:"0.3em",ref:g,style:o,children:n}),c]}):null}tee.displayName="EdgeText";const UDe=m.memo(tee);function Bf({path:e,labelX:t,labelY:n,label:o,labelStyle:r,labelShowBg:a,labelBgStyle:i,labelBgPadding:s,labelBgBorderRadius:c,interactionWidth:l=20,...h}){return f.jsxs(f.Fragment,{children:[f.jsx("path",{...h,d:e,fill:"none",className:Yt(["react-flow__edge-path",h.className])}),l?f.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:l,className:"react-flow__edge-interaction"}):null,o&&rr(t)&&rr(n)?f.jsx(UDe,{x:t,y:n,label:o,labelStyle:r,labelShowBg:a,labelBgStyle:i,labelBgPadding:s,labelBgBorderRadius:c}):null]})}function mW({pos:e,x1:t,y1:n,x2:o,y2:r}){return e===ue.Left||e===ue.Right?[.5*(t+o),n]:[t,.5*(n+r)]}function nee({sourceX:e,sourceY:t,sourcePosition:n=ue.Bottom,targetX:o,targetY:r,targetPosition:a=ue.Top}){const[i,s]=mW({pos:n,x1:e,y1:t,x2:o,y2:r}),[c,l]=mW({pos:a,x1:o,y1:r,x2:e,y2:t}),[h,d,p,y]=wJ({sourceX:e,sourceY:t,targetX:o,targetY:r,sourceControlX:i,sourceControlY:s,targetControlX:c,targetControlY:l});return[`M${e},${t} C${i},${s} ${c},${l} ${o},${r}`,h,d,p,y]}function oee(e){return m.memo(({id:t,sourceX:n,sourceY:o,targetX:r,targetY:a,sourcePosition:i,targetPosition:s,label:c,labelStyle:l,labelShowBg:h,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:y,style:g,markerEnd:k,markerStart:x,interactionWidth:v})=>{const[M,w,b]=nee({sourceX:n,sourceY:o,sourcePosition:i,targetX:r,targetY:a,targetPosition:s}),C=e.isInternal?void 0:t;return f.jsx(Bf,{id:C,path:M,labelX:w,labelY:b,label:c,labelStyle:l,labelShowBg:h,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:y,style:g,markerEnd:k,markerStart:x,interactionWidth:v})})}const WDe=oee({isInternal:!1}),ree=oee({isInternal:!0});WDe.displayName="SimpleBezierEdge";ree.displayName="SimpleBezierEdgeInternal";function aee(e){return m.memo(({id:t,sourceX:n,sourceY:o,targetX:r,targetY:a,label:i,labelStyle:s,labelShowBg:c,labelBgStyle:l,labelBgPadding:h,labelBgBorderRadius:d,style:p,sourcePosition:y=ue.Bottom,targetPosition:g=ue.Top,markerEnd:k,markerStart:x,pathOptions:v,interactionWidth:M})=>{const[w,b,C]=vf({sourceX:n,sourceY:o,sourcePosition:y,targetX:r,targetY:a,targetPosition:g,borderRadius:v==null?void 0:v.borderRadius,offset:v==null?void 0:v.offset,stepPosition:v==null?void 0:v.stepPosition}),_=e.isInternal?void 0:t;return f.jsx(Bf,{id:_,path:w,labelX:b,labelY:C,label:i,labelStyle:s,labelShowBg:c,labelBgStyle:l,labelBgPadding:h,labelBgBorderRadius:d,style:p,markerEnd:k,markerStart:x,interactionWidth:M})})}const iee=aee({isInternal:!1}),see=aee({isInternal:!0});iee.displayName="SmoothStepEdge";see.displayName="SmoothStepEdgeInternal";function cee(e){return m.memo(({id:t,...n})=>{var r;const o=e.isInternal?void 0:t;return f.jsx(iee,{...n,id:o,pathOptions:m.useMemo(()=>{var a;return{borderRadius:0,offset:(a=n.pathOptions)==null?void 0:a.offset}},[(r=n.pathOptions)==null?void 0:r.offset])})})}const GDe=cee({isInternal:!1}),lee=cee({isInternal:!0});GDe.displayName="StepEdge";lee.displayName="StepEdgeInternal";function dee(e){return m.memo(({id:t,sourceX:n,sourceY:o,targetX:r,targetY:a,label:i,labelStyle:s,labelShowBg:c,labelBgStyle:l,labelBgPadding:h,labelBgBorderRadius:d,style:p,markerEnd:y,markerStart:g,interactionWidth:k})=>{const[x,v,M]=bJ({sourceX:n,sourceY:o,targetX:r,targetY:a}),w=e.isInternal?void 0:t;return f.jsx(Bf,{id:w,path:x,labelX:v,labelY:M,label:i,labelStyle:s,labelShowBg:c,labelBgStyle:l,labelBgPadding:h,labelBgBorderRadius:d,style:p,markerEnd:y,markerStart:g,interactionWidth:k})})}const KDe=dee({isInternal:!1}),uee=dee({isInternal:!0});KDe.displayName="StraightEdge";uee.displayName="StraightEdgeInternal";function hee(e){return m.memo(({id:t,sourceX:n,sourceY:o,targetX:r,targetY:a,sourcePosition:i=ue.Bottom,targetPosition:s=ue.Top,label:c,labelStyle:l,labelShowBg:h,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:y,style:g,markerEnd:k,markerStart:x,pathOptions:v,interactionWidth:M})=>{const[w,b,C]=xR({sourceX:n,sourceY:o,sourcePosition:i,targetX:r,targetY:a,targetPosition:s,curvature:v==null?void 0:v.curvature}),_=e.isInternal?void 0:t;return f.jsx(Bf,{id:_,path:w,labelX:b,labelY:C,label:c,labelStyle:l,labelShowBg:h,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:y,style:g,markerEnd:k,markerStart:x,interactionWidth:M})})}const XDe=hee({isInternal:!1}),fee=hee({isInternal:!0});XDe.displayName="BezierEdge";fee.displayName="BezierEdgeInternal";const gW={default:fee,straight:uee,step:lee,smoothstep:see,simplebezier:ree},kW={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},ZDe=(e,t,n)=>n===ue.Left?e-t:n===ue.Right?e+t:e,YDe=(e,t,n)=>n===ue.Top?e-t:n===ue.Bottom?e+t:e,vW="react-flow__edgeupdater";function xW({position:e,centerX:t,centerY:n,radius:o=10,onMouseDown:r,onMouseEnter:a,onMouseOut:i,type:s}){return f.jsx("circle",{onMouseDown:r,onMouseEnter:a,onMouseOut:i,className:Yt([vW,`${vW}-${s}`]),cx:ZDe(t,o,e),cy:YDe(n,o,e),r:o,stroke:"transparent",fill:"transparent"})}function QDe({isReconnectable:e,reconnectRadius:t,edge:n,sourceX:o,sourceY:r,targetX:a,targetY:i,sourcePosition:s,targetPosition:c,onReconnect:l,onReconnectStart:h,onReconnectEnd:d,setReconnecting:p,setUpdateHover:y}){const g=St(),k=(b,C)=>{if(b.button!==0)return;const{autoPanOnConnect:_,domNode:S,connectionMode:L,connectionRadius:A,lib:I,onConnectStart:R,cancelConnection:j,nodeLookup:V,rfId:$,panBy:T,updateConnection:D}=g.getState(),F=C.type==="target",z=(W,O)=>{p(!1),d==null||d(W,n,C.type,O)},E=W=>l==null?void 0:l(n,W),N=(W,O)=>{p(!0),h==null||h(b,n,C.type),R==null||R(W,O)};aO.onPointerDown(b.nativeEvent,{autoPanOnConnect:_,connectionMode:L,connectionRadius:A,domNode:S,handleId:C.id,nodeId:C.nodeId,nodeLookup:V,isTarget:F,edgeUpdaterType:C.type,lib:I,flowId:$,cancelConnection:j,panBy:T,isValidConnection:(...W)=>{var O,P;return((P=(O=g.getState()).isValidConnection)==null?void 0:P.call(O,...W))??!0},onConnect:E,onConnectStart:N,onConnectEnd:(...W)=>{var O,P;return(P=(O=g.getState()).onConnectEnd)==null?void 0:P.call(O,...W)},onReconnectEnd:z,updateConnection:D,getTransform:()=>g.getState().transform,getFromHandle:()=>g.getState().connection.fromHandle,dragThreshold:g.getState().connectionDragThreshold,handleDomNode:b.currentTarget})},x=b=>k(b,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),v=b=>k(b,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),M=()=>y(!0),w=()=>y(!1);return f.jsxs(f.Fragment,{children:[(e===!0||e==="source")&&f.jsx(xW,{position:s,centerX:o,centerY:r,radius:t,onMouseDown:x,onMouseEnter:M,onMouseOut:w,type:"source"}),(e===!0||e==="target")&&f.jsx(xW,{position:c,centerX:a,centerY:i,radius:t,onMouseDown:v,onMouseEnter:M,onMouseOut:w,type:"target"})]})}function JDe({id:e,edgesFocusable:t,edgesReconnectable:n,elementsSelectable:o,onClick:r,onDoubleClick:a,onContextMenu:i,onMouseEnter:s,onMouseMove:c,onMouseLeave:l,reconnectRadius:h,onReconnect:d,onReconnectStart:p,onReconnectEnd:y,rfId:g,edgeTypes:k,noPanClassName:x,onError:v,disableKeyboardA11y:M}){let w=je(ke=>ke.edgeLookup.get(e));const b=je(ke=>ke.defaultEdgeOptions);w=b?{...b,...w}:w;let C=w.type||"default",_=(k==null?void 0:k[C])||gW[C];_===void 0&&(v==null||v("011",ta.error011(C)),C="default",_=(k==null?void 0:k.default)||gW.default);const S=!!(w.focusable||t&&typeof w.focusable>"u"),L=typeof d<"u"&&(w.reconnectable||n&&typeof w.reconnectable>"u"),A=!!(w.selectable||o&&typeof w.selectable>"u"),I=m.useRef(null),[R,j]=m.useState(!1),[V,$]=m.useState(!1),T=St(),{zIndex:D,sourceX:F,sourceY:z,targetX:E,targetY:N,sourcePosition:W,targetPosition:O}=je(m.useCallback(ke=>{const ge=ke.nodeLookup.get(w.source),Pe=ke.nodeLookup.get(w.target);if(!ge||!Pe)return{zIndex:w.zIndex,...kW};const Be=ERe({id:e,sourceNode:ge,targetNode:Pe,sourceHandle:w.sourceHandle||null,targetHandle:w.targetHandle||null,connectionMode:ke.connectionMode,onError:v});return{zIndex:bRe({selected:w.selected,zIndex:w.zIndex,sourceNode:ge,targetNode:Pe,elevateOnSelect:ke.elevateEdgesOnSelect,zIndexMode:ke.zIndexMode}),...Be||kW}},[w.source,w.target,w.sourceHandle,w.targetHandle,w.selected,w.zIndex]),jt),P=m.useMemo(()=>w.markerStart?`url('#${oO(w.markerStart,g)}')`:void 0,[w.markerStart,g]),Y=m.useMemo(()=>w.markerEnd?`url('#${oO(w.markerEnd,g)}')`:void 0,[w.markerEnd,g]);if(w.hidden||F===null||z===null||E===null||N===null)return null;const Z=ke=>{var De;const{addSelectedEdges:ge,unselectNodesAndEdges:Pe,multiSelectionActive:Be}=T.getState();A&&(T.setState({nodesSelectionActive:!1}),w.selected&&Be?(Pe({nodes:[],edges:[w]}),(De=I.current)==null||De.blur()):ge([e])),r&&r(ke,w)},te=a?ke=>{a(ke,{...w})}:void 0,ie=i?ke=>{i(ke,{...w})}:void 0,re=s?ke=>{s(ke,{...w})}:void 0,ae=c?ke=>{c(ke,{...w})}:void 0,se=l?ke=>{l(ke,{...w})}:void 0,ve=ke=>{var ge;if(!M&&sJ.includes(ke.key)&&A){const{unselectNodesAndEdges:Pe,addSelectedEdges:Be}=T.getState();ke.key==="Escape"?((ge=I.current)==null||ge.blur(),Pe({edges:[w]})):Be([e])}};return f.jsx("svg",{style:{zIndex:D},children:f.jsxs("g",{className:Yt(["react-flow__edge",`react-flow__edge-${C}`,w.className,x,{selected:w.selected,animated:w.animated,inactive:!A&&!r,updating:R,selectable:A}]),onClick:Z,onDoubleClick:te,onContextMenu:ie,onMouseEnter:re,onMouseMove:ae,onMouseLeave:se,onKeyDown:S?ve:void 0,tabIndex:S?0:void 0,role:w.ariaRole??(S?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":w.ariaLabel===null?void 0:w.ariaLabel||`Edge from ${w.source} to ${w.target}`,"aria-describedby":S?`${qJ}-${g}`:void 0,ref:I,...w.domAttributes,children:[!V&&f.jsx(_,{id:e,source:w.source,target:w.target,type:w.type,selected:w.selected,animated:w.animated,selectable:A,deletable:w.deletable??!0,label:w.label,labelStyle:w.labelStyle,labelShowBg:w.labelShowBg,labelBgStyle:w.labelBgStyle,labelBgPadding:w.labelBgPadding,labelBgBorderRadius:w.labelBgBorderRadius,sourceX:F,sourceY:z,targetX:E,targetY:N,sourcePosition:W,targetPosition:O,data:w.data,style:w.style,sourceHandleId:w.sourceHandle,targetHandleId:w.targetHandle,markerStart:P,markerEnd:Y,pathOptions:"pathOptions"in w?w.pathOptions:void 0,interactionWidth:w.interactionWidth}),L&&f.jsx(QDe,{edge:w,isReconnectable:L,reconnectRadius:h,onReconnect:d,onReconnectStart:p,onReconnectEnd:y,sourceX:F,sourceY:z,targetX:E,targetY:N,sourcePosition:W,targetPosition:O,setUpdateHover:j,setReconnecting:$})]})})}var eHe=m.memo(JDe);const tHe=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function pee({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:n,edgeTypes:o,noPanClassName:r,onReconnect:a,onEdgeContextMenu:i,onEdgeMouseEnter:s,onEdgeMouseMove:c,onEdgeMouseLeave:l,onEdgeClick:h,reconnectRadius:d,onEdgeDoubleClick:p,onReconnectStart:y,onReconnectEnd:g,disableKeyboardA11y:k}){const{edgesFocusable:x,edgesReconnectable:v,elementsSelectable:M,onError:w}=je(tHe,jt),b=HDe(t);return f.jsxs("div",{className:"react-flow__edges",children:[f.jsx(BDe,{defaultColor:e,rfId:n}),b.map(C=>f.jsx(eHe,{id:C,edgesFocusable:x,edgesReconnectable:v,elementsSelectable:M,noPanClassName:r,onReconnect:a,onContextMenu:i,onMouseEnter:s,onMouseMove:c,onMouseLeave:l,onClick:h,reconnectRadius:d,onDoubleClick:p,onReconnectStart:y,onReconnectEnd:g,rfId:n,onError:w,edgeTypes:o,disableKeyboardA11y:k},C))]})}pee.displayName="EdgeRenderer";const nHe=m.memo(pee),oHe=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function rHe({children:e}){const t=je(oHe);return f.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}function aHe(e){const t=_R(),n=m.useRef(!1);m.useEffect(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}const iHe=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function sHe(e){const t=je(iHe),n=St();return m.useEffect(()=>{e&&(t==null||t(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function cHe(e){return e.connection.inProgress?{...e.connection,to:Vf(e.connection.to,e.transform)}:{...e.connection}}function lHe(e){return cHe}function dHe(e){const t=lHe();return je(t,jt)}const uHe=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function hHe({containerStyle:e,style:t,type:n,component:o}){const{nodesConnectable:r,width:a,height:i,isValid:s,inProgress:c}=je(uHe,jt);return!(a&&r&&c)?null:f.jsx("svg",{style:e,width:a,height:i,className:"react-flow__connectionline react-flow__container",children:f.jsx("g",{className:Yt(["react-flow__connection",dJ(s)]),children:f.jsx(yee,{style:t,type:n,CustomComponent:o,isValid:s})})})}const yee=({style:e,type:t=Ei.Bezier,CustomComponent:n,isValid:o})=>{const{inProgress:r,from:a,fromNode:i,fromHandle:s,fromPosition:c,to:l,toNode:h,toHandle:d,toPosition:p,pointer:y}=dHe();if(!r)return;if(n)return f.jsx(n,{connectionLineType:t,connectionLineStyle:e,fromNode:i,fromHandle:s,fromX:a.x,fromY:a.y,toX:l.x,toY:l.y,fromPosition:c,toPosition:p,connectionStatus:dJ(o),toNode:h,toHandle:d,pointer:y});let g="";const k={sourceX:a.x,sourceY:a.y,sourcePosition:c,targetX:l.x,targetY:l.y,targetPosition:p};switch(t){case Ei.Bezier:[g]=xR(k);break;case Ei.SimpleBezier:[g]=nee(k);break;case Ei.Step:[g]=vf({...k,borderRadius:0});break;case Ei.SmoothStep:[g]=vf(k);break;default:[g]=bJ(k)}return f.jsx("path",{d:g,fill:"none",className:"react-flow__connection-path",style:e})};yee.displayName="ConnectionLine";const fHe={};function wW(e=fHe){m.useRef(e),St(),m.useEffect(()=>{},[e])}function pHe(){St(),m.useRef(!1),m.useEffect(()=>{},[])}function mee({nodeTypes:e,edgeTypes:t,onInit:n,onNodeClick:o,onEdgeClick:r,onNodeDoubleClick:a,onEdgeDoubleClick:i,onNodeMouseEnter:s,onNodeMouseMove:c,onNodeMouseLeave:l,onNodeContextMenu:h,onSelectionContextMenu:d,onSelectionStart:p,onSelectionEnd:y,connectionLineType:g,connectionLineStyle:k,connectionLineComponent:x,connectionLineContainerStyle:v,selectionKeyCode:M,selectionOnDrag:w,selectionMode:b,multiSelectionKeyCode:C,panActivationKeyCode:_,zoomActivationKeyCode:S,deleteKeyCode:L,onlyRenderVisibleElements:A,elementsSelectable:I,defaultViewport:R,translateExtent:j,minZoom:V,maxZoom:$,preventScrolling:T,defaultMarkerColor:D,zoomOnScroll:F,zoomOnPinch:z,panOnScroll:E,panOnScrollSpeed:N,panOnScrollMode:W,zoomOnDoubleClick:O,panOnDrag:P,onPaneClick:Y,onPaneMouseEnter:Z,onPaneMouseMove:te,onPaneMouseLeave:ie,onPaneScroll:re,onPaneContextMenu:ae,paneClickDistance:se,nodeClickDistance:ve,onEdgeContextMenu:ke,onEdgeMouseEnter:ge,onEdgeMouseMove:Pe,onEdgeMouseLeave:Be,reconnectRadius:De,onReconnect:pe,onReconnectStart:me,onReconnectEnd:Ae,noDragClassName:Ue,noWheelClassName:ut,noPanClassName:et,disableKeyboardA11y:le,nodeExtent:rn,rfId:Gt,viewport:J,onViewportChange:H}){return wW(e),wW(t),pHe(),aHe(n),sHe(J),f.jsx(IDe,{onPaneClick:Y,onPaneMouseEnter:Z,onPaneMouseMove:te,onPaneMouseLeave:ie,onPaneContextMenu:ae,onPaneScroll:re,paneClickDistance:se,deleteKeyCode:L,selectionKeyCode:M,selectionOnDrag:w,selectionMode:b,onSelectionStart:p,onSelectionEnd:y,multiSelectionKeyCode:C,panActivationKeyCode:_,zoomActivationKeyCode:S,elementsSelectable:I,zoomOnScroll:F,zoomOnPinch:z,zoomOnDoubleClick:O,panOnScroll:E,panOnScrollSpeed:N,panOnScrollMode:W,panOnDrag:P,defaultViewport:R,translateExtent:j,minZoom:V,maxZoom:$,onSelectionContextMenu:d,preventScrolling:T,noDragClassName:Ue,noWheelClassName:ut,noPanClassName:et,disableKeyboardA11y:le,onViewportChange:H,isControlledViewport:!!J,children:f.jsxs(rHe,{children:[f.jsx(nHe,{edgeTypes:t,onEdgeClick:r,onEdgeDoubleClick:i,onReconnect:pe,onReconnectStart:me,onReconnectEnd:Ae,onlyRenderVisibleElements:A,onEdgeContextMenu:ke,onEdgeMouseEnter:ge,onEdgeMouseMove:Pe,onEdgeMouseLeave:Be,reconnectRadius:De,defaultMarkerColor:D,noPanClassName:et,disableKeyboardA11y:le,rfId:Gt}),f.jsx(hHe,{style:k,type:g,component:x,containerStyle:v}),f.jsx("div",{className:"react-flow__edgelabel-renderer"}),f.jsx(DDe,{nodeTypes:e,onNodeClick:o,onNodeDoubleClick:a,onNodeMouseEnter:s,onNodeMouseMove:c,onNodeMouseLeave:l,onNodeContextMenu:h,nodeClickDistance:ve,onlyRenderVisibleElements:A,noPanClassName:et,noDragClassName:Ue,disableKeyboardA11y:le,nodeExtent:rn,rfId:Gt}),f.jsx("div",{className:"react-flow__viewport-portal"})]})})}mee.displayName="GraphView";const yHe=m.memo(mee),MW=({nodes:e,edges:t,defaultNodes:n,defaultEdges:o,width:r,height:a,fitView:i,fitViewOptions:s,minZoom:c=.5,maxZoom:l=2,nodeOrigin:h,nodeExtent:d,zIndexMode:p="basic"}={})=>{const y=new Map,g=new Map,k=new Map,x=new Map,v=o??t??[],M=n??e??[],w=h??[0,0],b=d??yf;SJ(k,x,v);const{nodesInitialized:C}=rO(M,y,g,{nodeOrigin:w,nodeExtent:b,zIndexMode:p});let _=[0,0,1];if(i&&r&&a){const S=Ff(y,{filter:R=>!!((R.width||R.initialWidth)&&(R.height||R.initialHeight))}),{x:L,y:A,zoom:I}=uq(S,r,a,c,l,(s==null?void 0:s.padding)??.1);_=[L,A,I]}return{rfId:"1",width:r??0,height:a??0,transform:_,nodes:M,nodesInitialized:C,nodeLookup:y,parentLookup:g,edges:v,edgeLookup:x,connectionLookup:k,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:o!==void 0,panZoom:null,minZoom:c,maxZoom:l,translateExtent:yf,nodeExtent:b,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:O0.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:w,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:i??!1,fitViewOptions:s,fitViewResolver:null,connection:{...lJ},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:gRe,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:cJ,zIndexMode:p,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},mHe=({nodes:e,edges:t,defaultNodes:n,defaultEdges:o,width:r,height:a,fitView:i,fitViewOptions:s,minZoom:c,maxZoom:l,nodeOrigin:h,nodeExtent:d,zIndexMode:p})=>zTe((y,g)=>{async function k(){const{nodeLookup:x,panZoom:v,fitViewOptions:M,fitViewResolver:w,width:b,height:C,minZoom:_,maxZoom:S}=g();v&&(await yRe({nodes:x,width:b,height:C,panZoom:v,minZoom:_,maxZoom:S},M),w==null||w.resolve(!0),y({fitViewResolver:null}))}return{...MW({nodes:e,edges:t,width:r,height:a,fitView:i,fitViewOptions:s,minZoom:c,maxZoom:l,nodeOrigin:h,nodeExtent:d,defaultNodes:n,defaultEdges:o,zIndexMode:p}),setNodes:x=>{const{nodeLookup:v,parentLookup:M,nodeOrigin:w,elevateNodesOnSelect:b,fitViewQueued:C,zIndexMode:_,nodesSelectionActive:S}=g(),{nodesInitialized:L,hasSelectedNodes:A}=rO(x,v,M,{nodeOrigin:w,nodeExtent:d,elevateNodesOnSelect:b,checkEquality:!0,zIndexMode:_}),I=S&&A;C&&L?(k(),y({nodes:x,nodesInitialized:L,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:I})):y({nodes:x,nodesInitialized:L,nodesSelectionActive:I})},setEdges:x=>{const{connectionLookup:v,edgeLookup:M}=g();SJ(v,M,x),y({edges:x})},setDefaultNodesAndEdges:(x,v)=>{if(x){const{setNodes:M}=g();M(x),y({hasDefaultNodes:!0})}if(v){const{setEdges:M}=g();M(v),y({hasDefaultEdges:!0})}},updateNodeInternals:x=>{const{triggerNodeChanges:v,nodeLookup:M,parentLookup:w,domNode:b,nodeOrigin:C,nodeExtent:_,debug:S,fitViewQueued:L,zIndexMode:A}=g(),{changes:I,updatedInternals:R}=HRe(x,M,w,b,C,_,A);R&&(zRe(M,w,{nodeOrigin:C,nodeExtent:_,zIndexMode:A}),L?(k(),y({fitViewQueued:!1,fitViewOptions:void 0})):y({}),(I==null?void 0:I.length)>0&&(S&&console.log("React Flow: trigger node changes",I),v==null||v(I)))},updateNodePositions:(x,v=!1)=>{const M=[];let w=[];const{nodeLookup:b,triggerNodeChanges:C,connection:_,updateConnection:S,onNodesChangeMiddlewareMap:L}=g();for(const[A,I]of x){const R=b.get(A),j=!!(R!=null&&R.expandParent&&(R!=null&&R.parentId)&&(I!=null&&I.position)),V={id:A,type:"position",position:j?{x:Math.max(0,I.position.x),y:Math.max(0,I.position.y)}:I.position,dragging:v};if(R&&_.inProgress&&_.fromNode.id===R.id){const $=Jd(R,_.fromHandle,ue.Left,!0);S({..._,from:$})}j&&R.parentId&&M.push({id:A,parentId:R.parentId,rect:{...I.internals.positionAbsolute,width:I.measured.width??0,height:I.measured.height??0}}),w.push(V)}if(M.length>0){const{parentLookup:A,nodeOrigin:I}=g(),R=gq(M,b,A,I);w.push(...R)}for(const A of L.values())w=A(w);C(w)},triggerNodeChanges:x=>{const{onNodesChange:v,setNodes:M,nodes:w,hasDefaultNodes:b,debug:C}=g();if(x!=null&&x.length){if(b){const _=UJ(x,w);M(_)}C&&console.log("React Flow: trigger node changes",x),v==null||v(x)}},triggerEdgeChanges:x=>{const{onEdgesChange:v,setEdges:M,edges:w,hasDefaultEdges:b,debug:C}=g();if(x!=null&&x.length){if(b){const _=WJ(x,w);M(_)}C&&console.log("React Flow: trigger edge changes",x),v==null||v(x)}},addSelectedNodes:x=>{const{multiSelectionActive:v,edgeLookup:M,nodeLookup:w,triggerNodeChanges:b,triggerEdgeChanges:C}=g();if(v){const _=x.map(S=>Ed(S,!0));b(_);return}b(i0(w,new Set([...x]),!0)),C(i0(M))},addSelectedEdges:x=>{const{multiSelectionActive:v,edgeLookup:M,nodeLookup:w,triggerNodeChanges:b,triggerEdgeChanges:C}=g();if(v){const _=x.map(S=>Ed(S,!0));C(_);return}C(i0(M,new Set([...x]))),b(i0(w,new Set,!0))},unselectNodesAndEdges:({nodes:x,edges:v}={})=>{const{edges:M,nodes:w,nodeLookup:b,triggerNodeChanges:C,triggerEdgeChanges:_}=g(),S=x||w,L=v||M,A=[];for(const R of S){if(!R.selected)continue;const j=b.get(R.id);j&&(j.selected=!1),A.push(Ed(R.id,!1))}const I=[];for(const R of L)R.selected&&I.push(Ed(R.id,!1));C(A),_(I)},setMinZoom:x=>{const{panZoom:v,maxZoom:M}=g();v==null||v.setScaleExtent([x,M]),y({minZoom:x})},setMaxZoom:x=>{const{panZoom:v,minZoom:M}=g();v==null||v.setScaleExtent([M,x]),y({maxZoom:x})},setTranslateExtent:x=>{var v;(v=g().panZoom)==null||v.setTranslateExtent(x),y({translateExtent:x})},resetSelectedElements:()=>{const{edges:x,nodes:v,triggerNodeChanges:M,triggerEdgeChanges:w,elementsSelectable:b}=g();if(!b)return;const C=v.reduce((S,L)=>L.selected?[...S,Ed(L.id,!1)]:S,[]),_=x.reduce((S,L)=>L.selected?[...S,Ed(L.id,!1)]:S,[]);M(C),w(_)},setNodeExtent:x=>{const{nodes:v,nodeLookup:M,parentLookup:w,nodeOrigin:b,elevateNodesOnSelect:C,nodeExtent:_,zIndexMode:S}=g();x[0][0]===_[0][0]&&x[0][1]===_[0][1]&&x[1][0]===_[1][0]&&x[1][1]===_[1][1]||(rO(v,M,w,{nodeOrigin:b,nodeExtent:x,elevateNodesOnSelect:C,checkEquality:!1,zIndexMode:S}),y({nodeExtent:x}))},panBy:x=>{const{transform:v,width:M,height:w,panZoom:b,translateExtent:C}=g();return ORe({delta:x,panZoom:b,transform:v,translateExtent:C,width:M,height:w})},setCenter:async(x,v,M)=>{const{width:w,height:b,maxZoom:C,panZoom:_}=g();if(!_)return Promise.resolve(!1);const S=typeof(M==null?void 0:M.zoom)<"u"?M.zoom:C;return await _.setViewport({x:w/2-x*S,y:b/2-v*S,zoom:S},{duration:M==null?void 0:M.duration,ease:M==null?void 0:M.ease,interpolate:M==null?void 0:M.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{y({connection:{...lJ}})},updateConnection:x=>{y({connection:x})},reset:()=>y({...MW()})}},Object.is);function gHe({initialNodes:e,initialEdges:t,defaultNodes:n,defaultEdges:o,initialWidth:r,initialHeight:a,initialMinZoom:i,initialMaxZoom:s,initialFitViewOptions:c,fitView:l,nodeOrigin:h,nodeExtent:d,zIndexMode:p,children:y}){const[g]=m.useState(()=>mHe({nodes:e,edges:t,defaultNodes:n,defaultEdges:o,width:r,height:a,fitView:l,minZoom:i,maxZoom:s,fitViewOptions:c,nodeOrigin:h,nodeExtent:d,zIndexMode:p}));return f.jsx(RTe,{value:g,children:f.jsx(rDe,{children:y})})}function kHe({children:e,nodes:t,edges:n,defaultNodes:o,defaultEdges:r,width:a,height:i,fitView:s,fitViewOptions:c,minZoom:l,maxZoom:h,nodeOrigin:d,nodeExtent:p,zIndexMode:y}){return m.useContext(bR)?f.jsx(f.Fragment,{children:e}):f.jsx(gHe,{initialNodes:t,initialEdges:n,defaultNodes:o,defaultEdges:r,initialWidth:a,initialHeight:i,fitView:s,initialFitViewOptions:c,initialMinZoom:l,initialMaxZoom:h,nodeOrigin:d,nodeExtent:p,zIndexMode:y,children:e})}const vHe={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function xHe({nodes:e,edges:t,defaultNodes:n,defaultEdges:o,className:r,nodeTypes:a,edgeTypes:i,onNodeClick:s,onEdgeClick:c,onInit:l,onMove:h,onMoveStart:d,onMoveEnd:p,onConnect:y,onConnectStart:g,onConnectEnd:k,onClickConnectStart:x,onClickConnectEnd:v,onNodeMouseEnter:M,onNodeMouseMove:w,onNodeMouseLeave:b,onNodeContextMenu:C,onNodeDoubleClick:_,onNodeDragStart:S,onNodeDrag:L,onNodeDragStop:A,onNodesDelete:I,onEdgesDelete:R,onDelete:j,onSelectionChange:V,onSelectionDragStart:$,onSelectionDrag:T,onSelectionDragStop:D,onSelectionContextMenu:F,onSelectionStart:z,onSelectionEnd:E,onBeforeDelete:N,connectionMode:W,connectionLineType:O=Ei.Bezier,connectionLineStyle:P,connectionLineComponent:Y,connectionLineContainerStyle:Z,deleteKeyCode:te="Backspace",selectionKeyCode:ie="Shift",selectionOnDrag:re=!1,selectionMode:ae=F0.Full,panActivationKeyCode:se="Space",multiSelectionKeyCode:ve=kf()?"Meta":"Control",zoomActivationKeyCode:ke=kf()?"Meta":"Control",snapToGrid:ge,snapGrid:Pe,onlyRenderVisibleElements:Be=!1,selectNodesOnDrag:De,nodesDraggable:pe,autoPanOnNodeFocus:me,nodesConnectable:Ae,nodesFocusable:Ue,nodeOrigin:ut=VJ,edgesFocusable:et,edgesReconnectable:le,elementsSelectable:rn=!0,defaultViewport:Gt=XTe,minZoom:J=.5,maxZoom:H=2,translateExtent:Q=yf,preventScrolling:be=!0,nodeExtent:Ee,defaultMarkerColor:wt="#b1b1b7",zoomOnScroll:gn=!0,zoomOnPinch:an=!0,panOnScroll:Fn=!1,panOnScrollSpeed:qn=.5,panOnScrollMode:Me=Bd.Free,zoomOnDoubleClick:Fe=!0,panOnDrag:dn=!0,onPaneClick:gr,onPaneMouseEnter:pt,onPaneMouseMove:dt,onPaneMouseLeave:Vn,onPaneScroll:ma,onPaneContextMenu:Qt,paneClickDistance:Pt=1,nodeClickDistance:Jt=0,children:mu,onReconnect:gu,onReconnectStart:ku,onReconnectEnd:vu,onEdgeContextMenu:xu,onEdgeDoubleClick:wu,onEdgeMouseEnter:hs,onEdgeMouseMove:fs,onEdgeMouseLeave:ps,reconnectRadius:ys=10,onNodesChange:ga,onEdgesChange:ka,noDragClassName:Mu="nodrag",noWheelClassName:bu="nowheel",noPanClassName:Co="nopan",fitView:Qa,fitViewOptions:Ja,connectOnClick:He,attributionPosition:Ht,proOptions:ms,defaultEdgeOptions:_u,elevateNodesOnSelect:va=!0,elevateEdgesOnSelect:kr=!1,disableKeyboardA11y:xa=!1,autoPanOnConnect:Sn,autoPanOnNodeDrag:Oo,autoPanSpeed:kn,connectionRadius:Ot,isValidConnection:ei,onError:gs,style:Fo,id:ti,nodeDragThreshold:wa,connectionDragThreshold:en,viewport:qo,onViewportChange:So,width:vr,height:ni,colorMode:Cu="light",debug:Su,onScroll:Lo,ariaLabelConfig:ks,zIndexMode:Vo="basic",...xr},Lu){const Ln=ti||"1",no=JTe(Cu),oo=m.useCallback(Nn=>{Nn.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Lo==null||Lo(Nn)},[Lo]);return f.jsx("div",{"data-testid":"rf__wrapper",...xr,onScroll:oo,style:{...Fo,...vHe},ref:Lu,className:Yt(["react-flow",r,no]),id:ti,role:"application",children:f.jsxs(kHe,{nodes:e,edges:t,width:vr,height:ni,fitView:Qa,fitViewOptions:Ja,minZoom:J,maxZoom:H,nodeOrigin:ut,nodeExtent:Ee,zIndexMode:Vo,children:[f.jsx(QTe,{nodes:e,edges:t,defaultNodes:n,defaultEdges:o,onConnect:y,onConnectStart:g,onConnectEnd:k,onClickConnectStart:x,onClickConnectEnd:v,nodesDraggable:pe,autoPanOnNodeFocus:me,nodesConnectable:Ae,nodesFocusable:Ue,edgesFocusable:et,edgesReconnectable:le,elementsSelectable:rn,elevateNodesOnSelect:va,elevateEdgesOnSelect:kr,minZoom:J,maxZoom:H,nodeExtent:Ee,onNodesChange:ga,onEdgesChange:ka,snapToGrid:ge,snapGrid:Pe,connectionMode:W,translateExtent:Q,connectOnClick:He,defaultEdgeOptions:_u,fitView:Qa,fitViewOptions:Ja,onNodesDelete:I,onEdgesDelete:R,onDelete:j,onNodeDragStart:S,onNodeDrag:L,onNodeDragStop:A,onSelectionDrag:T,onSelectionDragStart:$,onSelectionDragStop:D,onMove:h,onMoveStart:d,onMoveEnd:p,noPanClassName:Co,nodeOrigin:ut,rfId:Ln,autoPanOnConnect:Sn,autoPanOnNodeDrag:Oo,autoPanSpeed:kn,onError:gs,connectionRadius:Ot,isValidConnection:ei,selectNodesOnDrag:De,nodeDragThreshold:wa,connectionDragThreshold:en,onBeforeDelete:N,debug:Su,ariaLabelConfig:ks,zIndexMode:Vo}),f.jsx(yHe,{onInit:l,onNodeClick:s,onEdgeClick:c,onNodeMouseEnter:M,onNodeMouseMove:w,onNodeMouseLeave:b,onNodeContextMenu:C,onNodeDoubleClick:_,nodeTypes:a,edgeTypes:i,connectionLineType:O,connectionLineStyle:P,connectionLineComponent:Y,connectionLineContainerStyle:Z,selectionKeyCode:ie,selectionOnDrag:re,selectionMode:ae,deleteKeyCode:te,multiSelectionKeyCode:ve,panActivationKeyCode:se,zoomActivationKeyCode:ke,onlyRenderVisibleElements:Be,defaultViewport:Gt,translateExtent:Q,minZoom:J,maxZoom:H,preventScrolling:be,zoomOnScroll:gn,zoomOnPinch:an,zoomOnDoubleClick:Fe,panOnScroll:Fn,panOnScrollSpeed:qn,panOnScrollMode:Me,panOnDrag:dn,onPaneClick:gr,onPaneMouseEnter:pt,onPaneMouseMove:dt,onPaneMouseLeave:Vn,onPaneScroll:ma,onPaneContextMenu:Qt,paneClickDistance:Pt,nodeClickDistance:Jt,onSelectionContextMenu:F,onSelectionStart:z,onSelectionEnd:E,onReconnect:gu,onReconnectStart:ku,onReconnectEnd:vu,onEdgeContextMenu:xu,onEdgeDoubleClick:wu,onEdgeMouseEnter:hs,onEdgeMouseMove:fs,onEdgeMouseLeave:ps,reconnectRadius:ys,defaultMarkerColor:wt,noDragClassName:Mu,noWheelClassName:bu,noPanClassName:Co,rfId:Ln,disableKeyboardA11y:xa,nodeExtent:Ee,viewport:qo,onViewportChange:So}),f.jsx(KTe,{onSelectionChange:V}),mu,f.jsx(VTe,{proOptions:ms,position:Ht}),f.jsx(qTe,{rfId:Ln,disableKeyboardA11y:xa})]})})}var wHe=GJ(xHe);const MHe=e=>{var t;return(t=e.domNode)==null?void 0:t.querySelector(".react-flow__edgelabel-renderer")};function bHe({children:e}){const t=je(MHe);return t?su.createPortal(e,t):null}const _He=e=>{var t;return(t=e.domNode)==null?void 0:t.querySelector(".react-flow__viewport-portal")};function gee({children:e}){const t=je(_He);return t?su.createPortal(e,t):null}function kee(){const e=St();return m.useCallback(t=>{const{domNode:n,updateNodeInternals:o}=e.getState(),r=Array.isArray(t)?t:[t],a=new Map;r.forEach(i=>{const s=n==null?void 0:n.querySelector(`.react-flow__node[data-id="${i}"]`);s&&a.set(i,{id:i,nodeElement:s,force:!0})}),requestAnimationFrame(()=>o(a,{triggerFitView:!1}))},[])}function bW(e){return je(m.useCallback(n=>n.nodeLookup.get(e),[e]),jt)}function CHe({dimensions:e,lineWidth:t,variant:n,className:o}){return f.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:Yt(["react-flow__background-pattern",n,o])})}function SHe({radius:e,className:t}){return f.jsx("circle",{cx:e,cy:e,r:e,className:Yt(["react-flow__background-pattern","dots",t])})}var Wi;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(Wi||(Wi={}));const LHe={[Wi.Dots]:1,[Wi.Lines]:1,[Wi.Cross]:6},NHe=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function vee({id:e,variant:t=Wi.Dots,gap:n=20,size:o,lineWidth:r=1,offset:a=0,color:i,bgColor:s,style:c,className:l,patternClassName:h}){const d=m.useRef(null),{transform:p,patternId:y}=je(NHe,jt),g=o||LHe[t],k=t===Wi.Dots,x=t===Wi.Cross,v=Array.isArray(n)?n:[n,n],M=[v[0]*p[2]||1,v[1]*p[2]||1],w=g*p[2],b=Array.isArray(a)?a:[a,a],C=x?[w,w]:M,_=[b[0]*p[2]||1+C[0]/2,b[1]*p[2]||1+C[1]/2],S=`${y}${e||""}`;return f.jsxs("svg",{className:Yt(["react-flow__background",l]),style:{...c,...CR,"--xy-background-color-props":s,"--xy-background-pattern-color-props":i},ref:d,"data-testid":"rf__background",children:[f.jsx("pattern",{id:S,x:p[0]%M[0],y:p[1]%M[1],width:M[0],height:M[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${_[0]},-${_[1]})`,children:k?f.jsx(SHe,{radius:w/2,className:h}):f.jsx(CHe,{dimensions:C,lineWidth:r,variant:t,className:h})}),f.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${S})`})]})}vee.displayName="Background";const IHe=m.memo(vee);function AHe(){return f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:f.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function EHe(){return f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:f.jsx("path",{d:"M0 0h32v4.2H0z"})})}function jHe(){return f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:f.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function $He(){return f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:f.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function PHe(){return f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:f.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function s0({children:e,className:t,...n}){return f.jsx("button",{type:"button",className:Yt(["react-flow__controls-button",t]),...n,children:e})}const zHe=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function xee({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:o=!0,fitViewOptions:r,onZoomIn:a,onZoomOut:i,onFitView:s,onInteractiveChange:c,className:l,children:h,position:d="bottom-left",orientation:p="vertical","aria-label":y}){const g=St(),{isInteractive:k,minZoomReached:x,maxZoomReached:v,ariaLabelConfig:M}=je(zHe,jt),{zoomIn:w,zoomOut:b,fitView:C}=_R(),_=()=>{w(),a==null||a()},S=()=>{b(),i==null||i()},L=()=>{C(r),s==null||s()},A=()=>{g.setState({nodesDraggable:!k,nodesConnectable:!k,elementsSelectable:!k}),c==null||c(!k)},I=p==="horizontal"?"horizontal":"vertical";return f.jsxs(W0,{className:Yt(["react-flow__controls",I,l]),position:d,style:e,"data-testid":"rf__controls","aria-label":y??M["controls.ariaLabel"],children:[t&&f.jsxs(f.Fragment,{children:[f.jsx(s0,{onClick:_,className:"react-flow__controls-zoomin",title:M["controls.zoomIn.ariaLabel"],"aria-label":M["controls.zoomIn.ariaLabel"],disabled:v,children:f.jsx(AHe,{})}),f.jsx(s0,{onClick:S,className:"react-flow__controls-zoomout",title:M["controls.zoomOut.ariaLabel"],"aria-label":M["controls.zoomOut.ariaLabel"],disabled:x,children:f.jsx(EHe,{})})]}),n&&f.jsx(s0,{className:"react-flow__controls-fitview",onClick:L,title:M["controls.fitView.ariaLabel"],"aria-label":M["controls.fitView.ariaLabel"],children:f.jsx(jHe,{})}),o&&f.jsx(s0,{className:"react-flow__controls-interactive",onClick:A,title:M["controls.interactive.ariaLabel"],"aria-label":M["controls.interactive.ariaLabel"],children:k?f.jsx(PHe,{}):f.jsx($He,{})}),h]})}xee.displayName="Controls";const RHe=m.memo(xee);function THe({id:e,x:t,y:n,width:o,height:r,style:a,color:i,strokeColor:s,strokeWidth:c,className:l,borderRadius:h,shapeRendering:d,selected:p,onClick:y}){const{background:g,backgroundColor:k}=a||{},x=i||g||k;return f.jsx("rect",{className:Yt(["react-flow__minimap-node",{selected:p},l]),x:t,y:n,rx:h,ry:h,width:o,height:r,style:{fill:x,stroke:s,strokeWidth:c},shapeRendering:d,onClick:y?v=>y(v,e):void 0})}const DHe=m.memo(THe),HHe=e=>e.nodes.map(t=>t.id),rD=e=>e instanceof Function?e:()=>e;function OHe({nodeStrokeColor:e,nodeColor:t,nodeClassName:n="",nodeBorderRadius:o=5,nodeStrokeWidth:r,nodeComponent:a=DHe,onClick:i}){const s=je(HHe,jt),c=rD(t),l=rD(e),h=rD(n),d=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return f.jsx(f.Fragment,{children:s.map(p=>f.jsx(qHe,{id:p,nodeColorFunc:c,nodeStrokeColorFunc:l,nodeClassNameFunc:h,nodeBorderRadius:o,nodeStrokeWidth:r,NodeComponent:a,onClick:i,shapeRendering:d},p))})}function FHe({id:e,nodeColorFunc:t,nodeStrokeColorFunc:n,nodeClassNameFunc:o,nodeBorderRadius:r,nodeStrokeWidth:a,shapeRendering:i,NodeComponent:s,onClick:c}){const{node:l,x:h,y:d,width:p,height:y}=je(g=>{const k=g.nodeLookup.get(e);if(!k)return{node:void 0,x:0,y:0,width:0,height:0};const x=k.internals.userNode,{x:v,y:M}=k.internals.positionAbsolute,{width:w,height:b}=Xa(x);return{node:x,x:v,y:M,width:w,height:b}},jt);return!l||l.hidden||!mJ(l)?null:f.jsx(s,{x:h,y:d,width:p,height:y,style:l.style,selected:!!l.selected,className:o(l),color:t(l),borderRadius:r,strokeColor:n(l),strokeWidth:a,shapeRendering:i,onClick:c,id:l.id})}const qHe=m.memo(FHe);var VHe=m.memo(OHe);const BHe=200,UHe=150,WHe=e=>!e.hidden,GHe=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?yJ(Ff(e.nodeLookup,{filter:WHe}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},KHe="react-flow__minimap-desc";function wee({style:e,className:t,nodeStrokeColor:n,nodeColor:o,nodeClassName:r="",nodeBorderRadius:a=5,nodeStrokeWidth:i,nodeComponent:s,bgColor:c,maskColor:l,maskStrokeColor:h,maskStrokeWidth:d,position:p="bottom-right",onClick:y,onNodeClick:g,pannable:k=!1,zoomable:x=!1,ariaLabel:v,inversePan:M,zoomStep:w=1,offsetScale:b=5}){const C=St(),_=m.useRef(null),{boundingRect:S,viewBB:L,rfId:A,panZoom:I,translateExtent:R,flowWidth:j,flowHeight:V,ariaLabelConfig:$}=je(GHe,jt),T=(e==null?void 0:e.width)??BHe,D=(e==null?void 0:e.height)??UHe,F=S.width/T,z=S.height/D,E=Math.max(F,z),N=E*T,W=E*D,O=b*E,P=S.x-(N-S.width)/2-O,Y=S.y-(W-S.height)/2-O,Z=N+O*2,te=W+O*2,ie=`${KHe}-${A}`,re=m.useRef(0),ae=m.useRef();re.current=E,m.useEffect(()=>{if(_.current&&I)return ae.current=XRe({domNode:_.current,panZoom:I,getTransform:()=>C.getState().transform,getViewScale:()=>re.current}),()=>{var ge;(ge=ae.current)==null||ge.destroy()}},[I]),m.useEffect(()=>{var ge;(ge=ae.current)==null||ge.update({translateExtent:R,width:j,height:V,inversePan:M,pannable:k,zoomStep:w,zoomable:x})},[k,x,M,w,R,j,V]);const se=y?ge=>{var De;const[Pe,Be]=((De=ae.current)==null?void 0:De.pointer(ge))||[0,0];y(ge,{x:Pe,y:Be})}:void 0,ve=g?m.useCallback((ge,Pe)=>{const Be=C.getState().nodeLookup.get(Pe).internals.userNode;g(ge,Be)},[]):void 0,ke=v??$["minimap.ariaLabel"];return f.jsx(W0,{position:p,style:{...e,"--xy-minimap-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-background-color-props":typeof l=="string"?l:void 0,"--xy-minimap-mask-stroke-color-props":typeof h=="string"?h:void 0,"--xy-minimap-mask-stroke-width-props":typeof d=="number"?d*E:void 0,"--xy-minimap-node-background-color-props":typeof o=="string"?o:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof i=="number"?i:void 0},className:Yt(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:f.jsxs("svg",{width:T,height:D,viewBox:`${P} ${Y} ${Z} ${te}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":ie,ref:_,onClick:se,children:[ke&&f.jsx("title",{id:ie,children:ke}),f.jsx(VHe,{onClick:ve,nodeColor:o,nodeStrokeColor:n,nodeBorderRadius:a,nodeClassName:r,nodeStrokeWidth:i,nodeComponent:s}),f.jsx("path",{className:"react-flow__minimap-mask",d:`M${P-O},${Y-O}h${Z+O*2}v${te+O*2}h${-Z-O*2}z
8468
8468
  M${L.x},${L.y}h${L.width}v${L.height}h${-L.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}wee.displayName="MiniMap";const XHe=m.memo(wee),ZHe=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,YHe={[Ji.Line]:"right",[Ji.Handle]:"bottom-right"};function QHe({nodeId:e,position:t,variant:n=Ji.Handle,className:o,style:r=void 0,children:a,color:i,minWidth:s=10,minHeight:c=10,maxWidth:l=Number.MAX_VALUE,maxHeight:h=Number.MAX_VALUE,keepAspectRatio:d=!1,resizeDirection:p,autoScale:y=!0,shouldResize:g,onResizeStart:k,onResize:x,onResizeEnd:v}){const M=YJ(),w=typeof e=="string"?e:M,b=St(),C=m.useRef(null),_=n===Ji.Handle,S=je(m.useCallback(ZHe(_&&y),[_,y]),jt),L=m.useRef(null),A=t??YHe[n];m.useEffect(()=>{if(!(!C.current||!w))return L.current||(L.current=lTe({domNode:C.current,nodeId:w,getStoreItems:()=>{const{nodeLookup:R,transform:j,snapGrid:V,snapToGrid:$,nodeOrigin:T,domNode:D}=b.getState();return{nodeLookup:R,transform:j,snapGrid:V,snapToGrid:$,nodeOrigin:T,paneDomNode:D}},onChange:(R,j)=>{const{triggerNodeChanges:V,nodeLookup:$,parentLookup:T,nodeOrigin:D}=b.getState(),F=[],z={x:R.x,y:R.y},E=$.get(w);if(E&&E.expandParent&&E.parentId){const N=E.origin??D,W=R.width??E.measured.width??0,O=R.height??E.measured.height??0,P={id:E.id,parentId:E.parentId,rect:{width:W,height:O,...gJ({x:R.x??E.position.x,y:R.y??E.position.y},{width:W,height:O},E.parentId,$,N)}},Y=gq([P],$,T,D);F.push(...Y),z.x=R.x?Math.max(N[0]*W,R.x):void 0,z.y=R.y?Math.max(N[1]*O,R.y):void 0}if(z.x!==void 0&&z.y!==void 0){const N={id:w,type:"position",position:{...z}};F.push(N)}if(R.width!==void 0&&R.height!==void 0){const W={id:w,type:"dimensions",resizing:!0,setAttributes:p?p==="horizontal"?"width":"height":!0,dimensions:{width:R.width,height:R.height}};F.push(W)}for(const N of j){const W={...N,type:"position"};F.push(W)}V(F)},onEnd:({width:R,height:j})=>{const V={id:w,type:"dimensions",resizing:!1,dimensions:{width:R,height:j}};b.getState().triggerNodeChanges([V])}})),L.current.update({controlPosition:A,boundaries:{minWidth:s,minHeight:c,maxWidth:l,maxHeight:h},keepAspectRatio:d,resizeDirection:p,onResizeStart:k,onResize:x,onResizeEnd:v,shouldResize:g}),()=>{var R;(R=L.current)==null||R.destroy()}},[A,s,c,l,h,d,k,x,v,g]);const I=A.split("-");return f.jsx("div",{className:Yt(["react-flow__resize-control","nodrag",...I,n,o]),ref:C,style:{...r,scale:S,...i&&{[_?"backgroundColor":"borderColor"]:i}},children:a})}const _W=m.memo(QHe),JHe=24,eOe=e=>({type:mf.ArrowClosed,width:18,height:18,...e?{color:e}:{}}),Mee={solid:{},dashed:{strokeDasharray:"6 4"},dotted:{strokeDasharray:"2 4"}},tOe=3,CW=new WeakMap,nOe=(e,t,n=!1)=>{const o=CW.get(e);if(o&&o.isAdjacentToRunning===t&&o.selected===n)return o.edge;const r=e.style?Mee[e.style]:{},a=Ct(e.color,"edge"),i=e.borderSize??2,s=n?Math.max(tOe,i):i,l={...r,...a,...n?{strokeWidth:s,opacity:1}:{strokeWidth:s}},h=e.direction??"forward",d=a.stroke,p=e.headShape??"arrow",y=e.tailShape??p,g=h==="backward"||h==="both",k=h==="forward"||h==="both",x=p!=="arrow",v=y!=="arrow",M=eOe(d),w=g&&!v?M:void 0,b=k&&!x?M:void 0,C=x||v,_={id:e.id,source:e.source,target:e.target,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle,type:"editableEdge",label:e.label,animated:t,data:{path:e.path,sourceHandleAutoPicked:e.sourceHandleAutoPicked,targetHandleAutoPicked:e.targetHandleAutoPicked,sourcePin:e.sourcePin,targetPin:e.targetPin,fontSize:e.fontSize,...C?{...x?{headShape:p}:{},...v?{tailShape:y}:{},headStart:g,headEnd:k}:{}},style:l,markerStart:w,markerEnd:b,interactionWidth:JHe};return CW.set(e,{isAdjacentToRunning:t,selected:n,edge:_}),_},oOe=(e,t={})=>{const n=t.setTimer??((l,h)=>globalThis.setTimeout(l,h)),o=t.clearTimer??(l=>{globalThis.clearTimeout(l)});let r=null,a=null;return{schedule:l=>{r!==null&&o(r),a=l,r=n(()=>{r=null;const h=a;a=null,h&&h()},e)},flush:()=>{r!==null&&(o(r),r=null);const l=a;a=null,l&&l()},cancel:()=>{r!==null&&(o(r),r=null),a=null},get pending(){return r!==null}}},bee="seeflow:detail-panel-width",Fu=380,cO=320,lO=800;function dO(e){return Number.isFinite(e)?e<cO?cO:e>lO?lO:e:Fu}function rOe(){if(typeof window>"u")return Fu;try{const e=window.localStorage.getItem(bee);if(e===null)return Fu;const t=Number(e);return!Number.isFinite(t)||t<cO||t>lO?Fu:t}catch{return Fu}}function aOe(e){if(!(typeof window>"u"))try{const t=dO(e);window.localStorage.setItem(bee,String(t))}catch{}}function iOe(e,t,n,o){const r=typeof window>"u"?null:window;if(!r)return;let a=dO(e);const i=c=>{a=dO(e+(t-c.clientX)),n.onWidth(a)},s=()=>{r.removeEventListener("pointermove",i),r.removeEventListener("pointerup",s),r.removeEventListener("pointercancel",s),n.onCommit(a)};r.addEventListener("pointermove",i),r.addEventListener("pointerup",s),r.addEventListener("pointercancel",s)}function sOe(e,t,n){return`${n!==void 0?n.replace(/\/+$/,""):"/api/projects"}/${encodeURIComponent(e)}/files/${encodeURI(t)}`}const wf=(e,t)=>{const n=e.w/2,o=e.h/2,r=e.x+n,a=e.y+o,i=t.x-r,s=t.y-a;if(i===0&&s===0)return{x:r,y:a,side:"right"};const c=Math.abs(i),l=Math.abs(s),h=c===0?Number.POSITIVE_INFINITY:n/c,d=l===0?Number.POSITIVE_INFINITY:o/l,p=Math.min(h,d),y=r+i*p,g=a+s*p,k=c*o>=l*n?i>=0?"right":"left":s>=0?"bottom":"top";return{x:y,y:g,side:k}},uO=(e,t)=>{const n=Math.max(0,Math.min(e.w,t.x-e.x)),o=Math.max(0,Math.min(e.h,t.y-e.y)),r=n,a=e.w-n,i=o,s=e.h-o,c=Math.min(r,a,i,s),l=e.h===0?0:o/e.h,h=e.w===0?0:n/e.w;return c===r?{side:"left",t:l}:c===a?{side:"right",t:l}:c===i?{side:"top",t:h}:{side:"bottom",t:h}},gz=(e,t)=>{const n=Math.min(1,Math.max(0,t.t));let o,r;switch(t.side){case"top":o=e.x+n*e.w,r=e.y;break;case"bottom":o=e.x+n*e.w,r=e.y+e.h;break;case"left":o=e.x,r=e.y+n*e.h;break;case"right":o=e.x+e.w,r=e.y+n*e.h;break}return{x:o,y:r,side:t.side}},cOe=(e,t)=>{const n=o=>Math.min(1,Math.max(0,o));switch(t.side){case"top":case"bottom":return{side:t.side,t:e.w===0?0:n((t.x-e.x)/e.w)};case"left":case"right":return{side:t.side,t:e.h===0?0:n((t.y-e.y)/e.h)}}},lOe=(e,t)=>{const n=(e==null?void 0:e.fallback)??{x:0,y:0,side:"right"},o=(t==null?void 0:t.fallback)??{x:0,y:0,side:"left"};if(!e||!t)return{source:n,target:o};const r={x:e.box.x+e.box.w/2,y:e.box.y+e.box.h/2},a={x:t.box.x+t.box.w/2,y:t.box.y+t.box.h/2},i=e.pin?gz(e.box,e.pin):e.autoPicked===!1?e.fallback:wf(e.box,a),s=t.pin?gz(t.box,t.pin):t.autoPicked===!1?t.fallback:wf(t.box,r);return{source:i,target:s}};function Pi({initialValue:e,onCommit:t,onExit:n,multiline:o=!1,commitMode:r="enter-commits",required:a=!1,field:i,className:s,style:c,placeholder:l,selectOnMount:h=!0}){const d=o||r==="blur-only",p=m.useRef(null),[y,g]=m.useState(!1),[k,x]=m.useState(e.length===0),v=m.useRef(oOe(400)),M=m.useRef(e),w=m.useRef(!1);m.useEffect(()=>{const j=p.current;if(!j)return;j.textContent=e,j.focus();const V=window.getSelection();if(V){const T=document.createRange();T.selectNodeContents(j),h||T.collapse(!1),V.removeAllRanges(),V.addRange(T)}const $=v.current;return()=>{$.flush()}},[]);const b=()=>{const j=p.current;return j?d?j.innerText:j.textContent??"":""},C=j=>{v.current.cancel(),j!==M.current&&(M.current=j,t(j))},_=()=>{const j=b();if(x(j.length===0),a&&j.trim().length===0){v.current.cancel();return}v.current.schedule(()=>C(j))},S=()=>{v.current.cancel();const j=b();if(a&&j.trim().length===0){const V=p.current;V&&(V.textContent=e),g(!0),setTimeout(()=>g(!1),320),n();return}C(j),n()},L=()=>{v.current.cancel();const j=p.current;j&&(j.textContent=e),n()},A=j=>{if(j.stopPropagation(),j.nativeEvent.stopPropagation(),j.key==="Enter"){if(r==="blur-only"||o&&j.shiftKey){j.preventDefault(),document.execCommand("insertText",!1,`
8469
- `);return}j.preventDefault(),w.current=!0,S();return}j.key==="Escape"&&(j.preventDefault(),w.current=!0,L())},I=j=>{j.preventDefault();const V=j.clipboardData.getData("text/plain");document.execCommand("insertText",!1,V)},R=()=>{if(w.current){w.current=!1;return}const j=p.current;!j||!j.isConnected||S()};return f.jsx("div",{ref:p,"data-testid":"inline-edit-input","data-field":i,"data-placeholder":l,role:"textbox",tabIndex:0,contentEditable:!0,suppressContentEditableWarning:!0,spellCheck:!1,onInput:_,onKeyDown:A,onPaste:I,onBlur:R,onMouseDown:j=>j.stopPropagation(),onClick:j=>j.stopPropagation(),onDoubleClick:j=>j.stopPropagation(),style:c,className:ee("nodrag nopan nowheel sf:block sf:w-full sf:bg-transparent sf:p-0 sf:text-inherit sf:outline-none","sf:whitespace-pre-wrap sf:wrap-break-word",k&&l?"inline-edit-empty":"",y?"inline-edit-shake":"",s)})}const _ee=8,SW=12,LW={height:`${_ee}px`,borderColor:"transparent"},NW={width:`${_ee}px`,borderColor:"transparent"},dOe={width:`${SW}px`,height:`${SW}px`,background:"transparent",border:"none"},uOe={width:"calc(10px / var(--rf-zoom, 1))",height:"calc(10px / var(--rf-zoom, 1))",background:"hsl(var(--background))",border:"calc(1px / var(--rf-zoom, 1)) solid hsl(var(--primary) / 0.6)",borderRadius:"calc(2px / var(--rf-zoom, 1))",zIndex:1},hOe=[{position:"top",style:LW},{position:"bottom",style:LW},{position:"left",style:NW},{position:"right",style:NW}],fOe=["top-left","top-right","bottom-left","bottom-right"],IW={pointerEvents:"none",cursor:"default"};function cu({visible:e,minWidth:t=80,minHeight:n=40,onResizeStart:o,onResize:r,onResizeEnd:a,cornerVariant:i="invisible"}){const s=i==="visible"?uOe:dOe,c=h=>e?h:{...h,...IW},l=e?s:{...s,opacity:0,...IW};return f.jsxs(f.Fragment,{children:[hOe.map(({position:h,style:d})=>f.jsx(_W,{position:h,variant:Ji.Line,minWidth:t,minHeight:n,style:c(d),onResizeStart:o,onResize:r,onResizeEnd:a,children:f.jsx("span",{"data-testid":"resize-control","data-position":h})},h)),fOe.map(h=>f.jsx(_W,{position:h,variant:Ji.Handle,minWidth:t,minHeight:n,style:l,autoScale:!1,onResizeStart:o,onResize:r,onResizeEnd:a,children:f.jsx("span",{"data-testid":"resize-control","data-position":h})},h))]})}function AW(e){const t=e==null?void 0:e.sourceEvent;return{metaKey:t==null?void 0:t.metaKey,ctrlKey:t==null?void 0:t.ctrlKey}}function pOe(e,t){return{left:t.x!==e.x,right:t.x+t.width!==e.x+e.width,top:t.y!==e.y,bottom:t.y+t.height!==e.y+e.height}}function yOe(e){return!!(e.left||e.right||e.top||e.bottom)}function lu(e){const{onResize:t,onResizeEnd:n,onResizeFinal:o,setResizing:r,nodeId:a,alignment:i}=e,[s,c]=m.useState(!1),l=m.useRef(null),h=m.useRef(!1),d=m.useRef(t),p=m.useRef(n),y=m.useRef(o),g=m.useRef(r),k=m.useRef(i),x=m.useRef(a);m.useEffect(()=>{d.current=t},[t]),m.useEffect(()=>{p.current=n},[n]),m.useEffect(()=>{y.current=o},[o]),m.useEffect(()=>{g.current=r},[r]),m.useEffect(()=>{k.current=i},[i]),m.useEffect(()=>{x.current=a},[a]);const v=m.useCallback((b,C)=>{var _;c(!0),(_=g.current)==null||_.call(g,!0),h.current=!1,l.current=C?{x:C.x,y:C.y,width:C.width,height:C.height}:null},[]),M=m.useCallback((b,C)=>{var I;let _={x:C.x,y:C.y,width:C.width,height:C.height};const S=k.current,L=x.current,A=l.current;if(S&&L&&A){if(!h.current){const R=pOe(A,C);yOe(R)&&(S.beginResize(L,R),h.current=!0)}if(h.current){const{snappedRect:R}=S.applyResizeSnap({id:L,x:C.x,y:C.y,w:C.width,h:C.height},AW(b));_={x:R.x,y:R.y,width:R.w,height:R.h}}}(I=d.current)==null||I.call(d,_)},[]),w=m.useCallback((b,C)=>{var R,j,V,$;c(!1),(R=g.current)==null||R.call(g,!1);const _=l.current;l.current=null;const S=h.current;h.current=!1;const L=k.current,A=x.current;if(_&&_.width===C.width&&_.height===C.height){S&&(L==null||L.endResize());return}let I={x:C.x,y:C.y,width:C.width,height:C.height};if(L&&A&&S){const{snappedRect:T}=L.applyResizeSnap({id:A,x:C.x,y:C.y,w:C.width,h:C.height},AW(b));I={x:T.x,y:T.y,width:T.w,height:T.h}}L==null||L.endResize(),(j=d.current)==null||j.call(d,I),(V=p.current)==null||V.call(p,I),_&&(($=y.current)==null||$.call(y,I,_))},[]);return{isResizing:s,onResizeStart:v,onResizeEvent:M,onResizeEnd:w}}const G0={width:48,height:48},mOe=24,gOe=24,Bp="sf:opacity-0 sf:transition-opacity";function kOe(e){return Ct(e,"text").color??"currentColor"}function vOe({id:e,data:t,selected:n,isConnectable:o}){const{onResizeStart:r,onResizeEvent:a,onResizeEnd:i}=lu({onResize:x=>{var v;return(v=t.onResize)==null?void 0:v.call(t,e,x)},onResizeEnd:x=>{var v;return(v=t.onResizeEnd)==null?void 0:v.call(t,e,x)},setResizing:t.setResizing,nodeId:e,alignment:t.resizeAlignment}),s=t.width!==void 0||t.height!==void 0,c=!!t.onNameChange,[l,h]=m.useState(!1),{studioBaseUrl:d}=m.useContext(Tf),p=kOe(t.color),y=t.strokeWidth??2,g={...s?{}:{width:G0.width,height:G0.height}},k=x=>{!c||l||(x.stopPropagation(),h(!0))};return f.jsxs("div",{className:ee("sf:group sf:relative",s?"sf:h-full sf:w-full":""),style:g,"data-testid":"icon-node","data-node-type":"icon",onDoubleClick:k,children:[f.jsx(cu,{visible:!!n&&!!t.onResize&&!l,cornerVariant:"visible",minWidth:mOe,minHeight:gOe,onResizeStart:r,onResize:a,onResizeEnd:i}),f.jsx(lt,{type:"target",position:ue.Top,id:"t",isConnectable:o,className:ee(Bp,n&&"sf:opacity-100!")}),f.jsx(lt,{type:"target",position:ue.Left,id:"l",isConnectable:o,className:ee(Bp,n&&"sf:opacity-100!")}),f.jsx(Qi,{iconId:t.icon,studioBaseUrl:d,color:p,strokeWidth:y,absoluteStrokeWidth:!0,ariaLabel:t.alt,className:"sf:block sf:h-full sf:w-full sf:pointer-events-none sf:select-none"}),l&&c?f.jsx("div",{className:"sf:absolute sf:left-0 sf:right-0 sf:top-full sf:mt-1 sf:text-center sf:text-xs sf:text-muted-foreground",children:f.jsx(Pi,{initialValue:t.name??"",field:"icon-node-label",onCommit:x=>{var v;return(v=t.onNameChange)==null?void 0:v.call(t,e,x)},onExit:()=>h(!1),placeholder:"Label"})}):t.name?f.jsx("span",{"data-testid":"icon-node-label",className:"sf:pointer-events-none sf:absolute sf:left-0 sf:right-0 sf:top-full sf:mt-1 sf:truncate sf:text-center sf:text-xs sf:text-muted-foreground sf:select-none",children:t.name}):null,f.jsx(lt,{type:"source",position:ue.Right,id:"r",isConnectable:o,className:ee(Bp,n&&"sf:opacity-100!")}),f.jsx(lt,{type:"source",position:ue.Bottom,id:"b",isConnectable:o,className:ee(Bp,n&&"sf:opacity-100!")})]})}function xOe(e,t){return e.selected===t.selected&&e.data===t.data&&e.width===t.width&&e.height===t.height}const wOe=m.memo(vOe,xOe),Cee="seeflow:icon-recents",MOe=16;function See(){if(typeof window>"u")return[];try{const e=window.localStorage.getItem(Cee);if(e===null)return[];const t=JSON.parse(e);return Array.isArray(t)?t.every(n=>typeof n=="string")?t:[]:[]}catch{return[]}}function bOe(e){if(!(typeof window>"u"))try{const n=See().filter(r=>r!==e),o=[e,...n].slice(0,MOe);window.localStorage.setItem(Cee,JSON.stringify(o))}catch{}}const _Oe=typeof navigator<"u"&&typeof navigator.platform=="string"&&navigator.platform.toLowerCase().includes("mac"),COe=e=>e.length===1?e.toUpperCase():e==="Escape"?"Esc":e,Ft=(e,t=_Oe)=>{const n=COe(e.key);if(t){let r="";return e.meta&&(r+="⌘"),e.alt&&(r+="⌥"),e.shift&&(r+="⇧"),`${r}${n}`}const o=[];return e.meta&&o.push("Ctrl"),e.shift&&o.push("Shift"),e.alt&&o.push("Alt"),o.push(n),o.join("+")},vq=[{id:"tool.select",label:"Select tool",description:"Switch to the selection tool",category:"Tools",shortcut:Ft({key:"V"})},{id:"tool.hand",label:"Hand tool",description:"Pan the canvas; node interaction is suspended while armed",category:"Tools",shortcut:Ft({key:"H"})},{id:"tool.rectangle",label:"Rectangle",description:"Draw rectangle nodes",category:"Tools",shortcut:Ft({key:"R"})},{id:"tool.ellipse",label:"Ellipse",description:"Draw ellipse nodes",category:"Tools",shortcut:Ft({key:"O"})},{id:"tool.text",label:"Text",description:"Add a text node",category:"Tools",shortcut:Ft({key:"T"})},{id:"tool.sticky",label:"Sticky note",description:"Add a sticky note",category:"Tools",shortcut:Ft({key:"S"})},{id:"tool.database",label:"Database",description:"Add a database node",category:"Tools",shortcut:Ft({key:"D"})},{id:"tool.server",label:"Server",description:"Add a server node",category:"Tools"},{id:"tool.user",label:"User",description:"Add a user node",category:"Tools"},{id:"tool.queue",label:"Queue",description:"Add a queue node",category:"Tools"},{id:"tool.cloud",label:"Cloud",description:"Add a cloud node",category:"Tools"},{id:"tool.diamond",label:"Diamond",description:"Add a diamond node (decision / gateway)",category:"Tools"},{id:"tool.hexagon",label:"Hexagon",description:"Add a hexagon node (microservice)",category:"Tools"},{id:"tool.triangle",label:"Triangle",description:"Add a triangle node (warning / hierarchy)",category:"Tools"},{id:"tool.parallelogram",label:"Parallelogram",description:"Add a parallelogram node (data / IO in flowcharts)",category:"Tools"},{id:"tool.document",label:"Document",description:"Add a document node (file / report)",category:"Tools"},{id:"tool.linkflow",label:"Link node",description:"Add a link node and pick a target flow",category:"Tools"},{id:"edit.undo",label:"Undo",category:"Edit",shortcut:Ft({meta:!0,key:"Z"}),enabled:e=>e.canUndo},{id:"edit.redo",label:"Redo",category:"Edit",shortcut:Ft({meta:!0,shift:!0,key:"Z"}),enabled:e=>e.canRedo},{id:"edit.copy",label:"Copy",category:"Edit",shortcut:Ft({meta:!0,key:"C"}),enabled:e=>e.hasSelection},{id:"edit.paste",label:"Paste",category:"Edit",shortcut:Ft({meta:!0,key:"V"}),enabled:e=>e.hasClipboard},{id:"edit.duplicate",label:"Duplicate",category:"Edit",shortcut:Ft({meta:!0,key:"D"}),enabled:e=>e.hasSelection},{id:"edit.delete",label:"Delete",category:"Edit",shortcut:Ft({key:"Delete"}),enabled:e=>e.hasSelection},{id:"edit.selectAll",label:"Select all",category:"Edit",shortcut:Ft({meta:!0,key:"A"})},{id:"view.fit",label:"Fit view",description:"Fit everything in the viewport",category:"View",shortcut:Ft({meta:!0,key:"0"})},{id:"view.zoomIn",label:"Zoom in",category:"View",shortcut:Ft({meta:!0,key:"="})},{id:"view.zoomOut",label:"Zoom out",category:"View",shortcut:Ft({meta:!0,key:"-"})},{id:"view.zoom100",label:"Zoom to 100%",category:"View",shortcut:Ft({key:"1"})},{id:"view.zoomToSelection",label:"Zoom to selection",category:"View",shortcut:Ft({key:"F"}),enabled:e=>e.hasSelection},{id:"layout.tidy",label:"Tidy layout",description:"Auto-layout the canvas or current selection",category:"Layout",shortcut:Ft({meta:!0,shift:!0,key:"L"})},{id:"selection.deselect",label:"Deselect",description:"Clear selection and exit draw mode",category:"Selection",shortcut:Ft({key:"Escape"})},{id:"help.commandPalette",label:"Open command palette",category:"Help",shortcut:Ft({meta:!0,key:"P"})},{id:"export.pdf",label:"Export to PDF",description:"Download the current canvas as a PDF",category:"File",enabled:e=>e.canExportDemo},{id:"export.png",label:"Export as image",description:"Download the current canvas as a PNG",category:"File",enabled:e=>e.canExportDemo}],aD=e=>{const t=vq.find(n=>n.id===e);return t?t.shortcut?`${t.label} (${t.shortcut})`:t.label:""},SOe=1,LOe=10,NOe=e=>{if(e.metaKey||e.ctrlKey||e.altKey)return null;const t=e.shiftKey?LOe:SOe;switch(e.key){case"ArrowLeft":return{dx:-t,dy:0};case"ArrowRight":return{dx:t,dy:0};case"ArrowUp":return{dx:0,dy:-t};case"ArrowDown":return{dx:0,dy:t};default:return null}},IOe=e=>{if(!(e.metaKey||e.ctrlKey)||e.altKey)return null;switch(e.key){case"0":return"fit";case"=":case"+":return"in";case"-":case"_":return"out";default:return null}},AOe=(e,t,n)=>{if(t.length===0)return[];const o=new Map(n.map(a=>[a.id,a])),r=[];for(const a of t){const i=o.get(a);i&&r.push({id:a,position:{x:i.position.x+e.dx,y:i.position.y+e.dy}})}return r},EOe=({event:e,isEditableActive:t,hasNodes:n,hasConnectors:o,selectedIds:r,hasClipboard:a})=>{if(!(e.metaKey||e.ctrlKey))return{type:"noop"};if(e.shiftKey||e.altKey)return{type:"noop"};const i=e.key.toLowerCase();return i!=="a"&&i!=="c"&&i!=="v"&&i!=="d"?{type:"noop"}:t?{type:"noop"}:i==="a"?!n&&!o?{type:"noop"}:{type:"selectAll"}:i==="c"?r.length===0?{type:"noop"}:{type:"copy",ids:r}:i==="d"?r.length===0?{type:"noop"}:{type:"duplicate",ids:r}:a?{type:"paste"}:{type:"noop"}},jOe=(e,t)=>{if(t.isEditableActive||!(e.metaKey||e.ctrlKey)||e.altKey)return null;const n=e.key.toLowerCase();return n==="z"?e.shiftKey?"redo":"undo":n==="y"&&!e.shiftKey?"redo":null},$Oe=e=>{if(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return null;switch(e.key.toLowerCase()){case"v":return"select";case"h":return"hand";case"r":return"rectangle";case"o":return"ellipse";case"t":return"text";case"s":return"sticky";case"d":return"database";default:return null}},ja="seeflow",Lee=e=>`${e}:last-used-style:v1`,iD=()=>({node:{},connector:{}}),sD=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),xq=e=>{var t;try{const n=(t=globalThis.localStorage)==null?void 0:t.getItem(Lee(e));if(!n)return iD();const o=JSON.parse(n);if(!sD(o))return iD();const r=sD(o.node)?o.node:{},a=sD(o.connector)?o.connector:{};return{node:r,connector:a}}catch{return iD()}},Nee=(e,t)=>{var n;try{(n=globalThis.localStorage)==null||n.setItem(Lee(e),JSON.stringify(t))}catch{}},c0=e=>xq(e),EW=(e,t)=>{const{alt:n,...o}=t,r={...o};r.borderSize!==void 0&&r.borderWidth===void 0?r.borderWidth=r.borderSize:r.borderWidth!==void 0&&r.borderSize===void 0&&(r.borderSize=r.borderWidth);const a=xq(e);Nee(e,{...a,node:{...a.node,...r}})},POe=(e,t)=>{const n=xq(e);Nee(e,{...n,connector:{...n.connector,...t}})},wq=1,jW=17,hO=(e,t)=>{if(!e)return{};const n={};for(const o of t)e[o]!==void 0&&(n[o]=e[o]);return n},zOe=["borderColor","backgroundColor","borderSize","borderStyle","fontSize","cornerRadius","shadow"],ROe=["borderColor","backgroundColor","borderSize","borderStyle","fontSize","shadow"],TOe=["fontSize"],DOe=["borderColor","borderWidth","borderStyle","shadow"];function $W(e,t,n){if(e==="text")return{width:t.width,height:t.height,fontSize:jW,...hO(n,TOe)};const o=e==="ellipse"?ROe:zOe;return{width:t.width,height:t.height,borderSize:wq,fontSize:jW,...hO(n,o)}}function HOe(e,t,n){return{path:e,width:t.width,height:t.height,borderWidth:wq,...hO(n,DOe)}}const wn=async(e,t,n,o,r)=>{const a={method:t},i={...o??{}};r!==void 0&&(i["content-type"]="application/json",a.body=JSON.stringify(r)),Object.keys(i).length>0&&(a.headers=i);const s=await e(n,a);if(!s.ok){let c=null;try{c=await s.json()}catch{}throw new Error((c==null?void 0:c.error)??`${t} ${n} → ${s.status}`)}return await s.json()},OOe=e=>{const{baseUrl:t,project:n,flow:o}=e,r=e.fetch??globalThis.fetch.bind(globalThis),a=e.EventSource??globalThis.EventSource,i=e.headers,s=`${t}/api/projects/${encodeURIComponent(n)}`,c=`${s}/flows/${encodeURIComponent(o)}`,l=`${t}/api/icons`;return{async createNode(d){const p=await wn(r,"POST",`${c}/nodes`,i,d);return{id:p.id,node:p.node}},async updateNode(d,p){await wn(r,"PATCH",`${c}/nodes/${d}`,i,p)},async updateNodePosition(d,p){return await wn(r,"PATCH",`${c}/nodes/${d}/position`,i,p)},async deleteNode(d){await wn(r,"DELETE",`${c}/nodes/${d}`,i)},async reorderNode(d,p){await wn(r,"PATCH",`${c}/nodes/${d}/order`,i,p)},async createConnector(d){return{id:(await wn(r,"POST",`${c}/connectors`,i,d)).id}},async updateConnector(d,p){await wn(r,"PATCH",`${c}/connectors/${d}`,i,p)},async deleteConnector(d){await wn(r,"DELETE",`${c}/connectors/${d}`,i)},async uploadImage(d,p,y){const g=new FormData;g.append("file",p),g.append("filename",y);const k=`${c}/nodes/${encodeURIComponent(d)}/files/upload`,x={method:"POST",body:g};i&&(x.headers={...i});const v=await r(k,x);if(!v.ok){let M=null;try{M=await v.json()}catch{}throw new Error((M==null?void 0:M.error)??`POST ${k} → ${v.status}`)}return await v.json()},async playAction(d){return await wn(r,"POST",`${c}/play/${d}`,i,{})},async openFile(d){await wn(r,"POST",`${s}/files/open`,i,{path:d})},async revealFile(d){await wn(r,"POST",`${s}/files/reveal`,i,{path:d})},async computeLayout(d,p){const y=await wn(r,"POST",`${t}/api/layout`,i,{nodes:d,edges:p});return{nodes:y.nodes,connectors:y.connectors}},icons:{async listPacks(){return(await wn(r,"GET",`${l}/packs`,i)).packs},async install(d,p){return{jobId:(await wn(r,"POST",`${l}/install`,i,{vendor:d,acceptTerms:p.acceptTerms??!1})).jobId}},subscribeJob(d,p){const y=`${l}/jobs/${encodeURIComponent(d)}/events`,g=new a(y);return g.onmessage=k=>{try{p(JSON.parse(k.data))}catch(x){console.error("icons.subscribeJob: failed to parse SSE payload",x)}},()=>g.close()},async remove(d){await wn(r,"DELETE",`${l}/packs/${encodeURIComponent(d)}`,i)},async getLicense(d){const p=await wn(r,"GET",`${l}/licenses/${encodeURIComponent(d)}`,i);return{summary:p.summary,url:p.url,requiresAcceptance:p.requiresAcceptance}}}}},FOe=500,qOe=500,VOe=2e3,BOe=(e,t)=>{if(!e&&!t)return;if(!e)return{...t};if(!t)return{...e};const n={...t};for(const[o,r]of Object.entries(e))n[o]=r;return n},PW=(e,t,n)=>{const o=Date.now(),r=FOe,a=qOe,{stack:i,cursor:s}=e;if(t.coalesceKey&&s>0){const h=i[s-1];if(h&&h.coalesceKey===t.coalesceKey&&o-h.capturedAt<=a){const d=i.slice(0,s);return d[s-1]={...h,do:t.do,capturedAt:o,beforeFields:BOe(h.beforeFields,t.beforeFields)},{stack:d,cursor:s}}}const c=i.slice(0,s);c.push({...t,capturedAt:o});let l=s+1;for(;c.length>r;)c.shift(),l-=1;return l<0&&(l=0),{stack:c,cursor:l}},UOe=e=>e.cursor===0?{state:e,entry:void 0}:{state:{...e,cursor:e.cursor-1},entry:e.stack[e.cursor-1]},WOe=e=>e.cursor===e.stack.length?{state:e,entry:void 0}:{state:{...e,cursor:e.cursor+1},entry:e.stack[e.cursor]},Iee=()=>({stack:[],cursor:0}),zW=e=>e.cursor===e.stack.length?e:{stack:e.stack.slice(0,e.cursor),cursor:e.cursor},GOe=(e,t,n=Date.now(),o=VOe)=>n-t>o?Iee():e,KOe=new Set(["borderColor","backgroundColor","borderSize","borderWidth","borderStyle","fontSize","textAlign","cornerRadius","shadow","color","strokeWidth","target"]);function XOe(e,t){let n={stack:[],cursor:0},o=0;const r=new Set;let a=null;const i=()=>({canUndo:n.cursor>0,canRedo:n.cursor<n.stack.length}),s=()=>{const k=i();for(const x of r)x(k)},c=()=>{if(a){o=Date.now();return}const k=zW(n);o=Date.now(),k!==n&&(n=k,s())},l=k=>{if(a){a.ops.push({redo:k.do,undo:k.undo});return}n=PW(n,{...k,capturedAt:Date.now()}),s()},h={createNode:async k=>{c();const x=await e.createNode(k);return l({do:async()=>{await e.createNode({...k,id:x.id})},undo:async()=>{await e.deleteNode(x.id)}}),x},updateNode:async(k,x)=>{c();const{nodes:v}=t(),M=v.find(_=>_.id===k);if(!M){await e.updateNode(k,x);return}const w={},b=M.data??{};for(const _ of Object.keys(x))if(_==="position")w[_]=M.position;else if(_==="type")w[_]=M.type;else{const S=b[_];w[_]=S===void 0&&KOe.has(_)?null:S}await e.updateNode(k,x);const C=Object.keys(x).sort().join(",");l({do:async()=>{await e.updateNode(k,x)},undo:async()=>{await e.updateNode(k,w)},coalesceKey:`update:${k}:${C}`,beforeFields:w})},updateNodePosition:async(k,x)=>{c();const{nodes:v}=t(),M=v.find(C=>C.id===k),w=M==null?void 0:M.position,b=await e.updateNodePosition(k,x);return w&&l({do:async()=>{await e.updateNodePosition(k,x)},undo:async()=>{await e.updateNodePosition(k,w)},coalesceKey:`pos:${k}`}),b},deleteNode:async k=>{c();const{nodes:x,connectors:v}=t(),M=x.find(b=>b.id===k);if(!M){await e.deleteNode(k);return}const w=v.filter(b=>b.source===k||b.target===k);await e.deleteNode(k),l({do:async()=>{await e.deleteNode(k)},undo:async()=>{await e.createNode({id:M.id,type:M.type,position:M.position,data:M.data??{}});for(const b of w)try{await e.createConnector({id:b.id,source:b.source,target:b.target,sourceHandle:b.sourceHandle,targetHandle:b.targetHandle,sourceHandleAutoPicked:b.sourceHandleAutoPicked,targetHandleAutoPicked:b.targetHandleAutoPicked,sourcePin:b.sourcePin,targetPin:b.targetPin,label:b.label,style:b.style,color:b.color,direction:b.direction,eventName:b.eventName,queueName:b.queueName,method:b.method,url:b.url})}catch(C){console.warn(`[seeflow/canvas] failed to restore connector ${b.id} during deleteNode undo:`,C)}}})},reorderNode:async(k,x)=>{c();const{nodes:v}=t(),M=v.findIndex(w=>w.id===k);if(M<0){await e.reorderNode(k,x);return}await e.reorderNode(k,x),l({do:async()=>{await e.reorderNode(k,x)},undo:async()=>{await e.reorderNode(k,{op:"toIndex",index:M})}})},createConnector:async k=>{c();const x=await e.createConnector(k);return l({do:async()=>{await e.createConnector({...k,id:x.id})},undo:async()=>{await e.deleteConnector(x.id)}}),x},updateConnector:async(k,x)=>{c();const{connectors:v}=t(),M=v.find(_=>_.id===k);if(!M){await e.updateConnector(k,x);return}const w={},b=M;for(const _ of Object.keys(x))w[_]=b[_];await e.updateConnector(k,x);const C=Object.keys(x).sort().join(",");l({do:async()=>{await e.updateConnector(k,x)},undo:async()=>{await e.updateConnector(k,w)},coalesceKey:`update:conn:${k}:${C}`,beforeFields:w})},deleteConnector:async k=>{c();const{connectors:x}=t(),v=x.find(M=>M.id===k);if(!v){await e.deleteConnector(k);return}await e.deleteConnector(k),l({do:async()=>{await e.deleteConnector(k)},undo:async()=>{await e.createConnector({id:v.id,source:v.source,target:v.target,sourceHandle:v.sourceHandle,targetHandle:v.targetHandle,sourceHandleAutoPicked:v.sourceHandleAutoPicked,targetHandleAutoPicked:v.targetHandleAutoPicked,sourcePin:v.sourcePin,targetPin:v.targetPin,label:v.label,style:v.style,color:v.color,direction:v.direction,eventName:v.eventName,queueName:v.queueName,method:v.method,url:v.url})}})},uploadImage:(k,x,v)=>e.uploadImage(k,x,v),...e.playAction?{playAction:k=>e.playAction(k)}:{},...e.openFile?{openFile:k=>e.openFile(k)}:{},...e.revealFile?{revealFile:k=>e.revealFile(k)}:{},...e.computeLayout?{computeLayout:(k,x)=>e.computeLayout(k,x)}:{},...e.icons?{icons:e.icons}:{}};let d=Promise.resolve();const p=async()=>{const k=UOe(n);k.entry&&(n=k.state,s(),await k.entry.undo())},y=async()=>{const k=WOe(n);k.entry&&(n=k.state,s(),await k.entry.do())};return{adapter:h,history:{get canUndo(){return n.cursor>0},get canRedo(){return n.cursor<n.stack.length},undo:()=>{o=Date.now();const k=d.then(p);return d=k.then(()=>{},()=>{}),k},redo:()=>{o=Date.now();const k=d.then(y);return d=k.then(()=>{},()=>{}),k},clear:()=>{n=Iee(),s()},markExternalChange:()=>{const k=GOe(n,o);k!==n&&(n=k,s())},batch:async(k,x,v)=>{if(a)return x();const M=zW(n);o=Date.now(),M!==n&&(n=M,s());const w={name:k,ops:[]};a=w;try{const b=await x();if(a=null,w.ops.length>0){const C=w.ops.slice();n=PW(n,{do:async()=>{for(const _ of C)await _.redo()},undo:async()=>{for(let _=C.length-1;_>=0;_--)await C[_].undo()},coalesceKey:v==null?void 0:v.coalesceKey,capturedAt:Date.now()}),s()}return b}catch(b){a=null;for(let C=w.ops.length-1;C>=0;C--)try{await w.ops[C].undo()}catch(_){console.warn(`[seeflow/canvas] batch '${k}' rollback inverse rejected:`,_)}throw b}},subscribe:k=>(r.add(k),k(i()),()=>{r.delete(k)})}}}function Aee(e,t,n){let o=null,r=!1;const a=new ResizeObserver(()=>{r||(o!==null&&clearTimeout(o),o=setTimeout(()=>{o=null,!r&&n()},t))});return a.observe(e),()=>{r||(r=!0,o!==null&&(clearTimeout(o),o=null),a.disconnect())}}var ct;(function(e){e.assertEqual=r=>{};function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{const a={};for(const i of r)a[i]=i;return a},e.getValidEnumValues=r=>{const a=e.objectKeys(r).filter(s=>typeof r[r[s]]!="number"),i={};for(const s of a)i[s]=r[s];return e.objectValues(i)},e.objectValues=r=>e.objectKeys(r).map(function(a){return r[a]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const a=[];for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&a.push(i);return a},e.find=(r,a)=>{for(const i of r)if(a(i))return i},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function o(r,a=" | "){return r.map(i=>typeof i=="string"?`'${i}'`:i).join(a)}e.joinValues=o,e.jsonStringifyReplacer=(r,a)=>typeof a=="bigint"?a.toString():a})(ct||(ct={}));var RW;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(RW||(RW={}));const Ce=ct.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ni=e=>{switch(typeof e){case"undefined":return Ce.undefined;case"string":return Ce.string;case"number":return Number.isNaN(e)?Ce.nan:Ce.number;case"boolean":return Ce.boolean;case"function":return Ce.function;case"bigint":return Ce.bigint;case"symbol":return Ce.symbol;case"object":return Array.isArray(e)?Ce.array:e===null?Ce.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ce.promise:typeof Map<"u"&&e instanceof Map?Ce.map:typeof Set<"u"&&e instanceof Set?Ce.set:typeof Date<"u"&&e instanceof Date?Ce.date:Ce.object;default:return Ce.unknown}},ye=ct.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"]);class Ua extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=o=>{this.issues=[...this.issues,o]},this.addIssues=(o=[])=>{this.issues=[...this.issues,...o]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(a){return a.message},o={_errors:[]},r=a=>{for(const i of a.issues)if(i.code==="invalid_union")i.unionErrors.map(r);else if(i.code==="invalid_return_type")r(i.returnTypeError);else if(i.code==="invalid_arguments")r(i.argumentsError);else if(i.path.length===0)o._errors.push(n(i));else{let s=o,c=0;for(;c<i.path.length;){const l=i.path[c];c===i.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(n(i))):s[l]=s[l]||{_errors:[]},s=s[l],c++}}};return r(this),o}static assert(t){if(!(t instanceof Ua))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ct.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},o=[];for(const r of this.issues)if(r.path.length>0){const a=r.path[0];n[a]=n[a]||[],n[a].push(t(r))}else o.push(t(r));return{formErrors:o,fieldErrors:n}}get formErrors(){return this.flatten()}}Ua.create=e=>new Ua(e);const fO=(e,t)=>{let n;switch(e.code){case ye.invalid_type:e.received===Ce.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ye.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ct.jsonStringifyReplacer)}`;break;case ye.unrecognized_keys:n=`Unrecognized key(s) in object: ${ct.joinValues(e.keys,", ")}`;break;case ye.invalid_union:n="Invalid input";break;case ye.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ct.joinValues(e.options)}`;break;case ye.invalid_enum_value:n=`Invalid enum value. Expected ${ct.joinValues(e.options)}, received '${e.received}'`;break;case ye.invalid_arguments:n="Invalid function arguments";break;case ye.invalid_return_type:n="Invalid function return type";break;case ye.invalid_date:n="Invalid date";break;case ye.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ct.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ye.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case ye.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case ye.custom:n="Invalid input";break;case ye.invalid_intersection_types:n="Intersection results could not be merged";break;case ye.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ye.not_finite:n="Number must be finite";break;default:n=t.defaultError,ct.assertNever(e)}return{message:n}};let ZOe=fO;function YOe(){return ZOe}const QOe=e=>{const{data:t,path:n,errorMaps:o,issueData:r}=e,a=[...n,...r.path||[]],i={...r,path:a};if(r.message!==void 0)return{...r,path:a,message:r.message};let s="";const c=o.filter(l=>!!l).slice().reverse();for(const l of c)s=l(i,{data:t,defaultError:s}).message;return{...r,path:a,message:s}};function we(e,t){const n=YOe(),o=QOe({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===fO?void 0:fO].filter(r=>!!r)});e.common.issues.push(o)}class Rn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const o=[];for(const r of n){if(r.status==="aborted")return Ve;r.status==="dirty"&&t.dirty(),o.push(r.value)}return{status:t.value,value:o}}static async mergeObjectAsync(t,n){const o=[];for(const r of n){const a=await r.key,i=await r.value;o.push({key:a,value:i})}return Rn.mergeObjectSync(t,o)}static mergeObjectSync(t,n){const o={};for(const r of n){const{key:a,value:i}=r;if(a.status==="aborted"||i.status==="aborted")return Ve;a.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof i.value<"u"||r.alwaysSet)&&(o[a.value]=i.value)}return{status:t.value,value:o}}}const Ve=Object.freeze({status:"aborted"}),Jh=e=>({status:"dirty",value:e}),Ho=e=>({status:"valid",value:e}),TW=e=>e.status==="aborted",DW=e=>e.status==="dirty",K0=e=>e.status==="valid",kz=e=>typeof Promise<"u"&&e instanceof Promise;var Le;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Le||(Le={}));class na{constructor(t,n,o,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=o,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const HW=(e,t)=>{if(K0(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 n=new Ua(e.common.issues);return this._error=n,this._error}}};function Ze(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:o,description:r}=e;if(t&&(n||o))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(i,s)=>{const{message:c}=e;return i.code==="invalid_enum_value"?{message:c??s.defaultError}:typeof s.data>"u"?{message:c??o??s.defaultError}:i.code!=="invalid_type"?{message:s.defaultError}:{message:c??n??s.defaultError}},description:r}}class tt{get description(){return this._def.description}_getType(t){return Ni(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Ni(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Rn,ctx:{common:t.parent.common,data:t.data,parsedType:Ni(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(kz(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const o=this.safeParse(t,n);if(o.success)return o.data;throw o.error}safeParse(t,n){const o={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ni(t)},r=this._parseSync({data:t,path:o.path,parent:o});return HW(o,r)}"~validate"(t){var o,r;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ni(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:n});return K0(a)?{value:a.value}:{issues:n.common.issues}}catch(a){(r=(o=a==null?void 0:a.message)==null?void 0:o.toLowerCase())!=null&&r.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(a=>K0(a)?{value:a.value}:{issues:n.common.issues})}async parseAsync(t,n){const o=await this.safeParseAsync(t,n);if(o.success)return o.data;throw o.error}async safeParseAsync(t,n){const o={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ni(t)},r=this._parse({data:t,path:o.path,parent:o}),a=await(kz(r)?r:Promise.resolve(r));return HW(o,a)}refine(t,n){const o=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,a)=>{const i=t(r),s=()=>a.addIssue({code:ye.custom,...o(r)});return typeof Promise<"u"&&i instanceof Promise?i.then(c=>c?!0:(s(),!1)):i?!0:(s(),!1)})}refinement(t,n){return this._refinement((o,r)=>t(o)?!0:(r.addIssue(typeof n=="function"?n(o,r):n),!1))}_refinement(t){return new Y0({schema:this,typeName:Oe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}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),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Gi.create(this,this._def)}nullable(){return Q0.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Jr.create(this)}promise(){return bz.create(this,this._def)}or(t){return xz.create([this,t],this._def)}and(t){return wz.create(this,t,this._def)}transform(t){return new Y0({...Ze(this._def),schema:this,typeName:Oe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new kO({...Ze(this._def),innerType:this,defaultValue:n,typeName:Oe.ZodDefault})}brand(){return new wFe({typeName:Oe.ZodBranded,type:this,...Ze(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new vO({...Ze(this._def),innerType:this,catchValue:n,typeName:Oe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Mq.create(this,t)}readonly(){return xO.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const JOe=/^c[^\s-]{8,}$/i,eFe=/^[0-9a-z]+$/,tFe=/^[0-9A-HJKMNP-TV-Z]{26}$/i,nFe=/^[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,oFe=/^[a-z0-9_-]{21}$/i,rFe=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,aFe=/^[-+]?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)?)??$/,iFe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,sFe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let cD;const cFe=/^(?:(?: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])$/,lFe=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,dFe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,uFe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,hFe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,fFe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Eee="((\\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])))",pFe=new RegExp(`^${Eee}$`);function jee(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function yFe(e){return new RegExp(`^${jee(e)}$`)}function mFe(e){let t=`${Eee}T${jee(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function gFe(e,t){return!!((t==="v4"||!t)&&cFe.test(e)||(t==="v6"||!t)&&dFe.test(e))}function kFe(e,t){if(!rFe.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const o=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(o));return!(typeof r!="object"||r===null||"typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}function vFe(e,t){return!!((t==="v4"||!t)&&lFe.test(e)||(t==="v6"||!t)&&uFe.test(e))}class Da extends tt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ce.string){const a=this._getOrReturnCtx(t);return we(a,{code:ye.invalid_type,expected:Ce.string,received:a.parsedType}),Ve}const o=new Rn;let r;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(r=this._getOrReturnCtx(t,r),we(r,{code:ye.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),o.dirty());else if(a.kind==="max")t.data.length>a.value&&(r=this._getOrReturnCtx(t,r),we(r,{code:ye.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),o.dirty());else if(a.kind==="length"){const i=t.data.length>a.value,s=t.data.length<a.value;(i||s)&&(r=this._getOrReturnCtx(t,r),i?we(r,{code:ye.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):s&&we(r,{code:ye.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),o.dirty())}else if(a.kind==="email")iFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"email",code:ye.invalid_string,message:a.message}),o.dirty());else if(a.kind==="emoji")cD||(cD=new RegExp(sFe,"u")),cD.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"emoji",code:ye.invalid_string,message:a.message}),o.dirty());else if(a.kind==="uuid")nFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"uuid",code:ye.invalid_string,message:a.message}),o.dirty());else if(a.kind==="nanoid")oFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"nanoid",code:ye.invalid_string,message:a.message}),o.dirty());else if(a.kind==="cuid")JOe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"cuid",code:ye.invalid_string,message:a.message}),o.dirty());else if(a.kind==="cuid2")eFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"cuid2",code:ye.invalid_string,message:a.message}),o.dirty());else if(a.kind==="ulid")tFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"ulid",code:ye.invalid_string,message:a.message}),o.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),we(r,{validation:"url",code:ye.invalid_string,message:a.message}),o.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"regex",code:ye.invalid_string,message:a.message}),o.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),o.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:{startsWith:a.value},message:a.message}),o.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:{endsWith:a.value},message:a.message}),o.dirty()):a.kind==="datetime"?mFe(a).test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:"datetime",message:a.message}),o.dirty()):a.kind==="date"?pFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:"date",message:a.message}),o.dirty()):a.kind==="time"?yFe(a).test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:"time",message:a.message}),o.dirty()):a.kind==="duration"?aFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"duration",code:ye.invalid_string,message:a.message}),o.dirty()):a.kind==="ip"?gFe(t.data,a.version)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"ip",code:ye.invalid_string,message:a.message}),o.dirty()):a.kind==="jwt"?kFe(t.data,a.alg)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"jwt",code:ye.invalid_string,message:a.message}),o.dirty()):a.kind==="cidr"?vFe(t.data,a.version)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"cidr",code:ye.invalid_string,message:a.message}),o.dirty()):a.kind==="base64"?hFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"base64",code:ye.invalid_string,message:a.message}),o.dirty()):a.kind==="base64url"?fFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"base64url",code:ye.invalid_string,message:a.message}),o.dirty()):ct.assertNever(a);return{status:o.value,value:t.data}}_regex(t,n,o){return this.refinement(r=>t.test(r),{validation:n,code:ye.invalid_string,...Le.errToObj(o)})}_addCheck(t){return new Da({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Le.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Le.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Le.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Le.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Le.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Le.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Le.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Le.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Le.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Le.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Le.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Le.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Le.errToObj(t)})}datetime(t){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:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Le.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,...Le.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Le.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Le.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Le.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Le.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Le.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Le.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Le.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Le.errToObj(n)})}nonempty(t){return this.min(1,Le.errToObj(t))}trim(){return new Da({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Da({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Da({...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 isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Da.create=e=>new Da({checks:[],typeName:Oe.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Ze(e)});function xFe(e,t){const n=(e.toString().split(".")[1]||"").length,o=(t.toString().split(".")[1]||"").length,r=n>o?n:o,a=Number.parseInt(e.toFixed(r).replace(".","")),i=Number.parseInt(t.toFixed(r).replace(".",""));return a%i/10**r}class X0 extends tt{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)!==Ce.number){const a=this._getOrReturnCtx(t);return we(a,{code:ye.invalid_type,expected:Ce.number,received:a.parsedType}),Ve}let o;const r=new Rn;for(const a of this._def.checks)a.kind==="int"?ct.isInteger(t.data)||(o=this._getOrReturnCtx(t,o),we(o,{code:ye.invalid_type,expected:"integer",received:"float",message:a.message}),r.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),r.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),r.dirty()):a.kind==="multipleOf"?xFe(t.data,a.value)!==0&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.not_multiple_of,multipleOf:a.value,message:a.message}),r.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(o=this._getOrReturnCtx(t,o),we(o,{code:ye.not_finite,message:a.message}),r.dirty()):ct.assertNever(a);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Le.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Le.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Le.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Le.toString(n))}setLimit(t,n,o,r){return new X0({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:o,message:Le.toString(r)}]})}_addCheck(t){return new X0({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Le.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Le.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Le.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Le.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Le.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Le.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ct.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const o of this._def.checks){if(o.kind==="finite"||o.kind==="int"||o.kind==="multipleOf")return!0;o.kind==="min"?(n===null||o.value>n)&&(n=o.value):o.kind==="max"&&(t===null||o.value<t)&&(t=o.value)}return Number.isFinite(n)&&Number.isFinite(t)}}X0.create=e=>new X0({checks:[],typeName:Oe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ze(e)});class Mf extends tt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Ce.bigint)return this._getInvalidInput(t);let o;const r=new Rn;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),r.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),r.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.not_multiple_of,multipleOf:a.value,message:a.message}),r.dirty()):ct.assertNever(a);return{status:r.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return we(n,{code:ye.invalid_type,expected:Ce.bigint,received:n.parsedType}),Ve}gte(t,n){return this.setLimit("min",t,!0,Le.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Le.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Le.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Le.toString(n))}setLimit(t,n,o,r){return new Mf({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:o,message:Le.toString(r)}]})}_addCheck(t){return new Mf({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Le.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Le.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Mf.create=e=>new Mf({checks:[],typeName:Oe.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Ze(e)});class pO extends tt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ce.boolean){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.boolean,received:o.parsedType}),Ve}return Ho(t.data)}}pO.create=e=>new pO({typeName:Oe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ze(e)});class vz extends tt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ce.date){const a=this._getOrReturnCtx(t);return we(a,{code:ye.invalid_type,expected:Ce.date,received:a.parsedType}),Ve}if(Number.isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return we(a,{code:ye.invalid_date}),Ve}const o=new Rn;let r;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(r=this._getOrReturnCtx(t,r),we(r,{code:ye.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),o.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(r=this._getOrReturnCtx(t,r),we(r,{code:ye.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),o.dirty()):ct.assertNever(a);return{status:o.value,value:new Date(t.data.getTime())}}_addCheck(t){return new vz({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Le.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Le.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}vz.create=e=>new vz({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Oe.ZodDate,...Ze(e)});class OW extends tt{_parse(t){if(this._getType(t)!==Ce.symbol){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.symbol,received:o.parsedType}),Ve}return Ho(t.data)}}OW.create=e=>new OW({typeName:Oe.ZodSymbol,...Ze(e)});class FW extends tt{_parse(t){if(this._getType(t)!==Ce.undefined){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.undefined,received:o.parsedType}),Ve}return Ho(t.data)}}FW.create=e=>new FW({typeName:Oe.ZodUndefined,...Ze(e)});class qW extends tt{_parse(t){if(this._getType(t)!==Ce.null){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.null,received:o.parsedType}),Ve}return Ho(t.data)}}qW.create=e=>new qW({typeName:Oe.ZodNull,...Ze(e)});class VW extends tt{constructor(){super(...arguments),this._any=!0}_parse(t){return Ho(t.data)}}VW.create=e=>new VW({typeName:Oe.ZodAny,...Ze(e)});class yO extends tt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ho(t.data)}}yO.create=e=>new yO({typeName:Oe.ZodUnknown,...Ze(e)});class es extends tt{_parse(t){const n=this._getOrReturnCtx(t);return we(n,{code:ye.invalid_type,expected:Ce.never,received:n.parsedType}),Ve}}es.create=e=>new es({typeName:Oe.ZodNever,...Ze(e)});class BW extends tt{_parse(t){if(this._getType(t)!==Ce.undefined){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.void,received:o.parsedType}),Ve}return Ho(t.data)}}BW.create=e=>new BW({typeName:Oe.ZodVoid,...Ze(e)});class Jr extends tt{_parse(t){const{ctx:n,status:o}=this._processInputParams(t),r=this._def;if(n.parsedType!==Ce.array)return we(n,{code:ye.invalid_type,expected:Ce.array,received:n.parsedType}),Ve;if(r.exactLength!==null){const i=n.data.length>r.exactLength.value,s=n.data.length<r.exactLength.value;(i||s)&&(we(n,{code:i?ye.too_big:ye.too_small,minimum:s?r.exactLength.value:void 0,maximum:i?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),o.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(we(n,{code:ye.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),o.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(we(n,{code:ye.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),o.dirty()),n.common.async)return Promise.all([...n.data].map((i,s)=>r.type._parseAsync(new na(n,i,n.path,s)))).then(i=>Rn.mergeArray(o,i));const a=[...n.data].map((i,s)=>r.type._parseSync(new na(n,i,n.path,s)));return Rn.mergeArray(o,a)}get element(){return this._def.type}min(t,n){return new Jr({...this._def,minLength:{value:t,message:Le.toString(n)}})}max(t,n){return new Jr({...this._def,maxLength:{value:t,message:Le.toString(n)}})}length(t,n){return new Jr({...this._def,exactLength:{value:t,message:Le.toString(n)}})}nonempty(t){return this.min(1,t)}}Jr.create=(e,t)=>new Jr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Oe.ZodArray,...Ze(t)});function qu(e){if(e instanceof Xt){const t={};for(const n in e.shape){const o=e.shape[n];t[n]=Gi.create(qu(o))}return new Xt({...e._def,shape:()=>t})}else return e instanceof Jr?new Jr({...e._def,type:qu(e.element)}):e instanceof Gi?Gi.create(qu(e.unwrap())):e instanceof Q0?Q0.create(qu(e.unwrap())):e instanceof eu?eu.create(e.items.map(t=>qu(t))):e}class Xt extends tt{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(),n=ct.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Ce.object){const l=this._getOrReturnCtx(t);return we(l,{code:ye.invalid_type,expected:Ce.object,received:l.parsedType}),Ve}const{status:o,ctx:r}=this._processInputParams(t),{shape:a,keys:i}=this._getCached(),s=[];if(!(this._def.catchall instanceof es&&this._def.unknownKeys==="strip"))for(const l in r.data)i.includes(l)||s.push(l);const c=[];for(const l of i){const h=a[l],d=r.data[l];c.push({key:{status:"valid",value:l},value:h._parse(new na(r,d,r.path,l)),alwaysSet:l in r.data})}if(this._def.catchall instanceof es){const l=this._def.unknownKeys;if(l==="passthrough")for(const h of s)c.push({key:{status:"valid",value:h},value:{status:"valid",value:r.data[h]}});else if(l==="strict")s.length>0&&(we(r,{code:ye.unrecognized_keys,keys:s}),o.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const h of s){const d=r.data[h];c.push({key:{status:"valid",value:h},value:l._parse(new na(r,d,r.path,h)),alwaysSet:h in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const l=[];for(const h of c){const d=await h.key,p=await h.value;l.push({key:d,value:p,alwaysSet:h.alwaysSet})}return l}).then(l=>Rn.mergeObjectSync(o,l)):Rn.mergeObjectSync(o,c)}get shape(){return this._def.shape()}strict(t){return Le.errToObj,new Xt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,o)=>{var a,i;const r=((i=(a=this._def).errorMap)==null?void 0:i.call(a,n,o).message)??o.defaultError;return n.code==="unrecognized_keys"?{message:Le.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new Xt({...this._def,unknownKeys:"strip"})}passthrough(){return new Xt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Xt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Xt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Oe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Xt({...this._def,catchall:t})}pick(t){const n={};for(const o of ct.objectKeys(t))t[o]&&this.shape[o]&&(n[o]=this.shape[o]);return new Xt({...this._def,shape:()=>n})}omit(t){const n={};for(const o of ct.objectKeys(this.shape))t[o]||(n[o]=this.shape[o]);return new Xt({...this._def,shape:()=>n})}deepPartial(){return qu(this)}partial(t){const n={};for(const o of ct.objectKeys(this.shape)){const r=this.shape[o];t&&!t[o]?n[o]=r:n[o]=r.optional()}return new Xt({...this._def,shape:()=>n})}required(t){const n={};for(const o of ct.objectKeys(this.shape))if(t&&!t[o])n[o]=this.shape[o];else{let a=this.shape[o];for(;a instanceof Gi;)a=a._def.innerType;n[o]=a}return new Xt({...this._def,shape:()=>n})}keyof(){return $ee(ct.objectKeys(this.shape))}}Xt.create=(e,t)=>new Xt({shape:()=>e,unknownKeys:"strip",catchall:es.create(),typeName:Oe.ZodObject,...Ze(t)});Xt.strictCreate=(e,t)=>new Xt({shape:()=>e,unknownKeys:"strict",catchall:es.create(),typeName:Oe.ZodObject,...Ze(t)});Xt.lazycreate=(e,t)=>new Xt({shape:e,unknownKeys:"strip",catchall:es.create(),typeName:Oe.ZodObject,...Ze(t)});class xz extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),o=this._def.options;function r(a){for(const s of a)if(s.result.status==="valid")return s.result;for(const s of a)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const i=a.map(s=>new Ua(s.ctx.common.issues));return we(n,{code:ye.invalid_union,unionErrors:i}),Ve}if(n.common.async)return Promise.all(o.map(async a=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(r);{let a;const i=[];for(const c of o){const l={...n,common:{...n.common,issues:[]},parent:null},h=c._parseSync({data:n.data,path:n.path,parent:l});if(h.status==="valid")return h;h.status==="dirty"&&!a&&(a={result:h,ctx:l}),l.common.issues.length&&i.push(l.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const s=i.map(c=>new Ua(c));return we(n,{code:ye.invalid_union,unionErrors:s}),Ve}}get options(){return this._def.options}}xz.create=(e,t)=>new xz({options:e,typeName:Oe.ZodUnion,...Ze(t)});function mO(e,t){const n=Ni(e),o=Ni(t);if(e===t)return{valid:!0,data:e};if(n===Ce.object&&o===Ce.object){const r=ct.objectKeys(t),a=ct.objectKeys(e).filter(s=>r.indexOf(s)!==-1),i={...e,...t};for(const s of a){const c=mO(e[s],t[s]);if(!c.valid)return{valid:!1};i[s]=c.data}return{valid:!0,data:i}}else if(n===Ce.array&&o===Ce.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let a=0;a<e.length;a++){const i=e[a],s=t[a],c=mO(i,s);if(!c.valid)return{valid:!1};r.push(c.data)}return{valid:!0,data:r}}else return n===Ce.date&&o===Ce.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class wz extends tt{_parse(t){const{status:n,ctx:o}=this._processInputParams(t),r=(a,i)=>{if(TW(a)||TW(i))return Ve;const s=mO(a.value,i.value);return s.valid?((DW(a)||DW(i))&&n.dirty(),{status:n.value,value:s.data}):(we(o,{code:ye.invalid_intersection_types}),Ve)};return o.common.async?Promise.all([this._def.left._parseAsync({data:o.data,path:o.path,parent:o}),this._def.right._parseAsync({data:o.data,path:o.path,parent:o})]).then(([a,i])=>r(a,i)):r(this._def.left._parseSync({data:o.data,path:o.path,parent:o}),this._def.right._parseSync({data:o.data,path:o.path,parent:o}))}}wz.create=(e,t,n)=>new wz({left:e,right:t,typeName:Oe.ZodIntersection,...Ze(n)});class eu extends tt{_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.parsedType!==Ce.array)return we(o,{code:ye.invalid_type,expected:Ce.array,received:o.parsedType}),Ve;if(o.data.length<this._def.items.length)return we(o,{code:ye.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ve;!this._def.rest&&o.data.length>this._def.items.length&&(we(o,{code:ye.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...o.data].map((i,s)=>{const c=this._def.items[s]||this._def.rest;return c?c._parse(new na(o,i,o.path,s)):null}).filter(i=>!!i);return o.common.async?Promise.all(a).then(i=>Rn.mergeArray(n,i)):Rn.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new eu({...this._def,rest:t})}}eu.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new eu({items:e,typeName:Oe.ZodTuple,rest:null,...Ze(t)})};class Mz extends tt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.parsedType!==Ce.object)return we(o,{code:ye.invalid_type,expected:Ce.object,received:o.parsedType}),Ve;const r=[],a=this._def.keyType,i=this._def.valueType;for(const s in o.data)r.push({key:a._parse(new na(o,s,o.path,s)),value:i._parse(new na(o,o.data[s],o.path,s)),alwaysSet:s in o.data});return o.common.async?Rn.mergeObjectAsync(n,r):Rn.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,o){return n instanceof tt?new Mz({keyType:t,valueType:n,typeName:Oe.ZodRecord,...Ze(o)}):new Mz({keyType:Da.create(),valueType:t,typeName:Oe.ZodRecord,...Ze(n)})}}class UW extends tt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.parsedType!==Ce.map)return we(o,{code:ye.invalid_type,expected:Ce.map,received:o.parsedType}),Ve;const r=this._def.keyType,a=this._def.valueType,i=[...o.data.entries()].map(([s,c],l)=>({key:r._parse(new na(o,s,o.path,[l,"key"])),value:a._parse(new na(o,c,o.path,[l,"value"]))}));if(o.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const c of i){const l=await c.key,h=await c.value;if(l.status==="aborted"||h.status==="aborted")return Ve;(l.status==="dirty"||h.status==="dirty")&&n.dirty(),s.set(l.value,h.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const c of i){const l=c.key,h=c.value;if(l.status==="aborted"||h.status==="aborted")return Ve;(l.status==="dirty"||h.status==="dirty")&&n.dirty(),s.set(l.value,h.value)}return{status:n.value,value:s}}}}UW.create=(e,t,n)=>new UW({valueType:t,keyType:e,typeName:Oe.ZodMap,...Ze(n)});class bf extends tt{_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.parsedType!==Ce.set)return we(o,{code:ye.invalid_type,expected:Ce.set,received:o.parsedType}),Ve;const r=this._def;r.minSize!==null&&o.data.size<r.minSize.value&&(we(o,{code:ye.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&o.data.size>r.maxSize.value&&(we(o,{code:ye.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());const a=this._def.valueType;function i(c){const l=new Set;for(const h of c){if(h.status==="aborted")return Ve;h.status==="dirty"&&n.dirty(),l.add(h.value)}return{status:n.value,value:l}}const s=[...o.data.values()].map((c,l)=>a._parse(new na(o,c,o.path,l)));return o.common.async?Promise.all(s).then(c=>i(c)):i(s)}min(t,n){return new bf({...this._def,minSize:{value:t,message:Le.toString(n)}})}max(t,n){return new bf({...this._def,maxSize:{value:t,message:Le.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}bf.create=(e,t)=>new bf({valueType:e,minSize:null,maxSize:null,typeName:Oe.ZodSet,...Ze(t)});class WW extends tt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}WW.create=(e,t)=>new WW({getter:e,typeName:Oe.ZodLazy,...Ze(t)});class gO extends tt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return we(n,{received:n.data,code:ye.invalid_literal,expected:this._def.value}),Ve}return{status:"valid",value:t.data}}get value(){return this._def.value}}gO.create=(e,t)=>new gO({value:e,typeName:Oe.ZodLiteral,...Ze(t)});function $ee(e,t){return new Z0({values:e,typeName:Oe.ZodEnum,...Ze(t)})}class Z0 extends tt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),o=this._def.values;return we(n,{expected:ct.joinValues(o),received:n.parsedType,code:ye.invalid_type}),Ve}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),o=this._def.values;return we(n,{received:n.data,code:ye.invalid_enum_value,options:o}),Ve}return Ho(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Z0.create(t,{...this._def,...n})}exclude(t,n=this._def){return Z0.create(this.options.filter(o=>!t.includes(o)),{...this._def,...n})}}Z0.create=$ee;class GW extends tt{_parse(t){const n=ct.getValidEnumValues(this._def.values),o=this._getOrReturnCtx(t);if(o.parsedType!==Ce.string&&o.parsedType!==Ce.number){const r=ct.objectValues(n);return we(o,{expected:ct.joinValues(r),received:o.parsedType,code:ye.invalid_type}),Ve}if(this._cache||(this._cache=new Set(ct.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const r=ct.objectValues(n);return we(o,{received:o.data,code:ye.invalid_enum_value,options:r}),Ve}return Ho(t.data)}get enum(){return this._def.values}}GW.create=(e,t)=>new GW({values:e,typeName:Oe.ZodNativeEnum,...Ze(t)});class bz extends tt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.promise&&n.common.async===!1)return we(n,{code:ye.invalid_type,expected:Ce.promise,received:n.parsedType}),Ve;const o=n.parsedType===Ce.promise?n.data:Promise.resolve(n.data);return Ho(o.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}}bz.create=(e,t)=>new bz({type:e,typeName:Oe.ZodPromise,...Ze(t)});class Y0 extends tt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Oe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:o}=this._processInputParams(t),r=this._def.effect||null,a={addIssue:i=>{we(o,i),i.fatal?n.abort():n.dirty()},get path(){return o.path}};if(a.addIssue=a.addIssue.bind(a),r.type==="preprocess"){const i=r.transform(o.data,a);if(o.common.async)return Promise.resolve(i).then(async s=>{if(n.value==="aborted")return Ve;const c=await this._def.schema._parseAsync({data:s,path:o.path,parent:o});return c.status==="aborted"?Ve:c.status==="dirty"||n.value==="dirty"?Jh(c.value):c});{if(n.value==="aborted")return Ve;const s=this._def.schema._parseSync({data:i,path:o.path,parent:o});return s.status==="aborted"?Ve:s.status==="dirty"||n.value==="dirty"?Jh(s.value):s}}if(r.type==="refinement"){const i=s=>{const c=r.refinement(s,a);if(o.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(o.common.async===!1){const s=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});return s.status==="aborted"?Ve:(s.status==="dirty"&&n.dirty(),i(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(s=>s.status==="aborted"?Ve:(s.status==="dirty"&&n.dirty(),i(s.value).then(()=>({status:n.value,value:s.value}))))}if(r.type==="transform")if(o.common.async===!1){const i=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});if(!K0(i))return Ve;const s=r.transform(i.value,a);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(i=>K0(i)?Promise.resolve(r.transform(i.value,a)).then(s=>({status:n.value,value:s})):Ve);ct.assertNever(r)}}Y0.create=(e,t,n)=>new Y0({schema:e,typeName:Oe.ZodEffects,effect:t,...Ze(n)});Y0.createWithPreprocess=(e,t,n)=>new Y0({schema:t,effect:{type:"preprocess",transform:e},typeName:Oe.ZodEffects,...Ze(n)});class Gi extends tt{_parse(t){return this._getType(t)===Ce.undefined?Ho(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Gi.create=(e,t)=>new Gi({innerType:e,typeName:Oe.ZodOptional,...Ze(t)});class Q0 extends tt{_parse(t){return this._getType(t)===Ce.null?Ho(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Q0.create=(e,t)=>new Q0({innerType:e,typeName:Oe.ZodNullable,...Ze(t)});class kO extends tt{_parse(t){const{ctx:n}=this._processInputParams(t);let o=n.data;return n.parsedType===Ce.undefined&&(o=this._def.defaultValue()),this._def.innerType._parse({data:o,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}kO.create=(e,t)=>new kO({innerType:e,typeName:Oe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ze(t)});class vO extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),o={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:o.data,path:o.path,parent:{...o}});return kz(r)?r.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Ua(o.common.issues)},input:o.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new Ua(o.common.issues)},input:o.data})}}removeCatch(){return this._def.innerType}}vO.create=(e,t)=>new vO({innerType:e,typeName:Oe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ze(t)});class KW extends tt{_parse(t){if(this._getType(t)!==Ce.nan){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.nan,received:o.parsedType}),Ve}return{status:"valid",value:t.data}}}KW.create=e=>new KW({typeName:Oe.ZodNaN,...Ze(e)});class wFe extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),o=n.data;return this._def.type._parse({data:o,path:n.path,parent:n})}unwrap(){return this._def.type}}class Mq extends tt{_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:o.data,path:o.path,parent:o});return a.status==="aborted"?Ve:a.status==="dirty"?(n.dirty(),Jh(a.value)):this._def.out._parseAsync({data:a.value,path:o.path,parent:o})})();{const r=this._def.in._parseSync({data:o.data,path:o.path,parent:o});return r.status==="aborted"?Ve:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:o.path,parent:o})}}static create(t,n){return new Mq({in:t,out:n,typeName:Oe.ZodPipeline})}}class xO extends tt{_parse(t){const n=this._def.innerType._parse(t),o=r=>(K0(r)&&(r.value=Object.freeze(r.value)),r);return kz(n)?n.then(r=>o(r)):o(n)}unwrap(){return this._def.innerType}}xO.create=(e,t)=>new xO({innerType:e,typeName:Oe.ZodReadonly,...Ze(t)});var Oe;(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"})(Oe||(Oe={}));const hn=Da.create,Pee=X0.create,MFe=pO.create,F2=yO.create;es.create;const Ss=Jr.create,st=Xt.create,wO=xz.create;wz.create;eu.create;const XW=Mz.create,Up=gO.create,Wp=Z0.create;bz.create;Gi.create;Q0.create;const bFe=st({$state:hn().min(1)}),Aa=st({$action:hn().min(1)}),_Fe=st({$cond:F2(),$then:F2(),$else:F2().optional()}),Qo=e=>wO([e,bFe,Aa,_Fe]),qt=Qo(hn()),Na=Qo(Pee()),Gp=Qo(MFe()),zee={Card:st({title:qt.optional()}),Separator:st({orientation:Qo(Wp(["horizontal","vertical"])).optional()}),Tabs:st({value:qt.optional(),items:Ss(st({id:hn(),label:hn()})),onChange:Aa.optional()}),Accordion:st({items:Ss(st({id:hn(),title:hn(),content:hn()}))}),Badge:st({label:qt,variant:Qo(Wp(["default","secondary","destructive","outline"])).optional()}),Avatar:st({src:qt.optional(),alt:qt.optional(),fallback:qt.optional()}),Progress:st({value:Na}),Skeleton:st({width:Na.optional(),height:Na.optional()}),Label:st({text:qt}),Heading:st({level:Qo(wO([Up(1),Up(2),Up(3),Up(4)])).optional(),text:qt}),Text:st({text:qt,muted:Gp.optional()}),Icon:st({name:qt,size:Na.optional()}),Chart:st({kind:Qo(Wp(["bar","line","area","pie"])),data:Qo(Ss(XW(hn(),F2()))),xKey:qt.optional(),series:Ss(st({key:hn(),label:hn().optional()})).optional()}),Table:st({columns:Ss(st({key:hn(),label:hn()})),rows:Qo(Ss(XW(hn(),F2())))}),Metric:st({label:qt,value:Qo(wO([hn(),Pee()]))}),CodeBlock:st({code:qt,language:qt.optional()}),Markdown:st({content:qt}),Button:st({label:qt,variant:Qo(Wp(["default","destructive","outline","secondary","ghost","link"])).optional(),onClick:Aa.optional(),disabled:Gp.optional()}),Input:st({value:qt.optional(),placeholder:qt.optional(),onChange:Aa.optional()}),Checkbox:st({checked:Gp.optional(),onChange:Aa.optional(),label:qt.optional()}),Switch:st({checked:Gp.optional(),onChange:Aa.optional()}),Select:st({value:qt.optional(),items:Ss(st({value:hn(),label:hn()})),onChange:Aa.optional()}),Textarea:st({value:qt.optional(),placeholder:qt.optional(),rows:Na.optional(),onChange:Aa.optional()}),Slider:st({value:Na.optional(),min:Na.optional(),max:Na.optional(),step:Na.optional(),onChange:Aa.optional()})},Ree=Object.keys(zee);Object.fromEntries(Ree.map(e=>[e,{props:zee[e],description:e}]));function ZW(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function oa(...e){return t=>{let n=!1;const o=e.map(r=>{const a=ZW(r,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let r=0;r<o.length;r++){const a=o[r];typeof a=="function"?a():ZW(e[r],null)}}}}function xt(...e){return m.useCallback(oa(...e),e)}var CFe=Symbol.for("react.lazy"),_z=iF[" use ".trim().toString()];function SFe(e){return typeof e=="object"&&e!==null&&"then"in e}function Tee(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===CFe&&"_payload"in e&&SFe(e._payload)}function LFe(e){const t=IFe(e),n=m.forwardRef((o,r)=>{let{children:a,...i}=o;Tee(a)&&typeof _z=="function"&&(a=_z(a._payload));const s=m.Children.toArray(a),c=s.find(EFe);if(c){const l=c.props.children,h=s.map(d=>d===c?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:d);return f.jsx(t,{...i,ref:r,children:m.isValidElement(l)?m.cloneElement(l,void 0,h):null})}return f.jsx(t,{...i,ref:r,children:a})});return n.displayName=`${e}.Slot`,n}var NFe=LFe("Slot");function IFe(e){const t=m.forwardRef((n,o)=>{let{children:r,...a}=n;if(Tee(r)&&typeof _z=="function"&&(r=_z(r._payload)),m.isValidElement(r)){const i=$Fe(r),s=jFe(a,r.props);return r.type!==m.Fragment&&(s.ref=o?oa(o,i):i),m.cloneElement(r,s)}return m.Children.count(r)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var AFe=Symbol("radix.slottable");function EFe(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===AFe}function jFe(e,t){const n={...t};for(const o in t){const r=e[o],a=t[o];/^on[A-Z]/.test(o)?r&&a?n[o]=(...s)=>{const c=a(...s);return r(...s),c}:r&&(n[o]=r):o==="style"?n[o]={...r,...a}:o==="className"&&(n[o]=[r,a].filter(Boolean).join(" "))}return{...e,...n}}function $Fe(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const YW=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,QW=_Q,Dee=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return QW(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:a}=t,i=Object.keys(r).map(l=>{const h=n==null?void 0:n[l],d=a==null?void 0:a[l];if(h===null)return null;const p=YW(h)||YW(d);return r[l][p]}),s=n&&Object.entries(n).reduce((l,h)=>{let[d,p]=h;return p===void 0||(l[d]=p),l},{}),c=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((l,h)=>{let{class:d,className:p,...y}=h;return Object.entries(y).every(g=>{let[k,x]=g;return Array.isArray(x)?x.includes({...a,...s}[k]):{...a,...s}[k]===x})?[...l,d,p]:l},[]);return QW(e,i,c,n==null?void 0:n.class,n==null?void 0:n.className)},PFe=Dee("sf:inline-flex sf:items-center sf:justify-center sf:whitespace-nowrap sf:rounded-md sf:text-sm sf:font-medium sf:ring-offset-background sf:transition-colors sf:focus-visible:outline-hidden sf:focus-visible:ring-2 sf:focus-visible:ring-ring sf:focus-visible:ring-offset-2 sf:disabled:pointer-events-none sf:disabled:opacity-50",{variants:{variant:{default:"sf:bg-primary sf:text-primary-foreground sf:font-semibold sf:hover:bg-emerald-400",destructive:"sf:bg-destructive sf:text-destructive-foreground sf:hover:bg-destructive/90",outline:"sf:border sf:border-input sf:bg-background sf:hover:bg-secondary sf:hover:text-foreground",secondary:"sf:bg-secondary sf:text-secondary-foreground sf:hover:bg-secondary/80",ghost:"sf:text-muted-foreground sf:hover:bg-muted sf:hover:text-foreground",link:"sf:text-primary sf:underline-offset-4 sf:hover:underline"},size:{default:"sf:h-9 sf:px-4 sf:py-2",sm:"sf:h-8 sf:rounded-md sf:px-3",lg:"sf:h-11 sf:rounded-md sf:px-8",icon:"sf:h-9 sf:w-9"}},defaultVariants:{variant:"default",size:"default"}}),rt=m.forwardRef(({className:e,variant:t,size:n,asChild:o=!1,...r},a)=>{const i=o?NFe:"button";return f.jsx(i,{className:ee(PFe({variant:t,size:n,className:e})),ref:a,...r})});rt.displayName="Button";function Hee(e,[t,n]){return Math.min(n,Math.max(t,e))}function Se(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function zFe(e,t){const n=m.createContext(t),o=a=>{const{children:i,...s}=a,c=m.useMemo(()=>s,Object.values(s));return f.jsx(n.Provider,{value:c,children:i})};o.displayName=e+"Provider";function r(a){const i=m.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[o,r]}function yr(e,t=[]){let n=[];function o(a,i){const s=m.createContext(i),c=n.length;n=[...n,i];const l=d=>{var v;const{scope:p,children:y,...g}=d,k=((v=p==null?void 0:p[e])==null?void 0:v[c])||s,x=m.useMemo(()=>g,Object.values(g));return f.jsx(k.Provider,{value:x,children:y})};l.displayName=a+"Provider";function h(d,p){var k;const y=((k=p==null?void 0:p[e])==null?void 0:k[c])||s,g=m.useContext(y);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[l,h]}const r=()=>{const a=n.map(i=>m.createContext(i));return function(s){const c=(s==null?void 0:s[e])||a;return m.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return r.scopeName=e,[o,RFe(r,...t)]}function RFe(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(a){const i=o.reduce((s,{useScope:c,scopeName:l})=>{const d=c(a)[`__scope${l}`];return{...s,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var ts=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},TFe=iF[" useInsertionEffect ".trim().toString()]||ts;function du({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,a,i]=DFe({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:r;{const h=m.useRef(e!==void 0);m.useEffect(()=>{const d=h.current;d!==s&&console.warn(`${o} is changing from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),h.current=s},[s,o])}const l=m.useCallback(h=>{var d;if(s){const p=HFe(h)?h(e):h;p!==e&&((d=i.current)==null||d.call(i,p))}else a(h)},[s,e,a,i]);return[c,l]}function DFe({defaultProp:e,onChange:t}){const[n,o]=m.useState(e),r=m.useRef(n),a=m.useRef(t);return TFe(()=>{a.current=t},[t]),m.useEffect(()=>{var i;r.current!==n&&((i=a.current)==null||i.call(a,n),r.current=n)},[n,r]),[n,o,a]}function HFe(e){return typeof e=="function"}var OFe=m.createContext(void 0);function SR(e){const t=m.useContext(OFe);return e||t||"ltr"}function FFe(e){const t=m.useRef({value:e,previous:e});return m.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Oee(e){const[t,n]=m.useState(void 0);return ts(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const a=r[0];let i,s;if("borderBoxSize"in a){const c=a.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,s=l.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}function J0(e){const t=qFe(e),n=m.forwardRef((o,r)=>{const{children:a,...i}=o,s=m.Children.toArray(a),c=s.find(BFe);if(c){const l=c.props.children,h=s.map(d=>d===c?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:d);return f.jsx(t,{...i,ref:r,children:m.isValidElement(l)?m.cloneElement(l,void 0,h):null})}return f.jsx(t,{...i,ref:r,children:a})});return n.displayName=`${e}.Slot`,n}function qFe(e){const t=m.forwardRef((n,o)=>{const{children:r,...a}=n;if(m.isValidElement(r)){const i=WFe(r),s=UFe(a,r.props);return r.type!==m.Fragment&&(s.ref=o?oa(o,i):i),m.cloneElement(r,s)}return m.Children.count(r)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fee=Symbol("radix.slottable");function VFe(e){const t=({children:n})=>f.jsx(f.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Fee,t}function BFe(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fee}function UFe(e,t){const n={...t};for(const o in t){const r=e[o],a=t[o];/^on[A-Z]/.test(o)?r&&a?n[o]=(...s)=>{const c=a(...s);return r(...s),c}:r&&(n[o]=r):o==="style"?n[o]={...r,...a}:o==="className"&&(n[o]=[r,a].filter(Boolean).join(" "))}return{...e,...n}}function WFe(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var GFe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],We=GFe.reduce((e,t)=>{const n=J0(`Primitive.${t}`),o=m.forwardRef((r,a)=>{const{asChild:i,...s}=r,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(c,{...s,ref:a})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function qee(e,t){e&&su.flushSync(()=>e.dispatchEvent(t))}function bq(e){const t=e+"CollectionProvider",[n,o]=yr(t),[r,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=k=>{const{scope:x,children:v}=k,M=uo.useRef(null),w=uo.useRef(new Map).current;return f.jsx(r,{scope:x,itemMap:w,collectionRef:M,children:v})};i.displayName=t;const s=e+"CollectionSlot",c=J0(s),l=uo.forwardRef((k,x)=>{const{scope:v,children:M}=k,w=a(s,v),b=xt(x,w.collectionRef);return f.jsx(c,{ref:b,children:M})});l.displayName=s;const h=e+"CollectionItemSlot",d="data-radix-collection-item",p=J0(h),y=uo.forwardRef((k,x)=>{const{scope:v,children:M,...w}=k,b=uo.useRef(null),C=xt(x,b),_=a(h,v);return uo.useEffect(()=>(_.itemMap.set(b,{ref:b,...w}),()=>void _.itemMap.delete(b))),f.jsx(p,{[d]:"",ref:C,children:M})});y.displayName=h;function g(k){const x=a(e+"CollectionConsumer",k);return uo.useCallback(()=>{const M=x.collectionRef.current;if(!M)return[];const w=Array.from(M.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((_,S)=>w.indexOf(_.ref.current)-w.indexOf(S.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:l,ItemSlot:y},g,o]}var Vee=["PageUp","PageDown"],Bee=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Uee={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},lh="Slider",[MO,KFe,XFe]=bq(lh),[Wee]=yr(lh,[XFe]),[ZFe,LR]=Wee(lh),Gee=m.forwardRef((e,t)=>{const{name:n,min:o=0,max:r=100,step:a=1,orientation:i="horizontal",disabled:s=!1,minStepsBetweenThumbs:c=0,defaultValue:l=[o],value:h,onValueChange:d=()=>{},onValueCommit:p=()=>{},inverted:y=!1,form:g,...k}=e,x=m.useRef(new Set),v=m.useRef(0),w=i==="horizontal"?YFe:QFe,[b=[],C]=du({prop:h,defaultProp:l,onChange:R=>{var V;(V=[...x.current][v.current])==null||V.focus(),d(R)}}),_=m.useRef(b);function S(R){const j=oqe(b,R);I(R,j)}function L(R){I(R,v.current)}function A(){const R=_.current[v.current];b[v.current]!==R&&p(b)}function I(R,j,{commit:V}={commit:!1}){const $=sqe(a),T=cqe(Math.round((R-o)/a)*a+o,$),D=Hee(T,[o,r]);C((F=[])=>{const z=tqe(F,D,j);if(iqe(z,c*a)){v.current=z.indexOf(D);const E=String(z)!==String(F);return E&&V&&p(z),E?z:F}else return F})}return f.jsx(ZFe,{scope:e.__scopeSlider,name:n,disabled:s,min:o,max:r,valueIndexToChangeRef:v,thumbs:x.current,values:b,orientation:i,form:g,children:f.jsx(MO.Provider,{scope:e.__scopeSlider,children:f.jsx(MO.Slot,{scope:e.__scopeSlider,children:f.jsx(w,{"aria-disabled":s,"data-disabled":s?"":void 0,...k,ref:t,onPointerDown:Se(k.onPointerDown,()=>{s||(_.current=b)}),min:o,max:r,inverted:y,onSlideStart:s?void 0:S,onSlideMove:s?void 0:L,onSlideEnd:s?void 0:A,onHomeKeyDown:()=>!s&&I(o,0,{commit:!0}),onEndKeyDown:()=>!s&&I(r,b.length-1,{commit:!0}),onStepKeyDown:({event:R,direction:j})=>{if(!s){const T=Vee.includes(R.key)||R.shiftKey&&Bee.includes(R.key)?10:1,D=v.current,F=b[D],z=a*T*j;I(F+z,D,{commit:!0})}}})})})})});Gee.displayName=lh;var[Kee,Xee]=Wee(lh,{startEdge:"left",endEdge:"right",size:"width",direction:1}),YFe=m.forwardRef((e,t)=>{const{min:n,max:o,dir:r,inverted:a,onSlideStart:i,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...h}=e,[d,p]=m.useState(null),y=xt(t,w=>p(w)),g=m.useRef(void 0),k=SR(r),x=k==="ltr",v=x&&!a||!x&&a;function M(w){const b=g.current||d.getBoundingClientRect(),C=[0,b.width],S=_q(C,v?[n,o]:[o,n]);return g.current=b,S(w-b.left)}return f.jsx(Kee,{scope:e.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width",children:f.jsx(Zee,{dir:k,"data-orientation":"horizontal",...h,ref:y,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const b=M(w.clientX);i==null||i(b)},onSlideMove:w=>{const b=M(w.clientX);s==null||s(b)},onSlideEnd:()=>{g.current=void 0,c==null||c()},onStepKeyDown:w=>{const C=Uee[v?"from-left":"from-right"].includes(w.key);l==null||l({event:w,direction:C?-1:1})}})})}),QFe=m.forwardRef((e,t)=>{const{min:n,max:o,inverted:r,onSlideStart:a,onSlideMove:i,onSlideEnd:s,onStepKeyDown:c,...l}=e,h=m.useRef(null),d=xt(t,h),p=m.useRef(void 0),y=!r;function g(k){const x=p.current||h.current.getBoundingClientRect(),v=[0,x.height],w=_q(v,y?[o,n]:[n,o]);return p.current=x,w(k-x.top)}return f.jsx(Kee,{scope:e.__scopeSlider,startEdge:y?"bottom":"top",endEdge:y?"top":"bottom",size:"height",direction:y?1:-1,children:f.jsx(Zee,{"data-orientation":"vertical",...l,ref:d,style:{...l.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:k=>{const x=g(k.clientY);a==null||a(x)},onSlideMove:k=>{const x=g(k.clientY);i==null||i(x)},onSlideEnd:()=>{p.current=void 0,s==null||s()},onStepKeyDown:k=>{const v=Uee[y?"from-bottom":"from-top"].includes(k.key);c==null||c({event:k,direction:v?-1:1})}})})}),Zee=m.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:o,onSlideMove:r,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:c,...l}=e,h=LR(lh,n);return f.jsx(We.span,{...l,ref:t,onKeyDown:Se(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):Vee.concat(Bee).includes(d.key)&&(c(d),d.preventDefault())}),onPointerDown:Se(e.onPointerDown,d=>{const p=d.target;p.setPointerCapture(d.pointerId),d.preventDefault(),h.thumbs.has(p)?p.focus():o(d)}),onPointerMove:Se(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&r(d)}),onPointerUp:Se(e.onPointerUp,d=>{const p=d.target;p.hasPointerCapture(d.pointerId)&&(p.releasePointerCapture(d.pointerId),a(d))})})}),Yee="SliderTrack",Qee=m.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=LR(Yee,n);return f.jsx(We.span,{"data-disabled":r.disabled?"":void 0,"data-orientation":r.orientation,...o,ref:t})});Qee.displayName=Yee;var bO="SliderRange",Jee=m.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=LR(bO,n),a=Xee(bO,n),i=m.useRef(null),s=xt(t,i),c=r.values.length,l=r.values.map(p=>nte(p,r.min,r.max)),h=c>1?Math.min(...l):0,d=100-Math.max(...l);return f.jsx(We.span,{"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,...o,ref:s,style:{...e.style,[a.startEdge]:h+"%",[a.endEdge]:d+"%"}})});Jee.displayName=bO;var _O="SliderThumb",ete=m.forwardRef((e,t)=>{const n=KFe(e.__scopeSlider),[o,r]=m.useState(null),a=xt(t,s=>r(s)),i=m.useMemo(()=>o?n().findIndex(s=>s.ref.current===o):-1,[n,o]);return f.jsx(JFe,{...e,ref:a,index:i})}),JFe=m.forwardRef((e,t)=>{const{__scopeSlider:n,index:o,name:r,...a}=e,i=LR(_O,n),s=Xee(_O,n),[c,l]=m.useState(null),h=xt(t,M=>l(M)),d=c?i.form||!!c.closest("form"):!0,p=Oee(c),y=i.values[o],g=y===void 0?0:nte(y,i.min,i.max),k=nqe(o,i.values.length),x=p==null?void 0:p[s.size],v=x?rqe(x,g,s.direction):0;return m.useEffect(()=>{if(c)return i.thumbs.add(c),()=>{i.thumbs.delete(c)}},[c,i.thumbs]),f.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${g}% + ${v}px)`},children:[f.jsx(MO.ItemSlot,{scope:e.__scopeSlider,children:f.jsx(We.span,{role:"slider","aria-label":e["aria-label"]||k,"aria-valuemin":i.min,"aria-valuenow":y,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...a,ref:h,style:y===void 0?{display:"none"}:e.style,onFocus:Se(e.onFocus,()=>{i.valueIndexToChangeRef.current=o})})}),d&&f.jsx(tte,{name:r??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:y},o)]})});ete.displayName=_O;var eqe="RadioBubbleInput",tte=m.forwardRef(({__scopeSlider:e,value:t,...n},o)=>{const r=m.useRef(null),a=xt(r,o),i=FFe(t);return m.useEffect(()=>{const s=r.current;if(!s)return;const c=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&h){const d=new Event("input",{bubbles:!0});h.call(s,t),s.dispatchEvent(d)}},[i,t]),f.jsx(We.input,{style:{display:"none"},...n,ref:a,defaultValue:t})});tte.displayName=eqe;function tqe(e=[],t,n){const o=[...e];return o[n]=t,o.sort((r,a)=>r-a)}function nte(e,t,n){const a=100/(n-t)*(e-t);return Hee(a,[0,100])}function nqe(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function oqe(e,t){if(e.length===1)return 0;const n=e.map(r=>Math.abs(r-t)),o=Math.min(...n);return n.indexOf(o)}function rqe(e,t,n){const o=e/2,a=_q([0,50],[0,o]);return(o-a(t)*n)*n}function aqe(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function iqe(e,t){if(t>0){const n=aqe(e);return Math.min(...n)>=t}return!0}function _q(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function sqe(e){return(String(e).split(".")[1]||"").length}function cqe(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var ote=Gee,lqe=Qee,dqe=Jee,uqe=ete;const Cq=m.forwardRef(({className:e,...t},n)=>f.jsxs(ote,{ref:n,className:ee("sf:relative sf:flex sf:w-full sf:touch-none sf:select-none sf:items-center",e),...t,children:[f.jsx(lqe,{className:"sf:relative sf:h-1.5 sf:w-full sf:grow sf:overflow-hidden sf:rounded-full sf:bg-secondary",children:f.jsx(dqe,{className:"sf:absolute sf:h-full sf:bg-primary"})}),f.jsx(uqe,{className:"sf:block sf:h-4 sf:w-4 sf:rounded-full sf:border sf:border-primary/60 sf:bg-background sf:shadow-sm sf:transition-colors sf:hover:border-primary sf:focus-visible:outline-hidden sf:focus-visible:ring-2 sf:focus-visible:ring-ring sf:disabled:pointer-events-none sf:disabled:opacity-50"})]}));Cq.displayName=ote.displayName;const hqe={1:"sf:text-2xl sf:font-semibold sf:tracking-tight",2:"sf:text-xl sf:font-semibold sf:tracking-tight",3:"sf:text-lg sf:font-semibold",4:"sf:text-base sf:font-semibold"};function fqe({text:e,level:t=2}){const n=`h${t}`;return f.jsx(n,{className:ee(hqe[t]),children:e})}const rte=m.createContext({custom:{}});function pqe({value:e,children:t}){return f.jsx(rte.Provider,{value:e,children:t})}function yqe(){return m.useContext(rte)}function mqe({name:e,as:t,size:n=16,fallback:o=IEe,...r}){const a=yqe(),i=t??(e?a.custom[e]:void 0)??(e?df[e]:void 0)??df[o];return i?f.jsx(i,{size:n,...r}):null}function gqe({name:e,size:t=16}){return f.jsx(mqe,{name:e,size:t,"aria-hidden":!0})}function kqe(e){return e==null?"":typeof e=="string"||typeof e=="number"?e:typeof e=="object"?JSON.stringify(e):String(e)}function vqe({label:e,value:t}){return f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-1",children:[f.jsx("span",{className:"sf:text-muted-foreground sf:text-xs sf:uppercase sf:tracking-wide",children:e}),f.jsx("span",{className:"sf:font-semibold sf:text-2xl sf:tabular-nums",children:kqe(t)})]})}function xqe(e){return e==null?"":typeof e=="string"||typeof e=="number"?String(e):JSON.stringify(e)}function wqe({columns:e=[],rows:t=[]}){return f.jsx("div",{className:"sf:w-full sf:overflow-x-auto",children:f.jsxs("table",{className:"sf:w-full sf:text-left sf:text-sm",children:[f.jsx("thead",{className:"sf:border-b sf:bg-muted/50",children:f.jsx("tr",{children:e.map(n=>f.jsx("th",{scope:"col",className:"sf:px-3 sf:py-2 sf:font-medium sf:text-muted-foreground",children:n.label},n.key))})}),f.jsx("tbody",{children:t.map((n,o)=>f.jsx("tr",{className:"sf:border-b last:sf:border-0",children:e.map(r=>f.jsx("td",{className:"sf:px-3 sf:py-2",children:xqe(n[r.key])},r.key))},o))})]})})}function Mqe({text:e,muted:t}){return f.jsx("p",{className:ee("sf:text-sm",t&&"sf:text-muted-foreground"),children:e})}function bqe({title:e,children:t}){return f.jsxs("div",{className:"sf:bg-card sf:p-4 sf:text-card-foreground sf:shadow-sm",children:[e!==void 0?f.jsx("div",{className:"sf:mb-3 sf:font-semibold sf:text-base sf:leading-tight",children:e}):null,f.jsx("div",{className:"sf:flex sf:flex-col sf:gap-3",children:t})]})}function _qe({orientation:e="horizontal"}){return f.jsx("div",{"aria-orientation":e,className:ee("sf:bg-border",e==="horizontal"?"sf:h-px sf:w-full":"sf:h-full sf:w-px")})}function Cqe({value:e,items:t,onChange:n,children:o}){const r=t??[];return f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-2",children:[f.jsx("div",{className:"sf:inline-flex sf:h-9 sf:items-center sf:justify-start sf:rounded-md sf:bg-muted sf:p-1 sf:text-muted-foreground",children:r.map(a=>f.jsx("button",{type:"button","data-state":e===a.id?"active":"inactive",onClick:()=>n==null?void 0:n({value:a.id}),className:"sf:inline-flex sf:items-center sf:justify-center sf:whitespace-nowrap sf:rounded-sm sf:px-3 sf:py-1 sf:text-xs sf:font-medium sf:transition-all sf:data-[state=active]:bg-background sf:data-[state=active]:text-foreground sf:data-[state=active]:shadow-sm",children:a.label},a.id))}),o]})}function Sqe({items:e}){const t=e??[];return f.jsx("div",{className:"sf:flex sf:flex-col sf:divide-y sf:rounded-md sf:border",children:t.map(n=>f.jsxs("details",{className:"sf:group sf:px-3 sf:py-2",children:[f.jsx("summary",{className:"sf:cursor-pointer sf:py-1 sf:font-medium sf:text-sm",children:n.title}),f.jsx("div",{className:"sf:py-2 sf:text-muted-foreground sf:text-sm",children:n.content})]},n.id))})}const JW={default:"sf:bg-primary sf:text-primary-foreground",secondary:"sf:bg-secondary sf:text-secondary-foreground",destructive:"sf:bg-destructive sf:text-destructive-foreground",outline:"sf:border sf:border-border sf:text-foreground"};function Lqe({label:e,variant:t="default"}){return f.jsx("span",{className:ee("sf:inline-flex sf:items-center sf:rounded-full sf:px-2.5 sf:py-0.5 sf:font-medium sf:text-xs",JW[t]??JW.default),children:e})}function Nqe({src:e,alt:t,fallback:n}){return e?f.jsx("img",{src:e,alt:t??"",className:"sf:inline-block sf:h-9 sf:w-9 sf:rounded-full sf:object-cover"}):f.jsx("span",{className:"sf:inline-flex sf:h-9 sf:w-9 sf:items-center sf:justify-center sf:rounded-full sf:bg-muted sf:font-medium sf:text-muted-foreground sf:text-sm",children:n??"?"})}function Iqe({value:e=0}){const t=Math.max(0,Math.min(100,e));return f.jsx("div",{"aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":100,className:"sf:relative sf:h-2 sf:w-full sf:overflow-hidden sf:rounded-full sf:bg-secondary",children:f.jsx("div",{className:"sf:h-full sf:bg-primary sf:transition-all",style:{width:`${t}%`}})})}function Aqe({width:e,height:t}){return f.jsx("div",{className:"sf:animate-pulse sf:rounded-md sf:bg-muted",style:{width:e??"100%",height:t??16}})}function Eqe({text:e}){return f.jsx("span",{className:"sf:font-medium sf:text-sm sf:leading-none",children:e})}function jqe({label:e,variant:t="default",onClick:n,disabled:o}){return f.jsx(rt,{variant:t,disabled:o,onClick:()=>n==null?void 0:n(),children:e})}const Sq="sf:flex sf:h-9 sf:w-full sf:rounded-md sf:border sf:border-input sf:bg-background sf:px-3 sf:py-1 sf:text-sm sf:shadow-sm sf:transition-colors sf:placeholder:text-muted-foreground sf:focus-visible:outline-hidden sf:focus-visible:ring-1 sf:focus-visible:ring-ring sf:disabled:cursor-not-allowed sf:disabled:opacity-50";function $qe({value:e,placeholder:t,onChange:n}){return f.jsx("input",{type:"text",value:e??"",placeholder:t,onChange:o=>n==null?void 0:n({value:o.target.value}),className:Sq})}function Pqe({checked:e,onChange:t,label:n}){return f.jsxs("label",{className:"sf:inline-flex sf:items-center sf:gap-2 sf:text-sm",children:[f.jsx("input",{type:"checkbox",checked:e??!1,onChange:o=>t==null?void 0:t({checked:o.target.checked}),className:"sf:h-4 sf:w-4 sf:rounded sf:border sf:border-input sf:accent-primary"}),n]})}function zqe({checked:e,onChange:t}){return f.jsx("button",{type:"button",role:"switch","aria-checked":e??!1,onClick:()=>t==null?void 0:t({checked:!(e??!1)}),className:ee("sf:relative sf:inline-flex sf:h-5 sf:w-9 sf:shrink-0 sf:cursor-pointer sf:items-center sf:rounded-full sf:border-2 sf:border-transparent sf:transition-colors",e?"sf:bg-primary":"sf:bg-input"),children:f.jsx("span",{className:ee("sf:pointer-events-none sf:block sf:h-4 sf:w-4 sf:rounded-full sf:bg-background sf:shadow-lg sf:ring-0 sf:transition-transform",e?"sf:translate-x-4":"sf:translate-x-0")})})}function Rqe({value:e,items:t,onChange:n}){return f.jsx("select",{value:e??"",onChange:o=>n==null?void 0:n({value:o.target.value}),className:Sq,children:(t??[]).map(o=>f.jsx("option",{value:o.value,children:o.label},o.value))})}function Tqe({value:e,placeholder:t,rows:n,onChange:o}){return f.jsx("textarea",{value:e??"",placeholder:t,rows:n,onChange:r=>o==null?void 0:o({value:r.target.value}),className:ee(Sq,"sf:min-h-16 sf:py-2")})}function Dqe({value:e,min:t=0,max:n=100,step:o=1,onChange:r}){return f.jsx(Cq,{value:e===void 0?void 0:[e],min:t,max:n,step:o,onValueChange:a=>{const[i]=a;typeof i=="number"&&(r==null||r({value:i}))}})}const Hqe=m.lazy(()=>sh(()=>import("./chart-CTi57A5k.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])));function Oqe(e){return f.jsx(m.Suspense,{fallback:null,children:f.jsx(Hqe,{...e})})}const Fqe=m.lazy(()=>sh(()=>import("./markdown-DX0LZAiR.js"),[]));function qqe(e){return f.jsx(m.Suspense,{fallback:null,children:f.jsx(Fqe,{...e})})}const Vqe=m.lazy(()=>sh(()=>import("./code-block-BaLTXteb.js"),[]));function Bqe(e){return f.jsx(m.Suspense,{fallback:null,children:f.jsx(Vqe,{...e})})}const ate={Card:bqe,Separator:_qe,Tabs:Cqe,Accordion:Sqe,Badge:Lqe,Avatar:Nqe,Progress:Iqe,Skeleton:Aqe,Label:Eqe,Heading:fqe,Text:Mqe,Icon:gqe,Chart:Oqe,Table:wqe,Metric:vqe,CodeBlock:Bqe,Markdown:qqe,Button:jqe,Input:$qe,Checkbox:Pqe,Switch:zqe,Select:Rqe,Textarea:Tqe,Slider:Dqe},eG=Ree.filter(e=>ate[e]===void 0);if(eG.length>0)throw new Error(`componentRegistry is missing impls for: ${eG.join(", ")}. Every catalog entry in COMPONENT_NAMES must have a matching component impl.`);const Uqe={components:ate};function Wqe(e,t){return t.kind==="set"?{...e,[t.path]:t.value}:{...e,...t.partial}}function ite(e){return e===null||typeof e!="object"?!1:"$state"in e||"$action"in e||"$param"in e||"$cond"in e}function CP(e,t,n,o){if(!ite(e))return e;if(typeof e.$state=="string")return t[e.$state];if(typeof e.$action=="string"){const r=e.$action;return o.has(r)?a=>n(r,a):void 0}if("$cond"in e){const r=CP(e.$cond,t,n,o);return CP(r?e.$then:e.$else,t,n,o)}return e}function Gqe(e,t,n,o){if(!e)return{};const r={};for(const[a,i]of Object.entries(e))r[a]=CP(i,t,n,o);return r}function tG({spec:e,nodeId:t,apiBaseUrl:n="/api",projectSlug:o,flowSlug:r}){const[a,i]=m.useReducer(Wqe,e.state??{}),s=new Set(Object.keys(e.actions??{})),c=m.useCallback(async(l,h)=>{var y;const d=(y=e.actions)==null?void 0:y[l];if(!d)return;if(d.kind==="set"){const g=Kqe(d.value,h,a);i({kind:"set",path:d.path,value:g});return}if(!o||!r)return;const p=`${n}/projects/${encodeURIComponent(o)}/flows/${encodeURIComponent(r)}/nodes/${encodeURIComponent(t)}/actions/${encodeURIComponent(l)}`;try{const g=await fetch(p,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(h??{})});if(!g.ok){const x=await g.text();i({kind:"set",path:`/__errors/${l}`,value:x});return}const k=await g.json();k!==null&&typeof k=="object"&&i({kind:"merge",partial:k})}catch(g){i({kind:"set",path:`/__errors/${l}`,value:g instanceof Error?g.message:String(g)})}},[e.actions,o,r,n,t,a]);return ste(e.root,e,a,c,s)}function Kqe(e,t,n){return ite(e)?typeof e.$param=="string"?t!==null&&typeof t=="object"?t[e.$param]:void 0:typeof e.$state=="string"?n[e.$state]:e:e}function ste(e,t,n,o,r){const a=t.elements[e];if(!a)return null;const i=Uqe.components[a.type];if(!i)return null;const s=Gqe(a.props,n,o,r),l=(a.children??[]).map(h=>f.jsx(Xqe,{children:ste(h,t,n,o,r)},h));return f.jsx(i,{...s,children:l.length>0?l:void 0})}function Xqe({children:e}){return e}function ra(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function Zqe(e,t=globalThis==null?void 0:globalThis.document){const n=ra(e);m.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Yqe="DismissableLayer",CO="dismissableLayer.update",Qqe="dismissableLayer.pointerDownOutside",Jqe="dismissableLayer.focusOutside",nG,cte=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Uf=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...c}=e,l=m.useContext(cte),[h,d]=m.useState(null),p=(h==null?void 0:h.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=m.useState({}),g=xt(t,S=>d(S)),k=Array.from(l.layers),[x]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=k.indexOf(x),M=h?k.indexOf(h):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,b=M>=v,C=nVe(S=>{const L=S.target,A=[...l.branches].some(I=>I.contains(L));!b||A||(r==null||r(S),i==null||i(S),S.defaultPrevented||s==null||s())},p),_=oVe(S=>{const L=S.target;[...l.branches].some(I=>I.contains(L))||(a==null||a(S),i==null||i(S),S.defaultPrevented||s==null||s())},p);return Zqe(S=>{M===l.layers.size-1&&(o==null||o(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},p),m.useEffect(()=>{if(h)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(nG=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(h)),l.layers.add(h),oG(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=nG)}},[h,p,n,l]),m.useEffect(()=>()=>{h&&(l.layers.delete(h),l.layersWithOutsidePointerEventsDisabled.delete(h),oG())},[h,l]),m.useEffect(()=>{const S=()=>y({});return document.addEventListener(CO,S),()=>document.removeEventListener(CO,S)},[]),f.jsx(We.div,{...c,ref:g,style:{pointerEvents:w?b?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,C.onPointerDownCapture)})});Uf.displayName=Yqe;var eVe="DismissableLayerBranch",tVe=m.forwardRef((e,t)=>{const n=m.useContext(cte),o=m.useRef(null),r=xt(t,o);return m.useEffect(()=>{const a=o.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),f.jsx(We.div,{...e,ref:r})});tVe.displayName=eVe;function nVe(e,t=globalThis==null?void 0:globalThis.document){const n=ra(e),o=m.useRef(!1),r=m.useRef(()=>{});return m.useEffect(()=>{const a=s=>{if(s.target&&!o.current){let c=function(){lte(Qqe,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);o.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function oVe(e,t=globalThis==null?void 0:globalThis.document){const n=ra(e),o=m.useRef(!1);return m.useEffect(()=>{const r=a=>{a.target&&!o.current&&lte(Jqe,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function oG(){const e=new CustomEvent(CO);document.dispatchEvent(e)}function lte(e,t,n,{discrete:o}){const r=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?qee(r,a):r.dispatchEvent(a)}var lD=0;function Lq(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??rG()),document.body.insertAdjacentElement("beforeend",e[1]??rG()),lD++,()=>{lD===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),lD--}},[])}function rG(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var dD="focusScope.autoFocusOnMount",uD="focusScope.autoFocusOnUnmount",aG={bubbles:!1,cancelable:!0},rVe="FocusScope",NR=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:a,...i}=e,[s,c]=m.useState(null),l=ra(r),h=ra(a),d=m.useRef(null),p=xt(t,k=>c(k)),y=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(o){let k=function(w){if(y.paused||!s)return;const b=w.target;s.contains(b)?d.current=b:xi(d.current,{select:!0})},x=function(w){if(y.paused||!s)return;const b=w.relatedTarget;b!==null&&(s.contains(b)||xi(d.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const C of w)C.removedNodes.length>0&&xi(s)};document.addEventListener("focusin",k),document.addEventListener("focusout",x);const M=new MutationObserver(v);return s&&M.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",x),M.disconnect()}}},[o,s,y.paused]),m.useEffect(()=>{if(s){sG.add(y);const k=document.activeElement;if(!s.contains(k)){const v=new CustomEvent(dD,aG);s.addEventListener(dD,l),s.dispatchEvent(v),v.defaultPrevented||(aVe(dVe(dte(s)),{select:!0}),document.activeElement===k&&xi(s))}return()=>{s.removeEventListener(dD,l),setTimeout(()=>{const v=new CustomEvent(uD,aG);s.addEventListener(uD,h),s.dispatchEvent(v),v.defaultPrevented||xi(k??document.body,{select:!0}),s.removeEventListener(uD,h),sG.remove(y)},0)}}},[s,l,h,y]);const g=m.useCallback(k=>{if(!n&&!o||y.paused)return;const x=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,v=document.activeElement;if(x&&v){const M=k.currentTarget,[w,b]=iVe(M);w&&b?!k.shiftKey&&v===b?(k.preventDefault(),n&&xi(w,{select:!0})):k.shiftKey&&v===w&&(k.preventDefault(),n&&xi(b,{select:!0})):v===M&&k.preventDefault()}},[n,o,y.paused]);return f.jsx(We.div,{tabIndex:-1,...i,ref:p,onKeyDown:g})});NR.displayName=rVe;function aVe(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(xi(o,{select:t}),document.activeElement!==n)return}function iVe(e){const t=dte(e),n=iG(t,e),o=iG(t.reverse(),e);return[n,o]}function dte(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function iG(e,t){for(const n of e)if(!sVe(n,{upTo:t}))return n}function sVe(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cVe(e){return e instanceof HTMLInputElement&&"select"in e}function xi(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&cVe(e)&&t&&e.select()}}var sG=lVe();function lVe(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=cG(e,t),e.unshift(t)},remove(t){var n;e=cG(e,t),(n=e[0])==null||n.resume()}}}function cG(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function dVe(e){return e.filter(t=>t.tagName!=="A")}var uVe=iF[" useId ".trim().toString()]||(()=>{}),hVe=0;function zn(e){const[t,n]=m.useState(uVe());return ts(()=>{n(o=>o??String(hVe++))},[e]),e||(t?`radix-${t}`:"")}const fVe=["top","right","bottom","left"],ns=Math.min,ho=Math.max,Cz=Math.round,Kp=Math.floor,ea=e=>({x:e,y:e}),pVe={left:"right",right:"left",bottom:"top",top:"bottom"};function SO(e,t,n){return ho(e,ns(t,n))}function Wa(e,t){return typeof e=="function"?e(t):e}function Ga(e){return e.split("-")[0]}function dh(e){return e.split("-")[1]}function Nq(e){return e==="x"?"y":"x"}function Iq(e){return e==="y"?"height":"width"}function Kr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Aq(e){return Nq(Kr(e))}function yVe(e,t,n){n===void 0&&(n=!1);const o=dh(e),r=Aq(e),a=Iq(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Sz(i)),[i,Sz(i)]}function mVe(e){const t=Sz(e);return[LO(e),t,LO(t)]}function LO(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const lG=["left","right"],dG=["right","left"],gVe=["top","bottom"],kVe=["bottom","top"];function vVe(e,t,n){switch(e){case"top":case"bottom":return n?t?dG:lG:t?lG:dG;case"left":case"right":return t?gVe:kVe;default:return[]}}function xVe(e,t,n,o){const r=dh(e);let a=vVe(Ga(e),n==="start",o);return r&&(a=a.map(i=>i+"-"+r),t&&(a=a.concat(a.map(LO)))),a}function Sz(e){const t=Ga(e);return pVe[t]+e.slice(t.length)}function wVe(e){return{top:0,right:0,bottom:0,left:0,...e}}function ute(e){return typeof e!="number"?wVe(e):{top:e,right:e,bottom:e,left:e}}function Lz(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function uG(e,t,n){let{reference:o,floating:r}=e;const a=Kr(t),i=Aq(t),s=Iq(i),c=Ga(t),l=a==="y",h=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[s]/2-r[s]/2;let y;switch(c){case"top":y={x:h,y:o.y-r.height};break;case"bottom":y={x:h,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:d};break;case"left":y={x:o.x-r.width,y:d};break;default:y={x:o.x,y:o.y}}switch(dh(t)){case"start":y[i]-=p*(n&&l?-1:1);break;case"end":y[i]+=p*(n&&l?-1:1);break}return y}async function MVe(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:p=!1,padding:y=0}=Wa(t,e),g=ute(y),x=s[p?d==="floating"?"reference":"floating":d],v=Lz(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:h,strategy:c})),M=d==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),b=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},C=Lz(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:M,offsetParent:w,strategy:c}):M);return{top:(v.top-C.top+g.top)/b.y,bottom:(C.bottom-v.bottom+g.bottom)/b.y,left:(v.left-C.left+g.left)/b.x,right:(C.right-v.right+g.right)/b.x}}const bVe=50,_Ve=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:i}=n,s=i.detectOverflow?i:{...i,detectOverflow:MVe},c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:h,y:d}=uG(l,o,c),p=o,y=0;const g={};for(let k=0;k<a.length;k++){const x=a[k];if(!x)continue;const{name:v,fn:M}=x,{x:w,y:b,data:C,reset:_}=await M({x:h,y:d,initialPlacement:o,placement:p,strategy:r,middlewareData:g,rects:l,platform:s,elements:{reference:e,floating:t}});h=w??h,d=b??d,g[v]={...g[v],...C},_&&y<bVe&&(y++,typeof _=="object"&&(_.placement&&(p=_.placement),_.rects&&(l=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):_.rects),{x:h,y:d}=uG(l,p,c)),k=-1)}return{x:h,y:d,placement:p,strategy:r,middlewareData:g}},CVe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:a,platform:i,elements:s,middlewareData:c}=t,{element:l,padding:h=0}=Wa(e,t)||{};if(l==null)return{};const d=ute(h),p={x:n,y:o},y=Aq(r),g=Iq(y),k=await i.getDimensions(l),x=y==="y",v=x?"top":"left",M=x?"bottom":"right",w=x?"clientHeight":"clientWidth",b=a.reference[g]+a.reference[y]-p[y]-a.floating[g],C=p[y]-a.reference[y],_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let S=_?_[w]:0;(!S||!await(i.isElement==null?void 0:i.isElement(_)))&&(S=s.floating[w]||a.floating[g]);const L=b/2-C/2,A=S/2-k[g]/2-1,I=ns(d[v],A),R=ns(d[M],A),j=I,V=S-k[g]-R,$=S/2-k[g]/2+L,T=SO(j,$,V),D=!c.arrow&&dh(r)!=null&&$!==T&&a.reference[g]/2-($<j?I:R)-k[g]/2<0,F=D?$<j?$-j:$-V:0;return{[y]:p[y]+F,data:{[y]:T,centerOffset:$-T-F,...D&&{alignmentOffset:F}},reset:D}}}),SVe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:k=!0,...x}=Wa(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const v=Ga(r),M=Kr(s),w=Ga(s)===s,b=await(c.isRTL==null?void 0:c.isRTL(l.floating)),C=p||(w||!k?[Sz(s)]:mVe(s)),_=g!=="none";!p&&_&&C.push(...xVe(s,k,g,b));const S=[s,...C],L=await c.detectOverflow(t,x),A=[];let I=((o=a.flip)==null?void 0:o.overflows)||[];if(h&&A.push(L[v]),d){const $=yVe(r,i,b);A.push(L[$[0]],L[$[1]])}if(I=[...I,{placement:r,overflows:A}],!A.every($=>$<=0)){var R,j;const $=(((R=a.flip)==null?void 0:R.index)||0)+1,T=S[$];if(T&&(!(d==="alignment"?M!==Kr(T):!1)||I.every(z=>Kr(z.placement)===M?z.overflows[0]>0:!0)))return{data:{index:$,overflows:I},reset:{placement:T}};let D=(j=I.filter(F=>F.overflows[0]<=0).sort((F,z)=>F.overflows[1]-z.overflows[1])[0])==null?void 0:j.placement;if(!D)switch(y){case"bestFit":{var V;const F=(V=I.filter(z=>{if(_){const E=Kr(z.placement);return E===M||E==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(E=>E>0).reduce((E,N)=>E+N,0)]).sort((z,E)=>z[1]-E[1])[0])==null?void 0:V[0];F&&(D=F);break}case"initialPlacement":D=s;break}if(r!==D)return{reset:{placement:D}}}return{}}}};function hG(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fG(e){return fVe.some(t=>e[t]>=0)}const LVe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...a}=Wa(e,t);switch(r){case"referenceHidden":{const i=await o.detectOverflow(t,{...a,elementContext:"reference"}),s=hG(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:fG(s)}}}case"escaped":{const i=await o.detectOverflow(t,{...a,altBoundary:!0}),s=hG(i,n.floating);return{data:{escapedOffsets:s,escaped:fG(s)}}}default:return{}}}}},hte=new Set(["left","top"]);async function NVe(e,t){const{placement:n,platform:o,elements:r}=e,a=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=Ga(n),s=dh(n),c=Kr(n)==="y",l=hte.has(i)?-1:1,h=a&&c?-1:1,d=Wa(t,e);let{mainAxis:p,crossAxis:y,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(y=s==="end"?g*-1:g),c?{x:y*h,y:p*l}:{x:p*l,y:y*h}}const IVe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:a,placement:i,middlewareData:s}=t,c=await NVe(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:a+c.y,data:{...c,placement:i}}}}},AVe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:a}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:v=>{let{x:M,y:w}=v;return{x:M,y:w}}},...l}=Wa(e,t),h={x:n,y:o},d=await a.detectOverflow(t,l),p=Kr(Ga(r)),y=Nq(p);let g=h[y],k=h[p];if(i){const v=y==="y"?"top":"left",M=y==="y"?"bottom":"right",w=g+d[v],b=g-d[M];g=SO(w,g,b)}if(s){const v=p==="y"?"top":"left",M=p==="y"?"bottom":"right",w=k+d[v],b=k-d[M];k=SO(w,k,b)}const x=c.fn({...t,[y]:g,[p]:k});return{...x,data:{x:x.x-n,y:x.y-o,enabled:{[y]:i,[p]:s}}}}}},EVe=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Wa(e,t),h={x:n,y:o},d=Kr(r),p=Nq(d);let y=h[p],g=h[d];const k=Wa(s,t),x=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(c){const w=p==="y"?"height":"width",b=a.reference[p]-a.floating[w]+x.mainAxis,C=a.reference[p]+a.reference[w]-x.mainAxis;y<b?y=b:y>C&&(y=C)}if(l){var v,M;const w=p==="y"?"width":"height",b=hte.has(Ga(r)),C=a.reference[d]-a.floating[w]+(b&&((v=i.offset)==null?void 0:v[d])||0)+(b?0:x.crossAxis),_=a.reference[d]+a.reference[w]+(b?0:((M=i.offset)==null?void 0:M[d])||0)-(b?x.crossAxis:0);g<C?g=C:g>_&&(g=_)}return{[p]:y,[d]:g}}}},jVe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:a,platform:i,elements:s}=t,{apply:c=()=>{},...l}=Wa(e,t),h=await i.detectOverflow(t,l),d=Ga(r),p=dh(r),y=Kr(r)==="y",{width:g,height:k}=a.floating;let x,v;d==="top"||d==="bottom"?(x=d,v=p===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,x=p==="end"?"top":"bottom");const M=k-h.top-h.bottom,w=g-h.left-h.right,b=ns(k-h[x],M),C=ns(g-h[v],w),_=!t.middlewareData.shift;let S=b,L=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=w),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(S=M),_&&!p){const I=ho(h.left,0),R=ho(h.right,0),j=ho(h.top,0),V=ho(h.bottom,0);y?L=g-2*(I!==0||R!==0?I+R:ho(h.left,h.right)):S=k-2*(j!==0||V!==0?j+V:ho(h.top,h.bottom))}await c({...t,availableWidth:L,availableHeight:S});const A=await i.getDimensions(s.floating);return g!==A.width||k!==A.height?{reset:{rects:!0}}:{}}}};function IR(){return typeof window<"u"}function uh(e){return fte(e)?(e.nodeName||"").toLowerCase():"#document"}function ko(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ia(e){var t;return(t=(fte(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fte(e){return IR()?e instanceof Node||e instanceof ko(e).Node:!1}function dr(e){return IR()?e instanceof Element||e instanceof ko(e).Element:!1}function Za(e){return IR()?e instanceof HTMLElement||e instanceof ko(e).HTMLElement:!1}function pG(e){return!IR()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ko(e).ShadowRoot}function Wf(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ur(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function $Ve(e){return/^(table|td|th)$/.test(uh(e))}function AR(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const PVe=/transform|translate|scale|rotate|perspective|filter/,zVe=/paint|layout|strict|content/,Ls=e=>!!e&&e!=="none";let hD;function Eq(e){const t=dr(e)?ur(e):e;return Ls(t.transform)||Ls(t.translate)||Ls(t.scale)||Ls(t.rotate)||Ls(t.perspective)||!jq()&&(Ls(t.backdropFilter)||Ls(t.filter))||PVe.test(t.willChange||"")||zVe.test(t.contain||"")}function RVe(e){let t=os(e);for(;Za(t)&&!eh(t);){if(Eq(t))return t;if(AR(t))return null;t=os(t)}return null}function jq(){return hD==null&&(hD=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),hD}function eh(e){return/^(html|body|#document)$/.test(uh(e))}function ur(e){return ko(e).getComputedStyle(e)}function ER(e){return dr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function os(e){if(uh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pG(e)&&e.host||ia(e);return pG(t)?t.host:t}function pte(e){const t=os(e);return eh(t)?e.ownerDocument?e.ownerDocument.body:e.body:Za(t)&&Wf(t)?t:pte(t)}function _f(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=pte(e),a=r===((o=e.ownerDocument)==null?void 0:o.body),i=ko(r);if(a){const s=NO(i);return t.concat(i,i.visualViewport||[],Wf(r)?r:[],s&&n?_f(s):[])}else return t.concat(r,_f(r,[],n))}function NO(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yte(e){const t=ur(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Za(e),a=r?e.offsetWidth:n,i=r?e.offsetHeight:o,s=Cz(n)!==a||Cz(o)!==i;return s&&(n=a,o=i),{width:n,height:o,$:s}}function $q(e){return dr(e)?e:e.contextElement}function L0(e){const t=$q(e);if(!Za(t))return ea(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:a}=yte(t);let i=(a?Cz(n.width):n.width)/o,s=(a?Cz(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const TVe=ea(0);function mte(e){const t=ko(e);return!jq()||!t.visualViewport?TVe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function DVe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ko(e)?!1:t}function tu(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=$q(e);let i=ea(1);t&&(o?dr(o)&&(i=L0(o)):i=L0(e));const s=DVe(a,n,o)?mte(a):ea(0);let c=(r.left+s.x)/i.x,l=(r.top+s.y)/i.y,h=r.width/i.x,d=r.height/i.y;if(a){const p=ko(a),y=o&&dr(o)?ko(o):o;let g=p,k=NO(g);for(;k&&o&&y!==g;){const x=L0(k),v=k.getBoundingClientRect(),M=ur(k),w=v.left+(k.clientLeft+parseFloat(M.paddingLeft))*x.x,b=v.top+(k.clientTop+parseFloat(M.paddingTop))*x.y;c*=x.x,l*=x.y,h*=x.x,d*=x.y,c+=w,l+=b,g=ko(k),k=NO(g)}}return Lz({width:h,height:d,x:c,y:l})}function jR(e,t){const n=ER(e).scrollLeft;return t?t.left+n:tu(ia(e)).left+n}function gte(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-jR(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function HVe(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const a=r==="fixed",i=ia(o),s=t?AR(t.floating):!1;if(o===i||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ea(1);const h=ea(0),d=Za(o);if((d||!d&&!a)&&((uh(o)!=="body"||Wf(i))&&(c=ER(o)),d)){const y=tu(o);l=L0(o),h.x=y.x+o.clientLeft,h.y=y.y+o.clientTop}const p=i&&!d&&!a?gte(i,c):ea(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+h.x+p.x,y:n.y*l.y-c.scrollTop*l.y+h.y+p.y}}function OVe(e){return Array.from(e.getClientRects())}function FVe(e){const t=ia(e),n=ER(e),o=e.ownerDocument.body,r=ho(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=ho(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+jR(e);const s=-n.scrollTop;return ur(o).direction==="rtl"&&(i+=ho(t.clientWidth,o.clientWidth)-r),{width:r,height:a,x:i,y:s}}const yG=25;function qVe(e,t){const n=ko(e),o=ia(e),r=n.visualViewport;let a=o.clientWidth,i=o.clientHeight,s=0,c=0;if(r){a=r.width,i=r.height;const h=jq();(!h||h&&t==="fixed")&&(s=r.offsetLeft,c=r.offsetTop)}const l=jR(o);if(l<=0){const h=o.ownerDocument,d=h.body,p=getComputedStyle(d),y=h.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(o.clientWidth-d.clientWidth-y);g<=yG&&(a-=g)}else l<=yG&&(a+=l);return{width:a,height:i,x:s,y:c}}function VVe(e,t){const n=tu(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,a=Za(e)?L0(e):ea(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,c=r*a.x,l=o*a.y;return{width:i,height:s,x:c,y:l}}function mG(e,t,n){let o;if(t==="viewport")o=qVe(e,n);else if(t==="document")o=FVe(ia(e));else if(dr(t))o=VVe(t,n);else{const r=mte(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Lz(o)}function kte(e,t){const n=os(e);return n===t||!dr(n)||eh(n)?!1:ur(n).position==="fixed"||kte(n,t)}function BVe(e,t){const n=t.get(e);if(n)return n;let o=_f(e,[],!1).filter(s=>dr(s)&&uh(s)!=="body"),r=null;const a=ur(e).position==="fixed";let i=a?os(e):e;for(;dr(i)&&!eh(i);){const s=ur(i),c=Eq(i);!c&&s.position==="fixed"&&(r=null),(a?!c&&!r:!c&&s.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||Wf(i)&&!c&&kte(e,i))?o=o.filter(h=>h!==i):r=s,i=os(i)}return t.set(e,o),o}function UVe(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?AR(t)?[]:BVe(t,this._c):[].concat(n),o],s=mG(t,i[0],r);let c=s.top,l=s.right,h=s.bottom,d=s.left;for(let p=1;p<i.length;p++){const y=mG(t,i[p],r);c=ho(y.top,c),l=ns(y.right,l),h=ns(y.bottom,h),d=ho(y.left,d)}return{width:l-d,height:h-c,x:d,y:c}}function WVe(e){const{width:t,height:n}=yte(e);return{width:t,height:n}}function GVe(e,t,n){const o=Za(t),r=ia(t),a=n==="fixed",i=tu(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=ea(0);function l(){c.x=jR(r)}if(o||!o&&!a)if((uh(t)!=="body"||Wf(r))&&(s=ER(t)),o){const y=tu(t,!0,a,t);c.x=y.x+t.clientLeft,c.y=y.y+t.clientTop}else r&&l();a&&!o&&r&&l();const h=r&&!o&&!a?gte(r,s):ea(0),d=i.left+s.scrollLeft-c.x-h.x,p=i.top+s.scrollTop-c.y-h.y;return{x:d,y:p,width:i.width,height:i.height}}function fD(e){return ur(e).position==="static"}function gG(e,t){if(!Za(e)||ur(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ia(e)===n&&(n=n.ownerDocument.body),n}function vte(e,t){const n=ko(e);if(AR(e))return n;if(!Za(e)){let r=os(e);for(;r&&!eh(r);){if(dr(r)&&!fD(r))return r;r=os(r)}return n}let o=gG(e,t);for(;o&&$Ve(o)&&fD(o);)o=gG(o,t);return o&&eh(o)&&fD(o)&&!Eq(o)?n:o||RVe(e)||n}const KVe=async function(e){const t=this.getOffsetParent||vte,n=this.getDimensions,o=await n(e.floating);return{reference:GVe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function XVe(e){return ur(e).direction==="rtl"}const ZVe={convertOffsetParentRelativeRectToViewportRelativeRect:HVe,getDocumentElement:ia,getClippingRect:UVe,getOffsetParent:vte,getElementRects:KVe,getClientRects:OVe,getDimensions:WVe,getScale:L0,isElement:dr,isRTL:XVe};function xte(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function YVe(e,t){let n=null,o;const r=ia(e);function a(){var s;clearTimeout(o),(s=n)==null||s.disconnect(),n=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const l=e.getBoundingClientRect(),{left:h,top:d,width:p,height:y}=l;if(s||t(),!p||!y)return;const g=Kp(d),k=Kp(r.clientWidth-(h+p)),x=Kp(r.clientHeight-(d+y)),v=Kp(h),w={rootMargin:-g+"px "+-k+"px "+-x+"px "+-v+"px",threshold:ho(0,ns(1,c))||1};let b=!0;function C(_){const S=_[0].intersectionRatio;if(S!==c){if(!b)return i();S?i(!1,S):o=setTimeout(()=>{i(!1,1e-7)},1e3)}S===1&&!xte(l,e.getBoundingClientRect())&&i(),b=!1}try{n=new IntersectionObserver(C,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(e)}return i(!0),a}function QVe(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,l=$q(e),h=r||a?[...l?_f(l):[],...t?_f(t):[]]:[];h.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const d=l&&s?YVe(l,n):null;let p=-1,y=null;i&&(y=new ResizeObserver(v=>{let[M]=v;M&&M.target===l&&y&&t&&(y.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=y)==null||w.observe(t)})),n()}),l&&!c&&y.observe(l),t&&y.observe(t));let g,k=c?tu(e):null;c&&x();function x(){const v=tu(e);k&&!xte(k,v)&&n(),k=v,g=requestAnimationFrame(x)}return n(),()=>{var v;h.forEach(M=>{r&&M.removeEventListener("scroll",n),a&&M.removeEventListener("resize",n)}),d==null||d(),(v=y)==null||v.disconnect(),y=null,c&&cancelAnimationFrame(g)}}const JVe=IVe,eBe=AVe,tBe=SVe,nBe=jVe,oBe=LVe,kG=CVe,rBe=EVe,aBe=(e,t,n)=>{const o=new Map,r={platform:ZVe,...n},a={...r.platform,_c:o};return _Ve(e,t,{...r,platform:a})};var iBe=typeof document<"u",sBe=function(){},SP=iBe?m.useLayoutEffect:sBe;function Nz(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Nz(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const a=r[o];if(!(a==="_owner"&&e.$$typeof)&&!Nz(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function wte(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vG(e,t){const n=wte(e);return Math.round(t*n)/n}function pD(e){const t=m.useRef(e);return SP(()=>{t.current=e}),t}function cBe(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[h,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,y]=m.useState(o);Nz(p,o)||y(o);const[g,k]=m.useState(null),[x,v]=m.useState(null),M=m.useCallback(z=>{z!==_.current&&(_.current=z,k(z))},[]),w=m.useCallback(z=>{z!==S.current&&(S.current=z,v(z))},[]),b=a||g,C=i||x,_=m.useRef(null),S=m.useRef(null),L=m.useRef(h),A=c!=null,I=pD(c),R=pD(r),j=pD(l),V=m.useCallback(()=>{if(!_.current||!S.current)return;const z={placement:t,strategy:n,middleware:p};R.current&&(z.platform=R.current),aBe(_.current,S.current,z).then(E=>{const N={...E,isPositioned:j.current!==!1};$.current&&!Nz(L.current,N)&&(L.current=N,su.flushSync(()=>{d(N)}))})},[p,t,n,R,j]);SP(()=>{l===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,d(z=>({...z,isPositioned:!1})))},[l]);const $=m.useRef(!1);SP(()=>($.current=!0,()=>{$.current=!1}),[]),SP(()=>{if(b&&(_.current=b),C&&(S.current=C),b&&C){if(I.current)return I.current(b,C,V);V()}},[b,C,V,I,A]);const T=m.useMemo(()=>({reference:_,floating:S,setReference:M,setFloating:w}),[M,w]),D=m.useMemo(()=>({reference:b,floating:C}),[b,C]),F=m.useMemo(()=>{const z={position:n,left:0,top:0};if(!D.floating)return z;const E=vG(D.floating,h.x),N=vG(D.floating,h.y);return s?{...z,transform:"translate("+E+"px, "+N+"px)",...wte(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:E,top:N}},[n,s,D.floating,h.x,h.y]);return m.useMemo(()=>({...h,update:V,refs:T,elements:D,floatingStyles:F}),[h,V,T,D,F])}const lBe=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?kG({element:o.current,padding:r}).fn(n):{}:o?kG({element:o,padding:r}).fn(n):{}}}},dBe=(e,t)=>{const n=JVe(e);return{name:n.name,fn:n.fn,options:[e,t]}},uBe=(e,t)=>{const n=eBe(e);return{name:n.name,fn:n.fn,options:[e,t]}},hBe=(e,t)=>({fn:rBe(e).fn,options:[e,t]}),fBe=(e,t)=>{const n=tBe(e);return{name:n.name,fn:n.fn,options:[e,t]}},pBe=(e,t)=>{const n=nBe(e);return{name:n.name,fn:n.fn,options:[e,t]}},yBe=(e,t)=>{const n=oBe(e);return{name:n.name,fn:n.fn,options:[e,t]}},mBe=(e,t)=>{const n=lBe(e);return{name:n.name,fn:n.fn,options:[e,t]}};var gBe="Arrow",Mte=m.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...a}=e;return f.jsx(We.svg,{...a,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});Mte.displayName=gBe;var kBe=Mte,Pq="Popper",[bte,hh]=yr(Pq),[vBe,_te]=bte(Pq),Cte=e=>{const{__scopePopper:t,children:n}=e,[o,r]=m.useState(null);return f.jsx(vBe,{scope:t,anchor:o,onAnchorChange:r,children:n})};Cte.displayName=Pq;var Ste="PopperAnchor",Lte=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,a=_te(Ste,n),i=m.useRef(null),s=xt(t,i),c=m.useRef(null);return m.useEffect(()=>{const l=c.current;c.current=(o==null?void 0:o.current)||i.current,l!==c.current&&a.onAnchorChange(c.current)}),o?null:f.jsx(We.div,{...r,ref:s})});Lte.displayName=Ste;var zq="PopperContent",[xBe,wBe]=bte(zq),Nte=m.forwardRef((e,t)=>{var ie,re,ae,se,ve,ke;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:h=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:y="optimized",onPlaced:g,...k}=e,x=_te(zq,n),[v,M]=m.useState(null),w=xt(t,ge=>M(ge)),[b,C]=m.useState(null),_=Oee(b),S=(_==null?void 0:_.width)??0,L=(_==null?void 0:_.height)??0,A=o+(a!=="center"?"-"+a:""),I=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},R=Array.isArray(l)?l:[l],j=R.length>0,V={padding:I,boundary:R.filter(bBe),altBoundary:j},{refs:$,floatingStyles:T,placement:D,isPositioned:F,middlewareData:z}=cBe({strategy:"fixed",placement:A,whileElementsMounted:(...ge)=>QVe(...ge,{animationFrame:y==="always"}),elements:{reference:x.anchor},middleware:[dBe({mainAxis:r+L,alignmentAxis:i}),c&&uBe({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?hBe():void 0,...V}),c&&fBe({...V}),pBe({...V,apply:({elements:ge,rects:Pe,availableWidth:Be,availableHeight:De})=>{const{width:pe,height:me}=Pe.reference,Ae=ge.floating.style;Ae.setProperty("--radix-popper-available-width",`${Be}px`),Ae.setProperty("--radix-popper-available-height",`${De}px`),Ae.setProperty("--radix-popper-anchor-width",`${pe}px`),Ae.setProperty("--radix-popper-anchor-height",`${me}px`)}}),b&&mBe({element:b,padding:s}),_Be({arrowWidth:S,arrowHeight:L}),p&&yBe({strategy:"referenceHidden",...V})]}),[E,N]=Ete(D),W=ra(g);ts(()=>{F&&(W==null||W())},[F,W]);const O=(ie=z.arrow)==null?void 0:ie.x,P=(re=z.arrow)==null?void 0:re.y,Y=((ae=z.arrow)==null?void 0:ae.centerOffset)!==0,[Z,te]=m.useState();return ts(()=>{v&&te(window.getComputedStyle(v).zIndex)},[v]),f.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:F?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[(se=z.transformOrigin)==null?void 0:se.x,(ve=z.transformOrigin)==null?void 0:ve.y].join(" "),...((ke=z.hide)==null?void 0:ke.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(xBe,{scope:n,placedSide:E,onArrowChange:C,arrowX:O,arrowY:P,shouldHideArrow:Y,children:f.jsx(We.div,{"data-side":E,"data-align":N,...k,ref:w,style:{...k.style,animation:F?void 0:"none"}})})})});Nte.displayName=zq;var Ite="PopperArrow",MBe={top:"bottom",right:"left",bottom:"top",left:"right"},Ate=m.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,a=wBe(Ite,o),i=MBe[a.placedSide];return f.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:f.jsx(kBe,{...r,ref:n,style:{...r.style,display:"block"}})})});Ate.displayName=Ite;function bBe(e){return e!==null}var _Be=e=>({name:"transformOrigin",options:e,fn(t){var x,v,M;const{placement:n,rects:o,middlewareData:r}=t,i=((x=r.arrow)==null?void 0:x.centerOffset)!==0,s=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,h]=Ete(n),d={start:"0%",center:"50%",end:"100%"}[h],p=(((v=r.arrow)==null?void 0:v.x)??0)+s/2,y=(((M=r.arrow)==null?void 0:M.y)??0)+c/2;let g="",k="";return l==="bottom"?(g=i?d:`${p}px`,k=`${-c}px`):l==="top"?(g=i?d:`${p}px`,k=`${o.floating.height+c}px`):l==="right"?(g=`${-c}px`,k=i?d:`${y}px`):l==="left"&&(g=`${o.floating.width+c}px`,k=i?d:`${y}px`),{data:{x:g,y:k}}}});function Ete(e){const[t,n="center"]=e.split("-");return[t,n]}var Rq=Cte,$R=Lte,Tq=Nte,Dq=Ate,CBe="Portal",Gf=m.forwardRef((e,t)=>{var s;const{container:n,...o}=e,[r,a]=m.useState(!1);ts(()=>a(!0),[]);const i=n||r&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?Ale.createPortal(f.jsx(We.div,{...o,ref:t}),i):null});Gf.displayName=CBe;function SBe(e,t){return m.useReducer((n,o)=>t[n][o]??n,e)}var _o=e=>{const{present:t,children:n}=e,o=LBe(t),r=typeof n=="function"?n({present:o.isPresent}):m.Children.only(n),a=xt(o.ref,NBe(r));return typeof n=="function"||o.isPresent?m.cloneElement(r,{ref:a}):null};_o.displayName="Presence";function LBe(e){const[t,n]=m.useState(),o=m.useRef(null),r=m.useRef(e),a=m.useRef("none"),i=e?"mounted":"unmounted",[s,c]=SBe(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const l=Xp(o.current);a.current=s==="mounted"?l:"none"},[s]),ts(()=>{const l=o.current,h=r.current;if(h!==e){const p=a.current,y=Xp(l);e?c("MOUNT"):y==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(h&&p!==y?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),ts(()=>{if(t){let l;const h=t.ownerDocument.defaultView??window,d=y=>{const k=Xp(o.current).includes(CSS.escape(y.animationName));if(y.target===t&&k&&(c("ANIMATION_END"),!r.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",l=h.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},p=y=>{y.target===t&&(a.current=Xp(o.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{h.clearTimeout(l),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:m.useCallback(l=>{o.current=l?getComputedStyle(l):null,n(l)},[])}}function Xp(e){return(e==null?void 0:e.animationName)||"none"}function NBe(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var IBe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Pu=new WeakMap,Zp=new WeakMap,Yp={},yD=0,jte=function(e){return e&&(e.host||jte(e.parentNode))},ABe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=jte(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},EBe=function(e,t,n,o){var r=ABe(t,Array.isArray(e)?e:[e]);Yp[n]||(Yp[n]=new WeakMap);var a=Yp[n],i=[],s=new Set,c=new Set(r),l=function(d){!d||s.has(d)||(s.add(d),l(d.parentNode))};r.forEach(l);var h=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(p){if(s.has(p))h(p);else try{var y=p.getAttribute(o),g=y!==null&&y!=="false",k=(Pu.get(p)||0)+1,x=(a.get(p)||0)+1;Pu.set(p,k),a.set(p,x),i.push(p),k===1&&g&&Zp.set(p,!0),x===1&&p.setAttribute(n,"true"),g||p.setAttribute(o,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return h(t),s.clear(),yD++,function(){i.forEach(function(d){var p=Pu.get(d)-1,y=a.get(d)-1;Pu.set(d,p),a.set(d,y),p||(Zp.has(d)||d.removeAttribute(o),Zp.delete(d)),y||d.removeAttribute(n)}),yD--,yD||(Pu=new WeakMap,Pu=new WeakMap,Zp=new WeakMap,Yp={})}},Hq=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=IBe(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),EBe(o,r,n,"aria-hidden")):function(){return null}},Wr=function(){return Wr=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Wr.apply(this,arguments)};function $te(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function jBe(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,a;o<r;o++)(a||!(o in t))&&(a||(a=Array.prototype.slice.call(t,0,o)),a[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))}var LP="right-scroll-bar-position",NP="width-before-scroll-bar",$Be="with-scroll-bars-hidden",PBe="--removed-body-scroll-bar-size";function mD(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function zBe(e,t){var n=m.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var RBe=typeof window<"u"?m.useLayoutEffect:m.useEffect,xG=new WeakMap;function TBe(e,t){var n=zBe(null,function(o){return e.forEach(function(r){return mD(r,o)})});return RBe(function(){var o=xG.get(n);if(o){var r=new Set(o),a=new Set(e),i=n.current;r.forEach(function(s){a.has(s)||mD(s,null)}),a.forEach(function(s){r.has(s)||mD(s,i)})}xG.set(n,e)},[e]),n}function DBe(e){return e}function HBe(e,t){t===void 0&&(t=DBe);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,o);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(o=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){o=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var c=function(){var h=i;i=[],h.forEach(a)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(h){i.push(h),l()},filter:function(h){return i=i.filter(h),n}}}};return r}function OBe(e){e===void 0&&(e={});var t=HBe(null);return t.options=Wr({async:!0,ssr:!1},e),t}var Pte=function(e){var t=e.sideCar,n=$te(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return m.createElement(o,Wr({},n))};Pte.isSideCarExport=!0;function FBe(e,t){return e.useMedium(t),Pte}var zte=OBe(),gD=function(){},PR=m.forwardRef(function(e,t){var n=m.useRef(null),o=m.useState({onScrollCapture:gD,onWheelCapture:gD,onTouchMoveCapture:gD}),r=o[0],a=o[1],i=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,h=e.enabled,d=e.shards,p=e.sideCar,y=e.noRelative,g=e.noIsolation,k=e.inert,x=e.allowPinchZoom,v=e.as,M=v===void 0?"div":v,w=e.gapMode,b=$te(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,_=TBe([n,t]),S=Wr(Wr({},b),r);return m.createElement(m.Fragment,null,h&&m.createElement(C,{sideCar:zte,removeScrollBar:l,shards:d,noRelative:y,noIsolation:g,inert:k,setCallbacks:a,allowPinchZoom:!!x,lockRef:n,gapMode:w}),i?m.cloneElement(m.Children.only(s),Wr(Wr({},S),{ref:_})):m.createElement(M,Wr({},S,{className:c,ref:_}),s))});PR.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};PR.classNames={fullWidth:NP,zeroRight:LP};var qBe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function VBe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=qBe();return t&&e.setAttribute("nonce",t),e}function BBe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function UBe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var WBe=function(){var e=0,t=null;return{add:function(n){e==0&&(t=VBe())&&(BBe(t,n),UBe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},GBe=function(){var e=WBe();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Rte=function(){var e=GBe(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},KBe={left:0,top:0,right:0,gap:0},kD=function(e){return parseInt(e||"",10)||0},XBe=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[kD(n),kD(o),kD(r)]},ZBe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return KBe;var t=XBe(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},YBe=Rte(),N0="data-scroll-locked",QBe=function(e,t,n,o){var r=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
8469
+ `);return}j.preventDefault(),w.current=!0,S();return}j.key==="Escape"&&(j.preventDefault(),w.current=!0,L())},I=j=>{j.preventDefault();const V=j.clipboardData.getData("text/plain");document.execCommand("insertText",!1,V)},R=()=>{if(w.current){w.current=!1;return}const j=p.current;!j||!j.isConnected||S()};return f.jsx("div",{ref:p,"data-testid":"inline-edit-input","data-field":i,"data-placeholder":l,role:"textbox",tabIndex:0,contentEditable:!0,suppressContentEditableWarning:!0,spellCheck:!1,onInput:_,onKeyDown:A,onPaste:I,onBlur:R,onMouseDown:j=>j.stopPropagation(),onClick:j=>j.stopPropagation(),onDoubleClick:j=>j.stopPropagation(),style:c,className:ee("nodrag nopan nowheel sf:block sf:w-full sf:bg-transparent sf:p-0 sf:text-inherit sf:outline-none","sf:whitespace-pre-wrap sf:wrap-break-word",k&&l?"inline-edit-empty":"",y?"inline-edit-shake":"",s)})}const _ee=8,SW=12,LW={height:`${_ee}px`,borderColor:"transparent"},NW={width:`${_ee}px`,borderColor:"transparent"},dOe={width:`${SW}px`,height:`${SW}px`,background:"transparent",border:"none"},uOe={width:"calc(10px / var(--rf-zoom, 1))",height:"calc(10px / var(--rf-zoom, 1))",background:"hsl(var(--background))",border:"calc(1px / var(--rf-zoom, 1)) solid hsl(var(--primary) / 0.6)",borderRadius:"calc(2px / var(--rf-zoom, 1))",zIndex:1},hOe=[{position:"top",style:LW},{position:"bottom",style:LW},{position:"left",style:NW},{position:"right",style:NW}],fOe=["top-left","top-right","bottom-left","bottom-right"],IW={pointerEvents:"none",cursor:"default"};function cu({visible:e,minWidth:t=80,minHeight:n=40,onResizeStart:o,onResize:r,onResizeEnd:a,cornerVariant:i="invisible"}){const s=i==="visible"?uOe:dOe,c=h=>e?h:{...h,...IW},l=e?s:{...s,opacity:0,...IW};return f.jsxs(f.Fragment,{children:[hOe.map(({position:h,style:d})=>f.jsx(_W,{position:h,variant:Ji.Line,minWidth:t,minHeight:n,style:c(d),onResizeStart:o,onResize:r,onResizeEnd:a,children:f.jsx("span",{"data-testid":"resize-control","data-position":h})},h)),fOe.map(h=>f.jsx(_W,{position:h,variant:Ji.Handle,minWidth:t,minHeight:n,style:l,autoScale:!1,onResizeStart:o,onResize:r,onResizeEnd:a,children:f.jsx("span",{"data-testid":"resize-control","data-position":h})},h))]})}function AW(e){const t=e==null?void 0:e.sourceEvent;return{metaKey:t==null?void 0:t.metaKey,ctrlKey:t==null?void 0:t.ctrlKey}}function pOe(e,t){return{left:t.x!==e.x,right:t.x+t.width!==e.x+e.width,top:t.y!==e.y,bottom:t.y+t.height!==e.y+e.height}}function yOe(e){return!!(e.left||e.right||e.top||e.bottom)}function lu(e){const{onResize:t,onResizeEnd:n,onResizeFinal:o,setResizing:r,nodeId:a,alignment:i}=e,[s,c]=m.useState(!1),l=m.useRef(null),h=m.useRef(!1),d=m.useRef(t),p=m.useRef(n),y=m.useRef(o),g=m.useRef(r),k=m.useRef(i),x=m.useRef(a);m.useEffect(()=>{d.current=t},[t]),m.useEffect(()=>{p.current=n},[n]),m.useEffect(()=>{y.current=o},[o]),m.useEffect(()=>{g.current=r},[r]),m.useEffect(()=>{k.current=i},[i]),m.useEffect(()=>{x.current=a},[a]);const v=m.useCallback((b,C)=>{var _;c(!0),(_=g.current)==null||_.call(g,!0),h.current=!1,l.current=C?{x:C.x,y:C.y,width:C.width,height:C.height}:null},[]),M=m.useCallback((b,C)=>{var I;let _={x:C.x,y:C.y,width:C.width,height:C.height};const S=k.current,L=x.current,A=l.current;if(S&&L&&A){if(!h.current){const R=pOe(A,C);yOe(R)&&(S.beginResize(L,R),h.current=!0)}if(h.current){const{snappedRect:R}=S.applyResizeSnap({id:L,x:C.x,y:C.y,w:C.width,h:C.height},AW(b));_={x:R.x,y:R.y,width:R.w,height:R.h}}}(I=d.current)==null||I.call(d,_)},[]),w=m.useCallback((b,C)=>{var R,j,V,$;c(!1),(R=g.current)==null||R.call(g,!1);const _=l.current;l.current=null;const S=h.current;h.current=!1;const L=k.current,A=x.current;if(_&&_.width===C.width&&_.height===C.height){S&&(L==null||L.endResize());return}let I={x:C.x,y:C.y,width:C.width,height:C.height};if(L&&A&&S){const{snappedRect:T}=L.applyResizeSnap({id:A,x:C.x,y:C.y,w:C.width,h:C.height},AW(b));I={x:T.x,y:T.y,width:T.w,height:T.h}}L==null||L.endResize(),(j=d.current)==null||j.call(d,I),(V=p.current)==null||V.call(p,I),_&&(($=y.current)==null||$.call(y,I,_))},[]);return{isResizing:s,onResizeStart:v,onResizeEvent:M,onResizeEnd:w}}const G0={width:48,height:48},mOe=24,gOe=24,Bp="sf:opacity-0 sf:transition-opacity";function kOe(e){return Ct(e,"text").color??"currentColor"}function vOe({id:e,data:t,selected:n,isConnectable:o}){const{onResizeStart:r,onResizeEvent:a,onResizeEnd:i}=lu({onResize:x=>{var v;return(v=t.onResize)==null?void 0:v.call(t,e,x)},onResizeEnd:x=>{var v;return(v=t.onResizeEnd)==null?void 0:v.call(t,e,x)},setResizing:t.setResizing,nodeId:e,alignment:t.resizeAlignment}),s=t.width!==void 0||t.height!==void 0,c=!!t.onNameChange,[l,h]=m.useState(!1),{studioBaseUrl:d}=m.useContext(Tf),p=kOe(t.color),y=t.strokeWidth??2,g={...s?{}:{width:G0.width,height:G0.height}},k=x=>{!c||l||(x.stopPropagation(),h(!0))};return f.jsxs("div",{className:ee("sf:group sf:relative",s?"sf:h-full sf:w-full":""),style:g,"data-testid":"icon-node","data-node-type":"icon",onDoubleClick:k,children:[f.jsx(cu,{visible:!!n&&!!t.onResize&&!l,cornerVariant:"visible",minWidth:mOe,minHeight:gOe,onResizeStart:r,onResize:a,onResizeEnd:i}),f.jsx(lt,{type:"target",position:ue.Top,id:"t",isConnectable:o,className:ee(Bp,n&&"sf:opacity-100!")}),f.jsx(lt,{type:"target",position:ue.Left,id:"l",isConnectable:o,className:ee(Bp,n&&"sf:opacity-100!")}),f.jsx(Qi,{iconId:t.icon,studioBaseUrl:d,color:p,strokeWidth:y,absoluteStrokeWidth:!0,ariaLabel:t.alt,className:"sf:block sf:h-full sf:w-full sf:pointer-events-none sf:select-none"}),l&&c?f.jsx("div",{className:"sf:absolute sf:left-0 sf:right-0 sf:top-full sf:mt-1 sf:text-center sf:text-xs sf:text-muted-foreground",children:f.jsx(Pi,{initialValue:t.name??"",field:"icon-node-label",onCommit:x=>{var v;return(v=t.onNameChange)==null?void 0:v.call(t,e,x)},onExit:()=>h(!1),placeholder:"Label"})}):t.name?f.jsx("span",{"data-testid":"icon-node-label",className:"sf:pointer-events-none sf:absolute sf:left-0 sf:right-0 sf:top-full sf:mt-1 sf:truncate sf:text-center sf:text-xs sf:text-muted-foreground sf:select-none",children:t.name}):null,f.jsx(lt,{type:"source",position:ue.Right,id:"r",isConnectable:o,className:ee(Bp,n&&"sf:opacity-100!")}),f.jsx(lt,{type:"source",position:ue.Bottom,id:"b",isConnectable:o,className:ee(Bp,n&&"sf:opacity-100!")})]})}function xOe(e,t){return e.selected===t.selected&&e.data===t.data&&e.width===t.width&&e.height===t.height}const wOe=m.memo(vOe,xOe),Cee="seeflow:icon-recents",MOe=16;function See(){if(typeof window>"u")return[];try{const e=window.localStorage.getItem(Cee);if(e===null)return[];const t=JSON.parse(e);return Array.isArray(t)?t.every(n=>typeof n=="string")?t:[]:[]}catch{return[]}}function bOe(e){if(!(typeof window>"u"))try{const n=See().filter(r=>r!==e),o=[e,...n].slice(0,MOe);window.localStorage.setItem(Cee,JSON.stringify(o))}catch{}}const _Oe=typeof navigator<"u"&&typeof navigator.platform=="string"&&navigator.platform.toLowerCase().includes("mac"),COe=e=>e.length===1?e.toUpperCase():e==="Escape"?"Esc":e,Ft=(e,t=_Oe)=>{const n=COe(e.key);if(t){let r="";return e.meta&&(r+="⌘"),e.alt&&(r+="⌥"),e.shift&&(r+="⇧"),`${r}${n}`}const o=[];return e.meta&&o.push("Ctrl"),e.shift&&o.push("Shift"),e.alt&&o.push("Alt"),o.push(n),o.join("+")},vq=[{id:"tool.select",label:"Select tool",description:"Switch to the selection tool",category:"Tools",shortcut:Ft({key:"V"})},{id:"tool.hand",label:"Hand tool",description:"Pan the canvas; node interaction is suspended while armed",category:"Tools",shortcut:Ft({key:"H"})},{id:"tool.rectangle",label:"Rectangle",description:"Draw rectangle nodes",category:"Tools",shortcut:Ft({key:"R"})},{id:"tool.ellipse",label:"Ellipse",description:"Draw ellipse nodes",category:"Tools",shortcut:Ft({key:"O"})},{id:"tool.text",label:"Text",description:"Add a text node",category:"Tools",shortcut:Ft({key:"T"})},{id:"tool.sticky",label:"Sticky note",description:"Add a sticky note",category:"Tools",shortcut:Ft({key:"S"})},{id:"tool.database",label:"Database",description:"Add a database node",category:"Tools",shortcut:Ft({key:"D"})},{id:"tool.server",label:"Server",description:"Add a server node",category:"Tools"},{id:"tool.user",label:"User",description:"Add a user node",category:"Tools"},{id:"tool.queue",label:"Queue",description:"Add a queue node",category:"Tools"},{id:"tool.cloud",label:"Cloud",description:"Add a cloud node",category:"Tools"},{id:"tool.diamond",label:"Diamond",description:"Add a diamond node (decision / gateway)",category:"Tools"},{id:"tool.hexagon",label:"Hexagon",description:"Add a hexagon node (microservice)",category:"Tools"},{id:"tool.triangle",label:"Triangle",description:"Add a triangle node (warning / hierarchy)",category:"Tools"},{id:"tool.parallelogram",label:"Parallelogram",description:"Add a parallelogram node (data / IO in flowcharts)",category:"Tools"},{id:"tool.document",label:"Document",description:"Add a document node (file / report)",category:"Tools"},{id:"tool.linkflow",label:"Link node",description:"Add a link node and pick a target flow",category:"Tools"},{id:"edit.undo",label:"Undo",category:"Edit",shortcut:Ft({meta:!0,key:"Z"}),enabled:e=>e.canUndo},{id:"edit.redo",label:"Redo",category:"Edit",shortcut:Ft({meta:!0,shift:!0,key:"Z"}),enabled:e=>e.canRedo},{id:"edit.copy",label:"Copy",category:"Edit",shortcut:Ft({meta:!0,key:"C"}),enabled:e=>e.hasSelection},{id:"edit.paste",label:"Paste",category:"Edit",shortcut:Ft({meta:!0,key:"V"}),enabled:e=>e.hasClipboard},{id:"edit.duplicate",label:"Duplicate",category:"Edit",shortcut:Ft({meta:!0,key:"D"}),enabled:e=>e.hasSelection},{id:"edit.delete",label:"Delete",category:"Edit",shortcut:Ft({key:"Delete"}),enabled:e=>e.hasSelection},{id:"edit.selectAll",label:"Select all",category:"Edit",shortcut:Ft({meta:!0,key:"A"})},{id:"view.fit",label:"Fit view",description:"Fit everything in the viewport",category:"View",shortcut:Ft({meta:!0,key:"0"})},{id:"view.zoomIn",label:"Zoom in",category:"View",shortcut:Ft({meta:!0,key:"="})},{id:"view.zoomOut",label:"Zoom out",category:"View",shortcut:Ft({meta:!0,key:"-"})},{id:"view.zoom100",label:"Zoom to 100%",category:"View",shortcut:Ft({key:"1"})},{id:"view.zoomToSelection",label:"Zoom to selection",category:"View",shortcut:Ft({key:"F"}),enabled:e=>e.hasSelection},{id:"layout.tidy",label:"Tidy layout",description:"Auto-layout the canvas or current selection",category:"Layout",shortcut:Ft({meta:!0,shift:!0,key:"L"})},{id:"selection.deselect",label:"Deselect",description:"Clear selection and exit draw mode",category:"Selection",shortcut:Ft({key:"Escape"})},{id:"help.commandPalette",label:"Open command palette",category:"Help",shortcut:Ft({meta:!0,key:"P"})},{id:"export.pdf",label:"Export to PDF",description:"Download the current canvas as a PDF",category:"File",enabled:e=>e.canExportDemo},{id:"export.png",label:"Export as image",description:"Download the current canvas as a PNG",category:"File",enabled:e=>e.canExportDemo}],aD=e=>{const t=vq.find(n=>n.id===e);return t?t.shortcut?`${t.label} (${t.shortcut})`:t.label:""},SOe=1,LOe=10,NOe=e=>{if(e.metaKey||e.ctrlKey||e.altKey)return null;const t=e.shiftKey?LOe:SOe;switch(e.key){case"ArrowLeft":return{dx:-t,dy:0};case"ArrowRight":return{dx:t,dy:0};case"ArrowUp":return{dx:0,dy:-t};case"ArrowDown":return{dx:0,dy:t};default:return null}},IOe=e=>{if(!(e.metaKey||e.ctrlKey)||e.altKey)return null;switch(e.key){case"0":return"fit";case"=":case"+":return"in";case"-":case"_":return"out";default:return null}},AOe=(e,t,n)=>{if(t.length===0)return[];const o=new Map(n.map(a=>[a.id,a])),r=[];for(const a of t){const i=o.get(a);i&&r.push({id:a,position:{x:i.position.x+e.dx,y:i.position.y+e.dy}})}return r},EOe=({event:e,isEditableActive:t,hasNodes:n,hasConnectors:o,selectedIds:r,hasClipboard:a})=>{if(!(e.metaKey||e.ctrlKey))return{type:"noop"};if(e.shiftKey||e.altKey)return{type:"noop"};const i=e.key.toLowerCase();return i!=="a"&&i!=="c"&&i!=="v"&&i!=="d"?{type:"noop"}:t?{type:"noop"}:i==="a"?!n&&!o?{type:"noop"}:{type:"selectAll"}:i==="c"?r.length===0?{type:"noop"}:{type:"copy",ids:r}:i==="d"?r.length===0?{type:"noop"}:{type:"duplicate",ids:r}:a?{type:"paste"}:{type:"noop"}},jOe=(e,t)=>{if(t.isEditableActive||!(e.metaKey||e.ctrlKey)||e.altKey)return null;const n=e.key.toLowerCase();return n==="z"?e.shiftKey?"redo":"undo":n==="y"&&!e.shiftKey?"redo":null},$Oe=e=>{if(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return null;switch(e.key.toLowerCase()){case"v":return"select";case"h":return"hand";case"r":return"rectangle";case"o":return"ellipse";case"t":return"text";case"s":return"sticky";case"d":return"database";default:return null}},ja="seeflow",Lee=e=>`${e}:last-used-style:v1`,iD=()=>({node:{},connector:{}}),sD=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),xq=e=>{var t;try{const n=(t=globalThis.localStorage)==null?void 0:t.getItem(Lee(e));if(!n)return iD();const o=JSON.parse(n);if(!sD(o))return iD();const r=sD(o.node)?o.node:{},a=sD(o.connector)?o.connector:{};return{node:r,connector:a}}catch{return iD()}},Nee=(e,t)=>{var n;try{(n=globalThis.localStorage)==null||n.setItem(Lee(e),JSON.stringify(t))}catch{}},c0=e=>xq(e),EW=(e,t)=>{const{alt:n,...o}=t,r={...o};r.borderSize!==void 0&&r.borderWidth===void 0?r.borderWidth=r.borderSize:r.borderWidth!==void 0&&r.borderSize===void 0&&(r.borderSize=r.borderWidth);const a=xq(e);Nee(e,{...a,node:{...a.node,...r}})},POe=(e,t)=>{const n=xq(e);Nee(e,{...n,connector:{...n.connector,...t}})},wq=1,jW=17,hO=(e,t)=>{if(!e)return{};const n={};for(const o of t)e[o]!==void 0&&(n[o]=e[o]);return n},zOe=["borderColor","backgroundColor","borderSize","borderStyle","fontSize","cornerRadius","shadow"],ROe=["borderColor","backgroundColor","borderSize","borderStyle","fontSize","shadow"],TOe=["fontSize"],DOe=["borderColor","borderWidth","borderStyle","shadow"];function $W(e,t,n){if(e==="text")return{width:t.width,height:t.height,fontSize:jW,...hO(n,TOe)};const o=e==="ellipse"?ROe:zOe;return{width:t.width,height:t.height,borderSize:wq,fontSize:jW,...hO(n,o)}}function HOe(e,t,n){return{path:e,width:t.width,height:t.height,borderWidth:wq,...hO(n,DOe)}}const wn=async(e,t,n,o,r)=>{const a={method:t},i={...o??{}};r!==void 0&&(i["content-type"]="application/json",a.body=JSON.stringify(r)),Object.keys(i).length>0&&(a.headers=i);const s=await e(n,a);if(!s.ok){let c=null;try{c=await s.json()}catch{}throw new Error((c==null?void 0:c.error)??`${t} ${n} → ${s.status}`)}return await s.json()},OOe=e=>{const{baseUrl:t,project:n,flow:o}=e,r=e.fetch??globalThis.fetch.bind(globalThis),a=e.EventSource??globalThis.EventSource,i=e.headers,s=`${t}/api/projects/${encodeURIComponent(n)}`,c=`${s}/flows/${encodeURIComponent(o)}`,l=`${t}/api/icons`;return{async createNode(d){const p=await wn(r,"POST",`${c}/nodes`,i,d);return{id:p.id,node:p.node}},async updateNode(d,p){await wn(r,"PATCH",`${c}/nodes/${d}`,i,p)},async updateNodePosition(d,p){return await wn(r,"PATCH",`${c}/nodes/${d}/position`,i,p)},async deleteNode(d){await wn(r,"DELETE",`${c}/nodes/${d}`,i)},async reorderNode(d,p){await wn(r,"PATCH",`${c}/nodes/${d}/order`,i,p)},async createConnector(d){return{id:(await wn(r,"POST",`${c}/connectors`,i,d)).id}},async updateConnector(d,p){await wn(r,"PATCH",`${c}/connectors/${d}`,i,p)},async deleteConnector(d){await wn(r,"DELETE",`${c}/connectors/${d}`,i)},async uploadImage(d,p,y){const g=new FormData;g.append("file",p),g.append("filename",y);const k=`${c}/nodes/${encodeURIComponent(d)}/files/upload`,x={method:"POST",body:g};i&&(x.headers={...i});const v=await r(k,x);if(!v.ok){let M=null;try{M=await v.json()}catch{}throw new Error((M==null?void 0:M.error)??`POST ${k} → ${v.status}`)}return await v.json()},async playAction(d){return await wn(r,"POST",`${c}/play/${d}`,i,{})},async openFile(d){await wn(r,"POST",`${s}/files/open`,i,{path:d})},async revealFile(d){await wn(r,"POST",`${s}/files/reveal`,i,{path:d})},async computeLayout(d,p){const y=await wn(r,"POST",`${t}/api/layout`,i,{nodes:d,edges:p});return{nodes:y.nodes,connectors:y.connectors}},icons:{async listPacks(){return(await wn(r,"GET",`${l}/packs`,i)).packs},async install(d,p){return{jobId:(await wn(r,"POST",`${l}/install`,i,{vendor:d,acceptTerms:p.acceptTerms??!1})).jobId}},subscribeJob(d,p){const y=`${l}/jobs/${encodeURIComponent(d)}/events`,g=new a(y);return g.onmessage=k=>{try{p(JSON.parse(k.data))}catch(x){console.error("icons.subscribeJob: failed to parse SSE payload",x)}},()=>g.close()},async remove(d){await wn(r,"DELETE",`${l}/packs/${encodeURIComponent(d)}`,i)},async getLicense(d){const p=await wn(r,"GET",`${l}/licenses/${encodeURIComponent(d)}`,i);return{summary:p.summary,url:p.url,requiresAcceptance:p.requiresAcceptance}}}}},FOe=500,qOe=500,VOe=2e3,BOe=(e,t)=>{if(!e&&!t)return;if(!e)return{...t};if(!t)return{...e};const n={...t};for(const[o,r]of Object.entries(e))n[o]=r;return n},PW=(e,t,n)=>{const o=Date.now(),r=FOe,a=qOe,{stack:i,cursor:s}=e;if(t.coalesceKey&&s>0){const h=i[s-1];if(h&&h.coalesceKey===t.coalesceKey&&o-h.capturedAt<=a){const d=i.slice(0,s);return d[s-1]={...h,do:t.do,capturedAt:o,beforeFields:BOe(h.beforeFields,t.beforeFields)},{stack:d,cursor:s}}}const c=i.slice(0,s);c.push({...t,capturedAt:o});let l=s+1;for(;c.length>r;)c.shift(),l-=1;return l<0&&(l=0),{stack:c,cursor:l}},UOe=e=>e.cursor===0?{state:e,entry:void 0}:{state:{...e,cursor:e.cursor-1},entry:e.stack[e.cursor-1]},WOe=e=>e.cursor===e.stack.length?{state:e,entry:void 0}:{state:{...e,cursor:e.cursor+1},entry:e.stack[e.cursor]},Iee=()=>({stack:[],cursor:0}),zW=e=>e.cursor===e.stack.length?e:{stack:e.stack.slice(0,e.cursor),cursor:e.cursor},GOe=(e,t,n=Date.now(),o=VOe)=>n-t>o?Iee():e,KOe=new Set(["borderColor","backgroundColor","borderSize","borderWidth","borderStyle","fontSize","textAlign","cornerRadius","shadow","color","strokeWidth","target"]);function XOe(e,t){let n={stack:[],cursor:0},o=0;const r=new Set;let a=null;const i=()=>({canUndo:n.cursor>0,canRedo:n.cursor<n.stack.length}),s=()=>{const k=i();for(const x of r)x(k)},c=()=>{if(a){o=Date.now();return}const k=zW(n);o=Date.now(),k!==n&&(n=k,s())},l=k=>{if(a){a.ops.push({redo:k.do,undo:k.undo});return}n=PW(n,{...k,capturedAt:Date.now()}),s()},h={createNode:async k=>{c();const x=await e.createNode(k);return l({do:async()=>{await e.createNode({...k,id:x.id})},undo:async()=>{await e.deleteNode(x.id)}}),x},updateNode:async(k,x)=>{c();const{nodes:v}=t(),M=v.find(_=>_.id===k);if(!M){await e.updateNode(k,x);return}const w={},b=M.data??{};for(const _ of Object.keys(x))if(_==="position")w[_]=M.position;else if(_==="type")w[_]=M.type;else{const S=b[_];w[_]=S===void 0&&KOe.has(_)?null:S}await e.updateNode(k,x);const C=Object.keys(x).sort().join(",");l({do:async()=>{await e.updateNode(k,x)},undo:async()=>{await e.updateNode(k,w)},coalesceKey:`update:${k}:${C}`,beforeFields:w})},updateNodePosition:async(k,x)=>{c();const{nodes:v}=t(),M=v.find(C=>C.id===k),w=M==null?void 0:M.position,b=await e.updateNodePosition(k,x);return w&&l({do:async()=>{await e.updateNodePosition(k,x)},undo:async()=>{await e.updateNodePosition(k,w)},coalesceKey:`pos:${k}`}),b},deleteNode:async k=>{c();const{nodes:x,connectors:v}=t(),M=x.find(b=>b.id===k);if(!M){await e.deleteNode(k);return}const w=v.filter(b=>b.source===k||b.target===k);await e.deleteNode(k),l({do:async()=>{await e.deleteNode(k)},undo:async()=>{await e.createNode({id:M.id,type:M.type,position:M.position,data:M.data??{}});for(const b of w)try{await e.createConnector({id:b.id,source:b.source,target:b.target,sourceHandle:b.sourceHandle,targetHandle:b.targetHandle,sourceHandleAutoPicked:b.sourceHandleAutoPicked,targetHandleAutoPicked:b.targetHandleAutoPicked,sourcePin:b.sourcePin,targetPin:b.targetPin,label:b.label,style:b.style,color:b.color,direction:b.direction,eventName:b.eventName,queueName:b.queueName,method:b.method,url:b.url})}catch(C){console.warn(`[seeflow/canvas] failed to restore connector ${b.id} during deleteNode undo:`,C)}}})},reorderNode:async(k,x)=>{c();const{nodes:v}=t(),M=v.findIndex(w=>w.id===k);if(M<0){await e.reorderNode(k,x);return}await e.reorderNode(k,x),l({do:async()=>{await e.reorderNode(k,x)},undo:async()=>{await e.reorderNode(k,{op:"toIndex",index:M})}})},createConnector:async k=>{c();const x=await e.createConnector(k);return l({do:async()=>{await e.createConnector({...k,id:x.id})},undo:async()=>{await e.deleteConnector(x.id)}}),x},updateConnector:async(k,x)=>{c();const{connectors:v}=t(),M=v.find(_=>_.id===k);if(!M){await e.updateConnector(k,x);return}const w={},b=M;for(const _ of Object.keys(x))w[_]=b[_];await e.updateConnector(k,x);const C=Object.keys(x).sort().join(",");l({do:async()=>{await e.updateConnector(k,x)},undo:async()=>{await e.updateConnector(k,w)},coalesceKey:`update:conn:${k}:${C}`,beforeFields:w})},deleteConnector:async k=>{c();const{connectors:x}=t(),v=x.find(M=>M.id===k);if(!v){await e.deleteConnector(k);return}await e.deleteConnector(k),l({do:async()=>{await e.deleteConnector(k)},undo:async()=>{await e.createConnector({id:v.id,source:v.source,target:v.target,sourceHandle:v.sourceHandle,targetHandle:v.targetHandle,sourceHandleAutoPicked:v.sourceHandleAutoPicked,targetHandleAutoPicked:v.targetHandleAutoPicked,sourcePin:v.sourcePin,targetPin:v.targetPin,label:v.label,style:v.style,color:v.color,direction:v.direction,eventName:v.eventName,queueName:v.queueName,method:v.method,url:v.url})}})},uploadImage:(k,x,v)=>e.uploadImage(k,x,v),...e.playAction?{playAction:k=>e.playAction(k)}:{},...e.openFile?{openFile:k=>e.openFile(k)}:{},...e.revealFile?{revealFile:k=>e.revealFile(k)}:{},...e.computeLayout?{computeLayout:(k,x)=>e.computeLayout(k,x)}:{},...e.icons?{icons:e.icons}:{}};let d=Promise.resolve();const p=async()=>{const k=UOe(n);k.entry&&(n=k.state,s(),await k.entry.undo())},y=async()=>{const k=WOe(n);k.entry&&(n=k.state,s(),await k.entry.do())};return{adapter:h,history:{get canUndo(){return n.cursor>0},get canRedo(){return n.cursor<n.stack.length},undo:()=>{o=Date.now();const k=d.then(p);return d=k.then(()=>{},()=>{}),k},redo:()=>{o=Date.now();const k=d.then(y);return d=k.then(()=>{},()=>{}),k},clear:()=>{n=Iee(),s()},markExternalChange:()=>{const k=GOe(n,o);k!==n&&(n=k,s())},batch:async(k,x,v)=>{if(a)return x();const M=zW(n);o=Date.now(),M!==n&&(n=M,s());const w={name:k,ops:[]};a=w;try{const b=await x();if(a=null,w.ops.length>0){const C=w.ops.slice();n=PW(n,{do:async()=>{for(const _ of C)await _.redo()},undo:async()=>{for(let _=C.length-1;_>=0;_--)await C[_].undo()},coalesceKey:v==null?void 0:v.coalesceKey,capturedAt:Date.now()}),s()}return b}catch(b){a=null;for(let C=w.ops.length-1;C>=0;C--)try{await w.ops[C].undo()}catch(_){console.warn(`[seeflow/canvas] batch '${k}' rollback inverse rejected:`,_)}throw b}},subscribe:k=>(r.add(k),k(i()),()=>{r.delete(k)})}}}function Aee(e,t,n){let o=null,r=!1;const a=new ResizeObserver(()=>{r||(o!==null&&clearTimeout(o),o=setTimeout(()=>{o=null,!r&&n()},t))});return a.observe(e),()=>{r||(r=!0,o!==null&&(clearTimeout(o),o=null),a.disconnect())}}var ct;(function(e){e.assertEqual=r=>{};function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{const a={};for(const i of r)a[i]=i;return a},e.getValidEnumValues=r=>{const a=e.objectKeys(r).filter(s=>typeof r[r[s]]!="number"),i={};for(const s of a)i[s]=r[s];return e.objectValues(i)},e.objectValues=r=>e.objectKeys(r).map(function(a){return r[a]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const a=[];for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&a.push(i);return a},e.find=(r,a)=>{for(const i of r)if(a(i))return i},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function o(r,a=" | "){return r.map(i=>typeof i=="string"?`'${i}'`:i).join(a)}e.joinValues=o,e.jsonStringifyReplacer=(r,a)=>typeof a=="bigint"?a.toString():a})(ct||(ct={}));var RW;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(RW||(RW={}));const Ce=ct.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ni=e=>{switch(typeof e){case"undefined":return Ce.undefined;case"string":return Ce.string;case"number":return Number.isNaN(e)?Ce.nan:Ce.number;case"boolean":return Ce.boolean;case"function":return Ce.function;case"bigint":return Ce.bigint;case"symbol":return Ce.symbol;case"object":return Array.isArray(e)?Ce.array:e===null?Ce.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ce.promise:typeof Map<"u"&&e instanceof Map?Ce.map:typeof Set<"u"&&e instanceof Set?Ce.set:typeof Date<"u"&&e instanceof Date?Ce.date:Ce.object;default:return Ce.unknown}},ye=ct.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"]);class Ua extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=o=>{this.issues=[...this.issues,o]},this.addIssues=(o=[])=>{this.issues=[...this.issues,...o]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(a){return a.message},o={_errors:[]},r=a=>{for(const i of a.issues)if(i.code==="invalid_union")i.unionErrors.map(r);else if(i.code==="invalid_return_type")r(i.returnTypeError);else if(i.code==="invalid_arguments")r(i.argumentsError);else if(i.path.length===0)o._errors.push(n(i));else{let s=o,c=0;for(;c<i.path.length;){const l=i.path[c];c===i.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(n(i))):s[l]=s[l]||{_errors:[]},s=s[l],c++}}};return r(this),o}static assert(t){if(!(t instanceof Ua))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ct.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},o=[];for(const r of this.issues)if(r.path.length>0){const a=r.path[0];n[a]=n[a]||[],n[a].push(t(r))}else o.push(t(r));return{formErrors:o,fieldErrors:n}}get formErrors(){return this.flatten()}}Ua.create=e=>new Ua(e);const fO=(e,t)=>{let n;switch(e.code){case ye.invalid_type:e.received===Ce.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ye.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ct.jsonStringifyReplacer)}`;break;case ye.unrecognized_keys:n=`Unrecognized key(s) in object: ${ct.joinValues(e.keys,", ")}`;break;case ye.invalid_union:n="Invalid input";break;case ye.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ct.joinValues(e.options)}`;break;case ye.invalid_enum_value:n=`Invalid enum value. Expected ${ct.joinValues(e.options)}, received '${e.received}'`;break;case ye.invalid_arguments:n="Invalid function arguments";break;case ye.invalid_return_type:n="Invalid function return type";break;case ye.invalid_date:n="Invalid date";break;case ye.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ct.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ye.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case ye.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case ye.custom:n="Invalid input";break;case ye.invalid_intersection_types:n="Intersection results could not be merged";break;case ye.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ye.not_finite:n="Number must be finite";break;default:n=t.defaultError,ct.assertNever(e)}return{message:n}};let ZOe=fO;function YOe(){return ZOe}const QOe=e=>{const{data:t,path:n,errorMaps:o,issueData:r}=e,a=[...n,...r.path||[]],i={...r,path:a};if(r.message!==void 0)return{...r,path:a,message:r.message};let s="";const c=o.filter(l=>!!l).slice().reverse();for(const l of c)s=l(i,{data:t,defaultError:s}).message;return{...r,path:a,message:s}};function we(e,t){const n=YOe(),o=QOe({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===fO?void 0:fO].filter(r=>!!r)});e.common.issues.push(o)}class Rn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const o=[];for(const r of n){if(r.status==="aborted")return Ve;r.status==="dirty"&&t.dirty(),o.push(r.value)}return{status:t.value,value:o}}static async mergeObjectAsync(t,n){const o=[];for(const r of n){const a=await r.key,i=await r.value;o.push({key:a,value:i})}return Rn.mergeObjectSync(t,o)}static mergeObjectSync(t,n){const o={};for(const r of n){const{key:a,value:i}=r;if(a.status==="aborted"||i.status==="aborted")return Ve;a.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof i.value<"u"||r.alwaysSet)&&(o[a.value]=i.value)}return{status:t.value,value:o}}}const Ve=Object.freeze({status:"aborted"}),Jh=e=>({status:"dirty",value:e}),Ho=e=>({status:"valid",value:e}),TW=e=>e.status==="aborted",DW=e=>e.status==="dirty",K0=e=>e.status==="valid",kz=e=>typeof Promise<"u"&&e instanceof Promise;var Le;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Le||(Le={}));class na{constructor(t,n,o,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=o,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const HW=(e,t)=>{if(K0(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 n=new Ua(e.common.issues);return this._error=n,this._error}}};function Ze(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:o,description:r}=e;if(t&&(n||o))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(i,s)=>{const{message:c}=e;return i.code==="invalid_enum_value"?{message:c??s.defaultError}:typeof s.data>"u"?{message:c??o??s.defaultError}:i.code!=="invalid_type"?{message:s.defaultError}:{message:c??n??s.defaultError}},description:r}}class tt{get description(){return this._def.description}_getType(t){return Ni(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Ni(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Rn,ctx:{common:t.parent.common,data:t.data,parsedType:Ni(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(kz(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const o=this.safeParse(t,n);if(o.success)return o.data;throw o.error}safeParse(t,n){const o={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ni(t)},r=this._parseSync({data:t,path:o.path,parent:o});return HW(o,r)}"~validate"(t){var o,r;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ni(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:n});return K0(a)?{value:a.value}:{issues:n.common.issues}}catch(a){(r=(o=a==null?void 0:a.message)==null?void 0:o.toLowerCase())!=null&&r.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(a=>K0(a)?{value:a.value}:{issues:n.common.issues})}async parseAsync(t,n){const o=await this.safeParseAsync(t,n);if(o.success)return o.data;throw o.error}async safeParseAsync(t,n){const o={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ni(t)},r=this._parse({data:t,path:o.path,parent:o}),a=await(kz(r)?r:Promise.resolve(r));return HW(o,a)}refine(t,n){const o=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,a)=>{const i=t(r),s=()=>a.addIssue({code:ye.custom,...o(r)});return typeof Promise<"u"&&i instanceof Promise?i.then(c=>c?!0:(s(),!1)):i?!0:(s(),!1)})}refinement(t,n){return this._refinement((o,r)=>t(o)?!0:(r.addIssue(typeof n=="function"?n(o,r):n),!1))}_refinement(t){return new Y0({schema:this,typeName:Oe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}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),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Gi.create(this,this._def)}nullable(){return Q0.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Jr.create(this)}promise(){return bz.create(this,this._def)}or(t){return xz.create([this,t],this._def)}and(t){return wz.create(this,t,this._def)}transform(t){return new Y0({...Ze(this._def),schema:this,typeName:Oe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new kO({...Ze(this._def),innerType:this,defaultValue:n,typeName:Oe.ZodDefault})}brand(){return new wFe({typeName:Oe.ZodBranded,type:this,...Ze(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new vO({...Ze(this._def),innerType:this,catchValue:n,typeName:Oe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Mq.create(this,t)}readonly(){return xO.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const JOe=/^c[^\s-]{8,}$/i,eFe=/^[0-9a-z]+$/,tFe=/^[0-9A-HJKMNP-TV-Z]{26}$/i,nFe=/^[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,oFe=/^[a-z0-9_-]{21}$/i,rFe=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,aFe=/^[-+]?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)?)??$/,iFe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,sFe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let cD;const cFe=/^(?:(?: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])$/,lFe=/^(?:(?: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])\/(3[0-2]|[12]?[0-9])$/,dFe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,uFe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,hFe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,fFe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Eee="((\\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])))",pFe=new RegExp(`^${Eee}$`);function jee(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function yFe(e){return new RegExp(`^${jee(e)}$`)}function mFe(e){let t=`${Eee}T${jee(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function gFe(e,t){return!!((t==="v4"||!t)&&cFe.test(e)||(t==="v6"||!t)&&dFe.test(e))}function kFe(e,t){if(!rFe.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const o=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(o));return!(typeof r!="object"||r===null||"typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}function vFe(e,t){return!!((t==="v4"||!t)&&lFe.test(e)||(t==="v6"||!t)&&uFe.test(e))}class Da extends tt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ce.string){const a=this._getOrReturnCtx(t);return we(a,{code:ye.invalid_type,expected:Ce.string,received:a.parsedType}),Ve}const o=new Rn;let r;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(r=this._getOrReturnCtx(t,r),we(r,{code:ye.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),o.dirty());else if(a.kind==="max")t.data.length>a.value&&(r=this._getOrReturnCtx(t,r),we(r,{code:ye.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),o.dirty());else if(a.kind==="length"){const i=t.data.length>a.value,s=t.data.length<a.value;(i||s)&&(r=this._getOrReturnCtx(t,r),i?we(r,{code:ye.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):s&&we(r,{code:ye.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),o.dirty())}else if(a.kind==="email")iFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"email",code:ye.invalid_string,message:a.message}),o.dirty());else if(a.kind==="emoji")cD||(cD=new RegExp(sFe,"u")),cD.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"emoji",code:ye.invalid_string,message:a.message}),o.dirty());else if(a.kind==="uuid")nFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"uuid",code:ye.invalid_string,message:a.message}),o.dirty());else if(a.kind==="nanoid")oFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"nanoid",code:ye.invalid_string,message:a.message}),o.dirty());else if(a.kind==="cuid")JOe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"cuid",code:ye.invalid_string,message:a.message}),o.dirty());else if(a.kind==="cuid2")eFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"cuid2",code:ye.invalid_string,message:a.message}),o.dirty());else if(a.kind==="ulid")tFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"ulid",code:ye.invalid_string,message:a.message}),o.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),we(r,{validation:"url",code:ye.invalid_string,message:a.message}),o.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"regex",code:ye.invalid_string,message:a.message}),o.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),o.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:{startsWith:a.value},message:a.message}),o.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:{endsWith:a.value},message:a.message}),o.dirty()):a.kind==="datetime"?mFe(a).test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:"datetime",message:a.message}),o.dirty()):a.kind==="date"?pFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:"date",message:a.message}),o.dirty()):a.kind==="time"?yFe(a).test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{code:ye.invalid_string,validation:"time",message:a.message}),o.dirty()):a.kind==="duration"?aFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"duration",code:ye.invalid_string,message:a.message}),o.dirty()):a.kind==="ip"?gFe(t.data,a.version)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"ip",code:ye.invalid_string,message:a.message}),o.dirty()):a.kind==="jwt"?kFe(t.data,a.alg)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"jwt",code:ye.invalid_string,message:a.message}),o.dirty()):a.kind==="cidr"?vFe(t.data,a.version)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"cidr",code:ye.invalid_string,message:a.message}),o.dirty()):a.kind==="base64"?hFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"base64",code:ye.invalid_string,message:a.message}),o.dirty()):a.kind==="base64url"?fFe.test(t.data)||(r=this._getOrReturnCtx(t,r),we(r,{validation:"base64url",code:ye.invalid_string,message:a.message}),o.dirty()):ct.assertNever(a);return{status:o.value,value:t.data}}_regex(t,n,o){return this.refinement(r=>t.test(r),{validation:n,code:ye.invalid_string,...Le.errToObj(o)})}_addCheck(t){return new Da({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Le.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Le.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Le.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Le.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Le.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Le.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Le.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Le.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Le.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Le.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Le.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Le.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Le.errToObj(t)})}datetime(t){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:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Le.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,...Le.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Le.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Le.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Le.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Le.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Le.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Le.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Le.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Le.errToObj(n)})}nonempty(t){return this.min(1,Le.errToObj(t))}trim(){return new Da({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Da({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Da({...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 isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Da.create=e=>new Da({checks:[],typeName:Oe.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Ze(e)});function xFe(e,t){const n=(e.toString().split(".")[1]||"").length,o=(t.toString().split(".")[1]||"").length,r=n>o?n:o,a=Number.parseInt(e.toFixed(r).replace(".","")),i=Number.parseInt(t.toFixed(r).replace(".",""));return a%i/10**r}class X0 extends tt{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)!==Ce.number){const a=this._getOrReturnCtx(t);return we(a,{code:ye.invalid_type,expected:Ce.number,received:a.parsedType}),Ve}let o;const r=new Rn;for(const a of this._def.checks)a.kind==="int"?ct.isInteger(t.data)||(o=this._getOrReturnCtx(t,o),we(o,{code:ye.invalid_type,expected:"integer",received:"float",message:a.message}),r.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),r.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),r.dirty()):a.kind==="multipleOf"?xFe(t.data,a.value)!==0&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.not_multiple_of,multipleOf:a.value,message:a.message}),r.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(o=this._getOrReturnCtx(t,o),we(o,{code:ye.not_finite,message:a.message}),r.dirty()):ct.assertNever(a);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Le.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Le.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Le.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Le.toString(n))}setLimit(t,n,o,r){return new X0({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:o,message:Le.toString(r)}]})}_addCheck(t){return new X0({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Le.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Le.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Le.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Le.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Le.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Le.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ct.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const o of this._def.checks){if(o.kind==="finite"||o.kind==="int"||o.kind==="multipleOf")return!0;o.kind==="min"?(n===null||o.value>n)&&(n=o.value):o.kind==="max"&&(t===null||o.value<t)&&(t=o.value)}return Number.isFinite(n)&&Number.isFinite(t)}}X0.create=e=>new X0({checks:[],typeName:Oe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Ze(e)});class Mf extends tt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Ce.bigint)return this._getInvalidInput(t);let o;const r=new Rn;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),r.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),r.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(o=this._getOrReturnCtx(t,o),we(o,{code:ye.not_multiple_of,multipleOf:a.value,message:a.message}),r.dirty()):ct.assertNever(a);return{status:r.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return we(n,{code:ye.invalid_type,expected:Ce.bigint,received:n.parsedType}),Ve}gte(t,n){return this.setLimit("min",t,!0,Le.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Le.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Le.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Le.toString(n))}setLimit(t,n,o,r){return new Mf({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:o,message:Le.toString(r)}]})}_addCheck(t){return new Mf({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Le.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Le.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Mf.create=e=>new Mf({checks:[],typeName:Oe.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Ze(e)});class pO extends tt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ce.boolean){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.boolean,received:o.parsedType}),Ve}return Ho(t.data)}}pO.create=e=>new pO({typeName:Oe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Ze(e)});class vz extends tt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ce.date){const a=this._getOrReturnCtx(t);return we(a,{code:ye.invalid_type,expected:Ce.date,received:a.parsedType}),Ve}if(Number.isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return we(a,{code:ye.invalid_date}),Ve}const o=new Rn;let r;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(r=this._getOrReturnCtx(t,r),we(r,{code:ye.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),o.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(r=this._getOrReturnCtx(t,r),we(r,{code:ye.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),o.dirty()):ct.assertNever(a);return{status:o.value,value:new Date(t.data.getTime())}}_addCheck(t){return new vz({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Le.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Le.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}vz.create=e=>new vz({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Oe.ZodDate,...Ze(e)});class OW extends tt{_parse(t){if(this._getType(t)!==Ce.symbol){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.symbol,received:o.parsedType}),Ve}return Ho(t.data)}}OW.create=e=>new OW({typeName:Oe.ZodSymbol,...Ze(e)});class FW extends tt{_parse(t){if(this._getType(t)!==Ce.undefined){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.undefined,received:o.parsedType}),Ve}return Ho(t.data)}}FW.create=e=>new FW({typeName:Oe.ZodUndefined,...Ze(e)});class qW extends tt{_parse(t){if(this._getType(t)!==Ce.null){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.null,received:o.parsedType}),Ve}return Ho(t.data)}}qW.create=e=>new qW({typeName:Oe.ZodNull,...Ze(e)});class VW extends tt{constructor(){super(...arguments),this._any=!0}_parse(t){return Ho(t.data)}}VW.create=e=>new VW({typeName:Oe.ZodAny,...Ze(e)});class yO extends tt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ho(t.data)}}yO.create=e=>new yO({typeName:Oe.ZodUnknown,...Ze(e)});class es extends tt{_parse(t){const n=this._getOrReturnCtx(t);return we(n,{code:ye.invalid_type,expected:Ce.never,received:n.parsedType}),Ve}}es.create=e=>new es({typeName:Oe.ZodNever,...Ze(e)});class BW extends tt{_parse(t){if(this._getType(t)!==Ce.undefined){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.void,received:o.parsedType}),Ve}return Ho(t.data)}}BW.create=e=>new BW({typeName:Oe.ZodVoid,...Ze(e)});class Jr extends tt{_parse(t){const{ctx:n,status:o}=this._processInputParams(t),r=this._def;if(n.parsedType!==Ce.array)return we(n,{code:ye.invalid_type,expected:Ce.array,received:n.parsedType}),Ve;if(r.exactLength!==null){const i=n.data.length>r.exactLength.value,s=n.data.length<r.exactLength.value;(i||s)&&(we(n,{code:i?ye.too_big:ye.too_small,minimum:s?r.exactLength.value:void 0,maximum:i?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),o.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(we(n,{code:ye.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),o.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(we(n,{code:ye.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),o.dirty()),n.common.async)return Promise.all([...n.data].map((i,s)=>r.type._parseAsync(new na(n,i,n.path,s)))).then(i=>Rn.mergeArray(o,i));const a=[...n.data].map((i,s)=>r.type._parseSync(new na(n,i,n.path,s)));return Rn.mergeArray(o,a)}get element(){return this._def.type}min(t,n){return new Jr({...this._def,minLength:{value:t,message:Le.toString(n)}})}max(t,n){return new Jr({...this._def,maxLength:{value:t,message:Le.toString(n)}})}length(t,n){return new Jr({...this._def,exactLength:{value:t,message:Le.toString(n)}})}nonempty(t){return this.min(1,t)}}Jr.create=(e,t)=>new Jr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Oe.ZodArray,...Ze(t)});function qu(e){if(e instanceof Xt){const t={};for(const n in e.shape){const o=e.shape[n];t[n]=Gi.create(qu(o))}return new Xt({...e._def,shape:()=>t})}else return e instanceof Jr?new Jr({...e._def,type:qu(e.element)}):e instanceof Gi?Gi.create(qu(e.unwrap())):e instanceof Q0?Q0.create(qu(e.unwrap())):e instanceof eu?eu.create(e.items.map(t=>qu(t))):e}class Xt extends tt{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(),n=ct.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Ce.object){const l=this._getOrReturnCtx(t);return we(l,{code:ye.invalid_type,expected:Ce.object,received:l.parsedType}),Ve}const{status:o,ctx:r}=this._processInputParams(t),{shape:a,keys:i}=this._getCached(),s=[];if(!(this._def.catchall instanceof es&&this._def.unknownKeys==="strip"))for(const l in r.data)i.includes(l)||s.push(l);const c=[];for(const l of i){const h=a[l],d=r.data[l];c.push({key:{status:"valid",value:l},value:h._parse(new na(r,d,r.path,l)),alwaysSet:l in r.data})}if(this._def.catchall instanceof es){const l=this._def.unknownKeys;if(l==="passthrough")for(const h of s)c.push({key:{status:"valid",value:h},value:{status:"valid",value:r.data[h]}});else if(l==="strict")s.length>0&&(we(r,{code:ye.unrecognized_keys,keys:s}),o.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const h of s){const d=r.data[h];c.push({key:{status:"valid",value:h},value:l._parse(new na(r,d,r.path,h)),alwaysSet:h in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const l=[];for(const h of c){const d=await h.key,p=await h.value;l.push({key:d,value:p,alwaysSet:h.alwaysSet})}return l}).then(l=>Rn.mergeObjectSync(o,l)):Rn.mergeObjectSync(o,c)}get shape(){return this._def.shape()}strict(t){return Le.errToObj,new Xt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,o)=>{var a,i;const r=((i=(a=this._def).errorMap)==null?void 0:i.call(a,n,o).message)??o.defaultError;return n.code==="unrecognized_keys"?{message:Le.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new Xt({...this._def,unknownKeys:"strip"})}passthrough(){return new Xt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Xt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Xt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Oe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Xt({...this._def,catchall:t})}pick(t){const n={};for(const o of ct.objectKeys(t))t[o]&&this.shape[o]&&(n[o]=this.shape[o]);return new Xt({...this._def,shape:()=>n})}omit(t){const n={};for(const o of ct.objectKeys(this.shape))t[o]||(n[o]=this.shape[o]);return new Xt({...this._def,shape:()=>n})}deepPartial(){return qu(this)}partial(t){const n={};for(const o of ct.objectKeys(this.shape)){const r=this.shape[o];t&&!t[o]?n[o]=r:n[o]=r.optional()}return new Xt({...this._def,shape:()=>n})}required(t){const n={};for(const o of ct.objectKeys(this.shape))if(t&&!t[o])n[o]=this.shape[o];else{let a=this.shape[o];for(;a instanceof Gi;)a=a._def.innerType;n[o]=a}return new Xt({...this._def,shape:()=>n})}keyof(){return $ee(ct.objectKeys(this.shape))}}Xt.create=(e,t)=>new Xt({shape:()=>e,unknownKeys:"strip",catchall:es.create(),typeName:Oe.ZodObject,...Ze(t)});Xt.strictCreate=(e,t)=>new Xt({shape:()=>e,unknownKeys:"strict",catchall:es.create(),typeName:Oe.ZodObject,...Ze(t)});Xt.lazycreate=(e,t)=>new Xt({shape:e,unknownKeys:"strip",catchall:es.create(),typeName:Oe.ZodObject,...Ze(t)});class xz extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),o=this._def.options;function r(a){for(const s of a)if(s.result.status==="valid")return s.result;for(const s of a)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const i=a.map(s=>new Ua(s.ctx.common.issues));return we(n,{code:ye.invalid_union,unionErrors:i}),Ve}if(n.common.async)return Promise.all(o.map(async a=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(r);{let a;const i=[];for(const c of o){const l={...n,common:{...n.common,issues:[]},parent:null},h=c._parseSync({data:n.data,path:n.path,parent:l});if(h.status==="valid")return h;h.status==="dirty"&&!a&&(a={result:h,ctx:l}),l.common.issues.length&&i.push(l.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const s=i.map(c=>new Ua(c));return we(n,{code:ye.invalid_union,unionErrors:s}),Ve}}get options(){return this._def.options}}xz.create=(e,t)=>new xz({options:e,typeName:Oe.ZodUnion,...Ze(t)});function mO(e,t){const n=Ni(e),o=Ni(t);if(e===t)return{valid:!0,data:e};if(n===Ce.object&&o===Ce.object){const r=ct.objectKeys(t),a=ct.objectKeys(e).filter(s=>r.indexOf(s)!==-1),i={...e,...t};for(const s of a){const c=mO(e[s],t[s]);if(!c.valid)return{valid:!1};i[s]=c.data}return{valid:!0,data:i}}else if(n===Ce.array&&o===Ce.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let a=0;a<e.length;a++){const i=e[a],s=t[a],c=mO(i,s);if(!c.valid)return{valid:!1};r.push(c.data)}return{valid:!0,data:r}}else return n===Ce.date&&o===Ce.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class wz extends tt{_parse(t){const{status:n,ctx:o}=this._processInputParams(t),r=(a,i)=>{if(TW(a)||TW(i))return Ve;const s=mO(a.value,i.value);return s.valid?((DW(a)||DW(i))&&n.dirty(),{status:n.value,value:s.data}):(we(o,{code:ye.invalid_intersection_types}),Ve)};return o.common.async?Promise.all([this._def.left._parseAsync({data:o.data,path:o.path,parent:o}),this._def.right._parseAsync({data:o.data,path:o.path,parent:o})]).then(([a,i])=>r(a,i)):r(this._def.left._parseSync({data:o.data,path:o.path,parent:o}),this._def.right._parseSync({data:o.data,path:o.path,parent:o}))}}wz.create=(e,t,n)=>new wz({left:e,right:t,typeName:Oe.ZodIntersection,...Ze(n)});class eu extends tt{_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.parsedType!==Ce.array)return we(o,{code:ye.invalid_type,expected:Ce.array,received:o.parsedType}),Ve;if(o.data.length<this._def.items.length)return we(o,{code:ye.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ve;!this._def.rest&&o.data.length>this._def.items.length&&(we(o,{code:ye.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...o.data].map((i,s)=>{const c=this._def.items[s]||this._def.rest;return c?c._parse(new na(o,i,o.path,s)):null}).filter(i=>!!i);return o.common.async?Promise.all(a).then(i=>Rn.mergeArray(n,i)):Rn.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new eu({...this._def,rest:t})}}eu.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new eu({items:e,typeName:Oe.ZodTuple,rest:null,...Ze(t)})};class Mz extends tt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.parsedType!==Ce.object)return we(o,{code:ye.invalid_type,expected:Ce.object,received:o.parsedType}),Ve;const r=[],a=this._def.keyType,i=this._def.valueType;for(const s in o.data)r.push({key:a._parse(new na(o,s,o.path,s)),value:i._parse(new na(o,o.data[s],o.path,s)),alwaysSet:s in o.data});return o.common.async?Rn.mergeObjectAsync(n,r):Rn.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,o){return n instanceof tt?new Mz({keyType:t,valueType:n,typeName:Oe.ZodRecord,...Ze(o)}):new Mz({keyType:Da.create(),valueType:t,typeName:Oe.ZodRecord,...Ze(n)})}}class UW extends tt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.parsedType!==Ce.map)return we(o,{code:ye.invalid_type,expected:Ce.map,received:o.parsedType}),Ve;const r=this._def.keyType,a=this._def.valueType,i=[...o.data.entries()].map(([s,c],l)=>({key:r._parse(new na(o,s,o.path,[l,"key"])),value:a._parse(new na(o,c,o.path,[l,"value"]))}));if(o.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const c of i){const l=await c.key,h=await c.value;if(l.status==="aborted"||h.status==="aborted")return Ve;(l.status==="dirty"||h.status==="dirty")&&n.dirty(),s.set(l.value,h.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const c of i){const l=c.key,h=c.value;if(l.status==="aborted"||h.status==="aborted")return Ve;(l.status==="dirty"||h.status==="dirty")&&n.dirty(),s.set(l.value,h.value)}return{status:n.value,value:s}}}}UW.create=(e,t,n)=>new UW({valueType:t,keyType:e,typeName:Oe.ZodMap,...Ze(n)});class bf extends tt{_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.parsedType!==Ce.set)return we(o,{code:ye.invalid_type,expected:Ce.set,received:o.parsedType}),Ve;const r=this._def;r.minSize!==null&&o.data.size<r.minSize.value&&(we(o,{code:ye.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&o.data.size>r.maxSize.value&&(we(o,{code:ye.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());const a=this._def.valueType;function i(c){const l=new Set;for(const h of c){if(h.status==="aborted")return Ve;h.status==="dirty"&&n.dirty(),l.add(h.value)}return{status:n.value,value:l}}const s=[...o.data.values()].map((c,l)=>a._parse(new na(o,c,o.path,l)));return o.common.async?Promise.all(s).then(c=>i(c)):i(s)}min(t,n){return new bf({...this._def,minSize:{value:t,message:Le.toString(n)}})}max(t,n){return new bf({...this._def,maxSize:{value:t,message:Le.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}bf.create=(e,t)=>new bf({valueType:e,minSize:null,maxSize:null,typeName:Oe.ZodSet,...Ze(t)});class WW extends tt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}WW.create=(e,t)=>new WW({getter:e,typeName:Oe.ZodLazy,...Ze(t)});class gO extends tt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return we(n,{received:n.data,code:ye.invalid_literal,expected:this._def.value}),Ve}return{status:"valid",value:t.data}}get value(){return this._def.value}}gO.create=(e,t)=>new gO({value:e,typeName:Oe.ZodLiteral,...Ze(t)});function $ee(e,t){return new Z0({values:e,typeName:Oe.ZodEnum,...Ze(t)})}class Z0 extends tt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),o=this._def.values;return we(n,{expected:ct.joinValues(o),received:n.parsedType,code:ye.invalid_type}),Ve}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),o=this._def.values;return we(n,{received:n.data,code:ye.invalid_enum_value,options:o}),Ve}return Ho(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Z0.create(t,{...this._def,...n})}exclude(t,n=this._def){return Z0.create(this.options.filter(o=>!t.includes(o)),{...this._def,...n})}}Z0.create=$ee;class GW extends tt{_parse(t){const n=ct.getValidEnumValues(this._def.values),o=this._getOrReturnCtx(t);if(o.parsedType!==Ce.string&&o.parsedType!==Ce.number){const r=ct.objectValues(n);return we(o,{expected:ct.joinValues(r),received:o.parsedType,code:ye.invalid_type}),Ve}if(this._cache||(this._cache=new Set(ct.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const r=ct.objectValues(n);return we(o,{received:o.data,code:ye.invalid_enum_value,options:r}),Ve}return Ho(t.data)}get enum(){return this._def.values}}GW.create=(e,t)=>new GW({values:e,typeName:Oe.ZodNativeEnum,...Ze(t)});class bz extends tt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.promise&&n.common.async===!1)return we(n,{code:ye.invalid_type,expected:Ce.promise,received:n.parsedType}),Ve;const o=n.parsedType===Ce.promise?n.data:Promise.resolve(n.data);return Ho(o.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}}bz.create=(e,t)=>new bz({type:e,typeName:Oe.ZodPromise,...Ze(t)});class Y0 extends tt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Oe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:o}=this._processInputParams(t),r=this._def.effect||null,a={addIssue:i=>{we(o,i),i.fatal?n.abort():n.dirty()},get path(){return o.path}};if(a.addIssue=a.addIssue.bind(a),r.type==="preprocess"){const i=r.transform(o.data,a);if(o.common.async)return Promise.resolve(i).then(async s=>{if(n.value==="aborted")return Ve;const c=await this._def.schema._parseAsync({data:s,path:o.path,parent:o});return c.status==="aborted"?Ve:c.status==="dirty"||n.value==="dirty"?Jh(c.value):c});{if(n.value==="aborted")return Ve;const s=this._def.schema._parseSync({data:i,path:o.path,parent:o});return s.status==="aborted"?Ve:s.status==="dirty"||n.value==="dirty"?Jh(s.value):s}}if(r.type==="refinement"){const i=s=>{const c=r.refinement(s,a);if(o.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(o.common.async===!1){const s=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});return s.status==="aborted"?Ve:(s.status==="dirty"&&n.dirty(),i(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(s=>s.status==="aborted"?Ve:(s.status==="dirty"&&n.dirty(),i(s.value).then(()=>({status:n.value,value:s.value}))))}if(r.type==="transform")if(o.common.async===!1){const i=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});if(!K0(i))return Ve;const s=r.transform(i.value,a);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(i=>K0(i)?Promise.resolve(r.transform(i.value,a)).then(s=>({status:n.value,value:s})):Ve);ct.assertNever(r)}}Y0.create=(e,t,n)=>new Y0({schema:e,typeName:Oe.ZodEffects,effect:t,...Ze(n)});Y0.createWithPreprocess=(e,t,n)=>new Y0({schema:t,effect:{type:"preprocess",transform:e},typeName:Oe.ZodEffects,...Ze(n)});class Gi extends tt{_parse(t){return this._getType(t)===Ce.undefined?Ho(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Gi.create=(e,t)=>new Gi({innerType:e,typeName:Oe.ZodOptional,...Ze(t)});class Q0 extends tt{_parse(t){return this._getType(t)===Ce.null?Ho(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Q0.create=(e,t)=>new Q0({innerType:e,typeName:Oe.ZodNullable,...Ze(t)});class kO extends tt{_parse(t){const{ctx:n}=this._processInputParams(t);let o=n.data;return n.parsedType===Ce.undefined&&(o=this._def.defaultValue()),this._def.innerType._parse({data:o,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}kO.create=(e,t)=>new kO({innerType:e,typeName:Oe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ze(t)});class vO extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),o={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:o.data,path:o.path,parent:{...o}});return kz(r)?r.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Ua(o.common.issues)},input:o.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new Ua(o.common.issues)},input:o.data})}}removeCatch(){return this._def.innerType}}vO.create=(e,t)=>new vO({innerType:e,typeName:Oe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ze(t)});class KW extends tt{_parse(t){if(this._getType(t)!==Ce.nan){const o=this._getOrReturnCtx(t);return we(o,{code:ye.invalid_type,expected:Ce.nan,received:o.parsedType}),Ve}return{status:"valid",value:t.data}}}KW.create=e=>new KW({typeName:Oe.ZodNaN,...Ze(e)});class wFe extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),o=n.data;return this._def.type._parse({data:o,path:n.path,parent:n})}unwrap(){return this._def.type}}class Mq extends tt{_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:o.data,path:o.path,parent:o});return a.status==="aborted"?Ve:a.status==="dirty"?(n.dirty(),Jh(a.value)):this._def.out._parseAsync({data:a.value,path:o.path,parent:o})})();{const r=this._def.in._parseSync({data:o.data,path:o.path,parent:o});return r.status==="aborted"?Ve:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:o.path,parent:o})}}static create(t,n){return new Mq({in:t,out:n,typeName:Oe.ZodPipeline})}}class xO extends tt{_parse(t){const n=this._def.innerType._parse(t),o=r=>(K0(r)&&(r.value=Object.freeze(r.value)),r);return kz(n)?n.then(r=>o(r)):o(n)}unwrap(){return this._def.innerType}}xO.create=(e,t)=>new xO({innerType:e,typeName:Oe.ZodReadonly,...Ze(t)});var Oe;(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"})(Oe||(Oe={}));const hn=Da.create,Pee=X0.create,MFe=pO.create,F2=yO.create;es.create;const Ss=Jr.create,st=Xt.create,wO=xz.create;wz.create;eu.create;const XW=Mz.create,Up=gO.create,Wp=Z0.create;bz.create;Gi.create;Q0.create;const bFe=st({$state:hn().min(1)}),Aa=st({$action:hn().min(1)}),_Fe=st({$cond:F2(),$then:F2(),$else:F2().optional()}),Qo=e=>wO([e,bFe,Aa,_Fe]),qt=Qo(hn()),Na=Qo(Pee()),Gp=Qo(MFe()),zee={Card:st({title:qt.optional()}),Separator:st({orientation:Qo(Wp(["horizontal","vertical"])).optional()}),Tabs:st({value:qt.optional(),items:Ss(st({id:hn(),label:hn()})),onChange:Aa.optional()}),Accordion:st({items:Ss(st({id:hn(),title:hn(),content:hn()}))}),Badge:st({label:qt,variant:Qo(Wp(["default","secondary","destructive","outline"])).optional()}),Avatar:st({src:qt.optional(),alt:qt.optional(),fallback:qt.optional()}),Progress:st({value:Na}),Skeleton:st({width:Na.optional(),height:Na.optional()}),Label:st({text:qt}),Heading:st({level:Qo(wO([Up(1),Up(2),Up(3),Up(4)])).optional(),text:qt}),Text:st({text:qt,muted:Gp.optional()}),Icon:st({name:qt,size:Na.optional()}),Chart:st({kind:Qo(Wp(["bar","line","area","pie"])),data:Qo(Ss(XW(hn(),F2()))),xKey:qt.optional(),series:Ss(st({key:hn(),label:hn().optional()})).optional()}),Table:st({columns:Ss(st({key:hn(),label:hn()})),rows:Qo(Ss(XW(hn(),F2())))}),Metric:st({label:qt,value:Qo(wO([hn(),Pee()]))}),CodeBlock:st({code:qt,language:qt.optional()}),Markdown:st({content:qt}),Button:st({label:qt,variant:Qo(Wp(["default","destructive","outline","secondary","ghost","link"])).optional(),onClick:Aa.optional(),disabled:Gp.optional()}),Input:st({value:qt.optional(),placeholder:qt.optional(),onChange:Aa.optional()}),Checkbox:st({checked:Gp.optional(),onChange:Aa.optional(),label:qt.optional()}),Switch:st({checked:Gp.optional(),onChange:Aa.optional()}),Select:st({value:qt.optional(),items:Ss(st({value:hn(),label:hn()})),onChange:Aa.optional()}),Textarea:st({value:qt.optional(),placeholder:qt.optional(),rows:Na.optional(),onChange:Aa.optional()}),Slider:st({value:Na.optional(),min:Na.optional(),max:Na.optional(),step:Na.optional(),onChange:Aa.optional()})},Ree=Object.keys(zee);Object.fromEntries(Ree.map(e=>[e,{props:zee[e],description:e}]));function ZW(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function oa(...e){return t=>{let n=!1;const o=e.map(r=>{const a=ZW(r,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let r=0;r<o.length;r++){const a=o[r];typeof a=="function"?a():ZW(e[r],null)}}}}function xt(...e){return m.useCallback(oa(...e),e)}var CFe=Symbol.for("react.lazy"),_z=iF[" use ".trim().toString()];function SFe(e){return typeof e=="object"&&e!==null&&"then"in e}function Tee(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===CFe&&"_payload"in e&&SFe(e._payload)}function LFe(e){const t=IFe(e),n=m.forwardRef((o,r)=>{let{children:a,...i}=o;Tee(a)&&typeof _z=="function"&&(a=_z(a._payload));const s=m.Children.toArray(a),c=s.find(EFe);if(c){const l=c.props.children,h=s.map(d=>d===c?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:d);return f.jsx(t,{...i,ref:r,children:m.isValidElement(l)?m.cloneElement(l,void 0,h):null})}return f.jsx(t,{...i,ref:r,children:a})});return n.displayName=`${e}.Slot`,n}var NFe=LFe("Slot");function IFe(e){const t=m.forwardRef((n,o)=>{let{children:r,...a}=n;if(Tee(r)&&typeof _z=="function"&&(r=_z(r._payload)),m.isValidElement(r)){const i=$Fe(r),s=jFe(a,r.props);return r.type!==m.Fragment&&(s.ref=o?oa(o,i):i),m.cloneElement(r,s)}return m.Children.count(r)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var AFe=Symbol("radix.slottable");function EFe(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===AFe}function jFe(e,t){const n={...t};for(const o in t){const r=e[o],a=t[o];/^on[A-Z]/.test(o)?r&&a?n[o]=(...s)=>{const c=a(...s);return r(...s),c}:r&&(n[o]=r):o==="style"?n[o]={...r,...a}:o==="className"&&(n[o]=[r,a].filter(Boolean).join(" "))}return{...e,...n}}function $Fe(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const YW=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,QW=_Q,Dee=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return QW(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:a}=t,i=Object.keys(r).map(l=>{const h=n==null?void 0:n[l],d=a==null?void 0:a[l];if(h===null)return null;const p=YW(h)||YW(d);return r[l][p]}),s=n&&Object.entries(n).reduce((l,h)=>{let[d,p]=h;return p===void 0||(l[d]=p),l},{}),c=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((l,h)=>{let{class:d,className:p,...y}=h;return Object.entries(y).every(g=>{let[k,x]=g;return Array.isArray(x)?x.includes({...a,...s}[k]):{...a,...s}[k]===x})?[...l,d,p]:l},[]);return QW(e,i,c,n==null?void 0:n.class,n==null?void 0:n.className)},PFe=Dee("sf:inline-flex sf:items-center sf:justify-center sf:whitespace-nowrap sf:rounded-md sf:text-sm sf:font-medium sf:ring-offset-background sf:transition-colors sf:focus-visible:outline-hidden sf:focus-visible:ring-2 sf:focus-visible:ring-ring sf:focus-visible:ring-offset-2 sf:disabled:pointer-events-none sf:disabled:opacity-50",{variants:{variant:{default:"sf:bg-primary sf:text-primary-foreground sf:font-semibold sf:hover:bg-emerald-400",destructive:"sf:bg-destructive sf:text-destructive-foreground sf:hover:bg-destructive/90",outline:"sf:border sf:border-input sf:bg-background sf:hover:bg-secondary sf:hover:text-foreground",secondary:"sf:bg-secondary sf:text-secondary-foreground sf:hover:bg-secondary/80",ghost:"sf:text-muted-foreground sf:hover:bg-muted sf:hover:text-foreground",link:"sf:text-primary sf:underline-offset-4 sf:hover:underline"},size:{default:"sf:h-9 sf:px-4 sf:py-2",sm:"sf:h-8 sf:rounded-md sf:px-3",lg:"sf:h-11 sf:rounded-md sf:px-8",icon:"sf:h-9 sf:w-9"}},defaultVariants:{variant:"default",size:"default"}}),rt=m.forwardRef(({className:e,variant:t,size:n,asChild:o=!1,...r},a)=>{const i=o?NFe:"button";return f.jsx(i,{className:ee(PFe({variant:t,size:n,className:e})),ref:a,...r})});rt.displayName="Button";function Hee(e,[t,n]){return Math.min(n,Math.max(t,e))}function Se(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function zFe(e,t){const n=m.createContext(t),o=a=>{const{children:i,...s}=a,c=m.useMemo(()=>s,Object.values(s));return f.jsx(n.Provider,{value:c,children:i})};o.displayName=e+"Provider";function r(a){const i=m.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[o,r]}function yr(e,t=[]){let n=[];function o(a,i){const s=m.createContext(i),c=n.length;n=[...n,i];const l=d=>{var v;const{scope:p,children:y,...g}=d,k=((v=p==null?void 0:p[e])==null?void 0:v[c])||s,x=m.useMemo(()=>g,Object.values(g));return f.jsx(k.Provider,{value:x,children:y})};l.displayName=a+"Provider";function h(d,p){var k;const y=((k=p==null?void 0:p[e])==null?void 0:k[c])||s,g=m.useContext(y);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[l,h]}const r=()=>{const a=n.map(i=>m.createContext(i));return function(s){const c=(s==null?void 0:s[e])||a;return m.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return r.scopeName=e,[o,RFe(r,...t)]}function RFe(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(a){const i=o.reduce((s,{useScope:c,scopeName:l})=>{const d=c(a)[`__scope${l}`];return{...s,...d}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var ts=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},TFe=iF[" useInsertionEffect ".trim().toString()]||ts;function du({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[r,a,i]=DFe({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:r;{const h=m.useRef(e!==void 0);m.useEffect(()=>{const d=h.current;d!==s&&console.warn(`${o} is changing from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),h.current=s},[s,o])}const l=m.useCallback(h=>{var d;if(s){const p=HFe(h)?h(e):h;p!==e&&((d=i.current)==null||d.call(i,p))}else a(h)},[s,e,a,i]);return[c,l]}function DFe({defaultProp:e,onChange:t}){const[n,o]=m.useState(e),r=m.useRef(n),a=m.useRef(t);return TFe(()=>{a.current=t},[t]),m.useEffect(()=>{var i;r.current!==n&&((i=a.current)==null||i.call(a,n),r.current=n)},[n,r]),[n,o,a]}function HFe(e){return typeof e=="function"}var OFe=m.createContext(void 0);function SR(e){const t=m.useContext(OFe);return e||t||"ltr"}function FFe(e){const t=m.useRef({value:e,previous:e});return m.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Oee(e){const[t,n]=m.useState(void 0);return ts(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const a=r[0];let i,s;if("borderBoxSize"in a){const c=a.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,s=l.blockSize}else i=e.offsetWidth,s=e.offsetHeight;n({width:i,height:s})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}function J0(e){const t=qFe(e),n=m.forwardRef((o,r)=>{const{children:a,...i}=o,s=m.Children.toArray(a),c=s.find(BFe);if(c){const l=c.props.children,h=s.map(d=>d===c?m.Children.count(l)>1?m.Children.only(null):m.isValidElement(l)?l.props.children:null:d);return f.jsx(t,{...i,ref:r,children:m.isValidElement(l)?m.cloneElement(l,void 0,h):null})}return f.jsx(t,{...i,ref:r,children:a})});return n.displayName=`${e}.Slot`,n}function qFe(e){const t=m.forwardRef((n,o)=>{const{children:r,...a}=n;if(m.isValidElement(r)){const i=WFe(r),s=UFe(a,r.props);return r.type!==m.Fragment&&(s.ref=o?oa(o,i):i),m.cloneElement(r,s)}return m.Children.count(r)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Fee=Symbol("radix.slottable");function VFe(e){const t=({children:n})=>f.jsx(f.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Fee,t}function BFe(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Fee}function UFe(e,t){const n={...t};for(const o in t){const r=e[o],a=t[o];/^on[A-Z]/.test(o)?r&&a?n[o]=(...s)=>{const c=a(...s);return r(...s),c}:r&&(n[o]=r):o==="style"?n[o]={...r,...a}:o==="className"&&(n[o]=[r,a].filter(Boolean).join(" "))}return{...e,...n}}function WFe(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var GFe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],We=GFe.reduce((e,t)=>{const n=J0(`Primitive.${t}`),o=m.forwardRef((r,a)=>{const{asChild:i,...s}=r,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(c,{...s,ref:a})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function qee(e,t){e&&su.flushSync(()=>e.dispatchEvent(t))}function bq(e){const t=e+"CollectionProvider",[n,o]=yr(t),[r,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=k=>{const{scope:x,children:v}=k,M=uo.useRef(null),w=uo.useRef(new Map).current;return f.jsx(r,{scope:x,itemMap:w,collectionRef:M,children:v})};i.displayName=t;const s=e+"CollectionSlot",c=J0(s),l=uo.forwardRef((k,x)=>{const{scope:v,children:M}=k,w=a(s,v),b=xt(x,w.collectionRef);return f.jsx(c,{ref:b,children:M})});l.displayName=s;const h=e+"CollectionItemSlot",d="data-radix-collection-item",p=J0(h),y=uo.forwardRef((k,x)=>{const{scope:v,children:M,...w}=k,b=uo.useRef(null),C=xt(x,b),_=a(h,v);return uo.useEffect(()=>(_.itemMap.set(b,{ref:b,...w}),()=>void _.itemMap.delete(b))),f.jsx(p,{[d]:"",ref:C,children:M})});y.displayName=h;function g(k){const x=a(e+"CollectionConsumer",k);return uo.useCallback(()=>{const M=x.collectionRef.current;if(!M)return[];const w=Array.from(M.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((_,S)=>w.indexOf(_.ref.current)-w.indexOf(S.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:l,ItemSlot:y},g,o]}var Vee=["PageUp","PageDown"],Bee=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Uee={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},lh="Slider",[MO,KFe,XFe]=bq(lh),[Wee]=yr(lh,[XFe]),[ZFe,LR]=Wee(lh),Gee=m.forwardRef((e,t)=>{const{name:n,min:o=0,max:r=100,step:a=1,orientation:i="horizontal",disabled:s=!1,minStepsBetweenThumbs:c=0,defaultValue:l=[o],value:h,onValueChange:d=()=>{},onValueCommit:p=()=>{},inverted:y=!1,form:g,...k}=e,x=m.useRef(new Set),v=m.useRef(0),w=i==="horizontal"?YFe:QFe,[b=[],C]=du({prop:h,defaultProp:l,onChange:R=>{var V;(V=[...x.current][v.current])==null||V.focus(),d(R)}}),_=m.useRef(b);function S(R){const j=oqe(b,R);I(R,j)}function L(R){I(R,v.current)}function A(){const R=_.current[v.current];b[v.current]!==R&&p(b)}function I(R,j,{commit:V}={commit:!1}){const $=sqe(a),T=cqe(Math.round((R-o)/a)*a+o,$),D=Hee(T,[o,r]);C((F=[])=>{const z=tqe(F,D,j);if(iqe(z,c*a)){v.current=z.indexOf(D);const E=String(z)!==String(F);return E&&V&&p(z),E?z:F}else return F})}return f.jsx(ZFe,{scope:e.__scopeSlider,name:n,disabled:s,min:o,max:r,valueIndexToChangeRef:v,thumbs:x.current,values:b,orientation:i,form:g,children:f.jsx(MO.Provider,{scope:e.__scopeSlider,children:f.jsx(MO.Slot,{scope:e.__scopeSlider,children:f.jsx(w,{"aria-disabled":s,"data-disabled":s?"":void 0,...k,ref:t,onPointerDown:Se(k.onPointerDown,()=>{s||(_.current=b)}),min:o,max:r,inverted:y,onSlideStart:s?void 0:S,onSlideMove:s?void 0:L,onSlideEnd:s?void 0:A,onHomeKeyDown:()=>!s&&I(o,0,{commit:!0}),onEndKeyDown:()=>!s&&I(r,b.length-1,{commit:!0}),onStepKeyDown:({event:R,direction:j})=>{if(!s){const T=Vee.includes(R.key)||R.shiftKey&&Bee.includes(R.key)?10:1,D=v.current,F=b[D],z=a*T*j;I(F+z,D,{commit:!0})}}})})})})});Gee.displayName=lh;var[Kee,Xee]=Wee(lh,{startEdge:"left",endEdge:"right",size:"width",direction:1}),YFe=m.forwardRef((e,t)=>{const{min:n,max:o,dir:r,inverted:a,onSlideStart:i,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...h}=e,[d,p]=m.useState(null),y=xt(t,w=>p(w)),g=m.useRef(void 0),k=SR(r),x=k==="ltr",v=x&&!a||!x&&a;function M(w){const b=g.current||d.getBoundingClientRect(),C=[0,b.width],S=_q(C,v?[n,o]:[o,n]);return g.current=b,S(w-b.left)}return f.jsx(Kee,{scope:e.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width",children:f.jsx(Zee,{dir:k,"data-orientation":"horizontal",...h,ref:y,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const b=M(w.clientX);i==null||i(b)},onSlideMove:w=>{const b=M(w.clientX);s==null||s(b)},onSlideEnd:()=>{g.current=void 0,c==null||c()},onStepKeyDown:w=>{const C=Uee[v?"from-left":"from-right"].includes(w.key);l==null||l({event:w,direction:C?-1:1})}})})}),QFe=m.forwardRef((e,t)=>{const{min:n,max:o,inverted:r,onSlideStart:a,onSlideMove:i,onSlideEnd:s,onStepKeyDown:c,...l}=e,h=m.useRef(null),d=xt(t,h),p=m.useRef(void 0),y=!r;function g(k){const x=p.current||h.current.getBoundingClientRect(),v=[0,x.height],w=_q(v,y?[o,n]:[n,o]);return p.current=x,w(k-x.top)}return f.jsx(Kee,{scope:e.__scopeSlider,startEdge:y?"bottom":"top",endEdge:y?"top":"bottom",size:"height",direction:y?1:-1,children:f.jsx(Zee,{"data-orientation":"vertical",...l,ref:d,style:{...l.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:k=>{const x=g(k.clientY);a==null||a(x)},onSlideMove:k=>{const x=g(k.clientY);i==null||i(x)},onSlideEnd:()=>{p.current=void 0,s==null||s()},onStepKeyDown:k=>{const v=Uee[y?"from-bottom":"from-top"].includes(k.key);c==null||c({event:k,direction:v?-1:1})}})})}),Zee=m.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:o,onSlideMove:r,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:s,onStepKeyDown:c,...l}=e,h=LR(lh,n);return f.jsx(We.span,{...l,ref:t,onKeyDown:Se(e.onKeyDown,d=>{d.key==="Home"?(i(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):Vee.concat(Bee).includes(d.key)&&(c(d),d.preventDefault())}),onPointerDown:Se(e.onPointerDown,d=>{const p=d.target;p.setPointerCapture(d.pointerId),d.preventDefault(),h.thumbs.has(p)?p.focus():o(d)}),onPointerMove:Se(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&r(d)}),onPointerUp:Se(e.onPointerUp,d=>{const p=d.target;p.hasPointerCapture(d.pointerId)&&(p.releasePointerCapture(d.pointerId),a(d))})})}),Yee="SliderTrack",Qee=m.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=LR(Yee,n);return f.jsx(We.span,{"data-disabled":r.disabled?"":void 0,"data-orientation":r.orientation,...o,ref:t})});Qee.displayName=Yee;var bO="SliderRange",Jee=m.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=LR(bO,n),a=Xee(bO,n),i=m.useRef(null),s=xt(t,i),c=r.values.length,l=r.values.map(p=>nte(p,r.min,r.max)),h=c>1?Math.min(...l):0,d=100-Math.max(...l);return f.jsx(We.span,{"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,...o,ref:s,style:{...e.style,[a.startEdge]:h+"%",[a.endEdge]:d+"%"}})});Jee.displayName=bO;var _O="SliderThumb",ete=m.forwardRef((e,t)=>{const n=KFe(e.__scopeSlider),[o,r]=m.useState(null),a=xt(t,s=>r(s)),i=m.useMemo(()=>o?n().findIndex(s=>s.ref.current===o):-1,[n,o]);return f.jsx(JFe,{...e,ref:a,index:i})}),JFe=m.forwardRef((e,t)=>{const{__scopeSlider:n,index:o,name:r,...a}=e,i=LR(_O,n),s=Xee(_O,n),[c,l]=m.useState(null),h=xt(t,M=>l(M)),d=c?i.form||!!c.closest("form"):!0,p=Oee(c),y=i.values[o],g=y===void 0?0:nte(y,i.min,i.max),k=nqe(o,i.values.length),x=p==null?void 0:p[s.size],v=x?rqe(x,g,s.direction):0;return m.useEffect(()=>{if(c)return i.thumbs.add(c),()=>{i.thumbs.delete(c)}},[c,i.thumbs]),f.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${g}% + ${v}px)`},children:[f.jsx(MO.ItemSlot,{scope:e.__scopeSlider,children:f.jsx(We.span,{role:"slider","aria-label":e["aria-label"]||k,"aria-valuemin":i.min,"aria-valuenow":y,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...a,ref:h,style:y===void 0?{display:"none"}:e.style,onFocus:Se(e.onFocus,()=>{i.valueIndexToChangeRef.current=o})})}),d&&f.jsx(tte,{name:r??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:y},o)]})});ete.displayName=_O;var eqe="RadioBubbleInput",tte=m.forwardRef(({__scopeSlider:e,value:t,...n},o)=>{const r=m.useRef(null),a=xt(r,o),i=FFe(t);return m.useEffect(()=>{const s=r.current;if(!s)return;const c=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&h){const d=new Event("input",{bubbles:!0});h.call(s,t),s.dispatchEvent(d)}},[i,t]),f.jsx(We.input,{style:{display:"none"},...n,ref:a,defaultValue:t})});tte.displayName=eqe;function tqe(e=[],t,n){const o=[...e];return o[n]=t,o.sort((r,a)=>r-a)}function nte(e,t,n){const a=100/(n-t)*(e-t);return Hee(a,[0,100])}function nqe(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function oqe(e,t){if(e.length===1)return 0;const n=e.map(r=>Math.abs(r-t)),o=Math.min(...n);return n.indexOf(o)}function rqe(e,t,n){const o=e/2,a=_q([0,50],[0,o]);return(o-a(t)*n)*n}function aqe(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function iqe(e,t){if(t>0){const n=aqe(e);return Math.min(...n)>=t}return!0}function _q(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function sqe(e){return(String(e).split(".")[1]||"").length}function cqe(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var ote=Gee,lqe=Qee,dqe=Jee,uqe=ete;const Cq=m.forwardRef(({className:e,...t},n)=>f.jsxs(ote,{ref:n,className:ee("sf:relative sf:flex sf:w-full sf:touch-none sf:select-none sf:items-center",e),...t,children:[f.jsx(lqe,{className:"sf:relative sf:h-1.5 sf:w-full sf:grow sf:overflow-hidden sf:rounded-full sf:bg-secondary",children:f.jsx(dqe,{className:"sf:absolute sf:h-full sf:bg-primary"})}),f.jsx(uqe,{className:"sf:block sf:h-4 sf:w-4 sf:rounded-full sf:border sf:border-primary/60 sf:bg-background sf:shadow-sm sf:transition-colors sf:hover:border-primary sf:focus-visible:outline-hidden sf:focus-visible:ring-2 sf:focus-visible:ring-ring sf:disabled:pointer-events-none sf:disabled:opacity-50"})]}));Cq.displayName=ote.displayName;const hqe={1:"sf:text-2xl sf:font-semibold sf:tracking-tight",2:"sf:text-xl sf:font-semibold sf:tracking-tight",3:"sf:text-lg sf:font-semibold",4:"sf:text-base sf:font-semibold"};function fqe({text:e,level:t=2}){const n=`h${t}`;return f.jsx(n,{className:ee(hqe[t]),children:e})}const rte=m.createContext({custom:{}});function pqe({value:e,children:t}){return f.jsx(rte.Provider,{value:e,children:t})}function yqe(){return m.useContext(rte)}function mqe({name:e,as:t,size:n=16,fallback:o=IEe,...r}){const a=yqe(),i=t??(e?a.custom[e]:void 0)??(e?df[e]:void 0)??df[o];return i?f.jsx(i,{size:n,...r}):null}function gqe({name:e,size:t=16}){return f.jsx(mqe,{name:e,size:t,"aria-hidden":!0})}function kqe(e){return e==null?"":typeof e=="string"||typeof e=="number"?e:typeof e=="object"?JSON.stringify(e):String(e)}function vqe({label:e,value:t}){return f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-1",children:[f.jsx("span",{className:"sf:text-muted-foreground sf:text-xs sf:uppercase sf:tracking-wide",children:e}),f.jsx("span",{className:"sf:font-semibold sf:text-2xl sf:tabular-nums",children:kqe(t)})]})}function xqe(e){return e==null?"":typeof e=="string"||typeof e=="number"?String(e):JSON.stringify(e)}function wqe({columns:e=[],rows:t=[]}){return f.jsx("div",{className:"sf:w-full sf:overflow-x-auto",children:f.jsxs("table",{className:"sf:w-full sf:text-left sf:text-sm",children:[f.jsx("thead",{className:"sf:border-b sf:bg-muted/50",children:f.jsx("tr",{children:e.map(n=>f.jsx("th",{scope:"col",className:"sf:px-3 sf:py-2 sf:font-medium sf:text-muted-foreground",children:n.label},n.key))})}),f.jsx("tbody",{children:t.map((n,o)=>f.jsx("tr",{className:"sf:border-b last:sf:border-0",children:e.map(r=>f.jsx("td",{className:"sf:px-3 sf:py-2",children:xqe(n[r.key])},r.key))},o))})]})})}function Mqe({text:e,muted:t}){return f.jsx("p",{className:ee("sf:text-sm",t&&"sf:text-muted-foreground"),children:e})}function bqe({title:e,children:t}){return f.jsxs("div",{className:"sf:bg-card sf:p-4 sf:text-card-foreground sf:shadow-sm",children:[e!==void 0?f.jsx("div",{className:"sf:mb-3 sf:font-semibold sf:text-base sf:leading-tight",children:e}):null,f.jsx("div",{className:"sf:flex sf:flex-col sf:gap-3",children:t})]})}function _qe({orientation:e="horizontal"}){return f.jsx("div",{"aria-orientation":e,className:ee("sf:bg-border",e==="horizontal"?"sf:h-px sf:w-full":"sf:h-full sf:w-px")})}function Cqe({value:e,items:t,onChange:n,children:o}){const r=t??[];return f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-2",children:[f.jsx("div",{className:"sf:inline-flex sf:h-9 sf:items-center sf:justify-start sf:rounded-md sf:bg-muted sf:p-1 sf:text-muted-foreground",children:r.map(a=>f.jsx("button",{type:"button","data-state":e===a.id?"active":"inactive",onClick:()=>n==null?void 0:n({value:a.id}),className:"sf:inline-flex sf:items-center sf:justify-center sf:whitespace-nowrap sf:rounded-sm sf:px-3 sf:py-1 sf:text-xs sf:font-medium sf:transition-all sf:data-[state=active]:bg-background sf:data-[state=active]:text-foreground sf:data-[state=active]:shadow-sm",children:a.label},a.id))}),o]})}function Sqe({items:e}){const t=e??[];return f.jsx("div",{className:"sf:flex sf:flex-col sf:divide-y sf:rounded-md sf:border",children:t.map(n=>f.jsxs("details",{className:"sf:group sf:px-3 sf:py-2",children:[f.jsx("summary",{className:"sf:cursor-pointer sf:py-1 sf:font-medium sf:text-sm",children:n.title}),f.jsx("div",{className:"sf:py-2 sf:text-muted-foreground sf:text-sm",children:n.content})]},n.id))})}const JW={default:"sf:bg-primary sf:text-primary-foreground",secondary:"sf:bg-secondary sf:text-secondary-foreground",destructive:"sf:bg-destructive sf:text-destructive-foreground",outline:"sf:border sf:border-border sf:text-foreground"};function Lqe({label:e,variant:t="default"}){return f.jsx("span",{className:ee("sf:inline-flex sf:items-center sf:rounded-full sf:px-2.5 sf:py-0.5 sf:font-medium sf:text-xs",JW[t]??JW.default),children:e})}function Nqe({src:e,alt:t,fallback:n}){return e?f.jsx("img",{src:e,alt:t??"",className:"sf:inline-block sf:h-9 sf:w-9 sf:rounded-full sf:object-cover"}):f.jsx("span",{className:"sf:inline-flex sf:h-9 sf:w-9 sf:items-center sf:justify-center sf:rounded-full sf:bg-muted sf:font-medium sf:text-muted-foreground sf:text-sm",children:n??"?"})}function Iqe({value:e=0}){const t=Math.max(0,Math.min(100,e));return f.jsx("div",{"aria-valuenow":t,"aria-valuemin":0,"aria-valuemax":100,className:"sf:relative sf:h-2 sf:w-full sf:overflow-hidden sf:rounded-full sf:bg-secondary",children:f.jsx("div",{className:"sf:h-full sf:bg-primary sf:transition-all",style:{width:`${t}%`}})})}function Aqe({width:e,height:t}){return f.jsx("div",{className:"sf:animate-pulse sf:rounded-md sf:bg-muted",style:{width:e??"100%",height:t??16}})}function Eqe({text:e}){return f.jsx("span",{className:"sf:font-medium sf:text-sm sf:leading-none",children:e})}function jqe({label:e,variant:t="default",onClick:n,disabled:o}){return f.jsx(rt,{variant:t,disabled:o,onClick:()=>n==null?void 0:n(),children:e})}const Sq="sf:flex sf:h-9 sf:w-full sf:rounded-md sf:border sf:border-input sf:bg-background sf:px-3 sf:py-1 sf:text-sm sf:shadow-sm sf:transition-colors sf:placeholder:text-muted-foreground sf:focus-visible:outline-hidden sf:focus-visible:ring-1 sf:focus-visible:ring-ring sf:disabled:cursor-not-allowed sf:disabled:opacity-50";function $qe({value:e,placeholder:t,onChange:n}){return f.jsx("input",{type:"text",value:e??"",placeholder:t,onChange:o=>n==null?void 0:n({value:o.target.value}),className:Sq})}function Pqe({checked:e,onChange:t,label:n}){return f.jsxs("label",{className:"sf:inline-flex sf:items-center sf:gap-2 sf:text-sm",children:[f.jsx("input",{type:"checkbox",checked:e??!1,onChange:o=>t==null?void 0:t({checked:o.target.checked}),className:"sf:h-4 sf:w-4 sf:rounded sf:border sf:border-input sf:accent-primary"}),n]})}function zqe({checked:e,onChange:t}){return f.jsx("button",{type:"button",role:"switch","aria-checked":e??!1,onClick:()=>t==null?void 0:t({checked:!(e??!1)}),className:ee("sf:relative sf:inline-flex sf:h-5 sf:w-9 sf:shrink-0 sf:cursor-pointer sf:items-center sf:rounded-full sf:border-2 sf:border-transparent sf:transition-colors",e?"sf:bg-primary":"sf:bg-input"),children:f.jsx("span",{className:ee("sf:pointer-events-none sf:block sf:h-4 sf:w-4 sf:rounded-full sf:bg-background sf:shadow-lg sf:ring-0 sf:transition-transform",e?"sf:translate-x-4":"sf:translate-x-0")})})}function Rqe({value:e,items:t,onChange:n}){return f.jsx("select",{value:e??"",onChange:o=>n==null?void 0:n({value:o.target.value}),className:Sq,children:(t??[]).map(o=>f.jsx("option",{value:o.value,children:o.label},o.value))})}function Tqe({value:e,placeholder:t,rows:n,onChange:o}){return f.jsx("textarea",{value:e??"",placeholder:t,rows:n,onChange:r=>o==null?void 0:o({value:r.target.value}),className:ee(Sq,"sf:min-h-16 sf:py-2")})}function Dqe({value:e,min:t=0,max:n=100,step:o=1,onChange:r}){return f.jsx(Cq,{value:e===void 0?void 0:[e],min:t,max:n,step:o,onValueChange:a=>{const[i]=a;typeof i=="number"&&(r==null||r({value:i}))}})}const Hqe=m.lazy(()=>sh(()=>import("./chart-YnnKsrqR.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])));function Oqe(e){return f.jsx(m.Suspense,{fallback:null,children:f.jsx(Hqe,{...e})})}const Fqe=m.lazy(()=>sh(()=>import("./markdown-BQOIqSv0.js"),[]));function qqe(e){return f.jsx(m.Suspense,{fallback:null,children:f.jsx(Fqe,{...e})})}const Vqe=m.lazy(()=>sh(()=>import("./code-block-g3hkOwqd.js"),[]));function Bqe(e){return f.jsx(m.Suspense,{fallback:null,children:f.jsx(Vqe,{...e})})}const ate={Card:bqe,Separator:_qe,Tabs:Cqe,Accordion:Sqe,Badge:Lqe,Avatar:Nqe,Progress:Iqe,Skeleton:Aqe,Label:Eqe,Heading:fqe,Text:Mqe,Icon:gqe,Chart:Oqe,Table:wqe,Metric:vqe,CodeBlock:Bqe,Markdown:qqe,Button:jqe,Input:$qe,Checkbox:Pqe,Switch:zqe,Select:Rqe,Textarea:Tqe,Slider:Dqe},eG=Ree.filter(e=>ate[e]===void 0);if(eG.length>0)throw new Error(`componentRegistry is missing impls for: ${eG.join(", ")}. Every catalog entry in COMPONENT_NAMES must have a matching component impl.`);const Uqe={components:ate};function Wqe(e,t){return t.kind==="set"?{...e,[t.path]:t.value}:{...e,...t.partial}}function ite(e){return e===null||typeof e!="object"?!1:"$state"in e||"$action"in e||"$param"in e||"$cond"in e}function CP(e,t,n,o){if(!ite(e))return e;if(typeof e.$state=="string")return t[e.$state];if(typeof e.$action=="string"){const r=e.$action;return o.has(r)?a=>n(r,a):void 0}if("$cond"in e){const r=CP(e.$cond,t,n,o);return CP(r?e.$then:e.$else,t,n,o)}return e}function Gqe(e,t,n,o){if(!e)return{};const r={};for(const[a,i]of Object.entries(e))r[a]=CP(i,t,n,o);return r}function tG({spec:e,nodeId:t,apiBaseUrl:n="/api",projectSlug:o,flowSlug:r}){const[a,i]=m.useReducer(Wqe,e.state??{}),s=new Set(Object.keys(e.actions??{})),c=m.useCallback(async(l,h)=>{var y;const d=(y=e.actions)==null?void 0:y[l];if(!d)return;if(d.kind==="set"){const g=Kqe(d.value,h,a);i({kind:"set",path:d.path,value:g});return}if(!o||!r)return;const p=`${n}/projects/${encodeURIComponent(o)}/flows/${encodeURIComponent(r)}/nodes/${encodeURIComponent(t)}/actions/${encodeURIComponent(l)}`;try{const g=await fetch(p,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(h??{})});if(!g.ok){const x=await g.text();i({kind:"set",path:`/__errors/${l}`,value:x});return}const k=await g.json();k!==null&&typeof k=="object"&&i({kind:"merge",partial:k})}catch(g){i({kind:"set",path:`/__errors/${l}`,value:g instanceof Error?g.message:String(g)})}},[e.actions,o,r,n,t,a]);return ste(e.root,e,a,c,s)}function Kqe(e,t,n){return ite(e)?typeof e.$param=="string"?t!==null&&typeof t=="object"?t[e.$param]:void 0:typeof e.$state=="string"?n[e.$state]:e:e}function ste(e,t,n,o,r){const a=t.elements[e];if(!a)return null;const i=Uqe.components[a.type];if(!i)return null;const s=Gqe(a.props,n,o,r),l=(a.children??[]).map(h=>f.jsx(Xqe,{children:ste(h,t,n,o,r)},h));return f.jsx(i,{...s,children:l.length>0?l:void 0})}function Xqe({children:e}){return e}function ra(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function Zqe(e,t=globalThis==null?void 0:globalThis.document){const n=ra(e);m.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Yqe="DismissableLayer",CO="dismissableLayer.update",Qqe="dismissableLayer.pointerDownOutside",Jqe="dismissableLayer.focusOutside",nG,cte=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Uf=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...c}=e,l=m.useContext(cte),[h,d]=m.useState(null),p=(h==null?void 0:h.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=m.useState({}),g=xt(t,S=>d(S)),k=Array.from(l.layers),[x]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=k.indexOf(x),M=h?k.indexOf(h):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,b=M>=v,C=nVe(S=>{const L=S.target,A=[...l.branches].some(I=>I.contains(L));!b||A||(r==null||r(S),i==null||i(S),S.defaultPrevented||s==null||s())},p),_=oVe(S=>{const L=S.target;[...l.branches].some(I=>I.contains(L))||(a==null||a(S),i==null||i(S),S.defaultPrevented||s==null||s())},p);return Zqe(S=>{M===l.layers.size-1&&(o==null||o(S),!S.defaultPrevented&&s&&(S.preventDefault(),s()))},p),m.useEffect(()=>{if(h)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(nG=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(h)),l.layers.add(h),oG(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=nG)}},[h,p,n,l]),m.useEffect(()=>()=>{h&&(l.layers.delete(h),l.layersWithOutsidePointerEventsDisabled.delete(h),oG())},[h,l]),m.useEffect(()=>{const S=()=>y({});return document.addEventListener(CO,S),()=>document.removeEventListener(CO,S)},[]),f.jsx(We.div,{...c,ref:g,style:{pointerEvents:w?b?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,C.onPointerDownCapture)})});Uf.displayName=Yqe;var eVe="DismissableLayerBranch",tVe=m.forwardRef((e,t)=>{const n=m.useContext(cte),o=m.useRef(null),r=xt(t,o);return m.useEffect(()=>{const a=o.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),f.jsx(We.div,{...e,ref:r})});tVe.displayName=eVe;function nVe(e,t=globalThis==null?void 0:globalThis.document){const n=ra(e),o=m.useRef(!1),r=m.useRef(()=>{});return m.useEffect(()=>{const a=s=>{if(s.target&&!o.current){let c=function(){lte(Qqe,n,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=c,t.addEventListener("click",r.current,{once:!0})):c()}else t.removeEventListener("click",r.current);o.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function oVe(e,t=globalThis==null?void 0:globalThis.document){const n=ra(e),o=m.useRef(!1);return m.useEffect(()=>{const r=a=>{a.target&&!o.current&&lte(Jqe,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function oG(){const e=new CustomEvent(CO);document.dispatchEvent(e)}function lte(e,t,n,{discrete:o}){const r=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?qee(r,a):r.dispatchEvent(a)}var lD=0;function Lq(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??rG()),document.body.insertAdjacentElement("beforeend",e[1]??rG()),lD++,()=>{lD===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),lD--}},[])}function rG(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var dD="focusScope.autoFocusOnMount",uD="focusScope.autoFocusOnUnmount",aG={bubbles:!1,cancelable:!0},rVe="FocusScope",NR=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:a,...i}=e,[s,c]=m.useState(null),l=ra(r),h=ra(a),d=m.useRef(null),p=xt(t,k=>c(k)),y=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(o){let k=function(w){if(y.paused||!s)return;const b=w.target;s.contains(b)?d.current=b:xi(d.current,{select:!0})},x=function(w){if(y.paused||!s)return;const b=w.relatedTarget;b!==null&&(s.contains(b)||xi(d.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const C of w)C.removedNodes.length>0&&xi(s)};document.addEventListener("focusin",k),document.addEventListener("focusout",x);const M=new MutationObserver(v);return s&&M.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",x),M.disconnect()}}},[o,s,y.paused]),m.useEffect(()=>{if(s){sG.add(y);const k=document.activeElement;if(!s.contains(k)){const v=new CustomEvent(dD,aG);s.addEventListener(dD,l),s.dispatchEvent(v),v.defaultPrevented||(aVe(dVe(dte(s)),{select:!0}),document.activeElement===k&&xi(s))}return()=>{s.removeEventListener(dD,l),setTimeout(()=>{const v=new CustomEvent(uD,aG);s.addEventListener(uD,h),s.dispatchEvent(v),v.defaultPrevented||xi(k??document.body,{select:!0}),s.removeEventListener(uD,h),sG.remove(y)},0)}}},[s,l,h,y]);const g=m.useCallback(k=>{if(!n&&!o||y.paused)return;const x=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,v=document.activeElement;if(x&&v){const M=k.currentTarget,[w,b]=iVe(M);w&&b?!k.shiftKey&&v===b?(k.preventDefault(),n&&xi(w,{select:!0})):k.shiftKey&&v===w&&(k.preventDefault(),n&&xi(b,{select:!0})):v===M&&k.preventDefault()}},[n,o,y.paused]);return f.jsx(We.div,{tabIndex:-1,...i,ref:p,onKeyDown:g})});NR.displayName=rVe;function aVe(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(xi(o,{select:t}),document.activeElement!==n)return}function iVe(e){const t=dte(e),n=iG(t,e),o=iG(t.reverse(),e);return[n,o]}function dte(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function iG(e,t){for(const n of e)if(!sVe(n,{upTo:t}))return n}function sVe(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cVe(e){return e instanceof HTMLInputElement&&"select"in e}function xi(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&cVe(e)&&t&&e.select()}}var sG=lVe();function lVe(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=cG(e,t),e.unshift(t)},remove(t){var n;e=cG(e,t),(n=e[0])==null||n.resume()}}}function cG(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function dVe(e){return e.filter(t=>t.tagName!=="A")}var uVe=iF[" useId ".trim().toString()]||(()=>{}),hVe=0;function zn(e){const[t,n]=m.useState(uVe());return ts(()=>{n(o=>o??String(hVe++))},[e]),e||(t?`radix-${t}`:"")}const fVe=["top","right","bottom","left"],ns=Math.min,ho=Math.max,Cz=Math.round,Kp=Math.floor,ea=e=>({x:e,y:e}),pVe={left:"right",right:"left",bottom:"top",top:"bottom"};function SO(e,t,n){return ho(e,ns(t,n))}function Wa(e,t){return typeof e=="function"?e(t):e}function Ga(e){return e.split("-")[0]}function dh(e){return e.split("-")[1]}function Nq(e){return e==="x"?"y":"x"}function Iq(e){return e==="y"?"height":"width"}function Kr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Aq(e){return Nq(Kr(e))}function yVe(e,t,n){n===void 0&&(n=!1);const o=dh(e),r=Aq(e),a=Iq(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Sz(i)),[i,Sz(i)]}function mVe(e){const t=Sz(e);return[LO(e),t,LO(t)]}function LO(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const lG=["left","right"],dG=["right","left"],gVe=["top","bottom"],kVe=["bottom","top"];function vVe(e,t,n){switch(e){case"top":case"bottom":return n?t?dG:lG:t?lG:dG;case"left":case"right":return t?gVe:kVe;default:return[]}}function xVe(e,t,n,o){const r=dh(e);let a=vVe(Ga(e),n==="start",o);return r&&(a=a.map(i=>i+"-"+r),t&&(a=a.concat(a.map(LO)))),a}function Sz(e){const t=Ga(e);return pVe[t]+e.slice(t.length)}function wVe(e){return{top:0,right:0,bottom:0,left:0,...e}}function ute(e){return typeof e!="number"?wVe(e):{top:e,right:e,bottom:e,left:e}}function Lz(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function uG(e,t,n){let{reference:o,floating:r}=e;const a=Kr(t),i=Aq(t),s=Iq(i),c=Ga(t),l=a==="y",h=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,p=o[s]/2-r[s]/2;let y;switch(c){case"top":y={x:h,y:o.y-r.height};break;case"bottom":y={x:h,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:d};break;case"left":y={x:o.x-r.width,y:d};break;default:y={x:o.x,y:o.y}}switch(dh(t)){case"start":y[i]-=p*(n&&l?-1:1);break;case"end":y[i]+=p*(n&&l?-1:1);break}return y}async function MVe(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:a,rects:i,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:p=!1,padding:y=0}=Wa(t,e),g=ute(y),x=s[p?d==="floating"?"reference":"floating":d],v=Lz(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:h,strategy:c})),M=d==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),b=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},C=Lz(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:M,offsetParent:w,strategy:c}):M);return{top:(v.top-C.top+g.top)/b.y,bottom:(C.bottom-v.bottom+g.bottom)/b.y,left:(v.left-C.left+g.left)/b.x,right:(C.right-v.right+g.right)/b.x}}const bVe=50,_Ve=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:i}=n,s=i.detectOverflow?i:{...i,detectOverflow:MVe},c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:h,y:d}=uG(l,o,c),p=o,y=0;const g={};for(let k=0;k<a.length;k++){const x=a[k];if(!x)continue;const{name:v,fn:M}=x,{x:w,y:b,data:C,reset:_}=await M({x:h,y:d,initialPlacement:o,placement:p,strategy:r,middlewareData:g,rects:l,platform:s,elements:{reference:e,floating:t}});h=w??h,d=b??d,g[v]={...g[v],...C},_&&y<bVe&&(y++,typeof _=="object"&&(_.placement&&(p=_.placement),_.rects&&(l=_.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):_.rects),{x:h,y:d}=uG(l,p,c)),k=-1)}return{x:h,y:d,placement:p,strategy:r,middlewareData:g}},CVe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:a,platform:i,elements:s,middlewareData:c}=t,{element:l,padding:h=0}=Wa(e,t)||{};if(l==null)return{};const d=ute(h),p={x:n,y:o},y=Aq(r),g=Iq(y),k=await i.getDimensions(l),x=y==="y",v=x?"top":"left",M=x?"bottom":"right",w=x?"clientHeight":"clientWidth",b=a.reference[g]+a.reference[y]-p[y]-a.floating[g],C=p[y]-a.reference[y],_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let S=_?_[w]:0;(!S||!await(i.isElement==null?void 0:i.isElement(_)))&&(S=s.floating[w]||a.floating[g]);const L=b/2-C/2,A=S/2-k[g]/2-1,I=ns(d[v],A),R=ns(d[M],A),j=I,V=S-k[g]-R,$=S/2-k[g]/2+L,T=SO(j,$,V),D=!c.arrow&&dh(r)!=null&&$!==T&&a.reference[g]/2-($<j?I:R)-k[g]/2<0,F=D?$<j?$-j:$-V:0;return{[y]:p[y]+F,data:{[y]:T,centerOffset:$-T-F,...D&&{alignmentOffset:F}},reset:D}}}),SVe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:a,rects:i,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:k=!0,...x}=Wa(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const v=Ga(r),M=Kr(s),w=Ga(s)===s,b=await(c.isRTL==null?void 0:c.isRTL(l.floating)),C=p||(w||!k?[Sz(s)]:mVe(s)),_=g!=="none";!p&&_&&C.push(...xVe(s,k,g,b));const S=[s,...C],L=await c.detectOverflow(t,x),A=[];let I=((o=a.flip)==null?void 0:o.overflows)||[];if(h&&A.push(L[v]),d){const $=yVe(r,i,b);A.push(L[$[0]],L[$[1]])}if(I=[...I,{placement:r,overflows:A}],!A.every($=>$<=0)){var R,j;const $=(((R=a.flip)==null?void 0:R.index)||0)+1,T=S[$];if(T&&(!(d==="alignment"?M!==Kr(T):!1)||I.every(z=>Kr(z.placement)===M?z.overflows[0]>0:!0)))return{data:{index:$,overflows:I},reset:{placement:T}};let D=(j=I.filter(F=>F.overflows[0]<=0).sort((F,z)=>F.overflows[1]-z.overflows[1])[0])==null?void 0:j.placement;if(!D)switch(y){case"bestFit":{var V;const F=(V=I.filter(z=>{if(_){const E=Kr(z.placement);return E===M||E==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(E=>E>0).reduce((E,N)=>E+N,0)]).sort((z,E)=>z[1]-E[1])[0])==null?void 0:V[0];F&&(D=F);break}case"initialPlacement":D=s;break}if(r!==D)return{reset:{placement:D}}}return{}}}};function hG(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fG(e){return fVe.some(t=>e[t]>=0)}const LVe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...a}=Wa(e,t);switch(r){case"referenceHidden":{const i=await o.detectOverflow(t,{...a,elementContext:"reference"}),s=hG(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:fG(s)}}}case"escaped":{const i=await o.detectOverflow(t,{...a,altBoundary:!0}),s=hG(i,n.floating);return{data:{escapedOffsets:s,escaped:fG(s)}}}default:return{}}}}},hte=new Set(["left","top"]);async function NVe(e,t){const{placement:n,platform:o,elements:r}=e,a=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=Ga(n),s=dh(n),c=Kr(n)==="y",l=hte.has(i)?-1:1,h=a&&c?-1:1,d=Wa(t,e);let{mainAxis:p,crossAxis:y,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(y=s==="end"?g*-1:g),c?{x:y*h,y:p*l}:{x:p*l,y:y*h}}const IVe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:a,placement:i,middlewareData:s}=t,c=await NVe(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:r+c.x,y:a+c.y,data:{...c,placement:i}}}}},AVe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:a}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:v=>{let{x:M,y:w}=v;return{x:M,y:w}}},...l}=Wa(e,t),h={x:n,y:o},d=await a.detectOverflow(t,l),p=Kr(Ga(r)),y=Nq(p);let g=h[y],k=h[p];if(i){const v=y==="y"?"top":"left",M=y==="y"?"bottom":"right",w=g+d[v],b=g-d[M];g=SO(w,g,b)}if(s){const v=p==="y"?"top":"left",M=p==="y"?"bottom":"right",w=k+d[v],b=k-d[M];k=SO(w,k,b)}const x=c.fn({...t,[y]:g,[p]:k});return{...x,data:{x:x.x-n,y:x.y-o,enabled:{[y]:i,[p]:s}}}}}},EVe=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Wa(e,t),h={x:n,y:o},d=Kr(r),p=Nq(d);let y=h[p],g=h[d];const k=Wa(s,t),x=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(c){const w=p==="y"?"height":"width",b=a.reference[p]-a.floating[w]+x.mainAxis,C=a.reference[p]+a.reference[w]-x.mainAxis;y<b?y=b:y>C&&(y=C)}if(l){var v,M;const w=p==="y"?"width":"height",b=hte.has(Ga(r)),C=a.reference[d]-a.floating[w]+(b&&((v=i.offset)==null?void 0:v[d])||0)+(b?0:x.crossAxis),_=a.reference[d]+a.reference[w]+(b?0:((M=i.offset)==null?void 0:M[d])||0)-(b?x.crossAxis:0);g<C?g=C:g>_&&(g=_)}return{[p]:y,[d]:g}}}},jVe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:a,platform:i,elements:s}=t,{apply:c=()=>{},...l}=Wa(e,t),h=await i.detectOverflow(t,l),d=Ga(r),p=dh(r),y=Kr(r)==="y",{width:g,height:k}=a.floating;let x,v;d==="top"||d==="bottom"?(x=d,v=p===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,x=p==="end"?"top":"bottom");const M=k-h.top-h.bottom,w=g-h.left-h.right,b=ns(k-h[x],M),C=ns(g-h[v],w),_=!t.middlewareData.shift;let S=b,L=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=w),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(S=M),_&&!p){const I=ho(h.left,0),R=ho(h.right,0),j=ho(h.top,0),V=ho(h.bottom,0);y?L=g-2*(I!==0||R!==0?I+R:ho(h.left,h.right)):S=k-2*(j!==0||V!==0?j+V:ho(h.top,h.bottom))}await c({...t,availableWidth:L,availableHeight:S});const A=await i.getDimensions(s.floating);return g!==A.width||k!==A.height?{reset:{rects:!0}}:{}}}};function IR(){return typeof window<"u"}function uh(e){return fte(e)?(e.nodeName||"").toLowerCase():"#document"}function ko(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ia(e){var t;return(t=(fte(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fte(e){return IR()?e instanceof Node||e instanceof ko(e).Node:!1}function dr(e){return IR()?e instanceof Element||e instanceof ko(e).Element:!1}function Za(e){return IR()?e instanceof HTMLElement||e instanceof ko(e).HTMLElement:!1}function pG(e){return!IR()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ko(e).ShadowRoot}function Wf(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ur(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function $Ve(e){return/^(table|td|th)$/.test(uh(e))}function AR(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const PVe=/transform|translate|scale|rotate|perspective|filter/,zVe=/paint|layout|strict|content/,Ls=e=>!!e&&e!=="none";let hD;function Eq(e){const t=dr(e)?ur(e):e;return Ls(t.transform)||Ls(t.translate)||Ls(t.scale)||Ls(t.rotate)||Ls(t.perspective)||!jq()&&(Ls(t.backdropFilter)||Ls(t.filter))||PVe.test(t.willChange||"")||zVe.test(t.contain||"")}function RVe(e){let t=os(e);for(;Za(t)&&!eh(t);){if(Eq(t))return t;if(AR(t))return null;t=os(t)}return null}function jq(){return hD==null&&(hD=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),hD}function eh(e){return/^(html|body|#document)$/.test(uh(e))}function ur(e){return ko(e).getComputedStyle(e)}function ER(e){return dr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function os(e){if(uh(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pG(e)&&e.host||ia(e);return pG(t)?t.host:t}function pte(e){const t=os(e);return eh(t)?e.ownerDocument?e.ownerDocument.body:e.body:Za(t)&&Wf(t)?t:pte(t)}function _f(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=pte(e),a=r===((o=e.ownerDocument)==null?void 0:o.body),i=ko(r);if(a){const s=NO(i);return t.concat(i,i.visualViewport||[],Wf(r)?r:[],s&&n?_f(s):[])}else return t.concat(r,_f(r,[],n))}function NO(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yte(e){const t=ur(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Za(e),a=r?e.offsetWidth:n,i=r?e.offsetHeight:o,s=Cz(n)!==a||Cz(o)!==i;return s&&(n=a,o=i),{width:n,height:o,$:s}}function $q(e){return dr(e)?e:e.contextElement}function L0(e){const t=$q(e);if(!Za(t))return ea(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:a}=yte(t);let i=(a?Cz(n.width):n.width)/o,s=(a?Cz(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const TVe=ea(0);function mte(e){const t=ko(e);return!jq()||!t.visualViewport?TVe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function DVe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ko(e)?!1:t}function tu(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=$q(e);let i=ea(1);t&&(o?dr(o)&&(i=L0(o)):i=L0(e));const s=DVe(a,n,o)?mte(a):ea(0);let c=(r.left+s.x)/i.x,l=(r.top+s.y)/i.y,h=r.width/i.x,d=r.height/i.y;if(a){const p=ko(a),y=o&&dr(o)?ko(o):o;let g=p,k=NO(g);for(;k&&o&&y!==g;){const x=L0(k),v=k.getBoundingClientRect(),M=ur(k),w=v.left+(k.clientLeft+parseFloat(M.paddingLeft))*x.x,b=v.top+(k.clientTop+parseFloat(M.paddingTop))*x.y;c*=x.x,l*=x.y,h*=x.x,d*=x.y,c+=w,l+=b,g=ko(k),k=NO(g)}}return Lz({width:h,height:d,x:c,y:l})}function jR(e,t){const n=ER(e).scrollLeft;return t?t.left+n:tu(ia(e)).left+n}function gte(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-jR(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function HVe(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const a=r==="fixed",i=ia(o),s=t?AR(t.floating):!1;if(o===i||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=ea(1);const h=ea(0),d=Za(o);if((d||!d&&!a)&&((uh(o)!=="body"||Wf(i))&&(c=ER(o)),d)){const y=tu(o);l=L0(o),h.x=y.x+o.clientLeft,h.y=y.y+o.clientTop}const p=i&&!d&&!a?gte(i,c):ea(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+h.x+p.x,y:n.y*l.y-c.scrollTop*l.y+h.y+p.y}}function OVe(e){return Array.from(e.getClientRects())}function FVe(e){const t=ia(e),n=ER(e),o=e.ownerDocument.body,r=ho(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=ho(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+jR(e);const s=-n.scrollTop;return ur(o).direction==="rtl"&&(i+=ho(t.clientWidth,o.clientWidth)-r),{width:r,height:a,x:i,y:s}}const yG=25;function qVe(e,t){const n=ko(e),o=ia(e),r=n.visualViewport;let a=o.clientWidth,i=o.clientHeight,s=0,c=0;if(r){a=r.width,i=r.height;const h=jq();(!h||h&&t==="fixed")&&(s=r.offsetLeft,c=r.offsetTop)}const l=jR(o);if(l<=0){const h=o.ownerDocument,d=h.body,p=getComputedStyle(d),y=h.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(o.clientWidth-d.clientWidth-y);g<=yG&&(a-=g)}else l<=yG&&(a+=l);return{width:a,height:i,x:s,y:c}}function VVe(e,t){const n=tu(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,a=Za(e)?L0(e):ea(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,c=r*a.x,l=o*a.y;return{width:i,height:s,x:c,y:l}}function mG(e,t,n){let o;if(t==="viewport")o=qVe(e,n);else if(t==="document")o=FVe(ia(e));else if(dr(t))o=VVe(t,n);else{const r=mte(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Lz(o)}function kte(e,t){const n=os(e);return n===t||!dr(n)||eh(n)?!1:ur(n).position==="fixed"||kte(n,t)}function BVe(e,t){const n=t.get(e);if(n)return n;let o=_f(e,[],!1).filter(s=>dr(s)&&uh(s)!=="body"),r=null;const a=ur(e).position==="fixed";let i=a?os(e):e;for(;dr(i)&&!eh(i);){const s=ur(i),c=Eq(i);!c&&s.position==="fixed"&&(r=null),(a?!c&&!r:!c&&s.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||Wf(i)&&!c&&kte(e,i))?o=o.filter(h=>h!==i):r=s,i=os(i)}return t.set(e,o),o}function UVe(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?AR(t)?[]:BVe(t,this._c):[].concat(n),o],s=mG(t,i[0],r);let c=s.top,l=s.right,h=s.bottom,d=s.left;for(let p=1;p<i.length;p++){const y=mG(t,i[p],r);c=ho(y.top,c),l=ns(y.right,l),h=ns(y.bottom,h),d=ho(y.left,d)}return{width:l-d,height:h-c,x:d,y:c}}function WVe(e){const{width:t,height:n}=yte(e);return{width:t,height:n}}function GVe(e,t,n){const o=Za(t),r=ia(t),a=n==="fixed",i=tu(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const c=ea(0);function l(){c.x=jR(r)}if(o||!o&&!a)if((uh(t)!=="body"||Wf(r))&&(s=ER(t)),o){const y=tu(t,!0,a,t);c.x=y.x+t.clientLeft,c.y=y.y+t.clientTop}else r&&l();a&&!o&&r&&l();const h=r&&!o&&!a?gte(r,s):ea(0),d=i.left+s.scrollLeft-c.x-h.x,p=i.top+s.scrollTop-c.y-h.y;return{x:d,y:p,width:i.width,height:i.height}}function fD(e){return ur(e).position==="static"}function gG(e,t){if(!Za(e)||ur(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ia(e)===n&&(n=n.ownerDocument.body),n}function vte(e,t){const n=ko(e);if(AR(e))return n;if(!Za(e)){let r=os(e);for(;r&&!eh(r);){if(dr(r)&&!fD(r))return r;r=os(r)}return n}let o=gG(e,t);for(;o&&$Ve(o)&&fD(o);)o=gG(o,t);return o&&eh(o)&&fD(o)&&!Eq(o)?n:o||RVe(e)||n}const KVe=async function(e){const t=this.getOffsetParent||vte,n=this.getDimensions,o=await n(e.floating);return{reference:GVe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function XVe(e){return ur(e).direction==="rtl"}const ZVe={convertOffsetParentRelativeRectToViewportRelativeRect:HVe,getDocumentElement:ia,getClippingRect:UVe,getOffsetParent:vte,getElementRects:KVe,getClientRects:OVe,getDimensions:WVe,getScale:L0,isElement:dr,isRTL:XVe};function xte(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function YVe(e,t){let n=null,o;const r=ia(e);function a(){var s;clearTimeout(o),(s=n)==null||s.disconnect(),n=null}function i(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();const l=e.getBoundingClientRect(),{left:h,top:d,width:p,height:y}=l;if(s||t(),!p||!y)return;const g=Kp(d),k=Kp(r.clientWidth-(h+p)),x=Kp(r.clientHeight-(d+y)),v=Kp(h),w={rootMargin:-g+"px "+-k+"px "+-x+"px "+-v+"px",threshold:ho(0,ns(1,c))||1};let b=!0;function C(_){const S=_[0].intersectionRatio;if(S!==c){if(!b)return i();S?i(!1,S):o=setTimeout(()=>{i(!1,1e-7)},1e3)}S===1&&!xte(l,e.getBoundingClientRect())&&i(),b=!1}try{n=new IntersectionObserver(C,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(e)}return i(!0),a}function QVe(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,l=$q(e),h=r||a?[...l?_f(l):[],...t?_f(t):[]]:[];h.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const d=l&&s?YVe(l,n):null;let p=-1,y=null;i&&(y=new ResizeObserver(v=>{let[M]=v;M&&M.target===l&&y&&t&&(y.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=y)==null||w.observe(t)})),n()}),l&&!c&&y.observe(l),t&&y.observe(t));let g,k=c?tu(e):null;c&&x();function x(){const v=tu(e);k&&!xte(k,v)&&n(),k=v,g=requestAnimationFrame(x)}return n(),()=>{var v;h.forEach(M=>{r&&M.removeEventListener("scroll",n),a&&M.removeEventListener("resize",n)}),d==null||d(),(v=y)==null||v.disconnect(),y=null,c&&cancelAnimationFrame(g)}}const JVe=IVe,eBe=AVe,tBe=SVe,nBe=jVe,oBe=LVe,kG=CVe,rBe=EVe,aBe=(e,t,n)=>{const o=new Map,r={platform:ZVe,...n},a={...r.platform,_c:o};return _Ve(e,t,{...r,platform:a})};var iBe=typeof document<"u",sBe=function(){},SP=iBe?m.useLayoutEffect:sBe;function Nz(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!Nz(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const a=r[o];if(!(a==="_owner"&&e.$$typeof)&&!Nz(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function wte(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vG(e,t){const n=wte(e);return Math.round(t*n)/n}function pD(e){const t=m.useRef(e);return SP(()=>{t.current=e}),t}function cBe(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[h,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,y]=m.useState(o);Nz(p,o)||y(o);const[g,k]=m.useState(null),[x,v]=m.useState(null),M=m.useCallback(z=>{z!==_.current&&(_.current=z,k(z))},[]),w=m.useCallback(z=>{z!==S.current&&(S.current=z,v(z))},[]),b=a||g,C=i||x,_=m.useRef(null),S=m.useRef(null),L=m.useRef(h),A=c!=null,I=pD(c),R=pD(r),j=pD(l),V=m.useCallback(()=>{if(!_.current||!S.current)return;const z={placement:t,strategy:n,middleware:p};R.current&&(z.platform=R.current),aBe(_.current,S.current,z).then(E=>{const N={...E,isPositioned:j.current!==!1};$.current&&!Nz(L.current,N)&&(L.current=N,su.flushSync(()=>{d(N)}))})},[p,t,n,R,j]);SP(()=>{l===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,d(z=>({...z,isPositioned:!1})))},[l]);const $=m.useRef(!1);SP(()=>($.current=!0,()=>{$.current=!1}),[]),SP(()=>{if(b&&(_.current=b),C&&(S.current=C),b&&C){if(I.current)return I.current(b,C,V);V()}},[b,C,V,I,A]);const T=m.useMemo(()=>({reference:_,floating:S,setReference:M,setFloating:w}),[M,w]),D=m.useMemo(()=>({reference:b,floating:C}),[b,C]),F=m.useMemo(()=>{const z={position:n,left:0,top:0};if(!D.floating)return z;const E=vG(D.floating,h.x),N=vG(D.floating,h.y);return s?{...z,transform:"translate("+E+"px, "+N+"px)",...wte(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:E,top:N}},[n,s,D.floating,h.x,h.y]);return m.useMemo(()=>({...h,update:V,refs:T,elements:D,floatingStyles:F}),[h,V,T,D,F])}const lBe=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?kG({element:o.current,padding:r}).fn(n):{}:o?kG({element:o,padding:r}).fn(n):{}}}},dBe=(e,t)=>{const n=JVe(e);return{name:n.name,fn:n.fn,options:[e,t]}},uBe=(e,t)=>{const n=eBe(e);return{name:n.name,fn:n.fn,options:[e,t]}},hBe=(e,t)=>({fn:rBe(e).fn,options:[e,t]}),fBe=(e,t)=>{const n=tBe(e);return{name:n.name,fn:n.fn,options:[e,t]}},pBe=(e,t)=>{const n=nBe(e);return{name:n.name,fn:n.fn,options:[e,t]}},yBe=(e,t)=>{const n=oBe(e);return{name:n.name,fn:n.fn,options:[e,t]}},mBe=(e,t)=>{const n=lBe(e);return{name:n.name,fn:n.fn,options:[e,t]}};var gBe="Arrow",Mte=m.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...a}=e;return f.jsx(We.svg,{...a,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});Mte.displayName=gBe;var kBe=Mte,Pq="Popper",[bte,hh]=yr(Pq),[vBe,_te]=bte(Pq),Cte=e=>{const{__scopePopper:t,children:n}=e,[o,r]=m.useState(null);return f.jsx(vBe,{scope:t,anchor:o,onAnchorChange:r,children:n})};Cte.displayName=Pq;var Ste="PopperAnchor",Lte=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,a=_te(Ste,n),i=m.useRef(null),s=xt(t,i),c=m.useRef(null);return m.useEffect(()=>{const l=c.current;c.current=(o==null?void 0:o.current)||i.current,l!==c.current&&a.onAnchorChange(c.current)}),o?null:f.jsx(We.div,{...r,ref:s})});Lte.displayName=Ste;var zq="PopperContent",[xBe,wBe]=bte(zq),Nte=m.forwardRef((e,t)=>{var ie,re,ae,se,ve,ke;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:h=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:y="optimized",onPlaced:g,...k}=e,x=_te(zq,n),[v,M]=m.useState(null),w=xt(t,ge=>M(ge)),[b,C]=m.useState(null),_=Oee(b),S=(_==null?void 0:_.width)??0,L=(_==null?void 0:_.height)??0,A=o+(a!=="center"?"-"+a:""),I=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},R=Array.isArray(l)?l:[l],j=R.length>0,V={padding:I,boundary:R.filter(bBe),altBoundary:j},{refs:$,floatingStyles:T,placement:D,isPositioned:F,middlewareData:z}=cBe({strategy:"fixed",placement:A,whileElementsMounted:(...ge)=>QVe(...ge,{animationFrame:y==="always"}),elements:{reference:x.anchor},middleware:[dBe({mainAxis:r+L,alignmentAxis:i}),c&&uBe({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?hBe():void 0,...V}),c&&fBe({...V}),pBe({...V,apply:({elements:ge,rects:Pe,availableWidth:Be,availableHeight:De})=>{const{width:pe,height:me}=Pe.reference,Ae=ge.floating.style;Ae.setProperty("--radix-popper-available-width",`${Be}px`),Ae.setProperty("--radix-popper-available-height",`${De}px`),Ae.setProperty("--radix-popper-anchor-width",`${pe}px`),Ae.setProperty("--radix-popper-anchor-height",`${me}px`)}}),b&&mBe({element:b,padding:s}),_Be({arrowWidth:S,arrowHeight:L}),p&&yBe({strategy:"referenceHidden",...V})]}),[E,N]=Ete(D),W=ra(g);ts(()=>{F&&(W==null||W())},[F,W]);const O=(ie=z.arrow)==null?void 0:ie.x,P=(re=z.arrow)==null?void 0:re.y,Y=((ae=z.arrow)==null?void 0:ae.centerOffset)!==0,[Z,te]=m.useState();return ts(()=>{v&&te(window.getComputedStyle(v).zIndex)},[v]),f.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:F?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[(se=z.transformOrigin)==null?void 0:se.x,(ve=z.transformOrigin)==null?void 0:ve.y].join(" "),...((ke=z.hide)==null?void 0:ke.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(xBe,{scope:n,placedSide:E,onArrowChange:C,arrowX:O,arrowY:P,shouldHideArrow:Y,children:f.jsx(We.div,{"data-side":E,"data-align":N,...k,ref:w,style:{...k.style,animation:F?void 0:"none"}})})})});Nte.displayName=zq;var Ite="PopperArrow",MBe={top:"bottom",right:"left",bottom:"top",left:"right"},Ate=m.forwardRef(function(t,n){const{__scopePopper:o,...r}=t,a=wBe(Ite,o),i=MBe[a.placedSide];return f.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:f.jsx(kBe,{...r,ref:n,style:{...r.style,display:"block"}})})});Ate.displayName=Ite;function bBe(e){return e!==null}var _Be=e=>({name:"transformOrigin",options:e,fn(t){var x,v,M;const{placement:n,rects:o,middlewareData:r}=t,i=((x=r.arrow)==null?void 0:x.centerOffset)!==0,s=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,h]=Ete(n),d={start:"0%",center:"50%",end:"100%"}[h],p=(((v=r.arrow)==null?void 0:v.x)??0)+s/2,y=(((M=r.arrow)==null?void 0:M.y)??0)+c/2;let g="",k="";return l==="bottom"?(g=i?d:`${p}px`,k=`${-c}px`):l==="top"?(g=i?d:`${p}px`,k=`${o.floating.height+c}px`):l==="right"?(g=`${-c}px`,k=i?d:`${y}px`):l==="left"&&(g=`${o.floating.width+c}px`,k=i?d:`${y}px`),{data:{x:g,y:k}}}});function Ete(e){const[t,n="center"]=e.split("-");return[t,n]}var Rq=Cte,$R=Lte,Tq=Nte,Dq=Ate,CBe="Portal",Gf=m.forwardRef((e,t)=>{var s;const{container:n,...o}=e,[r,a]=m.useState(!1);ts(()=>a(!0),[]);const i=n||r&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return i?Ale.createPortal(f.jsx(We.div,{...o,ref:t}),i):null});Gf.displayName=CBe;function SBe(e,t){return m.useReducer((n,o)=>t[n][o]??n,e)}var _o=e=>{const{present:t,children:n}=e,o=LBe(t),r=typeof n=="function"?n({present:o.isPresent}):m.Children.only(n),a=xt(o.ref,NBe(r));return typeof n=="function"||o.isPresent?m.cloneElement(r,{ref:a}):null};_o.displayName="Presence";function LBe(e){const[t,n]=m.useState(),o=m.useRef(null),r=m.useRef(e),a=m.useRef("none"),i=e?"mounted":"unmounted",[s,c]=SBe(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const l=Xp(o.current);a.current=s==="mounted"?l:"none"},[s]),ts(()=>{const l=o.current,h=r.current;if(h!==e){const p=a.current,y=Xp(l);e?c("MOUNT"):y==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(h&&p!==y?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),ts(()=>{if(t){let l;const h=t.ownerDocument.defaultView??window,d=y=>{const k=Xp(o.current).includes(CSS.escape(y.animationName));if(y.target===t&&k&&(c("ANIMATION_END"),!r.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",l=h.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},p=y=>{y.target===t&&(a.current=Xp(o.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{h.clearTimeout(l),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:m.useCallback(l=>{o.current=l?getComputedStyle(l):null,n(l)},[])}}function Xp(e){return(e==null?void 0:e.animationName)||"none"}function NBe(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var IBe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Pu=new WeakMap,Zp=new WeakMap,Yp={},yD=0,jte=function(e){return e&&(e.host||jte(e.parentNode))},ABe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=jte(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},EBe=function(e,t,n,o){var r=ABe(t,Array.isArray(e)?e:[e]);Yp[n]||(Yp[n]=new WeakMap);var a=Yp[n],i=[],s=new Set,c=new Set(r),l=function(d){!d||s.has(d)||(s.add(d),l(d.parentNode))};r.forEach(l);var h=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(p){if(s.has(p))h(p);else try{var y=p.getAttribute(o),g=y!==null&&y!=="false",k=(Pu.get(p)||0)+1,x=(a.get(p)||0)+1;Pu.set(p,k),a.set(p,x),i.push(p),k===1&&g&&Zp.set(p,!0),x===1&&p.setAttribute(n,"true"),g||p.setAttribute(o,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return h(t),s.clear(),yD++,function(){i.forEach(function(d){var p=Pu.get(d)-1,y=a.get(d)-1;Pu.set(d,p),a.set(d,y),p||(Zp.has(d)||d.removeAttribute(o),Zp.delete(d)),y||d.removeAttribute(n)}),yD--,yD||(Pu=new WeakMap,Pu=new WeakMap,Zp=new WeakMap,Yp={})}},Hq=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=IBe(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),EBe(o,r,n,"aria-hidden")):function(){return null}},Wr=function(){return Wr=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Wr.apply(this,arguments)};function $te(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function jBe(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,a;o<r;o++)(a||!(o in t))&&(a||(a=Array.prototype.slice.call(t,0,o)),a[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))}var LP="right-scroll-bar-position",NP="width-before-scroll-bar",$Be="with-scroll-bars-hidden",PBe="--removed-body-scroll-bar-size";function mD(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function zBe(e,t){var n=m.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var RBe=typeof window<"u"?m.useLayoutEffect:m.useEffect,xG=new WeakMap;function TBe(e,t){var n=zBe(null,function(o){return e.forEach(function(r){return mD(r,o)})});return RBe(function(){var o=xG.get(n);if(o){var r=new Set(o),a=new Set(e),i=n.current;r.forEach(function(s){a.has(s)||mD(s,null)}),a.forEach(function(s){r.has(s)||mD(s,i)})}xG.set(n,e)},[e]),n}function DBe(e){return e}function HBe(e,t){t===void 0&&(t=DBe);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,o);return n.push(i),function(){n=n.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(o=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(s){return a(s)},filter:function(){return n}}},assignMedium:function(a){o=!0;var i=[];if(n.length){var s=n;n=[],s.forEach(a),i=n}var c=function(){var h=i;i=[],h.forEach(a)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(h){i.push(h),l()},filter:function(h){return i=i.filter(h),n}}}};return r}function OBe(e){e===void 0&&(e={});var t=HBe(null);return t.options=Wr({async:!0,ssr:!1},e),t}var Pte=function(e){var t=e.sideCar,n=$te(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return m.createElement(o,Wr({},n))};Pte.isSideCarExport=!0;function FBe(e,t){return e.useMedium(t),Pte}var zte=OBe(),gD=function(){},PR=m.forwardRef(function(e,t){var n=m.useRef(null),o=m.useState({onScrollCapture:gD,onWheelCapture:gD,onTouchMoveCapture:gD}),r=o[0],a=o[1],i=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,h=e.enabled,d=e.shards,p=e.sideCar,y=e.noRelative,g=e.noIsolation,k=e.inert,x=e.allowPinchZoom,v=e.as,M=v===void 0?"div":v,w=e.gapMode,b=$te(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,_=TBe([n,t]),S=Wr(Wr({},b),r);return m.createElement(m.Fragment,null,h&&m.createElement(C,{sideCar:zte,removeScrollBar:l,shards:d,noRelative:y,noIsolation:g,inert:k,setCallbacks:a,allowPinchZoom:!!x,lockRef:n,gapMode:w}),i?m.cloneElement(m.Children.only(s),Wr(Wr({},S),{ref:_})):m.createElement(M,Wr({},S,{className:c,ref:_}),s))});PR.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};PR.classNames={fullWidth:NP,zeroRight:LP};var qBe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function VBe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=qBe();return t&&e.setAttribute("nonce",t),e}function BBe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function UBe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var WBe=function(){var e=0,t=null;return{add:function(n){e==0&&(t=VBe())&&(BBe(t,n),UBe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},GBe=function(){var e=WBe();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Rte=function(){var e=GBe(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},KBe={left:0,top:0,right:0,gap:0},kD=function(e){return parseInt(e||"",10)||0},XBe=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[kD(n),kD(o),kD(r)]},ZBe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return KBe;var t=XBe(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},YBe=Rte(),N0="data-scroll-locked",QBe=function(e,t,n,o){var r=e.left,a=e.top,i=e.right,s=e.gap;return n===void 0&&(n="margin"),`
8470
8470
  .`.concat($Be,` {
8471
8471
  overflow: hidden `).concat(o,`;
8472
8472
  padding-right: `).concat(s,"px ").concat(o,`;
@@ -8538,10 +8538,10 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
8538
8538
  `))+1))}const i="#".repeat(r),s=n.enter("headingAtx"),c=n.enter("phrasing");a.move(i+" ");let l=n.containerPhrasing(e,{before:"# ",after:`
8539
8539
  `,...a.current()});return/^[\t ]/.test(l)&&(l=If(l.charCodeAt(0))+l.slice(1)),l=l?i+" "+l:i,n.options.closeAtx&&(l+=" "+i),c(),s(),l}yae.peek=Gtt;function yae(e){return e.value||""}function Gtt(){return"<"}mae.peek=Ktt;function mae(e,t,n,o){const r=IV(n),a=r==='"'?"Quote":"Apostrophe",i=n.enter("image");let s=n.enter("label");const c=n.createTracker(o);let l=c.move("![");return l+=c.move(n.safe(e.alt,{before:l,after:"]",...c.current()})),l+=c.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),l+=c.move("<"),l+=c.move(n.safe(e.url,{before:l,after:">",...c.current()})),l+=c.move(">")):(s=n.enter("destinationRaw"),l+=c.move(n.safe(e.url,{before:l,after:e.title?" ":")",...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(" "+r),l+=c.move(n.safe(e.title,{before:l,after:r,...c.current()})),l+=c.move(r),s()),l+=c.move(")"),i(),l}function Ktt(){return"!"}gae.peek=Xtt;function gae(e,t,n,o){const r=e.referenceType,a=n.enter("imageReference");let i=n.enter("label");const s=n.createTracker(o);let c=s.move("![");const l=n.safe(e.alt,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),i();const h=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return i(),n.stack=h,a(),r==="full"||!l||l!==d?c+=s.move(d+"]"):r==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function Xtt(){return"!"}kae.peek=Ztt;function kae(e,t,n){let o=e.value||"",r="`",a=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(o);)r+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++a<n.unsafe.length;){const i=n.unsafe[a],s=n.compilePattern(i);let c;if(i.atBreak)for(;c=s.exec(o);){let l=c.index;o.charCodeAt(l)===10&&o.charCodeAt(l-1)===13&&l--,o=o.slice(0,l)+" "+o.slice(c.index+1)}}return r+o+r}function Ztt(){return"`"}function vae(e,t){const n=xV(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}xae.peek=Ytt;function xae(e,t,n,o){const r=IV(n),a=r==='"'?"Quote":"Apostrophe",i=n.createTracker(o);let s,c;if(vae(e,n)){const h=n.stack;n.stack=[],s=n.enter("autolink");let d=i.move("<");return d+=i.move(n.containerPhrasing(e,{before:d,after:">",...i.current()})),d+=i.move(">"),s(),n.stack=h,d}s=n.enter("link"),c=n.enter("label");let l=i.move("[");return l+=i.move(n.containerPhrasing(e,{before:l,after:"](",...i.current()})),l+=i.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),l+=i.move("<"),l+=i.move(n.safe(e.url,{before:l,after:">",...i.current()})),l+=i.move(">")):(c=n.enter("destinationRaw"),l+=i.move(n.safe(e.url,{before:l,after:e.title?" ":")",...i.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=i.move(" "+r),l+=i.move(n.safe(e.title,{before:l,after:r,...i.current()})),l+=i.move(r),c()),l+=i.move(")"),s(),l}function Ytt(e,t,n){return vae(e,n)?"<":"["}wae.peek=Qtt;function wae(e,t,n,o){const r=e.referenceType,a=n.enter("linkReference");let i=n.enter("label");const s=n.createTracker(o);let c=s.move("[");const l=n.containerPhrasing(e,{before:c,after:"]",...s.current()});c+=s.move(l+"]["),i();const h=n.stack;n.stack=[],i=n.enter("reference");const d=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return i(),n.stack=h,a(),r==="full"||!l||l!==d?c+=s.move(d+"]"):r==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function Qtt(){return"["}function AV(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Jtt(e){const t=AV(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function ent(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Mae(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function tnt(e,t,n,o){const r=n.enter("list"),a=n.bulletCurrent;let i=e.ordered?ent(n):AV(n);const s=e.ordered?i==="."?")":".":Jtt(n);let c=t&&n.bulletLastUsed?i===n.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((i==="*"||i==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),Mae(n)===i&&h){let d=-1;for(;++d<e.children.length;){const p=e.children[d];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(i=s),n.bulletCurrent=i;const l=n.containerFlow(e,o);return n.bulletLastUsed=i,n.bulletCurrent=a,r(),l}function nnt(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function ont(e,t,n,o){const r=nnt(n);let a=n.bulletCurrent||AV(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let i=a.length+1;(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4);const s=n.createTracker(o);s.move(a+" ".repeat(i-a.length)),s.shift(i);const c=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,s.current()),h);return c(),l;function h(d,p,y){return p?(y?"":" ".repeat(i))+d:(y?a:a+" ".repeat(i-a.length))+d}}function rnt(e,t,n,o){const r=n.enter("paragraph"),a=n.enter("phrasing"),i=n.containerPhrasing(e,o);return a(),r(),i}const ant=tT(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function int(e,t,n,o){return(e.children.some(function(i){return ant(i)})?n.containerPhrasing:n.containerFlow).call(n,e,o)}function snt(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}bae.peek=cnt;function bae(e,t,n,o){const r=snt(n),a=n.enter("strong"),i=n.createTracker(o),s=i.move(r+r);let c=i.move(n.containerPhrasing(e,{after:r,before:s,...i.current()}));const l=c.charCodeAt(0),h=Fz(o.before.charCodeAt(o.before.length-1),l,r);h.inside&&(c=If(l)+c.slice(1));const d=c.charCodeAt(c.length-1),p=Fz(o.after.charCodeAt(0),d,r);p.inside&&(c=c.slice(0,-1)+If(d));const y=i.move(r+r);return a(),n.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},s+c+y}function cnt(e,t,n){return n.options.strong||"*"}function lnt(e,t,n,o){return n.safe(e.value,o)}function dnt(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function unt(e,t,n){const o=(Mae(n)+(n.options.ruleSpaces?" ":"")).repeat(dnt(n));return n.options.ruleSpaces?o.slice(0,-1):o}const _ae={blockquote:Ptt,break:DK,code:Ott,definition:qtt,emphasis:pae,hardBreak:DK,heading:Wtt,html:yae,image:mae,imageReference:gae,inlineCode:kae,link:xae,linkReference:wae,list:tnt,listItem:ont,paragraph:rnt,root:int,strong:bae,text:lnt,thematicBreak:unt};function hnt(){return{enter:{table:fnt,tableData:HK,tableHeader:HK,tableRow:ynt},exit:{codeText:mnt,table:pnt,tableData:DD,tableHeader:DD,tableRow:DD}}}function fnt(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function pnt(e){this.exit(e),this.data.inTable=void 0}function ynt(e){this.enter({type:"tableRow",children:[]},e)}function DD(e){this.exit(e)}function HK(e){this.enter({type:"tableCell",children:[]},e)}function mnt(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,gnt));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function gnt(e,t){return t==="|"?t:e}function knt(e){const t=e||{},n=t.tableCellPadding,o=t.tablePipeAlign,r=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
8540
8540
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:i,tableCell:c,tableRow:s}};function i(y,g,k,x){return l(h(y,k,x),y.align)}function s(y,g,k,x){const v=d(y,k,x),M=l([v]);return M.slice(0,M.indexOf(`
8541
- `))}function c(y,g,k,x){const v=k.enter("tableCell"),M=k.enter("phrasing"),w=k.containerPhrasing(y,{...x,before:a,after:a});return M(),v(),w}function l(y,g){return jtt(y,{align:g,alignDelimiters:o,padding:n,stringLength:r})}function h(y,g,k){const x=y.children;let v=-1;const M=[],w=g.enter("table");for(;++v<x.length;)M[v]=d(x[v],g,k);return w(),M}function d(y,g,k){const x=y.children;let v=-1;const M=[],w=g.enter("tableRow");for(;++v<x.length;)M[v]=c(x[v],y,g,k);return w(),M}function p(y,g,k){let x=_ae.inlineCode(y,g,k);return k.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function vnt(){return{exit:{taskListCheckValueChecked:OK,taskListCheckValueUnchecked:OK,paragraph:wnt}}}function xnt(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Mnt}}}function OK(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function wnt(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const o=n.children[0];if(o&&o.type==="text"){const r=t.children;let a=-1,i;for(;++a<r.length;){const s=r[a];if(s.type==="paragraph"){i=s;break}}i===n&&(o.value=o.value.slice(1),o.value.length===0?n.children.shift():n.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,n.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function Mnt(e,t,n,o){const r=e.children[0],a=typeof e.checked=="boolean"&&r&&r.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",s=n.createTracker(o);a&&s.move(i);let c=_ae.listItem(e,t,n,{...o,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(h){return h+i}}function bnt(){return[ttt(),Mtt(),Stt(),hnt(),vnt()]}function _nt(e){return{extensions:[ntt(),btt(e),Ltt(),knt(e),xnt()]}}const Cnt={tokenize:Ent,partial:!0},Cae={tokenize:jnt,partial:!0},Sae={tokenize:$nt,partial:!0},Lae={tokenize:Pnt,partial:!0},Snt={tokenize:znt,partial:!0},Nae={name:"wwwAutolink",tokenize:Int,previous:Aae},Iae={name:"protocolAutolink",tokenize:Ant,previous:Eae},Ya={name:"emailAutolink",tokenize:Nnt,previous:jae},ya={};function Lnt(){return{text:ya}}let Ns=48;for(;Ns<123;)ya[Ns]=Ya,Ns++,Ns===58?Ns=65:Ns===91&&(Ns=97);ya[43]=Ya;ya[45]=Ya;ya[46]=Ya;ya[95]=Ya;ya[72]=[Ya,Iae];ya[104]=[Ya,Iae];ya[87]=[Ya,Nae];ya[119]=[Ya,Nae];function Nnt(e,t,n){const o=this;let r,a;return i;function i(d){return!ZO(d)||!jae.call(o,o.previous)||EV(o.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return ZO(d)?(e.consume(d),s):d===64?(e.consume(d),c):n(d)}function c(d){return d===46?e.check(Snt,h,l)(d):d===45||d===95||bn(d)?(a=!0,e.consume(d),c):h(d)}function l(d){return e.consume(d),r=!0,c}function h(d){return a&&r&&$n(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function Int(e,t,n){const o=this;return r;function r(i){return i!==87&&i!==119||!Aae.call(o,o.previous)||EV(o.events)?n(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Cnt,e.attempt(Cae,e.attempt(Sae,a),n),n)(i))}function a(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}}function Ant(e,t,n){const o=this;let r="",a=!1;return i;function i(d){return(d===72||d===104)&&Eae.call(o,o.previous)&&!EV(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if($n(d)&&r.length<5)return r+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const p=r.toLowerCase();if(p==="http"||p==="https")return e.consume(d),c}return n(d)}function c(d){return d===47?(e.consume(d),a?l:(a=!0,c)):n(d)}function l(d){return d===null||Dz(d)||vt(d)||ru(d)||QR(d)?n(d):e.attempt(Cae,e.attempt(Sae,h),n)(d)}function h(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function Ent(e,t,n){let o=0;return r;function r(i){return(i===87||i===119)&&o<3?(o++,e.consume(i),r):i===46&&o===3?(e.consume(i),a):n(i)}function a(i){return i===null?n(i):t(i)}}function jnt(e,t,n){let o,r,a;return i;function i(l){return l===46||l===95?e.check(Lae,c,s)(l):l===null||vt(l)||ru(l)||l!==45&&QR(l)?c(l):(a=!0,e.consume(l),i)}function s(l){return l===95?o=!0:(r=o,o=void 0),e.consume(l),i}function c(l){return r||o||!a?n(l):t(l)}}function $nt(e,t){let n=0,o=0;return r;function r(i){return i===40?(n++,e.consume(i),r):i===41&&o<n?a(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(Lae,t,a)(i):i===null||vt(i)||ru(i)?t(i):(e.consume(i),r)}function a(i){return i===41&&o++,e.consume(i),r}}function Pnt(e,t,n){return o;function o(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),o):s===38?(e.consume(s),a):s===93?(e.consume(s),r):s===60||s===null||vt(s)||ru(s)?t(s):n(s)}function r(s){return s===null||s===40||s===91||vt(s)||ru(s)?t(s):o(s)}function a(s){return $n(s)?i(s):n(s)}function i(s){return s===59?(e.consume(s),o):$n(s)?(e.consume(s),i):n(s)}}function znt(e,t,n){return o;function o(a){return e.consume(a),r}function r(a){return bn(a)?n(a):t(a)}}function Aae(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||vt(e)}function Eae(e){return!$n(e)}function jae(e){return!(e===47||ZO(e))}function ZO(e){return e===43||e===45||e===46||e===95||bn(e)}function EV(e){let t=e.length,n=!1;for(;t--;){const o=e[t][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){n=!0;break}if(o._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Rnt={tokenize:Bnt,partial:!0};function Tnt(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Fnt,continuation:{tokenize:qnt},exit:Vnt}},text:{91:{name:"gfmFootnoteCall",tokenize:Ont},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Dnt,resolveTo:Hnt}}}}function Dnt(e,t,n){const o=this;let r=o.events.length;const a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i;for(;r--;){const c=o.events[r][1];if(c.type==="labelImage"){i=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return s;function s(c){if(!i||!i._balanced)return n(c);const l=cr(o.sliceSerialize({start:i.end,end:o.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function Hnt(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",o,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(n,e.length-n+1,...s),e}function Ont(e,t,n){const o=this,r=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a=0,i;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),c}function c(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(d){if(a>999||d===93&&!i||d===null||d===91||vt(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return r.includes(cr(o.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return vt(d)||(i=!0),a++,e.consume(d),d===92?h:l}function h(d){return d===91||d===92||d===93?(e.consume(d),a++,l):l(d)}}function Fnt(e,t,n){const o=this,r=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a,i=0,s;return c;function c(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(g)}function h(g){if(i>999||g===93&&!s||g===null||g===91||vt(g))return n(g);if(g===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return a=cr(o.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return vt(g)||(s=!0),i++,e.consume(g),g===92?d:h}function d(g){return g===91||g===92||g===93?(e.consume(g),i++,h):h(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),r.includes(a)||r.push(a),at(e,y,"gfmFootnoteDefinitionWhitespace")):n(g)}function y(g){return t(g)}}function qnt(e,t,n){return e.check(np,t,e.attempt(Rnt,t,n))}function Vnt(e){e.exit("gfmFootnoteDefinition")}function Bnt(e,t,n){const o=this;return at(e,r,"gfmFootnoteDefinitionIndent",5);function r(a){const i=o.events[o.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?t(a):n(a)}}function Unt(e){let n=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:a,resolveAll:r};return n==null&&(n=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function r(i,s){let c=-1;for(;++c<i.length;)if(i[c][0]==="enter"&&i[c][1].type==="strikethroughSequenceTemporary"&&i[c][1]._close){let l=c;for(;l--;)if(i[l][0]==="exit"&&i[l][1].type==="strikethroughSequenceTemporary"&&i[l][1]._open&&i[c][1].end.offset-i[c][1].start.offset===i[l][1].end.offset-i[l][1].start.offset){i[c][1].type="strikethroughSequence",i[l][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},i[l][1].start),end:Object.assign({},i[c][1].end)},d={type:"strikethroughText",start:Object.assign({},i[l][1].end),end:Object.assign({},i[c][1].start)},p=[["enter",h,s],["enter",i[l][1],s],["exit",i[l][1],s],["enter",d,s]],y=s.parser.constructs.insideSpan.null;y&&vo(p,p.length,0,JR(y,i.slice(l+1,c),s)),vo(p,p.length,0,[["exit",d,s],["enter",i[c][1],s],["exit",i[c][1],s],["exit",h,s]]),vo(i,l-1,c-l+3,p),c=l+p.length-2;break}}for(c=-1;++c<i.length;)i[c][1].type==="strikethroughSequenceTemporary"&&(i[c][1].type="data");return i}function a(i,s,c){const l=this.previous,h=this.events;let d=0;return p;function p(g){return l===126&&h[h.length-1][1].type!=="characterEscape"?c(g):(i.enter("strikethroughSequenceTemporary"),y(g))}function y(g){const k=oh(l);if(g===126)return d>1?c(g):(i.consume(g),d++,y);if(d<2&&!n)return c(g);const x=i.exit("strikethroughSequenceTemporary"),v=oh(g);return x._open=!v||v===2&&!!k,x._close=!k||k===2&&!!v,s(g)}}}class Wnt{constructor(){this.map=[]}add(t,n,o){Gnt(this,t,n,o)}consume(t){if(this.map.sort(function(a,i){return a[0]-i[0]}),this.map.length===0)return;let n=this.map.length;const o=[];for(;n>0;)n-=1,o.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];o.push(t.slice()),t.length=0;let r=o.pop();for(;r;){for(const a of r)t.push(a);r=o.pop()}this.map.length=0}}function Gnt(e,t,n,o){let r=0;if(!(n===0&&o.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...o);return}r+=1}e.map.push([t,n,o])}}function Knt(e,t){let n=!1;const o=[];for(;t<e.length;){const r=e[t];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&o.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=o.length-1;o[a]=o[a]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return o}function Xnt(){return{flow:{null:{name:"table",tokenize:Znt,resolveAll:Ynt}}}}function Znt(e,t,n){const o=this;let r=0,a=0,i;return s;function s(I){let R=o.events.length-1;for(;R>-1;){const $=o.events[R][1].type;if($==="lineEnding"||$==="linePrefix")R--;else break}const j=R>-1?o.events[R][1].type:null,V=j==="tableHead"||j==="tableRow"?_:c;return V===_&&o.parser.lazy[o.now().line]?n(I):V(I)}function c(I){return e.enter("tableHead"),e.enter("tableRow"),l(I)}function l(I){return I===124||(i=!0,a+=1),h(I)}function h(I){return I===null?n(I):$e(I)?a>1?(a=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),y):n(I):Qe(I)?at(e,h,"whitespace")(I):(a+=1,i&&(i=!1,r+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),i=!0,h):(e.enter("data"),d(I)))}function d(I){return I===null||I===124||vt(I)?(e.exit("data"),h(I)):(e.consume(I),I===92?p:d)}function p(I){return I===92||I===124?(e.consume(I),d):d(I)}function y(I){return o.interrupt=!1,o.parser.lazy[o.now().line]?n(I):(e.enter("tableDelimiterRow"),i=!1,Qe(I)?at(e,g,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):g(I))}function g(I){return I===45||I===58?x(I):I===124?(i=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),k):C(I)}function k(I){return Qe(I)?at(e,x,"whitespace")(I):x(I)}function x(I){return I===58?(a+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),v):I===45?(a+=1,v(I)):I===null||$e(I)?b(I):C(I)}function v(I){return I===45?(e.enter("tableDelimiterFiller"),M(I)):C(I)}function M(I){return I===45?(e.consume(I),M):I===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(I))}function w(I){return Qe(I)?at(e,b,"whitespace")(I):b(I)}function b(I){return I===124?g(I):I===null||$e(I)?!i||r!==a?C(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(I)):C(I)}function C(I){return n(I)}function _(I){return e.enter("tableRow"),S(I)}function S(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),S):I===null||$e(I)?(e.exit("tableRow"),t(I)):Qe(I)?at(e,S,"whitespace")(I):(e.enter("data"),L(I))}function L(I){return I===null||I===124||vt(I)?(e.exit("data"),S(I)):(e.consume(I),I===92?A:L)}function A(I){return I===92||I===124?(e.consume(I),L):L(I)}}function Ynt(e,t){let n=-1,o=!0,r=0,a=[0,0,0,0],i=[0,0,0,0],s=!1,c=0,l,h,d;const p=new Wnt;for(;++n<e.length;){const y=e[n],g=y[1];y[0]==="enter"?g.type==="tableHead"?(s=!1,c!==0&&(FK(p,t,c,l,h),h=void 0,c=0),l={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",l,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(o=!0,d=void 0,a=[0,0,0,0],i=[0,n+1,0,0],s&&(s=!1,h={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",h,t]])),r=g.type==="tableDelimiterRow"?2:h?3:1):r&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(o=!1,i[2]===0&&(a[1]!==0&&(i[0]=i[1],d=uy(p,t,a,r,void 0,d),a=[0,0,0,0]),i[2]=n)):g.type==="tableCellDivider"&&(o?o=!1:(a[1]!==0&&(i[0]=i[1],d=uy(p,t,a,r,void 0,d)),a=i,i=[a[1],n,0,0])):g.type==="tableHead"?(s=!0,c=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(c=n,a[1]!==0?(i[0]=i[1],d=uy(p,t,a,r,n,d)):i[1]!==0&&(d=uy(p,t,i,r,n,d)),r=0):r&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(i[3]=n)}for(c!==0&&FK(p,t,c,l,h),p.consume(t.events),n=-1;++n<t.events.length;){const y=t.events[n];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=Knt(t.events,n))}return e}function uy(e,t,n,o,r,a){const i=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(a.end=Object.assign({},Uu(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const c=Uu(t.events,n[1]);if(a={type:i,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const l=Uu(t.events,n[2]),h=Uu(t.events,n[3]),d={type:s,start:Object.assign({},l),end:Object.assign({},h)};if(e.add(n[2],0,[["enter",d,t]]),o!==2){const p=t.events[n[2]],y=t.events[n[3]];if(p[1].end=Object.assign({},y[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,k=n[3]-n[2]-1;e.add(g,k,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return r!==void 0&&(a.end=Object.assign({},Uu(t.events,r)),e.add(r,0,[["exit",a,t]]),a=void 0),a}function FK(e,t,n,o,r){const a=[],i=Uu(t.events,n);r&&(r.end=Object.assign({},i),a.push(["exit",r,t])),o.end=Object.assign({},i),a.push(["exit",o,t]),e.add(n+1,0,a)}function Uu(e,t){const n=e[t],o=n[0]==="enter"?"start":"end";return n[1][o]}const Qnt={name:"tasklistCheck",tokenize:eot};function Jnt(){return{text:{91:Qnt}}}function eot(e,t,n){const o=this;return r;function r(c){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),a)}function a(c){return vt(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),i):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),i):n(c)}function i(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(c)}function s(c){return $e(c)?t(c):Qe(c)?e.check({tokenize:tot},t,n)(c):n(c)}}function tot(e,t,n){return at(e,o,"whitespace");function o(r){return r===null?n(r):t(r)}}function not(e){return qre([Lnt(),Tnt(),Unt(e),Xnt(),Jnt()])}const oot={};function rot(e){const t=this,n=e||oot,o=t.data(),r=o.micromarkExtensions||(o.micromarkExtensions=[]),a=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),i=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);r.push(not(n)),a.push(bnt()),i.push(_nt(n))}let hy=null,aot=0;function iot(){return hy||(hy=sh(()=>import("./mermaid.core-Iw0pYMV7.js").then(e=>e.ak),__vite__mapDeps([8,9,1])).then(e=>{const t=e;return t.default??t}),hy)}function qK(){var e;return typeof document>"u"?!1:document.documentElement.classList.contains("dark")||(e=document.body)!=null&&e.classList.contains("dark")?!0:!!document.querySelector(".dark")}function VK({code:e,className:t}){const n=m.useRef(null),o=m.useRef(`seeflow-mermaid-${++aot}`),[r,a]=m.useState(null),[i,s]=m.useState(()=>qK());return m.useEffect(()=>{if(typeof document>"u")return;const c=()=>s(qK()),l=new MutationObserver(c);return l.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.body&&l.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>l.disconnect()},[]),m.useEffect(()=>{let c=!1;return a(null),iot().then(async l=>{l.initialize({startOnLoad:!1,theme:i?"dark":"default",securityLevel:"strict",fontFamily:'"Inter", ui-sans-serif, system-ui, sans-serif'});const h=`${o.current}-${i?"d":"l"}`,d=await l.render(h,e);if(c)return;const p=n.current;p&&(p.innerHTML=d.svg)}).catch(l=>{c||a(l instanceof Error?l.message:String(l))}),()=>{c=!0}},[e,i]),r?f.jsx("pre",{"data-testid":"detail-panel-mermaid-fallback","data-mermaid-error":"true",title:r,className:ee("sf:mb-2 sf:overflow-x-auto sf:rounded sf:bg-muted/60 sf:px-2 sf:py-1 sf:font-mono sf:text-xs sf:text-foreground sf:last:mb-0",t),children:f.jsx("code",{children:e})}):f.jsx("div",{ref:n,"data-testid":"detail-panel-mermaid","data-mermaid-theme":i?"dark":"light",role:"img","aria-label":"Mermaid diagram",className:ee("sf:mb-2 sf:overflow-x-auto sf:rounded sf:bg-muted/30 sf:px-3 sf:py-2 sf:text-foreground sf:last:mb-0",t)})}function sot({flowId:e,node:t,connector:n,adapter:o,onNameChange:r,onDescriptionChange:a,onDetailChange:i,onIconChange:s,statusReport:c,open:l=!0,onClose:h}){const{studioBaseUrl:d}=tq(),p=(t==null?void 0:t.type)==="text",y=(t==null?void 0:t.type)==="ellipse"||(t==null?void 0:t.type)==="sticky",g=p?null:t,k=g&&"name"in g.data?g.data.name??"":"",x=(g==null?void 0:g.data.description)??"",v=(g==null?void 0:g.data.detail)??"",M=g!==null&&!y,w=g!==null&&(g.type==="rectangle"||g.type==="component"),b=w&&typeof s=="function",C=w&&g&&"icon"in g.data?g.data.icon??null:null,[_,S]=m.useState(()=>rOe()),L=R=>{R.preventDefault(),iOe(_,R.clientX,{onWidth:S,onCommit:aOe})};m.useEffect(()=>{const R=j=>{var $;if(j.key!=="Escape")return;const V=document.activeElement;($=V==null?void 0:V.getAttribute("data-testid"))!=null&&$.endsWith("-editor")||h()};return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[h]);const A={width:l?_:0,borderLeftWidth:l?"var(--detail-panel-border-left)":0,transition:"width 220ms ease-out, border-left-width 220ms ease-out"},I={width:_,boxShadow:"var(--detail-panel-shadow)"};return f.jsx("aside",{"aria-label":"Inspector","data-testid":"detail-panel","data-state":l?"open":"closed",style:A,className:"sf:relative sf:flex sf:h-full sf:flex-shrink-0 sf:flex-col sf:overflow-hidden sf:border-border",children:f.jsxs("div",{style:I,className:"sf:relative sf:flex sf:h-full sf:flex-shrink-0 sf:flex-col sf:overflow-y-auto sf:bg-card/94 sf:p-6 sf:backdrop-blur-[14px]",children:[f.jsx("div",{"aria-label":"Resize detail panel",onPointerDown:L,"data-testid":"detail-panel-resize-handle",className:"sf:absolute sf:inset-y-0 sf:left-0 sf:z-10 sf:hidden sf:w-1.5 sf:cursor-col-resize sf:bg-transparent sf:transition-colors sf:hover:bg-border sf:sm:block"}),f.jsxs("button",{type:"button",onClick:h,"aria-label":"Close inspector","data-testid":"detail-panel-close",className:"sf:absolute sf:right-4 sf:top-4 sf:z-10 sf:inline-flex sf:h-7 sf:w-7 sf:items-center sf:justify-center sf:rounded-sm sf:text-foreground/70 sf:opacity-70 sf:transition-opacity sf:hover:opacity-100 sf:focus:outline-hidden sf:focus:ring-2 sf:focus:ring-ring sf:focus:ring-offset-2",children:[f.jsx(v0,{className:"sf:h-4 sf:w-4"}),f.jsx("span",{className:"sf:sr-only",children:"Close"})]}),g?f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-4",children:[f.jsxs("div",{className:"sf:-mx-6 sf:-mt-6 sf:flex sf:flex-col sf:border-b sf:border-border/60 sf:bg-card/60 sf:px-6 sf:pb-2.5 sf:pt-3 sf:pr-12",children:[M?f.jsx("h2",{"data-testid":"detail-panel-title",className:"sf:text-lg sf:font-semibold sf:text-foreground",children:f.jsxs("div",{className:"sf:flex sf:items-center sf:gap-2",children:[b&&s?f.jsx(cot,{nodeId:g.id,icon:C,onChange:s}):w&&C?f.jsx("span",{"data-testid":"detail-panel-icon-readonly","aria-hidden":!0,className:"sf:inline-flex sf:h-7 sf:w-7 sf:shrink-0 sf:items-center sf:justify-center sf:text-foreground/90",children:f.jsx(Qi,{iconId:C,studioBaseUrl:d,className:"sf:h-4 sf:w-4"})}):null,f.jsx("div",{className:"sf:min-w-0 sf:flex-1",children:f.jsx(HD,{nodeId:g.id,value:k,placeholder:"Name",multiline:!1,ariaLabel:"Name",testIdBase:"detail-panel-name",onSave:r,textClassName:"sf:text-lg sf:font-semibold sf:tracking-tight sf:text-foreground/95"})})]})}):f.jsx("h2",{"data-testid":"detail-panel-title",className:"sf:sr-only",children:g.id}),f.jsxs("p",{className:"sf:sr-only",children:[g.id," · ",g.type]})]}),f.jsxs("div",{className:"sf:mt-0 sf:flex sf:flex-col sf:gap-3",children:[c?f.jsx(hot,{report:c}):null,f.jsx(HD,{nodeId:g.id,value:x,placeholder:"Short description shown on the node body",multiline:!0,ariaLabel:"Description",testIdBase:"detail-panel-description",onSave:a,textClassName:"sf:text-[13px] sf:leading-relaxed sf:text-muted-foreground sf:dark:text-zinc-400"}),f.jsx(HD,{nodeId:g.id,value:v,placeholder:"Long-form notes, context, anything…",multiline:!0,ariaLabel:"Detail",testIdBase:"detail-panel-detail",onSave:i,markdown:!0,textClassName:"sf:text-sm sf:leading-relaxed sf:text-foreground"}),g.type==="html"&&e?f.jsx(lot,{adapter:o,nodeId:g.id,htmlPath:"view.html"}):null]})]}):n?f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-4",children:[f.jsxs("div",{className:"sf:-mx-6 sf:-mt-6 sf:flex sf:flex-col sf:border-b sf:border-border/60 sf:bg-card/60 sf:px-6 sf:pb-2.5 sf:pt-3 sf:pr-12",children:[f.jsx("h2",{"data-testid":"detail-panel-title",className:"sf:text-lg sf:font-semibold sf:tracking-tight sf:text-foreground/95",children:n.label??"Connector"}),f.jsx("p",{className:"sf:sr-only",children:n.id})]}),f.jsx("div",{className:"sf:mt-0 sf:flex sf:flex-col sf:gap-3",children:f.jsx(pot,{connector:n})})]}):f.jsx("div",{"data-testid":"detail-panel-empty",className:"sf:text-muted-foreground sf:text-sm",children:"Select a node to inspect."})]})})}function HD({nodeId:e,value:t,placeholder:n,multiline:o,ariaLabel:r,testIdBase:a,onSave:i,textClassName:s,markdown:c=!1}){const[l,h]=m.useState(!1),d=m.useRef(null),p=m.useRef(!1);m.useEffect(()=>{if(!l)return;const C=d.current;if(!C)return;C.textContent=t,C.focus();const _=window.getSelection();if(_){const S=document.createRange();S.selectNodeContents(C),S.collapse(!1),_.removeAllRanges(),_.addRange(S)}},[l,t]);const y=t==="";if(!i)return f.jsx("div",{"data-testid":a,"aria-label":r,className:ee("sf:w-full sf:rounded-md sf:px-2 sf:py-1.5 sf:text-sm",y?"sf:italic sf:text-muted-foreground/50":"text-foreground",!c&&"sf:whitespace-pre-wrap sf:wrap-break-word",s),children:y?n:c?f.jsx(BK,{value:t}):t});const g=()=>{const C=d.current,_=C?o?C.innerText:C.textContent??"":t;i(e,_),h(!1)},k=()=>{h(!1)},x=C=>{if(C.stopPropagation(),C.nativeEvent.stopPropagation(),C.key==="Escape"){C.preventDefault(),p.current=!0,k();return}if(C.key==="Enter"){if(C.preventDefault(),C.shiftKey||!o){g();return}document.execCommand("insertText",!1,`
8541
+ `))}function c(y,g,k,x){const v=k.enter("tableCell"),M=k.enter("phrasing"),w=k.containerPhrasing(y,{...x,before:a,after:a});return M(),v(),w}function l(y,g){return jtt(y,{align:g,alignDelimiters:o,padding:n,stringLength:r})}function h(y,g,k){const x=y.children;let v=-1;const M=[],w=g.enter("table");for(;++v<x.length;)M[v]=d(x[v],g,k);return w(),M}function d(y,g,k){const x=y.children;let v=-1;const M=[],w=g.enter("tableRow");for(;++v<x.length;)M[v]=c(x[v],y,g,k);return w(),M}function p(y,g,k){let x=_ae.inlineCode(y,g,k);return k.stack.includes("tableCell")&&(x=x.replace(/\|/g,"\\$&")),x}}function vnt(){return{exit:{taskListCheckValueChecked:OK,taskListCheckValueUnchecked:OK,paragraph:wnt}}}function xnt(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Mnt}}}function OK(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function wnt(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const o=n.children[0];if(o&&o.type==="text"){const r=t.children;let a=-1,i;for(;++a<r.length;){const s=r[a];if(s.type==="paragraph"){i=s;break}}i===n&&(o.value=o.value.slice(1),o.value.length===0?n.children.shift():n.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,n.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function Mnt(e,t,n,o){const r=e.children[0],a=typeof e.checked=="boolean"&&r&&r.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",s=n.createTracker(o);a&&s.move(i);let c=_ae.listItem(e,t,n,{...o,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(h){return h+i}}function bnt(){return[ttt(),Mtt(),Stt(),hnt(),vnt()]}function _nt(e){return{extensions:[ntt(),btt(e),Ltt(),knt(e),xnt()]}}const Cnt={tokenize:Ent,partial:!0},Cae={tokenize:jnt,partial:!0},Sae={tokenize:$nt,partial:!0},Lae={tokenize:Pnt,partial:!0},Snt={tokenize:znt,partial:!0},Nae={name:"wwwAutolink",tokenize:Int,previous:Aae},Iae={name:"protocolAutolink",tokenize:Ant,previous:Eae},Ya={name:"emailAutolink",tokenize:Nnt,previous:jae},ya={};function Lnt(){return{text:ya}}let Ns=48;for(;Ns<123;)ya[Ns]=Ya,Ns++,Ns===58?Ns=65:Ns===91&&(Ns=97);ya[43]=Ya;ya[45]=Ya;ya[46]=Ya;ya[95]=Ya;ya[72]=[Ya,Iae];ya[104]=[Ya,Iae];ya[87]=[Ya,Nae];ya[119]=[Ya,Nae];function Nnt(e,t,n){const o=this;let r,a;return i;function i(d){return!ZO(d)||!jae.call(o,o.previous)||EV(o.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return ZO(d)?(e.consume(d),s):d===64?(e.consume(d),c):n(d)}function c(d){return d===46?e.check(Snt,h,l)(d):d===45||d===95||bn(d)?(a=!0,e.consume(d),c):h(d)}function l(d){return e.consume(d),r=!0,c}function h(d){return a&&r&&$n(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function Int(e,t,n){const o=this;return r;function r(i){return i!==87&&i!==119||!Aae.call(o,o.previous)||EV(o.events)?n(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Cnt,e.attempt(Cae,e.attempt(Sae,a),n),n)(i))}function a(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}}function Ant(e,t,n){const o=this;let r="",a=!1;return i;function i(d){return(d===72||d===104)&&Eae.call(o,o.previous)&&!EV(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if($n(d)&&r.length<5)return r+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const p=r.toLowerCase();if(p==="http"||p==="https")return e.consume(d),c}return n(d)}function c(d){return d===47?(e.consume(d),a?l:(a=!0,c)):n(d)}function l(d){return d===null||Dz(d)||vt(d)||ru(d)||QR(d)?n(d):e.attempt(Cae,e.attempt(Sae,h),n)(d)}function h(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function Ent(e,t,n){let o=0;return r;function r(i){return(i===87||i===119)&&o<3?(o++,e.consume(i),r):i===46&&o===3?(e.consume(i),a):n(i)}function a(i){return i===null?n(i):t(i)}}function jnt(e,t,n){let o,r,a;return i;function i(l){return l===46||l===95?e.check(Lae,c,s)(l):l===null||vt(l)||ru(l)||l!==45&&QR(l)?c(l):(a=!0,e.consume(l),i)}function s(l){return l===95?o=!0:(r=o,o=void 0),e.consume(l),i}function c(l){return r||o||!a?n(l):t(l)}}function $nt(e,t){let n=0,o=0;return r;function r(i){return i===40?(n++,e.consume(i),r):i===41&&o<n?a(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(Lae,t,a)(i):i===null||vt(i)||ru(i)?t(i):(e.consume(i),r)}function a(i){return i===41&&o++,e.consume(i),r}}function Pnt(e,t,n){return o;function o(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),o):s===38?(e.consume(s),a):s===93?(e.consume(s),r):s===60||s===null||vt(s)||ru(s)?t(s):n(s)}function r(s){return s===null||s===40||s===91||vt(s)||ru(s)?t(s):o(s)}function a(s){return $n(s)?i(s):n(s)}function i(s){return s===59?(e.consume(s),o):$n(s)?(e.consume(s),i):n(s)}}function znt(e,t,n){return o;function o(a){return e.consume(a),r}function r(a){return bn(a)?n(a):t(a)}}function Aae(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||vt(e)}function Eae(e){return!$n(e)}function jae(e){return!(e===47||ZO(e))}function ZO(e){return e===43||e===45||e===46||e===95||bn(e)}function EV(e){let t=e.length,n=!1;for(;t--;){const o=e[t][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){n=!0;break}if(o._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Rnt={tokenize:Bnt,partial:!0};function Tnt(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Fnt,continuation:{tokenize:qnt},exit:Vnt}},text:{91:{name:"gfmFootnoteCall",tokenize:Ont},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Dnt,resolveTo:Hnt}}}}function Dnt(e,t,n){const o=this;let r=o.events.length;const a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i;for(;r--;){const c=o.events[r][1];if(c.type==="labelImage"){i=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return s;function s(c){if(!i||!i._balanced)return n(c);const l=cr(o.sliceSerialize({start:i.end,end:o.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),t(c))}}function Hnt(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",o,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(n,e.length-n+1,...s),e}function Ont(e,t,n){const o=this,r=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a=0,i;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),c}function c(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(d){if(a>999||d===93&&!i||d===null||d===91||vt(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return r.includes(cr(o.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return vt(d)||(i=!0),a++,e.consume(d),d===92?h:l}function h(d){return d===91||d===92||d===93?(e.consume(d),a++,l):l(d)}}function Fnt(e,t,n){const o=this,r=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let a,i=0,s;return c;function c(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),l}function l(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(g)}function h(g){if(i>999||g===93&&!s||g===null||g===91||vt(g))return n(g);if(g===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return a=cr(o.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return vt(g)||(s=!0),i++,e.consume(g),g===92?d:h}function d(g){return g===91||g===92||g===93?(e.consume(g),i++,h):h(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),r.includes(a)||r.push(a),at(e,y,"gfmFootnoteDefinitionWhitespace")):n(g)}function y(g){return t(g)}}function qnt(e,t,n){return e.check(np,t,e.attempt(Rnt,t,n))}function Vnt(e){e.exit("gfmFootnoteDefinition")}function Bnt(e,t,n){const o=this;return at(e,r,"gfmFootnoteDefinitionIndent",5);function r(a){const i=o.events[o.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?t(a):n(a)}}function Unt(e){let n=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:a,resolveAll:r};return n==null&&(n=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function r(i,s){let c=-1;for(;++c<i.length;)if(i[c][0]==="enter"&&i[c][1].type==="strikethroughSequenceTemporary"&&i[c][1]._close){let l=c;for(;l--;)if(i[l][0]==="exit"&&i[l][1].type==="strikethroughSequenceTemporary"&&i[l][1]._open&&i[c][1].end.offset-i[c][1].start.offset===i[l][1].end.offset-i[l][1].start.offset){i[c][1].type="strikethroughSequence",i[l][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},i[l][1].start),end:Object.assign({},i[c][1].end)},d={type:"strikethroughText",start:Object.assign({},i[l][1].end),end:Object.assign({},i[c][1].start)},p=[["enter",h,s],["enter",i[l][1],s],["exit",i[l][1],s],["enter",d,s]],y=s.parser.constructs.insideSpan.null;y&&vo(p,p.length,0,JR(y,i.slice(l+1,c),s)),vo(p,p.length,0,[["exit",d,s],["enter",i[c][1],s],["exit",i[c][1],s],["exit",h,s]]),vo(i,l-1,c-l+3,p),c=l+p.length-2;break}}for(c=-1;++c<i.length;)i[c][1].type==="strikethroughSequenceTemporary"&&(i[c][1].type="data");return i}function a(i,s,c){const l=this.previous,h=this.events;let d=0;return p;function p(g){return l===126&&h[h.length-1][1].type!=="characterEscape"?c(g):(i.enter("strikethroughSequenceTemporary"),y(g))}function y(g){const k=oh(l);if(g===126)return d>1?c(g):(i.consume(g),d++,y);if(d<2&&!n)return c(g);const x=i.exit("strikethroughSequenceTemporary"),v=oh(g);return x._open=!v||v===2&&!!k,x._close=!k||k===2&&!!v,s(g)}}}class Wnt{constructor(){this.map=[]}add(t,n,o){Gnt(this,t,n,o)}consume(t){if(this.map.sort(function(a,i){return a[0]-i[0]}),this.map.length===0)return;let n=this.map.length;const o=[];for(;n>0;)n-=1,o.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];o.push(t.slice()),t.length=0;let r=o.pop();for(;r;){for(const a of r)t.push(a);r=o.pop()}this.map.length=0}}function Gnt(e,t,n,o){let r=0;if(!(n===0&&o.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...o);return}r+=1}e.map.push([t,n,o])}}function Knt(e,t){let n=!1;const o=[];for(;t<e.length;){const r=e[t];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&o.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=o.length-1;o[a]=o[a]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return o}function Xnt(){return{flow:{null:{name:"table",tokenize:Znt,resolveAll:Ynt}}}}function Znt(e,t,n){const o=this;let r=0,a=0,i;return s;function s(I){let R=o.events.length-1;for(;R>-1;){const $=o.events[R][1].type;if($==="lineEnding"||$==="linePrefix")R--;else break}const j=R>-1?o.events[R][1].type:null,V=j==="tableHead"||j==="tableRow"?_:c;return V===_&&o.parser.lazy[o.now().line]?n(I):V(I)}function c(I){return e.enter("tableHead"),e.enter("tableRow"),l(I)}function l(I){return I===124||(i=!0,a+=1),h(I)}function h(I){return I===null?n(I):$e(I)?a>1?(a=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),y):n(I):Qe(I)?at(e,h,"whitespace")(I):(a+=1,i&&(i=!1,r+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),i=!0,h):(e.enter("data"),d(I)))}function d(I){return I===null||I===124||vt(I)?(e.exit("data"),h(I)):(e.consume(I),I===92?p:d)}function p(I){return I===92||I===124?(e.consume(I),d):d(I)}function y(I){return o.interrupt=!1,o.parser.lazy[o.now().line]?n(I):(e.enter("tableDelimiterRow"),i=!1,Qe(I)?at(e,g,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):g(I))}function g(I){return I===45||I===58?x(I):I===124?(i=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),k):C(I)}function k(I){return Qe(I)?at(e,x,"whitespace")(I):x(I)}function x(I){return I===58?(a+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),v):I===45?(a+=1,v(I)):I===null||$e(I)?b(I):C(I)}function v(I){return I===45?(e.enter("tableDelimiterFiller"),M(I)):C(I)}function M(I){return I===45?(e.consume(I),M):I===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(I))}function w(I){return Qe(I)?at(e,b,"whitespace")(I):b(I)}function b(I){return I===124?g(I):I===null||$e(I)?!i||r!==a?C(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(I)):C(I)}function C(I){return n(I)}function _(I){return e.enter("tableRow"),S(I)}function S(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),S):I===null||$e(I)?(e.exit("tableRow"),t(I)):Qe(I)?at(e,S,"whitespace")(I):(e.enter("data"),L(I))}function L(I){return I===null||I===124||vt(I)?(e.exit("data"),S(I)):(e.consume(I),I===92?A:L)}function A(I){return I===92||I===124?(e.consume(I),L):L(I)}}function Ynt(e,t){let n=-1,o=!0,r=0,a=[0,0,0,0],i=[0,0,0,0],s=!1,c=0,l,h,d;const p=new Wnt;for(;++n<e.length;){const y=e[n],g=y[1];y[0]==="enter"?g.type==="tableHead"?(s=!1,c!==0&&(FK(p,t,c,l,h),h=void 0,c=0),l={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",l,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(o=!0,d=void 0,a=[0,0,0,0],i=[0,n+1,0,0],s&&(s=!1,h={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",h,t]])),r=g.type==="tableDelimiterRow"?2:h?3:1):r&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(o=!1,i[2]===0&&(a[1]!==0&&(i[0]=i[1],d=uy(p,t,a,r,void 0,d),a=[0,0,0,0]),i[2]=n)):g.type==="tableCellDivider"&&(o?o=!1:(a[1]!==0&&(i[0]=i[1],d=uy(p,t,a,r,void 0,d)),a=i,i=[a[1],n,0,0])):g.type==="tableHead"?(s=!0,c=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(c=n,a[1]!==0?(i[0]=i[1],d=uy(p,t,a,r,n,d)):i[1]!==0&&(d=uy(p,t,i,r,n,d)),r=0):r&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(i[3]=n)}for(c!==0&&FK(p,t,c,l,h),p.consume(t.events),n=-1;++n<t.events.length;){const y=t.events[n];y[0]==="enter"&&y[1].type==="table"&&(y[1]._align=Knt(t.events,n))}return e}function uy(e,t,n,o,r,a){const i=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(a.end=Object.assign({},Uu(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const c=Uu(t.events,n[1]);if(a={type:i,start:Object.assign({},c),end:Object.assign({},c)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const l=Uu(t.events,n[2]),h=Uu(t.events,n[3]),d={type:s,start:Object.assign({},l),end:Object.assign({},h)};if(e.add(n[2],0,[["enter",d,t]]),o!==2){const p=t.events[n[2]],y=t.events[n[3]];if(p[1].end=Object.assign({},y[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,k=n[3]-n[2]-1;e.add(g,k,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return r!==void 0&&(a.end=Object.assign({},Uu(t.events,r)),e.add(r,0,[["exit",a,t]]),a=void 0),a}function FK(e,t,n,o,r){const a=[],i=Uu(t.events,n);r&&(r.end=Object.assign({},i),a.push(["exit",r,t])),o.end=Object.assign({},i),a.push(["exit",o,t]),e.add(n+1,0,a)}function Uu(e,t){const n=e[t],o=n[0]==="enter"?"start":"end";return n[1][o]}const Qnt={name:"tasklistCheck",tokenize:eot};function Jnt(){return{text:{91:Qnt}}}function eot(e,t,n){const o=this;return r;function r(c){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),a)}function a(c){return vt(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),i):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),i):n(c)}function i(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(c)}function s(c){return $e(c)?t(c):Qe(c)?e.check({tokenize:tot},t,n)(c):n(c)}}function tot(e,t,n){return at(e,o,"whitespace");function o(r){return r===null?n(r):t(r)}}function not(e){return qre([Lnt(),Tnt(),Unt(e),Xnt(),Jnt()])}const oot={};function rot(e){const t=this,n=e||oot,o=t.data(),r=o.micromarkExtensions||(o.micromarkExtensions=[]),a=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),i=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);r.push(not(n)),a.push(bnt()),i.push(_nt(n))}let hy=null,aot=0;function iot(){return hy||(hy=sh(()=>import("./mermaid.core-DSZBo6BH.js").then(e=>e.ak),__vite__mapDeps([8,9,1])).then(e=>{const t=e;return t.default??t}),hy)}function qK(){var e;return typeof document>"u"?!1:document.documentElement.classList.contains("dark")||(e=document.body)!=null&&e.classList.contains("dark")?!0:!!document.querySelector(".dark")}function VK({code:e,className:t}){const n=m.useRef(null),o=m.useRef(`seeflow-mermaid-${++aot}`),[r,a]=m.useState(null),[i,s]=m.useState(()=>qK());return m.useEffect(()=>{if(typeof document>"u")return;const c=()=>s(qK()),l=new MutationObserver(c);return l.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.body&&l.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>l.disconnect()},[]),m.useEffect(()=>{let c=!1;return a(null),iot().then(async l=>{l.initialize({startOnLoad:!1,theme:i?"dark":"default",securityLevel:"strict",fontFamily:'"Inter", ui-sans-serif, system-ui, sans-serif'});const h=`${o.current}-${i?"d":"l"}`,d=await l.render(h,e);if(c)return;const p=n.current;p&&(p.innerHTML=d.svg)}).catch(l=>{c||a(l instanceof Error?l.message:String(l))}),()=>{c=!0}},[e,i]),r?f.jsx("pre",{"data-testid":"detail-panel-mermaid-fallback","data-mermaid-error":"true",title:r,className:ee("sf:mb-2 sf:overflow-x-auto sf:rounded sf:bg-muted/60 sf:px-2 sf:py-1 sf:font-mono sf:text-xs sf:text-foreground sf:last:mb-0",t),children:f.jsx("code",{children:e})}):f.jsx("div",{ref:n,"data-testid":"detail-panel-mermaid","data-mermaid-theme":i?"dark":"light",role:"img","aria-label":"Mermaid diagram",className:ee("sf:mb-2 sf:overflow-x-auto sf:rounded sf:bg-muted/30 sf:px-3 sf:py-2 sf:text-foreground sf:last:mb-0",t)})}function sot({flowId:e,node:t,connector:n,adapter:o,onNameChange:r,onDescriptionChange:a,onDetailChange:i,onIconChange:s,statusReport:c,open:l=!0,onClose:h}){const{studioBaseUrl:d}=tq(),p=(t==null?void 0:t.type)==="text",y=(t==null?void 0:t.type)==="ellipse"||(t==null?void 0:t.type)==="sticky",g=p?null:t,k=g&&"name"in g.data?g.data.name??"":"",x=(g==null?void 0:g.data.description)??"",v=(g==null?void 0:g.data.detail)??"",M=g!==null&&!y,w=g!==null&&(g.type==="rectangle"||g.type==="component"),b=w&&typeof s=="function",C=w&&g&&"icon"in g.data?g.data.icon??null:null,[_,S]=m.useState(()=>rOe()),L=R=>{R.preventDefault(),iOe(_,R.clientX,{onWidth:S,onCommit:aOe})};m.useEffect(()=>{const R=j=>{var $;if(j.key!=="Escape")return;const V=document.activeElement;($=V==null?void 0:V.getAttribute("data-testid"))!=null&&$.endsWith("-editor")||h()};return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[h]);const A={width:l?_:0,borderLeftWidth:l?"var(--detail-panel-border-left)":0,transition:"width 220ms ease-out, border-left-width 220ms ease-out"},I={width:_,boxShadow:"var(--detail-panel-shadow)"};return f.jsx("aside",{"aria-label":"Inspector","data-testid":"detail-panel","data-state":l?"open":"closed",style:A,className:"sf:relative sf:flex sf:h-full sf:flex-shrink-0 sf:flex-col sf:overflow-hidden sf:border-border",children:f.jsxs("div",{style:I,className:"sf:relative sf:flex sf:h-full sf:flex-shrink-0 sf:flex-col sf:overflow-y-auto sf:bg-card/94 sf:p-6 sf:backdrop-blur-[14px]",children:[f.jsx("div",{"aria-label":"Resize detail panel",onPointerDown:L,"data-testid":"detail-panel-resize-handle",className:"sf:absolute sf:inset-y-0 sf:left-0 sf:z-10 sf:hidden sf:w-1.5 sf:cursor-col-resize sf:bg-transparent sf:transition-colors sf:hover:bg-border sf:sm:block"}),f.jsxs("button",{type:"button",onClick:h,"aria-label":"Close inspector","data-testid":"detail-panel-close",className:"sf:absolute sf:right-4 sf:top-4 sf:z-10 sf:inline-flex sf:h-7 sf:w-7 sf:items-center sf:justify-center sf:rounded-sm sf:text-foreground/70 sf:opacity-70 sf:transition-opacity sf:hover:opacity-100 sf:focus:outline-hidden sf:focus:ring-2 sf:focus:ring-ring sf:focus:ring-offset-2",children:[f.jsx(v0,{className:"sf:h-4 sf:w-4"}),f.jsx("span",{className:"sf:sr-only",children:"Close"})]}),g?f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-4",children:[f.jsxs("div",{className:"sf:-mx-6 sf:-mt-6 sf:flex sf:flex-col sf:border-b sf:border-border/60 sf:bg-card/60 sf:px-6 sf:pb-2.5 sf:pt-3 sf:pr-12",children:[M?f.jsx("h2",{"data-testid":"detail-panel-title",className:"sf:text-lg sf:font-semibold sf:text-foreground",children:f.jsxs("div",{className:"sf:flex sf:items-center sf:gap-2",children:[b&&s?f.jsx(cot,{nodeId:g.id,icon:C,onChange:s}):w&&C?f.jsx("span",{"data-testid":"detail-panel-icon-readonly","aria-hidden":!0,className:"sf:inline-flex sf:h-7 sf:w-7 sf:shrink-0 sf:items-center sf:justify-center sf:text-foreground/90",children:f.jsx(Qi,{iconId:C,studioBaseUrl:d,className:"sf:h-4 sf:w-4"})}):null,f.jsx("div",{className:"sf:min-w-0 sf:flex-1",children:f.jsx(HD,{nodeId:g.id,value:k,placeholder:"Name",multiline:!1,ariaLabel:"Name",testIdBase:"detail-panel-name",onSave:r,textClassName:"sf:text-lg sf:font-semibold sf:tracking-tight sf:text-foreground/95"})})]})}):f.jsx("h2",{"data-testid":"detail-panel-title",className:"sf:sr-only",children:g.id}),f.jsxs("p",{className:"sf:sr-only",children:[g.id," · ",g.type]})]}),f.jsxs("div",{className:"sf:mt-0 sf:flex sf:flex-col sf:gap-3",children:[c?f.jsx(hot,{report:c}):null,f.jsx(HD,{nodeId:g.id,value:x,placeholder:"Short description shown on the node body",multiline:!0,ariaLabel:"Description",testIdBase:"detail-panel-description",onSave:a,textClassName:"sf:text-[13px] sf:leading-relaxed sf:text-muted-foreground sf:dark:text-zinc-400"}),f.jsx(HD,{nodeId:g.id,value:v,placeholder:"Long-form notes, context, anything…",multiline:!0,ariaLabel:"Detail",testIdBase:"detail-panel-detail",onSave:i,markdown:!0,textClassName:"sf:text-sm sf:leading-relaxed sf:text-foreground"}),g.type==="html"&&e?f.jsx(lot,{adapter:o,nodeId:g.id,htmlPath:"view.html"}):null]})]}):n?f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-4",children:[f.jsxs("div",{className:"sf:-mx-6 sf:-mt-6 sf:flex sf:flex-col sf:border-b sf:border-border/60 sf:bg-card/60 sf:px-6 sf:pb-2.5 sf:pt-3 sf:pr-12",children:[f.jsx("h2",{"data-testid":"detail-panel-title",className:"sf:text-lg sf:font-semibold sf:tracking-tight sf:text-foreground/95",children:n.label??"Connector"}),f.jsx("p",{className:"sf:sr-only",children:n.id})]}),f.jsx("div",{className:"sf:mt-0 sf:flex sf:flex-col sf:gap-3",children:f.jsx(pot,{connector:n})})]}):f.jsx("div",{"data-testid":"detail-panel-empty",className:"sf:text-muted-foreground sf:text-sm",children:"Select a node to inspect."})]})})}function HD({nodeId:e,value:t,placeholder:n,multiline:o,ariaLabel:r,testIdBase:a,onSave:i,textClassName:s,markdown:c=!1}){const[l,h]=m.useState(!1),d=m.useRef(null),p=m.useRef(!1);m.useEffect(()=>{if(!l)return;const C=d.current;if(!C)return;C.textContent=t,C.focus();const _=window.getSelection();if(_){const S=document.createRange();S.selectNodeContents(C),S.collapse(!1),_.removeAllRanges(),_.addRange(S)}},[l,t]);const y=t==="";if(!i)return f.jsx("div",{"data-testid":a,"aria-label":r,className:ee("sf:w-full sf:rounded-md sf:px-2 sf:py-1.5 sf:text-sm",y?"sf:italic sf:text-muted-foreground/50":"text-foreground",!c&&"sf:whitespace-pre-wrap sf:wrap-break-word",s),children:y?n:c?f.jsx(BK,{value:t}):t});const g=()=>{const C=d.current,_=C?o?C.innerText:C.textContent??"":t;i(e,_),h(!1)},k=()=>{h(!1)},x=C=>{if(C.stopPropagation(),C.nativeEvent.stopPropagation(),C.key==="Escape"){C.preventDefault(),p.current=!0,k();return}if(C.key==="Enter"){if(C.preventDefault(),C.shiftKey||!o){g();return}document.execCommand("insertText",!1,`
8542
8542
  `)}},v=C=>{C.preventDefault();const _=C.clipboardData.getData("text/plain");document.execCommand("insertText",!1,_)},M=C=>{},w=()=>{if(p.current){p.current=!1;return}g()},b=()=>{l||h(!0)};return f.jsx("div",{className:"relative","data-testid":a,"data-editing":l?"true":"false",children:l?f.jsx("div",{ref:d,contentEditable:"plaintext-only",suppressContentEditableWarning:!0,spellCheck:!1,tabIndex:0,onKeyDown:x,onPaste:v,onInput:M,onBlur:w,"data-testid":`${a}-editor`,className:ee("sf:block sf:w-full sf:whitespace-pre-wrap sf:wrap-break-word sf:rounded-md sf:px-2 sf:py-1.5 sf:text-sm sf:outline-hidden",s),role:"textbox","aria-multiline":o?"true":"false","aria-label":r}):f.jsx("button",{type:"button",onClick:b,"aria-label":`Edit ${r.toLowerCase()}`,className:ee("sf:block sf:w-full sf:cursor-text sf:rounded-md sf:px-2 sf:py-1.5 sf:text-left sf:text-sm sf:transition-colors sf:hover:bg-muted/50",y?"sf:italic sf:text-muted-foreground/50":"text-foreground",!c&&"sf:whitespace-pre-wrap sf:wrap-break-word",s),children:y?n:c?f.jsx(BK,{value:t}):t})})}function cot({nodeId:e,icon:t,onChange:n}){const[o,r]=m.useState(!1),{studioBaseUrl:a}=tq();return f.jsx(Uq,{open:o,onOpenChange:r,onPick:i=>{n(e,i),r(!1)},anchor:f.jsx("button",{type:"button","data-testid":"detail-panel-icon-trigger","aria-label":t?"Change icon":"Add icon","aria-pressed":o,className:ee("sf:inline-flex sf:h-7 sf:w-7 sf:shrink-0 sf:items-center sf:justify-center sf:rounded-md sf:text-foreground sf:transition-colors",t?"sf:hover:bg-muted":"sf:border sf:border-dashed sf:border-muted-foreground/40 sf:text-muted-foreground/60 sf:hover:border-muted-foreground sf:hover:text-foreground","sf:focus-visible:outline-hidden sf:focus-visible:ring-2 sf:focus-visible:ring-ring sf:focus-visible:ring-offset-1"),children:t?f.jsx(Qi,{iconId:t,studioBaseUrl:a,className:"sf:h-4 sf:w-4"}):f.jsx(x2,{className:"sf:h-4 sf:w-4","aria-hidden":!0})})})}function lot({adapter:e,nodeId:t,htmlPath:n}){const[o,r]=m.useState({kind:"idle"}),a=typeof(e==null?void 0:e.openFile)=="function",i=typeof(e==null?void 0:e.revealFile)=="function",s=`nodes/${t}/${n}`,c=async l=>{var h,d;r({kind:"pending"});try{l==="open"?await((h=e==null?void 0:e.openFile)==null?void 0:h.call(e,s)):await((d=e==null?void 0:e.revealFile)==null?void 0:d.call(e,s)),r({kind:"idle"})}catch(p){r({kind:"error",message:p instanceof Error?p.message:String(p)})}};return f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-2 sf:rounded-md sf:border sf:bg-card sf:px-3 sf:py-2 sf:text-xs","data-testid":"detail-panel-html-node",children:[f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-1",children:[f.jsx("span",{className:"sf:font-mono sf:text-[11px] sf:text-muted-foreground sf:uppercase sf:tracking-widest",children:"Path"}),f.jsx("code",{"data-testid":"detail-panel-html-path",className:"sf:block sf:break-all sf:rounded sf:bg-muted/40 sf:px-2 sf:py-1 sf:font-mono sf:text-[11px]",children:n})]}),a||i?f.jsxs("div",{className:"sf:flex sf:flex-wrap sf:items-center sf:gap-2",children:[a?f.jsxs(rt,{type:"button",size:"sm",variant:"outline",className:"sf:h-7 sf:gap-1.5 sf:px-2",onClick:()=>{c("open")},disabled:o.kind==="pending","data-testid":"detail-panel-html-open","aria-label":"Open in editor",children:[f.jsx(L2,{className:"sf:h-3.5 sf:w-3.5"}),"Open in editor"]}):null,i?f.jsxs(rt,{type:"button",size:"sm",variant:"outline",className:"sf:h-7 sf:gap-1.5 sf:px-2",onClick:()=>{c("reveal")},disabled:o.kind==="pending","data-testid":"detail-panel-html-reveal","aria-label":"Reveal in Finder/Explorer",children:[f.jsx(g2,{className:"sf:h-3.5 sf:w-3.5"}),"Reveal"]}):null]}):null,o.kind==="error"?f.jsx("div",{"data-testid":"detail-panel-html-status","data-status":o.kind,className:ee("sf:text-[11px] sf:text-destructive"),children:o.message??""}):null]})}function dot(e,t){const n=Math.max(0,t-e);if(n<1e3)return"just now";const o=Math.floor(n/1e3);if(o<60)return`${o}s ago`;const r=Math.floor(o/60);if(r<60)return`${r}m ago`;const a=Math.floor(r/60);return a<24?`${a}h ago`:`${Math.floor(a/24)}d ago`}function uot(e){if(e===null)return"null";if(e===void 0)return"undefined";if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function hot({report:e,now:t=Date.now()}){const n=e.data?Object.entries(e.data):[];return f.jsxs("section",{className:"sf:flex sf:flex-col sf:gap-2 sf:rounded-md sf:border sf:bg-card sf:px-3 sf:py-2 sf:text-xs","data-testid":"detail-panel-status","data-state":e.state,children:[f.jsxs("div",{className:"sf:flex sf:items-center sf:justify-between sf:gap-2",children:[f.jsx(Kq,{state:e.state,summary:e.summary,"data-testid":"detail-panel-status-badge"}),f.jsx("span",{className:"sf:shrink-0 sf:text-[10px] sf:text-muted-foreground","data-testid":"detail-panel-status-relative-time",children:`Last updated: ${dot(e.ts,t)}`})]}),e.detail?f.jsx("div",{"data-testid":"detail-panel-status-detail",className:"sf:whitespace-pre-wrap sf:wrap-break-word sf:rounded sf:bg-muted/40 sf:px-2 sf:py-1 sf:text-[11px] sf:text-foreground",children:e.detail}):null,n.length>0?f.jsx("dl",{"data-testid":"detail-panel-status-data",className:"sf:grid sf:grid-cols-[auto_1fr] sf:gap-x-3 sf:gap-y-1 sf:text-[11px]",children:n.map(([o,r])=>f.jsxs("div",{className:"contents","data-testid":"detail-panel-status-data-row",children:[f.jsx("dt",{className:"sf:truncate sf:font-medium sf:text-muted-foreground",children:o}),f.jsx("dd",{className:"sf:break-all sf:font-mono sf:text-foreground",children:uot(r)})]},o))}):null]})}function $ae(e){return typeof e=="string"?e.replace(/\n$/,""):Array.isArray(e)?e.map(t=>typeof t=="string"?t:"").join("").replace(/\n$/,""):String(e??"").replace(/\n$/,"")}function fot(e){if(!m.isValidElement(e))return null;const t=e.props;return!t||typeof t.className!="string"||!t.className.includes("language-mermaid")?null:$ae(t.children)}function BK({value:e}){return f.jsx(Uet,{remarkPlugins:[rot],components:{h1:({children:t})=>f.jsx("h1",{className:"sf:mb-1 sf:text-base sf:font-bold sf:leading-snug",children:t}),h2:({children:t})=>f.jsx("h2",{className:"sf:mb-1 sf:text-sm sf:font-semibold sf:leading-snug",children:t}),h3:({children:t})=>f.jsx("h3",{className:"sf:mb-0.5 sf:text-sm sf:font-medium sf:leading-snug",children:t}),p:({children:t})=>f.jsx("p",{className:"sf:mb-2 sf:last:mb-0 sf:leading-relaxed",children:t}),ul:({children:t})=>f.jsx("ul",{className:"sf:mb-2 sf:list-disc sf:pl-4 sf:last:mb-0",children:t}),ol:({children:t})=>f.jsx("ol",{className:"sf:mb-2 sf:list-decimal sf:pl-4 sf:last:mb-0",children:t}),li:({children:t})=>f.jsx("li",{className:"mb-0.5",children:t}),code:({children:t,className:n})=>typeof n=="string"&&n.includes("language-mermaid")?f.jsx(VK,{code:$ae(t)}):(n==null?void 0:n.includes("language-"))?f.jsx("code",{className:"sf:block sf:overflow-x-auto sf:rounded sf:bg-muted/60 sf:px-2 sf:py-1 sf:font-mono sf:text-xs",children:t}):f.jsx("code",{className:"sf:rounded sf:bg-muted/60 sf:px-1 sf:py-0.5 sf:font-mono sf:text-xs",children:t}),pre:({children:t})=>{const n=fot(t);return n!==null?f.jsx(VK,{code:n}):f.jsx("pre",{className:"sf:mb-2 sf:last:mb-0",children:t})},blockquote:({children:t})=>f.jsx("blockquote",{className:"sf:mb-2 sf:border-l-2 sf:border-muted-foreground/30 sf:pl-3 sf:italic sf:text-muted-foreground sf:last:mb-0",children:t}),a:({href:t,children:n})=>f.jsx("a",{href:t,target:"_blank",rel:"noreferrer",className:"sf:text-primary sf:underline sf:underline-offset-2",children:n}),strong:({children:t})=>f.jsx("strong",{className:"font-semibold",children:t}),em:({children:t})=>f.jsx("em",{className:"italic",children:t}),hr:()=>f.jsx("hr",{className:"sf:my-2 sf:border-border"}),table:({children:t})=>f.jsx("div",{className:"sf:mb-2 sf:overflow-x-auto sf:last:mb-0",children:f.jsx("table",{className:"sf:w-full sf:border-collapse sf:text-xs",children:t})}),th:({children:t})=>f.jsx("th",{className:"sf:border sf:border-border sf:bg-muted/40 sf:px-2 sf:py-1 sf:text-left sf:font-medium",children:t}),td:({children:t})=>f.jsx("td",{className:"sf:border sf:border-border sf:px-2 sf:py-1",children:t})},children:e})}function pot({connector:e}){return f.jsx("div",{className:"sf:rounded-md sf:border sf:bg-card sf:px-3 sf:py-2 sf:text-xs",children:f.jsxs("dl",{className:"divide-y",children:[f.jsx(Ia,{label:"Source",value:e.source}),f.jsx(Ia,{label:"Target",value:e.target}),e.label?f.jsx(Ia,{label:"Label",value:e.label}):null,e.style?f.jsx(Ia,{label:"Style",value:e.style}):null,e.color?f.jsx(Ia,{label:"Color",value:e.color}):null,e.direction?f.jsx(Ia,{label:"Direction",value:e.direction}):null,e.url?f.jsx(Ia,{label:"URL",value:`${e.method??"GET"} ${e.url}`}):null,e.eventName?f.jsx(Ia,{label:"Event",value:e.eventName}):null,e.queueName?f.jsx(Ia,{label:"Queue",value:e.queueName}):null]})})}function Ia({label:e,value:t}){return f.jsxs("div",{className:"sf:flex sf:items-start sf:gap-3 sf:py-2 sf:first:pt-0 sf:last:pb-0",children:[f.jsx("dt",{className:"sf:w-20 sf:shrink-0 sf:font-medium sf:text-muted-foreground",children:e}),f.jsx("dd",{className:"sf:flex-1 sf:break-all sf:font-mono",children:t})]})}const yot="https://seeflow.dev/embed",mot=(e,t)=>{const n=`${yot}/${encodeURIComponent(e)}`;return t?`${n}?theme=${t}`:n},got=e=>{var t,n;return(n=(t=e==null?void 0:e.documentElement)==null?void 0:t.classList)!=null&&n.contains("dark")?"dark":"light"},kot=e=>e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;"),vot=e=>[`<iframe src="${kot(e)}"`,' width="100%"',' height="600"',' style="border:0"',' allow="fullscreen"',' loading="lazy"></iframe>'].join(`
8543
8543
  `),xot="Embed this canvas",wot="Paste this iframe into any page to embed the canvas.",Mot="Copy snippet",bot="Copied!",_ot="Press ⌘C to copy",Cot="Close",Sot="Theme",Lot=1500,Not=[{value:"match",label:"Match my theme"},{value:"light",label:"Light"},{value:"dark",label:"Dark"}],Iot=e=>e==="light"?"light":e==="dark"?"dark":got(typeof document<"u"?document:null);function Aot({open:e,onOpenChange:t,projectId:n}){const[o,r]=m.useState("idle"),[a,i]=m.useState("match"),s=m.useRef(null),c=m.useMemo(()=>vot(mot(n,Iot(a))),[n,a]),l=m.useCallback(async()=>{try{await navigator.clipboard.writeText(c),r("copied"),setTimeout(()=>r("idle"),Lot)}catch{r("fallback");const h=s.current;h&&(h.focus(),h.select())}},[c]);return f.jsx(hr,{open:e,onOpenChange:t,children:f.jsxs(sa,{"data-testid":"embed-dialog-content",children:[f.jsxs(ca,{children:[f.jsx(la,{children:xot}),f.jsx(da,{children:wot})]}),f.jsxs("fieldset",{className:"sf:flex sf:flex-col sf:gap-2 sf:border-0 sf:p-0",children:[f.jsx("legend",{id:"embed-dialog-theme-label",className:"sf:mb-2 sf:text-xs sf:font-medium sf:text-foreground",children:Sot}),f.jsx("div",{"data-testid":"embed-dialog-theme-group",className:"sf:inline-flex sf:self-start sf:rounded-md sf:border sf:border-input sf:bg-background sf:p-0.5",children:Not.map(h=>{const d=a===h.value;return f.jsx("button",{type:"button","aria-pressed":d,"aria-label":h.label,"data-testid":`embed-dialog-theme-${h.value}`,"data-active":d,onClick:()=>i(h.value),className:ee("sf:rounded sf:px-3 sf:py-1 sf:text-xs sf:transition-colors sf:focus-visible:outline-hidden sf:focus-visible:ring-1 sf:focus-visible:ring-ring",d?"sf:bg-secondary sf:text-secondary-foreground sf:shadow-sm":"sf:text-muted-foreground sf:hover:bg-accent sf:hover:text-accent-foreground"),children:h.label},h.value)})})]}),f.jsx("textarea",{ref:s,"data-testid":"embed-dialog-snippet",readOnly:!0,rows:7,value:c,spellCheck:!1,onFocus:h=>h.currentTarget.select(),className:"sf:w-full sf:resize-none sf:rounded-md sf:border sf:border-border sf:bg-background sf:p-3 sf:font-mono sf:text-xs sf:leading-relaxed sf:text-foreground sf:focus:outline-hidden sf:focus:ring-2 sf:focus:ring-ring"}),o==="fallback"?f.jsx("p",{"data-testid":"embed-dialog-fallback-hint",className:"sf:text-xs sf:text-muted-foreground",children:_ot}):null,f.jsxs(fr,{children:[f.jsx(rt,{variant:"outline","data-testid":"embed-dialog-close",onClick:()=>t(!1),children:Cot}),f.jsx(rt,{"data-testid":"embed-dialog-copy",onClick:l,children:o==="copied"?bot:Mot})]})]})})}const UK="Share / download",Eot="Download PDF",jot="Download PNG",$ot="Embed",Pot="Export to seeflow.dev";function Pae({mode:e,projectId:t,enableEmbed:n,onDownloadPdf:o,onDownloadPng:r,onExportToCloud:a,embedOpen:i,onEmbedOpenChange:s}){const[c,l]=m.useState(!1),[h,d]=m.useState(!1),[p,y]=m.useState(!1),g=i!==void 0,k=g?i:p,x=m.useCallback(S=>{g||y(S),s==null||s(S)},[g,s]),v=m.useCallback(()=>{!o||c||(l(!0),Promise.resolve(o()).finally(()=>l(!1)))},[o,c]),M=m.useCallback(()=>{!r||h||(d(!0),Promise.resolve(r()).finally(()=>d(!1)))},[r,h]),w=!!o,b=!!r,C=n&&typeof t=="string"&&t.length>0,_=e==="edit"&&!!a;return!w&&!b&&!C&&!_?null:f.jsxs(f.Fragment,{children:[f.jsxs(sV,{children:[f.jsx(cV,{asChild:!0,children:f.jsx("button",{type:"button","data-testid":"share-menu-trigger","aria-label":UK,title:UK,className:ee("sf:inline-flex sf:h-8 sf:w-8 sf:items-center sf:justify-center sf:rounded-md sf:border sf:border-border sf:bg-background/95 sf:text-muted-foreground sf:shadow-md sf:backdrop-blur-sm sf:transition-colors","sf:hover:bg-accent sf:hover:text-accent-foreground","sf:focus-visible:outline-hidden sf:focus-visible:ring-2 sf:focus-visible:ring-ring"),children:f.jsx($2,{className:"sf:h-4 sf:w-4","aria-hidden":"true"})})}),f.jsxs(GR,{align:"end","data-testid":"share-menu-content",onCloseAutoFocus:S=>{S.preventDefault()},children:[w?f.jsxs(zi,{"data-testid":"share-menu-pdf",disabled:c,onSelect:S=>{S.preventDefault(),v()},children:[c?f.jsx(Wn,{className:"sf:h-4 sf:w-4 sf:animate-spin","aria-hidden":"true"}):f.jsx(y2,{className:"sf:h-4 sf:w-4","aria-hidden":"true"}),f.jsx("span",{children:Eot})]}):null,b?f.jsxs(zi,{"data-testid":"share-menu-png",disabled:h,onSelect:S=>{S.preventDefault(),M()},children:[h?f.jsx(Wn,{className:"sf:h-4 sf:w-4 sf:animate-spin","aria-hidden":"true"}):f.jsx(w2,{className:"sf:h-4 sf:w-4","aria-hidden":"true"}),f.jsx("span",{children:jot})]}):null,C?f.jsxs(zi,{"data-testid":"share-menu-embed",onSelect:S=>{S.preventDefault(),x(!0)},children:[f.jsx(x0,{className:"sf:h-4 sf:w-4","aria-hidden":"true"}),f.jsx("span",{children:$ot})]}):null,_?f.jsxs(zi,{"data-testid":"share-menu-export-cloud",onSelect:()=>{a==null||a()},children:[f.jsx(T2,{className:"sf:h-4 sf:w-4","aria-hidden":"true"}),f.jsx("span",{children:Pot})]}):null]})]}),C&&t?f.jsx(Aot,{open:k,onOpenChange:x,projectId:t}):null]})}const zot=8;function Rot(e){let t=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,r=Number.NEGATIVE_INFINITY,a=!1;for(const i of e){const s=i.data.width,c=i.data.height;s===void 0||c===void 0||(a=!0,i.position.x<t&&(t=i.position.x),i.position.y<n&&(n=i.position.y),i.position.x+s>o&&(o=i.position.x+s),i.position.y+c>r&&(r=i.position.y+c))}return a?{x:t,y:n,width:o-t,height:r-n}:null}function Tot(e){return e.length>=2}function Dot({selectedNodes:e,onMultiResize:t,paddingPx:n=zot}){_R();const[o,r]=m.useState(null),[a,i]=m.useState(null);if(m.useRef(!1),m.useRef(null),!Tot(e))return null;const s=Rot(e);if(!s)return null;const c=a??s;return c.x-n,c.y-n,c.width+n*2,c.height+n*2,null}const WK=22,GK=11,KK=3,XK=2,OD=8,FD=1,ZK=["none","white","slate","gray","red","orange","amber","yellow","lime","green","teal","cyan","sky","blue","indigo","violet","fuchsia","pink"],fy=[{value:"solid",icon:Tz,label:"Solid",testId:"style-tab-border-style-solid"},{value:"dashed",icon:ure,label:"Dashed",testId:"style-tab-border-style-dashed"},{value:"dotted",icon:hre,label:"Dotted",testId:"style-tab-border-style-dotted"}],YK=[{value:"solid",icon:Tz,label:"Solid",testId:"style-tab-edge-style-solid"},{value:"dashed",icon:ure,label:"Dashed",testId:"style-tab-edge-style-dashed"},{value:"dotted",icon:hre,label:"Dotted",testId:"style-tab-edge-style-dotted"}],Hot=[{value:"curve",icon:UXe,label:"Curve",testId:"style-tab-edge-path-curve"},{value:"step",icon:WXe,label:"Zigzag",testId:"style-tab-edge-path-step"}],QK=[{value:"arrow",icon:y0,label:"Arrow",testId:"style-tab-head-shape-arrow"},{value:"one",icon:GXe,label:"One",testId:"style-tab-head-shape-one"},{value:"many",icon:KXe,label:"Many",testId:"style-tab-head-shape-many"},{value:"optional-many",icon:XXe,label:"Optional many",testId:"style-tab-head-shape-optional-many"},{value:"diamond",icon:g0,label:"Diamond",testId:"style-tab-head-shape-diamond"},{value:"circle",icon:m0,label:"Circle",testId:"style-tab-head-shape-circle"}],Oot="center",Fot=[{value:"left",icon:Zo,label:"Left",testId:"style-tab-text-align-left"},{value:"center",icon:Si,label:"Center",testId:"style-tab-text-align-center"},{value:"right",icon:Li,label:"Right",testId:"style-tab-text-align-right"}],qot=[{value:"none",icon:b2,label:"None",testId:"style-tab-direction-none"},{value:"backward",icon:C2,label:"Backward",testId:"style-tab-direction-backward"},{value:"forward",icon:y0,label:"Forward",testId:"style-tab-direction-forward"},{value:"both",icon:d2,label:"Both",testId:"style-tab-direction-both"}];function Vot({nodes:e,connectors:t,onStyleNode:n,onStyleNodePreview:o,onStyleNodes:r,onStyleNodesPreview:a,onStyleConnector:i,onStyleConnectorPreview:s,onRequestIconReplace:c}){const l=e.length>0,h=t.length>0;if(!l&&!h)return null;const d=l&&!h,p=!l&&h,y=e[0],g=t[0],k=e.filter(H=>H.type!=="icon"),x=k[0],v=d&&e.every(H=>H.type==="icon"),M=v?e.find(H=>H.type==="icon"):void 0,w=d&&e.every(H=>H.type==="image"),b=d&&(y==null?void 0:y.type)==="text",C=(p?g==null?void 0:g.color:b?x==null?void 0:x.data.borderColor:x==null?void 0:x.data.backgroundColor)??"default",_=(x==null?void 0:x.data.borderStyle)??"solid",S=(g==null?void 0:g.style)??"solid",L=(g==null?void 0:g.direction)??"forward",A=(g==null?void 0:g.path)??"curve",I=(g==null?void 0:g.headShape)??"arrow",R=(g==null?void 0:g.tailShape)??(g==null?void 0:g.headShape)??"arrow",j=L==="forward"||L==="both",V=L==="backward"||L==="both",$=H=>{if(e.length>1&&r)r(e.map(Q=>Q.id),{borderColor:H,backgroundColor:H});else for(const Q of e)n(Q.id,{borderColor:H,backgroundColor:H});for(const Q of t)i(Q.id,{color:H})},T=H=>{for(const Q of e)n(Q.id,{borderStyle:H});for(const Q of t)i(Q.id,{style:H})},D=H=>{for(const Q of e)n(Q.id,{borderSize:H});for(const Q of t)i(Q.id,{borderSize:H})},F=H=>{for(const Q of e)o==null||o(Q.id,{borderSize:H});for(const Q of t)s==null||s(Q.id,{borderSize:H})},z=H=>{if(e.length>1&&r)r(e.map(Q=>Q.id),{fontSize:H});else for(const Q of e)n(Q.id,{fontSize:H})},E=H=>{if(e.length>1&&a)a(e.map(Q=>Q.id),{fontSize:H});else for(const Q of e)o==null||o(Q.id,{fontSize:H})},N=k.length>1&&new Set(k.map(H=>H.data.fontSize??WK)).size>1,W=H=>{if(e.length>1&&r)r(e.map(Q=>Q.id),{textAlign:H});else for(const Q of e)n(Q.id,{textAlign:H})},O=(x==null?void 0:x.data.textAlign)??Oot,P=H=>{for(const Q of t)i(Q.id,{fontSize:H})},Y=H=>{for(const Q of t)s==null||s(Q.id,{fontSize:H})},Z=t.length>1&&new Set(t.map(H=>H.fontSize??GK)).size>1,te=H=>{for(const Q of e)n(Q.id,{cornerRadius:H})},ie=H=>{for(const Q of e)o==null||o(Q.id,{cornerRadius:H})},re=k.length>1&&new Set(k.map(H=>H.data.cornerRadius??OD)).size>1,ae=H=>{for(const Q of e)n(Q.id,{shadow:H})},se=H=>{for(const Q of e)o==null||o(Q.id,{shadow:H})},ve=k.length>1&&new Set(k.map(H=>H.data.shadow??FD)).size>1,ke=H=>{for(const Q of t)i(Q.id,{path:H})},ge=H=>{for(const Q of t)i(Q.id,{direction:H})},Pe=H=>{for(const Q of t)i(Q.id,{headShape:H})},Be=H=>{for(const Q of t)i(Q.id,{tailShape:H})},De=H=>{for(const Q of e)n(Q.id,{color:H})},pe=(M==null?void 0:M.data.color)??"default",me=p?(g==null?void 0:g.borderSize)??XK:(x==null?void 0:x.data.borderSize)??KK,Ae=p?XK:KK,Ue=p?"edge":"border",ut=p?"Connector color":"Color",et=p?"connector color":"color",le="style-tab-color-trigger",rn="style-tab-color";if(v){const H=!!c&&e.length===1&&!!M,Q=()=>{M&&c&&c(M.id)};return f.jsx(I0,{delayDuration:300,children:f.jsxs("div",{"data-testid":"canvas-style-strip",className:"sf:pointer-events-auto sf:flex sf:flex-col sf:items-center sf:gap-1 sf:rounded-lg sf:border sf:border-border sf:bg-background/95 sf:p-1 sf:shadow-md sf:backdrop-blur",children:[f.jsx(Uot,{testId:"style-strip-icon-color",tooltip:"Icon color",ariaLabel:"icon color",activeToken:pe,previewKind:"edge",tokenTestIdPrefix:"style-tab-icon-color",innerTestId:"style-tab-icon-color-trigger",allowNone:!1,onSelect:De}),H?f.jsxs(mh,{children:[f.jsx(gh,{asChild:!0,children:f.jsx("button",{type:"button","data-testid":"style-strip-change-icon","aria-label":"change icon",title:"Change icon",onClick:Q,className:ee("sf:inline-flex sf:h-8 sf:w-8 sf:items-center sf:justify-center sf:rounded-md sf:text-muted-foreground sf:transition-colors sf:hover:bg-accent sf:hover:text-accent-foreground","sf:focus-visible:outline-hidden sf:focus-visible:ring-2 sf:focus-visible:ring-ring sf:focus-visible:ring-offset-1"),children:f.jsx(M0,{className:"sf:h-4 sf:w-4"})})}),f.jsx(pu,{side:"right",className:"sf:px-2 sf:py-1 sf:text-xs",children:"Change icon"})]}):null]})})}if(w){const H=e[0],Q=(H==null?void 0:H.data.borderColor)??"default",be=(H==null?void 0:H.data.borderStyle)??"solid",Ee=(H==null?void 0:H.data.borderWidth)??1,wt=pt=>{for(const dt of e)n(dt.id,{borderColor:pt})},gn=pt=>{for(const dt of e)n(dt.id,{borderStyle:pt})},an=pt=>{for(const dt of e)n(dt.id,{borderWidth:pt})},Fn=pt=>{for(const dt of e)o==null||o(dt.id,{borderWidth:pt})},qn=pt=>{for(const dt of e)n(dt.id,{cornerRadius:pt})},Me=pt=>{for(const dt of e)o==null||o(dt.id,{cornerRadius:pt})},Fe=pt=>{for(const dt of e)n(dt.id,{shadow:pt})},dn=pt=>{for(const dt of e)o==null||o(dt.id,{shadow:pt})},gr=()=>{const pt=Q==="none";return f.jsx("span",{className:ee("sf:relative sf:h-5 sf:w-5 sf:rounded-full",pt&&"sf:bg-card"),style:pt?void 0:qz(Q),children:pt?f.jsx(Vz,{}):null})};return f.jsx(I0,{delayDuration:300,children:f.jsxs("div",{"data-testid":"canvas-style-strip",className:"sf:pointer-events-auto sf:flex sf:flex-col sf:items-center sf:gap-1 sf:rounded-lg sf:border sf:border-border sf:bg-background/95 sf:p-1 sf:shadow-md sf:backdrop-blur",children:[f.jsx(Ar,{testId:"style-strip-image-border-color-button",tooltip:"Border color",ariaLabel:"image border color",renderIcon:gr,children:f.jsx(YO,{testId:"style-strip-image-border-color",activeToken:Q,previewKind:"border",tokenTestIdPrefix:"style-tab-image-border-color",innerTestId:"style-tab-image-border-color-trigger",ariaLabel:"image border color",onSelect:wt})}),f.jsx(Ar,{testId:"style-strip-image-corner-radius-button",tooltip:"Corners",ariaLabel:"image corners",renderIcon:()=>f.jsx(w0,{className:"sf:h-4 sf:w-4"}),children:f.jsx("div",{"data-testid":"style-strip-image-corner-radius",children:f.jsx(Is,{value:H==null?void 0:H.data.cornerRadius,defaultValue:OD,min:0,max:32,suffix:"px",onPreview:Me,onCommit:qn,testId:"style-tab-image-corner-radius-slider"})})}),f.jsx(Ar,{testId:"style-strip-image-shadow-button",tooltip:"Shadow",ariaLabel:"image shadow",renderIcon:()=>f.jsx(Pa,{className:"sf:h-4 sf:w-4"}),children:f.jsx("div",{"data-testid":"style-strip-image-shadow",children:f.jsx(Is,{value:H==null?void 0:H.data.shadow,defaultValue:FD,min:0,max:5,onPreview:dn,onCommit:Fe,testId:"style-tab-image-shadow-slider"})})}),f.jsx(Ar,{testId:"style-strip-image-border-style",tooltip:"Border style",ariaLabel:"image border style",renderIcon:()=>{var dt;const pt=((dt=fy.find(Vn=>Vn.value===be))==null?void 0:dt.icon)??Tz;return f.jsx(pt,{className:"sf:h-4 sf:w-4"})},children:f.jsx(mi,{ariaLabel:"Border style",value:be,onChange:gn,options:fy})}),f.jsx(Ar,{testId:"style-strip-image-border-width",tooltip:"Border width",ariaLabel:"image border width",renderIcon:()=>f.jsx("span",{className:"sf:font-mono sf:text-[10px] sf:tabular-nums",children:Ee}),children:f.jsx(Is,{value:H==null?void 0:H.data.borderWidth,defaultValue:1,min:0,max:8,suffix:"px",onPreview:Fn,onCommit:an,testId:"style-tab-image-border-width-slider"})})]})})}const Gt=!b,J=()=>{const H=C==="none";return f.jsx("span",{className:ee("sf:relative sf:h-5 sf:w-5 sf:rounded-full",H&&"sf:bg-card"),style:H?void 0:qz(C),children:H?f.jsx(Vz,{}):null})};return f.jsx(I0,{delayDuration:300,children:f.jsxs("div",{"data-testid":"canvas-style-strip",className:"sf:pointer-events-auto sf:flex sf:flex-col sf:items-center sf:gap-1 sf:rounded-lg sf:border sf:border-border sf:bg-background/95 sf:p-1 sf:shadow-md sf:backdrop-blur",children:[f.jsx(Ar,{testId:"style-strip-color-button",tooltip:ut,ariaLabel:et,renderIcon:J,children:f.jsx(YO,{testId:"style-strip-color",activeToken:C,previewKind:Ue,tokenTestIdPrefix:rn,innerTestId:le,ariaLabel:et,allowNone:!p,onSelect:$})}),l?f.jsx(Ar,{testId:"style-strip-corner-radius-button",tooltip:"Corners",ariaLabel:"corners",renderIcon:()=>f.jsx(w0,{className:"sf:h-4 sf:w-4"}),children:f.jsx("div",{"data-testid":"style-strip-corner-radius",children:f.jsx(Is,{value:x==null?void 0:x.data.cornerRadius,defaultValue:OD,min:0,max:32,suffix:"px",indeterminate:re,onPreview:ie,onCommit:te,testId:"style-tab-corner-radius-slider"})})}):null,l?f.jsx(Ar,{testId:"style-strip-shadow-button",tooltip:"Shadow",ariaLabel:"shadow",renderIcon:()=>f.jsx(Pa,{className:"sf:h-4 sf:w-4"}),children:f.jsx("div",{"data-testid":"style-strip-shadow",children:f.jsx(Is,{value:x==null?void 0:x.data.shadow,defaultValue:FD,min:0,max:5,indeterminate:ve,onPreview:se,onCommit:ae,testId:"style-tab-shadow-slider"})})}):null,Gt?f.jsx(Ar,{testId:"style-strip-border",tooltip:p?"Connector":"Border",ariaLabel:p?"connector":"border",renderIcon:()=>{var Q,be;const H=(p?(Q=YK.find(Ee=>Ee.value===S))==null?void 0:Q.icon:(be=fy.find(Ee=>Ee.value===_))==null?void 0:be.icon)??Tz;return f.jsx(H,{className:"sf:h-4 sf:w-4"})},children:f.jsxs("div",{className:"sf:flex sf:w-56 sf:flex-col sf:gap-3",children:[f.jsx(ki,{label:"Style",testId:"style-strip-border-style",children:p?f.jsx(mi,{ariaLabel:"Connector style",value:S,onChange:H=>T(H),options:YK}):f.jsx(mi,{ariaLabel:"Border style",value:_,onChange:H=>T(H),options:fy})}),f.jsx(ki,{label:"Width",testId:"style-strip-border-size",children:f.jsx(Is,{value:me,defaultValue:Ae,min:0,max:8,suffix:"px",onPreview:F,onCommit:D,testId:p?"style-tab-stroke-width-slider":"style-tab-border-size-slider"})}),p?f.jsx(ki,{label:"Path",testId:"style-strip-path",children:f.jsx(mi,{ariaLabel:"Connector path",value:A,onChange:ke,options:Hot})}):null,p?f.jsx(ki,{label:"Direction",testId:"style-strip-direction-section",children:f.jsx(mi,{ariaLabel:"Connector direction",value:L,onChange:ge,options:qot})}):null,p?f.jsxs(ki,{label:"Head shape",testId:"style-strip-head-shape",children:[f.jsx("div",{className:ee(!j&&"sf:pointer-events-none sf:opacity-40"),"aria-disabled":!j,children:f.jsx(mi,{ariaLabel:"Connector head shape",value:I,onChange:Pe,options:QK})}),j?null:f.jsx("p",{className:"sf:mt-2 sf:text-[11px] sf:text-muted-foreground",children:"Point the direction forward to show a head."})]}):null,p?f.jsxs(ki,{label:"Tail shape",testId:"style-strip-tail-shape",children:[f.jsx("div",{className:ee(!V&&"sf:pointer-events-none sf:opacity-40"),"aria-disabled":!V,children:f.jsx(mi,{ariaLabel:"Connector tail shape",value:R,onChange:Be,options:QK})}),V?null:f.jsx("p",{className:"sf:mt-2 sf:text-[11px] sf:text-muted-foreground",children:"Point the direction backward (or both) to show a tail."})]}):null]})}):null,l||p?f.jsx(Ar,{testId:"style-strip-text",tooltip:"Text",ariaLabel:"text",renderIcon:()=>f.jsx(b0,{className:"sf:h-4 sf:w-4"}),children:f.jsxs("div",{className:"sf:flex sf:w-56 sf:flex-col sf:gap-3",children:[f.jsx(ki,{label:"Size",testId:p?"style-strip-connector-font-size":"style-strip-font-size",children:f.jsx(Is,{value:p?g==null?void 0:g.fontSize:x==null?void 0:x.data.fontSize,defaultValue:p?GK:WK,min:p?8:10,max:32,suffix:"px",indeterminate:p?Z:N,onPreview:p?Y:E,onCommit:p?P:z,testId:p?"style-tab-connector-font-size-slider":"style-tab-font-size-slider"})}),l?f.jsx(ki,{label:"Align",testId:"style-strip-text-align",children:f.jsx(mi,{ariaLabel:"Text alignment",value:O,onChange:W,options:Fot})}):null]})}):null]})})}function qz(e){return e==="default"?{backgroundColor:"hsl(var(--card))"}:{backgroundColor:k1e[e].edge}}function Vz(){return f.jsx("span",{"aria-hidden":"true",className:"sf:pointer-events-none sf:absolute sf:inset-0 sf:rounded-full",style:{backgroundImage:"linear-gradient(45deg, transparent 45%, hsl(0, 75%, 55%) 45%, hsl(0, 75%, 55%) 55%, transparent 55%)"}})}function Bot({token:e,isActive:t,onClick:n,testId:o,ariaLabel:r}){const a=e==="none",i=e==="white";return f.jsxs("button",{type:"button",onClick:n,"data-testid":o,"data-active":t,"aria-label":r,"aria-pressed":t,title:e,className:ee("sf:relative sf:flex sf:h-5 sf:w-5 sf:items-center sf:justify-center sf:rounded-full sf:transition-all",a&&"sf:border sf:border-border sf:bg-card",i&&"sf:border sf:border-border",t?"sf:ring-2 sf:ring-ring sf:ring-offset-1 sf:ring-offset-popover":"sf:hover:scale-110"),style:a?void 0:qz(e),children:[a?f.jsx(Vz,{}):null,t&&!a?f.jsx(Bi,{className:"sf:h-2.5 sf:w-2.5 sf:drop-shadow-sm",style:{color:i?"hsl(0, 0%, 30%)":"hsl(var(--foreground))"}}):null]})}function Uot({testId:e,tooltip:t,ariaLabel:n,activeToken:o,previewKind:r,tokenTestIdPrefix:a,innerTestId:i,allowNone:s,onSelect:c}){const[l,h]=m.useState(!1),d=o==="none";return f.jsxs(uu,{open:l,onOpenChange:h,children:[f.jsxs(mh,{children:[f.jsx(gh,{asChild:!0,children:f.jsx(ph,{asChild:!0,children:f.jsx("button",{type:"button","data-testid":e,"data-active-token":o,"aria-label":`${n}: ${o}`,title:t,className:ee("sf:group sf:relative sf:inline-flex sf:h-8 sf:w-8 sf:items-center sf:justify-center sf:rounded-md sf:text-muted-foreground sf:transition-colors sf:hover:bg-accent sf:hover:text-accent-foreground","sf:focus-visible:outline-hidden sf:focus-visible:ring-2 sf:focus-visible:ring-ring sf:focus-visible:ring-offset-1"),children:f.jsx("span",{"data-testid":i,className:ee("sf:relative sf:h-5 sf:w-5 sf:rounded-full",d&&"sf:bg-card"),style:d?void 0:qz(o),children:d?f.jsx(Vz,{}):null})})})}),f.jsx(pu,{side:"right",className:"sf:px-2 sf:py-1 sf:text-xs",children:t})]}),f.jsx(ls,{side:"right",align:"start",className:"sf:w-auto sf:p-1.5","data-testid":`${i}-popover`,children:f.jsx(YO,{testId:`${a}-grid`,activeToken:o,previewKind:r,tokenTestIdPrefix:a,innerTestId:i,ariaLabel:n,allowNone:s,onSelect:p=>{c(p),h(!1)}})})]})}function YO({testId:e,activeToken:t,previewKind:n,tokenTestIdPrefix:o,innerTestId:r,ariaLabel:a,allowNone:i,onSelect:s}){const c=i===!1?ZK.filter(l=>l!=="none"):ZK;return f.jsx("div",{"data-testid":e,"data-active-token":t,"data-inner-testid":r,className:"sf:grid sf:grid-cols-6 sf:gap-2 sf:p-1",children:c.map(l=>f.jsx(Bot,{token:l,isActive:t===l,onClick:()=>s(l),testId:`${o}-${l}`,ariaLabel:`${a} ${l}`},l))})}function ki({label:e,testId:t,children:n}){return f.jsxs("div",{className:"sf:flex sf:flex-col sf:gap-1.5","data-testid":t,children:[f.jsx("div",{className:"sf:text-[11px] sf:font-medium sf:uppercase sf:tracking-wide sf:text-muted-foreground",children:e}),n]})}function Ar({testId:e,tooltip:t,ariaLabel:n,renderIcon:o,children:r}){const[a,i]=m.useState(!1);return f.jsxs(uu,{open:a,onOpenChange:i,children:[f.jsxs(mh,{children:[f.jsx(gh,{asChild:!0,children:f.jsx(ph,{asChild:!0,children:f.jsx("button",{type:"button","data-testid":e,"aria-label":n,title:t,className:ee("sf:inline-flex sf:h-8 sf:w-8 sf:items-center sf:justify-center sf:rounded-md sf:text-muted-foreground sf:transition-colors sf:hover:bg-accent sf:hover:text-accent-foreground","sf:focus-visible:outline-hidden sf:focus-visible:ring-2 sf:focus-visible:ring-ring sf:focus-visible:ring-offset-1"),children:o()})})}),f.jsx(pu,{side:"right",className:"sf:px-2 sf:py-1 sf:text-xs",children:t})]}),f.jsx(ls,{side:"right",align:"start",className:"sf:w-auto sf:p-3",children:r})]})}function Is({value:e,defaultValue:t,min:n,max:o,suffix:r,indeterminate:a,onPreview:i,onCommit:s,testId:c}){const l=e??t,[h,d]=m.useState(l),[p,y]=m.useState(!1);m.useEffect(()=>{d(l),y(!1)},[l]);const g=a&&!p;return f.jsxs("div",{className:"sf:flex sf:w-48 sf:items-center sf:gap-3",children:[f.jsx(Cq,{min:n,max:o,step:1,value:[h],onValueChange:([k])=>{const x=k??n;d(x),y(!0),i==null||i(x)},onValueCommit:([k])=>s(k??n),"data-testid":c,"data-indeterminate":g?"true":void 0,className:ee("sf:flex-1",g&&"sf:opacity-60")}),f.jsx("span",{"data-testid":`${c}-value`,className:"sf:w-12 sf:shrink-0 sf:text-right sf:text-xs sf:tabular-nums sf:text-muted-foreground",children:g?"Mixed":f.jsxs(f.Fragment,{children:[h,r]})})]})}const Wot="var(--sf-accent)",Uh="var(--sf-alignment-spacing)",Got="4 4",Kot=.6,vi=5,JK=44,eX=18,Xot={position:"absolute",top:0,left:0,width:1,height:1,overflow:"visible",pointerEvents:"none"};function Wu(e,t,n,o,r,a,i=!0){return f.jsx("line",{x1:e,y1:t,x2:n,y2:o,stroke:r,strokeWidth:1,opacity:Kot,strokeDasharray:i?Got:void 0,"vector-effect":"non-scaling-stroke"},a)}function Zot(e,t){const[n,o,r,a]=e.kind==="v"?[e.x,e.y1,e.x,e.y2]:[e.x1,e.y,e.x2,e.y];return Wu(n,o,r,a,Wot,t)}function Yot(e,t){const n=e.kind==="spacing-v",o=e.kind==="spacing-v"?e.x1:e.x,r=e.kind==="spacing-v"?e.y:e.y1,a=e.kind==="spacing-v"?e.x2:e.x,i=e.kind==="spacing-v"?e.y:e.y2,s=(o+a)/2,c=(r+i)/2,l=n?[Wu(o,r-vi,o,r+vi,Uh,"cap-a",!1),Wu(a,i-vi,a,i+vi,Uh,"cap-b",!1)]:[Wu(o-vi,r,o+vi,r,Uh,"cap-a",!1),Wu(a-vi,i,a+vi,i,Uh,"cap-b",!1)];return f.jsxs("g",{children:[Wu(o,r,a,i,Uh,"main"),l,f.jsx("foreignObject",{x:s-JK/2,y:c-eX/2,width:JK,height:eX,children:f.jsx("span",{className:"sf:flex sf:h-full sf:w-full sf:items-center sf:justify-center sf:rounded sf:bg-[var(--sf-alignment-spacing)] sf:px-1 sf:text-[10px] sf:font-medium sf:leading-none sf:text-white",children:`${Math.round(e.gap)}px`})})]},t)}function Qot({guides:e}){return e.length===0?null:f.jsx("svg",{"aria-hidden":"true",style:Xot,children:e.map((t,n)=>{const o=`${t.kind}-${n}`;return t.kind==="v"||t.kind==="h"?Zot(t,o):Yot(t,o)})})}const ot=1e-6,zae=(e,t)=>Math.abs(e-t)<=ot;function Jot(e,t){if(t){const n=[];return t.left&&n.push({value:e.x,isCenter:!1}),t.right&&n.push({value:e.x+e.w,isCenter:!1}),n}return[{value:e.x,isCenter:!1},{value:e.x+e.w/2,isCenter:!0},{value:e.x+e.w,isCenter:!1}]}function ert(e,t){if(t){const n=[];return t.top&&n.push({value:e.y,isCenter:!1}),t.bottom&&n.push({value:e.y+e.h,isCenter:!1}),n}return[{value:e.y,isCenter:!1},{value:e.y+e.h/2,isCenter:!0},{value:e.y+e.h,isCenter:!1}]}function Rae(e){return[e.x,e.x+e.w/2,e.x+e.w]}function Tae(e){return[e.y,e.y+e.h/2,e.y+e.h]}function trt(e,t,n){const o=e.x<t.x+t.w-ot&&t.x<e.x+e.w-ot,r=e.y<t.y+t.h-ot&&t.y<e.y+e.h-ot;if(o&&r)return!0;if(o){const a=t.y+t.h<=e.y+ot;for(const i of n){if(i.id===e.id||i.id===t.id)continue;const s=i.x<e.x+e.w-ot&&e.x<i.x+i.w-ot,c=i.x<t.x+t.w-ot&&t.x<i.x+i.w-ot;if(!s||!c)continue;if(a?i.y+i.h>t.y+ot&&i.y<e.y-ot:i.y+i.h>e.y+e.h+ot&&i.y<t.y-ot)return!1}return!0}if(r){const a=t.x>=e.x+e.w-ot;for(const i of n){if(i.id===e.id||i.id===t.id)continue;const s=i.y<e.y+e.h-ot&&e.y<i.y+i.h-ot,c=i.y<t.y+t.h-ot&&t.y<i.y+i.h-ot;if(!s||!c)continue;if(a?i.x+i.w>e.x+e.w+ot&&i.x<t.x-ot:i.x+i.w>t.x+t.w+ot&&i.x<e.x-ot)return!1}return!0}return!0}function nrt(e,t){return t.filter(n=>trt(e,n,t))}function tX(e,t,n,o){let r=null;for(const a of e)for(const i of t)for(const s of n(i)){const c=s-a.value,l=Math.abs(c);if(l>o+ot)continue;(r===null||l<r.abs-ot||Math.abs(l-r.abs)<=ot&&a.isCenter&&!r.isCenter)&&(r={delta:c,abs:l,isCenter:a.isCenter,line:s})}return r?{delta:r.delta,line:r.line}:null}function ort(e,t,n){const o=n.filter(i=>Rae(i).some(s=>zae(s,e)));let r=t.y,a=t.y+t.h;for(const i of o)r=Math.min(r,i.y),a=Math.max(a,i.y+i.h);return{kind:"v",x:e,y1:r,y2:a,refIds:o.map(i=>i.id)}}function rrt(e,t,n){const o=n.filter(i=>Tae(i).some(s=>zae(s,e)));let r=t.x,a=t.x+t.w;for(const i of o)r=Math.min(r,i.x),a=Math.max(a,i.x+i.w);return{kind:"h",y:e,x1:r,x2:a,refIds:o.map(i=>i.id)}}function nX(e,t,n,o){if(n.length<2)return null;const r=[...n].sort((s,c)=>s.lo-c.lo),a=[];for(let s=0;s<r.length-1;s++){const c=r[s],l=r[s+1];if(!c||!l)continue;const h=l.lo-c.hi;if(h>=t-ot){const p=(h-t)/2,y=c.hi+p;a.push({targetLo:y,segments:[{from:c.hi,to:y,gap:p},{from:y+t,to:l.lo,gap:p}]})}const d=l.lo-c.hi;if(d>=-ot){const p=l.hi+d;a.push({targetLo:p,segments:[{from:c.hi,to:l.lo,gap:d},{from:l.hi,to:p,gap:d}]});const y=c.lo-d-t;a.push({targetLo:y,segments:[{from:y+t,to:c.lo,gap:d},{from:c.hi,to:l.lo,gap:d}]})}}let i=null;for(const s of a){const c=s.targetLo-e,l=Math.abs(c);l>o+ot||(i===null||l<i.abs-ot)&&(i={delta:c,abs:l,segments:s.segments})}return i?{delta:i.delta,segments:i.segments}:null}function oX(e,t,n,o={}){const{resizeMode:r=!1,activeEdges:a}=o,i=[],s=nrt(e,t),c=tX(Jot(e,a),s,Rae,n),l=tX(ert(e,a),s,Tae,n);let h=e.x+((c==null?void 0:c.delta)??0),d=e.y+((l==null?void 0:l.delta)??0);const p={...e,x:h,y:d};if(c&&i.push(ort(c.line,p,s)),l&&i.push(rrt(l.line,p,s)),c||l){if(!c){const y=s.filter(k=>p.y<k.y+k.h-ot&&k.y<p.y+p.h-ot),g=nX(p.x,e.w,y.map(k=>({lo:k.x,hi:k.x+k.w})),n);if(g){r||(h+=g.delta);const k=p.y+p.h/2;for(const x of g.segments)i.push({kind:"spacing-v",x1:x.from,x2:x.to,y:k,gap:x.gap})}}if(!l){const y=s.filter(k=>p.x<k.x+k.w-ot&&k.x<p.x+p.w-ot),g=nX(p.y,e.h,y.map(k=>({lo:k.y,hi:k.y+k.h})),n);if(g){r||(d+=g.delta);const k=p.x+p.w/2;for(const x of g.segments)i.push({kind:"spacing-h",y1:x.from,y2:x.to,x:k,gap:x.gap})}}}return{snappedX:h,snappedY:d,guides:i}}function Dae(e){var t,n;return e?{w:((t=e.measured)==null?void 0:t.width)??e.width??0,h:((n=e.measured)==null?void 0:n.height)??e.height??0}:{w:0,h:0}}function rX(e){const{w:t,h:n}=Dae(e);return{id:e.id,x:e.position.x,y:e.position.y,w:t,h:n}}function art(e){switch(e.kind){case"v":return`v|${e.x}|${e.refIds.join(",")}`;case"h":return`h|${e.y}|${e.refIds.join(",")}`;case"spacing-v":return`spacing-v|${e.x1},${e.x2},${e.y}|${e.gap}`;case"spacing-h":return`spacing-h|${e.y1},${e.y2},${e.x}|${e.gap}`}}function irt(e){return e.map(art).join(";")}function srt(e){const{enabled:t,thresholdPx:n,viewport:o,rfNodesRef:r}=e,[a,i]=m.useState([]),s=m.useRef(null),c=m.useRef(null),l=m.useRef(null),h=m.useRef(null),d=m.useRef(null),p=m.useRef(""),y=n/(o.zoom||1),g=m.useCallback(_=>{h.current=_,d.current===null&&(d.current=globalThis.requestAnimationFrame(()=>{d.current=null;const S=h.current??[];h.current=null;const L=irt(S);L!==p.current&&(p.current=L,i(S))}))},[]),k=m.useCallback(()=>{d.current!==null&&(globalThis.cancelAnimationFrame(d.current),d.current=null),h.current=null,p.current!==""&&(p.current="",i([]))},[]),x=m.useCallback(_=>{const S=new Set(_);s.current=r.current.filter(L=>!S.has(L.id)).map(rX)},[r]),v=m.useCallback((_,S)=>{if(!t)return _;if(S.metaKey||S.ctrlKey)return g([]),_;const L=s.current;if(!L)return _;let A=Number.POSITIVE_INFINITY,I=Number.POSITIVE_INFINITY,R=Number.NEGATIVE_INFINITY,j=Number.NEGATIVE_INFINITY,V=0;for(const z of _){if(z.type!=="position"||!z.position||!z.id)continue;const E=r.current.find(O=>O.id===z.id),{w:N,h:W}=Dae(E);A=Math.min(A,z.position.x),I=Math.min(I,z.position.y),R=Math.max(R,z.position.x+N),j=Math.max(j,z.position.y+W),V++}if(V===0)return _;const $={id:"__sf_selection__",x:A,y:I,w:R-A,h:j-I},T=oX($,L,y);g(T.guides);const D=T.snappedX-$.x,F=T.snappedY-$.y;return D===0&&F===0?_:_.map(z=>z.type==="position"&&z.position?{...z,position:{x:z.position.x+D,y:z.position.y+F}}:z)},[t,y,r,g]),M=m.useCallback(()=>{s.current=null,k()},[k]),w=m.useCallback((_,S)=>{c.current=_,l.current=S,s.current=r.current.filter(L=>L.id!==_).map(rX)},[r]),b=m.useCallback((_,S)=>{if(!t)return{snappedRect:_,guides:[]};if(S.metaKey||S.ctrlKey)return g([]),{snappedRect:_,guides:[]};const L=s.current,A=l.current;if(!L||!A)return{snappedRect:_,guides:[]};const I={..._,id:c.current??_.id},R=oX(I,L,y,{resizeMode:!0,activeEdges:A});g(R.guides);const j=R.snappedX-I.x,V=R.snappedY-I.y;let{x:$,y:T,w:D,h:F}=_;return A.left?($=_.x+j,D=_.w-j):A.right&&(D=_.w+j),A.top?(T=_.y+V,F=_.h-V):A.bottom&&(F=_.h+V),{snappedRect:{id:_.id,x:$,y:T,w:D,h:F},guides:R.guides}},[t,y,g]),C=m.useCallback(()=>{c.current=null,l.current=null,s.current=null,k()},[k]);return{guides:a,beginGesture:x,interceptChanges:v,endGesture:M,beginResize:w,applyResizeSnap:b,endResize:C}}function crt(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),o=n.createElement("base"),r=n.createElement("a");return n.head.appendChild(o),n.body.appendChild(r),t&&(o.href=t),r.href=e,r.href}const lrt=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function Ki(e){const t=[];for(let n=0,o=e.length;n<o;n++)t.push(e[n]);return t}let Hu=null;function Hae(e={}){return Hu||(e.includeStyleProperties?(Hu=e.includeStyleProperties,Hu):(Hu=Ki(window.getComputedStyle(document.documentElement)),Hu))}function Bz(e,t){const o=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return o?parseFloat(o.replace("px","")):0}function drt(e){const t=Bz(e,"border-left-width"),n=Bz(e,"border-right-width");return e.clientWidth+t+n}function urt(e){const t=Bz(e,"border-top-width"),n=Bz(e,"border-bottom-width");return e.clientHeight+t+n}function Oae(e,t={}){const n=t.width||drt(e),o=t.height||urt(e);return{width:n,height:o}}function hrt(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const io=16384;function frt(e){(e.width>io||e.height>io)&&(e.width>io&&e.height>io?e.width>e.height?(e.height*=io/e.width,e.width=io):(e.width*=io/e.height,e.height=io):e.width>io?(e.height*=io/e.width,e.width=io):(e.width*=io/e.height,e.height=io))}function Uz(e){return new Promise((t,n)=>{const o=new Image;o.onload=()=>{o.decode().then(()=>{requestAnimationFrame(()=>t(o))})},o.onerror=n,o.crossOrigin="anonymous",o.decoding="async",o.src=e})}async function prt(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function yrt(e,t,n){const o="http://www.w3.org/2000/svg",r=document.createElementNS(o,"svg"),a=document.createElementNS(o,"foreignObject");return r.setAttribute("width",`${t}`),r.setAttribute("height",`${n}`),r.setAttribute("viewBox",`0 0 ${t} ${n}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),r.appendChild(a),a.appendChild(e),prt(r)}const Jn=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||Jn(n,t)};function mrt(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function grt(e,t){return Hae(t).map(n=>{const o=e.getPropertyValue(n),r=e.getPropertyPriority(n);return`${n}: ${o}${r?" !important":""};`}).join(" ")}function krt(e,t,n,o){const r=`.${e}:${t}`,a=n.cssText?mrt(n):grt(n,o);return document.createTextNode(`${r}{${a}}`)}function aX(e,t,n,o){const r=window.getComputedStyle(e,n),a=r.getPropertyValue("content");if(a===""||a==="none")return;const i=lrt();try{t.className=`${t.className} ${i}`}catch{return}const s=document.createElement("style");s.appendChild(krt(i,n,r,o)),t.appendChild(s)}function vrt(e,t,n){aX(e,t,":before",n),aX(e,t,":after",n)}const iX="application/font-woff",sX="image/jpeg",xrt={woff:iX,woff2:iX,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:sX,jpeg:sX,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function wrt(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function jV(e){const t=wrt(e).toLowerCase();return xrt[t]||""}function Mrt(e){return e.split(/,/)[1]}function QO(e){return e.search(/^(data:)/)!==-1}function brt(e,t){return`data:${t};base64,${e}`}async function Fae(e,t,n){const o=await fetch(e,t);if(o.status===404)throw new Error(`Resource "${o.url}" not found`);const r=await o.blob();return new Promise((a,i)=>{const s=new FileReader;s.onerror=i,s.onloadend=()=>{try{a(n({res:o,result:s.result}))}catch(c){i(c)}},s.readAsDataURL(r)})}const qD={};function _rt(e,t,n){let o=e.replace(/\?.*/,"");return n&&(o=e),/ttf|otf|eot|woff2?/i.test(o)&&(o=o.replace(/.*\//,"")),t?`[${t}]${o}`:o}async function $V(e,t,n){const o=_rt(e,t,n.includeQueryParams);if(qD[o]!=null)return qD[o];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let r;try{const a=await Fae(e,n.fetchRequestInit,({res:i,result:s})=>(t||(t=i.headers.get("Content-Type")||""),Mrt(s)));r=brt(a,t)}catch(a){r=n.imagePlaceholder||"";let i=`Failed to fetch resource: ${e}`;a&&(i=typeof a=="string"?a:a.message),i&&console.warn(i)}return qD[o]=r,r}async function Crt(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):Uz(t)}async function Srt(e,t){if(e.currentSrc){const a=document.createElement("canvas"),i=a.getContext("2d");a.width=e.clientWidth,a.height=e.clientHeight,i==null||i.drawImage(e,0,0,a.width,a.height);const s=a.toDataURL();return Uz(s)}const n=e.poster,o=jV(n),r=await $V(n,o,t);return Uz(r)}async function Lrt(e,t){var n;try{if(!((n=e==null?void 0:e.contentDocument)===null||n===void 0)&&n.body)return await oT(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function Nrt(e,t){return Jn(e,HTMLCanvasElement)?Crt(e):Jn(e,HTMLVideoElement)?Srt(e,t):Jn(e,HTMLIFrameElement)?Lrt(e,t):e.cloneNode(qae(e))}const Irt=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",qae=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function Art(e,t,n){var o,r;if(qae(t))return t;let a=[];return Irt(e)&&e.assignedNodes?a=Ki(e.assignedNodes()):Jn(e,HTMLIFrameElement)&&(!((o=e.contentDocument)===null||o===void 0)&&o.body)?a=Ki(e.contentDocument.body.childNodes):a=Ki(((r=e.shadowRoot)!==null&&r!==void 0?r:e).childNodes),a.length===0||Jn(e,HTMLVideoElement)||await a.reduce((i,s)=>i.then(()=>oT(s,n)).then(c=>{c&&t.appendChild(c)}),Promise.resolve()),t}function Ert(e,t,n){const o=t.style;if(!o)return;const r=window.getComputedStyle(e);r.cssText?(o.cssText=r.cssText,o.transformOrigin=r.transformOrigin):Hae(n).forEach(a=>{let i=r.getPropertyValue(a);a==="font-size"&&i.endsWith("px")&&(i=`${Math.floor(parseFloat(i.substring(0,i.length-2)))-.1}px`),Jn(e,HTMLIFrameElement)&&a==="display"&&i==="inline"&&(i="block"),a==="d"&&t.getAttribute("d")&&(i=`path(${t.getAttribute("d")})`),o.setProperty(a,i,r.getPropertyPriority(a))})}function jrt(e,t){Jn(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),Jn(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function $rt(e,t){if(Jn(e,HTMLSelectElement)){const n=t,o=Array.from(n.children).find(r=>e.value===r.getAttribute("value"));o&&o.setAttribute("selected","")}}function Prt(e,t,n){return Jn(t,Element)&&(Ert(e,t,n),vrt(e,t,n),jrt(e,t),$rt(e,t)),t}async function zrt(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const o={};for(let a=0;a<n.length;a++){const s=n[a].getAttribute("xlink:href");if(s){const c=e.querySelector(s),l=document.querySelector(s);!c&&l&&!o[s]&&(o[s]=await oT(l,t,!0))}}const r=Object.values(o);if(r.length){const a="http://www.w3.org/1999/xhtml",i=document.createElementNS(a,"svg");i.setAttribute("xmlns",a),i.style.position="absolute",i.style.width="0",i.style.height="0",i.style.overflow="hidden",i.style.display="none";const s=document.createElementNS(a,"defs");i.appendChild(s);for(let c=0;c<r.length;c++)s.appendChild(r[c]);e.appendChild(i)}return e}async function oT(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(o=>Nrt(o,t)).then(o=>Art(e,o,t)).then(o=>Prt(e,o,t)).then(o=>zrt(o,t))}const Vae=/url\((['"]?)([^'"]+?)\1\)/g,Rrt=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Trt=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Drt(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function Hrt(e){const t=[];return e.replace(Vae,(n,o,r)=>(t.push(r),n)),t.filter(n=>!QO(n))}async function Ort(e,t,n,o,r){try{const a=n?crt(t,n):t,i=jV(t);let s;return r||(s=await $V(a,i,o)),e.replace(Drt(t),`$1${s}$3`)}catch{}return e}function Frt(e,{preferredFontFormat:t}){return t?e.replace(Trt,n=>{for(;;){const[o,,r]=Rrt.exec(n)||[];if(!r)return"";if(r===t)return`src: ${o};`}}):e}function Bae(e){return e.search(Vae)!==-1}async function Uae(e,t,n){if(!Bae(e))return e;const o=Frt(e,n);return Hrt(o).reduce((a,i)=>a.then(s=>Ort(s,i,t,n)),Promise.resolve(o))}async function Ou(e,t,n){var o;const r=(o=t.style)===null||o===void 0?void 0:o.getPropertyValue(e);if(r){const a=await Uae(r,null,n);return t.style.setProperty(e,a,t.style.getPropertyPriority(e)),!0}return!1}async function qrt(e,t){await Ou("background",e,t)||await Ou("background-image",e,t),await Ou("mask",e,t)||await Ou("-webkit-mask",e,t)||await Ou("mask-image",e,t)||await Ou("-webkit-mask-image",e,t)}async function Vrt(e,t){const n=Jn(e,HTMLImageElement);if(!(n&&!QO(e.src))&&!(Jn(e,SVGImageElement)&&!QO(e.href.baseVal)))return;const o=n?e.src:e.href.baseVal,r=await $V(o,jV(o),t);await new Promise((a,i)=>{e.onload=a,e.onerror=t.onImageErrorHandler?(...c)=>{try{a(t.onImageErrorHandler(...c))}catch(l){i(l)}}:i;const s=e;s.decode&&(s.decode=a),s.loading==="lazy"&&(s.loading="eager"),n?(e.srcset="",e.src=r):e.href.baseVal=r})}async function Brt(e,t){const o=Ki(e.childNodes).map(r=>Wae(r,t));await Promise.all(o).then(()=>e)}async function Wae(e,t){Jn(e,Element)&&(await qrt(e,t),await Vrt(e,t),await Brt(e,t))}function Urt(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const o=t.style;return o!=null&&Object.keys(o).forEach(r=>{n[r]=o[r]}),e}const cX={};async function lX(e){let t=cX[e];if(t!=null)return t;const o=await(await fetch(e)).text();return t={url:e,cssText:o},cX[e]=t,t}async function dX(e,t){let n=e.cssText;const o=/url\(["']?([^"')]+)["']?\)/g,a=(n.match(/url\([^)]+\)/g)||[]).map(async i=>{let s=i.replace(o,"$1");return s.startsWith("https://")||(s=new URL(s,e.url).href),Fae(s,t.fetchRequestInit,({result:c})=>(n=n.replace(i,`url(${c})`),[i,c]))});return Promise.all(a).then(()=>n)}function uX(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let o=e.replace(n,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=r.exec(o);if(c===null)break;t.push(c[0])}o=o.replace(r,"");const a=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(i,"gi");for(;;){let c=a.exec(o);if(c===null){if(c=s.exec(o),c===null)break;a.lastIndex=s.lastIndex}else s.lastIndex=a.lastIndex;t.push(c[0])}return t}async function Wrt(e,t){const n=[],o=[];return e.forEach(r=>{if("cssRules"in r)try{Ki(r.cssRules||[]).forEach((a,i)=>{if(a.type===CSSRule.IMPORT_RULE){let s=i+1;const c=a.href,l=lX(c).then(h=>dX(h,t)).then(h=>uX(h).forEach(d=>{try{r.insertRule(d,d.startsWith("@import")?s+=1:r.cssRules.length)}catch(p){console.error("Error inserting rule from remote css",{rule:d,error:p})}})).catch(h=>{console.error("Error loading remote css",h.toString())});o.push(l)}})}catch(a){const i=e.find(s=>s.href==null)||document.styleSheets[0];r.href!=null&&o.push(lX(r.href).then(s=>dX(s,t)).then(s=>uX(s).forEach(c=>{i.insertRule(c,i.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",a)}}),Promise.all(o).then(()=>(e.forEach(r=>{if("cssRules"in r)try{Ki(r.cssRules||[]).forEach(a=>{n.push(a)})}catch(a){console.error(`Error while reading CSS rules from ${r.href}`,a)}}),n))}function Grt(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>Bae(t.style.getPropertyValue("src")))}async function Krt(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=Ki(e.ownerDocument.styleSheets),o=await Wrt(n,t);return Grt(o)}function Gae(e){return e.trim().replace(/["']/g,"")}function Xrt(e){const t=new Set;function n(o){(o.style.fontFamily||getComputedStyle(o).fontFamily).split(",").forEach(a=>{t.add(Gae(a))}),Array.from(o.children).forEach(a=>{a instanceof HTMLElement&&n(a)})}return n(e),t}async function Zrt(e,t){const n=await Krt(e,t),o=Xrt(e);return(await Promise.all(n.filter(a=>o.has(Gae(a.style.fontFamily))).map(a=>{const i=a.parentStyleSheet?a.parentStyleSheet.href:null;return Uae(a.cssText,i,t)}))).join(`
8544
- `)}async function Yrt(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await Zrt(e,t);if(n){const o=document.createElement("style"),r=document.createTextNode(n);o.appendChild(r),e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o)}}async function Qrt(e,t={}){const{width:n,height:o}=Oae(e,t),r=await oT(e,t,!0);return await Yrt(r,t),await Wae(r,t),Urt(r,t),await yrt(r,n,o)}async function Jrt(e,t={}){const{width:n,height:o}=Oae(e,t),r=await Qrt(e,t),a=await Uz(r),i=document.createElement("canvas"),s=i.getContext("2d"),c=t.pixelRatio||hrt(),l=t.canvasWidth||n,h=t.canvasHeight||o;return i.width=l*c,i.height=h*c,t.skipAutoScale||frt(i),i.style.width=`${l}`,i.style.height=`${h}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,i.width,i.height)),s.drawImage(a,0,0,i.width,i.height),i}async function eat(e,t={}){return(await Jrt(e,t)).toDataURL()}const tat=e=>e instanceof Element?!(e.classList.contains("react-flow__minimap")||e.classList.contains("react-flow__controls")||e.classList.contains("react-flow__panel")):!0,nat=e=>{var o;let t=e;for(;t&&!t.classList.contains("seeflow-canvas-root");)t=t.parentElement;if(t){const r=getComputedStyle(t).getPropertyValue("--bg-canvas").trim();if(r.length>0)return r}const n=(o=e.ownerDocument)==null?void 0:o.documentElement;return n!=null&&n.classList.contains("dark")?"#0a0a0c":"#fafafa"},oat=async e=>{const t=await eat(e,{cacheBust:!0,filter:tat,backgroundColor:nat(e)}),n=await new Promise((o,r)=>{const a=new Image;a.onload=()=>o({width:a.naturalWidth,height:a.naturalHeight}),a.onerror=()=>r(new Error("Failed to decode captured image")),a.src=t});return{dataUrl:t,...n}},rat=(e,t)=>{const n=document.createElement("a");n.href=e,n.download=t,n.rel="noopener",document.body.appendChild(n),n.click(),n.remove()},aat=e=>{const t=e.replace(/[^A-Za-z0-9_-]+/g,"-").replace(/^-+|-+$/g,"");return t.length>0?t.slice(0,80):"canvas"},hX=(e,t)=>`${aat(e??"canvas")}.${t}`,iat=({projectId:e,getReactFlow:t})=>{const[n,o]=m.useState(null),r=m.useCallback(()=>o(null),[]),a=m.useCallback(async()=>{const l=t();if(!l)return null;const h=document.querySelector(".react-flow__viewport");if(!h)return null;const d=l.getViewport();try{return await l.fitView({duration:0,padding:.1}),await new Promise(p=>requestAnimationFrame(()=>p())),await oat(h)}finally{l.setViewport(d,{duration:0})}},[t]),i=m.useCallback(async()=>{o(null);try{const l=await a();if(!l)return;rat(l.dataUrl,hX(e,"png"))}catch(l){o(l instanceof Error?l.message:String(l))}},[a,e]),s=m.useCallback(async()=>{o(null);try{const l=await a();if(!l)return;const{jsPDF:h}=await sh(async()=>{const{jsPDF:y}=await import("./jspdf.es.min-ByBlwSRB.js").then(g=>g.j);return{jsPDF:y}},[]),d=l.width>l.height?"landscape":"portrait",p=new h({orientation:d,unit:"px",format:[l.width,l.height],hotfixes:["px_scaling"]});p.addImage(l.dataUrl,"PNG",0,0,l.width,l.height),p.save(hX(e,"pdf"))}catch(l){o(l instanceof Error?l.message:String(l))}},[a,e]),c=m.useCallback(async()=>{const l=await a();return l==null?void 0:l.dataUrl},[a]);return{exportPdf:s,exportPng:i,capturePreview:c,lastError:n,clearError:r}},sat=12,cat=1200;function lat(e,t={}){const n=t.idleMs??cat;let o,r=null,a=null;const i=typeof requestAnimationFrame<"u",s=()=>{o!==void 0&&(clearTimeout(o),o=void 0)},c=()=>{a!==null&&typeof cancelAnimationFrame<"u"&&cancelAnimationFrame(a),a=null},l=()=>{if(a=null,!r)return;const{clientX:y,clientY:g}=r;r=null;const k=e.getBoundingClientRect();e.style.setProperty("--mx",`${y-k.left}px`),e.style.setProperty("--my",`${g-k.top}px`),e.dataset.active="true",s(),o=setTimeout(()=>{e.dataset.active="false",o=void 0},n)};return{onMove:y=>{if(r={clientX:y.clientX,clientY:y.clientY},!i){l();return}a===null&&(a=requestAnimationFrame(l))},onLeave:()=>{c(),r=null,s(),e.dataset.active="false"},dispose:()=>{c(),r=null,s()}}}function dat(){const e=m.useRef(null),t=je(i=>i.transform,(i,s)=>i[0]===s[0]&&i[1]===s[1]&&i[2]===s[2]),[n,o,r]=t,a=sat*r;return m.useEffect(()=>{var d;const i=e.current;if(!i)return;const s=(d=i.parentElement)==null?void 0:d.querySelector(".react-flow__pane");if(!s)return;const{onMove:c,onLeave:l,dispose:h}=lat(i);return s.addEventListener("mousemove",c,{passive:!0}),s.addEventListener("mouseleave",l,{passive:!0}),()=>{s.removeEventListener("mousemove",c),s.removeEventListener("mouseleave",l),h()}},[]),f.jsx("div",{ref:e,className:"glow-overlay","data-active":"false","data-testid":"canvas-glow-overlay",style:{backgroundPosition:`${n}px ${o}px`,backgroundSize:`${a}px ${a}px`}})}const uat="Hide inspector",hat="Open inspector";function fat({open:e,onToggle:t}){const n=e?v0:S2,o=e?uat:hat;return f.jsx(I0,{delayDuration:300,children:f.jsxs(mh,{children:[f.jsx(gh,{asChild:!0,children:f.jsx(rt,{type:"button",variant:"ghost",size:"icon","data-testid":"inspector-toggle","aria-pressed":e,"aria-label":o,onClick:t,className:"sf:h-8 sf:w-8",children:f.jsx(n,{className:"sf:h-4 sf:w-4","aria-hidden":"true"})})}),f.jsx(pu,{children:o})]})})}const pat={showToolbar:!0,showStyleStrip:!0,showDetailPanel:!0,showStatusBadges:!0,showResizeHandles:!0,showControls:!0,showShareMenu:!0,showMiniMap:!0,enableKeyboard:!0,enableContextMenu:!0,enableDragDrop:!0,enableImageDrop:!0,enableZoom:!0,enablePan:!0,enableSelection:!0,enableNodeMove:!0,enableEmbed:!1,enableAlignmentGuides:!0},yat={showToolbar:!0,showStyleStrip:!1,showDetailPanel:!1,showStatusBadges:!0,showResizeHandles:!1,showControls:!0,showShareMenu:!0,showMiniMap:!0,enableKeyboard:!1,enableContextMenu:!1,enableDragDrop:!1,enableImageDrop:!1,enableZoom:!0,enablePan:!0,enableSelection:!0,enableNodeMove:!0,enableEmbed:!1,enableAlignmentGuides:!1},mat={showToolbar:!1,showStyleStrip:!1,showDetailPanel:!1,showStatusBadges:!1,showResizeHandles:!1,showControls:!1,showShareMenu:!1,showMiniMap:!1,enableKeyboard:!1,enableContextMenu:!1,enableDragDrop:!1,enableImageDrop:!1,enableZoom:!1,enablePan:!1,enableSelection:!1,enableNodeMove:!1,enableEmbed:!1,enableAlignmentGuides:!1};function gat(e){const t=e.mode==="edit"?pat:e.mode==="mini"?mat:yat;return{showToolbar:e.showToolbar??t.showToolbar,showStyleStrip:e.showStyleStrip??t.showStyleStrip,showDetailPanel:e.showDetailPanel??t.showDetailPanel,showStatusBadges:e.showStatusBadges??t.showStatusBadges,showResizeHandles:e.showResizeHandles??t.showResizeHandles,showControls:e.showControls??t.showControls,showShareMenu:e.showShareMenu??t.showShareMenu,showMiniMap:e.showMiniMap??t.showMiniMap,enableKeyboard:e.enableKeyboard??t.enableKeyboard,enableContextMenu:e.enableContextMenu??t.enableContextMenu,enableDragDrop:e.enableDragDrop??t.enableDragDrop,enableImageDrop:e.enableImageDrop??t.enableImageDrop,enableZoom:e.enableZoom??t.enableZoom,enablePan:e.enablePan??t.enablePan,enableSelection:e.enableSelection??t.enableSelection,enableNodeMove:e.enableNodeMove??t.enableNodeMove,enableEmbed:e.enableEmbed??t.enableEmbed,enableAlignmentGuides:e.enableAlignmentGuides??t.enableAlignmentGuides,alignmentSnapThreshold:e.alignmentSnapThreshold}}const py=40,fX=4,Wh={padding:.15,duration:300,includeHiddenNodes:!1};function kat(e){return e===void 0||e===!1?{onMount:!1,onExternalNodeChange:!1}:e===!0?{onMount:!0,onExternalNodeChange:!0}:{onMount:e.onMount??!0,onExternalNodeChange:e.onExternalNodeChange??!0}}const pX=e=>{if("clientX"in e)return{clientX:e.clientX,clientY:e.clientY};const t=e.changedTouches[0]??e.touches[0];return t?{clientX:t.clientX,clientY:t.clientY}:null},vat=(e,t)=>{var o;const n=document.elementsFromPoint(e,t);for(const r of n){const a=(o=r.closest)==null?void 0:o.call(r,".react-flow__node");if(a)return a}return null},Kae=15,VD=(e,t,n)=>{const o=vat(t,n);if(o)return o;if(!e)return null;let r=null,a=Kae;const i=e.querySelectorAll(".react-flow__node");for(const s of i){const c=s.getBoundingClientRect();if(c.width===0||c.height===0)continue;const l=Math.max(c.left-t,0,t-c.right),h=Math.max(c.top-n,0,n-c.bottom),d=Math.hypot(l,h);d<=a&&(r=s,a=d)}return r};function yX(e,t,n,o,r){if(e==="source"?(o==null?void 0:o.targetPin)!==void 0||(o==null?void 0:o.targetHandleAutoPicked)===!1:(o==null?void 0:o.sourcePin)!==void 0||(o==null?void 0:o.sourceHandleAutoPicked)===!1)return;const i=e==="source"?n:t,s=e==="source"?t:n,c=r(i),l=r(s);if(!c||!l)return;const h=c.measured.width??c.width??0,d=c.measured.height??c.height??0,p=l.measured.width??l.width??0,y=l.measured.height??l.height??0;if(h===0||d===0||p===0||y===0)return;const g={x:c.internals.positionAbsolute.x,y:c.internals.positionAbsolute.y,w:h,h:d},k={x:l.internals.positionAbsolute.x+p/2,y:l.internals.positionAbsolute.y+y/2};return cOe(g,wf(g,k))}function xat(e,t,n,o){if(o===null)return"no-op";const r=e==="source"?t:n;return o===(e==="source"?n:t)?"self-loop":o===r?"pin-own":"reconnect-and-pin"}const wat=(e,t)=>{if(!t)return e;const n=t.data?{...e.data,...t.data}:e.data;return{...e,...t,data:n}},Mat=(e,t)=>t?{...e,...t}:e,bat={rectangle:lGe,ellipse:ao,sticky:ao,text:ao,database:ao,server:ao,user:ao,queue:ao,cloud:ao,diamond:ao,hexagon:ao,triangle:ao,parallelogram:ao,document:ao,image:JWe,icon:wOe,html:KWe,component:lWe,linkflow:oGe},_at={editableEdge:pGe},Cat={zIndex:0},Sat={hideAttribution:!0},Lat=8,mX=(e,t)=>e?typeof e=="string"?`url('#${e}')`:`url('#${`${t?`${t}__`:""}${Object.keys(e).sort().map(r=>`${r}=${e[r]}`).join("&")}`}')`:void 0,Nat=e=>function({fromX:n,fromY:o,toX:r,toY:a,fromPosition:i,toPosition:s,connectionLineStyle:c}){const l=je(me=>e.current?me.edges.find(Ae=>Ae.reconnectable===!0)??null:null),h=l==null?void 0:l.data,d=l?null:c0(ja).connector,p=je(me=>{var Ue;const Ae=me.connection;return((Ue=Ae==null?void 0:Ae.fromHandle)==null?void 0:Ue.nodeId)??null}),y=je(me=>l!=null&&l.source?me.nodeLookup.get(l.source)??null:null),g=je(me=>l!=null&&l.target?me.nodeLookup.get(l.target)??null:null),k=je(me=>p?me.nodeLookup.get(p)??null:null),x=(l==null?void 0:l.source)===p,v=l?x?y:g:k,M=x?g:y,w=x?h==null?void 0:h.sourcePin:h==null?void 0:h.targetPin,b=x?h==null?void 0:h.sourceHandleAutoPicked:h==null?void 0:h.targetHandleAutoPicked;let C=n,_=o,S=i,L=null;if(v){const me=v.measured.width??v.width??0,Ae=v.measured.height??v.height??0;if(me>0&&Ae>0){L={x:v.internals.positionAbsolute.x,y:v.internals.positionAbsolute.y,w:me,h:Ae};let Ue=null;if(w)Ue=gz(L,w);else if(b!==!1&&M){const ut=M.measured.width??M.width??0,et=M.measured.height??M.height??0;if(ut>0&&et>0){const le={x:M.internals.positionAbsolute.x+ut/2,y:M.internals.positionAbsolute.y+et/2};Ue=wf(L,le)}}Ue&&(C=Ue.x,_=Ue.y,S=BD[Ue.side])}}const A=je(me=>me.transform[2]),I=je(me=>me.transform[0]),R=je(me=>me.transform[1]),j=je(me=>me.nodeLookup),V=je(me=>{var Ae;return((Ae=me.connection.toHandle)==null?void 0:Ae.nodeId)??null}),$=je(me=>{var Ae;return((Ae=me.connection.pointer)==null?void 0:Ae.x)??null}),T=je(me=>{var Ae;return((Ae=me.connection.pointer)==null?void 0:Ae.y)??null}),D=$!==null&&A>0?($-I)/A:null,F=T!==null&&A>0?(T-R)/A:null;let z=r,E=a,N=s,W=!1;if(A>0){const me=Kae/A,Ae=l?x?l.source:l.target:null;let Ue=null;if(V&&V!==Ae){const ut=j.get(V)??null;ut&&(Ue=ut)}if(!Ue){let ut=me;for(const et of j.values()){if(Ae&&et.id===Ae||v&&et.id===v.id)continue;const le=et.measured.width??et.width??0,rn=et.measured.height??et.height??0;if(le===0||rn===0)continue;const Gt=et.internals.positionAbsolute.x,J=et.internals.positionAbsolute.y,H=Math.max(Gt-r,0,r-(Gt+le)),Q=Math.max(J-a,0,a-(J+rn)),be=Math.hypot(H,Q);be<=ut&&(ut=be,Ue=et)}}if(Ue){const ut=Ue.measured.width??Ue.width??0,et=Ue.measured.height??Ue.height??0;if(ut>0&&et>0){const le={x:Ue.internals.positionAbsolute.x,y:Ue.internals.positionAbsolute.y,w:ut,h:et},Gt=uO(le,D!==null&&F!==null?{x:D,y:F}:{x:r,y:a}),J=gz(le,Gt);if(z=J.x,E=J.y,N=BD[J.side],!l&&L){const H={x:le.x+le.w/2,y:le.y+le.h/2},Q=wf(L,H);C=Q.x,_=Q.y,S=BD[Q.side],W=!0}}}}const O=l?(h==null?void 0:h.path)==="step":(d==null?void 0:d.path)==="step",[P]=O?vf({sourceX:C,sourceY:_,sourcePosition:S,targetX:z,targetY:E,targetPosition:N,borderRadius:Lat}):xR({sourceX:C,sourceY:_,sourcePosition:S,targetX:z,targetY:E,targetPosition:N}),Y=!l&&v?{...d!=null&&d.style?Mee[d.style]:{},...Ct(d==null?void 0:d.color,"edge"),strokeWidth:(d==null?void 0:d.borderSize)??2}:void 0,Z=(l==null?void 0:l.style)??Y??c??void 0,te=je(me=>me.rfId),ie=x?l==null?void 0:l.markerStart:l==null?void 0:l.markerEnd,re=x?l==null?void 0:l.markerEnd:l==null?void 0:l.markerStart,ae=mX(ie,te),se=mX(re,te),ve=Z==null?void 0:Z.stroke,ke=(d==null?void 0:d.direction)??"forward",ge=((d==null?void 0:d.headShape)??"arrow")==="arrow",Pe=((d==null?void 0:d.tailShape)??(d==null?void 0:d.headShape)??"arrow")==="arrow",Be=W&&!!ve,De=Be&&ge&&(ke==="forward"||ke==="both")?kX(z,E,N):null,pe=Be&&Pe&&(ke==="backward"||ke==="both")?kX(C,_,S):null;return f.jsxs(f.Fragment,{children:[f.jsx("path",{d:P,fill:"none",className:"react-flow__connection-path",style:Z,markerStart:ae,markerEnd:se}),De?f.jsx("polygon",{points:De,fill:ve??void 0}):null,pe?f.jsx("polygon",{points:pe,fill:ve??void 0}):null]})},gX=11,yy=5.5;function kX(e,t,n){const o=n===ue.Left?{x:1,y:0}:n===ue.Right?{x:-1,y:0}:n===ue.Top?{x:0,y:1}:{x:0,y:-1},r={x:-o.y,y:o.x},a=e-o.x*gX,i=t-o.y*gX,s=a+r.x*yy,c=i+r.y*yy,l=a-r.x*yy,h=i-r.y*yy;return`${e},${t} ${s},${c} ${l},${h}`}const BD={top:ue.Top,right:ue.Right,bottom:ue.Bottom,left:ue.Left};function Iat({storeApiRef:e}){const t=St();return m.useEffect(()=>(e.current=t,()=>{e.current===t&&(e.current=null)}),[t,e]),null}function Aat({wrapperRef:e}){const t=je(o=>o.transform[2]),n=e.current;return n&&n.style.setProperty("--rf-zoom",String(t)),null}const Eat=new Set(["INPUT","TEXTAREA","SELECT"]),JO=e=>e?Eat.has(e.tagName)?!0:e instanceof HTMLElement&&e.isContentEditable:!1;function jat(e){const{event:t,selectedNodeIds:n,hasClipboard:o,activeElement:r,onCopySelection:a,onPasteSelection:i}=e;if(!(t.metaKey||t.ctrlKey)||t.shiftKey||t.altKey)return!1;const s=t.key.toLowerCase();return s!=="c"&&s!=="v"||JO(r)?!1:s==="c"?n.length===0||!a?!1:(t.preventDefault(),a([...n]),!0):!o||!i?!1:(t.preventDefault(),i(),!0)}const vX=(e,t)=>{var n;return((n=e==null?void 0:e[t])==null?void 0:n.status)??"idle"},$at=(e,t)=>{var n;return(n=e==null?void 0:e[t])==null?void 0:n.status},Pat=(e,t)=>{var n,o;return((n=e==null?void 0:e[t])==null?void 0:n.status)==="error"?(o=e[t])==null?void 0:o.error:void 0};function zat(e,t){var QV,JV,eB;const{mode:n,adapter:o,topLeftSlot:r,topRightSlot:a,projectId:i,flowSlug:s,fileBaseUrl:c,apiBaseUrl:l="/api",studioBaseUrl:h="",nodes:d,connectors:p,selectedNodeIds:y,selectedConnectorIds:g,onSelectionChange:k,runtime:x,onPlayNode:v,onNodePositionChange:M,onNodePositionsChange:w,onNodeResize:b,onNodeResizeEnd:C,onHtmlNodeFitToContent:_,onComponentNodeFitToContent:S,onMultiResize:L,onNodeNameChange:A,onNodeDescriptionChange:I,onConnectorLabelChange:R,onCreateShapeNode:j,onCreateIconNode:V,onCreateLinkflowNode:$,onCreateImageFromFile:T,onRetryImageUpload:D,onCreateHtmlNode:F,onCreateConnector:z,onReconnectConnector:E,onReorderNode:N,onDeleteNode:W,onCopyNode:O,onPasteAt:P,hasClipboard:Y,onCopySelection:Z,onPasteSelection:te,selectedNodes:ie,selectedConnectors:re,onStyleNode:ae,onStyleNodePreview:se,onStyleNodes:ve,onStyleNodesPreview:ke,onStyleConnector:ge,onStyleConnectorPreview:Pe,onRfInit:Be,onTidy:De,onNodeClick:pe,onConnectorClick:me,onPaneClick:Ae,onCreateAndConnectFromPane:Ue,pendingEditNodeId:ut,iconPickerOpen:et,onOpenIconPicker:le,onCloseIconPicker:rn,onPickIcon:Gt,onRequestIconReplace:J,onPinEndpoint:H,onUnpinEndpoint:Q,canvasMode:be,onCanvasModeChange:Ee,disableSidebar:wt,statusReport:gn,onNameChange:an,onDescriptionChange:Fn,onDetailChange:qn,onIconChange:Me,autoFitView:Fe,autoFitViewSignal:dn,customIcons:gr,onExportToCloud:pt,onNodeDragStart:dt,onNodeDragStop:Vn,onViewportChange:ma,history:Qt,showToolbar:Pt,showStyleStrip:Jt,showDetailPanel:mu,showStatusBadges:gu,showResizeHandles:ku,showControls:vu,showShareMenu:xu,showMiniMap:wu,enableKeyboard:hs,enableContextMenu:fs,enableDragDrop:ps,enableImageDrop:ys,enableZoom:ga,enablePan:ka,enableSelection:Mu,enableNodeMove:bu,enableEmbed:Co,enableAlignmentGuides:Qa,alignmentSnapThreshold:Ja}=e,He=m.useMemo(()=>gat({mode:n,showToolbar:Pt,showStyleStrip:Jt,showDetailPanel:mu,showStatusBadges:gu,showResizeHandles:ku,showControls:vu,showShareMenu:xu,showMiniMap:wu,enableKeyboard:hs,enableContextMenu:fs,enableDragDrop:ps,enableImageDrop:ys,enableZoom:ga,enablePan:ka,enableSelection:Mu,enableNodeMove:bu,enableEmbed:Co,enableAlignmentGuides:Qa,alignmentSnapThreshold:Ja}),[n,Pt,Jt,mu,gu,ku,vu,xu,wu,hs,fs,ps,ys,ga,ka,Mu,bu,Co,Qa,Ja]),Ht=n==="edit",ms=m.useRef(He);m.useEffect(()=>{ms.current=He},[He]);const _u=Fe??(n==="mini"?!0:void 0),va=m.useMemo(()=>kat(_u),[_u]),kr=x==null?void 0:x.runs,xa=x==null?void 0:x.statuses,Sn=(QV=x==null?void 0:x.pendingOverrides)==null?void 0:QV.nodes,Oo=(JV=x==null?void 0:x.pendingOverrides)==null?void 0:JV.connectors,kn=m.useRef(null),Ot=m.useRef(null),ei=m.useRef(!1),gs=m.useRef(!1),Fo=m.useRef(!1),ti=m.useRef(va);ti.current=va,m.useEffect(()=>{if(ei.current||!va.onMount||d.length===0)return;const q=Ot.current;q&&(q.fitView(Wh),ei.current=!0)},[d,va.onMount]);const wa=m.useRef(null),en=be.kind==="draw"?be.shape:null,qo=be.kind==="draw-icon"?be.iconName:null,So=en!==null||qo!==null,vr=be.kind==="hand",ni=m.useRef(new Map),Cu=m.useCallback((q,X)=>(ni.current.set(q,X),()=>{ni.current.get(q)===X&&ni.current.delete(q)}),[]),Su=m.useRef(null),Lo=m.useCallback(()=>Su.current,[]),ks=m.useCallback(q=>{Su.current=q},[]),[Vo,xr]=m.useState(!1),Lu=m.useRef(!1);m.useEffect(()=>{Lu.current=Vo},[Vo]);const Ln=m.useRef(!1),no=m.useRef(!1),oo=m.useRef(!1),[Nn,Ma]=m.useState(null),xh=m.useRef(null);m.useEffect(()=>{xh.current=Nn},[Nn]),m.useCallback(()=>{Ma(null)},[]);const rT=m.useMemo(()=>Nat(oo),[]),Nu=m.useRef(null),Lt=m.useRef(null),oi=m.useCallback(q=>{const X=kn.current;if(!X){Nu.current=q;return}const oe=Nu.current;if(oe&&oe!==q){const ce=X.querySelector(`.react-flow__node[data-id="${CSS.escape(oe)}"]`);ce==null||ce.removeAttribute("data-connect-source")}if(q){const ce=X.querySelector(`.react-flow__node[data-id="${CSS.escape(q)}"]`);ce==null||ce.setAttribute("data-connect-source","true")}Nu.current=q},[]),wr=m.useCallback(q=>{const X=kn.current,oe=Lt.current;if(oe!==q){if(X&&oe){const ce=X.querySelector(`.react-flow__node[data-id="${CSS.escape(oe)}"]`);ce==null||ce.removeAttribute("data-connect-target")}if(X&&q){const ce=X.querySelector(`.react-flow__node[data-id="${CSS.escape(q)}"]`);ce==null||ce.setAttribute("data-connect-target","true")}Lt.current=q}},[]),No=m.useCallback(()=>{oi(null),wr(null)},[oi,wr]);m.useEffect(()=>{if(!Vo){wr(null);return}let q=null,X=null;const oe=()=>{q=null;const de=X;if(X=null,!de)return;const Ne=VD(kn.current,de.clientX,de.clientY),xe=(Ne==null?void 0:Ne.getAttribute("data-id"))??null;if(xe&&xe===Nu.current){wr(null);return}wr(xe)},ce=de=>{X={clientX:de.clientX,clientY:de.clientY},q===null&&(q=requestAnimationFrame(oe))};return document.addEventListener("pointermove",ce,{passive:!0}),()=>{document.removeEventListener("pointermove",ce),q!==null&&cancelAnimationFrame(q)}},[Vo,wr]);const[Mr,wh]=m.useState(null),[ri,vs]=m.useState(null),Bo=m.useRef(null),xs=m.useRef(null),ws=m.useRef(null),Ms=m.useRef(null),ai=m.useRef(!1);m.useEffect(()=>{Bo.current=en},[en]),m.useEffect(()=>{xs.current=qo},[qo]);const Mh=m.useCallback(()=>{Ee({kind:"select"}),wh(null),vs(null),Bo.current=null,xs.current=null,ws.current=null,Ms.current=null,ai.current=!1},[Ee]);m.useEffect(()=>{if(!He.enableKeyboard)return;const q=X=>{var de,Ne;if(X.key!=="Escape"||JO(document.activeElement))return;if(Bo.current||xs.current){X.preventDefault(),Mh();return}if(Lu.current){X.preventDefault(),Ln.current=!0,no.current=!0;try{(de=wa.current)==null||de.getState().cancelConnection()}catch{}document.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0,cancelable:!0,button:0})),xr(!1);return}if(xh.current){X.preventDefault(),Ma(null);return}const oe=Wo.current.size>0,ce=ba.current.size>0;(oe||ce)&&(X.preventDefault(),(Ne=Nr.current)==null||Ne.call(Nr,[],[]))};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[Mh,He.enableKeyboard]),m.useEffect(()=>{if(!He.enableKeyboard)return;const q=X=>{const oe=jOe(X,{isEditableActive:JO(document.activeElement)});oe&&Qt&&(X.preventDefault(),X.stopPropagation(),oe==="undo"?Qt.undo():Qt.redo())};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[Qt,He.enableKeyboard]),m.useEffect(()=>{if(!He.enableKeyboard)return;const q=X=>{jat({event:X,selectedNodeIds:y,hasClipboard:!!Y,activeElement:document.activeElement,onCopySelection:Z,onPasteSelection:te})};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[y,Y,Z,te,He.enableKeyboard]);const ap=m.useCallback(q=>{var ce,de;if(!Bo.current&&!xs.current)return;const X=q.target;if(!(X!=null&&X.classList.contains("react-flow__pane")))return;const oe={x:q.clientX,y:q.clientY};ai.current=!0,ws.current=oe,Ms.current=oe,wh(oe),vs(oe);try{(de=(ce=q.currentTarget).setPointerCapture)==null||de.call(ce,q.pointerId)}catch{}q.preventDefault(),q.stopPropagation()},[]),aT=m.useCallback(q=>{if(!ai.current)return;const X={x:q.clientX,y:q.clientY};Ms.current=X,vs(X)},[]),ip=m.useCallback(q=>{var Sh,tB;if(!ai.current)return;ai.current=!1;try{(tB=(Sh=q.currentTarget).releasePointerCapture)==null||tB.call(Sh,q.pointerId)}catch{}const X=ws.current,oe=Ms.current,ce=Bo.current,de=xs.current,Ne=Ot.current;if(Mh(),!X||!oe||!Ne||!ce&&!de)return;const xe=Math.min(X.x,oe.x),Ie=Math.min(X.y,oe.y),nt=Math.max(X.x,oe.x),ft=Math.max(X.y,oe.y),mt=nt-xe,Re=ft-Ie,Ut=Ne.screenToFlowPosition({x:xe,y:Ie}),ro=Ne.screenToFlowPosition({x:nt,y:ft}),gt=ro.x-Ut.x,kt=ro.y-Ut.y;if(ce==="linkflow"){const Lh=mt<fX&&Re<fX,yT=Lh?Ez.width:Math.max(gt,jz.width),mT=Lh?Ez.height:Math.max(kt,jz.height);$==null||$(Ut,{width:yT,height:mT});return}if(de){const Lh=mt<py||Re<py,yT=Lh?G0.width:gt,mT=Lh?G0.height:kt;V==null||V(de,Ut,{width:yT,height:mT});return}if(!ce)return;const zt=mt<py||Re<py,qe=zt?Az[ce].width:gt,_a=zt?Az[ce].height:kt;j==null||j(ce,Ut,{width:qe,height:_a})},[Mh,j,V,$]),br=m.useRef(!1),U=m.useRef(!1),B=m.useRef(null),G=m.useRef({}),K=m.useRef(new Map),ne=m.useCallback(()=>{var q;gs.current&&(U.current||br.current||(gs.current=!1,(q=Ot.current)==null||q.fitView(Wh)))},[]),ze=m.useCallback(q=>{U.current=q,q||ne()},[ne]),Mt=m.useMemo(()=>({beginResize:(q,X)=>{var oe;return(oe=B.current)==null?void 0:oe.beginResize(q,X)},applyResizeSnap:(q,X)=>{var oe;return((oe=B.current)==null?void 0:oe.applyResizeSnap(q,X))??{snappedRect:q,guides:[]}},endResize:()=>{var q;return(q=B.current)==null?void 0:q.endResize()}}),[]);m.useEffect(()=>{var q;if(!Fo.current){Fo.current=!0;return}if(ti.current.onExternalNodeChange){if(U.current||br.current){gs.current=!0;return}(q=Ot.current)==null||q.fitView(Wh)}},[dn]);const Ye=!!N||!!W||!!O||!!P||!!Q,[ht,In]=m.useState(null),[Io,Te]=m.useState(!1),[un,_r]=m.useState(null),[Cr,Sr]=m.useState(null),Uo=m.useRef(null),bh=m.useRef(null);m.useEffect(()=>{if(!ht)return;const q=bh.current;if(!q)return;const X=new MouseEvent("contextmenu",{clientX:ht.x,clientY:ht.y,bubbles:!0,cancelable:!0,button:2,buttons:2});q.dispatchEvent(X)},[ht]);const Lr=m.useCallback(q=>{const X=Uo.current;!X||!N||N(X,q)},[N]),Xe=m.useCallback(()=>{const q=Uo.current;!q||!W||W(q)},[W]),sn=m.useCallback(()=>{const q=Uo.current;!q||!O||O(q)},[O]),An=m.useCallback(()=>{const q=Uo.current;!q||!J||J(q)},[J]);m.useCallback((q,X,oe,ce,de)=>{ms.current.enableContextMenu&&(Uo.current=null,Te(!1),_r(null),Sr({connectorId:q,kind:X,pinned:oe}),In({x:ce,y:de}))},[]);const Ao=m.useCallback(()=>{const q=Cr;!q||!Q||Q(q.connectorId,q.kind)},[Cr,Q]),Iu=m.useCallback(()=>{if(!P)return;const q=ht,X=Ot.current;if(!q||!X)return;const oe=X.screenToFlowPosition({x:q.x,y:q.y});P(oe)},[ht,P]),Au=typeof navigator<"u"&&/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent||""),iT=Au?"⌘C":"Ctrl+C",sp=Au?"⌘V":"Ctrl+V",Eu=m.useMemo(()=>new Set(y),[y]),ii=m.useMemo(()=>new Set(g),[g]),kie=m.useMemo(()=>{if(y.length<2)return[];const q=Sn,X=[];for(const oe of y){const ce=d.find(Ie=>Ie.id===oe);if(!ce)continue;const de=q==null?void 0:q[oe],Ne=(de==null?void 0:de.data)??{},xe=ce.data;X.push({id:oe,position:(de==null?void 0:de.position)??ce.position,data:{width:Ne.width??xe.width,height:Ne.height??xe.height}})}return X},[d,Sn,y]),vie=ie??[],cp=m.useMemo(()=>{const q=de=>{const Ne=Ht?void 0:K.current.get(de.id),xe={id:de.id,type:de.type,position:Ne??de.position,data:{...de.data,projectId:i,fileBaseUrl:c,projectSlug:de.type==="component"?i:void 0,flowSlug:de.type==="component"?s:void 0,apiBaseUrl:de.type==="component"?l:void 0,onRetryUpload:D,status:$at(kr,de.id),errorMessage:Pat(kr,de.id),statusReport:xa==null?void 0:xa[de.id],onPlay:v,onResize:b,onResizeEnd:C,setResizing:ze,resizeAlignment:He.enableAlignmentGuides?Mt:void 0,onFitToContent:de.type==="html"?_:de.type==="component"?S:void 0,onNameChange:(()=>{if(Ht&&de.type!=="ellipse")return A})(),onDescriptionChange:(()=>{if(Ht&&(de.type==="rectangle"||de.type==="ellipse"||de.type==="sticky"))return I})(),onIconChange:(()=>{if(Ht&&!(de.type!=="rectangle"&&de.type!=="component"))return Me})(),autoEditOnMount:ut===de.id?!0:void 0},selected:Eu.has(de.id)};return(!(de.data.autoSize===!0)||U.current)&&(de.data.width!==void 0&&(xe.width=de.data.width),de.data.height!==void 0&&(xe.height=de.data.height)),Eu.has(de.id)||(xe.connectable=!1),xe},X=d.map(de=>q(wat(de,Sn==null?void 0:Sn[de.id]))),oe=new Set(d.map(de=>de.id)),ce=[];if(Sn)for(const[de,Ne]of Object.entries(Sn)){if(oe.has(de))continue;const xe=Ne;typeof xe.type!="string"||!xe.position||!xe.data||ce.push(q({...xe,id:de}))}return[...X,...ce]},[i,s,c,l,d,Eu,kr,xa,v,b,C,_,S,ze,Mt,He.enableAlignmentGuides,Sn,A,I,Me,D,ut,Ht]),[sT,cT]=m.useState(cp);m.useEffect(()=>{br.current||U.current||cT(cp)},[cp]),m.useEffect(()=>{bs.current=sT},[sT]);const Wo=m.useRef(Eu);m.useEffect(()=>{Wo.current=Eu},[Eu]);const Nr=m.useRef(k);m.useEffect(()=>{Nr.current=k},[k]);const ba=m.useRef(ii);m.useEffect(()=>{ba.current=ii},[ii]);const bs=m.useRef(cp),_s=m.useRef(!1),lp=m.useRef(new Set),dp=m.useRef(new Set),lT=m.useRef(new Set),dT=m.useRef(new Set),si=m.useRef(null),xie=m.useCallback(q=>{var zt;const X=B.current,oe=X?X.interceptChanges(q,G.current):q,ce=_s.current?lT.current:(zt=si.current)!=null&&zt.shift?si.current.nodeIds:null,de=ce&&ce.size>0?oe.filter(qe=>qe.type!=="select"?!0:!(qe.selected===!1&&ce.has(qe.id))):oe,Ne=new Set;for(const qe of de)qe.type==="select"&&Ne.add(qe.id);const xe=UJ(de,bs.current),Ie=new Set;if(U.current)for(const qe of de)qe.type==="dimensions"&&Ie.add(qe.id);const nt=Ie.size===0?xe:xe.map(qe=>!Ie.has(qe.id)||qe.width===void 0&&qe.height===void 0?qe:{...qe,data:{...qe.data,...qe.width!==void 0?{width:qe.width}:{},...qe.height!==void 0?{height:qe.height}:{}}}),ft=Wo.current,mt=_s.current||ft.size===0?nt:nt.map(qe=>ft.has(qe.id)&&!Ne.has(qe.id)&&!qe.selected?{...qe,selected:!0}:qe);if(bs.current=mt,cT(mt),Ne.size===0)return;if(_s.current){for(const qe of de)qe.type==="select"&&(qe.selected?lp.current.add(qe.id):lp.current.delete(qe.id));return}const Re=Nr.current;if(!Re)return;const Ut=mt.filter(qe=>qe.selected).map(qe=>qe.id),ro=Wo.current;ro.size===Ut.length&&Ut.every(qe=>ro.has(qe))||(Wo.current=new Set(Ut),Re(Ut,[...ba.current]))},[]),up=m.useRef([]),wie=m.useCallback(q=>{var mt;const X=_s.current?dT.current:(mt=si.current)!=null&&mt.shift?si.current.edgeIds:null,oe=X&&X.size>0?q.filter(Re=>Re.type!=="select"?!0:!(Re.selected===!1&&X.has(Re.id))):q,ce=new Set;for(const Re of oe)Re.type==="select"&&ce.add(Re.id);if(ce.size===0)return;if(_s.current){for(const Re of oe)Re.type==="select"&&(Re.selected?dp.current.add(Re.id):dp.current.delete(Re.id));return}const de=Nr.current;if(!de)return;const xe=WJ(oe,up.current).filter(Re=>Re.selected).map(Re=>Re.id),Ie=ba.current;Ie.size===xe.length&&xe.every(Re=>Ie.has(Re))||(ba.current=new Set(xe),de([...Wo.current],xe))},[]),Mie=m.useCallback(q=>{_s.current=!0;const X=si.current,oe=(X==null?void 0:X.shift)??(q.shiftKey||q.metaKey||q.ctrlKey);lT.current=oe?new Set((X==null?void 0:X.nodeIds)??Wo.current):new Set,dT.current=oe?new Set((X==null?void 0:X.edgeIds)??ba.current):new Set,lp.current=new Set(lT.current),dp.current=new Set(dT.current)},[]),bie=m.useCallback(()=>{_s.current=!1,si.current=null;const q=Nr.current;if(!q)return;const X=[...lp.current],oe=new Set(X),ce=new Set(dp.current);for(const nt of up.current)oe.has(nt.source)&&oe.has(nt.target)&&ce.add(nt.id);const de=Wo.current,Ne=ba.current,xe=de.size===oe.size&&X.every(nt=>de.has(nt)),Ie=Ne.size===ce.size&&[...ce].every(nt=>Ne.has(nt));xe&&Ie||(Wo.current=new Set(X),ba.current=new Set(ce),q(X,[...ce]))},[]),_ie=m.useCallback(q=>{if(si.current=null,Bo.current||q.button!==0)return;const X=q.target;X!=null&&X.classList.contains("react-flow__pane")&&(si.current={shift:q.shiftKey||q.metaKey||q.ctrlKey,nodeIds:new Set(Wo.current),edgeIds:new Set(ba.current)})},[]),Cie=m.useCallback(q=>{if(!ms.current.enableContextMenu||Wo.current.size<2)return;const oe=q.target;oe!==bh.current&&(oe!=null&&oe.closest(".seeflow-connector-endpoint-dot")||(q.preventDefault(),q.stopPropagation(),Uo.current=null,Te(!0),_r(null),Sr(null),In({x:q.clientX,y:q.clientY})))},[]),Sie=m.useCallback(q=>{const X=q.dataTransfer;if(!X)return;const oe=X.types?Array.from(X.types):[],ce=oe.includes("Files"),de=oe.includes(BG),Ne=ce&&!!T&&He.enableImageDrop,xe=de&&!!F&&He.enableDragDrop;if(!(!Ne&&!xe)){q.preventDefault();try{X.dropEffect="copy"}catch{}}},[T,F,He.enableImageDrop,He.enableDragDrop]),Lie=m.useCallback(q=>{const X=q.dataTransfer;if((X!=null&&X.types?Array.from(X.types):[]).includes(BG)&&F&&He.enableDragDrop){q.preventDefault();const Ne=Ot.current;if(!Ne)return;const xe=Ne.screenToFlowPosition({x:q.clientX,y:q.clientY});F({position:xe});return}if(!T||!He.enableImageDrop)return;const de={x:q.clientX,y:q.clientY};q.preventDefault(),ZEe({dataTransfer:X,clientPos:de,rfInstance:Ot.current,computeDims:YEe,dispatch:T})},[T,F,He.enableImageDrop,He.enableDragDrop]),RV=!!E,TV=ii.size===1?[...ii][0]:null,uT=m.useMemo(()=>{const q=Ie=>{const nt=vX(kr,Ie.source)==="running"||vX(kr,Ie.target)==="running",ft=ii.has(Ie.id),mt=nOe(Ie,nt,ft);ft&&(mt.selected=!0);const Re=RV&&Ie.id===TV,Ut=Re?{...mt,reconnectable:!0}:mt;return{...Ut,data:{...Ut.data,onLabelChange:Ht?R:void 0,reconnectable:Re,registerEditHandle:Cu,getEditingConnectorId:Lo,setEditingConnectorId:ks}}},X=new Set(p.map(Ie=>Ie.id)),oe=p.map(Ie=>q(Mat(Ie,Oo==null?void 0:Oo[Ie.id]))),ce=[];if(Oo)for(const[Ie,nt]of Object.entries(Oo)){if(X.has(Ie))continue;const ft=nt;typeof ft.source!="string"||typeof ft.target!="string"||ce.push(q({...ft,id:Ie}))}const de=[...oe,...ce],Ne=[],xe=[];for(const Ie of de)ii.has(Ie.id)?xe.push(Ie):Ne.push(Ie);return[...Ne,...xe]},[p,kr,ii,TV,Oo,R,RV,Cu,Lo,ks,Ht]);m.useEffect(()=>{up.current=uT},[uT]);const _h=o??null,Nie=m.useMemo(()=>{if(_h!=null&&_h.computeLayout)return async()=>{const q=Ot.current,X=bs.current;if(X.length<2)return;const oe=X.map(gt=>{var Sh;const kt=(Sh=q==null?void 0:q.getInternalNode(gt.id))==null?void 0:Sh.measured,zt=gt.data,qe=(kt==null?void 0:kt.width)??zt.width??200,_a=(kt==null?void 0:kt.height)??zt.height??120;return{id:gt.id,type:gt.type,width:qe,height:_a}}),ce=new Map;for(const gt of X)ce.set(gt.id,gt.position);const de=up.current.map(gt=>({id:gt.id,source:gt.source,target:gt.target})),Ne=_h.computeLayout;if(!Ne)return;const xe=await Ne(oe,de),Ie=new Map;for(const[gt,kt]of Object.entries(xe.nodes))Ie.set(gt,kt.position);let nt=Number.POSITIVE_INFINITY,ft=Number.POSITIVE_INFINITY,mt=Number.POSITIVE_INFINITY,Re=Number.POSITIVE_INFINITY;for(const gt of oe){const kt=ce.get(gt.id);if(!kt)continue;kt.x<nt&&(nt=kt.x),kt.y<ft&&(ft=kt.y);const zt=Ie.get(gt.id);zt&&(zt.x<mt&&(mt=zt.x),zt.y<Re&&(Re=zt.y))}const Ut=Number.isFinite(nt)&&Number.isFinite(mt)?nt-mt:0,ro=Number.isFinite(ft)&&Number.isFinite(Re)?ft-Re:0;cT(gt=>gt.map(kt=>{const zt=Ie.get(kt.id);return zt?{...kt,position:{x:zt.x+Ut,y:zt.y+ro}}:kt}))}},[_h]),hp=De??(Ht?void 0:Nie),fp=m.useRef(!1),DV=m.useRef(null),Iie=m.useCallback(q=>{var Ie;if(!Ht||!z)return;const{source:X,target:oe}=q;if(!X||!oe||X===oe)return;fp.current=!0;const ce=((Ie=DV.current)==null?void 0:Ie.nodeId)??null,de=ce!==null&&ce===oe&&ce!==X;z(de?oe:X,de?X:oe)},[z,Ht]),hT=m.useCallback(q=>{const X=oe=>{if(!oe)return!1;const ce=bs.current.find(de=>de.id===oe);return ce?ce.type==="text":!1};return!X(q.source)&&!X(q.target)},[]),Aie=m.useCallback((q,X)=>{var mt;xr(!1),No();const oe=fp.current;if(fp.current=!1,oe||oo.current)return;if(Ln.current){Ln.current=!1;return}if(!z)return;const ce=(mt=X.fromNode)==null?void 0:mt.id,de=X.fromHandle;if(!ce||!de)return;const Ne=pX(q);if(!Ne)return;const xe=VD(kn.current,Ne.clientX,Ne.clientY);if(!xe)return;const Ie=xe.getAttribute("data-id");if(!Ie||Ie===ce||!hT({source:ce,target:Ie,sourceHandle:null,targetHandle:null}))return;let nt;const ft=Ot.current;if(ft){const Re=ft.getInternalNode(Ie);if(Re){const Ut=Re.measured.width??Re.width??0,ro=Re.measured.height??Re.height??0;if(Ut>0&&ro>0){const gt=ft.screenToFlowPosition({x:Ne.clientX,y:Ne.clientY});nt=uO({x:Re.internals.positionAbsolute.x,y:Re.internals.positionAbsolute.y,w:Ut,h:ro},gt)}}}z(ce,Ie,nt?{targetPin:nt}:void 0)},[z,No,hT]),pp=m.useRef(!1),Eie=m.useCallback((q,X)=>{if(!E)return;const{source:oe,target:ce,sourceHandle:de,targetHandle:Ne}=X;if(!oe||!ce||oe===ce)return;const xe={};if(oe!==q.source&&(xe.source=oe),ce!==q.target&&(xe.target=ce),typeof de=="string"&&de!==q.sourceHandle&&(xe.sourceHandle=de),typeof Ne=="string"&&Ne!==q.targetHandle&&(xe.targetHandle=Ne),xe.source===void 0&&xe.target===void 0&&xe.sourceHandle===void 0&&xe.targetHandle===void 0)return;(xe.source!==void 0||xe.sourceHandle!==void 0)&&(xe.sourceHandleAutoPicked=!1),(xe.target!==void 0||xe.targetHandle!==void 0)&&(xe.targetHandleAutoPicked=!1);const Ie=Ot.current;if(!(xe.source===void 0&&xe.target===void 0)&&Ie){const ft=xe.source!==void 0?"source":"target",mt=yX(ft,q.source,q.target,q.data,Re=>Ie.getInternalNode(Re)??null);mt&&(ft==="source"?xe.targetPin=mt:xe.sourcePin=mt)}pp.current=!0,E(q.id,xe)},[E]),jie=m.useCallback((q,X,oe,ce)=>{var qe;xr(!1),No(),oo.current=!1;const de=pp.current;if(pp.current=!1,de)return;if(no.current){no.current=!1;return}if(!E)return;const Ne=pX(q);let xe=((qe=ce.toNode)==null?void 0:qe.id)??null;if(!xe&&Ne){const _a=VD(kn.current,Ne.clientX,Ne.clientY);xe=(_a==null?void 0:_a.getAttribute("data-id"))??null}const Ie=oe==="source"?"target":"source",nt=xat(Ie,X.source,X.target,xe);if(nt==="no-op"||nt==="self-loop"||!Ne)return;const ft=Ot.current;if(!ft)return;const mt=nt==="pin-own"?Ie==="source"?X.source:X.target:xe,Re=ft.getInternalNode(mt);if(!Re)return;const Ut=Re.measured.width??Re.width??0,ro=Re.measured.height??Re.height??0;if(Ut===0||ro===0)return;const gt=ft.screenToFlowPosition({x:Ne.clientX,y:Ne.clientY}),kt=uO({x:Re.internals.positionAbsolute.x,y:Re.internals.positionAbsolute.y,w:Ut,h:ro},gt);if(nt==="pin-own"){if(!H)return;H(X.id,Ie,kt);return}const zt=yX(Ie,X.source,X.target,X.data,_a=>ft.getInternalNode(_a)??null);Ie==="source"?E(X.id,{source:xe,sourceHandle:null,sourceHandleAutoPicked:!1,sourcePin:kt,...zt?{targetPin:zt}:{}}):E(X.id,{target:xe,targetHandle:null,targetHandleAutoPicked:!1,targetPin:kt,...zt?{sourcePin:zt}:{}})},[E,No,H]),Cs=m.useMemo(()=>{var Ie;if(!Mr||!ri)return null;const q=(Ie=kn.current)==null?void 0:Ie.getBoundingClientRect(),X=(q==null?void 0:q.left)??0,oe=(q==null?void 0:q.top)??0,ce=Math.min(Mr.x,ri.x),de=Math.min(Mr.y,ri.y),Ne=Math.abs(ri.x-Mr.x),xe=Math.abs(ri.y-Mr.y);return{left:ce-X,top:de-oe,width:Ne,height:xe}},[Mr,ri]),ci=en?c0(ja).node:void 0,Ch=en==="linkflow",$ie=en&&!Ch?vne(en):"",Pie=en&&!Ch?xne(en,ci):void 0,zie=en==="text",[HV,OV]=m.useState(!1),[Rie,yp]=m.useState(!1),[Tie,FV]=m.useState(!1),[qV,Die]=m.useState(()=>({canUndo:(Qt==null?void 0:Qt.canUndo)??!1,canRedo:(Qt==null?void 0:Qt.canRedo)??!1}));m.useEffect(()=>Qt?Qt.subscribe(Die):void 0,[Qt]);const[fT,VV]=m.useState(!1),Hie=((eB=Ot.current)==null?void 0:eB.getViewport())??{x:0,y:0,zoom:1},BV=srt({enabled:He.enableAlignmentGuides,thresholdPx:He.alignmentSnapThreshold??6,viewport:Hie,rfNodesRef:bs});B.current=BV;const Oie=Qt?qV.canUndo:!1,Fie=Qt?qV.canRedo:!1,li=iat({projectId:i,getReactFlow:()=>Ot.current});m.useImperativeHandle(t,()=>({exportPdf:li.exportPdf,exportPng:li.exportPng,openEmbedDialog:()=>FV(!0),capturePreview:li.capturePreview}),[li.exportPdf,li.exportPng,li.capturePreview]),m.useEffect(()=>{if(!He.enableKeyboard)return;const q=ce=>{if(!ce)return!1;const de=ce.tagName;return de==="INPUT"||de==="TEXTAREA"||de==="SELECT"?!0:ce instanceof HTMLElement&&ce.isContentEditable},X=ce=>{ce.code==="Space"&&(q(document.activeElement)||(ce.preventDefault(),OV(!0)))},oe=ce=>{ce.code==="Space"&&(OV(!1),yp(!1))};return window.addEventListener("keydown",X),window.addEventListener("keyup",oe),()=>{window.removeEventListener("keydown",X),window.removeEventListener("keyup",oe)}},[He.enableKeyboard]);const mp=m.useCallback(q=>{if(q.length===0)return;const X=oe=>{const ce=bs.current.find(Ne=>Ne.id===oe.id),de=ce?ce.position:oe.position;return{x:de.x,y:de.y}};if(!Ht){const oe=K.current;for(const ce of q)oe.set(ce.id,X(ce));return}if(q.length===1){const oe=q[0];oe&&M&&M(oe.id,X(oe));return}if(w){w(q.map(oe=>({id:oe.id,position:X(oe)})));return}if(M)for(const oe of q)M(oe.id,X(oe))},[M,w,Ht]),UV=m.useCallback((q,X,oe)=>{br.current=!1,mp(oe),ne()},[mp,ne]),WV=m.useCallback(()=>{br.current=!0},[]),GV=m.useCallback((q,X)=>{br.current=!1,mp(X),ne()},[mp,ne]),qie=m.useCallback((q,X)=>{xh.current&&Ma(null);const oe=kn.current;oe&&oe.style.setProperty("--rf-zoom",String(X.zoom)),ma==null||ma(X)},[ma]),Vie=m.useCallback((q,X,oe)=>{var ce;br.current=!0,G.current={metaKey:q==null?void 0:q.metaKey,ctrlKey:q==null?void 0:q.ctrlKey},(ce=B.current)==null||ce.beginGesture((oe??[]).map(de=>de.id)),dt==null||dt()},[dt]),Bie=m.useCallback(q=>{G.current={metaKey:q.metaKey,ctrlKey:q.ctrlKey}},[]),Uie=m.useCallback((q,X,oe)=>{var ce;UV(q,X,oe),(ce=B.current)==null||ce.endGesture(),Vn==null||Vn()},[UV,Vn]),Wie=m.useCallback((q,X)=>{var oe;WV(),G.current={metaKey:q==null?void 0:q.metaKey,ctrlKey:q==null?void 0:q.ctrlKey},(oe=B.current)==null||oe.beginGesture((X??[]).map(ce=>ce.id)),dt==null||dt()},[WV,dt]),Gie=m.useCallback(q=>{G.current={metaKey:q.metaKey,ctrlKey:q.ctrlKey}},[]),Kie=m.useCallback((q,X)=>{var oe;GV(q,X),(oe=B.current)==null||oe.endGesture(),Vn==null||Vn()},[GV,Vn]),Xie=m.useCallback((q,X)=>{var oe;(oe=ni.current.get(X.id))==null||oe()},[]),Zie=m.useCallback((q,X)=>{pe==null||pe(X.id)},[pe]),Yie=m.useCallback(q=>{Ae==null||Ae()},[Ae]),Qie=m.useCallback((q,X)=>{me==null||me(X.id)},[me]),KV=So?"crosshair":vr||HV?Rie?"grabbing":"grab":void 0,XV=y.length+g.length===1,ZV=XV?y[0]:void 0,YV=XV?g[0]:void 0,Jie=ZV?d.find(q=>q.id===ZV)??null:null;YV&&p.find(q=>q.id===YV);const ese=i??null,pT=He.showDetailPanel&&!wt,tse=pT,nse=m.useMemo(()=>({custom:gr??{}}),[gr]),ose=m.useMemo(()=>({studioBaseUrl:h}),[h]),gp=o==null?void 0:o.icons;return m.useEffect(()=>{if(!gp)return;let q=!1;return(async()=>{try{const X=await gp.listPacks();if(q)return;UH(X)}catch{}})(),()=>{q=!0}},[gp]),f.jsx(pqe,{value:nse,children:f.jsx(OEe,{value:ose,children:f.jsx("div",{"data-testid":"seeflow-canvas","data-mode":n,"data-canvas-mode":be.kind,"data-can-undo":Oie?"true":"false","data-can-redo":Fie?"true":"false",ref:kn,className:"seeflow-canvas-root sf:relative sf:flex sf:h-full sf:w-full",style:KV?{cursor:KV}:void 0,onPointerDownCapture:_ie,onPointerDown:q=>{HV&&yp(!0),ap(q)},onPointerMove:aT,onPointerUp:q=>{yp(!1),ip(q)},onPointerCancel:()=>{ai.current=!1,ws.current=null,Ms.current=null,wh(null),vs(null),yp(!1)},onContextMenuCapture:Cie,onDragOver:Sie,onDrop:Lie,children:f.jsxs(LUe,{containerRef:kn,children:[f.jsxs("div",{className:"sf:relative sf:flex-1 sf:min-w-0 sf:h-full",children:[f.jsxs(wHe,{nodes:sT,edges:uT,onNodesChange:xie,nodeTypes:bat,edgeTypes:_at,proOptions:Sat,fitView:!0,minZoom:n==="mini"?.05:.5,nodesDraggable:(Ht?!!M:!0)&&!So&&!vr&&He.enableNodeMove,nodesConnectable:Ht&&!!z&&!So&&!vr,deleteKeyCode:Ht?["Backspace","Delete"]:null,zoomOnScroll:He.enableZoom,zoomOnPinch:He.enableZoom,className:Vo?"seeflow-connecting":void 0,onConnect:Ht?Iie:void 0,isValidConnection:hT,onConnectStart:(q,X)=>{xr(!0),fp.current=!1,DV.current={nodeId:X.nodeId??null,handleType:X.handleType??null},oi(X.nodeId??null)},onConnectEnd:Aie,onReconnect:Ht&&E?Eie:void 0,onReconnectStart:(q,X,oe)=>{xr(!0),pp.current=!1,oo.current=!0;const ce=oe==="source"?X.source:X.target;oi(ce)},onReconnectEnd:jie,connectionLineComponent:rT,connectionLineStyle:{strokeWidth:2},connectionRadius:32,reconnectRadius:10,edgesReconnectable:!1,elevateNodesOnSelect:!1,elementsSelectable:!So&&!vr&&He.enableSelection,selectNodesOnDrag:!1,nodeClickDistance:5,selectionOnDrag:!So&&!vr&&He.enableSelection,panOnDrag:So?!1:vr?[0,1,2]:He.enablePan?[1,2]:!1,selectionMode:F0.Partial,selectionKeyCode:null,multiSelectionKeyCode:So?null:["Meta","Shift"],panActivationKeyCode:So?null:"Space",onSelectionStart:Mie,onSelectionEnd:bie,defaultEdgeOptions:Cat,zoomOnDoubleClick:!1,onInit:q=>{Ot.current=q;const X=kn.current;X&&X.style.setProperty("--rf-zoom",String(q.getZoom())),X&&X.setAttribute("data-canvas-ready","true"),!ei.current&&va.onMount&&d.length>0&&(q.fitView(Wh),ei.current=!0),Be==null||Be(q)},onMove:qie,onEdgesChange:wie,onNodeDragStart:Vie,onNodeDrag:Bie,onNodeDragStop:Uie,onSelectionDragStart:Wie,onSelectionDrag:Gie,onSelectionDragStop:Kie,onNodeClick:Zie,onEdgeClick:Qie,onEdgeDoubleClick:Xie,onPaneClick:Yie,onNodeContextMenu:He.enableContextMenu&&Ye?(q,X)=>{q.preventDefault(),Uo.current=X.id,Te(!0),_r(X.type??null),Sr(null),In({x:q.clientX,y:q.clientY})}:void 0,onPaneContextMenu:He.enableContextMenu&&P?q=>{q.preventDefault(),Uo.current=null,Te(!1),_r(null),Sr(null),In({x:q.clientX,y:q.clientY})}:void 0,children:[f.jsx(Iat,{storeApiRef:wa}),f.jsx(Aat,{wrapperRef:kn}),f.jsx(IHe,{gap:12,size:.6}),He.enableAlignmentGuides?f.jsx(gee,{children:f.jsx(Qot,{guides:BV.guides})}):null,n!=="mini"&&f.jsx(dat,{}),He.showControls?f.jsxs(RHe,{showInteractive:!1,showFitView:!1,children:[f.jsx(s0,{"data-testid":"controls-fit-view","aria-label":"Fit view",title:"Fit view",disabled:d.length===0,onClick:()=>{var q;(q=Ot.current)==null||q.fitView(Wh)},children:f.jsx(Od,{className:"sf:h-3 sf:w-3","aria-hidden":"true"})}),f.jsx(s0,{"data-testid":"controls-tidy","aria-label":"Tidy layout (⌘⇧L)",title:"Tidy layout (⌘⇧L)",disabled:!hp,onClick:()=>hp==null?void 0:hp(),children:f.jsx(M2,{className:"sf:h-3 sf:w-3","aria-hidden":"true"})})]}):null,He.showMiniMap?f.jsx(XHe,{className:"sf-canvas-minimap"}):null,He.showResizeHandles?f.jsx(Dot,{selectedNodes:kie,onMultiResize:L}):null,r||He.showToolbar||He.showStyleStrip&&ae&&ge?f.jsx(W0,{position:"top-left",children:f.jsxs("div",{className:"sf:flex sf:flex-col sf:items-start sf:gap-2",children:[r,He.showToolbar?f.jsx(dZe,{mode:be,onModeChange:Ee,iconPickerOpen:et??!1,onOpenIconPicker:le,onCloseIconPicker:rn,onPickIcon:Gt,showShapeTools:Ht&&!!j,iconsAdapter:gp}):null,He.showStyleStrip&&ae&&ge?f.jsx(Vot,{nodes:vie,connectors:re??[],onStyleNode:ae,onStyleNodePreview:se,onStyleNodes:ve,onStyleNodesPreview:ke,onStyleConnector:ge,onStyleConnectorPreview:Pe,onRequestIconReplace:J}):null]})}):null,He.showShareMenu||a||pT?f.jsx(W0,{position:"top-right",children:f.jsxs("div",{className:"sf:flex sf:items-center sf:gap-1",children:[a,pT&&!fT?f.jsx(fat,{open:fT,onToggle:()=>VV(q=>!q)}):null,He.showShareMenu?f.jsx(Pae,{mode:n==="mini"?"view":n,projectId:i,enableEmbed:He.enableEmbed,onDownloadPdf:li.exportPdf,onDownloadPng:li.exportPng,onExportToCloud:pt,embedOpen:Tie,onEmbedOpenChange:FV}):null]})}):null]}),Cs?f.jsxs("div",{"data-testid":"canvas-draw-ghost","data-ghost-shape":en??void 0,"data-ghost-icon":qo??void 0,"aria-hidden":!0,className:ee("sf:pointer-events-none sf:absolute sf:z-10",$ie,zie?"sf:rounded-sm sf:border sf:border-dashed sf:border-muted-foreground/40":"",Ch?"sf:flex sf:items-center sf:justify-center sf:rounded-md sf:border sf:border-dashed sf:border-border sf:bg-muted/40 sf:text-muted-foreground sf:text-sm":"",qo?"sf:flex sf:items-center sf:justify-center":""),style:{...Pie,left:Cs.left,top:Cs.top,width:Cs.width,height:Cs.height},children:[qo?f.jsx(Qi,{iconId:qo,studioBaseUrl:h,className:"sf:block sf:h-full sf:w-full sf:select-none"}):null,Ch?f.jsxs("span",{className:"sf:inline-flex sf:items-center sf:gap-2",children:[f.jsx(Ui,{size:14,"aria-hidden":!0}),f.jsx("span",{children:"Link to a flow"})]}):null,(()=>{if(Ch)return null;const q=en?Gq[en]:void 0;if(!q)return null;const X=wne(ci);return f.jsx(q,{width:Cs.width,height:Cs.height,borderColor:X.borderColor,backgroundColor:X.backgroundColor,borderSize:(ci==null?void 0:ci.borderSize)??wq,borderStyle:ci==null?void 0:ci.borderStyle})})()]}):null,He.enableContextMenu&&Ye?f.jsxs(XKe,{onOpenChange:q=>{q||(In(null),Uo.current=null,_r(null),Sr(null))},children:[f.jsx(ZKe,{asChild:!0,children:f.jsx("div",{ref:bh,"data-testid":"node-context-menu-trigger","aria-hidden":!0,className:"sf:pointer-events-none sf:fixed",style:{left:(ht==null?void 0:ht.x)??0,top:(ht==null?void 0:ht.y)??0,width:0,height:0}})}),f.jsxs(zoe,{"data-testid":"node-context-menu",children:[Cr!=null&&Cr.pinned&&Q?f.jsx(Hr,{"data-testid":"connector-endpoint-context-menu-unpin",onSelect:Ao,children:"Unpin"}):null,Io&&O?f.jsxs(Hr,{"data-testid":"node-context-menu-copy",onSelect:sn,children:["Copy",f.jsx(PO,{children:iT})]}):null,P?f.jsxs(Hr,{"data-testid":"node-context-menu-paste",disabled:!Y,onSelect:Iu,children:["Paste",f.jsx(PO,{children:sp})]}):null,Io&&(O||P)&&(un==="icon"&&J||N||W)?f.jsx(AP,{}):null,Io&&un==="icon"&&J?f.jsx(Hr,{"data-testid":"node-context-menu-change-icon",onSelect:An,children:"Change icon"}):null,Io&&un==="icon"&&J&&(N||W)?f.jsx(AP,{}):null,Io&&N?f.jsxs(f.Fragment,{children:[f.jsx(Hr,{"data-testid":"node-context-menu-to-front",onSelect:()=>Lr({op:"toFront"}),children:"Bring to front"}),f.jsx(Hr,{"data-testid":"node-context-menu-forward",onSelect:()=>Lr({op:"forward"}),children:"Bring forward"}),f.jsx(Hr,{"data-testid":"node-context-menu-backward",onSelect:()=>Lr({op:"backward"}),children:"Send backward"}),f.jsx(Hr,{"data-testid":"node-context-menu-to-back",onSelect:()=>Lr({op:"toBack"}),children:"Send to back"})]}):null,Io&&N&&W?f.jsx(AP,{}):null,Io&&W?f.jsx(Hr,{"data-testid":"node-context-menu-delete",onSelect:Xe,children:"Delete"}):null]})]}):null,Ue?f.jsxs(uu,{open:!!Nn,onOpenChange:q=>{q||Ma(null)},children:[f.jsx(NUe,{asChild:!0,children:f.jsx("div",{"data-testid":"drop-popover-anchor","aria-hidden":!0,className:"sf:pointer-events-none sf:fixed",style:{left:(Nn==null?void 0:Nn.clientX)??0,top:(Nn==null?void 0:Nn.clientY)??0,width:0,height:0}})}),f.jsx(ls,{"data-testid":"drop-popover",align:"start",side:"bottom",sideOffset:4,className:"sf:w-auto sf:p-1",onOpenAutoFocus:q=>{q.preventDefault()},children:f.jsx("div",{role:"menu","aria-label":"Create connected node",className:"sf:flex sf:flex-col sf:gap-0.5",children:lZe.map(({shape:q,label:X,Icon:oe})=>q==="linkflow"?null:f.jsxs("button",{type:"button",role:"menuitem","data-testid":`drop-popover-shape-${q}`,onClick:()=>{const ce=Nn;ce&&(Ue({sourceNodeId:ce.sourceNodeId,position:{x:ce.flowX,y:ce.flowY},shape:q}),Ma(null))},className:ee("sf:flex sf:items-center sf:gap-2 sf:rounded-sm sf:px-2 sf:py-1.5 sf:text-left sf:text-sm","sf:hover:bg-accent sf:hover:text-accent-foreground","sf:focus:bg-accent sf:focus:text-accent-foreground sf:focus:outline-hidden"),children:[f.jsx(oe,{className:"sf:h-4 sf:w-4 sf:text-muted-foreground","aria-hidden":"true"}),f.jsx("span",{children:X})]},q))})})]}):null]}),tse?f.jsx(sot,{flowId:ese,node:Jie,connector:null,adapter:o??null,statusReport:gn,onNameChange:an,onDescriptionChange:Fn,onDetailChange:qn,onIconChange:Me,open:fT,onClose:()=>{var q;VV(!1),(q=Nr.current)==null||q.call(Nr,[],[])}}):null]})})})})}const Rat=m.forwardRef(zat);/**
8544
+ `)}async function Yrt(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await Zrt(e,t);if(n){const o=document.createElement("style"),r=document.createTextNode(n);o.appendChild(r),e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o)}}async function Qrt(e,t={}){const{width:n,height:o}=Oae(e,t),r=await oT(e,t,!0);return await Yrt(r,t),await Wae(r,t),Urt(r,t),await yrt(r,n,o)}async function Jrt(e,t={}){const{width:n,height:o}=Oae(e,t),r=await Qrt(e,t),a=await Uz(r),i=document.createElement("canvas"),s=i.getContext("2d"),c=t.pixelRatio||hrt(),l=t.canvasWidth||n,h=t.canvasHeight||o;return i.width=l*c,i.height=h*c,t.skipAutoScale||frt(i),i.style.width=`${l}`,i.style.height=`${h}`,t.backgroundColor&&(s.fillStyle=t.backgroundColor,s.fillRect(0,0,i.width,i.height)),s.drawImage(a,0,0,i.width,i.height),i}async function eat(e,t={}){return(await Jrt(e,t)).toDataURL()}const tat=e=>e instanceof Element?!(e.classList.contains("react-flow__minimap")||e.classList.contains("react-flow__controls")||e.classList.contains("react-flow__panel")):!0,nat=e=>{var o;let t=e;for(;t&&!t.classList.contains("seeflow-canvas-root");)t=t.parentElement;if(t){const r=getComputedStyle(t).getPropertyValue("--bg-canvas").trim();if(r.length>0)return r}const n=(o=e.ownerDocument)==null?void 0:o.documentElement;return n!=null&&n.classList.contains("dark")?"#0a0a0c":"#fafafa"},oat=async e=>{const t=await eat(e,{cacheBust:!0,filter:tat,backgroundColor:nat(e)}),n=await new Promise((o,r)=>{const a=new Image;a.onload=()=>o({width:a.naturalWidth,height:a.naturalHeight}),a.onerror=()=>r(new Error("Failed to decode captured image")),a.src=t});return{dataUrl:t,...n}},rat=(e,t)=>{const n=document.createElement("a");n.href=e,n.download=t,n.rel="noopener",document.body.appendChild(n),n.click(),n.remove()},aat=e=>{const t=e.replace(/[^A-Za-z0-9_-]+/g,"-").replace(/^-+|-+$/g,"");return t.length>0?t.slice(0,80):"canvas"},hX=(e,t)=>`${aat(e??"canvas")}.${t}`,iat=({projectId:e,getReactFlow:t})=>{const[n,o]=m.useState(null),r=m.useCallback(()=>o(null),[]),a=m.useCallback(async()=>{const l=t();if(!l)return null;const h=document.querySelector(".react-flow__viewport");if(!h)return null;const d=l.getViewport();try{return await l.fitView({duration:0,padding:.1}),await new Promise(p=>requestAnimationFrame(()=>p())),await oat(h)}finally{l.setViewport(d,{duration:0})}},[t]),i=m.useCallback(async()=>{o(null);try{const l=await a();if(!l)return;rat(l.dataUrl,hX(e,"png"))}catch(l){o(l instanceof Error?l.message:String(l))}},[a,e]),s=m.useCallback(async()=>{o(null);try{const l=await a();if(!l)return;const{jsPDF:h}=await sh(async()=>{const{jsPDF:y}=await import("./jspdf.es.min-KIHFW2LN.js").then(g=>g.j);return{jsPDF:y}},[]),d=l.width>l.height?"landscape":"portrait",p=new h({orientation:d,unit:"px",format:[l.width,l.height],hotfixes:["px_scaling"]});p.addImage(l.dataUrl,"PNG",0,0,l.width,l.height),p.save(hX(e,"pdf"))}catch(l){o(l instanceof Error?l.message:String(l))}},[a,e]),c=m.useCallback(async()=>{const l=await a();return l==null?void 0:l.dataUrl},[a]);return{exportPdf:s,exportPng:i,capturePreview:c,lastError:n,clearError:r}},sat=12,cat=1200;function lat(e,t={}){const n=t.idleMs??cat;let o,r=null,a=null;const i=typeof requestAnimationFrame<"u",s=()=>{o!==void 0&&(clearTimeout(o),o=void 0)},c=()=>{a!==null&&typeof cancelAnimationFrame<"u"&&cancelAnimationFrame(a),a=null},l=()=>{if(a=null,!r)return;const{clientX:y,clientY:g}=r;r=null;const k=e.getBoundingClientRect();e.style.setProperty("--mx",`${y-k.left}px`),e.style.setProperty("--my",`${g-k.top}px`),e.dataset.active="true",s(),o=setTimeout(()=>{e.dataset.active="false",o=void 0},n)};return{onMove:y=>{if(r={clientX:y.clientX,clientY:y.clientY},!i){l();return}a===null&&(a=requestAnimationFrame(l))},onLeave:()=>{c(),r=null,s(),e.dataset.active="false"},dispose:()=>{c(),r=null,s()}}}function dat(){const e=m.useRef(null),t=je(i=>i.transform,(i,s)=>i[0]===s[0]&&i[1]===s[1]&&i[2]===s[2]),[n,o,r]=t,a=sat*r;return m.useEffect(()=>{var d;const i=e.current;if(!i)return;const s=(d=i.parentElement)==null?void 0:d.querySelector(".react-flow__pane");if(!s)return;const{onMove:c,onLeave:l,dispose:h}=lat(i);return s.addEventListener("mousemove",c,{passive:!0}),s.addEventListener("mouseleave",l,{passive:!0}),()=>{s.removeEventListener("mousemove",c),s.removeEventListener("mouseleave",l),h()}},[]),f.jsx("div",{ref:e,className:"glow-overlay","data-active":"false","data-testid":"canvas-glow-overlay",style:{backgroundPosition:`${n}px ${o}px`,backgroundSize:`${a}px ${a}px`}})}const uat="Hide inspector",hat="Open inspector";function fat({open:e,onToggle:t}){const n=e?v0:S2,o=e?uat:hat;return f.jsx(I0,{delayDuration:300,children:f.jsxs(mh,{children:[f.jsx(gh,{asChild:!0,children:f.jsx(rt,{type:"button",variant:"ghost",size:"icon","data-testid":"inspector-toggle","aria-pressed":e,"aria-label":o,onClick:t,className:"sf:h-8 sf:w-8",children:f.jsx(n,{className:"sf:h-4 sf:w-4","aria-hidden":"true"})})}),f.jsx(pu,{children:o})]})})}const pat={showToolbar:!0,showStyleStrip:!0,showDetailPanel:!0,showStatusBadges:!0,showResizeHandles:!0,showControls:!0,showShareMenu:!0,showMiniMap:!0,enableKeyboard:!0,enableContextMenu:!0,enableDragDrop:!0,enableImageDrop:!0,enableZoom:!0,enablePan:!0,enableSelection:!0,enableNodeMove:!0,enableEmbed:!1,enableAlignmentGuides:!0},yat={showToolbar:!0,showStyleStrip:!1,showDetailPanel:!1,showStatusBadges:!0,showResizeHandles:!1,showControls:!0,showShareMenu:!0,showMiniMap:!0,enableKeyboard:!1,enableContextMenu:!1,enableDragDrop:!1,enableImageDrop:!1,enableZoom:!0,enablePan:!0,enableSelection:!0,enableNodeMove:!0,enableEmbed:!1,enableAlignmentGuides:!1},mat={showToolbar:!1,showStyleStrip:!1,showDetailPanel:!1,showStatusBadges:!1,showResizeHandles:!1,showControls:!1,showShareMenu:!1,showMiniMap:!1,enableKeyboard:!1,enableContextMenu:!1,enableDragDrop:!1,enableImageDrop:!1,enableZoom:!1,enablePan:!1,enableSelection:!1,enableNodeMove:!1,enableEmbed:!1,enableAlignmentGuides:!1};function gat(e){const t=e.mode==="edit"?pat:e.mode==="mini"?mat:yat;return{showToolbar:e.showToolbar??t.showToolbar,showStyleStrip:e.showStyleStrip??t.showStyleStrip,showDetailPanel:e.showDetailPanel??t.showDetailPanel,showStatusBadges:e.showStatusBadges??t.showStatusBadges,showResizeHandles:e.showResizeHandles??t.showResizeHandles,showControls:e.showControls??t.showControls,showShareMenu:e.showShareMenu??t.showShareMenu,showMiniMap:e.showMiniMap??t.showMiniMap,enableKeyboard:e.enableKeyboard??t.enableKeyboard,enableContextMenu:e.enableContextMenu??t.enableContextMenu,enableDragDrop:e.enableDragDrop??t.enableDragDrop,enableImageDrop:e.enableImageDrop??t.enableImageDrop,enableZoom:e.enableZoom??t.enableZoom,enablePan:e.enablePan??t.enablePan,enableSelection:e.enableSelection??t.enableSelection,enableNodeMove:e.enableNodeMove??t.enableNodeMove,enableEmbed:e.enableEmbed??t.enableEmbed,enableAlignmentGuides:e.enableAlignmentGuides??t.enableAlignmentGuides,alignmentSnapThreshold:e.alignmentSnapThreshold}}const py=40,fX=4,Wh={padding:.15,duration:300,includeHiddenNodes:!1};function kat(e){return e===void 0||e===!1?{onMount:!1,onExternalNodeChange:!1}:e===!0?{onMount:!0,onExternalNodeChange:!0}:{onMount:e.onMount??!0,onExternalNodeChange:e.onExternalNodeChange??!0}}const pX=e=>{if("clientX"in e)return{clientX:e.clientX,clientY:e.clientY};const t=e.changedTouches[0]??e.touches[0];return t?{clientX:t.clientX,clientY:t.clientY}:null},vat=(e,t)=>{var o;const n=document.elementsFromPoint(e,t);for(const r of n){const a=(o=r.closest)==null?void 0:o.call(r,".react-flow__node");if(a)return a}return null},Kae=15,VD=(e,t,n)=>{const o=vat(t,n);if(o)return o;if(!e)return null;let r=null,a=Kae;const i=e.querySelectorAll(".react-flow__node");for(const s of i){const c=s.getBoundingClientRect();if(c.width===0||c.height===0)continue;const l=Math.max(c.left-t,0,t-c.right),h=Math.max(c.top-n,0,n-c.bottom),d=Math.hypot(l,h);d<=a&&(r=s,a=d)}return r};function yX(e,t,n,o,r){if(e==="source"?(o==null?void 0:o.targetPin)!==void 0||(o==null?void 0:o.targetHandleAutoPicked)===!1:(o==null?void 0:o.sourcePin)!==void 0||(o==null?void 0:o.sourceHandleAutoPicked)===!1)return;const i=e==="source"?n:t,s=e==="source"?t:n,c=r(i),l=r(s);if(!c||!l)return;const h=c.measured.width??c.width??0,d=c.measured.height??c.height??0,p=l.measured.width??l.width??0,y=l.measured.height??l.height??0;if(h===0||d===0||p===0||y===0)return;const g={x:c.internals.positionAbsolute.x,y:c.internals.positionAbsolute.y,w:h,h:d},k={x:l.internals.positionAbsolute.x+p/2,y:l.internals.positionAbsolute.y+y/2};return cOe(g,wf(g,k))}function xat(e,t,n,o){if(o===null)return"no-op";const r=e==="source"?t:n;return o===(e==="source"?n:t)?"self-loop":o===r?"pin-own":"reconnect-and-pin"}const wat=(e,t)=>{if(!t)return e;const n=t.data?{...e.data,...t.data}:e.data;return{...e,...t,data:n}},Mat=(e,t)=>t?{...e,...t}:e,bat={rectangle:lGe,ellipse:ao,sticky:ao,text:ao,database:ao,server:ao,user:ao,queue:ao,cloud:ao,diamond:ao,hexagon:ao,triangle:ao,parallelogram:ao,document:ao,image:JWe,icon:wOe,html:KWe,component:lWe,linkflow:oGe},_at={editableEdge:pGe},Cat={zIndex:0},Sat={hideAttribution:!0},Lat=8,mX=(e,t)=>e?typeof e=="string"?`url('#${e}')`:`url('#${`${t?`${t}__`:""}${Object.keys(e).sort().map(r=>`${r}=${e[r]}`).join("&")}`}')`:void 0,Nat=e=>function({fromX:n,fromY:o,toX:r,toY:a,fromPosition:i,toPosition:s,connectionLineStyle:c}){const l=je(me=>e.current?me.edges.find(Ae=>Ae.reconnectable===!0)??null:null),h=l==null?void 0:l.data,d=l?null:c0(ja).connector,p=je(me=>{var Ue;const Ae=me.connection;return((Ue=Ae==null?void 0:Ae.fromHandle)==null?void 0:Ue.nodeId)??null}),y=je(me=>l!=null&&l.source?me.nodeLookup.get(l.source)??null:null),g=je(me=>l!=null&&l.target?me.nodeLookup.get(l.target)??null:null),k=je(me=>p?me.nodeLookup.get(p)??null:null),x=(l==null?void 0:l.source)===p,v=l?x?y:g:k,M=x?g:y,w=x?h==null?void 0:h.sourcePin:h==null?void 0:h.targetPin,b=x?h==null?void 0:h.sourceHandleAutoPicked:h==null?void 0:h.targetHandleAutoPicked;let C=n,_=o,S=i,L=null;if(v){const me=v.measured.width??v.width??0,Ae=v.measured.height??v.height??0;if(me>0&&Ae>0){L={x:v.internals.positionAbsolute.x,y:v.internals.positionAbsolute.y,w:me,h:Ae};let Ue=null;if(w)Ue=gz(L,w);else if(b!==!1&&M){const ut=M.measured.width??M.width??0,et=M.measured.height??M.height??0;if(ut>0&&et>0){const le={x:M.internals.positionAbsolute.x+ut/2,y:M.internals.positionAbsolute.y+et/2};Ue=wf(L,le)}}Ue&&(C=Ue.x,_=Ue.y,S=BD[Ue.side])}}const A=je(me=>me.transform[2]),I=je(me=>me.transform[0]),R=je(me=>me.transform[1]),j=je(me=>me.nodeLookup),V=je(me=>{var Ae;return((Ae=me.connection.toHandle)==null?void 0:Ae.nodeId)??null}),$=je(me=>{var Ae;return((Ae=me.connection.pointer)==null?void 0:Ae.x)??null}),T=je(me=>{var Ae;return((Ae=me.connection.pointer)==null?void 0:Ae.y)??null}),D=$!==null&&A>0?($-I)/A:null,F=T!==null&&A>0?(T-R)/A:null;let z=r,E=a,N=s,W=!1;if(A>0){const me=Kae/A,Ae=l?x?l.source:l.target:null;let Ue=null;if(V&&V!==Ae){const ut=j.get(V)??null;ut&&(Ue=ut)}if(!Ue){let ut=me;for(const et of j.values()){if(Ae&&et.id===Ae||v&&et.id===v.id)continue;const le=et.measured.width??et.width??0,rn=et.measured.height??et.height??0;if(le===0||rn===0)continue;const Gt=et.internals.positionAbsolute.x,J=et.internals.positionAbsolute.y,H=Math.max(Gt-r,0,r-(Gt+le)),Q=Math.max(J-a,0,a-(J+rn)),be=Math.hypot(H,Q);be<=ut&&(ut=be,Ue=et)}}if(Ue){const ut=Ue.measured.width??Ue.width??0,et=Ue.measured.height??Ue.height??0;if(ut>0&&et>0){const le={x:Ue.internals.positionAbsolute.x,y:Ue.internals.positionAbsolute.y,w:ut,h:et},Gt=uO(le,D!==null&&F!==null?{x:D,y:F}:{x:r,y:a}),J=gz(le,Gt);if(z=J.x,E=J.y,N=BD[J.side],!l&&L){const H={x:le.x+le.w/2,y:le.y+le.h/2},Q=wf(L,H);C=Q.x,_=Q.y,S=BD[Q.side],W=!0}}}}const O=l?(h==null?void 0:h.path)==="step":(d==null?void 0:d.path)==="step",[P]=O?vf({sourceX:C,sourceY:_,sourcePosition:S,targetX:z,targetY:E,targetPosition:N,borderRadius:Lat}):xR({sourceX:C,sourceY:_,sourcePosition:S,targetX:z,targetY:E,targetPosition:N}),Y=!l&&v?{...d!=null&&d.style?Mee[d.style]:{},...Ct(d==null?void 0:d.color,"edge"),strokeWidth:(d==null?void 0:d.borderSize)??2}:void 0,Z=(l==null?void 0:l.style)??Y??c??void 0,te=je(me=>me.rfId),ie=x?l==null?void 0:l.markerStart:l==null?void 0:l.markerEnd,re=x?l==null?void 0:l.markerEnd:l==null?void 0:l.markerStart,ae=mX(ie,te),se=mX(re,te),ve=Z==null?void 0:Z.stroke,ke=(d==null?void 0:d.direction)??"forward",ge=((d==null?void 0:d.headShape)??"arrow")==="arrow",Pe=((d==null?void 0:d.tailShape)??(d==null?void 0:d.headShape)??"arrow")==="arrow",Be=W&&!!ve,De=Be&&ge&&(ke==="forward"||ke==="both")?kX(z,E,N):null,pe=Be&&Pe&&(ke==="backward"||ke==="both")?kX(C,_,S):null;return f.jsxs(f.Fragment,{children:[f.jsx("path",{d:P,fill:"none",className:"react-flow__connection-path",style:Z,markerStart:ae,markerEnd:se}),De?f.jsx("polygon",{points:De,fill:ve??void 0}):null,pe?f.jsx("polygon",{points:pe,fill:ve??void 0}):null]})},gX=11,yy=5.5;function kX(e,t,n){const o=n===ue.Left?{x:1,y:0}:n===ue.Right?{x:-1,y:0}:n===ue.Top?{x:0,y:1}:{x:0,y:-1},r={x:-o.y,y:o.x},a=e-o.x*gX,i=t-o.y*gX,s=a+r.x*yy,c=i+r.y*yy,l=a-r.x*yy,h=i-r.y*yy;return`${e},${t} ${s},${c} ${l},${h}`}const BD={top:ue.Top,right:ue.Right,bottom:ue.Bottom,left:ue.Left};function Iat({storeApiRef:e}){const t=St();return m.useEffect(()=>(e.current=t,()=>{e.current===t&&(e.current=null)}),[t,e]),null}function Aat({wrapperRef:e}){const t=je(o=>o.transform[2]),n=e.current;return n&&n.style.setProperty("--rf-zoom",String(t)),null}const Eat=new Set(["INPUT","TEXTAREA","SELECT"]),JO=e=>e?Eat.has(e.tagName)?!0:e instanceof HTMLElement&&e.isContentEditable:!1;function jat(e){const{event:t,selectedNodeIds:n,hasClipboard:o,activeElement:r,onCopySelection:a,onPasteSelection:i}=e;if(!(t.metaKey||t.ctrlKey)||t.shiftKey||t.altKey)return!1;const s=t.key.toLowerCase();return s!=="c"&&s!=="v"||JO(r)?!1:s==="c"?n.length===0||!a?!1:(t.preventDefault(),a([...n]),!0):!o||!i?!1:(t.preventDefault(),i(),!0)}const vX=(e,t)=>{var n;return((n=e==null?void 0:e[t])==null?void 0:n.status)??"idle"},$at=(e,t)=>{var n;return(n=e==null?void 0:e[t])==null?void 0:n.status},Pat=(e,t)=>{var n,o;return((n=e==null?void 0:e[t])==null?void 0:n.status)==="error"?(o=e[t])==null?void 0:o.error:void 0};function zat(e,t){var QV,JV,eB;const{mode:n,adapter:o,topLeftSlot:r,topRightSlot:a,projectId:i,flowSlug:s,fileBaseUrl:c,apiBaseUrl:l="/api",studioBaseUrl:h="",nodes:d,connectors:p,selectedNodeIds:y,selectedConnectorIds:g,onSelectionChange:k,runtime:x,onPlayNode:v,onNodePositionChange:M,onNodePositionsChange:w,onNodeResize:b,onNodeResizeEnd:C,onHtmlNodeFitToContent:_,onComponentNodeFitToContent:S,onMultiResize:L,onNodeNameChange:A,onNodeDescriptionChange:I,onConnectorLabelChange:R,onCreateShapeNode:j,onCreateIconNode:V,onCreateLinkflowNode:$,onCreateImageFromFile:T,onRetryImageUpload:D,onCreateHtmlNode:F,onCreateConnector:z,onReconnectConnector:E,onReorderNode:N,onDeleteNode:W,onCopyNode:O,onPasteAt:P,hasClipboard:Y,onCopySelection:Z,onPasteSelection:te,selectedNodes:ie,selectedConnectors:re,onStyleNode:ae,onStyleNodePreview:se,onStyleNodes:ve,onStyleNodesPreview:ke,onStyleConnector:ge,onStyleConnectorPreview:Pe,onRfInit:Be,onTidy:De,onNodeClick:pe,onConnectorClick:me,onPaneClick:Ae,onCreateAndConnectFromPane:Ue,pendingEditNodeId:ut,iconPickerOpen:et,onOpenIconPicker:le,onCloseIconPicker:rn,onPickIcon:Gt,onRequestIconReplace:J,onPinEndpoint:H,onUnpinEndpoint:Q,canvasMode:be,onCanvasModeChange:Ee,disableSidebar:wt,statusReport:gn,onNameChange:an,onDescriptionChange:Fn,onDetailChange:qn,onIconChange:Me,autoFitView:Fe,autoFitViewSignal:dn,customIcons:gr,onExportToCloud:pt,onNodeDragStart:dt,onNodeDragStop:Vn,onViewportChange:ma,history:Qt,showToolbar:Pt,showStyleStrip:Jt,showDetailPanel:mu,showStatusBadges:gu,showResizeHandles:ku,showControls:vu,showShareMenu:xu,showMiniMap:wu,enableKeyboard:hs,enableContextMenu:fs,enableDragDrop:ps,enableImageDrop:ys,enableZoom:ga,enablePan:ka,enableSelection:Mu,enableNodeMove:bu,enableEmbed:Co,enableAlignmentGuides:Qa,alignmentSnapThreshold:Ja}=e,He=m.useMemo(()=>gat({mode:n,showToolbar:Pt,showStyleStrip:Jt,showDetailPanel:mu,showStatusBadges:gu,showResizeHandles:ku,showControls:vu,showShareMenu:xu,showMiniMap:wu,enableKeyboard:hs,enableContextMenu:fs,enableDragDrop:ps,enableImageDrop:ys,enableZoom:ga,enablePan:ka,enableSelection:Mu,enableNodeMove:bu,enableEmbed:Co,enableAlignmentGuides:Qa,alignmentSnapThreshold:Ja}),[n,Pt,Jt,mu,gu,ku,vu,xu,wu,hs,fs,ps,ys,ga,ka,Mu,bu,Co,Qa,Ja]),Ht=n==="edit",ms=m.useRef(He);m.useEffect(()=>{ms.current=He},[He]);const _u=Fe??(n==="mini"?!0:void 0),va=m.useMemo(()=>kat(_u),[_u]),kr=x==null?void 0:x.runs,xa=x==null?void 0:x.statuses,Sn=(QV=x==null?void 0:x.pendingOverrides)==null?void 0:QV.nodes,Oo=(JV=x==null?void 0:x.pendingOverrides)==null?void 0:JV.connectors,kn=m.useRef(null),Ot=m.useRef(null),ei=m.useRef(!1),gs=m.useRef(!1),Fo=m.useRef(!1),ti=m.useRef(va);ti.current=va,m.useEffect(()=>{if(ei.current||!va.onMount||d.length===0)return;const q=Ot.current;q&&(q.fitView(Wh),ei.current=!0)},[d,va.onMount]);const wa=m.useRef(null),en=be.kind==="draw"?be.shape:null,qo=be.kind==="draw-icon"?be.iconName:null,So=en!==null||qo!==null,vr=be.kind==="hand",ni=m.useRef(new Map),Cu=m.useCallback((q,X)=>(ni.current.set(q,X),()=>{ni.current.get(q)===X&&ni.current.delete(q)}),[]),Su=m.useRef(null),Lo=m.useCallback(()=>Su.current,[]),ks=m.useCallback(q=>{Su.current=q},[]),[Vo,xr]=m.useState(!1),Lu=m.useRef(!1);m.useEffect(()=>{Lu.current=Vo},[Vo]);const Ln=m.useRef(!1),no=m.useRef(!1),oo=m.useRef(!1),[Nn,Ma]=m.useState(null),xh=m.useRef(null);m.useEffect(()=>{xh.current=Nn},[Nn]),m.useCallback(()=>{Ma(null)},[]);const rT=m.useMemo(()=>Nat(oo),[]),Nu=m.useRef(null),Lt=m.useRef(null),oi=m.useCallback(q=>{const X=kn.current;if(!X){Nu.current=q;return}const oe=Nu.current;if(oe&&oe!==q){const ce=X.querySelector(`.react-flow__node[data-id="${CSS.escape(oe)}"]`);ce==null||ce.removeAttribute("data-connect-source")}if(q){const ce=X.querySelector(`.react-flow__node[data-id="${CSS.escape(q)}"]`);ce==null||ce.setAttribute("data-connect-source","true")}Nu.current=q},[]),wr=m.useCallback(q=>{const X=kn.current,oe=Lt.current;if(oe!==q){if(X&&oe){const ce=X.querySelector(`.react-flow__node[data-id="${CSS.escape(oe)}"]`);ce==null||ce.removeAttribute("data-connect-target")}if(X&&q){const ce=X.querySelector(`.react-flow__node[data-id="${CSS.escape(q)}"]`);ce==null||ce.setAttribute("data-connect-target","true")}Lt.current=q}},[]),No=m.useCallback(()=>{oi(null),wr(null)},[oi,wr]);m.useEffect(()=>{if(!Vo){wr(null);return}let q=null,X=null;const oe=()=>{q=null;const de=X;if(X=null,!de)return;const Ne=VD(kn.current,de.clientX,de.clientY),xe=(Ne==null?void 0:Ne.getAttribute("data-id"))??null;if(xe&&xe===Nu.current){wr(null);return}wr(xe)},ce=de=>{X={clientX:de.clientX,clientY:de.clientY},q===null&&(q=requestAnimationFrame(oe))};return document.addEventListener("pointermove",ce,{passive:!0}),()=>{document.removeEventListener("pointermove",ce),q!==null&&cancelAnimationFrame(q)}},[Vo,wr]);const[Mr,wh]=m.useState(null),[ri,vs]=m.useState(null),Bo=m.useRef(null),xs=m.useRef(null),ws=m.useRef(null),Ms=m.useRef(null),ai=m.useRef(!1);m.useEffect(()=>{Bo.current=en},[en]),m.useEffect(()=>{xs.current=qo},[qo]);const Mh=m.useCallback(()=>{Ee({kind:"select"}),wh(null),vs(null),Bo.current=null,xs.current=null,ws.current=null,Ms.current=null,ai.current=!1},[Ee]);m.useEffect(()=>{if(!He.enableKeyboard)return;const q=X=>{var de,Ne;if(X.key!=="Escape"||JO(document.activeElement))return;if(Bo.current||xs.current){X.preventDefault(),Mh();return}if(Lu.current){X.preventDefault(),Ln.current=!0,no.current=!0;try{(de=wa.current)==null||de.getState().cancelConnection()}catch{}document.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0,cancelable:!0,button:0})),xr(!1);return}if(xh.current){X.preventDefault(),Ma(null);return}const oe=Wo.current.size>0,ce=ba.current.size>0;(oe||ce)&&(X.preventDefault(),(Ne=Nr.current)==null||Ne.call(Nr,[],[]))};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[Mh,He.enableKeyboard]),m.useEffect(()=>{if(!He.enableKeyboard)return;const q=X=>{const oe=jOe(X,{isEditableActive:JO(document.activeElement)});oe&&Qt&&(X.preventDefault(),X.stopPropagation(),oe==="undo"?Qt.undo():Qt.redo())};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[Qt,He.enableKeyboard]),m.useEffect(()=>{if(!He.enableKeyboard)return;const q=X=>{jat({event:X,selectedNodeIds:y,hasClipboard:!!Y,activeElement:document.activeElement,onCopySelection:Z,onPasteSelection:te})};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[y,Y,Z,te,He.enableKeyboard]);const ap=m.useCallback(q=>{var ce,de;if(!Bo.current&&!xs.current)return;const X=q.target;if(!(X!=null&&X.classList.contains("react-flow__pane")))return;const oe={x:q.clientX,y:q.clientY};ai.current=!0,ws.current=oe,Ms.current=oe,wh(oe),vs(oe);try{(de=(ce=q.currentTarget).setPointerCapture)==null||de.call(ce,q.pointerId)}catch{}q.preventDefault(),q.stopPropagation()},[]),aT=m.useCallback(q=>{if(!ai.current)return;const X={x:q.clientX,y:q.clientY};Ms.current=X,vs(X)},[]),ip=m.useCallback(q=>{var Sh,tB;if(!ai.current)return;ai.current=!1;try{(tB=(Sh=q.currentTarget).releasePointerCapture)==null||tB.call(Sh,q.pointerId)}catch{}const X=ws.current,oe=Ms.current,ce=Bo.current,de=xs.current,Ne=Ot.current;if(Mh(),!X||!oe||!Ne||!ce&&!de)return;const xe=Math.min(X.x,oe.x),Ie=Math.min(X.y,oe.y),nt=Math.max(X.x,oe.x),ft=Math.max(X.y,oe.y),mt=nt-xe,Re=ft-Ie,Ut=Ne.screenToFlowPosition({x:xe,y:Ie}),ro=Ne.screenToFlowPosition({x:nt,y:ft}),gt=ro.x-Ut.x,kt=ro.y-Ut.y;if(ce==="linkflow"){const Lh=mt<fX&&Re<fX,yT=Lh?Ez.width:Math.max(gt,jz.width),mT=Lh?Ez.height:Math.max(kt,jz.height);$==null||$(Ut,{width:yT,height:mT});return}if(de){const Lh=mt<py||Re<py,yT=Lh?G0.width:gt,mT=Lh?G0.height:kt;V==null||V(de,Ut,{width:yT,height:mT});return}if(!ce)return;const zt=mt<py||Re<py,qe=zt?Az[ce].width:gt,_a=zt?Az[ce].height:kt;j==null||j(ce,Ut,{width:qe,height:_a})},[Mh,j,V,$]),br=m.useRef(!1),U=m.useRef(!1),B=m.useRef(null),G=m.useRef({}),K=m.useRef(new Map),ne=m.useCallback(()=>{var q;gs.current&&(U.current||br.current||(gs.current=!1,(q=Ot.current)==null||q.fitView(Wh)))},[]),ze=m.useCallback(q=>{U.current=q,q||ne()},[ne]),Mt=m.useMemo(()=>({beginResize:(q,X)=>{var oe;return(oe=B.current)==null?void 0:oe.beginResize(q,X)},applyResizeSnap:(q,X)=>{var oe;return((oe=B.current)==null?void 0:oe.applyResizeSnap(q,X))??{snappedRect:q,guides:[]}},endResize:()=>{var q;return(q=B.current)==null?void 0:q.endResize()}}),[]);m.useEffect(()=>{var q;if(!Fo.current){Fo.current=!0;return}if(ti.current.onExternalNodeChange){if(U.current||br.current){gs.current=!0;return}(q=Ot.current)==null||q.fitView(Wh)}},[dn]);const Ye=!!N||!!W||!!O||!!P||!!Q,[ht,In]=m.useState(null),[Io,Te]=m.useState(!1),[un,_r]=m.useState(null),[Cr,Sr]=m.useState(null),Uo=m.useRef(null),bh=m.useRef(null);m.useEffect(()=>{if(!ht)return;const q=bh.current;if(!q)return;const X=new MouseEvent("contextmenu",{clientX:ht.x,clientY:ht.y,bubbles:!0,cancelable:!0,button:2,buttons:2});q.dispatchEvent(X)},[ht]);const Lr=m.useCallback(q=>{const X=Uo.current;!X||!N||N(X,q)},[N]),Xe=m.useCallback(()=>{const q=Uo.current;!q||!W||W(q)},[W]),sn=m.useCallback(()=>{const q=Uo.current;!q||!O||O(q)},[O]),An=m.useCallback(()=>{const q=Uo.current;!q||!J||J(q)},[J]);m.useCallback((q,X,oe,ce,de)=>{ms.current.enableContextMenu&&(Uo.current=null,Te(!1),_r(null),Sr({connectorId:q,kind:X,pinned:oe}),In({x:ce,y:de}))},[]);const Ao=m.useCallback(()=>{const q=Cr;!q||!Q||Q(q.connectorId,q.kind)},[Cr,Q]),Iu=m.useCallback(()=>{if(!P)return;const q=ht,X=Ot.current;if(!q||!X)return;const oe=X.screenToFlowPosition({x:q.x,y:q.y});P(oe)},[ht,P]),Au=typeof navigator<"u"&&/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent||""),iT=Au?"⌘C":"Ctrl+C",sp=Au?"⌘V":"Ctrl+V",Eu=m.useMemo(()=>new Set(y),[y]),ii=m.useMemo(()=>new Set(g),[g]),kie=m.useMemo(()=>{if(y.length<2)return[];const q=Sn,X=[];for(const oe of y){const ce=d.find(Ie=>Ie.id===oe);if(!ce)continue;const de=q==null?void 0:q[oe],Ne=(de==null?void 0:de.data)??{},xe=ce.data;X.push({id:oe,position:(de==null?void 0:de.position)??ce.position,data:{width:Ne.width??xe.width,height:Ne.height??xe.height}})}return X},[d,Sn,y]),vie=ie??[],cp=m.useMemo(()=>{const q=de=>{const Ne=Ht?void 0:K.current.get(de.id),xe={id:de.id,type:de.type,position:Ne??de.position,data:{...de.data,projectId:i,fileBaseUrl:c,projectSlug:de.type==="component"?i:void 0,flowSlug:de.type==="component"?s:void 0,apiBaseUrl:de.type==="component"?l:void 0,onRetryUpload:D,status:$at(kr,de.id),errorMessage:Pat(kr,de.id),statusReport:xa==null?void 0:xa[de.id],onPlay:v,onResize:b,onResizeEnd:C,setResizing:ze,resizeAlignment:He.enableAlignmentGuides?Mt:void 0,onFitToContent:de.type==="html"?_:de.type==="component"?S:void 0,onNameChange:(()=>{if(Ht&&de.type!=="ellipse")return A})(),onDescriptionChange:(()=>{if(Ht&&(de.type==="rectangle"||de.type==="ellipse"||de.type==="sticky"))return I})(),onIconChange:(()=>{if(Ht&&!(de.type!=="rectangle"&&de.type!=="component"))return Me})(),autoEditOnMount:ut===de.id?!0:void 0},selected:Eu.has(de.id)};return(!(de.data.autoSize===!0)||U.current)&&(de.data.width!==void 0&&(xe.width=de.data.width),de.data.height!==void 0&&(xe.height=de.data.height)),Eu.has(de.id)||(xe.connectable=!1),xe},X=d.map(de=>q(wat(de,Sn==null?void 0:Sn[de.id]))),oe=new Set(d.map(de=>de.id)),ce=[];if(Sn)for(const[de,Ne]of Object.entries(Sn)){if(oe.has(de))continue;const xe=Ne;typeof xe.type!="string"||!xe.position||!xe.data||ce.push(q({...xe,id:de}))}return[...X,...ce]},[i,s,c,l,d,Eu,kr,xa,v,b,C,_,S,ze,Mt,He.enableAlignmentGuides,Sn,A,I,Me,D,ut,Ht]),[sT,cT]=m.useState(cp);m.useEffect(()=>{br.current||U.current||cT(cp)},[cp]),m.useEffect(()=>{bs.current=sT},[sT]);const Wo=m.useRef(Eu);m.useEffect(()=>{Wo.current=Eu},[Eu]);const Nr=m.useRef(k);m.useEffect(()=>{Nr.current=k},[k]);const ba=m.useRef(ii);m.useEffect(()=>{ba.current=ii},[ii]);const bs=m.useRef(cp),_s=m.useRef(!1),lp=m.useRef(new Set),dp=m.useRef(new Set),lT=m.useRef(new Set),dT=m.useRef(new Set),si=m.useRef(null),xie=m.useCallback(q=>{var zt;const X=B.current,oe=X?X.interceptChanges(q,G.current):q,ce=_s.current?lT.current:(zt=si.current)!=null&&zt.shift?si.current.nodeIds:null,de=ce&&ce.size>0?oe.filter(qe=>qe.type!=="select"?!0:!(qe.selected===!1&&ce.has(qe.id))):oe,Ne=new Set;for(const qe of de)qe.type==="select"&&Ne.add(qe.id);const xe=UJ(de,bs.current),Ie=new Set;if(U.current)for(const qe of de)qe.type==="dimensions"&&Ie.add(qe.id);const nt=Ie.size===0?xe:xe.map(qe=>!Ie.has(qe.id)||qe.width===void 0&&qe.height===void 0?qe:{...qe,data:{...qe.data,...qe.width!==void 0?{width:qe.width}:{},...qe.height!==void 0?{height:qe.height}:{}}}),ft=Wo.current,mt=_s.current||ft.size===0?nt:nt.map(qe=>ft.has(qe.id)&&!Ne.has(qe.id)&&!qe.selected?{...qe,selected:!0}:qe);if(bs.current=mt,cT(mt),Ne.size===0)return;if(_s.current){for(const qe of de)qe.type==="select"&&(qe.selected?lp.current.add(qe.id):lp.current.delete(qe.id));return}const Re=Nr.current;if(!Re)return;const Ut=mt.filter(qe=>qe.selected).map(qe=>qe.id),ro=Wo.current;ro.size===Ut.length&&Ut.every(qe=>ro.has(qe))||(Wo.current=new Set(Ut),Re(Ut,[...ba.current]))},[]),up=m.useRef([]),wie=m.useCallback(q=>{var mt;const X=_s.current?dT.current:(mt=si.current)!=null&&mt.shift?si.current.edgeIds:null,oe=X&&X.size>0?q.filter(Re=>Re.type!=="select"?!0:!(Re.selected===!1&&X.has(Re.id))):q,ce=new Set;for(const Re of oe)Re.type==="select"&&ce.add(Re.id);if(ce.size===0)return;if(_s.current){for(const Re of oe)Re.type==="select"&&(Re.selected?dp.current.add(Re.id):dp.current.delete(Re.id));return}const de=Nr.current;if(!de)return;const xe=WJ(oe,up.current).filter(Re=>Re.selected).map(Re=>Re.id),Ie=ba.current;Ie.size===xe.length&&xe.every(Re=>Ie.has(Re))||(ba.current=new Set(xe),de([...Wo.current],xe))},[]),Mie=m.useCallback(q=>{_s.current=!0;const X=si.current,oe=(X==null?void 0:X.shift)??(q.shiftKey||q.metaKey||q.ctrlKey);lT.current=oe?new Set((X==null?void 0:X.nodeIds)??Wo.current):new Set,dT.current=oe?new Set((X==null?void 0:X.edgeIds)??ba.current):new Set,lp.current=new Set(lT.current),dp.current=new Set(dT.current)},[]),bie=m.useCallback(()=>{_s.current=!1,si.current=null;const q=Nr.current;if(!q)return;const X=[...lp.current],oe=new Set(X),ce=new Set(dp.current);for(const nt of up.current)oe.has(nt.source)&&oe.has(nt.target)&&ce.add(nt.id);const de=Wo.current,Ne=ba.current,xe=de.size===oe.size&&X.every(nt=>de.has(nt)),Ie=Ne.size===ce.size&&[...ce].every(nt=>Ne.has(nt));xe&&Ie||(Wo.current=new Set(X),ba.current=new Set(ce),q(X,[...ce]))},[]),_ie=m.useCallback(q=>{if(si.current=null,Bo.current||q.button!==0)return;const X=q.target;X!=null&&X.classList.contains("react-flow__pane")&&(si.current={shift:q.shiftKey||q.metaKey||q.ctrlKey,nodeIds:new Set(Wo.current),edgeIds:new Set(ba.current)})},[]),Cie=m.useCallback(q=>{if(!ms.current.enableContextMenu||Wo.current.size<2)return;const oe=q.target;oe!==bh.current&&(oe!=null&&oe.closest(".seeflow-connector-endpoint-dot")||(q.preventDefault(),q.stopPropagation(),Uo.current=null,Te(!0),_r(null),Sr(null),In({x:q.clientX,y:q.clientY})))},[]),Sie=m.useCallback(q=>{const X=q.dataTransfer;if(!X)return;const oe=X.types?Array.from(X.types):[],ce=oe.includes("Files"),de=oe.includes(BG),Ne=ce&&!!T&&He.enableImageDrop,xe=de&&!!F&&He.enableDragDrop;if(!(!Ne&&!xe)){q.preventDefault();try{X.dropEffect="copy"}catch{}}},[T,F,He.enableImageDrop,He.enableDragDrop]),Lie=m.useCallback(q=>{const X=q.dataTransfer;if((X!=null&&X.types?Array.from(X.types):[]).includes(BG)&&F&&He.enableDragDrop){q.preventDefault();const Ne=Ot.current;if(!Ne)return;const xe=Ne.screenToFlowPosition({x:q.clientX,y:q.clientY});F({position:xe});return}if(!T||!He.enableImageDrop)return;const de={x:q.clientX,y:q.clientY};q.preventDefault(),ZEe({dataTransfer:X,clientPos:de,rfInstance:Ot.current,computeDims:YEe,dispatch:T})},[T,F,He.enableImageDrop,He.enableDragDrop]),RV=!!E,TV=ii.size===1?[...ii][0]:null,uT=m.useMemo(()=>{const q=Ie=>{const nt=vX(kr,Ie.source)==="running"||vX(kr,Ie.target)==="running",ft=ii.has(Ie.id),mt=nOe(Ie,nt,ft);ft&&(mt.selected=!0);const Re=RV&&Ie.id===TV,Ut=Re?{...mt,reconnectable:!0}:mt;return{...Ut,data:{...Ut.data,onLabelChange:Ht?R:void 0,reconnectable:Re,registerEditHandle:Cu,getEditingConnectorId:Lo,setEditingConnectorId:ks}}},X=new Set(p.map(Ie=>Ie.id)),oe=p.map(Ie=>q(Mat(Ie,Oo==null?void 0:Oo[Ie.id]))),ce=[];if(Oo)for(const[Ie,nt]of Object.entries(Oo)){if(X.has(Ie))continue;const ft=nt;typeof ft.source!="string"||typeof ft.target!="string"||ce.push(q({...ft,id:Ie}))}const de=[...oe,...ce],Ne=[],xe=[];for(const Ie of de)ii.has(Ie.id)?xe.push(Ie):Ne.push(Ie);return[...Ne,...xe]},[p,kr,ii,TV,Oo,R,RV,Cu,Lo,ks,Ht]);m.useEffect(()=>{up.current=uT},[uT]);const _h=o??null,Nie=m.useMemo(()=>{if(_h!=null&&_h.computeLayout)return async()=>{const q=Ot.current,X=bs.current;if(X.length<2)return;const oe=X.map(gt=>{var Sh;const kt=(Sh=q==null?void 0:q.getInternalNode(gt.id))==null?void 0:Sh.measured,zt=gt.data,qe=(kt==null?void 0:kt.width)??zt.width??200,_a=(kt==null?void 0:kt.height)??zt.height??120;return{id:gt.id,type:gt.type,width:qe,height:_a}}),ce=new Map;for(const gt of X)ce.set(gt.id,gt.position);const de=up.current.map(gt=>({id:gt.id,source:gt.source,target:gt.target})),Ne=_h.computeLayout;if(!Ne)return;const xe=await Ne(oe,de),Ie=new Map;for(const[gt,kt]of Object.entries(xe.nodes))Ie.set(gt,kt.position);let nt=Number.POSITIVE_INFINITY,ft=Number.POSITIVE_INFINITY,mt=Number.POSITIVE_INFINITY,Re=Number.POSITIVE_INFINITY;for(const gt of oe){const kt=ce.get(gt.id);if(!kt)continue;kt.x<nt&&(nt=kt.x),kt.y<ft&&(ft=kt.y);const zt=Ie.get(gt.id);zt&&(zt.x<mt&&(mt=zt.x),zt.y<Re&&(Re=zt.y))}const Ut=Number.isFinite(nt)&&Number.isFinite(mt)?nt-mt:0,ro=Number.isFinite(ft)&&Number.isFinite(Re)?ft-Re:0;cT(gt=>gt.map(kt=>{const zt=Ie.get(kt.id);return zt?{...kt,position:{x:zt.x+Ut,y:zt.y+ro}}:kt}))}},[_h]),hp=De??(Ht?void 0:Nie),fp=m.useRef(!1),DV=m.useRef(null),Iie=m.useCallback(q=>{var Ie;if(!Ht||!z)return;const{source:X,target:oe}=q;if(!X||!oe||X===oe)return;fp.current=!0;const ce=((Ie=DV.current)==null?void 0:Ie.nodeId)??null,de=ce!==null&&ce===oe&&ce!==X;z(de?oe:X,de?X:oe)},[z,Ht]),hT=m.useCallback(q=>{const X=oe=>{if(!oe)return!1;const ce=bs.current.find(de=>de.id===oe);return ce?ce.type==="text":!1};return!X(q.source)&&!X(q.target)},[]),Aie=m.useCallback((q,X)=>{var mt;xr(!1),No();const oe=fp.current;if(fp.current=!1,oe||oo.current)return;if(Ln.current){Ln.current=!1;return}if(!z)return;const ce=(mt=X.fromNode)==null?void 0:mt.id,de=X.fromHandle;if(!ce||!de)return;const Ne=pX(q);if(!Ne)return;const xe=VD(kn.current,Ne.clientX,Ne.clientY);if(!xe)return;const Ie=xe.getAttribute("data-id");if(!Ie||Ie===ce||!hT({source:ce,target:Ie,sourceHandle:null,targetHandle:null}))return;let nt;const ft=Ot.current;if(ft){const Re=ft.getInternalNode(Ie);if(Re){const Ut=Re.measured.width??Re.width??0,ro=Re.measured.height??Re.height??0;if(Ut>0&&ro>0){const gt=ft.screenToFlowPosition({x:Ne.clientX,y:Ne.clientY});nt=uO({x:Re.internals.positionAbsolute.x,y:Re.internals.positionAbsolute.y,w:Ut,h:ro},gt)}}}z(ce,Ie,nt?{targetPin:nt}:void 0)},[z,No,hT]),pp=m.useRef(!1),Eie=m.useCallback((q,X)=>{if(!E)return;const{source:oe,target:ce,sourceHandle:de,targetHandle:Ne}=X;if(!oe||!ce||oe===ce)return;const xe={};if(oe!==q.source&&(xe.source=oe),ce!==q.target&&(xe.target=ce),typeof de=="string"&&de!==q.sourceHandle&&(xe.sourceHandle=de),typeof Ne=="string"&&Ne!==q.targetHandle&&(xe.targetHandle=Ne),xe.source===void 0&&xe.target===void 0&&xe.sourceHandle===void 0&&xe.targetHandle===void 0)return;(xe.source!==void 0||xe.sourceHandle!==void 0)&&(xe.sourceHandleAutoPicked=!1),(xe.target!==void 0||xe.targetHandle!==void 0)&&(xe.targetHandleAutoPicked=!1);const Ie=Ot.current;if(!(xe.source===void 0&&xe.target===void 0)&&Ie){const ft=xe.source!==void 0?"source":"target",mt=yX(ft,q.source,q.target,q.data,Re=>Ie.getInternalNode(Re)??null);mt&&(ft==="source"?xe.targetPin=mt:xe.sourcePin=mt)}pp.current=!0,E(q.id,xe)},[E]),jie=m.useCallback((q,X,oe,ce)=>{var qe;xr(!1),No(),oo.current=!1;const de=pp.current;if(pp.current=!1,de)return;if(no.current){no.current=!1;return}if(!E)return;const Ne=pX(q);let xe=((qe=ce.toNode)==null?void 0:qe.id)??null;if(!xe&&Ne){const _a=VD(kn.current,Ne.clientX,Ne.clientY);xe=(_a==null?void 0:_a.getAttribute("data-id"))??null}const Ie=oe==="source"?"target":"source",nt=xat(Ie,X.source,X.target,xe);if(nt==="no-op"||nt==="self-loop"||!Ne)return;const ft=Ot.current;if(!ft)return;const mt=nt==="pin-own"?Ie==="source"?X.source:X.target:xe,Re=ft.getInternalNode(mt);if(!Re)return;const Ut=Re.measured.width??Re.width??0,ro=Re.measured.height??Re.height??0;if(Ut===0||ro===0)return;const gt=ft.screenToFlowPosition({x:Ne.clientX,y:Ne.clientY}),kt=uO({x:Re.internals.positionAbsolute.x,y:Re.internals.positionAbsolute.y,w:Ut,h:ro},gt);if(nt==="pin-own"){if(!H)return;H(X.id,Ie,kt);return}const zt=yX(Ie,X.source,X.target,X.data,_a=>ft.getInternalNode(_a)??null);Ie==="source"?E(X.id,{source:xe,sourceHandle:null,sourceHandleAutoPicked:!1,sourcePin:kt,...zt?{targetPin:zt}:{}}):E(X.id,{target:xe,targetHandle:null,targetHandleAutoPicked:!1,targetPin:kt,...zt?{sourcePin:zt}:{}})},[E,No,H]),Cs=m.useMemo(()=>{var Ie;if(!Mr||!ri)return null;const q=(Ie=kn.current)==null?void 0:Ie.getBoundingClientRect(),X=(q==null?void 0:q.left)??0,oe=(q==null?void 0:q.top)??0,ce=Math.min(Mr.x,ri.x),de=Math.min(Mr.y,ri.y),Ne=Math.abs(ri.x-Mr.x),xe=Math.abs(ri.y-Mr.y);return{left:ce-X,top:de-oe,width:Ne,height:xe}},[Mr,ri]),ci=en?c0(ja).node:void 0,Ch=en==="linkflow",$ie=en&&!Ch?vne(en):"",Pie=en&&!Ch?xne(en,ci):void 0,zie=en==="text",[HV,OV]=m.useState(!1),[Rie,yp]=m.useState(!1),[Tie,FV]=m.useState(!1),[qV,Die]=m.useState(()=>({canUndo:(Qt==null?void 0:Qt.canUndo)??!1,canRedo:(Qt==null?void 0:Qt.canRedo)??!1}));m.useEffect(()=>Qt?Qt.subscribe(Die):void 0,[Qt]);const[fT,VV]=m.useState(!1),Hie=((eB=Ot.current)==null?void 0:eB.getViewport())??{x:0,y:0,zoom:1},BV=srt({enabled:He.enableAlignmentGuides,thresholdPx:He.alignmentSnapThreshold??6,viewport:Hie,rfNodesRef:bs});B.current=BV;const Oie=Qt?qV.canUndo:!1,Fie=Qt?qV.canRedo:!1,li=iat({projectId:i,getReactFlow:()=>Ot.current});m.useImperativeHandle(t,()=>({exportPdf:li.exportPdf,exportPng:li.exportPng,openEmbedDialog:()=>FV(!0),capturePreview:li.capturePreview}),[li.exportPdf,li.exportPng,li.capturePreview]),m.useEffect(()=>{if(!He.enableKeyboard)return;const q=ce=>{if(!ce)return!1;const de=ce.tagName;return de==="INPUT"||de==="TEXTAREA"||de==="SELECT"?!0:ce instanceof HTMLElement&&ce.isContentEditable},X=ce=>{ce.code==="Space"&&(q(document.activeElement)||(ce.preventDefault(),OV(!0)))},oe=ce=>{ce.code==="Space"&&(OV(!1),yp(!1))};return window.addEventListener("keydown",X),window.addEventListener("keyup",oe),()=>{window.removeEventListener("keydown",X),window.removeEventListener("keyup",oe)}},[He.enableKeyboard]);const mp=m.useCallback(q=>{if(q.length===0)return;const X=oe=>{const ce=bs.current.find(Ne=>Ne.id===oe.id),de=ce?ce.position:oe.position;return{x:de.x,y:de.y}};if(!Ht){const oe=K.current;for(const ce of q)oe.set(ce.id,X(ce));return}if(q.length===1){const oe=q[0];oe&&M&&M(oe.id,X(oe));return}if(w){w(q.map(oe=>({id:oe.id,position:X(oe)})));return}if(M)for(const oe of q)M(oe.id,X(oe))},[M,w,Ht]),UV=m.useCallback((q,X,oe)=>{br.current=!1,mp(oe),ne()},[mp,ne]),WV=m.useCallback(()=>{br.current=!0},[]),GV=m.useCallback((q,X)=>{br.current=!1,mp(X),ne()},[mp,ne]),qie=m.useCallback((q,X)=>{xh.current&&Ma(null);const oe=kn.current;oe&&oe.style.setProperty("--rf-zoom",String(X.zoom)),ma==null||ma(X)},[ma]),Vie=m.useCallback((q,X,oe)=>{var ce;br.current=!0,G.current={metaKey:q==null?void 0:q.metaKey,ctrlKey:q==null?void 0:q.ctrlKey},(ce=B.current)==null||ce.beginGesture((oe??[]).map(de=>de.id)),dt==null||dt()},[dt]),Bie=m.useCallback(q=>{G.current={metaKey:q.metaKey,ctrlKey:q.ctrlKey}},[]),Uie=m.useCallback((q,X,oe)=>{var ce;UV(q,X,oe),(ce=B.current)==null||ce.endGesture(),Vn==null||Vn()},[UV,Vn]),Wie=m.useCallback((q,X)=>{var oe;WV(),G.current={metaKey:q==null?void 0:q.metaKey,ctrlKey:q==null?void 0:q.ctrlKey},(oe=B.current)==null||oe.beginGesture((X??[]).map(ce=>ce.id)),dt==null||dt()},[WV,dt]),Gie=m.useCallback(q=>{G.current={metaKey:q.metaKey,ctrlKey:q.ctrlKey}},[]),Kie=m.useCallback((q,X)=>{var oe;GV(q,X),(oe=B.current)==null||oe.endGesture(),Vn==null||Vn()},[GV,Vn]),Xie=m.useCallback((q,X)=>{var oe;(oe=ni.current.get(X.id))==null||oe()},[]),Zie=m.useCallback((q,X)=>{pe==null||pe(X.id)},[pe]),Yie=m.useCallback(q=>{Ae==null||Ae()},[Ae]),Qie=m.useCallback((q,X)=>{me==null||me(X.id)},[me]),KV=So?"crosshair":vr||HV?Rie?"grabbing":"grab":void 0,XV=y.length+g.length===1,ZV=XV?y[0]:void 0,YV=XV?g[0]:void 0,Jie=ZV?d.find(q=>q.id===ZV)??null:null;YV&&p.find(q=>q.id===YV);const ese=i??null,pT=He.showDetailPanel&&!wt,tse=pT,nse=m.useMemo(()=>({custom:gr??{}}),[gr]),ose=m.useMemo(()=>({studioBaseUrl:h}),[h]),gp=o==null?void 0:o.icons;return m.useEffect(()=>{if(!gp)return;let q=!1;return(async()=>{try{const X=await gp.listPacks();if(q)return;UH(X)}catch{}})(),()=>{q=!0}},[gp]),f.jsx(pqe,{value:nse,children:f.jsx(OEe,{value:ose,children:f.jsx("div",{"data-testid":"seeflow-canvas","data-mode":n,"data-canvas-mode":be.kind,"data-can-undo":Oie?"true":"false","data-can-redo":Fie?"true":"false",ref:kn,className:"seeflow-canvas-root sf:relative sf:flex sf:h-full sf:w-full",style:KV?{cursor:KV}:void 0,onPointerDownCapture:_ie,onPointerDown:q=>{HV&&yp(!0),ap(q)},onPointerMove:aT,onPointerUp:q=>{yp(!1),ip(q)},onPointerCancel:()=>{ai.current=!1,ws.current=null,Ms.current=null,wh(null),vs(null),yp(!1)},onContextMenuCapture:Cie,onDragOver:Sie,onDrop:Lie,children:f.jsxs(LUe,{containerRef:kn,children:[f.jsxs("div",{className:"sf:relative sf:flex-1 sf:min-w-0 sf:h-full",children:[f.jsxs(wHe,{nodes:sT,edges:uT,onNodesChange:xie,nodeTypes:bat,edgeTypes:_at,proOptions:Sat,fitView:!0,minZoom:n==="mini"?.05:.5,nodesDraggable:(Ht?!!M:!0)&&!So&&!vr&&He.enableNodeMove,nodesConnectable:Ht&&!!z&&!So&&!vr,deleteKeyCode:Ht?["Backspace","Delete"]:null,zoomOnScroll:He.enableZoom,zoomOnPinch:He.enableZoom,className:Vo?"seeflow-connecting":void 0,onConnect:Ht?Iie:void 0,isValidConnection:hT,onConnectStart:(q,X)=>{xr(!0),fp.current=!1,DV.current={nodeId:X.nodeId??null,handleType:X.handleType??null},oi(X.nodeId??null)},onConnectEnd:Aie,onReconnect:Ht&&E?Eie:void 0,onReconnectStart:(q,X,oe)=>{xr(!0),pp.current=!1,oo.current=!0;const ce=oe==="source"?X.source:X.target;oi(ce)},onReconnectEnd:jie,connectionLineComponent:rT,connectionLineStyle:{strokeWidth:2},connectionRadius:32,reconnectRadius:10,edgesReconnectable:!1,elevateNodesOnSelect:!1,elementsSelectable:!So&&!vr&&He.enableSelection,selectNodesOnDrag:!1,nodeClickDistance:5,selectionOnDrag:!So&&!vr&&He.enableSelection,panOnDrag:So?!1:vr?[0,1,2]:He.enablePan?[1,2]:!1,selectionMode:F0.Partial,selectionKeyCode:null,multiSelectionKeyCode:So?null:["Meta","Shift"],panActivationKeyCode:So?null:"Space",onSelectionStart:Mie,onSelectionEnd:bie,defaultEdgeOptions:Cat,zoomOnDoubleClick:!1,onInit:q=>{Ot.current=q;const X=kn.current;X&&X.style.setProperty("--rf-zoom",String(q.getZoom())),X&&X.setAttribute("data-canvas-ready","true"),!ei.current&&va.onMount&&d.length>0&&(q.fitView(Wh),ei.current=!0),Be==null||Be(q)},onMove:qie,onEdgesChange:wie,onNodeDragStart:Vie,onNodeDrag:Bie,onNodeDragStop:Uie,onSelectionDragStart:Wie,onSelectionDrag:Gie,onSelectionDragStop:Kie,onNodeClick:Zie,onEdgeClick:Qie,onEdgeDoubleClick:Xie,onPaneClick:Yie,onNodeContextMenu:He.enableContextMenu&&Ye?(q,X)=>{q.preventDefault(),Uo.current=X.id,Te(!0),_r(X.type??null),Sr(null),In({x:q.clientX,y:q.clientY})}:void 0,onPaneContextMenu:He.enableContextMenu&&P?q=>{q.preventDefault(),Uo.current=null,Te(!1),_r(null),Sr(null),In({x:q.clientX,y:q.clientY})}:void 0,children:[f.jsx(Iat,{storeApiRef:wa}),f.jsx(Aat,{wrapperRef:kn}),f.jsx(IHe,{gap:12,size:.6}),He.enableAlignmentGuides?f.jsx(gee,{children:f.jsx(Qot,{guides:BV.guides})}):null,n!=="mini"&&f.jsx(dat,{}),He.showControls?f.jsxs(RHe,{showInteractive:!1,showFitView:!1,children:[f.jsx(s0,{"data-testid":"controls-fit-view","aria-label":"Fit view",title:"Fit view",disabled:d.length===0,onClick:()=>{var q;(q=Ot.current)==null||q.fitView(Wh)},children:f.jsx(Od,{className:"sf:h-3 sf:w-3","aria-hidden":"true"})}),f.jsx(s0,{"data-testid":"controls-tidy","aria-label":"Tidy layout (⌘⇧L)",title:"Tidy layout (⌘⇧L)",disabled:!hp,onClick:()=>hp==null?void 0:hp(),children:f.jsx(M2,{className:"sf:h-3 sf:w-3","aria-hidden":"true"})})]}):null,He.showMiniMap?f.jsx(XHe,{className:"sf-canvas-minimap"}):null,He.showResizeHandles?f.jsx(Dot,{selectedNodes:kie,onMultiResize:L}):null,r||He.showToolbar||He.showStyleStrip&&ae&&ge?f.jsx(W0,{position:"top-left",children:f.jsxs("div",{className:"sf:flex sf:flex-col sf:items-start sf:gap-2",children:[r,He.showToolbar?f.jsx(dZe,{mode:be,onModeChange:Ee,iconPickerOpen:et??!1,onOpenIconPicker:le,onCloseIconPicker:rn,onPickIcon:Gt,showShapeTools:Ht&&!!j,iconsAdapter:gp}):null,He.showStyleStrip&&ae&&ge?f.jsx(Vot,{nodes:vie,connectors:re??[],onStyleNode:ae,onStyleNodePreview:se,onStyleNodes:ve,onStyleNodesPreview:ke,onStyleConnector:ge,onStyleConnectorPreview:Pe,onRequestIconReplace:J}):null]})}):null,He.showShareMenu||a||pT?f.jsx(W0,{position:"top-right",children:f.jsxs("div",{className:"sf:flex sf:items-center sf:gap-1",children:[a,pT&&!fT?f.jsx(fat,{open:fT,onToggle:()=>VV(q=>!q)}):null,He.showShareMenu?f.jsx(Pae,{mode:n==="mini"?"view":n,projectId:i,enableEmbed:He.enableEmbed,onDownloadPdf:li.exportPdf,onDownloadPng:li.exportPng,onExportToCloud:pt,embedOpen:Tie,onEmbedOpenChange:FV}):null]})}):null]}),Cs?f.jsxs("div",{"data-testid":"canvas-draw-ghost","data-ghost-shape":en??void 0,"data-ghost-icon":qo??void 0,"aria-hidden":!0,className:ee("sf:pointer-events-none sf:absolute sf:z-10",$ie,zie?"sf:rounded-sm sf:border sf:border-dashed sf:border-muted-foreground/40":"",Ch?"sf:flex sf:items-center sf:justify-center sf:rounded-md sf:border sf:border-dashed sf:border-border sf:bg-muted/40 sf:text-muted-foreground sf:text-sm":"",qo?"sf:flex sf:items-center sf:justify-center":""),style:{...Pie,left:Cs.left,top:Cs.top,width:Cs.width,height:Cs.height},children:[qo?f.jsx(Qi,{iconId:qo,studioBaseUrl:h,className:"sf:block sf:h-full sf:w-full sf:select-none"}):null,Ch?f.jsxs("span",{className:"sf:inline-flex sf:items-center sf:gap-2",children:[f.jsx(Ui,{size:14,"aria-hidden":!0}),f.jsx("span",{children:"Link to a flow"})]}):null,(()=>{if(Ch)return null;const q=en?Gq[en]:void 0;if(!q)return null;const X=wne(ci);return f.jsx(q,{width:Cs.width,height:Cs.height,borderColor:X.borderColor,backgroundColor:X.backgroundColor,borderSize:(ci==null?void 0:ci.borderSize)??wq,borderStyle:ci==null?void 0:ci.borderStyle})})()]}):null,He.enableContextMenu&&Ye?f.jsxs(XKe,{onOpenChange:q=>{q||(In(null),Uo.current=null,_r(null),Sr(null))},children:[f.jsx(ZKe,{asChild:!0,children:f.jsx("div",{ref:bh,"data-testid":"node-context-menu-trigger","aria-hidden":!0,className:"sf:pointer-events-none sf:fixed",style:{left:(ht==null?void 0:ht.x)??0,top:(ht==null?void 0:ht.y)??0,width:0,height:0}})}),f.jsxs(zoe,{"data-testid":"node-context-menu",children:[Cr!=null&&Cr.pinned&&Q?f.jsx(Hr,{"data-testid":"connector-endpoint-context-menu-unpin",onSelect:Ao,children:"Unpin"}):null,Io&&O?f.jsxs(Hr,{"data-testid":"node-context-menu-copy",onSelect:sn,children:["Copy",f.jsx(PO,{children:iT})]}):null,P?f.jsxs(Hr,{"data-testid":"node-context-menu-paste",disabled:!Y,onSelect:Iu,children:["Paste",f.jsx(PO,{children:sp})]}):null,Io&&(O||P)&&(un==="icon"&&J||N||W)?f.jsx(AP,{}):null,Io&&un==="icon"&&J?f.jsx(Hr,{"data-testid":"node-context-menu-change-icon",onSelect:An,children:"Change icon"}):null,Io&&un==="icon"&&J&&(N||W)?f.jsx(AP,{}):null,Io&&N?f.jsxs(f.Fragment,{children:[f.jsx(Hr,{"data-testid":"node-context-menu-to-front",onSelect:()=>Lr({op:"toFront"}),children:"Bring to front"}),f.jsx(Hr,{"data-testid":"node-context-menu-forward",onSelect:()=>Lr({op:"forward"}),children:"Bring forward"}),f.jsx(Hr,{"data-testid":"node-context-menu-backward",onSelect:()=>Lr({op:"backward"}),children:"Send backward"}),f.jsx(Hr,{"data-testid":"node-context-menu-to-back",onSelect:()=>Lr({op:"toBack"}),children:"Send to back"})]}):null,Io&&N&&W?f.jsx(AP,{}):null,Io&&W?f.jsx(Hr,{"data-testid":"node-context-menu-delete",onSelect:Xe,children:"Delete"}):null]})]}):null,Ue?f.jsxs(uu,{open:!!Nn,onOpenChange:q=>{q||Ma(null)},children:[f.jsx(NUe,{asChild:!0,children:f.jsx("div",{"data-testid":"drop-popover-anchor","aria-hidden":!0,className:"sf:pointer-events-none sf:fixed",style:{left:(Nn==null?void 0:Nn.clientX)??0,top:(Nn==null?void 0:Nn.clientY)??0,width:0,height:0}})}),f.jsx(ls,{"data-testid":"drop-popover",align:"start",side:"bottom",sideOffset:4,className:"sf:w-auto sf:p-1",onOpenAutoFocus:q=>{q.preventDefault()},children:f.jsx("div",{role:"menu","aria-label":"Create connected node",className:"sf:flex sf:flex-col sf:gap-0.5",children:lZe.map(({shape:q,label:X,Icon:oe})=>q==="linkflow"?null:f.jsxs("button",{type:"button",role:"menuitem","data-testid":`drop-popover-shape-${q}`,onClick:()=>{const ce=Nn;ce&&(Ue({sourceNodeId:ce.sourceNodeId,position:{x:ce.flowX,y:ce.flowY},shape:q}),Ma(null))},className:ee("sf:flex sf:items-center sf:gap-2 sf:rounded-sm sf:px-2 sf:py-1.5 sf:text-left sf:text-sm","sf:hover:bg-accent sf:hover:text-accent-foreground","sf:focus:bg-accent sf:focus:text-accent-foreground sf:focus:outline-hidden"),children:[f.jsx(oe,{className:"sf:h-4 sf:w-4 sf:text-muted-foreground","aria-hidden":"true"}),f.jsx("span",{children:X})]},q))})})]}):null]}),tse?f.jsx(sot,{flowId:ese,node:Jie,connector:null,adapter:o??null,statusReport:gn,onNameChange:an,onDescriptionChange:Fn,onDetailChange:qn,onIconChange:Me,open:fT,onClose:()=>{var q;VV(!1),(q=Nr.current)==null||q.call(Nr,[],[])}}):null]})})})})}const Rat=m.forwardRef(zat);/**
8545
8545
  * @license lucide-react v0.453.0 - ISC
8546
8546
  *
8547
8547
  * This source code is licensed under the ISC license.
@@ -8646,7 +8646,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
8646
8646
  *
8647
8647
  * This source code is licensed under the ISC license.
8648
8648
  * See the LICENSE file in the root directory of this source tree.
8649
- */const Xat=mn("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]),MX="seeflow.export.email",bX="seeflow.export.name",_X="seeflow.export.visibility";function Zat({open:e,onOpenChange:t,project:n,flowName:o,onCapturePreview:r}){const[a,i]=m.useState(""),[s,c]=m.useState(""),[l,h]=m.useState("public"),[d,p]=m.useState({kind:"idle"}),[y,g]=m.useState(!1),[k,x]=m.useState(new Set),v=s1e(n),M=eq(e?n:null),w=M.flows;m.useEffect(()=>{e&&(i(localStorage.getItem(MX)??""),c(o??localStorage.getItem(bX)??""),h(localStorage.getItem(_X)??"public"),p({kind:"idle"}),g(!1))},[e,o]),m.useEffect(()=>{e&&w&&x(new Set(w.map($=>$.flowSlug)))},[e,w]);const b=m.useCallback(async()=>{p({kind:"loading"});try{const $=await(r==null?void 0:r()),{shareUrl:T}=await v(a.trim(),s.trim(),l,$,Array.from(k));localStorage.setItem(MX,a.trim()),localStorage.setItem(bX,s.trim()),localStorage.setItem(_X,l),p({kind:"done",shareUrl:T})}catch($){p({kind:"error",message:$ instanceof Error?$.message:String($)})}},[v,a,s,l,r,k]),C=m.useCallback($=>{x(T=>{const D=new Set(T);return D.has($)?D.delete($):D.add($),D})},[]),_=m.useCallback(()=>{w&&x($=>$.size===w.length?new Set:new Set(w.map(T=>T.flowSlug)))},[w]),S=m.useCallback(async()=>{if(d.kind==="done")try{await navigator.clipboard.writeText(d.shareUrl),g(!0),setTimeout(()=>g(!1),2e3)}catch($){console.error("Failed to copy to clipboard:",$)}},[d]),L=d.kind==="loading",A=a.trim().length>0&&s.trim().length>0&&w!==null&&M.error===null&&k.size>0,I=((w==null?void 0:w.length)??0)>=2,R=M.loading,j=M.error!==null,V=w!==null&&k.size===w.length;return f.jsx(hr,{open:e,onOpenChange:t,children:f.jsxs(sa,{className:"sm:max-w-md","data-testid":"export-dialog",onOpenAutoFocus:$=>{$.preventDefault();const T=document.querySelector('[data-testid="export-email-input"]');T==null||T.focus()},children:[f.jsxs(ca,{children:[f.jsx(la,{children:"Export project to seeflow.dev"}),f.jsx(da,{children:"Upload this project to the cloud and get a shareable link."})]}),d.kind!=="done"?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex flex-col gap-4",children:[f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsx("span",{className:"font-medium",children:"Email"}),f.jsx("input",{type:"email",required:!0,autoComplete:"email",value:a,onChange:$=>i($.target.value),disabled:L,"data-testid":"export-email-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"}),f.jsx("span",{className:"text-xs text-muted-foreground",children:"We'll use this to let you manage your flows in the future."})]}),f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsx("span",{className:"font-medium",children:"Flow Name"}),f.jsx("input",{type:"text",required:!0,value:s,onChange:$=>c($.target.value),disabled:L,"data-testid":"export-name-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"})]}),f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsx("span",{className:"font-medium",children:"Visibility"}),f.jsxs("select",{value:l,onChange:$=>h($.target.value),disabled:L,"data-testid":"export-visibility-select",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:[f.jsx("option",{value:"public",children:"Public — anyone can discover it"}),f.jsx("option",{value:"link",children:"Anyone with the link"})]})]}),R?f.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground","data-testid":"export-flows-loading",children:[f.jsx(wX,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),f.jsx("span",{children:"Loading flows…"})]}):null,j?f.jsxs("div",{role:"alert","data-testid":"export-flows-error",className:"flex items-center justify-between gap-3 rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:[f.jsx("span",{children:"Couldn't load flows."}),f.jsx("button",{type:"button",onClick:()=>M.refresh(),disabled:L,"data-testid":"export-flows-retry",className:"shrink-0 font-medium underline-offset-2 hover:underline disabled:cursor-not-allowed disabled:opacity-50",children:"Retry"})]}):null,I&&w?f.jsxs("div",{className:"flex flex-col gap-1.5 text-sm","data-testid":"export-flows-section",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"font-medium",children:"Flows"}),f.jsx("button",{type:"button",onClick:_,disabled:L,"data-testid":"export-flows-toggle-all",className:"text-xs text-muted-foreground underline-offset-2 hover:text-foreground hover:underline disabled:cursor-not-allowed disabled:opacity-50",children:V?"Clear":"Select all"})]}),f.jsx("ul",{className:"flex max-h-48 flex-col gap-1 overflow-y-auto rounded-md border bg-background p-2",children:w.map($=>f.jsx("li",{children:f.jsxs("label",{className:"flex items-center gap-2 rounded px-2 py-1 hover:bg-muted",children:[f.jsx("input",{type:"checkbox",checked:k.has($.flowSlug),onChange:()=>C($.flowSlug),disabled:L,"data-testid":`export-flow-checkbox-${$.flowSlug}`}),f.jsx("span",{className:"flex-1 truncate",children:$.name}),$.isDefault?f.jsx(Wat,{className:"h-3.5 w-3.5 text-muted-foreground","aria-label":"default flow","data-testid":`export-flow-default-${$.flowSlug}`}):null]})},$.flowSlug))})]}):null,d.kind==="error"?f.jsx("div",{role:"alert","data-testid":"export-error",className:"rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:d.message}):null]}),f.jsx(fr,{children:d.kind==="error"?f.jsxs(f.Fragment,{children:[f.jsx(rt,{type:"button",variant:"ghost",onClick:()=>t(!1),"data-testid":"export-cancel",children:"Cancel"}),f.jsx(rt,{type:"button",onClick:()=>p({kind:"idle"}),"data-testid":"export-retry",children:"Try again"})]}):f.jsxs(f.Fragment,{children:[f.jsx(rt,{type:"button",variant:"ghost",onClick:()=>t(!1),disabled:L,"data-testid":"export-cancel",children:"Cancel"}),f.jsx(rt,{type:"button",onClick:b,disabled:L||!A,"data-testid":"export-submit",children:L?f.jsxs(f.Fragment,{children:[f.jsx(wX,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),f.jsx("span",{children:"Uploading…"})]}):"Export"})]})})]}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex flex-col gap-3",children:[f.jsx("p",{className:"text-sm text-muted-foreground",children:"Your diagram is live. Share this link:"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"text",readOnly:!0,value:d.shareUrl,"data-testid":"export-share-url",className:"min-w-0 flex-1 rounded-md border bg-muted px-3 py-2 text-sm outline-hidden"}),f.jsx(rt,{type:"button",variant:"outline",size:"icon",onClick:S,"aria-label":"Copy link","data-testid":"export-copy",children:y?f.jsx(Zae,{className:"h-4 w-4","aria-hidden":"true"}):f.jsx(Qae,{className:"h-4 w-4","aria-hidden":"true"})}),f.jsx(rt,{type:"button",variant:"outline",size:"icon",onClick:()=>window.open(d.shareUrl,"_blank"),"aria-label":"View in new tab","data-testid":"export-view",children:f.jsx(Fat,{className:"h-4 w-4","aria-hidden":"true"})})]})]}),f.jsx(fr,{children:f.jsx(rt,{type:"button",onClick:()=>t(!1),"data-testid":"export-done",children:"Done"})})]})]})})}const Yat={isCloud:!1,user:null,provider:YF},tie=m.createContext(null);function Qat({config:e,provider:t,children:n}){const[o,r]=m.useState(()=>{var i;return((i=t.getUser)==null?void 0:i.call(t))??null});m.useEffect(()=>{var i;return r(((i=t.getUser)==null?void 0:i.call(t))??null),t.onChange(()=>{var s;return r(((s=t.getUser)==null?void 0:s.call(t))??null)})},[t]);const a=m.useMemo(()=>({isCloud:e.mode==="cloud",user:o,provider:t}),[e.mode,o,t]);return f.jsx(tie.Provider,{value:a,children:n})}function rp(){return m.useContext(tie)??Yat}function nie({open:e,onOpenChange:t,onCreated:n}){const{isCloud:o}=rp(),[r,a]=m.useState(""),[i,s]=m.useState(""),[c,l]=m.useState(""),[h,d]=m.useState(null),[p,y]=m.useState(!1);m.useEffect(()=>{e&&(a(""),s(""),l(""),d(null),y(!1))},[e]);const g=r.trim(),k=i.trim(),x=c.trim(),v=k.length>0&&!p,M=async w=>{if(w.preventDefault(),!!v){y(!0),d(null);try{const b=await y1e({name:k,...g.length>0?{path:g}:{},...x.length>0?{description:x}:{}});n(b),t(!1)}catch(b){d(b instanceof Error?b.message:String(b)),y(!1)}}};return f.jsx(hr,{open:e,onOpenChange:t,children:f.jsxs(sa,{className:"sm:max-w-md","data-testid":"create-project-dialog",onOpenAutoFocus:w=>{w.preventDefault();const b=document.querySelector('[data-testid="create-project-name-input"]');b==null||b.focus()},children:[f.jsxs(ca,{children:[f.jsx(la,{children:"Create new project"}),f.jsx(da,{children:o?"Scaffold a new SeeFlow project.":"Scaffold a new SeeFlow project. It's created in ~/.seeflow/projects/ unless you give a path."})]}),f.jsxs("form",{onSubmit:M,className:"flex flex-col gap-4",children:[f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsx("span",{className:"font-medium",children:"Project name"}),f.jsx("input",{type:"text",required:!0,autoComplete:"off",spellCheck:!1,value:i,onChange:w=>s(w.target.value),"data-testid":"create-project-name-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"})]}),o?null:f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsxs("span",{className:"font-medium",children:["Project path ",f.jsx("span",{className:"text-muted-foreground",children:"(optional)"})]}),f.jsx("input",{type:"text",autoComplete:"off",spellCheck:!1,placeholder:"/absolute/path/to/my-project",value:r,onChange:w=>a(w.target.value),"data-testid":"create-project-path-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"}),f.jsx("span",{className:"text-xs text-muted-foreground",children:"Leave blank to create it in ~/.seeflow/projects/"})]}),f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsxs("span",{className:"font-medium",children:["Description ",f.jsx("span",{className:"text-muted-foreground",children:"(optional)"})]}),f.jsx("textarea",{rows:3,autoComplete:"off",spellCheck:!1,value:c,onChange:w=>l(w.target.value),"data-testid":"create-project-description-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"})]}),h?f.jsx("div",{role:"alert","data-testid":"create-project-error",className:"rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:h}):null,f.jsxs(fr,{children:[f.jsx(rt,{type:"button",variant:"ghost",onClick:()=>t(!1),disabled:p,children:"Cancel"}),f.jsx(rt,{type:"submit",disabled:!v,"data-testid":"create-project-submit",children:p?"Creating…":"Create project"})]})]})]})})}const CX="seeflow:navigate",Jat=e=>(window.addEventListener("popstate",e),window.addEventListener(CX,e),()=>{window.removeEventListener("popstate",e),window.removeEventListener(CX,e)}),SX=()=>window.location.pathname,eit=()=>m.useSyncExternalStore(Jat,SX,SX),oie=(e,t)=>`/projects/${encodeURIComponent(e)}/flows/${encodeURIComponent(t)}`,rie=e=>{const t=e.split("/").filter(Boolean);if(t.length!==4||t[0]!=="projects"||t[2]!=="flows")return null;const n=decodeURIComponent(t[1]??""),o=decodeURIComponent(t[3]??"");return!n||!o?null:{project:n,flow:o}},aie=e=>{const t=e.indexOf("/");return t<=0||t===e.length-1?null:{project:e.slice(0,t),flow:e.slice(t+1)}},tit=e=>{const t=e.split("/").filter(Boolean);if(t.length!==2||t[0]!=="projects")return null;const n=decodeURIComponent(t[1]??"");return n?{project:n}:null},nit="seeflow:navigate",eF="seeflow:flow-stack",PV=e=>({project:e.project,flow:e.flow,slug:`${e.project}/${e.flow}`}),oit=e=>{const t=rie(e);return t?[PV(t)]:[]},rit=(e,t)=>[...e,PV(t)],ait=e=>e?[PV(e)]:[],iit=(e,t,n)=>{if(typeof t=="number"&&t>=0&&t<=e.length){const o=e.slice(0,t),r=o.at(-1);if(n){if(r&&r.project===n.project&&r.flow===n.flow)return o}else if(o.length===0)return o}return null};let Gr=[],LX=!1;const zV=()=>{typeof window>"u"||window.dispatchEvent(new Event(eF))},sit=e=>(window.addEventListener(eF,e),()=>window.removeEventListener(eF,e)),NX=()=>Gr,iie=()=>m.useSyncExternalStore(sit,NX,NX),sie=(e,t)=>{window.history.pushState({stackDepth:e},"",t),window.dispatchEvent(new Event(nit))},cit=(e,t)=>{const n=window.history.state??null;window.history.replaceState({...n??{},stackDepth:e},"",t)},lit=e=>{const t=rit(Gr,e);sie(t.length,oie(e.project,e.flow)),Gr=t,zV()},dit=()=>{window.history.back()},mo=e=>{const t=ait(e),n=e?oie(e.project,e.flow):"/";window.location.pathname===n?cit(t.length,n):sie(t.length,n),Gr!==t&&(Gr=t,zV())},uit=()=>{if(LX)return;Gr=oit(window.location.pathname);const e=window.history.state??null;typeof(e==null?void 0:e.stackDepth)!="number"&&window.history.replaceState({...e??{},stackDepth:Gr.length},"",window.location.pathname+window.location.search+window.location.hash),window.addEventListener("popstate",()=>{const t=window.history.state??null,n=rie(window.location.pathname),o=iit(Gr,t==null?void 0:t.stackDepth,n);if(o!==null){Gr!==o&&(Gr=o,zV());return}mo(n)}),LX=!0},hit="seeflow:last-flow:",cie=e=>`${hit}${e}`,lie=e=>{if(typeof window>"u")return null;try{return window.localStorage.getItem(cie(e))}catch{return null}},fit=(e,t)=>{if(!(typeof window>"u"))try{window.localStorage.setItem(cie(e),t)}catch{}},pit=(e,t)=>{var o;if(e.length===0)return null;if(t){const r=e.find(a=>a.flowSlug===t);if(r)return r.flowSlug}const n=e.find(r=>r.isDefault);return n?n.flowSlug:((o=e[0])==null?void 0:o.flowSlug)??null};function yit({projects:e,currentProjectSlug:t,onProjectCreated:n,onUnregisterProject:o}){const{isCloud:r}=rp(),[a,i]=m.useState(!1),[s,c]=m.useState(!1),[l,h]=m.useState(null),[d,p]=m.useState(!1),[y,g]=m.useState(null),[k,x]=m.useState(!1);m.useEffect(()=>{const L=A=>{A.key==="k"&&(A.metaKey||A.ctrlKey)&&(A.preventDefault(),i(I=>!I))};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},[]);const v=e.find(L=>L.projectSlug===t),M=L=>{const I=lie(L.projectSlug)??L.defaultFlow;mo({project:L.projectSlug,flow:I})},w=L=>{n==null||n(L)},b=L=>{h(L),g(null),x(!1)},C=()=>{d||(h(null),g(null),x(!1))},_=async()=>{if(l){p(!0),g(null);try{await(o==null?void 0:o(l.projectSlug,{deleteSource:k})),h(null),x(!1)}catch(L){g(L instanceof Error?L.message:String(L))}finally{p(!1)}}},S=(l==null?void 0:l.flowCount)??0;return f.jsxs(f.Fragment,{children:[f.jsxs(uu,{open:a,onOpenChange:i,children:[f.jsx(ph,{asChild:!0,children:f.jsxs(rt,{type:"button",variant:"outline",size:"sm","aria-label":"Switch project","aria-expanded":a,className:"gap-2","data-testid":"project-switcher-trigger",children:[f.jsx("span",{className:"max-w-[180px] truncate text-sm",children:(v==null?void 0:v.name)??"Select project"}),f.jsx(jne,{children:"⌘K"}),f.jsx(Yae,{className:"h-3.5 w-3.5 opacity-60"})]})}),f.jsxs(ls,{align:"end",sideOffset:6,className:"relative w-[320px] p-0","data-testid":"project-switcher-popover",children:[f.jsxs(Zq,{children:[f.jsx(Ane,{placeholder:"Search projects..."}),f.jsxs(Yq,{className:"pb-12",children:[f.jsx(Qq,{children:"No projects."}),e.length>0?f.jsx($z,{heading:"Projects",children:e.map(L=>f.jsxs(Pz,{value:`${L.name} ${L.projectSlug}`,onSelect:()=>{i(!1),M(L)},"data-testid":`project-switcher-row-${L.projectSlug}`,className:"group flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"flex min-w-0 flex-col items-start gap-0.5",children:[f.jsx("span",{className:"font-medium",children:L.name}),!r&&L.repoPath?f.jsx("span",{className:"w-full truncate text-xs text-muted-foreground",children:L.repoPath}):null]}),f.jsx("button",{type:"button","aria-label":`Unregister ${L.name}`,"data-testid":`project-switcher-unregister-${L.projectSlug}`,className:"shrink-0 rounded p-0.5 opacity-0 transition-opacity hover:text-destructive group-hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring",onClick:A=>{A.stopPropagation(),i(!1),b(L)},children:f.jsx(eie,{className:"h-3.5 w-3.5"})})]},L.projectSlug))}):null]})]}),f.jsx("button",{type:"button","aria-label":"Create new project",title:"Create new project","data-testid":"project-switcher-create",onClick:()=>{i(!1),c(!0)},className:"absolute right-2 bottom-2 inline-flex h-8 w-8 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-md transition-colors hover:bg-emerald-400 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",children:f.jsx(Jae,{className:"h-4 w-4"})})]})]}),f.jsx(nie,{open:s,onOpenChange:c,onCreated:w}),f.jsx(hr,{open:l!==null,onOpenChange:L=>{L||C()},children:f.jsxs(sa,{className:"sm:max-w-md","data-testid":"unregister-project-dialog",children:[f.jsxs(ca,{children:[f.jsx(la,{children:k?"Delete project?":"Unregister project?"}),f.jsxs(da,{children:["This removes ",f.jsx("strong",{children:l==null?void 0:l.name})," from SeeFlow."," ",f.jsxs("strong",{children:["All ",S," ",S===1?"flow":"flows"]})," ","under this project will be unregistered."]})]}),!r&&(l!=null&&l.repoPath)?f.jsxs("label",{className:"flex items-start gap-2 rounded-md border border-border px-3 py-2 text-sm",children:[f.jsx("input",{type:"checkbox",checked:k,onChange:L=>x(L.target.checked),disabled:d,"data-testid":"unregister-project-delete-source",className:"mt-0.5 h-4 w-4 cursor-pointer accent-destructive"}),f.jsxs("span",{className:"flex-1",children:[f.jsx("span",{className:"font-medium",children:"Also delete files from disk"}),f.jsxs("span",{className:"mt-1 block text-xs text-muted-foreground",children:["Permanently removes"," ",f.jsx("code",{className:"break-all text-xs",children:l.repoPath})," and everything inside it. This cannot be undone."]})]})]}):null,y?f.jsx("div",{role:"alert","data-testid":"unregister-project-error",className:"rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:y}):null,f.jsxs(fr,{children:[f.jsx(rt,{type:"button",variant:"ghost",onClick:C,disabled:d,children:"Cancel"}),f.jsx(rt,{type:"button",variant:"destructive",onClick:_,disabled:d,"data-testid":"unregister-project-confirm",children:d?k?"Deleting…":"Unregistering…":k?"Delete project":"Unregister"})]})]})})]})}const mit=e=>{var o,r,a,i;const t=((o=e.name)==null?void 0:o.trim())||((r=e.email)==null?void 0:r.trim())||"";if(!t)return"?";const n=t.split(/\s+/).filter(Boolean);if(n.length>=2){const s=((a=n[0])==null?void 0:a[0])??"",c=((i=n[1])==null?void 0:i[0])??"";return(s+c).toUpperCase()}return t.slice(0,2).toUpperCase()};function git({user:e,onOpenProfile:t,onMyProjects:n,onSignOut:o}){const r=e.name||e.email||"Account";return f.jsxs(sV,{children:[f.jsx(cV,{asChild:!0,children:f.jsx("button",{type:"button","aria-label":"Account menu","data-testid":"user-menu-trigger",className:"flex h-8 w-8 items-center justify-center overflow-hidden rounded-full border border-border bg-muted text-xs font-semibold text-foreground transition-colors hover:bg-muted/70 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:e.imageUrl?f.jsx("img",{src:e.imageUrl,alt:"",className:"h-full w-full object-cover"}):f.jsx("span",{children:mit(e)})})}),f.jsxs(GR,{align:"end",sideOffset:6,className:"w-56","data-testid":"user-menu",children:[f.jsx(lV,{children:f.jsxs("div",{className:"flex flex-col",children:[f.jsx("span",{className:"truncate text-sm font-medium",children:r}),e.name&&e.email?f.jsx("span",{className:"truncate text-xs font-normal text-muted-foreground",children:e.email}):null]})}),f.jsx(zO,{}),f.jsxs(zi,{onSelect:t,"data-testid":"user-menu-profile",children:[f.jsx(Kat,{className:"mr-2 h-4 w-4"}),"My profile"]}),f.jsxs(zi,{onSelect:n,"data-testid":"user-menu-projects",children:[f.jsx(qat,{className:"mr-2 h-4 w-4"}),"My projects"]}),f.jsx(zO,{}),f.jsxs(zi,{onSelect:o,"data-testid":"user-menu-signout",children:[f.jsx(Vat,{className:"mr-2 h-4 w-4"}),"Sign out"]})]})]})}const die="seeflow:theme",IX="(prefers-color-scheme: dark)";function kit(e){return e==="light"||e==="dark"||e==="system"}function vit(e){try{const t=e.getItem(die);return kit(t)?t:"system"}catch{return"system"}}function xit(e){try{const t=new URLSearchParams(e);if(!t.has("theme"))return null;const n=t.get("theme");return n==="light"||n==="dark"?n:"light"}catch{return null}}function wit(e,t){try{e.setItem(die,t)}catch{}}function Mit(e,t){return e==="system"?t?"dark":"light":e}function bit(e,t){t==="dark"?(e.classList.add("dark"),e.classList.remove("light")):(e.classList.add("light"),e.classList.remove("dark"))}function _it(e,t){var o;const n=r=>t(r.matches);return e.addEventListener?(e.addEventListener("change",n),()=>{var r;return(r=e.removeEventListener)==null?void 0:r.call(e,"change",n)}):((o=e.addListener)==null||o.call(e,n),()=>{var r;return(r=e.removeListener)==null?void 0:r.call(e,n)})}function Cit(){const[e,t]=m.useState(()=>{if(typeof window>"u")return"system";const i=xit(window.location.search);return i||vit(window.localStorage)}),[n,o]=m.useState(()=>typeof window>"u"?!1:window.matchMedia(IX).matches);m.useEffect(()=>{if(typeof window>"u")return;const i=window.matchMedia(IX);return _it(i,o)},[]);const r=Mit(e,n);m.useEffect(()=>{typeof document>"u"||bit(document.documentElement,r)},[r]);const a=m.useCallback(i=>{typeof window<"u"&&wit(window.localStorage,i),t(i)},[]);return{theme:e,setTheme:a,resolvedTheme:r}}const Sit=[{value:"light",label:"Light"},{value:"dark",label:"Dark"},{value:"system",label:"System"}];function Lit({projects:e,currentProjectSlug:t,onProjectCreated:n,onUnregisterProject:o,share:r,onBack:a,previousFlowName:i}){const{theme:s,setTheme:c}=Cit(),{isCloud:l,user:h,provider:d}=rp(),p=i!==void 0;return f.jsxs("header",{className:"relative flex h-14 shrink-0 items-center justify-between bg-background/85 px-5 backdrop-blur-md shadow-[0_1px_3px_-1px_rgba(15,23,42,0.06),0_2px_8px_-4px_rgba(15,23,42,0.05)] dark:shadow-[0_4px_12px_-6px_rgba(0,0,0,0.6)]",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[p?f.jsxs(mh,{children:[f.jsx(gh,{asChild:!0,children:f.jsx("button",{type:"button",onClick:a,"aria-label":"Back to previous flow","data-testid":"flow-back-button",className:"flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted/60 hover:text-foreground",children:f.jsx(Oat,{size:16,strokeWidth:2.25})})}),f.jsxs(pu,{side:"bottom",children:["Back to ",i]})]}):null,f.jsxs("button",{type:"button",onClick:()=>mo(null),className:"-ml-1.5 flex items-center gap-2 rounded-md px-1.5 py-1 text-base font-bold tracking-tight transition-colors hover:bg-muted/60",children:[f.jsx(Xat,{size:18,strokeWidth:2.25,className:"text-emerald-400"}),"SeeFlow",f.jsxs("span",{className:"ml-1 text-[10px] font-normal tracking-normal text-muted-foreground/70",children:["v","0.2.2"]})]})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(yit,{projects:e,currentProjectSlug:t,onProjectCreated:n,onUnregisterProject:o}),r?f.jsx(Pae,{mode:"edit",enableEmbed:!1,onDownloadPdf:r.onDownloadPdf,onDownloadPng:r.onDownloadPng,onExportToCloud:l?void 0:r.onExportToCloud}):null,f.jsxs(sV,{children:[f.jsx(cV,{asChild:!0,children:f.jsx(rt,{type:"button",variant:"outline",size:"icon","aria-label":"Settings","data-testid":"settings-trigger",children:f.jsx(Uat,{className:"h-4 w-4"})})}),f.jsxs(GR,{align:"end",sideOffset:6,className:"w-44","data-testid":"settings-menu",children:[f.jsx(lV,{children:"Theme"}),f.jsx(wXe,{value:s,onValueChange:y=>c(y),children:Sit.map(y=>f.jsx(ere,{value:y.value,"data-testid":`theme-${y.value}`,children:y.label},y.value))})]})]}),l&&h?f.jsx(git,{user:h,onOpenProfile:()=>{var y;return(y=d.openProfile)==null?void 0:y.call(d)},onMyProjects:()=>mo(null),onSignOut:()=>void d.signOut()}):null]})]})}const Nit=()=>{const[e,t]=m.useState(null),[n,o]=m.useState(null),r=m.useCallback(()=>c1e().then(a=>{t(a),o(null)}).catch(a=>{console.error("[useDemos] failed",a),t([]),o(String(a))}),[]);return m.useEffect(()=>{r()},[r]),{demos:e,error:n,refresh:r}},Iit=()=>{const[e,t]=m.useState(null),[n,o]=m.useState(!0),[r,a]=m.useState(null),i=m.useCallback(()=>(o(!0),l1e().then(c=>{t(c),a(null)}).catch(c=>{console.error("[useProjects] failed",c),t([]),a(String(c))}).finally(()=>o(!1))),[]);m.useEffect(()=>{i()},[i]);const s=m.useCallback(async(c,l)=>{await h1e(c,l),await i()},[i]);return{projects:e,loading:n,error:r,refresh:i,unregisterProject:s}},AX=1e3,Ait=3e4;function uie(e){const t=new Map;let n=!1,o=AX,r=null,a=null;const i=(l,h)=>{const d=t.get(l);if(d)for(const p of d)p(h)},s=()=>{n||(i("error",{data:"",lastEventId:""}),a=setTimeout(c,o),o=Math.min(o*2,Ait))},c=async()=>{if(n)return;r=new AbortController;const l=Eit((h,d)=>i(h,d));try{const h=await oQ().getToken(),d=new Headers({accept:"text/event-stream"});h&&d.set("Authorization",`Bearer ${h}`);const p=await fetch(e,{headers:d,signal:r.signal});if(!p.ok||!p.body){s();return}o=AX,i("open",{data:"",lastEventId:""});const y=p.body.getReader(),g=new TextDecoder;for(;;){const{value:k,done:x}=await y.read();if(x)break;l.feed(g.decode(k,{stream:!0}))}s()}catch{n||s()}};return c(),{addEventListener(l,h){let d=t.get(l);d||(d=new Set,t.set(l,d)),d.add(h)},close(){n=!0,a&&clearTimeout(a),r==null||r.abort()}}}function Eit(e){let t="",n="";const o=r=>{let a="message";const i=[];for(const s of r.split(`
8649
+ */const Xat=mn("Workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]),MX="seeflow.export.email",bX="seeflow.export.name",_X="seeflow.export.visibility";function Zat({open:e,onOpenChange:t,project:n,flowName:o,onCapturePreview:r}){const[a,i]=m.useState(""),[s,c]=m.useState(""),[l,h]=m.useState("public"),[d,p]=m.useState({kind:"idle"}),[y,g]=m.useState(!1),[k,x]=m.useState(new Set),v=s1e(n),M=eq(e?n:null),w=M.flows;m.useEffect(()=>{e&&(i(localStorage.getItem(MX)??""),c(o??localStorage.getItem(bX)??""),h(localStorage.getItem(_X)??"public"),p({kind:"idle"}),g(!1))},[e,o]),m.useEffect(()=>{e&&w&&x(new Set(w.map($=>$.flowSlug)))},[e,w]);const b=m.useCallback(async()=>{p({kind:"loading"});try{const $=await(r==null?void 0:r()),{shareUrl:T}=await v(a.trim(),s.trim(),l,$,Array.from(k));localStorage.setItem(MX,a.trim()),localStorage.setItem(bX,s.trim()),localStorage.setItem(_X,l),p({kind:"done",shareUrl:T})}catch($){p({kind:"error",message:$ instanceof Error?$.message:String($)})}},[v,a,s,l,r,k]),C=m.useCallback($=>{x(T=>{const D=new Set(T);return D.has($)?D.delete($):D.add($),D})},[]),_=m.useCallback(()=>{w&&x($=>$.size===w.length?new Set:new Set(w.map(T=>T.flowSlug)))},[w]),S=m.useCallback(async()=>{if(d.kind==="done")try{await navigator.clipboard.writeText(d.shareUrl),g(!0),setTimeout(()=>g(!1),2e3)}catch($){console.error("Failed to copy to clipboard:",$)}},[d]),L=d.kind==="loading",A=a.trim().length>0&&s.trim().length>0&&w!==null&&M.error===null&&k.size>0,I=((w==null?void 0:w.length)??0)>=2,R=M.loading,j=M.error!==null,V=w!==null&&k.size===w.length;return f.jsx(hr,{open:e,onOpenChange:t,children:f.jsxs(sa,{className:"sm:max-w-md","data-testid":"export-dialog",onOpenAutoFocus:$=>{$.preventDefault();const T=document.querySelector('[data-testid="export-email-input"]');T==null||T.focus()},children:[f.jsxs(ca,{children:[f.jsx(la,{children:"Export project to seeflow.dev"}),f.jsx(da,{children:"Upload this project to the cloud and get a shareable link."})]}),d.kind!=="done"?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex flex-col gap-4",children:[f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsx("span",{className:"font-medium",children:"Email"}),f.jsx("input",{type:"email",required:!0,autoComplete:"email",value:a,onChange:$=>i($.target.value),disabled:L,"data-testid":"export-email-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"}),f.jsx("span",{className:"text-xs text-muted-foreground",children:"We'll use this to let you manage your flows in the future."})]}),f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsx("span",{className:"font-medium",children:"Flow Name"}),f.jsx("input",{type:"text",required:!0,value:s,onChange:$=>c($.target.value),disabled:L,"data-testid":"export-name-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"})]}),f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsx("span",{className:"font-medium",children:"Visibility"}),f.jsxs("select",{value:l,onChange:$=>h($.target.value),disabled:L,"data-testid":"export-visibility-select",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",children:[f.jsx("option",{value:"public",children:"Public — anyone can discover it"}),f.jsx("option",{value:"link",children:"Anyone with the link"})]})]}),R?f.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground","data-testid":"export-flows-loading",children:[f.jsx(wX,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),f.jsx("span",{children:"Loading flows…"})]}):null,j?f.jsxs("div",{role:"alert","data-testid":"export-flows-error",className:"flex items-center justify-between gap-3 rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:[f.jsx("span",{children:"Couldn't load flows."}),f.jsx("button",{type:"button",onClick:()=>M.refresh(),disabled:L,"data-testid":"export-flows-retry",className:"shrink-0 font-medium underline-offset-2 hover:underline disabled:cursor-not-allowed disabled:opacity-50",children:"Retry"})]}):null,I&&w?f.jsxs("div",{className:"flex flex-col gap-1.5 text-sm","data-testid":"export-flows-section",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"font-medium",children:"Flows"}),f.jsx("button",{type:"button",onClick:_,disabled:L,"data-testid":"export-flows-toggle-all",className:"text-xs text-muted-foreground underline-offset-2 hover:text-foreground hover:underline disabled:cursor-not-allowed disabled:opacity-50",children:V?"Clear":"Select all"})]}),f.jsx("ul",{className:"flex max-h-48 flex-col gap-1 overflow-y-auto rounded-md border bg-background p-2",children:w.map($=>f.jsx("li",{children:f.jsxs("label",{className:"flex items-center gap-2 rounded px-2 py-1 hover:bg-muted",children:[f.jsx("input",{type:"checkbox",checked:k.has($.flowSlug),onChange:()=>C($.flowSlug),disabled:L,"data-testid":`export-flow-checkbox-${$.flowSlug}`}),f.jsx("span",{className:"flex-1 truncate",children:$.name}),$.isDefault?f.jsx(Wat,{className:"h-3.5 w-3.5 text-muted-foreground","aria-label":"default flow","data-testid":`export-flow-default-${$.flowSlug}`}):null]})},$.flowSlug))})]}):null,d.kind==="error"?f.jsx("div",{role:"alert","data-testid":"export-error",className:"rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:d.message}):null]}),f.jsx(fr,{children:d.kind==="error"?f.jsxs(f.Fragment,{children:[f.jsx(rt,{type:"button",variant:"ghost",onClick:()=>t(!1),"data-testid":"export-cancel",children:"Cancel"}),f.jsx(rt,{type:"button",onClick:()=>p({kind:"idle"}),"data-testid":"export-retry",children:"Try again"})]}):f.jsxs(f.Fragment,{children:[f.jsx(rt,{type:"button",variant:"ghost",onClick:()=>t(!1),disabled:L,"data-testid":"export-cancel",children:"Cancel"}),f.jsx(rt,{type:"button",onClick:b,disabled:L||!A,"data-testid":"export-submit",children:L?f.jsxs(f.Fragment,{children:[f.jsx(wX,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),f.jsx("span",{children:"Uploading…"})]}):"Export"})]})})]}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"flex flex-col gap-3",children:[f.jsx("p",{className:"text-sm text-muted-foreground",children:"Your diagram is live. Share this link:"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"text",readOnly:!0,value:d.shareUrl,"data-testid":"export-share-url",className:"min-w-0 flex-1 rounded-md border bg-muted px-3 py-2 text-sm outline-hidden"}),f.jsx(rt,{type:"button",variant:"outline",size:"icon",onClick:S,"aria-label":"Copy link","data-testid":"export-copy",children:y?f.jsx(Zae,{className:"h-4 w-4","aria-hidden":"true"}):f.jsx(Qae,{className:"h-4 w-4","aria-hidden":"true"})}),f.jsx(rt,{type:"button",variant:"outline",size:"icon",onClick:()=>window.open(d.shareUrl,"_blank"),"aria-label":"View in new tab","data-testid":"export-view",children:f.jsx(Fat,{className:"h-4 w-4","aria-hidden":"true"})})]})]}),f.jsx(fr,{children:f.jsx(rt,{type:"button",onClick:()=>t(!1),"data-testid":"export-done",children:"Done"})})]})]})})}const Yat={isCloud:!1,user:null,provider:YF},tie=m.createContext(null);function Qat({config:e,provider:t,children:n}){const[o,r]=m.useState(()=>{var i;return((i=t.getUser)==null?void 0:i.call(t))??null});m.useEffect(()=>{var i;return r(((i=t.getUser)==null?void 0:i.call(t))??null),t.onChange(()=>{var s;return r(((s=t.getUser)==null?void 0:s.call(t))??null)})},[t]);const a=m.useMemo(()=>({isCloud:e.mode==="cloud",user:o,provider:t}),[e.mode,o,t]);return f.jsx(tie.Provider,{value:a,children:n})}function rp(){return m.useContext(tie)??Yat}function nie({open:e,onOpenChange:t,onCreated:n}){const{isCloud:o}=rp(),[r,a]=m.useState(""),[i,s]=m.useState(""),[c,l]=m.useState(""),[h,d]=m.useState(null),[p,y]=m.useState(!1);m.useEffect(()=>{e&&(a(""),s(""),l(""),d(null),y(!1))},[e]);const g=r.trim(),k=i.trim(),x=c.trim(),v=k.length>0&&!p,M=async w=>{if(w.preventDefault(),!!v){y(!0),d(null);try{const b=await y1e({name:k,...g.length>0?{path:g}:{},...x.length>0?{description:x}:{}});n(b),t(!1)}catch(b){d(b instanceof Error?b.message:String(b)),y(!1)}}};return f.jsx(hr,{open:e,onOpenChange:t,children:f.jsxs(sa,{className:"sm:max-w-md","data-testid":"create-project-dialog",onOpenAutoFocus:w=>{w.preventDefault();const b=document.querySelector('[data-testid="create-project-name-input"]');b==null||b.focus()},children:[f.jsxs(ca,{children:[f.jsx(la,{children:"Create new project"}),f.jsx(da,{children:o?"Scaffold a new SeeFlow project.":"Scaffold a new SeeFlow project. It's created in ~/.seeflow/projects/ unless you give a path."})]}),f.jsxs("form",{onSubmit:M,className:"flex flex-col gap-4",children:[f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsx("span",{className:"font-medium",children:"Project name"}),f.jsx("input",{type:"text",required:!0,autoComplete:"off",spellCheck:!1,value:i,onChange:w=>s(w.target.value),"data-testid":"create-project-name-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"})]}),o?null:f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsxs("span",{className:"font-medium",children:["Project path ",f.jsx("span",{className:"text-muted-foreground",children:"(optional)"})]}),f.jsx("input",{type:"text",autoComplete:"off",spellCheck:!1,placeholder:"/absolute/path/to/my-project",value:r,onChange:w=>a(w.target.value),"data-testid":"create-project-path-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"}),f.jsx("span",{className:"text-xs text-muted-foreground",children:"Leave blank to create it in ~/.seeflow/projects/"})]}),f.jsxs("label",{className:"flex flex-col gap-1.5 text-sm",children:[f.jsxs("span",{className:"font-medium",children:["Description ",f.jsx("span",{className:"text-muted-foreground",children:"(optional)"})]}),f.jsx("textarea",{rows:3,autoComplete:"off",spellCheck:!1,value:c,onChange:w=>l(w.target.value),"data-testid":"create-project-description-input",className:"rounded-md border bg-background px-3 py-2 text-sm outline-hidden ring-offset-background focus:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"})]}),h?f.jsx("div",{role:"alert","data-testid":"create-project-error",className:"rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:h}):null,f.jsxs(fr,{children:[f.jsx(rt,{type:"button",variant:"ghost",onClick:()=>t(!1),disabled:p,children:"Cancel"}),f.jsx(rt,{type:"submit",disabled:!v,"data-testid":"create-project-submit",children:p?"Creating…":"Create project"})]})]})]})})}const CX="seeflow:navigate",Jat=e=>(window.addEventListener("popstate",e),window.addEventListener(CX,e),()=>{window.removeEventListener("popstate",e),window.removeEventListener(CX,e)}),SX=()=>window.location.pathname,eit=()=>m.useSyncExternalStore(Jat,SX,SX),oie=(e,t)=>`/projects/${encodeURIComponent(e)}/flows/${encodeURIComponent(t)}`,rie=e=>{const t=e.split("/").filter(Boolean);if(t.length!==4||t[0]!=="projects"||t[2]!=="flows")return null;const n=decodeURIComponent(t[1]??""),o=decodeURIComponent(t[3]??"");return!n||!o?null:{project:n,flow:o}},aie=e=>{const t=e.indexOf("/");return t<=0||t===e.length-1?null:{project:e.slice(0,t),flow:e.slice(t+1)}},tit=e=>{const t=e.split("/").filter(Boolean);if(t.length!==2||t[0]!=="projects")return null;const n=decodeURIComponent(t[1]??"");return n?{project:n}:null},nit="seeflow:navigate",eF="seeflow:flow-stack",PV=e=>({project:e.project,flow:e.flow,slug:`${e.project}/${e.flow}`}),oit=e=>{const t=rie(e);return t?[PV(t)]:[]},rit=(e,t)=>[...e,PV(t)],ait=e=>e?[PV(e)]:[],iit=(e,t,n)=>{if(typeof t=="number"&&t>=0&&t<=e.length){const o=e.slice(0,t),r=o.at(-1);if(n){if(r&&r.project===n.project&&r.flow===n.flow)return o}else if(o.length===0)return o}return null};let Gr=[],LX=!1;const zV=()=>{typeof window>"u"||window.dispatchEvent(new Event(eF))},sit=e=>(window.addEventListener(eF,e),()=>window.removeEventListener(eF,e)),NX=()=>Gr,iie=()=>m.useSyncExternalStore(sit,NX,NX),sie=(e,t)=>{window.history.pushState({stackDepth:e},"",t),window.dispatchEvent(new Event(nit))},cit=(e,t)=>{const n=window.history.state??null;window.history.replaceState({...n??{},stackDepth:e},"",t)},lit=e=>{const t=rit(Gr,e);sie(t.length,oie(e.project,e.flow)),Gr=t,zV()},dit=()=>{window.history.back()},mo=e=>{const t=ait(e),n=e?oie(e.project,e.flow):"/";window.location.pathname===n?cit(t.length,n):sie(t.length,n),Gr!==t&&(Gr=t,zV())},uit=()=>{if(LX)return;Gr=oit(window.location.pathname);const e=window.history.state??null;typeof(e==null?void 0:e.stackDepth)!="number"&&window.history.replaceState({...e??{},stackDepth:Gr.length},"",window.location.pathname+window.location.search+window.location.hash),window.addEventListener("popstate",()=>{const t=window.history.state??null,n=rie(window.location.pathname),o=iit(Gr,t==null?void 0:t.stackDepth,n);if(o!==null){Gr!==o&&(Gr=o,zV());return}mo(n)}),LX=!0},hit="seeflow:last-flow:",cie=e=>`${hit}${e}`,lie=e=>{if(typeof window>"u")return null;try{return window.localStorage.getItem(cie(e))}catch{return null}},fit=(e,t)=>{if(!(typeof window>"u"))try{window.localStorage.setItem(cie(e),t)}catch{}},pit=(e,t)=>{var o;if(e.length===0)return null;if(t){const r=e.find(a=>a.flowSlug===t);if(r)return r.flowSlug}const n=e.find(r=>r.isDefault);return n?n.flowSlug:((o=e[0])==null?void 0:o.flowSlug)??null};function yit({projects:e,currentProjectSlug:t,onProjectCreated:n,onUnregisterProject:o}){const{isCloud:r}=rp(),[a,i]=m.useState(!1),[s,c]=m.useState(!1),[l,h]=m.useState(null),[d,p]=m.useState(!1),[y,g]=m.useState(null),[k,x]=m.useState(!1);m.useEffect(()=>{const L=A=>{A.key==="k"&&(A.metaKey||A.ctrlKey)&&(A.preventDefault(),i(I=>!I))};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},[]);const v=e.find(L=>L.projectSlug===t),M=L=>{const I=lie(L.projectSlug)??L.defaultFlow;mo({project:L.projectSlug,flow:I})},w=L=>{n==null||n(L)},b=L=>{h(L),g(null),x(!1)},C=()=>{d||(h(null),g(null),x(!1))},_=async()=>{if(l){p(!0),g(null);try{await(o==null?void 0:o(l.projectSlug,{deleteSource:k})),h(null),x(!1)}catch(L){g(L instanceof Error?L.message:String(L))}finally{p(!1)}}},S=(l==null?void 0:l.flowCount)??0;return f.jsxs(f.Fragment,{children:[f.jsxs(uu,{open:a,onOpenChange:i,children:[f.jsx(ph,{asChild:!0,children:f.jsxs(rt,{type:"button",variant:"outline",size:"sm","aria-label":"Switch project","aria-expanded":a,className:"gap-2","data-testid":"project-switcher-trigger",children:[f.jsx("span",{className:"max-w-[180px] truncate text-sm",children:(v==null?void 0:v.name)??"Select project"}),f.jsx(jne,{children:"⌘K"}),f.jsx(Yae,{className:"h-3.5 w-3.5 opacity-60"})]})}),f.jsxs(ls,{align:"end",sideOffset:6,className:"relative w-[320px] p-0","data-testid":"project-switcher-popover",children:[f.jsxs(Zq,{children:[f.jsx(Ane,{placeholder:"Search projects..."}),f.jsxs(Yq,{className:"pb-12",children:[f.jsx(Qq,{children:"No projects."}),e.length>0?f.jsx($z,{heading:"Projects",children:e.map(L=>f.jsxs(Pz,{value:`${L.name} ${L.projectSlug}`,onSelect:()=>{i(!1),M(L)},"data-testid":`project-switcher-row-${L.projectSlug}`,className:"group flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"flex min-w-0 flex-col items-start gap-0.5",children:[f.jsx("span",{className:"font-medium",children:L.name}),!r&&L.repoPath?f.jsx("span",{className:"w-full truncate text-xs text-muted-foreground",children:L.repoPath}):null]}),f.jsx("button",{type:"button","aria-label":`Unregister ${L.name}`,"data-testid":`project-switcher-unregister-${L.projectSlug}`,className:"shrink-0 rounded p-0.5 opacity-0 transition-opacity hover:text-destructive group-hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring",onClick:A=>{A.stopPropagation(),i(!1),b(L)},children:f.jsx(eie,{className:"h-3.5 w-3.5"})})]},L.projectSlug))}):null]})]}),f.jsx("button",{type:"button","aria-label":"Create new project",title:"Create new project","data-testid":"project-switcher-create",onClick:()=>{i(!1),c(!0)},className:"absolute right-2 bottom-2 inline-flex h-8 w-8 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-md transition-colors hover:bg-emerald-400 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",children:f.jsx(Jae,{className:"h-4 w-4"})})]})]}),f.jsx(nie,{open:s,onOpenChange:c,onCreated:w}),f.jsx(hr,{open:l!==null,onOpenChange:L=>{L||C()},children:f.jsxs(sa,{className:"sm:max-w-md","data-testid":"unregister-project-dialog",children:[f.jsxs(ca,{children:[f.jsx(la,{children:k?"Delete project?":"Unregister project?"}),f.jsxs(da,{children:["This removes ",f.jsx("strong",{children:l==null?void 0:l.name})," from SeeFlow."," ",f.jsxs("strong",{children:["All ",S," ",S===1?"flow":"flows"]})," ","under this project will be unregistered."]})]}),!r&&(l!=null&&l.repoPath)?f.jsxs("label",{className:"flex items-start gap-2 rounded-md border border-border px-3 py-2 text-sm",children:[f.jsx("input",{type:"checkbox",checked:k,onChange:L=>x(L.target.checked),disabled:d,"data-testid":"unregister-project-delete-source",className:"mt-0.5 h-4 w-4 cursor-pointer accent-destructive"}),f.jsxs("span",{className:"flex-1",children:[f.jsx("span",{className:"font-medium",children:"Also delete files from disk"}),f.jsxs("span",{className:"mt-1 block text-xs text-muted-foreground",children:["Permanently removes"," ",f.jsx("code",{className:"break-all text-xs",children:l.repoPath})," and everything inside it. This cannot be undone."]})]})]}):null,y?f.jsx("div",{role:"alert","data-testid":"unregister-project-error",className:"rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:y}):null,f.jsxs(fr,{children:[f.jsx(rt,{type:"button",variant:"ghost",onClick:C,disabled:d,children:"Cancel"}),f.jsx(rt,{type:"button",variant:"destructive",onClick:_,disabled:d,"data-testid":"unregister-project-confirm",children:d?k?"Deleting…":"Unregistering…":k?"Delete project":"Unregister"})]})]})})]})}const mit=e=>{var o,r,a,i;const t=((o=e.name)==null?void 0:o.trim())||((r=e.email)==null?void 0:r.trim())||"";if(!t)return"?";const n=t.split(/\s+/).filter(Boolean);if(n.length>=2){const s=((a=n[0])==null?void 0:a[0])??"",c=((i=n[1])==null?void 0:i[0])??"";return(s+c).toUpperCase()}return t.slice(0,2).toUpperCase()};function git({user:e,onOpenProfile:t,onMyProjects:n,onSignOut:o}){const r=e.name||e.email||"Account";return f.jsxs(sV,{children:[f.jsx(cV,{asChild:!0,children:f.jsx("button",{type:"button","aria-label":"Account menu","data-testid":"user-menu-trigger",className:"flex h-8 w-8 items-center justify-center overflow-hidden rounded-full border border-border bg-muted text-xs font-semibold text-foreground transition-colors hover:bg-muted/70 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:e.imageUrl?f.jsx("img",{src:e.imageUrl,alt:"",className:"h-full w-full object-cover"}):f.jsx("span",{children:mit(e)})})}),f.jsxs(GR,{align:"end",sideOffset:6,className:"w-56","data-testid":"user-menu",children:[f.jsx(lV,{children:f.jsxs("div",{className:"flex flex-col",children:[f.jsx("span",{className:"truncate text-sm font-medium",children:r}),e.name&&e.email?f.jsx("span",{className:"truncate text-xs font-normal text-muted-foreground",children:e.email}):null]})}),f.jsx(zO,{}),f.jsxs(zi,{onSelect:t,"data-testid":"user-menu-profile",children:[f.jsx(Kat,{className:"mr-2 h-4 w-4"}),"My profile"]}),f.jsxs(zi,{onSelect:n,"data-testid":"user-menu-projects",children:[f.jsx(qat,{className:"mr-2 h-4 w-4"}),"My projects"]}),f.jsx(zO,{}),f.jsxs(zi,{onSelect:o,"data-testid":"user-menu-signout",children:[f.jsx(Vat,{className:"mr-2 h-4 w-4"}),"Sign out"]})]})]})}const die="seeflow:theme",IX="(prefers-color-scheme: dark)";function kit(e){return e==="light"||e==="dark"||e==="system"}function vit(e){try{const t=e.getItem(die);return kit(t)?t:"system"}catch{return"system"}}function xit(e){try{const t=new URLSearchParams(e);if(!t.has("theme"))return null;const n=t.get("theme");return n==="light"||n==="dark"?n:"light"}catch{return null}}function wit(e,t){try{e.setItem(die,t)}catch{}}function Mit(e,t){return e==="system"?t?"dark":"light":e}function bit(e,t){t==="dark"?(e.classList.add("dark"),e.classList.remove("light")):(e.classList.add("light"),e.classList.remove("dark"))}function _it(e,t){var o;const n=r=>t(r.matches);return e.addEventListener?(e.addEventListener("change",n),()=>{var r;return(r=e.removeEventListener)==null?void 0:r.call(e,"change",n)}):((o=e.addListener)==null||o.call(e,n),()=>{var r;return(r=e.removeListener)==null?void 0:r.call(e,n)})}function Cit(){const[e,t]=m.useState(()=>{if(typeof window>"u")return"system";const i=xit(window.location.search);return i||vit(window.localStorage)}),[n,o]=m.useState(()=>typeof window>"u"?!1:window.matchMedia(IX).matches);m.useEffect(()=>{if(typeof window>"u")return;const i=window.matchMedia(IX);return _it(i,o)},[]);const r=Mit(e,n);m.useEffect(()=>{typeof document>"u"||bit(document.documentElement,r)},[r]);const a=m.useCallback(i=>{typeof window<"u"&&wit(window.localStorage,i),t(i)},[]);return{theme:e,setTheme:a,resolvedTheme:r}}const Sit=[{value:"light",label:"Light"},{value:"dark",label:"Dark"},{value:"system",label:"System"}];function Lit({projects:e,currentProjectSlug:t,onProjectCreated:n,onUnregisterProject:o,share:r,onBack:a,previousFlowName:i}){const{theme:s,setTheme:c}=Cit(),{isCloud:l,user:h,provider:d}=rp(),p=i!==void 0;return f.jsxs("header",{className:"relative flex h-14 shrink-0 items-center justify-between bg-background/85 px-5 backdrop-blur-md shadow-[0_1px_3px_-1px_rgba(15,23,42,0.06),0_2px_8px_-4px_rgba(15,23,42,0.05)] dark:shadow-[0_4px_12px_-6px_rgba(0,0,0,0.6)]",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[p?f.jsxs(mh,{children:[f.jsx(gh,{asChild:!0,children:f.jsx("button",{type:"button",onClick:a,"aria-label":"Back to previous flow","data-testid":"flow-back-button",className:"flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted/60 hover:text-foreground",children:f.jsx(Oat,{size:16,strokeWidth:2.25})})}),f.jsxs(pu,{side:"bottom",children:["Back to ",i]})]}):null,f.jsxs("button",{type:"button",onClick:()=>mo(null),className:"-ml-1.5 flex items-center gap-2 rounded-md px-1.5 py-1 text-base font-bold tracking-tight transition-colors hover:bg-muted/60",children:[f.jsx(Xat,{size:18,strokeWidth:2.25,className:"text-emerald-400"}),"SeeFlow",f.jsxs("span",{className:"ml-1 text-[10px] font-normal tracking-normal text-muted-foreground/70",children:["v","0.2.3"]})]})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(yit,{projects:e,currentProjectSlug:t,onProjectCreated:n,onUnregisterProject:o}),r?f.jsx(Pae,{mode:"edit",enableEmbed:!1,onDownloadPdf:r.onDownloadPdf,onDownloadPng:r.onDownloadPng,onExportToCloud:l?void 0:r.onExportToCloud}):null,f.jsxs(sV,{children:[f.jsx(cV,{asChild:!0,children:f.jsx(rt,{type:"button",variant:"outline",size:"icon","aria-label":"Settings","data-testid":"settings-trigger",children:f.jsx(Uat,{className:"h-4 w-4"})})}),f.jsxs(GR,{align:"end",sideOffset:6,className:"w-44","data-testid":"settings-menu",children:[f.jsx(lV,{children:"Theme"}),f.jsx(wXe,{value:s,onValueChange:y=>c(y),children:Sit.map(y=>f.jsx(ere,{value:y.value,"data-testid":`theme-${y.value}`,children:y.label},y.value))})]})]}),l&&h?f.jsx(git,{user:h,onOpenProfile:()=>{var y;return(y=d.openProfile)==null?void 0:y.call(d)},onMyProjects:()=>mo(null),onSignOut:()=>void d.signOut()}):null]})]})}const Nit=()=>{const[e,t]=m.useState(null),[n,o]=m.useState(null),r=m.useCallback(()=>c1e().then(a=>{t(a),o(null)}).catch(a=>{console.error("[useDemos] failed",a),t([]),o(String(a))}),[]);return m.useEffect(()=>{r()},[r]),{demos:e,error:n,refresh:r}},Iit=()=>{const[e,t]=m.useState(null),[n,o]=m.useState(!0),[r,a]=m.useState(null),i=m.useCallback(()=>(o(!0),l1e().then(c=>{t(c),a(null)}).catch(c=>{console.error("[useProjects] failed",c),t([]),a(String(c))}).finally(()=>o(!1))),[]);m.useEffect(()=>{i()},[i]);const s=m.useCallback(async(c,l)=>{await h1e(c,l),await i()},[i]);return{projects:e,loading:n,error:r,refresh:i,unregisterProject:s}},AX=1e3,Ait=3e4;function uie(e){const t=new Map;let n=!1,o=AX,r=null,a=null;const i=(l,h)=>{const d=t.get(l);if(d)for(const p of d)p(h)},s=()=>{n||(i("error",{data:"",lastEventId:""}),a=setTimeout(c,o),o=Math.min(o*2,Ait))},c=async()=>{if(n)return;r=new AbortController;const l=Eit((h,d)=>i(h,d));try{const h=await oQ().getToken(),d=new Headers({accept:"text/event-stream"});h&&d.set("Authorization",`Bearer ${h}`);const p=await fetch(e,{headers:d,signal:r.signal});if(!p.ok||!p.body){s();return}o=AX,i("open",{data:"",lastEventId:""});const y=p.body.getReader(),g=new TextDecoder;for(;;){const{value:k,done:x}=await y.read();if(x)break;l.feed(g.decode(k,{stream:!0}))}s()}catch{n||s()}};return c(),{addEventListener(l,h){let d=t.get(l);d||(d=new Set,t.set(l,d)),d.add(h)},close(){n=!0,a&&clearTimeout(a),r==null||r.abort()}}}function Eit(e){let t="",n="";const o=r=>{let a="message";const i=[];for(const s of r.split(`
8650
8650
  `)){const c=s.endsWith("\r")?s.slice(0,-1):s;if(c===""||c.startsWith(":"))continue;const l=c.indexOf(":"),h=l===-1?c:c.slice(0,l);let d=l===-1?"":c.slice(l+1);d.startsWith(" ")&&(d=d.slice(1)),h==="event"?a=d:h==="data"?i.push(d):h==="id"&&(n=d)}i.length!==0&&e(a,{data:i.join(`
8651
8651
  `),lastEventId:n})};return{feed(r){t+=r;let a=EX(t);for(;a!==-1;){const i=t.slice(0,a.index);t=t.slice(a.index+a.length),o(i),a=EX(t)}}}}const EX=e=>{const t=e.indexOf(`
8652
8652