@andreyfedkovich/cozy-ui 0.6.2 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +166 -3
- package/dist-lib/index.d.ts +120 -3
- package/dist-lib/styles.css +2 -2
- package/dist-lib/ui-library.cjs.js +12 -12
- package/dist-lib/ui-library.cjs.js.map +1 -1
- package/dist-lib/ui-library.es.js +5008 -4668
- package/dist-lib/ui-library.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react"),c=require("react/jsx-runtime"),Nn=require("react-dom");function ha(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=ha(p),ma=ha(Nn),xl=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"})),_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",{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"})),Cl=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"})))),kl=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"})))),El=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"})),Sl=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"})),Nl=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"})))),jl=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"})))),Ml=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"})),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",{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"})),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_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"})))),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_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"})))),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_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"})))),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("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"})))),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:"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"})),Il=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"})),Ll=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"})),Wl=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"})),Fl=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"})),$l=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"})),Bl=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"})),zl=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"})),Hl=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"})),pa=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"})),br=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"})),Yl=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"})),yt=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"})),Vl=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)"})),it=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"})),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("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"})),Gl=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"})),Ul=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"})),jo=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"})),ga=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"})),va=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})),ba=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"})),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("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"})),Xl=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"})),Kl=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"})),ya=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"})),wa=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"})),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:"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"})),xa=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"})),Jl=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"})),ed=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"})),_a=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"})),td=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)"})),nd=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"})),rd=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"})),Ca=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 ka=(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))(ka||{});function od(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zr={exports:{}};var ls;function sd(){return ls||(ls=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})()})(zr)),zr.exports}var ad=sd();const O=od(ad),id="_block_tkxaf_1",cd="_subtitle_tkxaf_6",ld="_title_tkxaf_13",Hr={block:id,subtitle:cd,title:ld},dd=({id:e,title:t,subtitle:n,children:r,className:o})=>c.jsxs("div",{className:O(Hr.block,o),id:e,children:[t&&typeof t=="string"?c.jsx("div",{className:Hr.title,children:t}):t,n&&c.jsx("div",{className:Hr.subtitle,children:n}),r]});function ds(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function jn(...e){return t=>{let n=!1;const r=e.map(o=>{const s=ds(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():ds(e[o],null)}}}}function He(...e){return d.useCallback(jn(...e),e)}var ud=Symbol.for("react.lazy"),cr=d[" use ".trim().toString()];function fd(e){return typeof e=="object"&&e!==null&&"then"in e}function Ea(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ud&&"_payload"in e&&fd(e._payload)}function Sa(e){const t=md(e),n=d.forwardRef((r,o)=>{let{children:s,...a}=r;Ea(s)&&typeof cr=="function"&&(s=cr(s._payload));const i=d.Children.toArray(s),l=i.find(gd);if(l){const u=l.props.children,f=i.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);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 hd=Sa("Slot");function md(e){const t=d.forwardRef((n,r)=>{let{children:o,...s}=n;if(Ea(o)&&typeof cr=="function"&&(o=cr(o._payload)),d.isValidElement(o)){const a=bd(o),i=vd(s,o.props);return o.type!==d.Fragment&&(i.ref=r?jn(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 pd=Symbol("radix.slottable");function gd(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===pd}function vd(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 bd(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 Na(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=Na(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ja(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Na(e))&&(r&&(r+=" "),r+=t);return r}const us=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,fs=ja,Ma=(e,t)=>n=>{var r;if(t?.variants==null)return fs(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(u=>{const f=n?.[u],h=s?.[u];if(f===null)return null;const g=us(f)||us(h);return o[u][g]}),i=n&&Object.entries(n).reduce((u,f)=>{let[h,g]=f;return g===void 0||(u[h]=g),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:h,className:g,...m}=f;return Object.entries(m).every(y=>{let[v,b]=y;return Array.isArray(b)?b.includes({...s,...i}[v]):{...s,...i}[v]===b})?[...u,h,g]:u},[]);return fs(e,a,l,n?.class,n?.className)},yd=(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},wd=(e,t)=>({classGroupId:e,validator:t}),Oa=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),lr="-",hs=[],xd="arbitrary..",_d=e=>{const t=kd(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Cd(a);const i=a.split(lr),l=i[0]===""&&i.length>1?1:0;return Da(i,l,t)},getConflictingClassGroupIds:(a,i)=>{if(i){const l=r[a],u=n[a];return l?u?yd(u,l):l:u||hs}return n[a]||hs}}},Da=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const u=Da(e,t+1,s);if(u)return u}const a=n.validators;if(a===null)return;const i=t===0?e.join(lr):e.slice(t).join(lr),l=a.length;for(let u=0;u<l;u++){const f=a[u];if(f.validator(i))return f.classGroupId}},Cd=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?xd+r:void 0})(),kd=e=>{const{theme:t,classGroups:n}=e;return Ed(n,t)},Ed=(e,t)=>{const n=Oa();for(const r in e){const o=e[r];Mo(o,n,r,t)}return n},Mo=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const a=e[s];Sd(a,t,n,r)}},Sd=(e,t,n,r)=>{if(typeof e=="string"){Nd(e,t,n);return}if(typeof e=="function"){jd(e,t,n,r);return}Md(e,t,n,r)},Nd=(e,t,n)=>{const r=e===""?t:Pa(t,e);r.classGroupId=n},jd=(e,t,n,r)=>{if(Od(e)){Mo(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(wd(n,e))},Md=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let a=0;a<s;a++){const[i,l]=o[a];Mo(l,Pa(t,i),n,r)}},Pa=(e,t)=>{let n=e;const r=t.split(lr),o=r.length;for(let s=0;s<o;s++){const a=r[s];let i=n.nextPart.get(a);i||(i=Oa(),n.nextPart.set(a,i)),n=i}return n},Od=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Dd=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)}}},fo="!",ms=":",Pd=[],ps=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Rd=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 b=o[v];if(a===0&&i===0){if(b===ms){s.push(o.slice(l,v)),l=v+1;continue}if(b==="/"){u=v;continue}}b==="["?a++:b==="]"?a--:b==="("?i++:b===")"&&i--}const h=s.length===0?o:o.slice(l);let g=h,m=!1;h.endsWith(fo)?(g=h.slice(0,-1),m=!0):h.startsWith(fo)&&(g=h.slice(1),m=!0);const y=u&&u>l?u-l:void 0;return ps(s,m,g,y)};if(t){const o=t+ms,s=r;r=a=>a.startsWith(o)?s(a.slice(o.length)):ps(Pd,!1,a,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Td=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}},Ad=e=>({cache:Dd(e.cacheSize),parseClassName:Rd(e),sortModifiers:Td(e),..._d(e)}),Id=/\s+/,Ld=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(Id);let l="";for(let u=i.length-1;u>=0;u-=1){const f=i[u],{isExternal:h,modifiers:g,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:v}=n(f);if(h){l=f+(l.length>0?" "+l:l);continue}let b=!!v,w=r(b?y.substring(0,v):y);if(!w){if(!b){l=f+(l.length>0?" "+l:l);continue}if(w=r(y),!w){l=f+(l.length>0?" "+l:l);continue}b=!1}const x=g.length===0?"":g.length===1?g[0]:s(g).join(":"),_=m?x+fo:x,k=_+w;if(a.indexOf(k)>-1)continue;a.push(k);const E=o(w,b);for(let C=0;C<E.length;++C){const S=E[C];a.push(_+S)}l=f+(l.length>0?" "+l:l)}return l},Wd=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=Ra(n))&&(o&&(o+=" "),o+=r);return o},Ra=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Ra(e[r]))&&(n&&(n+=" "),n+=t);return n},Fd=(e,...t)=>{let n,r,o,s;const a=l=>{const u=t.reduce((f,h)=>h(f),e());return n=Ad(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=Ld(l,n);return o(l,f),f};return s=a,(...l)=>s(Wd(...l))},$d=[],Ne=e=>{const t=n=>n[e]||$d;return t.isThemeGetter=!0,t},Ta=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Aa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Bd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,zd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Hd=/\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$/,Yd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Vd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kt=e=>Bd.test(e),ne=e=>!!e&&!Number.isNaN(Number(e)),Et=e=>!!e&&Number.isInteger(Number(e)),Yr=e=>e.endsWith("%")&&ne(e.slice(0,-1)),mt=e=>zd.test(e),Ia=()=>!0,Gd=e=>Hd.test(e)&&!Yd.test(e),Oo=()=>!1,Ud=e=>Vd.test(e),Zd=e=>qd.test(e),Xd=e=>!I(e)&&!L(e),Kd=e=>Pt(e,Fa,Oo),I=e=>Ta.test(e),At=e=>Pt(e,$a,Gd),gs=e=>Pt(e,su,ne),Qd=e=>Pt(e,za,Ia),Jd=e=>Pt(e,Ba,Oo),vs=e=>Pt(e,La,Oo),eu=e=>Pt(e,Wa,Zd),Yn=e=>Pt(e,Ha,Ud),L=e=>Aa.test(e),fn=e=>Bt(e,$a),tu=e=>Bt(e,Ba),bs=e=>Bt(e,La),nu=e=>Bt(e,Fa),ru=e=>Bt(e,Wa),Vn=e=>Bt(e,Ha,!0),ou=e=>Bt(e,za,!0),Pt=(e,t,n)=>{const r=Ta.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Bt=(e,t,n=!1)=>{const r=Aa.exec(e);return r?r[1]?t(r[1]):n:!1},La=e=>e==="position"||e==="percentage",Wa=e=>e==="image"||e==="url",Fa=e=>e==="length"||e==="size"||e==="bg-size",$a=e=>e==="length",su=e=>e==="number",Ba=e=>e==="family-name",za=e=>e==="number"||e==="weight",Ha=e=>e==="shadow",au=()=>{const e=Ne("color"),t=Ne("font"),n=Ne("text"),r=Ne("font-weight"),o=Ne("tracking"),s=Ne("leading"),a=Ne("breakpoint"),i=Ne("container"),l=Ne("spacing"),u=Ne("radius"),f=Ne("shadow"),h=Ne("inset-shadow"),g=Ne("text-shadow"),m=Ne("drop-shadow"),y=Ne("blur"),v=Ne("perspective"),b=Ne("aspect"),w=Ne("ease"),x=Ne("animate"),_=()=>["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"],E=()=>[...k(),L,I],C=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],N=()=>[L,I,l],D=()=>[kt,"full","auto",...N()],M=()=>[Et,"none","subgrid",L,I],A=()=>["auto",{span:["full",Et,L,I]},Et,L,I],P=()=>[Et,"auto",L,I],T=()=>["auto","min","max","fr",L,I],$=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...N()],V=()=>[kt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],F=()=>[kt,"screen","full","dvw","lvw","svw","min","max","fit",...N()],U=()=>[kt,"screen","full","lh","dvh","lvh","svh","min","max","fit",...N()],j=()=>[e,L,I],ee=()=>[...k(),bs,vs,{position:[L,I]}],de=()=>["no-repeat",{repeat:["","x","y","space","round"]}],G=()=>["auto","cover","contain",nu,Kd,{size:[L,I]}],ae=()=>[Yr,fn,At],K=()=>["","none","full",u,L,I],te=()=>["",ne,fn,At],ue=()=>["solid","dashed","dotted","double"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>[ne,Yr,bs,vs],W=()=>["","none",y,L,I],ie=()=>["none",ne,L,I],_e=()=>["none",ne,L,I],Me=()=>[ne,L,I],Ve=()=>[kt,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[mt],breakpoint:[mt],color:[Ia],container:[mt],"drop-shadow":[mt],ease:["in","out","in-out"],font:[Xd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[mt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[mt],shadow:[mt],spacing:["px",ne],text:[mt],"text-shadow":[mt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",kt,I,L,b]}],container:["container"],columns:[{columns:[ne,I,L,i]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"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:E()}],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:[Et,"auto",L,I]}],basis:[{basis:[kt,"full","auto",i,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ne,kt,"auto","initial","none",I]}],grow:[{grow:["",ne,L,I]}],shrink:[{shrink:["",ne,L,I]}],order:[{order:[Et,"first","last","none",L,I]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:A()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:A()}],"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":T()}],"auto-rows":[{"auto-rows":T()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...$(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...$()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":$()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pbs:[{pbs:N()}],pbe:[{pbe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],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":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],"inline-size":[{inline:["auto",...F()]}],"min-inline-size":[{"min-inline":["auto",...F()]}],"max-inline-size":[{"max-inline":["none",...F()]}],"block-size":[{block:["auto",...U()]}],"min-block-size":[{"min-block":["auto",...U()]}],"max-block-size":[{"max-block":["none",...U()]}],w:[{w:[i,"screen",...V()]}],"min-w":[{"min-w":[i,"screen","none",...V()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",n,fn,At]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ou,Qd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Yr,I]}],"font-family":[{font:[tu,Jd,t]}],"font-features":[{"font-features":[I]}],"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,L,I]}],"line-clamp":[{"line-clamp":[ne,"none",L,gs]}],leading:[{leading:[s,...N()]}],"list-image":[{"list-image":["none",L,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",L,I]}],"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:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[ne,"from-font","auto",L,At]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[ne,"auto",L,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L,I]}],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",L,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ee()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:G()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Et,L,I],radial:["",L,I],conic:[Et,L,I]},ru,eu]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:ae()}],"gradient-via-pos":[{via:ae()}],"gradient-to-pos":[{to:ae()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-bs":[{"border-bs":te()}],"border-w-be":[{"border-be":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"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:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ne,L,I]}],"outline-w":[{outline:["",ne,fn,At]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",f,Vn,Yn]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",h,Vn,Yn]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[ne,At]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",g,Vn,Yn]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[ne,L,I]}],"mix-blend":[{"mix-blend":[...ke(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ke()}],"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":[ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":re()}],"mask-image-linear-to-pos":[{"mask-linear-to":re()}],"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":re()}],"mask-image-t-to-pos":[{"mask-t-to":re()}],"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":re()}],"mask-image-r-to-pos":[{"mask-r-to":re()}],"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":re()}],"mask-image-b-to-pos":[{"mask-b-to":re()}],"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":re()}],"mask-image-l-to-pos":[{"mask-l-to":re()}],"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":re()}],"mask-image-x-to-pos":[{"mask-x-to":re()}],"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":re()}],"mask-image-y-to-pos":[{"mask-y-to":re()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[L,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":re()}],"mask-image-radial-to-pos":[{"mask-radial-to":re()}],"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":[ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":re()}],"mask-image-conic-to-pos":[{"mask-conic-to":re()}],"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:ee()}],"mask-repeat":[{mask:de()}],"mask-size":[{mask:G()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",L,I]}],filter:[{filter:["","none",L,I]}],blur:[{blur:W()}],brightness:[{brightness:[ne,L,I]}],contrast:[{contrast:[ne,L,I]}],"drop-shadow":[{"drop-shadow":["","none",m,Vn,Yn]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",ne,L,I]}],"hue-rotate":[{"hue-rotate":[ne,L,I]}],invert:[{invert:["",ne,L,I]}],saturate:[{saturate:[ne,L,I]}],sepia:[{sepia:["",ne,L,I]}],"backdrop-filter":[{"backdrop-filter":["","none",L,I]}],"backdrop-blur":[{"backdrop-blur":W()}],"backdrop-brightness":[{"backdrop-brightness":[ne,L,I]}],"backdrop-contrast":[{"backdrop-contrast":[ne,L,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ne,L,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ne,L,I]}],"backdrop-invert":[{"backdrop-invert":["",ne,L,I]}],"backdrop-opacity":[{"backdrop-opacity":[ne,L,I]}],"backdrop-saturate":[{"backdrop-saturate":[ne,L,I]}],"backdrop-sepia":[{"backdrop-sepia":["",ne,L,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",L,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ne,"initial",L,I]}],ease:[{ease:["linear","initial",w,L,I]}],delay:[{delay:[ne,L,I]}],animate:[{animate:["none",x,L,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,L,I]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:_e()}],"scale-x":[{"scale-x":_e()}],"scale-y":[{"scale-y":_e()}],"scale-z":[{"scale-z":_e()}],"scale-3d":["scale-3d"],skew:[{skew:Me()}],"skew-x":[{"skew-x":Me()}],"skew-y":[{"skew-y":Me()}],transform:[{transform:[L,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ve()}],"translate-x":[{"translate-x":Ve()}],"translate-y":[{"translate-y":Ve()}],"translate-z":[{"translate-z":Ve()}],"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",L,I]}],"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":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mbs":[{"scroll-mbs":N()}],"scroll-mbe":[{"scroll-mbe":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pbs":[{"scroll-pbs":N()}],"scroll-pbe":[{"scroll-pbe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",L,I]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[ne,fn,At,gs]}],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"]}},iu=Fd(au);function J(...e){return iu(ja(e))}const ho=Ma("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"}}),yr=d.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const a=r?hd:"button";return c.jsx(a,{className:J(ho({variant:t,size:n,className:e})),ref:s,...o})});yr.displayName="Button";const cu="_cssloadSpeedingWheel_akex8_6",lu="_bigSize_akex8_20",du="_smallSize_akex8_26",uu="_extraSmallSize_akex8_32",qn={cssloadSpeedingWheel:cu,bigSize:lu,smallSize:du,extraSmallSize:uu};function fu(e){return e==="medium"?"small":e==="large"?"big":e}const Ke=({marginTop:e,marginBottom:t,marginLeft:n,className:r,size:o="big"})=>{const s=p.useMemo(()=>({marginTop:e,marginBottom:t,marginLeft:n}),[t,n,e]),a=fu(o);return c.jsx("div",{className:r,style:s,children:c.jsx("div",{className:O(qn.cssloadSpeedingWheel,{[qn.bigSize]:a==="big",[qn.smallSize]:a==="small",[qn.extraSmallSize]:a==="extraSmall"})})})},hu="_button_fafaj_1",mu="_button__loader_fafaj_186",pu="_button__content_fafaj_193",Vt={button:hu,"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:mu,button__content:pu},xe=p.forwardRef(({variant:e="default",size:t="medium",className:n="",loading:r=!1,disabled:o=!1,children:s,type:a="button",...i},l)=>{const u=O(Vt.button,Vt[`button--variant-${e}`],Vt[`button--size-${t}`],{[Vt["button--loading"]]:r,[Vt["button--disabled"]]:o},n);return c.jsxs(yr,{ref:l,variant:null,size:null,className:u,disabled:o||r,type:a,...i,children:[s&&s,r&&c.jsx("span",{className:Vt.button__loader,children:c.jsx(Ke,{size:"extraSmall"})})]})});xe.displayName="Button";const Ya=e=>{const[t,n]=p.useState(0),[r,o]=p.useState(0),s=p.useRef(null);return p.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 h=Array.isArray(f.borderBoxSize)?f.borderBoxSize[0]:f.borderBoxSize;n(h.blockSize),o(h.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]),p.useMemo(()=>({height:t,width:r}),[t,r])},ys={capture:!0,passive:!0},gu=({triggerRef:e,dropdownHeight:t,offset:n=8,enabled:r=!0,onAnchorFrame:o})=>{const[s,a]=p.useState("bottom"),i=p.useRef(null),l=p.useCallback(()=>{if(!e.current)return"bottom";const f=e.current.getBoundingClientRect(),h=window.innerHeight,g=f.top-n;return h-f.bottom-n>=t?"bottom":g>=t?"top":"bottom"},[e,t,n]),u=p.useCallback(()=>{i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{const f=l();a(f),o?.(f)})},[l,o]);return p.useEffect(()=>{if(!r)return;const f=e.current;if(!f)return;u();const h=new ResizeObserver(()=>{u()});h.observe(f);const g=new MutationObserver(()=>{u()});g.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]});const m=[];let y=f.parentElement;for(;y;){const v=window.getComputedStyle(y),b=v.overflow+v.overflowY+v.overflowX;/(auto|scroll)/.test(b)&&(m.push(y),y.addEventListener("scroll",u)),y=y.parentElement}return window.addEventListener("scroll",u,ys),window.addEventListener("resize",u),window.addEventListener("transitionend",u),window.addEventListener("animationend",u),()=>{i.current&&cancelAnimationFrame(i.current),h.disconnect(),g.disconnect(),window.removeEventListener("scroll",u,ys),window.removeEventListener("resize",u),window.removeEventListener("transitionend",u),window.removeEventListener("animationend",u),m.forEach(v=>{v.removeEventListener("scroll",u)})}},[r,e,u]),s},vu="_container_1dkro_1",bu="_activeButton_1dkro_16",yu="_slider_1dkro_22",Vr={container:vu,activeButton:bu,slider:yu},wu=({options:e,value:t,defaultValue:n,data:r,activeButton:o,defaultActiveButton:s,onChange:a})=>{const i=p.useMemo(()=>e?.length?e.map(w=>({id:w.value,label:w.label,additionalComponent:w.additionalComponent})):r??[],[e,r]),[l,u]=p.useState(()=>n??s??i[0]?.id),[f,h]=p.useState({transform:"translateX(0)",width:0}),g=p.useRef(new Map),m=t??o??l,{width:y}=Ya(g.current.get(m)),v=w=>{w.id!==m&&(a?.(w.id),u(w.id))},b=p.useCallback((w,x)=>{g.current.set(x,w)},[]);return p.useEffect(()=>{const w=i.findIndex(x=>x.id===m);if(w>=0){const _=i.slice(0,w).reduce((k,E)=>{const C=g.current.get(E.id);if(C){const S=C.getBoundingClientRect().width;k+=S}return k},0);h({transform:`translateX(${_}px)`,width:y})}},[m,y,i]),c.jsxs("div",{className:Vr.container,children:[i.map(w=>c.jsx("div",{ref:x=>b(x,w.id),children:c.jsxs(xe,{size:"small",onClick:()=>v(w),className:O({[Vr.activeButton]:w.id===m}),children:[w.label,w.additionalComponent]})},w.id)),c.jsx("div",{className:Vr.slider,style:f})]})},xu="_card_1cqzz_1",_u="_link_1cqzz_17",ws={card:xu,link:_u},Cu=p.memo(({text:e,width:t,height:n,className:r,backgroundColor:o,imageUrl:s,textColor:a,link:i})=>{const l=O(ws.card,{[ws.link]:i},r),u=p.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})})}),ku="_carouselWrapper_12142_1",Eu="_carousel_12142_1",Su="_viewport_12142_13",Nu="_slide_12142_19",ju="_activeSlide_12142_24",Mu="_itemContent_12142_28",Ou="_controls_12142_36",Du="_carouselControl_12142_48",Pu="_prevIcon_12142_71",Ru="_nextIcon_12142_72",Tu="_indicators_12142_90",Au="_activeIndicator_12142_115",Ie={carouselWrapper:ku,carousel:Eu,viewport:Su,slide:Nu,activeSlide:ju,itemContent:Mu,controls:Ou,carouselControl:Du,prevIcon:Pu,nextIcon:Ru,indicators:Tu,activeIndicator:Au},Iu=e=>"items"in e&&Array.isArray(e.items)&&"renderItem"in e&&typeof e.renderItem=="function",Lu=e=>Iu(e)?e.items.map((t,n)=>({key:`${t.id}-${n}`,content:e.renderItem(t),caption:t.caption})):p.Children.toArray(e.children).map((t,n)=>({key:p.isValidElement(t)&&t.key!==null&&t.key!==void 0&&t.key!=="."?String(t.key):`slide-${n}`,content:t})),Wu=e=>{const t={...e};return delete t.items,delete t.renderItem,delete t.children,t},Fu=e=>{const t=Lu(e),n=t.length,r=Wu(e),{className:o,dark:s,enableTouch:a,fade:i,interval:l,keyboard:u=!0,pause:f,ride:h,slide:g,...m}=r,[y,v]=p.useState(0),b=()=>{v(C=>C===n-1?0:C+1)},w=()=>{v(C=>C===0?n-1:C-1)},x=C=>{v(C)},_=n>1,k=p.useMemo(()=>t.map(C=>({key:C.key})),[t]),E=C=>{m.onKeyDown?.(C),!(C.defaultPrevented||!u||!_)&&(C.key==="ArrowLeft"&&w(),C.key==="ArrowRight"&&b())};return n?_?c.jsx("div",{className:Ie.carouselWrapper,children:c.jsxs("div",{...m,className:[Ie.carousel,o].filter(Boolean).join(" "),onKeyDown:E,role:"region","aria-roledescription":"carousel",children:[c.jsx("div",{className:Ie.viewport,children:t.map((C,S)=>c.jsx("div",{className:[Ie.slide,S===y?Ie.activeSlide:""].filter(Boolean).join(" "),"aria-hidden":S!==y,children:c.jsx("div",{className:Ie.itemContent,children:C.content})},C.key))}),c.jsxs("div",{className:Ie.controls,children:[c.jsx("button",{className:Ie.carouselControl,type:"button",onClick:w,"aria-label":"Previous slide",children:c.jsx("span",{className:Ie.prevIcon,"aria-hidden":"true"})}),c.jsx("div",{className:Ie.indicators,children:k.map((C,S)=>c.jsx("button",{className:S===y?Ie.activeIndicator:void 0,type:"button",onClick:()=>x(S),"aria-label":`Go to slide ${S+1}`,"aria-current":S===y},C.key))}),c.jsx("button",{className:Ie.carouselControl,type:"button",onClick:b,"aria-label":"Next slide",children:c.jsx("span",{className:Ie.nextIcon,"aria-hidden":"true"})})]})]})}):c.jsx("div",{className:Ie.carouselWrapper,children:t[0].content}):null},We=8;function $u(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-We,transform:"translate(-50%, -100%)"};case"topLeft":return{left:n,top:o-We,transform:"translateY(-100%)"};case"topRight":return{left:r,top:o-We,transform:"translate(-100%, -100%)"};case"bottom":return{left:l,top:s+We,transform:"translate(-50%, 0)"};case"bottomLeft":return{left:n,top:s+We,transform:"translateY(0)"};case"bottomRight":return{left:r,top:s+We,transform:"translate(-100%, 0)"};case"left":return{left:n-We,top:u,transform:"translate(-100%, -50%)"};case"leftTop":return{left:n-We,top:o,transform:"translate(-100%, 0)"};case"leftBottom":return{left:n-We,top:s,transform:"translate(-100%, -100%)"};case"right":return{left:r+We,top:u,transform:"translate(0, -50%)"};case"rightTop":return{left:r+We,top:o,transform:"translate(0, 0)"};case"rightBottom":return{left:r+We,top:s,transform:"translate(0, -100%)"};default:return{left:l,top:o-We,transform:"translate(-50%, -100%)"}}}const Bu="_overlay_1pnex_1",zu="_fadeIn_1pnex_1",Hu="_arrow_1pnex_16",Yu="_top_1pnex_22",Vu="_bottom_1pnex_28",qu="_left_1pnex_34",Gu="_right_1pnex_40",qr={overlay:Bu,fadeIn:zu,arrow:Hu,top:Yu,bottom:Vu,left:qu,right:Gu};function Uu(e){return e.startsWith("top")?"bottom":e.startsWith("bottom")?"top":e.startsWith("left")?"right":e.startsWith("right")?"left":"top"}const wr=p.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:h,getPopupContainer:g=()=>document.body})=>{const m=n!==void 0,[y,v]=p.useState(r),b=m?n:y,w=p.useCallback(j=>{m||v(j),i?.(j)},[m,i]),x=p.useRef(null),[_,k]=p.useState(null),E=p.useRef(null),C=p.useRef(null),S=Array.isArray(o)?o:[o],N=S.includes("hover"),D=S.includes("click"),M=p.useCallback(()=>{E.current&&(clearTimeout(E.current),E.current=null)},[]),A=p.useCallback(()=>{C.current&&(clearTimeout(C.current),C.current=null)},[]),P=p.useCallback(()=>{N&&(A(),E.current=setTimeout(()=>w(!0),s))},[N,s,w,A]),T=p.useCallback(()=>{N&&(M(),C.current=setTimeout(()=>w(!1),a))},[N,a,w,M]),$=p.useCallback(j=>{D&&(j.preventDefault(),w(!b))},[D,b,w]);p.useEffect(()=>{if(!D||!b||m)return;const j=ee=>{const de=x.current;de&&!de.contains(ee.target)&&w(!1)};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[D,b,m,w]),p.useLayoutEffect(()=>{if(!b||!x.current){k(null);return}const j=x.current.getBoundingClientRect();k($u(j,l))},[b,l]),p.useEffect(()=>()=>{M(),A()},[M,A]);const q=typeof document<"u"?g():null,R=Uu(l),V=e??t,F=b&&V!=null&&V!==""&&_&&q&&Nn.createPortal(c.jsxs("span",{className:O(qr.overlay,h),style:{left:_.left,top:_.top,transform:_.transform},role:"tooltip",children:[V,u&&c.jsx("span",{className:O(qr.arrow,qr[R])})]}),q),U=!m&&(N||D)?{onMouseEnter:P,onMouseLeave:T,onClick:D?$:void 0}:{};return c.jsxs(c.Fragment,{children:[c.jsx("span",{ref:x,...U,children:f}),F]})});wr.displayName="TooltipDark";const Zu="_wrapper_ukjvp_1",Xu="_trigger_ukjvp_5",Ku="_trigger_iconOnly_ukjvp_32",Qu="_icon_ukjvp_43",Gn={wrapper:Zu,trigger:Xu,trigger_iconOnly:Ku,icon:Qu},Do=p.memo(({children:e,onClick:t,copied:n,tooltipText:r="Скопировано",ariaLabel:o,showIcon:s=!0,iconOnly:a=!1,className:i})=>{const l=p.useCallback(()=>{t()},[t]);return c.jsx("span",{className:Gn.wrapper,children:c.jsx(wr,{open:n,title:r,placement:"top",children:c.jsxs(yr,{type:"button",variant:null,size:null,className:O(Gn.trigger,a&&Gn.trigger_iconOnly,i),onClick:l,"aria-label":o,"aria-live":"polite",children:[!a&&e,s&&c.jsx(ya,{className:Gn.icon,"aria-hidden":!0})]})})})});Do.displayName="CopyTextTrigger";function Va(e){return typeof document>"u"?null:Nn.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 Ju(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 xr(e,t=[]){let n=[];function r(s,a){const i=d.createContext(a),l=n.length;n=[...n,a];const u=h=>{const{scope:g,children:m,...y}=h,v=g?.[e]?.[l]||i,b=d.useMemo(()=>y,Object.values(y));return c.jsx(v.Provider,{value:b,children:m})};u.displayName=s+"Provider";function f(h,g){const m=g?.[e]?.[l]||i,y=d.useContext(m);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${h}\` 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,ef(o,...t)]}function ef(...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 h=l(s)[`__scope${u}`];return{...i,...h}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function tf(e){const t=nf(e),n=d.forwardRef((r,o)=>{const{children:s,...a}=r,i=d.Children.toArray(s),l=i.find(of);if(l){const u=l.props.children,f=i.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);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 nf(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const a=af(o),i=sf(s,o.props);return o.type!==d.Fragment&&(i.ref=r?jn(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 rf=Symbol("radix.slottable");function of(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===rf}function sf(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 af(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 cf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ae=cf.reduce((e,t)=>{const n=tf(`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 lf(e,t){e&&ma.flushSync(()=>e.dispatchEvent(t))}function tn(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>t.current?.(...n),[])}function df(e,t=globalThis?.document){const n=tn(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 uf="DismissableLayer",mo="dismissableLayer.update",ff="dismissableLayer.pointerDownOutside",hf="dismissableLayer.focusOutside",xs,qa=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_r=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,h]=d.useState(null),g=f?.ownerDocument??globalThis?.document,[,m]=d.useState({}),y=He(t,S=>h(S)),v=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),w=v.indexOf(b),x=f?v.indexOf(f):-1,_=u.layersWithOutsidePointerEventsDisabled.size>0,k=x>=w,E=gf(S=>{const N=S.target,D=[...u.branches].some(M=>M.contains(N));!k||D||(o?.(S),a?.(S),S.defaultPrevented||i?.())},g),C=vf(S=>{const N=S.target;[...u.branches].some(M=>M.contains(N))||(s?.(S),a?.(S),S.defaultPrevented||i?.())},g);return df(S=>{x===u.layers.size-1&&(r?.(S),!S.defaultPrevented&&i&&(S.preventDefault(),i()))},g),d.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(xs=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),_s(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=xs)}},[f,g,n,u]),d.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),_s())},[f,u]),d.useEffect(()=>{const S=()=>m({});return document.addEventListener(mo,S),()=>document.removeEventListener(mo,S)},[]),c.jsx(Ae.div,{...l,ref:y,style:{pointerEvents:_?k?"auto":"none":void 0,...e.style},onFocusCapture:je(e.onFocusCapture,C.onFocusCapture),onBlurCapture:je(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:je(e.onPointerDownCapture,E.onPointerDownCapture)})});_r.displayName=uf;var mf="DismissableLayerBranch",pf=d.forwardRef((e,t)=>{const n=d.useContext(qa),r=d.useRef(null),o=He(t,r);return d.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),c.jsx(Ae.div,{...e,ref:o})});pf.displayName=mf;function gf(e,t=globalThis?.document){const n=tn(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let l=function(){Ga(ff,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 vf(e,t=globalThis?.document){const n=tn(e),r=d.useRef(!1);return d.useEffect(()=>{const o=s=>{s.target&&!r.current&&Ga(hf,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 _s(){const e=new CustomEvent(mo);document.dispatchEvent(e)}function Ga(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?lf(o,s):o.dispatchEvent(s)}var Mt=globalThis?.document?d.useLayoutEffect:()=>{},bf=d[" useId ".trim().toString()]||(()=>{}),yf=0;function _n(e){const[t,n]=d.useState(bf());return Mt(()=>{n(r=>r??String(yf++))},[e]),e||(t?`radix-${t}`:"")}const wf=["top","right","bottom","left"],Ot=Math.min,$e=Math.max,dr=Math.round,Un=Math.floor,ct=e=>({x:e,y:e}),xf={left:"right",right:"left",bottom:"top",top:"bottom"};function po(e,t,n){return $e(e,Ot(t,n))}function wt(e,t){return typeof e=="function"?e(t):e}function xt(e){return e.split("-")[0]}function an(e){return e.split("-")[1]}function Po(e){return e==="x"?"y":"x"}function Ro(e){return e==="y"?"height":"width"}function st(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function To(e){return Po(st(e))}function _f(e,t,n){n===void 0&&(n=!1);const r=an(e),o=To(e),s=Ro(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=ur(a)),[a,ur(a)]}function Cf(e){const t=ur(e);return[go(e),t,go(t)]}function go(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Cs=["left","right"],ks=["right","left"],kf=["top","bottom"],Ef=["bottom","top"];function Sf(e,t,n){switch(e){case"top":case"bottom":return n?t?ks:Cs:t?Cs:ks;case"left":case"right":return t?kf:Ef;default:return[]}}function Nf(e,t,n,r){const o=an(e);let s=Sf(xt(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(go)))),s}function ur(e){const t=xt(e);return xf[t]+e.slice(t.length)}function jf(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ua(e){return typeof e!="number"?jf(e):{top:e,right:e,bottom:e,left:e}}function fr(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 Es(e,t,n){let{reference:r,floating:o}=e;const s=st(t),a=To(t),i=Ro(a),l=xt(t),u=s==="y",f=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,g=r[i]/2-o[i]/2;let m;switch(l){case"top":m={x:f,y:r.y-o.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:h};break;case"left":m={x:r.x-o.width,y:h};break;default:m={x:r.x,y:r.y}}switch(an(t)){case"start":m[a]-=g*(n&&u?-1:1);break;case"end":m[a]+=g*(n&&u?-1:1);break}return m}async function Mf(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:h="floating",altBoundary:g=!1,padding:m=0}=wt(t,e),y=Ua(m),b=i[g?h==="floating"?"reference":"floating":h],w=fr(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:u,rootBoundary:f,strategy:l})),x=h==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),k=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},E=fr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:_,strategy:l}):x);return{top:(w.top-E.top+y.top)/k.y,bottom:(E.bottom-w.bottom+y.bottom)/k.y,left:(w.left-E.left+y.left)/k.x,right:(E.right-w.right+y.right)/k.x}}const Of=50,Df=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=a.detectOverflow?a:{...a,detectOverflow:Mf},l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:h}=Es(u,r,l),g=r,m=0;const y={};for(let v=0;v<s.length;v++){const b=s[v];if(!b)continue;const{name:w,fn:x}=b,{x:_,y:k,data:E,reset:C}=await x({x:f,y:h,initialPlacement:r,placement:g,strategy:o,middlewareData:y,rects:u,platform:i,elements:{reference:e,floating:t}});f=_??f,h=k??h,y[w]={...y[w],...E},C&&m<Of&&(m++,typeof C=="object"&&(C.placement&&(g=C.placement),C.rects&&(u=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:f,y:h}=Es(u,g,l)),v=-1)}return{x:f,y:h,placement:g,strategy:o,middlewareData:y}},Pf=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 h=Ua(f),g={x:n,y:r},m=To(o),y=Ro(m),v=await a.getDimensions(u),b=m==="y",w=b?"top":"left",x=b?"bottom":"right",_=b?"clientHeight":"clientWidth",k=s.reference[y]+s.reference[m]-g[m]-s.floating[y],E=g[m]-s.reference[m],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let S=C?C[_]:0;(!S||!await(a.isElement==null?void 0:a.isElement(C)))&&(S=i.floating[_]||s.floating[y]);const N=k/2-E/2,D=S/2-v[y]/2-1,M=Ot(h[w],D),A=Ot(h[x],D),P=M,T=S-v[y]-A,$=S/2-v[y]/2+N,q=po(P,$,T),R=!l.arrow&&an(o)!=null&&$!==q&&s.reference[y]/2-($<P?M:A)-v[y]/2<0,V=R?$<P?$-P:$-T:0;return{[m]:g[m]+V,data:{[m]:q,centerOffset:$-q-V,...R&&{alignmentOffset:V}},reset:R}}}),Rf=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:h=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...b}=wt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=xt(o),x=st(i),_=xt(i)===i,k=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=g||(_||!v?[ur(i)]:Cf(i)),C=y!=="none";!g&&C&&E.push(...Nf(i,v,y,k));const S=[i,...E],N=await l.detectOverflow(t,b),D=[];let M=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&D.push(N[w]),h){const $=_f(o,a,k);D.push(N[$[0]],N[$[1]])}if(M=[...M,{placement:o,overflows:D}],!D.every($=>$<=0)){var A,P;const $=(((A=s.flip)==null?void 0:A.index)||0)+1,q=S[$];if(q&&(!(h==="alignment"?x!==st(q):!1)||M.every(F=>st(F.placement)===x?F.overflows[0]>0:!0)))return{data:{index:$,overflows:M},reset:{placement:q}};let R=(P=M.filter(V=>V.overflows[0]<=0).sort((V,F)=>V.overflows[1]-F.overflows[1])[0])==null?void 0:P.placement;if(!R)switch(m){case"bestFit":{var T;const V=(T=M.filter(F=>{if(C){const U=st(F.placement);return U===x||U==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(U=>U>0).reduce((U,j)=>U+j,0)]).sort((F,U)=>F[1]-U[1])[0])==null?void 0:T[0];V&&(R=V);break}case"initialPlacement":R=i;break}if(o!==R)return{reset:{placement:R}}}return{}}}};function Ss(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ns(e){return wf.some(t=>e[t]>=0)}const Tf=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=Ss(a,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ns(i)}}}case"escaped":{const a=await r.detectOverflow(t,{...s,altBoundary:!0}),i=Ss(a,n.floating);return{data:{escapedOffsets:i,escaped:Ns(i)}}}default:return{}}}}},Za=new Set(["left","top"]);async function Af(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=an(n),l=st(n)==="y",u=Za.has(a)?-1:1,f=s&&l?-1:1,h=wt(t,e);let{mainAxis:g,crossAxis:m,alignmentAxis:y}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return i&&typeof y=="number"&&(m=i==="end"?y*-1:y),l?{x:m*f,y:g*u}:{x:g*u,y:m*f}}const If=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 Af(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}}}}},Lf=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:w=>{let{x,y:_}=w;return{x,y:_}}},...u}=wt(e,t),f={x:n,y:r},h=await s.detectOverflow(t,u),g=st(xt(o)),m=Po(g);let y=f[m],v=f[g];if(a){const w=m==="y"?"top":"left",x=m==="y"?"bottom":"right",_=y+h[w],k=y-h[x];y=po(_,y,k)}if(i){const w=g==="y"?"top":"left",x=g==="y"?"bottom":"right",_=v+h[w],k=v-h[x];v=po(_,v,k)}const b=l.fn({...t,[m]:y,[g]:v});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[m]:a,[g]:i}}}}}},Wf=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},h=st(o),g=Po(h);let m=f[g],y=f[h];const v=wt(i,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const _=g==="y"?"height":"width",k=s.reference[g]-s.floating[_]+b.mainAxis,E=s.reference[g]+s.reference[_]-b.mainAxis;m<k?m=k:m>E&&(m=E)}if(u){var w,x;const _=g==="y"?"width":"height",k=Za.has(xt(o)),E=s.reference[h]-s.floating[_]+(k&&((w=a.offset)==null?void 0:w[h])||0)+(k?0:b.crossAxis),C=s.reference[h]+s.reference[_]+(k?0:((x=a.offset)==null?void 0:x[h])||0)-(k?b.crossAxis:0);y<E?y=E:y>C&&(y=C)}return{[g]:m,[h]:y}}}},Ff=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),h=xt(o),g=an(o),m=st(o)==="y",{width:y,height:v}=s.floating;let b,w;h==="top"||h==="bottom"?(b=h,w=g===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(w=h,b=g==="end"?"top":"bottom");const x=v-f.top-f.bottom,_=y-f.left-f.right,k=Ot(v-f[b],x),E=Ot(y-f[w],_),C=!t.middlewareData.shift;let S=k,N=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=_),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(S=x),C&&!g){const M=$e(f.left,0),A=$e(f.right,0),P=$e(f.top,0),T=$e(f.bottom,0);m?N=y-2*(M!==0||A!==0?M+A:$e(f.left,f.right)):S=v-2*(P!==0||T!==0?P+T:$e(f.top,f.bottom))}await l({...t,availableWidth:N,availableHeight:S});const D=await a.getDimensions(i.floating);return y!==D.width||v!==D.height?{reset:{rects:!0}}:{}}}};function Cr(){return typeof window<"u"}function cn(e){return Xa(e)?(e.nodeName||"").toLowerCase():"#document"}function Be(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function lt(e){var t;return(t=(Xa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xa(e){return Cr()?e instanceof Node||e instanceof Be(e).Node:!1}function Te(e){return Cr()?e instanceof Element||e instanceof Be(e).Element:!1}function Ct(e){return Cr()?e instanceof HTMLElement||e instanceof Be(e).HTMLElement:!1}function js(e){return!Cr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Be(e).ShadowRoot}function Mn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Qe(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function $f(e){return/^(table|td|th)$/.test(cn(e))}function kr(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Bf=/transform|translate|scale|rotate|perspective|filter/,zf=/paint|layout|strict|content/,It=e=>!!e&&e!=="none";let Gr;function Ao(e){const t=Te(e)?Qe(e):e;return It(t.transform)||It(t.translate)||It(t.scale)||It(t.rotate)||It(t.perspective)||!Io()&&(It(t.backdropFilter)||It(t.filter))||Bf.test(t.willChange||"")||zf.test(t.contain||"")}function Hf(e){let t=Dt(e);for(;Ct(t)&&!nn(t);){if(Ao(t))return t;if(kr(t))return null;t=Dt(t)}return null}function Io(){return Gr==null&&(Gr=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Gr}function nn(e){return/^(html|body|#document)$/.test(cn(e))}function Qe(e){return Be(e).getComputedStyle(e)}function Er(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Dt(e){if(cn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||js(e)&&e.host||lt(e);return js(t)?t.host:t}function Ka(e){const t=Dt(e);return nn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ct(t)&&Mn(t)?t:Ka(t)}function Cn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ka(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=Be(o);if(s){const i=vo(a);return t.concat(a,a.visualViewport||[],Mn(o)?o:[],i&&n?Cn(i):[])}else return t.concat(o,Cn(o,[],n))}function vo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qa(e){const t=Qe(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ct(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=dr(n)!==s||dr(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function Lo(e){return Te(e)?e:e.contextElement}function Qt(e){const t=Lo(e);if(!Ct(t))return ct(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Qa(t);let a=(s?dr(n.width):n.width)/r,i=(s?dr(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const Yf=ct(0);function Ja(e){const t=Be(e);return!Io()||!t.visualViewport?Yf:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vf(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Be(e)?!1:t}function Ft(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Lo(e);let a=ct(1);t&&(r?Te(r)&&(a=Qt(r)):a=Qt(e));const i=Vf(s,n,r)?Ja(s):ct(0);let l=(o.left+i.x)/a.x,u=(o.top+i.y)/a.y,f=o.width/a.x,h=o.height/a.y;if(s){const g=Be(s),m=r&&Te(r)?Be(r):r;let y=g,v=vo(y);for(;v&&r&&m!==y;){const b=Qt(v),w=v.getBoundingClientRect(),x=Qe(v),_=w.left+(v.clientLeft+parseFloat(x.paddingLeft))*b.x,k=w.top+(v.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,u*=b.y,f*=b.x,h*=b.y,l+=_,u+=k,y=Be(v),v=vo(y)}}return fr({width:f,height:h,x:l,y:u})}function Sr(e,t){const n=Er(e).scrollLeft;return t?t.left+n:Ft(lt(e)).left+n}function ei(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Sr(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function qf(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=lt(r),i=t?kr(t.floating):!1;if(r===a||i&&s)return n;let l={scrollLeft:0,scrollTop:0},u=ct(1);const f=ct(0),h=Ct(r);if((h||!h&&!s)&&((cn(r)!=="body"||Mn(a))&&(l=Er(r)),h)){const m=Ft(r);u=Qt(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const g=a&&!h&&!s?ei(a,l):ct(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+g.x,y:n.y*u.y-l.scrollTop*u.y+f.y+g.y}}function Gf(e){return Array.from(e.getClientRects())}function Uf(e){const t=lt(e),n=Er(e),r=e.ownerDocument.body,o=$e(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=$e(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Sr(e);const i=-n.scrollTop;return Qe(r).direction==="rtl"&&(a+=$e(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}const Ms=25;function Zf(e,t){const n=Be(e),r=lt(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=Io();(!f||f&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}const u=Sr(r);if(u<=0){const f=r.ownerDocument,h=f.body,g=getComputedStyle(h),m=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,y=Math.abs(r.clientWidth-h.clientWidth-m);y<=Ms&&(s-=y)}else u<=Ms&&(s+=u);return{width:s,height:a,x:i,y:l}}function Xf(e,t){const n=Ft(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Ct(e)?Qt(e):ct(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 Os(e,t,n){let r;if(t==="viewport")r=Zf(e,n);else if(t==="document")r=Uf(lt(e));else if(Te(t))r=Xf(t,n);else{const o=Ja(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return fr(r)}function ti(e,t){const n=Dt(e);return n===t||!Te(n)||nn(n)?!1:Qe(n).position==="fixed"||ti(n,t)}function Kf(e,t){const n=t.get(e);if(n)return n;let r=Cn(e,[],!1).filter(i=>Te(i)&&cn(i)!=="body"),o=null;const s=Qe(e).position==="fixed";let a=s?Dt(e):e;for(;Te(a)&&!nn(a);){const i=Qe(a),l=Ao(a);!l&&i.position==="fixed"&&(o=null),(s?!l&&!o:!l&&i.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Mn(a)&&!l&&ti(e,a))?r=r.filter(f=>f!==a):o=i,a=Dt(a)}return t.set(e,r),r}function Qf(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?kr(t)?[]:Kf(t,this._c):[].concat(n),r],i=Os(t,a[0],o);let l=i.top,u=i.right,f=i.bottom,h=i.left;for(let g=1;g<a.length;g++){const m=Os(t,a[g],o);l=$e(m.top,l),u=Ot(m.right,u),f=Ot(m.bottom,f),h=$e(m.left,h)}return{width:u-h,height:f-l,x:h,y:l}}function Jf(e){const{width:t,height:n}=Qa(e);return{width:t,height:n}}function e1(e,t,n){const r=Ct(t),o=lt(t),s=n==="fixed",a=Ft(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const l=ct(0);function u(){l.x=Sr(o)}if(r||!r&&!s)if((cn(t)!=="body"||Mn(o))&&(i=Er(t)),r){const m=Ft(t,!0,s,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else o&&u();s&&!r&&o&&u();const f=o&&!r&&!s?ei(o,i):ct(0),h=a.left+i.scrollLeft-l.x-f.x,g=a.top+i.scrollTop-l.y-f.y;return{x:h,y:g,width:a.width,height:a.height}}function Ur(e){return Qe(e).position==="static"}function Ds(e,t){if(!Ct(e)||Qe(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return lt(e)===n&&(n=n.ownerDocument.body),n}function ni(e,t){const n=Be(e);if(kr(e))return n;if(!Ct(e)){let o=Dt(e);for(;o&&!nn(o);){if(Te(o)&&!Ur(o))return o;o=Dt(o)}return n}let r=Ds(e,t);for(;r&&$f(r)&&Ur(r);)r=Ds(r,t);return r&&nn(r)&&Ur(r)&&!Ao(r)?n:r||Hf(e)||n}const t1=async function(e){const t=this.getOffsetParent||ni,n=this.getDimensions,r=await n(e.floating);return{reference:e1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function n1(e){return Qe(e).direction==="rtl"}const r1={convertOffsetParentRelativeRectToViewportRelativeRect:qf,getDocumentElement:lt,getClippingRect:Qf,getOffsetParent:ni,getElementRects:t1,getClientRects:Gf,getDimensions:Jf,getScale:Qt,isElement:Te,isRTL:n1};function ri(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function o1(e,t){let n=null,r;const o=lt(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:h,width:g,height:m}=u;if(i||t(),!g||!m)return;const y=Un(h),v=Un(o.clientWidth-(f+g)),b=Un(o.clientHeight-(h+m)),w=Un(f),_={rootMargin:-y+"px "+-v+"px "+-b+"px "+-w+"px",threshold:$e(0,Ot(1,l))||1};let k=!0;function E(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&&!ri(u,e.getBoundingClientRect())&&a(),k=!1}try{n=new IntersectionObserver(E,{..._,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,_)}n.observe(e)}return a(!0),s}function oi(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=Lo(e),f=o||s?[...u?Cn(u):[],...t?Cn(t):[]]:[];f.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const h=u&&i?o1(u,n):null;let g=-1,m=null;a&&(m=new ResizeObserver(w=>{let[x]=w;x&&x.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var _;(_=m)==null||_.observe(t)})),n()}),u&&!l&&m.observe(u),t&&m.observe(t));let y,v=l?Ft(e):null;l&&b();function b(){const w=Ft(e);v&&!ri(v,w)&&n(),v=w,y=requestAnimationFrame(b)}return n(),()=>{var w;f.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),h?.(),(w=m)==null||w.disconnect(),m=null,l&&cancelAnimationFrame(y)}}const s1=If,a1=Lf,i1=Rf,c1=Ff,l1=Tf,Ps=Pf,d1=Wf,u1=(e,t,n)=>{const r=new Map,o={platform:r1,...n},s={...o.platform,_c:r};return Df(e,t,{...o,platform:s})};var f1=typeof document<"u",h1=function(){},sr=f1?p.useLayoutEffect:h1;function hr(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(!hr(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)&&!hr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function si(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rs(e,t){const n=si(e);return Math.round(t*n)/n}function Zr(e){const t=d.useRef(e);return sr(()=>{t.current=e}),t}function ai(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,h]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,m]=d.useState(r);hr(g,r)||m(r);const[y,v]=d.useState(null),[b,w]=d.useState(null),x=d.useCallback(F=>{F!==C.current&&(C.current=F,v(F))},[]),_=d.useCallback(F=>{F!==S.current&&(S.current=F,w(F))},[]),k=s||y,E=a||b,C=d.useRef(null),S=d.useRef(null),N=d.useRef(f),D=l!=null,M=Zr(l),A=Zr(o),P=Zr(u),T=d.useCallback(()=>{if(!C.current||!S.current)return;const F={placement:t,strategy:n,middleware:g};A.current&&(F.platform=A.current),u1(C.current,S.current,F).then(U=>{const j={...U,isPositioned:P.current!==!1};$.current&&!hr(N.current,j)&&(N.current=j,ma.flushSync(()=>{h(j)}))})},[g,t,n,A,P]);sr(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,h(F=>({...F,isPositioned:!1})))},[u]);const $=d.useRef(!1);sr(()=>($.current=!0,()=>{$.current=!1}),[]),sr(()=>{if(k&&(C.current=k),E&&(S.current=E),k&&E){if(M.current)return M.current(k,E,T);T()}},[k,E,T,M,D]);const q=d.useMemo(()=>({reference:C,floating:S,setReference:x,setFloating:_}),[x,_]),R=d.useMemo(()=>({reference:k,floating:E}),[k,E]),V=d.useMemo(()=>{const F={position:n,left:0,top:0};if(!R.floating)return F;const U=Rs(R.floating,f.x),j=Rs(R.floating,f.y);return i?{...F,transform:"translate("+U+"px, "+j+"px)",...si(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:U,top:j}},[n,i,R.floating,f.x,f.y]);return d.useMemo(()=>({...f,update:T,refs:q,elements:R,floatingStyles:V}),[f,T,q,R,V])}const m1=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?Ps({element:r.current,padding:o}).fn(n):{}:r?Ps({element:r,padding:o}).fn(n):{}}}},ii=(e,t)=>{const n=s1(e);return{name:n.name,fn:n.fn,options:[e,t]}},p1=(e,t)=>{const n=a1(e);return{name:n.name,fn:n.fn,options:[e,t]}},g1=(e,t)=>({fn:d1(e).fn,options:[e,t]}),ci=(e,t)=>{const n=i1(e);return{name:n.name,fn:n.fn,options:[e,t]}},li=(e,t)=>{const n=c1(e);return{name:n.name,fn:n.fn,options:[e,t]}},v1=(e,t)=>{const n=l1(e);return{name:n.name,fn:n.fn,options:[e,t]}},b1=(e,t)=>{const n=m1(e);return{name:n.name,fn:n.fn,options:[e,t]}};var y1="Arrow",di=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return c.jsx(Ae.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"})})});di.displayName=y1;var w1=di;function x1(e){const[t,n]=d.useState(void 0);return Mt(()=>{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 Wo="Popper",[ui,Nr]=xr(Wo),[_1,fi]=ui(Wo),hi=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return c.jsx(_1,{scope:t,anchor:r,onAnchorChange:o,children:n})};hi.displayName=Wo;var mi="PopperAnchor",pi=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=fi(mi,n),a=d.useRef(null),i=He(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(Ae.div,{...o,ref:i})});pi.displayName=mi;var Fo="PopperContent",[C1,k1]=ui(Fo),gi=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:h="partial",hideWhenDetached:g=!1,updatePositionStrategy:m="optimized",onPlaced:y,...v}=e,b=fi(Fo,n),[w,x]=d.useState(null),_=He(t,ue=>x(ue)),[k,E]=d.useState(null),C=x1(k),S=C?.width??0,N=C?.height??0,D=r+(s!=="center"?"-"+s:""),M=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},A=Array.isArray(u)?u:[u],P=A.length>0,T={padding:M,boundary:A.filter(S1),altBoundary:P},{refs:$,floatingStyles:q,placement:R,isPositioned:V,middlewareData:F}=ai({strategy:"fixed",placement:D,whileElementsMounted:(...ue)=>oi(...ue,{animationFrame:m==="always"}),elements:{reference:b.anchor},middleware:[ii({mainAxis:o+N,alignmentAxis:a}),l&&p1({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?g1():void 0,...T}),l&&ci({...T}),li({...T,apply:({elements:ue,rects:ke,availableWidth:re,availableHeight:W})=>{const{width:ie,height:_e}=ke.reference,Me=ue.floating.style;Me.setProperty("--radix-popper-available-width",`${re}px`),Me.setProperty("--radix-popper-available-height",`${W}px`),Me.setProperty("--radix-popper-anchor-width",`${ie}px`),Me.setProperty("--radix-popper-anchor-height",`${_e}px`)}}),k&&b1({element:k,padding:i}),N1({arrowWidth:S,arrowHeight:N}),g&&v1({strategy:"referenceHidden",...T})]}),[U,j]=yi(R),ee=tn(y);Mt(()=>{V&&ee?.()},[V,ee]);const de=F.arrow?.x,G=F.arrow?.y,ae=F.arrow?.centerOffset!==0,[K,te]=d.useState();return Mt(()=>{w&&te(window.getComputedStyle(w).zIndex)},[w]),c.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:V?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(C1,{scope:n,placedSide:U,onArrowChange:E,arrowX:de,arrowY:G,shouldHideArrow:ae,children:c.jsx(Ae.div,{"data-side":U,"data-align":j,...v,ref:_,style:{...v.style,animation:V?void 0:"none"}})})})});gi.displayName=Fo;var vi="PopperArrow",E1={top:"bottom",right:"left",bottom:"top",left:"right"},bi=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=k1(vi,r),a=E1[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(w1,{...o,ref:n,style:{...o.style,display:"block"}})})});bi.displayName=vi;function S1(e){return e!==null}var N1=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]=yi(n),h={start:"0%",center:"50%",end:"100%"}[f],g=(o.arrow?.x??0)+i/2,m=(o.arrow?.y??0)+l/2;let y="",v="";return u==="bottom"?(y=a?h:`${g}px`,v=`${-l}px`):u==="top"?(y=a?h:`${g}px`,v=`${r.floating.height+l}px`):u==="right"?(y=`${-l}px`,v=a?h:`${m}px`):u==="left"&&(y=`${r.floating.width+l}px`,v=a?h:`${m}px`),{data:{x:y,y:v}}}});function yi(e){const[t,n="center"]=e.split("-");return[t,n]}var wi=hi,$o=pi,xi=gi,_i=bi,j1="Portal",jr=d.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=d.useState(!1);Mt(()=>s(!0),[]);const a=n||o&&globalThis?.document?.body;return a?Nn.createPortal(c.jsx(Ae.div,{...r,ref:t}),a):null});jr.displayName=j1;function M1(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var Rt=e=>{const{present:t,children:n}=e,r=O1(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),s=He(r.ref,D1(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:s}):null};Rt.displayName="Presence";function O1(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),s=d.useRef("none"),a=e?"mounted":"unmounted",[i,l]=M1(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const u=Zn(r.current);s.current=i==="mounted"?u:"none"},[i]),Mt(()=>{const u=r.current,f=o.current;if(f!==e){const g=s.current,m=Zn(u);e?l("MOUNT"):m==="none"||u?.display==="none"?l("UNMOUNT"):l(f&&g!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Mt(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,h=m=>{const v=Zn(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&v&&(l("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},g=m=>{m.target===t&&(s.current=Zn(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:d.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Zn(e){return e?.animationName||"none"}function D1(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 P1=Symbol("radix.slottable");function R1(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=P1,t}var T1=d[" useInsertionEffect ".trim().toString()]||Mt;function Bo({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=A1({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const f=d.useRef(e!==void 0);d.useEffect(()=>{const h=f.current;h!==i&&console.warn(`${r} is changing from ${h?"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 h=I1(f)?f(e):f;h!==e&&a.current?.(h)}else s(f)},[i,e,s,a]);return[l,u]}function A1({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),s=d.useRef(t);return T1(()=>{s.current=t},[t]),d.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function I1(e){return typeof e=="function"}var L1=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"}),W1="VisuallyHidden",Ci=d.forwardRef((e,t)=>c.jsx(Ae.span,{...e,ref:t,style:{...L1,...e.style}}));Ci.displayName=W1;var F1=Ci,[Mr]=xr("Tooltip",[Nr]),Or=Nr(),ki="TooltipProvider",$1=700,bo="tooltip.open",[B1,zo]=Mr(ki),Ei=e=>{const{__scopeTooltip:t,delayDuration:n=$1,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(B1,{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})};Ei.displayName=ki;var kn="Tooltip",[z1,On]=Mr(kn),Si=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:i}=e,l=zo(kn,e.__scopeTooltip),u=Or(t),[f,h]=d.useState(null),g=_n(),m=d.useRef(0),y=a??l.disableHoverableContent,v=i??l.delayDuration,b=d.useRef(!1),[w,x]=Bo({prop:r,defaultProp:o??!1,onChange:S=>{S?(l.onOpen(),document.dispatchEvent(new CustomEvent(bo))):l.onClose(),s?.(S)},caller:kn}),_=d.useMemo(()=>w?b.current?"delayed-open":"instant-open":"closed",[w]),k=d.useCallback(()=>{window.clearTimeout(m.current),m.current=0,b.current=!1,x(!0)},[x]),E=d.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x(!1)},[x]),C=d.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{b.current=!0,x(!0),m.current=0},v)},[v,x]);return d.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),c.jsx(wi,{...u,children:c.jsx(z1,{scope:t,contentId:g,open:w,stateAttribute:_,trigger:f,onTriggerChange:h,onTriggerEnter:d.useCallback(()=>{l.isOpenDelayedRef.current?C():k()},[l.isOpenDelayedRef,C,k]),onTriggerLeave:d.useCallback(()=>{y?E():(window.clearTimeout(m.current),m.current=0)},[E,y]),onOpen:k,onClose:E,disableHoverableContent:y,children:n})})};Si.displayName=kn;var yo="TooltipTrigger",Ni=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=On(yo,n),s=zo(yo,n),a=Or(n),i=d.useRef(null),l=He(t,i,o.onTriggerChange),u=d.useRef(!1),f=d.useRef(!1),h=d.useCallback(()=>u.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),c.jsx($o,{asChild:!0,...a,children:c.jsx(Ae.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:je(e.onPointerMove,g=>{g.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",h,{once:!0})}),onFocus:je(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:je(e.onBlur,o.onClose),onClick:je(e.onClick,o.onClose)})})});Ni.displayName=yo;var Ho="TooltipPortal",[H1,Y1]=Mr(Ho,{forceMount:void 0}),ji=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=On(Ho,t);return c.jsx(H1,{scope:t,forceMount:n,children:c.jsx(Rt,{present:n||s.open,children:c.jsx(jr,{asChild:!0,container:o,children:r})})})};ji.displayName=Ho;var rn="TooltipContent",Mi=d.forwardRef((e,t)=>{const n=Y1(rn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=On(rn,e.__scopeTooltip);return c.jsx(Rt,{present:r||a.open,children:a.disableHoverableContent?c.jsx(Oi,{side:o,...s,ref:t}):c.jsx(V1,{side:o,...s,ref:t})})}),V1=d.forwardRef((e,t)=>{const n=On(rn,e.__scopeTooltip),r=zo(rn,e.__scopeTooltip),o=d.useRef(null),s=He(t,o),[a,i]=d.useState(null),{trigger:l,onClose:u}=n,f=o.current,{onPointerInTransitChange:h}=r,g=d.useCallback(()=>{i(null),h(!1)},[h]),m=d.useCallback((y,v)=>{const b=y.currentTarget,w={x:y.clientX,y:y.clientY},x=X1(w,b.getBoundingClientRect()),_=K1(w,x),k=Q1(v.getBoundingClientRect()),E=eh([..._,...k]);i(E),h(!0)},[h]);return d.useEffect(()=>()=>g(),[g]),d.useEffect(()=>{if(l&&f){const y=b=>m(b,f),v=b=>m(b,l);return l.addEventListener("pointerleave",y),f.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",y),f.removeEventListener("pointerleave",v)}}},[l,f,m,g]),d.useEffect(()=>{if(a){const y=v=>{const b=v.target,w={x:v.clientX,y:v.clientY},x=l?.contains(b)||f?.contains(b),_=!J1(w,a);x?g():_&&(g(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,f,a,u,g]),c.jsx(Oi,{...e,ref:s})}),[q1,G1]=Mr(kn,{isInside:!1}),U1=R1("TooltipContent"),Oi=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,l=On(rn,n),u=Or(n),{onClose:f}=l;return d.useEffect(()=>(document.addEventListener(bo,f),()=>document.removeEventListener(bo,f)),[f]),d.useEffect(()=>{if(l.trigger){const h=g=>{g.target?.contains(l.trigger)&&f()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[l.trigger,f]),c.jsx(_r,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:h=>h.preventDefault(),onDismiss:f,children:c.jsxs(xi,{"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(U1,{children:r}),c.jsx(q1,{scope:n,isInside:!0,children:c.jsx(F1,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Mi.displayName=rn;var Di="TooltipArrow",Z1=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Or(n);return G1(Di,n).isInside?null:c.jsx(_i,{...o,...r,ref:t})});Z1.displayName=Di;function X1(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 K1(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 Q1(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 J1(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,h=l.x,g=l.y;f>r!=g>r&&n<(h-u)*(r-f)/(g-f)+u&&(o=!o)}return o}function eh(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),th(t)}function th(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 nh=Ei,rh=Si,oh=Ni,sh=ji,Pi=Mi;const ah=nh,ih=rh,ch=oh,Ri=d.forwardRef(({className:e,sideOffset:t=4,...n},r)=>c.jsx(sh,{children:c.jsx(Pi,{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})}));Ri.displayName=Pi.displayName;const lh="_anchor_rpda1_1",dh="_tooltip_rpda1_6",Ts={anchor:lh,tooltip:dh},As=e=>typeof e=="string"?document.getElementById(e):"current"in e?e.current:e,uh=(e="top")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},Is=(e,t)=>typeof e=="number"?e:e?.[t]??0,Yo=({children:e,target:t,placement:n="top",popperClassName:r,isOpen:o,toggle:s,delay:a,autohide:i=!0})=>{const[l,u]=p.useState(!1),[f,h]=p.useState(null),g=o??l,{side:m,align:y}=p.useMemo(()=>uh(n),[n]),v=p.useCallback(()=>{const w=As(t);h(w?.getBoundingClientRect()??null)},[t]),b=p.useCallback(w=>{o===void 0&&u(w),s?.()},[o,s]);return p.useEffect(()=>{let w=null,x=null,_=null,k=null;const E=()=>{_&&clearTimeout(_),k&&clearTimeout(k),_=null,k=null},C=()=>{E(),v(),_=setTimeout(()=>b(!0),Is(a,"show"))},S=()=>{i&&(E(),k=setTimeout(()=>b(!1),Is(a,"hide")))},N=()=>{w&&(w.removeEventListener("mouseenter",C),w.removeEventListener("mouseleave",S),w.removeEventListener("focus",C),w.removeEventListener("blur",S),window.removeEventListener("scroll",v,!0),window.removeEventListener("resize",v),w=null)},D=T=>{w=T,v(),T.addEventListener("mouseenter",C),T.addEventListener("mouseleave",S),T.addEventListener("focus",C),T.addEventListener("blur",S),window.addEventListener("scroll",v,!0),window.addEventListener("resize",v)};let M=0;const A=60,P=()=>{const T=As(t);if(T){D(T);return}M>=A||(M+=1,x=requestAnimationFrame(P))};return P(),()=>{x!==null&&cancelAnimationFrame(x),E(),N()}},[i,a,b,t,v]),f?c.jsx(ah,{delayDuration:0,children:c.jsxs(ih,{open:g,onOpenChange:b,children:[Va(c.jsx(ch,{asChild:!0,children:c.jsx("span",{className:Ts.anchor,style:{left:f.left,top:f.top,width:f.width,height:f.height}})})),c.jsx(Ri,{side:m,align:y,className:O(Ts.tooltip,r),children:e})]})}):null};var Xr=0;function Ti(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ls()),document.body.insertAdjacentElement("beforeend",e[1]??Ls()),Xr++,()=>{Xr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Xr--}},[])}function Ls(){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 Kr="focusScope.autoFocusOnMount",Qr="focusScope.autoFocusOnUnmount",Ws={bubbles:!1,cancelable:!0},fh="FocusScope",Vo=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,l]=d.useState(null),u=tn(o),f=tn(s),h=d.useRef(null),g=He(t,v=>l(v)),m=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let v=function(_){if(m.paused||!i)return;const k=_.target;i.contains(k)?h.current=k:jt(h.current,{select:!0})},b=function(_){if(m.paused||!i)return;const k=_.relatedTarget;k!==null&&(i.contains(k)||jt(h.current,{select:!0}))},w=function(_){if(document.activeElement===document.body)for(const E of _)E.removedNodes.length>0&&jt(i)};document.addEventListener("focusin",v),document.addEventListener("focusout",b);const x=new MutationObserver(w);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",b),x.disconnect()}}},[r,i,m.paused]),d.useEffect(()=>{if(i){$s.add(m);const v=document.activeElement;if(!i.contains(v)){const w=new CustomEvent(Kr,Ws);i.addEventListener(Kr,u),i.dispatchEvent(w),w.defaultPrevented||(hh(bh(Ai(i)),{select:!0}),document.activeElement===v&&jt(i))}return()=>{i.removeEventListener(Kr,u),setTimeout(()=>{const w=new CustomEvent(Qr,Ws);i.addEventListener(Qr,f),i.dispatchEvent(w),w.defaultPrevented||jt(v??document.body,{select:!0}),i.removeEventListener(Qr,f),$s.remove(m)},0)}}},[i,u,f,m]);const y=d.useCallback(v=>{if(!n&&!r||m.paused)return;const b=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,w=document.activeElement;if(b&&w){const x=v.currentTarget,[_,k]=mh(x);_&&k?!v.shiftKey&&w===k?(v.preventDefault(),n&&jt(_,{select:!0})):v.shiftKey&&w===_&&(v.preventDefault(),n&&jt(k,{select:!0})):w===x&&v.preventDefault()}},[n,r,m.paused]);return c.jsx(Ae.div,{tabIndex:-1,...a,ref:g,onKeyDown:y})});Vo.displayName=fh;function hh(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(jt(r,{select:t}),document.activeElement!==n)return}function mh(e){const t=Ai(e),n=Fs(t,e),r=Fs(t.reverse(),e);return[n,r]}function Ai(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 Fs(e,t){for(const n of e)if(!ph(n,{upTo:t}))return n}function ph(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 gh(e){return e instanceof HTMLInputElement&&"select"in e}function jt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&gh(e)&&t&&e.select()}}var $s=vh();function vh(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Bs(e,t),e.unshift(t)},remove(t){e=Bs(e,t),e[0]?.resume()}}}function Bs(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function bh(e){return e.filter(t=>t.tagName!=="A")}function yh(e){const t=wh(e),n=d.forwardRef((r,o)=>{const{children:s,...a}=r,i=d.Children.toArray(s),l=i.find(_h);if(l){const u=l.props.children,f=i.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);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 wh(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const a=kh(o),i=Ch(s,o.props);return o.type!==d.Fragment&&(i.ref=r?jn(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 xh=Symbol("radix.slottable");function _h(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xh}function Ch(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 kh(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 Eh=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},qt=new WeakMap,Xn=new WeakMap,Kn={},Jr=0,Ii=function(e){return e&&(e.host||Ii(e.parentNode))},Sh=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ii(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})},Nh=function(e,t,n,r){var o=Sh(t,Array.isArray(e)?e:[e]);Kn[n]||(Kn[n]=new WeakMap);var s=Kn[n],a=[],i=new Set,l=new Set(o),u=function(h){!h||i.has(h)||(i.add(h),u(h.parentNode))};o.forEach(u);var f=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(g){if(i.has(g))f(g);else try{var m=g.getAttribute(r),y=m!==null&&m!=="false",v=(qt.get(g)||0)+1,b=(s.get(g)||0)+1;qt.set(g,v),s.set(g,b),a.push(g),v===1&&y&&Xn.set(g,!0),b===1&&g.setAttribute(n,"true"),y||g.setAttribute(r,"true")}catch(w){console.error("aria-hidden: cannot operate on ",g,w)}})};return f(t),i.clear(),Jr++,function(){a.forEach(function(h){var g=qt.get(h)-1,m=s.get(h)-1;qt.set(h,g),s.set(h,m),g||(Xn.has(h)||h.removeAttribute(r),Xn.delete(h)),m||h.removeAttribute(n)}),Jr--,Jr||(qt=new WeakMap,qt=new WeakMap,Xn=new WeakMap,Kn={})}},Li=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Eh(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Nh(r,o,n,"aria-hidden")):function(){return null}},ot=function(){return ot=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},ot.apply(this,arguments)};function Wi(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 jh(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 ar="right-scroll-bar-position",ir="width-before-scroll-bar",Mh="with-scroll-bars-hidden",Oh="--removed-body-scroll-bar-size";function eo(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Dh(e,t){var n=p.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 Ph=typeof window<"u"?d.useLayoutEffect:d.useEffect,zs=new WeakMap;function Rh(e,t){var n=Dh(null,function(r){return e.forEach(function(o){return eo(o,r)})});return Ph(function(){var r=zs.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(i){s.has(i)||eo(i,null)}),s.forEach(function(i){o.has(i)||eo(i,a)})}zs.set(n,e)},[e]),n}function Th(e){return e}function Ah(e,t){t===void 0&&(t=Th);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 Ih(e){e===void 0&&(e={});var t=Ah(null);return t.options=ot({async:!0,ssr:!1},e),t}var Fi=function(e){var t=e.sideCar,n=Wi(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,ot({},n))};Fi.isSideCarExport=!0;function Lh(e,t){return e.useMedium(t),Fi}var $i=Ih(),to=function(){},Dr=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:to,onWheelCapture:to,onTouchMoveCapture:to}),o=r[0],s=r[1],a=e.forwardProps,i=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,h=e.shards,g=e.sideCar,m=e.noRelative,y=e.noIsolation,v=e.inert,b=e.allowPinchZoom,w=e.as,x=w===void 0?"div":w,_=e.gapMode,k=Wi(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=g,C=Rh([n,t]),S=ot(ot({},k),o);return d.createElement(d.Fragment,null,f&&d.createElement(E,{sideCar:$i,removeScrollBar:u,shards:h,noRelative:m,noIsolation:y,inert:v,setCallbacks:s,allowPinchZoom:!!b,lockRef:n,gapMode:_}),a?d.cloneElement(d.Children.only(i),ot(ot({},S),{ref:C})):d.createElement(x,ot({},S,{className:l,ref:C}),i))});Dr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Dr.classNames={fullWidth:ir,zeroRight:ar};var Wh=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Fh(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Wh();return t&&e.setAttribute("nonce",t),e}function $h(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Bh(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var zh=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Fh())&&($h(t,n),Bh(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Hh=function(){var e=zh();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Bi=function(){var e=Hh(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Yh={left:0,top:0,right:0,gap:0},no=function(e){return parseInt(e||"",10)||0},Vh=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[no(n),no(r),no(o)]},qh=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Yh;var t=Vh(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])}},Gh=Bi(),Jt="data-scroll-locked",Uh=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(
|
|
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}=Je(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)?Je(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 Je(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=Je(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=Je(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 Je(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:Je(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=Je(e).position==="fixed";let a=s?Pt(e):e;for(;Ae(a)&&!on(a);){const i=Je(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 Je(e).position==="static"}function Is(e,t){if(!kt(e)||Je(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 Je(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,` {
|
|
3
3
|
overflow: hidden `).concat(r,`;
|
|
4
4
|
padding-right: `).concat(i,"px ").concat(r,`;
|
|
5
5
|
}
|
|
6
|
-
body[`).concat(
|
|
6
|
+
body[`).concat(tn,`] {
|
|
7
7
|
overflow: hidden `).concat(r,`;
|
|
8
8
|
overscroll-behavior: contain;
|
|
9
9
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
@@ -16,31 +16,31 @@
|
|
|
16
16
|
`),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.`).concat(
|
|
19
|
+
.`).concat(fr,` {
|
|
20
20
|
right: `).concat(i,"px ").concat(r,`;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.`).concat(
|
|
23
|
+
.`).concat(mr,` {
|
|
24
24
|
margin-right: `).concat(i,"px ").concat(r,`;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
.`).concat(
|
|
27
|
+
.`).concat(fr," .").concat(fr,` {
|
|
28
28
|
right: 0 `).concat(r,`;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.`).concat(
|
|
31
|
+
.`).concat(mr," .").concat(mr,` {
|
|
32
32
|
margin-right: 0 `).concat(r,`;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
body[`).concat(
|
|
36
|
-
`).concat(
|
|
35
|
+
body[`).concat(tn,`] {
|
|
36
|
+
`).concat(W1,": ").concat(i,`px;
|
|
37
37
|
}
|
|
38
|
-
`)},
|
|
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`
|
|
39
39
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
40
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
-
`)},am=0,Ut=[];function im(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(am++)[0],s=d.useState(Bi)[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=jh([e.lockRef.current],(e.shards||[]).map(qs),!0).filter(Boolean);return v.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=d.useCallback(function(v,b){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!a.current.allowPinchZoom;var w=Jn(v),x=n.current,_="deltaX"in v?v.deltaX:x[0]-w[0],k="deltaY"in v?v.deltaY:x[1]-w[1],E,C=v.target,S=Math.abs(_)>Math.abs(k)?"h":"v";if("touches"in v&&S==="h"&&C.type==="range")return!1;var N=window.getSelection(),D=N&&N.anchorNode,M=D?D===C||D.contains(C):!1;if(M)return!1;var A=Ys(S,C);if(!A)return!0;if(A?E=S:(E=S==="v"?"h":"v",A=Ys(S,C)),!A)return!1;if(!r.current&&"changedTouches"in v&&(_||k)&&(r.current=E),!E)return!0;var P=r.current||E;return rm(P,b,v,P==="h"?_:k)},[]),l=d.useCallback(function(v){var b=v;if(!(!Ut.length||Ut[Ut.length-1]!==s)){var w="deltaY"in b?Vs(b):Jn(b),x=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&om(E.delta,w)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var _=(a.current.shards||[]).map(qs).filter(Boolean).filter(function(E){return E.contains(b.target)}),k=_.length>0?i(b,_[0]):!a.current.noIsolation;k&&b.cancelable&&b.preventDefault()}}},[]),u=d.useCallback(function(v,b,w,x){var _={name:v,delta:b,target:w,should:x,shadowParent:cm(w)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(k){return k!==_})},1)},[]),f=d.useCallback(function(v){n.current=Jn(v),r.current=void 0},[]),h=d.useCallback(function(v){u(v.type,Vs(v),v.target,i(v,e.lockRef.current))},[]),g=d.useCallback(function(v){u(v.type,Jn(v),v.target,i(v,e.lockRef.current))},[]);d.useEffect(function(){return Ut.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:g}),document.addEventListener("wheel",l,Gt),document.addEventListener("touchmove",l,Gt),document.addEventListener("touchstart",f,Gt),function(){Ut=Ut.filter(function(v){return v!==s}),document.removeEventListener("wheel",l,Gt),document.removeEventListener("touchmove",l,Gt),document.removeEventListener("touchstart",f,Gt)}},[]);var m=e.removeScrollBar,y=e.inert;return d.createElement(d.Fragment,null,y?d.createElement(s,{styles:sm(o)}):null,m?d.createElement(Xh,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function cm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const lm=Lh($i,im);var qo=d.forwardRef(function(e,t){return d.createElement(Dr,ot({},e,{ref:t,sideCar:lm}))});qo.classNames=Dr.classNames;var Pr="Popover",[Vi]=xr(Pr,[Nr]),Dn=Nr(),[dm,Tt]=Vi(Pr),qi=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,i=Dn(t),l=d.useRef(null),[u,f]=d.useState(!1),[h,g]=Bo({prop:r,defaultProp:o??!1,onChange:s,caller:Pr});return c.jsx(wi,{...i,children:c.jsx(dm,{scope:t,contentId:_n(),triggerRef:l,open:h,onOpenChange:g,onOpenToggle:d.useCallback(()=>g(m=>!m),[g]),hasCustomAnchor:u,onCustomAnchorAdd:d.useCallback(()=>f(!0),[]),onCustomAnchorRemove:d.useCallback(()=>f(!1),[]),modal:a,children:n})})};qi.displayName=Pr;var Gi="PopoverAnchor",um=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Tt(Gi,n),s=Dn(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=o;return d.useEffect(()=>(a(),()=>i()),[a,i]),c.jsx($o,{...s,...r,ref:t})});um.displayName=Gi;var Ui="PopoverTrigger",Zi=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Tt(Ui,n),s=Dn(n),a=He(t,o.triggerRef),i=c.jsx(Ae.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ec(o.open),...r,ref:a,onClick:je(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:c.jsx($o,{asChild:!0,...s,children:i})});Zi.displayName=Ui;var Go="PopoverPortal",[fm,hm]=Vi(Go,{forceMount:void 0}),Xi=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=Tt(Go,t);return c.jsx(fm,{scope:t,forceMount:n,children:c.jsx(Rt,{present:n||s.open,children:c.jsx(jr,{asChild:!0,container:o,children:r})})})};Xi.displayName=Go;var on="PopoverContent",Ki=d.forwardRef((e,t)=>{const n=hm(on,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=Tt(on,e.__scopePopover);return c.jsx(Rt,{present:r||s.open,children:s.modal?c.jsx(pm,{...o,ref:t}):c.jsx(gm,{...o,ref:t})})});Ki.displayName=on;var mm=yh("PopoverContent.RemoveScroll"),pm=d.forwardRef((e,t)=>{const n=Tt(on,e.__scopePopover),r=d.useRef(null),o=He(t,r),s=d.useRef(!1);return d.useEffect(()=>{const a=r.current;if(a)return Li(a)},[]),c.jsx(qo,{as:mm,allowPinchZoom:!0,children:c.jsx(Qi,{...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})})})}),gm=d.forwardRef((e,t)=>{const n=Tt(on,e.__scopePopover),r=d.useRef(!1),o=d.useRef(!1);return c.jsx(Qi,{...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()}})}),Qi=d.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:f,...h}=e,g=Tt(on,n),m=Dn(n);return Ti(),c.jsx(Vo,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:c.jsx(_r,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>g.onOpenChange(!1),children:c.jsx(xi,{"data-state":ec(g.open),role:"dialog",id:g.contentId,...m,...h,ref:t,style:{...h.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)"}})})})}),Ji="PopoverClose",vm=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Tt(Ji,n);return c.jsx(Ae.button,{type:"button",...r,ref:t,onClick:je(e.onClick,()=>o.onOpenChange(!1))})});vm.displayName=Ji;var bm="PopoverArrow",ym=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Dn(n);return c.jsx(_i,{...o,...r,ref:t})});ym.displayName=bm;function ec(e){return e?"open":"closed"}var wm=qi,xm=Zi,_m=Xi,tc=Ki;const xo=wm,_o=xm,Uo=d.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>c.jsx(_m,{children:c.jsx(tc,{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})}));Uo.displayName=tc.displayName;const Cm="_anchor_1qyyn_1",km="_triggerWrap_1qyyn_6",Em="_popover_1qyyn_11",ro={anchor:Cm,triggerWrap:km,popover:Em},Sm=(e="bottom")=>{const[t,n]=e.split("-");return{side:t,align:n??"center"}},Nm=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]=p.useState(!1),[f,h]=p.useState(null),g=s??l,{side:m,align:y}=p.useMemo(()=>Sm(r),[r]),v=p.useCallback(()=>{if(t)return;const x=e.target?.current;h(x?.getBoundingClientRect()??null)},[e.target,t]),b=p.useCallback(x=>{s===void 0&&u(x),i?.(x)},[s,i]);p.useEffect(()=>{if(t)return;const x=e.target?.current;if(!x)return;const _=()=>{v(),s===void 0?u(k=>{const E=!k;return i?.(E),E}):i?.(!s),a?.()};return x.addEventListener("click",_),window.addEventListener("scroll",v,!0),window.addEventListener("resize",v),()=>{x.removeEventListener("click",_),window.removeEventListener("scroll",v,!0),window.removeEventListener("resize",v)}},[s,i,e.target,a,t,v]);const w=c.jsx(Uo,{side:m,align:y,className:O(ro.popover,o),children:n});return t?c.jsxs(xo,{open:g,onOpenChange:b,children:[c.jsx(_o,{asChild:!0,children:c.jsx("span",{className:ro.triggerWrap,children:e.trigger})}),w]}):c.jsxs(xo,{open:g,onOpenChange:b,children:[Va(c.jsx(_o,{asChild:!0,children:c.jsx("span",{className:ro.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})})),w]})},jm="_emptyComponent_1wdgn_1",Mm="_svgWrapper_1wdgn_11",Om="_title_1wdgn_23",Dm="_subtitle_1wdgn_28",er={emptyComponent:jm,svgWrapper:Mm,title:Om,subtitle:Dm},zt=({svg:e=c.jsx(_a,{}),title:t="Нет данных для отображения",description:n,subtitle:r,content:o,className:s})=>{const a=n??r;return c.jsxs("div",{className:O(er.emptyComponent,s),children:[c.jsx("div",{className:er.svgWrapper,children:e}),t&&c.jsx("span",{className:er.title,children:t}),a&&c.jsx("span",{className:er.subtitle,children:a}),o&&o]})},Pm="_container_xa163_1",Rm="_header_xa163_6",Tm="_header_icon_xa163_14",Am="_iconTransition_xa163_20",Im="_rotateIcon_xa163_23",Lm="_content_xa163_26",Wm="_padding_xa163_31",tt={container:Pm,header:Rm,header_icon:Tm,iconTransition:Am,rotateIcon:Im,content:Lm,padding:Wm},nc=({header:e,className:t,content:n,onToggle:r,isOpen:o,defaultOpen:s=!1,id:a,headerClassName:i,contentClassName:l,iconClassName:u})=>{const[f,h]=p.useState(s),g=p.useRef(!1),m=typeof o=="boolean"?o:f,y=p.useRef(null),v=typeof e=="string"?c.jsx("div",{className:tt.header_text,children:c.jsx("span",{children:e})}):e,b=typeof n=="string"?c.jsx("span",{className:tt.content_text,children:n}):n;p.useEffect(()=>{const x=y.current;if(x){if(!g.current){x.style.height=s?"auto":"0px",g.current=!0;return}if(m){x.style.height=`${x.scrollHeight}px`;const _=()=>{x.style.height="auto"};x.addEventListener("transitionend",_,{once:!0})}else x.style.height=`${x.scrollHeight}px`,requestAnimationFrame(()=>{x.style.height="0px"})}},[m,s]);const w=p.useCallback(x=>{x.stopPropagation(),r?r():h(_=>!_)},[r]);return c.jsxs("div",{className:O(tt.container,t),id:a,children:[c.jsxs("div",{className:O(tt.header,i),children:[v,c.jsx("div",{className:O(tt.header_icon,u),onClick:w,children:c.jsx(yt,{className:O(tt.iconArrow,tt.iconTransition,{[tt.rotateIcon]:m})})})]}),c.jsx("div",{className:O(tt.content,l,{[tt.padding]:m}),ref:y,children:b})]})},Fm="_collapsableBlock_86gg6_1",$m="_header_86gg6_6",Bm="_headerWithInfoTooltip_86gg6_12",zm="_infoIcon_86gg6_20",tr={collapsableBlock:Fm,header:$m,headerWithInfoTooltip:Bm,infoIcon:zm},Hm=d.memo(e=>{const{id:t,header:n,content:r,className:o,infoTooltipContent:s,...a}=e,[i,l]=p.useState(!1),u=()=>l(!i);return c.jsx(nc,{id:t,className:O(tr.collapsableBlock,o),header:s?c.jsxs("div",{className:tr.headerWithInfoTooltip,children:[c.jsx("span",{children:n}),c.jsx(wa,{className:tr.infoIcon,id:"CollapsableBlockNewInfoTooltipIcon"}),c.jsx(Yo,{autohide:!1,delay:{show:0,hide:500},isOpen:i,placement:"left-start",target:"CollapsableBlockNewInfoTooltipIcon",toggle:u,children:s})]}):n,content:r,headerClassName:tr.header,...a})});var Ym=typeof document<"u",Vm=function(){},Co=Ym?p.useLayoutEffect:Vm;const qm={...d},Gm=qm.useInsertionEffect,Um=Gm||(e=>e());function Zm(e){const t=d.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Um(()=>{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 Xm={...d};let Gs=!1,Km=0;const Us=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Km++;function Qm(){const[e,t]=d.useState(()=>Gs?Us():void 0);return Co(()=>{e==null&&t(Us())},[]),d.useEffect(()=>{Gs=!0},[]),e}const Jm=Xm.useId,ep=Jm||Qm;let ko;process.env.NODE_ENV!=="production"&&(ko=new Set);function tp(){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=ko)!=null&&e.has(o))){var s;(s=ko)==null||s.add(o),console.error(o)}}function np(){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 rp=d.createContext(null),op=d.createContext(null),sp=()=>{var e;return((e=d.useContext(rp))==null?void 0:e.id)||null},ap=()=>d.useContext(op);function ip(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=ep(),s=d.useRef({}),[a]=d.useState(()=>np()),i=sp()!=null;if(process.env.NODE_ENV!=="production"){const m=r.reference;m&&!Te(m)&&tp("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=Zm((m,y,v)=>{s.current.openEvent=m?y:void 0,a.emit("openchange",{open:m,event:y,reason:v,nested:i}),n?.(m,y,v)}),h=d.useMemo(()=>({setPositionReference:u}),[]),g=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:g,events:a,floatingId:o,refs:h}),[t,f,g,a,o,h])}function cp(e){e===void 0&&(e={});const{nodeId:t}=e,n=ip({...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,h=d.useRef(null),g=ap();Co(()=>{f&&(h.current=f)},[f]);const m=ai({...e,elements:{...o,...i&&{reference:i}}}),y=d.useCallback(_=>{const k=Te(_)?{getBoundingClientRect:()=>_.getBoundingClientRect(),getClientRects:()=>_.getClientRects(),contextElement:_}:_;l(k),m.refs.setReference(k)},[m.refs]),v=d.useCallback(_=>{(Te(_)||_===null)&&(h.current=_,a(_)),(Te(m.refs.reference.current)||m.refs.reference.current===null||_!==null&&!Te(_))&&m.refs.setReference(_)},[m.refs]),b=d.useMemo(()=>({...m.refs,setReference:v,setPositionReference:y,domReference:h}),[m.refs,v,y]),w=d.useMemo(()=>({...m.elements,domReference:f}),[m.elements,f]),x=d.useMemo(()=>({...m,...r,refs:b,elements:w,nodeId:t}),[m,b,w,t,r]);return Co(()=>{r.dataRef.current.floatingContext=x;const _=g?.nodesRef.current.find(k=>k.id===t);_&&(_.context=x)}),d.useMemo(()=>({...m,context:x,refs:b,elements:w}),[m,b,w,x])}const lp="_caption_ltp0o_1",dp="_fadeIn_ltp0o_1",up="_caption_neutral_ltp0o_16",fp="_caption_error_ltp0o_20",hp="_caption_success_ltp0o_24",mp="_fullWidth_ltp0o_38",oo={caption:lp,fadeIn:dp,caption_neutral:up,caption_error:fp,caption_success:hp,fullWidth:mp},_t=({children:e,isFullWidth:t,variant:n,type:r})=>{const o=n??r??"error";return c.jsx("p",{className:O(oo.caption,oo[`caption_${o}`],{[oo.fullWidth]:t}),children:e})};const rc=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const pp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const gp=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const Zs=e=>{const t=gp(e);return t.charAt(0).toUpperCase()+t.slice(1)};var vp={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 bp=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const yp=p.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...i},l)=>p.createElement("svg",{ref:l,...vp,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:rc("lucide",o),...!s&&!bp(i)&&{"aria-hidden":"true"},...i},[...a.map(([u,f])=>p.createElement(u,f)),...Array.isArray(s)?s:[s]]));const Pn=(e,t)=>{const n=p.forwardRef(({className:r,...o},s)=>p.createElement(yp,{ref:s,iconNode:t,className:rc(`lucide-${pp(Zs(e))}`,`lucide-${e}`,r),...o}));return n.displayName=Zs(e),n};const wp=[["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"}]],xp=Pn("calendar",wp);const _p=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Cp=Pn("chevron-down",_p);const kp=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Ep=Pn("chevron-left",kp);const Sp=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Np=Pn("chevron-right",Sp);const jp=[["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"}]],Mp=Pn("circle-question-mark",jp);var Op=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Dp=Op.reduce((e,t)=>{const n=Sa(`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}},{}),Pp="Label",oc=d.forwardRef((e,t)=>c.jsx(Dp.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));oc.displayName=Pp;var sc=oc;const Rp=Ma("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ac=d.forwardRef(({className:e,...t},n)=>c.jsx(sc,{ref:n,className:J(Rp(),e),...t}));ac.displayName=sc.displayName;const Tp="_label_1i8xb_1",Ap="_label__text_1i8xb_11",Ip="_label_inline_1i8xb_14",mr={label:Tp,label__text:Ap,label_inline:Ip},pr=({htmlFor:e,children:t,className:n})=>c.jsx(ac,{htmlFor:e,className:O(mr.label,n),children:typeof t=="string"?c.jsx("div",{className:mr.label__text,children:t}):t}),Lp="_labelRow_1kh14_1",Wp="_helpIcon_1kh14_9",Fp="_helpIconSvg_1kh14_33",so={labelRow:Lp,helpIcon:Wp,helpIconSvg:Fp},Ht=({htmlFor:e,children:t,required:n,tooltipContent:r,tooltipPopperClassName:o,className:s,labelClassName:a})=>{const i=p.useRef(null),l=typeof t=="string"&&n?`${t} *`:t;return r?c.jsxs("div",{className:O(so.labelRow,s),children:[c.jsx(pr,{className:O(mr.label_inline,a),htmlFor:e,children:l}),c.jsx("button",{ref:i,type:"button",className:so.helpIcon,"aria-label":"Справка по полю",children:c.jsx(Mp,{className:so.helpIconSvg,"aria-hidden":!0})}),c.jsx(Yo,{target:i,popperClassName:o,children:r})]}):c.jsx(pr,{htmlFor:e,className:s,children:l})},$p="_wrapper_19g1g_1",Bp="_wrapper_small_19g1g_14",zp="_iconCross_19g1g_17",Hp="_iconCross_small_19g1g_25",nr={wrapper:$p,wrapper_small:Bp,iconCross:zp,iconCross_small:Hp},ic=p.memo(({className:e,children:t,onClick:n,isSmall:r})=>c.jsxs("div",{className:O(nr.wrapper,e,r&&nr.wrapper_small),children:[c.jsx("span",{children:t}),n&&c.jsx(it,{className:O(nr.iconCross,{[nr.iconCross_small]:r}),onClick:o=>{o.stopPropagation(),n()}})]})),Yp="_wrapper_94m4o_1",Vp="_container_94m4o_5",qp="_input_94m4o_5",Gp="_error_94m4o_17",Up="_disabled_94m4o_20",Zp="_tagContainer_94m4o_33",Xp="_selectedOptionContainer_94m4o_38",Kp="_selectedOption_94m4o_38",Qp="_placeHolder_94m4o_49",Jp="_iconContainer_94m4o_53",e0="_deleteIcon_94m4o_59",t0="_divider_94m4o_79",n0="_arrowIcon_94m4o_88",r0="_arrowIconExpanded_94m4o_103",o0="_dropdown_94m4o_107",s0="_dropdown_visible_94m4o_118",a0="_withSearch_94m4o_133",i0="_search_94m4o_136",c0="_search__icon_94m4o_149",l0="_search__input_94m4o_154",d0="_option_94m4o_184",u0="_option_active_94m4o_192",f0="_option_active_next_active_94m4o_198",h0="_option_active_prev_active_94m4o_202",m0="_tableTemplate_94m4o_229",p0="_tableContainer_94m4o_236",g0="_table_94m4o_229",v0="_activeRow_94m4o_278",b0="_checkboxCell_94m4o_285",y0="_checkbox_94m4o_285",w0="_footerTotal_94m4o_300",oe={wrapper:Yp,container:Vp,input:qp,error:Gp,disabled:Up,tagContainer:Zp,selectedOptionContainer:Xp,selectedOption:Kp,placeHolder:Qp,iconContainer:Jp,deleteIcon:e0,divider:t0,arrowIcon:n0,arrowIconExpanded:r0,dropdown:o0,dropdown_visible:s0,withSearch:a0,search:i0,search__icon:c0,search__input:l0,option:d0,option_active:u0,option_active_next_active:f0,option_active_prev_active:h0,tableTemplate:m0,tableContainer:p0,table:g0,activeRow:v0,checkboxCell:b0,checkbox:y0,footerTotal:w0},x0=6,_0=({value:e,selectedOptionRender:t,tagRender:n,onDelete:r})=>e?Array.isArray(e)?c.jsx("div",{className:oe.tagContainer,children:e.map((o,s)=>n?c.jsx(p.Fragment,{children:n(o)},s):c.jsx(ic,{isSmall:!0,...r&&{onClick:()=>r?.(o)},children:o.label},s))}):c.jsx("span",{className:oe.selectedOption,children:t?t(e):e.label}):null,cc=({onSearch:e,searchClassName:t,searchValue:n,isLoading:r,placeholder:o})=>c.jsxs("div",{className:O(oe.search,t),children:[c.jsx(br,{className:oe.search__icon}),c.jsx("input",{className:oe.search__input,value:n,onChange:s=>e?.(s.target.value),placeholder:o}),r&&c.jsx(Ke,{size:"extraSmall",className:oe.search__spinner})]}),C0=({value:e,options:t,optionClassName:n,optionRender:r,onChange:o,onSearch:s,searchClassName:a,isLoading:i,searchValue:l,searchPlaceholder:u})=>{const f=h=>Array.isArray(e)?e.some(g=>g.value===h.value):e?.value===h.value;return c.jsxs(c.Fragment,{children:[s&&c.jsx(cc,{onSearch:s,searchValue:l,searchClassName:a,isLoading:i,placeholder:u}),t&&t.length?c.jsx("ul",{className:O({[oe.withSearch]:s}),children:t.map((h,g)=>{const m=f(h),y=t[g-1]&&f(t[g-1]),v=t[g+1]&&f(t[g+1]);return c.jsx("li",{className:O(oe.option,{[oe.option_active]:m,[oe.option_active_prev_active]:y,[oe.option_active_next_active]:v},n),onClick:()=>o(h),children:r?r(h):h.label},`${h.value}${g}`)})}):!i&&c.jsx(zt,{})]})},k0=({value:e,options:t,onChange:n,onDelete:r,onSearch:o,searchClassName:s,isLoading:a,searchValue:i,searchPlaceholder:l,columns:u,total:f,mode:h})=>{const g=b=>Array.isArray(e)?e.some(w=>w.value===b.value):e?.value===b.value,m=(b,w)=>{if(h==="multiple"&&w&&r){r(b);return}n(b)},y=f??t?.length??0,v=u??[];return c.jsxs("div",{className:oe.tableTemplate,children:[o&&c.jsx(cc,{onSearch:o,searchValue:i,searchClassName:s,isLoading:a,placeholder:l}),c.jsx("div",{className:oe.tableContainer,children:t&&t.length?c.jsxs("table",{className:oe.table,children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{className:oe.checkboxCell,"aria-label":""}),v.map(b=>c.jsx("th",{className:b.className,children:b.title},b.key))]})}),c.jsx("tbody",{children:t.map((b,w)=>{const x=g(b);return c.jsxs("tr",{className:O({[oe.activeRow]:x}),onClick:()=>m(b,x),children:[c.jsx("td",{className:oe.checkboxCell,children:c.jsx("input",{type:"checkbox",className:oe.checkbox,checked:x,readOnly:!0,tabIndex:-1,onClick:_=>_.stopPropagation(),onChange:()=>m(b,x)})}),v.map(_=>c.jsx("td",{className:_.className,children:_.render(b)},_.key))]},`${String(b.value)}${w}`)})})]}):!a&&c.jsx(zt,{})}),c.jsxs("div",{className:oe.footerTotal,children:["Всего ",y]})]})},E0=({options:e,value:t,mode:n,placeholder:r,onChange:o,dropdownRender:s,optionRender:a,selectedOptionRender:i,dropdownIcon:l,tagRender:u,dropDownClassName:f,optionClassName:h,inputClassName:g,deleteIconClassName:m,onDelete:y,onClear:v,label:b,tooltipContent:w,tooltipPopperClassName:x,onSearch:_,searchClassName:k,searchPlaceholder:E,isLoading:C,disabled:S,onClose:N,portalTarget:D,error:M,fixedHeight:A=!0,template:P="list",columns:T,total:$})=>{const[q,R]=p.useState(!1),[V,F]=p.useState(!1),U=p.useRef(null),j=p.useRef(null),ee=p.useRef(null),[de,G]=p.useState(""),ae=D??(V&&typeof document<"u"?document.body:void 0);p.useEffect(()=>{F(!0)},[]);const K=p.useCallback(fe=>{G(fe),_?.(fe)},[_]);p.useEffect(()=>{if(!q)return;const fe=Oe=>{U.current&&!U.current.contains(Oe.target)&&(!j.current||!j.current.contains(Oe.target))&&(K(""),R(!1),N?.())};return document.addEventListener("mousedown",fe,!0),()=>{document.removeEventListener("mousedown",fe,!0)}},[K,q,N]);const{refs:te,floatingStyles:ue,update:ke}=cp({strategy:"absolute",placement:"bottom-start",open:q,whileElementsMounted:(fe,Oe,ut)=>oi(fe,Oe,ut,{ancestorScroll:!1,elementResize:!0,ancestorResize:!0,layoutShift:!0}),middleware:[ii(x0),ci({fallbackPlacements:["top-start","bottom-start"]}),li({apply({rects:fe,elements:Oe}){const ut=`${Math.round(fe.reference.width)}px`;Oe.floating.style.width!==ut&&(Oe.floating.style.width=ut)}})]}),re=p.useCallback(fe=>{ee.current=fe,te.setReference(fe)},[te]),W=p.useCallback(fe=>{j.current=fe,te.setFloating(fe)},[te]);p.useEffect(()=>{q&&ke()},[q,ke]);const ie=p.useCallback(fe=>{o?.(fe),K(""),N?.(),n==="single"&&R(!1)},[K,n,o,N]),_e=p.useCallback(()=>{const fe=c.jsx("div",{ref:W,className:O(oe.dropdown,{[oe.dropdown_visible]:q},f),style:ue,onClick:Oe=>Oe.stopPropagation(),children:c.jsx("div",{className:oe.dropdownContent,style:{height:A?"300px":"none"},children:(()=>{const Oe=P==="table"?c.jsx(k0,{value:t,options:e,onChange:ie,onDelete:y,..._&&{onSearch:K},searchClassName:k,isLoading:C,searchValue:de,searchPlaceholder:E,columns:T,total:$,mode:n}):c.jsx(C0,{value:t,options:e,optionClassName:h,optionRender:a,onChange:ie,..._&&{onSearch:K},searchClassName:k,isLoading:C,searchValue:de,searchPlaceholder:E});return s?s(Oe):Oe})()})});return ae?Nn.createPortal(fe,ae):fe},[f,s,A,ue,ie,K,C,q,_,h,a,e,ae,P,T,$,n,y,k,E,de,W,t]),Me=p.useMemo(()=>V?_e():null,[V,_e]),Ve=Array.isArray(t)?!!t.length:!!t;return c.jsxs("div",{className:oe.wrapper,children:[b&&c.jsx(Ht,{htmlFor:"CustomSelectInput",tooltipContent:w,tooltipPopperClassName:x,children:b}),c.jsxs("div",{className:oe.container,ref:U,children:[c.jsxs("div",{role:"button",id:"CustomSelectInput",tabIndex:0,ref:re,className:O(oe.input,{[oe.input_fixedHeight]:n==="single",[oe.disabled]:S},M&&oe.error,g),onClick:()=>{t&&(K(""),N?.()),R(fe=>!fe)},children:[c.jsx("div",{className:oe.selectedOptionContainer,children:Ve?c.jsx(_0,{value:t,selectedOptionRender:i,tagRender:u,onDelete:y}):c.jsx("span",{className:oe.placeHolder,children:r})}),c.jsxs("div",{className:oe.iconContainer,children:[v&&Ve&&c.jsxs(c.Fragment,{children:[c.jsx(xe,{variant:"text",className:O(oe.deleteIcon,m),onClick:fe=>{fe.stopPropagation(),v()},children:c.jsx("span",{children:c.jsx(it,{})})}),c.jsx("div",{className:oe.divider,children:c.jsx("div",{})})]}),l||c.jsx(xe,{variant:"text",className:O(oe.arrowIcon,{[oe.arrowIconExpanded]:q}),children:c.jsx(yt,{})})]})]}),Me]}),M&&c.jsx(_t,{children:M})]})};function S0(e){const t=N0(e),n=d.forwardRef((r,o)=>{const{children:s,...a}=r,i=d.Children.toArray(s),l=i.find(M0);if(l){const u=l.props.children,f=i.map(h=>h===l?d.Children.count(u)>1?d.Children.only(null):d.isValidElement(u)?u.props.children:null:h);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 N0(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const a=D0(o),i=O0(s,o.props);return o.type!==d.Fragment&&(i.ref=r?jn(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 j0=Symbol("radix.slottable");function M0(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===j0}function O0(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 D0(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 Rr="Dialog",[lc]=xr(Rr),[P0,Je]=lc(Rr),dc=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]=Bo({prop:r,defaultProp:o??!1,onChange:s,caller:Rr});return c.jsx(P0,{scope:t,triggerRef:i,contentRef:l,contentId:_n(),titleId:_n(),descriptionId:_n(),open:u,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(h=>!h),[f]),modal:a,children:n})};dc.displayName=Rr;var uc="DialogTrigger",R0=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Je(uc,n),s=He(t,o.triggerRef);return c.jsx(Ae.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ko(o.open),...r,ref:s,onClick:je(e.onClick,o.onOpenToggle)})});R0.displayName=uc;var Zo="DialogPortal",[T0,fc]=lc(Zo,{forceMount:void 0}),hc=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=Je(Zo,t);return c.jsx(T0,{scope:t,forceMount:n,children:d.Children.map(r,a=>c.jsx(Rt,{present:n||s.open,children:c.jsx(jr,{asChild:!0,container:o,children:a})}))})};hc.displayName=Zo;var gr="DialogOverlay",mc=d.forwardRef((e,t)=>{const n=fc(gr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Je(gr,e.__scopeDialog);return s.modal?c.jsx(Rt,{present:r||s.open,children:c.jsx(I0,{...o,ref:t})}):null});mc.displayName=gr;var A0=S0("DialogOverlay.RemoveScroll"),I0=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Je(gr,n);return c.jsx(qo,{as:A0,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(Ae.div,{"data-state":Ko(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),$t="DialogContent",pc=d.forwardRef((e,t)=>{const n=fc($t,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=Je($t,e.__scopeDialog);return c.jsx(Rt,{present:r||s.open,children:s.modal?c.jsx(L0,{...o,ref:t}):c.jsx(W0,{...o,ref:t})})});pc.displayName=$t;var L0=d.forwardRef((e,t)=>{const n=Je($t,e.__scopeDialog),r=d.useRef(null),o=He(t,n.contentRef,r);return d.useEffect(()=>{const s=r.current;if(s)return Li(s)},[]),c.jsx(gc,{...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())})}),W0=d.forwardRef((e,t)=>{const n=Je($t,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return c.jsx(gc,{...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()}})}),gc=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,i=Je($t,n),l=d.useRef(null),u=He(t,l);return Ti(),c.jsxs(c.Fragment,{children:[c.jsx(Vo,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:c.jsx(_r,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Ko(i.open),...a,ref:u,onDismiss:()=>i.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx($0,{titleId:i.titleId}),c.jsx(z0,{contentRef:l,descriptionId:i.descriptionId})]})]})}),Xo="DialogTitle",vc=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Je(Xo,n);return c.jsx(Ae.h2,{id:o.titleId,...r,ref:t})});vc.displayName=Xo;var bc="DialogDescription",yc=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Je(bc,n);return c.jsx(Ae.p,{id:o.descriptionId,...r,ref:t})});yc.displayName=bc;var wc="DialogClose",F0=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Je(wc,n);return c.jsx(Ae.button,{type:"button",...r,ref:t,onClick:je(e.onClick,()=>o.onOpenChange(!1))})});F0.displayName=wc;function Ko(e){return e?"open":"closed"}var xc="DialogTitleWarning",[c4,_c]=Ju(xc,{contentName:$t,titleName:Xo,docsSlug:"dialog"}),$0=({titleId:e})=>{const t=_c(xc),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
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",nt={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:nt.header_text,children:c.jsx("span",{children:e})}):e,_=typeof n=="string"?c.jsx("span",{className:nt.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(nt.container,t),id:a,children:[c.jsxs("div",{className:M(nt.header,i),children:[v,c.jsx("div",{className:M(nt.header_icon,u),onClick:y,children:c.jsx(dt,{className:M(nt.iconArrow,nt.iconTransition,{[nt.rotateIcon]:h})})})]}),c.jsx("div",{className:M(nt.content,l,{[nt.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,et]=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=et(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=et(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=et(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=et(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=et(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=et(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=et(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=et(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=et(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=et(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=et(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",[k3,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.
|
|
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},B0="DialogDescriptionWarning",z0=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_c(B0).contentName}}.`;return d.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},H0=dc,Y0=hc,Cc=mc,kc=pc,Ec=vc,Sc=yc;const Tr=H0,V0=Y0,Nc=d.forwardRef(({className:e,...t},n)=>c.jsx(Cc,{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}));Nc.displayName=Cc.displayName;const Rn=d.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(V0,{children:[c.jsx(Nc,{}),c.jsx(kc,{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})]}));Rn.displayName=kc.displayName;const Tn=({className:e,...t})=>c.jsx("div",{className:J("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Tn.displayName="DialogHeader";const Ar=({className:e,...t})=>c.jsx("div",{className:J("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ar.displayName="DialogFooter";const An=d.forwardRef(({className:e,...t},n)=>c.jsx(Ec,{ref:n,className:J("text-lg font-semibold leading-none tracking-tight",e),...t}));An.displayName=Ec.displayName;const q0=d.forwardRef(({className:e,...t},n)=>c.jsx(Sc,{ref:n,className:J("text-sm text-muted-foreground",e),...t}));q0.displayName=Sc.displayName;const G0="_wrapper_4ju0w_1",U0="_input_4ju0w_5",Z0="_error_4ju0w_25",X0="_disabled_4ju0w_33",K0="_selectedOption_4ju0w_39",Q0="_placeholder_4ju0w_50",J0="_actions_4ju0w_54",eg="_clearButton_4ju0w_61",tg="_selectButton_4ju0w_70",ng="_dialogContent_4ju0w_77",rg="_dialogHeader_4ju0w_92",og="_dialogTitle_4ju0w_97",sg="_search_4ju0w_104",ag="_searchIcon_4ju0w_120",ig="_searchInput_4ju0w_131",cg="_searchSpinner_4ju0w_162",lg="_tableContainer_4ju0w_166",dg="_table_4ju0w_166",ug="_activeRow_4ju0w_209",fg="_emptyState_4ju0w_216",hg="_dialogFooter_4ju0w_223",mg="_pagination_4ju0w_231",pg="_footerActions_4ju0w_232",gg="_pageInfo_4ju0w_251",ve={wrapper:G0,input:U0,error:Z0,disabled:X0,selectedOption:K0,placeholder:Q0,actions:J0,clearButton:eg,selectButton:tg,dialogContent:ng,dialogHeader:rg,dialogTitle:og,search:sg,searchIcon:ag,searchInput:ig,searchSpinner:cg,tableContainer:lg,table:dg,activeRow:ug,emptyState:fg,dialogFooter:hg,pagination:mg,footerActions:pg,pageInfo:gg},vg=8,bg=350,Qo=({value:e,placeholder:t,loadOptions:n,onChange:r,onClear:o,columns:s,label:a,tooltipContent:i,tooltipPopperClassName:l,title:u="Поиск сотрудника",searchPlaceholder:f="Введите запрос",selectButtonText:h="Выбрать",closeButtonText:g="Закрыть",manualButtonText:m="Добавить вручную",onManualAdd:y,pageSize:v=vg,debounceMs:b=bg,disabled:w,error:x,className:_,inputClassName:k,selectedOptionRender:E})=>{const[C,S]=p.useState(!1),[N,D]=p.useState(""),[M,A]=p.useState(""),[P,T]=p.useState(1),[$,q]=p.useState([]),[R,V]=p.useState(),[F,U]=p.useState(!1),[j,ee]=p.useState(!1),de=p.useRef(0),G=p.useMemo(()=>s??[{key:"label",title:"ФИО сотрудника",render:W=>W.label},{key:"birthDate",title:"День рождения",render:W=>W.meta?.birthDate??"—"}],[s]),ae=R?Math.max(1,Math.ceil(R/v)):void 0,K=P>1,te=ae?P<ae:F;p.useEffect(()=>{const W=window.setTimeout(()=>{A(N.trim()),T(1)},b);return()=>window.clearTimeout(W)},[b,N]),p.useEffect(()=>{if(!C)return;const W=de.current+1;de.current=W,ee(!0),n({search:M,page:P,pageSize:v}).then(ie=>{de.current===W&&(q(ie.options),V(ie.total),U(ie.hasNextPage??!1))}).finally(()=>{de.current===W&&ee(!1)})},[M,C,n,P,v]);const ue=p.useCallback(W=>{S(W),W||(D(""),A(""),T(1))},[]),ke=p.useCallback(W=>{r?.(W),ue(!1)},[ue,r]),re=e?E?E(e):e.label:t;return c.jsxs("div",{className:O(ve.wrapper,_),children:[a&&c.jsx(Ht,{htmlFor:"DialogSelectInput",tooltipContent:i,tooltipPopperClassName:l,children:a}),c.jsxs("div",{id:"DialogSelectInput",role:"button",tabIndex:w?-1:0,className:O(ve.input,{[ve.disabled]:w,[ve.error]:x},k),onClick:()=>!w&&ue(!0),onKeyDown:W=>{!w&&(W.key==="Enter"||W.key===" ")&&(W.preventDefault(),ue(!0))},children:[c.jsx("span",{className:O(ve.selectedOption,{[ve.placeholder]:!e}),children:re}),c.jsxs("span",{className:ve.actions,children:[o&&e&&c.jsx(xe,{variant:"text",className:ve.clearButton,"aria-label":"Очистить выбранное значение",onClick:W=>{W.stopPropagation(),o()},children:c.jsx(it,{})}),c.jsx(xe,{variant:"link",className:ve.selectButton,disabled:w,onClick:W=>{W.stopPropagation(),ue(!0)},children:h})]})]}),c.jsx(Tr,{open:C,onOpenChange:ue,children:c.jsxs(Rn,{className:ve.dialogContent,children:[c.jsx(Tn,{className:ve.dialogHeader,children:c.jsx(An,{className:ve.dialogTitle,children:u})}),c.jsxs("div",{className:ve.search,children:[c.jsx(br,{className:ve.searchIcon}),c.jsx("input",{className:ve.searchInput,value:N,onChange:W=>D(W.target.value),placeholder:f,autoFocus:!0}),j&&c.jsx(Ke,{size:"extraSmall",className:ve.searchSpinner})]}),c.jsxs("div",{className:ve.tableContainer,children:[c.jsxs("table",{className:ve.table,children:[c.jsx("thead",{children:c.jsx("tr",{children:G.map(W=>c.jsx("th",{className:W.className,children:W.title},W.key))})}),c.jsx("tbody",{children:$.map(W=>{const ie=e?.value===W.value;return c.jsx("tr",{className:O({[ve.activeRow]:ie}),onClick:()=>ke(W),children:G.map(_e=>c.jsx("td",{className:_e.className,children:_e.render(W)},_e.key))},String(W.value))})})]}),!j&&!$.length&&c.jsx("div",{className:ve.emptyState,children:c.jsx(zt,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})})]}),c.jsxs(Ar,{className:ve.dialogFooter,children:[c.jsxs("div",{className:ve.pagination,children:[c.jsx(xe,{variant:"secondary",size:"small",disabled:!K||j,onClick:()=>T(W=>Math.max(1,W-1)),children:"Назад"}),c.jsxs("span",{className:ve.pageInfo,children:["Страница ",P,ae?` из ${ae}`:""]}),c.jsx(xe,{variant:"secondary",size:"small",disabled:!te||j,onClick:()=>T(W=>W+1),children:"Вперёд"})]}),c.jsxs("div",{className:ve.footerActions,children:[y&&c.jsx(xe,{variant:"primary",onClick:y,children:m}),c.jsx(xe,{variant:"secondary",onClick:()=>ue(!1),children:g})]})]})]})}),x&&c.jsx(_t,{children:x})]})},yg="_wrapper_15kqr_1",wg="_input_15kqr_5",xg="_error_15kqr_25",_g="_disabled_15kqr_33",Cg="_selectedOption_15kqr_39",kg="_placeholder_15kqr_50",Eg="_actions_15kqr_54",Sg="_clearButton_15kqr_61",Ng="_selectButton_15kqr_70",jg="_dialogContent_15kqr_77",Mg="_dialogHeader_15kqr_92",Og="_dialogTitle_15kqr_97",Dg="_search_15kqr_104",Pg="_searchIcon_15kqr_120",Rg="_searchInput_15kqr_131",Tg="_searchSpinner_15kqr_162",Ag="_treeContainer_15kqr_166",Ig="_row_15kqr_176",Lg="_row_active_15kqr_191",Wg="_nodeLabel_15kqr_194",Fg="_row_match_15kqr_198",$g="_chevron_15kqr_202",Bg="_chevronExpanded_15kqr_227",zg="_chevronPlaceholder_15kqr_231",Hg="_nodeSpinner_15kqr_237",Yg="_emptyState_15kqr_249",Vg="_loadingState_15kqr_256",qg="_dialogFooter_15kqr_263",pe={wrapper:yg,input:wg,error:xg,disabled:_g,selectedOption:Cg,placeholder:kg,actions:Eg,clearButton:Sg,selectButton:Ng,dialogContent:jg,dialogHeader:Mg,dialogTitle:Og,search:Dg,searchIcon:Pg,searchInput:Rg,searchSpinner:Tg,treeContainer:Ag,row:Ig,row_active:Lg,nodeLabel:Wg,row_match:Fg,chevron:$g,chevronExpanded:Bg,chevronPlaceholder:zg,nodeSpinner:Hg,emptyState:Yg,loadingState:Vg,dialogFooter:qg},Gg=350,pt="__root__",Ug=({value:e,placeholder:t,loadChildren:n,loadNodes:r,searchNodes:o,onChange:s,onClear:a,label:i,tooltipContent:l,tooltipPopperClassName:u,title:f="Выбор элемента",searchPlaceholder:h="Введите запрос",selectButtonText:g="Выбрать",closeButtonText:m="Закрыть",confirmButtonText:y="Выбрать",debounceMs:v=Gg,disabled:b,error:w,className:x,inputClassName:_,selectedOptionRender:k,nodeRender:E,leafConfirmOnly:C=!1})=>{const S=r??n,[N,D]=p.useState(!1),[M,A]=p.useState(""),[P,T]=p.useState(""),[$,q]=p.useState(()=>new Map),[R,V]=p.useState(()=>new Set),[F,U]=p.useState(()=>new Set),[j,ee]=p.useState(()=>new Set),[de,G]=p.useState(()=>new Set),[ae,K]=p.useState(!1),[te,ue]=p.useState(null),ke=p.useRef(0),re=p.useRef(0);p.useEffect(()=>{if(!N||$.has(pt))return;const z=ke.current+1;ke.current=z,V(be=>{const me=new Set(be);return me.add(pt),me}),S({parentId:null,search:""}).then(be=>{ke.current===z&&q(me=>{const Ee=new Map(me);return Ee.set(pt,be.nodes),Ee})}).finally(()=>{ke.current===z&&V(be=>{const me=new Set(be);return me.delete(pt),me})})},[N,S,$]),p.useEffect(()=>{const z=window.setTimeout(()=>T(M.trim()),v);return()=>window.clearTimeout(z)},[M,v]),p.useEffect(()=>{if(!N||!o)return;if(!P){G(new Set),ee(new Set);return}const z=re.current+1;re.current=z,K(!0),o(P).then(be=>{if(re.current!==z)return;const me=new Set,Ee=new Set,De=new Map;for(const qe of be.matches){me.add(qe.node.value);const Pe=[...qe.path,qe.node];for(let Se=0;Se<Pe.length-1;Se++){const ft=Pe[Se],ht=Pe[Se+1];Ee.add(ft.value);const Ge=ft.value;De.has(Ge)||De.set(Ge,new Map),De.get(Ge).set(ht.value,ht)}if(Pe.length>0){const Se=Pe[0];De.has(pt)||De.set(pt,new Map),De.get(pt).set(Se.value,Se)}}G(me),ee(Ee),q(qe=>{const Pe=new Map(qe);return De.forEach((Se,ft)=>{const ht=Pe.get(ft)??[],Ge=new Map;ht.forEach(et=>Ge.set(et.value,et)),Se.forEach((et,Hn)=>Ge.set(Hn,et)),Pe.set(ft,Array.from(Ge.values()))}),Pe})}).finally(()=>{re.current===z&&K(!1)})},[P,N,o]);const W=p.useCallback(z=>{D(z),z||(A(""),T(""),ue(null),G(new Set),ee(new Set))},[]),ie=p.useCallback(z=>{const be=z.value;$.has(be)||R.has(be)||(V(me=>{const Ee=new Set(me);return Ee.add(be),Ee}),S({parentId:z.value,search:""}).then(me=>{q(Ee=>{const De=new Map(Ee),qe=De.get(be)??[],Pe=new Map;return qe.forEach(Se=>Pe.set(Se.value,Se)),me.nodes.forEach(Se=>Pe.set(Se.value,Se)),De.set(be,Array.from(Pe.values())),De})}).finally(()=>{V(me=>{const Ee=new Set(me);return Ee.delete(be),Ee})}))},[$,S,R]),_e=p.useCallback(z=>{U(be=>{const me=new Set(be);return me.has(z.value)?me.delete(z.value):(me.add(z.value),ie(z)),me})},[ie]),Me=p.useCallback(z=>{ue(z)},[]),Ve=p.useCallback(()=>{C&&(!te||te.hasChildren===!0)||(te&&s?.(te),W(!1))},[W,C,s,te]),fe=p.useCallback(z=>F.has(z)||j.has(z),[F,j]),Oe=p.useCallback(z=>{if(!P||o)return z;const be=P.toLowerCase();return z.filter(me=>me.label.toLowerCase().includes(be))},[P,o]),ut=(z,be)=>{const me=z.value,Ee=$.get(me),De=fe(z.value),qe=R.has(me),Pe=te?.value===z.value,Se=e?.value===z.value,ft=de.has(z.value),ht=De&&Ee&&Ee.length>0,Ge=ht?Oe(Ee):[];return c.jsxs(p.Fragment,{children:[c.jsxs("div",{className:O(pe.row,{[pe.row_active]:Pe||Se,[pe.row_match]:ft}),style:{paddingLeft:16+be*20},onClick:()=>Me(z),children:[z.hasChildren?c.jsx("button",{type:"button",className:O(pe.chevron,{[pe.chevronExpanded]:De}),onClick:et=>{et.stopPropagation(),_e(z)},"aria-label":De?"Свернуть":"Раскрыть",children:c.jsx(yt,{})}):c.jsx("span",{className:pe.chevronPlaceholder}),c.jsx("span",{className:pe.nodeLabel,children:E?E(z):z.label}),qe&&c.jsx(Ke,{size:"extraSmall",className:pe.nodeSpinner})]}),ht&&Ge.map(et=>ut(et,be+1))]},String(z.value))},$n=$.get(pt)??[],Bn=Oe($n),Yt=R.has(pt),Wr=e?k?k(e):e.label:t,Fr=!Yt&&!ae&&Bn.length===0,zn=p.useMemo(()=>ae||Yt&&!!P,[ae,Yt,P]),un=!te||C&&te.hasChildren===!0;return c.jsxs("div",{className:O(pe.wrapper,x),children:[i&&c.jsx(Ht,{htmlFor:"TreeDialogSelectInput",tooltipContent:l,tooltipPopperClassName:u,children:i}),c.jsxs("div",{id:"TreeDialogSelectInput",role:"button",tabIndex:b?-1:0,className:O(pe.input,{[pe.disabled]:b,[pe.error]:w},_),onClick:()=>!b&&W(!0),onKeyDown:z=>{!b&&(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),W(!0))},children:[c.jsx("span",{className:O(pe.selectedOption,{[pe.placeholder]:!e}),children:Wr}),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(it,{})}),c.jsx(xe,{variant:"link",className:pe.selectButton,disabled:b,onClick:z=>{z.stopPropagation(),W(!0)},children:g})]})]}),c.jsx(Tr,{open:N,onOpenChange:W,children:c.jsxs(Rn,{className:pe.dialogContent,children:[c.jsx(Tn,{className:pe.dialogHeader,children:c.jsx(An,{className:pe.dialogTitle,children:f})}),c.jsxs("div",{className:pe.search,children:[c.jsx(br,{className:pe.searchIcon}),c.jsx("input",{className:pe.searchInput,value:M,onChange:z=>A(z.target.value),placeholder:h,autoFocus:!0}),zn&&c.jsx(Ke,{size:"extraSmall",className:pe.searchSpinner})]}),c.jsx("div",{className:pe.treeContainer,children:Yt&&$n.length===0?c.jsx("div",{className:pe.loadingState,children:c.jsx(Ke,{size:"small"})}):Fr?c.jsx("div",{className:pe.emptyState,children:c.jsx(zt,{title:"Ничего не найдено",subtitle:"Попробуйте изменить поисковый запрос"})}):Bn.map(z=>ut(z,0))}),c.jsxs(Ar,{className:pe.dialogFooter,children:[c.jsx(xe,{variant:"secondary",onClick:()=>W(!1),children:m}),c.jsx(xe,{variant:"primary",disabled:un,onClick:Ve,children:y})]})]})}),w&&c.jsx(_t,{children:w})]})},Zg="_wrapper_1wain_1",Xg="_tabs_1wain_6",Kg="_tabItem_1wain_16",Qg="_active_1wain_46",Jg="_before_1wain_61",ev="_after_1wain_62",tv="_panel_1wain_101",gt={wrapper:Zg,tabs:Xg,tabItem:Kg,active:Qg,before:Jg,after:ev,panel:tv};function nv(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 rv=d.memo(({className:e,items:t=[],children:n,value:r,onValueChange:o,activeTab:s,onClick:a,tabsClassName:i})=>{const l=p.useMemo(()=>nv(t),[t]),u=p.useMemo(()=>{if(r!==void 0){const f=l.findIndex(h=>h.key===r);return f>=0?f:0}return s??0},[r,s,l]);return c.jsxs("div",{className:O(gt.wrapper,e),children:[c.jsx("div",{className:O(gt.tabs,i),children:l.map((f,h)=>f.label&&c.jsxs("div",{className:O(gt.tabItem,f.className,{[gt.active]:u===h,[gt.first]:h===0,[gt.last]:h===l.length-1}),style:{zIndex:u===h?l.length:h===0?0:l.length-h},onClick:g=>{g.stopPropagation(),o?o(f.key):a?.(h)},children:[u===h&&h!==0&&c.jsx("span",{className:gt.before}),f.label,u===h&&h!==l.length-1&&c.jsx("span",{className:gt.after})]},h))}),c.jsx("div",{className:gt.panel,children:n})]})}),ov="_wrapper_1xj0t_1",sv="_itemBlock_1xj0t_8",av="_step_1xj0t_16",iv="_clickable_1xj0t_39",cv="_step_inactive_1xj0t_46",lv="_step_current_1xj0t_51",dv="_connector_1xj0t_55",uv="_connector_active_1xj0t_62",fv="_label_1xj0t_66",hv="_label_active_1xj0t_74",nt={wrapper:ov,itemBlock:sv,step:av,clickable:iv,step_inactive:cv,step_current:lv,connector:dv,connector_active:uv,label:fv,label_active:hv},mv=({items:e,current:t,onChange:n,showCheckOnCompleted:r=!1,className:o})=>{const s=!!n;return c.jsx("div",{className:O(nt.wrapper,o),role:"list",children:e.map((a,i)=>{const l=i<t,u=i===t,f=i<=t,h=i===e.length-1,g=r&&l,m=a.content??(g?c.jsx(jo,{}):i+1),y=c.jsx("button",{type:"button",className:O(nt.step,{[nt.step_inactive]:!f,[nt.step_current]:u,[nt.clickable]:s}),disabled:!s,onClick:()=>n?.(i),"aria-current":u?"step":void 0,"aria-label":typeof a.label=="string"?a.label:`Шаг ${i+1}`,children:m});return c.jsxs(p.Fragment,{children:[a.label?c.jsxs("div",{className:nt.itemBlock,role:"listitem",children:[y,c.jsx("span",{className:O(nt.label,{[nt.label_active]:f}),children:a.label})]}):c.jsx("div",{role:"listitem",children:y}),!h&&c.jsx("span",{className:O(nt.connector,{[nt.connector_active]:i<t})})]},i)})})},pv="_container_1whkx_1",gv="_tabs_1whkx_4",vv="_line_1whkx_11",bv="_tabItem_1whkx_21",yv="_header_1whkx_34",wv="_notificationChanges_1whkx_42",xv="_tabs_hasAnimatedIndicator_1whkx_61",_v="_active_1whkx_64",St={container:pv,tabs:gv,line:vv,tabItem:bv,header:yv,notificationChanges:wv,tabs_hasAnimatedIndicator:xv,active:_v};function Cv(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 kv=d.memo(({items:e=[],value:t,onValueChange:n,activeTab:r,className:o,tabsClassName:s,changesIndex:a,badgeValue:i,sliderClassName:l,onClick:u})=>{const f=p.useMemo(()=>Cv(e),[e]),h=p.useMemo(()=>{if(t!==void 0){const b=f.findIndex(w=>w.key===t);return b>=0?b:0}return r!==void 0?r:0},[t,r,f]),g=p.useRef(null),m=p.useRef(null),[y,v]=p.useState({left:0,width:0});return p.useEffect(()=>{const b=g.current;if(!b)return;const w=()=>{const k={left:b.offsetLeft||0,width:b.clientWidth||0};v(E=>E.left===k.left&&E.width===k.width?E:k)},x=()=>{m.current!==null&&cancelAnimationFrame(m.current),m.current=requestAnimationFrame(()=>{m.current=null,w()})};x();const _=new ResizeObserver(()=>{x()});return _.observe(b),()=>{_.disconnect(),m.current!==null&&(cancelAnimationFrame(m.current),m.current=null)}},[h]),c.jsx("div",{className:O(St.container,o),children:c.jsxs("div",{className:O(St.tabs,St.tabs_hasAnimatedIndicator,s),children:[f.map((b,w)=>b.label&&c.jsxs("div",{ref:h===w?g:void 0,className:O(St.tabItem,b.className,{[St.active]:h===w}),onClick:x=>{x.stopPropagation(),n?n(b.key):u?.(w)},children:[b.header&&c.jsx("div",{className:St.header,children:b.header}),b.label,a===w&&c.jsx("div",{className:St.notificationChanges,children:i!=null?i>99?"99+":String(i):null})]},w)),c.jsx("div",{className:O(St.line,l),style:{left:y.left,width:y.width}})]})})}),Ev="_wrapper_rkn19_1",Sv="_container_rkn19_6",Nv="_input_rkn19_10",jv="_error_rkn19_45",Mv="_disabled_rkn19_51",hn={wrapper:Ev,container:Sv,input:Nv,error:jv,disabled:Mv},jc=p.forwardRef(({label:e,error:t,disabled:n,className:r,inputClassName:o,tooltipContent:s,tooltipPopperClassName:a,id:i,...l},u)=>{const f=p.useId(),h=i??f;return c.jsxs("div",{className:O(hn.wrapper,r),children:[e&&c.jsx(Ht,{htmlFor:h,tooltipContent:s,tooltipPopperClassName:a,children:e}),c.jsx("div",{className:hn.container,children:c.jsx("input",{ref:u,id:h,disabled:n,"aria-invalid":t?!0:void 0,className:O(hn.input,{[hn.disabled]:n,[hn.error]:!!t},o),...l})}),t&&c.jsx(_t,{children:t})]})});jc.displayName="Input";const Ov="_wrapper_10aju_1",Dv="_container_10aju_6",Pv="_textarea_10aju_10",Rv="_error_10aju_46",Tv="_disabled_10aju_52",mn={wrapper:Ov,container:Dv,textarea:Pv,error:Rv,disabled:Tv},Mc=p.forwardRef(({label:e,error:t,hint:n,hintVariant:r,disabled:o,className:s,textareaClassName:a,tooltipContent:i,tooltipPopperClassName:l,id:u,...f},h)=>{const g=p.useId(),m=u??g;return c.jsxs("div",{className:O(mn.wrapper,s),children:[e&&c.jsx(Ht,{htmlFor:m,tooltipContent:i,tooltipPopperClassName:l,children:e}),c.jsx("div",{className:mn.container,children:c.jsx("textarea",{ref:h,id:m,disabled:o,"aria-invalid":t?!0:void 0,className:O(mn.textarea,{[mn.disabled]:o,[mn.error]:!!t},a),...f})}),t&&c.jsx(_t,{children:t}),!t&&n&&c.jsx(_t,{variant:r??"neutral",children:n})]})});Mc.displayName="Textarea";function Av(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 Iv={},bn={};function Wt(e,t){try{const r=(Iv[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return r in bn?bn[r]:Xs(r,r.split(":"))}catch{if(e in bn)return bn[e];const n=e?.match(Lv);return n?Xs(e,n.slice(1)):NaN}}const Lv=/([+-]\d\d):?(\d\d)?/;function Xs(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return bn[e]=n*60+r>0?n*60+r+o:n*60-r-o}class at extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(Wt(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)),Oc(this),Eo(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new at(...n,t):new at(Date.now(),t)}withTimeZone(t){return new at(+this,t)}getTimezoneOffset(){const t=-Wt(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),Eo(this),+this}[Symbol.for("constructDateFrom")](t){return new at(+new Date(t),this.timeZone)}}const Ks=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Ks.test(e))return;const t=e.replace(Ks,"$1UTC");at.prototype[t]&&(e.startsWith("get")?at.prototype[e]=function(){return this.internal[t]()}:(at.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),Wv(this),+this},at.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Eo(this),+this}))});function Eo(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Wt(e.timeZone,e)*60))}function Wv(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()),Oc(e)}function Oc(e){const t=Wt(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,h=Math.round(-(Wt(e.timeZone,e)*60))%60;(h||f)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+h),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+h+f));const g=Wt(e.timeZone,e),m=g>0?Math.floor(g):Math.ceil(g),v=-new Date(+e).getTimezoneOffset()-m,b=m!==n,w=v-l;if(b&&w){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+w);const x=Wt(e.timeZone,e),_=x>0?Math.floor(x):Math.ceil(x),k=m-_;k&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+k),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+k))}}class Re extends at{static tz(t,...n){return n.length?new Re(...n,t):new Re(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} (${Av(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 Re(+this,t)}[Symbol.for("constructDateFrom")](t){return new Re(+new Date(t),this.timeZone)}}const Dc=6048e5,Fv=864e5,Qs=Symbol.for("constructDateFrom");function Ce(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Qs in e?e[Qs](t):e instanceof Date?new e.constructor(t):new Date(t)}function ge(e,t){return Ce(t||e,e)}function Pc(e,t,n){const r=ge(e,n?.in);return isNaN(t)?Ce(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Rc(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 $v={};function In(){return $v}function sn(e,t){const n=In(),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 En(e,t){return sn(e,{...t,weekStartsOn:1})}function Tc(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=En(o),a=Ce(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const i=En(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=i.getTime()?r:r-1}function Js(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 ln(e,...t){const n=Ce.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Sn(e,t){const n=ge(e,t?.in);return n.setHours(0,0,0,0),n}function Jo(e,t,n){const[r,o]=ln(n?.in,e,t),s=Sn(r),a=Sn(o),i=+s-Js(s),l=+a-Js(a);return Math.round((i-l)/Fv)}function Bv(e,t){const n=Tc(e,t),r=Ce(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),En(r)}function zv(e,t,n){return Pc(e,t*7,n)}function Hv(e,t,n){return Rc(e,t*12,n)}function Yv(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 Vv(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 qv(e,t,n){const[r,o]=ln(n?.in,e,t);return+Sn(r)==+Sn(o)}function Ac(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Gv(e){return!(!Ac(e)&&typeof e!="number"||isNaN(+ge(e)))}function Ic(e,t,n){const[r,o]=ln(n?.in,e,t),s=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return s*12+a}function Uv(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 Lc(e,t){const[n,r]=ln(e,t.start,t.end);return{start:n,end:r}}function Zv(e,t){const{start:n,end:r}=Lc(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 Xv(e,t){const n=ge(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Kv(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 Wc(e,t){const n=ge(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Qv(e,t){const{start:n,end:r}=Lc(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 Fc(e,t){const n=In(),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 Jv(e,t){return Fc(e,{...t,weekStartsOn:1})}const e2={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"}},t2=(e,t,n)=>{let r;const o=e2[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 ao(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const n2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},r2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s2={date:ao({formats:n2,defaultWidth:"full"}),time:ao({formats:r2,defaultWidth:"full"}),dateTime:ao({formats:o2,defaultWidth:"full"})},a2={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},i2=(e,t,n,r)=>a2[e];function pn(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 c2={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},l2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},d2={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"]},u2={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"]},f2={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"}},h2={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"}},m2=(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:m2,era:pn({values:c2,defaultWidth:"wide"}),quarter:pn({values:l2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:pn({values:d2,defaultWidth:"wide"}),day:pn({values:u2,defaultWidth:"wide"}),dayPeriod:pn({values:f2,defaultWidth:"wide",formattingValues:h2,defaultFormattingWidth:"wide"})};function gn(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)?v2(i,h=>h.test(a)):g2(i,h=>h.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 g2(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function v2(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function b2(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 y2=/^(\d+)(th|st|nd|rd)?/i,w2=/\d+/i,x2={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},_2={any:[/^b/i,/^(a|c)/i]},C2={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},k2={any:[/1/i,/2/i,/3/i,/4/i]},E2={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},S2={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]},N2={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},j2={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]},M2={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},O2={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}},D2={ordinalNumber:b2({matchPattern:y2,parsePattern:w2,valueCallback:e=>parseInt(e,10)}),era:gn({matchPatterns:x2,defaultMatchWidth:"wide",parsePatterns:_2,defaultParseWidth:"any"}),quarter:gn({matchPatterns:C2,defaultMatchWidth:"wide",parsePatterns:k2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:gn({matchPatterns:E2,defaultMatchWidth:"wide",parsePatterns:S2,defaultParseWidth:"any"}),day:gn({matchPatterns:N2,defaultMatchWidth:"wide",parsePatterns:j2,defaultParseWidth:"any"}),dayPeriod:gn({matchPatterns:M2,defaultMatchWidth:"any",parsePatterns:O2,defaultParseWidth:"any"})},Kt={code:"en-US",formatDistance:t2,formatLong:s2,formatRelative:i2,localize:p2,match:D2,options:{weekStartsOn:0,firstWeekContainsDate:1}};function P2(e,t){const n=ge(e,t?.in);return Jo(n,Wc(n))+1}function es(e,t){const n=ge(e,t?.in),r=+En(n)-+Bv(n);return Math.round(r/Dc)+1}function $c(e,t){const n=ge(e,t?.in),r=n.getFullYear(),o=In(),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=sn(a,t),l=Ce(t?.in||e,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const u=sn(l,t);return+n>=+i?r+1:+n>=+u?r:r-1}function R2(e,t){const n=In(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=$c(e,t),s=Ce(t?.in||e,0);return s.setFullYear(o,0,r),s.setHours(0,0,0,0),sn(s,t)}function ts(e,t){const n=ge(e,t?.in),r=+sn(n,t)-+R2(n,t);return Math.round(r/Dc)+1}function he(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Nt={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return he(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):he(n+1,2)},d(e,t){return he(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 he(e.getHours()%12||12,t.length)},H(e,t){return he(e.getHours(),t.length)},m(e,t){return he(e.getMinutes(),t.length)},s(e,t){return he(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return he(o,t.length)}},Zt={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ea={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 Nt.y(e,t)},Y:function(e,t,n,r){const o=$c(e,r),s=o>0?o:1-o;if(t==="YY"){const a=s%100;return he(a,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):he(s,t.length)},R:function(e,t){const n=Tc(e);return he(n,t.length)},u:function(e,t){const n=e.getFullYear();return he(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 he(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 he(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 Nt.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 he(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=ts(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):he(o,t.length)},I:function(e,t,n){const r=es(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):he(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Nt.d(e,t)},D:function(e,t,n){const r=P2(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):he(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 he(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 he(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 he(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=Zt.noon:r===0?o=Zt.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=Zt.evening:r>=12?o=Zt.afternoon:r>=4?o=Zt.morning:o=Zt.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 Nt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Nt.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):he(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):he(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Nt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Nt.s(e,t)},S:function(e,t){return Nt.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return na(r);case"XXXX":case"XX":return Lt(r);default:return Lt(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return na(r);case"xxxx":case"xx":return Lt(r);default:return Lt(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ta(r,":");default:return"GMT"+Lt(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ta(r,":");default:return"GMT"+Lt(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return he(r,t.length)},T:function(e,t,n){return he(+e,t.length)}};function ta(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+he(s,2)}function na(e,t){return e%60===0?(e>0?"-":"+")+he(Math.abs(e)/60,2):Lt(e,t)}function Lt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=he(Math.trunc(r/60),2),s=he(r%60,2);return n+o+t+s}const ra=(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"})}},Bc=(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"})}},T2=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return ra(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}}",ra(r,t)).replace("{{time}}",Bc(o,t))},A2={p:Bc,P:T2},I2=/^D+$/,L2=/^Y+$/,W2=["D","DD","YY","YYYY"];function F2(e){return I2.test(e)}function $2(e){return L2.test(e)}function B2(e,t,n){const r=z2(e,t,n);if(console.warn(r),W2.includes(e))throw new RangeError(r)}function z2(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 H2=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Y2=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,V2=/^'([^]*?)'?$/,q2=/''/g,G2=/[a-zA-Z]/;function yn(e,t,n){const r=In(),o=n?.locale??r.locale??Kt,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(!Gv(i))throw new RangeError("Invalid time value");let l=t.match(Y2).map(f=>{const h=f[0];if(h==="p"||h==="P"){const g=A2[h];return g(f,o.formatLong)}return f}).join("").match(H2).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const h=f[0];if(h==="'")return{isToken:!1,value:U2(f)};if(ea[h])return{isToken:!0,value:f};if(h.match(G2))throw new RangeError("Format string contains an unescaped latin alphabet character `"+h+"`");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 h=f.value;(!n?.useAdditionalWeekYearTokens&&$2(h)||!n?.useAdditionalDayOfYearTokens&&F2(h))&&B2(h,t,String(e));const g=ea[h[0]];return g(i,h,o.localize,u)}).join("")}function U2(e){const t=e.match(V2);return t?t[1].replace(q2,"'"):e}function Z2(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 X2(e,t){return ge(e,t?.in).getMonth()}function K2(e,t){return ge(e,t?.in).getFullYear()}function Q2(e,t){return+ge(e)>+ge(t)}function J2(e,t){return+ge(e)<+ge(t)}function eb(e,t,n){const[r,o]=ln(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function tb(e,t,n){const[r,o]=ln(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function nb(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=Z2(a);return r.setMonth(t,Math.min(s,i)),r}function rb(e,t,n){const r=ge(e,n?.in);return isNaN(+r)?Ce(e,NaN):(r.setFullYear(t),r)}const oa=5,ob=4;function sb(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),s=t.addDays(o,oa*7-1);return t.getMonth(e)===t.getMonth(s)?oa:ob}function zc(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 ab(e,t){const n=zc(e,t),r=sb(e,t);return t.addDays(n,r*7-1)}const Hc={...Kt,labels:{labelDayButton:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,i)=>yn(a,i,{locale:Kt,...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)=>yn(o,s,{locale:Kt,...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)=>yn(a,i,{locale:Kt,...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)=>yn(o,s,{locale:Kt,...t}),r(e,"cccc")}}};class ze{constructor(t,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?Re.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 Re(r,o,s,this.options.timeZone):new Date(r,o,s),this.addDays=(r,o)=>this.overrides?.addDays?this.overrides.addDays(r,o):Pc(r,o),this.addMonths=(r,o)=>this.overrides?.addMonths?this.overrides.addMonths(r,o):Rc(r,o),this.addWeeks=(r,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,o):zv(r,o),this.addYears=(r,o)=>this.overrides?.addYears?this.overrides.addYears(r,o):Hv(r,o),this.differenceInCalendarDays=(r,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):Jo(r,o),this.differenceInCalendarMonths=(r,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):Ic(r,o),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):Zv(r),this.eachYearOfInterval=r=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):Qv(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):ab(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):Jv(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):Uv(r),this.endOfWeek=(r,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,o):Fc(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):Kv(r),this.format=(r,o,s)=>{const a=this.overrides?.format?this.overrides.format(r,o,this.options):yn(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):es(r),this.getMonth=(r,o)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):X2(r,this.options),this.getYear=(r,o)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):K2(r,this.options),this.getWeek=(r,o)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):ts(r,this.options),this.isAfter=(r,o)=>this.overrides?.isAfter?this.overrides.isAfter(r,o):Q2(r,o),this.isBefore=(r,o)=>this.overrides?.isBefore?this.overrides.isBefore(r,o):J2(r,o),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):Ac(r),this.isSameDay=(r,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,o):qv(r,o),this.isSameMonth=(r,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,o):eb(r,o),this.isSameYear=(r,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,o):tb(r,o),this.max=r=>this.overrides?.max?this.overrides.max(r):Yv(r),this.min=r=>this.overrides?.min?this.overrides.min(r):Vv(r),this.setMonth=(r,o)=>this.overrides?.setMonth?this.overrides.setMonth(r,o):nb(r,o),this.setYear=(r,o)=>this.overrides?.setYear?this.overrides.setYear(r,o):rb(r,o),this.startOfBroadcastWeek=(r,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):zc(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):Sn(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):En(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):Xv(r),this.startOfWeek=(r,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):sn(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):Wc(r),this.options={locale:Hc,...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&&ze.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:o}=this.options,s=n?.code;if(s&&ze.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)}}ze.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 dt=new ze;class Yc{constructor(t,n,r=dt){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 ib{constructor(t,n){this.date=t,this.weeks=n}}class cb{constructor(t,n){this.days=n,this.weekNumber=t}}function lb(e){return p.createElement("button",{...e})}function db(e){return p.createElement("span",{...e})}function ub(e){const{size:t=24,orientation:n="left",className:r}=e;return p.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&p.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&p.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&p.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&p.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function fb(e){const{day:t,modifiers:n,...r}=e;return p.createElement("td",{...r})}function hb(e){const{day:t,modifiers:n,...r}=e,o=p.useRef(null);return p.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),p.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 Xe;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Xe||(Xe={}));var Fe;(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"})(Fe||(Fe={}));function mb(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 p.createElement("span",{"data-disabled":s.disabled,className:o[H.DropdownRoot]},p.createElement(r.Select,{className:a,...s},t?.map(({value:l,label:u,disabled:f})=>p.createElement(r.Option,{key:l,value:l,disabled:f},u))),p.createElement("span",{className:o[H.CaptionLabel],"aria-hidden":!0},i?.label,p.createElement(r.Chevron,{orientation:"down",size:18,className:o[H.Chevron]})))}function pb(e){return p.createElement("div",{...e})}function gb(e){return p.createElement("div",{...e})}function vb(e){const{calendarMonth:t,displayIndex:n,...r}=e;return p.createElement("div",{...r},e.children)}function bb(e){const{calendarMonth:t,displayIndex:n,...r}=e;return p.createElement("div",{...r})}function yb(e){return p.createElement("table",{...e})}function wb(e){return p.createElement("div",{...e})}const Vc=p.createContext(void 0);function Ln(){const e=p.useContext(Vc);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function xb(e){const{components:t}=Ln();return p.createElement(t.Dropdown,{...e})}function _b(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...s}=e,{components:a,classNames:i,labels:{labelPrevious:l,labelNext:u}}=Ln(),f=p.useCallback(g=>{o&&n?.(g)},[o,n]),h=p.useCallback(g=>{r&&t?.(g)},[r,t]);return p.createElement("nav",{...s},p.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:h},p.createElement(a.Chevron,{disabled:r?void 0:!0,className:i[H.Chevron],orientation:"left"})),p.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},p.createElement(a.Chevron,{disabled:o?void 0:!0,orientation:"right",className:i[H.Chevron]})))}function Cb(e){const{components:t}=Ln();return p.createElement(t.Button,{...e})}function kb(e){return p.createElement("option",{...e})}function Eb(e){const{components:t}=Ln();return p.createElement(t.Button,{...e})}function Sb(e){const{rootRef:t,...n}=e;return p.createElement("div",{...n,ref:t})}function Nb(e){return p.createElement("select",{...e})}function jb(e){const{week:t,...n}=e;return p.createElement("tr",{...n})}function Mb(e){return p.createElement("th",{...e})}function Ob(e){return p.createElement("thead",{"aria-hidden":!0},p.createElement("tr",{...e}))}function Db(e){const{week:t,...n}=e;return p.createElement("th",{...n})}function Pb(e){return p.createElement("th",{...e})}function Rb(e){return p.createElement("tbody",{...e})}function Tb(e){const{components:t}=Ln();return p.createElement(t.Dropdown,{...e})}const Ab=Object.freeze(Object.defineProperty({__proto__:null,Button:lb,CaptionLabel:db,Chevron:ub,Day:fb,DayButton:hb,Dropdown:mb,DropdownNav:pb,Footer:gb,Month:vb,MonthCaption:bb,MonthGrid:yb,Months:wb,MonthsDropdown:xb,Nav:_b,NextMonthButton:Cb,Option:kb,PreviousMonthButton:Eb,Root:Sb,Select:Nb,Week:jb,WeekNumber:Db,WeekNumberHeader:Pb,Weekday:Mb,Weekdays:Ob,Weeks:Rb,YearsDropdown:Tb},Symbol.toStringTag,{value:"Module"}));function vt(e,t,n=!1,r=dt){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 ns(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Ir(e){return!!(e&&typeof e=="object"&&"from"in e)}function rs(e){return!!(e&&typeof e=="object"&&"after"in e)}function os(e){return!!(e&&typeof e=="object"&&"before"in e)}function qc(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function Gc(e,t){return Array.isArray(e)&&e.every(t.isDate)}function bt(e,t,n=dt){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(Gc(i,n))return i.some(l=>o(e,l));if(Ir(i))return vt(i,e,!1,n);if(qc(i))return Array.isArray(i.dayOfWeek)?i.dayOfWeek.includes(e.getDay()):i.dayOfWeek===e.getDay();if(ns(i)){const l=s(i.before,e),u=s(i.after,e),f=l>0,h=u<0;return a(i.before,i.after)?h&&f:f||h}return rs(i)?s(e,i.after)>0:os(i)?s(i.before,e)>0:typeof i=="function"?i(e):!1})}function Ib(e,t,n,r,o){const{disabled:s,hidden:a,modifiers:i,showOutsideDays:l,broadcastCalendar:u,today:f=o.today()}=t,{isSameDay:h,isSameMonth:g,startOfMonth:m,isBefore:y,endOfMonth:v,isAfter:b}=o,w=n&&m(n),x=r&&v(r),_={[ye.focused]:[],[ye.outside]:[],[ye.disabled]:[],[ye.hidden]:[],[ye.today]:[]},k={};for(const E of e){const{date:C,displayMonth:S}=E,N=!!(S&&!g(C,S)),D=!!(w&&y(C,w)),M=!!(x&&b(C,x)),A=!!(s&&bt(C,s,o)),P=!!(a&&bt(C,a,o))||D||M||!u&&!l&&N||u&&l===!1&&N,T=h(C,f);N&&_.outside.push(E),A&&_.disabled.push(E),P&&_.hidden.push(E),T&&_.today.push(E),i&&Object.keys(i).forEach($=>{const q=i?.[$];q&&bt(C,q,o)&&(k[$]?k[$].push(E):k[$]=[E])})}return E=>{const C={[ye.focused]:!1,[ye.disabled]:!1,[ye.hidden]:!1,[ye.outside]:!1,[ye.today]:!1},S={};for(const N in _){const D=_[N];C[N]=D.some(M=>M===E)}for(const N in k)S[N]=k[N].some(D=>D===E);return{...C,...S}}}function Lb(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[Xe[s]]&&o.push(t[Xe[s]]),o),[t[H.Day]])}function Wb(e){return{...Ab,...e}}function Fb(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 ss(){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 Xe)e[Xe[t]]=`rdp-${Xe[t]}`;for(const t in Fe)e[Fe[t]]=`rdp-${Fe[t]}`;return e}function Uc(e,t,n){return(n??new ze(t)).formatMonthYear(e)}const $b=Uc;function Bb(e,t,n){return(n??new ze(t)).format(e,"d")}function zb(e,t=dt){return t.format(e,"LLLL")}function Hb(e,t,n){return(n??new ze(t)).format(e,"cccccc")}function Yb(e,t=dt){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function Vb(){return""}function Zc(e,t=dt){return t.format(e,"yyyy")}const qb=Zc,Gb=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:Uc,formatDay:Bb,formatMonthCaption:$b,formatMonthDropdown:zb,formatWeekNumber:Yb,formatWeekNumberHeader:Vb,formatWeekdayName:Hb,formatYearCaption:qb,formatYearDropdown:Zc},Symbol.toStringTag,{value:"Module"}));function Ub(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...Gb,...e}}function as(e,t,n,r){let o=(r??new ze(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const Zb=as;function is(e,t,n){return(n??new ze(t)).formatMonthYear(e)}const Xb=is;function Xc(e,t,n,r){let o=(r??new ze(n)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function Kc(e){return"Choose the Month"}function Qc(){return""}const Kb="Go to the Next Month";function Jc(e,t){return Kb}function el(e){return"Go to the Previous Month"}function tl(e,t,n){return(n??new ze(t)).format(e,"cccc")}function nl(e,t){return`Week ${e}`}function rl(e){return"Week Number"}function ol(e){return"Choose the Year"}const Qb=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:Xb,labelDay:Zb,labelDayButton:as,labelGrid:is,labelGridcell:Xc,labelMonthDropdown:Kc,labelNav:Qc,labelNext:Jc,labelPrevious:el,labelWeekNumber:nl,labelWeekNumberHeader:rl,labelWeekday:tl,labelYearDropdown:ol},Symbol.toStringTag,{value:"Module"})),Ue=(e,t,n)=>t||(n?typeof n=="function"?n:(...r)=>n:e);function Jb(e,t){const n=t.locale?.labels??{};return{...Qb,...e??{},labelDayButton:Ue(as,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:Ue(Kc,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:Ue(Jc,e?.labelNext,n.labelNext),labelPrevious:Ue(el,e?.labelPrevious,n.labelPrevious),labelWeekNumber:Ue(nl,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Ue(ol,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:Ue(is,e?.labelGrid,n.labelGrid),labelGridcell:Ue(Xc,e?.labelGridcell,n.labelGridcell),labelNav:Ue(Qc,e?.labelNav,n.labelNav),labelWeekNumberHeader:Ue(rl,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Ue(tl,e?.labelWeekday,n.labelWeekday)}}function ey(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(g=>{const m=r.formatMonthDropdown(g,o),y=u(g),v=t&&g<s(t)||n&&g>s(n)||!1;return{value:y,label:m,disabled:v}})}function ty(e,t={},n={}){let r={...t?.[H.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n?.[o]}}),r}function ny(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 ry(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),h=i({start:u,end:f});return o&&h.reverse(),h.map(g=>{const m=n.formatYearDropdown(g,r);return{value:l(g),label:m,disabled:!1}})}function oy(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 Re(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(Re.tz(e)),newDate:(i,l,u)=>new Re(i,l,u,12,0,0,e),startOfDay:i=>s(i),startOfWeek:(i,l)=>{const u=s(i),f=l?.weekStartsOn??o,h=(u.getDay()-f+7)%7;return u.setDate(u.getDate()-h),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),g=(((l?.weekStartsOn??o)+6)%7-u.getDay()+7)%7;return u.setDate(u.getDate()+g),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=[],h=new Re(l.getFullYear(),l.getMonth(),1,12,0,0,e),g=u.getFullYear()*12+u.getMonth();for(;h.getFullYear()*12+h.getMonth()<=g;)f.push(new Re(h,e)),h.setMonth(h.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=[],h=new Re(l.getFullYear(),0,1,12,0,0,e);for(;h.getFullYear()<=u.getFullYear();)f.push(new Re(h,e)),h.setFullYear(h.getFullYear()+1,0,1);return f},getWeek:(i,l)=>{const u=a(i);return ts(u,{weekStartsOn:l?.weekStartsOn??o,firstWeekContainsDate:l?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1})},getISOWeek:i=>{const l=a(i);return es(l)},differenceInCalendarDays:(i,l)=>{const u=a(i),f=a(l);return Jo(u,f)},differenceInCalendarMonths:(i,l)=>{const u=a(i),f=a(l);return Ic(u,f)}}}const Wn=e=>e instanceof HTMLElement?e:null,io=e=>[...e.querySelectorAll("[data-animated-month]")??[]],sy=e=>Wn(e.querySelector("[data-animated-month]")),co=e=>Wn(e.querySelector("[data-animated-caption]")),lo=e=>Wn(e.querySelector("[data-animated-weeks]")),ay=e=>Wn(e.querySelector("[data-animated-nav]")),iy=e=>Wn(e.querySelector("[data-animated-weekdays]"));function cy(e,t,{classNames:n,months:r,focused:o,dateLib:s}){const a=p.useRef(null),i=p.useRef(r),l=p.useRef(!1);p.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),h=s.isAfter(r[0].date,u[0].date),g=h?n[Fe.caption_after_enter]:n[Fe.caption_before_enter],m=h?n[Fe.weeks_after_enter]:n[Fe.weeks_before_enter],y=a.current,v=e.current.cloneNode(!0);if(v instanceof HTMLElement?(io(v).forEach(_=>{if(!(_ instanceof HTMLElement))return;const k=sy(_);k&&_.contains(k)&&_.removeChild(k);const E=co(_);E&&E.classList.remove(g);const C=lo(_);C&&C.classList.remove(m)}),a.current=v):a.current=null,l.current||f||o)return;const b=y instanceof HTMLElement?io(y):[],w=io(e.current);if(w?.every(x=>x instanceof HTMLElement)&&b&&b.every(x=>x instanceof HTMLElement)){l.current=!0,e.current.style.isolation="isolate";const x=ay(e.current);x&&(x.style.zIndex="1"),w.forEach((_,k)=>{const E=b[k];if(!E)return;_.style.position="relative",_.style.overflow="hidden";const C=co(_);C&&C.classList.add(g);const S=lo(_);S&&S.classList.add(m);const N=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),x&&(x.style.zIndex=""),C&&C.classList.remove(g),S&&S.classList.remove(m),_.style.position="",_.style.overflow="",_.contains(E)&&_.removeChild(E)};E.style.pointerEvents="none",E.style.position="absolute",E.style.overflow="hidden",E.setAttribute("aria-hidden","true");const D=iy(E);D&&(D.style.opacity="0");const M=co(E);M&&(M.classList.add(h?n[Fe.caption_before_exit]:n[Fe.caption_after_exit]),M.addEventListener("animationend",N));const A=lo(E);A&&A.classList.add(h?n[Fe.weeks_before_exit]:n[Fe.weeks_after_exit]),_.insertBefore(E,_.firstChild)})}})}function ly(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:h,endOfBroadcastWeek:g,endOfISOWeek:m,endOfMonth:y,endOfWeek:v,isAfter:b,startOfBroadcastWeek:w,startOfISOWeek:x,startOfWeek:_}=r,k=l?w(o,r):a?x(o):_(o),E=l?g(s):a?m(y(s)):v(y(s)),C=t&&(l?g(t):a?m(t):v(t)),S=C&&b(E,C)?C:E,N=f(S,k),D=h(s,o)+1,M=[];for(let T=0;T<=N;T++){const $=u(k,T);M.push($)}const P=(l?35:42)*D;if(i&&M.length<P){const T=P-M.length;for(let $=0;$<T;$++){const q=u(M[M.length-1],1);M.push(q)}}return M}function dy(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 uy(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 sa(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:h}=r;if(n&&u(n,l)<i-1){const g=-1*(i-1);l=f(n,g)}return t&&u(l,t)<0&&(l=t),h(l)}function fy(e,t,n,r){const{addDays:o,endOfBroadcastWeek:s,endOfISOWeek:a,endOfMonth:i,endOfWeek:l,getISOWeek:u,getWeek:f,startOfBroadcastWeek:h,startOfISOWeek:g,startOfWeek:m}=r,y=e.reduce((v,b)=>{const w=n.broadcastCalendar?h(b,r):n.ISOWeek?g(b):m(b),x=n.broadcastCalendar?s(b):n.ISOWeek?a(i(b)):l(i(b)),_=t.filter(S=>S>=w&&S<=x),k=n.broadcastCalendar?35:42;if(n.fixedWeeks&&_.length<k){const S=t.filter(N=>{const D=k-_.length;return N>x&&N<=o(x,D)});_.push(...S)}const E=_.reduce((S,N)=>{const D=n.ISOWeek?u(N):f(N),M=S.find(P=>P.weekNumber===D),A=new Yc(N,b,r);return M?M.days.push(A):S.push(new cb(D,[A])),S},[]),C=new ib(b,E);return v.push(C),v},[]);return n.reverseMonths?y.reverse():y}function hy(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:s,startOfMonth:a,endOfMonth:i,addYears:l,endOfYear:u,newDate:f,today:h}=t,{fromYear:g,toYear:m,fromMonth:y,toMonth:v}=e;!n&&y&&(n=y),!n&&g&&(n=t.newDate(g,0,1)),!r&&v&&(r=v),!r&&m&&(r=f(m,11,31));const b=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=a(n):g?n=f(g,0,1):!n&&b&&(n=o(l(e.today??h(),-100))),r?r=i(r):m?r=f(m,11,31):!r&&b&&(r=u(e.today??h())),[n&&s(n),r&&s(r)]}function my(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 py(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 gy(e){const t=[];return e.reduce((n,r)=>n.concat(r.weeks.slice()),t.slice())}function Lr(e,t){const[n,r]=p.useState(e);return[t===void 0?n:t,r]}function vy(e,t){const[n,r]=hy(e,t),{startOfMonth:o,endOfMonth:s}=t,a=sa(e,n,r,t),[i,l]=Lr(a,e.month?a:void 0);p.useEffect(()=>{const k=sa(e,n,r,t);l(k)},[e.timeZone]);const{months:u,weeks:f,days:h,previousMonth:g,nextMonth:m}=p.useMemo(()=>{const k=uy(i,r,{numberOfMonths:e.numberOfMonths},t),E=ly(k,e.endMonth?s(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),C=fy(k,E,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),S=gy(C),N=dy(C),D=py(i,n,e,t),M=my(i,r,e,t);return{months:C,weeks:S,days:N,previousMonth:D,nextMonth:M}},[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:y,onMonthChange:v}=e,b=k=>f.some(E=>E.days.some(C=>C.isEqualTo(k))),w=k=>{if(y)return;let E=o(k);n&&E<o(n)&&(E=o(n)),r&&E>o(r)&&(E=o(r)),l(E),v?.(E)};return{months:u,weeks:f,days:h,navStart:n,navEnd:r,previousMonth:g,nextMonth:m,goToMonth:w,goToDay:k=>{b(k)||w(k.date)}}}var rt;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(rt||(rt={}));function aa(e){return!e[ye.disabled]&&!e[ye.hidden]&&!e[ye.outside]}function by(e,t,n,r){let o,s=-1;for(const a of e){const i=t(a);aa(i)&&(i[ye.focused]&&s<rt.FocusedModifier?(o=a,s=rt.FocusedModifier):r?.isEqualTo(a)&&s<rt.LastFocused?(o=a,s=rt.LastFocused):n(a.date)&&s<rt.Selected?(o=a,s=rt.Selected):i[ye.today]&&s<rt.Today&&(o=a,s=rt.Today))}return o||(o=e.find(a=>aa(t(a)))),o}function yy(e,t,n,r,o,s,a){const{ISOWeek:i,broadcastCalendar:l}=s,{addDays:u,addMonths:f,addWeeks:h,addYears:g,endOfBroadcastWeek:m,endOfISOWeek:y,endOfWeek:v,max:b,min:w,startOfBroadcastWeek:x,startOfISOWeek:_,startOfWeek:k}=a;let C={day:u,week:h,month:f,year:g,startOfWeek:S=>l?x(S,a):i?_(S):k(S),endOfWeek:S=>l?m(S):i?y(S):v(S)}[e](n,t==="after"?1:-1);return t==="before"&&r?C=b([r,C]):t==="after"&&o&&(C=w([o,C])),C}function sl(e,t,n,r,o,s,a,i=0){if(i>365)return;const l=yy(e,t,n.date,r,o,s,a),u=!!(s.disabled&&bt(l,s.disabled,a)),f=!!(s.hidden&&bt(l,s.hidden,a)),h=l,g=new Yc(l,h,a);return!u&&!f?g:sl(e,t,g,r,o,s,a,i+1)}function wy(e,t,n,r,o){const{autoFocus:s}=e,[a,i]=p.useState(),l=by(t.days,n,r||(()=>!1),a),[u,f]=p.useState(s?l:void 0);return{isFocusTarget:v=>!!l?.isEqualTo(v),setFocused:f,focused:u,blur:()=>{i(u),f(void 0)},moveFocus:(v,b)=>{if(!u)return;const w=sl(v,b,u,t.navStart,t.navEnd,e,o);w&&(e.disableNavigation&&!t.days.some(_=>_.isEqualTo(w))||(t.goToDay(w),f(w)))}}}function xy(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=Lr(n,o?n:void 0),i=o?n:s,{isSameDay:l}=t,u=m=>i?.some(y=>l(y,m))??!1,{min:f,max:h}=e;return{selected:i,select:(m,y,v)=>{let b=[...i??[]];if(u(m)){if(i?.length===f||r&&i?.length===1)return;b=i?.filter(w=>!l(w,m))}else i?.length===h?b=[m]:b=[...b,m];return o||a(b),o?.(b,m,y,v),b},isSelected:u}}function _y(e,t,n=0,r=0,o=!1,s=dt){const{from:a,to:i}=t||{},{isSameDay:l,isAfter:u,isBefore:f}=s;let h;if(!a&&!i)h={from:e,to:n>0?void 0:e};else if(a&&!i)l(a,e)?n===0?h={from:a,to:e}:o?h={from:a,to:void 0}:h=void 0:f(e,a)?h={from:e,to:a}:h={from:a,to:e};else if(a&&i)if(l(a,e)&&l(i,e))o?h={from:a,to:i}:h=void 0;else if(l(a,e))h={from:a,to:n>0?void 0:e};else if(l(i,e))h={from:e,to:n>0?void 0:e};else if(f(e,a))h={from:e,to:i};else if(u(e,a))h={from:a,to:e};else if(u(e,i))h={from:a,to:e};else throw new Error("Invalid range");if(h?.from&&h?.to){const g=s.differenceInCalendarDays(h.to,h.from);r>0&&g>r?h={from:e,to:void 0}:n>1&&g<n&&(h={from:e,to:void 0})}return h}function Cy(e,t,n=dt){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 ia(e,t,n=dt){return vt(e,t.from,!1,n)||vt(e,t.to,!1,n)||vt(t,e.from,!1,n)||vt(t,e.to,!1,n)}function ky(e,t,n=dt){const r=Array.isArray(t)?t:[t];if(r.filter(i=>typeof i!="function").some(i=>typeof i=="boolean"?i:n.isDate(i)?vt(e,i,!1,n):Gc(i,n)?i.some(l=>vt(e,l,!1,n)):Ir(i)?i.from&&i.to?ia(e,{from:i.from,to:i.to},n):!1:qc(i)?Cy(e,i.dayOfWeek,n):ns(i)?n.isAfter(i.before,i.after)?ia(e,{from:n.addDays(i.after,1),to:n.addDays(i.before,-1)},n):bt(e.from,i,n)||bt(e.to,i,n):rs(i)||os(i)?bt(e.from,i,n)||bt(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 Ey(e,t){const{disabled:n,excludeDisabled:r,resetOnSelect:o,selected:s,required:a,onSelect:i}=e,[l,u]=Lr(s,i?s:void 0),f=i?s:l;return{selected:f,select:(m,y,v)=>{const{min:b,max:w}=e;let x;if(m){const _=f?.from,k=f?.to,E=!!_&&!!k,C=!!_&&!!k&&t.isSameDay(_,k)&&t.isSameDay(m,_);o&&(E||!f?.from)?!a&&C?x=void 0:x={from:m,to:void 0}:x=_y(m,f,b,w,a,t)}return r&&n&&x?.from&&x.to&&ky({from:x.from,to:x.to},n,t)&&(x.from=m,x.to=void 0),i||u(x),i?.(x,m,y,v),x},isSelected:m=>f&&vt(f,m,!1,t)}}function Sy(e,t){const{selected:n,required:r,onSelect:o}=e,[s,a]=Lr(n,o?n:void 0),i=o?n:s,{isSameDay:l}=t;return{selected:i,select:(h,g,m)=>{let y=h;return!r&&i&&i&&l(h,i)&&(y=void 0),o||a(y),o?.(y,h,g,m),y},isSelected:h=>i?l(i,h):!1}}function Ny(e,t){const n=Sy(e,t),r=xy(e,t),o=Ey(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function Ye(e,t){return e instanceof Re&&e.timeZone===t?e:new Re(e,t)}function Xt(e,t,n){return Ye(e,t)}function ca(e,t,n){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?Xt(e,t):Array.isArray(e)?e.map(r=>r instanceof Date?Xt(r,t):r):Ir(e)?{...e,from:e.from?Ye(e.from,t):e.from,to:e.to?Ye(e.to,t):e.to}:ns(e)?{before:Xt(e.before,t),after:Xt(e.after,t)}:rs(e)?{after:Xt(e.after,t)}:os(e)?{before:Xt(e.before,t)}:e}function uo(e,t,n){return e&&(Array.isArray(e)?e.map(r=>ca(r,t)):ca(e,t))}function jy(e){let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=Ye(t.today,n)),t.month&&(t.month=Ye(t.month,n)),t.defaultMonth&&(t.defaultMonth=Ye(t.defaultMonth,n)),t.startMonth&&(t.startMonth=Ye(t.startMonth,n)),t.endMonth&&(t.endMonth=Ye(t.endMonth,n)),t.mode==="single"&&t.selected?t.selected=Ye(t.selected,n):t.mode==="multiple"&&t.selected?t.selected=t.selected?.map(Q=>Ye(Q,n)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?Ye(t.selected.from,n):t.selected.from,to:t.selected.to?Ye(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=uo(t.disabled,n)),t.hidden!==void 0&&(t.hidden=uo(t.hidden,n)),t.modifiers)){const Q={};Object.keys(t.modifiers).forEach(le=>{Q[le]=uo(t.modifiers?.[le],n)}),t.modifiers=Q}const{components:r,formatters:o,labels:s,dateLib:a,locale:i,classNames:l}=p.useMemo(()=>{const Q={...Hc,...t.locale},le=t.broadcastCalendar?1:t.weekStartsOn,Z=t.noonSafe&&t.timeZone?oy(t.timeZone,{weekStartsOn:le,locale:Q}):void 0,ce=t.dateLib&&Z?{...Z,...t.dateLib}:t.dateLib??Z,Le=new ze({locale:Q,weekStartsOn:le,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},ce);return{dateLib:Le,components:Wb(t.components),formatters:Ub(t.formatters),labels:Jb(t.labels,Le.options),locale:Q,classNames:{...ss(),...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:h,numberOfMonths:g=1,onDayBlur:m,onDayClick:y,onDayFocus:v,onDayKeyDown:b,onDayMouseEnter:w,onDayMouseLeave:x,onNextClick:_,onPrevClick:k,showWeekNumber:E,styles:C}=t,{formatCaption:S,formatDay:N,formatMonthDropdown:D,formatWeekNumber:M,formatWeekNumberHeader:A,formatWeekdayName:P,formatYearDropdown:T}=o,$=vy(t,a),{days:q,months:R,navStart:V,navEnd:F,previousMonth:U,nextMonth:j,goToMonth:ee}=$,de=Ib(q,t,V,F,a),{isSelected:G,select:ae,selected:K}=Ny(t,a)??{},{blur:te,focused:ue,isFocusTarget:ke,moveFocus:re,setFocused:W}=wy(t,$,de,G??(()=>!1),a),{labelDayButton:ie,labelGridcell:_e,labelGrid:Me,labelMonthDropdown:Ve,labelNav:fe,labelPrevious:Oe,labelNext:ut,labelWeekday:$n,labelWeekNumber:Bn,labelWeekNumberHeader:Yt,labelYearDropdown:Wr}=s,Fr=p.useMemo(()=>ny(a,t.ISOWeek,t.broadcastCalendar,t.today),[a,t.ISOWeek,t.broadcastCalendar,t.today]),zn=f!==void 0||y!==void 0,un=p.useCallback(()=>{U&&(ee(U),k?.(U))},[U,ee,k]),z=p.useCallback(()=>{j&&(ee(j),_?.(j))},[ee,j,_]),be=p.useCallback((Q,le)=>Z=>{Z.preventDefault(),Z.stopPropagation(),W(Q),!le.disabled&&(ae?.(Q.date,le,Z),y?.(Q.date,le,Z))},[ae,y,W]),me=p.useCallback((Q,le)=>Z=>{W(Q),v?.(Q.date,le,Z)},[v,W]),Ee=p.useCallback((Q,le)=>Z=>{te(),m?.(Q.date,le,Z)},[te,m]),De=p.useCallback((Q,le)=>Z=>{const ce={ArrowLeft:[Z.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[Z.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[Z.shiftKey?"year":"week","after"],ArrowUp:[Z.shiftKey?"year":"week","before"],PageUp:[Z.shiftKey?"year":"month","before"],PageDown:[Z.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(ce[Z.key]){Z.preventDefault(),Z.stopPropagation();const[Le,se]=ce[Z.key];re(Le,se)}b?.(Q.date,le,Z)},[re,b,t.dir]),qe=p.useCallback((Q,le)=>Z=>{w?.(Q.date,le,Z)},[w]),Pe=p.useCallback((Q,le)=>Z=>{x?.(Q.date,le,Z)},[x]),Se=p.useCallback(Q=>le=>{const Z=Number(le.target.value),ce=a.setMonth(a.startOfMonth(Q),Z);ee(ce)},[a,ee]),ft=p.useCallback(Q=>le=>{const Z=Number(le.target.value),ce=a.setYear(a.startOfMonth(Q),Z);ee(ce)},[a,ee]),{className:ht,style:Ge}=p.useMemo(()=>({className:[l[H.Root],t.className].filter(Boolean).join(" "),style:{...C?.[H.Root],...t.style}}),[l,t.className,t.style,C]),et=Fb(t),Hn=p.useRef(null);cy(Hn,!!t.animate,{classNames:l,months:R,focused:ue,dateLib:a});const vl={dayPickerProps:t,selected:K,select:ae,isSelected:G,months:R,nextMonth:j,previousMonth:U,goToMonth:ee,getModifiers:de,components:r,classNames:l,styles:C,labels:s,formatters:o};return p.createElement(Vc.Provider,{value:vl},p.createElement(r.Root,{rootRef:t.animate?Hn:void 0,className:ht,style:Ge,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"],...et},p.createElement(r.Months,{className:l[H.Months],style:C?.[H.Months]},!t.hideNavigation&&!h&&p.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[H.Nav],style:C?.[H.Nav],"aria-label":fe(),onPreviousClick:un,onNextClick:z,previousMonth:U,nextMonth:j}),R.map((Q,le)=>p.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:l[H.Month],style:C?.[H.Month],key:le,displayIndex:le,calendarMonth:Q},h==="around"&&!t.hideNavigation&&le===0&&p.createElement(r.PreviousMonthButton,{type:"button",className:l[H.PreviousMonthButton],tabIndex:U?void 0:-1,"aria-disabled":U?void 0:!0,"aria-label":Oe(U),onClick:un,"data-animated-button":t.animate?"true":void 0},p.createElement(r.Chevron,{disabled:U?void 0:!0,className:l[H.Chevron],orientation:t.dir==="rtl"?"right":"left"})),p.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:l[H.MonthCaption],style:C?.[H.MonthCaption],calendarMonth:Q,displayIndex:le},u?.startsWith("dropdown")?p.createElement(r.DropdownNav,{className:l[H.Dropdowns],style:C?.[H.Dropdowns]},(()=>{const Z=u==="dropdown"||u==="dropdown-months"?p.createElement(r.MonthsDropdown,{key:"month",className:l[H.MonthsDropdown],"aria-label":Ve(),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:Se(Q.date),options:ey(Q.date,V,F,o,a),style:C?.[H.Dropdown],value:a.getMonth(Q.date)}):p.createElement("span",{key:"month"},D(Q.date,a)),ce=u==="dropdown"||u==="dropdown-years"?p.createElement(r.YearsDropdown,{key:"year",className:l[H.YearsDropdown],"aria-label":Wr(a.options),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:ft(Q.date),options:ry(V,F,o,a,!!t.reverseYears),style:C?.[H.Dropdown],value:a.getYear(Q.date)}):p.createElement("span",{key:"year"},T(Q.date,a));return a.getMonthYearOrder()==="year-first"?[ce,Z]:[Z,ce]})(),p.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))):p.createElement(r.CaptionLabel,{className:l[H.CaptionLabel],role:"status","aria-live":"polite"},S(Q.date,a.options,a))),h==="around"&&!t.hideNavigation&&le===g-1&&p.createElement(r.NextMonthButton,{type:"button",className:l[H.NextMonthButton],tabIndex:j?void 0:-1,"aria-disabled":j?void 0:!0,"aria-label":ut(j),onClick:z,"data-animated-button":t.animate?"true":void 0},p.createElement(r.Chevron,{disabled:j?void 0:!0,className:l[H.Chevron],orientation:t.dir==="rtl"?"left":"right"})),le===g-1&&h==="after"&&!t.hideNavigation&&p.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[H.Nav],style:C?.[H.Nav],"aria-label":fe(),onPreviousClick:un,onNextClick:z,previousMonth:U,nextMonth:j}),p.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":f==="multiple"||f==="range","aria-label":Me(Q.date,a.options,a)||void 0,className:l[H.MonthGrid],style:C?.[H.MonthGrid]},!t.hideWeekdays&&p.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:l[H.Weekdays],style:C?.[H.Weekdays]},E&&p.createElement(r.WeekNumberHeader,{"aria-label":Yt(a.options),className:l[H.WeekNumberHeader],style:C?.[H.WeekNumberHeader],scope:"col"},A()),Fr.map(Z=>p.createElement(r.Weekday,{"aria-label":$n(Z,a.options,a),className:l[H.Weekday],key:String(Z),style:C?.[H.Weekday],scope:"col"},P(Z,a.options,a)))),p.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:l[H.Weeks],style:C?.[H.Weeks]},Q.weeks.map(Z=>p.createElement(r.Week,{className:l[H.Week],key:Z.weekNumber,style:C?.[H.Week],week:Z},E&&p.createElement(r.WeekNumber,{week:Z,style:C?.[H.WeekNumber],"aria-label":Bn(Z.weekNumber,{locale:i}),className:l[H.WeekNumber],scope:"row",role:"rowheader"},M(Z.weekNumber,a)),Z.days.map(ce=>{const{date:Le}=ce,se=de(ce);if(se[ye.focused]=!se.hidden&&!!ue?.isEqualTo(ce),se[Xe.selected]=G?.(Le)||se.selected,Ir(K)){const{from:$r,to:Br}=K;se[Xe.range_start]=!!($r&&Br&&a.isSameDay(Le,$r)),se[Xe.range_end]=!!($r&&Br&&a.isSameDay(Le,Br)),se[Xe.range_middle]=vt(K,Le,!0,a)}const bl=ty(se,C,t.modifiersStyles),yl=Lb(se,l,t.modifiersClassNames),wl=!zn&&!se.hidden?_e(Le,se,a.options,a):void 0;return p.createElement(r.Day,{key:`${ce.isoDate}_${ce.displayMonthId}`,day:ce,modifiers:se,className:yl.join(" "),style:bl,role:"gridcell","aria-selected":se.selected||void 0,"aria-label":wl,"data-day":ce.isoDate,"data-month":ce.outside?ce.dateMonthId:void 0,"data-selected":se.selected||void 0,"data-disabled":se.disabled||void 0,"data-hidden":se.hidden||void 0,"data-outside":ce.outside||void 0,"data-focused":se.focused||void 0,"data-today":se.today||void 0},!se.hidden&&zn?p.createElement(r.DayButton,{className:l[H.DayButton],style:C?.[H.DayButton],type:"button",day:ce,modifiers:se,disabled:!se.focused&&se.disabled||void 0,"aria-disabled":se.focused&&se.disabled||void 0,tabIndex:ke(ce)?0:-1,"aria-label":ie(Le,se,a.options,a),onClick:be(ce,se),onBlur:Ee(ce,se),onFocus:me(ce,se),onKeyDown:De(ce,se),onMouseEnter:qe(ce,se),onMouseLeave:Pe(ce,se)},N(Le,a.options,a)):!se.hidden&&N(ce.date,a.options,a))})))))))),t.footer&&p.createElement(r.Footer,{className:l[H.Footer],style:C?.[H.Footer],role:"status","aria-live":"polite"},t.footer)))}function My({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r="label",buttonVariant:o="ghost",formatters:s,components:a,...i}){const l=ss();return c.jsx(jy,{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(ho({variant:o}),"h-(--cell-size) w-(--cell-size) select-none p-0 aria-disabled:opacity-50",l.button_previous),button_next:J(ho({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,...h})=>c.jsx("div",{"data-slot":"calendar",ref:f,className:J(u),...h}),Chevron:({className:u,orientation:f,...h})=>f==="left"?c.jsx(Ep,{className:J("size-4",u),...h}):f==="right"?c.jsx(Np,{className:J("size-4",u),...h}):c.jsx(Cp,{className:J("size-4",u),...h}),DayButton:Oy,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 Oy({className:e,day:t,modifiers:n,...r}){const o=ss(),s=d.useRef(null);return d.useEffect(()=>{n.focused&&s.current?.focus()},[n.focused]),c.jsx(yr,{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 en=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),Dy=()=>en(new Date),vr=e=>String(e).padStart(2,"0"),al=e=>`${e.getFullYear()}-${vr(e.getMonth()+1)}-${vr(e.getDate())}`,Py=e=>`${vr(e.getDate())}.${vr(e.getMonth()+1)}.${e.getFullYear()}`,il=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 en(r)},Ry="_wrapper_1sqfs_1",Ty="_trigger_1sqfs_8",Ay="_error_1sqfs_37",Iy="_triggerValue_1sqfs_44",Ly="_triggerIcon_1sqfs_51",vn={wrapper:Ry,trigger:Ty,error:Ay,triggerValue:Iy,triggerIcon:Ly},Wy=({label:e,required:t,value:n,onChange:r,minDate:o,error:s,disabled:a,tooltipContent:i,tooltipPopperClassName:l,className:u})=>{const[f,h]=p.useState(!1),g=p.useMemo(()=>il(n??void 0),[n]),m=p.useMemo(()=>g?Py(g):"",[g]),y=o?en(o):void 0;return c.jsxs("div",{className:O(vn.wrapper,u),children:[c.jsx(Ht,{required:t,tooltipContent:i,tooltipPopperClassName:l,children:e}),c.jsxs(xo,{open:f,onOpenChange:h,children:[c.jsx(_o,{asChild:!0,children:c.jsxs("button",{type:"button",disabled:a,className:O(vn.trigger,{[vn.error]:!!s},!m&&"text-muted-foreground"),children:[c.jsx("span",{className:vn.triggerValue,children:m||"Выберите дату"}),c.jsx(xp,{className:vn.triggerIcon,"aria-hidden":!0})]})}),c.jsx(Uo,{className:J("w-auto border border-slate-200 bg-white p-0 text-slate-900 shadow-lg"),align:"start",children:c.jsx(My,{mode:"single",selected:g,onSelect:v=>{r(v?al(en(v)):null),h(!1)},disabled:y?v=>en(v).getTime()<y.getTime():void 0,initialFocus:!0})})]}),s?c.jsx(_t,{variant:"error",children:s}):null]})},Fy="_wrapper_1mrfs_1",$y="_field_1mrfs_8",By="_disabled_1mrfs_15",zy="_control_1mrfs_19",Hy="_labelWithTooltip_1mrfs_28",Yy="_nativeInput_1mrfs_36",Vy="_box_1mrfs_48",qy="_error_1mrfs_81",Gy="_checkIcon_1mrfs_95",Uy="_labelText_1mrfs_108",Ze={wrapper:Fy,field:$y,disabled:By,control:zy,labelWithTooltip:Hy,nativeInput:Yy,box:Vy,error:qy,checkIcon:Gy,labelText:Uy},Zy=()=>c.jsx("svg",{className:Ze.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"})}),cl=p.forwardRef(({label:e,error:t,disabled:n,className:r,checkboxClassName:o,tooltipContent:s,tooltipPopperClassName:a,id:i,...l},u)=>{const f=p.useId(),h=i??f,g=c.jsxs("div",{className:O(Ze.field,{[Ze.disabled]:n}),children:[c.jsxs("label",{htmlFor:h,className:Ze.control,children:[c.jsx("input",{ref:u,id:h,type:"checkbox",disabled:n,"aria-invalid":t?!0:void 0,className:Ze.nativeInput,...l}),c.jsx("span",{className:O(Ze.box,{[Ze.error]:!!t},o),children:c.jsx(Zy,{})})]}),e&&s?c.jsx(Ht,{htmlFor:h,tooltipContent:s,tooltipPopperClassName:a,className:Ze.labelWithTooltip,labelClassName:Ze.labelText,children:e}):e?c.jsx(pr,{htmlFor:h,className:O(mr.label_inline,Ze.labelText),children:e}):null]});return c.jsxs("div",{className:O(Ze.wrapper,r),children:[g,t&&c.jsx(_t,{children:t})]})});cl.displayName="Checkbox";const Xy="_root_osjxx_1",Ky="_header_osjxx_11",Qy="_headerText_osjxx_21",Jy="_eyebrow_osjxx_27",ew="_title_osjxx_35",tw="_timeline_osjxx_42",nw="_level_osjxx_47",rw="_rail_osjxx_58",ow="_railLine_osjxx_65",sw="_railLine_completed_osjxx_74",aw="_railLine_toCurrent_osjxx_78",iw="_marker_osjxx_82",cw="_marker_completed_osjxx_101",lw="_marker_current_osjxx_107",dw="_body_osjxx_120",uw="_levelHeader_osjxx_125",fw="_levelName_osjxx_132",hw="_levelName_current_osjxx_141",mw="_levelName_completed_osjxx_147",pw="_iconButton_osjxx_152",gw="_iconButton_danger_osjxx_176",vw="_stages_osjxx_182",bw="_stage_osjxx_182",yw="_stage_current_osjxx_199",ww="_stageHeader_osjxx_204",xw="_stageName_osjxx_212",_w="_stageActions_osjxx_220",Cw="_approvers_osjxx_227",kw="_approver_osjxx_227",Ew="_approverMain_osjxx_242",Sw="_approverName_osjxx_249",Nw="_approverName_pending_osjxx_255",jw="_approverName_rejected_osjxx_259",Mw="_approverName_approved_osjxx_264",Ow="_approverDate_osjxx_268",Dw="_rejectReason_osjxx_273",Pw="_empty_osjxx_283",Rw="_addStage_osjxx_300",Tw="_addLevel_osjxx_323",Aw="_dialogContent_osjxx_327",Iw="_dialogInput_osjxx_333",Lw="_dialogActions_osjxx_348",Ww="_approverPickerWrap_osjxx_354",Fw="_approverPickerInput_osjxx_361",Y={root:Xy,header:Ky,headerText:Qy,eyebrow:Jy,title:ew,timeline:tw,level:nw,rail:rw,railLine:ow,railLine_completed:sw,railLine_toCurrent:aw,marker:iw,marker_completed:cw,marker_current:lw,body:dw,levelHeader:uw,levelName:fw,levelName_current:hw,levelName_completed:mw,iconButton:pw,iconButton_danger:gw,stages:vw,stage:bw,stage_current:yw,stageHeader:ww,stageName:xw,stageActions:_w,approvers:Cw,approver:kw,approverMain:Ew,approverName:Sw,approverName_pending:Nw,approverName_rejected:jw,approverName_approved:Mw,approverDate:Ow,rejectReason:Dw,empty:Pw,addStage:Rw,addLevel:Tw,dialogContent:Aw,dialogInput:Iw,dialogActions:Lw,approverPickerWrap:Ww,approverPickerInput:Fw},rr=({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 la({open:e,title:t,placeholder:n,onSubmit:r,onClose:o}){const[s,a]=p.useState("");p.useEffect(()=>{e||a("")},[e]);const i=()=>{const l=s.trim();l&&(r(l),o())};return c.jsx(Tr,{open:e,onOpenChange:l=>!l&&o(),children:c.jsxs(Rn,{className:"sm:rounded-2xl",children:[c.jsx(Tn,{children:c.jsx(An,{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 $w=({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:h})=>{const[g,m]=p.useState(!1),[y,v]=p.useState(null);return c.jsxs("div",{className:O(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((b,w)=>{const x=e[w+1],_=O(Y.railLine,{[Y.railLine_completed]:b.status==="completed"&&x?.status==="completed",[Y.railLine_toCurrent]:b.status==="completed"&&x?.status==="current"});return c.jsxs("div",{className:Y.level,children:[c.jsxs("div",{className:Y.rail,children:[w<e.length-1&&c.jsx("span",{className:_}),c.jsx("span",{className:O(Y.marker,{[Y.marker_completed]:b.status==="completed",[Y.marker_current]:b.status==="current"}),children:b.status==="completed"&&c.jsx(jo,{})})]}),c.jsxs("div",{className:Y.body,children:[c.jsxs("div",{className:Y.levelHeader,children:[c.jsx("span",{className:O(Y.levelName,{[Y.levelName_current]:b.status==="current",[Y.levelName_completed]:b.status==="completed"}),children:b.name}),t&&c.jsxs(c.Fragment,{children:[c.jsx("button",{type:"button",className:Y.iconButton,onClick:()=>v(b.id),"aria-label":"Добавить этап",title:"Добавить этап",children:c.jsx(rr,{})}),c.jsx("button",{type:"button",className:O(Y.iconButton,Y.iconButton_danger),onClick:()=>i?.(b.id),"aria-label":"Удалить уровень",title:"Удалить уровень",children:c.jsx(it,{})})]})]}),b.stages.length>0&&c.jsx("div",{className:Y.stages,children:b.stages.map(k=>c.jsxs("div",{className:O(Y.stage,{[Y.stage_current]:b.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(Qo,{value:null,placeholder:"",title:"Добавить согласующего",searchPlaceholder:"Поиск сотрудника",loadOptions:s,onChange:E=>f?.(b.id,k.id,E),className:Y.approverPickerWrap,inputClassName:Y.approverPickerInput,selectedOptionRender:()=>c.jsx(rr,{})}):null,c.jsx("button",{type:"button",className:O(Y.iconButton,Y.iconButton_danger),onClick:()=>u?.(b.id,k.id),"aria-label":"Удалить этап",title:"Удалить этап",children:c.jsx(it,{})})]})})]}),k.approvers.length===0?c.jsxs("span",{className:Y.empty,children:[c.jsx(va,{}),"Согласующий не назначен"]}):c.jsx("div",{className:Y.approvers,children:k.approvers.map(E=>{const C=E.status??"pending";return c.jsxs("div",{className:Y.approver,children:[c.jsxs("div",{className:Y.approverMain,children:[c.jsx("span",{className:O(Y.approverName,{[Y.approverName_pending]:C==="pending",[Y.approverName_approved]:C==="approved",[Y.approverName_rejected]:C==="rejected"}),children:E.fullName}),E.actedAt&&C!=="pending"&&c.jsx("span",{className:Y.approverDate,children:E.actedAt}),C==="rejected"&&E.rejectReason&&c.jsxs("span",{className:Y.rejectReason,children:["Причина: ",E.rejectReason]})]}),t&&c.jsx("button",{type:"button",className:O(Y.iconButton,Y.iconButton_danger),onClick:()=>h?.(b.id,k.id,E.id),"aria-label":"Удалить согласующего",title:"Удалить согласующего",children:c.jsx(it,{})})]},E.id)})})]},k.id))}),t&&c.jsxs("button",{type:"button",className:Y.addStage,onClick:()=>v(b.id),children:[c.jsx(rr,{})," Добавить этап"]})]})]},b.id)}),t&&c.jsxs("div",{className:Y.level,children:[c.jsx("div",{className:Y.rail,children:c.jsx("span",{className:O(Y.marker),"aria-hidden":!0})}),c.jsx("div",{className:Y.body,children:c.jsxs("button",{type:"button",className:O(Y.addStage,Y.addLevel),onClick:()=>m(!0),children:[c.jsx(rr,{})," Добавить уровень"]})})]})]}),c.jsx(la,{open:g,title:"Новый уровень",placeholder:"Название уровня",onClose:()=>m(!1),onSubmit:b=>a?.(b)}),c.jsx(la,{open:y!==null,title:"Новый этап",placeholder:"Название этапа",onClose:()=>v(null),onSubmit:b=>y&&l?.(y,b)})]})},Bw="_root_1426e_1",zw="_card_1426e_8",Hw="_size_lg_1426e_15",Yw="_section_1426e_19",Vw="_sectionHeader_1426e_29",qw="_sectionTitle_1426e_36",Gw="_sectionDescription_1426e_46",Uw="_fields_1426e_54",Zw="_fields_2col_1426e_62",Xw="_field_1426e_54",Kw="_field_span2_1426e_84",Qw="_field_interactive_1426e_88",Jw="_label_1426e_92",ex="_value_1426e_100",tx="_valueRow_1426e_113",nx="_copyTrigger_1426e_120",rx="_copyableValue_1426e_126",ox="_hint_1426e_131",sx="_empty_1426e_139",ax="_divider_1426e_143",ix="_loading_1426e_150",we={root:Bw,card:zw,size_lg:Hw,section:Yw,sectionHeader:Vw,sectionTitle:qw,sectionDescription:Gw,fields:Uw,fields_2col:Zw,field:Xw,field_span2:Kw,field_interactive:Qw,label:Jw,value:ex,valueRow:tx,copyTrigger:nx,copyableValue:rx,hint:ox,empty:sx,divider:ax,loading:ix},cx=e=>e==null||e===""||typeof e=="number"&&Number.isNaN(e),lx=e=>e==null?"":typeof e=="string"||typeof e=="number"?String(e):"",ll=({label:e,value:t,children:n,hint:r,copyable:o,copyText:s,render:a,hidden:i,span:l,emptyPlaceholder:u="—",className:f})=>{const[h,g]=p.useState(!1),m=p.useCallback(()=>{const b=s??lx(n??t);!b||typeof navigator>"u"||!navigator.clipboard||navigator.clipboard.writeText(b).then(()=>{g(!0),window.setTimeout(()=>g(!1),1400)})},[s,t,n]);if(i)return null;const y=n??t,v=cx(y)?c.jsx("span",{className:we.empty,children:u}):y;return a?c.jsx(c.Fragment,{children:a({label:e,value:v})}):c.jsxs("div",{className:O(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(Do,{iconOnly:!0,copied:h,onClick:m,ariaLabel:"Скопировать значение"})})]}):v}),r&&c.jsx("div",{className:we.hint,children:r})]})]})},dl=({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:O(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:O(we.fields,s===2&&we.fields_2col),children:[i.map((l,u)=>c.jsx(ll,{...l},(typeof l.label=="string"?l.label:null)??`field-${u}`)),o]})]})},dx=({className:e})=>c.jsx("hr",{className:O(we.divider,e)}),ux=({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=O(we.root,n==="card"&&we.card,o==="lg"&&we.size_lg,i),h={"--cozy-detail-label-width":u};if(s)return c.jsx("div",{className:f,style:h,id:l,children:c.jsx("div",{className:we.loading,children:c.jsx(Ke,{})})});const g=e&&e.length>0,m=p.Children.count(t)>0;return!g&&!m?c.jsx("div",{className:f,style:h,id:l,children:a??c.jsx(zt,{})}):c.jsxs("div",{className:f,style:h,id:l,children:[g&&e.map((y,v)=>c.jsx(dl,{...y},y.id??`section-${v}`)),m&&p.Children.map(t,y=>(p.isValidElement(y),y))]})},Fn=p.memo(ux);Fn.Section=dl;Fn.Field=ll;Fn.Divider=dx;Fn.displayName="DetailView";const fx="_root_1z0dx_1",hx="_header_1z0dx_14",mx="_headerText_1z0dx_23",px="_eyebrow_1z0dx_29",gx="_title_1z0dx_37",vx="_counter_1z0dx_44",bx="_list_1z0dx_53",yx="_loadOlderBtn_1z0dx_59",wx="_expandBtn_1z0dx_84",xx="_item_1z0dx_102",_x="_avatar_1z0dx_109",Cx="_body_1z0dx_125",kx="_bubble_1z0dx_132",Ex="_actions_1z0dx_144",Sx="_bubble_deleted_1z0dx_148",Nx="_meta_1z0dx_154",jx="_author_1z0dx_162",Mx="_date_1z0dx_168",Ox="_editedTag_1z0dx_173",Dx="_text_1z0dx_179",Px="_recipients_1z0dx_187",Rx="_attachments_1z0dx_203",Tx="_attachment_1z0dx_203",Ax="_attachmentName_1z0dx_227",Ix="_attachmentSize_1z0dx_234",Lx="_attachmentRemove_1z0dx_239",Wx="_iconButton_1z0dx_278",Fx="_iconButton_danger_1z0dx_302",$x="_children_1z0dx_309",Bx="_form_1z0dx_320",zx="_form_root_1z0dx_330",Hx="_form_inline_1z0dx_335",Yx="_textarea_1z0dx_339",Vx="_formRow_1z0dx_359",qx="_formTools_1z0dx_367",Gx="_formActions_1z0dx_374",Ux="_toolBtn_1z0dx_380",Zx="_recipientsPickerWrap_1z0dx_403",Xx="_recipientsPickerInput_1z0dx_410",Kx="_recipientsChips_1z0dx_459",Qx="_chip_1z0dx_465",Jx="_empty_1z0dx_496",e_="_skeleton_1z0dx_500",t_="_skeletonLine_1z0dx_507",n_="_dialogContent_1z0dx_523",r_="_dialogActions_1z0dx_531",o_="_branchSpinner_1z0dx_537",s_="_hiddenInput_1z0dx_543",B={root:fx,header:hx,headerText:mx,eyebrow:px,title:gx,counter:vx,list:bx,loadOlderBtn:yx,expandBtn:wx,item:xx,avatar:_x,body:Cx,bubble:kx,actions:Ex,bubble_deleted:Sx,meta:Nx,author:jx,date:Mx,editedTag:Ox,text:Dx,recipients:Px,attachments:Rx,attachment:Tx,attachmentName:Ax,attachmentSize:Ix,attachmentRemove:Lx,iconButton:Wx,iconButton_danger:Fx,children:$x,form:Bx,form_root:zx,form_inline:Hx,textarea:Yx,formRow:Vx,formTools:qx,formActions:Gx,toolBtn:Ux,recipientsPickerWrap:Zx,recipientsPickerInput:Xx,recipientsChips:Kx,chip:Qx,empty:Jx,skeleton:e_,skeletonLine:t_,dialogContent:n_,dialogActions:r_,branchSpinner:o_,hiddenInput:s_},a_=10,i_=10*6e4,wn="__root__",xn=e=>e??wn;function c_(e){return e.trim().split(/\s+/).slice(0,2).map(n=>n[0]?.toUpperCase()??"").join("")}function ul(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function da(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 or(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 l_(e,t){const[n,r]=p.useState({}),o=p.useRef({}),s=p.useCallback((m,y)=>{const v=xn(m);r(b=>{const w=b[v]??{items:[],total:0,loadedFrom:0,loading:!1,loaded:!1};return{...b,[v]:y(w)}})},[]),a=p.useCallback(async m=>{const y=xn(m),v=(o.current[y]??0)+1;o.current[y]=v,s(m,_=>({..._,loading:!0}));const b=await t({parentId:m,skip:0,take:e});if(o.current[y]!==v)return;if(b.total<=e){s(m,()=>({items:or(b.items),total:b.total,loadedFrom:0,loading:!1,loaded:!0}));return}const w=b.total-e,x=await t({parentId:m,skip:w,take:e});o.current[y]===v&&s(m,()=>({items:or(x.items),total:x.total,loadedFrom:w,loading:!1,loaded:!0}))},[t,e,s]),i=p.useCallback(async m=>{const y=xn(m),v=n[y];if(!v||v.loading||v.loadedFrom<=0)return;const b=Math.min(e,v.loadedFrom),w=v.loadedFrom-b,x=(o.current[y]??0)+1;o.current[y]=x,s(m,k=>({...k,loading:!0}));const _=await t({parentId:m,skip:w,take:b});o.current[y]===x&&s(m,k=>({...k,items:or([..._.items,...k.items]),total:_.total,loadedFrom:w,loading:!1}))},[n,t,e,s]),l=p.useCallback((m,y)=>{s(m,v=>{const b=or([...v.items,y]);return{...v,items:b,total:v.total+1,loaded:!0}})},[s]),u=p.useCallback((m,y,v)=>{s(m,b=>({...b,items:b.items.map(w=>w.id===y?v(w):w)}))},[s]),f=p.useCallback((m,y)=>{s(m,v=>({...v,items:v.items.filter(b=>b.id!==y),total:Math.max(0,v.total-1)}))},[s]),h=p.useCallback(m=>{const y=xn(m);o.current[y]=(o.current[y]??0)+1,r(v=>{const b={...v};return delete b[y],b})},[]),g=p.useCallback(()=>{o.current={},r({})},[]);return{branches:n,loadInitial:a,loadOlder:i,appendLocal:l,replaceLocal:u,removeLocal:f,resetBranch:h,resetAll:g}}function fl({open:e,title:t,message:n,confirmText:r="Удалить",cancelText:o="Отмена",danger:s=!0,onConfirm:a,onClose:i}){return c.jsx(Tr,{open:e,onOpenChange:l=>!l&&i(),children:c.jsxs(Rn,{className:"sm:rounded-2xl",children:[c.jsx(Tn,{children:c.jsx(An,{children:t})}),c.jsx("div",{className:B.dialogContent,children:n}),c.jsxs(Ar,{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 So({mode:e,initialText:t="",initialAttachments:n=[],initialRecipients:r=[],placeholder:o,submitLabel:s,recipientsSource:a,onUploadAttachment:i,onDeleteAttachment:l,onSubmit:u,onCancel:f,submitting:h}){const[g,m]=p.useState(t),[y,v]=p.useState(n),[b,w]=p.useState(r),[x,_]=p.useState(!1),[k,E]=p.useState(null),C=p.useRef(null),S=async M=>{if(!(!M||!i)){_(!0);try{for(const A of Array.from(M)){const P=await i(A);v(T=>[...T,P])}}finally{_(!1),C.current&&(C.current.value="")}}},N=async()=>{if(!k)return;const M=k;if(E(null),l)try{await l(M)}catch{}v(A=>A.filter(P=>P.id!==M.id))},D=async()=>{const M=g.trim();M&&(await u({text:M,attachments:y,recipients:b}),e!=="edit"&&(m(""),v([]),w([])))};return c.jsxs("div",{className:O(B.form,{[B.form_root]:e==="root",[B.form_inline]:e!=="root"}),children:[c.jsx("textarea",{className:B.textarea,placeholder:o??"Напишите комментарий...",value:g,onChange:M=>m(M.target.value)}),b.length>0&&c.jsx("div",{className:B.recipientsChips,children:b.map(M=>c.jsxs("span",{className:B.chip,children:[M.name,c.jsx("button",{type:"button","aria-label":"Удалить получателя",onClick:()=>w(A=>A.filter(P=>P.id!==M.id)),children:c.jsx(it,{})})]},M.id))}),y.length>0&&c.jsx("div",{className:B.attachments,children:y.map(M=>c.jsxs("span",{className:B.attachment,children:[c.jsx("span",{className:B.attachmentName,children:M.name}),c.jsx("span",{className:B.attachmentSize,children:ul(M.size)}),c.jsx("button",{type:"button",className:B.attachmentRemove,"aria-label":"Удалить вложение",onClick:()=>E(M),children:c.jsx(it,{})})]},M.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:x,children:[c.jsx(Ca,{style:{transform:"rotate(180deg)"}}),x?"Загрузка...":"Прикрепить файл"]}),c.jsx("input",{ref:C,type:"file",multiple:!0,className:B.hiddenInput,onChange:M=>S(M.target.files)})]}),a&&c.jsx(Qo,{value:null,placeholder:b.length>0?`Ознакомители (${b.length})`:"Ознакомители",title:"Добавить ознакомителя",searchPlaceholder:"Поиск сотрудника",selectButtonText:"",loadOptions:a,onChange:M=>{const A=M.meta,P=A||{id:String(M.value),name:String(M.label)};w(T=>T.some($=>$.id===P.id)?T:[...T,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:h,disabled:!g.trim()||h,children:s??(e==="edit"?"Сохранить":"Отправить")})]})]}),c.jsx(fl,{open:!!k,title:"Удалить вложение?",message:`«${k?.name??""}» будет удалено без возможности восстановления.`,onConfirm:N,onClose:()=>E(null)})]})}function hl({comment:e,ctx:t}){const[n,r]=p.useState(!1),[o,s]=p.useState(!1),[a,i]=p.useState(!1),[l,u]=p.useState(!1),[f,h]=p.useState(!1),g=xn(e.id),m=t.branches[g],y=e.author.id===t.currentUser.id,v=new Date(e.createdAt).getTime(),b=Number.isNaN(v)?!1:Date.now()-v<t.editWindowMs;t.nowTick;const w=!e.deleted&&(e.permissions?.canEdit??(y&&b)),x=!e.deleted&&(e.permissions?.canDelete??y),_=!e.deleted&&(e.permissions?.canReply??t.permissions.canReply??!0),k=async()=>{const S=!n;r(S),S&&!m?.loaded&&await t.loadInitial(e.id)},E=async S=>{h(!0);try{m?.loaded,await t.createReply(e.id,{parentId:e.id,text:S.text,attachments:S.attachments,recipients:S.recipients}),r(!0),s(!1)}finally{h(!1)}},C=async S=>{h(!0);try{await t.editComment(e,{id:e.id,text:S.text,attachments:S.attachments,recipients:S.recipients}),i(!1)}finally{h(!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"}}):c_(e.author.name)}),c.jsxs("div",{className:B.body,children:[a?c.jsx(So,{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:O(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:da(e.createdAt)}),e.editedAt&&!e.deleted&&c.jsxs("span",{className:B.editedTag,children:["(изм. ",da(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:ul(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(ba,{}),"Уведомлены: ",e.recipients.map(S=>S.name).join(", ")]}),!e.deleted&&c.jsxs("div",{className:B.actions,children:[_&&c.jsx("button",{type:"button",className:B.iconButton,onClick:()=>s(S=>!S),title:"Ответить","aria-label":"Ответить",children:c.jsx(pa,{})}),w&&c.jsx("button",{type:"button",className:B.iconButton,onClick:()=>i(!0),title:"Редактировать","aria-label":"Редактировать",children:c.jsx(xa,{})}),x&&c.jsx("button",{type:"button",className:O(B.iconButton,B.iconButton_danger),onClick:()=>u(!0),title:"Удалить","aria-label":"Удалить",children:c.jsx(ga,{})})]})]}),e.repliesCount>0&&c.jsxs("button",{type:"button",className:B.expandBtn,onClick:k,children:[c.jsx(yt,{style:{width:12,height:12,transform:n?"rotate(180deg)":"rotate(0)",transition:"transform 0.15s ease"}}),n?"Скрыть ответы":`Показать ответы (${e.repliesCount})`,m?.loading&&c.jsx("span",{className:B.branchSpinner,children:c.jsx(Ke,{size:"extraSmall"})})]}),o&&c.jsx(So,{mode:"reply",placeholder:`Ответить ${e.author.name}…`,recipientsSource:t.recipientsSource,onUploadAttachment:t.onUploadAttachment,onDeleteAttachment:t.onDeleteAttachment,onSubmit:E,onCancel:()=>s(!1),submitting:f}),n&&m&&c.jsxs("div",{className:B.children,children:[m.loadedFrom>0&&c.jsxs("button",{type:"button",className:B.loadOlderBtn,onClick:()=>t.loadOlder(e.id),disabled:m.loading,children:[m.loading?c.jsx(Ke,{size:"extraSmall"}):c.jsx(yt,{style:{transform:"rotate(180deg)",width:12,height:12}}),"Показать предыдущие (",m.loadedFrom,")"]}),m.items.map(S=>c.jsx(hl,{comment:S,ctx:t},S.id))]})]}),c.jsx(fl,{open:l,title:"Удалить комментарий?",message:"Это действие нельзя отменить.",onConfirm:async()=>{u(!1),await t.deleteComment(e)},onClose:()=>u(!1)})]})}const d_=p.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:h=i_,pageSize:g=a_,title:m="Комментарии",eyebrow:y="Discussion",className:v},b){const{branches:w,loadInitial:x,loadOlder:_,appendLocal:k,replaceLocal:E,removeLocal:C,resetBranch:S,resetAll:N}=l_(g,t),[D,M]=p.useState(!1),[A,P]=p.useState(0);p.useEffect(()=>{const j=window.setInterval(()=>P(ee=>ee+1),3e4);return()=>window.clearInterval(j)},[]),p.useEffect(()=>{w[wn]||x(null)},[]),p.useImperativeHandle(b,()=>({refresh:j=>{j===void 0?(N(),x(null)):(S(j),x(j))}}),[x,N,S]);const T=p.useCallback(async(j,ee)=>{if(!o)return;const de=await o(ee);if(k(j,de),j!==null){for(const G of Object.keys(w))if(w[G].items.some(K=>K.id===j)){E(G===wn?null:G,j,K=>({...K,repliesCount:K.repliesCount+1}));break}}},[k,w,o,E]),$=p.useCallback(async(j,ee)=>{if(!s)return;const de=await s(ee);E(j.parentId,j.id,()=>de)},[s,E]),q=p.useCallback(async j=>{if(a){if(await a(j.id),j.repliesCount>0)E(j.parentId,j.id,ee=>({...ee,deleted:!0,text:"",attachments:[],recipients:[]}));else if(C(j.parentId,j.id),j.parentId!==null){for(const ee of Object.keys(w))if(w[ee].items.some(G=>G.id===j.parentId)){E(ee===wn?null:ee,j.parentId,G=>({...G,repliesCount:Math.max(0,G.repliesCount-1)}));break}}}},[w,a,C,E]),R=w[wn],V=p.useMemo(()=>({currentUser:n,permissions:f,editWindowMs:h,recipientsSource:r,onUploadAttachment:i,onDeleteAttachment:u,onDownloadAttachment:l,branches:w,loadInitial:x,loadOlder:_,createReply:T,editComment:$,deleteComment:q,nowTick:A}),[w,T,n,q,$,h,x,_,A,u,l,i,f,r]),F=async j=>{M(!0);try{await T(null,{parentId:null,text:j.text,attachments:j.attachments,recipients:j.recipients})}finally{M(!1)}},U=f.canCreate??!0;return c.jsxs("div",{className:O(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:y}),c.jsx("span",{className:B.title,children:m})]}),R&&c.jsx("span",{className:B.counter,children:R.total})]}),U&&o&&c.jsx(So,{mode:"root",placeholder:"Поделитесь мнением или задайте вопрос...",submitLabel:"Опубликовать",recipientsSource:r,onUploadAttachment:i,onDeleteAttachment:u,onSubmit:F,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:()=>_(null),disabled:R.loading,children:[R.loading?c.jsx(Ke,{size:"extraSmall"}):c.jsx(yt,{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(zt,{title:"Пока нет комментариев",subtitle:"Будьте первым, кто напишет."})}),R&&R.items.length>0&&c.jsx("div",{className:B.list,children:R.items.map(j=>c.jsx(hl,{comment:j,ctx:V},j.id))})]})}),u_="_root_1uhrx_1",f_="_collapsed_1uhrx_14",h_="_variant_classic_1uhrx_19",m_="_sectionTitle_1uhrx_24",p_="_item_1uhrx_32",g_="_item_active_1uhrx_38",v_="_user_1uhrx_53",b_="_badge_1uhrx_56",y_="_footer_1uhrx_60",w_="_variant_aurora_1uhrx_65",x_="_sectionDot_1uhrx_79",__="_icon_1uhrx_88",C_="_userName_1uhrx_120",k_="_userRole_1uhrx_123",E_="_avatar_1uhrx_126",S_="_avatarInitials_1uhrx_129",N_="_collapseBtn_1uhrx_145",j_="_divider_1uhrx_154",M_="_blob_1uhrx_159",O_="_blob_a_1uhrx_168",D_="_blob_b_1uhrx_176",P_="_header_1uhrx_186",R_="_user_clickable_1uhrx_210",T_="_userSlot_1uhrx_217",A_="_avatarBadge_1uhrx_254",I_="_userText_1uhrx_267",L_="_collapseIcon_1uhrx_309",W_="_collapseIcon_rot_1uhrx_315",F_="_bodyWrap_1uhrx_320",$_="_body_1uhrx_320",B_="_bodyContent_1uhrx_338",z_="_section_1uhrx_24",H_="_list_1uhrx_354",Y_="_itemWrap_1uhrx_363",V_="_item_disabled_1uhrx_391",q_="_item_nested_1uhrx_396",G_="_item_scrollEdgeBottom_1uhrx_402",U_="_iconStub_1uhrx_409",Z_="_label_1uhrx_425",X_="_chev_1uhrx_442",K_="_chev_open_1uhrx_449",Q_="_sub_1uhrx_454",J_="_sub_open_1uhrx_461",e4="_subList_1uhrx_466",t4="_custom_1uhrx_510",X={root:u_,collapsed:f_,variant_classic:h_,sectionTitle:m_,item:p_,item_active:g_,user:v_,badge:b_,footer:y_,variant_aurora:w_,sectionDot:x_,icon:__,userName:C_,userRole:k_,avatar:E_,avatarInitials:S_,collapseBtn:N_,divider:j_,blob:M_,blob_a:O_,blob_b:D_,header:P_,user_clickable:R_,userSlot:T_,avatarBadge:A_,userText:I_,collapseIcon:L_,collapseIcon_rot:W_,bodyWrap:F_,body:$_,bodyContent:B_,section:z_,list:H_,itemWrap:Y_,item_disabled:V_,item_nested:q_,item_scrollEdgeBottom:G_,iconStub:U_,label:Z_,chev:X_,chev_open:K_,sub:Q_,sub_open:J_,subList:e4,custom:t4},No=new Set,ml=p.createContext({variant:"classic",collapsed:!1,activeId:void 0,setActive:()=>{},edgeBottomIds:No}),pl=()=>p.useContext(ml),ua=(e,t)=>e==null?t:typeof e=="number"?`${e}px`:e,n4=e=>e.trim().split(/\s+/).slice(0,2).map(n=>n[0]?.toUpperCase()??"").join(""),fa=2,r4=24,o4=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0},cs=({id:e,label:t,icon:n,href:r,active:o,badge:s,disabled:a,onClick:i,children:l,level:u=0})=>{const f=pl(),h=o??f.activeId===e,g=!!(l&&l.length>0),[m,y]=p.useState(g&&!!l?.some(C=>C.id===f.activeId)),v=p.useCallback(C=>{if(a){C.preventDefault();return}if(g){C.preventDefault(),y(S=>!S);return}f.setActive(e),i?.(C)},[f,a,g,e,i]),b=!f.collapsed&&c.jsx("span",{className:X.label,children:t}),w=n?c.jsx("span",{className:X.icon,children:n}):c.jsx("span",{className:X.iconStub}),x=c.jsxs(c.Fragment,{children:[w,b,!f.collapsed&&s!=null&&c.jsx("span",{className:X.badge,children:s}),!f.collapsed&&g&&c.jsx("span",{className:O(X.chev,m&&X.chev_open),"aria-hidden":!0,children:c.jsx(yt,{width:12,height:12})})]}),_={className:O(X.item,h&&X.item_active,a&&X.item_disabled,u>0&&X.item_nested,f.edgeBottomIds.has(e)&&X.item_scrollEdgeBottom),"aria-current":h?"page":void 0,"aria-expanded":g?m:void 0,"data-id":e,onClick:v},k=r&&!g&&!a?c.jsx("a",{href:r,..._,children:x}):c.jsx("button",{type:"button",disabled:a,..._,children:x}),E=f.collapsed?c.jsx(wr,{title:t,placement:"right",children:k}):k;return c.jsxs("li",{className:X.itemWrap,children:[E,g&&c.jsx("div",{className:O(X.sub,m&&!f.collapsed&&X.sub_open),"aria-hidden":!m,children:c.jsx("ul",{className:X.subList,children:l.map(C=>c.jsx(cs,{...C,level:u+1},C.id))})})]})},gl=({id:e,title:t,items:n,children:r,className:o})=>{const s=pl();return c.jsxs("div",{id:e,className:O(X.section,o),children:[t&&!s.collapsed&&c.jsx("div",{className:X.sectionTitle,children:t}),s.collapsed&&t&&c.jsx("div",{className:X.sectionDot,"aria-hidden":!0}),c.jsxs("ul",{className:X.list,children:[n?.map(a=>c.jsx(cs,{...a},a.id)),r]})]})},s4=({className:e})=>c.jsx("div",{className:O(X.divider,e),role:"separator"}),a4=({children:e,className:t})=>c.jsx("div",{className:O(X.custom,t),children:e}),i4=({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:h,footer:g,width:m,collapsedWidth:y,className:v})=>{const[b,w]=p.useState(a),x=s!==void 0,_=x?s:b,k=p.useCallback(G=>{x||w(G),i?.(G)},[x,i]),[E,C]=p.useState(f),S=u!==void 0,N=S?!!u:E;p.useEffect(()=>{S||C(f)},[]);const D=p.useCallback(()=>{const G=!N;S||C(G),h?.(G)},[N,S,h]),[M,A]=p.useState(No),P={"--cozy-sidenav-w":ua(m,"280px"),"--cozy-sidenav-w-collapsed":ua(y,"76px")},T=n&&n.length>0,$=p.Children.count(r)>0,q=p.Children.count(r),R=p.useRef(null),V=p.useRef(null),F=p.useRef(null),U=p.useCallback(()=>{const G=R.current;if(!G)return;const{scrollTop:ae,scrollHeight:K,clientHeight:te}=G,ue=K>te+fa,ke=ae+te<K-fa;if(!ue||!ke){A(ie=>ie.size===0?ie:No);return}const re=G.getBoundingClientRect(),W=new Set;G.querySelectorAll(`.${X.item}[data-id]`).forEach(ie=>{const _e=ie.dataset.id;if(!_e)return;const Me=ie.getBoundingClientRect();Me.bottom>re.bottom-r4&&Me.top<re.bottom&&W.add(_e)}),A(ie=>o4(ie,W)?ie:W)},[]),j=p.useCallback(()=>{F.current!==null&&cancelAnimationFrame(F.current),F.current=requestAnimationFrame(()=>{F.current=null,U()})},[U]);p.useEffect(()=>{const G=V.current;if(!G)return;j();const ae=new ResizeObserver(j);return ae.observe(G),()=>{ae.disconnect(),F.current!==null&&(cancelAnimationFrame(F.current),F.current=null)}},[j,n,q,N,o]);const ee=p.useMemo(()=>({variant:o,collapsed:N,activeId:_,setActive:k,edgeBottomIds:M}),[o,N,_,k,M]),de=()=>{if(t)return c.jsx("div",{className:X.userSlot,children:t});if(!e)return null;const G=e.initials??n4(e.name),ae=e.onClick?"button":"div";return c.jsxs(ae,{className:O(X.user,e.onClick&&X.user_clickable),onClick:e.onClick,type:e.onClick?"button":void 0,children:[c.jsxs("span",{className:X.avatar,children:[e.avatarUrl?c.jsx("img",{src:e.avatarUrl,alt:""}):c.jsx("span",{className:X.avatarInitials,children:G||"?"}),e.badge!=null&&c.jsx("span",{className:X.avatarBadge,children:e.badge})]}),!N&&c.jsxs("span",{className:X.userText,children:[c.jsx("span",{className:X.userName,children:e.name}),e.role&&c.jsx("span",{className:X.userRole,children:e.role})]})]})};return c.jsx(ml.Provider,{value:ee,children:c.jsxs("nav",{className:O(X.root,X[`variant_${o}`],N&&X.collapsed,v),style:P,"data-variant":o,children:[o==="aurora"&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:O(X.blob,X.blob_a),"aria-hidden":!0}),c.jsx("span",{className:O(X.blob,X.blob_b),"aria-hidden":!0})]}),c.jsxs("div",{className:X.header,children:[de(),l&&c.jsx("button",{type:"button",className:X.collapseBtn,onClick:D,"aria-label":N?"Развернуть":"Свернуть",title:N?"Развернуть":"Свернуть",children:c.jsx("span",{className:O(X.collapseIcon,N&&X.collapseIcon_rot),"aria-hidden":!0,children:c.jsx(yt,{width:12,height:12})})})]}),c.jsx("div",{className:X.bodyWrap,children:c.jsx("div",{ref:R,className:X.body,onScroll:j,children:c.jsxs("div",{ref:V,className:X.bodyContent,children:[T&&n.map((G,ae)=>c.jsx(gl,{...G},G.id??`s-${ae}`)),$&&p.Children.map(r,G=>(p.isValidElement(G),G))]})})}),g&&c.jsx("div",{className:X.footer,children:g})]})})},dn=p.memo(i4);dn.Section=gl;dn.Item=cs;dn.Divider=s4;dn.Custom=a4;dn.displayName="SideNav";exports.ApprovalRoute=$w;exports.ArrowDownBlueIcon=Vl;exports.ArrowDownIcon=yt;exports.ArrowRightIcon=Yl;exports.BaseBlock=dd;exports.Button=xe;exports.Calendar=Wy;exports.CameraIcon=Kl;exports.CancelIcon=ga;exports.Card=Cu;exports.Carousel=Fu;exports.ChartIcon=Wl;exports.ChatIcon=pa;exports.CheckGreen=Gl;exports.Checkbox=cl;exports.ClockFilledIcon=ed;exports.ClockIcon=_l;exports.CloseRed=ql;exports.CollapsableBlock=Hm;exports.Collapse=nc;exports.Colors=ka;exports.CommentFeed=d_;exports.CopyIcon=ya;exports.CopyTextTrigger=Do;exports.CrossIcon=it;exports.DetailView=Fn;exports.DialogSelect=Qo;exports.DoneIcon=jo;exports.DownloadIcon=Ca;exports.EditIcon=xa;exports.EmptyComponent=zt;exports.EmptyIcon=_a;exports.EnvelopIcon=ba;exports.FeedbackIcon=Fl;exports.FileReloadIcon=Cl;exports.FileSync=Hl;exports.FilterIcon=Ql;exports.FolderEditIcon=kl;exports.GraduateIcon=El;exports.GridIcon=Sl;exports.HeartIcon=Nl;exports.HelpIcon=jl;exports.HistoryBlue=Ul;exports.HomeIcon=xl;exports.InfoIcon=wa;exports.Input=jc;exports.InputCaption=_t;exports.IslandIcon=rd;exports.Label=pr;exports.ListIcon=Ml;exports.MarketIcon=Ol;exports.MegaphoneIcon=Bl;exports.MessageIcon=Zl;exports.NotebookIcon=Ll;exports.PhoneIcon=Xl;exports.PlaneIcon=Dl;exports.Popover=Nm;exports.ProfileIcon=Pl;exports.ProfileSearchIcon=Rl;exports.RadioGroupButton=wu;exports.ReloadIcon=Jl;exports.SchoolIcon=nd;exports.SearchIcon=br;exports.Select=E0;exports.SettingsIcon=td;exports.SideNav=dn;exports.Spinner=Ke;exports.Stepper=mv;exports.Tabs=kv;exports.TabsRounded=rv;exports.Tag=ic;exports.TaskListIcon=$l;exports.Textarea=Mc;exports.TimesheetIcon=Il;exports.TooltipDark=wr;exports.TooltipLight=Yo;exports.TreeDialogSelect=Ug;exports.TrendUpIcon=Tl;exports.UserSwitchIcon=zl;exports.WalletIcon=Al;exports.WarnIcon=va;exports.parseYmdToLocalDay=il;exports.startOfLocalDay=en;exports.toYmdString=al;exports.todayLocalDay=Dy;exports.useDropdownPosition=gu;exports.useMeasureElement=Ya;
|
|
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(tt=>Ze.set(tt.value,tt)),Se.forEach((tt,Zn)=>Ze.set(Zn,tt)),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:tt=>{tt.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(tt=>Vn(tt,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_1xj0t_1",gv="_itemBlock_1xj0t_8",vv="_step_1xj0t_16",_v="_clickable_1xj0t_39",bv="_step_inactive_1xj0t_46",yv="_step_current_1xj0t_51",wv="_connector_1xj0t_55",xv="_connector_active_1xj0t_62",Cv="_label_1xj0t_66",kv="_label_active_1xj0t_74",rt={wrapper:pv,itemBlock:gv,step:vv,clickable:_v,step_inactive:bv,step_current:yv,connector:wv,connector_active:xv,label:Cv,label_active:kv},Nv=({items:e,current:t,onChange:n,showCheckOnCompleted:r=!1,className:o})=>{const s=!!n;return c.jsx("div",{className:M(rt.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(rt.step,{[rt.step_inactive]:!f,[rt.step_current]:u,[rt.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:[a.label?c.jsxs("div",{className:rt.itemBlock,role:"listitem",children:[b,c.jsx("span",{className:M(rt.label,{[rt.label_active]:f}),children:a.label})]}):c.jsx("div",{role:"listitem",children:b}),!m&&c.jsx("span",{className:M(rt.connector,{[rt.connector_active]:i<t})})]},i)})})},Sv="_container_1whkx_1",Ev="_tabs_1whkx_4",jv="_line_1whkx_11",Mv="_tabItem_1whkx_21",Ov="_header_1whkx_34",Dv="_notificationChanges_1whkx_42",Pv="_tabs_hasAnimatedIndicator_1whkx_61",Rv="_active_1whkx_64",Et={container:Sv,tabs:Ev,line:jv,tabItem:Mv,header:Ov,notificationChanges:Dv,tabs_hasAnimatedIndicator:Pv,active:Rv};function Tv(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 Av=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(()=>Tv(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}})]})})}),Iv="_wrapper_rkn19_1",Lv="_container_rkn19_6",Wv="_input_rkn19_10",$v="_error_rkn19_45",Fv="_disabled_rkn19_51",gn={wrapper:Iv,container:Lv,input:Wv,error:$v,disabled:Fv},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 Bv="_wrapper_10aju_1",zv="_container_10aju_6",Hv="_textarea_10aju_10",Yv="_error_10aju_46",Vv="_disabled_10aju_52",vn={wrapper:Bv,container:zv,textarea:Hv,error:Yv,disabled:Vv},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 qv(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 Gv={},wn={};function zt(e,t){try{const r=(Gv[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(Uv);return n?ta(e,n.slice(1)):NaN}}const Uv=/([+-]\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),Zv(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 Zv(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} (${qv(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,Xv=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 Kv={};function Bn(){return Kv}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)/Xv)}function Qv(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 Jv(e,t,n){return Lc(e,t*7,n)}function e2(e,t,n){return Wc(e,t*12,n)}function t2(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 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,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 o2(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 s2(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 a2(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 i2(e,t){const n=ge(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function c2(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 l2(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 d2(e,t){return Yc(e,{...t,weekStartsOn:1})}const u2={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"}},f2=(e,t,n)=>{let r;const o=u2[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 m2={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},h2={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},p2={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},g2={date:uo({formats:m2,defaultWidth:"full"}),time:uo({formats:h2,defaultWidth:"full"}),dateTime:uo({formats:p2,defaultWidth:"full"})},v2={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},_2=(e,t,n,r)=>v2[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 b2={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},y2={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},w2={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"]},x2={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"]},C2={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"}},k2={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"}},N2=(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"},S2={ordinalNumber:N2,era:_n({values:b2,defaultWidth:"wide"}),quarter:_n({values:y2,defaultWidth:"wide",argumentCallback:e=>e-1}),month:_n({values:w2,defaultWidth:"wide"}),day:_n({values:x2,defaultWidth:"wide"}),dayPeriod:_n({values:C2,defaultWidth:"wide",formattingValues:k2,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)?j2(i,m=>m.test(a)):E2(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 E2(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function j2(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function M2(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 O2=/^(\d+)(th|st|nd|rd)?/i,D2=/\d+/i,P2={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},R2={any:[/^b/i,/^(a|c)/i]},T2={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},A2={any:[/1/i,/2/i,/3/i,/4/i]},I2={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},L2={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]},W2={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},$2={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]},F2={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},B2={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:M2({matchPattern:O2,parsePattern:D2,valueCallback:e=>parseInt(e,10)}),era:bn({matchPatterns:P2,defaultMatchWidth:"wide",parsePatterns:R2,defaultParseWidth:"any"}),quarter:bn({matchPatterns:T2,defaultMatchWidth:"wide",parsePatterns:A2,defaultParseWidth:"any",valueCallback:e=>e+1}),month:bn({matchPatterns:I2,defaultMatchWidth:"wide",parsePatterns:L2,defaultParseWidth:"any"}),day:bn({matchPatterns:W2,defaultMatchWidth:"wide",parsePatterns:$2,defaultParseWidth:"any"}),dayPeriod:bn({matchPatterns:F2,defaultMatchWidth:"any",parsePatterns:B2,defaultParseWidth:"any"})},Jt={code:"en-US",formatDistance:f2,formatLong:g2,formatRelative:_2,localize:S2,match:z2,options:{weekStartsOn:0,firstWeekContainsDate:1}};function H2(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)-+Qv(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 Y2(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)-+Y2(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=H2(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"})}},V2=(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))},q2={p:qc,P:V2},G2=/^D+$/,U2=/^Y+$/,Z2=["D","DD","YY","YYYY"];function X2(e){return G2.test(e)}function K2(e){return U2.test(e)}function Q2(e,t,n){const r=J2(e,t,n);if(console.warn(r),Z2.includes(e))throw new RangeError(r)}function J2(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 e_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,t_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,n_=/^'([^]*?)'?$/,r_=/''/g,o_=/[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(!o2(i))throw new RangeError("Invalid time value");let l=t.match(t_).map(f=>{const m=f[0];if(m==="p"||m==="P"){const p=q2[m];return p(f,o.formatLong)}return f}).join("").match(e_).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const m=f[0];if(m==="'")return{isToken:!1,value:s_(f)};if(sa[m])return{isToken:!0,value:f};if(m.match(o_))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&&K2(m)||!n?.useAdditionalDayOfYearTokens&&X2(m))&&Q2(m,t,String(e));const p=sa[m[0]];return p(i,m,o.localize,u)}).join("")}function s_(e){const t=e.match(n_);return t?t[1].replace(r_,"'"):e}function a_(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 i_(e,t){return ge(e,t?.in).getMonth()}function c_(e,t){return ge(e,t?.in).getFullYear()}function l_(e,t){return+ge(e)>+ge(t)}function d_(e,t){return+ge(e)<+ge(t)}function u_(e,t,n){const[r,o]=un(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function f_(e,t,n){const[r,o]=un(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function m_(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=a_(a);return r.setMonth(t,Math.min(s,i)),r}function h_(e,t,n){const r=ge(e,n?.in);return isNaN(+r)?Ce(e,NaN):(r.setFullYear(t),r)}const la=5,p_=4;function g_(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:p_}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 v_(e,t){const n=Gc(e,t),r=g_(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):Jv(r,o),this.addYears=(r,o)=>this.overrides?.addYears?this.overrides.addYears(r,o):e2(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):a2(r),this.eachYearOfInterval=r=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):l2(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):v_(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):d2(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):s2(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):c2(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):i_(r,this.options),this.getYear=(r,o)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):c_(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):l_(r,o),this.isBefore=(r,o)=>this.overrides?.isBefore?this.overrides.isBefore(r,o):d_(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):r2(r,o),this.isSameMonth=(r,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,o):u_(r,o),this.isSameYear=(r,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,o):f_(r,o),this.max=r=>this.overrides?.max?this.overrides.max(r):t2(r),this.min=r=>this.overrides?.min?this.overrides.min(r):n2(r),this.setMonth=(r,o)=>this.overrides?.setMonth?this.overrides.setMonth(r,o):m_(r,o),this.setYear=(r,o)=>this.overrides?.setYear?this.overrides.setYear(r,o):h_(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):i2(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 __{constructor(t,n){this.date=t,this.weeks=n}}class b_{constructor(t,n){this.days=n,this.weekNumber=t}}function y_(e){return g.createElement("button",{...e})}function w_(e){return g.createElement("span",{...e})}function x_(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 C_(e){const{day:t,modifiers:n,...r}=e;return g.createElement("td",{...r})}function k_(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 Qe;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Qe||(Qe={}));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 N_(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 S_(e){return g.createElement("div",{...e})}function E_(e){return g.createElement("div",{...e})}function j_(e){const{calendarMonth:t,displayIndex:n,...r}=e;return g.createElement("div",{...r},e.children)}function M_(e){const{calendarMonth:t,displayIndex:n,...r}=e;return g.createElement("div",{...r})}function O_(e){return g.createElement("table",{...e})}function D_(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 P_(e){const{components:t}=zn();return g.createElement(t.Dropdown,{...e})}function R_(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 T_(e){const{components:t}=zn();return g.createElement(t.Button,{...e})}function A_(e){return g.createElement("option",{...e})}function I_(e){const{components:t}=zn();return g.createElement(t.Button,{...e})}function L_(e){const{rootRef:t,...n}=e;return g.createElement("div",{...n,ref:t})}function W_(e){return g.createElement("select",{...e})}function $_(e){const{week:t,...n}=e;return g.createElement("tr",{...n})}function F_(e){return g.createElement("th",{...e})}function B_(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 H_(e){return g.createElement("th",{...e})}function Y_(e){return g.createElement("tbody",{...e})}function V_(e){const{components:t}=zn();return g.createElement(t.Dropdown,{...e})}const q_=Object.freeze(Object.defineProperty({__proto__:null,Button:y_,CaptionLabel:w_,Chevron:x_,Day:C_,DayButton:k_,Dropdown:N_,DropdownNav:S_,Footer:E_,Month:j_,MonthCaption:M_,MonthGrid:O_,Months:D_,MonthsDropdown:P_,Nav:R_,NextMonthButton:T_,Option:A_,PreviousMonthButton:I_,Root:L_,Select:W_,Week:$_,WeekNumber:z_,WeekNumberHeader:H_,Weekday:F_,Weekdays:B_,Weeks:Y_,YearsDropdown:V_},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 G_(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 U_(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[Qe[s]]&&o.push(t[Qe[s]]),o),[t[H.Day]])}function Z_(e){return{...q_,...e}}function X_(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 Qe)e[Qe[t]]=`rdp-${Qe[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 K_=Jc;function Q_(e,t,n){return(n??new Ye(t)).format(e,"d")}function J_(e,t=ft){return t.format(e,"LLLL")}function eb(e,t,n){return(n??new Ye(t)).format(e,"cccccc")}function tb(e,t=ft){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function nb(){return""}function el(e,t=ft){return t.format(e,"yyyy")}const rb=el,ob=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:Jc,formatDay:Q_,formatMonthCaption:K_,formatMonthDropdown:J_,formatWeekNumber:tb,formatWeekNumberHeader:nb,formatWeekdayName:eb,formatYearCaption:rb,formatYearDropdown:el},Symbol.toStringTag,{value:"Module"}));function sb(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...ob,...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 ab=ds;function us(e,t,n){return(n??new Ye(t)).formatMonthYear(e)}const ib=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 cb="Go to the Next Month";function ol(e,t){return cb}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 lb=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:ib,labelDay:ab,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"})),Xe=(e,t,n)=>t||(n?typeof n=="function"?n:(...r)=>n:e);function db(e,t){const n=t.locale?.labels??{};return{...lb,...e??{},labelDayButton:Xe(ds,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:Xe(nl,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:Xe(ol,e?.labelNext,n.labelNext),labelPrevious:Xe(sl,e?.labelPrevious,n.labelPrevious),labelWeekNumber:Xe(il,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Xe(ll,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:Xe(us,e?.labelGrid,n.labelGrid),labelGridcell:Xe(tl,e?.labelGridcell,n.labelGridcell),labelNav:Xe(rl,e?.labelNav,n.labelNav),labelWeekNumberHeader:Xe(cl,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Xe(al,e?.labelWeekday,n.labelWeekday)}}function ub(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 fb(e,t={},n={}){let r={...t?.[H.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n?.[o]}}),r}function mb(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 hb(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 pb(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]")??[]],gb=e=>Hn(e.querySelector("[data-animated-month]")),mo=e=>Hn(e.querySelector("[data-animated-caption]")),ho=e=>Hn(e.querySelector("[data-animated-weeks]")),vb=e=>Hn(e.querySelector("[data-animated-nav]")),_b=e=>Hn(e.querySelector("[data-animated-weekdays]"));function bb(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=gb(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=vb(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=_b(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 yb(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 wb(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 xb(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 Cb(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 b_(D,[T])),S},[]),C=new __(_,N);return v.push(C),v},[]);return n.reverseMonths?b.reverse():b}function kb(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 Nb(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 Sb(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 Eb(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 jb(e,t){const[n,r]=kb(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=xb(i,r,{numberOfMonths:e.numberOfMonths},t),N=yb(k,e.endMonth?s(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),C=Cb(k,N,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),S=Eb(C),E=wb(C),D=Sb(i,n,e,t),O=Nb(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 Mb(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 Ob(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=Ob(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 Db(e,t,n,r,o){const{autoFocus:s}=e,[a,i]=g.useState(),l=Mb(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 Pb(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 Rb(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 Tb(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 Ab(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)?Tb(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 Ib(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=Rb(h,f,_,y,a,t)}return r&&n&&w?.from&&w.to&&Ab({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 Lb(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 Wb(e,t){const n=Lb(e,t),r=Pb(e,t),o=Ib(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 $b(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?pb(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:Z_(t.components),formatters:sb(t.formatters),labels:db(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=jb(t,a),{days:X,months:R,navStart:q,navEnd:W,previousMonth:G,nextMonth:j,goToMonth:K}=I,ve=G_(X,t,q,W,a),{isSelected:V,select:ne,selected:ee}=Wb(t,a)??{},{blur:re,focused:fe,isFocusTarget:Me,moveFocus:se,setFocused:$}=Db(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(()=>mb(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]),tt=X_(t),Zn=g.useRef(null);bb(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"],...tt},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:ub(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:hb(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[Qe.selected]=V?.(We)||ie.selected,Fr(ee)){const{from:Yr,to:Vr}=ee;ie[Qe.range_start]=!!(Yr&&Vr&&a.isSameDay(We,Yr)),ie[Qe.range_end]=!!(Yr&&Vr&&a.isSameDay(We,Vr)),ie[Qe.range_middle]=bt(ee,We,!0,a)}const Sl=fb(ie,C,t.modifiersStyles),El=U_(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 Fb({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r="label",buttonVariant:o="ghost",formatters:s,components:a,...i}){const l=ls();return c.jsx($b,{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:Bb,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 Bb({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"),ul=e=>`${e.getFullYear()}-${wr(e.getMonth()+1)}-${wr(e.getDate())}`,Hb=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)},Yb="_wrapper_1sqfs_1",Vb="_trigger_1sqfs_8",qb="_error_1sqfs_37",Gb="_triggerValue_1sqfs_44",Ub="_triggerIcon_1sqfs_51",yn={wrapper:Yb,trigger:Vb,error:qb,triggerValue:Gb,triggerIcon:Ub},Zb=({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?Hb(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(Fb,{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]})},Xb="_wrapper_1mrfs_1",Kb="_field_1mrfs_8",Qb="_disabled_1mrfs_15",Jb="_control_1mrfs_19",ey="_labelWithTooltip_1mrfs_28",ty="_nativeInput_1mrfs_36",ny="_box_1mrfs_48",ry="_error_1mrfs_81",oy="_checkIcon_1mrfs_95",sy="_labelText_1mrfs_108",Ke={wrapper:Xb,field:Kb,disabled:Qb,control:Jb,labelWithTooltip:ey,nativeInput:ty,box:ny,error:ry,checkIcon:oy,labelText:sy},ay=()=>c.jsx("svg",{className:Ke.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(Ke.field,{[Ke.disabled]:n}),children:[c.jsxs("label",{htmlFor:m,className:Ke.control,children:[c.jsx("input",{ref:u,id:m,type:"checkbox",disabled:n,"aria-invalid":t?!0:void 0,className:Ke.nativeInput,...l}),c.jsx("span",{className:M(Ke.box,{[Ke.error]:!!t},o),children:c.jsx(ay,{})})]}),e&&s?c.jsx(Lt,{htmlFor:m,tooltipContent:s,tooltipPopperClassName:a,className:Ke.labelWithTooltip,labelClassName:Ke.labelText,children:e}):e?c.jsx(Mn,{htmlFor:m,className:M(jn.label_inline,Ke.labelText),children:e}):null]});return c.jsxs("div",{className:M(Ke.wrapper,r),children:[p,t&&c.jsx(Ct,{children:t})]})});ml.displayName="Checkbox";const iy="_root_osjxx_1",cy="_header_osjxx_11",ly="_headerText_osjxx_21",dy="_eyebrow_osjxx_27",uy="_title_osjxx_35",fy="_timeline_osjxx_42",my="_level_osjxx_47",hy="_rail_osjxx_58",py="_railLine_osjxx_65",gy="_railLine_completed_osjxx_74",vy="_railLine_toCurrent_osjxx_78",_y="_marker_osjxx_82",by="_marker_completed_osjxx_101",yy="_marker_current_osjxx_107",wy="_body_osjxx_120",xy="_levelHeader_osjxx_125",Cy="_levelName_osjxx_132",ky="_levelName_current_osjxx_141",Ny="_levelName_completed_osjxx_147",Sy="_iconButton_osjxx_152",Ey="_iconButton_danger_osjxx_176",jy="_stages_osjxx_182",My="_stage_osjxx_182",Oy="_stage_current_osjxx_199",Dy="_stageHeader_osjxx_204",Py="_stageName_osjxx_212",Ry="_stageActions_osjxx_220",Ty="_approvers_osjxx_227",Ay="_approver_osjxx_227",Iy="_approverMain_osjxx_242",Ly="_approverName_osjxx_249",Wy="_approverName_pending_osjxx_255",$y="_approverName_rejected_osjxx_259",Fy="_approverName_approved_osjxx_264",By="_approverDate_osjxx_268",zy="_rejectReason_osjxx_273",Hy="_empty_osjxx_283",Yy="_addStage_osjxx_300",Vy="_addLevel_osjxx_323",qy="_dialogContent_osjxx_327",Gy="_dialogInput_osjxx_333",Uy="_dialogActions_osjxx_348",Zy="_approverPickerWrap_osjxx_354",Xy="_approverPickerInput_osjxx_361",Y={root:iy,header:cy,headerText:ly,eyebrow:dy,title:uy,timeline:fy,level:my,rail:hy,railLine:py,railLine_completed:gy,railLine_toCurrent:vy,marker:_y,marker_completed:by,marker_current:yy,body:wy,levelHeader:xy,levelName:Cy,levelName_current:ky,levelName_completed:Ny,iconButton:Sy,iconButton_danger:Ey,stages:jy,stage:My,stage_current:Oy,stageHeader:Dy,stageName:Py,stageActions:Ry,approvers:Ty,approver:Ay,approverMain:Iy,approverName:Ly,approverName_pending:Wy,approverName_rejected:$y,approverName_approved:Fy,approverDate:By,rejectReason:zy,empty:Hy,addStage:Yy,addLevel:Vy,dialogContent:qy,dialogInput:Gy,dialogActions:Uy,approverPickerWrap:Zy,approverPickerInput:Xy},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 Ky=({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,_)})]})},Qy="_root_1426e_1",Jy="_card_1426e_8",ew="_size_lg_1426e_15",tw="_section_1426e_19",nw="_sectionHeader_1426e_29",rw="_sectionTitle_1426e_36",ow="_sectionDescription_1426e_46",sw="_fields_1426e_54",aw="_fields_2col_1426e_62",iw="_field_1426e_54",cw="_field_span2_1426e_84",lw="_field_interactive_1426e_88",dw="_label_1426e_92",uw="_value_1426e_100",fw="_valueRow_1426e_113",mw="_copyTrigger_1426e_120",hw="_copyableValue_1426e_126",pw="_hint_1426e_131",gw="_empty_1426e_139",vw="_divider_1426e_143",_w="_loading_1426e_150",we={root:Qy,card:Jy,size_lg:ew,section:tw,sectionHeader:nw,sectionTitle:rw,sectionDescription:ow,fields:sw,fields_2col:aw,field:iw,field_span2:cw,field_interactive:lw,label:dw,value:uw,valueRow:fw,copyTrigger:mw,copyableValue:hw,hint:pw,empty:gw,divider:vw,loading:_w},bw=e=>e==null||e===""||typeof e=="number"&&Number.isNaN(e),yw=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??yw(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=bw(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]})]})},ww=({className:e})=>c.jsx("hr",{className:M(we.divider,e)}),xw=({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(xw);Yn.Section=pl;Yn.Field=hl;Yn.Divider=ww;Yn.displayName="DetailView";const Cw="_root_1z0dx_1",kw="_header_1z0dx_14",Nw="_headerText_1z0dx_23",Sw="_eyebrow_1z0dx_29",Ew="_title_1z0dx_37",jw="_counter_1z0dx_44",Mw="_list_1z0dx_53",Ow="_loadOlderBtn_1z0dx_59",Dw="_expandBtn_1z0dx_84",Pw="_item_1z0dx_102",Rw="_avatar_1z0dx_109",Tw="_body_1z0dx_125",Aw="_bubble_1z0dx_132",Iw="_actions_1z0dx_144",Lw="_bubble_deleted_1z0dx_148",Ww="_meta_1z0dx_154",$w="_author_1z0dx_162",Fw="_date_1z0dx_168",Bw="_editedTag_1z0dx_173",zw="_text_1z0dx_179",Hw="_recipients_1z0dx_187",Yw="_attachments_1z0dx_203",Vw="_attachment_1z0dx_203",qw="_attachmentName_1z0dx_227",Gw="_attachmentSize_1z0dx_234",Uw="_attachmentRemove_1z0dx_239",Zw="_iconButton_1z0dx_278",Xw="_iconButton_danger_1z0dx_302",Kw="_children_1z0dx_309",Qw="_form_1z0dx_320",Jw="_form_root_1z0dx_330",ex="_form_inline_1z0dx_335",tx="_textarea_1z0dx_339",nx="_formRow_1z0dx_359",rx="_formTools_1z0dx_367",ox="_formActions_1z0dx_374",sx="_toolBtn_1z0dx_380",ax="_recipientsPickerWrap_1z0dx_403",ix="_recipientsPickerInput_1z0dx_410",cx="_recipientsChips_1z0dx_459",lx="_chip_1z0dx_465",dx="_empty_1z0dx_496",ux="_skeleton_1z0dx_500",fx="_skeletonLine_1z0dx_507",mx="_dialogContent_1z0dx_523",hx="_dialogActions_1z0dx_531",px="_branchSpinner_1z0dx_537",gx="_hiddenInput_1z0dx_543",B={root:Cw,header:kw,headerText:Nw,eyebrow:Sw,title:Ew,counter:jw,list:Mw,loadOlderBtn:Ow,expandBtn:Dw,item:Pw,avatar:Rw,body:Tw,bubble:Aw,actions:Iw,bubble_deleted:Lw,meta:Ww,author:$w,date:Fw,editedTag:Bw,text:zw,recipients:Hw,attachments:Yw,attachment:Vw,attachmentName:qw,attachmentSize:Gw,attachmentRemove:Uw,iconButton:Zw,iconButton_danger:Xw,children:Kw,form:Qw,form_root:Jw,form_inline:ex,textarea:tx,formRow:nx,formTools:rx,formActions:ox,toolBtn:sx,recipientsPickerWrap:ax,recipientsPickerInput:ix,recipientsChips:cx,chip:lx,empty:dx,skeleton:ux,skeletonLine:fx,dialogContent:mx,dialogActions:hx,branchSpinner:px,hiddenInput:gx},vx=10,_x=10*6e4,Cn="__root__",kn=e=>e??Cn;function bx(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 yx(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"}}):bx(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 wx=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=_x,pageSize:p=vx,title:h="Комментарии",eyebrow:b="Discussion",className:v},_){const{branches:y,loadInitial:w,loadOlder:x,appendLocal:k,replaceLocal:N,removeLocal:C,resetBranch:S,resetAll:E}=yx(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))})]})}),xx="_root_1073m_1",Cx="_collapsed_1073m_14",kx="_variant_classic_1073m_19",Nx="_sectionTitle_1073m_24",Sx="_item_1073m_32",Ex="_item_active_1073m_38",jx="_user_1073m_53",Mx="_badge_1073m_56",Ox="_footer_1073m_60",Dx="_variant_transparent_1073m_66",Px="_header_1073m_73",Rx="_body_1073m_80",Tx="_bodyContent_1073m_83",Ax="_section_1073m_24",Ix="_list_1073m_97",Lx="_icon_1073m_108",Wx="_iconStub_1073m_109",$x="_item_nested_1073m_144",Fx="_divider_1073m_156",Bx="_collapseBtn_1073m_159",zx="_variant_aurora_1073m_169",Hx="_sectionDot_1073m_183",Yx="_userName_1073m_224",Vx="_userRole_1073m_227",qx="_avatar_1073m_230",Gx="_avatarInitials_1073m_233",Ux="_blob_1073m_263",Zx="_blob_a_1073m_272",Xx="_blob_b_1073m_280",Kx="_user_clickable_1073m_314",Qx="_userSlot_1073m_321",Jx="_avatarBadge_1073m_358",e4="_userText_1073m_371",t4="_collapseIcon_1073m_413",n4="_collapseIcon_rot_1073m_419",r4="_bodyWrap_1073m_424",o4="_itemWrap_1073m_467",s4="_item_disabled_1073m_495",a4="_item_scrollEdgeBottom_1073m_506",i4="_label_1073m_529",c4="_chev_1073m_546",l4="_chev_open_1073m_553",d4="_sub_1073m_558",u4="_sub_open_1073m_565",f4="_subList_1073m_570",m4="_custom_1073m_614",Z={root:xx,collapsed:Cx,variant_classic:kx,sectionTitle:Nx,item:Sx,item_active:Ex,user:jx,badge:Mx,footer:Ox,variant_transparent:Dx,header:Px,body:Rx,bodyContent:Tx,section:Ax,list:Ix,icon:Lx,iconStub:Wx,item_nested:$x,divider:Fx,collapseBtn:Bx,variant_aurora:zx,sectionDot:Hx,userName:Yx,userRole:Vx,avatar:qx,avatarInitials:Gx,blob:Ux,blob_a:Zx,blob_b:Xx,user_clickable:Kx,userSlot:Qx,avatarBadge:Jx,userText:e4,collapseIcon:t4,collapseIcon_rot:n4,bodyWrap:r4,itemWrap:o4,item_disabled:s4,item_scrollEdgeBottom:a4,label:i4,chev:c4,chev_open:l4,sub:d4,sub_open:u4,subList:f4,custom:m4},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,h4=e=>e.trim().split(/\s+/).slice(0,2).map(n=>n[0]?.toUpperCase()??"").join(""),va=2,p4=24,g4=(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]})]})},v4=({className:e})=>c.jsx("div",{className:M(Z.divider,e),role:"separator"}),_4=({children:e,className:t})=>c.jsx("div",{className:M(Z.custom,t),children:e}),b4=({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-p4&&Oe.top<se.bottom&&$.add(ke)}),T(de=>g4(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??h4(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(b4);fn.Section=wl;fn.Item=fs;fn.Divider=v4;fn.Custom=_4;fn.displayName="SideNav";const y4="_root_1sf0v_1",w4="_size_sm_1sf0v_27",x4="_color_blue_1sf0v_32",C4="_checked_1sf0v_36",k4="_disabled_1sf0v_40",N4="_thumb_1sf0v_45",S4="_thumb_checked_1sf0v_58",E4="_wrapper_1sf0v_62",j4="_field_1sf0v_70",M4="_labelWithTooltip_1sf0v_81",O4="_labelText_1sf0v_89",Fe={root:y4,size_sm:w4,color_blue:x4,checked:C4,disabled:k4,thumb:N4,thumb_checked:S4,wrapper:E4,field:j4,labelWithTooltip:M4,labelText:O4},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 D4="_root_1wyb7_1",P4="_option_1wyb7_11",R4="_option_disabled_1wyb7_24",T4="_option_active_1wyb7_24",A4="_size_sm_1wyb7_32",I4="_preview_1wyb7_40",L4="_label_1wyb7_44",Ft={root:D4,option:P4,option_disabled:R4,option_active:T4,size_sm:A4,preview:I4,label:L4};function W4({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 $4="_root_72ym9_1",F4="_layout_card_72ym9_9",B4="_variant_elevated_72ym9_18",z4="_section_72ym9_24",H4="_layout_plain_72ym9_36",Y4="_sectionHeader_72ym9_61",V4="_sectionHeader_button_72ym9_68",q4="_sectionTitleWrap_72ym9_77",G4="_sectionTitle_72ym9_77",U4="_sectionDescription_72ym9_93",Z4="_sectionChevron_72ym9_101",X4="_sectionChevron_open_72ym9_108",K4="_sectionBody_72ym9_112",Q4="_sectionBody_collapsed_72ym9_117",J4="_group_72ym9_122",e3="_item_72ym9_128",t3="_groupTitle_72ym9_135",n3="_density_compact_72ym9_165",r3="_item_align_start_72ym9_181",o3="_item_interactive_72ym9_185",s3="_item_danger_72ym9_199",a3="_label_72ym9_202",i3="_item_disabled_72ym9_209",c3="_iconBadge_72ym9_214",l3="_iconSpacer_72ym9_236",d3="_body_72ym9_241",u3="_labelRow_72ym9_248",f3="_description_72ym9_263",m3="_badge_72ym9_271",h3="_control_72ym9_283",p3="_chevron_72ym9_298",g3="_externalIcon_72ym9_305",v3="_hint_72ym9_313",_3="_divider_72ym9_328",b3="_loading_72ym9_335",oe={root:$4,layout_card:F4,variant_elevated:B4,section:z4,layout_plain:H4,sectionHeader:Y4,sectionHeader_button:V4,sectionTitleWrap:q4,sectionTitle:G4,sectionDescription:U4,sectionChevron:Z4,sectionChevron_open:X4,sectionBody:K4,sectionBody_collapsed:Q4,group:J4,item:e3,groupTitle:t3,density_compact:n3,item_align_start:r3,item_interactive:o3,item_danger:s3,label:a3,item_disabled:i3,iconBadge:c3,iconSpacer:l3,body:d3,labelRow:u3,description:f3,badge:m3,control:h3,chevron:p3,externalIcon:g3,hint:v3,divider:_3,loading:b3},y3=()=>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"})]}),w3=({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(w3,{className:oe.chevron}),!w&&i&&a&&c.jsx(y3,{})]}),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]})]})},x3=({className:e})=>c.jsx("hr",{className:M(oe.divider,e)}),C3=({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(C3);mn.Section=kl;mn.Group=Cl;mn.Item=ms;mn.Divider=x3;mn.displayName="SettingsView";exports.ApprovalRoute=Ky;exports.ArrowDownBlueIcon=Jl;exports.ArrowDownIcon=dt;exports.ArrowRightIcon=Ql;exports.BaseBlock=_d;exports.Button=xe;exports.Calendar=Zb;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=wx;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=W4;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=Nv;exports.Switch=xl;exports.Tabs=Av;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=zb;exports.useDropdownPosition=ku;exports.useMeasureElement=Za;
|
|
46
46
|
//# sourceMappingURL=ui-library.cjs.js.map
|