@andreyfedkovich/cozy-ui 0.7.2 → 0.7.4

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.
@@ -1,5 +1,5 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),c=require("react/jsx-runtime"),Pn=require("react-dom");function _a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const d=_a(g),ba=_a(Pn),Ml=e=>d.createElement("svg",{width:17,height:17,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M0.5 8.50634L8.5 0.5L16.5 8.49975",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2.5 6.58643V16.4994H14.5V6.56641",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M6.5 16.4998V10.5H10.5",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),Ol=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.09237 4.75028C8.31363 4.75028 8.49345 4.92792 8.49345 5.1465V8.80763C8.49345 9.02622 8.31363 9.2032 8.09237 9.2032H5.6565C5.43524 9.2032 5.2561 9.02622 5.2561 8.80763C5.2561 8.58839 5.43524 8.41141 5.6565 8.41141H7.6913V5.1465C7.6913 4.92792 7.87111 4.75028 8.09237 4.75028ZM1 8C1 11.8599 4.17853 15 8.08502 15C11.4053 15 14.2442 12.7712 14.9895 9.58028C15.0397 9.36763 14.9047 9.155 14.6887 9.10547C14.4775 9.05859 14.2582 9.18933 14.2074 9.40264C13.547 12.2317 11.0296 14.2075 8.08502 14.2075C4.62038 14.2075 1.80149 11.4227 1.80149 8C1.80149 4.5766 4.62038 1.79245 8.08502 1.79245C10.5296 1.79245 12.7502 3.20962 13.7756 5.36839H11.3912C11.17 5.36839 10.9901 5.54537 10.9901 5.76396C10.9901 5.98254 11.17 6.16019 11.3912 6.16019H14.424C14.6453 6.16019 14.8244 5.98254 14.8244 5.76396V2.76849C14.8244 2.54991 14.6453 2.37226 14.424 2.37226C14.2028 2.37226 14.023 2.54991 14.023 2.76849V4.18236C12.7335 2.23226 10.5062 1 8.08502 1C4.17853 1 1 4.14009 1 8Z",fill:"currentColor"})),Dl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5774)"},d.createElement("path",{d:"M8.24567 14.0242H0.666672V0.666992H6.60323L10.5609 4.6247V9.57183",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M6.60417 0.666992V4.6247H10.5619",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M12.638 12.54L13.8254 13.7405L15.0127 12.54",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.07781 12.5403L7.89047 11.3398L6.70312 12.5403",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M12.2564 15.1521C11.7 15.4559 11.0599 15.5703 10.4328 15.4781C9.80562 15.3859 9.22551 15.092 8.78019 14.6409C8.38611 14.2414 8.11251 13.7391 7.99061 13.1914C7.8687 12.6437 7.90348 12.0728 8.09094 11.5439",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.45833 9.9274C10.0147 9.62358 10.6548 9.50915 11.2819 9.60138C11.9091 9.69361 12.4892 9.9875 12.9345 10.4386C13.3288 10.8379 13.6028 11.34 13.7252 11.8877C13.8477 12.4353 13.8138 13.0063 13.6272 13.5355",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5774"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Pl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5680)"},d.createElement("path",{d:"M13.9999 6.31067V3.52381H5.79479V2H0.666595V12.2264C0.666595 12.3432 0.713287 12.4551 0.796637 12.5377C0.879986 12.6202 0.993098 12.6666 1.11097 12.6666H8.35888",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M14.2521 6L9.0879 11.1766L8 14L10.8358 12.9333L16 7.75667L14.2521 6Z",stroke:"currentColor",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.33339 11.333L10.6667 12.6663",stroke:"currentColor",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5680"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Rl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M5.05584 2.58008V5.33656C4.3465 5.33656 4.28125 6.22012 4.28125 6.4379C4.28125 6.65568 4.44608 7.68235 5.15853 7.68235C5.39614 8.66258 5.9937 9.51765 6.83242 10.0779",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.6302 10.0628C10.4691 9.50283 11.0666 8.64767 11.3039 7.66731C12.0102 7.66731 12.1751 6.65932 12.1751 6.43843C12.1751 6.21754 12.2964 5.34953 11.5933 5.33709V2.62109",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M6.37643 9.79102V10.4669C6.37643 10.9336 6.60665 11.6118 4.04309 12.1003C1.33332 12.6167 1.33333 14.6669 1.33333 14.6669H15.3333C15.3333 14.6669 15.3334 12.6603 12.4338 12.1003C9.94494 11.618 10.1005 10.9336 10.1005 10.4669V9.79102",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M4.59114 11.9824L8.32766 14.6673L12.061 12.0228",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M8.3282 3.00033L1.79167 1.60033L8.3282 0.666992L14.8615 1.60033L8.3282 3.00033Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M5.05725 3.93359L8.32711 4.40026L11.5938 3.93359",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2.25781 1.69336V7.20001",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),Tl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M6.9329 14H2V9.06713H6.9329V14Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M6.9329 6.60059H2V1.66765H6.9329V6.60059Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M14.3343 14H9.40144V9.06713H14.3343V14Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M14.3343 6.60059H9.40144V1.66765H14.3343V6.60059Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),Al=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5733)"},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.2984 6.64286C15.2984 10.7453 8.14844 15 8.14844 15C8.14844 15 0.998444 10.7453 0.998444 6.64286C0.998444 6.53654 0.998444 6.2315 0.998444 6.17857C0.998444 3.87061 2.7989 2 5.02032 2C6.28408 2 7.4111 2.60682 8.14755 3.55396C8.88489 2.60682 10.0124 2 11.2766 2C13.498 2 15.2984 3.87061 15.2984 6.17857C15.2984 6.23104 15.2984 6.53607 15.2984 6.64286Z",stroke:"currentColor"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5733"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Il=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5852)"},d.createElement("path",{d:"M4.81389 5.81154C4.79445 6.087 5.00199 6.32606 5.27745 6.3455C5.55291 6.36494 5.79197 6.1574 5.81141 5.88194L5.31265 5.84674L4.81389 5.81154ZM10.6346 4.74381L11.1154 4.6067V4.6067L10.6346 4.74381ZM8.27563 9.0822L7.96537 8.69011L8.27563 9.0822ZM7.09347 11.3614C7.09347 11.6376 7.31733 11.8614 7.59347 11.8614C7.86961 11.8614 8.09347 11.6376 8.09347 11.3614H7.59347H7.09347ZM5.31265 5.84674L5.81141 5.88194C5.90808 4.51228 6.8506 3.80991 7.87427 3.67837C8.94608 3.54065 9.91206 4.03342 10.1537 4.88092L10.6346 4.74381L11.1154 4.6067C10.6897 3.114 9.11102 2.51123 7.74682 2.68653C6.33448 2.868 4.94971 3.88719 4.81389 5.81154L5.31265 5.84674ZM10.6346 4.74381L10.1537 4.88092C10.2697 5.28772 10.347 5.69413 10.1318 6.24186C9.9049 6.81911 9.32895 7.61111 7.96537 8.69011L8.27563 9.0822L8.58589 9.47429C10.01 8.34742 10.7424 7.42216 11.0625 6.60764C11.3942 5.76361 11.2571 5.10376 11.1154 4.6067L10.6346 4.74381ZM8.27563 9.0822L7.96537 8.69011C7.0119 9.44458 7.09347 10.6137 7.09347 11.3614H7.59347H8.09347C8.09347 10.4547 8.08561 9.87017 8.58589 9.47429L8.27563 9.0822Z",fill:"currentColor"}),d.createElement("circle",{cx:7.66097,cy:13.1607,r:.431202,fill:"currentColor"}),d.createElement("path",{d:"M8.17085 15.3418C12.1312 15.3418 15.3418 12.1313 15.3418 8.17095C15.3418 4.21057 12.1312 1 8.17085 1C4.21047 1 1 4.21057 1 8.17095C1 12.1313 4.21047 15.3418 8.17085 15.3418Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5852"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Ll=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{fill:"none",d:"m38.46 11.54l-5.85-5.9a3.9 3.9 0 0 0-2.76-1.14h-19.5a2 2 0 0 0-1.95 2v35.1a2 2 0 0 0 1.95 2h27.3a2 2 0 0 0 2-2V14.3a3.9 3.9 0 0 0-1.19-2.76m-25.08 3.15H29.7m-16.32 7.03h21.24m-21.24 7.03h19.5m-19.5 7.03h12.68"})),Wl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M5.26562 6.60009V3.33337C5.26562 2.71452 5.51145 2.12104 5.94904 1.68345C6.38663 1.24586 6.98015 1 7.599 1C8.21784 1 8.81132 1.24586 9.24891 1.68345C9.68651 2.12104 9.93237 2.71452 9.93237 3.33337V6.60009",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M13.2002 5.66699H2V15.0005H13.2002V5.66699Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),$l=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5666)"},d.createElement("path",{d:"M12.3924 13.6144L11.0069 7.30241L13.701 4.60825C14.8557 3.45361 15.2406 1.91409 14.8557 1.14433C14.0859 0.75945 12.5464 1.14433 11.3918 2.29897L8.69759 4.99313L2.38557 3.60756C2.00069 3.53058 1.69278 3.68454 1.53883 3.99244L1.3079 4.37732C1.15395 4.7622 1.23093 5.14708 1.53883 5.37801L5.61856 8.07217L4.07904 10.3814H1.76976L1 11.1512L3.30928 12.6907L4.8488 15L5.61856 14.2302V11.921L7.92784 10.3814L10.622 14.4612C10.8529 14.7691 11.2378 14.846 11.6227 14.6921L12.0076 14.5381C12.3155 14.3072 12.4694 13.9993 12.3924 13.6144Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5666"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Fl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5649)"},d.createElement("path",{d:"M11.7265 12.0262C9.54829 11.6097 9.54246 10.9341 9.54246 10.4973V9.8042C9.97361 9.38644 10.3133 8.88369 10.5399 8.32776C10.7665 7.77182 10.875 7.17487 10.8587 6.57475V4.478C10.8587 2.20657 9.24835 1.33301 7.80104 1.33301C6.35374 1.33301 4.74336 2.20657 4.74336 4.478V6.57475C4.72731 7.17345 4.83548 7.76895 5.06102 8.32378C5.28656 8.8786 5.62458 9.38067 6.0538 9.79837V10.4973C6.0538 10.9341 6.0538 11.6301 3.86974 12.0262C3.25845 12.135 2.69243 12.4205 2.24165 12.8475C1.79087 13.2744 1.4751 13.8241 1.33333 14.4286H14.2601C14.1154 13.826 13.7992 13.2783 13.3495 12.8519C12.8998 12.4254 12.336 12.1386 11.7265 12.0262V12.0262Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5649"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Bl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5794)"},d.createElement("path",{d:"M9.12936 11.9944H1.33333C1.33333 11.9944 1.33335 10.4405 3.42691 10.0372C5.22691 9.69028 5.22975 9.14763 5.22975 8.79178V8.43298C4.77582 8.01292 4.45171 7.47165 4.29568 6.87318V6.87318C3.74708 6.87318 3.6166 5.7463 3.6166 5.58024C3.6166 5.41417 3.59592 4.73811 4.15045 4.73811C3.79164 3.31472 3.85386 2.00989 4.83837 2.00989C7.21069 0.370026 10.3629 1.8765 9.20046 4.73811C9.75795 4.73811 9.74011 5.41121 9.74011 5.58024C9.74011 5.74926 9.61273 6.87318 9.06116 6.87318C8.90437 7.4744 8.57795 8.0179 8.12101 8.43892V8.79475C8.12101 9.03791 8.05281 9.51827 9.01063 9.86522",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M11.1147 13.3319C12.343 13.3319 13.3387 12.3361 13.3387 11.1078C13.3387 9.87953 12.343 8.88379 11.1147 8.88379C9.88636 8.88379 8.89062 9.87953 8.89062 11.1078C8.89062 12.3361 9.88636 13.3319 11.1147 13.3319Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M12.6849 12.6797L14.6718 14.6666",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5794"},d.createElement("rect",{width:16,height:16,fill:"white"})))),zl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5697)"},d.createElement("path",{d:"M11.4479 1.33301H13.3353V3.22339",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2.66681 7.55537L6.66986 3.99973L9.33659 5.3331L13.3367 1.33301",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M12.4479 14.6664V5.77734H14.2257V14.6664",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M8.89062 14.6662V10.2246H10.6684V14.6662",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M5.33333 14.6665V8.8916H7.11411V14.6665",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M1.77864 14.6667V12.0029H3.55646V14.6667",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M14.6699 14.667H1.33333",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5697"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Hl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M4.93759 11.5H1.65C1.47761 11.5 1.31233 11.4285 1.19043 11.3012C1.06853 11.1739 1 11.0014 1 10.8214V2.67857C1 2.4986 1.06853 2.32598 1.19043 2.19873C1.31233 2.07147 1.47761 2 1.65 2H13.35C13.5224 2 13.6877 2.07147 13.8096 2.19873C13.9315 2.32598 14 2.4986 14 2.67857",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M13.9996 10.5448C14.0057 10.7866 13.9466 11.0252 13.8291 11.2326C13.7117 11.44 13.5407 11.6076 13.3365 11.7156L5.60035 14.9065C4.93136 15.2187 4.71622 14.6817 4.71622 14.2821V6.32045C4.70283 6.07729 4.75896 5.83551 4.87725 5.62665C4.99553 5.41778 5.17049 5.25154 5.37932 5.14963L12.8827 2.05555C13.3748 1.86822 13.9967 2.18353 13.9967 2.57068L13.9996 10.5448Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M7.5 10.5C8.01283 10.5 8.42857 10.0523 8.42857 9.5C8.42857 8.94772 8.01283 8.5 7.5 8.5C6.98716 8.5 6.57143 8.94772 6.57143 9.5C6.57143 10.0523 6.98716 10.5 7.5 10.5Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M3.32143 4.5H7.96428",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M3.32143 7H4.71428",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),Yl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M472 96h-88V40h-32v56H160V40h-32v56H40a24.03 24.03 0 0 0-24 24v336a24.03 24.03 0 0 0 24 24h432a24.03 24.03 0 0 0 24-24V120a24.03 24.03 0 0 0-24-24m-8 352H48V128h80v40h32v-40h192v40h32v-40h80Z"}),d.createElement("path",{d:"M112 224h32v32h-32zm88 0h32v32h-32zm80 0h32v32h-32zm88 0h32v32h-32zm-256 72h32v32h-32zm88 0h32v32h-32zm80 0h32v32h-32zm88 0h32v32h-32zm-256 72h32v32h-32zm88 0h32v32h-32zm80 0h32v32h-32zm88 0h32v32h-32z"})),Vl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M8 7.5A1.5 1.5 0 0 1 9.5 6h12A1.5 1.5 0 0 1 23 7.5v3a1.5 1.5 0 0 1-1.5 1.5h-12A1.5 1.5 0 0 1 8 10.5zm2 .5v2h11V8zM4 5.25A3.25 3.25 0 0 1 7.25 2h16.5A3.25 3.25 0 0 1 27 5.25v21.5A3.25 3.25 0 0 1 23.75 30H7.25A3.25 3.25 0 0 1 4 26.75zM7.25 4C6.56 4 6 4.56 6 5.25v21.5c0 .69.56 1.25 1.25 1.25h16.5c.69 0 1.25-.56 1.25-1.25V5.25C25 4.56 24.44 4 23.75 4zm22 4H28v4h1.25a.75.75 0 0 0 .75-.75v-2.5a.75.75 0 0 0-.75-.75M28 14h1.25a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-.75.75H28zm1.25 6H28v4h1.25a.75.75 0 0 0 .75-.75v-2.5a.75.75 0 0 0-.75-.75"})),ql=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8M305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 0 0-11.3 0L266.3 586.7a8.03 8.03 0 0 0 0 11.3z"})),Gl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M9.5 1A1.5 1.5 0 0 0 8 2.5v2a1.5 1.5 0 0 0 1 1.414V7a.5.5 0 0 0 .82.384L11.48 6h2.02A1.5 1.5 0 0 0 15 4.5v-2A1.5 1.5 0 0 0 13.5 1zM9 2.5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-2.2a.5.5 0 0 0-.32.116l-.98.816V5.5a.5.5 0 0 0-.5-.5a.5.5 0 0 1-.5-.5zM3 6a2 2 0 1 1 4 0a2 2 0 0 1-4 0m2-1a1 1 0 1 0 0 2a1 1 0 0 0 0-2M2.5 9h5A1.5 1.5 0 0 1 9 10.5c0 1.116-.459 2.01-1.212 2.615C7.047 13.71 6.053 14 5 14s-2.047-.29-2.788-.885C1.46 12.51 1 11.616 1 10.5A1.5 1.5 0 0 1 2.5 9m5 1h-5a.5.5 0 0 0-.5.5c0 .817.325 1.423.838 1.835C3.364 12.757 4.12 13 5 13s1.636-.243 2.162-.665C7.675 11.923 8 11.317 8 10.5a.5.5 0 0 0-.5-.5"})),Ul=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M1536 640h-512V512h512zm-512 384h512v128h-512zm131 896l128 128H256V0h1536v1283l-128 128V128H384v1792zM941 429L704 666L531 493l90-90l83 83l147-147zm0 512l-237 237l-173-173l90-90l83 83l147-147zm-237 569l147-147l90 90l-237 237l-173-173l90-90zm1325-57l-557 558l-269-270l90-90l179 178l467-466z"})),Zl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M20.039 4.751a1 1 0 0 0 1.922.551l.827-2.884a1 1 0 1 0-1.922-.55zm8.668-1.458a1 1 0 0 1 0 1.414l-3 3a1 1 0 1 1-1.414-1.414l3-3a1 1 0 0 1 1.414 0M26 11.002a1 1 0 0 1 1-1h3a1 1 0 0 1 0 2h-3a1 1 0 0 1-1-1M11.956 5.659a3 3 0 0 1 4.805-.78l10.36 10.36a3 3 0 0 1-.78 4.804l-4.749 2.375a5.5 5.5 0 0 1-9.813 4.906l-2.717 1.359A3 3 0 0 1 5.6 28.12L3.88 26.4a3 3 0 0 1-.562-3.463zm1.62 20.767a3.5 3.5 0 0 0 6.218-3.109zm1.77-20.133a1 1 0 0 0-1.6.26l-8.64 17.279a1 1 0 0 0 .187 1.154l1.72 1.72a1 1 0 0 0 1.155.188l17.279-8.64a1 1 0 0 0 .26-1.601z"})),Xl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:19,height:19,fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{fill:"none",d:"M17 17a2.5 2.5 0 1 1 0-5a2.5 2.5 0 0 1 0 5m0 0a4.5 4.5 0 0 1 4.5 4.5M17 17a4.5 4.5 0 0 0-4.5 4.5M7 7.5a2.5 2.5 0 1 1 0-5a2.5 2.5 0 0 1 0 5m0 0a4.5 4.5 0 0 1 4.5 4.5M7 7.5A4.5 4.5 0 0 0 2.5 12m1 3.5c0 2.764 2.236 5 5 5l-.5-2m10.5-10c0-2.764-2.236-5-5-5l.5 2"})),Kl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M296 256c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm192 200v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8m-48 396H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8m104.1-115.6c1.8-34.5 16.2-66.8 40.8-91.4c26.2-26.2 62-41 99.1-41c37.4 0 72.6 14.6 99.1 41c3.2 3.2 6.3 6.6 9.2 10.1L769.2 673a8 8 0 0 0 3 14.1l93.3 22.5c5 1.2 9.8-2.6 9.9-7.7l.6-95.4a8 8 0 0 0-12.9-6.4l-20.3 15.8C805.4 569.6 748.1 540 684 540c-109.9 0-199.6 86.9-204 195.7c-.2 4.5 3.5 8.3 8 8.3h48.1c4.3 0 7.8-3.3 8-7.6M880 744h-48.1c-4.3 0-7.8 3.3-8 7.6c-1.8 34.5-16.2 66.8-40.8 91.4c-26.2 26.2-62 41-99.1 41c-37.4 0-72.6-14.6-99.1-41c-3.2-3.2-6.3-6.6-9.2-10.1l23.1-17.9a8 8 0 0 0-3-14.1l-93.3-22.5c-5-1.2-9.8 2.6-9.9 7.7l-.6 95.4a8 8 0 0 0 12.9 6.4l20.3-15.8C562.6 918.4 619.9 948 684 948c109.9 0 199.6-86.9 204-195.7c.2-4.5-3.5-8.3-8-8.3"})),ya=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40m-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40"}),d.createElement("path",{d:"M894 345c-48.1-66-115.3-110.1-189-130v.1c-17.1-19-36.4-36.5-58-52.1c-163.7-119-393.5-82.7-513 81c-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4c5.3 16.9 23.3 26.2 40.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6c17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408M323 735l-12-5l-99 31l-1-104l-8-9c-84.6-103.2-90.2-251.9-11-361c96.4-132.2 281.2-161.4 413-66c132.2 96.1 161.5 280.6 66 412c-80.1 109.9-223.5 150.5-348 102m505-17l-8 10l1 104l-98-33l-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1C613.7 788.2 680.7 742.2 729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62c72.6 99.6 68.5 235.2-8 330"}),d.createElement("path",{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40"})),xr=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M6.5433 12.0867C9.6048 12.0867 12.0867 9.60488 12.0867 6.54338C12.0867 3.48188 9.6048 1 6.5433 1C3.4818 1 1 3.48188 1 6.54338C1 9.60488 3.4818 12.0867 6.5433 12.0867Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M10.4727 10.4707L15.9994 16.0007",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),Ql=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M19 12.5H6M19 12.5L14.3333 8M19 12.5L14.3333 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),dt=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M17.2929 9.29289C17.6834 8.90237 18.3166 8.90237 18.7071 9.29289C19.0976 9.68342 19.0976 10.3166 18.7071 10.7071L12.7071 16.7071C12.3285 17.0857 11.7189 17.0989 11.3243 16.7372L5.32428 11.2372C4.91716 10.864 4.88965 10.2314 5.26285 9.82427C5.63604 9.41715 6.26861 9.38965 6.67573 9.76284L11.9699 14.6159L17.2929 9.29289Z",fill:"currentColor"})),Jl=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M17.2929 9.29289C17.6834 8.90237 18.3166 8.90237 18.7071 9.29289C19.0976 9.68342 19.0976 10.3166 18.7071 10.7071L12.7071 16.7071C12.3285 17.0857 11.7189 17.0989 11.3243 16.7372L5.32428 11.2372C4.91716 10.864 4.88965 10.2314 5.26285 9.82427C5.63604 9.41715 6.26861 9.38965 6.67573 9.76284L11.9699 14.6159L17.2929 9.29289Z",fill:"rgba(0, 109, 240, 0.8)"})),ct=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M13 3L8 8M3 13L8 8M8 8L3 3L13 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),ed=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{width:24,height:24,rx:12,fill:"#FFEEEE"}),d.createElement("path",{d:"M7.5 7.5L16.5 16.5M7.5 16.5L16.5 7.5",stroke:"#D72D40",strokeWidth:1.4,strokeLinecap:"round"})),td=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{width:24,height:24,rx:12,fill:"#E0F4F0"}),d.createElement("path",{d:"M9.89997 17C9.7143 17 9.53632 16.9248 9.40507 16.7909L5.20502 12.505C4.93166 12.226 4.93166 11.7739 5.20502 11.495C5.47837 11.216 5.92165 11.216 6.19483 11.495L9.89997 15.2757L17.8052 7.2092C18.0785 6.93027 18.5218 6.93027 18.795 7.2092C19.0683 7.48813 19.0683 7.94045 18.795 8.21939L10.3949 16.7909C10.2636 16.9248 10.0857 17 9.89997 17Z",fill:"#00A582"})),nd=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{width:24,height:24,rx:12,fill:"#E0F1FF"}),d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.1056 8.28604C12.3584 8.28604 12.5639 8.48905 12.5639 8.73886V12.923C12.5639 13.1728 12.3584 13.3751 12.1056 13.3751H9.32172C9.06885 13.3751 8.86411 13.1728 8.86411 12.923C8.86411 12.6724 9.06885 12.4702 9.32172 12.4702H11.6472V8.73886C11.6472 8.48905 11.8527 8.28604 12.1056 8.28604ZM4 12C4 16.4113 7.63261 20 12.0972 20C15.8917 20 19.1362 17.4528 19.988 13.806C20.0453 13.563 19.891 13.32 19.6443 13.2634C19.4029 13.2098 19.1523 13.3592 19.0942 13.603C18.3394 16.8362 15.4624 19.0943 12.0972 19.0943C8.13758 19.0943 4.91599 15.9117 4.91599 12C4.91599 8.08754 8.13758 4.90566 12.0972 4.90566C14.8909 4.90566 17.4288 6.52528 18.6007 8.99245H15.8757C15.6228 8.99245 15.4173 9.19471 15.4173 9.44452C15.4173 9.69433 15.6228 9.89736 15.8757 9.89736H19.3418C19.5946 9.89736 19.7994 9.69433 19.7994 9.44452V6.02113C19.7994 5.77132 19.5946 5.5683 19.3418 5.5683C19.0889 5.5683 18.8834 5.77132 18.8834 6.02113V7.63698C17.4097 5.4083 14.8642 4 12.0972 4C7.63261 4 4 7.58867 4 12Z",fill:"#4573D9"})),Po=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M21.9006 11.9999C21.9006 6.53258 17.4684 2.10042 12.0011 2.10042C6.53372 2.10042 2.10156 6.53258 2.10156 11.9999C2.10156 17.4673 6.53372 21.8994 12.0011 21.8994C17.4684 21.8994 21.9006 17.4673 21.9006 11.9999Z",fill:"#00A582",stroke:"#00A582",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M8 11.6226L10.8813 15L16 9",stroke:"white",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),wa=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"#D72D40",stroke:"#D72D40",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M15.6912 8.31348L8.30859 15.6917",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M15.6947 15.6917L8.31641 8.31348",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),xa=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M11.8617 21.7234C17.3082 21.7234 21.7234 17.3082 21.7234 11.8617C21.7234 6.41523 17.3082 2 11.8617 2C6.41523 2 2 6.41523 2 11.8617C2 17.3082 6.41523 21.7234 11.8617 21.7234Z",fill:"#FFA300",stroke:"#FFA300",strokeWidth:1.5,strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M11.3004 13.9799L11.0046 6.75096C11.0001 6.63834 11.0178 6.52593 11.0567 6.42017C11.0957 6.3144 11.155 6.21731 11.2315 6.1345C11.3079 6.05168 11.3999 5.98475 11.5022 5.93749C11.6046 5.89023 11.7152 5.86359 11.8278 5.85908C11.9404 5.85458 12.0528 5.87228 12.1586 5.91122C12.2644 5.95015 12.3614 6.00959 12.4442 6.08603C12.527 6.16248 12.594 6.25442 12.6413 6.35673C12.6885 6.45905 12.7152 6.56967 12.7197 6.68229C12.7197 6.70373 12.7197 6.72952 12.7197 6.75096L12.4238 13.9799C12.4238 14.1295 12.3644 14.2729 12.2587 14.3787C12.1529 14.4844 12.0095 14.5438 11.86 14.5438C11.7104 14.5438 11.567 14.4844 11.4613 14.3787C11.3555 14.2729 11.2961 14.1295 11.2961 13.9799H11.3004Z",fill:"white"}),d.createElement("circle",{cx:11.8605,cy:16.7795,r:1,fill:"white",stroke:"white",strokeWidth:.572616})),Ca=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M15 3H1V13H15V3Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M1 3L8 10.3433L15 3",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M10.3359 7.89648L15.0026 12.9998",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M1 12.9998L5.66667 7.89648",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),rd=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M1.61422 14.1333L5.99625 12.4418C6.61289 12.5773 7.2432 12.6457 7.87554 12.6458C11.6739 12.6458 14.7511 10.2623 14.7511 7.32292C14.7511 4.38348 11.6739 2 7.87554 2C4.07718 2 1 4.38348 1 7.32292C1 8.81925 1.79758 10.1707 3.08101 11.1347L1.61422 14.1333Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("circle",{cx:4.98438,cy:7.66211,r:.75,fill:"currentColor"}),d.createElement("circle",{cx:7.875,cy:7.66211,r:.75,fill:"currentColor"}),d.createElement("circle",{cx:10.7656,cy:7.66211,r:.75,fill:"currentColor"})),od=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M11.5195 9.99817C11.3265 9.87759 11.0947 9.83572 10.8717 9.88121C10.6488 9.92671 10.4519 10.0561 10.3216 10.2426C9.89136 10.7756 9.35845 11.663 7.34409 9.64859C5.32972 7.63423 6.2171 7.1013 6.74759 6.67105C6.93413 6.54079 7.0635 6.34385 7.109 6.12093C7.15449 5.89801 7.11263 5.66612 6.99205 5.47319C6.84537 5.25073 5.90909 3.80596 5.74285 3.56639C5.57662 3.32681 5.35414 2.93568 4.84077 3.00901C4.31202 3.17497 3.84929 3.50384 3.51868 3.9486C3.18807 4.39337 3.00653 4.93127 3 5.48541C3 7.13308 4.29808 9.15233 6.07287 10.9271C7.84766 12.7019 9.86692 14 11.5146 14C12.0687 13.9935 12.6066 13.8119 13.0514 13.4813C13.4962 13.1507 13.825 12.688 13.991 12.1592C14.0643 11.6434 13.6732 11.4258 13.4336 11.2571C13.194 11.0885 11.7419 10.1448 11.5195 9.99817Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),sd=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M29 26H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h6.46l1.71-2.55A1 1 0 0 1 12 4h8a1 1 0 0 1 .83.45L22.54 7H29a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1M4 24h24V9h-6a1 1 0 0 1-.83-.45L19.46 6h-6.92l-1.71 2.55A1 1 0 0 1 10 9H4Z"}),d.createElement("path",{d:"M16 22a6 6 0 1 1 6-6a6 6 0 0 1-6 6m0-10a4 4 0 1 0 4 4a4 4 0 0 0-4-4"})),ka=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"#000000",style:{opacity:1},...e},d.createElement("path",{d:"M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1 1 0 0 1 3 21l.003-14c0-.552.45-1 1.006-1zM5.002 8L5 20h10V8zM9 6h8v10h2V4H9z"})),Na=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{fill:"none",d:"M12 11v5m0 5a9 9 0 1 1 0-18a9 9 0 0 1 0 18m.05-13v.1h-.1V8z"})),ad=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M18 28h-4a2 2 0 0 1-2-2v-7.59L4.59 11A2 2 0 0 1 4 9.59V6a2 2 0 0 1 2-2h20a2 2 0 0 1 2 2v3.59a2 2 0 0 1-.59 1.41L20 18.41V26a2 2 0 0 1-2 2M6 6v3.59l8 8V26h4v-8.41l8-8V6Z"})),Sa=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9m67.4-174.4L687.8 215l73.3 73.3l-362.7 362.6l-88.9 15.7zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32"})),id=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M20.3 13.43a1 1 0 0 0-1.25.65A7.14 7.14 0 0 1 12.18 19A7.1 7.1 0 0 1 5 12a7.1 7.1 0 0 1 7.18-7a7.26 7.26 0 0 1 4.65 1.67l-2.17-.36a1 1 0 0 0-1.15.83a1 1 0 0 0 .83 1.15l4.24.7h.17a1 1 0 0 0 .34-.06a.3.3 0 0 0 .1-.06a.8.8 0 0 0 .2-.11l.09-.11c0-.05.09-.09.13-.15s0-.1.05-.14a1.3 1.3 0 0 0 .07-.18l.75-4a1 1 0 0 0-2-.38l-.27 1.45A9.2 9.2 0 0 0 12.18 3A9.1 9.1 0 0 0 3 12a9.1 9.1 0 0 0 9.18 9A9.12 9.12 0 0 0 21 14.68a1 1 0 0 0-.7-1.25"})),cd=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64m176.5 585.7l-28.6 39a7.99 7.99 0 0 1-11.2 1.7L483.3 569.8a7.92 7.92 0 0 1-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1"})),Ea=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{fill:"none",d:"M4.5 11.5a3 3 0 0 1 3-3h8.718a4 4 0 0 1 2.325.745l4.914 3.51a4 4 0 0 0 2.325.745H40.5a3 3 0 0 1 3 3v20a3 3 0 0 1-3 3h-33a3 3 0 0 1-3-3z"}),d.createElement("circle",{cx:25.435,cy:25.065,r:5.565}),d.createElement("path",{d:"M21.5 29L17 33.5"})),ld=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{d:"M19 3v4m0 14V11m-7-8v12m0 6v-2M5 3v2m0 16V9"}),d.createElement("circle",{cx:19,cy:9,r:2,transform:"rotate(90 19 9)"}),d.createElement("circle",{cx:12,cy:17,r:2,transform:"rotate(90 12 17)"}),d.createElement("circle",{cx:5,cy:7,r:2,transform:"rotate(90 5 7)"})),dd=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:24,height:24,fill:"#000000",style:{opacity:1},...e},d.createElement("path",{d:"M6.84 2.189a1.96 1.96 0 0 0-1.68 0L.286 4.498A.5.5 0 0 0 0 4.976v3.026a.5.5 0 1 0 1 0V5.756l1 .496v2.75a.5.5 0 0 0 .147.354l.025.024l.06.055q.075.072.217.188c.187.153.457.355.794.558c.67.401 1.634.82 2.757.82s2.088-.419 2.757-.82a6.7 6.7 0 0 0 1.012-.746l.06-.055l.023-.024h.002A.5.5 0 0 0 10 9.001v-2.75l1.722-.854a.5.5 0 0 0-.008-.9zm.032 5.615L9 6.748V8.78l-.082.07a6 6 0 0 1-.675.473c-.58.348-1.366.679-2.243.679s-1.662-.33-2.243-.679A6 6 0 0 1 3 8.78V6.748l2.128 1.056c.55.272 1.194.272 1.744 0m-.46-4.711l3.942 1.867l-3.927 1.948a.96.96 0 0 1-.854 0L1.646 4.96l3.942-1.867a.96.96 0 0 1 .824 0M2.149 9.358"})),ud=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M1728 1664q26 0 45 19t19 45t-19 45t-45 19H960q-26 0-45-19t-19-45t19-45t45-19zm-128 256q26 0 45 19t19 45t-19 45t-45 19h-512q-26 0-45-19t-19-45t19-45t45-19zm238-512h210v128H537q-10 64-14 128t-7 127t-3 128t-1 129H128v-193q0-81 6-160t17-159H0v-128h172q50-245 151-471t250-427q-146-5-268-61T82 289l-45-46l47-44q104-97 228-147T579 1q156 0 286 58t239 168q77 2 149 24t134 60t113 90t87 115t57 135t20 150v64h-64q-132 0-247-56t-199-159q-76 138-191 227t-269 125q-43 99-76 200t-57 206h289q22-84 69-154t112-122t146-79t167-29q87 0 167 28t145 80t113 121t69 155M1238 380q-6 65-26 132q51 88 134 146t185 74q-10-61-35-115t-63-101t-88-80t-107-56m-126 7q-102 8-192 50T759 547T642 704t-61 189q85-7 161-36t139-78t112-112t81-144q14-33 23-67t15-69M224 247q80 66 177 101t201 35q97 0 187-30t168-88q-80-66-177-101t-201-35q-97 0-187 30t-168 88m318 775q-8 2-16 2t-16 0h-32q-16 0-32-2v-47q-53 118-89 232t-59 230t-32 235t-10 248h128q0-121 8-234t27-223t49-219t74-222m442 386h720q-20-57-56-104t-83-81t-104-52t-117-19q-61 0-117 18t-103 52t-84 81t-56 105"})),ja=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{fill:"none",d:"M12 15V3m0 12l-4-4m4 4l4-4M2 17l.621 2.485A2 2 0 0 0 4.561 21h14.877a2 2 0 0 0 1.94-1.515L22 17"}));var Ma=(e=>(e.BLUE_01="#D3E8FA",e.BLUE_02="#4573D9",e.BLUE_03="#4573D9",e.BLUE_04="#4573D9",e.BLUE_05="#001A3D",e.GRAY_01="#F4F7FA",e.GRAY_02="#c8c7cc",e.GRAY_03="#808080",e.GRAY_04="#525252",e.GRAY_05="#2A2A2A",e.GRAY_06="#AEBFDE",e.GRAY_07="#DDE5F5",e.WHITE_01="#FFFFFF",e.BLACK_01="#000000",e.GREEN_01="#C4F2E8",e.GREEN_02="#00A582",e.ORANGE_01="#F9E1D7",e.ORANGE_02="#FF6B2C",e.RED_01="#FFEEEE",e.RED_02="#D72D40",e.YELLOW_01="#FFF1D8",e.YELLOW_02="#FFA300",e))(Ma||{});function fd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qr={exports:{}};var hs;function md(){return hs||(hs=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",a=0;a<arguments.length;a++){var i=arguments[a];i&&(s=o(s,r(i)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var i in s)t.call(s,i)&&s[i]&&(a=o(a,i));return a}function o(s,a){return a?s?s+" "+a:s+a:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(qr)),qr.exports}var hd=md();const M=fd(hd),pd="_block_tkxaf_1",gd="_subtitle_tkxaf_6",vd="_title_tkxaf_13",Gr={block:pd,subtitle:gd,title:vd},_d=({id:e,title:t,subtitle:n,children:r,className:o})=>c.jsxs("div",{className:M(Gr.block,o),id:e,children:[t&&typeof t=="string"?c.jsx("div",{className:Gr.title,children:t}):t,n&&c.jsx("div",{className:Gr.subtitle,children:n}),r]});function ps(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Rn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=ps(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():ps(e[o],null)}}}}function Ve(...e){return d.useCallback(Rn(...e),e)}var bd=Symbol.for("react.lazy"),hr=d[" use ".trim().toString()];function yd(e){return typeof e=="object"&&e!==null&&"then"in e}function Oa(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===bd&&"_payload"in e&&yd(e._payload)}function Da(e){const t=xd(e),n=d.forwardRef((r,o)=>{let{children:s,...a}=r;Oa(s)&&typeof hr=="function"&&(s=hr(s._payload));const i=d.Children.toArray(s),l=i.find(kd);if(l){const u=l.props.children,f=i.map(m=>m===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:m);return c.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var wd=Da("Slot");function xd(e){const t=d.forwardRef((n,r)=>{let{children:o,...s}=n;if(Oa(o)&&typeof hr=="function"&&(o=hr(o._payload)),d.isValidElement(o)){const a=Sd(o),i=Nd(s,o.props);return o.type!==d.Fragment&&(i.ref=r?Rn(r,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Cd=Symbol("radix.slottable");function kd(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Cd}function Nd(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Sd(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Pa(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Pa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ra(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Pa(e))&&(r&&(r+=" "),r+=t);return r}const gs=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,vs=Ra,Ta=(e,t)=>n=>{var r;if(t?.variants==null)return vs(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const f=n?.[u],m=s?.[u];if(f===null)return null;const p=gs(f)||gs(m);return o[u][p]}),i=n&&Object.entries(n).reduce((u,f)=>{let[m,p]=f;return p===void 0||(u[m]=p),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:m,className:p,...h}=f;return Object.entries(h).every(b=>{let[v,_]=b;return Array.isArray(_)?_.includes({...s,...i}[v]):{...s,...i}[v]===_})?[...u,m,p]:u},[]);return vs(e,a,l,n?.class,n?.className)},Ed=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},jd=(e,t)=>({classGroupId:e,validator:t}),Aa=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),pr="-",_s=[],Md="arbitrary..",Od=e=>{const t=Pd(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Dd(a);const i=a.split(pr),l=i[0]===""&&i.length>1?1:0;return Ia(i,l,t)},getConflictingClassGroupIds:(a,i)=>{if(i){const l=r[a],u=n[a];return l?u?Ed(u,l):l:u||_s}return n[a]||_s}}},Ia=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const u=Ia(e,t+1,s);if(u)return u}const a=n.validators;if(a===null)return;const i=t===0?e.join(pr):e.slice(t).join(pr),l=a.length;for(let u=0;u<l;u++){const f=a[u];if(f.validator(i))return f.classGroupId}},Dd=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Md+r:void 0})(),Pd=e=>{const{theme:t,classGroups:n}=e;return Rd(n,t)},Rd=(e,t)=>{const n=Aa();for(const r in e){const o=e[r];Ro(o,n,r,t)}return n},Ro=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const a=e[s];Td(a,t,n,r)}},Td=(e,t,n,r)=>{if(typeof e=="string"){Ad(e,t,n);return}if(typeof e=="function"){Id(e,t,n,r);return}Ld(e,t,n,r)},Ad=(e,t,n)=>{const r=e===""?t:La(t,e);r.classGroupId=n},Id=(e,t,n,r)=>{if(Wd(e)){Ro(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(jd(n,e))},Ld=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let a=0;a<s;a++){const[i,l]=o[a];Ro(l,La(t,i),n,r)}},La=(e,t)=>{let n=e;const r=t.split(pr),o=r.length;for(let s=0;s<o;s++){const a=r[s];let i=n.nextPart.get(a);i||(i=Aa(),n.nextPart.set(a,i)),n=i}return n},Wd=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,$d=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(s,a)=>{n[s]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let a=n[s];if(a!==void 0)return a;if((a=r[s])!==void 0)return o(s,a),a},set(s,a){s in n?n[s]=a:o(s,a)}}},go="!",bs=":",Fd=[],ys=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Bd=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let a=0,i=0,l=0,u;const f=o.length;for(let v=0;v<f;v++){const _=o[v];if(a===0&&i===0){if(_===bs){s.push(o.slice(l,v)),l=v+1;continue}if(_==="/"){u=v;continue}}_==="["?a++:_==="]"?a--:_==="("?i++:_===")"&&i--}const m=s.length===0?o:o.slice(l);let p=m,h=!1;m.endsWith(go)?(p=m.slice(0,-1),h=!0):m.startsWith(go)&&(p=m.slice(1),h=!0);const b=u&&u>l?u-l:void 0;return ys(s,h,p,b)};if(t){const o=t+bs,s=r;r=a=>a.startsWith(o)?s(a.slice(o.length)):ys(Fd,!1,a,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},zd=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let s=0;s<n.length;s++){const a=n[s],i=a[0]==="[",l=t.has(a);i||l?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(a)):o.push(a)}return o.length>0&&(o.sort(),r.push(...o)),r}},Hd=e=>({cache:$d(e.cacheSize),parseClassName:Bd(e),sortModifiers:zd(e),...Od(e)}),Yd=/\s+/,Vd=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(Yd);let l="";for(let u=i.length-1;u>=0;u-=1){const f=i[u],{isExternal:m,modifiers:p,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:v}=n(f);if(m){l=f+(l.length>0?" "+l:l);continue}let _=!!v,y=r(_?b.substring(0,v):b);if(!y){if(!_){l=f+(l.length>0?" "+l:l);continue}if(y=r(b),!y){l=f+(l.length>0?" "+l:l);continue}_=!1}const w=p.length===0?"":p.length===1?p[0]:s(p).join(":"),x=h?w+go:w,k=x+y;if(a.indexOf(k)>-1)continue;a.push(k);const N=o(y,_);for(let C=0;C<N.length;++C){const S=N[C];a.push(x+S)}l=f+(l.length>0?" "+l:l)}return l},qd=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=Wa(n))&&(o&&(o+=" "),o+=r);return o},Wa=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Wa(e[r]))&&(n&&(n+=" "),n+=t);return n},Gd=(e,...t)=>{let n,r,o,s;const a=l=>{const u=t.reduce((f,m)=>m(f),e());return n=Hd(u),r=n.cache.get,o=n.cache.set,s=i,i(l)},i=l=>{const u=r(l);if(u)return u;const f=Vd(l,n);return o(l,f),f};return s=a,(...l)=>s(qd(...l))},Ud=[],Ee=e=>{const t=n=>n[e]||Ud;return t.isThemeGetter=!0,t},$a=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Fa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Xd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Qd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Jd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,eu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Nt=e=>Zd.test(e),te=e=>!!e&&!Number.isNaN(Number(e)),St=e=>!!e&&Number.isInteger(Number(e)),Ur=e=>e.endsWith("%")&&te(e.slice(0,-1)),gt=e=>Xd.test(e),Ba=()=>!0,tu=e=>Kd.test(e)&&!Qd.test(e),To=()=>!1,nu=e=>Jd.test(e),ru=e=>eu.test(e),ou=e=>!L(e)&&!F(e),su=e=>Rt(e,Ya,To),L=e=>$a.test(e),Wt=e=>Rt(e,Va,tu),ws=e=>Rt(e,mu,te),au=e=>Rt(e,Ga,Ba),iu=e=>Rt(e,qa,To),xs=e=>Rt(e,za,To),cu=e=>Rt(e,Ha,ru),Xn=e=>Rt(e,Ua,nu),F=e=>Fa.test(e),pn=e=>Vt(e,Va),lu=e=>Vt(e,qa),Cs=e=>Vt(e,za),du=e=>Vt(e,Ya),uu=e=>Vt(e,Ha),Kn=e=>Vt(e,Ua,!0),fu=e=>Vt(e,Ga,!0),Rt=(e,t,n)=>{const r=$a.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Vt=(e,t,n=!1)=>{const r=Fa.exec(e);return r?r[1]?t(r[1]):n:!1},za=e=>e==="position"||e==="percentage",Ha=e=>e==="image"||e==="url",Ya=e=>e==="length"||e==="size"||e==="bg-size",Va=e=>e==="length",mu=e=>e==="number",qa=e=>e==="family-name",Ga=e=>e==="number"||e==="weight",Ua=e=>e==="shadow",hu=()=>{const e=Ee("color"),t=Ee("font"),n=Ee("text"),r=Ee("font-weight"),o=Ee("tracking"),s=Ee("leading"),a=Ee("breakpoint"),i=Ee("container"),l=Ee("spacing"),u=Ee("radius"),f=Ee("shadow"),m=Ee("inset-shadow"),p=Ee("text-shadow"),h=Ee("drop-shadow"),b=Ee("blur"),v=Ee("perspective"),_=Ee("aspect"),y=Ee("ease"),w=Ee("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...k(),F,L],C=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],E=()=>[F,L,l],D=()=>[Nt,"full","auto",...E()],O=()=>[St,"none","subgrid",F,L],T=()=>["auto",{span:["full",St,F,L]},St,F,L],P=()=>[St,"auto",F,L],A=()=>["auto","min","max","fr",F,L],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...E()],q=()=>[Nt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],W=()=>[Nt,"screen","full","dvw","lvw","svw","min","max","fit",...E()],G=()=>[Nt,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],j=()=>[e,F,L],K=()=>[...k(),Cs,xs,{position:[F,L]}],ve=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",du,su,{size:[F,L]}],ne=()=>[Ur,pn,Wt],ee=()=>["","none","full",u,F,L],re=()=>["",te,pn,Wt],fe=()=>["solid","dashed","dotted","double"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>[te,Ur,Cs,xs],$=()=>["","none",b,F,L],de=()=>["none",te,F,L],ke=()=>["none",te,F,L],Oe=()=>[te,F,L],ce=()=>[Nt,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[gt],breakpoint:[gt],color:[Ba],container:[gt],"drop-shadow":[gt],ease:["in","out","in-out"],font:[ou],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[gt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[gt],shadow:[gt],spacing:["px",te],text:[gt],"text-shadow":[gt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Nt,L,F,_]}],container:["container"],columns:[{columns:[te,L,F,i]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:N()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[St,"auto",F,L]}],basis:[{basis:[Nt,"full","auto",i,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[te,Nt,"auto","initial","none",L]}],grow:[{grow:["",te,F,L]}],shrink:[{shrink:["",te,F,L]}],order:[{order:[St,"first","last","none",F,L]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pbs:[{pbs:E()}],pbe:[{pbe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mbs:[{mbs:R()}],mbe:[{mbe:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...W()]}],"min-inline-size":[{"min-inline":["auto",...W()]}],"max-inline-size":[{"max-inline":["none",...W()]}],"block-size":[{block:["auto",...G()]}],"min-block-size":[{"min-block":["auto",...G()]}],"max-block-size":[{"max-block":["none",...G()]}],w:[{w:[i,"screen",...q()]}],"min-w":[{"min-w":[i,"screen","none",...q()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",n,pn,Wt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,fu,au]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ur,L]}],"font-family":[{font:[lu,iu,t]}],"font-features":[{"font-features":[L]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,F,L]}],"line-clamp":[{"line-clamp":[te,"none",F,ws]}],leading:[{leading:[s,...E()]}],"list-image":[{"list-image":["none",F,L]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",F,L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[te,"from-font","auto",F,Wt]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[te,"auto",F,L]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",F,L]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",F,L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:K()}],"bg-repeat":[{bg:ve()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},St,F,L],radial:["",F,L],conic:[St,F,L]},uu,cu]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[te,F,L]}],"outline-w":[{outline:["",te,pn,Wt]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",f,Kn,Xn]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",m,Kn,Xn]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[te,Wt]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",p,Kn,Xn]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[te,F,L]}],"mix-blend":[{"mix-blend":[...Me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[te]}],"mask-image-linear-from-pos":[{"mask-linear-from":se()}],"mask-image-linear-to-pos":[{"mask-linear-to":se()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":se()}],"mask-image-t-to-pos":[{"mask-t-to":se()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":se()}],"mask-image-r-to-pos":[{"mask-r-to":se()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":se()}],"mask-image-b-to-pos":[{"mask-b-to":se()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":se()}],"mask-image-l-to-pos":[{"mask-l-to":se()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":se()}],"mask-image-x-to-pos":[{"mask-x-to":se()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":se()}],"mask-image-y-to-pos":[{"mask-y-to":se()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[F,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":se()}],"mask-image-radial-to-pos":[{"mask-radial-to":se()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[te]}],"mask-image-conic-from-pos":[{"mask-conic-from":se()}],"mask-image-conic-to-pos":[{"mask-conic-to":se()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:K()}],"mask-repeat":[{mask:ve()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",F,L]}],filter:[{filter:["","none",F,L]}],blur:[{blur:$()}],brightness:[{brightness:[te,F,L]}],contrast:[{contrast:[te,F,L]}],"drop-shadow":[{"drop-shadow":["","none",h,Kn,Xn]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",te,F,L]}],"hue-rotate":[{"hue-rotate":[te,F,L]}],invert:[{invert:["",te,F,L]}],saturate:[{saturate:[te,F,L]}],sepia:[{sepia:["",te,F,L]}],"backdrop-filter":[{"backdrop-filter":["","none",F,L]}],"backdrop-blur":[{"backdrop-blur":$()}],"backdrop-brightness":[{"backdrop-brightness":[te,F,L]}],"backdrop-contrast":[{"backdrop-contrast":[te,F,L]}],"backdrop-grayscale":[{"backdrop-grayscale":["",te,F,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[te,F,L]}],"backdrop-invert":[{"backdrop-invert":["",te,F,L]}],"backdrop-opacity":[{"backdrop-opacity":[te,F,L]}],"backdrop-saturate":[{"backdrop-saturate":[te,F,L]}],"backdrop-sepia":[{"backdrop-sepia":["",te,F,L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",F,L]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[te,"initial",F,L]}],ease:[{ease:["linear","initial",y,F,L]}],delay:[{delay:[te,F,L]}],animate:[{animate:["none",w,F,L]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,F,L]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:ke()}],"scale-x":[{"scale-x":ke()}],"scale-y":[{"scale-y":ke()}],"scale-z":[{"scale-z":ke()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[F,L,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",F,L]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mbs":[{"scroll-mbs":E()}],"scroll-mbe":[{"scroll-mbe":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pbs":[{"scroll-pbs":E()}],"scroll-pbe":[{"scroll-pbe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",F,L]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[te,pn,Wt,ws]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},pu=Gd(hu);function J(...e){return pu(Ra(e))}const vo=Ta("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Cr=d.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const a=r?wd:"button";return c.jsx(a,{className:J(vo({variant:t,size:n,className:e})),ref:s,...o})});Cr.displayName="Button";const gu="_cssloadSpeedingWheel_akex8_6",vu="_bigSize_akex8_20",_u="_smallSize_akex8_26",bu="_extraSmallSize_akex8_32",Qn={cssloadSpeedingWheel:gu,bigSize:vu,smallSize:_u,extraSmallSize:bu};function yu(e){return e==="medium"?"small":e==="large"?"big":e}const Ge=({marginTop:e,marginBottom:t,marginLeft:n,className:r,size:o="big"})=>{const s=g.useMemo(()=>({marginTop:e,marginBottom:t,marginLeft:n}),[t,n,e]),a=yu(o);return c.jsx("div",{className:r,style:s,children:c.jsx("div",{className:M(Qn.cssloadSpeedingWheel,{[Qn.bigSize]:a==="big",[Qn.smallSize]:a==="small",[Qn.extraSmallSize]:a==="extraSmall"})})})},wu="_button_fafaj_1",xu="_button__loader_fafaj_186",Cu="_button__content_fafaj_193",Gt={button:wu,"button--variant-primary":"_button--variant-primary_fafaj_26","button--variant-primary--disabled":"_button--variant-primary--disabled_fafaj_37","button--variant-default":"_button--variant-default_fafaj_45","button--variant-default--disabled":"_button--variant-default--disabled_fafaj_58","button--variant-secondary":"_button--variant-secondary_fafaj_66","button--variant-secondary--disabled":"_button--variant-secondary--disabled_fafaj_81","button--variant-text":"_button--variant-text_fafaj_89","button--variant-text--disabled":"_button--variant-text--disabled_fafaj_105","button--variant-link":"_button--variant-link_fafaj_113","button--variant-link--disabled":"_button--variant-link--disabled_fafaj_129","button--variant-danger":"_button--variant-danger_fafaj_137","button--variant-danger--disabled":"_button--variant-danger--disabled_fafaj_147","button--size-small":"_button--size-small_fafaj_155","button--size-medium":"_button--size-medium_fafaj_163","button--size-large":"_button--size-large_fafaj_171","button--loading":"_button--loading_fafaj_182",button__loader:xu,button__content:Cu},xe=g.forwardRef(({variant:e="default",size:t="medium",className:n="",loading:r=!1,disabled:o=!1,children:s,type:a="button",...i},l)=>{const u=M(Gt.button,Gt[`button--variant-${e}`],Gt[`button--size-${t}`],{[Gt["button--loading"]]:r,[Gt["button--disabled"]]:o},n);return c.jsxs(Cr,{ref:l,variant:null,size:null,className:u,disabled:o||r,type:a,...i,children:[s&&s,r&&c.jsx("span",{className:Gt.button__loader,children:c.jsx(Ge,{size:"extraSmall"})})]})});xe.displayName="Button";const Za=e=>{const[t,n]=g.useState(0),[r,o]=g.useState(0),s=g.useRef(null);return g.useEffect(()=>{if(!e)return;const i=new ResizeObserver(u=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{for(const f of u)if(f.borderBoxSize){const m=Array.isArray(f.borderBoxSize)?f.borderBoxSize[0]:f.borderBoxSize;n(m.blockSize),o(m.inlineSize)}else n(f.contentRect.height),o(f.contentRect.width)})});i.observe(e);const l=e.getBoundingClientRect().height;return n(l),()=>{i.disconnect()}},[e,n]),g.useMemo(()=>({height:t,width:r}),[t,r])},ks={capture:!0,passive:!0},ku=({triggerRef:e,dropdownHeight:t,offset:n=8,enabled:r=!0,onAnchorFrame:o})=>{const[s,a]=g.useState("bottom"),i=g.useRef(null),l=g.useCallback(()=>{if(!e.current)return"bottom";const f=e.current.getBoundingClientRect(),m=window.innerHeight,p=f.top-n;return m-f.bottom-n>=t?"bottom":p>=t?"top":"bottom"},[e,t,n]),u=g.useCallback(()=>{i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{const f=l();a(f),o?.(f)})},[l,o]);return g.useEffect(()=>{if(!r)return;const f=e.current;if(!f)return;u();const m=new ResizeObserver(()=>{u()});m.observe(f);const p=new MutationObserver(()=>{u()});p.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]});const h=[];let b=f.parentElement;for(;b;){const v=window.getComputedStyle(b),_=v.overflow+v.overflowY+v.overflowX;/(auto|scroll)/.test(_)&&(h.push(b),b.addEventListener("scroll",u)),b=b.parentElement}return window.addEventListener("scroll",u,ks),window.addEventListener("resize",u),window.addEventListener("transitionend",u),window.addEventListener("animationend",u),()=>{i.current&&cancelAnimationFrame(i.current),m.disconnect(),p.disconnect(),window.removeEventListener("scroll",u,ks),window.removeEventListener("resize",u),window.removeEventListener("transitionend",u),window.removeEventListener("animationend",u),h.forEach(v=>{v.removeEventListener("scroll",u)})}},[r,e,u]),s},Nu="_container_1dkro_1",Su="_activeButton_1dkro_16",Eu="_slider_1dkro_22",Zr={container:Nu,activeButton:Su,slider:Eu},ju=({options:e,value:t,defaultValue:n,data:r,activeButton:o,defaultActiveButton:s,onChange:a})=>{const i=g.useMemo(()=>e?.length?e.map(y=>({id:y.value,label:y.label,additionalComponent:y.additionalComponent})):r??[],[e,r]),[l,u]=g.useState(()=>n??s??i[0]?.id),[f,m]=g.useState({transform:"translateX(0)",width:0}),p=g.useRef(new Map),h=t??o??l,{width:b}=Za(p.current.get(h)),v=y=>{y.id!==h&&(a?.(y.id),u(y.id))},_=g.useCallback((y,w)=>{p.current.set(w,y)},[]);return g.useEffect(()=>{const y=i.findIndex(w=>w.id===h);if(y>=0){const x=i.slice(0,y).reduce((k,N)=>{const C=p.current.get(N.id);if(C){const S=C.getBoundingClientRect().width;k+=S}return k},0);m({transform:`translateX(${x}px)`,width:b})}},[h,b,i]),c.jsxs("div",{className:Zr.container,children:[i.map(y=>c.jsx("div",{ref:w=>_(w,y.id),children:c.jsxs(xe,{size:"small",onClick:()=>v(y),className:M({[Zr.activeButton]:y.id===h}),children:[y.label,y.additionalComponent]})},y.id)),c.jsx("div",{className:Zr.slider,style:f})]})},Mu="_card_1cqzz_1",Ou="_link_1cqzz_17",Ns={card:Mu,link:Ou},Du=g.memo(({text:e,width:t,height:n,className:r,backgroundColor:o,imageUrl:s,textColor:a,link:i})=>{const l=M(Ns.card,{[Ns.link]:i},r),u=g.useMemo(()=>({backgroundColor:o,...a&&{color:a},...t&&{width:t},...n&&{height:`${n}px`},...s&&{backgroundImage:`url(${s})`}}),[o,n,s,a,t]);return i?c.jsx("a",{className:l,style:u,href:i,children:c.jsx("span",{children:e})}):c.jsx("div",{className:l,style:u,children:c.jsx("span",{children:e})})}),Pu="_carouselWrapper_12142_1",Ru="_carousel_12142_1",Tu="_viewport_12142_13",Au="_slide_12142_19",Iu="_activeSlide_12142_24",Lu="_itemContent_12142_28",Wu="_controls_12142_36",$u="_carouselControl_12142_48",Fu="_prevIcon_12142_71",Bu="_nextIcon_12142_72",zu="_indicators_12142_90",Hu="_activeIndicator_12142_115",Le={carouselWrapper:Pu,carousel:Ru,viewport:Tu,slide:Au,activeSlide:Iu,itemContent:Lu,controls:Wu,carouselControl:$u,prevIcon:Fu,nextIcon:Bu,indicators:zu,activeIndicator:Hu},Yu=e=>"items"in e&&Array.isArray(e.items)&&"renderItem"in e&&typeof e.renderItem=="function",Vu=e=>Yu(e)?e.items.map((t,n)=>({key:`${t.id}-${n}`,content:e.renderItem(t),caption:t.caption})):g.Children.toArray(e.children).map((t,n)=>({key:g.isValidElement(t)&&t.key!==null&&t.key!==void 0&&t.key!=="."?String(t.key):`slide-${n}`,content:t})),qu=e=>{const t={...e};return delete t.items,delete t.renderItem,delete t.children,t},Gu=e=>{const t=Vu(e),n=t.length,r=qu(e),{className:o,dark:s,enableTouch:a,fade:i,interval:l,keyboard:u=!0,pause:f,ride:m,slide:p,...h}=r,[b,v]=g.useState(0),_=()=>{v(C=>C===n-1?0:C+1)},y=()=>{v(C=>C===0?n-1:C-1)},w=C=>{v(C)},x=n>1,k=g.useMemo(()=>t.map(C=>({key:C.key})),[t]),N=C=>{h.onKeyDown?.(C),!(C.defaultPrevented||!u||!x)&&(C.key==="ArrowLeft"&&y(),C.key==="ArrowRight"&&_())};return n?x?c.jsx("div",{className:Le.carouselWrapper,children:c.jsxs("div",{...h,className:[Le.carousel,o].filter(Boolean).join(" "),onKeyDown:N,role:"region","aria-roledescription":"carousel",children:[c.jsx("div",{className:Le.viewport,children:t.map((C,S)=>c.jsx("div",{className:[Le.slide,S===b?Le.activeSlide:""].filter(Boolean).join(" "),"aria-hidden":S!==b,children:c.jsx("div",{className:Le.itemContent,children:C.content})},C.key))}),c.jsxs("div",{className:Le.controls,children:[c.jsx("button",{className:Le.carouselControl,type:"button",onClick:y,"aria-label":"Previous slide",children:c.jsx("span",{className:Le.prevIcon,"aria-hidden":"true"})}),c.jsx("div",{className:Le.indicators,children:k.map((C,S)=>c.jsx("button",{className:S===b?Le.activeIndicator:void 0,type:"button",onClick:()=>w(S),"aria-label":`Go to slide ${S+1}`,"aria-current":S===b},C.key))}),c.jsx("button",{className:Le.carouselControl,type:"button",onClick:_,"aria-label":"Next slide",children:c.jsx("span",{className:Le.nextIcon,"aria-hidden":"true"})})]})]})}):c.jsx("div",{className:Le.carouselWrapper,children:t[0].content}):null},$e=8;function Uu(e,t="top"){const{left:n,right:r,top:o,bottom:s,width:a,height:i}=e,l=n+a/2,u=o+i/2;switch(t){case"top":return{left:l,top:o-$e,transform:"translate(-50%, -100%)"};case"topLeft":return{left:n,top:o-$e,transform:"translateY(-100%)"};case"topRight":return{left:r,top:o-$e,transform:"translate(-100%, -100%)"};case"bottom":return{left:l,top:s+$e,transform:"translate(-50%, 0)"};case"bottomLeft":return{left:n,top:s+$e,transform:"translateY(0)"};case"bottomRight":return{left:r,top:s+$e,transform:"translate(-100%, 0)"};case"left":return{left:n-$e,top:u,transform:"translate(-100%, -50%)"};case"leftTop":return{left:n-$e,top:o,transform:"translate(-100%, 0)"};case"leftBottom":return{left:n-$e,top:s,transform:"translate(-100%, -100%)"};case"right":return{left:r+$e,top:u,transform:"translate(0, -50%)"};case"rightTop":return{left:r+$e,top:o,transform:"translate(0, 0)"};case"rightBottom":return{left:r+$e,top:s,transform:"translate(0, -100%)"};default:return{left:l,top:o-$e,transform:"translate(-50%, -100%)"}}}const Zu="_overlay_1pnex_1",Xu="_fadeIn_1pnex_1",Ku="_arrow_1pnex_16",Qu="_top_1pnex_22",Ju="_bottom_1pnex_28",ef="_left_1pnex_34",tf="_right_1pnex_40",Xr={overlay:Zu,fadeIn:Xu,arrow:Ku,top:Qu,bottom:Ju,left:ef,right:tf};function nf(e){return e.startsWith("top")?"bottom":e.startsWith("bottom")?"top":e.startsWith("left")?"right":e.startsWith("right")?"left":"top"}const kr=g.memo(({title:e,content:t,open:n,defaultOpen:r=!1,trigger:o="hover",mouseEnterDelay:s=100,mouseLeaveDelay:a=100,onOpenChange:i,placement:l="top",arrow:u=!0,children:f,overlayClassName:m,getPopupContainer:p=()=>document.body})=>{const h=n!==void 0,[b,v]=g.useState(r),_=h?n:b,y=g.useCallback(j=>{h||v(j),i?.(j)},[h,i]),w=g.useRef(null),[x,k]=g.useState(null),N=g.useRef(null),C=g.useRef(null),S=Array.isArray(o)?o:[o],E=S.includes("hover"),D=S.includes("click"),O=g.useCallback(()=>{N.current&&(clearTimeout(N.current),N.current=null)},[]),T=g.useCallback(()=>{C.current&&(clearTimeout(C.current),C.current=null)},[]),P=g.useCallback(()=>{E&&(T(),N.current=setTimeout(()=>y(!0),s))},[E,s,y,T]),A=g.useCallback(()=>{E&&(O(),C.current=setTimeout(()=>y(!1),a))},[E,a,y,O]),I=g.useCallback(j=>{D&&(j.preventDefault(),y(!_))},[D,_,y]);g.useEffect(()=>{if(!D||!_||h)return;const j=K=>{const ve=w.current;ve&&!ve.contains(K.target)&&y(!1)};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[D,_,h,y]),g.useLayoutEffect(()=>{if(!_||!w.current){k(null);return}const j=w.current.getBoundingClientRect();k(Uu(j,l))},[_,l]),g.useEffect(()=>()=>{O(),T()},[O,T]);const X=typeof document<"u"?p():null,R=nf(l),q=e??t,W=_&&q!=null&&q!==""&&x&&X&&Pn.createPortal(c.jsxs("span",{className:M(Xr.overlay,m),style:{left:x.left,top:x.top,transform:x.transform},role:"tooltip",children:[q,u&&c.jsx("span",{className:M(Xr.arrow,Xr[R])})]}),X),G=!h&&(E||D)?{onMouseEnter:P,onMouseLeave:A,onClick:D?I:void 0}:{};return c.jsxs(c.Fragment,{children:[c.jsx("span",{ref:w,...G,children:f}),W]})});kr.displayName="TooltipDark";const rf="_wrapper_ukjvp_1",of="_trigger_ukjvp_5",sf="_trigger_iconOnly_ukjvp_32",af="_icon_ukjvp_43",Jn={wrapper:rf,trigger:of,trigger_iconOnly:sf,icon:af},Ao=g.memo(({children:e,onClick:t,copied:n,tooltipText:r="Скопировано",ariaLabel:o,showIcon:s=!0,iconOnly:a=!1,className:i})=>{const l=g.useCallback(()=>{t()},[t]);return c.jsx("span",{className:Jn.wrapper,children:c.jsx(kr,{open:n,title:r,placement:"top",children:c.jsxs(Cr,{type:"button",variant:null,size:null,className:M(Jn.trigger,a&&Jn.trigger_iconOnly,i),onClick:l,"aria-label":o,"aria-live":"polite",children:[!a&&e,s&&c.jsx(ka,{className:Jn.icon,"aria-hidden":!0})]})})})});Ao.displayName="CopyTextTrigger";function Xa(e){return typeof document>"u"?null:Pn.createPortal(e,document.body)}function je(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function cf(e,t){const n=d.createContext(t),r=s=>{const{children:a,...i}=s,l=d.useMemo(()=>i,Object.values(i));return c.jsx(n.Provider,{value:l,children:a})};r.displayName=e+"Provider";function o(s){const a=d.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Nr(e,t=[]){let n=[];function r(s,a){const i=d.createContext(a),l=n.length;n=[...n,a];const u=m=>{const{scope:p,children:h,...b}=m,v=p?.[e]?.[l]||i,_=d.useMemo(()=>b,Object.values(b));return c.jsx(v.Provider,{value:_,children:h})};u.displayName=s+"Provider";function f(m,p){const h=p?.[e]?.[l]||i,b=d.useContext(h);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(a=>d.createContext(a));return function(i){const l=i?.[e]||s;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,lf(o,...t)]}function lf(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:u})=>{const m=l(s)[`__scope${u}`];return{...i,...m}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function df(e){const t=uf(e),n=d.forwardRef((r,o)=>{const{children:s,...a}=r,i=d.Children.toArray(s),l=i.find(mf);if(l){const u=l.props.children,f=i.map(m=>m===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:m);return c.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function uf(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const a=pf(o),i=hf(s,o.props);return o.type!==d.Fragment&&(i.ref=r?Rn(r,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ff=Symbol("radix.slottable");function mf(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ff}function hf(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function pf(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var gf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ie=gf.reduce((e,t)=>{const n=df(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function vf(e,t){e&&ba.flushSync(()=>e.dispatchEvent(t))}function rn(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>t.current?.(...n),[])}function _f(e,t=globalThis?.document){const n=rn(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var bf="DismissableLayer",_o="dismissableLayer.update",yf="dismissableLayer.pointerDownOutside",wf="dismissableLayer.focusOutside",Ss,Ka=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Sr=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...l}=e,u=d.useContext(Ka),[f,m]=d.useState(null),p=f?.ownerDocument??globalThis?.document,[,h]=d.useState({}),b=Ve(t,S=>m(S)),v=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(_),w=f?v.indexOf(f):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,k=w>=y,N=kf(S=>{const E=S.target,D=[...u.branches].some(O=>O.contains(E));!k||D||(o?.(S),a?.(S),S.defaultPrevented||i?.())},p),C=Nf(S=>{const E=S.target;[...u.branches].some(O=>O.contains(E))||(s?.(S),a?.(S),S.defaultPrevented||i?.())},p);return _f(S=>{w===u.layers.size-1&&(r?.(S),!S.defaultPrevented&&i&&(S.preventDefault(),i()))},p),d.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ss=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Es(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ss)}},[f,p,n,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Es())},[f,u]),d.useEffect(()=>{const S=()=>h({});return document.addEventListener(_o,S),()=>document.removeEventListener(_o,S)},[]),c.jsx(Ie.div,{...l,ref:b,style:{pointerEvents:x?k?"auto":"none":void 0,...e.style},onFocusCapture:je(e.onFocusCapture,C.onFocusCapture),onBlurCapture:je(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:je(e.onPointerDownCapture,N.onPointerDownCapture)})});Sr.displayName=bf;var xf="DismissableLayerBranch",Cf=d.forwardRef((e,t)=>{const n=d.useContext(Ka),r=d.useRef(null),o=Ve(t,r);return d.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(Ie.div,{...e,ref:o})});Cf.displayName=xf;function kf(e,t=globalThis?.document){const n=rn(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let l=function(){Qa(yf,n,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Nf(e,t=globalThis?.document){const n=rn(e),r=d.useRef(!1);return d.useEffect(()=>{const o=s=>{s.target&&!r.current&&Qa(wf,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Es(){const e=new CustomEvent(_o);document.dispatchEvent(e)}function Qa(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?vf(o,s):o.dispatchEvent(s)}var Ot=globalThis?.document?d.useLayoutEffect:()=>{},Sf=d[" useId ".trim().toString()]||(()=>{}),Ef=0;function Nn(e){const[t,n]=d.useState(Sf());return Ot(()=>{n(r=>r??String(Ef++))},[e]),e||(t?`radix-${t}`:"")}const jf=["top","right","bottom","left"],Dt=Math.min,ze=Math.max,gr=Math.round,er=Math.floor,lt=e=>({x:e,y:e}),Mf={left:"right",right:"left",bottom:"top",top:"bottom"};function bo(e,t,n){return ze(e,Dt(t,n))}function wt(e,t){return typeof e=="function"?e(t):e}function xt(e){return e.split("-")[0]}function ln(e){return e.split("-")[1]}function Io(e){return e==="x"?"y":"x"}function Lo(e){return e==="y"?"height":"width"}function at(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Wo(e){return Io(at(e))}function Of(e,t,n){n===void 0&&(n=!1);const r=ln(e),o=Wo(e),s=Lo(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=vr(a)),[a,vr(a)]}function Df(e){const t=vr(e);return[yo(e),t,yo(t)]}function yo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const js=["left","right"],Ms=["right","left"],Pf=["top","bottom"],Rf=["bottom","top"];function Tf(e,t,n){switch(e){case"top":case"bottom":return n?t?Ms:js:t?js:Ms;case"left":case"right":return t?Pf:Rf;default:return[]}}function Af(e,t,n,r){const o=ln(e);let s=Tf(xt(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(yo)))),s}function vr(e){const t=xt(e);return Mf[t]+e.slice(t.length)}function If(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ja(e){return typeof e!="number"?If(e):{top:e,right:e,bottom:e,left:e}}function _r(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Os(e,t,n){let{reference:r,floating:o}=e;const s=at(t),a=Wo(t),i=Lo(a),l=xt(t),u=s==="y",f=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,p=r[i]/2-o[i]/2;let h;switch(l){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:m};break;case"left":h={x:r.x-o.width,y:m};break;default:h={x:r.x,y:r.y}}switch(ln(t)){case"start":h[a]-=p*(n&&u?-1:1);break;case"end":h[a]+=p*(n&&u?-1:1);break}return h}async function Lf(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:p=!1,padding:h=0}=wt(t,e),b=Ja(h),_=i[p?m==="floating"?"reference":"floating":m],y=_r(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:u,rootBoundary:f,strategy:l})),w=m==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),k=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},N=_r(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:x,strategy:l}):w);return{top:(y.top-N.top+b.top)/k.y,bottom:(N.bottom-y.bottom+b.bottom)/k.y,left:(y.left-N.left+b.left)/k.x,right:(N.right-y.right+b.right)/k.x}}const Wf=50,$f=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=a.detectOverflow?a:{...a,detectOverflow:Lf},l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:m}=Os(u,r,l),p=r,h=0;const b={};for(let v=0;v<s.length;v++){const _=s[v];if(!_)continue;const{name:y,fn:w}=_,{x,y:k,data:N,reset:C}=await w({x:f,y:m,initialPlacement:r,placement:p,strategy:o,middlewareData:b,rects:u,platform:i,elements:{reference:e,floating:t}});f=x??f,m=k??m,b[y]={...b[y],...N},C&&h<Wf&&(h++,typeof C=="object"&&(C.placement&&(p=C.placement),C.rects&&(u=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:f,y:m}=Os(u,p,l)),v=-1)}return{x:f,y:m,placement:p,strategy:o,middlewareData:b}},Ff=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:l}=t,{element:u,padding:f=0}=wt(e,t)||{};if(u==null)return{};const m=Ja(f),p={x:n,y:r},h=Wo(o),b=Lo(h),v=await a.getDimensions(u),_=h==="y",y=_?"top":"left",w=_?"bottom":"right",x=_?"clientHeight":"clientWidth",k=s.reference[b]+s.reference[h]-p[h]-s.floating[b],N=p[h]-s.reference[h],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let S=C?C[x]:0;(!S||!await(a.isElement==null?void 0:a.isElement(C)))&&(S=i.floating[x]||s.floating[b]);const E=k/2-N/2,D=S/2-v[b]/2-1,O=Dt(m[y],D),T=Dt(m[w],D),P=O,A=S-v[b]-T,I=S/2-v[b]/2+E,X=bo(P,I,A),R=!l.arrow&&ln(o)!=null&&I!==X&&s.reference[b]/2-(I<P?O:T)-v[b]/2<0,q=R?I<P?I-P:I-A:0;return{[h]:p[h]+q,data:{[h]:X,centerOffset:I-X-q,...R&&{alignmentOffset:q}},reset:R}}}),Bf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,..._}=wt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=xt(o),w=at(i),x=xt(i)===i,k=await(l.isRTL==null?void 0:l.isRTL(u.floating)),N=p||(x||!v?[vr(i)]:Df(i)),C=b!=="none";!p&&C&&N.push(...Af(i,v,b,k));const S=[i,...N],E=await l.detectOverflow(t,_),D=[];let O=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&D.push(E[y]),m){const I=Of(o,a,k);D.push(E[I[0]],E[I[1]])}if(O=[...O,{placement:o,overflows:D}],!D.every(I=>I<=0)){var T,P;const I=(((T=s.flip)==null?void 0:T.index)||0)+1,X=S[I];if(X&&(!(m==="alignment"?w!==at(X):!1)||O.every(W=>at(W.placement)===w?W.overflows[0]>0:!0)))return{data:{index:I,overflows:O},reset:{placement:X}};let R=(P=O.filter(q=>q.overflows[0]<=0).sort((q,W)=>q.overflows[1]-W.overflows[1])[0])==null?void 0:P.placement;if(!R)switch(h){case"bestFit":{var A;const q=(A=O.filter(W=>{if(C){const G=at(W.placement);return G===w||G==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(G=>G>0).reduce((G,j)=>G+j,0)]).sort((W,G)=>W[1]-G[1])[0])==null?void 0:A[0];q&&(R=q);break}case"initialPlacement":R=i;break}if(o!==R)return{reset:{placement:R}}}return{}}}};function Ds(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ps(e){return jf.some(t=>e[t]>=0)}const zf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=wt(e,t);switch(o){case"referenceHidden":{const a=await r.detectOverflow(t,{...s,elementContext:"reference"}),i=Ds(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ps(i)}}}case"escaped":{const a=await r.detectOverflow(t,{...s,altBoundary:!0}),i=Ds(a,n.floating);return{data:{escapedOffsets:i,escaped:Ps(i)}}}default:return{}}}}},ei=new Set(["left","top"]);async function Hf(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=xt(n),i=ln(n),l=at(n)==="y",u=ei.has(a)?-1:1,f=s&&l?-1:1,m=wt(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:b}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return i&&typeof b=="number"&&(h=i==="end"?b*-1:b),l?{x:h*f,y:p*u}:{x:p*u,y:h*f}}const Yf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,l=await Hf(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:a}}}}},Vf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:y=>{let{x:w,y:x}=y;return{x:w,y:x}}},...u}=wt(e,t),f={x:n,y:r},m=await s.detectOverflow(t,u),p=at(xt(o)),h=Io(p);let b=f[h],v=f[p];if(a){const y=h==="y"?"top":"left",w=h==="y"?"bottom":"right",x=b+m[y],k=b-m[w];b=bo(x,b,k)}if(i){const y=p==="y"?"top":"left",w=p==="y"?"bottom":"right",x=v+m[y],k=v-m[w];v=bo(x,v,k)}const _=l.fn({...t,[h]:b,[p]:v});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[h]:a,[p]:i}}}}}},qf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:l=!0,crossAxis:u=!0}=wt(e,t),f={x:n,y:r},m=at(o),p=Io(m);let h=f[p],b=f[m];const v=wt(i,t),_=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const x=p==="y"?"height":"width",k=s.reference[p]-s.floating[x]+_.mainAxis,N=s.reference[p]+s.reference[x]-_.mainAxis;h<k?h=k:h>N&&(h=N)}if(u){var y,w;const x=p==="y"?"width":"height",k=ei.has(xt(o)),N=s.reference[m]-s.floating[x]+(k&&((y=a.offset)==null?void 0:y[m])||0)+(k?0:_.crossAxis),C=s.reference[m]+s.reference[x]+(k?0:((w=a.offset)==null?void 0:w[m])||0)-(k?_.crossAxis:0);b<N?b=N:b>C&&(b=C)}return{[p]:h,[m]:b}}}},Gf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:l=()=>{},...u}=wt(e,t),f=await a.detectOverflow(t,u),m=xt(o),p=ln(o),h=at(o)==="y",{width:b,height:v}=s.floating;let _,y;m==="top"||m==="bottom"?(_=m,y=p===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(y=m,_=p==="end"?"top":"bottom");const w=v-f.top-f.bottom,x=b-f.left-f.right,k=Dt(v-f[_],w),N=Dt(b-f[y],x),C=!t.middlewareData.shift;let S=k,E=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(S=w),C&&!p){const O=ze(f.left,0),T=ze(f.right,0),P=ze(f.top,0),A=ze(f.bottom,0);h?E=b-2*(O!==0||T!==0?O+T:ze(f.left,f.right)):S=v-2*(P!==0||A!==0?P+A:ze(f.top,f.bottom))}await l({...t,availableWidth:E,availableHeight:S});const D=await a.getDimensions(i.floating);return b!==D.width||v!==D.height?{reset:{rects:!0}}:{}}}};function Er(){return typeof window<"u"}function dn(e){return ti(e)?(e.nodeName||"").toLowerCase():"#document"}function He(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ut(e){var t;return(t=(ti(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ti(e){return Er()?e instanceof Node||e instanceof He(e).Node:!1}function Ae(e){return Er()?e instanceof Element||e instanceof He(e).Element:!1}function kt(e){return Er()?e instanceof HTMLElement||e instanceof He(e).HTMLElement:!1}function Rs(e){return!Er()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof He(e).ShadowRoot}function Tn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function Uf(e){return/^(table|td|th)$/.test(dn(e))}function jr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Zf=/transform|translate|scale|rotate|perspective|filter/,Xf=/paint|layout|strict|content/,$t=e=>!!e&&e!=="none";let Kr;function $o(e){const t=Ae(e)?et(e):e;return $t(t.transform)||$t(t.translate)||$t(t.scale)||$t(t.rotate)||$t(t.perspective)||!Fo()&&($t(t.backdropFilter)||$t(t.filter))||Zf.test(t.willChange||"")||Xf.test(t.contain||"")}function Kf(e){let t=Pt(e);for(;kt(t)&&!on(t);){if($o(t))return t;if(jr(t))return null;t=Pt(t)}return null}function Fo(){return Kr==null&&(Kr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Kr}function on(e){return/^(html|body|#document)$/.test(dn(e))}function et(e){return He(e).getComputedStyle(e)}function Mr(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pt(e){if(dn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Rs(e)&&e.host||ut(e);return Rs(t)?t.host:t}function ni(e){const t=Pt(e);return on(t)?e.ownerDocument?e.ownerDocument.body:e.body:kt(t)&&Tn(t)?t:ni(t)}function Sn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ni(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=He(o);if(s){const i=wo(a);return t.concat(a,a.visualViewport||[],Tn(o)?o:[],i&&n?Sn(i):[])}else return t.concat(o,Sn(o,[],n))}function wo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ri(e){const t=et(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=kt(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=gr(n)!==s||gr(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function Bo(e){return Ae(e)?e:e.contextElement}function en(e){const t=Bo(e);if(!kt(t))return lt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=ri(t);let a=(s?gr(n.width):n.width)/r,i=(s?gr(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Qf=lt(0);function oi(e){const t=He(e);return!Fo()||!t.visualViewport?Qf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Jf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==He(e)?!1:t}function Ht(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Bo(e);let a=lt(1);t&&(r?Ae(r)&&(a=en(r)):a=en(e));const i=Jf(s,n,r)?oi(s):lt(0);let l=(o.left+i.x)/a.x,u=(o.top+i.y)/a.y,f=o.width/a.x,m=o.height/a.y;if(s){const p=He(s),h=r&&Ae(r)?He(r):r;let b=p,v=wo(b);for(;v&&r&&h!==b;){const _=en(v),y=v.getBoundingClientRect(),w=et(v),x=y.left+(v.clientLeft+parseFloat(w.paddingLeft))*_.x,k=y.top+(v.clientTop+parseFloat(w.paddingTop))*_.y;l*=_.x,u*=_.y,f*=_.x,m*=_.y,l+=x,u+=k,b=He(v),v=wo(b)}}return _r({width:f,height:m,x:l,y:u})}function Or(e,t){const n=Mr(e).scrollLeft;return t?t.left+n:Ht(ut(e)).left+n}function si(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Or(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function em(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=ut(r),i=t?jr(t.floating):!1;if(r===a||i&&s)return n;let l={scrollLeft:0,scrollTop:0},u=lt(1);const f=lt(0),m=kt(r);if((m||!m&&!s)&&((dn(r)!=="body"||Tn(a))&&(l=Mr(r)),m)){const h=Ht(r);u=en(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const p=a&&!m&&!s?si(a,l):lt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+p.x,y:n.y*u.y-l.scrollTop*u.y+f.y+p.y}}function tm(e){return Array.from(e.getClientRects())}function nm(e){const t=ut(e),n=Mr(e),r=e.ownerDocument.body,o=ze(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ze(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Or(e);const i=-n.scrollTop;return et(r).direction==="rtl"&&(a+=ze(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}const Ts=25;function rm(e,t){const n=He(e),r=ut(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,l=0;if(o){s=o.width,a=o.height;const f=Fo();(!f||f&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}const u=Or(r);if(u<=0){const f=r.ownerDocument,m=f.body,p=getComputedStyle(m),h=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,b=Math.abs(r.clientWidth-m.clientWidth-h);b<=Ts&&(s-=b)}else u<=Ts&&(s+=u);return{width:s,height:a,x:i,y:l}}function om(e,t){const n=Ht(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=kt(e)?en(e):lt(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,l=o*s.x,u=r*s.y;return{width:a,height:i,x:l,y:u}}function As(e,t,n){let r;if(t==="viewport")r=rm(e,n);else if(t==="document")r=nm(ut(e));else if(Ae(t))r=om(t,n);else{const o=oi(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return _r(r)}function ai(e,t){const n=Pt(e);return n===t||!Ae(n)||on(n)?!1:et(n).position==="fixed"||ai(n,t)}function sm(e,t){const n=t.get(e);if(n)return n;let r=Sn(e,[],!1).filter(i=>Ae(i)&&dn(i)!=="body"),o=null;const s=et(e).position==="fixed";let a=s?Pt(e):e;for(;Ae(a)&&!on(a);){const i=et(a),l=$o(a);!l&&i.position==="fixed"&&(o=null),(s?!l&&!o:!l&&i.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Tn(a)&&!l&&ai(e,a))?r=r.filter(f=>f!==a):o=i,a=Pt(a)}return t.set(e,r),r}function am(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?jr(t)?[]:sm(t,this._c):[].concat(n),r],i=As(t,a[0],o);let l=i.top,u=i.right,f=i.bottom,m=i.left;for(let p=1;p<a.length;p++){const h=As(t,a[p],o);l=ze(h.top,l),u=Dt(h.right,u),f=Dt(h.bottom,f),m=ze(h.left,m)}return{width:u-m,height:f-l,x:m,y:l}}function im(e){const{width:t,height:n}=ri(e);return{width:t,height:n}}function cm(e,t,n){const r=kt(t),o=ut(t),s=n==="fixed",a=Ht(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const l=lt(0);function u(){l.x=Or(o)}if(r||!r&&!s)if((dn(t)!=="body"||Tn(o))&&(i=Mr(t)),r){const h=Ht(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&u();s&&!r&&o&&u();const f=o&&!r&&!s?si(o,i):lt(0),m=a.left+i.scrollLeft-l.x-f.x,p=a.top+i.scrollTop-l.y-f.y;return{x:m,y:p,width:a.width,height:a.height}}function Qr(e){return et(e).position==="static"}function Is(e,t){if(!kt(e)||et(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ut(e)===n&&(n=n.ownerDocument.body),n}function ii(e,t){const n=He(e);if(jr(e))return n;if(!kt(e)){let o=Pt(e);for(;o&&!on(o);){if(Ae(o)&&!Qr(o))return o;o=Pt(o)}return n}let r=Is(e,t);for(;r&&Uf(r)&&Qr(r);)r=Is(r,t);return r&&on(r)&&Qr(r)&&!$o(r)?n:r||Kf(e)||n}const lm=async function(e){const t=this.getOffsetParent||ii,n=this.getDimensions,r=await n(e.floating);return{reference:cm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function dm(e){return et(e).direction==="rtl"}const um={convertOffsetParentRelativeRectToViewportRelativeRect:em,getDocumentElement:ut,getClippingRect:am,getOffsetParent:ii,getElementRects:lm,getClientRects:tm,getDimensions:im,getScale:en,isElement:Ae,isRTL:dm};function ci(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fm(e,t){let n=null,r;const o=ut(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:f,top:m,width:p,height:h}=u;if(i||t(),!p||!h)return;const b=er(m),v=er(o.clientWidth-(f+p)),_=er(o.clientHeight-(m+h)),y=er(f),x={rootMargin:-b+"px "+-v+"px "+-_+"px "+-y+"px",threshold:ze(0,Dt(1,l))||1};let k=!0;function N(C){const S=C[0].intersectionRatio;if(S!==l){if(!k)return a();S?a(!1,S):r=setTimeout(()=>{a(!1,1e-7)},1e3)}S===1&&!ci(u,e.getBoundingClientRect())&&a(),k=!1}try{n=new IntersectionObserver(N,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(N,x)}n.observe(e)}return a(!0),s}function li(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Bo(e),f=o||s?[...u?Sn(u):[],...t?Sn(t):[]]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const m=u&&i?fm(u,n):null;let p=-1,h=null;a&&(h=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),u&&!l&&h.observe(u),t&&h.observe(t));let b,v=l?Ht(e):null;l&&_();function _(){const y=Ht(e);v&&!ci(v,y)&&n(),v=y,b=requestAnimationFrame(_)}return n(),()=>{var y;f.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),m?.(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(b)}}const mm=Yf,hm=Vf,pm=Bf,gm=Gf,vm=zf,Ls=Ff,_m=qf,bm=(e,t,n)=>{const r=new Map,o={platform:um,...n},s={...o.platform,_c:r};return $f(e,t,{...o,platform:s})};var ym=typeof document<"u",wm=function(){},ur=ym?g.useLayoutEffect:wm;function br(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!br(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!br(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function di(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ws(e,t){const n=di(e);return Math.round(t*n)/n}function Jr(e){const t=d.useRef(e);return ur(()=>{t.current=e}),t}function ui(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:l,open:u}=e,[f,m]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=d.useState(r);br(p,r)||h(r);const[b,v]=d.useState(null),[_,y]=d.useState(null),w=d.useCallback(W=>{W!==C.current&&(C.current=W,v(W))},[]),x=d.useCallback(W=>{W!==S.current&&(S.current=W,y(W))},[]),k=s||b,N=a||_,C=d.useRef(null),S=d.useRef(null),E=d.useRef(f),D=l!=null,O=Jr(l),T=Jr(o),P=Jr(u),A=d.useCallback(()=>{if(!C.current||!S.current)return;const W={placement:t,strategy:n,middleware:p};T.current&&(W.platform=T.current),bm(C.current,S.current,W).then(G=>{const j={...G,isPositioned:P.current!==!1};I.current&&!br(E.current,j)&&(E.current=j,ba.flushSync(()=>{m(j)}))})},[p,t,n,T,P]);ur(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,m(W=>({...W,isPositioned:!1})))},[u]);const I=d.useRef(!1);ur(()=>(I.current=!0,()=>{I.current=!1}),[]),ur(()=>{if(k&&(C.current=k),N&&(S.current=N),k&&N){if(O.current)return O.current(k,N,A);A()}},[k,N,A,O,D]);const X=d.useMemo(()=>({reference:C,floating:S,setReference:w,setFloating:x}),[w,x]),R=d.useMemo(()=>({reference:k,floating:N}),[k,N]),q=d.useMemo(()=>{const W={position:n,left:0,top:0};if(!R.floating)return W;const G=Ws(R.floating,f.x),j=Ws(R.floating,f.y);return i?{...W,transform:"translate("+G+"px, "+j+"px)",...di(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:j}},[n,i,R.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:A,refs:X,elements:R,floatingStyles:q}),[f,A,X,R,q])}const xm=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ls({element:r.current,padding:o}).fn(n):{}:r?Ls({element:r,padding:o}).fn(n):{}}}},fi=(e,t)=>{const n=mm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Cm=(e,t)=>{const n=hm(e);return{name:n.name,fn:n.fn,options:[e,t]}},km=(e,t)=>({fn:_m(e).fn,options:[e,t]}),mi=(e,t)=>{const n=pm(e);return{name:n.name,fn:n.fn,options:[e,t]}},hi=(e,t)=>{const n=gm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nm=(e,t)=>{const n=vm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Sm=(e,t)=>{const n=xm(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Em="Arrow",pi=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return c.jsx(Ie.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});pi.displayName=Em;var jm=pi;function Mm(e){const[t,n]=d.useState(void 0);return Ot(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,i=u.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var zo="Popper",[gi,Dr]=Nr(zo),[Om,vi]=gi(zo),_i=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return c.jsx(Om,{scope:t,anchor:r,onAnchorChange:o,children:n})};_i.displayName=zo;var bi="PopperAnchor",yi=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=vi(bi,n),a=d.useRef(null),i=Ve(t,a),l=d.useRef(null);return d.useEffect(()=>{const u=l.current;l.current=r?.current||a.current,u!==l.current&&s.onAnchorChange(l.current)}),r?null:c.jsx(Ie.div,{...o,ref:i})});yi.displayName=bi;var Ho="PopperContent",[Dm,Pm]=gi(Ho),wi=d.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:p=!1,updatePositionStrategy:h="optimized",onPlaced:b,...v}=e,_=vi(Ho,n),[y,w]=d.useState(null),x=Ve(t,fe=>w(fe)),[k,N]=d.useState(null),C=Mm(k),S=C?.width??0,E=C?.height??0,D=r+(s!=="center"?"-"+s:""),O=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},T=Array.isArray(u)?u:[u],P=T.length>0,A={padding:O,boundary:T.filter(Tm),altBoundary:P},{refs:I,floatingStyles:X,placement:R,isPositioned:q,middlewareData:W}=ui({strategy:"fixed",placement:D,whileElementsMounted:(...fe)=>li(...fe,{animationFrame:h==="always"}),elements:{reference:_.anchor},middleware:[fi({mainAxis:o+E,alignmentAxis:a}),l&&Cm({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?km():void 0,...A}),l&&mi({...A}),hi({...A,apply:({elements:fe,rects:Me,availableWidth:se,availableHeight:$})=>{const{width:de,height:ke}=Me.reference,Oe=fe.floating.style;Oe.setProperty("--radix-popper-available-width",`${se}px`),Oe.setProperty("--radix-popper-available-height",`${$}px`),Oe.setProperty("--radix-popper-anchor-width",`${de}px`),Oe.setProperty("--radix-popper-anchor-height",`${ke}px`)}}),k&&Sm({element:k,padding:i}),Am({arrowWidth:S,arrowHeight:E}),p&&Nm({strategy:"referenceHidden",...A})]}),[G,j]=ki(R),K=rn(b);Ot(()=>{q&&K?.()},[q,K]);const ve=W.arrow?.x,V=W.arrow?.y,ne=W.arrow?.centerOffset!==0,[ee,re]=d.useState();return Ot(()=>{y&&re(window.getComputedStyle(y).zIndex)},[y]),c.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:q?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[W.transformOrigin?.x,W.transformOrigin?.y].join(" "),...W.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Dm,{scope:n,placedSide:G,onArrowChange:N,arrowX:ve,arrowY:V,shouldHideArrow:ne,children:c.jsx(Ie.div,{"data-side":G,"data-align":j,...v,ref:x,style:{...v.style,animation:q?void 0:"none"}})})})});wi.displayName=Ho;var xi="PopperArrow",Rm={top:"bottom",right:"left",bottom:"top",left:"right"},Ci=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Pm(xi,r),a=Rm[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(jm,{...o,ref:n,style:{...o.style,display:"block"}})})});Ci.displayName=xi;function Tm(e){return e!==null}var Am=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[u,f]=ki(n),m={start:"0%",center:"50%",end:"100%"}[f],p=(o.arrow?.x??0)+i/2,h=(o.arrow?.y??0)+l/2;let b="",v="";return u==="bottom"?(b=a?m:`${p}px`,v=`${-l}px`):u==="top"?(b=a?m:`${p}px`,v=`${r.floating.height+l}px`):u==="right"?(b=`${-l}px`,v=a?m:`${h}px`):u==="left"&&(b=`${r.floating.width+l}px`,v=a?m:`${h}px`),{data:{x:b,y:v}}}});function ki(e){const[t,n="center"]=e.split("-");return[t,n]}var Ni=_i,Yo=yi,Si=wi,Ei=Ci,Im="Portal",Pr=d.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=d.useState(!1);Ot(()=>s(!0),[]);const a=n||o&&globalThis?.document?.body;return a?Pn.createPortal(c.jsx(Ie.div,{...r,ref:t}),a):null});Pr.displayName=Im;function Lm(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var Tt=e=>{const{present:t,children:n}=e,r=Wm(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),s=Ve(r.ref,$m(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:s}):null};Tt.displayName="Presence";function Wm(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),s=d.useRef("none"),a=e?"mounted":"unmounted",[i,l]=Lm(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const u=tr(r.current);s.current=i==="mounted"?u:"none"},[i]),Ot(()=>{const u=r.current,f=o.current;if(f!==e){const p=s.current,h=tr(u);e?l("MOUNT"):h==="none"||u?.display==="none"?l("UNMOUNT"):l(f&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ot(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,m=h=>{const v=tr(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&v&&(l("ANIMATION_END"),!o.current)){const _=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=_)})}},p=h=>{h.target===t&&(s.current=tr(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:d.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function tr(e){return e?.animationName||"none"}function $m(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Fm=Symbol("radix.slottable");function Bm(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Fm,t}var zm=d[" useInsertionEffect ".trim().toString()]||Ot;function Vo({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=Hm({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const f=d.useRef(e!==void 0);d.useEffect(()=>{const m=f.current;m!==i&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,r])}const u=d.useCallback(f=>{if(i){const m=Ym(f)?f(e):f;m!==e&&a.current?.(m)}else s(f)},[i,e,s,a]);return[l,u]}function Hm({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),s=d.useRef(t);return zm(()=>{s.current=t},[t]),d.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function Ym(e){return typeof e=="function"}var Vm=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),qm="VisuallyHidden",ji=d.forwardRef((e,t)=>c.jsx(Ie.span,{...e,ref:t,style:{...Vm,...e.style}}));ji.displayName=qm;var Gm=ji,[Rr]=Nr("Tooltip",[Dr]),Tr=Dr(),Mi="TooltipProvider",Um=700,xo="tooltip.open",[Zm,qo]=Rr(Mi),Oi=e=>{const{__scopeTooltip:t,delayDuration:n=Um,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=d.useRef(!0),i=d.useRef(!1),l=d.useRef(0);return d.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(Zm,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:d.useCallback(u=>{i.current=u},[]),disableHoverableContent:o,children:s})};Oi.displayName=Mi;var En="Tooltip",[Xm,An]=Rr(En),Di=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:i}=e,l=qo(En,e.__scopeTooltip),u=Tr(t),[f,m]=d.useState(null),p=Nn(),h=d.useRef(0),b=a??l.disableHoverableContent,v=i??l.delayDuration,_=d.useRef(!1),[y,w]=Vo({prop:r,defaultProp:o??!1,onChange:S=>{S?(l.onOpen(),document.dispatchEvent(new CustomEvent(xo))):l.onClose(),s?.(S)},caller:En}),x=d.useMemo(()=>y?_.current?"delayed-open":"instant-open":"closed",[y]),k=d.useCallback(()=>{window.clearTimeout(h.current),h.current=0,_.current=!1,w(!0)},[w]),N=d.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),C=d.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{_.current=!0,w(!0),h.current=0},v)},[v,w]);return d.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),c.jsx(Ni,{...u,children:c.jsx(Xm,{scope:t,contentId:p,open:y,stateAttribute:x,trigger:f,onTriggerChange:m,onTriggerEnter:d.useCallback(()=>{l.isOpenDelayedRef.current?C():k()},[l.isOpenDelayedRef,C,k]),onTriggerLeave:d.useCallback(()=>{b?N():(window.clearTimeout(h.current),h.current=0)},[N,b]),onOpen:k,onClose:N,disableHoverableContent:b,children:n})})};Di.displayName=En;var Co="TooltipTrigger",Pi=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=An(Co,n),s=qo(Co,n),a=Tr(n),i=d.useRef(null),l=Ve(t,i,o.onTriggerChange),u=d.useRef(!1),f=d.useRef(!1),m=d.useCallback(()=>u.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),c.jsx(Yo,{asChild:!0,...a,children:c.jsx(Ie.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:je(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:je(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:je(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:je(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:je(e.onBlur,o.onClose),onClick:je(e.onClick,o.onClose)})})});Pi.displayName=Co;var Go="TooltipPortal",[Km,Qm]=Rr(Go,{forceMount:void 0}),Ri=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=An(Go,t);return c.jsx(Km,{scope:t,forceMount:n,children:c.jsx(Tt,{present:n||s.open,children:c.jsx(Pr,{asChild:!0,container:o,children:r})})})};Ri.displayName=Go;var sn="TooltipContent",Ti=d.forwardRef((e,t)=>{const n=Qm(sn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=An(sn,e.__scopeTooltip);return c.jsx(Tt,{present:r||a.open,children:a.disableHoverableContent?c.jsx(Ai,{side:o,...s,ref:t}):c.jsx(Jm,{side:o,...s,ref:t})})}),Jm=d.forwardRef((e,t)=>{const n=An(sn,e.__scopeTooltip),r=qo(sn,e.__scopeTooltip),o=d.useRef(null),s=Ve(t,o),[a,i]=d.useState(null),{trigger:l,onClose:u}=n,f=o.current,{onPointerInTransitChange:m}=r,p=d.useCallback(()=>{i(null),m(!1)},[m]),h=d.useCallback((b,v)=>{const _=b.currentTarget,y={x:b.clientX,y:b.clientY},w=o1(y,_.getBoundingClientRect()),x=s1(y,w),k=a1(v.getBoundingClientRect()),N=c1([...x,...k]);i(N),m(!0)},[m]);return d.useEffect(()=>()=>p(),[p]),d.useEffect(()=>{if(l&&f){const b=_=>h(_,f),v=_=>h(_,l);return l.addEventListener("pointerleave",b),f.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",v)}}},[l,f,h,p]),d.useEffect(()=>{if(a){const b=v=>{const _=v.target,y={x:v.clientX,y:v.clientY},w=l?.contains(_)||f?.contains(_),x=!i1(y,a);w?p():x&&(p(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,f,a,u,p]),c.jsx(Ai,{...e,ref:s})}),[e1,t1]=Rr(En,{isInside:!1}),n1=Bm("TooltipContent"),Ai=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,l=An(sn,n),u=Tr(n),{onClose:f}=l;return d.useEffect(()=>(document.addEventListener(xo,f),()=>document.removeEventListener(xo,f)),[f]),d.useEffect(()=>{if(l.trigger){const m=p=>{p.target?.contains(l.trigger)&&f()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[l.trigger,f]),c.jsx(Sr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:m=>m.preventDefault(),onDismiss:f,children:c.jsxs(Si,{"data-state":l.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(n1,{children:r}),c.jsx(e1,{scope:n,isInside:!0,children:c.jsx(Gm,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Ti.displayName=sn;var Ii="TooltipArrow",r1=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Tr(n);return t1(Ii,n).isInside?null:c.jsx(Ei,{...o,...r,ref:t})});r1.displayName=Ii;function o1(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function s1(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function a1(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function i1(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],l=t[a],u=i.x,f=i.y,m=l.x,p=l.y;f>r!=p>r&&n<(m-u)*(r-f)/(p-f)+u&&(o=!o)}return o}function c1(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),l1(t)}function l1(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var d1=Oi,u1=Di,f1=Pi,m1=Ri,Li=Ti;const h1=d1,p1=u1,g1=f1,Wi=d.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(m1,{children:c.jsx(Li,{ref:r,sideOffset:t,className:J("z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-tooltip-content-transform-origin)",e),...n})}));Wi.displayName=Li.displayName;const v1="_anchor_rpda1_1",_1="_tooltip_rpda1_6",$s={anchor:v1,tooltip:_1},Fs=e=>typeof e=="string"?document.getElementById(e):"current"in e?e.current:e,b1=(e="top")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},Bs=(e,t)=>typeof e=="number"?e:e?.[t]??0,Uo=({children:e,target:t,placement:n="top",popperClassName:r,isOpen:o,toggle:s,delay:a,autohide:i=!0})=>{const[l,u]=g.useState(!1),[f,m]=g.useState(null),p=o??l,{side:h,align:b}=g.useMemo(()=>b1(n),[n]),v=g.useCallback(()=>{const y=Fs(t);m(y?.getBoundingClientRect()??null)},[t]),_=g.useCallback(y=>{o===void 0&&u(y),s?.()},[o,s]);return g.useEffect(()=>{let y=null,w=null,x=null,k=null;const N=()=>{x&&clearTimeout(x),k&&clearTimeout(k),x=null,k=null},C=()=>{N(),v(),x=setTimeout(()=>_(!0),Bs(a,"show"))},S=()=>{i&&(N(),k=setTimeout(()=>_(!1),Bs(a,"hide")))},E=()=>{y&&(y.removeEventListener("mouseenter",C),y.removeEventListener("mouseleave",S),y.removeEventListener("focus",C),y.removeEventListener("blur",S),window.removeEventListener("scroll",v,!0),window.removeEventListener("resize",v),y=null)},D=A=>{y=A,v(),A.addEventListener("mouseenter",C),A.addEventListener("mouseleave",S),A.addEventListener("focus",C),A.addEventListener("blur",S),window.addEventListener("scroll",v,!0),window.addEventListener("resize",v)};let O=0;const T=60,P=()=>{const A=Fs(t);if(A){D(A);return}O>=T||(O+=1,w=requestAnimationFrame(P))};return P(),()=>{w!==null&&cancelAnimationFrame(w),N(),E()}},[i,a,_,t,v]),f?c.jsx(h1,{delayDuration:0,children:c.jsxs(p1,{open:p,onOpenChange:_,children:[Xa(c.jsx(g1,{asChild:!0,children:c.jsx("span",{className:$s.anchor,style:{left:f.left,top:f.top,width:f.width,height:f.height}})})),c.jsx(Wi,{side:h,align:b,className:M($s.tooltip,r),children:e})]})}):null};var eo=0;function $i(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??zs()),document.body.insertAdjacentElement("beforeend",e[1]??zs()),eo++,()=>{eo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),eo--}},[])}function zs(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var to="focusScope.autoFocusOnMount",no="focusScope.autoFocusOnUnmount",Hs={bubbles:!1,cancelable:!0},y1="FocusScope",Zo=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,l]=d.useState(null),u=rn(o),f=rn(s),m=d.useRef(null),p=Ve(t,v=>l(v)),h=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let v=function(x){if(h.paused||!i)return;const k=x.target;i.contains(k)?m.current=k:Mt(m.current,{select:!0})},_=function(x){if(h.paused||!i)return;const k=x.relatedTarget;k!==null&&(i.contains(k)||Mt(m.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const N of x)N.removedNodes.length>0&&Mt(i)};document.addEventListener("focusin",v),document.addEventListener("focusout",_);const w=new MutationObserver(y);return i&&w.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",_),w.disconnect()}}},[r,i,h.paused]),d.useEffect(()=>{if(i){Vs.add(h);const v=document.activeElement;if(!i.contains(v)){const y=new CustomEvent(to,Hs);i.addEventListener(to,u),i.dispatchEvent(y),y.defaultPrevented||(w1(S1(Fi(i)),{select:!0}),document.activeElement===v&&Mt(i))}return()=>{i.removeEventListener(to,u),setTimeout(()=>{const y=new CustomEvent(no,Hs);i.addEventListener(no,f),i.dispatchEvent(y),y.defaultPrevented||Mt(v??document.body,{select:!0}),i.removeEventListener(no,f),Vs.remove(h)},0)}}},[i,u,f,h]);const b=d.useCallback(v=>{if(!n&&!r||h.paused)return;const _=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(_&&y){const w=v.currentTarget,[x,k]=x1(w);x&&k?!v.shiftKey&&y===k?(v.preventDefault(),n&&Mt(x,{select:!0})):v.shiftKey&&y===x&&(v.preventDefault(),n&&Mt(k,{select:!0})):y===w&&v.preventDefault()}},[n,r,h.paused]);return c.jsx(Ie.div,{tabIndex:-1,...a,ref:p,onKeyDown:b})});Zo.displayName=y1;function w1(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Mt(r,{select:t}),document.activeElement!==n)return}function x1(e){const t=Fi(e),n=Ys(t,e),r=Ys(t.reverse(),e);return[n,r]}function Fi(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ys(e,t){for(const n of e)if(!C1(n,{upTo:t}))return n}function C1(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function k1(e){return e instanceof HTMLInputElement&&"select"in e}function Mt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&k1(e)&&t&&e.select()}}var Vs=N1();function N1(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=qs(e,t),e.unshift(t)},remove(t){e=qs(e,t),e[0]?.resume()}}}function qs(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function S1(e){return e.filter(t=>t.tagName!=="A")}function E1(e){const t=j1(e),n=d.forwardRef((r,o)=>{const{children:s,...a}=r,i=d.Children.toArray(s),l=i.find(O1);if(l){const u=l.props.children,f=i.map(m=>m===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:m);return c.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function j1(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const a=P1(o),i=D1(s,o.props);return o.type!==d.Fragment&&(i.ref=r?Rn(r,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var M1=Symbol("radix.slottable");function O1(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===M1}function D1(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function P1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var R1=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ut=new WeakMap,nr=new WeakMap,rr={},ro=0,Bi=function(e){return e&&(e.host||Bi(e.parentNode))},T1=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Bi(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},A1=function(e,t,n,r){var o=T1(t,Array.isArray(e)?e:[e]);rr[n]||(rr[n]=new WeakMap);var s=rr[n],a=[],i=new Set,l=new Set(o),u=function(m){!m||i.has(m)||(i.add(m),u(m.parentNode))};o.forEach(u);var f=function(m){!m||l.has(m)||Array.prototype.forEach.call(m.children,function(p){if(i.has(p))f(p);else try{var h=p.getAttribute(r),b=h!==null&&h!=="false",v=(Ut.get(p)||0)+1,_=(s.get(p)||0)+1;Ut.set(p,v),s.set(p,_),a.push(p),v===1&&b&&nr.set(p,!0),_===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",p,y)}})};return f(t),i.clear(),ro++,function(){a.forEach(function(m){var p=Ut.get(m)-1,h=s.get(m)-1;Ut.set(m,p),s.set(m,h),p||(nr.has(m)||m.removeAttribute(r),nr.delete(m)),h||m.removeAttribute(n)}),ro--,ro||(Ut=new WeakMap,Ut=new WeakMap,nr=new WeakMap,rr={})}},zi=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=R1(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),A1(r,o,n,"aria-hidden")):function(){return null}},st=function(){return st=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},st.apply(this,arguments)};function Hi(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function I1(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var fr="right-scroll-bar-position",mr="width-before-scroll-bar",L1="with-scroll-bars-hidden",W1="--removed-body-scroll-bar-size";function oo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function $1(e,t){var n=g.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var F1=typeof window<"u"?d.useLayoutEffect:d.useEffect,Gs=new WeakMap;function B1(e,t){var n=$1(null,function(r){return e.forEach(function(o){return oo(o,r)})});return F1(function(){var r=Gs.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(i){s.has(i)||oo(i,null)}),s.forEach(function(i){o.has(i)||oo(i,a)})}Gs.set(n,e)},[e]),n}function z1(e){return e}function H1(e,t){t===void 0&&(t=z1);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var l=function(){var f=a;a=[],f.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return o}function Y1(e){e===void 0&&(e={});var t=H1(null);return t.options=st({async:!0,ssr:!1},e),t}var Yi=function(e){var t=e.sideCar,n=Hi(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,st({},n))};Yi.isSideCarExport=!0;function V1(e,t){return e.useMedium(t),Yi}var Vi=Y1(),so=function(){},Ar=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:so,onWheelCapture:so,onTouchMoveCapture:so}),o=r[0],s=r[1],a=e.forwardProps,i=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,m=e.shards,p=e.sideCar,h=e.noRelative,b=e.noIsolation,v=e.inert,_=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,x=e.gapMode,k=Hi(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=p,C=B1([n,t]),S=st(st({},k),o);return d.createElement(d.Fragment,null,f&&d.createElement(N,{sideCar:Vi,removeScrollBar:u,shards:m,noRelative:h,noIsolation:b,inert:v,setCallbacks:s,allowPinchZoom:!!_,lockRef:n,gapMode:x}),a?d.cloneElement(d.Children.only(i),st(st({},S),{ref:C})):d.createElement(w,st({},S,{className:l,ref:C}),i))});Ar.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ar.classNames={fullWidth:mr,zeroRight:fr};var q1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function G1(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=q1();return t&&e.setAttribute("nonce",t),e}function U1(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Z1(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var X1=function(){var e=0,t=null;return{add:function(n){e==0&&(t=G1())&&(U1(t,n),Z1(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},K1=function(){var e=X1();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},qi=function(){var e=K1(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Q1={left:0,top:0,right:0,gap:0},ao=function(e){return parseInt(e||"",10)||0},J1=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ao(n),ao(r),ao(o)]},eh=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Q1;var t=J1(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},th=qi(),tn="data-scroll-locked",nh=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
2
- .`.concat(L1,` {
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),c=require("react/jsx-runtime"),Rn=require("react-dom");function ba(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const d=ba(g),ya=ba(Rn),Ol=e=>d.createElement("svg",{width:17,height:17,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M0.5 8.50634L8.5 0.5L16.5 8.49975",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2.5 6.58643V16.4994H14.5V6.56641",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M6.5 16.4998V10.5H10.5",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),Dl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.09237 4.75028C8.31363 4.75028 8.49345 4.92792 8.49345 5.1465V8.80763C8.49345 9.02622 8.31363 9.2032 8.09237 9.2032H5.6565C5.43524 9.2032 5.2561 9.02622 5.2561 8.80763C5.2561 8.58839 5.43524 8.41141 5.6565 8.41141H7.6913V5.1465C7.6913 4.92792 7.87111 4.75028 8.09237 4.75028ZM1 8C1 11.8599 4.17853 15 8.08502 15C11.4053 15 14.2442 12.7712 14.9895 9.58028C15.0397 9.36763 14.9047 9.155 14.6887 9.10547C14.4775 9.05859 14.2582 9.18933 14.2074 9.40264C13.547 12.2317 11.0296 14.2075 8.08502 14.2075C4.62038 14.2075 1.80149 11.4227 1.80149 8C1.80149 4.5766 4.62038 1.79245 8.08502 1.79245C10.5296 1.79245 12.7502 3.20962 13.7756 5.36839H11.3912C11.17 5.36839 10.9901 5.54537 10.9901 5.76396C10.9901 5.98254 11.17 6.16019 11.3912 6.16019H14.424C14.6453 6.16019 14.8244 5.98254 14.8244 5.76396V2.76849C14.8244 2.54991 14.6453 2.37226 14.424 2.37226C14.2028 2.37226 14.023 2.54991 14.023 2.76849V4.18236C12.7335 2.23226 10.5062 1 8.08502 1C4.17853 1 1 4.14009 1 8Z",fill:"currentColor"})),Rl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5774)"},d.createElement("path",{d:"M8.24567 14.0242H0.666672V0.666992H6.60323L10.5609 4.6247V9.57183",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M6.60417 0.666992V4.6247H10.5619",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M12.638 12.54L13.8254 13.7405L15.0127 12.54",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.07781 12.5403L7.89047 11.3398L6.70312 12.5403",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M12.2564 15.1521C11.7 15.4559 11.0599 15.5703 10.4328 15.4781C9.80562 15.3859 9.22551 15.092 8.78019 14.6409C8.38611 14.2414 8.11251 13.7391 7.99061 13.1914C7.8687 12.6437 7.90348 12.0728 8.09094 11.5439",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.45833 9.9274C10.0147 9.62358 10.6548 9.50915 11.2819 9.60138C11.9091 9.69361 12.4892 9.9875 12.9345 10.4386C13.3288 10.8379 13.6028 11.34 13.7252 11.8877C13.8477 12.4353 13.8138 13.0063 13.6272 13.5355",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5774"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Pl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5680)"},d.createElement("path",{d:"M13.9999 6.31067V3.52381H5.79479V2H0.666595V12.2264C0.666595 12.3432 0.713287 12.4551 0.796637 12.5377C0.879986 12.6202 0.993098 12.6666 1.11097 12.6666H8.35888",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M14.2521 6L9.0879 11.1766L8 14L10.8358 12.9333L16 7.75667L14.2521 6Z",stroke:"currentColor",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.33339 11.333L10.6667 12.6663",stroke:"currentColor",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5680"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Tl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M5.05584 2.58008V5.33656C4.3465 5.33656 4.28125 6.22012 4.28125 6.4379C4.28125 6.65568 4.44608 7.68235 5.15853 7.68235C5.39614 8.66258 5.9937 9.51765 6.83242 10.0779",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M9.6302 10.0628C10.4691 9.50283 11.0666 8.64767 11.3039 7.66731C12.0102 7.66731 12.1751 6.65932 12.1751 6.43843C12.1751 6.21754 12.2964 5.34953 11.5933 5.33709V2.62109",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M6.37643 9.79102V10.4669C6.37643 10.9336 6.60665 11.6118 4.04309 12.1003C1.33332 12.6167 1.33333 14.6669 1.33333 14.6669H15.3333C15.3333 14.6669 15.3334 12.6603 12.4338 12.1003C9.94494 11.618 10.1005 10.9336 10.1005 10.4669V9.79102",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M4.59114 11.9824L8.32766 14.6673L12.061 12.0228",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M8.3282 3.00033L1.79167 1.60033L8.3282 0.666992L14.8615 1.60033L8.3282 3.00033Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M5.05725 3.93359L8.32711 4.40026L11.5938 3.93359",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2.25781 1.69336V7.20001",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),Al=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M6.9329 14H2V9.06713H6.9329V14Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M6.9329 6.60059H2V1.66765H6.9329V6.60059Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M14.3343 14H9.40144V9.06713H14.3343V14Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M14.3343 6.60059H9.40144V1.66765H14.3343V6.60059Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),Il=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5733)"},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.2984 6.64286C15.2984 10.7453 8.14844 15 8.14844 15C8.14844 15 0.998444 10.7453 0.998444 6.64286C0.998444 6.53654 0.998444 6.2315 0.998444 6.17857C0.998444 3.87061 2.7989 2 5.02032 2C6.28408 2 7.4111 2.60682 8.14755 3.55396C8.88489 2.60682 10.0124 2 11.2766 2C13.498 2 15.2984 3.87061 15.2984 6.17857C15.2984 6.23104 15.2984 6.53607 15.2984 6.64286Z",stroke:"currentColor"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5733"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Ll=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5852)"},d.createElement("path",{d:"M4.81389 5.81154C4.79445 6.087 5.00199 6.32606 5.27745 6.3455C5.55291 6.36494 5.79197 6.1574 5.81141 5.88194L5.31265 5.84674L4.81389 5.81154ZM10.6346 4.74381L11.1154 4.6067V4.6067L10.6346 4.74381ZM8.27563 9.0822L7.96537 8.69011L8.27563 9.0822ZM7.09347 11.3614C7.09347 11.6376 7.31733 11.8614 7.59347 11.8614C7.86961 11.8614 8.09347 11.6376 8.09347 11.3614H7.59347H7.09347ZM5.31265 5.84674L5.81141 5.88194C5.90808 4.51228 6.8506 3.80991 7.87427 3.67837C8.94608 3.54065 9.91206 4.03342 10.1537 4.88092L10.6346 4.74381L11.1154 4.6067C10.6897 3.114 9.11102 2.51123 7.74682 2.68653C6.33448 2.868 4.94971 3.88719 4.81389 5.81154L5.31265 5.84674ZM10.6346 4.74381L10.1537 4.88092C10.2697 5.28772 10.347 5.69413 10.1318 6.24186C9.9049 6.81911 9.32895 7.61111 7.96537 8.69011L8.27563 9.0822L8.58589 9.47429C10.01 8.34742 10.7424 7.42216 11.0625 6.60764C11.3942 5.76361 11.2571 5.10376 11.1154 4.6067L10.6346 4.74381ZM8.27563 9.0822L7.96537 8.69011C7.0119 9.44458 7.09347 10.6137 7.09347 11.3614H7.59347H8.09347C8.09347 10.4547 8.08561 9.87017 8.58589 9.47429L8.27563 9.0822Z",fill:"currentColor"}),d.createElement("circle",{cx:7.66097,cy:13.1607,r:.431202,fill:"currentColor"}),d.createElement("path",{d:"M8.17085 15.3418C12.1312 15.3418 15.3418 12.1313 15.3418 8.17095C15.3418 4.21057 12.1312 1 8.17085 1C4.21047 1 1 4.21057 1 8.17095C1 12.1313 4.21047 15.3418 8.17085 15.3418Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5852"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Wl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{fill:"none",d:"m38.46 11.54l-5.85-5.9a3.9 3.9 0 0 0-2.76-1.14h-19.5a2 2 0 0 0-1.95 2v35.1a2 2 0 0 0 1.95 2h27.3a2 2 0 0 0 2-2V14.3a3.9 3.9 0 0 0-1.19-2.76m-25.08 3.15H29.7m-16.32 7.03h21.24m-21.24 7.03h19.5m-19.5 7.03h12.68"})),$l=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M5.26562 6.60009V3.33337C5.26562 2.71452 5.51145 2.12104 5.94904 1.68345C6.38663 1.24586 6.98015 1 7.599 1C8.21784 1 8.81132 1.24586 9.24891 1.68345C9.68651 2.12104 9.93237 2.71452 9.93237 3.33337V6.60009",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M13.2002 5.66699H2V15.0005H13.2002V5.66699Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),Fl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5666)"},d.createElement("path",{d:"M12.3924 13.6144L11.0069 7.30241L13.701 4.60825C14.8557 3.45361 15.2406 1.91409 14.8557 1.14433C14.0859 0.75945 12.5464 1.14433 11.3918 2.29897L8.69759 4.99313L2.38557 3.60756C2.00069 3.53058 1.69278 3.68454 1.53883 3.99244L1.3079 4.37732C1.15395 4.7622 1.23093 5.14708 1.53883 5.37801L5.61856 8.07217L4.07904 10.3814H1.76976L1 11.1512L3.30928 12.6907L4.8488 15L5.61856 14.2302V11.921L7.92784 10.3814L10.622 14.4612C10.8529 14.7691 11.2378 14.846 11.6227 14.6921L12.0076 14.5381C12.3155 14.3072 12.4694 13.9993 12.3924 13.6144Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5666"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Bl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5649)"},d.createElement("path",{d:"M11.7265 12.0262C9.54829 11.6097 9.54246 10.9341 9.54246 10.4973V9.8042C9.97361 9.38644 10.3133 8.88369 10.5399 8.32776C10.7665 7.77182 10.875 7.17487 10.8587 6.57475V4.478C10.8587 2.20657 9.24835 1.33301 7.80104 1.33301C6.35374 1.33301 4.74336 2.20657 4.74336 4.478V6.57475C4.72731 7.17345 4.83548 7.76895 5.06102 8.32378C5.28656 8.8786 5.62458 9.38067 6.0538 9.79837V10.4973C6.0538 10.9341 6.0538 11.6301 3.86974 12.0262C3.25845 12.135 2.69243 12.4205 2.24165 12.8475C1.79087 13.2744 1.4751 13.8241 1.33333 14.4286H14.2601C14.1154 13.826 13.7992 13.2783 13.3495 12.8519C12.8998 12.4254 12.336 12.1386 11.7265 12.0262V12.0262Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5649"},d.createElement("rect",{width:16,height:16,fill:"white"})))),zl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5794)"},d.createElement("path",{d:"M9.12936 11.9944H1.33333C1.33333 11.9944 1.33335 10.4405 3.42691 10.0372C5.22691 9.69028 5.22975 9.14763 5.22975 8.79178V8.43298C4.77582 8.01292 4.45171 7.47165 4.29568 6.87318V6.87318C3.74708 6.87318 3.6166 5.7463 3.6166 5.58024C3.6166 5.41417 3.59592 4.73811 4.15045 4.73811C3.79164 3.31472 3.85386 2.00989 4.83837 2.00989C7.21069 0.370026 10.3629 1.8765 9.20046 4.73811C9.75795 4.73811 9.74011 5.41121 9.74011 5.58024C9.74011 5.74926 9.61273 6.87318 9.06116 6.87318C8.90437 7.4744 8.57795 8.0179 8.12101 8.43892V8.79475C8.12101 9.03791 8.05281 9.51827 9.01063 9.86522",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M11.1147 13.3319C12.343 13.3319 13.3387 12.3361 13.3387 11.1078C13.3387 9.87953 12.343 8.88379 11.1147 8.88379C9.88636 8.88379 8.89062 9.87953 8.89062 11.1078C8.89062 12.3361 9.88636 13.3319 11.1147 13.3319Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M12.6849 12.6797L14.6718 14.6666",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5794"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Hl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_27648_5697)"},d.createElement("path",{d:"M11.4479 1.33301H13.3353V3.22339",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M2.66681 7.55537L6.66986 3.99973L9.33659 5.3331L13.3367 1.33301",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M12.4479 14.6664V5.77734H14.2257V14.6664",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M8.89062 14.6662V10.2246H10.6684V14.6662",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M5.33333 14.6665V8.8916H7.11411V14.6665",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M1.77864 14.6667V12.0029H3.55646V14.6667",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M14.6699 14.667H1.33333",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_27648_5697"},d.createElement("rect",{width:16,height:16,fill:"white"})))),Yl=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M4.93759 11.5H1.65C1.47761 11.5 1.31233 11.4285 1.19043 11.3012C1.06853 11.1739 1 11.0014 1 10.8214V2.67857C1 2.4986 1.06853 2.32598 1.19043 2.19873C1.31233 2.07147 1.47761 2 1.65 2H13.35C13.5224 2 13.6877 2.07147 13.8096 2.19873C13.9315 2.32598 14 2.4986 14 2.67857",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M13.9996 10.5448C14.0057 10.7866 13.9466 11.0252 13.8291 11.2326C13.7117 11.44 13.5407 11.6076 13.3365 11.7156L5.60035 14.9065C4.93136 15.2187 4.71622 14.6817 4.71622 14.2821V6.32045C4.70283 6.07729 4.75896 5.83551 4.87725 5.62665C4.99553 5.41778 5.17049 5.25154 5.37932 5.14963L12.8827 2.05555C13.3748 1.86822 13.9967 2.18353 13.9967 2.57068L13.9996 10.5448Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M7.5 10.5C8.01283 10.5 8.42857 10.0523 8.42857 9.5C8.42857 8.94772 8.01283 8.5 7.5 8.5C6.98716 8.5 6.57143 8.94772 6.57143 9.5C6.57143 10.0523 6.98716 10.5 7.5 10.5Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M3.32143 4.5H7.96428",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M3.32143 7H4.71428",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),Vl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M472 96h-88V40h-32v56H160V40h-32v56H40a24.03 24.03 0 0 0-24 24v336a24.03 24.03 0 0 0 24 24h432a24.03 24.03 0 0 0 24-24V120a24.03 24.03 0 0 0-24-24m-8 352H48V128h80v40h32v-40h192v40h32v-40h80Z"}),d.createElement("path",{d:"M112 224h32v32h-32zm88 0h32v32h-32zm80 0h32v32h-32zm88 0h32v32h-32zm-256 72h32v32h-32zm88 0h32v32h-32zm80 0h32v32h-32zm88 0h32v32h-32zm-256 72h32v32h-32zm88 0h32v32h-32zm80 0h32v32h-32zm88 0h32v32h-32z"})),ql=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M8 7.5A1.5 1.5 0 0 1 9.5 6h12A1.5 1.5 0 0 1 23 7.5v3a1.5 1.5 0 0 1-1.5 1.5h-12A1.5 1.5 0 0 1 8 10.5zm2 .5v2h11V8zM4 5.25A3.25 3.25 0 0 1 7.25 2h16.5A3.25 3.25 0 0 1 27 5.25v21.5A3.25 3.25 0 0 1 23.75 30H7.25A3.25 3.25 0 0 1 4 26.75zM7.25 4C6.56 4 6 4.56 6 5.25v21.5c0 .69.56 1.25 1.25 1.25h16.5c.69 0 1.25-.56 1.25-1.25V5.25C25 4.56 24.44 4 23.75 4zm22 4H28v4h1.25a.75.75 0 0 0 .75-.75v-2.5a.75.75 0 0 0-.75-.75M28 14h1.25a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-.75.75H28zm1.25 6H28v4h1.25a.75.75 0 0 0 .75-.75v-2.5a.75.75 0 0 0-.75-.75"})),Gl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8M305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 0 0-11.3 0L266.3 586.7a8.03 8.03 0 0 0 0 11.3z"})),Ul=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M9.5 1A1.5 1.5 0 0 0 8 2.5v2a1.5 1.5 0 0 0 1 1.414V7a.5.5 0 0 0 .82.384L11.48 6h2.02A1.5 1.5 0 0 0 15 4.5v-2A1.5 1.5 0 0 0 13.5 1zM9 2.5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-2.2a.5.5 0 0 0-.32.116l-.98.816V5.5a.5.5 0 0 0-.5-.5a.5.5 0 0 1-.5-.5zM3 6a2 2 0 1 1 4 0a2 2 0 0 1-4 0m2-1a1 1 0 1 0 0 2a1 1 0 0 0 0-2M2.5 9h5A1.5 1.5 0 0 1 9 10.5c0 1.116-.459 2.01-1.212 2.615C7.047 13.71 6.053 14 5 14s-2.047-.29-2.788-.885C1.46 12.51 1 11.616 1 10.5A1.5 1.5 0 0 1 2.5 9m5 1h-5a.5.5 0 0 0-.5.5c0 .817.325 1.423.838 1.835C3.364 12.757 4.12 13 5 13s1.636-.243 2.162-.665C7.675 11.923 8 11.317 8 10.5a.5.5 0 0 0-.5-.5"})),Zl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M1536 640h-512V512h512zm-512 384h512v128h-512zm131 896l128 128H256V0h1536v1283l-128 128V128H384v1792zM941 429L704 666L531 493l90-90l83 83l147-147zm0 512l-237 237l-173-173l90-90l83 83l147-147zm-237 569l147-147l90 90l-237 237l-173-173l90-90zm1325-57l-557 558l-269-270l90-90l179 178l467-466z"})),Xl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M20.039 4.751a1 1 0 0 0 1.922.551l.827-2.884a1 1 0 1 0-1.922-.55zm8.668-1.458a1 1 0 0 1 0 1.414l-3 3a1 1 0 1 1-1.414-1.414l3-3a1 1 0 0 1 1.414 0M26 11.002a1 1 0 0 1 1-1h3a1 1 0 0 1 0 2h-3a1 1 0 0 1-1-1M11.956 5.659a3 3 0 0 1 4.805-.78l10.36 10.36a3 3 0 0 1-.78 4.804l-4.749 2.375a5.5 5.5 0 0 1-9.813 4.906l-2.717 1.359A3 3 0 0 1 5.6 28.12L3.88 26.4a3 3 0 0 1-.562-3.463zm1.62 20.767a3.5 3.5 0 0 0 6.218-3.109zm1.77-20.133a1 1 0 0 0-1.6.26l-8.64 17.279a1 1 0 0 0 .187 1.154l1.72 1.72a1 1 0 0 0 1.155.188l17.279-8.64a1 1 0 0 0 .26-1.601z"})),Kl=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:19,height:19,fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{fill:"none",d:"M17 17a2.5 2.5 0 1 1 0-5a2.5 2.5 0 0 1 0 5m0 0a4.5 4.5 0 0 1 4.5 4.5M17 17a4.5 4.5 0 0 0-4.5 4.5M7 7.5a2.5 2.5 0 1 1 0-5a2.5 2.5 0 0 1 0 5m0 0a4.5 4.5 0 0 1 4.5 4.5M7 7.5A4.5 4.5 0 0 0 2.5 12m1 3.5c0 2.764 2.236 5 5 5l-.5-2m10.5-10c0-2.764-2.236-5-5-5l.5 2"})),Ql=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M296 256c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm192 200v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8m-48 396H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8m104.1-115.6c1.8-34.5 16.2-66.8 40.8-91.4c26.2-26.2 62-41 99.1-41c37.4 0 72.6 14.6 99.1 41c3.2 3.2 6.3 6.6 9.2 10.1L769.2 673a8 8 0 0 0 3 14.1l93.3 22.5c5 1.2 9.8-2.6 9.9-7.7l.6-95.4a8 8 0 0 0-12.9-6.4l-20.3 15.8C805.4 569.6 748.1 540 684 540c-109.9 0-199.6 86.9-204 195.7c-.2 4.5 3.5 8.3 8 8.3h48.1c4.3 0 7.8-3.3 8-7.6M880 744h-48.1c-4.3 0-7.8 3.3-8 7.6c-1.8 34.5-16.2 66.8-40.8 91.4c-26.2 26.2-62 41-99.1 41c-37.4 0-72.6-14.6-99.1-41c-3.2-3.2-6.3-6.6-9.2-10.1l23.1-17.9a8 8 0 0 0-3-14.1l-93.3-22.5c-5-1.2-9.8 2.6-9.9 7.7l-.6 95.4a8 8 0 0 0 12.9 6.4l20.3-15.8C562.6 918.4 619.9 948 684 948c109.9 0 199.6-86.9 204-195.7c.2-4.5-3.5-8.3-8-8.3"})),wa=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40m-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40"}),d.createElement("path",{d:"M894 345c-48.1-66-115.3-110.1-189-130v.1c-17.1-19-36.4-36.5-58-52.1c-163.7-119-393.5-82.7-513 81c-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4c5.3 16.9 23.3 26.2 40.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6c17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408M323 735l-12-5l-99 31l-1-104l-8-9c-84.6-103.2-90.2-251.9-11-361c96.4-132.2 281.2-161.4 413-66c132.2 96.1 161.5 280.6 66 412c-80.1 109.9-223.5 150.5-348 102m505-17l-8 10l1 104l-98-33l-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1C613.7 788.2 680.7 742.2 729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62c72.6 99.6 68.5 235.2-8 330"}),d.createElement("path",{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40"})),xr=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M6.5433 12.0867C9.6048 12.0867 12.0867 9.60488 12.0867 6.54338C12.0867 3.48188 9.6048 1 6.5433 1C3.4818 1 1 3.48188 1 6.54338C1 9.60488 3.4818 12.0867 6.5433 12.0867Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M10.4727 10.4707L15.9994 16.0007",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),Jl=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M19 12.5H6M19 12.5L14.3333 8M19 12.5L14.3333 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),dt=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M17.2929 9.29289C17.6834 8.90237 18.3166 8.90237 18.7071 9.29289C19.0976 9.68342 19.0976 10.3166 18.7071 10.7071L12.7071 16.7071C12.3285 17.0857 11.7189 17.0989 11.3243 16.7372L5.32428 11.2372C4.91716 10.864 4.88965 10.2314 5.26285 9.82427C5.63604 9.41715 6.26861 9.38965 6.67573 9.76284L11.9699 14.6159L17.2929 9.29289Z",fill:"currentColor"})),ed=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M17.2929 9.29289C17.6834 8.90237 18.3166 8.90237 18.7071 9.29289C19.0976 9.68342 19.0976 10.3166 18.7071 10.7071L12.7071 16.7071C12.3285 17.0857 11.7189 17.0989 11.3243 16.7372L5.32428 11.2372C4.91716 10.864 4.88965 10.2314 5.26285 9.82427C5.63604 9.41715 6.26861 9.38965 6.67573 9.76284L11.9699 14.6159L17.2929 9.29289Z",fill:"rgba(0, 109, 240, 0.8)"})),ct=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M13 3L8 8M3 13L8 8M8 8L3 3L13 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})),td=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{width:24,height:24,rx:12,fill:"#FFEEEE"}),d.createElement("path",{d:"M7.5 7.5L16.5 16.5M7.5 16.5L16.5 7.5",stroke:"#D72D40",strokeWidth:1.4,strokeLinecap:"round"})),nd=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{width:24,height:24,rx:12,fill:"#E0F4F0"}),d.createElement("path",{d:"M9.89997 17C9.7143 17 9.53632 16.9248 9.40507 16.7909L5.20502 12.505C4.93166 12.226 4.93166 11.7739 5.20502 11.495C5.47837 11.216 5.92165 11.216 6.19483 11.495L9.89997 15.2757L17.8052 7.2092C18.0785 6.93027 18.5218 6.93027 18.795 7.2092C19.0683 7.48813 19.0683 7.94045 18.795 8.21939L10.3949 16.7909C10.2636 16.9248 10.0857 17 9.89997 17Z",fill:"#00A582"})),rd=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{width:24,height:24,rx:12,fill:"#E0F1FF"}),d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.1056 8.28604C12.3584 8.28604 12.5639 8.48905 12.5639 8.73886V12.923C12.5639 13.1728 12.3584 13.3751 12.1056 13.3751H9.32172C9.06885 13.3751 8.86411 13.1728 8.86411 12.923C8.86411 12.6724 9.06885 12.4702 9.32172 12.4702H11.6472V8.73886C11.6472 8.48905 11.8527 8.28604 12.1056 8.28604ZM4 12C4 16.4113 7.63261 20 12.0972 20C15.8917 20 19.1362 17.4528 19.988 13.806C20.0453 13.563 19.891 13.32 19.6443 13.2634C19.4029 13.2098 19.1523 13.3592 19.0942 13.603C18.3394 16.8362 15.4624 19.0943 12.0972 19.0943C8.13758 19.0943 4.91599 15.9117 4.91599 12C4.91599 8.08754 8.13758 4.90566 12.0972 4.90566C14.8909 4.90566 17.4288 6.52528 18.6007 8.99245H15.8757C15.6228 8.99245 15.4173 9.19471 15.4173 9.44452C15.4173 9.69433 15.6228 9.89736 15.8757 9.89736H19.3418C19.5946 9.89736 19.7994 9.69433 19.7994 9.44452V6.02113C19.7994 5.77132 19.5946 5.5683 19.3418 5.5683C19.0889 5.5683 18.8834 5.77132 18.8834 6.02113V7.63698C17.4097 5.4083 14.8642 4 12.0972 4C7.63261 4 4 7.58867 4 12Z",fill:"#4573D9"})),Ro=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M21.9006 11.9999C21.9006 6.53258 17.4684 2.10042 12.0011 2.10042C6.53372 2.10042 2.10156 6.53258 2.10156 11.9999C2.10156 17.4673 6.53372 21.8994 12.0011 21.8994C17.4684 21.8994 21.9006 17.4673 21.9006 11.9999Z",fill:"#00A582",stroke:"#00A582",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M8 11.6226L10.8813 15L16 9",stroke:"white",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),xa=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"#D72D40",stroke:"#D72D40",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M15.6912 8.31348L8.30859 15.6917",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M15.6947 15.6917L8.31641 8.31348",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ca=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M11.8617 21.7234C17.3082 21.7234 21.7234 17.3082 21.7234 11.8617C21.7234 6.41523 17.3082 2 11.8617 2C6.41523 2 2 6.41523 2 11.8617C2 17.3082 6.41523 21.7234 11.8617 21.7234Z",fill:"#FFA300",stroke:"#FFA300",strokeWidth:1.5,strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("path",{d:"M11.3004 13.9799L11.0046 6.75096C11.0001 6.63834 11.0178 6.52593 11.0567 6.42017C11.0957 6.3144 11.155 6.21731 11.2315 6.1345C11.3079 6.05168 11.3999 5.98475 11.5022 5.93749C11.6046 5.89023 11.7152 5.86359 11.8278 5.85908C11.9404 5.85458 12.0528 5.87228 12.1586 5.91122C12.2644 5.95015 12.3614 6.00959 12.4442 6.08603C12.527 6.16248 12.594 6.25442 12.6413 6.35673C12.6885 6.45905 12.7152 6.56967 12.7197 6.68229C12.7197 6.70373 12.7197 6.72952 12.7197 6.75096L12.4238 13.9799C12.4238 14.1295 12.3644 14.2729 12.2587 14.3787C12.1529 14.4844 12.0095 14.5438 11.86 14.5438C11.7104 14.5438 11.567 14.4844 11.4613 14.3787C11.3555 14.2729 11.2961 14.1295 11.2961 13.9799H11.3004Z",fill:"white"}),d.createElement("circle",{cx:11.8605,cy:16.7795,r:1,fill:"white",stroke:"white",strokeWidth:.572616})),ka=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M15 3H1V13H15V3Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M1 3L8 10.3433L15 3",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M10.3359 7.89648L15.0026 12.9998",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M1 12.9998L5.66667 7.89648",stroke:"currentColor",strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),od=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M1.61422 14.1333L5.99625 12.4418C6.61289 12.5773 7.2432 12.6457 7.87554 12.6458C11.6739 12.6458 14.7511 10.2623 14.7511 7.32292C14.7511 4.38348 11.6739 2 7.87554 2C4.07718 2 1 4.38348 1 7.32292C1 8.81925 1.79758 10.1707 3.08101 11.1347L1.61422 14.1333Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"}),d.createElement("circle",{cx:4.98438,cy:7.66211,r:.75,fill:"currentColor"}),d.createElement("circle",{cx:7.875,cy:7.66211,r:.75,fill:"currentColor"}),d.createElement("circle",{cx:10.7656,cy:7.66211,r:.75,fill:"currentColor"})),sd=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M11.5195 9.99817C11.3265 9.87759 11.0947 9.83572 10.8717 9.88121C10.6488 9.92671 10.4519 10.0561 10.3216 10.2426C9.89136 10.7756 9.35845 11.663 7.34409 9.64859C5.32972 7.63423 6.2171 7.1013 6.74759 6.67105C6.93413 6.54079 7.0635 6.34385 7.109 6.12093C7.15449 5.89801 7.11263 5.66612 6.99205 5.47319C6.84537 5.25073 5.90909 3.80596 5.74285 3.56639C5.57662 3.32681 5.35414 2.93568 4.84077 3.00901C4.31202 3.17497 3.84929 3.50384 3.51868 3.9486C3.18807 4.39337 3.00653 4.93127 3 5.48541C3 7.13308 4.29808 9.15233 6.07287 10.9271C7.84766 12.7019 9.86692 14 11.5146 14C12.0687 13.9935 12.6066 13.8119 13.0514 13.4813C13.4962 13.1507 13.825 12.688 13.991 12.1592C14.0643 11.6434 13.6732 11.4258 13.4336 11.2571C13.194 11.0885 11.7419 10.1448 11.5195 9.99817Z",stroke:"currentColor",strokeMiterlimit:10,strokeLinejoin:"round"})),ad=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M29 26H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h6.46l1.71-2.55A1 1 0 0 1 12 4h8a1 1 0 0 1 .83.45L22.54 7H29a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1M4 24h24V9h-6a1 1 0 0 1-.83-.45L19.46 6h-6.92l-1.71 2.55A1 1 0 0 1 10 9H4Z"}),d.createElement("path",{d:"M16 22a6 6 0 1 1 6-6a6 6 0 0 1-6 6m0-10a4 4 0 1 0 4 4a4 4 0 0 0-4-4"})),Sa=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"#000000",style:{opacity:1},...e},d.createElement("path",{d:"M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1 1 0 0 1 3 21l.003-14c0-.552.45-1 1.006-1zM5.002 8L5 20h10V8zM9 6h8v10h2V4H9z"})),Na=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{fill:"none",d:"M12 11v5m0 5a9 9 0 1 1 0-18a9 9 0 0 1 0 18m.05-13v.1h-.1V8z"})),id=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M18 28h-4a2 2 0 0 1-2-2v-7.59L4.59 11A2 2 0 0 1 4 9.59V6a2 2 0 0 1 2-2h20a2 2 0 0 1 2 2v3.59a2 2 0 0 1-.59 1.41L20 18.41V26a2 2 0 0 1-2 2M6 6v3.59l8 8V26h4v-8.41l8-8V6Z"})),Ea=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9m67.4-174.4L687.8 215l73.3 73.3l-362.7 362.6l-88.9 15.7zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32"})),cd=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M20.3 13.43a1 1 0 0 0-1.25.65A7.14 7.14 0 0 1 12.18 19A7.1 7.1 0 0 1 5 12a7.1 7.1 0 0 1 7.18-7a7.26 7.26 0 0 1 4.65 1.67l-2.17-.36a1 1 0 0 0-1.15.83a1 1 0 0 0 .83 1.15l4.24.7h.17a1 1 0 0 0 .34-.06a.3.3 0 0 0 .1-.06a.8.8 0 0 0 .2-.11l.09-.11c0-.05.09-.09.13-.15s0-.1.05-.14a1.3 1.3 0 0 0 .07-.18l.75-4a1 1 0 0 0-2-.38l-.27 1.45A9.2 9.2 0 0 0 12.18 3A9.1 9.1 0 0 0 3 12a9.1 9.1 0 0 0 9.18 9A9.12 9.12 0 0 0 21 14.68a1 1 0 0 0-.7-1.25"})),ld=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64m176.5 585.7l-28.6 39a7.99 7.99 0 0 1-11.2 1.7L483.3 569.8a7.92 7.92 0 0 1-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1"})),ja=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{fill:"none",d:"M4.5 11.5a3 3 0 0 1 3-3h8.718a4 4 0 0 1 2.325.745l4.914 3.51a4 4 0 0 0 2.325.745H40.5a3 3 0 0 1 3 3v20a3 3 0 0 1-3 3h-33a3 3 0 0 1-3-3z"}),d.createElement("circle",{cx:25.435,cy:25.065,r:5.565}),d.createElement("path",{d:"M21.5 29L17 33.5"})),dd=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{d:"M19 3v4m0 14V11m-7-8v12m0 6v-2M5 3v2m0 16V9"}),d.createElement("circle",{cx:19,cy:9,r:2,transform:"rotate(90 19 9)"}),d.createElement("circle",{cx:12,cy:17,r:2,transform:"rotate(90 12 17)"}),d.createElement("circle",{cx:5,cy:7,r:2,transform:"rotate(90 5 7)"})),ud=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",width:24,height:24,fill:"#000000",style:{opacity:1},...e},d.createElement("path",{d:"M6.84 2.189a1.96 1.96 0 0 0-1.68 0L.286 4.498A.5.5 0 0 0 0 4.976v3.026a.5.5 0 1 0 1 0V5.756l1 .496v2.75a.5.5 0 0 0 .147.354l.025.024l.06.055q.075.072.217.188c.187.153.457.355.794.558c.67.401 1.634.82 2.757.82s2.088-.419 2.757-.82a6.7 6.7 0 0 0 1.012-.746l.06-.055l.023-.024h.002A.5.5 0 0 0 10 9.001v-2.75l1.722-.854a.5.5 0 0 0-.008-.9zm.032 5.615L9 6.748V8.78l-.082.07a6 6 0 0 1-.675.473c-.58.348-1.366.679-2.243.679s-1.662-.33-2.243-.679A6 6 0 0 1 3 8.78V6.748l2.128 1.056c.55.272 1.194.272 1.744 0m-.46-4.711l3.942 1.867l-3.927 1.948a.96.96 0 0 1-.854 0L1.646 4.96l3.942-1.867a.96.96 0 0 1 .824 0M2.149 9.358"})),fd=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 2048 2048",width:24,height:24,fill:"currentColor",style:{opacity:1},...e},d.createElement("path",{d:"M1728 1664q26 0 45 19t19 45t-19 45t-45 19H960q-26 0-45-19t-19-45t19-45t45-19zm-128 256q26 0 45 19t19 45t-19 45t-45 19h-512q-26 0-45-19t-19-45t19-45t45-19zm238-512h210v128H537q-10 64-14 128t-7 127t-3 128t-1 129H128v-193q0-81 6-160t17-159H0v-128h172q50-245 151-471t250-427q-146-5-268-61T82 289l-45-46l47-44q104-97 228-147T579 1q156 0 286 58t239 168q77 2 149 24t134 60t113 90t87 115t57 135t20 150v64h-64q-132 0-247-56t-199-159q-76 138-191 227t-269 125q-43 99-76 200t-57 206h289q22-84 69-154t112-122t146-79t167-29q87 0 167 28t145 80t113 121t69 155M1238 380q-6 65-26 132q51 88 134 146t185 74q-10-61-35-115t-63-101t-88-80t-107-56m-126 7q-102 8-192 50T759 547T642 704t-61 189q85-7 161-36t139-78t112-112t81-144q14-33 23-67t15-69M224 247q80 66 177 101t201 35q97 0 187-30t168-88q-80-66-177-101t-201-35q-97 0-187 30t-168 88m318 775q-8 2-16 2t-16 0h-32q-16 0-32-2v-47q-53 118-89 232t-59 230t-32 235t-10 248h128q0-121 8-234t27-223t49-219t74-222m442 386h720q-20-57-56-104t-83-81t-104-52t-117-19q-61 0-117 18t-103 52t-84 81t-56 105"})),Ma=e=>d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",style:{opacity:1},...e},d.createElement("path",{fill:"none",d:"M12 15V3m0 12l-4-4m4 4l4-4M2 17l.621 2.485A2 2 0 0 0 4.561 21h14.877a2 2 0 0 0 1.94-1.515L22 17"}));var Oa=(e=>(e.BLUE_01="#D3E8FA",e.BLUE_02="#4573D9",e.BLUE_03="#4573D9",e.BLUE_04="#4573D9",e.BLUE_05="#001A3D",e.GRAY_01="#F4F7FA",e.GRAY_02="#c8c7cc",e.GRAY_03="#808080",e.GRAY_04="#525252",e.GRAY_05="#2A2A2A",e.GRAY_06="#AEBFDE",e.GRAY_07="#DDE5F5",e.WHITE_01="#FFFFFF",e.BLACK_01="#000000",e.GREEN_01="#C4F2E8",e.GREEN_02="#00A582",e.ORANGE_01="#F9E1D7",e.ORANGE_02="#FF6B2C",e.RED_01="#FFEEEE",e.RED_02="#D72D40",e.YELLOW_01="#FFF1D8",e.YELLOW_02="#FFA300",e))(Oa||{});function md(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qr={exports:{}};var hs;function hd(){return hs||(hs=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",a=0;a<arguments.length;a++){var i=arguments[a];i&&(s=o(s,r(i)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var i in s)t.call(s,i)&&s[i]&&(a=o(a,i));return a}function o(s,a){return a?s?s+" "+a:s+a:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(qr)),qr.exports}var pd=hd();const M=md(pd),gd="_block_tkxaf_1",vd="_subtitle_tkxaf_6",_d="_title_tkxaf_13",Gr={block:gd,subtitle:vd,title:_d},bd=({id:e,title:t,subtitle:n,children:r,className:o})=>c.jsxs("div",{className:M(Gr.block,o),id:e,children:[t&&typeof t=="string"?c.jsx("div",{className:Gr.title,children:t}):t,n&&c.jsx("div",{className:Gr.subtitle,children:n}),r]});function ps(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Pn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=ps(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():ps(e[o],null)}}}}function qe(...e){return d.useCallback(Pn(...e),e)}var yd=Symbol.for("react.lazy"),hr=d[" use ".trim().toString()];function wd(e){return typeof e=="object"&&e!==null&&"then"in e}function Da(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===yd&&"_payload"in e&&wd(e._payload)}function Ra(e){const t=Cd(e),n=d.forwardRef((r,o)=>{let{children:s,...a}=r;Da(s)&&typeof hr=="function"&&(s=hr(s._payload));const i=d.Children.toArray(s),l=i.find(Sd);if(l){const u=l.props.children,f=i.map(m=>m===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:m);return c.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var xd=Ra("Slot");function Cd(e){const t=d.forwardRef((n,r)=>{let{children:o,...s}=n;if(Da(o)&&typeof hr=="function"&&(o=hr(o._payload)),d.isValidElement(o)){const a=Ed(o),i=Nd(s,o.props);return o.type!==d.Fragment&&(i.ref=r?Pn(r,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kd=Symbol("radix.slottable");function Sd(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kd}function Nd(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ed(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Pa(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Pa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ta(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Pa(e))&&(r&&(r+=" "),r+=t);return r}const gs=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,vs=Ta,Aa=(e,t)=>n=>{var r;if(t?.variants==null)return vs(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const f=n?.[u],m=s?.[u];if(f===null)return null;const p=gs(f)||gs(m);return o[u][p]}),i=n&&Object.entries(n).reduce((u,f)=>{let[m,p]=f;return p===void 0||(u[m]=p),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:m,className:p,...h}=f;return Object.entries(h).every(b=>{let[v,_]=b;return Array.isArray(_)?_.includes({...s,...i}[v]):{...s,...i}[v]===_})?[...u,m,p]:u},[]);return vs(e,a,l,n?.class,n?.className)},jd=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Md=(e,t)=>({classGroupId:e,validator:t}),Ia=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),pr="-",_s=[],Od="arbitrary..",Dd=e=>{const t=Pd(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Rd(a);const i=a.split(pr),l=i[0]===""&&i.length>1?1:0;return La(i,l,t)},getConflictingClassGroupIds:(a,i)=>{if(i){const l=r[a],u=n[a];return l?u?jd(u,l):l:u||_s}return n[a]||_s}}},La=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const u=La(e,t+1,s);if(u)return u}const a=n.validators;if(a===null)return;const i=t===0?e.join(pr):e.slice(t).join(pr),l=a.length;for(let u=0;u<l;u++){const f=a[u];if(f.validator(i))return f.classGroupId}},Rd=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Od+r:void 0})(),Pd=e=>{const{theme:t,classGroups:n}=e;return Td(n,t)},Td=(e,t)=>{const n=Ia();for(const r in e){const o=e[r];Po(o,n,r,t)}return n},Po=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const a=e[s];Ad(a,t,n,r)}},Ad=(e,t,n,r)=>{if(typeof e=="string"){Id(e,t,n);return}if(typeof e=="function"){Ld(e,t,n,r);return}Wd(e,t,n,r)},Id=(e,t,n)=>{const r=e===""?t:Wa(t,e);r.classGroupId=n},Ld=(e,t,n,r)=>{if($d(e)){Po(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Md(n,e))},Wd=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let a=0;a<s;a++){const[i,l]=o[a];Po(l,Wa(t,i),n,r)}},Wa=(e,t)=>{let n=e;const r=t.split(pr),o=r.length;for(let s=0;s<o;s++){const a=r[s];let i=n.nextPart.get(a);i||(i=Ia(),n.nextPart.set(a,i)),n=i}return n},$d=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Fd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(s,a)=>{n[s]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let a=n[s];if(a!==void 0)return a;if((a=r[s])!==void 0)return o(s,a),a},set(s,a){s in n?n[s]=a:o(s,a)}}},go="!",bs=":",Bd=[],ys=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),zd=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let a=0,i=0,l=0,u;const f=o.length;for(let v=0;v<f;v++){const _=o[v];if(a===0&&i===0){if(_===bs){s.push(o.slice(l,v)),l=v+1;continue}if(_==="/"){u=v;continue}}_==="["?a++:_==="]"?a--:_==="("?i++:_===")"&&i--}const m=s.length===0?o:o.slice(l);let p=m,h=!1;m.endsWith(go)?(p=m.slice(0,-1),h=!0):m.startsWith(go)&&(p=m.slice(1),h=!0);const b=u&&u>l?u-l:void 0;return ys(s,h,p,b)};if(t){const o=t+bs,s=r;r=a=>a.startsWith(o)?s(a.slice(o.length)):ys(Bd,!1,a,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Hd=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let s=0;s<n.length;s++){const a=n[s],i=a[0]==="[",l=t.has(a);i||l?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(a)):o.push(a)}return o.length>0&&(o.sort(),r.push(...o)),r}},Yd=e=>({cache:Fd(e.cacheSize),parseClassName:zd(e),sortModifiers:Hd(e),...Dd(e)}),Vd=/\s+/,qd=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(Vd);let l="";for(let u=i.length-1;u>=0;u-=1){const f=i[u],{isExternal:m,modifiers:p,hasImportantModifier:h,baseClassName:b,maybePostfixModifierPosition:v}=n(f);if(m){l=f+(l.length>0?" "+l:l);continue}let _=!!v,y=r(_?b.substring(0,v):b);if(!y){if(!_){l=f+(l.length>0?" "+l:l);continue}if(y=r(b),!y){l=f+(l.length>0?" "+l:l);continue}_=!1}const w=p.length===0?"":p.length===1?p[0]:s(p).join(":"),x=h?w+go:w,k=x+y;if(a.indexOf(k)>-1)continue;a.push(k);const S=o(y,_);for(let C=0;C<S.length;++C){const N=S[C];a.push(x+N)}l=f+(l.length>0?" "+l:l)}return l},Gd=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=$a(n))&&(o&&(o+=" "),o+=r);return o},$a=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=$a(e[r]))&&(n&&(n+=" "),n+=t);return n},Ud=(e,...t)=>{let n,r,o,s;const a=l=>{const u=t.reduce((f,m)=>m(f),e());return n=Yd(u),r=n.cache.get,o=n.cache.set,s=i,i(l)},i=l=>{const u=r(l);if(u)return u;const f=qd(l,n);return o(l,f),f};return s=a,(...l)=>s(Gd(...l))},Zd=[],Ee=e=>{const t=n=>n[e]||Zd;return t.isThemeGetter=!0,t},Fa=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ba=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Xd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Kd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Jd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,eu=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,St=e=>Xd.test(e),te=e=>!!e&&!Number.isNaN(Number(e)),Nt=e=>!!e&&Number.isInteger(Number(e)),Ur=e=>e.endsWith("%")&&te(e.slice(0,-1)),gt=e=>Kd.test(e),za=()=>!0,nu=e=>Qd.test(e)&&!Jd.test(e),To=()=>!1,ru=e=>eu.test(e),ou=e=>tu.test(e),su=e=>!L(e)&&!F(e),au=e=>Pt(e,Va,To),L=e=>Fa.test(e),Wt=e=>Pt(e,qa,nu),ws=e=>Pt(e,hu,te),iu=e=>Pt(e,Ua,za),cu=e=>Pt(e,Ga,To),xs=e=>Pt(e,Ha,To),lu=e=>Pt(e,Ya,ou),Xn=e=>Pt(e,Za,ru),F=e=>Ba.test(e),pn=e=>Vt(e,qa),du=e=>Vt(e,Ga),Cs=e=>Vt(e,Ha),uu=e=>Vt(e,Va),fu=e=>Vt(e,Ya),Kn=e=>Vt(e,Za,!0),mu=e=>Vt(e,Ua,!0),Pt=(e,t,n)=>{const r=Fa.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Vt=(e,t,n=!1)=>{const r=Ba.exec(e);return r?r[1]?t(r[1]):n:!1},Ha=e=>e==="position"||e==="percentage",Ya=e=>e==="image"||e==="url",Va=e=>e==="length"||e==="size"||e==="bg-size",qa=e=>e==="length",hu=e=>e==="number",Ga=e=>e==="family-name",Ua=e=>e==="number"||e==="weight",Za=e=>e==="shadow",pu=()=>{const e=Ee("color"),t=Ee("font"),n=Ee("text"),r=Ee("font-weight"),o=Ee("tracking"),s=Ee("leading"),a=Ee("breakpoint"),i=Ee("container"),l=Ee("spacing"),u=Ee("radius"),f=Ee("shadow"),m=Ee("inset-shadow"),p=Ee("text-shadow"),h=Ee("drop-shadow"),b=Ee("blur"),v=Ee("perspective"),_=Ee("aspect"),y=Ee("ease"),w=Ee("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...k(),F,L],C=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],E=()=>[F,L,l],D=()=>[St,"full","auto",...E()],O=()=>[Nt,"none","subgrid",F,L],T=()=>["auto",{span:["full",Nt,F,L]},Nt,F,L],R=()=>[Nt,"auto",F,L],A=()=>["auto","min","max","fr",F,L],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...E()],q=()=>[St,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],W=()=>[St,"screen","full","dvw","lvw","svw","min","max","fit",...E()],G=()=>[St,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],j=()=>[e,F,L],K=()=>[...k(),Cs,xs,{position:[F,L]}],ve=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",uu,au,{size:[F,L]}],ne=()=>[Ur,pn,Wt],ee=()=>["","none","full",u,F,L],re=()=>["",te,pn,Wt],fe=()=>["solid","dashed","dotted","double"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>[te,Ur,Cs,xs],$=()=>["","none",b,F,L],de=()=>["none",te,F,L],ke=()=>["none",te,F,L],Oe=()=>[te,F,L],ce=()=>[St,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[gt],breakpoint:[gt],color:[za],container:[gt],"drop-shadow":[gt],ease:["in","out","in-out"],font:[su],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[gt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[gt],shadow:[gt],spacing:["px",te],text:[gt],"text-shadow":[gt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",St,L,F,_]}],container:["container"],columns:[{columns:[te,L,F,i]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[Nt,"auto",F,L]}],basis:[{basis:[St,"full","auto",i,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[te,St,"auto","initial","none",L]}],grow:[{grow:["",te,F,L]}],shrink:[{shrink:["",te,F,L]}],order:[{order:[Nt,"first","last","none",F,L]}],"grid-cols":[{"grid-cols":O()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":O()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pbs:[{pbs:E()}],pbe:[{pbe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mbs:[{mbs:P()}],mbe:[{mbe:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...W()]}],"min-inline-size":[{"min-inline":["auto",...W()]}],"max-inline-size":[{"max-inline":["none",...W()]}],"block-size":[{block:["auto",...G()]}],"min-block-size":[{"min-block":["auto",...G()]}],"max-block-size":[{"max-block":["none",...G()]}],w:[{w:[i,"screen",...q()]}],"min-w":[{"min-w":[i,"screen","none",...q()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",n,pn,Wt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,mu,iu]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ur,L]}],"font-family":[{font:[du,cu,t]}],"font-features":[{"font-features":[L]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,F,L]}],"line-clamp":[{"line-clamp":[te,"none",F,ws]}],leading:[{leading:[s,...E()]}],"list-image":[{"list-image":["none",F,L]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",F,L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[te,"from-font","auto",F,Wt]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[te,"auto",F,L]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",F,L]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",F,L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:K()}],"bg-repeat":[{bg:ve()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Nt,F,L],radial:["",F,L],conic:[Nt,F,L]},fu,lu]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[te,F,L]}],"outline-w":[{outline:["",te,pn,Wt]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",f,Kn,Xn]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",m,Kn,Xn]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[te,Wt]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",p,Kn,Xn]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[te,F,L]}],"mix-blend":[{"mix-blend":[...Me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[te]}],"mask-image-linear-from-pos":[{"mask-linear-from":se()}],"mask-image-linear-to-pos":[{"mask-linear-to":se()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":se()}],"mask-image-t-to-pos":[{"mask-t-to":se()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":se()}],"mask-image-r-to-pos":[{"mask-r-to":se()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":se()}],"mask-image-b-to-pos":[{"mask-b-to":se()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":se()}],"mask-image-l-to-pos":[{"mask-l-to":se()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":se()}],"mask-image-x-to-pos":[{"mask-x-to":se()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":se()}],"mask-image-y-to-pos":[{"mask-y-to":se()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[F,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":se()}],"mask-image-radial-to-pos":[{"mask-radial-to":se()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[te]}],"mask-image-conic-from-pos":[{"mask-conic-from":se()}],"mask-image-conic-to-pos":[{"mask-conic-to":se()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:K()}],"mask-repeat":[{mask:ve()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",F,L]}],filter:[{filter:["","none",F,L]}],blur:[{blur:$()}],brightness:[{brightness:[te,F,L]}],contrast:[{contrast:[te,F,L]}],"drop-shadow":[{"drop-shadow":["","none",h,Kn,Xn]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",te,F,L]}],"hue-rotate":[{"hue-rotate":[te,F,L]}],invert:[{invert:["",te,F,L]}],saturate:[{saturate:[te,F,L]}],sepia:[{sepia:["",te,F,L]}],"backdrop-filter":[{"backdrop-filter":["","none",F,L]}],"backdrop-blur":[{"backdrop-blur":$()}],"backdrop-brightness":[{"backdrop-brightness":[te,F,L]}],"backdrop-contrast":[{"backdrop-contrast":[te,F,L]}],"backdrop-grayscale":[{"backdrop-grayscale":["",te,F,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[te,F,L]}],"backdrop-invert":[{"backdrop-invert":["",te,F,L]}],"backdrop-opacity":[{"backdrop-opacity":[te,F,L]}],"backdrop-saturate":[{"backdrop-saturate":[te,F,L]}],"backdrop-sepia":[{"backdrop-sepia":["",te,F,L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",F,L]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[te,"initial",F,L]}],ease:[{ease:["linear","initial",y,F,L]}],delay:[{delay:[te,F,L]}],animate:[{animate:["none",w,F,L]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,F,L]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:ke()}],"scale-x":[{"scale-x":ke()}],"scale-y":[{"scale-y":ke()}],"scale-z":[{"scale-z":ke()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[F,L,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",F,L]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mbs":[{"scroll-mbs":E()}],"scroll-mbe":[{"scroll-mbe":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pbs":[{"scroll-pbs":E()}],"scroll-pbe":[{"scroll-pbe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",F,L]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[te,pn,Wt,ws]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},gu=Ud(pu);function J(...e){return gu(Ta(e))}const vo=Aa("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Cr=d.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const a=r?xd:"button";return c.jsx(a,{className:J(vo({variant:t,size:n,className:e})),ref:s,...o})});Cr.displayName="Button";const vu="_cssloadSpeedingWheel_akex8_6",_u="_bigSize_akex8_20",bu="_smallSize_akex8_26",yu="_extraSmallSize_akex8_32",Qn={cssloadSpeedingWheel:vu,bigSize:_u,smallSize:bu,extraSmallSize:yu};function wu(e){return e==="medium"?"small":e==="large"?"big":e}const Ue=({marginTop:e,marginBottom:t,marginLeft:n,className:r,size:o="big"})=>{const s=g.useMemo(()=>({marginTop:e,marginBottom:t,marginLeft:n}),[t,n,e]),a=wu(o);return c.jsx("div",{className:r,style:s,children:c.jsx("div",{className:M(Qn.cssloadSpeedingWheel,{[Qn.bigSize]:a==="big",[Qn.smallSize]:a==="small",[Qn.extraSmallSize]:a==="extraSmall"})})})},xu="_button_fafaj_1",Cu="_button__loader_fafaj_186",ku="_button__content_fafaj_193",Gt={button:xu,"button--variant-primary":"_button--variant-primary_fafaj_26","button--variant-primary--disabled":"_button--variant-primary--disabled_fafaj_37","button--variant-default":"_button--variant-default_fafaj_45","button--variant-default--disabled":"_button--variant-default--disabled_fafaj_58","button--variant-secondary":"_button--variant-secondary_fafaj_66","button--variant-secondary--disabled":"_button--variant-secondary--disabled_fafaj_81","button--variant-text":"_button--variant-text_fafaj_89","button--variant-text--disabled":"_button--variant-text--disabled_fafaj_105","button--variant-link":"_button--variant-link_fafaj_113","button--variant-link--disabled":"_button--variant-link--disabled_fafaj_129","button--variant-danger":"_button--variant-danger_fafaj_137","button--variant-danger--disabled":"_button--variant-danger--disabled_fafaj_147","button--size-small":"_button--size-small_fafaj_155","button--size-medium":"_button--size-medium_fafaj_163","button--size-large":"_button--size-large_fafaj_171","button--loading":"_button--loading_fafaj_182",button__loader:Cu,button__content:ku},xe=g.forwardRef(({variant:e="default",size:t="medium",className:n="",loading:r=!1,disabled:o=!1,children:s,type:a="button",...i},l)=>{const u=M(Gt.button,Gt[`button--variant-${e}`],Gt[`button--size-${t}`],{[Gt["button--loading"]]:r,[Gt["button--disabled"]]:o},n);return c.jsxs(Cr,{ref:l,variant:null,size:null,className:u,disabled:o||r,type:a,...i,children:[s&&s,r&&c.jsx("span",{className:Gt.button__loader,children:c.jsx(Ue,{size:"extraSmall"})})]})});xe.displayName="Button";const Xa=e=>{const[t,n]=g.useState(0),[r,o]=g.useState(0),s=g.useRef(null);return g.useEffect(()=>{if(!e)return;const i=new ResizeObserver(u=>{s.current&&cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{for(const f of u)if(f.borderBoxSize){const m=Array.isArray(f.borderBoxSize)?f.borderBoxSize[0]:f.borderBoxSize;n(m.blockSize),o(m.inlineSize)}else n(f.contentRect.height),o(f.contentRect.width)})});i.observe(e);const l=e.getBoundingClientRect().height;return n(l),()=>{i.disconnect()}},[e,n]),g.useMemo(()=>({height:t,width:r}),[t,r])},ks={capture:!0,passive:!0},Su=({triggerRef:e,dropdownHeight:t,offset:n=8,enabled:r=!0,onAnchorFrame:o})=>{const[s,a]=g.useState("bottom"),i=g.useRef(null),l=g.useCallback(()=>{if(!e.current)return"bottom";const f=e.current.getBoundingClientRect(),m=window.innerHeight,p=f.top-n;return m-f.bottom-n>=t?"bottom":p>=t?"top":"bottom"},[e,t,n]),u=g.useCallback(()=>{i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{const f=l();a(f),o?.(f)})},[l,o]);return g.useEffect(()=>{if(!r)return;const f=e.current;if(!f)return;u();const m=new ResizeObserver(()=>{u()});m.observe(f);const p=new MutationObserver(()=>{u()});p.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]});const h=[];let b=f.parentElement;for(;b;){const v=window.getComputedStyle(b),_=v.overflow+v.overflowY+v.overflowX;/(auto|scroll)/.test(_)&&(h.push(b),b.addEventListener("scroll",u)),b=b.parentElement}return window.addEventListener("scroll",u,ks),window.addEventListener("resize",u),window.addEventListener("transitionend",u),window.addEventListener("animationend",u),()=>{i.current&&cancelAnimationFrame(i.current),m.disconnect(),p.disconnect(),window.removeEventListener("scroll",u,ks),window.removeEventListener("resize",u),window.removeEventListener("transitionend",u),window.removeEventListener("animationend",u),h.forEach(v=>{v.removeEventListener("scroll",u)})}},[r,e,u]),s},Nu="_container_1dkro_1",Eu="_activeButton_1dkro_16",ju="_slider_1dkro_22",Zr={container:Nu,activeButton:Eu,slider:ju},Mu=({options:e,value:t,defaultValue:n,data:r,activeButton:o,defaultActiveButton:s,onChange:a})=>{const i=g.useMemo(()=>e?.length?e.map(y=>({id:y.value,label:y.label,additionalComponent:y.additionalComponent})):r??[],[e,r]),[l,u]=g.useState(()=>n??s??i[0]?.id),[f,m]=g.useState({transform:"translateX(0)",width:0}),p=g.useRef(new Map),h=t??o??l,{width:b}=Xa(p.current.get(h)),v=y=>{y.id!==h&&(a?.(y.id),u(y.id))},_=g.useCallback((y,w)=>{p.current.set(w,y)},[]);return g.useEffect(()=>{const y=i.findIndex(w=>w.id===h);if(y>=0){const x=i.slice(0,y).reduce((k,S)=>{const C=p.current.get(S.id);if(C){const N=C.getBoundingClientRect().width;k+=N}return k},0);m({transform:`translateX(${x}px)`,width:b})}},[h,b,i]),c.jsxs("div",{className:Zr.container,children:[i.map(y=>c.jsx("div",{ref:w=>_(w,y.id),children:c.jsxs(xe,{size:"small",onClick:()=>v(y),className:M({[Zr.activeButton]:y.id===h}),children:[y.label,y.additionalComponent]})},y.id)),c.jsx("div",{className:Zr.slider,style:f})]})},Ou="_card_1cqzz_1",Du="_link_1cqzz_17",Ss={card:Ou,link:Du},Ru=g.memo(({text:e,width:t,height:n,className:r,backgroundColor:o,imageUrl:s,textColor:a,link:i})=>{const l=M(Ss.card,{[Ss.link]:i},r),u=g.useMemo(()=>({backgroundColor:o,...a&&{color:a},...t&&{width:t},...n&&{height:`${n}px`},...s&&{backgroundImage:`url(${s})`}}),[o,n,s,a,t]);return i?c.jsx("a",{className:l,style:u,href:i,children:c.jsx("span",{children:e})}):c.jsx("div",{className:l,style:u,children:c.jsx("span",{children:e})})}),Pu="_carouselWrapper_12142_1",Tu="_carousel_12142_1",Au="_viewport_12142_13",Iu="_slide_12142_19",Lu="_activeSlide_12142_24",Wu="_itemContent_12142_28",$u="_controls_12142_36",Fu="_carouselControl_12142_48",Bu="_prevIcon_12142_71",zu="_nextIcon_12142_72",Hu="_indicators_12142_90",Yu="_activeIndicator_12142_115",We={carouselWrapper:Pu,carousel:Tu,viewport:Au,slide:Iu,activeSlide:Lu,itemContent:Wu,controls:$u,carouselControl:Fu,prevIcon:Bu,nextIcon:zu,indicators:Hu,activeIndicator:Yu},Vu=e=>"items"in e&&Array.isArray(e.items)&&"renderItem"in e&&typeof e.renderItem=="function",qu=e=>Vu(e)?e.items.map((t,n)=>({key:`${t.id}-${n}`,content:e.renderItem(t),caption:t.caption})):g.Children.toArray(e.children).map((t,n)=>({key:g.isValidElement(t)&&t.key!==null&&t.key!==void 0&&t.key!=="."?String(t.key):`slide-${n}`,content:t})),Gu=e=>{const t={...e};return delete t.items,delete t.renderItem,delete t.children,t},Uu=e=>{const t=qu(e),n=t.length,r=Gu(e),{className:o,dark:s,enableTouch:a,fade:i,interval:l,keyboard:u=!0,pause:f,ride:m,slide:p,...h}=r,[b,v]=g.useState(0),_=()=>{v(C=>C===n-1?0:C+1)},y=()=>{v(C=>C===0?n-1:C-1)},w=C=>{v(C)},x=n>1,k=g.useMemo(()=>t.map(C=>({key:C.key})),[t]),S=C=>{h.onKeyDown?.(C),!(C.defaultPrevented||!u||!x)&&(C.key==="ArrowLeft"&&y(),C.key==="ArrowRight"&&_())};return n?x?c.jsx("div",{className:We.carouselWrapper,children:c.jsxs("div",{...h,className:[We.carousel,o].filter(Boolean).join(" "),onKeyDown:S,role:"region","aria-roledescription":"carousel",children:[c.jsx("div",{className:We.viewport,children:t.map((C,N)=>c.jsx("div",{className:[We.slide,N===b?We.activeSlide:""].filter(Boolean).join(" "),"aria-hidden":N!==b,children:c.jsx("div",{className:We.itemContent,children:C.content})},C.key))}),c.jsxs("div",{className:We.controls,children:[c.jsx("button",{className:We.carouselControl,type:"button",onClick:y,"aria-label":"Previous slide",children:c.jsx("span",{className:We.prevIcon,"aria-hidden":"true"})}),c.jsx("div",{className:We.indicators,children:k.map((C,N)=>c.jsx("button",{className:N===b?We.activeIndicator:void 0,type:"button",onClick:()=>w(N),"aria-label":`Go to slide ${N+1}`,"aria-current":N===b},C.key))}),c.jsx("button",{className:We.carouselControl,type:"button",onClick:_,"aria-label":"Next slide",children:c.jsx("span",{className:We.nextIcon,"aria-hidden":"true"})})]})]})}):c.jsx("div",{className:We.carouselWrapper,children:t[0].content}):null},Fe=8;function Zu(e,t="top"){const{left:n,right:r,top:o,bottom:s,width:a,height:i}=e,l=n+a/2,u=o+i/2;switch(t){case"top":return{left:l,top:o-Fe,transform:"translate(-50%, -100%)"};case"topLeft":return{left:n,top:o-Fe,transform:"translateY(-100%)"};case"topRight":return{left:r,top:o-Fe,transform:"translate(-100%, -100%)"};case"bottom":return{left:l,top:s+Fe,transform:"translate(-50%, 0)"};case"bottomLeft":return{left:n,top:s+Fe,transform:"translateY(0)"};case"bottomRight":return{left:r,top:s+Fe,transform:"translate(-100%, 0)"};case"left":return{left:n-Fe,top:u,transform:"translate(-100%, -50%)"};case"leftTop":return{left:n-Fe,top:o,transform:"translate(-100%, 0)"};case"leftBottom":return{left:n-Fe,top:s,transform:"translate(-100%, -100%)"};case"right":return{left:r+Fe,top:u,transform:"translate(0, -50%)"};case"rightTop":return{left:r+Fe,top:o,transform:"translate(0, 0)"};case"rightBottom":return{left:r+Fe,top:s,transform:"translate(0, -100%)"};default:return{left:l,top:o-Fe,transform:"translate(-50%, -100%)"}}}const Xu="_overlay_1pnex_1",Ku="_fadeIn_1pnex_1",Qu="_arrow_1pnex_16",Ju="_top_1pnex_22",ef="_bottom_1pnex_28",tf="_left_1pnex_34",nf="_right_1pnex_40",Xr={overlay:Xu,fadeIn:Ku,arrow:Qu,top:Ju,bottom:ef,left:tf,right:nf};function rf(e){return e.startsWith("top")?"bottom":e.startsWith("bottom")?"top":e.startsWith("left")?"right":e.startsWith("right")?"left":"top"}const kr=g.memo(({title:e,content:t,open:n,defaultOpen:r=!1,trigger:o="hover",mouseEnterDelay:s=100,mouseLeaveDelay:a=100,onOpenChange:i,placement:l="top",arrow:u=!0,children:f,overlayClassName:m,getPopupContainer:p=()=>document.body})=>{const h=n!==void 0,[b,v]=g.useState(r),_=h?n:b,y=g.useCallback(j=>{h||v(j),i?.(j)},[h,i]),w=g.useRef(null),[x,k]=g.useState(null),S=g.useRef(null),C=g.useRef(null),N=Array.isArray(o)?o:[o],E=N.includes("hover"),D=N.includes("click"),O=g.useCallback(()=>{S.current&&(clearTimeout(S.current),S.current=null)},[]),T=g.useCallback(()=>{C.current&&(clearTimeout(C.current),C.current=null)},[]),R=g.useCallback(()=>{E&&(T(),S.current=setTimeout(()=>y(!0),s))},[E,s,y,T]),A=g.useCallback(()=>{E&&(O(),C.current=setTimeout(()=>y(!1),a))},[E,a,y,O]),I=g.useCallback(j=>{D&&(j.preventDefault(),y(!_))},[D,_,y]);g.useEffect(()=>{if(!D||!_||h)return;const j=K=>{const ve=w.current;ve&&!ve.contains(K.target)&&y(!1)};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[D,_,h,y]),g.useLayoutEffect(()=>{if(!_||!w.current){k(null);return}const j=w.current.getBoundingClientRect();k(Zu(j,l))},[_,l]),g.useEffect(()=>()=>{O(),T()},[O,T]);const X=typeof document<"u"?p():null,P=rf(l),q=e??t,W=_&&q!=null&&q!==""&&x&&X&&Rn.createPortal(c.jsxs("span",{className:M(Xr.overlay,m),style:{left:x.left,top:x.top,transform:x.transform},role:"tooltip",children:[q,u&&c.jsx("span",{className:M(Xr.arrow,Xr[P])})]}),X),G=!h&&(E||D)?{onMouseEnter:R,onMouseLeave:A,onClick:D?I:void 0}:{};return c.jsxs(c.Fragment,{children:[c.jsx("span",{ref:w,...G,children:f}),W]})});kr.displayName="TooltipDark";const of="_wrapper_ukjvp_1",sf="_trigger_ukjvp_5",af="_trigger_iconOnly_ukjvp_32",cf="_icon_ukjvp_43",Jn={wrapper:of,trigger:sf,trigger_iconOnly:af,icon:cf},Ao=g.memo(({children:e,onClick:t,copied:n,tooltipText:r="Скопировано",ariaLabel:o,showIcon:s=!0,iconOnly:a=!1,className:i})=>{const l=g.useCallback(()=>{t()},[t]);return c.jsx("span",{className:Jn.wrapper,children:c.jsx(kr,{open:n,title:r,placement:"top",children:c.jsxs(Cr,{type:"button",variant:null,size:null,className:M(Jn.trigger,a&&Jn.trigger_iconOnly,i),onClick:l,"aria-label":o,"aria-live":"polite",children:[!a&&e,s&&c.jsx(Sa,{className:Jn.icon,"aria-hidden":!0})]})})})});Ao.displayName="CopyTextTrigger";function Ka(e){return typeof document>"u"?null:Rn.createPortal(e,document.body)}function je(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function lf(e,t){const n=d.createContext(t),r=s=>{const{children:a,...i}=s,l=d.useMemo(()=>i,Object.values(i));return c.jsx(n.Provider,{value:l,children:a})};r.displayName=e+"Provider";function o(s){const a=d.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Sr(e,t=[]){let n=[];function r(s,a){const i=d.createContext(a),l=n.length;n=[...n,a];const u=m=>{const{scope:p,children:h,...b}=m,v=p?.[e]?.[l]||i,_=d.useMemo(()=>b,Object.values(b));return c.jsx(v.Provider,{value:_,children:h})};u.displayName=s+"Provider";function f(m,p){const h=p?.[e]?.[l]||i,b=d.useContext(h);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}return[u,f]}const o=()=>{const s=n.map(a=>d.createContext(a));return function(i){const l=i?.[e]||s;return d.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,df(o,...t)]}function df(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:u})=>{const m=l(s)[`__scope${u}`];return{...i,...m}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function uf(e){const t=ff(e),n=d.forwardRef((r,o)=>{const{children:s,...a}=r,i=d.Children.toArray(s),l=i.find(hf);if(l){const u=l.props.children,f=i.map(m=>m===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:m);return c.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function ff(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const a=gf(o),i=pf(s,o.props);return o.type!==d.Fragment&&(i.ref=r?Pn(r,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var mf=Symbol("radix.slottable");function hf(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===mf}function pf(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function gf(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var vf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ie=vf.reduce((e,t)=>{const n=uf(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function _f(e,t){e&&ya.flushSync(()=>e.dispatchEvent(t))}function rn(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>t.current?.(...n),[])}function bf(e,t=globalThis?.document){const n=rn(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var yf="DismissableLayer",_o="dismissableLayer.update",wf="dismissableLayer.pointerDownOutside",xf="dismissableLayer.focusOutside",Ns,Qa=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Nr=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...l}=e,u=d.useContext(Qa),[f,m]=d.useState(null),p=f?.ownerDocument??globalThis?.document,[,h]=d.useState({}),b=qe(t,N=>m(N)),v=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(_),w=f?v.indexOf(f):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,k=w>=y,S=Sf(N=>{const E=N.target,D=[...u.branches].some(O=>O.contains(E));!k||D||(o?.(N),a?.(N),N.defaultPrevented||i?.())},p),C=Nf(N=>{const E=N.target;[...u.branches].some(O=>O.contains(E))||(s?.(N),a?.(N),N.defaultPrevented||i?.())},p);return bf(N=>{w===u.layers.size-1&&(r?.(N),!N.defaultPrevented&&i&&(N.preventDefault(),i()))},p),d.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ns=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),Es(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ns)}},[f,p,n,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),Es())},[f,u]),d.useEffect(()=>{const N=()=>h({});return document.addEventListener(_o,N),()=>document.removeEventListener(_o,N)},[]),c.jsx(Ie.div,{...l,ref:b,style:{pointerEvents:x?k?"auto":"none":void 0,...e.style},onFocusCapture:je(e.onFocusCapture,C.onFocusCapture),onBlurCapture:je(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:je(e.onPointerDownCapture,S.onPointerDownCapture)})});Nr.displayName=yf;var Cf="DismissableLayerBranch",kf=d.forwardRef((e,t)=>{const n=d.useContext(Qa),r=d.useRef(null),o=qe(t,r);return d.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(Ie.div,{...e,ref:o})});kf.displayName=Cf;function Sf(e,t=globalThis?.document){const n=rn(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let l=function(){Ja(wf,n,u,{discrete:!0})};const u={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Nf(e,t=globalThis?.document){const n=rn(e),r=d.useRef(!1);return d.useEffect(()=>{const o=s=>{s.target&&!r.current&&Ja(xf,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Es(){const e=new CustomEvent(_o);document.dispatchEvent(e)}function Ja(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?_f(o,s):o.dispatchEvent(s)}var Ot=globalThis?.document?d.useLayoutEffect:()=>{},Ef=d[" useId ".trim().toString()]||(()=>{}),jf=0;function Sn(e){const[t,n]=d.useState(Ef());return Ot(()=>{n(r=>r??String(jf++))},[e]),e||(t?`radix-${t}`:"")}const Mf=["top","right","bottom","left"],Dt=Math.min,He=Math.max,gr=Math.round,er=Math.floor,lt=e=>({x:e,y:e}),Of={left:"right",right:"left",bottom:"top",top:"bottom"};function bo(e,t,n){return He(e,Dt(t,n))}function wt(e,t){return typeof e=="function"?e(t):e}function xt(e){return e.split("-")[0]}function ln(e){return e.split("-")[1]}function Io(e){return e==="x"?"y":"x"}function Lo(e){return e==="y"?"height":"width"}function at(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Wo(e){return Io(at(e))}function Df(e,t,n){n===void 0&&(n=!1);const r=ln(e),o=Wo(e),s=Lo(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=vr(a)),[a,vr(a)]}function Rf(e){const t=vr(e);return[yo(e),t,yo(t)]}function yo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const js=["left","right"],Ms=["right","left"],Pf=["top","bottom"],Tf=["bottom","top"];function Af(e,t,n){switch(e){case"top":case"bottom":return n?t?Ms:js:t?js:Ms;case"left":case"right":return t?Pf:Tf;default:return[]}}function If(e,t,n,r){const o=ln(e);let s=Af(xt(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(yo)))),s}function vr(e){const t=xt(e);return Of[t]+e.slice(t.length)}function Lf(e){return{top:0,right:0,bottom:0,left:0,...e}}function ei(e){return typeof e!="number"?Lf(e):{top:e,right:e,bottom:e,left:e}}function _r(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Os(e,t,n){let{reference:r,floating:o}=e;const s=at(t),a=Wo(t),i=Lo(a),l=xt(t),u=s==="y",f=r.x+r.width/2-o.width/2,m=r.y+r.height/2-o.height/2,p=r[i]/2-o[i]/2;let h;switch(l){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:m};break;case"left":h={x:r.x-o.width,y:m};break;default:h={x:r.x,y:r.y}}switch(ln(t)){case"start":h[a]-=p*(n&&u?-1:1);break;case"end":h[a]+=p*(n&&u?-1:1);break}return h}async function Wf(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:p=!1,padding:h=0}=wt(t,e),b=ei(h),_=i[p?m==="floating"?"reference":"floating":m],y=_r(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:u,rootBoundary:f,strategy:l})),w=m==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),k=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},S=_r(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:x,strategy:l}):w);return{top:(y.top-S.top+b.top)/k.y,bottom:(S.bottom-y.bottom+b.bottom)/k.y,left:(y.left-S.left+b.left)/k.x,right:(S.right-y.right+b.right)/k.x}}const $f=50,Ff=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=a.detectOverflow?a:{...a,detectOverflow:Wf},l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:m}=Os(u,r,l),p=r,h=0;const b={};for(let v=0;v<s.length;v++){const _=s[v];if(!_)continue;const{name:y,fn:w}=_,{x,y:k,data:S,reset:C}=await w({x:f,y:m,initialPlacement:r,placement:p,strategy:o,middlewareData:b,rects:u,platform:i,elements:{reference:e,floating:t}});f=x??f,m=k??m,b[y]={...b[y],...S},C&&h<$f&&(h++,typeof C=="object"&&(C.placement&&(p=C.placement),C.rects&&(u=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:f,y:m}=Os(u,p,l)),v=-1)}return{x:f,y:m,placement:p,strategy:o,middlewareData:b}},Bf=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:l}=t,{element:u,padding:f=0}=wt(e,t)||{};if(u==null)return{};const m=ei(f),p={x:n,y:r},h=Wo(o),b=Lo(h),v=await a.getDimensions(u),_=h==="y",y=_?"top":"left",w=_?"bottom":"right",x=_?"clientHeight":"clientWidth",k=s.reference[b]+s.reference[h]-p[h]-s.floating[b],S=p[h]-s.reference[h],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let N=C?C[x]:0;(!N||!await(a.isElement==null?void 0:a.isElement(C)))&&(N=i.floating[x]||s.floating[b]);const E=k/2-S/2,D=N/2-v[b]/2-1,O=Dt(m[y],D),T=Dt(m[w],D),R=O,A=N-v[b]-T,I=N/2-v[b]/2+E,X=bo(R,I,A),P=!l.arrow&&ln(o)!=null&&I!==X&&s.reference[b]/2-(I<R?O:T)-v[b]/2<0,q=P?I<R?I-R:I-A:0;return{[h]:p[h]+q,data:{[h]:X,centerOffset:I-X-q,...P&&{alignmentOffset:q}},reset:P}}}),zf=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,..._}=wt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=xt(o),w=at(i),x=xt(i)===i,k=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=p||(x||!v?[vr(i)]:Rf(i)),C=b!=="none";!p&&C&&S.push(...If(i,v,b,k));const N=[i,...S],E=await l.detectOverflow(t,_),D=[];let O=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&D.push(E[y]),m){const I=Df(o,a,k);D.push(E[I[0]],E[I[1]])}if(O=[...O,{placement:o,overflows:D}],!D.every(I=>I<=0)){var T,R;const I=(((T=s.flip)==null?void 0:T.index)||0)+1,X=N[I];if(X&&(!(m==="alignment"?w!==at(X):!1)||O.every(W=>at(W.placement)===w?W.overflows[0]>0:!0)))return{data:{index:I,overflows:O},reset:{placement:X}};let P=(R=O.filter(q=>q.overflows[0]<=0).sort((q,W)=>q.overflows[1]-W.overflows[1])[0])==null?void 0:R.placement;if(!P)switch(h){case"bestFit":{var A;const q=(A=O.filter(W=>{if(C){const G=at(W.placement);return G===w||G==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(G=>G>0).reduce((G,j)=>G+j,0)]).sort((W,G)=>W[1]-G[1])[0])==null?void 0:A[0];q&&(P=q);break}case"initialPlacement":P=i;break}if(o!==P)return{reset:{placement:P}}}return{}}}};function Ds(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Rs(e){return Mf.some(t=>e[t]>=0)}const Hf=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=wt(e,t);switch(o){case"referenceHidden":{const a=await r.detectOverflow(t,{...s,elementContext:"reference"}),i=Ds(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Rs(i)}}}case"escaped":{const a=await r.detectOverflow(t,{...s,altBoundary:!0}),i=Ds(a,n.floating);return{data:{escapedOffsets:i,escaped:Rs(i)}}}default:return{}}}}},ti=new Set(["left","top"]);async function Yf(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=xt(n),i=ln(n),l=at(n)==="y",u=ti.has(a)?-1:1,f=s&&l?-1:1,m=wt(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:b}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return i&&typeof b=="number"&&(h=i==="end"?b*-1:b),l?{x:h*f,y:p*u}:{x:p*u,y:h*f}}const Vf=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,l=await Yf(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:a}}}}},qf=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:y=>{let{x:w,y:x}=y;return{x:w,y:x}}},...u}=wt(e,t),f={x:n,y:r},m=await s.detectOverflow(t,u),p=at(xt(o)),h=Io(p);let b=f[h],v=f[p];if(a){const y=h==="y"?"top":"left",w=h==="y"?"bottom":"right",x=b+m[y],k=b-m[w];b=bo(x,b,k)}if(i){const y=p==="y"?"top":"left",w=p==="y"?"bottom":"right",x=v+m[y],k=v-m[w];v=bo(x,v,k)}const _=l.fn({...t,[h]:b,[p]:v});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[h]:a,[p]:i}}}}}},Gf=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:l=!0,crossAxis:u=!0}=wt(e,t),f={x:n,y:r},m=at(o),p=Io(m);let h=f[p],b=f[m];const v=wt(i,t),_=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const x=p==="y"?"height":"width",k=s.reference[p]-s.floating[x]+_.mainAxis,S=s.reference[p]+s.reference[x]-_.mainAxis;h<k?h=k:h>S&&(h=S)}if(u){var y,w;const x=p==="y"?"width":"height",k=ti.has(xt(o)),S=s.reference[m]-s.floating[x]+(k&&((y=a.offset)==null?void 0:y[m])||0)+(k?0:_.crossAxis),C=s.reference[m]+s.reference[x]+(k?0:((w=a.offset)==null?void 0:w[m])||0)-(k?_.crossAxis:0);b<S?b=S:b>C&&(b=C)}return{[p]:h,[m]:b}}}},Uf=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:l=()=>{},...u}=wt(e,t),f=await a.detectOverflow(t,u),m=xt(o),p=ln(o),h=at(o)==="y",{width:b,height:v}=s.floating;let _,y;m==="top"||m==="bottom"?(_=m,y=p===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(y=m,_=p==="end"?"top":"bottom");const w=v-f.top-f.bottom,x=b-f.left-f.right,k=Dt(v-f[_],w),S=Dt(b-f[y],x),C=!t.middlewareData.shift;let N=k,E=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=w),C&&!p){const O=He(f.left,0),T=He(f.right,0),R=He(f.top,0),A=He(f.bottom,0);h?E=b-2*(O!==0||T!==0?O+T:He(f.left,f.right)):N=v-2*(R!==0||A!==0?R+A:He(f.top,f.bottom))}await l({...t,availableWidth:E,availableHeight:N});const D=await a.getDimensions(i.floating);return b!==D.width||v!==D.height?{reset:{rects:!0}}:{}}}};function Er(){return typeof window<"u"}function dn(e){return ni(e)?(e.nodeName||"").toLowerCase():"#document"}function Ye(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ut(e){var t;return(t=(ni(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ni(e){return Er()?e instanceof Node||e instanceof Ye(e).Node:!1}function Ae(e){return Er()?e instanceof Element||e instanceof Ye(e).Element:!1}function kt(e){return Er()?e instanceof HTMLElement||e instanceof Ye(e).HTMLElement:!1}function Ps(e){return!Er()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ye(e).ShadowRoot}function Tn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function Zf(e){return/^(table|td|th)$/.test(dn(e))}function jr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Xf=/transform|translate|scale|rotate|perspective|filter/,Kf=/paint|layout|strict|content/,$t=e=>!!e&&e!=="none";let Kr;function $o(e){const t=Ae(e)?et(e):e;return $t(t.transform)||$t(t.translate)||$t(t.scale)||$t(t.rotate)||$t(t.perspective)||!Fo()&&($t(t.backdropFilter)||$t(t.filter))||Xf.test(t.willChange||"")||Kf.test(t.contain||"")}function Qf(e){let t=Rt(e);for(;kt(t)&&!on(t);){if($o(t))return t;if(jr(t))return null;t=Rt(t)}return null}function Fo(){return Kr==null&&(Kr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Kr}function on(e){return/^(html|body|#document)$/.test(dn(e))}function et(e){return Ye(e).getComputedStyle(e)}function Mr(e){return Ae(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rt(e){if(dn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ps(e)&&e.host||ut(e);return Ps(t)?t.host:t}function ri(e){const t=Rt(e);return on(t)?e.ownerDocument?e.ownerDocument.body:e.body:kt(t)&&Tn(t)?t:ri(t)}function Nn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ri(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=Ye(o);if(s){const i=wo(a);return t.concat(a,a.visualViewport||[],Tn(o)?o:[],i&&n?Nn(i):[])}else return t.concat(o,Nn(o,[],n))}function wo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function oi(e){const t=et(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=kt(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=gr(n)!==s||gr(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function Bo(e){return Ae(e)?e:e.contextElement}function en(e){const t=Bo(e);if(!kt(t))return lt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=oi(t);let a=(s?gr(n.width):n.width)/r,i=(s?gr(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Jf=lt(0);function si(e){const t=Ye(e);return!Fo()||!t.visualViewport?Jf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function em(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ye(e)?!1:t}function Ht(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Bo(e);let a=lt(1);t&&(r?Ae(r)&&(a=en(r)):a=en(e));const i=em(s,n,r)?si(s):lt(0);let l=(o.left+i.x)/a.x,u=(o.top+i.y)/a.y,f=o.width/a.x,m=o.height/a.y;if(s){const p=Ye(s),h=r&&Ae(r)?Ye(r):r;let b=p,v=wo(b);for(;v&&r&&h!==b;){const _=en(v),y=v.getBoundingClientRect(),w=et(v),x=y.left+(v.clientLeft+parseFloat(w.paddingLeft))*_.x,k=y.top+(v.clientTop+parseFloat(w.paddingTop))*_.y;l*=_.x,u*=_.y,f*=_.x,m*=_.y,l+=x,u+=k,b=Ye(v),v=wo(b)}}return _r({width:f,height:m,x:l,y:u})}function Or(e,t){const n=Mr(e).scrollLeft;return t?t.left+n:Ht(ut(e)).left+n}function ai(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Or(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function tm(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=ut(r),i=t?jr(t.floating):!1;if(r===a||i&&s)return n;let l={scrollLeft:0,scrollTop:0},u=lt(1);const f=lt(0),m=kt(r);if((m||!m&&!s)&&((dn(r)!=="body"||Tn(a))&&(l=Mr(r)),m)){const h=Ht(r);u=en(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const p=a&&!m&&!s?ai(a,l):lt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+p.x,y:n.y*u.y-l.scrollTop*u.y+f.y+p.y}}function nm(e){return Array.from(e.getClientRects())}function rm(e){const t=ut(e),n=Mr(e),r=e.ownerDocument.body,o=He(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=He(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Or(e);const i=-n.scrollTop;return et(r).direction==="rtl"&&(a+=He(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}const Ts=25;function om(e,t){const n=Ye(e),r=ut(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,l=0;if(o){s=o.width,a=o.height;const f=Fo();(!f||f&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}const u=Or(r);if(u<=0){const f=r.ownerDocument,m=f.body,p=getComputedStyle(m),h=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,b=Math.abs(r.clientWidth-m.clientWidth-h);b<=Ts&&(s-=b)}else u<=Ts&&(s+=u);return{width:s,height:a,x:i,y:l}}function sm(e,t){const n=Ht(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=kt(e)?en(e):lt(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,l=o*s.x,u=r*s.y;return{width:a,height:i,x:l,y:u}}function As(e,t,n){let r;if(t==="viewport")r=om(e,n);else if(t==="document")r=rm(ut(e));else if(Ae(t))r=sm(t,n);else{const o=si(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return _r(r)}function ii(e,t){const n=Rt(e);return n===t||!Ae(n)||on(n)?!1:et(n).position==="fixed"||ii(n,t)}function am(e,t){const n=t.get(e);if(n)return n;let r=Nn(e,[],!1).filter(i=>Ae(i)&&dn(i)!=="body"),o=null;const s=et(e).position==="fixed";let a=s?Rt(e):e;for(;Ae(a)&&!on(a);){const i=et(a),l=$o(a);!l&&i.position==="fixed"&&(o=null),(s?!l&&!o:!l&&i.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Tn(a)&&!l&&ii(e,a))?r=r.filter(f=>f!==a):o=i,a=Rt(a)}return t.set(e,r),r}function im(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?jr(t)?[]:am(t,this._c):[].concat(n),r],i=As(t,a[0],o);let l=i.top,u=i.right,f=i.bottom,m=i.left;for(let p=1;p<a.length;p++){const h=As(t,a[p],o);l=He(h.top,l),u=Dt(h.right,u),f=Dt(h.bottom,f),m=He(h.left,m)}return{width:u-m,height:f-l,x:m,y:l}}function cm(e){const{width:t,height:n}=oi(e);return{width:t,height:n}}function lm(e,t,n){const r=kt(t),o=ut(t),s=n==="fixed",a=Ht(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const l=lt(0);function u(){l.x=Or(o)}if(r||!r&&!s)if((dn(t)!=="body"||Tn(o))&&(i=Mr(t)),r){const h=Ht(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&u();s&&!r&&o&&u();const f=o&&!r&&!s?ai(o,i):lt(0),m=a.left+i.scrollLeft-l.x-f.x,p=a.top+i.scrollTop-l.y-f.y;return{x:m,y:p,width:a.width,height:a.height}}function Qr(e){return et(e).position==="static"}function Is(e,t){if(!kt(e)||et(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ut(e)===n&&(n=n.ownerDocument.body),n}function ci(e,t){const n=Ye(e);if(jr(e))return n;if(!kt(e)){let o=Rt(e);for(;o&&!on(o);){if(Ae(o)&&!Qr(o))return o;o=Rt(o)}return n}let r=Is(e,t);for(;r&&Zf(r)&&Qr(r);)r=Is(r,t);return r&&on(r)&&Qr(r)&&!$o(r)?n:r||Qf(e)||n}const dm=async function(e){const t=this.getOffsetParent||ci,n=this.getDimensions,r=await n(e.floating);return{reference:lm(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function um(e){return et(e).direction==="rtl"}const fm={convertOffsetParentRelativeRectToViewportRelativeRect:tm,getDocumentElement:ut,getClippingRect:im,getOffsetParent:ci,getElementRects:dm,getClientRects:nm,getDimensions:cm,getScale:en,isElement:Ae,isRTL:um};function li(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mm(e,t){let n=null,r;const o=ut(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),s();const u=e.getBoundingClientRect(),{left:f,top:m,width:p,height:h}=u;if(i||t(),!p||!h)return;const b=er(m),v=er(o.clientWidth-(f+p)),_=er(o.clientHeight-(m+h)),y=er(f),x={rootMargin:-b+"px "+-v+"px "+-_+"px "+-y+"px",threshold:He(0,Dt(1,l))||1};let k=!0;function S(C){const N=C[0].intersectionRatio;if(N!==l){if(!k)return a();N?a(!1,N):r=setTimeout(()=>{a(!1,1e-7)},1e3)}N===1&&!li(u,e.getBoundingClientRect())&&a(),k=!1}try{n=new IntersectionObserver(S,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return a(!0),s}function di(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Bo(e),f=o||s?[...u?Nn(u):[],...t?Nn(t):[]]:[];f.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const m=u&&i?mm(u,n):null;let p=-1,h=null;a&&(h=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),u&&!l&&h.observe(u),t&&h.observe(t));let b,v=l?Ht(e):null;l&&_();function _(){const y=Ht(e);v&&!li(v,y)&&n(),v=y,b=requestAnimationFrame(_)}return n(),()=>{var y;f.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),m?.(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(b)}}const hm=Vf,pm=qf,gm=zf,vm=Uf,_m=Hf,Ls=Bf,bm=Gf,ym=(e,t,n)=>{const r=new Map,o={platform:fm,...n},s={...o.platform,_c:r};return Ff(e,t,{...o,platform:s})};var wm=typeof document<"u",xm=function(){},ur=wm?g.useLayoutEffect:xm;function br(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!br(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!br(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ui(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ws(e,t){const n=ui(e);return Math.round(t*n)/n}function Jr(e){const t=d.useRef(e);return ur(()=>{t.current=e}),t}function fi(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:l,open:u}=e,[f,m]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=d.useState(r);br(p,r)||h(r);const[b,v]=d.useState(null),[_,y]=d.useState(null),w=d.useCallback(W=>{W!==C.current&&(C.current=W,v(W))},[]),x=d.useCallback(W=>{W!==N.current&&(N.current=W,y(W))},[]),k=s||b,S=a||_,C=d.useRef(null),N=d.useRef(null),E=d.useRef(f),D=l!=null,O=Jr(l),T=Jr(o),R=Jr(u),A=d.useCallback(()=>{if(!C.current||!N.current)return;const W={placement:t,strategy:n,middleware:p};T.current&&(W.platform=T.current),ym(C.current,N.current,W).then(G=>{const j={...G,isPositioned:R.current!==!1};I.current&&!br(E.current,j)&&(E.current=j,ya.flushSync(()=>{m(j)}))})},[p,t,n,T,R]);ur(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,m(W=>({...W,isPositioned:!1})))},[u]);const I=d.useRef(!1);ur(()=>(I.current=!0,()=>{I.current=!1}),[]),ur(()=>{if(k&&(C.current=k),S&&(N.current=S),k&&S){if(O.current)return O.current(k,S,A);A()}},[k,S,A,O,D]);const X=d.useMemo(()=>({reference:C,floating:N,setReference:w,setFloating:x}),[w,x]),P=d.useMemo(()=>({reference:k,floating:S}),[k,S]),q=d.useMemo(()=>{const W={position:n,left:0,top:0};if(!P.floating)return W;const G=Ws(P.floating,f.x),j=Ws(P.floating,f.y);return i?{...W,transform:"translate("+G+"px, "+j+"px)",...ui(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:j}},[n,i,P.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:A,refs:X,elements:P,floatingStyles:q}),[f,A,X,P,q])}const Cm=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Ls({element:r.current,padding:o}).fn(n):{}:r?Ls({element:r,padding:o}).fn(n):{}}}},mi=(e,t)=>{const n=hm(e);return{name:n.name,fn:n.fn,options:[e,t]}},km=(e,t)=>{const n=pm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Sm=(e,t)=>({fn:bm(e).fn,options:[e,t]}),hi=(e,t)=>{const n=gm(e);return{name:n.name,fn:n.fn,options:[e,t]}},pi=(e,t)=>{const n=vm(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nm=(e,t)=>{const n=_m(e);return{name:n.name,fn:n.fn,options:[e,t]}},Em=(e,t)=>{const n=Cm(e);return{name:n.name,fn:n.fn,options:[e,t]}};var jm="Arrow",gi=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return c.jsx(Ie.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});gi.displayName=jm;var Mm=gi;function Om(e){const[t,n]=d.useState(void 0);return Ot(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,i=u.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var zo="Popper",[vi,Dr]=Sr(zo),[Dm,_i]=vi(zo),bi=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return c.jsx(Dm,{scope:t,anchor:r,onAnchorChange:o,children:n})};bi.displayName=zo;var yi="PopperAnchor",wi=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=_i(yi,n),a=d.useRef(null),i=qe(t,a),l=d.useRef(null);return d.useEffect(()=>{const u=l.current;l.current=r?.current||a.current,u!==l.current&&s.onAnchorChange(l.current)}),r?null:c.jsx(Ie.div,{...o,ref:i})});wi.displayName=yi;var Ho="PopperContent",[Rm,Pm]=vi(Ho),xi=d.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:m="partial",hideWhenDetached:p=!1,updatePositionStrategy:h="optimized",onPlaced:b,...v}=e,_=_i(Ho,n),[y,w]=d.useState(null),x=qe(t,fe=>w(fe)),[k,S]=d.useState(null),C=Om(k),N=C?.width??0,E=C?.height??0,D=r+(s!=="center"?"-"+s:""),O=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},T=Array.isArray(u)?u:[u],R=T.length>0,A={padding:O,boundary:T.filter(Am),altBoundary:R},{refs:I,floatingStyles:X,placement:P,isPositioned:q,middlewareData:W}=fi({strategy:"fixed",placement:D,whileElementsMounted:(...fe)=>di(...fe,{animationFrame:h==="always"}),elements:{reference:_.anchor},middleware:[mi({mainAxis:o+E,alignmentAxis:a}),l&&km({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?Sm():void 0,...A}),l&&hi({...A}),pi({...A,apply:({elements:fe,rects:Me,availableWidth:se,availableHeight:$})=>{const{width:de,height:ke}=Me.reference,Oe=fe.floating.style;Oe.setProperty("--radix-popper-available-width",`${se}px`),Oe.setProperty("--radix-popper-available-height",`${$}px`),Oe.setProperty("--radix-popper-anchor-width",`${de}px`),Oe.setProperty("--radix-popper-anchor-height",`${ke}px`)}}),k&&Em({element:k,padding:i}),Im({arrowWidth:N,arrowHeight:E}),p&&Nm({strategy:"referenceHidden",...A})]}),[G,j]=Si(P),K=rn(b);Ot(()=>{q&&K?.()},[q,K]);const ve=W.arrow?.x,V=W.arrow?.y,ne=W.arrow?.centerOffset!==0,[ee,re]=d.useState();return Ot(()=>{y&&re(window.getComputedStyle(y).zIndex)},[y]),c.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:q?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[W.transformOrigin?.x,W.transformOrigin?.y].join(" "),...W.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(Rm,{scope:n,placedSide:G,onArrowChange:S,arrowX:ve,arrowY:V,shouldHideArrow:ne,children:c.jsx(Ie.div,{"data-side":G,"data-align":j,...v,ref:x,style:{...v.style,animation:q?void 0:"none"}})})})});xi.displayName=Ho;var Ci="PopperArrow",Tm={top:"bottom",right:"left",bottom:"top",left:"right"},ki=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Pm(Ci,r),a=Tm[s.placedSide];return c.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:c.jsx(Mm,{...o,ref:n,style:{...o.style,display:"block"}})})});ki.displayName=Ci;function Am(e){return e!==null}var Im=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[u,f]=Si(n),m={start:"0%",center:"50%",end:"100%"}[f],p=(o.arrow?.x??0)+i/2,h=(o.arrow?.y??0)+l/2;let b="",v="";return u==="bottom"?(b=a?m:`${p}px`,v=`${-l}px`):u==="top"?(b=a?m:`${p}px`,v=`${r.floating.height+l}px`):u==="right"?(b=`${-l}px`,v=a?m:`${h}px`):u==="left"&&(b=`${r.floating.width+l}px`,v=a?m:`${h}px`),{data:{x:b,y:v}}}});function Si(e){const[t,n="center"]=e.split("-");return[t,n]}var Ni=bi,Yo=wi,Ei=xi,ji=ki,Lm="Portal",Rr=d.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=d.useState(!1);Ot(()=>s(!0),[]);const a=n||o&&globalThis?.document?.body;return a?Rn.createPortal(c.jsx(Ie.div,{...r,ref:t}),a):null});Rr.displayName=Lm;function Wm(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var Tt=e=>{const{present:t,children:n}=e,r=$m(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),s=qe(r.ref,Fm(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:s}):null};Tt.displayName="Presence";function $m(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),s=d.useRef("none"),a=e?"mounted":"unmounted",[i,l]=Wm(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const u=tr(r.current);s.current=i==="mounted"?u:"none"},[i]),Ot(()=>{const u=r.current,f=o.current;if(f!==e){const p=s.current,h=tr(u);e?l("MOUNT"):h==="none"||u?.display==="none"?l("UNMOUNT"):l(f&&p!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ot(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,m=h=>{const v=tr(r.current).includes(CSS.escape(h.animationName));if(h.target===t&&v&&(l("ANIMATION_END"),!o.current)){const _=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=_)})}},p=h=>{h.target===t&&(s.current=tr(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:d.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function tr(e){return e?.animationName||"none"}function Fm(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Bm=Symbol("radix.slottable");function zm(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Bm,t}var Hm=d[" useInsertionEffect ".trim().toString()]||Ot;function Vo({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=Ym({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const f=d.useRef(e!==void 0);d.useEffect(()=>{const m=f.current;m!==i&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,r])}const u=d.useCallback(f=>{if(i){const m=Vm(f)?f(e):f;m!==e&&a.current?.(m)}else s(f)},[i,e,s,a]);return[l,u]}function Ym({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),s=d.useRef(t);return Hm(()=>{s.current=t},[t]),d.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function Vm(e){return typeof e=="function"}var qm=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Gm="VisuallyHidden",Mi=d.forwardRef((e,t)=>c.jsx(Ie.span,{...e,ref:t,style:{...qm,...e.style}}));Mi.displayName=Gm;var Um=Mi,[Pr]=Sr("Tooltip",[Dr]),Tr=Dr(),Oi="TooltipProvider",Zm=700,xo="tooltip.open",[Xm,qo]=Pr(Oi),Di=e=>{const{__scopeTooltip:t,delayDuration:n=Zm,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=d.useRef(!0),i=d.useRef(!1),l=d.useRef(0);return d.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),c.jsx(Xm,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:d.useCallback(u=>{i.current=u},[]),disableHoverableContent:o,children:s})};Di.displayName=Oi;var En="Tooltip",[Km,An]=Pr(En),Ri=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:i}=e,l=qo(En,e.__scopeTooltip),u=Tr(t),[f,m]=d.useState(null),p=Sn(),h=d.useRef(0),b=a??l.disableHoverableContent,v=i??l.delayDuration,_=d.useRef(!1),[y,w]=Vo({prop:r,defaultProp:o??!1,onChange:N=>{N?(l.onOpen(),document.dispatchEvent(new CustomEvent(xo))):l.onClose(),s?.(N)},caller:En}),x=d.useMemo(()=>y?_.current?"delayed-open":"instant-open":"closed",[y]),k=d.useCallback(()=>{window.clearTimeout(h.current),h.current=0,_.current=!1,w(!0)},[w]),S=d.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),C=d.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{_.current=!0,w(!0),h.current=0},v)},[v,w]);return d.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),c.jsx(Ni,{...u,children:c.jsx(Km,{scope:t,contentId:p,open:y,stateAttribute:x,trigger:f,onTriggerChange:m,onTriggerEnter:d.useCallback(()=>{l.isOpenDelayedRef.current?C():k()},[l.isOpenDelayedRef,C,k]),onTriggerLeave:d.useCallback(()=>{b?S():(window.clearTimeout(h.current),h.current=0)},[S,b]),onOpen:k,onClose:S,disableHoverableContent:b,children:n})})};Ri.displayName=En;var Co="TooltipTrigger",Pi=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=An(Co,n),s=qo(Co,n),a=Tr(n),i=d.useRef(null),l=qe(t,i,o.onTriggerChange),u=d.useRef(!1),f=d.useRef(!1),m=d.useCallback(()=>u.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),c.jsx(Yo,{asChild:!0,...a,children:c.jsx(Ie.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:je(e.onPointerMove,p=>{p.pointerType!=="touch"&&!f.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:je(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:je(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:je(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:je(e.onBlur,o.onClose),onClick:je(e.onClick,o.onClose)})})});Pi.displayName=Co;var Go="TooltipPortal",[Qm,Jm]=Pr(Go,{forceMount:void 0}),Ti=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=An(Go,t);return c.jsx(Qm,{scope:t,forceMount:n,children:c.jsx(Tt,{present:n||s.open,children:c.jsx(Rr,{asChild:!0,container:o,children:r})})})};Ti.displayName=Go;var sn="TooltipContent",Ai=d.forwardRef((e,t)=>{const n=Jm(sn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=An(sn,e.__scopeTooltip);return c.jsx(Tt,{present:r||a.open,children:a.disableHoverableContent?c.jsx(Ii,{side:o,...s,ref:t}):c.jsx(e1,{side:o,...s,ref:t})})}),e1=d.forwardRef((e,t)=>{const n=An(sn,e.__scopeTooltip),r=qo(sn,e.__scopeTooltip),o=d.useRef(null),s=qe(t,o),[a,i]=d.useState(null),{trigger:l,onClose:u}=n,f=o.current,{onPointerInTransitChange:m}=r,p=d.useCallback(()=>{i(null),m(!1)},[m]),h=d.useCallback((b,v)=>{const _=b.currentTarget,y={x:b.clientX,y:b.clientY},w=s1(y,_.getBoundingClientRect()),x=a1(y,w),k=i1(v.getBoundingClientRect()),S=l1([...x,...k]);i(S),m(!0)},[m]);return d.useEffect(()=>()=>p(),[p]),d.useEffect(()=>{if(l&&f){const b=_=>h(_,f),v=_=>h(_,l);return l.addEventListener("pointerleave",b),f.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",b),f.removeEventListener("pointerleave",v)}}},[l,f,h,p]),d.useEffect(()=>{if(a){const b=v=>{const _=v.target,y={x:v.clientX,y:v.clientY},w=l?.contains(_)||f?.contains(_),x=!c1(y,a);w?p():x&&(p(),u())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[l,f,a,u,p]),c.jsx(Ii,{...e,ref:s})}),[t1,n1]=Pr(En,{isInside:!1}),r1=zm("TooltipContent"),Ii=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,l=An(sn,n),u=Tr(n),{onClose:f}=l;return d.useEffect(()=>(document.addEventListener(xo,f),()=>document.removeEventListener(xo,f)),[f]),d.useEffect(()=>{if(l.trigger){const m=p=>{p.target?.contains(l.trigger)&&f()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[l.trigger,f]),c.jsx(Nr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:m=>m.preventDefault(),onDismiss:f,children:c.jsxs(Ei,{"data-state":l.stateAttribute,...u,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(r1,{children:r}),c.jsx(t1,{scope:n,isInside:!0,children:c.jsx(Um,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Ai.displayName=sn;var Li="TooltipArrow",o1=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Tr(n);return n1(Li,n).isInside?null:c.jsx(ji,{...o,...r,ref:t})});o1.displayName=Li;function s1(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function a1(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function i1(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function c1(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],l=t[a],u=i.x,f=i.y,m=l.x,p=l.y;f>r!=p>r&&n<(m-u)*(r-f)/(p-f)+u&&(o=!o)}return o}function l1(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),d1(t)}function d1(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var u1=Di,f1=Ri,m1=Pi,h1=Ti,Wi=Ai;const p1=u1,g1=f1,v1=m1,$i=d.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(h1,{children:c.jsx(Wi,{ref:r,sideOffset:t,className:J("z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-tooltip-content-transform-origin)",e),...n})}));$i.displayName=Wi.displayName;const _1="_anchor_rpda1_1",b1="_tooltip_rpda1_6",$s={anchor:_1,tooltip:b1},Fs=e=>typeof e=="string"?document.getElementById(e):"current"in e?e.current:e,y1=(e="top")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},Bs=(e,t)=>typeof e=="number"?e:e?.[t]??0,Uo=({children:e,target:t,placement:n="top",popperClassName:r,isOpen:o,toggle:s,delay:a,autohide:i=!0})=>{const[l,u]=g.useState(!1),[f,m]=g.useState(null),p=o??l,{side:h,align:b}=g.useMemo(()=>y1(n),[n]),v=g.useCallback(()=>{const y=Fs(t);m(y?.getBoundingClientRect()??null)},[t]),_=g.useCallback(y=>{o===void 0&&u(y),s?.()},[o,s]);return g.useEffect(()=>{let y=null,w=null,x=null,k=null;const S=()=>{x&&clearTimeout(x),k&&clearTimeout(k),x=null,k=null},C=()=>{S(),v(),x=setTimeout(()=>_(!0),Bs(a,"show"))},N=()=>{i&&(S(),k=setTimeout(()=>_(!1),Bs(a,"hide")))},E=()=>{y&&(y.removeEventListener("mouseenter",C),y.removeEventListener("mouseleave",N),y.removeEventListener("focus",C),y.removeEventListener("blur",N),window.removeEventListener("scroll",v,!0),window.removeEventListener("resize",v),y=null)},D=A=>{y=A,v(),A.addEventListener("mouseenter",C),A.addEventListener("mouseleave",N),A.addEventListener("focus",C),A.addEventListener("blur",N),window.addEventListener("scroll",v,!0),window.addEventListener("resize",v)};let O=0;const T=60,R=()=>{const A=Fs(t);if(A){D(A);return}O>=T||(O+=1,w=requestAnimationFrame(R))};return R(),()=>{w!==null&&cancelAnimationFrame(w),S(),E()}},[i,a,_,t,v]),f?c.jsx(p1,{delayDuration:0,children:c.jsxs(g1,{open:p,onOpenChange:_,children:[Ka(c.jsx(v1,{asChild:!0,children:c.jsx("span",{className:$s.anchor,style:{left:f.left,top:f.top,width:f.width,height:f.height}})})),c.jsx($i,{side:h,align:b,className:M($s.tooltip,r),children:e})]})}):null};var eo=0;function Fi(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??zs()),document.body.insertAdjacentElement("beforeend",e[1]??zs()),eo++,()=>{eo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),eo--}},[])}function zs(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var to="focusScope.autoFocusOnMount",no="focusScope.autoFocusOnUnmount",Hs={bubbles:!1,cancelable:!0},w1="FocusScope",Zo=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,l]=d.useState(null),u=rn(o),f=rn(s),m=d.useRef(null),p=qe(t,v=>l(v)),h=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let v=function(x){if(h.paused||!i)return;const k=x.target;i.contains(k)?m.current=k:Mt(m.current,{select:!0})},_=function(x){if(h.paused||!i)return;const k=x.relatedTarget;k!==null&&(i.contains(k)||Mt(m.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Mt(i)};document.addEventListener("focusin",v),document.addEventListener("focusout",_);const w=new MutationObserver(y);return i&&w.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",_),w.disconnect()}}},[r,i,h.paused]),d.useEffect(()=>{if(i){Vs.add(h);const v=document.activeElement;if(!i.contains(v)){const y=new CustomEvent(to,Hs);i.addEventListener(to,u),i.dispatchEvent(y),y.defaultPrevented||(x1(E1(Bi(i)),{select:!0}),document.activeElement===v&&Mt(i))}return()=>{i.removeEventListener(to,u),setTimeout(()=>{const y=new CustomEvent(no,Hs);i.addEventListener(no,f),i.dispatchEvent(y),y.defaultPrevented||Mt(v??document.body,{select:!0}),i.removeEventListener(no,f),Vs.remove(h)},0)}}},[i,u,f,h]);const b=d.useCallback(v=>{if(!n&&!r||h.paused)return;const _=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,y=document.activeElement;if(_&&y){const w=v.currentTarget,[x,k]=C1(w);x&&k?!v.shiftKey&&y===k?(v.preventDefault(),n&&Mt(x,{select:!0})):v.shiftKey&&y===x&&(v.preventDefault(),n&&Mt(k,{select:!0})):y===w&&v.preventDefault()}},[n,r,h.paused]);return c.jsx(Ie.div,{tabIndex:-1,...a,ref:p,onKeyDown:b})});Zo.displayName=w1;function x1(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Mt(r,{select:t}),document.activeElement!==n)return}function C1(e){const t=Bi(e),n=Ys(t,e),r=Ys(t.reverse(),e);return[n,r]}function Bi(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ys(e,t){for(const n of e)if(!k1(n,{upTo:t}))return n}function k1(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function S1(e){return e instanceof HTMLInputElement&&"select"in e}function Mt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&S1(e)&&t&&e.select()}}var Vs=N1();function N1(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=qs(e,t),e.unshift(t)},remove(t){e=qs(e,t),e[0]?.resume()}}}function qs(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function E1(e){return e.filter(t=>t.tagName!=="A")}function j1(e){const t=M1(e),n=d.forwardRef((r,o)=>{const{children:s,...a}=r,i=d.Children.toArray(s),l=i.find(D1);if(l){const u=l.props.children,f=i.map(m=>m===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:m);return c.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function M1(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const a=P1(o),i=R1(s,o.props);return o.type!==d.Fragment&&(i.ref=r?Pn(r,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var O1=Symbol("radix.slottable");function D1(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===O1}function R1(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function P1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var T1=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ut=new WeakMap,nr=new WeakMap,rr={},ro=0,zi=function(e){return e&&(e.host||zi(e.parentNode))},A1=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=zi(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},I1=function(e,t,n,r){var o=A1(t,Array.isArray(e)?e:[e]);rr[n]||(rr[n]=new WeakMap);var s=rr[n],a=[],i=new Set,l=new Set(o),u=function(m){!m||i.has(m)||(i.add(m),u(m.parentNode))};o.forEach(u);var f=function(m){!m||l.has(m)||Array.prototype.forEach.call(m.children,function(p){if(i.has(p))f(p);else try{var h=p.getAttribute(r),b=h!==null&&h!=="false",v=(Ut.get(p)||0)+1,_=(s.get(p)||0)+1;Ut.set(p,v),s.set(p,_),a.push(p),v===1&&b&&nr.set(p,!0),_===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",p,y)}})};return f(t),i.clear(),ro++,function(){a.forEach(function(m){var p=Ut.get(m)-1,h=s.get(m)-1;Ut.set(m,p),s.set(m,h),p||(nr.has(m)||m.removeAttribute(r),nr.delete(m)),h||m.removeAttribute(n)}),ro--,ro||(Ut=new WeakMap,Ut=new WeakMap,nr=new WeakMap,rr={})}},Hi=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=T1(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),I1(r,o,n,"aria-hidden")):function(){return null}},st=function(){return st=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},st.apply(this,arguments)};function Yi(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function L1(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var fr="right-scroll-bar-position",mr="width-before-scroll-bar",W1="with-scroll-bars-hidden",$1="--removed-body-scroll-bar-size";function oo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function F1(e,t){var n=g.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var B1=typeof window<"u"?d.useLayoutEffect:d.useEffect,Gs=new WeakMap;function z1(e,t){var n=F1(null,function(r){return e.forEach(function(o){return oo(o,r)})});return B1(function(){var r=Gs.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(i){s.has(i)||oo(i,null)}),s.forEach(function(i){o.has(i)||oo(i,a)})}Gs.set(n,e)},[e]),n}function H1(e){return e}function Y1(e,t){t===void 0&&(t=H1);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var l=function(){var f=a;a=[],f.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return o}function V1(e){e===void 0&&(e={});var t=Y1(null);return t.options=st({async:!0,ssr:!1},e),t}var Vi=function(e){var t=e.sideCar,n=Yi(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,st({},n))};Vi.isSideCarExport=!0;function q1(e,t){return e.useMedium(t),Vi}var qi=V1(),so=function(){},Ar=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:so,onWheelCapture:so,onTouchMoveCapture:so}),o=r[0],s=r[1],a=e.forwardProps,i=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,m=e.shards,p=e.sideCar,h=e.noRelative,b=e.noIsolation,v=e.inert,_=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,x=e.gapMode,k=Yi(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,C=z1([n,t]),N=st(st({},k),o);return d.createElement(d.Fragment,null,f&&d.createElement(S,{sideCar:qi,removeScrollBar:u,shards:m,noRelative:h,noIsolation:b,inert:v,setCallbacks:s,allowPinchZoom:!!_,lockRef:n,gapMode:x}),a?d.cloneElement(d.Children.only(i),st(st({},N),{ref:C})):d.createElement(w,st({},N,{className:l,ref:C}),i))});Ar.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ar.classNames={fullWidth:mr,zeroRight:fr};var G1=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function U1(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=G1();return t&&e.setAttribute("nonce",t),e}function Z1(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function X1(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var K1=function(){var e=0,t=null;return{add:function(n){e==0&&(t=U1())&&(Z1(t,n),X1(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Q1=function(){var e=K1();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Gi=function(){var e=Q1(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},J1={left:0,top:0,right:0,gap:0},ao=function(e){return parseInt(e||"",10)||0},eh=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ao(n),ao(r),ao(o)]},th=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return J1;var t=eh(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},nh=Gi(),tn="data-scroll-locked",rh=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
2
+ .`.concat(W1,` {
3
3
  overflow: hidden `).concat(r,`;
4
4
  padding-right: `).concat(i,"px ").concat(r,`;
5
5
  }
@@ -33,14 +33,14 @@
33
33
  }
34
34
 
35
35
  body[`).concat(tn,`] {
36
- `).concat(W1,": ").concat(i,`px;
36
+ `).concat($1,": ").concat(i,`px;
37
37
  }
38
- `)},Us=function(){var e=parseInt(document.body.getAttribute(tn)||"0",10);return isFinite(e)?e:0},rh=function(){d.useEffect(function(){return document.body.setAttribute(tn,(Us()+1).toString()),function(){var e=Us()-1;e<=0?document.body.removeAttribute(tn):document.body.setAttribute(tn,e.toString())}},[])},oh=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;rh();var s=d.useMemo(function(){return eh(o)},[o]);return d.createElement(th,{styles:nh(s,!t,o,n?"":"!important")})},ko=!1;if(typeof window<"u")try{var or=Object.defineProperty({},"passive",{get:function(){return ko=!0,!0}});window.addEventListener("test",or,or),window.removeEventListener("test",or,or)}catch{ko=!1}var Zt=ko?{passive:!1}:!1,sh=function(e){return e.tagName==="TEXTAREA"},Gi=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!sh(e)&&n[t]==="visible")},ah=function(e){return Gi(e,"overflowY")},ih=function(e){return Gi(e,"overflowX")},Zs=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ui(e,r);if(o){var s=Zi(e,r),a=s[1],i=s[2];if(a>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ch=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},lh=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ui=function(e,t){return e==="v"?ah(t):ih(t)},Zi=function(e,t){return e==="v"?ch(t):lh(t)},dh=function(e,t){return e==="h"&&t==="rtl"?-1:1},uh=function(e,t,n,r,o){var s=dh(e,window.getComputedStyle(t).direction),a=s*r,i=n.target,l=t.contains(i),u=!1,f=a>0,m=0,p=0;do{if(!i)break;var h=Zi(e,i),b=h[0],v=h[1],_=h[2],y=v-_-s*b;(b||y)&&Ui(e,i)&&(m+=y,p+=b);var w=i.parentNode;i=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(f&&Math.abs(m)<1||!f&&Math.abs(p)<1)&&(u=!0),u},sr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Xs=function(e){return[e.deltaX,e.deltaY]},Ks=function(e){return e&&"current"in e?e.current:e},fh=function(e,t){return e[0]===t[0]&&e[1]===t[1]},mh=function(e){return`
38
+ `)},Us=function(){var e=parseInt(document.body.getAttribute(tn)||"0",10);return isFinite(e)?e:0},oh=function(){d.useEffect(function(){return document.body.setAttribute(tn,(Us()+1).toString()),function(){var e=Us()-1;e<=0?document.body.removeAttribute(tn):document.body.setAttribute(tn,e.toString())}},[])},sh=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;oh();var s=d.useMemo(function(){return th(o)},[o]);return d.createElement(nh,{styles:rh(s,!t,o,n?"":"!important")})},ko=!1;if(typeof window<"u")try{var or=Object.defineProperty({},"passive",{get:function(){return ko=!0,!0}});window.addEventListener("test",or,or),window.removeEventListener("test",or,or)}catch{ko=!1}var Zt=ko?{passive:!1}:!1,ah=function(e){return e.tagName==="TEXTAREA"},Ui=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ah(e)&&n[t]==="visible")},ih=function(e){return Ui(e,"overflowY")},ch=function(e){return Ui(e,"overflowX")},Zs=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Zi(e,r);if(o){var s=Xi(e,r),a=s[1],i=s[2];if(a>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},lh=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},dh=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Zi=function(e,t){return e==="v"?ih(t):ch(t)},Xi=function(e,t){return e==="v"?lh(t):dh(t)},uh=function(e,t){return e==="h"&&t==="rtl"?-1:1},fh=function(e,t,n,r,o){var s=uh(e,window.getComputedStyle(t).direction),a=s*r,i=n.target,l=t.contains(i),u=!1,f=a>0,m=0,p=0;do{if(!i)break;var h=Xi(e,i),b=h[0],v=h[1],_=h[2],y=v-_-s*b;(b||y)&&Zi(e,i)&&(m+=y,p+=b);var w=i.parentNode;i=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(f&&Math.abs(m)<1||!f&&Math.abs(p)<1)&&(u=!0),u},sr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Xs=function(e){return[e.deltaX,e.deltaY]},Ks=function(e){return e&&"current"in e?e.current:e},mh=function(e,t){return e[0]===t[0]&&e[1]===t[1]},hh=function(e){return`
39
39
  .block-interactivity-`.concat(e,` {pointer-events: none;}
40
40
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},hh=0,Xt=[];function ph(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(hh++)[0],s=d.useState(qi)[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=I1([e.lockRef.current],(e.shards||[]).map(Ks),!0).filter(Boolean);return v.forEach(function(_){return _.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=d.useCallback(function(v,_){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!a.current.allowPinchZoom;var y=sr(v),w=n.current,x="deltaX"in v?v.deltaX:w[0]-y[0],k="deltaY"in v?v.deltaY:w[1]-y[1],N,C=v.target,S=Math.abs(x)>Math.abs(k)?"h":"v";if("touches"in v&&S==="h"&&C.type==="range")return!1;var E=window.getSelection(),D=E&&E.anchorNode,O=D?D===C||D.contains(C):!1;if(O)return!1;var T=Zs(S,C);if(!T)return!0;if(T?N=S:(N=S==="v"?"h":"v",T=Zs(S,C)),!T)return!1;if(!r.current&&"changedTouches"in v&&(x||k)&&(r.current=N),!N)return!0;var P=r.current||N;return uh(P,_,v,P==="h"?x:k)},[]),l=d.useCallback(function(v){var _=v;if(!(!Xt.length||Xt[Xt.length-1]!==s)){var y="deltaY"in _?Xs(_):sr(_),w=t.current.filter(function(N){return N.name===_.type&&(N.target===_.target||_.target===N.shadowParent)&&fh(N.delta,y)})[0];if(w&&w.should){_.cancelable&&_.preventDefault();return}if(!w){var x=(a.current.shards||[]).map(Ks).filter(Boolean).filter(function(N){return N.contains(_.target)}),k=x.length>0?i(_,x[0]):!a.current.noIsolation;k&&_.cancelable&&_.preventDefault()}}},[]),u=d.useCallback(function(v,_,y,w){var x={name:v,delta:_,target:y,should:w,shadowParent:gh(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(k){return k!==x})},1)},[]),f=d.useCallback(function(v){n.current=sr(v),r.current=void 0},[]),m=d.useCallback(function(v){u(v.type,Xs(v),v.target,i(v,e.lockRef.current))},[]),p=d.useCallback(function(v){u(v.type,sr(v),v.target,i(v,e.lockRef.current))},[]);d.useEffect(function(){return Xt.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Zt),document.addEventListener("touchmove",l,Zt),document.addEventListener("touchstart",f,Zt),function(){Xt=Xt.filter(function(v){return v!==s}),document.removeEventListener("wheel",l,Zt),document.removeEventListener("touchmove",l,Zt),document.removeEventListener("touchstart",f,Zt)}},[]);var h=e.removeScrollBar,b=e.inert;return d.createElement(d.Fragment,null,b?d.createElement(s,{styles:mh(o)}):null,h?d.createElement(oh,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function gh(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const vh=V1(Vi,ph);var Xo=d.forwardRef(function(e,t){return d.createElement(Ar,st({},e,{ref:t,sideCar:vh}))});Xo.classNames=Ar.classNames;var Ir="Popover",[Xi]=Nr(Ir,[Dr]),In=Dr(),[_h,At]=Xi(Ir),Ki=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,i=In(t),l=d.useRef(null),[u,f]=d.useState(!1),[m,p]=Vo({prop:r,defaultProp:o??!1,onChange:s,caller:Ir});return c.jsx(Ni,{...i,children:c.jsx(_h,{scope:t,contentId:Nn(),triggerRef:l,open:m,onOpenChange:p,onOpenToggle:d.useCallback(()=>p(h=>!h),[p]),hasCustomAnchor:u,onCustomAnchorAdd:d.useCallback(()=>f(!0),[]),onCustomAnchorRemove:d.useCallback(()=>f(!1),[]),modal:a,children:n})})};Ki.displayName=Ir;var Qi="PopoverAnchor",bh=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=At(Qi,n),s=In(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=o;return d.useEffect(()=>(a(),()=>i()),[a,i]),c.jsx(Yo,{...s,...r,ref:t})});bh.displayName=Qi;var Ji="PopoverTrigger",ec=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=At(Ji,n),s=In(n),a=Ve(t,o.triggerRef),i=c.jsx(Ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":sc(o.open),...r,ref:a,onClick:je(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:c.jsx(Yo,{asChild:!0,...s,children:i})});ec.displayName=Ji;var Ko="PopoverPortal",[yh,wh]=Xi(Ko,{forceMount:void 0}),tc=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=At(Ko,t);return c.jsx(yh,{scope:t,forceMount:n,children:c.jsx(Tt,{present:n||s.open,children:c.jsx(Pr,{asChild:!0,container:o,children:r})})})};tc.displayName=Ko;var an="PopoverContent",nc=d.forwardRef((e,t)=>{const n=wh(an,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=At(an,e.__scopePopover);return c.jsx(Tt,{present:r||s.open,children:s.modal?c.jsx(Ch,{...o,ref:t}):c.jsx(kh,{...o,ref:t})})});nc.displayName=an;var xh=E1("PopoverContent.RemoveScroll"),Ch=d.forwardRef((e,t)=>{const n=At(an,e.__scopePopover),r=d.useRef(null),o=Ve(t,r),s=d.useRef(!1);return d.useEffect(()=>{const a=r.current;if(a)return zi(a)},[]),c.jsx(Xo,{as:xh,allowPinchZoom:!0,children:c.jsx(rc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:je(e.onCloseAutoFocus,a=>{a.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:je(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,u=i.button===2||l;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:je(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),kh=d.forwardRef((e,t)=>{const n=At(an,e.__scopePopover),r=d.useRef(!1),o=d.useRef(!1);return c.jsx(rc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),rc=d.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:f,...m}=e,p=At(an,n),h=In(n);return $i(),c.jsx(Zo,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:c.jsx(Sr,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1),children:c.jsx(Si,{"data-state":sc(p.open),role:"dialog",id:p.contentId,...h,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),oc="PopoverClose",Nh=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=At(oc,n);return c.jsx(Ie.button,{type:"button",...r,ref:t,onClick:je(e.onClick,()=>o.onOpenChange(!1))})});Nh.displayName=oc;var Sh="PopoverArrow",Eh=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=In(n);return c.jsx(Ei,{...o,...r,ref:t})});Eh.displayName=Sh;function sc(e){return e?"open":"closed"}var jh=Ki,Mh=ec,Oh=tc,ac=nc;const No=jh,So=Mh,Qo=d.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>c.jsx(Oh,{children:c.jsx(ac,{ref:o,align:t,sideOffset:n,className:J("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-popover-content-transform-origin)",e),...r})}));Qo.displayName=ac.displayName;const Dh="_anchor_1qyyn_1",Ph="_triggerWrap_1qyyn_6",Rh="_popover_1qyyn_11",io={anchor:Dh,triggerWrap:Ph,popover:Rh},Th=(e="bottom")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},Ah=e=>{const t="trigger"in e&&e.trigger!==void 0,{children:n,placement:r="bottom",className:o,isOpen:s,toggle:a,onOpenChange:i}=e,[l,u]=g.useState(!1),[f,m]=g.useState(null),p=s??l,{side:h,align:b}=g.useMemo(()=>Th(r),[r]),v=g.useCallback(()=>{if(t)return;const w=e.target?.current;m(w?.getBoundingClientRect()??null)},[e.target,t]),_=g.useCallback(w=>{s===void 0&&u(w),i?.(w)},[s,i]);g.useEffect(()=>{if(t)return;const w=e.target?.current;if(!w)return;const x=()=>{v(),s===void 0?u(k=>{const N=!k;return i?.(N),N}):i?.(!s),a?.()};return w.addEventListener("click",x),window.addEventListener("scroll",v,!0),window.addEventListener("resize",v),()=>{w.removeEventListener("click",x),window.removeEventListener("scroll",v,!0),window.removeEventListener("resize",v)}},[s,i,e.target,a,t,v]);const y=c.jsx(Qo,{side:h,align:b,className:M(io.popover,o),children:n});return t?c.jsxs(No,{open:p,onOpenChange:_,children:[c.jsx(So,{asChild:!0,children:c.jsx("span",{className:io.triggerWrap,children:e.trigger})}),y]}):c.jsxs(No,{open:p,onOpenChange:_,children:[Xa(c.jsx(So,{asChild:!0,children:c.jsx("span",{className:io.anchor,style:f?{left:f.left,top:f.top,width:f.width,height:f.height}:{left:0,top:0,width:0,height:0},"aria-hidden":!0})})),y]})},Ih="_emptyComponent_1wdgn_1",Lh="_svgWrapper_1wdgn_11",Wh="_title_1wdgn_23",$h="_subtitle_1wdgn_28",ar={emptyComponent:Ih,svgWrapper:Lh,title:Wh,subtitle:$h},It=({svg:e=c.jsx(Ea,{}),title:t="Нет данных для отображения",description:n,subtitle:r,content:o,className:s})=>{const a=n??r;return c.jsxs("div",{className:M(ar.emptyComponent,s),children:[c.jsx("div",{className:ar.svgWrapper,children:e}),t&&c.jsx("span",{className:ar.title,children:t}),a&&c.jsx("span",{className:ar.subtitle,children:a}),o&&o]})},Fh="_container_xa163_1",Bh="_header_xa163_6",zh="_header_icon_xa163_14",Hh="_iconTransition_xa163_20",Yh="_rotateIcon_xa163_23",Vh="_content_xa163_26",qh="_padding_xa163_31",rt={container:Fh,header:Bh,header_icon:zh,iconTransition:Hh,rotateIcon:Yh,content:Vh,padding:qh},ic=({header:e,className:t,content:n,onToggle:r,isOpen:o,defaultOpen:s=!1,id:a,headerClassName:i,contentClassName:l,iconClassName:u})=>{const[f,m]=g.useState(s),p=g.useRef(!1),h=typeof o=="boolean"?o:f,b=g.useRef(null),v=typeof e=="string"?c.jsx("div",{className:rt.header_text,children:c.jsx("span",{children:e})}):e,_=typeof n=="string"?c.jsx("span",{className:rt.content_text,children:n}):n;g.useEffect(()=>{const w=b.current;if(w){if(!p.current){w.style.height=s?"auto":"0px",p.current=!0;return}if(h){w.style.height=`${w.scrollHeight}px`;const x=()=>{w.style.height="auto"};w.addEventListener("transitionend",x,{once:!0})}else w.style.height=`${w.scrollHeight}px`,requestAnimationFrame(()=>{w.style.height="0px"})}},[h,s]);const y=g.useCallback(w=>{w.stopPropagation(),r?r():m(x=>!x)},[r]);return c.jsxs("div",{className:M(rt.container,t),id:a,children:[c.jsxs("div",{className:M(rt.header,i),children:[v,c.jsx("div",{className:M(rt.header_icon,u),onClick:y,children:c.jsx(dt,{className:M(rt.iconArrow,rt.iconTransition,{[rt.rotateIcon]:h})})})]}),c.jsx("div",{className:M(rt.content,l,{[rt.padding]:h}),ref:b,children:_})]})},Gh="_collapsableBlock_86gg6_1",Uh="_header_86gg6_6",Zh="_headerWithInfoTooltip_86gg6_12",Xh="_infoIcon_86gg6_20",ir={collapsableBlock:Gh,header:Uh,headerWithInfoTooltip:Zh,infoIcon:Xh},Kh=d.memo(e=>{const{id:t,header:n,content:r,className:o,infoTooltipContent:s,...a}=e,[i,l]=g.useState(!1),u=()=>l(!i);return c.jsx(ic,{id:t,className:M(ir.collapsableBlock,o),header:s?c.jsxs("div",{className:ir.headerWithInfoTooltip,children:[c.jsx("span",{children:n}),c.jsx(Na,{className:ir.infoIcon,id:"CollapsableBlockNewInfoTooltipIcon"}),c.jsx(Uo,{autohide:!1,delay:{show:0,hide:500},isOpen:i,placement:"left-start",target:"CollapsableBlockNewInfoTooltipIcon",toggle:u,children:s})]}):n,content:r,headerClassName:ir.header,...a})});var Qh=typeof document<"u",Jh=function(){},Eo=Qh?g.useLayoutEffect:Jh;const ep={...d},tp=ep.useInsertionEffect,np=tp||(e=>e());function rp(e){const t=d.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return np(()=>{t.current=e}),d.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}const op={...d};let Qs=!1,sp=0;const Js=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+sp++;function ap(){const[e,t]=d.useState(()=>Qs?Js():void 0);return Eo(()=>{e==null&&t(Js())},[]),d.useEffect(()=>{Qs=!0},[]),e}const ip=op.useId,cp=ip||ap;let jo;process.env.NODE_ENV!=="production"&&(jo=new Set);function lp(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=jo)!=null&&e.has(o))){var s;(s=jo)==null||s.add(o),console.error(o)}}function dp(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const up=d.createContext(null),fp=d.createContext(null),mp=()=>{var e;return((e=d.useContext(up))==null?void 0:e.id)||null},hp=()=>d.useContext(fp);function pp(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=cp(),s=d.useRef({}),[a]=d.useState(()=>dp()),i=mp()!=null;if(process.env.NODE_ENV!=="production"){const h=r.reference;h&&!Ae(h)&&lp("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,u]=d.useState(r.reference),f=rp((h,b,v)=>{s.current.openEvent=h?b:void 0,a.emit("openchange",{open:h,event:b,reason:v,nested:i}),n?.(h,b,v)}),m=d.useMemo(()=>({setPositionReference:u}),[]),p=d.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return d.useMemo(()=>({dataRef:s,open:t,onOpenChange:f,elements:p,events:a,floatingId:o,refs:m}),[t,f,p,a,o,m])}function gp(e){e===void 0&&(e={});const{nodeId:t}=e,n=pp({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[s,a]=d.useState(null),[i,l]=d.useState(null),f=o?.domReference||s,m=d.useRef(null),p=hp();Eo(()=>{f&&(m.current=f)},[f]);const h=ui({...e,elements:{...o,...i&&{reference:i}}}),b=d.useCallback(x=>{const k=Ae(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),getClientRects:()=>x.getClientRects(),contextElement:x}:x;l(k),h.refs.setReference(k)},[h.refs]),v=d.useCallback(x=>{(Ae(x)||x===null)&&(m.current=x,a(x)),(Ae(h.refs.reference.current)||h.refs.reference.current===null||x!==null&&!Ae(x))&&h.refs.setReference(x)},[h.refs]),_=d.useMemo(()=>({...h.refs,setReference:v,setPositionReference:b,domReference:m}),[h.refs,v,b]),y=d.useMemo(()=>({...h.elements,domReference:f}),[h.elements,f]),w=d.useMemo(()=>({...h,...r,refs:_,elements:y,nodeId:t}),[h,_,y,t,r]);return Eo(()=>{r.dataRef.current.floatingContext=w;const x=p?.nodesRef.current.find(k=>k.id===t);x&&(x.context=w)}),d.useMemo(()=>({...h,context:w,refs:_,elements:y}),[h,_,y,w])}const vp="_caption_ltp0o_1",_p="_fadeIn_ltp0o_1",bp="_caption_neutral_ltp0o_16",yp="_caption_error_ltp0o_20",wp="_caption_success_ltp0o_24",xp="_fullWidth_ltp0o_38",co={caption:vp,fadeIn:_p,caption_neutral:bp,caption_error:yp,caption_success:wp,fullWidth:xp},Ct=({children:e,isFullWidth:t,variant:n,type:r})=>{const o=n??r??"error";return c.jsx("p",{className:M(co.caption,co[`caption_${o}`],{[co.fullWidth]:t}),children:e})};const cc=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const Cp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const kp=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const ea=e=>{const t=kp(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Np={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Sp=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const Ep=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...i},l)=>g.createElement("svg",{ref:l,...Np,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:cc("lucide",o),...!s&&!Sp(i)&&{"aria-hidden":"true"},...i},[...a.map(([u,f])=>g.createElement(u,f)),...Array.isArray(s)?s:[s]]));const Ln=(e,t)=>{const n=g.forwardRef(({className:r,...o},s)=>g.createElement(Ep,{ref:s,iconNode:t,className:cc(`lucide-${Cp(ea(e))}`,`lucide-${e}`,r),...o}));return n.displayName=ea(e),n};const jp=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Mp=Ln("calendar",jp);const Op=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Dp=Ln("chevron-down",Op);const Pp=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Rp=Ln("chevron-left",Pp);const Tp=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ap=Ln("chevron-right",Tp);const Ip=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Lp=Ln("circle-question-mark",Ip);var Wp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$p=Wp.reduce((e,t)=>{const n=Da(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Fp="Label",lc=d.forwardRef((e,t)=>c.jsx($p.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));lc.displayName=Fp;var dc=lc;const Bp=Ta("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),uc=d.forwardRef(({className:e,...t},n)=>c.jsx(dc,{ref:n,className:J(Bp(),e),...t}));uc.displayName=dc.displayName;const zp="_label_1i8xb_1",Hp="_label__text_1i8xb_11",Yp="_label_inline_1i8xb_14",jn={label:zp,label__text:Hp,label_inline:Yp},Mn=({htmlFor:e,children:t,className:n})=>c.jsx(uc,{htmlFor:e,className:M(jn.label,n),children:typeof t=="string"?c.jsx("div",{className:jn.label__text,children:t}):t}),Vp="_labelRow_1kh14_1",qp="_helpIcon_1kh14_9",Gp="_helpIconSvg_1kh14_33",lo={labelRow:Vp,helpIcon:qp,helpIconSvg:Gp},Lt=({htmlFor:e,children:t,required:n,tooltipContent:r,tooltipPopperClassName:o,className:s,labelClassName:a})=>{const i=g.useRef(null),l=typeof t=="string"&&n?`${t} *`:t;return r?c.jsxs("div",{className:M(lo.labelRow,s),children:[c.jsx(Mn,{className:M(jn.label_inline,a),htmlFor:e,children:l}),c.jsx("button",{ref:i,type:"button",className:lo.helpIcon,"aria-label":"Справка по полю",children:c.jsx(Lp,{className:lo.helpIconSvg,"aria-hidden":!0})}),c.jsx(Uo,{target:i,popperClassName:o,children:r})]}):c.jsx(Mn,{htmlFor:e,className:s,children:l})},Up="_wrapper_19g1g_1",Zp="_wrapper_small_19g1g_14",Xp="_iconCross_19g1g_17",Kp="_iconCross_small_19g1g_25",cr={wrapper:Up,wrapper_small:Zp,iconCross:Xp,iconCross_small:Kp},fc=g.memo(({className:e,children:t,onClick:n,isSmall:r})=>c.jsxs("div",{className:M(cr.wrapper,e,r&&cr.wrapper_small),children:[c.jsx("span",{children:t}),n&&c.jsx(ct,{className:M(cr.iconCross,{[cr.iconCross_small]:r}),onClick:o=>{o.stopPropagation(),n()}})]})),Qp="_wrapper_ay0zv_1",Jp="_container_ay0zv_5",e0="_input_ay0zv_5",t0="_error_ay0zv_17",n0="_disabled_ay0zv_20",r0="_tagContainer_ay0zv_33",o0="_selectedOptionContainer_ay0zv_38",s0="_selectedOption_ay0zv_38",a0="_placeHolder_ay0zv_50",i0="_iconContainer_ay0zv_57",c0="_deleteIcon_ay0zv_64",l0="_divider_ay0zv_84",d0="_arrowIcon_ay0zv_93",u0="_arrowIconExpanded_ay0zv_108",f0="_dropdown_ay0zv_112",m0="_dropdown_visible_ay0zv_123",h0="_dropdown_table_ay0zv_127",p0="_dropdownContent_ay0zv_130",g0="_dropdownContent_table_ay0zv_136",v0="_withSearch_ay0zv_148",_0="_search_ay0zv_151",b0="_search__icon_ay0zv_164",y0="_search__input_ay0zv_169",w0="_option_ay0zv_199",x0="_option_active_ay0zv_205",C0="_option_active_next_active_ay0zv_211",k0="_option_active_prev_active_ay0zv_215",N0="_tableTemplate_ay0zv_242",S0="_tableContainer_ay0zv_248",E0="_table_ay0zv_242",j0="_activeRow_ay0zv_290",M0="_checkboxCell_ay0zv_297",O0="_checkbox_ay0zv_297",D0="_footerTotal_ay0zv_312",ae={wrapper:Qp,container:Jp,input:e0,error:t0,disabled:n0,tagContainer:r0,selectedOptionContainer:o0,selectedOption:s0,placeHolder:a0,iconContainer:i0,deleteIcon:c0,divider:l0,arrowIcon:d0,arrowIconExpanded:u0,dropdown:f0,dropdown_visible:m0,dropdown_table:h0,dropdownContent:p0,dropdownContent_table:g0,withSearch:v0,search:_0,search__icon:b0,search__input:y0,option:w0,option_active:x0,option_active_next_active:C0,option_active_prev_active:k0,tableTemplate:N0,tableContainer:S0,table:E0,activeRow:j0,checkboxCell:M0,checkbox:O0,footerTotal:D0},P0=6,R0=({value:e,selectedOptionRender:t,tagRender:n,onDelete:r})=>e?Array.isArray(e)?c.jsx("div",{className:ae.tagContainer,children:e.map((o,s)=>n?c.jsx(g.Fragment,{children:n(o)},s):c.jsx(fc,{isSmall:!0,...r&&{onClick:()=>r?.(o)},children:o.label},s))}):c.jsx("span",{className:M(ae.selectedOption,"truncate"),children:t?t(e):e.label}):null,mc=({onSearch:e,searchClassName:t,searchValue:n,isLoading:r,placeholder:o})=>c.jsxs("div",{className:M(ae.search,t),children:[c.jsx(xr,{className:ae.search__icon}),c.jsx("input",{className:ae.search__input,value:n,onChange:s=>e?.(s.target.value),placeholder:o}),r&&c.jsx(Ge,{size:"extraSmall",className:ae.search__spinner})]}),T0=({value:e,options:t,optionClassName:n,optionRender:r,onChange:o,onSearch:s,searchClassName:a,isLoading:i,searchValue:l,searchPlaceholder:u})=>{const f=m=>Array.isArray(e)?e.some(p=>p.value===m.value):e?.value===m.value;return c.jsxs(c.Fragment,{children:[s&&c.jsx(mc,{onSearch:s,searchValue:l,searchClassName:a,isLoading:i,placeholder:u}),t&&t.length?c.jsx("ul",{className:M({[ae.withSearch]:s}),children:t.map((m,p)=>{const h=f(m),b=t[p-1]&&f(t[p-1]),v=t[p+1]&&f(t[p+1]);return c.jsx("li",{className:M(ae.option,{[ae.option_active]:h,[ae.option_active_prev_active]:b,[ae.option_active_next_active]:v},n),onClick:()=>o(m),children:c.jsx("span",{className:"block min-w-0 truncate",children:r?r(m):m.label})},`${m.value}${p}`)})}):!i&&c.jsx(It,{})]})},A0=({value:e,options:t,onChange:n,onDelete:r,onSearch:o,searchClassName:s,isLoading:a,searchValue:i,searchPlaceholder:l,columns:u,total:f,mode:m})=>{const p=_=>Array.isArray(e)?e.some(y=>y.value===_.value):e?.value===_.value,h=(_,y)=>{if(m==="multiple"&&y&&r){r(_);return}n(_)},b=f??t?.length??0,v=u??[];return c.jsxs("div",{className:ae.tableTemplate,children:[o&&c.jsx(mc,{onSearch:o,searchValue:i,searchClassName:s,isLoading:a,placeholder:l}),c.jsx("div",{className:ae.tableContainer,children:t&&t.length?c.jsxs("table",{className:ae.table,children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{className:ae.checkboxCell,"aria-label":""}),v.map(_=>c.jsx("th",{className:_.className,children:_.title},_.key))]})}),c.jsx("tbody",{children:t.map((_,y)=>{const w=p(_);return c.jsxs("tr",{className:M({[ae.activeRow]:w}),onClick:()=>h(_,w),children:[c.jsx("td",{className:ae.checkboxCell,children:c.jsx("input",{type:"checkbox",className:ae.checkbox,checked:w,readOnly:!0,tabIndex:-1,onClick:x=>x.stopPropagation(),onChange:()=>h(_,w)})}),v.map(x=>c.jsx("td",{className:x.className,children:x.render(_)},x.key))]},`${String(_.value)}${y}`)})})]}):!a&&c.jsx(It,{})}),c.jsxs("div",{className:ae.footerTotal,children:["Всего ",b]})]})},I0=({options:e,value:t,mode:n,placeholder:r,onChange:o,dropdownRender:s,optionRender:a,selectedOptionRender:i,dropdownIcon:l,tagRender:u,dropDownClassName:f,optionClassName:m,inputClassName:p,deleteIconClassName:h,onDelete:b,onClear:v,label:_,tooltipContent:y,tooltipPopperClassName:w,onSearch:x,searchClassName:k,searchPlaceholder:N,isLoading:C,disabled:S,onClose:E,portalTarget:D,error:O,template:T="list",columns:P,total:A})=>{const[I,X]=g.useState(!1),[R,q]=g.useState(!1),W=g.useRef(null),G=g.useRef(null),j=g.useRef(null),[K,ve]=g.useState(""),V=D??(R&&typeof document<"u"?document.body:void 0);g.useEffect(()=>{q(!0)},[]);const ne=g.useCallback(ce=>{ve(ce),x?.(ce)},[x]);g.useEffect(()=>{if(!I)return;const ce=De=>{W.current&&!W.current.contains(De.target)&&(!G.current||!G.current.contains(De.target))&&(ne(""),X(!1),E?.())};return document.addEventListener("mousedown",ce,!0),()=>{document.removeEventListener("mousedown",ce,!0)}},[ne,I,E]);const{refs:ee,floatingStyles:re,update:fe}=gp({strategy:"absolute",placement:"bottom-start",open:I,whileElementsMounted:(ce,De,mt)=>li(ce,De,mt,{ancestorScroll:!1,elementResize:!0,ancestorResize:!0,layoutShift:!0}),middleware:[fi(P0),mi({fallbackPlacements:["top-start","bottom-start"]}),hi({apply({rects:ce,elements:De}){const mt=`${Math.round(ce.reference.width)}px`;De.floating.style.width!==mt&&(De.floating.style.width=mt)}})]}),Me=g.useCallback(ce=>{j.current=ce,ee.setReference(ce)},[ee]),se=g.useCallback(ce=>{G.current=ce,ee.setFloating(ce)},[ee]);g.useEffect(()=>{I&&fe()},[I,fe]);const $=g.useCallback(ce=>{o?.(ce),ne(""),E?.(),n==="single"&&X(!1)},[ne,n,o,E]),de=g.useCallback(()=>{const ce=c.jsx("div",{ref:se,className:M(ae.dropdown,{[ae.dropdown_visible]:I,[ae.dropdown_table]:T==="table"},f),style:re,onClick:De=>De.stopPropagation(),children:c.jsx("div",{className:M(ae.dropdownContent,T==="table"&&ae.dropdownContent_table),children:(()=>{const De=T==="table"?c.jsx(A0,{value:t,options:e,onChange:$,onDelete:b,...x&&{onSearch:ne},searchClassName:k,isLoading:C,searchValue:K,searchPlaceholder:N,columns:P,total:A,mode:n}):c.jsx(T0,{value:t,options:e,optionClassName:m,optionRender:a,onChange:$,...x&&{onSearch:ne},searchClassName:k,isLoading:C,searchValue:K,searchPlaceholder:N});return s?s(De):De})()})});return V?Pn.createPortal(ce,V):ce},[f,s,re,$,ne,C,I,x,m,a,e,V,T,P,A,n,b,k,N,K,se,t]),ke=g.useMemo(()=>R?de():null,[R,de]),Oe=Array.isArray(t)?!!t.length:!!t;return c.jsxs("div",{className:ae.wrapper,children:[_&&c.jsx(Lt,{htmlFor:"CustomSelectInput",tooltipContent:y,tooltipPopperClassName:w,children:_}),c.jsxs("div",{className:ae.container,ref:W,children:[c.jsxs("div",{role:"button",id:"CustomSelectInput",tabIndex:0,ref:Me,className:M(ae.input,{[ae.disabled]:S},O&&ae.error,p),onClick:()=>{t&&(ne(""),E?.()),X(ce=>!ce)},children:[c.jsx("div",{className:ae.selectedOptionContainer,children:Oe?c.jsx(R0,{value:t,selectedOptionRender:i,tagRender:u,onDelete:b}):c.jsx("span",{className:M(ae.placeHolder,"truncate"),children:r})}),c.jsxs("div",{className:ae.iconContainer,children:[v&&Oe&&c.jsxs(c.Fragment,{children:[c.jsx(xe,{variant:"text",className:M(ae.deleteIcon,h),onClick:ce=>{ce.stopPropagation(),v()},children:c.jsx("span",{children:c.jsx(ct,{})})}),c.jsx("div",{className:ae.divider,children:c.jsx("div",{})})]}),l||c.jsx(xe,{variant:"text",className:M(ae.arrowIcon,{[ae.arrowIconExpanded]:I}),children:c.jsx(dt,{})})]})]}),ke]}),O&&c.jsx(Ct,{children:O})]})};function L0(e){const t=W0(e),n=d.forwardRef((r,o)=>{const{children:s,...a}=r,i=d.Children.toArray(s),l=i.find(F0);if(l){const u=l.props.children,f=i.map(m=>m===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:m);return c.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function W0(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const a=z0(o),i=B0(s,o.props);return o.type!==d.Fragment&&(i.ref=r?Rn(r,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var $0=Symbol("radix.slottable");function F0(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===$0}function B0(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function z0(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Lr="Dialog",[hc]=Nr(Lr),[H0,tt]=hc(Lr),pc=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,i=d.useRef(null),l=d.useRef(null),[u,f]=Vo({prop:r,defaultProp:o??!1,onChange:s,caller:Lr});return c.jsx(H0,{scope:t,triggerRef:i,contentRef:l,contentId:Nn(),titleId:Nn(),descriptionId:Nn(),open:u,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(m=>!m),[f]),modal:a,children:n})};pc.displayName=Lr;var gc="DialogTrigger",Y0=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(gc,n),s=Ve(t,o.triggerRef);return c.jsx(Ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ts(o.open),...r,ref:s,onClick:je(e.onClick,o.onOpenToggle)})});Y0.displayName=gc;var Jo="DialogPortal",[V0,vc]=hc(Jo,{forceMount:void 0}),_c=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=tt(Jo,t);return c.jsx(V0,{scope:t,forceMount:n,children:d.Children.map(r,a=>c.jsx(Tt,{present:n||s.open,children:c.jsx(Pr,{asChild:!0,container:o,children:a})}))})};_c.displayName=Jo;var yr="DialogOverlay",bc=d.forwardRef((e,t)=>{const n=vc(yr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=tt(yr,e.__scopeDialog);return s.modal?c.jsx(Tt,{present:r||s.open,children:c.jsx(G0,{...o,ref:t})}):null});bc.displayName=yr;var q0=L0("DialogOverlay.RemoveScroll"),G0=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(yr,n);return c.jsx(Xo,{as:q0,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(Ie.div,{"data-state":ts(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Yt="DialogContent",yc=d.forwardRef((e,t)=>{const n=vc(Yt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=tt(Yt,e.__scopeDialog);return c.jsx(Tt,{present:r||s.open,children:s.modal?c.jsx(U0,{...o,ref:t}):c.jsx(Z0,{...o,ref:t})})});yc.displayName=Yt;var U0=d.forwardRef((e,t)=>{const n=tt(Yt,e.__scopeDialog),r=d.useRef(null),o=Ve(t,n.contentRef,r);return d.useEffect(()=>{const s=r.current;if(s)return zi(s)},[]),c.jsx(wc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:je(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:je(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&s.preventDefault()}),onFocusOutside:je(e.onFocusOutside,s=>s.preventDefault())})}),Z0=d.forwardRef((e,t)=>{const n=tt(Yt,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return c.jsx(wc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),wc=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,i=tt(Yt,n),l=d.useRef(null),u=Ve(t,l);return $i(),c.jsxs(c.Fragment,{children:[c.jsx(Zo,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:c.jsx(Sr,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":ts(i.open),...a,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(K0,{titleId:i.titleId}),c.jsx(J0,{contentRef:l,descriptionId:i.descriptionId})]})]})}),es="DialogTitle",xc=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(es,n);return c.jsx(Ie.h2,{id:o.titleId,...r,ref:t})});xc.displayName=es;var Cc="DialogDescription",kc=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(Cc,n);return c.jsx(Ie.p,{id:o.descriptionId,...r,ref:t})});kc.displayName=Cc;var Nc="DialogClose",X0=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(Nc,n);return c.jsx(Ie.button,{type:"button",...r,ref:t,onClick:je(e.onClick,()=>o.onOpenChange(!1))})});X0.displayName=Nc;function ts(e){return e?"open":"closed"}var Sc="DialogTitleWarning",[N3,Ec]=cf(Sc,{contentName:Yt,titleName:es,docsSlug:"dialog"}),K0=({titleId:e})=>{const t=Ec(Sc),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
41
+ `)},ph=0,Xt=[];function gh(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(ph++)[0],s=d.useState(Gi)[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=L1([e.lockRef.current],(e.shards||[]).map(Ks),!0).filter(Boolean);return v.forEach(function(_){return _.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=d.useCallback(function(v,_){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!a.current.allowPinchZoom;var y=sr(v),w=n.current,x="deltaX"in v?v.deltaX:w[0]-y[0],k="deltaY"in v?v.deltaY:w[1]-y[1],S,C=v.target,N=Math.abs(x)>Math.abs(k)?"h":"v";if("touches"in v&&N==="h"&&C.type==="range")return!1;var E=window.getSelection(),D=E&&E.anchorNode,O=D?D===C||D.contains(C):!1;if(O)return!1;var T=Zs(N,C);if(!T)return!0;if(T?S=N:(S=N==="v"?"h":"v",T=Zs(N,C)),!T)return!1;if(!r.current&&"changedTouches"in v&&(x||k)&&(r.current=S),!S)return!0;var R=r.current||S;return fh(R,_,v,R==="h"?x:k)},[]),l=d.useCallback(function(v){var _=v;if(!(!Xt.length||Xt[Xt.length-1]!==s)){var y="deltaY"in _?Xs(_):sr(_),w=t.current.filter(function(S){return S.name===_.type&&(S.target===_.target||_.target===S.shadowParent)&&mh(S.delta,y)})[0];if(w&&w.should){_.cancelable&&_.preventDefault();return}if(!w){var x=(a.current.shards||[]).map(Ks).filter(Boolean).filter(function(S){return S.contains(_.target)}),k=x.length>0?i(_,x[0]):!a.current.noIsolation;k&&_.cancelable&&_.preventDefault()}}},[]),u=d.useCallback(function(v,_,y,w){var x={name:v,delta:_,target:y,should:w,shadowParent:vh(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(k){return k!==x})},1)},[]),f=d.useCallback(function(v){n.current=sr(v),r.current=void 0},[]),m=d.useCallback(function(v){u(v.type,Xs(v),v.target,i(v,e.lockRef.current))},[]),p=d.useCallback(function(v){u(v.type,sr(v),v.target,i(v,e.lockRef.current))},[]);d.useEffect(function(){return Xt.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Zt),document.addEventListener("touchmove",l,Zt),document.addEventListener("touchstart",f,Zt),function(){Xt=Xt.filter(function(v){return v!==s}),document.removeEventListener("wheel",l,Zt),document.removeEventListener("touchmove",l,Zt),document.removeEventListener("touchstart",f,Zt)}},[]);var h=e.removeScrollBar,b=e.inert;return d.createElement(d.Fragment,null,b?d.createElement(s,{styles:hh(o)}):null,h?d.createElement(sh,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function vh(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _h=q1(qi,gh);var Xo=d.forwardRef(function(e,t){return d.createElement(Ar,st({},e,{ref:t,sideCar:_h}))});Xo.classNames=Ar.classNames;var Ir="Popover",[Ki]=Sr(Ir,[Dr]),In=Dr(),[bh,At]=Ki(Ir),Qi=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,i=In(t),l=d.useRef(null),[u,f]=d.useState(!1),[m,p]=Vo({prop:r,defaultProp:o??!1,onChange:s,caller:Ir});return c.jsx(Ni,{...i,children:c.jsx(bh,{scope:t,contentId:Sn(),triggerRef:l,open:m,onOpenChange:p,onOpenToggle:d.useCallback(()=>p(h=>!h),[p]),hasCustomAnchor:u,onCustomAnchorAdd:d.useCallback(()=>f(!0),[]),onCustomAnchorRemove:d.useCallback(()=>f(!1),[]),modal:a,children:n})})};Qi.displayName=Ir;var Ji="PopoverAnchor",yh=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=At(Ji,n),s=In(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=o;return d.useEffect(()=>(a(),()=>i()),[a,i]),c.jsx(Yo,{...s,...r,ref:t})});yh.displayName=Ji;var ec="PopoverTrigger",tc=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=At(ec,n),s=In(n),a=qe(t,o.triggerRef),i=c.jsx(Ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ac(o.open),...r,ref:a,onClick:je(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:c.jsx(Yo,{asChild:!0,...s,children:i})});tc.displayName=ec;var Ko="PopoverPortal",[wh,xh]=Ki(Ko,{forceMount:void 0}),nc=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=At(Ko,t);return c.jsx(wh,{scope:t,forceMount:n,children:c.jsx(Tt,{present:n||s.open,children:c.jsx(Rr,{asChild:!0,container:o,children:r})})})};nc.displayName=Ko;var an="PopoverContent",rc=d.forwardRef((e,t)=>{const n=xh(an,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=At(an,e.__scopePopover);return c.jsx(Tt,{present:r||s.open,children:s.modal?c.jsx(kh,{...o,ref:t}):c.jsx(Sh,{...o,ref:t})})});rc.displayName=an;var Ch=j1("PopoverContent.RemoveScroll"),kh=d.forwardRef((e,t)=>{const n=At(an,e.__scopePopover),r=d.useRef(null),o=qe(t,r),s=d.useRef(!1);return d.useEffect(()=>{const a=r.current;if(a)return Hi(a)},[]),c.jsx(Xo,{as:Ch,allowPinchZoom:!0,children:c.jsx(oc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:je(e.onCloseAutoFocus,a=>{a.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:je(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,u=i.button===2||l;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:je(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),Sh=d.forwardRef((e,t)=>{const n=At(an,e.__scopePopover),r=d.useRef(!1),o=d.useRef(!1);return c.jsx(oc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),oc=d.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:f,...m}=e,p=At(an,n),h=In(n);return Fi(),c.jsx(Zo,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:c.jsx(Nr,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1),children:c.jsx(Ei,{"data-state":ac(p.open),role:"dialog",id:p.contentId,...h,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),sc="PopoverClose",Nh=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=At(sc,n);return c.jsx(Ie.button,{type:"button",...r,ref:t,onClick:je(e.onClick,()=>o.onOpenChange(!1))})});Nh.displayName=sc;var Eh="PopoverArrow",jh=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=In(n);return c.jsx(ji,{...o,...r,ref:t})});jh.displayName=Eh;function ac(e){return e?"open":"closed"}var Mh=Qi,Oh=tc,Dh=nc,ic=rc;const So=Mh,No=Oh,Qo=d.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>c.jsx(Dh,{children:c.jsx(ic,{ref:o,align:t,sideOffset:n,className:J("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-popover-content-transform-origin)",e),...r})}));Qo.displayName=ic.displayName;const Rh="_anchor_1qyyn_1",Ph="_triggerWrap_1qyyn_6",Th="_popover_1qyyn_11",io={anchor:Rh,triggerWrap:Ph,popover:Th},Ah=(e="bottom")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},Ih=e=>{const t="trigger"in e&&e.trigger!==void 0,{children:n,placement:r="bottom",className:o,isOpen:s,toggle:a,onOpenChange:i}=e,[l,u]=g.useState(!1),[f,m]=g.useState(null),p=s??l,{side:h,align:b}=g.useMemo(()=>Ah(r),[r]),v=g.useCallback(()=>{if(t)return;const w=e.target?.current;m(w?.getBoundingClientRect()??null)},[e.target,t]),_=g.useCallback(w=>{s===void 0&&u(w),i?.(w)},[s,i]);g.useEffect(()=>{if(t)return;const w=e.target?.current;if(!w)return;const x=()=>{v(),s===void 0?u(k=>{const S=!k;return i?.(S),S}):i?.(!s),a?.()};return w.addEventListener("click",x),window.addEventListener("scroll",v,!0),window.addEventListener("resize",v),()=>{w.removeEventListener("click",x),window.removeEventListener("scroll",v,!0),window.removeEventListener("resize",v)}},[s,i,e.target,a,t,v]);const y=c.jsx(Qo,{side:h,align:b,className:M(io.popover,o),children:n});return t?c.jsxs(So,{open:p,onOpenChange:_,children:[c.jsx(No,{asChild:!0,children:c.jsx("span",{className:io.triggerWrap,children:e.trigger})}),y]}):c.jsxs(So,{open:p,onOpenChange:_,children:[Ka(c.jsx(No,{asChild:!0,children:c.jsx("span",{className:io.anchor,style:f?{left:f.left,top:f.top,width:f.width,height:f.height}:{left:0,top:0,width:0,height:0},"aria-hidden":!0})})),y]})},Lh="_emptyComponent_1wdgn_1",Wh="_svgWrapper_1wdgn_11",$h="_title_1wdgn_23",Fh="_subtitle_1wdgn_28",ar={emptyComponent:Lh,svgWrapper:Wh,title:$h,subtitle:Fh},It=({svg:e=c.jsx(ja,{}),title:t="Нет данных для отображения",description:n,subtitle:r,content:o,className:s})=>{const a=n??r;return c.jsxs("div",{className:M(ar.emptyComponent,s),children:[c.jsx("div",{className:ar.svgWrapper,children:e}),t&&c.jsx("span",{className:ar.title,children:t}),a&&c.jsx("span",{className:ar.subtitle,children:a}),o&&o]})},Bh="_container_xa163_1",zh="_header_xa163_6",Hh="_header_icon_xa163_14",Yh="_iconTransition_xa163_20",Vh="_rotateIcon_xa163_23",qh="_content_xa163_26",Gh="_padding_xa163_31",rt={container:Bh,header:zh,header_icon:Hh,iconTransition:Yh,rotateIcon:Vh,content:qh,padding:Gh},cc=({header:e,className:t,content:n,onToggle:r,isOpen:o,defaultOpen:s=!1,id:a,headerClassName:i,contentClassName:l,iconClassName:u})=>{const[f,m]=g.useState(s),p=g.useRef(!1),h=typeof o=="boolean"?o:f,b=g.useRef(null),v=typeof e=="string"?c.jsx("div",{className:rt.header_text,children:c.jsx("span",{children:e})}):e,_=typeof n=="string"?c.jsx("span",{className:rt.content_text,children:n}):n;g.useEffect(()=>{const w=b.current;if(w){if(!p.current){w.style.height=s?"auto":"0px",p.current=!0;return}if(h){w.style.height=`${w.scrollHeight}px`;const x=()=>{w.style.height="auto"};w.addEventListener("transitionend",x,{once:!0})}else w.style.height=`${w.scrollHeight}px`,requestAnimationFrame(()=>{w.style.height="0px"})}},[h,s]);const y=g.useCallback(w=>{w.stopPropagation(),r?r():m(x=>!x)},[r]);return c.jsxs("div",{className:M(rt.container,t),id:a,children:[c.jsxs("div",{className:M(rt.header,i),children:[v,c.jsx("div",{className:M(rt.header_icon,u),onClick:y,children:c.jsx(dt,{className:M(rt.iconArrow,rt.iconTransition,{[rt.rotateIcon]:h})})})]}),c.jsx("div",{className:M(rt.content,l,{[rt.padding]:h}),ref:b,children:_})]})},Uh="_collapsableBlock_86gg6_1",Zh="_header_86gg6_6",Xh="_headerWithInfoTooltip_86gg6_12",Kh="_infoIcon_86gg6_20",ir={collapsableBlock:Uh,header:Zh,headerWithInfoTooltip:Xh,infoIcon:Kh},Qh=d.memo(e=>{const{id:t,header:n,content:r,className:o,infoTooltipContent:s,...a}=e,[i,l]=g.useState(!1),u=()=>l(!i);return c.jsx(cc,{id:t,className:M(ir.collapsableBlock,o),header:s?c.jsxs("div",{className:ir.headerWithInfoTooltip,children:[c.jsx("span",{children:n}),c.jsx(Na,{className:ir.infoIcon,id:"CollapsableBlockNewInfoTooltipIcon"}),c.jsx(Uo,{autohide:!1,delay:{show:0,hide:500},isOpen:i,placement:"left-start",target:"CollapsableBlockNewInfoTooltipIcon",toggle:u,children:s})]}):n,content:r,headerClassName:ir.header,...a})});var Jh=typeof document<"u",ep=function(){},Eo=Jh?g.useLayoutEffect:ep;const tp={...d},np=tp.useInsertionEffect,rp=np||(e=>e());function op(e){const t=d.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return rp(()=>{t.current=e}),d.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}const sp={...d};let Qs=!1,ap=0;const Js=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ap++;function ip(){const[e,t]=d.useState(()=>Qs?Js():void 0);return Eo(()=>{e==null&&t(Js())},[]),d.useEffect(()=>{Qs=!0},[]),e}const cp=sp.useId,lp=cp||ip;let jo;process.env.NODE_ENV!=="production"&&(jo=new Set);function dp(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=jo)!=null&&e.has(o))){var s;(s=jo)==null||s.add(o),console.error(o)}}function up(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const fp=d.createContext(null),mp=d.createContext(null),hp=()=>{var e;return((e=d.useContext(fp))==null?void 0:e.id)||null},pp=()=>d.useContext(mp);function gp(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=lp(),s=d.useRef({}),[a]=d.useState(()=>up()),i=hp()!=null;if(process.env.NODE_ENV!=="production"){const h=r.reference;h&&!Ae(h)&&dp("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,u]=d.useState(r.reference),f=op((h,b,v)=>{s.current.openEvent=h?b:void 0,a.emit("openchange",{open:h,event:b,reason:v,nested:i}),n?.(h,b,v)}),m=d.useMemo(()=>({setPositionReference:u}),[]),p=d.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return d.useMemo(()=>({dataRef:s,open:t,onOpenChange:f,elements:p,events:a,floatingId:o,refs:m}),[t,f,p,a,o,m])}function vp(e){e===void 0&&(e={});const{nodeId:t}=e,n=gp({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[s,a]=d.useState(null),[i,l]=d.useState(null),f=o?.domReference||s,m=d.useRef(null),p=pp();Eo(()=>{f&&(m.current=f)},[f]);const h=fi({...e,elements:{...o,...i&&{reference:i}}}),b=d.useCallback(x=>{const k=Ae(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),getClientRects:()=>x.getClientRects(),contextElement:x}:x;l(k),h.refs.setReference(k)},[h.refs]),v=d.useCallback(x=>{(Ae(x)||x===null)&&(m.current=x,a(x)),(Ae(h.refs.reference.current)||h.refs.reference.current===null||x!==null&&!Ae(x))&&h.refs.setReference(x)},[h.refs]),_=d.useMemo(()=>({...h.refs,setReference:v,setPositionReference:b,domReference:m}),[h.refs,v,b]),y=d.useMemo(()=>({...h.elements,domReference:f}),[h.elements,f]),w=d.useMemo(()=>({...h,...r,refs:_,elements:y,nodeId:t}),[h,_,y,t,r]);return Eo(()=>{r.dataRef.current.floatingContext=w;const x=p?.nodesRef.current.find(k=>k.id===t);x&&(x.context=w)}),d.useMemo(()=>({...h,context:w,refs:_,elements:y}),[h,_,y,w])}const _p="_caption_ltp0o_1",bp="_fadeIn_ltp0o_1",yp="_caption_neutral_ltp0o_16",wp="_caption_error_ltp0o_20",xp="_caption_success_ltp0o_24",Cp="_fullWidth_ltp0o_38",co={caption:_p,fadeIn:bp,caption_neutral:yp,caption_error:wp,caption_success:xp,fullWidth:Cp},Ct=({children:e,isFullWidth:t,variant:n,type:r})=>{const o=n??r??"error";return c.jsx("p",{className:M(co.caption,co[`caption_${o}`],{[co.fullWidth]:t}),children:e})};const lc=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const kp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Sp=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const ea=e=>{const t=Sp(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Np={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Ep=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const jp=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...i},l)=>g.createElement("svg",{ref:l,...Np,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:lc("lucide",o),...!s&&!Ep(i)&&{"aria-hidden":"true"},...i},[...a.map(([u,f])=>g.createElement(u,f)),...Array.isArray(s)?s:[s]]));const Ln=(e,t)=>{const n=g.forwardRef(({className:r,...o},s)=>g.createElement(jp,{ref:s,iconNode:t,className:lc(`lucide-${kp(ea(e))}`,`lucide-${e}`,r),...o}));return n.displayName=ea(e),n};const Mp=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Op=Ln("calendar",Mp);const Dp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Rp=Ln("chevron-down",Dp);const Pp=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Tp=Ln("chevron-left",Pp);const Ap=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ip=Ln("chevron-right",Ap);const Lp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Wp=Ln("circle-question-mark",Lp);var $p=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fp=$p.reduce((e,t)=>{const n=Ra(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Bp="Label",dc=d.forwardRef((e,t)=>c.jsx(Fp.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));dc.displayName=Bp;var uc=dc;const zp=Aa("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),fc=d.forwardRef(({className:e,...t},n)=>c.jsx(uc,{ref:n,className:J(zp(),e),...t}));fc.displayName=uc.displayName;const Hp="_label_1i8xb_1",Yp="_label__text_1i8xb_11",Vp="_label_inline_1i8xb_14",jn={label:Hp,label__text:Yp,label_inline:Vp},Mn=({htmlFor:e,children:t,className:n})=>c.jsx(fc,{htmlFor:e,className:M(jn.label,n),children:typeof t=="string"?c.jsx("div",{className:jn.label__text,children:t}):t}),qp="_labelRow_1kh14_1",Gp="_helpIcon_1kh14_9",Up="_helpIconSvg_1kh14_33",lo={labelRow:qp,helpIcon:Gp,helpIconSvg:Up},Lt=({htmlFor:e,children:t,required:n,tooltipContent:r,tooltipPopperClassName:o,className:s,labelClassName:a})=>{const i=g.useRef(null),l=typeof t=="string"&&n?`${t} *`:t;return r?c.jsxs("div",{className:M(lo.labelRow,s),children:[c.jsx(Mn,{className:M(jn.label_inline,a),htmlFor:e,children:l}),c.jsx("button",{ref:i,type:"button",className:lo.helpIcon,"aria-label":"Справка по полю",children:c.jsx(Wp,{className:lo.helpIconSvg,"aria-hidden":!0})}),c.jsx(Uo,{target:i,popperClassName:o,children:r})]}):c.jsx(Mn,{htmlFor:e,className:s,children:l})},Zp="_wrapper_19g1g_1",Xp="_wrapper_small_19g1g_14",Kp="_iconCross_19g1g_17",Qp="_iconCross_small_19g1g_25",cr={wrapper:Zp,wrapper_small:Xp,iconCross:Kp,iconCross_small:Qp},mc=g.memo(({className:e,children:t,onClick:n,isSmall:r})=>c.jsxs("div",{className:M(cr.wrapper,e,r&&cr.wrapper_small),children:[c.jsx("span",{children:t}),n&&c.jsx(ct,{className:M(cr.iconCross,{[cr.iconCross_small]:r}),onClick:o=>{o.stopPropagation(),n()}})]})),Jp="_wrapper_ay0zv_1",e0="_container_ay0zv_5",t0="_input_ay0zv_5",n0="_error_ay0zv_17",r0="_disabled_ay0zv_20",o0="_tagContainer_ay0zv_33",s0="_selectedOptionContainer_ay0zv_38",a0="_selectedOption_ay0zv_38",i0="_placeHolder_ay0zv_50",c0="_iconContainer_ay0zv_57",l0="_deleteIcon_ay0zv_64",d0="_divider_ay0zv_84",u0="_arrowIcon_ay0zv_93",f0="_arrowIconExpanded_ay0zv_108",m0="_dropdown_ay0zv_112",h0="_dropdown_visible_ay0zv_123",p0="_dropdown_table_ay0zv_127",g0="_dropdownContent_ay0zv_130",v0="_dropdownContent_table_ay0zv_136",_0="_withSearch_ay0zv_148",b0="_search_ay0zv_151",y0="_search__icon_ay0zv_164",w0="_search__input_ay0zv_169",x0="_option_ay0zv_199",C0="_option_active_ay0zv_205",k0="_option_active_next_active_ay0zv_211",S0="_option_active_prev_active_ay0zv_215",N0="_tableTemplate_ay0zv_242",E0="_tableContainer_ay0zv_248",j0="_table_ay0zv_242",M0="_activeRow_ay0zv_290",O0="_checkboxCell_ay0zv_297",D0="_checkbox_ay0zv_297",R0="_footerTotal_ay0zv_312",ae={wrapper:Jp,container:e0,input:t0,error:n0,disabled:r0,tagContainer:o0,selectedOptionContainer:s0,selectedOption:a0,placeHolder:i0,iconContainer:c0,deleteIcon:l0,divider:d0,arrowIcon:u0,arrowIconExpanded:f0,dropdown:m0,dropdown_visible:h0,dropdown_table:p0,dropdownContent:g0,dropdownContent_table:v0,withSearch:_0,search:b0,search__icon:y0,search__input:w0,option:x0,option_active:C0,option_active_next_active:k0,option_active_prev_active:S0,tableTemplate:N0,tableContainer:E0,table:j0,activeRow:M0,checkboxCell:O0,checkbox:D0,footerTotal:R0},P0=6,T0=({value:e,selectedOptionRender:t,tagRender:n,onDelete:r})=>e?Array.isArray(e)?c.jsx("div",{className:ae.tagContainer,children:e.map((o,s)=>n?c.jsx(g.Fragment,{children:n(o)},s):c.jsx(mc,{isSmall:!0,...r&&{onClick:()=>r?.(o)},children:o.label},s))}):c.jsx("span",{className:M(ae.selectedOption,"truncate"),children:t?t(e):e.label}):null,hc=({onSearch:e,searchClassName:t,searchValue:n,isLoading:r,placeholder:o})=>c.jsxs("div",{className:M(ae.search,t),children:[c.jsx(xr,{className:ae.search__icon}),c.jsx("input",{className:ae.search__input,value:n,onChange:s=>e?.(s.target.value),placeholder:o}),r&&c.jsx(Ue,{size:"extraSmall",className:ae.search__spinner})]}),A0=({value:e,options:t,optionClassName:n,optionRender:r,onChange:o,onSearch:s,searchClassName:a,isLoading:i,searchValue:l,searchPlaceholder:u})=>{const f=m=>Array.isArray(e)?e.some(p=>p.value===m.value):e?.value===m.value;return c.jsxs(c.Fragment,{children:[s&&c.jsx(hc,{onSearch:s,searchValue:l,searchClassName:a,isLoading:i,placeholder:u}),t&&t.length?c.jsx("ul",{className:M({[ae.withSearch]:s}),children:t.map((m,p)=>{const h=f(m),b=t[p-1]&&f(t[p-1]),v=t[p+1]&&f(t[p+1]);return c.jsx("li",{className:M(ae.option,{[ae.option_active]:h,[ae.option_active_prev_active]:b,[ae.option_active_next_active]:v},n),onClick:()=>o(m),children:c.jsx("span",{className:"block min-w-0 truncate",children:r?r(m):m.label})},`${m.value}${p}`)})}):!i&&c.jsx(It,{})]})},I0=({value:e,options:t,onChange:n,onDelete:r,onSearch:o,searchClassName:s,isLoading:a,searchValue:i,searchPlaceholder:l,columns:u,total:f,mode:m})=>{const p=_=>Array.isArray(e)?e.some(y=>y.value===_.value):e?.value===_.value,h=(_,y)=>{if(m==="multiple"&&y&&r){r(_);return}n(_)},b=f??t?.length??0,v=u??[];return c.jsxs("div",{className:ae.tableTemplate,children:[o&&c.jsx(hc,{onSearch:o,searchValue:i,searchClassName:s,isLoading:a,placeholder:l}),c.jsx("div",{className:ae.tableContainer,children:t&&t.length?c.jsxs("table",{className:ae.table,children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{className:ae.checkboxCell,"aria-label":""}),v.map(_=>c.jsx("th",{className:_.className,children:_.title},_.key))]})}),c.jsx("tbody",{children:t.map((_,y)=>{const w=p(_);return c.jsxs("tr",{className:M({[ae.activeRow]:w}),onClick:()=>h(_,w),children:[c.jsx("td",{className:ae.checkboxCell,children:c.jsx("input",{type:"checkbox",className:ae.checkbox,checked:w,readOnly:!0,tabIndex:-1,onClick:x=>x.stopPropagation(),onChange:()=>h(_,w)})}),v.map(x=>c.jsx("td",{className:x.className,children:x.render(_)},x.key))]},`${String(_.value)}${y}`)})})]}):!a&&c.jsx(It,{})}),c.jsxs("div",{className:ae.footerTotal,children:["Всего ",b]})]})},L0=({options:e,value:t,mode:n,placeholder:r,onChange:o,dropdownRender:s,optionRender:a,selectedOptionRender:i,dropdownIcon:l,tagRender:u,dropDownClassName:f,optionClassName:m,inputClassName:p,deleteIconClassName:h,onDelete:b,onClear:v,label:_,tooltipContent:y,tooltipPopperClassName:w,onSearch:x,searchClassName:k,searchPlaceholder:S,isLoading:C,disabled:N,onClose:E,portalTarget:D,error:O,template:T="list",columns:R,total:A})=>{const[I,X]=g.useState(!1),[P,q]=g.useState(!1),W=g.useRef(null),G=g.useRef(null),j=g.useRef(null),[K,ve]=g.useState(""),V=D??(P&&typeof document<"u"?document.body:void 0);g.useEffect(()=>{q(!0)},[]);const ne=g.useCallback(ce=>{ve(ce),x?.(ce)},[x]);g.useEffect(()=>{if(!I)return;const ce=De=>{W.current&&!W.current.contains(De.target)&&(!G.current||!G.current.contains(De.target))&&(ne(""),X(!1),E?.())};return document.addEventListener("mousedown",ce,!0),()=>{document.removeEventListener("mousedown",ce,!0)}},[ne,I,E]);const{refs:ee,floatingStyles:re,update:fe}=vp({strategy:"absolute",placement:"bottom-start",open:I,whileElementsMounted:(ce,De,mt)=>di(ce,De,mt,{ancestorScroll:!1,elementResize:!0,ancestorResize:!0,layoutShift:!0}),middleware:[mi(P0),hi({fallbackPlacements:["top-start","bottom-start"]}),pi({apply({rects:ce,elements:De}){const mt=`${Math.round(ce.reference.width)}px`;De.floating.style.width!==mt&&(De.floating.style.width=mt)}})]}),Me=g.useCallback(ce=>{j.current=ce,ee.setReference(ce)},[ee]),se=g.useCallback(ce=>{G.current=ce,ee.setFloating(ce)},[ee]);g.useEffect(()=>{I&&fe()},[I,fe]);const $=g.useCallback(ce=>{o?.(ce),ne(""),E?.(),n==="single"&&X(!1)},[ne,n,o,E]),de=g.useCallback(()=>{const ce=c.jsx("div",{ref:se,className:M(ae.dropdown,{[ae.dropdown_visible]:I,[ae.dropdown_table]:T==="table"},f),style:re,onClick:De=>De.stopPropagation(),children:c.jsx("div",{className:M(ae.dropdownContent,T==="table"&&ae.dropdownContent_table),children:(()=>{const De=T==="table"?c.jsx(I0,{value:t,options:e,onChange:$,onDelete:b,...x&&{onSearch:ne},searchClassName:k,isLoading:C,searchValue:K,searchPlaceholder:S,columns:R,total:A,mode:n}):c.jsx(A0,{value:t,options:e,optionClassName:m,optionRender:a,onChange:$,...x&&{onSearch:ne},searchClassName:k,isLoading:C,searchValue:K,searchPlaceholder:S});return s?s(De):De})()})});return V?Rn.createPortal(ce,V):ce},[f,s,re,$,ne,C,I,x,m,a,e,V,T,R,A,n,b,k,S,K,se,t]),ke=g.useMemo(()=>P?de():null,[P,de]),Oe=Array.isArray(t)?!!t.length:!!t;return c.jsxs("div",{className:ae.wrapper,children:[_&&c.jsx(Lt,{htmlFor:"CustomSelectInput",tooltipContent:y,tooltipPopperClassName:w,children:_}),c.jsxs("div",{className:ae.container,ref:W,children:[c.jsxs("div",{role:"button",id:"CustomSelectInput",tabIndex:0,ref:Me,className:M(ae.input,{[ae.disabled]:N},O&&ae.error,p),onClick:()=>{t&&(ne(""),E?.()),X(ce=>!ce)},children:[c.jsx("div",{className:ae.selectedOptionContainer,children:Oe?c.jsx(T0,{value:t,selectedOptionRender:i,tagRender:u,onDelete:b}):c.jsx("span",{className:M(ae.placeHolder,"truncate"),children:r})}),c.jsxs("div",{className:ae.iconContainer,children:[v&&Oe&&c.jsxs(c.Fragment,{children:[c.jsx(xe,{variant:"text",className:M(ae.deleteIcon,h),onClick:ce=>{ce.stopPropagation(),v()},children:c.jsx("span",{children:c.jsx(ct,{})})}),c.jsx("div",{className:ae.divider,children:c.jsx("div",{})})]}),l||c.jsx(xe,{variant:"text",className:M(ae.arrowIcon,{[ae.arrowIconExpanded]:I}),children:c.jsx(dt,{})})]})]}),ke]}),O&&c.jsx(Ct,{children:O})]})};function W0(e){const t=$0(e),n=d.forwardRef((r,o)=>{const{children:s,...a}=r,i=d.Children.toArray(s),l=i.find(B0);if(l){const u=l.props.children,f=i.map(m=>m===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:m);return c.jsx(t,{...a,ref:o,children:d.isValidElement(u)?d.cloneElement(u,void 0,f):null})}return c.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function $0(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const a=H0(o),i=z0(s,o.props);return o.type!==d.Fragment&&(i.ref=r?Pn(r,a):a),d.cloneElement(o,i)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var F0=Symbol("radix.slottable");function B0(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===F0}function z0(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function H0(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Lr="Dialog",[pc]=Sr(Lr),[Y0,tt]=pc(Lr),gc=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,i=d.useRef(null),l=d.useRef(null),[u,f]=Vo({prop:r,defaultProp:o??!1,onChange:s,caller:Lr});return c.jsx(Y0,{scope:t,triggerRef:i,contentRef:l,contentId:Sn(),titleId:Sn(),descriptionId:Sn(),open:u,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(m=>!m),[f]),modal:a,children:n})};gc.displayName=Lr;var vc="DialogTrigger",V0=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(vc,n),s=qe(t,o.triggerRef);return c.jsx(Ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ts(o.open),...r,ref:s,onClick:je(e.onClick,o.onOpenToggle)})});V0.displayName=vc;var Jo="DialogPortal",[q0,_c]=pc(Jo,{forceMount:void 0}),bc=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=tt(Jo,t);return c.jsx(q0,{scope:t,forceMount:n,children:d.Children.map(r,a=>c.jsx(Tt,{present:n||s.open,children:c.jsx(Rr,{asChild:!0,container:o,children:a})}))})};bc.displayName=Jo;var yr="DialogOverlay",yc=d.forwardRef((e,t)=>{const n=_c(yr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=tt(yr,e.__scopeDialog);return s.modal?c.jsx(Tt,{present:r||s.open,children:c.jsx(U0,{...o,ref:t})}):null});yc.displayName=yr;var G0=W0("DialogOverlay.RemoveScroll"),U0=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(yr,n);return c.jsx(Xo,{as:G0,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(Ie.div,{"data-state":ts(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Yt="DialogContent",wc=d.forwardRef((e,t)=>{const n=_c(Yt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=tt(Yt,e.__scopeDialog);return c.jsx(Tt,{present:r||s.open,children:s.modal?c.jsx(Z0,{...o,ref:t}):c.jsx(X0,{...o,ref:t})})});wc.displayName=Yt;var Z0=d.forwardRef((e,t)=>{const n=tt(Yt,e.__scopeDialog),r=d.useRef(null),o=qe(t,n.contentRef,r);return d.useEffect(()=>{const s=r.current;if(s)return Hi(s)},[]),c.jsx(xc,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:je(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:je(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&s.preventDefault()}),onFocusOutside:je(e.onFocusOutside,s=>s.preventDefault())})}),X0=d.forwardRef((e,t)=>{const n=tt(Yt,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return c.jsx(xc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),xc=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,i=tt(Yt,n),l=d.useRef(null),u=qe(t,l);return Fi(),c.jsxs(c.Fragment,{children:[c.jsx(Zo,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:c.jsx(Nr,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":ts(i.open),...a,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(Q0,{titleId:i.titleId}),c.jsx(eg,{contentRef:l,descriptionId:i.descriptionId})]})]})}),es="DialogTitle",Cc=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(es,n);return c.jsx(Ie.h2,{id:o.titleId,...r,ref:t})});Cc.displayName=es;var kc="DialogDescription",Sc=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(kc,n);return c.jsx(Ie.p,{id:o.descriptionId,...r,ref:t})});Sc.displayName=kc;var Nc="DialogClose",K0=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=tt(Nc,n);return c.jsx(Ie.button,{type:"button",...r,ref:t,onClick:je(e.onClick,()=>o.onOpenChange(!1))})});K0.displayName=Nc;function ts(e){return e?"open":"closed"}var Ec="DialogTitleWarning",[D3,jc]=lf(Ec,{contentName:Yt,titleName:es,docsSlug:"dialog"}),Q0=({titleId:e})=>{const t=jc(Ec),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
42
42
 
43
43
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
44
44
 
45
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Q0="DialogDescriptionWarning",J0=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ec(Q0).contentName}}.`;return d.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},eg=pc,tg=_c,jc=bc,Mc=yc,Oc=xc,Dc=kc;const Wr=eg,ng=tg,Pc=d.forwardRef(({className:e,...t},n)=>c.jsx(jc,{ref:n,className:J("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Pc.displayName=jc.displayName;const Wn=d.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(ng,{children:[c.jsx(Pc,{}),c.jsx(Mc,{ref:r,className:J("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:t})]}));Wn.displayName=Mc.displayName;const $n=({className:e,...t})=>c.jsx("div",{className:J("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});$n.displayName="DialogHeader";const $r=({className:e,...t})=>c.jsx("div",{className:J("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});$r.displayName="DialogFooter";const Fn=d.forwardRef(({className:e,...t},n)=>c.jsx(Oc,{ref:n,className:J("text-lg font-semibold leading-none tracking-tight",e),...t}));Fn.displayName=Oc.displayName;const rg=d.forwardRef(({className:e,...t},n)=>c.jsx(Dc,{ref:n,className:J("text-sm text-muted-foreground",e),...t}));rg.displayName=Dc.displayName;const og="_wrapper_4ju0w_1",sg="_input_4ju0w_5",ag="_error_4ju0w_25",ig="_disabled_4ju0w_33",cg="_selectedOption_4ju0w_39",lg="_placeholder_4ju0w_50",dg="_actions_4ju0w_54",ug="_clearButton_4ju0w_61",fg="_selectButton_4ju0w_70",mg="_dialogContent_4ju0w_77",hg="_dialogHeader_4ju0w_92",pg="_dialogTitle_4ju0w_97",gg="_search_4ju0w_104",vg="_searchIcon_4ju0w_120",_g="_searchInput_4ju0w_131",bg="_searchSpinner_4ju0w_162",yg="_tableContainer_4ju0w_166",wg="_table_4ju0w_166",xg="_activeRow_4ju0w_209",Cg="_emptyState_4ju0w_216",kg="_dialogFooter_4ju0w_223",Ng="_pagination_4ju0w_231",Sg="_footerActions_4ju0w_232",Eg="_pageInfo_4ju0w_251",_e={wrapper:og,input:sg,error:ag,disabled:ig,selectedOption:cg,placeholder:lg,actions:dg,clearButton:ug,selectButton:fg,dialogContent:mg,dialogHeader:hg,dialogTitle:pg,search:gg,searchIcon:vg,searchInput:_g,searchSpinner:bg,tableContainer:yg,table:wg,activeRow:xg,emptyState:Cg,dialogFooter:kg,pagination:Ng,footerActions:Sg,pageInfo:Eg},jg=8,Mg=350,ns=({value:e,placeholder:t,loadOptions:n,onChange:r,onClear:o,columns:s,label:a,tooltipContent:i,tooltipPopperClassName:l,title:u="Поиск сотрудника",searchPlaceholder:f="Введите запрос",selectButtonText:m="Выбрать",closeButtonText:p="Закрыть",manualButtonText:h="Добавить вручную",onManualAdd:b,pageSize:v=jg,debounceMs:_=Mg,disabled:y,error:w,className:x,inputClassName:k,selectedOptionRender:N})=>{const[C,S]=g.useState(!1),[E,D]=g.useState(""),[O,T]=g.useState(""),[P,A]=g.useState(1),[I,X]=g.useState([]),[R,q]=g.useState(),[W,G]=g.useState(!1),[j,K]=g.useState(!1),ve=g.useRef(0),V=g.useMemo(()=>s??[{key:"label",title:"ФИО сотрудника",render:$=>$.label},{key:"birthDate",title:"День рождения",render:$=>$.meta?.birthDate??"—"}],[s]),ne=R?Math.max(1,Math.ceil(R/v)):void 0,ee=P>1,re=ne?P<ne:W;g.useEffect(()=>{const $=window.setTimeout(()=>{T(E.trim()),A(1)},_);return()=>window.clearTimeout($)},[_,E]),g.useEffect(()=>{if(!C)return;const $=ve.current+1;ve.current=$,K(!0),n({search:O,page:P,pageSize:v}).then(de=>{ve.current===$&&(X(de.options),q(de.total),G(de.hasNextPage??!1))}).finally(()=>{ve.current===$&&K(!1)})},[O,C,n,P,v]);const fe=g.useCallback($=>{S($),$||(D(""),T(""),A(1))},[]),Me=g.useCallback($=>{r?.($),fe(!1)},[fe,r]),se=e?N?N(e):e.label:t;return c.jsxs("div",{className:M(_e.wrapper,x),children:[a&&c.jsx(Lt,{htmlFor:"DialogSelectInput",tooltipContent:i,tooltipPopperClassName:l,children:a}),c.jsxs("div",{id:"DialogSelectInput",role:"button",tabIndex:y?-1:0,className:M(_e.input,{[_e.disabled]:y,[_e.error]:w},k),onClick:()=>!y&&fe(!0),onKeyDown:$=>{!y&&($.key==="Enter"||$.key===" ")&&($.preventDefault(),fe(!0))},children:[c.jsx("span",{className:M(_e.selectedOption,{[_e.placeholder]:!e}),children:se}),c.jsxs("span",{className:_e.actions,children:[o&&e&&c.jsx(xe,{variant:"text",className:_e.clearButton,"aria-label":"Очистить выбранное значение",onClick:$=>{$.stopPropagation(),o()},children:c.jsx(ct,{})}),c.jsx(xe,{variant:"link",className:_e.selectButton,disabled:y,onClick:$=>{$.stopPropagation(),fe(!0)},children:m})]})]}),c.jsx(Wr,{open:C,onOpenChange:fe,children:c.jsxs(Wn,{className:_e.dialogContent,children:[c.jsx($n,{className:_e.dialogHeader,children:c.jsx(Fn,{className:_e.dialogTitle,children:u})}),c.jsxs("div",{className:_e.search,children:[c.jsx(xr,{className:_e.searchIcon}),c.jsx("input",{className:_e.searchInput,value:E,onChange:$=>D($.target.value),placeholder:f,autoFocus:!0}),j&&c.jsx(Ge,{size:"extraSmall",className:_e.searchSpinner})]}),c.jsxs("div",{className:_e.tableContainer,children:[c.jsxs("table",{className:_e.table,children:[c.jsx("thead",{children:c.jsx("tr",{children:V.map($=>c.jsx("th",{className:$.className,children:$.title},$.key))})}),c.jsx("tbody",{children:I.map($=>{const de=e?.value===$.value;return c.jsx("tr",{className:M({[_e.activeRow]:de}),onClick:()=>Me($),children:V.map(ke=>c.jsx("td",{className:ke.className,children:ke.render($)},ke.key))},String($.value))})})]}),!j&&!I.length&&c.jsx("div",{className:_e.emptyState,children:c.jsx(It,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})})]}),c.jsxs($r,{className:_e.dialogFooter,children:[c.jsxs("div",{className:_e.pagination,children:[c.jsx(xe,{variant:"secondary",size:"small",disabled:!ee||j,onClick:()=>A($=>Math.max(1,$-1)),children:"Назад"}),c.jsxs("span",{className:_e.pageInfo,children:["Страница ",P,ne?` из ${ne}`:""]}),c.jsx(xe,{variant:"secondary",size:"small",disabled:!re||j,onClick:()=>A($=>$+1),children:"Вперёд"})]}),c.jsxs("div",{className:_e.footerActions,children:[b&&c.jsx(xe,{variant:"primary",onClick:b,children:h}),c.jsx(xe,{variant:"secondary",onClick:()=>fe(!1),children:p})]})]})]})}),w&&c.jsx(Ct,{children:w})]})},Og="_wrapper_15kqr_1",Dg="_input_15kqr_5",Pg="_error_15kqr_25",Rg="_disabled_15kqr_33",Tg="_selectedOption_15kqr_39",Ag="_placeholder_15kqr_50",Ig="_actions_15kqr_54",Lg="_clearButton_15kqr_61",Wg="_selectButton_15kqr_70",$g="_dialogContent_15kqr_77",Fg="_dialogHeader_15kqr_92",Bg="_dialogTitle_15kqr_97",zg="_search_15kqr_104",Hg="_searchIcon_15kqr_120",Yg="_searchInput_15kqr_131",Vg="_searchSpinner_15kqr_162",qg="_treeContainer_15kqr_166",Gg="_row_15kqr_176",Ug="_row_active_15kqr_191",Zg="_nodeLabel_15kqr_194",Xg="_row_match_15kqr_198",Kg="_chevron_15kqr_202",Qg="_chevronExpanded_15kqr_227",Jg="_chevronPlaceholder_15kqr_231",ev="_nodeSpinner_15kqr_237",tv="_emptyState_15kqr_249",nv="_loadingState_15kqr_256",rv="_dialogFooter_15kqr_263",pe={wrapper:Og,input:Dg,error:Pg,disabled:Rg,selectedOption:Tg,placeholder:Ag,actions:Ig,clearButton:Lg,selectButton:Wg,dialogContent:$g,dialogHeader:Fg,dialogTitle:Bg,search:zg,searchIcon:Hg,searchInput:Yg,searchSpinner:Vg,treeContainer:qg,row:Gg,row_active:Ug,nodeLabel:Zg,row_match:Xg,chevron:Kg,chevronExpanded:Qg,chevronPlaceholder:Jg,nodeSpinner:ev,emptyState:tv,loadingState:nv,dialogFooter:rv},ov=350,vt="__root__",sv=({value:e,placeholder:t,loadChildren:n,loadNodes:r,searchNodes:o,onChange:s,onClear:a,label:i,tooltipContent:l,tooltipPopperClassName:u,title:f="Выбор элемента",searchPlaceholder:m="Введите запрос",selectButtonText:p="Выбрать",closeButtonText:h="Закрыть",confirmButtonText:b="Выбрать",debounceMs:v=ov,disabled:_,error:y,className:w,inputClassName:x,selectedOptionRender:k,nodeRender:N,leafConfirmOnly:C=!1})=>{const S=r??n,[E,D]=g.useState(!1),[O,T]=g.useState(""),[P,A]=g.useState(""),[I,X]=g.useState(()=>new Map),[R,q]=g.useState(()=>new Set),[W,G]=g.useState(()=>new Set),[j,K]=g.useState(()=>new Set),[ve,V]=g.useState(()=>new Set),[ne,ee]=g.useState(!1),[re,fe]=g.useState(null),Me=g.useRef(0),se=g.useRef(0);g.useEffect(()=>{if(!E||I.has(vt))return;const z=Me.current+1;Me.current=z,q(be=>{const he=new Set(be);return he.add(vt),he}),S({parentId:null,search:""}).then(be=>{Me.current===z&&X(he=>{const Ne=new Map(he);return Ne.set(vt,be.nodes),Ne})}).finally(()=>{Me.current===z&&q(be=>{const he=new Set(be);return he.delete(vt),he})})},[E,S,I]),g.useEffect(()=>{const z=window.setTimeout(()=>A(O.trim()),v);return()=>window.clearTimeout(z)},[O,v]),g.useEffect(()=>{if(!E||!o)return;if(!P){V(new Set),K(new Set);return}const z=se.current+1;se.current=z,ee(!0),o(P).then(be=>{if(se.current!==z)return;const he=new Set,Ne=new Set,Pe=new Map;for(const Ue of be.matches){he.add(Ue.node.value);const Re=[...Ue.path,Ue.node];for(let Se=0;Se<Re.length-1;Se++){const ht=Re[Se],pt=Re[Se+1];Ne.add(ht.value);const Ze=ht.value;Pe.has(Ze)||Pe.set(Ze,new Map),Pe.get(Ze).set(pt.value,pt)}if(Re.length>0){const Se=Re[0];Pe.has(vt)||Pe.set(vt,new Map),Pe.get(vt).set(Se.value,Se)}}V(he),K(Ne),X(Ue=>{const Re=new Map(Ue);return Pe.forEach((Se,ht)=>{const pt=Re.get(ht)??[],Ze=new Map;pt.forEach(nt=>Ze.set(nt.value,nt)),Se.forEach((nt,Zn)=>Ze.set(Zn,nt)),Re.set(ht,Array.from(Ze.values()))}),Re})}).finally(()=>{se.current===z&&ee(!1)})},[P,E,o]);const $=g.useCallback(z=>{D(z),z||(T(""),A(""),fe(null),V(new Set),K(new Set))},[]),de=g.useCallback(z=>{const be=z.value;I.has(be)||R.has(be)||(q(he=>{const Ne=new Set(he);return Ne.add(be),Ne}),S({parentId:z.value,search:""}).then(he=>{X(Ne=>{const Pe=new Map(Ne),Ue=Pe.get(be)??[],Re=new Map;return Ue.forEach(Se=>Re.set(Se.value,Se)),he.nodes.forEach(Se=>Re.set(Se.value,Se)),Pe.set(be,Array.from(Re.values())),Pe})}).finally(()=>{q(he=>{const Ne=new Set(he);return Ne.delete(be),Ne})}))},[I,S,R]),ke=g.useCallback(z=>{G(be=>{const he=new Set(be);return he.has(z.value)?he.delete(z.value):(he.add(z.value),de(z)),he})},[de]),Oe=g.useCallback(z=>{fe(z)},[]),ce=g.useCallback(()=>{C&&(!re||re.hasChildren===!0)||(re&&s?.(re),$(!1))},[$,C,s,re]),De=g.useCallback(z=>W.has(z)||j.has(z),[W,j]),mt=g.useCallback(z=>{if(!P||o)return z;const be=P.toLowerCase();return z.filter(he=>he.label.toLowerCase().includes(be))},[P,o]),Vn=(z,be)=>{const he=z.value,Ne=I.get(he),Pe=De(z.value),Ue=R.has(he),Re=re?.value===z.value,Se=e?.value===z.value,ht=ve.has(z.value),pt=Pe&&Ne&&Ne.length>0,Ze=pt?mt(Ne):[];return c.jsxs(g.Fragment,{children:[c.jsxs("div",{className:M(pe.row,{[pe.row_active]:Re||Se,[pe.row_match]:ht}),style:{paddingLeft:16+be*20},onClick:()=>Oe(z),children:[z.hasChildren?c.jsx("button",{type:"button",className:M(pe.chevron,{[pe.chevronExpanded]:Pe}),onClick:nt=>{nt.stopPropagation(),ke(z)},"aria-label":Pe?"Свернуть":"Раскрыть",children:c.jsx(dt,{})}):c.jsx("span",{className:pe.chevronPlaceholder}),c.jsx("span",{className:pe.nodeLabel,children:N?N(z):z.label}),Ue&&c.jsx(Ge,{size:"extraSmall",className:pe.nodeSpinner})]}),pt&&Ze.map(nt=>Vn(nt,be+1))]},String(z.value))},qn=I.get(vt)??[],Gn=mt(qn),qt=R.has(vt),zr=e?k?k(e):e.label:t,Hr=!qt&&!ne&&Gn.length===0,Un=g.useMemo(()=>ne||qt&&!!P,[ne,qt,P]),hn=!re||C&&re.hasChildren===!0;return c.jsxs("div",{className:M(pe.wrapper,w),children:[i&&c.jsx(Lt,{htmlFor:"TreeDialogSelectInput",tooltipContent:l,tooltipPopperClassName:u,children:i}),c.jsxs("div",{id:"TreeDialogSelectInput",role:"button",tabIndex:_?-1:0,className:M(pe.input,{[pe.disabled]:_,[pe.error]:y},x),onClick:()=>!_&&$(!0),onKeyDown:z=>{!_&&(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),$(!0))},children:[c.jsx("span",{className:M(pe.selectedOption,{[pe.placeholder]:!e}),children:zr}),c.jsxs("span",{className:pe.actions,children:[a&&e&&c.jsx(xe,{variant:"text",className:pe.clearButton,"aria-label":"Очистить выбранное значение",onClick:z=>{z.stopPropagation(),a()},children:c.jsx(ct,{})}),c.jsx(xe,{variant:"link",className:pe.selectButton,disabled:_,onClick:z=>{z.stopPropagation(),$(!0)},children:p})]})]}),c.jsx(Wr,{open:E,onOpenChange:$,children:c.jsxs(Wn,{className:pe.dialogContent,children:[c.jsx($n,{className:pe.dialogHeader,children:c.jsx(Fn,{className:pe.dialogTitle,children:f})}),c.jsxs("div",{className:pe.search,children:[c.jsx(xr,{className:pe.searchIcon}),c.jsx("input",{className:pe.searchInput,value:O,onChange:z=>T(z.target.value),placeholder:m,autoFocus:!0}),Un&&c.jsx(Ge,{size:"extraSmall",className:pe.searchSpinner})]}),c.jsx("div",{className:pe.treeContainer,children:qt&&qn.length===0?c.jsx("div",{className:pe.loadingState,children:c.jsx(Ge,{size:"small"})}):Hr?c.jsx("div",{className:pe.emptyState,children:c.jsx(It,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})}):Gn.map(z=>Vn(z,0))}),c.jsxs($r,{className:pe.dialogFooter,children:[c.jsx(xe,{variant:"secondary",onClick:()=>$(!1),children:h}),c.jsx(xe,{variant:"primary",disabled:hn,onClick:ce,children:b})]})]})}),y&&c.jsx(Ct,{children:y})]})},av="_wrapper_1wain_1",iv="_tabs_1wain_6",cv="_tabItem_1wain_16",lv="_active_1wain_46",dv="_before_1wain_61",uv="_after_1wain_62",fv="_panel_1wain_101",_t={wrapper:av,tabs:iv,tabItem:cv,active:lv,before:dv,after:uv,panel:fv};function mv(e){return e.map((t,n)=>{if("value"in t&&"label"in t)return{key:t.value,label:t.label,className:t.className,needNotification:t.needNotification,header:t.header};const r=t;return{key:n,label:r.title,className:r.className,needNotification:r.needNotification,header:r.header}})}const hv=d.memo(({className:e,items:t=[],children:n,value:r,onValueChange:o,activeTab:s,onClick:a,tabsClassName:i})=>{const l=g.useMemo(()=>mv(t),[t]),u=g.useMemo(()=>{if(r!==void 0){const f=l.findIndex(m=>m.key===r);return f>=0?f:0}return s??0},[r,s,l]);return c.jsxs("div",{className:M(_t.wrapper,e),children:[c.jsx("div",{className:M(_t.tabs,i),children:l.map((f,m)=>f.label&&c.jsxs("div",{className:M(_t.tabItem,f.className,{[_t.active]:u===m,[_t.first]:m===0,[_t.last]:m===l.length-1}),style:{zIndex:u===m?l.length:m===0?0:l.length-m},onClick:p=>{p.stopPropagation(),o?o(f.key):a?.(m)},children:[u===m&&m!==0&&c.jsx("span",{className:_t.before}),f.label,u===m&&m!==l.length-1&&c.jsx("span",{className:_t.after})]},m))}),c.jsx("div",{className:_t.panel,children:n})]})}),pv="_wrapper_11rlz_1",gv="_column_11rlz_8",vv="_step_11rlz_16",_v="_clickable_11rlz_39",bv="_step_inactive_11rlz_46",yv="_step_current_11rlz_51",wv="_connector_11rlz_55",xv="_connector_active_11rlz_64",Cv="_labelWrap_11rlz_68",kv="_label_11rlz_68",Nv="_label_active_11rlz_84",Xe={wrapper:pv,column:gv,step:vv,clickable:_v,step_inactive:bv,step_current:yv,connector:wv,connector_active:xv,labelWrap:Cv,label:kv,label_active:Nv},Sv=({items:e,current:t,onChange:n,showCheckOnCompleted:r=!1,className:o})=>{const s=!!n;return c.jsx("div",{className:M(Xe.wrapper,o),role:"list",children:e.map((a,i)=>{const l=i<t,u=i===t,f=i<=t,m=i===e.length-1,p=r&&l,h=a.content??(p?c.jsx(Po,{}):i+1),b=c.jsx("button",{type:"button",className:M(Xe.step,{[Xe.step_inactive]:!f,[Xe.step_current]:u,[Xe.clickable]:s}),disabled:!s,onClick:()=>n?.(i),"aria-current":u?"step":void 0,"aria-label":typeof a.label=="string"?a.label:`Шаг ${i+1}`,children:h});return c.jsxs(g.Fragment,{children:[c.jsxs("div",{className:Xe.column,role:"listitem",children:[b,a.label?c.jsx("div",{className:Xe.labelWrap,children:c.jsx("span",{className:M(Xe.label,{[Xe.label_active]:f}),children:a.label})}):null]}),!m&&c.jsx("span",{className:M(Xe.connector,{[Xe.connector_active]:i<t})})]},i)})})},Ev="_container_1whkx_1",jv="_tabs_1whkx_4",Mv="_line_1whkx_11",Ov="_tabItem_1whkx_21",Dv="_header_1whkx_34",Pv="_notificationChanges_1whkx_42",Rv="_tabs_hasAnimatedIndicator_1whkx_61",Tv="_active_1whkx_64",Et={container:Ev,tabs:jv,line:Mv,tabItem:Ov,header:Dv,notificationChanges:Pv,tabs_hasAnimatedIndicator:Rv,active:Tv};function Av(e){return e.map((t,n)=>{if("value"in t&&"label"in t)return{key:t.value,label:t.label,className:t.className,header:t.header};const r=t;return{key:n,label:r.title,className:r.className,header:r.header}})}const Iv=d.memo(({items:e=[],value:t,onValueChange:n,activeTab:r,className:o,tabsClassName:s,changesIndex:a,badgeValue:i,sliderClassName:l,onClick:u})=>{const f=g.useMemo(()=>Av(e),[e]),m=g.useMemo(()=>{if(t!==void 0){const _=f.findIndex(y=>y.key===t);return _>=0?_:0}return r!==void 0?r:0},[t,r,f]),p=g.useRef(null),h=g.useRef(null),[b,v]=g.useState({left:0,width:0});return g.useEffect(()=>{const _=p.current;if(!_)return;const y=()=>{const k={left:_.offsetLeft||0,width:_.clientWidth||0};v(N=>N.left===k.left&&N.width===k.width?N:k)},w=()=>{h.current!==null&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(()=>{h.current=null,y()})};w();const x=new ResizeObserver(()=>{w()});return x.observe(_),()=>{x.disconnect(),h.current!==null&&(cancelAnimationFrame(h.current),h.current=null)}},[m]),c.jsx("div",{className:M(Et.container,o),children:c.jsxs("div",{className:M(Et.tabs,Et.tabs_hasAnimatedIndicator,s),children:[f.map((_,y)=>_.label&&c.jsxs("div",{ref:m===y?p:void 0,className:M(Et.tabItem,_.className,{[Et.active]:m===y}),onClick:w=>{w.stopPropagation(),n?n(_.key):u?.(y)},children:[_.header&&c.jsx("div",{className:Et.header,children:_.header}),_.label,a===y&&c.jsx("div",{className:Et.notificationChanges,children:i!=null?i>99?"99+":String(i):null})]},y)),c.jsx("div",{className:M(Et.line,l),style:{left:b.left,width:b.width}})]})})}),Lv="_wrapper_rkn19_1",Wv="_container_rkn19_6",$v="_input_rkn19_10",Fv="_error_rkn19_45",Bv="_disabled_rkn19_51",gn={wrapper:Lv,container:Wv,input:$v,error:Fv,disabled:Bv},Rc=g.forwardRef(({label:e,error:t,disabled:n,className:r,inputClassName:o,tooltipContent:s,tooltipPopperClassName:a,id:i,...l},u)=>{const f=g.useId(),m=i??f;return c.jsxs("div",{className:M(gn.wrapper,r),children:[e&&c.jsx(Lt,{htmlFor:m,tooltipContent:s,tooltipPopperClassName:a,children:e}),c.jsx("div",{className:gn.container,children:c.jsx("input",{ref:u,id:m,disabled:n,"aria-invalid":t?!0:void 0,className:M(gn.input,{[gn.disabled]:n,[gn.error]:!!t},o),...l})}),t&&c.jsx(Ct,{children:t})]})});Rc.displayName="Input";const zv="_wrapper_10aju_1",Hv="_container_10aju_6",Yv="_textarea_10aju_10",Vv="_error_10aju_46",qv="_disabled_10aju_52",vn={wrapper:zv,container:Hv,textarea:Yv,error:Vv,disabled:qv},Tc=g.forwardRef(({label:e,error:t,hint:n,hintVariant:r,disabled:o,className:s,textareaClassName:a,tooltipContent:i,tooltipPopperClassName:l,id:u,...f},m)=>{const p=g.useId(),h=u??p;return c.jsxs("div",{className:M(vn.wrapper,s),children:[e&&c.jsx(Lt,{htmlFor:h,tooltipContent:i,tooltipPopperClassName:l,children:e}),c.jsx("div",{className:vn.container,children:c.jsx("textarea",{ref:m,id:h,disabled:o,"aria-invalid":t?!0:void 0,className:M(vn.textarea,{[vn.disabled]:o,[vn.error]:!!t},a),...f})}),t&&c.jsx(Ct,{children:t}),!t&&n&&c.jsx(Ct,{variant:r??"neutral",children:n})]})});Tc.displayName="Textarea";function Gv(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const Uv={},wn={};function zt(e,t){try{const r=(Uv[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in wn?wn[r]:ta(r,r.split(":"))}catch{if(e in wn)return wn[e];const n=e?.match(Zv);return n?ta(e,n.slice(1)):NaN}}const Zv=/([+-]\d\d):?(\d\d)?/;function ta(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return wn[e]=n*60+r>0?n*60+r+o:n*60-r-o}class it extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(zt(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),Ac(this),Mo(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new it(...n,t):new it(Date.now(),t)}withTimeZone(t){return new it(+this,t)}getTimezoneOffset(){const t=-zt(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Mo(this),+this}[Symbol.for("constructDateFrom")](t){return new it(+new Date(t),this.timeZone)}}const na=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!na.test(e))return;const t=e.replace(na,"$1UTC");it.prototype[t]&&(e.startsWith("get")?it.prototype[e]=function(){return this.internal[t]()}:(it.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Xv(this),+this},it.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Mo(this),+this}))});function Mo(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-zt(e.timeZone,e)*60))}function Xv(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Ac(e)}function Ac(e){const t=zt(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),s=-new Date(+r).getTimezoneOffset(),a=o-s,i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const l=o-n;l&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);const u=new Date(+e);u.setUTCSeconds(0);const f=o>0?u.getSeconds():(u.getSeconds()-60)%60,m=Math.round(-(zt(e.timeZone,e)*60))%60;(m||f)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+m),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+m+f));const p=zt(e.timeZone,e),h=p>0?Math.floor(p):Math.ceil(p),v=-new Date(+e).getTimezoneOffset()-h,_=h!==n,y=v-l;if(_&&y){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+y);const w=zt(e.timeZone,e),x=w>0?Math.floor(w):Math.ceil(w),k=h-x;k&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+k),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+k))}}class Te extends it{static tz(t,...n){return n.length?new Te(...n,t):new Te(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${Gv(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new Te(+this,t)}[Symbol.for("constructDateFrom")](t){return new Te(+new Date(t),this.timeZone)}}const Ic=6048e5,Kv=864e5,ra=Symbol.for("constructDateFrom");function Ce(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ra in e?e[ra](t):e instanceof Date?new e.constructor(t):new Date(t)}function ge(e,t){return Ce(t||e,e)}function Lc(e,t,n){const r=ge(e,n?.in);return isNaN(t)?Ce(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Wc(e,t,n){const r=ge(e,n?.in);if(isNaN(t))return Ce(e,NaN);if(!t)return r;const o=r.getDate(),s=Ce(e,r.getTime());s.setMonth(r.getMonth()+t+1,0);const a=s.getDate();return o>=a?s:(r.setFullYear(s.getFullYear(),s.getMonth(),o),r)}let Qv={};function Bn(){return Qv}function cn(e,t){const n=Bn(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=ge(e,t?.in),s=o.getDay(),a=(s<r?7:0)+s-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function On(e,t){return cn(e,{...t,weekStartsOn:1})}function $c(e,t){const n=ge(e,t?.in),r=n.getFullYear(),o=Ce(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=On(o),a=Ce(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const i=On(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function oa(e){const t=ge(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function un(e,...t){const n=Ce.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Dn(e,t){const n=ge(e,t?.in);return n.setHours(0,0,0,0),n}function rs(e,t,n){const[r,o]=un(n?.in,e,t),s=Dn(r),a=Dn(o),i=+s-oa(s),l=+a-oa(a);return Math.round((i-l)/Kv)}function Jv(e,t){const n=$c(e,t),r=Ce(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),On(r)}function e2(e,t,n){return Lc(e,t*7,n)}function t2(e,t,n){return Wc(e,t*12,n)}function n2(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ce.bind(null,o));const s=ge(o,r);(!n||n<s||isNaN(+s))&&(n=s)}),Ce(r,n||NaN)}function r2(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ce.bind(null,o));const s=ge(o,r);(!n||n>s||isNaN(+s))&&(n=s)}),Ce(r,n||NaN)}function o2(e,t,n){const[r,o]=un(n?.in,e,t);return+Dn(r)==+Dn(o)}function Fc(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function s2(e){return!(!Fc(e)&&typeof e!="number"||isNaN(+ge(e)))}function Bc(e,t,n){const[r,o]=un(n?.in,e,t),s=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return s*12+a}function a2(e,t){const n=ge(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function zc(e,t){const[n,r]=un(e,t.start,t.end);return{start:n,end:r}}function i2(e,t){const{start:n,end:r}=zc(t?.in,e);let o=+n>+r;const s=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setDate(1);let i=1;const l=[];for(;+a<=s;)l.push(Ce(n,a)),a.setMonth(a.getMonth()+i);return o?l.reverse():l}function c2(e,t){const n=ge(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function l2(e,t){const n=ge(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Hc(e,t){const n=ge(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function d2(e,t){const{start:n,end:r}=zc(t?.in,e);let o=+n>+r;const s=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setMonth(0,1);let i=1;const l=[];for(;+a<=s;)l.push(Ce(n,a)),a.setFullYear(a.getFullYear()+i);return o?l.reverse():l}function Yc(e,t){const n=Bn(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=ge(e,t?.in),s=o.getDay(),a=(s<r?-7:0)+6-(s-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function u2(e,t){return Yc(e,{...t,weekStartsOn:1})}const f2={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},m2=(e,t,n)=>{let r;const o=f2[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function uo(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const h2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},p2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},g2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},v2={date:uo({formats:h2,defaultWidth:"full"}),time:uo({formats:p2,defaultWidth:"full"}),dateTime:uo({formats:g2,defaultWidth:"full"})},_2={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},b2=(e,t,n,r)=>_2[e];function _n(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):a;o=e.formattingValues[i]||e.formattingValues[a]}else{const a=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;o=e.values[i]||e.values[a]}const s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}const y2={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},w2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},x2={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},C2={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},k2={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},N2={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},S2=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},E2={ordinalNumber:S2,era:_n({values:y2,defaultWidth:"wide"}),quarter:_n({values:w2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:_n({values:x2,defaultWidth:"wide"}),day:_n({values:C2,defaultWidth:"wide"}),dayPeriod:_n({values:k2,defaultWidth:"wide",formattingValues:N2,defaultFormattingWidth:"wide"})};function bn(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;const a=s[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?M2(i,m=>m.test(a)):j2(i,m=>m.test(a));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(a.length);return{value:u,rest:f}}}function j2(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function M2(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function O2(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;const i=t.slice(o.length);return{value:a,rest:i}}}const D2=/^(\d+)(th|st|nd|rd)?/i,P2=/\d+/i,R2={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},T2={any:[/^b/i,/^(a|c)/i]},A2={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},I2={any:[/1/i,/2/i,/3/i,/4/i]},L2={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},W2={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},$2={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},F2={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},B2={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},z2={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},H2={ordinalNumber:O2({matchPattern:D2,parsePattern:P2,valueCallback:e=>parseInt(e,10)}),era:bn({matchPatterns:R2,defaultMatchWidth:"wide",parsePatterns:T2,defaultParseWidth:"any"}),quarter:bn({matchPatterns:A2,defaultMatchWidth:"wide",parsePatterns:I2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:bn({matchPatterns:L2,defaultMatchWidth:"wide",parsePatterns:W2,defaultParseWidth:"any"}),day:bn({matchPatterns:$2,defaultMatchWidth:"wide",parsePatterns:F2,defaultParseWidth:"any"}),dayPeriod:bn({matchPatterns:B2,defaultMatchWidth:"any",parsePatterns:z2,defaultParseWidth:"any"})},Jt={code:"en-US",formatDistance:m2,formatLong:v2,formatRelative:b2,localize:E2,match:H2,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Y2(e,t){const n=ge(e,t?.in);return rs(n,Hc(n))+1}function os(e,t){const n=ge(e,t?.in),r=+On(n)-+Jv(n);return Math.round(r/Ic)+1}function Vc(e,t){const n=ge(e,t?.in),r=n.getFullYear(),o=Bn(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=Ce(t?.in||e,0);a.setFullYear(r+1,0,s),a.setHours(0,0,0,0);const i=cn(a,t),l=Ce(t?.in||e,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const u=cn(l,t);return+n>=+i?r+1:+n>=+u?r:r-1}function V2(e,t){const n=Bn(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Vc(e,t),s=Ce(t?.in||e,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),cn(s,t)}function ss(e,t){const n=ge(e,t?.in),r=+cn(n,t)-+V2(n,t);return Math.round(r/Ic)+1}function me(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const jt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return me(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):me(n+1,2)},d(e,t){return me(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return me(e.getHours()%12||12,t.length)},H(e,t){return me(e.getHours(),t.length)},m(e,t){return me(e.getMinutes(),t.length)},s(e,t){return me(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return me(o,t.length)}},Kt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},sa={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return jt.y(e,t)},Y:function(e,t,n,r){const o=Vc(e,r),s=o>0?o:1-o;if(t==="YY"){const a=s%100;return me(a,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):me(s,t.length)},R:function(e,t){const n=$c(e);return me(n,t.length)},u:function(e,t){const n=e.getFullYear();return me(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return me(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return me(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return jt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return me(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=ss(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):me(o,t.length)},I:function(e,t,n){const r=os(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):me(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):jt.d(e,t)},D:function(e,t,n){const r=Y2(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):me(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return me(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return me(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return me(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Kt.noon:r===0?o=Kt.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Kt.evening:r>=12?o=Kt.afternoon:r>=4?o=Kt.morning:o=Kt.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return jt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):jt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):me(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):me(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):jt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):jt.s(e,t)},S:function(e,t){return jt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return ia(r);case"XXXX":case"XX":return Bt(r);default:return Bt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return ia(r);case"xxxx":case"xx":return Bt(r);default:return Bt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+aa(r,":");default:return"GMT"+Bt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+aa(r,":");default:return"GMT"+Bt(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return me(r,t.length)},T:function(e,t,n){return me(+e,t.length)}};function aa(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),s=r%60;return s===0?n+String(o):n+String(o)+t+me(s,2)}function ia(e,t){return e%60===0?(e>0?"-":"+")+me(Math.abs(e)/60,2):Bt(e,t)}function Bt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=me(Math.trunc(r/60),2),s=me(r%60,2);return n+o+t+s}const ca=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},qc=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},q2=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return ca(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",ca(r,t)).replace("{{time}}",qc(o,t))},G2={p:qc,P:q2},U2=/^D+$/,Z2=/^Y+$/,X2=["D","DD","YY","YYYY"];function K2(e){return U2.test(e)}function Q2(e){return Z2.test(e)}function J2(e,t,n){const r=e_(e,t,n);if(console.warn(r),X2.includes(e))throw new RangeError(r)}function e_(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const t_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,n_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,r_=/^'([^]*?)'?$/,o_=/''/g,s_=/[a-zA-Z]/;function xn(e,t,n){const r=Bn(),o=n?.locale??r.locale??Jt,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=ge(e,n?.in);if(!s2(i))throw new RangeError("Invalid time value");let l=t.match(n_).map(f=>{const m=f[0];if(m==="p"||m==="P"){const p=G2[m];return p(f,o.formatLong)}return f}).join("").match(t_).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const m=f[0];if(m==="'")return{isToken:!1,value:a_(f)};if(sa[m])return{isToken:!0,value:f};if(m.match(s_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:f}});o.localize.preprocessor&&(l=o.localize.preprocessor(i,l));const u={firstWeekContainsDate:s,weekStartsOn:a,locale:o};return l.map(f=>{if(!f.isToken)return f.value;const m=f.value;(!n?.useAdditionalWeekYearTokens&&Q2(m)||!n?.useAdditionalDayOfYearTokens&&K2(m))&&J2(m,t,String(e));const p=sa[m[0]];return p(i,m,o.localize,u)}).join("")}function a_(e){const t=e.match(r_);return t?t[1].replace(o_,"'"):e}function i_(e,t){const n=ge(e,t?.in),r=n.getFullYear(),o=n.getMonth(),s=Ce(n,0);return s.setFullYear(r,o+1,0),s.setHours(0,0,0,0),s.getDate()}function c_(e,t){return ge(e,t?.in).getMonth()}function l_(e,t){return ge(e,t?.in).getFullYear()}function d_(e,t){return+ge(e)>+ge(t)}function u_(e,t){return+ge(e)<+ge(t)}function f_(e,t,n){const[r,o]=un(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function m_(e,t,n){const[r,o]=un(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function h_(e,t,n){const r=ge(e,n?.in),o=r.getFullYear(),s=r.getDate(),a=Ce(e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const i=i_(a);return r.setMonth(t,Math.min(s,i)),r}function p_(e,t,n){const r=ge(e,n?.in);return isNaN(+r)?Ce(e,NaN):(r.setFullYear(t),r)}const la=5,g_=4;function v_(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),s=t.addDays(o,la*7-1);return t.getMonth(e)===t.getMonth(s)?la:g_}function Gc(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function __(e,t){const n=Gc(e,t),r=v_(e,t);return t.addDays(n,r*7-1)}const Uc={...Jt,labels:{labelDayButton:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,i)=>xn(a,i,{locale:Jt,...n});let s=o(e,"PPPP");return t.today&&(s=`Today, ${s}`),t.selected&&(s=`${s}, selected`),s},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,s)=>xn(o,s,{locale:Jt,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,i)=>xn(a,i,{locale:Jt,...n});let s=o(e,"PPPP");return t?.today&&(s=`Today, ${s}`),s},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,s)=>xn(o,s,{locale:Jt,...t}),r(e,"cccc")}}};class Ye{constructor(t,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?Te.tz(this.options.timeZone):new this.Date,this.newDate=(r,o,s)=>this.overrides?.newDate?this.overrides.newDate(r,o,s):this.options.timeZone?new Te(r,o,s,this.options.timeZone):new Date(r,o,s),this.addDays=(r,o)=>this.overrides?.addDays?this.overrides.addDays(r,o):Lc(r,o),this.addMonths=(r,o)=>this.overrides?.addMonths?this.overrides.addMonths(r,o):Wc(r,o),this.addWeeks=(r,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,o):e2(r,o),this.addYears=(r,o)=>this.overrides?.addYears?this.overrides.addYears(r,o):t2(r,o),this.differenceInCalendarDays=(r,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):rs(r,o),this.differenceInCalendarMonths=(r,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):Bc(r,o),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):i2(r),this.eachYearOfInterval=r=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):d2(r),s=new Set(o.map(i=>this.getYear(i)));if(s.size===o.length)return o;const a=[];return s.forEach(i=>{a.push(new Date(i,0,1))}),a},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):__(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):u2(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):a2(r),this.endOfWeek=(r,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,o):Yc(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):l2(r),this.format=(r,o,s)=>{const a=this.overrides?.format?this.overrides.format(r,o,this.options):xn(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(a):a},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):os(r),this.getMonth=(r,o)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):c_(r,this.options),this.getYear=(r,o)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):l_(r,this.options),this.getWeek=(r,o)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):ss(r,this.options),this.isAfter=(r,o)=>this.overrides?.isAfter?this.overrides.isAfter(r,o):d_(r,o),this.isBefore=(r,o)=>this.overrides?.isBefore?this.overrides.isBefore(r,o):u_(r,o),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):Fc(r),this.isSameDay=(r,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,o):o2(r,o),this.isSameMonth=(r,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,o):f_(r,o),this.isSameYear=(r,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,o):m_(r,o),this.max=r=>this.overrides?.max?this.overrides.max(r):n2(r),this.min=r=>this.overrides?.min?this.overrides.min(r):r2(r),this.setMonth=(r,o)=>this.overrides?.setMonth?this.overrides.setMonth(r,o):h_(r,o),this.setYear=(r,o)=>this.overrides?.setYear?this.overrides.setYear(r,o):p_(r,o),this.startOfBroadcastWeek=(r,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):Gc(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):Dn(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):On(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):c2(r),this.startOfWeek=(r,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):cn(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):Hc(r),this.options={locale:Uc,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&&Ye.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:o}=this.options,s=n?.code;if(s&&Ye.yearFirstLocales.has(s))try{return new Intl.DateTimeFormat(s,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(t)}catch{}const a=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,a)}}Ye.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const ft=new Ye;class Zc{constructor(t,n,r=ft){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class b_{constructor(t,n){this.date=t,this.weeks=n}}class y_{constructor(t,n){this.days=n,this.weekNumber=t}}function w_(e){return g.createElement("button",{...e})}function x_(e){return g.createElement("span",{...e})}function C_(e){const{size:t=24,orientation:n="left",className:r}=e;return g.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&g.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&g.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&g.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&g.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function k_(e){const{day:t,modifiers:n,...r}=e;return g.createElement("td",{...r})}function N_(e){const{day:t,modifiers:n,...r}=e,o=g.useRef(null);return g.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),g.createElement("button",{ref:o,...r})}var H;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(H||(H={}));var ye;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(ye||(ye={}));var Je;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Je||(Je={}));var Be;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(Be||(Be={}));function S_(e){const{options:t,className:n,components:r,classNames:o,...s}=e,a=[o[H.Dropdown],n].join(" "),i=t?.find(({value:l})=>l===s.value);return g.createElement("span",{"data-disabled":s.disabled,className:o[H.DropdownRoot]},g.createElement(r.Select,{className:a,...s},t?.map(({value:l,label:u,disabled:f})=>g.createElement(r.Option,{key:l,value:l,disabled:f},u))),g.createElement("span",{className:o[H.CaptionLabel],"aria-hidden":!0},i?.label,g.createElement(r.Chevron,{orientation:"down",size:18,className:o[H.Chevron]})))}function E_(e){return g.createElement("div",{...e})}function j_(e){return g.createElement("div",{...e})}function M_(e){const{calendarMonth:t,displayIndex:n,...r}=e;return g.createElement("div",{...r},e.children)}function O_(e){const{calendarMonth:t,displayIndex:n,...r}=e;return g.createElement("div",{...r})}function D_(e){return g.createElement("table",{...e})}function P_(e){return g.createElement("div",{...e})}const Xc=g.createContext(void 0);function zn(){const e=g.useContext(Xc);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function R_(e){const{components:t}=zn();return g.createElement(t.Dropdown,{...e})}function T_(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...s}=e,{components:a,classNames:i,labels:{labelPrevious:l,labelNext:u}}=zn(),f=g.useCallback(p=>{o&&n?.(p)},[o,n]),m=g.useCallback(p=>{r&&t?.(p)},[r,t]);return g.createElement("nav",{...s},g.createElement(a.PreviousMonthButton,{type:"button",className:i[H.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":l(r),onClick:m},g.createElement(a.Chevron,{disabled:r?void 0:!0,className:i[H.Chevron],orientation:"left"})),g.createElement(a.NextMonthButton,{type:"button",className:i[H.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":u(o),onClick:f},g.createElement(a.Chevron,{disabled:o?void 0:!0,orientation:"right",className:i[H.Chevron]})))}function A_(e){const{components:t}=zn();return g.createElement(t.Button,{...e})}function I_(e){return g.createElement("option",{...e})}function L_(e){const{components:t}=zn();return g.createElement(t.Button,{...e})}function W_(e){const{rootRef:t,...n}=e;return g.createElement("div",{...n,ref:t})}function $_(e){return g.createElement("select",{...e})}function F_(e){const{week:t,...n}=e;return g.createElement("tr",{...n})}function B_(e){return g.createElement("th",{...e})}function z_(e){return g.createElement("thead",{"aria-hidden":!0},g.createElement("tr",{...e}))}function H_(e){const{week:t,...n}=e;return g.createElement("th",{...n})}function Y_(e){return g.createElement("th",{...e})}function V_(e){return g.createElement("tbody",{...e})}function q_(e){const{components:t}=zn();return g.createElement(t.Dropdown,{...e})}const G_=Object.freeze(Object.defineProperty({__proto__:null,Button:w_,CaptionLabel:x_,Chevron:C_,Day:k_,DayButton:N_,Dropdown:S_,DropdownNav:E_,Footer:j_,Month:M_,MonthCaption:O_,MonthGrid:D_,Months:P_,MonthsDropdown:R_,Nav:T_,NextMonthButton:A_,Option:I_,PreviousMonthButton:L_,Root:W_,Select:$_,Week:F_,WeekNumber:H_,WeekNumberHeader:Y_,Weekday:B_,Weekdays:z_,Weeks:V_,YearsDropdown:q_},Symbol.toStringTag,{value:"Module"}));function bt(e,t,n=!1,r=ft){let{from:o,to:s}=e;const{differenceInCalendarDays:a,isSameDay:i}=r;return o&&s?(a(s,o)<0&&([o,s]=[s,o]),a(t,o)>=(n?1:0)&&a(s,t)>=(n?1:0)):!n&&s?i(s,t):!n&&o?i(o,t):!1}function as(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Fr(e){return!!(e&&typeof e=="object"&&"from"in e)}function is(e){return!!(e&&typeof e=="object"&&"after"in e)}function cs(e){return!!(e&&typeof e=="object"&&"before"in e)}function Kc(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Qc(e,t){return Array.isArray(e)&&e.every(t.isDate)}function yt(e,t,n=ft){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:s,isAfter:a}=n;return r.some(i=>{if(typeof i=="boolean")return i;if(n.isDate(i))return o(e,i);if(Qc(i,n))return i.some(l=>o(e,l));if(Fr(i))return bt(i,e,!1,n);if(Kc(i))return Array.isArray(i.dayOfWeek)?i.dayOfWeek.includes(e.getDay()):i.dayOfWeek===e.getDay();if(as(i)){const l=s(i.before,e),u=s(i.after,e),f=l>0,m=u<0;return a(i.before,i.after)?m&&f:f||m}return is(i)?s(e,i.after)>0:cs(i)?s(i.before,e)>0:typeof i=="function"?i(e):!1})}function U_(e,t,n,r,o){const{disabled:s,hidden:a,modifiers:i,showOutsideDays:l,broadcastCalendar:u,today:f=o.today()}=t,{isSameDay:m,isSameMonth:p,startOfMonth:h,isBefore:b,endOfMonth:v,isAfter:_}=o,y=n&&h(n),w=r&&v(r),x={[ye.focused]:[],[ye.outside]:[],[ye.disabled]:[],[ye.hidden]:[],[ye.today]:[]},k={};for(const N of e){const{date:C,displayMonth:S}=N,E=!!(S&&!p(C,S)),D=!!(y&&b(C,y)),O=!!(w&&_(C,w)),T=!!(s&&yt(C,s,o)),P=!!(a&&yt(C,a,o))||D||O||!u&&!l&&E||u&&l===!1&&E,A=m(C,f);E&&x.outside.push(N),T&&x.disabled.push(N),P&&x.hidden.push(N),A&&x.today.push(N),i&&Object.keys(i).forEach(I=>{const X=i?.[I];X&&yt(C,X,o)&&(k[I]?k[I].push(N):k[I]=[N])})}return N=>{const C={[ye.focused]:!1,[ye.disabled]:!1,[ye.hidden]:!1,[ye.outside]:!1,[ye.today]:!1},S={};for(const E in x){const D=x[E];C[E]=D.some(O=>O===N)}for(const E in k)S[E]=k[E].some(D=>D===N);return{...C,...S}}}function Z_(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[s])=>(n[s]?o.push(n[s]):t[ye[s]]?o.push(t[ye[s]]):t[Je[s]]&&o.push(t[Je[s]]),o),[t[H.Day]])}function X_(e){return{...G_,...e}}function K_(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function ls(){const e={};for(const t in H)e[H[t]]=`rdp-${H[t]}`;for(const t in ye)e[ye[t]]=`rdp-${ye[t]}`;for(const t in Je)e[Je[t]]=`rdp-${Je[t]}`;for(const t in Be)e[Be[t]]=`rdp-${Be[t]}`;return e}function Jc(e,t,n){return(n??new Ye(t)).formatMonthYear(e)}const Q_=Jc;function J_(e,t,n){return(n??new Ye(t)).format(e,"d")}function eb(e,t=ft){return t.format(e,"LLLL")}function tb(e,t,n){return(n??new Ye(t)).format(e,"cccccc")}function nb(e,t=ft){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function rb(){return""}function el(e,t=ft){return t.format(e,"yyyy")}const ob=el,sb=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:Jc,formatDay:J_,formatMonthCaption:Q_,formatMonthDropdown:eb,formatWeekNumber:nb,formatWeekNumberHeader:rb,formatWeekdayName:tb,formatYearCaption:ob,formatYearDropdown:el},Symbol.toStringTag,{value:"Module"}));function ab(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...sb,...e}}function ds(e,t,n,r){let o=(r??new Ye(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const ib=ds;function us(e,t,n){return(n??new Ye(t)).formatMonthYear(e)}const cb=us;function tl(e,t,n,r){let o=(r??new Ye(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function nl(e){return"Choose the Month"}function rl(){return""}const lb="Go to the Next Month";function ol(e,t){return lb}function sl(e){return"Go to the Previous Month"}function al(e,t,n){return(n??new Ye(t)).format(e,"cccc")}function il(e,t){return`Week ${e}`}function cl(e){return"Week Number"}function ll(e){return"Choose the Year"}const db=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:cb,labelDay:ib,labelDayButton:ds,labelGrid:us,labelGridcell:tl,labelMonthDropdown:nl,labelNav:rl,labelNext:ol,labelPrevious:sl,labelWeekNumber:il,labelWeekNumberHeader:cl,labelWeekday:al,labelYearDropdown:ll},Symbol.toStringTag,{value:"Module"})),Ke=(e,t,n)=>t||(n?typeof n=="function"?n:(...r)=>n:e);function ub(e,t){const n=t.locale?.labels??{};return{...db,...e??{},labelDayButton:Ke(ds,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:Ke(nl,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:Ke(ol,e?.labelNext,n.labelNext),labelPrevious:Ke(sl,e?.labelPrevious,n.labelPrevious),labelWeekNumber:Ke(il,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Ke(ll,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:Ke(us,e?.labelGrid,n.labelGrid),labelGridcell:Ke(tl,e?.labelGridcell,n.labelGridcell),labelNav:Ke(rl,e?.labelNav,n.labelNav),labelWeekNumberHeader:Ke(cl,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Ke(al,e?.labelWeekday,n.labelWeekday)}}function fb(e,t,n,r,o){const{startOfMonth:s,startOfYear:a,endOfYear:i,eachMonthOfInterval:l,getMonth:u}=o;return l({start:a(e),end:i(e)}).map(p=>{const h=r.formatMonthDropdown(p,o),b=u(p),v=t&&p<s(t)||n&&p>s(n)||!1;return{value:b,label:h,disabled:v}})}function mb(e,t={},n={}){let r={...t?.[H.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n?.[o]}}),r}function hb(e,t,n,r){const o=r??e.today(),s=n?e.startOfBroadcastWeek(o,e):t?e.startOfISOWeek(o):e.startOfWeek(o),a=[];for(let i=0;i<7;i++){const l=e.addDays(s,i);a.push(l)}return a}function pb(e,t,n,r,o=!1){if(!e||!t)return;const{startOfYear:s,endOfYear:a,eachYearOfInterval:i,getYear:l}=r,u=s(e),f=a(t),m=i({start:u,end:f});return o&&m.reverse(),m.map(p=>{const h=n.formatYearDropdown(p,r);return{value:l(p),label:h,disabled:!1}})}function gb(e,t={}){const{weekStartsOn:n,locale:r}=t,o=n??r?.options?.weekStartsOn??0,s=i=>{const l=typeof i=="number"||typeof i=="string"?new Date(i):i;return new Te(l.getFullYear(),l.getMonth(),l.getDate(),12,0,0,e)},a=i=>{const l=s(i);return new Date(l.getFullYear(),l.getMonth(),l.getDate(),0,0,0,0)};return{today:()=>s(Te.tz(e)),newDate:(i,l,u)=>new Te(i,l,u,12,0,0,e),startOfDay:i=>s(i),startOfWeek:(i,l)=>{const u=s(i),f=l?.weekStartsOn??o,m=(u.getDay()-f+7)%7;return u.setDate(u.getDate()-m),u},startOfISOWeek:i=>{const l=s(i),u=(l.getDay()-1+7)%7;return l.setDate(l.getDate()-u),l},startOfMonth:i=>{const l=s(i);return l.setDate(1),l},startOfYear:i=>{const l=s(i);return l.setMonth(0,1),l},endOfWeek:(i,l)=>{const u=s(i),p=(((l?.weekStartsOn??o)+6)%7-u.getDay()+7)%7;return u.setDate(u.getDate()+p),u},endOfISOWeek:i=>{const l=s(i),u=(7-l.getDay())%7;return l.setDate(l.getDate()+u),l},endOfMonth:i=>{const l=s(i);return l.setMonth(l.getMonth()+1,0),l},endOfYear:i=>{const l=s(i);return l.setMonth(11,31),l},eachMonthOfInterval:i=>{const l=s(i.start),u=s(i.end),f=[],m=new Te(l.getFullYear(),l.getMonth(),1,12,0,0,e),p=u.getFullYear()*12+u.getMonth();for(;m.getFullYear()*12+m.getMonth()<=p;)f.push(new Te(m,e)),m.setMonth(m.getMonth()+1,1);return f},addDays:(i,l)=>{const u=s(i);return u.setDate(u.getDate()+l),u},addWeeks:(i,l)=>{const u=s(i);return u.setDate(u.getDate()+l*7),u},addMonths:(i,l)=>{const u=s(i);return u.setMonth(u.getMonth()+l),u},addYears:(i,l)=>{const u=s(i);return u.setFullYear(u.getFullYear()+l),u},eachYearOfInterval:i=>{const l=s(i.start),u=s(i.end),f=[],m=new Te(l.getFullYear(),0,1,12,0,0,e);for(;m.getFullYear()<=u.getFullYear();)f.push(new Te(m,e)),m.setFullYear(m.getFullYear()+1,0,1);return f},getWeek:(i,l)=>{const u=a(i);return ss(u,{weekStartsOn:l?.weekStartsOn??o,firstWeekContainsDate:l?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1})},getISOWeek:i=>{const l=a(i);return os(l)},differenceInCalendarDays:(i,l)=>{const u=a(i),f=a(l);return rs(u,f)},differenceInCalendarMonths:(i,l)=>{const u=a(i),f=a(l);return Bc(u,f)}}}const Hn=e=>e instanceof HTMLElement?e:null,fo=e=>[...e.querySelectorAll("[data-animated-month]")??[]],vb=e=>Hn(e.querySelector("[data-animated-month]")),mo=e=>Hn(e.querySelector("[data-animated-caption]")),ho=e=>Hn(e.querySelector("[data-animated-weeks]")),_b=e=>Hn(e.querySelector("[data-animated-nav]")),bb=e=>Hn(e.querySelector("[data-animated-weekdays]"));function yb(e,t,{classNames:n,months:r,focused:o,dateLib:s}){const a=g.useRef(null),i=g.useRef(r),l=g.useRef(!1);g.useLayoutEffect(()=>{const u=i.current;if(i.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||u.length===0||r.length!==u.length)return;const f=s.isSameMonth(r[0].date,u[0].date),m=s.isAfter(r[0].date,u[0].date),p=m?n[Be.caption_after_enter]:n[Be.caption_before_enter],h=m?n[Be.weeks_after_enter]:n[Be.weeks_before_enter],b=a.current,v=e.current.cloneNode(!0);if(v instanceof HTMLElement?(fo(v).forEach(x=>{if(!(x instanceof HTMLElement))return;const k=vb(x);k&&x.contains(k)&&x.removeChild(k);const N=mo(x);N&&N.classList.remove(p);const C=ho(x);C&&C.classList.remove(h)}),a.current=v):a.current=null,l.current||f||o)return;const _=b instanceof HTMLElement?fo(b):[],y=fo(e.current);if(y?.every(w=>w instanceof HTMLElement)&&_&&_.every(w=>w instanceof HTMLElement)){l.current=!0,e.current.style.isolation="isolate";const w=_b(e.current);w&&(w.style.zIndex="1"),y.forEach((x,k)=>{const N=_[k];if(!N)return;x.style.position="relative",x.style.overflow="hidden";const C=mo(x);C&&C.classList.add(p);const S=ho(x);S&&S.classList.add(h);const E=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),w&&(w.style.zIndex=""),C&&C.classList.remove(p),S&&S.classList.remove(h),x.style.position="",x.style.overflow="",x.contains(N)&&x.removeChild(N)};N.style.pointerEvents="none",N.style.position="absolute",N.style.overflow="hidden",N.setAttribute("aria-hidden","true");const D=bb(N);D&&(D.style.opacity="0");const O=mo(N);O&&(O.classList.add(m?n[Be.caption_before_exit]:n[Be.caption_after_exit]),O.addEventListener("animationend",E));const T=ho(N);T&&T.classList.add(m?n[Be.weeks_before_exit]:n[Be.weeks_after_exit]),x.insertBefore(N,x.firstChild)})}})}function wb(e,t,n,r){const o=e[0],s=e[e.length-1],{ISOWeek:a,fixedWeeks:i,broadcastCalendar:l}=n??{},{addDays:u,differenceInCalendarDays:f,differenceInCalendarMonths:m,endOfBroadcastWeek:p,endOfISOWeek:h,endOfMonth:b,endOfWeek:v,isAfter:_,startOfBroadcastWeek:y,startOfISOWeek:w,startOfWeek:x}=r,k=l?y(o,r):a?w(o):x(o),N=l?p(s):a?h(b(s)):v(b(s)),C=t&&(l?p(t):a?h(t):v(t)),S=C&&_(N,C)?C:N,E=f(S,k),D=m(s,o)+1,O=[];for(let A=0;A<=E;A++){const I=u(k,A);O.push(I)}const P=(l?35:42)*D;if(i&&O.length<P){const A=P-O.length;for(let I=0;I<A;I++){const X=u(O[O.length-1],1);O.push(X)}}return O}function xb(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((s,a)=>s.concat(a.days.slice()),t.slice());return n.concat(o.slice())},t.slice())}function Cb(e,t,n,r){const{numberOfMonths:o=1}=n,s=[];for(let a=0;a<o;a++){const i=r.addMonths(e,a);if(t&&i>t)break;s.push(i)}return s}function da(e,t,n,r){const{month:o,defaultMonth:s,today:a=r.today(),numberOfMonths:i=1}=e;let l=o||s||a;const{differenceInCalendarMonths:u,addMonths:f,startOfMonth:m}=r;if(n&&u(n,l)<i-1){const p=-1*(i-1);l=f(n,p)}return t&&u(l,t)<0&&(l=t),m(l)}function kb(e,t,n,r){const{addDays:o,endOfBroadcastWeek:s,endOfISOWeek:a,endOfMonth:i,endOfWeek:l,getISOWeek:u,getWeek:f,startOfBroadcastWeek:m,startOfISOWeek:p,startOfWeek:h}=r,b=e.reduce((v,_)=>{const y=n.broadcastCalendar?m(_,r):n.ISOWeek?p(_):h(_),w=n.broadcastCalendar?s(_):n.ISOWeek?a(i(_)):l(i(_)),x=t.filter(S=>S>=y&&S<=w),k=n.broadcastCalendar?35:42;if(n.fixedWeeks&&x.length<k){const S=t.filter(E=>{const D=k-x.length;return E>w&&E<=o(w,D)});x.push(...S)}const N=x.reduce((S,E)=>{const D=n.ISOWeek?u(E):f(E),O=S.find(P=>P.weekNumber===D),T=new Zc(E,_,r);return O?O.days.push(T):S.push(new y_(D,[T])),S},[]),C=new b_(_,N);return v.push(C),v},[]);return n.reverseMonths?b.reverse():b}function Nb(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:s,startOfMonth:a,endOfMonth:i,addYears:l,endOfYear:u,newDate:f,today:m}=t,{fromYear:p,toYear:h,fromMonth:b,toMonth:v}=e;!n&&b&&(n=b),!n&&p&&(n=t.newDate(p,0,1)),!r&&v&&(r=v),!r&&h&&(r=f(h,11,31));const _=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=a(n):p?n=f(p,0,1):!n&&_&&(n=o(l(e.today??m(),-100))),r?r=i(r):h?r=f(h,11,31):!r&&_&&(r=u(e.today??m())),[n&&s(n),r&&s(r)]}function Sb(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:s=1}=n,{startOfMonth:a,addMonths:i,differenceInCalendarMonths:l}=r,u=o?s:1,f=a(e);if(!t)return i(f,u);if(!(l(t,e)<s))return i(f,u)}function Eb(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:s}=n,{startOfMonth:a,addMonths:i,differenceInCalendarMonths:l}=r,u=o?s??1:1,f=a(e);if(!t)return i(f,-u);if(!(l(f,t)<=0))return i(f,-u)}function jb(e){const t=[];return e.reduce((n,r)=>n.concat(r.weeks.slice()),t.slice())}function Br(e,t){const[n,r]=g.useState(e);return[t===void 0?n:t,r]}function Mb(e,t){const[n,r]=Nb(e,t),{startOfMonth:o,endOfMonth:s}=t,a=da(e,n,r,t),[i,l]=Br(a,e.month?a:void 0);g.useEffect(()=>{const k=da(e,n,r,t);l(k)},[e.timeZone]);const{months:u,weeks:f,days:m,previousMonth:p,nextMonth:h}=g.useMemo(()=>{const k=Cb(i,r,{numberOfMonths:e.numberOfMonths},t),N=wb(k,e.endMonth?s(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),C=kb(k,N,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),S=jb(C),E=xb(C),D=Eb(i,n,e,t),O=Sb(i,r,e,t);return{months:C,weeks:S,days:E,previousMonth:D,nextMonth:O}},[t,i.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:b,onMonthChange:v}=e,_=k=>f.some(N=>N.days.some(C=>C.isEqualTo(k))),y=k=>{if(b)return;let N=o(k);n&&N<o(n)&&(N=o(n)),r&&N>o(r)&&(N=o(r)),l(N),v?.(N)};return{months:u,weeks:f,days:m,navStart:n,navEnd:r,previousMonth:p,nextMonth:h,goToMonth:y,goToDay:k=>{_(k)||y(k.date)}}}var ot;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(ot||(ot={}));function ua(e){return!e[ye.disabled]&&!e[ye.hidden]&&!e[ye.outside]}function Ob(e,t,n,r){let o,s=-1;for(const a of e){const i=t(a);ua(i)&&(i[ye.focused]&&s<ot.FocusedModifier?(o=a,s=ot.FocusedModifier):r?.isEqualTo(a)&&s<ot.LastFocused?(o=a,s=ot.LastFocused):n(a.date)&&s<ot.Selected?(o=a,s=ot.Selected):i[ye.today]&&s<ot.Today&&(o=a,s=ot.Today))}return o||(o=e.find(a=>ua(t(a)))),o}function Db(e,t,n,r,o,s,a){const{ISOWeek:i,broadcastCalendar:l}=s,{addDays:u,addMonths:f,addWeeks:m,addYears:p,endOfBroadcastWeek:h,endOfISOWeek:b,endOfWeek:v,max:_,min:y,startOfBroadcastWeek:w,startOfISOWeek:x,startOfWeek:k}=a;let C={day:u,week:m,month:f,year:p,startOfWeek:S=>l?w(S,a):i?x(S):k(S),endOfWeek:S=>l?h(S):i?b(S):v(S)}[e](n,t==="after"?1:-1);return t==="before"&&r?C=_([r,C]):t==="after"&&o&&(C=y([o,C])),C}function dl(e,t,n,r,o,s,a,i=0){if(i>365)return;const l=Db(e,t,n.date,r,o,s,a),u=!!(s.disabled&&yt(l,s.disabled,a)),f=!!(s.hidden&&yt(l,s.hidden,a)),m=l,p=new Zc(l,m,a);return!u&&!f?p:dl(e,t,p,r,o,s,a,i+1)}function Pb(e,t,n,r,o){const{autoFocus:s}=e,[a,i]=g.useState(),l=Ob(t.days,n,r||(()=>!1),a),[u,f]=g.useState(s?l:void 0);return{isFocusTarget:v=>!!l?.isEqualTo(v),setFocused:f,focused:u,blur:()=>{i(u),f(void 0)},moveFocus:(v,_)=>{if(!u)return;const y=dl(v,_,u,t.navStart,t.navEnd,e,o);y&&(e.disableNavigation&&!t.days.some(x=>x.isEqualTo(y))||(t.goToDay(y),f(y)))}}}function Rb(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=Br(n,o?n:void 0),i=o?n:s,{isSameDay:l}=t,u=h=>i?.some(b=>l(b,h))??!1,{min:f,max:m}=e;return{selected:i,select:(h,b,v)=>{let _=[...i??[]];if(u(h)){if(i?.length===f||r&&i?.length===1)return;_=i?.filter(y=>!l(y,h))}else i?.length===m?_=[h]:_=[..._,h];return o||a(_),o?.(_,h,b,v),_},isSelected:u}}function Tb(e,t,n=0,r=0,o=!1,s=ft){const{from:a,to:i}=t||{},{isSameDay:l,isAfter:u,isBefore:f}=s;let m;if(!a&&!i)m={from:e,to:n>0?void 0:e};else if(a&&!i)l(a,e)?n===0?m={from:a,to:e}:o?m={from:a,to:void 0}:m=void 0:f(e,a)?m={from:e,to:a}:m={from:a,to:e};else if(a&&i)if(l(a,e)&&l(i,e))o?m={from:a,to:i}:m=void 0;else if(l(a,e))m={from:a,to:n>0?void 0:e};else if(l(i,e))m={from:e,to:n>0?void 0:e};else if(f(e,a))m={from:e,to:i};else if(u(e,a))m={from:a,to:e};else if(u(e,i))m={from:a,to:e};else throw new Error("Invalid range");if(m?.from&&m?.to){const p=s.differenceInCalendarDays(m.to,m.from);r>0&&p>r?m={from:e,to:void 0}:n>1&&p<n&&(m={from:e,to:void 0})}return m}function Ab(e,t,n=ft){const r=Array.isArray(t)?t:[t];let o=e.from;const s=n.differenceInCalendarDays(e.to,e.from),a=Math.min(s,6);for(let i=0;i<=a;i++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function fa(e,t,n=ft){return bt(e,t.from,!1,n)||bt(e,t.to,!1,n)||bt(t,e.from,!1,n)||bt(t,e.to,!1,n)}function Ib(e,t,n=ft){const r=Array.isArray(t)?t:[t];if(r.filter(i=>typeof i!="function").some(i=>typeof i=="boolean"?i:n.isDate(i)?bt(e,i,!1,n):Qc(i,n)?i.some(l=>bt(e,l,!1,n)):Fr(i)?i.from&&i.to?fa(e,{from:i.from,to:i.to},n):!1:Kc(i)?Ab(e,i.dayOfWeek,n):as(i)?n.isAfter(i.before,i.after)?fa(e,{from:n.addDays(i.after,1),to:n.addDays(i.before,-1)},n):yt(e.from,i,n)||yt(e.to,i,n):is(i)||cs(i)?yt(e.from,i,n)||yt(e.to,i,n):!1))return!0;const a=r.filter(i=>typeof i=="function");if(a.length){let i=e.from;const l=n.differenceInCalendarDays(e.to,e.from);for(let u=0;u<=l;u++){if(a.some(f=>f(i)))return!0;i=n.addDays(i,1)}}return!1}function Lb(e,t){const{disabled:n,excludeDisabled:r,resetOnSelect:o,selected:s,required:a,onSelect:i}=e,[l,u]=Br(s,i?s:void 0),f=i?s:l;return{selected:f,select:(h,b,v)=>{const{min:_,max:y}=e;let w;if(h){const x=f?.from,k=f?.to,N=!!x&&!!k,C=!!x&&!!k&&t.isSameDay(x,k)&&t.isSameDay(h,x);o&&(N||!f?.from)?!a&&C?w=void 0:w={from:h,to:void 0}:w=Tb(h,f,_,y,a,t)}return r&&n&&w?.from&&w.to&&Ib({from:w.from,to:w.to},n,t)&&(w.from=h,w.to=void 0),i||u(w),i?.(w,h,b,v),w},isSelected:h=>f&&bt(f,h,!1,t)}}function Wb(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=Br(n,o?n:void 0),i=o?n:s,{isSameDay:l}=t;return{selected:i,select:(m,p,h)=>{let b=m;return!r&&i&&i&&l(m,i)&&(b=void 0),o||a(b),o?.(b,m,p,h),b},isSelected:m=>i?l(i,m):!1}}function $b(e,t){const n=Wb(e,t),r=Rb(e,t),o=Lb(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function qe(e,t){return e instanceof Te&&e.timeZone===t?e:new Te(e,t)}function Qt(e,t,n){return qe(e,t)}function ma(e,t,n){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?Qt(e,t):Array.isArray(e)?e.map(r=>r instanceof Date?Qt(r,t):r):Fr(e)?{...e,from:e.from?qe(e.from,t):e.from,to:e.to?qe(e.to,t):e.to}:as(e)?{before:Qt(e.before,t),after:Qt(e.after,t)}:is(e)?{after:Qt(e.after,t)}:cs(e)?{before:Qt(e.before,t)}:e}function po(e,t,n){return e&&(Array.isArray(e)?e.map(r=>ma(r,t)):ma(e,t))}function Fb(e){let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=qe(t.today,n)),t.month&&(t.month=qe(t.month,n)),t.defaultMonth&&(t.defaultMonth=qe(t.defaultMonth,n)),t.startMonth&&(t.startMonth=qe(t.startMonth,n)),t.endMonth&&(t.endMonth=qe(t.endMonth,n)),t.mode==="single"&&t.selected?t.selected=qe(t.selected,n):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(Q=>qe(Q,n)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?qe(t.selected.from,n):t.selected.from,to:t.selected.to?qe(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=po(t.disabled,n)),t.hidden!==void 0&&(t.hidden=po(t.hidden,n)),t.modifiers)){const Q={};Object.keys(t.modifiers).forEach(ue=>{Q[ue]=po(t.modifiers?.[ue],n)}),t.modifiers=Q}const{components:r,formatters:o,labels:s,dateLib:a,locale:i,classNames:l}=g.useMemo(()=>{const Q={...Uc,...t.locale},ue=t.broadcastCalendar?1:t.weekStartsOn,U=t.noonSafe&&t.timeZone?gb(t.timeZone,{weekStartsOn:ue,locale:Q}):void 0,le=t.dateLib&&U?{...U,...t.dateLib}:t.dateLib??U,We=new Ye({locale:Q,weekStartsOn:ue,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},le);return{dateLib:We,components:X_(t.components),formatters:ab(t.formatters),labels:ub(t.labels,We.options),locale:Q,classNames:{...ls(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:a.today()});const{captionLayout:u,mode:f,navLayout:m,numberOfMonths:p=1,onDayBlur:h,onDayClick:b,onDayFocus:v,onDayKeyDown:_,onDayMouseEnter:y,onDayMouseLeave:w,onNextClick:x,onPrevClick:k,showWeekNumber:N,styles:C}=t,{formatCaption:S,formatDay:E,formatMonthDropdown:D,formatWeekNumber:O,formatWeekNumberHeader:T,formatWeekdayName:P,formatYearDropdown:A}=o,I=Mb(t,a),{days:X,months:R,navStart:q,navEnd:W,previousMonth:G,nextMonth:j,goToMonth:K}=I,ve=U_(X,t,q,W,a),{isSelected:V,select:ne,selected:ee}=$b(t,a)??{},{blur:re,focused:fe,isFocusTarget:Me,moveFocus:se,setFocused:$}=Pb(t,I,ve,V??(()=>!1),a),{labelDayButton:de,labelGridcell:ke,labelGrid:Oe,labelMonthDropdown:ce,labelNav:De,labelPrevious:mt,labelNext:Vn,labelWeekday:qn,labelWeekNumber:Gn,labelWeekNumberHeader:qt,labelYearDropdown:zr}=s,Hr=g.useMemo(()=>hb(a,t.ISOWeek,t.broadcastCalendar,t.today),[a,t.ISOWeek,t.broadcastCalendar,t.today]),Un=f!==void 0||b!==void 0,hn=g.useCallback(()=>{G&&(K(G),k?.(G))},[G,K,k]),z=g.useCallback(()=>{j&&(K(j),x?.(j))},[K,j,x]),be=g.useCallback((Q,ue)=>U=>{U.preventDefault(),U.stopPropagation(),$(Q),!ue.disabled&&(ne?.(Q.date,ue,U),b?.(Q.date,ue,U))},[ne,b,$]),he=g.useCallback((Q,ue)=>U=>{$(Q),v?.(Q.date,ue,U)},[v,$]),Ne=g.useCallback((Q,ue)=>U=>{re(),h?.(Q.date,ue,U)},[re,h]),Pe=g.useCallback((Q,ue)=>U=>{const le={ArrowLeft:[U.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[U.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[U.shiftKey?"year":"week","after"],ArrowUp:[U.shiftKey?"year":"week","before"],PageUp:[U.shiftKey?"year":"month","before"],PageDown:[U.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(le[U.key]){U.preventDefault(),U.stopPropagation();const[We,ie]=le[U.key];se(We,ie)}_?.(Q.date,ue,U)},[se,_,t.dir]),Ue=g.useCallback((Q,ue)=>U=>{y?.(Q.date,ue,U)},[y]),Re=g.useCallback((Q,ue)=>U=>{w?.(Q.date,ue,U)},[w]),Se=g.useCallback(Q=>ue=>{const U=Number(ue.target.value),le=a.setMonth(a.startOfMonth(Q),U);K(le)},[a,K]),ht=g.useCallback(Q=>ue=>{const U=Number(ue.target.value),le=a.setYear(a.startOfMonth(Q),U);K(le)},[a,K]),{className:pt,style:Ze}=g.useMemo(()=>({className:[l[H.Root],t.className].filter(Boolean).join(" "),style:{...C?.[H.Root],...t.style}}),[l,t.className,t.style,C]),nt=K_(t),Zn=g.useRef(null);yb(Zn,!!t.animate,{classNames:l,months:R,focused:fe,dateLib:a});const Nl={dayPickerProps:t,selected:ee,select:ne,isSelected:V,months:R,nextMonth:j,previousMonth:G,goToMonth:K,getModifiers:ve,components:r,classNames:l,styles:C,labels:s,formatters:o};return g.createElement(Xc.Provider,{value:Nl},g.createElement(r.Root,{rootRef:t.animate?Zn:void 0,className:pt,style:Ze,dir:t.dir,id:t.id,lang:t.lang??i.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...nt},g.createElement(r.Months,{className:l[H.Months],style:C?.[H.Months]},!t.hideNavigation&&!m&&g.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[H.Nav],style:C?.[H.Nav],"aria-label":De(),onPreviousClick:hn,onNextClick:z,previousMonth:G,nextMonth:j}),R.map((Q,ue)=>g.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:l[H.Month],style:C?.[H.Month],key:ue,displayIndex:ue,calendarMonth:Q},m==="around"&&!t.hideNavigation&&ue===0&&g.createElement(r.PreviousMonthButton,{type:"button",className:l[H.PreviousMonthButton],tabIndex:G?void 0:-1,"aria-disabled":G?void 0:!0,"aria-label":mt(G),onClick:hn,"data-animated-button":t.animate?"true":void 0},g.createElement(r.Chevron,{disabled:G?void 0:!0,className:l[H.Chevron],orientation:t.dir==="rtl"?"right":"left"})),g.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:l[H.MonthCaption],style:C?.[H.MonthCaption],calendarMonth:Q,displayIndex:ue},u?.startsWith("dropdown")?g.createElement(r.DropdownNav,{className:l[H.Dropdowns],style:C?.[H.Dropdowns]},(()=>{const U=u==="dropdown"||u==="dropdown-months"?g.createElement(r.MonthsDropdown,{key:"month",className:l[H.MonthsDropdown],"aria-label":ce(),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:Se(Q.date),options:fb(Q.date,q,W,o,a),style:C?.[H.Dropdown],value:a.getMonth(Q.date)}):g.createElement("span",{key:"month"},D(Q.date,a)),le=u==="dropdown"||u==="dropdown-years"?g.createElement(r.YearsDropdown,{key:"year",className:l[H.YearsDropdown],"aria-label":zr(a.options),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:ht(Q.date),options:pb(q,W,o,a,!!t.reverseYears),style:C?.[H.Dropdown],value:a.getYear(Q.date)}):g.createElement("span",{key:"year"},A(Q.date,a));return a.getMonthYearOrder()==="year-first"?[le,U]:[U,le]})(),g.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},S(Q.date,a.options,a))):g.createElement(r.CaptionLabel,{className:l[H.CaptionLabel],role:"status","aria-live":"polite"},S(Q.date,a.options,a))),m==="around"&&!t.hideNavigation&&ue===p-1&&g.createElement(r.NextMonthButton,{type:"button",className:l[H.NextMonthButton],tabIndex:j?void 0:-1,"aria-disabled":j?void 0:!0,"aria-label":Vn(j),onClick:z,"data-animated-button":t.animate?"true":void 0},g.createElement(r.Chevron,{disabled:j?void 0:!0,className:l[H.Chevron],orientation:t.dir==="rtl"?"left":"right"})),ue===p-1&&m==="after"&&!t.hideNavigation&&g.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[H.Nav],style:C?.[H.Nav],"aria-label":De(),onPreviousClick:hn,onNextClick:z,previousMonth:G,nextMonth:j}),g.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":f==="multiple"||f==="range","aria-label":Oe(Q.date,a.options,a)||void 0,className:l[H.MonthGrid],style:C?.[H.MonthGrid]},!t.hideWeekdays&&g.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:l[H.Weekdays],style:C?.[H.Weekdays]},N&&g.createElement(r.WeekNumberHeader,{"aria-label":qt(a.options),className:l[H.WeekNumberHeader],style:C?.[H.WeekNumberHeader],scope:"col"},T()),Hr.map(U=>g.createElement(r.Weekday,{"aria-label":qn(U,a.options,a),className:l[H.Weekday],key:String(U),style:C?.[H.Weekday],scope:"col"},P(U,a.options,a)))),g.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:l[H.Weeks],style:C?.[H.Weeks]},Q.weeks.map(U=>g.createElement(r.Week,{className:l[H.Week],key:U.weekNumber,style:C?.[H.Week],week:U},N&&g.createElement(r.WeekNumber,{week:U,style:C?.[H.WeekNumber],"aria-label":Gn(U.weekNumber,{locale:i}),className:l[H.WeekNumber],scope:"row",role:"rowheader"},O(U.weekNumber,a)),U.days.map(le=>{const{date:We}=le,ie=ve(le);if(ie[ye.focused]=!ie.hidden&&!!fe?.isEqualTo(le),ie[Je.selected]=V?.(We)||ie.selected,Fr(ee)){const{from:Yr,to:Vr}=ee;ie[Je.range_start]=!!(Yr&&Vr&&a.isSameDay(We,Yr)),ie[Je.range_end]=!!(Yr&&Vr&&a.isSameDay(We,Vr)),ie[Je.range_middle]=bt(ee,We,!0,a)}const Sl=mb(ie,C,t.modifiersStyles),El=Z_(ie,l,t.modifiersClassNames),jl=!Un&&!ie.hidden?ke(We,ie,a.options,a):void 0;return g.createElement(r.Day,{key:`${le.isoDate}_${le.displayMonthId}`,day:le,modifiers:ie,className:El.join(" "),style:Sl,role:"gridcell","aria-selected":ie.selected||void 0,"aria-label":jl,"data-day":le.isoDate,"data-month":le.outside?le.dateMonthId:void 0,"data-selected":ie.selected||void 0,"data-disabled":ie.disabled||void 0,"data-hidden":ie.hidden||void 0,"data-outside":le.outside||void 0,"data-focused":ie.focused||void 0,"data-today":ie.today||void 0},!ie.hidden&&Un?g.createElement(r.DayButton,{className:l[H.DayButton],style:C?.[H.DayButton],type:"button",day:le,modifiers:ie,disabled:!ie.focused&&ie.disabled||void 0,"aria-disabled":ie.focused&&ie.disabled||void 0,tabIndex:Me(le)?0:-1,"aria-label":de(We,ie,a.options,a),onClick:be(le,ie),onBlur:Ne(le,ie),onFocus:he(le,ie),onKeyDown:Pe(le,ie),onMouseEnter:Ue(le,ie),onMouseLeave:Re(le,ie)},E(We,a.options,a)):!ie.hidden&&E(le.date,a.options,a))})))))))),t.footer&&g.createElement(r.Footer,{className:l[H.Footer],style:C?.[H.Footer],role:"status","aria-live":"polite"},t.footer)))}function Bb({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r="label",buttonVariant:o="ghost",formatters:s,components:a,...i}){const l=ls();return c.jsx(Fb,{showOutsideDays:n,className:J("bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:r,formatters:{formatMonthDropdown:u=>u.toLocaleString("default",{month:"short"}),...s},classNames:{root:J("w-fit",l.root),months:J("relative flex flex-col gap-4 md:flex-row",l.months),month:J("flex w-full flex-col gap-4",l.month),nav:J("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",l.nav),button_previous:J(vo({variant:o}),"h-(--cell-size) w-(--cell-size) select-none p-0 aria-disabled:opacity-50",l.button_previous),button_next:J(vo({variant:o}),"h-(--cell-size) w-(--cell-size) select-none p-0 aria-disabled:opacity-50",l.button_next),month_caption:J("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)",l.month_caption),dropdowns:J("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",l.dropdowns),dropdown_root:J("has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",l.dropdown_root),dropdown:J("bg-popover absolute inset-0 opacity-0",l.dropdown),caption_label:J("select-none font-medium",r==="label"?"text-sm":"[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",l.caption_label),table:"w-full border-collapse",weekdays:J("flex",l.weekdays),weekday:J("text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal",l.weekday),week:J("mt-2 flex w-full",l.week),week_number_header:J("w-(--cell-size) select-none",l.week_number_header),week_number:J("text-muted-foreground select-none text-[0.8rem]",l.week_number),day:J("group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",l.day),range_start:J("bg-accent rounded-l-md",l.range_start),range_middle:J("rounded-none",l.range_middle),range_end:J("bg-accent rounded-r-md",l.range_end),today:J("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",l.today),outside:J("text-muted-foreground aria-selected:text-muted-foreground",l.outside),disabled:J("text-muted-foreground opacity-50",l.disabled),hidden:J("invisible",l.hidden),...t},components:{Root:({className:u,rootRef:f,...m})=>c.jsx("div",{"data-slot":"calendar",ref:f,className:J(u),...m}),Chevron:({className:u,orientation:f,...m})=>f==="left"?c.jsx(Rp,{className:J("size-4",u),...m}):f==="right"?c.jsx(Ap,{className:J("size-4",u),...m}):c.jsx(Dp,{className:J("size-4",u),...m}),DayButton:zb,WeekNumber:({children:u,...f})=>c.jsx("td",{...f,children:c.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:u})}),...a},...i})}function zb({className:e,day:t,modifiers:n,...r}){const o=ls(),s=d.useRef(null);return d.useEffect(()=>{n.focused&&s.current?.focus()},[n.focused]),c.jsx(Cr,{ref:s,variant:"ghost",size:"icon","data-day":t.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:J("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-(--cell-size) flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",o.day,e),...r})}const nn=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Hb=()=>nn(new Date),wr=e=>String(e).padStart(2,"0"),ul=e=>`${e.getFullYear()}-${wr(e.getMonth()+1)}-${wr(e.getDate())}`,Yb=e=>`${wr(e.getDate())}.${wr(e.getMonth()+1)}.${e.getFullYear()}`,fl=e=>{if(e==null||e==="")return;const t=String(e).trim(),n=/^(\d{4})-(\d{2})-(\d{2})/.exec(t);if(n){const o=Number(n[1]),s=Number(n[2])-1,a=Number(n[3]),i=new Date(o,s,a);return Number.isNaN(i.getTime())?void 0:i}const r=new Date(t);if(!Number.isNaN(r.getTime()))return nn(r)},Vb="_wrapper_1sqfs_1",qb="_trigger_1sqfs_8",Gb="_error_1sqfs_37",Ub="_triggerValue_1sqfs_44",Zb="_triggerIcon_1sqfs_51",yn={wrapper:Vb,trigger:qb,error:Gb,triggerValue:Ub,triggerIcon:Zb},Xb=({label:e,required:t,value:n,onChange:r,minDate:o,error:s,disabled:a,tooltipContent:i,tooltipPopperClassName:l,className:u})=>{const[f,m]=g.useState(!1),p=g.useMemo(()=>fl(n??void 0),[n]),h=g.useMemo(()=>p?Yb(p):"",[p]),b=o?nn(o):void 0;return c.jsxs("div",{className:M(yn.wrapper,u),children:[c.jsx(Lt,{required:t,tooltipContent:i,tooltipPopperClassName:l,children:e}),c.jsxs(No,{open:f,onOpenChange:m,children:[c.jsx(So,{asChild:!0,children:c.jsxs("button",{type:"button",disabled:a,className:M(yn.trigger,{[yn.error]:!!s},!h&&"text-muted-foreground"),children:[c.jsx("span",{className:yn.triggerValue,children:h||"Выберите дату"}),c.jsx(Mp,{className:yn.triggerIcon,"aria-hidden":!0})]})}),c.jsx(Qo,{className:J("w-auto border border-slate-200 bg-white p-0 text-slate-900 shadow-lg"),align:"start",children:c.jsx(Bb,{mode:"single",selected:p,onSelect:v=>{r(v?ul(nn(v)):null),m(!1)},disabled:b?v=>nn(v).getTime()<b.getTime():void 0,initialFocus:!0})})]}),s?c.jsx(Ct,{variant:"error",children:s}):null]})},Kb="_wrapper_1mrfs_1",Qb="_field_1mrfs_8",Jb="_disabled_1mrfs_15",ey="_control_1mrfs_19",ty="_labelWithTooltip_1mrfs_28",ny="_nativeInput_1mrfs_36",ry="_box_1mrfs_48",oy="_error_1mrfs_81",sy="_checkIcon_1mrfs_95",ay="_labelText_1mrfs_108",Qe={wrapper:Kb,field:Qb,disabled:Jb,control:ey,labelWithTooltip:ty,nativeInput:ny,box:ry,error:oy,checkIcon:sy,labelText:ay},iy=()=>c.jsx("svg",{className:Qe.checkIcon,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:c.jsx("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})}),ml=g.forwardRef(({label:e,error:t,disabled:n,className:r,checkboxClassName:o,tooltipContent:s,tooltipPopperClassName:a,id:i,...l},u)=>{const f=g.useId(),m=i??f,p=c.jsxs("div",{className:M(Qe.field,{[Qe.disabled]:n}),children:[c.jsxs("label",{htmlFor:m,className:Qe.control,children:[c.jsx("input",{ref:u,id:m,type:"checkbox",disabled:n,"aria-invalid":t?!0:void 0,className:Qe.nativeInput,...l}),c.jsx("span",{className:M(Qe.box,{[Qe.error]:!!t},o),children:c.jsx(iy,{})})]}),e&&s?c.jsx(Lt,{htmlFor:m,tooltipContent:s,tooltipPopperClassName:a,className:Qe.labelWithTooltip,labelClassName:Qe.labelText,children:e}):e?c.jsx(Mn,{htmlFor:m,className:M(jn.label_inline,Qe.labelText),children:e}):null]});return c.jsxs("div",{className:M(Qe.wrapper,r),children:[p,t&&c.jsx(Ct,{children:t})]})});ml.displayName="Checkbox";const cy="_root_osjxx_1",ly="_header_osjxx_11",dy="_headerText_osjxx_21",uy="_eyebrow_osjxx_27",fy="_title_osjxx_35",my="_timeline_osjxx_42",hy="_level_osjxx_47",py="_rail_osjxx_58",gy="_railLine_osjxx_65",vy="_railLine_completed_osjxx_74",_y="_railLine_toCurrent_osjxx_78",by="_marker_osjxx_82",yy="_marker_completed_osjxx_101",wy="_marker_current_osjxx_107",xy="_body_osjxx_120",Cy="_levelHeader_osjxx_125",ky="_levelName_osjxx_132",Ny="_levelName_current_osjxx_141",Sy="_levelName_completed_osjxx_147",Ey="_iconButton_osjxx_152",jy="_iconButton_danger_osjxx_176",My="_stages_osjxx_182",Oy="_stage_osjxx_182",Dy="_stage_current_osjxx_199",Py="_stageHeader_osjxx_204",Ry="_stageName_osjxx_212",Ty="_stageActions_osjxx_220",Ay="_approvers_osjxx_227",Iy="_approver_osjxx_227",Ly="_approverMain_osjxx_242",Wy="_approverName_osjxx_249",$y="_approverName_pending_osjxx_255",Fy="_approverName_rejected_osjxx_259",By="_approverName_approved_osjxx_264",zy="_approverDate_osjxx_268",Hy="_rejectReason_osjxx_273",Yy="_empty_osjxx_283",Vy="_addStage_osjxx_300",qy="_addLevel_osjxx_323",Gy="_dialogContent_osjxx_327",Uy="_dialogInput_osjxx_333",Zy="_dialogActions_osjxx_348",Xy="_approverPickerWrap_osjxx_354",Ky="_approverPickerInput_osjxx_361",Y={root:cy,header:ly,headerText:dy,eyebrow:uy,title:fy,timeline:my,level:hy,rail:py,railLine:gy,railLine_completed:vy,railLine_toCurrent:_y,marker:by,marker_completed:yy,marker_current:wy,body:xy,levelHeader:Cy,levelName:ky,levelName_current:Ny,levelName_completed:Sy,iconButton:Ey,iconButton_danger:jy,stages:My,stage:Oy,stage_current:Dy,stageHeader:Py,stageName:Ry,stageActions:Ty,approvers:Ay,approver:Iy,approverMain:Ly,approverName:Wy,approverName_pending:$y,approverName_rejected:Fy,approverName_approved:By,approverDate:zy,rejectReason:Hy,empty:Yy,addStage:Vy,addLevel:qy,dialogContent:Gy,dialogInput:Uy,dialogActions:Zy,approverPickerWrap:Xy,approverPickerInput:Ky},lr=({className:e})=>c.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",className:e,"aria-hidden":"true",children:c.jsx("path",{d:"M12 5v14M5 12h14"})});function ha({open:e,title:t,placeholder:n,onSubmit:r,onClose:o}){const[s,a]=g.useState("");g.useEffect(()=>{e||a("")},[e]);const i=()=>{const l=s.trim();l&&(r(l),o())};return c.jsx(Wr,{open:e,onOpenChange:l=>!l&&o(),children:c.jsxs(Wn,{className:"sm:rounded-2xl",children:[c.jsx($n,{children:c.jsx(Fn,{children:t})}),c.jsxs("div",{className:Y.dialogContent,children:[c.jsx("input",{autoFocus:!0,className:Y.dialogInput,placeholder:n,value:s,onChange:l=>a(l.target.value),onKeyDown:l=>{l.key==="Enter"&&i(),l.key==="Escape"&&o()}}),c.jsxs("div",{className:Y.dialogActions,children:[c.jsx(xe,{variant:"secondary",onClick:o,children:"Отмена"}),c.jsx(xe,{variant:"primary",onClick:i,disabled:!s.trim(),children:"Добавить"})]})]})]})})}const Qy=({levels:e,editable:t=!1,title:n="Маршрут согласования",eyebrow:r="Workflow",className:o,loadApprovers:s,onAddLevel:a,onRemoveLevel:i,onAddStage:l,onRemoveStage:u,onAddApprover:f,onRemoveApprover:m})=>{const[p,h]=g.useState(!1),[b,v]=g.useState(null);return c.jsxs("div",{className:M(Y.root,o),children:[c.jsx("div",{className:Y.header,children:c.jsxs("div",{className:Y.headerText,children:[c.jsx("span",{className:Y.eyebrow,children:r}),c.jsx("span",{className:Y.title,children:n})]})}),c.jsxs("div",{className:Y.timeline,children:[e.map((_,y)=>{const w=e[y+1],x=M(Y.railLine,{[Y.railLine_completed]:_.status==="completed"&&w?.status==="completed",[Y.railLine_toCurrent]:_.status==="completed"&&w?.status==="current"});return c.jsxs("div",{className:Y.level,children:[c.jsxs("div",{className:Y.rail,children:[y<e.length-1&&c.jsx("span",{className:x}),c.jsx("span",{className:M(Y.marker,{[Y.marker_completed]:_.status==="completed",[Y.marker_current]:_.status==="current"}),children:_.status==="completed"&&c.jsx(Po,{})})]}),c.jsxs("div",{className:Y.body,children:[c.jsxs("div",{className:Y.levelHeader,children:[c.jsx("span",{className:M(Y.levelName,{[Y.levelName_current]:_.status==="current",[Y.levelName_completed]:_.status==="completed"}),children:_.name}),t&&c.jsxs(c.Fragment,{children:[c.jsx("button",{type:"button",className:Y.iconButton,onClick:()=>v(_.id),"aria-label":"Добавить этап",title:"Добавить этап",children:c.jsx(lr,{})}),c.jsx("button",{type:"button",className:M(Y.iconButton,Y.iconButton_danger),onClick:()=>i?.(_.id),"aria-label":"Удалить уровень",title:"Удалить уровень",children:c.jsx(ct,{})})]})]}),_.stages.length>0&&c.jsx("div",{className:Y.stages,children:_.stages.map(k=>c.jsxs("div",{className:M(Y.stage,{[Y.stage_current]:_.status==="current"}),children:[c.jsxs("div",{className:Y.stageHeader,children:[c.jsx("span",{className:Y.stageName,children:k.name}),c.jsx("div",{className:Y.stageActions,children:t&&c.jsxs(c.Fragment,{children:[s?c.jsx(ns,{value:null,placeholder:"",title:"Добавить согласующего",searchPlaceholder:"Поиск сотрудника",loadOptions:s,onChange:N=>f?.(_.id,k.id,N),className:Y.approverPickerWrap,inputClassName:Y.approverPickerInput,selectedOptionRender:()=>c.jsx(lr,{})}):null,c.jsx("button",{type:"button",className:M(Y.iconButton,Y.iconButton_danger),onClick:()=>u?.(_.id,k.id),"aria-label":"Удалить этап",title:"Удалить этап",children:c.jsx(ct,{})})]})})]}),k.approvers.length===0?c.jsxs("span",{className:Y.empty,children:[c.jsx(xa,{}),"Согласующий не назначен"]}):c.jsx("div",{className:Y.approvers,children:k.approvers.map(N=>{const C=N.status??"pending";return c.jsxs("div",{className:Y.approver,children:[c.jsxs("div",{className:Y.approverMain,children:[c.jsx("span",{className:M(Y.approverName,{[Y.approverName_pending]:C==="pending",[Y.approverName_approved]:C==="approved",[Y.approverName_rejected]:C==="rejected"}),children:N.fullName}),N.actedAt&&C!=="pending"&&c.jsx("span",{className:Y.approverDate,children:N.actedAt}),C==="rejected"&&N.rejectReason&&c.jsxs("span",{className:Y.rejectReason,children:["Причина: ",N.rejectReason]})]}),t&&c.jsx("button",{type:"button",className:M(Y.iconButton,Y.iconButton_danger),onClick:()=>m?.(_.id,k.id,N.id),"aria-label":"Удалить согласующего",title:"Удалить согласующего",children:c.jsx(ct,{})})]},N.id)})})]},k.id))}),t&&c.jsxs("button",{type:"button",className:Y.addStage,onClick:()=>v(_.id),children:[c.jsx(lr,{})," Добавить этап"]})]})]},_.id)}),t&&c.jsxs("div",{className:Y.level,children:[c.jsx("div",{className:Y.rail,children:c.jsx("span",{className:M(Y.marker),"aria-hidden":!0})}),c.jsx("div",{className:Y.body,children:c.jsxs("button",{type:"button",className:M(Y.addStage,Y.addLevel),onClick:()=>h(!0),children:[c.jsx(lr,{})," Добавить уровень"]})})]})]}),c.jsx(ha,{open:p,title:"Новый уровень",placeholder:"Название уровня",onClose:()=>h(!1),onSubmit:_=>a?.(_)}),c.jsx(ha,{open:b!==null,title:"Новый этап",placeholder:"Название этапа",onClose:()=>v(null),onSubmit:_=>b&&l?.(b,_)})]})},Jy="_root_1426e_1",ew="_card_1426e_8",tw="_size_lg_1426e_15",nw="_section_1426e_19",rw="_sectionHeader_1426e_29",ow="_sectionTitle_1426e_36",sw="_sectionDescription_1426e_46",aw="_fields_1426e_54",iw="_fields_2col_1426e_62",cw="_field_1426e_54",lw="_field_span2_1426e_84",dw="_field_interactive_1426e_88",uw="_label_1426e_92",fw="_value_1426e_100",mw="_valueRow_1426e_113",hw="_copyTrigger_1426e_120",pw="_copyableValue_1426e_126",gw="_hint_1426e_131",vw="_empty_1426e_139",_w="_divider_1426e_143",bw="_loading_1426e_150",we={root:Jy,card:ew,size_lg:tw,section:nw,sectionHeader:rw,sectionTitle:ow,sectionDescription:sw,fields:aw,fields_2col:iw,field:cw,field_span2:lw,field_interactive:dw,label:uw,value:fw,valueRow:mw,copyTrigger:hw,copyableValue:pw,hint:gw,empty:vw,divider:_w,loading:bw},yw=e=>e==null||e===""||typeof e=="number"&&Number.isNaN(e),ww=e=>e==null?"":typeof e=="string"||typeof e=="number"?String(e):"",hl=({label:e,value:t,children:n,hint:r,copyable:o,copyText:s,render:a,hidden:i,span:l,emptyPlaceholder:u="—",className:f})=>{const[m,p]=g.useState(!1),h=g.useCallback(()=>{const _=s??ww(n??t);!_||typeof navigator>"u"||!navigator.clipboard||navigator.clipboard.writeText(_).then(()=>{p(!0),window.setTimeout(()=>p(!1),1400)})},[s,t,n]);if(i)return null;const b=n??t,v=yw(b)?c.jsx("span",{className:we.empty,children:u}):b;return a?c.jsx(c.Fragment,{children:a({label:e,value:v})}):c.jsxs("div",{className:M(we.field,l===2&&we.field_span2,o&&we.field_interactive,f),children:[c.jsx("div",{className:we.label,children:e}),c.jsxs("div",{className:we.value,children:[c.jsx("div",{className:we.valueRow,children:o?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:we.copyableValue,children:v}),c.jsx("span",{className:we.copyTrigger,children:c.jsx(Ao,{iconOnly:!0,copied:m,onClick:h,ariaLabel:"Скопировать значение"})})]}):v}),r&&c.jsx("div",{className:we.hint,children:r})]})]})},pl=({id:e,title:t,description:n,fields:r,children:o,columns:s=1,className:a})=>{const i=(r??[]).filter(l=>!l.hidden);return c.jsxs("section",{id:e,className:M(we.section,a),children:[(t||n)&&c.jsxs("div",{className:we.sectionHeader,children:[t&&c.jsx("div",{className:we.sectionTitle,children:t}),n&&c.jsx("div",{className:we.sectionDescription,children:n})]}),(i.length>0||o)&&c.jsxs("div",{className:M(we.fields,s===2&&we.fields_2col),children:[i.map((l,u)=>c.jsx(hl,{...l},(typeof l.label=="string"?l.label:null)??`field-${u}`)),o]})]})},xw=({className:e})=>c.jsx("hr",{className:M(we.divider,e)}),Cw=({sections:e,children:t,variant:n="card",labelWidth:r="14rem",size:o="md",loading:s,emptyState:a,className:i,id:l})=>{const u=typeof r=="number"?`${r}px`:r,f=M(we.root,n==="card"&&we.card,o==="lg"&&we.size_lg,i),m={"--cozy-detail-label-width":u};if(s)return c.jsx("div",{className:f,style:m,id:l,children:c.jsx("div",{className:we.loading,children:c.jsx(Ge,{})})});const p=e&&e.length>0,h=g.Children.count(t)>0;return!p&&!h?c.jsx("div",{className:f,style:m,id:l,children:a??c.jsx(It,{})}):c.jsxs("div",{className:f,style:m,id:l,children:[p&&e.map((b,v)=>c.jsx(pl,{...b},b.id??`section-${v}`)),h&&g.Children.map(t,b=>(g.isValidElement(b),b))]})},Yn=g.memo(Cw);Yn.Section=pl;Yn.Field=hl;Yn.Divider=xw;Yn.displayName="DetailView";const kw="_root_1z0dx_1",Nw="_header_1z0dx_14",Sw="_headerText_1z0dx_23",Ew="_eyebrow_1z0dx_29",jw="_title_1z0dx_37",Mw="_counter_1z0dx_44",Ow="_list_1z0dx_53",Dw="_loadOlderBtn_1z0dx_59",Pw="_expandBtn_1z0dx_84",Rw="_item_1z0dx_102",Tw="_avatar_1z0dx_109",Aw="_body_1z0dx_125",Iw="_bubble_1z0dx_132",Lw="_actions_1z0dx_144",Ww="_bubble_deleted_1z0dx_148",$w="_meta_1z0dx_154",Fw="_author_1z0dx_162",Bw="_date_1z0dx_168",zw="_editedTag_1z0dx_173",Hw="_text_1z0dx_179",Yw="_recipients_1z0dx_187",Vw="_attachments_1z0dx_203",qw="_attachment_1z0dx_203",Gw="_attachmentName_1z0dx_227",Uw="_attachmentSize_1z0dx_234",Zw="_attachmentRemove_1z0dx_239",Xw="_iconButton_1z0dx_278",Kw="_iconButton_danger_1z0dx_302",Qw="_children_1z0dx_309",Jw="_form_1z0dx_320",ex="_form_root_1z0dx_330",tx="_form_inline_1z0dx_335",nx="_textarea_1z0dx_339",rx="_formRow_1z0dx_359",ox="_formTools_1z0dx_367",sx="_formActions_1z0dx_374",ax="_toolBtn_1z0dx_380",ix="_recipientsPickerWrap_1z0dx_403",cx="_recipientsPickerInput_1z0dx_410",lx="_recipientsChips_1z0dx_459",dx="_chip_1z0dx_465",ux="_empty_1z0dx_496",fx="_skeleton_1z0dx_500",mx="_skeletonLine_1z0dx_507",hx="_dialogContent_1z0dx_523",px="_dialogActions_1z0dx_531",gx="_branchSpinner_1z0dx_537",vx="_hiddenInput_1z0dx_543",B={root:kw,header:Nw,headerText:Sw,eyebrow:Ew,title:jw,counter:Mw,list:Ow,loadOlderBtn:Dw,expandBtn:Pw,item:Rw,avatar:Tw,body:Aw,bubble:Iw,actions:Lw,bubble_deleted:Ww,meta:$w,author:Fw,date:Bw,editedTag:zw,text:Hw,recipients:Yw,attachments:Vw,attachment:qw,attachmentName:Gw,attachmentSize:Uw,attachmentRemove:Zw,iconButton:Xw,iconButton_danger:Kw,children:Qw,form:Jw,form_root:ex,form_inline:tx,textarea:nx,formRow:rx,formTools:ox,formActions:sx,toolBtn:ax,recipientsPickerWrap:ix,recipientsPickerInput:cx,recipientsChips:lx,chip:dx,empty:ux,skeleton:fx,skeletonLine:mx,dialogContent:hx,dialogActions:px,branchSpinner:gx,hiddenInput:vx},_x=10,bx=10*6e4,Cn="__root__",kn=e=>e??Cn;function yx(e){return e.trim().split(/\s+/).slice(0,2).map(n=>n[0]?.toUpperCase()??"").join("")}function gl(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function pa(e){const t=new Date(e);if(Number.isNaN(t.getTime()))return e;const n=r=>String(r).padStart(2,"0");return`${n(t.getDate())}.${n(t.getMonth()+1)}.${String(t.getFullYear()).slice(2)} ${n(t.getHours())}:${n(t.getMinutes())}`}function dr(e){const t=new Map;for(const n of e)t.set(n.id,n);return Array.from(t.values()).sort((n,r)=>new Date(n.createdAt).getTime()-new Date(r.createdAt).getTime())}function wx(e,t){const[n,r]=g.useState({}),o=g.useRef({}),s=g.useCallback((h,b)=>{const v=kn(h);r(_=>{const y=_[v]??{items:[],total:0,loadedFrom:0,loading:!1,loaded:!1};return{..._,[v]:b(y)}})},[]),a=g.useCallback(async h=>{const b=kn(h),v=(o.current[b]??0)+1;o.current[b]=v,s(h,x=>({...x,loading:!0}));const _=await t({parentId:h,skip:0,take:e});if(o.current[b]!==v)return;if(_.total<=e){s(h,()=>({items:dr(_.items),total:_.total,loadedFrom:0,loading:!1,loaded:!0}));return}const y=_.total-e,w=await t({parentId:h,skip:y,take:e});o.current[b]===v&&s(h,()=>({items:dr(w.items),total:w.total,loadedFrom:y,loading:!1,loaded:!0}))},[t,e,s]),i=g.useCallback(async h=>{const b=kn(h),v=n[b];if(!v||v.loading||v.loadedFrom<=0)return;const _=Math.min(e,v.loadedFrom),y=v.loadedFrom-_,w=(o.current[b]??0)+1;o.current[b]=w,s(h,k=>({...k,loading:!0}));const x=await t({parentId:h,skip:y,take:_});o.current[b]===w&&s(h,k=>({...k,items:dr([...x.items,...k.items]),total:x.total,loadedFrom:y,loading:!1}))},[n,t,e,s]),l=g.useCallback((h,b)=>{s(h,v=>{const _=dr([...v.items,b]);return{...v,items:_,total:v.total+1,loaded:!0}})},[s]),u=g.useCallback((h,b,v)=>{s(h,_=>({..._,items:_.items.map(y=>y.id===b?v(y):y)}))},[s]),f=g.useCallback((h,b)=>{s(h,v=>({...v,items:v.items.filter(_=>_.id!==b),total:Math.max(0,v.total-1)}))},[s]),m=g.useCallback(h=>{const b=kn(h);o.current[b]=(o.current[b]??0)+1,r(v=>{const _={...v};return delete _[b],_})},[]),p=g.useCallback(()=>{o.current={},r({})},[]);return{branches:n,loadInitial:a,loadOlder:i,appendLocal:l,replaceLocal:u,removeLocal:f,resetBranch:m,resetAll:p}}function vl({open:e,title:t,message:n,confirmText:r="Удалить",cancelText:o="Отмена",danger:s=!0,onConfirm:a,onClose:i}){return c.jsx(Wr,{open:e,onOpenChange:l=>!l&&i(),children:c.jsxs(Wn,{className:"sm:rounded-2xl",children:[c.jsx($n,{children:c.jsx(Fn,{children:t})}),c.jsx("div",{className:B.dialogContent,children:n}),c.jsxs($r,{className:B.dialogActions,children:[c.jsx(xe,{variant:"secondary",onClick:i,children:o}),c.jsx(xe,{variant:s?"danger":"primary",onClick:a,children:r})]})]})})}function Oo({mode:e,initialText:t="",initialAttachments:n=[],initialRecipients:r=[],placeholder:o,submitLabel:s,recipientsSource:a,onUploadAttachment:i,onDeleteAttachment:l,onSubmit:u,onCancel:f,submitting:m}){const[p,h]=g.useState(t),[b,v]=g.useState(n),[_,y]=g.useState(r),[w,x]=g.useState(!1),[k,N]=g.useState(null),C=g.useRef(null),S=async O=>{if(!(!O||!i)){x(!0);try{for(const T of Array.from(O)){const P=await i(T);v(A=>[...A,P])}}finally{x(!1),C.current&&(C.current.value="")}}},E=async()=>{if(!k)return;const O=k;if(N(null),l)try{await l(O)}catch{}v(T=>T.filter(P=>P.id!==O.id))},D=async()=>{const O=p.trim();O&&(await u({text:O,attachments:b,recipients:_}),e!=="edit"&&(h(""),v([]),y([])))};return c.jsxs("div",{className:M(B.form,{[B.form_root]:e==="root",[B.form_inline]:e!=="root"}),children:[c.jsx("textarea",{className:B.textarea,placeholder:o??"Напишите комментарий...",value:p,onChange:O=>h(O.target.value)}),_.length>0&&c.jsx("div",{className:B.recipientsChips,children:_.map(O=>c.jsxs("span",{className:B.chip,children:[O.name,c.jsx("button",{type:"button","aria-label":"Удалить получателя",onClick:()=>y(T=>T.filter(P=>P.id!==O.id)),children:c.jsx(ct,{})})]},O.id))}),b.length>0&&c.jsx("div",{className:B.attachments,children:b.map(O=>c.jsxs("span",{className:B.attachment,children:[c.jsx("span",{className:B.attachmentName,children:O.name}),c.jsx("span",{className:B.attachmentSize,children:gl(O.size)}),c.jsx("button",{type:"button",className:B.attachmentRemove,"aria-label":"Удалить вложение",onClick:()=>N(O),children:c.jsx(ct,{})})]},O.id))}),c.jsxs("div",{className:B.formRow,children:[c.jsxs("div",{className:B.formTools,children:[i&&c.jsxs(c.Fragment,{children:[c.jsxs("button",{type:"button",className:B.toolBtn,onClick:()=>C.current?.click(),disabled:w,children:[c.jsx(ja,{style:{transform:"rotate(180deg)"}}),w?"Загрузка...":"Прикрепить файл"]}),c.jsx("input",{ref:C,type:"file",multiple:!0,className:B.hiddenInput,onChange:O=>S(O.target.files)})]}),a&&c.jsx(ns,{value:null,placeholder:_.length>0?`Ознакомители (${_.length})`:"Ознакомители",title:"Добавить ознакомителя",searchPlaceholder:"Поиск сотрудника",selectButtonText:"",loadOptions:a,onChange:O=>{const T=O.meta,P=T||{id:String(O.value),name:String(O.label)};y(A=>A.some(I=>I.id===P.id)?A:[...A,P])},className:B.recipientsPickerWrap,inputClassName:B.recipientsPickerInput})]}),c.jsxs("div",{className:B.formActions,children:[f&&c.jsx(xe,{variant:"secondary",size:"small",onClick:f,children:"Отмена"}),c.jsx(xe,{variant:"primary",size:"small",onClick:D,loading:m,disabled:!p.trim()||m,children:s??(e==="edit"?"Сохранить":"Отправить")})]})]}),c.jsx(vl,{open:!!k,title:"Удалить вложение?",message:`«${k?.name??""}» будет удалено без возможности восстановления.`,onConfirm:E,onClose:()=>N(null)})]})}function _l({comment:e,ctx:t}){const[n,r]=g.useState(!1),[o,s]=g.useState(!1),[a,i]=g.useState(!1),[l,u]=g.useState(!1),[f,m]=g.useState(!1),p=kn(e.id),h=t.branches[p],b=e.author.id===t.currentUser.id,v=new Date(e.createdAt).getTime(),_=Number.isNaN(v)?!1:Date.now()-v<t.editWindowMs;t.nowTick;const y=!e.deleted&&(e.permissions?.canEdit??(b&&_)),w=!e.deleted&&(e.permissions?.canDelete??b),x=!e.deleted&&(e.permissions?.canReply??t.permissions.canReply??!0),k=async()=>{const S=!n;r(S),S&&!h?.loaded&&await t.loadInitial(e.id)},N=async S=>{m(!0);try{h?.loaded,await t.createReply(e.id,{parentId:e.id,text:S.text,attachments:S.attachments,recipients:S.recipients}),r(!0),s(!1)}finally{m(!1)}},C=async S=>{m(!0);try{await t.editComment(e,{id:e.id,text:S.text,attachments:S.attachments,recipients:S.recipients}),i(!1)}finally{m(!1)}};return c.jsxs("div",{className:B.item,children:[c.jsx("div",{className:B.avatar,"aria-hidden":!0,children:e.author.avatarUrl?c.jsx("img",{src:e.author.avatarUrl,alt:"",style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"cover"}}):yx(e.author.name)}),c.jsxs("div",{className:B.body,children:[a?c.jsx(Oo,{mode:"edit",initialText:e.text,initialAttachments:e.attachments??[],initialRecipients:e.recipients??[],recipientsSource:t.recipientsSource,onUploadAttachment:t.onUploadAttachment,onDeleteAttachment:t.onDeleteAttachment,onSubmit:C,onCancel:()=>i(!1),submitting:f}):c.jsxs("div",{className:M(B.bubble,{[B.bubble_deleted]:e.deleted}),children:[c.jsxs("div",{className:B.meta,children:[c.jsx("span",{className:B.author,children:e.author.name}),c.jsx("span",{className:B.date,children:pa(e.createdAt)}),e.editedAt&&!e.deleted&&c.jsxs("span",{className:B.editedTag,children:["(изм. ",pa(e.editedAt),")"]})]}),c.jsx("div",{className:B.text,children:e.deleted?"Комментарий удалён":e.text}),!e.deleted&&e.attachments&&e.attachments.length>0&&c.jsx("div",{className:B.attachments,children:e.attachments.map(S=>c.jsxs("span",{className:B.attachment,children:[c.jsx("span",{className:B.attachmentName,onClick:()=>t.onDownloadAttachment?.(S),title:S.name,children:S.name}),c.jsx("span",{className:B.attachmentSize,children:gl(S.size)})]},S.id))}),!e.deleted&&e.recipients&&e.recipients.length>0&&c.jsxs("div",{className:B.recipients,title:e.recipients.map(S=>S.name).join(", "),children:[c.jsx(Ca,{}),"Уведомлены: ",e.recipients.map(S=>S.name).join(", ")]}),!e.deleted&&c.jsxs("div",{className:B.actions,children:[x&&c.jsx("button",{type:"button",className:B.iconButton,onClick:()=>s(S=>!S),title:"Ответить","aria-label":"Ответить",children:c.jsx(ya,{})}),y&&c.jsx("button",{type:"button",className:B.iconButton,onClick:()=>i(!0),title:"Редактировать","aria-label":"Редактировать",children:c.jsx(Sa,{})}),w&&c.jsx("button",{type:"button",className:M(B.iconButton,B.iconButton_danger),onClick:()=>u(!0),title:"Удалить","aria-label":"Удалить",children:c.jsx(wa,{})})]})]}),e.repliesCount>0&&c.jsxs("button",{type:"button",className:B.expandBtn,onClick:k,children:[c.jsx(dt,{style:{width:12,height:12,transform:n?"rotate(180deg)":"rotate(0)",transition:"transform 0.15s ease"}}),n?"Скрыть ответы":`Показать ответы (${e.repliesCount})`,h?.loading&&c.jsx("span",{className:B.branchSpinner,children:c.jsx(Ge,{size:"extraSmall"})})]}),o&&c.jsx(Oo,{mode:"reply",placeholder:`Ответить ${e.author.name}…`,recipientsSource:t.recipientsSource,onUploadAttachment:t.onUploadAttachment,onDeleteAttachment:t.onDeleteAttachment,onSubmit:N,onCancel:()=>s(!1),submitting:f}),n&&h&&c.jsxs("div",{className:B.children,children:[h.loadedFrom>0&&c.jsxs("button",{type:"button",className:B.loadOlderBtn,onClick:()=>t.loadOlder(e.id),disabled:h.loading,children:[h.loading?c.jsx(Ge,{size:"extraSmall"}):c.jsx(dt,{style:{transform:"rotate(180deg)",width:12,height:12}}),"Показать предыдущие (",h.loadedFrom,")"]}),h.items.map(S=>c.jsx(_l,{comment:S,ctx:t},S.id))]})]}),c.jsx(vl,{open:l,title:"Удалить комментарий?",message:"Это действие нельзя отменить.",onConfirm:async()=>{u(!1),await t.deleteComment(e)},onClose:()=>u(!1)})]})}const xx=g.forwardRef(function({loadComments:t,currentUser:n,recipientsSource:r,onCreate:o,onEdit:s,onDelete:a,onUploadAttachment:i,onDownloadAttachment:l,onDeleteAttachment:u,permissions:f={canCreate:!0,canReply:!0},editWindowMs:m=bx,pageSize:p=_x,title:h="Комментарии",eyebrow:b="Discussion",className:v},_){const{branches:y,loadInitial:w,loadOlder:x,appendLocal:k,replaceLocal:N,removeLocal:C,resetBranch:S,resetAll:E}=wx(p,t),[D,O]=g.useState(!1),[T,P]=g.useState(0);g.useEffect(()=>{const j=window.setInterval(()=>P(K=>K+1),3e4);return()=>window.clearInterval(j)},[]),g.useEffect(()=>{y[Cn]||w(null)},[]),g.useImperativeHandle(_,()=>({refresh:j=>{j===void 0?(E(),w(null)):(S(j),w(j))}}),[w,E,S]);const A=g.useCallback(async(j,K)=>{if(!o)return;const ve=await o(K);if(k(j,ve),j!==null){for(const V of Object.keys(y))if(y[V].items.some(ee=>ee.id===j)){N(V===Cn?null:V,j,ee=>({...ee,repliesCount:ee.repliesCount+1}));break}}},[k,y,o,N]),I=g.useCallback(async(j,K)=>{if(!s)return;const ve=await s(K);N(j.parentId,j.id,()=>ve)},[s,N]),X=g.useCallback(async j=>{if(a){if(await a(j.id),j.repliesCount>0)N(j.parentId,j.id,K=>({...K,deleted:!0,text:"",attachments:[],recipients:[]}));else if(C(j.parentId,j.id),j.parentId!==null){for(const K of Object.keys(y))if(y[K].items.some(V=>V.id===j.parentId)){N(K===Cn?null:K,j.parentId,V=>({...V,repliesCount:Math.max(0,V.repliesCount-1)}));break}}}},[y,a,C,N]),R=y[Cn],q=g.useMemo(()=>({currentUser:n,permissions:f,editWindowMs:m,recipientsSource:r,onUploadAttachment:i,onDeleteAttachment:u,onDownloadAttachment:l,branches:y,loadInitial:w,loadOlder:x,createReply:A,editComment:I,deleteComment:X,nowTick:T}),[y,A,n,X,I,m,w,x,T,u,l,i,f,r]),W=async j=>{O(!0);try{await A(null,{parentId:null,text:j.text,attachments:j.attachments,recipients:j.recipients})}finally{O(!1)}},G=f.canCreate??!0;return c.jsxs("div",{className:M(B.root,v),children:[c.jsxs("div",{className:B.header,children:[c.jsxs("div",{className:B.headerText,children:[c.jsx("span",{className:B.eyebrow,children:b}),c.jsx("span",{className:B.title,children:h})]}),R&&c.jsx("span",{className:B.counter,children:R.total})]}),G&&o&&c.jsx(Oo,{mode:"root",placeholder:"Поделитесь мнением или задайте вопрос...",submitLabel:"Опубликовать",recipientsSource:r,onUploadAttachment:i,onDeleteAttachment:u,onSubmit:W,submitting:D}),!R&&c.jsx("div",{className:B.skeleton,children:[0,1,2].map(j=>c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[c.jsx("div",{className:B.skeletonLine,style:{width:"30%"}}),c.jsx("div",{className:B.skeletonLine,style:{width:"85%"}}),c.jsx("div",{className:B.skeletonLine,style:{width:"60%"}})]},j))}),R&&R.loadedFrom>0&&c.jsxs("button",{type:"button",className:B.loadOlderBtn,onClick:()=>x(null),disabled:R.loading,children:[R.loading?c.jsx(Ge,{size:"extraSmall"}):c.jsx(dt,{style:{transform:"rotate(180deg)",width:12,height:12}}),"Показать предыдущие (",R.loadedFrom,")"]}),R&&R.items.length===0&&!R.loading&&c.jsx("div",{className:B.empty,children:c.jsx(It,{title:"Пока нет комментариев",subtitle:"Будьте первым, кто напишет."})}),R&&R.items.length>0&&c.jsx("div",{className:B.list,children:R.items.map(j=>c.jsx(_l,{comment:j,ctx:q},j.id))})]})}),Cx="_root_1073m_1",kx="_collapsed_1073m_14",Nx="_variant_classic_1073m_19",Sx="_sectionTitle_1073m_24",Ex="_item_1073m_32",jx="_item_active_1073m_38",Mx="_user_1073m_53",Ox="_badge_1073m_56",Dx="_footer_1073m_60",Px="_variant_transparent_1073m_66",Rx="_header_1073m_73",Tx="_body_1073m_80",Ax="_bodyContent_1073m_83",Ix="_section_1073m_24",Lx="_list_1073m_97",Wx="_icon_1073m_108",$x="_iconStub_1073m_109",Fx="_item_nested_1073m_144",Bx="_divider_1073m_156",zx="_collapseBtn_1073m_159",Hx="_variant_aurora_1073m_169",Yx="_sectionDot_1073m_183",Vx="_userName_1073m_224",qx="_userRole_1073m_227",Gx="_avatar_1073m_230",Ux="_avatarInitials_1073m_233",Zx="_blob_1073m_263",Xx="_blob_a_1073m_272",Kx="_blob_b_1073m_280",Qx="_user_clickable_1073m_314",Jx="_userSlot_1073m_321",e4="_avatarBadge_1073m_358",t4="_userText_1073m_371",n4="_collapseIcon_1073m_413",r4="_collapseIcon_rot_1073m_419",o4="_bodyWrap_1073m_424",s4="_itemWrap_1073m_467",a4="_item_disabled_1073m_495",i4="_item_scrollEdgeBottom_1073m_506",c4="_label_1073m_529",l4="_chev_1073m_546",d4="_chev_open_1073m_553",u4="_sub_1073m_558",f4="_sub_open_1073m_565",m4="_subList_1073m_570",h4="_custom_1073m_614",Z={root:Cx,collapsed:kx,variant_classic:Nx,sectionTitle:Sx,item:Ex,item_active:jx,user:Mx,badge:Ox,footer:Dx,variant_transparent:Px,header:Rx,body:Tx,bodyContent:Ax,section:Ix,list:Lx,icon:Wx,iconStub:$x,item_nested:Fx,divider:Bx,collapseBtn:zx,variant_aurora:Hx,sectionDot:Yx,userName:Vx,userRole:qx,avatar:Gx,avatarInitials:Ux,blob:Zx,blob_a:Xx,blob_b:Kx,user_clickable:Qx,userSlot:Jx,avatarBadge:e4,userText:t4,collapseIcon:n4,collapseIcon_rot:r4,bodyWrap:o4,itemWrap:s4,item_disabled:a4,item_scrollEdgeBottom:i4,label:c4,chev:l4,chev_open:d4,sub:u4,sub_open:f4,subList:m4,custom:h4},Do=new Set,bl=g.createContext({variant:"classic",collapsed:!1,activeId:void 0,setActive:()=>{},edgeBottomIds:Do}),yl=()=>g.useContext(bl),ga=(e,t)=>e==null?t:typeof e=="number"?`${e}px`:e,p4=e=>e.trim().split(/\s+/).slice(0,2).map(n=>n[0]?.toUpperCase()??"").join(""),va=2,g4=24,v4=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0},fs=({id:e,label:t,icon:n,href:r,active:o,badge:s,disabled:a,onClick:i,children:l,level:u=0})=>{const f=yl(),m=o??f.activeId===e,p=!!(l&&l.length>0),[h,b]=g.useState(p&&!!l?.some(C=>C.id===f.activeId)),v=g.useCallback(C=>{if(a){C.preventDefault();return}if(p){C.preventDefault(),b(S=>!S);return}f.setActive(e),i?.(C)},[f,a,p,e,i]),_=!f.collapsed&&c.jsx("span",{className:Z.label,children:t}),y=n?c.jsx("span",{className:Z.icon,children:n}):c.jsx("span",{className:Z.iconStub}),w=c.jsxs(c.Fragment,{children:[y,_,!f.collapsed&&s!=null&&c.jsx("span",{className:Z.badge,children:s}),!f.collapsed&&p&&c.jsx("span",{className:M(Z.chev,h&&Z.chev_open),"aria-hidden":!0,children:c.jsx(dt,{width:12,height:12})})]}),x={className:M(Z.item,m&&Z.item_active,a&&Z.item_disabled,u>0&&Z.item_nested,f.edgeBottomIds.has(e)&&Z.item_scrollEdgeBottom),"aria-current":m?"page":void 0,"aria-expanded":p?h:void 0,"data-id":e,onClick:v},k=r&&!p&&!a?c.jsx("a",{href:r,...x,children:w}):c.jsx("button",{type:"button",disabled:a,...x,children:w}),N=f.collapsed?c.jsx(kr,{title:t,placement:"right",children:k}):k;return c.jsxs("li",{className:Z.itemWrap,children:[N,p&&c.jsx("div",{className:M(Z.sub,h&&!f.collapsed&&Z.sub_open),"aria-hidden":!h,children:c.jsx("ul",{className:Z.subList,children:l.map(C=>c.jsx(fs,{...C,level:u+1},C.id))})})]})},wl=({id:e,title:t,items:n,children:r,className:o})=>{const s=yl();return c.jsxs("div",{id:e,className:M(Z.section,o),children:[t&&!s.collapsed&&c.jsx("div",{className:Z.sectionTitle,children:t}),s.collapsed&&t&&c.jsx("div",{className:Z.sectionDot,"aria-hidden":!0}),c.jsxs("ul",{className:Z.list,children:[n?.map(a=>c.jsx(fs,{...a},a.id)),r]})]})},_4=({className:e})=>c.jsx("div",{className:M(Z.divider,e),role:"separator"}),b4=({children:e,className:t})=>c.jsx("div",{className:M(Z.custom,t),children:e}),y4=({user:e,userSlot:t,sections:n,children:r,variant:o="classic",activeId:s,defaultActiveId:a,onActiveChange:i,collapsible:l=!1,collapsed:u,defaultCollapsed:f=!1,onCollapsedChange:m,footer:p,width:h,collapsedWidth:b,className:v})=>{const[_,y]=g.useState(a),w=s!==void 0,x=w?s:_,k=g.useCallback(V=>{w||y(V),i?.(V)},[w,i]),[N,C]=g.useState(f),S=u!==void 0,E=S?!!u:N;g.useEffect(()=>{S||C(f)},[]);const D=g.useCallback(()=>{const V=!E;S||C(V),m?.(V)},[E,S,m]),[O,T]=g.useState(Do),P={"--cozy-sidenav-w":ga(h,"280px"),"--cozy-sidenav-w-collapsed":ga(b,"76px")},A=n&&n.length>0,I=g.Children.count(r)>0,X=g.Children.count(r),R=g.useRef(null),q=g.useRef(null),W=g.useRef(null),G=g.useCallback(()=>{const V=R.current;if(!V)return;const{scrollTop:ne,scrollHeight:ee,clientHeight:re}=V,fe=ee>re+va,Me=ne+re<ee-va;if(!fe||!Me){T(de=>de.size===0?de:Do);return}const se=V.getBoundingClientRect(),$=new Set;V.querySelectorAll(`.${Z.item}[data-id]`).forEach(de=>{const ke=de.dataset.id;if(!ke)return;const Oe=de.getBoundingClientRect();Oe.bottom>se.bottom-g4&&Oe.top<se.bottom&&$.add(ke)}),T(de=>v4(de,$)?de:$)},[]),j=g.useCallback(()=>{W.current!==null&&cancelAnimationFrame(W.current),W.current=requestAnimationFrame(()=>{W.current=null,G()})},[G]);g.useEffect(()=>{const V=q.current;if(!V)return;j();const ne=new ResizeObserver(j);return ne.observe(V),()=>{ne.disconnect(),W.current!==null&&(cancelAnimationFrame(W.current),W.current=null)}},[j,n,X,E,o]);const K=g.useMemo(()=>({variant:o,collapsed:E,activeId:x,setActive:k,edgeBottomIds:O}),[o,E,x,k,O]),ve=()=>{if(t)return c.jsx("div",{className:Z.userSlot,children:t});if(!e)return null;const V=e.initials??p4(e.name),ne=e.onClick?"button":"div";return c.jsxs(ne,{className:M(Z.user,e.onClick&&Z.user_clickable),onClick:e.onClick,type:e.onClick?"button":void 0,children:[c.jsxs("span",{className:Z.avatar,children:[e.avatarUrl?c.jsx("img",{src:e.avatarUrl,alt:""}):c.jsx("span",{className:Z.avatarInitials,children:V||"?"}),e.badge!=null&&c.jsx("span",{className:Z.avatarBadge,children:e.badge})]}),!E&&c.jsxs("span",{className:Z.userText,children:[c.jsx("span",{className:Z.userName,children:e.name}),e.role&&c.jsx("span",{className:Z.userRole,children:e.role})]})]})};return c.jsx(bl.Provider,{value:K,children:c.jsxs("nav",{className:M(Z.root,Z[`variant_${o}`],E&&Z.collapsed,v),style:P,"data-variant":o,children:[o==="aurora"&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:M(Z.blob,Z.blob_a),"aria-hidden":!0}),c.jsx("span",{className:M(Z.blob,Z.blob_b),"aria-hidden":!0})]}),c.jsxs("div",{className:Z.header,children:[ve(),l&&c.jsx("button",{type:"button",className:Z.collapseBtn,onClick:D,"aria-label":E?"Развернуть":"Свернуть",title:E?"Развернуть":"Свернуть",children:c.jsx("span",{className:M(Z.collapseIcon,E&&Z.collapseIcon_rot),"aria-hidden":!0,children:c.jsx(dt,{width:12,height:12})})})]}),c.jsx("div",{className:Z.bodyWrap,children:c.jsx("div",{ref:R,className:Z.body,onScroll:j,children:c.jsxs("div",{ref:q,className:Z.bodyContent,children:[A&&n.map((V,ne)=>c.jsx(wl,{...V},V.id??`s-${ne}`)),I&&g.Children.map(r,V=>(g.isValidElement(V),V))]})})}),p&&c.jsx("div",{className:Z.footer,children:p})]})})},fn=g.memo(y4);fn.Section=wl;fn.Item=fs;fn.Divider=_4;fn.Custom=b4;fn.displayName="SideNav";const w4="_root_1sf0v_1",x4="_size_sm_1sf0v_27",C4="_color_blue_1sf0v_32",k4="_checked_1sf0v_36",N4="_disabled_1sf0v_40",S4="_thumb_1sf0v_45",E4="_thumb_checked_1sf0v_58",j4="_wrapper_1sf0v_62",M4="_field_1sf0v_70",O4="_labelWithTooltip_1sf0v_81",D4="_labelText_1sf0v_89",Fe={root:w4,size_sm:x4,color_blue:C4,checked:k4,disabled:N4,thumb:S4,thumb_checked:E4,wrapper:j4,field:M4,labelWithTooltip:O4,labelText:D4},xl=g.forwardRef(function({checked:t,defaultChecked:n,onChange:r,disabled:o,size:s="md",color:a="green",ariaLabel:i,id:l,className:u,label:f,tooltipContent:m,tooltipPopperClassName:p},h){const b=g.useId(),v=l??b,[_,y]=g.useState(!!n),w=t!==void 0,x=w?!!t:_,k=g.useCallback(()=>{if(o)return;const C=!x;w||y(C),r?.(C)},[o,x,w,r]),N=c.jsx("button",{ref:h,id:v,type:"button",role:"switch","aria-checked":x,"aria-label":f?void 0:i,"aria-disabled":o||void 0,disabled:o,onClick:k,className:M(Fe.root,s==="sm"&&Fe.size_sm,a==="blue"&&Fe.color_blue,x&&Fe.checked,o&&Fe.disabled,!f&&u),children:c.jsx("span",{className:M(Fe.thumb,x&&Fe.thumb_checked)})});return f?c.jsx("div",{className:M(Fe.wrapper,u),children:c.jsxs("div",{className:M(Fe.field,{[Fe.disabled]:o}),children:[N,m?c.jsx(Lt,{htmlFor:v,tooltipContent:m,tooltipPopperClassName:p,className:Fe.labelWithTooltip,labelClassName:Fe.labelText,children:f}):c.jsx(Mn,{htmlFor:v,className:M(jn.label_inline,Fe.labelText),children:f})]})}):N});xl.displayName="Switch";const P4="_root_1wyb7_1",R4="_option_1wyb7_11",T4="_option_disabled_1wyb7_24",A4="_option_active_1wyb7_24",I4="_size_sm_1wyb7_32",L4="_preview_1wyb7_40",W4="_label_1wyb7_44",Ft={root:P4,option:R4,option_disabled:T4,option_active:A4,size_sm:I4,preview:L4,label:W4};function $4({value:e,onChange:t,options:n,size:r="md",ariaLabel:o,className:s}){return c.jsx("div",{role:"radiogroup","aria-label":o,className:M(Ft.root,r==="sm"&&Ft.size_sm,s),children:n.map(a=>{const i=a.value===e;return c.jsxs("button",{type:"button",role:"radio","aria-checked":i,"aria-disabled":a.disabled||void 0,disabled:a.disabled,onClick:()=>!a.disabled&&t(a.value),className:M(Ft.option,i&&Ft.option_active,a.disabled&&Ft.option_disabled),children:[c.jsx("span",{className:Ft.preview,children:a.image}),c.jsx("span",{className:Ft.label,children:a.label})]},a.value)})})}const F4="_root_72ym9_1",B4="_layout_card_72ym9_9",z4="_variant_elevated_72ym9_18",H4="_section_72ym9_24",Y4="_layout_plain_72ym9_36",V4="_sectionHeader_72ym9_61",q4="_sectionHeader_button_72ym9_68",G4="_sectionTitleWrap_72ym9_77",U4="_sectionTitle_72ym9_77",Z4="_sectionDescription_72ym9_93",X4="_sectionChevron_72ym9_101",K4="_sectionChevron_open_72ym9_108",Q4="_sectionBody_72ym9_112",J4="_sectionBody_collapsed_72ym9_117",e3="_group_72ym9_122",t3="_item_72ym9_128",n3="_groupTitle_72ym9_135",r3="_density_compact_72ym9_165",o3="_item_align_start_72ym9_181",s3="_item_interactive_72ym9_185",a3="_item_danger_72ym9_199",i3="_label_72ym9_202",c3="_item_disabled_72ym9_209",l3="_iconBadge_72ym9_214",d3="_iconSpacer_72ym9_236",u3="_body_72ym9_241",f3="_labelRow_72ym9_248",m3="_description_72ym9_263",h3="_badge_72ym9_271",p3="_control_72ym9_283",g3="_chevron_72ym9_298",v3="_externalIcon_72ym9_305",_3="_hint_72ym9_313",b3="_divider_72ym9_328",y3="_loading_72ym9_335",oe={root:F4,layout_card:B4,variant_elevated:z4,section:H4,layout_plain:Y4,sectionHeader:V4,sectionHeader_button:q4,sectionTitleWrap:G4,sectionTitle:U4,sectionDescription:Z4,sectionChevron:X4,sectionChevron_open:K4,sectionBody:Q4,sectionBody_collapsed:J4,group:e3,item:t3,groupTitle:n3,density_compact:r3,item_align_start:o3,item_interactive:s3,item_danger:a3,label:i3,item_disabled:c3,iconBadge:l3,iconSpacer:d3,body:u3,labelRow:f3,description:m3,badge:h3,control:p3,chevron:g3,externalIcon:v3,hint:_3,divider:b3,loading:y3},w3=()=>c.jsxs("svg",{className:oe.externalIcon,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[c.jsx("path",{d:"M14 3h7v7"}),c.jsx("path",{d:"M10 14L21 3"}),c.jsx("path",{d:"M21 14v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h6"})]}),x3=({className:e})=>c.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:c.jsx("polyline",{points:"9 6 15 12 9 18"})}),ms=({icon:e,label:t,description:n,control:r,badge:o,hint:s,href:a,external:i,onClick:l,disabled:u,danger:f,hidden:m,align:p,className:h,render:b})=>{if(m)return null;const v=c.jsxs("div",{className:oe.body,children:[c.jsxs("div",{className:oe.labelRow,children:[c.jsx("span",{className:oe.label,children:t}),o&&c.jsx("span",{className:oe.badge,children:o})]}),n&&c.jsx("div",{className:oe.description,children:n})]}),_=r?c.jsx("div",{className:oe.control,children:r}):null;if(b)return c.jsx(c.Fragment,{children:b({label:v,control:_})});const y=!!(a||l),w=y&&!r,x=M(oe.item,p==="start"&&oe.item_align_start,y&&oe.item_interactive,f&&oe.item_danger,u&&oe.item_disabled,h),k=e?c.jsx("div",{className:oe.iconBadge,children:e}):c.jsx("span",{className:oe.iconSpacer}),N=c.jsxs(c.Fragment,{children:[_,w&&c.jsx(x3,{className:oe.chevron}),!w&&i&&a&&c.jsx(w3,{})]}),C=c.jsxs(c.Fragment,{children:[k,v,c.jsx("div",{className:oe.control,style:!r&&!w?{display:"none"}:void 0,children:N}),s&&c.jsx("div",{className:oe.hint,children:s})]});return a&&!u?c.jsx("a",{href:a,target:i?"_blank":void 0,rel:i?"noreferrer":void 0,onClick:l,className:x,children:C}):l&&!u?c.jsx("button",{type:"button",onClick:l,className:x,children:C}):c.jsx("div",{className:x,children:C})},Cl=({title:e,items:t,children:n,className:r})=>{const o=(t??[]).filter(s=>!s.hidden);return c.jsxs("div",{className:M(oe.group,r),children:[e&&c.jsx("div",{className:oe.groupTitle,children:e}),o.map((s,a)=>c.jsx(ms,{...s},s.id??`item-${a}`)),n]})},kl=({id:e,title:t,description:n,items:r,groups:o,children:s,collapsible:a,defaultOpen:i=!0,className:l})=>{const[u,f]=g.useState(i),m=(r??[]).filter(h=>!h.hidden),p=(t||n)&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:oe.sectionTitleWrap,children:[t&&c.jsx("div",{className:oe.sectionTitle,children:t}),n&&c.jsx("div",{className:oe.sectionDescription,children:n})]}),a&&c.jsx(dt,{className:M(oe.sectionChevron,u&&oe.sectionChevron_open)})]});return c.jsxs("section",{id:e,className:M(oe.section,l),children:[p&&a?c.jsx("button",{type:"button",onClick:()=>f(h=>!h),className:M(oe.sectionHeader,oe.sectionHeader_button),"aria-expanded":u,children:p}):p?c.jsx("div",{className:oe.sectionHeader,children:p}):null,c.jsxs("div",{className:M(oe.sectionBody,a&&!u&&oe.sectionBody_collapsed),children:[m.map((h,b)=>c.jsx(ms,{...h},h.id??`item-${b}`)),(o??[]).map((h,b)=>c.jsx(Cl,{...h},h.id??`group-${b}`)),s]})]})},C3=({className:e})=>c.jsx("hr",{className:M(oe.divider,e)}),k3=({sections:e,children:t,layout:n="card",density:r="comfortable",variant:o="classic",loading:s,emptyState:a,className:i,id:l})=>{const u=M(oe.root,n==="card"&&o==="classic"&&oe.layout_card,n==="plain"&&oe.layout_plain,o==="elevated"&&oe.variant_elevated,r==="compact"&&oe.density_compact,i);if(s)return c.jsx("div",{className:u,id:l,children:c.jsx("div",{className:oe.loading,children:c.jsx(Ge,{})})});const f=e&&e.length>0,m=g.Children.count(t)>0;return!f&&!m?c.jsx("div",{className:u,id:l,children:a??c.jsx(It,{})}):c.jsxs("div",{className:u,id:l,children:[f&&e.map((p,h)=>c.jsx(kl,{...p},p.id??`section-${h}`)),m&&g.Children.map(t,p=>(g.isValidElement(p),p))]})},mn=g.memo(k3);mn.Section=kl;mn.Group=Cl;mn.Item=ms;mn.Divider=C3;mn.displayName="SettingsView";exports.ApprovalRoute=Qy;exports.ArrowDownBlueIcon=Jl;exports.ArrowDownIcon=dt;exports.ArrowRightIcon=Ql;exports.BaseBlock=_d;exports.Button=xe;exports.Calendar=Xb;exports.CameraIcon=sd;exports.CancelIcon=wa;exports.Card=Du;exports.Carousel=Gu;exports.ChartIcon=ql;exports.ChatIcon=ya;exports.CheckGreen=td;exports.Checkbox=ml;exports.ClockFilledIcon=cd;exports.ClockIcon=Ol;exports.CloseRed=ed;exports.CollapsableBlock=Kh;exports.Collapse=ic;exports.Colors=Ma;exports.CommentFeed=xx;exports.CopyIcon=ka;exports.CopyTextTrigger=Ao;exports.CrossIcon=ct;exports.DetailView=Yn;exports.DialogSelect=ns;exports.DoneIcon=Po;exports.DownloadIcon=ja;exports.EditIcon=Sa;exports.EmptyComponent=It;exports.EmptyIcon=Ea;exports.EnvelopIcon=Ca;exports.FeedbackIcon=Gl;exports.FileReloadIcon=Dl;exports.FileSync=Kl;exports.FilterIcon=ad;exports.FolderEditIcon=Pl;exports.GraduateIcon=Rl;exports.GridIcon=Tl;exports.HeartIcon=Al;exports.HelpIcon=Il;exports.HistoryBlue=nd;exports.HomeIcon=Ml;exports.ImageSegmented=$4;exports.InfoIcon=Na;exports.Input=Rc;exports.InputCaption=Ct;exports.IslandIcon=ud;exports.Label=Mn;exports.ListIcon=Ll;exports.MarketIcon=Wl;exports.MegaphoneIcon=Zl;exports.MessageIcon=rd;exports.NotebookIcon=Vl;exports.PhoneIcon=od;exports.PlaneIcon=$l;exports.Popover=Ah;exports.ProfileIcon=Fl;exports.ProfileSearchIcon=Bl;exports.RadioGroupButton=ju;exports.ReloadIcon=id;exports.SchoolIcon=dd;exports.SearchIcon=xr;exports.Select=I0;exports.SettingsIcon=ld;exports.SettingsView=mn;exports.SideNav=fn;exports.Spinner=Ge;exports.Stepper=Sv;exports.Switch=xl;exports.Tabs=Iv;exports.TabsRounded=hv;exports.Tag=fc;exports.TaskListIcon=Ul;exports.Textarea=Tc;exports.TimesheetIcon=Yl;exports.TooltipDark=kr;exports.TooltipLight=Uo;exports.TreeDialogSelect=sv;exports.TrendUpIcon=zl;exports.UserSwitchIcon=Xl;exports.WalletIcon=Hl;exports.WarnIcon=xa;exports.parseYmdToLocalDay=fl;exports.startOfLocalDay=nn;exports.toYmdString=ul;exports.todayLocalDay=Hb;exports.useDropdownPosition=ku;exports.useMeasureElement=Za;
45
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},J0="DialogDescriptionWarning",eg=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${jc(J0).contentName}}.`;return d.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},tg=gc,ng=bc,Mc=yc,Oc=wc,Dc=Cc,Rc=Sc;const Wr=tg,rg=ng,Pc=d.forwardRef(({className:e,...t},n)=>c.jsx(Mc,{ref:n,className:J("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Pc.displayName=Mc.displayName;const Wn=d.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(rg,{children:[c.jsx(Pc,{}),c.jsx(Oc,{ref:r,className:J("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:t})]}));Wn.displayName=Oc.displayName;const $n=({className:e,...t})=>c.jsx("div",{className:J("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});$n.displayName="DialogHeader";const $r=({className:e,...t})=>c.jsx("div",{className:J("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});$r.displayName="DialogFooter";const Fn=d.forwardRef(({className:e,...t},n)=>c.jsx(Dc,{ref:n,className:J("text-lg font-semibold leading-none tracking-tight",e),...t}));Fn.displayName=Dc.displayName;const og=d.forwardRef(({className:e,...t},n)=>c.jsx(Rc,{ref:n,className:J("text-sm text-muted-foreground",e),...t}));og.displayName=Rc.displayName;const sg="_wrapper_4ju0w_1",ag="_input_4ju0w_5",ig="_error_4ju0w_25",cg="_disabled_4ju0w_33",lg="_selectedOption_4ju0w_39",dg="_placeholder_4ju0w_50",ug="_actions_4ju0w_54",fg="_clearButton_4ju0w_61",mg="_selectButton_4ju0w_70",hg="_dialogContent_4ju0w_77",pg="_dialogHeader_4ju0w_92",gg="_dialogTitle_4ju0w_97",vg="_search_4ju0w_104",_g="_searchIcon_4ju0w_120",bg="_searchInput_4ju0w_131",yg="_searchSpinner_4ju0w_162",wg="_tableContainer_4ju0w_166",xg="_table_4ju0w_166",Cg="_activeRow_4ju0w_209",kg="_emptyState_4ju0w_216",Sg="_dialogFooter_4ju0w_223",Ng="_pagination_4ju0w_231",Eg="_footerActions_4ju0w_232",jg="_pageInfo_4ju0w_251",_e={wrapper:sg,input:ag,error:ig,disabled:cg,selectedOption:lg,placeholder:dg,actions:ug,clearButton:fg,selectButton:mg,dialogContent:hg,dialogHeader:pg,dialogTitle:gg,search:vg,searchIcon:_g,searchInput:bg,searchSpinner:yg,tableContainer:wg,table:xg,activeRow:Cg,emptyState:kg,dialogFooter:Sg,pagination:Ng,footerActions:Eg,pageInfo:jg},Mg=8,Og=350,ns=({value:e,placeholder:t,loadOptions:n,onChange:r,onClear:o,columns:s,label:a,tooltipContent:i,tooltipPopperClassName:l,title:u="Поиск сотрудника",searchPlaceholder:f="Введите запрос",selectButtonText:m="Выбрать",closeButtonText:p="Закрыть",manualButtonText:h="Добавить вручную",onManualAdd:b,pageSize:v=Mg,debounceMs:_=Og,disabled:y,error:w,className:x,inputClassName:k,selectedOptionRender:S})=>{const[C,N]=g.useState(!1),[E,D]=g.useState(""),[O,T]=g.useState(""),[R,A]=g.useState(1),[I,X]=g.useState([]),[P,q]=g.useState(),[W,G]=g.useState(!1),[j,K]=g.useState(!1),ve=g.useRef(0),V=g.useMemo(()=>s??[{key:"label",title:"ФИО сотрудника",render:$=>$.label},{key:"birthDate",title:"День рождения",render:$=>$.meta?.birthDate??"—"}],[s]),ne=P?Math.max(1,Math.ceil(P/v)):void 0,ee=R>1,re=ne?R<ne:W;g.useEffect(()=>{const $=window.setTimeout(()=>{T(E.trim()),A(1)},_);return()=>window.clearTimeout($)},[_,E]),g.useEffect(()=>{if(!C)return;const $=ve.current+1;ve.current=$,K(!0),n({search:O,page:R,pageSize:v}).then(de=>{ve.current===$&&(X(de.options),q(de.total),G(de.hasNextPage??!1))}).finally(()=>{ve.current===$&&K(!1)})},[O,C,n,R,v]);const fe=g.useCallback($=>{N($),$||(D(""),T(""),A(1))},[]),Me=g.useCallback($=>{r?.($),fe(!1)},[fe,r]),se=e?S?S(e):e.label:t;return c.jsxs("div",{className:M(_e.wrapper,x),children:[a&&c.jsx(Lt,{htmlFor:"DialogSelectInput",tooltipContent:i,tooltipPopperClassName:l,children:a}),c.jsxs("div",{id:"DialogSelectInput",role:"button",tabIndex:y?-1:0,className:M(_e.input,{[_e.disabled]:y,[_e.error]:w},k),onClick:()=>!y&&fe(!0),onKeyDown:$=>{!y&&($.key==="Enter"||$.key===" ")&&($.preventDefault(),fe(!0))},children:[c.jsx("span",{className:M(_e.selectedOption,{[_e.placeholder]:!e}),children:se}),c.jsxs("span",{className:_e.actions,children:[o&&e&&c.jsx(xe,{variant:"text",className:_e.clearButton,"aria-label":"Очистить выбранное значение",onClick:$=>{$.stopPropagation(),o()},children:c.jsx(ct,{})}),c.jsx(xe,{variant:"link",className:_e.selectButton,disabled:y,onClick:$=>{$.stopPropagation(),fe(!0)},children:m})]})]}),c.jsx(Wr,{open:C,onOpenChange:fe,children:c.jsxs(Wn,{className:_e.dialogContent,children:[c.jsx($n,{className:_e.dialogHeader,children:c.jsx(Fn,{className:_e.dialogTitle,children:u})}),c.jsxs("div",{className:_e.search,children:[c.jsx(xr,{className:_e.searchIcon}),c.jsx("input",{className:_e.searchInput,value:E,onChange:$=>D($.target.value),placeholder:f,autoFocus:!0}),j&&c.jsx(Ue,{size:"extraSmall",className:_e.searchSpinner})]}),c.jsxs("div",{className:_e.tableContainer,children:[c.jsxs("table",{className:_e.table,children:[c.jsx("thead",{children:c.jsx("tr",{children:V.map($=>c.jsx("th",{className:$.className,children:$.title},$.key))})}),c.jsx("tbody",{children:I.map($=>{const de=e?.value===$.value;return c.jsx("tr",{className:M({[_e.activeRow]:de}),onClick:()=>Me($),children:V.map(ke=>c.jsx("td",{className:ke.className,children:ke.render($)},ke.key))},String($.value))})})]}),!j&&!I.length&&c.jsx("div",{className:_e.emptyState,children:c.jsx(It,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})})]}),c.jsxs($r,{className:_e.dialogFooter,children:[c.jsxs("div",{className:_e.pagination,children:[c.jsx(xe,{variant:"secondary",size:"small",disabled:!ee||j,onClick:()=>A($=>Math.max(1,$-1)),children:"Назад"}),c.jsxs("span",{className:_e.pageInfo,children:["Страница ",R,ne?` из ${ne}`:""]}),c.jsx(xe,{variant:"secondary",size:"small",disabled:!re||j,onClick:()=>A($=>$+1),children:"Вперёд"})]}),c.jsxs("div",{className:_e.footerActions,children:[b&&c.jsx(xe,{variant:"primary",onClick:b,children:h}),c.jsx(xe,{variant:"secondary",onClick:()=>fe(!1),children:p})]})]})]})}),w&&c.jsx(Ct,{children:w})]})},Dg="_wrapper_15kqr_1",Rg="_input_15kqr_5",Pg="_error_15kqr_25",Tg="_disabled_15kqr_33",Ag="_selectedOption_15kqr_39",Ig="_placeholder_15kqr_50",Lg="_actions_15kqr_54",Wg="_clearButton_15kqr_61",$g="_selectButton_15kqr_70",Fg="_dialogContent_15kqr_77",Bg="_dialogHeader_15kqr_92",zg="_dialogTitle_15kqr_97",Hg="_search_15kqr_104",Yg="_searchIcon_15kqr_120",Vg="_searchInput_15kqr_131",qg="_searchSpinner_15kqr_162",Gg="_treeContainer_15kqr_166",Ug="_row_15kqr_176",Zg="_row_active_15kqr_191",Xg="_nodeLabel_15kqr_194",Kg="_row_match_15kqr_198",Qg="_chevron_15kqr_202",Jg="_chevronExpanded_15kqr_227",ev="_chevronPlaceholder_15kqr_231",tv="_nodeSpinner_15kqr_237",nv="_emptyState_15kqr_249",rv="_loadingState_15kqr_256",ov="_dialogFooter_15kqr_263",pe={wrapper:Dg,input:Rg,error:Pg,disabled:Tg,selectedOption:Ag,placeholder:Ig,actions:Lg,clearButton:Wg,selectButton:$g,dialogContent:Fg,dialogHeader:Bg,dialogTitle:zg,search:Hg,searchIcon:Yg,searchInput:Vg,searchSpinner:qg,treeContainer:Gg,row:Ug,row_active:Zg,nodeLabel:Xg,row_match:Kg,chevron:Qg,chevronExpanded:Jg,chevronPlaceholder:ev,nodeSpinner:tv,emptyState:nv,loadingState:rv,dialogFooter:ov},sv=350,vt="__root__",av=({value:e,placeholder:t,loadChildren:n,loadNodes:r,searchNodes:o,onChange:s,onClear:a,label:i,tooltipContent:l,tooltipPopperClassName:u,title:f="Выбор элемента",searchPlaceholder:m="Введите запрос",selectButtonText:p="Выбрать",closeButtonText:h="Закрыть",confirmButtonText:b="Выбрать",debounceMs:v=sv,disabled:_,error:y,className:w,inputClassName:x,selectedOptionRender:k,nodeRender:S,leafConfirmOnly:C=!1})=>{const N=r??n,[E,D]=g.useState(!1),[O,T]=g.useState(""),[R,A]=g.useState(""),[I,X]=g.useState(()=>new Map),[P,q]=g.useState(()=>new Set),[W,G]=g.useState(()=>new Set),[j,K]=g.useState(()=>new Set),[ve,V]=g.useState(()=>new Set),[ne,ee]=g.useState(!1),[re,fe]=g.useState(null),Me=g.useRef(0),se=g.useRef(0);g.useEffect(()=>{if(!E||I.has(vt))return;const z=Me.current+1;Me.current=z,q(be=>{const he=new Set(be);return he.add(vt),he}),N({parentId:null,search:""}).then(be=>{Me.current===z&&X(he=>{const Se=new Map(he);return Se.set(vt,be.nodes),Se})}).finally(()=>{Me.current===z&&q(be=>{const he=new Set(be);return he.delete(vt),he})})},[E,N,I]),g.useEffect(()=>{const z=window.setTimeout(()=>A(O.trim()),v);return()=>window.clearTimeout(z)},[O,v]),g.useEffect(()=>{if(!E||!o)return;if(!R){V(new Set),K(new Set);return}const z=se.current+1;se.current=z,ee(!0),o(R).then(be=>{if(se.current!==z)return;const he=new Set,Se=new Set,Re=new Map;for(const Ze of be.matches){he.add(Ze.node.value);const Pe=[...Ze.path,Ze.node];for(let Ne=0;Ne<Pe.length-1;Ne++){const ht=Pe[Ne],pt=Pe[Ne+1];Se.add(ht.value);const Xe=ht.value;Re.has(Xe)||Re.set(Xe,new Map),Re.get(Xe).set(pt.value,pt)}if(Pe.length>0){const Ne=Pe[0];Re.has(vt)||Re.set(vt,new Map),Re.get(vt).set(Ne.value,Ne)}}V(he),K(Se),X(Ze=>{const Pe=new Map(Ze);return Re.forEach((Ne,ht)=>{const pt=Pe.get(ht)??[],Xe=new Map;pt.forEach(nt=>Xe.set(nt.value,nt)),Ne.forEach((nt,Zn)=>Xe.set(Zn,nt)),Pe.set(ht,Array.from(Xe.values()))}),Pe})}).finally(()=>{se.current===z&&ee(!1)})},[R,E,o]);const $=g.useCallback(z=>{D(z),z||(T(""),A(""),fe(null),V(new Set),K(new Set))},[]),de=g.useCallback(z=>{const be=z.value;I.has(be)||P.has(be)||(q(he=>{const Se=new Set(he);return Se.add(be),Se}),N({parentId:z.value,search:""}).then(he=>{X(Se=>{const Re=new Map(Se),Ze=Re.get(be)??[],Pe=new Map;return Ze.forEach(Ne=>Pe.set(Ne.value,Ne)),he.nodes.forEach(Ne=>Pe.set(Ne.value,Ne)),Re.set(be,Array.from(Pe.values())),Re})}).finally(()=>{q(he=>{const Se=new Set(he);return Se.delete(be),Se})}))},[I,N,P]),ke=g.useCallback(z=>{G(be=>{const he=new Set(be);return he.has(z.value)?he.delete(z.value):(he.add(z.value),de(z)),he})},[de]),Oe=g.useCallback(z=>{fe(z)},[]),ce=g.useCallback(()=>{C&&(!re||re.hasChildren===!0)||(re&&s?.(re),$(!1))},[$,C,s,re]),De=g.useCallback(z=>W.has(z)||j.has(z),[W,j]),mt=g.useCallback(z=>{if(!R||o)return z;const be=R.toLowerCase();return z.filter(he=>he.label.toLowerCase().includes(be))},[R,o]),Vn=(z,be)=>{const he=z.value,Se=I.get(he),Re=De(z.value),Ze=P.has(he),Pe=re?.value===z.value,Ne=e?.value===z.value,ht=ve.has(z.value),pt=Re&&Se&&Se.length>0,Xe=pt?mt(Se):[];return c.jsxs(g.Fragment,{children:[c.jsxs("div",{className:M(pe.row,{[pe.row_active]:Pe||Ne,[pe.row_match]:ht}),style:{paddingLeft:16+be*20},onClick:()=>Oe(z),children:[z.hasChildren?c.jsx("button",{type:"button",className:M(pe.chevron,{[pe.chevronExpanded]:Re}),onClick:nt=>{nt.stopPropagation(),ke(z)},"aria-label":Re?"Свернуть":"Раскрыть",children:c.jsx(dt,{})}):c.jsx("span",{className:pe.chevronPlaceholder}),c.jsx("span",{className:pe.nodeLabel,children:S?S(z):z.label}),Ze&&c.jsx(Ue,{size:"extraSmall",className:pe.nodeSpinner})]}),pt&&Xe.map(nt=>Vn(nt,be+1))]},String(z.value))},qn=I.get(vt)??[],Gn=mt(qn),qt=P.has(vt),zr=e?k?k(e):e.label:t,Hr=!qt&&!ne&&Gn.length===0,Un=g.useMemo(()=>ne||qt&&!!R,[ne,qt,R]),hn=!re||C&&re.hasChildren===!0;return c.jsxs("div",{className:M(pe.wrapper,w),children:[i&&c.jsx(Lt,{htmlFor:"TreeDialogSelectInput",tooltipContent:l,tooltipPopperClassName:u,children:i}),c.jsxs("div",{id:"TreeDialogSelectInput",role:"button",tabIndex:_?-1:0,className:M(pe.input,{[pe.disabled]:_,[pe.error]:y},x),onClick:()=>!_&&$(!0),onKeyDown:z=>{!_&&(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),$(!0))},children:[c.jsx("span",{className:M(pe.selectedOption,{[pe.placeholder]:!e}),children:zr}),c.jsxs("span",{className:pe.actions,children:[a&&e&&c.jsx(xe,{variant:"text",className:pe.clearButton,"aria-label":"Очистить выбранное значение",onClick:z=>{z.stopPropagation(),a()},children:c.jsx(ct,{})}),c.jsx(xe,{variant:"link",className:pe.selectButton,disabled:_,onClick:z=>{z.stopPropagation(),$(!0)},children:p})]})]}),c.jsx(Wr,{open:E,onOpenChange:$,children:c.jsxs(Wn,{className:pe.dialogContent,children:[c.jsx($n,{className:pe.dialogHeader,children:c.jsx(Fn,{className:pe.dialogTitle,children:f})}),c.jsxs("div",{className:pe.search,children:[c.jsx(xr,{className:pe.searchIcon}),c.jsx("input",{className:pe.searchInput,value:O,onChange:z=>T(z.target.value),placeholder:m,autoFocus:!0}),Un&&c.jsx(Ue,{size:"extraSmall",className:pe.searchSpinner})]}),c.jsx("div",{className:pe.treeContainer,children:qt&&qn.length===0?c.jsx("div",{className:pe.loadingState,children:c.jsx(Ue,{size:"small"})}):Hr?c.jsx("div",{className:pe.emptyState,children:c.jsx(It,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})}):Gn.map(z=>Vn(z,0))}),c.jsxs($r,{className:pe.dialogFooter,children:[c.jsx(xe,{variant:"secondary",onClick:()=>$(!1),children:h}),c.jsx(xe,{variant:"primary",disabled:hn,onClick:ce,children:b})]})]})}),y&&c.jsx(Ct,{children:y})]})},iv="_wrapper_1wain_1",cv="_tabs_1wain_6",lv="_tabItem_1wain_16",dv="_active_1wain_46",uv="_before_1wain_61",fv="_after_1wain_62",mv="_panel_1wain_101",_t={wrapper:iv,tabs:cv,tabItem:lv,active:dv,before:uv,after:fv,panel:mv};function hv(e){return e.map((t,n)=>{if("value"in t&&"label"in t)return{key:t.value,label:t.label,className:t.className,needNotification:t.needNotification,header:t.header};const r=t;return{key:n,label:r.title,className:r.className,needNotification:r.needNotification,header:r.header}})}const pv=d.memo(({className:e,items:t=[],children:n,value:r,onValueChange:o,activeTab:s,onClick:a,tabsClassName:i})=>{const l=g.useMemo(()=>hv(t),[t]),u=g.useMemo(()=>{if(r!==void 0){const f=l.findIndex(m=>m.key===r);return f>=0?f:0}return s??0},[r,s,l]);return c.jsxs("div",{className:M(_t.wrapper,e),children:[c.jsx("div",{className:M(_t.tabs,i),children:l.map((f,m)=>f.label&&c.jsxs("div",{className:M(_t.tabItem,f.className,{[_t.active]:u===m,[_t.first]:m===0,[_t.last]:m===l.length-1}),style:{zIndex:u===m?l.length:m===0?0:l.length-m},onClick:p=>{p.stopPropagation(),o?o(f.key):a?.(m)},children:[u===m&&m!==0&&c.jsx("span",{className:_t.before}),f.label,u===m&&m!==l.length-1&&c.jsx("span",{className:_t.after})]},m))}),c.jsx("div",{className:_t.panel,children:n})]})}),gv="_wrapper_16x9i_1",vv="_wrapper_withLabels_16x9i_8",_v="_column_16x9i_12",bv="_step_16x9i_23",yv="_clickable_16x9i_46",wv="_step_inactive_16x9i_53",xv="_step_current_16x9i_58",Cv="_connector_16x9i_62",kv="_connector_placeholder_16x9i_71",Sv="_connectorFloating_16x9i_76",Nv="_connector_active_16x9i_85",Ev="_labelWrap_16x9i_89",jv="_label_16x9i_89",Mv="_label_active_16x9i_104",Le={wrapper:gv,wrapper_withLabels:vv,column:_v,step:bv,clickable:yv,step_inactive:wv,step_current:xv,connector:Cv,connector_placeholder:kv,connectorFloating:Sv,connector_active:Nv,labelWrap:Ev,label:jv,label_active:Mv},Ov=32,ta=Ov/2,Dv=e=>e.slice(0,-1).map((t,n)=>{const r=t+ta,o=e[n+1]-ta;return{left:r,width:Math.max(0,o-r)}}),Rv=({items:e,current:t,onChange:n,showCheckOnCompleted:r=!1,className:o})=>{const s=!!n,a=e.some(p=>!!p.label),i=g.useRef(null),l=g.useRef([]),[u,f]=g.useState([]);g.useLayoutEffect(()=>{if(!a||e.length<2){f([]);return}const p=()=>{const b=i.current;if(!b)return;const v=b.getBoundingClientRect(),_=[];for(const y of l.current.slice(0,e.length)){if(!y)return;const w=y.getBoundingClientRect();_.push(w.left-v.left+w.width/2)}f(Dv(_))};if(p(),typeof ResizeObserver>"u")return;const h=new ResizeObserver(p);return i.current&&h.observe(i.current),l.current.forEach(b=>{b&&h.observe(b)}),()=>h.disconnect()},[a,e.length]);const m=(p,h)=>c.jsxs(c.Fragment,{children:[c.jsx("span",{className:M(Le.connector,{[Le.connector_active]:h,[Le.connector_placeholder]:a})}),a?c.jsx("span",{className:M(Le.connectorFloating,{[Le.connector_active]:h}),style:{left:`${u[p]?.left??0}px`,width:`${u[p]?.width??0}px`}}):null]});return c.jsx("div",{ref:i,className:M(Le.wrapper,o,{[Le.wrapper_withLabels]:a}),role:"list",children:e.map((p,h)=>{const b=h<t,v=h===t,_=h<=t,y=h===e.length-1,w=r&&b,x=p.content??(w?c.jsx(Ro,{}):h+1),k=c.jsx("button",{type:"button",ref:S=>{l.current[h]=S},className:M(Le.step,{[Le.step_inactive]:!_,[Le.step_current]:v,[Le.clickable]:s}),disabled:!s,onClick:()=>n?.(h),"aria-current":v?"step":void 0,"aria-label":typeof p.label=="string"?p.label:`Шаг ${h+1}`,children:x});return c.jsxs(g.Fragment,{children:[c.jsxs("div",{className:Le.column,role:"listitem",children:[k,p.label?c.jsx("div",{className:Le.labelWrap,children:c.jsx("span",{className:M(Le.label,{[Le.label_active]:_}),children:p.label})}):null]}),!y&&m(h,h<t)]},h)})})},Pv="_container_1whkx_1",Tv="_tabs_1whkx_4",Av="_line_1whkx_11",Iv="_tabItem_1whkx_21",Lv="_header_1whkx_34",Wv="_notificationChanges_1whkx_42",$v="_tabs_hasAnimatedIndicator_1whkx_61",Fv="_active_1whkx_64",Et={container:Pv,tabs:Tv,line:Av,tabItem:Iv,header:Lv,notificationChanges:Wv,tabs_hasAnimatedIndicator:$v,active:Fv};function Bv(e){return e.map((t,n)=>{if("value"in t&&"label"in t)return{key:t.value,label:t.label,className:t.className,header:t.header};const r=t;return{key:n,label:r.title,className:r.className,header:r.header}})}const zv=d.memo(({items:e=[],value:t,onValueChange:n,activeTab:r,className:o,tabsClassName:s,changesIndex:a,badgeValue:i,sliderClassName:l,onClick:u})=>{const f=g.useMemo(()=>Bv(e),[e]),m=g.useMemo(()=>{if(t!==void 0){const _=f.findIndex(y=>y.key===t);return _>=0?_:0}return r!==void 0?r:0},[t,r,f]),p=g.useRef(null),h=g.useRef(null),[b,v]=g.useState({left:0,width:0});return g.useEffect(()=>{const _=p.current;if(!_)return;const y=()=>{const k={left:_.offsetLeft||0,width:_.clientWidth||0};v(S=>S.left===k.left&&S.width===k.width?S:k)},w=()=>{h.current!==null&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(()=>{h.current=null,y()})};w();const x=new ResizeObserver(()=>{w()});return x.observe(_),()=>{x.disconnect(),h.current!==null&&(cancelAnimationFrame(h.current),h.current=null)}},[m]),c.jsx("div",{className:M(Et.container,o),children:c.jsxs("div",{className:M(Et.tabs,Et.tabs_hasAnimatedIndicator,s),children:[f.map((_,y)=>_.label&&c.jsxs("div",{ref:m===y?p:void 0,className:M(Et.tabItem,_.className,{[Et.active]:m===y}),onClick:w=>{w.stopPropagation(),n?n(_.key):u?.(y)},children:[_.header&&c.jsx("div",{className:Et.header,children:_.header}),_.label,a===y&&c.jsx("div",{className:Et.notificationChanges,children:i!=null?i>99?"99+":String(i):null})]},y)),c.jsx("div",{className:M(Et.line,l),style:{left:b.left,width:b.width}})]})})}),Hv="_wrapper_rkn19_1",Yv="_container_rkn19_6",Vv="_input_rkn19_10",qv="_error_rkn19_45",Gv="_disabled_rkn19_51",gn={wrapper:Hv,container:Yv,input:Vv,error:qv,disabled:Gv},Tc=g.forwardRef(({label:e,error:t,disabled:n,className:r,inputClassName:o,tooltipContent:s,tooltipPopperClassName:a,id:i,...l},u)=>{const f=g.useId(),m=i??f;return c.jsxs("div",{className:M(gn.wrapper,r),children:[e&&c.jsx(Lt,{htmlFor:m,tooltipContent:s,tooltipPopperClassName:a,children:e}),c.jsx("div",{className:gn.container,children:c.jsx("input",{ref:u,id:m,disabled:n,"aria-invalid":t?!0:void 0,className:M(gn.input,{[gn.disabled]:n,[gn.error]:!!t},o),...l})}),t&&c.jsx(Ct,{children:t})]})});Tc.displayName="Input";const Uv="_wrapper_10aju_1",Zv="_container_10aju_6",Xv="_textarea_10aju_10",Kv="_error_10aju_46",Qv="_disabled_10aju_52",vn={wrapper:Uv,container:Zv,textarea:Xv,error:Kv,disabled:Qv},Ac=g.forwardRef(({label:e,error:t,hint:n,hintVariant:r,disabled:o,className:s,textareaClassName:a,tooltipContent:i,tooltipPopperClassName:l,id:u,...f},m)=>{const p=g.useId(),h=u??p;return c.jsxs("div",{className:M(vn.wrapper,s),children:[e&&c.jsx(Lt,{htmlFor:h,tooltipContent:i,tooltipPopperClassName:l,children:e}),c.jsx("div",{className:vn.container,children:c.jsx("textarea",{ref:m,id:h,disabled:o,"aria-invalid":t?!0:void 0,className:M(vn.textarea,{[vn.disabled]:o,[vn.error]:!!t},a),...f})}),t&&c.jsx(Ct,{children:t}),!t&&n&&c.jsx(Ct,{variant:r??"neutral",children:n})]})});Ac.displayName="Textarea";function Jv(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const e2={},wn={};function zt(e,t){try{const r=(e2[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in wn?wn[r]:na(r,r.split(":"))}catch{if(e in wn)return wn[e];const n=e?.match(t2);return n?na(e,n.slice(1)):NaN}}const t2=/([+-]\d\d):?(\d\d)?/;function na(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return wn[e]=n*60+r>0?n*60+r+o:n*60-r-o}class it extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(zt(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),Ic(this),Mo(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new it(...n,t):new it(Date.now(),t)}withTimeZone(t){return new it(+this,t)}getTimezoneOffset(){const t=-zt(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Mo(this),+this}[Symbol.for("constructDateFrom")](t){return new it(+new Date(t),this.timeZone)}}const ra=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!ra.test(e))return;const t=e.replace(ra,"$1UTC");it.prototype[t]&&(e.startsWith("get")?it.prototype[e]=function(){return this.internal[t]()}:(it.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),n2(this),+this},it.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Mo(this),+this}))});function Mo(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-zt(e.timeZone,e)*60))}function n2(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Ic(e)}function Ic(e){const t=zt(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),s=-new Date(+r).getTimezoneOffset(),a=o-s,i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const l=o-n;l&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);const u=new Date(+e);u.setUTCSeconds(0);const f=o>0?u.getSeconds():(u.getSeconds()-60)%60,m=Math.round(-(zt(e.timeZone,e)*60))%60;(m||f)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+m),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+m+f));const p=zt(e.timeZone,e),h=p>0?Math.floor(p):Math.ceil(p),v=-new Date(+e).getTimezoneOffset()-h,_=h!==n,y=v-l;if(_&&y){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+y);const w=zt(e.timeZone,e),x=w>0?Math.floor(w):Math.ceil(w),k=h-x;k&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+k),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+k))}}class Te extends it{static tz(t,...n){return n.length?new Te(...n,t):new Te(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${Jv(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new Te(+this,t)}[Symbol.for("constructDateFrom")](t){return new Te(+new Date(t),this.timeZone)}}const Lc=6048e5,r2=864e5,oa=Symbol.for("constructDateFrom");function Ce(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&oa in e?e[oa](t):e instanceof Date?new e.constructor(t):new Date(t)}function ge(e,t){return Ce(t||e,e)}function Wc(e,t,n){const r=ge(e,n?.in);return isNaN(t)?Ce(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function $c(e,t,n){const r=ge(e,n?.in);if(isNaN(t))return Ce(e,NaN);if(!t)return r;const o=r.getDate(),s=Ce(e,r.getTime());s.setMonth(r.getMonth()+t+1,0);const a=s.getDate();return o>=a?s:(r.setFullYear(s.getFullYear(),s.getMonth(),o),r)}let o2={};function Bn(){return o2}function cn(e,t){const n=Bn(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=ge(e,t?.in),s=o.getDay(),a=(s<r?7:0)+s-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function On(e,t){return cn(e,{...t,weekStartsOn:1})}function Fc(e,t){const n=ge(e,t?.in),r=n.getFullYear(),o=Ce(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const s=On(o),a=Ce(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const i=On(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function sa(e){const t=ge(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function un(e,...t){const n=Ce.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Dn(e,t){const n=ge(e,t?.in);return n.setHours(0,0,0,0),n}function rs(e,t,n){const[r,o]=un(n?.in,e,t),s=Dn(r),a=Dn(o),i=+s-sa(s),l=+a-sa(a);return Math.round((i-l)/r2)}function s2(e,t){const n=Fc(e,t),r=Ce(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),On(r)}function a2(e,t,n){return Wc(e,t*7,n)}function i2(e,t,n){return $c(e,t*12,n)}function c2(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ce.bind(null,o));const s=ge(o,r);(!n||n<s||isNaN(+s))&&(n=s)}),Ce(r,n||NaN)}function l2(e,t){let n,r=t?.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Ce.bind(null,o));const s=ge(o,r);(!n||n>s||isNaN(+s))&&(n=s)}),Ce(r,n||NaN)}function d2(e,t,n){const[r,o]=un(n?.in,e,t);return+Dn(r)==+Dn(o)}function Bc(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function u2(e){return!(!Bc(e)&&typeof e!="number"||isNaN(+ge(e)))}function zc(e,t,n){const[r,o]=un(n?.in,e,t),s=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return s*12+a}function f2(e,t){const n=ge(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Hc(e,t){const[n,r]=un(e,t.start,t.end);return{start:n,end:r}}function m2(e,t){const{start:n,end:r}=Hc(t?.in,e);let o=+n>+r;const s=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setDate(1);let i=1;const l=[];for(;+a<=s;)l.push(Ce(n,a)),a.setMonth(a.getMonth()+i);return o?l.reverse():l}function h2(e,t){const n=ge(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function p2(e,t){const n=ge(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Yc(e,t){const n=ge(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function g2(e,t){const{start:n,end:r}=Hc(t?.in,e);let o=+n>+r;const s=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setMonth(0,1);let i=1;const l=[];for(;+a<=s;)l.push(Ce(n,a)),a.setFullYear(a.getFullYear()+i);return o?l.reverse():l}function Vc(e,t){const n=Bn(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=ge(e,t?.in),s=o.getDay(),a=(s<r?-7:0)+6-(s-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function v2(e,t){return Vc(e,{...t,weekStartsOn:1})}const _2={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},b2=(e,t,n)=>{let r;const o=_2[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function uo(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const y2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},w2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},x2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},C2={date:uo({formats:y2,defaultWidth:"full"}),time:uo({formats:w2,defaultWidth:"full"}),dateTime:uo({formats:x2,defaultWidth:"full"})},k2={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},S2=(e,t,n,r)=>k2[e];function _n(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):a;o=e.formattingValues[i]||e.formattingValues[a]}else{const a=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;o=e.values[i]||e.values[a]}const s=e.argumentCallback?e.argumentCallback(t):t;return o[s]}}const N2={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},E2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},j2={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},M2={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},O2={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},D2={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},R2=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},P2={ordinalNumber:R2,era:_n({values:N2,defaultWidth:"wide"}),quarter:_n({values:E2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:_n({values:j2,defaultWidth:"wide"}),day:_n({values:M2,defaultWidth:"wide"}),dayPeriod:_n({values:O2,defaultWidth:"wide",formattingValues:D2,defaultFormattingWidth:"wide"})};function bn(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(o);if(!s)return null;const a=s[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?A2(i,m=>m.test(a)):T2(i,m=>m.test(a));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(a.length);return{value:u,rest:f}}}function T2(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function A2(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function I2(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;const i=t.slice(o.length);return{value:a,rest:i}}}const L2=/^(\d+)(th|st|nd|rd)?/i,W2=/\d+/i,$2={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},F2={any:[/^b/i,/^(a|c)/i]},B2={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},z2={any:[/1/i,/2/i,/3/i,/4/i]},H2={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Y2={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},V2={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},q2={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},G2={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},U2={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Z2={ordinalNumber:I2({matchPattern:L2,parsePattern:W2,valueCallback:e=>parseInt(e,10)}),era:bn({matchPatterns:$2,defaultMatchWidth:"wide",parsePatterns:F2,defaultParseWidth:"any"}),quarter:bn({matchPatterns:B2,defaultMatchWidth:"wide",parsePatterns:z2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:bn({matchPatterns:H2,defaultMatchWidth:"wide",parsePatterns:Y2,defaultParseWidth:"any"}),day:bn({matchPatterns:V2,defaultMatchWidth:"wide",parsePatterns:q2,defaultParseWidth:"any"}),dayPeriod:bn({matchPatterns:G2,defaultMatchWidth:"any",parsePatterns:U2,defaultParseWidth:"any"})},Jt={code:"en-US",formatDistance:b2,formatLong:C2,formatRelative:S2,localize:P2,match:Z2,options:{weekStartsOn:0,firstWeekContainsDate:1}};function X2(e,t){const n=ge(e,t?.in);return rs(n,Yc(n))+1}function os(e,t){const n=ge(e,t?.in),r=+On(n)-+s2(n);return Math.round(r/Lc)+1}function qc(e,t){const n=ge(e,t?.in),r=n.getFullYear(),o=Bn(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=Ce(t?.in||e,0);a.setFullYear(r+1,0,s),a.setHours(0,0,0,0);const i=cn(a,t),l=Ce(t?.in||e,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const u=cn(l,t);return+n>=+i?r+1:+n>=+u?r:r-1}function K2(e,t){const n=Bn(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=qc(e,t),s=Ce(t?.in||e,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),cn(s,t)}function ss(e,t){const n=ge(e,t?.in),r=+cn(n,t)-+K2(n,t);return Math.round(r/Lc)+1}function me(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const jt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return me(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):me(n+1,2)},d(e,t){return me(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return me(e.getHours()%12||12,t.length)},H(e,t){return me(e.getHours(),t.length)},m(e,t){return me(e.getMinutes(),t.length)},s(e,t){return me(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return me(o,t.length)}},Kt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},aa={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return jt.y(e,t)},Y:function(e,t,n,r){const o=qc(e,r),s=o>0?o:1-o;if(t==="YY"){const a=s%100;return me(a,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):me(s,t.length)},R:function(e,t){const n=Fc(e);return me(n,t.length)},u:function(e,t){const n=e.getFullYear();return me(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return me(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return me(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return jt.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return me(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=ss(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):me(o,t.length)},I:function(e,t,n){const r=os(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):me(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):jt.d(e,t)},D:function(e,t,n){const r=X2(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):me(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return me(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),s=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return me(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return me(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Kt.noon:r===0?o=Kt.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Kt.evening:r>=12?o=Kt.afternoon:r>=4?o=Kt.morning:o=Kt.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return jt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):jt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):me(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):me(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):jt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):jt.s(e,t)},S:function(e,t){return jt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return ca(r);case"XXXX":case"XX":return Bt(r);default:return Bt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return ca(r);case"xxxx":case"xx":return Bt(r);default:return Bt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ia(r,":");default:return"GMT"+Bt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ia(r,":");default:return"GMT"+Bt(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return me(r,t.length)},T:function(e,t,n){return me(+e,t.length)}};function ia(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),s=r%60;return s===0?n+String(o):n+String(o)+t+me(s,2)}function ca(e,t){return e%60===0?(e>0?"-":"+")+me(Math.abs(e)/60,2):Bt(e,t)}function Bt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=me(Math.trunc(r/60),2),s=me(r%60,2);return n+o+t+s}const la=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Gc=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Q2=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return la(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",la(r,t)).replace("{{time}}",Gc(o,t))},J2={p:Gc,P:Q2},e_=/^D+$/,t_=/^Y+$/,n_=["D","DD","YY","YYYY"];function r_(e){return e_.test(e)}function o_(e){return t_.test(e)}function s_(e,t,n){const r=a_(e,t,n);if(console.warn(r),n_.includes(e))throw new RangeError(r)}function a_(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const i_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,c_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,l_=/^'([^]*?)'?$/,d_=/''/g,u_=/[a-zA-Z]/;function xn(e,t,n){const r=Bn(),o=n?.locale??r.locale??Jt,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=ge(e,n?.in);if(!u2(i))throw new RangeError("Invalid time value");let l=t.match(c_).map(f=>{const m=f[0];if(m==="p"||m==="P"){const p=J2[m];return p(f,o.formatLong)}return f}).join("").match(i_).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const m=f[0];if(m==="'")return{isToken:!1,value:f_(f)};if(aa[m])return{isToken:!0,value:f};if(m.match(u_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:f}});o.localize.preprocessor&&(l=o.localize.preprocessor(i,l));const u={firstWeekContainsDate:s,weekStartsOn:a,locale:o};return l.map(f=>{if(!f.isToken)return f.value;const m=f.value;(!n?.useAdditionalWeekYearTokens&&o_(m)||!n?.useAdditionalDayOfYearTokens&&r_(m))&&s_(m,t,String(e));const p=aa[m[0]];return p(i,m,o.localize,u)}).join("")}function f_(e){const t=e.match(l_);return t?t[1].replace(d_,"'"):e}function m_(e,t){const n=ge(e,t?.in),r=n.getFullYear(),o=n.getMonth(),s=Ce(n,0);return s.setFullYear(r,o+1,0),s.setHours(0,0,0,0),s.getDate()}function h_(e,t){return ge(e,t?.in).getMonth()}function p_(e,t){return ge(e,t?.in).getFullYear()}function g_(e,t){return+ge(e)>+ge(t)}function v_(e,t){return+ge(e)<+ge(t)}function __(e,t,n){const[r,o]=un(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function b_(e,t,n){const[r,o]=un(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function y_(e,t,n){const r=ge(e,n?.in),o=r.getFullYear(),s=r.getDate(),a=Ce(e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const i=m_(a);return r.setMonth(t,Math.min(s,i)),r}function w_(e,t,n){const r=ge(e,n?.in);return isNaN(+r)?Ce(e,NaN):(r.setFullYear(t),r)}const da=5,x_=4;function C_(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),s=t.addDays(o,da*7-1);return t.getMonth(e)===t.getMonth(s)?da:x_}function Uc(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function k_(e,t){const n=Uc(e,t),r=C_(e,t);return t.addDays(n,r*7-1)}const Zc={...Jt,labels:{labelDayButton:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,i)=>xn(a,i,{locale:Jt,...n});let s=o(e,"PPPP");return t.today&&(s=`Today, ${s}`),t.selected&&(s=`${s}, selected`),s},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,s)=>xn(o,s,{locale:Jt,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,i)=>xn(a,i,{locale:Jt,...n});let s=o(e,"PPPP");return t?.today&&(s=`Today, ${s}`),s},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,s)=>xn(o,s,{locale:Jt,...t}),r(e,"cccc")}}};class Ve{constructor(t,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?Te.tz(this.options.timeZone):new this.Date,this.newDate=(r,o,s)=>this.overrides?.newDate?this.overrides.newDate(r,o,s):this.options.timeZone?new Te(r,o,s,this.options.timeZone):new Date(r,o,s),this.addDays=(r,o)=>this.overrides?.addDays?this.overrides.addDays(r,o):Wc(r,o),this.addMonths=(r,o)=>this.overrides?.addMonths?this.overrides.addMonths(r,o):$c(r,o),this.addWeeks=(r,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,o):a2(r,o),this.addYears=(r,o)=>this.overrides?.addYears?this.overrides.addYears(r,o):i2(r,o),this.differenceInCalendarDays=(r,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):rs(r,o),this.differenceInCalendarMonths=(r,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):zc(r,o),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):m2(r),this.eachYearOfInterval=r=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):g2(r),s=new Set(o.map(i=>this.getYear(i)));if(s.size===o.length)return o;const a=[];return s.forEach(i=>{a.push(new Date(i,0,1))}),a},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):k_(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):v2(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):f2(r),this.endOfWeek=(r,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,o):Vc(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):p2(r),this.format=(r,o,s)=>{const a=this.overrides?.format?this.overrides.format(r,o,this.options):xn(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(a):a},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):os(r),this.getMonth=(r,o)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):h_(r,this.options),this.getYear=(r,o)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):p_(r,this.options),this.getWeek=(r,o)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):ss(r,this.options),this.isAfter=(r,o)=>this.overrides?.isAfter?this.overrides.isAfter(r,o):g_(r,o),this.isBefore=(r,o)=>this.overrides?.isBefore?this.overrides.isBefore(r,o):v_(r,o),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):Bc(r),this.isSameDay=(r,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,o):d2(r,o),this.isSameMonth=(r,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,o):__(r,o),this.isSameYear=(r,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,o):b_(r,o),this.max=r=>this.overrides?.max?this.overrides.max(r):c2(r),this.min=r=>this.overrides?.min?this.overrides.min(r):l2(r),this.setMonth=(r,o)=>this.overrides?.setMonth?this.overrides.setMonth(r,o):y_(r,o),this.setYear=(r,o)=>this.overrides?.setYear?this.overrides.setYear(r,o):w_(r,o),this.startOfBroadcastWeek=(r,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):Uc(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):Dn(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):On(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):h2(r),this.startOfWeek=(r,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):cn(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):Yc(r),this.options={locale:Zc,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){const t=this.options.locale?.code;return t&&Ve.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:o}=this.options,s=n?.code;if(s&&Ve.yearFirstLocales.has(s))try{return new Intl.DateTimeFormat(s,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(t)}catch{}const a=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,a)}}Ve.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const ft=new Ve;class Xc{constructor(t,n,r=ft){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class S_{constructor(t,n){this.date=t,this.weeks=n}}class N_{constructor(t,n){this.days=n,this.weekNumber=t}}function E_(e){return g.createElement("button",{...e})}function j_(e){return g.createElement("span",{...e})}function M_(e){const{size:t=24,orientation:n="left",className:r}=e;return g.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&g.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&g.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&g.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&g.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function O_(e){const{day:t,modifiers:n,...r}=e;return g.createElement("td",{...r})}function D_(e){const{day:t,modifiers:n,...r}=e,o=g.useRef(null);return g.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),g.createElement("button",{ref:o,...r})}var H;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(H||(H={}));var ye;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(ye||(ye={}));var Je;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Je||(Je={}));var ze;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(ze||(ze={}));function R_(e){const{options:t,className:n,components:r,classNames:o,...s}=e,a=[o[H.Dropdown],n].join(" "),i=t?.find(({value:l})=>l===s.value);return g.createElement("span",{"data-disabled":s.disabled,className:o[H.DropdownRoot]},g.createElement(r.Select,{className:a,...s},t?.map(({value:l,label:u,disabled:f})=>g.createElement(r.Option,{key:l,value:l,disabled:f},u))),g.createElement("span",{className:o[H.CaptionLabel],"aria-hidden":!0},i?.label,g.createElement(r.Chevron,{orientation:"down",size:18,className:o[H.Chevron]})))}function P_(e){return g.createElement("div",{...e})}function T_(e){return g.createElement("div",{...e})}function A_(e){const{calendarMonth:t,displayIndex:n,...r}=e;return g.createElement("div",{...r},e.children)}function I_(e){const{calendarMonth:t,displayIndex:n,...r}=e;return g.createElement("div",{...r})}function L_(e){return g.createElement("table",{...e})}function W_(e){return g.createElement("div",{...e})}const Kc=g.createContext(void 0);function zn(){const e=g.useContext(Kc);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function $_(e){const{components:t}=zn();return g.createElement(t.Dropdown,{...e})}function F_(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...s}=e,{components:a,classNames:i,labels:{labelPrevious:l,labelNext:u}}=zn(),f=g.useCallback(p=>{o&&n?.(p)},[o,n]),m=g.useCallback(p=>{r&&t?.(p)},[r,t]);return g.createElement("nav",{...s},g.createElement(a.PreviousMonthButton,{type:"button",className:i[H.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":l(r),onClick:m},g.createElement(a.Chevron,{disabled:r?void 0:!0,className:i[H.Chevron],orientation:"left"})),g.createElement(a.NextMonthButton,{type:"button",className:i[H.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":u(o),onClick:f},g.createElement(a.Chevron,{disabled:o?void 0:!0,orientation:"right",className:i[H.Chevron]})))}function B_(e){const{components:t}=zn();return g.createElement(t.Button,{...e})}function z_(e){return g.createElement("option",{...e})}function H_(e){const{components:t}=zn();return g.createElement(t.Button,{...e})}function Y_(e){const{rootRef:t,...n}=e;return g.createElement("div",{...n,ref:t})}function V_(e){return g.createElement("select",{...e})}function q_(e){const{week:t,...n}=e;return g.createElement("tr",{...n})}function G_(e){return g.createElement("th",{...e})}function U_(e){return g.createElement("thead",{"aria-hidden":!0},g.createElement("tr",{...e}))}function Z_(e){const{week:t,...n}=e;return g.createElement("th",{...n})}function X_(e){return g.createElement("th",{...e})}function K_(e){return g.createElement("tbody",{...e})}function Q_(e){const{components:t}=zn();return g.createElement(t.Dropdown,{...e})}const J_=Object.freeze(Object.defineProperty({__proto__:null,Button:E_,CaptionLabel:j_,Chevron:M_,Day:O_,DayButton:D_,Dropdown:R_,DropdownNav:P_,Footer:T_,Month:A_,MonthCaption:I_,MonthGrid:L_,Months:W_,MonthsDropdown:$_,Nav:F_,NextMonthButton:B_,Option:z_,PreviousMonthButton:H_,Root:Y_,Select:V_,Week:q_,WeekNumber:Z_,WeekNumberHeader:X_,Weekday:G_,Weekdays:U_,Weeks:K_,YearsDropdown:Q_},Symbol.toStringTag,{value:"Module"}));function bt(e,t,n=!1,r=ft){let{from:o,to:s}=e;const{differenceInCalendarDays:a,isSameDay:i}=r;return o&&s?(a(s,o)<0&&([o,s]=[s,o]),a(t,o)>=(n?1:0)&&a(s,t)>=(n?1:0)):!n&&s?i(s,t):!n&&o?i(o,t):!1}function as(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Fr(e){return!!(e&&typeof e=="object"&&"from"in e)}function is(e){return!!(e&&typeof e=="object"&&"after"in e)}function cs(e){return!!(e&&typeof e=="object"&&"before"in e)}function Qc(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Jc(e,t){return Array.isArray(e)&&e.every(t.isDate)}function yt(e,t,n=ft){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:s,isAfter:a}=n;return r.some(i=>{if(typeof i=="boolean")return i;if(n.isDate(i))return o(e,i);if(Jc(i,n))return i.some(l=>o(e,l));if(Fr(i))return bt(i,e,!1,n);if(Qc(i))return Array.isArray(i.dayOfWeek)?i.dayOfWeek.includes(e.getDay()):i.dayOfWeek===e.getDay();if(as(i)){const l=s(i.before,e),u=s(i.after,e),f=l>0,m=u<0;return a(i.before,i.after)?m&&f:f||m}return is(i)?s(e,i.after)>0:cs(i)?s(i.before,e)>0:typeof i=="function"?i(e):!1})}function eb(e,t,n,r,o){const{disabled:s,hidden:a,modifiers:i,showOutsideDays:l,broadcastCalendar:u,today:f=o.today()}=t,{isSameDay:m,isSameMonth:p,startOfMonth:h,isBefore:b,endOfMonth:v,isAfter:_}=o,y=n&&h(n),w=r&&v(r),x={[ye.focused]:[],[ye.outside]:[],[ye.disabled]:[],[ye.hidden]:[],[ye.today]:[]},k={};for(const S of e){const{date:C,displayMonth:N}=S,E=!!(N&&!p(C,N)),D=!!(y&&b(C,y)),O=!!(w&&_(C,w)),T=!!(s&&yt(C,s,o)),R=!!(a&&yt(C,a,o))||D||O||!u&&!l&&E||u&&l===!1&&E,A=m(C,f);E&&x.outside.push(S),T&&x.disabled.push(S),R&&x.hidden.push(S),A&&x.today.push(S),i&&Object.keys(i).forEach(I=>{const X=i?.[I];X&&yt(C,X,o)&&(k[I]?k[I].push(S):k[I]=[S])})}return S=>{const C={[ye.focused]:!1,[ye.disabled]:!1,[ye.hidden]:!1,[ye.outside]:!1,[ye.today]:!1},N={};for(const E in x){const D=x[E];C[E]=D.some(O=>O===S)}for(const E in k)N[E]=k[E].some(D=>D===S);return{...C,...N}}}function tb(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[s])=>(n[s]?o.push(n[s]):t[ye[s]]?o.push(t[ye[s]]):t[Je[s]]&&o.push(t[Je[s]]),o),[t[H.Day]])}function nb(e){return{...J_,...e}}function rb(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function ls(){const e={};for(const t in H)e[H[t]]=`rdp-${H[t]}`;for(const t in ye)e[ye[t]]=`rdp-${ye[t]}`;for(const t in Je)e[Je[t]]=`rdp-${Je[t]}`;for(const t in ze)e[ze[t]]=`rdp-${ze[t]}`;return e}function el(e,t,n){return(n??new Ve(t)).formatMonthYear(e)}const ob=el;function sb(e,t,n){return(n??new Ve(t)).format(e,"d")}function ab(e,t=ft){return t.format(e,"LLLL")}function ib(e,t,n){return(n??new Ve(t)).format(e,"cccccc")}function cb(e,t=ft){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function lb(){return""}function tl(e,t=ft){return t.format(e,"yyyy")}const db=tl,ub=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:el,formatDay:sb,formatMonthCaption:ob,formatMonthDropdown:ab,formatWeekNumber:cb,formatWeekNumberHeader:lb,formatWeekdayName:ib,formatYearCaption:db,formatYearDropdown:tl},Symbol.toStringTag,{value:"Module"}));function fb(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...ub,...e}}function ds(e,t,n,r){let o=(r??new Ve(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const mb=ds;function us(e,t,n){return(n??new Ve(t)).formatMonthYear(e)}const hb=us;function nl(e,t,n,r){let o=(r??new Ve(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function rl(e){return"Choose the Month"}function ol(){return""}const pb="Go to the Next Month";function sl(e,t){return pb}function al(e){return"Go to the Previous Month"}function il(e,t,n){return(n??new Ve(t)).format(e,"cccc")}function cl(e,t){return`Week ${e}`}function ll(e){return"Week Number"}function dl(e){return"Choose the Year"}const gb=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:hb,labelDay:mb,labelDayButton:ds,labelGrid:us,labelGridcell:nl,labelMonthDropdown:rl,labelNav:ol,labelNext:sl,labelPrevious:al,labelWeekNumber:cl,labelWeekNumberHeader:ll,labelWeekday:il,labelYearDropdown:dl},Symbol.toStringTag,{value:"Module"})),Ke=(e,t,n)=>t||(n?typeof n=="function"?n:(...r)=>n:e);function vb(e,t){const n=t.locale?.labels??{};return{...gb,...e??{},labelDayButton:Ke(ds,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:Ke(rl,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:Ke(sl,e?.labelNext,n.labelNext),labelPrevious:Ke(al,e?.labelPrevious,n.labelPrevious),labelWeekNumber:Ke(cl,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Ke(dl,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:Ke(us,e?.labelGrid,n.labelGrid),labelGridcell:Ke(nl,e?.labelGridcell,n.labelGridcell),labelNav:Ke(ol,e?.labelNav,n.labelNav),labelWeekNumberHeader:Ke(ll,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Ke(il,e?.labelWeekday,n.labelWeekday)}}function _b(e,t,n,r,o){const{startOfMonth:s,startOfYear:a,endOfYear:i,eachMonthOfInterval:l,getMonth:u}=o;return l({start:a(e),end:i(e)}).map(p=>{const h=r.formatMonthDropdown(p,o),b=u(p),v=t&&p<s(t)||n&&p>s(n)||!1;return{value:b,label:h,disabled:v}})}function bb(e,t={},n={}){let r={...t?.[H.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n?.[o]}}),r}function yb(e,t,n,r){const o=r??e.today(),s=n?e.startOfBroadcastWeek(o,e):t?e.startOfISOWeek(o):e.startOfWeek(o),a=[];for(let i=0;i<7;i++){const l=e.addDays(s,i);a.push(l)}return a}function wb(e,t,n,r,o=!1){if(!e||!t)return;const{startOfYear:s,endOfYear:a,eachYearOfInterval:i,getYear:l}=r,u=s(e),f=a(t),m=i({start:u,end:f});return o&&m.reverse(),m.map(p=>{const h=n.formatYearDropdown(p,r);return{value:l(p),label:h,disabled:!1}})}function xb(e,t={}){const{weekStartsOn:n,locale:r}=t,o=n??r?.options?.weekStartsOn??0,s=i=>{const l=typeof i=="number"||typeof i=="string"?new Date(i):i;return new Te(l.getFullYear(),l.getMonth(),l.getDate(),12,0,0,e)},a=i=>{const l=s(i);return new Date(l.getFullYear(),l.getMonth(),l.getDate(),0,0,0,0)};return{today:()=>s(Te.tz(e)),newDate:(i,l,u)=>new Te(i,l,u,12,0,0,e),startOfDay:i=>s(i),startOfWeek:(i,l)=>{const u=s(i),f=l?.weekStartsOn??o,m=(u.getDay()-f+7)%7;return u.setDate(u.getDate()-m),u},startOfISOWeek:i=>{const l=s(i),u=(l.getDay()-1+7)%7;return l.setDate(l.getDate()-u),l},startOfMonth:i=>{const l=s(i);return l.setDate(1),l},startOfYear:i=>{const l=s(i);return l.setMonth(0,1),l},endOfWeek:(i,l)=>{const u=s(i),p=(((l?.weekStartsOn??o)+6)%7-u.getDay()+7)%7;return u.setDate(u.getDate()+p),u},endOfISOWeek:i=>{const l=s(i),u=(7-l.getDay())%7;return l.setDate(l.getDate()+u),l},endOfMonth:i=>{const l=s(i);return l.setMonth(l.getMonth()+1,0),l},endOfYear:i=>{const l=s(i);return l.setMonth(11,31),l},eachMonthOfInterval:i=>{const l=s(i.start),u=s(i.end),f=[],m=new Te(l.getFullYear(),l.getMonth(),1,12,0,0,e),p=u.getFullYear()*12+u.getMonth();for(;m.getFullYear()*12+m.getMonth()<=p;)f.push(new Te(m,e)),m.setMonth(m.getMonth()+1,1);return f},addDays:(i,l)=>{const u=s(i);return u.setDate(u.getDate()+l),u},addWeeks:(i,l)=>{const u=s(i);return u.setDate(u.getDate()+l*7),u},addMonths:(i,l)=>{const u=s(i);return u.setMonth(u.getMonth()+l),u},addYears:(i,l)=>{const u=s(i);return u.setFullYear(u.getFullYear()+l),u},eachYearOfInterval:i=>{const l=s(i.start),u=s(i.end),f=[],m=new Te(l.getFullYear(),0,1,12,0,0,e);for(;m.getFullYear()<=u.getFullYear();)f.push(new Te(m,e)),m.setFullYear(m.getFullYear()+1,0,1);return f},getWeek:(i,l)=>{const u=a(i);return ss(u,{weekStartsOn:l?.weekStartsOn??o,firstWeekContainsDate:l?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1})},getISOWeek:i=>{const l=a(i);return os(l)},differenceInCalendarDays:(i,l)=>{const u=a(i),f=a(l);return rs(u,f)},differenceInCalendarMonths:(i,l)=>{const u=a(i),f=a(l);return zc(u,f)}}}const Hn=e=>e instanceof HTMLElement?e:null,fo=e=>[...e.querySelectorAll("[data-animated-month]")??[]],Cb=e=>Hn(e.querySelector("[data-animated-month]")),mo=e=>Hn(e.querySelector("[data-animated-caption]")),ho=e=>Hn(e.querySelector("[data-animated-weeks]")),kb=e=>Hn(e.querySelector("[data-animated-nav]")),Sb=e=>Hn(e.querySelector("[data-animated-weekdays]"));function Nb(e,t,{classNames:n,months:r,focused:o,dateLib:s}){const a=g.useRef(null),i=g.useRef(r),l=g.useRef(!1);g.useLayoutEffect(()=>{const u=i.current;if(i.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||u.length===0||r.length!==u.length)return;const f=s.isSameMonth(r[0].date,u[0].date),m=s.isAfter(r[0].date,u[0].date),p=m?n[ze.caption_after_enter]:n[ze.caption_before_enter],h=m?n[ze.weeks_after_enter]:n[ze.weeks_before_enter],b=a.current,v=e.current.cloneNode(!0);if(v instanceof HTMLElement?(fo(v).forEach(x=>{if(!(x instanceof HTMLElement))return;const k=Cb(x);k&&x.contains(k)&&x.removeChild(k);const S=mo(x);S&&S.classList.remove(p);const C=ho(x);C&&C.classList.remove(h)}),a.current=v):a.current=null,l.current||f||o)return;const _=b instanceof HTMLElement?fo(b):[],y=fo(e.current);if(y?.every(w=>w instanceof HTMLElement)&&_&&_.every(w=>w instanceof HTMLElement)){l.current=!0,e.current.style.isolation="isolate";const w=kb(e.current);w&&(w.style.zIndex="1"),y.forEach((x,k)=>{const S=_[k];if(!S)return;x.style.position="relative",x.style.overflow="hidden";const C=mo(x);C&&C.classList.add(p);const N=ho(x);N&&N.classList.add(h);const E=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),w&&(w.style.zIndex=""),C&&C.classList.remove(p),N&&N.classList.remove(h),x.style.position="",x.style.overflow="",x.contains(S)&&x.removeChild(S)};S.style.pointerEvents="none",S.style.position="absolute",S.style.overflow="hidden",S.setAttribute("aria-hidden","true");const D=Sb(S);D&&(D.style.opacity="0");const O=mo(S);O&&(O.classList.add(m?n[ze.caption_before_exit]:n[ze.caption_after_exit]),O.addEventListener("animationend",E));const T=ho(S);T&&T.classList.add(m?n[ze.weeks_before_exit]:n[ze.weeks_after_exit]),x.insertBefore(S,x.firstChild)})}})}function Eb(e,t,n,r){const o=e[0],s=e[e.length-1],{ISOWeek:a,fixedWeeks:i,broadcastCalendar:l}=n??{},{addDays:u,differenceInCalendarDays:f,differenceInCalendarMonths:m,endOfBroadcastWeek:p,endOfISOWeek:h,endOfMonth:b,endOfWeek:v,isAfter:_,startOfBroadcastWeek:y,startOfISOWeek:w,startOfWeek:x}=r,k=l?y(o,r):a?w(o):x(o),S=l?p(s):a?h(b(s)):v(b(s)),C=t&&(l?p(t):a?h(t):v(t)),N=C&&_(S,C)?C:S,E=f(N,k),D=m(s,o)+1,O=[];for(let A=0;A<=E;A++){const I=u(k,A);O.push(I)}const R=(l?35:42)*D;if(i&&O.length<R){const A=R-O.length;for(let I=0;I<A;I++){const X=u(O[O.length-1],1);O.push(X)}}return O}function jb(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((s,a)=>s.concat(a.days.slice()),t.slice());return n.concat(o.slice())},t.slice())}function Mb(e,t,n,r){const{numberOfMonths:o=1}=n,s=[];for(let a=0;a<o;a++){const i=r.addMonths(e,a);if(t&&i>t)break;s.push(i)}return s}function ua(e,t,n,r){const{month:o,defaultMonth:s,today:a=r.today(),numberOfMonths:i=1}=e;let l=o||s||a;const{differenceInCalendarMonths:u,addMonths:f,startOfMonth:m}=r;if(n&&u(n,l)<i-1){const p=-1*(i-1);l=f(n,p)}return t&&u(l,t)<0&&(l=t),m(l)}function Ob(e,t,n,r){const{addDays:o,endOfBroadcastWeek:s,endOfISOWeek:a,endOfMonth:i,endOfWeek:l,getISOWeek:u,getWeek:f,startOfBroadcastWeek:m,startOfISOWeek:p,startOfWeek:h}=r,b=e.reduce((v,_)=>{const y=n.broadcastCalendar?m(_,r):n.ISOWeek?p(_):h(_),w=n.broadcastCalendar?s(_):n.ISOWeek?a(i(_)):l(i(_)),x=t.filter(N=>N>=y&&N<=w),k=n.broadcastCalendar?35:42;if(n.fixedWeeks&&x.length<k){const N=t.filter(E=>{const D=k-x.length;return E>w&&E<=o(w,D)});x.push(...N)}const S=x.reduce((N,E)=>{const D=n.ISOWeek?u(E):f(E),O=N.find(R=>R.weekNumber===D),T=new Xc(E,_,r);return O?O.days.push(T):N.push(new N_(D,[T])),N},[]),C=new S_(_,S);return v.push(C),v},[]);return n.reverseMonths?b.reverse():b}function Db(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:s,startOfMonth:a,endOfMonth:i,addYears:l,endOfYear:u,newDate:f,today:m}=t,{fromYear:p,toYear:h,fromMonth:b,toMonth:v}=e;!n&&b&&(n=b),!n&&p&&(n=t.newDate(p,0,1)),!r&&v&&(r=v),!r&&h&&(r=f(h,11,31));const _=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=a(n):p?n=f(p,0,1):!n&&_&&(n=o(l(e.today??m(),-100))),r?r=i(r):h?r=f(h,11,31):!r&&_&&(r=u(e.today??m())),[n&&s(n),r&&s(r)]}function Rb(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:s=1}=n,{startOfMonth:a,addMonths:i,differenceInCalendarMonths:l}=r,u=o?s:1,f=a(e);if(!t)return i(f,u);if(!(l(t,e)<s))return i(f,u)}function Pb(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:s}=n,{startOfMonth:a,addMonths:i,differenceInCalendarMonths:l}=r,u=o?s??1:1,f=a(e);if(!t)return i(f,-u);if(!(l(f,t)<=0))return i(f,-u)}function Tb(e){const t=[];return e.reduce((n,r)=>n.concat(r.weeks.slice()),t.slice())}function Br(e,t){const[n,r]=g.useState(e);return[t===void 0?n:t,r]}function Ab(e,t){const[n,r]=Db(e,t),{startOfMonth:o,endOfMonth:s}=t,a=ua(e,n,r,t),[i,l]=Br(a,e.month?a:void 0);g.useEffect(()=>{const k=ua(e,n,r,t);l(k)},[e.timeZone]);const{months:u,weeks:f,days:m,previousMonth:p,nextMonth:h}=g.useMemo(()=>{const k=Mb(i,r,{numberOfMonths:e.numberOfMonths},t),S=Eb(k,e.endMonth?s(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),C=Ob(k,S,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),N=Tb(C),E=jb(C),D=Pb(i,n,e,t),O=Rb(i,r,e,t);return{months:C,weeks:N,days:E,previousMonth:D,nextMonth:O}},[t,i.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:b,onMonthChange:v}=e,_=k=>f.some(S=>S.days.some(C=>C.isEqualTo(k))),y=k=>{if(b)return;let S=o(k);n&&S<o(n)&&(S=o(n)),r&&S>o(r)&&(S=o(r)),l(S),v?.(S)};return{months:u,weeks:f,days:m,navStart:n,navEnd:r,previousMonth:p,nextMonth:h,goToMonth:y,goToDay:k=>{_(k)||y(k.date)}}}var ot;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(ot||(ot={}));function fa(e){return!e[ye.disabled]&&!e[ye.hidden]&&!e[ye.outside]}function Ib(e,t,n,r){let o,s=-1;for(const a of e){const i=t(a);fa(i)&&(i[ye.focused]&&s<ot.FocusedModifier?(o=a,s=ot.FocusedModifier):r?.isEqualTo(a)&&s<ot.LastFocused?(o=a,s=ot.LastFocused):n(a.date)&&s<ot.Selected?(o=a,s=ot.Selected):i[ye.today]&&s<ot.Today&&(o=a,s=ot.Today))}return o||(o=e.find(a=>fa(t(a)))),o}function Lb(e,t,n,r,o,s,a){const{ISOWeek:i,broadcastCalendar:l}=s,{addDays:u,addMonths:f,addWeeks:m,addYears:p,endOfBroadcastWeek:h,endOfISOWeek:b,endOfWeek:v,max:_,min:y,startOfBroadcastWeek:w,startOfISOWeek:x,startOfWeek:k}=a;let C={day:u,week:m,month:f,year:p,startOfWeek:N=>l?w(N,a):i?x(N):k(N),endOfWeek:N=>l?h(N):i?b(N):v(N)}[e](n,t==="after"?1:-1);return t==="before"&&r?C=_([r,C]):t==="after"&&o&&(C=y([o,C])),C}function ul(e,t,n,r,o,s,a,i=0){if(i>365)return;const l=Lb(e,t,n.date,r,o,s,a),u=!!(s.disabled&&yt(l,s.disabled,a)),f=!!(s.hidden&&yt(l,s.hidden,a)),m=l,p=new Xc(l,m,a);return!u&&!f?p:ul(e,t,p,r,o,s,a,i+1)}function Wb(e,t,n,r,o){const{autoFocus:s}=e,[a,i]=g.useState(),l=Ib(t.days,n,r||(()=>!1),a),[u,f]=g.useState(s?l:void 0);return{isFocusTarget:v=>!!l?.isEqualTo(v),setFocused:f,focused:u,blur:()=>{i(u),f(void 0)},moveFocus:(v,_)=>{if(!u)return;const y=ul(v,_,u,t.navStart,t.navEnd,e,o);y&&(e.disableNavigation&&!t.days.some(x=>x.isEqualTo(y))||(t.goToDay(y),f(y)))}}}function $b(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=Br(n,o?n:void 0),i=o?n:s,{isSameDay:l}=t,u=h=>i?.some(b=>l(b,h))??!1,{min:f,max:m}=e;return{selected:i,select:(h,b,v)=>{let _=[...i??[]];if(u(h)){if(i?.length===f||r&&i?.length===1)return;_=i?.filter(y=>!l(y,h))}else i?.length===m?_=[h]:_=[..._,h];return o||a(_),o?.(_,h,b,v),_},isSelected:u}}function Fb(e,t,n=0,r=0,o=!1,s=ft){const{from:a,to:i}=t||{},{isSameDay:l,isAfter:u,isBefore:f}=s;let m;if(!a&&!i)m={from:e,to:n>0?void 0:e};else if(a&&!i)l(a,e)?n===0?m={from:a,to:e}:o?m={from:a,to:void 0}:m=void 0:f(e,a)?m={from:e,to:a}:m={from:a,to:e};else if(a&&i)if(l(a,e)&&l(i,e))o?m={from:a,to:i}:m=void 0;else if(l(a,e))m={from:a,to:n>0?void 0:e};else if(l(i,e))m={from:e,to:n>0?void 0:e};else if(f(e,a))m={from:e,to:i};else if(u(e,a))m={from:a,to:e};else if(u(e,i))m={from:a,to:e};else throw new Error("Invalid range");if(m?.from&&m?.to){const p=s.differenceInCalendarDays(m.to,m.from);r>0&&p>r?m={from:e,to:void 0}:n>1&&p<n&&(m={from:e,to:void 0})}return m}function Bb(e,t,n=ft){const r=Array.isArray(t)?t:[t];let o=e.from;const s=n.differenceInCalendarDays(e.to,e.from),a=Math.min(s,6);for(let i=0;i<=a;i++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function ma(e,t,n=ft){return bt(e,t.from,!1,n)||bt(e,t.to,!1,n)||bt(t,e.from,!1,n)||bt(t,e.to,!1,n)}function zb(e,t,n=ft){const r=Array.isArray(t)?t:[t];if(r.filter(i=>typeof i!="function").some(i=>typeof i=="boolean"?i:n.isDate(i)?bt(e,i,!1,n):Jc(i,n)?i.some(l=>bt(e,l,!1,n)):Fr(i)?i.from&&i.to?ma(e,{from:i.from,to:i.to},n):!1:Qc(i)?Bb(e,i.dayOfWeek,n):as(i)?n.isAfter(i.before,i.after)?ma(e,{from:n.addDays(i.after,1),to:n.addDays(i.before,-1)},n):yt(e.from,i,n)||yt(e.to,i,n):is(i)||cs(i)?yt(e.from,i,n)||yt(e.to,i,n):!1))return!0;const a=r.filter(i=>typeof i=="function");if(a.length){let i=e.from;const l=n.differenceInCalendarDays(e.to,e.from);for(let u=0;u<=l;u++){if(a.some(f=>f(i)))return!0;i=n.addDays(i,1)}}return!1}function Hb(e,t){const{disabled:n,excludeDisabled:r,resetOnSelect:o,selected:s,required:a,onSelect:i}=e,[l,u]=Br(s,i?s:void 0),f=i?s:l;return{selected:f,select:(h,b,v)=>{const{min:_,max:y}=e;let w;if(h){const x=f?.from,k=f?.to,S=!!x&&!!k,C=!!x&&!!k&&t.isSameDay(x,k)&&t.isSameDay(h,x);o&&(S||!f?.from)?!a&&C?w=void 0:w={from:h,to:void 0}:w=Fb(h,f,_,y,a,t)}return r&&n&&w?.from&&w.to&&zb({from:w.from,to:w.to},n,t)&&(w.from=h,w.to=void 0),i||u(w),i?.(w,h,b,v),w},isSelected:h=>f&&bt(f,h,!1,t)}}function Yb(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=Br(n,o?n:void 0),i=o?n:s,{isSameDay:l}=t;return{selected:i,select:(m,p,h)=>{let b=m;return!r&&i&&i&&l(m,i)&&(b=void 0),o||a(b),o?.(b,m,p,h),b},isSelected:m=>i?l(i,m):!1}}function Vb(e,t){const n=Yb(e,t),r=$b(e,t),o=Hb(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function Ge(e,t){return e instanceof Te&&e.timeZone===t?e:new Te(e,t)}function Qt(e,t,n){return Ge(e,t)}function ha(e,t,n){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?Qt(e,t):Array.isArray(e)?e.map(r=>r instanceof Date?Qt(r,t):r):Fr(e)?{...e,from:e.from?Ge(e.from,t):e.from,to:e.to?Ge(e.to,t):e.to}:as(e)?{before:Qt(e.before,t),after:Qt(e.after,t)}:is(e)?{after:Qt(e.after,t)}:cs(e)?{before:Qt(e.before,t)}:e}function po(e,t,n){return e&&(Array.isArray(e)?e.map(r=>ha(r,t)):ha(e,t))}function qb(e){let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=Ge(t.today,n)),t.month&&(t.month=Ge(t.month,n)),t.defaultMonth&&(t.defaultMonth=Ge(t.defaultMonth,n)),t.startMonth&&(t.startMonth=Ge(t.startMonth,n)),t.endMonth&&(t.endMonth=Ge(t.endMonth,n)),t.mode==="single"&&t.selected?t.selected=Ge(t.selected,n):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(Q=>Ge(Q,n)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?Ge(t.selected.from,n):t.selected.from,to:t.selected.to?Ge(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=po(t.disabled,n)),t.hidden!==void 0&&(t.hidden=po(t.hidden,n)),t.modifiers)){const Q={};Object.keys(t.modifiers).forEach(ue=>{Q[ue]=po(t.modifiers?.[ue],n)}),t.modifiers=Q}const{components:r,formatters:o,labels:s,dateLib:a,locale:i,classNames:l}=g.useMemo(()=>{const Q={...Zc,...t.locale},ue=t.broadcastCalendar?1:t.weekStartsOn,U=t.noonSafe&&t.timeZone?xb(t.timeZone,{weekStartsOn:ue,locale:Q}):void 0,le=t.dateLib&&U?{...U,...t.dateLib}:t.dateLib??U,$e=new Ve({locale:Q,weekStartsOn:ue,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},le);return{dateLib:$e,components:nb(t.components),formatters:fb(t.formatters),labels:vb(t.labels,$e.options),locale:Q,classNames:{...ls(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:a.today()});const{captionLayout:u,mode:f,navLayout:m,numberOfMonths:p=1,onDayBlur:h,onDayClick:b,onDayFocus:v,onDayKeyDown:_,onDayMouseEnter:y,onDayMouseLeave:w,onNextClick:x,onPrevClick:k,showWeekNumber:S,styles:C}=t,{formatCaption:N,formatDay:E,formatMonthDropdown:D,formatWeekNumber:O,formatWeekNumberHeader:T,formatWeekdayName:R,formatYearDropdown:A}=o,I=Ab(t,a),{days:X,months:P,navStart:q,navEnd:W,previousMonth:G,nextMonth:j,goToMonth:K}=I,ve=eb(X,t,q,W,a),{isSelected:V,select:ne,selected:ee}=Vb(t,a)??{},{blur:re,focused:fe,isFocusTarget:Me,moveFocus:se,setFocused:$}=Wb(t,I,ve,V??(()=>!1),a),{labelDayButton:de,labelGridcell:ke,labelGrid:Oe,labelMonthDropdown:ce,labelNav:De,labelPrevious:mt,labelNext:Vn,labelWeekday:qn,labelWeekNumber:Gn,labelWeekNumberHeader:qt,labelYearDropdown:zr}=s,Hr=g.useMemo(()=>yb(a,t.ISOWeek,t.broadcastCalendar,t.today),[a,t.ISOWeek,t.broadcastCalendar,t.today]),Un=f!==void 0||b!==void 0,hn=g.useCallback(()=>{G&&(K(G),k?.(G))},[G,K,k]),z=g.useCallback(()=>{j&&(K(j),x?.(j))},[K,j,x]),be=g.useCallback((Q,ue)=>U=>{U.preventDefault(),U.stopPropagation(),$(Q),!ue.disabled&&(ne?.(Q.date,ue,U),b?.(Q.date,ue,U))},[ne,b,$]),he=g.useCallback((Q,ue)=>U=>{$(Q),v?.(Q.date,ue,U)},[v,$]),Se=g.useCallback((Q,ue)=>U=>{re(),h?.(Q.date,ue,U)},[re,h]),Re=g.useCallback((Q,ue)=>U=>{const le={ArrowLeft:[U.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[U.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[U.shiftKey?"year":"week","after"],ArrowUp:[U.shiftKey?"year":"week","before"],PageUp:[U.shiftKey?"year":"month","before"],PageDown:[U.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(le[U.key]){U.preventDefault(),U.stopPropagation();const[$e,ie]=le[U.key];se($e,ie)}_?.(Q.date,ue,U)},[se,_,t.dir]),Ze=g.useCallback((Q,ue)=>U=>{y?.(Q.date,ue,U)},[y]),Pe=g.useCallback((Q,ue)=>U=>{w?.(Q.date,ue,U)},[w]),Ne=g.useCallback(Q=>ue=>{const U=Number(ue.target.value),le=a.setMonth(a.startOfMonth(Q),U);K(le)},[a,K]),ht=g.useCallback(Q=>ue=>{const U=Number(ue.target.value),le=a.setYear(a.startOfMonth(Q),U);K(le)},[a,K]),{className:pt,style:Xe}=g.useMemo(()=>({className:[l[H.Root],t.className].filter(Boolean).join(" "),style:{...C?.[H.Root],...t.style}}),[l,t.className,t.style,C]),nt=rb(t),Zn=g.useRef(null);Nb(Zn,!!t.animate,{classNames:l,months:P,focused:fe,dateLib:a});const Nl={dayPickerProps:t,selected:ee,select:ne,isSelected:V,months:P,nextMonth:j,previousMonth:G,goToMonth:K,getModifiers:ve,components:r,classNames:l,styles:C,labels:s,formatters:o};return g.createElement(Kc.Provider,{value:Nl},g.createElement(r.Root,{rootRef:t.animate?Zn:void 0,className:pt,style:Xe,dir:t.dir,id:t.id,lang:t.lang??i.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...nt},g.createElement(r.Months,{className:l[H.Months],style:C?.[H.Months]},!t.hideNavigation&&!m&&g.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[H.Nav],style:C?.[H.Nav],"aria-label":De(),onPreviousClick:hn,onNextClick:z,previousMonth:G,nextMonth:j}),P.map((Q,ue)=>g.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:l[H.Month],style:C?.[H.Month],key:ue,displayIndex:ue,calendarMonth:Q},m==="around"&&!t.hideNavigation&&ue===0&&g.createElement(r.PreviousMonthButton,{type:"button",className:l[H.PreviousMonthButton],tabIndex:G?void 0:-1,"aria-disabled":G?void 0:!0,"aria-label":mt(G),onClick:hn,"data-animated-button":t.animate?"true":void 0},g.createElement(r.Chevron,{disabled:G?void 0:!0,className:l[H.Chevron],orientation:t.dir==="rtl"?"right":"left"})),g.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:l[H.MonthCaption],style:C?.[H.MonthCaption],calendarMonth:Q,displayIndex:ue},u?.startsWith("dropdown")?g.createElement(r.DropdownNav,{className:l[H.Dropdowns],style:C?.[H.Dropdowns]},(()=>{const U=u==="dropdown"||u==="dropdown-months"?g.createElement(r.MonthsDropdown,{key:"month",className:l[H.MonthsDropdown],"aria-label":ce(),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:Ne(Q.date),options:_b(Q.date,q,W,o,a),style:C?.[H.Dropdown],value:a.getMonth(Q.date)}):g.createElement("span",{key:"month"},D(Q.date,a)),le=u==="dropdown"||u==="dropdown-years"?g.createElement(r.YearsDropdown,{key:"year",className:l[H.YearsDropdown],"aria-label":zr(a.options),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:ht(Q.date),options:wb(q,W,o,a,!!t.reverseYears),style:C?.[H.Dropdown],value:a.getYear(Q.date)}):g.createElement("span",{key:"year"},A(Q.date,a));return a.getMonthYearOrder()==="year-first"?[le,U]:[U,le]})(),g.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},N(Q.date,a.options,a))):g.createElement(r.CaptionLabel,{className:l[H.CaptionLabel],role:"status","aria-live":"polite"},N(Q.date,a.options,a))),m==="around"&&!t.hideNavigation&&ue===p-1&&g.createElement(r.NextMonthButton,{type:"button",className:l[H.NextMonthButton],tabIndex:j?void 0:-1,"aria-disabled":j?void 0:!0,"aria-label":Vn(j),onClick:z,"data-animated-button":t.animate?"true":void 0},g.createElement(r.Chevron,{disabled:j?void 0:!0,className:l[H.Chevron],orientation:t.dir==="rtl"?"left":"right"})),ue===p-1&&m==="after"&&!t.hideNavigation&&g.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[H.Nav],style:C?.[H.Nav],"aria-label":De(),onPreviousClick:hn,onNextClick:z,previousMonth:G,nextMonth:j}),g.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":f==="multiple"||f==="range","aria-label":Oe(Q.date,a.options,a)||void 0,className:l[H.MonthGrid],style:C?.[H.MonthGrid]},!t.hideWeekdays&&g.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:l[H.Weekdays],style:C?.[H.Weekdays]},S&&g.createElement(r.WeekNumberHeader,{"aria-label":qt(a.options),className:l[H.WeekNumberHeader],style:C?.[H.WeekNumberHeader],scope:"col"},T()),Hr.map(U=>g.createElement(r.Weekday,{"aria-label":qn(U,a.options,a),className:l[H.Weekday],key:String(U),style:C?.[H.Weekday],scope:"col"},R(U,a.options,a)))),g.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:l[H.Weeks],style:C?.[H.Weeks]},Q.weeks.map(U=>g.createElement(r.Week,{className:l[H.Week],key:U.weekNumber,style:C?.[H.Week],week:U},S&&g.createElement(r.WeekNumber,{week:U,style:C?.[H.WeekNumber],"aria-label":Gn(U.weekNumber,{locale:i}),className:l[H.WeekNumber],scope:"row",role:"rowheader"},O(U.weekNumber,a)),U.days.map(le=>{const{date:$e}=le,ie=ve(le);if(ie[ye.focused]=!ie.hidden&&!!fe?.isEqualTo(le),ie[Je.selected]=V?.($e)||ie.selected,Fr(ee)){const{from:Yr,to:Vr}=ee;ie[Je.range_start]=!!(Yr&&Vr&&a.isSameDay($e,Yr)),ie[Je.range_end]=!!(Yr&&Vr&&a.isSameDay($e,Vr)),ie[Je.range_middle]=bt(ee,$e,!0,a)}const El=bb(ie,C,t.modifiersStyles),jl=tb(ie,l,t.modifiersClassNames),Ml=!Un&&!ie.hidden?ke($e,ie,a.options,a):void 0;return g.createElement(r.Day,{key:`${le.isoDate}_${le.displayMonthId}`,day:le,modifiers:ie,className:jl.join(" "),style:El,role:"gridcell","aria-selected":ie.selected||void 0,"aria-label":Ml,"data-day":le.isoDate,"data-month":le.outside?le.dateMonthId:void 0,"data-selected":ie.selected||void 0,"data-disabled":ie.disabled||void 0,"data-hidden":ie.hidden||void 0,"data-outside":le.outside||void 0,"data-focused":ie.focused||void 0,"data-today":ie.today||void 0},!ie.hidden&&Un?g.createElement(r.DayButton,{className:l[H.DayButton],style:C?.[H.DayButton],type:"button",day:le,modifiers:ie,disabled:!ie.focused&&ie.disabled||void 0,"aria-disabled":ie.focused&&ie.disabled||void 0,tabIndex:Me(le)?0:-1,"aria-label":de($e,ie,a.options,a),onClick:be(le,ie),onBlur:Se(le,ie),onFocus:he(le,ie),onKeyDown:Re(le,ie),onMouseEnter:Ze(le,ie),onMouseLeave:Pe(le,ie)},E($e,a.options,a)):!ie.hidden&&E(le.date,a.options,a))})))))))),t.footer&&g.createElement(r.Footer,{className:l[H.Footer],style:C?.[H.Footer],role:"status","aria-live":"polite"},t.footer)))}function Gb({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r="label",buttonVariant:o="ghost",formatters:s,components:a,...i}){const l=ls();return c.jsx(qb,{showOutsideDays:n,className:J("bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:r,formatters:{formatMonthDropdown:u=>u.toLocaleString("default",{month:"short"}),...s},classNames:{root:J("w-fit",l.root),months:J("relative flex flex-col gap-4 md:flex-row",l.months),month:J("flex w-full flex-col gap-4",l.month),nav:J("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",l.nav),button_previous:J(vo({variant:o}),"h-(--cell-size) w-(--cell-size) select-none p-0 aria-disabled:opacity-50",l.button_previous),button_next:J(vo({variant:o}),"h-(--cell-size) w-(--cell-size) select-none p-0 aria-disabled:opacity-50",l.button_next),month_caption:J("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)",l.month_caption),dropdowns:J("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",l.dropdowns),dropdown_root:J("has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",l.dropdown_root),dropdown:J("bg-popover absolute inset-0 opacity-0",l.dropdown),caption_label:J("select-none font-medium",r==="label"?"text-sm":"[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",l.caption_label),table:"w-full border-collapse",weekdays:J("flex",l.weekdays),weekday:J("text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal",l.weekday),week:J("mt-2 flex w-full",l.week),week_number_header:J("w-(--cell-size) select-none",l.week_number_header),week_number:J("text-muted-foreground select-none text-[0.8rem]",l.week_number),day:J("group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",l.day),range_start:J("bg-accent rounded-l-md",l.range_start),range_middle:J("rounded-none",l.range_middle),range_end:J("bg-accent rounded-r-md",l.range_end),today:J("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",l.today),outside:J("text-muted-foreground aria-selected:text-muted-foreground",l.outside),disabled:J("text-muted-foreground opacity-50",l.disabled),hidden:J("invisible",l.hidden),...t},components:{Root:({className:u,rootRef:f,...m})=>c.jsx("div",{"data-slot":"calendar",ref:f,className:J(u),...m}),Chevron:({className:u,orientation:f,...m})=>f==="left"?c.jsx(Tp,{className:J("size-4",u),...m}):f==="right"?c.jsx(Ip,{className:J("size-4",u),...m}):c.jsx(Rp,{className:J("size-4",u),...m}),DayButton:Ub,WeekNumber:({children:u,...f})=>c.jsx("td",{...f,children:c.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:u})}),...a},...i})}function Ub({className:e,day:t,modifiers:n,...r}){const o=ls(),s=d.useRef(null);return d.useEffect(()=>{n.focused&&s.current?.focus()},[n.focused]),c.jsx(Cr,{ref:s,variant:"ghost",size:"icon","data-day":t.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:J("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-(--cell-size) flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",o.day,e),...r})}const nn=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Zb=()=>nn(new Date),wr=e=>String(e).padStart(2,"0"),fl=e=>`${e.getFullYear()}-${wr(e.getMonth()+1)}-${wr(e.getDate())}`,Xb=e=>`${wr(e.getDate())}.${wr(e.getMonth()+1)}.${e.getFullYear()}`,ml=e=>{if(e==null||e==="")return;const t=String(e).trim(),n=/^(\d{4})-(\d{2})-(\d{2})/.exec(t);if(n){const o=Number(n[1]),s=Number(n[2])-1,a=Number(n[3]),i=new Date(o,s,a);return Number.isNaN(i.getTime())?void 0:i}const r=new Date(t);if(!Number.isNaN(r.getTime()))return nn(r)},Kb="_wrapper_1sqfs_1",Qb="_trigger_1sqfs_8",Jb="_error_1sqfs_37",ey="_triggerValue_1sqfs_44",ty="_triggerIcon_1sqfs_51",yn={wrapper:Kb,trigger:Qb,error:Jb,triggerValue:ey,triggerIcon:ty},ny=({label:e,required:t,value:n,onChange:r,minDate:o,error:s,disabled:a,tooltipContent:i,tooltipPopperClassName:l,className:u})=>{const[f,m]=g.useState(!1),p=g.useMemo(()=>ml(n??void 0),[n]),h=g.useMemo(()=>p?Xb(p):"",[p]),b=o?nn(o):void 0;return c.jsxs("div",{className:M(yn.wrapper,u),children:[c.jsx(Lt,{required:t,tooltipContent:i,tooltipPopperClassName:l,children:e}),c.jsxs(So,{open:f,onOpenChange:m,children:[c.jsx(No,{asChild:!0,children:c.jsxs("button",{type:"button",disabled:a,className:M(yn.trigger,{[yn.error]:!!s},!h&&"text-muted-foreground"),children:[c.jsx("span",{className:yn.triggerValue,children:h||"Выберите дату"}),c.jsx(Op,{className:yn.triggerIcon,"aria-hidden":!0})]})}),c.jsx(Qo,{className:J("w-auto border border-slate-200 bg-white p-0 text-slate-900 shadow-lg"),align:"start",children:c.jsx(Gb,{mode:"single",selected:p,onSelect:v=>{r(v?fl(nn(v)):null),m(!1)},disabled:b?v=>nn(v).getTime()<b.getTime():void 0,initialFocus:!0})})]}),s?c.jsx(Ct,{variant:"error",children:s}):null]})},ry="_wrapper_1mrfs_1",oy="_field_1mrfs_8",sy="_disabled_1mrfs_15",ay="_control_1mrfs_19",iy="_labelWithTooltip_1mrfs_28",cy="_nativeInput_1mrfs_36",ly="_box_1mrfs_48",dy="_error_1mrfs_81",uy="_checkIcon_1mrfs_95",fy="_labelText_1mrfs_108",Qe={wrapper:ry,field:oy,disabled:sy,control:ay,labelWithTooltip:iy,nativeInput:cy,box:ly,error:dy,checkIcon:uy,labelText:fy},my=()=>c.jsx("svg",{className:Qe.checkIcon,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:c.jsx("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})}),hl=g.forwardRef(({label:e,error:t,disabled:n,className:r,checkboxClassName:o,tooltipContent:s,tooltipPopperClassName:a,id:i,...l},u)=>{const f=g.useId(),m=i??f,p=c.jsxs("div",{className:M(Qe.field,{[Qe.disabled]:n}),children:[c.jsxs("label",{htmlFor:m,className:Qe.control,children:[c.jsx("input",{ref:u,id:m,type:"checkbox",disabled:n,"aria-invalid":t?!0:void 0,className:Qe.nativeInput,...l}),c.jsx("span",{className:M(Qe.box,{[Qe.error]:!!t},o),children:c.jsx(my,{})})]}),e&&s?c.jsx(Lt,{htmlFor:m,tooltipContent:s,tooltipPopperClassName:a,className:Qe.labelWithTooltip,labelClassName:Qe.labelText,children:e}):e?c.jsx(Mn,{htmlFor:m,className:M(jn.label_inline,Qe.labelText),children:e}):null]});return c.jsxs("div",{className:M(Qe.wrapper,r),children:[p,t&&c.jsx(Ct,{children:t})]})});hl.displayName="Checkbox";const hy="_root_osjxx_1",py="_header_osjxx_11",gy="_headerText_osjxx_21",vy="_eyebrow_osjxx_27",_y="_title_osjxx_35",by="_timeline_osjxx_42",yy="_level_osjxx_47",wy="_rail_osjxx_58",xy="_railLine_osjxx_65",Cy="_railLine_completed_osjxx_74",ky="_railLine_toCurrent_osjxx_78",Sy="_marker_osjxx_82",Ny="_marker_completed_osjxx_101",Ey="_marker_current_osjxx_107",jy="_body_osjxx_120",My="_levelHeader_osjxx_125",Oy="_levelName_osjxx_132",Dy="_levelName_current_osjxx_141",Ry="_levelName_completed_osjxx_147",Py="_iconButton_osjxx_152",Ty="_iconButton_danger_osjxx_176",Ay="_stages_osjxx_182",Iy="_stage_osjxx_182",Ly="_stage_current_osjxx_199",Wy="_stageHeader_osjxx_204",$y="_stageName_osjxx_212",Fy="_stageActions_osjxx_220",By="_approvers_osjxx_227",zy="_approver_osjxx_227",Hy="_approverMain_osjxx_242",Yy="_approverName_osjxx_249",Vy="_approverName_pending_osjxx_255",qy="_approverName_rejected_osjxx_259",Gy="_approverName_approved_osjxx_264",Uy="_approverDate_osjxx_268",Zy="_rejectReason_osjxx_273",Xy="_empty_osjxx_283",Ky="_addStage_osjxx_300",Qy="_addLevel_osjxx_323",Jy="_dialogContent_osjxx_327",ew="_dialogInput_osjxx_333",tw="_dialogActions_osjxx_348",nw="_approverPickerWrap_osjxx_354",rw="_approverPickerInput_osjxx_361",Y={root:hy,header:py,headerText:gy,eyebrow:vy,title:_y,timeline:by,level:yy,rail:wy,railLine:xy,railLine_completed:Cy,railLine_toCurrent:ky,marker:Sy,marker_completed:Ny,marker_current:Ey,body:jy,levelHeader:My,levelName:Oy,levelName_current:Dy,levelName_completed:Ry,iconButton:Py,iconButton_danger:Ty,stages:Ay,stage:Iy,stage_current:Ly,stageHeader:Wy,stageName:$y,stageActions:Fy,approvers:By,approver:zy,approverMain:Hy,approverName:Yy,approverName_pending:Vy,approverName_rejected:qy,approverName_approved:Gy,approverDate:Uy,rejectReason:Zy,empty:Xy,addStage:Ky,addLevel:Qy,dialogContent:Jy,dialogInput:ew,dialogActions:tw,approverPickerWrap:nw,approverPickerInput:rw},lr=({className:e})=>c.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",className:e,"aria-hidden":"true",children:c.jsx("path",{d:"M12 5v14M5 12h14"})});function pa({open:e,title:t,placeholder:n,onSubmit:r,onClose:o}){const[s,a]=g.useState("");g.useEffect(()=>{e||a("")},[e]);const i=()=>{const l=s.trim();l&&(r(l),o())};return c.jsx(Wr,{open:e,onOpenChange:l=>!l&&o(),children:c.jsxs(Wn,{className:"sm:rounded-2xl",children:[c.jsx($n,{children:c.jsx(Fn,{children:t})}),c.jsxs("div",{className:Y.dialogContent,children:[c.jsx("input",{autoFocus:!0,className:Y.dialogInput,placeholder:n,value:s,onChange:l=>a(l.target.value),onKeyDown:l=>{l.key==="Enter"&&i(),l.key==="Escape"&&o()}}),c.jsxs("div",{className:Y.dialogActions,children:[c.jsx(xe,{variant:"secondary",onClick:o,children:"Отмена"}),c.jsx(xe,{variant:"primary",onClick:i,disabled:!s.trim(),children:"Добавить"})]})]})]})})}const ow=({levels:e,editable:t=!1,title:n="Маршрут согласования",eyebrow:r="Workflow",className:o,loadApprovers:s,onAddLevel:a,onRemoveLevel:i,onAddStage:l,onRemoveStage:u,onAddApprover:f,onRemoveApprover:m})=>{const[p,h]=g.useState(!1),[b,v]=g.useState(null);return c.jsxs("div",{className:M(Y.root,o),children:[c.jsx("div",{className:Y.header,children:c.jsxs("div",{className:Y.headerText,children:[c.jsx("span",{className:Y.eyebrow,children:r}),c.jsx("span",{className:Y.title,children:n})]})}),c.jsxs("div",{className:Y.timeline,children:[e.map((_,y)=>{const w=e[y+1],x=M(Y.railLine,{[Y.railLine_completed]:_.status==="completed"&&w?.status==="completed",[Y.railLine_toCurrent]:_.status==="completed"&&w?.status==="current"});return c.jsxs("div",{className:Y.level,children:[c.jsxs("div",{className:Y.rail,children:[y<e.length-1&&c.jsx("span",{className:x}),c.jsx("span",{className:M(Y.marker,{[Y.marker_completed]:_.status==="completed",[Y.marker_current]:_.status==="current"}),children:_.status==="completed"&&c.jsx(Ro,{})})]}),c.jsxs("div",{className:Y.body,children:[c.jsxs("div",{className:Y.levelHeader,children:[c.jsx("span",{className:M(Y.levelName,{[Y.levelName_current]:_.status==="current",[Y.levelName_completed]:_.status==="completed"}),children:_.name}),t&&c.jsxs(c.Fragment,{children:[c.jsx("button",{type:"button",className:Y.iconButton,onClick:()=>v(_.id),"aria-label":"Добавить этап",title:"Добавить этап",children:c.jsx(lr,{})}),c.jsx("button",{type:"button",className:M(Y.iconButton,Y.iconButton_danger),onClick:()=>i?.(_.id),"aria-label":"Удалить уровень",title:"Удалить уровень",children:c.jsx(ct,{})})]})]}),_.stages.length>0&&c.jsx("div",{className:Y.stages,children:_.stages.map(k=>c.jsxs("div",{className:M(Y.stage,{[Y.stage_current]:_.status==="current"}),children:[c.jsxs("div",{className:Y.stageHeader,children:[c.jsx("span",{className:Y.stageName,children:k.name}),c.jsx("div",{className:Y.stageActions,children:t&&c.jsxs(c.Fragment,{children:[s?c.jsx(ns,{value:null,placeholder:"",title:"Добавить согласующего",searchPlaceholder:"Поиск сотрудника",loadOptions:s,onChange:S=>f?.(_.id,k.id,S),className:Y.approverPickerWrap,inputClassName:Y.approverPickerInput,selectedOptionRender:()=>c.jsx(lr,{})}):null,c.jsx("button",{type:"button",className:M(Y.iconButton,Y.iconButton_danger),onClick:()=>u?.(_.id,k.id),"aria-label":"Удалить этап",title:"Удалить этап",children:c.jsx(ct,{})})]})})]}),k.approvers.length===0?c.jsxs("span",{className:Y.empty,children:[c.jsx(Ca,{}),"Согласующий не назначен"]}):c.jsx("div",{className:Y.approvers,children:k.approvers.map(S=>{const C=S.status??"pending";return c.jsxs("div",{className:Y.approver,children:[c.jsxs("div",{className:Y.approverMain,children:[c.jsx("span",{className:M(Y.approverName,{[Y.approverName_pending]:C==="pending",[Y.approverName_approved]:C==="approved",[Y.approverName_rejected]:C==="rejected"}),children:S.fullName}),S.actedAt&&C!=="pending"&&c.jsx("span",{className:Y.approverDate,children:S.actedAt}),C==="rejected"&&S.rejectReason&&c.jsxs("span",{className:Y.rejectReason,children:["Причина: ",S.rejectReason]})]}),t&&c.jsx("button",{type:"button",className:M(Y.iconButton,Y.iconButton_danger),onClick:()=>m?.(_.id,k.id,S.id),"aria-label":"Удалить согласующего",title:"Удалить согласующего",children:c.jsx(ct,{})})]},S.id)})})]},k.id))}),t&&c.jsxs("button",{type:"button",className:Y.addStage,onClick:()=>v(_.id),children:[c.jsx(lr,{})," Добавить этап"]})]})]},_.id)}),t&&c.jsxs("div",{className:Y.level,children:[c.jsx("div",{className:Y.rail,children:c.jsx("span",{className:M(Y.marker),"aria-hidden":!0})}),c.jsx("div",{className:Y.body,children:c.jsxs("button",{type:"button",className:M(Y.addStage,Y.addLevel),onClick:()=>h(!0),children:[c.jsx(lr,{})," Добавить уровень"]})})]})]}),c.jsx(pa,{open:p,title:"Новый уровень",placeholder:"Название уровня",onClose:()=>h(!1),onSubmit:_=>a?.(_)}),c.jsx(pa,{open:b!==null,title:"Новый этап",placeholder:"Название этапа",onClose:()=>v(null),onSubmit:_=>b&&l?.(b,_)})]})},sw="_root_1426e_1",aw="_card_1426e_8",iw="_size_lg_1426e_15",cw="_section_1426e_19",lw="_sectionHeader_1426e_29",dw="_sectionTitle_1426e_36",uw="_sectionDescription_1426e_46",fw="_fields_1426e_54",mw="_fields_2col_1426e_62",hw="_field_1426e_54",pw="_field_span2_1426e_84",gw="_field_interactive_1426e_88",vw="_label_1426e_92",_w="_value_1426e_100",bw="_valueRow_1426e_113",yw="_copyTrigger_1426e_120",ww="_copyableValue_1426e_126",xw="_hint_1426e_131",Cw="_empty_1426e_139",kw="_divider_1426e_143",Sw="_loading_1426e_150",we={root:sw,card:aw,size_lg:iw,section:cw,sectionHeader:lw,sectionTitle:dw,sectionDescription:uw,fields:fw,fields_2col:mw,field:hw,field_span2:pw,field_interactive:gw,label:vw,value:_w,valueRow:bw,copyTrigger:yw,copyableValue:ww,hint:xw,empty:Cw,divider:kw,loading:Sw},Nw=e=>e==null||e===""||typeof e=="number"&&Number.isNaN(e),Ew=e=>e==null?"":typeof e=="string"||typeof e=="number"?String(e):"",pl=({label:e,value:t,children:n,hint:r,copyable:o,copyText:s,render:a,hidden:i,span:l,emptyPlaceholder:u="—",className:f})=>{const[m,p]=g.useState(!1),h=g.useCallback(()=>{const _=s??Ew(n??t);!_||typeof navigator>"u"||!navigator.clipboard||navigator.clipboard.writeText(_).then(()=>{p(!0),window.setTimeout(()=>p(!1),1400)})},[s,t,n]);if(i)return null;const b=n??t,v=Nw(b)?c.jsx("span",{className:we.empty,children:u}):b;return a?c.jsx(c.Fragment,{children:a({label:e,value:v})}):c.jsxs("div",{className:M(we.field,l===2&&we.field_span2,o&&we.field_interactive,f),children:[c.jsx("div",{className:we.label,children:e}),c.jsxs("div",{className:we.value,children:[c.jsx("div",{className:we.valueRow,children:o?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:we.copyableValue,children:v}),c.jsx("span",{className:we.copyTrigger,children:c.jsx(Ao,{iconOnly:!0,copied:m,onClick:h,ariaLabel:"Скопировать значение"})})]}):v}),r&&c.jsx("div",{className:we.hint,children:r})]})]})},gl=({id:e,title:t,description:n,fields:r,children:o,columns:s=1,className:a})=>{const i=(r??[]).filter(l=>!l.hidden);return c.jsxs("section",{id:e,className:M(we.section,a),children:[(t||n)&&c.jsxs("div",{className:we.sectionHeader,children:[t&&c.jsx("div",{className:we.sectionTitle,children:t}),n&&c.jsx("div",{className:we.sectionDescription,children:n})]}),(i.length>0||o)&&c.jsxs("div",{className:M(we.fields,s===2&&we.fields_2col),children:[i.map((l,u)=>c.jsx(pl,{...l},(typeof l.label=="string"?l.label:null)??`field-${u}`)),o]})]})},jw=({className:e})=>c.jsx("hr",{className:M(we.divider,e)}),Mw=({sections:e,children:t,variant:n="card",labelWidth:r="14rem",size:o="md",loading:s,emptyState:a,className:i,id:l})=>{const u=typeof r=="number"?`${r}px`:r,f=M(we.root,n==="card"&&we.card,o==="lg"&&we.size_lg,i),m={"--cozy-detail-label-width":u};if(s)return c.jsx("div",{className:f,style:m,id:l,children:c.jsx("div",{className:we.loading,children:c.jsx(Ue,{})})});const p=e&&e.length>0,h=g.Children.count(t)>0;return!p&&!h?c.jsx("div",{className:f,style:m,id:l,children:a??c.jsx(It,{})}):c.jsxs("div",{className:f,style:m,id:l,children:[p&&e.map((b,v)=>c.jsx(gl,{...b},b.id??`section-${v}`)),h&&g.Children.map(t,b=>(g.isValidElement(b),b))]})},Yn=g.memo(Mw);Yn.Section=gl;Yn.Field=pl;Yn.Divider=jw;Yn.displayName="DetailView";const Ow="_root_1z0dx_1",Dw="_header_1z0dx_14",Rw="_headerText_1z0dx_23",Pw="_eyebrow_1z0dx_29",Tw="_title_1z0dx_37",Aw="_counter_1z0dx_44",Iw="_list_1z0dx_53",Lw="_loadOlderBtn_1z0dx_59",Ww="_expandBtn_1z0dx_84",$w="_item_1z0dx_102",Fw="_avatar_1z0dx_109",Bw="_body_1z0dx_125",zw="_bubble_1z0dx_132",Hw="_actions_1z0dx_144",Yw="_bubble_deleted_1z0dx_148",Vw="_meta_1z0dx_154",qw="_author_1z0dx_162",Gw="_date_1z0dx_168",Uw="_editedTag_1z0dx_173",Zw="_text_1z0dx_179",Xw="_recipients_1z0dx_187",Kw="_attachments_1z0dx_203",Qw="_attachment_1z0dx_203",Jw="_attachmentName_1z0dx_227",ex="_attachmentSize_1z0dx_234",tx="_attachmentRemove_1z0dx_239",nx="_iconButton_1z0dx_278",rx="_iconButton_danger_1z0dx_302",ox="_children_1z0dx_309",sx="_form_1z0dx_320",ax="_form_root_1z0dx_330",ix="_form_inline_1z0dx_335",cx="_textarea_1z0dx_339",lx="_formRow_1z0dx_359",dx="_formTools_1z0dx_367",ux="_formActions_1z0dx_374",fx="_toolBtn_1z0dx_380",mx="_recipientsPickerWrap_1z0dx_403",hx="_recipientsPickerInput_1z0dx_410",px="_recipientsChips_1z0dx_459",gx="_chip_1z0dx_465",vx="_empty_1z0dx_496",_x="_skeleton_1z0dx_500",bx="_skeletonLine_1z0dx_507",yx="_dialogContent_1z0dx_523",wx="_dialogActions_1z0dx_531",xx="_branchSpinner_1z0dx_537",Cx="_hiddenInput_1z0dx_543",B={root:Ow,header:Dw,headerText:Rw,eyebrow:Pw,title:Tw,counter:Aw,list:Iw,loadOlderBtn:Lw,expandBtn:Ww,item:$w,avatar:Fw,body:Bw,bubble:zw,actions:Hw,bubble_deleted:Yw,meta:Vw,author:qw,date:Gw,editedTag:Uw,text:Zw,recipients:Xw,attachments:Kw,attachment:Qw,attachmentName:Jw,attachmentSize:ex,attachmentRemove:tx,iconButton:nx,iconButton_danger:rx,children:ox,form:sx,form_root:ax,form_inline:ix,textarea:cx,formRow:lx,formTools:dx,formActions:ux,toolBtn:fx,recipientsPickerWrap:mx,recipientsPickerInput:hx,recipientsChips:px,chip:gx,empty:vx,skeleton:_x,skeletonLine:bx,dialogContent:yx,dialogActions:wx,branchSpinner:xx,hiddenInput:Cx},kx=10,Sx=10*6e4,Cn="__root__",kn=e=>e??Cn;function Nx(e){return e.trim().split(/\s+/).slice(0,2).map(n=>n[0]?.toUpperCase()??"").join("")}function vl(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function ga(e){const t=new Date(e);if(Number.isNaN(t.getTime()))return e;const n=r=>String(r).padStart(2,"0");return`${n(t.getDate())}.${n(t.getMonth()+1)}.${String(t.getFullYear()).slice(2)} ${n(t.getHours())}:${n(t.getMinutes())}`}function dr(e){const t=new Map;for(const n of e)t.set(n.id,n);return Array.from(t.values()).sort((n,r)=>new Date(n.createdAt).getTime()-new Date(r.createdAt).getTime())}function Ex(e,t){const[n,r]=g.useState({}),o=g.useRef({}),s=g.useCallback((h,b)=>{const v=kn(h);r(_=>{const y=_[v]??{items:[],total:0,loadedFrom:0,loading:!1,loaded:!1};return{..._,[v]:b(y)}})},[]),a=g.useCallback(async h=>{const b=kn(h),v=(o.current[b]??0)+1;o.current[b]=v,s(h,x=>({...x,loading:!0}));const _=await t({parentId:h,skip:0,take:e});if(o.current[b]!==v)return;if(_.total<=e){s(h,()=>({items:dr(_.items),total:_.total,loadedFrom:0,loading:!1,loaded:!0}));return}const y=_.total-e,w=await t({parentId:h,skip:y,take:e});o.current[b]===v&&s(h,()=>({items:dr(w.items),total:w.total,loadedFrom:y,loading:!1,loaded:!0}))},[t,e,s]),i=g.useCallback(async h=>{const b=kn(h),v=n[b];if(!v||v.loading||v.loadedFrom<=0)return;const _=Math.min(e,v.loadedFrom),y=v.loadedFrom-_,w=(o.current[b]??0)+1;o.current[b]=w,s(h,k=>({...k,loading:!0}));const x=await t({parentId:h,skip:y,take:_});o.current[b]===w&&s(h,k=>({...k,items:dr([...x.items,...k.items]),total:x.total,loadedFrom:y,loading:!1}))},[n,t,e,s]),l=g.useCallback((h,b)=>{s(h,v=>{const _=dr([...v.items,b]);return{...v,items:_,total:v.total+1,loaded:!0}})},[s]),u=g.useCallback((h,b,v)=>{s(h,_=>({..._,items:_.items.map(y=>y.id===b?v(y):y)}))},[s]),f=g.useCallback((h,b)=>{s(h,v=>({...v,items:v.items.filter(_=>_.id!==b),total:Math.max(0,v.total-1)}))},[s]),m=g.useCallback(h=>{const b=kn(h);o.current[b]=(o.current[b]??0)+1,r(v=>{const _={...v};return delete _[b],_})},[]),p=g.useCallback(()=>{o.current={},r({})},[]);return{branches:n,loadInitial:a,loadOlder:i,appendLocal:l,replaceLocal:u,removeLocal:f,resetBranch:m,resetAll:p}}function _l({open:e,title:t,message:n,confirmText:r="Удалить",cancelText:o="Отмена",danger:s=!0,onConfirm:a,onClose:i}){return c.jsx(Wr,{open:e,onOpenChange:l=>!l&&i(),children:c.jsxs(Wn,{className:"sm:rounded-2xl",children:[c.jsx($n,{children:c.jsx(Fn,{children:t})}),c.jsx("div",{className:B.dialogContent,children:n}),c.jsxs($r,{className:B.dialogActions,children:[c.jsx(xe,{variant:"secondary",onClick:i,children:o}),c.jsx(xe,{variant:s?"danger":"primary",onClick:a,children:r})]})]})})}function Oo({mode:e,initialText:t="",initialAttachments:n=[],initialRecipients:r=[],placeholder:o,submitLabel:s,recipientsSource:a,onUploadAttachment:i,onDeleteAttachment:l,onSubmit:u,onCancel:f,submitting:m}){const[p,h]=g.useState(t),[b,v]=g.useState(n),[_,y]=g.useState(r),[w,x]=g.useState(!1),[k,S]=g.useState(null),C=g.useRef(null),N=async O=>{if(!(!O||!i)){x(!0);try{for(const T of Array.from(O)){const R=await i(T);v(A=>[...A,R])}}finally{x(!1),C.current&&(C.current.value="")}}},E=async()=>{if(!k)return;const O=k;if(S(null),l)try{await l(O)}catch{}v(T=>T.filter(R=>R.id!==O.id))},D=async()=>{const O=p.trim();O&&(await u({text:O,attachments:b,recipients:_}),e!=="edit"&&(h(""),v([]),y([])))};return c.jsxs("div",{className:M(B.form,{[B.form_root]:e==="root",[B.form_inline]:e!=="root"}),children:[c.jsx("textarea",{className:B.textarea,placeholder:o??"Напишите комментарий...",value:p,onChange:O=>h(O.target.value)}),_.length>0&&c.jsx("div",{className:B.recipientsChips,children:_.map(O=>c.jsxs("span",{className:B.chip,children:[O.name,c.jsx("button",{type:"button","aria-label":"Удалить получателя",onClick:()=>y(T=>T.filter(R=>R.id!==O.id)),children:c.jsx(ct,{})})]},O.id))}),b.length>0&&c.jsx("div",{className:B.attachments,children:b.map(O=>c.jsxs("span",{className:B.attachment,children:[c.jsx("span",{className:B.attachmentName,children:O.name}),c.jsx("span",{className:B.attachmentSize,children:vl(O.size)}),c.jsx("button",{type:"button",className:B.attachmentRemove,"aria-label":"Удалить вложение",onClick:()=>S(O),children:c.jsx(ct,{})})]},O.id))}),c.jsxs("div",{className:B.formRow,children:[c.jsxs("div",{className:B.formTools,children:[i&&c.jsxs(c.Fragment,{children:[c.jsxs("button",{type:"button",className:B.toolBtn,onClick:()=>C.current?.click(),disabled:w,children:[c.jsx(Ma,{style:{transform:"rotate(180deg)"}}),w?"Загрузка...":"Прикрепить файл"]}),c.jsx("input",{ref:C,type:"file",multiple:!0,className:B.hiddenInput,onChange:O=>N(O.target.files)})]}),a&&c.jsx(ns,{value:null,placeholder:_.length>0?`Ознакомители (${_.length})`:"Ознакомители",title:"Добавить ознакомителя",searchPlaceholder:"Поиск сотрудника",selectButtonText:"",loadOptions:a,onChange:O=>{const T=O.meta,R=T||{id:String(O.value),name:String(O.label)};y(A=>A.some(I=>I.id===R.id)?A:[...A,R])},className:B.recipientsPickerWrap,inputClassName:B.recipientsPickerInput})]}),c.jsxs("div",{className:B.formActions,children:[f&&c.jsx(xe,{variant:"secondary",size:"small",onClick:f,children:"Отмена"}),c.jsx(xe,{variant:"primary",size:"small",onClick:D,loading:m,disabled:!p.trim()||m,children:s??(e==="edit"?"Сохранить":"Отправить")})]})]}),c.jsx(_l,{open:!!k,title:"Удалить вложение?",message:`«${k?.name??""}» будет удалено без возможности восстановления.`,onConfirm:E,onClose:()=>S(null)})]})}function bl({comment:e,ctx:t}){const[n,r]=g.useState(!1),[o,s]=g.useState(!1),[a,i]=g.useState(!1),[l,u]=g.useState(!1),[f,m]=g.useState(!1),p=kn(e.id),h=t.branches[p],b=e.author.id===t.currentUser.id,v=new Date(e.createdAt).getTime(),_=Number.isNaN(v)?!1:Date.now()-v<t.editWindowMs;t.nowTick;const y=!e.deleted&&(e.permissions?.canEdit??(b&&_)),w=!e.deleted&&(e.permissions?.canDelete??b),x=!e.deleted&&(e.permissions?.canReply??t.permissions.canReply??!0),k=async()=>{const N=!n;r(N),N&&!h?.loaded&&await t.loadInitial(e.id)},S=async N=>{m(!0);try{h?.loaded,await t.createReply(e.id,{parentId:e.id,text:N.text,attachments:N.attachments,recipients:N.recipients}),r(!0),s(!1)}finally{m(!1)}},C=async N=>{m(!0);try{await t.editComment(e,{id:e.id,text:N.text,attachments:N.attachments,recipients:N.recipients}),i(!1)}finally{m(!1)}};return c.jsxs("div",{className:B.item,children:[c.jsx("div",{className:B.avatar,"aria-hidden":!0,children:e.author.avatarUrl?c.jsx("img",{src:e.author.avatarUrl,alt:"",style:{width:"100%",height:"100%",borderRadius:"50%",objectFit:"cover"}}):Nx(e.author.name)}),c.jsxs("div",{className:B.body,children:[a?c.jsx(Oo,{mode:"edit",initialText:e.text,initialAttachments:e.attachments??[],initialRecipients:e.recipients??[],recipientsSource:t.recipientsSource,onUploadAttachment:t.onUploadAttachment,onDeleteAttachment:t.onDeleteAttachment,onSubmit:C,onCancel:()=>i(!1),submitting:f}):c.jsxs("div",{className:M(B.bubble,{[B.bubble_deleted]:e.deleted}),children:[c.jsxs("div",{className:B.meta,children:[c.jsx("span",{className:B.author,children:e.author.name}),c.jsx("span",{className:B.date,children:ga(e.createdAt)}),e.editedAt&&!e.deleted&&c.jsxs("span",{className:B.editedTag,children:["(изм. ",ga(e.editedAt),")"]})]}),c.jsx("div",{className:B.text,children:e.deleted?"Комментарий удалён":e.text}),!e.deleted&&e.attachments&&e.attachments.length>0&&c.jsx("div",{className:B.attachments,children:e.attachments.map(N=>c.jsxs("span",{className:B.attachment,children:[c.jsx("span",{className:B.attachmentName,onClick:()=>t.onDownloadAttachment?.(N),title:N.name,children:N.name}),c.jsx("span",{className:B.attachmentSize,children:vl(N.size)})]},N.id))}),!e.deleted&&e.recipients&&e.recipients.length>0&&c.jsxs("div",{className:B.recipients,title:e.recipients.map(N=>N.name).join(", "),children:[c.jsx(ka,{}),"Уведомлены: ",e.recipients.map(N=>N.name).join(", ")]}),!e.deleted&&c.jsxs("div",{className:B.actions,children:[x&&c.jsx("button",{type:"button",className:B.iconButton,onClick:()=>s(N=>!N),title:"Ответить","aria-label":"Ответить",children:c.jsx(wa,{})}),y&&c.jsx("button",{type:"button",className:B.iconButton,onClick:()=>i(!0),title:"Редактировать","aria-label":"Редактировать",children:c.jsx(Ea,{})}),w&&c.jsx("button",{type:"button",className:M(B.iconButton,B.iconButton_danger),onClick:()=>u(!0),title:"Удалить","aria-label":"Удалить",children:c.jsx(xa,{})})]})]}),e.repliesCount>0&&c.jsxs("button",{type:"button",className:B.expandBtn,onClick:k,children:[c.jsx(dt,{style:{width:12,height:12,transform:n?"rotate(180deg)":"rotate(0)",transition:"transform 0.15s ease"}}),n?"Скрыть ответы":`Показать ответы (${e.repliesCount})`,h?.loading&&c.jsx("span",{className:B.branchSpinner,children:c.jsx(Ue,{size:"extraSmall"})})]}),o&&c.jsx(Oo,{mode:"reply",placeholder:`Ответить ${e.author.name}…`,recipientsSource:t.recipientsSource,onUploadAttachment:t.onUploadAttachment,onDeleteAttachment:t.onDeleteAttachment,onSubmit:S,onCancel:()=>s(!1),submitting:f}),n&&h&&c.jsxs("div",{className:B.children,children:[h.loadedFrom>0&&c.jsxs("button",{type:"button",className:B.loadOlderBtn,onClick:()=>t.loadOlder(e.id),disabled:h.loading,children:[h.loading?c.jsx(Ue,{size:"extraSmall"}):c.jsx(dt,{style:{transform:"rotate(180deg)",width:12,height:12}}),"Показать предыдущие (",h.loadedFrom,")"]}),h.items.map(N=>c.jsx(bl,{comment:N,ctx:t},N.id))]})]}),c.jsx(_l,{open:l,title:"Удалить комментарий?",message:"Это действие нельзя отменить.",onConfirm:async()=>{u(!1),await t.deleteComment(e)},onClose:()=>u(!1)})]})}const jx=g.forwardRef(function({loadComments:t,currentUser:n,recipientsSource:r,onCreate:o,onEdit:s,onDelete:a,onUploadAttachment:i,onDownloadAttachment:l,onDeleteAttachment:u,permissions:f={canCreate:!0,canReply:!0},editWindowMs:m=Sx,pageSize:p=kx,title:h="Комментарии",eyebrow:b="Discussion",className:v},_){const{branches:y,loadInitial:w,loadOlder:x,appendLocal:k,replaceLocal:S,removeLocal:C,resetBranch:N,resetAll:E}=Ex(p,t),[D,O]=g.useState(!1),[T,R]=g.useState(0);g.useEffect(()=>{const j=window.setInterval(()=>R(K=>K+1),3e4);return()=>window.clearInterval(j)},[]),g.useEffect(()=>{y[Cn]||w(null)},[]),g.useImperativeHandle(_,()=>({refresh:j=>{j===void 0?(E(),w(null)):(N(j),w(j))}}),[w,E,N]);const A=g.useCallback(async(j,K)=>{if(!o)return;const ve=await o(K);if(k(j,ve),j!==null){for(const V of Object.keys(y))if(y[V].items.some(ee=>ee.id===j)){S(V===Cn?null:V,j,ee=>({...ee,repliesCount:ee.repliesCount+1}));break}}},[k,y,o,S]),I=g.useCallback(async(j,K)=>{if(!s)return;const ve=await s(K);S(j.parentId,j.id,()=>ve)},[s,S]),X=g.useCallback(async j=>{if(a){if(await a(j.id),j.repliesCount>0)S(j.parentId,j.id,K=>({...K,deleted:!0,text:"",attachments:[],recipients:[]}));else if(C(j.parentId,j.id),j.parentId!==null){for(const K of Object.keys(y))if(y[K].items.some(V=>V.id===j.parentId)){S(K===Cn?null:K,j.parentId,V=>({...V,repliesCount:Math.max(0,V.repliesCount-1)}));break}}}},[y,a,C,S]),P=y[Cn],q=g.useMemo(()=>({currentUser:n,permissions:f,editWindowMs:m,recipientsSource:r,onUploadAttachment:i,onDeleteAttachment:u,onDownloadAttachment:l,branches:y,loadInitial:w,loadOlder:x,createReply:A,editComment:I,deleteComment:X,nowTick:T}),[y,A,n,X,I,m,w,x,T,u,l,i,f,r]),W=async j=>{O(!0);try{await A(null,{parentId:null,text:j.text,attachments:j.attachments,recipients:j.recipients})}finally{O(!1)}},G=f.canCreate??!0;return c.jsxs("div",{className:M(B.root,v),children:[c.jsxs("div",{className:B.header,children:[c.jsxs("div",{className:B.headerText,children:[c.jsx("span",{className:B.eyebrow,children:b}),c.jsx("span",{className:B.title,children:h})]}),P&&c.jsx("span",{className:B.counter,children:P.total})]}),G&&o&&c.jsx(Oo,{mode:"root",placeholder:"Поделитесь мнением или задайте вопрос...",submitLabel:"Опубликовать",recipientsSource:r,onUploadAttachment:i,onDeleteAttachment:u,onSubmit:W,submitting:D}),!P&&c.jsx("div",{className:B.skeleton,children:[0,1,2].map(j=>c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[c.jsx("div",{className:B.skeletonLine,style:{width:"30%"}}),c.jsx("div",{className:B.skeletonLine,style:{width:"85%"}}),c.jsx("div",{className:B.skeletonLine,style:{width:"60%"}})]},j))}),P&&P.loadedFrom>0&&c.jsxs("button",{type:"button",className:B.loadOlderBtn,onClick:()=>x(null),disabled:P.loading,children:[P.loading?c.jsx(Ue,{size:"extraSmall"}):c.jsx(dt,{style:{transform:"rotate(180deg)",width:12,height:12}}),"Показать предыдущие (",P.loadedFrom,")"]}),P&&P.items.length===0&&!P.loading&&c.jsx("div",{className:B.empty,children:c.jsx(It,{title:"Пока нет комментариев",subtitle:"Будьте первым, кто напишет."})}),P&&P.items.length>0&&c.jsx("div",{className:B.list,children:P.items.map(j=>c.jsx(bl,{comment:j,ctx:q},j.id))})]})}),Mx="_root_1073m_1",Ox="_collapsed_1073m_14",Dx="_variant_classic_1073m_19",Rx="_sectionTitle_1073m_24",Px="_item_1073m_32",Tx="_item_active_1073m_38",Ax="_user_1073m_53",Ix="_badge_1073m_56",Lx="_footer_1073m_60",Wx="_variant_transparent_1073m_66",$x="_header_1073m_73",Fx="_body_1073m_80",Bx="_bodyContent_1073m_83",zx="_section_1073m_24",Hx="_list_1073m_97",Yx="_icon_1073m_108",Vx="_iconStub_1073m_109",qx="_item_nested_1073m_144",Gx="_divider_1073m_156",Ux="_collapseBtn_1073m_159",Zx="_variant_aurora_1073m_169",Xx="_sectionDot_1073m_183",Kx="_userName_1073m_224",Qx="_userRole_1073m_227",Jx="_avatar_1073m_230",e4="_avatarInitials_1073m_233",t4="_blob_1073m_263",n4="_blob_a_1073m_272",r4="_blob_b_1073m_280",o4="_user_clickable_1073m_314",s4="_userSlot_1073m_321",a4="_avatarBadge_1073m_358",i4="_userText_1073m_371",c4="_collapseIcon_1073m_413",l4="_collapseIcon_rot_1073m_419",d4="_bodyWrap_1073m_424",u4="_itemWrap_1073m_467",f4="_item_disabled_1073m_495",m4="_item_scrollEdgeBottom_1073m_506",h4="_label_1073m_529",p4="_chev_1073m_546",g4="_chev_open_1073m_553",v4="_sub_1073m_558",_4="_sub_open_1073m_565",b4="_subList_1073m_570",y4="_custom_1073m_614",Z={root:Mx,collapsed:Ox,variant_classic:Dx,sectionTitle:Rx,item:Px,item_active:Tx,user:Ax,badge:Ix,footer:Lx,variant_transparent:Wx,header:$x,body:Fx,bodyContent:Bx,section:zx,list:Hx,icon:Yx,iconStub:Vx,item_nested:qx,divider:Gx,collapseBtn:Ux,variant_aurora:Zx,sectionDot:Xx,userName:Kx,userRole:Qx,avatar:Jx,avatarInitials:e4,blob:t4,blob_a:n4,blob_b:r4,user_clickable:o4,userSlot:s4,avatarBadge:a4,userText:i4,collapseIcon:c4,collapseIcon_rot:l4,bodyWrap:d4,itemWrap:u4,item_disabled:f4,item_scrollEdgeBottom:m4,label:h4,chev:p4,chev_open:g4,sub:v4,sub_open:_4,subList:b4,custom:y4},Do=new Set,yl=g.createContext({variant:"classic",collapsed:!1,activeId:void 0,setActive:()=>{},edgeBottomIds:Do}),wl=()=>g.useContext(yl),va=(e,t)=>e==null?t:typeof e=="number"?`${e}px`:e,w4=e=>e.trim().split(/\s+/).slice(0,2).map(n=>n[0]?.toUpperCase()??"").join(""),_a=2,x4=24,C4=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0},fs=({id:e,label:t,icon:n,href:r,active:o,badge:s,disabled:a,onClick:i,children:l,level:u=0})=>{const f=wl(),m=o??f.activeId===e,p=!!(l&&l.length>0),[h,b]=g.useState(p&&!!l?.some(C=>C.id===f.activeId)),v=g.useCallback(C=>{if(a){C.preventDefault();return}if(p){C.preventDefault(),b(N=>!N);return}f.setActive(e),i?.(C)},[f,a,p,e,i]),_=!f.collapsed&&c.jsx("span",{className:Z.label,children:t}),y=n?c.jsx("span",{className:Z.icon,children:n}):c.jsx("span",{className:Z.iconStub}),w=c.jsxs(c.Fragment,{children:[y,_,!f.collapsed&&s!=null&&c.jsx("span",{className:Z.badge,children:s}),!f.collapsed&&p&&c.jsx("span",{className:M(Z.chev,h&&Z.chev_open),"aria-hidden":!0,children:c.jsx(dt,{width:12,height:12})})]}),x={className:M(Z.item,m&&Z.item_active,a&&Z.item_disabled,u>0&&Z.item_nested,f.edgeBottomIds.has(e)&&Z.item_scrollEdgeBottom),"aria-current":m?"page":void 0,"aria-expanded":p?h:void 0,"data-id":e,onClick:v},k=r&&!p&&!a?c.jsx("a",{href:r,...x,children:w}):c.jsx("button",{type:"button",disabled:a,...x,children:w}),S=f.collapsed?c.jsx(kr,{title:t,placement:"right",children:k}):k;return c.jsxs("li",{className:Z.itemWrap,children:[S,p&&c.jsx("div",{className:M(Z.sub,h&&!f.collapsed&&Z.sub_open),"aria-hidden":!h,children:c.jsx("ul",{className:Z.subList,children:l.map(C=>c.jsx(fs,{...C,level:u+1},C.id))})})]})},xl=({id:e,title:t,items:n,children:r,className:o})=>{const s=wl();return c.jsxs("div",{id:e,className:M(Z.section,o),children:[t&&!s.collapsed&&c.jsx("div",{className:Z.sectionTitle,children:t}),s.collapsed&&t&&c.jsx("div",{className:Z.sectionDot,"aria-hidden":!0}),c.jsxs("ul",{className:Z.list,children:[n?.map(a=>c.jsx(fs,{...a},a.id)),r]})]})},k4=({className:e})=>c.jsx("div",{className:M(Z.divider,e),role:"separator"}),S4=({children:e,className:t})=>c.jsx("div",{className:M(Z.custom,t),children:e}),N4=({user:e,userSlot:t,sections:n,children:r,variant:o="classic",activeId:s,defaultActiveId:a,onActiveChange:i,collapsible:l=!1,collapsed:u,defaultCollapsed:f=!1,onCollapsedChange:m,footer:p,width:h,collapsedWidth:b,className:v})=>{const[_,y]=g.useState(a),w=s!==void 0,x=w?s:_,k=g.useCallback(V=>{w||y(V),i?.(V)},[w,i]),[S,C]=g.useState(f),N=u!==void 0,E=N?!!u:S;g.useEffect(()=>{N||C(f)},[]);const D=g.useCallback(()=>{const V=!E;N||C(V),m?.(V)},[E,N,m]),[O,T]=g.useState(Do),R={"--cozy-sidenav-w":va(h,"280px"),"--cozy-sidenav-w-collapsed":va(b,"76px")},A=n&&n.length>0,I=g.Children.count(r)>0,X=g.Children.count(r),P=g.useRef(null),q=g.useRef(null),W=g.useRef(null),G=g.useCallback(()=>{const V=P.current;if(!V)return;const{scrollTop:ne,scrollHeight:ee,clientHeight:re}=V,fe=ee>re+_a,Me=ne+re<ee-_a;if(!fe||!Me){T(de=>de.size===0?de:Do);return}const se=V.getBoundingClientRect(),$=new Set;V.querySelectorAll(`.${Z.item}[data-id]`).forEach(de=>{const ke=de.dataset.id;if(!ke)return;const Oe=de.getBoundingClientRect();Oe.bottom>se.bottom-x4&&Oe.top<se.bottom&&$.add(ke)}),T(de=>C4(de,$)?de:$)},[]),j=g.useCallback(()=>{W.current!==null&&cancelAnimationFrame(W.current),W.current=requestAnimationFrame(()=>{W.current=null,G()})},[G]);g.useEffect(()=>{const V=q.current;if(!V)return;j();const ne=new ResizeObserver(j);return ne.observe(V),()=>{ne.disconnect(),W.current!==null&&(cancelAnimationFrame(W.current),W.current=null)}},[j,n,X,E,o]);const K=g.useMemo(()=>({variant:o,collapsed:E,activeId:x,setActive:k,edgeBottomIds:O}),[o,E,x,k,O]),ve=()=>{if(t)return c.jsx("div",{className:Z.userSlot,children:t});if(!e)return null;const V=e.initials??w4(e.name),ne=e.onClick?"button":"div";return c.jsxs(ne,{className:M(Z.user,e.onClick&&Z.user_clickable),onClick:e.onClick,type:e.onClick?"button":void 0,children:[c.jsxs("span",{className:Z.avatar,children:[e.avatarUrl?c.jsx("img",{src:e.avatarUrl,alt:""}):c.jsx("span",{className:Z.avatarInitials,children:V||"?"}),e.badge!=null&&c.jsx("span",{className:Z.avatarBadge,children:e.badge})]}),!E&&c.jsxs("span",{className:Z.userText,children:[c.jsx("span",{className:Z.userName,children:e.name}),e.role&&c.jsx("span",{className:Z.userRole,children:e.role})]})]})};return c.jsx(yl.Provider,{value:K,children:c.jsxs("nav",{className:M(Z.root,Z[`variant_${o}`],E&&Z.collapsed,v),style:R,"data-variant":o,children:[o==="aurora"&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:M(Z.blob,Z.blob_a),"aria-hidden":!0}),c.jsx("span",{className:M(Z.blob,Z.blob_b),"aria-hidden":!0})]}),c.jsxs("div",{className:Z.header,children:[ve(),l&&c.jsx("button",{type:"button",className:Z.collapseBtn,onClick:D,"aria-label":E?"Развернуть":"Свернуть",title:E?"Развернуть":"Свернуть",children:c.jsx("span",{className:M(Z.collapseIcon,E&&Z.collapseIcon_rot),"aria-hidden":!0,children:c.jsx(dt,{width:12,height:12})})})]}),c.jsx("div",{className:Z.bodyWrap,children:c.jsx("div",{ref:P,className:Z.body,onScroll:j,children:c.jsxs("div",{ref:q,className:Z.bodyContent,children:[A&&n.map((V,ne)=>c.jsx(xl,{...V},V.id??`s-${ne}`)),I&&g.Children.map(r,V=>(g.isValidElement(V),V))]})})}),p&&c.jsx("div",{className:Z.footer,children:p})]})})},fn=g.memo(N4);fn.Section=xl;fn.Item=fs;fn.Divider=k4;fn.Custom=S4;fn.displayName="SideNav";const E4="_root_1sf0v_1",j4="_size_sm_1sf0v_27",M4="_color_blue_1sf0v_32",O4="_checked_1sf0v_36",D4="_disabled_1sf0v_40",R4="_thumb_1sf0v_45",P4="_thumb_checked_1sf0v_58",T4="_wrapper_1sf0v_62",A4="_field_1sf0v_70",I4="_labelWithTooltip_1sf0v_81",L4="_labelText_1sf0v_89",Be={root:E4,size_sm:j4,color_blue:M4,checked:O4,disabled:D4,thumb:R4,thumb_checked:P4,wrapper:T4,field:A4,labelWithTooltip:I4,labelText:L4},Cl=g.forwardRef(function({checked:t,defaultChecked:n,onChange:r,disabled:o,size:s="md",color:a="green",ariaLabel:i,id:l,className:u,label:f,tooltipContent:m,tooltipPopperClassName:p},h){const b=g.useId(),v=l??b,[_,y]=g.useState(!!n),w=t!==void 0,x=w?!!t:_,k=g.useCallback(()=>{if(o)return;const C=!x;w||y(C),r?.(C)},[o,x,w,r]),S=c.jsx("button",{ref:h,id:v,type:"button",role:"switch","aria-checked":x,"aria-label":f?void 0:i,"aria-disabled":o||void 0,disabled:o,onClick:k,className:M(Be.root,s==="sm"&&Be.size_sm,a==="blue"&&Be.color_blue,x&&Be.checked,o&&Be.disabled,!f&&u),children:c.jsx("span",{className:M(Be.thumb,x&&Be.thumb_checked)})});return f?c.jsx("div",{className:M(Be.wrapper,u),children:c.jsxs("div",{className:M(Be.field,{[Be.disabled]:o}),children:[S,m?c.jsx(Lt,{htmlFor:v,tooltipContent:m,tooltipPopperClassName:p,className:Be.labelWithTooltip,labelClassName:Be.labelText,children:f}):c.jsx(Mn,{htmlFor:v,className:M(jn.label_inline,Be.labelText),children:f})]})}):S});Cl.displayName="Switch";const W4="_root_1wyb7_1",$4="_option_1wyb7_11",F4="_option_disabled_1wyb7_24",B4="_option_active_1wyb7_24",z4="_size_sm_1wyb7_32",H4="_preview_1wyb7_40",Y4="_label_1wyb7_44",Ft={root:W4,option:$4,option_disabled:F4,option_active:B4,size_sm:z4,preview:H4,label:Y4};function V4({value:e,onChange:t,options:n,size:r="md",ariaLabel:o,className:s}){return c.jsx("div",{role:"radiogroup","aria-label":o,className:M(Ft.root,r==="sm"&&Ft.size_sm,s),children:n.map(a=>{const i=a.value===e;return c.jsxs("button",{type:"button",role:"radio","aria-checked":i,"aria-disabled":a.disabled||void 0,disabled:a.disabled,onClick:()=>!a.disabled&&t(a.value),className:M(Ft.option,i&&Ft.option_active,a.disabled&&Ft.option_disabled),children:[c.jsx("span",{className:Ft.preview,children:a.image}),c.jsx("span",{className:Ft.label,children:a.label})]},a.value)})})}const q4="_root_72ym9_1",G4="_layout_card_72ym9_9",U4="_variant_elevated_72ym9_18",Z4="_section_72ym9_24",X4="_layout_plain_72ym9_36",K4="_sectionHeader_72ym9_61",Q4="_sectionHeader_button_72ym9_68",J4="_sectionTitleWrap_72ym9_77",e3="_sectionTitle_72ym9_77",t3="_sectionDescription_72ym9_93",n3="_sectionChevron_72ym9_101",r3="_sectionChevron_open_72ym9_108",o3="_sectionBody_72ym9_112",s3="_sectionBody_collapsed_72ym9_117",a3="_group_72ym9_122",i3="_item_72ym9_128",c3="_groupTitle_72ym9_135",l3="_density_compact_72ym9_165",d3="_item_align_start_72ym9_181",u3="_item_interactive_72ym9_185",f3="_item_danger_72ym9_199",m3="_label_72ym9_202",h3="_item_disabled_72ym9_209",p3="_iconBadge_72ym9_214",g3="_iconSpacer_72ym9_236",v3="_body_72ym9_241",_3="_labelRow_72ym9_248",b3="_description_72ym9_263",y3="_badge_72ym9_271",w3="_control_72ym9_283",x3="_chevron_72ym9_298",C3="_externalIcon_72ym9_305",k3="_hint_72ym9_313",S3="_divider_72ym9_328",N3="_loading_72ym9_335",oe={root:q4,layout_card:G4,variant_elevated:U4,section:Z4,layout_plain:X4,sectionHeader:K4,sectionHeader_button:Q4,sectionTitleWrap:J4,sectionTitle:e3,sectionDescription:t3,sectionChevron:n3,sectionChevron_open:r3,sectionBody:o3,sectionBody_collapsed:s3,group:a3,item:i3,groupTitle:c3,density_compact:l3,item_align_start:d3,item_interactive:u3,item_danger:f3,label:m3,item_disabled:h3,iconBadge:p3,iconSpacer:g3,body:v3,labelRow:_3,description:b3,badge:y3,control:w3,chevron:x3,externalIcon:C3,hint:k3,divider:S3,loading:N3},E3=()=>c.jsxs("svg",{className:oe.externalIcon,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[c.jsx("path",{d:"M14 3h7v7"}),c.jsx("path",{d:"M10 14L21 3"}),c.jsx("path",{d:"M21 14v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h6"})]}),j3=({className:e})=>c.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:c.jsx("polyline",{points:"9 6 15 12 9 18"})}),ms=({icon:e,label:t,description:n,control:r,badge:o,hint:s,href:a,external:i,onClick:l,disabled:u,danger:f,hidden:m,align:p,className:h,render:b})=>{if(m)return null;const v=c.jsxs("div",{className:oe.body,children:[c.jsxs("div",{className:oe.labelRow,children:[c.jsx("span",{className:oe.label,children:t}),o&&c.jsx("span",{className:oe.badge,children:o})]}),n&&c.jsx("div",{className:oe.description,children:n})]}),_=r?c.jsx("div",{className:oe.control,children:r}):null;if(b)return c.jsx(c.Fragment,{children:b({label:v,control:_})});const y=!!(a||l),w=y&&!r,x=M(oe.item,p==="start"&&oe.item_align_start,y&&oe.item_interactive,f&&oe.item_danger,u&&oe.item_disabled,h),k=e?c.jsx("div",{className:oe.iconBadge,children:e}):c.jsx("span",{className:oe.iconSpacer}),S=c.jsxs(c.Fragment,{children:[_,w&&c.jsx(j3,{className:oe.chevron}),!w&&i&&a&&c.jsx(E3,{})]}),C=c.jsxs(c.Fragment,{children:[k,v,c.jsx("div",{className:oe.control,style:!r&&!w?{display:"none"}:void 0,children:S}),s&&c.jsx("div",{className:oe.hint,children:s})]});return a&&!u?c.jsx("a",{href:a,target:i?"_blank":void 0,rel:i?"noreferrer":void 0,onClick:l,className:x,children:C}):l&&!u?c.jsx("button",{type:"button",onClick:l,className:x,children:C}):c.jsx("div",{className:x,children:C})},kl=({title:e,items:t,children:n,className:r})=>{const o=(t??[]).filter(s=>!s.hidden);return c.jsxs("div",{className:M(oe.group,r),children:[e&&c.jsx("div",{className:oe.groupTitle,children:e}),o.map((s,a)=>c.jsx(ms,{...s},s.id??`item-${a}`)),n]})},Sl=({id:e,title:t,description:n,items:r,groups:o,children:s,collapsible:a,defaultOpen:i=!0,className:l})=>{const[u,f]=g.useState(i),m=(r??[]).filter(h=>!h.hidden),p=(t||n)&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:oe.sectionTitleWrap,children:[t&&c.jsx("div",{className:oe.sectionTitle,children:t}),n&&c.jsx("div",{className:oe.sectionDescription,children:n})]}),a&&c.jsx(dt,{className:M(oe.sectionChevron,u&&oe.sectionChevron_open)})]});return c.jsxs("section",{id:e,className:M(oe.section,l),children:[p&&a?c.jsx("button",{type:"button",onClick:()=>f(h=>!h),className:M(oe.sectionHeader,oe.sectionHeader_button),"aria-expanded":u,children:p}):p?c.jsx("div",{className:oe.sectionHeader,children:p}):null,c.jsxs("div",{className:M(oe.sectionBody,a&&!u&&oe.sectionBody_collapsed),children:[m.map((h,b)=>c.jsx(ms,{...h},h.id??`item-${b}`)),(o??[]).map((h,b)=>c.jsx(kl,{...h},h.id??`group-${b}`)),s]})]})},M3=({className:e})=>c.jsx("hr",{className:M(oe.divider,e)}),O3=({sections:e,children:t,layout:n="card",density:r="comfortable",variant:o="classic",loading:s,emptyState:a,className:i,id:l})=>{const u=M(oe.root,n==="card"&&o==="classic"&&oe.layout_card,n==="plain"&&oe.layout_plain,o==="elevated"&&oe.variant_elevated,r==="compact"&&oe.density_compact,i);if(s)return c.jsx("div",{className:u,id:l,children:c.jsx("div",{className:oe.loading,children:c.jsx(Ue,{})})});const f=e&&e.length>0,m=g.Children.count(t)>0;return!f&&!m?c.jsx("div",{className:u,id:l,children:a??c.jsx(It,{})}):c.jsxs("div",{className:u,id:l,children:[f&&e.map((p,h)=>c.jsx(Sl,{...p},p.id??`section-${h}`)),m&&g.Children.map(t,p=>(g.isValidElement(p),p))]})},mn=g.memo(O3);mn.Section=Sl;mn.Group=kl;mn.Item=ms;mn.Divider=M3;mn.displayName="SettingsView";exports.ApprovalRoute=ow;exports.ArrowDownBlueIcon=ed;exports.ArrowDownIcon=dt;exports.ArrowRightIcon=Jl;exports.BaseBlock=bd;exports.Button=xe;exports.Calendar=ny;exports.CameraIcon=ad;exports.CancelIcon=xa;exports.Card=Ru;exports.Carousel=Uu;exports.ChartIcon=Gl;exports.ChatIcon=wa;exports.CheckGreen=nd;exports.Checkbox=hl;exports.ClockFilledIcon=ld;exports.ClockIcon=Dl;exports.CloseRed=td;exports.CollapsableBlock=Qh;exports.Collapse=cc;exports.Colors=Oa;exports.CommentFeed=jx;exports.CopyIcon=Sa;exports.CopyTextTrigger=Ao;exports.CrossIcon=ct;exports.DetailView=Yn;exports.DialogSelect=ns;exports.DoneIcon=Ro;exports.DownloadIcon=Ma;exports.EditIcon=Ea;exports.EmptyComponent=It;exports.EmptyIcon=ja;exports.EnvelopIcon=ka;exports.FeedbackIcon=Ul;exports.FileReloadIcon=Rl;exports.FileSync=Ql;exports.FilterIcon=id;exports.FolderEditIcon=Pl;exports.GraduateIcon=Tl;exports.GridIcon=Al;exports.HeartIcon=Il;exports.HelpIcon=Ll;exports.HistoryBlue=rd;exports.HomeIcon=Ol;exports.ImageSegmented=V4;exports.InfoIcon=Na;exports.Input=Tc;exports.InputCaption=Ct;exports.IslandIcon=fd;exports.Label=Mn;exports.ListIcon=Wl;exports.MarketIcon=$l;exports.MegaphoneIcon=Xl;exports.MessageIcon=od;exports.NotebookIcon=ql;exports.PhoneIcon=sd;exports.PlaneIcon=Fl;exports.Popover=Ih;exports.ProfileIcon=Bl;exports.ProfileSearchIcon=zl;exports.RadioGroupButton=Mu;exports.ReloadIcon=cd;exports.SchoolIcon=ud;exports.SearchIcon=xr;exports.Select=L0;exports.SettingsIcon=dd;exports.SettingsView=mn;exports.SideNav=fn;exports.Spinner=Ue;exports.Stepper=Rv;exports.Switch=Cl;exports.Tabs=zv;exports.TabsRounded=pv;exports.Tag=mc;exports.TaskListIcon=Zl;exports.Textarea=Ac;exports.TimesheetIcon=Vl;exports.TooltipDark=kr;exports.TooltipLight=Uo;exports.TreeDialogSelect=av;exports.TrendUpIcon=Hl;exports.UserSwitchIcon=Kl;exports.WalletIcon=Yl;exports.WarnIcon=Ca;exports.parseYmdToLocalDay=ml;exports.startOfLocalDay=nn;exports.toYmdString=fl;exports.todayLocalDay=Zb;exports.useDropdownPosition=Su;exports.useMeasureElement=Xa;
46
46
  //# sourceMappingURL=ui-library.cjs.js.map