@tsiky/components-r19 8.2.24 → 8.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),y=require("react"),a=require("./LineChart-DIs0kgVS.cjs"),O=require("styled-components"),gi=require("react-dom");function pP(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,c.get?c:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ee=pP(y),yP="_button_1kuwt_2",kP="_primary_1kuwt_21",mP="_secondary_1kuwt_26",fP="_accent_1kuwt_31",gP="_outline_1kuwt_36",vP="_success_1kuwt_41",xP="_danger_1kuwt_46",_P="_warning_1kuwt_51",MP="_info_1kuwt_56",LP="_sm_1kuwt_62",bP="_md_1kuwt_67",IP="_lg_1kuwt_72",ct={button:yP,primary:kP,secondary:mP,accent:fP,outline:gP,success:vP,danger:xP,warning:_P,info:MP,sm:LP,md:bP,lg:IP};function oe(e,t,n,c){if(!e||!e.mode||e.mode==="none")return;const{mode:i,moduleName:r,key:s,description:d,titleKey:l,textLabel:h="Texte",guideLabel:u="Guide"}=e,p=n||s,k=c||d,f=t||l,g=(m,v)=>{const _=v?v.trim():"";return _?_.includes(":")?`${m} : ${_.replace(/\s*:\s*/g," : ")}`:r?`${m} : ${r} : ${_}`:`${m} : ${_}`:`${m} : `};if(i==="key"){const m=[f?.trim()?g(h||"Texte",f):null,p?.trim()?g(u||"Guide",p):null].filter(Boolean);return m.length>0?m.join(" | "):void 0}if(i==="guide")return k||void 0}const BL=({children:e,variant:t="primary",size:n="md",className:c="",type:i="button",a11yConfig:r,...s})=>{const d={primary:ct.primary,secondary:ct.secondary,accent:ct.accent,outline:ct.outline,success:ct.success,danger:ct.danger,warning:ct.warning,info:ct.info},l={sm:ct.sm,md:ct.md,lg:ct.lg},h=[ct.button,d[t]??"",l[n]??"",c].filter(Boolean).join(" ");return o.jsx("button",{type:i,className:h,...s,title:s.title||oe(r,typeof e=="string"?e:void 0),children:e})},bw=({progress:e,size:t,strokeWidth:n,color:c="#FFD700",bgColor:i="#eef2f6",textColor:r,textTop:s,textBottom:d,label:l,labelColor:h,textTopStyle:u,textBottomStyle:p,className:k=""})=>{t||(t=150);const f=n||t*.1;t+=f;const g=Math.min(5,Math.max(0,Math.floor(e))),m=t/2,v=(t-f)/2,_=2*Math.PI*v,b=_/5*(1-.1),I=_-b;return o.jsxs("div",{className:`circular-progress-container ${k}`,children:[o.jsxs("div",{className:"circular-progress",style:{width:t,height:t},children:[o.jsxs("svg",{width:t,height:t,children:[o.jsx("circle",{cx:m,cy:m,r:v-f/2,fill:i,stroke:"none",style:{filter:"drop-shadow(0px 0px 1px rgba(0,0,0,0.4))"}}),Array.from({length:5}).map((w,j)=>{const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),y=require("react"),a=require("./LineChart-DIs0kgVS.cjs"),O=require("styled-components"),gi=require("react-dom");function pP(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,c.get?c:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ee=pP(y),yP="_button_1kuwt_2",kP="_primary_1kuwt_21",mP="_secondary_1kuwt_26",fP="_accent_1kuwt_31",gP="_outline_1kuwt_36",vP="_success_1kuwt_41",xP="_danger_1kuwt_46",_P="_warning_1kuwt_51",MP="_info_1kuwt_56",LP="_sm_1kuwt_62",bP="_md_1kuwt_67",IP="_lg_1kuwt_72",ct={button:yP,primary:kP,secondary:mP,accent:fP,outline:gP,success:vP,danger:xP,warning:_P,info:MP,sm:LP,md:bP,lg:IP};function oe(e,t,n,c){if(!e||!e.mode||e.mode==="none")return;const{mode:i,moduleName:r,key:s,description:d,titleKey:l,textLabel:h="Texte",guideLabel:u="Guide"}=e,p=n||s,k=c||d,f=t||l,g=(m,v)=>{const _=v?v.trim():"";return _?_.includes(":")?`${m} : ${_.replace(/\s*:\s*/g," : ")}`:r?`${m} : ${r} : ${_}`:`${m} : ${_}`:`${m} : `};if(i==="key"){const m=[f?.trim()?g(h||"Texte",f):null,p?.trim()?g(u||"Guide",p):null].filter(Boolean);return m.length>0?m.join(" | "):void 0}if(i==="guide")return k||void 0}const BL=({children:e,variant:t="primary",size:n="md",className:c="",type:i="button",a11yConfig:r,...s})=>{const d={primary:ct.primary,secondary:ct.secondary,accent:ct.accent,outline:ct.outline,success:ct.success,danger:ct.danger,warning:ct.warning,info:ct.info},l={sm:ct.sm,md:ct.md,lg:ct.lg},h=[ct.button,d[t]??"",l[n]??"",c].filter(Boolean).join(" ");return o.jsx("button",{type:i,className:h,...s,title:s.title||oe(r,typeof e=="string"?e:void 0),children:e})},bw=({progress:e,size:t,strokeWidth:n,color:c="#FFD700",bgColor:i="#eef2f6",textColor:r,textTop:s,textBottom:d,label:l,labelColor:h,textTopStyle:u,textBottomStyle:p,className:k=""})=>{t||(t=150);const f=n||t*.1;t+=f;const g=Math.min(5,Math.max(0,Math.floor(e))),m=t/2,v=(t-f)/2,_=2*Math.PI*v,b=_/5*(1-.1),I=_-b;return o.jsxs("div",{className:`circular-progress-container ${k}`,children:[o.jsxs("div",{className:"circular-progress",style:{width:t,height:t},children:[o.jsxs("svg",{width:t,height:t,children:[o.jsx("circle",{cx:m,cy:m,r:v-f/2,fill:i,stroke:"none",style:{filter:"drop-shadow(0px 0px 1px rgba(0,0,0,0.4))"}}),Array.from({length:5}).map((w,j)=>{const L=-90+j*72;return j>=g?null:o.jsx("circle",{cx:m,cy:m,r:v,fill:"transparent",stroke:c,strokeWidth:f,strokeLinecap:"butt",strokeDasharray:`${b} ${I}`,strokeDashoffset:0,transform:`rotate(${L} ${m} ${m})`,style:{transition:"stroke 0.3s ease"}},j)})]}),(s||d)&&o.jsxs("div",{className:"circular-progress-content",style:{color:r},children:[s&&o.jsx("div",{className:"circular-progress-text-top",style:{fontSize:"var(--text-paragraph)",fontWeight:"var(--font-bold)",...u},children:s}),d&&o.jsx("div",{className:"circular-progress-text-bottom",style:{fontSize:"var(--text-paragraph)",fontWeight:"var(--font-medium)",...p},children:d})]})]}),l&&o.jsx("div",{className:"circular-progress-label",style:{fontSize:"var(--text-paragraph)",fontWeight:"var(--font-medium)",color:h||r||"inherit"},children:l})]})},wP="_wrapper_12x8x_1",CP="_list_12x8x_12",jP="_item_12x8x_22",NP="_badge_12x8x_30",SP="_text_12x8x_42",$P="_tooltip_12x8x_49",vt={wrapper:wP,list:CP,item:jP,badge:NP,text:SP,tooltip:$P};function q$({data:e,style:t,defaultBadgeColor:n="#2E7D32",defaultTextColor:c="#000",bgColor:i="transparent",activateTooltip:r=!0,maxVisible:s=3,width:d="auto",gap:l=0}){const[h,u]=y.useState(!1),[p,k]=y.useState(null),f=y.useRef(null);y.useEffect(()=>{function _(x){x.key==="Escape"&&u(!1)}return h&&document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[h]),y.useEffect(()=>{function _(x){f.current&&!f.current.contains(x.target)&&u(!1)}return h&&document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[h]);function g(_){r&&(_.preventDefault(),k({x:_.clientX,y:_.clientY}),u(!0))}const m=e.slice(0,s),v=_=>typeof _=="number"?`${_}px`:_;return o.jsxs("div",{className:vt.wrapper,style:{width:v(d),background:i,...t,"--gap":v(l)},onContextMenu:g,"aria-label":"liste-badges",children:[o.jsx("ul",{className:vt.list,children:m.map((_,x)=>o.jsxs("li",{className:vt.item,children:[o.jsx("span",{className:vt.badge,style:{backgroundColor:_.badgeColor??n},"aria-hidden":!0}),o.jsx("span",{className:vt.text,style:{color:_.textColor??c},children:_.text})]},x))}),r&&h&&p&&o.jsx("div",{className:vt.tooltip,style:{left:p.x+8,top:p.y+8,backgroundColor:i,"--gap":v(l)},role:"dialog","aria-modal":"false",ref:f,children:o.jsx("ul",{className:vt.list,children:e.map((_,x)=>o.jsxs("li",{className:vt.item,children:[o.jsx("span",{className:vt.badge,style:{backgroundColor:_.badgeColor??n}}),o.jsx("span",{className:vt.text,style:{color:_.textColor??"#000"},children:_.text})]},x))})})]})}/**
|
|
2
2
|
* @license lucide-react v0.540.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -8158,7 +8158,7 @@
|
|
|
8158
8158
|
*
|
|
8159
8159
|
* This source code is licensed under the ISC license.
|
|
8160
8160
|
* See the LICENSE file in the root directory of this source tree.
|
|
8161
|
-
*/const At=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:Ei,AArrowDownIcon:Ei,AArrowUp:Oi,AArrowUpIcon:Oi,ALargeSmall:Ui,ALargeSmallIcon:Ui,Accessibility:U1,AccessibilityIcon:U1,Activity:W1,ActivityIcon:W1,ActivitySquare:Kt,ActivitySquareIcon:Kt,AirVent:Wi,AirVentIcon:Wi,Airplay:Gi,AirplayIcon:Gi,AlarmCheck:ra,AlarmCheckIcon:ra,AlarmClock:Zi,AlarmClockCheck:ra,AlarmClockCheckIcon:ra,AlarmClockIcon:Zi,AlarmClockMinus:sa,AlarmClockMinusIcon:sa,AlarmClockOff:Ki,AlarmClockOffIcon:Ki,AlarmClockPlus:da,AlarmClockPlusIcon:da,AlarmMinus:sa,AlarmMinusIcon:sa,AlarmPlus:da,AlarmPlusIcon:da,AlarmSmoke:Xi,AlarmSmokeIcon:Xi,Album:Yi,AlbumIcon:Yi,AlertCircle:Ta,AlertCircleIcon:Ta,AlertOctagon:io,AlertOctagonIcon:io,AlertTriangle:$c,AlertTriangleIcon:$c,AlignCenter:nr,AlignCenterHorizontal:Ji,AlignCenterHorizontalIcon:Ji,AlignCenterIcon:nr,AlignCenterVertical:Qi,AlignCenterVerticalIcon:Qi,AlignEndHorizontal:er,AlignEndHorizontalIcon:er,AlignEndVertical:tr,AlignEndVerticalIcon:tr,AlignHorizontalDistributeCenter:ar,AlignHorizontalDistributeCenterIcon:ar,AlignHorizontalDistributeEnd:or,AlignHorizontalDistributeEndIcon:or,AlignHorizontalDistributeStart:cr,AlignHorizontalDistributeStartIcon:cr,AlignHorizontalJustifyCenter:ir,AlignHorizontalJustifyCenterIcon:ir,AlignHorizontalJustifyEnd:rr,AlignHorizontalJustifyEndIcon:rr,AlignHorizontalJustifyStart:sr,AlignHorizontalJustifyStartIcon:sr,AlignHorizontalSpaceAround:dr,AlignHorizontalSpaceAroundIcon:dr,AlignHorizontalSpaceBetween:hr,AlignHorizontalSpaceBetweenIcon:hr,AlignJustify:lr,AlignJustifyIcon:lr,AlignLeft:ur,AlignLeftIcon:ur,AlignRight:pr,AlignRightIcon:pr,AlignStartHorizontal:yr,AlignStartHorizontalIcon:yr,AlignStartVertical:kr,AlignStartVerticalIcon:kr,AlignVerticalDistributeCenter:fr,AlignVerticalDistributeCenterIcon:fr,AlignVerticalDistributeEnd:mr,AlignVerticalDistributeEndIcon:mr,AlignVerticalDistributeStart:vr,AlignVerticalDistributeStartIcon:vr,AlignVerticalJustifyCenter:gr,AlignVerticalJustifyCenterIcon:gr,AlignVerticalJustifyEnd:xr,AlignVerticalJustifyEndIcon:xr,AlignVerticalJustifyStart:_r,AlignVerticalJustifyStartIcon:_r,AlignVerticalSpaceAround:Lr,AlignVerticalSpaceAroundIcon:Lr,AlignVerticalSpaceBetween:Mr,AlignVerticalSpaceBetweenIcon:Mr,Ambulance:br,AmbulanceIcon:br,Ampersand:Ir,AmpersandIcon:Ir,Ampersands:wr,AmpersandsIcon:wr,Amphora:Cr,AmphoraIcon:Cr,Anchor:jr,AnchorIcon:jr,Angry:Nr,AngryIcon:Nr,Annoyed:Sr,AnnoyedIcon:Sr,Antenna:$r,AntennaIcon:$r,Anvil:qr,AnvilIcon:qr,Aperture:Ar,ApertureIcon:Ar,AppWindow:Pr,AppWindowIcon:Pr,AppWindowMac:zr,AppWindowMacIcon:zr,Apple:Vr,AppleIcon:Vr,Archive:Hr,ArchiveIcon:Hr,ArchiveRestore:Tr,ArchiveRestoreIcon:Tr,ArchiveX:Dr,ArchiveXIcon:Dr,AreaChart:ba,AreaChartIcon:ba,Armchair:Br,ArmchairIcon:Br,ArrowBigDown:Fr,ArrowBigDownDash:Rr,ArrowBigDownDashIcon:Rr,ArrowBigDownIcon:Fr,ArrowBigLeft:Or,ArrowBigLeftDash:Er,ArrowBigLeftDashIcon:Er,ArrowBigLeftIcon:Or,ArrowBigRight:Wr,ArrowBigRightDash:Ur,ArrowBigRightDashIcon:Ur,ArrowBigRightIcon:Wr,ArrowBigUp:Kr,ArrowBigUpDash:Gr,ArrowBigUpDashIcon:Gr,ArrowBigUpIcon:Kr,ArrowDown:M1,ArrowDown01:Zr,ArrowDown01Icon:Zr,ArrowDown10:Xr,ArrowDown10Icon:Xr,ArrowDownAZ:la,ArrowDownAZIcon:la,ArrowDownAz:la,ArrowDownAzIcon:la,ArrowDownCircle:Da,ArrowDownCircleIcon:Da,ArrowDownFromLine:Yr,ArrowDownFromLineIcon:Yr,ArrowDownIcon:M1,ArrowDownLeft:Jr,ArrowDownLeftFromCircle:Ba,ArrowDownLeftFromCircleIcon:Ba,ArrowDownLeftFromSquare:zo,ArrowDownLeftFromSquareIcon:zo,ArrowDownLeftIcon:Jr,ArrowDownLeftSquare:So,ArrowDownLeftSquareIcon:So,ArrowDownNarrowWide:Qr,ArrowDownNarrowWideIcon:Qr,ArrowDownRight:es,ArrowDownRightFromCircle:Ra,ArrowDownRightFromCircleIcon:Ra,ArrowDownRightFromSquare:Po,ArrowDownRightFromSquareIcon:Po,ArrowDownRightIcon:es,ArrowDownRightSquare:$o,ArrowDownRightSquareIcon:$o,ArrowDownSquare:qo,ArrowDownSquareIcon:qo,ArrowDownToDot:ts,ArrowDownToDotIcon:ts,ArrowDownToLine:as,ArrowDownToLineIcon:as,ArrowDownUp:ns,ArrowDownUpIcon:ns,ArrowDownWideNarrow:ha,ArrowDownWideNarrowIcon:ha,ArrowDownZA:ua,ArrowDownZAIcon:ua,ArrowDownZa:ua,ArrowDownZaIcon:ua,ArrowLeft:G1,ArrowLeftCircle:Ha,ArrowLeftCircleIcon:Ha,ArrowLeftFromLine:os,ArrowLeftFromLineIcon:os,ArrowLeftIcon:G1,ArrowLeftRight:cs,ArrowLeftRightIcon:cs,ArrowLeftSquare:Ao,ArrowLeftSquareIcon:Ao,ArrowLeftToLine:is,ArrowLeftToLineIcon:is,ArrowRight:ls,ArrowRightCircle:Oa,ArrowRightCircleIcon:Oa,ArrowRightFromLine:rs,ArrowRightFromLineIcon:rs,ArrowRightIcon:ls,ArrowRightLeft:ss,ArrowRightLeftIcon:ss,ArrowRightSquare:Do,ArrowRightSquareIcon:Do,ArrowRightToLine:ds,ArrowRightToLineIcon:ds,ArrowUp:L1,ArrowUp01:hs,ArrowUp01Icon:hs,ArrowUp10:us,ArrowUp10Icon:us,ArrowUpAZ:pa,ArrowUpAZIcon:pa,ArrowUpAz:pa,ArrowUpAzIcon:pa,ArrowUpCircle:Ua,ArrowUpCircleIcon:Ua,ArrowUpDown:ps,ArrowUpDownIcon:ps,ArrowUpFromDot:ys,ArrowUpFromDotIcon:ys,ArrowUpFromLine:ks,ArrowUpFromLineIcon:ks,ArrowUpIcon:L1,ArrowUpLeft:ms,ArrowUpLeftFromCircle:Fa,ArrowUpLeftFromCircleIcon:Fa,ArrowUpLeftFromSquare:Vo,ArrowUpLeftFromSquareIcon:Vo,ArrowUpLeftIcon:ms,ArrowUpLeftSquare:Ho,ArrowUpLeftSquareIcon:Ho,ArrowUpNarrowWide:ya,ArrowUpNarrowWideIcon:ya,ArrowUpRight:fs,ArrowUpRightFromCircle:Ea,ArrowUpRightFromCircleIcon:Ea,ArrowUpRightFromSquare:To,ArrowUpRightFromSquareIcon:To,ArrowUpRightIcon:fs,ArrowUpRightSquare:Bo,ArrowUpRightSquareIcon:Bo,ArrowUpSquare:Ro,ArrowUpSquareIcon:Ro,ArrowUpToLine:gs,ArrowUpToLineIcon:gs,ArrowUpWideNarrow:vs,ArrowUpWideNarrowIcon:vs,ArrowUpZA:ka,ArrowUpZAIcon:ka,ArrowUpZa:ka,ArrowUpZaIcon:ka,ArrowsUpFromLine:xs,ArrowsUpFromLineIcon:xs,Asterisk:_s,AsteriskIcon:_s,AsteriskSquare:Fo,AsteriskSquareIcon:Fo,AtSign:Ms,AtSignIcon:Ms,Atom:Ls,AtomIcon:Ls,AudioLines:bs,AudioLinesIcon:bs,AudioWaveform:Is,AudioWaveformIcon:Is,Award:ws,AwardIcon:ws,Axe:Cs,AxeIcon:Cs,Axis3D:ma,Axis3DIcon:ma,Axis3d:ma,Axis3dIcon:ma,Baby:js,BabyIcon:js,Backpack:Ns,BackpackIcon:Ns,Badge:Us,BadgeAlert:Ss,BadgeAlertIcon:Ss,BadgeCent:$s,BadgeCentIcon:$s,BadgeCheck:fa,BadgeCheckIcon:fa,BadgeDollarSign:qs,BadgeDollarSignIcon:qs,BadgeEuro:As,BadgeEuroIcon:As,BadgeHelp:ga,BadgeHelpIcon:ga,BadgeIcon:Us,BadgeIndianRupee:zs,BadgeIndianRupeeIcon:zs,BadgeInfo:Ps,BadgeInfoIcon:Ps,BadgeJapaneseYen:Ts,BadgeJapaneseYenIcon:Ts,BadgeMinus:Vs,BadgeMinusIcon:Vs,BadgePercent:Ds,BadgePercentIcon:Ds,BadgePlus:Hs,BadgePlusIcon:Hs,BadgePoundSterling:Bs,BadgePoundSterlingIcon:Bs,BadgeQuestionMark:ga,BadgeQuestionMarkIcon:ga,BadgeRussianRuble:Rs,BadgeRussianRubleIcon:Rs,BadgeSwissFranc:Fs,BadgeSwissFrancIcon:Fs,BadgeTurkishLira:Es,BadgeTurkishLiraIcon:Es,BadgeX:Os,BadgeXIcon:Os,BaggageClaim:Ws,BaggageClaimIcon:Ws,Ban:Gs,BanIcon:Gs,Banana:Ks,BananaIcon:Ks,Bandage:Zs,BandageIcon:Zs,Banknote:Qs,BanknoteArrowDown:Xs,BanknoteArrowDownIcon:Xs,BanknoteArrowUp:Ys,BanknoteArrowUpIcon:Ys,BanknoteIcon:Qs,BanknoteX:Js,BanknoteXIcon:Js,BarChart:qa,BarChart2:Aa,BarChart2Icon:Aa,BarChart3:Sa,BarChart3Icon:Sa,BarChart4:Na,BarChart4Icon:Na,BarChartBig:ja,BarChartBigIcon:ja,BarChartHorizontal:wa,BarChartHorizontalBig:Ia,BarChartHorizontalBigIcon:Ia,BarChartHorizontalIcon:wa,BarChartIcon:qa,Barcode:e2,BarcodeIcon:e2,Barrel:t2,BarrelIcon:t2,Baseline:a2,BaselineIcon:a2,Bath:n2,BathIcon:n2,Battery:l2,BatteryCharging:o2,BatteryChargingIcon:o2,BatteryFull:c2,BatteryFullIcon:c2,BatteryIcon:l2,BatteryLow:i2,BatteryLowIcon:i2,BatteryMedium:r2,BatteryMediumIcon:r2,BatteryPlus:s2,BatteryPlusIcon:s2,BatteryWarning:d2,BatteryWarningIcon:d2,Beaker:h2,BeakerIcon:h2,Bean:p2,BeanIcon:p2,BeanOff:u2,BeanOffIcon:u2,Bed:m2,BedDouble:y2,BedDoubleIcon:y2,BedIcon:m2,BedSingle:k2,BedSingleIcon:k2,Beef:f2,BeefIcon:f2,Beer:v2,BeerIcon:v2,BeerOff:g2,BeerOffIcon:g2,Bell:I2,BellDot:x2,BellDotIcon:x2,BellElectric:_2,BellElectricIcon:_2,BellIcon:I2,BellMinus:M2,BellMinusIcon:M2,BellOff:L2,BellOffIcon:L2,BellPlus:b2,BellPlusIcon:b2,BellRing:w2,BellRingIcon:w2,BetweenHorizonalEnd:va,BetweenHorizonalEndIcon:va,BetweenHorizonalStart:xa,BetweenHorizonalStartIcon:xa,BetweenHorizontalEnd:va,BetweenHorizontalEndIcon:va,BetweenHorizontalStart:xa,BetweenHorizontalStartIcon:xa,BetweenVerticalEnd:j2,BetweenVerticalEndIcon:j2,BetweenVerticalStart:C2,BetweenVerticalStartIcon:C2,BicepsFlexed:N2,BicepsFlexedIcon:N2,Bike:$2,BikeIcon:$2,Binary:S2,BinaryIcon:S2,Binoculars:q2,BinocularsIcon:q2,Biohazard:A2,BiohazardIcon:A2,Bird:z2,BirdIcon:z2,Bitcoin:P2,BitcoinIcon:P2,Blend:V2,BlendIcon:V2,Blinds:T2,BlindsIcon:T2,Blocks:D2,BlocksIcon:D2,Bluetooth:F2,BluetoothConnected:H2,BluetoothConnectedIcon:H2,BluetoothIcon:F2,BluetoothOff:B2,BluetoothOffIcon:B2,BluetoothSearching:R2,BluetoothSearchingIcon:R2,Bold:E2,BoldIcon:E2,Bolt:O2,BoltIcon:O2,Bomb:U2,BombIcon:U2,Bone:W2,BoneIcon:W2,Book:md,BookA:G2,BookAIcon:G2,BookAlert:K2,BookAlertIcon:K2,BookAudio:Z2,BookAudioIcon:Z2,BookCheck:X2,BookCheckIcon:X2,BookCopy:Y2,BookCopyIcon:Y2,BookDashed:_a,BookDashedIcon:_a,BookDown:J2,BookDownIcon:J2,BookHeadphones:Q2,BookHeadphonesIcon:Q2,BookHeart:ed,BookHeartIcon:ed,BookIcon:md,BookImage:td,BookImageIcon:td,BookKey:ad,BookKeyIcon:ad,BookLock:nd,BookLockIcon:nd,BookMarked:cd,BookMarkedIcon:cd,BookMinus:od,BookMinusIcon:od,BookOpen:sd,BookOpenCheck:id,BookOpenCheckIcon:id,BookOpenIcon:sd,BookOpenText:rd,BookOpenTextIcon:rd,BookPlus:dd,BookPlusIcon:dd,BookTemplate:_a,BookTemplateIcon:_a,BookText:ld,BookTextIcon:ld,BookType:hd,BookTypeIcon:hd,BookUp:pd,BookUp2:ud,BookUp2Icon:ud,BookUpIcon:pd,BookUser:yd,BookUserIcon:yd,BookX:kd,BookXIcon:kd,Bookmark:_d,BookmarkCheck:fd,BookmarkCheckIcon:fd,BookmarkIcon:_d,BookmarkMinus:gd,BookmarkMinusIcon:gd,BookmarkPlus:vd,BookmarkPlusIcon:vd,BookmarkX:xd,BookmarkXIcon:xd,BoomBox:Md,BoomBoxIcon:Md,Bot:Id,BotIcon:Id,BotMessageSquare:Ld,BotMessageSquareIcon:Ld,BotOff:bd,BotOffIcon:bd,BottleWine:wd,BottleWineIcon:wd,BowArrow:Cd,BowArrowIcon:Cd,Box:jd,BoxIcon:jd,BoxSelect:Qo,BoxSelectIcon:Qo,Boxes:Nd,BoxesIcon:Nd,Braces:Ma,BracesIcon:Ma,Brackets:Sd,BracketsIcon:Sd,Brain:Ad,BrainCircuit:$d,BrainCircuitIcon:$d,BrainCog:qd,BrainCogIcon:qd,BrainIcon:Ad,BrickWall:Vd,BrickWallFire:zd,BrickWallFireIcon:zd,BrickWallIcon:Vd,BrickWallShield:Pd,BrickWallShieldIcon:Pd,Briefcase:Bd,BriefcaseBusiness:Td,BriefcaseBusinessIcon:Td,BriefcaseConveyorBelt:Dd,BriefcaseConveyorBeltIcon:Dd,BriefcaseIcon:Bd,BriefcaseMedical:Hd,BriefcaseMedicalIcon:Hd,BringToFront:Rd,BringToFrontIcon:Rd,Brush:Ed,BrushCleaning:Fd,BrushCleaningIcon:Fd,BrushIcon:Ed,Bubbles:Od,BubblesIcon:Od,Bug:Kd,BugIcon:Kd,BugOff:Ud,BugOffIcon:Ud,BugPlay:Wd,BugPlayIcon:Wd,Building:Zd,Building2:Gd,Building2Icon:Gd,BuildingIcon:Zd,Bus:Yd,BusFront:Xd,BusFrontIcon:Xd,BusIcon:Yd,Cable:Qd,CableCar:Jd,CableCarIcon:Jd,CableIcon:Qd,Cake:t0,CakeIcon:t0,CakeSlice:e0,CakeSliceIcon:e0,Calculator:a0,CalculatorIcon:a0,Calendar:K1,Calendar1:n0,Calendar1Icon:n0,CalendarArrowDown:o0,CalendarArrowDownIcon:o0,CalendarArrowUp:c0,CalendarArrowUpIcon:c0,CalendarCheck:r0,CalendarCheck2:i0,CalendarCheck2Icon:i0,CalendarCheckIcon:r0,CalendarClock:s0,CalendarClockIcon:s0,CalendarCog:d0,CalendarCogIcon:d0,CalendarDays:l0,CalendarDaysIcon:l0,CalendarFold:h0,CalendarFoldIcon:h0,CalendarHeart:u0,CalendarHeartIcon:u0,CalendarIcon:K1,CalendarMinus:y0,CalendarMinus2:p0,CalendarMinus2Icon:p0,CalendarMinusIcon:y0,CalendarOff:k0,CalendarOffIcon:k0,CalendarPlus:f0,CalendarPlus2:m0,CalendarPlus2Icon:m0,CalendarPlusIcon:f0,CalendarRange:g0,CalendarRangeIcon:g0,CalendarSearch:v0,CalendarSearchIcon:v0,CalendarSync:x0,CalendarSyncIcon:x0,CalendarX:M0,CalendarX2:_0,CalendarX2Icon:_0,CalendarXIcon:M0,Camera:b0,CameraIcon:b0,CameraOff:L0,CameraOffIcon:L0,CandlestickChart:Ca,CandlestickChartIcon:Ca,Candy:C0,CandyCane:I0,CandyCaneIcon:I0,CandyIcon:C0,CandyOff:w0,CandyOffIcon:w0,Cannabis:j0,CannabisIcon:j0,Captions:La,CaptionsIcon:La,CaptionsOff:N0,CaptionsOffIcon:N0,Car:q0,CarFront:S0,CarFrontIcon:S0,CarIcon:q0,CarTaxiFront:$0,CarTaxiFrontIcon:$0,Caravan:A0,CaravanIcon:A0,CardSim:z0,CardSimIcon:z0,Carrot:P0,CarrotIcon:P0,CaseLower:V0,CaseLowerIcon:V0,CaseSensitive:T0,CaseSensitiveIcon:T0,CaseUpper:D0,CaseUpperIcon:D0,CassetteTape:H0,CassetteTapeIcon:H0,Cast:B0,CastIcon:B0,Castle:F0,CastleIcon:F0,Cat:R0,CatIcon:R0,Cctv:E0,CctvIcon:E0,ChartArea:ba,ChartAreaIcon:ba,ChartBar:wa,ChartBarBig:Ia,ChartBarBigIcon:Ia,ChartBarDecreasing:O0,ChartBarDecreasingIcon:O0,ChartBarIcon:wa,ChartBarIncreasing:U0,ChartBarIncreasingIcon:U0,ChartBarStacked:W0,ChartBarStackedIcon:W0,ChartCandlestick:Ca,ChartCandlestickIcon:Ca,ChartColumn:Sa,ChartColumnBig:ja,ChartColumnBigIcon:ja,ChartColumnDecreasing:G0,ChartColumnDecreasingIcon:G0,ChartColumnIcon:Sa,ChartColumnIncreasing:Na,ChartColumnIncreasingIcon:Na,ChartColumnStacked:K0,ChartColumnStackedIcon:K0,ChartGantt:Z0,ChartGanttIcon:Z0,ChartLine:$a,ChartLineIcon:$a,ChartNetwork:X0,ChartNetworkIcon:X0,ChartNoAxesColumn:Aa,ChartNoAxesColumnDecreasing:Y0,ChartNoAxesColumnDecreasingIcon:Y0,ChartNoAxesColumnIcon:Aa,ChartNoAxesColumnIncreasing:qa,ChartNoAxesColumnIncreasingIcon:qa,ChartNoAxesCombined:J0,ChartNoAxesCombinedIcon:J0,ChartNoAxesGantt:za,ChartNoAxesGanttIcon:za,ChartPie:Pa,ChartPieIcon:Pa,ChartScatter:Va,ChartScatterIcon:Va,ChartSpline:Q0,ChartSplineIcon:Q0,Check:Z1,CheckCheck:el,CheckCheckIcon:el,CheckCircle:Wa,CheckCircle2:Ga,CheckCircle2Icon:Ga,CheckCircleIcon:Wa,CheckIcon:Z1,CheckLine:tl,CheckLineIcon:tl,CheckSquare:Oo,CheckSquare2:Uo,CheckSquare2Icon:Uo,CheckSquareIcon:Oo,ChefHat:al,ChefHatIcon:al,Cherry:nl,CherryIcon:nl,ChevronDown:Yt,ChevronDownCircle:Ka,ChevronDownCircleIcon:Ka,ChevronDownIcon:Yt,ChevronDownSquare:Wo,ChevronDownSquareIcon:Wo,ChevronFirst:ol,ChevronFirstIcon:ol,ChevronLast:cl,ChevronLastIcon:cl,ChevronLeft:il,ChevronLeftCircle:Za,ChevronLeftCircleIcon:Za,ChevronLeftIcon:il,ChevronLeftSquare:Go,ChevronLeftSquareIcon:Go,ChevronRight:X1,ChevronRightCircle:Xa,ChevronRightCircleIcon:Xa,ChevronRightIcon:X1,ChevronRightSquare:Ko,ChevronRightSquareIcon:Ko,ChevronUp:Xc,ChevronUpCircle:Ya,ChevronUpCircleIcon:Ya,ChevronUpIcon:Xc,ChevronUpSquare:Zo,ChevronUpSquareIcon:Zo,ChevronsDown:sl,ChevronsDownIcon:sl,ChevronsDownUp:rl,ChevronsDownUpIcon:rl,ChevronsLeft:ll,ChevronsLeftIcon:ll,ChevronsLeftRight:dl,ChevronsLeftRightEllipsis:hl,ChevronsLeftRightEllipsisIcon:hl,ChevronsLeftRightIcon:dl,ChevronsRight:pl,ChevronsRightIcon:pl,ChevronsRightLeft:ul,ChevronsRightLeftIcon:ul,ChevronsUp:yl,ChevronsUpDown:b1,ChevronsUpDownIcon:b1,ChevronsUpIcon:yl,Chrome:kl,ChromeIcon:kl,Church:ml,ChurchIcon:ml,Cigarette:gl,CigaretteIcon:gl,CigaretteOff:fl,CigaretteOffIcon:fl,Circle:ql,CircleAlert:Ta,CircleAlertIcon:Ta,CircleArrowDown:Da,CircleArrowDownIcon:Da,CircleArrowLeft:Ha,CircleArrowLeftIcon:Ha,CircleArrowOutDownLeft:Ba,CircleArrowOutDownLeftIcon:Ba,CircleArrowOutDownRight:Ra,CircleArrowOutDownRightIcon:Ra,CircleArrowOutUpLeft:Fa,CircleArrowOutUpLeftIcon:Fa,CircleArrowOutUpRight:Ea,CircleArrowOutUpRightIcon:Ea,CircleArrowRight:Oa,CircleArrowRightIcon:Oa,CircleArrowUp:Ua,CircleArrowUpIcon:Ua,CircleCheck:Ga,CircleCheckBig:Wa,CircleCheckBigIcon:Wa,CircleCheckIcon:Ga,CircleChevronDown:Ka,CircleChevronDownIcon:Ka,CircleChevronLeft:Za,CircleChevronLeftIcon:Za,CircleChevronRight:Xa,CircleChevronRightIcon:Xa,CircleChevronUp:Ya,CircleChevronUpIcon:Ya,CircleDashed:vl,CircleDashedIcon:vl,CircleDivide:Ja,CircleDivideIcon:Ja,CircleDollarSign:_l,CircleDollarSignIcon:_l,CircleDot:Ml,CircleDotDashed:xl,CircleDotDashedIcon:xl,CircleDotIcon:Ml,CircleEllipsis:Ll,CircleEllipsisIcon:Ll,CircleEqual:bl,CircleEqualIcon:bl,CircleFadingArrowUp:wl,CircleFadingArrowUpIcon:wl,CircleFadingPlus:Il,CircleFadingPlusIcon:Il,CircleGauge:Qa,CircleGaugeIcon:Qa,CircleHelp:_t,CircleHelpIcon:_t,CircleIcon:ql,CircleMinus:en,CircleMinusIcon:en,CircleOff:Cl,CircleOffIcon:Cl,CircleParking:nn,CircleParkingIcon:nn,CircleParkingOff:tn,CircleParkingOffIcon:tn,CirclePause:an,CirclePauseIcon:an,CirclePercent:on,CirclePercentIcon:on,CirclePlay:cn,CirclePlayIcon:cn,CirclePlus:rn,CirclePlusIcon:rn,CirclePoundSterling:jl,CirclePoundSterlingIcon:jl,CirclePower:sn,CirclePowerIcon:sn,CircleQuestionMark:_t,CircleQuestionMarkIcon:_t,CircleSlash:Nl,CircleSlash2:dn,CircleSlash2Icon:dn,CircleSlashIcon:Nl,CircleSlashed:dn,CircleSlashedIcon:dn,CircleSmall:Sl,CircleSmallIcon:Sl,CircleStar:$l,CircleStarIcon:$l,CircleStop:ln,CircleStopIcon:ln,CircleUser:un,CircleUserIcon:un,CircleUserRound:hn,CircleUserRoundIcon:hn,CircleX:Ut,CircleXIcon:Ut,CircuitBoard:Al,CircuitBoardIcon:Al,Citrus:zl,CitrusIcon:zl,Clapperboard:Pl,ClapperboardIcon:Pl,Clipboard:Ul,ClipboardCheck:Vl,ClipboardCheckIcon:Vl,ClipboardClock:Tl,ClipboardClockIcon:Tl,ClipboardCopy:Dl,ClipboardCopyIcon:Dl,ClipboardEdit:yn,ClipboardEditIcon:yn,ClipboardIcon:Ul,ClipboardList:Hl,ClipboardListIcon:Hl,ClipboardMinus:Bl,ClipboardMinusIcon:Bl,ClipboardPaste:Rl,ClipboardPasteIcon:Rl,ClipboardPen:yn,ClipboardPenIcon:yn,ClipboardPenLine:pn,ClipboardPenLineIcon:pn,ClipboardPlus:Fl,ClipboardPlusIcon:Fl,ClipboardSignature:pn,ClipboardSignatureIcon:pn,ClipboardType:El,ClipboardTypeIcon:El,ClipboardX:Ol,ClipboardXIcon:Ol,Clock:sh,Clock1:Gl,Clock10:Wl,Clock10Icon:Wl,Clock11:Kl,Clock11Icon:Kl,Clock12:Zl,Clock12Icon:Zl,Clock1Icon:Gl,Clock2:Xl,Clock2Icon:Xl,Clock3:Y1,Clock3Icon:Y1,Clock4:Yl,Clock4Icon:Yl,Clock5:Jl,Clock5Icon:Jl,Clock6:Ql,Clock6Icon:Ql,Clock7:eh,Clock7Icon:eh,Clock8:th,Clock8Icon:th,Clock9:ah,Clock9Icon:ah,ClockAlert:nh,ClockAlertIcon:nh,ClockArrowDown:oh,ClockArrowDownIcon:oh,ClockArrowUp:ch,ClockArrowUpIcon:ch,ClockFading:ih,ClockFadingIcon:ih,ClockIcon:sh,ClockPlus:rh,ClockPlusIcon:rh,ClosedCaption:dh,ClosedCaptionIcon:dh,Cloud:Ih,CloudAlert:lh,CloudAlertIcon:lh,CloudCheck:hh,CloudCheckIcon:hh,CloudCog:uh,CloudCogIcon:uh,CloudDownload:kn,CloudDownloadIcon:kn,CloudDrizzle:ph,CloudDrizzleIcon:ph,CloudFog:yh,CloudFogIcon:yh,CloudHail:kh,CloudHailIcon:kh,CloudIcon:Ih,CloudLightning:mh,CloudLightningIcon:mh,CloudMoon:gh,CloudMoonIcon:gh,CloudMoonRain:fh,CloudMoonRainIcon:fh,CloudOff:vh,CloudOffIcon:vh,CloudRain:_h,CloudRainIcon:_h,CloudRainWind:xh,CloudRainWindIcon:xh,CloudSnow:Mh,CloudSnowIcon:Mh,CloudSun:bh,CloudSunIcon:bh,CloudSunRain:Lh,CloudSunRainIcon:Lh,CloudUpload:mn,CloudUploadIcon:mn,Cloudy:wh,CloudyIcon:wh,Clover:Ch,CloverIcon:Ch,Club:jh,ClubIcon:jh,Code:Nh,Code2:fn,Code2Icon:fn,CodeIcon:Nh,CodeSquare:Xo,CodeSquareIcon:Xo,CodeXml:fn,CodeXmlIcon:fn,Codepen:Sh,CodepenIcon:Sh,Codesandbox:$h,CodesandboxIcon:$h,Coffee:qh,CoffeeIcon:qh,Cog:Ah,CogIcon:Ah,Coins:zh,CoinsIcon:zh,Columns:gn,Columns2:gn,Columns2Icon:gn,Columns3:vn,Columns3Cog:Mt,Columns3CogIcon:Mt,Columns3Icon:vn,Columns4:Ph,Columns4Icon:Ph,ColumnsIcon:gn,ColumnsSettings:Mt,ColumnsSettingsIcon:Mt,Combine:Vh,CombineIcon:Vh,Command:Th,CommandIcon:Th,Compass:Dh,CompassIcon:Dh,Component:Hh,ComponentIcon:Hh,Computer:Bh,ComputerIcon:Bh,ConciergeBell:Rh,ConciergeBellIcon:Rh,Cone:Fh,ConeIcon:Fh,Construction:Eh,ConstructionIcon:Eh,Contact:Oh,Contact2:xn,Contact2Icon:xn,ContactIcon:Oh,ContactRound:xn,ContactRoundIcon:xn,Container:Uh,ContainerIcon:Uh,Contrast:Gh,ContrastIcon:Gh,Cookie:Wh,CookieIcon:Wh,CookingPot:Zh,CookingPotIcon:Zh,Copy:eu,CopyCheck:Kh,CopyCheckIcon:Kh,CopyIcon:eu,CopyMinus:Xh,CopyMinusIcon:Xh,CopyPlus:Yh,CopyPlusIcon:Yh,CopySlash:Jh,CopySlashIcon:Jh,CopyX:Qh,CopyXIcon:Qh,Copyleft:tu,CopyleftIcon:tu,Copyright:au,CopyrightIcon:au,CornerDownLeft:nu,CornerDownLeftIcon:nu,CornerDownRight:ou,CornerDownRightIcon:ou,CornerLeftDown:cu,CornerLeftDownIcon:cu,CornerLeftUp:iu,CornerLeftUpIcon:iu,CornerRightDown:ru,CornerRightDownIcon:ru,CornerRightUp:su,CornerRightUpIcon:su,CornerUpLeft:du,CornerUpLeftIcon:du,CornerUpRight:lu,CornerUpRightIcon:lu,Cpu:hu,CpuIcon:hu,CreativeCommons:uu,CreativeCommonsIcon:uu,CreditCard:pu,CreditCardIcon:pu,Croissant:yu,CroissantIcon:yu,Crop:ku,CropIcon:ku,Cross:mu,CrossIcon:mu,Crosshair:fu,CrosshairIcon:fu,Crown:gu,CrownIcon:gu,Cuboid:vu,CuboidIcon:vu,CupSoda:xu,CupSodaIcon:xu,CurlyBraces:Ma,CurlyBracesIcon:Ma,Currency:_u,CurrencyIcon:_u,Cylinder:Mu,CylinderIcon:Mu,Dam:Lu,DamIcon:Lu,Database:wu,DatabaseBackup:bu,DatabaseBackupIcon:bu,DatabaseIcon:wu,DatabaseZap:Iu,DatabaseZapIcon:Iu,DecimalsArrowLeft:Cu,DecimalsArrowLeftIcon:Cu,DecimalsArrowRight:ju,DecimalsArrowRightIcon:ju,Delete:Nu,DeleteIcon:Nu,Dessert:Su,DessertIcon:Su,Diameter:$u,DiameterIcon:$u,Diamond:zu,DiamondIcon:zu,DiamondMinus:qu,DiamondMinusIcon:qu,DiamondPercent:_n,DiamondPercentIcon:_n,DiamondPlus:Au,DiamondPlusIcon:Au,Dice1:Pu,Dice1Icon:Pu,Dice2:Vu,Dice2Icon:Vu,Dice3:Tu,Dice3Icon:Tu,Dice4:Du,Dice4Icon:Du,Dice5:Hu,Dice5Icon:Hu,Dice6:Bu,Dice6Icon:Bu,Dices:Ru,DicesIcon:Ru,Diff:Fu,DiffIcon:Fu,Disc:Wu,Disc2:Eu,Disc2Icon:Eu,Disc3:Ou,Disc3Icon:Ou,DiscAlbum:Uu,DiscAlbumIcon:Uu,DiscIcon:Wu,Divide:Gu,DivideCircle:Ja,DivideCircleIcon:Ja,DivideIcon:Gu,DivideSquare:ec,DivideSquareIcon:ec,Dna:Zu,DnaIcon:Zu,DnaOff:Ku,DnaOffIcon:Ku,Dock:Xu,DockIcon:Xu,Dog:Yu,DogIcon:Yu,DollarSign:Ju,DollarSignIcon:Ju,Donut:Qu,DonutIcon:Qu,DoorClosed:tp,DoorClosedIcon:tp,DoorClosedLocked:ep,DoorClosedLockedIcon:ep,DoorOpen:ap,DoorOpenIcon:ap,Dot:np,DotIcon:np,DotSquare:ac,DotSquareIcon:ac,Download:cp,DownloadCloud:kn,DownloadCloudIcon:kn,DownloadIcon:cp,DraftingCompass:op,DraftingCompassIcon:op,Drama:ip,DramaIcon:ip,Dribbble:rp,DribbbleIcon:rp,Drill:sp,DrillIcon:sp,Drone:dp,DroneIcon:dp,Droplet:hp,DropletIcon:hp,DropletOff:lp,DropletOffIcon:lp,Droplets:up,DropletsIcon:up,Drum:pp,DrumIcon:pp,Drumstick:yp,DrumstickIcon:yp,Dumbbell:kp,DumbbellIcon:kp,Ear:fp,EarIcon:fp,EarOff:mp,EarOffIcon:mp,Earth:Mn,EarthIcon:Mn,EarthLock:gp,EarthLockIcon:gp,Eclipse:vp,EclipseIcon:vp,Edit:at,Edit2:$t,Edit2Icon:$t,Edit3:St,Edit3Icon:St,EditIcon:at,Egg:Mp,EggFried:xp,EggFriedIcon:xp,EggIcon:Mp,EggOff:_p,EggOffIcon:_p,Ellipsis:bn,EllipsisIcon:bn,EllipsisVertical:Ln,EllipsisVerticalIcon:Ln,Equal:Ip,EqualApproximately:Lp,EqualApproximatelyIcon:Lp,EqualIcon:Ip,EqualNot:bp,EqualNotIcon:bp,EqualSquare:tc,EqualSquareIcon:tc,Eraser:wp,EraserIcon:wp,EthernetPort:Cp,EthernetPortIcon:Cp,Euro:jp,EuroIcon:jp,Expand:Sp,ExpandIcon:Sp,ExternalLink:Np,ExternalLinkIcon:Np,Eye:Q1,EyeClosed:$p,EyeClosedIcon:$p,EyeIcon:Q1,EyeOff:J1,EyeOffIcon:J1,Facebook:qp,FacebookIcon:qp,Factory:Ap,FactoryIcon:Ap,Fan:zp,FanIcon:zp,FastForward:Pp,FastForwardIcon:Pp,Feather:Vp,FeatherIcon:Vp,Fence:Tp,FenceIcon:Tp,FerrisWheel:Dp,FerrisWheelIcon:Dp,Figma:Hp,FigmaIcon:Hp,File:Ay,FileArchive:Bp,FileArchiveIcon:Bp,FileAudio:Fp,FileAudio2:Rp,FileAudio2Icon:Rp,FileAudioIcon:Fp,FileAxis3D:In,FileAxis3DIcon:In,FileAxis3d:In,FileAxis3dIcon:In,FileBadge:Up,FileBadge2:Ep,FileBadge2Icon:Ep,FileBadgeIcon:Up,FileBarChart:wn,FileBarChart2:Cn,FileBarChart2Icon:Cn,FileBarChartIcon:wn,FileBox:Op,FileBoxIcon:Op,FileChartColumn:Cn,FileChartColumnIcon:Cn,FileChartColumnIncreasing:wn,FileChartColumnIncreasingIcon:wn,FileChartLine:jn,FileChartLineIcon:jn,FileChartPie:Nn,FileChartPieIcon:Nn,FileCheck:Gp,FileCheck2:Wp,FileCheck2Icon:Wp,FileCheckIcon:Gp,FileClock:Kp,FileClockIcon:Kp,FileCode:Zp,FileCode2:Xp,FileCode2Icon:Xp,FileCodeIcon:Zp,FileCog:Sn,FileCog2:Sn,FileCog2Icon:Sn,FileCogIcon:Sn,FileDiff:Yp,FileDiffIcon:Yp,FileDigit:Jp,FileDigitIcon:Jp,FileDown:Qp,FileDownIcon:Qp,FileEdit:qn,FileEditIcon:qn,FileHeart:ey,FileHeartIcon:ey,FileIcon:Ay,FileImage:ty,FileImageIcon:ty,FileInput:ay,FileInputIcon:ay,FileJson:oy,FileJson2:ny,FileJson2Icon:ny,FileJsonIcon:oy,FileKey:iy,FileKey2:cy,FileKey2Icon:cy,FileKeyIcon:iy,FileLineChart:jn,FileLineChartIcon:jn,FileLock:sy,FileLock2:ry,FileLock2Icon:ry,FileLockIcon:sy,FileMinus:ly,FileMinus2:dy,FileMinus2Icon:dy,FileMinusIcon:ly,FileMusic:hy,FileMusicIcon:hy,FileOutput:uy,FileOutputIcon:uy,FilePen:qn,FilePenIcon:qn,FilePenLine:$n,FilePenLineIcon:$n,FilePieChart:Nn,FilePieChartIcon:Nn,FilePlay:An,FilePlayIcon:An,FilePlus:yy,FilePlus2:py,FilePlus2Icon:py,FilePlusIcon:yy,FileQuestion:zn,FileQuestionIcon:zn,FileQuestionMark:zn,FileQuestionMarkIcon:zn,FileScan:ky,FileScanIcon:ky,FileSearch:fy,FileSearch2:my,FileSearch2Icon:my,FileSearchIcon:fy,FileSignature:$n,FileSignatureIcon:$n,FileSliders:gy,FileSlidersIcon:gy,FileSpreadsheet:vy,FileSpreadsheetIcon:vy,FileStack:xy,FileStackIcon:xy,FileSymlink:_y,FileSymlinkIcon:_y,FileTerminal:My,FileTerminalIcon:My,FileText:Ly,FileTextIcon:Ly,FileType:Iy,FileType2:by,FileType2Icon:by,FileTypeIcon:Iy,FileUp:wy,FileUpIcon:wy,FileUser:Cy,FileUserIcon:Cy,FileVideo:An,FileVideo2:Pn,FileVideo2Icon:Pn,FileVideoCamera:Pn,FileVideoCameraIcon:Pn,FileVideoIcon:An,FileVolume:Ny,FileVolume2:jy,FileVolume2Icon:jy,FileVolumeIcon:Ny,FileWarning:Sy,FileWarningIcon:Sy,FileX:qy,FileX2:$y,FileX2Icon:$y,FileXIcon:qy,Files:zy,FilesIcon:zy,Film:Py,FilmIcon:Py,Filter:Wt,FilterIcon:Wt,FilterX:Dn,FilterXIcon:Dn,Fingerprint:Vy,FingerprintIcon:Vy,FireExtinguisher:Ty,FireExtinguisherIcon:Ty,Fish:Hy,FishIcon:Hy,FishOff:Dy,FishOffIcon:Dy,FishSymbol:By,FishSymbolIcon:By,Flag:Oy,FlagIcon:Oy,FlagOff:Ry,FlagOffIcon:Ry,FlagTriangleLeft:Fy,FlagTriangleLeftIcon:Fy,FlagTriangleRight:Ey,FlagTriangleRightIcon:Ey,Flame:Wy,FlameIcon:Wy,FlameKindling:Uy,FlameKindlingIcon:Uy,Flashlight:Ky,FlashlightIcon:Ky,FlashlightOff:Gy,FlashlightOffIcon:Gy,FlaskConical:Xy,FlaskConicalIcon:Xy,FlaskConicalOff:Zy,FlaskConicalOffIcon:Zy,FlaskRound:Yy,FlaskRoundIcon:Yy,FlipHorizontal:Qy,FlipHorizontal2:Jy,FlipHorizontal2Icon:Jy,FlipHorizontalIcon:Qy,FlipVertical:t4,FlipVertical2:e4,FlipVertical2Icon:e4,FlipVerticalIcon:t4,Flower:n4,Flower2:a4,Flower2Icon:a4,FlowerIcon:n4,Focus:o4,FocusIcon:o4,FoldHorizontal:c4,FoldHorizontalIcon:c4,FoldVertical:i4,FoldVerticalIcon:i4,Folder:ei,FolderArchive:r4,FolderArchiveIcon:r4,FolderCheck:s4,FolderCheckIcon:s4,FolderClock:d4,FolderClockIcon:d4,FolderClosed:l4,FolderClosedIcon:l4,FolderCode:h4,FolderCodeIcon:h4,FolderCog:Vn,FolderCog2:Vn,FolderCog2Icon:Vn,FolderCogIcon:Vn,FolderDot:u4,FolderDotIcon:u4,FolderDown:p4,FolderDownIcon:p4,FolderEdit:Tn,FolderEditIcon:Tn,FolderGit:k4,FolderGit2:y4,FolderGit2Icon:y4,FolderGitIcon:k4,FolderHeart:m4,FolderHeartIcon:m4,FolderIcon:ei,FolderInput:f4,FolderInputIcon:f4,FolderKanban:g4,FolderKanbanIcon:g4,FolderKey:v4,FolderKeyIcon:v4,FolderLock:x4,FolderLockIcon:x4,FolderMinus:_4,FolderMinusIcon:_4,FolderOpen:L4,FolderOpenDot:M4,FolderOpenDotIcon:M4,FolderOpenIcon:L4,FolderOutput:b4,FolderOutputIcon:b4,FolderPen:Tn,FolderPenIcon:Tn,FolderPlus:Yc,FolderPlusIcon:Yc,FolderRoot:I4,FolderRootIcon:I4,FolderSearch:C4,FolderSearch2:w4,FolderSearch2Icon:w4,FolderSearchIcon:C4,FolderSymlink:j4,FolderSymlinkIcon:j4,FolderSync:N4,FolderSyncIcon:N4,FolderTree:S4,FolderTreeIcon:S4,FolderUp:$4,FolderUpIcon:$4,FolderX:q4,FolderXIcon:q4,Folders:A4,FoldersIcon:A4,Footprints:z4,FootprintsIcon:z4,ForkKnife:Fc,ForkKnifeCrossed:Rc,ForkKnifeCrossedIcon:Rc,ForkKnifeIcon:Fc,Forklift:P4,ForkliftIcon:P4,FormInput:xo,FormInputIcon:xo,Forward:V4,ForwardIcon:V4,Frame:T4,FrameIcon:T4,Framer:D4,FramerIcon:D4,Frown:H4,FrownIcon:H4,Fuel:B4,FuelIcon:B4,Fullscreen:R4,FullscreenIcon:R4,FunctionSquare:nc,FunctionSquareIcon:nc,Funnel:Wt,FunnelIcon:Wt,FunnelPlus:F4,FunnelPlusIcon:F4,FunnelX:Dn,FunnelXIcon:Dn,GalleryHorizontal:O4,GalleryHorizontalEnd:E4,GalleryHorizontalEndIcon:E4,GalleryHorizontalIcon:O4,GalleryThumbnails:U4,GalleryThumbnailsIcon:U4,GalleryVertical:G4,GalleryVerticalEnd:W4,GalleryVerticalEndIcon:W4,GalleryVerticalIcon:G4,Gamepad:Z4,Gamepad2:K4,Gamepad2Icon:K4,GamepadIcon:Z4,GanttChart:za,GanttChartIcon:za,GanttChartSquare:bt,GanttChartSquareIcon:bt,Gauge:X4,GaugeCircle:Qa,GaugeCircleIcon:Qa,GaugeIcon:X4,Gavel:Y4,GavelIcon:Y4,Gem:J4,GemIcon:J4,GeorgianLari:Q4,GeorgianLariIcon:Q4,Ghost:e5,GhostIcon:e5,Gift:t5,GiftIcon:t5,GitBranch:n5,GitBranchIcon:n5,GitBranchPlus:a5,GitBranchPlusIcon:a5,GitCommit:Hn,GitCommitHorizontal:Hn,GitCommitHorizontalIcon:Hn,GitCommitIcon:Hn,GitCommitVertical:o5,GitCommitVerticalIcon:o5,GitCompare:i5,GitCompareArrows:c5,GitCompareArrowsIcon:c5,GitCompareIcon:i5,GitFork:r5,GitForkIcon:r5,GitGraph:s5,GitGraphIcon:s5,GitMerge:d5,GitMergeIcon:d5,GitPullRequest:k5,GitPullRequestArrow:l5,GitPullRequestArrowIcon:l5,GitPullRequestClosed:h5,GitPullRequestClosedIcon:h5,GitPullRequestCreate:p5,GitPullRequestCreateArrow:u5,GitPullRequestCreateArrowIcon:u5,GitPullRequestCreateIcon:p5,GitPullRequestDraft:y5,GitPullRequestDraftIcon:y5,GitPullRequestIcon:k5,Github:m5,GithubIcon:m5,Gitlab:f5,GitlabIcon:f5,GlassWater:g5,GlassWaterIcon:g5,Glasses:v5,GlassesIcon:v5,Globe:_5,Globe2:Mn,Globe2Icon:Mn,GlobeIcon:_5,GlobeLock:x5,GlobeLockIcon:x5,Goal:M5,GoalIcon:M5,Gpu:L5,GpuIcon:L5,Grab:On,GrabIcon:On,GraduationCap:b5,GraduationCapIcon:b5,Grape:I5,GrapeIcon:I5,Grid:Lt,Grid2X2:En,Grid2X2Check:Bn,Grid2X2CheckIcon:Bn,Grid2X2Icon:En,Grid2X2Plus:Rn,Grid2X2PlusIcon:Rn,Grid2X2X:Fn,Grid2X2XIcon:Fn,Grid2x2:En,Grid2x2Check:Bn,Grid2x2CheckIcon:Bn,Grid2x2Icon:En,Grid2x2Plus:Rn,Grid2x2PlusIcon:Rn,Grid2x2X:Fn,Grid2x2XIcon:Fn,Grid3X3:Lt,Grid3X3Icon:Lt,Grid3x2:w5,Grid3x2Icon:w5,Grid3x3:Lt,Grid3x3Icon:Lt,GridIcon:Lt,Grip:j5,GripHorizontal:C5,GripHorizontalIcon:C5,GripIcon:j5,GripVertical:ti,GripVerticalIcon:ti,Group:N5,GroupIcon:N5,Guitar:S5,GuitarIcon:S5,Ham:$5,HamIcon:$5,Hamburger:q5,HamburgerIcon:q5,Hammer:A5,HammerIcon:A5,Hand:H5,HandCoins:z5,HandCoinsIcon:z5,HandFist:P5,HandFistIcon:P5,HandGrab:On,HandGrabIcon:On,HandHeart:V5,HandHeartIcon:V5,HandHelping:Un,HandHelpingIcon:Un,HandIcon:H5,HandMetal:T5,HandMetalIcon:T5,HandPlatter:D5,HandPlatterIcon:D5,Handbag:B5,HandbagIcon:B5,Handshake:R5,HandshakeIcon:R5,HardDrive:O5,HardDriveDownload:F5,HardDriveDownloadIcon:F5,HardDriveIcon:O5,HardDriveUpload:E5,HardDriveUploadIcon:E5,HardHat:U5,HardHatIcon:U5,Hash:W5,HashIcon:W5,HatGlasses:G5,HatGlassesIcon:G5,Haze:K5,HazeIcon:K5,HdmiPort:Z5,HdmiPortIcon:Z5,Heading:ak,Heading1:X5,Heading1Icon:X5,Heading2:Y5,Heading2Icon:Y5,Heading3:J5,Heading3Icon:J5,Heading4:Q5,Heading4Icon:Q5,Heading5:ek,Heading5Icon:ek,Heading6:tk,Heading6Icon:tk,HeadingIcon:ak,HeadphoneOff:nk,HeadphoneOffIcon:nk,Headphones:ok,HeadphonesIcon:ok,Headset:ck,HeadsetIcon:ck,Heart:uk,HeartCrack:ik,HeartCrackIcon:ik,HeartHandshake:rk,HeartHandshakeIcon:rk,HeartIcon:uk,HeartMinus:sk,HeartMinusIcon:sk,HeartOff:dk,HeartOffIcon:dk,HeartPlus:lk,HeartPlusIcon:lk,HeartPulse:hk,HeartPulseIcon:hk,Heater:pk,HeaterIcon:pk,HelpCircle:_t,HelpCircleIcon:_t,HelpingHand:Un,HelpingHandIcon:Un,Hexagon:yk,HexagonIcon:yk,Highlighter:kk,HighlighterIcon:kk,History:mk,HistoryIcon:mk,Home:Gt,HomeIcon:Gt,Hop:gk,HopIcon:gk,HopOff:fk,HopOffIcon:fk,Hospital:ai,HospitalIcon:ai,Hotel:vk,HotelIcon:vk,Hourglass:xk,HourglassIcon:xk,House:Gt,HouseIcon:Gt,HousePlug:_k,HousePlugIcon:_k,HousePlus:Lk,HousePlusIcon:Lk,HouseWifi:Mk,HouseWifiIcon:Mk,IceCream:Gn,IceCream2:Wn,IceCream2Icon:Wn,IceCreamBowl:Wn,IceCreamBowlIcon:Wn,IceCreamCone:Gn,IceCreamConeIcon:Gn,IceCreamIcon:Gn,Icon:a.Icon,IdCard:Ik,IdCardIcon:Ik,IdCardLanyard:bk,IdCardLanyardIcon:bk,Image:Ak,ImageDown:wk,ImageDownIcon:wk,ImageIcon:Ak,ImageMinus:Ck,ImageMinusIcon:Ck,ImageOff:jk,ImageOffIcon:jk,ImagePlay:Nk,ImagePlayIcon:Nk,ImagePlus:Sk,ImagePlusIcon:Sk,ImageUp:$k,ImageUpIcon:$k,ImageUpscale:qk,ImageUpscaleIcon:qk,Images:zk,ImagesIcon:zk,Import:Pk,ImportIcon:Pk,Inbox:Vk,InboxIcon:Vk,Indent:Zn,IndentDecrease:Kn,IndentDecreaseIcon:Kn,IndentIcon:Zn,IndentIncrease:Zn,IndentIncreaseIcon:Zn,IndianRupee:Tk,IndianRupeeIcon:Tk,Infinity:Dk,InfinityIcon:Dk,Info:Hk,InfoIcon:Hk,Inspect:lc,InspectIcon:lc,InspectionPanel:Bk,InspectionPanelIcon:Bk,Instagram:Rk,InstagramIcon:Rk,Italic:Fk,ItalicIcon:Fk,IterationCcw:Ek,IterationCcwIcon:Ek,IterationCw:Ok,IterationCwIcon:Ok,JapaneseYen:Wk,JapaneseYenIcon:Wk,Joystick:Uk,JoystickIcon:Uk,Kanban:Gk,KanbanIcon:Gk,KanbanSquare:oc,KanbanSquareDashed:Yo,KanbanSquareDashedIcon:Yo,KanbanSquareIcon:oc,Kayak:Kk,KayakIcon:Kk,Key:Yk,KeyIcon:Yk,KeyRound:Zk,KeyRoundIcon:Zk,KeySquare:Xk,KeySquareIcon:Xk,Keyboard:em,KeyboardIcon:em,KeyboardMusic:Jk,KeyboardMusicIcon:Jk,KeyboardOff:Qk,KeyboardOffIcon:Qk,Lamp:im,LampCeiling:tm,LampCeilingIcon:tm,LampDesk:nm,LampDeskIcon:nm,LampFloor:am,LampFloorIcon:am,LampIcon:im,LampWallDown:om,LampWallDownIcon:om,LampWallUp:cm,LampWallUpIcon:cm,LandPlot:rm,LandPlotIcon:rm,Landmark:sm,LandmarkIcon:sm,Languages:dm,LanguagesIcon:dm,Laptop:hm,Laptop2:Xn,Laptop2Icon:Xn,LaptopIcon:hm,LaptopMinimal:Xn,LaptopMinimalCheck:lm,LaptopMinimalCheckIcon:lm,LaptopMinimalIcon:Xn,Lasso:pm,LassoIcon:pm,LassoSelect:um,LassoSelectIcon:um,Laugh:ym,LaughIcon:ym,Layers:Yn,Layers2:km,Layers2Icon:km,Layers3:Yn,Layers3Icon:Yn,LayersIcon:Yn,Layout:go,LayoutDashboard:mm,LayoutDashboardIcon:mm,LayoutGrid:fm,LayoutGridIcon:fm,LayoutIcon:go,LayoutList:gm,LayoutListIcon:gm,LayoutPanelLeft:vm,LayoutPanelLeftIcon:vm,LayoutPanelTop:xm,LayoutPanelTopIcon:xm,LayoutTemplate:_m,LayoutTemplateIcon:_m,Leaf:Mm,LeafIcon:Mm,LeafyGreen:bm,LeafyGreenIcon:bm,Lectern:Lm,LecternIcon:Lm,LetterText:Im,LetterTextIcon:Im,Library:Cm,LibraryBig:wm,LibraryBigIcon:wm,LibraryIcon:Cm,LibrarySquare:cc,LibrarySquareIcon:cc,LifeBuoy:jm,LifeBuoyIcon:jm,Ligature:Nm,LigatureIcon:Nm,Lightbulb:$m,LightbulbIcon:$m,LightbulbOff:Sm,LightbulbOffIcon:Sm,LineChart:$a,LineChartIcon:$a,LineSquiggle:qm,LineSquiggleIcon:qm,Link:Pm,Link2:Am,Link2Icon:Am,Link2Off:zm,Link2OffIcon:zm,LinkIcon:Pm,Linkedin:Vm,LinkedinIcon:Vm,List:Qm,ListCheck:Tm,ListCheckIcon:Tm,ListChecks:Dm,ListChecksIcon:Dm,ListCollapse:Hm,ListCollapseIcon:Hm,ListEnd:Bm,ListEndIcon:Bm,ListFilter:Em,ListFilterIcon:Em,ListFilterPlus:Rm,ListFilterPlusIcon:Rm,ListIcon:Qm,ListMinus:Fm,ListMinusIcon:Fm,ListMusic:Om,ListMusicIcon:Om,ListOrdered:Um,ListOrderedIcon:Um,ListPlus:Wm,ListPlusIcon:Wm,ListRestart:Gm,ListRestartIcon:Gm,ListStart:Km,ListStartIcon:Km,ListTodo:Zm,ListTodoIcon:Zm,ListTree:Xm,ListTreeIcon:Xm,ListVideo:Ym,ListVideoIcon:Ym,ListX:Jm,ListXIcon:Jm,Loader:t3,Loader2:Jn,Loader2Icon:Jn,LoaderCircle:Jn,LoaderCircleIcon:Jn,LoaderIcon:t3,LoaderPinwheel:e3,LoaderPinwheelIcon:e3,Locate:o3,LocateFixed:a3,LocateFixedIcon:a3,LocateIcon:o3,LocateOff:n3,LocateOffIcon:n3,LocationEdit:ao,LocationEditIcon:ao,Lock:i3,LockIcon:i3,LockKeyhole:c3,LockKeyholeIcon:c3,LockKeyholeOpen:Qn,LockKeyholeOpenIcon:Qn,LockOpen:eo,LockOpenIcon:eo,LogIn:r3,LogInIcon:r3,LogOut:s3,LogOutIcon:s3,Logs:d3,LogsIcon:d3,Lollipop:l3,LollipopIcon:l3,LucideAArrowDown:Ei,LucideAArrowUp:Oi,LucideALargeSmall:Ui,LucideAccessibility:U1,LucideActivity:W1,LucideActivitySquare:Kt,LucideAirVent:Wi,LucideAirplay:Gi,LucideAlarmCheck:ra,LucideAlarmClock:Zi,LucideAlarmClockCheck:ra,LucideAlarmClockMinus:sa,LucideAlarmClockOff:Ki,LucideAlarmClockPlus:da,LucideAlarmMinus:sa,LucideAlarmPlus:da,LucideAlarmSmoke:Xi,LucideAlbum:Yi,LucideAlertCircle:Ta,LucideAlertOctagon:io,LucideAlertTriangle:$c,LucideAlignCenter:nr,LucideAlignCenterHorizontal:Ji,LucideAlignCenterVertical:Qi,LucideAlignEndHorizontal:er,LucideAlignEndVertical:tr,LucideAlignHorizontalDistributeCenter:ar,LucideAlignHorizontalDistributeEnd:or,LucideAlignHorizontalDistributeStart:cr,LucideAlignHorizontalJustifyCenter:ir,LucideAlignHorizontalJustifyEnd:rr,LucideAlignHorizontalJustifyStart:sr,LucideAlignHorizontalSpaceAround:dr,LucideAlignHorizontalSpaceBetween:hr,LucideAlignJustify:lr,LucideAlignLeft:ur,LucideAlignRight:pr,LucideAlignStartHorizontal:yr,LucideAlignStartVertical:kr,LucideAlignVerticalDistributeCenter:fr,LucideAlignVerticalDistributeEnd:mr,LucideAlignVerticalDistributeStart:vr,LucideAlignVerticalJustifyCenter:gr,LucideAlignVerticalJustifyEnd:xr,LucideAlignVerticalJustifyStart:_r,LucideAlignVerticalSpaceAround:Lr,LucideAlignVerticalSpaceBetween:Mr,LucideAmbulance:br,LucideAmpersand:Ir,LucideAmpersands:wr,LucideAmphora:Cr,LucideAnchor:jr,LucideAngry:Nr,LucideAnnoyed:Sr,LucideAntenna:$r,LucideAnvil:qr,LucideAperture:Ar,LucideAppWindow:Pr,LucideAppWindowMac:zr,LucideApple:Vr,LucideArchive:Hr,LucideArchiveRestore:Tr,LucideArchiveX:Dr,LucideAreaChart:ba,LucideArmchair:Br,LucideArrowBigDown:Fr,LucideArrowBigDownDash:Rr,LucideArrowBigLeft:Or,LucideArrowBigLeftDash:Er,LucideArrowBigRight:Wr,LucideArrowBigRightDash:Ur,LucideArrowBigUp:Kr,LucideArrowBigUpDash:Gr,LucideArrowDown:M1,LucideArrowDown01:Zr,LucideArrowDown10:Xr,LucideArrowDownAZ:la,LucideArrowDownAz:la,LucideArrowDownCircle:Da,LucideArrowDownFromLine:Yr,LucideArrowDownLeft:Jr,LucideArrowDownLeftFromCircle:Ba,LucideArrowDownLeftFromSquare:zo,LucideArrowDownLeftSquare:So,LucideArrowDownNarrowWide:Qr,LucideArrowDownRight:es,LucideArrowDownRightFromCircle:Ra,LucideArrowDownRightFromSquare:Po,LucideArrowDownRightSquare:$o,LucideArrowDownSquare:qo,LucideArrowDownToDot:ts,LucideArrowDownToLine:as,LucideArrowDownUp:ns,LucideArrowDownWideNarrow:ha,LucideArrowDownZA:ua,LucideArrowDownZa:ua,LucideArrowLeft:G1,LucideArrowLeftCircle:Ha,LucideArrowLeftFromLine:os,LucideArrowLeftRight:cs,LucideArrowLeftSquare:Ao,LucideArrowLeftToLine:is,LucideArrowRight:ls,LucideArrowRightCircle:Oa,LucideArrowRightFromLine:rs,LucideArrowRightLeft:ss,LucideArrowRightSquare:Do,LucideArrowRightToLine:ds,LucideArrowUp:L1,LucideArrowUp01:hs,LucideArrowUp10:us,LucideArrowUpAZ:pa,LucideArrowUpAz:pa,LucideArrowUpCircle:Ua,LucideArrowUpDown:ps,LucideArrowUpFromDot:ys,LucideArrowUpFromLine:ks,LucideArrowUpLeft:ms,LucideArrowUpLeftFromCircle:Fa,LucideArrowUpLeftFromSquare:Vo,LucideArrowUpLeftSquare:Ho,LucideArrowUpNarrowWide:ya,LucideArrowUpRight:fs,LucideArrowUpRightFromCircle:Ea,LucideArrowUpRightFromSquare:To,LucideArrowUpRightSquare:Bo,LucideArrowUpSquare:Ro,LucideArrowUpToLine:gs,LucideArrowUpWideNarrow:vs,LucideArrowUpZA:ka,LucideArrowUpZa:ka,LucideArrowsUpFromLine:xs,LucideAsterisk:_s,LucideAsteriskSquare:Fo,LucideAtSign:Ms,LucideAtom:Ls,LucideAudioLines:bs,LucideAudioWaveform:Is,LucideAward:ws,LucideAxe:Cs,LucideAxis3D:ma,LucideAxis3d:ma,LucideBaby:js,LucideBackpack:Ns,LucideBadge:Us,LucideBadgeAlert:Ss,LucideBadgeCent:$s,LucideBadgeCheck:fa,LucideBadgeDollarSign:qs,LucideBadgeEuro:As,LucideBadgeHelp:ga,LucideBadgeIndianRupee:zs,LucideBadgeInfo:Ps,LucideBadgeJapaneseYen:Ts,LucideBadgeMinus:Vs,LucideBadgePercent:Ds,LucideBadgePlus:Hs,LucideBadgePoundSterling:Bs,LucideBadgeQuestionMark:ga,LucideBadgeRussianRuble:Rs,LucideBadgeSwissFranc:Fs,LucideBadgeTurkishLira:Es,LucideBadgeX:Os,LucideBaggageClaim:Ws,LucideBan:Gs,LucideBanana:Ks,LucideBandage:Zs,LucideBanknote:Qs,LucideBanknoteArrowDown:Xs,LucideBanknoteArrowUp:Ys,LucideBanknoteX:Js,LucideBarChart:qa,LucideBarChart2:Aa,LucideBarChart3:Sa,LucideBarChart4:Na,LucideBarChartBig:ja,LucideBarChartHorizontal:wa,LucideBarChartHorizontalBig:Ia,LucideBarcode:e2,LucideBarrel:t2,LucideBaseline:a2,LucideBath:n2,LucideBattery:l2,LucideBatteryCharging:o2,LucideBatteryFull:c2,LucideBatteryLow:i2,LucideBatteryMedium:r2,LucideBatteryPlus:s2,LucideBatteryWarning:d2,LucideBeaker:h2,LucideBean:p2,LucideBeanOff:u2,LucideBed:m2,LucideBedDouble:y2,LucideBedSingle:k2,LucideBeef:f2,LucideBeer:v2,LucideBeerOff:g2,LucideBell:I2,LucideBellDot:x2,LucideBellElectric:_2,LucideBellMinus:M2,LucideBellOff:L2,LucideBellPlus:b2,LucideBellRing:w2,LucideBetweenHorizonalEnd:va,LucideBetweenHorizonalStart:xa,LucideBetweenHorizontalEnd:va,LucideBetweenHorizontalStart:xa,LucideBetweenVerticalEnd:j2,LucideBetweenVerticalStart:C2,LucideBicepsFlexed:N2,LucideBike:$2,LucideBinary:S2,LucideBinoculars:q2,LucideBiohazard:A2,LucideBird:z2,LucideBitcoin:P2,LucideBlend:V2,LucideBlinds:T2,LucideBlocks:D2,LucideBluetooth:F2,LucideBluetoothConnected:H2,LucideBluetoothOff:B2,LucideBluetoothSearching:R2,LucideBold:E2,LucideBolt:O2,LucideBomb:U2,LucideBone:W2,LucideBook:md,LucideBookA:G2,LucideBookAlert:K2,LucideBookAudio:Z2,LucideBookCheck:X2,LucideBookCopy:Y2,LucideBookDashed:_a,LucideBookDown:J2,LucideBookHeadphones:Q2,LucideBookHeart:ed,LucideBookImage:td,LucideBookKey:ad,LucideBookLock:nd,LucideBookMarked:cd,LucideBookMinus:od,LucideBookOpen:sd,LucideBookOpenCheck:id,LucideBookOpenText:rd,LucideBookPlus:dd,LucideBookTemplate:_a,LucideBookText:ld,LucideBookType:hd,LucideBookUp:pd,LucideBookUp2:ud,LucideBookUser:yd,LucideBookX:kd,LucideBookmark:_d,LucideBookmarkCheck:fd,LucideBookmarkMinus:gd,LucideBookmarkPlus:vd,LucideBookmarkX:xd,LucideBoomBox:Md,LucideBot:Id,LucideBotMessageSquare:Ld,LucideBotOff:bd,LucideBottleWine:wd,LucideBowArrow:Cd,LucideBox:jd,LucideBoxSelect:Qo,LucideBoxes:Nd,LucideBraces:Ma,LucideBrackets:Sd,LucideBrain:Ad,LucideBrainCircuit:$d,LucideBrainCog:qd,LucideBrickWall:Vd,LucideBrickWallFire:zd,LucideBrickWallShield:Pd,LucideBriefcase:Bd,LucideBriefcaseBusiness:Td,LucideBriefcaseConveyorBelt:Dd,LucideBriefcaseMedical:Hd,LucideBringToFront:Rd,LucideBrush:Ed,LucideBrushCleaning:Fd,LucideBubbles:Od,LucideBug:Kd,LucideBugOff:Ud,LucideBugPlay:Wd,LucideBuilding:Zd,LucideBuilding2:Gd,LucideBus:Yd,LucideBusFront:Xd,LucideCable:Qd,LucideCableCar:Jd,LucideCake:t0,LucideCakeSlice:e0,LucideCalculator:a0,LucideCalendar:K1,LucideCalendar1:n0,LucideCalendarArrowDown:o0,LucideCalendarArrowUp:c0,LucideCalendarCheck:r0,LucideCalendarCheck2:i0,LucideCalendarClock:s0,LucideCalendarCog:d0,LucideCalendarDays:l0,LucideCalendarFold:h0,LucideCalendarHeart:u0,LucideCalendarMinus:y0,LucideCalendarMinus2:p0,LucideCalendarOff:k0,LucideCalendarPlus:f0,LucideCalendarPlus2:m0,LucideCalendarRange:g0,LucideCalendarSearch:v0,LucideCalendarSync:x0,LucideCalendarX:M0,LucideCalendarX2:_0,LucideCamera:b0,LucideCameraOff:L0,LucideCandlestickChart:Ca,LucideCandy:C0,LucideCandyCane:I0,LucideCandyOff:w0,LucideCannabis:j0,LucideCaptions:La,LucideCaptionsOff:N0,LucideCar:q0,LucideCarFront:S0,LucideCarTaxiFront:$0,LucideCaravan:A0,LucideCardSim:z0,LucideCarrot:P0,LucideCaseLower:V0,LucideCaseSensitive:T0,LucideCaseUpper:D0,LucideCassetteTape:H0,LucideCast:B0,LucideCastle:F0,LucideCat:R0,LucideCctv:E0,LucideChartArea:ba,LucideChartBar:wa,LucideChartBarBig:Ia,LucideChartBarDecreasing:O0,LucideChartBarIncreasing:U0,LucideChartBarStacked:W0,LucideChartCandlestick:Ca,LucideChartColumn:Sa,LucideChartColumnBig:ja,LucideChartColumnDecreasing:G0,LucideChartColumnIncreasing:Na,LucideChartColumnStacked:K0,LucideChartGantt:Z0,LucideChartLine:$a,LucideChartNetwork:X0,LucideChartNoAxesColumn:Aa,LucideChartNoAxesColumnDecreasing:Y0,LucideChartNoAxesColumnIncreasing:qa,LucideChartNoAxesCombined:J0,LucideChartNoAxesGantt:za,LucideChartPie:Pa,LucideChartScatter:Va,LucideChartSpline:Q0,LucideCheck:Z1,LucideCheckCheck:el,LucideCheckCircle:Wa,LucideCheckCircle2:Ga,LucideCheckLine:tl,LucideCheckSquare:Oo,LucideCheckSquare2:Uo,LucideChefHat:al,LucideCherry:nl,LucideChevronDown:Yt,LucideChevronDownCircle:Ka,LucideChevronDownSquare:Wo,LucideChevronFirst:ol,LucideChevronLast:cl,LucideChevronLeft:il,LucideChevronLeftCircle:Za,LucideChevronLeftSquare:Go,LucideChevronRight:X1,LucideChevronRightCircle:Xa,LucideChevronRightSquare:Ko,LucideChevronUp:Xc,LucideChevronUpCircle:Ya,LucideChevronUpSquare:Zo,LucideChevronsDown:sl,LucideChevronsDownUp:rl,LucideChevronsLeft:ll,LucideChevronsLeftRight:dl,LucideChevronsLeftRightEllipsis:hl,LucideChevronsRight:pl,LucideChevronsRightLeft:ul,LucideChevronsUp:yl,LucideChevronsUpDown:b1,LucideChrome:kl,LucideChurch:ml,LucideCigarette:gl,LucideCigaretteOff:fl,LucideCircle:ql,LucideCircleAlert:Ta,LucideCircleArrowDown:Da,LucideCircleArrowLeft:Ha,LucideCircleArrowOutDownLeft:Ba,LucideCircleArrowOutDownRight:Ra,LucideCircleArrowOutUpLeft:Fa,LucideCircleArrowOutUpRight:Ea,LucideCircleArrowRight:Oa,LucideCircleArrowUp:Ua,LucideCircleCheck:Ga,LucideCircleCheckBig:Wa,LucideCircleChevronDown:Ka,LucideCircleChevronLeft:Za,LucideCircleChevronRight:Xa,LucideCircleChevronUp:Ya,LucideCircleDashed:vl,LucideCircleDivide:Ja,LucideCircleDollarSign:_l,LucideCircleDot:Ml,LucideCircleDotDashed:xl,LucideCircleEllipsis:Ll,LucideCircleEqual:bl,LucideCircleFadingArrowUp:wl,LucideCircleFadingPlus:Il,LucideCircleGauge:Qa,LucideCircleHelp:_t,LucideCircleMinus:en,LucideCircleOff:Cl,LucideCircleParking:nn,LucideCircleParkingOff:tn,LucideCirclePause:an,LucideCirclePercent:on,LucideCirclePlay:cn,LucideCirclePlus:rn,LucideCirclePoundSterling:jl,LucideCirclePower:sn,LucideCircleQuestionMark:_t,LucideCircleSlash:Nl,LucideCircleSlash2:dn,LucideCircleSlashed:dn,LucideCircleSmall:Sl,LucideCircleStar:$l,LucideCircleStop:ln,LucideCircleUser:un,LucideCircleUserRound:hn,LucideCircleX:Ut,LucideCircuitBoard:Al,LucideCitrus:zl,LucideClapperboard:Pl,LucideClipboard:Ul,LucideClipboardCheck:Vl,LucideClipboardClock:Tl,LucideClipboardCopy:Dl,LucideClipboardEdit:yn,LucideClipboardList:Hl,LucideClipboardMinus:Bl,LucideClipboardPaste:Rl,LucideClipboardPen:yn,LucideClipboardPenLine:pn,LucideClipboardPlus:Fl,LucideClipboardSignature:pn,LucideClipboardType:El,LucideClipboardX:Ol,LucideClock:sh,LucideClock1:Gl,LucideClock10:Wl,LucideClock11:Kl,LucideClock12:Zl,LucideClock2:Xl,LucideClock3:Y1,LucideClock4:Yl,LucideClock5:Jl,LucideClock6:Ql,LucideClock7:eh,LucideClock8:th,LucideClock9:ah,LucideClockAlert:nh,LucideClockArrowDown:oh,LucideClockArrowUp:ch,LucideClockFading:ih,LucideClockPlus:rh,LucideClosedCaption:dh,LucideCloud:Ih,LucideCloudAlert:lh,LucideCloudCheck:hh,LucideCloudCog:uh,LucideCloudDownload:kn,LucideCloudDrizzle:ph,LucideCloudFog:yh,LucideCloudHail:kh,LucideCloudLightning:mh,LucideCloudMoon:gh,LucideCloudMoonRain:fh,LucideCloudOff:vh,LucideCloudRain:_h,LucideCloudRainWind:xh,LucideCloudSnow:Mh,LucideCloudSun:bh,LucideCloudSunRain:Lh,LucideCloudUpload:mn,LucideCloudy:wh,LucideClover:Ch,LucideClub:jh,LucideCode:Nh,LucideCode2:fn,LucideCodeSquare:Xo,LucideCodeXml:fn,LucideCodepen:Sh,LucideCodesandbox:$h,LucideCoffee:qh,LucideCog:Ah,LucideCoins:zh,LucideColumns:gn,LucideColumns2:gn,LucideColumns3:vn,LucideColumns3Cog:Mt,LucideColumns4:Ph,LucideColumnsSettings:Mt,LucideCombine:Vh,LucideCommand:Th,LucideCompass:Dh,LucideComponent:Hh,LucideComputer:Bh,LucideConciergeBell:Rh,LucideCone:Fh,LucideConstruction:Eh,LucideContact:Oh,LucideContact2:xn,LucideContactRound:xn,LucideContainer:Uh,LucideContrast:Gh,LucideCookie:Wh,LucideCookingPot:Zh,LucideCopy:eu,LucideCopyCheck:Kh,LucideCopyMinus:Xh,LucideCopyPlus:Yh,LucideCopySlash:Jh,LucideCopyX:Qh,LucideCopyleft:tu,LucideCopyright:au,LucideCornerDownLeft:nu,LucideCornerDownRight:ou,LucideCornerLeftDown:cu,LucideCornerLeftUp:iu,LucideCornerRightDown:ru,LucideCornerRightUp:su,LucideCornerUpLeft:du,LucideCornerUpRight:lu,LucideCpu:hu,LucideCreativeCommons:uu,LucideCreditCard:pu,LucideCroissant:yu,LucideCrop:ku,LucideCross:mu,LucideCrosshair:fu,LucideCrown:gu,LucideCuboid:vu,LucideCupSoda:xu,LucideCurlyBraces:Ma,LucideCurrency:_u,LucideCylinder:Mu,LucideDam:Lu,LucideDatabase:wu,LucideDatabaseBackup:bu,LucideDatabaseZap:Iu,LucideDecimalsArrowLeft:Cu,LucideDecimalsArrowRight:ju,LucideDelete:Nu,LucideDessert:Su,LucideDiameter:$u,LucideDiamond:zu,LucideDiamondMinus:qu,LucideDiamondPercent:_n,LucideDiamondPlus:Au,LucideDice1:Pu,LucideDice2:Vu,LucideDice3:Tu,LucideDice4:Du,LucideDice5:Hu,LucideDice6:Bu,LucideDices:Ru,LucideDiff:Fu,LucideDisc:Wu,LucideDisc2:Eu,LucideDisc3:Ou,LucideDiscAlbum:Uu,LucideDivide:Gu,LucideDivideCircle:Ja,LucideDivideSquare:ec,LucideDna:Zu,LucideDnaOff:Ku,LucideDock:Xu,LucideDog:Yu,LucideDollarSign:Ju,LucideDonut:Qu,LucideDoorClosed:tp,LucideDoorClosedLocked:ep,LucideDoorOpen:ap,LucideDot:np,LucideDotSquare:ac,LucideDownload:cp,LucideDownloadCloud:kn,LucideDraftingCompass:op,LucideDrama:ip,LucideDribbble:rp,LucideDrill:sp,LucideDrone:dp,LucideDroplet:hp,LucideDropletOff:lp,LucideDroplets:up,LucideDrum:pp,LucideDrumstick:yp,LucideDumbbell:kp,LucideEar:fp,LucideEarOff:mp,LucideEarth:Mn,LucideEarthLock:gp,LucideEclipse:vp,LucideEdit:at,LucideEdit2:$t,LucideEdit3:St,LucideEgg:Mp,LucideEggFried:xp,LucideEggOff:_p,LucideEllipsis:bn,LucideEllipsisVertical:Ln,LucideEqual:Ip,LucideEqualApproximately:Lp,LucideEqualNot:bp,LucideEqualSquare:tc,LucideEraser:wp,LucideEthernetPort:Cp,LucideEuro:jp,LucideExpand:Sp,LucideExternalLink:Np,LucideEye:Q1,LucideEyeClosed:$p,LucideEyeOff:J1,LucideFacebook:qp,LucideFactory:Ap,LucideFan:zp,LucideFastForward:Pp,LucideFeather:Vp,LucideFence:Tp,LucideFerrisWheel:Dp,LucideFigma:Hp,LucideFile:Ay,LucideFileArchive:Bp,LucideFileAudio:Fp,LucideFileAudio2:Rp,LucideFileAxis3D:In,LucideFileAxis3d:In,LucideFileBadge:Up,LucideFileBadge2:Ep,LucideFileBarChart:wn,LucideFileBarChart2:Cn,LucideFileBox:Op,LucideFileChartColumn:Cn,LucideFileChartColumnIncreasing:wn,LucideFileChartLine:jn,LucideFileChartPie:Nn,LucideFileCheck:Gp,LucideFileCheck2:Wp,LucideFileClock:Kp,LucideFileCode:Zp,LucideFileCode2:Xp,LucideFileCog:Sn,LucideFileCog2:Sn,LucideFileDiff:Yp,LucideFileDigit:Jp,LucideFileDown:Qp,LucideFileEdit:qn,LucideFileHeart:ey,LucideFileImage:ty,LucideFileInput:ay,LucideFileJson:oy,LucideFileJson2:ny,LucideFileKey:iy,LucideFileKey2:cy,LucideFileLineChart:jn,LucideFileLock:sy,LucideFileLock2:ry,LucideFileMinus:ly,LucideFileMinus2:dy,LucideFileMusic:hy,LucideFileOutput:uy,LucideFilePen:qn,LucideFilePenLine:$n,LucideFilePieChart:Nn,LucideFilePlay:An,LucideFilePlus:yy,LucideFilePlus2:py,LucideFileQuestion:zn,LucideFileQuestionMark:zn,LucideFileScan:ky,LucideFileSearch:fy,LucideFileSearch2:my,LucideFileSignature:$n,LucideFileSliders:gy,LucideFileSpreadsheet:vy,LucideFileStack:xy,LucideFileSymlink:_y,LucideFileTerminal:My,LucideFileText:Ly,LucideFileType:Iy,LucideFileType2:by,LucideFileUp:wy,LucideFileUser:Cy,LucideFileVideo:An,LucideFileVideo2:Pn,LucideFileVideoCamera:Pn,LucideFileVolume:Ny,LucideFileVolume2:jy,LucideFileWarning:Sy,LucideFileX:qy,LucideFileX2:$y,LucideFiles:zy,LucideFilm:Py,LucideFilter:Wt,LucideFilterX:Dn,LucideFingerprint:Vy,LucideFireExtinguisher:Ty,LucideFish:Hy,LucideFishOff:Dy,LucideFishSymbol:By,LucideFlag:Oy,LucideFlagOff:Ry,LucideFlagTriangleLeft:Fy,LucideFlagTriangleRight:Ey,LucideFlame:Wy,LucideFlameKindling:Uy,LucideFlashlight:Ky,LucideFlashlightOff:Gy,LucideFlaskConical:Xy,LucideFlaskConicalOff:Zy,LucideFlaskRound:Yy,LucideFlipHorizontal:Qy,LucideFlipHorizontal2:Jy,LucideFlipVertical:t4,LucideFlipVertical2:e4,LucideFlower:n4,LucideFlower2:a4,LucideFocus:o4,LucideFoldHorizontal:c4,LucideFoldVertical:i4,LucideFolder:ei,LucideFolderArchive:r4,LucideFolderCheck:s4,LucideFolderClock:d4,LucideFolderClosed:l4,LucideFolderCode:h4,LucideFolderCog:Vn,LucideFolderCog2:Vn,LucideFolderDot:u4,LucideFolderDown:p4,LucideFolderEdit:Tn,LucideFolderGit:k4,LucideFolderGit2:y4,LucideFolderHeart:m4,LucideFolderInput:f4,LucideFolderKanban:g4,LucideFolderKey:v4,LucideFolderLock:x4,LucideFolderMinus:_4,LucideFolderOpen:L4,LucideFolderOpenDot:M4,LucideFolderOutput:b4,LucideFolderPen:Tn,LucideFolderPlus:Yc,LucideFolderRoot:I4,LucideFolderSearch:C4,LucideFolderSearch2:w4,LucideFolderSymlink:j4,LucideFolderSync:N4,LucideFolderTree:S4,LucideFolderUp:$4,LucideFolderX:q4,LucideFolders:A4,LucideFootprints:z4,LucideForkKnife:Fc,LucideForkKnifeCrossed:Rc,LucideForklift:P4,LucideFormInput:xo,LucideForward:V4,LucideFrame:T4,LucideFramer:D4,LucideFrown:H4,LucideFuel:B4,LucideFullscreen:R4,LucideFunctionSquare:nc,LucideFunnel:Wt,LucideFunnelPlus:F4,LucideFunnelX:Dn,LucideGalleryHorizontal:O4,LucideGalleryHorizontalEnd:E4,LucideGalleryThumbnails:U4,LucideGalleryVertical:G4,LucideGalleryVerticalEnd:W4,LucideGamepad:Z4,LucideGamepad2:K4,LucideGanttChart:za,LucideGanttChartSquare:bt,LucideGauge:X4,LucideGaugeCircle:Qa,LucideGavel:Y4,LucideGem:J4,LucideGeorgianLari:Q4,LucideGhost:e5,LucideGift:t5,LucideGitBranch:n5,LucideGitBranchPlus:a5,LucideGitCommit:Hn,LucideGitCommitHorizontal:Hn,LucideGitCommitVertical:o5,LucideGitCompare:i5,LucideGitCompareArrows:c5,LucideGitFork:r5,LucideGitGraph:s5,LucideGitMerge:d5,LucideGitPullRequest:k5,LucideGitPullRequestArrow:l5,LucideGitPullRequestClosed:h5,LucideGitPullRequestCreate:p5,LucideGitPullRequestCreateArrow:u5,LucideGitPullRequestDraft:y5,LucideGithub:m5,LucideGitlab:f5,LucideGlassWater:g5,LucideGlasses:v5,LucideGlobe:_5,LucideGlobe2:Mn,LucideGlobeLock:x5,LucideGoal:M5,LucideGpu:L5,LucideGrab:On,LucideGraduationCap:b5,LucideGrape:I5,LucideGrid:Lt,LucideGrid2X2:En,LucideGrid2X2Check:Bn,LucideGrid2X2Plus:Rn,LucideGrid2X2X:Fn,LucideGrid2x2:En,LucideGrid2x2Check:Bn,LucideGrid2x2Plus:Rn,LucideGrid2x2X:Fn,LucideGrid3X3:Lt,LucideGrid3x2:w5,LucideGrid3x3:Lt,LucideGrip:j5,LucideGripHorizontal:C5,LucideGripVertical:ti,LucideGroup:N5,LucideGuitar:S5,LucideHam:$5,LucideHamburger:q5,LucideHammer:A5,LucideHand:H5,LucideHandCoins:z5,LucideHandFist:P5,LucideHandGrab:On,LucideHandHeart:V5,LucideHandHelping:Un,LucideHandMetal:T5,LucideHandPlatter:D5,LucideHandbag:B5,LucideHandshake:R5,LucideHardDrive:O5,LucideHardDriveDownload:F5,LucideHardDriveUpload:E5,LucideHardHat:U5,LucideHash:W5,LucideHatGlasses:G5,LucideHaze:K5,LucideHdmiPort:Z5,LucideHeading:ak,LucideHeading1:X5,LucideHeading2:Y5,LucideHeading3:J5,LucideHeading4:Q5,LucideHeading5:ek,LucideHeading6:tk,LucideHeadphoneOff:nk,LucideHeadphones:ok,LucideHeadset:ck,LucideHeart:uk,LucideHeartCrack:ik,LucideHeartHandshake:rk,LucideHeartMinus:sk,LucideHeartOff:dk,LucideHeartPlus:lk,LucideHeartPulse:hk,LucideHeater:pk,LucideHelpCircle:_t,LucideHelpingHand:Un,LucideHexagon:yk,LucideHighlighter:kk,LucideHistory:mk,LucideHome:Gt,LucideHop:gk,LucideHopOff:fk,LucideHospital:ai,LucideHotel:vk,LucideHourglass:xk,LucideHouse:Gt,LucideHousePlug:_k,LucideHousePlus:Lk,LucideHouseWifi:Mk,LucideIceCream:Gn,LucideIceCream2:Wn,LucideIceCreamBowl:Wn,LucideIceCreamCone:Gn,LucideIdCard:Ik,LucideIdCardLanyard:bk,LucideImage:Ak,LucideImageDown:wk,LucideImageMinus:Ck,LucideImageOff:jk,LucideImagePlay:Nk,LucideImagePlus:Sk,LucideImageUp:$k,LucideImageUpscale:qk,LucideImages:zk,LucideImport:Pk,LucideInbox:Vk,LucideIndent:Zn,LucideIndentDecrease:Kn,LucideIndentIncrease:Zn,LucideIndianRupee:Tk,LucideInfinity:Dk,LucideInfo:Hk,LucideInspect:lc,LucideInspectionPanel:Bk,LucideInstagram:Rk,LucideItalic:Fk,LucideIterationCcw:Ek,LucideIterationCw:Ok,LucideJapaneseYen:Wk,LucideJoystick:Uk,LucideKanban:Gk,LucideKanbanSquare:oc,LucideKanbanSquareDashed:Yo,LucideKayak:Kk,LucideKey:Yk,LucideKeyRound:Zk,LucideKeySquare:Xk,LucideKeyboard:em,LucideKeyboardMusic:Jk,LucideKeyboardOff:Qk,LucideLamp:im,LucideLampCeiling:tm,LucideLampDesk:nm,LucideLampFloor:am,LucideLampWallDown:om,LucideLampWallUp:cm,LucideLandPlot:rm,LucideLandmark:sm,LucideLanguages:dm,LucideLaptop:hm,LucideLaptop2:Xn,LucideLaptopMinimal:Xn,LucideLaptopMinimalCheck:lm,LucideLasso:pm,LucideLassoSelect:um,LucideLaugh:ym,LucideLayers:Yn,LucideLayers2:km,LucideLayers3:Yn,LucideLayout:go,LucideLayoutDashboard:mm,LucideLayoutGrid:fm,LucideLayoutList:gm,LucideLayoutPanelLeft:vm,LucideLayoutPanelTop:xm,LucideLayoutTemplate:_m,LucideLeaf:Mm,LucideLeafyGreen:bm,LucideLectern:Lm,LucideLetterText:Im,LucideLibrary:Cm,LucideLibraryBig:wm,LucideLibrarySquare:cc,LucideLifeBuoy:jm,LucideLigature:Nm,LucideLightbulb:$m,LucideLightbulbOff:Sm,LucideLineChart:$a,LucideLineSquiggle:qm,LucideLink:Pm,LucideLink2:Am,LucideLink2Off:zm,LucideLinkedin:Vm,LucideList:Qm,LucideListCheck:Tm,LucideListChecks:Dm,LucideListCollapse:Hm,LucideListEnd:Bm,LucideListFilter:Em,LucideListFilterPlus:Rm,LucideListMinus:Fm,LucideListMusic:Om,LucideListOrdered:Um,LucideListPlus:Wm,LucideListRestart:Gm,LucideListStart:Km,LucideListTodo:Zm,LucideListTree:Xm,LucideListVideo:Ym,LucideListX:Jm,LucideLoader:t3,LucideLoader2:Jn,LucideLoaderCircle:Jn,LucideLoaderPinwheel:e3,LucideLocate:o3,LucideLocateFixed:a3,LucideLocateOff:n3,LucideLocationEdit:ao,LucideLock:i3,LucideLockKeyhole:c3,LucideLockKeyholeOpen:Qn,LucideLockOpen:eo,LucideLogIn:r3,LucideLogOut:s3,LucideLogs:d3,LucideLollipop:l3,LucideLuggage:h3,LucideMSquare:ic,LucideMagnet:u3,LucideMail:v3,LucideMailCheck:p3,LucideMailMinus:y3,LucideMailOpen:k3,LucideMailPlus:m3,LucideMailQuestion:to,LucideMailQuestionMark:to,LucideMailSearch:f3,LucideMailWarning:g3,LucideMailX:x3,LucideMailbox:_3,LucideMails:M3,LucideMap:T3,LucideMapMinus:L3,LucideMapPin:z3,LucideMapPinCheck:b3,LucideMapPinCheckInside:I3,LucideMapPinHouse:w3,LucideMapPinMinus:j3,LucideMapPinMinusInside:C3,LucideMapPinOff:N3,LucideMapPinPen:ao,LucideMapPinPlus:$3,LucideMapPinPlusInside:S3,LucideMapPinX:A3,LucideMapPinXInside:q3,LucideMapPinned:P3,LucideMapPlus:V3,LucideMars:H3,LucideMarsStroke:D3,LucideMartini:B3,LucideMaximize:E3,LucideMaximize2:R3,LucideMedal:F3,LucideMegaphone:U3,LucideMegaphoneOff:O3,LucideMeh:W3,LucideMemoryStick:G3,LucideMenu:I1,LucideMenuSquare:rc,LucideMerge:K3,LucideMessageCircle:of,LucideMessageCircleCode:Z3,LucideMessageCircleDashed:X3,LucideMessageCircleHeart:Y3,LucideMessageCircleMore:J3,LucideMessageCircleOff:Q3,LucideMessageCirclePlus:ef,LucideMessageCircleQuestion:no,LucideMessageCircleQuestionMark:no,LucideMessageCircleReply:tf,LucideMessageCircleWarning:af,LucideMessageCircleX:nf,LucideMessageSquare:_f,LucideMessageSquareCode:cf,LucideMessageSquareDashed:rf,LucideMessageSquareDiff:sf,LucideMessageSquareDot:df,LucideMessageSquareHeart:lf,LucideMessageSquareLock:hf,LucideMessageSquareMore:uf,LucideMessageSquareOff:pf,LucideMessageSquarePlus:yf,LucideMessageSquareQuote:kf,LucideMessageSquareReply:mf,LucideMessageSquareShare:ff,LucideMessageSquareText:gf,LucideMessageSquareWarning:vf,LucideMessageSquareX:xf,LucideMessagesSquare:Mf,LucideMic:bf,LucideMic2:oo,LucideMicOff:Lf,LucideMicVocal:oo,LucideMicrochip:If,LucideMicroscope:wf,LucideMicrowave:Cf,LucideMilestone:jf,LucideMilk:Sf,LucideMilkOff:Nf,LucideMinimize:qf,LucideMinimize2:$f,LucideMinus:Af,LucideMinusCircle:en,LucideMinusSquare:sc,LucideMonitor:Wf,LucideMonitorCheck:zf,LucideMonitorCog:Pf,LucideMonitorDot:Vf,LucideMonitorDown:Tf,LucideMonitorOff:Df,LucideMonitorPause:Bf,LucideMonitorPlay:Hf,LucideMonitorSmartphone:Rf,LucideMonitorSpeaker:Ff,LucideMonitorStop:Ef,LucideMonitorUp:Of,LucideMonitorX:Uf,LucideMoon:Kf,LucideMoonStar:Gf,LucideMoreHorizontal:bn,LucideMoreVertical:Ln,LucideMountain:Xf,LucideMountainSnow:Zf,LucideMouse:a6,LucideMouseOff:Yf,LucideMousePointer:e6,LucideMousePointer2:Jf,LucideMousePointerBan:Qf,LucideMousePointerClick:t6,LucideMousePointerSquareDashed:Jo,LucideMove:a.Move,LucideMove3D:co,LucideMove3d:co,LucideMoveDiagonal:o6,LucideMoveDiagonal2:n6,LucideMoveDown:s6,LucideMoveDownLeft:c6,LucideMoveDownRight:i6,LucideMoveHorizontal:r6,LucideMoveLeft:d6,LucideMoveRight:l6,LucideMoveUp:p6,LucideMoveUpLeft:h6,LucideMoveUpRight:u6,LucideMoveVertical:y6,LucideMusic:g6,LucideMusic2:k6,LucideMusic3:m6,LucideMusic4:f6,LucideNavigation:M6,LucideNavigation2:x6,LucideNavigation2Off:v6,LucideNavigationOff:_6,LucideNetwork:L6,LucideNewspaper:b6,LucideNfc:I6,LucideNonBinary:w6,LucideNotebook:S6,LucideNotebookPen:C6,LucideNotebookTabs:j6,LucideNotebookText:N6,LucideNotepadText:q6,LucideNotepadTextDashed:$6,LucideNut:z6,LucideNutOff:A6,LucideOctagon:V6,LucideOctagonAlert:io,LucideOctagonMinus:P6,LucideOctagonPause:ro,LucideOctagonX:so,LucideOmega:T6,LucideOption:D6,LucideOrbit:H6,LucideOrigami:B6,LucideOutdent:Kn,LucidePackage:K6,LucidePackage2:R6,LucidePackageCheck:F6,LucidePackageMinus:E6,LucidePackageOpen:O6,LucidePackagePlus:U6,LucidePackageSearch:W6,LucidePackageX:G6,LucidePaintBucket:Z6,LucidePaintRoller:X6,LucidePaintbrush:Y6,LucidePaintbrush2:lo,LucidePaintbrushVertical:lo,LucidePalette:J6,LucidePalmtree:Sc,LucidePanda:Q6,LucidePanelBottom:a8,LucidePanelBottomClose:e8,LucidePanelBottomDashed:ho,LucidePanelBottomInactive:ho,LucidePanelBottomOpen:t8,LucidePanelLeft:ko,LucidePanelLeftClose:uo,LucidePanelLeftDashed:po,LucidePanelLeftInactive:po,LucidePanelLeftOpen:yo,LucidePanelRight:c8,LucidePanelRightClose:n8,LucidePanelRightDashed:mo,LucidePanelRightInactive:mo,LucidePanelRightOpen:o8,LucidePanelTop:s8,LucidePanelTopClose:i8,LucidePanelTopDashed:fo,LucidePanelTopInactive:fo,LucidePanelTopOpen:r8,LucidePanelsLeftBottom:d8,LucidePanelsLeftRight:vn,LucidePanelsRightBottom:l8,LucidePanelsTopBottom:Lo,LucidePanelsTopLeft:go,LucidePaperclip:h8,LucideParentheses:u8,LucideParkingCircle:nn,LucideParkingCircleOff:tn,LucideParkingMeter:p8,LucideParkingSquare:hc,LucideParkingSquareOff:dc,LucidePartyPopper:y8,LucidePause:k8,LucidePauseCircle:an,LucidePauseOctagon:ro,LucidePawPrint:m8,LucidePcCase:f8,LucidePen:$t,LucidePenBox:at,LucidePenLine:St,LucidePenOff:v8,LucidePenSquare:at,LucidePenTool:g8,LucidePencil:w1,LucidePencilLine:x8,LucidePencilOff:_8,LucidePencilRuler:M8,LucidePentagon:L8,LucidePercent:b8,LucidePercentCircle:on,LucidePercentDiamond:_n,LucidePercentSquare:uc,LucidePersonStanding:w8,LucidePhilippinePeso:I8,LucidePhone:q8,LucidePhoneCall:C8,LucidePhoneForwarded:j8,LucidePhoneIncoming:N8,LucidePhoneMissed:S8,LucidePhoneOff:$8,LucidePhoneOutgoing:A8,LucidePi:z8,LucidePiSquare:pc,LucidePiano:P8,LucidePickaxe:V8,LucidePictureInPicture:D8,LucidePictureInPicture2:T8,LucidePieChart:Pa,LucidePiggyBank:H8,LucidePilcrow:R8,LucidePilcrowLeft:B8,LucidePilcrowRight:F8,LucidePilcrowSquare:yc,LucidePill:O8,LucidePillBottle:E8,LucidePin:W8,LucidePinOff:U8,LucidePipette:G8,LucidePizza:K8,LucidePlane:Y8,LucidePlaneLanding:Z8,LucidePlaneTakeoff:X8,LucidePlay:J8,LucidePlayCircle:cn,LucidePlaySquare:kc,LucidePlug:eg,LucidePlug2:Q8,LucidePlugZap:vo,LucidePlugZap2:vo,LucidePlus:Jc,LucidePlusCircle:rn,LucidePlusSquare:mc,LucidePocket:ag,LucidePocketKnife:tg,LucidePodcast:ng,LucidePointer:cg,LucidePointerOff:og,LucidePopcorn:rg,LucidePopsicle:ig,LucidePoundSterling:sg,LucidePower:lg,LucidePowerCircle:sn,LucidePowerOff:dg,LucidePowerSquare:fc,LucidePresentation:hg,LucidePrinter:pg,LucidePrinterCheck:ug,LucideProjector:yg,LucideProportions:kg,LucidePuzzle:fg,LucidePyramid:mg,LucideQrCode:gg,LucideQuote:vg,LucideRabbit:xg,LucideRadar:_g,LucideRadiation:Mg,LucideRadical:Lg,LucideRadio:wg,LucideRadioReceiver:bg,LucideRadioTower:Ig,LucideRadius:Cg,LucideRailSymbol:jg,LucideRainbow:Ng,LucideRat:Sg,LucideRatio:$g,LucideReceipt:Rg,LucideReceiptCent:qg,LucideReceiptEuro:zg,LucideReceiptIndianRupee:Ag,LucideReceiptJapaneseYen:Pg,LucideReceiptPoundSterling:Vg,LucideReceiptRussianRuble:Tg,LucideReceiptSwissFranc:Dg,LucideReceiptText:Hg,LucideReceiptTurkishLira:Bg,LucideRectangleCircle:Fg,LucideRectangleEllipsis:xo,LucideRectangleGoggles:Eg,LucideRectangleHorizontal:Og,LucideRectangleVertical:Ug,LucideRecycle:Wg,LucideRedo:Zg,LucideRedo2:Gg,LucideRedoDot:Kg,LucideRefreshCcw:Yg,LucideRefreshCcwDot:Xg,LucideRefreshCw:Qg,LucideRefreshCwOff:Jg,LucideRefrigerator:e7,LucideRegex:t7,LucideRemoveFormatting:a7,LucideRepeat:c7,LucideRepeat1:n7,LucideRepeat2:o7,LucideReplace:r7,LucideReplaceAll:i7,LucideReply:l7,LucideReplyAll:s7,LucideRewind:d7,LucideRibbon:h7,LucideRocket:u7,LucideRockingChair:k7,LucideRollerCoaster:p7,LucideRose:y7,LucideRotate3D:_o,LucideRotate3d:_o,LucideRotateCcw:g7,LucideRotateCcwKey:m7,LucideRotateCcwSquare:f7,LucideRotateCw:x7,LucideRotateCwSquare:v7,LucideRoute:M7,LucideRouteOff:_7,LucideRouter:L7,LucideRows:Mo,LucideRows2:Mo,LucideRows3:Lo,LucideRows4:b7,LucideRss:I7,LucideRuler:C7,LucideRulerDimensionLine:w7,LucideRussianRuble:j7,LucideSailboat:N7,LucideSalad:S7,LucideSandwich:$7,LucideSatellite:A7,LucideSatelliteDish:q7,LucideSaudiRiyal:z7,LucideSave:D7,LucideSaveAll:P7,LucideSaveOff:V7,LucideScale:T7,LucideScale3D:bo,LucideScale3d:bo,LucideScaling:H7,LucideScan:K7,LucideScanBarcode:B7,LucideScanEye:R7,LucideScanFace:F7,LucideScanHeart:E7,LucideScanLine:O7,LucideScanQrCode:U7,LucideScanSearch:W7,LucideScanText:G7,LucideScatterChart:Va,LucideSchool:Z7,LucideSchool2:Ac,LucideScissors:Y7,LucideScissorsLineDashed:X7,LucideScissorsSquare:gc,LucideScissorsSquareDashedBottom:Eo,LucideScreenShare:J7,LucideScreenShareOff:Q7,LucideScroll:tv,LucideScrollText:ev,LucideSearch:ni,LucideSearchCheck:av,LucideSearchCode:nv,LucideSearchSlash:ov,LucideSearchX:cv,LucideSection:iv,LucideSend:sv,LucideSendHorizonal:Io,LucideSendHorizontal:Io,LucideSendToBack:rv,LucideSeparatorHorizontal:dv,LucideSeparatorVertical:lv,LucideServer:yv,LucideServerCog:hv,LucideServerCrash:pv,LucideServerOff:uv,LucideSettings:mv,LucideSettings2:kv,LucideShapes:fv,LucideShare:vv,LucideShare2:gv,LucideSheet:xv,LucideShell:_v,LucideShield:$v,LucideShieldAlert:Mv,LucideShieldBan:Lv,LucideShieldCheck:bv,LucideShieldClose:Co,LucideShieldEllipsis:Iv,LucideShieldHalf:wv,LucideShieldMinus:jv,LucideShieldOff:Cv,LucideShieldPlus:Nv,LucideShieldQuestion:wo,LucideShieldQuestionMark:wo,LucideShieldUser:Sv,LucideShieldX:Co,LucideShip:Av,LucideShipWheel:qv,LucideShirt:zv,LucideShoppingBag:Pv,LucideShoppingBasket:Vv,LucideShoppingCart:Tv,LucideShovel:Dv,LucideShowerHead:Hv,LucideShredder:Bv,LucideShrimp:Rv,LucideShrink:Fv,LucideShrub:Ev,LucideShuffle:Uv,LucideSidebar:ko,LucideSidebarClose:uo,LucideSidebarOpen:yo,LucideSigma:Ov,LucideSigmaSquare:vc,LucideSignal:Xv,LucideSignalHigh:Wv,LucideSignalLow:Gv,LucideSignalMedium:Kv,LucideSignalZero:Zv,LucideSignature:Yv,LucideSignpost:Qv,LucideSignpostBig:Jv,LucideSiren:e9,LucideSkipBack:t9,LucideSkipForward:a9,LucideSkull:n9,LucideSlack:o9,LucideSlash:c9,LucideSlashSquare:xc,LucideSlice:i9,LucideSliders:jo,LucideSlidersHorizontal:r9,LucideSlidersVertical:jo,LucideSmartphone:l9,LucideSmartphoneCharging:s9,LucideSmartphoneNfc:d9,LucideSmile:u9,LucideSmilePlus:h9,LucideSnail:p9,LucideSnowflake:y9,LucideSoapDispenserDroplet:k9,LucideSofa:m9,LucideSortAsc:ya,LucideSortDesc:ha,LucideSoup:f9,LucideSpace:g9,LucideSpade:v9,LucideSparkle:x9,LucideSparkles:No,LucideSpeaker:_9,LucideSpeech:M9,LucideSpellCheck:b9,LucideSpellCheck2:L9,LucideSpline:w9,LucideSplinePointer:I9,LucideSplit:C9,LucideSplitSquareHorizontal:_c,LucideSplitSquareVertical:Mc,LucideSpool:j9,LucideSpotlight:N9,LucideSprayCan:S9,LucideSprout:$9,LucideSquare:F9,LucideSquareActivity:Kt,LucideSquareArrowDown:qo,LucideSquareArrowDownLeft:So,LucideSquareArrowDownRight:$o,LucideSquareArrowLeft:Ao,LucideSquareArrowOutDownLeft:zo,LucideSquareArrowOutDownRight:Po,LucideSquareArrowOutUpLeft:Vo,LucideSquareArrowOutUpRight:To,LucideSquareArrowRight:Do,LucideSquareArrowUp:Ro,LucideSquareArrowUpLeft:Ho,LucideSquareArrowUpRight:Bo,LucideSquareAsterisk:Fo,LucideSquareBottomDashedScissors:Eo,LucideSquareChartGantt:bt,LucideSquareCheck:Uo,LucideSquareCheckBig:Oo,LucideSquareChevronDown:Wo,LucideSquareChevronLeft:Go,LucideSquareChevronRight:Ko,LucideSquareChevronUp:Zo,LucideSquareCode:Xo,LucideSquareDashed:Qo,LucideSquareDashedBottom:A9,LucideSquareDashedBottomCode:q9,LucideSquareDashedKanban:Yo,LucideSquareDashedMousePointer:Jo,LucideSquareDashedTopSolid:z9,LucideSquareDivide:ec,LucideSquareDot:ac,LucideSquareEqual:tc,LucideSquareFunction:nc,LucideSquareGanttChart:bt,LucideSquareKanban:oc,LucideSquareLibrary:cc,LucideSquareM:ic,LucideSquareMenu:rc,LucideSquareMinus:sc,LucideSquareMousePointer:lc,LucideSquareParking:hc,LucideSquareParkingOff:dc,LucideSquarePause:P9,LucideSquarePen:at,LucideSquarePercent:uc,LucideSquarePi:pc,LucideSquarePilcrow:yc,LucideSquarePlay:kc,LucideSquarePlus:mc,LucideSquarePower:fc,LucideSquareRadical:V9,LucideSquareRoundCorner:T9,LucideSquareScissors:gc,LucideSquareSigma:vc,LucideSquareSlash:xc,LucideSquareSplitHorizontal:_c,LucideSquareSplitVertical:Mc,LucideSquareSquare:D9,LucideSquareStack:H9,LucideSquareStar:B9,LucideSquareStop:R9,LucideSquareTerminal:Lc,LucideSquareUser:Ic,LucideSquareUserRound:bc,LucideSquareX:wc,LucideSquaresExclude:E9,LucideSquaresIntersect:O9,LucideSquaresSubtract:U9,LucideSquaresUnite:W9,LucideSquircle:K9,LucideSquircleDashed:G9,LucideSquirrel:Z9,LucideStamp:X9,LucideStar:ex,LucideStarHalf:Y9,LucideStarOff:J9,LucideStars:No,LucideStepBack:Q9,LucideStepForward:tx,LucideStethoscope:ax,LucideSticker:nx,LucideStickyNote:ox,LucideStopCircle:ln,LucideStore:cx,LucideStretchHorizontal:ix,LucideStretchVertical:rx,LucideStrikethrough:sx,LucideSubscript:dx,LucideSubtitles:La,LucideSun:kx,LucideSunDim:lx,LucideSunMedium:hx,LucideSunMoon:ux,LucideSunSnow:px,LucideSunrise:yx,LucideSunset:mx,LucideSuperscript:fx,LucideSwatchBook:gx,LucideSwissFranc:vx,LucideSwitchCamera:xx,LucideSword:_x,LucideSwords:Lx,LucideSyringe:Mx,LucideTable:$x,LucideTable2:bx,LucideTableCellsMerge:Ix,LucideTableCellsSplit:wx,LucideTableColumnsSplit:Cx,LucideTableConfig:Mt,LucideTableOfContents:jx,LucideTableProperties:Nx,LucideTableRowsSplit:Sx,LucideTablet:Ax,LucideTabletSmartphone:qx,LucideTablets:zx,LucideTag:Px,LucideTags:Vx,LucideTally1:Tx,LucideTally2:Dx,LucideTally3:Hx,LucideTally4:Bx,LucideTally5:Rx,LucideTangent:Fx,LucideTarget:Ex,LucideTelescope:Ox,LucideTent:Wx,LucideTentTree:Ux,LucideTerminal:Gx,LucideTerminalSquare:Lc,LucideTestTube:Kx,LucideTestTube2:Cc,LucideTestTubeDiagonal:Cc,LucideTestTubes:Zx,LucideText:e_,LucideTextCursor:Yx,LucideTextCursorInput:Xx,LucideTextQuote:Jx,LucideTextSearch:Qx,LucideTextSelect:jc,LucideTextSelection:jc,LucideTheater:t_,LucideThermometer:c_,LucideThermometerSnowflake:a_,LucideThermometerSun:n_,LucideThumbsDown:o_,LucideThumbsUp:i_,LucideTicket:p_,LucideTicketCheck:r_,LucideTicketMinus:s_,LucideTicketPercent:d_,LucideTicketPlus:l_,LucideTicketSlash:h_,LucideTicketX:u_,LucideTickets:k_,LucideTicketsPlane:y_,LucideTimer:g_,LucideTimerOff:m_,LucideTimerReset:f_,LucideToggleLeft:v_,LucideToggleRight:x_,LucideToilet:__,LucideToolCase:M_,LucideTornado:b_,LucideTorus:L_,LucideTouchpad:w_,LucideTouchpadOff:I_,LucideTowerControl:j_,LucideToyBrick:C_,LucideTractor:N_,LucideTrafficCone:S_,LucideTrain:Nc,LucideTrainFront:q_,LucideTrainFrontTunnel:$_,LucideTrainTrack:A_,LucideTramFront:Nc,LucideTransgender:z_,LucideTrash:P_,LucideTrash2:It,LucideTreeDeciduous:V_,LucideTreePalm:Sc,LucideTreePine:T_,LucideTrees:D_,LucideTrello:H_,LucideTrendingDown:B_,LucideTrendingUp:R_,LucideTrendingUpDown:F_,LucideTriangle:O_,LucideTriangleAlert:$c,LucideTriangleDashed:E_,LucideTriangleRight:U_,LucideTrophy:W_,LucideTruck:K_,LucideTruckElectric:G_,LucideTurkishLira:Z_,LucideTurntable:X_,LucideTurtle:Y_,LucideTv:Q_,LucideTv2:qc,LucideTvMinimal:qc,LucideTvMinimalPlay:J_,LucideTwitch:eM,LucideTwitter:tM,LucideType:nM,LucideTypeOutline:aM,LucideUmbrella:cM,LucideUmbrellaOff:oM,LucideUnderline:iM,LucideUndo:dM,LucideUndo2:rM,LucideUndoDot:sM,LucideUnfoldHorizontal:lM,LucideUnfoldVertical:hM,LucideUngroup:uM,LucideUniversity:Ac,LucideUnlink:mM,LucideUnlink2:pM,LucideUnlock:eo,LucideUnlockKeyhole:Qn,LucideUnplug:yM,LucideUpload:kM,LucideUploadCloud:mn,LucideUsb:fM,LucideUser:jM,LucideUser2:Hc,LucideUserCheck:gM,LucideUserCheck2:zc,LucideUserCircle:un,LucideUserCircle2:hn,LucideUserCog:vM,LucideUserCog2:Pc,LucideUserLock:xM,LucideUserMinus:_M,LucideUserMinus2:Vc,LucideUserPen:MM,LucideUserPlus:oi,LucideUserPlus2:Tc,LucideUserRound:Hc,LucideUserRoundCheck:zc,LucideUserRoundCog:Pc,LucideUserRoundMinus:Vc,LucideUserRoundPen:LM,LucideUserRoundPlus:Tc,LucideUserRoundSearch:bM,LucideUserRoundX:Dc,LucideUserSearch:IM,LucideUserSquare:Ic,LucideUserSquare2:bc,LucideUserStar:wM,LucideUserX:CM,LucideUserX2:Dc,LucideUsers:NM,LucideUsers2:Bc,LucideUsersRound:Bc,LucideUtensils:Fc,LucideUtensilsCrossed:Rc,LucideUtilityPole:SM,LucideVariable:$M,LucideVault:qM,LucideVectorSquare:AM,LucideVegan:zM,LucideVenetianMask:PM,LucideVenus:HM,LucideVenusAndMars:VM,LucideVerified:fa,LucideVibrate:DM,LucideVibrateOff:TM,LucideVideo:RM,LucideVideoOff:BM,LucideVideotape:FM,LucideView:OM,LucideVoicemail:EM,LucideVolleyball:UM,LucideVolume:YM,LucideVolume1:WM,LucideVolume2:GM,LucideVolumeOff:KM,LucideVolumeX:ZM,LucideVote:XM,LucideWallet:QM,LucideWallet2:Ec,LucideWalletCards:JM,LucideWalletMinimal:Ec,LucideWallpaper:eL,LucideWand:tL,LucideWand2:Oc,LucideWandSparkles:Oc,LucideWarehouse:aL,LucideWashingMachine:nL,LucideWatch:oL,LucideWaves:iL,LucideWavesLadder:cL,LucideWaypoints:rL,LucideWebcam:sL,LucideWebhook:hL,LucideWebhookOff:dL,LucideWeight:lL,LucideWheat:pL,LucideWheatOff:uL,LucideWholeWord:yL,LucideWifi:ML,LucideWifiCog:kL,LucideWifiHigh:mL,LucideWifiLow:fL,LucideWifiOff:gL,LucideWifiPen:vL,LucideWifiSync:xL,LucideWifiZero:_L,LucideWind:bL,LucideWindArrowDown:LL,LucideWine:wL,LucideWineOff:IL,LucideWorkflow:CL,LucideWorm:jL,LucideWrapText:NL,LucideWrench:SL,LucideX:ht,LucideXCircle:Ut,LucideXOctagon:so,LucideXSquare:wc,LucideYoutube:qL,LucideZap:AL,LucideZapOff:$L,LucideZoomIn:zL,LucideZoomOut:PL,Luggage:h3,LuggageIcon:h3,MSquare:ic,MSquareIcon:ic,Magnet:u3,MagnetIcon:u3,Mail:v3,MailCheck:p3,MailCheckIcon:p3,MailIcon:v3,MailMinus:y3,MailMinusIcon:y3,MailOpen:k3,MailOpenIcon:k3,MailPlus:m3,MailPlusIcon:m3,MailQuestion:to,MailQuestionIcon:to,MailQuestionMark:to,MailQuestionMarkIcon:to,MailSearch:f3,MailSearchIcon:f3,MailWarning:g3,MailWarningIcon:g3,MailX:x3,MailXIcon:x3,Mailbox:_3,MailboxIcon:_3,Mails:M3,MailsIcon:M3,Map:T3,MapIcon:T3,MapMinus:L3,MapMinusIcon:L3,MapPin:z3,MapPinCheck:b3,MapPinCheckIcon:b3,MapPinCheckInside:I3,MapPinCheckInsideIcon:I3,MapPinHouse:w3,MapPinHouseIcon:w3,MapPinIcon:z3,MapPinMinus:j3,MapPinMinusIcon:j3,MapPinMinusInside:C3,MapPinMinusInsideIcon:C3,MapPinOff:N3,MapPinOffIcon:N3,MapPinPen:ao,MapPinPenIcon:ao,MapPinPlus:$3,MapPinPlusIcon:$3,MapPinPlusInside:S3,MapPinPlusInsideIcon:S3,MapPinX:A3,MapPinXIcon:A3,MapPinXInside:q3,MapPinXInsideIcon:q3,MapPinned:P3,MapPinnedIcon:P3,MapPlus:V3,MapPlusIcon:V3,Mars:H3,MarsIcon:H3,MarsStroke:D3,MarsStrokeIcon:D3,Martini:B3,MartiniIcon:B3,Maximize:E3,Maximize2:R3,Maximize2Icon:R3,MaximizeIcon:E3,Medal:F3,MedalIcon:F3,Megaphone:U3,MegaphoneIcon:U3,MegaphoneOff:O3,MegaphoneOffIcon:O3,Meh:W3,MehIcon:W3,MemoryStick:G3,MemoryStickIcon:G3,Menu:I1,MenuIcon:I1,MenuSquare:rc,MenuSquareIcon:rc,Merge:K3,MergeIcon:K3,MessageCircle:of,MessageCircleCode:Z3,MessageCircleCodeIcon:Z3,MessageCircleDashed:X3,MessageCircleDashedIcon:X3,MessageCircleHeart:Y3,MessageCircleHeartIcon:Y3,MessageCircleIcon:of,MessageCircleMore:J3,MessageCircleMoreIcon:J3,MessageCircleOff:Q3,MessageCircleOffIcon:Q3,MessageCirclePlus:ef,MessageCirclePlusIcon:ef,MessageCircleQuestion:no,MessageCircleQuestionIcon:no,MessageCircleQuestionMark:no,MessageCircleQuestionMarkIcon:no,MessageCircleReply:tf,MessageCircleReplyIcon:tf,MessageCircleWarning:af,MessageCircleWarningIcon:af,MessageCircleX:nf,MessageCircleXIcon:nf,MessageSquare:_f,MessageSquareCode:cf,MessageSquareCodeIcon:cf,MessageSquareDashed:rf,MessageSquareDashedIcon:rf,MessageSquareDiff:sf,MessageSquareDiffIcon:sf,MessageSquareDot:df,MessageSquareDotIcon:df,MessageSquareHeart:lf,MessageSquareHeartIcon:lf,MessageSquareIcon:_f,MessageSquareLock:hf,MessageSquareLockIcon:hf,MessageSquareMore:uf,MessageSquareMoreIcon:uf,MessageSquareOff:pf,MessageSquareOffIcon:pf,MessageSquarePlus:yf,MessageSquarePlusIcon:yf,MessageSquareQuote:kf,MessageSquareQuoteIcon:kf,MessageSquareReply:mf,MessageSquareReplyIcon:mf,MessageSquareShare:ff,MessageSquareShareIcon:ff,MessageSquareText:gf,MessageSquareTextIcon:gf,MessageSquareWarning:vf,MessageSquareWarningIcon:vf,MessageSquareX:xf,MessageSquareXIcon:xf,MessagesSquare:Mf,MessagesSquareIcon:Mf,Mic:bf,Mic2:oo,Mic2Icon:oo,MicIcon:bf,MicOff:Lf,MicOffIcon:Lf,MicVocal:oo,MicVocalIcon:oo,Microchip:If,MicrochipIcon:If,Microscope:wf,MicroscopeIcon:wf,Microwave:Cf,MicrowaveIcon:Cf,Milestone:jf,MilestoneIcon:jf,Milk:Sf,MilkIcon:Sf,MilkOff:Nf,MilkOffIcon:Nf,Minimize:qf,Minimize2:$f,Minimize2Icon:$f,MinimizeIcon:qf,Minus:Af,MinusCircle:en,MinusCircleIcon:en,MinusIcon:Af,MinusSquare:sc,MinusSquareIcon:sc,Monitor:Wf,MonitorCheck:zf,MonitorCheckIcon:zf,MonitorCog:Pf,MonitorCogIcon:Pf,MonitorDot:Vf,MonitorDotIcon:Vf,MonitorDown:Tf,MonitorDownIcon:Tf,MonitorIcon:Wf,MonitorOff:Df,MonitorOffIcon:Df,MonitorPause:Bf,MonitorPauseIcon:Bf,MonitorPlay:Hf,MonitorPlayIcon:Hf,MonitorSmartphone:Rf,MonitorSmartphoneIcon:Rf,MonitorSpeaker:Ff,MonitorSpeakerIcon:Ff,MonitorStop:Ef,MonitorStopIcon:Ef,MonitorUp:Of,MonitorUpIcon:Of,MonitorX:Uf,MonitorXIcon:Uf,Moon:Kf,MoonIcon:Kf,MoonStar:Gf,MoonStarIcon:Gf,MoreHorizontal:bn,MoreHorizontalIcon:bn,MoreVertical:Ln,MoreVerticalIcon:Ln,Mountain:Xf,MountainIcon:Xf,MountainSnow:Zf,MountainSnowIcon:Zf,Mouse:a6,MouseIcon:a6,MouseOff:Yf,MouseOffIcon:Yf,MousePointer:e6,MousePointer2:Jf,MousePointer2Icon:Jf,MousePointerBan:Qf,MousePointerBanIcon:Qf,MousePointerClick:t6,MousePointerClickIcon:t6,MousePointerIcon:e6,MousePointerSquareDashed:Jo,MousePointerSquareDashedIcon:Jo,Move:a.Move,Move3D:co,Move3DIcon:co,Move3d:co,Move3dIcon:co,MoveDiagonal:o6,MoveDiagonal2:n6,MoveDiagonal2Icon:n6,MoveDiagonalIcon:o6,MoveDown:s6,MoveDownIcon:s6,MoveDownLeft:c6,MoveDownLeftIcon:c6,MoveDownRight:i6,MoveDownRightIcon:i6,MoveHorizontal:r6,MoveHorizontalIcon:r6,MoveIcon:a.Move,MoveLeft:d6,MoveLeftIcon:d6,MoveRight:l6,MoveRightIcon:l6,MoveUp:p6,MoveUpIcon:p6,MoveUpLeft:h6,MoveUpLeftIcon:h6,MoveUpRight:u6,MoveUpRightIcon:u6,MoveVertical:y6,MoveVerticalIcon:y6,Music:g6,Music2:k6,Music2Icon:k6,Music3:m6,Music3Icon:m6,Music4:f6,Music4Icon:f6,MusicIcon:g6,Navigation:M6,Navigation2:x6,Navigation2Icon:x6,Navigation2Off:v6,Navigation2OffIcon:v6,NavigationIcon:M6,NavigationOff:_6,NavigationOffIcon:_6,Network:L6,NetworkIcon:L6,Newspaper:b6,NewspaperIcon:b6,Nfc:I6,NfcIcon:I6,NonBinary:w6,NonBinaryIcon:w6,Notebook:S6,NotebookIcon:S6,NotebookPen:C6,NotebookPenIcon:C6,NotebookTabs:j6,NotebookTabsIcon:j6,NotebookText:N6,NotebookTextIcon:N6,NotepadText:q6,NotepadTextDashed:$6,NotepadTextDashedIcon:$6,NotepadTextIcon:q6,Nut:z6,NutIcon:z6,NutOff:A6,NutOffIcon:A6,Octagon:V6,OctagonAlert:io,OctagonAlertIcon:io,OctagonIcon:V6,OctagonMinus:P6,OctagonMinusIcon:P6,OctagonPause:ro,OctagonPauseIcon:ro,OctagonX:so,OctagonXIcon:so,Omega:T6,OmegaIcon:T6,Option:D6,OptionIcon:D6,Orbit:H6,OrbitIcon:H6,Origami:B6,OrigamiIcon:B6,Outdent:Kn,OutdentIcon:Kn,Package:K6,Package2:R6,Package2Icon:R6,PackageCheck:F6,PackageCheckIcon:F6,PackageIcon:K6,PackageMinus:E6,PackageMinusIcon:E6,PackageOpen:O6,PackageOpenIcon:O6,PackagePlus:U6,PackagePlusIcon:U6,PackageSearch:W6,PackageSearchIcon:W6,PackageX:G6,PackageXIcon:G6,PaintBucket:Z6,PaintBucketIcon:Z6,PaintRoller:X6,PaintRollerIcon:X6,Paintbrush:Y6,Paintbrush2:lo,Paintbrush2Icon:lo,PaintbrushIcon:Y6,PaintbrushVertical:lo,PaintbrushVerticalIcon:lo,Palette:J6,PaletteIcon:J6,Palmtree:Sc,PalmtreeIcon:Sc,Panda:Q6,PandaIcon:Q6,PanelBottom:a8,PanelBottomClose:e8,PanelBottomCloseIcon:e8,PanelBottomDashed:ho,PanelBottomDashedIcon:ho,PanelBottomIcon:a8,PanelBottomInactive:ho,PanelBottomInactiveIcon:ho,PanelBottomOpen:t8,PanelBottomOpenIcon:t8,PanelLeft:ko,PanelLeftClose:uo,PanelLeftCloseIcon:uo,PanelLeftDashed:po,PanelLeftDashedIcon:po,PanelLeftIcon:ko,PanelLeftInactive:po,PanelLeftInactiveIcon:po,PanelLeftOpen:yo,PanelLeftOpenIcon:yo,PanelRight:c8,PanelRightClose:n8,PanelRightCloseIcon:n8,PanelRightDashed:mo,PanelRightDashedIcon:mo,PanelRightIcon:c8,PanelRightInactive:mo,PanelRightInactiveIcon:mo,PanelRightOpen:o8,PanelRightOpenIcon:o8,PanelTop:s8,PanelTopClose:i8,PanelTopCloseIcon:i8,PanelTopDashed:fo,PanelTopDashedIcon:fo,PanelTopIcon:s8,PanelTopInactive:fo,PanelTopInactiveIcon:fo,PanelTopOpen:r8,PanelTopOpenIcon:r8,PanelsLeftBottom:d8,PanelsLeftBottomIcon:d8,PanelsLeftRight:vn,PanelsLeftRightIcon:vn,PanelsRightBottom:l8,PanelsRightBottomIcon:l8,PanelsTopBottom:Lo,PanelsTopBottomIcon:Lo,PanelsTopLeft:go,PanelsTopLeftIcon:go,Paperclip:h8,PaperclipIcon:h8,Parentheses:u8,ParenthesesIcon:u8,ParkingCircle:nn,ParkingCircleIcon:nn,ParkingCircleOff:tn,ParkingCircleOffIcon:tn,ParkingMeter:p8,ParkingMeterIcon:p8,ParkingSquare:hc,ParkingSquareIcon:hc,ParkingSquareOff:dc,ParkingSquareOffIcon:dc,PartyPopper:y8,PartyPopperIcon:y8,Pause:k8,PauseCircle:an,PauseCircleIcon:an,PauseIcon:k8,PauseOctagon:ro,PauseOctagonIcon:ro,PawPrint:m8,PawPrintIcon:m8,PcCase:f8,PcCaseIcon:f8,Pen:$t,PenBox:at,PenBoxIcon:at,PenIcon:$t,PenLine:St,PenLineIcon:St,PenOff:v8,PenOffIcon:v8,PenSquare:at,PenSquareIcon:at,PenTool:g8,PenToolIcon:g8,Pencil:w1,PencilIcon:w1,PencilLine:x8,PencilLineIcon:x8,PencilOff:_8,PencilOffIcon:_8,PencilRuler:M8,PencilRulerIcon:M8,Pentagon:L8,PentagonIcon:L8,Percent:b8,PercentCircle:on,PercentCircleIcon:on,PercentDiamond:_n,PercentDiamondIcon:_n,PercentIcon:b8,PercentSquare:uc,PercentSquareIcon:uc,PersonStanding:w8,PersonStandingIcon:w8,PhilippinePeso:I8,PhilippinePesoIcon:I8,Phone:q8,PhoneCall:C8,PhoneCallIcon:C8,PhoneForwarded:j8,PhoneForwardedIcon:j8,PhoneIcon:q8,PhoneIncoming:N8,PhoneIncomingIcon:N8,PhoneMissed:S8,PhoneMissedIcon:S8,PhoneOff:$8,PhoneOffIcon:$8,PhoneOutgoing:A8,PhoneOutgoingIcon:A8,Pi:z8,PiIcon:z8,PiSquare:pc,PiSquareIcon:pc,Piano:P8,PianoIcon:P8,Pickaxe:V8,PickaxeIcon:V8,PictureInPicture:D8,PictureInPicture2:T8,PictureInPicture2Icon:T8,PictureInPictureIcon:D8,PieChart:Pa,PieChartIcon:Pa,PiggyBank:H8,PiggyBankIcon:H8,Pilcrow:R8,PilcrowIcon:R8,PilcrowLeft:B8,PilcrowLeftIcon:B8,PilcrowRight:F8,PilcrowRightIcon:F8,PilcrowSquare:yc,PilcrowSquareIcon:yc,Pill:O8,PillBottle:E8,PillBottleIcon:E8,PillIcon:O8,Pin:W8,PinIcon:W8,PinOff:U8,PinOffIcon:U8,Pipette:G8,PipetteIcon:G8,Pizza:K8,PizzaIcon:K8,Plane:Y8,PlaneIcon:Y8,PlaneLanding:Z8,PlaneLandingIcon:Z8,PlaneTakeoff:X8,PlaneTakeoffIcon:X8,Play:J8,PlayCircle:cn,PlayCircleIcon:cn,PlayIcon:J8,PlaySquare:kc,PlaySquareIcon:kc,Plug:eg,Plug2:Q8,Plug2Icon:Q8,PlugIcon:eg,PlugZap:vo,PlugZap2:vo,PlugZap2Icon:vo,PlugZapIcon:vo,Plus:Jc,PlusCircle:rn,PlusCircleIcon:rn,PlusIcon:Jc,PlusSquare:mc,PlusSquareIcon:mc,Pocket:ag,PocketIcon:ag,PocketKnife:tg,PocketKnifeIcon:tg,Podcast:ng,PodcastIcon:ng,Pointer:cg,PointerIcon:cg,PointerOff:og,PointerOffIcon:og,Popcorn:rg,PopcornIcon:rg,Popsicle:ig,PopsicleIcon:ig,PoundSterling:sg,PoundSterlingIcon:sg,Power:lg,PowerCircle:sn,PowerCircleIcon:sn,PowerIcon:lg,PowerOff:dg,PowerOffIcon:dg,PowerSquare:fc,PowerSquareIcon:fc,Presentation:hg,PresentationIcon:hg,Printer:pg,PrinterCheck:ug,PrinterCheckIcon:ug,PrinterIcon:pg,Projector:yg,ProjectorIcon:yg,Proportions:kg,ProportionsIcon:kg,Puzzle:fg,PuzzleIcon:fg,Pyramid:mg,PyramidIcon:mg,QrCode:gg,QrCodeIcon:gg,Quote:vg,QuoteIcon:vg,Rabbit:xg,RabbitIcon:xg,Radar:_g,RadarIcon:_g,Radiation:Mg,RadiationIcon:Mg,Radical:Lg,RadicalIcon:Lg,Radio:wg,RadioIcon:wg,RadioReceiver:bg,RadioReceiverIcon:bg,RadioTower:Ig,RadioTowerIcon:Ig,Radius:Cg,RadiusIcon:Cg,RailSymbol:jg,RailSymbolIcon:jg,Rainbow:Ng,RainbowIcon:Ng,Rat:Sg,RatIcon:Sg,Ratio:$g,RatioIcon:$g,Receipt:Rg,ReceiptCent:qg,ReceiptCentIcon:qg,ReceiptEuro:zg,ReceiptEuroIcon:zg,ReceiptIcon:Rg,ReceiptIndianRupee:Ag,ReceiptIndianRupeeIcon:Ag,ReceiptJapaneseYen:Pg,ReceiptJapaneseYenIcon:Pg,ReceiptPoundSterling:Vg,ReceiptPoundSterlingIcon:Vg,ReceiptRussianRuble:Tg,ReceiptRussianRubleIcon:Tg,ReceiptSwissFranc:Dg,ReceiptSwissFrancIcon:Dg,ReceiptText:Hg,ReceiptTextIcon:Hg,ReceiptTurkishLira:Bg,ReceiptTurkishLiraIcon:Bg,RectangleCircle:Fg,RectangleCircleIcon:Fg,RectangleEllipsis:xo,RectangleEllipsisIcon:xo,RectangleGoggles:Eg,RectangleGogglesIcon:Eg,RectangleHorizontal:Og,RectangleHorizontalIcon:Og,RectangleVertical:Ug,RectangleVerticalIcon:Ug,Recycle:Wg,RecycleIcon:Wg,Redo:Zg,Redo2:Gg,Redo2Icon:Gg,RedoDot:Kg,RedoDotIcon:Kg,RedoIcon:Zg,RefreshCcw:Yg,RefreshCcwDot:Xg,RefreshCcwDotIcon:Xg,RefreshCcwIcon:Yg,RefreshCw:Qg,RefreshCwIcon:Qg,RefreshCwOff:Jg,RefreshCwOffIcon:Jg,Refrigerator:e7,RefrigeratorIcon:e7,Regex:t7,RegexIcon:t7,RemoveFormatting:a7,RemoveFormattingIcon:a7,Repeat:c7,Repeat1:n7,Repeat1Icon:n7,Repeat2:o7,Repeat2Icon:o7,RepeatIcon:c7,Replace:r7,ReplaceAll:i7,ReplaceAllIcon:i7,ReplaceIcon:r7,Reply:l7,ReplyAll:s7,ReplyAllIcon:s7,ReplyIcon:l7,Rewind:d7,RewindIcon:d7,Ribbon:h7,RibbonIcon:h7,Rocket:u7,RocketIcon:u7,RockingChair:k7,RockingChairIcon:k7,RollerCoaster:p7,RollerCoasterIcon:p7,Rose:y7,RoseIcon:y7,Rotate3D:_o,Rotate3DIcon:_o,Rotate3d:_o,Rotate3dIcon:_o,RotateCcw:g7,RotateCcwIcon:g7,RotateCcwKey:m7,RotateCcwKeyIcon:m7,RotateCcwSquare:f7,RotateCcwSquareIcon:f7,RotateCw:x7,RotateCwIcon:x7,RotateCwSquare:v7,RotateCwSquareIcon:v7,Route:M7,RouteIcon:M7,RouteOff:_7,RouteOffIcon:_7,Router:L7,RouterIcon:L7,Rows:Mo,Rows2:Mo,Rows2Icon:Mo,Rows3:Lo,Rows3Icon:Lo,Rows4:b7,Rows4Icon:b7,RowsIcon:Mo,Rss:I7,RssIcon:I7,Ruler:C7,RulerDimensionLine:w7,RulerDimensionLineIcon:w7,RulerIcon:C7,RussianRuble:j7,RussianRubleIcon:j7,Sailboat:N7,SailboatIcon:N7,Salad:S7,SaladIcon:S7,Sandwich:$7,SandwichIcon:$7,Satellite:A7,SatelliteDish:q7,SatelliteDishIcon:q7,SatelliteIcon:A7,SaudiRiyal:z7,SaudiRiyalIcon:z7,Save:D7,SaveAll:P7,SaveAllIcon:P7,SaveIcon:D7,SaveOff:V7,SaveOffIcon:V7,Scale:T7,Scale3D:bo,Scale3DIcon:bo,Scale3d:bo,Scale3dIcon:bo,ScaleIcon:T7,Scaling:H7,ScalingIcon:H7,Scan:K7,ScanBarcode:B7,ScanBarcodeIcon:B7,ScanEye:R7,ScanEyeIcon:R7,ScanFace:F7,ScanFaceIcon:F7,ScanHeart:E7,ScanHeartIcon:E7,ScanIcon:K7,ScanLine:O7,ScanLineIcon:O7,ScanQrCode:U7,ScanQrCodeIcon:U7,ScanSearch:W7,ScanSearchIcon:W7,ScanText:G7,ScanTextIcon:G7,ScatterChart:Va,ScatterChartIcon:Va,School:Z7,School2:Ac,School2Icon:Ac,SchoolIcon:Z7,Scissors:Y7,ScissorsIcon:Y7,ScissorsLineDashed:X7,ScissorsLineDashedIcon:X7,ScissorsSquare:gc,ScissorsSquareDashedBottom:Eo,ScissorsSquareDashedBottomIcon:Eo,ScissorsSquareIcon:gc,ScreenShare:J7,ScreenShareIcon:J7,ScreenShareOff:Q7,ScreenShareOffIcon:Q7,Scroll:tv,ScrollIcon:tv,ScrollText:ev,ScrollTextIcon:ev,Search:ni,SearchCheck:av,SearchCheckIcon:av,SearchCode:nv,SearchCodeIcon:nv,SearchIcon:ni,SearchSlash:ov,SearchSlashIcon:ov,SearchX:cv,SearchXIcon:cv,Section:iv,SectionIcon:iv,Send:sv,SendHorizonal:Io,SendHorizonalIcon:Io,SendHorizontal:Io,SendHorizontalIcon:Io,SendIcon:sv,SendToBack:rv,SendToBackIcon:rv,SeparatorHorizontal:dv,SeparatorHorizontalIcon:dv,SeparatorVertical:lv,SeparatorVerticalIcon:lv,Server:yv,ServerCog:hv,ServerCogIcon:hv,ServerCrash:pv,ServerCrashIcon:pv,ServerIcon:yv,ServerOff:uv,ServerOffIcon:uv,Settings:mv,Settings2:kv,Settings2Icon:kv,SettingsIcon:mv,Shapes:fv,ShapesIcon:fv,Share:vv,Share2:gv,Share2Icon:gv,ShareIcon:vv,Sheet:xv,SheetIcon:xv,Shell:_v,ShellIcon:_v,Shield:$v,ShieldAlert:Mv,ShieldAlertIcon:Mv,ShieldBan:Lv,ShieldBanIcon:Lv,ShieldCheck:bv,ShieldCheckIcon:bv,ShieldClose:Co,ShieldCloseIcon:Co,ShieldEllipsis:Iv,ShieldEllipsisIcon:Iv,ShieldHalf:wv,ShieldHalfIcon:wv,ShieldIcon:$v,ShieldMinus:jv,ShieldMinusIcon:jv,ShieldOff:Cv,ShieldOffIcon:Cv,ShieldPlus:Nv,ShieldPlusIcon:Nv,ShieldQuestion:wo,ShieldQuestionIcon:wo,ShieldQuestionMark:wo,ShieldQuestionMarkIcon:wo,ShieldUser:Sv,ShieldUserIcon:Sv,ShieldX:Co,ShieldXIcon:Co,Ship:Av,ShipIcon:Av,ShipWheel:qv,ShipWheelIcon:qv,Shirt:zv,ShirtIcon:zv,ShoppingBag:Pv,ShoppingBagIcon:Pv,ShoppingBasket:Vv,ShoppingBasketIcon:Vv,ShoppingCart:Tv,ShoppingCartIcon:Tv,Shovel:Dv,ShovelIcon:Dv,ShowerHead:Hv,ShowerHeadIcon:Hv,Shredder:Bv,ShredderIcon:Bv,Shrimp:Rv,ShrimpIcon:Rv,Shrink:Fv,ShrinkIcon:Fv,Shrub:Ev,ShrubIcon:Ev,Shuffle:Uv,ShuffleIcon:Uv,Sidebar:ko,SidebarClose:uo,SidebarCloseIcon:uo,SidebarIcon:ko,SidebarOpen:yo,SidebarOpenIcon:yo,Sigma:Ov,SigmaIcon:Ov,SigmaSquare:vc,SigmaSquareIcon:vc,Signal:Xv,SignalHigh:Wv,SignalHighIcon:Wv,SignalIcon:Xv,SignalLow:Gv,SignalLowIcon:Gv,SignalMedium:Kv,SignalMediumIcon:Kv,SignalZero:Zv,SignalZeroIcon:Zv,Signature:Yv,SignatureIcon:Yv,Signpost:Qv,SignpostBig:Jv,SignpostBigIcon:Jv,SignpostIcon:Qv,Siren:e9,SirenIcon:e9,SkipBack:t9,SkipBackIcon:t9,SkipForward:a9,SkipForwardIcon:a9,Skull:n9,SkullIcon:n9,Slack:o9,SlackIcon:o9,Slash:c9,SlashIcon:c9,SlashSquare:xc,SlashSquareIcon:xc,Slice:i9,SliceIcon:i9,Sliders:jo,SlidersHorizontal:r9,SlidersHorizontalIcon:r9,SlidersIcon:jo,SlidersVertical:jo,SlidersVerticalIcon:jo,Smartphone:l9,SmartphoneCharging:s9,SmartphoneChargingIcon:s9,SmartphoneIcon:l9,SmartphoneNfc:d9,SmartphoneNfcIcon:d9,Smile:u9,SmileIcon:u9,SmilePlus:h9,SmilePlusIcon:h9,Snail:p9,SnailIcon:p9,Snowflake:y9,SnowflakeIcon:y9,SoapDispenserDroplet:k9,SoapDispenserDropletIcon:k9,Sofa:m9,SofaIcon:m9,SortAsc:ya,SortAscIcon:ya,SortDesc:ha,SortDescIcon:ha,Soup:f9,SoupIcon:f9,Space:g9,SpaceIcon:g9,Spade:v9,SpadeIcon:v9,Sparkle:x9,SparkleIcon:x9,Sparkles:No,SparklesIcon:No,Speaker:_9,SpeakerIcon:_9,Speech:M9,SpeechIcon:M9,SpellCheck:b9,SpellCheck2:L9,SpellCheck2Icon:L9,SpellCheckIcon:b9,Spline:w9,SplineIcon:w9,SplinePointer:I9,SplinePointerIcon:I9,Split:C9,SplitIcon:C9,SplitSquareHorizontal:_c,SplitSquareHorizontalIcon:_c,SplitSquareVertical:Mc,SplitSquareVerticalIcon:Mc,Spool:j9,SpoolIcon:j9,Spotlight:N9,SpotlightIcon:N9,SprayCan:S9,SprayCanIcon:S9,Sprout:$9,SproutIcon:$9,Square:F9,SquareActivity:Kt,SquareActivityIcon:Kt,SquareArrowDown:qo,SquareArrowDownIcon:qo,SquareArrowDownLeft:So,SquareArrowDownLeftIcon:So,SquareArrowDownRight:$o,SquareArrowDownRightIcon:$o,SquareArrowLeft:Ao,SquareArrowLeftIcon:Ao,SquareArrowOutDownLeft:zo,SquareArrowOutDownLeftIcon:zo,SquareArrowOutDownRight:Po,SquareArrowOutDownRightIcon:Po,SquareArrowOutUpLeft:Vo,SquareArrowOutUpLeftIcon:Vo,SquareArrowOutUpRight:To,SquareArrowOutUpRightIcon:To,SquareArrowRight:Do,SquareArrowRightIcon:Do,SquareArrowUp:Ro,SquareArrowUpIcon:Ro,SquareArrowUpLeft:Ho,SquareArrowUpLeftIcon:Ho,SquareArrowUpRight:Bo,SquareArrowUpRightIcon:Bo,SquareAsterisk:Fo,SquareAsteriskIcon:Fo,SquareBottomDashedScissors:Eo,SquareBottomDashedScissorsIcon:Eo,SquareChartGantt:bt,SquareChartGanttIcon:bt,SquareCheck:Uo,SquareCheckBig:Oo,SquareCheckBigIcon:Oo,SquareCheckIcon:Uo,SquareChevronDown:Wo,SquareChevronDownIcon:Wo,SquareChevronLeft:Go,SquareChevronLeftIcon:Go,SquareChevronRight:Ko,SquareChevronRightIcon:Ko,SquareChevronUp:Zo,SquareChevronUpIcon:Zo,SquareCode:Xo,SquareCodeIcon:Xo,SquareDashed:Qo,SquareDashedBottom:A9,SquareDashedBottomCode:q9,SquareDashedBottomCodeIcon:q9,SquareDashedBottomIcon:A9,SquareDashedIcon:Qo,SquareDashedKanban:Yo,SquareDashedKanbanIcon:Yo,SquareDashedMousePointer:Jo,SquareDashedMousePointerIcon:Jo,SquareDashedTopSolid:z9,SquareDashedTopSolidIcon:z9,SquareDivide:ec,SquareDivideIcon:ec,SquareDot:ac,SquareDotIcon:ac,SquareEqual:tc,SquareEqualIcon:tc,SquareFunction:nc,SquareFunctionIcon:nc,SquareGanttChart:bt,SquareGanttChartIcon:bt,SquareIcon:F9,SquareKanban:oc,SquareKanbanIcon:oc,SquareLibrary:cc,SquareLibraryIcon:cc,SquareM:ic,SquareMIcon:ic,SquareMenu:rc,SquareMenuIcon:rc,SquareMinus:sc,SquareMinusIcon:sc,SquareMousePointer:lc,SquareMousePointerIcon:lc,SquareParking:hc,SquareParkingIcon:hc,SquareParkingOff:dc,SquareParkingOffIcon:dc,SquarePause:P9,SquarePauseIcon:P9,SquarePen:at,SquarePenIcon:at,SquarePercent:uc,SquarePercentIcon:uc,SquarePi:pc,SquarePiIcon:pc,SquarePilcrow:yc,SquarePilcrowIcon:yc,SquarePlay:kc,SquarePlayIcon:kc,SquarePlus:mc,SquarePlusIcon:mc,SquarePower:fc,SquarePowerIcon:fc,SquareRadical:V9,SquareRadicalIcon:V9,SquareRoundCorner:T9,SquareRoundCornerIcon:T9,SquareScissors:gc,SquareScissorsIcon:gc,SquareSigma:vc,SquareSigmaIcon:vc,SquareSlash:xc,SquareSlashIcon:xc,SquareSplitHorizontal:_c,SquareSplitHorizontalIcon:_c,SquareSplitVertical:Mc,SquareSplitVerticalIcon:Mc,SquareSquare:D9,SquareSquareIcon:D9,SquareStack:H9,SquareStackIcon:H9,SquareStar:B9,SquareStarIcon:B9,SquareStop:R9,SquareStopIcon:R9,SquareTerminal:Lc,SquareTerminalIcon:Lc,SquareUser:Ic,SquareUserIcon:Ic,SquareUserRound:bc,SquareUserRoundIcon:bc,SquareX:wc,SquareXIcon:wc,SquaresExclude:E9,SquaresExcludeIcon:E9,SquaresIntersect:O9,SquaresIntersectIcon:O9,SquaresSubtract:U9,SquaresSubtractIcon:U9,SquaresUnite:W9,SquaresUniteIcon:W9,Squircle:K9,SquircleDashed:G9,SquircleDashedIcon:G9,SquircleIcon:K9,Squirrel:Z9,SquirrelIcon:Z9,Stamp:X9,StampIcon:X9,Star:ex,StarHalf:Y9,StarHalfIcon:Y9,StarIcon:ex,StarOff:J9,StarOffIcon:J9,Stars:No,StarsIcon:No,StepBack:Q9,StepBackIcon:Q9,StepForward:tx,StepForwardIcon:tx,Stethoscope:ax,StethoscopeIcon:ax,Sticker:nx,StickerIcon:nx,StickyNote:ox,StickyNoteIcon:ox,StopCircle:ln,StopCircleIcon:ln,Store:cx,StoreIcon:cx,StretchHorizontal:ix,StretchHorizontalIcon:ix,StretchVertical:rx,StretchVerticalIcon:rx,Strikethrough:sx,StrikethroughIcon:sx,Subscript:dx,SubscriptIcon:dx,Subtitles:La,SubtitlesIcon:La,Sun:kx,SunDim:lx,SunDimIcon:lx,SunIcon:kx,SunMedium:hx,SunMediumIcon:hx,SunMoon:ux,SunMoonIcon:ux,SunSnow:px,SunSnowIcon:px,Sunrise:yx,SunriseIcon:yx,Sunset:mx,SunsetIcon:mx,Superscript:fx,SuperscriptIcon:fx,SwatchBook:gx,SwatchBookIcon:gx,SwissFranc:vx,SwissFrancIcon:vx,SwitchCamera:xx,SwitchCameraIcon:xx,Sword:_x,SwordIcon:_x,Swords:Lx,SwordsIcon:Lx,Syringe:Mx,SyringeIcon:Mx,Table:$x,Table2:bx,Table2Icon:bx,TableCellsMerge:Ix,TableCellsMergeIcon:Ix,TableCellsSplit:wx,TableCellsSplitIcon:wx,TableColumnsSplit:Cx,TableColumnsSplitIcon:Cx,TableConfig:Mt,TableConfigIcon:Mt,TableIcon:$x,TableOfContents:jx,TableOfContentsIcon:jx,TableProperties:Nx,TablePropertiesIcon:Nx,TableRowsSplit:Sx,TableRowsSplitIcon:Sx,Tablet:Ax,TabletIcon:Ax,TabletSmartphone:qx,TabletSmartphoneIcon:qx,Tablets:zx,TabletsIcon:zx,Tag:Px,TagIcon:Px,Tags:Vx,TagsIcon:Vx,Tally1:Tx,Tally1Icon:Tx,Tally2:Dx,Tally2Icon:Dx,Tally3:Hx,Tally3Icon:Hx,Tally4:Bx,Tally4Icon:Bx,Tally5:Rx,Tally5Icon:Rx,Tangent:Fx,TangentIcon:Fx,Target:Ex,TargetIcon:Ex,Telescope:Ox,TelescopeIcon:Ox,Tent:Wx,TentIcon:Wx,TentTree:Ux,TentTreeIcon:Ux,Terminal:Gx,TerminalIcon:Gx,TerminalSquare:Lc,TerminalSquareIcon:Lc,TestTube:Kx,TestTube2:Cc,TestTube2Icon:Cc,TestTubeDiagonal:Cc,TestTubeDiagonalIcon:Cc,TestTubeIcon:Kx,TestTubes:Zx,TestTubesIcon:Zx,Text:e_,TextCursor:Yx,TextCursorIcon:Yx,TextCursorInput:Xx,TextCursorInputIcon:Xx,TextIcon:e_,TextQuote:Jx,TextQuoteIcon:Jx,TextSearch:Qx,TextSearchIcon:Qx,TextSelect:jc,TextSelectIcon:jc,TextSelection:jc,TextSelectionIcon:jc,Theater:t_,TheaterIcon:t_,Thermometer:c_,ThermometerIcon:c_,ThermometerSnowflake:a_,ThermometerSnowflakeIcon:a_,ThermometerSun:n_,ThermometerSunIcon:n_,ThumbsDown:o_,ThumbsDownIcon:o_,ThumbsUp:i_,ThumbsUpIcon:i_,Ticket:p_,TicketCheck:r_,TicketCheckIcon:r_,TicketIcon:p_,TicketMinus:s_,TicketMinusIcon:s_,TicketPercent:d_,TicketPercentIcon:d_,TicketPlus:l_,TicketPlusIcon:l_,TicketSlash:h_,TicketSlashIcon:h_,TicketX:u_,TicketXIcon:u_,Tickets:k_,TicketsIcon:k_,TicketsPlane:y_,TicketsPlaneIcon:y_,Timer:g_,TimerIcon:g_,TimerOff:m_,TimerOffIcon:m_,TimerReset:f_,TimerResetIcon:f_,ToggleLeft:v_,ToggleLeftIcon:v_,ToggleRight:x_,ToggleRightIcon:x_,Toilet:__,ToiletIcon:__,ToolCase:M_,ToolCaseIcon:M_,Tornado:b_,TornadoIcon:b_,Torus:L_,TorusIcon:L_,Touchpad:w_,TouchpadIcon:w_,TouchpadOff:I_,TouchpadOffIcon:I_,TowerControl:j_,TowerControlIcon:j_,ToyBrick:C_,ToyBrickIcon:C_,Tractor:N_,TractorIcon:N_,TrafficCone:S_,TrafficConeIcon:S_,Train:Nc,TrainFront:q_,TrainFrontIcon:q_,TrainFrontTunnel:$_,TrainFrontTunnelIcon:$_,TrainIcon:Nc,TrainTrack:A_,TrainTrackIcon:A_,TramFront:Nc,TramFrontIcon:Nc,Transgender:z_,TransgenderIcon:z_,Trash:P_,Trash2:It,Trash2Icon:It,TrashIcon:P_,TreeDeciduous:V_,TreeDeciduousIcon:V_,TreePalm:Sc,TreePalmIcon:Sc,TreePine:T_,TreePineIcon:T_,Trees:D_,TreesIcon:D_,Trello:H_,TrelloIcon:H_,TrendingDown:B_,TrendingDownIcon:B_,TrendingUp:R_,TrendingUpDown:F_,TrendingUpDownIcon:F_,TrendingUpIcon:R_,Triangle:O_,TriangleAlert:$c,TriangleAlertIcon:$c,TriangleDashed:E_,TriangleDashedIcon:E_,TriangleIcon:O_,TriangleRight:U_,TriangleRightIcon:U_,Trophy:W_,TrophyIcon:W_,Truck:K_,TruckElectric:G_,TruckElectricIcon:G_,TruckIcon:K_,TurkishLira:Z_,TurkishLiraIcon:Z_,Turntable:X_,TurntableIcon:X_,Turtle:Y_,TurtleIcon:Y_,Tv:Q_,Tv2:qc,Tv2Icon:qc,TvIcon:Q_,TvMinimal:qc,TvMinimalIcon:qc,TvMinimalPlay:J_,TvMinimalPlayIcon:J_,Twitch:eM,TwitchIcon:eM,Twitter:tM,TwitterIcon:tM,Type:nM,TypeIcon:nM,TypeOutline:aM,TypeOutlineIcon:aM,Umbrella:cM,UmbrellaIcon:cM,UmbrellaOff:oM,UmbrellaOffIcon:oM,Underline:iM,UnderlineIcon:iM,Undo:dM,Undo2:rM,Undo2Icon:rM,UndoDot:sM,UndoDotIcon:sM,UndoIcon:dM,UnfoldHorizontal:lM,UnfoldHorizontalIcon:lM,UnfoldVertical:hM,UnfoldVerticalIcon:hM,Ungroup:uM,UngroupIcon:uM,University:Ac,UniversityIcon:Ac,Unlink:mM,Unlink2:pM,Unlink2Icon:pM,UnlinkIcon:mM,Unlock:eo,UnlockIcon:eo,UnlockKeyhole:Qn,UnlockKeyholeIcon:Qn,Unplug:yM,UnplugIcon:yM,Upload:kM,UploadCloud:mn,UploadCloudIcon:mn,UploadIcon:kM,Usb:fM,UsbIcon:fM,User:jM,User2:Hc,User2Icon:Hc,UserCheck:gM,UserCheck2:zc,UserCheck2Icon:zc,UserCheckIcon:gM,UserCircle:un,UserCircle2:hn,UserCircle2Icon:hn,UserCircleIcon:un,UserCog:vM,UserCog2:Pc,UserCog2Icon:Pc,UserCogIcon:vM,UserIcon:jM,UserLock:xM,UserLockIcon:xM,UserMinus:_M,UserMinus2:Vc,UserMinus2Icon:Vc,UserMinusIcon:_M,UserPen:MM,UserPenIcon:MM,UserPlus:oi,UserPlus2:Tc,UserPlus2Icon:Tc,UserPlusIcon:oi,UserRound:Hc,UserRoundCheck:zc,UserRoundCheckIcon:zc,UserRoundCog:Pc,UserRoundCogIcon:Pc,UserRoundIcon:Hc,UserRoundMinus:Vc,UserRoundMinusIcon:Vc,UserRoundPen:LM,UserRoundPenIcon:LM,UserRoundPlus:Tc,UserRoundPlusIcon:Tc,UserRoundSearch:bM,UserRoundSearchIcon:bM,UserRoundX:Dc,UserRoundXIcon:Dc,UserSearch:IM,UserSearchIcon:IM,UserSquare:Ic,UserSquare2:bc,UserSquare2Icon:bc,UserSquareIcon:Ic,UserStar:wM,UserStarIcon:wM,UserX:CM,UserX2:Dc,UserX2Icon:Dc,UserXIcon:CM,Users:NM,Users2:Bc,Users2Icon:Bc,UsersIcon:NM,UsersRound:Bc,UsersRoundIcon:Bc,Utensils:Fc,UtensilsCrossed:Rc,UtensilsCrossedIcon:Rc,UtensilsIcon:Fc,UtilityPole:SM,UtilityPoleIcon:SM,Variable:$M,VariableIcon:$M,Vault:qM,VaultIcon:qM,VectorSquare:AM,VectorSquareIcon:AM,Vegan:zM,VeganIcon:zM,VenetianMask:PM,VenetianMaskIcon:PM,Venus:HM,VenusAndMars:VM,VenusAndMarsIcon:VM,VenusIcon:HM,Verified:fa,VerifiedIcon:fa,Vibrate:DM,VibrateIcon:DM,VibrateOff:TM,VibrateOffIcon:TM,Video:RM,VideoIcon:RM,VideoOff:BM,VideoOffIcon:BM,Videotape:FM,VideotapeIcon:FM,View:OM,ViewIcon:OM,Voicemail:EM,VoicemailIcon:EM,Volleyball:UM,VolleyballIcon:UM,Volume:YM,Volume1:WM,Volume1Icon:WM,Volume2:GM,Volume2Icon:GM,VolumeIcon:YM,VolumeOff:KM,VolumeOffIcon:KM,VolumeX:ZM,VolumeXIcon:ZM,Vote:XM,VoteIcon:XM,Wallet:QM,Wallet2:Ec,Wallet2Icon:Ec,WalletCards:JM,WalletCardsIcon:JM,WalletIcon:QM,WalletMinimal:Ec,WalletMinimalIcon:Ec,Wallpaper:eL,WallpaperIcon:eL,Wand:tL,Wand2:Oc,Wand2Icon:Oc,WandIcon:tL,WandSparkles:Oc,WandSparklesIcon:Oc,Warehouse:aL,WarehouseIcon:aL,WashingMachine:nL,WashingMachineIcon:nL,Watch:oL,WatchIcon:oL,Waves:iL,WavesIcon:iL,WavesLadder:cL,WavesLadderIcon:cL,Waypoints:rL,WaypointsIcon:rL,Webcam:sL,WebcamIcon:sL,Webhook:hL,WebhookIcon:hL,WebhookOff:dL,WebhookOffIcon:dL,Weight:lL,WeightIcon:lL,Wheat:pL,WheatIcon:pL,WheatOff:uL,WheatOffIcon:uL,WholeWord:yL,WholeWordIcon:yL,Wifi:ML,WifiCog:kL,WifiCogIcon:kL,WifiHigh:mL,WifiHighIcon:mL,WifiIcon:ML,WifiLow:fL,WifiLowIcon:fL,WifiOff:gL,WifiOffIcon:gL,WifiPen:vL,WifiPenIcon:vL,WifiSync:xL,WifiSyncIcon:xL,WifiZero:_L,WifiZeroIcon:_L,Wind:bL,WindArrowDown:LL,WindArrowDownIcon:LL,WindIcon:bL,Wine:wL,WineIcon:wL,WineOff:IL,WineOffIcon:IL,Workflow:CL,WorkflowIcon:CL,Worm:jL,WormIcon:jL,WrapText:NL,WrapTextIcon:NL,Wrench:SL,WrenchIcon:SL,X:ht,XCircle:Ut,XCircleIcon:Ut,XIcon:ht,XOctagon:so,XOctagonIcon:so,XSquare:wc,XSquareIcon:wc,Youtube:qL,YoutubeIcon:qL,Zap:AL,ZapIcon:AL,ZapOff:$L,ZapOffIcon:$L,ZoomIn:zL,ZoomInIcon:zL,ZoomOut:PL,ZoomOutIcon:PL,createLucideIcon:a.createLucideIcon,icons:Fde},Symbol.toStringTag,{value:"Module"})),Ede=({size:e=250,background:t="#fff",headerTop:n,headerBottom:c,headerTopStyle:i,headerBottomStyle:r,progress1:s,badgeList:d,progress3:l,style:h,className:u="",draggable:p=!1})=>{const k=e!==void 0?e:250,f=e?{size:e*.5,...s}:s,g=e?{size:e*.4,...l}:l,m={background:t,position:"relative",...h,...k&&{width:k}};return o.jsxs("div",{style:m,className:`stat-card ${u}`,children:[o.jsxs("div",{className:"stat-card-header",children:[o.jsx("div",{className:"stat-card-header-top",style:i,children:n}),c&&o.jsx("div",{className:"stat-card-header-bottom",style:r,children:c})]}),o.jsxs("div",{className:"stat-card-body",style:{opacity:p?0:1},children:[o.jsx("div",{className:"progress-row-single",children:o.jsx(bw,{...f})}),o.jsxs("div",{className:"progress-row-double",children:[o.jsx("div",{className:"progress-item",children:o.jsx(q$,{...d})}),o.jsx("div",{className:"progress-item",children:o.jsx(bw,{...g})})]})]}),p&&o.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:o.jsx(a.Move,{size:32,strokeWidth:1.5,style:{opacity:.8}})})]})},A$=y.createContext(void 0),Ct=()=>{const e=y.useContext(A$);if(!e)throw new Error("useNavigation must be used within a NavProvider");return e},Ode=({children:e,defaultActive:t=""})=>{const[n,c]=y.useState(t),[i,r]=y.useState(t),[s,d]=y.useState(void 0),[l,h]=y.useState(void 0),[u,p]=y.useState({}),k=(f,g)=>{p(m=>({...m,[f]:g}))};return o.jsx(A$.Provider,{value:{activeNav:n,setActiveNav:c,activeSubNav:i,setActiveSubNav:r,activeSwitchers:s,setActiveSwitchers:d,user:l,setUser:h,navCounts:u,setNavCount:k},children:e})},z$=({categories:e,logo:t="Menu",buttonContent:n,position:c="auto",closeOnClickOutside:i=!0,select:r,topContent:s})=>{const[d,l]=y.useState(!1),[h,u]=y.useState("right"),p=y.useRef(null),k=y.useRef(null),{activeNav:f,activeSubNav:g}=Ct();y.useEffect(()=>{if(!i)return;const _=x=>{p.current&&!p.current.contains(x.target)&&l(!1)};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[i]),y.useEffect(()=>{if(d&&c==="auto"&&k.current){const _=k.current.getBoundingClientRect(),x=window.innerWidth/2;u(_.left<x?"left":"right")}},[d,c]);const m=t?At[t]:null,v=c==="auto"?h:c;return o.jsxs("div",{className:"dropdown",ref:p,children:[o.jsxs("button",{ref:k,type:"button",className:"dropdown-button",onClick:()=>l(_=>!_),"aria-expanded":d,"aria-haspopup":"true",children:[m&&o.jsx(m,{size:20}),n&&o.jsx("span",{className:"button-text",children:n})]}),d&&o.jsxs("div",{className:`dropdown-content ${v}`,children:[s&&o.jsx("div",{className:"dropdown-top-content",children:s}),e?.map((_,x)=>o.jsxs("div",{className:"dropdown-category",children:[_.title&&o.jsx("div",{className:"category-title",children:_.title}),o.jsx("div",{className:"category-items",children:_.items.map((b,I)=>{const w=b.id??b.label,j=f===w||g===w,M=b.select??r;if(b.id==="language"){if(!M||!Array.isArray(M.options)||!M.onChange)return o.jsx("div",{className:"dropdown-language"},I);const S=Array.isArray(M.options)?M.options:[],N=S.some($=>$.code===M.value)?S:[{code:M.value??"",label:String(M.value??"")},...S];return o.jsx("div",{className:"dropdown-language",children:o.jsx("select",{name:M.name??"language",className:"language-select",value:M.value??"",onChange:$=>{const q=$.target.value;try{M.onChange(q)}catch(P){console.error("select onChange error",P)}},children:N.map($=>o.jsx("option",{value:$.code,children:$.label},$.code))})},I)}const L={className:`dropdown-item ${j?"active":""}`,onClick:()=>{b.onClick?.(),l(!1)},role:b.type==="button"||!b.href?"button":void 0};return b.type==="button"||!b.href?o.jsx("button",{type:"button",...L,children:b.label},I):o.jsx("a",{...L,href:b.href,children:b.label},I)})})]},x))]})]})},P$=({children:e,container:t=!1,item:n=!1,parent:c=!1,xs:i,sm:r,md:s,lg:d,xl:l,spacing:h=0,className:u="",uniqueKey:p=0,style:k={},width:f,order:g,onSwap:m,draggable:v=!1,displayNone:_=!1})=>{const[x,b]=y.useState([]);y.useEffect(()=>{const L=$=>{const q=[];return y.Children.forEach($,P=>{Array.isArray(P)?q.push(...L(P)):y.isValidElement(P)&&q.push(P)}),q},C=L(e).filter($=>y.isValidElement($)).map($=>{let q="";const P=$.props;return q=[P.xs?`grid-xs-${P.xs}`:"",P.sm?`grid-sm-${P.sm}`:"",P.md?`grid-md-${P.md}`:"",P.lg?`grid-lg-${P.lg}`:"",P.xl?`grid-xl-${P.xl}`:"",P.className?P.className:""].join(" ").trim(),{node:$,classes:q}});let N=C;g&&g.length>0&&(N=C.map(($,q)=>({...$,node:C[g[q]]?.node??$.node}))),b(N)},[e]);const I=(L,S)=>{L.stopPropagation(),L.dataTransfer.setData("dragIndex",S.toString()),L.dataTransfer.setData("parentKey",p.toString())},w=L=>{L.preventDefault(),L.stopPropagation()},j=(L,S)=>{L.preventDefault();const C=Number(L.dataTransfer.getData("dragIndex")),N=Number(L.dataTransfer.getData("parentKey"));if(t&&N!==p)return;const $=[...x];let q=-1,P=-1;if($.forEach((V,z)=>{if(y.isValidElement(V.node)){const A=V.node.props;A.uniqueKey===S&&(q=z),A.uniqueKey===C&&(P=z)}}),q===-1||P===-1)return;const D=$[P].node;$[P]={...$[P],node:$[q].node},$[q]={...$[q],node:D},b($),typeof m=="function"&&m(P,q)},M=c?[i?`grid-xs-${i}`:"",r?`grid-sm-${r}`:"",s?`grid-md-${s}`:"",d?`grid-lg-${d}`:"",l?`grid-xl-${l}`:""].join(" "):"";return!c&&f?k={...k,width:`${f}px`}:!c&&!f&&(k={...k,width:"100%"}),k={...k,height:"100%"},t?o.jsx("div",{className:`${u} grid-container ${M}`,style:{"--gap-grid":`${h}rem`,...k},children:x.map(L=>L.node.type?.displayName==="Grid"?v&&L.node?.props?.draggable!==!1?o.jsx("div",{draggable:!0,onDragStart:S=>I(S,L.node?.props?.uniqueKey),onDragOver:S=>w(S),onDrop:S=>j(S,L.node?.props?.uniqueKey),className:`grid-item grid-item-grabbing ${L.classes} ${L.node?.props?.displayNone?"grid-display-none":""}`,children:L.node},L.node?.props?.uniqueKey):o.jsx("div",{className:`grid-item ${L.classes} ${L.node?.props?.displayNone?"grid-display-none":""}`,children:L.node},L.node?.props?.uniqueKey):L.node)}):n?o.jsx("div",{className:`${u} grid-item ${M} ${_?"grid-display-none":""}`,style:{gap:`${h}rem`,...k},children:e}):o.jsx(o.Fragment,{children:e})};P$.displayName="Grid";const QL=({imagePath:e,...t})=>{const[n,c]=y.useState(!1);return y.useEffect(()=>{c(!0)},[]),n?o.jsx("div",{className:`logo logo--${t.size}`,children:o.jsx("a",{href:"/",children:o.jsx("img",{src:e,alt:"Saniia Smart Bed Management",className:"logo-image"})})}):o.jsx("div",{className:"logo logo-placeholder"})},Iw=({id:e,label:t,isActive:n=!1,onClick:c,href:i,highlightColor:r="#008CBA",moduleKey:s="",a11yConfig:d,...l})=>{const{setActiveNav:h}=Ct(),u=()=>{h(e),c?.(e)};return i?o.jsx("a",{href:i,className:`nav-item ${n?"active":""}`,style:n?{backgroundColor:r,color:"#fff"}:{},onClick:u,title:oe(d,e),...l,children:t}):o.jsx("div",{className:`nav-item ${n?"active":""}`,style:n?{backgroundColor:r,color:"#fff"}:{},onClick:u,title:oe(d,e),role:c?"button":"presentation",tabIndex:c?0:-1,...l,children:t})},V$=({items:e,onNavClick:t,highlightColor:n="#008CBA",moduleConfig:c={},dropdownPosition:i="auto"})=>{const{activeNav:r}=Ct(),[s,d]=y.useState(!0),[l,h]=y.useState(!1),[u,p]=y.useState("left"),k=y.useRef(null),f=y.useRef(null),g=y.useRef(null);y.useEffect(()=>{const x=()=>{if(k.current&&k.current.parentElement){const b=k.current.parentNode?.parentElement?.offsetWidth||0;d(b*.8<k.current.offsetWidth||b<1100)}};return x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[]),y.useEffect(()=>{if(l&&i==="auto"&&f.current){const x=f.current.getBoundingClientRect(),b=window.innerWidth/2;p(x.left<b?"left":"right")}},[l,i]),y.useEffect(()=>{if(!l)return;const x=b=>{g.current&&!g.current.contains(b.target)&&f.current&&!f.current.contains(b.target)&&h(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[l]);const m=x=>{t?.(x),h(!1)},v=e.find(x=>x.id===r)||e[0],_=i==="auto"?u:i;return o.jsx("div",{ref:k,children:s?o.jsxs("div",{className:"navbar-mobile",children:[o.jsxs("button",{ref:f,className:"navbar-dropdown-toggle",onClick:()=>h(!l),style:{backgroundColor:n,color:"#fff"},"aria-expanded":l,"aria-haspopup":"true",children:[v.label,o.jsx("span",{className:`dropdown-arrow ${l?"open":""}`})]}),l&&o.jsx("div",{ref:g,className:`navbar-dropdown ${_}`,children:e.map(x=>o.jsx(Iw,{id:x.id,label:x.label,href:x.moduleKey&&c[x.moduleKey]?x.href:void 0,isActive:r===x.id&&x.moduleKey!==void 0&&c[x.moduleKey],onClick:m,highlightColor:n},x.id))})]}):o.jsx("nav",{className:"navbar",children:e.map(x=>o.jsx(Iw,{id:x.id,label:x.label,href:x.moduleKey&&c[x.moduleKey]?x.href:void 0,isActive:r===x.id&&x.moduleKey!==void 0&&c[x.moduleKey],onClick:m,highlightColor:n},x.id))})})},T$=y.createContext(void 0),Ude=({children:e,initialTheme:t})=>{const[n,c]=y.useState(()=>{if(typeof window<"u")try{return localStorage.getItem("app-theme")||t}catch(r){return console.error("Error reading theme from localStorage:",r),t}return t});y.useEffect(()=>{const r=document.documentElement;if(r.removeAttribute("data-theme"),n&&n!=="default"&&r.setAttribute("data-theme",n),typeof window<"u")try{localStorage.setItem("app-theme",n)}catch(s){console.error("Error saving theme to localStorage:",s)}},[n]);const i=y.useCallback(r=>{c(r)},[]);return o.jsx(T$.Provider,{value:{themeName:n,setTheme:i},children:e})},D$=()=>{const e=y.useContext(T$);if(!e)throw new Error("useThemeContext must be used within a ThemeProvider");return e},eb=()=>{const{themeName:e,setTheme:t}=D$(),n=y.useCallback(c=>{t(c)},[t]);return{currentTheme:e,switchTheme:n}},vi=({colors:e={},leftIcon:t,rightIcon:n,checked:c=!1,onToggle:i,size:r=24,className:s="",style:d,a11yConfig:l})=>{const h=()=>i?.(!c),u=p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),h())};return o.jsxs("div",{role:"switch","aria-checked":c,tabIndex:0,title:oe(l),className:`switcher ${c?"switcher-checked":""} ${s}`,style:{"--bg":e.bg||"#1f2937","--active-bg":e.activeBg||"#facc15","--border":e.border||"#fff","--circle":e.circle||"#fff","--icon":e.icon||"#fbbf24","--icon2":e.icon2||e.icon||"#fbbf24","--size":`${r}px`,...d},onClick:h,onKeyDown:u,children:[o.jsx("div",{className:"switcher-circle"}),o.jsxs("div",{className:"switcher-icons",children:[t&&o.jsx("div",{className:"switcher-icon-left",children:t}),n&&o.jsx("div",{className:"switcher-icon-right",children:n})]})]})},ww=({lightTheme:e="light",darkTheme:t="dark",leftIcon:n="Sun",rightIcon:c="Moon",colors:i={bg:"#e5e7eb",activeBg:"#3b82f6",border:"#ffffff",circle:"#ffffff",icon:"#3b82f6",icon2:"#ffffff"},size:r=24,a11yConfig:s})=>{const{currentTheme:d,switchTheme:l}=eb(),[h,u]=y.useState(!1);if(y.useEffect(()=>{u(!0)},[]),!h)return null;const p=d===t,k=f=>{l(f?t:e)};return o.jsx(vi,{leftIcon:n,rightIcon:c,checked:p,onToggle:k,colors:i,size:r,a11yConfig:s})},Wde=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"M480-80 317-243l44-44 89 89v-252H198l84 84-44 44L80-480l159-159 44 44-85 85h252v-252l-84 84-44-44 158-158 158 158-44 44-84-84v252h252l-84-84 44-44 158 158-158 158-44-44 84-84H510v252l89-89 44 44z"})),ej=y.memo(Wde),H$=y.createContext(void 0),Gde=({children:e})=>{const[t,n]=y.useState(!1);y.useEffect(()=>{const i=localStorage.getItem("isDraggable");i!==null&&n(i==="true")},[]),y.useEffect(()=>{localStorage.setItem("isDraggable",String(t))},[t]);const c=i=>{n(i)};return o.jsx(H$.Provider,{value:{isDraggable:t,switchDraggable:c},children:e})},B$=()=>{const e=y.useContext(H$);if(!e)throw new Error("useDraggableSwitcher must be used inside a DraggableProvider");return e},RL=({leftIcon:e,rightIcon:t,colors:n={bg:"var(--color-switcher-background)",activeBg:"var(--color-primary)",border:"transparent",circle:"#ffffff",icon:"#10b981",icon2:"#ffffff"},size:c=24,a11yConfig:i})=>{const{isDraggable:r,switchDraggable:s}=B$(),[d,l]=y.useState(!1);if(y.useEffect(()=>{l(!0)},[]),!d)return null;const h=u=>{s(u)};return o.jsx(vi,{leftIcon:e||o.jsx(ej,{width:c*.55,height:c*.55,fill:"currentColor"}),rightIcon:t||o.jsx(ej,{width:c*.55,height:c*.55,fill:"currentColor"}),checked:r,onToggle:h,colors:n,size:c,a11yConfig:i})},Kde=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"M400.06-300Q508-300 584.5-376.13 661-452.25 661-561q0-107.92-76.5-183.46T400.06-820t-183.5 75.54T141-561q0 108.75 75.56 184.87Q292.12-300 400.06-300M371-448v-267h60v267zm-145 0v-184h60v184zm290 0v-143h60v143zM838-80 605-314q-42 35-94.24 54.5Q458.51-240 400-240q-133 0-226-93.5T81-560.7q0-133.71 92.8-226.5Q266.59-880 400.3-880q133.7 0 227.2 93T721-561q0 58.51-19.5 110.76Q682-398 647-356l233 233z"})),tj=y.memo(Kde),aj="disableLegendFilter",R$=y.createContext(void 0),Zde=({children:e})=>{const[t,n]=y.useState(!1);y.useEffect(()=>{try{const i=localStorage.getItem(aj);i!==null&&n(i==="true")}catch{return}},[]);const c=i=>{n(i);try{localStorage.setItem(aj,String(i))}catch{return}};return o.jsx(R$.Provider,{value:{disableLegendFilter:t,switchDisableLegendFilter:c},children:e})},F$=()=>{const e=y.useContext(R$);if(!e)throw new Error("useLegendFilterSwitcher must be used inside a LegendFilterProvider");return e},FL=({leftIcon:e,rightIcon:t,colors:n={bg:"var(--color-switcher-background)",activeBg:"#ef4444",border:"#ffffff",circle:"#ffffff",icon:"#ef4444",icon2:"#ffffff"},size:c=24,a11yConfig:i})=>{const{disableLegendFilter:r,switchDisableLegendFilter:s}=F$(),[d,l]=y.useState(!1);if(y.useEffect(()=>{l(!0)},[]),!d)return null;const h=u=>{s(u)};return o.jsx(vi,{leftIcon:e||o.jsx(tj,{width:c*.55,height:c*.55,fill:"currentColor"}),rightIcon:t||o.jsx(tj,{width:c*.55,height:c*.55,fill:"currentColor"}),checked:r,onToggle:h,colors:n,size:c,a11yConfig:i})},E$=y.createContext(void 0),Xde=({children:e})=>{const[t,n]=y.useState(!1);y.useEffect(()=>{const i=localStorage.getItem("showData");i!==null&&n(i==="true")},[]),y.useEffect(()=>{localStorage.setItem("showData",String(t))},[t]);const c=i=>{n(i)};return o.jsx(E$.Provider,{value:{showData:t,switchShowData:c},children:e})},O$=()=>{const e=y.useContext(E$);if(!e)throw new Error("useShowDataSwitcher must be used inside a ShowDataProvider");return e},Yde=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"M600.5-379.5Q650-429 650-500t-49.5-120.5T480-670t-120.5 49.5T310-500t49.5 120.5T480-330t120.5-49.5m-200-41Q368-453 368-500t32.5-79.5T480-612t79.5 32.5T592-500t-32.5 79.5T480-388t-79.5-32.5M216-283Q98-366 40-500q58-134 176-217t264-83 264 83 176 217q-58 134-176 217t-264 83-264-83m486.5-42.5Q804-391 857-500q-53-109-154.5-174.5T480-740t-222.5 65.5T102-500q54 109 155.5 174.5T480-260t222.5-65.5"})),nj=y.memo(Yde),EL=({size:e=24,colors:t={bg:"var(--color-switcher-background)",activeBg:"#10b981",border:"#ffffff",circle:"#ffffff",icon:"#10b981",icon2:"#ffffff"},a11yConfig:n})=>{const{showData:c,switchShowData:i}=O$(),[r,s]=y.useState(!1);return y.useEffect(()=>{s(!0)},[]),r?o.jsx(vi,{checked:c,onToggle:d=>i(d),size:e,leftIcon:o.jsx(nj,{width:e*.55,height:e*.55,fill:"currentColor"}),rightIcon:o.jsx(nj,{width:e*.55,height:e*.55,fill:"currentColor"}),colors:t,a11yConfig:n}):null},Jde=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"M284-277h60v-205h-60zm332 0h60v-420h-60zm-166 0h60v-118h-60zm0-205h60v-60h-60zM180-120q-24 0-42-18t-18-42v-600q0-24 18-42t42-18h600q24 0 42 18t18 42v600q0 24-18 42t-42 18zm0-60h600v-600H180zm0-600v600z"})),U$=y.memo(Jde);function Cw({items:e,onSave:t,loading:n,disabled:c,saveLabel:i,savingLabel:r,buttonTitle:s}){const[d,l]=y.useState(!1),[h,u]=y.useState(e);y.useEffect(()=>{u(e)},[e]);const p=(f,g)=>{u(m=>m.map(v=>v.component_key===f&&g>3?{...v,visible:!v.visible}:v))},k=()=>{t(h),l(!1)};return o.jsxs("div",{style:{position:"relative",display:"inline-block"},children:[o.jsx("div",{onClick:()=>c||l(f=>!f),style:{cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:"var(--color-primary)"},title:s,children:o.jsx(U$,{fill:"currentColor"})}),d&&o.jsxs("div",{style:{position:"absolute",top:"110%",right:0,minWidth:220,background:"#fff",border:"1px solid var(--color-border)",borderRadius:8,boxShadow:"0 4px 16px rgba(0,0,0,0.08)",zIndex:1e3,padding:12},children:[o.jsx("ul",{style:{listStyle:"none",padding:0,margin:0,marginBottom:12},children:h.map((f,g)=>o.jsxs("li",{style:{display:"flex",alignItems:"center",marginBottom:4},children:[o.jsx("input",{type:"checkbox",checked:f.visible,disabled:g<4,onChange:()=>p(f.component_key,g),style:{marginRight:8}}),o.jsx("span",{style:{color:g<4?"#6b7280":"#111827"},children:f.label}),g<4&&o.jsx("span",{style:{fontSize:"var(--text-paragraph)",color:"#9ca3af",marginLeft:6}})]},f.component_key))}),o.jsx("button",{type:"button",onClick:k,disabled:n,style:{padding:"6px 18px",borderRadius:6,border:"none",background:"var(--color-primary)",color:"#fff",fontWeight:600,cursor:"pointer"},children:n?r:i})]})]})}const Qde=({logoPath:e,navItems:t,onNavClick:n,dropdownItems:c,headerBg:i,highlightColor:r="#1387C8",moduleConfig:s={},componentVisibilityItems:d=[],onComponentVisibilitySave:l,componentVisibilityLoading:h=!1,componentVisibilitySaveLabel:u,componentVisibilitySavingLabel:p,componentVisibilityButtonTitle:k})=>{const{activeSwitchers:f}=Ct(),g=f?.draggable===!0,m=f?.showData===!0,v=f?.legendFilter===!0,_=f?.componentVisibility===!0&&d&&d.length>0;return o.jsx("header",{className:"header",style:{backgroundColor:i},children:o.jsxs("div",{className:"header-layout-container",children:[o.jsxs("div",{className:"header-left",children:[o.jsx("a",{href:"/",children:o.jsx(QL,{imagePath:e})}),o.jsx(V$,{moduleConfig:s,items:t,onNavClick:n,highlightColor:r})]}),o.jsxs("div",{className:"header-right",children:[o.jsxs("div",{className:"switcher-container",children:[g&&o.jsx(RL,{}),m&&o.jsx(EL,{}),v&&o.jsx(FL,{}),o.jsx(ww,{}),_&&o.jsx(Cw,{items:d,onSave:l||(()=>{}),loading:h,saveLabel:u,savingLabel:p,buttonTitle:k})]}),o.jsx(z$,{categories:c?.categories,buttonContent:c?.buttonContent,topContent:o.jsxs("div",{className:"dropdown-switchers",children:[g&&o.jsx(RL,{}),m&&o.jsx(EL,{}),v&&o.jsx(FL,{}),o.jsx(ww,{}),_&&o.jsx(Cw,{items:d,onSave:l||(()=>{}),loading:h,saveLabel:u,savingLabel:p,buttonTitle:k})]})})]})]})})},W$=({icon:e,text:t,size:n=16,color:c="currentColor",className:i="",active:r=!1,href:s,a11yConfig:d})=>{const l=e?At[e]:null,h=s?"a":"div";return o.jsxs(h,{className:`icon-text ${r?"icon-text-active":""} ${i}`,style:{color:c},title:oe(d,t),role:"text","aria-label":t,...s?{href:s}:{},children:[l&&o.jsx(l,{size:n,"aria-hidden":"true"}),o.jsx("span",{children:t})]})},Qc=e=>typeof e=="number"?`${e}px`:e,e0e=({title:e,titleColor:t="#1c1b1f",headerColor:n="#ECEEF0",entryLabel:c="Entrée",entryValue:i,exitLabel:r="Sortie",exitValue:s,timeLabelColor:d="#6b7280",timeLabelFontSize:l="0.85rem",timeLabelFontWeight:h=400,timeLabelLineHeight:u=1,timeValueColor:p="#1c1b1f",rows:k=[],textFontSize:f="1.1rem",textFontWeight:g=700,textLineHeight:m=1,titleMinHeight:v,backgroundColor:_="#ffffff",borderColor:x="#D2D6D8",width:b,className:I,onClick:w,ariaLabel:j,a11yConfig:M,titleA11yConfig:L,entryLabelA11yConfig:S,exitLabelA11yConfig:C})=>{const N=oe(M),$=oe(L,L?.titleKey?void 0:e),q=oe(S,S?.titleKey?void 0:c),P=oe(C,C?.titleKey?void 0:r);return o.jsxs(t0e,{$width:b,$borderColor:x,className:I,onClick:w,role:w?"button":"group","aria-label":j||e,title:N,tabIndex:w?0:void 0,onKeyDown:D=>w&&D.key==="Enter"&&w(),children:[o.jsxs(a0e,{$bgColor:n,$borderColor:x,children:[e&&o.jsx(o0e,{$color:t,$fontSize:f,$fontWeight:g,$lineHeight:m,$minHeight:v,title:$,children:e}),(i||s)&&o.jsxs(c0e,{children:[i&&o.jsxs(oj,{children:[o.jsx(cj,{$color:d,$fontSize:l,$fontWeight:h,$lineHeight:u,title:q,children:c}),o.jsx(ij,{$color:p,children:i})]}),s&&o.jsxs(oj,{children:[o.jsx(cj,{$color:d,$fontSize:l,$fontWeight:h,$lineHeight:u,title:P,children:r}),o.jsx(ij,{$color:p,children:s})]})]}),o.jsx(n0e,{$bgColor:n})]}),k.length>0&&o.jsx(i0e,{$bgColor:_,children:k.map((D,V)=>o.jsxs(r0e,{title:oe(D.a11yConfig),children:[D.icon&&o.jsx(s0e,{"aria-hidden":"true",children:D.icon}),o.jsx(d0e,{$fontSize:f,$fontWeight:g,$lineHeight:m,children:D.text})]},V))})]})},t0e=O.div`
|
|
8161
|
+
*/const At=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:Ei,AArrowDownIcon:Ei,AArrowUp:Oi,AArrowUpIcon:Oi,ALargeSmall:Ui,ALargeSmallIcon:Ui,Accessibility:U1,AccessibilityIcon:U1,Activity:W1,ActivityIcon:W1,ActivitySquare:Kt,ActivitySquareIcon:Kt,AirVent:Wi,AirVentIcon:Wi,Airplay:Gi,AirplayIcon:Gi,AlarmCheck:ra,AlarmCheckIcon:ra,AlarmClock:Zi,AlarmClockCheck:ra,AlarmClockCheckIcon:ra,AlarmClockIcon:Zi,AlarmClockMinus:sa,AlarmClockMinusIcon:sa,AlarmClockOff:Ki,AlarmClockOffIcon:Ki,AlarmClockPlus:da,AlarmClockPlusIcon:da,AlarmMinus:sa,AlarmMinusIcon:sa,AlarmPlus:da,AlarmPlusIcon:da,AlarmSmoke:Xi,AlarmSmokeIcon:Xi,Album:Yi,AlbumIcon:Yi,AlertCircle:Ta,AlertCircleIcon:Ta,AlertOctagon:io,AlertOctagonIcon:io,AlertTriangle:$c,AlertTriangleIcon:$c,AlignCenter:nr,AlignCenterHorizontal:Ji,AlignCenterHorizontalIcon:Ji,AlignCenterIcon:nr,AlignCenterVertical:Qi,AlignCenterVerticalIcon:Qi,AlignEndHorizontal:er,AlignEndHorizontalIcon:er,AlignEndVertical:tr,AlignEndVerticalIcon:tr,AlignHorizontalDistributeCenter:ar,AlignHorizontalDistributeCenterIcon:ar,AlignHorizontalDistributeEnd:or,AlignHorizontalDistributeEndIcon:or,AlignHorizontalDistributeStart:cr,AlignHorizontalDistributeStartIcon:cr,AlignHorizontalJustifyCenter:ir,AlignHorizontalJustifyCenterIcon:ir,AlignHorizontalJustifyEnd:rr,AlignHorizontalJustifyEndIcon:rr,AlignHorizontalJustifyStart:sr,AlignHorizontalJustifyStartIcon:sr,AlignHorizontalSpaceAround:dr,AlignHorizontalSpaceAroundIcon:dr,AlignHorizontalSpaceBetween:hr,AlignHorizontalSpaceBetweenIcon:hr,AlignJustify:lr,AlignJustifyIcon:lr,AlignLeft:ur,AlignLeftIcon:ur,AlignRight:pr,AlignRightIcon:pr,AlignStartHorizontal:yr,AlignStartHorizontalIcon:yr,AlignStartVertical:kr,AlignStartVerticalIcon:kr,AlignVerticalDistributeCenter:fr,AlignVerticalDistributeCenterIcon:fr,AlignVerticalDistributeEnd:mr,AlignVerticalDistributeEndIcon:mr,AlignVerticalDistributeStart:vr,AlignVerticalDistributeStartIcon:vr,AlignVerticalJustifyCenter:gr,AlignVerticalJustifyCenterIcon:gr,AlignVerticalJustifyEnd:xr,AlignVerticalJustifyEndIcon:xr,AlignVerticalJustifyStart:_r,AlignVerticalJustifyStartIcon:_r,AlignVerticalSpaceAround:Lr,AlignVerticalSpaceAroundIcon:Lr,AlignVerticalSpaceBetween:Mr,AlignVerticalSpaceBetweenIcon:Mr,Ambulance:br,AmbulanceIcon:br,Ampersand:Ir,AmpersandIcon:Ir,Ampersands:wr,AmpersandsIcon:wr,Amphora:Cr,AmphoraIcon:Cr,Anchor:jr,AnchorIcon:jr,Angry:Nr,AngryIcon:Nr,Annoyed:Sr,AnnoyedIcon:Sr,Antenna:$r,AntennaIcon:$r,Anvil:qr,AnvilIcon:qr,Aperture:Ar,ApertureIcon:Ar,AppWindow:Pr,AppWindowIcon:Pr,AppWindowMac:zr,AppWindowMacIcon:zr,Apple:Vr,AppleIcon:Vr,Archive:Hr,ArchiveIcon:Hr,ArchiveRestore:Tr,ArchiveRestoreIcon:Tr,ArchiveX:Dr,ArchiveXIcon:Dr,AreaChart:ba,AreaChartIcon:ba,Armchair:Br,ArmchairIcon:Br,ArrowBigDown:Fr,ArrowBigDownDash:Rr,ArrowBigDownDashIcon:Rr,ArrowBigDownIcon:Fr,ArrowBigLeft:Or,ArrowBigLeftDash:Er,ArrowBigLeftDashIcon:Er,ArrowBigLeftIcon:Or,ArrowBigRight:Wr,ArrowBigRightDash:Ur,ArrowBigRightDashIcon:Ur,ArrowBigRightIcon:Wr,ArrowBigUp:Kr,ArrowBigUpDash:Gr,ArrowBigUpDashIcon:Gr,ArrowBigUpIcon:Kr,ArrowDown:M1,ArrowDown01:Zr,ArrowDown01Icon:Zr,ArrowDown10:Xr,ArrowDown10Icon:Xr,ArrowDownAZ:la,ArrowDownAZIcon:la,ArrowDownAz:la,ArrowDownAzIcon:la,ArrowDownCircle:Da,ArrowDownCircleIcon:Da,ArrowDownFromLine:Yr,ArrowDownFromLineIcon:Yr,ArrowDownIcon:M1,ArrowDownLeft:Jr,ArrowDownLeftFromCircle:Ba,ArrowDownLeftFromCircleIcon:Ba,ArrowDownLeftFromSquare:zo,ArrowDownLeftFromSquareIcon:zo,ArrowDownLeftIcon:Jr,ArrowDownLeftSquare:So,ArrowDownLeftSquareIcon:So,ArrowDownNarrowWide:Qr,ArrowDownNarrowWideIcon:Qr,ArrowDownRight:es,ArrowDownRightFromCircle:Ra,ArrowDownRightFromCircleIcon:Ra,ArrowDownRightFromSquare:Po,ArrowDownRightFromSquareIcon:Po,ArrowDownRightIcon:es,ArrowDownRightSquare:$o,ArrowDownRightSquareIcon:$o,ArrowDownSquare:qo,ArrowDownSquareIcon:qo,ArrowDownToDot:ts,ArrowDownToDotIcon:ts,ArrowDownToLine:as,ArrowDownToLineIcon:as,ArrowDownUp:ns,ArrowDownUpIcon:ns,ArrowDownWideNarrow:ha,ArrowDownWideNarrowIcon:ha,ArrowDownZA:ua,ArrowDownZAIcon:ua,ArrowDownZa:ua,ArrowDownZaIcon:ua,ArrowLeft:G1,ArrowLeftCircle:Ha,ArrowLeftCircleIcon:Ha,ArrowLeftFromLine:os,ArrowLeftFromLineIcon:os,ArrowLeftIcon:G1,ArrowLeftRight:cs,ArrowLeftRightIcon:cs,ArrowLeftSquare:Ao,ArrowLeftSquareIcon:Ao,ArrowLeftToLine:is,ArrowLeftToLineIcon:is,ArrowRight:ls,ArrowRightCircle:Oa,ArrowRightCircleIcon:Oa,ArrowRightFromLine:rs,ArrowRightFromLineIcon:rs,ArrowRightIcon:ls,ArrowRightLeft:ss,ArrowRightLeftIcon:ss,ArrowRightSquare:Do,ArrowRightSquareIcon:Do,ArrowRightToLine:ds,ArrowRightToLineIcon:ds,ArrowUp:L1,ArrowUp01:hs,ArrowUp01Icon:hs,ArrowUp10:us,ArrowUp10Icon:us,ArrowUpAZ:pa,ArrowUpAZIcon:pa,ArrowUpAz:pa,ArrowUpAzIcon:pa,ArrowUpCircle:Ua,ArrowUpCircleIcon:Ua,ArrowUpDown:ps,ArrowUpDownIcon:ps,ArrowUpFromDot:ys,ArrowUpFromDotIcon:ys,ArrowUpFromLine:ks,ArrowUpFromLineIcon:ks,ArrowUpIcon:L1,ArrowUpLeft:ms,ArrowUpLeftFromCircle:Fa,ArrowUpLeftFromCircleIcon:Fa,ArrowUpLeftFromSquare:Vo,ArrowUpLeftFromSquareIcon:Vo,ArrowUpLeftIcon:ms,ArrowUpLeftSquare:Ho,ArrowUpLeftSquareIcon:Ho,ArrowUpNarrowWide:ya,ArrowUpNarrowWideIcon:ya,ArrowUpRight:fs,ArrowUpRightFromCircle:Ea,ArrowUpRightFromCircleIcon:Ea,ArrowUpRightFromSquare:To,ArrowUpRightFromSquareIcon:To,ArrowUpRightIcon:fs,ArrowUpRightSquare:Bo,ArrowUpRightSquareIcon:Bo,ArrowUpSquare:Ro,ArrowUpSquareIcon:Ro,ArrowUpToLine:gs,ArrowUpToLineIcon:gs,ArrowUpWideNarrow:vs,ArrowUpWideNarrowIcon:vs,ArrowUpZA:ka,ArrowUpZAIcon:ka,ArrowUpZa:ka,ArrowUpZaIcon:ka,ArrowsUpFromLine:xs,ArrowsUpFromLineIcon:xs,Asterisk:_s,AsteriskIcon:_s,AsteriskSquare:Fo,AsteriskSquareIcon:Fo,AtSign:Ms,AtSignIcon:Ms,Atom:Ls,AtomIcon:Ls,AudioLines:bs,AudioLinesIcon:bs,AudioWaveform:Is,AudioWaveformIcon:Is,Award:ws,AwardIcon:ws,Axe:Cs,AxeIcon:Cs,Axis3D:ma,Axis3DIcon:ma,Axis3d:ma,Axis3dIcon:ma,Baby:js,BabyIcon:js,Backpack:Ns,BackpackIcon:Ns,Badge:Us,BadgeAlert:Ss,BadgeAlertIcon:Ss,BadgeCent:$s,BadgeCentIcon:$s,BadgeCheck:fa,BadgeCheckIcon:fa,BadgeDollarSign:qs,BadgeDollarSignIcon:qs,BadgeEuro:As,BadgeEuroIcon:As,BadgeHelp:ga,BadgeHelpIcon:ga,BadgeIcon:Us,BadgeIndianRupee:zs,BadgeIndianRupeeIcon:zs,BadgeInfo:Ps,BadgeInfoIcon:Ps,BadgeJapaneseYen:Ts,BadgeJapaneseYenIcon:Ts,BadgeMinus:Vs,BadgeMinusIcon:Vs,BadgePercent:Ds,BadgePercentIcon:Ds,BadgePlus:Hs,BadgePlusIcon:Hs,BadgePoundSterling:Bs,BadgePoundSterlingIcon:Bs,BadgeQuestionMark:ga,BadgeQuestionMarkIcon:ga,BadgeRussianRuble:Rs,BadgeRussianRubleIcon:Rs,BadgeSwissFranc:Fs,BadgeSwissFrancIcon:Fs,BadgeTurkishLira:Es,BadgeTurkishLiraIcon:Es,BadgeX:Os,BadgeXIcon:Os,BaggageClaim:Ws,BaggageClaimIcon:Ws,Ban:Gs,BanIcon:Gs,Banana:Ks,BananaIcon:Ks,Bandage:Zs,BandageIcon:Zs,Banknote:Qs,BanknoteArrowDown:Xs,BanknoteArrowDownIcon:Xs,BanknoteArrowUp:Ys,BanknoteArrowUpIcon:Ys,BanknoteIcon:Qs,BanknoteX:Js,BanknoteXIcon:Js,BarChart:qa,BarChart2:Aa,BarChart2Icon:Aa,BarChart3:Sa,BarChart3Icon:Sa,BarChart4:Na,BarChart4Icon:Na,BarChartBig:ja,BarChartBigIcon:ja,BarChartHorizontal:wa,BarChartHorizontalBig:Ia,BarChartHorizontalBigIcon:Ia,BarChartHorizontalIcon:wa,BarChartIcon:qa,Barcode:e2,BarcodeIcon:e2,Barrel:t2,BarrelIcon:t2,Baseline:a2,BaselineIcon:a2,Bath:n2,BathIcon:n2,Battery:l2,BatteryCharging:o2,BatteryChargingIcon:o2,BatteryFull:c2,BatteryFullIcon:c2,BatteryIcon:l2,BatteryLow:i2,BatteryLowIcon:i2,BatteryMedium:r2,BatteryMediumIcon:r2,BatteryPlus:s2,BatteryPlusIcon:s2,BatteryWarning:d2,BatteryWarningIcon:d2,Beaker:h2,BeakerIcon:h2,Bean:p2,BeanIcon:p2,BeanOff:u2,BeanOffIcon:u2,Bed:m2,BedDouble:y2,BedDoubleIcon:y2,BedIcon:m2,BedSingle:k2,BedSingleIcon:k2,Beef:f2,BeefIcon:f2,Beer:v2,BeerIcon:v2,BeerOff:g2,BeerOffIcon:g2,Bell:I2,BellDot:x2,BellDotIcon:x2,BellElectric:_2,BellElectricIcon:_2,BellIcon:I2,BellMinus:M2,BellMinusIcon:M2,BellOff:L2,BellOffIcon:L2,BellPlus:b2,BellPlusIcon:b2,BellRing:w2,BellRingIcon:w2,BetweenHorizonalEnd:va,BetweenHorizonalEndIcon:va,BetweenHorizonalStart:xa,BetweenHorizonalStartIcon:xa,BetweenHorizontalEnd:va,BetweenHorizontalEndIcon:va,BetweenHorizontalStart:xa,BetweenHorizontalStartIcon:xa,BetweenVerticalEnd:j2,BetweenVerticalEndIcon:j2,BetweenVerticalStart:C2,BetweenVerticalStartIcon:C2,BicepsFlexed:N2,BicepsFlexedIcon:N2,Bike:$2,BikeIcon:$2,Binary:S2,BinaryIcon:S2,Binoculars:q2,BinocularsIcon:q2,Biohazard:A2,BiohazardIcon:A2,Bird:z2,BirdIcon:z2,Bitcoin:P2,BitcoinIcon:P2,Blend:V2,BlendIcon:V2,Blinds:T2,BlindsIcon:T2,Blocks:D2,BlocksIcon:D2,Bluetooth:F2,BluetoothConnected:H2,BluetoothConnectedIcon:H2,BluetoothIcon:F2,BluetoothOff:B2,BluetoothOffIcon:B2,BluetoothSearching:R2,BluetoothSearchingIcon:R2,Bold:E2,BoldIcon:E2,Bolt:O2,BoltIcon:O2,Bomb:U2,BombIcon:U2,Bone:W2,BoneIcon:W2,Book:md,BookA:G2,BookAIcon:G2,BookAlert:K2,BookAlertIcon:K2,BookAudio:Z2,BookAudioIcon:Z2,BookCheck:X2,BookCheckIcon:X2,BookCopy:Y2,BookCopyIcon:Y2,BookDashed:_a,BookDashedIcon:_a,BookDown:J2,BookDownIcon:J2,BookHeadphones:Q2,BookHeadphonesIcon:Q2,BookHeart:ed,BookHeartIcon:ed,BookIcon:md,BookImage:td,BookImageIcon:td,BookKey:ad,BookKeyIcon:ad,BookLock:nd,BookLockIcon:nd,BookMarked:cd,BookMarkedIcon:cd,BookMinus:od,BookMinusIcon:od,BookOpen:sd,BookOpenCheck:id,BookOpenCheckIcon:id,BookOpenIcon:sd,BookOpenText:rd,BookOpenTextIcon:rd,BookPlus:dd,BookPlusIcon:dd,BookTemplate:_a,BookTemplateIcon:_a,BookText:ld,BookTextIcon:ld,BookType:hd,BookTypeIcon:hd,BookUp:pd,BookUp2:ud,BookUp2Icon:ud,BookUpIcon:pd,BookUser:yd,BookUserIcon:yd,BookX:kd,BookXIcon:kd,Bookmark:_d,BookmarkCheck:fd,BookmarkCheckIcon:fd,BookmarkIcon:_d,BookmarkMinus:gd,BookmarkMinusIcon:gd,BookmarkPlus:vd,BookmarkPlusIcon:vd,BookmarkX:xd,BookmarkXIcon:xd,BoomBox:Md,BoomBoxIcon:Md,Bot:Id,BotIcon:Id,BotMessageSquare:Ld,BotMessageSquareIcon:Ld,BotOff:bd,BotOffIcon:bd,BottleWine:wd,BottleWineIcon:wd,BowArrow:Cd,BowArrowIcon:Cd,Box:jd,BoxIcon:jd,BoxSelect:Qo,BoxSelectIcon:Qo,Boxes:Nd,BoxesIcon:Nd,Braces:Ma,BracesIcon:Ma,Brackets:Sd,BracketsIcon:Sd,Brain:Ad,BrainCircuit:$d,BrainCircuitIcon:$d,BrainCog:qd,BrainCogIcon:qd,BrainIcon:Ad,BrickWall:Vd,BrickWallFire:zd,BrickWallFireIcon:zd,BrickWallIcon:Vd,BrickWallShield:Pd,BrickWallShieldIcon:Pd,Briefcase:Bd,BriefcaseBusiness:Td,BriefcaseBusinessIcon:Td,BriefcaseConveyorBelt:Dd,BriefcaseConveyorBeltIcon:Dd,BriefcaseIcon:Bd,BriefcaseMedical:Hd,BriefcaseMedicalIcon:Hd,BringToFront:Rd,BringToFrontIcon:Rd,Brush:Ed,BrushCleaning:Fd,BrushCleaningIcon:Fd,BrushIcon:Ed,Bubbles:Od,BubblesIcon:Od,Bug:Kd,BugIcon:Kd,BugOff:Ud,BugOffIcon:Ud,BugPlay:Wd,BugPlayIcon:Wd,Building:Zd,Building2:Gd,Building2Icon:Gd,BuildingIcon:Zd,Bus:Yd,BusFront:Xd,BusFrontIcon:Xd,BusIcon:Yd,Cable:Qd,CableCar:Jd,CableCarIcon:Jd,CableIcon:Qd,Cake:t0,CakeIcon:t0,CakeSlice:e0,CakeSliceIcon:e0,Calculator:a0,CalculatorIcon:a0,Calendar:K1,Calendar1:n0,Calendar1Icon:n0,CalendarArrowDown:o0,CalendarArrowDownIcon:o0,CalendarArrowUp:c0,CalendarArrowUpIcon:c0,CalendarCheck:r0,CalendarCheck2:i0,CalendarCheck2Icon:i0,CalendarCheckIcon:r0,CalendarClock:s0,CalendarClockIcon:s0,CalendarCog:d0,CalendarCogIcon:d0,CalendarDays:l0,CalendarDaysIcon:l0,CalendarFold:h0,CalendarFoldIcon:h0,CalendarHeart:u0,CalendarHeartIcon:u0,CalendarIcon:K1,CalendarMinus:y0,CalendarMinus2:p0,CalendarMinus2Icon:p0,CalendarMinusIcon:y0,CalendarOff:k0,CalendarOffIcon:k0,CalendarPlus:f0,CalendarPlus2:m0,CalendarPlus2Icon:m0,CalendarPlusIcon:f0,CalendarRange:g0,CalendarRangeIcon:g0,CalendarSearch:v0,CalendarSearchIcon:v0,CalendarSync:x0,CalendarSyncIcon:x0,CalendarX:M0,CalendarX2:_0,CalendarX2Icon:_0,CalendarXIcon:M0,Camera:b0,CameraIcon:b0,CameraOff:L0,CameraOffIcon:L0,CandlestickChart:Ca,CandlestickChartIcon:Ca,Candy:C0,CandyCane:I0,CandyCaneIcon:I0,CandyIcon:C0,CandyOff:w0,CandyOffIcon:w0,Cannabis:j0,CannabisIcon:j0,Captions:La,CaptionsIcon:La,CaptionsOff:N0,CaptionsOffIcon:N0,Car:q0,CarFront:S0,CarFrontIcon:S0,CarIcon:q0,CarTaxiFront:$0,CarTaxiFrontIcon:$0,Caravan:A0,CaravanIcon:A0,CardSim:z0,CardSimIcon:z0,Carrot:P0,CarrotIcon:P0,CaseLower:V0,CaseLowerIcon:V0,CaseSensitive:T0,CaseSensitiveIcon:T0,CaseUpper:D0,CaseUpperIcon:D0,CassetteTape:H0,CassetteTapeIcon:H0,Cast:B0,CastIcon:B0,Castle:F0,CastleIcon:F0,Cat:R0,CatIcon:R0,Cctv:E0,CctvIcon:E0,ChartArea:ba,ChartAreaIcon:ba,ChartBar:wa,ChartBarBig:Ia,ChartBarBigIcon:Ia,ChartBarDecreasing:O0,ChartBarDecreasingIcon:O0,ChartBarIcon:wa,ChartBarIncreasing:U0,ChartBarIncreasingIcon:U0,ChartBarStacked:W0,ChartBarStackedIcon:W0,ChartCandlestick:Ca,ChartCandlestickIcon:Ca,ChartColumn:Sa,ChartColumnBig:ja,ChartColumnBigIcon:ja,ChartColumnDecreasing:G0,ChartColumnDecreasingIcon:G0,ChartColumnIcon:Sa,ChartColumnIncreasing:Na,ChartColumnIncreasingIcon:Na,ChartColumnStacked:K0,ChartColumnStackedIcon:K0,ChartGantt:Z0,ChartGanttIcon:Z0,ChartLine:$a,ChartLineIcon:$a,ChartNetwork:X0,ChartNetworkIcon:X0,ChartNoAxesColumn:Aa,ChartNoAxesColumnDecreasing:Y0,ChartNoAxesColumnDecreasingIcon:Y0,ChartNoAxesColumnIcon:Aa,ChartNoAxesColumnIncreasing:qa,ChartNoAxesColumnIncreasingIcon:qa,ChartNoAxesCombined:J0,ChartNoAxesCombinedIcon:J0,ChartNoAxesGantt:za,ChartNoAxesGanttIcon:za,ChartPie:Pa,ChartPieIcon:Pa,ChartScatter:Va,ChartScatterIcon:Va,ChartSpline:Q0,ChartSplineIcon:Q0,Check:Z1,CheckCheck:el,CheckCheckIcon:el,CheckCircle:Wa,CheckCircle2:Ga,CheckCircle2Icon:Ga,CheckCircleIcon:Wa,CheckIcon:Z1,CheckLine:tl,CheckLineIcon:tl,CheckSquare:Oo,CheckSquare2:Uo,CheckSquare2Icon:Uo,CheckSquareIcon:Oo,ChefHat:al,ChefHatIcon:al,Cherry:nl,CherryIcon:nl,ChevronDown:Yt,ChevronDownCircle:Ka,ChevronDownCircleIcon:Ka,ChevronDownIcon:Yt,ChevronDownSquare:Wo,ChevronDownSquareIcon:Wo,ChevronFirst:ol,ChevronFirstIcon:ol,ChevronLast:cl,ChevronLastIcon:cl,ChevronLeft:il,ChevronLeftCircle:Za,ChevronLeftCircleIcon:Za,ChevronLeftIcon:il,ChevronLeftSquare:Go,ChevronLeftSquareIcon:Go,ChevronRight:X1,ChevronRightCircle:Xa,ChevronRightCircleIcon:Xa,ChevronRightIcon:X1,ChevronRightSquare:Ko,ChevronRightSquareIcon:Ko,ChevronUp:Xc,ChevronUpCircle:Ya,ChevronUpCircleIcon:Ya,ChevronUpIcon:Xc,ChevronUpSquare:Zo,ChevronUpSquareIcon:Zo,ChevronsDown:sl,ChevronsDownIcon:sl,ChevronsDownUp:rl,ChevronsDownUpIcon:rl,ChevronsLeft:ll,ChevronsLeftIcon:ll,ChevronsLeftRight:dl,ChevronsLeftRightEllipsis:hl,ChevronsLeftRightEllipsisIcon:hl,ChevronsLeftRightIcon:dl,ChevronsRight:pl,ChevronsRightIcon:pl,ChevronsRightLeft:ul,ChevronsRightLeftIcon:ul,ChevronsUp:yl,ChevronsUpDown:b1,ChevronsUpDownIcon:b1,ChevronsUpIcon:yl,Chrome:kl,ChromeIcon:kl,Church:ml,ChurchIcon:ml,Cigarette:gl,CigaretteIcon:gl,CigaretteOff:fl,CigaretteOffIcon:fl,Circle:ql,CircleAlert:Ta,CircleAlertIcon:Ta,CircleArrowDown:Da,CircleArrowDownIcon:Da,CircleArrowLeft:Ha,CircleArrowLeftIcon:Ha,CircleArrowOutDownLeft:Ba,CircleArrowOutDownLeftIcon:Ba,CircleArrowOutDownRight:Ra,CircleArrowOutDownRightIcon:Ra,CircleArrowOutUpLeft:Fa,CircleArrowOutUpLeftIcon:Fa,CircleArrowOutUpRight:Ea,CircleArrowOutUpRightIcon:Ea,CircleArrowRight:Oa,CircleArrowRightIcon:Oa,CircleArrowUp:Ua,CircleArrowUpIcon:Ua,CircleCheck:Ga,CircleCheckBig:Wa,CircleCheckBigIcon:Wa,CircleCheckIcon:Ga,CircleChevronDown:Ka,CircleChevronDownIcon:Ka,CircleChevronLeft:Za,CircleChevronLeftIcon:Za,CircleChevronRight:Xa,CircleChevronRightIcon:Xa,CircleChevronUp:Ya,CircleChevronUpIcon:Ya,CircleDashed:vl,CircleDashedIcon:vl,CircleDivide:Ja,CircleDivideIcon:Ja,CircleDollarSign:_l,CircleDollarSignIcon:_l,CircleDot:Ml,CircleDotDashed:xl,CircleDotDashedIcon:xl,CircleDotIcon:Ml,CircleEllipsis:Ll,CircleEllipsisIcon:Ll,CircleEqual:bl,CircleEqualIcon:bl,CircleFadingArrowUp:wl,CircleFadingArrowUpIcon:wl,CircleFadingPlus:Il,CircleFadingPlusIcon:Il,CircleGauge:Qa,CircleGaugeIcon:Qa,CircleHelp:_t,CircleHelpIcon:_t,CircleIcon:ql,CircleMinus:en,CircleMinusIcon:en,CircleOff:Cl,CircleOffIcon:Cl,CircleParking:nn,CircleParkingIcon:nn,CircleParkingOff:tn,CircleParkingOffIcon:tn,CirclePause:an,CirclePauseIcon:an,CirclePercent:on,CirclePercentIcon:on,CirclePlay:cn,CirclePlayIcon:cn,CirclePlus:rn,CirclePlusIcon:rn,CirclePoundSterling:jl,CirclePoundSterlingIcon:jl,CirclePower:sn,CirclePowerIcon:sn,CircleQuestionMark:_t,CircleQuestionMarkIcon:_t,CircleSlash:Nl,CircleSlash2:dn,CircleSlash2Icon:dn,CircleSlashIcon:Nl,CircleSlashed:dn,CircleSlashedIcon:dn,CircleSmall:Sl,CircleSmallIcon:Sl,CircleStar:$l,CircleStarIcon:$l,CircleStop:ln,CircleStopIcon:ln,CircleUser:un,CircleUserIcon:un,CircleUserRound:hn,CircleUserRoundIcon:hn,CircleX:Ut,CircleXIcon:Ut,CircuitBoard:Al,CircuitBoardIcon:Al,Citrus:zl,CitrusIcon:zl,Clapperboard:Pl,ClapperboardIcon:Pl,Clipboard:Ul,ClipboardCheck:Vl,ClipboardCheckIcon:Vl,ClipboardClock:Tl,ClipboardClockIcon:Tl,ClipboardCopy:Dl,ClipboardCopyIcon:Dl,ClipboardEdit:yn,ClipboardEditIcon:yn,ClipboardIcon:Ul,ClipboardList:Hl,ClipboardListIcon:Hl,ClipboardMinus:Bl,ClipboardMinusIcon:Bl,ClipboardPaste:Rl,ClipboardPasteIcon:Rl,ClipboardPen:yn,ClipboardPenIcon:yn,ClipboardPenLine:pn,ClipboardPenLineIcon:pn,ClipboardPlus:Fl,ClipboardPlusIcon:Fl,ClipboardSignature:pn,ClipboardSignatureIcon:pn,ClipboardType:El,ClipboardTypeIcon:El,ClipboardX:Ol,ClipboardXIcon:Ol,Clock:sh,Clock1:Gl,Clock10:Wl,Clock10Icon:Wl,Clock11:Kl,Clock11Icon:Kl,Clock12:Zl,Clock12Icon:Zl,Clock1Icon:Gl,Clock2:Xl,Clock2Icon:Xl,Clock3:Y1,Clock3Icon:Y1,Clock4:Yl,Clock4Icon:Yl,Clock5:Jl,Clock5Icon:Jl,Clock6:Ql,Clock6Icon:Ql,Clock7:eh,Clock7Icon:eh,Clock8:th,Clock8Icon:th,Clock9:ah,Clock9Icon:ah,ClockAlert:nh,ClockAlertIcon:nh,ClockArrowDown:oh,ClockArrowDownIcon:oh,ClockArrowUp:ch,ClockArrowUpIcon:ch,ClockFading:ih,ClockFadingIcon:ih,ClockIcon:sh,ClockPlus:rh,ClockPlusIcon:rh,ClosedCaption:dh,ClosedCaptionIcon:dh,Cloud:Ih,CloudAlert:lh,CloudAlertIcon:lh,CloudCheck:hh,CloudCheckIcon:hh,CloudCog:uh,CloudCogIcon:uh,CloudDownload:kn,CloudDownloadIcon:kn,CloudDrizzle:ph,CloudDrizzleIcon:ph,CloudFog:yh,CloudFogIcon:yh,CloudHail:kh,CloudHailIcon:kh,CloudIcon:Ih,CloudLightning:mh,CloudLightningIcon:mh,CloudMoon:gh,CloudMoonIcon:gh,CloudMoonRain:fh,CloudMoonRainIcon:fh,CloudOff:vh,CloudOffIcon:vh,CloudRain:_h,CloudRainIcon:_h,CloudRainWind:xh,CloudRainWindIcon:xh,CloudSnow:Mh,CloudSnowIcon:Mh,CloudSun:bh,CloudSunIcon:bh,CloudSunRain:Lh,CloudSunRainIcon:Lh,CloudUpload:mn,CloudUploadIcon:mn,Cloudy:wh,CloudyIcon:wh,Clover:Ch,CloverIcon:Ch,Club:jh,ClubIcon:jh,Code:Nh,Code2:fn,Code2Icon:fn,CodeIcon:Nh,CodeSquare:Xo,CodeSquareIcon:Xo,CodeXml:fn,CodeXmlIcon:fn,Codepen:Sh,CodepenIcon:Sh,Codesandbox:$h,CodesandboxIcon:$h,Coffee:qh,CoffeeIcon:qh,Cog:Ah,CogIcon:Ah,Coins:zh,CoinsIcon:zh,Columns:gn,Columns2:gn,Columns2Icon:gn,Columns3:vn,Columns3Cog:Mt,Columns3CogIcon:Mt,Columns3Icon:vn,Columns4:Ph,Columns4Icon:Ph,ColumnsIcon:gn,ColumnsSettings:Mt,ColumnsSettingsIcon:Mt,Combine:Vh,CombineIcon:Vh,Command:Th,CommandIcon:Th,Compass:Dh,CompassIcon:Dh,Component:Hh,ComponentIcon:Hh,Computer:Bh,ComputerIcon:Bh,ConciergeBell:Rh,ConciergeBellIcon:Rh,Cone:Fh,ConeIcon:Fh,Construction:Eh,ConstructionIcon:Eh,Contact:Oh,Contact2:xn,Contact2Icon:xn,ContactIcon:Oh,ContactRound:xn,ContactRoundIcon:xn,Container:Uh,ContainerIcon:Uh,Contrast:Gh,ContrastIcon:Gh,Cookie:Wh,CookieIcon:Wh,CookingPot:Zh,CookingPotIcon:Zh,Copy:eu,CopyCheck:Kh,CopyCheckIcon:Kh,CopyIcon:eu,CopyMinus:Xh,CopyMinusIcon:Xh,CopyPlus:Yh,CopyPlusIcon:Yh,CopySlash:Jh,CopySlashIcon:Jh,CopyX:Qh,CopyXIcon:Qh,Copyleft:tu,CopyleftIcon:tu,Copyright:au,CopyrightIcon:au,CornerDownLeft:nu,CornerDownLeftIcon:nu,CornerDownRight:ou,CornerDownRightIcon:ou,CornerLeftDown:cu,CornerLeftDownIcon:cu,CornerLeftUp:iu,CornerLeftUpIcon:iu,CornerRightDown:ru,CornerRightDownIcon:ru,CornerRightUp:su,CornerRightUpIcon:su,CornerUpLeft:du,CornerUpLeftIcon:du,CornerUpRight:lu,CornerUpRightIcon:lu,Cpu:hu,CpuIcon:hu,CreativeCommons:uu,CreativeCommonsIcon:uu,CreditCard:pu,CreditCardIcon:pu,Croissant:yu,CroissantIcon:yu,Crop:ku,CropIcon:ku,Cross:mu,CrossIcon:mu,Crosshair:fu,CrosshairIcon:fu,Crown:gu,CrownIcon:gu,Cuboid:vu,CuboidIcon:vu,CupSoda:xu,CupSodaIcon:xu,CurlyBraces:Ma,CurlyBracesIcon:Ma,Currency:_u,CurrencyIcon:_u,Cylinder:Mu,CylinderIcon:Mu,Dam:Lu,DamIcon:Lu,Database:wu,DatabaseBackup:bu,DatabaseBackupIcon:bu,DatabaseIcon:wu,DatabaseZap:Iu,DatabaseZapIcon:Iu,DecimalsArrowLeft:Cu,DecimalsArrowLeftIcon:Cu,DecimalsArrowRight:ju,DecimalsArrowRightIcon:ju,Delete:Nu,DeleteIcon:Nu,Dessert:Su,DessertIcon:Su,Diameter:$u,DiameterIcon:$u,Diamond:zu,DiamondIcon:zu,DiamondMinus:qu,DiamondMinusIcon:qu,DiamondPercent:_n,DiamondPercentIcon:_n,DiamondPlus:Au,DiamondPlusIcon:Au,Dice1:Pu,Dice1Icon:Pu,Dice2:Vu,Dice2Icon:Vu,Dice3:Tu,Dice3Icon:Tu,Dice4:Du,Dice4Icon:Du,Dice5:Hu,Dice5Icon:Hu,Dice6:Bu,Dice6Icon:Bu,Dices:Ru,DicesIcon:Ru,Diff:Fu,DiffIcon:Fu,Disc:Wu,Disc2:Eu,Disc2Icon:Eu,Disc3:Ou,Disc3Icon:Ou,DiscAlbum:Uu,DiscAlbumIcon:Uu,DiscIcon:Wu,Divide:Gu,DivideCircle:Ja,DivideCircleIcon:Ja,DivideIcon:Gu,DivideSquare:ec,DivideSquareIcon:ec,Dna:Zu,DnaIcon:Zu,DnaOff:Ku,DnaOffIcon:Ku,Dock:Xu,DockIcon:Xu,Dog:Yu,DogIcon:Yu,DollarSign:Ju,DollarSignIcon:Ju,Donut:Qu,DonutIcon:Qu,DoorClosed:tp,DoorClosedIcon:tp,DoorClosedLocked:ep,DoorClosedLockedIcon:ep,DoorOpen:ap,DoorOpenIcon:ap,Dot:np,DotIcon:np,DotSquare:ac,DotSquareIcon:ac,Download:cp,DownloadCloud:kn,DownloadCloudIcon:kn,DownloadIcon:cp,DraftingCompass:op,DraftingCompassIcon:op,Drama:ip,DramaIcon:ip,Dribbble:rp,DribbbleIcon:rp,Drill:sp,DrillIcon:sp,Drone:dp,DroneIcon:dp,Droplet:hp,DropletIcon:hp,DropletOff:lp,DropletOffIcon:lp,Droplets:up,DropletsIcon:up,Drum:pp,DrumIcon:pp,Drumstick:yp,DrumstickIcon:yp,Dumbbell:kp,DumbbellIcon:kp,Ear:fp,EarIcon:fp,EarOff:mp,EarOffIcon:mp,Earth:Mn,EarthIcon:Mn,EarthLock:gp,EarthLockIcon:gp,Eclipse:vp,EclipseIcon:vp,Edit:at,Edit2:$t,Edit2Icon:$t,Edit3:St,Edit3Icon:St,EditIcon:at,Egg:Mp,EggFried:xp,EggFriedIcon:xp,EggIcon:Mp,EggOff:_p,EggOffIcon:_p,Ellipsis:bn,EllipsisIcon:bn,EllipsisVertical:Ln,EllipsisVerticalIcon:Ln,Equal:Ip,EqualApproximately:Lp,EqualApproximatelyIcon:Lp,EqualIcon:Ip,EqualNot:bp,EqualNotIcon:bp,EqualSquare:tc,EqualSquareIcon:tc,Eraser:wp,EraserIcon:wp,EthernetPort:Cp,EthernetPortIcon:Cp,Euro:jp,EuroIcon:jp,Expand:Sp,ExpandIcon:Sp,ExternalLink:Np,ExternalLinkIcon:Np,Eye:Q1,EyeClosed:$p,EyeClosedIcon:$p,EyeIcon:Q1,EyeOff:J1,EyeOffIcon:J1,Facebook:qp,FacebookIcon:qp,Factory:Ap,FactoryIcon:Ap,Fan:zp,FanIcon:zp,FastForward:Pp,FastForwardIcon:Pp,Feather:Vp,FeatherIcon:Vp,Fence:Tp,FenceIcon:Tp,FerrisWheel:Dp,FerrisWheelIcon:Dp,Figma:Hp,FigmaIcon:Hp,File:Ay,FileArchive:Bp,FileArchiveIcon:Bp,FileAudio:Fp,FileAudio2:Rp,FileAudio2Icon:Rp,FileAudioIcon:Fp,FileAxis3D:In,FileAxis3DIcon:In,FileAxis3d:In,FileAxis3dIcon:In,FileBadge:Up,FileBadge2:Ep,FileBadge2Icon:Ep,FileBadgeIcon:Up,FileBarChart:wn,FileBarChart2:Cn,FileBarChart2Icon:Cn,FileBarChartIcon:wn,FileBox:Op,FileBoxIcon:Op,FileChartColumn:Cn,FileChartColumnIcon:Cn,FileChartColumnIncreasing:wn,FileChartColumnIncreasingIcon:wn,FileChartLine:jn,FileChartLineIcon:jn,FileChartPie:Nn,FileChartPieIcon:Nn,FileCheck:Gp,FileCheck2:Wp,FileCheck2Icon:Wp,FileCheckIcon:Gp,FileClock:Kp,FileClockIcon:Kp,FileCode:Zp,FileCode2:Xp,FileCode2Icon:Xp,FileCodeIcon:Zp,FileCog:Sn,FileCog2:Sn,FileCog2Icon:Sn,FileCogIcon:Sn,FileDiff:Yp,FileDiffIcon:Yp,FileDigit:Jp,FileDigitIcon:Jp,FileDown:Qp,FileDownIcon:Qp,FileEdit:qn,FileEditIcon:qn,FileHeart:ey,FileHeartIcon:ey,FileIcon:Ay,FileImage:ty,FileImageIcon:ty,FileInput:ay,FileInputIcon:ay,FileJson:oy,FileJson2:ny,FileJson2Icon:ny,FileJsonIcon:oy,FileKey:iy,FileKey2:cy,FileKey2Icon:cy,FileKeyIcon:iy,FileLineChart:jn,FileLineChartIcon:jn,FileLock:sy,FileLock2:ry,FileLock2Icon:ry,FileLockIcon:sy,FileMinus:ly,FileMinus2:dy,FileMinus2Icon:dy,FileMinusIcon:ly,FileMusic:hy,FileMusicIcon:hy,FileOutput:uy,FileOutputIcon:uy,FilePen:qn,FilePenIcon:qn,FilePenLine:$n,FilePenLineIcon:$n,FilePieChart:Nn,FilePieChartIcon:Nn,FilePlay:An,FilePlayIcon:An,FilePlus:yy,FilePlus2:py,FilePlus2Icon:py,FilePlusIcon:yy,FileQuestion:zn,FileQuestionIcon:zn,FileQuestionMark:zn,FileQuestionMarkIcon:zn,FileScan:ky,FileScanIcon:ky,FileSearch:fy,FileSearch2:my,FileSearch2Icon:my,FileSearchIcon:fy,FileSignature:$n,FileSignatureIcon:$n,FileSliders:gy,FileSlidersIcon:gy,FileSpreadsheet:vy,FileSpreadsheetIcon:vy,FileStack:xy,FileStackIcon:xy,FileSymlink:_y,FileSymlinkIcon:_y,FileTerminal:My,FileTerminalIcon:My,FileText:Ly,FileTextIcon:Ly,FileType:Iy,FileType2:by,FileType2Icon:by,FileTypeIcon:Iy,FileUp:wy,FileUpIcon:wy,FileUser:Cy,FileUserIcon:Cy,FileVideo:An,FileVideo2:Pn,FileVideo2Icon:Pn,FileVideoCamera:Pn,FileVideoCameraIcon:Pn,FileVideoIcon:An,FileVolume:Ny,FileVolume2:jy,FileVolume2Icon:jy,FileVolumeIcon:Ny,FileWarning:Sy,FileWarningIcon:Sy,FileX:qy,FileX2:$y,FileX2Icon:$y,FileXIcon:qy,Files:zy,FilesIcon:zy,Film:Py,FilmIcon:Py,Filter:Wt,FilterIcon:Wt,FilterX:Dn,FilterXIcon:Dn,Fingerprint:Vy,FingerprintIcon:Vy,FireExtinguisher:Ty,FireExtinguisherIcon:Ty,Fish:Hy,FishIcon:Hy,FishOff:Dy,FishOffIcon:Dy,FishSymbol:By,FishSymbolIcon:By,Flag:Oy,FlagIcon:Oy,FlagOff:Ry,FlagOffIcon:Ry,FlagTriangleLeft:Fy,FlagTriangleLeftIcon:Fy,FlagTriangleRight:Ey,FlagTriangleRightIcon:Ey,Flame:Wy,FlameIcon:Wy,FlameKindling:Uy,FlameKindlingIcon:Uy,Flashlight:Ky,FlashlightIcon:Ky,FlashlightOff:Gy,FlashlightOffIcon:Gy,FlaskConical:Xy,FlaskConicalIcon:Xy,FlaskConicalOff:Zy,FlaskConicalOffIcon:Zy,FlaskRound:Yy,FlaskRoundIcon:Yy,FlipHorizontal:Qy,FlipHorizontal2:Jy,FlipHorizontal2Icon:Jy,FlipHorizontalIcon:Qy,FlipVertical:t4,FlipVertical2:e4,FlipVertical2Icon:e4,FlipVerticalIcon:t4,Flower:n4,Flower2:a4,Flower2Icon:a4,FlowerIcon:n4,Focus:o4,FocusIcon:o4,FoldHorizontal:c4,FoldHorizontalIcon:c4,FoldVertical:i4,FoldVerticalIcon:i4,Folder:ei,FolderArchive:r4,FolderArchiveIcon:r4,FolderCheck:s4,FolderCheckIcon:s4,FolderClock:d4,FolderClockIcon:d4,FolderClosed:l4,FolderClosedIcon:l4,FolderCode:h4,FolderCodeIcon:h4,FolderCog:Vn,FolderCog2:Vn,FolderCog2Icon:Vn,FolderCogIcon:Vn,FolderDot:u4,FolderDotIcon:u4,FolderDown:p4,FolderDownIcon:p4,FolderEdit:Tn,FolderEditIcon:Tn,FolderGit:k4,FolderGit2:y4,FolderGit2Icon:y4,FolderGitIcon:k4,FolderHeart:m4,FolderHeartIcon:m4,FolderIcon:ei,FolderInput:f4,FolderInputIcon:f4,FolderKanban:g4,FolderKanbanIcon:g4,FolderKey:v4,FolderKeyIcon:v4,FolderLock:x4,FolderLockIcon:x4,FolderMinus:_4,FolderMinusIcon:_4,FolderOpen:L4,FolderOpenDot:M4,FolderOpenDotIcon:M4,FolderOpenIcon:L4,FolderOutput:b4,FolderOutputIcon:b4,FolderPen:Tn,FolderPenIcon:Tn,FolderPlus:Yc,FolderPlusIcon:Yc,FolderRoot:I4,FolderRootIcon:I4,FolderSearch:C4,FolderSearch2:w4,FolderSearch2Icon:w4,FolderSearchIcon:C4,FolderSymlink:j4,FolderSymlinkIcon:j4,FolderSync:N4,FolderSyncIcon:N4,FolderTree:S4,FolderTreeIcon:S4,FolderUp:$4,FolderUpIcon:$4,FolderX:q4,FolderXIcon:q4,Folders:A4,FoldersIcon:A4,Footprints:z4,FootprintsIcon:z4,ForkKnife:Fc,ForkKnifeCrossed:Rc,ForkKnifeCrossedIcon:Rc,ForkKnifeIcon:Fc,Forklift:P4,ForkliftIcon:P4,FormInput:xo,FormInputIcon:xo,Forward:V4,ForwardIcon:V4,Frame:T4,FrameIcon:T4,Framer:D4,FramerIcon:D4,Frown:H4,FrownIcon:H4,Fuel:B4,FuelIcon:B4,Fullscreen:R4,FullscreenIcon:R4,FunctionSquare:nc,FunctionSquareIcon:nc,Funnel:Wt,FunnelIcon:Wt,FunnelPlus:F4,FunnelPlusIcon:F4,FunnelX:Dn,FunnelXIcon:Dn,GalleryHorizontal:O4,GalleryHorizontalEnd:E4,GalleryHorizontalEndIcon:E4,GalleryHorizontalIcon:O4,GalleryThumbnails:U4,GalleryThumbnailsIcon:U4,GalleryVertical:G4,GalleryVerticalEnd:W4,GalleryVerticalEndIcon:W4,GalleryVerticalIcon:G4,Gamepad:Z4,Gamepad2:K4,Gamepad2Icon:K4,GamepadIcon:Z4,GanttChart:za,GanttChartIcon:za,GanttChartSquare:bt,GanttChartSquareIcon:bt,Gauge:X4,GaugeCircle:Qa,GaugeCircleIcon:Qa,GaugeIcon:X4,Gavel:Y4,GavelIcon:Y4,Gem:J4,GemIcon:J4,GeorgianLari:Q4,GeorgianLariIcon:Q4,Ghost:e5,GhostIcon:e5,Gift:t5,GiftIcon:t5,GitBranch:n5,GitBranchIcon:n5,GitBranchPlus:a5,GitBranchPlusIcon:a5,GitCommit:Hn,GitCommitHorizontal:Hn,GitCommitHorizontalIcon:Hn,GitCommitIcon:Hn,GitCommitVertical:o5,GitCommitVerticalIcon:o5,GitCompare:i5,GitCompareArrows:c5,GitCompareArrowsIcon:c5,GitCompareIcon:i5,GitFork:r5,GitForkIcon:r5,GitGraph:s5,GitGraphIcon:s5,GitMerge:d5,GitMergeIcon:d5,GitPullRequest:k5,GitPullRequestArrow:l5,GitPullRequestArrowIcon:l5,GitPullRequestClosed:h5,GitPullRequestClosedIcon:h5,GitPullRequestCreate:p5,GitPullRequestCreateArrow:u5,GitPullRequestCreateArrowIcon:u5,GitPullRequestCreateIcon:p5,GitPullRequestDraft:y5,GitPullRequestDraftIcon:y5,GitPullRequestIcon:k5,Github:m5,GithubIcon:m5,Gitlab:f5,GitlabIcon:f5,GlassWater:g5,GlassWaterIcon:g5,Glasses:v5,GlassesIcon:v5,Globe:_5,Globe2:Mn,Globe2Icon:Mn,GlobeIcon:_5,GlobeLock:x5,GlobeLockIcon:x5,Goal:M5,GoalIcon:M5,Gpu:L5,GpuIcon:L5,Grab:On,GrabIcon:On,GraduationCap:b5,GraduationCapIcon:b5,Grape:I5,GrapeIcon:I5,Grid:Lt,Grid2X2:En,Grid2X2Check:Bn,Grid2X2CheckIcon:Bn,Grid2X2Icon:En,Grid2X2Plus:Rn,Grid2X2PlusIcon:Rn,Grid2X2X:Fn,Grid2X2XIcon:Fn,Grid2x2:En,Grid2x2Check:Bn,Grid2x2CheckIcon:Bn,Grid2x2Icon:En,Grid2x2Plus:Rn,Grid2x2PlusIcon:Rn,Grid2x2X:Fn,Grid2x2XIcon:Fn,Grid3X3:Lt,Grid3X3Icon:Lt,Grid3x2:w5,Grid3x2Icon:w5,Grid3x3:Lt,Grid3x3Icon:Lt,GridIcon:Lt,Grip:j5,GripHorizontal:C5,GripHorizontalIcon:C5,GripIcon:j5,GripVertical:ti,GripVerticalIcon:ti,Group:N5,GroupIcon:N5,Guitar:S5,GuitarIcon:S5,Ham:$5,HamIcon:$5,Hamburger:q5,HamburgerIcon:q5,Hammer:A5,HammerIcon:A5,Hand:H5,HandCoins:z5,HandCoinsIcon:z5,HandFist:P5,HandFistIcon:P5,HandGrab:On,HandGrabIcon:On,HandHeart:V5,HandHeartIcon:V5,HandHelping:Un,HandHelpingIcon:Un,HandIcon:H5,HandMetal:T5,HandMetalIcon:T5,HandPlatter:D5,HandPlatterIcon:D5,Handbag:B5,HandbagIcon:B5,Handshake:R5,HandshakeIcon:R5,HardDrive:O5,HardDriveDownload:F5,HardDriveDownloadIcon:F5,HardDriveIcon:O5,HardDriveUpload:E5,HardDriveUploadIcon:E5,HardHat:U5,HardHatIcon:U5,Hash:W5,HashIcon:W5,HatGlasses:G5,HatGlassesIcon:G5,Haze:K5,HazeIcon:K5,HdmiPort:Z5,HdmiPortIcon:Z5,Heading:ak,Heading1:X5,Heading1Icon:X5,Heading2:Y5,Heading2Icon:Y5,Heading3:J5,Heading3Icon:J5,Heading4:Q5,Heading4Icon:Q5,Heading5:ek,Heading5Icon:ek,Heading6:tk,Heading6Icon:tk,HeadingIcon:ak,HeadphoneOff:nk,HeadphoneOffIcon:nk,Headphones:ok,HeadphonesIcon:ok,Headset:ck,HeadsetIcon:ck,Heart:uk,HeartCrack:ik,HeartCrackIcon:ik,HeartHandshake:rk,HeartHandshakeIcon:rk,HeartIcon:uk,HeartMinus:sk,HeartMinusIcon:sk,HeartOff:dk,HeartOffIcon:dk,HeartPlus:lk,HeartPlusIcon:lk,HeartPulse:hk,HeartPulseIcon:hk,Heater:pk,HeaterIcon:pk,HelpCircle:_t,HelpCircleIcon:_t,HelpingHand:Un,HelpingHandIcon:Un,Hexagon:yk,HexagonIcon:yk,Highlighter:kk,HighlighterIcon:kk,History:mk,HistoryIcon:mk,Home:Gt,HomeIcon:Gt,Hop:gk,HopIcon:gk,HopOff:fk,HopOffIcon:fk,Hospital:ai,HospitalIcon:ai,Hotel:vk,HotelIcon:vk,Hourglass:xk,HourglassIcon:xk,House:Gt,HouseIcon:Gt,HousePlug:_k,HousePlugIcon:_k,HousePlus:Lk,HousePlusIcon:Lk,HouseWifi:Mk,HouseWifiIcon:Mk,IceCream:Gn,IceCream2:Wn,IceCream2Icon:Wn,IceCreamBowl:Wn,IceCreamBowlIcon:Wn,IceCreamCone:Gn,IceCreamConeIcon:Gn,IceCreamIcon:Gn,Icon:a.Icon,IdCard:Ik,IdCardIcon:Ik,IdCardLanyard:bk,IdCardLanyardIcon:bk,Image:Ak,ImageDown:wk,ImageDownIcon:wk,ImageIcon:Ak,ImageMinus:Ck,ImageMinusIcon:Ck,ImageOff:jk,ImageOffIcon:jk,ImagePlay:Nk,ImagePlayIcon:Nk,ImagePlus:Sk,ImagePlusIcon:Sk,ImageUp:$k,ImageUpIcon:$k,ImageUpscale:qk,ImageUpscaleIcon:qk,Images:zk,ImagesIcon:zk,Import:Pk,ImportIcon:Pk,Inbox:Vk,InboxIcon:Vk,Indent:Zn,IndentDecrease:Kn,IndentDecreaseIcon:Kn,IndentIcon:Zn,IndentIncrease:Zn,IndentIncreaseIcon:Zn,IndianRupee:Tk,IndianRupeeIcon:Tk,Infinity:Dk,InfinityIcon:Dk,Info:Hk,InfoIcon:Hk,Inspect:lc,InspectIcon:lc,InspectionPanel:Bk,InspectionPanelIcon:Bk,Instagram:Rk,InstagramIcon:Rk,Italic:Fk,ItalicIcon:Fk,IterationCcw:Ek,IterationCcwIcon:Ek,IterationCw:Ok,IterationCwIcon:Ok,JapaneseYen:Wk,JapaneseYenIcon:Wk,Joystick:Uk,JoystickIcon:Uk,Kanban:Gk,KanbanIcon:Gk,KanbanSquare:oc,KanbanSquareDashed:Yo,KanbanSquareDashedIcon:Yo,KanbanSquareIcon:oc,Kayak:Kk,KayakIcon:Kk,Key:Yk,KeyIcon:Yk,KeyRound:Zk,KeyRoundIcon:Zk,KeySquare:Xk,KeySquareIcon:Xk,Keyboard:em,KeyboardIcon:em,KeyboardMusic:Jk,KeyboardMusicIcon:Jk,KeyboardOff:Qk,KeyboardOffIcon:Qk,Lamp:im,LampCeiling:tm,LampCeilingIcon:tm,LampDesk:nm,LampDeskIcon:nm,LampFloor:am,LampFloorIcon:am,LampIcon:im,LampWallDown:om,LampWallDownIcon:om,LampWallUp:cm,LampWallUpIcon:cm,LandPlot:rm,LandPlotIcon:rm,Landmark:sm,LandmarkIcon:sm,Languages:dm,LanguagesIcon:dm,Laptop:hm,Laptop2:Xn,Laptop2Icon:Xn,LaptopIcon:hm,LaptopMinimal:Xn,LaptopMinimalCheck:lm,LaptopMinimalCheckIcon:lm,LaptopMinimalIcon:Xn,Lasso:pm,LassoIcon:pm,LassoSelect:um,LassoSelectIcon:um,Laugh:ym,LaughIcon:ym,Layers:Yn,Layers2:km,Layers2Icon:km,Layers3:Yn,Layers3Icon:Yn,LayersIcon:Yn,Layout:go,LayoutDashboard:mm,LayoutDashboardIcon:mm,LayoutGrid:fm,LayoutGridIcon:fm,LayoutIcon:go,LayoutList:gm,LayoutListIcon:gm,LayoutPanelLeft:vm,LayoutPanelLeftIcon:vm,LayoutPanelTop:xm,LayoutPanelTopIcon:xm,LayoutTemplate:_m,LayoutTemplateIcon:_m,Leaf:Mm,LeafIcon:Mm,LeafyGreen:bm,LeafyGreenIcon:bm,Lectern:Lm,LecternIcon:Lm,LetterText:Im,LetterTextIcon:Im,Library:Cm,LibraryBig:wm,LibraryBigIcon:wm,LibraryIcon:Cm,LibrarySquare:cc,LibrarySquareIcon:cc,LifeBuoy:jm,LifeBuoyIcon:jm,Ligature:Nm,LigatureIcon:Nm,Lightbulb:$m,LightbulbIcon:$m,LightbulbOff:Sm,LightbulbOffIcon:Sm,LineChart:$a,LineChartIcon:$a,LineSquiggle:qm,LineSquiggleIcon:qm,Link:Pm,Link2:Am,Link2Icon:Am,Link2Off:zm,Link2OffIcon:zm,LinkIcon:Pm,Linkedin:Vm,LinkedinIcon:Vm,List:Qm,ListCheck:Tm,ListCheckIcon:Tm,ListChecks:Dm,ListChecksIcon:Dm,ListCollapse:Hm,ListCollapseIcon:Hm,ListEnd:Bm,ListEndIcon:Bm,ListFilter:Em,ListFilterIcon:Em,ListFilterPlus:Rm,ListFilterPlusIcon:Rm,ListIcon:Qm,ListMinus:Fm,ListMinusIcon:Fm,ListMusic:Om,ListMusicIcon:Om,ListOrdered:Um,ListOrderedIcon:Um,ListPlus:Wm,ListPlusIcon:Wm,ListRestart:Gm,ListRestartIcon:Gm,ListStart:Km,ListStartIcon:Km,ListTodo:Zm,ListTodoIcon:Zm,ListTree:Xm,ListTreeIcon:Xm,ListVideo:Ym,ListVideoIcon:Ym,ListX:Jm,ListXIcon:Jm,Loader:t3,Loader2:Jn,Loader2Icon:Jn,LoaderCircle:Jn,LoaderCircleIcon:Jn,LoaderIcon:t3,LoaderPinwheel:e3,LoaderPinwheelIcon:e3,Locate:o3,LocateFixed:a3,LocateFixedIcon:a3,LocateIcon:o3,LocateOff:n3,LocateOffIcon:n3,LocationEdit:ao,LocationEditIcon:ao,Lock:i3,LockIcon:i3,LockKeyhole:c3,LockKeyholeIcon:c3,LockKeyholeOpen:Qn,LockKeyholeOpenIcon:Qn,LockOpen:eo,LockOpenIcon:eo,LogIn:r3,LogInIcon:r3,LogOut:s3,LogOutIcon:s3,Logs:d3,LogsIcon:d3,Lollipop:l3,LollipopIcon:l3,LucideAArrowDown:Ei,LucideAArrowUp:Oi,LucideALargeSmall:Ui,LucideAccessibility:U1,LucideActivity:W1,LucideActivitySquare:Kt,LucideAirVent:Wi,LucideAirplay:Gi,LucideAlarmCheck:ra,LucideAlarmClock:Zi,LucideAlarmClockCheck:ra,LucideAlarmClockMinus:sa,LucideAlarmClockOff:Ki,LucideAlarmClockPlus:da,LucideAlarmMinus:sa,LucideAlarmPlus:da,LucideAlarmSmoke:Xi,LucideAlbum:Yi,LucideAlertCircle:Ta,LucideAlertOctagon:io,LucideAlertTriangle:$c,LucideAlignCenter:nr,LucideAlignCenterHorizontal:Ji,LucideAlignCenterVertical:Qi,LucideAlignEndHorizontal:er,LucideAlignEndVertical:tr,LucideAlignHorizontalDistributeCenter:ar,LucideAlignHorizontalDistributeEnd:or,LucideAlignHorizontalDistributeStart:cr,LucideAlignHorizontalJustifyCenter:ir,LucideAlignHorizontalJustifyEnd:rr,LucideAlignHorizontalJustifyStart:sr,LucideAlignHorizontalSpaceAround:dr,LucideAlignHorizontalSpaceBetween:hr,LucideAlignJustify:lr,LucideAlignLeft:ur,LucideAlignRight:pr,LucideAlignStartHorizontal:yr,LucideAlignStartVertical:kr,LucideAlignVerticalDistributeCenter:fr,LucideAlignVerticalDistributeEnd:mr,LucideAlignVerticalDistributeStart:vr,LucideAlignVerticalJustifyCenter:gr,LucideAlignVerticalJustifyEnd:xr,LucideAlignVerticalJustifyStart:_r,LucideAlignVerticalSpaceAround:Lr,LucideAlignVerticalSpaceBetween:Mr,LucideAmbulance:br,LucideAmpersand:Ir,LucideAmpersands:wr,LucideAmphora:Cr,LucideAnchor:jr,LucideAngry:Nr,LucideAnnoyed:Sr,LucideAntenna:$r,LucideAnvil:qr,LucideAperture:Ar,LucideAppWindow:Pr,LucideAppWindowMac:zr,LucideApple:Vr,LucideArchive:Hr,LucideArchiveRestore:Tr,LucideArchiveX:Dr,LucideAreaChart:ba,LucideArmchair:Br,LucideArrowBigDown:Fr,LucideArrowBigDownDash:Rr,LucideArrowBigLeft:Or,LucideArrowBigLeftDash:Er,LucideArrowBigRight:Wr,LucideArrowBigRightDash:Ur,LucideArrowBigUp:Kr,LucideArrowBigUpDash:Gr,LucideArrowDown:M1,LucideArrowDown01:Zr,LucideArrowDown10:Xr,LucideArrowDownAZ:la,LucideArrowDownAz:la,LucideArrowDownCircle:Da,LucideArrowDownFromLine:Yr,LucideArrowDownLeft:Jr,LucideArrowDownLeftFromCircle:Ba,LucideArrowDownLeftFromSquare:zo,LucideArrowDownLeftSquare:So,LucideArrowDownNarrowWide:Qr,LucideArrowDownRight:es,LucideArrowDownRightFromCircle:Ra,LucideArrowDownRightFromSquare:Po,LucideArrowDownRightSquare:$o,LucideArrowDownSquare:qo,LucideArrowDownToDot:ts,LucideArrowDownToLine:as,LucideArrowDownUp:ns,LucideArrowDownWideNarrow:ha,LucideArrowDownZA:ua,LucideArrowDownZa:ua,LucideArrowLeft:G1,LucideArrowLeftCircle:Ha,LucideArrowLeftFromLine:os,LucideArrowLeftRight:cs,LucideArrowLeftSquare:Ao,LucideArrowLeftToLine:is,LucideArrowRight:ls,LucideArrowRightCircle:Oa,LucideArrowRightFromLine:rs,LucideArrowRightLeft:ss,LucideArrowRightSquare:Do,LucideArrowRightToLine:ds,LucideArrowUp:L1,LucideArrowUp01:hs,LucideArrowUp10:us,LucideArrowUpAZ:pa,LucideArrowUpAz:pa,LucideArrowUpCircle:Ua,LucideArrowUpDown:ps,LucideArrowUpFromDot:ys,LucideArrowUpFromLine:ks,LucideArrowUpLeft:ms,LucideArrowUpLeftFromCircle:Fa,LucideArrowUpLeftFromSquare:Vo,LucideArrowUpLeftSquare:Ho,LucideArrowUpNarrowWide:ya,LucideArrowUpRight:fs,LucideArrowUpRightFromCircle:Ea,LucideArrowUpRightFromSquare:To,LucideArrowUpRightSquare:Bo,LucideArrowUpSquare:Ro,LucideArrowUpToLine:gs,LucideArrowUpWideNarrow:vs,LucideArrowUpZA:ka,LucideArrowUpZa:ka,LucideArrowsUpFromLine:xs,LucideAsterisk:_s,LucideAsteriskSquare:Fo,LucideAtSign:Ms,LucideAtom:Ls,LucideAudioLines:bs,LucideAudioWaveform:Is,LucideAward:ws,LucideAxe:Cs,LucideAxis3D:ma,LucideAxis3d:ma,LucideBaby:js,LucideBackpack:Ns,LucideBadge:Us,LucideBadgeAlert:Ss,LucideBadgeCent:$s,LucideBadgeCheck:fa,LucideBadgeDollarSign:qs,LucideBadgeEuro:As,LucideBadgeHelp:ga,LucideBadgeIndianRupee:zs,LucideBadgeInfo:Ps,LucideBadgeJapaneseYen:Ts,LucideBadgeMinus:Vs,LucideBadgePercent:Ds,LucideBadgePlus:Hs,LucideBadgePoundSterling:Bs,LucideBadgeQuestionMark:ga,LucideBadgeRussianRuble:Rs,LucideBadgeSwissFranc:Fs,LucideBadgeTurkishLira:Es,LucideBadgeX:Os,LucideBaggageClaim:Ws,LucideBan:Gs,LucideBanana:Ks,LucideBandage:Zs,LucideBanknote:Qs,LucideBanknoteArrowDown:Xs,LucideBanknoteArrowUp:Ys,LucideBanknoteX:Js,LucideBarChart:qa,LucideBarChart2:Aa,LucideBarChart3:Sa,LucideBarChart4:Na,LucideBarChartBig:ja,LucideBarChartHorizontal:wa,LucideBarChartHorizontalBig:Ia,LucideBarcode:e2,LucideBarrel:t2,LucideBaseline:a2,LucideBath:n2,LucideBattery:l2,LucideBatteryCharging:o2,LucideBatteryFull:c2,LucideBatteryLow:i2,LucideBatteryMedium:r2,LucideBatteryPlus:s2,LucideBatteryWarning:d2,LucideBeaker:h2,LucideBean:p2,LucideBeanOff:u2,LucideBed:m2,LucideBedDouble:y2,LucideBedSingle:k2,LucideBeef:f2,LucideBeer:v2,LucideBeerOff:g2,LucideBell:I2,LucideBellDot:x2,LucideBellElectric:_2,LucideBellMinus:M2,LucideBellOff:L2,LucideBellPlus:b2,LucideBellRing:w2,LucideBetweenHorizonalEnd:va,LucideBetweenHorizonalStart:xa,LucideBetweenHorizontalEnd:va,LucideBetweenHorizontalStart:xa,LucideBetweenVerticalEnd:j2,LucideBetweenVerticalStart:C2,LucideBicepsFlexed:N2,LucideBike:$2,LucideBinary:S2,LucideBinoculars:q2,LucideBiohazard:A2,LucideBird:z2,LucideBitcoin:P2,LucideBlend:V2,LucideBlinds:T2,LucideBlocks:D2,LucideBluetooth:F2,LucideBluetoothConnected:H2,LucideBluetoothOff:B2,LucideBluetoothSearching:R2,LucideBold:E2,LucideBolt:O2,LucideBomb:U2,LucideBone:W2,LucideBook:md,LucideBookA:G2,LucideBookAlert:K2,LucideBookAudio:Z2,LucideBookCheck:X2,LucideBookCopy:Y2,LucideBookDashed:_a,LucideBookDown:J2,LucideBookHeadphones:Q2,LucideBookHeart:ed,LucideBookImage:td,LucideBookKey:ad,LucideBookLock:nd,LucideBookMarked:cd,LucideBookMinus:od,LucideBookOpen:sd,LucideBookOpenCheck:id,LucideBookOpenText:rd,LucideBookPlus:dd,LucideBookTemplate:_a,LucideBookText:ld,LucideBookType:hd,LucideBookUp:pd,LucideBookUp2:ud,LucideBookUser:yd,LucideBookX:kd,LucideBookmark:_d,LucideBookmarkCheck:fd,LucideBookmarkMinus:gd,LucideBookmarkPlus:vd,LucideBookmarkX:xd,LucideBoomBox:Md,LucideBot:Id,LucideBotMessageSquare:Ld,LucideBotOff:bd,LucideBottleWine:wd,LucideBowArrow:Cd,LucideBox:jd,LucideBoxSelect:Qo,LucideBoxes:Nd,LucideBraces:Ma,LucideBrackets:Sd,LucideBrain:Ad,LucideBrainCircuit:$d,LucideBrainCog:qd,LucideBrickWall:Vd,LucideBrickWallFire:zd,LucideBrickWallShield:Pd,LucideBriefcase:Bd,LucideBriefcaseBusiness:Td,LucideBriefcaseConveyorBelt:Dd,LucideBriefcaseMedical:Hd,LucideBringToFront:Rd,LucideBrush:Ed,LucideBrushCleaning:Fd,LucideBubbles:Od,LucideBug:Kd,LucideBugOff:Ud,LucideBugPlay:Wd,LucideBuilding:Zd,LucideBuilding2:Gd,LucideBus:Yd,LucideBusFront:Xd,LucideCable:Qd,LucideCableCar:Jd,LucideCake:t0,LucideCakeSlice:e0,LucideCalculator:a0,LucideCalendar:K1,LucideCalendar1:n0,LucideCalendarArrowDown:o0,LucideCalendarArrowUp:c0,LucideCalendarCheck:r0,LucideCalendarCheck2:i0,LucideCalendarClock:s0,LucideCalendarCog:d0,LucideCalendarDays:l0,LucideCalendarFold:h0,LucideCalendarHeart:u0,LucideCalendarMinus:y0,LucideCalendarMinus2:p0,LucideCalendarOff:k0,LucideCalendarPlus:f0,LucideCalendarPlus2:m0,LucideCalendarRange:g0,LucideCalendarSearch:v0,LucideCalendarSync:x0,LucideCalendarX:M0,LucideCalendarX2:_0,LucideCamera:b0,LucideCameraOff:L0,LucideCandlestickChart:Ca,LucideCandy:C0,LucideCandyCane:I0,LucideCandyOff:w0,LucideCannabis:j0,LucideCaptions:La,LucideCaptionsOff:N0,LucideCar:q0,LucideCarFront:S0,LucideCarTaxiFront:$0,LucideCaravan:A0,LucideCardSim:z0,LucideCarrot:P0,LucideCaseLower:V0,LucideCaseSensitive:T0,LucideCaseUpper:D0,LucideCassetteTape:H0,LucideCast:B0,LucideCastle:F0,LucideCat:R0,LucideCctv:E0,LucideChartArea:ba,LucideChartBar:wa,LucideChartBarBig:Ia,LucideChartBarDecreasing:O0,LucideChartBarIncreasing:U0,LucideChartBarStacked:W0,LucideChartCandlestick:Ca,LucideChartColumn:Sa,LucideChartColumnBig:ja,LucideChartColumnDecreasing:G0,LucideChartColumnIncreasing:Na,LucideChartColumnStacked:K0,LucideChartGantt:Z0,LucideChartLine:$a,LucideChartNetwork:X0,LucideChartNoAxesColumn:Aa,LucideChartNoAxesColumnDecreasing:Y0,LucideChartNoAxesColumnIncreasing:qa,LucideChartNoAxesCombined:J0,LucideChartNoAxesGantt:za,LucideChartPie:Pa,LucideChartScatter:Va,LucideChartSpline:Q0,LucideCheck:Z1,LucideCheckCheck:el,LucideCheckCircle:Wa,LucideCheckCircle2:Ga,LucideCheckLine:tl,LucideCheckSquare:Oo,LucideCheckSquare2:Uo,LucideChefHat:al,LucideCherry:nl,LucideChevronDown:Yt,LucideChevronDownCircle:Ka,LucideChevronDownSquare:Wo,LucideChevronFirst:ol,LucideChevronLast:cl,LucideChevronLeft:il,LucideChevronLeftCircle:Za,LucideChevronLeftSquare:Go,LucideChevronRight:X1,LucideChevronRightCircle:Xa,LucideChevronRightSquare:Ko,LucideChevronUp:Xc,LucideChevronUpCircle:Ya,LucideChevronUpSquare:Zo,LucideChevronsDown:sl,LucideChevronsDownUp:rl,LucideChevronsLeft:ll,LucideChevronsLeftRight:dl,LucideChevronsLeftRightEllipsis:hl,LucideChevronsRight:pl,LucideChevronsRightLeft:ul,LucideChevronsUp:yl,LucideChevronsUpDown:b1,LucideChrome:kl,LucideChurch:ml,LucideCigarette:gl,LucideCigaretteOff:fl,LucideCircle:ql,LucideCircleAlert:Ta,LucideCircleArrowDown:Da,LucideCircleArrowLeft:Ha,LucideCircleArrowOutDownLeft:Ba,LucideCircleArrowOutDownRight:Ra,LucideCircleArrowOutUpLeft:Fa,LucideCircleArrowOutUpRight:Ea,LucideCircleArrowRight:Oa,LucideCircleArrowUp:Ua,LucideCircleCheck:Ga,LucideCircleCheckBig:Wa,LucideCircleChevronDown:Ka,LucideCircleChevronLeft:Za,LucideCircleChevronRight:Xa,LucideCircleChevronUp:Ya,LucideCircleDashed:vl,LucideCircleDivide:Ja,LucideCircleDollarSign:_l,LucideCircleDot:Ml,LucideCircleDotDashed:xl,LucideCircleEllipsis:Ll,LucideCircleEqual:bl,LucideCircleFadingArrowUp:wl,LucideCircleFadingPlus:Il,LucideCircleGauge:Qa,LucideCircleHelp:_t,LucideCircleMinus:en,LucideCircleOff:Cl,LucideCircleParking:nn,LucideCircleParkingOff:tn,LucideCirclePause:an,LucideCirclePercent:on,LucideCirclePlay:cn,LucideCirclePlus:rn,LucideCirclePoundSterling:jl,LucideCirclePower:sn,LucideCircleQuestionMark:_t,LucideCircleSlash:Nl,LucideCircleSlash2:dn,LucideCircleSlashed:dn,LucideCircleSmall:Sl,LucideCircleStar:$l,LucideCircleStop:ln,LucideCircleUser:un,LucideCircleUserRound:hn,LucideCircleX:Ut,LucideCircuitBoard:Al,LucideCitrus:zl,LucideClapperboard:Pl,LucideClipboard:Ul,LucideClipboardCheck:Vl,LucideClipboardClock:Tl,LucideClipboardCopy:Dl,LucideClipboardEdit:yn,LucideClipboardList:Hl,LucideClipboardMinus:Bl,LucideClipboardPaste:Rl,LucideClipboardPen:yn,LucideClipboardPenLine:pn,LucideClipboardPlus:Fl,LucideClipboardSignature:pn,LucideClipboardType:El,LucideClipboardX:Ol,LucideClock:sh,LucideClock1:Gl,LucideClock10:Wl,LucideClock11:Kl,LucideClock12:Zl,LucideClock2:Xl,LucideClock3:Y1,LucideClock4:Yl,LucideClock5:Jl,LucideClock6:Ql,LucideClock7:eh,LucideClock8:th,LucideClock9:ah,LucideClockAlert:nh,LucideClockArrowDown:oh,LucideClockArrowUp:ch,LucideClockFading:ih,LucideClockPlus:rh,LucideClosedCaption:dh,LucideCloud:Ih,LucideCloudAlert:lh,LucideCloudCheck:hh,LucideCloudCog:uh,LucideCloudDownload:kn,LucideCloudDrizzle:ph,LucideCloudFog:yh,LucideCloudHail:kh,LucideCloudLightning:mh,LucideCloudMoon:gh,LucideCloudMoonRain:fh,LucideCloudOff:vh,LucideCloudRain:_h,LucideCloudRainWind:xh,LucideCloudSnow:Mh,LucideCloudSun:bh,LucideCloudSunRain:Lh,LucideCloudUpload:mn,LucideCloudy:wh,LucideClover:Ch,LucideClub:jh,LucideCode:Nh,LucideCode2:fn,LucideCodeSquare:Xo,LucideCodeXml:fn,LucideCodepen:Sh,LucideCodesandbox:$h,LucideCoffee:qh,LucideCog:Ah,LucideCoins:zh,LucideColumns:gn,LucideColumns2:gn,LucideColumns3:vn,LucideColumns3Cog:Mt,LucideColumns4:Ph,LucideColumnsSettings:Mt,LucideCombine:Vh,LucideCommand:Th,LucideCompass:Dh,LucideComponent:Hh,LucideComputer:Bh,LucideConciergeBell:Rh,LucideCone:Fh,LucideConstruction:Eh,LucideContact:Oh,LucideContact2:xn,LucideContactRound:xn,LucideContainer:Uh,LucideContrast:Gh,LucideCookie:Wh,LucideCookingPot:Zh,LucideCopy:eu,LucideCopyCheck:Kh,LucideCopyMinus:Xh,LucideCopyPlus:Yh,LucideCopySlash:Jh,LucideCopyX:Qh,LucideCopyleft:tu,LucideCopyright:au,LucideCornerDownLeft:nu,LucideCornerDownRight:ou,LucideCornerLeftDown:cu,LucideCornerLeftUp:iu,LucideCornerRightDown:ru,LucideCornerRightUp:su,LucideCornerUpLeft:du,LucideCornerUpRight:lu,LucideCpu:hu,LucideCreativeCommons:uu,LucideCreditCard:pu,LucideCroissant:yu,LucideCrop:ku,LucideCross:mu,LucideCrosshair:fu,LucideCrown:gu,LucideCuboid:vu,LucideCupSoda:xu,LucideCurlyBraces:Ma,LucideCurrency:_u,LucideCylinder:Mu,LucideDam:Lu,LucideDatabase:wu,LucideDatabaseBackup:bu,LucideDatabaseZap:Iu,LucideDecimalsArrowLeft:Cu,LucideDecimalsArrowRight:ju,LucideDelete:Nu,LucideDessert:Su,LucideDiameter:$u,LucideDiamond:zu,LucideDiamondMinus:qu,LucideDiamondPercent:_n,LucideDiamondPlus:Au,LucideDice1:Pu,LucideDice2:Vu,LucideDice3:Tu,LucideDice4:Du,LucideDice5:Hu,LucideDice6:Bu,LucideDices:Ru,LucideDiff:Fu,LucideDisc:Wu,LucideDisc2:Eu,LucideDisc3:Ou,LucideDiscAlbum:Uu,LucideDivide:Gu,LucideDivideCircle:Ja,LucideDivideSquare:ec,LucideDna:Zu,LucideDnaOff:Ku,LucideDock:Xu,LucideDog:Yu,LucideDollarSign:Ju,LucideDonut:Qu,LucideDoorClosed:tp,LucideDoorClosedLocked:ep,LucideDoorOpen:ap,LucideDot:np,LucideDotSquare:ac,LucideDownload:cp,LucideDownloadCloud:kn,LucideDraftingCompass:op,LucideDrama:ip,LucideDribbble:rp,LucideDrill:sp,LucideDrone:dp,LucideDroplet:hp,LucideDropletOff:lp,LucideDroplets:up,LucideDrum:pp,LucideDrumstick:yp,LucideDumbbell:kp,LucideEar:fp,LucideEarOff:mp,LucideEarth:Mn,LucideEarthLock:gp,LucideEclipse:vp,LucideEdit:at,LucideEdit2:$t,LucideEdit3:St,LucideEgg:Mp,LucideEggFried:xp,LucideEggOff:_p,LucideEllipsis:bn,LucideEllipsisVertical:Ln,LucideEqual:Ip,LucideEqualApproximately:Lp,LucideEqualNot:bp,LucideEqualSquare:tc,LucideEraser:wp,LucideEthernetPort:Cp,LucideEuro:jp,LucideExpand:Sp,LucideExternalLink:Np,LucideEye:Q1,LucideEyeClosed:$p,LucideEyeOff:J1,LucideFacebook:qp,LucideFactory:Ap,LucideFan:zp,LucideFastForward:Pp,LucideFeather:Vp,LucideFence:Tp,LucideFerrisWheel:Dp,LucideFigma:Hp,LucideFile:Ay,LucideFileArchive:Bp,LucideFileAudio:Fp,LucideFileAudio2:Rp,LucideFileAxis3D:In,LucideFileAxis3d:In,LucideFileBadge:Up,LucideFileBadge2:Ep,LucideFileBarChart:wn,LucideFileBarChart2:Cn,LucideFileBox:Op,LucideFileChartColumn:Cn,LucideFileChartColumnIncreasing:wn,LucideFileChartLine:jn,LucideFileChartPie:Nn,LucideFileCheck:Gp,LucideFileCheck2:Wp,LucideFileClock:Kp,LucideFileCode:Zp,LucideFileCode2:Xp,LucideFileCog:Sn,LucideFileCog2:Sn,LucideFileDiff:Yp,LucideFileDigit:Jp,LucideFileDown:Qp,LucideFileEdit:qn,LucideFileHeart:ey,LucideFileImage:ty,LucideFileInput:ay,LucideFileJson:oy,LucideFileJson2:ny,LucideFileKey:iy,LucideFileKey2:cy,LucideFileLineChart:jn,LucideFileLock:sy,LucideFileLock2:ry,LucideFileMinus:ly,LucideFileMinus2:dy,LucideFileMusic:hy,LucideFileOutput:uy,LucideFilePen:qn,LucideFilePenLine:$n,LucideFilePieChart:Nn,LucideFilePlay:An,LucideFilePlus:yy,LucideFilePlus2:py,LucideFileQuestion:zn,LucideFileQuestionMark:zn,LucideFileScan:ky,LucideFileSearch:fy,LucideFileSearch2:my,LucideFileSignature:$n,LucideFileSliders:gy,LucideFileSpreadsheet:vy,LucideFileStack:xy,LucideFileSymlink:_y,LucideFileTerminal:My,LucideFileText:Ly,LucideFileType:Iy,LucideFileType2:by,LucideFileUp:wy,LucideFileUser:Cy,LucideFileVideo:An,LucideFileVideo2:Pn,LucideFileVideoCamera:Pn,LucideFileVolume:Ny,LucideFileVolume2:jy,LucideFileWarning:Sy,LucideFileX:qy,LucideFileX2:$y,LucideFiles:zy,LucideFilm:Py,LucideFilter:Wt,LucideFilterX:Dn,LucideFingerprint:Vy,LucideFireExtinguisher:Ty,LucideFish:Hy,LucideFishOff:Dy,LucideFishSymbol:By,LucideFlag:Oy,LucideFlagOff:Ry,LucideFlagTriangleLeft:Fy,LucideFlagTriangleRight:Ey,LucideFlame:Wy,LucideFlameKindling:Uy,LucideFlashlight:Ky,LucideFlashlightOff:Gy,LucideFlaskConical:Xy,LucideFlaskConicalOff:Zy,LucideFlaskRound:Yy,LucideFlipHorizontal:Qy,LucideFlipHorizontal2:Jy,LucideFlipVertical:t4,LucideFlipVertical2:e4,LucideFlower:n4,LucideFlower2:a4,LucideFocus:o4,LucideFoldHorizontal:c4,LucideFoldVertical:i4,LucideFolder:ei,LucideFolderArchive:r4,LucideFolderCheck:s4,LucideFolderClock:d4,LucideFolderClosed:l4,LucideFolderCode:h4,LucideFolderCog:Vn,LucideFolderCog2:Vn,LucideFolderDot:u4,LucideFolderDown:p4,LucideFolderEdit:Tn,LucideFolderGit:k4,LucideFolderGit2:y4,LucideFolderHeart:m4,LucideFolderInput:f4,LucideFolderKanban:g4,LucideFolderKey:v4,LucideFolderLock:x4,LucideFolderMinus:_4,LucideFolderOpen:L4,LucideFolderOpenDot:M4,LucideFolderOutput:b4,LucideFolderPen:Tn,LucideFolderPlus:Yc,LucideFolderRoot:I4,LucideFolderSearch:C4,LucideFolderSearch2:w4,LucideFolderSymlink:j4,LucideFolderSync:N4,LucideFolderTree:S4,LucideFolderUp:$4,LucideFolderX:q4,LucideFolders:A4,LucideFootprints:z4,LucideForkKnife:Fc,LucideForkKnifeCrossed:Rc,LucideForklift:P4,LucideFormInput:xo,LucideForward:V4,LucideFrame:T4,LucideFramer:D4,LucideFrown:H4,LucideFuel:B4,LucideFullscreen:R4,LucideFunctionSquare:nc,LucideFunnel:Wt,LucideFunnelPlus:F4,LucideFunnelX:Dn,LucideGalleryHorizontal:O4,LucideGalleryHorizontalEnd:E4,LucideGalleryThumbnails:U4,LucideGalleryVertical:G4,LucideGalleryVerticalEnd:W4,LucideGamepad:Z4,LucideGamepad2:K4,LucideGanttChart:za,LucideGanttChartSquare:bt,LucideGauge:X4,LucideGaugeCircle:Qa,LucideGavel:Y4,LucideGem:J4,LucideGeorgianLari:Q4,LucideGhost:e5,LucideGift:t5,LucideGitBranch:n5,LucideGitBranchPlus:a5,LucideGitCommit:Hn,LucideGitCommitHorizontal:Hn,LucideGitCommitVertical:o5,LucideGitCompare:i5,LucideGitCompareArrows:c5,LucideGitFork:r5,LucideGitGraph:s5,LucideGitMerge:d5,LucideGitPullRequest:k5,LucideGitPullRequestArrow:l5,LucideGitPullRequestClosed:h5,LucideGitPullRequestCreate:p5,LucideGitPullRequestCreateArrow:u5,LucideGitPullRequestDraft:y5,LucideGithub:m5,LucideGitlab:f5,LucideGlassWater:g5,LucideGlasses:v5,LucideGlobe:_5,LucideGlobe2:Mn,LucideGlobeLock:x5,LucideGoal:M5,LucideGpu:L5,LucideGrab:On,LucideGraduationCap:b5,LucideGrape:I5,LucideGrid:Lt,LucideGrid2X2:En,LucideGrid2X2Check:Bn,LucideGrid2X2Plus:Rn,LucideGrid2X2X:Fn,LucideGrid2x2:En,LucideGrid2x2Check:Bn,LucideGrid2x2Plus:Rn,LucideGrid2x2X:Fn,LucideGrid3X3:Lt,LucideGrid3x2:w5,LucideGrid3x3:Lt,LucideGrip:j5,LucideGripHorizontal:C5,LucideGripVertical:ti,LucideGroup:N5,LucideGuitar:S5,LucideHam:$5,LucideHamburger:q5,LucideHammer:A5,LucideHand:H5,LucideHandCoins:z5,LucideHandFist:P5,LucideHandGrab:On,LucideHandHeart:V5,LucideHandHelping:Un,LucideHandMetal:T5,LucideHandPlatter:D5,LucideHandbag:B5,LucideHandshake:R5,LucideHardDrive:O5,LucideHardDriveDownload:F5,LucideHardDriveUpload:E5,LucideHardHat:U5,LucideHash:W5,LucideHatGlasses:G5,LucideHaze:K5,LucideHdmiPort:Z5,LucideHeading:ak,LucideHeading1:X5,LucideHeading2:Y5,LucideHeading3:J5,LucideHeading4:Q5,LucideHeading5:ek,LucideHeading6:tk,LucideHeadphoneOff:nk,LucideHeadphones:ok,LucideHeadset:ck,LucideHeart:uk,LucideHeartCrack:ik,LucideHeartHandshake:rk,LucideHeartMinus:sk,LucideHeartOff:dk,LucideHeartPlus:lk,LucideHeartPulse:hk,LucideHeater:pk,LucideHelpCircle:_t,LucideHelpingHand:Un,LucideHexagon:yk,LucideHighlighter:kk,LucideHistory:mk,LucideHome:Gt,LucideHop:gk,LucideHopOff:fk,LucideHospital:ai,LucideHotel:vk,LucideHourglass:xk,LucideHouse:Gt,LucideHousePlug:_k,LucideHousePlus:Lk,LucideHouseWifi:Mk,LucideIceCream:Gn,LucideIceCream2:Wn,LucideIceCreamBowl:Wn,LucideIceCreamCone:Gn,LucideIdCard:Ik,LucideIdCardLanyard:bk,LucideImage:Ak,LucideImageDown:wk,LucideImageMinus:Ck,LucideImageOff:jk,LucideImagePlay:Nk,LucideImagePlus:Sk,LucideImageUp:$k,LucideImageUpscale:qk,LucideImages:zk,LucideImport:Pk,LucideInbox:Vk,LucideIndent:Zn,LucideIndentDecrease:Kn,LucideIndentIncrease:Zn,LucideIndianRupee:Tk,LucideInfinity:Dk,LucideInfo:Hk,LucideInspect:lc,LucideInspectionPanel:Bk,LucideInstagram:Rk,LucideItalic:Fk,LucideIterationCcw:Ek,LucideIterationCw:Ok,LucideJapaneseYen:Wk,LucideJoystick:Uk,LucideKanban:Gk,LucideKanbanSquare:oc,LucideKanbanSquareDashed:Yo,LucideKayak:Kk,LucideKey:Yk,LucideKeyRound:Zk,LucideKeySquare:Xk,LucideKeyboard:em,LucideKeyboardMusic:Jk,LucideKeyboardOff:Qk,LucideLamp:im,LucideLampCeiling:tm,LucideLampDesk:nm,LucideLampFloor:am,LucideLampWallDown:om,LucideLampWallUp:cm,LucideLandPlot:rm,LucideLandmark:sm,LucideLanguages:dm,LucideLaptop:hm,LucideLaptop2:Xn,LucideLaptopMinimal:Xn,LucideLaptopMinimalCheck:lm,LucideLasso:pm,LucideLassoSelect:um,LucideLaugh:ym,LucideLayers:Yn,LucideLayers2:km,LucideLayers3:Yn,LucideLayout:go,LucideLayoutDashboard:mm,LucideLayoutGrid:fm,LucideLayoutList:gm,LucideLayoutPanelLeft:vm,LucideLayoutPanelTop:xm,LucideLayoutTemplate:_m,LucideLeaf:Mm,LucideLeafyGreen:bm,LucideLectern:Lm,LucideLetterText:Im,LucideLibrary:Cm,LucideLibraryBig:wm,LucideLibrarySquare:cc,LucideLifeBuoy:jm,LucideLigature:Nm,LucideLightbulb:$m,LucideLightbulbOff:Sm,LucideLineChart:$a,LucideLineSquiggle:qm,LucideLink:Pm,LucideLink2:Am,LucideLink2Off:zm,LucideLinkedin:Vm,LucideList:Qm,LucideListCheck:Tm,LucideListChecks:Dm,LucideListCollapse:Hm,LucideListEnd:Bm,LucideListFilter:Em,LucideListFilterPlus:Rm,LucideListMinus:Fm,LucideListMusic:Om,LucideListOrdered:Um,LucideListPlus:Wm,LucideListRestart:Gm,LucideListStart:Km,LucideListTodo:Zm,LucideListTree:Xm,LucideListVideo:Ym,LucideListX:Jm,LucideLoader:t3,LucideLoader2:Jn,LucideLoaderCircle:Jn,LucideLoaderPinwheel:e3,LucideLocate:o3,LucideLocateFixed:a3,LucideLocateOff:n3,LucideLocationEdit:ao,LucideLock:i3,LucideLockKeyhole:c3,LucideLockKeyholeOpen:Qn,LucideLockOpen:eo,LucideLogIn:r3,LucideLogOut:s3,LucideLogs:d3,LucideLollipop:l3,LucideLuggage:h3,LucideMSquare:ic,LucideMagnet:u3,LucideMail:v3,LucideMailCheck:p3,LucideMailMinus:y3,LucideMailOpen:k3,LucideMailPlus:m3,LucideMailQuestion:to,LucideMailQuestionMark:to,LucideMailSearch:f3,LucideMailWarning:g3,LucideMailX:x3,LucideMailbox:_3,LucideMails:M3,LucideMap:T3,LucideMapMinus:L3,LucideMapPin:z3,LucideMapPinCheck:b3,LucideMapPinCheckInside:I3,LucideMapPinHouse:w3,LucideMapPinMinus:j3,LucideMapPinMinusInside:C3,LucideMapPinOff:N3,LucideMapPinPen:ao,LucideMapPinPlus:$3,LucideMapPinPlusInside:S3,LucideMapPinX:A3,LucideMapPinXInside:q3,LucideMapPinned:P3,LucideMapPlus:V3,LucideMars:H3,LucideMarsStroke:D3,LucideMartini:B3,LucideMaximize:E3,LucideMaximize2:R3,LucideMedal:F3,LucideMegaphone:U3,LucideMegaphoneOff:O3,LucideMeh:W3,LucideMemoryStick:G3,LucideMenu:I1,LucideMenuSquare:rc,LucideMerge:K3,LucideMessageCircle:of,LucideMessageCircleCode:Z3,LucideMessageCircleDashed:X3,LucideMessageCircleHeart:Y3,LucideMessageCircleMore:J3,LucideMessageCircleOff:Q3,LucideMessageCirclePlus:ef,LucideMessageCircleQuestion:no,LucideMessageCircleQuestionMark:no,LucideMessageCircleReply:tf,LucideMessageCircleWarning:af,LucideMessageCircleX:nf,LucideMessageSquare:_f,LucideMessageSquareCode:cf,LucideMessageSquareDashed:rf,LucideMessageSquareDiff:sf,LucideMessageSquareDot:df,LucideMessageSquareHeart:lf,LucideMessageSquareLock:hf,LucideMessageSquareMore:uf,LucideMessageSquareOff:pf,LucideMessageSquarePlus:yf,LucideMessageSquareQuote:kf,LucideMessageSquareReply:mf,LucideMessageSquareShare:ff,LucideMessageSquareText:gf,LucideMessageSquareWarning:vf,LucideMessageSquareX:xf,LucideMessagesSquare:Mf,LucideMic:bf,LucideMic2:oo,LucideMicOff:Lf,LucideMicVocal:oo,LucideMicrochip:If,LucideMicroscope:wf,LucideMicrowave:Cf,LucideMilestone:jf,LucideMilk:Sf,LucideMilkOff:Nf,LucideMinimize:qf,LucideMinimize2:$f,LucideMinus:Af,LucideMinusCircle:en,LucideMinusSquare:sc,LucideMonitor:Wf,LucideMonitorCheck:zf,LucideMonitorCog:Pf,LucideMonitorDot:Vf,LucideMonitorDown:Tf,LucideMonitorOff:Df,LucideMonitorPause:Bf,LucideMonitorPlay:Hf,LucideMonitorSmartphone:Rf,LucideMonitorSpeaker:Ff,LucideMonitorStop:Ef,LucideMonitorUp:Of,LucideMonitorX:Uf,LucideMoon:Kf,LucideMoonStar:Gf,LucideMoreHorizontal:bn,LucideMoreVertical:Ln,LucideMountain:Xf,LucideMountainSnow:Zf,LucideMouse:a6,LucideMouseOff:Yf,LucideMousePointer:e6,LucideMousePointer2:Jf,LucideMousePointerBan:Qf,LucideMousePointerClick:t6,LucideMousePointerSquareDashed:Jo,LucideMove:a.Move,LucideMove3D:co,LucideMove3d:co,LucideMoveDiagonal:o6,LucideMoveDiagonal2:n6,LucideMoveDown:s6,LucideMoveDownLeft:c6,LucideMoveDownRight:i6,LucideMoveHorizontal:r6,LucideMoveLeft:d6,LucideMoveRight:l6,LucideMoveUp:p6,LucideMoveUpLeft:h6,LucideMoveUpRight:u6,LucideMoveVertical:y6,LucideMusic:g6,LucideMusic2:k6,LucideMusic3:m6,LucideMusic4:f6,LucideNavigation:M6,LucideNavigation2:x6,LucideNavigation2Off:v6,LucideNavigationOff:_6,LucideNetwork:L6,LucideNewspaper:b6,LucideNfc:I6,LucideNonBinary:w6,LucideNotebook:S6,LucideNotebookPen:C6,LucideNotebookTabs:j6,LucideNotebookText:N6,LucideNotepadText:q6,LucideNotepadTextDashed:$6,LucideNut:z6,LucideNutOff:A6,LucideOctagon:V6,LucideOctagonAlert:io,LucideOctagonMinus:P6,LucideOctagonPause:ro,LucideOctagonX:so,LucideOmega:T6,LucideOption:D6,LucideOrbit:H6,LucideOrigami:B6,LucideOutdent:Kn,LucidePackage:K6,LucidePackage2:R6,LucidePackageCheck:F6,LucidePackageMinus:E6,LucidePackageOpen:O6,LucidePackagePlus:U6,LucidePackageSearch:W6,LucidePackageX:G6,LucidePaintBucket:Z6,LucidePaintRoller:X6,LucidePaintbrush:Y6,LucidePaintbrush2:lo,LucidePaintbrushVertical:lo,LucidePalette:J6,LucidePalmtree:Sc,LucidePanda:Q6,LucidePanelBottom:a8,LucidePanelBottomClose:e8,LucidePanelBottomDashed:ho,LucidePanelBottomInactive:ho,LucidePanelBottomOpen:t8,LucidePanelLeft:ko,LucidePanelLeftClose:uo,LucidePanelLeftDashed:po,LucidePanelLeftInactive:po,LucidePanelLeftOpen:yo,LucidePanelRight:c8,LucidePanelRightClose:n8,LucidePanelRightDashed:mo,LucidePanelRightInactive:mo,LucidePanelRightOpen:o8,LucidePanelTop:s8,LucidePanelTopClose:i8,LucidePanelTopDashed:fo,LucidePanelTopInactive:fo,LucidePanelTopOpen:r8,LucidePanelsLeftBottom:d8,LucidePanelsLeftRight:vn,LucidePanelsRightBottom:l8,LucidePanelsTopBottom:Lo,LucidePanelsTopLeft:go,LucidePaperclip:h8,LucideParentheses:u8,LucideParkingCircle:nn,LucideParkingCircleOff:tn,LucideParkingMeter:p8,LucideParkingSquare:hc,LucideParkingSquareOff:dc,LucidePartyPopper:y8,LucidePause:k8,LucidePauseCircle:an,LucidePauseOctagon:ro,LucidePawPrint:m8,LucidePcCase:f8,LucidePen:$t,LucidePenBox:at,LucidePenLine:St,LucidePenOff:v8,LucidePenSquare:at,LucidePenTool:g8,LucidePencil:w1,LucidePencilLine:x8,LucidePencilOff:_8,LucidePencilRuler:M8,LucidePentagon:L8,LucidePercent:b8,LucidePercentCircle:on,LucidePercentDiamond:_n,LucidePercentSquare:uc,LucidePersonStanding:w8,LucidePhilippinePeso:I8,LucidePhone:q8,LucidePhoneCall:C8,LucidePhoneForwarded:j8,LucidePhoneIncoming:N8,LucidePhoneMissed:S8,LucidePhoneOff:$8,LucidePhoneOutgoing:A8,LucidePi:z8,LucidePiSquare:pc,LucidePiano:P8,LucidePickaxe:V8,LucidePictureInPicture:D8,LucidePictureInPicture2:T8,LucidePieChart:Pa,LucidePiggyBank:H8,LucidePilcrow:R8,LucidePilcrowLeft:B8,LucidePilcrowRight:F8,LucidePilcrowSquare:yc,LucidePill:O8,LucidePillBottle:E8,LucidePin:W8,LucidePinOff:U8,LucidePipette:G8,LucidePizza:K8,LucidePlane:Y8,LucidePlaneLanding:Z8,LucidePlaneTakeoff:X8,LucidePlay:J8,LucidePlayCircle:cn,LucidePlaySquare:kc,LucidePlug:eg,LucidePlug2:Q8,LucidePlugZap:vo,LucidePlugZap2:vo,LucidePlus:Jc,LucidePlusCircle:rn,LucidePlusSquare:mc,LucidePocket:ag,LucidePocketKnife:tg,LucidePodcast:ng,LucidePointer:cg,LucidePointerOff:og,LucidePopcorn:rg,LucidePopsicle:ig,LucidePoundSterling:sg,LucidePower:lg,LucidePowerCircle:sn,LucidePowerOff:dg,LucidePowerSquare:fc,LucidePresentation:hg,LucidePrinter:pg,LucidePrinterCheck:ug,LucideProjector:yg,LucideProportions:kg,LucidePuzzle:fg,LucidePyramid:mg,LucideQrCode:gg,LucideQuote:vg,LucideRabbit:xg,LucideRadar:_g,LucideRadiation:Mg,LucideRadical:Lg,LucideRadio:wg,LucideRadioReceiver:bg,LucideRadioTower:Ig,LucideRadius:Cg,LucideRailSymbol:jg,LucideRainbow:Ng,LucideRat:Sg,LucideRatio:$g,LucideReceipt:Rg,LucideReceiptCent:qg,LucideReceiptEuro:zg,LucideReceiptIndianRupee:Ag,LucideReceiptJapaneseYen:Pg,LucideReceiptPoundSterling:Vg,LucideReceiptRussianRuble:Tg,LucideReceiptSwissFranc:Dg,LucideReceiptText:Hg,LucideReceiptTurkishLira:Bg,LucideRectangleCircle:Fg,LucideRectangleEllipsis:xo,LucideRectangleGoggles:Eg,LucideRectangleHorizontal:Og,LucideRectangleVertical:Ug,LucideRecycle:Wg,LucideRedo:Zg,LucideRedo2:Gg,LucideRedoDot:Kg,LucideRefreshCcw:Yg,LucideRefreshCcwDot:Xg,LucideRefreshCw:Qg,LucideRefreshCwOff:Jg,LucideRefrigerator:e7,LucideRegex:t7,LucideRemoveFormatting:a7,LucideRepeat:c7,LucideRepeat1:n7,LucideRepeat2:o7,LucideReplace:r7,LucideReplaceAll:i7,LucideReply:l7,LucideReplyAll:s7,LucideRewind:d7,LucideRibbon:h7,LucideRocket:u7,LucideRockingChair:k7,LucideRollerCoaster:p7,LucideRose:y7,LucideRotate3D:_o,LucideRotate3d:_o,LucideRotateCcw:g7,LucideRotateCcwKey:m7,LucideRotateCcwSquare:f7,LucideRotateCw:x7,LucideRotateCwSquare:v7,LucideRoute:M7,LucideRouteOff:_7,LucideRouter:L7,LucideRows:Mo,LucideRows2:Mo,LucideRows3:Lo,LucideRows4:b7,LucideRss:I7,LucideRuler:C7,LucideRulerDimensionLine:w7,LucideRussianRuble:j7,LucideSailboat:N7,LucideSalad:S7,LucideSandwich:$7,LucideSatellite:A7,LucideSatelliteDish:q7,LucideSaudiRiyal:z7,LucideSave:D7,LucideSaveAll:P7,LucideSaveOff:V7,LucideScale:T7,LucideScale3D:bo,LucideScale3d:bo,LucideScaling:H7,LucideScan:K7,LucideScanBarcode:B7,LucideScanEye:R7,LucideScanFace:F7,LucideScanHeart:E7,LucideScanLine:O7,LucideScanQrCode:U7,LucideScanSearch:W7,LucideScanText:G7,LucideScatterChart:Va,LucideSchool:Z7,LucideSchool2:Ac,LucideScissors:Y7,LucideScissorsLineDashed:X7,LucideScissorsSquare:gc,LucideScissorsSquareDashedBottom:Eo,LucideScreenShare:J7,LucideScreenShareOff:Q7,LucideScroll:tv,LucideScrollText:ev,LucideSearch:ni,LucideSearchCheck:av,LucideSearchCode:nv,LucideSearchSlash:ov,LucideSearchX:cv,LucideSection:iv,LucideSend:sv,LucideSendHorizonal:Io,LucideSendHorizontal:Io,LucideSendToBack:rv,LucideSeparatorHorizontal:dv,LucideSeparatorVertical:lv,LucideServer:yv,LucideServerCog:hv,LucideServerCrash:pv,LucideServerOff:uv,LucideSettings:mv,LucideSettings2:kv,LucideShapes:fv,LucideShare:vv,LucideShare2:gv,LucideSheet:xv,LucideShell:_v,LucideShield:$v,LucideShieldAlert:Mv,LucideShieldBan:Lv,LucideShieldCheck:bv,LucideShieldClose:Co,LucideShieldEllipsis:Iv,LucideShieldHalf:wv,LucideShieldMinus:jv,LucideShieldOff:Cv,LucideShieldPlus:Nv,LucideShieldQuestion:wo,LucideShieldQuestionMark:wo,LucideShieldUser:Sv,LucideShieldX:Co,LucideShip:Av,LucideShipWheel:qv,LucideShirt:zv,LucideShoppingBag:Pv,LucideShoppingBasket:Vv,LucideShoppingCart:Tv,LucideShovel:Dv,LucideShowerHead:Hv,LucideShredder:Bv,LucideShrimp:Rv,LucideShrink:Fv,LucideShrub:Ev,LucideShuffle:Uv,LucideSidebar:ko,LucideSidebarClose:uo,LucideSidebarOpen:yo,LucideSigma:Ov,LucideSigmaSquare:vc,LucideSignal:Xv,LucideSignalHigh:Wv,LucideSignalLow:Gv,LucideSignalMedium:Kv,LucideSignalZero:Zv,LucideSignature:Yv,LucideSignpost:Qv,LucideSignpostBig:Jv,LucideSiren:e9,LucideSkipBack:t9,LucideSkipForward:a9,LucideSkull:n9,LucideSlack:o9,LucideSlash:c9,LucideSlashSquare:xc,LucideSlice:i9,LucideSliders:jo,LucideSlidersHorizontal:r9,LucideSlidersVertical:jo,LucideSmartphone:l9,LucideSmartphoneCharging:s9,LucideSmartphoneNfc:d9,LucideSmile:u9,LucideSmilePlus:h9,LucideSnail:p9,LucideSnowflake:y9,LucideSoapDispenserDroplet:k9,LucideSofa:m9,LucideSortAsc:ya,LucideSortDesc:ha,LucideSoup:f9,LucideSpace:g9,LucideSpade:v9,LucideSparkle:x9,LucideSparkles:No,LucideSpeaker:_9,LucideSpeech:M9,LucideSpellCheck:b9,LucideSpellCheck2:L9,LucideSpline:w9,LucideSplinePointer:I9,LucideSplit:C9,LucideSplitSquareHorizontal:_c,LucideSplitSquareVertical:Mc,LucideSpool:j9,LucideSpotlight:N9,LucideSprayCan:S9,LucideSprout:$9,LucideSquare:F9,LucideSquareActivity:Kt,LucideSquareArrowDown:qo,LucideSquareArrowDownLeft:So,LucideSquareArrowDownRight:$o,LucideSquareArrowLeft:Ao,LucideSquareArrowOutDownLeft:zo,LucideSquareArrowOutDownRight:Po,LucideSquareArrowOutUpLeft:Vo,LucideSquareArrowOutUpRight:To,LucideSquareArrowRight:Do,LucideSquareArrowUp:Ro,LucideSquareArrowUpLeft:Ho,LucideSquareArrowUpRight:Bo,LucideSquareAsterisk:Fo,LucideSquareBottomDashedScissors:Eo,LucideSquareChartGantt:bt,LucideSquareCheck:Uo,LucideSquareCheckBig:Oo,LucideSquareChevronDown:Wo,LucideSquareChevronLeft:Go,LucideSquareChevronRight:Ko,LucideSquareChevronUp:Zo,LucideSquareCode:Xo,LucideSquareDashed:Qo,LucideSquareDashedBottom:A9,LucideSquareDashedBottomCode:q9,LucideSquareDashedKanban:Yo,LucideSquareDashedMousePointer:Jo,LucideSquareDashedTopSolid:z9,LucideSquareDivide:ec,LucideSquareDot:ac,LucideSquareEqual:tc,LucideSquareFunction:nc,LucideSquareGanttChart:bt,LucideSquareKanban:oc,LucideSquareLibrary:cc,LucideSquareM:ic,LucideSquareMenu:rc,LucideSquareMinus:sc,LucideSquareMousePointer:lc,LucideSquareParking:hc,LucideSquareParkingOff:dc,LucideSquarePause:P9,LucideSquarePen:at,LucideSquarePercent:uc,LucideSquarePi:pc,LucideSquarePilcrow:yc,LucideSquarePlay:kc,LucideSquarePlus:mc,LucideSquarePower:fc,LucideSquareRadical:V9,LucideSquareRoundCorner:T9,LucideSquareScissors:gc,LucideSquareSigma:vc,LucideSquareSlash:xc,LucideSquareSplitHorizontal:_c,LucideSquareSplitVertical:Mc,LucideSquareSquare:D9,LucideSquareStack:H9,LucideSquareStar:B9,LucideSquareStop:R9,LucideSquareTerminal:Lc,LucideSquareUser:Ic,LucideSquareUserRound:bc,LucideSquareX:wc,LucideSquaresExclude:E9,LucideSquaresIntersect:O9,LucideSquaresSubtract:U9,LucideSquaresUnite:W9,LucideSquircle:K9,LucideSquircleDashed:G9,LucideSquirrel:Z9,LucideStamp:X9,LucideStar:ex,LucideStarHalf:Y9,LucideStarOff:J9,LucideStars:No,LucideStepBack:Q9,LucideStepForward:tx,LucideStethoscope:ax,LucideSticker:nx,LucideStickyNote:ox,LucideStopCircle:ln,LucideStore:cx,LucideStretchHorizontal:ix,LucideStretchVertical:rx,LucideStrikethrough:sx,LucideSubscript:dx,LucideSubtitles:La,LucideSun:kx,LucideSunDim:lx,LucideSunMedium:hx,LucideSunMoon:ux,LucideSunSnow:px,LucideSunrise:yx,LucideSunset:mx,LucideSuperscript:fx,LucideSwatchBook:gx,LucideSwissFranc:vx,LucideSwitchCamera:xx,LucideSword:_x,LucideSwords:Lx,LucideSyringe:Mx,LucideTable:$x,LucideTable2:bx,LucideTableCellsMerge:Ix,LucideTableCellsSplit:wx,LucideTableColumnsSplit:Cx,LucideTableConfig:Mt,LucideTableOfContents:jx,LucideTableProperties:Nx,LucideTableRowsSplit:Sx,LucideTablet:Ax,LucideTabletSmartphone:qx,LucideTablets:zx,LucideTag:Px,LucideTags:Vx,LucideTally1:Tx,LucideTally2:Dx,LucideTally3:Hx,LucideTally4:Bx,LucideTally5:Rx,LucideTangent:Fx,LucideTarget:Ex,LucideTelescope:Ox,LucideTent:Wx,LucideTentTree:Ux,LucideTerminal:Gx,LucideTerminalSquare:Lc,LucideTestTube:Kx,LucideTestTube2:Cc,LucideTestTubeDiagonal:Cc,LucideTestTubes:Zx,LucideText:e_,LucideTextCursor:Yx,LucideTextCursorInput:Xx,LucideTextQuote:Jx,LucideTextSearch:Qx,LucideTextSelect:jc,LucideTextSelection:jc,LucideTheater:t_,LucideThermometer:c_,LucideThermometerSnowflake:a_,LucideThermometerSun:n_,LucideThumbsDown:o_,LucideThumbsUp:i_,LucideTicket:p_,LucideTicketCheck:r_,LucideTicketMinus:s_,LucideTicketPercent:d_,LucideTicketPlus:l_,LucideTicketSlash:h_,LucideTicketX:u_,LucideTickets:k_,LucideTicketsPlane:y_,LucideTimer:g_,LucideTimerOff:m_,LucideTimerReset:f_,LucideToggleLeft:v_,LucideToggleRight:x_,LucideToilet:__,LucideToolCase:M_,LucideTornado:b_,LucideTorus:L_,LucideTouchpad:w_,LucideTouchpadOff:I_,LucideTowerControl:j_,LucideToyBrick:C_,LucideTractor:N_,LucideTrafficCone:S_,LucideTrain:Nc,LucideTrainFront:q_,LucideTrainFrontTunnel:$_,LucideTrainTrack:A_,LucideTramFront:Nc,LucideTransgender:z_,LucideTrash:P_,LucideTrash2:It,LucideTreeDeciduous:V_,LucideTreePalm:Sc,LucideTreePine:T_,LucideTrees:D_,LucideTrello:H_,LucideTrendingDown:B_,LucideTrendingUp:R_,LucideTrendingUpDown:F_,LucideTriangle:O_,LucideTriangleAlert:$c,LucideTriangleDashed:E_,LucideTriangleRight:U_,LucideTrophy:W_,LucideTruck:K_,LucideTruckElectric:G_,LucideTurkishLira:Z_,LucideTurntable:X_,LucideTurtle:Y_,LucideTv:Q_,LucideTv2:qc,LucideTvMinimal:qc,LucideTvMinimalPlay:J_,LucideTwitch:eM,LucideTwitter:tM,LucideType:nM,LucideTypeOutline:aM,LucideUmbrella:cM,LucideUmbrellaOff:oM,LucideUnderline:iM,LucideUndo:dM,LucideUndo2:rM,LucideUndoDot:sM,LucideUnfoldHorizontal:lM,LucideUnfoldVertical:hM,LucideUngroup:uM,LucideUniversity:Ac,LucideUnlink:mM,LucideUnlink2:pM,LucideUnlock:eo,LucideUnlockKeyhole:Qn,LucideUnplug:yM,LucideUpload:kM,LucideUploadCloud:mn,LucideUsb:fM,LucideUser:jM,LucideUser2:Hc,LucideUserCheck:gM,LucideUserCheck2:zc,LucideUserCircle:un,LucideUserCircle2:hn,LucideUserCog:vM,LucideUserCog2:Pc,LucideUserLock:xM,LucideUserMinus:_M,LucideUserMinus2:Vc,LucideUserPen:MM,LucideUserPlus:oi,LucideUserPlus2:Tc,LucideUserRound:Hc,LucideUserRoundCheck:zc,LucideUserRoundCog:Pc,LucideUserRoundMinus:Vc,LucideUserRoundPen:LM,LucideUserRoundPlus:Tc,LucideUserRoundSearch:bM,LucideUserRoundX:Dc,LucideUserSearch:IM,LucideUserSquare:Ic,LucideUserSquare2:bc,LucideUserStar:wM,LucideUserX:CM,LucideUserX2:Dc,LucideUsers:NM,LucideUsers2:Bc,LucideUsersRound:Bc,LucideUtensils:Fc,LucideUtensilsCrossed:Rc,LucideUtilityPole:SM,LucideVariable:$M,LucideVault:qM,LucideVectorSquare:AM,LucideVegan:zM,LucideVenetianMask:PM,LucideVenus:HM,LucideVenusAndMars:VM,LucideVerified:fa,LucideVibrate:DM,LucideVibrateOff:TM,LucideVideo:RM,LucideVideoOff:BM,LucideVideotape:FM,LucideView:OM,LucideVoicemail:EM,LucideVolleyball:UM,LucideVolume:YM,LucideVolume1:WM,LucideVolume2:GM,LucideVolumeOff:KM,LucideVolumeX:ZM,LucideVote:XM,LucideWallet:QM,LucideWallet2:Ec,LucideWalletCards:JM,LucideWalletMinimal:Ec,LucideWallpaper:eL,LucideWand:tL,LucideWand2:Oc,LucideWandSparkles:Oc,LucideWarehouse:aL,LucideWashingMachine:nL,LucideWatch:oL,LucideWaves:iL,LucideWavesLadder:cL,LucideWaypoints:rL,LucideWebcam:sL,LucideWebhook:hL,LucideWebhookOff:dL,LucideWeight:lL,LucideWheat:pL,LucideWheatOff:uL,LucideWholeWord:yL,LucideWifi:ML,LucideWifiCog:kL,LucideWifiHigh:mL,LucideWifiLow:fL,LucideWifiOff:gL,LucideWifiPen:vL,LucideWifiSync:xL,LucideWifiZero:_L,LucideWind:bL,LucideWindArrowDown:LL,LucideWine:wL,LucideWineOff:IL,LucideWorkflow:CL,LucideWorm:jL,LucideWrapText:NL,LucideWrench:SL,LucideX:ht,LucideXCircle:Ut,LucideXOctagon:so,LucideXSquare:wc,LucideYoutube:qL,LucideZap:AL,LucideZapOff:$L,LucideZoomIn:zL,LucideZoomOut:PL,Luggage:h3,LuggageIcon:h3,MSquare:ic,MSquareIcon:ic,Magnet:u3,MagnetIcon:u3,Mail:v3,MailCheck:p3,MailCheckIcon:p3,MailIcon:v3,MailMinus:y3,MailMinusIcon:y3,MailOpen:k3,MailOpenIcon:k3,MailPlus:m3,MailPlusIcon:m3,MailQuestion:to,MailQuestionIcon:to,MailQuestionMark:to,MailQuestionMarkIcon:to,MailSearch:f3,MailSearchIcon:f3,MailWarning:g3,MailWarningIcon:g3,MailX:x3,MailXIcon:x3,Mailbox:_3,MailboxIcon:_3,Mails:M3,MailsIcon:M3,Map:T3,MapIcon:T3,MapMinus:L3,MapMinusIcon:L3,MapPin:z3,MapPinCheck:b3,MapPinCheckIcon:b3,MapPinCheckInside:I3,MapPinCheckInsideIcon:I3,MapPinHouse:w3,MapPinHouseIcon:w3,MapPinIcon:z3,MapPinMinus:j3,MapPinMinusIcon:j3,MapPinMinusInside:C3,MapPinMinusInsideIcon:C3,MapPinOff:N3,MapPinOffIcon:N3,MapPinPen:ao,MapPinPenIcon:ao,MapPinPlus:$3,MapPinPlusIcon:$3,MapPinPlusInside:S3,MapPinPlusInsideIcon:S3,MapPinX:A3,MapPinXIcon:A3,MapPinXInside:q3,MapPinXInsideIcon:q3,MapPinned:P3,MapPinnedIcon:P3,MapPlus:V3,MapPlusIcon:V3,Mars:H3,MarsIcon:H3,MarsStroke:D3,MarsStrokeIcon:D3,Martini:B3,MartiniIcon:B3,Maximize:E3,Maximize2:R3,Maximize2Icon:R3,MaximizeIcon:E3,Medal:F3,MedalIcon:F3,Megaphone:U3,MegaphoneIcon:U3,MegaphoneOff:O3,MegaphoneOffIcon:O3,Meh:W3,MehIcon:W3,MemoryStick:G3,MemoryStickIcon:G3,Menu:I1,MenuIcon:I1,MenuSquare:rc,MenuSquareIcon:rc,Merge:K3,MergeIcon:K3,MessageCircle:of,MessageCircleCode:Z3,MessageCircleCodeIcon:Z3,MessageCircleDashed:X3,MessageCircleDashedIcon:X3,MessageCircleHeart:Y3,MessageCircleHeartIcon:Y3,MessageCircleIcon:of,MessageCircleMore:J3,MessageCircleMoreIcon:J3,MessageCircleOff:Q3,MessageCircleOffIcon:Q3,MessageCirclePlus:ef,MessageCirclePlusIcon:ef,MessageCircleQuestion:no,MessageCircleQuestionIcon:no,MessageCircleQuestionMark:no,MessageCircleQuestionMarkIcon:no,MessageCircleReply:tf,MessageCircleReplyIcon:tf,MessageCircleWarning:af,MessageCircleWarningIcon:af,MessageCircleX:nf,MessageCircleXIcon:nf,MessageSquare:_f,MessageSquareCode:cf,MessageSquareCodeIcon:cf,MessageSquareDashed:rf,MessageSquareDashedIcon:rf,MessageSquareDiff:sf,MessageSquareDiffIcon:sf,MessageSquareDot:df,MessageSquareDotIcon:df,MessageSquareHeart:lf,MessageSquareHeartIcon:lf,MessageSquareIcon:_f,MessageSquareLock:hf,MessageSquareLockIcon:hf,MessageSquareMore:uf,MessageSquareMoreIcon:uf,MessageSquareOff:pf,MessageSquareOffIcon:pf,MessageSquarePlus:yf,MessageSquarePlusIcon:yf,MessageSquareQuote:kf,MessageSquareQuoteIcon:kf,MessageSquareReply:mf,MessageSquareReplyIcon:mf,MessageSquareShare:ff,MessageSquareShareIcon:ff,MessageSquareText:gf,MessageSquareTextIcon:gf,MessageSquareWarning:vf,MessageSquareWarningIcon:vf,MessageSquareX:xf,MessageSquareXIcon:xf,MessagesSquare:Mf,MessagesSquareIcon:Mf,Mic:bf,Mic2:oo,Mic2Icon:oo,MicIcon:bf,MicOff:Lf,MicOffIcon:Lf,MicVocal:oo,MicVocalIcon:oo,Microchip:If,MicrochipIcon:If,Microscope:wf,MicroscopeIcon:wf,Microwave:Cf,MicrowaveIcon:Cf,Milestone:jf,MilestoneIcon:jf,Milk:Sf,MilkIcon:Sf,MilkOff:Nf,MilkOffIcon:Nf,Minimize:qf,Minimize2:$f,Minimize2Icon:$f,MinimizeIcon:qf,Minus:Af,MinusCircle:en,MinusCircleIcon:en,MinusIcon:Af,MinusSquare:sc,MinusSquareIcon:sc,Monitor:Wf,MonitorCheck:zf,MonitorCheckIcon:zf,MonitorCog:Pf,MonitorCogIcon:Pf,MonitorDot:Vf,MonitorDotIcon:Vf,MonitorDown:Tf,MonitorDownIcon:Tf,MonitorIcon:Wf,MonitorOff:Df,MonitorOffIcon:Df,MonitorPause:Bf,MonitorPauseIcon:Bf,MonitorPlay:Hf,MonitorPlayIcon:Hf,MonitorSmartphone:Rf,MonitorSmartphoneIcon:Rf,MonitorSpeaker:Ff,MonitorSpeakerIcon:Ff,MonitorStop:Ef,MonitorStopIcon:Ef,MonitorUp:Of,MonitorUpIcon:Of,MonitorX:Uf,MonitorXIcon:Uf,Moon:Kf,MoonIcon:Kf,MoonStar:Gf,MoonStarIcon:Gf,MoreHorizontal:bn,MoreHorizontalIcon:bn,MoreVertical:Ln,MoreVerticalIcon:Ln,Mountain:Xf,MountainIcon:Xf,MountainSnow:Zf,MountainSnowIcon:Zf,Mouse:a6,MouseIcon:a6,MouseOff:Yf,MouseOffIcon:Yf,MousePointer:e6,MousePointer2:Jf,MousePointer2Icon:Jf,MousePointerBan:Qf,MousePointerBanIcon:Qf,MousePointerClick:t6,MousePointerClickIcon:t6,MousePointerIcon:e6,MousePointerSquareDashed:Jo,MousePointerSquareDashedIcon:Jo,Move:a.Move,Move3D:co,Move3DIcon:co,Move3d:co,Move3dIcon:co,MoveDiagonal:o6,MoveDiagonal2:n6,MoveDiagonal2Icon:n6,MoveDiagonalIcon:o6,MoveDown:s6,MoveDownIcon:s6,MoveDownLeft:c6,MoveDownLeftIcon:c6,MoveDownRight:i6,MoveDownRightIcon:i6,MoveHorizontal:r6,MoveHorizontalIcon:r6,MoveIcon:a.Move,MoveLeft:d6,MoveLeftIcon:d6,MoveRight:l6,MoveRightIcon:l6,MoveUp:p6,MoveUpIcon:p6,MoveUpLeft:h6,MoveUpLeftIcon:h6,MoveUpRight:u6,MoveUpRightIcon:u6,MoveVertical:y6,MoveVerticalIcon:y6,Music:g6,Music2:k6,Music2Icon:k6,Music3:m6,Music3Icon:m6,Music4:f6,Music4Icon:f6,MusicIcon:g6,Navigation:M6,Navigation2:x6,Navigation2Icon:x6,Navigation2Off:v6,Navigation2OffIcon:v6,NavigationIcon:M6,NavigationOff:_6,NavigationOffIcon:_6,Network:L6,NetworkIcon:L6,Newspaper:b6,NewspaperIcon:b6,Nfc:I6,NfcIcon:I6,NonBinary:w6,NonBinaryIcon:w6,Notebook:S6,NotebookIcon:S6,NotebookPen:C6,NotebookPenIcon:C6,NotebookTabs:j6,NotebookTabsIcon:j6,NotebookText:N6,NotebookTextIcon:N6,NotepadText:q6,NotepadTextDashed:$6,NotepadTextDashedIcon:$6,NotepadTextIcon:q6,Nut:z6,NutIcon:z6,NutOff:A6,NutOffIcon:A6,Octagon:V6,OctagonAlert:io,OctagonAlertIcon:io,OctagonIcon:V6,OctagonMinus:P6,OctagonMinusIcon:P6,OctagonPause:ro,OctagonPauseIcon:ro,OctagonX:so,OctagonXIcon:so,Omega:T6,OmegaIcon:T6,Option:D6,OptionIcon:D6,Orbit:H6,OrbitIcon:H6,Origami:B6,OrigamiIcon:B6,Outdent:Kn,OutdentIcon:Kn,Package:K6,Package2:R6,Package2Icon:R6,PackageCheck:F6,PackageCheckIcon:F6,PackageIcon:K6,PackageMinus:E6,PackageMinusIcon:E6,PackageOpen:O6,PackageOpenIcon:O6,PackagePlus:U6,PackagePlusIcon:U6,PackageSearch:W6,PackageSearchIcon:W6,PackageX:G6,PackageXIcon:G6,PaintBucket:Z6,PaintBucketIcon:Z6,PaintRoller:X6,PaintRollerIcon:X6,Paintbrush:Y6,Paintbrush2:lo,Paintbrush2Icon:lo,PaintbrushIcon:Y6,PaintbrushVertical:lo,PaintbrushVerticalIcon:lo,Palette:J6,PaletteIcon:J6,Palmtree:Sc,PalmtreeIcon:Sc,Panda:Q6,PandaIcon:Q6,PanelBottom:a8,PanelBottomClose:e8,PanelBottomCloseIcon:e8,PanelBottomDashed:ho,PanelBottomDashedIcon:ho,PanelBottomIcon:a8,PanelBottomInactive:ho,PanelBottomInactiveIcon:ho,PanelBottomOpen:t8,PanelBottomOpenIcon:t8,PanelLeft:ko,PanelLeftClose:uo,PanelLeftCloseIcon:uo,PanelLeftDashed:po,PanelLeftDashedIcon:po,PanelLeftIcon:ko,PanelLeftInactive:po,PanelLeftInactiveIcon:po,PanelLeftOpen:yo,PanelLeftOpenIcon:yo,PanelRight:c8,PanelRightClose:n8,PanelRightCloseIcon:n8,PanelRightDashed:mo,PanelRightDashedIcon:mo,PanelRightIcon:c8,PanelRightInactive:mo,PanelRightInactiveIcon:mo,PanelRightOpen:o8,PanelRightOpenIcon:o8,PanelTop:s8,PanelTopClose:i8,PanelTopCloseIcon:i8,PanelTopDashed:fo,PanelTopDashedIcon:fo,PanelTopIcon:s8,PanelTopInactive:fo,PanelTopInactiveIcon:fo,PanelTopOpen:r8,PanelTopOpenIcon:r8,PanelsLeftBottom:d8,PanelsLeftBottomIcon:d8,PanelsLeftRight:vn,PanelsLeftRightIcon:vn,PanelsRightBottom:l8,PanelsRightBottomIcon:l8,PanelsTopBottom:Lo,PanelsTopBottomIcon:Lo,PanelsTopLeft:go,PanelsTopLeftIcon:go,Paperclip:h8,PaperclipIcon:h8,Parentheses:u8,ParenthesesIcon:u8,ParkingCircle:nn,ParkingCircleIcon:nn,ParkingCircleOff:tn,ParkingCircleOffIcon:tn,ParkingMeter:p8,ParkingMeterIcon:p8,ParkingSquare:hc,ParkingSquareIcon:hc,ParkingSquareOff:dc,ParkingSquareOffIcon:dc,PartyPopper:y8,PartyPopperIcon:y8,Pause:k8,PauseCircle:an,PauseCircleIcon:an,PauseIcon:k8,PauseOctagon:ro,PauseOctagonIcon:ro,PawPrint:m8,PawPrintIcon:m8,PcCase:f8,PcCaseIcon:f8,Pen:$t,PenBox:at,PenBoxIcon:at,PenIcon:$t,PenLine:St,PenLineIcon:St,PenOff:v8,PenOffIcon:v8,PenSquare:at,PenSquareIcon:at,PenTool:g8,PenToolIcon:g8,Pencil:w1,PencilIcon:w1,PencilLine:x8,PencilLineIcon:x8,PencilOff:_8,PencilOffIcon:_8,PencilRuler:M8,PencilRulerIcon:M8,Pentagon:L8,PentagonIcon:L8,Percent:b8,PercentCircle:on,PercentCircleIcon:on,PercentDiamond:_n,PercentDiamondIcon:_n,PercentIcon:b8,PercentSquare:uc,PercentSquareIcon:uc,PersonStanding:w8,PersonStandingIcon:w8,PhilippinePeso:I8,PhilippinePesoIcon:I8,Phone:q8,PhoneCall:C8,PhoneCallIcon:C8,PhoneForwarded:j8,PhoneForwardedIcon:j8,PhoneIcon:q8,PhoneIncoming:N8,PhoneIncomingIcon:N8,PhoneMissed:S8,PhoneMissedIcon:S8,PhoneOff:$8,PhoneOffIcon:$8,PhoneOutgoing:A8,PhoneOutgoingIcon:A8,Pi:z8,PiIcon:z8,PiSquare:pc,PiSquareIcon:pc,Piano:P8,PianoIcon:P8,Pickaxe:V8,PickaxeIcon:V8,PictureInPicture:D8,PictureInPicture2:T8,PictureInPicture2Icon:T8,PictureInPictureIcon:D8,PieChart:Pa,PieChartIcon:Pa,PiggyBank:H8,PiggyBankIcon:H8,Pilcrow:R8,PilcrowIcon:R8,PilcrowLeft:B8,PilcrowLeftIcon:B8,PilcrowRight:F8,PilcrowRightIcon:F8,PilcrowSquare:yc,PilcrowSquareIcon:yc,Pill:O8,PillBottle:E8,PillBottleIcon:E8,PillIcon:O8,Pin:W8,PinIcon:W8,PinOff:U8,PinOffIcon:U8,Pipette:G8,PipetteIcon:G8,Pizza:K8,PizzaIcon:K8,Plane:Y8,PlaneIcon:Y8,PlaneLanding:Z8,PlaneLandingIcon:Z8,PlaneTakeoff:X8,PlaneTakeoffIcon:X8,Play:J8,PlayCircle:cn,PlayCircleIcon:cn,PlayIcon:J8,PlaySquare:kc,PlaySquareIcon:kc,Plug:eg,Plug2:Q8,Plug2Icon:Q8,PlugIcon:eg,PlugZap:vo,PlugZap2:vo,PlugZap2Icon:vo,PlugZapIcon:vo,Plus:Jc,PlusCircle:rn,PlusCircleIcon:rn,PlusIcon:Jc,PlusSquare:mc,PlusSquareIcon:mc,Pocket:ag,PocketIcon:ag,PocketKnife:tg,PocketKnifeIcon:tg,Podcast:ng,PodcastIcon:ng,Pointer:cg,PointerIcon:cg,PointerOff:og,PointerOffIcon:og,Popcorn:rg,PopcornIcon:rg,Popsicle:ig,PopsicleIcon:ig,PoundSterling:sg,PoundSterlingIcon:sg,Power:lg,PowerCircle:sn,PowerCircleIcon:sn,PowerIcon:lg,PowerOff:dg,PowerOffIcon:dg,PowerSquare:fc,PowerSquareIcon:fc,Presentation:hg,PresentationIcon:hg,Printer:pg,PrinterCheck:ug,PrinterCheckIcon:ug,PrinterIcon:pg,Projector:yg,ProjectorIcon:yg,Proportions:kg,ProportionsIcon:kg,Puzzle:fg,PuzzleIcon:fg,Pyramid:mg,PyramidIcon:mg,QrCode:gg,QrCodeIcon:gg,Quote:vg,QuoteIcon:vg,Rabbit:xg,RabbitIcon:xg,Radar:_g,RadarIcon:_g,Radiation:Mg,RadiationIcon:Mg,Radical:Lg,RadicalIcon:Lg,Radio:wg,RadioIcon:wg,RadioReceiver:bg,RadioReceiverIcon:bg,RadioTower:Ig,RadioTowerIcon:Ig,Radius:Cg,RadiusIcon:Cg,RailSymbol:jg,RailSymbolIcon:jg,Rainbow:Ng,RainbowIcon:Ng,Rat:Sg,RatIcon:Sg,Ratio:$g,RatioIcon:$g,Receipt:Rg,ReceiptCent:qg,ReceiptCentIcon:qg,ReceiptEuro:zg,ReceiptEuroIcon:zg,ReceiptIcon:Rg,ReceiptIndianRupee:Ag,ReceiptIndianRupeeIcon:Ag,ReceiptJapaneseYen:Pg,ReceiptJapaneseYenIcon:Pg,ReceiptPoundSterling:Vg,ReceiptPoundSterlingIcon:Vg,ReceiptRussianRuble:Tg,ReceiptRussianRubleIcon:Tg,ReceiptSwissFranc:Dg,ReceiptSwissFrancIcon:Dg,ReceiptText:Hg,ReceiptTextIcon:Hg,ReceiptTurkishLira:Bg,ReceiptTurkishLiraIcon:Bg,RectangleCircle:Fg,RectangleCircleIcon:Fg,RectangleEllipsis:xo,RectangleEllipsisIcon:xo,RectangleGoggles:Eg,RectangleGogglesIcon:Eg,RectangleHorizontal:Og,RectangleHorizontalIcon:Og,RectangleVertical:Ug,RectangleVerticalIcon:Ug,Recycle:Wg,RecycleIcon:Wg,Redo:Zg,Redo2:Gg,Redo2Icon:Gg,RedoDot:Kg,RedoDotIcon:Kg,RedoIcon:Zg,RefreshCcw:Yg,RefreshCcwDot:Xg,RefreshCcwDotIcon:Xg,RefreshCcwIcon:Yg,RefreshCw:Qg,RefreshCwIcon:Qg,RefreshCwOff:Jg,RefreshCwOffIcon:Jg,Refrigerator:e7,RefrigeratorIcon:e7,Regex:t7,RegexIcon:t7,RemoveFormatting:a7,RemoveFormattingIcon:a7,Repeat:c7,Repeat1:n7,Repeat1Icon:n7,Repeat2:o7,Repeat2Icon:o7,RepeatIcon:c7,Replace:r7,ReplaceAll:i7,ReplaceAllIcon:i7,ReplaceIcon:r7,Reply:l7,ReplyAll:s7,ReplyAllIcon:s7,ReplyIcon:l7,Rewind:d7,RewindIcon:d7,Ribbon:h7,RibbonIcon:h7,Rocket:u7,RocketIcon:u7,RockingChair:k7,RockingChairIcon:k7,RollerCoaster:p7,RollerCoasterIcon:p7,Rose:y7,RoseIcon:y7,Rotate3D:_o,Rotate3DIcon:_o,Rotate3d:_o,Rotate3dIcon:_o,RotateCcw:g7,RotateCcwIcon:g7,RotateCcwKey:m7,RotateCcwKeyIcon:m7,RotateCcwSquare:f7,RotateCcwSquareIcon:f7,RotateCw:x7,RotateCwIcon:x7,RotateCwSquare:v7,RotateCwSquareIcon:v7,Route:M7,RouteIcon:M7,RouteOff:_7,RouteOffIcon:_7,Router:L7,RouterIcon:L7,Rows:Mo,Rows2:Mo,Rows2Icon:Mo,Rows3:Lo,Rows3Icon:Lo,Rows4:b7,Rows4Icon:b7,RowsIcon:Mo,Rss:I7,RssIcon:I7,Ruler:C7,RulerDimensionLine:w7,RulerDimensionLineIcon:w7,RulerIcon:C7,RussianRuble:j7,RussianRubleIcon:j7,Sailboat:N7,SailboatIcon:N7,Salad:S7,SaladIcon:S7,Sandwich:$7,SandwichIcon:$7,Satellite:A7,SatelliteDish:q7,SatelliteDishIcon:q7,SatelliteIcon:A7,SaudiRiyal:z7,SaudiRiyalIcon:z7,Save:D7,SaveAll:P7,SaveAllIcon:P7,SaveIcon:D7,SaveOff:V7,SaveOffIcon:V7,Scale:T7,Scale3D:bo,Scale3DIcon:bo,Scale3d:bo,Scale3dIcon:bo,ScaleIcon:T7,Scaling:H7,ScalingIcon:H7,Scan:K7,ScanBarcode:B7,ScanBarcodeIcon:B7,ScanEye:R7,ScanEyeIcon:R7,ScanFace:F7,ScanFaceIcon:F7,ScanHeart:E7,ScanHeartIcon:E7,ScanIcon:K7,ScanLine:O7,ScanLineIcon:O7,ScanQrCode:U7,ScanQrCodeIcon:U7,ScanSearch:W7,ScanSearchIcon:W7,ScanText:G7,ScanTextIcon:G7,ScatterChart:Va,ScatterChartIcon:Va,School:Z7,School2:Ac,School2Icon:Ac,SchoolIcon:Z7,Scissors:Y7,ScissorsIcon:Y7,ScissorsLineDashed:X7,ScissorsLineDashedIcon:X7,ScissorsSquare:gc,ScissorsSquareDashedBottom:Eo,ScissorsSquareDashedBottomIcon:Eo,ScissorsSquareIcon:gc,ScreenShare:J7,ScreenShareIcon:J7,ScreenShareOff:Q7,ScreenShareOffIcon:Q7,Scroll:tv,ScrollIcon:tv,ScrollText:ev,ScrollTextIcon:ev,Search:ni,SearchCheck:av,SearchCheckIcon:av,SearchCode:nv,SearchCodeIcon:nv,SearchIcon:ni,SearchSlash:ov,SearchSlashIcon:ov,SearchX:cv,SearchXIcon:cv,Section:iv,SectionIcon:iv,Send:sv,SendHorizonal:Io,SendHorizonalIcon:Io,SendHorizontal:Io,SendHorizontalIcon:Io,SendIcon:sv,SendToBack:rv,SendToBackIcon:rv,SeparatorHorizontal:dv,SeparatorHorizontalIcon:dv,SeparatorVertical:lv,SeparatorVerticalIcon:lv,Server:yv,ServerCog:hv,ServerCogIcon:hv,ServerCrash:pv,ServerCrashIcon:pv,ServerIcon:yv,ServerOff:uv,ServerOffIcon:uv,Settings:mv,Settings2:kv,Settings2Icon:kv,SettingsIcon:mv,Shapes:fv,ShapesIcon:fv,Share:vv,Share2:gv,Share2Icon:gv,ShareIcon:vv,Sheet:xv,SheetIcon:xv,Shell:_v,ShellIcon:_v,Shield:$v,ShieldAlert:Mv,ShieldAlertIcon:Mv,ShieldBan:Lv,ShieldBanIcon:Lv,ShieldCheck:bv,ShieldCheckIcon:bv,ShieldClose:Co,ShieldCloseIcon:Co,ShieldEllipsis:Iv,ShieldEllipsisIcon:Iv,ShieldHalf:wv,ShieldHalfIcon:wv,ShieldIcon:$v,ShieldMinus:jv,ShieldMinusIcon:jv,ShieldOff:Cv,ShieldOffIcon:Cv,ShieldPlus:Nv,ShieldPlusIcon:Nv,ShieldQuestion:wo,ShieldQuestionIcon:wo,ShieldQuestionMark:wo,ShieldQuestionMarkIcon:wo,ShieldUser:Sv,ShieldUserIcon:Sv,ShieldX:Co,ShieldXIcon:Co,Ship:Av,ShipIcon:Av,ShipWheel:qv,ShipWheelIcon:qv,Shirt:zv,ShirtIcon:zv,ShoppingBag:Pv,ShoppingBagIcon:Pv,ShoppingBasket:Vv,ShoppingBasketIcon:Vv,ShoppingCart:Tv,ShoppingCartIcon:Tv,Shovel:Dv,ShovelIcon:Dv,ShowerHead:Hv,ShowerHeadIcon:Hv,Shredder:Bv,ShredderIcon:Bv,Shrimp:Rv,ShrimpIcon:Rv,Shrink:Fv,ShrinkIcon:Fv,Shrub:Ev,ShrubIcon:Ev,Shuffle:Uv,ShuffleIcon:Uv,Sidebar:ko,SidebarClose:uo,SidebarCloseIcon:uo,SidebarIcon:ko,SidebarOpen:yo,SidebarOpenIcon:yo,Sigma:Ov,SigmaIcon:Ov,SigmaSquare:vc,SigmaSquareIcon:vc,Signal:Xv,SignalHigh:Wv,SignalHighIcon:Wv,SignalIcon:Xv,SignalLow:Gv,SignalLowIcon:Gv,SignalMedium:Kv,SignalMediumIcon:Kv,SignalZero:Zv,SignalZeroIcon:Zv,Signature:Yv,SignatureIcon:Yv,Signpost:Qv,SignpostBig:Jv,SignpostBigIcon:Jv,SignpostIcon:Qv,Siren:e9,SirenIcon:e9,SkipBack:t9,SkipBackIcon:t9,SkipForward:a9,SkipForwardIcon:a9,Skull:n9,SkullIcon:n9,Slack:o9,SlackIcon:o9,Slash:c9,SlashIcon:c9,SlashSquare:xc,SlashSquareIcon:xc,Slice:i9,SliceIcon:i9,Sliders:jo,SlidersHorizontal:r9,SlidersHorizontalIcon:r9,SlidersIcon:jo,SlidersVertical:jo,SlidersVerticalIcon:jo,Smartphone:l9,SmartphoneCharging:s9,SmartphoneChargingIcon:s9,SmartphoneIcon:l9,SmartphoneNfc:d9,SmartphoneNfcIcon:d9,Smile:u9,SmileIcon:u9,SmilePlus:h9,SmilePlusIcon:h9,Snail:p9,SnailIcon:p9,Snowflake:y9,SnowflakeIcon:y9,SoapDispenserDroplet:k9,SoapDispenserDropletIcon:k9,Sofa:m9,SofaIcon:m9,SortAsc:ya,SortAscIcon:ya,SortDesc:ha,SortDescIcon:ha,Soup:f9,SoupIcon:f9,Space:g9,SpaceIcon:g9,Spade:v9,SpadeIcon:v9,Sparkle:x9,SparkleIcon:x9,Sparkles:No,SparklesIcon:No,Speaker:_9,SpeakerIcon:_9,Speech:M9,SpeechIcon:M9,SpellCheck:b9,SpellCheck2:L9,SpellCheck2Icon:L9,SpellCheckIcon:b9,Spline:w9,SplineIcon:w9,SplinePointer:I9,SplinePointerIcon:I9,Split:C9,SplitIcon:C9,SplitSquareHorizontal:_c,SplitSquareHorizontalIcon:_c,SplitSquareVertical:Mc,SplitSquareVerticalIcon:Mc,Spool:j9,SpoolIcon:j9,Spotlight:N9,SpotlightIcon:N9,SprayCan:S9,SprayCanIcon:S9,Sprout:$9,SproutIcon:$9,Square:F9,SquareActivity:Kt,SquareActivityIcon:Kt,SquareArrowDown:qo,SquareArrowDownIcon:qo,SquareArrowDownLeft:So,SquareArrowDownLeftIcon:So,SquareArrowDownRight:$o,SquareArrowDownRightIcon:$o,SquareArrowLeft:Ao,SquareArrowLeftIcon:Ao,SquareArrowOutDownLeft:zo,SquareArrowOutDownLeftIcon:zo,SquareArrowOutDownRight:Po,SquareArrowOutDownRightIcon:Po,SquareArrowOutUpLeft:Vo,SquareArrowOutUpLeftIcon:Vo,SquareArrowOutUpRight:To,SquareArrowOutUpRightIcon:To,SquareArrowRight:Do,SquareArrowRightIcon:Do,SquareArrowUp:Ro,SquareArrowUpIcon:Ro,SquareArrowUpLeft:Ho,SquareArrowUpLeftIcon:Ho,SquareArrowUpRight:Bo,SquareArrowUpRightIcon:Bo,SquareAsterisk:Fo,SquareAsteriskIcon:Fo,SquareBottomDashedScissors:Eo,SquareBottomDashedScissorsIcon:Eo,SquareChartGantt:bt,SquareChartGanttIcon:bt,SquareCheck:Uo,SquareCheckBig:Oo,SquareCheckBigIcon:Oo,SquareCheckIcon:Uo,SquareChevronDown:Wo,SquareChevronDownIcon:Wo,SquareChevronLeft:Go,SquareChevronLeftIcon:Go,SquareChevronRight:Ko,SquareChevronRightIcon:Ko,SquareChevronUp:Zo,SquareChevronUpIcon:Zo,SquareCode:Xo,SquareCodeIcon:Xo,SquareDashed:Qo,SquareDashedBottom:A9,SquareDashedBottomCode:q9,SquareDashedBottomCodeIcon:q9,SquareDashedBottomIcon:A9,SquareDashedIcon:Qo,SquareDashedKanban:Yo,SquareDashedKanbanIcon:Yo,SquareDashedMousePointer:Jo,SquareDashedMousePointerIcon:Jo,SquareDashedTopSolid:z9,SquareDashedTopSolidIcon:z9,SquareDivide:ec,SquareDivideIcon:ec,SquareDot:ac,SquareDotIcon:ac,SquareEqual:tc,SquareEqualIcon:tc,SquareFunction:nc,SquareFunctionIcon:nc,SquareGanttChart:bt,SquareGanttChartIcon:bt,SquareIcon:F9,SquareKanban:oc,SquareKanbanIcon:oc,SquareLibrary:cc,SquareLibraryIcon:cc,SquareM:ic,SquareMIcon:ic,SquareMenu:rc,SquareMenuIcon:rc,SquareMinus:sc,SquareMinusIcon:sc,SquareMousePointer:lc,SquareMousePointerIcon:lc,SquareParking:hc,SquareParkingIcon:hc,SquareParkingOff:dc,SquareParkingOffIcon:dc,SquarePause:P9,SquarePauseIcon:P9,SquarePen:at,SquarePenIcon:at,SquarePercent:uc,SquarePercentIcon:uc,SquarePi:pc,SquarePiIcon:pc,SquarePilcrow:yc,SquarePilcrowIcon:yc,SquarePlay:kc,SquarePlayIcon:kc,SquarePlus:mc,SquarePlusIcon:mc,SquarePower:fc,SquarePowerIcon:fc,SquareRadical:V9,SquareRadicalIcon:V9,SquareRoundCorner:T9,SquareRoundCornerIcon:T9,SquareScissors:gc,SquareScissorsIcon:gc,SquareSigma:vc,SquareSigmaIcon:vc,SquareSlash:xc,SquareSlashIcon:xc,SquareSplitHorizontal:_c,SquareSplitHorizontalIcon:_c,SquareSplitVertical:Mc,SquareSplitVerticalIcon:Mc,SquareSquare:D9,SquareSquareIcon:D9,SquareStack:H9,SquareStackIcon:H9,SquareStar:B9,SquareStarIcon:B9,SquareStop:R9,SquareStopIcon:R9,SquareTerminal:Lc,SquareTerminalIcon:Lc,SquareUser:Ic,SquareUserIcon:Ic,SquareUserRound:bc,SquareUserRoundIcon:bc,SquareX:wc,SquareXIcon:wc,SquaresExclude:E9,SquaresExcludeIcon:E9,SquaresIntersect:O9,SquaresIntersectIcon:O9,SquaresSubtract:U9,SquaresSubtractIcon:U9,SquaresUnite:W9,SquaresUniteIcon:W9,Squircle:K9,SquircleDashed:G9,SquircleDashedIcon:G9,SquircleIcon:K9,Squirrel:Z9,SquirrelIcon:Z9,Stamp:X9,StampIcon:X9,Star:ex,StarHalf:Y9,StarHalfIcon:Y9,StarIcon:ex,StarOff:J9,StarOffIcon:J9,Stars:No,StarsIcon:No,StepBack:Q9,StepBackIcon:Q9,StepForward:tx,StepForwardIcon:tx,Stethoscope:ax,StethoscopeIcon:ax,Sticker:nx,StickerIcon:nx,StickyNote:ox,StickyNoteIcon:ox,StopCircle:ln,StopCircleIcon:ln,Store:cx,StoreIcon:cx,StretchHorizontal:ix,StretchHorizontalIcon:ix,StretchVertical:rx,StretchVerticalIcon:rx,Strikethrough:sx,StrikethroughIcon:sx,Subscript:dx,SubscriptIcon:dx,Subtitles:La,SubtitlesIcon:La,Sun:kx,SunDim:lx,SunDimIcon:lx,SunIcon:kx,SunMedium:hx,SunMediumIcon:hx,SunMoon:ux,SunMoonIcon:ux,SunSnow:px,SunSnowIcon:px,Sunrise:yx,SunriseIcon:yx,Sunset:mx,SunsetIcon:mx,Superscript:fx,SuperscriptIcon:fx,SwatchBook:gx,SwatchBookIcon:gx,SwissFranc:vx,SwissFrancIcon:vx,SwitchCamera:xx,SwitchCameraIcon:xx,Sword:_x,SwordIcon:_x,Swords:Lx,SwordsIcon:Lx,Syringe:Mx,SyringeIcon:Mx,Table:$x,Table2:bx,Table2Icon:bx,TableCellsMerge:Ix,TableCellsMergeIcon:Ix,TableCellsSplit:wx,TableCellsSplitIcon:wx,TableColumnsSplit:Cx,TableColumnsSplitIcon:Cx,TableConfig:Mt,TableConfigIcon:Mt,TableIcon:$x,TableOfContents:jx,TableOfContentsIcon:jx,TableProperties:Nx,TablePropertiesIcon:Nx,TableRowsSplit:Sx,TableRowsSplitIcon:Sx,Tablet:Ax,TabletIcon:Ax,TabletSmartphone:qx,TabletSmartphoneIcon:qx,Tablets:zx,TabletsIcon:zx,Tag:Px,TagIcon:Px,Tags:Vx,TagsIcon:Vx,Tally1:Tx,Tally1Icon:Tx,Tally2:Dx,Tally2Icon:Dx,Tally3:Hx,Tally3Icon:Hx,Tally4:Bx,Tally4Icon:Bx,Tally5:Rx,Tally5Icon:Rx,Tangent:Fx,TangentIcon:Fx,Target:Ex,TargetIcon:Ex,Telescope:Ox,TelescopeIcon:Ox,Tent:Wx,TentIcon:Wx,TentTree:Ux,TentTreeIcon:Ux,Terminal:Gx,TerminalIcon:Gx,TerminalSquare:Lc,TerminalSquareIcon:Lc,TestTube:Kx,TestTube2:Cc,TestTube2Icon:Cc,TestTubeDiagonal:Cc,TestTubeDiagonalIcon:Cc,TestTubeIcon:Kx,TestTubes:Zx,TestTubesIcon:Zx,Text:e_,TextCursor:Yx,TextCursorIcon:Yx,TextCursorInput:Xx,TextCursorInputIcon:Xx,TextIcon:e_,TextQuote:Jx,TextQuoteIcon:Jx,TextSearch:Qx,TextSearchIcon:Qx,TextSelect:jc,TextSelectIcon:jc,TextSelection:jc,TextSelectionIcon:jc,Theater:t_,TheaterIcon:t_,Thermometer:c_,ThermometerIcon:c_,ThermometerSnowflake:a_,ThermometerSnowflakeIcon:a_,ThermometerSun:n_,ThermometerSunIcon:n_,ThumbsDown:o_,ThumbsDownIcon:o_,ThumbsUp:i_,ThumbsUpIcon:i_,Ticket:p_,TicketCheck:r_,TicketCheckIcon:r_,TicketIcon:p_,TicketMinus:s_,TicketMinusIcon:s_,TicketPercent:d_,TicketPercentIcon:d_,TicketPlus:l_,TicketPlusIcon:l_,TicketSlash:h_,TicketSlashIcon:h_,TicketX:u_,TicketXIcon:u_,Tickets:k_,TicketsIcon:k_,TicketsPlane:y_,TicketsPlaneIcon:y_,Timer:g_,TimerIcon:g_,TimerOff:m_,TimerOffIcon:m_,TimerReset:f_,TimerResetIcon:f_,ToggleLeft:v_,ToggleLeftIcon:v_,ToggleRight:x_,ToggleRightIcon:x_,Toilet:__,ToiletIcon:__,ToolCase:M_,ToolCaseIcon:M_,Tornado:b_,TornadoIcon:b_,Torus:L_,TorusIcon:L_,Touchpad:w_,TouchpadIcon:w_,TouchpadOff:I_,TouchpadOffIcon:I_,TowerControl:j_,TowerControlIcon:j_,ToyBrick:C_,ToyBrickIcon:C_,Tractor:N_,TractorIcon:N_,TrafficCone:S_,TrafficConeIcon:S_,Train:Nc,TrainFront:q_,TrainFrontIcon:q_,TrainFrontTunnel:$_,TrainFrontTunnelIcon:$_,TrainIcon:Nc,TrainTrack:A_,TrainTrackIcon:A_,TramFront:Nc,TramFrontIcon:Nc,Transgender:z_,TransgenderIcon:z_,Trash:P_,Trash2:It,Trash2Icon:It,TrashIcon:P_,TreeDeciduous:V_,TreeDeciduousIcon:V_,TreePalm:Sc,TreePalmIcon:Sc,TreePine:T_,TreePineIcon:T_,Trees:D_,TreesIcon:D_,Trello:H_,TrelloIcon:H_,TrendingDown:B_,TrendingDownIcon:B_,TrendingUp:R_,TrendingUpDown:F_,TrendingUpDownIcon:F_,TrendingUpIcon:R_,Triangle:O_,TriangleAlert:$c,TriangleAlertIcon:$c,TriangleDashed:E_,TriangleDashedIcon:E_,TriangleIcon:O_,TriangleRight:U_,TriangleRightIcon:U_,Trophy:W_,TrophyIcon:W_,Truck:K_,TruckElectric:G_,TruckElectricIcon:G_,TruckIcon:K_,TurkishLira:Z_,TurkishLiraIcon:Z_,Turntable:X_,TurntableIcon:X_,Turtle:Y_,TurtleIcon:Y_,Tv:Q_,Tv2:qc,Tv2Icon:qc,TvIcon:Q_,TvMinimal:qc,TvMinimalIcon:qc,TvMinimalPlay:J_,TvMinimalPlayIcon:J_,Twitch:eM,TwitchIcon:eM,Twitter:tM,TwitterIcon:tM,Type:nM,TypeIcon:nM,TypeOutline:aM,TypeOutlineIcon:aM,Umbrella:cM,UmbrellaIcon:cM,UmbrellaOff:oM,UmbrellaOffIcon:oM,Underline:iM,UnderlineIcon:iM,Undo:dM,Undo2:rM,Undo2Icon:rM,UndoDot:sM,UndoDotIcon:sM,UndoIcon:dM,UnfoldHorizontal:lM,UnfoldHorizontalIcon:lM,UnfoldVertical:hM,UnfoldVerticalIcon:hM,Ungroup:uM,UngroupIcon:uM,University:Ac,UniversityIcon:Ac,Unlink:mM,Unlink2:pM,Unlink2Icon:pM,UnlinkIcon:mM,Unlock:eo,UnlockIcon:eo,UnlockKeyhole:Qn,UnlockKeyholeIcon:Qn,Unplug:yM,UnplugIcon:yM,Upload:kM,UploadCloud:mn,UploadCloudIcon:mn,UploadIcon:kM,Usb:fM,UsbIcon:fM,User:jM,User2:Hc,User2Icon:Hc,UserCheck:gM,UserCheck2:zc,UserCheck2Icon:zc,UserCheckIcon:gM,UserCircle:un,UserCircle2:hn,UserCircle2Icon:hn,UserCircleIcon:un,UserCog:vM,UserCog2:Pc,UserCog2Icon:Pc,UserCogIcon:vM,UserIcon:jM,UserLock:xM,UserLockIcon:xM,UserMinus:_M,UserMinus2:Vc,UserMinus2Icon:Vc,UserMinusIcon:_M,UserPen:MM,UserPenIcon:MM,UserPlus:oi,UserPlus2:Tc,UserPlus2Icon:Tc,UserPlusIcon:oi,UserRound:Hc,UserRoundCheck:zc,UserRoundCheckIcon:zc,UserRoundCog:Pc,UserRoundCogIcon:Pc,UserRoundIcon:Hc,UserRoundMinus:Vc,UserRoundMinusIcon:Vc,UserRoundPen:LM,UserRoundPenIcon:LM,UserRoundPlus:Tc,UserRoundPlusIcon:Tc,UserRoundSearch:bM,UserRoundSearchIcon:bM,UserRoundX:Dc,UserRoundXIcon:Dc,UserSearch:IM,UserSearchIcon:IM,UserSquare:Ic,UserSquare2:bc,UserSquare2Icon:bc,UserSquareIcon:Ic,UserStar:wM,UserStarIcon:wM,UserX:CM,UserX2:Dc,UserX2Icon:Dc,UserXIcon:CM,Users:NM,Users2:Bc,Users2Icon:Bc,UsersIcon:NM,UsersRound:Bc,UsersRoundIcon:Bc,Utensils:Fc,UtensilsCrossed:Rc,UtensilsCrossedIcon:Rc,UtensilsIcon:Fc,UtilityPole:SM,UtilityPoleIcon:SM,Variable:$M,VariableIcon:$M,Vault:qM,VaultIcon:qM,VectorSquare:AM,VectorSquareIcon:AM,Vegan:zM,VeganIcon:zM,VenetianMask:PM,VenetianMaskIcon:PM,Venus:HM,VenusAndMars:VM,VenusAndMarsIcon:VM,VenusIcon:HM,Verified:fa,VerifiedIcon:fa,Vibrate:DM,VibrateIcon:DM,VibrateOff:TM,VibrateOffIcon:TM,Video:RM,VideoIcon:RM,VideoOff:BM,VideoOffIcon:BM,Videotape:FM,VideotapeIcon:FM,View:OM,ViewIcon:OM,Voicemail:EM,VoicemailIcon:EM,Volleyball:UM,VolleyballIcon:UM,Volume:YM,Volume1:WM,Volume1Icon:WM,Volume2:GM,Volume2Icon:GM,VolumeIcon:YM,VolumeOff:KM,VolumeOffIcon:KM,VolumeX:ZM,VolumeXIcon:ZM,Vote:XM,VoteIcon:XM,Wallet:QM,Wallet2:Ec,Wallet2Icon:Ec,WalletCards:JM,WalletCardsIcon:JM,WalletIcon:QM,WalletMinimal:Ec,WalletMinimalIcon:Ec,Wallpaper:eL,WallpaperIcon:eL,Wand:tL,Wand2:Oc,Wand2Icon:Oc,WandIcon:tL,WandSparkles:Oc,WandSparklesIcon:Oc,Warehouse:aL,WarehouseIcon:aL,WashingMachine:nL,WashingMachineIcon:nL,Watch:oL,WatchIcon:oL,Waves:iL,WavesIcon:iL,WavesLadder:cL,WavesLadderIcon:cL,Waypoints:rL,WaypointsIcon:rL,Webcam:sL,WebcamIcon:sL,Webhook:hL,WebhookIcon:hL,WebhookOff:dL,WebhookOffIcon:dL,Weight:lL,WeightIcon:lL,Wheat:pL,WheatIcon:pL,WheatOff:uL,WheatOffIcon:uL,WholeWord:yL,WholeWordIcon:yL,Wifi:ML,WifiCog:kL,WifiCogIcon:kL,WifiHigh:mL,WifiHighIcon:mL,WifiIcon:ML,WifiLow:fL,WifiLowIcon:fL,WifiOff:gL,WifiOffIcon:gL,WifiPen:vL,WifiPenIcon:vL,WifiSync:xL,WifiSyncIcon:xL,WifiZero:_L,WifiZeroIcon:_L,Wind:bL,WindArrowDown:LL,WindArrowDownIcon:LL,WindIcon:bL,Wine:wL,WineIcon:wL,WineOff:IL,WineOffIcon:IL,Workflow:CL,WorkflowIcon:CL,Worm:jL,WormIcon:jL,WrapText:NL,WrapTextIcon:NL,Wrench:SL,WrenchIcon:SL,X:ht,XCircle:Ut,XCircleIcon:Ut,XIcon:ht,XOctagon:so,XOctagonIcon:so,XSquare:wc,XSquareIcon:wc,Youtube:qL,YoutubeIcon:qL,Zap:AL,ZapIcon:AL,ZapOff:$L,ZapOffIcon:$L,ZoomIn:zL,ZoomInIcon:zL,ZoomOut:PL,ZoomOutIcon:PL,createLucideIcon:a.createLucideIcon,icons:Fde},Symbol.toStringTag,{value:"Module"})),Ede=({size:e=250,background:t="#fff",headerTop:n,headerBottom:c,headerTopStyle:i,headerBottomStyle:r,progress1:s,badgeList:d,progress3:l,style:h,className:u="",draggable:p=!1})=>{const k=e!==void 0?e:250,f=e?{size:e*.5,...s}:s,g=e?{size:e*.4,...l}:l,m={background:t,position:"relative",...h,...k&&{width:k}};return o.jsxs("div",{style:m,className:`stat-card ${u}`,children:[o.jsxs("div",{className:"stat-card-header",children:[o.jsx("div",{className:"stat-card-header-top",style:i,children:n}),c&&o.jsx("div",{className:"stat-card-header-bottom",style:r,children:c})]}),o.jsxs("div",{className:"stat-card-body",style:{opacity:p?0:1},children:[o.jsx("div",{className:"progress-row-single",children:o.jsx(bw,{...f})}),o.jsxs("div",{className:"progress-row-double",children:[o.jsx("div",{className:"progress-item",children:o.jsx(q$,{...d})}),o.jsx("div",{className:"progress-item",children:o.jsx(bw,{...g})})]})]}),p&&o.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:o.jsx(a.Move,{size:32,strokeWidth:1.5,style:{opacity:.8}})})]})},A$=y.createContext(void 0),Ct=()=>{const e=y.useContext(A$);if(!e)throw new Error("useNavigation must be used within a NavProvider");return e},Ode=({children:e,defaultActive:t=""})=>{const[n,c]=y.useState(t),[i,r]=y.useState(t),[s,d]=y.useState(void 0),[l,h]=y.useState(void 0),[u,p]=y.useState({}),k=(f,g)=>{p(m=>({...m,[f]:g}))};return o.jsx(A$.Provider,{value:{activeNav:n,setActiveNav:c,activeSubNav:i,setActiveSubNav:r,activeSwitchers:s,setActiveSwitchers:d,user:l,setUser:h,navCounts:u,setNavCount:k},children:e})},z$=({categories:e,logo:t="Menu",buttonContent:n,position:c="auto",closeOnClickOutside:i=!0,select:r,topContent:s})=>{const[d,l]=y.useState(!1),[h,u]=y.useState("right"),p=y.useRef(null),k=y.useRef(null),{activeNav:f,activeSubNav:g}=Ct();y.useEffect(()=>{if(!i)return;const _=x=>{p.current&&!p.current.contains(x.target)&&l(!1)};return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[i]),y.useEffect(()=>{if(d&&c==="auto"&&k.current){const _=k.current.getBoundingClientRect(),x=window.innerWidth/2;u(_.left<x?"left":"right")}},[d,c]);const m=t?At[t]:null,v=c==="auto"?h:c;return o.jsxs("div",{className:"dropdown",ref:p,children:[o.jsxs("button",{ref:k,type:"button",className:"dropdown-button",onClick:()=>l(_=>!_),"aria-expanded":d,"aria-haspopup":"true",children:[m&&o.jsx(m,{size:20}),n&&o.jsx("span",{className:"button-text",children:n})]}),d&&o.jsxs("div",{className:`dropdown-content ${v}`,children:[s&&o.jsx("div",{className:"dropdown-top-content",children:s}),e?.map((_,x)=>o.jsxs("div",{className:"dropdown-category",children:[_.title&&o.jsx("div",{className:"category-title",children:_.title}),o.jsx("div",{className:"category-items",children:_.items.map((b,I)=>{const w=b.id??b.label,j=f===w||g===w,L=b.select??r;if(b.id==="language"){if(!L||!Array.isArray(L.options)||!L.onChange)return o.jsx("div",{className:"dropdown-language"},I);const S=Array.isArray(L.options)?L.options:[],N=S.some(q=>q.code===L.value)?S:[{code:L.value??"",label:String(L.value??"")},...S];return o.jsx("div",{className:"dropdown-language",children:o.jsx("select",{name:L.name??"language",className:"language-select",value:L.value??"",onChange:q=>{const A=q.target.value;try{L.onChange(A)}catch(P){console.error("select onChange error",P)}},children:N.map(q=>o.jsx("option",{value:q.code,children:q.label},q.code))})},I)}const M={className:`dropdown-item ${j?"active":""}`,onClick:()=>{b.onClick?.(),l(!1)},role:b.type==="button"||!b.href?"button":void 0};return b.type==="button"||!b.href?o.jsx("button",{type:"button",...M,children:b.label},I):o.jsx("a",{...M,href:b.href,children:b.label},I)})})]},x))]})]})},P$=({children:e,container:t=!1,item:n=!1,parent:c=!1,xs:i,sm:r,md:s,lg:d,xl:l,spacing:h=0,className:u="",uniqueKey:p=0,style:k={},width:f,order:g,onSwap:m,draggable:v=!1,displayNone:_=!1})=>{const[x,b]=y.useState([]);y.useEffect(()=>{const M=q=>{const A=[];return y.Children.forEach(q,P=>{Array.isArray(P)?A.push(...M(P)):y.isValidElement(P)&&A.push(P)}),A},C=M(e).filter(q=>y.isValidElement(q)).map(q=>{let A="";const P=q.props;return A=[P.xs?`grid-xs-${P.xs}`:"",P.sm?`grid-sm-${P.sm}`:"",P.md?`grid-md-${P.md}`:"",P.lg?`grid-lg-${P.lg}`:"",P.xl?`grid-xl-${P.xl}`:"",P.className?P.className:""].join(" ").trim(),{node:q,classes:A}});let N=C;g&&g.length>0&&(N=C.map((q,A)=>({...q,node:C[g[A]]?.node??q.node}))),b(N)},[e]);const I=(M,S)=>{M.stopPropagation(),M.dataTransfer.setData("dragIndex",S.toString()),M.dataTransfer.setData("parentKey",p.toString())},w=M=>{M.preventDefault(),M.stopPropagation()},j=(M,S)=>{M.preventDefault();const C=Number(M.dataTransfer.getData("dragIndex")),N=Number(M.dataTransfer.getData("parentKey"));if(t&&N!==p)return;const q=[...x];let A=-1,P=-1;if(q.forEach((H,z)=>{if(y.isValidElement(H.node)){const $=H.node.props;$.uniqueKey===S&&(A=z),$.uniqueKey===C&&(P=z)}}),A===-1||P===-1)return;const T=q[P].node;q[P]={...q[P],node:q[A].node},q[A]={...q[A],node:T},b(q),typeof m=="function"&&m(P,A)},L=c?[i?`grid-xs-${i}`:"",r?`grid-sm-${r}`:"",s?`grid-md-${s}`:"",d?`grid-lg-${d}`:"",l?`grid-xl-${l}`:""].join(" "):"";return!c&&f?k={...k,width:`${f}px`}:!c&&!f&&(k={...k,width:"100%"}),k={...k,height:"100%"},t?o.jsx("div",{className:`${u} grid-container ${L}`,style:{"--gap-grid":`${h}rem`,...k},children:x.map(M=>M.node.type?.displayName==="Grid"?v&&M.node?.props?.draggable!==!1?o.jsx("div",{draggable:!0,onDragStart:S=>I(S,M.node?.props?.uniqueKey),onDragOver:S=>w(S),onDrop:S=>j(S,M.node?.props?.uniqueKey),className:`grid-item grid-item-grabbing ${M.classes} ${M.node?.props?.displayNone?"grid-display-none":""}`,children:M.node},M.node?.props?.uniqueKey):o.jsx("div",{className:`grid-item ${M.classes} ${M.node?.props?.displayNone?"grid-display-none":""}`,children:M.node},M.node?.props?.uniqueKey):M.node)}):n?o.jsx("div",{className:`${u} grid-item ${L} ${_?"grid-display-none":""}`,style:{gap:`${h}rem`,...k},children:e}):o.jsx(o.Fragment,{children:e})};P$.displayName="Grid";const QL=({imagePath:e,...t})=>{const[n,c]=y.useState(!1);return y.useEffect(()=>{c(!0)},[]),n?o.jsx("div",{className:`logo logo--${t.size}`,children:o.jsx("a",{href:"/",children:o.jsx("img",{src:e,alt:"Saniia Smart Bed Management",className:"logo-image"})})}):o.jsx("div",{className:"logo logo-placeholder"})},Iw=({id:e,label:t,isActive:n=!1,onClick:c,href:i,highlightColor:r="#008CBA",moduleKey:s="",a11yConfig:d,...l})=>{const{setActiveNav:h}=Ct(),u=()=>{h(e),c?.(e)};return i?o.jsx("a",{href:i,className:`nav-item ${n?"active":""}`,style:n?{backgroundColor:r,color:"#fff"}:{},onClick:u,title:oe(d,e),...l,children:t}):o.jsx("div",{className:`nav-item ${n?"active":""}`,style:n?{backgroundColor:r,color:"#fff"}:{},onClick:u,title:oe(d,e),role:c?"button":"presentation",tabIndex:c?0:-1,...l,children:t})},V$=({items:e,onNavClick:t,highlightColor:n="#008CBA",moduleConfig:c={},dropdownPosition:i="auto"})=>{const{activeNav:r}=Ct(),[s,d]=y.useState(!0),[l,h]=y.useState(!1),[u,p]=y.useState("left"),k=y.useRef(null),f=y.useRef(null),g=y.useRef(null);y.useEffect(()=>{const x=()=>{if(k.current&&k.current.parentElement){const b=k.current.parentNode?.parentElement?.offsetWidth||0;d(b*.8<k.current.offsetWidth||b<1100)}};return x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[]),y.useEffect(()=>{if(l&&i==="auto"&&f.current){const x=f.current.getBoundingClientRect(),b=window.innerWidth/2;p(x.left<b?"left":"right")}},[l,i]),y.useEffect(()=>{if(!l)return;const x=b=>{g.current&&!g.current.contains(b.target)&&f.current&&!f.current.contains(b.target)&&h(!1)};return document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)},[l]);const m=x=>{t?.(x),h(!1)},v=e.find(x=>x.id===r)||e[0],_=i==="auto"?u:i;return o.jsx("div",{ref:k,children:s?o.jsxs("div",{className:"navbar-mobile",children:[o.jsxs("button",{ref:f,className:"navbar-dropdown-toggle",onClick:()=>h(!l),style:{backgroundColor:n,color:"#fff"},"aria-expanded":l,"aria-haspopup":"true",children:[v.label,o.jsx("span",{className:`dropdown-arrow ${l?"open":""}`})]}),l&&o.jsx("div",{ref:g,className:`navbar-dropdown ${_}`,children:e.map(x=>o.jsx(Iw,{id:x.id,label:x.label,href:x.moduleKey&&c[x.moduleKey]?x.href:void 0,isActive:r===x.id&&x.moduleKey!==void 0&&c[x.moduleKey],onClick:m,highlightColor:n},x.id))})]}):o.jsx("nav",{className:"navbar",children:e.map(x=>o.jsx(Iw,{id:x.id,label:x.label,href:x.moduleKey&&c[x.moduleKey]?x.href:void 0,isActive:r===x.id&&x.moduleKey!==void 0&&c[x.moduleKey],onClick:m,highlightColor:n},x.id))})})},T$=y.createContext(void 0),Ude=({children:e,initialTheme:t})=>{const[n,c]=y.useState(()=>{if(typeof window<"u")try{return localStorage.getItem("app-theme")||t}catch(r){return console.error("Error reading theme from localStorage:",r),t}return t});y.useEffect(()=>{const r=document.documentElement;if(r.removeAttribute("data-theme"),n&&n!=="default"&&r.setAttribute("data-theme",n),typeof window<"u")try{localStorage.setItem("app-theme",n)}catch(s){console.error("Error saving theme to localStorage:",s)}},[n]);const i=y.useCallback(r=>{c(r)},[]);return o.jsx(T$.Provider,{value:{themeName:n,setTheme:i},children:e})},D$=()=>{const e=y.useContext(T$);if(!e)throw new Error("useThemeContext must be used within a ThemeProvider");return e},eb=()=>{const{themeName:e,setTheme:t}=D$(),n=y.useCallback(c=>{t(c)},[t]);return{currentTheme:e,switchTheme:n}},vi=({colors:e={},leftIcon:t,rightIcon:n,checked:c=!1,onToggle:i,size:r=24,className:s="",style:d,a11yConfig:l})=>{const h=()=>i?.(!c),u=p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),h())};return o.jsxs("div",{role:"switch","aria-checked":c,tabIndex:0,title:oe(l),className:`switcher ${c?"switcher-checked":""} ${s}`,style:{"--bg":e.bg||"#1f2937","--active-bg":e.activeBg||"#facc15","--border":e.border||"#fff","--circle":e.circle||"#fff","--icon":e.icon||"#fbbf24","--icon2":e.icon2||e.icon||"#fbbf24","--size":`${r}px`,...d},onClick:h,onKeyDown:u,children:[o.jsx("div",{className:"switcher-circle"}),o.jsxs("div",{className:"switcher-icons",children:[t&&o.jsx("div",{className:"switcher-icon-left",children:t}),n&&o.jsx("div",{className:"switcher-icon-right",children:n})]})]})},ww=({lightTheme:e="light",darkTheme:t="dark",leftIcon:n="Sun",rightIcon:c="Moon",colors:i={bg:"#e5e7eb",activeBg:"#3b82f6",border:"#ffffff",circle:"#ffffff",icon:"#3b82f6",icon2:"#ffffff"},size:r=24,a11yConfig:s})=>{const{currentTheme:d,switchTheme:l}=eb(),[h,u]=y.useState(!1);if(y.useEffect(()=>{u(!0)},[]),!h)return null;const p=d===t,k=f=>{l(f?t:e)};return o.jsx(vi,{leftIcon:n,rightIcon:c,checked:p,onToggle:k,colors:i,size:r,a11yConfig:s})},Wde=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"M480-80 317-243l44-44 89 89v-252H198l84 84-44 44L80-480l159-159 44 44-85 85h252v-252l-84 84-44-44 158-158 158 158-44 44-84-84v252h252l-84-84 44-44 158 158-158 158-44-44 84-84H510v252l89-89 44 44z"})),ej=y.memo(Wde),H$=y.createContext(void 0),Gde=({children:e})=>{const[t,n]=y.useState(!1);y.useEffect(()=>{const i=localStorage.getItem("isDraggable");i!==null&&n(i==="true")},[]),y.useEffect(()=>{localStorage.setItem("isDraggable",String(t))},[t]);const c=i=>{n(i)};return o.jsx(H$.Provider,{value:{isDraggable:t,switchDraggable:c},children:e})},B$=()=>{const e=y.useContext(H$);if(!e)throw new Error("useDraggableSwitcher must be used inside a DraggableProvider");return e},RL=({leftIcon:e,rightIcon:t,colors:n={bg:"var(--color-switcher-background)",activeBg:"var(--color-primary)",border:"transparent",circle:"#ffffff",icon:"#10b981",icon2:"#ffffff"},size:c=24,a11yConfig:i})=>{const{isDraggable:r,switchDraggable:s}=B$(),[d,l]=y.useState(!1);if(y.useEffect(()=>{l(!0)},[]),!d)return null;const h=u=>{s(u)};return o.jsx(vi,{leftIcon:e||o.jsx(ej,{width:c*.55,height:c*.55,fill:"currentColor"}),rightIcon:t||o.jsx(ej,{width:c*.55,height:c*.55,fill:"currentColor"}),checked:r,onToggle:h,colors:n,size:c,a11yConfig:i})},Kde=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"M400.06-300Q508-300 584.5-376.13 661-452.25 661-561q0-107.92-76.5-183.46T400.06-820t-183.5 75.54T141-561q0 108.75 75.56 184.87Q292.12-300 400.06-300M371-448v-267h60v267zm-145 0v-184h60v184zm290 0v-143h60v143zM838-80 605-314q-42 35-94.24 54.5Q458.51-240 400-240q-133 0-226-93.5T81-560.7q0-133.71 92.8-226.5Q266.59-880 400.3-880q133.7 0 227.2 93T721-561q0 58.51-19.5 110.76Q682-398 647-356l233 233z"})),tj=y.memo(Kde),aj="disableLegendFilter",R$=y.createContext(void 0),Zde=({children:e})=>{const[t,n]=y.useState(!1);y.useEffect(()=>{try{const i=localStorage.getItem(aj);i!==null&&n(i==="true")}catch{return}},[]);const c=i=>{n(i);try{localStorage.setItem(aj,String(i))}catch{return}};return o.jsx(R$.Provider,{value:{disableLegendFilter:t,switchDisableLegendFilter:c},children:e})},F$=()=>{const e=y.useContext(R$);if(!e)throw new Error("useLegendFilterSwitcher must be used inside a LegendFilterProvider");return e},FL=({leftIcon:e,rightIcon:t,colors:n={bg:"var(--color-switcher-background)",activeBg:"#ef4444",border:"#ffffff",circle:"#ffffff",icon:"#ef4444",icon2:"#ffffff"},size:c=24,a11yConfig:i})=>{const{disableLegendFilter:r,switchDisableLegendFilter:s}=F$(),[d,l]=y.useState(!1);if(y.useEffect(()=>{l(!0)},[]),!d)return null;const h=u=>{s(u)};return o.jsx(vi,{leftIcon:e||o.jsx(tj,{width:c*.55,height:c*.55,fill:"currentColor"}),rightIcon:t||o.jsx(tj,{width:c*.55,height:c*.55,fill:"currentColor"}),checked:r,onToggle:h,colors:n,size:c,a11yConfig:i})},E$=y.createContext(void 0),Xde=({children:e})=>{const[t,n]=y.useState(!1);y.useEffect(()=>{const i=localStorage.getItem("showData");i!==null&&n(i==="true")},[]),y.useEffect(()=>{localStorage.setItem("showData",String(t))},[t]);const c=i=>{n(i)};return o.jsx(E$.Provider,{value:{showData:t,switchShowData:c},children:e})},O$=()=>{const e=y.useContext(E$);if(!e)throw new Error("useShowDataSwitcher must be used inside a ShowDataProvider");return e},Yde=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"M600.5-379.5Q650-429 650-500t-49.5-120.5T480-670t-120.5 49.5T310-500t49.5 120.5T480-330t120.5-49.5m-200-41Q368-453 368-500t32.5-79.5T480-612t79.5 32.5T592-500t-32.5 79.5T480-388t-79.5-32.5M216-283Q98-366 40-500q58-134 176-217t264-83 264 83 176 217q-58 134-176 217t-264 83-264-83m486.5-42.5Q804-391 857-500q-53-109-154.5-174.5T480-740t-222.5 65.5T102-500q54 109 155.5 174.5T480-260t222.5-65.5"})),nj=y.memo(Yde),EL=({size:e=24,colors:t={bg:"var(--color-switcher-background)",activeBg:"#10b981",border:"#ffffff",circle:"#ffffff",icon:"#10b981",icon2:"#ffffff"},a11yConfig:n})=>{const{showData:c,switchShowData:i}=O$(),[r,s]=y.useState(!1);return y.useEffect(()=>{s(!0)},[]),r?o.jsx(vi,{checked:c,onToggle:d=>i(d),size:e,leftIcon:o.jsx(nj,{width:e*.55,height:e*.55,fill:"currentColor"}),rightIcon:o.jsx(nj,{width:e*.55,height:e*.55,fill:"currentColor"}),colors:t,a11yConfig:n}):null},Jde=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"M284-277h60v-205h-60zm332 0h60v-420h-60zm-166 0h60v-118h-60zm0-205h60v-60h-60zM180-120q-24 0-42-18t-18-42v-600q0-24 18-42t42-18h600q24 0 42 18t18 42v600q0 24-18 42t-42 18zm0-60h600v-600H180zm0-600v600z"})),U$=y.memo(Jde);function Cw({items:e,onSave:t,loading:n,disabled:c,saveLabel:i,savingLabel:r,buttonTitle:s}){const[d,l]=y.useState(!1),[h,u]=y.useState(e);y.useEffect(()=>{u(e)},[e]);const p=(f,g)=>{u(m=>m.map(v=>v.component_key===f&&g>3?{...v,visible:!v.visible}:v))},k=()=>{t(h),l(!1)};return o.jsxs("div",{style:{position:"relative",display:"inline-block"},children:[o.jsx("div",{onClick:()=>c||l(f=>!f),style:{cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:"var(--color-primary)"},title:s,children:o.jsx(U$,{fill:"currentColor"})}),d&&o.jsxs("div",{style:{position:"absolute",top:"110%",right:0,minWidth:220,background:"#fff",border:"1px solid var(--color-border)",borderRadius:8,boxShadow:"0 4px 16px rgba(0,0,0,0.08)",zIndex:1e3,padding:12},children:[o.jsx("ul",{style:{listStyle:"none",padding:0,margin:0,marginBottom:12},children:h.map((f,g)=>o.jsxs("li",{style:{display:"flex",alignItems:"center",marginBottom:4},children:[o.jsx("input",{type:"checkbox",checked:f.visible,disabled:g<4,onChange:()=>p(f.component_key,g),style:{marginRight:8}}),o.jsx("span",{style:{color:g<4?"#6b7280":"#111827"},children:f.label}),g<4&&o.jsx("span",{style:{fontSize:"var(--text-paragraph)",color:"#9ca3af",marginLeft:6}})]},f.component_key))}),o.jsx("button",{type:"button",onClick:k,disabled:n,style:{padding:"6px 18px",borderRadius:6,border:"none",background:"var(--color-primary)",color:"#fff",fontWeight:600,cursor:"pointer"},children:n?r:i})]})]})}const Qde=({logoPath:e,navItems:t,onNavClick:n,dropdownItems:c,headerBg:i,highlightColor:r="#1387C8",moduleConfig:s={},componentVisibilityItems:d=[],onComponentVisibilitySave:l,componentVisibilityLoading:h=!1,componentVisibilitySaveLabel:u,componentVisibilitySavingLabel:p,componentVisibilityButtonTitle:k})=>{const{activeSwitchers:f}=Ct(),g=f?.draggable===!0,m=f?.showData===!0,v=f?.legendFilter===!0,_=f?.componentVisibility===!0&&d&&d.length>0;return o.jsx("header",{className:"header",style:{backgroundColor:i},children:o.jsxs("div",{className:"header-layout-container",children:[o.jsxs("div",{className:"header-left",children:[o.jsx("a",{href:"/",children:o.jsx(QL,{imagePath:e})}),o.jsx(V$,{moduleConfig:s,items:t,onNavClick:n,highlightColor:r})]}),o.jsxs("div",{className:"header-right",children:[o.jsxs("div",{className:"switcher-container",children:[g&&o.jsx(RL,{}),m&&o.jsx(EL,{}),v&&o.jsx(FL,{}),o.jsx(ww,{}),_&&o.jsx(Cw,{items:d,onSave:l||(()=>{}),loading:h,saveLabel:u,savingLabel:p,buttonTitle:k})]}),o.jsx(z$,{categories:c?.categories,buttonContent:c?.buttonContent,topContent:o.jsxs("div",{className:"dropdown-switchers",children:[g&&o.jsx(RL,{}),m&&o.jsx(EL,{}),v&&o.jsx(FL,{}),o.jsx(ww,{}),_&&o.jsx(Cw,{items:d,onSave:l||(()=>{}),loading:h,saveLabel:u,savingLabel:p,buttonTitle:k})]})})]})]})})},W$=({icon:e,text:t,size:n=16,color:c="currentColor",className:i="",active:r=!1,href:s,a11yConfig:d})=>{const l=e?At[e]:null,h=s?"a":"div";return o.jsxs(h,{className:`icon-text ${r?"icon-text-active":""} ${i}`,style:{color:c},title:oe(d,t),role:"text","aria-label":t,...s?{href:s}:{},children:[l&&o.jsx(l,{size:n,"aria-hidden":"true"}),o.jsx("span",{children:t})]})},Qc=e=>typeof e=="number"?`${e}px`:e,e0e=({title:e,titleColor:t="#1c1b1f",headerColor:n="#ECEEF0",entryLabel:c="Entrée",entryValue:i,exitLabel:r="Sortie",exitValue:s,timeLabelColor:d="#6b7280",timeLabelFontSize:l="0.85rem",timeLabelFontWeight:h=400,timeLabelLineHeight:u=1,timeValueColor:p="#1c1b1f",rows:k=[],textFontSize:f="1.1rem",textFontWeight:g=700,textLineHeight:m=1,titleMinHeight:v,backgroundColor:_="#ffffff",borderColor:x="#D2D6D8",width:b,className:I,onClick:w,ariaLabel:j,a11yConfig:L,titleA11yConfig:M,entryLabelA11yConfig:S,exitLabelA11yConfig:C})=>{const N=oe(L),q=oe(M,M?.titleKey?void 0:e),A=oe(S,S?.titleKey?void 0:c),P=oe(C,C?.titleKey?void 0:r);return o.jsxs(t0e,{$width:b,$borderColor:x,className:I,onClick:w,role:w?"button":"group","aria-label":j||e,title:N,tabIndex:w?0:void 0,onKeyDown:T=>w&&T.key==="Enter"&&w(),children:[o.jsxs(a0e,{$bgColor:n,$borderColor:x,children:[e&&o.jsx(o0e,{$color:t,$fontSize:f,$fontWeight:g,$lineHeight:m,$minHeight:v,title:q,children:e}),(i||s)&&o.jsxs(c0e,{children:[i&&o.jsxs(oj,{children:[o.jsx(cj,{$color:d,$fontSize:l,$fontWeight:h,$lineHeight:u,title:A,children:c}),o.jsx(ij,{$color:p,children:i})]}),s&&o.jsxs(oj,{children:[o.jsx(cj,{$color:d,$fontSize:l,$fontWeight:h,$lineHeight:u,title:P,children:r}),o.jsx(ij,{$color:p,children:s})]})]}),o.jsx(n0e,{$bgColor:n})]}),k.length>0&&o.jsx(i0e,{$bgColor:_,children:k.map((T,H)=>o.jsxs(r0e,{title:oe(T.a11yConfig),children:[T.icon&&o.jsx(s0e,{"aria-hidden":"true",children:T.icon}),o.jsx(d0e,{$fontSize:f,$fontWeight:g,$lineHeight:m,children:T.text})]},H))})]})},t0e=O.div`
|
|
8162
8162
|
display: flex;
|
|
8163
8163
|
flex-direction: column;
|
|
8164
8164
|
width: ${e=>e.$width===void 0?"300px":typeof e.$width=="number"?`${e.$width}px`:e.$width};
|
|
@@ -8261,7 +8261,7 @@
|
|
|
8261
8261
|
font-size: ${e=>OL(e.$fontSize)};
|
|
8262
8262
|
font-weight: ${e=>e.$fontWeight};
|
|
8263
8263
|
color: ${e=>e.$color};
|
|
8264
|
-
`,m0e="_indicator_doard_1",f0e="_dot_doard_14",rj={indicator:m0e,dot:f0e};function g0e({label:e,color:t="var(--color-text)",backgroundColor:n="var(--color-neutral)",dotColor:c=t,className:i}){return o.jsxs("span",{className:[rj.indicator,i].filter(Boolean).join(" "),style:{"--status-color":t,"--status-background":n,"--status-dot-color":c},role:"status",children:[o.jsx("span",{className:rj.dot,"aria-hidden":"true"}),e]})}const v0e="_trigger_1ocgr_1",x0e="_value_1ocgr_33",_0e="_placeholder_1ocgr_37",M0e="_popover_1ocgr_41",L0e="_column_1ocgr_55",b0e="_heading_1ocgr_63",I0e="_options_1ocgr_70",w0e="_option_1ocgr_70",C0e="_selected_1ocgr_96",Xe={trigger:v0e,value:x0e,placeholder:_0e,popover:M0e,column:L0e,heading:b0e,options:I0e,option:w0e,selected:C0e},sj=e=>e.toString().padStart(2,"0");function j0e({value:e,onChange:t,placeholder:n="00:00",hoursLabel:c="Heures",minutesLabel:i="Minutes",ariaLabel:r,disabled:s=!1,minuteStep:d=15,className:l}){const h=Number.isInteger(d)&&d>0&&d<=60?d:15,u=y.useMemo(()=>Array.from({length:Math.ceil(60/h)},(L,S)=>sj(S*h)),[h]),[p,k]=y.useState(!1),[f,g]=y.useState("00"),[m,v]=y.useState("00"),[_,x]=y.useState(null),b=y.useRef(null),I=y.useRef(null);y.useEffect(()=>{if(!e){g("00"),v("00");return}const[L,S]=e.split(":");g(L??"00"),v(S??"00")},[e]);const w=y.useCallback(()=>{const L=b.current,S=I.current;if(!L||!S)return;const C=L.getBoundingClientRect(),N=S.getBoundingClientRect(),$=4,q=8,P=Math.min(Math.max(C.left,q),Math.max(q,window.innerWidth-N.width-q)),D=window.innerHeight-C.bottom-$-q,V=C.top-$-q,A=N.height<=D||D>=V?C.bottom+$:Math.max(q,C.top-N.height-$);x({left:P,top:A,visibility:"visible"})},[]);y.useLayoutEffect(()=>{if(p)return w(),window.addEventListener("resize",w),window.addEventListener("scroll",w,!0),()=>{window.removeEventListener("resize",w),window.removeEventListener("scroll",w,!0)}},[p,w]),y.useEffect(()=>{if(!p)return;const L=C=>{const N=C.target;!b.current?.contains(N)&&!I.current?.contains(N)&&k(!1)},S=C=>{C.key==="Escape"&&k(!1)};return document.addEventListener("pointerdown",L),document.addEventListener("keydown",S),()=>{document.removeEventListener("pointerdown",L),document.removeEventListener("keydown",S)}},[p]);const j=L=>{g(L),t(`${L}:${m}`)},M=L=>{v(L),t(`${f}:${L}`)};return o.jsxs(o.Fragment,{children:[o.jsxs("button",{ref:b,type:"button",className:[Xe.trigger,l].filter(Boolean).join(" "),onClick:()=>!s&&k(L=>!L),disabled:s,"aria-label":r,"aria-expanded":p,"aria-haspopup":"dialog",children:[o.jsx("span",{className:e?Xe.value:Xe.placeholder,children:e??n}),o.jsx(Y1,{size:17,"aria-hidden":"true"})]}),p&&typeof document<"u"&&gi.createPortal(o.jsxs("div",{ref:I,className:Xe.popover,style:_??{left:8,top:8,visibility:"hidden"},role:"dialog","aria-label":r,children:[o.jsxs("div",{className:Xe.column,children:[o.jsx("span",{className:Xe.heading,children:c}),o.jsx("div",{className:Xe.options,role:"group","aria-label":c,children:Array.from({length:24},(L,S)=>sj(S)).map(L=>o.jsx("button",{type:"button",className:`${Xe.option} ${f===L?Xe.selected:""}`,onClick:()=>j(L),"aria-pressed":f===L,children:L},L))})]}),o.jsxs("div",{className:Xe.column,children:[o.jsx("span",{className:Xe.heading,children:i}),o.jsx("div",{className:Xe.options,role:"group","aria-label":i,children:u.map(L=>o.jsx("button",{type:"button",className:`${Xe.option} ${m===L?Xe.selected:""}`,onClick:()=>M(L),"aria-pressed":m===L,children:L},L))})]})]}),document.body)]})}const N0e=({subNavItems:e,highlightColor:t="#1387C8",style:n,item:c})=>{const{activeSubNav:i}=Ct();return o.jsx(G$,{style:n,item:c,children:e?.map(r=>o.jsx(W$,{icon:r.icon,text:r.label,href:r.href,color:r.id===i?t:"",active:r.id===i,a11yConfig:r.a11yConfig},r.id))})},K$=({title:e,subtitle:t,text:n,background:c="#f9f9f9",titleStyle:i,subtitleStyle:r,textStyle:s,itemStyle:d,icon:l})=>{const[h,u]=n?n.split("/"):[];return o.jsxs("div",{className:"trend-item",style:{background:c,...d},children:[o.jsxs("div",{className:"trend-left",children:[o.jsx("div",{className:"trend-icon",children:l}),o.jsxs("div",{className:"trend-texts",children:[o.jsx("span",{className:"trend-title",style:i,children:e}),t&&o.jsx("span",{className:"trend-subtitle",style:r,children:t})]})]}),o.jsxs("div",{className:"trend-right",style:s,children:[o.jsx("span",{className:"trend-right-left",children:h}),o.jsx("span",{className:"trend-right-separator",children:" / "}),o.jsx("span",{className:"trend-right-right",children:u})]})]})},Jw=y.createContext({});function Qt(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qw=typeof window<"u",eC=Qw?y.useLayoutEffect:y.useEffect,tb=y.createContext(null);function tC(e,t){e.indexOf(t)===-1&&e.push(t)}function aC(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function S0e([...e],t,n){const c=t<0?e.length+t:t;if(c>=0&&c<e.length){const i=n<0?e.length+n:n,[r]=e.splice(t,1);e.splice(i,0,r)}return e}const zt=(e,t,n)=>n>t?t:n<e?e:n;function jw(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let S1=()=>{},gt=()=>{};process.env.NODE_ENV!=="production"&&(S1=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(jw(t,n))},gt=(e,t,n)=>{if(!e)throw new Error(jw(t,n))});const Pt={},Z$=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function X$(e){return typeof e=="object"&&e!==null}const Y$=e=>/^0[^.\s]+$/u.test(e);function nC(e){let t;return()=>(t===void 0&&(t=e()),t)}const ut=e=>e,$0e=(e,t)=>n=>t(e(n)),xi=(...e)=>e.reduce($0e),hi=(e,t,n)=>{const c=t-e;return c===0?1:(n-e)/c};class oC{constructor(){this.subscriptions=[]}add(t){return tC(this.subscriptions,t),()=>aC(this.subscriptions,t)}notify(t,n,c){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,c);else for(let r=0;r<i;r++){const s=this.subscriptions[r];s&&s(t,n,c)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ft=e=>e*1e3,lt=e=>e/1e3;function J$(e,t){return t?e*(1e3/t):0}const dj=new Set;function cC(e,t,n){e||dj.has(t)||(console.warn(jw(t,n)),dj.add(t))}const Q$=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,q0e=1e-7,A0e=12;function z0e(e,t,n,c,i){let r,s,d=0;do s=t+(n-t)/2,r=Q$(s,c,i)-e,r>0?n=s:t=s;while(Math.abs(r)>q0e&&++d<A0e);return s}function _i(e,t,n,c){if(e===t&&n===c)return ut;const i=r=>z0e(r,0,1,e,n);return r=>r===0||r===1?r:Q$(i(r),t,c)}const eq=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tq=e=>t=>1-e(1-t),aq=_i(.33,1.53,.69,.99),iC=tq(aq),nq=eq(iC),oq=e=>(e*=2)<1?.5*iC(e):.5*(2-Math.pow(2,-10*(e-1))),rC=e=>1-Math.sin(Math.acos(e)),cq=tq(rC),iq=eq(rC),P0e=_i(.42,0,1,1),V0e=_i(0,0,.58,1),rq=_i(.42,0,.58,1),T0e=e=>Array.isArray(e)&&typeof e[0]!="number",sq=e=>Array.isArray(e)&&typeof e[0]=="number",lj={linear:ut,easeIn:P0e,easeInOut:rq,easeOut:V0e,circIn:rC,circInOut:iq,circOut:cq,backIn:iC,backInOut:nq,backOut:aq,anticipate:oq},D0e=e=>typeof e=="string",hj=e=>{if(sq(e)){gt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,c,i]=e;return _i(t,n,c,i)}else if(D0e(e))return gt(lj[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),lj[e];return e},Ai=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function H0e(e,t){let n=new Set,c=new Set,i=!1,r=!1;const s=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(h.schedule(u),e()),u(d)}const h={schedule:(u,p=!1,k=!1)=>{const g=k&&i?n:c;return p&&s.add(u),g.has(u)||g.add(u),u},cancel:u=>{c.delete(u),s.delete(u)},process:u=>{if(d=u,i){r=!0;return}i=!0,[n,c]=[c,n],n.forEach(l),n.clear(),i=!1,r&&(r=!1,h.process(u))}};return h}const B0e=40;function dq(e,t){let n=!1,c=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,s=Ai.reduce((b,I)=>(b[I]=H0e(r),b),{}),{setup:d,read:l,resolveKeyframes:h,preUpdate:u,update:p,preRender:k,render:f,postRender:g}=s,m=()=>{const b=Pt.useManualTiming?i.timestamp:performance.now();n=!1,Pt.useManualTiming||(i.delta=c?1e3/60:Math.max(Math.min(b-i.timestamp,B0e),1)),i.timestamp=b,i.isProcessing=!0,d.process(i),l.process(i),h.process(i),u.process(i),p.process(i),k.process(i),f.process(i),g.process(i),i.isProcessing=!1,n&&t&&(c=!1,e(m))},v=()=>{n=!0,c=!0,i.isProcessing||e(m)};return{schedule:Ai.reduce((b,I)=>{const w=s[I];return b[I]=(j,M=!1,L=!1)=>(n||v(),w.schedule(j,M,L)),b},{}),cancel:b=>{for(let I=0;I<Ai.length;I++)s[Ai[I]].cancel(b)},state:i,steps:s}}const{schedule:be,cancel:Vt,state:Te,steps:wb}=dq(typeof requestAnimationFrame<"u"?requestAnimationFrame:ut,!0);let VL;function R0e(){VL=void 0}const et={now:()=>(VL===void 0&&et.set(Te.isProcessing||Pt.useManualTiming?Te.timestamp:performance.now()),VL),set:e=>{VL=e,queueMicrotask(R0e)}},lq=e=>t=>typeof t=="string"&&t.startsWith(e),sC=lq("--"),F0e=lq("var(--"),dC=e=>F0e(e)?E0e.test(e.split("/*")[0].trim()):!1,E0e=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,$1={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ui={...$1,transform:e=>zt(0,1,e)},zi={...$1,default:1},ci=e=>Math.round(e*1e5)/1e5,lC=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function O0e(e){return e==null}const U0e=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,hC=(e,t)=>n=>!!(typeof n=="string"&&U0e.test(n)&&n.startsWith(e)||t&&!O0e(n)&&Object.prototype.hasOwnProperty.call(n,t)),hq=(e,t,n)=>c=>{if(typeof c!="string")return c;const[i,r,s,d]=c.match(lC);return{[e]:parseFloat(i),[t]:parseFloat(r),[n]:parseFloat(s),alpha:d!==void 0?parseFloat(d):1}},W0e=e=>zt(0,255,e),Cb={...$1,transform:e=>Math.round(W0e(e))},Gc={test:hC("rgb","red"),parse:hq("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:c=1})=>"rgba("+Cb.transform(e)+", "+Cb.transform(t)+", "+Cb.transform(n)+", "+ci(ui.transform(c))+")"};function G0e(e){let t="",n="",c="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),c=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),c=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,c+=c,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(c,16),alpha:i?parseInt(i,16)/255:1}}const Nw={test:hC("#"),parse:G0e,transform:Gc.transform},Mi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ot=Mi("deg"),wt=Mi("%"),ie=Mi("px"),K0e=Mi("vh"),Z0e=Mi("vw"),uj={...wt,parse:e=>wt.parse(e)/100,transform:e=>wt.transform(e*100)},m1={test:hC("hsl","hue"),parse:hq("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:c=1})=>"hsla("+Math.round(e)+", "+wt.transform(ci(t))+", "+wt.transform(ci(n))+", "+ci(ui.transform(c))+")"},Ae={test:e=>Gc.test(e)||Nw.test(e)||m1.test(e),parse:e=>Gc.test(e)?Gc.parse(e):m1.test(e)?m1.parse(e):Nw.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Gc.transform(e):m1.transform(e),getAnimatableNone:e=>{const t=Ae.parse(e);return t.alpha=0,Ae.transform(t)}},X0e=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Y0e(e){return isNaN(e)&&typeof e=="string"&&(e.match(lC)?.length||0)+(e.match(X0e)?.length||0)>0}const uq="number",pq="color",J0e="var",Q0e="var(",pj="${}",ele=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function pi(e){const t=e.toString(),n=[],c={color:[],number:[],var:[]},i=[];let r=0;const d=t.replace(ele,l=>(Ae.test(l)?(c.color.push(r),i.push(pq),n.push(Ae.parse(l))):l.startsWith(Q0e)?(c.var.push(r),i.push(J0e),n.push(l)):(c.number.push(r),i.push(uq),n.push(parseFloat(l))),++r,pj)).split(pj);return{values:n,split:d,indexes:c,types:i}}function yq(e){return pi(e).values}function kq(e){const{split:t,types:n}=pi(e),c=t.length;return i=>{let r="";for(let s=0;s<c;s++)if(r+=t[s],i[s]!==void 0){const d=n[s];d===uq?r+=ci(i[s]):d===pq?r+=Ae.transform(i[s]):r+=i[s]}return r}}const tle=e=>typeof e=="number"?0:Ae.test(e)?Ae.getAnimatableNone(e):e;function ale(e){const t=yq(e);return kq(e)(t.map(tle))}const Jt={test:Y0e,parse:yq,createTransformer:kq,getAnimatableNone:ale};function jb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nle({hue:e,saturation:t,lightness:n,alpha:c}){e/=360,t/=100,n/=100;let i=0,r=0,s=0;if(!t)i=r=s=n;else{const d=n<.5?n*(1+t):n+t-n*t,l=2*n-d;i=jb(l,d,e+1/3),r=jb(l,d,e),s=jb(l,d,e-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(s*255),alpha:c}}function UL(e,t){return n=>n>0?t:e}const we=(e,t,n)=>e+(t-e)*n,Nb=(e,t,n)=>{const c=e*e,i=n*(t*t-c)+c;return i<0?0:Math.sqrt(i)},ole=[Nw,Gc,m1],cle=e=>ole.find(t=>t.test(e));function yj(e){const t=cle(e);if(S1(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===m1&&(n=nle(n)),n}const kj=(e,t)=>{const n=yj(e),c=yj(t);if(!n||!c)return UL(e,t);const i={...n};return r=>(i.red=Nb(n.red,c.red,r),i.green=Nb(n.green,c.green,r),i.blue=Nb(n.blue,c.blue,r),i.alpha=we(n.alpha,c.alpha,r),Gc.transform(i))},Sw=new Set(["none","hidden"]);function ile(e,t){return Sw.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function rle(e,t){return n=>we(e,t,n)}function uC(e){return typeof e=="number"?rle:typeof e=="string"?dC(e)?UL:Ae.test(e)?kj:lle:Array.isArray(e)?mq:typeof e=="object"?Ae.test(e)?kj:sle:UL}function mq(e,t){const n=[...e],c=n.length,i=e.map((r,s)=>uC(r)(r,t[s]));return r=>{for(let s=0;s<c;s++)n[s]=i[s](r);return n}}function sle(e,t){const n={...e,...t},c={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(c[i]=uC(e[i])(e[i],t[i]));return i=>{for(const r in c)n[r]=c[r](i);return n}}function dle(e,t){const n=[],c={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const r=t.types[i],s=e.indexes[r][c[r]],d=e.values[s]??0;n[i]=d,c[r]++}return n}const lle=(e,t)=>{const n=Jt.createTransformer(t),c=pi(e),i=pi(t);return c.indexes.var.length===i.indexes.var.length&&c.indexes.color.length===i.indexes.color.length&&c.indexes.number.length>=i.indexes.number.length?Sw.has(e)&&!i.values.length||Sw.has(t)&&!c.values.length?ile(e,t):xi(mq(dle(c,i),i.values),n):(S1(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),UL(e,t))};function fq(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?we(e,t,n):uC(e)(e,t)}const hle=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>be.update(t,n),stop:()=>Vt(t),now:()=>Te.isProcessing?Te.timestamp:et.now()}},gq=(e,t,n=10)=>{let c="";const i=Math.max(Math.round(t/n),2);for(let r=0;r<i;r++)c+=Math.round(e(r/(i-1))*1e4)/1e4+", ";return`linear(${c.substring(0,c.length-2)})`},WL=2e4;function pC(e){let t=0;const n=50;let c=e.next(t);for(;!c.done&&t<WL;)t+=n,c=e.next(t);return t>=WL?1/0:t}function ule(e,t=100,n){const c=n({...e,keyframes:[0,t]}),i=Math.min(pC(c),WL);return{type:"keyframes",ease:r=>c.next(i*r).value/t,duration:lt(i)}}const ple=5;function vq(e,t,n){const c=Math.max(t-ple,0);return J$(n-e(c),t-c)}const Ce={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Sb=.001;function yle({duration:e=Ce.duration,bounce:t=Ce.bounce,velocity:n=Ce.velocity,mass:c=Ce.mass}){let i,r;S1(e<=ft(Ce.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=zt(Ce.minDamping,Ce.maxDamping,s),e=zt(Ce.minDuration,Ce.maxDuration,lt(e)),s<1?(i=h=>{const u=h*s,p=u*e,k=u-n,f=$w(h,s),g=Math.exp(-p);return Sb-k/f*g},r=h=>{const p=h*s*e,k=p*n+n,f=Math.pow(s,2)*Math.pow(h,2)*e,g=Math.exp(-p),m=$w(Math.pow(h,2),s);return(-i(h)+Sb>0?-1:1)*((k-f)*g)/m}):(i=h=>{const u=Math.exp(-h*e),p=(h-n)*e+1;return-Sb+u*p},r=h=>{const u=Math.exp(-h*e),p=(n-h)*(e*e);return u*p});const d=5/e,l=mle(i,r,d);if(e=ft(e),isNaN(l))return{stiffness:Ce.stiffness,damping:Ce.damping,duration:e};{const h=Math.pow(l,2)*c;return{stiffness:h,damping:s*2*Math.sqrt(c*h),duration:e}}}const kle=12;function mle(e,t,n){let c=n;for(let i=1;i<kle;i++)c=c-e(c)/t(c);return c}function $w(e,t){return e*Math.sqrt(1-t*t)}const fle=["duration","bounce"],gle=["stiffness","damping","mass"];function mj(e,t){return t.some(n=>e[n]!==void 0)}function vle(e){let t={velocity:Ce.velocity,stiffness:Ce.stiffness,damping:Ce.damping,mass:Ce.mass,isResolvedFromDuration:!1,...e};if(!mj(e,gle)&&mj(e,fle))if(e.visualDuration){const n=e.visualDuration,c=2*Math.PI/(n*1.2),i=c*c,r=2*zt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Ce.mass,stiffness:i,damping:r}}else{const n=yle(e);t={...t,...n,mass:Ce.mass},t.isResolvedFromDuration=!0}return t}function GL(e=Ce.visualDuration,t=Ce.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:c,restDelta:i}=n;const r=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],d={done:!1,value:r},{stiffness:l,damping:h,mass:u,duration:p,velocity:k,isResolvedFromDuration:f}=vle({...n,velocity:-lt(n.velocity||0)}),g=k||0,m=h/(2*Math.sqrt(l*u)),v=s-r,_=lt(Math.sqrt(l/u)),x=Math.abs(v)<5;c||(c=x?Ce.restSpeed.granular:Ce.restSpeed.default),i||(i=x?Ce.restDelta.granular:Ce.restDelta.default);let b;if(m<1){const w=$w(_,m);b=j=>{const M=Math.exp(-m*_*j);return s-M*((g+m*_*v)/w*Math.sin(w*j)+v*Math.cos(w*j))}}else if(m===1)b=w=>s-Math.exp(-_*w)*(v+(g+_*v)*w);else{const w=_*Math.sqrt(m*m-1);b=j=>{const M=Math.exp(-m*_*j),L=Math.min(w*j,300);return s-M*((g+m*_*v)*Math.sinh(L)+w*v*Math.cosh(L))/w}}const I={calculatedDuration:f&&p||null,next:w=>{const j=b(w);if(f)d.done=w>=p;else{let M=w===0?g:0;m<1&&(M=w===0?ft(g):vq(b,w,j));const L=Math.abs(M)<=c,S=Math.abs(s-j)<=i;d.done=L&&S}return d.value=d.done?s:j,d},toString:()=>{const w=Math.min(pC(I),WL),j=gq(M=>I.next(w*M).value,w,30);return w+"ms "+j},toTransition:()=>{}};return I}GL.applyToOptions=e=>{const t=ule(e,100,GL);return e.ease=t.ease,e.duration=ft(t.duration),e.type="keyframes",e};function qw({keyframes:e,velocity:t=0,power:n=.8,timeConstant:c=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:s,min:d,max:l,restDelta:h=.5,restSpeed:u}){const p=e[0],k={done:!1,value:p},f=L=>d!==void 0&&L<d||l!==void 0&&L>l,g=L=>d===void 0?l:l===void 0||Math.abs(d-L)<Math.abs(l-L)?d:l;let m=n*t;const v=p+m,_=s===void 0?v:s(v);_!==v&&(m=_-p);const x=L=>-m*Math.exp(-L/c),b=L=>_+x(L),I=L=>{const S=x(L),C=b(L);k.done=Math.abs(S)<=h,k.value=k.done?_:C};let w,j;const M=L=>{f(k.value)&&(w=L,j=GL({keyframes:[k.value,g(k.value)],velocity:vq(b,L,k.value),damping:i,stiffness:r,restDelta:h,restSpeed:u}))};return M(0),{calculatedDuration:null,next:L=>{let S=!1;return!j&&w===void 0&&(S=!0,I(L),M(L)),w!==void 0&&L>=w?j.next(L-w):(!S&&I(L),k)}}}function xle(e,t,n){const c=[],i=n||Pt.mix||fq,r=e.length-1;for(let s=0;s<r;s++){let d=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||ut:t;d=xi(l,d)}c.push(d)}return c}function xq(e,t,{clamp:n=!0,ease:c,mixer:i}={}){const r=e.length;if(gt(r===t.length,"Both input and output ranges must be the same length","range-length"),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=xle(t,c,i),l=d.length,h=u=>{if(s&&u<e[0])return t[0];let p=0;if(l>1)for(;p<e.length-2&&!(u<e[p+1]);p++);const k=hi(e[p],e[p+1],u);return d[p](k)};return n?u=>h(zt(e[0],e[r-1],u)):h}function _le(e,t){const n=e[e.length-1];for(let c=1;c<=t;c++){const i=hi(0,t,c);e.push(we(n,1,i))}}function Mle(e){const t=[0];return _le(t,e.length-1),t}function Lle(e,t){return e.map(n=>n*t)}function ble(e,t){return e.map(()=>t||rq).splice(0,e.length-1)}function f1({duration:e=300,keyframes:t,times:n,ease:c="easeInOut"}){const i=T0e(c)?c.map(hj):hj(c),r={done:!1,value:t[0]},s=Lle(n&&n.length===t.length?n:Mle(t),e),d=xq(s,t,{ease:Array.isArray(i)?i:ble(t,i)});return{calculatedDuration:e,next:l=>(r.value=d(l),r.done=l>=e,r)}}const Ile=e=>e!==null;function yC(e,{repeat:t,repeatType:n="loop"},c,i=1){const r=e.filter(Ile),d=i<0||t&&n!=="loop"&&t%2===1?0:r.length-1;return!d||c===void 0?r[d]:c}const wle={decay:qw,inertia:qw,tween:f1,keyframes:f1,spring:GL};function _q(e){typeof e.type=="string"&&(e.type=wle[e.type])}class kC{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Cle=e=>e/100;class mC extends kC{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==et.now()&&this.tick(et.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;_q(t);const{type:n=f1,repeat:c=0,repeatDelay:i=0,repeatType:r,velocity:s=0}=t;let{keyframes:d}=t;const l=n||f1;process.env.NODE_ENV!=="production"&&l!==f1&>(d.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${d}`,"spring-two-frames"),l!==f1&&typeof d[0]!="number"&&(this.mixKeyframes=xi(Cle,fq(d[0],d[1])),d=[0,100]);const h=l({...t,keyframes:d});r==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...d].reverse(),velocity:-s})),h.calculatedDuration===null&&(h.calculatedDuration=pC(h));const{calculatedDuration:u}=h;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(c+1)-i,this.generator=h}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:c,totalDuration:i,mixKeyframes:r,mirroredGenerator:s,resolvedDuration:d,calculatedDuration:l}=this;if(this.startTime===null)return c.next(0);const{delay:h=0,keyframes:u,repeat:p,repeatType:k,repeatDelay:f,type:g,onUpdate:m,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const _=this.currentTime-h*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?_<0:_>i;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let b=this.currentTime,I=c;if(p){const L=Math.min(this.currentTime,i)/d;let S=Math.floor(L),C=L%1;!C&&L>=1&&(C=1),C===1&&S--,S=Math.min(S,p+1),!!(S%2)&&(k==="reverse"?(C=1-C,f&&(C-=f/d)):k==="mirror"&&(I=s)),b=zt(0,1,C)*d}const w=x?{done:!1,value:u[0]}:I.next(b);r&&(w.value=r(w.value));let{done:j}=w;!x&&l!==null&&(j=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&j);return M&&g!==qw&&(w.value=yC(u,this.options,v,this.speed)),m&&m(w.value),M&&this.finish(),w}then(t,n){return this.finished.then(t,n)}get duration(){return lt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+lt(t)}get time(){return lt(this.currentTime)}set time(t){t=ft(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(et.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=lt(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=hle,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const c=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=c):this.holdTime!==null?this.startTime=c-this.holdTime:this.startTime||(this.startTime=n??c),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(et.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function jle(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Kc=e=>e*180/Math.PI,Aw=e=>{const t=Kc(Math.atan2(e[1],e[0]));return zw(t)},Nle={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Aw,rotateZ:Aw,skewX:e=>Kc(Math.atan(e[1])),skewY:e=>Kc(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},zw=e=>(e=e%360,e<0&&(e+=360),e),fj=Aw,gj=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),vj=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Sle={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:gj,scaleY:vj,scale:e=>(gj(e)+vj(e))/2,rotateX:e=>zw(Kc(Math.atan2(e[6],e[5]))),rotateY:e=>zw(Kc(Math.atan2(-e[2],e[0]))),rotateZ:fj,rotate:fj,skewX:e=>Kc(Math.atan(e[4])),skewY:e=>Kc(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Pw(e){return e.includes("scale")?1:0}function Vw(e,t){if(!e||e==="none")return Pw(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let c,i;if(n)c=Sle,i=n;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);c=Nle,i=d}if(!i)return Pw(t);const r=c[t],s=i[1].split(",").map(qle);return typeof r=="function"?r(s):s[r]}const $le=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Vw(n,t)};function qle(e){return parseFloat(e.trim())}const q1=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],A1=new Set(q1),xj=e=>e===$1||e===ie,Ale=new Set(["x","y","z"]),zle=q1.filter(e=>!Ale.has(e));function Ple(e){const t=[];return zle.forEach(n=>{const c=e.getValue(n);c!==void 0&&(t.push([n,c.get()]),c.set(n.startsWith("scale")?1:0))}),t}const e1={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Vw(t,"x"),y:(e,{transform:t})=>Vw(t,"y")};e1.translateX=e1.x;e1.translateY=e1.y;const t1=new Set;let Tw=!1,Dw=!1,Hw=!1;function Mq(){if(Dw){const e=Array.from(t1).filter(c=>c.needsMeasurement),t=new Set(e.map(c=>c.element)),n=new Map;t.forEach(c=>{const i=Ple(c);i.length&&(n.set(c,i),c.render())}),e.forEach(c=>c.measureInitialState()),t.forEach(c=>{c.render();const i=n.get(c);i&&i.forEach(([r,s])=>{c.getValue(r)?.set(s)})}),e.forEach(c=>c.measureEndState()),e.forEach(c=>{c.suspendedScrollY!==void 0&&window.scrollTo(0,c.suspendedScrollY)})}Dw=!1,Tw=!1,t1.forEach(e=>e.complete(Hw)),t1.clear()}function Lq(){t1.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Dw=!0)})}function Vle(){Hw=!0,Lq(),Mq(),Hw=!1}class fC{constructor(t,n,c,i,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=c,this.motionValue=i,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(t1.add(this),Tw||(Tw=!0,be.read(Lq),be.resolveKeyframes(Mq))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:c,motionValue:i}=this;if(t[0]===null){const r=i?.get(),s=t[t.length-1];if(r!==void 0)t[0]=r;else if(c&&n){const d=c.readValue(n,s);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=s),i&&r===void 0&&i.set(t[0])}jle(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),t1.delete(this)}cancel(){this.state==="scheduled"&&(t1.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Tle=e=>e.startsWith("--");function Dle(e,t,n){Tle(t)?e.style.setProperty(t,n):e.style[t]=n}const Hle=nC(()=>window.ScrollTimeline!==void 0),Ble={};function Rle(e,t){const n=nC(e);return()=>Ble[t]??n()}const bq=Rle(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),F1=([e,t,n,c])=>`cubic-bezier(${e}, ${t}, ${n}, ${c})`,_j={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:F1([0,.65,.55,1]),circOut:F1([.55,0,1,.45]),backIn:F1([.31,.01,.66,-.59]),backOut:F1([.33,1.53,.69,.99])};function Iq(e,t){if(e)return typeof e=="function"?bq()?gq(e,t):"ease-out":sq(e)?F1(e):Array.isArray(e)?e.map(n=>Iq(n,t)||_j.easeOut):_j[e]}function Fle(e,t,n,{delay:c=0,duration:i=300,repeat:r=0,repeatType:s="loop",ease:d="easeOut",times:l}={},h=void 0){const u={[t]:n};l&&(u.offset=l);const p=Iq(d,i);Array.isArray(p)&&(u.easing=p);const k={delay:c,duration:i,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:r+1,direction:s==="reverse"?"alternate":"normal"};return h&&(k.pseudoElement=h),e.animate(u,k)}function wq(e){return typeof e=="function"&&"applyToOptions"in e}function Ele({type:e,...t}){return wq(e)&&bq()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Ole extends kC{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:c,keyframes:i,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:d,onComplete:l}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,gt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const h=Ele(t);this.animation=Fle(n,c,i,h,r),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const u=yC(i,this.options,d,this.speed);this.updateMotionValue?this.updateMotionValue(u):Dle(n,c,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return lt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+lt(t)}get time(){return lt(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ft(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Hle()?(this.animation.timeline=t,ut):n(this)}}const Cq={anticipate:oq,backInOut:nq,circInOut:iq};function Ule(e){return e in Cq}function Wle(e){typeof e.ease=="string"&&Ule(e.ease)&&(e.ease=Cq[e.ease])}const Mj=10;class Gle extends Ole{constructor(t){Wle(t),_q(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:c,onComplete:i,element:r,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const d=new mC({...s,autoplay:!1}),l=ft(this.finishedTime??this.time);n.setWithVelocity(d.sample(l-Mj).value,d.sample(l).value,Mj),d.stop()}}const Lj=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Jt.test(e)||e==="0")&&!e.startsWith("url("));function Kle(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Zle(e,t,n,c){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const r=e[e.length-1],s=Lj(i,t),d=Lj(r,t);return S1(s===d,`You are trying to animate ${t} from "${i}" to "${r}". "${s?r:i}" is not an animatable value.`,"value-not-animatable"),!s||!d?!1:Kle(e)||(n==="spring"||wq(n))&&c}function Bw(e){e.duration=0,e.type="keyframes"}const Xle=new Set(["opacity","clipPath","filter","transform"]),Yle=nC(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Jle(e){const{motionValue:t,name:n,repeatDelay:c,repeatType:i,damping:r,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:h}=t.owner.getProps();return Yle()&&n&&Xle.has(n)&&(n!=="transform"||!h)&&!l&&!c&&i!=="mirror"&&r!==0&&s!=="inertia"}const Qle=40;class ehe extends kC{constructor({autoplay:t=!0,delay:n=0,type:c="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:s="loop",keyframes:d,name:l,motionValue:h,element:u,...p}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=et.now();const k={autoplay:t,delay:n,type:c,repeat:i,repeatDelay:r,repeatType:s,name:l,motionValue:h,element:u,...p},f=u?.KeyframeResolver||fC;this.keyframeResolver=new f(d,(g,m,v)=>this.onKeyframesResolved(g,m,k,!v),l,h,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,c,i){this.keyframeResolver=void 0;const{name:r,type:s,velocity:d,delay:l,isHandoff:h,onUpdate:u}=c;this.resolvedAt=et.now(),Zle(t,r,s,d)||((Pt.instantAnimations||!l)&&u?.(yC(t,c,n)),t[0]=t[t.length-1],Bw(c),c.repeat=0);const k={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Qle?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...c,keyframes:t},f=!h&&Jle(k)?new Gle({...k,element:k.motionValue.owner.current}):new mC(k);f.finished.then(()=>this.notifyFinished()).catch(ut),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Vle()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const the=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ahe(e){const t=the.exec(e);if(!t)return[,];const[,n,c,i]=t;return[`--${n??c}`,i]}const nhe=4;function jq(e,t,n=1){gt(n<=nhe,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[c,i]=ahe(e);if(!c)return;const r=window.getComputedStyle(t).getPropertyValue(c);if(r){const s=r.trim();return Z$(s)?parseFloat(s):s}return dC(i)?jq(i,t,n+1):i}function gC(e,t){return e?.[t]??e?.default??e}const Nq=new Set(["width","height","top","left","right","bottom",...q1]),ohe={test:e=>e==="auto",parse:e=>e},Sq=e=>t=>t.test(e),$q=[$1,ie,wt,Ot,Z0e,K0e,ohe],bj=e=>$q.find(Sq(e));function che(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Y$(e):!0}const ihe=new Set(["brightness","contrast","saturate","opacity"]);function rhe(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[c]=n.match(lC)||[];if(!c)return e;const i=n.replace(c,"");let r=ihe.has(t)?1:0;return c!==n&&(r*=100),t+"("+r+i+")"}const she=/\b([a-z-]*)\(.*?\)/gu,Rw={...Jt,getAnimatableNone:e=>{const t=e.match(she);return t?t.map(rhe).join(" "):e}},Ij={...$1,transform:Math.round},dhe={rotate:Ot,rotateX:Ot,rotateY:Ot,rotateZ:Ot,scale:zi,scaleX:zi,scaleY:zi,scaleZ:zi,skew:Ot,skewX:Ot,skewY:Ot,distance:ie,translateX:ie,translateY:ie,translateZ:ie,x:ie,y:ie,z:ie,perspective:ie,transformPerspective:ie,opacity:ui,originX:uj,originY:uj,originZ:ie},vC={borderWidth:ie,borderTopWidth:ie,borderRightWidth:ie,borderBottomWidth:ie,borderLeftWidth:ie,borderRadius:ie,radius:ie,borderTopLeftRadius:ie,borderTopRightRadius:ie,borderBottomRightRadius:ie,borderBottomLeftRadius:ie,width:ie,maxWidth:ie,height:ie,maxHeight:ie,top:ie,right:ie,bottom:ie,left:ie,padding:ie,paddingTop:ie,paddingRight:ie,paddingBottom:ie,paddingLeft:ie,margin:ie,marginTop:ie,marginRight:ie,marginBottom:ie,marginLeft:ie,backgroundPositionX:ie,backgroundPositionY:ie,...dhe,zIndex:Ij,fillOpacity:ui,strokeOpacity:ui,numOctaves:Ij},lhe={...vC,color:Ae,backgroundColor:Ae,outlineColor:Ae,fill:Ae,stroke:Ae,borderColor:Ae,borderTopColor:Ae,borderRightColor:Ae,borderBottomColor:Ae,borderLeftColor:Ae,filter:Rw,WebkitFilter:Rw},qq=e=>lhe[e];function Aq(e,t){let n=qq(e);return n!==Rw&&(n=Jt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const hhe=new Set(["auto","none","0"]);function uhe(e,t,n){let c=0,i;for(;c<e.length&&!i;){const r=e[c];typeof r=="string"&&!hhe.has(r)&&pi(r).values.length&&(i=e[c]),c++}if(i&&n)for(const r of t)e[r]=Aq(n,i)}class phe extends fC{constructor(t,n,c,i,r){super(t,n,c,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:c}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let h=t[l];if(typeof h=="string"&&(h=h.trim(),dC(h))){const u=jq(h,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Nq.has(c)||t.length!==2)return;const[i,r]=t,s=bj(i),d=bj(r);if(s!==d)if(xj(s)&&xj(d))for(let l=0;l<t.length;l++){const h=t[l];typeof h=="string"&&(t[l]=parseFloat(h))}else e1[c]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,c=[];for(let i=0;i<t.length;i++)(t[i]===null||che(t[i]))&&c.push(i);c.length&&uhe(t,c,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:c}=this;if(!t||!t.current)return;c==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=e1[c](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(c,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:c}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=c.length-1,s=c[r];c[r]=e1[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([d,l])=>{t.getValue(d).set(l)}),this.resolveNoneKeyframes()}}function yhe(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let c=document;const i=n?.[e]??c.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const zq=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Pq(e){return X$(e)&&"offsetHeight"in e}const wj=30,khe=e=>!isNaN(parseFloat(e)),ii={current:void 0};class mhe{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=c=>{const i=et.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(c),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=et.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=khe(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&cC(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new oC);const c=this.events[t].add(n);return t==="change"?()=>{c(),be.read(()=>{this.events.change.getSize()||this.stop()})}:c}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,c){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-c}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return ii.current&&ii.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=et.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>wj)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,wj);return J$(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function a1(e,t){return new mhe(e,t)}const{schedule:xC}=dq(queueMicrotask,!1),mt={x:!1,y:!1};function Vq(){return mt.x||mt.y}function fhe(e){return e==="x"||e==="y"?mt[e]?null:(mt[e]=!0,()=>{mt[e]=!1}):mt.x||mt.y?null:(mt.x=mt.y=!0,()=>{mt.x=mt.y=!1})}function Tq(e,t){const n=yhe(e),c=new AbortController,i={passive:!0,...t,signal:c.signal};return[n,i,()=>c.abort()]}function Cj(e){return!(e.pointerType==="touch"||Vq())}function ghe(e,t,n={}){const[c,i,r]=Tq(e,n),s=d=>{if(!Cj(d))return;const{target:l}=d,h=t(l,d);if(typeof h!="function"||!l)return;const u=p=>{Cj(p)&&(h(p),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,i)};return c.forEach(d=>{d.addEventListener("pointerenter",s,i)}),r}const Dq=(e,t)=>t?e===t?!0:Dq(e,t.parentElement):!1,_C=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,vhe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function xhe(e){return vhe.has(e.tagName)||e.tabIndex!==-1}const TL=new WeakSet;function jj(e){return t=>{t.key==="Enter"&&e(t)}}function $b(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const _he=(e,t)=>{const n=e.currentTarget;if(!n)return;const c=jj(()=>{if(TL.has(n))return;$b(n,"down");const i=jj(()=>{$b(n,"up")}),r=()=>$b(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",r,t)});n.addEventListener("keydown",c,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",c),t)};function Nj(e){return _C(e)&&!Vq()}function Mhe(e,t,n={}){const[c,i,r]=Tq(e,n),s=d=>{const l=d.currentTarget;if(!Nj(d))return;TL.add(l);const h=t(l,d),u=(f,g)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",k),TL.has(l)&&TL.delete(l),Nj(f)&&typeof h=="function"&&h(f,{success:g})},p=f=>{u(f,l===window||l===document||n.useGlobalTarget||Dq(l,f.target))},k=f=>{u(f,!1)};window.addEventListener("pointerup",p,i),window.addEventListener("pointercancel",k,i)};return c.forEach(d=>{(n.useGlobalTarget?window:d).addEventListener("pointerdown",s,i),Pq(d)&&(d.addEventListener("focus",h=>_he(h,i)),!xhe(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),r}function Hq(e){return X$(e)&&"ownerSVGElement"in e}function Lhe(e){return Hq(e)&&e.tagName==="svg"}function bhe(...e){const t=!Array.isArray(e[0]),n=t?0:-1,c=e[0+n],i=e[1+n],r=e[2+n],s=e[3+n],d=xq(i,r,s);return t?d(c):d}const De=e=>!!(e&&e.getVelocity),Ihe=[...$q,Ae,Jt],whe=e=>Ihe.find(Sq(e)),ab=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Sj(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Che(...e){return t=>{let n=!1;const c=e.map(i=>{const r=Sj(i,t);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let i=0;i<c.length;i++){const r=c[i];typeof r=="function"?r():Sj(e[i],null)}}}}function jhe(...e){return ee.useCallback(Che(...e),e)}class Nhe extends ee.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const c=n.offsetParent,i=Pq(c)&&c.offsetWidth||0,r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft,r.right=i-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function She({children:e,isPresent:t,anchorX:n,root:c}){const i=y.useId(),r=y.useRef(null),s=y.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=y.useContext(ab),l=jhe(r,e?.ref);return y.useInsertionEffect(()=>{const{width:h,height:u,top:p,left:k,right:f}=s.current;if(t||!r.current||!h||!u)return;const g=n==="left"?`left: ${k}`:`right: ${f}`;r.current.dataset.motionPopId=i;const m=document.createElement("style");d&&(m.nonce=d);const v=c??document.head;return v.appendChild(m),m.sheet&&m.sheet.insertRule(`
|
|
8264
|
+
`,m0e="_indicator_doard_1",f0e="_dot_doard_14",rj={indicator:m0e,dot:f0e};function g0e({label:e,color:t="var(--color-text)",backgroundColor:n="var(--color-neutral)",dotColor:c=t,className:i}){return o.jsxs("span",{className:[rj.indicator,i].filter(Boolean).join(" "),style:{"--status-color":t,"--status-background":n,"--status-dot-color":c},role:"status",children:[o.jsx("span",{className:rj.dot,"aria-hidden":"true"}),e]})}const v0e="_trigger_1ocgr_1",x0e="_value_1ocgr_33",_0e="_placeholder_1ocgr_37",M0e="_popover_1ocgr_41",L0e="_column_1ocgr_55",b0e="_heading_1ocgr_63",I0e="_options_1ocgr_70",w0e="_option_1ocgr_70",C0e="_selected_1ocgr_96",Xe={trigger:v0e,value:x0e,placeholder:_0e,popover:M0e,column:L0e,heading:b0e,options:I0e,option:w0e,selected:C0e},sj=e=>e.toString().padStart(2,"0");function j0e({value:e,onChange:t,placeholder:n="00:00",hoursLabel:c="Heures",minutesLabel:i="Minutes",ariaLabel:r,disabled:s=!1,minuteStep:d=15,className:l}){const h=Number.isInteger(d)&&d>0&&d<=60?d:15,u=y.useMemo(()=>Array.from({length:Math.ceil(60/h)},(M,S)=>sj(S*h)),[h]),[p,k]=y.useState(!1),[f,g]=y.useState("00"),[m,v]=y.useState("00"),[_,x]=y.useState(null),b=y.useRef(null),I=y.useRef(null);y.useEffect(()=>{if(!e){g("00"),v("00");return}const[M,S]=e.split(":");g(M??"00"),v(S??"00")},[e]);const w=y.useCallback(()=>{const M=b.current,S=I.current;if(!M||!S)return;const C=M.getBoundingClientRect(),N=S.getBoundingClientRect(),q=4,A=8,P=Math.min(Math.max(C.left,A),Math.max(A,window.innerWidth-N.width-A)),T=window.innerHeight-C.bottom-q-A,H=C.top-q-A,$=N.height<=T||T>=H?C.bottom+q:Math.max(A,C.top-N.height-q);x({left:P,top:$,visibility:"visible"})},[]);y.useLayoutEffect(()=>{if(p)return w(),window.addEventListener("resize",w),window.addEventListener("scroll",w,!0),()=>{window.removeEventListener("resize",w),window.removeEventListener("scroll",w,!0)}},[p,w]),y.useEffect(()=>{if(!p)return;const M=C=>{const N=C.target;!b.current?.contains(N)&&!I.current?.contains(N)&&k(!1)},S=C=>{C.key==="Escape"&&k(!1)};return document.addEventListener("pointerdown",M),document.addEventListener("keydown",S),()=>{document.removeEventListener("pointerdown",M),document.removeEventListener("keydown",S)}},[p]);const j=M=>{g(M),t(`${M}:${m}`)},L=M=>{v(M),t(`${f}:${M}`)};return o.jsxs(o.Fragment,{children:[o.jsxs("button",{ref:b,type:"button",className:[Xe.trigger,l].filter(Boolean).join(" "),onClick:()=>!s&&k(M=>!M),disabled:s,"aria-label":r,"aria-expanded":p,"aria-haspopup":"dialog",children:[o.jsx("span",{className:e?Xe.value:Xe.placeholder,children:e??n}),o.jsx(Y1,{size:17,"aria-hidden":"true"})]}),p&&typeof document<"u"&&gi.createPortal(o.jsxs("div",{ref:I,className:Xe.popover,style:_??{left:8,top:8,visibility:"hidden"},role:"dialog","aria-label":r,children:[o.jsxs("div",{className:Xe.column,children:[o.jsx("span",{className:Xe.heading,children:c}),o.jsx("div",{className:Xe.options,role:"group","aria-label":c,children:Array.from({length:24},(M,S)=>sj(S)).map(M=>o.jsx("button",{type:"button",className:`${Xe.option} ${f===M?Xe.selected:""}`,onClick:()=>j(M),"aria-pressed":f===M,children:M},M))})]}),o.jsxs("div",{className:Xe.column,children:[o.jsx("span",{className:Xe.heading,children:i}),o.jsx("div",{className:Xe.options,role:"group","aria-label":i,children:u.map(M=>o.jsx("button",{type:"button",className:`${Xe.option} ${m===M?Xe.selected:""}`,onClick:()=>L(M),"aria-pressed":m===M,children:M},M))})]})]}),document.body)]})}const N0e=({subNavItems:e,highlightColor:t="#1387C8",style:n,item:c})=>{const{activeSubNav:i}=Ct();return o.jsx(G$,{style:n,item:c,children:e?.map(r=>o.jsx(W$,{icon:r.icon,text:r.label,href:r.href,color:r.id===i?t:"",active:r.id===i,a11yConfig:r.a11yConfig},r.id))})},K$=({title:e,subtitle:t,text:n,background:c="#f9f9f9",titleStyle:i,subtitleStyle:r,textStyle:s,itemStyle:d,icon:l})=>{const[h,u]=n?n.split("/"):[];return o.jsxs("div",{className:"trend-item",style:{background:c,...d},children:[o.jsxs("div",{className:"trend-left",children:[o.jsx("div",{className:"trend-icon",children:l}),o.jsxs("div",{className:"trend-texts",children:[o.jsx("span",{className:"trend-title",style:i,children:e}),t&&o.jsx("span",{className:"trend-subtitle",style:r,children:t})]})]}),o.jsxs("div",{className:"trend-right",style:s,children:[o.jsx("span",{className:"trend-right-left",children:h}),o.jsx("span",{className:"trend-right-separator",children:" / "}),o.jsx("span",{className:"trend-right-right",children:u})]})]})},Jw=y.createContext({});function Qt(e){const t=y.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qw=typeof window<"u",eC=Qw?y.useLayoutEffect:y.useEffect,tb=y.createContext(null);function tC(e,t){e.indexOf(t)===-1&&e.push(t)}function aC(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function S0e([...e],t,n){const c=t<0?e.length+t:t;if(c>=0&&c<e.length){const i=n<0?e.length+n:n,[r]=e.splice(t,1);e.splice(i,0,r)}return e}const zt=(e,t,n)=>n>t?t:n<e?e:n;function jw(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let S1=()=>{},gt=()=>{};process.env.NODE_ENV!=="production"&&(S1=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(jw(t,n))},gt=(e,t,n)=>{if(!e)throw new Error(jw(t,n))});const Pt={},Z$=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function X$(e){return typeof e=="object"&&e!==null}const Y$=e=>/^0[^.\s]+$/u.test(e);function nC(e){let t;return()=>(t===void 0&&(t=e()),t)}const ut=e=>e,$0e=(e,t)=>n=>t(e(n)),xi=(...e)=>e.reduce($0e),hi=(e,t,n)=>{const c=t-e;return c===0?1:(n-e)/c};class oC{constructor(){this.subscriptions=[]}add(t){return tC(this.subscriptions,t),()=>aC(this.subscriptions,t)}notify(t,n,c){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,c);else for(let r=0;r<i;r++){const s=this.subscriptions[r];s&&s(t,n,c)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ft=e=>e*1e3,lt=e=>e/1e3;function J$(e,t){return t?e*(1e3/t):0}const dj=new Set;function cC(e,t,n){e||dj.has(t)||(console.warn(jw(t,n)),dj.add(t))}const Q$=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,q0e=1e-7,A0e=12;function z0e(e,t,n,c,i){let r,s,d=0;do s=t+(n-t)/2,r=Q$(s,c,i)-e,r>0?n=s:t=s;while(Math.abs(r)>q0e&&++d<A0e);return s}function _i(e,t,n,c){if(e===t&&n===c)return ut;const i=r=>z0e(r,0,1,e,n);return r=>r===0||r===1?r:Q$(i(r),t,c)}const eq=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tq=e=>t=>1-e(1-t),aq=_i(.33,1.53,.69,.99),iC=tq(aq),nq=eq(iC),oq=e=>(e*=2)<1?.5*iC(e):.5*(2-Math.pow(2,-10*(e-1))),rC=e=>1-Math.sin(Math.acos(e)),cq=tq(rC),iq=eq(rC),P0e=_i(.42,0,1,1),V0e=_i(0,0,.58,1),rq=_i(.42,0,.58,1),T0e=e=>Array.isArray(e)&&typeof e[0]!="number",sq=e=>Array.isArray(e)&&typeof e[0]=="number",lj={linear:ut,easeIn:P0e,easeInOut:rq,easeOut:V0e,circIn:rC,circInOut:iq,circOut:cq,backIn:iC,backInOut:nq,backOut:aq,anticipate:oq},D0e=e=>typeof e=="string",hj=e=>{if(sq(e)){gt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,c,i]=e;return _i(t,n,c,i)}else if(D0e(e))return gt(lj[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),lj[e];return e},Ai=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function H0e(e,t){let n=new Set,c=new Set,i=!1,r=!1;const s=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(h.schedule(u),e()),u(d)}const h={schedule:(u,p=!1,k=!1)=>{const g=k&&i?n:c;return p&&s.add(u),g.has(u)||g.add(u),u},cancel:u=>{c.delete(u),s.delete(u)},process:u=>{if(d=u,i){r=!0;return}i=!0,[n,c]=[c,n],n.forEach(l),n.clear(),i=!1,r&&(r=!1,h.process(u))}};return h}const B0e=40;function dq(e,t){let n=!1,c=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,s=Ai.reduce((b,I)=>(b[I]=H0e(r),b),{}),{setup:d,read:l,resolveKeyframes:h,preUpdate:u,update:p,preRender:k,render:f,postRender:g}=s,m=()=>{const b=Pt.useManualTiming?i.timestamp:performance.now();n=!1,Pt.useManualTiming||(i.delta=c?1e3/60:Math.max(Math.min(b-i.timestamp,B0e),1)),i.timestamp=b,i.isProcessing=!0,d.process(i),l.process(i),h.process(i),u.process(i),p.process(i),k.process(i),f.process(i),g.process(i),i.isProcessing=!1,n&&t&&(c=!1,e(m))},v=()=>{n=!0,c=!0,i.isProcessing||e(m)};return{schedule:Ai.reduce((b,I)=>{const w=s[I];return b[I]=(j,L=!1,M=!1)=>(n||v(),w.schedule(j,L,M)),b},{}),cancel:b=>{for(let I=0;I<Ai.length;I++)s[Ai[I]].cancel(b)},state:i,steps:s}}const{schedule:be,cancel:Vt,state:Te,steps:wb}=dq(typeof requestAnimationFrame<"u"?requestAnimationFrame:ut,!0);let VL;function R0e(){VL=void 0}const et={now:()=>(VL===void 0&&et.set(Te.isProcessing||Pt.useManualTiming?Te.timestamp:performance.now()),VL),set:e=>{VL=e,queueMicrotask(R0e)}},lq=e=>t=>typeof t=="string"&&t.startsWith(e),sC=lq("--"),F0e=lq("var(--"),dC=e=>F0e(e)?E0e.test(e.split("/*")[0].trim()):!1,E0e=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,$1={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ui={...$1,transform:e=>zt(0,1,e)},zi={...$1,default:1},ci=e=>Math.round(e*1e5)/1e5,lC=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function O0e(e){return e==null}const U0e=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,hC=(e,t)=>n=>!!(typeof n=="string"&&U0e.test(n)&&n.startsWith(e)||t&&!O0e(n)&&Object.prototype.hasOwnProperty.call(n,t)),hq=(e,t,n)=>c=>{if(typeof c!="string")return c;const[i,r,s,d]=c.match(lC);return{[e]:parseFloat(i),[t]:parseFloat(r),[n]:parseFloat(s),alpha:d!==void 0?parseFloat(d):1}},W0e=e=>zt(0,255,e),Cb={...$1,transform:e=>Math.round(W0e(e))},Gc={test:hC("rgb","red"),parse:hq("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:c=1})=>"rgba("+Cb.transform(e)+", "+Cb.transform(t)+", "+Cb.transform(n)+", "+ci(ui.transform(c))+")"};function G0e(e){let t="",n="",c="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),c=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),c=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,c+=c,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(c,16),alpha:i?parseInt(i,16)/255:1}}const Nw={test:hC("#"),parse:G0e,transform:Gc.transform},Mi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ot=Mi("deg"),wt=Mi("%"),ie=Mi("px"),K0e=Mi("vh"),Z0e=Mi("vw"),uj={...wt,parse:e=>wt.parse(e)/100,transform:e=>wt.transform(e*100)},m1={test:hC("hsl","hue"),parse:hq("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:c=1})=>"hsla("+Math.round(e)+", "+wt.transform(ci(t))+", "+wt.transform(ci(n))+", "+ci(ui.transform(c))+")"},Ae={test:e=>Gc.test(e)||Nw.test(e)||m1.test(e),parse:e=>Gc.test(e)?Gc.parse(e):m1.test(e)?m1.parse(e):Nw.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Gc.transform(e):m1.transform(e),getAnimatableNone:e=>{const t=Ae.parse(e);return t.alpha=0,Ae.transform(t)}},X0e=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Y0e(e){return isNaN(e)&&typeof e=="string"&&(e.match(lC)?.length||0)+(e.match(X0e)?.length||0)>0}const uq="number",pq="color",J0e="var",Q0e="var(",pj="${}",ele=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function pi(e){const t=e.toString(),n=[],c={color:[],number:[],var:[]},i=[];let r=0;const d=t.replace(ele,l=>(Ae.test(l)?(c.color.push(r),i.push(pq),n.push(Ae.parse(l))):l.startsWith(Q0e)?(c.var.push(r),i.push(J0e),n.push(l)):(c.number.push(r),i.push(uq),n.push(parseFloat(l))),++r,pj)).split(pj);return{values:n,split:d,indexes:c,types:i}}function yq(e){return pi(e).values}function kq(e){const{split:t,types:n}=pi(e),c=t.length;return i=>{let r="";for(let s=0;s<c;s++)if(r+=t[s],i[s]!==void 0){const d=n[s];d===uq?r+=ci(i[s]):d===pq?r+=Ae.transform(i[s]):r+=i[s]}return r}}const tle=e=>typeof e=="number"?0:Ae.test(e)?Ae.getAnimatableNone(e):e;function ale(e){const t=yq(e);return kq(e)(t.map(tle))}const Jt={test:Y0e,parse:yq,createTransformer:kq,getAnimatableNone:ale};function jb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nle({hue:e,saturation:t,lightness:n,alpha:c}){e/=360,t/=100,n/=100;let i=0,r=0,s=0;if(!t)i=r=s=n;else{const d=n<.5?n*(1+t):n+t-n*t,l=2*n-d;i=jb(l,d,e+1/3),r=jb(l,d,e),s=jb(l,d,e-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(s*255),alpha:c}}function UL(e,t){return n=>n>0?t:e}const we=(e,t,n)=>e+(t-e)*n,Nb=(e,t,n)=>{const c=e*e,i=n*(t*t-c)+c;return i<0?0:Math.sqrt(i)},ole=[Nw,Gc,m1],cle=e=>ole.find(t=>t.test(e));function yj(e){const t=cle(e);if(S1(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===m1&&(n=nle(n)),n}const kj=(e,t)=>{const n=yj(e),c=yj(t);if(!n||!c)return UL(e,t);const i={...n};return r=>(i.red=Nb(n.red,c.red,r),i.green=Nb(n.green,c.green,r),i.blue=Nb(n.blue,c.blue,r),i.alpha=we(n.alpha,c.alpha,r),Gc.transform(i))},Sw=new Set(["none","hidden"]);function ile(e,t){return Sw.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function rle(e,t){return n=>we(e,t,n)}function uC(e){return typeof e=="number"?rle:typeof e=="string"?dC(e)?UL:Ae.test(e)?kj:lle:Array.isArray(e)?mq:typeof e=="object"?Ae.test(e)?kj:sle:UL}function mq(e,t){const n=[...e],c=n.length,i=e.map((r,s)=>uC(r)(r,t[s]));return r=>{for(let s=0;s<c;s++)n[s]=i[s](r);return n}}function sle(e,t){const n={...e,...t},c={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(c[i]=uC(e[i])(e[i],t[i]));return i=>{for(const r in c)n[r]=c[r](i);return n}}function dle(e,t){const n=[],c={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const r=t.types[i],s=e.indexes[r][c[r]],d=e.values[s]??0;n[i]=d,c[r]++}return n}const lle=(e,t)=>{const n=Jt.createTransformer(t),c=pi(e),i=pi(t);return c.indexes.var.length===i.indexes.var.length&&c.indexes.color.length===i.indexes.color.length&&c.indexes.number.length>=i.indexes.number.length?Sw.has(e)&&!i.values.length||Sw.has(t)&&!c.values.length?ile(e,t):xi(mq(dle(c,i),i.values),n):(S1(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),UL(e,t))};function fq(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?we(e,t,n):uC(e)(e,t)}const hle=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>be.update(t,n),stop:()=>Vt(t),now:()=>Te.isProcessing?Te.timestamp:et.now()}},gq=(e,t,n=10)=>{let c="";const i=Math.max(Math.round(t/n),2);for(let r=0;r<i;r++)c+=Math.round(e(r/(i-1))*1e4)/1e4+", ";return`linear(${c.substring(0,c.length-2)})`},WL=2e4;function pC(e){let t=0;const n=50;let c=e.next(t);for(;!c.done&&t<WL;)t+=n,c=e.next(t);return t>=WL?1/0:t}function ule(e,t=100,n){const c=n({...e,keyframes:[0,t]}),i=Math.min(pC(c),WL);return{type:"keyframes",ease:r=>c.next(i*r).value/t,duration:lt(i)}}const ple=5;function vq(e,t,n){const c=Math.max(t-ple,0);return J$(n-e(c),t-c)}const Ce={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Sb=.001;function yle({duration:e=Ce.duration,bounce:t=Ce.bounce,velocity:n=Ce.velocity,mass:c=Ce.mass}){let i,r;S1(e<=ft(Ce.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=zt(Ce.minDamping,Ce.maxDamping,s),e=zt(Ce.minDuration,Ce.maxDuration,lt(e)),s<1?(i=h=>{const u=h*s,p=u*e,k=u-n,f=$w(h,s),g=Math.exp(-p);return Sb-k/f*g},r=h=>{const p=h*s*e,k=p*n+n,f=Math.pow(s,2)*Math.pow(h,2)*e,g=Math.exp(-p),m=$w(Math.pow(h,2),s);return(-i(h)+Sb>0?-1:1)*((k-f)*g)/m}):(i=h=>{const u=Math.exp(-h*e),p=(h-n)*e+1;return-Sb+u*p},r=h=>{const u=Math.exp(-h*e),p=(n-h)*(e*e);return u*p});const d=5/e,l=mle(i,r,d);if(e=ft(e),isNaN(l))return{stiffness:Ce.stiffness,damping:Ce.damping,duration:e};{const h=Math.pow(l,2)*c;return{stiffness:h,damping:s*2*Math.sqrt(c*h),duration:e}}}const kle=12;function mle(e,t,n){let c=n;for(let i=1;i<kle;i++)c=c-e(c)/t(c);return c}function $w(e,t){return e*Math.sqrt(1-t*t)}const fle=["duration","bounce"],gle=["stiffness","damping","mass"];function mj(e,t){return t.some(n=>e[n]!==void 0)}function vle(e){let t={velocity:Ce.velocity,stiffness:Ce.stiffness,damping:Ce.damping,mass:Ce.mass,isResolvedFromDuration:!1,...e};if(!mj(e,gle)&&mj(e,fle))if(e.visualDuration){const n=e.visualDuration,c=2*Math.PI/(n*1.2),i=c*c,r=2*zt(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Ce.mass,stiffness:i,damping:r}}else{const n=yle(e);t={...t,...n,mass:Ce.mass},t.isResolvedFromDuration=!0}return t}function GL(e=Ce.visualDuration,t=Ce.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:c,restDelta:i}=n;const r=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],d={done:!1,value:r},{stiffness:l,damping:h,mass:u,duration:p,velocity:k,isResolvedFromDuration:f}=vle({...n,velocity:-lt(n.velocity||0)}),g=k||0,m=h/(2*Math.sqrt(l*u)),v=s-r,_=lt(Math.sqrt(l/u)),x=Math.abs(v)<5;c||(c=x?Ce.restSpeed.granular:Ce.restSpeed.default),i||(i=x?Ce.restDelta.granular:Ce.restDelta.default);let b;if(m<1){const w=$w(_,m);b=j=>{const L=Math.exp(-m*_*j);return s-L*((g+m*_*v)/w*Math.sin(w*j)+v*Math.cos(w*j))}}else if(m===1)b=w=>s-Math.exp(-_*w)*(v+(g+_*v)*w);else{const w=_*Math.sqrt(m*m-1);b=j=>{const L=Math.exp(-m*_*j),M=Math.min(w*j,300);return s-L*((g+m*_*v)*Math.sinh(M)+w*v*Math.cosh(M))/w}}const I={calculatedDuration:f&&p||null,next:w=>{const j=b(w);if(f)d.done=w>=p;else{let L=w===0?g:0;m<1&&(L=w===0?ft(g):vq(b,w,j));const M=Math.abs(L)<=c,S=Math.abs(s-j)<=i;d.done=M&&S}return d.value=d.done?s:j,d},toString:()=>{const w=Math.min(pC(I),WL),j=gq(L=>I.next(w*L).value,w,30);return w+"ms "+j},toTransition:()=>{}};return I}GL.applyToOptions=e=>{const t=ule(e,100,GL);return e.ease=t.ease,e.duration=ft(t.duration),e.type="keyframes",e};function qw({keyframes:e,velocity:t=0,power:n=.8,timeConstant:c=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:s,min:d,max:l,restDelta:h=.5,restSpeed:u}){const p=e[0],k={done:!1,value:p},f=M=>d!==void 0&&M<d||l!==void 0&&M>l,g=M=>d===void 0?l:l===void 0||Math.abs(d-M)<Math.abs(l-M)?d:l;let m=n*t;const v=p+m,_=s===void 0?v:s(v);_!==v&&(m=_-p);const x=M=>-m*Math.exp(-M/c),b=M=>_+x(M),I=M=>{const S=x(M),C=b(M);k.done=Math.abs(S)<=h,k.value=k.done?_:C};let w,j;const L=M=>{f(k.value)&&(w=M,j=GL({keyframes:[k.value,g(k.value)],velocity:vq(b,M,k.value),damping:i,stiffness:r,restDelta:h,restSpeed:u}))};return L(0),{calculatedDuration:null,next:M=>{let S=!1;return!j&&w===void 0&&(S=!0,I(M),L(M)),w!==void 0&&M>=w?j.next(M-w):(!S&&I(M),k)}}}function xle(e,t,n){const c=[],i=n||Pt.mix||fq,r=e.length-1;for(let s=0;s<r;s++){let d=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||ut:t;d=xi(l,d)}c.push(d)}return c}function xq(e,t,{clamp:n=!0,ease:c,mixer:i}={}){const r=e.length;if(gt(r===t.length,"Both input and output ranges must be the same length","range-length"),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=xle(t,c,i),l=d.length,h=u=>{if(s&&u<e[0])return t[0];let p=0;if(l>1)for(;p<e.length-2&&!(u<e[p+1]);p++);const k=hi(e[p],e[p+1],u);return d[p](k)};return n?u=>h(zt(e[0],e[r-1],u)):h}function _le(e,t){const n=e[e.length-1];for(let c=1;c<=t;c++){const i=hi(0,t,c);e.push(we(n,1,i))}}function Mle(e){const t=[0];return _le(t,e.length-1),t}function Lle(e,t){return e.map(n=>n*t)}function ble(e,t){return e.map(()=>t||rq).splice(0,e.length-1)}function f1({duration:e=300,keyframes:t,times:n,ease:c="easeInOut"}){const i=T0e(c)?c.map(hj):hj(c),r={done:!1,value:t[0]},s=Lle(n&&n.length===t.length?n:Mle(t),e),d=xq(s,t,{ease:Array.isArray(i)?i:ble(t,i)});return{calculatedDuration:e,next:l=>(r.value=d(l),r.done=l>=e,r)}}const Ile=e=>e!==null;function yC(e,{repeat:t,repeatType:n="loop"},c,i=1){const r=e.filter(Ile),d=i<0||t&&n!=="loop"&&t%2===1?0:r.length-1;return!d||c===void 0?r[d]:c}const wle={decay:qw,inertia:qw,tween:f1,keyframes:f1,spring:GL};function _q(e){typeof e.type=="string"&&(e.type=wle[e.type])}class kC{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Cle=e=>e/100;class mC extends kC{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==et.now()&&this.tick(et.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;_q(t);const{type:n=f1,repeat:c=0,repeatDelay:i=0,repeatType:r,velocity:s=0}=t;let{keyframes:d}=t;const l=n||f1;process.env.NODE_ENV!=="production"&&l!==f1&>(d.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${d}`,"spring-two-frames"),l!==f1&&typeof d[0]!="number"&&(this.mixKeyframes=xi(Cle,fq(d[0],d[1])),d=[0,100]);const h=l({...t,keyframes:d});r==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...d].reverse(),velocity:-s})),h.calculatedDuration===null&&(h.calculatedDuration=pC(h));const{calculatedDuration:u}=h;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(c+1)-i,this.generator=h}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:c,totalDuration:i,mixKeyframes:r,mirroredGenerator:s,resolvedDuration:d,calculatedDuration:l}=this;if(this.startTime===null)return c.next(0);const{delay:h=0,keyframes:u,repeat:p,repeatType:k,repeatDelay:f,type:g,onUpdate:m,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const _=this.currentTime-h*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?_<0:_>i;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let b=this.currentTime,I=c;if(p){const M=Math.min(this.currentTime,i)/d;let S=Math.floor(M),C=M%1;!C&&M>=1&&(C=1),C===1&&S--,S=Math.min(S,p+1),!!(S%2)&&(k==="reverse"?(C=1-C,f&&(C-=f/d)):k==="mirror"&&(I=s)),b=zt(0,1,C)*d}const w=x?{done:!1,value:u[0]}:I.next(b);r&&(w.value=r(w.value));let{done:j}=w;!x&&l!==null&&(j=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&j);return L&&g!==qw&&(w.value=yC(u,this.options,v,this.speed)),m&&m(w.value),L&&this.finish(),w}then(t,n){return this.finished.then(t,n)}get duration(){return lt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+lt(t)}get time(){return lt(this.currentTime)}set time(t){t=ft(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(et.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=lt(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=hle,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const c=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=c):this.holdTime!==null?this.startTime=c-this.holdTime:this.startTime||(this.startTime=n??c),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(et.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function jle(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Kc=e=>e*180/Math.PI,Aw=e=>{const t=Kc(Math.atan2(e[1],e[0]));return zw(t)},Nle={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Aw,rotateZ:Aw,skewX:e=>Kc(Math.atan(e[1])),skewY:e=>Kc(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},zw=e=>(e=e%360,e<0&&(e+=360),e),fj=Aw,gj=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),vj=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Sle={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:gj,scaleY:vj,scale:e=>(gj(e)+vj(e))/2,rotateX:e=>zw(Kc(Math.atan2(e[6],e[5]))),rotateY:e=>zw(Kc(Math.atan2(-e[2],e[0]))),rotateZ:fj,rotate:fj,skewX:e=>Kc(Math.atan(e[4])),skewY:e=>Kc(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Pw(e){return e.includes("scale")?1:0}function Vw(e,t){if(!e||e==="none")return Pw(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let c,i;if(n)c=Sle,i=n;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);c=Nle,i=d}if(!i)return Pw(t);const r=c[t],s=i[1].split(",").map(qle);return typeof r=="function"?r(s):s[r]}const $le=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Vw(n,t)};function qle(e){return parseFloat(e.trim())}const q1=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],A1=new Set(q1),xj=e=>e===$1||e===ie,Ale=new Set(["x","y","z"]),zle=q1.filter(e=>!Ale.has(e));function Ple(e){const t=[];return zle.forEach(n=>{const c=e.getValue(n);c!==void 0&&(t.push([n,c.get()]),c.set(n.startsWith("scale")?1:0))}),t}const e1={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Vw(t,"x"),y:(e,{transform:t})=>Vw(t,"y")};e1.translateX=e1.x;e1.translateY=e1.y;const t1=new Set;let Tw=!1,Dw=!1,Hw=!1;function Mq(){if(Dw){const e=Array.from(t1).filter(c=>c.needsMeasurement),t=new Set(e.map(c=>c.element)),n=new Map;t.forEach(c=>{const i=Ple(c);i.length&&(n.set(c,i),c.render())}),e.forEach(c=>c.measureInitialState()),t.forEach(c=>{c.render();const i=n.get(c);i&&i.forEach(([r,s])=>{c.getValue(r)?.set(s)})}),e.forEach(c=>c.measureEndState()),e.forEach(c=>{c.suspendedScrollY!==void 0&&window.scrollTo(0,c.suspendedScrollY)})}Dw=!1,Tw=!1,t1.forEach(e=>e.complete(Hw)),t1.clear()}function Lq(){t1.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Dw=!0)})}function Vle(){Hw=!0,Lq(),Mq(),Hw=!1}class fC{constructor(t,n,c,i,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=c,this.motionValue=i,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(t1.add(this),Tw||(Tw=!0,be.read(Lq),be.resolveKeyframes(Mq))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:c,motionValue:i}=this;if(t[0]===null){const r=i?.get(),s=t[t.length-1];if(r!==void 0)t[0]=r;else if(c&&n){const d=c.readValue(n,s);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=s),i&&r===void 0&&i.set(t[0])}jle(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),t1.delete(this)}cancel(){this.state==="scheduled"&&(t1.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Tle=e=>e.startsWith("--");function Dle(e,t,n){Tle(t)?e.style.setProperty(t,n):e.style[t]=n}const Hle=nC(()=>window.ScrollTimeline!==void 0),Ble={};function Rle(e,t){const n=nC(e);return()=>Ble[t]??n()}const bq=Rle(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),F1=([e,t,n,c])=>`cubic-bezier(${e}, ${t}, ${n}, ${c})`,_j={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:F1([0,.65,.55,1]),circOut:F1([.55,0,1,.45]),backIn:F1([.31,.01,.66,-.59]),backOut:F1([.33,1.53,.69,.99])};function Iq(e,t){if(e)return typeof e=="function"?bq()?gq(e,t):"ease-out":sq(e)?F1(e):Array.isArray(e)?e.map(n=>Iq(n,t)||_j.easeOut):_j[e]}function Fle(e,t,n,{delay:c=0,duration:i=300,repeat:r=0,repeatType:s="loop",ease:d="easeOut",times:l}={},h=void 0){const u={[t]:n};l&&(u.offset=l);const p=Iq(d,i);Array.isArray(p)&&(u.easing=p);const k={delay:c,duration:i,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:r+1,direction:s==="reverse"?"alternate":"normal"};return h&&(k.pseudoElement=h),e.animate(u,k)}function wq(e){return typeof e=="function"&&"applyToOptions"in e}function Ele({type:e,...t}){return wq(e)&&bq()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Ole extends kC{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:c,keyframes:i,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:d,onComplete:l}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,gt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const h=Ele(t);this.animation=Fle(n,c,i,h,r),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const u=yC(i,this.options,d,this.speed);this.updateMotionValue?this.updateMotionValue(u):Dle(n,c,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return lt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+lt(t)}get time(){return lt(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ft(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Hle()?(this.animation.timeline=t,ut):n(this)}}const Cq={anticipate:oq,backInOut:nq,circInOut:iq};function Ule(e){return e in Cq}function Wle(e){typeof e.ease=="string"&&Ule(e.ease)&&(e.ease=Cq[e.ease])}const Mj=10;class Gle extends Ole{constructor(t){Wle(t),_q(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:c,onComplete:i,element:r,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const d=new mC({...s,autoplay:!1}),l=ft(this.finishedTime??this.time);n.setWithVelocity(d.sample(l-Mj).value,d.sample(l).value,Mj),d.stop()}}const Lj=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Jt.test(e)||e==="0")&&!e.startsWith("url("));function Kle(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Zle(e,t,n,c){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const r=e[e.length-1],s=Lj(i,t),d=Lj(r,t);return S1(s===d,`You are trying to animate ${t} from "${i}" to "${r}". "${s?r:i}" is not an animatable value.`,"value-not-animatable"),!s||!d?!1:Kle(e)||(n==="spring"||wq(n))&&c}function Bw(e){e.duration=0,e.type="keyframes"}const Xle=new Set(["opacity","clipPath","filter","transform"]),Yle=nC(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Jle(e){const{motionValue:t,name:n,repeatDelay:c,repeatType:i,damping:r,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:h}=t.owner.getProps();return Yle()&&n&&Xle.has(n)&&(n!=="transform"||!h)&&!l&&!c&&i!=="mirror"&&r!==0&&s!=="inertia"}const Qle=40;class ehe extends kC{constructor({autoplay:t=!0,delay:n=0,type:c="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:s="loop",keyframes:d,name:l,motionValue:h,element:u,...p}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=et.now();const k={autoplay:t,delay:n,type:c,repeat:i,repeatDelay:r,repeatType:s,name:l,motionValue:h,element:u,...p},f=u?.KeyframeResolver||fC;this.keyframeResolver=new f(d,(g,m,v)=>this.onKeyframesResolved(g,m,k,!v),l,h,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,c,i){this.keyframeResolver=void 0;const{name:r,type:s,velocity:d,delay:l,isHandoff:h,onUpdate:u}=c;this.resolvedAt=et.now(),Zle(t,r,s,d)||((Pt.instantAnimations||!l)&&u?.(yC(t,c,n)),t[0]=t[t.length-1],Bw(c),c.repeat=0);const k={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Qle?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...c,keyframes:t},f=!h&&Jle(k)?new Gle({...k,element:k.motionValue.owner.current}):new mC(k);f.finished.then(()=>this.notifyFinished()).catch(ut),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Vle()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const the=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ahe(e){const t=the.exec(e);if(!t)return[,];const[,n,c,i]=t;return[`--${n??c}`,i]}const nhe=4;function jq(e,t,n=1){gt(n<=nhe,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[c,i]=ahe(e);if(!c)return;const r=window.getComputedStyle(t).getPropertyValue(c);if(r){const s=r.trim();return Z$(s)?parseFloat(s):s}return dC(i)?jq(i,t,n+1):i}function gC(e,t){return e?.[t]??e?.default??e}const Nq=new Set(["width","height","top","left","right","bottom",...q1]),ohe={test:e=>e==="auto",parse:e=>e},Sq=e=>t=>t.test(e),$q=[$1,ie,wt,Ot,Z0e,K0e,ohe],bj=e=>$q.find(Sq(e));function che(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Y$(e):!0}const ihe=new Set(["brightness","contrast","saturate","opacity"]);function rhe(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[c]=n.match(lC)||[];if(!c)return e;const i=n.replace(c,"");let r=ihe.has(t)?1:0;return c!==n&&(r*=100),t+"("+r+i+")"}const she=/\b([a-z-]*)\(.*?\)/gu,Rw={...Jt,getAnimatableNone:e=>{const t=e.match(she);return t?t.map(rhe).join(" "):e}},Ij={...$1,transform:Math.round},dhe={rotate:Ot,rotateX:Ot,rotateY:Ot,rotateZ:Ot,scale:zi,scaleX:zi,scaleY:zi,scaleZ:zi,skew:Ot,skewX:Ot,skewY:Ot,distance:ie,translateX:ie,translateY:ie,translateZ:ie,x:ie,y:ie,z:ie,perspective:ie,transformPerspective:ie,opacity:ui,originX:uj,originY:uj,originZ:ie},vC={borderWidth:ie,borderTopWidth:ie,borderRightWidth:ie,borderBottomWidth:ie,borderLeftWidth:ie,borderRadius:ie,radius:ie,borderTopLeftRadius:ie,borderTopRightRadius:ie,borderBottomRightRadius:ie,borderBottomLeftRadius:ie,width:ie,maxWidth:ie,height:ie,maxHeight:ie,top:ie,right:ie,bottom:ie,left:ie,padding:ie,paddingTop:ie,paddingRight:ie,paddingBottom:ie,paddingLeft:ie,margin:ie,marginTop:ie,marginRight:ie,marginBottom:ie,marginLeft:ie,backgroundPositionX:ie,backgroundPositionY:ie,...dhe,zIndex:Ij,fillOpacity:ui,strokeOpacity:ui,numOctaves:Ij},lhe={...vC,color:Ae,backgroundColor:Ae,outlineColor:Ae,fill:Ae,stroke:Ae,borderColor:Ae,borderTopColor:Ae,borderRightColor:Ae,borderBottomColor:Ae,borderLeftColor:Ae,filter:Rw,WebkitFilter:Rw},qq=e=>lhe[e];function Aq(e,t){let n=qq(e);return n!==Rw&&(n=Jt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const hhe=new Set(["auto","none","0"]);function uhe(e,t,n){let c=0,i;for(;c<e.length&&!i;){const r=e[c];typeof r=="string"&&!hhe.has(r)&&pi(r).values.length&&(i=e[c]),c++}if(i&&n)for(const r of t)e[r]=Aq(n,i)}class phe extends fC{constructor(t,n,c,i,r){super(t,n,c,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:c}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let h=t[l];if(typeof h=="string"&&(h=h.trim(),dC(h))){const u=jq(h,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Nq.has(c)||t.length!==2)return;const[i,r]=t,s=bj(i),d=bj(r);if(s!==d)if(xj(s)&&xj(d))for(let l=0;l<t.length;l++){const h=t[l];typeof h=="string"&&(t[l]=parseFloat(h))}else e1[c]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,c=[];for(let i=0;i<t.length;i++)(t[i]===null||che(t[i]))&&c.push(i);c.length&&uhe(t,c,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:c}=this;if(!t||!t.current)return;c==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=e1[c](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(c,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:c}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=c.length-1,s=c[r];c[r]=e1[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([d,l])=>{t.getValue(d).set(l)}),this.resolveNoneKeyframes()}}function yhe(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let c=document;const i=n?.[e]??c.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const zq=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Pq(e){return X$(e)&&"offsetHeight"in e}const wj=30,khe=e=>!isNaN(parseFloat(e)),ii={current:void 0};class mhe{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=c=>{const i=et.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(c),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=et.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=khe(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&cC(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new oC);const c=this.events[t].add(n);return t==="change"?()=>{c(),be.read(()=>{this.events.change.getSize()||this.stop()})}:c}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,c){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-c}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return ii.current&&ii.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=et.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>wj)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,wj);return J$(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function a1(e,t){return new mhe(e,t)}const{schedule:xC}=dq(queueMicrotask,!1),mt={x:!1,y:!1};function Vq(){return mt.x||mt.y}function fhe(e){return e==="x"||e==="y"?mt[e]?null:(mt[e]=!0,()=>{mt[e]=!1}):mt.x||mt.y?null:(mt.x=mt.y=!0,()=>{mt.x=mt.y=!1})}function Tq(e,t){const n=yhe(e),c=new AbortController,i={passive:!0,...t,signal:c.signal};return[n,i,()=>c.abort()]}function Cj(e){return!(e.pointerType==="touch"||Vq())}function ghe(e,t,n={}){const[c,i,r]=Tq(e,n),s=d=>{if(!Cj(d))return;const{target:l}=d,h=t(l,d);if(typeof h!="function"||!l)return;const u=p=>{Cj(p)&&(h(p),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,i)};return c.forEach(d=>{d.addEventListener("pointerenter",s,i)}),r}const Dq=(e,t)=>t?e===t?!0:Dq(e,t.parentElement):!1,_C=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,vhe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function xhe(e){return vhe.has(e.tagName)||e.tabIndex!==-1}const TL=new WeakSet;function jj(e){return t=>{t.key==="Enter"&&e(t)}}function $b(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const _he=(e,t)=>{const n=e.currentTarget;if(!n)return;const c=jj(()=>{if(TL.has(n))return;$b(n,"down");const i=jj(()=>{$b(n,"up")}),r=()=>$b(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",r,t)});n.addEventListener("keydown",c,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",c),t)};function Nj(e){return _C(e)&&!Vq()}function Mhe(e,t,n={}){const[c,i,r]=Tq(e,n),s=d=>{const l=d.currentTarget;if(!Nj(d))return;TL.add(l);const h=t(l,d),u=(f,g)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",k),TL.has(l)&&TL.delete(l),Nj(f)&&typeof h=="function"&&h(f,{success:g})},p=f=>{u(f,l===window||l===document||n.useGlobalTarget||Dq(l,f.target))},k=f=>{u(f,!1)};window.addEventListener("pointerup",p,i),window.addEventListener("pointercancel",k,i)};return c.forEach(d=>{(n.useGlobalTarget?window:d).addEventListener("pointerdown",s,i),Pq(d)&&(d.addEventListener("focus",h=>_he(h,i)),!xhe(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),r}function Hq(e){return X$(e)&&"ownerSVGElement"in e}function Lhe(e){return Hq(e)&&e.tagName==="svg"}function bhe(...e){const t=!Array.isArray(e[0]),n=t?0:-1,c=e[0+n],i=e[1+n],r=e[2+n],s=e[3+n],d=xq(i,r,s);return t?d(c):d}const De=e=>!!(e&&e.getVelocity),Ihe=[...$q,Ae,Jt],whe=e=>Ihe.find(Sq(e)),ab=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Sj(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Che(...e){return t=>{let n=!1;const c=e.map(i=>{const r=Sj(i,t);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let i=0;i<c.length;i++){const r=c[i];typeof r=="function"?r():Sj(e[i],null)}}}}function jhe(...e){return ee.useCallback(Che(...e),e)}class Nhe extends ee.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const c=n.offsetParent,i=Pq(c)&&c.offsetWidth||0,r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft,r.right=i-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function She({children:e,isPresent:t,anchorX:n,root:c}){const i=y.useId(),r=y.useRef(null),s=y.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=y.useContext(ab),l=jhe(r,e?.ref);return y.useInsertionEffect(()=>{const{width:h,height:u,top:p,left:k,right:f}=s.current;if(t||!r.current||!h||!u)return;const g=n==="left"?`left: ${k}`:`right: ${f}`;r.current.dataset.motionPopId=i;const m=document.createElement("style");d&&(m.nonce=d);const v=c??document.head;return v.appendChild(m),m.sheet&&m.sheet.insertRule(`
|
|
8265
8265
|
[data-motion-pop-id="${i}"] {
|
|
8266
8266
|
position: absolute !important;
|
|
8267
8267
|
width: ${h}px !important;
|
|
@@ -8269,7 +8269,7 @@
|
|
|
8269
8269
|
${g}px !important;
|
|
8270
8270
|
top: ${p}px !important;
|
|
8271
8271
|
}
|
|
8272
|
-
`),()=>{v.contains(m)&&v.removeChild(m)}},[t]),o.jsx(Nhe,{isPresent:t,childRef:r,sizeRef:s,children:ee.cloneElement(e,{ref:l})})}const $he=({children:e,initial:t,isPresent:n,onExitComplete:c,custom:i,presenceAffectsLayout:r,mode:s,anchorX:d,root:l})=>{const h=Qt(qhe),u=y.useId();let p=!0,k=y.useMemo(()=>(p=!1,{id:u,initial:t,isPresent:n,custom:i,onExitComplete:f=>{h.set(f,!0);for(const g of h.values())if(!g)return;c&&c()},register:f=>(h.set(f,!1),()=>h.delete(f))}),[n,h,c]);return r&&p&&(k={...k}),y.useMemo(()=>{h.forEach((f,g)=>h.set(g,!1))},[n]),ee.useEffect(()=>{!n&&!h.size&&c&&c()},[n]),s==="popLayout"&&(e=o.jsx(She,{isPresent:n,anchorX:d,root:l,children:e})),o.jsx(tb.Provider,{value:k,children:e})};function qhe(){return new Map}function Bq(e=!0){const t=y.useContext(tb);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:c,register:i}=t,r=y.useId();y.useEffect(()=>{if(e)return i(r)},[e]);const s=y.useCallback(()=>e&&c&&c(r),[r,c,e]);return!n&&c?[!1,s]:[!0]}const Pi=e=>e.key||"";function $j(e){const t=[];return y.Children.forEach(e,n=>{y.isValidElement(n)&&t.push(n)}),t}const Ahe=({children:e,custom:t,initial:n=!0,onExitComplete:c,presenceAffectsLayout:i=!0,mode:r="sync",propagate:s=!1,anchorX:d="left",root:l})=>{const[h,u]=Bq(s),p=y.useMemo(()=>$j(e),[e]),k=s&&!h?[]:p.map(Pi),f=y.useRef(!0),g=y.useRef(p),m=Qt(()=>new Map),[v,_]=y.useState(p),[x,b]=y.useState(p);eC(()=>{f.current=!1,g.current=p;for(let j=0;j<x.length;j++){const M=Pi(x[j]);k.includes(M)?m.delete(M):m.get(M)!==!0&&m.set(M,!1)}},[x,k.length,k.join("-")]);const I=[];if(p!==v){let j=[...p];for(let M=0;M<x.length;M++){const L=x[M],S=Pi(L);k.includes(S)||(j.splice(M,0,L),I.push(L))}return r==="wait"&&I.length&&(j=I),b($j(j)),_(p),null}process.env.NODE_ENV!=="production"&&r==="wait"&&x.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:w}=y.useContext(Jw);return o.jsx(o.Fragment,{children:x.map(j=>{const M=Pi(j),L=s&&!h?!1:p===x||k.includes(M),S=()=>{if(m.has(M))m.set(M,!0);else return;let C=!0;m.forEach(N=>{N||(C=!1)}),C&&(w?.(),b(g.current),s&&u?.(),c&&c())};return o.jsx($he,{isPresent:L,initial:!f.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:r,root:l,onExitComplete:L?void 0:S,anchorX:d,children:j},M)})})},Rq=y.createContext({strict:!1}),qj={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},N1={};for(const e in qj)N1[e]={isEnabled:t=>qj[e].some(n=>!!t[n])};function zhe(e){for(const t in e)N1[t]={...N1[t],...e[t]}}const Phe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function KL(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Phe.has(e)}let Fq=e=>!KL(e);function Vhe(e){typeof e=="function"&&(Fq=t=>t.startsWith("on")?!KL(t):e(t))}try{Vhe(require("@emotion/is-prop-valid").default)}catch{}function The(e,t,n){const c={};for(const i in e)i==="values"&&typeof e.values=="object"||(Fq(i)||n===!0&&KL(i)||!t&&!KL(i)||e.draggable&&i.startsWith("onDrag"))&&(c[i]=e[i]);return c}const nb=y.createContext({});function ob(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function yi(e){return typeof e=="string"||Array.isArray(e)}const MC=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],LC=["initial",...MC];function cb(e){return ob(e.animate)||LC.some(t=>yi(e[t]))}function Eq(e){return!!(cb(e)||e.variants)}function Dhe(e,t){if(cb(e)){const{initial:n,animate:c}=e;return{initial:n===!1||yi(n)?n:void 0,animate:yi(c)?c:void 0}}return e.inherit!==!1?t:{}}function Hhe(e){const{initial:t,animate:n}=Dhe(e,y.useContext(nb));return y.useMemo(()=>({initial:t,animate:n}),[Aj(t),Aj(n)])}function Aj(e){return Array.isArray(e)?e.join(" "):e}const ki={};function Bhe(e){for(const t in e)ki[t]=e[t],sC(t)&&(ki[t].isCSSVariable=!0)}function Oq(e,{layout:t,layoutId:n}){return A1.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ki[e]||e==="opacity")}const Rhe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Fhe=q1.length;function Ehe(e,t,n){let c="",i=!0;for(let r=0;r<Fhe;r++){const s=q1[r],d=e[s];if(d===void 0)continue;let l=!0;if(typeof d=="number"?l=d===(s.startsWith("scale")?1:0):l=parseFloat(d)===0,!l||n){const h=zq(d,vC[s]);if(!l){i=!1;const u=Rhe[s]||s;c+=`${u}(${h}) `}n&&(t[s]=h)}}return c=c.trim(),n?c=n(t,i?"":c):i&&(c="none"),c}function bC(e,t,n){const{style:c,vars:i,transformOrigin:r}=e;let s=!1,d=!1;for(const l in t){const h=t[l];if(A1.has(l)){s=!0;continue}else if(sC(l)){i[l]=h;continue}else{const u=zq(h,vC[l]);l.startsWith("origin")?(d=!0,r[l]=u):c[l]=u}}if(t.transform||(s||n?c.transform=Ehe(t,e.transform,n):c.transform&&(c.transform="none")),d){const{originX:l="50%",originY:h="50%",originZ:u=0}=r;c.transformOrigin=`${l} ${h} ${u}`}}const IC=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Uq(e,t,n){for(const c in t)!De(t[c])&&!Oq(c,n)&&(e[c]=t[c])}function Ohe({transformTemplate:e},t){return y.useMemo(()=>{const n=IC();return bC(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Uhe(e,t){const n=e.style||{},c={};return Uq(c,n,e),Object.assign(c,Ohe(e,t)),c}function Whe(e,t){const n={},c=Uhe(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,c.userSelect=c.WebkitUserSelect=c.WebkitTouchCallout="none",c.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=c,n}const Ghe={offset:"stroke-dashoffset",array:"stroke-dasharray"},Khe={offset:"strokeDashoffset",array:"strokeDasharray"};function Zhe(e,t,n=1,c=0,i=!0){e.pathLength=1;const r=i?Ghe:Khe;e[r.offset]=ie.transform(-c);const s=ie.transform(t),d=ie.transform(n);e[r.array]=`${s} ${d}`}function Wq(e,{attrX:t,attrY:n,attrScale:c,pathLength:i,pathSpacing:r=1,pathOffset:s=0,...d},l,h,u){if(bC(e,d,h),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:k}=e;p.transform&&(k.transform=p.transform,delete p.transform),(k.transform||p.transformOrigin)&&(k.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),k.transform&&(k.transformBox=u?.transformBox??"fill-box",delete p.transformBox),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),c!==void 0&&(p.scale=c),i!==void 0&&Zhe(p,i,r,s,!1)}const Gq=()=>({...IC(),attrs:{}}),Kq=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Xhe(e,t,n,c){const i=y.useMemo(()=>{const r=Gq();return Wq(r,t,Kq(c),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const r={};Uq(r,e.style,e),i.style={...r,...i.style}}return i}const Yhe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function wC(e){return typeof e!="string"||e.includes("-")?!1:!!(Yhe.indexOf(e)>-1||/[A-Z]/u.test(e))}function Jhe(e,t,n,{latestValues:c},i,r=!1){const d=(wC(e)?Xhe:Whe)(t,c,i,e),l=The(t,typeof e=="string",r),h=e!==y.Fragment?{...l,...d,ref:n}:{},{children:u}=t,p=y.useMemo(()=>De(u)?u.get():u,[u]);return y.createElement(e,{...h,children:p})}function zj(e){const t=[{},{}];return e?.values.forEach((n,c)=>{t[0][c]=n.get(),t[1][c]=n.getVelocity()}),t}function CC(e,t,n,c){if(typeof t=="function"){const[i,r]=zj(c);t=t(n!==void 0?n:e.custom,i,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,r]=zj(c);t=t(n!==void 0?n:e.custom,i,r)}return t}function DL(e){return De(e)?e.get():e}function Qhe({scrapeMotionValuesFromProps:e,createRenderState:t},n,c,i){return{latestValues:eue(n,c,i,e),renderState:t()}}function eue(e,t,n,c){const i={},r=c(e,{});for(const k in r)i[k]=DL(r[k]);let{initial:s,animate:d}=e;const l=cb(e),h=Eq(e);t&&h&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),d===void 0&&(d=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const p=u?d:s;if(p&&typeof p!="boolean"&&!ob(p)){const k=Array.isArray(p)?p:[p];for(let f=0;f<k.length;f++){const g=CC(e,k[f]);if(g){const{transitionEnd:m,transition:v,..._}=g;for(const x in _){let b=_[x];if(Array.isArray(b)){const I=u?b.length-1:0;b=b[I]}b!==null&&(i[x]=b)}for(const x in m)i[x]=m[x]}}}return i}const Zq=e=>(t,n)=>{const c=y.useContext(nb),i=y.useContext(tb),r=()=>Qhe(e,t,c,i);return n?r():Qt(r)};function jC(e,t,n){const{style:c}=e,i={};for(const r in c)(De(c[r])||t.style&&De(t.style[r])||Oq(r,e)||n?.getValue(r)?.liveStyle!==void 0)&&(i[r]=c[r]);return i}const tue=Zq({scrapeMotionValuesFromProps:jC,createRenderState:IC});function Xq(e,t,n){const c=jC(e,t,n);for(const i in e)if(De(e[i])||De(t[i])){const r=q1.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;c[r]=e[i]}return c}const aue=Zq({scrapeMotionValuesFromProps:Xq,createRenderState:Gq}),nue=Symbol.for("motionComponentSymbol");function g1(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function oue(e,t,n){return y.useCallback(c=>{c&&e.onMount&&e.onMount(c),t&&(c?t.mount(c):t.unmount()),n&&(typeof n=="function"?n(c):g1(n)&&(n.current=c))},[t])}const NC=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),cue="framerAppearId",Yq="data-"+NC(cue),Jq=y.createContext({});function iue(e,t,n,c,i){const{visualElement:r}=y.useContext(nb),s=y.useContext(Rq),d=y.useContext(tb),l=y.useContext(ab).reducedMotion,h=y.useRef(null);c=c||s.renderer,!h.current&&c&&(h.current=c(e,{visualState:t,parent:r,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:l}));const u=h.current,p=y.useContext(Jq);u&&!u.projection&&i&&(u.type==="html"||u.type==="svg")&&rue(h.current,n,i,p);const k=y.useRef(!1);y.useInsertionEffect(()=>{u&&k.current&&u.update(n,d)});const f=n[Yq],g=y.useRef(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return eC(()=>{u&&(k.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),g.current&&u.animationState&&u.animationState.animateChanges())}),y.useEffect(()=>{u&&(!g.current&&u.animationState&&u.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f)}),g.current=!1),u.enteringChildren=void 0)}),u}function rue(e,t,n,c){const{layoutId:i,layout:r,drag:s,dragConstraints:d,layoutScroll:l,layoutRoot:h,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Qq(e.parent)),e.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!s||d&&g1(d),visualElement:e,animationType:typeof r=="string"?r:"both",initialPromotionConfig:c,crossfade:u,layoutScroll:l,layoutRoot:h})}function Qq(e){if(e)return e.options.allowProjection!==!1?e.projection:Qq(e.parent)}function qb(e,{forwardMotionProps:t=!1}={},n,c){n&&zhe(n);const i=wC(e)?aue:tue;function r(d,l){let h;const u={...y.useContext(ab),...d,layoutId:sue(d)},{isStatic:p}=u,k=Hhe(d),f=i(d,p);if(!p&&Qw){due(u,n);const g=lue(u);h=g.MeasureLayout,k.visualElement=iue(e,f,u,c,g.ProjectionNode)}return o.jsxs(nb.Provider,{value:k,children:[h&&k.visualElement?o.jsx(h,{visualElement:k.visualElement,...u}):null,Jhe(e,d,oue(f,k.visualElement,l),f,p,t)]})}r.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=y.forwardRef(r);return s[nue]=e,s}function sue({layoutId:e}){const t=y.useContext(Jw).id;return t&&e!==void 0?t+"-"+e:e}function due(e,t){const n=y.useContext(Rq).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const c="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?S1(!1,c,"lazy-strict-mode"):gt(!1,c,"lazy-strict-mode")}}function lue(e){const{drag:t,layout:n}=N1;if(!t&&!n)return{};const c={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function hue(e,t){if(typeof Proxy>"u")return qb;const n=new Map,c=(r,s)=>qb(r,s,e,t),i=(r,s)=>(process.env.NODE_ENV!=="production"&&cC(!1,"motion() is deprecated. Use motion.create() instead."),c(r,s));return new Proxy(i,{get:(r,s)=>s==="create"?c:(n.has(s)||n.set(s,qb(s,void 0,e,t)),n.get(s))})}function eA({top:e,left:t,right:n,bottom:c}){return{x:{min:t,max:n},y:{min:e,max:c}}}function uue({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function pue(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),c=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:c.y,right:c.x}}function Ab(e){return e===void 0||e===1}function Fw({scale:e,scaleX:t,scaleY:n}){return!Ab(e)||!Ab(t)||!Ab(n)}function Uc(e){return Fw(e)||tA(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tA(e){return Pj(e.x)||Pj(e.y)}function Pj(e){return e&&e!=="0%"}function ZL(e,t,n){const c=e-n,i=t*c;return n+i}function Vj(e,t,n,c,i){return i!==void 0&&(e=ZL(e,i,c)),ZL(e,n,c)+t}function Ew(e,t=0,n=1,c,i){e.min=Vj(e.min,t,n,c,i),e.max=Vj(e.max,t,n,c,i)}function aA(e,{x:t,y:n}){Ew(e.x,t.translate,t.scale,t.originPoint),Ew(e.y,n.translate,n.scale,n.originPoint)}const Tj=.999999999999,Dj=1.0000000000001;function yue(e,t,n,c=!1){const i=n.length;if(!i)return;t.x=t.y=1;let r,s;for(let d=0;d<i;d++){r=n[d],s=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(c&&r.options.layoutScroll&&r.scroll&&r!==r.root&&x1(e,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,aA(e,s)),c&&Uc(r.latestValues)&&x1(e,r.latestValues))}t.x<Dj&&t.x>Tj&&(t.x=1),t.y<Dj&&t.y>Tj&&(t.y=1)}function v1(e,t){e.min=e.min+t,e.max=e.max+t}function Hj(e,t,n,c,i=.5){const r=we(e.min,e.max,i);Ew(e,t,n,r,c)}function x1(e,t){Hj(e.x,t.x,t.scaleX,t.scale,t.originX),Hj(e.y,t.y,t.scaleY,t.scale,t.originY)}function nA(e,t){return eA(pue(e.getBoundingClientRect(),t))}function kue(e,t,n){const c=nA(e,n),{scroll:i}=t;return i&&(v1(c.x,i.offset.x),v1(c.y,i.offset.y)),c}const Bj=()=>({translate:0,scale:1,origin:0,originPoint:0}),_1=()=>({x:Bj(),y:Bj()}),Rj=()=>({min:0,max:0}),$e=()=>({x:Rj(),y:Rj()}),Ow={current:null},oA={current:!1};function mue(){if(oA.current=!0,!!Qw)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ow.current=e.matches;e.addEventListener("change",t),t()}else Ow.current=!1}const fue=new WeakMap;function gue(e,t,n){for(const c in t){const i=t[c],r=n[c];if(De(i))e.addValue(c,i);else if(De(r))e.addValue(c,a1(i,{owner:e}));else if(r!==i)if(e.hasValue(c)){const s=e.getValue(c);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(c);e.addValue(c,a1(s!==void 0?s:i,{owner:e}))}}for(const c in n)t[c]===void 0&&e.removeValue(c);return t}const Fj=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class vue{scrapeMotionValuesFromProps(t,n,c){return{}}constructor({parent:t,props:n,presenceContext:c,reducedMotionConfig:i,blockInitialAnimation:r,visualState:s},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=fC,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const k=et.now();this.renderScheduledAt<k&&(this.renderScheduledAt=k,be.render(this.render,!1,!0))};const{latestValues:l,renderState:h}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=c,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=d,this.blockInitialAnimation=!!r,this.isControllingVariants=cb(n),this.isVariantNode=Eq(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const k in p){const f=p[k];l[k]!==void 0&&De(f)&&f.set(l[k])}}mount(t){this.current=t,fue.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,c)=>this.bindToMotionValue(c,n)),oA.current||mue(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ow.current,process.env.NODE_ENV!=="production"&&cC(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Vt(this.notifyUpdate),Vt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const c=A1.has(t);c&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&be.preRender(this.notifyUpdate),c&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),r&&r(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in N1){const n=N1[t];if(!n)continue;const{isEnabled:c,Feature:i}=n;if(!this.features[t]&&i&&c(this.props)&&(this.features[t]=new i(this)),this.features[t]){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$e()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let c=0;c<Fj.length;c++){const i=Fj[c];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,s=t[r];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=gue(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const c=this.values.get(t);n!==c&&(c&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let c=this.values.get(t);return c===void 0&&n!==void 0&&(c=a1(n===null?void 0:n,{owner:this}),this.addValue(t,c)),c}readValue(t,n){let c=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return c!=null&&(typeof c=="string"&&(Z$(c)||Y$(c))?c=parseFloat(c):!whe(c)&&Jt.test(n)&&(c=Aq(t,n)),this.setBaseTarget(t,De(c)?c.get():c)),De(c)?c.get():c}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let c;if(typeof n=="string"||typeof n=="object"){const r=CC(this.props,n,this.presenceContext?.custom);r&&(c=r[t])}if(n&&c!==void 0)return c;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!De(i)?i:this.initialValues[t]!==void 0&&c===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new oC),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){xC.render(this.render)}}class cA extends vue{constructor(){super(...arguments),this.KeyframeResolver=phe}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:c}){delete n[t],delete c[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;De(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function iA(e,{style:t,vars:n},c,i){const r=e.style;let s;for(s in t)r[s]=t[s];i?.applyProjectionStyles(r,c);for(s in n)r.setProperty(s,n[s])}function xue(e){return window.getComputedStyle(e)}class _ue extends cA{constructor(){super(...arguments),this.type="html",this.renderInstance=iA}readValueFromInstance(t,n){if(A1.has(n))return this.projection?.isProjecting?Pw(n):$le(t,n);{const c=xue(t),i=(sC(n)?c.getPropertyValue(n):c[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return nA(t,n)}build(t,n,c){bC(t,n,c.transformTemplate)}scrapeMotionValuesFromProps(t,n,c){return jC(t,n,c)}}const rA=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Mue(e,t,n,c){iA(e,t,void 0,c);for(const i in t.attrs)e.setAttribute(rA.has(i)?i:NC(i),t.attrs[i])}class Lue extends cA{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$e}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(A1.has(n)){const c=qq(n);return c&&c.default||0}return n=rA.has(n)?n:NC(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,c){return Xq(t,n,c)}build(t,n,c){Wq(t,n,this.isSVGTag,c.transformTemplate,c.style)}renderInstance(t,n,c,i){Mue(t,n,c,i)}mount(t){this.isSVGTag=Kq(t.tagName),super.mount(t)}}const bue=(e,t)=>wC(e)?new Lue(t):new _ue(t,{allowProjection:e!==y.Fragment});function C1(e,t,n){const c=e.getProps();return CC(c,t,n!==void 0?n:c.custom,e)}const Uw=e=>Array.isArray(e);function Iue(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,a1(n))}function wue(e){return Uw(e)?e[e.length-1]||0:e}function Cue(e,t){const n=C1(e,t);let{transitionEnd:c={},transition:i={},...r}=n||{};r={...r,...c};for(const s in r){const d=wue(r[s]);Iue(e,s,d)}}function jue(e){return!!(De(e)&&e.add)}function Ww(e,t){const n=e.getValue("willChange");if(jue(n))return n.add(t);if(!n&&Pt.WillChange){const c=new Pt.WillChange("auto");e.addValue("willChange",c),c.add(t)}}function sA(e){return e.props[Yq]}const Nue=e=>e!==null;function Sue(e,{repeat:t,repeatType:n="loop"},c){const i=e.filter(Nue),r=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[r]}const $ue={type:"spring",stiffness:500,damping:25,restSpeed:10},que=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Aue={type:"keyframes",duration:.8},zue={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Pue=(e,{keyframes:t})=>t.length>2?Aue:A1.has(e)?e.startsWith("scale")?que(t[1]):$ue:zue;function Vue({when:e,delay:t,delayChildren:n,staggerChildren:c,staggerDirection:i,repeat:r,repeatType:s,repeatDelay:d,from:l,elapsed:h,...u}){return!!Object.keys(u).length}const SC=(e,t,n,c={},i,r)=>s=>{const d=gC(c,e)||{},l=d.delay||c.delay||0;let{elapsed:h=0}=c;h=h-ft(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-h,onUpdate:k=>{t.set(k),d.onUpdate&&d.onUpdate(k)},onComplete:()=>{s(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:r?void 0:i};Vue(d)||Object.assign(u,Pue(e,u)),u.duration&&(u.duration=ft(u.duration)),u.repeatDelay&&(u.repeatDelay=ft(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let p=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Bw(u),u.delay===0&&(p=!0)),(Pt.instantAnimations||Pt.skipAnimations)&&(p=!0,Bw(u),u.delay=0),u.allowFlatten=!d.type&&!d.ease,p&&!r&&t.get()!==void 0){const k=Sue(u.keyframes,d);if(k!==void 0){be.update(()=>{u.onUpdate(k),u.onComplete()});return}}return d.isSync?new mC(u):new ehe(u)};function Tue({protectedKeys:e,needsAnimating:t},n){const c=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,c}function dA(e,t,{delay:n=0,transitionOverride:c,type:i}={}){let{transition:r=e.getDefaultTransition(),transitionEnd:s,...d}=t;c&&(r=c);const l=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const u in d){const p=e.getValue(u,e.latestValues[u]??null),k=d[u];if(k===void 0||h&&Tue(h,u))continue;const f={delay:n,...gC(r||{},u)},g=p.get();if(g!==void 0&&!p.isAnimating&&!Array.isArray(k)&&k===g&&!f.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const _=sA(e);if(_){const x=window.MotionHandoffAnimation(_,u,be);x!==null&&(f.startTime=x,m=!0)}}Ww(e,u),p.start(SC(u,p,k,e.shouldReduceMotion&&Nq.has(u)?{type:!1}:f,e,m));const v=p.animation;v&&l.push(v)}return s&&Promise.all(l).then(()=>{be.update(()=>{s&&Cue(e,s)})}),l}function lA(e,t,n,c=0,i=1){const r=Array.from(e).sort((h,u)=>h.sortNodePosition(u)).indexOf(t),s=e.size,d=(s-1)*c;return typeof n=="function"?n(r,s):i===1?r*c:d-r*c}function Gw(e,t,n={}){const c=C1(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=c||{};n.transitionOverride&&(i=n.transitionOverride);const r=c?()=>Promise.all(dA(e,c,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:h=0,staggerChildren:u,staggerDirection:p}=i;return Due(e,t,l,h,u,p,n)}:()=>Promise.resolve(),{when:d}=i;if(d){const[l,h]=d==="beforeChildren"?[r,s]:[s,r];return l().then(()=>h())}else return Promise.all([r(),s(n.delay)])}function Due(e,t,n=0,c=0,i=0,r=1,s){const d=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),d.push(Gw(l,t,{...s,delay:n+(typeof c=="function"?0:c)+lA(e.variantChildren,l,c,i,r)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(d)}function Hue(e,t,n={}){e.notify("AnimationStart",t);let c;if(Array.isArray(t)){const i=t.map(r=>Gw(e,r,n));c=Promise.all(i)}else if(typeof t=="string")c=Gw(e,t,n);else{const i=typeof t=="function"?C1(e,t,n.custom):t;c=Promise.all(dA(e,i,n))}return c.then(()=>{e.notify("AnimationComplete",t)})}function hA(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let c=0;c<n;c++)if(t[c]!==e[c])return!1;return!0}const Bue=LC.length;function uA(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?uA(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Bue;n++){const c=LC[n],i=e.props[c];(yi(i)||i===!1)&&(t[c]=i)}return t}const Rue=[...MC].reverse(),Fue=MC.length;function Eue(e){return t=>Promise.all(t.map(({animation:n,options:c})=>Hue(e,n,c)))}function Oue(e){let t=Eue(e),n=Ej(),c=!0;const i=l=>(h,u)=>{const p=C1(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(p){const{transition:k,transitionEnd:f,...g}=p;h={...h,...g,...f}}return h};function r(l){t=l(e)}function s(l){const{props:h}=e,u=uA(e.parent)||{},p=[],k=new Set;let f={},g=1/0;for(let v=0;v<Fue;v++){const _=Rue[v],x=n[_],b=h[_]!==void 0?h[_]:u[_],I=yi(b),w=_===l?x.isActive:null;w===!1&&(g=v);let j=b===u[_]&&b!==h[_]&&I;if(j&&c&&e.manuallyAnimateOnMount&&(j=!1),x.protectedKeys={...f},!x.isActive&&w===null||!b&&!x.prevProp||ob(b)||typeof b=="boolean")continue;const M=Uue(x.prevProp,b);let L=M||_===l&&x.isActive&&!j&&I||v>g&&I,S=!1;const C=Array.isArray(b)?b:[b];let N=C.reduce(i(_),{});w===!1&&(N={});const{prevResolvedValues:$={}}=x,q={...$,...N},P=z=>{L=!0,k.has(z)&&(S=!0,k.delete(z)),x.needsAnimating[z]=!0;const A=e.getValue(z);A&&(A.liveStyle=!1)};for(const z in q){const A=N[z],F=$[z];if(f.hasOwnProperty(z))continue;let T=!1;Uw(A)&&Uw(F)?T=!hA(A,F):T=A!==F,T?A!=null?P(z):k.add(z):A!==void 0&&k.has(z)?P(z):x.protectedKeys[z]=!0}x.prevProp=b,x.prevResolvedValues=N,x.isActive&&(f={...f,...N}),c&&e.blockInitialAnimation&&(L=!1);const D=j&&M;L&&(!D||S)&&p.push(...C.map(z=>{const A={type:_};if(typeof z=="string"&&c&&!D&&e.manuallyAnimateOnMount&&e.parent){const{parent:F}=e,T=C1(F,z);if(F.enteringChildren&&T){const{delayChildren:R}=T.transition||{};A.delay=lA(F.enteringChildren,e,R)}}return{animation:z,options:A}}))}if(k.size){const v={};if(typeof h.initial!="boolean"){const _=C1(e,Array.isArray(h.initial)?h.initial[0]:h.initial);_&&_.transition&&(v.transition=_.transition)}k.forEach(_=>{const x=e.getBaseTarget(_),b=e.getValue(_);b&&(b.liveStyle=!0),v[_]=x??null}),p.push({animation:v})}let m=!!p.length;return c&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(m=!1),c=!1,m?t(p):Promise.resolve()}function d(l,h){if(n[l].isActive===h)return Promise.resolve();e.variantChildren?.forEach(p=>p.animationState?.setActive(l,h)),n[l].isActive=h;const u=s(l);for(const p in n)n[p].protectedKeys={};return u}return{animateChanges:s,setActive:d,setAnimateFunction:r,getState:()=>n,reset:()=>{n=Ej()}}}function Uue(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!hA(t,e):!1}function ia(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ej(){return{animate:ia(!0),whileInView:ia(),whileHover:ia(),whileTap:ia(),whileDrag:ia(),whileFocus:ia(),exit:ia()}}class ea{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Wue extends ea{constructor(t){super(t),t.animationState||(t.animationState=Oue(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ob(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Gue=0;class Kue extends ea{constructor(){super(...arguments),this.id=Gue++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:c}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===c)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Zue={animation:{Feature:Wue},exit:{Feature:Kue}};function mi(e,t,n,c={passive:!0}){return e.addEventListener(t,n,c),()=>e.removeEventListener(t,n)}function Li(e){return{point:{x:e.pageX,y:e.pageY}}}const Xue=e=>t=>_C(t)&&e(t,Li(t));function ri(e,t,n,c){return mi(e,t,Xue(n),c)}const pA=1e-4,Yue=1-pA,Jue=1+pA,yA=.01,Que=0-yA,epe=0+yA;function Ge(e){return e.max-e.min}function tpe(e,t,n){return Math.abs(e-t)<=n}function Oj(e,t,n,c=.5){e.origin=c,e.originPoint=we(t.min,t.max,e.origin),e.scale=Ge(n)/Ge(t),e.translate=we(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Yue&&e.scale<=Jue||isNaN(e.scale))&&(e.scale=1),(e.translate>=Que&&e.translate<=epe||isNaN(e.translate))&&(e.translate=0)}function si(e,t,n,c){Oj(e.x,t.x,n.x,c?c.originX:void 0),Oj(e.y,t.y,n.y,c?c.originY:void 0)}function Uj(e,t,n){e.min=n.min+t.min,e.max=e.min+Ge(t)}function ape(e,t,n){Uj(e.x,t.x,n.x),Uj(e.y,t.y,n.y)}function Wj(e,t,n){e.min=t.min-n.min,e.max=e.min+Ge(t)}function di(e,t,n){Wj(e.x,t.x,n.x),Wj(e.y,t.y,n.y)}function dt(e){return[e("x"),e("y")]}const kA=({current:e})=>e?e.ownerDocument.defaultView:null,Gj=(e,t)=>Math.abs(e-t);function npe(e,t){const n=Gj(e.x,t.x),c=Gj(e.y,t.y);return Math.sqrt(n**2+c**2)}class mA{constructor(t,n,{transformPagePoint:c,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=Pb(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,g=npe(k.offset,{x:0,y:0})>=this.distanceThreshold;if(!f&&!g)return;const{point:m}=k,{timestamp:v}=Te;this.history.push({...m,timestamp:v});const{onStart:_,onMove:x}=this.handlers;f||(_&&_(this.lastMoveEvent,k),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,k)},this.handlePointerMove=(k,f)=>{this.lastMoveEvent=k,this.lastMoveEventInfo=zb(f,this.transformPagePoint),be.update(this.updatePoint,!0)},this.handlePointerUp=(k,f)=>{this.end();const{onEnd:g,onSessionEnd:m,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=Pb(k.type==="pointercancel"?this.lastMoveEventInfo:zb(f,this.transformPagePoint),this.history);this.startEvent&&g&&g(k,_),m&&m(k,_)},!_C(t))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=c,this.distanceThreshold=s,this.contextWindow=i||window;const d=Li(t),l=zb(d,this.transformPagePoint),{point:h}=l,{timestamp:u}=Te;this.history=[{...h,timestamp:u}];const{onSessionStart:p}=n;p&&p(t,Pb(l,this.history)),this.removeListeners=xi(ri(this.contextWindow,"pointermove",this.handlePointerMove),ri(this.contextWindow,"pointerup",this.handlePointerUp),ri(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Vt(this.updatePoint)}}function zb(e,t){return t?{point:t(e.point)}:e}function Kj(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Pb({point:e},t){return{point:e,delta:Kj(e,fA(t)),offset:Kj(e,ope(t)),velocity:cpe(t,.1)}}function ope(e){return e[0]}function fA(e){return e[e.length-1]}function cpe(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,c=null;const i=fA(e);for(;n>=0&&(c=e[n],!(i.timestamp-c.timestamp>ft(t)));)n--;if(!c)return{x:0,y:0};const r=lt(i.timestamp-c.timestamp);if(r===0)return{x:0,y:0};const s={x:(i.x-c.x)/r,y:(i.y-c.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ipe(e,{min:t,max:n},c){return t!==void 0&&e<t?e=c?we(t,e,c.min):Math.max(e,t):n!==void 0&&e>n&&(e=c?we(n,e,c.max):Math.min(e,n)),e}function Zj(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function rpe(e,{top:t,left:n,bottom:c,right:i}){return{x:Zj(e.x,n,i),y:Zj(e.y,t,c)}}function Xj(e,t){let n=t.min-e.min,c=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,c]=[c,n]),{min:n,max:c}}function spe(e,t){return{x:Xj(e.x,t.x),y:Xj(e.y,t.y)}}function dpe(e,t){let n=.5;const c=Ge(e),i=Ge(t);return i>c?n=hi(t.min,t.max-c,e.min):c>i&&(n=hi(e.min,e.max-i,t.min)),zt(0,1,n)}function lpe(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Kw=.35;function hpe(e=Kw){return e===!1?e=0:e===!0&&(e=Kw),{x:Yj(e,"left","right"),y:Yj(e,"top","bottom")}}function Yj(e,t,n){return{min:Jj(e,t),max:Jj(e,n)}}function Jj(e,t){return typeof e=="number"?e:e[t]||0}const upe=new WeakMap;class ppe{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$e(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:c}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=p=>{const{dragSnapToOrigin:k}=this.getProps();k?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Li(p).point)},s=(p,k)=>{const{drag:f,dragPropagation:g,onDragStart:m}=this.getProps();if(f&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=fhe(f),!this.openDragLock))return;this.latestPointerEvent=p,this.latestPanInfo=k,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),dt(_=>{let x=this.getAxisMotionValue(_).get()||0;if(wt.test(x)){const{projection:b}=this.visualElement;if(b&&b.layout){const I=b.layout.layoutBox[_];I&&(x=Ge(I)*(parseFloat(x)/100))}}this.originPoint[_]=x}),m&&be.postRender(()=>m(p,k)),Ww(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},d=(p,k)=>{this.latestPointerEvent=p,this.latestPanInfo=k;const{dragPropagation:f,dragDirectionLock:g,onDirectionLock:m,onDrag:v}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:_}=k;if(g&&this.currentDirection===null){this.currentDirection=ype(_),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",k.point,_),this.updateAxis("y",k.point,_),this.visualElement.render(),v&&v(p,k)},l=(p,k)=>{this.latestPointerEvent=p,this.latestPanInfo=k,this.stop(p,k),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>dt(p=>this.getAnimationState(p)==="paused"&&this.getAxisMotionValue(p).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new mA(t,{onSessionStart:r,onStart:s,onMove:d,onSessionEnd:l,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:c,contextWindow:kA(this.visualElement)})}stop(t,n){const c=t||this.latestPointerEvent,i=n||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!c)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:d}=this.getProps();d&&be.postRender(()=>d(c,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:c}=this.getProps();!c&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,c){const{drag:i}=this.getProps();if(!c||!Vi(t,i,this.currentDirection))return;const r=this.getAxisMotionValue(t);let s=this.originPoint[t]+c[t];this.constraints&&this.constraints[t]&&(s=ipe(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),c=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&g1(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&c?this.constraints=rpe(c.layoutBox,t):this.constraints=!1,this.elastic=hpe(n),i!==this.constraints&&c&&this.constraints&&!this.hasMutatedConstraints&&dt(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=lpe(c.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!g1(t))return!1;const c=t.current;gt(c!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=kue(c,i.root,this.visualElement.getTransformPagePoint());let s=spe(i.layout.layoutBox,r);if(n){const d=n(uue(s));this.hasMutatedConstraints=!!d,d&&(s=eA(d))}return s}startAnimation(t){const{drag:n,dragMomentum:c,dragElastic:i,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:d}=this.getProps(),l=this.constraints||{},h=dt(u=>{if(!Vi(u,n,this.currentDirection))return;let p=l&&l[u]||{};s&&(p={min:0,max:0});const k=i?200:1e6,f=i?40:1e7,g={type:"inertia",velocity:c?t[u]:0,bounceStiffness:k,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...r,...p};return this.startAxisValueAnimation(u,g)});return Promise.all(h).then(d)}startAxisValueAnimation(t,n){const c=this.getAxisMotionValue(t);return Ww(this.visualElement,t),c.start(SC(t,c,0,n,this.visualElement,!1))}stopAnimation(){dt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){dt(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,c=this.visualElement.getProps(),i=c[n];return i||this.visualElement.getValue(t,(c.initial?c.initial[t]:void 0)||0)}snapToCursor(t){dt(n=>{const{drag:c}=this.getProps();if(!Vi(n,c,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:d}=i.layout.layoutBox[n];r.set(t[n]-we(s,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:c}=this.visualElement;if(!g1(n)||!c||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};dt(s=>{const d=this.getAxisMotionValue(s);if(d&&this.constraints!==!1){const l=d.get();i[s]=dpe({min:l,max:l},this.constraints[s])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",c.root&&c.root.updateScroll(),c.updateLayout(),this.resolveConstraints(),dt(s=>{if(!Vi(s,t,null))return;const d=this.getAxisMotionValue(s),{min:l,max:h}=this.constraints[s];d.set(we(l,h,i[s]))})}addListeners(){if(!this.visualElement.current)return;upe.set(this.visualElement,this);const t=this.visualElement.current,n=ri(t,"pointerdown",l=>{const{drag:h,dragListener:u=!0}=this.getProps();h&&u&&this.start(l)}),c=()=>{const{dragConstraints:l}=this.getProps();g1(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",c);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),be.read(c);const s=mi(window,"resize",()=>this.scalePositionWithinConstraints()),d=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:h})=>{this.isDragging&&h&&(dt(u=>{const p=this.getAxisMotionValue(u);p&&(this.originPoint[u]+=l[u].translate,p.set(p.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),r(),d&&d()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:c=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:s=Kw,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:c,dragPropagation:i,dragConstraints:r,dragElastic:s,dragMomentum:d}}}function Vi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ype(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class kpe extends ea{constructor(t){super(t),this.removeGroupControls=ut,this.removeListeners=ut,this.controls=new ppe(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ut}unmount(){this.removeGroupControls(),this.removeListeners()}}const Qj=e=>(t,n)=>{e&&be.postRender(()=>e(t,n))};class mpe extends ea{constructor(){super(...arguments),this.removePointerDownListener=ut}onPointerDown(t){this.session=new mA(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:kA(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:c,onPanEnd:i}=this.node.getProps();return{onSessionStart:Qj(t),onStart:Qj(n),onMove:c,onEnd:(r,s)=>{delete this.session,i&&be.postRender(()=>i(r,s))}}}mount(){this.removePointerDownListener=ri(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const HL={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function eN(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const D1={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ie.test(e))e=parseFloat(e);else return e;const n=eN(e,t.target.x),c=eN(e,t.target.y);return`${n}% ${c}%`}},fpe={correct:(e,{treeScale:t,projectionDelta:n})=>{const c=e,i=Jt.parse(e);if(i.length>5)return c;const r=Jt.createTransformer(e),s=typeof i[0]!="number"?1:0,d=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=d,i[1+s]/=l;const h=we(d,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=h),typeof i[3+s]=="number"&&(i[3+s]/=h),r(i)}};let Vb=!1;class gpe extends y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:c,layoutId:i}=this.props,{projection:r}=t;Bhe(vpe),r&&(n.group&&n.group.add(r),c&&c.register&&i&&c.register(r),Vb&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),HL.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:c,drag:i,isPresent:r}=this.props,{projection:s}=c;return s&&(s.isPresent=r,Vb=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||be.postRender(()=>{const d=s.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),xC.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:c}=this.props,{projection:i}=t;Vb=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),c&&c.deregister&&c.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function gA(e){const[t,n]=Bq(),c=y.useContext(Jw);return o.jsx(gpe,{...e,layoutGroup:c,switchLayoutGroup:y.useContext(Jq),isPresent:t,safeToRemove:n})}const vpe={borderRadius:{...D1,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:D1,borderTopRightRadius:D1,borderBottomLeftRadius:D1,borderBottomRightRadius:D1,boxShadow:fpe};function xpe(e,t,n){const c=De(e)?e:a1(e);return c.start(SC("",c,t,n)),c.animation}const _pe=(e,t)=>e.depth-t.depth;class Mpe{constructor(){this.children=[],this.isDirty=!1}add(t){tC(this.children,t),this.isDirty=!0}remove(t){aC(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(_pe),this.isDirty=!1,this.children.forEach(t)}}function Lpe(e,t){const n=et.now(),c=({timestamp:i})=>{const r=i-n;r>=t&&(Vt(c),e(r-t))};return be.setup(c,!0),()=>Vt(c)}const vA=["TopLeft","TopRight","BottomLeft","BottomRight"],bpe=vA.length,tN=e=>typeof e=="string"?parseFloat(e):e,aN=e=>typeof e=="number"||ie.test(e);function Ipe(e,t,n,c,i,r){i?(e.opacity=we(0,n.opacity??1,wpe(c)),e.opacityExit=we(t.opacity??1,0,Cpe(c))):r&&(e.opacity=we(t.opacity??1,n.opacity??1,c));for(let s=0;s<bpe;s++){const d=`border${vA[s]}Radius`;let l=nN(t,d),h=nN(n,d);if(l===void 0&&h===void 0)continue;l||(l=0),h||(h=0),l===0||h===0||aN(l)===aN(h)?(e[d]=Math.max(we(tN(l),tN(h),c),0),(wt.test(h)||wt.test(l))&&(e[d]+="%")):e[d]=h}(t.rotate||n.rotate)&&(e.rotate=we(t.rotate||0,n.rotate||0,c))}function nN(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const wpe=xA(0,.5,cq),Cpe=xA(.5,.95,ut);function xA(e,t,n){return c=>c<e?0:c>t?1:n(hi(e,t,c))}function oN(e,t){e.min=t.min,e.max=t.max}function it(e,t){oN(e.x,t.x),oN(e.y,t.y)}function cN(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function iN(e,t,n,c,i){return e-=t,e=ZL(e,1/n,c),i!==void 0&&(e=ZL(e,1/i,c)),e}function jpe(e,t=0,n=1,c=.5,i,r=e,s=e){if(wt.test(t)&&(t=parseFloat(t),t=we(s.min,s.max,t/100)-s.min),typeof t!="number")return;let d=we(r.min,r.max,c);e===r&&(d-=t),e.min=iN(e.min,t,n,d,i),e.max=iN(e.max,t,n,d,i)}function rN(e,t,[n,c,i],r,s){jpe(e,t[n],t[c],t[i],t.scale,r,s)}const Npe=["x","scaleX","originX"],Spe=["y","scaleY","originY"];function sN(e,t,n,c){rN(e.x,t,Npe,n?n.x:void 0,c?c.x:void 0),rN(e.y,t,Spe,n?n.y:void 0,c?c.y:void 0)}function dN(e){return e.translate===0&&e.scale===1}function _A(e){return dN(e.x)&&dN(e.y)}function lN(e,t){return e.min===t.min&&e.max===t.max}function $pe(e,t){return lN(e.x,t.x)&&lN(e.y,t.y)}function hN(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function MA(e,t){return hN(e.x,t.x)&&hN(e.y,t.y)}function uN(e){return Ge(e.x)/Ge(e.y)}function pN(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class qpe{constructor(){this.members=[]}add(t){tC(this.members,t),t.scheduleRender()}remove(t){if(aC(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let c;for(let i=n;i>=0;i--){const r=this.members[i];if(r.isPresent!==!1){c=r;break}}return c?(this.promote(c),!0):!1}promote(t,n){const c=this.lead;if(t!==c&&(this.prevLead=c,this.lead=t,t.show(),c)){c.instance&&c.scheduleRender(),t.scheduleRender(),t.resumeFrom=c,n&&(t.resumeFrom.preserveOpacity=!0),c.snapshot&&(t.snapshot=c.snapshot,t.snapshot.latestValues=c.animationValues||c.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&c.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:c}=t;n.onExitComplete&&n.onExitComplete(),c&&c.options.onExitComplete&&c.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ape(e,t,n){let c="";const i=e.x.translate/t.x,r=e.y.translate/t.y,s=n?.z||0;if((i||r||s)&&(c=`translate3d(${i}px, ${r}px, ${s}px) `),(t.x!==1||t.y!==1)&&(c+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:u,rotateX:p,rotateY:k,skewX:f,skewY:g}=n;h&&(c=`perspective(${h}px) ${c}`),u&&(c+=`rotate(${u}deg) `),p&&(c+=`rotateX(${p}deg) `),k&&(c+=`rotateY(${k}deg) `),f&&(c+=`skewX(${f}deg) `),g&&(c+=`skewY(${g}deg) `)}const d=e.x.scale*t.x,l=e.y.scale*t.y;return(d!==1||l!==1)&&(c+=`scale(${d}, ${l})`),c||"none"}const Tb=["","X","Y","Z"],zpe=1e3;let Ppe=0;function Db(e,t,n,c){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),c&&(c[e]=0))}function LA(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=sA(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",be,!(i||r))}const{parent:c}=e;c&&!c.hasCheckedOptimisedAppear&&LA(c)}function bA({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:c,resetTransform:i}){return class{constructor(s={},d=t?.()){this.id=Ppe++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Dpe),this.nodes.forEach(Fpe),this.nodes.forEach(Epe),this.nodes.forEach(Hpe)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Mpe)}addEventListener(s,d){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new oC),this.eventHandlers.get(s).add(d)}notifyListeners(s,...d){const l=this.eventHandlers.get(s);l&&l.notify(...d)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=Hq(s)&&!Lhe(s),this.instance=s;const{layoutId:d,layout:l,visualElement:h}=this.options;if(h&&!h.current&&h.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||d)&&(this.isLayoutDirty=!0),e){let u,p=0;const k=()=>this.root.updateBlockedByResize=!1;be.read(()=>{p=window.innerWidth}),e(s,()=>{const f=window.innerWidth;f!==p&&(p=f,this.root.updateBlockedByResize=!0,u&&u(),u=Lpe(k,250),HL.hasAnimatedSinceResize&&(HL.hasAnimatedSinceResize=!1,this.nodes.forEach(mN)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&h&&(d||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:p,hasRelativeLayoutChanged:k,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||h.getDefaultTransition()||Kpe,{onLayoutAnimationStart:m,onLayoutAnimationComplete:v}=h.getProps(),_=!this.targetLayout||!MA(this.targetLayout,f),x=!p&&k;if(this.options.layoutRoot||this.resumeFrom||x||p&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...gC(g,"layout"),onPlay:m,onComplete:v};(h.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(u,x)}else p||mN(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Vt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ope),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&LA(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const p=this.path[u];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:d,layout:l}=this.options;if(d===void 0&&!l)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(yN);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(kN);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Rpe),this.nodes.forEach(Vpe),this.nodes.forEach(Tpe)):this.nodes.forEach(kN),this.clearAllSnapshots();const d=et.now();Te.delta=zt(0,1e3/60,d-Te.timestamp),Te.timestamp=d,Te.isProcessing=!0,wb.update.process(Te),wb.preRender.process(Te),wb.render.process(Te),Te.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,xC.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Bpe),this.sharedNodes.forEach(Upe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,be.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){be.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ge(this.snapshot.measuredBox.x)&&!Ge(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=$e(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(d=!1),d&&this.instance){const l=c(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!_A(this.projectionDelta),l=this.getTransformTemplate(),h=l?l(this.latestValues,""):void 0,u=h!==this.prevTransformTemplateValue;s&&this.instance&&(d||Uc(this.latestValues)||u)&&(i(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const d=this.measurePageBox();let l=this.removeElementScroll(d);return s&&(l=this.removeTransform(l)),Zpe(l),{animationId:this.root.animationId,measuredBox:d,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return $e();const d=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Xpe))){const{scroll:h}=this.root;h&&(v1(d.x,h.offset.x),v1(d.y,h.offset.y))}return d}removeElementScroll(s){const d=$e();if(it(d,s),this.scroll?.wasRoot)return d;for(let l=0;l<this.path.length;l++){const h=this.path[l],{scroll:u,options:p}=h;h!==this.root&&u&&p.layoutScroll&&(u.wasRoot&&it(d,s),v1(d.x,u.offset.x),v1(d.y,u.offset.y))}return d}applyTransform(s,d=!1){const l=$e();it(l,s);for(let h=0;h<this.path.length;h++){const u=this.path[h];!d&&u.options.layoutScroll&&u.scroll&&u!==u.root&&x1(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Uc(u.latestValues)&&x1(l,u.latestValues)}return Uc(this.latestValues)&&x1(l,this.latestValues),l}removeTransform(s){const d=$e();it(d,s);for(let l=0;l<this.path.length;l++){const h=this.path[l];if(!h.instance||!Uc(h.latestValues))continue;Fw(h.latestValues)&&h.updateSnapshot();const u=$e(),p=h.measurePageBox();it(u,p),sN(d,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,u)}return Uc(this.latestValues)&&sN(d,this.latestValues),d}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Te.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==d;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:p}=this.options;if(!(!this.layout||!(u||p))){if(this.resolvedRelativeTargetAt=Te.timestamp,!this.targetDelta&&!this.relativeTarget){const k=this.getClosestProjectingParent();k&&k.layout&&this.animationProgress!==1?(this.relativeParent=k,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$e(),this.relativeTargetOrigin=$e(),di(this.relativeTargetOrigin,this.layout.layoutBox,k.layout.layoutBox),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=$e(),this.targetWithTransforms=$e()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ape(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):it(this.target,this.layout.layoutBox),aA(this.target,this.targetDelta)):it(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const k=this.getClosestProjectingParent();k&&!!k.resumingFrom==!!this.resumingFrom&&!k.options.layoutScroll&&k.target&&this.animationProgress!==1?(this.relativeParent=k,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$e(),this.relativeTargetOrigin=$e(),di(this.relativeTargetOrigin,this.target,k.target),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Fw(this.parent.latestValues)||tA(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const s=this.getLead(),d=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Te.timestamp&&(l=!1),l)return;const{layout:h,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||u))return;it(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,k=this.treeScale.y;yue(this.layoutCorrected,this.treeScale,this.path,d),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=$e());const{target:f}=s;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(cN(this.prevProjectionDelta.x,this.projectionDelta.x),cN(this.prevProjectionDelta.y,this.projectionDelta.y)),si(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==k||!pN(this.projectionDelta.x,this.prevProjectionDelta.x)||!pN(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=_1(),this.projectionDelta=_1(),this.projectionDeltaWithTransform=_1()}setAnimationOrigin(s,d=!1){const l=this.snapshot,h=l?l.latestValues:{},u={...this.latestValues},p=_1();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const k=$e(),f=l?l.source:void 0,g=this.layout?this.layout.source:void 0,m=f!==g,v=this.getStack(),_=!v||v.members.length<=1,x=!!(m&&!_&&this.options.crossfade===!0&&!this.path.some(Gpe));this.animationProgress=0;let b;this.mixTargetDelta=I=>{const w=I/1e3;fN(p.x,s.x,w),fN(p.y,s.y,w),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(di(k,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Wpe(this.relativeTarget,this.relativeTargetOrigin,k,w),b&&$pe(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=$e()),it(b,this.relativeTarget)),m&&(this.animationValues=u,Ipe(u,h,this.latestValues,w,x,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Vt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=be.update(()=>{HL.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=a1(0)),this.currentAnimation=xpe(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),s.onUpdate&&s.onUpdate(d)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(zpe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:d,target:l,layout:h,latestValues:u}=s;if(!(!d||!l||!h)){if(this!==s&&this.layout&&h&&IA(this.options.animationType,this.layout.layoutBox,h.layoutBox)){l=this.target||$e();const p=Ge(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+p;const k=Ge(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+k}it(d,l),x1(d,u),si(this.projectionDeltaWithTransform,this.layoutCorrected,d,u)}}registerSharedNode(s,d){this.sharedNodes.has(s)||this.sharedNodes.set(s,new qpe),this.sharedNodes.get(s).add(d);const h=d.options.initialPromotionConfig;d.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(d):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:d,preserveFollowOpacity:l}={}){const h=this.getStack();h&&h.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let d=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(d=!0),!d)return;const h={};l.z&&Db("z",s,h,this.animationValues);for(let u=0;u<Tb.length;u++)Db(`rotate${Tb[u]}`,s,h,this.animationValues),Db(`skew${Tb[u]}`,s,h,this.animationValues);s.render();for(const u in h)s.setStaticValue(u,h[u]),this.animationValues&&(this.animationValues[u]=h[u]);s.scheduleRender()}applyProjectionStyles(s,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=DL(d?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=DL(d?.pointerEvents)||""),this.hasProjected&&!Uc(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=h.animationValues||h.latestValues;this.applyTransformsToTarget();let p=Ape(this.projectionDeltaWithTransform,this.treeScale,u);l&&(p=l(u,p)),s.transform=p;const{x:k,y:f}=this.projectionDelta;s.transformOrigin=`${k.origin*100}% ${f.origin*100}% 0`,h.animationValues?s.opacity=h===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:s.opacity=h===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const g in ki){if(u[g]===void 0)continue;const{correct:m,applyTo:v,isCSSVariable:_}=ki[g],x=p==="none"?u[g]:m(u[g],h);if(v){const b=v.length;for(let I=0;I<b;I++)s[v[I]]=x}else _?this.options.visualElement.renderState.vars[g]=x:s[g]=x}this.options.layoutId&&(s.pointerEvents=h===this?DL(d?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(yN),this.root.sharedNodes.clear()}}}function Vpe(e){e.updateLayout()}function Tpe(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:c}=e.layout,{animationType:i}=e.options,r=t.source!==e.layout.source;i==="size"?dt(u=>{const p=r?t.measuredBox[u]:t.layoutBox[u],k=Ge(p);p.min=n[u].min,p.max=p.min+k}):IA(i,t.layoutBox,n)&&dt(u=>{const p=r?t.measuredBox[u]:t.layoutBox[u],k=Ge(n[u]);p.max=p.min+k,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+k)});const s=_1();si(s,n,t.layoutBox);const d=_1();r?si(d,e.applyTransform(c,!0),t.measuredBox):si(d,n,t.layoutBox);const l=!_A(s);let h=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:p,layout:k}=u;if(p&&k){const f=$e();di(f,t.layoutBox,p.layoutBox);const g=$e();di(g,n,k.layoutBox),MA(f,g)||(h=!0),u.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=f,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:d,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Dpe(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Hpe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Bpe(e){e.clearSnapshot()}function yN(e){e.clearMeasurements()}function kN(e){e.isLayoutDirty=!1}function Rpe(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function mN(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Fpe(e){e.resolveTargetDelta()}function Epe(e){e.calcProjection()}function Ope(e){e.resetSkewAndRotation()}function Upe(e){e.removeLeadSnapshot()}function fN(e,t,n){e.translate=we(t.translate,0,n),e.scale=we(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function gN(e,t,n,c){e.min=we(t.min,n.min,c),e.max=we(t.max,n.max,c)}function Wpe(e,t,n,c){gN(e.x,t.x,n.x,c),gN(e.y,t.y,n.y,c)}function Gpe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Kpe={duration:.45,ease:[.4,0,.1,1]},vN=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),xN=vN("applewebkit/")&&!vN("chrome/")?Math.round:ut;function _N(e){e.min=xN(e.min),e.max=xN(e.max)}function Zpe(e){_N(e.x),_N(e.y)}function IA(e,t,n){return e==="position"||e==="preserve-aspect"&&!tpe(uN(t),uN(n),.2)}function Xpe(e){return e!==e.root&&e.scroll?.wasRoot}const Ype=bA({attachResizeListener:(e,t)=>mi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Hb={current:void 0},wA=bA({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Hb.current){const e=new Ype({});e.mount(window),e.setOptions({layoutScroll:!0}),Hb.current=e}return Hb.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Jpe={pan:{Feature:mpe},drag:{Feature:kpe,ProjectionNode:wA,MeasureLayout:gA}};function MN(e,t,n){const{props:c}=e;e.animationState&&c.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=c[i];r&&be.postRender(()=>r(t,Li(t)))}class Qpe extends ea{mount(){const{current:t}=this.node;t&&(this.unmount=ghe(t,(n,c)=>(MN(this.node,c,"Start"),i=>MN(this.node,i,"End"))))}unmount(){}}class eye extends ea{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=xi(mi(this.node.current,"focus",()=>this.onFocus()),mi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function LN(e,t,n){const{props:c}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&c.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=c[i];r&&be.postRender(()=>r(t,Li(t)))}class tye extends ea{mount(){const{current:t}=this.node;t&&(this.unmount=Mhe(t,(n,c)=>(LN(this.node,c,"Start"),(i,{success:r})=>LN(this.node,i,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Zw=new WeakMap,Bb=new WeakMap,aye=e=>{const t=Zw.get(e.target);t&&t(e)},nye=e=>{e.forEach(aye)};function oye({root:e,...t}){const n=e||document;Bb.has(n)||Bb.set(n,{});const c=Bb.get(n),i=JSON.stringify(t);return c[i]||(c[i]=new IntersectionObserver(nye,{root:e,...t})),c[i]}function cye(e,t,n){const c=oye(t);return Zw.set(e,n),c.observe(e),()=>{Zw.delete(e),c.unobserve(e)}}const iye={some:0,all:1};class rye extends ea{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:c,amount:i="some",once:r}=t,s={root:n?n.current:void 0,rootMargin:c,threshold:typeof i=="number"?i:iye[i]},d=l=>{const{isIntersecting:h}=l;if(this.isInView===h||(this.isInView=h,r&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:u,onViewportLeave:p}=this.node.getProps(),k=h?u:p;k&&k(l)};return cye(this.node.current,s,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(sye(t,n))&&this.startObserver()}unmount(){}}function sye({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const dye={inView:{Feature:rye},tap:{Feature:tye},focus:{Feature:eye},hover:{Feature:Qpe}},lye={layout:{ProjectionNode:wA,MeasureLayout:gA}},hye={...Zue,...dye,...Jpe,...lye},$C=hue(hye,bue);function CA(e){const t=Qt(()=>a1(e)),{isStatic:n}=y.useContext(ab);if(n){const[,c]=y.useState(e);y.useEffect(()=>t.on("change",c),[])}return t}function jA(e,t){const n=CA(t()),c=()=>n.set(t());return c(),eC(()=>{const i=()=>be.preRender(c,!1,!0),r=e.map(s=>s.on("change",i));return()=>{r.forEach(s=>s()),Vt(c)}}),n}function uye(e){ii.current=[],e();const t=jA(ii.current,e);return ii.current=void 0,t}function pye(e,t,n,c){if(typeof e=="function")return uye(e);const i=typeof t=="function"?t:bhe(t,n,c);return Array.isArray(e)?bN(e,i):bN([e],([r])=>i(r))}function bN(e,t){const n=Qt(()=>[]);return jA(e,()=>{n.length=0;const c=e.length;for(let i=0;i<c;i++)n[i]=e[i].get();return t(n)})}class yye{constructor(){this.componentControls=new Set}subscribe(t){return this.componentControls.add(t),()=>this.componentControls.delete(t)}start(t,n){this.componentControls.forEach(c=>{c.start(t.nativeEvent||t,n)})}cancel(){this.componentControls.forEach(t=>{t.cancel()})}stop(){this.componentControls.forEach(t=>{t.stop()})}}const kye=()=>new yye;function mye(){return Qt(kye)}const NA=y.createContext(null);function fye(e,t,n,c){if(!c)return e;const i=e.findIndex(u=>u.value===t);if(i===-1)return e;const r=c>0?1:-1,s=e[i+r];if(!s)return e;const d=e[i],l=s.layout,h=we(l.min,l.max,.5);return r===1&&d.layout.max+n>h||r===-1&&d.layout.min+n<h?S0e(e,i,i+r):e}function gye({children:e,as:t="ul",axis:n="y",onReorder:c,values:i,...r},s){const d=Qt(()=>$C[t]),l=[],h=y.useRef(!1);gt(!!i,"Reorder.Group must be provided a values prop","reorder-values");const u={axis:n,registerItem:(p,k)=>{const f=l.findIndex(g=>p===g.value);f!==-1?l[f].layout=k[n]:l.push({value:p,layout:k[n]}),l.sort(_ye)},updateOrder:(p,k,f)=>{if(h.current)return;const g=fye(l,p,k,f);l!==g&&(h.current=!0,c(g.map(xye).filter(m=>i.indexOf(m)!==-1)))}};return y.useEffect(()=>{h.current=!1}),o.jsx(d,{...r,ref:s,ignoreStrict:!0,children:o.jsx(NA.Provider,{value:u,children:e})})}const vye=y.forwardRef(gye);function xye(e){return e.value}function _ye(e,t){return e.layout.min-t.layout.min}function IN(e,t=0){return De(e)?e:CA(t)}function Mye({children:e,style:t={},value:n,as:c="li",onDrag:i,layout:r=!0,...s},d){const l=Qt(()=>$C[c]),h=y.useContext(NA),u={x:IN(t.x),y:IN(t.y)},p=pye([u.x,u.y],([m,v])=>m||v?1:"unset");gt(!!h,"Reorder.Item must be a child of Reorder.Group","reorder-item-child");const{axis:k,registerItem:f,updateOrder:g}=h;return o.jsx(l,{drag:k,...s,dragSnapToOrigin:!0,style:{...t,x:u.x,y:u.y,zIndex:p},layout:r,onDrag:(m,v)=>{const{velocity:_}=v;_[k]&&g(n,u[k].get(),_[k]),i&&i(m,v)},onLayoutMeasure:m=>f(n,m),ref:d,ignoreStrict:!0,children:e})}const Lye=y.forwardRef(Mye),XL=[o.jsx(oi,{size:18}),o.jsx(Gt,{size:18}),o.jsx(ai,{size:18}),o.jsx(Kt,{size:18}),o.jsx(W1,{size:18}),o.jsx(U1,{size:18})],bye=({items:e,onReorder:t,draggable:n=!1,className:c,header:i,headerStyle:r,itemsDraggable:s=!0})=>{const[d,l]=y.useState(e??[]);return y.useEffect(()=>{e&&Array.isArray(e)?(e.forEach((h,u)=>{if(h.icon==null&&(h.icon=XL[u%XL.length]),typeof h.text=="string"&&h.text.includes("/")){const p=String(h.text).split("/"),k=p[0].trim(),g=p.slice(1).join("/").trim().match(/^(\d+)(.*)$/);if(g){const m=g[1],v=g[2]??"",_=m.padStart(3,"0");h.text=`${k} / ${_}${v}`}}}),l(e)):l([])},[e]),o.jsxs("div",{className:`trend-list ${c??""}`,draggable:n,style:{position:"relative"},children:[o.jsx("div",{className:"trend-header",style:r,children:i??"Trend"}),o.jsx("div",{className:"trend-list-body",style:{opacity:n?0:1},children:o.jsx(vye,{axis:"y",values:d,onReorder:h=>{l(h),t?.(h)},style:{display:"flex",flexDirection:"column",gap:8},children:d.map((h,u)=>o.jsx(Iye,{value:h,index:u,itemsDraggable:s},String(h.id)))})}),n&&o.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:o.jsx(a.Move,{size:48,strokeWidth:1.5,style:{opacity:.8}})})]})};function Iye({value:e,index:t}){const n=mye(),c=XL[t%XL.length]??null;return o.jsx(Lye,{value:e,dragListener:!1,dragControls:n,style:{listStyle:"none"},onDragStart:()=>{try{document.body.classList.add("is-dragging")}catch{}},onDragEnd:()=>{try{document.body.classList.remove("is-dragging")}catch{}},children:o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[o.jsx("div",{className:"reorder-handle","aria-hidden":!0,onPointerDown:i=>n.start(i),style:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",cursor:"grab",userSelect:"none"},children:o.jsx("svg",{width:"25",height:"25",viewBox:"0 0 24 24","aria-hidden":!0,children:o.jsxs("g",{fill:"currentColor",children:[o.jsx("circle",{cx:"8",cy:"6",r:"2"}),o.jsx("circle",{cx:"16",cy:"6",r:"2"}),o.jsx("circle",{cx:"8",cy:"12",r:"2"}),o.jsx("circle",{cx:"16",cy:"12",r:"2"}),o.jsx("circle",{cx:"8",cy:"18",r:"2"}),o.jsx("circle",{cx:"16",cy:"18",r:"2"})]})})}),o.jsx("div",{style:{flex:1},children:o.jsx(K$,{title:e.title,subtitle:e.subtitle,text:e.text,background:e.background,titleStyle:e.titleStyle,subtitleStyle:e.subtitleStyle,textStyle:e.textStyle,itemStyle:e.itemStyle,icon:e.icon??c})})]})})}function wye(e,t){return t.required?t.type==="checkbox"&&!e?{isValid:!1,error:`${t.label} est requis`}:!e||typeof e=="string"&&e.trim()===""?{isValid:!1,error:`${t.label} est requis`}:null:null}function Cye(e){return!e||typeof e=="string"&&e.trim()===""}function jye(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?null:{isValid:!1,error:"Format d'email invalide"}}function Nye(e){return/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/.test(e)?null:{isValid:!1,error:"Format d'URL invalide"}}function Sye(e,t){const n=Number(e);return isNaN(n)?{isValid:!1,error:"Doit être un nombre valide"}:t.validation?.min!==void 0&&n<Number(t.validation.min)?{isValid:!1,error:`Doit être ≥ ${t.validation.min}`}:t.validation?.max!==void 0&&n>Number(t.validation.max)?{isValid:!1,error:`Doit être ≤ ${t.validation.max}`}:null}function $ye(e,t){return t.validation?.minDate&&new Date(e)<new Date(t.validation.minDate)?{isValid:!1,error:`Doit être après ${t.validation.minDate}`}:t.validation?.maxDate&&new Date(e)>new Date(t.validation.maxDate)?{isValid:!1,error:`Doit être avant ${t.validation.maxDate}`}:null}function qye(e,t){if(t.validation?.acceptedTypes){const n=t.validation.acceptedTypes.split(","),c=e.type;if(!n.some(i=>c.match(i.replace("*",".*"))))return{isValid:!1,error:`Type de fichier non supporté: ${c}`}}return t.validation?.maxFileSize&&e.size>t.validation.maxFileSize?{isValid:!1,error:`Fichier trop volumineux (max ${t.validation.maxFileSize/1048576}MB)`}:null}function Aye(e,t){return t.validation?t.validation.minLength&&e.length<t.validation.minLength?{isValid:!1,error:`Minimum ${t.validation.minLength} caractères`}:t.validation.maxLength&&e.length>t.validation.maxLength?{isValid:!1,error:`Maximum ${t.validation.maxLength} caractères`}:t.validation.pattern&&!new RegExp(t.validation.pattern).test(e)?{isValid:!1,error:"Format invalide"}:null:null}function YL(e,t){const n=wye(e,t);if(n)return n;if(Cye(e))return{isValid:!0};const c=e.toString();switch(t.type){case"email":{const r=jye(c);if(r)return r;break}case"url":{const r=Nye(c);if(r)return r;break}case"number":{const r=Sye(e,t);if(r)return r;break}case"date":case"month":case"week":case"time":case"datetime-local":{const r=$ye(e,t);if(r)return r;break}case"file":{const r=qye(e,t);if(r)return r;break}}const i=Aye(c,t);return i||{isValid:!0}}function SA(e,t){const n={};let c=!0;for(const i of t){const r=YL(e[i.name],i);r.isValid||(n[i.name]=r.error,c=!1)}return{isValid:c,errors:n}}const zye="_formContainer_14ads_1",Pye="_headerLine_14ads_17",Vye="_formTitle_14ads_25",Tye="_formDescription_14ads_30",Dye="_sectionTitle_14ads_37",Hye="_sectionHelp_14ads_44",Bye="_fieldHelp_14ads_50",Rye="_gridContainer_14ads_58",Fye="_fieldGridItem_14ads_70",Eye="_sectionFull_14ads_105",Oye="_formFooter_14ads_110",Uye="_footerLeft_14ads_118",Wye="_footerRight_14ads_119",Gye="_cancelLink_14ads_125",Kye="_submitButton_14ads_136",Zye="_fieldLabel_14ads_148",Xye="_inputWrapper_14ads_163",Yye="_inputInner_14ads_187",Jye="_hasPrefix_14ads_196",Qye="_inputBase_14ads_196",e4e="_iconPrefix_14ads_292",t4e="_iconSuffix_14ads_293",a4e="_passwordToggle_14ads_319",n4e="_fieldError_14ads_365",o4e="_fieldInvalid_14ads_372",_e={formContainer:zye,headerLine:Pye,formTitle:Vye,formDescription:Tye,sectionTitle:Dye,sectionHelp:Hye,fieldHelp:Bye,gridContainer:Rye,fieldGridItem:Fye,sectionFull:Eye,formFooter:Oye,footerLeft:Uye,footerRight:Wye,cancelLink:Gye,submitButton:Kye,fieldLabel:Zye,inputWrapper:Xye,inputInner:Yye,hasPrefix:Jye,inputBase:Qye,iconPrefix:e4e,iconSuffix:t4e,passwordToggle:a4e,fieldError:n4e,fieldInvalid:o4e},$A=({field:e,value:t,onChange:n,onBlur:c,error:i,touched:r})=>{const[s,d]=y.useState(!1),l=e.type==="password",h=e.attributes?.showPasswordToggle??!0,u=l?s?"text":"password":e.type,p=e.attributes?.iconComponent??(e.attributes?.icon?At[e.attributes.icon]:null),k=e.attributes?.iconPosition??"suffix",f=g=>{n(g.target.value)};return o.jsxs("div",{className:_e.inputWrapper,children:[o.jsx("label",{className:`${_e.fieldLabel} ${e.required?"required":""}`,htmlFor:e.name,children:e.label}),o.jsxs("div",{className:`${_e.inputInner} ${p&&k==="prefix"?_e.hasPrefix:""}`,children:[p&&k==="prefix"&&o.jsx("span",{className:_e.iconPrefix,children:o.jsx(p,{size:16})}),o.jsx("input",{id:e.name,name:e.name,type:u,placeholder:e.placeholder,className:`${_e.inputBase} ${i?_e.fieldInvalid:""}`,value:t??"",onChange:f,onBlur:c,disabled:!!e.disabled,"aria-invalid":!!i,"aria-describedby":e.help?`${e.name}-help`:void 0}),l&&h&&o.jsx("button",{type:"button","aria-label":s?"Masquer le mot de passe":"Afficher le mot de passe",className:_e.passwordToggle,onClick:()=>d(g=>!g),children:s?o.jsx(J1,{size:16}):o.jsx(Q1,{size:16})}),p&&k==="suffix"&&!l&&o.jsx("span",{className:_e.iconSuffix,children:o.jsx(p,{size:16})})]}),r&&i&&o.jsx("span",{className:_e.fieldError,children:i})]})},c4e="_fieldGroup_yb3zi_7",i4e="_fieldLabel_yb3zi_11",r4e="_required_yb3zi_17",s4e="_fieldInput_yb3zi_22",d4e="_fieldInvalid_yb3zi_40",l4e="_fieldValid_yb3zi_44",h4e="_fieldError_yb3zi_48",u4e="_radioGroup_yb3zi_57",Zt={fieldGroup:c4e,fieldLabel:i4e,required:r4e,fieldInput:s4e,fieldInvalid:d4e,fieldValid:l4e,fieldError:h4e,radioGroup:u4e},ib=({field:e,children:t,error:n,touched:c})=>{const i=c&&n;return o.jsxs("div",{className:Zt.fieldGroup,children:[e.type!=="checkbox"&&e.type!=="radio"&&o.jsx("label",{className:`${Zt.fieldLabel} ${e.required?Zt.required:""}`,children:e.label}),t,i&&o.jsx("span",{className:Zt.fieldError,children:n})]})},qA=({field:e,value:t,onChange:n,onBlur:c,error:i,touched:r})=>{const s=r&&i,d=r&&!i&&t,l=["form-control",Zt.fieldInput,s?Zt.fieldInvalid:"",d?Zt.fieldValid:""].filter(Boolean).join(" ");return o.jsx(ib,{field:e,error:i,touched:r,children:o.jsx("textarea",{className:l,placeholder:e.placeholder,value:t||"",onChange:h=>n(h.target.value),onBlur:c,rows:4})})},p4e="_wrapper_117u4_1",y4e="_wrapperInvalid_117u4_15",k4e="_nativeSelect_117u4_19",m4e="_display_117u4_30",f4e="_topLabel_117u4_37",g4e="_valueLine_117u4_45",v4e="_valuePlaceholder_117u4_53",x4e="_valueActive_117u4_57",_4e="_caret_117u4_61",M4e="_error_117u4_75",L4e="_optionStyle_117u4_89",rt={wrapper:p4e,wrapperInvalid:y4e,nativeSelect:k4e,display:m4e,topLabel:f4e,valueLine:g4e,valuePlaceholder:v4e,valueActive:x4e,caret:_4e,error:M4e,optionStyle:L4e},qC=({field:e,value:t,onChange:n,onBlur:c,error:i,touched:r})=>{const s=!!(r&&i),d=e.label||"",l=e.placeholder||"",h=e.options?.find(u=>String(u.value)===String(t))?.label??"";return o.jsxs("div",{className:`${rt.wrapper} ${s?rt.wrapperInvalid:""} ${t?rt.wrapperHasValue:""}`,children:[o.jsxs("select",{id:e.name,name:e.name,className:rt.nativeSelect,value:t??"",onChange:u=>n(u.target.value),onBlur:c,"aria-invalid":s,"aria-label":d,children:[o.jsx("option",{value:"",disabled:!0,hidden:!0,children:l||`Sélectionnez ${d?.toLowerCase()||""}`}),e.options?.map((u,p)=>o.jsx("option",{value:u.value,className:rt.optionStyle,children:u.label},p))]}),o.jsxs("div",{className:rt.display,children:[d&&o.jsx("span",{className:rt.topLabel,children:d}),o.jsx("span",{className:`${rt.valueLine} ${t?rt.valueActive:rt.valuePlaceholder}`,children:t?h:l}),o.jsx("span",{className:rt.caret,"aria-hidden":"true"})]}),s&&o.jsx("span",{className:rt.error,children:i})]})},AA=({field:e,value:t,onChange:n,onBlur:c,error:i,touched:r})=>o.jsx(ib,{field:e,error:i,touched:r,children:o.jsxs("div",{className:"form-check",children:[o.jsx("input",{type:"checkbox",className:"form-check-input",id:e.name,checked:!!t,onChange:s=>n(s.target.checked),onBlur:c}),o.jsx("label",{className:"form-check-label",htmlFor:e.name,children:e.label})]})}),zA=({field:e,value:t,onChange:n,onBlur:c,error:i,touched:r})=>o.jsx(ib,{field:e,error:i,touched:r,children:o.jsx("div",{className:Zt.radioGroup,children:e.options?.map(s=>o.jsxs("div",{className:"form-check",children:[o.jsx("input",{type:"radio",className:"form-check-input",id:`${e.name}-${s.value}`,name:e.name,value:s.value,checked:t===s.value,onChange:d=>n(d.target.value),onBlur:c}),o.jsx("label",{className:"form-check-label",htmlFor:`${e.name}-${s.value}`,children:s.label})]},s.value))})}),b4e="_fileInputContainer_r2guc_3",I4e="_customFileInput_r2guc_8",w4e="_fileInputLabel_r2guc_12",C4e="_dragOver_r2guc_39",j4e="_uploadIcon_r2guc_44",N4e="_uploadText_r2guc_50",S4e="_uploadHint_r2guc_56",$4e="_fileList_r2guc_60",q4e="_fileListTitle_r2guc_69",A4e="_fileItem_r2guc_80",z4e="_fileIcon_r2guc_96",P4e="_fileName_r2guc_102",V4e="_fileSize_r2guc_108",T4e="_removeButton_r2guc_114",D4e="_errorText_r2guc_129",Re={fileInputContainer:b4e,customFileInput:I4e,fileInputLabel:w4e,dragOver:C4e,uploadIcon:j4e,uploadText:N4e,uploadHint:S4e,fileList:$4e,fileListTitle:q4e,fileItem:A4e,fileIcon:z4e,fileName:P4e,fileSize:V4e,removeButton:T4e,errorText:D4e},PA=({field:e,value:t,onChange:n,onBlur:c,error:i,touched:r})=>{const s=y.useRef(null),[d,l]=y.useState(!1),h=v=>{n(v.target.files)},u=()=>{s.current&&s.current.click()},p=v=>{v.preventDefault(),l(!0)},k=()=>{l(!1)},f=v=>{v.preventDefault(),l(!1),v.dataTransfer.files&&v.dataTransfer.files.length>0&&n(v.dataTransfer.files)},g=v=>{if(!t)return;const _=Array.from(t);_.splice(v,1);const x=new DataTransfer;_.forEach(b=>x.items.add(b)),n(x.files)},m=v=>{if(v===0)return"0 Bytes";const _=1024,x=["Bytes","KB","MB","GB"],b=Math.floor(Math.log(v)/Math.log(_));return parseFloat((v/Math.pow(_,b)).toFixed(2))+" "+x[b]};return o.jsxs("div",{className:`${Re.fileInputContainer} ${r&&i?Re.hasError:""}`,children:[o.jsxs("label",{htmlFor:e.name,className:"form-label",children:[e.label,e.required&&o.jsx("span",{className:"text-danger",children:" *"})]}),o.jsx("input",{type:"file",id:e.name,name:e.name,multiple:e.attributes?.multiple||!1,accept:e.attributes?.accept,onChange:h,onBlur:c,ref:s,className:Re.customFileInput}),o.jsxs("label",{htmlFor:e.name,className:`${Re.fileInputLabel} ${d?Re.dragOver:""}`,onDragOver:p,onDragLeave:k,onDrop:f,onClick:u,tabIndex:0,children:[o.jsx("div",{className:Re.uploadIcon,children:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"currentColor",viewBox:"0 0 16 16",children:[o.jsx("path",{d:"M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"}),o.jsx("path",{d:"M7.646 1.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 2.707V11.5a.5.5 0 0 1-1 0V2.707L5.354 4.854a.5.5 0 1 1-.708-.708l3-3z"})]})}),o.jsx("div",{className:Re.uploadText,children:d?"Déposez vos fichiers ici":"Cliquez ou glissez-déposez pour téléverser"}),o.jsxs("div",{className:Re.uploadHint,children:[e.attributes?.accept||"Tous les fichiers"," ",e.attributes?.multiple?"(Multiple autorisé)":""]})]}),t&&t.length>0&&o.jsxs("div",{className:Re.fileList,children:[o.jsx("div",{className:Re.fileListTitle,children:"Fichiers sélectionnés:"}),o.jsx("ul",{children:Array.from(t).map((v,_)=>o.jsxs("li",{className:Re.fileItem,children:[o.jsx("div",{className:Re.fileIcon,children:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",children:o.jsx("path",{d:"M4 0h5.293A1 1 0 0 1 10 .293L13.707 4a1 1 0 0 1 .293.707V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm5.5 1.5v2a1 1 0 0 0 1 1h2l-3-3z"})})}),o.jsx("div",{className:Re.fileName,children:v.name}),o.jsx("div",{className:Re.fileSize,children:m(v.size)}),o.jsx("button",{type:"button",className:Re.removeButton,onClick:x=>{x.stopPropagation(),g(_)},"aria-label":`Supprimer ${v.name}`,children:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",children:[o.jsx("path",{d:"M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z"}),o.jsx("path",{fillRule:"evenodd",d:"M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z"})]})})]},_))})]}),r&&i&&o.jsx("div",{className:Re.errorText,children:i})]})},H4e="_container_ecah4_2",B4e="_label_ecah4_6",R4e="_requiredIndicator_ecah4_13",F4e="_input_ecah4_18",E4e="_inputError_ecah4_49",O4e="_errorMessage_ecah4_58",p1={container:H4e,label:B4e,requiredIndicator:R4e,input:F4e,inputError:E4e,errorMessage:O4e},VA=({field:e,value:t,onChange:n,onBlur:c,error:i,touched:r,labelColor:s="black",backgroundColor:d="white"})=>{const l=e.type==="month"?"month":e.type==="week"?"week":e.type==="time"?"time":e.type==="datetime-local"?"datetime-local":"date";return o.jsxs("div",{className:p1.container,children:[o.jsxs("label",{htmlFor:e.name,className:p1.label,style:{color:s},children:[e.label,e.required&&o.jsx("span",{className:p1.requiredIndicator,children:"*"})]}),o.jsx("input",{type:l,id:e.name,name:e.name,value:t||"",onChange:h=>n(h.target.value),onBlur:c,className:`${p1.input} ${r&&i?p1.inputError:""}`,style:{color:s,backgroundColor:d},min:e.validation?.min,max:e.validation?.max,step:e.type==="time"?e.attributes?.step:void 0,disabled:e.disabled}),r&&i&&o.jsx("div",{className:p1.errorMessage,children:i})]})},U4e="_rangeContainer_cyqk3_3",W4e={rangeContainer:U4e},TA=({field:e,value:t,onChange:n,onBlur:c,error:i,touched:r})=>o.jsxs("div",{className:`mb-3 ${W4e.rangeContainer}`,children:[o.jsxs("label",{htmlFor:e.name,className:"form-label",children:[e.label,": ",t,e.required&&o.jsx("span",{className:"text-danger",children:" *"})]}),o.jsx("input",{type:"range",id:e.name,name:e.name,value:t||0,onChange:s=>n(s.target.value),onBlur:c,className:`form-range ${r&&i?"is-invalid":""}`,min:e.validation?.min||0,max:e.validation?.max||100,step:e.attributes?.step||1}),r&&i&&o.jsx("div",{className:"invalid-feedback",children:i})]}),G4e="_colorPickerContainer_1wxgj_2",K4e="_colorInput_1wxgj_19",Z4e="_colorValue_1wxgj_39",Rb={colorPickerContainer:G4e,colorInput:K4e,colorValue:Z4e},DA=({field:e,value:t,onChange:n,onBlur:c,error:i,touched:r})=>o.jsxs("div",{className:"mb-3",children:[o.jsxs("label",{htmlFor:e.name,className:"form-label",children:[e.label,e.required&&o.jsx("span",{className:"text-danger",children:" *"})]}),o.jsxs("div",{className:Rb.colorPickerContainer,children:[o.jsx("input",{type:"color",id:e.name,name:e.name,value:t||"#000000",onChange:s=>n(s.target.value),onBlur:c,className:Rb.colorInput}),o.jsx("span",{className:Rb.colorValue,children:t})]}),r&&i&&o.jsx("div",{className:"invalid-feedback",children:i})]}),HA=({field:e,value:t,onChange:n,onBlur:c,error:i,touched:r})=>{const s=["date","month","week","time","datetime-local"];if(e.type==="file")return o.jsx(PA,{field:e,value:t,onChange:n,onBlur:c,error:i,touched:r});if(s.includes(e.type))return o.jsx(VA,{field:e,value:t,onChange:n,onBlur:c,error:i,touched:r});if(e.type==="range")return o.jsx(TA,{field:e,value:t,onChange:n,onBlur:c,error:i,touched:r});if(e.type==="color")return o.jsx(DA,{field:e,value:t,onChange:n,onBlur:c,error:i,touched:r});switch(e.type){case"textarea":return o.jsx(qA,{field:e,value:t,onChange:n,onBlur:c,error:i,touched:r});case"select":return o.jsx(qC,{field:e,value:t,onChange:n,onBlur:c,error:i,touched:r});case"checkbox":return o.jsx(AA,{field:e,value:t,onChange:n,onBlur:c,error:i,touched:r});case"radio":return o.jsx(zA,{field:e,value:t,onChange:n,onBlur:c,error:i,touched:r});default:return o.jsx($A,{field:e,value:t,onChange:n,onBlur:c,error:i,touched:r})}};var Fb,wN;function X4e(){if(wN)return Fb;wN=1;function e(){this.__data__=[],this.size=0}return Fb=e,Fb}var Eb,CN;function BA(){if(CN)return Eb;CN=1;function e(t,n){return t===n||t!==t&&n!==n}return Eb=e,Eb}var Ob,jN;function rb(){if(jN)return Ob;jN=1;var e=BA();function t(n,c){for(var i=n.length;i--;)if(e(n[i][0],c))return i;return-1}return Ob=t,Ob}var Ub,NN;function Y4e(){if(NN)return Ub;NN=1;var e=rb(),t=Array.prototype,n=t.splice;function c(i){var r=this.__data__,s=e(r,i);if(s<0)return!1;var d=r.length-1;return s==d?r.pop():n.call(r,s,1),--this.size,!0}return Ub=c,Ub}var Wb,SN;function J4e(){if(SN)return Wb;SN=1;var e=rb();function t(n){var c=this.__data__,i=e(c,n);return i<0?void 0:c[i][1]}return Wb=t,Wb}var Gb,$N;function Q4e(){if($N)return Gb;$N=1;var e=rb();function t(n){return e(this.__data__,n)>-1}return Gb=t,Gb}var Kb,qN;function e5e(){if(qN)return Kb;qN=1;var e=rb();function t(n,c){var i=this.__data__,r=e(i,n);return r<0?(++this.size,i.push([n,c])):i[r][1]=c,this}return Kb=t,Kb}var Zb,AN;function sb(){if(AN)return Zb;AN=1;var e=X4e(),t=Y4e(),n=J4e(),c=Q4e(),i=e5e();function r(s){var d=-1,l=s==null?0:s.length;for(this.clear();++d<l;){var h=s[d];this.set(h[0],h[1])}}return r.prototype.clear=e,r.prototype.delete=t,r.prototype.get=n,r.prototype.has=c,r.prototype.set=i,Zb=r,Zb}var Xb,zN;function t5e(){if(zN)return Xb;zN=1;var e=sb();function t(){this.__data__=new e,this.size=0}return Xb=t,Xb}var Yb,PN;function a5e(){if(PN)return Yb;PN=1;function e(t){var n=this.__data__,c=n.delete(t);return this.size=n.size,c}return Yb=e,Yb}var Jb,VN;function n5e(){if(VN)return Jb;VN=1;function e(t){return this.__data__.get(t)}return Jb=e,Jb}var Qb,TN;function o5e(){if(TN)return Qb;TN=1;function e(t){return this.__data__.has(t)}return Qb=e,Qb}var eI,DN;function RA(){if(DN)return eI;DN=1;var e=typeof a.commonjsGlobal=="object"&&a.commonjsGlobal&&a.commonjsGlobal.Object===Object&&a.commonjsGlobal;return eI=e,eI}var tI,HN;function Tt(){if(HN)return tI;HN=1;var e=RA(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return tI=n,tI}var aI,BN;function AC(){if(BN)return aI;BN=1;var e=Tt(),t=e.Symbol;return aI=t,aI}var nI,RN;function c5e(){if(RN)return nI;RN=1;var e=AC(),t=Object.prototype,n=t.hasOwnProperty,c=t.toString,i=e?e.toStringTag:void 0;function r(s){var d=n.call(s,i),l=s[i];try{s[i]=void 0;var h=!0}catch{}var u=c.call(s);return h&&(d?s[i]=l:delete s[i]),u}return nI=r,nI}var oI,FN;function i5e(){if(FN)return oI;FN=1;var e=Object.prototype,t=e.toString;function n(c){return t.call(c)}return oI=n,oI}var cI,EN;function db(){if(EN)return cI;EN=1;var e=AC(),t=c5e(),n=i5e(),c="[object Null]",i="[object Undefined]",r=e?e.toStringTag:void 0;function s(d){return d==null?d===void 0?i:c:r&&r in Object(d)?t(d):n(d)}return cI=s,cI}var iI,ON;function FA(){if(ON)return iI;ON=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return iI=e,iI}var rI,UN;function EA(){if(UN)return rI;UN=1;var e=db(),t=FA(),n="[object AsyncFunction]",c="[object Function]",i="[object GeneratorFunction]",r="[object Proxy]";function s(d){if(!t(d))return!1;var l=e(d);return l==c||l==i||l==n||l==r}return rI=s,rI}var sI,WN;function r5e(){if(WN)return sI;WN=1;var e=Tt(),t=e["__core-js_shared__"];return sI=t,sI}var dI,GN;function s5e(){if(GN)return dI;GN=1;var e=r5e(),t=function(){var c=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}();function n(c){return!!t&&t in c}return dI=n,dI}var lI,KN;function OA(){if(KN)return lI;KN=1;var e=Function.prototype,t=e.toString;function n(c){if(c!=null){try{return t.call(c)}catch{}try{return c+""}catch{}}return""}return lI=n,lI}var hI,ZN;function d5e(){if(ZN)return hI;ZN=1;var e=EA(),t=s5e(),n=FA(),c=OA(),i=/[\\^$.*+?()[\]{}|]/g,r=/^\[object .+?Constructor\]$/,s=Function.prototype,d=Object.prototype,l=s.toString,h=d.hasOwnProperty,u=RegExp("^"+l.call(h).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(k){if(!n(k)||t(k))return!1;var f=e(k)?u:r;return f.test(c(k))}return hI=p,hI}var uI,XN;function l5e(){if(XN)return uI;XN=1;function e(t,n){return t?.[n]}return uI=e,uI}var pI,YN;function z1(){if(YN)return pI;YN=1;var e=d5e(),t=l5e();function n(c,i){var r=t(c,i);return e(r)?r:void 0}return pI=n,pI}var yI,JN;function zC(){if(JN)return yI;JN=1;var e=z1(),t=Tt(),n=e(t,"Map");return yI=n,yI}var kI,QN;function lb(){if(QN)return kI;QN=1;var e=z1(),t=e(Object,"create");return kI=t,kI}var mI,eS;function h5e(){if(eS)return mI;eS=1;var e=lb();function t(){this.__data__=e?e(null):{},this.size=0}return mI=t,mI}var fI,tS;function u5e(){if(tS)return fI;tS=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return fI=e,fI}var gI,aS;function p5e(){if(aS)return gI;aS=1;var e=lb(),t="__lodash_hash_undefined__",n=Object.prototype,c=n.hasOwnProperty;function i(r){var s=this.__data__;if(e){var d=s[r];return d===t?void 0:d}return c.call(s,r)?s[r]:void 0}return gI=i,gI}var vI,nS;function y5e(){if(nS)return vI;nS=1;var e=lb(),t=Object.prototype,n=t.hasOwnProperty;function c(i){var r=this.__data__;return e?r[i]!==void 0:n.call(r,i)}return vI=c,vI}var xI,oS;function k5e(){if(oS)return xI;oS=1;var e=lb(),t="__lodash_hash_undefined__";function n(c,i){var r=this.__data__;return this.size+=this.has(c)?0:1,r[c]=e&&i===void 0?t:i,this}return xI=n,xI}var _I,cS;function m5e(){if(cS)return _I;cS=1;var e=h5e(),t=u5e(),n=p5e(),c=y5e(),i=k5e();function r(s){var d=-1,l=s==null?0:s.length;for(this.clear();++d<l;){var h=s[d];this.set(h[0],h[1])}}return r.prototype.clear=e,r.prototype.delete=t,r.prototype.get=n,r.prototype.has=c,r.prototype.set=i,_I=r,_I}var MI,iS;function f5e(){if(iS)return MI;iS=1;var e=m5e(),t=sb(),n=zC();function c(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return MI=c,MI}var LI,rS;function g5e(){if(rS)return LI;rS=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return LI=e,LI}var bI,sS;function hb(){if(sS)return bI;sS=1;var e=g5e();function t(n,c){var i=n.__data__;return e(c)?i[typeof c=="string"?"string":"hash"]:i.map}return bI=t,bI}var II,dS;function v5e(){if(dS)return II;dS=1;var e=hb();function t(n){var c=e(this,n).delete(n);return this.size-=c?1:0,c}return II=t,II}var wI,lS;function x5e(){if(lS)return wI;lS=1;var e=hb();function t(n){return e(this,n).get(n)}return wI=t,wI}var CI,hS;function _5e(){if(hS)return CI;hS=1;var e=hb();function t(n){return e(this,n).has(n)}return CI=t,CI}var jI,uS;function M5e(){if(uS)return jI;uS=1;var e=hb();function t(n,c){var i=e(this,n),r=i.size;return i.set(n,c),this.size+=i.size==r?0:1,this}return jI=t,jI}var NI,pS;function UA(){if(pS)return NI;pS=1;var e=f5e(),t=v5e(),n=x5e(),c=_5e(),i=M5e();function r(s){var d=-1,l=s==null?0:s.length;for(this.clear();++d<l;){var h=s[d];this.set(h[0],h[1])}}return r.prototype.clear=e,r.prototype.delete=t,r.prototype.get=n,r.prototype.has=c,r.prototype.set=i,NI=r,NI}var SI,yS;function L5e(){if(yS)return SI;yS=1;var e=sb(),t=zC(),n=UA(),c=200;function i(r,s){var d=this.__data__;if(d instanceof e){var l=d.__data__;if(!t||l.length<c-1)return l.push([r,s]),this.size=++d.size,this;d=this.__data__=new n(l)}return d.set(r,s),this.size=d.size,this}return SI=i,SI}var $I,kS;function b5e(){if(kS)return $I;kS=1;var e=sb(),t=t5e(),n=a5e(),c=n5e(),i=o5e(),r=L5e();function s(d){var l=this.__data__=new e(d);this.size=l.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=c,s.prototype.has=i,s.prototype.set=r,$I=s,$I}var qI,mS;function I5e(){if(mS)return qI;mS=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return qI=t,qI}var AI,fS;function w5e(){if(fS)return AI;fS=1;function e(t){return this.__data__.has(t)}return AI=e,AI}var zI,gS;function C5e(){if(gS)return zI;gS=1;var e=UA(),t=I5e(),n=w5e();function c(i){var r=-1,s=i==null?0:i.length;for(this.__data__=new e;++r<s;)this.add(i[r])}return c.prototype.add=c.prototype.push=t,c.prototype.has=n,zI=c,zI}var PI,vS;function j5e(){if(vS)return PI;vS=1;function e(t,n){for(var c=-1,i=t==null?0:t.length;++c<i;)if(n(t[c],c,t))return!0;return!1}return PI=e,PI}var VI,xS;function N5e(){if(xS)return VI;xS=1;function e(t,n){return t.has(n)}return VI=e,VI}var TI,_S;function WA(){if(_S)return TI;_S=1;var e=C5e(),t=j5e(),n=N5e(),c=1,i=2;function r(s,d,l,h,u,p){var k=l&c,f=s.length,g=d.length;if(f!=g&&!(k&&g>f))return!1;var m=p.get(s),v=p.get(d);if(m&&v)return m==d&&v==s;var _=-1,x=!0,b=l&i?new e:void 0;for(p.set(s,d),p.set(d,s);++_<f;){var I=s[_],w=d[_];if(h)var j=k?h(w,I,_,d,s,p):h(I,w,_,s,d,p);if(j!==void 0){if(j)continue;x=!1;break}if(b){if(!t(d,function(M,L){if(!n(b,L)&&(I===M||u(I,M,l,h,p)))return b.push(L)})){x=!1;break}}else if(!(I===w||u(I,w,l,h,p))){x=!1;break}}return p.delete(s),p.delete(d),x}return TI=r,TI}var DI,MS;function S5e(){if(MS)return DI;MS=1;var e=Tt(),t=e.Uint8Array;return DI=t,DI}var HI,LS;function $5e(){if(LS)return HI;LS=1;function e(t){var n=-1,c=Array(t.size);return t.forEach(function(i,r){c[++n]=[r,i]}),c}return HI=e,HI}var BI,bS;function q5e(){if(bS)return BI;bS=1;function e(t){var n=-1,c=Array(t.size);return t.forEach(function(i){c[++n]=i}),c}return BI=e,BI}var RI,IS;function A5e(){if(IS)return RI;IS=1;var e=AC(),t=S5e(),n=BA(),c=WA(),i=$5e(),r=q5e(),s=1,d=2,l="[object Boolean]",h="[object Date]",u="[object Error]",p="[object Map]",k="[object Number]",f="[object RegExp]",g="[object Set]",m="[object String]",v="[object Symbol]",_="[object ArrayBuffer]",x="[object DataView]",b=e?e.prototype:void 0,I=b?b.valueOf:void 0;function w(j,M,L,S,C,N,$){switch(L){case x:if(j.byteLength!=M.byteLength||j.byteOffset!=M.byteOffset)return!1;j=j.buffer,M=M.buffer;case _:return!(j.byteLength!=M.byteLength||!N(new t(j),new t(M)));case l:case h:case k:return n(+j,+M);case u:return j.name==M.name&&j.message==M.message;case f:case m:return j==M+"";case p:var q=i;case g:var P=S&s;if(q||(q=r),j.size!=M.size&&!P)return!1;var D=$.get(j);if(D)return D==M;S|=d,$.set(j,M);var V=c(q(j),q(M),S,C,N,$);return $.delete(j),V;case v:if(I)return I.call(j)==I.call(M)}return!1}return RI=w,RI}var FI,wS;function z5e(){if(wS)return FI;wS=1;function e(t,n){for(var c=-1,i=n.length,r=t.length;++c<i;)t[r+c]=n[c];return t}return FI=e,FI}var EI,CS;function PC(){if(CS)return EI;CS=1;var e=Array.isArray;return EI=e,EI}var OI,jS;function P5e(){if(jS)return OI;jS=1;var e=z5e(),t=PC();function n(c,i,r){var s=i(c);return t(c)?s:e(s,r(c))}return OI=n,OI}var UI,NS;function V5e(){if(NS)return UI;NS=1;function e(t,n){for(var c=-1,i=t==null?0:t.length,r=0,s=[];++c<i;){var d=t[c];n(d,c,t)&&(s[r++]=d)}return s}return UI=e,UI}var WI,SS;function T5e(){if(SS)return WI;SS=1;function e(){return[]}return WI=e,WI}var GI,$S;function D5e(){if($S)return GI;$S=1;var e=V5e(),t=T5e(),n=Object.prototype,c=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,r=i?function(s){return s==null?[]:(s=Object(s),e(i(s),function(d){return c.call(s,d)}))}:t;return GI=r,GI}var KI,qS;function H5e(){if(qS)return KI;qS=1;function e(t,n){for(var c=-1,i=Array(t);++c<t;)i[c]=n(c);return i}return KI=e,KI}var ZI,AS;function ub(){if(AS)return ZI;AS=1;function e(t){return t!=null&&typeof t=="object"}return ZI=e,ZI}var XI,zS;function B5e(){if(zS)return XI;zS=1;var e=db(),t=ub(),n="[object Arguments]";function c(i){return t(i)&&e(i)==n}return XI=c,XI}var YI,PS;function R5e(){if(PS)return YI;PS=1;var e=B5e(),t=ub(),n=Object.prototype,c=n.hasOwnProperty,i=n.propertyIsEnumerable,r=e(function(){return arguments}())?e:function(s){return t(s)&&c.call(s,"callee")&&!i.call(s,"callee")};return YI=r,YI}var E1={exports:{}},JI,VS;function F5e(){if(VS)return JI;VS=1;function e(){return!1}return JI=e,JI}E1.exports;var TS;function GA(){return TS||(TS=1,function(e,t){var n=Tt(),c=F5e(),i=t&&!t.nodeType&&t,r=i&&!0&&e&&!e.nodeType&&e,s=r&&r.exports===i,d=s?n.Buffer:void 0,l=d?d.isBuffer:void 0,h=l||c;e.exports=h}(E1,E1.exports)),E1.exports}var QI,DS;function E5e(){if(DS)return QI;DS=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(c,i){var r=typeof c;return i=i??e,!!i&&(r=="number"||r!="symbol"&&t.test(c))&&c>-1&&c%1==0&&c<i}return QI=n,QI}var ew,HS;function KA(){if(HS)return ew;HS=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return ew=t,ew}var tw,BS;function O5e(){if(BS)return tw;BS=1;var e=db(),t=KA(),n=ub(),c="[object Arguments]",i="[object Array]",r="[object Boolean]",s="[object Date]",d="[object Error]",l="[object Function]",h="[object Map]",u="[object Number]",p="[object Object]",k="[object RegExp]",f="[object Set]",g="[object String]",m="[object WeakMap]",v="[object ArrayBuffer]",_="[object DataView]",x="[object Float32Array]",b="[object Float64Array]",I="[object Int8Array]",w="[object Int16Array]",j="[object Int32Array]",M="[object Uint8Array]",L="[object Uint8ClampedArray]",S="[object Uint16Array]",C="[object Uint32Array]",N={};N[x]=N[b]=N[I]=N[w]=N[j]=N[M]=N[L]=N[S]=N[C]=!0,N[c]=N[i]=N[v]=N[r]=N[_]=N[s]=N[d]=N[l]=N[h]=N[u]=N[p]=N[k]=N[f]=N[g]=N[m]=!1;function $(q){return n(q)&&t(q.length)&&!!N[e(q)]}return tw=$,tw}var aw,RS;function U5e(){if(RS)return aw;RS=1;function e(t){return function(n){return t(n)}}return aw=e,aw}var O1={exports:{}};O1.exports;var FS;function W5e(){return FS||(FS=1,function(e,t){var n=RA(),c=t&&!t.nodeType&&t,i=c&&!0&&e&&!e.nodeType&&e,r=i&&i.exports===c,s=r&&n.process,d=function(){try{var l=i&&i.require&&i.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();e.exports=d}(O1,O1.exports)),O1.exports}var nw,ES;function ZA(){if(ES)return nw;ES=1;var e=O5e(),t=U5e(),n=W5e(),c=n&&n.isTypedArray,i=c?t(c):e;return nw=i,nw}var ow,OS;function G5e(){if(OS)return ow;OS=1;var e=H5e(),t=R5e(),n=PC(),c=GA(),i=E5e(),r=ZA(),s=Object.prototype,d=s.hasOwnProperty;function l(h,u){var p=n(h),k=!p&&t(h),f=!p&&!k&&c(h),g=!p&&!k&&!f&&r(h),m=p||k||f||g,v=m?e(h.length,String):[],_=v.length;for(var x in h)(u||d.call(h,x))&&!(m&&(x=="length"||f&&(x=="offset"||x=="parent")||g&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,_)))&&v.push(x);return v}return ow=l,ow}var cw,US;function K5e(){if(US)return cw;US=1;var e=Object.prototype;function t(n){var c=n&&n.constructor,i=typeof c=="function"&&c.prototype||e;return n===i}return cw=t,cw}var iw,WS;function Z5e(){if(WS)return iw;WS=1;function e(t,n){return function(c){return t(n(c))}}return iw=e,iw}var rw,GS;function X5e(){if(GS)return rw;GS=1;var e=Z5e(),t=e(Object.keys,Object);return rw=t,rw}var sw,KS;function Y5e(){if(KS)return sw;KS=1;var e=K5e(),t=X5e(),n=Object.prototype,c=n.hasOwnProperty;function i(r){if(!e(r))return t(r);var s=[];for(var d in Object(r))c.call(r,d)&&d!="constructor"&&s.push(d);return s}return sw=i,sw}var dw,ZS;function J5e(){if(ZS)return dw;ZS=1;var e=EA(),t=KA();function n(c){return c!=null&&t(c.length)&&!e(c)}return dw=n,dw}var lw,XS;function Q5e(){if(XS)return lw;XS=1;var e=G5e(),t=Y5e(),n=J5e();function c(i){return n(i)?e(i):t(i)}return lw=c,lw}var hw,YS;function eke(){if(YS)return hw;YS=1;var e=P5e(),t=D5e(),n=Q5e();function c(i){return e(i,n,t)}return hw=c,hw}var uw,JS;function tke(){if(JS)return uw;JS=1;var e=eke(),t=1,n=Object.prototype,c=n.hasOwnProperty;function i(r,s,d,l,h,u){var p=d&t,k=e(r),f=k.length,g=e(s),m=g.length;if(f!=m&&!p)return!1;for(var v=f;v--;){var _=k[v];if(!(p?_ in s:c.call(s,_)))return!1}var x=u.get(r),b=u.get(s);if(x&&b)return x==s&&b==r;var I=!0;u.set(r,s),u.set(s,r);for(var w=p;++v<f;){_=k[v];var j=r[_],M=s[_];if(l)var L=p?l(M,j,_,s,r,u):l(j,M,_,r,s,u);if(!(L===void 0?j===M||h(j,M,d,l,u):L)){I=!1;break}w||(w=_=="constructor")}if(I&&!w){var S=r.constructor,C=s.constructor;S!=C&&"constructor"in r&&"constructor"in s&&!(typeof S=="function"&&S instanceof S&&typeof C=="function"&&C instanceof C)&&(I=!1)}return u.delete(r),u.delete(s),I}return uw=i,uw}var pw,QS;function ake(){if(QS)return pw;QS=1;var e=z1(),t=Tt(),n=e(t,"DataView");return pw=n,pw}var yw,e$;function nke(){if(e$)return yw;e$=1;var e=z1(),t=Tt(),n=e(t,"Promise");return yw=n,yw}var kw,t$;function oke(){if(t$)return kw;t$=1;var e=z1(),t=Tt(),n=e(t,"Set");return kw=n,kw}var mw,a$;function cke(){if(a$)return mw;a$=1;var e=z1(),t=Tt(),n=e(t,"WeakMap");return mw=n,mw}var fw,n$;function ike(){if(n$)return fw;n$=1;var e=ake(),t=zC(),n=nke(),c=oke(),i=cke(),r=db(),s=OA(),d="[object Map]",l="[object Object]",h="[object Promise]",u="[object Set]",p="[object WeakMap]",k="[object DataView]",f=s(e),g=s(t),m=s(n),v=s(c),_=s(i),x=r;return(e&&x(new e(new ArrayBuffer(1)))!=k||t&&x(new t)!=d||n&&x(n.resolve())!=h||c&&x(new c)!=u||i&&x(new i)!=p)&&(x=function(b){var I=r(b),w=I==l?b.constructor:void 0,j=w?s(w):"";if(j)switch(j){case f:return k;case g:return d;case m:return h;case v:return u;case _:return p}return I}),fw=x,fw}var gw,o$;function rke(){if(o$)return gw;o$=1;var e=b5e(),t=WA(),n=A5e(),c=tke(),i=ike(),r=PC(),s=GA(),d=ZA(),l=1,h="[object Arguments]",u="[object Array]",p="[object Object]",k=Object.prototype,f=k.hasOwnProperty;function g(m,v,_,x,b,I){var w=r(m),j=r(v),M=w?u:i(m),L=j?u:i(v);M=M==h?p:M,L=L==h?p:L;var S=M==p,C=L==p,N=M==L;if(N&&s(m)){if(!s(v))return!1;w=!0,S=!1}if(N&&!S)return I||(I=new e),w||d(m)?t(m,v,_,x,b,I):n(m,v,M,_,x,b,I);if(!(_&l)){var $=S&&f.call(m,"__wrapped__"),q=C&&f.call(v,"__wrapped__");if($||q){var P=$?m.value():m,D=q?v.value():v;return I||(I=new e),b(P,D,_,x,I)}}return N?(I||(I=new e),c(m,v,_,x,b,I)):!1}return gw=g,gw}var vw,c$;function ske(){if(c$)return vw;c$=1;var e=rke(),t=ub();function n(c,i,r,s,d){return c===i?!0:c==null||i==null||!t(c)&&!t(i)?c!==c&&i!==i:e(c,i,r,s,n,d)}return vw=n,vw}var xw,i$;function dke(){if(i$)return xw;i$=1;var e=ske();function t(n,c){return e(n,c)}return xw=t,xw}var lke=dke();const hke=a.getDefaultExportFromCjs(lke),uke=({schema:e,initialData:t={},onSubmit:n,submitLabel:c,submitIcon:i,submitIconPosition:r="left",onCancel:s,cancelLabel:d="Retour",cancelIcon:l})=>{const[h,u]=y.useState(t),[p,k]=y.useState({}),[f,g]=y.useState({}),[m,v]=y.useState(!1),_=y.useRef(t);y.useEffect(()=>{hke(_.current,t)||(u(t),_.current=t)},[t]);const x=(L,S)=>{const C={...h,[L]:S};if(u(C),f[L]){const N=e.fields.find($=>$.name===L);if(N){const $=YL(S,N);k(q=>({...q,[L]:$.isValid?"":$.error}))}}},b=L=>{if(!f[L]){g(C=>({...C,[L]:!0}));const S=e.fields.find(C=>C.name===L);if(S){const C=YL(h[L],S);k(N=>({...N,[L]:C.isValid?"":C.error}))}}},I=async L=>{L.preventDefault(),v(!0);const S=e.fields.reduce((N,$)=>($.type!=="section"&&(N[$.name]=!0),N),{});g(S);const C=SA(h,e.fields.filter(N=>N.type!=="section"));if(k(C.errors),C.isValid)try{await n(h)}catch(N){console.error("Erreur lors de la soumission:",N),k($=>({...$,__global:"Une erreur est survenue lors de la soumission"}))}v(!1)},w=l?At[l]:null,j=i&&At[i]||e.submitIcon&&At[e.submitIcon]||null,M=e.columns&&e.columns>0?Math.floor(e.columns):12;return o.jsxs("div",{className:_e.formContainer,children:[o.jsx("div",{className:_e.headerLine,children:o.jsx("h2",{className:_e.formTitle,children:e.title})}),e.description&&o.jsx("p",{className:_e.formDescription,children:e.description}),p.__global&&o.jsx("div",{className:`alert alert-danger ${_e.globalError}`,children:p.__global}),o.jsxs("form",{onSubmit:I,children:[o.jsx("div",{className:_e.gridContainer,style:{gridTemplateColumns:`repeat(${M}, minmax(0, 1fr))`},children:e.fields.map(L=>{if(L.type==="section")return o.jsxs("div",{className:_e.sectionFull,children:[o.jsx("h5",{className:_e.sectionTitle,children:L.label}),L.help&&o.jsx("p",{className:_e.sectionHelp,children:L.help})]},L.name);const C={gridColumn:`span ${Math.max(1,Math.min(M,L.gridCol??M))}`};return o.jsxs("div",{className:_e.fieldGridItem,style:C,children:[o.jsx(HA,{field:L,value:h[L.name],onChange:N=>x(L.name,N),onBlur:()=>b(L.name),error:p[L.name],touched:f[L.name]}),L.help&&o.jsx("small",{className:_e.fieldHelp,children:L.help})]},L.name)})}),o.jsxs("div",{className:_e.formFooter,children:[o.jsx("div",{className:_e.footerLeft,children:s&&o.jsxs("button",{type:"button",className:_e.cancelLink,onClick:s,children:[w&&o.jsx(w,{size:16,className:"me-2"})," ",d]})}),o.jsx("div",{className:_e.footerRight,children:o.jsx(BL,{type:"submit",variant:"primary",size:"md",className:_e.submitButton,disabled:m,children:m?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"spinner-border spinner-border-sm me-2",role:"status"}),"Validation..."]}):o.jsxs(o.Fragment,{children:[j&&(r==="left"||e.submitIconPosition==="left")&&o.jsx(j,{size:16,className:"me-2"}),c||e.submitText||"Valider",j&&(r==="right"||e.submitIconPosition==="right")&&o.jsx(j,{size:16,className:"ms-2"})]})})})]})]})]})};function pke(e){return{title:e._formTitle||"Formulaire",description:e._formDescription,fields:e._fieldMetadata||[],submitText:e._submitText||"Valider"}}const r$=new Map,Xw=({path:e,style:t,width:n=24,height:c=24,keepColors:i=!1,onClick:r})=>{const s=/^https?:\/\//.test(e),[d,l]=y.useState("");if(y.useEffect(()=>{if(s)return;e&&(async()=>{try{let u=r$.get(e);u||(u=fetch(e).then(m=>{if(!m.ok)throw new Error(`Failed to load ${e}`);return m.text()}),r$.set(e,u));let p=await u;const k=t?.width!==void 0?"100%":`${n}px`,f=t?.height!==void 0?"100%":`${c}px`;i||(p=p.replace(/fill="[^"]*"/g,'fill="currentColor"'),p=p.replace(/fill='[^']*'/g,"fill='currentColor'"));const g=i?`width="${k}" height="${f}"`:`width="${k}" height="${f}" fill="currentColor"`;p=p.replace(/<svg/,`<svg ${g}`),l(p)}catch(u){console.error(`Failed to load icon: ${e}`,u)}})()},[e,s,t?.width,t?.height,n,c]),s){const h=t?.width!==void 0?"100%":`${n}px`,u=t?.height!==void 0?"100%":`${c}px`;return o.jsx("span",{onClick:r,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",color:t?.color||"inherit",...t},children:o.jsx("img",{src:e,alt:"",style:{display:"block",width:h,height:u}})})}return d?o.jsx("span",{onClick:r,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",color:t?.color||"inherit",...t},dangerouslySetInnerHTML:{__html:d}}):null},yke="_container_1gljv_85",kke="_tableWrapper_1gljv_111",mke="_tableControls_1gljv_117",fke="_controlsRight_1gljv_128",gke="_limitedRows_1gljv_151",vke="_table_1gljv_111",xke="_headerCell_1gljv_206",_ke="_headerContent_1gljv_220",Mke="_headerWords_1gljv_229",Lke="_headerWord_1gljv_229",bke="_cellContent_1gljv_276",Ike="_alignLeft_1gljv_286",wke="_alignCenter_1gljv_290",Cke="_alignRight_1gljv_294",jke="_tableCell_1gljv_298",Nke="_tableRow_1gljv_308",Ske="_emptyRow_1gljv_385",$ke="_toggleFiltersButton_1gljv_393",qke="_toggleSortButton_1gljv_394",Ake="_buttonTextCompact_1gljv_415",zke="_uppercaseSmall_1gljv_450",Pke="_filtersPanel_1gljv_463",Vke="_filtersPanelInline_1gljv_481",Tke="_filtersPanelHorizontal_1gljv_492",Dke="_filtersRow_1gljv_492",Hke="_filtersActionsHorizontal_1gljv_525",Bke="_filterItemInline_1gljv_542",Rke="_filterLabel_1gljv_571",Fke="_filterInput_1gljv_576",Eke="_filterSelect_1gljv_577",Oke="_operatorSelect_1gljv_578",Uke="_operatorInput_1gljv_579",Wke="_activeFilterTag_1gljv_597",Gke="_actionsGroup_1gljv_609",Kke="_applyButton_1gljv_615",Zke="_cancelButton_1gljv_625",Xke="_columnSorterContainer_1gljv_649",Yke="_sorterControls_1gljv_654",Jke="_sortDropdownWrapper_1gljv_659",Qke="_sortDropdown_1gljv_659",eme="_sortDropdownHeader_1gljv_679",tme="_closeButton_1gljv_688",ame="_sortDropdownContent_1gljv_703",nme="_sortDropdownItem_1gljv_709",ome="_sortDirectionButtons_1gljv_734",cme="_sortDirectionButton_1gljv_734",ime="_activeSort_1gljv_757",rme="_sortActions_1gljv_764",sme="_paginationButton_1gljv_842",dme="_pageSizeSelect_1gljv_844",lme="_topPagination_1gljv_853",hme="_paginationContainer_1gljv_861",ume="_leftGroup_1gljv_874",pme="_pageSizeControls_1gljv_882",yme="_paginationInfo_1gljv_908",kme="_paginationControls_1gljv_916",mme="_disabledButton_1gljv_947",fme="_activeButton_1gljv_952",gme="_navigationButton_1gljv_962",vme="_operatorFilterContainer_1gljv_1010",xme="_rangeSeparator_1gljv_1016",_me="_activeFiltersSection_1gljv_1179",Mme="_activeFiltersRow_1gljv_1184",Lme="_activeFiltersList_1gljv_1192",bme="_clearAllButton_1gljv_1200",Ime="_removeFilterButton_1gljv_1221",wme="_sortIndicator_1gljv_1272",Cme="_active_1gljv_349",jme="_clearSortButton_1gljv_1371",Nme="_loaderSpinner_1gljv_2743",Sme="_loaderSpinnerSmall_1gljv_2755",$me="_paginationLoading_1gljv_2772",qme="_loadingButton_1gljv_2780",Ame="_loadingIndicator_1gljv_2791",B={container:yke,tableWrapper:kke,tableControls:mke,controlsRight:fke,limitedRows:gke,table:vke,headerCell:xke,headerContent:_ke,headerWords:Mke,headerWord:Lke,cellContent:bke,alignLeft:Ike,alignCenter:wke,alignRight:Cke,tableCell:jke,tableRow:Nke,emptyRow:Ske,toggleFiltersButton:$ke,toggleSortButton:qke,buttonTextCompact:Ake,uppercaseSmall:zke,filtersPanel:Pke,filtersPanelInline:Vke,filtersPanelHorizontal:Tke,filtersRow:Dke,filtersActionsHorizontal:Hke,filterItemInline:Bke,filterLabel:Rke,filterInput:Fke,filterSelect:Eke,operatorSelect:Oke,operatorInput:Uke,activeFilterTag:Wke,actionsGroup:Gke,applyButton:Kke,cancelButton:Zke,columnSorterContainer:Xke,sorterControls:Yke,sortDropdownWrapper:Jke,sortDropdown:Qke,sortDropdownHeader:eme,closeButton:tme,sortDropdownContent:ame,sortDropdownItem:nme,sortDirectionButtons:ome,sortDirectionButton:cme,activeSort:ime,sortActions:rme,paginationButton:sme,pageSizeSelect:dme,topPagination:lme,paginationContainer:hme,leftGroup:ume,pageSizeControls:pme,paginationInfo:yme,paginationControls:kme,disabledButton:mme,activeButton:fme,navigationButton:gme,operatorFilterContainer:vme,rangeSeparator:xme,activeFiltersSection:_me,activeFiltersRow:Mme,activeFiltersList:Lme,clearAllButton:bme,removeFilterButton:Ime,sortIndicator:wme,active:Cme,clearSortButton:jme,loaderSpinner:Nme,loaderSpinnerSmall:Sme,paginationLoading:$me,loadingButton:qme,loadingIndicator:Ame},zme=({config:e,value:t,onChange:n,disabled:c})=>o.jsxs("select",{value:t===""?"":String(t),onChange:i=>n(i.target.value===""?"":i.target.value==="true"),disabled:c,className:B.filterSelect,children:[o.jsx("option",{value:"",children:`Filtrer ${e.label}...`}),o.jsx("option",{value:"true",children:"Oui"}),o.jsx("option",{value:"false",children:"Non"})]}),Pme=({config:e,value:t,onChange:n,disabled:c})=>o.jsx("input",{type:"date",value:t||"",onChange:i=>n(i.target.value),placeholder:`Filtrer ${e.label}...`,disabled:c,className:B.filterInput}),Vme=({config:e,value:t,onChange:n,disabled:c})=>{const[i,r]=y.useState([]);y.useEffect(()=>{(async()=>{if(e.asyncOptions)try{const l=await e.asyncOptions();r(l??[])}catch(l){console.error("Erreur chargement options MultiSelect:",l),r([])}else r(e.options??[])})()},[e]);const s=d=>{const l=Array.from(d.target.selectedOptions,h=>h.value);n(l)};return o.jsx("select",{multiple:!0,value:t.map(String),onChange:s,disabled:c,className:B.filterMultiSelect,children:i.map((d,l)=>o.jsx("option",{value:String(d.value),children:d.label},l))})},s$=({config:e,value:t,onChange:n,disabled:c})=>{const[i,r]=y.useState(t||""),s=d=>{const l=d.target.value===""?"":Number(d.target.value);r(l),n(l)};return o.jsx("input",{type:"number",value:i,onChange:s,placeholder:e.placeholder||`Filtrer ${e.label}...`,disabled:c,className:B.filterInput})},Tme=({config:e,value:t,onChange:n,disabled:c=!1})=>{const[i,r]=y.useState([]),[s,d]=y.useState(!1);y.useEffect(()=>{(async()=>{if(e.asyncOptions){d(!0);try{const u=await e.asyncOptions();r(u)}catch(u){console.error("Error loading options:",u)}finally{d(!1)}}else r(e.options||[])})()},[e]);const l=h=>{const u=h.target.value;n(u)};return s?o.jsx("div",{children:"Chargement..."}):o.jsxs("select",{value:String(t||""),onChange:l,disabled:c,className:B.filterInput,children:[o.jsx("option",{value:"",children:"Select..."}),i.map(h=>o.jsx("option",{value:h.value,children:h.label},h.value))]})},Dme=({config:e,value:t,onChange:n,disabled:c=!1})=>{const[i,r]=y.useState("");y.useEffect(()=>{r(typeof t=="string"?t:String(t||""))},[t]);const s=d=>{const l=d.target.value;r(l),n(l)};return o.jsx("input",{type:"text",value:i,onChange:s,placeholder:e.placeholder||`Filtrer ${e.label}...`,disabled:c,className:B.filterInput})},Hme=({config:e,value:t,onChange:n,disabled:c=!1})=>{const[i,r]=y.useState(t?.operator||""),[s,d]=y.useState(t?.value||"");y.useEffect(()=>{i&&s&&n({operator:i,value:s})},[i,s,n]);const l=u=>{r(u.target.value)},h=u=>{d(u.target.value)};return o.jsxs("div",{className:B.operatorFilterContainer,children:[o.jsxs("select",{value:i,onChange:l,disabled:c,className:B.operatorSelect,children:[o.jsx("option",{value:"",children:"Sélectionner un opérateur"}),e.operators.map(u=>o.jsx("option",{value:String(u.value),children:u.label},String(u.value)))]}),o.jsx("input",{type:"text",value:s,onChange:h,placeholder:"Valeur",disabled:c||!i,className:B.operatorInput})]})},Bme=({value:e,onChange:t,disabled:n})=>{const c=e||{},i=s=>{t({...c,start:s.target.value})},r=s=>{t({...c,end:s.target.value})};return o.jsxs("div",{className:B.dateRangeContainer,children:[o.jsx("input",{type:"date",value:c.start||"",onChange:i,disabled:n,className:B.filterInput}),o.jsx("span",{className:B.rangeSeparator,children:"→"}),o.jsx("input",{type:"date",value:c.end||"",onChange:r,disabled:n,className:B.filterInput})]})},Rme=({config:e,value:t,onChange:n,disabled:c})=>{switch(e.type){case"text":case"search":return o.jsx(Dme,{config:e,value:t,onChange:n,disabled:c});case"number":return o.jsx(s$,{config:e,value:t,onChange:n,disabled:c});case"range":return o.jsx(s$,{config:e,value:t,onChange:n,disabled:c});case"select":return o.jsx(Tme,{config:e,value:t,onChange:n,disabled:c});case"operator":return o.jsx(Hme,{config:e,value:t,onChange:n,disabled:c});case"multiselect":return o.jsx(Vme,{config:e,value:t,onChange:n,disabled:c});case"date":return o.jsx(Pme,{config:e,value:t,onChange:n,disabled:c});case"daterange":return o.jsx(Bme,{config:e,value:t??{start:"",end:""},onChange:n,disabled:c});case"boolean":return o.jsx(zme,{config:e,value:t,onChange:n,disabled:c});default:return o.jsxs("div",{children:["Type de filtre non supporté: ",e.type]})}},XA=({filters:e,externalFilters:t=[],onFiltersChange:n,onApply:c,isControlled:i=!1})=>{const[r,s]=y.useState([]),[d,l]=y.useState(()=>{const g={};return e.forEach(m=>{m.type==="daterange"?g[m.id]={start:"",end:""}:g[m.id]=m.defaultValue??""}),g});y.useEffect(()=>{if(!i)return;const g={...d??{}};e.forEach(m=>{m.id in g||(g[m.id]=m.type==="daterange"?{start:"",end:""}:m.defaultValue??"")}),(t||[]).forEach(m=>{!m||!m.id||(g[m.id]=m.value)}),l(g),s(t??[])},[i,JSON.stringify(t||[]),JSON.stringify(e.map(g=>g.id))]);const h=i?t:r,u=y.useCallback((g,m)=>{l(v=>({...v,[g]:m}))},[]),p=y.useCallback(async()=>{const g=[],m={...d};for(const[v,_]of Object.entries(m)){const x=e.find(w=>w.id===v);if(!x)continue;let b=_;try{typeof _=="function"&&(b=await _(m)),typeof x.executeOnApply=="function"&&(b=await x.executeOnApply(b,m))}catch{continue}if(x.type==="daterange"){const w=b?.start??"",j=b?.end??"",M=typeof w=="string"?w.trim()==="":!w,L=typeof j=="string"?j.trim()==="":!j;if(M&&L)continue}b==null||typeof b=="string"&&b.trim()===""||Array.isArray(b)&&b.length===0||typeof b=="object"&&!Array.isArray(b)&&Object.keys(b).length===0||g.push({id:v,type:x.type,value:b,label:x.label})}return i?n?.(g):(s(g),c?.(g)),g},[d,e,i,n,c]),k=y.useCallback(g=>{l(m=>({...m,[g]:void 0})),u(g,void 0)},[u]),f=y.useCallback(()=>{const g={};e.forEach(m=>{m.type==="daterange"?g[m.id]={start:"",end:""}:g[m.id]=m.defaultValue??""}),l(g),i?n?.([]):(s([]),c?.([]))},[e,i,n,c]);return{appliedFilters:h,tempFilters:d,updateFilter:u,applyFilters:p,clearFilter:k,clearAllFilters:f}},Fme=(e,t)=>{if(e==null)return!1;const n=t.value;if(n==null)return!1;switch(t.type){case"text":case"search":return String(e).toLowerCase().includes(String(n).toLowerCase());case"number":case"range":return Number(e)===Number(n);case"select":case"multiselect":return Array.isArray(n)?n.includes(e)||n.map(c=>String(c)).includes(String(e)):String(e)===String(n);case"boolean":return!!e==!!n;case"date":return new Date(e).getTime()===new Date(String(n)).getTime();case"daterange":try{if(!n||typeof n!="object")return!1;const c=n;if(!c.start||!c.end)return!1;const i=c.start,r=c.end;if(typeof i!="string"||typeof r!="string"||!i.trim()||!r.trim())return!1;const s=new Date(e).getTime(),d=new Date(i).getTime(),l=new Date(r).getTime();return isNaN(s)||isNaN(d)||isNaN(l)?!1:s>=d&&s<=l}catch(c){return console.error("Error processing daterange filter:",c),!1}case"operator":if(typeof n=="object"&&n!==null){const c=n;if(!("operator"in c)||!("value"in c))return!1;const{operator:i,value:r}=c,s=Number(e),d=Number(r);if(isNaN(s)||isNaN(d))return String(e).includes(String(r));switch(i){case"equals":return s===d;case"gt":return s>d;case"lt":return s<d;case"gte":return s>=d;case"lte":return s<=d;default:return String(e).includes(String(r))}}return!1;default:return String(e).toLowerCase().includes(String(n).toLowerCase())}};function YA(e,t,n="",c={key:null,direction:"asc"},i=1,r=10,s=[]){const d=Math.max(1,r),l=(n||"").trim().toLowerCase(),h=y.useMemo(()=>{let m=e;return l&&(m=m.filter(v=>t.some(_=>{const x=v.data[_.id];return x==null?!1:String(x).toLowerCase().includes(l)}))),s.length>0&&(m=m.filter(v=>s.every(_=>{try{const x=v.data[_.id];return Fme(x,_)}catch(x){return console.error("Error applying filter:",x),!1}}))),m},[e,t,l,s]),u=y.useMemo(()=>{if(!c?.key)return h;const m=c.key;return[...h].sort((v,_)=>{const x=v.data[m],b=_.data[m];if(x==null)return 1;if(b==null)return-1;if(typeof x=="number"&&typeof b=="number")return c.direction==="desc"?b-x:x-b;if(x instanceof Date&&b instanceof Date){const w=x.getTime()-b.getTime();return c.direction==="desc"?-w:w}const I=String(x).localeCompare(String(b),void 0,{numeric:!0,sensitivity:"base"});return c.direction==="desc"?-I:I})},[h,c]),p=u,k=Math.ceil(u.length/d),f=0,g=Math.min(i*d,u.length);return{paginatedData:p,sortedData:u,filteredData:h,totalPages:k,startIndex:f,endIndex:g}}const JA=({value:e})=>e,QA=({value:e})=>y.createElement("a",{href:`mailto:${e}`,className:"email-link"},e),ez=({value:e})=>y.createElement("a",{href:String(e),target:"_blank",rel:"noopener noreferrer",className:"text-link"},e),tz=({value:e})=>{if(!e)return null;const t={success:"success-badge",warning:"warning-badge",error:"error-badge",info:"info-badge",default:"default-badge"},n=typeof e=="object"?e.type:"default",c=typeof e=="object"?e.text:e,i=t[n]||t.default;return y.createElement("span",{className:`badge ${i}`},c)},az=({value:e})=>{try{return new Date(e).toLocaleDateString()}catch{return String(e)}},nz=({value:e})=>y.createElement("span",{className:"number-value"},Number(e).toLocaleString()),oz=({value:e})=>y.createElement("span",{className:"currency-value"},new Intl.NumberFormat("fr-FR",{style:"currency",currency:"EUR"}).format(Number(e))),cz=({value:e})=>y.createElement("div",{className:"image-container"},y.createElement("img",{src:e,alt:"Table content",className:"table-image",onError:t=>t.currentTarget.style.display="none"})),Yw={renderers:{text:JA,email:QA,link:ez,badge:tz,date:az,number:nz,currency:oz,image:cz},icons:{sortAsc:y.createElement(Xc,{className:"sort-icon active",size:14}),sortDesc:y.createElement(Yt,{className:"sort-icon active",size:14}),sortDefault:y.createElement(b1,{className:"sort-icon",size:14})}},Eme=(e,t)=>{Yw.renderers[e]&&console.warn(`Le renderer "${e}" existe déjà et sera écrasé.`),Yw.renderers[e]=t},Ome=({filters:e,externalFilters:t=[],onFiltersChange:n,onApply:c,isControlled:i=!1,debounceTimeout:r=300,expanded:s,onToggle:d,panelPlacement:l="top",onPanelHeightChange:h,label:u="Advanced-Filters",applyLabel:p="Apply",cancelLabel:k="Cancel",clearLabel:f="Clear",applyDisabled:g=!1,loading:m=!1})=>{const[v,_]=y.useState(!1),x=typeof s=="boolean"?s:v,{appliedFilters:b,tempFilters:I,updateFilter:w,applyFilters:j,clearAllFilters:M}=XA({filters:e,externalFilters:t,onFiltersChange:n,onApply:c,isControlled:i}),L=y.useRef(null),S=y.useRef(null);y.useEffect(()=>{if(x&&L.current){const D=L.current.getBoundingClientRect().height;h?.(D)}else h?.(0)},[x,e,I,h]);const C=()=>{typeof s=="boolean"?d?.(!s):_(D=>{const V=!D;return d?.(V),V})},N=()=>e.map(D=>{const V=I?.[D.id];return V==null||typeof V=="string"&&V.trim()===""?null:{id:D.id,label:D.label,value:V}}).filter(Boolean),$=async()=>{let D;try{D=await j()}catch{D=void 0}let V=[];D&&Array.isArray(D)&&D.length>0?V=D:b&&b.length>0?V=b:V=N(),n?.(V),c?.(V)},q=()=>{d?.(!1),typeof s!="boolean"&&_(!1)},P=()=>{M(),n?.([]),c?.([])};return y.useEffect(()=>{const D=z=>{x&&S.current&&(S.current.contains(z.target)||(d?.(!1),typeof s!="boolean"&&_(!1)))},V=z=>{z.key==="Escape"&&x&&(d?.(!1),typeof s!="boolean"&&_(!1))};return x&&(document.addEventListener("pointerdown",D),document.addEventListener("keydown",V)),()=>{document.removeEventListener("pointerdown",D),document.removeEventListener("keydown",V)}},[x,s,d]),o.jsxs("div",{className:B.advancedFiltersContainer,ref:S,children:[o.jsxs("button",{className:`${B.toggleFiltersButton} ${b.length>0?B.active:""} ${x?B.toggleFiltersButtonOpen:""} ${m?B.loadingButton:""}`,onClick:C,"aria-expanded":x,"aria-controls":"advanced-filters-panel",type:"button",disabled:m,children:[m?o.jsx("span",{className:B.loaderSpinnerSmall}):o.jsx(Wt,{size:14}),o.jsx("span",{className:B.buttonTextCompact,children:u}),b.length>0&&!m&&o.jsx("span",{className:B.filterCountBadge,"aria-hidden":!0,children:b.length}),m&&o.jsx("span",{className:B.loadingIndicator,"aria-hidden":!0,children:"Chargement..."})]}),x&&o.jsxs("div",{id:"advanced-filters-panel",ref:L,className:`${B.filtersPanel} ${l==="top"?`${B.filtersPanelInline} ${B.filtersPanelHorizontal}`:""}`,role:"region","aria-label":"Panneau de filtres avancés",children:[o.jsx("div",{className:B.filtersRow,children:e.map(D=>o.jsxs("div",{className:`${B.filterItem} ${B.filterItemInline}`,children:[o.jsxs("label",{className:B.filterLabel,children:[D.label,D.required&&o.jsx("span",{className:B.required,children:"*"})]}),o.jsx(Rme,{config:D,value:I[D.id],onChange:V=>w(D.id,V),disabled:D.disabled})]},D.id))}),o.jsxs("div",{className:B.filtersActionsHorizontal,children:[o.jsx("div",{className:B.activeFiltersSection,children:b.length>0&&o.jsxs("div",{className:B.activeFiltersRow,children:[o.jsx("span",{className:B.activeLabelCompact,children:"Actifs :"}),o.jsx("div",{className:B.activeFiltersList,children:b.map(D=>o.jsxs("div",{className:B.activeFilterTag,children:[D.label??D.id,o.jsx("button",{className:B.removeFilterButton,onClick:()=>w(D.id,void 0),"aria-label":`Supprimer ${D.id}`,type:"button",children:"×"})]},D.id))}),o.jsxs("button",{className:B.clearAllButton,onClick:P,type:"button",children:[o.jsx(ht,{size:12})," ",f]})]})}),o.jsxs("div",{className:B.actionsGroup,children:[o.jsx("button",{className:B.cancelButton,onClick:q,type:"button",disabled:m,children:k}),o.jsx("button",{className:`${B.applyButton} ${m?B.loadingButton:""}`,onClick:$,type:"button",disabled:g||m,"aria-disabled":g||m,children:m?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:B.loaderSpinnerSmall}),o.jsx("span",{children:"Chargement..."})]}):p})]})]})]})]})},d$=e=>{const t=e.replace(/[^A-Za-zÀ-ÖØ-öø-ÿ]/g,"");return t.length>0&&t===t.toUpperCase()},Ume=({columns:e,sortConfig:t,onSort:n,label:c="Sort",loading:i=!1})=>{const[r,s]=y.useState(!1),d=e.filter(g=>g.sortable),l=y.useRef(null),h=t?.key!==null&&t?.key!==void 0,u=(g,m)=>{n({key:g,direction:m}),s(!1)},p=()=>{n({key:null,direction:"asc"}),s(!1)},k=()=>s(g=>!g),f=()=>{s(!1)};return y.useEffect(()=>{if(!r)return;const g=v=>{if(!l.current)return;const _=v.target;_&&!l.current.contains(_)&&s(!1)},m=v=>{v.key==="Escape"&&s(!1)};return document.addEventListener("pointerdown",g),document.addEventListener("keydown",m),()=>{document.removeEventListener("pointerdown",g),document.removeEventListener("keydown",m)}},[r]),y.useEffect(()=>{const g=document.querySelector("[data-table-wrapper]");if(!g)return;const m=g.style.overflow??"";return r?g.style.overflow="hidden":g.style.overflow=m,()=>{g.style.overflow=m}},[r]),o.jsx("div",{className:B.columnSorterContainer,ref:l,children:o.jsx("div",{className:B.sorterControls,children:d.length>0&&o.jsxs("div",{className:B.sortDropdownWrapper,ref:l,children:[o.jsxs("button",{className:`${B.toggleSortButton} ${r?B.toggleSortButtonOpen:""} ${h?B.active:""} ${i?B.loadingButton:""}`,onClick:k,"aria-expanded":r,"aria-haspopup":"true",type:"button",disabled:i,children:[i?o.jsx("span",{className:B.loaderSpinnerSmall}):o.jsx(b1,{size:14}),o.jsx("span",{className:`${B.buttonTextCompact} ${d$(c)?B.uppercaseSmall:""}`,children:c}),h&&!i&&o.jsx("div",{className:B.sortIndicator,children:t?.direction==="asc"?o.jsx(Xc,{size:12}):o.jsx(Yt,{size:12})})]}),r&&o.jsxs("div",{className:`${B.sortDropdown} ${B.sortDropdownInline}`,role:"menu",children:[o.jsxs("div",{className:B.sortDropdownHeader,children:[o.jsx("span",{children:"Trier par:"}),o.jsx("button",{className:B.closeButton,onClick:f,"aria-label":"Fermer",type:"button",children:o.jsx(ht,{size:16})})]}),o.jsx("div",{className:B.sortDropdownContent,children:d.map(g=>{const m=String(g.label??g.id),v=d$(m);return o.jsxs("div",{className:B.sortDropdownItem,role:"menuitem",tabIndex:0,onKeyDown:_=>{_.key==="Enter"&&u(g.id,"asc")},children:[o.jsx("span",{className:`${B.columnSorterLabel} ${v?B.uppercaseSmall:""}`,title:m,"aria-label":m,children:m}),o.jsxs("div",{className:B.sortDirectionButtons,children:[o.jsx("button",{className:`${B.sortDirectionButton} ${t?.key===g.id&&t?.direction==="asc"?B.activeSort:""}`,onClick:()=>u(g.id,"asc"),title:"Trier par ordre croissant",type:"button",children:o.jsx(Xc,{size:12})}),o.jsx("button",{className:`${B.sortDirectionButton} ${t?.key===g.id&&t?.direction==="desc"?B.activeSort:""}`,onClick:()=>u(g.id,"desc"),title:"Trier par ordre décroissant",type:"button",children:o.jsx(Yt,{size:12})})]})]},g.id)})}),h&&o.jsx("div",{className:B.sortActions,children:o.jsxs("button",{className:B.clearSortButton,onClick:p,type:"button",children:[o.jsx(Ut,{size:14}),o.jsx("span",{children:"Annuler le tri"})]})})]})]})})})},Wme=({currentPage:e,totalPages:t,pageSize:n,totalItems:c,itemLabel:i="items",onPageChange:r,onPageSizeChange:s,loading:d=!1})=>{const l=Math.max(1,Math.floor(t)),h=Math.min(Math.max(1,Math.floor(e)),l),u=()=>{h>1&&r(h-1)},p=()=>{if(h<t){const m=h+1;r(m)}},k=c>0?(h-1)*n+1:0,f=c>0?Math.min(h*n,c):0,g=()=>{const m=[];let _=Math.max(1,h-Math.floor(2.5)),x=_+5-1;x>l&&(x=l,_=Math.max(1,x-5+1));for(let b=_;b<=x;b++)m.push(b);return m};return o.jsxs("div",{className:B.paginationContainer,role:"navigation","aria-label":"Pagination",children:[o.jsx("div",{className:B.leftGroup,children:s&&o.jsx("div",{className:B.pageSizeControls,children:o.jsx("select",{value:n,onChange:m=>s(Number(m.target.value)),className:B.pageSizeSelect,"aria-label":"Taille de page",disabled:d,children:[10,20,30].map(m=>o.jsx("option",{value:m,children:m},m))})})}),o.jsx("div",{className:B.paginationInfo,"aria-live":"polite",children:d?o.jsxs("span",{className:B.paginationLoading,children:[o.jsx("span",{className:B.loaderSpinner}),o.jsx("span",{children:"Chargement..."})]}):`${k}-${f} ${i}`}),o.jsxs("div",{className:B.paginationControls,children:[o.jsx("button",{onClick:u,disabled:h===1||d,className:`${B.paginationButton} ${B.navigationButton} ${h===1?B.disabledButton:""} ${d?B.loadingButton:""}`,"aria-label":"Page précédente",children:d&&h>1?o.jsx("span",{className:B.loaderSpinnerSmall}):"«"}),g().map(m=>o.jsx("button",{onClick:()=>r(m),disabled:d,"aria-current":h===m?"page":void 0,className:`${B.paginationButton} ${h===m?B.activeButton:""} ${d?B.loadingButton:""}`,children:d&&h===m?o.jsx("span",{className:B.loaderSpinnerSmall}):m},m)),o.jsx("button",{onClick:p,disabled:d||h>=l,className:`${B.paginationButton} ${B.navigationButton} ${d?B.loadingButton:""} ${h>=l?B.disabledButton:""}`,"aria-label":"Page suivante",children:d?o.jsx("span",{className:B.loaderSpinnerSmall}):"»"})]})]})},Gme=(e,t)=>{if(!e)return"";if(t)return e;const n=String(e).trim();if(!n)return n;const c=n.toLowerCase();return c.charAt(0).toUpperCase()+c.slice(1)},Kme=e=>{if(!e)return!1;const t=e.trim().split(/\s+/);return e.length>18||t.length>2},Zme=({columns:e})=>o.jsx("thead",{className:B.tableHeader,children:o.jsx("tr",{children:e.map((t,n)=>{const c=t.align==="right"?B.alignRight:t.align==="left"?B.alignLeft:B.alignCenter,i=t.preserveHeaderCase===!0,r=Gme(String(t.label??""),i),s=Kme(r),d=s?r.split(/\s+/):[];return o.jsx("th",{className:`${B.headerCell} ${c}`,style:{width:t.width??void 0},"data-preserve":i?"true":"false",title:t.a11yConfig?.mode==="guide"?t.a11yConfig.description:t.a11yConfig?.mode==="key"?t.a11yConfig.key:void 0,children:o.jsx("div",{className:B.headerContent,children:s?o.jsx("div",{className:B.headerWords,children:d.map((l,h)=>o.jsx("span",{className:B.headerWord,children:l},h))}):o.jsx("span",{children:r})})},t.id??`col-${n}`)})})}),Xme=({value:e,row:t,column:n})=>{const c=n.align==="right"?B.alignRight:n.align==="left"?B.alignLeft:B.alignCenter,i=typeof n.render=="function"?n.render(e,t):e==null?"":String(e);return o.jsx("td",{className:`${B.tableCell} ${c}`,style:{width:n.width??void 0},children:o.jsx("div",{className:B.cellContent,children:i})})},Yme=({row:e,rowId:t,columns:n,onRowClick:c,index:i,getRowStyle:r})=>{const s=r?r(e):{},{backgroundColor:d,accentColor:l,...h}=s||{},u={backgroundColor:d,...h,"--row-accent":l??"transparent"};return o.jsx("tr",{className:`${B.tableRow} ${c?B.clickableRow:""}`,onClick:()=>c?.(e,i),style:u,children:n.map(p=>o.jsx(Xme,{value:e[p.id],row:e,column:p},`${t}-${p.id}`))})},Jme=({data:e,columns:t,onRowClick:n,startIndex:c,searchTerm:i,getRowStyle:r})=>e.length===0?o.jsx("tbody",{children:o.jsx("tr",{children:o.jsx("td",{colSpan:t.length,className:B.emptyRow,children:i?"Aucun résultat trouvé":"Aucune donnée disponible"})})}):o.jsx("tbody",{children:e.map((s,d)=>o.jsx(Yme,{row:s.data,rowId:s.id,columns:t,onRowClick:n,index:c+d-1,getRowStyle:r},s.id))}),iz=({columns:e=[],data:t=[],pagination:n={pageSize:10,currentPage:1},onRowClick:c,searchTerm:i="",className:r="",filterConfig:s=[],externalFilters:d=[],onFiltersChange:l,onApplyFilters:h,onSort:u,filtersControlled:p=!1,debounceTimeout:k=300,getRowStyle:f,background:g,onPageSizeChange:m,onPageChange:v,itemLabel:_="items",advancedFiltersLabel:x="Advanced-Filters",advancedFiltersActiveLabel:b,sortLabel:I="Sort",applyLabel:w="Apply",cancelLabel:j="Cancel",clearLabel:M="Clear",applyDisabled:L=!1,paginationLoading:S=!1,filtersLoading:C=!1,sortLoading:N=!1,totalCount:$=null})=>{const[q,P]=y.useState({key:null,direction:"asc"}),[D,V]=y.useState(n.currentPage??1),[z,A]=y.useState(n.pageSize??10),[F,T]=y.useState(!1),R=y.useRef(null),[Y,U]=y.useState([]),K=p?d:Y,te=p?[]:Y;y.useEffect(()=>{const se=n.currentPage??1,Ne=n.pageSize??10;se!==D&&V(se),Ne!==z&&A(Ne)},[n.currentPage,n.pageSize]);const{paginatedData:E,sortedData:Q,totalPages:de,startIndex:G}=YA(t,e,i,q,D,z,te),ce=Q.length,ue=typeof $=="number"&&$>=0?$:ce;let ye=de;typeof $=="number"&&$>=0&&(ye=Math.max(1,Math.ceil($/z)));const fe=ce>10;y.useEffect(()=>{const se=Math.max(1,Math.floor(ye));D>se&&V(se),D<1&&V(1)},[ye]);const Z=se=>{p||U(se),l?.(se),V(1),v?.(1)},ne=se=>{p||U(se),h?.(se),V(1),v?.(1),R.current&&R.current.style.setProperty("--filters-panel-height","0px")},le=se=>{v?.(se),V(se)},je=se=>{A(se),V(1),m?.(se),v?.(1)},qe=se=>{R.current&&R.current.style.setProperty("--filters-panel-height",`${Math.round(se)}px`)},ve=se=>{P(se),u?.(se)},Se=se=>{T(se),!se&&R.current&&R.current.style.setProperty("--filters-panel-height","0px")};y.useEffect(()=>{(K?.length??0)>0&&T(!0)},[K]),y.useEffect(()=>{s.length>0&&K.length>0&&T(!0)},[s.length,K.length]);const Dt=(K?.length??0)>0&&b?b:x;return o.jsxs("div",{ref:R,className:`${B.container} ${r} ${F?B.filtersOpen:""}`,style:{background:g,"--row-height":"48px","--header-height":"56px"},children:[o.jsx("div",{className:B.tableControls,children:o.jsxs("div",{className:B.controlsRight,children:[o.jsx(Ume,{columns:e,onSort:ve,label:I,sortConfig:q,loading:N}),s.length>0&&o.jsx(Ome,{filters:s,externalFilters:K,onFiltersChange:Z,onApply:ne,isControlled:p,debounceTimeout:k,expanded:F,onToggle:Se,panelPlacement:"top",onPanelHeightChange:qe,label:Dt,applyLabel:w,cancelLabel:j,clearLabel:M,applyDisabled:L,loading:C})]})}),o.jsx("div",{className:B.topPagination,children:o.jsx(Wme,{currentPage:D,totalPages:ye,pageSize:z,totalItems:ue,itemLabel:_,onPageChange:le,onPageSizeChange:je,loading:S})}),o.jsx("div",{className:`${B.tableWrapper} ${fe?B.limitedRows:""}`,"data-table-wrapper":!0,children:o.jsxs("table",{className:B.table,children:[o.jsx(Zme,{columns:e}),o.jsx(Jme,{data:E,columns:e,onRowClick:c,startIndex:G,getRowStyle:f,searchTerm:i})]})})]})};function Qme(e){const{pagination:t,totalCount:n,onPageChange:c,...i}=e,r=t?.pageSize??20,s=t?.currentPage??1,d=y.useMemo(()=>{if(n===null||typeof n>"u")return null;const p=Number(n);if(!Number.isFinite(p)||p<=0)return 1;const k=Number(r);return!Number.isFinite(k)||k<=0?1:Math.max(1,Math.ceil(p/k))},[n,r]),l=s>1,h=d===null?!1:s<d,u=p=>{typeof p=="number"&&(p<1||p<s&&!l||p>s&&!h||c?.(p))};return o.jsx(iz,{...i,pagination:{pageSize:r,currentPage:s},totalCount:n,onPageChange:u})}const e3e=({page:e,pageSize:t,total:n,onPageChange:c,itemLabel:i="élément",ofLabel:r="sur",className:s})=>{const d=Math.max(1,Math.ceil(n/t)),l=n===0?0:(e-1)*t+1,h=Math.min(e*t,n),u=n>1?`${i}s`:i;if(n===0)return null;const p=4;let k=Math.max(1,e-Math.floor(p/2)),f=k+p-1;f>d&&(f=d,k=Math.max(1,f-p+1));const g=[];for(let m=k;m<=f;m++)g.push(m);return o.jsxs(t3e,{className:s,children:[o.jsxs(a3e,{children:[l,"-",h," ",r," ",n," ",u]}),o.jsx(n3e,{}),d>1&&o.jsxs(o3e,{children:[o.jsx(Ti,{onClick:()=>c(1),disabled:e===1,title:"Première page",children:"<<"}),o.jsx(Ti,{onClick:()=>c(e-1),disabled:e===1,title:"Page précédente",children:"<"}),g.map(m=>o.jsx(c3e,{$active:m===e,onClick:()=>c(m),children:m},m)),o.jsx(Ti,{onClick:()=>c(e+1),disabled:e===d,title:"Page suivante",children:">"}),o.jsx(Ti,{onClick:()=>c(d),disabled:e===d,title:"Dernière page",children:">>"})]})]})},t3e=O.div`
|
|
8272
|
+
`),()=>{v.contains(m)&&v.removeChild(m)}},[t]),o.jsx(Nhe,{isPresent:t,childRef:r,sizeRef:s,children:ee.cloneElement(e,{ref:l})})}const $he=({children:e,initial:t,isPresent:n,onExitComplete:c,custom:i,presenceAffectsLayout:r,mode:s,anchorX:d,root:l})=>{const h=Qt(qhe),u=y.useId();let p=!0,k=y.useMemo(()=>(p=!1,{id:u,initial:t,isPresent:n,custom:i,onExitComplete:f=>{h.set(f,!0);for(const g of h.values())if(!g)return;c&&c()},register:f=>(h.set(f,!1),()=>h.delete(f))}),[n,h,c]);return r&&p&&(k={...k}),y.useMemo(()=>{h.forEach((f,g)=>h.set(g,!1))},[n]),ee.useEffect(()=>{!n&&!h.size&&c&&c()},[n]),s==="popLayout"&&(e=o.jsx(She,{isPresent:n,anchorX:d,root:l,children:e})),o.jsx(tb.Provider,{value:k,children:e})};function qhe(){return new Map}function Bq(e=!0){const t=y.useContext(tb);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:c,register:i}=t,r=y.useId();y.useEffect(()=>{if(e)return i(r)},[e]);const s=y.useCallback(()=>e&&c&&c(r),[r,c,e]);return!n&&c?[!1,s]:[!0]}const Pi=e=>e.key||"";function $j(e){const t=[];return y.Children.forEach(e,n=>{y.isValidElement(n)&&t.push(n)}),t}const Ahe=({children:e,custom:t,initial:n=!0,onExitComplete:c,presenceAffectsLayout:i=!0,mode:r="sync",propagate:s=!1,anchorX:d="left",root:l})=>{const[h,u]=Bq(s),p=y.useMemo(()=>$j(e),[e]),k=s&&!h?[]:p.map(Pi),f=y.useRef(!0),g=y.useRef(p),m=Qt(()=>new Map),[v,_]=y.useState(p),[x,b]=y.useState(p);eC(()=>{f.current=!1,g.current=p;for(let j=0;j<x.length;j++){const L=Pi(x[j]);k.includes(L)?m.delete(L):m.get(L)!==!0&&m.set(L,!1)}},[x,k.length,k.join("-")]);const I=[];if(p!==v){let j=[...p];for(let L=0;L<x.length;L++){const M=x[L],S=Pi(M);k.includes(S)||(j.splice(L,0,M),I.push(M))}return r==="wait"&&I.length&&(j=I),b($j(j)),_(p),null}process.env.NODE_ENV!=="production"&&r==="wait"&&x.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:w}=y.useContext(Jw);return o.jsx(o.Fragment,{children:x.map(j=>{const L=Pi(j),M=s&&!h?!1:p===x||k.includes(L),S=()=>{if(m.has(L))m.set(L,!0);else return;let C=!0;m.forEach(N=>{N||(C=!1)}),C&&(w?.(),b(g.current),s&&u?.(),c&&c())};return o.jsx($he,{isPresent:M,initial:!f.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:r,root:l,onExitComplete:M?void 0:S,anchorX:d,children:j},L)})})},Rq=y.createContext({strict:!1}),qj={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},N1={};for(const e in qj)N1[e]={isEnabled:t=>qj[e].some(n=>!!t[n])};function zhe(e){for(const t in e)N1[t]={...N1[t],...e[t]}}const Phe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function KL(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Phe.has(e)}let Fq=e=>!KL(e);function Vhe(e){typeof e=="function"&&(Fq=t=>t.startsWith("on")?!KL(t):e(t))}try{Vhe(require("@emotion/is-prop-valid").default)}catch{}function The(e,t,n){const c={};for(const i in e)i==="values"&&typeof e.values=="object"||(Fq(i)||n===!0&&KL(i)||!t&&!KL(i)||e.draggable&&i.startsWith("onDrag"))&&(c[i]=e[i]);return c}const nb=y.createContext({});function ob(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function yi(e){return typeof e=="string"||Array.isArray(e)}const MC=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],LC=["initial",...MC];function cb(e){return ob(e.animate)||LC.some(t=>yi(e[t]))}function Eq(e){return!!(cb(e)||e.variants)}function Dhe(e,t){if(cb(e)){const{initial:n,animate:c}=e;return{initial:n===!1||yi(n)?n:void 0,animate:yi(c)?c:void 0}}return e.inherit!==!1?t:{}}function Hhe(e){const{initial:t,animate:n}=Dhe(e,y.useContext(nb));return y.useMemo(()=>({initial:t,animate:n}),[Aj(t),Aj(n)])}function Aj(e){return Array.isArray(e)?e.join(" "):e}const ki={};function Bhe(e){for(const t in e)ki[t]=e[t],sC(t)&&(ki[t].isCSSVariable=!0)}function Oq(e,{layout:t,layoutId:n}){return A1.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ki[e]||e==="opacity")}const Rhe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Fhe=q1.length;function Ehe(e,t,n){let c="",i=!0;for(let r=0;r<Fhe;r++){const s=q1[r],d=e[s];if(d===void 0)continue;let l=!0;if(typeof d=="number"?l=d===(s.startsWith("scale")?1:0):l=parseFloat(d)===0,!l||n){const h=zq(d,vC[s]);if(!l){i=!1;const u=Rhe[s]||s;c+=`${u}(${h}) `}n&&(t[s]=h)}}return c=c.trim(),n?c=n(t,i?"":c):i&&(c="none"),c}function bC(e,t,n){const{style:c,vars:i,transformOrigin:r}=e;let s=!1,d=!1;for(const l in t){const h=t[l];if(A1.has(l)){s=!0;continue}else if(sC(l)){i[l]=h;continue}else{const u=zq(h,vC[l]);l.startsWith("origin")?(d=!0,r[l]=u):c[l]=u}}if(t.transform||(s||n?c.transform=Ehe(t,e.transform,n):c.transform&&(c.transform="none")),d){const{originX:l="50%",originY:h="50%",originZ:u=0}=r;c.transformOrigin=`${l} ${h} ${u}`}}const IC=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Uq(e,t,n){for(const c in t)!De(t[c])&&!Oq(c,n)&&(e[c]=t[c])}function Ohe({transformTemplate:e},t){return y.useMemo(()=>{const n=IC();return bC(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Uhe(e,t){const n=e.style||{},c={};return Uq(c,n,e),Object.assign(c,Ohe(e,t)),c}function Whe(e,t){const n={},c=Uhe(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,c.userSelect=c.WebkitUserSelect=c.WebkitTouchCallout="none",c.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=c,n}const Ghe={offset:"stroke-dashoffset",array:"stroke-dasharray"},Khe={offset:"strokeDashoffset",array:"strokeDasharray"};function Zhe(e,t,n=1,c=0,i=!0){e.pathLength=1;const r=i?Ghe:Khe;e[r.offset]=ie.transform(-c);const s=ie.transform(t),d=ie.transform(n);e[r.array]=`${s} ${d}`}function Wq(e,{attrX:t,attrY:n,attrScale:c,pathLength:i,pathSpacing:r=1,pathOffset:s=0,...d},l,h,u){if(bC(e,d,h),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:k}=e;p.transform&&(k.transform=p.transform,delete p.transform),(k.transform||p.transformOrigin)&&(k.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),k.transform&&(k.transformBox=u?.transformBox??"fill-box",delete p.transformBox),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),c!==void 0&&(p.scale=c),i!==void 0&&Zhe(p,i,r,s,!1)}const Gq=()=>({...IC(),attrs:{}}),Kq=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Xhe(e,t,n,c){const i=y.useMemo(()=>{const r=Gq();return Wq(r,t,Kq(c),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const r={};Uq(r,e.style,e),i.style={...r,...i.style}}return i}const Yhe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function wC(e){return typeof e!="string"||e.includes("-")?!1:!!(Yhe.indexOf(e)>-1||/[A-Z]/u.test(e))}function Jhe(e,t,n,{latestValues:c},i,r=!1){const d=(wC(e)?Xhe:Whe)(t,c,i,e),l=The(t,typeof e=="string",r),h=e!==y.Fragment?{...l,...d,ref:n}:{},{children:u}=t,p=y.useMemo(()=>De(u)?u.get():u,[u]);return y.createElement(e,{...h,children:p})}function zj(e){const t=[{},{}];return e?.values.forEach((n,c)=>{t[0][c]=n.get(),t[1][c]=n.getVelocity()}),t}function CC(e,t,n,c){if(typeof t=="function"){const[i,r]=zj(c);t=t(n!==void 0?n:e.custom,i,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,r]=zj(c);t=t(n!==void 0?n:e.custom,i,r)}return t}function DL(e){return De(e)?e.get():e}function Qhe({scrapeMotionValuesFromProps:e,createRenderState:t},n,c,i){return{latestValues:eue(n,c,i,e),renderState:t()}}function eue(e,t,n,c){const i={},r=c(e,{});for(const k in r)i[k]=DL(r[k]);let{initial:s,animate:d}=e;const l=cb(e),h=Eq(e);t&&h&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),d===void 0&&(d=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const p=u?d:s;if(p&&typeof p!="boolean"&&!ob(p)){const k=Array.isArray(p)?p:[p];for(let f=0;f<k.length;f++){const g=CC(e,k[f]);if(g){const{transitionEnd:m,transition:v,..._}=g;for(const x in _){let b=_[x];if(Array.isArray(b)){const I=u?b.length-1:0;b=b[I]}b!==null&&(i[x]=b)}for(const x in m)i[x]=m[x]}}}return i}const Zq=e=>(t,n)=>{const c=y.useContext(nb),i=y.useContext(tb),r=()=>Qhe(e,t,c,i);return n?r():Qt(r)};function jC(e,t,n){const{style:c}=e,i={};for(const r in c)(De(c[r])||t.style&&De(t.style[r])||Oq(r,e)||n?.getValue(r)?.liveStyle!==void 0)&&(i[r]=c[r]);return i}const tue=Zq({scrapeMotionValuesFromProps:jC,createRenderState:IC});function Xq(e,t,n){const c=jC(e,t,n);for(const i in e)if(De(e[i])||De(t[i])){const r=q1.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;c[r]=e[i]}return c}const aue=Zq({scrapeMotionValuesFromProps:Xq,createRenderState:Gq}),nue=Symbol.for("motionComponentSymbol");function g1(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function oue(e,t,n){return y.useCallback(c=>{c&&e.onMount&&e.onMount(c),t&&(c?t.mount(c):t.unmount()),n&&(typeof n=="function"?n(c):g1(n)&&(n.current=c))},[t])}const NC=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),cue="framerAppearId",Yq="data-"+NC(cue),Jq=y.createContext({});function iue(e,t,n,c,i){const{visualElement:r}=y.useContext(nb),s=y.useContext(Rq),d=y.useContext(tb),l=y.useContext(ab).reducedMotion,h=y.useRef(null);c=c||s.renderer,!h.current&&c&&(h.current=c(e,{visualState:t,parent:r,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:l}));const u=h.current,p=y.useContext(Jq);u&&!u.projection&&i&&(u.type==="html"||u.type==="svg")&&rue(h.current,n,i,p);const k=y.useRef(!1);y.useInsertionEffect(()=>{u&&k.current&&u.update(n,d)});const f=n[Yq],g=y.useRef(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return eC(()=>{u&&(k.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),g.current&&u.animationState&&u.animationState.animateChanges())}),y.useEffect(()=>{u&&(!g.current&&u.animationState&&u.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f)}),g.current=!1),u.enteringChildren=void 0)}),u}function rue(e,t,n,c){const{layoutId:i,layout:r,drag:s,dragConstraints:d,layoutScroll:l,layoutRoot:h,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Qq(e.parent)),e.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!s||d&&g1(d),visualElement:e,animationType:typeof r=="string"?r:"both",initialPromotionConfig:c,crossfade:u,layoutScroll:l,layoutRoot:h})}function Qq(e){if(e)return e.options.allowProjection!==!1?e.projection:Qq(e.parent)}function qb(e,{forwardMotionProps:t=!1}={},n,c){n&&zhe(n);const i=wC(e)?aue:tue;function r(d,l){let h;const u={...y.useContext(ab),...d,layoutId:sue(d)},{isStatic:p}=u,k=Hhe(d),f=i(d,p);if(!p&&Qw){due(u,n);const g=lue(u);h=g.MeasureLayout,k.visualElement=iue(e,f,u,c,g.ProjectionNode)}return o.jsxs(nb.Provider,{value:k,children:[h&&k.visualElement?o.jsx(h,{visualElement:k.visualElement,...u}):null,Jhe(e,d,oue(f,k.visualElement,l),f,p,t)]})}r.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=y.forwardRef(r);return s[nue]=e,s}function sue({layoutId:e}){const t=y.useContext(Jw).id;return t&&e!==void 0?t+"-"+e:e}function due(e,t){const n=y.useContext(Rq).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const c="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?S1(!1,c,"lazy-strict-mode"):gt(!1,c,"lazy-strict-mode")}}function lue(e){const{drag:t,layout:n}=N1;if(!t&&!n)return{};const c={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function hue(e,t){if(typeof Proxy>"u")return qb;const n=new Map,c=(r,s)=>qb(r,s,e,t),i=(r,s)=>(process.env.NODE_ENV!=="production"&&cC(!1,"motion() is deprecated. Use motion.create() instead."),c(r,s));return new Proxy(i,{get:(r,s)=>s==="create"?c:(n.has(s)||n.set(s,qb(s,void 0,e,t)),n.get(s))})}function eA({top:e,left:t,right:n,bottom:c}){return{x:{min:t,max:n},y:{min:e,max:c}}}function uue({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function pue(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),c=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:c.y,right:c.x}}function Ab(e){return e===void 0||e===1}function Fw({scale:e,scaleX:t,scaleY:n}){return!Ab(e)||!Ab(t)||!Ab(n)}function Uc(e){return Fw(e)||tA(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tA(e){return Pj(e.x)||Pj(e.y)}function Pj(e){return e&&e!=="0%"}function ZL(e,t,n){const c=e-n,i=t*c;return n+i}function Vj(e,t,n,c,i){return i!==void 0&&(e=ZL(e,i,c)),ZL(e,n,c)+t}function Ew(e,t=0,n=1,c,i){e.min=Vj(e.min,t,n,c,i),e.max=Vj(e.max,t,n,c,i)}function aA(e,{x:t,y:n}){Ew(e.x,t.translate,t.scale,t.originPoint),Ew(e.y,n.translate,n.scale,n.originPoint)}const Tj=.999999999999,Dj=1.0000000000001;function yue(e,t,n,c=!1){const i=n.length;if(!i)return;t.x=t.y=1;let r,s;for(let d=0;d<i;d++){r=n[d],s=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(c&&r.options.layoutScroll&&r.scroll&&r!==r.root&&x1(e,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,aA(e,s)),c&&Uc(r.latestValues)&&x1(e,r.latestValues))}t.x<Dj&&t.x>Tj&&(t.x=1),t.y<Dj&&t.y>Tj&&(t.y=1)}function v1(e,t){e.min=e.min+t,e.max=e.max+t}function Hj(e,t,n,c,i=.5){const r=we(e.min,e.max,i);Ew(e,t,n,r,c)}function x1(e,t){Hj(e.x,t.x,t.scaleX,t.scale,t.originX),Hj(e.y,t.y,t.scaleY,t.scale,t.originY)}function nA(e,t){return eA(pue(e.getBoundingClientRect(),t))}function kue(e,t,n){const c=nA(e,n),{scroll:i}=t;return i&&(v1(c.x,i.offset.x),v1(c.y,i.offset.y)),c}const Bj=()=>({translate:0,scale:1,origin:0,originPoint:0}),_1=()=>({x:Bj(),y:Bj()}),Rj=()=>({min:0,max:0}),$e=()=>({x:Rj(),y:Rj()}),Ow={current:null},oA={current:!1};function mue(){if(oA.current=!0,!!Qw)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ow.current=e.matches;e.addEventListener("change",t),t()}else Ow.current=!1}const fue=new WeakMap;function gue(e,t,n){for(const c in t){const i=t[c],r=n[c];if(De(i))e.addValue(c,i);else if(De(r))e.addValue(c,a1(i,{owner:e}));else if(r!==i)if(e.hasValue(c)){const s=e.getValue(c);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(c);e.addValue(c,a1(s!==void 0?s:i,{owner:e}))}}for(const c in n)t[c]===void 0&&e.removeValue(c);return t}const Fj=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class vue{scrapeMotionValuesFromProps(t,n,c){return{}}constructor({parent:t,props:n,presenceContext:c,reducedMotionConfig:i,blockInitialAnimation:r,visualState:s},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=fC,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const k=et.now();this.renderScheduledAt<k&&(this.renderScheduledAt=k,be.render(this.render,!1,!0))};const{latestValues:l,renderState:h}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=c,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=d,this.blockInitialAnimation=!!r,this.isControllingVariants=cb(n),this.isVariantNode=Eq(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const k in p){const f=p[k];l[k]!==void 0&&De(f)&&f.set(l[k])}}mount(t){this.current=t,fue.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,c)=>this.bindToMotionValue(c,n)),oA.current||mue(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ow.current,process.env.NODE_ENV!=="production"&&cC(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Vt(this.notifyUpdate),Vt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const c=A1.has(t);c&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&be.preRender(this.notifyUpdate),c&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),r&&r(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in N1){const n=N1[t];if(!n)continue;const{isEnabled:c,Feature:i}=n;if(!this.features[t]&&i&&c(this.props)&&(this.features[t]=new i(this)),this.features[t]){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$e()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let c=0;c<Fj.length;c++){const i=Fj[c];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,s=t[r];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=gue(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const c=this.values.get(t);n!==c&&(c&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let c=this.values.get(t);return c===void 0&&n!==void 0&&(c=a1(n===null?void 0:n,{owner:this}),this.addValue(t,c)),c}readValue(t,n){let c=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return c!=null&&(typeof c=="string"&&(Z$(c)||Y$(c))?c=parseFloat(c):!whe(c)&&Jt.test(n)&&(c=Aq(t,n)),this.setBaseTarget(t,De(c)?c.get():c)),De(c)?c.get():c}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let c;if(typeof n=="string"||typeof n=="object"){const r=CC(this.props,n,this.presenceContext?.custom);r&&(c=r[t])}if(n&&c!==void 0)return c;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!De(i)?i:this.initialValues[t]!==void 0&&c===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new oC),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){xC.render(this.render)}}class cA extends vue{constructor(){super(...arguments),this.KeyframeResolver=phe}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:c}){delete n[t],delete c[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;De(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function iA(e,{style:t,vars:n},c,i){const r=e.style;let s;for(s in t)r[s]=t[s];i?.applyProjectionStyles(r,c);for(s in n)r.setProperty(s,n[s])}function xue(e){return window.getComputedStyle(e)}class _ue extends cA{constructor(){super(...arguments),this.type="html",this.renderInstance=iA}readValueFromInstance(t,n){if(A1.has(n))return this.projection?.isProjecting?Pw(n):$le(t,n);{const c=xue(t),i=(sC(n)?c.getPropertyValue(n):c[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return nA(t,n)}build(t,n,c){bC(t,n,c.transformTemplate)}scrapeMotionValuesFromProps(t,n,c){return jC(t,n,c)}}const rA=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Mue(e,t,n,c){iA(e,t,void 0,c);for(const i in t.attrs)e.setAttribute(rA.has(i)?i:NC(i),t.attrs[i])}class Lue extends cA{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$e}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(A1.has(n)){const c=qq(n);return c&&c.default||0}return n=rA.has(n)?n:NC(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,c){return Xq(t,n,c)}build(t,n,c){Wq(t,n,this.isSVGTag,c.transformTemplate,c.style)}renderInstance(t,n,c,i){Mue(t,n,c,i)}mount(t){this.isSVGTag=Kq(t.tagName),super.mount(t)}}const bue=(e,t)=>wC(e)?new Lue(t):new _ue(t,{allowProjection:e!==y.Fragment});function C1(e,t,n){const c=e.getProps();return CC(c,t,n!==void 0?n:c.custom,e)}const Uw=e=>Array.isArray(e);function Iue(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,a1(n))}function wue(e){return Uw(e)?e[e.length-1]||0:e}function Cue(e,t){const n=C1(e,t);let{transitionEnd:c={},transition:i={},...r}=n||{};r={...r,...c};for(const s in r){const d=wue(r[s]);Iue(e,s,d)}}function jue(e){return!!(De(e)&&e.add)}function Ww(e,t){const n=e.getValue("willChange");if(jue(n))return n.add(t);if(!n&&Pt.WillChange){const c=new Pt.WillChange("auto");e.addValue("willChange",c),c.add(t)}}function sA(e){return e.props[Yq]}const Nue=e=>e!==null;function Sue(e,{repeat:t,repeatType:n="loop"},c){const i=e.filter(Nue),r=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[r]}const $ue={type:"spring",stiffness:500,damping:25,restSpeed:10},que=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Aue={type:"keyframes",duration:.8},zue={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Pue=(e,{keyframes:t})=>t.length>2?Aue:A1.has(e)?e.startsWith("scale")?que(t[1]):$ue:zue;function Vue({when:e,delay:t,delayChildren:n,staggerChildren:c,staggerDirection:i,repeat:r,repeatType:s,repeatDelay:d,from:l,elapsed:h,...u}){return!!Object.keys(u).length}const SC=(e,t,n,c={},i,r)=>s=>{const d=gC(c,e)||{},l=d.delay||c.delay||0;let{elapsed:h=0}=c;h=h-ft(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-h,onUpdate:k=>{t.set(k),d.onUpdate&&d.onUpdate(k)},onComplete:()=>{s(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:r?void 0:i};Vue(d)||Object.assign(u,Pue(e,u)),u.duration&&(u.duration=ft(u.duration)),u.repeatDelay&&(u.repeatDelay=ft(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let p=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Bw(u),u.delay===0&&(p=!0)),(Pt.instantAnimations||Pt.skipAnimations)&&(p=!0,Bw(u),u.delay=0),u.allowFlatten=!d.type&&!d.ease,p&&!r&&t.get()!==void 0){const k=Sue(u.keyframes,d);if(k!==void 0){be.update(()=>{u.onUpdate(k),u.onComplete()});return}}return d.isSync?new mC(u):new ehe(u)};function Tue({protectedKeys:e,needsAnimating:t},n){const c=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,c}function dA(e,t,{delay:n=0,transitionOverride:c,type:i}={}){let{transition:r=e.getDefaultTransition(),transitionEnd:s,...d}=t;c&&(r=c);const l=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const u in d){const p=e.getValue(u,e.latestValues[u]??null),k=d[u];if(k===void 0||h&&Tue(h,u))continue;const f={delay:n,...gC(r||{},u)},g=p.get();if(g!==void 0&&!p.isAnimating&&!Array.isArray(k)&&k===g&&!f.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const _=sA(e);if(_){const x=window.MotionHandoffAnimation(_,u,be);x!==null&&(f.startTime=x,m=!0)}}Ww(e,u),p.start(SC(u,p,k,e.shouldReduceMotion&&Nq.has(u)?{type:!1}:f,e,m));const v=p.animation;v&&l.push(v)}return s&&Promise.all(l).then(()=>{be.update(()=>{s&&Cue(e,s)})}),l}function lA(e,t,n,c=0,i=1){const r=Array.from(e).sort((h,u)=>h.sortNodePosition(u)).indexOf(t),s=e.size,d=(s-1)*c;return typeof n=="function"?n(r,s):i===1?r*c:d-r*c}function Gw(e,t,n={}){const c=C1(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=c||{};n.transitionOverride&&(i=n.transitionOverride);const r=c?()=>Promise.all(dA(e,c,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:h=0,staggerChildren:u,staggerDirection:p}=i;return Due(e,t,l,h,u,p,n)}:()=>Promise.resolve(),{when:d}=i;if(d){const[l,h]=d==="beforeChildren"?[r,s]:[s,r];return l().then(()=>h())}else return Promise.all([r(),s(n.delay)])}function Due(e,t,n=0,c=0,i=0,r=1,s){const d=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),d.push(Gw(l,t,{...s,delay:n+(typeof c=="function"?0:c)+lA(e.variantChildren,l,c,i,r)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(d)}function Hue(e,t,n={}){e.notify("AnimationStart",t);let c;if(Array.isArray(t)){const i=t.map(r=>Gw(e,r,n));c=Promise.all(i)}else if(typeof t=="string")c=Gw(e,t,n);else{const i=typeof t=="function"?C1(e,t,n.custom):t;c=Promise.all(dA(e,i,n))}return c.then(()=>{e.notify("AnimationComplete",t)})}function hA(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let c=0;c<n;c++)if(t[c]!==e[c])return!1;return!0}const Bue=LC.length;function uA(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?uA(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Bue;n++){const c=LC[n],i=e.props[c];(yi(i)||i===!1)&&(t[c]=i)}return t}const Rue=[...MC].reverse(),Fue=MC.length;function Eue(e){return t=>Promise.all(t.map(({animation:n,options:c})=>Hue(e,n,c)))}function Oue(e){let t=Eue(e),n=Ej(),c=!0;const i=l=>(h,u)=>{const p=C1(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(p){const{transition:k,transitionEnd:f,...g}=p;h={...h,...g,...f}}return h};function r(l){t=l(e)}function s(l){const{props:h}=e,u=uA(e.parent)||{},p=[],k=new Set;let f={},g=1/0;for(let v=0;v<Fue;v++){const _=Rue[v],x=n[_],b=h[_]!==void 0?h[_]:u[_],I=yi(b),w=_===l?x.isActive:null;w===!1&&(g=v);let j=b===u[_]&&b!==h[_]&&I;if(j&&c&&e.manuallyAnimateOnMount&&(j=!1),x.protectedKeys={...f},!x.isActive&&w===null||!b&&!x.prevProp||ob(b)||typeof b=="boolean")continue;const L=Uue(x.prevProp,b);let M=L||_===l&&x.isActive&&!j&&I||v>g&&I,S=!1;const C=Array.isArray(b)?b:[b];let N=C.reduce(i(_),{});w===!1&&(N={});const{prevResolvedValues:q={}}=x,A={...q,...N},P=z=>{M=!0,k.has(z)&&(S=!0,k.delete(z)),x.needsAnimating[z]=!0;const $=e.getValue(z);$&&($.liveStyle=!1)};for(const z in A){const $=N[z],R=q[z];if(f.hasOwnProperty(z))continue;let V=!1;Uw($)&&Uw(R)?V=!hA($,R):V=$!==R,V?$!=null?P(z):k.add(z):$!==void 0&&k.has(z)?P(z):x.protectedKeys[z]=!0}x.prevProp=b,x.prevResolvedValues=N,x.isActive&&(f={...f,...N}),c&&e.blockInitialAnimation&&(M=!1);const T=j&&L;M&&(!T||S)&&p.push(...C.map(z=>{const $={type:_};if(typeof z=="string"&&c&&!T&&e.manuallyAnimateOnMount&&e.parent){const{parent:R}=e,V=C1(R,z);if(R.enteringChildren&&V){const{delayChildren:F}=V.transition||{};$.delay=lA(R.enteringChildren,e,F)}}return{animation:z,options:$}}))}if(k.size){const v={};if(typeof h.initial!="boolean"){const _=C1(e,Array.isArray(h.initial)?h.initial[0]:h.initial);_&&_.transition&&(v.transition=_.transition)}k.forEach(_=>{const x=e.getBaseTarget(_),b=e.getValue(_);b&&(b.liveStyle=!0),v[_]=x??null}),p.push({animation:v})}let m=!!p.length;return c&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(m=!1),c=!1,m?t(p):Promise.resolve()}function d(l,h){if(n[l].isActive===h)return Promise.resolve();e.variantChildren?.forEach(p=>p.animationState?.setActive(l,h)),n[l].isActive=h;const u=s(l);for(const p in n)n[p].protectedKeys={};return u}return{animateChanges:s,setActive:d,setAnimateFunction:r,getState:()=>n,reset:()=>{n=Ej()}}}function Uue(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!hA(t,e):!1}function ia(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ej(){return{animate:ia(!0),whileInView:ia(),whileHover:ia(),whileTap:ia(),whileDrag:ia(),whileFocus:ia(),exit:ia()}}class ea{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Wue extends ea{constructor(t){super(t),t.animationState||(t.animationState=Oue(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ob(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Gue=0;class Kue extends ea{constructor(){super(...arguments),this.id=Gue++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:c}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===c)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Zue={animation:{Feature:Wue},exit:{Feature:Kue}};function mi(e,t,n,c={passive:!0}){return e.addEventListener(t,n,c),()=>e.removeEventListener(t,n)}function Li(e){return{point:{x:e.pageX,y:e.pageY}}}const Xue=e=>t=>_C(t)&&e(t,Li(t));function ri(e,t,n,c){return mi(e,t,Xue(n),c)}const pA=1e-4,Yue=1-pA,Jue=1+pA,yA=.01,Que=0-yA,epe=0+yA;function Ge(e){return e.max-e.min}function tpe(e,t,n){return Math.abs(e-t)<=n}function Oj(e,t,n,c=.5){e.origin=c,e.originPoint=we(t.min,t.max,e.origin),e.scale=Ge(n)/Ge(t),e.translate=we(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Yue&&e.scale<=Jue||isNaN(e.scale))&&(e.scale=1),(e.translate>=Que&&e.translate<=epe||isNaN(e.translate))&&(e.translate=0)}function si(e,t,n,c){Oj(e.x,t.x,n.x,c?c.originX:void 0),Oj(e.y,t.y,n.y,c?c.originY:void 0)}function Uj(e,t,n){e.min=n.min+t.min,e.max=e.min+Ge(t)}function ape(e,t,n){Uj(e.x,t.x,n.x),Uj(e.y,t.y,n.y)}function Wj(e,t,n){e.min=t.min-n.min,e.max=e.min+Ge(t)}function di(e,t,n){Wj(e.x,t.x,n.x),Wj(e.y,t.y,n.y)}function dt(e){return[e("x"),e("y")]}const kA=({current:e})=>e?e.ownerDocument.defaultView:null,Gj=(e,t)=>Math.abs(e-t);function npe(e,t){const n=Gj(e.x,t.x),c=Gj(e.y,t.y);return Math.sqrt(n**2+c**2)}class mA{constructor(t,n,{transformPagePoint:c,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=Pb(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,g=npe(k.offset,{x:0,y:0})>=this.distanceThreshold;if(!f&&!g)return;const{point:m}=k,{timestamp:v}=Te;this.history.push({...m,timestamp:v});const{onStart:_,onMove:x}=this.handlers;f||(_&&_(this.lastMoveEvent,k),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,k)},this.handlePointerMove=(k,f)=>{this.lastMoveEvent=k,this.lastMoveEventInfo=zb(f,this.transformPagePoint),be.update(this.updatePoint,!0)},this.handlePointerUp=(k,f)=>{this.end();const{onEnd:g,onSessionEnd:m,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=Pb(k.type==="pointercancel"?this.lastMoveEventInfo:zb(f,this.transformPagePoint),this.history);this.startEvent&&g&&g(k,_),m&&m(k,_)},!_C(t))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=c,this.distanceThreshold=s,this.contextWindow=i||window;const d=Li(t),l=zb(d,this.transformPagePoint),{point:h}=l,{timestamp:u}=Te;this.history=[{...h,timestamp:u}];const{onSessionStart:p}=n;p&&p(t,Pb(l,this.history)),this.removeListeners=xi(ri(this.contextWindow,"pointermove",this.handlePointerMove),ri(this.contextWindow,"pointerup",this.handlePointerUp),ri(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Vt(this.updatePoint)}}function zb(e,t){return t?{point:t(e.point)}:e}function Kj(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Pb({point:e},t){return{point:e,delta:Kj(e,fA(t)),offset:Kj(e,ope(t)),velocity:cpe(t,.1)}}function ope(e){return e[0]}function fA(e){return e[e.length-1]}function cpe(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,c=null;const i=fA(e);for(;n>=0&&(c=e[n],!(i.timestamp-c.timestamp>ft(t)));)n--;if(!c)return{x:0,y:0};const r=lt(i.timestamp-c.timestamp);if(r===0)return{x:0,y:0};const s={x:(i.x-c.x)/r,y:(i.y-c.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ipe(e,{min:t,max:n},c){return t!==void 0&&e<t?e=c?we(t,e,c.min):Math.max(e,t):n!==void 0&&e>n&&(e=c?we(n,e,c.max):Math.min(e,n)),e}function Zj(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function rpe(e,{top:t,left:n,bottom:c,right:i}){return{x:Zj(e.x,n,i),y:Zj(e.y,t,c)}}function Xj(e,t){let n=t.min-e.min,c=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,c]=[c,n]),{min:n,max:c}}function spe(e,t){return{x:Xj(e.x,t.x),y:Xj(e.y,t.y)}}function dpe(e,t){let n=.5;const c=Ge(e),i=Ge(t);return i>c?n=hi(t.min,t.max-c,e.min):c>i&&(n=hi(e.min,e.max-i,t.min)),zt(0,1,n)}function lpe(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Kw=.35;function hpe(e=Kw){return e===!1?e=0:e===!0&&(e=Kw),{x:Yj(e,"left","right"),y:Yj(e,"top","bottom")}}function Yj(e,t,n){return{min:Jj(e,t),max:Jj(e,n)}}function Jj(e,t){return typeof e=="number"?e:e[t]||0}const upe=new WeakMap;class ppe{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$e(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:c}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=p=>{const{dragSnapToOrigin:k}=this.getProps();k?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Li(p).point)},s=(p,k)=>{const{drag:f,dragPropagation:g,onDragStart:m}=this.getProps();if(f&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=fhe(f),!this.openDragLock))return;this.latestPointerEvent=p,this.latestPanInfo=k,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),dt(_=>{let x=this.getAxisMotionValue(_).get()||0;if(wt.test(x)){const{projection:b}=this.visualElement;if(b&&b.layout){const I=b.layout.layoutBox[_];I&&(x=Ge(I)*(parseFloat(x)/100))}}this.originPoint[_]=x}),m&&be.postRender(()=>m(p,k)),Ww(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},d=(p,k)=>{this.latestPointerEvent=p,this.latestPanInfo=k;const{dragPropagation:f,dragDirectionLock:g,onDirectionLock:m,onDrag:v}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:_}=k;if(g&&this.currentDirection===null){this.currentDirection=ype(_),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",k.point,_),this.updateAxis("y",k.point,_),this.visualElement.render(),v&&v(p,k)},l=(p,k)=>{this.latestPointerEvent=p,this.latestPanInfo=k,this.stop(p,k),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>dt(p=>this.getAnimationState(p)==="paused"&&this.getAxisMotionValue(p).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new mA(t,{onSessionStart:r,onStart:s,onMove:d,onSessionEnd:l,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:c,contextWindow:kA(this.visualElement)})}stop(t,n){const c=t||this.latestPointerEvent,i=n||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!c)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:d}=this.getProps();d&&be.postRender(()=>d(c,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:c}=this.getProps();!c&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,c){const{drag:i}=this.getProps();if(!c||!Vi(t,i,this.currentDirection))return;const r=this.getAxisMotionValue(t);let s=this.originPoint[t]+c[t];this.constraints&&this.constraints[t]&&(s=ipe(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),c=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&g1(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&c?this.constraints=rpe(c.layoutBox,t):this.constraints=!1,this.elastic=hpe(n),i!==this.constraints&&c&&this.constraints&&!this.hasMutatedConstraints&&dt(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=lpe(c.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!g1(t))return!1;const c=t.current;gt(c!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=kue(c,i.root,this.visualElement.getTransformPagePoint());let s=spe(i.layout.layoutBox,r);if(n){const d=n(uue(s));this.hasMutatedConstraints=!!d,d&&(s=eA(d))}return s}startAnimation(t){const{drag:n,dragMomentum:c,dragElastic:i,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:d}=this.getProps(),l=this.constraints||{},h=dt(u=>{if(!Vi(u,n,this.currentDirection))return;let p=l&&l[u]||{};s&&(p={min:0,max:0});const k=i?200:1e6,f=i?40:1e7,g={type:"inertia",velocity:c?t[u]:0,bounceStiffness:k,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...r,...p};return this.startAxisValueAnimation(u,g)});return Promise.all(h).then(d)}startAxisValueAnimation(t,n){const c=this.getAxisMotionValue(t);return Ww(this.visualElement,t),c.start(SC(t,c,0,n,this.visualElement,!1))}stopAnimation(){dt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){dt(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,c=this.visualElement.getProps(),i=c[n];return i||this.visualElement.getValue(t,(c.initial?c.initial[t]:void 0)||0)}snapToCursor(t){dt(n=>{const{drag:c}=this.getProps();if(!Vi(n,c,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:d}=i.layout.layoutBox[n];r.set(t[n]-we(s,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:c}=this.visualElement;if(!g1(n)||!c||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};dt(s=>{const d=this.getAxisMotionValue(s);if(d&&this.constraints!==!1){const l=d.get();i[s]=dpe({min:l,max:l},this.constraints[s])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",c.root&&c.root.updateScroll(),c.updateLayout(),this.resolveConstraints(),dt(s=>{if(!Vi(s,t,null))return;const d=this.getAxisMotionValue(s),{min:l,max:h}=this.constraints[s];d.set(we(l,h,i[s]))})}addListeners(){if(!this.visualElement.current)return;upe.set(this.visualElement,this);const t=this.visualElement.current,n=ri(t,"pointerdown",l=>{const{drag:h,dragListener:u=!0}=this.getProps();h&&u&&this.start(l)}),c=()=>{const{dragConstraints:l}=this.getProps();g1(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",c);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),be.read(c);const s=mi(window,"resize",()=>this.scalePositionWithinConstraints()),d=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:h})=>{this.isDragging&&h&&(dt(u=>{const p=this.getAxisMotionValue(u);p&&(this.originPoint[u]+=l[u].translate,p.set(p.get()+l[u].translate))}),this.visualElement.render())});return()=>{s(),n(),r(),d&&d()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:c=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:s=Kw,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:c,dragPropagation:i,dragConstraints:r,dragElastic:s,dragMomentum:d}}}function Vi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function ype(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class kpe extends ea{constructor(t){super(t),this.removeGroupControls=ut,this.removeListeners=ut,this.controls=new ppe(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ut}unmount(){this.removeGroupControls(),this.removeListeners()}}const Qj=e=>(t,n)=>{e&&be.postRender(()=>e(t,n))};class mpe extends ea{constructor(){super(...arguments),this.removePointerDownListener=ut}onPointerDown(t){this.session=new mA(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:kA(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:c,onPanEnd:i}=this.node.getProps();return{onSessionStart:Qj(t),onStart:Qj(n),onMove:c,onEnd:(r,s)=>{delete this.session,i&&be.postRender(()=>i(r,s))}}}mount(){this.removePointerDownListener=ri(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const HL={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function eN(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const D1={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ie.test(e))e=parseFloat(e);else return e;const n=eN(e,t.target.x),c=eN(e,t.target.y);return`${n}% ${c}%`}},fpe={correct:(e,{treeScale:t,projectionDelta:n})=>{const c=e,i=Jt.parse(e);if(i.length>5)return c;const r=Jt.createTransformer(e),s=typeof i[0]!="number"?1:0,d=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=d,i[1+s]/=l;const h=we(d,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=h),typeof i[3+s]=="number"&&(i[3+s]/=h),r(i)}};let Vb=!1;class gpe extends y.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:c,layoutId:i}=this.props,{projection:r}=t;Bhe(vpe),r&&(n.group&&n.group.add(r),c&&c.register&&i&&c.register(r),Vb&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),HL.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:c,drag:i,isPresent:r}=this.props,{projection:s}=c;return s&&(s.isPresent=r,Vb=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||be.postRender(()=>{const d=s.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),xC.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:c}=this.props,{projection:i}=t;Vb=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),c&&c.deregister&&c.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function gA(e){const[t,n]=Bq(),c=y.useContext(Jw);return o.jsx(gpe,{...e,layoutGroup:c,switchLayoutGroup:y.useContext(Jq),isPresent:t,safeToRemove:n})}const vpe={borderRadius:{...D1,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:D1,borderTopRightRadius:D1,borderBottomLeftRadius:D1,borderBottomRightRadius:D1,boxShadow:fpe};function xpe(e,t,n){const c=De(e)?e:a1(e);return c.start(SC("",c,t,n)),c.animation}const _pe=(e,t)=>e.depth-t.depth;class Mpe{constructor(){this.children=[],this.isDirty=!1}add(t){tC(this.children,t),this.isDirty=!0}remove(t){aC(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(_pe),this.isDirty=!1,this.children.forEach(t)}}function Lpe(e,t){const n=et.now(),c=({timestamp:i})=>{const r=i-n;r>=t&&(Vt(c),e(r-t))};return be.setup(c,!0),()=>Vt(c)}const vA=["TopLeft","TopRight","BottomLeft","BottomRight"],bpe=vA.length,tN=e=>typeof e=="string"?parseFloat(e):e,aN=e=>typeof e=="number"||ie.test(e);function Ipe(e,t,n,c,i,r){i?(e.opacity=we(0,n.opacity??1,wpe(c)),e.opacityExit=we(t.opacity??1,0,Cpe(c))):r&&(e.opacity=we(t.opacity??1,n.opacity??1,c));for(let s=0;s<bpe;s++){const d=`border${vA[s]}Radius`;let l=nN(t,d),h=nN(n,d);if(l===void 0&&h===void 0)continue;l||(l=0),h||(h=0),l===0||h===0||aN(l)===aN(h)?(e[d]=Math.max(we(tN(l),tN(h),c),0),(wt.test(h)||wt.test(l))&&(e[d]+="%")):e[d]=h}(t.rotate||n.rotate)&&(e.rotate=we(t.rotate||0,n.rotate||0,c))}function nN(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const wpe=xA(0,.5,cq),Cpe=xA(.5,.95,ut);function xA(e,t,n){return c=>c<e?0:c>t?1:n(hi(e,t,c))}function oN(e,t){e.min=t.min,e.max=t.max}function it(e,t){oN(e.x,t.x),oN(e.y,t.y)}function cN(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function iN(e,t,n,c,i){return e-=t,e=ZL(e,1/n,c),i!==void 0&&(e=ZL(e,1/i,c)),e}function jpe(e,t=0,n=1,c=.5,i,r=e,s=e){if(wt.test(t)&&(t=parseFloat(t),t=we(s.min,s.max,t/100)-s.min),typeof t!="number")return;let d=we(r.min,r.max,c);e===r&&(d-=t),e.min=iN(e.min,t,n,d,i),e.max=iN(e.max,t,n,d,i)}function rN(e,t,[n,c,i],r,s){jpe(e,t[n],t[c],t[i],t.scale,r,s)}const Npe=["x","scaleX","originX"],Spe=["y","scaleY","originY"];function sN(e,t,n,c){rN(e.x,t,Npe,n?n.x:void 0,c?c.x:void 0),rN(e.y,t,Spe,n?n.y:void 0,c?c.y:void 0)}function dN(e){return e.translate===0&&e.scale===1}function _A(e){return dN(e.x)&&dN(e.y)}function lN(e,t){return e.min===t.min&&e.max===t.max}function $pe(e,t){return lN(e.x,t.x)&&lN(e.y,t.y)}function hN(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function MA(e,t){return hN(e.x,t.x)&&hN(e.y,t.y)}function uN(e){return Ge(e.x)/Ge(e.y)}function pN(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class qpe{constructor(){this.members=[]}add(t){tC(this.members,t),t.scheduleRender()}remove(t){if(aC(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let c;for(let i=n;i>=0;i--){const r=this.members[i];if(r.isPresent!==!1){c=r;break}}return c?(this.promote(c),!0):!1}promote(t,n){const c=this.lead;if(t!==c&&(this.prevLead=c,this.lead=t,t.show(),c)){c.instance&&c.scheduleRender(),t.scheduleRender(),t.resumeFrom=c,n&&(t.resumeFrom.preserveOpacity=!0),c.snapshot&&(t.snapshot=c.snapshot,t.snapshot.latestValues=c.animationValues||c.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&c.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:c}=t;n.onExitComplete&&n.onExitComplete(),c&&c.options.onExitComplete&&c.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ape(e,t,n){let c="";const i=e.x.translate/t.x,r=e.y.translate/t.y,s=n?.z||0;if((i||r||s)&&(c=`translate3d(${i}px, ${r}px, ${s}px) `),(t.x!==1||t.y!==1)&&(c+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:u,rotateX:p,rotateY:k,skewX:f,skewY:g}=n;h&&(c=`perspective(${h}px) ${c}`),u&&(c+=`rotate(${u}deg) `),p&&(c+=`rotateX(${p}deg) `),k&&(c+=`rotateY(${k}deg) `),f&&(c+=`skewX(${f}deg) `),g&&(c+=`skewY(${g}deg) `)}const d=e.x.scale*t.x,l=e.y.scale*t.y;return(d!==1||l!==1)&&(c+=`scale(${d}, ${l})`),c||"none"}const Tb=["","X","Y","Z"],zpe=1e3;let Ppe=0;function Db(e,t,n,c){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),c&&(c[e]=0))}function LA(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=sA(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",be,!(i||r))}const{parent:c}=e;c&&!c.hasCheckedOptimisedAppear&&LA(c)}function bA({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:c,resetTransform:i}){return class{constructor(s={},d=t?.()){this.id=Ppe++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Dpe),this.nodes.forEach(Fpe),this.nodes.forEach(Epe),this.nodes.forEach(Hpe)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Mpe)}addEventListener(s,d){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new oC),this.eventHandlers.get(s).add(d)}notifyListeners(s,...d){const l=this.eventHandlers.get(s);l&&l.notify(...d)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=Hq(s)&&!Lhe(s),this.instance=s;const{layoutId:d,layout:l,visualElement:h}=this.options;if(h&&!h.current&&h.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||d)&&(this.isLayoutDirty=!0),e){let u,p=0;const k=()=>this.root.updateBlockedByResize=!1;be.read(()=>{p=window.innerWidth}),e(s,()=>{const f=window.innerWidth;f!==p&&(p=f,this.root.updateBlockedByResize=!0,u&&u(),u=Lpe(k,250),HL.hasAnimatedSinceResize&&(HL.hasAnimatedSinceResize=!1,this.nodes.forEach(mN)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&h&&(d||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:p,hasRelativeLayoutChanged:k,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||h.getDefaultTransition()||Kpe,{onLayoutAnimationStart:m,onLayoutAnimationComplete:v}=h.getProps(),_=!this.targetLayout||!MA(this.targetLayout,f),x=!p&&k;if(this.options.layoutRoot||this.resumeFrom||x||p&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...gC(g,"layout"),onPlay:m,onComplete:v};(h.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(u,x)}else p||mN(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Vt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ope),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&LA(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const p=this.path[u];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:d,layout:l}=this.options;if(d===void 0&&!l)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(yN);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(kN);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Rpe),this.nodes.forEach(Vpe),this.nodes.forEach(Tpe)):this.nodes.forEach(kN),this.clearAllSnapshots();const d=et.now();Te.delta=zt(0,1e3/60,d-Te.timestamp),Te.timestamp=d,Te.isProcessing=!0,wb.update.process(Te),wb.preRender.process(Te),wb.render.process(Te),Te.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,xC.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Bpe),this.sharedNodes.forEach(Upe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,be.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){be.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ge(this.snapshot.measuredBox.x)&&!Ge(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=$e(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(d=!1),d&&this.instance){const l=c(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!_A(this.projectionDelta),l=this.getTransformTemplate(),h=l?l(this.latestValues,""):void 0,u=h!==this.prevTransformTemplateValue;s&&this.instance&&(d||Uc(this.latestValues)||u)&&(i(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const d=this.measurePageBox();let l=this.removeElementScroll(d);return s&&(l=this.removeTransform(l)),Zpe(l),{animationId:this.root.animationId,measuredBox:d,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return $e();const d=s.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Xpe))){const{scroll:h}=this.root;h&&(v1(d.x,h.offset.x),v1(d.y,h.offset.y))}return d}removeElementScroll(s){const d=$e();if(it(d,s),this.scroll?.wasRoot)return d;for(let l=0;l<this.path.length;l++){const h=this.path[l],{scroll:u,options:p}=h;h!==this.root&&u&&p.layoutScroll&&(u.wasRoot&&it(d,s),v1(d.x,u.offset.x),v1(d.y,u.offset.y))}return d}applyTransform(s,d=!1){const l=$e();it(l,s);for(let h=0;h<this.path.length;h++){const u=this.path[h];!d&&u.options.layoutScroll&&u.scroll&&u!==u.root&&x1(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Uc(u.latestValues)&&x1(l,u.latestValues)}return Uc(this.latestValues)&&x1(l,this.latestValues),l}removeTransform(s){const d=$e();it(d,s);for(let l=0;l<this.path.length;l++){const h=this.path[l];if(!h.instance||!Uc(h.latestValues))continue;Fw(h.latestValues)&&h.updateSnapshot();const u=$e(),p=h.measurePageBox();it(u,p),sN(d,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,u)}return Uc(this.latestValues)&&sN(d,this.latestValues),d}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Te.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==d;if(!(s||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:p}=this.options;if(!(!this.layout||!(u||p))){if(this.resolvedRelativeTargetAt=Te.timestamp,!this.targetDelta&&!this.relativeTarget){const k=this.getClosestProjectingParent();k&&k.layout&&this.animationProgress!==1?(this.relativeParent=k,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$e(),this.relativeTargetOrigin=$e(),di(this.relativeTargetOrigin,this.layout.layoutBox,k.layout.layoutBox),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=$e(),this.targetWithTransforms=$e()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ape(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):it(this.target,this.layout.layoutBox),aA(this.target,this.targetDelta)):it(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const k=this.getClosestProjectingParent();k&&!!k.resumingFrom==!!this.resumingFrom&&!k.options.layoutScroll&&k.target&&this.animationProgress!==1?(this.relativeParent=k,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$e(),this.relativeTargetOrigin=$e(),di(this.relativeTargetOrigin,this.target,k.target),it(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Fw(this.parent.latestValues)||tA(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const s=this.getLead(),d=!!this.resumingFrom||this!==s;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Te.timestamp&&(l=!1),l)return;const{layout:h,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||u))return;it(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,k=this.treeScale.y;yue(this.layoutCorrected,this.treeScale,this.path,d),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=$e());const{target:f}=s;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(cN(this.prevProjectionDelta.x,this.projectionDelta.x),cN(this.prevProjectionDelta.y,this.projectionDelta.y)),si(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==k||!pN(this.projectionDelta.x,this.prevProjectionDelta.x)||!pN(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.visualElement?.scheduleRender(),s){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=_1(),this.projectionDelta=_1(),this.projectionDeltaWithTransform=_1()}setAnimationOrigin(s,d=!1){const l=this.snapshot,h=l?l.latestValues:{},u={...this.latestValues},p=_1();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const k=$e(),f=l?l.source:void 0,g=this.layout?this.layout.source:void 0,m=f!==g,v=this.getStack(),_=!v||v.members.length<=1,x=!!(m&&!_&&this.options.crossfade===!0&&!this.path.some(Gpe));this.animationProgress=0;let b;this.mixTargetDelta=I=>{const w=I/1e3;fN(p.x,s.x,w),fN(p.y,s.y,w),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(di(k,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Wpe(this.relativeTarget,this.relativeTargetOrigin,k,w),b&&$pe(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=$e()),it(b,this.relativeTarget)),m&&(this.animationValues=u,Ipe(u,h,this.latestValues,w,x,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Vt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=be.update(()=>{HL.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=a1(0)),this.currentAnimation=xpe(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),s.onUpdate&&s.onUpdate(d)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(zpe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:d,target:l,layout:h,latestValues:u}=s;if(!(!d||!l||!h)){if(this!==s&&this.layout&&h&&IA(this.options.animationType,this.layout.layoutBox,h.layoutBox)){l=this.target||$e();const p=Ge(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+p;const k=Ge(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+k}it(d,l),x1(d,u),si(this.projectionDeltaWithTransform,this.layoutCorrected,d,u)}}registerSharedNode(s,d){this.sharedNodes.has(s)||this.sharedNodes.set(s,new qpe),this.sharedNodes.get(s).add(d);const h=d.options.initialPromotionConfig;d.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(d):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:d,preserveFollowOpacity:l}={}){const h=this.getStack();h&&h.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let d=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(d=!0),!d)return;const h={};l.z&&Db("z",s,h,this.animationValues);for(let u=0;u<Tb.length;u++)Db(`rotate${Tb[u]}`,s,h,this.animationValues),Db(`skew${Tb[u]}`,s,h,this.animationValues);s.render();for(const u in h)s.setStaticValue(u,h[u]),this.animationValues&&(this.animationValues[u]=h[u]);s.scheduleRender()}applyProjectionStyles(s,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=DL(d?.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=DL(d?.pointerEvents)||""),this.hasProjected&&!Uc(this.latestValues)&&(s.transform=l?l({},""):"none",this.hasProjected=!1);return}s.visibility="";const u=h.animationValues||h.latestValues;this.applyTransformsToTarget();let p=Ape(this.projectionDeltaWithTransform,this.treeScale,u);l&&(p=l(u,p)),s.transform=p;const{x:k,y:f}=this.projectionDelta;s.transformOrigin=`${k.origin*100}% ${f.origin*100}% 0`,h.animationValues?s.opacity=h===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:s.opacity=h===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const g in ki){if(u[g]===void 0)continue;const{correct:m,applyTo:v,isCSSVariable:_}=ki[g],x=p==="none"?u[g]:m(u[g],h);if(v){const b=v.length;for(let I=0;I<b;I++)s[v[I]]=x}else _?this.options.visualElement.renderState.vars[g]=x:s[g]=x}this.options.layoutId&&(s.pointerEvents=h===this?DL(d?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>s.currentAnimation?.stop()),this.root.nodes.forEach(yN),this.root.sharedNodes.clear()}}}function Vpe(e){e.updateLayout()}function Tpe(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:c}=e.layout,{animationType:i}=e.options,r=t.source!==e.layout.source;i==="size"?dt(u=>{const p=r?t.measuredBox[u]:t.layoutBox[u],k=Ge(p);p.min=n[u].min,p.max=p.min+k}):IA(i,t.layoutBox,n)&&dt(u=>{const p=r?t.measuredBox[u]:t.layoutBox[u],k=Ge(n[u]);p.max=p.min+k,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+k)});const s=_1();si(s,n,t.layoutBox);const d=_1();r?si(d,e.applyTransform(c,!0),t.measuredBox):si(d,n,t.layoutBox);const l=!_A(s);let h=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:p,layout:k}=u;if(p&&k){const f=$e();di(f,t.layoutBox,p.layoutBox);const g=$e();di(g,n,k.layoutBox),MA(f,g)||(h=!0),u.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=f,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:d,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function Dpe(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Hpe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Bpe(e){e.clearSnapshot()}function yN(e){e.clearMeasurements()}function kN(e){e.isLayoutDirty=!1}function Rpe(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function mN(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Fpe(e){e.resolveTargetDelta()}function Epe(e){e.calcProjection()}function Ope(e){e.resetSkewAndRotation()}function Upe(e){e.removeLeadSnapshot()}function fN(e,t,n){e.translate=we(t.translate,0,n),e.scale=we(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function gN(e,t,n,c){e.min=we(t.min,n.min,c),e.max=we(t.max,n.max,c)}function Wpe(e,t,n,c){gN(e.x,t.x,n.x,c),gN(e.y,t.y,n.y,c)}function Gpe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Kpe={duration:.45,ease:[.4,0,.1,1]},vN=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),xN=vN("applewebkit/")&&!vN("chrome/")?Math.round:ut;function _N(e){e.min=xN(e.min),e.max=xN(e.max)}function Zpe(e){_N(e.x),_N(e.y)}function IA(e,t,n){return e==="position"||e==="preserve-aspect"&&!tpe(uN(t),uN(n),.2)}function Xpe(e){return e!==e.root&&e.scroll?.wasRoot}const Ype=bA({attachResizeListener:(e,t)=>mi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Hb={current:void 0},wA=bA({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Hb.current){const e=new Ype({});e.mount(window),e.setOptions({layoutScroll:!0}),Hb.current=e}return Hb.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Jpe={pan:{Feature:mpe},drag:{Feature:kpe,ProjectionNode:wA,MeasureLayout:gA}};function MN(e,t,n){const{props:c}=e;e.animationState&&c.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=c[i];r&&be.postRender(()=>r(t,Li(t)))}class Qpe extends ea{mount(){const{current:t}=this.node;t&&(this.unmount=ghe(t,(n,c)=>(MN(this.node,c,"Start"),i=>MN(this.node,i,"End"))))}unmount(){}}class eye extends ea{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=xi(mi(this.node.current,"focus",()=>this.onFocus()),mi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function LN(e,t,n){const{props:c}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&c.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=c[i];r&&be.postRender(()=>r(t,Li(t)))}class tye extends ea{mount(){const{current:t}=this.node;t&&(this.unmount=Mhe(t,(n,c)=>(LN(this.node,c,"Start"),(i,{success:r})=>LN(this.node,i,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Zw=new WeakMap,Bb=new WeakMap,aye=e=>{const t=Zw.get(e.target);t&&t(e)},nye=e=>{e.forEach(aye)};function oye({root:e,...t}){const n=e||document;Bb.has(n)||Bb.set(n,{});const c=Bb.get(n),i=JSON.stringify(t);return c[i]||(c[i]=new IntersectionObserver(nye,{root:e,...t})),c[i]}function cye(e,t,n){const c=oye(t);return Zw.set(e,n),c.observe(e),()=>{Zw.delete(e),c.unobserve(e)}}const iye={some:0,all:1};class rye extends ea{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:c,amount:i="some",once:r}=t,s={root:n?n.current:void 0,rootMargin:c,threshold:typeof i=="number"?i:iye[i]},d=l=>{const{isIntersecting:h}=l;if(this.isInView===h||(this.isInView=h,r&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:u,onViewportLeave:p}=this.node.getProps(),k=h?u:p;k&&k(l)};return cye(this.node.current,s,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(sye(t,n))&&this.startObserver()}unmount(){}}function sye({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const dye={inView:{Feature:rye},tap:{Feature:tye},focus:{Feature:eye},hover:{Feature:Qpe}},lye={layout:{ProjectionNode:wA,MeasureLayout:gA}},hye={...Zue,...dye,...Jpe,...lye},$C=hue(hye,bue);function CA(e){const t=Qt(()=>a1(e)),{isStatic:n}=y.useContext(ab);if(n){const[,c]=y.useState(e);y.useEffect(()=>t.on("change",c),[])}return t}function jA(e,t){const n=CA(t()),c=()=>n.set(t());return c(),eC(()=>{const i=()=>be.preRender(c,!1,!0),r=e.map(s=>s.on("change",i));return()=>{r.forEach(s=>s()),Vt(c)}}),n}function uye(e){ii.current=[],e();const t=jA(ii.current,e);return ii.current=void 0,t}function pye(e,t,n,c){if(typeof e=="function")return uye(e);const i=typeof t=="function"?t:bhe(t,n,c);return Array.isArray(e)?bN(e,i):bN([e],([r])=>i(r))}function bN(e,t){const n=Qt(()=>[]);return jA(e,()=>{n.length=0;const c=e.length;for(let i=0;i<c;i++)n[i]=e[i].get();return t(n)})}class yye{constructor(){this.componentControls=new Set}subscribe(t){return this.componentControls.add(t),()=>this.componentControls.delete(t)}start(t,n){this.componentControls.forEach(c=>{c.start(t.nativeEvent||t,n)})}cancel(){this.componentControls.forEach(t=>{t.cancel()})}stop(){this.componentControls.forEach(t=>{t.stop()})}}const kye=()=>new yye;function mye(){return Qt(kye)}const NA=y.createContext(null);function fye(e,t,n,c){if(!c)return e;const i=e.findIndex(u=>u.value===t);if(i===-1)return e;const r=c>0?1:-1,s=e[i+r];if(!s)return e;const d=e[i],l=s.layout,h=we(l.min,l.max,.5);return r===1&&d.layout.max+n>h||r===-1&&d.layout.min+n<h?S0e(e,i,i+r):e}function gye({children:e,as:t="ul",axis:n="y",onReorder:c,values:i,...r},s){const d=Qt(()=>$C[t]),l=[],h=y.useRef(!1);gt(!!i,"Reorder.Group must be provided a values prop","reorder-values");const u={axis:n,registerItem:(p,k)=>{const f=l.findIndex(g=>p===g.value);f!==-1?l[f].layout=k[n]:l.push({value:p,layout:k[n]}),l.sort(_ye)},updateOrder:(p,k,f)=>{if(h.current)return;const g=fye(l,p,k,f);l!==g&&(h.current=!0,c(g.map(xye).filter(m=>i.indexOf(m)!==-1)))}};return y.useEffect(()=>{h.current=!1}),o.jsx(d,{...r,ref:s,ignoreStrict:!0,children:o.jsx(NA.Provider,{value:u,children:e})})}const vye=y.forwardRef(gye);function xye(e){return e.value}function _ye(e,t){return e.layout.min-t.layout.min}function IN(e,t=0){return De(e)?e:CA(t)}function Mye({children:e,style:t={},value:n,as:c="li",onDrag:i,layout:r=!0,...s},d){const l=Qt(()=>$C[c]),h=y.useContext(NA),u={x:IN(t.x),y:IN(t.y)},p=pye([u.x,u.y],([m,v])=>m||v?1:"unset");gt(!!h,"Reorder.Item must be a child of Reorder.Group","reorder-item-child");const{axis:k,registerItem:f,updateOrder:g}=h;return o.jsx(l,{drag:k,...s,dragSnapToOrigin:!0,style:{...t,x:u.x,y:u.y,zIndex:p},layout:r,onDrag:(m,v)=>{const{velocity:_}=v;_[k]&&g(n,u[k].get(),_[k]),i&&i(m,v)},onLayoutMeasure:m=>f(n,m),ref:d,ignoreStrict:!0,children:e})}const Lye=y.forwardRef(Mye),XL=[o.jsx(oi,{size:18}),o.jsx(Gt,{size:18}),o.jsx(ai,{size:18}),o.jsx(Kt,{size:18}),o.jsx(W1,{size:18}),o.jsx(U1,{size:18})],bye=({items:e,onReorder:t,draggable:n=!1,className:c,header:i,headerStyle:r,itemsDraggable:s=!0})=>{const[d,l]=y.useState(e??[]);return y.useEffect(()=>{e&&Array.isArray(e)?(e.forEach((h,u)=>{if(h.icon==null&&(h.icon=XL[u%XL.length]),typeof h.text=="string"&&h.text.includes("/")){const p=String(h.text).split("/"),k=p[0].trim(),g=p.slice(1).join("/").trim().match(/^(\d+)(.*)$/);if(g){const m=g[1],v=g[2]??"",_=m.padStart(3,"0");h.text=`${k} / ${_}${v}`}}}),l(e)):l([])},[e]),o.jsxs("div",{className:`trend-list ${c??""}`,draggable:n,style:{position:"relative"},children:[o.jsx("div",{className:"trend-header",style:r,children:i??"Trend"}),o.jsx("div",{className:"trend-list-body",style:{opacity:n?0:1},children:o.jsx(vye,{axis:"y",values:d,onReorder:h=>{l(h),t?.(h)},style:{display:"flex",flexDirection:"column",gap:8},children:d.map((h,u)=>o.jsx(Iye,{value:h,index:u,itemsDraggable:s},String(h.id)))})}),n&&o.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:o.jsx(a.Move,{size:48,strokeWidth:1.5,style:{opacity:.8}})})]})};function Iye({value:e,index:t}){const n=mye(),c=XL[t%XL.length]??null;return o.jsx(Lye,{value:e,dragListener:!1,dragControls:n,style:{listStyle:"none"},onDragStart:()=>{try{document.body.classList.add("is-dragging")}catch{}},onDragEnd:()=>{try{document.body.classList.remove("is-dragging")}catch{}},children:o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[o.jsx("div",{className:"reorder-handle","aria-hidden":!0,onPointerDown:i=>n.start(i),style:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center",cursor:"grab",userSelect:"none"},children:o.jsx("svg",{width:"25",height:"25",viewBox:"0 0 24 24","aria-hidden":!0,children:o.jsxs("g",{fill:"currentColor",children:[o.jsx("circle",{cx:"8",cy:"6",r:"2"}),o.jsx("circle",{cx:"16",cy:"6",r:"2"}),o.jsx("circle",{cx:"8",cy:"12",r:"2"}),o.jsx("circle",{cx:"16",cy:"12",r:"2"}),o.jsx("circle",{cx:"8",cy:"18",r:"2"}),o.jsx("circle",{cx:"16",cy:"18",r:"2"})]})})}),o.jsx("div",{style:{flex:1},children:o.jsx(K$,{title:e.title,subtitle:e.subtitle,text:e.text,background:e.background,titleStyle:e.titleStyle,subtitleStyle:e.subtitleStyle,textStyle:e.textStyle,itemStyle:e.itemStyle,icon:e.icon??c})})]})})}function wye(e,t){return t.required?t.type==="checkbox"&&!e?{isValid:!1,error:`${t.label} est requis`}:!e||typeof e=="string"&&e.trim()===""?{isValid:!1,error:`${t.label} est requis`}:null:null}function Cye(e){return!e||typeof e=="string"&&e.trim()===""}function jye(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)?null:{isValid:!1,error:"Format d'email invalide"}}function Nye(e){return/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/.test(e)?null:{isValid:!1,error:"Format d'URL invalide"}}function Sye(e,t){const n=Number(e);return isNaN(n)?{isValid:!1,error:"Doit être un nombre valide"}:t.validation?.min!==void 0&&n<Number(t.validation.min)?{isValid:!1,error:`Doit être ≥ ${t.validation.min}`}:t.validation?.max!==void 0&&n>Number(t.validation.max)?{isValid:!1,error:`Doit être ≤ ${t.validation.max}`}:null}function $ye(e,t){return t.validation?.minDate&&new Date(e)<new Date(t.validation.minDate)?{isValid:!1,error:`Doit être après ${t.validation.minDate}`}:t.validation?.maxDate&&new Date(e)>new Date(t.validation.maxDate)?{isValid:!1,error:`Doit être avant ${t.validation.maxDate}`}:null}function qye(e,t){if(t.validation?.acceptedTypes){const n=t.validation.acceptedTypes.split(","),c=e.type;if(!n.some(i=>c.match(i.replace("*",".*"))))return{isValid:!1,error:`Type de fichier non supporté: ${c}`}}return t.validation?.maxFileSize&&e.size>t.validation.maxFileSize?{isValid:!1,error:`Fichier trop volumineux (max ${t.validation.maxFileSize/1048576}MB)`}:null}function Aye(e,t){return t.validation?t.validation.minLength&&e.length<t.validation.minLength?{isValid:!1,error:`Minimum ${t.validation.minLength} caractères`}:t.validation.maxLength&&e.length>t.validation.maxLength?{isValid:!1,error:`Maximum ${t.validation.maxLength} caractères`}:t.validation.pattern&&!new RegExp(t.validation.pattern).test(e)?{isValid:!1,error:"Format invalide"}:null:null}function YL(e,t){const n=wye(e,t);if(n)return n;if(Cye(e))return{isValid:!0};const c=e.toString();switch(t.type){case"email":{const r=jye(c);if(r)return r;break}case"url":{const r=Nye(c);if(r)return r;break}case"number":{const r=Sye(e,t);if(r)return r;break}case"date":case"month":case"week":case"time":case"datetime-local":{const r=$ye(e,t);if(r)return r;break}case"file":{const r=qye(e,t);if(r)return r;break}}const i=Aye(c,t);return i||{isValid:!0}}function SA(e,t){const n={};let c=!0;for(const i of t){const r=YL(e[i.name],i);r.isValid||(n[i.name]=r.error,c=!1)}return{isValid:c,errors:n}}const zye="_formContainer_14ads_1",Pye="_headerLine_14ads_17",Vye="_formTitle_14ads_25",Tye="_formDescription_14ads_30",Dye="_sectionTitle_14ads_37",Hye="_sectionHelp_14ads_44",Bye="_fieldHelp_14ads_50",Rye="_gridContainer_14ads_58",Fye="_fieldGridItem_14ads_70",Eye="_sectionFull_14ads_105",Oye="_formFooter_14ads_110",Uye="_footerLeft_14ads_118",Wye="_footerRight_14ads_119",Gye="_cancelLink_14ads_125",Kye="_submitButton_14ads_136",Zye="_fieldLabel_14ads_148",Xye="_inputWrapper_14ads_163",Yye="_inputInner_14ads_187",Jye="_hasPrefix_14ads_196",Qye="_inputBase_14ads_196",e4e="_iconPrefix_14ads_292",t4e="_iconSuffix_14ads_293",a4e="_passwordToggle_14ads_319",n4e="_fieldError_14ads_365",o4e="_fieldInvalid_14ads_372",_e={formContainer:zye,headerLine:Pye,formTitle:Vye,formDescription:Tye,sectionTitle:Dye,sectionHelp:Hye,fieldHelp:Bye,gridContainer:Rye,fieldGridItem:Fye,sectionFull:Eye,formFooter:Oye,footerLeft:Uye,footerRight:Wye,cancelLink:Gye,submitButton:Kye,fieldLabel:Zye,inputWrapper:Xye,inputInner:Yye,hasPrefix:Jye,inputBase:Qye,iconPrefix:e4e,iconSuffix:t4e,passwordToggle:a4e,fieldError:n4e,fieldInvalid:o4e},$A=({field:e,value:t,onChange:n,onBlur:c,error:i,touched:r})=>{const[s,d]=y.useState(!1),l=e.type==="password",h=e.attributes?.showPasswordToggle??!0,u=l?s?"text":"password":e.type,p=e.attributes?.iconComponent??(e.attributes?.icon?At[e.attributes.icon]:null),k=e.attributes?.iconPosition??"suffix",f=g=>{n(g.target.value)};return o.jsxs("div",{className:_e.inputWrapper,children:[o.jsx("label",{className:`${_e.fieldLabel} ${e.required?"required":""}`,htmlFor:e.name,children:e.label}),o.jsxs("div",{className:`${_e.inputInner} ${p&&k==="prefix"?_e.hasPrefix:""}`,children:[p&&k==="prefix"&&o.jsx("span",{className:_e.iconPrefix,children:o.jsx(p,{size:16})}),o.jsx("input",{id:e.name,name:e.name,type:u,placeholder:e.placeholder,className:`${_e.inputBase} ${i?_e.fieldInvalid:""}`,value:t??"",onChange:f,onBlur:c,disabled:!!e.disabled,"aria-invalid":!!i,"aria-describedby":e.help?`${e.name}-help`:void 0}),l&&h&&o.jsx("button",{type:"button","aria-label":s?"Masquer le mot de passe":"Afficher le mot de passe",className:_e.passwordToggle,onClick:()=>d(g=>!g),children:s?o.jsx(J1,{size:16}):o.jsx(Q1,{size:16})}),p&&k==="suffix"&&!l&&o.jsx("span",{className:_e.iconSuffix,children:o.jsx(p,{size:16})})]}),r&&i&&o.jsx("span",{className:_e.fieldError,children:i})]})},c4e="_fieldGroup_yb3zi_7",i4e="_fieldLabel_yb3zi_11",r4e="_required_yb3zi_17",s4e="_fieldInput_yb3zi_22",d4e="_fieldInvalid_yb3zi_40",l4e="_fieldValid_yb3zi_44",h4e="_fieldError_yb3zi_48",u4e="_radioGroup_yb3zi_57",Zt={fieldGroup:c4e,fieldLabel:i4e,required:r4e,fieldInput:s4e,fieldInvalid:d4e,fieldValid:l4e,fieldError:h4e,radioGroup:u4e},ib=({field:e,children:t,error:n,touched:c})=>{const i=c&&n;return o.jsxs("div",{className:Zt.fieldGroup,children:[e.type!=="checkbox"&&e.type!=="radio"&&o.jsx("label",{className:`${Zt.fieldLabel} ${e.required?Zt.required:""}`,children:e.label}),t,i&&o.jsx("span",{className:Zt.fieldError,children:n})]})},qA=({field:e,value:t,onChange:n,onBlur:c,error:i,touched:r})=>{const s=r&&i,d=r&&!i&&t,l=["form-control",Zt.fieldInput,s?Zt.fieldInvalid:"",d?Zt.fieldValid:""].filter(Boolean).join(" ");return o.jsx(ib,{field:e,error:i,touched:r,children:o.jsx("textarea",{className:l,placeholder:e.placeholder,value:t||"",onChange:h=>n(h.target.value),onBlur:c,rows:4})})},p4e="_wrapper_117u4_1",y4e="_wrapperInvalid_117u4_15",k4e="_nativeSelect_117u4_19",m4e="_display_117u4_30",f4e="_topLabel_117u4_37",g4e="_valueLine_117u4_45",v4e="_valuePlaceholder_117u4_53",x4e="_valueActive_117u4_57",_4e="_caret_117u4_61",M4e="_error_117u4_75",L4e="_optionStyle_117u4_89",rt={wrapper:p4e,wrapperInvalid:y4e,nativeSelect:k4e,display:m4e,topLabel:f4e,valueLine:g4e,valuePlaceholder:v4e,valueActive:x4e,caret:_4e,error:M4e,optionStyle:L4e},qC=({field:e,value:t,onChange:n,onBlur:c,error:i,touched:r})=>{const s=!!(r&&i),d=e.label||"",l=e.placeholder||"",h=e.options?.find(u=>String(u.value)===String(t))?.label??"";return o.jsxs("div",{className:`${rt.wrapper} ${s?rt.wrapperInvalid:""} ${t?rt.wrapperHasValue:""}`,children:[o.jsxs("select",{id:e.name,name:e.name,className:rt.nativeSelect,value:t??"",onChange:u=>n(u.target.value),onBlur:c,"aria-invalid":s,"aria-label":d,children:[o.jsx("option",{value:"",disabled:!0,hidden:!0,children:l||`Sélectionnez ${d?.toLowerCase()||""}`}),e.options?.map((u,p)=>o.jsx("option",{value:u.value,className:rt.optionStyle,children:u.label},p))]}),o.jsxs("div",{className:rt.display,children:[d&&o.jsx("span",{className:rt.topLabel,children:d}),o.jsx("span",{className:`${rt.valueLine} ${t?rt.valueActive:rt.valuePlaceholder}`,children:t?h:l}),o.jsx("span",{className:rt.caret,"aria-hidden":"true"})]}),s&&o.jsx("span",{className:rt.error,children:i})]})},AA=({field:e,value:t,onChange:n,onBlur:c,error:i,touched:r})=>o.jsx(ib,{field:e,error:i,touched:r,children:o.jsxs("div",{className:"form-check",children:[o.jsx("input",{type:"checkbox",className:"form-check-input",id:e.name,checked:!!t,onChange:s=>n(s.target.checked),onBlur:c}),o.jsx("label",{className:"form-check-label",htmlFor:e.name,children:e.label})]})}),zA=({field:e,value:t,onChange:n,onBlur:c,error:i,touched:r})=>o.jsx(ib,{field:e,error:i,touched:r,children:o.jsx("div",{className:Zt.radioGroup,children:e.options?.map(s=>o.jsxs("div",{className:"form-check",children:[o.jsx("input",{type:"radio",className:"form-check-input",id:`${e.name}-${s.value}`,name:e.name,value:s.value,checked:t===s.value,onChange:d=>n(d.target.value),onBlur:c}),o.jsx("label",{className:"form-check-label",htmlFor:`${e.name}-${s.value}`,children:s.label})]},s.value))})}),b4e="_fileInputContainer_r2guc_3",I4e="_customFileInput_r2guc_8",w4e="_fileInputLabel_r2guc_12",C4e="_dragOver_r2guc_39",j4e="_uploadIcon_r2guc_44",N4e="_uploadText_r2guc_50",S4e="_uploadHint_r2guc_56",$4e="_fileList_r2guc_60",q4e="_fileListTitle_r2guc_69",A4e="_fileItem_r2guc_80",z4e="_fileIcon_r2guc_96",P4e="_fileName_r2guc_102",V4e="_fileSize_r2guc_108",T4e="_removeButton_r2guc_114",D4e="_errorText_r2guc_129",Re={fileInputContainer:b4e,customFileInput:I4e,fileInputLabel:w4e,dragOver:C4e,uploadIcon:j4e,uploadText:N4e,uploadHint:S4e,fileList:$4e,fileListTitle:q4e,fileItem:A4e,fileIcon:z4e,fileName:P4e,fileSize:V4e,removeButton:T4e,errorText:D4e},PA=({field:e,value:t,onChange:n,onBlur:c,error:i,touched:r})=>{const s=y.useRef(null),[d,l]=y.useState(!1),h=v=>{n(v.target.files)},u=()=>{s.current&&s.current.click()},p=v=>{v.preventDefault(),l(!0)},k=()=>{l(!1)},f=v=>{v.preventDefault(),l(!1),v.dataTransfer.files&&v.dataTransfer.files.length>0&&n(v.dataTransfer.files)},g=v=>{if(!t)return;const _=Array.from(t);_.splice(v,1);const x=new DataTransfer;_.forEach(b=>x.items.add(b)),n(x.files)},m=v=>{if(v===0)return"0 Bytes";const _=1024,x=["Bytes","KB","MB","GB"],b=Math.floor(Math.log(v)/Math.log(_));return parseFloat((v/Math.pow(_,b)).toFixed(2))+" "+x[b]};return o.jsxs("div",{className:`${Re.fileInputContainer} ${r&&i?Re.hasError:""}`,children:[o.jsxs("label",{htmlFor:e.name,className:"form-label",children:[e.label,e.required&&o.jsx("span",{className:"text-danger",children:" *"})]}),o.jsx("input",{type:"file",id:e.name,name:e.name,multiple:e.attributes?.multiple||!1,accept:e.attributes?.accept,onChange:h,onBlur:c,ref:s,className:Re.customFileInput}),o.jsxs("label",{htmlFor:e.name,className:`${Re.fileInputLabel} ${d?Re.dragOver:""}`,onDragOver:p,onDragLeave:k,onDrop:f,onClick:u,tabIndex:0,children:[o.jsx("div",{className:Re.uploadIcon,children:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",fill:"currentColor",viewBox:"0 0 16 16",children:[o.jsx("path",{d:"M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"}),o.jsx("path",{d:"M7.646 1.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 2.707V11.5a.5.5 0 0 1-1 0V2.707L5.354 4.854a.5.5 0 1 1-.708-.708l3-3z"})]})}),o.jsx("div",{className:Re.uploadText,children:d?"Déposez vos fichiers ici":"Cliquez ou glissez-déposez pour téléverser"}),o.jsxs("div",{className:Re.uploadHint,children:[e.attributes?.accept||"Tous les fichiers"," ",e.attributes?.multiple?"(Multiple autorisé)":""]})]}),t&&t.length>0&&o.jsxs("div",{className:Re.fileList,children:[o.jsx("div",{className:Re.fileListTitle,children:"Fichiers sélectionnés:"}),o.jsx("ul",{children:Array.from(t).map((v,_)=>o.jsxs("li",{className:Re.fileItem,children:[o.jsx("div",{className:Re.fileIcon,children:o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",children:o.jsx("path",{d:"M4 0h5.293A1 1 0 0 1 10 .293L13.707 4a1 1 0 0 1 .293.707V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm5.5 1.5v2a1 1 0 0 0 1 1h2l-3-3z"})})}),o.jsx("div",{className:Re.fileName,children:v.name}),o.jsx("div",{className:Re.fileSize,children:m(v.size)}),o.jsx("button",{type:"button",className:Re.removeButton,onClick:x=>{x.stopPropagation(),g(_)},"aria-label":`Supprimer ${v.name}`,children:o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",children:[o.jsx("path",{d:"M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z"}),o.jsx("path",{fillRule:"evenodd",d:"M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z"})]})})]},_))})]}),r&&i&&o.jsx("div",{className:Re.errorText,children:i})]})},H4e="_container_ecah4_2",B4e="_label_ecah4_6",R4e="_requiredIndicator_ecah4_13",F4e="_input_ecah4_18",E4e="_inputError_ecah4_49",O4e="_errorMessage_ecah4_58",p1={container:H4e,label:B4e,requiredIndicator:R4e,input:F4e,inputError:E4e,errorMessage:O4e},VA=({field:e,value:t,onChange:n,onBlur:c,error:i,touched:r,labelColor:s="black",backgroundColor:d="white"})=>{const l=e.type==="month"?"month":e.type==="week"?"week":e.type==="time"?"time":e.type==="datetime-local"?"datetime-local":"date";return o.jsxs("div",{className:p1.container,children:[o.jsxs("label",{htmlFor:e.name,className:p1.label,style:{color:s},children:[e.label,e.required&&o.jsx("span",{className:p1.requiredIndicator,children:"*"})]}),o.jsx("input",{type:l,id:e.name,name:e.name,value:t||"",onChange:h=>n(h.target.value),onBlur:c,className:`${p1.input} ${r&&i?p1.inputError:""}`,style:{color:s,backgroundColor:d},min:e.validation?.min,max:e.validation?.max,step:e.type==="time"?e.attributes?.step:void 0,disabled:e.disabled}),r&&i&&o.jsx("div",{className:p1.errorMessage,children:i})]})},U4e="_rangeContainer_cyqk3_3",W4e={rangeContainer:U4e},TA=({field:e,value:t,onChange:n,onBlur:c,error:i,touched:r})=>o.jsxs("div",{className:`mb-3 ${W4e.rangeContainer}`,children:[o.jsxs("label",{htmlFor:e.name,className:"form-label",children:[e.label,": ",t,e.required&&o.jsx("span",{className:"text-danger",children:" *"})]}),o.jsx("input",{type:"range",id:e.name,name:e.name,value:t||0,onChange:s=>n(s.target.value),onBlur:c,className:`form-range ${r&&i?"is-invalid":""}`,min:e.validation?.min||0,max:e.validation?.max||100,step:e.attributes?.step||1}),r&&i&&o.jsx("div",{className:"invalid-feedback",children:i})]}),G4e="_colorPickerContainer_1wxgj_2",K4e="_colorInput_1wxgj_19",Z4e="_colorValue_1wxgj_39",Rb={colorPickerContainer:G4e,colorInput:K4e,colorValue:Z4e},DA=({field:e,value:t,onChange:n,onBlur:c,error:i,touched:r})=>o.jsxs("div",{className:"mb-3",children:[o.jsxs("label",{htmlFor:e.name,className:"form-label",children:[e.label,e.required&&o.jsx("span",{className:"text-danger",children:" *"})]}),o.jsxs("div",{className:Rb.colorPickerContainer,children:[o.jsx("input",{type:"color",id:e.name,name:e.name,value:t||"#000000",onChange:s=>n(s.target.value),onBlur:c,className:Rb.colorInput}),o.jsx("span",{className:Rb.colorValue,children:t})]}),r&&i&&o.jsx("div",{className:"invalid-feedback",children:i})]}),HA=({field:e,value:t,onChange:n,onBlur:c,error:i,touched:r})=>{const s=["date","month","week","time","datetime-local"];if(e.type==="file")return o.jsx(PA,{field:e,value:t,onChange:n,onBlur:c,error:i,touched:r});if(s.includes(e.type))return o.jsx(VA,{field:e,value:t,onChange:n,onBlur:c,error:i,touched:r});if(e.type==="range")return o.jsx(TA,{field:e,value:t,onChange:n,onBlur:c,error:i,touched:r});if(e.type==="color")return o.jsx(DA,{field:e,value:t,onChange:n,onBlur:c,error:i,touched:r});switch(e.type){case"textarea":return o.jsx(qA,{field:e,value:t,onChange:n,onBlur:c,error:i,touched:r});case"select":return o.jsx(qC,{field:e,value:t,onChange:n,onBlur:c,error:i,touched:r});case"checkbox":return o.jsx(AA,{field:e,value:t,onChange:n,onBlur:c,error:i,touched:r});case"radio":return o.jsx(zA,{field:e,value:t,onChange:n,onBlur:c,error:i,touched:r});default:return o.jsx($A,{field:e,value:t,onChange:n,onBlur:c,error:i,touched:r})}};var Fb,wN;function X4e(){if(wN)return Fb;wN=1;function e(){this.__data__=[],this.size=0}return Fb=e,Fb}var Eb,CN;function BA(){if(CN)return Eb;CN=1;function e(t,n){return t===n||t!==t&&n!==n}return Eb=e,Eb}var Ob,jN;function rb(){if(jN)return Ob;jN=1;var e=BA();function t(n,c){for(var i=n.length;i--;)if(e(n[i][0],c))return i;return-1}return Ob=t,Ob}var Ub,NN;function Y4e(){if(NN)return Ub;NN=1;var e=rb(),t=Array.prototype,n=t.splice;function c(i){var r=this.__data__,s=e(r,i);if(s<0)return!1;var d=r.length-1;return s==d?r.pop():n.call(r,s,1),--this.size,!0}return Ub=c,Ub}var Wb,SN;function J4e(){if(SN)return Wb;SN=1;var e=rb();function t(n){var c=this.__data__,i=e(c,n);return i<0?void 0:c[i][1]}return Wb=t,Wb}var Gb,$N;function Q4e(){if($N)return Gb;$N=1;var e=rb();function t(n){return e(this.__data__,n)>-1}return Gb=t,Gb}var Kb,qN;function e5e(){if(qN)return Kb;qN=1;var e=rb();function t(n,c){var i=this.__data__,r=e(i,n);return r<0?(++this.size,i.push([n,c])):i[r][1]=c,this}return Kb=t,Kb}var Zb,AN;function sb(){if(AN)return Zb;AN=1;var e=X4e(),t=Y4e(),n=J4e(),c=Q4e(),i=e5e();function r(s){var d=-1,l=s==null?0:s.length;for(this.clear();++d<l;){var h=s[d];this.set(h[0],h[1])}}return r.prototype.clear=e,r.prototype.delete=t,r.prototype.get=n,r.prototype.has=c,r.prototype.set=i,Zb=r,Zb}var Xb,zN;function t5e(){if(zN)return Xb;zN=1;var e=sb();function t(){this.__data__=new e,this.size=0}return Xb=t,Xb}var Yb,PN;function a5e(){if(PN)return Yb;PN=1;function e(t){var n=this.__data__,c=n.delete(t);return this.size=n.size,c}return Yb=e,Yb}var Jb,VN;function n5e(){if(VN)return Jb;VN=1;function e(t){return this.__data__.get(t)}return Jb=e,Jb}var Qb,TN;function o5e(){if(TN)return Qb;TN=1;function e(t){return this.__data__.has(t)}return Qb=e,Qb}var eI,DN;function RA(){if(DN)return eI;DN=1;var e=typeof a.commonjsGlobal=="object"&&a.commonjsGlobal&&a.commonjsGlobal.Object===Object&&a.commonjsGlobal;return eI=e,eI}var tI,HN;function Tt(){if(HN)return tI;HN=1;var e=RA(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return tI=n,tI}var aI,BN;function AC(){if(BN)return aI;BN=1;var e=Tt(),t=e.Symbol;return aI=t,aI}var nI,RN;function c5e(){if(RN)return nI;RN=1;var e=AC(),t=Object.prototype,n=t.hasOwnProperty,c=t.toString,i=e?e.toStringTag:void 0;function r(s){var d=n.call(s,i),l=s[i];try{s[i]=void 0;var h=!0}catch{}var u=c.call(s);return h&&(d?s[i]=l:delete s[i]),u}return nI=r,nI}var oI,FN;function i5e(){if(FN)return oI;FN=1;var e=Object.prototype,t=e.toString;function n(c){return t.call(c)}return oI=n,oI}var cI,EN;function db(){if(EN)return cI;EN=1;var e=AC(),t=c5e(),n=i5e(),c="[object Null]",i="[object Undefined]",r=e?e.toStringTag:void 0;function s(d){return d==null?d===void 0?i:c:r&&r in Object(d)?t(d):n(d)}return cI=s,cI}var iI,ON;function FA(){if(ON)return iI;ON=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return iI=e,iI}var rI,UN;function EA(){if(UN)return rI;UN=1;var e=db(),t=FA(),n="[object AsyncFunction]",c="[object Function]",i="[object GeneratorFunction]",r="[object Proxy]";function s(d){if(!t(d))return!1;var l=e(d);return l==c||l==i||l==n||l==r}return rI=s,rI}var sI,WN;function r5e(){if(WN)return sI;WN=1;var e=Tt(),t=e["__core-js_shared__"];return sI=t,sI}var dI,GN;function s5e(){if(GN)return dI;GN=1;var e=r5e(),t=function(){var c=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}();function n(c){return!!t&&t in c}return dI=n,dI}var lI,KN;function OA(){if(KN)return lI;KN=1;var e=Function.prototype,t=e.toString;function n(c){if(c!=null){try{return t.call(c)}catch{}try{return c+""}catch{}}return""}return lI=n,lI}var hI,ZN;function d5e(){if(ZN)return hI;ZN=1;var e=EA(),t=s5e(),n=FA(),c=OA(),i=/[\\^$.*+?()[\]{}|]/g,r=/^\[object .+?Constructor\]$/,s=Function.prototype,d=Object.prototype,l=s.toString,h=d.hasOwnProperty,u=RegExp("^"+l.call(h).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(k){if(!n(k)||t(k))return!1;var f=e(k)?u:r;return f.test(c(k))}return hI=p,hI}var uI,XN;function l5e(){if(XN)return uI;XN=1;function e(t,n){return t?.[n]}return uI=e,uI}var pI,YN;function z1(){if(YN)return pI;YN=1;var e=d5e(),t=l5e();function n(c,i){var r=t(c,i);return e(r)?r:void 0}return pI=n,pI}var yI,JN;function zC(){if(JN)return yI;JN=1;var e=z1(),t=Tt(),n=e(t,"Map");return yI=n,yI}var kI,QN;function lb(){if(QN)return kI;QN=1;var e=z1(),t=e(Object,"create");return kI=t,kI}var mI,eS;function h5e(){if(eS)return mI;eS=1;var e=lb();function t(){this.__data__=e?e(null):{},this.size=0}return mI=t,mI}var fI,tS;function u5e(){if(tS)return fI;tS=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return fI=e,fI}var gI,aS;function p5e(){if(aS)return gI;aS=1;var e=lb(),t="__lodash_hash_undefined__",n=Object.prototype,c=n.hasOwnProperty;function i(r){var s=this.__data__;if(e){var d=s[r];return d===t?void 0:d}return c.call(s,r)?s[r]:void 0}return gI=i,gI}var vI,nS;function y5e(){if(nS)return vI;nS=1;var e=lb(),t=Object.prototype,n=t.hasOwnProperty;function c(i){var r=this.__data__;return e?r[i]!==void 0:n.call(r,i)}return vI=c,vI}var xI,oS;function k5e(){if(oS)return xI;oS=1;var e=lb(),t="__lodash_hash_undefined__";function n(c,i){var r=this.__data__;return this.size+=this.has(c)?0:1,r[c]=e&&i===void 0?t:i,this}return xI=n,xI}var _I,cS;function m5e(){if(cS)return _I;cS=1;var e=h5e(),t=u5e(),n=p5e(),c=y5e(),i=k5e();function r(s){var d=-1,l=s==null?0:s.length;for(this.clear();++d<l;){var h=s[d];this.set(h[0],h[1])}}return r.prototype.clear=e,r.prototype.delete=t,r.prototype.get=n,r.prototype.has=c,r.prototype.set=i,_I=r,_I}var MI,iS;function f5e(){if(iS)return MI;iS=1;var e=m5e(),t=sb(),n=zC();function c(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return MI=c,MI}var LI,rS;function g5e(){if(rS)return LI;rS=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return LI=e,LI}var bI,sS;function hb(){if(sS)return bI;sS=1;var e=g5e();function t(n,c){var i=n.__data__;return e(c)?i[typeof c=="string"?"string":"hash"]:i.map}return bI=t,bI}var II,dS;function v5e(){if(dS)return II;dS=1;var e=hb();function t(n){var c=e(this,n).delete(n);return this.size-=c?1:0,c}return II=t,II}var wI,lS;function x5e(){if(lS)return wI;lS=1;var e=hb();function t(n){return e(this,n).get(n)}return wI=t,wI}var CI,hS;function _5e(){if(hS)return CI;hS=1;var e=hb();function t(n){return e(this,n).has(n)}return CI=t,CI}var jI,uS;function M5e(){if(uS)return jI;uS=1;var e=hb();function t(n,c){var i=e(this,n),r=i.size;return i.set(n,c),this.size+=i.size==r?0:1,this}return jI=t,jI}var NI,pS;function UA(){if(pS)return NI;pS=1;var e=f5e(),t=v5e(),n=x5e(),c=_5e(),i=M5e();function r(s){var d=-1,l=s==null?0:s.length;for(this.clear();++d<l;){var h=s[d];this.set(h[0],h[1])}}return r.prototype.clear=e,r.prototype.delete=t,r.prototype.get=n,r.prototype.has=c,r.prototype.set=i,NI=r,NI}var SI,yS;function L5e(){if(yS)return SI;yS=1;var e=sb(),t=zC(),n=UA(),c=200;function i(r,s){var d=this.__data__;if(d instanceof e){var l=d.__data__;if(!t||l.length<c-1)return l.push([r,s]),this.size=++d.size,this;d=this.__data__=new n(l)}return d.set(r,s),this.size=d.size,this}return SI=i,SI}var $I,kS;function b5e(){if(kS)return $I;kS=1;var e=sb(),t=t5e(),n=a5e(),c=n5e(),i=o5e(),r=L5e();function s(d){var l=this.__data__=new e(d);this.size=l.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=c,s.prototype.has=i,s.prototype.set=r,$I=s,$I}var qI,mS;function I5e(){if(mS)return qI;mS=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return qI=t,qI}var AI,fS;function w5e(){if(fS)return AI;fS=1;function e(t){return this.__data__.has(t)}return AI=e,AI}var zI,gS;function C5e(){if(gS)return zI;gS=1;var e=UA(),t=I5e(),n=w5e();function c(i){var r=-1,s=i==null?0:i.length;for(this.__data__=new e;++r<s;)this.add(i[r])}return c.prototype.add=c.prototype.push=t,c.prototype.has=n,zI=c,zI}var PI,vS;function j5e(){if(vS)return PI;vS=1;function e(t,n){for(var c=-1,i=t==null?0:t.length;++c<i;)if(n(t[c],c,t))return!0;return!1}return PI=e,PI}var VI,xS;function N5e(){if(xS)return VI;xS=1;function e(t,n){return t.has(n)}return VI=e,VI}var TI,_S;function WA(){if(_S)return TI;_S=1;var e=C5e(),t=j5e(),n=N5e(),c=1,i=2;function r(s,d,l,h,u,p){var k=l&c,f=s.length,g=d.length;if(f!=g&&!(k&&g>f))return!1;var m=p.get(s),v=p.get(d);if(m&&v)return m==d&&v==s;var _=-1,x=!0,b=l&i?new e:void 0;for(p.set(s,d),p.set(d,s);++_<f;){var I=s[_],w=d[_];if(h)var j=k?h(w,I,_,d,s,p):h(I,w,_,s,d,p);if(j!==void 0){if(j)continue;x=!1;break}if(b){if(!t(d,function(L,M){if(!n(b,M)&&(I===L||u(I,L,l,h,p)))return b.push(M)})){x=!1;break}}else if(!(I===w||u(I,w,l,h,p))){x=!1;break}}return p.delete(s),p.delete(d),x}return TI=r,TI}var DI,MS;function S5e(){if(MS)return DI;MS=1;var e=Tt(),t=e.Uint8Array;return DI=t,DI}var HI,LS;function $5e(){if(LS)return HI;LS=1;function e(t){var n=-1,c=Array(t.size);return t.forEach(function(i,r){c[++n]=[r,i]}),c}return HI=e,HI}var BI,bS;function q5e(){if(bS)return BI;bS=1;function e(t){var n=-1,c=Array(t.size);return t.forEach(function(i){c[++n]=i}),c}return BI=e,BI}var RI,IS;function A5e(){if(IS)return RI;IS=1;var e=AC(),t=S5e(),n=BA(),c=WA(),i=$5e(),r=q5e(),s=1,d=2,l="[object Boolean]",h="[object Date]",u="[object Error]",p="[object Map]",k="[object Number]",f="[object RegExp]",g="[object Set]",m="[object String]",v="[object Symbol]",_="[object ArrayBuffer]",x="[object DataView]",b=e?e.prototype:void 0,I=b?b.valueOf:void 0;function w(j,L,M,S,C,N,q){switch(M){case x:if(j.byteLength!=L.byteLength||j.byteOffset!=L.byteOffset)return!1;j=j.buffer,L=L.buffer;case _:return!(j.byteLength!=L.byteLength||!N(new t(j),new t(L)));case l:case h:case k:return n(+j,+L);case u:return j.name==L.name&&j.message==L.message;case f:case m:return j==L+"";case p:var A=i;case g:var P=S&s;if(A||(A=r),j.size!=L.size&&!P)return!1;var T=q.get(j);if(T)return T==L;S|=d,q.set(j,L);var H=c(A(j),A(L),S,C,N,q);return q.delete(j),H;case v:if(I)return I.call(j)==I.call(L)}return!1}return RI=w,RI}var FI,wS;function z5e(){if(wS)return FI;wS=1;function e(t,n){for(var c=-1,i=n.length,r=t.length;++c<i;)t[r+c]=n[c];return t}return FI=e,FI}var EI,CS;function PC(){if(CS)return EI;CS=1;var e=Array.isArray;return EI=e,EI}var OI,jS;function P5e(){if(jS)return OI;jS=1;var e=z5e(),t=PC();function n(c,i,r){var s=i(c);return t(c)?s:e(s,r(c))}return OI=n,OI}var UI,NS;function V5e(){if(NS)return UI;NS=1;function e(t,n){for(var c=-1,i=t==null?0:t.length,r=0,s=[];++c<i;){var d=t[c];n(d,c,t)&&(s[r++]=d)}return s}return UI=e,UI}var WI,SS;function T5e(){if(SS)return WI;SS=1;function e(){return[]}return WI=e,WI}var GI,$S;function D5e(){if($S)return GI;$S=1;var e=V5e(),t=T5e(),n=Object.prototype,c=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,r=i?function(s){return s==null?[]:(s=Object(s),e(i(s),function(d){return c.call(s,d)}))}:t;return GI=r,GI}var KI,qS;function H5e(){if(qS)return KI;qS=1;function e(t,n){for(var c=-1,i=Array(t);++c<t;)i[c]=n(c);return i}return KI=e,KI}var ZI,AS;function ub(){if(AS)return ZI;AS=1;function e(t){return t!=null&&typeof t=="object"}return ZI=e,ZI}var XI,zS;function B5e(){if(zS)return XI;zS=1;var e=db(),t=ub(),n="[object Arguments]";function c(i){return t(i)&&e(i)==n}return XI=c,XI}var YI,PS;function R5e(){if(PS)return YI;PS=1;var e=B5e(),t=ub(),n=Object.prototype,c=n.hasOwnProperty,i=n.propertyIsEnumerable,r=e(function(){return arguments}())?e:function(s){return t(s)&&c.call(s,"callee")&&!i.call(s,"callee")};return YI=r,YI}var E1={exports:{}},JI,VS;function F5e(){if(VS)return JI;VS=1;function e(){return!1}return JI=e,JI}E1.exports;var TS;function GA(){return TS||(TS=1,function(e,t){var n=Tt(),c=F5e(),i=t&&!t.nodeType&&t,r=i&&!0&&e&&!e.nodeType&&e,s=r&&r.exports===i,d=s?n.Buffer:void 0,l=d?d.isBuffer:void 0,h=l||c;e.exports=h}(E1,E1.exports)),E1.exports}var QI,DS;function E5e(){if(DS)return QI;DS=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(c,i){var r=typeof c;return i=i??e,!!i&&(r=="number"||r!="symbol"&&t.test(c))&&c>-1&&c%1==0&&c<i}return QI=n,QI}var ew,HS;function KA(){if(HS)return ew;HS=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return ew=t,ew}var tw,BS;function O5e(){if(BS)return tw;BS=1;var e=db(),t=KA(),n=ub(),c="[object Arguments]",i="[object Array]",r="[object Boolean]",s="[object Date]",d="[object Error]",l="[object Function]",h="[object Map]",u="[object Number]",p="[object Object]",k="[object RegExp]",f="[object Set]",g="[object String]",m="[object WeakMap]",v="[object ArrayBuffer]",_="[object DataView]",x="[object Float32Array]",b="[object Float64Array]",I="[object Int8Array]",w="[object Int16Array]",j="[object Int32Array]",L="[object Uint8Array]",M="[object Uint8ClampedArray]",S="[object Uint16Array]",C="[object Uint32Array]",N={};N[x]=N[b]=N[I]=N[w]=N[j]=N[L]=N[M]=N[S]=N[C]=!0,N[c]=N[i]=N[v]=N[r]=N[_]=N[s]=N[d]=N[l]=N[h]=N[u]=N[p]=N[k]=N[f]=N[g]=N[m]=!1;function q(A){return n(A)&&t(A.length)&&!!N[e(A)]}return tw=q,tw}var aw,RS;function U5e(){if(RS)return aw;RS=1;function e(t){return function(n){return t(n)}}return aw=e,aw}var O1={exports:{}};O1.exports;var FS;function W5e(){return FS||(FS=1,function(e,t){var n=RA(),c=t&&!t.nodeType&&t,i=c&&!0&&e&&!e.nodeType&&e,r=i&&i.exports===c,s=r&&n.process,d=function(){try{var l=i&&i.require&&i.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();e.exports=d}(O1,O1.exports)),O1.exports}var nw,ES;function ZA(){if(ES)return nw;ES=1;var e=O5e(),t=U5e(),n=W5e(),c=n&&n.isTypedArray,i=c?t(c):e;return nw=i,nw}var ow,OS;function G5e(){if(OS)return ow;OS=1;var e=H5e(),t=R5e(),n=PC(),c=GA(),i=E5e(),r=ZA(),s=Object.prototype,d=s.hasOwnProperty;function l(h,u){var p=n(h),k=!p&&t(h),f=!p&&!k&&c(h),g=!p&&!k&&!f&&r(h),m=p||k||f||g,v=m?e(h.length,String):[],_=v.length;for(var x in h)(u||d.call(h,x))&&!(m&&(x=="length"||f&&(x=="offset"||x=="parent")||g&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,_)))&&v.push(x);return v}return ow=l,ow}var cw,US;function K5e(){if(US)return cw;US=1;var e=Object.prototype;function t(n){var c=n&&n.constructor,i=typeof c=="function"&&c.prototype||e;return n===i}return cw=t,cw}var iw,WS;function Z5e(){if(WS)return iw;WS=1;function e(t,n){return function(c){return t(n(c))}}return iw=e,iw}var rw,GS;function X5e(){if(GS)return rw;GS=1;var e=Z5e(),t=e(Object.keys,Object);return rw=t,rw}var sw,KS;function Y5e(){if(KS)return sw;KS=1;var e=K5e(),t=X5e(),n=Object.prototype,c=n.hasOwnProperty;function i(r){if(!e(r))return t(r);var s=[];for(var d in Object(r))c.call(r,d)&&d!="constructor"&&s.push(d);return s}return sw=i,sw}var dw,ZS;function J5e(){if(ZS)return dw;ZS=1;var e=EA(),t=KA();function n(c){return c!=null&&t(c.length)&&!e(c)}return dw=n,dw}var lw,XS;function Q5e(){if(XS)return lw;XS=1;var e=G5e(),t=Y5e(),n=J5e();function c(i){return n(i)?e(i):t(i)}return lw=c,lw}var hw,YS;function eke(){if(YS)return hw;YS=1;var e=P5e(),t=D5e(),n=Q5e();function c(i){return e(i,n,t)}return hw=c,hw}var uw,JS;function tke(){if(JS)return uw;JS=1;var e=eke(),t=1,n=Object.prototype,c=n.hasOwnProperty;function i(r,s,d,l,h,u){var p=d&t,k=e(r),f=k.length,g=e(s),m=g.length;if(f!=m&&!p)return!1;for(var v=f;v--;){var _=k[v];if(!(p?_ in s:c.call(s,_)))return!1}var x=u.get(r),b=u.get(s);if(x&&b)return x==s&&b==r;var I=!0;u.set(r,s),u.set(s,r);for(var w=p;++v<f;){_=k[v];var j=r[_],L=s[_];if(l)var M=p?l(L,j,_,s,r,u):l(j,L,_,r,s,u);if(!(M===void 0?j===L||h(j,L,d,l,u):M)){I=!1;break}w||(w=_=="constructor")}if(I&&!w){var S=r.constructor,C=s.constructor;S!=C&&"constructor"in r&&"constructor"in s&&!(typeof S=="function"&&S instanceof S&&typeof C=="function"&&C instanceof C)&&(I=!1)}return u.delete(r),u.delete(s),I}return uw=i,uw}var pw,QS;function ake(){if(QS)return pw;QS=1;var e=z1(),t=Tt(),n=e(t,"DataView");return pw=n,pw}var yw,e$;function nke(){if(e$)return yw;e$=1;var e=z1(),t=Tt(),n=e(t,"Promise");return yw=n,yw}var kw,t$;function oke(){if(t$)return kw;t$=1;var e=z1(),t=Tt(),n=e(t,"Set");return kw=n,kw}var mw,a$;function cke(){if(a$)return mw;a$=1;var e=z1(),t=Tt(),n=e(t,"WeakMap");return mw=n,mw}var fw,n$;function ike(){if(n$)return fw;n$=1;var e=ake(),t=zC(),n=nke(),c=oke(),i=cke(),r=db(),s=OA(),d="[object Map]",l="[object Object]",h="[object Promise]",u="[object Set]",p="[object WeakMap]",k="[object DataView]",f=s(e),g=s(t),m=s(n),v=s(c),_=s(i),x=r;return(e&&x(new e(new ArrayBuffer(1)))!=k||t&&x(new t)!=d||n&&x(n.resolve())!=h||c&&x(new c)!=u||i&&x(new i)!=p)&&(x=function(b){var I=r(b),w=I==l?b.constructor:void 0,j=w?s(w):"";if(j)switch(j){case f:return k;case g:return d;case m:return h;case v:return u;case _:return p}return I}),fw=x,fw}var gw,o$;function rke(){if(o$)return gw;o$=1;var e=b5e(),t=WA(),n=A5e(),c=tke(),i=ike(),r=PC(),s=GA(),d=ZA(),l=1,h="[object Arguments]",u="[object Array]",p="[object Object]",k=Object.prototype,f=k.hasOwnProperty;function g(m,v,_,x,b,I){var w=r(m),j=r(v),L=w?u:i(m),M=j?u:i(v);L=L==h?p:L,M=M==h?p:M;var S=L==p,C=M==p,N=L==M;if(N&&s(m)){if(!s(v))return!1;w=!0,S=!1}if(N&&!S)return I||(I=new e),w||d(m)?t(m,v,_,x,b,I):n(m,v,L,_,x,b,I);if(!(_&l)){var q=S&&f.call(m,"__wrapped__"),A=C&&f.call(v,"__wrapped__");if(q||A){var P=q?m.value():m,T=A?v.value():v;return I||(I=new e),b(P,T,_,x,I)}}return N?(I||(I=new e),c(m,v,_,x,b,I)):!1}return gw=g,gw}var vw,c$;function ske(){if(c$)return vw;c$=1;var e=rke(),t=ub();function n(c,i,r,s,d){return c===i?!0:c==null||i==null||!t(c)&&!t(i)?c!==c&&i!==i:e(c,i,r,s,n,d)}return vw=n,vw}var xw,i$;function dke(){if(i$)return xw;i$=1;var e=ske();function t(n,c){return e(n,c)}return xw=t,xw}var lke=dke();const hke=a.getDefaultExportFromCjs(lke),uke=({schema:e,initialData:t={},onSubmit:n,submitLabel:c,submitIcon:i,submitIconPosition:r="left",onCancel:s,cancelLabel:d="Retour",cancelIcon:l})=>{const[h,u]=y.useState(t),[p,k]=y.useState({}),[f,g]=y.useState({}),[m,v]=y.useState(!1),_=y.useRef(t);y.useEffect(()=>{hke(_.current,t)||(u(t),_.current=t)},[t]);const x=(M,S)=>{const C={...h,[M]:S};if(u(C),f[M]){const N=e.fields.find(q=>q.name===M);if(N){const q=YL(S,N);k(A=>({...A,[M]:q.isValid?"":q.error}))}}},b=M=>{if(!f[M]){g(C=>({...C,[M]:!0}));const S=e.fields.find(C=>C.name===M);if(S){const C=YL(h[M],S);k(N=>({...N,[M]:C.isValid?"":C.error}))}}},I=async M=>{M.preventDefault(),v(!0);const S=e.fields.reduce((N,q)=>(q.type!=="section"&&(N[q.name]=!0),N),{});g(S);const C=SA(h,e.fields.filter(N=>N.type!=="section"));if(k(C.errors),C.isValid)try{await n(h)}catch(N){console.error("Erreur lors de la soumission:",N),k(q=>({...q,__global:"Une erreur est survenue lors de la soumission"}))}v(!1)},w=l?At[l]:null,j=i&&At[i]||e.submitIcon&&At[e.submitIcon]||null,L=e.columns&&e.columns>0?Math.floor(e.columns):12;return o.jsxs("div",{className:_e.formContainer,children:[o.jsx("div",{className:_e.headerLine,children:o.jsx("h2",{className:_e.formTitle,children:e.title})}),e.description&&o.jsx("p",{className:_e.formDescription,children:e.description}),p.__global&&o.jsx("div",{className:`alert alert-danger ${_e.globalError}`,children:p.__global}),o.jsxs("form",{onSubmit:I,children:[o.jsx("div",{className:_e.gridContainer,style:{gridTemplateColumns:`repeat(${L}, minmax(0, 1fr))`},children:e.fields.map(M=>{if(M.type==="section")return o.jsxs("div",{className:_e.sectionFull,children:[o.jsx("h5",{className:_e.sectionTitle,children:M.label}),M.help&&o.jsx("p",{className:_e.sectionHelp,children:M.help})]},M.name);const C={gridColumn:`span ${Math.max(1,Math.min(L,M.gridCol??L))}`};return o.jsxs("div",{className:_e.fieldGridItem,style:C,children:[o.jsx(HA,{field:M,value:h[M.name],onChange:N=>x(M.name,N),onBlur:()=>b(M.name),error:p[M.name],touched:f[M.name]}),M.help&&o.jsx("small",{className:_e.fieldHelp,children:M.help})]},M.name)})}),o.jsxs("div",{className:_e.formFooter,children:[o.jsx("div",{className:_e.footerLeft,children:s&&o.jsxs("button",{type:"button",className:_e.cancelLink,onClick:s,children:[w&&o.jsx(w,{size:16,className:"me-2"})," ",d]})}),o.jsx("div",{className:_e.footerRight,children:o.jsx(BL,{type:"submit",variant:"primary",size:"md",className:_e.submitButton,disabled:m,children:m?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"spinner-border spinner-border-sm me-2",role:"status"}),"Validation..."]}):o.jsxs(o.Fragment,{children:[j&&(r==="left"||e.submitIconPosition==="left")&&o.jsx(j,{size:16,className:"me-2"}),c||e.submitText||"Valider",j&&(r==="right"||e.submitIconPosition==="right")&&o.jsx(j,{size:16,className:"ms-2"})]})})})]})]})]})};function pke(e){return{title:e._formTitle||"Formulaire",description:e._formDescription,fields:e._fieldMetadata||[],submitText:e._submitText||"Valider"}}const r$=new Map,Xw=({path:e,style:t,width:n=24,height:c=24,keepColors:i=!1,onClick:r})=>{const s=/^https?:\/\//.test(e),[d,l]=y.useState("");if(y.useEffect(()=>{if(s)return;e&&(async()=>{try{let u=r$.get(e);u||(u=fetch(e).then(m=>{if(!m.ok)throw new Error(`Failed to load ${e}`);return m.text()}),r$.set(e,u));let p=await u;const k=t?.width!==void 0?"100%":`${n}px`,f=t?.height!==void 0?"100%":`${c}px`;i||(p=p.replace(/fill="[^"]*"/g,'fill="currentColor"'),p=p.replace(/fill='[^']*'/g,"fill='currentColor'"));const g=i?`width="${k}" height="${f}"`:`width="${k}" height="${f}" fill="currentColor"`;p=p.replace(/<svg/,`<svg ${g}`),l(p)}catch(u){console.error(`Failed to load icon: ${e}`,u)}})()},[e,s,t?.width,t?.height,n,c]),s){const h=t?.width!==void 0?"100%":`${n}px`,u=t?.height!==void 0?"100%":`${c}px`;return o.jsx("span",{onClick:r,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",color:t?.color||"inherit",...t},children:o.jsx("img",{src:e,alt:"",style:{display:"block",width:h,height:u}})})}return d?o.jsx("span",{onClick:r,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",color:t?.color||"inherit",...t},dangerouslySetInnerHTML:{__html:d}}):null},yke="_container_1gljv_85",kke="_tableWrapper_1gljv_111",mke="_tableControls_1gljv_117",fke="_controlsRight_1gljv_128",gke="_limitedRows_1gljv_151",vke="_table_1gljv_111",xke="_headerCell_1gljv_206",_ke="_headerContent_1gljv_220",Mke="_headerWords_1gljv_229",Lke="_headerWord_1gljv_229",bke="_cellContent_1gljv_276",Ike="_alignLeft_1gljv_286",wke="_alignCenter_1gljv_290",Cke="_alignRight_1gljv_294",jke="_tableCell_1gljv_298",Nke="_tableRow_1gljv_308",Ske="_emptyRow_1gljv_385",$ke="_toggleFiltersButton_1gljv_393",qke="_toggleSortButton_1gljv_394",Ake="_buttonTextCompact_1gljv_415",zke="_uppercaseSmall_1gljv_450",Pke="_filtersPanel_1gljv_463",Vke="_filtersPanelInline_1gljv_481",Tke="_filtersPanelHorizontal_1gljv_492",Dke="_filtersRow_1gljv_492",Hke="_filtersActionsHorizontal_1gljv_525",Bke="_filterItemInline_1gljv_542",Rke="_filterLabel_1gljv_571",Fke="_filterInput_1gljv_576",Eke="_filterSelect_1gljv_577",Oke="_operatorSelect_1gljv_578",Uke="_operatorInput_1gljv_579",Wke="_activeFilterTag_1gljv_597",Gke="_actionsGroup_1gljv_609",Kke="_applyButton_1gljv_615",Zke="_cancelButton_1gljv_625",Xke="_columnSorterContainer_1gljv_649",Yke="_sorterControls_1gljv_654",Jke="_sortDropdownWrapper_1gljv_659",Qke="_sortDropdown_1gljv_659",eme="_sortDropdownHeader_1gljv_679",tme="_closeButton_1gljv_688",ame="_sortDropdownContent_1gljv_703",nme="_sortDropdownItem_1gljv_709",ome="_sortDirectionButtons_1gljv_734",cme="_sortDirectionButton_1gljv_734",ime="_activeSort_1gljv_757",rme="_sortActions_1gljv_764",sme="_paginationButton_1gljv_842",dme="_pageSizeSelect_1gljv_844",lme="_topPagination_1gljv_853",hme="_paginationContainer_1gljv_861",ume="_leftGroup_1gljv_874",pme="_pageSizeControls_1gljv_882",yme="_paginationInfo_1gljv_908",kme="_paginationControls_1gljv_916",mme="_disabledButton_1gljv_947",fme="_activeButton_1gljv_952",gme="_navigationButton_1gljv_962",vme="_operatorFilterContainer_1gljv_1010",xme="_rangeSeparator_1gljv_1016",_me="_activeFiltersSection_1gljv_1179",Mme="_activeFiltersRow_1gljv_1184",Lme="_activeFiltersList_1gljv_1192",bme="_clearAllButton_1gljv_1200",Ime="_removeFilterButton_1gljv_1221",wme="_sortIndicator_1gljv_1272",Cme="_active_1gljv_349",jme="_clearSortButton_1gljv_1371",Nme="_loaderSpinner_1gljv_2743",Sme="_loaderSpinnerSmall_1gljv_2755",$me="_paginationLoading_1gljv_2772",qme="_loadingButton_1gljv_2780",Ame="_loadingIndicator_1gljv_2791",B={container:yke,tableWrapper:kke,tableControls:mke,controlsRight:fke,limitedRows:gke,table:vke,headerCell:xke,headerContent:_ke,headerWords:Mke,headerWord:Lke,cellContent:bke,alignLeft:Ike,alignCenter:wke,alignRight:Cke,tableCell:jke,tableRow:Nke,emptyRow:Ske,toggleFiltersButton:$ke,toggleSortButton:qke,buttonTextCompact:Ake,uppercaseSmall:zke,filtersPanel:Pke,filtersPanelInline:Vke,filtersPanelHorizontal:Tke,filtersRow:Dke,filtersActionsHorizontal:Hke,filterItemInline:Bke,filterLabel:Rke,filterInput:Fke,filterSelect:Eke,operatorSelect:Oke,operatorInput:Uke,activeFilterTag:Wke,actionsGroup:Gke,applyButton:Kke,cancelButton:Zke,columnSorterContainer:Xke,sorterControls:Yke,sortDropdownWrapper:Jke,sortDropdown:Qke,sortDropdownHeader:eme,closeButton:tme,sortDropdownContent:ame,sortDropdownItem:nme,sortDirectionButtons:ome,sortDirectionButton:cme,activeSort:ime,sortActions:rme,paginationButton:sme,pageSizeSelect:dme,topPagination:lme,paginationContainer:hme,leftGroup:ume,pageSizeControls:pme,paginationInfo:yme,paginationControls:kme,disabledButton:mme,activeButton:fme,navigationButton:gme,operatorFilterContainer:vme,rangeSeparator:xme,activeFiltersSection:_me,activeFiltersRow:Mme,activeFiltersList:Lme,clearAllButton:bme,removeFilterButton:Ime,sortIndicator:wme,active:Cme,clearSortButton:jme,loaderSpinner:Nme,loaderSpinnerSmall:Sme,paginationLoading:$me,loadingButton:qme,loadingIndicator:Ame},zme=({config:e,value:t,onChange:n,disabled:c})=>o.jsxs("select",{value:t===""?"":String(t),onChange:i=>n(i.target.value===""?"":i.target.value==="true"),disabled:c,className:B.filterSelect,children:[o.jsx("option",{value:"",children:`Filtrer ${e.label}...`}),o.jsx("option",{value:"true",children:"Oui"}),o.jsx("option",{value:"false",children:"Non"})]}),Pme=({config:e,value:t,onChange:n,disabled:c})=>o.jsx("input",{type:"date",value:t||"",onChange:i=>n(i.target.value),placeholder:`Filtrer ${e.label}...`,disabled:c,className:B.filterInput}),Vme=({config:e,value:t,onChange:n,disabled:c})=>{const[i,r]=y.useState([]);y.useEffect(()=>{(async()=>{if(e.asyncOptions)try{const l=await e.asyncOptions();r(l??[])}catch(l){console.error("Erreur chargement options MultiSelect:",l),r([])}else r(e.options??[])})()},[e]);const s=d=>{const l=Array.from(d.target.selectedOptions,h=>h.value);n(l)};return o.jsx("select",{multiple:!0,value:t.map(String),onChange:s,disabled:c,className:B.filterMultiSelect,children:i.map((d,l)=>o.jsx("option",{value:String(d.value),children:d.label},l))})},s$=({config:e,value:t,onChange:n,disabled:c})=>{const[i,r]=y.useState(t||""),s=d=>{const l=d.target.value===""?"":Number(d.target.value);r(l),n(l)};return o.jsx("input",{type:"number",value:i,onChange:s,placeholder:e.placeholder||`Filtrer ${e.label}...`,disabled:c,className:B.filterInput})},Tme=({config:e,value:t,onChange:n,disabled:c=!1})=>{const[i,r]=y.useState([]),[s,d]=y.useState(!1);y.useEffect(()=>{(async()=>{if(e.asyncOptions){d(!0);try{const u=await e.asyncOptions();r(u)}catch(u){console.error("Error loading options:",u)}finally{d(!1)}}else r(e.options||[])})()},[e]);const l=h=>{const u=h.target.value;n(u)};return s?o.jsx("div",{children:"Chargement..."}):o.jsxs("select",{value:String(t||""),onChange:l,disabled:c,className:B.filterInput,children:[o.jsx("option",{value:"",children:"Select..."}),i.map(h=>o.jsx("option",{value:h.value,children:h.label},h.value))]})},Dme=({config:e,value:t,onChange:n,disabled:c=!1})=>{const[i,r]=y.useState("");y.useEffect(()=>{r(typeof t=="string"?t:String(t||""))},[t]);const s=d=>{const l=d.target.value;r(l),n(l)};return o.jsx("input",{type:"text",value:i,onChange:s,placeholder:e.placeholder||`Filtrer ${e.label}...`,disabled:c,className:B.filterInput})},Hme=({config:e,value:t,onChange:n,disabled:c=!1})=>{const[i,r]=y.useState(t?.operator||""),[s,d]=y.useState(t?.value||"");y.useEffect(()=>{i&&s&&n({operator:i,value:s})},[i,s,n]);const l=u=>{r(u.target.value)},h=u=>{d(u.target.value)};return o.jsxs("div",{className:B.operatorFilterContainer,children:[o.jsxs("select",{value:i,onChange:l,disabled:c,className:B.operatorSelect,children:[o.jsx("option",{value:"",children:"Sélectionner un opérateur"}),e.operators.map(u=>o.jsx("option",{value:String(u.value),children:u.label},String(u.value)))]}),o.jsx("input",{type:"text",value:s,onChange:h,placeholder:"Valeur",disabled:c||!i,className:B.operatorInput})]})},Bme=({value:e,onChange:t,disabled:n})=>{const c=e||{},i=s=>{t({...c,start:s.target.value})},r=s=>{t({...c,end:s.target.value})};return o.jsxs("div",{className:B.dateRangeContainer,children:[o.jsx("input",{type:"date",value:c.start||"",onChange:i,disabled:n,className:B.filterInput}),o.jsx("span",{className:B.rangeSeparator,children:"→"}),o.jsx("input",{type:"date",value:c.end||"",onChange:r,disabled:n,className:B.filterInput})]})},Rme=({config:e,value:t,onChange:n,disabled:c})=>{switch(e.type){case"text":case"search":return o.jsx(Dme,{config:e,value:t,onChange:n,disabled:c});case"number":return o.jsx(s$,{config:e,value:t,onChange:n,disabled:c});case"range":return o.jsx(s$,{config:e,value:t,onChange:n,disabled:c});case"select":return o.jsx(Tme,{config:e,value:t,onChange:n,disabled:c});case"operator":return o.jsx(Hme,{config:e,value:t,onChange:n,disabled:c});case"multiselect":return o.jsx(Vme,{config:e,value:t,onChange:n,disabled:c});case"date":return o.jsx(Pme,{config:e,value:t,onChange:n,disabled:c});case"daterange":return o.jsx(Bme,{config:e,value:t??{start:"",end:""},onChange:n,disabled:c});case"boolean":return o.jsx(zme,{config:e,value:t,onChange:n,disabled:c});default:return o.jsxs("div",{children:["Type de filtre non supporté: ",e.type]})}},XA=({filters:e,externalFilters:t=[],onFiltersChange:n,onApply:c,isControlled:i=!1})=>{const[r,s]=y.useState([]),[d,l]=y.useState(()=>{const g={};return e.forEach(m=>{m.type==="daterange"?g[m.id]={start:"",end:""}:g[m.id]=m.defaultValue??""}),g});y.useEffect(()=>{if(!i)return;const g={...d??{}};e.forEach(m=>{m.id in g||(g[m.id]=m.type==="daterange"?{start:"",end:""}:m.defaultValue??"")}),(t||[]).forEach(m=>{!m||!m.id||(g[m.id]=m.value)}),l(g),s(t??[])},[i,JSON.stringify(t||[]),JSON.stringify(e.map(g=>g.id))]);const h=i?t:r,u=y.useCallback((g,m)=>{l(v=>({...v,[g]:m}))},[]),p=y.useCallback(async()=>{const g=[],m={...d};for(const[v,_]of Object.entries(m)){const x=e.find(w=>w.id===v);if(!x)continue;let b=_;try{typeof _=="function"&&(b=await _(m)),typeof x.executeOnApply=="function"&&(b=await x.executeOnApply(b,m))}catch{continue}if(x.type==="daterange"){const w=b?.start??"",j=b?.end??"",L=typeof w=="string"?w.trim()==="":!w,M=typeof j=="string"?j.trim()==="":!j;if(L&&M)continue}b==null||typeof b=="string"&&b.trim()===""||Array.isArray(b)&&b.length===0||typeof b=="object"&&!Array.isArray(b)&&Object.keys(b).length===0||g.push({id:v,type:x.type,value:b,label:x.label})}return i?n?.(g):(s(g),c?.(g)),g},[d,e,i,n,c]),k=y.useCallback(g=>{l(m=>({...m,[g]:void 0})),u(g,void 0)},[u]),f=y.useCallback(()=>{const g={};e.forEach(m=>{m.type==="daterange"?g[m.id]={start:"",end:""}:g[m.id]=m.defaultValue??""}),l(g),i?n?.([]):(s([]),c?.([]))},[e,i,n,c]);return{appliedFilters:h,tempFilters:d,updateFilter:u,applyFilters:p,clearFilter:k,clearAllFilters:f}},Fme=(e,t)=>{if(e==null)return!1;const n=t.value;if(n==null)return!1;switch(t.type){case"text":case"search":return String(e).toLowerCase().includes(String(n).toLowerCase());case"number":case"range":return Number(e)===Number(n);case"select":case"multiselect":return Array.isArray(n)?n.includes(e)||n.map(c=>String(c)).includes(String(e)):String(e)===String(n);case"boolean":return!!e==!!n;case"date":return new Date(e).getTime()===new Date(String(n)).getTime();case"daterange":try{if(!n||typeof n!="object")return!1;const c=n;if(!c.start||!c.end)return!1;const i=c.start,r=c.end;if(typeof i!="string"||typeof r!="string"||!i.trim()||!r.trim())return!1;const s=new Date(e).getTime(),d=new Date(i).getTime(),l=new Date(r).getTime();return isNaN(s)||isNaN(d)||isNaN(l)?!1:s>=d&&s<=l}catch(c){return console.error("Error processing daterange filter:",c),!1}case"operator":if(typeof n=="object"&&n!==null){const c=n;if(!("operator"in c)||!("value"in c))return!1;const{operator:i,value:r}=c,s=Number(e),d=Number(r);if(isNaN(s)||isNaN(d))return String(e).includes(String(r));switch(i){case"equals":return s===d;case"gt":return s>d;case"lt":return s<d;case"gte":return s>=d;case"lte":return s<=d;default:return String(e).includes(String(r))}}return!1;default:return String(e).toLowerCase().includes(String(n).toLowerCase())}};function YA(e,t,n="",c={key:null,direction:"asc"},i=1,r=10,s=[]){const d=Math.max(1,r),l=(n||"").trim().toLowerCase(),h=y.useMemo(()=>{let m=e;return l&&(m=m.filter(v=>t.some(_=>{const x=v.data[_.id];return x==null?!1:String(x).toLowerCase().includes(l)}))),s.length>0&&(m=m.filter(v=>s.every(_=>{try{const x=v.data[_.id];return Fme(x,_)}catch(x){return console.error("Error applying filter:",x),!1}}))),m},[e,t,l,s]),u=y.useMemo(()=>{if(!c?.key)return h;const m=c.key;return[...h].sort((v,_)=>{const x=v.data[m],b=_.data[m];if(x==null)return 1;if(b==null)return-1;if(typeof x=="number"&&typeof b=="number")return c.direction==="desc"?b-x:x-b;if(x instanceof Date&&b instanceof Date){const w=x.getTime()-b.getTime();return c.direction==="desc"?-w:w}const I=String(x).localeCompare(String(b),void 0,{numeric:!0,sensitivity:"base"});return c.direction==="desc"?-I:I})},[h,c]),p=u,k=Math.ceil(u.length/d),f=0,g=Math.min(i*d,u.length);return{paginatedData:p,sortedData:u,filteredData:h,totalPages:k,startIndex:f,endIndex:g}}const JA=({value:e})=>e,QA=({value:e})=>y.createElement("a",{href:`mailto:${e}`,className:"email-link"},e),ez=({value:e})=>y.createElement("a",{href:String(e),target:"_blank",rel:"noopener noreferrer",className:"text-link"},e),tz=({value:e})=>{if(!e)return null;const t={success:"success-badge",warning:"warning-badge",error:"error-badge",info:"info-badge",default:"default-badge"},n=typeof e=="object"?e.type:"default",c=typeof e=="object"?e.text:e,i=t[n]||t.default;return y.createElement("span",{className:`badge ${i}`},c)},az=({value:e})=>{try{return new Date(e).toLocaleDateString()}catch{return String(e)}},nz=({value:e})=>y.createElement("span",{className:"number-value"},Number(e).toLocaleString()),oz=({value:e})=>y.createElement("span",{className:"currency-value"},new Intl.NumberFormat("fr-FR",{style:"currency",currency:"EUR"}).format(Number(e))),cz=({value:e})=>y.createElement("div",{className:"image-container"},y.createElement("img",{src:e,alt:"Table content",className:"table-image",onError:t=>t.currentTarget.style.display="none"})),Yw={renderers:{text:JA,email:QA,link:ez,badge:tz,date:az,number:nz,currency:oz,image:cz},icons:{sortAsc:y.createElement(Xc,{className:"sort-icon active",size:14}),sortDesc:y.createElement(Yt,{className:"sort-icon active",size:14}),sortDefault:y.createElement(b1,{className:"sort-icon",size:14})}},Eme=(e,t)=>{Yw.renderers[e]&&console.warn(`Le renderer "${e}" existe déjà et sera écrasé.`),Yw.renderers[e]=t},Ome=({filters:e,externalFilters:t=[],onFiltersChange:n,onApply:c,isControlled:i=!1,debounceTimeout:r=300,expanded:s,onToggle:d,panelPlacement:l="top",onPanelHeightChange:h,label:u="Advanced-Filters",applyLabel:p="Apply",cancelLabel:k="Cancel",clearLabel:f="Clear",applyDisabled:g=!1,loading:m=!1})=>{const[v,_]=y.useState(!1),x=typeof s=="boolean"?s:v,{appliedFilters:b,tempFilters:I,updateFilter:w,applyFilters:j,clearAllFilters:L}=XA({filters:e,externalFilters:t,onFiltersChange:n,onApply:c,isControlled:i}),M=y.useRef(null),S=y.useRef(null);y.useEffect(()=>{if(x&&M.current){const T=M.current.getBoundingClientRect().height;h?.(T)}else h?.(0)},[x,e,I,h]);const C=()=>{typeof s=="boolean"?d?.(!s):_(T=>{const H=!T;return d?.(H),H})},N=()=>e.map(T=>{const H=I?.[T.id];return H==null||typeof H=="string"&&H.trim()===""?null:{id:T.id,label:T.label,value:H}}).filter(Boolean),q=async()=>{let T;try{T=await j()}catch{T=void 0}let H=[];T&&Array.isArray(T)&&T.length>0?H=T:b&&b.length>0?H=b:H=N(),n?.(H),c?.(H)},A=()=>{d?.(!1),typeof s!="boolean"&&_(!1)},P=()=>{L(),n?.([]),c?.([])};return y.useEffect(()=>{const T=z=>{x&&S.current&&(S.current.contains(z.target)||(d?.(!1),typeof s!="boolean"&&_(!1)))},H=z=>{z.key==="Escape"&&x&&(d?.(!1),typeof s!="boolean"&&_(!1))};return x&&(document.addEventListener("pointerdown",T),document.addEventListener("keydown",H)),()=>{document.removeEventListener("pointerdown",T),document.removeEventListener("keydown",H)}},[x,s,d]),o.jsxs("div",{className:B.advancedFiltersContainer,ref:S,children:[o.jsxs("button",{className:`${B.toggleFiltersButton} ${b.length>0?B.active:""} ${x?B.toggleFiltersButtonOpen:""} ${m?B.loadingButton:""}`,onClick:C,"aria-expanded":x,"aria-controls":"advanced-filters-panel",type:"button",disabled:m,children:[m?o.jsx("span",{className:B.loaderSpinnerSmall}):o.jsx(Wt,{size:14}),o.jsx("span",{className:B.buttonTextCompact,children:u}),b.length>0&&!m&&o.jsx("span",{className:B.filterCountBadge,"aria-hidden":!0,children:b.length}),m&&o.jsx("span",{className:B.loadingIndicator,"aria-hidden":!0,children:"Chargement..."})]}),x&&o.jsxs("div",{id:"advanced-filters-panel",ref:M,className:`${B.filtersPanel} ${l==="top"?`${B.filtersPanelInline} ${B.filtersPanelHorizontal}`:""}`,role:"region","aria-label":"Panneau de filtres avancés",children:[o.jsx("div",{className:B.filtersRow,children:e.map(T=>o.jsxs("div",{className:`${B.filterItem} ${B.filterItemInline}`,children:[o.jsxs("label",{className:B.filterLabel,children:[T.label,T.required&&o.jsx("span",{className:B.required,children:"*"})]}),o.jsx(Rme,{config:T,value:I[T.id],onChange:H=>w(T.id,H),disabled:T.disabled})]},T.id))}),o.jsxs("div",{className:B.filtersActionsHorizontal,children:[o.jsx("div",{className:B.activeFiltersSection,children:b.length>0&&o.jsxs("div",{className:B.activeFiltersRow,children:[o.jsx("span",{className:B.activeLabelCompact,children:"Actifs :"}),o.jsx("div",{className:B.activeFiltersList,children:b.map(T=>o.jsxs("div",{className:B.activeFilterTag,children:[T.label??T.id,o.jsx("button",{className:B.removeFilterButton,onClick:()=>w(T.id,void 0),"aria-label":`Supprimer ${T.id}`,type:"button",children:"×"})]},T.id))}),o.jsxs("button",{className:B.clearAllButton,onClick:P,type:"button",children:[o.jsx(ht,{size:12})," ",f]})]})}),o.jsxs("div",{className:B.actionsGroup,children:[o.jsx("button",{className:B.cancelButton,onClick:A,type:"button",disabled:m,children:k}),o.jsx("button",{className:`${B.applyButton} ${m?B.loadingButton:""}`,onClick:q,type:"button",disabled:g||m,"aria-disabled":g||m,children:m?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:B.loaderSpinnerSmall}),o.jsx("span",{children:"Chargement..."})]}):p})]})]})]})]})},d$=e=>{const t=e.replace(/[^A-Za-zÀ-ÖØ-öø-ÿ]/g,"");return t.length>0&&t===t.toUpperCase()},Ume=({columns:e,sortConfig:t,onSort:n,label:c="Sort",loading:i=!1})=>{const[r,s]=y.useState(!1),d=e.filter(g=>g.sortable),l=y.useRef(null),h=t?.key!==null&&t?.key!==void 0,u=(g,m)=>{n({key:g,direction:m}),s(!1)},p=()=>{n({key:null,direction:"asc"}),s(!1)},k=()=>s(g=>!g),f=()=>{s(!1)};return y.useEffect(()=>{if(!r)return;const g=v=>{if(!l.current)return;const _=v.target;_&&!l.current.contains(_)&&s(!1)},m=v=>{v.key==="Escape"&&s(!1)};return document.addEventListener("pointerdown",g),document.addEventListener("keydown",m),()=>{document.removeEventListener("pointerdown",g),document.removeEventListener("keydown",m)}},[r]),y.useEffect(()=>{const g=document.querySelector("[data-table-wrapper]");if(!g)return;const m=g.style.overflow??"";return r?g.style.overflow="hidden":g.style.overflow=m,()=>{g.style.overflow=m}},[r]),o.jsx("div",{className:B.columnSorterContainer,ref:l,children:o.jsx("div",{className:B.sorterControls,children:d.length>0&&o.jsxs("div",{className:B.sortDropdownWrapper,ref:l,children:[o.jsxs("button",{className:`${B.toggleSortButton} ${r?B.toggleSortButtonOpen:""} ${h?B.active:""} ${i?B.loadingButton:""}`,onClick:k,"aria-expanded":r,"aria-haspopup":"true",type:"button",disabled:i,children:[i?o.jsx("span",{className:B.loaderSpinnerSmall}):o.jsx(b1,{size:14}),o.jsx("span",{className:`${B.buttonTextCompact} ${d$(c)?B.uppercaseSmall:""}`,children:c}),h&&!i&&o.jsx("div",{className:B.sortIndicator,children:t?.direction==="asc"?o.jsx(Xc,{size:12}):o.jsx(Yt,{size:12})})]}),r&&o.jsxs("div",{className:`${B.sortDropdown} ${B.sortDropdownInline}`,role:"menu",children:[o.jsxs("div",{className:B.sortDropdownHeader,children:[o.jsx("span",{children:"Trier par:"}),o.jsx("button",{className:B.closeButton,onClick:f,"aria-label":"Fermer",type:"button",children:o.jsx(ht,{size:16})})]}),o.jsx("div",{className:B.sortDropdownContent,children:d.map(g=>{const m=String(g.label??g.id),v=d$(m);return o.jsxs("div",{className:B.sortDropdownItem,role:"menuitem",tabIndex:0,onKeyDown:_=>{_.key==="Enter"&&u(g.id,"asc")},children:[o.jsx("span",{className:`${B.columnSorterLabel} ${v?B.uppercaseSmall:""}`,title:m,"aria-label":m,children:m}),o.jsxs("div",{className:B.sortDirectionButtons,children:[o.jsx("button",{className:`${B.sortDirectionButton} ${t?.key===g.id&&t?.direction==="asc"?B.activeSort:""}`,onClick:()=>u(g.id,"asc"),title:"Trier par ordre croissant",type:"button",children:o.jsx(Xc,{size:12})}),o.jsx("button",{className:`${B.sortDirectionButton} ${t?.key===g.id&&t?.direction==="desc"?B.activeSort:""}`,onClick:()=>u(g.id,"desc"),title:"Trier par ordre décroissant",type:"button",children:o.jsx(Yt,{size:12})})]})]},g.id)})}),h&&o.jsx("div",{className:B.sortActions,children:o.jsxs("button",{className:B.clearSortButton,onClick:p,type:"button",children:[o.jsx(Ut,{size:14}),o.jsx("span",{children:"Annuler le tri"})]})})]})]})})})},Wme=({currentPage:e,totalPages:t,pageSize:n,totalItems:c,itemLabel:i="items",onPageChange:r,onPageSizeChange:s,loading:d=!1})=>{const l=Math.max(1,Math.floor(t)),h=Math.min(Math.max(1,Math.floor(e)),l),u=()=>{h>1&&r(h-1)},p=()=>{if(h<t){const m=h+1;r(m)}},k=c>0?(h-1)*n+1:0,f=c>0?Math.min(h*n,c):0,g=()=>{const m=[];let _=Math.max(1,h-Math.floor(2.5)),x=_+5-1;x>l&&(x=l,_=Math.max(1,x-5+1));for(let b=_;b<=x;b++)m.push(b);return m};return o.jsxs("div",{className:B.paginationContainer,role:"navigation","aria-label":"Pagination",children:[o.jsx("div",{className:B.leftGroup,children:s&&o.jsx("div",{className:B.pageSizeControls,children:o.jsx("select",{value:n,onChange:m=>s(Number(m.target.value)),className:B.pageSizeSelect,"aria-label":"Taille de page",disabled:d,children:[10,20,30].map(m=>o.jsx("option",{value:m,children:m},m))})})}),o.jsx("div",{className:B.paginationInfo,"aria-live":"polite",children:d?o.jsxs("span",{className:B.paginationLoading,children:[o.jsx("span",{className:B.loaderSpinner}),o.jsx("span",{children:"Chargement..."})]}):`${k}-${f} ${i}`}),o.jsxs("div",{className:B.paginationControls,children:[o.jsx("button",{onClick:u,disabled:h===1||d,className:`${B.paginationButton} ${B.navigationButton} ${h===1?B.disabledButton:""} ${d?B.loadingButton:""}`,"aria-label":"Page précédente",children:d&&h>1?o.jsx("span",{className:B.loaderSpinnerSmall}):"«"}),g().map(m=>o.jsx("button",{onClick:()=>r(m),disabled:d,"aria-current":h===m?"page":void 0,className:`${B.paginationButton} ${h===m?B.activeButton:""} ${d?B.loadingButton:""}`,children:d&&h===m?o.jsx("span",{className:B.loaderSpinnerSmall}):m},m)),o.jsx("button",{onClick:p,disabled:d||h>=l,className:`${B.paginationButton} ${B.navigationButton} ${d?B.loadingButton:""} ${h>=l?B.disabledButton:""}`,"aria-label":"Page suivante",children:d?o.jsx("span",{className:B.loaderSpinnerSmall}):"»"})]})]})},Gme=(e,t)=>{if(!e)return"";if(t)return e;const n=String(e).trim();if(!n)return n;const c=n.toLowerCase();return c.charAt(0).toUpperCase()+c.slice(1)},Kme=e=>{if(!e)return!1;const t=e.trim().split(/\s+/);return e.length>18||t.length>2},Zme=({columns:e})=>o.jsx("thead",{className:B.tableHeader,children:o.jsx("tr",{children:e.map((t,n)=>{const c=t.align==="right"?B.alignRight:t.align==="left"?B.alignLeft:B.alignCenter,i=t.preserveHeaderCase===!0,r=Gme(String(t.label??""),i),s=Kme(r),d=s?r.split(/\s+/):[];return o.jsx("th",{className:`${B.headerCell} ${c}`,style:{width:t.width??void 0},"data-preserve":i?"true":"false",title:t.a11yConfig?.mode==="guide"?t.a11yConfig.description:t.a11yConfig?.mode==="key"?t.a11yConfig.key:void 0,children:o.jsx("div",{className:B.headerContent,children:s?o.jsx("div",{className:B.headerWords,children:d.map((l,h)=>o.jsx("span",{className:B.headerWord,children:l},h))}):o.jsx("span",{children:r})})},t.id??`col-${n}`)})})}),Xme=({value:e,row:t,column:n})=>{const c=n.align==="right"?B.alignRight:n.align==="left"?B.alignLeft:B.alignCenter,i=typeof n.render=="function"?n.render(e,t):e==null?"":String(e);return o.jsx("td",{className:`${B.tableCell} ${c}`,style:{width:n.width??void 0},children:o.jsx("div",{className:B.cellContent,children:i})})},Yme=({row:e,rowId:t,columns:n,onRowClick:c,index:i,getRowStyle:r})=>{const s=r?r(e):{},{backgroundColor:d,accentColor:l,...h}=s||{},u={backgroundColor:d,...h,"--row-accent":l??"transparent"};return o.jsx("tr",{className:`${B.tableRow} ${c?B.clickableRow:""}`,onClick:()=>c?.(e,i),style:u,children:n.map(p=>o.jsx(Xme,{value:e[p.id],row:e,column:p},`${t}-${p.id}`))})},Jme=({data:e,columns:t,onRowClick:n,startIndex:c,searchTerm:i,getRowStyle:r})=>e.length===0?o.jsx("tbody",{children:o.jsx("tr",{children:o.jsx("td",{colSpan:t.length,className:B.emptyRow,children:i?"Aucun résultat trouvé":"Aucune donnée disponible"})})}):o.jsx("tbody",{children:e.map((s,d)=>o.jsx(Yme,{row:s.data,rowId:s.id,columns:t,onRowClick:n,index:c+d-1,getRowStyle:r},s.id))}),iz=({columns:e=[],data:t=[],pagination:n={pageSize:10,currentPage:1},onRowClick:c,searchTerm:i="",className:r="",filterConfig:s=[],externalFilters:d=[],onFiltersChange:l,onApplyFilters:h,onSort:u,filtersControlled:p=!1,debounceTimeout:k=300,getRowStyle:f,background:g,onPageSizeChange:m,onPageChange:v,itemLabel:_="items",advancedFiltersLabel:x="Advanced-Filters",advancedFiltersActiveLabel:b,sortLabel:I="Sort",applyLabel:w="Apply",cancelLabel:j="Cancel",clearLabel:L="Clear",applyDisabled:M=!1,paginationLoading:S=!1,filtersLoading:C=!1,sortLoading:N=!1,totalCount:q=null})=>{const[A,P]=y.useState({key:null,direction:"asc"}),[T,H]=y.useState(n.currentPage??1),[z,$]=y.useState(n.pageSize??10),[R,V]=y.useState(!1),F=y.useRef(null),[X,U]=y.useState([]),K=p?d:X,te=p?[]:X;y.useEffect(()=>{const se=n.currentPage??1,Ne=n.pageSize??10;se!==T&&H(se),Ne!==z&&$(Ne)},[n.currentPage,n.pageSize]);const{paginatedData:E,sortedData:Q,totalPages:de,startIndex:G}=YA(t,e,i,A,T,z,te),ce=Q.length,ue=typeof q=="number"&&q>=0?q:ce;let ye=de;typeof q=="number"&&q>=0&&(ye=Math.max(1,Math.ceil(q/z)));const fe=ce>10;y.useEffect(()=>{const se=Math.max(1,Math.floor(ye));T>se&&H(se),T<1&&H(1)},[ye]);const Z=se=>{p||U(se),l?.(se),H(1),v?.(1)},ne=se=>{p||U(se),h?.(se),H(1),v?.(1),F.current&&F.current.style.setProperty("--filters-panel-height","0px")},le=se=>{v?.(se),H(se)},je=se=>{$(se),H(1),m?.(se),v?.(1)},qe=se=>{F.current&&F.current.style.setProperty("--filters-panel-height",`${Math.round(se)}px`)},ve=se=>{P(se),u?.(se)},Se=se=>{V(se),!se&&F.current&&F.current.style.setProperty("--filters-panel-height","0px")};y.useEffect(()=>{(K?.length??0)>0&&V(!0)},[K]),y.useEffect(()=>{s.length>0&&K.length>0&&V(!0)},[s.length,K.length]);const Dt=(K?.length??0)>0&&b?b:x;return o.jsxs("div",{ref:F,className:`${B.container} ${r} ${R?B.filtersOpen:""}`,style:{background:g,"--row-height":"48px","--header-height":"56px"},children:[o.jsx("div",{className:B.tableControls,children:o.jsxs("div",{className:B.controlsRight,children:[o.jsx(Ume,{columns:e,onSort:ve,label:I,sortConfig:A,loading:N}),s.length>0&&o.jsx(Ome,{filters:s,externalFilters:K,onFiltersChange:Z,onApply:ne,isControlled:p,debounceTimeout:k,expanded:R,onToggle:Se,panelPlacement:"top",onPanelHeightChange:qe,label:Dt,applyLabel:w,cancelLabel:j,clearLabel:L,applyDisabled:M,loading:C})]})}),o.jsx("div",{className:B.topPagination,children:o.jsx(Wme,{currentPage:T,totalPages:ye,pageSize:z,totalItems:ue,itemLabel:_,onPageChange:le,onPageSizeChange:je,loading:S})}),o.jsx("div",{className:`${B.tableWrapper} ${fe?B.limitedRows:""}`,"data-table-wrapper":!0,children:o.jsxs("table",{className:B.table,children:[o.jsx(Zme,{columns:e}),o.jsx(Jme,{data:E,columns:e,onRowClick:c,startIndex:G,getRowStyle:f,searchTerm:i})]})})]})};function Qme(e){const{pagination:t,totalCount:n,onPageChange:c,...i}=e,r=t?.pageSize??20,s=t?.currentPage??1,d=y.useMemo(()=>{if(n===null||typeof n>"u")return null;const p=Number(n);if(!Number.isFinite(p)||p<=0)return 1;const k=Number(r);return!Number.isFinite(k)||k<=0?1:Math.max(1,Math.ceil(p/k))},[n,r]),l=s>1,h=d===null?!1:s<d,u=p=>{typeof p=="number"&&(p<1||p<s&&!l||p>s&&!h||c?.(p))};return o.jsx(iz,{...i,pagination:{pageSize:r,currentPage:s},totalCount:n,onPageChange:u})}const e3e=({page:e,pageSize:t,total:n,onPageChange:c,itemLabel:i="élément",ofLabel:r="sur",className:s})=>{const d=Math.max(1,Math.ceil(n/t)),l=n===0?0:(e-1)*t+1,h=Math.min(e*t,n),u=n>1?`${i}s`:i;if(n===0)return null;const p=4;let k=Math.max(1,e-Math.floor(p/2)),f=k+p-1;f>d&&(f=d,k=Math.max(1,f-p+1));const g=[];for(let m=k;m<=f;m++)g.push(m);return o.jsxs(t3e,{className:s,children:[o.jsxs(a3e,{children:[l,"-",h," ",r," ",n," ",u]}),o.jsx(n3e,{}),d>1&&o.jsxs(o3e,{children:[o.jsx(Ti,{onClick:()=>c(1),disabled:e===1,title:"Première page",children:"<<"}),o.jsx(Ti,{onClick:()=>c(e-1),disabled:e===1,title:"Page précédente",children:"<"}),g.map(m=>o.jsx(c3e,{$active:m===e,onClick:()=>c(m),children:m},m)),o.jsx(Ti,{onClick:()=>c(e+1),disabled:e===d,title:"Page suivante",children:">"}),o.jsx(Ti,{onClick:()=>c(d),disabled:e===d,title:"Dernière page",children:">>"})]})]})},t3e=O.div`
|
|
8273
8273
|
display: flex;
|
|
8274
8274
|
align-items: center;
|
|
8275
8275
|
justify-content: space-between;
|
|
@@ -8333,18 +8333,18 @@
|
|
|
8333
8333
|
&:hover:not(:disabled) {
|
|
8334
8334
|
background-color: ${e=>e.$active?"var(--color-primary)":"var(--color-background, #f3f4f6)"};
|
|
8335
8335
|
}
|
|
8336
|
-
`,i3e="_mpRoot_31595_1",r3e="_mpHeader_31595_22",s3e="_mpTitle_31595_31",d3e="_mpList_31595_35",l3e="_mpVertical_31595_41",h3e="_mpHorizontal_31595_46",u3e="_mpItem_31595_55",p3e="_mpClickable_31595_95",y3e="_mpLeft_31595_117",k3e="_mpIcon_31595_125",m3e="_mpMeta_31595_140",f3e="_mpLabel_31595_145",g3e="_mpDate_31595_154",v3e="_mpRight_31595_160",x3e="_mpValue_31595_168",_3e="_mpHint_31595_176",M3e="_mpBadge_31595_180",L3e="_mpBadgeTop_31595_199",b3e="_mpBadgeSub_31595_206",I3e="_mpBadgeSmall_31595_213",w3e="_mpPill_31595_229",C3e="_mpRounded_31595_232",j3e="_mpCompact_31595_236",N3e="_compactItemWrapper_31595_252",S3e="_mpSummaryRoot_31595_265",$3e="_mpSummaryInner_31595_269",q3e="_mpSummaryFlex_31595_284",A3e="_mpSummaryCardWrapperHorizontal_31595_292",z3e="_mpSummaryCardWrapper_31595_292",P3e="_mpSummaryCardHorizontal_31595_303",V3e="_mpSummaryCard_31595_292",T3e="_mpSummaryValue_31595_321",D3e="_mpSummaryLabel_31595_327",H3e="_mpSummaryBadge_31595_338",B3e="_mpSummaryBadgeSub_31595_357",R3e="_mpEmpty_31595_365",F3e="_mpSummaryVertical_31595_372",E3e="_mpIconSquare_31595_380",re={mpRoot:i3e,mpHeader:r3e,mpTitle:s3e,mpList:d3e,mpVertical:l3e,mpHorizontal:h3e,mpItem:u3e,mpClickable:p3e,mpLeft:y3e,mpIcon:k3e,mpMeta:m3e,mpLabel:f3e,mpDate:g3e,mpRight:v3e,mpValue:x3e,mpHint:_3e,mpBadge:M3e,mpBadgeTop:L3e,mpBadgeSub:b3e,mpBadgeSmall:I3e,mpPill:w3e,mpRounded:C3e,mpCompact:j3e,compactItemWrapper:N3e,mpSummaryRoot:S3e,mpSummaryInner:$3e,mpSummaryFlex:q3e,mpSummaryCardWrapperHorizontal:A3e,mpSummaryCardWrapper:z3e,mpSummaryCardHorizontal:P3e,mpSummaryCard:V3e,mpSummaryValue:T3e,mpSummaryLabel:D3e,mpSummaryBadge:H3e,mpSummaryBadgeSub:B3e,mpEmpty:R3e,mpSummaryVertical:F3e,mpIconSquare:E3e},Xt=(e,t=1)=>{if(!e||typeof e!="string")return`rgba(124, 58, 237, ${t})`;const n=e.trim();if(n.toLowerCase()==="transparent")return"rgba(0,0,0,0)";if(/^rgba?\(/i.test(n))return/^rgba\(/i.test(n)?n.replace(/rgba\(([^)]+),\s*([0-9.]+)\s*\)$/,(d,l)=>`rgba(${l.split(",").map(u=>u.trim()).slice(0,3).join(", ")}, ${t})`):n;let c=n.replace("#","").toLowerCase();if(c.length===3&&(c=c.split("").map(d=>d+d).join("")),!/^[0-9a-f]{6}$/i.test(c))return`rgba(124, 58, 237, ${t})`;const i=parseInt(c.slice(0,2),16),r=parseInt(c.slice(2,4),16),s=parseInt(c.slice(4,6),16);return`rgba(${i}, ${r}, ${s}, ${t})`},O3e=({item:e,shape:t,onItemClick:n,color:c,renderItem:i})=>{const r=y.useCallback(()=>{n?.(e)},[n,e]),s=[re.mpItem,t==="pill"?re.mpPill:re.mpRounded,n?re.mpClickable:""].filter(Boolean).join(" ");if(i)return o.jsx("div",{className:s,role:n?"button":"group",tabIndex:n?0:-1,onClick:r,onKeyDown:k=>{n&&(k.key==="Enter"||k.key===" ")&&(n(e),k.preventDefault())},"aria-label":n?`Voir les détails de ${e.label}`:void 0,children:i(e)});const d=n?"button":"div",l=n?{onClick:r,className:s,type:"button","aria-label":`Voir les détails de ${e.label}`}:{className:s,role:"group"},h=e.iconComponent,u=e.iconSquareBg,p=e.iconColor;return o.jsxs(d,{...l,children:[o.jsxs("div",{className:re.mpLeft,children:[h?o.jsx("div",{className:re.mpIconSquare,style:{background:u??Xt(p??c??"#7c3aed",1),border:`1px solid ${Xt(p??c??"#7c3aed",.18)}`,color:p??"#ffffff"},children:y.createElement(h,{size:20,color:p??"#fff",strokeWidth:1.8})}):e.icon?o.jsx("div",{className:re.mpIcon,children:e.icon}):null,o.jsxs("div",{className:re.mpMeta,children:[o.jsx("div",{className:re.mpLabel,children:e.label}),e.subLabel&&o.jsx("div",{className:re.mpDate,children:e.subLabel}),e.date&&o.jsx("div",{className:re.mpDate,children:e.date})]})]}),o.jsxs("div",{className:re.mpRight,children:[o.jsx("div",{className:re.mpValue,style:{color:e.valueColor??c??void 0},children:e.value}),e.badge?o.jsxs("div",{className:[re.mpBadge,e.badge.small?re.mpBadgeSmall:""].join(" "),style:{backgroundColor:e.badge.bg??Xt(e.badge.color||c||"#7c3aed",.12),borderColor:e.badge.bg?"transparent":Xt(e.badge.color||c||"#7c3aed",.18),color:e.badge.color??e.badge.textColor??"#0f172a",fontWeight:600},children:[o.jsx("div",{className:re.mpBadgeTop,children:e.badge.text}),e.badge.subText&&o.jsx("div",{className:re.mpBadgeSub,children:e.badge.subText})]}):e.hint?o.jsx("div",{className:re.mpHint,children:e.hint}):null]})]})},U3e=y.memo(O3e),l$=({title:e,right:t})=>!e&&!t?null:o.jsxs("div",{className:re.mpHeader,children:[o.jsx("div",{className:re.mpTitle,children:e}),o.jsx("div",{children:t})]}),h$=(e,t=1)=>{try{return Xt(e,t)}catch{return`rgba(124, 58, 237, ${t})`}},W3e=({item:e})=>o.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:14,borderRadius:12,minHeight:88,boxSizing:"border-box",background:e.bgColor??"transparent",border:`1px solid ${e.borderColor??"transparent"}`,boxShadow:"0 4px 10px rgba(15,23,42,0.03)"},children:[o.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[o.jsx("div",{style:{fontSize:13,fontWeight:700,color:"#475569"},children:e.label}),o.jsx("div",{style:{fontSize:26,fontWeight:900,color:"#0f172a",lineHeight:1},children:e.value})]}),o.jsx("div",{title:String(e.label),style:{display:"flex",alignItems:"center",justifyContent:"center",width:48,height:48,borderRadius:10,background:e.iconSquareBg??h$("#7c3aed",.12),border:`1px solid ${h$(e.iconColor??"#7c3aed",.12)}`,boxShadow:"none"},children:e.iconComponent?y.createElement(e.iconComponent,{size:18,color:e.iconColor??"#7c3aed",strokeWidth:1.6}):null})]}),G3e=({item:e,bg:t,onClick:n,width:c,height:i,extraStyle:r})=>o.jsxs("div",{className:re.mpSummaryCard,style:{background:t,width:c??void 0,height:i??void 0,...r??{}},role:n?"button":"group",tabIndex:n?0:-1,onClick:()=>n?.(e),children:[o.jsx("div",{className:re.mpSummaryLabel,children:e.label}),o.jsx("div",{className:re.mpSummaryValue,style:{color:e.valueColor??"#2a24deff"},children:e.value}),e.badge&&o.jsxs("div",{className:re.mpSummaryBadge,children:[e.badge.text,e.badge.subText&&o.jsx("div",{className:re.mpSummaryBadgeSub,children:e.badge.subText})]})]}),u$=(e,t=1)=>{try{return Xt(e,t)}catch{return`rgba(124, 58, 237, ${t})`}},p$=e=>o.jsxs("div",{style:{display:"grid",gridTemplateRows:"auto 1fr",width:"100%",gap:8,alignItems:"center",boxSizing:"border-box",minWidth:0},children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between-left",alignItems:"baseline",gap:10,width:"100%"},children:[o.jsx("div",{style:{fontWeight:700,fontSize:"clamp(14px, 1.2vw, 16px)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:e.label}),e.subLabel?o.jsx("div",{style:{fontSize:"clamp(13px, 1.1vw, 15px)",fontWeight:600,whiteSpace:"nowrap"},children:e.subLabel}):null]}),o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:15,width:"100%"},children:[o.jsx("div",{style:{fontWeight:900,fontSize:"clamp(16px, 1.6vw, 20px)",color:e.valueColor,lineHeight:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.value}),e.badge?o.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"8px 12px",borderRadius:10,backgroundColor:e.badge.bg?e.badge.bg:u$("#7c3aed",.08),border:`1px solid ${e.badge.bg?e.badge.bg:u$("#7c3aed",.12)}`,color:e.badge.textColor||"#0f172a",fontWeight:700,fontSize:"clamp(12px, 1.2vw, 14px)",width:"120px",height:"52px",textAlign:"center",boxSizing:"border-box",overflow:"hidden",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",lineHeight:1.2,flexShrink:0},children:[o.jsx("div",{style:{fontSize:14,fontWeight:800,lineHeight:1.2,letterSpacing:"0.02em",width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.badge.text}),e.badge.subText?o.jsx("div",{style:{fontSize:13,marginTop:4,fontWeight:700,letterSpacing:"0.01em",width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.badge.subText}):null]}):null]})]}),y$=(e,t)=>{try{if(typeof e=="function"){const n=e(t);if(n!==void 0)return n}}catch{}try{return y.createElement(e,{item:t})}catch(n){return console.warn("chooseDefaultRender: impossible de rendre CompactRenderer",n),null}},K3e=e=>{switch(e){case"image":return t=>y.createElement(W3e,{item:t});case"pertinence":return t=>y.createElement(G3e,{item:t});case"alternateHorizontal":return t=>y$(p$,t);case"compact":return t=>y$(p$,t);case"summary":return;case"default":default:return}},rz=({item:e,orientation:t,bg:n,border:c,valueColor:i,onClick:r,width:s,height:d,extraStyle:l})=>{const u=t==="horizontal"?re.mpSummaryCardHorizontal:re.mpSummaryCard;return o.jsxs("div",{className:u,style:{background:n,border:`1px solid ${c}`,width:s??void 0,height:d??void 0,...l??{}},role:r?"button":"group",tabIndex:r?0:-1,onClick:()=>r?.(e),children:[e.badge&&o.jsxs("div",{className:re.mpSummaryBadge,children:[e.badge.text,e.badge.subText&&o.jsx("div",{className:re.mpSummaryBadgeSub,children:e.badge.subText})]}),o.jsx("div",{className:re.mpSummaryValue,style:{color:i},children:e.value}),o.jsx("div",{className:re.mpSummaryLabel,children:e.label})]})},Z3e=["transparent","transparent","transparent","transparent"],X3e=["transparent","transparent","transparent","transparent"],Y3e=["#059669","#2563eb","#b45309","#7c3aed"],J3e=(e,t=1)=>{try{return Xt(e,t)}catch{return`rgba(124, 58, 237, ${t})`}},sz=e=>{const{items:t=[],layout:n="vertical",orientation:c="auto",shape:i="rounded",color:r="#7c3aed",compact:s=!1,title:d,onItemClick:l,className:h="",loading:u=!1,emptyMessage:p="Aucun élément",renderItem:k,summary:f=!1,summaryBgColors:g=Z3e,summaryBorderColors:m=X3e,summaryValueColors:v=Y3e,preset:_,background:x}=e,{itemsContainerStyle:b,itemsContainerClassName:I,summaryGridColumns:w,compactItemWidth:j,compactItemHeight:M,compactItemStyle:L,summaryCardWidth:S,summaryCardHeight:C,summaryCardStyle:N}=e,$=n==="vertical",q={"--mp-accent":r,"--mp-accent-soft":J3e(r,.08),"--mp-bg-primary":x},P=[re.mpRoot,$?re.mpVertical:re.mpHorizontal,s?re.mpCompact:"",f?re.mpSummaryRoot:"",c!=="auto"?c==="vertical"?re.mpOrientationVertical:re.mpOrientationHorizontal:"",h].filter(Boolean).join(" "),D=y.useMemo(()=>k||(K3e(_)??void 0),[k,_]);if(f){const V=c==="horizontal"?re.mpSummaryFlex:re.mpSummaryVertical,A={...(w?{display:"grid",gridTemplateColumns:`repeat(${w}, 1fr)`,gap:18,alignItems:"stretch",width:"100%"}:void 0)??{},...b??{}};return o.jsxs("div",{className:P,style:q,"aria-busy":u,children:[d&&o.jsx(l$,{title:d}),o.jsx("div",{className:re.mpSummaryInner,children:o.jsx("div",{className:`${V} ${I??""}`,style:A,children:t.length===0?o.jsx("div",{className:re.mpEmpty,children:p}):t.map((F,T)=>{const R=F.bgColor??g[T%g.length],Y=F.borderColor??m[T%m.length],U=F.valueColor??v[T%v.length];return D?o.jsx("div",{className:c==="horizontal"?re.mpSummaryCardWrapperHorizontal:re.mpSummaryCardWrapper,style:{width:S??void 0,height:C??void 0,...N??{}},children:D(F,T)},F.id):o.jsx(rz,{item:F,orientation:c==="horizontal"?"horizontal":"vertical",bg:R,border:Y,valueColor:U,onClick:l,width:S??void 0,height:C??void 0,extraStyle:N},F.id)})})})]})}return o.jsxs("div",{className:P,style:q,"aria-busy":u,children:[d&&o.jsx(l$,{title:d}),o.jsx("div",{className:re.mpList,style:b,children:u?o.jsx("div",{className:re.mpEmpty,children:"Chargement…"}):t.length===0?o.jsx("div",{className:re.mpEmpty,children:p}):t.map(V=>{const z=s?{width:j??void 0,height:M??void 0,boxSizing:"border-box",...L??{}}:void 0;return o.jsx("div",{className:s?re.compactItemWrapper:void 0,style:z,children:o.jsx(U3e,{item:V,shape:i,onItemClick:l,color:r,renderItem:D?A=>D(A,t.indexOf(A)):void 0})},V.id)})})]})};y.memo(sz);const Q3e=({a11yConfig:e,width:t,height:n,colors:c={text:"#0b1220",background:"#fff",contentBackground:"#efeff0"},titles:i={},placeholder:r="Loading Chart",style:s,className:d="",children:l,padding:h="1rem",variant:u="default",showBorder:p=!1,titleKey:k,leftTitleKey:f})=>{const g=t?typeof t=="number"?`${t}px`:t:void 0,m=n?typeof n=="number"?`${n}px`:n:void 0,v=r&&typeof r=="object"&&!y.isValidElement(r)&&("text"in r||"subtext"in r||"icon"in r||"background"in r||"iconSize"in r),_=v?r:void 0,x=_?.icon?At[_.icon]:void 0,b=28,I=_?.iconSize??b,w=["chart-container",`variant-${u}`,p?"with-border":"",d].filter(Boolean).join(" "),j=c.contentBackground??void 0,M=typeof h=="number"?`${h}px`:h;return o.jsxs("div",{className:w,style:{width:g,height:m,color:c.text,background:c.background,display:"flex",flexDirection:"column",boxSizing:"border-box",padding:M,...s},children:[o.jsxs("div",{className:"chart-header",children:[o.jsxs("div",{title:oe(e,f||k),className:"chart-title-left",style:{display:"flex",alignItems:"center",gap:"8px"},children:[i.left,i.leftSubtitle&&o.jsx("div",{className:"chart-subtitle-left",children:i.leftSubtitle})]}),o.jsx("div",{className:"chart-title-right",children:i.right})]}),o.jsx("div",{className:"chart-content",style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",background:j},children:l||(v&&_?o.jsxs("div",{className:"placeholder",role:"status","aria-live":"polite",children:[x&&o.jsx("div",{className:"placeholder-icon",style:{width:I,height:I},children:o.jsx(x,{color:_.iconColor??"currentColor",size:typeof I=="number"?I:parseInt(String(I),10)||b})}),_.text&&o.jsx("div",{className:"placeholder-text",children:_.text}),_.subtext&&o.jsx("div",{className:"placeholder-subtext",children:_.subtext})]}):o.jsx("div",{className:"placeholder-node",role:"status","aria-live":"polite",children:r}))})]})},VC=({id:e,size:t="100%",background:n,icon:c,text:i,subtext:r,onClose:s,onClick:d,style:l,className:h="",colorTextPrimary:u,colorTextSub:p,model:k,fontSize:f,fontWeight:g,a11yConfig:m,titleKey:v})=>{const _=c||k?.icon,x=typeof _=="string",b=x?At[_]:null,I=x?null:_;return o.jsxs("div",{id:e,className:`alert ${h}`,style:{width:typeof t=="number"?`${t}px`:t,background:n||k?.background,pointerEvents:"auto",cursor:d?"pointer":"default",...l},role:"alert",onClick:d,title:oe(m,v),children:[b&&o.jsx(b,{className:"alert-icon",size:20,color:u||k?.colorTextPrimary}),I!=null&&o.jsx("span",{className:"alert-icon",style:{display:"flex",alignItems:"center",color:u||k?.colorTextPrimary,flexShrink:0},children:I}),o.jsxs("div",{className:"alert-content",children:[o.jsx("span",{className:"alert-text",style:{color:u||k?.colorTextPrimary,fontSize:f,fontWeight:g},children:i}),r&&o.jsx("span",{className:"alert-subtext",style:{color:p||k?.colorTextSub},children:r})]}),s&&o.jsx("button",{className:"alert-close",onClick:s,"aria-label":"Fermer",children:"✕"})]})},dz=y.createContext(null),efe=(e="alert")=>`${e}_${Math.random().toString(36).slice(2,9)}`,tfe=({children:e,defaultDuration:t=4e3,maxAlerts:n,containerClassName:c,containerStyle:i})=>{const[r,s]=y.useState([]),d=y.useRef(new Map),l=y.useRef(null),[h,u]=y.useState(null),[p,k]=y.useState(void 0),f=y.useRef(n),g=y.useRef(r),m=y.useRef(t);y.useEffect(()=>{g.current=r},[r]),y.useEffect(()=>{m.current=t},[t]),y.useEffect(()=>{const q=d.current;return()=>{q.forEach(P=>window.clearTimeout(P)),q.clear()}},[]);const v=y.useCallback(q=>{const P=d.current.get(q);P&&(window.clearTimeout(P),d.current.delete(q))},[]),_=y.useCallback(q=>{v(q),s(P=>P.filter(D=>D.id!==q))},[v]),x=y.useCallback((q,P)=>{const D=P===void 0||P===0?m.current:P;if(D===-1)return;const V=window.setTimeout(()=>{_(q)},D);d.current.set(q,V)},[_]),b=y.useCallback(q=>{const P=efe(),D={...q,id:P,createdAt:Date.now()};return s(V=>{const z=[D,...V],A=f.current;return typeof A=="number"&&A>=0&&z.length>A?(z.slice(A).forEach(T=>v(T.id)),z.slice(0,A)):z}),x(P,q.duration),P},[v,x]),I=y.useCallback((q,P)=>{s(D=>D.map(V=>V.id===q?{...V,...P}:V))},[]),w=y.useCallback(()=>{d.current.forEach(q=>window.clearTimeout(q)),d.current.clear(),s([])},[]),j=y.useCallback((q,P)=>{q&&window.getComputedStyle(q).position==="static"&&(q.style.position="relative"),u(D=>D===q?D:q),k(P)},[]),M=y.useCallback(()=>g.current.slice(),[]),L=y.useMemo(()=>({showAlert:b,dismissAlert:_,updateAlert:I,clearAlerts:w,setContainerRef:j,getAlertsSnapshot:M}),[b,_,I,w,j,M]),S=h,C=S?!!p:!1,N=o.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,display:"flex",flexDirection:"column",alignItems:"center",pointerEvents:"none",zIndex:10001,padding:"8px 4px",...C?{top:"auto",left:"auto",right:"auto",alignItems:"flex-end"}:null,...S?p:null},children:o.jsx(Ahe,{mode:"popLayout",children:r.map(q=>o.jsx($C.div,{initial:{opacity:0,y:-10,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.98},transition:{type:"spring",damping:25,stiffness:300},style:{width:C?"auto":"100%",pointerEvents:"auto",boxShadow:"0 6px 20px rgba(0, 0, 0, 0.12)",borderRadius:"8px",marginBottom:"6px",backgroundColor:q.background||q.model?.background||"var(--color-background, #fff)",border:"1px solid rgba(0, 0, 0, 0.08)",overflow:"hidden"},children:o.jsx(VC,{id:q.id,text:q.text,subtext:q.subtext,icon:q.icon,background:"transparent",colorTextPrimary:q.colorTextPrimary,colorTextSub:q.colorTextSub,model:q.model,onClose:()=>_(q.id),size:C?"auto":"100%",style:{boxShadow:"none",...C?{whiteSpace:"nowrap"}:null}})},q.id))})}),$=o.jsx("div",{ref:q=>{h||(l.current=q)},className:c,style:{width:"100%",position:"relative",...i},"aria-live":"polite",children:N});return o.jsxs(dz.Provider,{value:L,children:[S?gi.createPortal(N,S):$,e]})},afe=()=>{const e=y.useContext(dz);if(!e)throw new Error("useAlerts must be used inside an AlertsProvider");return e},nfe={default:{background:"#f3f4f6",icon:"Info",colorTextPrimary:"#111827",colorTextSub:"#4b5563"},info:{background:"#dbeafe",icon:"Info",colorTextPrimary:"#1e40af",colorTextSub:"#3b82f6"},success:{background:"#dcfce7",icon:"CheckCircle2",colorTextPrimary:"#166534",colorTextSub:"#22c55e"},warning:{background:"#fef3c7",icon:"AlertTriangle",colorTextPrimary:"#92400e",colorTextSub:"#f59e0b"},error:{background:"#fee2e2",icon:"XCircle",colorTextPrimary:"#991b1b",colorTextSub:"#ef4444"}},ofe="_container_18zbo_1",cfe="_icon_18zbo_9",ife="_selectWrapper_18zbo_23",_w={container:ofe,icon:cfe,selectWrapper:ife},rfe=({options:e,defaultValue:t,onChange:n,label:c})=>{const[i,r]=y.useState(t||e[0]?.value||""),s=d=>{r(d),n?.(d)};return o.jsxs("div",{className:_w.container,children:[o.jsxs("div",{className:_w.icon,children:[o.jsx(K1,{size:18}),o.jsx("p",{children:c})]}),o.jsx("div",{className:_w.selectWrapper,children:o.jsx(qC,{field:{name:"periode",label:"",options:e},value:i,onChange:s,onBlur:()=>{}})})]})},sfe=250,dfe=y.forwardRef(({title:e,subtitle:t,size:n="420px",beforeOpen:c,afterOpen:i,beforeClose:r,afterClose:s,style:d,className:l="",children:h,closeOnOverlayClick:u=!0,showCloseButton:p=!0},k)=>{const[f,g]=y.useState(!1),[m,v]=y.useState(!1),_=y.useRef(null),x=y.useRef(null),b=y.useRef(null),I=y.useRef(null);y.useEffect(()=>{const M=_.current;if(!M)return;const L=M.parentElement;return L?(window.getComputedStyle(L).position==="static"&&(L.setAttribute("data-scp-prev-position",L.style.position??""),L.style.position="relative",L.setAttribute("data-scp-position-changed","true")),()=>{if(L.getAttribute("data-scp-position-changed")==="true"){const C=L.getAttribute("data-scp-prev-position")??"";L.style.position=C,L.removeAttribute("data-scp-position-changed"),L.removeAttribute("data-scp-prev-position")}}):void 0},[]),y.useImperativeHandle(k,()=>({open:()=>{f||(c?.(),v(!1),g(!0))},close:()=>{f&&(r?.(),v(!1),g(!1))},toggle:()=>{f?(r?.(),v(!1),g(!1)):(c?.(),v(!1),g(!0))}}),[f,c,r]),y.useEffect(()=>{const M=x.current;I.current&&(window.clearTimeout(I.current),I.current=null);const L=S=>{if(S.target===M&&!(S.propertyName!=="transform"&&S.propertyName!=="opacity"))if(f){v(!0),i?.();try{M?.focus()}catch{}}else{s?.();try{b.current?.focus()}catch{}}};return M&&(M.addEventListener("transitionend",L),I.current=window.setTimeout(()=>{if(f){v(!0),i?.();try{M?.focus()}catch{}}else{s?.();try{b.current?.focus()}catch{}}},sfe+60)),f&&(b.current=document.activeElement),()=>{M&&M.removeEventListener("transitionend",L),I.current&&(window.clearTimeout(I.current),I.current=null)}},[f,i,s]),y.useEffect(()=>{const M=L=>{L.key==="Escape"&&f&&(r?.(),v(!1),g(!1))};return window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)},[f,r]);const w=()=>{u&&(r?.(),v(!1),g(!1))},j=typeof n=="number"?`${n}px`:n;return o.jsxs("div",{ref:_,className:`scp-inline-root ${f?"open":""}`,"aria-hidden":!f,children:[o.jsx("div",{className:`scp-overlay ${f?"visible":""}`,onMouseDown:w,role:"presentation"}),o.jsxs("aside",{className:`scp-panel ${f?"in":"out"} ${m?"interactive":""} ${l}`,style:{width:j,...d},ref:x,tabIndex:-1,role:"dialog","aria-label":e,children:[o.jsxs("div",{className:"scp-header",children:[o.jsxs("div",{children:[o.jsx("h3",{className:"scp-title",children:e}),t&&o.jsx("div",{className:"scp-subtitle",children:t})]}),p&&o.jsx("button",{className:"scp-close","aria-label":"Close",onClick:()=>{r?.(),v(!1),g(!1)},children:o.jsx(ht,{size:18})})]}),o.jsx("div",{className:"scp-body",children:h})]})]})});function lfe(e){const t=y.useRef("");y.useEffect(()=>{if(e){t.current=document.body.style.overflow,document.body.style.overflow="hidden";return}document.body.style.overflow=t.current||""},[e])}const hfe="_container_1pfsp_1",ufe="_title_1pfsp_8",k$={container:hfe,title:ufe},pfe=({title:e,fontSize:t,barColor:n,className:c="",style:i={}})=>{const r={...i,"--title-font-size":t,"--bar-color":n};return o.jsx("div",{className:`${k$.container} ${c}`,style:r,children:o.jsx("h2",{className:k$.title,children:e})})},yfe="_modalOverlay_1878x_1",kfe="_modalContainer_1878x_16",mfe="_modalTitle_1878x_29",ffe="_modalInput_1878x_38",gfe="_modalTextarea_1878x_39",vfe="_modalActions_1878x_70",xfe="_cancelBtn_1878x_77",_fe="_saveBtn_1878x_99",Mfe="_inputError_1878x_141",Lfe="_inlineAlert_1878x_146",kt={modalOverlay:yfe,modalContainer:kfe,modalTitle:mfe,modalInput:ffe,modalTextarea:gfe,modalActions:vfe,cancelBtn:xfe,saveBtn:_fe,inputError:Mfe,inlineAlert:Lfe},n1=({isOpen:e,onClose:t,onSave:n,title:c="Ajouter un élément",fields:i,initialValues:r={},errorMessage:s="",disableSave:d,onFieldChange:l,confirmText:h="Valider",cancelText:u="Annuler"})=>{const[p,k]=y.useState({}),f=y.useRef(null),[g,m]=y.useState(!1),[v,_]=y.useState(!1),x=y.useRef(null);if(y.useEffect(()=>{if(!e)return;const M={};for(const L of i)M[L.name]=Object.prototype.hasOwnProperty.call(r,L.name)?r[L.name]:"";return k(M),requestAnimationFrame(()=>{f.current?.focus();const L=f.current;if(L&&typeof L.selectionStart=="number"){const S=String(L.value??"").length;L.setSelectionRange(S,S)}}),()=>{x.current&&(window.clearTimeout(x.current),x.current=null)}},[e]),y.useEffect(()=>{s&&e?(_(!0),x.current&&(window.clearTimeout(x.current),x.current=null),x.current=window.setTimeout(()=>{_(!1),x.current=null},3e3)):(_(!1),x.current&&(window.clearTimeout(x.current),x.current=null))},[s,e]),!e)return null;const b=(M,L)=>{k(S=>({...S,[M]:L})),l&&l(M,L)},I=async()=>{if(!Object.values(p).some(M=>M===""||M===void 0))try{m(!0);const M=await n(p);if(typeof M=="string"&&M==="duplicate-same"){m(!1);return}k({}),m(!1),t()}catch(M){console.error("AddItemModal onSave error:",M),m(!1),t()}},w=M=>{M.target===M.currentTarget&&t()},j=M=>M.stopPropagation();return o.jsx("div",{className:kt.modalOverlay,onMouseDown:w,role:"dialog","aria-modal":"true",children:o.jsxs("div",{className:kt.modalContainer,onMouseDown:j,onClick:j,children:[o.jsx("h2",{className:kt.modalTitle,children:c}),i.map((M,L)=>{const S=p[M.name]??"",C=L===0&&!!s,N={name:M.name,placeholder:M.placeholder||M.label,value:String(S),onChange:$=>b(M.name,$.target.value),className:M.type==="textarea"?`${kt.modalTextarea} ${C?kt.inputError:""}`:`${kt.modalInput} ${C?kt.inputError:""}`,tabIndex:0,disabled:g};return L===0&&(N.ref=$=>{f.current=$}),o.jsxs("div",{style:{marginBottom:8},children:[M.type==="textarea"?o.jsx("textarea",{rows:M.rows||4,...N}):o.jsx("input",{type:M.type||"text",...N}),L===0&&v&&s&&o.jsx("div",{style:{marginTop:8},children:o.jsx(VC,{text:s,background:"#fff5f5",colorTextPrimary:"#ef4444",onClose:()=>_(!1),className:kt.inlineAlert})})]},M.name)}),o.jsxs("div",{className:kt.modalActions,children:[o.jsx("button",{className:kt.cancelBtn,onClick:t,type:"button",disabled:g,children:u}),o.jsx("button",{className:kt.saveBtn,onClick:I,type:"button",disabled:g||!!d,children:g?"En cours...":h})]})]})})},bfe=({title:e,keyCount:t,onAddKey:n,a11yConfig:c})=>{const[i,r]=y.useState(!1),s=d=>{const l=d.key;n&&l&&n(l)};return o.jsxs("div",{className:"header-container",children:[o.jsxs("div",{className:"header-info",children:[o.jsx("h1",{title:oe(c,e),children:e}),o.jsxs("p",{children:[t," clés"]})]}),o.jsxs("button",{onClick:()=>r(!0),className:"add-key-button",children:[o.jsx(Jc,{className:"add-key-icon"}),"Clé"]}),o.jsx(n1,{isOpen:i,title:"Ajouter une clé",onClose:()=>r(!1),onSave:s,fields:[{name:"key",label:"Nouvelle clé",placeholder:"Entrer une nouvelle clé"}]})]})},Ife=({modules:e,onEdit:t,onDelete:n,onAddModule:c,onSelectModule:i,addModalFields:r,addModalTitle:s})=>{const[d,l]=y.useState(!1),[h,u]=y.useState(null),[p,k]=y.useState(null),[f,g]=y.useState(!1),m=()=>l(!0),v=()=>l(!1),_=M=>{if(c){const L=M.code?.trim()||M.id?.trim(),S=M.title?.trim(),C=L||S||String(Date.now()),N=S||L||`Module ${C}`;c({id:C,title:N,subtitle:"",translations:{}})}v()},x=(M,L)=>{M.stopPropagation(),u(L)},b=()=>u(null),I=M=>{if(!h){b();return}const L={...h,title:M.title||h.title,subtitle:""};t&&t(L),b()},w=(M,L)=>{M.stopPropagation(),n&&n(L)},j=M=>{k(M.id),i&&i(M)};return f?o.jsx("div",{className:"module-sidebar collapsed",children:o.jsx(I1,{size:20,className:"menu-toggle",onClick:()=>g(!1)})}):o.jsxs("div",{className:"module-sidebar",children:[o.jsxs("div",{className:"sidebar-header",children:[o.jsxs("span",{className:"header-text",children:["Modules (",e.length,")"]}),o.jsxs("div",{className:"header-actions",children:[o.jsx(Yc,{size:18,className:"header-folder",onClick:m}),o.jsx(I1,{size:18,className:"header-menu",onClick:()=>g(!0)})]})]}),o.jsx("hr",{className:"divider"}),o.jsx("div",{className:"module-list",children:e.map(M=>{const L=Object.keys(M.translations||{}).length,S=L>0||M.id===p;return o.jsxs("div",{className:`module-item ${M.id===p?"selected":""}`,onClick:()=>j(M),role:"button",tabIndex:0,onKeyDown:C=>{C.key==="Enter"&&j(M)},children:[o.jsxs("div",{className:"module-left",children:[o.jsx(ei,{size:16,className:"item-folder"}),o.jsxs("div",{className:"module-info",children:[o.jsxs("div",{className:"module-title",children:[M.title,S&&o.jsxs("span",{className:"count",children:[" ",L," "]})]}),M.subtitle?o.jsx("div",{className:"module-subtitle",children:M.subtitle}):null]})]}),o.jsxs("div",{className:"module-actions",children:[t&&o.jsx(w1,{onClick:C=>x(C,M),color:"#777",size:16}),n&&o.jsx(It,{onClick:C=>w(C,M.id),color:"#777",size:16})]})]},M.id)})}),o.jsx(n1,{isOpen:d,onClose:v,onSave:_,title:s||"Ajouter un module",fields:r&&r.length?r.map(M=>({name:M.name,label:M.label,type:M.type,placeholder:M.placeholder,rows:M.rows})):[{name:"title",label:"Titre",placeholder:"Titre du module"}]}),h&&o.jsx(n1,{isOpen:!!h,onClose:b,onSave:I,title:"Éditer le module",initialValues:{title:h.title},fields:[{name:"title",label:"Titre",placeholder:"Titre du module"}]})]})},lz=({placeholder:e="Rechercher une clé ou traduction...",value:t="",onChange:n,iconPosition:c="left",iconColor:i="#9ca3af",a11yConfig:r,className:s})=>o.jsxs("div",{className:`search-container icon-${c}`,title:oe(r,e),children:[o.jsx("div",{className:"search-icon-wrapper",children:o.jsx(ni,{className:"search-icon",color:i})}),o.jsx("input",{type:"text",placeholder:e,value:t,onChange:d=>n?.(d.target.value),className:`search-input ${s}`})]}),wfe=({keyName:e,translations:t,availableLanguages:n,onDeleteKey:c,onEditKey:i,onEditTranslation:r,onDeleteTranslation:s,onAddTranslation:d,draggable:l=!1,checkDuplicateLocal:h})=>{const[u,p]=y.useState(!1),[k,f]=y.useState(""),[g,m]=y.useState(null),[v,_]=y.useState(""),[x,b]=y.useState(""),[I,w]=y.useState(!1),[j,M]=y.useState(!1),[L,S]=y.useState(null),[C,N]=y.useState(!1),$=t.map(T=>T.language),q=n.filter(T=>!$.includes(T.code)),P=()=>{k&&x.trim()&&(d?.(e,k,x.trim()),f(""),b(""),p(!1))},D=(T,R)=>{m(T),_(R)},V=T=>{r?.(e,T,v),m(null),_("")},z=()=>{m(null),_("")},A=async T=>{const R=T.name?.trim();if(R){if(S(null),N(!1),R===e||!i)return w(!1),"ok";try{const Y=await i(e,R);if(typeof Y=="string"&&Y==="ok")w(!1),S(null);else{if(typeof Y=="string"&&Y==="duplicate-same")return S("Une clé existe déjà dans ce module."),N(!0),"duplicate-same";if(typeof Y=="string"&&Y==="duplicate-other")return w(!1),S(null),"duplicate-other";w(!1)}}catch(Y){console.error("Erreur handleRenameSave:",Y),S("Erreur lors du renommage.")}}},F=(T,R)=>{if(T!=="name")return;const Y=R.trim();S(null),N(!1),Y&&typeof h=="function"&&(h(Y,e)?(S("Une clé existe déjà dans ce module."),N(!0)):(S(null),N(!1)))};return o.jsxs("div",{className:`translation-key ${j?"collapsed":"expanded"} ${l?"draggable":""}`,children:[o.jsxs("div",{className:"card-header",children:[o.jsxs("div",{className:"header-left",children:[o.jsx("button",{className:"collapse-button",onClick:()=>M(!j),title:j?"Déplier":"Replier",children:j?o.jsx(X1,{className:"collapse-icon"}):o.jsx(Yt,{className:"collapse-icon"})}),o.jsx("h3",{className:"card-title",title:e,children:e})]}),o.jsxs("div",{className:"header-actions",children:[o.jsx("button",{className:"action-button",onClick:T=>{T.stopPropagation(),w(!0)},title:"Renommer la clé",children:o.jsx(St,{className:"action-icon"})}),o.jsx("button",{onClick:T=>{T.stopPropagation(),c?.(e)},className:"action-button delete",title:"Supprimer la clé",children:o.jsx(It,{className:"action-icon"})})]})]}),o.jsx("div",{className:`translations-container ${j?"":"expanded"}`,children:!l&&o.jsxs(o.Fragment,{children:[t.map(T=>o.jsxs("div",{className:"translation-row",children:[o.jsx("div",{className:"language-code",children:T.language}),o.jsx("div",{className:"translation-content",children:g===T.language?o.jsxs(o.Fragment,{children:[o.jsx("input",{type:"text",value:v,onChange:R=>_(R.target.value),className:"edit-input",autoFocus:!0,onKeyDown:R=>{R.key==="Enter"&&V(T.language),R.key==="Escape"&&z()}}),o.jsx("button",{onClick:()=>V(T.language),className:"save-button",disabled:!v.trim(),children:"Enregistrer"}),o.jsx("button",{onClick:z,className:"cancel-button",children:o.jsx(ht,{className:"action-icon"})})]}):o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"translation-text",title:T.value,children:T.value}),o.jsx("button",{onClick:()=>D(T.language,T.value),className:"edit-button",title:"Éditer la traduction",children:o.jsx(St,{className:"action-icon"})}),o.jsx("button",{onClick:()=>s?.(e,T.language),className:"delete-translation-button",title:"Supprimer la traduction",children:o.jsx(ht,{className:"action-icon"})})]})})]},T.language)),u?o.jsxs("div",{className:"add-language-row",children:[o.jsx("div",{className:"language-code",children:"+"}),o.jsxs("div",{className:"add-language-content",children:[o.jsx("div",{className:"language-select-container",children:o.jsxs("select",{value:k,onChange:T=>f(T.target.value),className:"language-select",children:[o.jsx("option",{value:"",children:"Sélectionnez la langue"}),q.map(T=>o.jsxs("option",{value:T.code,children:[T.name," (",T.code,")"]},T.code))]})}),k&&o.jsx("input",{type:"text",value:x,onChange:T=>b(T.target.value),placeholder:"Entrez la traduction...",className:"translation-input",onKeyDown:T=>{T.key==="Enter"&&P(),T.key==="Escape"&&(p(!1),f(""),b(""))}}),o.jsx("button",{onClick:P,disabled:!k||!x.trim(),className:"save-button",children:"Ajouter"}),o.jsx("button",{onClick:()=>{p(!1),f(""),b("")},className:"cancel-button",children:o.jsx(ht,{className:"action-icon"})})]})]}):o.jsxs("button",{onClick:()=>p(!0),className:"show-add-button",disabled:q.length===0,children:[o.jsx("span",{className:"plus-icon",children:"+"}),"Ajouter une langue"]})]})}),l&&o.jsxs("div",{className:"drag-overlay",children:[o.jsx(a.Move,{size:24,strokeWidth:1.5}),o.jsx("span",{children:"Glisser pour réorganiser"})]}),o.jsx(n1,{isOpen:I,onClose:()=>{w(!1),S(null),N(!1)},onSave:A,onFieldChange:F,title:"Renommer la clé",initialValues:{name:e},fields:[{name:"name",label:"Nom de la clé",placeholder:"Nom de la clé"}],errorMessage:L||"",disableSave:C})]})},Cfe="_wrapper_1wvht_1",jfe="_leftGroup_1wvht_12",Nfe="_filterButton_1wvht_21",Sfe="_open_1wvht_42",$fe="_filterIcon_1wvht_42",qfe="_infoText_1wvht_58",Afe="_pickerContainer_1wvht_66",zfe="_srOnly_1wvht_79",Pfe="_pickerLabel_1wvht_91",Vfe="_datetime_1wvht_98",Tfe="_rightGroup_1wvht_107",Dfe="_searchInputWrap_1wvht_116",Hfe="_searchInput_1wvht_116",Bfe="_searchIcon_1wvht_152",Ye={wrapper:Cfe,leftGroup:jfe,filterButton:Nfe,open:Sfe,filterIcon:$fe,infoText:qfe,pickerContainer:Afe,srOnly:zfe,pickerLabel:Pfe,datetime:Vfe,rightGroup:Tfe,searchInputWrap:Dfe,searchInput:Hfe,searchIcon:Bfe};function Rfe({onDateChange:e,onSearch:t,initialDate:n}){const[c,i]=y.useState(!1),[r,s]=y.useState(n??""),d=y.useRef(null);y.useEffect(()=>{function p(k){const f=k.target;d.current&&f&&!d.current.contains(f)&&i(!1)}return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[]),y.useEffect(()=>{n&&s(n)},[n]);const l=()=>i(p=>!p),h=p=>{const k=p.target.value;s(k),e?.(k)},u=p=>{t?.(p.target.value)};return o.jsxs("div",{className:Ye.wrapper,ref:d,children:[o.jsxs("div",{className:Ye.leftGroup,children:[o.jsxs("button",{type:"button",className:`${Ye.filterButton} ${c?Ye.open:""}`,onClick:l,"aria-expanded":c,"aria-haspopup":"dialog","aria-controls":"entry-datetime",children:[o.jsx("span",{children:"Entry time"}),o.jsx("svg",{className:Ye.filterIcon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"14",height:"14","aria-hidden":!0,children:o.jsx("path",{fill:"currentColor",d:"M10 18h4v-2h-4v2zm-7-8v2h18V10H3zm3-6v2h12V4H6z"})})]}),o.jsx("div",{className:Ye.infoText,children:"Confidence interval: step ± 15' / exit ± 30'"}),c&&o.jsxs("div",{className:Ye.pickerContainer,role:"dialog","aria-label":"Choisir la date et l’heure",children:[o.jsx("label",{className:Ye.pickerLabel,htmlFor:"entry-datetime",children:o.jsx("span",{className:Ye.srOnly,children:"Choisir la date et l’heure"})}),o.jsx("input",{id:"entry-datetime",className:Ye.datetime,type:"datetime-local",value:r,onChange:h,"aria-label":"Date et heure d’entrée"})]})]}),o.jsx("div",{className:Ye.rightGroup,children:o.jsxs("div",{className:Ye.searchInputWrap,children:[o.jsx("input",{className:Ye.searchInput,placeholder:"Search...",onChange:u,"aria-label":"Search"}),o.jsx("svg",{className:Ye.searchIcon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"16",height:"16","aria-hidden":!0,children:o.jsx("path",{fill:"currentColor",d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16a6.471 6.471 0 004.23-1.57l.27.28v.79L20 20.49 21.49 19l-5.99-5zM10 15.5A5.5 5.5 0 1115.5 10 5.5 5.5 0 0110 15.5z"})})]})})]})}const Ffe=({className:e="",style:t={},title:n,titleClassName:c="",titleStyle:i,data:r,lineClasses:s={},renderCell:d,bg:l,titleBg:h,titleColor:u,itemBg:p,emptyContent:k,colGap:f="1rem"})=>{const g=Array.isArray(r)?r:[],m=g.length===0,v=g.every(I=>typeof I=="string"),_=g.some(I=>Array.isArray(I)),x=(I,w,j)=>d?d(I,w,j):o.jsx("span",{className:"slb-cell-text",children:I}),b=f?{"--col-gap":f}:void 0;return m?o.jsxs("div",{className:`slb-root ${e}`,style:{...t,background:l??void 0},children:[n&&o.jsx("div",{className:`slb-title ${c}`,style:{...i,background:h??void 0,color:u??void 0},children:n}),o.jsx("div",{className:"slb-empty",children:k??null})]}):v&&!_?o.jsxs("div",{className:`slb-root ${e}`,style:{...t,background:l??void 0},children:[n&&o.jsx("div",{className:`slb-title ${c}`,style:{background:h??void 0,color:u??void 0},children:n}),o.jsx("ul",{className:"slb-list",children:g.map((I,w)=>o.jsx("li",{className:`slb-item ${s[w]||""}`,style:{background:p??void 0},children:x(I,w,0)},w))})]}):o.jsxs("div",{className:`slb-root ${e}`,style:{...t,background:l??void 0},children:[n&&o.jsx("div",{className:`slb-title ${c}`,style:{background:h??void 0,color:u??void 0},children:n}),o.jsx("div",{className:"slb-grid",style:b,children:g.map((I,w)=>{const j=s[w]||"";if(Array.isArray(I)){const[M,L]=I;return o.jsxs("div",{className:`slb-row ${j}`,style:{background:p??void 0},children:[o.jsx("div",{className:"slb-grid-left",children:x(M,w,0)}),o.jsx("div",{className:"slb-grid-right",children:x(L,w,1)})]},w)}return o.jsxs("div",{className:`slb-row ${j}`,style:{background:p??void 0},children:[o.jsx("div",{className:"slb-grid-left",children:x(I,w,0)}),o.jsx("div",{className:"slb-grid-right slb-empty-cell","aria-hidden":"true"})]},w)})})]})},Efe=({className:e="",style:t={},title:n,titleColor:c,data:i=[],badgeColor:r="#0ea5e9",badgeColors:s={},badgePadding:d="8px 16px",badgeWidth:l,itemBg:h,lineClasses:u={},colGap:p="1rem"})=>{const k=i.some(g=>Array.isArray(g)),f=p?{"--col-gap":p}:void 0;return o.jsxs("div",{className:`clb-root ${e}`,style:{...t},children:[n&&o.jsx("div",{className:"clb-title",style:c?{color:c}:void 0,children:n}),o.jsx("div",{className:"clb-grid",style:f,children:i.map((g,m)=>{const v=u[m]||"";if(Array.isArray(g)){const[_,x]=g,b=s[m]||r;return o.jsxs("div",{className:`clb-row ${v}`,style:{background:h??void 0},children:[o.jsx("div",{className:"clb-badge-col",children:o.jsx("div",{className:"counter-badge",style:{background:b,padding:d,width:l,minWidth:l},children:_})}),o.jsx("div",{className:"clb-text",children:x})]},m)}return k?o.jsxs("div",{className:`clb-row ${v}`,style:{background:h??void 0},children:[o.jsx("div",{className:"clb-badge-col clb-empty-badge"}),o.jsx("div",{className:"clb-text",children:g})]},m):o.jsx("div",{className:`clb-fullrow ${v}`,style:{background:h??void 0},children:o.jsx("span",{children:g})},m)})})]})},Ofe=({className:e="",style:t={},title:n,items:c=[],titleBg:i,titleColor:r,itemBg:s,lineClasses:d={},renderTrendIcon:l,colGap:h="1rem"})=>{const u=h?{"--col-gap":h}:void 0;return o.jsxs("div",{className:`tlb-root ${e}`,style:{...t,background:s??void 0},children:[n&&o.jsx("div",{className:"tlb-title",style:{background:i??void 0,color:r??void 0},children:n}),o.jsx("div",{className:"tlb-grid",style:u,children:c.map((p,k)=>{const f=d[k]||"";return o.jsxs("div",{className:`tlb-row ${f}`,style:{background:s??void 0},children:[o.jsx("div",{className:"tlb-label",children:p.label}),o.jsxs("div",{className:"tlb-value-group",children:[o.jsx("div",{className:"tlb-icon-col",children:l?l(p):p.icon??null}),o.jsxs("div",{className:"tlb-value-wrap",children:[o.jsx("div",{className:"tlb-value",children:p.value}),typeof p.delta<"u"&&o.jsx("div",{className:`tlb-delta ${p.delta>0?"positive":p.delta<0?"negative":"neutral"}`,children:p.deltaLabel??String(p.delta)})]})]})]},k)})})]})},Ufe=({className:e="",style:t={},children:n,gap:c="1rem"})=>o.jsx("div",{className:`frc-root ${e}`,style:{...t,"--frc-gap":c},children:y.Children.map(n,i=>o.jsx("div",{className:"frc-item",children:i}))}),Wfe=({className:e="",style:t={},children:n,gap:c="1rem",background:i="#D9EEF5"})=>o.jsx("div",{className:`lcc-root ${e}`,style:{background:i,...t,"--lcc-gap":c},children:y.Children.map(n,r=>o.jsx("div",{className:"lcc-cell",children:r}))}),Gfe="_overlay_3x4or_2",Kfe="_fadeIn_3x4or_1",Zfe="_popup_3x4or_17",Xfe="_slideUp_3x4or_1",Yfe="_header_3x4or_28",Jfe="_body_3x4or_40",Qfe="_footer_3x4or_51",e6e="_cancelButton_3x4or_59",t6e="_confirmButton_3x4or_77",a6e="_warning_3x4or_97",n6e="_danger_3x4or_106",o6e="_info_3x4or_115",Ft={overlay:Gfe,fadeIn:Kfe,popup:Zfe,slideUp:Xfe,header:Yfe,body:Jfe,footer:Qfe,cancelButton:e6e,confirmButton:t6e,warning:a6e,danger:n6e,info:o6e},c6e=({isOpen:e,title:t,message:n,onConfirm:c,onCancel:i,confirmText:r="Confirmer",cancelText:s="Annuler",type:d="warning"})=>{if(!e)return null;const l=u=>{u.target===u.currentTarget&&i()},h=u=>{u.key==="Escape"&&i(),u.key==="Enter"&&u.ctrlKey&&c()};return o.jsx("div",{className:Ft.overlay,onClick:l,onKeyDown:h,role:"dialog","aria-labelledby":"confirmation-title","aria-describedby":"confirmation-message",children:o.jsxs("div",{className:`${Ft.popup} ${Ft[d]}`,children:[o.jsx("div",{className:Ft.header,children:o.jsx("h3",{id:"confirmation-title",children:t})}),o.jsx("div",{className:Ft.body,children:o.jsx("p",{id:"confirmation-message",children:n})}),o.jsxs("div",{className:Ft.footer,children:[o.jsx("button",{className:Ft.cancelButton,onClick:i,type:"button",children:s}),o.jsx("button",{className:Ft.confirmButton,onClick:c,type:"button",autoFocus:!0,children:r})]})]})})},i6e=()=>{const[e,t]=y.useState({isOpen:!1,title:"",message:"",onConfirm:null}),n=y.useCallback((r,s,d)=>{t({isOpen:!0,title:r,message:s,onConfirm:d})},[]),c=y.useCallback(()=>{t(r=>({...r,isOpen:!1,onConfirm:null}))},[]),i=y.useCallback(()=>{e.onConfirm?.(),c()},[e.onConfirm,c]);return{isOpen:e.isOpen,title:e.title,message:e.message,showConfirmation:n,hideConfirmation:c,handleConfirm:i}},r6e="_container_8ts1k_1",s6e="_selectButton_8ts1k_7",d6e="_disabled_8ts1k_23",l6e="_error_8ts1k_40",h6e="_outline_8ts1k_53",u6e="_filled_8ts1k_59",p6e="_sm_8ts1k_68",y6e="_md_8ts1k_74",k6e="_lg_8ts1k_80",m6e="_buttonContent_8ts1k_86",f6e="_label_8ts1k_94",g6e="_placeholder_8ts1k_104",v6e="_iconsContainer_8ts1k_109",x6e="_loadingSpinner_8ts1k_116",_6e="_spin_8ts1k_1",M6e="_arrowIcon_8ts1k_135",L6e="_arrowIconOpen_8ts1k_143",b6e="_dropdown_8ts1k_148",I6e="_dropdownIn_8ts1k_1",w6e="_searchContainer_8ts1k_176",C6e="_searchInputWrapper_8ts1k_182",j6e="_searchIcon_8ts1k_188",N6e="_searchInput_8ts1k_182",S6e="_optionsList_8ts1k_213",$6e="_noResults_8ts1k_238",q6e="_option_8ts1k_213",A6e="_optionHighlighted_8ts1k_268",z6e="_optionSelected_8ts1k_273",P6e="_optionDisabled_8ts1k_284",V6e="_optionLabel_8ts1k_290",T6e="_optionLabelWrap_8ts1k_298",D6e="_checkIcon_8ts1k_304",H6e="_widthFull_8ts1k_312",B6e="_width64_8ts1k_316",R6e="_width80_8ts1k_320",F6e="_width96_8ts1k_324",ke={container:r6e,selectButton:s6e,disabled:d6e,error:l6e,default:"_default_8ts1k_49",outline:h6e,filled:u6e,sm:p6e,md:y6e,lg:k6e,buttonContent:m6e,label:f6e,placeholder:g6e,iconsContainer:v6e,loadingSpinner:x6e,spin:_6e,arrowIcon:M6e,arrowIconOpen:L6e,dropdown:b6e,dropdownIn:I6e,searchContainer:w6e,searchInputWrapper:C6e,searchIcon:j6e,searchInput:N6e,optionsList:S6e,noResults:$6e,option:q6e,optionHighlighted:A6e,optionSelected:z6e,optionDisabled:P6e,optionLabel:V6e,optionLabelWrap:T6e,checkIcon:D6e,widthFull:H6e,width64:B6e,width80:R6e,width96:F6e},Di=4,m$=8,E6e=({id:e,ariaLabelledBy:t,options:n,value:c,onChange:i,placeholder:r="Sélectionner une option...",disabled:s=!1,loading:d=!1,error:l=!1,className:h="",size:u="md",variant:p="default",width:k="w-full",dropdownPosition:f="auto",truncateLabels:g=!0})=>{const[m,v]=y.useState(!1),[_,x]=y.useState(""),[b,I]=y.useState(0),[w,j]=y.useState({top:0,left:0,width:0}),[M,L]=y.useState("bottom"),[S,C]=y.useState(null),N=y.useRef(null),$=y.useRef(null),q=y.useRef(null),P=y.useMemo(()=>_?n.filter(E=>E.label.toLowerCase().includes(_.toLowerCase())):n,[n,_]),D=n.find(E=>E.value===c),V=y.useCallback(()=>{if(N.current){const E=N.current.getBoundingClientRect();j({top:E.top,left:E.left,width:E.width})}},[]),z=y.useCallback(()=>{if(!N.current)return;const E=N.current.getBoundingClientRect(),Q=E.top-Di-m$,de=window.innerHeight-E.bottom-Di-m$;let G;f!=="auto"?G=f:G=($.current?.scrollHeight??0)<=de?"bottom":Q>de?"top":"bottom",L(ce=>ce===G?ce:G),C(Math.max(G==="bottom"?de:Q,0))},[f]),A=y.useCallback(()=>{V(),z()},[V,z]);y.useEffect(()=>(m&&(A(),window.addEventListener("scroll",A,!0),window.addEventListener("resize",A)),()=>{window.removeEventListener("scroll",A,!0),window.removeEventListener("resize",A)}),[m,A]),y.useLayoutEffect(()=>{m&&z()},[m,z]),y.useEffect(()=>{const E=Q=>{N.current&&!N.current.contains(Q.target)&&$.current&&!$.current.contains(Q.target)&&(v(!1),x(""))};return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[]),y.useEffect(()=>{I(0)},[P]);const F=E=>{E.disabled||(i?.(E.value,E),v(!1),x(""))},T=E=>{x(E.target.value),m||v(!0)},R=E=>{if(!m){(E.key==="ArrowDown"||E.key==="Enter")&&v(!0);return}switch(E.key){case"ArrowDown":E.preventDefault(),I(Q=>Q<P.length-1?Q+1:Q);break;case"ArrowUp":E.preventDefault(),I(Q=>Q>0?Q-1:Q);break;case"Enter":E.preventDefault(),P[b]&&F(P[b]);break;case"Escape":v(!1),x("");break}},Y=()=>[ke.selectButton,ke[u],ke[p],s?ke.disabled:"",l?ke.error:"",h].filter(Boolean).join(" "),U=()=>{switch(k){case"w-64":return ke.width64;case"w-80":return ke.width80;case"w-96":return ke.width96;default:return ke.widthFull}},K=(E,Q)=>[ke.option,Q===b?ke.optionHighlighted:"",E.value===c?ke.optionSelected:"",E.disabled?ke.optionDisabled:""].filter(Boolean).join(" "),te={position:"fixed",top:M==="bottom"?w.top+(N.current?.offsetHeight||0)+Di:"auto",bottom:M==="top"?window.innerHeight-w.top+Di:"auto",left:w.left,width:w.width,maxHeight:S!=null?`${S}px`:void 0,zIndex:9999};return o.jsxs("div",{className:`${ke.container} ${U()}`,children:[o.jsx("button",{id:e,ref:N,className:Y(),onClick:()=>!s&&v(!m),onKeyDown:R,tabIndex:s?-1:0,type:"button","aria-haspopup":"listbox","aria-expanded":m,"aria-labelledby":t,disabled:s,children:o.jsxs("div",{className:ke.buttonContent,children:[o.jsx("span",{className:`${ke.label} ${D?"":ke.placeholder}`,children:D?D.label:r}),o.jsxs("div",{className:ke.iconsContainer,children:[d&&o.jsx("div",{className:ke.loadingSpinner}),o.jsx("svg",{className:`${ke.arrowIcon} ${m?ke.arrowIconOpen:""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})]})}),m&&gi.createPortal(o.jsxs("div",{className:`${ke.dropdown} ${U()}`,style:te,ref:$,children:[o.jsx("div",{className:ke.searchContainer,children:o.jsxs("div",{className:ke.searchInputWrapper,children:[o.jsx("svg",{className:ke.searchIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),o.jsx("input",{ref:q,type:"text",value:_,onChange:T,placeholder:"Rechercher...",className:ke.searchInput,autoFocus:!0})]})}),o.jsx("div",{className:ke.optionsList,children:P.length===0?o.jsx("div",{className:ke.noResults,children:"Aucun résultat trouvé"}):o.jsx("ul",{role:"listbox",children:P.map((E,Q)=>o.jsx("li",{className:K(E,Q),onClick:()=>F(E),onMouseEnter:()=>I(Q),role:"option","aria-selected":E.value===c,"aria-disabled":E.disabled,children:o.jsxs("div",{className:ke.buttonContent,children:[o.jsx("span",{className:`${ke.optionLabel} ${g?"":ke.optionLabelWrap}`.trim(),title:E.label,children:E.label}),E.value===c&&o.jsx("svg",{className:ke.checkIcon,fill:"currentColor",viewBox:"0 0 20 20",children:o.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})]})},E.value))})})]}),document.body)]})},O6e="_container_uq7pt_1",U6e="_item_uq7pt_7",W6e="_mainValue_uq7pt_13",G6e="_label_uq7pt_17",K6e="_subValue_uq7pt_22",Z6e="_subValueWrapper_uq7pt_27",X6e="_subSeparator_uq7pt_32",st={container:O6e,item:U6e,mainValue:W6e,label:G6e,subValue:K6e,subValueWrapper:Z6e,subSeparator:X6e},Y6e=({dms:e,stats:t=[],itemWidth:n="120px",valueFontSize:c="28px",valueFontWeight:i=700,subFontSize:r="16px",subFontWeight:s=600,backgroundColor:d="#ffffff",labelColor:l="#6b7280",valueColor:h="#000000"})=>{const u=(p,k,f)=>{const[g,m]=p.split("/").map(v=>v.trim());return o.jsxs("span",{className:st.subValueWrapper,children:[o.jsx("span",{className:st.subLeft,style:{color:k},children:g}),o.jsx("span",{className:st.subSeparator,children:" / "}),o.jsx("span",{className:st.subRight,style:{color:f},children:m})]})};return o.jsxs("div",{className:st.container,style:{backgroundColor:d},children:[e&&o.jsxs("div",{className:st.item,style:{flex:`1 1 ${n}`},children:[o.jsx("div",{className:st.mainValue,style:{fontSize:c,fontWeight:i,color:h},children:e}),o.jsx("div",{className:st.label,style:{color:l},children:"DMS"})]}),t.map((p,k)=>o.jsxs("div",{className:st.item,style:{flex:`1 1 ${n}`},children:[o.jsx("div",{className:st.mainValue,style:{fontSize:c,fontWeight:i,color:h},children:p.value}),o.jsx("div",{className:st.label,style:{color:l},children:p.label}),o.jsx("div",{className:st.subValue,style:{fontSize:r,fontWeight:s},children:p.subValue&&u(p.subValue,p.subLeftColor,p.subRightColor)})]},k))]})},J6e="_encours_16ist_1",Q6e="_header_16ist_19",e8e="_iconWrap_16ist_27",t8e="_title_16ist_36",a8e="_items_16ist_47",n8e="_spaceEvenly_16ist_56",o8e="_item_16ist_47",c8e="_valueContainer_16ist_86",i8e="_value_16ist_86",r8e="_label_16ist_108",xt={encours:J6e,header:Q6e,iconWrap:e8e,title:t8e,items:a8e,spaceEvenly:n8e,item:o8e,valueContainer:c8e,value:i8e,label:r8e},Zc=e=>typeof e=="number"?`${e}px`:typeof e=="string"?e:void 0;function s8e(e,t){const n={},c={};return e.valueColor&&(n.color=e.valueColor),e.valueFontSize!==void 0?n.fontSize=Zc(e.valueFontSize):t.defaultValueFontSize!==void 0&&(n.fontSize=Zc(t.defaultValueFontSize)),e.valueFontWeight!==void 0?n.fontWeight=e.valueFontWeight:t.defaultValueFontWeight!==void 0&&(n.fontWeight=t.defaultValueFontWeight),e.labelColor&&(c.color=e.labelColor),e.labelFontSize!==void 0?c.fontSize=Zc(e.labelFontSize):t.defaultLabelFontSize!==void 0&&(c.fontSize=Zc(t.defaultLabelFontSize)),e.labelFontWeight!==void 0?c.fontWeight=e.labelFontWeight:t.defaultLabelFontWeight!==void 0&&(c.fontWeight=t.defaultLabelFontWeight),{valueStyle:n,labelStyle:c}}function d8e(){return o.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:[o.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"1.4"}),o.jsx("path",{d:"M8 12h8",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]})}function l8e(e){const{title:t,titleColor:n,titleFontSize:c,titleFontWeight:i,icon:r,iconSize:s=18,iconColor:d,defaultValueFontSize:l,defaultValueFontWeight:h,defaultLabelFontSize:u,defaultLabelFontWeight:p,data:k,style:f,bg:g="#ffffff",width:m,gap:v,className:_,ariaLabel:x}=e,b=r?At[r]:void 0,I={background:g,width:Zc(m),...f},w={};n&&(w.color=n),c!==void 0&&(w.fontSize=Zc(c)),i!==void 0&&(w.fontWeight=i);const j={};return d&&(j.color=d),o.jsxs("section",{className:`${xt.encours} ${_??""}`,style:I,"aria-label":x??t,children:[o.jsxs("div",{className:xt.header,children:[o.jsx("div",{className:xt.iconWrap,"aria-hidden":!0,style:j,children:b?o.jsx(b,{size:typeof s=="number"?s:void 0}):o.jsx(d8e,{})}),o.jsx("div",{className:xt.title,style:w,children:t})]}),o.jsx("div",{className:`${xt.items} ${v===void 0?xt.spaceEvenly:""}`,role:"list",style:v!==void 0?{gap:`${v}px`}:{},children:k.map((M,L)=>{const{valueStyle:S,labelStyle:C}=s8e(M,{defaultValueFontSize:l,defaultValueFontWeight:h,defaultLabelFontSize:u,defaultLabelFontWeight:p});return o.jsx("div",{className:xt.item,role:"listitem",style:{...M.background?{background:M.background}:{},...M.width?{width:Zc(M.width)}:{}},children:o.jsxs("div",{className:xt.valueContainer,children:[o.jsx("div",{className:xt.value,style:S,children:M.value}),M.label&&o.jsx("div",{className:xt.label,style:C,children:M.label})]})},`${String(M.label??M.value)}-${L}`)})})]})}const h8e=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"M480-360 280-559h400z"})),hz=y.memo(h8e),u8e=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"m280-400 200-201 200 201z"})),p8e=y.memo(u8e),y8e=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 16 16",...e},ee.createElement("path",{fill:"#0087BD",d:"M3 14a.96.96 0 0 1-.7-.3.96.96 0 0 1-.3-.7V3q0-.4.3-.7T3 2h10q.4 0 .7.3t.3.7v10q0 .4-.3.7t-.7.3zm3.983-3.55q.1 0 .192-.033a.36.36 0 0 0 .158-.117l4.117-4.133q.15-.15.15-.35a.54.54 0 0 0-.15-.367.52.52 0 0 0-.358-.133.5.5 0 0 0-.359.15l-3.75 3.75L5.35 7.583a.48.48 0 0 0-.7 0q-.15.15-.15.367 0 .216.15.35l1.983 2a.48.48 0 0 0 .35.15"})),k8e=y.memo(y8e),m8e=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 16 16",...e},ee.createElement("path",{fill:"#1E2122",d:"M3 14a.96.96 0 0 1-.7-.3.96.96 0 0 1-.3-.7V3q0-.4.3-.7T3 2h10q.4 0 .7.3t.3.7v10q0 .4-.3.7t-.7.3zm0-1h10V3H3z"})),f8e=y.memo(m8e),g8e=({items:e,onSave:t,loading:n,disabled:c,saveLabel:i,savingLabel:r,buttonTitle:s,size:d=16,colors:l={bg:"#DADADA",activeBg:"var(--color-primary)",circle:"#FFFFFF",icon:"#1C1B1F",icon2:"#FFFFFF"},style:h,a11yConfig:u})=>{const[p,k]=y.useState(!1),[f,g]=y.useState(e),[m,v]=y.useState(!1);if(y.useEffect(()=>{v(!0)},[]),y.useEffect(()=>{g(e)},[e]),!m)return null;const _=(I,w)=>{w<4||g(j=>j.map(M=>M.component_key===I?{...M,visible:!M.visible}:M))},x=()=>{t(f),k(!1)},b=oe(u,s);return o.jsxs("div",{style:{position:"relative",display:"inline-block",...h},children:[o.jsxs("div",{onClick:()=>{c||k(!p)},style:{display:"flex",alignItems:"center",cursor:c?"not-allowed":"pointer",borderRadius:4,transition:"background 0.2s"},title:b,children:[o.jsx(U$,{width:d,height:d,fill:l?.icon||"currentColor",style:{transition:"color 0.2s"}}),p?o.jsx(p8e,{width:d,height:d,fill:l?.icon||"currentColor"}):o.jsx(hz,{width:d,height:d,fill:l?.icon||"currentColor"})]}),p&&o.jsxs("div",{style:{position:"absolute",top:"120%",right:0,minWidth:260,background:"#fff",borderRadius:"0.25rem",boxShadow:"0px 3px 7px 0px rgba(17, 20, 21, 0.05),0px 14px 14px 0px rgba(17, 20, 21, 0.04),0px 30px 18px 0px rgba(17, 20, 21, 0.03), 0px 54px 22px 0px rgba(17, 20, 21, 0.01),0px 85px 24px 0px rgba(17, 20, 21, 0)",zIndex:235465456,padding:"0 0 0.5rem 0"},children:[o.jsx("ul",{style:{listStyle:"none",padding:0,margin:0},children:f.map((I,w)=>o.jsxs(y.Fragment,{children:[o.jsxs("li",{onClick:()=>_(I.component_key,w),style:{display:"flex",alignItems:"center",padding:"0.5rem",cursor:w<4?"not-allowed":"pointer",transition:"background 0.2s"},onMouseEnter:j=>{w>=4&&(j.currentTarget.style.background="#F9FAFB")},onMouseLeave:j=>{w>=4&&(j.currentTarget.style.background="transparent")},children:[o.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",marginRight:8,flexShrink:0},children:I.visible?o.jsx(k8e,{width:20,height:20,fill:l?.activeBg||"var(--color-primary, #008FBB)"}):o.jsx(f8e,{width:20,height:20,fill:"#D1D5DB"})}),o.jsx("span",{style:{fontSize:"14px",color:"#111827",fontWeight:400,userSelect:"none"},children:I.label})]}),w===3&&o.jsx("div",{style:{height:1,background:"#E5E7EB",margin:"4px 0"}})]},I.component_key))}),o.jsx("div",{style:{padding:"12px 16px 0 16px",display:"flex",justifyContent:"flex-end"},children:o.jsx("button",{type:"button",onClick:x,disabled:n,style:{padding:"6px 16px",borderRadius:4,border:"none",background:"var(--color-primary, #008FBB)",color:"#fff",fontSize:"14px",fontWeight:500,cursor:n?"not-allowed":"pointer",transition:"opacity 0.2s",opacity:n?.7:1},children:n?r:i})})]})]})},v8e="_container_zhny9_1",x8e="_card_zhny9_15",_8e="_footer_zhny9_33",M8e="_noPaddingMobile_zhny9_51",Hi={container:v8e,card:x8e,footer:_8e,noPaddingMobile:M8e},L8e="_board_95t8m_1",b8e="_clickable_95t8m_21",I8e="_sideBar_95t8m_26",w8e="_boardContent_95t8m_32",C8e="_orange_95t8m_40",j8e="_red_95t8m_44",N8e="_green_95t8m_48",S8e="_grey_95t8m_52",$8e="_lightGrey_95t8m_56",q8e="_big_95t8m_61",A8e="_medium_95t8m_66",z8e="_headerRow_95t8m_70",P8e="_iconWrapper_95t8m_75",V8e="_headerTitle_95t8m_80",T8e="_valueArea_95t8m_89",D8e="_titleWhite_95t8m_99",H8e="_titleBlack_95t8m_103",B8e="_valueWhite_95t8m_108",R8e="_valueBlack_95t8m_112",F8e="_valueBlue_95t8m_116",E8e="_bars_95t8m_121",O8e="_bar_95t8m_121",U8e="_barDark_95t8m_135",W8e="_barDim_95t8m_139",G8e="_predictionSection_95t8m_143",K8e="_predictionHeader_95t8m_155",Z8e="_predictionBody_95t8m_162",X8e="_hasPrediction_95t8m_170",Fe={board:L8e,clickable:b8e,sideBar:I8e,boardContent:w8e,orange:C8e,red:j8e,green:N8e,grey:S8e,lightGrey:$8e,big:q8e,medium:A8e,headerRow:z8e,iconWrapper:P8e,headerTitle:V8e,valueArea:T8e,titleWhite:D8e,titleBlack:H8e,valueWhite:B8e,valueBlack:R8e,valueBlue:F8e,bars:E8e,bar:O8e,barDark:U8e,barDim:W8e,predictionSection:G8e,predictionHeader:K8e,predictionBody:Z8e,hasPrediction:X8e},Y8e=({endingDark:e=!1,lightCount:t=5,className:n=""})=>{const c=Math.max(0,Math.min(5,Math.floor(t)));return o.jsx("div",{className:`${Fe.bars} ${n} bars-data-board`,children:Array.from({length:5}).map((i,r)=>o.jsx("span",{className:`${Fe.bar} ${r<c?"":e?Fe.barDark:Fe.barDim}`},r))})},qt=({a11yConfig:e,iconName:t,label:n,value:c,backgroundColor:i="green",bars:r,lightBars:s=5,size:d="big",valueScale:l,width:h,height:u,className:p="",style:k,titleColor:f="white",valueColor:g="white",titleFontSize:m,titleFontWeight:v,valueFontSize:_,valueFontWeight:x,barColor:b,justifyContent:I="space-between",alignItems:w="flex-start",cardGap:j="",onClick:M,iconColor:L,titleKey:S,predictionValue:C,predictionLabel:N})=>{const $=r!=="none",q=r==="endingDark",{padding:P,...D}=k||{},V=h===void 0&&u===void 0&&i===void 0&&Object.keys(D).length===0?void 0:{...h!==void 0?{width:h}:{},...u!==void 0?{height:u}:{},...i!==void 0?{backgroundColor:i}:{},...D},z=`${Fe.board} ${Fe[d]} ${C!==void 0?Fe.hasPrediction:""} ${p}`;return o.jsxs("div",{className:z,onClick:M,style:l!==void 0?{...V,"--ds-value-scale":l}:V,children:[b&&o.jsx("div",{className:Fe.sideBar,style:{backgroundColor:b}}),o.jsxs("div",{className:Fe.boardContent,style:{padding:P,gap:j},children:[o.jsxs("div",{className:Fe.headerRow,style:{justifyContent:I,alignItems:w},children:[t&&o.jsx("div",{className:Fe.iconWrapper,style:{color:L},children:t}),o.jsx("div",{className:`${Fe.headerTitle} header-title-data-board`,children:o.jsx("span",{title:oe(e,S),"aria-label":e?.description,style:{color:f,...m?{fontSize:m}:{},...v?{fontWeight:v}:{}},children:n})}),$?o.jsx(Y8e,{endingDark:q,lightCount:s}):null]}),o.jsx("div",{className:Fe.valueArea,style:{color:g,..._?{fontSize:_}:{},...x?{fontWeight:x}:{}},children:c})]}),C!==void 0&&o.jsxs("div",{className:Fe.predictionSection,children:[o.jsx("div",{className:Fe.predictionHeader,children:N??"PRED."}),o.jsx("div",{className:Fe.predictionBody,children:C})]})]})},J8e="_wrapper_1ydle_10",Q8e="_hosp_1ydle_19",ege="_headerRow_1ydle_54",tge="_iconWrapper_1ydle_61",age="_headerTitle_1ydle_67",nge="_hospValue_1ydle_76",oge="_side_1ydle_88",cge="_mini_1ydle_100",ige="_miniLabel_1ydle_131",rge="_miniValue_1ydle_140",sge="_miniBars_1ydle_150",dge="_bars_1ydle_155",lge="_bar_1ydle_155",hge="_barDark_1ydle_169",uge="_barDim_1ydle_173",We={wrapper:J8e,hosp:Q8e,headerRow:ege,iconWrapper:tge,headerTitle:age,hospValue:nge,side:oge,mini:cge,miniLabel:ige,miniValue:rge,miniBars:sge,bars:dge,bar:lge,barDark:hge,barDim:uge},pge=({endingDark:e=!1,lightCount:t=5,className:n=""})=>{const c=Math.max(0,Math.min(5,Math.floor(t)));return o.jsx("div",{className:`${We.bars} ${n} bars-data-board`,children:Array.from({length:5}).map((i,r)=>o.jsx("span",{className:`${We.bar} ${r<c?"":e?We.barDark:We.barDim}`},r))})},uz=({left:e,right:t,className:n="",style:c,miniTilesCount:i=3})=>{const r=e.bars??"endingDark",s=r!=="none",d=r==="endingDark",l={...c,"--mini-tiles-count":i};return o.jsxs("div",{className:`${We.wrapper} ${n} data-four-boards`,style:l,children:[o.jsxs("div",{className:`${We.hosp} ${e.className||""}`,onClick:e.onClick,style:{...e.width?{width:e.width}:{},...e.height?{height:e.height}:{},...e.backgroundColor?{backgroundColor:e.backgroundColor}:{},...e.style||{}},title:oe(e.a11yConfig,e.titleKey),children:[o.jsxs("div",{className:We.headerRow,children:[o.jsxs("div",{className:`${We.iconWrapper} icon-wrapper-data-four-boards`,children:[e.iconName&&o.jsx("span",{style:{color:e.iconColor},children:e.iconName}),o.jsx("span",{className:We.headerTitle,style:{color:e.titleColor||"white",...e.titleFontSize?{fontSize:e.titleFontSize}:{},...e.titleFontWeight?{fontWeight:e.titleFontWeight}:{}},title:oe(e.a11yConfig,e.titleKey),children:e.label})]}),s?o.jsx(pge,{endingDark:d,lightCount:e.lightBars??5}):null]}),o.jsx("div",{className:We.hospValue,style:{color:e.valueColor||"white",...e.valueScale!==void 0?{"--ds-value-scale":e.valueScale}:{},...e.valueFontSize?{fontSize:e.valueFontSize}:{},...e.valueFontWeight?{fontWeight:e.valueFontWeight}:{}},children:e.value})]}),o.jsx("div",{className:We.side,children:t.map((h,u)=>o.jsxs("div",{className:`${We.mini} ${h.className||""} icon-wrapper-data-four-boards`,onClick:h.onClick,style:{...h.width?{width:h.width}:{},...h.height?{height:h.height}:{},...h.backgroundColor?{backgroundColor:h.backgroundColor}:{},...h.style||{}},title:oe(h.a11yConfig,h.titleKey),children:[o.jsxs("span",{className:We.miniLabel,style:{color:h.titleColor||"white",textAlign:"right",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",...h.titleFontSize?{fontSize:h.titleFontSize}:{},...h.titleFontWeight?{fontWeight:h.titleFontWeight}:{}},title:oe(h.a11yConfig,h.titleKey),children:[h.iconName&&o.jsx("span",{style:{color:h.iconColor},children:h.iconName}),h.label]}),o.jsx("span",{className:`${We.miniValue} mini-value-data-four-boards`,style:{color:h.valueColor||"white",textAlign:"right",...h.valueScale!==void 0?{"--ds-value-scale":h.valueScale}:{},...h.valueFontSize?{fontSize:h.valueFontSize}:{},...h.valueFontWeight?{fontWeight:h.valueFontWeight}:{}},children:h.value}),o.jsx("div",{className:We.miniBars})]},h.id??`${h.label}-${u}`))})]})},yge=({items:e,footerLabel:t,width:n,height:c,size:i=320,style:r,className:s="",backgroundColor:d,titleFontSize:l,titleFontWeight:h,valueFontSize:u,valueFontWeight:p,noPaddingLeftRight:k=!1,onItemClick:f})=>{const g={width:n??i,height:c,backgroundColor:d??"var(--ds-navy)",...r},m=e[0],v=e[1],_=e.slice(2,5);return o.jsxs("div",{style:g,className:`${Hi.container} ${k?Hi.noPaddingMobile:""} ${s}`,children:[o.jsxs("div",{className:Hi.card,children:[m?o.jsx(qt,{a11yConfig:m.a11yConfig,label:m.label,value:m.value,backgroundColor:m.backgroundColor,bars:m.bars,lightBars:m.lightBars,size:m.size??"big",valueScale:m.valueScale,width:m.width,height:m.height,titleColor:"white",valueColor:"white",titleFontSize:m.titleFontSize??l,titleFontWeight:m.titleFontWeight??h,valueFontSize:m.valueFontSize??u,valueFontWeight:m.valueFontWeight??p,titleKey:m.titleKey,onClick:x=>f?.(0,x)}):null,v&&_.length>0?o.jsx(uz,{left:{a11yConfig:v.a11yConfig,id:v.id,label:v.label,value:v.value,backgroundColor:v.backgroundColor,bars:v.bars,lightBars:v.lightBars,valueScale:v.valueScale,width:v.width,height:v.height,titleFontSize:v.titleFontSize??l,titleFontWeight:v.titleFontWeight??h,valueFontSize:v.valueFontSize??u,valueFontWeight:v.valueFontWeight??p,titleKey:v.titleKey,onClick:x=>f?.(1,x)},right:_.map((x,b)=>({a11yConfig:x.a11yConfig,id:x.id,label:x.label,value:x.value,backgroundColor:x.backgroundColor,bars:x.bars,lightBars:x.lightBars,valueScale:x.valueScale,width:x.width,height:x.height,titleFontSize:x.titleFontSize??l,titleFontWeight:x.titleFontWeight??h,valueFontSize:x.valueFontSize??u,valueFontWeight:x.valueFontWeight??p,titleKey:x.titleKey,onClick:I=>f?.(2+b,I)}))}):v&&_.length===0?o.jsx(qt,{a11yConfig:v.a11yConfig,label:v.label,value:v.value,backgroundColor:v.backgroundColor,bars:v.bars,lightBars:v.lightBars,size:v.size??"big",valueScale:v.valueScale,width:v.width,height:v.height,titleColor:"white",valueColor:"white",titleFontSize:v.titleFontSize??l,titleFontWeight:v.titleFontWeight??h,valueFontSize:v.valueFontSize??u,valueFontWeight:v.valueFontWeight??p,onClick:x=>f?.(1,x)}):null]}),t&&o.jsx("div",{className:Hi.footer,children:t})]})},kge=({x:e,y:t,width:n,payload:c,fontSize:i,fontWeight:r,stroke:s})=>o.jsx("g",{transform:`translate(${e},${t})`,children:o.jsx("foreignObject",{x:-n,y:-35,width:n,height:70,style:{overflow:"visible"},children:o.jsx("div",{style:{fontSize:i,fontWeight:r,color:s,lineHeight:"1.2",display:"flex",justifyContent:"flex-end",textAlign:"right",alignItems:"center",height:"100%",width:"100%",paddingRight:"8px",boxSizing:"border-box"},children:o.jsx("span",{style:{overflowWrap:"break-word",whiteSpace:"normal",display:"block",maxWidth:"100%"},children:c.value})})})}),mge=({data:e,height:t=360,barColor:n="#0284C7",tooltipEnabled:c=!0,backgroundColor:i="transparent",legendTextColor:r="var(--color-text)",barHeight:s=40,yAxisWidth:d=120,fontSize:l="12px",fontWeight:h="400",domain:u,xAxisLabel:p,yAxisLabel:k,margin:f={top:20,right:60,bottom:40,left:0},valueFormatter:g,tickFormatter:m,labelDataKey:v="percentage",isAnimationActive:_=!0})=>{const x=(f.top??20)+(f.bottom??40)+e.length*(s+20),b=Math.max(x,t),I=y.useMemo(()=>{if(!e||e.length===0)return d;const S=(parseFloat(l)||12)*.7,N=Math.max(...e.map($=>($.label||"").length))*S+16;return Math.min(Math.max(N,40),d)},[e,l,d]),w=L=>m?m(L):L?.toString()||"",j=L=>g&&v==="value"?g(L):L==null||L===""?"":v==="percentage"?`${L}%`:L.toString(),M=(L,S,C)=>{if(typeof L!="number")return L;const N=g?g(L):L.toString(),$=C?.payload?.percentage;return typeof $=="number"&&Number.isFinite($)&&v==="percentage"?`${N} (${$.toFixed(1)}%)`:N};return o.jsxs("div",{style:{backgroundColor:i,width:"100%",height:b,position:"relative"},children:[k&&o.jsx("div",{style:{position:"absolute",left:18,top:"50%",transform:"translate(-50%, -50%) rotate(-90deg)",whiteSpace:"nowrap",color:r,fontSize:12,fontWeight:500,pointerEvents:"none",zIndex:1},children:k}),o.jsx(a.ResponsiveContainer,{width:"100%",height:b,children:o.jsxs(a.BarChart,{data:e,layout:"vertical",margin:{...f,left:k?Math.max(f.left??0,40):f.left},children:[o.jsx(a.CartesianGrid,{opacity:.4,stroke:"#E5E7EB",vertical:!1,horizontal:!0}),o.jsx(a.XAxis,{type:"number",domain:u||[0,"auto"],axisLine:!1,tickLine:!1,fontSize:l,fontWeight:h,stroke:r,tickFormatter:w,label:p?{value:p,position:"insideBottom",offset:-10,style:{textAnchor:"middle",fill:r,fontSize:12,fontWeight:"500"}}:void 0}),o.jsx(a.YAxis,{type:"category",dataKey:"label",stroke:r,axisLine:!1,tickLine:!1,width:I,interval:0,fontSize:l,fontWeight:h,tick:o.jsx(kge,{fontSize:l,fontWeight:h,stroke:r})}),c&&o.jsx(a.Tooltip,{formatter:M,labelStyle:{color:"var(--color-text)"}}),o.jsx(a.Bar,{dataKey:"value",fill:n,radius:0,barSize:s,isAnimationActive:_,children:o.jsx(a.LabelList,{dataKey:v,position:"right",offset:10,formatter:j,fill:r,fontSize:l,fontWeight:h})})]})})]})},fge="_menu_9anig_1",gge="_menuRow_9anig_18",vge="_separator_9anig_34",xge="_rowLabel_9anig_40",_ge="_rowLeadingIcon_9anig_48",Mge="_rowIcon_9anig_55",y1={menu:fge,menuRow:gge,separator:vge,rowLabel:xge,rowLeadingIcon:_ge,rowIcon:Mge},Lge=y.forwardRef(function({isVisible:t,onClose:n,items:c,style:i,position:r,bg:s},d){const l=y.useRef(null),h=d||l;if(y.useEffect(()=>{if(!t)return;const k=f=>{h.current&&!h.current.contains(f.target)&&n?.()};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[t,n]),!t)return null;const p={...{top:r?.top,left:r?.left,right:r?.right,bottom:r?.bottom},...s&&{backgroundColor:s},...i};return o.jsx("div",{ref:h,role:"menu",className:y1.menu,style:p,children:c.map(k=>{if(k.type==="separator")return o.jsx("hr",{className:y1.separator},k.id);const f=k,g=f.color?{color:f.color}:{},m=f.closeOnClick!==!1;return o.jsxs("button",{role:"menuitem",className:y1.menuRow,style:g,onClick:()=>{f.onClick?.(),m&&n?.()},children:[o.jsxs("span",{className:y1.rowLabel,children:[f.leadingIcon&&o.jsx("span",{className:y1.rowLeadingIcon,children:f.leadingIcon}),o.jsx("span",{children:f.label})]}),f.icon&&o.jsx("span",{className:y1.rowIcon,children:f.icon})]},f.id)})})}),pz=({user:e,logoutHref:t,logoutTarget:n="_self",onLogout:c,profileHref:i,profileLinkTarget:r="_self",backgroundColor:s="transparent",textColor:d="inherit",roleColor:l="#888",avatarSize:h="32px",padding:u="10px",gap:p="12px",emailFontSize:k="14px",emailFontWeight:f=600,roleFontSize:g="12px",roleFontWeight:m,avatarColor:v="#5b8fb9",backgroundColorAvatar:_="#f1f4f5",dropdownMenuItems:x,dropdownMenuStyle:b,dropdownMenuOffset:I,statusDotColor:w,a11yConfig:j,style:M,className:L=""})=>{const{user:S}=Ct(),C=e||S,{currentTheme:N,switchTheme:$}=eb(),q=y.useRef(null),P=y.useRef(null),[D,V]=y.useState(!1),[z,A]=y.useState({}),F=y.useMemo(()=>{const G=[],ce=({variant:ye})=>ye==="sun"?o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:o.jsx("circle",{cx:"12",cy:"12",r:"4"})}):o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:o.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})});i&&(G.push({id:"profile",type:"action",label:"Mon profil",onClick:()=>{typeof window>"u"||(r==="_blank"?window.open(i,"_blank","noopener,noreferrer"):window.location.assign(i))}}),G.push({id:"sep-profile",type:"separator"}));const ue=N==="dark";return G.push({id:"theme",type:"action",label:ue?"Mode clair":"Mode sombre",icon:o.jsx(ce,{variant:ue?"sun":"moon"}),onClick:()=>{$(ue?"light":"dark")}}),(t||c)&&(G.push({id:"sep-theme",type:"separator"}),G.push({id:"logout",type:"action",label:"Se déconnecter",danger:!0,onClick:()=>{if(t){if(typeof window>"u")return;n==="_blank"?window.open(t,"_blank","noopener,noreferrer"):window.location.assign(t);return}c?.()}})),G},[N,t,n,c,i,r,$]),T=x??F,R=()=>{if(!q.current){V(G=>!G);return}if(!D){const G=q.current.getBoundingClientRect(),ce=window.innerWidth,ue=window.innerHeight,ye=200,fe=200,Z=4,ne=I?.x??0,le=I?.y??0,qe=ce-G.right>=ye+Z;A(qe?{top:G.bottom-fe+le,left:G.right+Z+ne}:{bottom:ue-G.top+le,left:G.left+ne})}V(G=>!G)};if(y.useEffect(()=>{if(!D||!q.current)return;const G=()=>{const ce=q.current.getBoundingClientRect(),ue=window.innerWidth,ye=window.innerHeight,fe=200,Z=200,ne=4,le=I?.x??0,je=I?.y??0,ve=ue-ce.right>=fe+ne;A(ve?{top:ce.bottom-Z+je,left:ce.right+ne+le}:{bottom:ye-ce.top+je,left:ce.left+le})};return window.addEventListener("resize",G),window.addEventListener("orientationchange",G),()=>{window.removeEventListener("resize",G),window.removeEventListener("orientationchange",G)}},[D,I]),y.useEffect(()=>{if(!D||!q.current||!P.current)return;const G=()=>{const ue=q.current.getBoundingClientRect(),ye=P.current.getBoundingClientRect(),fe=I?.x??0,Z=I?.y??0;A(ne=>ne.left!==void 0&&ne.top!==void 0&&ne.left>=ue.right-1?{top:ue.bottom-ye.height+Z,left:ne.left+fe}:ne)},ce=requestAnimationFrame(()=>{setTimeout(G,0)});return()=>cancelAnimationFrame(ce)},[D,I]),!C)return null;const Y=C,U=parseInt(h,10)||40,K=`${U*.375}px`,te=`${U*1.375}px`,E=`${U*.2}px`,Q=`${U*.6}px`,de=()=>{const G=parseInt(h,10)||40,ce=Math.max(8,G*.34375),ue=Math.max(2,G*.05);return o.jsxs(o.Fragment,{children:[o.jsxs("div",{style:{position:"relative",flexShrink:0,userSelect:"none"},children:[Y.image?o.jsx("img",{src:Y.image,alt:`${Y.prenom} ${Y.nom}`,style:{width:h,height:h,borderRadius:"50%",objectFit:"cover",userSelect:"none"}}):o.jsxs("div",{style:{width:h,height:h,position:"relative",borderRadius:"50%",backgroundColor:_,overflow:"hidden",userSelect:"none"},children:[o.jsx("div",{style:{width:K,height:K,borderRadius:"50%",backgroundColor:v,position:"absolute",top:E,left:"50%",transform:"translateX(-50%)",zIndex:2,userSelect:"none"}}),o.jsx("div",{style:{width:te,height:te,borderRadius:"50%",backgroundColor:v,position:"absolute",top:Q,left:"50%",transform:"translateX(-50%)",zIndex:1,userSelect:"none"}})]}),w&&o.jsx("div",{style:{position:"absolute",bottom:ue,right:ue,width:`${ce}px`,height:`${ce}px`,borderRadius:"50%",backgroundColor:w,border:"2px solid white",zIndex:10}})]}),o.jsxs("div",{style:{display:"flex",flexDirection:"column",minWidth:0,flex:1},children:[o.jsx("span",{style:{fontWeight:f,fontSize:k,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:Y.email,children:Y.email}),o.jsx("span",{style:{color:l,fontSize:g,fontWeight:m,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:Y.role,children:Y.role})]})]})};return o.jsxs(o.Fragment,{children:[o.jsx("div",{ref:q,className:`user-info ${L}`,style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:u,backgroundColor:s,gap:p,color:d,width:"100%",boxSizing:"border-box",cursor:"pointer",userSelect:"none",...M},onClick:R,title:oe(j,Y.role),role:"button",tabIndex:0,children:o.jsx("div",{style:{display:"flex",alignItems:"center",gap:p,flex:1,minWidth:0},children:o.jsx(de,{})})}),o.jsx(Lge,{ref:P,isVisible:D,onClose:()=>V(!1),items:T,style:b,position:z})]})},bge="_navItem_z7b2l_1",Ige="_label_z7b2l_14",wge="_icon_z7b2l_26",Cge="_trailing_z7b2l_32",k1={navItem:bge,label:Ige,icon:wge,trailing:Cge},TC=({label:e,labelKey:t,onClick:n,href:c,target:i,rel:r,isActive:s,icon:d,style:l,className:h="",highlightColor:u="#00aec7",color:p="#333",activeColor:k="#00aec7",highlightBackgroundColor:f="rgba(0, 0, 0, 0.05)",fontSize:g="15px",fontWeight:m="500",sidebarCollapsed:v=!1,padding:_="10px 16px",borderWidth:x="4px",iconGap:b="12px",disabled:I=!1,disabledColor:w,a11yConfig:j,trailing:M})=>{const L=()=>{I||n?.()},S=o.jsxs(o.Fragment,{children:[d&&o.jsx("span",{className:k1.icon,style:{marginRight:v?0:b},children:d}),!v&&o.jsx("span",{className:k1.label,children:e}),!v&&M&&o.jsx("span",{className:k1.trailing,children:M})]}),C=()=>{if(!s)return"transparent";const $=q=>{const P=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(q);return P?{r:parseInt(P[1],16),g:parseInt(P[2],16),b:parseInt(P[3],16)}:null};if(u.startsWith("#")){const q=$(u);if(q)return`rgba(${q.r}, ${q.g}, ${q.b}, 0.08)`}else if(u.startsWith("rgb")){const q=u.match(/\d+/g);if(q&&q.length>=3)return`rgba(${q[0]}, ${q[1]}, ${q[2]}, 0.08)`}return f},N={onClick:L,className:`${k1.navItem} ${s?k1.active:""} ${h} ${I?k1.disabled:""}`,style:{padding:_,color:s?k:I?w||"#999":p,borderLeft:s?`${x} solid ${u}`:`${x} solid transparent`,backgroundColor:C(),fontSize:g,fontWeight:m,cursor:I?"not-allowed":"pointer",textDecoration:"none",...l},"aria-disabled":I};return c&&!n&&!I?o.jsx("a",{href:c,target:i,rel:i==="_blank"?r||"noopener noreferrer":r,...N,title:oe(j,t),children:S}):o.jsx("div",{...N,role:n?"button":void 0,tabIndex:n&&!I?0:void 0,title:oe(j,t),children:S})},jge="_navbar_1hqca_1",Nge="_topSection_1hqca_9",Sge="_logoContainer_1hqca_14",$ge="_collapseToggle_1hqca_20",qge="_collapsedRail_1hqca_37",Age="_collapsedToggle_1hqca_44",zge="_collapseToggleAlert_1hqca_62",Pge="_sectionsContainer_1hqca_85",Vge="_sectionTitle_1hqca_91",Tge="_sectionItems_1hqca_96",Dge="_bottomSection_1hqca_101",Hge="_versionContainer_1hqca_120",tt={navbar:jge,topSection:Nge,logoContainer:Sge,collapseToggle:$ge,collapsedRail:qge,collapsedToggle:Age,collapseToggleAlert:zge,sectionsContainer:Pge,sectionTitle:Vge,sectionItems:Tge,bottomSection:Dge,versionContainer:Hge},Bge=({logoProps:e,logoSpacing:t,navItems:n,padding:c="24px 16px",sectionSpacing:i="32px",itemSpacing:r="4px",backgroundColor:s="#fff",highlightColor:d="#00aec7",highlightBackgroundColor:l="rgba(0, 0, 0, 0.05)",version:h,navSectionStyle:u,navLinkStyle:p,navItemPadding:k="10px 16px",navItemBorderWidth:f="4px",navItemIconGap:g="12px",navItemFontSize:m="15px",navItemFontWeight:v="500",navItemColor:_,sectionTitlePadding:x="16px",sectionTitleFontSize:b="11px",sectionTitleColor:I="#999",sectionTitleWeight:w="500",versionFontSize:j="12px",versionFontWeight:M="400",versionColor:L="#999",userInfoProps:S,style:C,className:N="",width:$="280px",showLogo:q=!0,versionA11yConfig:P,displayNone:D=!1,showCollapseToggle:V=!1,collapsed:z=!1,onCollapseToggle:A,collapseToggleLabel:F="Toggle sidebar",collapseToggleIconPath:T="/icon/dock_to_left.svg",collapseToggleAlert:R=!1})=>{const Y=Ct(),U=Y.activeNav,K=Y.setActiveNav,te=Y.user,E=S.user||te;return V&&z?o.jsx("div",{className:`${tt.collapsedRail} ${N}`,style:{display:D?"none":"flex"},children:o.jsxs("button",{type:"button",className:tt.collapsedToggle,onClick:A,"aria-label":F,children:[o.jsx(Xw,{path:T,width:18,height:18}),R&&o.jsx("span",{className:tt.collapseToggleAlert,"aria-hidden":"true",children:"!"})]})}):o.jsxs("div",{className:`${tt.navbar} ${N}`,style:{width:$,backgroundColor:s,padding:c,display:D?"none":"flex",...C},children:[o.jsxs("div",{className:tt.topSection,style:{gap:t},children:[q&&o.jsxs("div",{className:tt.logoContainer,children:[o.jsx(QL,{...e}),V&&o.jsx("button",{type:"button",className:tt.collapseToggle,onClick:A,"aria-label":F,children:o.jsx(Xw,{path:T,width:20,height:20})})]}),o.jsx("div",{className:tt.sectionsContainer,style:{gap:i},children:n.map((Q,de)=>o.jsxs("div",{className:tt.section,children:[Q.title&&o.jsx("div",{className:tt.sectionTitle,title:oe(Q.a11yConfig,Q.titleKey),style:{fontSize:b,color:I,padding:x,fontWeight:w,border:"4px solid transparent",...u},children:Q.title}),o.jsx("div",{className:tt.sectionItems,style:{gap:r},children:Q.items.map(G=>o.jsx(TC,{...G,isActive:G.isActive===null?G.isActive:U===G.id,onClick:()=>{G.onClick&&G.onClick(),G.isActive==null&&K(G.id)},highlightColor:d,activeColor:d,highlightBackgroundColor:l,padding:k,borderWidth:f,iconGap:g,fontSize:m,fontWeight:v,color:_,style:p},G.id))})]},de))})]}),o.jsxs("div",{className:tt.bottomSection,style:{gap:t},children:[o.jsx(pz,{...S,user:E}),h&&o.jsx("div",{className:tt.versionContainer,title:oe(P,h),style:{fontSize:j,fontWeight:M,color:L},children:h})]})]})},Rge="_container_4qege_1",Fge="_titleContainer_4qege_10",Ege="_title_4qege_10",Oge="_inlineToggleContainer_4qege_24",Uge="_rightContentContainer_4qege_30",H1={container:Rge,titleContainer:Fge,title:Ege,inlineToggleContainer:Oge,rightContentContainer:Uge},Wge=({className:e="",style:t,fontSize:n="20px",fontWeight:c="bold",color:i="#000",padding:r="0",margin:s,backgroundColor:d,width:l,height:h,border:u,borderRadius:p,navItems:k,allNavItems:f,formatTitle:g=_=>_,rightContent:m,inlineToggle:v})=>{const{activeNav:_}=Ct(),x=k.find(I=>I.id===_)||f?.find(I=>I.id===_),b=x?g(x.label):_||"";return b?o.jsxs("div",{className:`${H1.container} ${e}`,style:{padding:r,margin:s,backgroundColor:d,width:l,height:h,border:u,borderRadius:p,...t},children:[o.jsxs("div",{className:H1.titleContainer,children:[o.jsx("div",{className:H1.title,style:{fontSize:n,fontWeight:c,color:i},children:b}),v&&o.jsx("div",{className:H1.inlineToggleContainer,children:v})]}),m&&o.jsx("div",{className:H1.rightContentContainer,children:m})]}):null},Gge="_navItem_1hg26_1",Kge="_navItemIcon_1hg26_21",Zge="_navItemLabel_1hg26_29",Xge="_navItemCount_1hg26_36",Yge="_navItemIndicator_1hg26_49",B1={navItem:Gge,navItemIcon:Kge,navItemLabel:Zge,navItemCount:Xge,navItemIndicator:Yge},yz=({a11yConfig:e,label:t,isActive:n,onClick:c,href:i,labelKey:r,icon:s,count:d,activeColor:l="#00aec7",inactiveColor:h="#666",activeBackgroundColor:u="transparent",countBackgroundColor:p,countColor:k="#fff",countBorderRadius:f="10px",countPadding:g="2px 6px",countFontSize:m="12px",countFontWeight:v="500",indicatorColor:_="#00aec7",indicatorHeight:x="3px",padding:b="8px 4px",fontSize:I="14px",fontWeight:w="500",gap:j="8px",style:M,className:L="",disabled:S=!1,onNavigate:C})=>{const N=()=>{S||(c?.(),i&&(C?C(i):window.location.href=i))};return o.jsxs("div",{className:`${B1.navItem} ${L}`,onClick:N,title:oe(e,r),style:{gap:j,padding:b,color:n?l:h,backgroundColor:n?u:"transparent",fontSize:I,fontWeight:w,...M},children:[s&&o.jsx("span",{className:B1.navItemIcon,children:s}),o.jsx("span",{className:B1.navItemLabel,children:t}),d!==void 0&&o.jsx("span",{className:B1.navItemCount,style:{backgroundColor:p,color:k,borderRadius:f,padding:g,fontSize:m,fontWeight:v},children:d}),n&&!S&&o.jsx("div",{className:B1.navItemIndicator,style:{height:x,backgroundColor:_}})]})},Jge="_container_13hsa_1",Qge="_groupHeader_13hsa_8",e7e="_groupHeaderLeft_13hsa_18",t7e="_groupIcon_13hsa_23",a7e="_dropdown_13hsa_29",n7e="_item_13hsa_42",o7e="_itemIcon_13hsa_65",c7e="_chevron_13hsa_72",i7e="_chevronOpen_13hsa_79",Nt={container:Jge,groupHeader:Qge,groupHeaderLeft:e7e,groupIcon:t7e,dropdown:a7e,item:n7e,itemIcon:o7e,chevron:c7e,chevronOpen:i7e},r7e=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"M480-344 240-584l43-43 197 197 197-197 43 43z"})),j1=y.memo(r7e),kz=({groups:e,activeItemId:t,onItemClick:n,style:c,className:i,bgColor:r="transparent",color:s="var(--color-text)",headerBgColor:d="var(--color-indicator)",headerColor:l="var(--color-text)",headerBorderBottomColor:h="var(--color-border)",dropdownBgColor:u="var(--color-background)",itemBgColor:p="transparent",itemHoverBgColor:k="rgba(0,0,0,0.05)",itemColor:f="var(--color-text)",itemActiveColor:g="var(--color-primary)",itemActiveBorderColor:m="var(--color-primary)",itemDividerColor:v="var(--color-border)",iconColor:_="#555555",activeIconColor:x="var(--color-primary)",headerIconColor:b="var(--color-text)",chevronColor:I="var(--color-text)",iconSize:w=22,headerPadding:j="14px 20px",itemPadding:M="14px 20px",iconGap:L=14,borderRadius:S=0})=>{const[C,N]=y.useState(""),$=y.useRef(null);y.useEffect(()=>{const P=D=>{$.current&&!$.current.contains(D.target)&&N("")};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[]);const q={backgroundColor:r,color:s,borderRadius:S,...c};return o.jsx("nav",{ref:$,className:[Nt.container,i].filter(Boolean).join(" "),style:q,children:e.map(P=>{const D=C===P.id,V={backgroundColor:d,color:l,padding:j,borderBottom:`1px solid ${h}`,gap:L},z={backgroundColor:u};return o.jsxs("div",{children:[o.jsxs("div",{className:Nt.groupHeader,style:V,onClick:()=>N(D?"":P.id),role:"button","aria-expanded":D,children:[o.jsxs("div",{className:Nt.groupHeaderLeft,style:{gap:L},children:[P.icon&&o.jsx("span",{className:Nt.groupIcon,style:{color:b,width:w,height:w},children:P.icon}),o.jsx("span",{children:P.label})]}),o.jsx("span",{className:[Nt.chevron,D?Nt.chevronOpen:""].join(" "),style:{color:I},children:o.jsx(j1,{width:18,height:18})})]}),D&&o.jsx("div",{className:Nt.dropdown,style:z,children:P.items.map(A=>{const F=A.id===t,T={padding:M,gap:L,color:F?g:f,backgroundColor:p,"--item-border-width":F?"4px":"1px","--item-border-color":F?m:v};return o.jsxs("div",{className:Nt.item,style:T,onClick:()=>{n?.(P.id,A.id),N("")},role:"menuitem",onMouseEnter:R=>{F||(R.currentTarget.style.backgroundColor=k)},children:[A.icon&&o.jsx("span",{className:Nt.itemIcon,style:{color:F?x:_,width:w,height:w},children:A.icon}),o.jsx("span",{children:A.label})]},A.id)})})]},P.id)})})},s7e="_subheaderContent_1glo8_1",d7e="_navContainer_1glo8_11",l7e="_rightContent_1glo8_45",Mw={subheaderContent:s7e,navContainer:d7e,rightContent:l7e},h7e=({subNavItems:e,backgroundColor:t="transparent",padding:n="0",margin:c,width:i,height:r="auto",border:s,borderBottom:d="none",itemGap:l="24px",actionsGap:h="16px",itemPadding:u="12px 0",itemFontSize:p="14px",itemFontWeight:k="500",activeItemColor:f="#00aec7",inactiveItemColor:g="#5c6975",indicatorHeight:m="3px",showDraggable:v=!1,showLegend:_=!1,showData:x=!1,className:b="",style:I,countBackgroundColor:w,countColor:j,countBorderRadius:M,countPadding:L,countFontSize:S,countFontWeight:C,navContainerClassName:N,navContainerStyle:$,rightContentClassName:q,rightContentStyle:P,rightActions:D,activeSwitcherColor:V,inactiveSwitcherColor:z,isMobile:A=!1,onNavigate:F})=>{const{activeSubNav:T,setActiveSubNav:R,navCounts:Y,activeNav:U}=Ct();if(A){const K=e.find(E=>E.id===T)||e[0],te=[{id:"current-group",label:K?.label||U?.toUpperCase()||"MENU",icon:K?.icon,items:e.map(E=>({id:E.id,label:E.label,icon:E.icon}))}];return o.jsx("div",{className:b,style:I,children:o.jsx(kz,{groups:te,activeItemId:T,onItemClick:(E,Q)=>{const de=e.find(G=>G.id===Q);de&&(de.onClick&&de.onClick(),de.href&&(F?F(de.href):de.onNavigate?de.onNavigate(de.href):window.location.href=de.href),R(Q))},headerBgColor:t})})}return o.jsxs("div",{className:`${Mw.subheaderContent} ${b}`,style:{backgroundColor:t,padding:n,margin:c,width:i,height:r,border:s,borderBottom:d,...I},children:[o.jsx("div",{className:`${Mw.navContainer} ${N||""}`,style:{gap:l,...$},children:e.map(K=>{const te=K.count!==void 0?K.count:Y[K.id],E=T===K.id||K.isActive;return o.jsx(yz,{...K,onNavigate:F||K.onNavigate,count:te,isActive:E,onClick:()=>{K.onClick&&K.onClick(),R(K.id)},activeColor:f,inactiveColor:g,countBackgroundColor:w,countColor:j,countBorderRadius:M,countPadding:L,countFontSize:S,countFontWeight:C,indicatorColor:f,indicatorHeight:m,padding:u,fontSize:p,fontWeight:k,gap:"8px",style:K.style},K.id)})}),o.jsxs("div",{className:`${Mw.rightContent} ${q||""}`,style:{gap:h,...P},children:[v&&o.jsx(RL,{size:20,colors:{bg:V,activeBg:z,icon:"#1C1B1F",icon2:"#FFFFFF"}}),_&&o.jsx(FL,{size:20,colors:{bg:V,activeBg:z,icon:"#1C1B1F",icon2:"#FFFFFF"}}),x&&o.jsx(EL,{size:20,colors:{bg:V,activeBg:z,icon:"#1C1B1F",icon2:"#FFFFFF"}}),D]})]})},u7e=({onSwitch:e,size:t="20px",lightIconColor:n="#666",darkIconColor:c="#fff",backgroundColor:i="transparent",padding:r="8px",borderRadius:s="50%",style:d,className:l=""})=>{const[h,u]=y.useState(!1),{currentTheme:p,switchTheme:k}=eb(),f=p!="dark",g=()=>{k(f?"dark":"light"),e?.()};return y.useEffect(()=>{u(!0)},[]),!h||!p?o.jsx(o.Fragment,{}):o.jsx("div",{className:`theme-switcher ${l}`,onClick:g,style:{cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:i,padding:r,borderRadius:s,transition:"all 0.3s ease",...d},children:f?o.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}):o.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("circle",{cx:"12",cy:"12",r:"5"}),o.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),o.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),o.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),o.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),o.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),o.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),o.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),o.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})})},p7e=({initialSortBy:e=null,initialSortOrder:t="asc",onSortChange:n})=>{const[c,i]=y.useState({sortBy:e,sortOrder:t,filters:{}}),r=y.useCallback(s=>{let d="asc";c.sortBy===s&&(d=c.sortOrder==="asc"?"desc":"asc");const l={...c,sortBy:s,sortOrder:d};i(l),n(s,d)},[c,n]);return{tableState:c,handleSort:r}},y7e=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#FFF",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"M440-800v487L216-537l-56 57 320 320 320-320-56-57-224 224v-487z"})),k7e=y.memo(y7e),m7e=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#FFF",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"M440-160v-487L216-423l-56-57 320-320 320 320-56 57-224-224v487z"})),f7e=y.memo(m7e),g7e=({columns:e,sortBy:t,sortOrder:n,onSort:c,removeLabelSpan:i=!1,reorderable:r=!1,onColumnMove:s,onColumnShift:d})=>{const[l,h]=y.useState(null),[u,p]=y.useState(null),k=y.useMemo(()=>new Map(e.map((g,m)=>[String(g.key),m])),[e]),f=()=>{h(null),p(null)};return o.jsx("thead",{children:o.jsx("tr",{children:e.map((g,m)=>{const v=String(g.key),_=t===g.key,x=!!g.sortable,b=r&&g.reorderable!==!1,I=b&&l&&u===v&&l!==v?(k.get(l)??0)<m?"after":"before":null,w=[g.className||"",x?"sortable":"",b?"th-reorderable":"",l===v?"th-dragging":"",I?`th-drop-${I}`:""].filter(Boolean).join(" "),j=b?{draggable:!0,tabIndex:0,"aria-roledescription":"reorderable column",onDragStart:M=>{M.dataTransfer.effectAllowed="move",M.dataTransfer.setData("text/plain",v),h(v)},onDragOver:M=>{l&&(M.preventDefault(),M.dataTransfer.dropEffect="move",u!==v&&p(v))},onDrop:M=>{M.preventDefault();const L=l??M.dataTransfer.getData("text/plain");L&&L!==v&&s?.(L,v),f()},onDragEnd:f,onKeyDown:M=>{M.altKey&&(M.key==="ArrowLeft"||M.key==="ArrowRight")&&(M.preventDefault(),d?.(v,M.key==="ArrowLeft"?-1:1))}}:{};return o.jsx("th",{className:w,style:{width:g.width,textAlign:g.align||"left"},onClick:()=>x&&c(v),title:oe(g.a11yConfig,g.titleKey),...j,children:o.jsxs("div",{className:`th-content ${g.align?`align-${g.align}`:""}`,children:[i?g.label:o.jsx("span",{children:g.label}),x&&o.jsx("span",{className:"sort-icon-container",style:{display:"inline-flex",alignItems:"center"},children:_&&n==="asc"?o.jsx(f7e,{width:16,height:16,style:{fill:"currentColor",transition:"all 0.2s ease"}}):o.jsx(k7e,{width:16,height:16,style:{fill:"currentColor",opacity:_?1:.5,transition:"all 0.2s ease"}})})]})},v||m)})})})},v7e=({data:e,columns:t,rowKey:n,onRowClick:c,isLoading:i,text:r,rowStyle:s,rowClassName:d,renderSeparator:l})=>!e.length&&!i?o.jsx("tbody",{children:o.jsx("tr",{children:o.jsx("td",{colSpan:t.length,style:{textAlign:"center",padding:"32px"},children:o.jsx("span",{style:{color:"var(--table-text-muted)"},children:r?.noData||"Aucune donnée disponible"})})})}):o.jsx("tbody",{children:e.map((h,u)=>{const p=h[n],k=typeof p=="string"||typeof p=="number"?p:u,f=l?l(h):null;return o.jsx("tr",{onClick:()=>c&&c(h),style:{cursor:c?"pointer":"default",...s?s(h):{}},className:d?d(h,u):"",children:f?o.jsx("td",{colSpan:t.length,children:f}):t.map((g,m)=>o.jsx("td",{style:{width:g.width,textAlign:g.align||"left"},className:g.className,children:g.render?g.render(h):h[g.key]},`${String(g.key)}-${m}`))},k)})}),x7e=({state:e,onPaginationChange:t,onLoadMore:n,infiniteScroll:c,hasMore:i,text:r,isLoading:s,pageSizeOptions:d})=>{const{page:l,pageSize:h,total:u}=e,p=h===-1?u:h,k=Math.ceil(u/p)||1,f=Math.min(Math.max(1,l),k),g=u===0?0:(f-1)*p+1,m=Math.min(f*p,u),v=I=>{t({page:I})},_=y.useMemo(()=>{if(k<=6)return Array.from({length:k},($,q)=>q+1);const j=Math.max(f-1,1),M=Math.min(f+1,k),L=j>2,S=M<k-2,C=1,N=k;if(!L&&S)return[...Array.from({length:5},(P,D)=>D+1),"...",k];if(L&&!S){const q=Array.from({length:5},(P,D)=>k-5+D+1);return[C,"...",...q]}if(L&&S){const $=Array.from({length:M-j+1},(q,P)=>j+P);return[C,"...",...$,"...",N]}return[]},[f,k]),x=!!(d&&d.length>0),b=!c&&h!==-1&&k>1&&o.jsxs("div",{className:"pagination-controls",children:[o.jsx("button",{className:"pagination-btn",onClick:()=>v(1),disabled:f===1,title:r?.first||"Premier",children:"<<"}),o.jsx("button",{className:"pagination-btn",onClick:()=>v(f-1),disabled:f===1,title:r?.previous||"Précédent",children:"<"}),(_||[]).map((I,w)=>I==="..."?o.jsx("span",{style:{padding:"0 4px",color:"var(--table-text-muted)"},children:"..."},w):o.jsx("button",{className:`pagination-btn ${I===f?"active":""}`,onClick:()=>v(I),children:I},w)),o.jsx("button",{className:"pagination-btn",onClick:()=>v(f+1),disabled:f===k,title:r?.next||"Suivant",children:">"}),o.jsx("button",{className:"pagination-btn",onClick:()=>v(k),disabled:f===k,title:r?.last||"Dernier",children:">>"})]});return o.jsxs("div",{className:"table-pagination",children:[o.jsx("div",{className:"pagination-summary",children:u>0?o.jsx("span",{children:r?.itemsRange?r.itemsRange(g,m,u):o.jsxs(o.Fragment,{children:[o.jsxs("b",{children:[g,"–",m]})," ",r?.of||"sur"," ",o.jsx("b",{children:u.toLocaleString()})," ",r?.items||"éléments"]})}):o.jsx("span",{children:r?.noResults||"0 résultats"})}),x?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pagination-center",children:b}),o.jsxs("div",{className:"pagination-pagesize",children:[o.jsx("label",{htmlFor:"table-pagination-pagesize",children:r?.perPage||"Par page"}),o.jsx("select",{id:"table-pagination-pagesize",value:h,onChange:I=>t({pageSize:Number(I.target.value),page:1}),children:(d||[]).map(I=>o.jsx("option",{value:I,children:I},I))})]})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pagination-spacer"}),b]}),!c&&n&&i&&o.jsx("div",{className:"pagination-load-more",children:o.jsx("button",{className:"btn-load-more",onClick:n,disabled:s,style:{padding:"8px 16px",backgroundColor:"white",border:"1px solid #ddd",borderRadius:"6px",cursor:s?"wait":"pointer",color:"#555",fontWeight:600},children:s?r?.loading||"Chargement...":r?.loadMore||"Charger plus"})})]})},JL=e=>e.reorderable!==!1,_7e=(e,t)=>{if(!t||t.length===0)return e;const n=new Map(t.map((r,s)=>[r,s])),c=e.map((r,s)=>({col:r,index:s})).filter(({col:r})=>JL(r)).sort((r,s)=>{const d=n.get(String(r.col.key)),l=n.get(String(s.col.key));return d!==void 0&&l!==void 0?d-l:d!==void 0?-1:l!==void 0?1:r.index-s.index}).map(({col:r})=>r);let i=0;return e.map(r=>JL(r)?c[i++]:r)},mz=(e,t,n)=>{const c=e.filter(JL).map(d=>String(d.key)),i=c.indexOf(t),r=c.indexOf(n);if(i===-1||r===-1||i===r)return null;const s=[...c];return s.splice(i,1),s.splice(r,0,t),s},M7e=(e,t,n)=>{const c=e.filter(JL).map(s=>String(s.key)),i=c.indexOf(t),r=c[i+n];return i===-1||r===void 0?null:mz(e,t,r)},DC=({data:e,columns:t,isLoading:n,pagination:c,onPaginationChange:i,onSortChange:r,rowKey:s,loaderSize:d=40,stickyHeader:l=!0,height:h,minHeight:u="200px",text:p,onLoadMore:k,infiniteScroll:f,hasMore:g,tableState:m,className:v,style:_,rowStyle:x,onRowClick:b,rowClassName:I,titleKey:w,removeLabelSpan:j=!1,a11yConfig:M,renderSeparator:L,pageSizeOptions:S,columnOrder:C,onColumnOrderChange:N,columnReorderable:$=!1})=>{const q=y.useMemo(()=>({...p}),[p]),P=y.useMemo(()=>_7e(t,C),[t,C]),D=(U,K)=>{const te=mz(P,U,K);te&&N?.(te)},V=(U,K)=>{const te=M7e(P,U,K);te&&N?.(te)},z=y.useRef(null);y.useEffect(()=>{if(!f||!k||!g||n)return;const U=new IntersectionObserver(K=>{K[0].isIntersecting&&k()},{threshold:.1});return z.current&&U.observe(z.current),()=>U.disconnect()},[f,k,g,n]);const{tableState:A,handleSort:F}=p7e({initialSortBy:null,onSortChange:r}),T=(m?.sortBy!==void 0?m.sortBy:A.sortBy)??void 0,R=m?.sortOrder!==void 0?m.sortOrder:A.sortOrder,Y=U=>{const K=T,te=R;let E="asc";K===U&&(E=te==="asc"?"desc":"asc"),m?.sortBy!==void 0?r(U,E):F(U)};return o.jsxs("div",{className:`table-container ${v||""}`,style:_,title:oe(M,w),children:[o.jsxs("div",{className:"table-frame",style:{height:h??void 0,minHeight:u??void 0},children:[n&&o.jsx("div",{className:"table-loader-overlay",children:o.jsx("div",{className:"spinner",style:{width:d,height:d,borderTopColor:"var(--table-primary)"}})}),o.jsxs("div",{className:`table-wrapper ${l?"sticky-header":""}`,children:[o.jsxs("table",{className:"data-table",children:[o.jsx(g7e,{columns:P,sortBy:T,sortOrder:R,onSort:Y,removeLabelSpan:j,reorderable:$&&!!N,onColumnMove:D,onColumnShift:V}),o.jsx(v7e,{data:e,columns:P.map(U=>({...U,render:U.render?K=>U.render(K,{}):void 0})),rowKey:s,onRowClick:b,isLoading:n,text:q,rowStyle:typeof x=="function"?x:x?()=>x:void 0,rowClassName:I,renderSeparator:L})]}),f&&o.jsx("div",{ref:z,style:{height:20,margin:10}})]})]}),o.jsx(x7e,{state:c,onPaginationChange:i,text:q,onLoadMore:k,infiniteScroll:f,hasMore:g,isLoading:n,pageSizeOptions:S})]})};function fz(e,t,n,c,i,r,s){e.forEach(d=>{const l=d[n],h=d[t]??[],u=h.length>0,p=c.has(l);r.set(l,{level:i,hasChildren:u,isExpanded:p}),s.push(d),u&&p&&fz(h,t,n,c,i+1,r,s)})}const L7e=({data:e,columns:t,rowKey:n,childrenKey:c="children",treeColumnKey:i,defaultExpandedKeys:r,expandedKeys:s,onExpandedKeysChange:d,indent:l=20,showFooter:h=!0,pagination:u,onPaginationChange:p,colors:k,rowClassName:f,...g})=>{const[m,v]=y.useState(()=>new Set(r)),_=s!==void 0,x=y.useMemo(()=>_?new Set(s):m,[_,s,m]),b=C=>{const N=new Set(x);N.has(C)?N.delete(C):N.add(C),_?d?.(Array.from(N)):v(N)},I=y.useMemo(()=>{if(!u||u.pageSize===-1)return e;const C=(u.page-1)*u.pageSize;return e.slice(C,C+u.pageSize)},[e,u]),{rows:w,meta:j}=y.useMemo(()=>{const C=new Map,N=[];return fz(I,c,n,x,0,C,N),{rows:N,meta:C}},[I,c,n,x]),M=y.useMemo(()=>t.reduce((C,N)=>{const $=N.width?parseInt(N.width,10):NaN;return C+(Number.isFinite($)?$:140)},0),[t]),L=y.useMemo(()=>t.map(C=>C.key!==i?C:{...C,reorderable:!1,render:N=>{const $=N[n],{level:q,hasChildren:P,isExpanded:D}=j.get($)??{level:0,hasChildren:!1,isExpanded:!1},V=C.render?C.render(N):N[C.key];return o.jsxs("span",{className:"htl-cell",style:{paddingLeft:q*l},children:[P?o.jsx("button",{type:"button",className:"htl-toggle",onClick:z=>{z.stopPropagation(),b($)},children:o.jsx(hz,{width:16,height:16,style:{fill:"currentColor",transform:D?"rotate(0deg)":"rotate(-90deg)",transition:"transform 0.15s ease"}})}):o.jsx("span",{className:"htl-toggle-spacer"}),V]})}}),[t,i,j,l,n]),S=(C,N)=>{const $=C[n],{level:q,hasChildren:P,isExpanded:D}=j.get($)??{level:0,hasChildren:!1,isExpanded:!1},V=["htl-row"];return q===0?(V.push("htl-root"),P&&D&&V.push("htl-root-expanded")):P&&V.push("htl-group"),f&&V.push(f(C,N,q)),V.join(" ")};return o.jsx("div",{className:`htl-wrapper ${h?"":"htl-no-footer"}`,style:{"--htl-active-bg":k?.activeRowBackground,"--htl-nested-bg":k?.groupRowBackground,"--htl-toggle-color":k?.toggleIconColor,"--htl-root-color":k?.rootTextColor,"--htl-table-min-width":`${M}px`},children:o.jsx(DC,{...g,data:w,columns:L,rowKey:n,rowClassName:S,pagination:u??{page:1,pageSize:w.length||1,total:w.length},onPaginationChange:p??(()=>{})})})},b7e="_datePickerContainer_1tq0k_3",I7e="_label_1tq0k_16",w7e="_displayNode_1tq0k_23",C7e="_datePickerButton_1tq0k_30",j7e="_datePickerButtonDisabled_1tq0k_50",N7e="_datePickerButtonOpen_1tq0k_59",S7e="_datePickerLabel_1tq0k_68",$7e="_placeholder_1tq0k_79",q7e="_trailingIcons_1tq0k_83",A7e="_chevron_1tq0k_89",z7e="_clearButton_1tq0k_97",P7e="_errorMessage_1tq0k_114",V7e="_dropdown_1tq0k_119",T7e="_dropdownAdvanced_1tq0k_131",D7e="_calendarHeader_1tq0k_153",H7e="_navButton_1tq0k_162",B7e="_headerSelectors_1tq0k_181",R7e="_monthSelector_1tq0k_189",F7e="_yearSelector_1tq0k_190",E7e="_selectorButton_1tq0k_194",O7e="_selectorChevron_1tq0k_211",U7e="_selectorChevronOpen_1tq0k_216",W7e="_monthDropdown_1tq0k_220",G7e="_yearDropdown_1tq0k_221",K7e="_monthItem_1tq0k_241",Z7e="_yearItem_1tq0k_242",X7e="_monthItemSelected_1tq0k_264",Y7e="_yearItemSelected_1tq0k_265",J7e="_weekdays_1tq0k_269",Q7e="_weekday_1tq0k_269",eve="_calendarGrid_1tq0k_285",tve="_dateCell_1tq0k_294",ave="_dateCellSelected_1tq0k_317",nve="_dateCellInRange_1tq0k_321",ove="_dateCellOtherMonth_1tq0k_326",cve="_dateCellOtherMonthSelected_1tq0k_330",ive="_calendarFooter_1tq0k_334",rve="_cancelButton_1tq0k_342",sve="_applyButton_1tq0k_343",dve="_timePickerContainer_1tq0k_387",lve="_timeGroup_1tq0k_396",hve="_timeLabel_1tq0k_403",uve="_timeInputWrapper_1tq0k_409",pve="_timeInput_1tq0k_409",yve="_timeSeparator_1tq0k_437",ae={datePickerContainer:b7e,label:I7e,displayNode:w7e,datePickerButton:C7e,datePickerButtonDisabled:j7e,datePickerButtonOpen:N7e,datePickerLabel:S7e,placeholder:$7e,trailingIcons:q7e,chevron:A7e,clearButton:z7e,errorMessage:P7e,dropdown:V7e,dropdownAdvanced:T7e,calendarHeader:D7e,navButton:H7e,headerSelectors:B7e,monthSelector:R7e,yearSelector:F7e,selectorButton:E7e,selectorChevron:O7e,selectorChevronOpen:U7e,monthDropdown:W7e,yearDropdown:G7e,monthItem:K7e,yearItem:Z7e,monthItemSelected:X7e,yearItemSelected:Y7e,weekdays:J7e,weekday:Q7e,calendarGrid:eve,dateCell:tve,dateCellSelected:ave,dateCellInRange:nve,dateCellOtherMonth:ove,dateCellOtherMonthSelected:cve,calendarFooter:ive,cancelButton:rve,applyButton:sve,timePickerContainer:dve,timeGroup:lve,timeLabel:hve,timeInputWrapper:uve,timeInput:pve,timeSeparator:yve},kve=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"m336-280 144-144 144 144 56-56-144-144 144-144-56-56-144 144-144-144-56 56 144 144-144 144zM480-80q-83 0-156-31.5T197-197t-85.5-127T80-480t31.5-156T197-763t127-85.5T480-880t156 31.5T763-763t85.5 127T880-480t-31.5 156T763-197t-127 85.5T480-80m0-80q134 0 227-93t93-227-93-227-227-93-227 93-93 227 93 227 227 93m0-320"})),mve=y.memo(kve),f$=["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],fve=["Lun","Mar","Mer","Jeu","Ven","Sam","Dim"],fi=({value:e,onChange:t,label:n,placeholder:c="Sélectionner une date...",className:i="",fullWidth:r=!0,disabled:s=!1,error:d,buttonHeight:l="2.75rem",buttonPadding:h="0.75rem 1rem 0.75rem 1rem",dropdownMaxHeight:u="auto",fontSize:p="0.875rem",iconSize:k="1.5rem",labelMarginBottom:f="0.5rem",errorMarginTop:g="0.25rem",dropdownMarginTop:m="0.25rem",itemPadding:v="0.5rem 0.75rem",fontWeight:_="400",buttonBgColor:x,buttonBorderColor:b,buttonTextColor:I,dropdownBgColor:w="var(--color-card-background, #ffffff)",itemHoverColor:j,selectedItemBgColor:M,iconColor:L,errorColor:S,labelColor:C,placeholderColor:N,borderRadius:$="var(--radius-content)",borderWidth:q="0.0625rem",boxShadow:P="0 0.25rem 0.75rem rgba(0, 0, 0, 0.1)",transitionDuration:D="0.2s",transitionTiming:V="ease",dateCellSize:z="2.5rem",headerTextColor:A="var(--color-text, #6c757d)",weekdayTextColor:F="color-mix(in srgb, var(--color-text, #6c757d) 70%, transparent)",currentMonthDateColor:T="var(--color-text, #212529)",otherMonthDateColor:R="color-mix(in srgb, var(--color-text, #adb5bd) 55%, transparent)",selectedDateBgColor:Y="var(--color-primary, #00A6D9)",selectedDateTextColor:U="var(--color-text-on-primary, #ffffff)",cancelButtonBgColor:K="var(--color-switcher-background, #e9ecef)",cancelButtonTextColor:te="var(--color-text, #212529)",applyButtonBgColor:E="var(--color-primary, #00A6D9)",applyButtonTextColor:Q="var(--color-text-on-primary, #ffffff)",actionButtonPadding:de,actionButtonFontSize:G,width:ce,displayNode:ue=void 0,displayMode:ye="auto",displayNodeAriaLabel:fe,dropdownPosition:Z="auto",dropdownAlignment:ne="right",dropdownWidth:le,withBorder:je=!1,icon:qe,precision:ve="day",horizontalTimePicker:Se=!1,hoursLabel:Ke="Heures",minutesLabel:Dt="Minutes",lowerLimit:se=null,upperLimit:Ne=null,strictTimeLimits:o1=!1,outOfLimitsMessage:Ie="La date/heure choisie est hors des limites autorisées",months:pt,weekdays:pb,cancelText:yb="Annuler",applyText:kb="Appliquer",prevMonthAriaLabel:bi="Mois précédent",nextMonthAriaLabel:W="Mois suivant",calendarAriaLabel:he="Sélecteur de date",openedAriaLabel:ge="Ouvrir le sélecteur de date",selectedDateAriaLabel:Ht="Date sélectionnée: ",rotateIcon:jt=!0,clearable:nt=!1,clearAriaLabel:ta="Effacer la date",isAdvanced:Ze=!1,displayMonth:c1=null,onDisplayMonthChange:Ii,selectionMode:aa="single",rangeStart:na=null,rangeEnd:i1=null,selectedDates:oa=[],isDateInRange:ca,isDateSelected:Sz,isRangeStart:$z,isRangeEnd:qz,hideOutsideDays:Az=!1})=>{const Bt=H=>{if(H instanceof Date)return isNaN(H.getTime())?null:H;if(typeof H=="string"&&H){const X=new Date(H);return isNaN(X.getTime())?null:X}return null},[ot,Rt]=y.useState(Ze),[zz,Pz]=y.useState(!1),[P1,Vz]=y.useState({top:0,left:0,width:0}),[HC,Tz]=y.useState("bottom"),[BC,Dz]=y.useState(null),[Hz,RC]=y.useState(Bt(e)||new Date),me=c1??Hz,wi=H=>{c1?Ii?.(H):RC(H)},[V1,mb]=y.useState(Bt(e)),[Ci,fb]=y.useState(Bt(e)?.getHours()??0),[ji,gb]=y.useState(Bt(e)?.getMinutes()??0),[vb,r1]=y.useState(!1),[xb,s1]=y.useState(!1),T1=y.useRef(null),d1=y.useRef(null),FC=y.useRef(null),_b=y.useRef(null),Mb=y.useRef(null);y.useEffect(()=>{Ze&&(Rt(!0),Pz(!0))},[Ze]);const EC=y.useRef(Bt(e)?.getTime());y.useEffect(()=>{const H=Bt(e),X=H?.getTime();X!==EC.current&&(EC.current=X,mb(H),H&&(RC(H),fb(H.getHours()),gb(H.getMinutes())))},[e]);const OC=y.useCallback(()=>{if(d1.current){const H=d1.current.getBoundingClientRect();Vz({top:H.top,left:H.left,width:H.width})}},[]),UC=8,Ni=y.useCallback(()=>{if(!d1.current)return;const H=d1.current.getBoundingClientRect(),X=(parseFloat(m.replace("rem",""))||0)*16,Me=H.top-X-UC,He=window.innerHeight-H.bottom-X-UC;let Ee;if(Z!=="auto")Ee=Z;else{const Be=FC.current?.scrollHeight??0;Ee=Be<=He?"bottom":Be<=Me||Me>He?"top":"bottom"}Tz(Be=>Be===Ee?Be:Ee),Dz(Math.max(Ee==="bottom"?He:Me,0))},[Z,m]),l1=y.useCallback(()=>{OC(),Ni()},[OC,Ni]);y.useEffect(()=>(ot&&(l1(),window.addEventListener("scroll",l1,!0),window.addEventListener("resize",l1)),()=>{window.removeEventListener("scroll",l1,!0),window.removeEventListener("resize",l1)}),[ot,l1]),y.useLayoutEffect(()=>{ot&&Ni()},[ot,Ni]),y.useEffect(()=>{const H=X=>{if(!Ze){if(T1.current&&!T1.current.contains(X.target)){const Me=document.getElementById("datepicker-dropdown");if(Me&&Me.contains(X.target))return;Rt(!1),r1(!1),s1(!1)}_b.current&&!_b.current.contains(X.target)&&r1(!1),Mb.current&&!Mb.current.contains(X.target)&&s1(!1)}};return document.addEventListener("mousedown",H),()=>document.removeEventListener("mousedown",H)},[Ze]);const WC=H=>new Date(H.getFullYear(),H.getMonth()+1,0).getDate(),Bz=H=>{const X=new Date(H.getFullYear(),H.getMonth(),1).getDay();return X===0?6:X-1},Rz=()=>{const H=[],X=Bz(me),Me=WC(me),He=new Date(me.getFullYear(),me.getMonth()-1,1),Ee=WC(He);for(let Oe=X-1;Oe>=0;Oe--)H.push(new Date(me.getFullYear(),me.getMonth()-1,Ee-Oe));for(let Oe=1;Oe<=Me;Oe++)H.push(new Date(me.getFullYear(),me.getMonth(),Oe));const Be=42-H.length;for(let Oe=1;Oe<=Be;Oe++)H.push(new Date(me.getFullYear(),me.getMonth()+1,Oe));return H},Fz=(H,X)=>!H||!X?!1:H.getDate()===X.getDate()&&H.getMonth()===X.getMonth()&&H.getFullYear()===X.getFullYear(),Ez=H=>H.getMonth()===me.getMonth()&&H.getFullYear()===me.getFullYear(),Si=o1?H=>Math.floor(H.getTime()/6e4)*6e4:H=>new Date(H.getFullYear(),H.getMonth(),H.getDate()).getTime(),GC=H=>!(se&&Si(H)<Si(se)||Ne&&Si(H)>Si(Ne)),KC=V1?(()=>{const H=new Date(V1);return H.setHours(Ci),H.setMinutes(ji),H})():null,h1=KC?!GC(KC):!1,$i=new Date(me.getFullYear(),me.getMonth()-1,1),qi=new Date(me.getFullYear(),me.getMonth()+1,1),Lb=!!(se&&($i.getFullYear()<se.getFullYear()||$i.getFullYear()===se.getFullYear()&&$i.getMonth()<se.getMonth())),bb=!!(Ne&&(qi.getFullYear()>Ne.getFullYear()||qi.getFullYear()===Ne.getFullYear()&&qi.getMonth()>Ne.getMonth())),Oz=()=>{Lb||wi($i)},Uz=()=>{bb||wi(qi)},Wz=H=>{if(!s){const X=new Date(H);X.setHours(Ci),X.setMinutes(ji),mb(X),Ze&&t(X)}},Gz=()=>{if(!s){if(V1){const H=new Date(V1);if(H.setHours(Ci),H.setMinutes(ji),!GC(H))return;t(H)}else t(null);Rt(!1)}},Kz=()=>{const H=Bt(e);mb(H),H&&(fb(H.getHours()),gb(H.getMinutes())),Rt(!1)},Zz=H=>{wi(new Date(me.getFullYear(),H,1)),r1(!1)},Xz=H=>{wi(new Date(H,me.getMonth(),1)),s1(!1)},Yz=()=>{const H=me.getFullYear(),X=se?se.getFullYear():H-10,Me=Ne?Ne.getFullYear():H+10,He=[];for(let Ee=X;Ee<=Me;Ee++)He.push(Ee);return He},Jz=H=>{const X=me.getFullYear();return!!(se&&(X<se.getFullYear()||X===se.getFullYear()&&H<se.getMonth())||Ne&&(X>Ne.getFullYear()||X===Ne.getFullYear()&&H>Ne.getMonth()))},Qz=H=>{if(!s)switch(H.key){case"Enter":case" ":H.preventDefault(),Rt(!ot);break;case"Escape":Rt(!1),r1(!1),s1(!1);break;case"Tab":ot&&(Rt(!1),r1(!1),s1(!1));break}},eP={width:ce||(r?"100%":"auto"),fontSize:p,fontWeight:_},tP={height:l,padding:h,backgroundColor:x||"var(--color-card-background, #ffffff)",border:je?void 0:"none",borderColor:d?S||"#dc3545":b||"var(--color-border, #dee2e6)",color:I||"var(--color-text, #212529)",borderRadius:$,borderWidth:q,fontWeight:_,transition:`all ${D} ${V}`},aP=Se?{flexDirection:"column",borderTop:"none",borderLeft:"1px solid var(--color-border, #eee)"}:{},nP=Se?{flex:1,minWidth:0}:void 0,oP=Se?{display:"flex",flexDirection:"row",alignItems:"stretch"}:void 0,cP={backgroundColor:w||"var(--color-card-background, #ffffff)",maxHeight:u==="auto"?BC!=null?`${BC}px`:void 0:u,overflowY:"auto",borderRadius:$,borderWidth:q,boxShadow:P,transition:`opacity ${D} ${V}, transform ${D} ${V}`,position:"fixed",top:HC==="bottom"?P1.top+(d1.current?.offsetHeight||0)+parseFloat(m.replace("rem",""))*16:"auto",bottom:HC==="top"?window.innerHeight-P1.top+parseFloat(m.replace("rem",""))*16:"auto",left:ne==="left"?P1.left:"auto",right:ne==="right"?window.innerWidth-(P1.left+P1.width):"auto",width:le||"30vw",minWidth:le?void 0:0,zIndex:10001},ZC={width:k,height:k,color:L||"var(--color-text, #6c757d)","--icon-rotation":jt&&ot?"rotate(180deg)":"rotate(0deg)"},iP={color:C||"var(--color-text, #212529)",marginBottom:f,fontWeight:_},rP={color:N||"color-mix(in srgb, var(--color-text, #6c757d) 60%, transparent)"},sP={color:S||"#dc3545",marginTop:g},dP=Rz(),yt=Bt(e),XC=H=>`${H.getDate().toString().padStart(2,"0")}/${(H.getMonth()+1).toString().padStart(2,"0")}/${H.getFullYear()}`,YC=yt?ve==="minutes"?`${XC(yt)} ${yt.getHours().toString().padStart(2,"0")}:${yt.getMinutes().toString().padStart(2,"0")}`:XC(yt):"",JC=!!ue&&(ye==="icon"||ye==="auto"&&!yt),lP=nt&&!JC&&!!yt&&!s,hP={width:"0.875rem",height:"0.875rem",color:L||"var(--color-text, #6c757d)"},uP=fe||(yt?`${Ht}${YC}`:ge);return o.jsxs("div",{className:`${ae.datePickerContainer} ${i}`,ref:T1,style:eP,"data-fullwidth":r,"data-disabled":s,"data-error":!!d,children:[n&&o.jsx("label",{className:ae.label,style:iP,children:n}),!Ze&&o.jsxs("button",{ref:d1,type:"button",onClick:()=>!s&&Rt(!ot),onKeyDown:Qz,className:`
|
|
8336
|
+
`,i3e="_mpRoot_31595_1",r3e="_mpHeader_31595_22",s3e="_mpTitle_31595_31",d3e="_mpList_31595_35",l3e="_mpVertical_31595_41",h3e="_mpHorizontal_31595_46",u3e="_mpItem_31595_55",p3e="_mpClickable_31595_95",y3e="_mpLeft_31595_117",k3e="_mpIcon_31595_125",m3e="_mpMeta_31595_140",f3e="_mpLabel_31595_145",g3e="_mpDate_31595_154",v3e="_mpRight_31595_160",x3e="_mpValue_31595_168",_3e="_mpHint_31595_176",M3e="_mpBadge_31595_180",L3e="_mpBadgeTop_31595_199",b3e="_mpBadgeSub_31595_206",I3e="_mpBadgeSmall_31595_213",w3e="_mpPill_31595_229",C3e="_mpRounded_31595_232",j3e="_mpCompact_31595_236",N3e="_compactItemWrapper_31595_252",S3e="_mpSummaryRoot_31595_265",$3e="_mpSummaryInner_31595_269",q3e="_mpSummaryFlex_31595_284",A3e="_mpSummaryCardWrapperHorizontal_31595_292",z3e="_mpSummaryCardWrapper_31595_292",P3e="_mpSummaryCardHorizontal_31595_303",V3e="_mpSummaryCard_31595_292",T3e="_mpSummaryValue_31595_321",D3e="_mpSummaryLabel_31595_327",H3e="_mpSummaryBadge_31595_338",B3e="_mpSummaryBadgeSub_31595_357",R3e="_mpEmpty_31595_365",F3e="_mpSummaryVertical_31595_372",E3e="_mpIconSquare_31595_380",re={mpRoot:i3e,mpHeader:r3e,mpTitle:s3e,mpList:d3e,mpVertical:l3e,mpHorizontal:h3e,mpItem:u3e,mpClickable:p3e,mpLeft:y3e,mpIcon:k3e,mpMeta:m3e,mpLabel:f3e,mpDate:g3e,mpRight:v3e,mpValue:x3e,mpHint:_3e,mpBadge:M3e,mpBadgeTop:L3e,mpBadgeSub:b3e,mpBadgeSmall:I3e,mpPill:w3e,mpRounded:C3e,mpCompact:j3e,compactItemWrapper:N3e,mpSummaryRoot:S3e,mpSummaryInner:$3e,mpSummaryFlex:q3e,mpSummaryCardWrapperHorizontal:A3e,mpSummaryCardWrapper:z3e,mpSummaryCardHorizontal:P3e,mpSummaryCard:V3e,mpSummaryValue:T3e,mpSummaryLabel:D3e,mpSummaryBadge:H3e,mpSummaryBadgeSub:B3e,mpEmpty:R3e,mpSummaryVertical:F3e,mpIconSquare:E3e},Xt=(e,t=1)=>{if(!e||typeof e!="string")return`rgba(124, 58, 237, ${t})`;const n=e.trim();if(n.toLowerCase()==="transparent")return"rgba(0,0,0,0)";if(/^rgba?\(/i.test(n))return/^rgba\(/i.test(n)?n.replace(/rgba\(([^)]+),\s*([0-9.]+)\s*\)$/,(d,l)=>`rgba(${l.split(",").map(u=>u.trim()).slice(0,3).join(", ")}, ${t})`):n;let c=n.replace("#","").toLowerCase();if(c.length===3&&(c=c.split("").map(d=>d+d).join("")),!/^[0-9a-f]{6}$/i.test(c))return`rgba(124, 58, 237, ${t})`;const i=parseInt(c.slice(0,2),16),r=parseInt(c.slice(2,4),16),s=parseInt(c.slice(4,6),16);return`rgba(${i}, ${r}, ${s}, ${t})`},O3e=({item:e,shape:t,onItemClick:n,color:c,renderItem:i})=>{const r=y.useCallback(()=>{n?.(e)},[n,e]),s=[re.mpItem,t==="pill"?re.mpPill:re.mpRounded,n?re.mpClickable:""].filter(Boolean).join(" ");if(i)return o.jsx("div",{className:s,role:n?"button":"group",tabIndex:n?0:-1,onClick:r,onKeyDown:k=>{n&&(k.key==="Enter"||k.key===" ")&&(n(e),k.preventDefault())},"aria-label":n?`Voir les détails de ${e.label}`:void 0,children:i(e)});const d=n?"button":"div",l=n?{onClick:r,className:s,type:"button","aria-label":`Voir les détails de ${e.label}`}:{className:s,role:"group"},h=e.iconComponent,u=e.iconSquareBg,p=e.iconColor;return o.jsxs(d,{...l,children:[o.jsxs("div",{className:re.mpLeft,children:[h?o.jsx("div",{className:re.mpIconSquare,style:{background:u??Xt(p??c??"#7c3aed",1),border:`1px solid ${Xt(p??c??"#7c3aed",.18)}`,color:p??"#ffffff"},children:y.createElement(h,{size:20,color:p??"#fff",strokeWidth:1.8})}):e.icon?o.jsx("div",{className:re.mpIcon,children:e.icon}):null,o.jsxs("div",{className:re.mpMeta,children:[o.jsx("div",{className:re.mpLabel,children:e.label}),e.subLabel&&o.jsx("div",{className:re.mpDate,children:e.subLabel}),e.date&&o.jsx("div",{className:re.mpDate,children:e.date})]})]}),o.jsxs("div",{className:re.mpRight,children:[o.jsx("div",{className:re.mpValue,style:{color:e.valueColor??c??void 0},children:e.value}),e.badge?o.jsxs("div",{className:[re.mpBadge,e.badge.small?re.mpBadgeSmall:""].join(" "),style:{backgroundColor:e.badge.bg??Xt(e.badge.color||c||"#7c3aed",.12),borderColor:e.badge.bg?"transparent":Xt(e.badge.color||c||"#7c3aed",.18),color:e.badge.color??e.badge.textColor??"#0f172a",fontWeight:600},children:[o.jsx("div",{className:re.mpBadgeTop,children:e.badge.text}),e.badge.subText&&o.jsx("div",{className:re.mpBadgeSub,children:e.badge.subText})]}):e.hint?o.jsx("div",{className:re.mpHint,children:e.hint}):null]})]})},U3e=y.memo(O3e),l$=({title:e,right:t})=>!e&&!t?null:o.jsxs("div",{className:re.mpHeader,children:[o.jsx("div",{className:re.mpTitle,children:e}),o.jsx("div",{children:t})]}),h$=(e,t=1)=>{try{return Xt(e,t)}catch{return`rgba(124, 58, 237, ${t})`}},W3e=({item:e})=>o.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:14,borderRadius:12,minHeight:88,boxSizing:"border-box",background:e.bgColor??"transparent",border:`1px solid ${e.borderColor??"transparent"}`,boxShadow:"0 4px 10px rgba(15,23,42,0.03)"},children:[o.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[o.jsx("div",{style:{fontSize:13,fontWeight:700,color:"#475569"},children:e.label}),o.jsx("div",{style:{fontSize:26,fontWeight:900,color:"#0f172a",lineHeight:1},children:e.value})]}),o.jsx("div",{title:String(e.label),style:{display:"flex",alignItems:"center",justifyContent:"center",width:48,height:48,borderRadius:10,background:e.iconSquareBg??h$("#7c3aed",.12),border:`1px solid ${h$(e.iconColor??"#7c3aed",.12)}`,boxShadow:"none"},children:e.iconComponent?y.createElement(e.iconComponent,{size:18,color:e.iconColor??"#7c3aed",strokeWidth:1.6}):null})]}),G3e=({item:e,bg:t,onClick:n,width:c,height:i,extraStyle:r})=>o.jsxs("div",{className:re.mpSummaryCard,style:{background:t,width:c??void 0,height:i??void 0,...r??{}},role:n?"button":"group",tabIndex:n?0:-1,onClick:()=>n?.(e),children:[o.jsx("div",{className:re.mpSummaryLabel,children:e.label}),o.jsx("div",{className:re.mpSummaryValue,style:{color:e.valueColor??"#2a24deff"},children:e.value}),e.badge&&o.jsxs("div",{className:re.mpSummaryBadge,children:[e.badge.text,e.badge.subText&&o.jsx("div",{className:re.mpSummaryBadgeSub,children:e.badge.subText})]})]}),u$=(e,t=1)=>{try{return Xt(e,t)}catch{return`rgba(124, 58, 237, ${t})`}},p$=e=>o.jsxs("div",{style:{display:"grid",gridTemplateRows:"auto 1fr",width:"100%",gap:8,alignItems:"center",boxSizing:"border-box",minWidth:0},children:[o.jsxs("div",{style:{display:"flex",justifyContent:"space-between-left",alignItems:"baseline",gap:10,width:"100%"},children:[o.jsx("div",{style:{fontWeight:700,fontSize:"clamp(14px, 1.2vw, 16px)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:e.label}),e.subLabel?o.jsx("div",{style:{fontSize:"clamp(13px, 1.1vw, 15px)",fontWeight:600,whiteSpace:"nowrap"},children:e.subLabel}):null]}),o.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:15,width:"100%"},children:[o.jsx("div",{style:{fontWeight:900,fontSize:"clamp(16px, 1.6vw, 20px)",color:e.valueColor,lineHeight:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.value}),e.badge?o.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"8px 12px",borderRadius:10,backgroundColor:e.badge.bg?e.badge.bg:u$("#7c3aed",.08),border:`1px solid ${e.badge.bg?e.badge.bg:u$("#7c3aed",.12)}`,color:e.badge.textColor||"#0f172a",fontWeight:700,fontSize:"clamp(12px, 1.2vw, 14px)",width:"120px",height:"52px",textAlign:"center",boxSizing:"border-box",overflow:"hidden",boxShadow:"0 2px 4px rgba(0,0,0,0.1)",lineHeight:1.2,flexShrink:0},children:[o.jsx("div",{style:{fontSize:14,fontWeight:800,lineHeight:1.2,letterSpacing:"0.02em",width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.badge.text}),e.badge.subText?o.jsx("div",{style:{fontSize:13,marginTop:4,fontWeight:700,letterSpacing:"0.01em",width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.badge.subText}):null]}):null]})]}),y$=(e,t)=>{try{if(typeof e=="function"){const n=e(t);if(n!==void 0)return n}}catch{}try{return y.createElement(e,{item:t})}catch(n){return console.warn("chooseDefaultRender: impossible de rendre CompactRenderer",n),null}},K3e=e=>{switch(e){case"image":return t=>y.createElement(W3e,{item:t});case"pertinence":return t=>y.createElement(G3e,{item:t});case"alternateHorizontal":return t=>y$(p$,t);case"compact":return t=>y$(p$,t);case"summary":return;case"default":default:return}},rz=({item:e,orientation:t,bg:n,border:c,valueColor:i,onClick:r,width:s,height:d,extraStyle:l})=>{const u=t==="horizontal"?re.mpSummaryCardHorizontal:re.mpSummaryCard;return o.jsxs("div",{className:u,style:{background:n,border:`1px solid ${c}`,width:s??void 0,height:d??void 0,...l??{}},role:r?"button":"group",tabIndex:r?0:-1,onClick:()=>r?.(e),children:[e.badge&&o.jsxs("div",{className:re.mpSummaryBadge,children:[e.badge.text,e.badge.subText&&o.jsx("div",{className:re.mpSummaryBadgeSub,children:e.badge.subText})]}),o.jsx("div",{className:re.mpSummaryValue,style:{color:i},children:e.value}),o.jsx("div",{className:re.mpSummaryLabel,children:e.label})]})},Z3e=["transparent","transparent","transparent","transparent"],X3e=["transparent","transparent","transparent","transparent"],Y3e=["#059669","#2563eb","#b45309","#7c3aed"],J3e=(e,t=1)=>{try{return Xt(e,t)}catch{return`rgba(124, 58, 237, ${t})`}},sz=e=>{const{items:t=[],layout:n="vertical",orientation:c="auto",shape:i="rounded",color:r="#7c3aed",compact:s=!1,title:d,onItemClick:l,className:h="",loading:u=!1,emptyMessage:p="Aucun élément",renderItem:k,summary:f=!1,summaryBgColors:g=Z3e,summaryBorderColors:m=X3e,summaryValueColors:v=Y3e,preset:_,background:x}=e,{itemsContainerStyle:b,itemsContainerClassName:I,summaryGridColumns:w,compactItemWidth:j,compactItemHeight:L,compactItemStyle:M,summaryCardWidth:S,summaryCardHeight:C,summaryCardStyle:N}=e,q=n==="vertical",A={"--mp-accent":r,"--mp-accent-soft":J3e(r,.08),"--mp-bg-primary":x},P=[re.mpRoot,q?re.mpVertical:re.mpHorizontal,s?re.mpCompact:"",f?re.mpSummaryRoot:"",c!=="auto"?c==="vertical"?re.mpOrientationVertical:re.mpOrientationHorizontal:"",h].filter(Boolean).join(" "),T=y.useMemo(()=>k||(K3e(_)??void 0),[k,_]);if(f){const H=c==="horizontal"?re.mpSummaryFlex:re.mpSummaryVertical,$={...(w?{display:"grid",gridTemplateColumns:`repeat(${w}, 1fr)`,gap:18,alignItems:"stretch",width:"100%"}:void 0)??{},...b??{}};return o.jsxs("div",{className:P,style:A,"aria-busy":u,children:[d&&o.jsx(l$,{title:d}),o.jsx("div",{className:re.mpSummaryInner,children:o.jsx("div",{className:`${H} ${I??""}`,style:$,children:t.length===0?o.jsx("div",{className:re.mpEmpty,children:p}):t.map((R,V)=>{const F=R.bgColor??g[V%g.length],X=R.borderColor??m[V%m.length],U=R.valueColor??v[V%v.length];return T?o.jsx("div",{className:c==="horizontal"?re.mpSummaryCardWrapperHorizontal:re.mpSummaryCardWrapper,style:{width:S??void 0,height:C??void 0,...N??{}},children:T(R,V)},R.id):o.jsx(rz,{item:R,orientation:c==="horizontal"?"horizontal":"vertical",bg:F,border:X,valueColor:U,onClick:l,width:S??void 0,height:C??void 0,extraStyle:N},R.id)})})})]})}return o.jsxs("div",{className:P,style:A,"aria-busy":u,children:[d&&o.jsx(l$,{title:d}),o.jsx("div",{className:re.mpList,style:b,children:u?o.jsx("div",{className:re.mpEmpty,children:"Chargement…"}):t.length===0?o.jsx("div",{className:re.mpEmpty,children:p}):t.map(H=>{const z=s?{width:j??void 0,height:L??void 0,boxSizing:"border-box",...M??{}}:void 0;return o.jsx("div",{className:s?re.compactItemWrapper:void 0,style:z,children:o.jsx(U3e,{item:H,shape:i,onItemClick:l,color:r,renderItem:T?$=>T($,t.indexOf($)):void 0})},H.id)})})]})};y.memo(sz);const Q3e=({a11yConfig:e,width:t,height:n,colors:c={text:"#0b1220",background:"#fff",contentBackground:"#efeff0"},titles:i={},placeholder:r="Loading Chart",style:s,className:d="",children:l,padding:h="1rem",variant:u="default",showBorder:p=!1,titleKey:k,leftTitleKey:f})=>{const g=t?typeof t=="number"?`${t}px`:t:void 0,m=n?typeof n=="number"?`${n}px`:n:void 0,v=r&&typeof r=="object"&&!y.isValidElement(r)&&("text"in r||"subtext"in r||"icon"in r||"background"in r||"iconSize"in r),_=v?r:void 0,x=_?.icon?At[_.icon]:void 0,b=28,I=_?.iconSize??b,w=["chart-container",`variant-${u}`,p?"with-border":"",d].filter(Boolean).join(" "),j=c.contentBackground??void 0,L=typeof h=="number"?`${h}px`:h;return o.jsxs("div",{className:w,style:{width:g,height:m,color:c.text,background:c.background,display:"flex",flexDirection:"column",boxSizing:"border-box",padding:L,...s},children:[o.jsxs("div",{className:"chart-header",children:[o.jsxs("div",{title:oe(e,f||k),className:"chart-title-left",style:{display:"flex",alignItems:"center",gap:"8px"},children:[i.left,i.leftSubtitle&&o.jsx("div",{className:"chart-subtitle-left",children:i.leftSubtitle})]}),o.jsx("div",{className:"chart-title-right",children:i.right})]}),o.jsx("div",{className:"chart-content",style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",background:j},children:l||(v&&_?o.jsxs("div",{className:"placeholder",role:"status","aria-live":"polite",children:[x&&o.jsx("div",{className:"placeholder-icon",style:{width:I,height:I},children:o.jsx(x,{color:_.iconColor??"currentColor",size:typeof I=="number"?I:parseInt(String(I),10)||b})}),_.text&&o.jsx("div",{className:"placeholder-text",children:_.text}),_.subtext&&o.jsx("div",{className:"placeholder-subtext",children:_.subtext})]}):o.jsx("div",{className:"placeholder-node",role:"status","aria-live":"polite",children:r}))})]})},VC=({id:e,size:t="100%",background:n,icon:c,text:i,subtext:r,onClose:s,onClick:d,style:l,className:h="",colorTextPrimary:u,colorTextSub:p,model:k,fontSize:f,fontWeight:g,a11yConfig:m,titleKey:v})=>{const _=c||k?.icon,x=typeof _=="string",b=x?At[_]:null,I=x?null:_;return o.jsxs("div",{id:e,className:`alert ${h}`,style:{width:typeof t=="number"?`${t}px`:t,background:n||k?.background,pointerEvents:"auto",cursor:d?"pointer":"default",...l},role:"alert",onClick:d,title:oe(m,v),children:[b&&o.jsx(b,{className:"alert-icon",size:20,color:u||k?.colorTextPrimary}),I!=null&&o.jsx("span",{className:"alert-icon",style:{display:"flex",alignItems:"center",color:u||k?.colorTextPrimary,flexShrink:0},children:I}),o.jsxs("div",{className:"alert-content",children:[o.jsx("span",{className:"alert-text",style:{color:u||k?.colorTextPrimary,fontSize:f,fontWeight:g},children:i}),r&&o.jsx("span",{className:"alert-subtext",style:{color:p||k?.colorTextSub},children:r})]}),s&&o.jsx("button",{className:"alert-close",onClick:s,"aria-label":"Fermer",children:"✕"})]})},dz=y.createContext(null),efe=(e="alert")=>`${e}_${Math.random().toString(36).slice(2,9)}`,tfe=({children:e,defaultDuration:t=4e3,maxAlerts:n,containerClassName:c,containerStyle:i})=>{const[r,s]=y.useState([]),d=y.useRef(new Map),l=y.useRef(null),[h,u]=y.useState(null),[p,k]=y.useState(void 0),f=y.useRef(n),g=y.useRef(r),m=y.useRef(t);y.useEffect(()=>{g.current=r},[r]),y.useEffect(()=>{m.current=t},[t]),y.useEffect(()=>{const A=d.current;return()=>{A.forEach(P=>window.clearTimeout(P)),A.clear()}},[]);const v=y.useCallback(A=>{const P=d.current.get(A);P&&(window.clearTimeout(P),d.current.delete(A))},[]),_=y.useCallback(A=>{v(A),s(P=>P.filter(T=>T.id!==A))},[v]),x=y.useCallback((A,P)=>{const T=P===void 0||P===0?m.current:P;if(T===-1)return;const H=window.setTimeout(()=>{_(A)},T);d.current.set(A,H)},[_]),b=y.useCallback(A=>{const P=efe(),T={...A,id:P,createdAt:Date.now()};return s(H=>{const z=[T,...H],$=f.current;return typeof $=="number"&&$>=0&&z.length>$?(z.slice($).forEach(V=>v(V.id)),z.slice(0,$)):z}),x(P,A.duration),P},[v,x]),I=y.useCallback((A,P)=>{s(T=>T.map(H=>H.id===A?{...H,...P}:H))},[]),w=y.useCallback(()=>{d.current.forEach(A=>window.clearTimeout(A)),d.current.clear(),s([])},[]),j=y.useCallback((A,P)=>{A&&window.getComputedStyle(A).position==="static"&&(A.style.position="relative"),u(T=>T===A?T:A),k(P)},[]),L=y.useCallback(()=>g.current.slice(),[]),M=y.useMemo(()=>({showAlert:b,dismissAlert:_,updateAlert:I,clearAlerts:w,setContainerRef:j,getAlertsSnapshot:L}),[b,_,I,w,j,L]),S=h,C=S?!!p:!1,N=o.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,display:"flex",flexDirection:"column",alignItems:"center",pointerEvents:"none",zIndex:10001,padding:"8px 4px",...C?{top:"auto",left:"auto",right:"auto",alignItems:"flex-end"}:null,...S?p:null},children:o.jsx(Ahe,{mode:"popLayout",children:r.map(A=>o.jsx($C.div,{initial:{opacity:0,y:-10,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.98},transition:{type:"spring",damping:25,stiffness:300},style:{width:C?"auto":"100%",pointerEvents:"auto",boxShadow:"0 6px 20px rgba(0, 0, 0, 0.12)",borderRadius:"8px",marginBottom:"6px",backgroundColor:A.background||A.model?.background||"var(--color-background, #fff)",border:"1px solid rgba(0, 0, 0, 0.08)",overflow:"hidden"},children:o.jsx(VC,{id:A.id,text:A.text,subtext:A.subtext,icon:A.icon,background:"transparent",colorTextPrimary:A.colorTextPrimary,colorTextSub:A.colorTextSub,model:A.model,onClose:()=>_(A.id),size:C?"auto":"100%",style:{boxShadow:"none",...C?{whiteSpace:"nowrap"}:null}})},A.id))})}),q=o.jsx("div",{ref:A=>{h||(l.current=A)},className:c,style:{width:"100%",position:"relative",...i},"aria-live":"polite",children:N});return o.jsxs(dz.Provider,{value:M,children:[S?gi.createPortal(N,S):q,e]})},afe=()=>{const e=y.useContext(dz);if(!e)throw new Error("useAlerts must be used inside an AlertsProvider");return e},nfe={default:{background:"#f3f4f6",icon:"Info",colorTextPrimary:"#111827",colorTextSub:"#4b5563"},info:{background:"#dbeafe",icon:"Info",colorTextPrimary:"#1e40af",colorTextSub:"#3b82f6"},success:{background:"#dcfce7",icon:"CheckCircle2",colorTextPrimary:"#166534",colorTextSub:"#22c55e"},warning:{background:"#fef3c7",icon:"AlertTriangle",colorTextPrimary:"#92400e",colorTextSub:"#f59e0b"},error:{background:"#fee2e2",icon:"XCircle",colorTextPrimary:"#991b1b",colorTextSub:"#ef4444"}},ofe="_container_18zbo_1",cfe="_icon_18zbo_9",ife="_selectWrapper_18zbo_23",_w={container:ofe,icon:cfe,selectWrapper:ife},rfe=({options:e,defaultValue:t,onChange:n,label:c})=>{const[i,r]=y.useState(t||e[0]?.value||""),s=d=>{r(d),n?.(d)};return o.jsxs("div",{className:_w.container,children:[o.jsxs("div",{className:_w.icon,children:[o.jsx(K1,{size:18}),o.jsx("p",{children:c})]}),o.jsx("div",{className:_w.selectWrapper,children:o.jsx(qC,{field:{name:"periode",label:"",options:e},value:i,onChange:s,onBlur:()=>{}})})]})},sfe=250,dfe=y.forwardRef(({title:e,subtitle:t,size:n="420px",beforeOpen:c,afterOpen:i,beforeClose:r,afterClose:s,style:d,className:l="",children:h,closeOnOverlayClick:u=!0,showCloseButton:p=!0},k)=>{const[f,g]=y.useState(!1),[m,v]=y.useState(!1),_=y.useRef(null),x=y.useRef(null),b=y.useRef(null),I=y.useRef(null);y.useEffect(()=>{const L=_.current;if(!L)return;const M=L.parentElement;return M?(window.getComputedStyle(M).position==="static"&&(M.setAttribute("data-scp-prev-position",M.style.position??""),M.style.position="relative",M.setAttribute("data-scp-position-changed","true")),()=>{if(M.getAttribute("data-scp-position-changed")==="true"){const C=M.getAttribute("data-scp-prev-position")??"";M.style.position=C,M.removeAttribute("data-scp-position-changed"),M.removeAttribute("data-scp-prev-position")}}):void 0},[]),y.useImperativeHandle(k,()=>({open:()=>{f||(c?.(),v(!1),g(!0))},close:()=>{f&&(r?.(),v(!1),g(!1))},toggle:()=>{f?(r?.(),v(!1),g(!1)):(c?.(),v(!1),g(!0))}}),[f,c,r]),y.useEffect(()=>{const L=x.current;I.current&&(window.clearTimeout(I.current),I.current=null);const M=S=>{if(S.target===L&&!(S.propertyName!=="transform"&&S.propertyName!=="opacity"))if(f){v(!0),i?.();try{L?.focus()}catch{}}else{s?.();try{b.current?.focus()}catch{}}};return L&&(L.addEventListener("transitionend",M),I.current=window.setTimeout(()=>{if(f){v(!0),i?.();try{L?.focus()}catch{}}else{s?.();try{b.current?.focus()}catch{}}},sfe+60)),f&&(b.current=document.activeElement),()=>{L&&L.removeEventListener("transitionend",M),I.current&&(window.clearTimeout(I.current),I.current=null)}},[f,i,s]),y.useEffect(()=>{const L=M=>{M.key==="Escape"&&f&&(r?.(),v(!1),g(!1))};return window.addEventListener("keydown",L),()=>window.removeEventListener("keydown",L)},[f,r]);const w=()=>{u&&(r?.(),v(!1),g(!1))},j=typeof n=="number"?`${n}px`:n;return o.jsxs("div",{ref:_,className:`scp-inline-root ${f?"open":""}`,"aria-hidden":!f,children:[o.jsx("div",{className:`scp-overlay ${f?"visible":""}`,onMouseDown:w,role:"presentation"}),o.jsxs("aside",{className:`scp-panel ${f?"in":"out"} ${m?"interactive":""} ${l}`,style:{width:j,...d},ref:x,tabIndex:-1,role:"dialog","aria-label":e,children:[o.jsxs("div",{className:"scp-header",children:[o.jsxs("div",{children:[o.jsx("h3",{className:"scp-title",children:e}),t&&o.jsx("div",{className:"scp-subtitle",children:t})]}),p&&o.jsx("button",{className:"scp-close","aria-label":"Close",onClick:()=>{r?.(),v(!1),g(!1)},children:o.jsx(ht,{size:18})})]}),o.jsx("div",{className:"scp-body",children:h})]})]})});function lfe(e){const t=y.useRef("");y.useEffect(()=>{if(e){t.current=document.body.style.overflow,document.body.style.overflow="hidden";return}document.body.style.overflow=t.current||""},[e])}const hfe="_container_1pfsp_1",ufe="_title_1pfsp_8",k$={container:hfe,title:ufe},pfe=({title:e,fontSize:t,barColor:n,className:c="",style:i={}})=>{const r={...i,"--title-font-size":t,"--bar-color":n};return o.jsx("div",{className:`${k$.container} ${c}`,style:r,children:o.jsx("h2",{className:k$.title,children:e})})},yfe="_modalOverlay_1878x_1",kfe="_modalContainer_1878x_16",mfe="_modalTitle_1878x_29",ffe="_modalInput_1878x_38",gfe="_modalTextarea_1878x_39",vfe="_modalActions_1878x_70",xfe="_cancelBtn_1878x_77",_fe="_saveBtn_1878x_99",Mfe="_inputError_1878x_141",Lfe="_inlineAlert_1878x_146",kt={modalOverlay:yfe,modalContainer:kfe,modalTitle:mfe,modalInput:ffe,modalTextarea:gfe,modalActions:vfe,cancelBtn:xfe,saveBtn:_fe,inputError:Mfe,inlineAlert:Lfe},n1=({isOpen:e,onClose:t,onSave:n,title:c="Ajouter un élément",fields:i,initialValues:r={},errorMessage:s="",disableSave:d,onFieldChange:l,confirmText:h="Valider",cancelText:u="Annuler"})=>{const[p,k]=y.useState({}),f=y.useRef(null),[g,m]=y.useState(!1),[v,_]=y.useState(!1),x=y.useRef(null);if(y.useEffect(()=>{if(!e)return;const L={};for(const M of i)L[M.name]=Object.prototype.hasOwnProperty.call(r,M.name)?r[M.name]:"";return k(L),requestAnimationFrame(()=>{f.current?.focus();const M=f.current;if(M&&typeof M.selectionStart=="number"){const S=String(M.value??"").length;M.setSelectionRange(S,S)}}),()=>{x.current&&(window.clearTimeout(x.current),x.current=null)}},[e]),y.useEffect(()=>{s&&e?(_(!0),x.current&&(window.clearTimeout(x.current),x.current=null),x.current=window.setTimeout(()=>{_(!1),x.current=null},3e3)):(_(!1),x.current&&(window.clearTimeout(x.current),x.current=null))},[s,e]),!e)return null;const b=(L,M)=>{k(S=>({...S,[L]:M})),l&&l(L,M)},I=async()=>{if(!Object.values(p).some(L=>L===""||L===void 0))try{m(!0);const L=await n(p);if(typeof L=="string"&&L==="duplicate-same"){m(!1);return}k({}),m(!1),t()}catch(L){console.error("AddItemModal onSave error:",L),m(!1),t()}},w=L=>{L.target===L.currentTarget&&t()},j=L=>L.stopPropagation();return o.jsx("div",{className:kt.modalOverlay,onMouseDown:w,role:"dialog","aria-modal":"true",children:o.jsxs("div",{className:kt.modalContainer,onMouseDown:j,onClick:j,children:[o.jsx("h2",{className:kt.modalTitle,children:c}),i.map((L,M)=>{const S=p[L.name]??"",C=M===0&&!!s,N={name:L.name,placeholder:L.placeholder||L.label,value:String(S),onChange:q=>b(L.name,q.target.value),className:L.type==="textarea"?`${kt.modalTextarea} ${C?kt.inputError:""}`:`${kt.modalInput} ${C?kt.inputError:""}`,tabIndex:0,disabled:g};return M===0&&(N.ref=q=>{f.current=q}),o.jsxs("div",{style:{marginBottom:8},children:[L.type==="textarea"?o.jsx("textarea",{rows:L.rows||4,...N}):o.jsx("input",{type:L.type||"text",...N}),M===0&&v&&s&&o.jsx("div",{style:{marginTop:8},children:o.jsx(VC,{text:s,background:"#fff5f5",colorTextPrimary:"#ef4444",onClose:()=>_(!1),className:kt.inlineAlert})})]},L.name)}),o.jsxs("div",{className:kt.modalActions,children:[o.jsx("button",{className:kt.cancelBtn,onClick:t,type:"button",disabled:g,children:u}),o.jsx("button",{className:kt.saveBtn,onClick:I,type:"button",disabled:g||!!d,children:g?"En cours...":h})]})]})})},bfe=({title:e,keyCount:t,onAddKey:n,a11yConfig:c})=>{const[i,r]=y.useState(!1),s=d=>{const l=d.key;n&&l&&n(l)};return o.jsxs("div",{className:"header-container",children:[o.jsxs("div",{className:"header-info",children:[o.jsx("h1",{title:oe(c,e),children:e}),o.jsxs("p",{children:[t," clés"]})]}),o.jsxs("button",{onClick:()=>r(!0),className:"add-key-button",children:[o.jsx(Jc,{className:"add-key-icon"}),"Clé"]}),o.jsx(n1,{isOpen:i,title:"Ajouter une clé",onClose:()=>r(!1),onSave:s,fields:[{name:"key",label:"Nouvelle clé",placeholder:"Entrer une nouvelle clé"}]})]})},Ife=({modules:e,onEdit:t,onDelete:n,onAddModule:c,onSelectModule:i,addModalFields:r,addModalTitle:s})=>{const[d,l]=y.useState(!1),[h,u]=y.useState(null),[p,k]=y.useState(null),[f,g]=y.useState(!1),m=()=>l(!0),v=()=>l(!1),_=L=>{if(c){const M=L.code?.trim()||L.id?.trim(),S=L.title?.trim(),C=M||S||String(Date.now()),N=S||M||`Module ${C}`;c({id:C,title:N,subtitle:"",translations:{}})}v()},x=(L,M)=>{L.stopPropagation(),u(M)},b=()=>u(null),I=L=>{if(!h){b();return}const M={...h,title:L.title||h.title,subtitle:""};t&&t(M),b()},w=(L,M)=>{L.stopPropagation(),n&&n(M)},j=L=>{k(L.id),i&&i(L)};return f?o.jsx("div",{className:"module-sidebar collapsed",children:o.jsx(I1,{size:20,className:"menu-toggle",onClick:()=>g(!1)})}):o.jsxs("div",{className:"module-sidebar",children:[o.jsxs("div",{className:"sidebar-header",children:[o.jsxs("span",{className:"header-text",children:["Modules (",e.length,")"]}),o.jsxs("div",{className:"header-actions",children:[o.jsx(Yc,{size:18,className:"header-folder",onClick:m}),o.jsx(I1,{size:18,className:"header-menu",onClick:()=>g(!0)})]})]}),o.jsx("hr",{className:"divider"}),o.jsx("div",{className:"module-list",children:e.map(L=>{const M=Object.keys(L.translations||{}).length,S=M>0||L.id===p;return o.jsxs("div",{className:`module-item ${L.id===p?"selected":""}`,onClick:()=>j(L),role:"button",tabIndex:0,onKeyDown:C=>{C.key==="Enter"&&j(L)},children:[o.jsxs("div",{className:"module-left",children:[o.jsx(ei,{size:16,className:"item-folder"}),o.jsxs("div",{className:"module-info",children:[o.jsxs("div",{className:"module-title",children:[L.title,S&&o.jsxs("span",{className:"count",children:[" ",M," "]})]}),L.subtitle?o.jsx("div",{className:"module-subtitle",children:L.subtitle}):null]})]}),o.jsxs("div",{className:"module-actions",children:[t&&o.jsx(w1,{onClick:C=>x(C,L),color:"#777",size:16}),n&&o.jsx(It,{onClick:C=>w(C,L.id),color:"#777",size:16})]})]},L.id)})}),o.jsx(n1,{isOpen:d,onClose:v,onSave:_,title:s||"Ajouter un module",fields:r&&r.length?r.map(L=>({name:L.name,label:L.label,type:L.type,placeholder:L.placeholder,rows:L.rows})):[{name:"title",label:"Titre",placeholder:"Titre du module"}]}),h&&o.jsx(n1,{isOpen:!!h,onClose:b,onSave:I,title:"Éditer le module",initialValues:{title:h.title},fields:[{name:"title",label:"Titre",placeholder:"Titre du module"}]})]})},lz=({placeholder:e="Rechercher une clé ou traduction...",value:t="",onChange:n,iconPosition:c="left",iconColor:i="#9ca3af",a11yConfig:r,className:s})=>o.jsxs("div",{className:`search-container icon-${c}`,title:oe(r,e),children:[o.jsx("div",{className:"search-icon-wrapper",children:o.jsx(ni,{className:"search-icon",color:i})}),o.jsx("input",{type:"text",placeholder:e,value:t,onChange:d=>n?.(d.target.value),className:`search-input ${s}`})]}),wfe=({keyName:e,translations:t,availableLanguages:n,onDeleteKey:c,onEditKey:i,onEditTranslation:r,onDeleteTranslation:s,onAddTranslation:d,draggable:l=!1,checkDuplicateLocal:h})=>{const[u,p]=y.useState(!1),[k,f]=y.useState(""),[g,m]=y.useState(null),[v,_]=y.useState(""),[x,b]=y.useState(""),[I,w]=y.useState(!1),[j,L]=y.useState(!1),[M,S]=y.useState(null),[C,N]=y.useState(!1),q=t.map(V=>V.language),A=n.filter(V=>!q.includes(V.code)),P=()=>{k&&x.trim()&&(d?.(e,k,x.trim()),f(""),b(""),p(!1))},T=(V,F)=>{m(V),_(F)},H=V=>{r?.(e,V,v),m(null),_("")},z=()=>{m(null),_("")},$=async V=>{const F=V.name?.trim();if(F){if(S(null),N(!1),F===e||!i)return w(!1),"ok";try{const X=await i(e,F);if(typeof X=="string"&&X==="ok")w(!1),S(null);else{if(typeof X=="string"&&X==="duplicate-same")return S("Une clé existe déjà dans ce module."),N(!0),"duplicate-same";if(typeof X=="string"&&X==="duplicate-other")return w(!1),S(null),"duplicate-other";w(!1)}}catch(X){console.error("Erreur handleRenameSave:",X),S("Erreur lors du renommage.")}}},R=(V,F)=>{if(V!=="name")return;const X=F.trim();S(null),N(!1),X&&typeof h=="function"&&(h(X,e)?(S("Une clé existe déjà dans ce module."),N(!0)):(S(null),N(!1)))};return o.jsxs("div",{className:`translation-key ${j?"collapsed":"expanded"} ${l?"draggable":""}`,children:[o.jsxs("div",{className:"card-header",children:[o.jsxs("div",{className:"header-left",children:[o.jsx("button",{className:"collapse-button",onClick:()=>L(!j),title:j?"Déplier":"Replier",children:j?o.jsx(X1,{className:"collapse-icon"}):o.jsx(Yt,{className:"collapse-icon"})}),o.jsx("h3",{className:"card-title",title:e,children:e})]}),o.jsxs("div",{className:"header-actions",children:[o.jsx("button",{className:"action-button",onClick:V=>{V.stopPropagation(),w(!0)},title:"Renommer la clé",children:o.jsx(St,{className:"action-icon"})}),o.jsx("button",{onClick:V=>{V.stopPropagation(),c?.(e)},className:"action-button delete",title:"Supprimer la clé",children:o.jsx(It,{className:"action-icon"})})]})]}),o.jsx("div",{className:`translations-container ${j?"":"expanded"}`,children:!l&&o.jsxs(o.Fragment,{children:[t.map(V=>o.jsxs("div",{className:"translation-row",children:[o.jsx("div",{className:"language-code",children:V.language}),o.jsx("div",{className:"translation-content",children:g===V.language?o.jsxs(o.Fragment,{children:[o.jsx("input",{type:"text",value:v,onChange:F=>_(F.target.value),className:"edit-input",autoFocus:!0,onKeyDown:F=>{F.key==="Enter"&&H(V.language),F.key==="Escape"&&z()}}),o.jsx("button",{onClick:()=>H(V.language),className:"save-button",disabled:!v.trim(),children:"Enregistrer"}),o.jsx("button",{onClick:z,className:"cancel-button",children:o.jsx(ht,{className:"action-icon"})})]}):o.jsxs(o.Fragment,{children:[o.jsx("span",{className:"translation-text",title:V.value,children:V.value}),o.jsx("button",{onClick:()=>T(V.language,V.value),className:"edit-button",title:"Éditer la traduction",children:o.jsx(St,{className:"action-icon"})}),o.jsx("button",{onClick:()=>s?.(e,V.language),className:"delete-translation-button",title:"Supprimer la traduction",children:o.jsx(ht,{className:"action-icon"})})]})})]},V.language)),u?o.jsxs("div",{className:"add-language-row",children:[o.jsx("div",{className:"language-code",children:"+"}),o.jsxs("div",{className:"add-language-content",children:[o.jsx("div",{className:"language-select-container",children:o.jsxs("select",{value:k,onChange:V=>f(V.target.value),className:"language-select",children:[o.jsx("option",{value:"",children:"Sélectionnez la langue"}),A.map(V=>o.jsxs("option",{value:V.code,children:[V.name," (",V.code,")"]},V.code))]})}),k&&o.jsx("input",{type:"text",value:x,onChange:V=>b(V.target.value),placeholder:"Entrez la traduction...",className:"translation-input",onKeyDown:V=>{V.key==="Enter"&&P(),V.key==="Escape"&&(p(!1),f(""),b(""))}}),o.jsx("button",{onClick:P,disabled:!k||!x.trim(),className:"save-button",children:"Ajouter"}),o.jsx("button",{onClick:()=>{p(!1),f(""),b("")},className:"cancel-button",children:o.jsx(ht,{className:"action-icon"})})]})]}):o.jsxs("button",{onClick:()=>p(!0),className:"show-add-button",disabled:A.length===0,children:[o.jsx("span",{className:"plus-icon",children:"+"}),"Ajouter une langue"]})]})}),l&&o.jsxs("div",{className:"drag-overlay",children:[o.jsx(a.Move,{size:24,strokeWidth:1.5}),o.jsx("span",{children:"Glisser pour réorganiser"})]}),o.jsx(n1,{isOpen:I,onClose:()=>{w(!1),S(null),N(!1)},onSave:$,onFieldChange:R,title:"Renommer la clé",initialValues:{name:e},fields:[{name:"name",label:"Nom de la clé",placeholder:"Nom de la clé"}],errorMessage:M||"",disableSave:C})]})},Cfe="_wrapper_1wvht_1",jfe="_leftGroup_1wvht_12",Nfe="_filterButton_1wvht_21",Sfe="_open_1wvht_42",$fe="_filterIcon_1wvht_42",qfe="_infoText_1wvht_58",Afe="_pickerContainer_1wvht_66",zfe="_srOnly_1wvht_79",Pfe="_pickerLabel_1wvht_91",Vfe="_datetime_1wvht_98",Tfe="_rightGroup_1wvht_107",Dfe="_searchInputWrap_1wvht_116",Hfe="_searchInput_1wvht_116",Bfe="_searchIcon_1wvht_152",Ye={wrapper:Cfe,leftGroup:jfe,filterButton:Nfe,open:Sfe,filterIcon:$fe,infoText:qfe,pickerContainer:Afe,srOnly:zfe,pickerLabel:Pfe,datetime:Vfe,rightGroup:Tfe,searchInputWrap:Dfe,searchInput:Hfe,searchIcon:Bfe};function Rfe({onDateChange:e,onSearch:t,initialDate:n}){const[c,i]=y.useState(!1),[r,s]=y.useState(n??""),d=y.useRef(null);y.useEffect(()=>{function p(k){const f=k.target;d.current&&f&&!d.current.contains(f)&&i(!1)}return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[]),y.useEffect(()=>{n&&s(n)},[n]);const l=()=>i(p=>!p),h=p=>{const k=p.target.value;s(k),e?.(k)},u=p=>{t?.(p.target.value)};return o.jsxs("div",{className:Ye.wrapper,ref:d,children:[o.jsxs("div",{className:Ye.leftGroup,children:[o.jsxs("button",{type:"button",className:`${Ye.filterButton} ${c?Ye.open:""}`,onClick:l,"aria-expanded":c,"aria-haspopup":"dialog","aria-controls":"entry-datetime",children:[o.jsx("span",{children:"Entry time"}),o.jsx("svg",{className:Ye.filterIcon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"14",height:"14","aria-hidden":!0,children:o.jsx("path",{fill:"currentColor",d:"M10 18h4v-2h-4v2zm-7-8v2h18V10H3zm3-6v2h12V4H6z"})})]}),o.jsx("div",{className:Ye.infoText,children:"Confidence interval: step ± 15' / exit ± 30'"}),c&&o.jsxs("div",{className:Ye.pickerContainer,role:"dialog","aria-label":"Choisir la date et l’heure",children:[o.jsx("label",{className:Ye.pickerLabel,htmlFor:"entry-datetime",children:o.jsx("span",{className:Ye.srOnly,children:"Choisir la date et l’heure"})}),o.jsx("input",{id:"entry-datetime",className:Ye.datetime,type:"datetime-local",value:r,onChange:h,"aria-label":"Date et heure d’entrée"})]})]}),o.jsx("div",{className:Ye.rightGroup,children:o.jsxs("div",{className:Ye.searchInputWrap,children:[o.jsx("input",{className:Ye.searchInput,placeholder:"Search...",onChange:u,"aria-label":"Search"}),o.jsx("svg",{className:Ye.searchIcon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"16",height:"16","aria-hidden":!0,children:o.jsx("path",{fill:"currentColor",d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16a6.471 6.471 0 004.23-1.57l.27.28v.79L20 20.49 21.49 19l-5.99-5zM10 15.5A5.5 5.5 0 1115.5 10 5.5 5.5 0 0110 15.5z"})})]})})]})}const Ffe=({className:e="",style:t={},title:n,titleClassName:c="",titleStyle:i,data:r,lineClasses:s={},renderCell:d,bg:l,titleBg:h,titleColor:u,itemBg:p,emptyContent:k,colGap:f="1rem"})=>{const g=Array.isArray(r)?r:[],m=g.length===0,v=g.every(I=>typeof I=="string"),_=g.some(I=>Array.isArray(I)),x=(I,w,j)=>d?d(I,w,j):o.jsx("span",{className:"slb-cell-text",children:I}),b=f?{"--col-gap":f}:void 0;return m?o.jsxs("div",{className:`slb-root ${e}`,style:{...t,background:l??void 0},children:[n&&o.jsx("div",{className:`slb-title ${c}`,style:{...i,background:h??void 0,color:u??void 0},children:n}),o.jsx("div",{className:"slb-empty",children:k??null})]}):v&&!_?o.jsxs("div",{className:`slb-root ${e}`,style:{...t,background:l??void 0},children:[n&&o.jsx("div",{className:`slb-title ${c}`,style:{background:h??void 0,color:u??void 0},children:n}),o.jsx("ul",{className:"slb-list",children:g.map((I,w)=>o.jsx("li",{className:`slb-item ${s[w]||""}`,style:{background:p??void 0},children:x(I,w,0)},w))})]}):o.jsxs("div",{className:`slb-root ${e}`,style:{...t,background:l??void 0},children:[n&&o.jsx("div",{className:`slb-title ${c}`,style:{background:h??void 0,color:u??void 0},children:n}),o.jsx("div",{className:"slb-grid",style:b,children:g.map((I,w)=>{const j=s[w]||"";if(Array.isArray(I)){const[L,M]=I;return o.jsxs("div",{className:`slb-row ${j}`,style:{background:p??void 0},children:[o.jsx("div",{className:"slb-grid-left",children:x(L,w,0)}),o.jsx("div",{className:"slb-grid-right",children:x(M,w,1)})]},w)}return o.jsxs("div",{className:`slb-row ${j}`,style:{background:p??void 0},children:[o.jsx("div",{className:"slb-grid-left",children:x(I,w,0)}),o.jsx("div",{className:"slb-grid-right slb-empty-cell","aria-hidden":"true"})]},w)})})]})},Efe=({className:e="",style:t={},title:n,titleColor:c,data:i=[],badgeColor:r="#0ea5e9",badgeColors:s={},badgePadding:d="8px 16px",badgeWidth:l,itemBg:h,lineClasses:u={},colGap:p="1rem"})=>{const k=i.some(g=>Array.isArray(g)),f=p?{"--col-gap":p}:void 0;return o.jsxs("div",{className:`clb-root ${e}`,style:{...t},children:[n&&o.jsx("div",{className:"clb-title",style:c?{color:c}:void 0,children:n}),o.jsx("div",{className:"clb-grid",style:f,children:i.map((g,m)=>{const v=u[m]||"";if(Array.isArray(g)){const[_,x]=g,b=s[m]||r;return o.jsxs("div",{className:`clb-row ${v}`,style:{background:h??void 0},children:[o.jsx("div",{className:"clb-badge-col",children:o.jsx("div",{className:"counter-badge",style:{background:b,padding:d,width:l,minWidth:l},children:_})}),o.jsx("div",{className:"clb-text",children:x})]},m)}return k?o.jsxs("div",{className:`clb-row ${v}`,style:{background:h??void 0},children:[o.jsx("div",{className:"clb-badge-col clb-empty-badge"}),o.jsx("div",{className:"clb-text",children:g})]},m):o.jsx("div",{className:`clb-fullrow ${v}`,style:{background:h??void 0},children:o.jsx("span",{children:g})},m)})})]})},Ofe=({className:e="",style:t={},title:n,items:c=[],titleBg:i,titleColor:r,itemBg:s,lineClasses:d={},renderTrendIcon:l,colGap:h="1rem"})=>{const u=h?{"--col-gap":h}:void 0;return o.jsxs("div",{className:`tlb-root ${e}`,style:{...t,background:s??void 0},children:[n&&o.jsx("div",{className:"tlb-title",style:{background:i??void 0,color:r??void 0},children:n}),o.jsx("div",{className:"tlb-grid",style:u,children:c.map((p,k)=>{const f=d[k]||"";return o.jsxs("div",{className:`tlb-row ${f}`,style:{background:s??void 0},children:[o.jsx("div",{className:"tlb-label",children:p.label}),o.jsxs("div",{className:"tlb-value-group",children:[o.jsx("div",{className:"tlb-icon-col",children:l?l(p):p.icon??null}),o.jsxs("div",{className:"tlb-value-wrap",children:[o.jsx("div",{className:"tlb-value",children:p.value}),typeof p.delta<"u"&&o.jsx("div",{className:`tlb-delta ${p.delta>0?"positive":p.delta<0?"negative":"neutral"}`,children:p.deltaLabel??String(p.delta)})]})]})]},k)})})]})},Ufe=({className:e="",style:t={},children:n,gap:c="1rem"})=>o.jsx("div",{className:`frc-root ${e}`,style:{...t,"--frc-gap":c},children:y.Children.map(n,i=>o.jsx("div",{className:"frc-item",children:i}))}),Wfe=({className:e="",style:t={},children:n,gap:c="1rem",background:i="#D9EEF5"})=>o.jsx("div",{className:`lcc-root ${e}`,style:{background:i,...t,"--lcc-gap":c},children:y.Children.map(n,r=>o.jsx("div",{className:"lcc-cell",children:r}))}),Gfe="_overlay_3x4or_2",Kfe="_fadeIn_3x4or_1",Zfe="_popup_3x4or_17",Xfe="_slideUp_3x4or_1",Yfe="_header_3x4or_28",Jfe="_body_3x4or_40",Qfe="_footer_3x4or_51",e6e="_cancelButton_3x4or_59",t6e="_confirmButton_3x4or_77",a6e="_warning_3x4or_97",n6e="_danger_3x4or_106",o6e="_info_3x4or_115",Ft={overlay:Gfe,fadeIn:Kfe,popup:Zfe,slideUp:Xfe,header:Yfe,body:Jfe,footer:Qfe,cancelButton:e6e,confirmButton:t6e,warning:a6e,danger:n6e,info:o6e},c6e=({isOpen:e,title:t,message:n,onConfirm:c,onCancel:i,confirmText:r="Confirmer",cancelText:s="Annuler",type:d="warning"})=>{if(!e)return null;const l=u=>{u.target===u.currentTarget&&i()},h=u=>{u.key==="Escape"&&i(),u.key==="Enter"&&u.ctrlKey&&c()};return o.jsx("div",{className:Ft.overlay,onClick:l,onKeyDown:h,role:"dialog","aria-labelledby":"confirmation-title","aria-describedby":"confirmation-message",children:o.jsxs("div",{className:`${Ft.popup} ${Ft[d]}`,children:[o.jsx("div",{className:Ft.header,children:o.jsx("h3",{id:"confirmation-title",children:t})}),o.jsx("div",{className:Ft.body,children:o.jsx("p",{id:"confirmation-message",children:n})}),o.jsxs("div",{className:Ft.footer,children:[o.jsx("button",{className:Ft.cancelButton,onClick:i,type:"button",children:s}),o.jsx("button",{className:Ft.confirmButton,onClick:c,type:"button",autoFocus:!0,children:r})]})]})})},i6e=()=>{const[e,t]=y.useState({isOpen:!1,title:"",message:"",onConfirm:null}),n=y.useCallback((r,s,d)=>{t({isOpen:!0,title:r,message:s,onConfirm:d})},[]),c=y.useCallback(()=>{t(r=>({...r,isOpen:!1,onConfirm:null}))},[]),i=y.useCallback(()=>{e.onConfirm?.(),c()},[e.onConfirm,c]);return{isOpen:e.isOpen,title:e.title,message:e.message,showConfirmation:n,hideConfirmation:c,handleConfirm:i}},r6e="_container_8ts1k_1",s6e="_selectButton_8ts1k_7",d6e="_disabled_8ts1k_23",l6e="_error_8ts1k_40",h6e="_outline_8ts1k_53",u6e="_filled_8ts1k_59",p6e="_sm_8ts1k_68",y6e="_md_8ts1k_74",k6e="_lg_8ts1k_80",m6e="_buttonContent_8ts1k_86",f6e="_label_8ts1k_94",g6e="_placeholder_8ts1k_104",v6e="_iconsContainer_8ts1k_109",x6e="_loadingSpinner_8ts1k_116",_6e="_spin_8ts1k_1",M6e="_arrowIcon_8ts1k_135",L6e="_arrowIconOpen_8ts1k_143",b6e="_dropdown_8ts1k_148",I6e="_dropdownIn_8ts1k_1",w6e="_searchContainer_8ts1k_176",C6e="_searchInputWrapper_8ts1k_182",j6e="_searchIcon_8ts1k_188",N6e="_searchInput_8ts1k_182",S6e="_optionsList_8ts1k_213",$6e="_noResults_8ts1k_238",q6e="_option_8ts1k_213",A6e="_optionHighlighted_8ts1k_268",z6e="_optionSelected_8ts1k_273",P6e="_optionDisabled_8ts1k_284",V6e="_optionLabel_8ts1k_290",T6e="_optionLabelWrap_8ts1k_298",D6e="_checkIcon_8ts1k_304",H6e="_widthFull_8ts1k_312",B6e="_width64_8ts1k_316",R6e="_width80_8ts1k_320",F6e="_width96_8ts1k_324",ke={container:r6e,selectButton:s6e,disabled:d6e,error:l6e,default:"_default_8ts1k_49",outline:h6e,filled:u6e,sm:p6e,md:y6e,lg:k6e,buttonContent:m6e,label:f6e,placeholder:g6e,iconsContainer:v6e,loadingSpinner:x6e,spin:_6e,arrowIcon:M6e,arrowIconOpen:L6e,dropdown:b6e,dropdownIn:I6e,searchContainer:w6e,searchInputWrapper:C6e,searchIcon:j6e,searchInput:N6e,optionsList:S6e,noResults:$6e,option:q6e,optionHighlighted:A6e,optionSelected:z6e,optionDisabled:P6e,optionLabel:V6e,optionLabelWrap:T6e,checkIcon:D6e,widthFull:H6e,width64:B6e,width80:R6e,width96:F6e},Di=4,m$=8,E6e=({id:e,ariaLabelledBy:t,options:n,value:c,onChange:i,placeholder:r="Sélectionner une option...",disabled:s=!1,loading:d=!1,error:l=!1,className:h="",size:u="md",variant:p="default",width:k="w-full",dropdownPosition:f="auto",truncateLabels:g=!0})=>{const[m,v]=y.useState(!1),[_,x]=y.useState(""),[b,I]=y.useState(0),[w,j]=y.useState({top:0,left:0,width:0}),[L,M]=y.useState("bottom"),[S,C]=y.useState(null),N=y.useRef(null),q=y.useRef(null),A=y.useRef(null),P=y.useMemo(()=>_?n.filter(E=>E.label.toLowerCase().includes(_.toLowerCase())):n,[n,_]),T=n.find(E=>E.value===c),H=y.useCallback(()=>{if(N.current){const E=N.current.getBoundingClientRect();j({top:E.top,left:E.left,width:E.width})}},[]),z=y.useCallback(()=>{if(!N.current)return;const E=N.current.getBoundingClientRect(),Q=E.top-Di-m$,de=window.innerHeight-E.bottom-Di-m$;let G;f!=="auto"?G=f:G=(q.current?.scrollHeight??0)<=de?"bottom":Q>de?"top":"bottom",M(ce=>ce===G?ce:G),C(Math.max(G==="bottom"?de:Q,0))},[f]),$=y.useCallback(()=>{H(),z()},[H,z]);y.useEffect(()=>(m&&($(),window.addEventListener("scroll",$,!0),window.addEventListener("resize",$)),()=>{window.removeEventListener("scroll",$,!0),window.removeEventListener("resize",$)}),[m,$]),y.useLayoutEffect(()=>{m&&z()},[m,z]),y.useEffect(()=>{const E=Q=>{N.current&&!N.current.contains(Q.target)&&q.current&&!q.current.contains(Q.target)&&(v(!1),x(""))};return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[]),y.useEffect(()=>{I(0)},[P]);const R=E=>{E.disabled||(i?.(E.value,E),v(!1),x(""))},V=E=>{x(E.target.value),m||v(!0)},F=E=>{if(!m){(E.key==="ArrowDown"||E.key==="Enter")&&v(!0);return}switch(E.key){case"ArrowDown":E.preventDefault(),I(Q=>Q<P.length-1?Q+1:Q);break;case"ArrowUp":E.preventDefault(),I(Q=>Q>0?Q-1:Q);break;case"Enter":E.preventDefault(),P[b]&&R(P[b]);break;case"Escape":v(!1),x("");break}},X=()=>[ke.selectButton,ke[u],ke[p],s?ke.disabled:"",l?ke.error:"",h].filter(Boolean).join(" "),U=()=>{switch(k){case"w-64":return ke.width64;case"w-80":return ke.width80;case"w-96":return ke.width96;default:return ke.widthFull}},K=(E,Q)=>[ke.option,Q===b?ke.optionHighlighted:"",E.value===c?ke.optionSelected:"",E.disabled?ke.optionDisabled:""].filter(Boolean).join(" "),te={position:"fixed",top:L==="bottom"?w.top+(N.current?.offsetHeight||0)+Di:"auto",bottom:L==="top"?window.innerHeight-w.top+Di:"auto",left:w.left,width:w.width,maxHeight:S!=null?`${S}px`:void 0,zIndex:9999};return o.jsxs("div",{className:`${ke.container} ${U()}`,children:[o.jsx("button",{id:e,ref:N,className:X(),onClick:()=>!s&&v(!m),onKeyDown:F,tabIndex:s?-1:0,type:"button","aria-haspopup":"listbox","aria-expanded":m,"aria-labelledby":t,disabled:s,children:o.jsxs("div",{className:ke.buttonContent,children:[o.jsx("span",{className:`${ke.label} ${T?"":ke.placeholder}`,children:T?T.label:r}),o.jsxs("div",{className:ke.iconsContainer,children:[d&&o.jsx("div",{className:ke.loadingSpinner}),o.jsx("svg",{className:`${ke.arrowIcon} ${m?ke.arrowIconOpen:""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})]})}),m&&gi.createPortal(o.jsxs("div",{className:`${ke.dropdown} ${U()}`,style:te,ref:q,children:[o.jsx("div",{className:ke.searchContainer,children:o.jsxs("div",{className:ke.searchInputWrapper,children:[o.jsx("svg",{className:ke.searchIcon,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:o.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),o.jsx("input",{ref:A,type:"text",value:_,onChange:V,placeholder:"Rechercher...",className:ke.searchInput,autoFocus:!0})]})}),o.jsx("div",{className:ke.optionsList,children:P.length===0?o.jsx("div",{className:ke.noResults,children:"Aucun résultat trouvé"}):o.jsx("ul",{role:"listbox",children:P.map((E,Q)=>o.jsx("li",{className:K(E,Q),onClick:()=>R(E),onMouseEnter:()=>I(Q),role:"option","aria-selected":E.value===c,"aria-disabled":E.disabled,children:o.jsxs("div",{className:ke.buttonContent,children:[o.jsx("span",{className:`${ke.optionLabel} ${g?"":ke.optionLabelWrap}`.trim(),title:E.label,children:E.label}),E.value===c&&o.jsx("svg",{className:ke.checkIcon,fill:"currentColor",viewBox:"0 0 20 20",children:o.jsx("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})})]})},E.value))})})]}),document.body)]})},O6e="_container_uq7pt_1",U6e="_item_uq7pt_7",W6e="_mainValue_uq7pt_13",G6e="_label_uq7pt_17",K6e="_subValue_uq7pt_22",Z6e="_subValueWrapper_uq7pt_27",X6e="_subSeparator_uq7pt_32",st={container:O6e,item:U6e,mainValue:W6e,label:G6e,subValue:K6e,subValueWrapper:Z6e,subSeparator:X6e},Y6e=({dms:e,stats:t=[],itemWidth:n="120px",valueFontSize:c="28px",valueFontWeight:i=700,subFontSize:r="16px",subFontWeight:s=600,backgroundColor:d="#ffffff",labelColor:l="#6b7280",valueColor:h="#000000"})=>{const u=(p,k,f)=>{const[g,m]=p.split("/").map(v=>v.trim());return o.jsxs("span",{className:st.subValueWrapper,children:[o.jsx("span",{className:st.subLeft,style:{color:k},children:g}),o.jsx("span",{className:st.subSeparator,children:" / "}),o.jsx("span",{className:st.subRight,style:{color:f},children:m})]})};return o.jsxs("div",{className:st.container,style:{backgroundColor:d},children:[e&&o.jsxs("div",{className:st.item,style:{flex:`1 1 ${n}`},children:[o.jsx("div",{className:st.mainValue,style:{fontSize:c,fontWeight:i,color:h},children:e}),o.jsx("div",{className:st.label,style:{color:l},children:"DMS"})]}),t.map((p,k)=>o.jsxs("div",{className:st.item,style:{flex:`1 1 ${n}`},children:[o.jsx("div",{className:st.mainValue,style:{fontSize:c,fontWeight:i,color:h},children:p.value}),o.jsx("div",{className:st.label,style:{color:l},children:p.label}),o.jsx("div",{className:st.subValue,style:{fontSize:r,fontWeight:s},children:p.subValue&&u(p.subValue,p.subLeftColor,p.subRightColor)})]},k))]})},J6e="_encours_16ist_1",Q6e="_header_16ist_19",e8e="_iconWrap_16ist_27",t8e="_title_16ist_36",a8e="_items_16ist_47",n8e="_spaceEvenly_16ist_56",o8e="_item_16ist_47",c8e="_valueContainer_16ist_86",i8e="_value_16ist_86",r8e="_label_16ist_108",xt={encours:J6e,header:Q6e,iconWrap:e8e,title:t8e,items:a8e,spaceEvenly:n8e,item:o8e,valueContainer:c8e,value:i8e,label:r8e},Zc=e=>typeof e=="number"?`${e}px`:typeof e=="string"?e:void 0;function s8e(e,t){const n={},c={};return e.valueColor&&(n.color=e.valueColor),e.valueFontSize!==void 0?n.fontSize=Zc(e.valueFontSize):t.defaultValueFontSize!==void 0&&(n.fontSize=Zc(t.defaultValueFontSize)),e.valueFontWeight!==void 0?n.fontWeight=e.valueFontWeight:t.defaultValueFontWeight!==void 0&&(n.fontWeight=t.defaultValueFontWeight),e.labelColor&&(c.color=e.labelColor),e.labelFontSize!==void 0?c.fontSize=Zc(e.labelFontSize):t.defaultLabelFontSize!==void 0&&(c.fontSize=Zc(t.defaultLabelFontSize)),e.labelFontWeight!==void 0?c.fontWeight=e.labelFontWeight:t.defaultLabelFontWeight!==void 0&&(c.fontWeight=t.defaultLabelFontWeight),{valueStyle:n,labelStyle:c}}function d8e(){return o.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:[o.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"1.4"}),o.jsx("path",{d:"M8 12h8",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]})}function l8e(e){const{title:t,titleColor:n,titleFontSize:c,titleFontWeight:i,icon:r,iconSize:s=18,iconColor:d,defaultValueFontSize:l,defaultValueFontWeight:h,defaultLabelFontSize:u,defaultLabelFontWeight:p,data:k,style:f,bg:g="#ffffff",width:m,gap:v,className:_,ariaLabel:x}=e,b=r?At[r]:void 0,I={background:g,width:Zc(m),...f},w={};n&&(w.color=n),c!==void 0&&(w.fontSize=Zc(c)),i!==void 0&&(w.fontWeight=i);const j={};return d&&(j.color=d),o.jsxs("section",{className:`${xt.encours} ${_??""}`,style:I,"aria-label":x??t,children:[o.jsxs("div",{className:xt.header,children:[o.jsx("div",{className:xt.iconWrap,"aria-hidden":!0,style:j,children:b?o.jsx(b,{size:typeof s=="number"?s:void 0}):o.jsx(d8e,{})}),o.jsx("div",{className:xt.title,style:w,children:t})]}),o.jsx("div",{className:`${xt.items} ${v===void 0?xt.spaceEvenly:""}`,role:"list",style:v!==void 0?{gap:`${v}px`}:{},children:k.map((L,M)=>{const{valueStyle:S,labelStyle:C}=s8e(L,{defaultValueFontSize:l,defaultValueFontWeight:h,defaultLabelFontSize:u,defaultLabelFontWeight:p});return o.jsx("div",{className:xt.item,role:"listitem",style:{...L.background?{background:L.background}:{},...L.width?{width:Zc(L.width)}:{}},children:o.jsxs("div",{className:xt.valueContainer,children:[o.jsx("div",{className:xt.value,style:S,children:L.value}),L.label&&o.jsx("div",{className:xt.label,style:C,children:L.label})]})},`${String(L.label??L.value)}-${M}`)})})]})}const h8e=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"M480-360 280-559h400z"})),hz=y.memo(h8e),u8e=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"m280-400 200-201 200 201z"})),p8e=y.memo(u8e),y8e=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 16 16",...e},ee.createElement("path",{fill:"#0087BD",d:"M3 14a.96.96 0 0 1-.7-.3.96.96 0 0 1-.3-.7V3q0-.4.3-.7T3 2h10q.4 0 .7.3t.3.7v10q0 .4-.3.7t-.7.3zm3.983-3.55q.1 0 .192-.033a.36.36 0 0 0 .158-.117l4.117-4.133q.15-.15.15-.35a.54.54 0 0 0-.15-.367.52.52 0 0 0-.358-.133.5.5 0 0 0-.359.15l-3.75 3.75L5.35 7.583a.48.48 0 0 0-.7 0q-.15.15-.15.367 0 .216.15.35l1.983 2a.48.48 0 0 0 .35.15"})),k8e=y.memo(y8e),m8e=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 16 16",...e},ee.createElement("path",{fill:"#1E2122",d:"M3 14a.96.96 0 0 1-.7-.3.96.96 0 0 1-.3-.7V3q0-.4.3-.7T3 2h10q.4 0 .7.3t.3.7v10q0 .4-.3.7t-.7.3zm0-1h10V3H3z"})),f8e=y.memo(m8e),g8e=({items:e,onSave:t,loading:n,disabled:c,saveLabel:i,savingLabel:r,buttonTitle:s,size:d=16,colors:l={bg:"#DADADA",activeBg:"var(--color-primary)",circle:"#FFFFFF",icon:"#1C1B1F",icon2:"#FFFFFF"},style:h,a11yConfig:u})=>{const[p,k]=y.useState(!1),[f,g]=y.useState(e),[m,v]=y.useState(!1);if(y.useEffect(()=>{v(!0)},[]),y.useEffect(()=>{g(e)},[e]),!m)return null;const _=(I,w)=>{w<4||g(j=>j.map(L=>L.component_key===I?{...L,visible:!L.visible}:L))},x=()=>{t(f),k(!1)},b=oe(u,s);return o.jsxs("div",{style:{position:"relative",display:"inline-block",...h},children:[o.jsxs("div",{onClick:()=>{c||k(!p)},style:{display:"flex",alignItems:"center",cursor:c?"not-allowed":"pointer",borderRadius:4,transition:"background 0.2s"},title:b,children:[o.jsx(U$,{width:d,height:d,fill:l?.icon||"currentColor",style:{transition:"color 0.2s"}}),p?o.jsx(p8e,{width:d,height:d,fill:l?.icon||"currentColor"}):o.jsx(hz,{width:d,height:d,fill:l?.icon||"currentColor"})]}),p&&o.jsxs("div",{style:{position:"absolute",top:"120%",right:0,minWidth:260,background:"#fff",borderRadius:"0.25rem",boxShadow:"0px 3px 7px 0px rgba(17, 20, 21, 0.05),0px 14px 14px 0px rgba(17, 20, 21, 0.04),0px 30px 18px 0px rgba(17, 20, 21, 0.03), 0px 54px 22px 0px rgba(17, 20, 21, 0.01),0px 85px 24px 0px rgba(17, 20, 21, 0)",zIndex:235465456,padding:"0 0 0.5rem 0"},children:[o.jsx("ul",{style:{listStyle:"none",padding:0,margin:0},children:f.map((I,w)=>o.jsxs(y.Fragment,{children:[o.jsxs("li",{onClick:()=>_(I.component_key,w),style:{display:"flex",alignItems:"center",padding:"0.5rem",cursor:w<4?"not-allowed":"pointer",transition:"background 0.2s"},onMouseEnter:j=>{w>=4&&(j.currentTarget.style.background="#F9FAFB")},onMouseLeave:j=>{w>=4&&(j.currentTarget.style.background="transparent")},children:[o.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",marginRight:8,flexShrink:0},children:I.visible?o.jsx(k8e,{width:20,height:20,fill:l?.activeBg||"var(--color-primary, #008FBB)"}):o.jsx(f8e,{width:20,height:20,fill:"#D1D5DB"})}),o.jsx("span",{style:{fontSize:"14px",color:"#111827",fontWeight:400,userSelect:"none"},children:I.label})]}),w===3&&o.jsx("div",{style:{height:1,background:"#E5E7EB",margin:"4px 0"}})]},I.component_key))}),o.jsx("div",{style:{padding:"12px 16px 0 16px",display:"flex",justifyContent:"flex-end"},children:o.jsx("button",{type:"button",onClick:x,disabled:n,style:{padding:"6px 16px",borderRadius:4,border:"none",background:"var(--color-primary, #008FBB)",color:"#fff",fontSize:"14px",fontWeight:500,cursor:n?"not-allowed":"pointer",transition:"opacity 0.2s",opacity:n?.7:1},children:n?r:i})})]})]})},v8e="_container_zhny9_1",x8e="_card_zhny9_15",_8e="_footer_zhny9_33",M8e="_noPaddingMobile_zhny9_51",Hi={container:v8e,card:x8e,footer:_8e,noPaddingMobile:M8e},L8e="_board_95t8m_1",b8e="_clickable_95t8m_21",I8e="_sideBar_95t8m_26",w8e="_boardContent_95t8m_32",C8e="_orange_95t8m_40",j8e="_red_95t8m_44",N8e="_green_95t8m_48",S8e="_grey_95t8m_52",$8e="_lightGrey_95t8m_56",q8e="_big_95t8m_61",A8e="_medium_95t8m_66",z8e="_headerRow_95t8m_70",P8e="_iconWrapper_95t8m_75",V8e="_headerTitle_95t8m_80",T8e="_valueArea_95t8m_89",D8e="_titleWhite_95t8m_99",H8e="_titleBlack_95t8m_103",B8e="_valueWhite_95t8m_108",R8e="_valueBlack_95t8m_112",F8e="_valueBlue_95t8m_116",E8e="_bars_95t8m_121",O8e="_bar_95t8m_121",U8e="_barDark_95t8m_135",W8e="_barDim_95t8m_139",G8e="_predictionSection_95t8m_143",K8e="_predictionHeader_95t8m_155",Z8e="_predictionBody_95t8m_162",X8e="_hasPrediction_95t8m_170",Fe={board:L8e,clickable:b8e,sideBar:I8e,boardContent:w8e,orange:C8e,red:j8e,green:N8e,grey:S8e,lightGrey:$8e,big:q8e,medium:A8e,headerRow:z8e,iconWrapper:P8e,headerTitle:V8e,valueArea:T8e,titleWhite:D8e,titleBlack:H8e,valueWhite:B8e,valueBlack:R8e,valueBlue:F8e,bars:E8e,bar:O8e,barDark:U8e,barDim:W8e,predictionSection:G8e,predictionHeader:K8e,predictionBody:Z8e,hasPrediction:X8e},Y8e=({endingDark:e=!1,lightCount:t=5,className:n=""})=>{const c=Math.max(0,Math.min(5,Math.floor(t)));return o.jsx("div",{className:`${Fe.bars} ${n} bars-data-board`,children:Array.from({length:5}).map((i,r)=>o.jsx("span",{className:`${Fe.bar} ${r<c?"":e?Fe.barDark:Fe.barDim}`},r))})},qt=({a11yConfig:e,iconName:t,label:n,value:c,backgroundColor:i="green",bars:r,lightBars:s=5,size:d="big",valueScale:l,width:h,height:u,className:p="",style:k,titleColor:f="white",valueColor:g="white",titleFontSize:m,titleFontWeight:v,valueFontSize:_,valueFontWeight:x,barColor:b,justifyContent:I="space-between",alignItems:w="flex-start",cardGap:j="",onClick:L,iconColor:M,titleKey:S,predictionValue:C,predictionLabel:N})=>{const q=r!=="none",A=r==="endingDark",{padding:P,...T}=k||{},H=h===void 0&&u===void 0&&i===void 0&&Object.keys(T).length===0?void 0:{...h!==void 0?{width:h}:{},...u!==void 0?{height:u}:{},...i!==void 0?{backgroundColor:i}:{},...T},z=`${Fe.board} ${Fe[d]} ${C!==void 0?Fe.hasPrediction:""} ${p}`;return o.jsxs("div",{className:z,onClick:L,style:l!==void 0?{...H,"--ds-value-scale":l}:H,children:[b&&o.jsx("div",{className:Fe.sideBar,style:{backgroundColor:b}}),o.jsxs("div",{className:Fe.boardContent,style:{padding:P,gap:j},children:[o.jsxs("div",{className:Fe.headerRow,style:{justifyContent:I,alignItems:w},children:[t&&o.jsx("div",{className:Fe.iconWrapper,style:{color:M},children:t}),o.jsx("div",{className:`${Fe.headerTitle} header-title-data-board`,children:o.jsx("span",{title:oe(e,S),"aria-label":e?.description,style:{color:f,...m?{fontSize:m}:{},...v?{fontWeight:v}:{}},children:n})}),q?o.jsx(Y8e,{endingDark:A,lightCount:s}):null]}),o.jsx("div",{className:Fe.valueArea,style:{color:g,..._?{fontSize:_}:{},...x?{fontWeight:x}:{}},children:c})]}),C!==void 0&&o.jsxs("div",{className:Fe.predictionSection,children:[o.jsx("div",{className:Fe.predictionHeader,children:N??"PRED."}),o.jsx("div",{className:Fe.predictionBody,children:C})]})]})},J8e="_wrapper_1ydle_10",Q8e="_hosp_1ydle_19",ege="_headerRow_1ydle_54",tge="_iconWrapper_1ydle_61",age="_headerTitle_1ydle_67",nge="_hospValue_1ydle_76",oge="_side_1ydle_88",cge="_mini_1ydle_100",ige="_miniLabel_1ydle_131",rge="_miniValue_1ydle_140",sge="_miniBars_1ydle_150",dge="_bars_1ydle_155",lge="_bar_1ydle_155",hge="_barDark_1ydle_169",uge="_barDim_1ydle_173",We={wrapper:J8e,hosp:Q8e,headerRow:ege,iconWrapper:tge,headerTitle:age,hospValue:nge,side:oge,mini:cge,miniLabel:ige,miniValue:rge,miniBars:sge,bars:dge,bar:lge,barDark:hge,barDim:uge},pge=({endingDark:e=!1,lightCount:t=5,className:n=""})=>{const c=Math.max(0,Math.min(5,Math.floor(t)));return o.jsx("div",{className:`${We.bars} ${n} bars-data-board`,children:Array.from({length:5}).map((i,r)=>o.jsx("span",{className:`${We.bar} ${r<c?"":e?We.barDark:We.barDim}`},r))})},uz=({left:e,right:t,className:n="",style:c,miniTilesCount:i=3})=>{const r=e.bars??"endingDark",s=r!=="none",d=r==="endingDark",l={...c,"--mini-tiles-count":i};return o.jsxs("div",{className:`${We.wrapper} ${n} data-four-boards`,style:l,children:[o.jsxs("div",{className:`${We.hosp} ${e.className||""}`,onClick:e.onClick,style:{...e.width?{width:e.width}:{},...e.height?{height:e.height}:{},...e.backgroundColor?{backgroundColor:e.backgroundColor}:{},...e.style||{}},title:oe(e.a11yConfig,e.titleKey),children:[o.jsxs("div",{className:We.headerRow,children:[o.jsxs("div",{className:`${We.iconWrapper} icon-wrapper-data-four-boards`,children:[e.iconName&&o.jsx("span",{style:{color:e.iconColor},children:e.iconName}),o.jsx("span",{className:We.headerTitle,style:{color:e.titleColor||"white",...e.titleFontSize?{fontSize:e.titleFontSize}:{},...e.titleFontWeight?{fontWeight:e.titleFontWeight}:{}},title:oe(e.a11yConfig,e.titleKey),children:e.label})]}),s?o.jsx(pge,{endingDark:d,lightCount:e.lightBars??5}):null]}),o.jsx("div",{className:We.hospValue,style:{color:e.valueColor||"white",...e.valueScale!==void 0?{"--ds-value-scale":e.valueScale}:{},...e.valueFontSize?{fontSize:e.valueFontSize}:{},...e.valueFontWeight?{fontWeight:e.valueFontWeight}:{}},children:e.value})]}),o.jsx("div",{className:We.side,children:t.map((h,u)=>o.jsxs("div",{className:`${We.mini} ${h.className||""} icon-wrapper-data-four-boards`,onClick:h.onClick,style:{...h.width?{width:h.width}:{},...h.height?{height:h.height}:{},...h.backgroundColor?{backgroundColor:h.backgroundColor}:{},...h.style||{}},title:oe(h.a11yConfig,h.titleKey),children:[o.jsxs("span",{className:We.miniLabel,style:{color:h.titleColor||"white",textAlign:"right",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",...h.titleFontSize?{fontSize:h.titleFontSize}:{},...h.titleFontWeight?{fontWeight:h.titleFontWeight}:{}},title:oe(h.a11yConfig,h.titleKey),children:[h.iconName&&o.jsx("span",{style:{color:h.iconColor},children:h.iconName}),h.label]}),o.jsx("span",{className:`${We.miniValue} mini-value-data-four-boards`,style:{color:h.valueColor||"white",textAlign:"right",...h.valueScale!==void 0?{"--ds-value-scale":h.valueScale}:{},...h.valueFontSize?{fontSize:h.valueFontSize}:{},...h.valueFontWeight?{fontWeight:h.valueFontWeight}:{}},children:h.value}),o.jsx("div",{className:We.miniBars})]},h.id??`${h.label}-${u}`))})]})},yge=({items:e,footerLabel:t,width:n,height:c,size:i=320,style:r,className:s="",backgroundColor:d,titleFontSize:l,titleFontWeight:h,valueFontSize:u,valueFontWeight:p,noPaddingLeftRight:k=!1,onItemClick:f})=>{const g={width:n??i,height:c,backgroundColor:d??"var(--ds-navy)",...r},m=e[0],v=e[1],_=e.slice(2,5);return o.jsxs("div",{style:g,className:`${Hi.container} ${k?Hi.noPaddingMobile:""} ${s}`,children:[o.jsxs("div",{className:Hi.card,children:[m?o.jsx(qt,{a11yConfig:m.a11yConfig,label:m.label,value:m.value,backgroundColor:m.backgroundColor,bars:m.bars,lightBars:m.lightBars,size:m.size??"big",valueScale:m.valueScale,width:m.width,height:m.height,titleColor:"white",valueColor:"white",titleFontSize:m.titleFontSize??l,titleFontWeight:m.titleFontWeight??h,valueFontSize:m.valueFontSize??u,valueFontWeight:m.valueFontWeight??p,titleKey:m.titleKey,onClick:x=>f?.(0,x)}):null,v&&_.length>0?o.jsx(uz,{left:{a11yConfig:v.a11yConfig,id:v.id,label:v.label,value:v.value,backgroundColor:v.backgroundColor,bars:v.bars,lightBars:v.lightBars,valueScale:v.valueScale,width:v.width,height:v.height,titleFontSize:v.titleFontSize??l,titleFontWeight:v.titleFontWeight??h,valueFontSize:v.valueFontSize??u,valueFontWeight:v.valueFontWeight??p,titleKey:v.titleKey,onClick:x=>f?.(1,x)},right:_.map((x,b)=>({a11yConfig:x.a11yConfig,id:x.id,label:x.label,value:x.value,backgroundColor:x.backgroundColor,bars:x.bars,lightBars:x.lightBars,valueScale:x.valueScale,width:x.width,height:x.height,titleFontSize:x.titleFontSize??l,titleFontWeight:x.titleFontWeight??h,valueFontSize:x.valueFontSize??u,valueFontWeight:x.valueFontWeight??p,titleKey:x.titleKey,onClick:I=>f?.(2+b,I)}))}):v&&_.length===0?o.jsx(qt,{a11yConfig:v.a11yConfig,label:v.label,value:v.value,backgroundColor:v.backgroundColor,bars:v.bars,lightBars:v.lightBars,size:v.size??"big",valueScale:v.valueScale,width:v.width,height:v.height,titleColor:"white",valueColor:"white",titleFontSize:v.titleFontSize??l,titleFontWeight:v.titleFontWeight??h,valueFontSize:v.valueFontSize??u,valueFontWeight:v.valueFontWeight??p,onClick:x=>f?.(1,x)}):null]}),t&&o.jsx("div",{className:Hi.footer,children:t})]})},kge=({x:e,y:t,width:n,payload:c,fontSize:i,fontWeight:r,stroke:s})=>o.jsx("g",{transform:`translate(${e},${t})`,children:o.jsx("foreignObject",{x:-n,y:-35,width:n,height:70,style:{overflow:"visible"},children:o.jsx("div",{style:{fontSize:i,fontWeight:r,color:s,lineHeight:"1.2",display:"flex",justifyContent:"flex-end",textAlign:"right",alignItems:"center",height:"100%",width:"100%",paddingRight:"8px",boxSizing:"border-box"},children:o.jsx("span",{style:{overflowWrap:"break-word",whiteSpace:"normal",display:"block",maxWidth:"100%"},children:c.value})})})}),mge=({data:e,height:t=360,barColor:n="#0284C7",tooltipEnabled:c=!0,backgroundColor:i="transparent",legendTextColor:r="var(--color-text)",barHeight:s=40,yAxisWidth:d=120,fontSize:l="12px",fontWeight:h="400",domain:u,xAxisLabel:p,yAxisLabel:k,margin:f={top:20,right:60,bottom:40,left:0},valueFormatter:g,tickFormatter:m,labelDataKey:v="percentage",isAnimationActive:_=!0})=>{const x=(f.top??20)+(f.bottom??40)+e.length*(s+20),b=Math.max(x,t),I=y.useMemo(()=>{if(!e||e.length===0)return d;const S=(parseFloat(l)||12)*.7,N=Math.max(...e.map(q=>(q.label||"").length))*S+16;return Math.min(Math.max(N,40),d)},[e,l,d]),w=M=>m?m(M):M?.toString()||"",j=M=>g&&v==="value"?g(M):M==null||M===""?"":v==="percentage"?`${M}%`:M.toString(),L=(M,S,C)=>{if(typeof M!="number")return M;const N=g?g(M):M.toString(),q=C?.payload?.percentage;return typeof q=="number"&&Number.isFinite(q)&&v==="percentage"?`${N} (${q.toFixed(1)}%)`:N};return o.jsxs("div",{style:{backgroundColor:i,width:"100%",height:b,position:"relative"},children:[k&&o.jsx("div",{style:{position:"absolute",left:18,top:"50%",transform:"translate(-50%, -50%) rotate(-90deg)",whiteSpace:"nowrap",color:r,fontSize:12,fontWeight:500,pointerEvents:"none",zIndex:1},children:k}),o.jsx(a.ResponsiveContainer,{width:"100%",height:b,children:o.jsxs(a.BarChart,{data:e,layout:"vertical",margin:{...f,left:k?Math.max(f.left??0,40):f.left},children:[o.jsx(a.CartesianGrid,{opacity:.4,stroke:"#E5E7EB",vertical:!1,horizontal:!0}),o.jsx(a.XAxis,{type:"number",domain:u||[0,"auto"],axisLine:!1,tickLine:!1,fontSize:l,fontWeight:h,stroke:r,tickFormatter:w,label:p?{value:p,position:"insideBottom",offset:-10,style:{textAnchor:"middle",fill:r,fontSize:12,fontWeight:"500"}}:void 0}),o.jsx(a.YAxis,{type:"category",dataKey:"label",stroke:r,axisLine:!1,tickLine:!1,width:I,interval:0,fontSize:l,fontWeight:h,tick:o.jsx(kge,{fontSize:l,fontWeight:h,stroke:r})}),c&&o.jsx(a.Tooltip,{formatter:L,labelStyle:{color:"var(--color-text)"}}),o.jsx(a.Bar,{dataKey:"value",fill:n,radius:0,barSize:s,isAnimationActive:_,children:o.jsx(a.LabelList,{dataKey:v,position:"right",offset:10,formatter:j,fill:r,fontSize:l,fontWeight:h})})]})})]})},fge="_menu_9anig_1",gge="_menuRow_9anig_18",vge="_separator_9anig_34",xge="_rowLabel_9anig_40",_ge="_rowLeadingIcon_9anig_48",Mge="_rowIcon_9anig_55",y1={menu:fge,menuRow:gge,separator:vge,rowLabel:xge,rowLeadingIcon:_ge,rowIcon:Mge},Lge=y.forwardRef(function({isVisible:t,onClose:n,items:c,style:i,position:r,bg:s},d){const l=y.useRef(null),h=d||l;if(y.useEffect(()=>{if(!t)return;const k=f=>{h.current&&!h.current.contains(f.target)&&n?.()};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[t,n]),!t)return null;const p={...{top:r?.top,left:r?.left,right:r?.right,bottom:r?.bottom},...s&&{backgroundColor:s},...i};return o.jsx("div",{ref:h,role:"menu",className:y1.menu,style:p,children:c.map(k=>{if(k.type==="separator")return o.jsx("hr",{className:y1.separator},k.id);const f=k,g=f.color?{color:f.color}:{},m=f.closeOnClick!==!1;return o.jsxs("button",{role:"menuitem",className:y1.menuRow,style:g,onClick:()=>{f.onClick?.(),m&&n?.()},children:[o.jsxs("span",{className:y1.rowLabel,children:[f.leadingIcon&&o.jsx("span",{className:y1.rowLeadingIcon,children:f.leadingIcon}),o.jsx("span",{children:f.label})]}),f.icon&&o.jsx("span",{className:y1.rowIcon,children:f.icon})]},f.id)})})}),pz=({user:e,logoutHref:t,logoutTarget:n="_self",onLogout:c,profileHref:i,profileLinkTarget:r="_self",backgroundColor:s="transparent",textColor:d="inherit",roleColor:l="#888",avatarSize:h="32px",padding:u="10px",gap:p="12px",emailFontSize:k="14px",emailFontWeight:f=600,roleFontSize:g="12px",roleFontWeight:m,avatarColor:v="#5b8fb9",backgroundColorAvatar:_="#f1f4f5",dropdownMenuItems:x,dropdownMenuStyle:b,dropdownMenuOffset:I,statusDotColor:w,a11yConfig:j,style:L,className:M=""})=>{const{user:S}=Ct(),C=e||S,{currentTheme:N,switchTheme:q}=eb(),A=y.useRef(null),P=y.useRef(null),[T,H]=y.useState(!1),[z,$]=y.useState({}),R=y.useMemo(()=>{const G=[],ce=({variant:ye})=>ye==="sun"?o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:o.jsx("circle",{cx:"12",cy:"12",r:"4"})}):o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:o.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})});i&&(G.push({id:"profile",type:"action",label:"Mon profil",onClick:()=>{typeof window>"u"||(r==="_blank"?window.open(i,"_blank","noopener,noreferrer"):window.location.assign(i))}}),G.push({id:"sep-profile",type:"separator"}));const ue=N==="dark";return G.push({id:"theme",type:"action",label:ue?"Mode clair":"Mode sombre",icon:o.jsx(ce,{variant:ue?"sun":"moon"}),onClick:()=>{q(ue?"light":"dark")}}),(t||c)&&(G.push({id:"sep-theme",type:"separator"}),G.push({id:"logout",type:"action",label:"Se déconnecter",danger:!0,onClick:()=>{if(t){if(typeof window>"u")return;n==="_blank"?window.open(t,"_blank","noopener,noreferrer"):window.location.assign(t);return}c?.()}})),G},[N,t,n,c,i,r,q]),V=x??R,F=()=>{if(!A.current){H(G=>!G);return}if(!T){const G=A.current.getBoundingClientRect(),ce=window.innerWidth,ue=window.innerHeight,ye=200,fe=200,Z=4,ne=I?.x??0,le=I?.y??0,qe=ce-G.right>=ye+Z;$(qe?{top:G.bottom-fe+le,left:G.right+Z+ne}:{bottom:ue-G.top+le,left:G.left+ne})}H(G=>!G)};if(y.useEffect(()=>{if(!T||!A.current)return;const G=()=>{const ce=A.current.getBoundingClientRect(),ue=window.innerWidth,ye=window.innerHeight,fe=200,Z=200,ne=4,le=I?.x??0,je=I?.y??0,ve=ue-ce.right>=fe+ne;$(ve?{top:ce.bottom-Z+je,left:ce.right+ne+le}:{bottom:ye-ce.top+je,left:ce.left+le})};return window.addEventListener("resize",G),window.addEventListener("orientationchange",G),()=>{window.removeEventListener("resize",G),window.removeEventListener("orientationchange",G)}},[T,I]),y.useEffect(()=>{if(!T||!A.current||!P.current)return;const G=()=>{const ue=A.current.getBoundingClientRect(),ye=P.current.getBoundingClientRect(),fe=I?.x??0,Z=I?.y??0;$(ne=>ne.left!==void 0&&ne.top!==void 0&&ne.left>=ue.right-1?{top:ue.bottom-ye.height+Z,left:ne.left+fe}:ne)},ce=requestAnimationFrame(()=>{setTimeout(G,0)});return()=>cancelAnimationFrame(ce)},[T,I]),!C)return null;const X=C,U=parseInt(h,10)||40,K=`${U*.375}px`,te=`${U*1.375}px`,E=`${U*.2}px`,Q=`${U*.6}px`,de=()=>{const G=parseInt(h,10)||40,ce=Math.max(8,G*.34375),ue=Math.max(2,G*.05);return o.jsxs(o.Fragment,{children:[o.jsxs("div",{style:{position:"relative",flexShrink:0,userSelect:"none"},children:[X.image?o.jsx("img",{src:X.image,alt:`${X.prenom} ${X.nom}`,style:{width:h,height:h,borderRadius:"50%",objectFit:"cover",userSelect:"none"}}):o.jsxs("div",{style:{width:h,height:h,position:"relative",borderRadius:"50%",backgroundColor:_,overflow:"hidden",userSelect:"none"},children:[o.jsx("div",{style:{width:K,height:K,borderRadius:"50%",backgroundColor:v,position:"absolute",top:E,left:"50%",transform:"translateX(-50%)",zIndex:2,userSelect:"none"}}),o.jsx("div",{style:{width:te,height:te,borderRadius:"50%",backgroundColor:v,position:"absolute",top:Q,left:"50%",transform:"translateX(-50%)",zIndex:1,userSelect:"none"}})]}),w&&o.jsx("div",{style:{position:"absolute",bottom:ue,right:ue,width:`${ce}px`,height:`${ce}px`,borderRadius:"50%",backgroundColor:w,border:"2px solid white",zIndex:10}})]}),o.jsxs("div",{style:{display:"flex",flexDirection:"column",minWidth:0,flex:1},children:[o.jsx("span",{style:{fontWeight:f,fontSize:k,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:X.email,children:X.email}),o.jsx("span",{style:{color:l,fontSize:g,fontWeight:m,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:X.role,children:X.role})]})]})};return o.jsxs(o.Fragment,{children:[o.jsx("div",{ref:A,className:`user-info ${M}`,style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:u,backgroundColor:s,gap:p,color:d,width:"100%",boxSizing:"border-box",cursor:"pointer",userSelect:"none",...L},onClick:F,title:oe(j,X.role),role:"button",tabIndex:0,children:o.jsx("div",{style:{display:"flex",alignItems:"center",gap:p,flex:1,minWidth:0},children:o.jsx(de,{})})}),o.jsx(Lge,{ref:P,isVisible:T,onClose:()=>H(!1),items:V,style:b,position:z})]})},bge="_navItem_z7b2l_1",Ige="_label_z7b2l_14",wge="_icon_z7b2l_26",Cge="_trailing_z7b2l_32",k1={navItem:bge,label:Ige,icon:wge,trailing:Cge},TC=({label:e,labelKey:t,onClick:n,href:c,target:i,rel:r,isActive:s,icon:d,style:l,className:h="",highlightColor:u="#00aec7",color:p="#333",activeColor:k="#00aec7",highlightBackgroundColor:f="rgba(0, 0, 0, 0.05)",fontSize:g="15px",fontWeight:m="500",sidebarCollapsed:v=!1,padding:_="10px 16px",borderWidth:x="4px",iconGap:b="12px",disabled:I=!1,disabledColor:w,a11yConfig:j,trailing:L})=>{const M=()=>{I||n?.()},S=o.jsxs(o.Fragment,{children:[d&&o.jsx("span",{className:k1.icon,style:{marginRight:v?0:b},children:d}),!v&&o.jsx("span",{className:k1.label,children:e}),!v&&L&&o.jsx("span",{className:k1.trailing,children:L})]}),C=()=>{if(!s)return"transparent";const q=A=>{const P=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(A);return P?{r:parseInt(P[1],16),g:parseInt(P[2],16),b:parseInt(P[3],16)}:null};if(u.startsWith("#")){const A=q(u);if(A)return`rgba(${A.r}, ${A.g}, ${A.b}, 0.08)`}else if(u.startsWith("rgb")){const A=u.match(/\d+/g);if(A&&A.length>=3)return`rgba(${A[0]}, ${A[1]}, ${A[2]}, 0.08)`}return f},N={onClick:M,className:`${k1.navItem} ${s?k1.active:""} ${h} ${I?k1.disabled:""}`,style:{padding:_,color:s?k:I?w||"#999":p,borderLeft:s?`${x} solid ${u}`:`${x} solid transparent`,backgroundColor:C(),fontSize:g,fontWeight:m,cursor:I?"not-allowed":"pointer",textDecoration:"none",...l},"aria-disabled":I};return c&&!n&&!I?o.jsx("a",{href:c,target:i,rel:i==="_blank"?r||"noopener noreferrer":r,...N,title:oe(j,t),children:S}):o.jsx("div",{...N,role:n?"button":void 0,tabIndex:n&&!I?0:void 0,title:oe(j,t),children:S})},jge="_navbar_1hqca_1",Nge="_topSection_1hqca_9",Sge="_logoContainer_1hqca_14",$ge="_collapseToggle_1hqca_20",qge="_collapsedRail_1hqca_37",Age="_collapsedToggle_1hqca_44",zge="_collapseToggleAlert_1hqca_62",Pge="_sectionsContainer_1hqca_85",Vge="_sectionTitle_1hqca_91",Tge="_sectionItems_1hqca_96",Dge="_bottomSection_1hqca_101",Hge="_versionContainer_1hqca_120",tt={navbar:jge,topSection:Nge,logoContainer:Sge,collapseToggle:$ge,collapsedRail:qge,collapsedToggle:Age,collapseToggleAlert:zge,sectionsContainer:Pge,sectionTitle:Vge,sectionItems:Tge,bottomSection:Dge,versionContainer:Hge},Bge=({logoProps:e,logoSpacing:t,navItems:n,padding:c="24px 16px",sectionSpacing:i="32px",itemSpacing:r="4px",backgroundColor:s="#fff",highlightColor:d="#00aec7",highlightBackgroundColor:l="rgba(0, 0, 0, 0.05)",version:h,navSectionStyle:u,navLinkStyle:p,navItemPadding:k="10px 16px",navItemBorderWidth:f="4px",navItemIconGap:g="12px",navItemFontSize:m="15px",navItemFontWeight:v="500",navItemColor:_,sectionTitlePadding:x="16px",sectionTitleFontSize:b="11px",sectionTitleColor:I="#999",sectionTitleWeight:w="500",versionFontSize:j="12px",versionFontWeight:L="400",versionColor:M="#999",userInfoProps:S,style:C,className:N="",width:q="280px",showLogo:A=!0,versionA11yConfig:P,displayNone:T=!1,showCollapseToggle:H=!1,collapsed:z=!1,onCollapseToggle:$,collapseToggleLabel:R="Toggle sidebar",collapseToggleIconPath:V="/icon/dock_to_left.svg",collapseToggleAlert:F=!1})=>{const X=Ct(),U=X.activeNav,K=X.setActiveNav,te=X.user,E=S.user||te;return H&&z?o.jsx("div",{className:`${tt.collapsedRail} ${N}`,style:{display:T?"none":"flex"},children:o.jsxs("button",{type:"button",className:tt.collapsedToggle,onClick:$,"aria-label":R,children:[o.jsx(Xw,{path:V,width:18,height:18}),F&&o.jsx("span",{className:tt.collapseToggleAlert,"aria-hidden":"true",children:"!"})]})}):o.jsxs("div",{className:`${tt.navbar} ${N}`,style:{width:q,backgroundColor:s,padding:c,display:T?"none":"flex",...C},children:[o.jsxs("div",{className:tt.topSection,style:{gap:t},children:[A&&o.jsxs("div",{className:tt.logoContainer,children:[o.jsx(QL,{...e}),H&&o.jsx("button",{type:"button",className:tt.collapseToggle,onClick:$,"aria-label":R,children:o.jsx(Xw,{path:V,width:20,height:20})})]}),o.jsx("div",{className:tt.sectionsContainer,style:{gap:i},children:n.map((Q,de)=>o.jsxs("div",{className:tt.section,children:[Q.title&&o.jsx("div",{className:tt.sectionTitle,title:oe(Q.a11yConfig,Q.titleKey),style:{fontSize:b,color:I,padding:x,fontWeight:w,border:"4px solid transparent",...u},children:Q.title}),o.jsx("div",{className:tt.sectionItems,style:{gap:r},children:Q.items.map(G=>o.jsx(TC,{...G,isActive:G.isActive===null?G.isActive:U===G.id,onClick:()=>{G.onClick&&G.onClick(),G.isActive==null&&K(G.id)},highlightColor:d,activeColor:d,highlightBackgroundColor:l,padding:k,borderWidth:f,iconGap:g,fontSize:m,fontWeight:v,color:_,style:p},G.id))})]},de))})]}),o.jsxs("div",{className:tt.bottomSection,style:{gap:t},children:[o.jsx(pz,{...S,user:E}),h&&o.jsx("div",{className:tt.versionContainer,title:oe(P,h),style:{fontSize:j,fontWeight:L,color:M},children:h})]})]})},Rge="_container_4qege_1",Fge="_titleContainer_4qege_10",Ege="_title_4qege_10",Oge="_inlineToggleContainer_4qege_24",Uge="_rightContentContainer_4qege_30",H1={container:Rge,titleContainer:Fge,title:Ege,inlineToggleContainer:Oge,rightContentContainer:Uge},Wge=({className:e="",style:t,fontSize:n="20px",fontWeight:c="bold",color:i="#000",padding:r="0",margin:s,backgroundColor:d,width:l,height:h,border:u,borderRadius:p,navItems:k,allNavItems:f,formatTitle:g=_=>_,rightContent:m,inlineToggle:v})=>{const{activeNav:_}=Ct(),x=k.find(I=>I.id===_)||f?.find(I=>I.id===_),b=x?g(x.label):_||"";return b?o.jsxs("div",{className:`${H1.container} ${e}`,style:{padding:r,margin:s,backgroundColor:d,width:l,height:h,border:u,borderRadius:p,...t},children:[o.jsxs("div",{className:H1.titleContainer,children:[o.jsx("div",{className:H1.title,style:{fontSize:n,fontWeight:c,color:i},children:b}),v&&o.jsx("div",{className:H1.inlineToggleContainer,children:v})]}),m&&o.jsx("div",{className:H1.rightContentContainer,children:m})]}):null},Gge="_navItem_1hg26_1",Kge="_navItemIcon_1hg26_21",Zge="_navItemLabel_1hg26_29",Xge="_navItemCount_1hg26_36",Yge="_navItemIndicator_1hg26_49",B1={navItem:Gge,navItemIcon:Kge,navItemLabel:Zge,navItemCount:Xge,navItemIndicator:Yge},yz=({a11yConfig:e,label:t,isActive:n,onClick:c,href:i,labelKey:r,icon:s,count:d,activeColor:l="#00aec7",inactiveColor:h="#666",activeBackgroundColor:u="transparent",countBackgroundColor:p,countColor:k="#fff",countBorderRadius:f="10px",countPadding:g="2px 6px",countFontSize:m="12px",countFontWeight:v="500",indicatorColor:_="#00aec7",indicatorHeight:x="3px",padding:b="8px 4px",fontSize:I="14px",fontWeight:w="500",gap:j="8px",style:L,className:M="",disabled:S=!1,onNavigate:C})=>{const N=()=>{S||(c?.(),i&&(C?C(i):window.location.href=i))};return o.jsxs("div",{className:`${B1.navItem} ${M}`,onClick:N,title:oe(e,r),style:{gap:j,padding:b,color:n?l:h,backgroundColor:n?u:"transparent",fontSize:I,fontWeight:w,...L},children:[s&&o.jsx("span",{className:B1.navItemIcon,children:s}),o.jsx("span",{className:B1.navItemLabel,children:t}),d!==void 0&&o.jsx("span",{className:B1.navItemCount,style:{backgroundColor:p,color:k,borderRadius:f,padding:g,fontSize:m,fontWeight:v},children:d}),n&&!S&&o.jsx("div",{className:B1.navItemIndicator,style:{height:x,backgroundColor:_}})]})},Jge="_container_13hsa_1",Qge="_groupHeader_13hsa_8",e7e="_groupHeaderLeft_13hsa_18",t7e="_groupIcon_13hsa_23",a7e="_dropdown_13hsa_29",n7e="_item_13hsa_42",o7e="_itemIcon_13hsa_65",c7e="_chevron_13hsa_72",i7e="_chevronOpen_13hsa_79",Nt={container:Jge,groupHeader:Qge,groupHeaderLeft:e7e,groupIcon:t7e,dropdown:a7e,item:n7e,itemIcon:o7e,chevron:c7e,chevronOpen:i7e},r7e=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"M480-344 240-584l43-43 197 197 197-197 43 43z"})),j1=y.memo(r7e),kz=({groups:e,activeItemId:t,onItemClick:n,style:c,className:i,bgColor:r="transparent",color:s="var(--color-text)",headerBgColor:d="var(--color-indicator)",headerColor:l="var(--color-text)",headerBorderBottomColor:h="var(--color-border)",dropdownBgColor:u="var(--color-background)",itemBgColor:p="transparent",itemHoverBgColor:k="rgba(0,0,0,0.05)",itemColor:f="var(--color-text)",itemActiveColor:g="var(--color-primary)",itemActiveBorderColor:m="var(--color-primary)",itemDividerColor:v="var(--color-border)",iconColor:_="#555555",activeIconColor:x="var(--color-primary)",headerIconColor:b="var(--color-text)",chevronColor:I="var(--color-text)",iconSize:w=22,headerPadding:j="14px 20px",itemPadding:L="14px 20px",iconGap:M=14,borderRadius:S=0})=>{const[C,N]=y.useState(""),q=y.useRef(null);y.useEffect(()=>{const P=T=>{q.current&&!q.current.contains(T.target)&&N("")};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[]);const A={backgroundColor:r,color:s,borderRadius:S,...c};return o.jsx("nav",{ref:q,className:[Nt.container,i].filter(Boolean).join(" "),style:A,children:e.map(P=>{const T=C===P.id,H={backgroundColor:d,color:l,padding:j,borderBottom:`1px solid ${h}`,gap:M},z={backgroundColor:u};return o.jsxs("div",{children:[o.jsxs("div",{className:Nt.groupHeader,style:H,onClick:()=>N(T?"":P.id),role:"button","aria-expanded":T,children:[o.jsxs("div",{className:Nt.groupHeaderLeft,style:{gap:M},children:[P.icon&&o.jsx("span",{className:Nt.groupIcon,style:{color:b,width:w,height:w},children:P.icon}),o.jsx("span",{children:P.label})]}),o.jsx("span",{className:[Nt.chevron,T?Nt.chevronOpen:""].join(" "),style:{color:I},children:o.jsx(j1,{width:18,height:18})})]}),T&&o.jsx("div",{className:Nt.dropdown,style:z,children:P.items.map($=>{const R=$.id===t,V={padding:L,gap:M,color:R?g:f,backgroundColor:p,"--item-border-width":R?"4px":"1px","--item-border-color":R?m:v};return o.jsxs("div",{className:Nt.item,style:V,onClick:()=>{n?.(P.id,$.id),N("")},role:"menuitem",onMouseEnter:F=>{R||(F.currentTarget.style.backgroundColor=k)},children:[$.icon&&o.jsx("span",{className:Nt.itemIcon,style:{color:R?x:_,width:w,height:w},children:$.icon}),o.jsx("span",{children:$.label})]},$.id)})})]},P.id)})})},s7e="_subheaderContent_1glo8_1",d7e="_navContainer_1glo8_11",l7e="_rightContent_1glo8_45",Mw={subheaderContent:s7e,navContainer:d7e,rightContent:l7e},h7e=({subNavItems:e,backgroundColor:t="transparent",padding:n="0",margin:c,width:i,height:r="auto",border:s,borderBottom:d="none",itemGap:l="24px",actionsGap:h="16px",itemPadding:u="12px 0",itemFontSize:p="14px",itemFontWeight:k="500",activeItemColor:f="#00aec7",inactiveItemColor:g="#5c6975",indicatorHeight:m="3px",showDraggable:v=!1,showLegend:_=!1,showData:x=!1,className:b="",style:I,countBackgroundColor:w,countColor:j,countBorderRadius:L,countPadding:M,countFontSize:S,countFontWeight:C,navContainerClassName:N,navContainerStyle:q,rightContentClassName:A,rightContentStyle:P,rightActions:T,activeSwitcherColor:H,inactiveSwitcherColor:z,isMobile:$=!1,onNavigate:R})=>{const{activeSubNav:V,setActiveSubNav:F,navCounts:X,activeNav:U}=Ct();if($){const K=e.find(E=>E.id===V)||e[0],te=[{id:"current-group",label:K?.label||U?.toUpperCase()||"MENU",icon:K?.icon,items:e.map(E=>({id:E.id,label:E.label,icon:E.icon}))}];return o.jsx("div",{className:b,style:I,children:o.jsx(kz,{groups:te,activeItemId:V,onItemClick:(E,Q)=>{const de=e.find(G=>G.id===Q);de&&(de.onClick&&de.onClick(),de.href&&(R?R(de.href):de.onNavigate?de.onNavigate(de.href):window.location.href=de.href),F(Q))},headerBgColor:t})})}return o.jsxs("div",{className:`${Mw.subheaderContent} ${b}`,style:{backgroundColor:t,padding:n,margin:c,width:i,height:r,border:s,borderBottom:d,...I},children:[o.jsx("div",{className:`${Mw.navContainer} ${N||""}`,style:{gap:l,...q},children:e.map(K=>{const te=K.count!==void 0?K.count:X[K.id],E=V===K.id||K.isActive;return o.jsx(yz,{...K,onNavigate:R||K.onNavigate,count:te,isActive:E,onClick:()=>{K.onClick&&K.onClick(),F(K.id)},activeColor:f,inactiveColor:g,countBackgroundColor:w,countColor:j,countBorderRadius:L,countPadding:M,countFontSize:S,countFontWeight:C,indicatorColor:f,indicatorHeight:m,padding:u,fontSize:p,fontWeight:k,gap:"8px",style:K.style},K.id)})}),o.jsxs("div",{className:`${Mw.rightContent} ${A||""}`,style:{gap:h,...P},children:[v&&o.jsx(RL,{size:20,colors:{bg:H,activeBg:z,icon:"#1C1B1F",icon2:"#FFFFFF"}}),_&&o.jsx(FL,{size:20,colors:{bg:H,activeBg:z,icon:"#1C1B1F",icon2:"#FFFFFF"}}),x&&o.jsx(EL,{size:20,colors:{bg:H,activeBg:z,icon:"#1C1B1F",icon2:"#FFFFFF"}}),T]})]})},u7e=({onSwitch:e,size:t="20px",lightIconColor:n="#666",darkIconColor:c="#fff",backgroundColor:i="transparent",padding:r="8px",borderRadius:s="50%",style:d,className:l=""})=>{const[h,u]=y.useState(!1),{currentTheme:p,switchTheme:k}=eb(),f=p!="dark",g=()=>{k(f?"dark":"light"),e?.()};return y.useEffect(()=>{u(!0)},[]),!h||!p?o.jsx(o.Fragment,{}):o.jsx("div",{className:`theme-switcher ${l}`,onClick:g,style:{cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:i,padding:r,borderRadius:s,transition:"all 0.3s ease",...d},children:f?o.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}):o.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("circle",{cx:"12",cy:"12",r:"5"}),o.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),o.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),o.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),o.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),o.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),o.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),o.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),o.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]})})},p7e=({initialSortBy:e=null,initialSortOrder:t="asc",onSortChange:n})=>{const[c,i]=y.useState({sortBy:e,sortOrder:t,filters:{}}),r=y.useCallback(s=>{let d="asc";c.sortBy===s&&(d=c.sortOrder==="asc"?"desc":"asc");const l={...c,sortBy:s,sortOrder:d};i(l),n(s,d)},[c,n]);return{tableState:c,handleSort:r}},y7e=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#FFF",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"M440-800v487L216-537l-56 57 320 320 320-320-56-57-224 224v-487z"})),k7e=y.memo(y7e),m7e=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#FFF",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"M440-160v-487L216-423l-56-57 320-320 320 320-56 57-224-224v487z"})),f7e=y.memo(m7e),g7e=({columns:e,sortBy:t,sortOrder:n,onSort:c,removeLabelSpan:i=!1,reorderable:r=!1,onColumnMove:s,onColumnShift:d})=>{const[l,h]=y.useState(null),[u,p]=y.useState(null),k=y.useMemo(()=>new Map(e.map((g,m)=>[String(g.key),m])),[e]),f=()=>{h(null),p(null)};return o.jsx("thead",{children:o.jsx("tr",{children:e.map((g,m)=>{const v=String(g.key),_=t===g.key,x=!!g.sortable,b=r&&g.reorderable!==!1,I=b&&l&&u===v&&l!==v?(k.get(l)??0)<m?"after":"before":null,w=[g.className||"",x?"sortable":"",b?"th-reorderable":"",l===v?"th-dragging":"",I?`th-drop-${I}`:""].filter(Boolean).join(" "),j=b?{draggable:!0,tabIndex:0,"aria-roledescription":"reorderable column",onDragStart:L=>{L.dataTransfer.effectAllowed="move",L.dataTransfer.setData("text/plain",v),h(v)},onDragOver:L=>{l&&(L.preventDefault(),L.dataTransfer.dropEffect="move",u!==v&&p(v))},onDrop:L=>{L.preventDefault();const M=l??L.dataTransfer.getData("text/plain");M&&M!==v&&s?.(M,v),f()},onDragEnd:f,onKeyDown:L=>{L.altKey&&(L.key==="ArrowLeft"||L.key==="ArrowRight")&&(L.preventDefault(),d?.(v,L.key==="ArrowLeft"?-1:1))}}:{};return o.jsx("th",{className:w,style:{width:g.width,textAlign:g.align||"left"},onClick:()=>x&&c(v),title:oe(g.a11yConfig,g.titleKey),...j,children:o.jsxs("div",{className:`th-content ${g.align?`align-${g.align}`:""}`,children:[i?g.label:o.jsx("span",{children:g.label}),x&&o.jsx("span",{className:"sort-icon-container",style:{display:"inline-flex",alignItems:"center"},children:_&&n==="asc"?o.jsx(f7e,{width:16,height:16,style:{fill:"currentColor",transition:"all 0.2s ease"}}):o.jsx(k7e,{width:16,height:16,style:{fill:"currentColor",opacity:_?1:.5,transition:"all 0.2s ease"}})})]})},v||m)})})})},v7e=({data:e,columns:t,rowKey:n,onRowClick:c,isLoading:i,text:r,rowStyle:s,rowClassName:d,renderSeparator:l})=>!e.length&&!i?o.jsx("tbody",{children:o.jsx("tr",{children:o.jsx("td",{colSpan:t.length,style:{textAlign:"center",padding:"32px"},children:o.jsx("span",{style:{color:"var(--table-text-muted)"},children:r?.noData||"Aucune donnée disponible"})})})}):o.jsx("tbody",{children:e.map((h,u)=>{const p=h[n],k=typeof p=="string"||typeof p=="number"?p:u,f=l?l(h):null;return o.jsx("tr",{onClick:()=>c&&c(h),style:{cursor:c?"pointer":"default",...s?s(h):{}},className:d?d(h,u):"",children:f?o.jsx("td",{colSpan:t.length,children:f}):t.map((g,m)=>o.jsx("td",{style:{width:g.width,textAlign:g.align||"left"},className:g.className,children:g.render?g.render(h):h[g.key]},`${String(g.key)}-${m}`))},k)})}),x7e=({state:e,onPaginationChange:t,onLoadMore:n,infiniteScroll:c,hasMore:i,text:r,isLoading:s,pageSizeOptions:d})=>{const{page:l,pageSize:h,total:u}=e,p=h===-1?u:h,k=Math.ceil(u/p)||1,f=Math.min(Math.max(1,l),k),g=u===0?0:(f-1)*p+1,m=Math.min(f*p,u),v=I=>{t({page:I})},_=y.useMemo(()=>{if(k<=6)return Array.from({length:k},(q,A)=>A+1);const j=Math.max(f-1,1),L=Math.min(f+1,k),M=j>2,S=L<k-2,C=1,N=k;if(!M&&S)return[...Array.from({length:5},(P,T)=>T+1),"...",k];if(M&&!S){const A=Array.from({length:5},(P,T)=>k-5+T+1);return[C,"...",...A]}if(M&&S){const q=Array.from({length:L-j+1},(A,P)=>j+P);return[C,"...",...q,"...",N]}return[]},[f,k]),x=!!(d&&d.length>0),b=!c&&h!==-1&&k>1&&o.jsxs("div",{className:"pagination-controls",children:[o.jsx("button",{className:"pagination-btn",onClick:()=>v(1),disabled:f===1,title:r?.first||"Premier",children:"<<"}),o.jsx("button",{className:"pagination-btn",onClick:()=>v(f-1),disabled:f===1,title:r?.previous||"Précédent",children:"<"}),(_||[]).map((I,w)=>I==="..."?o.jsx("span",{style:{padding:"0 4px",color:"var(--table-text-muted)"},children:"..."},w):o.jsx("button",{className:`pagination-btn ${I===f?"active":""}`,onClick:()=>v(I),children:I},w)),o.jsx("button",{className:"pagination-btn",onClick:()=>v(f+1),disabled:f===k,title:r?.next||"Suivant",children:">"}),o.jsx("button",{className:"pagination-btn",onClick:()=>v(k),disabled:f===k,title:r?.last||"Dernier",children:">>"})]});return o.jsxs("div",{className:"table-pagination",children:[o.jsx("div",{className:"pagination-summary",children:u>0?o.jsx("span",{children:r?.itemsRange?r.itemsRange(g,m,u):o.jsxs(o.Fragment,{children:[o.jsxs("b",{children:[g,"–",m]})," ",r?.of||"sur"," ",o.jsx("b",{children:u.toLocaleString()})," ",r?.items||"éléments"]})}):o.jsx("span",{children:r?.noResults||"0 résultats"})}),x?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pagination-center",children:b}),o.jsxs("div",{className:"pagination-pagesize",children:[o.jsx("label",{htmlFor:"table-pagination-pagesize",children:r?.perPage||"Par page"}),o.jsx("select",{id:"table-pagination-pagesize",value:h,onChange:I=>t({pageSize:Number(I.target.value),page:1}),children:(d||[]).map(I=>o.jsx("option",{value:I,children:I},I))})]})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"pagination-spacer"}),b]}),!c&&n&&i&&o.jsx("div",{className:"pagination-load-more",children:o.jsx("button",{className:"btn-load-more",onClick:n,disabled:s,style:{padding:"8px 16px",backgroundColor:"white",border:"1px solid #ddd",borderRadius:"6px",cursor:s?"wait":"pointer",color:"#555",fontWeight:600},children:s?r?.loading||"Chargement...":r?.loadMore||"Charger plus"})})]})},JL=e=>e.reorderable!==!1,_7e=(e,t)=>{if(!t||t.length===0)return e;const n=new Map(t.map((r,s)=>[r,s])),c=e.map((r,s)=>({col:r,index:s})).filter(({col:r})=>JL(r)).sort((r,s)=>{const d=n.get(String(r.col.key)),l=n.get(String(s.col.key));return d!==void 0&&l!==void 0?d-l:d!==void 0?-1:l!==void 0?1:r.index-s.index}).map(({col:r})=>r);let i=0;return e.map(r=>JL(r)?c[i++]:r)},mz=(e,t,n)=>{const c=e.filter(JL).map(d=>String(d.key)),i=c.indexOf(t),r=c.indexOf(n);if(i===-1||r===-1||i===r)return null;const s=[...c];return s.splice(i,1),s.splice(r,0,t),s},M7e=(e,t,n)=>{const c=e.filter(JL).map(s=>String(s.key)),i=c.indexOf(t),r=c[i+n];return i===-1||r===void 0?null:mz(e,t,r)},DC=({data:e,columns:t,isLoading:n,pagination:c,onPaginationChange:i,onSortChange:r,rowKey:s,loaderSize:d=40,stickyHeader:l=!0,height:h,minHeight:u="200px",text:p,onLoadMore:k,infiniteScroll:f,hasMore:g,tableState:m,className:v,style:_,rowStyle:x,onRowClick:b,rowClassName:I,titleKey:w,removeLabelSpan:j=!1,a11yConfig:L,renderSeparator:M,pageSizeOptions:S,columnOrder:C,onColumnOrderChange:N,columnReorderable:q=!1})=>{const A=y.useMemo(()=>({...p}),[p]),P=y.useMemo(()=>_7e(t,C),[t,C]),T=(U,K)=>{const te=mz(P,U,K);te&&N?.(te)},H=(U,K)=>{const te=M7e(P,U,K);te&&N?.(te)},z=y.useRef(null);y.useEffect(()=>{if(!f||!k||!g||n)return;const U=new IntersectionObserver(K=>{K[0].isIntersecting&&k()},{threshold:.1});return z.current&&U.observe(z.current),()=>U.disconnect()},[f,k,g,n]);const{tableState:$,handleSort:R}=p7e({initialSortBy:null,onSortChange:r}),V=(m?.sortBy!==void 0?m.sortBy:$.sortBy)??void 0,F=m?.sortOrder!==void 0?m.sortOrder:$.sortOrder,X=U=>{const K=V,te=F;let E="asc";K===U&&(E=te==="asc"?"desc":"asc"),m?.sortBy!==void 0?r(U,E):R(U)};return o.jsxs("div",{className:`table-container ${v||""}`,style:_,title:oe(L,w),children:[o.jsxs("div",{className:"table-frame",style:{height:h??void 0,minHeight:u??void 0},children:[n&&o.jsx("div",{className:"table-loader-overlay",children:o.jsx("div",{className:"spinner",style:{width:d,height:d,borderTopColor:"var(--table-primary)"}})}),o.jsxs("div",{className:`table-wrapper ${l?"sticky-header":""}`,children:[o.jsxs("table",{className:"data-table",children:[o.jsx(g7e,{columns:P,sortBy:V,sortOrder:F,onSort:X,removeLabelSpan:j,reorderable:q&&!!N,onColumnMove:T,onColumnShift:H}),o.jsx(v7e,{data:e,columns:P.map(U=>({...U,render:U.render?K=>U.render(K,{}):void 0})),rowKey:s,onRowClick:b,isLoading:n,text:A,rowStyle:typeof x=="function"?x:x?()=>x:void 0,rowClassName:I,renderSeparator:M})]}),f&&o.jsx("div",{ref:z,style:{height:20,margin:10}})]})]}),o.jsx(x7e,{state:c,onPaginationChange:i,text:A,onLoadMore:k,infiniteScroll:f,hasMore:g,isLoading:n,pageSizeOptions:S})]})};function fz(e,t,n,c,i,r,s){e.forEach(d=>{const l=d[n],h=d[t]??[],u=h.length>0,p=c.has(l);r.set(l,{level:i,hasChildren:u,isExpanded:p}),s.push(d),u&&p&&fz(h,t,n,c,i+1,r,s)})}const L7e=({data:e,columns:t,rowKey:n,childrenKey:c="children",treeColumnKey:i,defaultExpandedKeys:r,expandedKeys:s,onExpandedKeysChange:d,indent:l=20,showFooter:h=!0,pagination:u,onPaginationChange:p,colors:k,rowClassName:f,...g})=>{const[m,v]=y.useState(()=>new Set(r)),_=s!==void 0,x=y.useMemo(()=>_?new Set(s):m,[_,s,m]),b=C=>{const N=new Set(x);N.has(C)?N.delete(C):N.add(C),_?d?.(Array.from(N)):v(N)},I=y.useMemo(()=>{if(!u||u.pageSize===-1)return e;const C=(u.page-1)*u.pageSize;return e.slice(C,C+u.pageSize)},[e,u]),{rows:w,meta:j}=y.useMemo(()=>{const C=new Map,N=[];return fz(I,c,n,x,0,C,N),{rows:N,meta:C}},[I,c,n,x]),L=y.useMemo(()=>t.reduce((C,N)=>{const q=N.width?parseInt(N.width,10):NaN;return C+(Number.isFinite(q)?q:140)},0),[t]),M=y.useMemo(()=>t.map(C=>C.key!==i?C:{...C,reorderable:!1,render:N=>{const q=N[n],{level:A,hasChildren:P,isExpanded:T}=j.get(q)??{level:0,hasChildren:!1,isExpanded:!1},H=C.render?C.render(N):N[C.key];return o.jsxs("span",{className:"htl-cell",style:{paddingLeft:A*l},children:[P?o.jsx("button",{type:"button",className:"htl-toggle",onClick:z=>{z.stopPropagation(),b(q)},children:o.jsx(hz,{width:16,height:16,style:{fill:"currentColor",transform:T?"rotate(0deg)":"rotate(-90deg)",transition:"transform 0.15s ease"}})}):o.jsx("span",{className:"htl-toggle-spacer"}),H]})}}),[t,i,j,l,n]),S=(C,N)=>{const q=C[n],{level:A,hasChildren:P,isExpanded:T}=j.get(q)??{level:0,hasChildren:!1,isExpanded:!1},H=["htl-row"];return A===0?(H.push("htl-root"),P&&T&&H.push("htl-root-expanded")):P&&H.push("htl-group"),f&&H.push(f(C,N,A)),H.join(" ")};return o.jsx("div",{className:`htl-wrapper ${h?"":"htl-no-footer"}`,style:{"--htl-active-bg":k?.activeRowBackground,"--htl-nested-bg":k?.groupRowBackground,"--htl-toggle-color":k?.toggleIconColor,"--htl-root-color":k?.rootTextColor,"--htl-table-min-width":`${L}px`},children:o.jsx(DC,{...g,data:w,columns:M,rowKey:n,rowClassName:S,pagination:u??{page:1,pageSize:w.length||1,total:w.length},onPaginationChange:p??(()=>{})})})},b7e="_datePickerContainer_1tq0k_3",I7e="_label_1tq0k_16",w7e="_displayNode_1tq0k_23",C7e="_datePickerButton_1tq0k_30",j7e="_datePickerButtonDisabled_1tq0k_50",N7e="_datePickerButtonOpen_1tq0k_59",S7e="_datePickerLabel_1tq0k_68",$7e="_placeholder_1tq0k_79",q7e="_trailingIcons_1tq0k_83",A7e="_chevron_1tq0k_89",z7e="_clearButton_1tq0k_97",P7e="_errorMessage_1tq0k_114",V7e="_dropdown_1tq0k_119",T7e="_dropdownAdvanced_1tq0k_131",D7e="_calendarHeader_1tq0k_153",H7e="_navButton_1tq0k_162",B7e="_headerSelectors_1tq0k_181",R7e="_monthSelector_1tq0k_189",F7e="_yearSelector_1tq0k_190",E7e="_selectorButton_1tq0k_194",O7e="_selectorChevron_1tq0k_211",U7e="_selectorChevronOpen_1tq0k_216",W7e="_monthDropdown_1tq0k_220",G7e="_yearDropdown_1tq0k_221",K7e="_monthItem_1tq0k_241",Z7e="_yearItem_1tq0k_242",X7e="_monthItemSelected_1tq0k_264",Y7e="_yearItemSelected_1tq0k_265",J7e="_weekdays_1tq0k_269",Q7e="_weekday_1tq0k_269",eve="_calendarGrid_1tq0k_285",tve="_dateCell_1tq0k_294",ave="_dateCellSelected_1tq0k_317",nve="_dateCellInRange_1tq0k_321",ove="_dateCellOtherMonth_1tq0k_326",cve="_dateCellOtherMonthSelected_1tq0k_330",ive="_calendarFooter_1tq0k_334",rve="_cancelButton_1tq0k_342",sve="_applyButton_1tq0k_343",dve="_timePickerContainer_1tq0k_387",lve="_timeGroup_1tq0k_396",hve="_timeLabel_1tq0k_403",uve="_timeInputWrapper_1tq0k_409",pve="_timeInput_1tq0k_409",yve="_timeSeparator_1tq0k_437",ae={datePickerContainer:b7e,label:I7e,displayNode:w7e,datePickerButton:C7e,datePickerButtonDisabled:j7e,datePickerButtonOpen:N7e,datePickerLabel:S7e,placeholder:$7e,trailingIcons:q7e,chevron:A7e,clearButton:z7e,errorMessage:P7e,dropdown:V7e,dropdownAdvanced:T7e,calendarHeader:D7e,navButton:H7e,headerSelectors:B7e,monthSelector:R7e,yearSelector:F7e,selectorButton:E7e,selectorChevron:O7e,selectorChevronOpen:U7e,monthDropdown:W7e,yearDropdown:G7e,monthItem:K7e,yearItem:Z7e,monthItemSelected:X7e,yearItemSelected:Y7e,weekdays:J7e,weekday:Q7e,calendarGrid:eve,dateCell:tve,dateCellSelected:ave,dateCellInRange:nve,dateCellOtherMonth:ove,dateCellOtherMonthSelected:cve,calendarFooter:ive,cancelButton:rve,applyButton:sve,timePickerContainer:dve,timeGroup:lve,timeLabel:hve,timeInputWrapper:uve,timeInput:pve,timeSeparator:yve},kve=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"m336-280 144-144 144 144 56-56-144-144 144-144-56-56-144 144-144-144-56 56 144 144-144 144zM480-80q-83 0-156-31.5T197-197t-85.5-127T80-480t31.5-156T197-763t127-85.5T480-880t156 31.5T763-763t85.5 127T880-480t-31.5 156T763-197t-127 85.5T480-80m0-80q134 0 227-93t93-227-93-227-227-93-227 93-93 227 93 227 227 93m0-320"})),mve=y.memo(kve),f$=["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],fve=["Lun","Mar","Mer","Jeu","Ven","Sam","Dim"],fi=({value:e,onChange:t,label:n,placeholder:c="Sélectionner une date...",className:i="",fullWidth:r=!0,disabled:s=!1,error:d,buttonHeight:l="2.75rem",buttonPadding:h="0.75rem 1rem 0.75rem 1rem",dropdownMaxHeight:u="auto",fontSize:p="0.875rem",iconSize:k="1.5rem",labelMarginBottom:f="0.5rem",errorMarginTop:g="0.25rem",dropdownMarginTop:m="0.25rem",itemPadding:v="0.5rem 0.75rem",fontWeight:_="400",buttonBgColor:x,buttonBorderColor:b,buttonTextColor:I,dropdownBgColor:w="var(--color-card-background, #ffffff)",itemHoverColor:j,selectedItemBgColor:L,iconColor:M,errorColor:S,labelColor:C,placeholderColor:N,borderRadius:q="var(--radius-content)",borderWidth:A="0.0625rem",boxShadow:P="0 0.25rem 0.75rem rgba(0, 0, 0, 0.1)",transitionDuration:T="0.2s",transitionTiming:H="ease",dateCellSize:z="2.5rem",headerTextColor:$="var(--color-text, #6c757d)",weekdayTextColor:R="color-mix(in srgb, var(--color-text, #6c757d) 70%, transparent)",currentMonthDateColor:V="var(--color-text, #212529)",otherMonthDateColor:F="color-mix(in srgb, var(--color-text, #adb5bd) 55%, transparent)",selectedDateBgColor:X="var(--color-primary, #00A6D9)",selectedDateTextColor:U="var(--color-text-on-primary, #ffffff)",cancelButtonBgColor:K="var(--color-switcher-background, #e9ecef)",cancelButtonTextColor:te="var(--color-text, #212529)",applyButtonBgColor:E="var(--color-primary, #00A6D9)",applyButtonTextColor:Q="var(--color-text-on-primary, #ffffff)",actionButtonPadding:de,actionButtonFontSize:G,width:ce,displayNode:ue=void 0,displayMode:ye="auto",displayNodeAriaLabel:fe,dropdownPosition:Z="auto",dropdownAlignment:ne="right",dropdownWidth:le,withBorder:je=!1,icon:qe,precision:ve="day",horizontalTimePicker:Se=!1,hoursLabel:Ke="Heures",minutesLabel:Dt="Minutes",lowerLimit:se=null,upperLimit:Ne=null,strictTimeLimits:o1=!1,outOfLimitsMessage:Ie="La date/heure choisie est hors des limites autorisées",months:pt,weekdays:pb,cancelText:yb="Annuler",applyText:kb="Appliquer",prevMonthAriaLabel:bi="Mois précédent",nextMonthAriaLabel:W="Mois suivant",calendarAriaLabel:he="Sélecteur de date",openedAriaLabel:ge="Ouvrir le sélecteur de date",selectedDateAriaLabel:Ht="Date sélectionnée: ",rotateIcon:jt=!0,clearable:nt=!1,clearAriaLabel:ta="Effacer la date",isAdvanced:Ze=!1,displayMonth:c1=null,onDisplayMonthChange:Ii,selectionMode:aa="single",rangeStart:na=null,rangeEnd:i1=null,selectedDates:oa=[],isDateInRange:ca,isDateSelected:Sz,isRangeStart:$z,isRangeEnd:qz,hideOutsideDays:Az=!1})=>{const Bt=D=>{if(D instanceof Date)return isNaN(D.getTime())?null:D;if(typeof D=="string"&&D){const Y=new Date(D);return isNaN(Y.getTime())?null:Y}return null},[ot,Rt]=y.useState(Ze),[zz,Pz]=y.useState(!1),[P1,Vz]=y.useState({top:0,left:0,width:0}),[HC,Tz]=y.useState("bottom"),[BC,Dz]=y.useState(null),[Hz,RC]=y.useState(Bt(e)||new Date),me=c1??Hz,wi=D=>{c1?Ii?.(D):RC(D)},[V1,mb]=y.useState(Bt(e)),[Ci,fb]=y.useState(Bt(e)?.getHours()??0),[ji,gb]=y.useState(Bt(e)?.getMinutes()??0),[vb,r1]=y.useState(!1),[xb,s1]=y.useState(!1),T1=y.useRef(null),d1=y.useRef(null),FC=y.useRef(null),_b=y.useRef(null),Mb=y.useRef(null);y.useEffect(()=>{Ze&&(Rt(!0),Pz(!0))},[Ze]);const EC=y.useRef(Bt(e)?.getTime());y.useEffect(()=>{const D=Bt(e),Y=D?.getTime();Y!==EC.current&&(EC.current=Y,mb(D),D&&(RC(D),fb(D.getHours()),gb(D.getMinutes())))},[e]);const OC=y.useCallback(()=>{if(d1.current){const D=d1.current.getBoundingClientRect();Vz({top:D.top,left:D.left,width:D.width})}},[]),UC=8,Ni=y.useCallback(()=>{if(!d1.current)return;const D=d1.current.getBoundingClientRect(),Y=(parseFloat(m.replace("rem",""))||0)*16,Me=D.top-Y-UC,He=window.innerHeight-D.bottom-Y-UC;let Ee;if(Z!=="auto")Ee=Z;else{const Be=FC.current?.scrollHeight??0;Ee=Be<=He?"bottom":Be<=Me||Me>He?"top":"bottom"}Tz(Be=>Be===Ee?Be:Ee),Dz(Math.max(Ee==="bottom"?He:Me,0))},[Z,m]),l1=y.useCallback(()=>{OC(),Ni()},[OC,Ni]);y.useEffect(()=>(ot&&(l1(),window.addEventListener("scroll",l1,!0),window.addEventListener("resize",l1)),()=>{window.removeEventListener("scroll",l1,!0),window.removeEventListener("resize",l1)}),[ot,l1]),y.useLayoutEffect(()=>{ot&&Ni()},[ot,Ni]),y.useEffect(()=>{const D=Y=>{if(!Ze){if(T1.current&&!T1.current.contains(Y.target)){const Me=document.getElementById("datepicker-dropdown");if(Me&&Me.contains(Y.target))return;Rt(!1),r1(!1),s1(!1)}_b.current&&!_b.current.contains(Y.target)&&r1(!1),Mb.current&&!Mb.current.contains(Y.target)&&s1(!1)}};return document.addEventListener("mousedown",D),()=>document.removeEventListener("mousedown",D)},[Ze]);const WC=D=>new Date(D.getFullYear(),D.getMonth()+1,0).getDate(),Bz=D=>{const Y=new Date(D.getFullYear(),D.getMonth(),1).getDay();return Y===0?6:Y-1},Rz=()=>{const D=[],Y=Bz(me),Me=WC(me),He=new Date(me.getFullYear(),me.getMonth()-1,1),Ee=WC(He);for(let Oe=Y-1;Oe>=0;Oe--)D.push(new Date(me.getFullYear(),me.getMonth()-1,Ee-Oe));for(let Oe=1;Oe<=Me;Oe++)D.push(new Date(me.getFullYear(),me.getMonth(),Oe));const Be=42-D.length;for(let Oe=1;Oe<=Be;Oe++)D.push(new Date(me.getFullYear(),me.getMonth()+1,Oe));return D},Fz=(D,Y)=>!D||!Y?!1:D.getDate()===Y.getDate()&&D.getMonth()===Y.getMonth()&&D.getFullYear()===Y.getFullYear(),Ez=D=>D.getMonth()===me.getMonth()&&D.getFullYear()===me.getFullYear(),Si=o1?D=>Math.floor(D.getTime()/6e4)*6e4:D=>new Date(D.getFullYear(),D.getMonth(),D.getDate()).getTime(),GC=D=>!(se&&Si(D)<Si(se)||Ne&&Si(D)>Si(Ne)),KC=V1?(()=>{const D=new Date(V1);return D.setHours(Ci),D.setMinutes(ji),D})():null,h1=KC?!GC(KC):!1,$i=new Date(me.getFullYear(),me.getMonth()-1,1),qi=new Date(me.getFullYear(),me.getMonth()+1,1),Lb=!!(se&&($i.getFullYear()<se.getFullYear()||$i.getFullYear()===se.getFullYear()&&$i.getMonth()<se.getMonth())),bb=!!(Ne&&(qi.getFullYear()>Ne.getFullYear()||qi.getFullYear()===Ne.getFullYear()&&qi.getMonth()>Ne.getMonth())),Oz=()=>{Lb||wi($i)},Uz=()=>{bb||wi(qi)},Wz=D=>{if(!s){const Y=new Date(D);Y.setHours(Ci),Y.setMinutes(ji),mb(Y),Ze&&t(Y)}},Gz=()=>{if(!s){if(V1){const D=new Date(V1);if(D.setHours(Ci),D.setMinutes(ji),!GC(D))return;t(D)}else t(null);Rt(!1)}},Kz=()=>{const D=Bt(e);mb(D),D&&(fb(D.getHours()),gb(D.getMinutes())),Rt(!1)},Zz=D=>{wi(new Date(me.getFullYear(),D,1)),r1(!1)},Xz=D=>{wi(new Date(D,me.getMonth(),1)),s1(!1)},Yz=()=>{const D=me.getFullYear(),Y=se?se.getFullYear():D-10,Me=Ne?Ne.getFullYear():D+10,He=[];for(let Ee=Y;Ee<=Me;Ee++)He.push(Ee);return He},Jz=D=>{const Y=me.getFullYear();return!!(se&&(Y<se.getFullYear()||Y===se.getFullYear()&&D<se.getMonth())||Ne&&(Y>Ne.getFullYear()||Y===Ne.getFullYear()&&D>Ne.getMonth()))},Qz=D=>{if(!s)switch(D.key){case"Enter":case" ":D.preventDefault(),Rt(!ot);break;case"Escape":Rt(!1),r1(!1),s1(!1);break;case"Tab":ot&&(Rt(!1),r1(!1),s1(!1));break}},eP={width:ce||(r?"100%":"auto"),fontSize:p,fontWeight:_},tP={height:l,padding:h,backgroundColor:x||"var(--color-card-background, #ffffff)",border:je?void 0:"none",borderColor:d?S||"#dc3545":b||"var(--color-border, #dee2e6)",color:I||"var(--color-text, #212529)",borderRadius:q,borderWidth:A,fontWeight:_,transition:`all ${T} ${H}`},aP=Se?{flexDirection:"column",borderTop:"none",borderLeft:"1px solid var(--color-border, #eee)"}:{},nP=Se?{flex:1,minWidth:0}:void 0,oP=Se?{display:"flex",flexDirection:"row",alignItems:"stretch"}:void 0,cP={backgroundColor:w||"var(--color-card-background, #ffffff)",maxHeight:u==="auto"?BC!=null?`${BC}px`:void 0:u,overflowY:"auto",borderRadius:q,borderWidth:A,boxShadow:P,transition:`opacity ${T} ${H}, transform ${T} ${H}`,position:"fixed",top:HC==="bottom"?P1.top+(d1.current?.offsetHeight||0)+parseFloat(m.replace("rem",""))*16:"auto",bottom:HC==="top"?window.innerHeight-P1.top+parseFloat(m.replace("rem",""))*16:"auto",left:ne==="left"?P1.left:"auto",right:ne==="right"?window.innerWidth-(P1.left+P1.width):"auto",width:le||"30vw",minWidth:le?void 0:0,zIndex:10001},ZC={width:k,height:k,color:M||"var(--color-text, #6c757d)","--icon-rotation":jt&&ot?"rotate(180deg)":"rotate(0deg)"},iP={color:C||"var(--color-text, #212529)",marginBottom:f,fontWeight:_},rP={color:N||"color-mix(in srgb, var(--color-text, #6c757d) 60%, transparent)"},sP={color:S||"#dc3545",marginTop:g},dP=Rz(),yt=Bt(e),XC=D=>`${D.getDate().toString().padStart(2,"0")}/${(D.getMonth()+1).toString().padStart(2,"0")}/${D.getFullYear()}`,YC=yt?ve==="minutes"?`${XC(yt)} ${yt.getHours().toString().padStart(2,"0")}:${yt.getMinutes().toString().padStart(2,"0")}`:XC(yt):"",JC=!!ue&&(ye==="icon"||ye==="auto"&&!yt),lP=nt&&!JC&&!!yt&&!s,hP={width:"0.875rem",height:"0.875rem",color:M||"var(--color-text, #6c757d)"},uP=fe||(yt?`${Ht}${YC}`:ge);return o.jsxs("div",{className:`${ae.datePickerContainer} ${i}`,ref:T1,style:eP,"data-fullwidth":r,"data-disabled":s,"data-error":!!d,children:[n&&o.jsx("label",{className:ae.label,style:iP,children:n}),!Ze&&o.jsxs("button",{ref:d1,type:"button",onClick:()=>!s&&Rt(!ot),onKeyDown:Qz,className:`
|
|
8337
8337
|
${ae.datePickerButton}
|
|
8338
8338
|
${ot?ae.datePickerButtonOpen:""}
|
|
8339
8339
|
${s?ae.datePickerButtonDisabled:""}
|
|
8340
|
-
`,style:tP,disabled:s,"aria-expanded":ot,"aria-haspopup":"dialog","aria-label":uP,"aria-labelledby":n?`${n}-label`:void 0,children:[JC?o.jsx("span",{className:ae.displayNode,"aria-hidden":!0,children:ue}):o.jsx("span",{className:`${ae.datePickerLabel} ${yt?"":ae.placeholder}`,style:yt?void 0:rP,children:yt?YC:c}),o.jsxs("span",{className:ae.trailingIcons,children:[lP&&o.jsx("span",{role:"button",tabIndex:0,className:ae.clearButton,"aria-label":ta,onClick:H=>{H.stopPropagation(),t(null)},onKeyDown:H=>{(H.key==="Enter"||H.key===" ")&&(H.preventDefault(),H.stopPropagation(),t(null))},children:o.jsx(mve,{fill:"var(--color-text)",style:hP})}),qe?o.jsx("span",{className:ae.chevron,style:ZC,children:qe}):o.jsx(j1,{fill:"var(--color-text)",className:`${ae.chevron} ${ot?ae.chevronOpen:""}`,style:ZC})]})]}),d&&o.jsx("div",{className:ae.errorMessage,style:sP,children:d}),(Ze||ot)&&!s&&gi.createPortal(o.jsxs("div",{id:"datepicker-dropdown",ref:FC,className:`${ae.dropdown} ${Ze?ae.dropdownAdvanced:""}`,style:Ze?{position:"relative",top:"auto",right:"auto"}:cP,role:"dialog","aria-label":he,children:[o.jsxs("div",{style:oP,children:[o.jsxs("div",{style:nP,children:[o.jsxs("div",{className:ae.calendarHeader,children:[o.jsx("button",{type:"button",className:ae.navButton,onClick:Oz,"aria-label":bi,disabled:Lb,style:Lb?{opacity:.3,cursor:"not-allowed"}:void 0,children:"‹"}),o.jsxs("div",{className:ae.headerSelectors,children:[o.jsxs("div",{className:ae.monthSelector,ref:_b,children:[o.jsxs("button",{type:"button",className:ae.selectorButton,onClick:()=>r1(!vb),style:{color:A,"--hover-color":j},children:[(pt||f$)[me.getMonth()],o.jsx(j1,{fill:"var(--color-text)",className:`${ae.selectorChevron} ${vb?ae.selectorChevronOpen:""}`,style:{width:"0.75rem",height:"0.75rem",marginLeft:"0.25rem"}})]}),vb&&o.jsx("div",{className:ae.monthDropdown,children:(pt||f$).map((H,X)=>{const Me=Jz(X);return o.jsx("button",{type:"button",disabled:Me,className:`${ae.monthItem} ${me.getMonth()===X?ae.monthItemSelected:""}`,onClick:()=>!Me&&Zz(X),style:{padding:v,backgroundColor:me.getMonth()===X?M||"var(--color-lite-primary, #e7f1ff)":w,opacity:Me?.3:1,cursor:Me?"not-allowed":"pointer"},onMouseEnter:He=>{j&&me.getMonth()!==X&&!Me&&(He.currentTarget.style.backgroundColor=j)},onMouseLeave:He=>{j&&(He.currentTarget.style.backgroundColor=me.getMonth()===X?M||"var(--color-lite-primary, #e7f1ff)":w)},children:H},X)})})]}),o.jsxs("div",{className:ae.yearSelector,ref:Mb,children:[o.jsxs("button",{type:"button",className:ae.selectorButton,onClick:()=>s1(!xb),style:{color:A,"--hover-color":j},children:[me.getFullYear(),o.jsx(j1,{fill:"var(--color-text)",className:`${ae.selectorChevron} ${xb?ae.selectorChevronOpen:""}`,style:{width:"0.75rem",height:"0.75rem",marginLeft:"0.25rem"}})]}),xb&&o.jsx("div",{className:ae.yearDropdown,children:Yz().map(H=>o.jsx("button",{type:"button",className:`${ae.yearItem} ${me.getFullYear()===H?ae.yearItemSelected:""}`,onClick:()=>Xz(H),style:{padding:v,backgroundColor:me.getFullYear()===H?M||"var(--color-lite-primary, #e7f1ff)":w},onMouseEnter:X=>{j&&me.getFullYear()!==H&&(X.currentTarget.style.backgroundColor=j)},onMouseLeave:X=>{j&&(X.currentTarget.style.backgroundColor=me.getFullYear()===H?M||"var(--color-lite-primary, #e7f1ff)":w)},children:H},H))})]})]}),o.jsx("button",{type:"button",className:ae.navButton,onClick:Uz,"aria-label":W,disabled:bb,style:bb?{opacity:.3,cursor:"not-allowed"}:void 0,children:"›"})]}),o.jsx("div",{className:ae.weekdays,children:(pb||fve).map(H=>o.jsx("div",{className:ae.weekday,style:{color:F},children:H},H))}),o.jsx("div",{className:ae.calendarGrid,children:dP.map((H,X)=>{if(!H)return null;const Me=Ue=>new Date(Ue.getFullYear(),Ue.getMonth(),Ue.getDate()).getTime(),He=Ue=>Ue?`${Ue.getFullYear()}-${Ue.getMonth()}-${Ue.getDate()}`:"",Ee=`${H.getFullYear()}-${H.getMonth()}-${H.getDate()}`,Be=aa==="multiple"?Sz?.(H)??oa.some(Ue=>Ue&&He(Ue)===Ee):aa==="range"?($z?.(H)??(!!na&&He(na)===Ee))||(qz?.(H)??(!!i1&&He(i1)===Ee)):Fz(H,V1),Oe=aa==="range"?ca?.(H)??(!!na&&!!i1&&Me(H)>=Me(na)&&Me(H)<=Me(i1)):!1,Ib=Ez(H),u1=!!(se&&Me(H)<Me(se)||Ne&&Me(H)>Me(Ne)),QC="color-mix(in srgb, var(--color-primary) 16%, transparent)";return Az&&!Ib?o.jsx("span",{"aria-hidden":"true",style:{display:"block",width:z,height:z}},X):o.jsx("button",{type:"button",className:`${ae.dateCell} ${Be?ae.dateCellSelected:""} ${Be?ae.dateCellOtherMonthSelected:""} ${Oe&&!Be?ae.dateCellInRange:""} ${Ib?"":ae.dateCellOtherMonth} ${u1?ae.dateCellDisabled:""}`,onClick:()=>!u1&&Wz(H),disabled:u1,style:{width:z,height:z,borderRadius:aa==="multiple"&&Be?"50%":void 0,color:Be?U:Ib?T:R,backgroundColor:Be?Y:Oe?QC:"transparent",opacity:u1?.4:1,cursor:u1?"not-allowed":"pointer"},onMouseEnter:Ue=>{!Be&&!u1&&j&&(Ue.currentTarget.style.backgroundColor=j)},onMouseLeave:Ue=>{Be||(Ue.currentTarget.style.backgroundColor=Oe?QC:"transparent")},children:H.getDate()},X)})})]}),ve==="minutes"&&o.jsxs("div",{className:ae.timePickerContainer,style:aP,children:[o.jsxs("div",{className:ae.timeGroup,children:[o.jsx("span",{className:ae.timeLabel,children:Ke}),o.jsx("div",{className:ae.timeInputWrapper,children:o.jsx("input",{type:"number",min:"0",max:"23",value:Ci,onChange:H=>{const X=parseInt(H.target.value);!isNaN(X)&&X>=0&&X<=23&&fb(X)},className:ae.timeInput,style:h1?{borderColor:"#dc2626",color:"#dc2626"}:void 0})})]}),!Se&&o.jsx("span",{className:ae.timeSeparator,children:":"}),o.jsxs("div",{className:ae.timeGroup,children:[o.jsx("span",{className:ae.timeLabel,children:Dt}),o.jsx("div",{className:ae.timeInputWrapper,children:o.jsx("input",{type:"number",min:"0",max:"59",value:ji,onChange:H=>{const X=parseInt(H.target.value);!isNaN(X)&&X>=0&&X<=59&&gb(X)},className:ae.timeInput,style:h1?{borderColor:"#dc2626",color:"#dc2626"}:void 0})})]})]})]}),h1&&o.jsx("div",{role:"alert",style:{color:"#dc2626",fontSize:"0.75rem",padding:"0 4px 4px",textAlign:"center"},children:Ie}),!Ze&&o.jsxs("div",{className:ae.calendarFooter,children:[o.jsx("button",{type:"button",className:ae.cancelButton,onClick:Kz,style:{backgroundColor:K,color:te,borderRadius:$,padding:de??v,fontSize:G},children:yb}),o.jsx("button",{type:"button",className:ae.applyButton,onClick:Gz,disabled:h1,style:{backgroundColor:E,color:Q,borderRadius:$,padding:de??v,fontSize:G,opacity:h1?.5:1,cursor:h1?"not-allowed":"pointer"},children:kb})]})]}),Ze&&zz&&T1.current?T1.current:document.body)]})},gve="_container_rp1nx_1",vve="_chevron_rp1nx_6",xve="_trigger_rp1nx_14",_ve="_popover_rp1nx_37",Mve="_top_rp1nx_54",Lve="_tabs_rp1nx_63",bve="_tabActive_rp1nx_85",Ive="_summary_rp1nx_90",wve="_selectionCount_rp1nx_96",Cve="_calendars_rp1nx_115",jve="_datePickerPair_rp1nx_142",Nve="_footer_rp1nx_199",Sve="_presets_rp1nx_208",$ve="_actions_rp1nx_222",qve="_daysCount_rp1nx_227",Ave="_clear_rp1nx_232",zve="_apply_rp1nx_239",Pe={container:gve,chevron:vve,trigger:xve,popover:_ve,top:Mve,tabs:Lve,tabActive:bve,summary:Ive,selectionCount:wve,calendars:Cve,datePickerPair:jve,footer:Nve,presets:Sve,actions:$ve,daysCount:qve,clear:Ave,apply:zve},Pve=["single","range","multiple"],Vve=["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],Tve=["L","M","M","J","V","S","D"],Dve=[],Hve=[],Wc=(e,t)=>(e?.getTime()??null)===(t?.getTime()??null),g$=(e,t)=>e.length===t.length&&e.every((n,c)=>Wc(n,t[c])),Bve=e=>`${String(e.getDate()).padStart(2,"0")}/${String(e.getMonth()+1).padStart(2,"0")}/${e.getFullYear()}`,li=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),gz=(e,t="fr-FR")=>{const n=[...e].sort((s,d)=>s.getTime()-d.getTime()),c=[];n.forEach(s=>{const d=`${s.getFullYear()}-${s.getMonth()}`,l=s.toLocaleDateString(t,{month:"short"}),h=c[c.length-1];!h||h.key!==d?c.push({key:d,label:l,days:[s.getDate()]}):h.days.push(s.getDate())});const i=`${n.length} date${n.length>1?"s":""}`,r=c.map(s=>`${s.days.join(", ")} ${s.label}`).join(" · ");return r?`${i} · ${r}`:i},Rve=(e,t)=>{if(!e&&!t)return[];const n=li(e??t),c=li(t??e),i=n.getTime()<=c.getTime()?n:c,r=n.getTime()<=c.getTime()?c:n,s=[];for(let d=new Date(i);d.getTime()<=r.getTime();d.setDate(d.getDate()+1))s.push(new Date(d));return s},Fve=({mode:e="range",availableModes:t,startDate:n=null,endDate:c=null,dates:i=Dve,onRangeChange:r,onDatesChange:s,onClear:d,onApply:l,presets:h=Hve,placeholder:u="Sélectionner une période...",displayFormat:p,datesFormat:k=gz,dateFormat:f=Bve,months:g=Vve,weekdays:m=Tve,labels:v={},lowerLimit:_,upperLimit:x,selectablePeriod:b="past",disabled:I=!1,width:w="20rem",calendarNode:j,previewStart:M,previewEnd:L,previewDates:S,onModeChange:C,onDraftRangeChange:N,onDraftDatesChange:$,className:q=""})=>{const[P,D]=y.useState(!1),V=li(new Date),z=b==="future"&&(!_||_<V)?V:_,A=b==="past"&&(!x||x>V)?V:x,F=(t??Pve).join("|"),T=y.useMemo(()=>(F?F.split("|"):[]).filter((he,ge,Ht)=>Ht.indexOf(he)===ge),[F]),[R,Y]=y.useState(T.includes(e)?e:T[0]??"range");y.useEffect(()=>{T.includes(R)||Y(T[0]??"range")},[R,T]),y.useEffect(()=>{T.includes(e)&&Y(e)},[T,e]);const[U,K]=y.useState(n),[te,E]=y.useState(c),[Q,de]=y.useState(i),[G,ce]=y.useState(e),ue=b==="past"?te??U??Q[0]??new Date:new Date,[ye,fe]=y.useState(new Date(ue.getFullYear(),ue.getMonth()+(b==="past"?-1:0),1)),Z=y.useRef(b);y.useEffect(()=>{if(Z.current===b)return;Z.current=b;const W=new Date;fe(new Date(W.getFullYear(),W.getMonth()+(b==="past"?-1:0),1))},[b]);const ne=y.useMemo(()=>new Date(ye.getFullYear(),ye.getMonth()+1,1),[ye]),le=y.useRef(null),je=y.useRef(null),qe=y.useRef(null),[ve,Se]=y.useState(null),Ke=y.useCallback(()=>{const W=je.current,he=qe.current;if(!W||!he)return;const ge=W.getBoundingClientRect(),Ht=he.getBoundingClientRect(),jt=8,nt=4,ta=Math.min(Ht.width,window.innerWidth-jt*2),Ze=Math.min(Math.max(ge.right-ta,jt),window.innerWidth-ta-jt),c1=Math.max(window.innerHeight-ge.bottom-nt-jt,0),Ii=Math.max(ge.top-nt-jt,0),aa=Ht.height<=c1||c1>=Ii,na=aa?c1:Ii,i1=aa?ge.bottom+nt:Math.max(jt,ge.top-nt-Math.min(Ht.height,na)),oa={left:Ze,top:i1,width:ta,maxHeight:na,visibility:"visible"};Se(ca=>ca?.left===oa.left&&ca?.top===oa.top&&ca?.width===oa.width&&ca?.maxHeight===oa.maxHeight?ca:oa)},[]);y.useEffect(()=>{M!==void 0||L!==void 0||(K(W=>Wc(W,n)?W:n),E(W=>Wc(W,c)?W:c))},[n,c,M,L]),y.useEffect(()=>{if(M===void 0&&L===void 0)return;const W=M??null,he=L??null;K(ge=>Wc(ge,W)?ge:W),E(ge=>Wc(ge,he)?ge:he)},[M,L]),y.useEffect(()=>{S===void 0&&de(W=>g$(W,i)?W:i)},[i,S]),y.useEffect(()=>{S!==void 0&&de(W=>g$(W,S)?W:S)},[S]);const Dt=y.useRef("");y.useEffect(()=>{const W=`${U?.getTime()??""}:${te?.getTime()??""}`;Dt.current!==W&&(Dt.current=W,N?.(U,te))},[U,te,N]);const se=y.useRef("");y.useEffect(()=>{const W=Q.map(he=>he?.getTime()??"").join("|");se.current!==W&&(se.current=W,$?.(Q))},[Q,$]),y.useEffect(()=>{const W=he=>{const ge=he.target;!le.current?.contains(ge)&&!qe.current?.contains(ge)&&D(!1)};return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[]),y.useLayoutEffect(()=>{if(!P){Se(null);return}Ke(),window.addEventListener("resize",Ke),window.addEventListener("scroll",Ke,!0);const W=typeof ResizeObserver>"u"?null:new ResizeObserver(Ke);return je.current&&W?.observe(je.current),qe.current&&W?.observe(qe.current),()=>{window.removeEventListener("resize",Ke),window.removeEventListener("scroll",Ke,!0),W?.disconnect()}},[P,Ke]);const Ne=y.useMemo(()=>G==="multiple"?i.length?k(i):u:G==="single"?n?p?p(n,null):f(n):u:n?p?p(n,c):c?`${f(n)} - ${f(c)}`:f(n):u,[G,i,k,c,n,p,f,u]),o1=W=>{if(!W)return;const he=new Date(W.getFullYear(),W.getMonth(),W.getDate());if(!U||te){K(he),E(null);return}const ge=new Date(U.getFullYear(),U.getMonth(),U.getDate());if(he.getTime()<ge.getTime()){K(he),E(ge);return}E(he)},Ie=W=>{W&&(K(li(W)),E(null))},pt=W=>{if(!W)return;const he=li(W);de(ge=>(ge.some(nt=>Wc(nt,he))?ge.filter(nt=>!Wc(nt,he)):[...ge,he]).sort((nt,ta)=>nt.getTime()-ta.getTime()))},pb=W=>{const he=W.applyDates?W.applyDates(new Date):{start:W.start,end:W.end};if(R==="multiple"){de(he.dates??Rve(he.start,he.end));return}if(R==="single"){K((b==="past"?he.end??he.start:he.start??he.end)??null),E(null);return}K(he.start??null),E(he.end??null),he.dates&&de(he.dates)},yb=()=>{K(null),E(null),de([]),d?.()},kb=()=>{R==="single"&&!U||R==="range"&&(!U||!te)||R==="multiple"&&!Q.length||(R==="multiple"?s?.(Q):R==="single"?r?.(U,null):r?.(U,te),ce(R),l?.(),D(!1))},bi=y.useMemo(()=>{if(R!=="range"||!U)return R==="multiple"?Q.length:0;const W=te??U;return Math.round((new Date(W.getFullYear(),W.getMonth(),W.getDate()).getTime()-new Date(U.getFullYear(),U.getMonth(),U.getDate()).getTime())/864e5)+1},[R,Q.length,te,U]);return o.jsxs("div",{ref:le,className:`${Pe.container} ${q}`,style:{width:w},children:[o.jsxs("button",{ref:je,type:"button",className:Pe.trigger,onClick:()=>!I&&D(W=>!W),disabled:I,"aria-expanded":P,"aria-haspopup":"dialog",children:[o.jsx("span",{children:Ne}),o.jsx(j1,{"aria-hidden":"true",fill:"var(--color-text)",className:Pe.chevron,style:{width:"var(--select-icon-size, 1.5rem)",height:"var(--select-icon-size, 1.5rem)",color:"var(--select-icon-color, #6c757d)","--icon-rotation":P?"rotate(180deg)":"rotate(0deg)"}})]}),P&&typeof document<"u"&&gi.createPortal(o.jsxs("div",{ref:qe,className:Pe.popover,style:ve??{left:8,top:8,visibility:"hidden"},role:"dialog","aria-label":"Sélecteur de date avancé",children:[o.jsxs("div",{className:Pe.top,children:[o.jsx("div",{className:Pe.tabs,children:["single","range","multiple"].map(W=>o.jsx("button",{type:"button",className:R===W?Pe.tabActive:"",disabled:!T.includes(W),onClick:()=>{Y(W),C?.(W)},children:W==="single"?v.single??"Date unique":W==="range"?v.range??"Période":v.multiple??"Dates multiples"},W))}),R==="range"&&o.jsxs("div",{className:Pe.summary,children:[o.jsxs("span",{children:[o.jsx("small",{children:v.start??"Début"}),U?f(U):"-"]}),o.jsxs("span",{children:[o.jsx("small",{children:v.end??"Fin"}),te?f(te):"-"]})]}),R==="single"&&o.jsx("div",{className:Pe.summary,children:o.jsxs("span",{children:[o.jsx("small",{children:v.selection??"Sélection"}),U?f(U):"-"]})}),R==="multiple"&&o.jsxs("div",{className:Pe.selectionCount,children:[o.jsx("small",{children:v.selection??"Sélection"}),Q.length," date",Q.length>1?"s":""]})]}),o.jsx("div",{className:Pe.calendars,children:j??o.jsxs("div",{className:Pe.datePickerPair,children:[o.jsx(fi,{isAdvanced:!0,hideOutsideDays:!0,value:R==="single"?U:null,onChange:R==="range"?o1:R==="multiple"?pt:Ie,lowerLimit:z,upperLimit:A,months:g,weekdays:m,selectionMode:R,rangeStart:U,rangeEnd:te,selectedDates:Q,dateCellSize:"2rem",displayMonth:ye,onDisplayMonthChange:fe,fullWidth:!0}),o.jsx(fi,{isAdvanced:!0,hideOutsideDays:!0,value:R==="range"?te:U,onChange:R==="range"?o1:R==="multiple"?pt:Ie,lowerLimit:z,upperLimit:A,months:g,weekdays:m,selectionMode:R,rangeStart:U,rangeEnd:te,selectedDates:Q,dateCellSize:"2rem",displayMonth:ne,onDisplayMonthChange:W=>{const he=new Date(W.getFullYear(),W.getMonth()-1,1);fe(ge=>ge.getFullYear()===he.getFullYear()&&ge.getMonth()===he.getMonth()?ge:he)},fullWidth:!0})]})}),o.jsxs("div",{className:Pe.footer,children:[o.jsx("div",{className:Pe.presets,children:h.map(W=>o.jsx("button",{type:"button",disabled:W.disabled,onClick:()=>pb(W),children:W.label},W.id))}),o.jsxs("div",{className:Pe.actions,children:[o.jsxs("div",{className:Pe.daysCount,children:[R==="range"&&o.jsxs("span",{children:[bi," ",v.day,bi>1?"s":""]}),R==="multiple"&&o.jsxs("span",{children:[Q.length," ",v.date,Q.length>1?"s":""]})]}),o.jsx("button",{type:"button",className:Pe.clear,onClick:yb,children:v.clear??"Effacer"}),o.jsx("button",{type:"button",className:Pe.apply,onClick:kb,disabled:R==="single"&&!U||R==="range"&&(!U||!te)||R==="multiple"&&!Q.length,children:v.apply??"Valider"})]})]})]}),document.body)]})},Eve="_selectContainer_1ptm9_1",Ove="_label_1ptm9_15",Uve="_selectButton_1ptm9_23",Wve="_selectButtonDisabled_1ptm9_43",Gve="_selectButtonOpen_1ptm9_48",Kve="_selectButtonContent_1ptm9_58",Zve="_selectIcon_1ptm9_66",Xve="_selectLabel_1ptm9_72",Yve="_placeholder_1ptm9_79",Jve="_chevron_1ptm9_84",Qve="_errorMessage_1ptm9_93",e9e="_dropdown_1ptm9_99",t9e="_dropdownContent_1ptm9_123",a9e="_item_1ptm9_129",n9e="_itemSelected_1ptm9_151",o9e="_itemContent_1ptm9_155",c9e="_itemIcon_1ptm9_162",i9e="_itemLabel_1ptm9_168",ze={selectContainer:Eve,label:Ove,selectButton:Uve,selectButtonDisabled:Wve,selectButtonOpen:Gve,selectButtonContent:Kve,selectIcon:Zve,selectLabel:Xve,placeholder:Yve,chevron:Jve,errorMessage:Qve,dropdown:e9e,dropdownContent:t9e,item:a9e,itemSelected:n9e,itemContent:o9e,itemIcon:c9e,itemLabel:i9e},vz=({items:e,value:t,onChange:n,label:c,placeholder:i="Sélectionner...",className:r="",fullWidth:s=!0,disabled:d=!1,error:l,buttonHeight:h="var(--select-button-height, 2.75rem)",buttonPadding:u="var(--select-button-padding, 0.75rem)",dropdownMaxHeight:p="var(--select-dropdown-max-height, 15rem)",fontSize:k="var(--select-font-size, 0.875rem)",fontWeight:f,iconSize:g="var(--select-icon-size, 1.5rem)",labelMarginBottom:m="var(--select-label-margin-bottom, 0.5rem)",errorMarginTop:v="var(--select-error-margin-top, 0.25rem)",dropdownMarginTop:_="var(--select-dropdown-margin-top, 0.25rem)",itemPadding:x="var(--select-item-padding, 0.5rem 0.75rem)",gap:b="var(--select-gap, 0.5rem)",buttonBgColor:I,buttonBorderColor:w,buttonTextColor:j,dropdownBgColor:M,itemHoverColor:L,selectedItemBgColor:S,iconColor:C,errorColor:N,labelColor:$,placeholderColor:q,border:P,borderRadius:D="var(--select-border-radius, 0.5rem)",borderWidth:V="var(--select-border-width, 0.0625rem)",boxShadow:z="var(--select-box-shadow, 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1))",transitionDuration:A="var(--select-transition-duration, 0.2s)",transitionTiming:F="var(--select-transition-timing, ease)",scrollbarWidth:T="var(--select-scrollbar-width, 0.375rem)",scrollbarTrackColor:R="var(--select-scrollbar-track-color, #f1f1f1)",scrollbarThumbColor:Y="var(--select-scrollbar-thumb-color, #c1c1c1)",width:U,minWidth:K,dropdownPosition:te="bottom",dropdownAlignment:E="right",dropdownWidth:Q,a11yConfig:de,titleKey:G})=>{const[ce,ue]=y.useState(!1),ye=y.useRef(null),fe=e.find(Ie=>Ie.value===t);y.useEffect(()=>{const Ie=pt=>{ye.current&&!ye.current.contains(pt.target)&&ue(!1)};return document.addEventListener("mousedown",Ie),()=>document.removeEventListener("mousedown",Ie)},[]);const Z=Ie=>{d||(n(Ie),ue(!1))},ne=Ie=>{if(!d)switch(Ie.key){case"Enter":case" ":Ie.preventDefault(),ue(!ce);break;case"Escape":ue(!1);break;case"Tab":ce&&ue(!1);break}},le={width:U||(s?"100%":"auto"),minWidth:K,fontSize:k},je={height:h,padding:u,backgroundColor:I||"var(--select-button-bg-color, #ffffff)",border:P,borderColor:l?N||"var(--select-error-color, #dc3545)":w||"var(--select-button-border-color, #dee2e6)",color:j||"var(--select-button-text-color, #212529)",borderRadius:D,borderWidth:V,transition:`all ${A} ${F}`,fontWeight:f},qe={backgroundColor:M||"var(--select-dropdown-bg-color, #ffffff)",maxHeight:p,borderRadius:D,borderWidth:V,boxShadow:z,transition:`opacity ${A} ${F}, transform ${A} ${F}`,position:"absolute",top:te==="bottom"?"100%":"auto",bottom:te==="top"?"100%":"auto",left:E==="left"?0:"auto",right:E==="right"?0:"auto",width:Q||(s?"100%":"auto"),marginTop:te==="bottom"?_:0,marginBottom:te==="top"?_:0,zIndex:1001},ve={width:g,height:g,color:C||"var(--select-icon-color, #6c757d)","--icon-rotation":ce?"rotate(180deg)":"rotate(0deg)"},Se={color:$||"var(--select-label-color, #212529)",marginBottom:m},Ke={color:q||"var(--select-placeholder-color, #6c757d)"},Dt={color:N||"var(--select-error-color, #dc3545)",marginTop:v},se={padding:x,transition:`background-color ${A} ${F}`,fontWeight:f},Ne={gap:b},o1={"--scrollbar-width":T,"--scrollbar-track-color":R,"--scrollbar-thumb-color":Y};return o.jsxs("div",{className:`${ze.selectContainer} ${r}`,ref:ye,style:le,"data-fullwidth":s,"data-disabled":d,"data-error":!!l,title:oe(de,G),children:[c&&o.jsx("label",{className:ze.label,style:Se,children:c}),o.jsxs("button",{type:"button",onClick:()=>!d&&ue(!ce),onKeyDown:ne,className:`
|
|
8340
|
+
`,style:tP,disabled:s,"aria-expanded":ot,"aria-haspopup":"dialog","aria-label":uP,"aria-labelledby":n?`${n}-label`:void 0,children:[JC?o.jsx("span",{className:ae.displayNode,"aria-hidden":!0,children:ue}):o.jsx("span",{className:`${ae.datePickerLabel} ${yt?"":ae.placeholder}`,style:yt?void 0:rP,children:yt?YC:c}),o.jsxs("span",{className:ae.trailingIcons,children:[lP&&o.jsx("span",{role:"button",tabIndex:0,className:ae.clearButton,"aria-label":ta,onClick:D=>{D.stopPropagation(),t(null)},onKeyDown:D=>{(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),D.stopPropagation(),t(null))},children:o.jsx(mve,{fill:"var(--color-text)",style:hP})}),qe?o.jsx("span",{className:ae.chevron,style:ZC,children:qe}):o.jsx(j1,{fill:"var(--color-text)",className:`${ae.chevron} ${ot?ae.chevronOpen:""}`,style:ZC})]})]}),d&&o.jsx("div",{className:ae.errorMessage,style:sP,children:d}),(Ze||ot)&&!s&&gi.createPortal(o.jsxs("div",{id:"datepicker-dropdown",ref:FC,className:`${ae.dropdown} ${Ze?ae.dropdownAdvanced:""}`,style:Ze?{position:"relative",top:"auto",right:"auto"}:cP,role:"dialog","aria-label":he,children:[o.jsxs("div",{style:oP,children:[o.jsxs("div",{style:nP,children:[o.jsxs("div",{className:ae.calendarHeader,children:[o.jsx("button",{type:"button",className:ae.navButton,onClick:Oz,"aria-label":bi,disabled:Lb,style:Lb?{opacity:.3,cursor:"not-allowed"}:void 0,children:"‹"}),o.jsxs("div",{className:ae.headerSelectors,children:[o.jsxs("div",{className:ae.monthSelector,ref:_b,children:[o.jsxs("button",{type:"button",className:ae.selectorButton,onClick:()=>r1(!vb),style:{color:$,"--hover-color":j},children:[(pt||f$)[me.getMonth()],o.jsx(j1,{fill:"var(--color-text)",className:`${ae.selectorChevron} ${vb?ae.selectorChevronOpen:""}`,style:{width:"0.75rem",height:"0.75rem",marginLeft:"0.25rem"}})]}),vb&&o.jsx("div",{className:ae.monthDropdown,children:(pt||f$).map((D,Y)=>{const Me=Jz(Y);return o.jsx("button",{type:"button",disabled:Me,className:`${ae.monthItem} ${me.getMonth()===Y?ae.monthItemSelected:""}`,onClick:()=>!Me&&Zz(Y),style:{padding:v,backgroundColor:me.getMonth()===Y?L||"var(--color-lite-primary, #e7f1ff)":w,opacity:Me?.3:1,cursor:Me?"not-allowed":"pointer"},onMouseEnter:He=>{j&&me.getMonth()!==Y&&!Me&&(He.currentTarget.style.backgroundColor=j)},onMouseLeave:He=>{j&&(He.currentTarget.style.backgroundColor=me.getMonth()===Y?L||"var(--color-lite-primary, #e7f1ff)":w)},children:D},Y)})})]}),o.jsxs("div",{className:ae.yearSelector,ref:Mb,children:[o.jsxs("button",{type:"button",className:ae.selectorButton,onClick:()=>s1(!xb),style:{color:$,"--hover-color":j},children:[me.getFullYear(),o.jsx(j1,{fill:"var(--color-text)",className:`${ae.selectorChevron} ${xb?ae.selectorChevronOpen:""}`,style:{width:"0.75rem",height:"0.75rem",marginLeft:"0.25rem"}})]}),xb&&o.jsx("div",{className:ae.yearDropdown,children:Yz().map(D=>o.jsx("button",{type:"button",className:`${ae.yearItem} ${me.getFullYear()===D?ae.yearItemSelected:""}`,onClick:()=>Xz(D),style:{padding:v,backgroundColor:me.getFullYear()===D?L||"var(--color-lite-primary, #e7f1ff)":w},onMouseEnter:Y=>{j&&me.getFullYear()!==D&&(Y.currentTarget.style.backgroundColor=j)},onMouseLeave:Y=>{j&&(Y.currentTarget.style.backgroundColor=me.getFullYear()===D?L||"var(--color-lite-primary, #e7f1ff)":w)},children:D},D))})]})]}),o.jsx("button",{type:"button",className:ae.navButton,onClick:Uz,"aria-label":W,disabled:bb,style:bb?{opacity:.3,cursor:"not-allowed"}:void 0,children:"›"})]}),o.jsx("div",{className:ae.weekdays,children:(pb||fve).map(D=>o.jsx("div",{className:ae.weekday,style:{color:R},children:D},D))}),o.jsx("div",{className:ae.calendarGrid,children:dP.map((D,Y)=>{if(!D)return null;const Me=Ue=>new Date(Ue.getFullYear(),Ue.getMonth(),Ue.getDate()).getTime(),He=Ue=>Ue?`${Ue.getFullYear()}-${Ue.getMonth()}-${Ue.getDate()}`:"",Ee=`${D.getFullYear()}-${D.getMonth()}-${D.getDate()}`,Be=aa==="multiple"?Sz?.(D)??oa.some(Ue=>Ue&&He(Ue)===Ee):aa==="range"?($z?.(D)??(!!na&&He(na)===Ee))||(qz?.(D)??(!!i1&&He(i1)===Ee)):Fz(D,V1),Oe=aa==="range"?ca?.(D)??(!!na&&!!i1&&Me(D)>=Me(na)&&Me(D)<=Me(i1)):!1,Ib=Ez(D),u1=!!(se&&Me(D)<Me(se)||Ne&&Me(D)>Me(Ne)),QC="color-mix(in srgb, var(--color-primary) 16%, transparent)";return Az&&!Ib?o.jsx("span",{"aria-hidden":"true",style:{display:"block",width:z,height:z}},Y):o.jsx("button",{type:"button",className:`${ae.dateCell} ${Be?ae.dateCellSelected:""} ${Be?ae.dateCellOtherMonthSelected:""} ${Oe&&!Be?ae.dateCellInRange:""} ${Ib?"":ae.dateCellOtherMonth} ${u1?ae.dateCellDisabled:""}`,onClick:()=>!u1&&Wz(D),disabled:u1,style:{width:z,height:z,borderRadius:aa==="multiple"&&Be?"50%":void 0,color:Be?U:Ib?V:F,backgroundColor:Be?X:Oe?QC:"transparent",opacity:u1?.4:1,cursor:u1?"not-allowed":"pointer"},onMouseEnter:Ue=>{!Be&&!u1&&j&&(Ue.currentTarget.style.backgroundColor=j)},onMouseLeave:Ue=>{Be||(Ue.currentTarget.style.backgroundColor=Oe?QC:"transparent")},children:D.getDate()},Y)})})]}),ve==="minutes"&&o.jsxs("div",{className:ae.timePickerContainer,style:aP,children:[o.jsxs("div",{className:ae.timeGroup,children:[o.jsx("span",{className:ae.timeLabel,children:Ke}),o.jsx("div",{className:ae.timeInputWrapper,children:o.jsx("input",{type:"number",min:"0",max:"23",value:Ci,onChange:D=>{const Y=parseInt(D.target.value);!isNaN(Y)&&Y>=0&&Y<=23&&fb(Y)},className:ae.timeInput,style:h1?{borderColor:"#dc2626",color:"#dc2626"}:void 0})})]}),!Se&&o.jsx("span",{className:ae.timeSeparator,children:":"}),o.jsxs("div",{className:ae.timeGroup,children:[o.jsx("span",{className:ae.timeLabel,children:Dt}),o.jsx("div",{className:ae.timeInputWrapper,children:o.jsx("input",{type:"number",min:"0",max:"59",value:ji,onChange:D=>{const Y=parseInt(D.target.value);!isNaN(Y)&&Y>=0&&Y<=59&&gb(Y)},className:ae.timeInput,style:h1?{borderColor:"#dc2626",color:"#dc2626"}:void 0})})]})]})]}),h1&&o.jsx("div",{role:"alert",style:{color:"#dc2626",fontSize:"0.75rem",padding:"0 4px 4px",textAlign:"center"},children:Ie}),!Ze&&o.jsxs("div",{className:ae.calendarFooter,children:[o.jsx("button",{type:"button",className:ae.cancelButton,onClick:Kz,style:{backgroundColor:K,color:te,borderRadius:q,padding:de??v,fontSize:G},children:yb}),o.jsx("button",{type:"button",className:ae.applyButton,onClick:Gz,disabled:h1,style:{backgroundColor:E,color:Q,borderRadius:q,padding:de??v,fontSize:G,opacity:h1?.5:1,cursor:h1?"not-allowed":"pointer"},children:kb})]})]}),Ze&&zz&&T1.current?T1.current:document.body)]})},gve="_container_rp1nx_1",vve="_chevron_rp1nx_6",xve="_trigger_rp1nx_14",_ve="_popover_rp1nx_37",Mve="_top_rp1nx_54",Lve="_tabs_rp1nx_63",bve="_tabActive_rp1nx_85",Ive="_summary_rp1nx_90",wve="_selectionCount_rp1nx_96",Cve="_calendars_rp1nx_115",jve="_datePickerPair_rp1nx_142",Nve="_footer_rp1nx_199",Sve="_presets_rp1nx_208",$ve="_actions_rp1nx_222",qve="_daysCount_rp1nx_227",Ave="_clear_rp1nx_232",zve="_apply_rp1nx_239",Pe={container:gve,chevron:vve,trigger:xve,popover:_ve,top:Mve,tabs:Lve,tabActive:bve,summary:Ive,selectionCount:wve,calendars:Cve,datePickerPair:jve,footer:Nve,presets:Sve,actions:$ve,daysCount:qve,clear:Ave,apply:zve},Pve=["single","range","multiple"],Vve=["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],Tve=["L","M","M","J","V","S","D"],Dve=[],Hve=[],Wc=(e,t)=>(e?.getTime()??null)===(t?.getTime()??null),g$=(e,t)=>e.length===t.length&&e.every((n,c)=>Wc(n,t[c])),Bve=e=>`${String(e.getDate()).padStart(2,"0")}/${String(e.getMonth()+1).padStart(2,"0")}/${e.getFullYear()}`,li=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),gz=(e,t="fr-FR")=>{const n=[...e].sort((s,d)=>s.getTime()-d.getTime()),c=[];n.forEach(s=>{const d=`${s.getFullYear()}-${s.getMonth()}`,l=s.toLocaleDateString(t,{month:"short"}),h=c[c.length-1];!h||h.key!==d?c.push({key:d,label:l,days:[s.getDate()]}):h.days.push(s.getDate())});const i=`${n.length} date${n.length>1?"s":""}`,r=c.map(s=>`${s.days.join(", ")} ${s.label}`).join(" · ");return r?`${i} · ${r}`:i},Rve=(e,t)=>{if(!e&&!t)return[];const n=li(e??t),c=li(t??e),i=n.getTime()<=c.getTime()?n:c,r=n.getTime()<=c.getTime()?c:n,s=[];for(let d=new Date(i);d.getTime()<=r.getTime();d.setDate(d.getDate()+1))s.push(new Date(d));return s},Fve=({mode:e="range",availableModes:t,startDate:n=null,endDate:c=null,dates:i=Dve,onRangeChange:r,onDatesChange:s,onClear:d,onApply:l,presets:h=Hve,placeholder:u="Sélectionner une période...",displayFormat:p,datesFormat:k=gz,dateFormat:f=Bve,months:g=Vve,weekdays:m=Tve,labels:v={},lowerLimit:_,upperLimit:x,selectablePeriod:b="past",disabled:I=!1,width:w="20rem",calendarNode:j,previewStart:L,previewEnd:M,previewDates:S,onModeChange:C,onDraftRangeChange:N,onDraftDatesChange:q,className:A=""})=>{const[P,T]=y.useState(!1),H=li(new Date),z=b==="future"&&(!_||_<H)?H:_,$=b==="past"&&(!x||x>H)?H:x,R=(t??Pve).join("|"),V=y.useMemo(()=>(R?R.split("|"):[]).filter((he,ge,Ht)=>Ht.indexOf(he)===ge),[R]),[F,X]=y.useState(V.includes(e)?e:V[0]??"range");y.useEffect(()=>{V.includes(F)||X(V[0]??"range")},[F,V]),y.useEffect(()=>{V.includes(e)&&X(e)},[V,e]);const[U,K]=y.useState(n),[te,E]=y.useState(c),[Q,de]=y.useState(i),[G,ce]=y.useState(e),ue=b==="past"?te??U??Q[0]??new Date:new Date,[ye,fe]=y.useState(new Date(ue.getFullYear(),ue.getMonth()+(b==="past"?-1:0),1)),Z=y.useRef(b);y.useEffect(()=>{if(Z.current===b)return;Z.current=b;const W=new Date;fe(new Date(W.getFullYear(),W.getMonth()+(b==="past"?-1:0),1))},[b]);const ne=y.useMemo(()=>new Date(ye.getFullYear(),ye.getMonth()+1,1),[ye]),le=y.useRef(null),je=y.useRef(null),qe=y.useRef(null),[ve,Se]=y.useState(null),Ke=y.useCallback(()=>{const W=je.current,he=qe.current;if(!W||!he)return;const ge=W.getBoundingClientRect(),Ht=he.getBoundingClientRect(),jt=8,nt=4,ta=Math.min(Ht.width,window.innerWidth-jt*2),Ze=Math.min(Math.max(ge.right-ta,jt),window.innerWidth-ta-jt),c1=Math.max(window.innerHeight-ge.bottom-nt-jt,0),Ii=Math.max(ge.top-nt-jt,0),aa=Ht.height<=c1||c1>=Ii,na=aa?c1:Ii,i1=aa?ge.bottom+nt:Math.max(jt,ge.top-nt-Math.min(Ht.height,na)),oa={left:Ze,top:i1,width:ta,maxHeight:na,visibility:"visible"};Se(ca=>ca?.left===oa.left&&ca?.top===oa.top&&ca?.width===oa.width&&ca?.maxHeight===oa.maxHeight?ca:oa)},[]);y.useEffect(()=>{L!==void 0||M!==void 0||(K(W=>Wc(W,n)?W:n),E(W=>Wc(W,c)?W:c))},[n,c,L,M]),y.useEffect(()=>{if(L===void 0&&M===void 0)return;const W=L??null,he=M??null;K(ge=>Wc(ge,W)?ge:W),E(ge=>Wc(ge,he)?ge:he)},[L,M]),y.useEffect(()=>{S===void 0&&de(W=>g$(W,i)?W:i)},[i,S]),y.useEffect(()=>{S!==void 0&&de(W=>g$(W,S)?W:S)},[S]);const Dt=y.useRef("");y.useEffect(()=>{const W=`${U?.getTime()??""}:${te?.getTime()??""}`;Dt.current!==W&&(Dt.current=W,N?.(U,te))},[U,te,N]);const se=y.useRef("");y.useEffect(()=>{const W=Q.map(he=>he?.getTime()??"").join("|");se.current!==W&&(se.current=W,q?.(Q))},[Q,q]),y.useEffect(()=>{const W=he=>{const ge=he.target;!le.current?.contains(ge)&&!qe.current?.contains(ge)&&T(!1)};return document.addEventListener("mousedown",W),()=>document.removeEventListener("mousedown",W)},[]),y.useLayoutEffect(()=>{if(!P){Se(null);return}Ke(),window.addEventListener("resize",Ke),window.addEventListener("scroll",Ke,!0);const W=typeof ResizeObserver>"u"?null:new ResizeObserver(Ke);return je.current&&W?.observe(je.current),qe.current&&W?.observe(qe.current),()=>{window.removeEventListener("resize",Ke),window.removeEventListener("scroll",Ke,!0),W?.disconnect()}},[P,Ke]);const Ne=y.useMemo(()=>G==="multiple"?i.length?k(i):u:G==="single"?n?p?p(n,null):f(n):u:n?p?p(n,c):c?`${f(n)} - ${f(c)}`:f(n):u,[G,i,k,c,n,p,f,u]),o1=W=>{if(!W)return;const he=new Date(W.getFullYear(),W.getMonth(),W.getDate());if(!U||te){K(he),E(null);return}const ge=new Date(U.getFullYear(),U.getMonth(),U.getDate());if(he.getTime()<ge.getTime()){K(he),E(ge);return}E(he)},Ie=W=>{W&&(K(li(W)),E(null))},pt=W=>{if(!W)return;const he=li(W);de(ge=>(ge.some(nt=>Wc(nt,he))?ge.filter(nt=>!Wc(nt,he)):[...ge,he]).sort((nt,ta)=>nt.getTime()-ta.getTime()))},pb=W=>{const he=W.applyDates?W.applyDates(new Date):{start:W.start,end:W.end};if(F==="multiple"){de(he.dates??Rve(he.start,he.end));return}if(F==="single"){K((b==="past"?he.end??he.start:he.start??he.end)??null),E(null);return}K(he.start??null),E(he.end??null),he.dates&&de(he.dates)},yb=()=>{K(null),E(null),de([]),d?.()},kb=()=>{F==="single"&&!U||F==="range"&&(!U||!te)||F==="multiple"&&!Q.length||(F==="multiple"?s?.(Q):F==="single"?r?.(U,null):r?.(U,te),ce(F),l?.(),T(!1))},bi=y.useMemo(()=>{if(F!=="range"||!U)return F==="multiple"?Q.length:0;const W=te??U;return Math.round((new Date(W.getFullYear(),W.getMonth(),W.getDate()).getTime()-new Date(U.getFullYear(),U.getMonth(),U.getDate()).getTime())/864e5)+1},[F,Q.length,te,U]);return o.jsxs("div",{ref:le,className:`${Pe.container} ${A}`,style:{width:w},children:[o.jsxs("button",{ref:je,type:"button",className:Pe.trigger,onClick:()=>!I&&T(W=>!W),disabled:I,"aria-expanded":P,"aria-haspopup":"dialog",children:[o.jsx("span",{children:Ne}),o.jsx(j1,{"aria-hidden":"true",fill:"var(--color-text)",className:Pe.chevron,style:{width:"var(--select-icon-size, 1.5rem)",height:"var(--select-icon-size, 1.5rem)",color:"var(--select-icon-color, #6c757d)","--icon-rotation":P?"rotate(180deg)":"rotate(0deg)"}})]}),P&&typeof document<"u"&&gi.createPortal(o.jsxs("div",{ref:qe,className:Pe.popover,style:ve??{left:8,top:8,visibility:"hidden"},role:"dialog","aria-label":"Sélecteur de date avancé",children:[o.jsxs("div",{className:Pe.top,children:[o.jsx("div",{className:Pe.tabs,children:["single","range","multiple"].map(W=>o.jsx("button",{type:"button",className:F===W?Pe.tabActive:"",disabled:!V.includes(W),onClick:()=>{X(W),C?.(W)},children:W==="single"?v.single??"Date unique":W==="range"?v.range??"Période":v.multiple??"Dates multiples"},W))}),F==="range"&&o.jsxs("div",{className:Pe.summary,children:[o.jsxs("span",{children:[o.jsx("small",{children:v.start??"Début"}),U?f(U):"-"]}),o.jsxs("span",{children:[o.jsx("small",{children:v.end??"Fin"}),te?f(te):"-"]})]}),F==="single"&&o.jsx("div",{className:Pe.summary,children:o.jsxs("span",{children:[o.jsx("small",{children:v.selection??"Sélection"}),U?f(U):"-"]})}),F==="multiple"&&o.jsxs("div",{className:Pe.selectionCount,children:[o.jsx("small",{children:v.selection??"Sélection"}),Q.length," date",Q.length>1?"s":""]})]}),o.jsx("div",{className:Pe.calendars,children:j??o.jsxs("div",{className:Pe.datePickerPair,children:[o.jsx(fi,{isAdvanced:!0,hideOutsideDays:!0,value:F==="single"?U:null,onChange:F==="range"?o1:F==="multiple"?pt:Ie,lowerLimit:z,upperLimit:$,months:g,weekdays:m,selectionMode:F,rangeStart:U,rangeEnd:te,selectedDates:Q,dateCellSize:"2rem",displayMonth:ye,onDisplayMonthChange:fe,fullWidth:!0}),o.jsx(fi,{isAdvanced:!0,hideOutsideDays:!0,value:F==="range"?te:U,onChange:F==="range"?o1:F==="multiple"?pt:Ie,lowerLimit:z,upperLimit:$,months:g,weekdays:m,selectionMode:F,rangeStart:U,rangeEnd:te,selectedDates:Q,dateCellSize:"2rem",displayMonth:ne,onDisplayMonthChange:W=>{const he=new Date(W.getFullYear(),W.getMonth()-1,1);fe(ge=>ge.getFullYear()===he.getFullYear()&&ge.getMonth()===he.getMonth()?ge:he)},fullWidth:!0})]})}),o.jsxs("div",{className:Pe.footer,children:[o.jsx("div",{className:Pe.presets,children:h.map(W=>o.jsx("button",{type:"button",disabled:W.disabled,onClick:()=>pb(W),children:W.label},W.id))}),o.jsxs("div",{className:Pe.actions,children:[o.jsxs("div",{className:Pe.daysCount,children:[F==="range"&&o.jsxs("span",{children:[bi," ",v.day,bi>1?"s":""]}),F==="multiple"&&o.jsxs("span",{children:[Q.length," ",v.date,Q.length>1?"s":""]})]}),o.jsx("button",{type:"button",className:Pe.clear,onClick:yb,children:v.clear??"Effacer"}),o.jsx("button",{type:"button",className:Pe.apply,onClick:kb,disabled:F==="single"&&!U||F==="range"&&(!U||!te)||F==="multiple"&&!Q.length,children:v.apply??"Valider"})]})]})]}),document.body)]})},Eve="_selectContainer_1ptm9_1",Ove="_label_1ptm9_15",Uve="_selectButton_1ptm9_23",Wve="_selectButtonDisabled_1ptm9_43",Gve="_selectButtonOpen_1ptm9_48",Kve="_selectButtonContent_1ptm9_58",Zve="_selectIcon_1ptm9_66",Xve="_selectLabel_1ptm9_72",Yve="_placeholder_1ptm9_79",Jve="_chevron_1ptm9_84",Qve="_errorMessage_1ptm9_93",e9e="_dropdown_1ptm9_99",t9e="_dropdownContent_1ptm9_123",a9e="_item_1ptm9_129",n9e="_itemSelected_1ptm9_151",o9e="_itemContent_1ptm9_155",c9e="_itemIcon_1ptm9_162",i9e="_itemLabel_1ptm9_168",ze={selectContainer:Eve,label:Ove,selectButton:Uve,selectButtonDisabled:Wve,selectButtonOpen:Gve,selectButtonContent:Kve,selectIcon:Zve,selectLabel:Xve,placeholder:Yve,chevron:Jve,errorMessage:Qve,dropdown:e9e,dropdownContent:t9e,item:a9e,itemSelected:n9e,itemContent:o9e,itemIcon:c9e,itemLabel:i9e},vz=({items:e,value:t,onChange:n,label:c,placeholder:i="Sélectionner...",className:r="",fullWidth:s=!0,disabled:d=!1,error:l,buttonHeight:h="var(--select-button-height, 2.75rem)",buttonPadding:u="var(--select-button-padding, 0.75rem)",dropdownMaxHeight:p="var(--select-dropdown-max-height, 15rem)",fontSize:k="var(--select-font-size, 0.875rem)",fontWeight:f,iconSize:g="var(--select-icon-size, 1.5rem)",labelMarginBottom:m="var(--select-label-margin-bottom, 0.5rem)",errorMarginTop:v="var(--select-error-margin-top, 0.25rem)",dropdownMarginTop:_="var(--select-dropdown-margin-top, 0.25rem)",itemPadding:x="var(--select-item-padding, 0.5rem 0.75rem)",gap:b="var(--select-gap, 0.5rem)",buttonBgColor:I,buttonBorderColor:w,buttonTextColor:j,dropdownBgColor:L,itemHoverColor:M,selectedItemBgColor:S,iconColor:C,errorColor:N,labelColor:q,placeholderColor:A,border:P,borderRadius:T="var(--select-border-radius, 0.5rem)",borderWidth:H="var(--select-border-width, 0.0625rem)",boxShadow:z="var(--select-box-shadow, 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1))",transitionDuration:$="var(--select-transition-duration, 0.2s)",transitionTiming:R="var(--select-transition-timing, ease)",scrollbarWidth:V="var(--select-scrollbar-width, 0.375rem)",scrollbarTrackColor:F="var(--select-scrollbar-track-color, #f1f1f1)",scrollbarThumbColor:X="var(--select-scrollbar-thumb-color, #c1c1c1)",width:U,minWidth:K,dropdownPosition:te="bottom",dropdownAlignment:E="right",dropdownWidth:Q,a11yConfig:de,titleKey:G})=>{const[ce,ue]=y.useState(!1),ye=y.useRef(null),fe=e.find(Ie=>Ie.value===t);y.useEffect(()=>{const Ie=pt=>{ye.current&&!ye.current.contains(pt.target)&&ue(!1)};return document.addEventListener("mousedown",Ie),()=>document.removeEventListener("mousedown",Ie)},[]);const Z=Ie=>{d||(n(Ie),ue(!1))},ne=Ie=>{if(!d)switch(Ie.key){case"Enter":case" ":Ie.preventDefault(),ue(!ce);break;case"Escape":ue(!1);break;case"Tab":ce&&ue(!1);break}},le={width:U||(s?"100%":"auto"),minWidth:K,fontSize:k},je={height:h,padding:u,backgroundColor:I||"var(--select-button-bg-color, #ffffff)",border:P,borderColor:l?N||"var(--select-error-color, #dc3545)":w||"var(--select-button-border-color, #dee2e6)",color:j||"var(--select-button-text-color, #212529)",borderRadius:T,borderWidth:H,transition:`all ${$} ${R}`,fontWeight:f},qe={backgroundColor:L||"var(--select-dropdown-bg-color, #ffffff)",maxHeight:p,borderRadius:T,borderWidth:H,boxShadow:z,transition:`opacity ${$} ${R}, transform ${$} ${R}`,position:"absolute",top:te==="bottom"?"100%":"auto",bottom:te==="top"?"100%":"auto",left:E==="left"?0:"auto",right:E==="right"?0:"auto",width:Q||(s?"100%":"auto"),marginTop:te==="bottom"?_:0,marginBottom:te==="top"?_:0,zIndex:1001},ve={width:g,height:g,color:C||"var(--select-icon-color, #6c757d)","--icon-rotation":ce?"rotate(180deg)":"rotate(0deg)"},Se={color:q||"var(--select-label-color, #212529)",marginBottom:m},Ke={color:A||"var(--select-placeholder-color, #6c757d)"},Dt={color:N||"var(--select-error-color, #dc3545)",marginTop:v},se={padding:x,transition:`background-color ${$} ${R}`,fontWeight:f},Ne={gap:b},o1={"--scrollbar-width":V,"--scrollbar-track-color":F,"--scrollbar-thumb-color":X};return o.jsxs("div",{className:`${ze.selectContainer} ${r}`,ref:ye,style:le,"data-fullwidth":s,"data-disabled":d,"data-error":!!l,title:oe(de,G),children:[c&&o.jsx("label",{className:ze.label,style:Se,children:c}),o.jsxs("button",{type:"button",onClick:()=>!d&&ue(!ce),onKeyDown:ne,className:`
|
|
8341
8341
|
${ze.selectButton}
|
|
8342
8342
|
${ce?ze.selectButtonOpen:""}
|
|
8343
8343
|
${d?ze.selectButtonDisabled:""}
|
|
8344
8344
|
`,style:je,disabled:d,"aria-expanded":ce,"aria-haspopup":"listbox","aria-labelledby":c?`${c}-label`:void 0,children:[o.jsxs("div",{className:ze.selectButtonContent,style:Ne,children:[fe?.icon&&o.jsx("span",{className:ze.selectIcon,style:ve,children:fe.icon}),o.jsx("span",{className:`${ze.selectLabel} ${fe?"":ze.placeholder}`,style:fe?void 0:Ke,children:fe?fe.label:i})]}),o.jsx(j1,{fill:"var(--color-text)",className:`${ze.chevron} ${ce?ze.chevronOpen:""}`,style:ve})]}),l&&o.jsx("div",{className:ze.errorMessage,style:Dt,children:l}),ce&&!d&&o.jsx("div",{className:ze.dropdown,style:qe,role:"listbox","aria-label":c||"Options de sélection",children:o.jsx("div",{className:ze.dropdownContent,style:o1,children:e.map(Ie=>o.jsx("button",{type:"button",onClick:()=>Z(Ie.value),className:`
|
|
8345
8345
|
${ze.item}
|
|
8346
8346
|
${t===Ie.value?ze.itemSelected:""}
|
|
8347
|
-
`,style:{...se,backgroundColor:t===Ie.value?S||"#F0F4F6":"transparent"},onMouseEnter:pt=>{L&&(pt.currentTarget.style.backgroundColor=L)},onMouseLeave:pt=>{L&&(pt.currentTarget.style.backgroundColor=t===Ie.value?S||"#F0F4F6":"transparent")},role:"option","aria-selected":t===Ie.value,children:o.jsxs("div",{className:ze.itemContent,style:Ne,children:[Ie.icon&&o.jsx("span",{className:ze.itemIcon,style:ve,children:Ie.icon}),o.jsx("span",{className:ze.itemLabel,children:Ie.label})]})},Ie.value))})})]})},r9e="_filterBar_1hlqe_3",s9e="_label_1hlqe_11",v$={filterBar:r9e,label:s9e},d9e=({label:e="Filtres",startDate:t,endDate:n,granularity:c,onStartDateChange:i,onEndDateChange:r,onGranularityChange:s,granularityItems:d,startDatePlaceholder:l="Date début",endDatePlaceholder:h="Date fin",granularityPlaceholder:u="Sélectionner...",className:p="",disabled:k=!1,gap:f="0.75rem",labelFontSize:g="0.875rem",labelFontWeight:m="400",labelColor:v="#212529",labelMarginRight:_="1rem",startDateWidth:x,endDateWidth:b,selectWidth:I,datePickerProps:w={},selectProps:j={},rightContent:M,extraContent:L})=>{const S={fontSize:g,fontWeight:m,color:v,marginRight:_},C={gap:f};return o.jsxs("div",{className:`${v$.filterBar} ${p}`,style:C,children:[e&&o.jsx("span",{className:v$.label,style:S,children:e}),o.jsx(fi,{value:t,onChange:i,placeholder:l,fullWidth:!1,disabled:k,label:void 0,width:x,...w}),o.jsx(fi,{value:n,onChange:r,placeholder:h,fullWidth:!1,disabled:k,label:void 0,width:b,...w}),o.jsx(vz,{items:d,value:c,onChange:s,placeholder:u,fullWidth:!1,disabled:k,label:void 0,width:I,...j}),L,M&&o.jsx("div",{style:{marginLeft:"auto"},children:M})]})},l9e="_container_1a6jg_16",h9e="_disabled_1a6jg_26",u9e="_predStyle_1a6jg_31",p9e="_realStyle_1a6jg_35",y9e="_predGap_1a6jg_39",k9e="_realGap_1a6jg_43",m9e="_big_1a6jg_48",f9e="_medium_1a6jg_52",g9e="_iconWrapper_1a6jg_57",v9e="_predRelative_1a6jg_67",x9e="_realRelative_1a6jg_71",_9e="_iconImg_1a6jg_75",M9e="_content_1a6jg_83",L9e="_header_1a6jg_92",b9e="_predJustify_1a6jg_98",I9e="_realJustify_1a6jg_102",w9e="_predHeaderLineHeight_1a6jg_115",C9e="_realHeaderLineHeight_1a6jg_119",j9e="_title_1a6jg_128",N9e="_titleBlack_1a6jg_143",S9e="_titleWhite_1a6jg_147",$9e="_subtitle_1a6jg_152",q9e="_valueRowHorizontal_1a6jg_162",A9e="_valueRowVertical_1a6jg_170",z9e="_singleValue_1a6jg_179",P9e="_primaryRow_1a6jg_183",V9e="_maxBadge_1a6jg_190",T9e="_valuePrimary_1a6jg_202",D9e="_valuePrimaryBlack_1a6jg_209",H9e="_valuePrimaryWhite_1a6jg_213",B9e="_valueSlash_1a6jg_218",R9e="_valueSecondary_1a6jg_225",F9e="_valueSecondaryBlue_1a6jg_231",E9e="_valueSecondaryWhite_1a6jg_235",O9e="_valueSecondaryBlack_1a6jg_239",U9e="_valueStacked_1a6jg_244",W9e="_stackedTop_1a6jg_253",G9e="_stackedBottom_1a6jg_254",xe={container:l9e,disabled:h9e,predStyle:u9e,realStyle:p9e,predGap:y9e,realGap:k9e,big:m9e,medium:f9e,iconWrapper:g9e,predRelative:v9e,realRelative:x9e,iconImg:_9e,content:M9e,header:L9e,predJustify:b9e,realJustify:I9e,predHeaderLineHeight:w9e,realHeaderLineHeight:C9e,title:j9e,titleBlack:N9e,titleWhite:S9e,subtitle:$9e,valueRowHorizontal:q9e,valueRowVertical:A9e,singleValue:z9e,primaryRow:P9e,maxBadge:V9e,valuePrimary:T9e,valuePrimaryBlack:D9e,valuePrimaryWhite:H9e,valueSlash:B9e,valueSecondary:R9e,valueSecondaryBlue:F9e,valueSecondaryWhite:E9e,valueSecondaryBlack:O9e,valueStacked:U9e,stackedTop:W9e,stackedBottom:G9e},K9e=({a11yConfig:e,iconName:t,title:n,subtitle:c,showSubtitle:i,realised:r="-",prediction:s="-",size:d="big",titleColor:l="black",valueColor:h="blue",realValueColor:u,predictionValueColor:p,className:k="",style:f="",variant:g="horizontal",showMax:m=!1,titleFontSize:v,titleFontWeight:_,subtitleFontSize:x,subtitleFontWeight:b,primaryFontSize:I,primaryFontWeight:w,secondaryFontSize:j,secondaryFontWeight:M,backgroundColor:L="#f2f9fc",gap:S="",disabled:C=!1,positionRelative:N="",justifyContent:$="",headerLineHeight:q="",headerMinHeight:P="",contentSpace:D="",titleKey:V,subtitleKey:z,subtitleA11yKey:A,maxBadgeKey:F,maxBadgeA11yKey:T,predictionKey:R,predictionA11yKey:Y,realisedKey:U,realisedA11yKey:K})=>{const te=i!==void 0?i:!!c,E=`${xe.container} ${xe[d]} ${xe[f]} ${C?xe.disabled:""}`,Q=h==="white"?xe.valuePrimaryWhite:xe.valuePrimaryBlack,de=h==="blue"?xe.valueSecondaryBlue:h==="white"?xe.valueSecondaryWhite:xe.valueSecondaryBlack,G=Z=>Z===void 0?void 0:typeof Z=="number"?`${Z}px`:Z,ce=Z=>Z===void 0?void 0:Z,ue=g==="vertical",ye=s!=null&&s!==""&&s!=="-"&&s!=="—",fe=ue?xe.valueRowVertical:xe.valueRowHorizontal;return o.jsxs("div",{className:`${E} ${k}`,style:{backgroundColor:L},children:[t&&o.jsx("div",{className:`${xe.iconWrapper} ${xe[N]}`,children:t}),o.jsxs("div",{className:`${xe.content} ${xe[S]} ${ye?"":xe.singleValue} content-indicator-v2`,style:{justifyContent:D},children:[o.jsx("div",{className:`${xe.header} ${xe[$]} ${xe[q]} header-indicator-v2`,style:{minHeight:P},children:o.jsx("h6",{className:`${xe.title}`,style:{fontSize:G(v),fontWeight:ce(_),color:l},title:oe(e,V),children:n})}),te&&c?o.jsx("div",{className:"subtitle-container",children:o.jsx("span",{className:xe.subtitle,style:{fontSize:G(x),fontWeight:ce(b)},title:oe(e,z,A),children:c})}):null,o.jsxs("div",{className:`${fe} count-indicator-v2`,children:[o.jsxs("div",{className:xe.primaryRow,children:[m&&o.jsx("span",{className:`${xe.maxBadge} max-badge-indicator-v2`,title:oe(e,F,T),children:"MAX"}),o.jsx("span",{className:`${xe.valuePrimary} ${Q}`,style:{fontSize:G(I||(!ye&&ue?"1.75rem":void 0)),fontWeight:ce(w),color:u||void 0},title:oe(e,U,K),children:r})]}),ye&&o.jsxs(o.Fragment,{children:[!ue&&o.jsx("span",{className:xe.valueSlash,style:{fontSize:G(j),fontWeight:ce(M)},children:"/"}),o.jsx("span",{className:`${xe.valueSecondary} ${de}`,style:{fontSize:G(j),fontWeight:ce(M),color:p||void 0},title:oe(e,R,Y),children:s})]})]})]})]})},Z9e="_banner_1527l_2",X9e="_iep_1527l_14",Y9e="_groupSmall_1527l_24",J9e="_genre_1527l_34",Q9e="_gravite_1527l_49",exe="_orientationContainer_1527l_55",txe="_service_1527l_68",axe="_roomBedContainer_1527l_78",nxe="_room_1527l_78",oxe="_bed_1527l_94",cxe="_bedUf_1527l_99",ixe="_statusContainer_1527l_104",rxe="_status_1527l_104",sxe="_centeredWarn_1527l_131",Je={banner:Z9e,iep:X9e,groupSmall:Y9e,genre:J9e,gravite:Q9e,orientationContainer:exe,service:txe,roomBedContainer:axe,room:nxe,bed:oxe,bedUf:cxe,statusContainer:ixe,status:rxe,centeredWarn:sxe},dxe=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 16 16",...e},ee.createElement("mask",{id:"a",width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},ee.createElement("path",{fill:"#D9D9D9",d:"M0 0h16v16H0z"})),ee.createElement("g",{mask:"url(#a)"},ee.createElement("path",{fill:"#C60000",d:"M.666 14 7.999 1.333 15.333 14zm2.3-1.333h10.067L7.999 4zm5.508-.859a.65.65 0 0 0 .192-.475.65.65 0 0 0-.192-.475.65.65 0 0 0-.475-.191.65.65 0 0 0-.475.191.65.65 0 0 0-.191.475q0 .285.191.475A.65.65 0 0 0 8 12a.65.65 0 0 0 .475-.192M7.333 10h1.333V6.667H7.333z"}))),x$=y.memo(dxe),lxe=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",...e},ee.createElement("mask",{id:"a",width:20,height:20,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},ee.createElement("path",{fill:"#D9D9D9",d:"M0 0h20v20H0z"})),ee.createElement("g",{mask:"url(#a)"},ee.createElement("path",{fill:"#1C1B1F",d:"M9.25 17v-1.5h-1.5V14h1.5v-1.583a4.24 4.24 0 0 1-2.51-1.46 4.06 4.06 0 0 1-.99-2.707q0-1.774 1.24-3.012T10 4t3.01 1.238 1.24 3.012q0 1.539-.99 2.707a4.24 4.24 0 0 1-2.51 1.46v1.579h1.5V15.5h-1.5V17zm2.698-6.807a2.66 2.66 0 0 0 .802-1.948q0-1.14-.807-1.943A2.66 2.66 0 0 0 9.995 5.5a2.64 2.64 0 0 0-1.943.807 2.66 2.66 0 0 0-.802 1.948q0 1.14.807 1.943a2.66 2.66 0 0 0 1.948.802q1.14 0 1.943-.807"}))),hxe=y.memo(lxe),uxe=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",...e},ee.createElement("mask",{id:"a",width:20,height:20,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},ee.createElement("path",{fill:"#D9D9D9",d:"M0 0h20v20H0z"})),ee.createElement("g",{mask:"url(#a)"},ee.createElement("path",{fill:"#1C1B1F",d:"M16 4v4.5h-1.5V6.563l-2.75 2.75q.366.545.558 1.157.192.614.192 1.271 0 1.781-1.235 3.02T8.255 16 5.24 14.765 4 11.755 5.236 8.74Q6.474 7.5 8.25 7.5q.667 0 1.281.177.615.178 1.156.573l2.75-2.75H11.5V4zM6.302 9.807a2.66 2.66 0 0 0-.802 1.948q0 1.14.807 1.943a2.66 2.66 0 0 0 1.948.802q1.14 0 1.943-.807A2.66 2.66 0 0 0 11 11.745q0-1.14-.807-1.943A2.66 2.66 0 0 0 8.245 9a2.64 2.64 0 0 0-1.943.807"}))),pxe=y.memo(uxe),yxe=({patient:e,genre:t,gravite:n,bed:c,bed_uf:i,room:r,orientation:s,status:d,backgroundColor:l="#ffffff",primaryFontColor:h="#111827",secondaryFontColor:u="#6b7280",statusFontColor:p="#0284c7",statusBackgroundColor:k="#e0f2fe",genreBackgroundColor:f="#9ca3af",genreFontSize:g,style:m,warn:v=!1,warnMessage:_,warnColor:x="#F94134"})=>{const b=(t??"").trim().toUpperCase();return o.jsxs("div",{className:Je.banner,style:{backgroundColor:l,...m},children:[o.jsxs("div",{className:Je.iep,children:[o.jsx("div",{style:{color:u},children:e.iep??"--"}),o.jsxs("div",{style:{color:h},children:[((e.nom||"").trim().split(/\s+/)[0]||"").substring(0,3).toUpperCase(),"."," ",((e.prenom||"").trim().split(/\s+/)[0]||"").substring(0,3).toLowerCase().replace(/^./,I=>I.toUpperCase()),".(",e.age,")"]})]}),o.jsxs("div",{className:Je.groupSmall,children:[o.jsx("span",{className:`${Je.genre} genre-info-banner`,style:{color:"#ffffff",background:f,fontSize:g},role:"img","aria-label":b==="F"?"Female":b==="M"?"Male":t||"Unknown gender",children:b==="F"?o.jsx(hxe,{width:20,height:20,"aria-hidden":"true"}):b==="M"?o.jsx(pxe,{width:20,height:20,"aria-hidden":"true"}):t||"--"}),o.jsx("span",{className:`${Je.gravite} gravite-info-banner`,children:n??"--"})]}),o.jsx("div",{className:Je.orientationContainer,children:o.jsx("div",{className:Je.service,style:{color:h},children:s??"--"})}),o.jsxs("div",{className:Je.roomBedContainer,children:[i&&o.jsx("span",{className:Je.bedUf,children:i}),o.jsx("span",{className:Je.room,children:r??"--"}),o.jsx("span",{className:Je.bed,children:c??"--"})]}),o.jsxs("div",{className:Je.statusContainer,children:[d?o.jsx("div",{className:`${Je.status} status-info-banner`,style:{color:p,backgroundColor:k},children:d}):v&&o.jsxs("div",{className:Je.centeredWarn,style:{textTransform:"uppercase"},children:[o.jsx(x$,{color:x,width:20,height:20,style:{marginRight:"6px"}}),o.jsx("span",{style:{color:x,fontSize:"12px",fontWeight:600},children:_})]}),d&&v&&o.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",color:x,fontSize:"10px",fontWeight:400,marginTop:"4px",textTransform:"uppercase"},children:[o.jsx(x$,{color:x,width:12,height:12,style:{marginRight:"4px"}}),o.jsx("span",{children:_})]})]})]})},kxe=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"M200-200v-240h60v180h180v60zm500-320v-180H520v-60h240v240z"})),mxe=y.memo(kxe),fxe=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"m249-207-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231z"})),xz=y.memo(fxe),gxe=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"M440-440v240h-60v-180H200v-60zm140-320v180h180v60H520v-240z"})),vxe=y.memo(gxe),xxe="_overlay_1sx2l_1",_xe="_container_1sx2l_11",Mxe="_fullscreen_1sx2l_24",Lxe="_header_1sx2l_30",bxe="_headerActions_1sx2l_42",Ixe="_iconButton_1sx2l_47",wxe="_body_1sx2l_58",Cxe="_sidebar_1sx2l_65",jxe="_content_1sx2l_91",Nxe="_contentHeader_1sx2l_98",Sxe="_childrenWrapper_1sx2l_114",$xe="_footer_1sx2l_138",qxe="_baseButton_1sx2l_147",Axe="_noOverlay_1sx2l_161",zxe="_contained_1sx2l_169",Ve={overlay:xxe,container:_xe,fullscreen:Mxe,header:Lxe,headerActions:bxe,iconButton:Ixe,body:wxe,sidebar:Cxe,content:jxe,contentHeader:Nxe,childrenWrapper:Sxe,footer:$xe,baseButton:qxe,noOverlay:Axe,contained:zxe},Pxe=({headerText:e,headerTextColor:t="var(--color-text)",backgroundColor:n="var(--color-background)",headerFontSize:c="1rem",headerFontWeight:i="600",isOpen:r,onClose:s,leftButton:d,rightButton:l,children:h,contentTitle:u,contentBackgroundColor:p="var(--color-content-background)",sideContent:k,hideMaximize:f=!1,hideHeader:g=!1,hideSidebar:m=!1,onDelete:v,deleteLabel:_="Supprimer",width:x="75%",maxWidth:b="none",height:I="85%",maxHeight:w="85%",borderRadius:j="0.5rem",childrenPadding:M="1rem",overflow:L="auto",contentHeaderAction:S,contentFooterAction:C,footerOverride:N,hideFooter:$=!1,hideOverlay:q=!1,position:P,a11yConfig:D})=>{const[V,z]=y.useState(!1),A=y.useRef(null);if(y.useEffect(()=>{if(!r||!q)return;const T=R=>{(R.type==="scroll"||R.type==="wheel"||R.type==="touchmove"||A.current&&!A.current.contains(R.target))&&s()};return document.addEventListener("mousedown",T),document.addEventListener("scroll",T,!0),document.addEventListener("wheel",T,{passive:!0,capture:!0}),document.addEventListener("touchmove",T,{passive:!0,capture:!0}),()=>{document.removeEventListener("mousedown",T),document.removeEventListener("scroll",T,!0),document.removeEventListener("wheel",T,!0),document.removeEventListener("touchmove",T,!0)}},[r,q,s]),!r)return null;const F=(T,R=!1)=>o.jsx(BL,{onClick:T.disabled?void 0:T.onClick,className:Ve.baseButton,disabled:T.disabled,style:{background:T.backgroundColor??(R?"#008FBB":"#ffffff"),color:T.textColor??(R?"#ffffff":"#374151"),border:T.borderColor?`1px solid ${T.borderColor}`:R?"none":void 0,cursor:T.disabled?T.cursor??"not-allowed":T.cursor??"pointer",filter:T.disabled?T.filter??"grayscale(0.5)":T.filter??"none",opacity:T.disabled?.65:1},title:oe(T.a11yConfig,T.text),children:T.text});return o.jsx("div",{className:q?Ve.noOverlay:Ve.overlay,onClick:s,children:o.jsxs("div",{ref:A,className:`${Ve.container} ${V?Ve.fullscreen:""} ${q?Ve.contained:""}`,onClick:T=>T.stopPropagation(),style:{width:V?"100%":x,maxWidth:V?"none":b,height:V?"100%":I,maxHeight:V?"100%":w,borderRadius:V?"0":j,overflow:L,...P||{}},children:[!g&&o.jsxs("header",{className:Ve.header,style:{backgroundColor:n},children:[o.jsx("h2",{style:{fontSize:c,fontWeight:i,color:t},title:oe(D,e),children:e}),o.jsxs("div",{className:Ve.headerActions,children:[!f&&o.jsx("button",{onClick:()=>z(!V),className:Ve.iconButton,title:V?"Réduire":"Agrandir",children:V?o.jsx(vxe,{width:22,height:22,fill:t}):o.jsx(mxe,{width:22,height:22,fill:t})}),o.jsx("button",{onClick:s,className:Ve.iconButton,title:"Fermer",children:o.jsx(xz,{width:22,height:22,fill:t})})]})]}),o.jsxs("div",{className:Ve.body,style:{overflow:L},children:[k&&!m&&o.jsx("aside",{className:Ve.sidebar,children:k}),o.jsxs("main",{className:Ve.content,style:{backgroundColor:p,overflow:L},children:[u&&o.jsxs("header",{className:Ve.contentHeader,style:{backgroundColor:n},children:[o.jsx("span",{style:{color:t},children:u}),S]}),o.jsx("div",{className:Ve.childrenWrapper,style:{padding:M,overflow:L},children:h})]})]}),!$&&o.jsx("footer",{className:Ve.footer,style:{backgroundColor:n},children:N!==void 0?N:o.jsxs(o.Fragment,{children:[v&&o.jsx(BL,{onClick:v,className:Ve.baseButton,style:{background:"#fee2e2",color:"#ef4444",marginRight:"auto",border:"none"},children:_}),C,F(d),F(l,!0)]})})]})})},Vxe="_container_1vb1c_1",Txe="_searchWrapper_1vb1c_10",Dxe="_navItems_1vb1c_17",Lw={container:Vxe,searchWrapper:Txe,navItems:Dxe},Hxe=({items:e,activeId:t,activeColor:n="#00aec7",backgroundColor:c="#fff",textColor:i="#000",onItemClick:r,searchValue:s="",onSearchChange:d,searchPlaceholder:l="Rechercher",width:h="100%",className:u=""})=>o.jsxs("div",{className:`${Lw.container} ${u}`,style:{width:h,backgroundColor:c,color:i},children:[o.jsx("div",{className:Lw.searchWrapper,children:o.jsx(lz,{value:s,onChange:d,placeholder:l,iconPosition:"right",iconColor:"var(--color-text)"})}),o.jsx("div",{className:Lw.navItems,children:e.map(p=>o.jsx(TC,{id:p.id,label:p.label,icon:p.icon,isActive:t===p.id,onClick:()=>r?.(p.id),activeColor:n,color:i,fontWeight:"600",fontSize:"0.75rem",padding:"0.75rem 1rem",iconGap:"0.5rem"},p.id))})]}),Bxe=({modules:e,selectedModuleId:t,onSelectModule:n,onAddModule:c,onItemAdd:i,onEditModule:r,onDeleteModule:s,onReorder:d,title:l="Modules",titleKey:h,addModuleTitle:u="Ajouter un module",addModuleLabel:p="Titre",addModulePlaceholder:k="Nom du module",renameModuleTitle:f="Renommer le module",renameModuleLabel:g="Titre",renameModulePlaceholder:m="Nom du module",confirmText:v="Valider",cancelText:_="Annuler",headerLabel:x,headerLabelKey:b,showAddIcon:I=!0,showCount:w=!0,showToggle:j=!1,showActions:M=!0,onToggle:L,a11yConfig:S})=>{const[C,N]=y.useState(!1),[$,q]=y.useState(null),[P,D]=y.useState(null),[V,z]=y.useState(null),[A,F]=y.useState(null),T=()=>{F(Z=>Z===null?"asc":Z==="asc"?"desc":null),L&&L()},R=y.useMemo(()=>A?[...e].sort((Z,ne)=>{const le=Z.title.toLowerCase(),je=ne.title.toLowerCase();return A==="asc"?le.localeCompare(je):je.localeCompare(le)}):e,[e,A]),Y=()=>N(!0),U=()=>N(!1),K=Z=>{const ne=Z.title?.trim();ne&&c&&c(ne),U()},te=(Z,ne)=>{Z.stopPropagation(),q(ne)},E=()=>q(null),Q=Z=>{const ne=Z.title?.trim();$&&ne&&r&&r($,ne),E()},de=(Z,ne)=>{Z.stopPropagation(),s&&s(ne)},G=(Z,ne)=>{Z.stopPropagation(),i&&i(ne)},ce=(Z,ne)=>{D(ne),Z.dataTransfer.effectAllowed="move"},ue=(Z,ne)=>{P!==null&&(Z.preventDefault(),Z.dataTransfer.dropEffect="move",ne!==V&&z(ne))},ye=(Z,ne)=>{if(Z.preventDefault(),P===null||P===ne||!d)return;const le=[...R],[je]=le.splice(P,1);le.splice(ne,0,je),F(null),d(le),D(null),z(null)},fe=()=>{D(null),z(null)};return o.jsxs("div",{className:"module-sidebar-v2",children:[o.jsx("div",{className:"sidebar-header",children:x?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"header-label-container",onClick:T,children:[o.jsx("div",{className:"header-label",title:oe(S,b),children:x}),A==="asc"?o.jsx(L1,{size:12,className:"header-toggle-icon",strokeWidth:3}):o.jsx(M1,{size:12,className:"header-toggle-icon",strokeWidth:3})]}),I&&o.jsx(Yc,{size:18,className:"add-view-icon",onClick:Y})]}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"header-title",title:oe(S,h),children:[j&&(A==="asc"?o.jsx(L1,{size:12,className:"header-toggle-icon default-toggle",strokeWidth:3,onClick:T}):o.jsx(M1,{size:12,className:"header-toggle-icon default-toggle",strokeWidth:3,onClick:T})),l," ",w&&`(${R.length})`]}),I&&o.jsx(Yc,{size:18,className:"add-view-icon",onClick:Y})]})}),o.jsx("div",{className:"module-list",children:R.map((Z,ne)=>o.jsxs("div",{className:`module-item ${Z.id===t?"selected":""} ${V===ne&&P!==ne?"drag-over":""} ${P===ne?"dragging":""}`,onClick:()=>n&&n(Z),draggable:!!d,onDragStart:d?le=>ce(le,ne):void 0,onDragOver:d?le=>ue(le,ne):void 0,onDrop:d?le=>ye(le,ne):void 0,onDragEnd:d?fe:void 0,children:[Z.icon||o.jsx(ti,{size:18,className:"drag-handle"}),o.jsxs("div",{className:"module-content",title:oe(Z.a11yConfig,Z.titleKey),children:[o.jsx("div",{className:"module-title",children:Z.title}),Z.subtitle&&o.jsx("div",{className:"module-subtitle",children:Z.subtitle})]}),Z.trailing,typeof Z.count<"u"&&o.jsx("span",{className:"module-count",children:Z.count}),M&&o.jsxs("div",{className:"module-actions",children:[i&&o.jsx(Jc,{size:14,className:"action-icon add",onClick:le=>G(le,Z)}),r&&o.jsx($t,{size:12,className:"action-icon edit",onClick:le=>te(le,Z)}),s&&o.jsx(It,{size:12,className:"action-icon delete",onClick:le=>de(le,Z)})]})]},Z.id))}),o.jsx(n1,{isOpen:C,onClose:U,onSave:K,title:u,fields:[{name:"title",label:p,placeholder:k}],confirmText:v,cancelText:_}),$&&o.jsx(n1,{isOpen:!!$,onClose:E,onSave:Q,title:f,initialValues:{title:$.title},fields:[{name:"title",label:g,placeholder:m}],confirmText:v,cancelText:_})]})},Rxe=({mod:e,index:t,total:n,isSelected:c,onSelectModule:i})=>o.jsxs("div",{className:`module-item${c?" selected":""}`,onClick:()=>i?.(e),"aria-posinset":t+1,"aria-setsize":n,role:"listitem",children:[e.icon,o.jsxs("div",{className:"module-content",title:oe(e.a11yConfig,e.titleKey),children:[o.jsx("div",{className:"module-title",children:e.title}),e.subtitle&&o.jsx("div",{className:"module-subtitle",children:e.subtitle})]})]}),Fxe=({modules:e,selectedModuleId:t,onSelectModule:n,title:c="Modules",titleKey:i,showCount:r=!0,showSearch:s=!0,searchValue:d,searchPlaceholder:l,onSearchTyping:h,onSearchSubmit:u,searchDebounceMs:p=300,isLoading:k=!1,loadingComponent:f,emptyComponent:g,a11yConfig:m,borderColor:v,hoverBackgroundColor:_,selectedBackgroundColor:x})=>{const[b,I]=y.useState(d??""),w=y.useRef(null);y.useEffect(()=>{d!==void 0&&I(d)},[d]),y.useEffect(()=>()=>{w.current&&clearTimeout(w.current)},[]);const j=S=>{const C=S.target.value;I(C),w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{h?.(C)},p)},M=S=>{S.key==="Enter"&&u?.(b)},L={"--smsb-border-color":v??"var(--color-border, #efefef)","--smsb-hover-background":_??"var(--color-content-background, #f8fafc)","--smsb-selected-background":x??"var(--color-neutral, #f4f4f4)"};return o.jsxs("div",{className:"searchable-module-sidebar",style:L,children:[o.jsx("div",{className:"sidebar-header",children:o.jsxs("div",{className:"header-title",title:oe(m,i),children:[c," ",r&&`(${e.length})`]})}),s&&o.jsx("div",{className:"sidebar-search",children:o.jsx("input",{type:"text",className:"search-input",value:b,placeholder:l,onChange:j,onKeyDown:M})}),o.jsx("div",{className:"module-list",children:k?f:e.length===0?g:e.map((S,C)=>o.jsx(Rxe,{mod:S,index:C,total:e.length,isSelected:S.id===t,onSelectModule:n},S.id))})]})},Exe=({keyName:e,translations:t,availableLanguages:n,onChange:c,onRename:i,onDelete:r,a11yConfig:s})=>{const[d,l]=y.useState(!1),[h,u]=y.useState(e),[p,k]=y.useState(null),[f,g]=y.useState(""),[m,v]=y.useState(!1),[_,x]=y.useState(""),[b,I]=y.useState(""),w=y.useMemo(()=>{const V={};return Array.isArray(t)&&t.forEach(z=>{z&&z.language&&(V[z.language.toUpperCase()]=z.value)}),V},[t]),j=y.useMemo(()=>n,[n]),M=()=>{l(!1),h!==e&&h.trim()!==""?i&&i(h.trim()):u(e)},L=V=>{V.key==="Enter"?M():V.key==="Escape"&&(u(e),l(!1))},S=V=>{const z=V.toUpperCase();k(z),g(w[z]||"")},C=()=>{p&&(c(p,f),k(null),g(""))},N=V=>{V.key==="Enter"?C():V.key==="Escape"&&(k(null),g(""))},$=()=>{v(!0),j.length>0&&x(j[0].toUpperCase()),I("")},q=()=>{_&&b.trim()&&(c(_,b.trim()),v(!1),x(""),I(""))},P=()=>{v(!1),x(""),I("")},D=V=>{V.key==="Enter"?q():V.key==="Escape"&&P()};return o.jsxs("div",{className:"translation-key-v2",children:[o.jsxs("div",{className:"header",children:[d?o.jsx("input",{className:"key-name-input",value:h,onChange:V=>u(V.target.value),onBlur:M,onKeyDown:L,autoFocus:!0}):o.jsx("h3",{className:"header-title",title:oe(s,e),children:e}),o.jsxs("div",{className:"header-actions",children:[o.jsx($t,{size:16,className:"action-icon edit",onClick:()=>l(!0)}),o.jsx(It,{size:16,className:"action-icon delete",onClick:r})]})]}),o.jsxs("div",{className:"translations-list",children:[n.map(V=>{const z=V.toUpperCase(),A=w[z]||"",F=p===z;return o.jsxs("div",{className:"lang-row",children:[o.jsx("div",{className:"lang-label",children:z}),F?o.jsx("input",{className:"translation-input editing",value:f,onChange:T=>g(T.target.value),onBlur:C,onKeyDown:N,placeholder:"Entrez la traduction...",autoFocus:!0}):o.jsx("div",{className:`translation-value ${A?"":"empty"}`,onClick:()=>S(V),title:"Cliquer pour éditer",children:A||"Cliquer pour ajouter..."})]},V)}),m?o.jsxs("div",{className:"lang-row add-row",children:[o.jsx("select",{className:"lang-select",value:_,onChange:V=>x(V.target.value),children:j.map(V=>o.jsx("option",{value:V.toUpperCase(),children:V.toUpperCase()},V))}),o.jsx("input",{className:"translation-input editing",value:b,onChange:V=>I(V.target.value),onKeyDown:D,placeholder:"Mot",autoFocus:!0}),o.jsxs("div",{className:"add-actions",children:[o.jsx(Z1,{size:18,className:"action-icon confirm",onClick:q}),o.jsx(ht,{size:18,className:"action-icon cancel",onClick:P})]})]}):j.length>0&&o.jsxs("button",{className:"add-translation-btn",onClick:$,children:[o.jsx(Jc,{size:16}),o.jsx("span",{children:"Ajouter"})]})]})]})},Oxe="_overlay_t6q3c_1",Uxe="_modal_t6q3c_15",Wxe="_body_t6q3c_30",Gxe="_footer_t6q3c_50",Kxe="_confirmButton_t6q3c_59",Zxe="_danger_t6q3c_76",Xxe="_cancelButton_t6q3c_80",Et={overlay:Oxe,modal:Uxe,body:Wxe,footer:Gxe,confirmButton:Kxe,danger:Zxe,cancelButton:Xxe},Yxe=({isOpen:e,message:t,children:n,onConfirm:c,onCancel:i,confirmText:r="Confirmer",cancelText:s="Annuler",isDanger:d=!1,hideFooter:l=!1,secondaryConfirmText:h,onSecondaryConfirm:u,modalStyle:p,bodyStyle:k,footerStyle:f,cancelButtonStyle:g,confirmButtonStyle:m,overlayStyle:v,modalClassName:_,bodyClassName:x,footerClassName:b,overlayClassName:I})=>{if(!e)return null;const w=n??t;return o.jsx("div",{className:`${Et.overlay} ${I||""}`.trim(),onClick:i,style:v,children:o.jsxs("div",{className:`${Et.modal} ${_||""}`.trim(),onClick:j=>j.stopPropagation(),style:p,children:[o.jsx("div",{className:`${Et.body} ${x||""}`.trim(),style:k,children:typeof w=="string"?o.jsx("p",{children:w}):w}),!l&&o.jsxs("div",{className:`${Et.footer} ${b||""}`.trim(),style:f,children:[s&&o.jsx("button",{className:Et.cancelButton,onClick:i,style:g,children:s}),h&&u&&o.jsx("button",{className:Et.confirmButton,onClick:u,children:h}),r&&o.jsx("button",{className:`${Et.confirmButton} ${d?Et.danger:""}`,onClick:c,style:m,children:r})]})]})})},Jxe="_card_1ildr_1",Qxe="_topIcon_1ildr_17",e_e="_title_1ildr_24",t_e="_text_1ildr_31",a_e="_bottomIcon_1ildr_37",R1={card:Jxe,topIcon:Qxe,title:e_e,text:t_e,bottomIcon:a_e},n_e=({topIcon:e,title:t,text:n,bottomIcon:c,onClick:i,className:r="",headerTextColor:s="#000",textColor:d="#4b5563",backgroundColor:l="#fff",a11yConfig:h})=>o.jsxs("div",{className:`${R1.card} ${r}`,onClick:i,role:i?"button":void 0,tabIndex:i?0:void 0,style:{backgroundColor:l},title:oe(h,t),children:[e&&o.jsx("div",{className:R1.topIcon,children:e}),o.jsx("h3",{className:R1.title,style:{color:s},children:t}),o.jsx("p",{className:R1.text,style:{color:d},children:n}),c&&o.jsx("div",{className:R1.bottomIcon,children:c})]}),o_e="_container_oylor_1",c_e="_disabled_oylor_9",i_e="_selectBox_oylor_14",r_e="_selectBoxOpen_oylor_36",s_e="_tagsContainer_oylor_41",d_e="_tagsContainerWrap_oylor_51",l_e="_tag_oylor_41",h_e="_tagLabel_oylor_73",u_e="_removeBtnContainer_oylor_79",p_e="_removeBtn_oylor_79",y_e="_searchInput_oylor_104",k_e="_placeholder_oylor_124",m_e="_actions_oylor_131",f_e="_clearBtn_oylor_138",g_e="_chevron_oylor_160",v_e="_chevronOpen_oylor_166",x_e="_dropdown_oylor_170",__e="_option_oylor_184",M_e="_optionHeader_oylor_197",L_e="_noOptions_oylor_213",b_e="_overflowBlock_oylor_220",I_e="_overflowEllipsis_oylor_227",w_e="_overflowBadge_oylor_234",C_e="_overflowBadgeWrap_oylor_257",j_e="_overflowDropdown_oylor_263",N_e="_overflowDropdownItem_oylor_279",S_e="_overflowDropdownItemLabel_oylor_290",$_e="_overflowDropdownItemRemove_oylor_297",pe={container:o_e,disabled:c_e,selectBox:i_e,selectBoxOpen:r_e,tagsContainer:s_e,tagsContainerWrap:d_e,tag:l_e,tagLabel:h_e,removeBtnContainer:u_e,removeBtn:p_e,searchInput:y_e,placeholder:k_e,actions:m_e,clearBtn:f_e,chevron:g_e,chevronOpen:v_e,dropdown:x_e,option:__e,optionHeader:M_e,noOptions:L_e,overflowBlock:b_e,overflowEllipsis:I_e,overflowBadge:w_e,overflowBadgeWrap:C_e,overflowDropdown:j_e,overflowDropdownItem:N_e,overflowDropdownItemLabel:S_e,overflowDropdownItemRemove:$_e},q_e=({options:e,noOptionsMessage:t="",value:n,onChange:c,placeholder:i="Sélectionner...",isSearchable:r=!0,className:s="",disabled:d=!1,allowWrap:l=!1})=>{const[h,u]=y.useState(!1),[p,k]=y.useState(""),f=y.useRef(null),g=y.useRef(null),m=y.useRef(null),v=y.useRef(null),[_,x]=y.useState(null),[b,I]=y.useState(!1),w=y.useRef([]),j=y.useRef(null),M=y.useMemo(()=>{const z=new Map(e.map(A=>[A.value,A]));return n.map(A=>z.get(A)).filter(A=>A!==void 0)},[e,n]),L=y.useMemo(()=>e.filter(z=>!n.includes(z.value)),[e,n]),S=y.useMemo(()=>{let z=L;return p&&(z=z.filter(A=>A.label.toLowerCase().includes(p.toLowerCase()))),z.filter((A,F)=>{if(!A.isHeader)return!0;for(let T=F+1;T<z.length&&!z[T].isHeader;T++)return!0;return!1})},[L,p]);y.useEffect(()=>{const z=A=>{const F=A.target;f.current&&!f.current.contains(F)&&(u(!1),k(""),x(null),I(!1))};return document.addEventListener("mousedown",z),()=>document.removeEventListener("mousedown",z)},[]),y.useEffect(()=>{if(l)return;if(M.length===0){x(null),w.current=[];return}M.length>w.current.length&&x(null);const z=()=>{const R=m.current,Y=v.current;if(!R||!Y)return;const U=Y.getBoundingClientRect().width,K=Y.querySelector(`.${pe.actions}`),te=K?K.getBoundingClientRect().width:80,E=56,Q=r?80:0,de=16,G=Array.from(R.querySelectorAll(`.${pe.tag}`));G.length===M.length&&(w.current=G.map(ve=>{const Se=ve.getBoundingClientRect(),Ke=ve.scrollWidth;return Math.max(Se.width,Ke,ve.offsetWidth||0)}));const ce=w.current,ue=ce.length>0?ce.reduce((ve,Se)=>ve+Se,0)/ce.length:120,ye=M.length<=ce.length?ce.slice(0,M.length):[...ce,...Array(M.length-ce.length).fill(ue)],fe=4,Z=Math.max(0,U-te-Q-de);let ne=0,le=0;for(let ve=0;ve<M.length;ve++){const Se=ye[ve]??120;if(ne+Se+fe>Z)break;ne+=Se+fe,le++}if(le>=M.length){x(null);return}const je=Math.max(0,U-E-te-Q-de);ne=0;let qe=0;for(let ve=0;ve<M.length;ve++){const Se=ye[ve]??120;if(ne+Se+fe>je)break;ne+=Se+fe,qe++}qe<M.length&&qe>0?x(qe):x(null)},A=requestAnimationFrame(()=>{z()}),F=setTimeout(z,100),T=new ResizeObserver(()=>{z()});return v.current&&T.observe(v.current),()=>{cancelAnimationFrame(A),clearTimeout(F),T.disconnect()}},[M,r,h,l]);const C=()=>{if(d)return;const z=!h;z&&I(!1),u(z),z&&r&&setTimeout(()=>g.current?.focus(),0)},N=z=>{if(n.includes(z.value))return;I(!1);const A=[...M,z];c(A),k(""),x(null),u(!1)},$=z=>{z.preventDefault(),z.stopPropagation(),I(A=>!A)},q=_!=null&&_<M.length?M.slice(_):[],P=(z,A)=>{A.stopPropagation();const F=M.filter(T=>T.value!==z);c(F)},D=z=>{z.stopPropagation(),c([])},V=z=>{z.stopPropagation(),h||u(!0)};return o.jsxs("div",{className:`${pe.container} ${s} ${d?pe.disabled:""}`,ref:f,children:[o.jsxs("div",{ref:v,className:`${pe.selectBox} ${h?pe.selectBoxOpen:""}`,onClick:C,role:"combobox","aria-expanded":h,"aria-haspopup":"listbox",children:[o.jsxs("div",{className:`${pe.tagsContainer} ${l?pe.tagsContainerWrap:""}`,ref:m,children:[_!==null&&_>0?M.slice(0,_).map((z,A)=>o.jsxs("div",{className:pe.tag,children:[o.jsx("div",{className:pe.tagLabel,children:o.jsx("span",{children:z.label})}),o.jsx("div",{className:pe.removeBtnContainer,children:o.jsx("button",{type:"button",className:pe.removeBtn,onClick:F=>P(z.value,F),"aria-label":`Supprimer ${z.label}`,children:o.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor",children:o.jsx("path",{d:"M8.5 1.5L1.5 8.5M1.5 1.5L8.5 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})})]},`tag-${z.value}-${A}`)):M.map((z,A)=>o.jsxs("div",{className:pe.tag,children:[o.jsx("div",{className:pe.tagLabel,children:o.jsx("span",{children:z.label})}),o.jsx("div",{className:pe.removeBtnContainer,children:o.jsx("button",{type:"button",className:pe.removeBtn,onClick:F=>P(z.value,F),"aria-label":`Supprimer ${z.label}`,children:o.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor",children:o.jsx("path",{d:"M8.5 1.5L1.5 8.5M1.5 1.5L8.5 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})})]},`tag-${z.value}-${A}`)),r?o.jsx("input",{ref:g,type:"text",className:pe.searchInput,placeholder:M.length===0?i:"",value:p,onChange:z=>{k(z.target.value),h||u(!0)},onClick:V,disabled:d}):M.length===0&&o.jsx("span",{className:pe.placeholder,children:i})]}),!l&&_!==null&&_<M.length&&o.jsxs("div",{className:pe.overflowBlock,children:[o.jsx("span",{className:pe.overflowEllipsis,children:"..."}),o.jsxs("div",{className:pe.overflowBadgeWrap,children:[o.jsx("button",{ref:j,type:"button",className:pe.overflowBadge,onClick:$,"aria-label":`Afficher ${q.length} éléments cachés`,children:q.length}),b&&q.length>0&&o.jsx("div",{className:pe.overflowDropdown,role:"list","aria-label":"Éléments cachés",children:q.map((z,A)=>o.jsxs("div",{className:pe.overflowDropdownItem,children:[o.jsx("span",{className:pe.overflowDropdownItemLabel,children:z.label}),o.jsx("button",{type:"button",className:pe.overflowDropdownItemRemove,onClick:F=>{F.stopPropagation(),P(z.value,F)},"aria-label":`Supprimer ${z.label}`,children:o.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor",children:o.jsx("path",{d:"M8.5 1.5L1.5 8.5M1.5 1.5L8.5 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]},`hidden-${z.value}-${A}`))})]})]}),o.jsxs("div",{className:pe.actions,children:[M.length>0&&o.jsx("button",{type:"button",className:pe.clearBtn,onClick:D,"aria-label":"Effacer tout",children:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:o.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),o.jsx("svg",{className:`${pe.chevron} ${h?pe.chevronOpen:""}`,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("path",{d:"M6 9l6 6 6-6"})})]})]}),h&&!d&&o.jsx("div",{className:pe.dropdown,role:"listbox",children:S.length>0?S.map((z,A)=>o.jsx("div",{className:`${pe.option} ${z.isHeader?pe.optionHeader:""}`,onClick:()=>!z.isHeader&&N(z),role:"option","aria-selected":!1,children:z.label},`opt-${z.value}-${A}`)):o.jsx("div",{className:pe.noOptions,children:t})})]})},A_e="_container_h7jek_1",_$={container:A_e},z_e=({a11yConfigs:e=[],titleKeys:t=[],labels:n=[],data:c=[],selectedUfs:i=[],icons:r=[],lastCardTextColor:s="black",boardColors:d={},order:l})=>{const h=y.useMemo(()=>{const g=i.length===0?c:c.filter(v=>v&&i.includes(String(v.uf).replace(/^0+/,""))),m=new Set;return g.filter(v=>{if(!v||!v.uf)return!1;const _=String(v.uf).replace(/^0+/,"");return m.has(_)?!1:(m.add(_),!0)})},[c,i]),u=y.useMemo(()=>h.reduce((g,m)=>({disponibles:g.disponibles+(m.totalAvailable??m.disponibles??0),homme:g.homme+(m.availableMen??m.disponibleHomme??0),femme:g.femme+(m.availableWomen??m.disponibleFemme??0),indifferencie:g.indifferencie+(m.availableIndifferentSex??m.indifferences??0),sorties:g.sorties+(m.outToday??m.sortie24??0),occupiedBed:g.occupiedBed+(m.occupiedBed??0),patientsPresents:g.patientsPresents+(m.patientsPresents??0),occupationRate:g.occupationRate+(m.occupationRate??0),occupesRaw:g.occupesRaw+(m.occupesRaw??0),ouvertsRaw:g.ouvertsRaw+(m.ouvertsRaw??0)}),{disponibles:0,homme:0,femme:0,indifferencie:0,sorties:0,occupiedBed:0,patientsPresents:0,occupationRate:0,occupesRaw:0,ouvertsRaw:0}),[h]),p=g=>d.disponibles?d.disponibles:g>3?"#35994E":g>=1?"#EF6C00":"#C62828",k={bars:"none",justifyContent:"flexStart",alignItems:"center",valueFontWeight:"400",titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}},f=(g,m)=>{const v=l!==void 0&&m===l.length-1;switch(g){case"disponibles":return{...k,value:u.disponibles.toLocaleString("fr-FR"),backgroundColor:p(u.disponibles),valueFontSize:"2.5rem",titleColor:"white",valueColor:"white"};case"occupiedBed":return{...k,value:u.occupiedBed.toLocaleString("fr-FR"),backgroundColor:d.occupes??d.homme??"#7DD493",valueFontSize:v?"3rem":"2.375rem",titleColor:"black",valueColor:"black"};case"patientsPresents":return{...k,value:u.patientsPresents.toLocaleString("fr-FR"),backgroundColor:d.patientsPresents??d.femme??"#7DD493",valueFontSize:v?"3rem":"2.375rem",titleColor:"black",valueColor:"black"};case"occupationRate":{const _=u.ouvertsRaw>0?parseFloat((u.occupesRaw/u.ouvertsRaw*100).toFixed(2)):u.occupationRate;return{...k,value:`${_.toLocaleString("fr-FR")}%`,backgroundColor:d.occupationRate??d.indifferencie??"#7DD493",valueFontSize:v?"3rem":"2.375rem",titleColor:"black",valueColor:"black"}}case"outToday":return{...k,value:u.sorties.toLocaleString("fr-FR"),backgroundColor:d.sorties??"#F2F9FC",valueFontSize:"3rem",titleColor:s,valueColor:s}}};return l&&l.length>0?o.jsx("div",{className:_$.container,children:l.map((g,m)=>o.jsx(qt,{a11yConfig:e[m],titleKey:t[m],label:n[m],iconName:r[m],...f(g,m)},g))}):o.jsxs("div",{className:_$.container,children:[o.jsx(qt,{a11yConfig:e[0],titleKey:t[0],label:n[0],value:u.disponibles.toLocaleString("fr-FR"),iconName:r[0],backgroundColor:p(u.disponibles),valueFontSize:"2.5rem",valueFontWeight:"400",bars:"none",justifyContent:"flexStart",alignItems:"center",titleColor:"white",valueColor:"white",titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}}),o.jsx(qt,{a11yConfig:e[1],titleKey:t[1],label:n[1],value:u.homme.toLocaleString("fr-FR"),iconName:r[1],backgroundColor:d.homme??"#7DD493",valueFontSize:"2.375rem",valueFontWeight:"400",bars:"none",justifyContent:"flexStart",alignItems:"center",titleColor:"black",valueColor:"black",titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}}),o.jsx(qt,{a11yConfig:e[2],titleKey:t[2],label:n[2],value:u.femme.toLocaleString("fr-FR"),iconName:r[2],backgroundColor:d.femme??"#7DD493",valueFontSize:"2.375rem",valueFontWeight:"400",bars:"none",justifyContent:"flexStart",alignItems:"center",titleColor:"black",valueColor:"black",titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}}),o.jsx(qt,{a11yConfig:e[3],titleKey:t[3],label:n[3],value:u.indifferencie.toLocaleString("fr-FR"),iconName:r[3],backgroundColor:d.indifferencie??"#7DD493",valueFontSize:"2.375rem",valueFontWeight:"400",bars:"none",justifyContent:"flexStart",alignItems:"center",titleColor:"black",valueColor:"black",titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}}),o.jsx(qt,{a11yConfig:e[4],titleKey:t[4],label:n[4],value:u.sorties.toLocaleString("fr-FR"),iconName:r[4],backgroundColor:d.sorties??"#F2F9FC",valueFontSize:"3rem",valueFontWeight:"400",bars:"none",justifyContent:"flexStart",alignItems:"center",titleColor:s,valueColor:s,titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}})]})},P_e="_container_1pt6c_1",V_e="_chartContainer_1pt6c_14",T_e="_legend_1pt6c_22",D_e="_legendItem_1pt6c_29",H_e="_leftSection_1pt6c_41",B_e="_colorIndicator_1pt6c_47",R_e="_label_1pt6c_54",F_e="_rightSection_1pt6c_60",E_e="_ratio_1pt6c_66",O_e="_value1_1pt6c_73",U_e="_separator_1pt6c_78",W_e="_value2_1pt6c_82",G_e="_statusIndicator_1pt6c_87",K_e="_inactive_1pt6c_102",Qe={container:P_e,chartContainer:V_e,legend:T_e,legendItem:D_e,leftSection:H_e,colorIndicator:B_e,label:R_e,rightSection:F_e,ratio:E_e,value1:O_e,separator:U_e,value2:W_e,statusIndicator:G_e,inactive:K_e},M$=Math.PI/180,Z_e=({data:e,height:t=400,bg:n,backgroundColor:c,color:i,fontSize:r,fontWeight:s,padding:d,margin:l,borderRadius:h,className:u="",style:p={},labelColor:k,ratioColor:f,separatorColor:g,borderColor:m,hideDonut:v=!0,hideColorIndicator:_=!1})=>{const[x,b]=y.useState(new Set(e.map(C=>C.nom))),I=C=>{const N=new Set(x);N.has(C)?N.size>1&&N.delete(C):N.add(C),b(N)},w={...p,"--bg-color":n||c||"transparent","--text-color":i||"inherit","--font-size":r||"14px","--font-weight":s||"400","--padding":d||"0","--margin":l||"0","--border-radius":h||"0","--label-color":k||"inherit","--ratio-color":f||"inherit","--separator-color":g||"#03a9f4","--border-color":m||"#e0e0e0"},j=y.useMemo(()=>e.map(C=>({...C,displayValue:x.has(C.nom)?C.value:0})),[e,x]),M=y.useMemo(()=>e.every(C=>C.value===0),[e]),L=y.useMemo(()=>M?1:j.reduce((C,N)=>C+N.displayValue,0)||1,[M,j]),S=y.useCallback(({cx:C,cy:N,midAngle:$,innerRadius:q,outerRadius:P,value:D})=>{if(D===0||M)return null;const V=q+(P-q)*.5,z=C+V*Math.cos(-$*M$),A=N+V*Math.sin(-$*M$),F=Math.round(D/L*100);return o.jsx(a.Text,{x:z,y:A,fill:"white",textAnchor:"middle",dominantBaseline:"central",fontSize:12,fontWeight:"bold",children:`${F}%`})},[L,M]);return o.jsxs("div",{className:`${Qe.container} ${u}`,style:w,children:[!v&&o.jsx("div",{className:Qe.chartContainer,style:{height:t/2+100},children:o.jsx(a.ResponsiveContainer,{width:"100%",height:"100%",children:o.jsx(a.PieChart,{children:o.jsx(a.Pie,{data:M?[{displayValue:1,color:"#A3C2CB"}]:j,cx:"50%",cy:"50%",innerRadius:45,outerRadius:75,paddingAngle:0,dataKey:"displayValue",stroke:"white",strokeWidth:M?0:2,startAngle:90,endAngle:450,labelLine:!1,label:S,isAnimationActive:!1,children:M?o.jsx(a.Cell,{fill:"#A3C2CB"}):j.map((C,N)=>o.jsx(a.Cell,{fill:C.color},`cell-${N}`))})})})}),o.jsx("div",{className:Qe.legend,children:e.map((C,N)=>{const $=x.has(C.nom);return o.jsxs("div",{className:`${Qe.legendItem} ${!v&&!$?Qe.inactive:""}`,onClick:()=>I(C.nom),style:{cursor:"pointer",transition:"opacity 0.2s"},children:[o.jsxs("div",{className:Qe.leftSection,children:[!_&&o.jsx("div",{className:Qe.colorIndicator,style:{backgroundColor:C.color,opacity:v||$?1:.3}}),o.jsx("span",{className:Qe.label,style:{opacity:v||$?1:.5},children:C.nom})]}),o.jsxs("div",{className:Qe.rightSection,style:{opacity:v||$?1:.5},children:[o.jsxs("div",{className:Qe.ratio,children:[o.jsx("span",{className:Qe.value1,children:C.value1}),o.jsx("span",{className:Qe.separator,children:"/"}),o.jsx("span",{className:Qe.value2,children:C.value2})]}),C.statusColor&&o.jsx("div",{className:Qe.statusIndicator,style:{backgroundColor:C.statusColor}})]})]},`legend-${N}`)})})]})},X_e="_container_1pc4v_1",Y_e="_leftGroup_1pc4v_10",J_e="_iconBtn_1pc4v_16",Bi={container:X_e,leftGroup:Y_e,iconBtn:J_e},Q_e=e=>ee.createElement("svg",{width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",...e},ee.createElement("path",{d:"M3 12h18M3 6h18M3 18h18"})),eMe=y.memo(Q_e),tMe=e=>ee.createElement("svg",{width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",...e},ee.createElement("path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8m-4-6-4-4-4 4m4-4v13"})),_z=y.memo(tMe),aMe=({menuIcon:e,logoProps:t,actionIcon:n,style:c,className:i,bgColor:r="var(--header-bg)",color:s="var(--color-text)",borderBottomColor:d="var(--color-border)",borderBottomWidth:l=1,height:h="8vh",onMenuClick:u,onActionClick:p})=>{const k={backgroundColor:r,color:s,borderBottom:`${l}px solid ${d}`,height:h,...c};return o.jsxs("header",{className:[Bi.container,i].filter(Boolean).join(" "),style:k,children:[o.jsxs("div",{className:Bi.leftGroup,children:[o.jsx("button",{className:Bi.iconBtn,onClick:u,"aria-label":"Menu",style:{color:"inherit"},children:e??o.jsx(eMe,{width:22,height:22})}),o.jsx(QL,{...t,size:"medium"})]}),o.jsx("button",{className:Bi.iconBtn,onClick:p,"aria-label":"Action",style:{color:"inherit"},children:n??o.jsx(_z,{width:22,height:22})})]})},nMe="_container_24g3e_1",oMe="_iconBtn_24g3e_10",cMe="_title_24g3e_22",Ri={container:nMe,iconBtn:oMe,title:cMe},iMe=({title:e="Menu",closeIcon:t,actionIcon:n,style:c,className:i,titleStyle:r,bgColor:s="var(--header-bg)",color:d="var(--color-text)",borderBottomColor:l="transparent",borderBottomWidth:h=0,height:u="8vh",onClose:p,onAction:k})=>{const f={backgroundColor:s,color:d,borderBottom:`${h}px solid ${l}`,height:u,...c};return o.jsxs("div",{className:[Ri.container,i].filter(Boolean).join(" "),style:f,children:[o.jsx("button",{className:Ri.iconBtn,onClick:p,"aria-label":"Fermer",style:{color:"inherit"},children:t??o.jsx(xz,{width:22,height:22})}),o.jsx("span",{className:Ri.title,style:{fontWeight:"var(--font-weight-h)",fontSize:"var(--h5)",...r},children:e.toUpperCase()}),o.jsx("button",{className:Ri.iconBtn,onClick:k,"aria-label":"Partager",style:{color:"inherit"},children:n??o.jsx(_z,{width:22,height:22})})]})};function Mz(e){return e.state?e.state:e.active?"active":"available"}const rMe=({title:e,countLabel:t="UF",actionIcon:n=o.jsx(It,{size:16}),onAction:c,items:i=[],onItemClick:r,activeColor:s="var(--color-primary, #0083bb)",id:d,children:l})=>{const h=y.useMemo(()=>i.filter(u=>Mz(u)==="active").length,[i]);return o.jsxs(sMe,{id:d,"data-unit-grid":"true",children:[o.jsxs(dMe,{children:[o.jsxs(lMe,{children:[o.jsx(hMe,{children:e}),o.jsxs(uMe,{children:["(",h," ",t,")"]})]}),c&&o.jsx(pMe,{onClick:c,title:"Action",children:n})]}),o.jsx(yMe,{"data-unit-grid-content":"true",children:o.jsx(kMe,{"data-unit-grid-list":"true",children:i.map(u=>o.jsx(fMe,{item:u,activeColor:s,onItemClick:r},u.id))})}),l&&o.jsx(gMe,{children:l})]})},sMe=O.div`
|
|
8347
|
+
`,style:{...se,backgroundColor:t===Ie.value?S||"#F0F4F6":"transparent"},onMouseEnter:pt=>{M&&(pt.currentTarget.style.backgroundColor=M)},onMouseLeave:pt=>{M&&(pt.currentTarget.style.backgroundColor=t===Ie.value?S||"#F0F4F6":"transparent")},role:"option","aria-selected":t===Ie.value,children:o.jsxs("div",{className:ze.itemContent,style:Ne,children:[Ie.icon&&o.jsx("span",{className:ze.itemIcon,style:ve,children:Ie.icon}),o.jsx("span",{className:ze.itemLabel,children:Ie.label})]})},Ie.value))})})]})},r9e="_filterBar_1hlqe_3",s9e="_label_1hlqe_11",v$={filterBar:r9e,label:s9e},d9e=({label:e="Filtres",startDate:t,endDate:n,granularity:c,onStartDateChange:i,onEndDateChange:r,onGranularityChange:s,granularityItems:d,startDatePlaceholder:l="Date début",endDatePlaceholder:h="Date fin",granularityPlaceholder:u="Sélectionner...",className:p="",disabled:k=!1,gap:f="0.75rem",labelFontSize:g="0.875rem",labelFontWeight:m="400",labelColor:v="#212529",labelMarginRight:_="1rem",startDateWidth:x,endDateWidth:b,selectWidth:I,datePickerProps:w={},selectProps:j={},rightContent:L,extraContent:M})=>{const S={fontSize:g,fontWeight:m,color:v,marginRight:_},C={gap:f};return o.jsxs("div",{className:`${v$.filterBar} ${p}`,style:C,children:[e&&o.jsx("span",{className:v$.label,style:S,children:e}),o.jsx(fi,{value:t,onChange:i,placeholder:l,fullWidth:!1,disabled:k,label:void 0,width:x,...w}),o.jsx(fi,{value:n,onChange:r,placeholder:h,fullWidth:!1,disabled:k,label:void 0,width:b,...w}),o.jsx(vz,{items:d,value:c,onChange:s,placeholder:u,fullWidth:!1,disabled:k,label:void 0,width:I,...j}),M,L&&o.jsx("div",{style:{marginLeft:"auto"},children:L})]})},l9e="_container_1a6jg_16",h9e="_disabled_1a6jg_26",u9e="_predStyle_1a6jg_31",p9e="_realStyle_1a6jg_35",y9e="_predGap_1a6jg_39",k9e="_realGap_1a6jg_43",m9e="_big_1a6jg_48",f9e="_medium_1a6jg_52",g9e="_iconWrapper_1a6jg_57",v9e="_predRelative_1a6jg_67",x9e="_realRelative_1a6jg_71",_9e="_iconImg_1a6jg_75",M9e="_content_1a6jg_83",L9e="_header_1a6jg_92",b9e="_predJustify_1a6jg_98",I9e="_realJustify_1a6jg_102",w9e="_predHeaderLineHeight_1a6jg_115",C9e="_realHeaderLineHeight_1a6jg_119",j9e="_title_1a6jg_128",N9e="_titleBlack_1a6jg_143",S9e="_titleWhite_1a6jg_147",$9e="_subtitle_1a6jg_152",q9e="_valueRowHorizontal_1a6jg_162",A9e="_valueRowVertical_1a6jg_170",z9e="_singleValue_1a6jg_179",P9e="_primaryRow_1a6jg_183",V9e="_maxBadge_1a6jg_190",T9e="_valuePrimary_1a6jg_202",D9e="_valuePrimaryBlack_1a6jg_209",H9e="_valuePrimaryWhite_1a6jg_213",B9e="_valueSlash_1a6jg_218",R9e="_valueSecondary_1a6jg_225",F9e="_valueSecondaryBlue_1a6jg_231",E9e="_valueSecondaryWhite_1a6jg_235",O9e="_valueSecondaryBlack_1a6jg_239",U9e="_valueStacked_1a6jg_244",W9e="_stackedTop_1a6jg_253",G9e="_stackedBottom_1a6jg_254",xe={container:l9e,disabled:h9e,predStyle:u9e,realStyle:p9e,predGap:y9e,realGap:k9e,big:m9e,medium:f9e,iconWrapper:g9e,predRelative:v9e,realRelative:x9e,iconImg:_9e,content:M9e,header:L9e,predJustify:b9e,realJustify:I9e,predHeaderLineHeight:w9e,realHeaderLineHeight:C9e,title:j9e,titleBlack:N9e,titleWhite:S9e,subtitle:$9e,valueRowHorizontal:q9e,valueRowVertical:A9e,singleValue:z9e,primaryRow:P9e,maxBadge:V9e,valuePrimary:T9e,valuePrimaryBlack:D9e,valuePrimaryWhite:H9e,valueSlash:B9e,valueSecondary:R9e,valueSecondaryBlue:F9e,valueSecondaryWhite:E9e,valueSecondaryBlack:O9e,valueStacked:U9e,stackedTop:W9e,stackedBottom:G9e},K9e=({a11yConfig:e,iconName:t,title:n,subtitle:c,showSubtitle:i,realised:r="-",prediction:s="-",size:d="big",titleColor:l="black",valueColor:h="blue",realValueColor:u,predictionValueColor:p,className:k="",style:f="",variant:g="horizontal",showMax:m=!1,titleFontSize:v,titleFontWeight:_,subtitleFontSize:x,subtitleFontWeight:b,primaryFontSize:I,primaryFontWeight:w,secondaryFontSize:j,secondaryFontWeight:L,backgroundColor:M="#f2f9fc",gap:S="",disabled:C=!1,positionRelative:N="",justifyContent:q="",headerLineHeight:A="",headerMinHeight:P="",contentSpace:T="",titleKey:H,subtitleKey:z,subtitleA11yKey:$,maxBadgeKey:R,maxBadgeA11yKey:V,predictionKey:F,predictionA11yKey:X,realisedKey:U,realisedA11yKey:K})=>{const te=i!==void 0?i:!!c,E=`${xe.container} ${xe[d]} ${xe[f]} ${C?xe.disabled:""}`,Q=h==="white"?xe.valuePrimaryWhite:xe.valuePrimaryBlack,de=h==="blue"?xe.valueSecondaryBlue:h==="white"?xe.valueSecondaryWhite:xe.valueSecondaryBlack,G=Z=>Z===void 0?void 0:typeof Z=="number"?`${Z}px`:Z,ce=Z=>Z===void 0?void 0:Z,ue=g==="vertical",ye=s!=null&&s!==""&&s!=="-"&&s!=="—",fe=ue?xe.valueRowVertical:xe.valueRowHorizontal;return o.jsxs("div",{className:`${E} ${k}`,style:{backgroundColor:M},children:[t&&o.jsx("div",{className:`${xe.iconWrapper} ${xe[N]}`,children:t}),o.jsxs("div",{className:`${xe.content} ${xe[S]} ${ye?"":xe.singleValue} content-indicator-v2`,style:{justifyContent:T},children:[o.jsx("div",{className:`${xe.header} ${xe[q]} ${xe[A]} header-indicator-v2`,style:{minHeight:P},children:o.jsx("h6",{className:`${xe.title}`,style:{fontSize:G(v),fontWeight:ce(_),color:l},title:oe(e,H),children:n})}),te&&c?o.jsx("div",{className:"subtitle-container",children:o.jsx("span",{className:xe.subtitle,style:{fontSize:G(x),fontWeight:ce(b)},title:oe(e,z,$),children:c})}):null,o.jsxs("div",{className:`${fe} count-indicator-v2`,children:[o.jsxs("div",{className:xe.primaryRow,children:[m&&o.jsx("span",{className:`${xe.maxBadge} max-badge-indicator-v2`,title:oe(e,R,V),children:"MAX"}),o.jsx("span",{className:`${xe.valuePrimary} ${Q}`,style:{fontSize:G(I||(!ye&&ue?"1.75rem":void 0)),fontWeight:ce(w),color:u||void 0},title:oe(e,U,K),children:r})]}),ye&&o.jsxs(o.Fragment,{children:[!ue&&o.jsx("span",{className:xe.valueSlash,style:{fontSize:G(j),fontWeight:ce(L)},children:"/"}),o.jsx("span",{className:`${xe.valueSecondary} ${de}`,style:{fontSize:G(j),fontWeight:ce(L),color:p||void 0},title:oe(e,F,X),children:s})]})]})]})]})},Z9e="_banner_1527l_2",X9e="_iep_1527l_14",Y9e="_groupSmall_1527l_24",J9e="_genre_1527l_34",Q9e="_gravite_1527l_49",exe="_orientationContainer_1527l_55",txe="_service_1527l_68",axe="_roomBedContainer_1527l_78",nxe="_room_1527l_78",oxe="_bed_1527l_94",cxe="_bedUf_1527l_99",ixe="_statusContainer_1527l_104",rxe="_status_1527l_104",sxe="_centeredWarn_1527l_131",Je={banner:Z9e,iep:X9e,groupSmall:Y9e,genre:J9e,gravite:Q9e,orientationContainer:exe,service:txe,roomBedContainer:axe,room:nxe,bed:oxe,bedUf:cxe,statusContainer:ixe,status:rxe,centeredWarn:sxe},dxe=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 16 16",...e},ee.createElement("mask",{id:"a",width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},ee.createElement("path",{fill:"#D9D9D9",d:"M0 0h16v16H0z"})),ee.createElement("g",{mask:"url(#a)"},ee.createElement("path",{fill:"#C60000",d:"M.666 14 7.999 1.333 15.333 14zm2.3-1.333h10.067L7.999 4zm5.508-.859a.65.65 0 0 0 .192-.475.65.65 0 0 0-.192-.475.65.65 0 0 0-.475-.191.65.65 0 0 0-.475.191.65.65 0 0 0-.191.475q0 .285.191.475A.65.65 0 0 0 8 12a.65.65 0 0 0 .475-.192M7.333 10h1.333V6.667H7.333z"}))),x$=y.memo(dxe),lxe=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",...e},ee.createElement("mask",{id:"a",width:20,height:20,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},ee.createElement("path",{fill:"#D9D9D9",d:"M0 0h20v20H0z"})),ee.createElement("g",{mask:"url(#a)"},ee.createElement("path",{fill:"#1C1B1F",d:"M9.25 17v-1.5h-1.5V14h1.5v-1.583a4.24 4.24 0 0 1-2.51-1.46 4.06 4.06 0 0 1-.99-2.707q0-1.774 1.24-3.012T10 4t3.01 1.238 1.24 3.012q0 1.539-.99 2.707a4.24 4.24 0 0 1-2.51 1.46v1.579h1.5V15.5h-1.5V17zm2.698-6.807a2.66 2.66 0 0 0 .802-1.948q0-1.14-.807-1.943A2.66 2.66 0 0 0 9.995 5.5a2.64 2.64 0 0 0-1.943.807 2.66 2.66 0 0 0-.802 1.948q0 1.14.807 1.943a2.66 2.66 0 0 0 1.948.802q1.14 0 1.943-.807"}))),hxe=y.memo(lxe),uxe=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",...e},ee.createElement("mask",{id:"a",width:20,height:20,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},ee.createElement("path",{fill:"#D9D9D9",d:"M0 0h20v20H0z"})),ee.createElement("g",{mask:"url(#a)"},ee.createElement("path",{fill:"#1C1B1F",d:"M16 4v4.5h-1.5V6.563l-2.75 2.75q.366.545.558 1.157.192.614.192 1.271 0 1.781-1.235 3.02T8.255 16 5.24 14.765 4 11.755 5.236 8.74Q6.474 7.5 8.25 7.5q.667 0 1.281.177.615.178 1.156.573l2.75-2.75H11.5V4zM6.302 9.807a2.66 2.66 0 0 0-.802 1.948q0 1.14.807 1.943a2.66 2.66 0 0 0 1.948.802q1.14 0 1.943-.807A2.66 2.66 0 0 0 11 11.745q0-1.14-.807-1.943A2.66 2.66 0 0 0 8.245 9a2.64 2.64 0 0 0-1.943.807"}))),pxe=y.memo(uxe),yxe=({patient:e,genre:t,gravite:n,bed:c,bed_uf:i,room:r,orientation:s,status:d,backgroundColor:l="#ffffff",primaryFontColor:h="#111827",secondaryFontColor:u="#6b7280",statusFontColor:p="#0284c7",statusBackgroundColor:k="#e0f2fe",genreBackgroundColor:f="#9ca3af",genreFontSize:g,style:m,warn:v=!1,warnMessage:_,warnColor:x="#F94134"})=>{const b=(t??"").trim().toUpperCase();return o.jsxs("div",{className:Je.banner,style:{backgroundColor:l,...m},children:[o.jsxs("div",{className:Je.iep,children:[o.jsx("div",{style:{color:u},children:e.iep??"--"}),o.jsxs("div",{style:{color:h},children:[((e.nom||"").trim().split(/\s+/)[0]||"").substring(0,3).toUpperCase(),"."," ",((e.prenom||"").trim().split(/\s+/)[0]||"").substring(0,3).toLowerCase().replace(/^./,I=>I.toUpperCase()),".(",e.age,")"]})]}),o.jsxs("div",{className:Je.groupSmall,children:[o.jsx("span",{className:`${Je.genre} genre-info-banner`,style:{color:"#ffffff",background:f,fontSize:g},role:"img","aria-label":b==="F"?"Female":b==="M"?"Male":t||"Unknown gender",children:b==="F"?o.jsx(hxe,{width:20,height:20,"aria-hidden":"true"}):b==="M"?o.jsx(pxe,{width:20,height:20,"aria-hidden":"true"}):t||"--"}),o.jsx("span",{className:`${Je.gravite} gravite-info-banner`,children:n??"--"})]}),o.jsx("div",{className:Je.orientationContainer,children:o.jsx("div",{className:Je.service,style:{color:h},children:s??"--"})}),o.jsxs("div",{className:Je.roomBedContainer,children:[i&&o.jsx("span",{className:Je.bedUf,children:i}),o.jsx("span",{className:Je.room,children:r??"--"}),o.jsx("span",{className:Je.bed,children:c??"--"})]}),o.jsxs("div",{className:Je.statusContainer,children:[d?o.jsx("div",{className:`${Je.status} status-info-banner`,style:{color:p,backgroundColor:k},children:d}):v&&o.jsxs("div",{className:Je.centeredWarn,style:{textTransform:"uppercase"},children:[o.jsx(x$,{color:x,width:20,height:20,style:{marginRight:"6px"}}),o.jsx("span",{style:{color:x,fontSize:"12px",fontWeight:600},children:_})]}),d&&v&&o.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",color:x,fontSize:"10px",fontWeight:400,marginTop:"4px",textTransform:"uppercase"},children:[o.jsx(x$,{color:x,width:12,height:12,style:{marginRight:"4px"}}),o.jsx("span",{children:_})]})]})]})},kxe=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"M200-200v-240h60v180h180v60zm500-320v-180H520v-60h240v240z"})),mxe=y.memo(kxe),fxe=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"m249-207-42-42 231-231-231-231 42-42 231 231 231-231 42 42-231 231 231 231-42 42-231-231z"})),xz=y.memo(fxe),gxe=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 -960 960 960",...e},ee.createElement("path",{d:"M440-440v240h-60v-180H200v-60zm140-320v180h180v60H520v-240z"})),vxe=y.memo(gxe),xxe="_overlay_1sx2l_1",_xe="_container_1sx2l_11",Mxe="_fullscreen_1sx2l_24",Lxe="_header_1sx2l_30",bxe="_headerActions_1sx2l_42",Ixe="_iconButton_1sx2l_47",wxe="_body_1sx2l_58",Cxe="_sidebar_1sx2l_65",jxe="_content_1sx2l_91",Nxe="_contentHeader_1sx2l_98",Sxe="_childrenWrapper_1sx2l_114",$xe="_footer_1sx2l_138",qxe="_baseButton_1sx2l_147",Axe="_noOverlay_1sx2l_161",zxe="_contained_1sx2l_169",Ve={overlay:xxe,container:_xe,fullscreen:Mxe,header:Lxe,headerActions:bxe,iconButton:Ixe,body:wxe,sidebar:Cxe,content:jxe,contentHeader:Nxe,childrenWrapper:Sxe,footer:$xe,baseButton:qxe,noOverlay:Axe,contained:zxe},Pxe=({headerText:e,headerTextColor:t="var(--color-text)",backgroundColor:n="var(--color-background)",headerFontSize:c="1rem",headerFontWeight:i="600",isOpen:r,onClose:s,leftButton:d,rightButton:l,children:h,contentTitle:u,contentBackgroundColor:p="var(--color-content-background)",sideContent:k,hideMaximize:f=!1,hideHeader:g=!1,hideSidebar:m=!1,onDelete:v,deleteLabel:_="Supprimer",width:x="75%",maxWidth:b="none",height:I="85%",maxHeight:w="85%",borderRadius:j="0.5rem",childrenPadding:L="1rem",overflow:M="auto",contentHeaderAction:S,contentFooterAction:C,footerOverride:N,hideFooter:q=!1,hideOverlay:A=!1,position:P,a11yConfig:T})=>{const[H,z]=y.useState(!1),$=y.useRef(null);if(y.useEffect(()=>{if(!r||!A)return;const V=F=>{(F.type==="scroll"||F.type==="wheel"||F.type==="touchmove"||$.current&&!$.current.contains(F.target))&&s()};return document.addEventListener("mousedown",V),document.addEventListener("scroll",V,!0),document.addEventListener("wheel",V,{passive:!0,capture:!0}),document.addEventListener("touchmove",V,{passive:!0,capture:!0}),()=>{document.removeEventListener("mousedown",V),document.removeEventListener("scroll",V,!0),document.removeEventListener("wheel",V,!0),document.removeEventListener("touchmove",V,!0)}},[r,A,s]),!r)return null;const R=(V,F=!1)=>o.jsx(BL,{onClick:V.disabled?void 0:V.onClick,className:Ve.baseButton,disabled:V.disabled,style:{background:V.backgroundColor??(F?"#008FBB":"#ffffff"),color:V.textColor??(F?"#ffffff":"#374151"),border:V.borderColor?`1px solid ${V.borderColor}`:F?"none":void 0,cursor:V.disabled?V.cursor??"not-allowed":V.cursor??"pointer",filter:V.disabled?V.filter??"grayscale(0.5)":V.filter??"none",opacity:V.disabled?.65:1},title:oe(V.a11yConfig,V.text),children:V.text});return o.jsx("div",{className:A?Ve.noOverlay:Ve.overlay,onClick:s,children:o.jsxs("div",{ref:$,className:`${Ve.container} ${H?Ve.fullscreen:""} ${A?Ve.contained:""}`,onClick:V=>V.stopPropagation(),style:{width:H?"100%":x,maxWidth:H?"none":b,height:H?"100%":I,maxHeight:H?"100%":w,borderRadius:H?"0":j,overflow:M,...P||{}},children:[!g&&o.jsxs("header",{className:Ve.header,style:{backgroundColor:n},children:[o.jsx("h2",{style:{fontSize:c,fontWeight:i,color:t},title:oe(T,e),children:e}),o.jsxs("div",{className:Ve.headerActions,children:[!f&&o.jsx("button",{onClick:()=>z(!H),className:Ve.iconButton,title:H?"Réduire":"Agrandir",children:H?o.jsx(vxe,{width:22,height:22,fill:t}):o.jsx(mxe,{width:22,height:22,fill:t})}),o.jsx("button",{onClick:s,className:Ve.iconButton,title:"Fermer",children:o.jsx(xz,{width:22,height:22,fill:t})})]})]}),o.jsxs("div",{className:Ve.body,style:{overflow:M},children:[k&&!m&&o.jsx("aside",{className:Ve.sidebar,children:k}),o.jsxs("main",{className:Ve.content,style:{backgroundColor:p,overflow:M},children:[u&&o.jsxs("header",{className:Ve.contentHeader,style:{backgroundColor:n},children:[o.jsx("span",{style:{color:t},children:u}),S]}),o.jsx("div",{className:Ve.childrenWrapper,style:{padding:L,overflow:M},children:h})]})]}),!q&&o.jsx("footer",{className:Ve.footer,style:{backgroundColor:n},children:N!==void 0?N:o.jsxs(o.Fragment,{children:[v&&o.jsx(BL,{onClick:v,className:Ve.baseButton,style:{background:"#fee2e2",color:"#ef4444",marginRight:"auto",border:"none"},children:_}),C,R(d),R(l,!0)]})})]})})},Vxe="_container_1vb1c_1",Txe="_searchWrapper_1vb1c_10",Dxe="_navItems_1vb1c_17",Lw={container:Vxe,searchWrapper:Txe,navItems:Dxe},Hxe=({items:e,activeId:t,activeColor:n="#00aec7",backgroundColor:c="#fff",textColor:i="#000",onItemClick:r,searchValue:s="",onSearchChange:d,searchPlaceholder:l="Rechercher",width:h="100%",className:u=""})=>o.jsxs("div",{className:`${Lw.container} ${u}`,style:{width:h,backgroundColor:c,color:i},children:[o.jsx("div",{className:Lw.searchWrapper,children:o.jsx(lz,{value:s,onChange:d,placeholder:l,iconPosition:"right",iconColor:"var(--color-text)"})}),o.jsx("div",{className:Lw.navItems,children:e.map(p=>o.jsx(TC,{id:p.id,label:p.label,icon:p.icon,isActive:t===p.id,onClick:()=>r?.(p.id),activeColor:n,color:i,fontWeight:"600",fontSize:"0.75rem",padding:"0.75rem 1rem",iconGap:"0.5rem"},p.id))})]}),Bxe=({modules:e,selectedModuleId:t,onSelectModule:n,onAddModule:c,onItemAdd:i,onEditModule:r,onDeleteModule:s,onReorder:d,title:l="Modules",titleKey:h,addModuleTitle:u="Ajouter un module",addModuleLabel:p="Titre",addModulePlaceholder:k="Nom du module",renameModuleTitle:f="Renommer le module",renameModuleLabel:g="Titre",renameModulePlaceholder:m="Nom du module",confirmText:v="Valider",cancelText:_="Annuler",headerLabel:x,headerLabelKey:b,showAddIcon:I=!0,showCount:w=!0,showToggle:j=!1,showActions:L=!0,onToggle:M,a11yConfig:S})=>{const[C,N]=y.useState(!1),[q,A]=y.useState(null),[P,T]=y.useState(null),[H,z]=y.useState(null),[$,R]=y.useState(null),V=()=>{R(Z=>Z===null?"asc":Z==="asc"?"desc":null),M&&M()},F=y.useMemo(()=>$?[...e].sort((Z,ne)=>{const le=Z.title.toLowerCase(),je=ne.title.toLowerCase();return $==="asc"?le.localeCompare(je):je.localeCompare(le)}):e,[e,$]),X=()=>N(!0),U=()=>N(!1),K=Z=>{const ne=Z.title?.trim();ne&&c&&c(ne),U()},te=(Z,ne)=>{Z.stopPropagation(),A(ne)},E=()=>A(null),Q=Z=>{const ne=Z.title?.trim();q&&ne&&r&&r(q,ne),E()},de=(Z,ne)=>{Z.stopPropagation(),s&&s(ne)},G=(Z,ne)=>{Z.stopPropagation(),i&&i(ne)},ce=(Z,ne)=>{T(ne),Z.dataTransfer.effectAllowed="move"},ue=(Z,ne)=>{P!==null&&(Z.preventDefault(),Z.dataTransfer.dropEffect="move",ne!==H&&z(ne))},ye=(Z,ne)=>{if(Z.preventDefault(),P===null||P===ne||!d)return;const le=[...F],[je]=le.splice(P,1);le.splice(ne,0,je),R(null),d(le),T(null),z(null)},fe=()=>{T(null),z(null)};return o.jsxs("div",{className:"module-sidebar-v2",children:[o.jsx("div",{className:"sidebar-header",children:x?o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"header-label-container",onClick:V,children:[o.jsx("div",{className:"header-label",title:oe(S,b),children:x}),$==="asc"?o.jsx(L1,{size:12,className:"header-toggle-icon",strokeWidth:3}):o.jsx(M1,{size:12,className:"header-toggle-icon",strokeWidth:3})]}),I&&o.jsx(Yc,{size:18,className:"add-view-icon",onClick:X})]}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"header-title",title:oe(S,h),children:[j&&($==="asc"?o.jsx(L1,{size:12,className:"header-toggle-icon default-toggle",strokeWidth:3,onClick:V}):o.jsx(M1,{size:12,className:"header-toggle-icon default-toggle",strokeWidth:3,onClick:V})),l," ",w&&`(${F.length})`]}),I&&o.jsx(Yc,{size:18,className:"add-view-icon",onClick:X})]})}),o.jsx("div",{className:"module-list",children:F.map((Z,ne)=>o.jsxs("div",{className:`module-item ${Z.id===t?"selected":""} ${H===ne&&P!==ne?"drag-over":""} ${P===ne?"dragging":""}`,onClick:()=>n&&n(Z),draggable:!!d,onDragStart:d?le=>ce(le,ne):void 0,onDragOver:d?le=>ue(le,ne):void 0,onDrop:d?le=>ye(le,ne):void 0,onDragEnd:d?fe:void 0,children:[Z.icon||o.jsx(ti,{size:18,className:"drag-handle"}),o.jsxs("div",{className:"module-content",title:oe(Z.a11yConfig,Z.titleKey),children:[o.jsx("div",{className:"module-title",children:Z.title}),Z.subtitle&&o.jsx("div",{className:"module-subtitle",children:Z.subtitle})]}),Z.trailing,typeof Z.count<"u"&&o.jsx("span",{className:"module-count",children:Z.count}),L&&o.jsxs("div",{className:"module-actions",children:[i&&o.jsx(Jc,{size:14,className:"action-icon add",onClick:le=>G(le,Z)}),r&&o.jsx($t,{size:12,className:"action-icon edit",onClick:le=>te(le,Z)}),s&&o.jsx(It,{size:12,className:"action-icon delete",onClick:le=>de(le,Z)})]})]},Z.id))}),o.jsx(n1,{isOpen:C,onClose:U,onSave:K,title:u,fields:[{name:"title",label:p,placeholder:k}],confirmText:v,cancelText:_}),q&&o.jsx(n1,{isOpen:!!q,onClose:E,onSave:Q,title:f,initialValues:{title:q.title},fields:[{name:"title",label:g,placeholder:m}],confirmText:v,cancelText:_})]})},Rxe=({mod:e,index:t,total:n,isSelected:c,onSelectModule:i})=>o.jsxs("div",{className:`module-item${c?" selected":""}`,onClick:()=>i?.(e),"aria-posinset":t+1,"aria-setsize":n,role:"listitem",children:[e.icon,o.jsxs("div",{className:"module-content",title:oe(e.a11yConfig,e.titleKey),children:[o.jsx("div",{className:"module-title",children:e.title}),e.subtitle&&o.jsx("div",{className:"module-subtitle",children:e.subtitle})]})]}),Fxe=({modules:e,selectedModuleId:t,onSelectModule:n,title:c="Modules",titleKey:i,showCount:r=!0,showSearch:s=!0,searchValue:d,searchPlaceholder:l,onSearchTyping:h,onSearchSubmit:u,searchDebounceMs:p=300,isLoading:k=!1,loadingComponent:f,emptyComponent:g,a11yConfig:m,borderColor:v,hoverBackgroundColor:_,selectedBackgroundColor:x})=>{const[b,I]=y.useState(d??""),w=y.useRef(null);y.useEffect(()=>{d!==void 0&&I(d)},[d]),y.useEffect(()=>()=>{w.current&&clearTimeout(w.current)},[]);const j=S=>{const C=S.target.value;I(C),w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{h?.(C)},p)},L=S=>{S.key==="Enter"&&u?.(b)},M={"--smsb-border-color":v??"var(--color-border, #efefef)","--smsb-hover-background":_??"var(--color-content-background, #f8fafc)","--smsb-selected-background":x??"var(--color-neutral, #f4f4f4)"};return o.jsxs("div",{className:"searchable-module-sidebar",style:M,children:[o.jsx("div",{className:"sidebar-header",children:o.jsxs("div",{className:"header-title",title:oe(m,i),children:[c," ",r&&`(${e.length})`]})}),s&&o.jsx("div",{className:"sidebar-search",children:o.jsx("input",{type:"text",className:"search-input",value:b,placeholder:l,onChange:j,onKeyDown:L})}),o.jsx("div",{className:"module-list",children:k?f:e.length===0?g:e.map((S,C)=>o.jsx(Rxe,{mod:S,index:C,total:e.length,isSelected:S.id===t,onSelectModule:n},S.id))})]})},Exe=({keyName:e,translations:t,availableLanguages:n,onChange:c,onRename:i,onDelete:r,showEditIcon:s=!0,showDeleteIcon:d=!0,a11yConfig:l})=>{const[h,u]=y.useState(!1),[p,k]=y.useState(e),[f,g]=y.useState(null),[m,v]=y.useState(""),[_,x]=y.useState(!1),[b,I]=y.useState(""),[w,j]=y.useState(""),L=y.useMemo(()=>{const $={};return Array.isArray(t)&&t.forEach(R=>{R&&R.language&&($[R.language.toUpperCase()]=R.value)}),$},[t]),M=y.useMemo(()=>n,[n]),S=()=>{u(!1),p!==e&&p.trim()!==""?i&&i(p.trim()):k(e)},C=$=>{$.key==="Enter"?S():$.key==="Escape"&&(k(e),u(!1))},N=$=>{const R=$.toUpperCase();g(R),v(L[R]||"")},q=()=>{f&&(c(f,m),g(null),v(""))},A=$=>{$.key==="Enter"?q():$.key==="Escape"&&(g(null),v(""))},P=()=>{x(!0),M.length>0&&I(M[0].toUpperCase()),j("")},T=()=>{b&&w.trim()&&(c(b,w.trim()),x(!1),I(""),j(""))},H=()=>{x(!1),I(""),j("")},z=$=>{$.key==="Enter"?T():$.key==="Escape"&&H()};return o.jsxs("div",{className:"translation-key-v2",children:[o.jsxs("div",{className:"header",children:[h?o.jsx("input",{className:"key-name-input",value:p,onChange:$=>k($.target.value),onBlur:S,onKeyDown:C,autoFocus:!0}):o.jsx("h3",{className:"header-title",title:oe(l,e),children:e}),o.jsxs("div",{className:"header-actions",children:[s&&o.jsx($t,{size:16,className:"action-icon edit",onClick:()=>u(!0)}),d&&o.jsx(It,{size:16,className:"action-icon delete",onClick:r})]})]}),o.jsxs("div",{className:"translations-list",children:[n.map($=>{const R=$.toUpperCase(),V=L[R]||"",F=f===R;return o.jsxs("div",{className:"lang-row",children:[o.jsx("div",{className:"lang-label",children:R}),F?o.jsx("input",{className:"translation-input editing",value:m,onChange:X=>v(X.target.value),onBlur:q,onKeyDown:A,placeholder:"Entrez la traduction...",autoFocus:!0}):o.jsx("div",{className:`translation-value ${V?"":"empty"}`,onClick:()=>N($),title:"Cliquer pour éditer",children:V||"Cliquer pour ajouter..."})]},$)}),_?o.jsxs("div",{className:"lang-row add-row",children:[o.jsx("select",{className:"lang-select",value:b,onChange:$=>I($.target.value),children:M.map($=>o.jsx("option",{value:$.toUpperCase(),children:$.toUpperCase()},$))}),o.jsx("input",{className:"translation-input editing",value:w,onChange:$=>j($.target.value),onKeyDown:z,placeholder:"Mot",autoFocus:!0}),o.jsxs("div",{className:"add-actions",children:[o.jsx(Z1,{size:18,className:"action-icon confirm",onClick:T}),o.jsx(ht,{size:18,className:"action-icon cancel",onClick:H})]})]}):M.length>0&&o.jsxs("button",{className:"add-translation-btn",onClick:P,children:[o.jsx(Jc,{size:16}),o.jsx("span",{children:"Ajouter"})]})]})]})},Oxe="_overlay_t6q3c_1",Uxe="_modal_t6q3c_15",Wxe="_body_t6q3c_30",Gxe="_footer_t6q3c_50",Kxe="_confirmButton_t6q3c_59",Zxe="_danger_t6q3c_76",Xxe="_cancelButton_t6q3c_80",Et={overlay:Oxe,modal:Uxe,body:Wxe,footer:Gxe,confirmButton:Kxe,danger:Zxe,cancelButton:Xxe},Yxe=({isOpen:e,message:t,children:n,onConfirm:c,onCancel:i,confirmText:r="Confirmer",cancelText:s="Annuler",isDanger:d=!1,hideFooter:l=!1,secondaryConfirmText:h,onSecondaryConfirm:u,modalStyle:p,bodyStyle:k,footerStyle:f,cancelButtonStyle:g,confirmButtonStyle:m,overlayStyle:v,modalClassName:_,bodyClassName:x,footerClassName:b,overlayClassName:I})=>{if(!e)return null;const w=n??t;return o.jsx("div",{className:`${Et.overlay} ${I||""}`.trim(),onClick:i,style:v,children:o.jsxs("div",{className:`${Et.modal} ${_||""}`.trim(),onClick:j=>j.stopPropagation(),style:p,children:[o.jsx("div",{className:`${Et.body} ${x||""}`.trim(),style:k,children:typeof w=="string"?o.jsx("p",{children:w}):w}),!l&&o.jsxs("div",{className:`${Et.footer} ${b||""}`.trim(),style:f,children:[s&&o.jsx("button",{className:Et.cancelButton,onClick:i,style:g,children:s}),h&&u&&o.jsx("button",{className:Et.confirmButton,onClick:u,children:h}),r&&o.jsx("button",{className:`${Et.confirmButton} ${d?Et.danger:""}`,onClick:c,style:m,children:r})]})]})})},Jxe="_card_1ildr_1",Qxe="_topIcon_1ildr_17",e_e="_title_1ildr_24",t_e="_text_1ildr_31",a_e="_bottomIcon_1ildr_37",R1={card:Jxe,topIcon:Qxe,title:e_e,text:t_e,bottomIcon:a_e},n_e=({topIcon:e,title:t,text:n,bottomIcon:c,onClick:i,className:r="",headerTextColor:s="#000",textColor:d="#4b5563",backgroundColor:l="#fff",a11yConfig:h})=>o.jsxs("div",{className:`${R1.card} ${r}`,onClick:i,role:i?"button":void 0,tabIndex:i?0:void 0,style:{backgroundColor:l},title:oe(h,t),children:[e&&o.jsx("div",{className:R1.topIcon,children:e}),o.jsx("h3",{className:R1.title,style:{color:s},children:t}),o.jsx("p",{className:R1.text,style:{color:d},children:n}),c&&o.jsx("div",{className:R1.bottomIcon,children:c})]}),o_e="_container_oylor_1",c_e="_disabled_oylor_9",i_e="_selectBox_oylor_14",r_e="_selectBoxOpen_oylor_36",s_e="_tagsContainer_oylor_41",d_e="_tagsContainerWrap_oylor_51",l_e="_tag_oylor_41",h_e="_tagLabel_oylor_73",u_e="_removeBtnContainer_oylor_79",p_e="_removeBtn_oylor_79",y_e="_searchInput_oylor_104",k_e="_placeholder_oylor_124",m_e="_actions_oylor_131",f_e="_clearBtn_oylor_138",g_e="_chevron_oylor_160",v_e="_chevronOpen_oylor_166",x_e="_dropdown_oylor_170",__e="_option_oylor_184",M_e="_optionHeader_oylor_197",L_e="_noOptions_oylor_213",b_e="_overflowBlock_oylor_220",I_e="_overflowEllipsis_oylor_227",w_e="_overflowBadge_oylor_234",C_e="_overflowBadgeWrap_oylor_257",j_e="_overflowDropdown_oylor_263",N_e="_overflowDropdownItem_oylor_279",S_e="_overflowDropdownItemLabel_oylor_290",$_e="_overflowDropdownItemRemove_oylor_297",pe={container:o_e,disabled:c_e,selectBox:i_e,selectBoxOpen:r_e,tagsContainer:s_e,tagsContainerWrap:d_e,tag:l_e,tagLabel:h_e,removeBtnContainer:u_e,removeBtn:p_e,searchInput:y_e,placeholder:k_e,actions:m_e,clearBtn:f_e,chevron:g_e,chevronOpen:v_e,dropdown:x_e,option:__e,optionHeader:M_e,noOptions:L_e,overflowBlock:b_e,overflowEllipsis:I_e,overflowBadge:w_e,overflowBadgeWrap:C_e,overflowDropdown:j_e,overflowDropdownItem:N_e,overflowDropdownItemLabel:S_e,overflowDropdownItemRemove:$_e},q_e=({options:e,noOptionsMessage:t="",value:n,onChange:c,placeholder:i="Sélectionner...",isSearchable:r=!0,className:s="",disabled:d=!1,allowWrap:l=!1})=>{const[h,u]=y.useState(!1),[p,k]=y.useState(""),f=y.useRef(null),g=y.useRef(null),m=y.useRef(null),v=y.useRef(null),[_,x]=y.useState(null),[b,I]=y.useState(!1),w=y.useRef([]),j=y.useRef(null),L=y.useMemo(()=>{const z=new Map(e.map($=>[$.value,$]));return n.map($=>z.get($)).filter($=>$!==void 0)},[e,n]),M=y.useMemo(()=>e.filter(z=>!n.includes(z.value)),[e,n]),S=y.useMemo(()=>{let z=M;return p&&(z=z.filter($=>$.label.toLowerCase().includes(p.toLowerCase()))),z.filter(($,R)=>{if(!$.isHeader)return!0;for(let V=R+1;V<z.length&&!z[V].isHeader;V++)return!0;return!1})},[M,p]);y.useEffect(()=>{const z=$=>{const R=$.target;f.current&&!f.current.contains(R)&&(u(!1),k(""),x(null),I(!1))};return document.addEventListener("mousedown",z),()=>document.removeEventListener("mousedown",z)},[]),y.useEffect(()=>{if(l)return;if(L.length===0){x(null),w.current=[];return}L.length>w.current.length&&x(null);const z=()=>{const F=m.current,X=v.current;if(!F||!X)return;const U=X.getBoundingClientRect().width,K=X.querySelector(`.${pe.actions}`),te=K?K.getBoundingClientRect().width:80,E=56,Q=r?80:0,de=16,G=Array.from(F.querySelectorAll(`.${pe.tag}`));G.length===L.length&&(w.current=G.map(ve=>{const Se=ve.getBoundingClientRect(),Ke=ve.scrollWidth;return Math.max(Se.width,Ke,ve.offsetWidth||0)}));const ce=w.current,ue=ce.length>0?ce.reduce((ve,Se)=>ve+Se,0)/ce.length:120,ye=L.length<=ce.length?ce.slice(0,L.length):[...ce,...Array(L.length-ce.length).fill(ue)],fe=4,Z=Math.max(0,U-te-Q-de);let ne=0,le=0;for(let ve=0;ve<L.length;ve++){const Se=ye[ve]??120;if(ne+Se+fe>Z)break;ne+=Se+fe,le++}if(le>=L.length){x(null);return}const je=Math.max(0,U-E-te-Q-de);ne=0;let qe=0;for(let ve=0;ve<L.length;ve++){const Se=ye[ve]??120;if(ne+Se+fe>je)break;ne+=Se+fe,qe++}qe<L.length&&qe>0?x(qe):x(null)},$=requestAnimationFrame(()=>{z()}),R=setTimeout(z,100),V=new ResizeObserver(()=>{z()});return v.current&&V.observe(v.current),()=>{cancelAnimationFrame($),clearTimeout(R),V.disconnect()}},[L,r,h,l]);const C=()=>{if(d)return;const z=!h;z&&I(!1),u(z),z&&r&&setTimeout(()=>g.current?.focus(),0)},N=z=>{if(n.includes(z.value))return;I(!1);const $=[...L,z];c($),k(""),x(null),u(!1)},q=z=>{z.preventDefault(),z.stopPropagation(),I($=>!$)},A=_!=null&&_<L.length?L.slice(_):[],P=(z,$)=>{$.stopPropagation();const R=L.filter(V=>V.value!==z);c(R)},T=z=>{z.stopPropagation(),c([])},H=z=>{z.stopPropagation(),h||u(!0)};return o.jsxs("div",{className:`${pe.container} ${s} ${d?pe.disabled:""}`,ref:f,children:[o.jsxs("div",{ref:v,className:`${pe.selectBox} ${h?pe.selectBoxOpen:""}`,onClick:C,role:"combobox","aria-expanded":h,"aria-haspopup":"listbox",children:[o.jsxs("div",{className:`${pe.tagsContainer} ${l?pe.tagsContainerWrap:""}`,ref:m,children:[_!==null&&_>0?L.slice(0,_).map((z,$)=>o.jsxs("div",{className:pe.tag,children:[o.jsx("div",{className:pe.tagLabel,children:o.jsx("span",{children:z.label})}),o.jsx("div",{className:pe.removeBtnContainer,children:o.jsx("button",{type:"button",className:pe.removeBtn,onClick:R=>P(z.value,R),"aria-label":`Supprimer ${z.label}`,children:o.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor",children:o.jsx("path",{d:"M8.5 1.5L1.5 8.5M1.5 1.5L8.5 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})})]},`tag-${z.value}-${$}`)):L.map((z,$)=>o.jsxs("div",{className:pe.tag,children:[o.jsx("div",{className:pe.tagLabel,children:o.jsx("span",{children:z.label})}),o.jsx("div",{className:pe.removeBtnContainer,children:o.jsx("button",{type:"button",className:pe.removeBtn,onClick:R=>P(z.value,R),"aria-label":`Supprimer ${z.label}`,children:o.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor",children:o.jsx("path",{d:"M8.5 1.5L1.5 8.5M1.5 1.5L8.5 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})})]},`tag-${z.value}-${$}`)),r?o.jsx("input",{ref:g,type:"text",className:pe.searchInput,placeholder:L.length===0?i:"",value:p,onChange:z=>{k(z.target.value),h||u(!0)},onClick:H,disabled:d}):L.length===0&&o.jsx("span",{className:pe.placeholder,children:i})]}),!l&&_!==null&&_<L.length&&o.jsxs("div",{className:pe.overflowBlock,children:[o.jsx("span",{className:pe.overflowEllipsis,children:"..."}),o.jsxs("div",{className:pe.overflowBadgeWrap,children:[o.jsx("button",{ref:j,type:"button",className:pe.overflowBadge,onClick:q,"aria-label":`Afficher ${A.length} éléments cachés`,children:A.length}),b&&A.length>0&&o.jsx("div",{className:pe.overflowDropdown,role:"list","aria-label":"Éléments cachés",children:A.map((z,$)=>o.jsxs("div",{className:pe.overflowDropdownItem,children:[o.jsx("span",{className:pe.overflowDropdownItemLabel,children:z.label}),o.jsx("button",{type:"button",className:pe.overflowDropdownItemRemove,onClick:R=>{R.stopPropagation(),P(z.value,R)},"aria-label":`Supprimer ${z.label}`,children:o.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor",children:o.jsx("path",{d:"M8.5 1.5L1.5 8.5M1.5 1.5L8.5 8.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]},`hidden-${z.value}-${$}`))})]})]}),o.jsxs("div",{className:pe.actions,children:[L.length>0&&o.jsx("button",{type:"button",className:pe.clearBtn,onClick:T,"aria-label":"Effacer tout",children:o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:o.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),o.jsx("svg",{className:`${pe.chevron} ${h?pe.chevronOpen:""}`,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("path",{d:"M6 9l6 6 6-6"})})]})]}),h&&!d&&o.jsx("div",{className:pe.dropdown,role:"listbox",children:S.length>0?S.map((z,$)=>o.jsx("div",{className:`${pe.option} ${z.isHeader?pe.optionHeader:""}`,onClick:()=>!z.isHeader&&N(z),role:"option","aria-selected":!1,children:z.label},`opt-${z.value}-${$}`)):o.jsx("div",{className:pe.noOptions,children:t})})]})},A_e="_container_h7jek_1",_$={container:A_e},z_e=({a11yConfigs:e=[],titleKeys:t=[],labels:n=[],data:c=[],selectedUfs:i=[],icons:r=[],lastCardTextColor:s="black",boardColors:d={},order:l})=>{const h=y.useMemo(()=>{const g=i.length===0?c:c.filter(v=>v&&i.includes(String(v.uf).replace(/^0+/,""))),m=new Set;return g.filter(v=>{if(!v||!v.uf)return!1;const _=String(v.uf).replace(/^0+/,"");return m.has(_)?!1:(m.add(_),!0)})},[c,i]),u=y.useMemo(()=>h.reduce((g,m)=>({disponibles:g.disponibles+(m.totalAvailable??m.disponibles??0),homme:g.homme+(m.availableMen??m.disponibleHomme??0),femme:g.femme+(m.availableWomen??m.disponibleFemme??0),indifferencie:g.indifferencie+(m.availableIndifferentSex??m.indifferences??0),sorties:g.sorties+(m.outToday??m.sortie24??0),occupiedBed:g.occupiedBed+(m.occupiedBed??0),patientsPresents:g.patientsPresents+(m.patientsPresents??0),occupationRate:g.occupationRate+(m.occupationRate??0),occupesRaw:g.occupesRaw+(m.occupesRaw??0),ouvertsRaw:g.ouvertsRaw+(m.ouvertsRaw??0)}),{disponibles:0,homme:0,femme:0,indifferencie:0,sorties:0,occupiedBed:0,patientsPresents:0,occupationRate:0,occupesRaw:0,ouvertsRaw:0}),[h]),p=g=>d.disponibles?d.disponibles:g>3?"#35994E":g>=1?"#EF6C00":"#C62828",k={bars:"none",justifyContent:"flexStart",alignItems:"center",valueFontWeight:"400",titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}},f=(g,m)=>{const v=l!==void 0&&m===l.length-1;switch(g){case"disponibles":return{...k,value:u.disponibles.toLocaleString("fr-FR"),backgroundColor:p(u.disponibles),valueFontSize:"2.5rem",titleColor:"white",valueColor:"white"};case"occupiedBed":return{...k,value:u.occupiedBed.toLocaleString("fr-FR"),backgroundColor:d.occupes??d.homme??"#7DD493",valueFontSize:v?"3rem":"2.375rem",titleColor:"black",valueColor:"black"};case"patientsPresents":return{...k,value:u.patientsPresents.toLocaleString("fr-FR"),backgroundColor:d.patientsPresents??d.femme??"#7DD493",valueFontSize:v?"3rem":"2.375rem",titleColor:"black",valueColor:"black"};case"occupationRate":{const _=u.ouvertsRaw>0?parseFloat((u.occupesRaw/u.ouvertsRaw*100).toFixed(2)):u.occupationRate;return{...k,value:`${_.toLocaleString("fr-FR")}%`,backgroundColor:d.occupationRate??d.indifferencie??"#7DD493",valueFontSize:v?"3rem":"2.375rem",titleColor:"black",valueColor:"black"}}case"outToday":return{...k,value:u.sorties.toLocaleString("fr-FR"),backgroundColor:d.sorties??"#F2F9FC",valueFontSize:"3rem",titleColor:s,valueColor:s}}};return l&&l.length>0?o.jsx("div",{className:_$.container,children:l.map((g,m)=>o.jsx(qt,{a11yConfig:e[m],titleKey:t[m],label:n[m],iconName:r[m],...f(g,m)},g))}):o.jsxs("div",{className:_$.container,children:[o.jsx(qt,{a11yConfig:e[0],titleKey:t[0],label:n[0],value:u.disponibles.toLocaleString("fr-FR"),iconName:r[0],backgroundColor:p(u.disponibles),valueFontSize:"2.5rem",valueFontWeight:"400",bars:"none",justifyContent:"flexStart",alignItems:"center",titleColor:"white",valueColor:"white",titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}}),o.jsx(qt,{a11yConfig:e[1],titleKey:t[1],label:n[1],value:u.homme.toLocaleString("fr-FR"),iconName:r[1],backgroundColor:d.homme??"#7DD493",valueFontSize:"2.375rem",valueFontWeight:"400",bars:"none",justifyContent:"flexStart",alignItems:"center",titleColor:"black",valueColor:"black",titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}}),o.jsx(qt,{a11yConfig:e[2],titleKey:t[2],label:n[2],value:u.femme.toLocaleString("fr-FR"),iconName:r[2],backgroundColor:d.femme??"#7DD493",valueFontSize:"2.375rem",valueFontWeight:"400",bars:"none",justifyContent:"flexStart",alignItems:"center",titleColor:"black",valueColor:"black",titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}}),o.jsx(qt,{a11yConfig:e[3],titleKey:t[3],label:n[3],value:u.indifferencie.toLocaleString("fr-FR"),iconName:r[3],backgroundColor:d.indifferencie??"#7DD493",valueFontSize:"2.375rem",valueFontWeight:"400",bars:"none",justifyContent:"flexStart",alignItems:"center",titleColor:"black",valueColor:"black",titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}}),o.jsx(qt,{a11yConfig:e[4],titleKey:t[4],label:n[4],value:u.sorties.toLocaleString("fr-FR"),iconName:r[4],backgroundColor:d.sorties??"#F2F9FC",valueFontSize:"3rem",valueFontWeight:"400",bars:"none",justifyContent:"flexStart",alignItems:"center",titleColor:s,valueColor:s,titleFontSize:"0.625rem",titleFontWeight:"600",cardGap:"2rem",style:{padding:"0.5rem"}})]})},P_e="_container_1pt6c_1",V_e="_chartContainer_1pt6c_14",T_e="_legend_1pt6c_22",D_e="_legendItem_1pt6c_29",H_e="_leftSection_1pt6c_41",B_e="_colorIndicator_1pt6c_47",R_e="_label_1pt6c_54",F_e="_rightSection_1pt6c_60",E_e="_ratio_1pt6c_66",O_e="_value1_1pt6c_73",U_e="_separator_1pt6c_78",W_e="_value2_1pt6c_82",G_e="_statusIndicator_1pt6c_87",K_e="_inactive_1pt6c_102",Qe={container:P_e,chartContainer:V_e,legend:T_e,legendItem:D_e,leftSection:H_e,colorIndicator:B_e,label:R_e,rightSection:F_e,ratio:E_e,value1:O_e,separator:U_e,value2:W_e,statusIndicator:G_e,inactive:K_e},M$=Math.PI/180,Z_e=({data:e,height:t=400,bg:n,backgroundColor:c,color:i,fontSize:r,fontWeight:s,padding:d,margin:l,borderRadius:h,className:u="",style:p={},labelColor:k,ratioColor:f,separatorColor:g,borderColor:m,hideDonut:v=!0,hideColorIndicator:_=!1})=>{const[x,b]=y.useState(new Set(e.map(C=>C.nom))),I=C=>{const N=new Set(x);N.has(C)?N.size>1&&N.delete(C):N.add(C),b(N)},w={...p,"--bg-color":n||c||"transparent","--text-color":i||"inherit","--font-size":r||"14px","--font-weight":s||"400","--padding":d||"0","--margin":l||"0","--border-radius":h||"0","--label-color":k||"inherit","--ratio-color":f||"inherit","--separator-color":g||"#03a9f4","--border-color":m||"#e0e0e0"},j=y.useMemo(()=>e.map(C=>({...C,displayValue:x.has(C.nom)?C.value:0})),[e,x]),L=y.useMemo(()=>e.every(C=>C.value===0),[e]),M=y.useMemo(()=>L?1:j.reduce((C,N)=>C+N.displayValue,0)||1,[L,j]),S=y.useCallback(({cx:C,cy:N,midAngle:q,innerRadius:A,outerRadius:P,value:T})=>{if(T===0||L)return null;const H=A+(P-A)*.5,z=C+H*Math.cos(-q*M$),$=N+H*Math.sin(-q*M$),R=Math.round(T/M*100);return o.jsx(a.Text,{x:z,y:$,fill:"white",textAnchor:"middle",dominantBaseline:"central",fontSize:12,fontWeight:"bold",children:`${R}%`})},[M,L]);return o.jsxs("div",{className:`${Qe.container} ${u}`,style:w,children:[!v&&o.jsx("div",{className:Qe.chartContainer,style:{height:t/2+100},children:o.jsx(a.ResponsiveContainer,{width:"100%",height:"100%",children:o.jsx(a.PieChart,{children:o.jsx(a.Pie,{data:L?[{displayValue:1,color:"#A3C2CB"}]:j,cx:"50%",cy:"50%",innerRadius:45,outerRadius:75,paddingAngle:0,dataKey:"displayValue",stroke:"white",strokeWidth:L?0:2,startAngle:90,endAngle:450,labelLine:!1,label:S,isAnimationActive:!1,children:L?o.jsx(a.Cell,{fill:"#A3C2CB"}):j.map((C,N)=>o.jsx(a.Cell,{fill:C.color},`cell-${N}`))})})})}),o.jsx("div",{className:Qe.legend,children:e.map((C,N)=>{const q=x.has(C.nom);return o.jsxs("div",{className:`${Qe.legendItem} ${!v&&!q?Qe.inactive:""}`,onClick:()=>I(C.nom),style:{cursor:"pointer",transition:"opacity 0.2s"},children:[o.jsxs("div",{className:Qe.leftSection,children:[!_&&o.jsx("div",{className:Qe.colorIndicator,style:{backgroundColor:C.color,opacity:v||q?1:.3}}),o.jsx("span",{className:Qe.label,style:{opacity:v||q?1:.5},children:C.nom})]}),o.jsxs("div",{className:Qe.rightSection,style:{opacity:v||q?1:.5},children:[o.jsxs("div",{className:Qe.ratio,children:[o.jsx("span",{className:Qe.value1,children:C.value1}),o.jsx("span",{className:Qe.separator,children:"/"}),o.jsx("span",{className:Qe.value2,children:C.value2})]}),C.statusColor&&o.jsx("div",{className:Qe.statusIndicator,style:{backgroundColor:C.statusColor}})]})]},`legend-${N}`)})})]})},X_e="_container_1pc4v_1",Y_e="_leftGroup_1pc4v_10",J_e="_iconBtn_1pc4v_16",Bi={container:X_e,leftGroup:Y_e,iconBtn:J_e},Q_e=e=>ee.createElement("svg",{width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",...e},ee.createElement("path",{d:"M3 12h18M3 6h18M3 18h18"})),eMe=y.memo(Q_e),tMe=e=>ee.createElement("svg",{width:"1em",height:"1em",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",...e},ee.createElement("path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8m-4-6-4-4-4 4m4-4v13"})),_z=y.memo(tMe),aMe=({menuIcon:e,logoProps:t,actionIcon:n,style:c,className:i,bgColor:r="var(--header-bg)",color:s="var(--color-text)",borderBottomColor:d="var(--color-border)",borderBottomWidth:l=1,height:h="8vh",onMenuClick:u,onActionClick:p})=>{const k={backgroundColor:r,color:s,borderBottom:`${l}px solid ${d}`,height:h,...c};return o.jsxs("header",{className:[Bi.container,i].filter(Boolean).join(" "),style:k,children:[o.jsxs("div",{className:Bi.leftGroup,children:[o.jsx("button",{className:Bi.iconBtn,onClick:u,"aria-label":"Menu",style:{color:"inherit"},children:e??o.jsx(eMe,{width:22,height:22})}),o.jsx(QL,{...t,size:"medium"})]}),o.jsx("button",{className:Bi.iconBtn,onClick:p,"aria-label":"Action",style:{color:"inherit"},children:n??o.jsx(_z,{width:22,height:22})})]})},nMe="_container_24g3e_1",oMe="_iconBtn_24g3e_10",cMe="_title_24g3e_22",Ri={container:nMe,iconBtn:oMe,title:cMe},iMe=({title:e="Menu",closeIcon:t,actionIcon:n,style:c,className:i,titleStyle:r,bgColor:s="var(--header-bg)",color:d="var(--color-text)",borderBottomColor:l="transparent",borderBottomWidth:h=0,height:u="8vh",onClose:p,onAction:k})=>{const f={backgroundColor:s,color:d,borderBottom:`${h}px solid ${l}`,height:u,...c};return o.jsxs("div",{className:[Ri.container,i].filter(Boolean).join(" "),style:f,children:[o.jsx("button",{className:Ri.iconBtn,onClick:p,"aria-label":"Fermer",style:{color:"inherit"},children:t??o.jsx(xz,{width:22,height:22})}),o.jsx("span",{className:Ri.title,style:{fontWeight:"var(--font-weight-h)",fontSize:"var(--h5)",...r},children:e.toUpperCase()}),o.jsx("button",{className:Ri.iconBtn,onClick:k,"aria-label":"Partager",style:{color:"inherit"},children:n??o.jsx(_z,{width:22,height:22})})]})};function Mz(e){return e.state?e.state:e.active?"active":"available"}const rMe=({title:e,countLabel:t="UF",actionIcon:n=o.jsx(It,{size:16}),onAction:c,items:i=[],onItemClick:r,activeColor:s="var(--color-primary, #0083bb)",id:d,children:l})=>{const h=y.useMemo(()=>i.filter(u=>Mz(u)==="active").length,[i]);return o.jsxs(sMe,{id:d,"data-unit-grid":"true",children:[o.jsxs(dMe,{children:[o.jsxs(lMe,{children:[o.jsx(hMe,{children:e}),o.jsxs(uMe,{children:["(",h," ",t,")"]})]}),c&&o.jsx(pMe,{onClick:c,title:"Action",children:n})]}),o.jsx(yMe,{"data-unit-grid-content":"true",children:o.jsx(kMe,{"data-unit-grid-list":"true",children:i.map(u=>o.jsx(fMe,{item:u,activeColor:s,onItemClick:r},u.id))})}),l&&o.jsx(gMe,{children:l})]})},sMe=O.div`
|
|
8348
8348
|
background: var(--color-card-background, white);
|
|
8349
8349
|
border: 1px solid var(--color-border, #ddd);
|
|
8350
8350
|
border-radius: 4px;
|
|
@@ -8421,7 +8421,7 @@
|
|
|
8421
8421
|
padding: 0 15px 15px 15px;
|
|
8422
8422
|
display: flex;
|
|
8423
8423
|
justify-content: flex-end;
|
|
8424
|
-
`,Lz={green:"#35994e",orange:"#ff9800",red:"#f44336"},vMe=e=>typeof e=="number"?`${e}px`:e,b$=()=>o.jsx("svg",{viewBox:"0 0 16 16",width:"10",height:"10",fill:"none","aria-hidden":"true",children:o.jsx("path",{d:"M3.5 6L8 10.5L12.5 6",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}),xMe=({title:e="LITS DISPONIBLES",criteriaLabel:t="CRITÈRES / HÔPITAUX",summary:n,categories:c,levelColors:i=Lz,defaultExpandedCategoryId:r,expandedCategoryId:s,onExpandedCategoryChange:d,onItemClick:l,summaryIcon:h,onSummaryIconClick:u,criteriaIcon:p,onCriteriaIconClick:k,criteriaIconLabel:f,width:g="20rem",className:m,backgroundColor:v="#ffffff",textColor:_="#1a1a1a",activeBackgroundColor:x="#cce7f2",hoverBackgroundColor:b="#f5f8fa"})=>{const[I,w]=y.useState(r??""),j=s??I,
|
|
8424
|
+
`,Lz={green:"#35994e",orange:"#ff9800",red:"#f44336"},vMe=e=>typeof e=="number"?`${e}px`:e,b$=()=>o.jsx("svg",{viewBox:"0 0 16 16",width:"10",height:"10",fill:"none","aria-hidden":"true",children:o.jsx("path",{d:"M3.5 6L8 10.5L12.5 6",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}),xMe=({title:e="LITS DISPONIBLES",criteriaLabel:t="CRITÈRES / HÔPITAUX",summary:n,categories:c,levelColors:i=Lz,defaultExpandedCategoryId:r,expandedCategoryId:s,onExpandedCategoryChange:d,onItemClick:l,summaryIcon:h,onSummaryIconClick:u,criteriaIcon:p,onCriteriaIconClick:k,criteriaIconLabel:f,width:g="20rem",className:m,backgroundColor:v="#ffffff",textColor:_="#1a1a1a",activeBackgroundColor:x="#cce7f2",hoverBackgroundColor:b="#f5f8fa"})=>{const[I,w]=y.useState(r??""),j=s??I,L=y.useRef(null),M=y.useRef({}),S=C=>{const N=j===C?"":C;w(N),d?.(N)};return y.useEffect(()=>{const C=L.current,N=j?M.current[j]:null;if(!C||!N)return;const q=C.getBoundingClientRect(),A=N.getBoundingClientRect();A.bottom>q.bottom&&C.scrollBy({top:Math.min(A.bottom-q.bottom,A.top-q.top),behavior:"smooth"})},[j]),o.jsxs(_Me,{ref:L,$width:g,$backgroundColor:v,className:m,children:[o.jsxs(MMe,{children:[o.jsx(LMe,{children:e}),o.jsxs(bMe,{children:[n&&o.jsxs(o.Fragment,{children:[o.jsx(Fi,{$bg:i.green,children:n.green}),o.jsx(Fi,{$bg:i.orange,children:n.orange}),o.jsx(Fi,{$bg:i.red,children:n.red})]}),o.jsx(I$,{type:"button",onClick:u,children:h??o.jsx(b$,{})})]})]}),o.jsxs(IMe,{children:[o.jsx(wMe,{children:t}),o.jsx(I$,{type:"button",onClick:k,"aria-label":f,title:f,children:p??o.jsx(b$,{})})]}),o.jsx(CMe,{children:c.map(C=>{const N=j===C.id;return o.jsxs("div",{ref:q=>{M.current[C.id]=q},children:[o.jsx(NMe,{type:"button",$active:N,$textColor:_,$activeBackgroundColor:x,onClick:()=>S(C.id),$isLastItem:c[c.length-1].id===C.id,children:C.label}),N&&C.items.length>0&&o.jsx(jMe,{children:C.items.map(q=>o.jsxs(SMe,{type:"button",$textColor:_,$hoverBackgroundColor:b,onClick:()=>l?.(q.id),children:[o.jsx($Me,{title:q.title??q.name,children:q.name}),q.distanceLabel&&o.jsx(qMe,{children:q.distanceLabel}),!C.hideItemBadge&&o.jsx(Fi,{$bg:q.color??i[q.level],children:q.available})]},q.id))})]},C.id)})})]})},_Me=O.aside`
|
|
8425
8425
|
width: ${e=>vMe(e.$width)};
|
|
8426
8426
|
flex-shrink: 0;
|
|
8427
8427
|
align-self: flex-start;
|
|
@@ -8660,7 +8660,7 @@
|
|
|
8660
8660
|
&:focus::-webkit-slider-runnable-track {
|
|
8661
8661
|
outline: none;
|
|
8662
8662
|
}
|
|
8663
|
-
`,TMe=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",...e},ee.createElement("mask",{id:"a",width:20,height:20,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},ee.createElement("path",{fill:"#D9D9D9",d:"M0 0h20v20H0z"})),ee.createElement("g",{mask:"url(#a)"},ee.createElement("path",{fill:"#1C1B1F",d:"M10.75 10.375V7.748a.73.73 0 0 0-.214-.53.7.7 0 0 0-.531-.218.74.74 0 0 0-.536.214.7.7 0 0 0-.218.53v2.954q0 .149.062.288.063.139.174.25l2.076 2.076q.23.23.531.22a.77.77 0 0 0 .532-.24.73.73 0 0 0 0-1.063zM10 18a6.8 6.8 0 0 1-2.731-.554 7.1 7.1 0 0 1-2.217-1.498 7.1 7.1 0 0 1-1.497-2.216A6.8 6.8 0 0 1 3 11q0-1.458.554-2.732t1.497-2.217A7.1 7.1 0 0 1 7.27 4.554 6.8 6.8 0 0 1 10 4q1.458 0 2.732.554 1.274.555 2.216 1.497a7.1 7.1 0 0 1 1.498 2.217Q17 9.542 17 11t-.555 2.732a7.1 7.1 0 0 1-1.497 2.217 7.1 7.1 0 0 1-2.216 1.497A6.8 6.8 0 0 1 10 18M1.939 6.458a.73.73 0 0 1 0-1.062l2.48-2.48a.73.73 0 0 1 1.062 0 .73.73 0 0 1 0 1.063l-2.5 2.5a.68.68 0 0 1-.521.219.76.76 0 0 1-.52-.24m16.146 0a.73.73 0 0 1-1.062 0l-2.48-2.479a.73.73 0 0 1 0-1.062.73.73 0 0 1 1.063 0l2.479 2.5q.23.228.23.52a.72.72 0 0 1-.23.521M9.996 16.5q2.296 0 3.9-1.6t1.605-3.895-1.6-3.9T10.005 5.5t-3.9 1.6T4.5 10.995t1.6 3.9T9.995 16.5"}))),DMe=y.memo(TMe),HMe=({value:e,onChange:t,label:n,placeholder:c="00:00",disabled:i=!1,fullWidth:r=!0,cancelText:s,applyText:d,hoursLabel:l,minutesLabel:h,dropdownAlignment:u="left",maxHours:p=23,ariaLabel:k,ariaLabelledBy:f,a11yConfig:g})=>{const[m,v]=y.useState(!1),_=y.useRef(null),x=C=>{if(C instanceof Date)return{h:C.getHours().toString().padStart(2,"0"),m:C.getMinutes().toString().padStart(2,"0")};if(typeof C=="string"&&C.includes(":")){const N=C.split(":");return{h:N[0].padStart(2,"0"),m:N[1].padStart(2,"0")}}return{h:"00",m:"00"}},[b,I]=y.useState("00"),[w,j]=y.useState("00");y.useEffect(()=>{const C=x(e);I(C.h),j(C.m)},[e,m]),y.useEffect(()=>{const C=N=>{_.current&&!_.current.contains(N.target)&&v(!1)};return document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)},[]);const
|
|
8663
|
+
`,TMe=e=>ee.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",...e},ee.createElement("mask",{id:"a",width:20,height:20,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},ee.createElement("path",{fill:"#D9D9D9",d:"M0 0h20v20H0z"})),ee.createElement("g",{mask:"url(#a)"},ee.createElement("path",{fill:"#1C1B1F",d:"M10.75 10.375V7.748a.73.73 0 0 0-.214-.53.7.7 0 0 0-.531-.218.74.74 0 0 0-.536.214.7.7 0 0 0-.218.53v2.954q0 .149.062.288.063.139.174.25l2.076 2.076q.23.23.531.22a.77.77 0 0 0 .532-.24.73.73 0 0 0 0-1.063zM10 18a6.8 6.8 0 0 1-2.731-.554 7.1 7.1 0 0 1-2.217-1.498 7.1 7.1 0 0 1-1.497-2.216A6.8 6.8 0 0 1 3 11q0-1.458.554-2.732t1.497-2.217A7.1 7.1 0 0 1 7.27 4.554 6.8 6.8 0 0 1 10 4q1.458 0 2.732.554 1.274.555 2.216 1.497a7.1 7.1 0 0 1 1.498 2.217Q17 9.542 17 11t-.555 2.732a7.1 7.1 0 0 1-1.497 2.217 7.1 7.1 0 0 1-2.216 1.497A6.8 6.8 0 0 1 10 18M1.939 6.458a.73.73 0 0 1 0-1.062l2.48-2.48a.73.73 0 0 1 1.062 0 .73.73 0 0 1 0 1.063l-2.5 2.5a.68.68 0 0 1-.521.219.76.76 0 0 1-.52-.24m16.146 0a.73.73 0 0 1-1.062 0l-2.48-2.479a.73.73 0 0 1 0-1.062.73.73 0 0 1 1.063 0l2.479 2.5q.23.228.23.52a.72.72 0 0 1-.23.521M9.996 16.5q2.296 0 3.9-1.6t1.605-3.895-1.6-3.9T10.005 5.5t-3.9 1.6T4.5 10.995t1.6 3.9T9.995 16.5"}))),DMe=y.memo(TMe),HMe=({value:e,onChange:t,label:n,placeholder:c="00:00",disabled:i=!1,fullWidth:r=!0,cancelText:s,applyText:d,hoursLabel:l,minutesLabel:h,dropdownAlignment:u="left",maxHours:p=23,ariaLabel:k,ariaLabelledBy:f,a11yConfig:g})=>{const[m,v]=y.useState(!1),_=y.useRef(null),x=C=>{if(C instanceof Date)return{h:C.getHours().toString().padStart(2,"0"),m:C.getMinutes().toString().padStart(2,"0")};if(typeof C=="string"&&C.includes(":")){const N=C.split(":");return{h:N[0].padStart(2,"0"),m:N[1].padStart(2,"0")}}return{h:"00",m:"00"}},[b,I]=y.useState("00"),[w,j]=y.useState("00");y.useEffect(()=>{const C=x(e);I(C.h),j(C.m)},[e,m]),y.useEffect(()=>{const C=N=>{_.current&&!_.current.contains(N.target)&&v(!1)};return document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)},[]);const L=()=>{const C=parseInt(b)||0,N=parseInt(w)||0,q=Math.min(p,Math.max(0,C)).toString().padStart(2,"0"),A=Math.min(59,Math.max(0,N)).toString().padStart(2,"0");t(`${q}:${A}`),v(!1)},M=e?typeof e=="string"?e:`${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}`:"",S=oe(g,n);return o.jsxs(BMe,{ref:_,$fullWidth:r,title:S,children:[n&&o.jsx(RMe,{id:f?void 0:`${n}-label`,children:n}),o.jsx(FMe,{type:"button",$isOpen:m,$disabled:i,onClick:()=>!i&&v(!m),disabled:i,"aria-label":k,"aria-labelledby":f||(n?`${n}-label`:void 0),"aria-expanded":m,"aria-haspopup":"listbox",children:o.jsxs(EMe,{children:[o.jsx(OMe,{$isPlaceholder:!M,children:M||c}),o.jsx(UMe,{})]})}),m&&o.jsxs(WMe,{$alignment:u,children:[o.jsxs(GMe,{children:[o.jsxs(w$,{children:[o.jsx(C$,{children:l}),o.jsx(j$,{children:o.jsx(N$,{type:"number",min:"0",max:p.toString(),$wide:p>99,value:b,onChange:C=>{const N=C.target.value;if(N===""){I("");return}const q=parseInt(N);!isNaN(q)&&q>=0&&q<=p&&I(N)},autoFocus:!0})})]}),o.jsx(KMe,{children:":"}),o.jsxs(w$,{children:[o.jsx(C$,{children:h}),o.jsx(j$,{children:o.jsx(N$,{type:"number",min:"0",max:"59",value:w,onChange:C=>{const N=C.target.value;if(N===""){j("");return}const q=parseInt(N);!isNaN(q)&&q>=0&&q<=59&&j(N.slice(-2))}})})]})]}),o.jsxs(ZMe,{children:[o.jsx(S$,{className:"cancel",onClick:()=>v(!1),children:s}),o.jsx(S$,{className:"apply",onClick:L,children:d})]})]})]})},BMe=O.div`
|
|
8664
8664
|
position: relative;
|
|
8665
8665
|
display: inline-block;
|
|
8666
8666
|
max-width: 100%;
|
|
@@ -8920,12 +8920,12 @@
|
|
|
8920
8920
|
&:hover {
|
|
8921
8921
|
opacity: 1;
|
|
8922
8922
|
}
|
|
8923
|
-
`,dLe="_patientCard_r0eh1_1",lLe="_notAllowedCursor_r0eh1_18",hLe="_innerPadding_r0eh1_28",uLe="_noFooterMargin_r0eh1_35",pLe="_topArea_r0eh1_39",yLe="_small_r0eh1_49",kLe="_header_r0eh1_62",mLe="_headerLeft_r0eh1_69",fLe="_headerRight_r0eh1_75",gLe="_uf_r0eh1_80",vLe="_rmBadge_r0eh1_88",xLe="_roomBed_r0eh1_103",_Le="_content_r0eh1_110",MLe="_body_r0eh1_122",LLe="_upperBodyContent_r0eh1_140",bLe="_patientInfo_r0eh1_150",ILe="_iep_r0eh1_155",wLe="_name_r0eh1_160",CLe="_birthName_r0eh1_167",jLe="_firstNames_r0eh1_172",NLe="_dobAge_r0eh1_177",SLe="_duration_r0eh1_182",$Le="_comment_r0eh1_188",qLe="_timeline_r0eh1_195",ALe="_destination_r0eh1_199",zLe="_todayReservation_r0eh1_209",PLe="_arrow_r0eh1_230",VLe="_progressBar_r0eh1_235",TLe="_progressFill_r0eh1_245",DLe="_progressDate_r0eh1_255",HLe="_footer_r0eh1_266",BLe="_iconWrap_r0eh1_275",RLe="_centerLabelHuge_r0eh1_294",FLe="_labelYellow_r0eh1_301",ELe="_expectedBottom_r0eh1_320",OLe="_expectedPrefix_r0eh1_328",ULe="_expectedDate_r0eh1_334",WLe="_notesView_r0eh1_355",GLe="_notesHeader_r0eh1_363",KLe="_notesTitle_r0eh1_369",ZLe="_notesList_r0eh1_376",XLe="_noteItem_r0eh1_382",YLe="_reservationView_r0eh1_387",JLe="_reservationNote_r0eh1_399",QLe="_bottomArea_r0eh1_404",ebe="_bottomLeftSymbol_r0eh1_412",J={patientCard:dLe,notAllowedCursor:lLe,innerPadding:hLe,noFooterMargin:uLe,topArea:pLe,small:yLe,header:kLe,headerLeft:mLe,headerRight:fLe,uf:gLe,rmBadge:vLe,roomBed:xLe,content:_Le,body:MLe,upperBodyContent:LLe,patientInfo:bLe,iep:ILe,name:wLe,birthName:CLe,firstNames:jLe,dobAge:NLe,duration:SLe,comment:$Le,timeline:qLe,destination:ALe,todayReservation:zLe,arrow:PLe,progressBar:VLe,progressFill:TLe,progressDate:DLe,footer:HLe,iconWrap:BLe,centerLabelHuge:RLe,labelYellow:FLe,expectedBottom:ELe,expectedPrefix:OLe,expectedDate:ULe,notesView:WLe,notesHeader:GLe,notesTitle:KLe,notesList:ZLe,noteItem:XLe,reservationView:YLe,reservationNote:JLe,bottomArea:QLe,bottomLeftSymbol:ebe},tbe=({size:e="large",className:t="",customStyle:n,topAreaStyle:c,headerLeft:i,headerRight:r,centerHugeLabel:s,iep:d,nameLine:l,birthName:h,birthNamePrefix:u,firstNamesLine:p,dobAgeLine:k,stayDuration:f,comment:g,expectedDate:m,expectedDatePrefix:v,showTimeline:_=!1,destination:x,progress:b=0,progressTrackColor:I,progressFillColor:w,progressLabel:j,progressTitle:
|
|
8923
|
+
`,dLe="_patientCard_r0eh1_1",lLe="_notAllowedCursor_r0eh1_18",hLe="_innerPadding_r0eh1_28",uLe="_noFooterMargin_r0eh1_35",pLe="_topArea_r0eh1_39",yLe="_small_r0eh1_49",kLe="_header_r0eh1_62",mLe="_headerLeft_r0eh1_69",fLe="_headerRight_r0eh1_75",gLe="_uf_r0eh1_80",vLe="_rmBadge_r0eh1_88",xLe="_roomBed_r0eh1_103",_Le="_content_r0eh1_110",MLe="_body_r0eh1_122",LLe="_upperBodyContent_r0eh1_140",bLe="_patientInfo_r0eh1_150",ILe="_iep_r0eh1_155",wLe="_name_r0eh1_160",CLe="_birthName_r0eh1_167",jLe="_firstNames_r0eh1_172",NLe="_dobAge_r0eh1_177",SLe="_duration_r0eh1_182",$Le="_comment_r0eh1_188",qLe="_timeline_r0eh1_195",ALe="_destination_r0eh1_199",zLe="_todayReservation_r0eh1_209",PLe="_arrow_r0eh1_230",VLe="_progressBar_r0eh1_235",TLe="_progressFill_r0eh1_245",DLe="_progressDate_r0eh1_255",HLe="_footer_r0eh1_266",BLe="_iconWrap_r0eh1_275",RLe="_centerLabelHuge_r0eh1_294",FLe="_labelYellow_r0eh1_301",ELe="_expectedBottom_r0eh1_320",OLe="_expectedPrefix_r0eh1_328",ULe="_expectedDate_r0eh1_334",WLe="_notesView_r0eh1_355",GLe="_notesHeader_r0eh1_363",KLe="_notesTitle_r0eh1_369",ZLe="_notesList_r0eh1_376",XLe="_noteItem_r0eh1_382",YLe="_reservationView_r0eh1_387",JLe="_reservationNote_r0eh1_399",QLe="_bottomArea_r0eh1_404",ebe="_bottomLeftSymbol_r0eh1_412",J={patientCard:dLe,notAllowedCursor:lLe,innerPadding:hLe,noFooterMargin:uLe,topArea:pLe,small:yLe,header:kLe,headerLeft:mLe,headerRight:fLe,uf:gLe,rmBadge:vLe,roomBed:xLe,content:_Le,body:MLe,upperBodyContent:LLe,patientInfo:bLe,iep:ILe,name:wLe,birthName:CLe,firstNames:jLe,dobAge:NLe,duration:SLe,comment:$Le,timeline:qLe,destination:ALe,todayReservation:zLe,arrow:PLe,progressBar:VLe,progressFill:TLe,progressDate:DLe,footer:HLe,iconWrap:BLe,centerLabelHuge:RLe,labelYellow:FLe,expectedBottom:ELe,expectedPrefix:OLe,expectedDate:ULe,notesView:WLe,notesHeader:GLe,notesTitle:KLe,notesList:ZLe,noteItem:XLe,reservationView:YLe,reservationNote:JLe,bottomArea:QLe,bottomLeftSymbol:ebe},tbe=({size:e="large",className:t="",customStyle:n,topAreaStyle:c,headerLeft:i,headerRight:r,centerHugeLabel:s,iep:d,nameLine:l,birthName:h,birthNamePrefix:u,firstNamesLine:p,dobAgeLine:k,stayDuration:f,comment:g,expectedDate:m,expectedDatePrefix:v,showTimeline:_=!1,destination:x,progress:b=0,progressTrackColor:I,progressFillColor:w,progressLabel:j,progressTitle:L,showFooter:M=!1,leftIcons:S=[],rightIcons:C=[],activeView:N="default",notesHeaderTitle:q,notesHeaderIcon:A,notesList:P=[],notesTitles:T,reservationNote:H,isYellowLabel:z=!1,bottomLeftSymbol:$,cursorNotAllowed:R=!1,rmBadge:V,isReservationToday:F=!1})=>{const X=e==="small",U=`
|
|
8924
8924
|
${J.patientCard}
|
|
8925
|
-
${
|
|
8926
|
-
${
|
|
8925
|
+
${X?J.small:""}
|
|
8926
|
+
${R?J.notAllowedCursor:""}
|
|
8927
8927
|
${t}
|
|
8928
|
-
`.trim();return o.jsx("div",{className:U,style:n,children:o.jsxs("div",{className:J.innerPadding,children:[o.jsxs("div",{className:`${J.topArea} ${L?"":J.noFooterMargin}`,style:c,children:[o.jsx("div",{className:J.header,children:T?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:J.headerLeft,children:o.jsxs("div",{className:J.uf,children:[i,r&&` - ${r}`]})}),o.jsx("div",{className:J.headerRight,children:o.jsx("div",{className:J.rmBadge,children:T})})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:J.headerLeft,children:i&&o.jsx("div",{className:J.uf,children:i})}),o.jsx("div",{className:J.headerRight,children:r&&o.jsx("span",{className:J.roomBed,children:r})})]})}),o.jsxs("div",{className:J.content,children:[o.jsxs("div",{className:J.body,children:[N==="default"&&o.jsxs(o.Fragment,{children:[s&&o.jsx("div",{className:`${J.centerLabelHuge} ${z?J.labelYellow:""}`,children:s}),o.jsxs("div",{className:J.upperBodyContent,children:[o.jsxs("div",{className:J.patientInfo,children:[d&&o.jsx("div",{className:J.iep,children:d}),l&&o.jsx("div",{className:J.name,children:l}),h&&o.jsxs("div",{className:J.birthName,children:["(",u?`${u} ${h}`:h,")"]}),p&&o.jsx("div",{className:J.firstNames,children:p}),k&&o.jsx("div",{className:J.dobAge,children:k})]}),f&&o.jsx("div",{className:J.duration,children:f}),g&&o.jsx("div",{className:J.comment,children:g})]}),m&&o.jsxs("div",{className:J.expectedBottom,children:[v&&o.jsx("div",{className:J.expectedPrefix,children:v}),o.jsx("div",{className:J.expectedDate,children:m})]})]}),N==="notes"&&o.jsxs("div",{className:J.notesView,children:[o.jsxs("div",{className:J.notesHeader,children:[q,o.jsx("span",{className:J.notesTitle,children:$})]}),o.jsx("div",{className:J.notesList,children:P.map((K,te)=>o.jsx("div",{className:J.noteItem,title:D?.[te],children:K},te))})]}),N==="reservation"&&o.jsxs("div",{className:J.reservationView,children:[s&&o.jsx("div",{className:`${J.centerLabelHuge} ${z?J.labelYellow:""}`,children:s}),o.jsx("div",{className:J.upperBodyContent,children:o.jsxs("div",{className:J.patientInfo,children:[d&&o.jsx("div",{className:J.iep,children:d}),l&&o.jsx("div",{className:J.name,children:l}),h&&o.jsxs("div",{className:J.birthName,children:["(",u?`${u} ${h}`:h,")"]}),p&&o.jsx("div",{className:J.firstNames,children:p}),k&&o.jsx("div",{className:J.dobAge,children:k})]})}),V&&o.jsx("div",{className:J.reservationNote,children:V})]})]}),(A||_||x)&&o.jsxs("div",{className:J.bottomArea,children:[A&&o.jsx("div",{className:J.bottomLeftSymbol,children:A}),x&&o.jsxs("div",{className:`${J.destination} ${R?J.todayReservation:""}`,children:[o.jsx("span",{className:J.arrow,children:"→"}),x.prefix&&o.jsx("span",{children:x.prefix}),o.jsx("strong",{children:x.name}),x.suffix&&o.jsx("span",{children:x.suffix})]}),_&&o.jsx("div",{className:J.timeline,children:I&&I!=="transparent"&&o.jsxs("div",{className:J.progressBar,style:{backgroundColor:I},title:M,children:[o.jsx("div",{className:J.progressFill,style:{width:`${b}%`,backgroundColor:w}}),j&&o.jsx("span",{className:J.progressDate,children:j})]})})]})]})]}),L&&o.jsxs("div",{className:J.footer,children:[S.map((K,te)=>o.jsx("div",{className:J.iconWrap,children:K},`left-${te}`)),C.map((K,te)=>o.jsx("div",{className:J.iconWrap,children:K},`right-${te}`))]})]})})},abe="_panel_1viix_1",nbe="_header_1viix_13",obe="_headerLeft_1viix_23",cbe="_title_1viix_30",ibe="_closeButton_1viix_40",rbe="_paginationLoader_1viix_63",sbe="_messageList_1viix_71",dbe="_listLoading_1viix_86",lbe="_empty_1viix_94",hbe="_daySeparator_1viix_105",ube="_messageRow_1viix_118",pbe="_fadeIn_1viix_1",ybe="_incoming_1viix_138",kbe="_outgoing_1viix_146",mbe="_avatar_1viix_154",fbe="_messageMeta_1viix_170",gbe="_senderName_1viix_180",vbe="_bubble_1viix_185",xbe="_unread_1viix_209",_be="_scrollToBottomButton_1viix_243",Mbe="_scrollBtnVisible_1viix_263",Lbe="_scrollBtnIn_1viix_1",bbe="_scrollBtnHiding_1viix_267",Ibe="_scrollBtnOut_1viix_1",wbe="_composer_1viix_272",Cbe="_messageInput_1viix_281",jbe="_sendButton_1viix_315",Nbe="_messageListWrapper_1viix_340",Le={panel:abe,header:nbe,headerLeft:obe,title:cbe,closeButton:ibe,paginationLoader:rbe,messageList:sbe,listLoading:dbe,empty:lbe,daySeparator:hbe,messageRow:ube,fadeIn:pbe,incoming:ybe,outgoing:kbe,avatar:mbe,messageMeta:fbe,senderName:gbe,bubble:vbe,unread:xbe,scrollToBottomButton:_be,scrollBtnVisible:Mbe,scrollBtnIn:Lbe,scrollBtnHiding:bbe,scrollBtnOut:Ibe,composer:wbe,messageInput:Cbe,sendButton:jbe,messageListWrapper:Nbe};function bz(e,t="fr"){return[...e].sort((n,c)=>new Date(n.sentAt).getTime()-new Date(c.sentAt).getTime()).reduce((n,c)=>{const i=new Date(c.sentAt),r=i.toLocaleDateString(t,{year:"numeric",month:"2-digit",day:"2-digit"}),s=n[n.length-1];return s?.dayKey===r?[...n.slice(0,-1),{...s,messages:[...s.messages,c]}]:[...n,{dayKey:r,date:i,messages:[c]}]},[])}function Iz(e,t="fr"){return new Intl.DateTimeFormat(t,{weekday:"short",day:"2-digit",month:"2-digit",year:"numeric"}).format(e)}function wz(e,t="fr"){return new Intl.DateTimeFormat(t,{hour:"2-digit",minute:"2-digit",hour12:!1}).format(new Date(e))}function Cz(e,t){return e.sender.id===t?"outgoing":e.isRead===!1?"unread":"incoming"}const Sbe=300,$be=220,qbe=60;function jz({messages:e,currentSenderId:t,onSend:n,hasMore:c=!1,onLoadMore:i,locale:r="fr"}){const s=y.useRef(null),d=y.useRef(null),l=y.useRef(null),[h,u]=y.useState(""),[p,k]=y.useState(!1),f=h.trim().length>0&&!p;y.useEffect(()=>{const A=l.current;A&&((typeof CSS>"u"||!CSS.supports||!CSS.supports("field-sizing","content"))&&(A.style.height="auto",A.style.height=`${Math.min(Math.max(A.scrollHeight,60),140)}px`),A.scrollTop=A.scrollHeight)},[h]);const[g,m]=y.useState(!1),v=y.useRef(!1),[_,x]=y.useState("hidden"),b=y.useRef("hidden"),I=y.useRef(null),w=y.useRef(!1),j=y.useCallback(A=>{b.current=A,x(A)},[]),M=y.useCallback(()=>{I.current&&clearTimeout(I.current),j("hiding"),I.current=setTimeout(()=>j("hidden"),$be)},[j]);y.useEffect(()=>{d.current?.scrollIntoView({behavior:"instant"})},[]),y.useEffect(()=>{!w.current&&!v.current&&d.current?.scrollIntoView({behavior:"smooth"})},[e.length]);const L=y.useCallback(async()=>{const A=h.trim();if(!(!A||p)){k(!0);try{await n(A),u(""),w.current=!1,b.current!=="hidden"&&M(),requestAnimationFrame(()=>{d.current?.scrollIntoView({behavior:"smooth"})})}finally{k(!1)}}},[h,p,n,M]),S=y.useCallback(A=>{A.preventDefault(),L().catch(()=>{})},[L]),C=y.useCallback(A=>{A.key==="Enter"&&!A.shiftKey&&!A.nativeEvent.isComposing&&(A.preventDefault(),L().catch(()=>{}))},[L]),N=y.useCallback(()=>{d.current?.scrollIntoView({behavior:"smooth"})},[]),$=y.useCallback(async()=>{if(!i||v.current)return;const A=s.current,F=A?.scrollHeight??0;v.current=!0,m(!0);try{await i(),await new Promise(T=>requestAnimationFrame(()=>T())),A&&(A.scrollTop+=A.scrollHeight-F)}finally{v.current=!1,m(!1)}},[i]),q=y.useCallback(()=>{const A=s.current;if(!A)return;const T=A.scrollHeight-A.scrollTop-A.clientHeight>Sbe;w.current=T;const R=b.current;T?(R==="hidden"||R==="hiding")&&(I.current&&clearTimeout(I.current),j("visible")):R==="visible"&&M(),A.scrollTop<qbe&&c&&!v.current&&$().catch(()=>{})},[c,$,j,M]),P=bz(e,r),D=y.useCallback((A,F)=>Cz(A,F??t),[t]),V=y.useCallback((A,F)=>Iz(A,F??r),[r]),z=y.useCallback((A,F)=>wz(A,F??r),[r]);return{listRef:s,bottomAnchorRef:d,textareaRef:l,draft:h,setDraft:u,canSend:f,sending:p,handleFormSubmit:S,handleKeyDown:C,scrollBtnState:_,handleScrollBtnClick:N,loadingMoreState:g,handleScrollCombined:q,dayGroups:P,getBubbleVariant:D,formatDayLabel:V,formatHour:z}}const $$=()=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round","aria-hidden":"true",style:{animation:"spin 0.8s linear infinite"},children:[o.jsx("style",{children:"@keyframes spin { to { transform: rotate(360deg); } }"}),o.jsx("path",{d:"M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83"})]}),Nz=({messages:e,currentSenderId:t,onSend:n,onClose:c,hasMore:i=!1,onLoadMore:r,title:s="Messages",showClose:d=!0,loading:l=!1,loadingMore:h=!1,placeholder:u="Votre message…",sendLabel:p="Envoyer",emptyLabel:k="Aucun message",locale:f="fr",loadingNode:g,className:m="",headerIcon:v,closeIcon:_})=>{const{listRef:x,bottomAnchorRef:b,textareaRef:I,draft:w,setDraft:j,canSend:M,sending:L,handleFormSubmit:S,handleKeyDown:C,scrollBtnState:N,handleScrollBtnClick:$,loadingMoreState:q,handleScrollCombined:P,dayGroups:D,getBubbleVariant:V,formatDayLabel:z,formatHour:A}=jz({messages:e,currentSenderId:t,onSend:n,hasMore:i,onLoadMore:r,locale:f});return o.jsxs("div",{className:`${Le.panel} ${m}`,children:[o.jsxs("div",{className:Le.header,children:[o.jsxs("div",{className:Le.headerLeft,children:[v,o.jsx("h3",{className:Le.title,children:s})]}),d&&c&&o.jsx("button",{type:"button",className:Le.closeButton,onClick:c,"aria-label":"Fermer",children:_??o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[o.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),o.jsxs("div",{className:Le.messageListWrapper,children:[o.jsxs("div",{ref:x,className:Le.messageList,role:"log","aria-live":"polite","aria-label":s,onScroll:P,children:[!l&&(h||q)&&o.jsx("div",{className:Le.paginationLoader,children:o.jsx($$,{})}),l&&o.jsx("div",{className:Le.listLoading,children:g??o.jsx($$,{})}),!l&&D.length===0&&o.jsx("div",{className:Le.empty,children:k}),!l&&D.map(F=>o.jsxs(y.Fragment,{children:[o.jsx("div",{className:Le.daySeparator,role:"separator",children:z(F.date)}),F.messages.map(T=>{const R=V(T),Y=R==="outgoing",U=A(T.sentAt);return o.jsxs("div",{className:`${Le.messageRow} ${Y?Le.outgoing:Le.incoming}`,children:[!Y&&o.jsx("span",{className:Le.avatar,"aria-hidden":"true",children:T.sender.shortName}),o.jsxs("span",{className:Le.messageMeta,children:[!Y&&o.jsx("span",{className:Le.senderName,children:T.sender.name}),o.jsx("span",{children:U})]}),o.jsx("div",{className:`${Le.bubble} ${Le[R]}`,children:T.content})]},T.id)})]},F.dayKey)),o.jsx("div",{ref:b,"aria-hidden":"true"})]}),N!=="hidden"&&o.jsx("button",{type:"button",className:`${Le.scrollToBottomButton} ${N==="hiding"?Le.scrollBtnHiding:Le.scrollBtnVisible}`,onClick:$,"aria-label":"Aller au dernier message",children:"↓"})]}),o.jsxs("form",{className:Le.composer,onSubmit:S,children:[o.jsx("textarea",{ref:I,className:Le.messageInput,value:w,onChange:F=>j(F.target.value),onKeyDown:C,placeholder:u,"aria-label":u,rows:1,disabled:L}),o.jsx("button",{type:"submit",className:Le.sendButton,disabled:!M,children:p})]})]})},Abe=({title:e,titleBold:t,titleKey:n,items:c,className:i="",width:r,style:s,labelStyle:d,valueStyle:l,headerStyle:h,a11yConfig:u,onItemClick:p,onDeleteItem:k})=>{const f={width:r||"100%",...s};return o.jsxs("div",{className:`data-list-v2-container ${i}`,style:f,children:[(e||t)&&o.jsx("div",{className:"data-list-v2-header",style:h,children:o.jsxs("h2",{className:"header-title",title:oe(u,n),children:[e&&o.jsx("span",{className:"title-regular",children:e}),t&&o.jsx("span",{className:"title-bold",children:t})]})}),o.jsx("div",{className:"data-list-v2-content",children:c.map(g=>o.jsxs("div",{className:`data-list-v2-item ${p?"interactive":""} ${g.showValueLine?"with-value-line":""}`,onClick:()=>p?.(g),children:[o.jsx("div",{className:"item-label-col",style:d,children:o.jsx("div",{className:"item-label",title:oe(g.a11yConfig,g.labelKey),children:g.label})}),o.jsxs("div",{className:"item-value-col",style:l,children:[o.jsx("div",{className:"item-value",title:oe(g.a11yConfig,g.valueKey),children:g.value}),k&&o.jsx("div",{className:"item-delete-action",onClick:m=>{m.stopPropagation(),k(g)},children:o.jsx(It,{size:16})})]})]},g.id))})]})},zbe=({id:e,data:t,children:n,className:c,onDragStart:i,onDragEnd:r})=>{const s=l=>{l.dataTransfer.setData("text/plain",e),t&&l.dataTransfer.setData("application/json",JSON.stringify(t)),l.dataTransfer.effectAllowed="move",i&&i(l,t)},d=l=>{r&&r(l)};return o.jsx("div",{draggable:!0,onDragStart:s,onDragEnd:d,style:{cursor:"grab"},className:c,children:n})},Pbe=({id:e,onDrop:t,children:n,className:c="",activeClassName:i="is-drag-over"})=>{const[r,s]=y.useState(!1),d=y.useRef(0),l=f=>{f.preventDefault(),d.current+=1,d.current>0&&s(!0)},h=f=>{f.preventDefault(),f.dataTransfer.dropEffect="move"},u=f=>{f.preventDefault(),d.current-=1,d.current===0&&s(!1)},p=f=>{f.preventDefault(),s(!1),d.current=0;const g=f.dataTransfer.getData("text/plain");let m;try{const v=f.dataTransfer.getData("application/json");v&&(m=JSON.parse(v))}catch(v){console.error("Failed to parse drag data",v)}g&&t(g,m)},k=`${c} ${r?i:""}`.trim();return o.jsx("div",{onDragEnter:l,onDragOver:h,onDragLeave:u,onDrop:p,className:k,"data-droppable-id":e,children:n})},Vbe=e=>o.jsx(Tbe,{...e}),Tbe=O.textarea`
|
|
8928
|
+
`.trim();return o.jsx("div",{className:U,style:n,children:o.jsxs("div",{className:J.innerPadding,children:[o.jsxs("div",{className:`${J.topArea} ${M?"":J.noFooterMargin}`,style:c,children:[o.jsx("div",{className:J.header,children:V?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:J.headerLeft,children:o.jsxs("div",{className:J.uf,children:[i,r&&` - ${r}`]})}),o.jsx("div",{className:J.headerRight,children:o.jsx("div",{className:J.rmBadge,children:V})})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:J.headerLeft,children:i&&o.jsx("div",{className:J.uf,children:i})}),o.jsx("div",{className:J.headerRight,children:r&&o.jsx("span",{className:J.roomBed,children:r})})]})}),o.jsxs("div",{className:J.content,children:[o.jsxs("div",{className:J.body,children:[N==="default"&&o.jsxs(o.Fragment,{children:[s&&o.jsx("div",{className:`${J.centerLabelHuge} ${z?J.labelYellow:""}`,children:s}),o.jsxs("div",{className:J.upperBodyContent,children:[o.jsxs("div",{className:J.patientInfo,children:[d&&o.jsx("div",{className:J.iep,children:d}),l&&o.jsx("div",{className:J.name,children:l}),h&&o.jsxs("div",{className:J.birthName,children:["(",u?`${u} ${h}`:h,")"]}),p&&o.jsx("div",{className:J.firstNames,children:p}),k&&o.jsx("div",{className:J.dobAge,children:k})]}),f&&o.jsx("div",{className:J.duration,children:f}),g&&o.jsx("div",{className:J.comment,children:g})]}),m&&o.jsxs("div",{className:J.expectedBottom,children:[v&&o.jsx("div",{className:J.expectedPrefix,children:v}),o.jsx("div",{className:J.expectedDate,children:m})]})]}),N==="notes"&&o.jsxs("div",{className:J.notesView,children:[o.jsxs("div",{className:J.notesHeader,children:[A,o.jsx("span",{className:J.notesTitle,children:q})]}),o.jsx("div",{className:J.notesList,children:P.map((K,te)=>o.jsx("div",{className:J.noteItem,title:T?.[te],children:K},te))})]}),N==="reservation"&&o.jsxs("div",{className:J.reservationView,children:[s&&o.jsx("div",{className:`${J.centerLabelHuge} ${z?J.labelYellow:""}`,children:s}),o.jsx("div",{className:J.upperBodyContent,children:o.jsxs("div",{className:J.patientInfo,children:[d&&o.jsx("div",{className:J.iep,children:d}),l&&o.jsx("div",{className:J.name,children:l}),h&&o.jsxs("div",{className:J.birthName,children:["(",u?`${u} ${h}`:h,")"]}),p&&o.jsx("div",{className:J.firstNames,children:p}),k&&o.jsx("div",{className:J.dobAge,children:k})]})}),H&&o.jsx("div",{className:J.reservationNote,children:H})]})]}),($||_||x)&&o.jsxs("div",{className:J.bottomArea,children:[$&&o.jsx("div",{className:J.bottomLeftSymbol,children:$}),x&&o.jsxs("div",{className:`${J.destination} ${F?J.todayReservation:""}`,children:[o.jsx("span",{className:J.arrow,children:"→"}),x.prefix&&o.jsx("span",{children:x.prefix}),o.jsx("strong",{children:x.name}),x.suffix&&o.jsx("span",{children:x.suffix})]}),_&&o.jsx("div",{className:J.timeline,children:I&&I!=="transparent"&&o.jsxs("div",{className:J.progressBar,style:{backgroundColor:I},title:L,children:[o.jsx("div",{className:J.progressFill,style:{width:`${b}%`,backgroundColor:w}}),j&&o.jsx("span",{className:J.progressDate,children:j})]})})]})]})]}),M&&o.jsxs("div",{className:J.footer,children:[S.map((K,te)=>o.jsx("div",{className:J.iconWrap,children:K},`left-${te}`)),C.map((K,te)=>o.jsx("div",{className:J.iconWrap,children:K},`right-${te}`))]})]})})},abe="_panel_1viix_1",nbe="_header_1viix_13",obe="_headerLeft_1viix_23",cbe="_title_1viix_30",ibe="_closeButton_1viix_40",rbe="_paginationLoader_1viix_63",sbe="_messageList_1viix_71",dbe="_listLoading_1viix_86",lbe="_empty_1viix_94",hbe="_daySeparator_1viix_105",ube="_messageRow_1viix_118",pbe="_fadeIn_1viix_1",ybe="_incoming_1viix_138",kbe="_outgoing_1viix_146",mbe="_avatar_1viix_154",fbe="_messageMeta_1viix_170",gbe="_senderName_1viix_180",vbe="_bubble_1viix_185",xbe="_unread_1viix_209",_be="_scrollToBottomButton_1viix_243",Mbe="_scrollBtnVisible_1viix_263",Lbe="_scrollBtnIn_1viix_1",bbe="_scrollBtnHiding_1viix_267",Ibe="_scrollBtnOut_1viix_1",wbe="_composer_1viix_272",Cbe="_messageInput_1viix_281",jbe="_sendButton_1viix_315",Nbe="_messageListWrapper_1viix_340",Le={panel:abe,header:nbe,headerLeft:obe,title:cbe,closeButton:ibe,paginationLoader:rbe,messageList:sbe,listLoading:dbe,empty:lbe,daySeparator:hbe,messageRow:ube,fadeIn:pbe,incoming:ybe,outgoing:kbe,avatar:mbe,messageMeta:fbe,senderName:gbe,bubble:vbe,unread:xbe,scrollToBottomButton:_be,scrollBtnVisible:Mbe,scrollBtnIn:Lbe,scrollBtnHiding:bbe,scrollBtnOut:Ibe,composer:wbe,messageInput:Cbe,sendButton:jbe,messageListWrapper:Nbe};function bz(e,t="fr"){return[...e].sort((n,c)=>new Date(n.sentAt).getTime()-new Date(c.sentAt).getTime()).reduce((n,c)=>{const i=new Date(c.sentAt),r=i.toLocaleDateString(t,{year:"numeric",month:"2-digit",day:"2-digit"}),s=n[n.length-1];return s?.dayKey===r?[...n.slice(0,-1),{...s,messages:[...s.messages,c]}]:[...n,{dayKey:r,date:i,messages:[c]}]},[])}function Iz(e,t="fr"){return new Intl.DateTimeFormat(t,{weekday:"short",day:"2-digit",month:"2-digit",year:"numeric"}).format(e)}function wz(e,t="fr"){return new Intl.DateTimeFormat(t,{hour:"2-digit",minute:"2-digit",hour12:!1}).format(new Date(e))}function Cz(e,t){return e.sender.id===t?"outgoing":e.isRead===!1?"unread":"incoming"}const Sbe=300,$be=220,qbe=60;function jz({messages:e,currentSenderId:t,onSend:n,hasMore:c=!1,onLoadMore:i,locale:r="fr"}){const s=y.useRef(null),d=y.useRef(null),l=y.useRef(null),[h,u]=y.useState(""),[p,k]=y.useState(!1),f=h.trim().length>0&&!p;y.useEffect(()=>{const $=l.current;$&&((typeof CSS>"u"||!CSS.supports||!CSS.supports("field-sizing","content"))&&($.style.height="auto",$.style.height=`${Math.min(Math.max($.scrollHeight,60),140)}px`),$.scrollTop=$.scrollHeight)},[h]);const[g,m]=y.useState(!1),v=y.useRef(!1),[_,x]=y.useState("hidden"),b=y.useRef("hidden"),I=y.useRef(null),w=y.useRef(!1),j=y.useCallback($=>{b.current=$,x($)},[]),L=y.useCallback(()=>{I.current&&clearTimeout(I.current),j("hiding"),I.current=setTimeout(()=>j("hidden"),$be)},[j]);y.useEffect(()=>{d.current?.scrollIntoView({behavior:"instant"})},[]),y.useEffect(()=>{!w.current&&!v.current&&d.current?.scrollIntoView({behavior:"smooth"})},[e.length]);const M=y.useCallback(async()=>{const $=h.trim();if(!(!$||p)){k(!0);try{await n($),u(""),w.current=!1,b.current!=="hidden"&&L(),requestAnimationFrame(()=>{d.current?.scrollIntoView({behavior:"smooth"})})}finally{k(!1)}}},[h,p,n,L]),S=y.useCallback($=>{$.preventDefault(),M().catch(()=>{})},[M]),C=y.useCallback($=>{$.key==="Enter"&&!$.shiftKey&&!$.nativeEvent.isComposing&&($.preventDefault(),M().catch(()=>{}))},[M]),N=y.useCallback(()=>{d.current?.scrollIntoView({behavior:"smooth"})},[]),q=y.useCallback(async()=>{if(!i||v.current)return;const $=s.current,R=$?.scrollHeight??0;v.current=!0,m(!0);try{await i(),await new Promise(V=>requestAnimationFrame(()=>V())),$&&($.scrollTop+=$.scrollHeight-R)}finally{v.current=!1,m(!1)}},[i]),A=y.useCallback(()=>{const $=s.current;if(!$)return;const V=$.scrollHeight-$.scrollTop-$.clientHeight>Sbe;w.current=V;const F=b.current;V?(F==="hidden"||F==="hiding")&&(I.current&&clearTimeout(I.current),j("visible")):F==="visible"&&L(),$.scrollTop<qbe&&c&&!v.current&&q().catch(()=>{})},[c,q,j,L]),P=bz(e,r),T=y.useCallback(($,R)=>Cz($,R??t),[t]),H=y.useCallback(($,R)=>Iz($,R??r),[r]),z=y.useCallback(($,R)=>wz($,R??r),[r]);return{listRef:s,bottomAnchorRef:d,textareaRef:l,draft:h,setDraft:u,canSend:f,sending:p,handleFormSubmit:S,handleKeyDown:C,scrollBtnState:_,handleScrollBtnClick:N,loadingMoreState:g,handleScrollCombined:A,dayGroups:P,getBubbleVariant:T,formatDayLabel:H,formatHour:z}}const $$=()=>o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round","aria-hidden":"true",style:{animation:"spin 0.8s linear infinite"},children:[o.jsx("style",{children:"@keyframes spin { to { transform: rotate(360deg); } }"}),o.jsx("path",{d:"M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83"})]}),Nz=({messages:e,currentSenderId:t,onSend:n,onClose:c,hasMore:i=!1,onLoadMore:r,title:s="Messages",showClose:d=!0,loading:l=!1,loadingMore:h=!1,placeholder:u="Votre message…",sendLabel:p="Envoyer",emptyLabel:k="Aucun message",locale:f="fr",loadingNode:g,className:m="",headerIcon:v,closeIcon:_})=>{const{listRef:x,bottomAnchorRef:b,textareaRef:I,draft:w,setDraft:j,canSend:L,sending:M,handleFormSubmit:S,handleKeyDown:C,scrollBtnState:N,handleScrollBtnClick:q,loadingMoreState:A,handleScrollCombined:P,dayGroups:T,getBubbleVariant:H,formatDayLabel:z,formatHour:$}=jz({messages:e,currentSenderId:t,onSend:n,hasMore:i,onLoadMore:r,locale:f});return o.jsxs("div",{className:`${Le.panel} ${m}`,children:[o.jsxs("div",{className:Le.header,children:[o.jsxs("div",{className:Le.headerLeft,children:[v,o.jsx("h3",{className:Le.title,children:s})]}),d&&c&&o.jsx("button",{type:"button",className:Le.closeButton,onClick:c,"aria-label":"Fermer",children:_??o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[o.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),o.jsxs("div",{className:Le.messageListWrapper,children:[o.jsxs("div",{ref:x,className:Le.messageList,role:"log","aria-live":"polite","aria-label":s,onScroll:P,children:[!l&&(h||A)&&o.jsx("div",{className:Le.paginationLoader,children:o.jsx($$,{})}),l&&o.jsx("div",{className:Le.listLoading,children:g??o.jsx($$,{})}),!l&&T.length===0&&o.jsx("div",{className:Le.empty,children:k}),!l&&T.map(R=>o.jsxs(y.Fragment,{children:[o.jsx("div",{className:Le.daySeparator,role:"separator",children:z(R.date)}),R.messages.map(V=>{const F=H(V),X=F==="outgoing",U=$(V.sentAt);return o.jsxs("div",{className:`${Le.messageRow} ${X?Le.outgoing:Le.incoming}`,children:[!X&&o.jsx("span",{className:Le.avatar,"aria-hidden":"true",children:V.sender.shortName}),o.jsxs("span",{className:Le.messageMeta,children:[!X&&o.jsx("span",{className:Le.senderName,children:V.sender.name}),o.jsx("span",{children:U})]}),o.jsx("div",{className:`${Le.bubble} ${Le[F]}`,children:V.content})]},V.id)})]},R.dayKey)),o.jsx("div",{ref:b,"aria-hidden":"true"})]}),N!=="hidden"&&o.jsx("button",{type:"button",className:`${Le.scrollToBottomButton} ${N==="hiding"?Le.scrollBtnHiding:Le.scrollBtnVisible}`,onClick:q,"aria-label":"Aller au dernier message",children:"↓"})]}),o.jsxs("form",{className:Le.composer,onSubmit:S,children:[o.jsx("textarea",{ref:I,className:Le.messageInput,value:w,onChange:R=>j(R.target.value),onKeyDown:C,placeholder:u,"aria-label":u,rows:1,disabled:M}),o.jsx("button",{type:"submit",className:Le.sendButton,disabled:!L,children:p})]})]})},Abe=({title:e,titleBold:t,titleKey:n,items:c,className:i="",width:r,style:s,labelStyle:d,valueStyle:l,headerStyle:h,a11yConfig:u,onItemClick:p,onDeleteItem:k})=>{const f={width:r||"100%",...s};return o.jsxs("div",{className:`data-list-v2-container ${i}`,style:f,children:[(e||t)&&o.jsx("div",{className:"data-list-v2-header",style:h,children:o.jsxs("h2",{className:"header-title",title:oe(u,n),children:[e&&o.jsx("span",{className:"title-regular",children:e}),t&&o.jsx("span",{className:"title-bold",children:t})]})}),o.jsx("div",{className:"data-list-v2-content",children:c.map(g=>o.jsxs("div",{className:`data-list-v2-item ${p?"interactive":""} ${g.showValueLine?"with-value-line":""}`,onClick:()=>p?.(g),children:[o.jsx("div",{className:"item-label-col",style:d,children:o.jsx("div",{className:"item-label",title:oe(g.a11yConfig,g.labelKey),children:g.label})}),o.jsxs("div",{className:"item-value-col",style:l,children:[o.jsx("div",{className:"item-value",title:oe(g.a11yConfig,g.valueKey),children:g.value}),k&&o.jsx("div",{className:"item-delete-action",onClick:m=>{m.stopPropagation(),k(g)},children:o.jsx(It,{size:16})})]})]},g.id))})]})},zbe=({id:e,data:t,children:n,className:c,onDragStart:i,onDragEnd:r})=>{const s=l=>{l.dataTransfer.setData("text/plain",e),t&&l.dataTransfer.setData("application/json",JSON.stringify(t)),l.dataTransfer.effectAllowed="move",i&&i(l,t)},d=l=>{r&&r(l)};return o.jsx("div",{draggable:!0,onDragStart:s,onDragEnd:d,style:{cursor:"grab"},className:c,children:n})},Pbe=({id:e,onDrop:t,children:n,className:c="",activeClassName:i="is-drag-over"})=>{const[r,s]=y.useState(!1),d=y.useRef(0),l=f=>{f.preventDefault(),d.current+=1,d.current>0&&s(!0)},h=f=>{f.preventDefault(),f.dataTransfer.dropEffect="move"},u=f=>{f.preventDefault(),d.current-=1,d.current===0&&s(!1)},p=f=>{f.preventDefault(),s(!1),d.current=0;const g=f.dataTransfer.getData("text/plain");let m;try{const v=f.dataTransfer.getData("application/json");v&&(m=JSON.parse(v))}catch(v){console.error("Failed to parse drag data",v)}g&&t(g,m)},k=`${c} ${r?i:""}`.trim();return o.jsx("div",{onDragEnter:l,onDragOver:h,onDragLeave:u,onDrop:p,className:k,"data-droppable-id":e,children:n})},Vbe=e=>o.jsx(Tbe,{...e}),Tbe=O.textarea`
|
|
8929
8929
|
padding: 0.5rem 0.875rem;
|
|
8930
8930
|
border: 0.0625rem solid var(--color-border, #dee2e6);
|
|
8931
8931
|
border-radius: var(--radius-content, 0.5rem);
|