koval-ui 0.12.21 → 0.12.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
- (function(h,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("react/jsx-runtime"),require("react"),require("css-vars-hook"),require("classnames"),require("awesome-debounce-promise"),require("@floating-ui/react-dom"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","css-vars-hook","classnames","awesome-debounce-promise","@floating-ui/react-dom","react-dom"],n):(h=typeof globalThis<"u"?globalThis:h||self,n(h["Library name"]={},h.JsxRuntime,h.React,h.CssVarsHook,h.ClassNames,h.AwesomeDebouncePromise,h.reactDom$1,h.reactDom))})(this,function(h,n,r,B,d,rn,Y,sn){"use strict";function an(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,s.get?s:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const C=an(r),x={fontFamily:`-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
2
- "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"`,fontFamilyMonospace:'"SF Mono", "Courier New", FreeMono, "Nimbus Mono PS", Cousine, monospace',sizeUnit:"6px",inputWidth:"240px",inputHeight:"38px",fontSizeH1:"36px",fontSizeH2:"28px",fontSizeH3:"24px",fontSizeH4:"22px",fontSizeH5:"18px",fontSizeH6:"16px",fontSizeText:"16px",fontSizeMedium:"16px",fontSizeLarge:"18px",fontSizeSmall:"14px",fontSizeExtraSmall:"12px",fontWeightNormal:400,fontWeightBolder:500,fontWeightBold:600,textColor:"#111111",background000:"white",background100:"#dedede",background200:"#bdbdbd",background300:"#808080",background400:"#525252",background500:"#363636",background600:"#000000",colorDo:"#e3a075",colorRe:"#61483a",colorMi:"#ffdea6",colorFa:"#20b2aa",colorSol:"#597480",colorLa:"#99DFFF",colorError:"#FF004F",colorWarning:"#FFC72C",colorSuccess:"#3c9d74",colorAction:"#2100FF",shadowColor:"color-mix(in srgb, var(--fg-background-600) 11%, transparent)",shadow050:"3px 3px 3px 0 var(--fg-shadow-color)",shadow100:"6px 6px 3px 0 var(--fg-shadow-color)",shadow200:"9px 9px 3px 0 var(--fg-shadow-color)",textShadow:"1px 1px 1px rgb(0 0 0 / 66%)",borderRadius100:"2px",borderRadius200:"3px",borderRadius300:"6px",borderRadius400:"9px",borderRadius500:"12px",borderWidth100:"1px",borderWidth200:"2px",borderWidth300:"3px",timeSM:"333ms",timeMD:"666ms",timeLG:"999ms",timeXL:"1666ms"},xt={fontFamily:x.fontFamily,fontFamilyMonospace:x.fontFamilyMonospace,fontSizeH1:x.fontSizeH1,fontSizeH2:x.fontSizeH2,fontSizeH3:x.fontSizeH3,fontSizeH4:x.fontSizeH4,fontSizeH5:x.fontSizeH5,fontSizeH6:x.fontSizeH6,fontSizeText:x.fontSizeText,fontSizeMedium:x.fontSizeMedium,fontSizeLarge:x.fontSizeLarge,fontSizeSmall:x.fontSizeSmall,fontWeightNormal:x.fontWeightNormal,fontWeightBolder:x.fontWeightBolder,fontWeightBold:x.fontWeightBold,textColor:x.textColor,background000:x.background000,background100:x.background100,background200:x.background200,background300:x.background300,background400:x.background400,background500:x.background500,background600:x.background600,colorDo:x.colorDo,colorRe:x.colorRe,colorMi:x.colorMi,colorFa:x.colorFa,colorSol:x.colorSol,colorLa:x.colorLa,colorError:x.colorError,colorWarning:x.colorWarning,colorSuccess:x.colorSuccess,colorAction:x.colorAction},ln={fontFamily:x.fontFamily,fontFamilyMonospace:x.fontFamilyMonospace,fontSizeH1:x.fontSizeH1,fontSizeH2:x.fontSizeH2,fontSizeH3:x.fontSizeH3,fontSizeH4:x.fontSizeH4,fontSizeH5:x.fontSizeH5,fontSizeH6:x.fontSizeH6,fontSizeText:x.fontSizeText,fontSizeMedium:x.fontSizeMedium,fontSizeLarge:x.fontSizeLarge,fontSizeSmall:x.fontSizeSmall,fontWeightNormal:x.fontWeightNormal,fontWeightBolder:x.fontWeightBolder,fontWeightBold:x.fontWeightBold,textColor:x.textColor,background000:x.background000,background100:x.background100,background200:x.background200,background300:x.background300,background400:x.background400,background500:x.background500,background600:x.background600,colorDo:x.colorFa,colorRe:x.colorSol,colorMi:x.colorLa,colorFa:x.colorDo,colorSol:x.colorRe,colorLa:x.colorMi,colorError:x.colorError,colorWarning:x.colorWarning,colorSuccess:x.colorSuccess,colorAction:x.colorAction},ue=e=>{const t=r.useRef(null);return r.useImperativeHandle(e,()=>t.current,[t]),t},z={icon:"_icon_1j8jl_1",rotation:"_rotation_1j8jl_14",spin:"_spin_1j8jl_1",error:"_error_1j8jl_18",valid:"_valid_1j8jl_22",loading:"_loading_1j8jl_26"},cn=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"M479.75-255q24.25 0 39.75-14.75 15.5-14.76 15.5-39Q535-333 519.75-349q-15.26-16-39.5-16-24.25 0-39.75 15.98T425-308.79q0 24.25 15.25 39.02Q455.51-255 479.75-255ZM436-432h94v-270h-94v270Zm44.4 377q-88.87 0-166.12-33.08-77.25-33.09-135.18-91.02-57.93-57.93-91.02-135.12Q55-391.41 55-480.36q0-88.96 33.08-166.29 33.09-77.32 90.86-134.81 57.77-57.48 135.03-91.01Q391.24-906 480.28-906t166.49 33.45q77.44 33.46 134.85 90.81t90.89 134.87Q906-569.34 906-480.27q0 89.01-33.53 166.25t-91.01 134.86q-57.49 57.62-134.83 90.89Q569.28-55 480.4-55Zm.1-94q137.5 0 234-96.37T811-480.5q0-137.5-96.31-234T479.5-811q-137.5 0-234 96.31T149-479.5q0 137.5 96.37 234T480.5-149Zm-.5-331Z"})),J=({className:e,...t})=>n.jsx(cn,{className:d(z.icon,z.error,e),...t}),dn=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"M378-222 130-470l68-68 180 180 383-383 68 68-451 451Z"})),ee=({className:e,...t})=>n.jsx(dn,{className:d(z.icon,z.valid,e),...t}),_n=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"M480-55q-90.2 0-167.57-32.58-77.37-32.57-134.82-90.03-57.46-57.45-90.03-134.82Q55-389.8 55-480q0-89.87 32.56-167.25 32.57-77.37 89.87-135.11 57.31-57.74 134.79-90.69Q389.7-906 480-906v95q-138.33 0-234.66 96.27Q149-618.46 149-480.23 149-342 245.27-245.5t234.5 96.5Q618-149 714.5-245.34 811-341.67 811-480h95q0 90.3-33.01 167.79-33.02 77.5-90.5 134.85Q725-120 647.5-87.5 570.01-55 480-55Z"})),te=({className:e,...t})=>n.jsx(_n,{className:d(z.icon,z.rotation,z.loading,e),...t}),un=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"M767-319.26Q767-206 684.32-130.5 601.65-55 487.32-55 373-55 291-130.5T209-319v-396q0-81.42 59.5-136.21Q328-906 409.76-906q81.77 0 141 54.79Q610-796.42 610-715v376q0 48.91-36.5 82.95Q537-222 487.15-222q-49.84 0-85.5-33.72Q366-289.44 366-339v-370h87v370q0 13 10.29 21.5t24.64 8.5q14.35 0 24.71-8.35Q523-325.7 523-339v-375q1-45.26-33-75.13Q456-819 409.79-819q-46.21 0-80 29.43T296-715v396q1 77.25 57.47 127.63Q409.94-141 489-141q77.67 0 134.83-50.5Q681-242 680-319v-419h87v418.74Z"})),pn=({className:e,...t})=>n.jsx(un,{className:d(z.icon,e),...t}),hn=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"M434-394v-92h92v92h-92Zm-160 0v-92h92v92h-92Zm320 0v-92h92v92h-92ZM434-234v-92h92v92h-92Zm-160 0v-92h92v92h-92Zm320 0v-92h92v92h-92ZM95-55v-791h150.2v-60H327v60h306v-60h82.2v60H866v791H95Zm94-94h582v-421H189v421Zm0-481h582v-121H189v121Zm0 0v-121 121Z"})),fn=({className:e,...t})=>n.jsx(hn,{className:d(z.icon,e),...t}),vn=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"M480-55q-87.04 0-164.52-33.5T180-180q-58-58-91.5-135.46Q55-392.92 55-479.93 55-570 88.45-647.28q33.44-77.27 92.5-135Q240-840 318.77-873t168.61-33q83.62 0 159.41 28.46 75.79 28.45 133.5 79Q838-748 872-678.8q34 69.2 34 149.8 0 114-64 187t-178 73h-58q-16 0-28 13t-12 29q0 25 10 35t10 31q0 44-29.8 75T480-55Zm0-425Zm-224 26q20 0 35-15t15-35q0-20-15-35t-35-15q-20 0-35 15t-15 35q0 20 15 35t35 15Zm121.5-163q20.5 0 35.5-15t15-35q0-21-15-35.5T378-717q-21 0-35.5 14.5t-14.5 35q0 20.5 14.5 35.5t35 15Zm205 0q20.5 0 35.5-15t15-35q0-21-15-35.5T583-717q-21 0-35.5 14.5t-14.5 35q0 20.5 14.5 35.5t35 15ZM707-454q20 0 35-15t15-35q0-20-15-35t-35-15q-21 0-35.5 15T657-504q0 20 14.5 35t35.5 15ZM476-149q7.75 0 11.88-3.55 4.12-3.54 4.12-12.01 0-14.44-15-23.69-15-9.25-15-47.75 0-49.17 32.98-88.09Q527.96-363 576.75-363H664q74 0 110.5-44T811-523q0-132-98.59-210-98.6-78-224.83-78-141.68 0-240.13 96.37Q149-618.26 149-479.52 149-342 244.96-245.5T476-149Z"})),gn=({className:e,...t})=>n.jsx(vn,{className:d(z.icon,e),...t}),mn=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"M585-285 433-437v-214h94v174.41L651-353l-66 68ZM433-726v-124h94v124h-94Zm293 293v-94h124v94H726ZM433-110v-125h94v125h-94ZM110-433v-94h125v94H110ZM480.4-55q-88.87 0-166.12-33.08-77.25-33.09-135.18-91.02-57.93-57.93-91.02-135.12Q55-391.41 55-480.36q0-88.96 33.08-166.29 33.09-77.32 90.86-134.81 57.77-57.48 135.03-91.01Q391.24-906 480.28-906t166.49 33.45q77.44 33.46 134.85 90.81t90.89 134.87Q906-569.34 906-480.27q0 89.01-33.53 166.25t-91.01 134.86q-57.49 57.62-134.83 90.89Q569.28-55 480.4-55Zm.1-94q137.5 0 234-96.37T811-480.5q0-137.5-96.31-234T479.5-811q-137.5 0-234 96.31T149-479.5q0 137.5 96.37 234T480.5-149Zm-.5-331Z"})),bn=({className:e,...t})=>n.jsx(mn,{className:d(z.icon,e),...t}),wn=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"M480-56 216-320l67-67 197 196 197-196 67 67L480-56ZM283-572l-67-68 264-264 264 264-66 68-198-197-197 197Z"})),kn=({className:e,...t})=>n.jsx(wn,{className:d(z.icon,e),...t}),yn=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"m290-61-66-66 256-256 256 256-66 66-190-190L290-61Zm190-517L224-834l66-66 190 190 190-190 66 66-256 256Z"})),xn=({className:e,...t})=>n.jsx(yn,{className:d(z.icon,e),...t}),Nn=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"m239-383 241-242 241 242H239Z"})),$n=({className:e,...t})=>n.jsx(Nn,{className:d(z.icon,e),...t}),Cn=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"M480-336 239-576h482L480-336Z"})),Sn=({className:e,...t})=>n.jsx(Cn,{className:d(z.icon,e),...t}),En=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"m249-183-66-66 231-231-231-231 66-66 231 231 231-231 66 66-231 231 231 231-66 66-231-231-231 231Z"})),Nt=({className:e,...t})=>n.jsx(En,{className:d(z.icon,e),...t}),In=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"M577-239 336-480l241-241v482Z"})),qn=({className:e,...t})=>n.jsx(In,{className:d(z.icon,e),...t}),Tn=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"M383-239v-482l241 241-241 241Z"})),Ln=({className:e,...t})=>n.jsx(Tn,{className:d(z.icon,e),...t}),Bn=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"m294-135-66-66 104-103H55v-95h277L228-503l66-66 218 217-218 217Zm372-257L449-609l217-217 66 66-103 104h277v95H629l103 103-66 66Z"})),zn=({className:e,...t})=>n.jsx(Bn,{className:d(z.icon,e),...t}),On=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"m18-107 462-799 462 799H18Zm145-84h634L480-739 163-191Zm321.18-48q13.4 0 23.61-10.39Q518-259.78 518-273.18q0-13.4-10.39-23.11-10.39-9.71-23.79-9.71-13.4 0-23.61 9.89Q450-286.22 450-272.82q0 13.4 10.39 23.61Q470.78-239 484.18-239ZM454-348h60v-216h-60v216Zm26-117Z"})),Fn=({className:e,...t})=>n.jsx(On,{className:d(z.icon,e),...t}),An=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"M442-269h82v-251h-82v251Zm38.07-310q20.43 0 34.18-13.51Q528-606.03 528-626q0-21.95-13.79-35.47Q500.41-675 480.02-675q-21.52 0-34.77 13.53Q432-647.95 432-626.5q0 20.6 13.82 34.05Q459.64-579 480.07-579Zm.33 524q-88.87 0-166.12-33.08-77.25-33.09-135.18-91.02-57.93-57.93-91.02-135.12Q55-391.41 55-480.36q0-88.96 33.08-166.29 33.09-77.32 90.86-134.81 57.77-57.48 135.03-91.01Q391.24-906 480.28-906t166.49 33.45q77.44 33.46 134.85 90.81t90.89 134.87Q906-569.34 906-480.27q0 89.01-33.53 166.25t-91.01 134.86q-57.49 57.62-134.83 90.89Q569.28-55 480.4-55Zm.1-94q137.5 0 234-96.37T811-480.5q0-137.5-96.31-234T479.5-811q-137.5 0-234 96.31T149-479.5q0 137.5 96.37 234T480.5-149Zm-.5-331Z"})),Dn=({className:e,...t})=>n.jsx(An,{className:d(z.icon,e),...t}),Mn=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"m419-283 294-294-66-66-228 228-111-111-65 66 176 177Zm61.14 228Q392-55 314.51-88.08q-77.48-33.09-135.41-91.02-57.93-57.93-91.02-135.27Q55-391.72 55-479.86 55-569 88.08-646.49q33.09-77.48 90.86-134.97 57.77-57.48 135.19-91.01Q391.56-906 479.78-906q89.22 0 166.83 33.45 77.6 33.46 135.01 90.81t90.89 134.87Q906-569.34 906-480q0 88.28-33.53 165.75t-91.01 135.28q-57.49 57.8-134.83 90.89Q569.28-55 480.14-55Zm-.14-94q138 0 234.5-96.37T811-480q0-138-96.5-234.5t-235-96.5q-137.5 0-234 96.5t-96.5 235q0 137.5 96.37 234T480-149Zm0-331Z"})),$t=({className:e,...t})=>n.jsx(Mn,{className:d(z.icon,e),...t}),jn=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"M693-193v-574h94v574h-94Zm-520 0v-574l417 287-417 287Zm94-287Zm0 108 156-108-156-108v216Z"})),Zn=({className:e,...t})=>n.jsx(jn,{className:d(z.icon,e),...t}),Pn=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"M173-193v-574h94v574h-94Zm614 0L370-480l417-287v574Zm-94-287Zm0 108v-216L537-480l156 108Z"})),Hn=({className:e,...t})=>n.jsx(Pn,{className:d(z.icon,e),...t}),Wn=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"M394-95 135-357l257-258 68 67-145 146h376v-424h95v518H316l145 146-67 67Z"})),Qn=({className:e,...t})=>n.jsx(Wn,{className:d(z.icon,e),...t}),Vn=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"M320-95 95-320v-321l225-225h321l225 225v321L641-95H320Zm41-216 119-119 119 119 51-50-120-119 120-119-51-51-119 120-119-120-50 51 119 119-119 119 50 50Zm-2 122h242l170-170v-242L601-771H359L189-601v242l170 170Zm121-291Z"})),Gn=({className:e,...t})=>n.jsx(Vn,{className:d(z.icon,e),...t}),Un=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"M439-255H280q-94.11 0-159.56-65.42Q55-385.84 55-479.7q0-93.85 65.44-160.07Q185.89-706 280-706h159v95H280.43q-55.51 0-93.47 37.76-37.96 37.77-37.96 93Q149-425 186.96-387q37.96 38 93.47 38H439v94ZM308-444v-72h344v72H308Zm213 189v-94h158.57q55.51 0 93.47-37.76 37.96-37.77 37.96-93Q811-535 773.04-573q-37.96-38-93.47-38H521v-95h159q93.79 0 159.9 66.15 66.1 66.15 66.1 160T839.9-320.5Q773.79-255 680-255H521Z"})),Kn=({className:e,...t})=>n.jsx(Un,{className:d(z.icon,e),...t}),Xn=e=>C.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},C.createElement("path",{d:"M95-203v-95h771v95H95Zm0-230v-94h771v94H95Zm0-229v-95h771v95H95Z"})),Yn=({className:e,...t})=>n.jsx(Xn,{className:d(z.icon,e),...t});var qe=(e=>(e.keydown="keydown",e.mousedown="mousedown",e.animationend="animationend",e))(qe||{});const Te=(e,t,o)=>{const s=o??window,a=r.useRef(t);r.useEffect(()=>{a.current=t},[t]),r.useEffect(()=>{if(s==null)return;const i=l=>a.current(l);return s.addEventListener(e,i),()=>s.removeEventListener(e,i)},[e,s])},Ve=(e,t,o=!0)=>{const s=r.useRef(null),[a,i]=r.useState([]);r.useEffect(()=>{if(o&&t){s.current=e==null?void 0:e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');const c=s.current?s.current[0]:null,u=s.current?s.current[s.current.length-1]:null;i([c,u])}},[t,e,o]),r.useEffect(()=>{var c;o&&t&&((c=a[0])==null||c.focus())},[o,a,t]);const l=r.useCallback(c=>{const[u,g]=a;o&&t&&c.key==="Tab"&&(c.shiftKey&&document.activeElement===u?(c.preventDefault(),g.focus()):!c.shiftKey&&document.activeElement===g&&(c.preventDefault(),u.focus()))},[o,a,t]);Te(qe.keydown,l)};var oe=(e=>(e.default="default",e.success="success",e.link="link",e.danger="danger",e))(oe||{});const G={row:"_row_1a6h0_3","action-button":"_action-button_1a6h0_13",actionButton:"_action-button_1a6h0_13","action-label":"_action-label_1a6h0_49",actionLabel:"_action-label_1a6h0_49","action-icon":"_action-icon_1a6h0_50",actionIcon:"_action-icon_1a6h0_50",default:"_default_1a6h0_68",link:"_link_1a6h0_72",success:"_success_1a6h0_76",danger:"_danger_1a6h0_80"},Ge=({title:e,icon:t,type:o="default",onClick:s=()=>{},className:a})=>{const i=r.useMemo(()=>t??{[oe.success]:$t,[oe.danger]:Gn,[oe.link]:Kn,[oe.default]:void 0}[o],[t,o]),l=r.useCallback(c=>{s(c)},[s]);return n.jsxs("button",{title:e,onClick:l,className:d(G.actionButton,{[G.default]:o===oe.default,[G.link]:o===oe.link,[G.success]:o===oe.success,[G.danger]:o===oe.danger},a),children:[i&&n.jsx(i,{className:G.actionIcon}),e&&n.jsx("span",{className:G.actionLabel,children:e})]})},Le=({actions:e=[],classNameRow:t,classNameAction:o,actionComponent:s=Ge})=>{const a=r.useId();return e.map((i,l)=>{if(Array.isArray(i)){const[c,u]=i;return n.jsxs("div",{className:d(G.row,t),children:[n.jsx(s,{...c,className:d(G.actionButton,o)}),n.jsx(s,{...u,className:d(G.actionButton,o)})]},`${a}-${l}`)}else return n.jsx("div",{className:d(G.row,t),children:n.jsx(s,{...i,className:d(G.actionButton,o)})},`${a}-${l}`)})};var ve=(e=>(e.primary="primary",e.inverted="inverted",e))(ve||{});const Be={actions:"_actions_1ypi2_5","action-row":"_action-row_1ypi2_8",actionRow:"_action-row_1ypi2_8","primary-action":"_primary-action_1ypi2_9",primaryAction:"_primary-action_1ypi2_9","inverted-action":"_inverted-action_1ypi2_10",invertedAction:"_inverted-action_1ypi2_10"},Ct=r.forwardRef(({children:e,className:t,actions:o=[],variant:s=ve.primary,classNameAction:a,classNameRow:i,...l},c)=>n.jsx("div",{...l,className:d(Be.actions,t),ref:c,children:n.jsx(Le,{actions:o,classNameAction:d({[Be.primaryAction]:s===ve.primary,[Be.invertedAction]:s===ve.inverted},a),classNameRow:d(Be.actionRow,i)})}));Ct.displayName="Actions";const Jn=()=>{const e=r.useRef(!0);return e.current?(e.current=!1,!0):e.current};function Rn(){return!!(globalThis!=null&&globalThis.document)}const ge=Rn()?r.useLayoutEffect:r.useEffect,xe=({show:e=!1,children:t,exitClassName:o="transition-exit",exitDoneClassName:s="transition-exit-done",enterClassName:a="transition-enter",enterDoneClassName:i="transition-enter-done",nodeRef:l,unmountNode:c,onExit:u=()=>{},onEnter:g=()=>{}})=>{const p=Jn(),[v,f]=r.useState(e);ge(()=>{e&&f(e)},[e]);const _=r.useMemo(()=>({enter:a.split(" "),exit:o.split(" "),exitDone:s.split(" "),enterDone:i.split(" ")}),[a,i,o,s]);return ge(()=>{var w,y,k,N,m,$;e?((w=l.current)==null||w.classList.add(..._.enter),(y=l.current)==null||y.classList.remove(..._.exit),(k=l.current)==null||k.classList.remove(..._.exitDone)):((N=l.current)==null||N.classList.add(..._.exit),(m=l.current)==null||m.classList.remove(..._.enter),($=l.current)==null||$.classList.remove(..._.enterDone))},[_,l,e,v,p]),Te("animationend",()=>{var w,y,k,N;e&&v?(g(),(w=l.current)==null||w.classList.remove(..._.enter),(y=l.current)==null||y.classList.add(..._.enterDone)):v&&(u(),(k=l.current)==null||k.classList.remove(..._.exit),(N=l.current)==null||N.classList.add(..._.exitDone),f(!1))},l.current),(v||!c)&&t},j={"fade-enter":"_fade-enter_1psjq_31",fadeEnter:"_fade-enter_1psjq_31","fade-in":"_fade-in_1psjq_1",fadeIn:"_fade-in_1psjq_1","fade-exit":"_fade-exit_1psjq_35",fadeExit:"_fade-exit_1psjq_35","fade-out":"_fade-out_1psjq_1",fadeOut:"_fade-out_1psjq_1","slide-top-enter":"_slide-top-enter_1psjq_57",slideTopEnter:"_slide-top-enter_1psjq_57","slide-top":"_slide-top_1psjq_57",slideTop:"_slide-top_1psjq_57","backdrop-fade":"_backdrop-fade_1psjq_95",backdropFade:"_backdrop-fade_1psjq_95","slide-top-exit":"_slide-top-exit_1psjq_65",slideTopExit:"_slide-top-exit_1psjq_65","backdrop-fade-enter":"_backdrop-fade-enter_1psjq_95",backdropFadeEnter:"_backdrop-fade-enter_1psjq_95","backdrop-fade-exit":"_backdrop-fade-exit_1psjq_101",backdropFadeExit:"_backdrop-fade-exit_1psjq_101","slide-bottom-enter":"_slide-bottom-enter_1psjq_138",slideBottomEnter:"_slide-bottom-enter_1psjq_138","slide-in-bottom":"_slide-in-bottom_1psjq_1",slideInBottom:"_slide-in-bottom_1psjq_1","slide-bottom-exit":"_slide-bottom-exit_1psjq_142",slideBottomExit:"_slide-bottom-exit_1psjq_142","slide-out-bottom":"_slide-out-bottom_1psjq_1",slideOutBottom:"_slide-out-bottom_1psjq_1","slide-bottom-enter-done":"_slide-bottom-enter-done_1psjq_146",slideBottomEnterDone:"_slide-bottom-enter-done_1psjq_146","slide-bottom-exit-done":"_slide-bottom-exit-done_1psjq_150",slideBottomExitDone:"_slide-bottom-exit-done_1psjq_150","slide-left-enter":"_slide-left-enter_1psjq_181",slideLeftEnter:"_slide-left-enter_1psjq_181","slide-in-left":"_slide-in-left_1psjq_1",slideInLeft:"_slide-in-left_1psjq_1","slide-left-enter-done":"_slide-left-enter-done_1psjq_186",slideLeftEnterDone:"_slide-left-enter-done_1psjq_186","slide-left-exit":"_slide-left-exit_1psjq_190",slideLeftExit:"_slide-left-exit_1psjq_190","slide-out-left":"_slide-out-left_1psjq_1",slideOutLeft:"_slide-out-left_1psjq_1","slide-left-exit-done":"_slide-left-exit-done_1psjq_194",slideLeftExitDone:"_slide-left-exit-done_1psjq_194","slide-right-enter":"_slide-right-enter_1psjq_224",slideRightEnter:"_slide-right-enter_1psjq_224","slide-in-right":"_slide-in-right_1psjq_1",slideInRight:"_slide-in-right_1psjq_1","slide-right-enter-done":"_slide-right-enter-done_1psjq_229",slideRightEnterDone:"_slide-right-enter-done_1psjq_229","slide-right-exit":"_slide-right-exit_1psjq_233",slideRightExit:"_slide-right-exit_1psjq_233","slide-out-right":"_slide-out-right_1psjq_1",slideOutRight:"_slide-out-right_1psjq_1","slide-right-exit-done":"_slide-right-exit-done_1psjq_237",slideRightExitDone:"_slide-right-exit-done_1psjq_237"},er=({children:e,unmountNode:t=!0,...o})=>n.jsx(xe,{...o,exitClassName:j.fadeExit,enterClassName:j.fadeEnter,unmountNode:t,children:e}),tr=({children:e,unmountNode:t=!0,...o})=>n.jsx(xe,{...o,unmountNode:t,exitClassName:j.slideBottomExit,exitDoneClassName:j.slideBottomExitDone,enterClassName:j.slideBottomEnter,enterDoneClassName:j.slideBottomEnterDone,children:e}),or=({children:e,unmountNode:t=!0,...o})=>n.jsx(xe,{...o,unmountNode:t,exitClassName:j.slideLeftExit,enterClassName:j.slideLeftEnter,enterDoneClassName:j.slideLeftEnterDone,exitDoneClassName:j.slideLeftExitDone,children:e}),nr=({children:e,unmountNode:t=!0,...o})=>n.jsx(xe,{...o,unmountNode:t,exitClassName:j.slideRightExit,enterClassName:j.slideRightEnter,enterDoneClassName:j.slideRightEnterDone,exitDoneClassName:j.slideRightExitDone,children:e}),rr=({children:e,...t})=>n.jsx(xe,{...t,exitClassName:d(j.slideTopExit,j.backdropFadeExit),enterClassName:d(j.slideTopEnter,j.backdropFadeEnter),children:e}),sr=e=>e[e.length-1],Ue=(e,t)=>t.filter(o=>o!==e);var Ke=(e=>(e.DIALOG_CLOSE="DIALOG_CLOSE",e.DIALOG_OPEN="DIALOG_OPEN",e))(Ke||{});const Xe={open:[]},ar=(e=Xe,t)=>{switch(t.type){case"DIALOG_CLOSE":{const{id:o}=t,s=Ue(o,e.open);return{...e,open:s}}case"DIALOG_OPEN":{const{id:o}=t;return{...e,open:[...e.open,o]}}default:return e}},St=r.createContext({state:Xe,dispatch:()=>{}}),Et=()=>r.useContext(St),lr=e=>{const{state:t}=Et();return e(t)},It=e=>{const{dispatch:t}=Et(),o=r.useCallback(()=>{t({type:Ke.DIALOG_OPEN,id:e})},[e,t]),s=r.useCallback(()=>{t({type:Ke.DIALOG_CLOSE,id:e})},[e,t]),a=lr(l=>sr(l.open));return{openDialog:o,closeDialog:s,isOpen:e===a}},le={"no-scroll":"_no-scroll_a4856_4",noScroll:"_no-scroll_a4856_4",dialog:"_dialog_a4856_8",flex:"_flex_a4856_27",header:"_header_a4856_34",body:"_body_a4856_3",actions:"_actions_a4856_54",row:"_row_a4856_60"},qt=r.forwardRef(({children:e,className:t,closeOnClickOutside:o=!0,showCloseButton:s=!0,onToggle:a=()=>{},id:i,actions:l=[],dialogTitle:c,closeLabel:u="Close",trapFocus:g=!0,...p},v)=>{const f=ue(v),{isOpen:_,closeDialog:b}=It(i);Ve(f.current,_,g),r.useEffect(()=>{var m;_&&((m=f.current)==null||m.showModal(),document.body.classList.add(le.noScroll)),a(_)},[f,a,_]);const w=r.useCallback(()=>{a(!1),b()},[b,a]),y=r.useCallback(m=>{m.target.nodeName==="DIALOG"&&o&&w()},[f,w,o]),k=r.useCallback(m=>{m.code==="Escape"&&w()},[w]),N=r.useCallback(()=>{var m;(m=f.current)==null||m.close(),document.body.classList.remove(le.noScroll)},[f]);return n.jsx(rr,{unmountNode:!0,show:_,nodeRef:f,onExit:N,children:n.jsx("dialog",{...p,id:i,onKeyDown:k,onClick:y,className:d(le.dialog,t),ref:f,children:n.jsxs("div",{className:le.flex,children:[c&&n.jsx("header",{className:d(le.header,t),children:n.jsx(vt,{children:c})}),n.jsx("div",{className:d(le.body,t),children:e}),n.jsxs("footer",{className:le.actions,children:[n.jsx(Le,{actions:l}),s&&n.jsx("div",{className:le.row,children:n.jsx(Ge,{onClick:w,icon:Nt,title:u})},`${i}-close`)]})]})})})});qt.displayName="Dialog";const ze=({initialState:e,reducer:t,context:o})=>({children:s})=>{const{Provider:a}=o,[i,l]=r.useReducer(t,e),c=r.useMemo(()=>({state:i,dispatch:l}),[i]);return n.jsx(a,{value:c,children:s})},ir=ze({context:St,reducer:ar,initialState:Xe});var me=(e=>(e.NOTIFICATION_CLOSE="NOTIFICATION_CLOSE",e.NOTIFICATION_OPEN="NOTIFICATION_OPEN",e.NOTIFICATION_REGISTER="NOTIFICATION_REGISTER",e.NOTIFICATION_RE_OPEN="NOTIFICATION_RE_OPEN",e))(me||{});const Ye={open:[],props:{},instances:{}},cr=(e,t)=>{const o={...e};return delete o[t],o},dr=(e=Ye,t)=>{switch(t.type){case"NOTIFICATION_CLOSE":{const{id:o}=t,s=Ue(o,e.open),a=cr(e.instances,o);return{...e,open:s,instances:a}}case"NOTIFICATION_REGISTER":{const{id:o,props:s}=t;return{...e,props:{...e.props,[o]:s}}}case"NOTIFICATION_OPEN":{const{id:o,instance:s}=t;return{...e,open:[...Ue(o,e.open),o],instances:{...e.instances,[o]:s}}}default:return e}},Tt=r.createContext({state:Ye,dispatch:()=>{}}),Ne=()=>r.useContext(Tt),_r=()=>{const{dispatch:e}=Ne();return r.useCallback((t,o)=>{e({id:t,props:o,type:me.NOTIFICATION_REGISTER})},[e])},ur=e=>{const{state:t}=Ne();return t.props[e]},pr=e=>{const{state:t}=Ne();return t.instances[e]},hr=e=>{const{state:t}=Ne();return e(t)},Lt=e=>new window.Notification(e.title,{icon:e.icon,body:e.body,requireInteraction:e.requireInteraction}),Bt=e=>{const{dispatch:t}=Ne(),o=pr(e),s=ur(e),a=hr(p=>p.open.some(v=>v===e)),[i,l]=r.useState(),c=r.useCallback(()=>{t({type:me.NOTIFICATION_CLOSE,id:e})},[t,e]);r.useEffect(()=>(o==null||o.addEventListener("close",c),()=>{o==null||o.removeEventListener("close",c)}),[c,o]);const u=r.useCallback(()=>{var v,f;const p=(v=window==null?void 0:window.Notification)==null?void 0:v.permission;a&&(o==null||o.close()),p==="granted"?(t({type:me.NOTIFICATION_OPEN,id:e,instance:Lt(s)}),l(p)):p!=="denied"?(f=window==null?void 0:window.Notification)==null||f.requestPermission().then(_=>{l(_),_==="granted"&&t({type:me.NOTIFICATION_OPEN,id:e,instance:Lt(s)})}):p==="denied"&&l(p)},[t,e,o,a,s]),g=r.useCallback(()=>{o==null||o.close(),t({type:me.NOTIFICATION_CLOSE,id:e})},[t,e,o]);return{openNotification:u,closeNotification:g,isOpen:a,permission:i}},fr=({id:e,title:t,icon:o,body:s,requireInteraction:a,onToggle:i=()=>{},onDenied:l=()=>{}})=>{const c=_r(),{isOpen:u,permission:g}=Bt(e);return r.useEffect(()=>{c(e,{title:t,icon:o,body:s,requireInteraction:a})},[e,t,o,s,a,c]),r.useEffect(()=>{i(u)},[u,i]),r.useEffect(()=>{g==="denied"&&l()},[l,g]),n.jsx(r.Fragment,{})},vr=ze({context:Tt,reducer:dr,initialState:Ye}),Oe=({children:e})=>{const t=r.useId(),[o,s]=r.useState(!1);return ge(()=>{if(!o){const a=document.createElement("div");a.id=t,document.body.appendChild(a),s(!0)}return()=>{o&&document.getElementById(t).remove()}},[t,o]),o&&sn.createPortal(e,document.getElementById(t),t)},zt=({callback:e,interval:t,condition:o=!0})=>{const s=r.useRef();r.useEffect(()=>{s.current=e},[e]),r.useEffect(()=>{let a;return t!==null&&o&&(a=setInterval(()=>{var l;(l=s.current)==null||l.call(s)},t)),()=>{a&&clearInterval(a)}},[o,t])};var Je=(e=>(e.TOAST_CLOSE="TOAST_CLOSE",e.TOAST_OPEN="TOAST_OPEN",e))(Je||{});const Re={open:""},gr=(e=Re,t)=>{switch(t.type){case"TOAST_CLOSE":{const{id:o}=t,s=e.open===o?"":e.open;return{...e,open:s}}case"TOAST_OPEN":{const{id:o}=t;return{...e,open:o}}default:return e}},Ot=r.createContext({state:Re,dispatch:()=>{}}),Ft=()=>r.useContext(Ot),mr=e=>{const{state:t}=Ft();return e(t)},At=e=>{const{dispatch:t}=Ft(),o=r.useCallback(()=>{t({type:Je.TOAST_OPEN,id:e})},[e,t]),s=r.useCallback(()=>{t({type:Je.TOAST_CLOSE,id:e})},[e,t]),a=mr(l=>l.open);return{openToast:o,closeToast:s,isOpen:e===a}},W={toast:"_toast_15z6m_30",success:"_success_15z6m_43",error:"_error_15z6m_47",warning:"_warning_15z6m_51","enter-active":"_enter-active_15z6m_56",enterActive:"_enter-active_15z6m_56","slide-in-bottom":"_slide-in-bottom_15z6m_1",slideInBottom:"_slide-in-bottom_15z6m_1","exit-active":"_exit-active_15z6m_60",exitActive:"_exit-active_15z6m_60","slide-out-bottom":"_slide-out-bottom_15z6m_1",slideOutBottom:"_slide-out-bottom_15z6m_1",title:"_title_15z6m_64",content:"_content_15z6m_74",left:"_left_15z6m_83",icon:"_icon_15z6m_89",body:"_body_15z6m_95",provider:"_provider_15z6m_100",actions:"_actions_15z6m_106",row:"_row_15z6m_112","action-button":"_action-button_15z6m_117",actionButton:"_action-button_15z6m_117"},Dt=r.forwardRef(({children:e,className:t,actions:o=[],icon:s,variant:a="default",title:i,body:l,onToggle:c=()=>{},id:u,autoClose:g=null,closeLabel:p="Close",...v},f)=>{const{isOpen:_,closeToast:b}=At(u),{LocalRoot:w}=B.useLocalTheme(),{getTheme:y}=B.useRootTheme(),k=s||{default:Dn,error:J,success:$t,warning:Fn}[a];r.useEffect(()=>{c(_)},[_,c]);const N=typeof g=="number",m=N?g*1e3:null;zt({callback:b,interval:m,condition:N});const $=ue(f);return n.jsx(Oe,{children:n.jsx(tr,{show:_,nodeRef:$,children:n.jsx(w,{className:W.provider,theme:y(),children:n.jsxs("div",{...v,className:d(W.toast,{[W.success]:a==="success",[W.warning]:a==="warning",[W.error]:a==="error"},t),ref:$,children:[n.jsxs("div",{className:W.content,children:[n.jsx("div",{className:W.left,children:n.jsx(k,{className:W.icon})}),n.jsxs("div",{className:W.right,children:[n.jsx("div",{className:W.title,children:i}),l&&n.jsx("div",{className:W.body,children:l})]})]}),n.jsxs("footer",{className:W.actions,children:[n.jsx(Le,{actions:o,classNameAction:W.actionButton}),n.jsx("div",{className:W.row,children:n.jsx(Ge,{className:W.actionButton,onClick:b,icon:Nt,title:p})},`${u}-close`)]})]})})})})});Dt.displayName="Toast";const br=ze({context:Ot,reducer:gr,initialState:Re}),et=(e,t,o)=>{const s=r.useCallback(i=>{o&&i.key==="Escape"&&e()},[e,o]);Te(qe.keydown,s);const a=r.useCallback(i=>{o&&i.target.contains(t.current)&&e()},[e,o,t]);Te(qe.mousedown,a)},Fe={provider:"_provider_1nnpp_1",drawer:"_drawer_1nnpp_5",left:"_left_1nnpp_16",right:"_right_1nnpp_21",brand:"_brand_1nnpp_27"};var tt=(e=>(e.DRAWER_CLOSE="DRAWER_CLOSE",e.DRAWER_OPEN="DRAWER_OPEN",e))(tt||{});const ot={open:void 0},wr=(e=ot,t)=>{switch(t.type){case"DRAWER_CLOSE":{const{id:o}=t,s=o===e.open?void 0:e.open;return{...e,open:s}}case"DRAWER_OPEN":{const{id:o}=t;return{...e,open:o}}default:return e}},Mt=r.createContext({state:ot,dispatch:()=>{}}),jt=()=>r.useContext(Mt),kr=e=>{const{state:t}=jt();return e(t)},nt=e=>{const{dispatch:t}=jt(),o=r.useCallback(()=>{t({type:tt.DRAWER_OPEN,id:e})},[e,t]),s=r.useCallback(()=>{t({type:tt.DRAWER_CLOSE,id:e})},[e,t]),a=kr(l=>l.open);return{openDrawer:o,closeDrawer:s,isOpen:e===a}},rt=r.forwardRef(({children:e,className:t,placement:o="left",id:s,...a},i)=>{const l=ue(i),{isOpen:c,closeDrawer:u}=nt(s),{getTheme:g}=B.useRootTheme(),{LocalRoot:p}=B.useLocalTheme(),v=r.useMemo(()=>({left:or,right:nr})[o],[o]);return et(u,l,c),n.jsx(Oe,{children:n.jsx(v,{show:c,nodeRef:l,children:n.jsx(p,{theme:g(),className:Fe.provider,children:n.jsx("div",{...a,className:d(Fe.drawer,{[Fe.left]:o==="left",[Fe.right]:o==="right"},t),ref:l,children:e})})})})});rt.displayName="Drawer";const yr=ze({context:Mt,reducer:wr,initialState:ot}),xr=e=>`fg-${e.replace(new RegExp("(?<![A-Z])[A-Z]","g"),t=>`-${t.toLowerCase()}`).replace(new RegExp("(?<=\\D)\\d","g"),t=>`-${t}`).toLowerCase()}`,Nr=e=>{const t=Object.entries(e).map(([o,s])=>[xr(o),s]);return Object.fromEntries(t)},$r={provider:"_provider_7jixm_1"},Cr=({children:e,theme:t=xt})=>{const o=r.useMemo(()=>Nr({...x,...t}),[t]);return n.jsx(B.RootThemeProvider,{theme:o,className:$r.provider,children:n.jsx(ir,{children:n.jsx(vr,{children:n.jsx(br,{children:n.jsx(yr,{children:e})})})})})},K=(e,t)=>{const o=r.useRef(null),s=t||o;r.useImperativeHandle(e,()=>s.current,[s])};var X=(e=>(e.xs="xs",e.sm="sm",e.md="md",e.lg="lg",e.xl="xl",e))(X||{});const M={vars:"_vars_1h1fy_3",grid:"_grid_1h1fy_20",row:"_row_1h1fy_29",column:"_column_1h1fy_38",xs:"_xs_1h1fy_49",sm:"_sm_1h1fy_56",md:"_md_1h1fy_63",lg:"_lg_1h1fy_70",xl:"_xl_1h1fy_77","fluid-xs":"_fluid-xs_1h1fy_84",fluidXs:"_fluid-xs_1h1fy_84","fluid-sm":"_fluid-sm_1h1fy_90",fluidSm:"_fluid-sm_1h1fy_90","fluid-md":"_fluid-md_1h1fy_96",fluidMd:"_fluid-md_1h1fy_96","fluid-lg":"_fluid-lg_1h1fy_102",fluidLg:"_fluid-lg_1h1fy_102","fluid-xl":"_fluid-xl_1h1fy_108",fluidXl:"_fluid-xl_1h1fy_108",page:"_page_1h1fy_115",header:"_header_1h1fy_126",sticky:"_sticky_1h1fy_127",content:"_content_1h1fy_133",main:"_main_1h1fy_139",footer:"_footer_1h1fy_146",aside:"_aside_1h1fy_150"},Sr=e=>Object.fromEntries(Object.entries(e).filter(([t,o])=>o!==void 0)),Ae=r.forwardRef(({as:e="div",children:t,className:o,xs:s,sm:a,md:i,lg:l,xl:c,shiftXS:u,shiftSM:g,shiftMD:p,shiftLG:v,shiftXL:f,..._},b)=>{const{LocalRoot:w,ref:y}=B.useLocalTheme();K(b,y);const k=r.useMemo(()=>Sr({[X.xs]:s??"",[X.sm]:a??"",[X.md]:i??"",[X.lg]:l??"",[X.xl]:c??"",[`shift-${X.xs}`]:u??"",[`shift-${X.sm}`]:g??"",[`shift-${X.md}`]:p??"",[`shift-${X.lg}`]:v??"",[`shift-${X.xl}`]:f??""}),[s,a,i,l,c,u,g,p,v,f]);return n.jsx(w,{..._,theme:k,as:e,className:d(M.column,{[M.xs]:!!s,[M.sm]:!!a,[M.md]:!!i,[M.lg]:!!l,[M.xl]:!!c,[M["fluid-xs"]]:s==="fluid",[M["fluid-sm"]]:a==="fluid",[M["fluid-md"]]:i==="fluid",[M["fluid-lg"]]:l==="fluid",[M["fluid-xl"]]:c==="fluid"},o),children:t})});Ae.displayName="Col";const $e=r.forwardRef(({className:e,children:t,as:o="div",...s},a)=>{const{LocalRoot:i,ref:l}=B.useLocalTheme();return K(a,l),n.jsx(i,{...s,as:o,className:d(M.row,e),children:t})});$e.displayName="Row";const Er=e=>e==="fluid"?"100%":`${e}px`,st=r.forwardRef(({width:e=1280,className:t,as:o="div",children:s,gap:a=16,base:i=12,...l},c)=>{const{LocalRoot:u,ref:g}=B.useLocalTheme();K(c,g);const p=r.useMemo(()=>({"container-width":Er(e),base:i,gap:`${a}px`}),[e,a,i]);return n.jsx(u,{...l,theme:p,as:o,className:d(M.grid,t),children:s})});st.displayName="Grid";const Zt=r.forwardRef(({width:e="fluid",className:t,as:o="div",children:s,gap:a=0,base:i=12,...l},c)=>n.jsx(st,{...l,width:e,ref:c,className:d(M.page,t),as:o,gap:a,base:i,children:s}));Zt.displayName="Page";const Pt=r.forwardRef(({children:e,className:t,xs:o="fluid",sm:s,md:a,lg:i,xl:l,...c},u)=>n.jsx(Ae,{...c,as:"main",ref:u,xs:o,sm:s,md:a,lg:i,xl:l,className:d(M.main,t),children:e}));Pt.displayName="Main";const Ht=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx($e,{...o,ref:s,className:d(M.footer,t),children:e}));Ht.displayName="Footer";const Wt=r.forwardRef(({children:e,className:t,xs:o,sm:s,md:a,lg:i,xl:l,...c},u)=>n.jsx(Ae,{...c,as:"aside",xs:o,sm:s,md:a,lg:i,xl:l,ref:u,className:d(M.aside,t),children:e}));Wt.displayName="Sidebar";const Qt=r.forwardRef(({children:e,sticky:t=!1,className:o,...s},a)=>n.jsx($e,{...s,as:"header",ref:a,className:d(M.header,{[M.sticky]:t},o),children:e}));Qt.displayName="Header";const Vt=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx($e,{...o,ref:s,className:d(M.content,t),children:e}));Vt.displayName="Content";const be={button:"_button_zt63z_1",content:"_content_zt63z_35",icon:"_icon_zt63z_36",small:"_small_zt63z_40",primary:"_primary_zt63z_60",success:"_success_zt63z_80",danger:"_danger_zt63z_102",action:"_action_zt63z_124",alternative:"_alternative_zt63z_146",link:"_link_zt63z_174",medium:"_medium_zt63z_206",large:"_large_zt63z_211"},Gt=r.forwardRef(({children:e,onClick:t,type:o="button",disabled:s,variant:a="primary",className:i,prefix:l,suffix:c,size:u="medium",...g},p)=>n.jsxs("button",{...g,ref:p,onClick:t,type:o,className:d(be.button,be[a],be[u],i),disabled:s,children:[l&&n.jsx(l,{className:be.icon}),n.jsx("div",{className:be.content,children:e}),c&&n.jsx(c,{className:be.icon})]}));Gt.displayName="Button";var at=(e=>(e.FORM_SET_PRISTINE="FORM_SET_PRISTINE",e))(at||{});const lt={pristine:!0},Ir=(e=lt,t)=>{switch(t.type){case"FORM_SET_PRISTINE":return{...e,pristine:t.pristine};default:return e}},it=r.createContext({state:lt,dispatch:()=>{}}),qr=e=>{const{Provider:t}=it,o=r.forwardRef((s,a)=>{const[i,l]=r.useReducer(Ir,lt),c=r.useMemo(()=>({state:i,dispatch:l}),[i]);return n.jsx(t,{value:c,children:n.jsx(e,{...s,ref:a})})});return o.displayName="FormProvider",o},Tr={form:"_form_jdsai_1"},Ut=()=>{const{dispatch:e}=r.useContext(it),t=r.useCallback(()=>{e({type:at.FORM_SET_PRISTINE,pristine:!0})},[e]),o=r.useCallback(()=>{e({type:at.FORM_SET_PRISTINE,pristine:!1})},[e]);return{markAsPristine:t,markAsDirty:o}},ct=()=>{const{state:e}=r.useContext(it);return{pristine:e.pristine}},Kt=r.forwardRef(({className:e,children:t,onSubmit:o=()=>{},onReset:s=()=>{},onChange:a=()=>{},onInvalid:i=()=>{},...l},c)=>{const{markAsPristine:u,markAsDirty:g}=Ut(),p=r.useCallback(k=>{const N=new FormData(k),m={};for(const[$,S]of N.entries())m[$]=S;return m},[]),v=r.useCallback(k=>{k.preventDefault();const N=k.currentTarget,m=p(N);o(k,m)},[p,o]),f=r.useCallback(k=>{g();const N=p(k.currentTarget);i(k,N)},[p,g,i]),_=r.useCallback(k=>{const N=p(k.currentTarget);u(),s(k,N)},[p,s,u]),{pristine:b}=ct(),w=r.useCallback(k=>{b&&g();const N=p(k.currentTarget);a(k,N)},[p,a,g,b]),y=ue(c);return n.jsx("form",{...l,autoFocus:!0,onSubmit:v,onInvalid:f,onReset:_,onChange:w,ref:y,className:d(Tr.form,e),children:t})});Kt.displayName="Form";const Lr=qr(Kt),U=e=>{const t=r.useId();return e||t},De={wrapper:"_wrapper_1fpz7_1",label:"_label_1fpz7_9",required:"_required_1fpz7_17",hint:"_hint_1fpz7_26"},Xt=r.forwardRef(({className:e,children:t,label:o,hint:s,...a},i)=>{const l=r.Children.only(t).props,c=U(l.id),u=l.id?r.Children.only(t):r.cloneElement(r.Children.only(t),{id:c});return n.jsxs("div",{...a,ref:i,className:d(De.wrapper,e),children:[n.jsx("label",{className:d(De.label,{[De.required]:l.required}),htmlFor:c,children:o}),u,s&&n.jsx("div",{className:De.hint,children:s})]})});Xt.displayName="FormField";var E=(e=>(e.error="error",e.valid="valid",e.inProgress="inProgress",e))(E||{});const R=e=>"",Br=e=>{const{pristine:t}=ct();r.useEffect(()=>{t&&e(null)},[t,e])},Yt=e=>{const t=e&&new FormData(e),o={};if(t)for(const[s,a]of t.entries())o[s]=a;return o},Jt=(e,t)=>t==="interactive"?e.target.checked:e.target.value,ne=({validatorFn:e})=>{const t=e!==R,[o,s]=r.useState(t),a=(e==null?void 0:e.constructor.name)==="AsyncFunction",[i,l]=r.useState(null);Br(l);const c=r.useCallback(_=>{const b=_.target.reportValidity();!b&&!o&&s(!0);const w=o?E.valid:null,y=b?w:E.error;l(y)},[o,l]),u=r.useCallback((_,b)=>{const w=Jt(b,_),y=Yt(b.target.form),k=e==null?void 0:e(w,b.target.validity,y);b.target.setCustomValidity(k),c(b)},[e,c]),g=r.useCallback(rn(e,1e3),[e]),p=r.useCallback(async(_,b)=>{b.target.setCustomValidity("");const w=Jt(b,_),y=Yt(b.target.form);l(E.inProgress);let k="";try{k=await g(w,b.target.validity,y)}catch(N){b.target.setCustomValidity(N)}b.target.setCustomValidity(k),c(b)},[l,g,c]),v=r.useCallback(_=>a?p("interactive",_):u("interactive",_),[p,u,a]),f=r.useCallback(_=>a?p("textual",_):u("textual",_),[u,a,p]);return{validateInteractive:v,validateTextual:f,validity:i,setValidity:l}},Ce={wrapper:"_wrapper_1sa8r_3",input:"_input_1sa8r_10",label:"_label_1sa8r_62",required:"_required_1sa8r_75",icon:"_icon_1sa8r_84"},Rt=r.forwardRef(({className:e,disabled:t,value:o,onChange:s=()=>{},onFocus:a=()=>{},onBlur:i=()=>{},onKeyDown:l=()=>{},onKeyUp:c=()=>{},checked:u,defaultChecked:g,id:p,label:v,validatorFn:f=R,required:_,...b},w)=>{const y=U(p),{validateInteractive:k,validity:N,setValidity:m}=ne({validatorFn:f}),$={[E.error]:J,[E.valid]:ee,[E.inProgress]:te}[N],S=r.useCallback(I=>{s(I)},[s]),A=r.useCallback(()=>{m(E.error)},[m]);return n.jsxs("div",{className:d(Ce.wrapper,e),children:[n.jsx("input",{...b,className:Ce.input,ref:w,disabled:t,type:"checkbox",id:y,value:o,checked:u,defaultChecked:g,onChange:S,onBlur:i,onFocus:a,onKeyUp:c,onKeyDown:l,onInput:k,onInvalid:A,onReset:()=>{console.log("reset!")},required:_}),n.jsx("label",{className:d(Ce.label,{[Ce.required]:_}),htmlFor:y,children:v}),N&&n.jsx($,{className:Ce.icon})]})});Rt.displayName="InputCheckbox";const Se={wrapper:"_wrapper_1ed63_1",legend:"_legend_1ed63_7",disabled:"_disabled_1ed63_15",inputs:"_inputs_1ed63_20",hint:"_hint_1ed63_27"},eo=r.forwardRef(({className:e,validation:t,id:o,label:s,children:a,name:i,disabled:l,hint:c,required:u,...g},p)=>{const v=r.useMemo(()=>r.Children.map(a,f=>{if(r.isValidElement(f)){const _={name:i};return l!==void 0&&typeof f.props.disabled!="boolean"&&(_.disabled=l),u!==void 0&&typeof f.props.required!="boolean"&&(_.required=u),r.cloneElement(f,_)}return f}),[a,l,i,u]);return n.jsxs("fieldset",{...g,className:d(Se.wrapper,e),disabled:l,id:o,ref:p,children:[n.jsx("legend",{className:d(Se.legend,{[Se.disabled]:l}),children:s}),n.jsx("div",{className:Se.inputs,children:v}),c&&n.jsx("div",{className:Se.hint,children:c})]})});eo.displayName="InputGroup";const Me={wrapper:"_wrapper_1rk00_3",label:"_label_1rk00_10",required:"_required_1rk00_14",input:"_input_1rk00_23",icon:"_icon_1rk00_96"},to=r.forwardRef(({className:e,disabled:t,value:o,onChange:s=()=>{},onFocus:a=()=>{},onBlur:i=()=>{},onKeyDown:l=()=>{},onKeyUp:c=()=>{},checked:u,defaultChecked:g,id:p,label:v,required:f,..._},b)=>{const w=U(p),y=r.useCallback(k=>{s(k)},[s]);return n.jsxs("div",{className:d(Me.wrapper,e),children:[n.jsx("input",{..._,className:Me.input,ref:b,disabled:t,type:"radio",id:w,value:o,checked:u,defaultChecked:g,onChange:y,onBlur:i,onFocus:a,onKeyUp:c,onKeyDown:l,required:f}),n.jsx("label",{className:d(Me.label,{[Me.required]:f}),htmlFor:w,children:v})]})});to.displayName="InputRadio";const dt={wrapper:"_wrapper_1vbpi_3",input:"_input_1vbpi_20",prefix:"_prefix_1vbpi_71"},oo=r.forwardRef(({prefix:e,className:t,type:o="text",placeholder:s="",disabled:a,value:i,onChange:l=()=>{},onFocus:c=()=>{},onBlur:u=()=>{},onKeyDown:g=()=>{},onKeyUp:p=()=>{},defaultValue:v,validatorFn:f=R,readOnly:_,size:b=16,id:w,required:y,...k},N)=>{const{validateTextual:m,validity:$,setValidity:S}=ne({validatorFn:f}),A={[E.error]:J,[E.valid]:ee,[E.inProgress]:te}[$],I=r.useCallback(Z=>{l(Z)},[l]),F=r.useCallback(()=>{y&&S(E.error)},[y,S]),q=r.useCallback(Z=>{_&&Z.target.select()},[_]),O=U(w);return n.jsxs("div",{className:d(dt.wrapper,t),children:[e&&n.jsx("label",{className:dt.prefix,htmlFor:O,children:n.jsx(e,{})}),n.jsx("input",{...k,required:y,size:b,id:O,readOnly:_,placeholder:s,className:dt.input,ref:N,disabled:a,type:o,value:i,defaultValue:v,onChange:I,onBlur:u,onFocus:c,onKeyUp:p,onKeyDown:g,onInvalid:F,onInput:m,onSelect:q}),$&&n.jsx(A,{})]})});oo.displayName="InputText";const we={wrapper:"_wrapper_qh9t3_3",toggle:"_toggle_qh9t3_17",icon:"_icon_qh9t3_27",input:"_input_qh9t3_37",label:"_label_qh9t3_65",validity:"_validity_qh9t3_125"},no=r.forwardRef(({id:e,className:t,placeholder:o="YYYY-MM-DD",disabled:s,value:a,onChange:i=()=>{},onFocus:l=()=>{},onBlur:c=()=>{},onKeyDown:u=()=>{},onKeyUp:g=()=>{},defaultValue:p,validatorFn:v=R,...f},_)=>{const b=U(e),w=r.useRef(null),{validateTextual:y,validity:k,setValidity:N}=ne({validatorFn:v}),m={[E.error]:J,[E.valid]:ee,[E.inProgress]:te}[k],$=a??p,S=r.useCallback(O=>{i(O),w!=null&&w.current&&(w.current.innerText=O.target.value)},[i]),A=r.useCallback(()=>{N(E.error)},[N]),I=r.useCallback(O=>{l(O),O.target.showPicker()},[l]),F=r.useCallback(O=>{c(O)},[c]),q=r.useCallback(O=>{y(O)},[y]);return n.jsxs("div",{className:d(we.wrapper,t),children:[n.jsxs("div",{className:we.toggle,children:[n.jsx("input",{...f,id:b,ref:_,className:we.input,type:"date",disabled:s,value:a,defaultValue:p,onChange:S,onInvalid:A,onInput:q,onFocus:I,onBlur:F,onKeyUp:g,onKeyDown:u}),n.jsx("label",{htmlFor:b,className:we.icon,children:n.jsx(fn,{})})]}),n.jsx("label",{htmlFor:b,className:we.label,ref:w,children:$||o}),k&&n.jsx(m,{className:we.validity})]})});no.displayName="InputDate";const Ee={wrapper:"_wrapper_iwnrb_3",toggle:"_toggle_iwnrb_18",icon:"_icon_iwnrb_28",input:"_input_iwnrb_45",label:"_label_iwnrb_72",validity:"_validity_iwnrb_129"},_t=(e,t=2)=>(new Array(t).join("0")+e).slice(-t),ut=e=>(255-e).toString(16),pt=(e,t)=>{if(e){if(e.startsWith("#")&&(e=e.slice(1)),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length!==6)throw new Error("Invalid HEX color.");const o=parseInt(e.slice(0,2),16),s=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16);return t?o*.299+s*.587+a*.114>186?"#000000":"#FFFFFF":"#"+_t(ut(o))+_t(ut(s))+_t(ut(a))}return""},ro=r.forwardRef(({className:e,placeholder:t="#??????",disabled:o,value:s,onChange:a=()=>{},onFocus:i=()=>{},onBlur:l=()=>{},onKeyDown:c=()=>{},onKeyUp:u=()=>{},defaultValue:g,id:p,predefinedColors:v=[],...f},_)=>{const b=U(p),{LocalRoot:w,setTheme:y}=B.useLocalTheme(),k=s??g,N=r.useMemo(()=>({"selected-color":k,"inverted-color":pt(k,!0)}),[k]),m=r.useCallback(q=>{i(q),y({"selected-color":q.target.value,"inverted-color":pt(q.target.value,!0)})},[i,y]),$=r.useRef(null),S=r.useCallback(q=>{y({"inverted-color":pt(q.target.value,!0)}),$!=null&&$.current&&($.current.innerText=q.target.value),l(q),a(q)},[y,l,a]),A=r.useCallback(q=>{y({"selected-color":q.target.value,"inverted-color":"transparent"})},[y]),I=v.length>0,F=`${b}_predefinedColors`;return n.jsxs(w,{theme:N,className:d(Ee.wrapper,e),children:[n.jsxs("div",{className:Ee.toggle,children:[n.jsx("input",{...f,id:b,ref:_,type:"color",disabled:o,defaultValue:k,className:Ee.input,onBlur:S,onKeyUp:u,onKeyDown:c,onFocus:m,onChange:A,list:I?F:void 0}),n.jsx(gn,{className:d(Ee.icon)})]}),n.jsx("label",{htmlFor:b,className:Ee.label,ref:$,children:k.toLowerCase()||t}),I&&n.jsx("datalist",{id:F,children:v.map(q=>n.jsx("option",{value:q},q))})]})});ro.displayName="InputColor";const ht={wrapper:"_wrapper_31ykv_3",input:"_input_31ykv_20",icon:"_icon_31ykv_83"},so=r.forwardRef(({className:e,placeholder:t="",disabled:o,value:s,onChange:a=()=>{},onFocus:i=()=>{},onBlur:l=()=>{},onKeyDown:c=()=>{},onKeyUp:u=()=>{},defaultValue:g,validatorFn:p=R,...v},f)=>{const _=ue(f),{validity:b,setValidity:w,validateTextual:y}=ne({validatorFn:p}),k={[E.error]:J,[E.valid]:ee,[E.inProgress]:te}[b],N=r.useCallback(()=>{w(E.error)},[w]),m=r.useCallback(()=>{var I,F;(I=_.current)==null||I.focus(),(F=_.current)==null||F.showPicker()},[_]),$=r.useCallback(I=>{c(I)},[c]),S=r.useCallback(I=>{u(I)},[u]),A=r.useCallback(I=>{I.target.checkValidity()&&w(E.valid),a(I)},[a,w]);return n.jsxs("div",{className:d(ht.wrapper,e),children:[n.jsx(bn,{tabIndex:-1,onClick:m,className:ht.icon}),n.jsx("input",{...v,type:"time",placeholder:t,className:ht.input,ref:_,disabled:o,value:s,defaultValue:g,onBlur:l,onFocus:i,onKeyUp:S,onKeyDown:$,onInvalid:N,onChange:A,onInput:y}),b&&n.jsx(k,{})]})});so.displayName="InputTime";function ao(e,t=[]){const o=r.useRef(e);return ge(()=>{o.current=e}),r.useCallback((...s)=>{var a;return(a=o.current)==null?void 0:a.call(o,...s)},t)}const zr=e=>typeof e=="function";function Or(e,...t){return zr(e)?e(...t):e}function Fr(e){const{value:t,defaultValue:o,onChange:s,shouldUpdate:a=(f,_)=>f!==_}=e,i=ao(s),l=ao(a),[c,u]=r.useState(o),g=t!==void 0,p=g?t:c,v=r.useCallback(f=>{const _=Or(f,p);l(p,_)&&(g||u(_),i(_))},[g,i,p,l]);return[p,v]}const ie={vars:"_vars_qamvp_3","input-range":"_input-range_qamvp_7",inputRange:"_input-range_qamvp_7",input:"_input_qamvp_7",scale:"_scale_qamvp_131",mark:"_mark_qamvp_149",output:"_output_qamvp_153","scale-wrapper":"_scale-wrapper_qamvp_166",scaleWrapper:"_scale-wrapper_qamvp_166",validation:"_validation_qamvp_174",prefix:"_prefix_qamvp_179"},Ar=({min:e,max:t,bars:o,scaleUnit:s})=>{const i=(t-e)/o;return new Array(o+1).fill("").map((c,u)=>{const g=Math.floor(e+i*u);return n.jsx("option",{value:g,label:`- ${g}${s}`,className:ie.mark},u)})},lo=r.forwardRef(({prefix:e,id:t,className:o,disabled:s,value:a,onChange:i=()=>{},onFocus:l=()=>{},onBlur:c=()=>{},onKeyDown:u=()=>{},onKeyUp:g=()=>{},defaultValue:p,validatorFn:v=R,min:f=0,max:_=100,bars:b=5,scaleUnit:w="",...y},k)=>{const{validateTextual:N,validity:m,setValidity:$}=ne({validatorFn:v}),S={[E.error]:J,[E.valid]:ee,[E.inProgress]:te}[m],[A,I]=Fr({value:a,defaultValue:p}),F=r.useCallback(L=>{I(L.target.value),i(L)},[i,I]),q=r.useCallback(()=>{$(E.error)},[$]),O=U(t),Z=`${O}-scale`,{LocalRoot:ae}=B.useLocalTheme(),D=r.useMemo(()=>({"output-length":_.toString().length+w.length}),[_,w]);return n.jsxs("div",{className:d(ie["input-range"],o),children:[e&&n.jsx("label",{className:ie.prefix,htmlFor:O,children:n.jsx(e,{})}),n.jsxs("div",{className:ie["scale-wrapper"],children:[n.jsx("input",{...y,id:O,type:"range",className:ie.input,ref:k,disabled:s,value:a,defaultValue:p,onChange:F,onBlur:c,onFocus:l,onKeyUp:g,onKeyDown:u,onInvalid:q,onInput:N,list:Z,min:f,max:_}),n.jsx("datalist",{id:Z,className:ie.scale,children:Ar({min:Number(f),max:Number(_),bars:b,scaleUnit:w})})]}),n.jsxs(ae,{as:"output",theme:D,className:ie.output,children:[A||Number(_)/2," ",w]}),m&&n.jsx(S,{className:ie.validation})]})});lo.displayName="InputRange";const ke={vars:"_vars_1pxio_3","input-file":"_input-file_1pxio_7",inputFile:"_input-file_1pxio_7",toggle:"_toggle_1pxio_21",input:"_input_1pxio_7",icon:"_icon_1pxio_46",label:"_label_1pxio_54",validity:"_validity_1pxio_115"},io=r.forwardRef(({id:e,className:t,placeholder:o="",disabled:s,value:a,onChange:i=()=>{},onFocus:l=()=>{},onBlur:c=()=>{},onKeyDown:u=()=>{},onKeyUp:g=()=>{},defaultValue:p,size:v=16,...f},_)=>{const{LocalRoot:b}=B.useLocalTheme(),w=r.useMemo(()=>({"input-width":`${v}ch`}),[v]),y=U(e),[k,N]=r.useState(""),{validateTextual:m,validity:$,setValidity:S}=ne({validatorFn:R}),A={[E.error]:J,[E.valid]:ee,[E.inProgress]:te}[$],I=r.useCallback(q=>{i(q),N(q.target.files[0].name)},[i,N]),F=r.useCallback(()=>{N(""),S(E.error)},[S]);return n.jsxs(b,{theme:w,className:d(ke["input-file"],t),children:[n.jsxs("div",{className:ke.toggle,children:[n.jsx("input",{...f,id:y,type:"file",placeholder:o,className:ke.input,ref:_,disabled:s,value:a,defaultValue:p,onChange:I,onBlur:c,onFocus:l,onKeyUp:g,onKeyDown:u,onInvalid:F,onInput:m}),n.jsx(pn,{className:d(ke.icon)})]}),n.jsx("label",{htmlFor:y,className:ke.label,children:k||o}),$&&n.jsx(A,{className:ke.validity})]})});io.displayName="InputFile";const je={wrapper:"_wrapper_1x71d_3",input:"_input_1x71d_20",spinner:"_spinner_1x71d_80",validation:"_validation_1x71d_130"},Ze=new Event("change",{bubbles:!0}),co=r.forwardRef(({className:e,placeholder:t="",disabled:o,value:s,onChange:a=()=>{},onFocus:i=()=>{},onBlur:l=()=>{},onKeyDown:c=()=>{},onKeyUp:u=()=>{},defaultValue:g,validatorFn:p=R,size:v=10,step:f=1,..._},b)=>{const{validateTextual:w,validity:y,setValidity:k}=ne({validatorFn:p}),N={[E.error]:J,[E.valid]:ee,[E.inProgress]:te}[y],m=r.useCallback(O=>{a(O)},[a]),$=r.useCallback(()=>{k(E.error)},[k]),S=ue(b),A=r.useCallback(()=>{S.current.stepDown(),S.current.dispatchEvent(Ze),w(Ze)},[S,w]),I=r.useCallback(()=>{S.current.stepUp(),S.current.dispatchEvent(Ze),w(Ze)},[S,w]),{LocalRoot:F}=B.useLocalTheme(),q=r.useMemo(()=>({size:v}),[v]);return n.jsxs(F,{className:d(je.wrapper,e),theme:q,children:[n.jsxs("div",{className:je.spinner,children:[n.jsx($n,{tabIndex:-1,onClick:I}),n.jsx(Sn,{tabIndex:-1,onClick:A})]}),n.jsx("input",{..._,step:f,size:v,type:"number",placeholder:t,className:je.input,ref:S,disabled:o,value:s,defaultValue:g,onChange:m,onBlur:l,onFocus:i,onKeyUp:u,onKeyDown:c,onInvalid:$,onInput:w}),y&&n.jsx(N,{className:je.validation})]})});co.displayName="InputNumber";const Pe={vars:"_vars_77h1y_3",wrapper:"_wrapper_77h1y_7",textarea:"_textarea_77h1y_24",prefix:"_prefix_77h1y_75",validation:"_validation_77h1y_110"},_o=r.forwardRef(({prefix:e,className:t,placeholder:o="",disabled:s,value:a,onChange:i=()=>{},onFocus:l=()=>{},onBlur:c=()=>{},onKeyDown:u=()=>{},onKeyUp:g=()=>{},defaultValue:p,validatorFn:v=R,id:f,readOnly:_,cols:b=20,rows:w=3,resize:y="both",...k},N)=>{const{validateTextual:m,validity:$,setValidity:S}=ne({validatorFn:v}),A={[E.error]:J,[E.valid]:ee,[E.inProgress]:te}[$],I=r.useCallback(L=>{i(L)},[i]),F=r.useCallback(()=>{S(E.error)},[S]),q=r.useCallback(L=>{m(L)},[m]),O=r.useCallback(L=>{_&&L.target.select()},[_]),Z=U(f),{LocalRoot:ae}=B.useLocalTheme(),D=r.useMemo(()=>({resize:y}),[y]);return n.jsxs(ae,{theme:D,className:d(Pe.wrapper,t),children:[e&&n.jsx("label",{className:Pe.prefix,htmlFor:Z,children:n.jsx(e,{})}),n.jsx("textarea",{...k,cols:b,rows:w,readOnly:_,id:Z,placeholder:o,className:Pe.textarea,ref:N,disabled:s,value:a,defaultValue:p,onChange:I,onBlur:c,onFocus:l,onKeyUp:g,onKeyDown:u,onInvalid:F,onInput:q,onSelect:O}),$&&n.jsx(A,{className:Pe.validation})]})});_o.displayName="Textarea";const ye={vars:"_vars_q8avo_5",wrapper:"_wrapper_q8avo_9",select:"_select_q8avo_26","icon-wrapper":"_icon-wrapper_q8avo_30",iconWrapper:"_icon-wrapper_q8avo_30",icon:"_icon_q8avo_30",prefix:"_prefix_q8avo_107",validation:"_validation_q8avo_146"},uo=r.forwardRef(({prefix:e,className:t,disabled:o,value:s,onChange:a=()=>{},onFocus:i=()=>{},onBlur:l=()=>{},onKeyDown:c=()=>{},onKeyUp:u=()=>{},validatorFn:g=R,id:p,multiple:v,children:f,size:_=16,...b},w)=>{const{LocalRoot:y}=B.useLocalTheme(),k=r.useMemo(()=>({"select-width":`${_}ch`}),[_]),{validateTextual:N,validity:m,setValidity:$}=ne({validatorFn:g}),S={[E.error]:J,[E.valid]:ee,[E.inProgress]:te}[m],A=r.useCallback(H=>{a(H)},[a]),I=r.useCallback(()=>{$(E.error)},[$]),F=U(p),q=ue(w),[O,Z]=r.useState("close"),ae={close:xn,open:kn}[O],D=r.useCallback(H=>{i(H),Z("close")},[i,Z]),L=r.useCallback(H=>{l(H),Z("open")},[l,Z]);return n.jsxs(y,{theme:k,className:d(ye.wrapper,t),children:[e&&n.jsx("label",{className:ye.prefix,htmlFor:F,children:n.jsx(e,{})}),n.jsxs("div",{className:ye.iconWrapper,children:[n.jsx("select",{...b,id:F,multiple:v,className:ye.select,ref:q,disabled:o,value:s,onChange:A,onBlur:L,onFocus:D,onKeyUp:u,onKeyDown:c,onInvalid:I,onInput:N,children:f}),!v&&n.jsx(ae,{className:ye.icon})]}),m&&n.jsx(S,{className:ye.validation})]})});uo.displayName="Select";const T={text:"_text_1x7ek_3",header1:"_header1_1x7ek_11",header2:"_header2_1x7ek_22",header3:"_header3_1x7ek_33",header4:"_header4_1x7ek_44",header5:"_header5_1x7ek_55",header6:"_header6_1x7ek_66",paragraph:"_paragraph_1x7ek_77",link:"_link_1x7ek_88",bold:"_bold_1x7ek_99",strong:"_strong_1x7ek_105",italic:"_italic_1x7ek_111",emphasized:"_emphasized_1x7ek_117",marked:"_marked_1x7ek_124",small:"_small_1x7ek_131",deleted:"_deleted_1x7ek_137",inserted:"_inserted_1x7ek_145",subscript:"_subscript_1x7ek_160",superscript:"_superscript_1x7ek_167",ul:"_ul_1x7ek_175",ol:"_ol_1x7ek_176",blockquote:"_blockquote_1x7ek_235","description-list":"_description-list_1x7ek_272",descriptionList:"_description-list_1x7ek_272",keyboard:"_keyboard_1x7ek_292","table-wrapper":"_table-wrapper_1x7ek_312",tableWrapper:"_table-wrapper_1x7ek_312",table:"_table_1x7ek_312",code:"_code_1x7ek_384",preformatted:"_preformatted_1x7ek_393",meter:"_meter_1x7ek_431","strike-through":"_strike-through_1x7ek_476",strikeThrough:"_strike-through_1x7ek_476"},po=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("div",{...o,ref:s,className:d(T.text,t),children:e}));po.displayName="Text";const ho=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("p",{...o,className:d(T.paragraph,t),ref:s,children:e}));ho.displayName="P";const fo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("ul",{...o,className:d(T.ul,t),ref:s,children:e}));fo.displayName="Ul";const vo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("ol",{...o,className:d(T.ol,t),ref:s,children:e}));vo.displayName="Ol";const go=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("dl",{...o,className:d(T["description-list"],t),ref:s,children:e}));go.displayName="Dl";const mo=r.forwardRef(({children:e,className:t,href:o="#",...s},a)=>n.jsx("a",{...s,href:o,className:d(T.link,t),ref:a,children:e}));mo.displayName="A";const ft=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("b",{...o,className:d(T.bold,t),ref:s,children:e}));ft.displayName="B";const bo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("strong",{...o,className:d(T.strong,t),ref:s,children:e}));bo.displayName="Strong",ft.displayName="B";const wo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("i",{...o,className:d(T.italic,t),ref:s,children:e}));wo.displayName="I";const ko=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("em",{...o,className:d(T.emphasized,t),ref:s,children:e}));ko.displayName="Em";const yo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("mark",{...o,className:d(T.marked,t),ref:s,children:e}));yo.displayName="Mark";const xo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("small",{...o,className:d(T.small,t),ref:s,children:e}));xo.displayName="Small";const No=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("del",{...o,className:d(T.deleted,t),ref:s,children:e}));No.displayName="Del";const $o=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("ins",{...o,className:d(T.inserted,t),ref:s,children:e}));$o.displayName="Ins";const Co=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("sub",{...o,className:d(T.subscript,t),ref:s,children:e}));Co.displayName="Sub";const So=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("sup",{...o,className:d(T.superscript,t),ref:s,children:e}));So.displayName="Sup";const Eo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("kbd",{...o,className:d(T.keyboard,t),ref:s,children:e}));Eo.displayName="Kbd";const Io=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("code",{...o,className:d(T.code,t),ref:s,children:e}));Io.displayName="Code";const qo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("s",{...o,className:d(T.strikeThrough,t),ref:s,children:e}));qo.displayName="S";const To=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("h1",{...o,className:d(T.header1,t),ref:s,children:e}));To.displayName="H1";const Lo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("h2",{...o,className:d(T.header2,t),ref:s,children:e}));Lo.displayName="H2";const vt=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("h3",{...o,className:d(T.header3,t),ref:s,children:e}));vt.displayName="H3";const Bo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("h4",{...o,className:d(T.header4,t),ref:s,children:e}));Bo.displayName="H4";const zo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("h5",{...o,className:d(T.header5,t),ref:s,children:e}));zo.displayName="H5";const Oo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("h6",{...o,className:d(T.header6,t),ref:s,children:e}));Oo.displayName="H6";const Fo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("blockquote",{...o,className:d(T.blockquote,t),ref:s,children:e}));Fo.displayName="BlockQuote";const Ao=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("pre",{...o,className:d(T.preformatted,t),ref:s,children:e}));Ao.displayName="Pre";const Do=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("div",{className:T["table-wrapper"],children:n.jsx("table",{...o,className:d(T.table,t),ref:s,children:e})}));Do.displayName="Table";const Mo=r.forwardRef(({max:e,min:t,value:o,low:s,high:a,optimum:i,className:l,...c},u)=>n.jsx("meter",{...c,min:t,max:e,low:s,high:a,optimum:i,value:o,className:d(T.meter,l),ref:u,children:o}));Mo.displayName="Meter";const jo={vars:"_vars_juv20_1",wrapper:"_wrapper_juv20_5",figure:"_figure_juv20_12"},Zo=r.forwardRef(({children:e,className:t,caption:o,position:s="center",...a},i)=>{const l=r.useMemo(()=>({position:s}),[s]),{LocalRoot:c}=B.useLocalTheme();return n.jsx(c,{theme:l,className:jo.wrapper,children:n.jsxs("figure",{...a,className:d(jo.figure,t),ref:i,children:[e,o&&n.jsx("figcaption",{children:o})]})})});Zo.displayName="Figure";const pe={vars:"_vars_1nynn_1","skeleton-frame":"_skeleton-frame_1nynn_7",skeletonFrame:"_skeleton-frame_1nynn_7","skeleton-shape":"_skeleton-shape_1nynn_25",skeletonShape:"_skeleton-shape_1nynn_25",loading:"_loading_1nynn_1","skeleton-text":"_skeleton-text_1nynn_47",skeletonText:"_skeleton-text_1nynn_47","skeleton-action":"_skeleton-action_1nynn_51",skeletonAction:"_skeleton-action_1nynn_51","skeleton-button":"_skeleton-button_1nynn_60",skeletonButton:"_skeleton-button_1nynn_60","short-line":"_short-line_1nynn_64",shortLine:"_short-line_1nynn_64"},ce=e=>e===void 0?"auto":e==="fluid"?"100%":`${e}px`,de=r.forwardRef(({className:e,width:t="fluid",height:o,borderRadius:s=6,marginY:a=0,marginX:i=0,...l},c)=>{const{LocalRoot:u,ref:g}=B.useLocalTheme();K(c,g);const p=r.useMemo(()=>({width:ce(t),height:ce(o),"border-radius":s,"margin-y":a,"margin-x":i}),[s,o,i,a,t]);return n.jsx(u,{...l,theme:p,className:d(pe.skeletonShape,e)})});de.displayName="SkeletonShape";const Po=r.forwardRef(({children:e,className:t,width:o="fluid",height:s="fluid",marginY:a=24,marginX:i=0,double:l=!1,...c},u)=>{const{LocalRoot:g,ref:p}=B.useLocalTheme();K(u,p);const v=r.useMemo(()=>({width:ce(o),height:ce(s),"margin-y":a,"margin-x":i}),[s,i,a,o]);return n.jsxs(g,{...c,className:d(pe.skeletonAction,t),theme:v,children:[n.jsx(de,{className:pe.skeletonButton,height:36}),l&&n.jsx(de,{className:pe.skeletonButton,height:36})]})});Po.displayName="SkeletonAction";const Ho=r.forwardRef(({children:e,className:t,width:o="fluid",height:s,borderRadius:a=12,marginY:i=0,marginX:l=0,...c},u)=>{const{LocalRoot:g,ref:p}=B.useLocalTheme();K(u,p);const v=r.useMemo(()=>({width:ce(o),height:ce(s),"border-radius":a,"margin-y":i,"margin-x":l}),[a,s,l,i,o]);return n.jsx(g,{...c,theme:v,className:d(pe.skeletonFrame,t),children:e})});Ho.displayName="SkeletonFrame";const Wo=e=>new Array(e).fill(""),Qo=r.forwardRef(({className:e,width:t="fluid",height:o,lines:s=3,marginY:a=36,marginX:i=0,...l},c)=>{const{LocalRoot:u,ref:g}=B.useLocalTheme();K(c,g);const p=r.useMemo(()=>({width:ce(t),height:ce(o),"margin-y":a,"margin-x":i}),[o,i,a,t]),v=s===1,f=Wo(s-1);return n.jsxs(u,{...l,className:d(pe.skeletonText,e),theme:p,children:[v&&n.jsx(de,{marginY:9,height:24}),!v&&f.map((_,b)=>n.jsx(de,{marginY:9,height:24},b)),!v&&n.jsx(de,{marginY:9,className:pe.shortLine,height:24})]})});Qo.displayName="SkeletonText";const He={wrapper:"_wrapper_19sx1_1",picture:"_picture_19sx1_8",loading:"_loading_19sx1_20",skeleton:"_skeleton_19sx1_25"},gt=r.forwardRef(({className:e,alt:t,src:o,sources:s,width:a,height:i,loading:l="lazy",...c},u)=>{const[g,p]=r.useState(!1),v=r.useCallback(()=>{p(!0)},[]);return n.jsxs("div",{className:He.wrapper,children:[n.jsxs("picture",{...c,className:d(He.picture,{[He.loading]:!g},e),ref:u,onLoad:v,children:[s==null?void 0:s.map(({src:f,mediaCondition:_,density:b="1x",intrinsicWidth:w,slotWidth:y="",type:k,width:N,height:m})=>{const $=w??b;return n.jsx("source",{type:k,srcSet:`${f} ${$}`,media:`${_} ${y}`,width:N,height:m},f)}),n.jsx("img",{width:a,height:i,loading:l,src:o,alt:t})]}),!g&&n.jsx(de,{width:a,height:i,className:He.skeleton})]})});gt.displayName="Picture";const Dr=(e,t)=>{ge(()=>{const o=()=>{t(e)};if(e){const s=new ResizeObserver(o);return s.observe(e),()=>{s.disconnect()}}},[t,e])},V={vars:"_vars_12wa1_1",carousel:"_carousel_12wa1_9",scene:"_scene_12wa1_19",viewport:"_viewport_12wa1_29",navigation:"_navigation_12wa1_42",left:"_left_12wa1_60",right:"_right_12wa1_64",icon:"_icon_12wa1_69",dots:"_dots_12wa1_74",dot:"_dot_12wa1_74",active:"_active_12wa1_92",cell:"_cell_12wa1_97"},Mr=({children:e,index:t})=>{const o=r.useMemo(()=>({index:t}),[t]),{LocalRoot:s}=B.useLocalTheme();return n.jsx(s,{theme:o,className:V.cell,children:e})},jr=({amount:e,active:t})=>{const o=r.useMemo(()=>Array.from(Array(e)),[e]);return n.jsx("div",{className:V.dots,children:o.map((s,a)=>{const i=a===t;return n.jsx("div",{className:d(V.dot,{[V.active]:i})},a)})})},Zr=e=>{const[t,o]=r.useState(!1),s=r.useMemo(()=>new IntersectionObserver(([a])=>o(a.isIntersecting)),[]);return r.useEffect(()=>(e.current&&s.observe(e.current),()=>{s.disconnect()}),[e,s]),t},Pr=()=>{const[e,t]=r.useState(document.visibilityState);return r.useEffect(()=>{const o=()=>t(document.visibilityState);return document.addEventListener("visibilitychange",o),()=>document.removeEventListener("visibilitychange",o)},[]),e==="visible"},Hr=({rotateFn:e,interval:t=null,ref:o})=>{const s=Zr(o),a=Pr();zt({callback:e,interval:t,condition:!!t&&s&&a})},mt=(e,t)=>e%t>=0?e%t:t+e%t,Vo=r.forwardRef(({children:e,className:t,width:o,height:s,defaultVisible:a=0,showDots:i=!0,showArrows:l=!0,autoRotate:c,onRotate:u=()=>{},...g},p)=>{var D;const v=a!==0?a-1:a,[f,_]=r.useState(v),b=r.Children.toArray(e).length,{LocalRoot:w,ref:y}=B.useLocalTheme();K(p,y);const k=r.useRef(null),[N,m]=r.useState(o),[$,S]=r.useState(s),A=r.useCallback(L=>{const H=L==null?void 0:L.offsetWidth;if(H&&H<N){const yt=s*(H/o);m(H),S(yt)}else H&&H>N&&(m(o),S(s))},[N,s,o]);Dr((D=y.current)==null?void 0:D.parentElement,A);const I=r.useMemo(()=>({width:N,height:$,"cells-amount":b,rotations:f}),[N,$,b,f]),F=mt(f,b),q=r.useCallback(()=>{const L=f+1;_(L),u(mt(L,b))},[f,u,b]),O=r.useCallback(()=>{const L=f-1;_(L),u(mt(L,b))},[f,u,b]),Z=r.useCallback(()=>{_(f+1)},[f,_]);Hr({rotateFn:Z,interval:c&&c*1e3,ref:y});const ae=r.useMemo(()=>r.Children.toArray(e).map((L,H)=>n.jsx(Mr,{index:H,children:L},H)),[e]);return n.jsxs(w,{...g,theme:I,className:d(V.carousel,t),children:[n.jsxs("div",{className:V.scene,children:[l&&n.jsx("button",{className:d(V.navigation,V.left),onClick:O,children:n.jsx(qn,{className:V.icon})}),n.jsx("div",{className:V.viewport,ref:k,children:ae}),l&&n.jsx("button",{className:d(V.navigation,V.right),onClick:q,children:n.jsx(Ln,{className:V.icon})})]}),i&&n.jsx(jr,{amount:r.Children.toArray(e).length,active:F})]})});Vo.displayName="Carousel";const Wr=e=>{const[t,o]=r.useState(void 0),[s,a]=r.useState(void 0);return ge(()=>{const{current:i}=e;if(i){const l=i.scrollHeight>i.clientHeight,c=i.scrollWidth>i.clientWidth;o(l),a(c)}},[e]),{overflowY:t,overflowX:s}},re={tabs:"_tabs_6g1a3_1",viewport:"_viewport_6g1a3_11",header:"_header_6g1a3_17","overflow-indicator":"_overflow-indicator_6g1a3_29",overflowIndicator:"_overflow-indicator_6g1a3_29",content:"_content_6g1a3_51",button:"_button_6g1a3_55",selected:"_selected_6g1a3_76",icon:"_icon_6g1a3_83",tab:"_tab_6g1a3_1"},Qr=({tabName:e,onClick:t,icon:o,activeName:s})=>{const a=r.useCallback(()=>{t(e)},[t,e]);return n.jsxs("button",{type:"button",onClick:a,className:d(re.button,{[re.selected]:s===e}),children:[o&&n.jsx(o,{className:re.icon}),e]},e)},Go=r.forwardRef(({children:e,className:t,selected:o,width:s,height:a,onToggle:i=()=>{},...l},c)=>{const{LocalRoot:u,ref:g}=B.useLocalTheme();K(c,g);const p=r.useMemo(()=>{let m={};return a&&(m={...m,height:a}),s&&(m={...m,width:s}),m},[a,s]),v=r.useMemo(()=>o||r.Children.toArray(e)[0].props.name,[e,o]),[f,_]=r.useState(v);r.useEffect(()=>{_(o||v)},[o,v]);const b=r.useCallback(m=>{_(m),i(m)},[i]),w=r.useMemo(()=>r.Children.map(e,m=>({tabName:m.props.name,icon:m.props.icon})),[e]),y=r.useMemo(()=>r.Children.toArray(e).find(m=>m.props.name===f),[e,f]),k=r.useRef(null),{overflowX:N}=Wr(k);return n.jsxs(u,{...l,theme:p,className:d(re.tabs,t),children:[n.jsxs("div",{className:re.viewport,children:[n.jsx("header",{ref:k,className:re.header,children:w.map(({tabName:m,icon:$})=>n.jsx(Qr,{icon:$,onClick:b,tabName:m,activeName:f},m))}),N&&n.jsx("div",{className:re["overflow-indicator"],children:n.jsx(zn,{})})]}),n.jsx("div",{className:re.content,children:y})]})});Go.displayName="Tabs";const Vr=({children:e})=>{const t=r.useRef(null);return n.jsx(er,{nodeRef:t,show:!0,children:n.jsx("div",{ref:t,className:re.tab,children:e})})},he={reference:"_reference_vjfqs_1",provider:"_provider_vjfqs_7",menu:"_menu_vjfqs_11",bordered:"_bordered_vjfqs_19",plain:"_plain_vjfqs_24",row:"_row_vjfqs_29","action-button":"_action-button_vjfqs_31",actionButton:"_action-button_vjfqs_31"};var fe=(e=>(e.bordered="bordered",e.plain="plain",e))(fe||{});const bt=r.forwardRef(({children:e,className:t,isOpen:o=!1,content:s,referenceClassName:a,onToggle:i=()=>{},trapFocus:l=!0,alignWidth:c=!0,variant:u=fe.plain,...g},p)=>{const[v,f]=r.useState(o);r.useEffect(()=>{f(o)},[o,f]),r.useEffect(()=>{i(v)},[v,i]);const{refs:_,floatingStyles:b}=Y.useFloating({strategy:"fixed",whileElementsMounted:Y.autoUpdate,middleware:[c&&Y.size({apply({rects:N,elements:m}){Object.assign(m.floating.style,{width:`${N.reference.width}px`})}}),Y.offset(18),Y.autoPlacement()]}),{LocalRoot:w}=B.useLocalTheme(),{getTheme:y}=B.useRootTheme(),k=r.useCallback(()=>{f(!1)},[f]);return et(k,_.reference,v),Ve(_.floating.current,v,l),n.jsxs(r.Fragment,{children:[n.jsx("div",{ref:_.setReference,className:d(he.reference,a),children:e}),v&&n.jsx(Oe,{children:n.jsx("div",{ref:_.setFloating,style:b,children:n.jsx(w,{className:he.provider,theme:y(),children:n.jsx("div",{...g,ref:p,className:d(he.menu,{[he.bordered]:u===fe.bordered,[he.plain]:u===fe.plain},t),children:s})})})})]})});bt.displayName="Menu";const Gr=({children:e,actions:t=[],variant:o=fe.bordered,...s})=>{const a={[fe.plain]:ve.inverted,[fe.bordered]:ve.primary}[o];return n.jsx(bt,{...s,variant:o,content:n.jsx(Ct,{variant:a,actions:t,classNameRow:he.row,classNameAction:he.actionButton}),alignWidth:!1,children:e})},se={reference:"_reference_1ibx3_1",unfocusable:"_unfocusable_1ibx3_7",provider:"_provider_1ibx3_11",tooltip:"_tooltip_1ibx3_15",arrow:"_arrow_1ibx3_27",top:"_top_1ibx3_39",bottom:"_bottom_1ibx3_46",left:"_left_1ibx3_52",right:"_right_1ibx3_59"},Uo=r.forwardRef(({placement:e,left:t,top:o},s)=>{const a=e.split("-")[0],{LocalRoot:i,ref:l}=B.useLocalTheme(),c=r.useMemo(()=>{const u={};return o&&(u.top=o),t&&(u.left=t),u},[t,o]);return K(s,l),n.jsx(i,{theme:c,className:d(se.arrow,{[se.bottom]:a==="bottom",[se.left]:a==="left",[se.top]:a==="top",[se.right]:a==="right"})})});Uo.displayName="Arrow";const Ko=r.forwardRef(({children:e,className:t,isOpen:o=!1,content:s,referenceClassName:a,onToggle:i=()=>{},interactive:l=!0,placement:c="bottom",...u},g)=>{var $,S;const[p,v]=r.useState(o);r.useEffect(()=>{v(o)},[o,v]),r.useEffect(()=>{i(p)},[p,i]);const f=r.useRef(null),{refs:_,floatingStyles:b,middlewareData:w,placement:y}=Y.useFloating({strategy:"fixed",placement:c,whileElementsMounted:Y.autoUpdate,middleware:[Y.offset(18),Y.flip(),Y.arrow({element:f})]}),{LocalRoot:k}=B.useLocalTheme(),{getTheme:N}=B.useRootTheme(),m=r.useCallback(()=>{v(!1)},[v]);return et(m,_.reference,p),Ve(_.floating.current,p,l),n.jsxs(r.Fragment,{children:[n.jsx("div",{ref:_.setReference,className:d(se.reference,a),children:e}),p&&n.jsx(Oe,{children:n.jsx("div",{ref:_.setFloating,style:b,className:d({[se.unfocusable]:!l}),children:n.jsx(k,{className:se.provider,theme:N(),children:n.jsxs("div",{...u,ref:g,className:d(se.tooltip,t),children:[n.jsx(Uo,{ref:f,placement:y,left:($=w.arrow)==null?void 0:$.x,top:(S=w.arrow)==null?void 0:S.y}),s]})})})})]})});Ko.displayName="Tooltip";const P={pagination:"_pagination_g2vb7_1",buttons:"_buttons_g2vb7_10","page-button":"_page-button_g2vb7_17",pageButton:"_page-button_g2vb7_17",active:"_active_g2vb7_43",ellipsis:"_ellipsis_g2vb7_49",navigation:"_navigation_g2vb7_63","navigation-block":"_navigation-block_g2vb7_73",navigationBlock:"_navigation-block_g2vb7_73",input:"_input_g2vb7_81",error:"_error_g2vb7_102","navigation-button":"_navigation-button_g2vb7_112",navigationButton:"_navigation-button_g2vb7_112",icon:"_icon_g2vb7_115"},We=({pageNumber:e,onClick:t=()=>{},isActive:o})=>{const s=r.useCallback(()=>{t(e)},[t,e]);return n.jsx("button",{disabled:o,className:d(P.pageButton,{[P.active]:o}),onClick:s,children:e})},Ur=(e,t)=>{switch(t){case 1:return[t+1,t+2,t+3];case 2:return[t,t+1,t+2];case e:return[t-3,t-2,t-1];case e-1:return[t-2,t-1,t];default:return[t-1,t,t+1]}},Kr=(e,t)=>{const[o,s]=r.useState(t),a=1,i=e,l=Ur(e,o),c=o+1<=e?o+1:1,u=o-1>=1?o-1:e,g=e>7,p=e.toString().length+1,v=r.useCallback(f=>f===null?!0:f>=1&&f<=e,[e]);return{first:a,last:i,visible:l,setSelectedPage:s,selectedPage:o,nextPage:c,previousPage:u,isLong:g,maxDigits:p,checkValidity:v}},Xo=r.forwardRef(({children:e,className:t,totalPages:o,onPageSelect:s,selectedPage:a,showNavigation:i=!0,showPageButtons:l=!0,...c},u)=>{const{visible:g,first:p,last:v,selectedPage:f,setSelectedPage:_,nextPage:b,previousPage:w,isLong:y,maxDigits:k,checkValidity:N}=Kr(o,a),[m,$]=r.useState(f);r.useEffect(()=>{_(a)},[a,_]);const S=r.useCallback(D=>{_(D),s(D)},[s,_]),A=r.useCallback(()=>{_(b),s(b)},[b,s,_]),I=r.useCallback(()=>{_(w),s(w)},[s,w,_]),F=r.useCallback(D=>{const L=D.target.value!==""?parseInt(D.target.value):null;$(L)},[$]),q=r.useCallback(()=>{N(m)&&m!==null&&S(m)},[N,S,m]),O=r.useCallback(D=>{D.key==="Enter"&&N(m)&&m!==null&&S(m)},[N,S,m]),{LocalRoot:Z}=B.useLocalTheme(),ae=r.useMemo(()=>({digits:k}),[k]);return n.jsxs("div",{...c,className:d(P.pagination,t),ref:u,children:[l&&n.jsxs("div",{className:P.buttons,children:[!y&&Wo(o).map((D,L)=>{const yt=L+1===f;return n.jsx(We,{isActive:yt,onClick:S,pageNumber:L+1},L)}),y&&n.jsxs(r.Fragment,{children:[n.jsx(We,{isActive:p===f,onClick:S,pageNumber:p}),n.jsx("div",{className:P.ellipsis,children:"…"}),g.map(D=>{const L=D===f;return n.jsx(We,{isActive:L,onClick:S,pageNumber:D},D)}),n.jsx("div",{className:P.ellipsis,children:"…"}),n.jsx(We,{isActive:v===f,onClick:S,pageNumber:v})]})]}),i&&n.jsxs(Z,{className:P.navigation,theme:ae,children:[n.jsxs("div",{className:P.navigationBlock,children:[n.jsx("button",{onClick:I,className:P.navigationButton,children:n.jsx(Hn,{className:P.icon})}),n.jsx("button",{onClick:A,className:P.navigationButton,children:n.jsx(Zn,{className:P.icon})})]}),n.jsxs("div",{className:P.navigationBlock,children:[n.jsx("input",{className:d(P.input,{[P.error]:!N(m)}),min:p,max:v,pattern:"[0-9]{10}",step:"1",size:k,type:"number",defaultValue:f,onChange:F,onKeyUp:O}),n.jsx("button",{disabled:!N(m)||m===null,className:P.navigationButton,onClick:q,children:n.jsx(Qn,{className:P.icon})})]})]})]})});Xo.displayName="Pagination";const _e={card:"_card_12vxl_3",vertical:"_vertical_12vxl_10",horizontal:"_horizontal_12vxl_16",body:"_body_12vxl_23","header-image":"_header-image_12vxl_31",headerImage:"_header-image_12vxl_31",actions:"_actions_12vxl_54",row:"_row_12vxl_63","action-button":"_action-button_12vxl_74",actionButton:"_action-button_12vxl_74"},Yo=r.forwardRef(({children:e,className:t,headerImageUrl:o,actions:s=[],id:a,variant:i="vertical",width:l,height:c,...u},g)=>{const p=U(a),{LocalRoot:v,ref:f}=B.useLocalTheme();K(g,f);const _=r.useMemo(()=>({width:l?`${l}px`:"auto",height:c?`${c}px`:"auto"}),[c,l]);return n.jsxs(v,{...u,theme:_,id:p,className:d(_e.card,{[_e.vertical]:i==="vertical",[_e.horizontal]:i==="horizontal"},t),children:[o&&n.jsx(gt,{className:_e.headerImage,src:o}),n.jsx("div",{className:_e.body,children:e}),n.jsx("footer",{className:_e.actions,children:n.jsx(Le,{actions:s,classNameAction:_e.actionButton,classNameRow:_e.row})})]})});Yo.displayName="Card";const Xr=e=>{const[t,o]=r.useState(!1);return r.useEffect(()=>{const s=window.matchMedia;if(!s)return;const a=s(e);a.matches!==t&&o(a.matches);const i=()=>o(a.matches);return window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[t,e]),t},Q={"nav-panel":"_nav-panel_1ll5p_3",navPanel:"_nav-panel_1ll5p_3",name:"_name_1ll5p_14","nav-list":"_nav-list_1ll5p_26",navList:"_nav-list_1ll5p_26",vertical:"_vertical_1ll5p_34",shift:"_shift_1ll5p_39",current:"_current_1ll5p_43",horizontal:"_horizontal_1ll5p_54","button-collapsible":"_button-collapsible_1ll5p_71",buttonCollapsible:"_button-collapsible_1ll5p_71","icon-collapsible":"_icon-collapsible_1ll5p_81",iconCollapsible:"_icon-collapsible_1ll5p_81","nav-link":"_nav-link_1ll5p_87",navLink:"_nav-link_1ll5p_87","nav-link-icon":"_nav-link-icon_1ll5p_107",navLinkIcon:"_nav-link-icon_1ll5p_107"},Jo=r.forwardRef(({children:e,className:t,layout:o="vertical",collapsible:s=!0,collapsibleLabel:a="Toggle menu",...i},l)=>{const c=Xr("(width >= 640px)"),u=s&&!c&&o==="horizontal",{openDrawer:g,isOpen:p,closeDrawer:v}=nt("foo"),f=r.useCallback(()=>{!p&&g(),p&&v()},[v,p,g]);return u?n.jsxs(r.Fragment,{children:[n.jsx("button",{type:"button",onClick:f,className:Q.buttonCollapsible,"aria-label":a,children:n.jsx(Yn,{className:Q.iconCollapsible})}),n.jsx(rt,{id:"foo",children:n.jsx("div",{...i,className:d(Q.navList,Q.vertical,t),ref:l,children:e})})]}):n.jsx("div",{...i,className:d(Q.navList,Q.full,{[Q.vertical]:o==="vertical",[Q.horizontal]:o==="horizontal"},t),ref:l,children:e})});Jo.displayName="NavList";const Ro=r.forwardRef(({title:e,as:t="a",href:o,icon:s,shift:a=!1,className:i,isCurrent:l,...c},u)=>n.jsxs(t,{...c,ref:u,title:e,className:d(Q.navLink,{[Q.shift]:a,[Q.current]:l},i),href:o,children:[s&&n.jsx("span",{children:n.jsx(s,{className:Q.navLinkIcon,title:e})}),n.jsx("span",{className:Q.navLinkTitle,children:e})]}));Ro.displayName="NavLink";const wt=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("h1",{...o,className:d(Q.name,t),ref:s,children:e}));wt.displayName="NavBrand";const en=r.forwardRef(({children:e,className:t,name:o="Koval App",...s},a)=>n.jsxs("div",{...s,className:d(Q.navPanel,t),ref:a,children:[o&&n.jsx(wt,{children:o}),e]}));en.displayName="NavPanel";const Qe={wrapper:"_wrapper_uonwh_1",label:"_label_uonwh_8",progress:"_progress_uonwh_28",dashed:"_dashed_uonwh_41","animate-progress":"_animate-progress_uonwh_1",animateProgress:"_animate-progress_uonwh_1"},tn=r.forwardRef(({max:e=100,value:t,className:o,variant:s="plain",label:a,id:i,...l},c)=>{const u=U(i);return n.jsxs("div",{className:Qe.wrapper,children:[a&&n.jsxs("label",{className:Qe.label,htmlFor:u,children:[a,":"]}),n.jsx("progress",{...l,id:u,max:e,value:t,className:d(Qe.progress,{[Qe.dashed]:s==="dashed"},o),ref:c})]})});tn.displayName="Progress";const Ie={breadcrumbs:"_breadcrumbs_npnn6_1",crumb:"_crumb_npnn6_12",text:"_text_npnn6_24",icon:"_icon_npnn6_34",ellipsis:"_ellipsis_npnn6_71"},Yr=(e,t)=>{if(t){const[o,...s]=e;return[o,n.jsx("div",{className:Ie.ellipsis,children:"…"},"ellypsis"),...s]}else return e},on=r.forwardRef(({className:e,items:t,showEllipsis:o=!1,...s},a)=>{const i=t.map(({name:l,url:c,icon:u})=>n.jsxs("a",{title:l,className:Ie.crumb,href:c,children:[u&&n.jsx(u,{className:Ie.icon}),n.jsx("span",{className:Ie.text,children:l})]},l));return n.jsx("div",{...s,className:d(Ie.breadcrumbs,e),ref:a,children:Yr(i,o)})});on.displayName="Breadcrumbs";const kt={"button-group":"_button-group_1v18u_1",buttonGroup:"_button-group_1v18u_1",horizontal:"_horizontal_1v18u_10",vertical:"_vertical_1v18u_14"},nn=r.forwardRef(({children:e,className:t,layout:o="horizontal",...s},a)=>n.jsx("div",{...s,className:d(kt.buttonGroup,{[kt.horizontal]:o==="horizontal",[kt.vertical]:o==="vertical"},t),ref:a,children:e}));nn.displayName="ButtonGroup",h.A=mo,h.B=ft,h.BlockQuote=Fo,h.Breadcrumbs=on,h.Button=Gt,h.ButtonGroup=nn,h.Card=Yo,h.Carousel=Vo,h.Code=Io,h.Col=Ae,h.Content=Vt,h.Del=No,h.Dialog=qt,h.Dl=go,h.Drawer=rt,h.Em=ko,h.Figure=Zo,h.Footer=Ht,h.Form=Lr,h.FormField=Xt,h.Grid=st,h.H1=To,h.H2=Lo,h.H3=vt,h.H4=Bo,h.H5=zo,h.H6=Oo,h.Header=Qt,h.I=wo,h.InputCheckbox=Rt,h.InputColor=ro,h.InputDate=no,h.InputFile=io,h.InputGroup=eo,h.InputNumber=co,h.InputRadio=to,h.InputRange=lo,h.InputText=oo,h.InputTime=so,h.Ins=$o,h.Kbd=Eo,h.Main=Pt,h.Mark=yo,h.Menu=bt,h.MenuActions=Gr,h.Meter=Mo,h.NavBrand=wt,h.NavLink=Ro,h.NavList=Jo,h.NavPanel=en,h.Notification=fr,h.Ol=vo,h.P=ho,h.Page=Zt,h.Pagination=Xo,h.Picture=gt,h.Pre=Ao,h.Progress=tn,h.Provider=Cr,h.Row=$e,h.S=qo,h.Select=uo,h.Sidebar=Wt,h.SkeletonAction=Po,h.SkeletonFrame=Ho,h.SkeletonShape=de,h.SkeletonText=Qo,h.Small=xo,h.Strong=bo,h.Sub=Co,h.Sup=So,h.Tab=Vr,h.Table=Do,h.Tabs=Go,h.Text=po,h.Textarea=_o,h.Toast=Dt,h.Tooltip=Ko,h.Ul=fo,h.themeDnipro=ln,h.themePodil=xt,h.useDialogState=It,h.useDrawerState=nt,h.useFormActions=Ut,h.useFormSelectors=ct,h.useNotificationState=Bt,h.useToastState=At,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
1
+ (function(p,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("react/jsx-runtime"),require("react"),require("css-vars-hook"),require("classnames"),require("awesome-debounce-promise"),require("@floating-ui/react-dom"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","css-vars-hook","classnames","awesome-debounce-promise","@floating-ui/react-dom","react-dom"],n):(p=typeof globalThis<"u"?globalThis:p||self,n(p["Library name"]={},p.JsxRuntime,p.React,p.CssVarsHook,p.ClassNames,p.AwesomeDebouncePromise,p.reactDom$1,p.reactDom))})(this,function(p,n,r,q,d,rn,Y,sn){"use strict";function an(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,s.get?s:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const S=an(r),N={fontFamily:`-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
2
+ "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"`,fontFamilyMonospace:'"SF Mono", "Courier New", FreeMono, "Nimbus Mono PS", Cousine, monospace',sizeUnit:"6px",inputWidth:"240px",inputHeight:"38px",fontSizeH1:"36px",fontSizeH2:"28px",fontSizeH3:"24px",fontSizeH4:"22px",fontSizeH5:"18px",fontSizeH6:"16px",fontSizeText:"16px",fontSizeMedium:"16px",fontSizeLarge:"18px",fontSizeSmall:"14px",fontSizeExtraSmall:"12px",fontWeightNormal:400,fontWeightBolder:500,fontWeightBold:600,textColor:"#111111",background000:"white",background100:"#dedede",background200:"#bdbdbd",background300:"#808080",background400:"#525252",background500:"#363636",background600:"#000000",colorDo:"#e3a075",colorRe:"#61483a",colorMi:"#ffdea6",colorFa:"#20b2aa",colorSol:"#597480",colorLa:"#99DFFF",colorError:"#FF004F",colorWarning:"#FFC72C",colorSuccess:"#3c9d74",colorAction:"#2100FF",shadowColor:"color-mix(in srgb, var(--kg-background-600) 11%, transparent)",shadow050:"3px 3px 3px 0 var(--kg-shadow-color)",shadow100:"6px 6px 3px 0 var(--kg-shadow-color)",shadow200:"9px 9px 3px 0 var(--kg-shadow-color)",textShadow:"1px 1px 1px rgb(0 0 0 / 66%)",borderRadius100:"2px",borderRadius200:"3px",borderRadius300:"6px",borderRadius400:"9px",borderRadius500:"12px",borderWidth100:"1px",borderWidth200:"2px",borderWidth300:"3px",timeSM:"333ms",timeMD:"666ms",timeLG:"999ms",timeXL:"1666ms"},Nt={fontFamily:N.fontFamily,fontFamilyMonospace:N.fontFamilyMonospace,fontSizeH1:N.fontSizeH1,fontSizeH2:N.fontSizeH2,fontSizeH3:N.fontSizeH3,fontSizeH4:N.fontSizeH4,fontSizeH5:N.fontSizeH5,fontSizeH6:N.fontSizeH6,fontSizeText:N.fontSizeText,fontSizeMedium:N.fontSizeMedium,fontSizeLarge:N.fontSizeLarge,fontSizeSmall:N.fontSizeSmall,fontWeightNormal:N.fontWeightNormal,fontWeightBolder:N.fontWeightBolder,fontWeightBold:N.fontWeightBold,textColor:N.textColor,background000:N.background000,background100:N.background100,background200:N.background200,background300:N.background300,background400:N.background400,background500:N.background500,background600:N.background600,colorDo:N.colorDo,colorRe:N.colorRe,colorMi:N.colorMi,colorFa:N.colorFa,colorSol:N.colorSol,colorLa:N.colorLa,colorError:N.colorError,colorWarning:N.colorWarning,colorSuccess:N.colorSuccess,colorAction:N.colorAction},ln={fontFamily:N.fontFamily,fontFamilyMonospace:N.fontFamilyMonospace,fontSizeH1:N.fontSizeH1,fontSizeH2:N.fontSizeH2,fontSizeH3:N.fontSizeH3,fontSizeH4:N.fontSizeH4,fontSizeH5:N.fontSizeH5,fontSizeH6:N.fontSizeH6,fontSizeText:N.fontSizeText,fontSizeMedium:N.fontSizeMedium,fontSizeLarge:N.fontSizeLarge,fontSizeSmall:N.fontSizeSmall,fontWeightNormal:N.fontWeightNormal,fontWeightBolder:N.fontWeightBolder,fontWeightBold:N.fontWeightBold,textColor:N.textColor,background000:N.background000,background100:N.background100,background200:N.background200,background300:N.background300,background400:N.background400,background500:N.background500,background600:N.background600,colorDo:N.colorFa,colorRe:N.colorSol,colorMi:N.colorLa,colorFa:N.colorDo,colorSol:N.colorRe,colorLa:N.colorMi,colorError:N.colorError,colorWarning:N.colorWarning,colorSuccess:N.colorSuccess,colorAction:N.colorAction},ue=e=>{const t=r.useRef(null);return r.useImperativeHandle(e,()=>t.current,[t]),t},B={icon:"_icon_1orse_1",rotation:"_rotation_1orse_14",spin:"_spin_1orse_1",error:"_error_1orse_18",valid:"_valid_1orse_22",loading:"_loading_1orse_26"},cn=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"M479.75-255q24.25 0 39.75-14.75 15.5-14.76 15.5-39Q535-333 519.75-349q-15.26-16-39.5-16-24.25 0-39.75 15.98T425-308.79q0 24.25 15.25 39.02Q455.51-255 479.75-255ZM436-432h94v-270h-94v270Zm44.4 377q-88.87 0-166.12-33.08-77.25-33.09-135.18-91.02-57.93-57.93-91.02-135.12Q55-391.41 55-480.36q0-88.96 33.08-166.29 33.09-77.32 90.86-134.81 57.77-57.48 135.03-91.01Q391.24-906 480.28-906t166.49 33.45q77.44 33.46 134.85 90.81t90.89 134.87Q906-569.34 906-480.27q0 89.01-33.53 166.25t-91.01 134.86q-57.49 57.62-134.83 90.89Q569.28-55 480.4-55Zm.1-94q137.5 0 234-96.37T811-480.5q0-137.5-96.31-234T479.5-811q-137.5 0-234 96.31T149-479.5q0 137.5 96.37 234T480.5-149Zm-.5-331Z"})),J=({className:e,...t})=>n.jsx(cn,{className:d(B.icon,B.error,e),...t}),dn=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"M378-222 130-470l68-68 180 180 383-383 68 68-451 451Z"})),ee=({className:e,...t})=>n.jsx(dn,{className:d(B.icon,B.valid,e),...t}),_n=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"M480-55q-90.2 0-167.57-32.58-77.37-32.57-134.82-90.03-57.46-57.45-90.03-134.82Q55-389.8 55-480q0-89.87 32.56-167.25 32.57-77.37 89.87-135.11 57.31-57.74 134.79-90.69Q389.7-906 480-906v95q-138.33 0-234.66 96.27Q149-618.46 149-480.23 149-342 245.27-245.5t234.5 96.5Q618-149 714.5-245.34 811-341.67 811-480h95q0 90.3-33.01 167.79-33.02 77.5-90.5 134.85Q725-120 647.5-87.5 570.01-55 480-55Z"})),te=({className:e,...t})=>n.jsx(_n,{className:d(B.icon,B.rotation,B.loading,e),...t}),un=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"M767-319.26Q767-206 684.32-130.5 601.65-55 487.32-55 373-55 291-130.5T209-319v-396q0-81.42 59.5-136.21Q328-906 409.76-906q81.77 0 141 54.79Q610-796.42 610-715v376q0 48.91-36.5 82.95Q537-222 487.15-222q-49.84 0-85.5-33.72Q366-289.44 366-339v-370h87v370q0 13 10.29 21.5t24.64 8.5q14.35 0 24.71-8.35Q523-325.7 523-339v-375q1-45.26-33-75.13Q456-819 409.79-819q-46.21 0-80 29.43T296-715v396q1 77.25 57.47 127.63Q409.94-141 489-141q77.67 0 134.83-50.5Q681-242 680-319v-419h87v418.74Z"})),fn=({className:e,...t})=>n.jsx(un,{className:d(B.icon,e),...t}),pn=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"M434-394v-92h92v92h-92Zm-160 0v-92h92v92h-92Zm320 0v-92h92v92h-92ZM434-234v-92h92v92h-92Zm-160 0v-92h92v92h-92Zm320 0v-92h92v92h-92ZM95-55v-791h150.2v-60H327v60h306v-60h82.2v60H866v791H95Zm94-94h582v-421H189v421Zm0-481h582v-121H189v121Zm0 0v-121 121Z"})),hn=({className:e,...t})=>n.jsx(pn,{className:d(B.icon,e),...t}),vn=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"M480-55q-87.04 0-164.52-33.5T180-180q-58-58-91.5-135.46Q55-392.92 55-479.93 55-570 88.45-647.28q33.44-77.27 92.5-135Q240-840 318.77-873t168.61-33q83.62 0 159.41 28.46 75.79 28.45 133.5 79Q838-748 872-678.8q34 69.2 34 149.8 0 114-64 187t-178 73h-58q-16 0-28 13t-12 29q0 25 10 35t10 31q0 44-29.8 75T480-55Zm0-425Zm-224 26q20 0 35-15t15-35q0-20-15-35t-35-15q-20 0-35 15t-15 35q0 20 15 35t35 15Zm121.5-163q20.5 0 35.5-15t15-35q0-21-15-35.5T378-717q-21 0-35.5 14.5t-14.5 35q0 20.5 14.5 35.5t35 15Zm205 0q20.5 0 35.5-15t15-35q0-21-15-35.5T583-717q-21 0-35.5 14.5t-14.5 35q0 20.5 14.5 35.5t35 15ZM707-454q20 0 35-15t15-35q0-20-15-35t-35-15q-21 0-35.5 15T657-504q0 20 14.5 35t35.5 15ZM476-149q7.75 0 11.88-3.55 4.12-3.54 4.12-12.01 0-14.44-15-23.69-15-9.25-15-47.75 0-49.17 32.98-88.09Q527.96-363 576.75-363H664q74 0 110.5-44T811-523q0-132-98.59-210-98.6-78-224.83-78-141.68 0-240.13 96.37Q149-618.26 149-479.52 149-342 244.96-245.5T476-149Z"})),gn=({className:e,...t})=>n.jsx(vn,{className:d(B.icon,e),...t}),mn=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"M585-285 433-437v-214h94v174.41L651-353l-66 68ZM433-726v-124h94v124h-94Zm293 293v-94h124v94H726ZM433-110v-125h94v125h-94ZM110-433v-94h125v94H110ZM480.4-55q-88.87 0-166.12-33.08-77.25-33.09-135.18-91.02-57.93-57.93-91.02-135.12Q55-391.41 55-480.36q0-88.96 33.08-166.29 33.09-77.32 90.86-134.81 57.77-57.48 135.03-91.01Q391.24-906 480.28-906t166.49 33.45q77.44 33.46 134.85 90.81t90.89 134.87Q906-569.34 906-480.27q0 89.01-33.53 166.25t-91.01 134.86q-57.49 57.62-134.83 90.89Q569.28-55 480.4-55Zm.1-94q137.5 0 234-96.37T811-480.5q0-137.5-96.31-234T479.5-811q-137.5 0-234 96.31T149-479.5q0 137.5 96.37 234T480.5-149Zm-.5-331Z"})),bn=({className:e,...t})=>n.jsx(mn,{className:d(B.icon,e),...t}),wn=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"M480-56 216-320l67-67 197 196 197-196 67 67L480-56ZM283-572l-67-68 264-264 264 264-66 68-198-197-197 197Z"})),kn=({className:e,...t})=>n.jsx(wn,{className:d(B.icon,e),...t}),yn=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"m290-61-66-66 256-256 256 256-66 66-190-190L290-61Zm190-517L224-834l66-66 190 190 190-190 66 66-256 256Z"})),Nn=({className:e,...t})=>n.jsx(yn,{className:d(B.icon,e),...t}),$n=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"m239-383 241-242 241 242H239Z"})),Cn=({className:e,...t})=>n.jsx($n,{className:d(B.icon,e),...t}),Sn=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"M480-336 239-576h482L480-336Z"})),En=({className:e,...t})=>n.jsx(Sn,{className:d(B.icon,e),...t}),xn=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"m249-183-66-66 231-231-231-231 66-66 231 231 231-231 66 66-231 231 231 231-66 66-231-231-231 231Z"})),$t=({className:e,...t})=>n.jsx(xn,{className:d(B.icon,e),...t}),In=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"M577-239 336-480l241-241v482Z"})),Tn=({className:e,...t})=>n.jsx(In,{className:d(B.icon,e),...t}),zn=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"M383-239v-482l241 241-241 241Z"})),Ln=({className:e,...t})=>n.jsx(zn,{className:d(B.icon,e),...t}),qn=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"m294-135-66-66 104-103H55v-95h277L228-503l66-66 218 217-218 217Zm372-257L449-609l217-217 66 66-103 104h277v95H629l103 103-66 66Z"})),Bn=({className:e,...t})=>n.jsx(qn,{className:d(B.icon,e),...t}),On=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"m18-107 462-799 462 799H18Zm145-84h634L480-739 163-191Zm321.18-48q13.4 0 23.61-10.39Q518-259.78 518-273.18q0-13.4-10.39-23.11-10.39-9.71-23.79-9.71-13.4 0-23.61 9.89Q450-286.22 450-272.82q0 13.4 10.39 23.61Q470.78-239 484.18-239ZM454-348h60v-216h-60v216Zm26-117Z"})),Fn=({className:e,...t})=>n.jsx(On,{className:d(B.icon,e),...t}),An=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"M442-269h82v-251h-82v251Zm38.07-310q20.43 0 34.18-13.51Q528-606.03 528-626q0-21.95-13.79-35.47Q500.41-675 480.02-675q-21.52 0-34.77 13.53Q432-647.95 432-626.5q0 20.6 13.82 34.05Q459.64-579 480.07-579Zm.33 524q-88.87 0-166.12-33.08-77.25-33.09-135.18-91.02-57.93-57.93-91.02-135.12Q55-391.41 55-480.36q0-88.96 33.08-166.29 33.09-77.32 90.86-134.81 57.77-57.48 135.03-91.01Q391.24-906 480.28-906t166.49 33.45q77.44 33.46 134.85 90.81t90.89 134.87Q906-569.34 906-480.27q0 89.01-33.53 166.25t-91.01 134.86q-57.49 57.62-134.83 90.89Q569.28-55 480.4-55Zm.1-94q137.5 0 234-96.37T811-480.5q0-137.5-96.31-234T479.5-811q-137.5 0-234 96.31T149-479.5q0 137.5 96.37 234T480.5-149Zm-.5-331Z"})),Dn=({className:e,...t})=>n.jsx(An,{className:d(B.icon,e),...t}),Mn=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"m419-283 294-294-66-66-228 228-111-111-65 66 176 177Zm61.14 228Q392-55 314.51-88.08q-77.48-33.09-135.41-91.02-57.93-57.93-91.02-135.27Q55-391.72 55-479.86 55-569 88.08-646.49q33.09-77.48 90.86-134.97 57.77-57.48 135.19-91.01Q391.56-906 479.78-906q89.22 0 166.83 33.45 77.6 33.46 135.01 90.81t90.89 134.87Q906-569.34 906-480q0 88.28-33.53 165.75t-91.01 135.28q-57.49 57.8-134.83 90.89Q569.28-55 480.14-55Zm-.14-94q138 0 234.5-96.37T811-480q0-138-96.5-234.5t-235-96.5q-137.5 0-234 96.5t-96.5 235q0 137.5 96.37 234T480-149Zm0-331Z"})),Ct=({className:e,...t})=>n.jsx(Mn,{className:d(B.icon,e),...t}),Zn=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"M693-193v-574h94v574h-94Zm-520 0v-574l417 287-417 287Zm94-287Zm0 108 156-108-156-108v216Z"})),Pn=({className:e,...t})=>n.jsx(Zn,{className:d(B.icon,e),...t}),Hn=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"M173-193v-574h94v574h-94Zm614 0L370-480l417-287v574Zm-94-287Zm0 108v-216L537-480l156 108Z"})),Wn=({className:e,...t})=>n.jsx(Hn,{className:d(B.icon,e),...t}),Qn=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"M394-95 135-357l257-258 68 67-145 146h376v-424h95v518H316l145 146-67 67Z"})),jn=({className:e,...t})=>n.jsx(Qn,{className:d(B.icon,e),...t}),Vn=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"M320-95 95-320v-321l225-225h321l225 225v321L641-95H320Zm41-216 119-119 119 119 51-50-120-119 120-119-51-51-119 120-119-120-50 51 119 119-119 119 50 50Zm-2 122h242l170-170v-242L601-771H359L189-601v242l170 170Zm121-291Z"})),Gn=({className:e,...t})=>n.jsx(Vn,{className:d(B.icon,e),...t}),Un=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"M439-255H280q-94.11 0-159.56-65.42Q55-385.84 55-479.7q0-93.85 65.44-160.07Q185.89-706 280-706h159v95H280.43q-55.51 0-93.47 37.76-37.96 37.77-37.96 93Q149-425 186.96-387q37.96 38 93.47 38H439v94ZM308-444v-72h344v72H308Zm213 189v-94h158.57q55.51 0 93.47-37.76 37.96-37.77 37.96-93Q811-535 773.04-573q-37.96-38-93.47-38H521v-95h159q93.79 0 159.9 66.15 66.1 66.15 66.1 160T839.9-320.5Q773.79-255 680-255H521Z"})),Kn=({className:e,...t})=>n.jsx(Un,{className:d(B.icon,e),...t}),Xn=e=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,viewBox:"0 -960 960 960",...e},S.createElement("path",{d:"M95-203v-95h771v95H95Zm0-230v-94h771v94H95Zm0-229v-95h771v95H95Z"})),Yn=({className:e,...t})=>n.jsx(Xn,{className:d(B.icon,e),...t});var Te=(e=>(e.keydown="keydown",e.mousedown="mousedown",e.animationend="animationend",e))(Te||{});const ze=(e,t,o)=>{const s=o??window,a=r.useRef(t);r.useEffect(()=>{a.current=t},[t]),r.useEffect(()=>{if(s==null)return;const i=l=>a.current(l);return s.addEventListener(e,i),()=>s.removeEventListener(e,i)},[e,s])},Ve=(e,t,o=!0)=>{const s=r.useRef(null),[a,i]=r.useState([]);r.useEffect(()=>{if(o&&t){s.current=e==null?void 0:e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');const c=s.current?s.current[0]:null,u=s.current?s.current[s.current.length-1]:null;i([c,u])}},[t,e,o]),r.useEffect(()=>{var c;o&&t&&((c=a[0])==null||c.focus())},[o,a,t]);const l=r.useCallback(c=>{const[u,g]=a;o&&t&&c.key==="Tab"&&(c.shiftKey&&document.activeElement===u?(c.preventDefault(),g.focus()):!c.shiftKey&&document.activeElement===g&&(c.preventDefault(),u.focus()))},[o,a,t]);ze(Te.keydown,l)};var oe=(e=>(e.default="default",e.success="success",e.link="link",e.danger="danger",e))(oe||{});const G={row:"_row_1e28o_3","action-button":"_action-button_1e28o_13",actionButton:"_action-button_1e28o_13","action-label":"_action-label_1e28o_49",actionLabel:"_action-label_1e28o_49","action-icon":"_action-icon_1e28o_50",actionIcon:"_action-icon_1e28o_50",default:"_default_1e28o_68",link:"_link_1e28o_72",success:"_success_1e28o_76",danger:"_danger_1e28o_80"},Ge=({title:e,icon:t,type:o="default",onClick:s=()=>{},className:a})=>{const i=r.useMemo(()=>t??{[oe.success]:Ct,[oe.danger]:Gn,[oe.link]:Kn,[oe.default]:void 0}[o],[t,o]),l=r.useCallback(c=>{s(c)},[s]);return n.jsxs("button",{title:e,onClick:l,className:d(G.actionButton,{[G.default]:o===oe.default,[G.link]:o===oe.link,[G.success]:o===oe.success,[G.danger]:o===oe.danger},a),children:[i&&n.jsx(i,{className:G.actionIcon}),e&&n.jsx("span",{className:G.actionLabel,children:e})]})},Le=({actions:e=[],classNameRow:t,classNameAction:o,actionComponent:s=Ge})=>{const a=r.useId();return e.map((i,l)=>{if(Array.isArray(i)){const[c,u]=i;return n.jsxs("div",{className:d(G.row,t),children:[n.jsx(s,{...c,className:d(G.actionButton,o)}),n.jsx(s,{...u,className:d(G.actionButton,o)})]},`${a}-${l}`)}else return n.jsx("div",{className:d(G.row,t),children:n.jsx(s,{...i,className:d(G.actionButton,o)})},`${a}-${l}`)})};var ve=(e=>(e.primary="primary",e.inverted="inverted",e))(ve||{});const qe={actions:"_actions_1096t_5","action-row":"_action-row_1096t_8",actionRow:"_action-row_1096t_8","primary-action":"_primary-action_1096t_9",primaryAction:"_primary-action_1096t_9","inverted-action":"_inverted-action_1096t_10",invertedAction:"_inverted-action_1096t_10"},St=r.forwardRef(({children:e,className:t,actions:o=[],variant:s=ve.primary,classNameAction:a,classNameRow:i,...l},c)=>n.jsx("div",{...l,className:d(qe.actions,t),ref:c,children:n.jsx(Le,{actions:o,classNameAction:d({[qe.primaryAction]:s===ve.primary,[qe.invertedAction]:s===ve.inverted},a),classNameRow:d(qe.actionRow,i)})}));St.displayName="Actions";const Jn=()=>{const e=r.useRef(!0);return e.current?(e.current=!1,!0):e.current};function Rn(){return!!(globalThis!=null&&globalThis.document)}const ge=Rn()?r.useLayoutEffect:r.useEffect,Ne=({show:e=!1,children:t,exitClassName:o="transition-exit",exitDoneClassName:s="transition-exit-done",enterClassName:a="transition-enter",enterDoneClassName:i="transition-enter-done",nodeRef:l,unmountNode:c,onExit:u=()=>{},onEnter:g=()=>{}})=>{const f=Jn(),[v,h]=r.useState(e);ge(()=>{e&&h(e)},[e]);const _=r.useMemo(()=>({enter:a.split(" "),exit:o.split(" "),exitDone:s.split(" "),enterDone:i.split(" ")}),[a,i,o,s]);return ge(()=>{var w,y,k,$,m,C;e?((w=l.current)==null||w.classList.add(..._.enter),(y=l.current)==null||y.classList.remove(..._.exit),(k=l.current)==null||k.classList.remove(..._.exitDone)):(($=l.current)==null||$.classList.add(..._.exit),(m=l.current)==null||m.classList.remove(..._.enter),(C=l.current)==null||C.classList.remove(..._.enterDone))},[_,l,e,v,f]),ze("animationend",()=>{var w,y,k,$;e&&v?(g(),(w=l.current)==null||w.classList.remove(..._.enter),(y=l.current)==null||y.classList.add(..._.enterDone)):v&&(u(),(k=l.current)==null||k.classList.remove(..._.exit),($=l.current)==null||$.classList.add(..._.exitDone),h(!1))},l.current),(v||!c)&&t},Z={"fade-enter":"_fade-enter_1f6bz_31",fadeEnter:"_fade-enter_1f6bz_31","fade-in":"_fade-in_1f6bz_1",fadeIn:"_fade-in_1f6bz_1","fade-exit":"_fade-exit_1f6bz_35",fadeExit:"_fade-exit_1f6bz_35","fade-out":"_fade-out_1f6bz_1",fadeOut:"_fade-out_1f6bz_1","slide-top-enter":"_slide-top-enter_1f6bz_57",slideTopEnter:"_slide-top-enter_1f6bz_57","slide-top":"_slide-top_1f6bz_57",slideTop:"_slide-top_1f6bz_57","backdrop-fade":"_backdrop-fade_1f6bz_95",backdropFade:"_backdrop-fade_1f6bz_95","slide-top-exit":"_slide-top-exit_1f6bz_65",slideTopExit:"_slide-top-exit_1f6bz_65","backdrop-fade-enter":"_backdrop-fade-enter_1f6bz_95",backdropFadeEnter:"_backdrop-fade-enter_1f6bz_95","backdrop-fade-exit":"_backdrop-fade-exit_1f6bz_101",backdropFadeExit:"_backdrop-fade-exit_1f6bz_101","slide-bottom-enter":"_slide-bottom-enter_1f6bz_138",slideBottomEnter:"_slide-bottom-enter_1f6bz_138","slide-in-bottom":"_slide-in-bottom_1f6bz_1",slideInBottom:"_slide-in-bottom_1f6bz_1","slide-bottom-exit":"_slide-bottom-exit_1f6bz_142",slideBottomExit:"_slide-bottom-exit_1f6bz_142","slide-out-bottom":"_slide-out-bottom_1f6bz_1",slideOutBottom:"_slide-out-bottom_1f6bz_1","slide-bottom-enter-done":"_slide-bottom-enter-done_1f6bz_146",slideBottomEnterDone:"_slide-bottom-enter-done_1f6bz_146","slide-bottom-exit-done":"_slide-bottom-exit-done_1f6bz_150",slideBottomExitDone:"_slide-bottom-exit-done_1f6bz_150","slide-left-enter":"_slide-left-enter_1f6bz_181",slideLeftEnter:"_slide-left-enter_1f6bz_181","slide-in-left":"_slide-in-left_1f6bz_1",slideInLeft:"_slide-in-left_1f6bz_1","slide-left-enter-done":"_slide-left-enter-done_1f6bz_186",slideLeftEnterDone:"_slide-left-enter-done_1f6bz_186","slide-left-exit":"_slide-left-exit_1f6bz_190",slideLeftExit:"_slide-left-exit_1f6bz_190","slide-out-left":"_slide-out-left_1f6bz_1",slideOutLeft:"_slide-out-left_1f6bz_1","slide-left-exit-done":"_slide-left-exit-done_1f6bz_194",slideLeftExitDone:"_slide-left-exit-done_1f6bz_194","slide-right-enter":"_slide-right-enter_1f6bz_224",slideRightEnter:"_slide-right-enter_1f6bz_224","slide-in-right":"_slide-in-right_1f6bz_1",slideInRight:"_slide-in-right_1f6bz_1","slide-right-enter-done":"_slide-right-enter-done_1f6bz_229",slideRightEnterDone:"_slide-right-enter-done_1f6bz_229","slide-right-exit":"_slide-right-exit_1f6bz_233",slideRightExit:"_slide-right-exit_1f6bz_233","slide-out-right":"_slide-out-right_1f6bz_1",slideOutRight:"_slide-out-right_1f6bz_1","slide-right-exit-done":"_slide-right-exit-done_1f6bz_237",slideRightExitDone:"_slide-right-exit-done_1f6bz_237"},er=({children:e,unmountNode:t=!0,...o})=>n.jsx(Ne,{...o,exitClassName:Z.fadeExit,enterClassName:Z.fadeEnter,unmountNode:t,children:e}),tr=({children:e,unmountNode:t=!0,...o})=>n.jsx(Ne,{...o,unmountNode:t,exitClassName:Z.slideBottomExit,exitDoneClassName:Z.slideBottomExitDone,enterClassName:Z.slideBottomEnter,enterDoneClassName:Z.slideBottomEnterDone,children:e}),or=({children:e,unmountNode:t=!0,...o})=>n.jsx(Ne,{...o,unmountNode:t,exitClassName:Z.slideLeftExit,enterClassName:Z.slideLeftEnter,enterDoneClassName:Z.slideLeftEnterDone,exitDoneClassName:Z.slideLeftExitDone,children:e}),nr=({children:e,unmountNode:t=!0,...o})=>n.jsx(Ne,{...o,unmountNode:t,exitClassName:Z.slideRightExit,enterClassName:Z.slideRightEnter,enterDoneClassName:Z.slideRightEnterDone,exitDoneClassName:Z.slideRightExitDone,children:e}),rr=({children:e,...t})=>n.jsx(Ne,{...t,exitClassName:d(Z.slideTopExit,Z.backdropFadeExit),enterClassName:d(Z.slideTopEnter,Z.backdropFadeEnter),children:e}),sr=e=>e[e.length-1],Ue=(e,t)=>t.filter(o=>o!==e);var Ke=(e=>(e.DIALOG_CLOSE="DIALOG_CLOSE",e.DIALOG_OPEN="DIALOG_OPEN",e))(Ke||{});const Xe={open:[]},ar=(e=Xe,t)=>{switch(t.type){case"DIALOG_CLOSE":{const{id:o}=t,s=Ue(o,e.open);return{...e,open:s}}case"DIALOG_OPEN":{const{id:o}=t;return{...e,open:[...e.open,o]}}default:return e}},Et=r.createContext({state:Xe,dispatch:()=>{}}),xt=()=>r.useContext(Et),lr=e=>{const{state:t}=xt();return e(t)},It=e=>{const{dispatch:t}=xt(),o=r.useCallback(()=>{t({type:Ke.DIALOG_OPEN,id:e})},[e,t]),s=r.useCallback(()=>{t({type:Ke.DIALOG_CLOSE,id:e})},[e,t]),a=lr(l=>sr(l.open));return{openDialog:o,closeDialog:s,isOpen:e===a}},le={"no-scroll":"_no-scroll_1d973_4",noScroll:"_no-scroll_1d973_4",dialog:"_dialog_1d973_8",flex:"_flex_1d973_27",header:"_header_1d973_34",body:"_body_1d973_3",actions:"_actions_1d973_54",row:"_row_1d973_60"},Tt=r.forwardRef(({children:e,className:t,closeOnClickOutside:o=!0,showCloseButton:s=!0,onToggle:a=()=>{},id:i,actions:l=[],dialogTitle:c,closeLabel:u="Close",trapFocus:g=!0,...f},v)=>{const h=ue(v),{isOpen:_,closeDialog:b}=It(i);Ve(h.current,_,g),r.useEffect(()=>{var m;_&&((m=h.current)==null||m.showModal(),document.body.classList.add(le.noScroll)),a(_)},[h,a,_]);const w=r.useCallback(()=>{a(!1),b()},[b,a]),y=r.useCallback(m=>{m.target.nodeName==="DIALOG"&&o&&w()},[h,w,o]),k=r.useCallback(m=>{m.code==="Escape"&&w()},[w]),$=r.useCallback(()=>{var m;(m=h.current)==null||m.close(),document.body.classList.remove(le.noScroll)},[h]);return n.jsx(rr,{unmountNode:!0,show:_,nodeRef:h,onExit:$,children:n.jsx("dialog",{...f,id:i,onKeyDown:k,onClick:y,className:d(le.dialog,t),ref:h,children:n.jsxs("div",{className:le.flex,children:[c&&n.jsx("header",{className:d(le.header,t),children:n.jsx(vt,{children:c})}),n.jsx("div",{className:d(le.body,t),children:e}),n.jsxs("footer",{className:le.actions,children:[n.jsx(Le,{actions:l}),s&&n.jsx("div",{className:le.row,children:n.jsx(Ge,{onClick:w,icon:$t,title:u})},`${i}-close`)]})]})})})});Tt.displayName="Dialog";const Be=({initialState:e,reducer:t,context:o})=>({children:s})=>{const{Provider:a}=o,[i,l]=r.useReducer(t,e),c=r.useMemo(()=>({state:i,dispatch:l}),[i]);return n.jsx(a,{value:c,children:s})},ir=Be({context:Et,reducer:ar,initialState:Xe});var me=(e=>(e.NOTIFICATION_CLOSE="NOTIFICATION_CLOSE",e.NOTIFICATION_OPEN="NOTIFICATION_OPEN",e.NOTIFICATION_REGISTER="NOTIFICATION_REGISTER",e.NOTIFICATION_RE_OPEN="NOTIFICATION_RE_OPEN",e))(me||{});const Ye={open:[],props:{},instances:{}},cr=(e,t)=>{const o={...e};return delete o[t],o},dr=(e=Ye,t)=>{switch(t.type){case"NOTIFICATION_CLOSE":{const{id:o}=t,s=Ue(o,e.open),a=cr(e.instances,o);return{...e,open:s,instances:a}}case"NOTIFICATION_REGISTER":{const{id:o,props:s}=t;return{...e,props:{...e.props,[o]:s}}}case"NOTIFICATION_OPEN":{const{id:o,instance:s}=t;return{...e,open:[...Ue(o,e.open),o],instances:{...e.instances,[o]:s}}}default:return e}},zt=r.createContext({state:Ye,dispatch:()=>{}}),$e=()=>r.useContext(zt),_r=()=>{const{dispatch:e}=$e();return r.useCallback((t,o)=>{e({id:t,props:o,type:me.NOTIFICATION_REGISTER})},[e])},ur=e=>{const{state:t}=$e();return t.props[e]},fr=e=>{const{state:t}=$e();return t.instances[e]},pr=e=>{const{state:t}=$e();return e(t)},Lt=e=>new window.Notification(e.title,{icon:e.icon,body:e.body,requireInteraction:e.requireInteraction}),qt=e=>{const{dispatch:t}=$e(),o=fr(e),s=ur(e),a=pr(f=>f.open.some(v=>v===e)),[i,l]=r.useState(),c=r.useCallback(()=>{t({type:me.NOTIFICATION_CLOSE,id:e})},[t,e]);r.useEffect(()=>(o==null||o.addEventListener("close",c),()=>{o==null||o.removeEventListener("close",c)}),[c,o]);const u=r.useCallback(()=>{var v,h;const f=(v=window==null?void 0:window.Notification)==null?void 0:v.permission;a&&(o==null||o.close()),f==="granted"?(t({type:me.NOTIFICATION_OPEN,id:e,instance:Lt(s)}),l(f)):f!=="denied"?(h=window==null?void 0:window.Notification)==null||h.requestPermission().then(_=>{l(_),_==="granted"&&t({type:me.NOTIFICATION_OPEN,id:e,instance:Lt(s)})}):f==="denied"&&l(f)},[t,e,o,a,s]),g=r.useCallback(()=>{o==null||o.close(),t({type:me.NOTIFICATION_CLOSE,id:e})},[t,e,o]);return{openNotification:u,closeNotification:g,isOpen:a,permission:i}},hr=({id:e,title:t,icon:o,body:s,requireInteraction:a,onToggle:i=()=>{},onDenied:l=()=>{}})=>{const c=_r(),{isOpen:u,permission:g}=qt(e);return r.useEffect(()=>{c(e,{title:t,icon:o,body:s,requireInteraction:a})},[e,t,o,s,a,c]),r.useEffect(()=>{i(u)},[u,i]),r.useEffect(()=>{g==="denied"&&l()},[l,g]),n.jsx(r.Fragment,{})},vr=Be({context:zt,reducer:dr,initialState:Ye}),Oe=({children:e})=>{const t=r.useId(),[o,s]=r.useState(!1);return ge(()=>{if(!o){const a=document.createElement("div");a.id=t,document.body.appendChild(a),s(!0)}return()=>{o&&document.getElementById(t).remove()}},[t,o]),o&&sn.createPortal(e,document.getElementById(t),t)},Bt=({callback:e,interval:t,condition:o=!0})=>{const s=r.useRef();r.useEffect(()=>{s.current=e},[e]),r.useEffect(()=>{let a;return t!==null&&o&&(a=setInterval(()=>{var l;(l=s.current)==null||l.call(s)},t)),()=>{a&&clearInterval(a)}},[o,t])};var Je=(e=>(e.TOAST_CLOSE="TOAST_CLOSE",e.TOAST_OPEN="TOAST_OPEN",e))(Je||{});const Re={open:""},gr=(e=Re,t)=>{switch(t.type){case"TOAST_CLOSE":{const{id:o}=t,s=e.open===o?"":e.open;return{...e,open:s}}case"TOAST_OPEN":{const{id:o}=t;return{...e,open:o}}default:return e}},Ot=r.createContext({state:Re,dispatch:()=>{}}),Ft=()=>r.useContext(Ot),mr=e=>{const{state:t}=Ft();return e(t)},At=e=>{const{dispatch:t}=Ft(),o=r.useCallback(()=>{t({type:Je.TOAST_OPEN,id:e})},[e,t]),s=r.useCallback(()=>{t({type:Je.TOAST_CLOSE,id:e})},[e,t]),a=mr(l=>l.open);return{openToast:o,closeToast:s,isOpen:e===a}},Q={toast:"_toast_1elna_30",success:"_success_1elna_43",error:"_error_1elna_47",warning:"_warning_1elna_51","enter-active":"_enter-active_1elna_56",enterActive:"_enter-active_1elna_56","slide-in-bottom":"_slide-in-bottom_1elna_1",slideInBottom:"_slide-in-bottom_1elna_1","exit-active":"_exit-active_1elna_60",exitActive:"_exit-active_1elna_60","slide-out-bottom":"_slide-out-bottom_1elna_1",slideOutBottom:"_slide-out-bottom_1elna_1",title:"_title_1elna_64",content:"_content_1elna_74",left:"_left_1elna_83",icon:"_icon_1elna_89",body:"_body_1elna_95",provider:"_provider_1elna_100",actions:"_actions_1elna_106",row:"_row_1elna_112","action-button":"_action-button_1elna_117",actionButton:"_action-button_1elna_117"},Dt=r.forwardRef(({children:e,className:t,actions:o=[],icon:s,variant:a="default",title:i,body:l,onToggle:c=()=>{},id:u,autoClose:g=null,closeLabel:f="Close",...v},h)=>{const{isOpen:_,closeToast:b}=At(u),{LocalRoot:w}=q.useLocalTheme(),{getTheme:y}=q.useRootTheme(),k=s||{default:Dn,error:J,success:Ct,warning:Fn}[a];r.useEffect(()=>{c(_)},[_,c]);const $=typeof g=="number",m=$?g*1e3:null;Bt({callback:b,interval:m,condition:$});const C=ue(h);return n.jsx(Oe,{children:n.jsx(tr,{show:_,nodeRef:C,children:n.jsx(w,{className:Q.provider,theme:y(),children:n.jsxs("div",{...v,className:d(Q.toast,{[Q.success]:a==="success",[Q.warning]:a==="warning",[Q.error]:a==="error"},t),ref:C,children:[n.jsxs("div",{className:Q.content,children:[n.jsx("div",{className:Q.left,children:n.jsx(k,{className:Q.icon})}),n.jsxs("div",{className:Q.right,children:[n.jsx("div",{className:Q.title,children:i}),l&&n.jsx("div",{className:Q.body,children:l})]})]}),n.jsxs("footer",{className:Q.actions,children:[n.jsx(Le,{actions:o,classNameAction:Q.actionButton}),n.jsx("div",{className:Q.row,children:n.jsx(Ge,{className:Q.actionButton,onClick:b,icon:$t,title:f})},`${u}-close`)]})]})})})})});Dt.displayName="Toast";const br=Be({context:Ot,reducer:gr,initialState:Re}),et=(e,t,o)=>{const s=r.useCallback(i=>{o&&i.key==="Escape"&&e()},[e,o]);ze(Te.keydown,s);const a=r.useCallback(i=>{o&&i.target.contains(t.current)&&e()},[e,o,t]);ze(Te.mousedown,a)},Fe={provider:"_provider_k4kc6_1",drawer:"_drawer_k4kc6_5",left:"_left_k4kc6_16",right:"_right_k4kc6_21",brand:"_brand_k4kc6_27"};var tt=(e=>(e.DRAWER_CLOSE="DRAWER_CLOSE",e.DRAWER_OPEN="DRAWER_OPEN",e))(tt||{});const ot={open:void 0},wr=(e=ot,t)=>{switch(t.type){case"DRAWER_CLOSE":{const{id:o}=t,s=o===e.open?void 0:e.open;return{...e,open:s}}case"DRAWER_OPEN":{const{id:o}=t;return{...e,open:o}}default:return e}},Mt=r.createContext({state:ot,dispatch:()=>{}}),Zt=()=>r.useContext(Mt),kr=e=>{const{state:t}=Zt();return e(t)},nt=e=>{const{dispatch:t}=Zt(),o=r.useCallback(()=>{t({type:tt.DRAWER_OPEN,id:e})},[e,t]),s=r.useCallback(()=>{t({type:tt.DRAWER_CLOSE,id:e})},[e,t]),a=kr(l=>l.open);return{openDrawer:o,closeDrawer:s,isOpen:e===a}},rt=r.forwardRef(({children:e,className:t,placement:o="left",id:s,...a},i)=>{const l=ue(i),{isOpen:c,closeDrawer:u}=nt(s),{getTheme:g}=q.useRootTheme(),{LocalRoot:f}=q.useLocalTheme(),v=r.useMemo(()=>({left:or,right:nr})[o],[o]);return et(u,l,c),n.jsx(Oe,{children:n.jsx(v,{show:c,nodeRef:l,children:n.jsx(f,{theme:g(),className:Fe.provider,children:n.jsx("div",{...a,className:d(Fe.drawer,{[Fe.left]:o==="left",[Fe.right]:o==="right"},t),ref:l,children:e})})})})});rt.displayName="Drawer";const yr=Be({context:Mt,reducer:wr,initialState:ot}),Nr=e=>`kg-${e.replace(new RegExp("(?<![A-Z])[A-Z]","g"),t=>`-${t.toLowerCase()}`).replace(new RegExp("(?<=\\D)\\d","g"),t=>`-${t}`).toLowerCase()}`,$r=e=>{const t=Object.entries(e).map(([o,s])=>[Nr(o),s]);return Object.fromEntries(t)},Cr={provider:"_provider_1i5dn_1"},Sr=({children:e,theme:t=Nt})=>{const o=r.useMemo(()=>$r({...N,...t}),[t]);return n.jsx(q.RootThemeProvider,{theme:o,className:Cr.provider,children:n.jsx(ir,{children:n.jsx(vr,{children:n.jsx(br,{children:n.jsx(yr,{children:e})})})})})},K=(e,t)=>{const o=r.useRef(null),s=t||o;r.useImperativeHandle(e,()=>s.current,[s])};var X=(e=>(e.xs="xs",e.sm="sm",e.md="md",e.lg="lg",e.xl="xl",e))(X||{});const M={vars:"_vars_1h1fy_3",grid:"_grid_1h1fy_20",row:"_row_1h1fy_29",column:"_column_1h1fy_38",xs:"_xs_1h1fy_49",sm:"_sm_1h1fy_56",md:"_md_1h1fy_63",lg:"_lg_1h1fy_70",xl:"_xl_1h1fy_77","fluid-xs":"_fluid-xs_1h1fy_84",fluidXs:"_fluid-xs_1h1fy_84","fluid-sm":"_fluid-sm_1h1fy_90",fluidSm:"_fluid-sm_1h1fy_90","fluid-md":"_fluid-md_1h1fy_96",fluidMd:"_fluid-md_1h1fy_96","fluid-lg":"_fluid-lg_1h1fy_102",fluidLg:"_fluid-lg_1h1fy_102","fluid-xl":"_fluid-xl_1h1fy_108",fluidXl:"_fluid-xl_1h1fy_108",page:"_page_1h1fy_115",header:"_header_1h1fy_126",sticky:"_sticky_1h1fy_127",content:"_content_1h1fy_133",main:"_main_1h1fy_139",footer:"_footer_1h1fy_146",aside:"_aside_1h1fy_150"},Er=e=>Object.fromEntries(Object.entries(e).filter(([t,o])=>o!==void 0)),Ae=r.forwardRef(({as:e="div",children:t,className:o,xs:s,sm:a,md:i,lg:l,xl:c,shiftXS:u,shiftSM:g,shiftMD:f,shiftLG:v,shiftXL:h,..._},b)=>{const{LocalRoot:w,ref:y}=q.useLocalTheme();K(b,y);const k=r.useMemo(()=>Er({[X.xs]:s??"",[X.sm]:a??"",[X.md]:i??"",[X.lg]:l??"",[X.xl]:c??"",[`shift-${X.xs}`]:u??"",[`shift-${X.sm}`]:g??"",[`shift-${X.md}`]:f??"",[`shift-${X.lg}`]:v??"",[`shift-${X.xl}`]:h??""}),[s,a,i,l,c,u,g,f,v,h]);return n.jsx(w,{..._,theme:k,as:e,className:d(M.column,{[M.xs]:!!s,[M.sm]:!!a,[M.md]:!!i,[M.lg]:!!l,[M.xl]:!!c,[M["fluid-xs"]]:s==="fluid",[M["fluid-sm"]]:a==="fluid",[M["fluid-md"]]:i==="fluid",[M["fluid-lg"]]:l==="fluid",[M["fluid-xl"]]:c==="fluid"},o),children:t})});Ae.displayName="Col";const Ce=r.forwardRef(({className:e,children:t,as:o="div",...s},a)=>{const{LocalRoot:i,ref:l}=q.useLocalTheme();return K(a,l),n.jsx(i,{...s,as:o,className:d(M.row,e),children:t})});Ce.displayName="Row";const xr=e=>e==="fluid"?"100%":`${e}px`,st=r.forwardRef(({width:e=1280,className:t,as:o="div",children:s,gap:a=16,base:i=12,...l},c)=>{const{LocalRoot:u,ref:g}=q.useLocalTheme();K(c,g);const f=r.useMemo(()=>({"container-width":xr(e),base:i,gap:`${a}px`}),[e,a,i]);return n.jsx(u,{...l,theme:f,as:o,className:d(M.grid,t),children:s})});st.displayName="Grid";const Pt=r.forwardRef(({width:e="fluid",className:t,as:o="div",children:s,gap:a=0,base:i=12,...l},c)=>n.jsx(st,{...l,width:e,ref:c,className:d(M.page,t),as:o,gap:a,base:i,children:s}));Pt.displayName="Page";const Ht=r.forwardRef(({children:e,className:t,xs:o="fluid",sm:s,md:a,lg:i,xl:l,...c},u)=>n.jsx(Ae,{...c,as:"main",ref:u,xs:o,sm:s,md:a,lg:i,xl:l,className:d(M.main,t),children:e}));Ht.displayName="Main";const Wt=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx(Ce,{...o,ref:s,className:d(M.footer,t),children:e}));Wt.displayName="Footer";const Qt=r.forwardRef(({children:e,className:t,xs:o,sm:s,md:a,lg:i,xl:l,...c},u)=>n.jsx(Ae,{...c,as:"aside",xs:o,sm:s,md:a,lg:i,xl:l,ref:u,className:d(M.aside,t),children:e}));Qt.displayName="Sidebar";const jt=r.forwardRef(({children:e,sticky:t=!1,className:o,...s},a)=>n.jsx(Ce,{...s,as:"header",ref:a,className:d(M.header,{[M.sticky]:t},o),children:e}));jt.displayName="Header";const Vt=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx(Ce,{...o,ref:s,className:d(M.content,t),children:e}));Vt.displayName="Content";const be={button:"_button_1eg4l_1",content:"_content_1eg4l_35",icon:"_icon_1eg4l_36",small:"_small_1eg4l_40",primary:"_primary_1eg4l_60",success:"_success_1eg4l_80",danger:"_danger_1eg4l_102",action:"_action_1eg4l_124",alternative:"_alternative_1eg4l_146",link:"_link_1eg4l_174",medium:"_medium_1eg4l_206",large:"_large_1eg4l_211"},Gt=r.forwardRef(({children:e,onClick:t,type:o="button",disabled:s,variant:a="primary",className:i,prefix:l,suffix:c,size:u="medium",...g},f)=>n.jsxs("button",{...g,ref:f,onClick:t,type:o,className:d(be.button,be[a],be[u],i),disabled:s,children:[l&&n.jsx(l,{className:be.icon}),n.jsx("div",{className:be.content,children:e}),c&&n.jsx(c,{className:be.icon})]}));Gt.displayName="Button";var at=(e=>(e.FORM_SET_PRISTINE="FORM_SET_PRISTINE",e))(at||{});const lt={pristine:!0},Ir=(e=lt,t)=>{switch(t.type){case"FORM_SET_PRISTINE":return{...e,pristine:t.pristine};default:return e}},it=r.createContext({state:lt,dispatch:()=>{}}),Tr=e=>{const{Provider:t}=it,o=r.forwardRef((s,a)=>{const[i,l]=r.useReducer(Ir,lt),c=r.useMemo(()=>({state:i,dispatch:l}),[i]);return n.jsx(t,{value:c,children:n.jsx(e,{...s,ref:a})})});return o.displayName="FormProvider",o},zr={form:"_form_1n8mk_1"},Ut=()=>{const{dispatch:e}=r.useContext(it),t=r.useCallback(()=>{e({type:at.FORM_SET_PRISTINE,pristine:!0})},[e]),o=r.useCallback(()=>{e({type:at.FORM_SET_PRISTINE,pristine:!1})},[e]);return{markAsPristine:t,markAsDirty:o}},ct=()=>{const{state:e}=r.useContext(it);return{pristine:e.pristine}},Kt=r.forwardRef(({className:e,children:t,onSubmit:o=()=>{},onReset:s=()=>{},onChange:a=()=>{},onInvalid:i=()=>{},...l},c)=>{const{markAsPristine:u,markAsDirty:g}=Ut(),f=r.useCallback(k=>{const $=new FormData(k),m={};for(const[C,E]of $.entries())m[C]=E;return m},[]),v=r.useCallback(k=>{k.preventDefault();const $=k.currentTarget,m=f($);o(k,m)},[f,o]),h=r.useCallback(k=>{g();const $=f(k.currentTarget);i(k,$)},[f,g,i]),_=r.useCallback(k=>{const $=f(k.currentTarget);u(),s(k,$)},[f,s,u]),{pristine:b}=ct(),w=r.useCallback(k=>{b&&g();const $=f(k.currentTarget);a(k,$)},[f,a,g,b]),y=ue(c);return n.jsx("form",{...l,autoFocus:!0,onSubmit:v,onInvalid:h,onReset:_,onChange:w,ref:y,className:d(zr.form,e),children:t})});Kt.displayName="Form";const Lr=Tr(Kt),U=e=>{const t=r.useId();return e||t},De={wrapper:"_wrapper_1syjd_1",label:"_label_1syjd_9",required:"_required_1syjd_17",hint:"_hint_1syjd_26"},Xt=r.forwardRef(({className:e,children:t,label:o,hint:s,...a},i)=>{const l=r.Children.only(t).props,c=U(l.id),u=l.id?r.Children.only(t):r.cloneElement(r.Children.only(t),{id:c});return n.jsxs("div",{...a,ref:i,className:d(De.wrapper,e),children:[n.jsx("label",{className:d(De.label,{[De.required]:l.required}),htmlFor:c,children:o}),u,s&&n.jsx("div",{className:De.hint,children:s})]})});Xt.displayName="FormField";var x=(e=>(e.error="error",e.valid="valid",e.inProgress="inProgress",e))(x||{});const R=e=>"",qr=e=>{const{pristine:t}=ct();r.useEffect(()=>{t&&e(null)},[t,e])},Yt=e=>{const t=e&&new FormData(e),o={};if(t)for(const[s,a]of t.entries())o[s]=a;return o},Jt=(e,t)=>t==="interactive"?e.target.checked:e.target.value,ne=({validatorFn:e})=>{const t=e!==R,[o,s]=r.useState(t),a=(e==null?void 0:e.constructor.name)==="AsyncFunction",[i,l]=r.useState(null);qr(l);const c=r.useCallback(_=>{const b=_.target.reportValidity();!b&&!o&&s(!0);const w=o?x.valid:null,y=b?w:x.error;l(y)},[o,l]),u=r.useCallback((_,b)=>{const w=Jt(b,_),y=Yt(b.target.form),k=e==null?void 0:e(w,b.target.validity,y);b.target.setCustomValidity(k),c(b)},[e,c]),g=r.useCallback(rn(e,1e3),[e]),f=r.useCallback(async(_,b)=>{b.target.setCustomValidity("");const w=Jt(b,_),y=Yt(b.target.form);l(x.inProgress);let k="";try{k=await g(w,b.target.validity,y)}catch($){b.target.setCustomValidity($)}b.target.setCustomValidity(k),c(b)},[l,g,c]),v=r.useCallback(_=>a?f("interactive",_):u("interactive",_),[f,u,a]),h=r.useCallback(_=>a?f("textual",_):u("textual",_),[u,a,f]);return{validateInteractive:v,validateTextual:h,validity:i,setValidity:l}},Se={wrapper:"_wrapper_h122z_3",input:"_input_h122z_10",label:"_label_h122z_62",required:"_required_h122z_75",icon:"_icon_h122z_84"},Rt=r.forwardRef(({className:e,disabled:t,value:o,onChange:s=()=>{},onFocus:a=()=>{},onBlur:i=()=>{},onKeyDown:l=()=>{},onKeyUp:c=()=>{},checked:u,defaultChecked:g,id:f,label:v,validatorFn:h=R,required:_,...b},w)=>{const y=U(f),{validateInteractive:k,validity:$,setValidity:m}=ne({validatorFn:h}),C={[x.error]:J,[x.valid]:ee,[x.inProgress]:te}[$],E=r.useCallback(I=>{s(I)},[s]),A=r.useCallback(()=>{m(x.error)},[m]);return n.jsxs("div",{className:d(Se.wrapper,e),children:[n.jsx("input",{...b,className:Se.input,ref:w,disabled:t,type:"checkbox",id:y,value:o,checked:u,defaultChecked:g,onChange:E,onBlur:i,onFocus:a,onKeyUp:c,onKeyDown:l,onInput:k,onInvalid:A,onReset:()=>{console.log("reset!")},required:_}),n.jsx("label",{className:d(Se.label,{[Se.required]:_}),htmlFor:y,children:v}),$&&n.jsx(C,{className:Se.icon})]})});Rt.displayName="InputCheckbox";const Ee={wrapper:"_wrapper_knh8w_1",legend:"_legend_knh8w_7",disabled:"_disabled_knh8w_15",inputs:"_inputs_knh8w_20",hint:"_hint_knh8w_27"},eo=r.forwardRef(({className:e,validation:t,id:o,label:s,children:a,name:i,disabled:l,hint:c,required:u,...g},f)=>{const v=r.useMemo(()=>r.Children.map(a,h=>{if(r.isValidElement(h)){const _={name:i};return l!==void 0&&typeof h.props.disabled!="boolean"&&(_.disabled=l),u!==void 0&&typeof h.props.required!="boolean"&&(_.required=u),r.cloneElement(h,_)}return h}),[a,l,i,u]);return n.jsxs("fieldset",{...g,className:d(Ee.wrapper,e),disabled:l,id:o,ref:f,children:[n.jsx("legend",{className:d(Ee.legend,{[Ee.disabled]:l}),children:s}),n.jsx("div",{className:Ee.inputs,children:v}),c&&n.jsx("div",{className:Ee.hint,children:c})]})});eo.displayName="InputGroup";const Me={wrapper:"_wrapper_khcw5_3",label:"_label_khcw5_10",required:"_required_khcw5_14",input:"_input_khcw5_23",icon:"_icon_khcw5_96"},to=r.forwardRef(({className:e,disabled:t,value:o,onChange:s=()=>{},onFocus:a=()=>{},onBlur:i=()=>{},onKeyDown:l=()=>{},onKeyUp:c=()=>{},checked:u,defaultChecked:g,id:f,label:v,required:h,..._},b)=>{const w=U(f),y=r.useCallback(k=>{s(k)},[s]);return n.jsxs("div",{className:d(Me.wrapper,e),children:[n.jsx("input",{..._,className:Me.input,ref:b,disabled:t,type:"radio",id:w,value:o,checked:u,defaultChecked:g,onChange:y,onBlur:i,onFocus:a,onKeyUp:c,onKeyDown:l,required:h}),n.jsx("label",{className:d(Me.label,{[Me.required]:h}),htmlFor:w,children:v})]})});to.displayName="InputRadio";const dt={wrapper:"_wrapper_1fvml_3",input:"_input_1fvml_20",prefix:"_prefix_1fvml_71"},oo=r.forwardRef(({prefix:e,className:t,type:o="text",placeholder:s="",disabled:a,value:i,onChange:l=()=>{},onFocus:c=()=>{},onBlur:u=()=>{},onKeyDown:g=()=>{},onKeyUp:f=()=>{},defaultValue:v,validatorFn:h=R,readOnly:_,size:b=16,id:w,required:y,...k},$)=>{const{validateTextual:m,validity:C,setValidity:E}=ne({validatorFn:h}),A={[x.error]:J,[x.valid]:ee,[x.inProgress]:te}[C],I=r.useCallback(P=>{l(P)},[l]),F=r.useCallback(()=>{y&&E(x.error)},[y,E]),T=r.useCallback(P=>{_&&P.target.select()},[_]),O=U(w);return n.jsxs("div",{className:d(dt.wrapper,t),children:[e&&n.jsx("label",{className:dt.prefix,htmlFor:O,children:n.jsx(e,{})}),n.jsx("input",{...k,required:y,size:b,id:O,readOnly:_,placeholder:s,className:dt.input,ref:$,disabled:a,type:o,value:i,defaultValue:v,onChange:I,onBlur:u,onFocus:c,onKeyUp:f,onKeyDown:g,onInvalid:F,onInput:m,onSelect:T}),C&&n.jsx(A,{})]})});oo.displayName="InputText";const we={wrapper:"_wrapper_frv0p_3",toggle:"_toggle_frv0p_17",icon:"_icon_frv0p_27",input:"_input_frv0p_37",label:"_label_frv0p_65",validity:"_validity_frv0p_125"},no=r.forwardRef(({id:e,className:t,placeholder:o="YYYY-MM-DD",disabled:s,value:a,onChange:i=()=>{},onFocus:l=()=>{},onBlur:c=()=>{},onKeyDown:u=()=>{},onKeyUp:g=()=>{},defaultValue:f,validatorFn:v=R,...h},_)=>{const b=U(e),w=r.useRef(null),{validateTextual:y,validity:k,setValidity:$}=ne({validatorFn:v}),m={[x.error]:J,[x.valid]:ee,[x.inProgress]:te}[k],C=a??f,E=r.useCallback(O=>{i(O),w!=null&&w.current&&(w.current.innerText=O.target.value)},[i]),A=r.useCallback(()=>{$(x.error)},[$]),I=r.useCallback(O=>{l(O),O.target.showPicker()},[l]),F=r.useCallback(O=>{c(O)},[c]),T=r.useCallback(O=>{y(O)},[y]);return n.jsxs("div",{className:d(we.wrapper,t),children:[n.jsxs("div",{className:we.toggle,children:[n.jsx("input",{...h,id:b,ref:_,className:we.input,type:"date",disabled:s,value:a,defaultValue:f,onChange:E,onInvalid:A,onInput:T,onFocus:I,onBlur:F,onKeyUp:g,onKeyDown:u}),n.jsx("label",{htmlFor:b,className:we.icon,children:n.jsx(hn,{})})]}),n.jsx("label",{htmlFor:b,className:we.label,ref:w,children:C||o}),k&&n.jsx(m,{className:we.validity})]})});no.displayName="InputDate";const xe={wrapper:"_wrapper_1ghkp_3",toggle:"_toggle_1ghkp_18",icon:"_icon_1ghkp_28",input:"_input_1ghkp_45",label:"_label_1ghkp_72",validity:"_validity_1ghkp_129"},_t=(e,t=2)=>(new Array(t).join("0")+e).slice(-t),ut=e=>(255-e).toString(16),ft=(e,t)=>{if(e){if(e.startsWith("#")&&(e=e.slice(1)),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e.length!==6)throw new Error("Invalid HEX color.");const o=parseInt(e.slice(0,2),16),s=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16);return t?o*.299+s*.587+a*.114>186?"#000000":"#FFFFFF":"#"+_t(ut(o))+_t(ut(s))+_t(ut(a))}return""},ro=r.forwardRef(({className:e,placeholder:t="#??????",disabled:o,value:s,onChange:a=()=>{},onFocus:i=()=>{},onBlur:l=()=>{},onKeyDown:c=()=>{},onKeyUp:u=()=>{},defaultValue:g,id:f,predefinedColors:v=[],...h},_)=>{const b=U(f),{LocalRoot:w,setTheme:y}=q.useLocalTheme(),k=s??g,$=r.useMemo(()=>({"selected-color":k,"inverted-color":ft(k,!0)}),[k]),m=r.useCallback(T=>{i(T),y({"selected-color":T.target.value,"inverted-color":ft(T.target.value,!0)})},[i,y]),C=r.useRef(null),E=r.useCallback(T=>{y({"inverted-color":ft(T.target.value,!0)}),C!=null&&C.current&&(C.current.innerText=T.target.value),l(T),a(T)},[y,l,a]),A=r.useCallback(T=>{y({"selected-color":T.target.value,"inverted-color":"transparent"})},[y]),I=v.length>0,F=`${b}_predefinedColors`;return n.jsxs(w,{theme:$,className:d(xe.wrapper,e),children:[n.jsxs("div",{className:xe.toggle,children:[n.jsx("input",{...h,id:b,ref:_,type:"color",disabled:o,defaultValue:k,className:xe.input,onBlur:E,onKeyUp:u,onKeyDown:c,onFocus:m,onChange:A,list:I?F:void 0}),n.jsx(gn,{className:d(xe.icon)})]}),n.jsx("label",{htmlFor:b,className:xe.label,ref:C,children:k.toLowerCase()||t}),I&&n.jsx("datalist",{id:F,children:v.map(T=>n.jsx("option",{value:T},T))})]})});ro.displayName="InputColor";const pt={wrapper:"_wrapper_1tvam_3",input:"_input_1tvam_20",icon:"_icon_1tvam_83"},so=r.forwardRef(({className:e,placeholder:t="",disabled:o,value:s,onChange:a=()=>{},onFocus:i=()=>{},onBlur:l=()=>{},onKeyDown:c=()=>{},onKeyUp:u=()=>{},defaultValue:g,validatorFn:f=R,...v},h)=>{const _=ue(h),{validity:b,setValidity:w,validateTextual:y}=ne({validatorFn:f}),k={[x.error]:J,[x.valid]:ee,[x.inProgress]:te}[b],$=r.useCallback(()=>{w(x.error)},[w]),m=r.useCallback(()=>{var I,F;(I=_.current)==null||I.focus(),(F=_.current)==null||F.showPicker()},[_]),C=r.useCallback(I=>{c(I)},[c]),E=r.useCallback(I=>{u(I)},[u]),A=r.useCallback(I=>{I.target.checkValidity()&&w(x.valid),a(I)},[a,w]);return n.jsxs("div",{className:d(pt.wrapper,e),children:[n.jsx(bn,{tabIndex:-1,onClick:m,className:pt.icon}),n.jsx("input",{...v,type:"time",placeholder:t,className:pt.input,ref:_,disabled:o,value:s,defaultValue:g,onBlur:l,onFocus:i,onKeyUp:E,onKeyDown:C,onInvalid:$,onChange:A,onInput:y}),b&&n.jsx(k,{})]})});so.displayName="InputTime";function ao(e,t=[]){const o=r.useRef(e);return ge(()=>{o.current=e}),r.useCallback((...s)=>{var a;return(a=o.current)==null?void 0:a.call(o,...s)},t)}const Br=e=>typeof e=="function";function Or(e,...t){return Br(e)?e(...t):e}function Fr(e){const{value:t,defaultValue:o,onChange:s,shouldUpdate:a=(h,_)=>h!==_}=e,i=ao(s),l=ao(a),[c,u]=r.useState(o),g=t!==void 0,f=g?t:c,v=r.useCallback(h=>{const _=Or(h,f);l(f,_)&&(g||u(_),i(_))},[g,i,f,l]);return[f,v]}const ie={vars:"_vars_1ny3t_3","input-range":"_input-range_1ny3t_7",inputRange:"_input-range_1ny3t_7",input:"_input_1ny3t_7",scale:"_scale_1ny3t_131",mark:"_mark_1ny3t_149",output:"_output_1ny3t_153","scale-wrapper":"_scale-wrapper_1ny3t_166",scaleWrapper:"_scale-wrapper_1ny3t_166",validation:"_validation_1ny3t_174",prefix:"_prefix_1ny3t_179"},Ar=({min:e,max:t,bars:o,scaleUnit:s})=>{const i=(t-e)/o;return new Array(o+1).fill("").map((c,u)=>{const g=Math.floor(e+i*u);return n.jsx("option",{value:g,label:`- ${g}${s}`,className:ie.mark},u)})},lo=r.forwardRef(({prefix:e,id:t,className:o,disabled:s,value:a,onChange:i=()=>{},onFocus:l=()=>{},onBlur:c=()=>{},onKeyDown:u=()=>{},onKeyUp:g=()=>{},defaultValue:f,validatorFn:v=R,min:h=0,max:_=100,bars:b=5,scaleUnit:w="",...y},k)=>{const{validateTextual:$,validity:m,setValidity:C}=ne({validatorFn:v}),E={[x.error]:J,[x.valid]:ee,[x.inProgress]:te}[m],[A,I]=Fr({value:a,defaultValue:f}),F=r.useCallback(L=>{I(L.target.value),i(L)},[i,I]),T=r.useCallback(()=>{C(x.error)},[C]),O=U(t),P=`${O}-scale`,{LocalRoot:ae}=q.useLocalTheme(),D=r.useMemo(()=>({"output-length":_.toString().length+w.length}),[_,w]);return n.jsxs("div",{className:d(ie["input-range"],o),children:[e&&n.jsx("label",{className:ie.prefix,htmlFor:O,children:n.jsx(e,{})}),n.jsxs("div",{className:ie["scale-wrapper"],children:[n.jsx("input",{...y,id:O,type:"range",className:ie.input,ref:k,disabled:s,value:a,defaultValue:f,onChange:F,onBlur:c,onFocus:l,onKeyUp:g,onKeyDown:u,onInvalid:T,onInput:$,list:P,min:h,max:_}),n.jsx("datalist",{id:P,className:ie.scale,children:Ar({min:Number(h),max:Number(_),bars:b,scaleUnit:w})})]}),n.jsxs(ae,{as:"output",theme:D,className:ie.output,children:[A||Number(_)/2," ",w]}),m&&n.jsx(E,{className:ie.validation})]})});lo.displayName="InputRange";const ke={vars:"_vars_1hlij_3","input-file":"_input-file_1hlij_7",inputFile:"_input-file_1hlij_7",toggle:"_toggle_1hlij_21",input:"_input_1hlij_7",icon:"_icon_1hlij_46",label:"_label_1hlij_54",validity:"_validity_1hlij_115"},io=r.forwardRef(({id:e,className:t,placeholder:o="",disabled:s,value:a,onChange:i=()=>{},onFocus:l=()=>{},onBlur:c=()=>{},onKeyDown:u=()=>{},onKeyUp:g=()=>{},defaultValue:f,size:v=16,...h},_)=>{const{LocalRoot:b}=q.useLocalTheme(),w=r.useMemo(()=>({"input-width":`${v}ch`}),[v]),y=U(e),[k,$]=r.useState(""),{validateTextual:m,validity:C,setValidity:E}=ne({validatorFn:R}),A={[x.error]:J,[x.valid]:ee,[x.inProgress]:te}[C],I=r.useCallback(T=>{i(T),$(T.target.files[0].name)},[i,$]),F=r.useCallback(()=>{$(""),E(x.error)},[E]);return n.jsxs(b,{theme:w,className:d(ke["input-file"],t),children:[n.jsxs("div",{className:ke.toggle,children:[n.jsx("input",{...h,id:y,type:"file",placeholder:o,className:ke.input,ref:_,disabled:s,value:a,defaultValue:f,onChange:I,onBlur:c,onFocus:l,onKeyUp:g,onKeyDown:u,onInvalid:F,onInput:m}),n.jsx(fn,{className:d(ke.icon)})]}),n.jsx("label",{htmlFor:y,className:ke.label,children:k||o}),C&&n.jsx(A,{className:ke.validity})]})});io.displayName="InputFile";const Ze={wrapper:"_wrapper_2ze80_3",input:"_input_2ze80_20",spinner:"_spinner_2ze80_80",validation:"_validation_2ze80_130"},Pe=new Event("change",{bubbles:!0}),co=r.forwardRef(({className:e,placeholder:t="",disabled:o,value:s,onChange:a=()=>{},onFocus:i=()=>{},onBlur:l=()=>{},onKeyDown:c=()=>{},onKeyUp:u=()=>{},defaultValue:g,validatorFn:f=R,size:v=10,step:h=1,..._},b)=>{const{validateTextual:w,validity:y,setValidity:k}=ne({validatorFn:f}),$={[x.error]:J,[x.valid]:ee,[x.inProgress]:te}[y],m=r.useCallback(O=>{a(O)},[a]),C=r.useCallback(()=>{k(x.error)},[k]),E=ue(b),A=r.useCallback(()=>{E.current.stepDown(),E.current.dispatchEvent(Pe),w(Pe)},[E,w]),I=r.useCallback(()=>{E.current.stepUp(),E.current.dispatchEvent(Pe),w(Pe)},[E,w]),{LocalRoot:F}=q.useLocalTheme(),T=r.useMemo(()=>({size:v}),[v]);return n.jsxs(F,{className:d(Ze.wrapper,e),theme:T,children:[n.jsxs("div",{className:Ze.spinner,children:[n.jsx(Cn,{tabIndex:-1,onClick:I}),n.jsx(En,{tabIndex:-1,onClick:A})]}),n.jsx("input",{..._,step:h,size:v,type:"number",placeholder:t,className:Ze.input,ref:E,disabled:o,value:s,defaultValue:g,onChange:m,onBlur:l,onFocus:i,onKeyUp:u,onKeyDown:c,onInvalid:C,onInput:w}),y&&n.jsx($,{className:Ze.validation})]})});co.displayName="InputNumber";const He={vars:"_vars_1l1fj_3",wrapper:"_wrapper_1l1fj_7",textarea:"_textarea_1l1fj_24",prefix:"_prefix_1l1fj_75",validation:"_validation_1l1fj_110"},_o=r.forwardRef(({prefix:e,className:t,placeholder:o="",disabled:s,value:a,onChange:i=()=>{},onFocus:l=()=>{},onBlur:c=()=>{},onKeyDown:u=()=>{},onKeyUp:g=()=>{},defaultValue:f,validatorFn:v=R,id:h,readOnly:_,cols:b=20,rows:w=3,resize:y="both",...k},$)=>{const{validateTextual:m,validity:C,setValidity:E}=ne({validatorFn:v}),A={[x.error]:J,[x.valid]:ee,[x.inProgress]:te}[C],I=r.useCallback(L=>{i(L)},[i]),F=r.useCallback(()=>{E(x.error)},[E]),T=r.useCallback(L=>{m(L)},[m]),O=r.useCallback(L=>{_&&L.target.select()},[_]),P=U(h),{LocalRoot:ae}=q.useLocalTheme(),D=r.useMemo(()=>({resize:y}),[y]);return n.jsxs(ae,{theme:D,className:d(He.wrapper,t),children:[e&&n.jsx("label",{className:He.prefix,htmlFor:P,children:n.jsx(e,{})}),n.jsx("textarea",{...k,cols:b,rows:w,readOnly:_,id:P,placeholder:o,className:He.textarea,ref:$,disabled:s,value:a,defaultValue:f,onChange:I,onBlur:c,onFocus:l,onKeyUp:g,onKeyDown:u,onInvalid:F,onInput:T,onSelect:O}),C&&n.jsx(A,{className:He.validation})]})});_o.displayName="Textarea";const ye={vars:"_vars_qzbqx_5",wrapper:"_wrapper_qzbqx_9",select:"_select_qzbqx_26","icon-wrapper":"_icon-wrapper_qzbqx_30",iconWrapper:"_icon-wrapper_qzbqx_30",icon:"_icon_qzbqx_30",prefix:"_prefix_qzbqx_107",validation:"_validation_qzbqx_146"},uo=r.forwardRef(({prefix:e,className:t,disabled:o,value:s,onChange:a=()=>{},onFocus:i=()=>{},onBlur:l=()=>{},onKeyDown:c=()=>{},onKeyUp:u=()=>{},validatorFn:g=R,id:f,multiple:v,children:h,size:_=16,...b},w)=>{const{LocalRoot:y}=q.useLocalTheme(),k=r.useMemo(()=>({"select-width":`${_}ch`}),[_]),{validateTextual:$,validity:m,setValidity:C}=ne({validatorFn:g}),E={[x.error]:J,[x.valid]:ee,[x.inProgress]:te}[m],A=r.useCallback(W=>{a(W)},[a]),I=r.useCallback(()=>{C(x.error)},[C]),F=U(f),T=ue(w),[O,P]=r.useState("close"),ae={close:Nn,open:kn}[O],D=r.useCallback(W=>{i(W),P("close")},[i,P]),L=r.useCallback(W=>{l(W),P("open")},[l,P]);return n.jsxs(y,{theme:k,className:d(ye.wrapper,t),children:[e&&n.jsx("label",{className:ye.prefix,htmlFor:F,children:n.jsx(e,{})}),n.jsxs("div",{className:ye.iconWrapper,children:[n.jsx("select",{...b,id:F,multiple:v,className:ye.select,ref:T,disabled:o,value:s,onChange:A,onBlur:L,onFocus:D,onKeyUp:u,onKeyDown:c,onInvalid:I,onInput:$,children:h}),!v&&n.jsx(ae,{className:ye.icon})]}),m&&n.jsx(E,{className:ye.validation})]})});uo.displayName="Select";const z={text:"_text_vwn7f_3",header1:"_header1_vwn7f_11",header2:"_header2_vwn7f_22",header3:"_header3_vwn7f_33",header4:"_header4_vwn7f_44",header5:"_header5_vwn7f_55",header6:"_header6_vwn7f_66",paragraph:"_paragraph_vwn7f_77",link:"_link_vwn7f_88",bold:"_bold_vwn7f_99",strong:"_strong_vwn7f_105",italic:"_italic_vwn7f_111",emphasized:"_emphasized_vwn7f_117",marked:"_marked_vwn7f_124",small:"_small_vwn7f_131",deleted:"_deleted_vwn7f_137",inserted:"_inserted_vwn7f_145",subscript:"_subscript_vwn7f_160",superscript:"_superscript_vwn7f_167",ul:"_ul_vwn7f_175",ol:"_ol_vwn7f_176",blockquote:"_blockquote_vwn7f_235","description-list":"_description-list_vwn7f_272",descriptionList:"_description-list_vwn7f_272",keyboard:"_keyboard_vwn7f_292","table-wrapper":"_table-wrapper_vwn7f_312",tableWrapper:"_table-wrapper_vwn7f_312",table:"_table_vwn7f_312",code:"_code_vwn7f_384",preformatted:"_preformatted_vwn7f_393",meter:"_meter_vwn7f_431","strike-through":"_strike-through_vwn7f_476",strikeThrough:"_strike-through_vwn7f_476"},fo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("div",{...o,ref:s,className:d(z.text,t),children:e}));fo.displayName="Text";const po=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("p",{...o,className:d(z.paragraph,t),ref:s,children:e}));po.displayName="P";const ho=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("ul",{...o,className:d(z.ul,t),ref:s,children:e}));ho.displayName="Ul";const vo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("ol",{...o,className:d(z.ol,t),ref:s,children:e}));vo.displayName="Ol";const go=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("dl",{...o,className:d(z["description-list"],t),ref:s,children:e}));go.displayName="Dl";const mo=r.forwardRef(({children:e,className:t,href:o="#",...s},a)=>n.jsx("a",{...s,href:o,className:d(z.link,t),ref:a,children:e}));mo.displayName="A";const ht=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("b",{...o,className:d(z.bold,t),ref:s,children:e}));ht.displayName="B";const bo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("strong",{...o,className:d(z.strong,t),ref:s,children:e}));bo.displayName="Strong",ht.displayName="B";const wo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("i",{...o,className:d(z.italic,t),ref:s,children:e}));wo.displayName="I";const ko=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("em",{...o,className:d(z.emphasized,t),ref:s,children:e}));ko.displayName="Em";const yo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("mark",{...o,className:d(z.marked,t),ref:s,children:e}));yo.displayName="Mark";const No=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("small",{...o,className:d(z.small,t),ref:s,children:e}));No.displayName="Small";const $o=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("del",{...o,className:d(z.deleted,t),ref:s,children:e}));$o.displayName="Del";const Co=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("ins",{...o,className:d(z.inserted,t),ref:s,children:e}));Co.displayName="Ins";const So=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("sub",{...o,className:d(z.subscript,t),ref:s,children:e}));So.displayName="Sub";const Eo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("sup",{...o,className:d(z.superscript,t),ref:s,children:e}));Eo.displayName="Sup";const xo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("kbd",{...o,className:d(z.keyboard,t),ref:s,children:e}));xo.displayName="Kbd";const Io=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("code",{...o,className:d(z.code,t),ref:s,children:e}));Io.displayName="Code";const To=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("s",{...o,className:d(z.strikeThrough,t),ref:s,children:e}));To.displayName="S";const zo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("h1",{...o,className:d(z.header1,t),ref:s,children:e}));zo.displayName="H1";const Lo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("h2",{...o,className:d(z.header2,t),ref:s,children:e}));Lo.displayName="H2";const vt=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("h3",{...o,className:d(z.header3,t),ref:s,children:e}));vt.displayName="H3";const qo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("h4",{...o,className:d(z.header4,t),ref:s,children:e}));qo.displayName="H4";const Bo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("h5",{...o,className:d(z.header5,t),ref:s,children:e}));Bo.displayName="H5";const Oo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("h6",{...o,className:d(z.header6,t),ref:s,children:e}));Oo.displayName="H6";const Fo=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("blockquote",{...o,className:d(z.blockquote,t),ref:s,children:e}));Fo.displayName="BlockQuote";const Ao=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("pre",{...o,className:d(z.preformatted,t),ref:s,children:e}));Ao.displayName="Pre";const Do=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("div",{className:z["table-wrapper"],children:n.jsx("table",{...o,className:d(z.table,t),ref:s,children:e})}));Do.displayName="Table";const Mo=r.forwardRef(({max:e,min:t,value:o,low:s,high:a,optimum:i,className:l,...c},u)=>n.jsx("meter",{...c,min:t,max:e,low:s,high:a,optimum:i,value:o,className:d(z.meter,l),ref:u,children:o}));Mo.displayName="Meter";const Zo={vars:"_vars_3s1ka_1",wrapper:"_wrapper_3s1ka_5",figure:"_figure_3s1ka_12"},Po=r.forwardRef(({children:e,className:t,caption:o,position:s="center",...a},i)=>{const l=r.useMemo(()=>({position:s}),[s]),{LocalRoot:c}=q.useLocalTheme();return n.jsx(c,{theme:l,className:Zo.wrapper,children:n.jsxs("figure",{...a,className:d(Zo.figure,t),ref:i,children:[e,o&&n.jsx("figcaption",{children:o})]})})});Po.displayName="Figure";const fe={vars:"_vars_1hz1h_1","skeleton-frame":"_skeleton-frame_1hz1h_7",skeletonFrame:"_skeleton-frame_1hz1h_7","skeleton-shape":"_skeleton-shape_1hz1h_25",skeletonShape:"_skeleton-shape_1hz1h_25",loading:"_loading_1hz1h_1","skeleton-text":"_skeleton-text_1hz1h_47",skeletonText:"_skeleton-text_1hz1h_47","skeleton-action":"_skeleton-action_1hz1h_51",skeletonAction:"_skeleton-action_1hz1h_51","skeleton-button":"_skeleton-button_1hz1h_60",skeletonButton:"_skeleton-button_1hz1h_60","short-line":"_short-line_1hz1h_64",shortLine:"_short-line_1hz1h_64"},ce=e=>e===void 0?"auto":e==="fluid"?"100%":`${e}px`,de=r.forwardRef(({className:e,width:t="fluid",height:o,borderRadius:s=6,marginY:a=0,marginX:i=0,...l},c)=>{const{LocalRoot:u,ref:g}=q.useLocalTheme();K(c,g);const f=r.useMemo(()=>({width:ce(t),height:ce(o),"border-radius":s,"margin-y":a,"margin-x":i}),[s,o,i,a,t]);return n.jsx(u,{...l,theme:f,className:d(fe.skeletonShape,e)})});de.displayName="SkeletonShape";const Ho=r.forwardRef(({children:e,className:t,width:o="fluid",height:s="fluid",marginY:a=24,marginX:i=0,double:l=!1,...c},u)=>{const{LocalRoot:g,ref:f}=q.useLocalTheme();K(u,f);const v=r.useMemo(()=>({width:ce(o),height:ce(s),"margin-y":a,"margin-x":i}),[s,i,a,o]);return n.jsxs(g,{...c,className:d(fe.skeletonAction,t),theme:v,children:[n.jsx(de,{className:fe.skeletonButton,height:36}),l&&n.jsx(de,{className:fe.skeletonButton,height:36})]})});Ho.displayName="SkeletonAction";const Wo=r.forwardRef(({children:e,className:t,width:o="fluid",height:s,borderRadius:a=12,marginY:i=0,marginX:l=0,...c},u)=>{const{LocalRoot:g,ref:f}=q.useLocalTheme();K(u,f);const v=r.useMemo(()=>({width:ce(o),height:ce(s),"border-radius":a,"margin-y":i,"margin-x":l}),[a,s,l,i,o]);return n.jsx(g,{...c,theme:v,className:d(fe.skeletonFrame,t),children:e})});Wo.displayName="SkeletonFrame";const Qo=e=>new Array(e).fill(""),jo=r.forwardRef(({className:e,width:t="fluid",height:o,lines:s=3,marginY:a=36,marginX:i=0,...l},c)=>{const{LocalRoot:u,ref:g}=q.useLocalTheme();K(c,g);const f=r.useMemo(()=>({width:ce(t),height:ce(o),"margin-y":a,"margin-x":i}),[o,i,a,t]),v=s===1,h=Qo(s-1);return n.jsxs(u,{...l,className:d(fe.skeletonText,e),theme:f,children:[v&&n.jsx(de,{marginY:9,height:24}),!v&&h.map((_,b)=>n.jsx(de,{marginY:9,height:24},b)),!v&&n.jsx(de,{marginY:9,className:fe.shortLine,height:24})]})});jo.displayName="SkeletonText";const We={wrapper:"_wrapper_zq0d9_1",picture:"_picture_zq0d9_8",loading:"_loading_zq0d9_20",skeleton:"_skeleton_zq0d9_25"},gt=r.forwardRef(({className:e,alt:t,src:o,sources:s,width:a,height:i,loading:l="lazy",...c},u)=>{const[g,f]=r.useState(!1),v=r.useCallback(()=>{f(!0)},[]);return n.jsxs("div",{className:We.wrapper,children:[n.jsxs("picture",{...c,className:d(We.picture,{[We.loading]:!g},e),ref:u,onLoad:v,children:[s==null?void 0:s.map(({src:h,mediaCondition:_,density:b="1x",intrinsicWidth:w,slotWidth:y="",type:k,width:$,height:m})=>{const C=w??b;return n.jsx("source",{type:k,srcSet:`${h} ${C}`,media:`${_} ${y}`,width:$,height:m},h)}),n.jsx("img",{width:a,height:i,loading:l,src:o,alt:t})]}),!g&&n.jsx(de,{width:a,height:i,className:We.skeleton})]})});gt.displayName="Picture";const Dr=(e,t)=>{ge(()=>{const o=()=>{t(e)};if(e){const s=new ResizeObserver(o);return s.observe(e),()=>{s.disconnect()}}},[t,e])},V={vars:"_vars_48m5z_1",carousel:"_carousel_48m5z_9",scene:"_scene_48m5z_19",viewport:"_viewport_48m5z_29",navigation:"_navigation_48m5z_42",left:"_left_48m5z_60",right:"_right_48m5z_64",icon:"_icon_48m5z_69",dots:"_dots_48m5z_74",dot:"_dot_48m5z_74",active:"_active_48m5z_92",cell:"_cell_48m5z_97"},Mr=({children:e,index:t})=>{const o=r.useMemo(()=>({index:t}),[t]),{LocalRoot:s}=q.useLocalTheme();return n.jsx(s,{theme:o,className:V.cell,children:e})},Zr=({amount:e,active:t})=>{const o=r.useMemo(()=>Array.from(Array(e)),[e]);return n.jsx("div",{className:V.dots,children:o.map((s,a)=>{const i=a===t;return n.jsx("div",{className:d(V.dot,{[V.active]:i})},a)})})},Pr=e=>{const[t,o]=r.useState(!1),s=r.useMemo(()=>new IntersectionObserver(([a])=>o(a.isIntersecting)),[]);return r.useEffect(()=>(e.current&&s.observe(e.current),()=>{s.disconnect()}),[e,s]),t},Hr=()=>{const[e,t]=r.useState(document.visibilityState);return r.useEffect(()=>{const o=()=>t(document.visibilityState);return document.addEventListener("visibilitychange",o),()=>document.removeEventListener("visibilitychange",o)},[]),e==="visible"},Wr=({rotateFn:e,interval:t=null,ref:o})=>{const s=Pr(o),a=Hr();Bt({callback:e,interval:t,condition:!!t&&s&&a})},mt=(e,t)=>e%t>=0?e%t:t+e%t,Vo=r.forwardRef(({children:e,className:t,width:o,height:s,defaultVisible:a=0,showDots:i=!0,showArrows:l=!0,autoRotate:c,onRotate:u=()=>{},...g},f)=>{var D;const v=a!==0?a-1:a,[h,_]=r.useState(v),b=r.Children.toArray(e).length,{LocalRoot:w,ref:y}=q.useLocalTheme();K(f,y);const k=r.useRef(null),[$,m]=r.useState(o),[C,E]=r.useState(s),A=r.useCallback(L=>{const W=L==null?void 0:L.offsetWidth;if(W&&W<$){const yt=s*(W/o);m(W),E(yt)}else W&&W>$&&(m(o),E(s))},[$,s,o]);Dr((D=y.current)==null?void 0:D.parentElement,A);const I=r.useMemo(()=>({width:$,height:C,"cells-amount":b,rotations:h}),[$,C,b,h]),F=mt(h,b),T=r.useCallback(()=>{const L=h+1;_(L),u(mt(L,b))},[h,u,b]),O=r.useCallback(()=>{const L=h-1;_(L),u(mt(L,b))},[h,u,b]),P=r.useCallback(()=>{_(h+1)},[h,_]);Wr({rotateFn:P,interval:c&&c*1e3,ref:y});const ae=r.useMemo(()=>r.Children.toArray(e).map((L,W)=>n.jsx(Mr,{index:W,children:L},W)),[e]);return n.jsxs(w,{...g,theme:I,className:d(V.carousel,t),children:[n.jsxs("div",{className:V.scene,children:[l&&n.jsx("button",{className:d(V.navigation,V.left),onClick:O,children:n.jsx(Tn,{className:V.icon})}),n.jsx("div",{className:V.viewport,ref:k,children:ae}),l&&n.jsx("button",{className:d(V.navigation,V.right),onClick:T,children:n.jsx(Ln,{className:V.icon})})]}),i&&n.jsx(Zr,{amount:r.Children.toArray(e).length,active:F})]})});Vo.displayName="Carousel";const Qr=e=>{const[t,o]=r.useState(void 0),[s,a]=r.useState(void 0);return ge(()=>{const{current:i}=e;if(i){const l=i.scrollHeight>i.clientHeight,c=i.scrollWidth>i.clientWidth;o(l),a(c)}},[e]),{overflowY:t,overflowX:s}},re={tabs:"_tabs_kccxp_1",viewport:"_viewport_kccxp_11",header:"_header_kccxp_17","overflow-indicator":"_overflow-indicator_kccxp_29",overflowIndicator:"_overflow-indicator_kccxp_29",content:"_content_kccxp_51",button:"_button_kccxp_55",selected:"_selected_kccxp_76",icon:"_icon_kccxp_83",tab:"_tab_kccxp_1"},jr=({tabName:e,onClick:t,icon:o,activeName:s})=>{const a=r.useCallback(()=>{t(e)},[t,e]);return n.jsxs("button",{type:"button",onClick:a,className:d(re.button,{[re.selected]:s===e}),children:[o&&n.jsx(o,{className:re.icon}),e]},e)},Go=r.forwardRef(({children:e,className:t,selected:o,width:s,height:a,onToggle:i=()=>{},...l},c)=>{const{LocalRoot:u,ref:g}=q.useLocalTheme();K(c,g);const f=r.useMemo(()=>{let m={};return a&&(m={...m,height:a}),s&&(m={...m,width:s}),m},[a,s]),v=r.useMemo(()=>o||r.Children.toArray(e)[0].props.name,[e,o]),[h,_]=r.useState(v);r.useEffect(()=>{_(o||v)},[o,v]);const b=r.useCallback(m=>{_(m),i(m)},[i]),w=r.useMemo(()=>r.Children.map(e,m=>({tabName:m.props.name,icon:m.props.icon})),[e]),y=r.useMemo(()=>r.Children.toArray(e).find(m=>m.props.name===h),[e,h]),k=r.useRef(null),{overflowX:$}=Qr(k);return n.jsxs(u,{...l,theme:f,className:d(re.tabs,t),children:[n.jsxs("div",{className:re.viewport,children:[n.jsx("header",{ref:k,className:re.header,children:w.map(({tabName:m,icon:C})=>n.jsx(jr,{icon:C,onClick:b,tabName:m,activeName:h},m))}),$&&n.jsx("div",{className:re["overflow-indicator"],children:n.jsx(Bn,{})})]}),n.jsx("div",{className:re.content,children:y})]})});Go.displayName="Tabs";const Vr=({children:e})=>{const t=r.useRef(null);return n.jsx(er,{nodeRef:t,show:!0,children:n.jsx("div",{ref:t,className:re.tab,children:e})})},pe={reference:"_reference_1fezo_1",provider:"_provider_1fezo_7",menu:"_menu_1fezo_11",bordered:"_bordered_1fezo_19",plain:"_plain_1fezo_24",row:"_row_1fezo_29","action-button":"_action-button_1fezo_31",actionButton:"_action-button_1fezo_31"};var he=(e=>(e.bordered="bordered",e.plain="plain",e))(he||{});const bt=r.forwardRef(({children:e,className:t,isOpen:o=!1,content:s,referenceClassName:a,onToggle:i=()=>{},trapFocus:l=!0,alignWidth:c=!0,variant:u=he.plain,...g},f)=>{const[v,h]=r.useState(o);r.useEffect(()=>{h(o)},[o,h]),r.useEffect(()=>{i(v)},[v,i]);const{refs:_,floatingStyles:b}=Y.useFloating({strategy:"fixed",whileElementsMounted:Y.autoUpdate,middleware:[c&&Y.size({apply({rects:$,elements:m}){Object.assign(m.floating.style,{width:`${$.reference.width}px`})}}),Y.offset(18),Y.autoPlacement()]}),{LocalRoot:w}=q.useLocalTheme(),{getTheme:y}=q.useRootTheme(),k=r.useCallback(()=>{h(!1)},[h]);return et(k,_.reference,v),Ve(_.floating.current,v,l),n.jsxs(r.Fragment,{children:[n.jsx("div",{ref:_.setReference,className:d(pe.reference,a),children:e}),v&&n.jsx(Oe,{children:n.jsx("div",{ref:_.setFloating,style:b,children:n.jsx(w,{className:pe.provider,theme:y(),children:n.jsx("div",{...g,ref:f,className:d(pe.menu,{[pe.bordered]:u===he.bordered,[pe.plain]:u===he.plain},t),children:s})})})})]})});bt.displayName="Menu";const Gr=({children:e,actions:t=[],variant:o=he.bordered,...s})=>{const a={[he.plain]:ve.inverted,[he.bordered]:ve.primary}[o];return n.jsx(bt,{...s,variant:o,content:n.jsx(St,{variant:a,actions:t,classNameRow:pe.row,classNameAction:pe.actionButton}),alignWidth:!1,children:e})},se={reference:"_reference_ndwdc_1",unfocusable:"_unfocusable_ndwdc_7",provider:"_provider_ndwdc_11",tooltip:"_tooltip_ndwdc_15",arrow:"_arrow_ndwdc_27",top:"_top_ndwdc_39",bottom:"_bottom_ndwdc_46",left:"_left_ndwdc_52",right:"_right_ndwdc_59"},Uo=r.forwardRef(({placement:e,left:t,top:o},s)=>{const a=e.split("-")[0],{LocalRoot:i,ref:l}=q.useLocalTheme(),c=r.useMemo(()=>{const u={};return o&&(u.top=o),t&&(u.left=t),u},[t,o]);return K(s,l),n.jsx(i,{theme:c,className:d(se.arrow,{[se.bottom]:a==="bottom",[se.left]:a==="left",[se.top]:a==="top",[se.right]:a==="right"})})});Uo.displayName="Arrow";const Ko=r.forwardRef(({children:e,className:t,isOpen:o=!1,content:s,referenceClassName:a,onToggle:i=()=>{},interactive:l=!0,placement:c="bottom",...u},g)=>{var C,E;const[f,v]=r.useState(o);r.useEffect(()=>{v(o)},[o,v]),r.useEffect(()=>{i(f)},[f,i]);const h=r.useRef(null),{refs:_,floatingStyles:b,middlewareData:w,placement:y}=Y.useFloating({strategy:"fixed",placement:c,whileElementsMounted:Y.autoUpdate,middleware:[Y.offset(18),Y.flip(),Y.arrow({element:h})]}),{LocalRoot:k}=q.useLocalTheme(),{getTheme:$}=q.useRootTheme(),m=r.useCallback(()=>{v(!1)},[v]);return et(m,_.reference,f),Ve(_.floating.current,f,l),n.jsxs(r.Fragment,{children:[n.jsx("div",{ref:_.setReference,className:d(se.reference,a),children:e}),f&&n.jsx(Oe,{children:n.jsx("div",{ref:_.setFloating,style:b,className:d({[se.unfocusable]:!l}),children:n.jsx(k,{className:se.provider,theme:$(),children:n.jsxs("div",{...u,ref:g,className:d(se.tooltip,t),children:[n.jsx(Uo,{ref:h,placement:y,left:(C=w.arrow)==null?void 0:C.x,top:(E=w.arrow)==null?void 0:E.y}),s]})})})})]})});Ko.displayName="Tooltip";const H={pagination:"_pagination_2hjve_1",buttons:"_buttons_2hjve_10","page-button":"_page-button_2hjve_17",pageButton:"_page-button_2hjve_17",active:"_active_2hjve_43",ellipsis:"_ellipsis_2hjve_49",navigation:"_navigation_2hjve_63","navigation-block":"_navigation-block_2hjve_73",navigationBlock:"_navigation-block_2hjve_73",input:"_input_2hjve_81",error:"_error_2hjve_102","navigation-button":"_navigation-button_2hjve_112",navigationButton:"_navigation-button_2hjve_112",icon:"_icon_2hjve_115"},Qe=({pageNumber:e,onClick:t=()=>{},isActive:o})=>{const s=r.useCallback(()=>{t(e)},[t,e]);return n.jsx("button",{disabled:o,className:d(H.pageButton,{[H.active]:o}),onClick:s,children:e})},Ur=(e,t)=>{switch(t){case 1:return[t+1,t+2,t+3];case 2:return[t,t+1,t+2];case e:return[t-3,t-2,t-1];case e-1:return[t-2,t-1,t];default:return[t-1,t,t+1]}},Kr=(e,t)=>{const[o,s]=r.useState(t),a=1,i=e,l=Ur(e,o),c=o+1<=e?o+1:1,u=o-1>=1?o-1:e,g=e>7,f=e.toString().length+1,v=r.useCallback(h=>h===null?!0:h>=1&&h<=e,[e]);return{first:a,last:i,visible:l,setSelectedPage:s,selectedPage:o,nextPage:c,previousPage:u,isLong:g,maxDigits:f,checkValidity:v}},Xo=r.forwardRef(({children:e,className:t,totalPages:o,onPageSelect:s,selectedPage:a,showNavigation:i=!0,showPageButtons:l=!0,...c},u)=>{const{visible:g,first:f,last:v,selectedPage:h,setSelectedPage:_,nextPage:b,previousPage:w,isLong:y,maxDigits:k,checkValidity:$}=Kr(o,a),[m,C]=r.useState(h);r.useEffect(()=>{_(a)},[a,_]);const E=r.useCallback(D=>{_(D),s(D)},[s,_]),A=r.useCallback(()=>{_(b),s(b)},[b,s,_]),I=r.useCallback(()=>{_(w),s(w)},[s,w,_]),F=r.useCallback(D=>{const L=D.target.value!==""?parseInt(D.target.value):null;C(L)},[C]),T=r.useCallback(()=>{$(m)&&m!==null&&E(m)},[$,E,m]),O=r.useCallback(D=>{D.key==="Enter"&&$(m)&&m!==null&&E(m)},[$,E,m]),{LocalRoot:P}=q.useLocalTheme(),ae=r.useMemo(()=>({digits:k}),[k]);return n.jsxs("div",{...c,className:d(H.pagination,t),ref:u,children:[l&&n.jsxs("div",{className:H.buttons,children:[!y&&Qo(o).map((D,L)=>{const yt=L+1===h;return n.jsx(Qe,{isActive:yt,onClick:E,pageNumber:L+1},L)}),y&&n.jsxs(r.Fragment,{children:[n.jsx(Qe,{isActive:f===h,onClick:E,pageNumber:f}),n.jsx("div",{className:H.ellipsis,children:"…"}),g.map(D=>{const L=D===h;return n.jsx(Qe,{isActive:L,onClick:E,pageNumber:D},D)}),n.jsx("div",{className:H.ellipsis,children:"…"}),n.jsx(Qe,{isActive:v===h,onClick:E,pageNumber:v})]})]}),i&&n.jsxs(P,{className:H.navigation,theme:ae,children:[n.jsxs("div",{className:H.navigationBlock,children:[n.jsx("button",{onClick:I,className:H.navigationButton,children:n.jsx(Wn,{className:H.icon})}),n.jsx("button",{onClick:A,className:H.navigationButton,children:n.jsx(Pn,{className:H.icon})})]}),n.jsxs("div",{className:H.navigationBlock,children:[n.jsx("input",{className:d(H.input,{[H.error]:!$(m)}),min:f,max:v,pattern:"[0-9]{10}",step:"1",size:k,type:"number",defaultValue:h,onChange:F,onKeyUp:O}),n.jsx("button",{disabled:!$(m)||m===null,className:H.navigationButton,onClick:T,children:n.jsx(jn,{className:H.icon})})]})]})]})});Xo.displayName="Pagination";const _e={card:"_card_3e9ye_3",vertical:"_vertical_3e9ye_10",horizontal:"_horizontal_3e9ye_16",body:"_body_3e9ye_23","header-image":"_header-image_3e9ye_31",headerImage:"_header-image_3e9ye_31",actions:"_actions_3e9ye_54",row:"_row_3e9ye_63","action-button":"_action-button_3e9ye_74",actionButton:"_action-button_3e9ye_74"},Yo=r.forwardRef(({children:e,className:t,headerImageUrl:o,actions:s=[],id:a,variant:i="vertical",width:l,height:c,...u},g)=>{const f=U(a),{LocalRoot:v,ref:h}=q.useLocalTheme();K(g,h);const _=r.useMemo(()=>({width:l?`${l}px`:"auto",height:c?`${c}px`:"auto"}),[c,l]);return n.jsxs(v,{...u,theme:_,id:f,className:d(_e.card,{[_e.vertical]:i==="vertical",[_e.horizontal]:i==="horizontal"},t),children:[o&&n.jsx(gt,{className:_e.headerImage,src:o}),n.jsx("div",{className:_e.body,children:e}),n.jsx("footer",{className:_e.actions,children:n.jsx(Le,{actions:s,classNameAction:_e.actionButton,classNameRow:_e.row})})]})});Yo.displayName="Card";const Xr=e=>{const[t,o]=r.useState(!1);return r.useEffect(()=>{const s=window.matchMedia;if(!s)return;const a=s(e);a.matches!==t&&o(a.matches);const i=()=>o(a.matches);return window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[t,e]),t},j={"nav-panel":"_nav-panel_1tet4_3",navPanel:"_nav-panel_1tet4_3",name:"_name_1tet4_14","nav-list":"_nav-list_1tet4_26",navList:"_nav-list_1tet4_26",vertical:"_vertical_1tet4_34",shift:"_shift_1tet4_39",current:"_current_1tet4_43",horizontal:"_horizontal_1tet4_54","button-collapsible":"_button-collapsible_1tet4_71",buttonCollapsible:"_button-collapsible_1tet4_71","icon-collapsible":"_icon-collapsible_1tet4_81",iconCollapsible:"_icon-collapsible_1tet4_81","nav-link":"_nav-link_1tet4_87",navLink:"_nav-link_1tet4_87","nav-link-icon":"_nav-link-icon_1tet4_107",navLinkIcon:"_nav-link-icon_1tet4_107"},Jo=r.forwardRef(({children:e,className:t,layout:o="vertical",collapsible:s=!0,collapsibleLabel:a="Toggle menu",...i},l)=>{const c=Xr("(width >= 640px)"),u=s&&!c&&o==="horizontal",{openDrawer:g,isOpen:f,closeDrawer:v}=nt("foo"),h=r.useCallback(()=>{!f&&g(),f&&v()},[v,f,g]);return u?n.jsxs(r.Fragment,{children:[n.jsx("button",{type:"button",onClick:h,className:j.buttonCollapsible,"aria-label":a,children:n.jsx(Yn,{className:j.iconCollapsible})}),n.jsx(rt,{id:"foo",children:n.jsx("div",{...i,className:d(j.navList,j.vertical,t),ref:l,children:e})})]}):n.jsx("div",{...i,className:d(j.navList,j.full,{[j.vertical]:o==="vertical",[j.horizontal]:o==="horizontal"},t),ref:l,children:e})});Jo.displayName="NavList";const Ro=r.forwardRef(({title:e,as:t="a",href:o,icon:s,shift:a=!1,className:i,isCurrent:l,...c},u)=>n.jsxs(t,{...c,ref:u,title:e,className:d(j.navLink,{[j.shift]:a,[j.current]:l},i),href:o,children:[s&&n.jsx("span",{children:n.jsx(s,{className:j.navLinkIcon,title:e})}),n.jsx("span",{className:j.navLinkTitle,children:e})]}));Ro.displayName="NavLink";const wt=r.forwardRef(({children:e,className:t,...o},s)=>n.jsx("h1",{...o,className:d(j.name,t),ref:s,children:e}));wt.displayName="NavBrand";const en=r.forwardRef(({children:e,className:t,name:o="Koval App",...s},a)=>n.jsxs("div",{...s,className:d(j.navPanel,t),ref:a,children:[o&&n.jsx(wt,{children:o}),e]}));en.displayName="NavPanel";const je={wrapper:"_wrapper_1d4iq_1",label:"_label_1d4iq_8",progress:"_progress_1d4iq_28",dashed:"_dashed_1d4iq_41","animate-progress":"_animate-progress_1d4iq_1",animateProgress:"_animate-progress_1d4iq_1"},tn=r.forwardRef(({max:e=100,value:t,className:o,variant:s="plain",label:a,id:i,...l},c)=>{const u=U(i);return n.jsxs("div",{className:je.wrapper,children:[a&&n.jsxs("label",{className:je.label,htmlFor:u,children:[a,":"]}),n.jsx("progress",{...l,id:u,max:e,value:t,className:d(je.progress,{[je.dashed]:s==="dashed"},o),ref:c})]})});tn.displayName="Progress";const Ie={breadcrumbs:"_breadcrumbs_spi5y_1",crumb:"_crumb_spi5y_12",text:"_text_spi5y_24",icon:"_icon_spi5y_34",ellipsis:"_ellipsis_spi5y_71"},Yr=(e,t)=>{if(t){const[o,...s]=e;return[o,n.jsx("div",{className:Ie.ellipsis,children:"…"},"ellypsis"),...s]}else return e},on=r.forwardRef(({className:e,items:t,showEllipsis:o=!1,...s},a)=>{const i=t.map(({name:l,url:c,icon:u})=>n.jsxs("a",{title:l,className:Ie.crumb,href:c,children:[u&&n.jsx(u,{className:Ie.icon}),n.jsx("span",{className:Ie.text,children:l})]},l));return n.jsx("div",{...s,className:d(Ie.breadcrumbs,e),ref:a,children:Yr(i,o)})});on.displayName="Breadcrumbs";const kt={"button-group":"_button-group_1ra92_1",buttonGroup:"_button-group_1ra92_1",horizontal:"_horizontal_1ra92_10",vertical:"_vertical_1ra92_14"},nn=r.forwardRef(({children:e,className:t,layout:o="horizontal",...s},a)=>n.jsx("div",{...s,className:d(kt.buttonGroup,{[kt.horizontal]:o==="horizontal",[kt.vertical]:o==="vertical"},t),ref:a,children:e}));nn.displayName="ButtonGroup",p.A=mo,p.B=ht,p.BlockQuote=Fo,p.Breadcrumbs=on,p.Button=Gt,p.ButtonGroup=nn,p.Card=Yo,p.Carousel=Vo,p.Code=Io,p.Col=Ae,p.Content=Vt,p.Del=$o,p.Dialog=Tt,p.Dl=go,p.Drawer=rt,p.Em=ko,p.Figure=Po,p.Footer=Wt,p.Form=Lr,p.FormField=Xt,p.Grid=st,p.H1=zo,p.H2=Lo,p.H3=vt,p.H4=qo,p.H5=Bo,p.H6=Oo,p.Header=jt,p.I=wo,p.InputCheckbox=Rt,p.InputColor=ro,p.InputDate=no,p.InputFile=io,p.InputGroup=eo,p.InputNumber=co,p.InputRadio=to,p.InputRange=lo,p.InputText=oo,p.InputTime=so,p.Ins=Co,p.Kbd=xo,p.Main=Ht,p.Mark=yo,p.Menu=bt,p.MenuActions=Gr,p.Meter=Mo,p.NavBrand=wt,p.NavLink=Ro,p.NavList=Jo,p.NavPanel=en,p.Notification=hr,p.Ol=vo,p.P=po,p.Page=Pt,p.Pagination=Xo,p.Picture=gt,p.Pre=Ao,p.Progress=tn,p.Provider=Sr,p.Row=Ce,p.S=To,p.Select=uo,p.Sidebar=Qt,p.SkeletonAction=Ho,p.SkeletonFrame=Wo,p.SkeletonShape=de,p.SkeletonText=jo,p.Small=No,p.Strong=bo,p.Sub=So,p.Sup=Eo,p.Tab=Vr,p.Table=Do,p.Tabs=Go,p.Text=fo,p.Textarea=_o,p.Toast=Dt,p.Tooltip=Ko,p.Ul=ho,p.themeDnipro=ln,p.themePodil=Nt,p.useDialogState=It,p.useDrawerState=nt,p.useFormActions=Ut,p.useFormSelectors=ct,p.useNotificationState=qt,p.useToastState=At,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
3
3
  //# sourceMappingURL=index.umd.cjs.map