neatkit 0.3.2 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Portal/utils/focus-restoration.d.ts +14 -0
- package/dist/components/Table/Table.d.ts +287 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1650 -1217
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),i=require("react"),Ct=require("react-dom"),Rt=36,at=[2,4,8,12,16,24,32,48],Ke={sm:768,md:960,lg:1440,xl:1920};({...Object.fromEntries(at.map(t=>[`--nk-space-${t}`,`${t}px`]))});function Et(t){if(typeof t!="number"||!Number.isFinite(t))throw new RangeError("Cell amount must be a finite number.");const n=t*Rt;if(!Number.isFinite(n))throw new RangeError("Calculated cell value must be finite.");return n}function Pt(t){if(!at.some(n=>n===t))throw new RangeError(`Unsupported spacing size: ${String(t)}.`);return t}function he(t){if(!Object.prototype.hasOwnProperty.call(Ke,t))throw new RangeError(`Unsupported breakpoint: ${String(t)}.`);return Ke[t]}function Mt(t){if(typeof t!="number"||!Number.isFinite(t))throw new RangeError("Pixel value must be a finite number.");return`${t}px`}const Pe=i.forwardRef(function(n,e){const{children:r,className:s,...o}=n;return a.jsx("div",{...o,ref:e,className:["nk-surface",s].filter(Boolean).join(" "),children:r})}),Lt=i.forwardRef(function(n,e){const{children:r,className:s,role:o,tone:c="info",...l}=n;return a.jsxs(Pe,{...l,ref:e,className:["nk-alert",s].filter(Boolean).join(" "),"data-tone":c,role:o,children:[a.jsx("span",{"aria-hidden":"true",className:"nk-alert__indicator"}),a.jsx("div",{className:"nk-alert__content",children:r})]})});function St(t){return(Array.from((t==null?void 0:t.trim())??"")[0]??"?").trim().toUpperCase()||"?"}function Nt(t){if(t==="?")return"neutral";const n=Array.from(t)[0]??"";if("AJO".includes(n))return"1";if("BNSV".includes(n))return"2";if("CFLQW".includes(n))return"3";if("EHKMPTX".includes(n))return"4";if("DGRUY".includes(n))return"5";if("IZ".includes(n))return"6";const e=n.codePointAt(0)??0;return String(e%6+1)}const _t=i.forwardRef(function(n,e){const{alt:r,className:s,image:o,size:c=32,style:l,...p}=n,[h,d]=i.useState(),u=!!o&&o!==h,v=(r==null?void 0:r.trim())??"",m=St(v),g=typeof c=="number"?`${c}px`:c,k=v?{"aria-label":v,role:"img"}:{"aria-hidden":!0,role:void 0};function b(){d(o)}return a.jsx("div",{...p,...u?void 0:k,ref:e,className:["nk-avatar",s].filter(Boolean).join(" "),"data-palette":Nt(m),"data-state":u?"image":"fallback",style:{...l,"--nk-avatar-size":g},children:u?a.jsx("img",{alt:v,className:"nk-avatar__image",onError:b,src:o}):a.jsx("span",{"aria-hidden":"true",className:"nk-avatar__initial",children:m})})}),Vt=i.forwardRef(function(n,e){const{children:r,className:s,tone:o="neutral",variant:c="outline",...l}=n;return a.jsx("span",{...l,ref:e,className:["nk-badge",s].filter(Boolean).join(" "),"data-tone":o,"data-variant":c,children:r})}),Tt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 0h1.6c.5.1 1 .3 1.3.6.3.4.5.8.5 1.3l.1 1.6v8.6c-.1.5-.3 1-.6 1.3a2 2 0 0 1-1.3.5l-1.6.1H1.9a2 2 0 0 1-1.3-.6A2 2 0 0 1 .1 12L0 10.5V1.9C.2 1.4.4.9.7.6A2 2 0 0 1 2 .1L3.5 0h7Zm-7 1.4H2.1c-.3 0-.4.1-.5.2l-.2.5v3.5a11.8 11.8 0 0 0 0 1l.4.3h.3l.7.1h1a1.4 1.4 0 0 1 .8.4l.4.4.1.4v.2l.2.3.1.4h3.2l.2-.5v-.2l.2-.6.4-.4.2-.2.6-.2h1a11.8 11.8 0 0 0 1 0l.3-.4v-.3l.1-.6V2.1c0-.3-.1-.4-.2-.5l-.5-.2H3.5Z",clipRule:"evenodd"})})}),At=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M5.75 10 3 7.25m0 0L5.75 4.5M3 7.25h8.5"})})}),Dt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M8.25 10 11 7.25m0 0L8.25 4.5M11 7.25H2.5"})})}),Ot=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.633",d:"M5.955 11.616 2.177 8.838a.82.82 0 0 0-.32-.143l-.985-.2-.03-.007a.148.148 0 0 1-.026-.087V5.423c0-.049.014-.076.022-.087l.034-.005.984-.202a.818.818 0 0 0 .32-.142l3.78-2.78v9.41Z"}),a.jsx("path",{fill:"currentColor",d:"M9.383 5.053c-.192-.37-.635-.454-.93-.168l-.044.033a.737.737 0 0 0-.133.825c.162.337.266.724.266 1.144 0 .421-.104.808-.266 1.145a.737.737 0 0 0 .133.824l.044.034c.28.286.738.219.93-.168A4.214 4.214 0 0 0 9.81 6.87c0-.64-.162-1.263-.427-1.818Z"}),a.jsx("path",{fill:"currentColor",d:"M10.932 3.386c-.207-.336-.635-.387-.9-.117l-.03.033a.768.768 0 0 0-.088.91c.472.756.737 1.699.737 2.692 0 1.01-.28 1.935-.737 2.692a.768.768 0 0 0 .088.91l.03.033c.265.27.693.219.9-.118.62-.993.973-2.205.973-3.517 0-1.313-.354-2.525-.973-3.518Z"}),a.jsx("path",{fill:"currentColor",d:"M12.48 1.754c-.22-.32-.62-.37-.885-.1l-.044.033c-.236.235-.265.64-.074.925.797 1.195 1.254 2.676 1.254 4.275 0 1.599-.472 3.097-1.254 4.275-.191.286-.162.69.074.925l.044.034c.266.27.664.219.885-.101.96-1.43 1.52-3.214 1.52-5.15 0-1.901-.56-3.685-1.52-5.116Z"})]})}),Bt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M13 2.229c0-.413-.112-.818-.324-1.17a2.2 2.2 0 0 0-.88-.822A2.15 2.15 0 0 0 9.51.441c-.325.246-.577.58-.726.964a2.27 2.27 0 0 0 .4 2.303c.27.308.618.534 1.006.652v.095c0 .507-.197.992-.548 1.35a1.86 1.86 0 0 1-1.325.559H5.82c-.675.007-1.33.23-1.874.636V4.36a2.2 2.2 0 0 0 1.218-.936A2.26 2.26 0 0 0 4.751.542 2.16 2.16 0 0 0 3.322 0c-.525 0-1.032.193-1.43.542a2.26 2.26 0 0 0-.413 2.882c.283.451.716.783 1.219.936v5.28a2.2 2.2 0 0 0-1.218.936 2.26 2.26 0 0 0 .413 2.882c.397.35.904.542 1.43.542.524 0 1.031-.193 1.428-.542a2.26 2.26 0 0 0 .413-2.882 2.2 2.2 0 0 0-1.218-.936v-.095c0-.507.198-.992.55-1.35a1.86 1.86 0 0 1 1.324-.559h2.497c.828 0 1.622-.335 2.208-.931a3.2 3.2 0 0 0 .914-2.25V4.36c.45-.137.846-.418 1.127-.802S13 2.708 13 2.229"})})}),Ft=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("rect",{width:"14",height:"2.1",y:"1.75",fill:"currentColor",rx:"1.05"}),a.jsx("rect",{width:"14",height:"2.1",y:"5.95",fill:"currentColor",rx:"1.05"}),a.jsx("rect",{width:"14",height:"2.1",y:"10.15",fill:"currentColor",rx:"1.05"})]})}),Ht=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.25 2.714h-1.313l-.437-.857C10.242 1.36 10.108 1 9.625 1h-5.25c-.483 0-.643.409-.875.857l-.438.857H1.75C.784 2.714 0 3.482 0 4.43v6.857C0 12.232.784 13 1.75 13h10.5c.966 0 1.75-.768 1.75-1.714V4.429c0-.947-.784-1.715-1.75-1.715ZM7 11.286c-1.933 0-3.5-1.535-3.5-3.429C3.5 5.964 5.067 4.43 7 4.43s3.5 1.535 3.5 3.428c0 1.894-1.567 3.429-3.5 3.429Z",clipRule:"evenodd"}),a.jsx("path",{fill:"currentColor",d:"M4.75 7.9a2.25 2.25 0 1 1 4.5 0 2.25 2.25 0 0 1-4.5 0Z"})]})}),Wt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M1.3 10.7c.1-.4 0-.7-.2-1A6 6 0 0 1 0 6.3C0 2.8 3.1 0 7 0s7 2.8 7 6.3-3.1 6.3-7 6.3c-.6 0-1.2 0-1.7-.2a1 1 0 0 0-.7 0l-3 1.5-.2.1a.7.7 0 0 1-.7-.9l.6-2.4Z"})})}),zt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.8",d:"m4 7.5 2 2L10.5 5"})})}),Zt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M3.5 5.25 7 8.75l3.5-3.5"})})}),qt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M8.75 3.5 5.25 7l3.5 3.5"})})}),Gt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M5.25 3.5 8.75 7l-3.5 3.5"})})}),$t=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M3.5 8.75 7 5.25l3.5 3.5"})})}),Kt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.391 7.868a3.501 3.501 0 0 1-6.782 0 1 1 0 0 1-.109.007H.875a.875.875 0 1 1 0-1.75H3.5q.055 0 .109.007a3.501 3.501 0 0 1 6.782 0 1 1 0 0 1 .109-.007h2.625a.875.875 0 1 1 0 1.75H10.5a1 1 0 0 1-.109-.007M7 8.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5",clipRule:"evenodd"})})}),Ut=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"m4 4 6 6M10 4l-6 6"})})}),Yt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M3.5 12.25h7M7 1.75v8.167m0 0L9.917 7M7 9.917 4.083 7"})})}),Qt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M8.152.192c.35 0 .663 0 .92.02.268.023.548.074.82.215.398.205.718.532.918.93.137.273.187.553.209.822.018.223.019.487.02.783.302 0 .574.001.803.02.267.023.547.072.82.213.397.206.718.533.918.932.137.273.185.552.207.821.021.26.02.575.02.93v5.012c0 .356.001.671-.02.931-.022.27-.07.549-.207.822-.2.398-.52.725-.918.93a2.126 2.126 0 0 1-.82.214c-.258.021-.57.02-.921.02H5.848c-.35 0-.663.002-.92-.02a2.124 2.124 0 0 1-.82-.214 2.117 2.117 0 0 1-.919-.931 2.177 2.177 0 0 1-.208-.82 10.57 10.57 0 0 1-.018-.792c-.145-.002-.29-.004-.43-.01a6.939 6.939 0 0 1-.595-.05 1.89 1.89 0 0 1-.6-.165 2.117 2.117 0 0 1-.918-.932 2.176 2.176 0 0 1-.207-.821c-.021-.26-.02-.575-.02-.93V3.11c0-.356-.001-.671.02-.931.022-.27.07-.549.207-.822.2-.398.52-.725.918-.93.273-.141.553-.192.82-.214.258-.021.57-.02.921-.02h5.073ZM5.848 4.577c-.377 0-.611 0-.786.015-.166.014-.207.036-.212.039a.5.5 0 0 0-.217.22l-.017.053a1.207 1.207 0 0 0-.024.174c-.015.18-.015.419-.015.8v5.012c0 .382 0 .621.015.801.007.086.016.14.024.174l.017.053a.506.506 0 0 0 .151.18l.066.04c.005.003.046.025.212.039.175.014.409.015.786.015h5.073c.377 0 .612 0 .787-.015.166-.014.207-.036.212-.038a.501.501 0 0 0 .217-.221c.004-.01.026-.056.04-.227.014-.18.015-.419.015-.801V5.879c0-.382 0-.621-.015-.8-.014-.172-.036-.218-.04-.227a.501.501 0 0 0-.217-.221c-.005-.003-.046-.025-.212-.04-.175-.014-.41-.014-.787-.014H5.848Zm-2.769-2.77c-.377 0-.611.002-.787.016-.166.014-.207.036-.212.038a.502.502 0 0 0-.217.221c-.004.01-.026.056-.04.227-.014.18-.015.419-.015.801v5.011c0 .382 0 .621.015.8.007.086.016.14.024.175l.016.052c.044.087.111.156.19.204.017.003.05.011.101.018.116.016.27.028.453.036.114.005.234.007.355.009V5.879c0-.356-.001-.671.02-.93.021-.27.07-.55.207-.822.2-.4.521-.726.918-.932.273-.14.553-.19.82-.213.258-.021.57-.02.92-.02h3.575c0-.298-.001-.498-.014-.653-.014-.171-.036-.218-.04-.227a.501.501 0 0 0-.218-.22l-.046-.015a1.143 1.143 0 0 0-.166-.024c-.175-.014-.409-.015-.786-.015H3.08Z"})})}),Xt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,fill:"none",height:r,viewBox:"0 0 14 14",width:s,xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M7.042 4.475c.49 0 .97.15 1.377.429.407.28.724.677.912 1.142.187.464.237.976.141 1.469a2.57 2.57 0 0 1-.676 1.303 2.5 2.5 0 0 1-1.035.637 2.42 2.42 0 0 1-2.293-.467 2.54 2.54 0 0 1-.719-.994 2.6 2.6 0 0 1 .23-2.389c.226-.348.534-.633.893-.83a2.4 2.4 0 0 1 1.17-.3m-.017 1.157c-.354 0-.694.145-.944.402s-.392.605-.393.968c0 .755.617 1.389 1.354 1.389.73 0 1.317-.627 1.317-1.389 0-.754-.598-1.37-1.334-1.37",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),a.jsx("path",{d:"M7.023 2c2.73 0 5.303 1.51 6.656 4.154l.127.258.001.002.122.274.005.009v.007a.9.9 0 0 1 .066.303.9.9 0 0 1-.065.317v.005l-.004.008C12.665 10.313 9.904 12 6.997 12 4.09 12 1.333 10.318.066 7.349L.06 7.344l-.003-.01A1.1 1.1 0 0 1 0 7.016c0-.101.02-.202.057-.318L.06 6.69v-.002a7.7 7.7 0 0 1 2.797-3.415A7.43 7.43 0 0 1 7.023 2m0 1.284c-2.308 0-4.601 1.261-5.731 3.726 1.139 2.477 3.401 3.706 5.704 3.706 2.308 0 4.572-1.238 5.7-3.704-1.129-2.466-3.369-3.728-5.673-3.728",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})]})}),Jt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,fill:"none",height:r,viewBox:"0 0 14 14",width:s,xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"m2.867 12.098 1.266.804 7-11-1.266-.804zM10.264 4.2c1.005.624 1.86 1.564 2.431 2.813-1.127 2.465-3.39 3.703-5.699 3.703q-.423-.002-.84-.06l-.745 1.17A7.5 7.5 0 0 0 6.996 12c2.907 0 5.669-1.687 6.936-4.663l.003-.008v-.005A.9.9 0 0 0 14 7.008a.9.9 0 0 0-.066-.304v-.008l-.005-.008-.121-.274-.001-.002-.127-.258h-.001a7.7 7.7 0 0 0-2.736-3.022zM7.022 2a7.43 7.43 0 0 0-4.166 1.274A7.7 7.7 0 0 0 .061 6.688L.06 6.69l-.003.007a1 1 0 0 0-.057.32q.005.163.058.317l.003.01.004.005c.658 1.54 1.718 2.73 2.99 3.523l.678-1.067C2.727 9.188 1.866 8.259 1.292 7.01c1.13-2.465 3.423-3.727 5.73-3.727q.416 0 .826.057l.743-1.17A7.4 7.4 0 0 0 7.022 2",fill:"currentColor"}),a.jsx("path",{d:"M8.343 7.219c-.061.408-.292.76-.616.968l-.872 1.369c.305.023.612-.01.906-.1.39-.123.747-.341 1.035-.638.346-.356.581-.81.677-1.303a2.6 2.6 0 0 0-.244-1.69zM7.042 4.475c-.408 0-.81.103-1.17.3-.36.198-.667.483-.893.83a2.61 2.61 0 0 0-.23 2.389q.027.063.058.124l.925-1.455a1.4 1.4 0 0 1 .472-.741l.92-1.444z",fill:"currentColor"})]})}),en=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M7 9.25 9.25 7m0 0L7 4.75M9.25 7H1m0-3.564V3.4c0-.84 0-1.26.163-1.581a1.5 1.5 0 0 1 .656-.656C2.139 1 2.56 1 3.4 1h7.2c.84 0 1.26 0 1.58.163a1.5 1.5 0 0 1 .657.656c.163.32.163.74.163 1.579v7.205c0 .838 0 1.257-.163 1.578a1.5 1.5 0 0 1-.656.656c-.321.163-.74.163-1.579.163H3.398c-.839 0-1.259 0-1.58-.163a1.5 1.5 0 0 1-.655-.656C1 11.86 1 11.44 1 10.6v-.037"})})}),tn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M12 5.5v4.867c0 .746 0 1.12-.14 1.405a1.3 1.3 0 0 1-.562.583c-.275.145-.635.145-1.355.145H4.557c-.72 0-1.08 0-1.355-.145a1.3 1.3 0 0 1-.562-.583c-.14-.285-.14-.659-.14-1.405V3.633c0-.746 0-1.12.14-1.405.123-.25.32-.455.562-.583.275-.145.635-.145 1.355-.145h3.586M12 5.5l-3.857-4M12 5.5H8.786a.655.655 0 0 1-.643-.667V1.5"})})}),nn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M2.49 2.25H5.19c.413 0 .508.004.588.021q.133.03.243.093c.064.036.128.088.421.358l.098.09c.244.224.45.42.7.56q.232.13.486.205l.17.044c.278.061.564.058.912.058h2.702c.447 0 .74 0 .966.017.217.017.307.045.356.068a.75.75 0 0 1 .342.308c.013.024.04.084.056.27.018.198.019.459.019.872v5c0 .413-.001.675-.019.872-.016.186-.043.246-.056.27a.75.75 0 0 1-.342.309c-.049.023-.139.051-.356.067-.225.017-.52.018-.966.018H2.489c-.447 0-.74 0-.966-.018-.217-.016-.307-.044-.356-.067a.75.75 0 0 1-.342-.309c-.013-.024-.04-.084-.056-.27a11 11 0 0 1-.019-.872V3.786c0-.413.001-.675.019-.872.016-.186.043-.246.056-.27a.75.75 0 0 1 .342-.309c.049-.023.139-.051.356-.067.225-.017.52-.018.966-.018"})})}),rn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M6.293.818a1 1 0 0 1 1.414 0l5.586 5.585c.39.39.39 1.025 0 1.415l-5.586 5.585a1 1 0 0 1-1.414 0L.707 7.818a1 1 0 0 1 0-1.415L4.731 2.38l1.215 1.215a1.187 1.187 0 0 0 .554 1.68v4a1.187 1.187 0 1 0 .95 0V5.275q.06-.026.117-.06l1.865 1.864A1.186 1.186 0 0 0 10.537 8.7a1.188 1.188 0 1 0-.434-2.293L8.135 4.44a1.187 1.187 0 0 0-1.411-1.411l-1.32-1.32z"})})}),on=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 0a7 7 0 0 1 7 7.2c0 3.1-2 5.8-4.8 6.8-.3 0-.5-.2-.5-.4v-2c0-.6-.2-1-.4-1.3 1.5-.1 3.2-.7 3.2-3.5a3 3 0 0 0-.8-2c.1-.1.4-.8 0-1.8 0 0-.6-.2-2 .7a6.6 6.6 0 0 0-3.5 0C4 2.7 3.3 3 3.3 3c-.4 1-.1 1.7 0 1.9-.5.5-.8 1.1-.8 1.9 0 2.8 1.7 3.4 3.2 3.5-.2.2-.4.5-.4 1-.4.2-1.4.5-2-.6 0 0-.4-.7-1.1-.7 0 0-.7 0 0 .4 0 0 .4.2.7 1 0 0 .4 1.3 2.4 1v1.2c0 .2-.2.5-.5.4A7.2 7.2 0 0 1 0 7.2 7 7 0 0 1 7 0Z",clipRule:"evenodd"})})}),sn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 0a7 7 0 1 1 0 14A7 7 0 0 1 7 0ZM1.4 7.7c.3 2.2 1.9 4 4 4.7a9.7 9.7 0 0 1-1.9-4.7h-2Zm9 0c0 1.5-.6 3-1.8 4.7a5.6 5.6 0 0 0 4-4.7h-2.1ZM5 7.7c.2 1.4.8 3 2.1 4.6A8.7 8.7 0 0 0 9 7.7H5Zm.3-6c-2 .6-3.5 2.4-3.8 4.6h2.1l.1-.8a12 12 0 0 1 1.5-3.8Zm1.8 0A8.2 8.2 0 0 0 5 6.3h4.2v-.6a8.2 8.2 0 0 0-2.1-4Zm1.8 0a9.4 9.4 0 0 1 1.7 4.6h2c-.2-2.2-1.7-4-3.7-4.6Z",clipRule:"evenodd"})})}),an=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M9.71 0c.374 0 .678.304.678.678v.677h.677c.872 0 1.58.708 1.58 1.58v.678h.678a.678.678 0 0 1 0 1.355h-.678v1.355h.678a.677.677 0 0 1 0 1.355h-.678v1.354h.678a.678.678 0 0 1 0 1.356h-.678v.677c0 .872-.708 1.58-1.58 1.58h-.677v.678a.678.678 0 0 1-1.356 0v-.678H7.678v.678a.678.678 0 0 1-1.355 0v-.678H4.968v.678a.677.677 0 0 1-1.355 0v-.678h-.677a1.58 1.58 0 0 1-1.58-1.58v-.677H.677a.678.678 0 0 1 0-1.356h.677V7.678H.678a.678.678 0 0 1 0-1.355h.677V4.968H.678a.678.678 0 1 1 0-1.355h.677v-.677c0-.873.708-1.58 1.58-1.58h.678V.677a.678.678 0 0 1 1.355 0v.677h1.355V.678a.677.677 0 1 1 1.355 0v.677h1.354V.678c0-.374.304-.678.678-.678ZM2.936 2.71a.226.226 0 0 0-.226.226v8.128c0 .125.101.227.226.227h8.128a.228.228 0 0 0 .227-.226v-8.13a.227.227 0 0 0-.226-.225h-8.13Zm5.42 1.354c.872 0 1.58.709 1.58 1.582v2.71a1.58 1.58 0 0 1-1.58 1.58h-2.71c-.873 0-1.581-.708-1.582-1.58v-2.71c0-.873.709-1.582 1.582-1.582h2.71ZM5.645 5.42c-.125 0-.226.1-.226.226v2.71c0 .124.101.225.226.225h2.71a.226.226 0 0 0 .225-.226v-2.71a.226.226 0 0 0-.226-.225h-2.71Z"})})}),ln=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M1 5.7v7.8h4.286v-3.467C5.286 9.076 6.053 8.3 7 8.3s1.714.776 1.714 1.733V13.5H13V5.7L7 .5z"})})}),cn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("circle",{cx:"7",cy:"7",r:"5.25",stroke:"currentColor",strokeWidth:"1.4"}),a.jsx("circle",{cx:"7",cy:"5",r:"0.75",fill:"currentColor",stroke:"none"}),a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M7 7v2.5"})]})}),un=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.254 7.814C11.323 7.814 13 6.177 13 4.157S11.323.5 9.254.5 5.507 2.137 5.507 4.157c0 .57.134 1.11.373 1.592a.55.55 0 0 1-.09.64l-4.423 4.318a.5.5 0 0 0 0 .715l1.779 1.737a.5.5 0 0 0 .698 0l.462-.45a.5.5 0 0 0 0-.716l-.585-.57a.5.5 0 0 1 0-.716l.605-.59a.5.5 0 0 1 .698 0l.62.604a.5.5 0 0 0 .698 0l.461-.45a.5.5 0 0 0 0-.716l-.584-.57a.5.5 0 0 1 0-.716l.761-.744a.55.55 0 0 1 .621-.085c.499.24 1.06.374 1.653.374m0-1.625c1.15 0 2.081-.91 2.081-2.032s-.932-2.032-2.081-2.032-2.082.91-2.082 2.032.932 2.032 2.082 2.032",clipRule:"evenodd"})})}),dn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14 14h-2.8V9.1c0-1.3-.6-2-1.7-2s-1.8.7-1.8 2V14H4.9V4.9h2.8v1s.9-1.5 2.9-1.5S14 5.6 14 8v6ZM1.7 3.4C.7 3.4 0 2.7 0 1.7S.8 0 1.7 0a1.7 1.7 0 0 1 0 3.4ZM0 14h3.5V4.9H0V14Z",clipRule:"evenodd"})})}),fn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"3 -2 16 22",fill:"none",children:[a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",d:"m3 3.7 8 5.9 8-5.9"}),a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",d:"M18 2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2Z"})]})}),hn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M3.5 7.121h7.243"})})}),pn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M9.534 2.136a1.784 1.784 0 0 1 1.944 2.91l-.26.258-2.522-2.522.259-.26c.166-.165.362-.297.579-.386ZM7.989 3.489 2.827 8.65a.5.5 0 0 0-.128.222l-.681 2.497a.5.5 0 0 0 .614.614l2.496-.681a.5.5 0 0 0 .222-.129l5.162-5.162L7.989 3.49Z"})})}),vn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M3.5 7.121h7.243M7.122 3.5v7.243"})})}),mn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("rect",{width:"6",height:"6",fill:"currentColor",rx:"1"}),a.jsx("rect",{width:"6",height:"6",x:"8",fill:"currentColor",rx:"1"}),a.jsx("rect",{width:"6",height:"6",y:"8",fill:"currentColor",rx:"1"}),a.jsx("rect",{width:"6",height:"6",x:"8",y:"8",fill:"currentColor",rx:"1"})]})}),gn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsxs("g",{fill:"currentColor",children:[a.jsx("path",{d:"M14 14h-3.111v-1.556h1.555V10.89H14V14ZM0 0h6.222v6.222H0V0Zm1.556 1.556v3.11h3.11v-3.11h-3.11ZM7.778 0H14v6.222H7.778V0Zm1.555 1.556v3.11h3.111v-3.11h-3.11ZM0 7.778h6.222V14H0V7.778Zm1.556 1.555v3.111h3.11v-3.11h-3.11Zm10.11-1.555H14V9h-2.333V7.778ZM9.333 10H7.778V7.778h1.555V10ZM9.31 12.444V14H7.779v-2H9.31v.444ZM9.3 11h1v1h-1zM10.3 11h1v1h-1z"}),a.jsx("path",{d:"M11.3 10H14v1h-2.7zM10.3 9h1v1h-1z"})]})})}),wn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.1 9.1a1 1 0 0 1-1-1c0-.7.5-1.2 1-1.2.6 0 1 .5 1 1.1 0 .6-.4 1.1-1 1.1Zm.2 2c-.5.5-1.3.8-2.3.8-1 0-1.8-.3-2.3-.8a.3.3 0 0 1 0-.4c.1-.1.3-.1.4 0 .4.4 1 .6 1.9.6.9 0 1.5-.2 1.9-.6 0-.1.3-.1.4 0v.4ZM3.9 8c0-.7.5-1.2 1-1.2s1 .5 1 1.1c0 .6-.5 1.1-1 1.1s-1-.5-1-1ZM14 6.8c0-1-.7-1.8-1.6-1.8-.4 0-.8.2-1 .5a6.8 6.8 0 0 0-4-1.3l.8-3 2.2.6c0 .8.8 1.5 1.5 1.5s1.4-.7 1.4-1.5c0-.7-.7-1.4-1.4-1.4-.6 0-1.2.4-1.4.9L7.8.7l-1 3.6c-1.6 0-3 .5-4.2 1.2-.3-.2-.6-.4-1-.4-.9 0-1.6.8-1.6 1.8 0 .6.3 1.1.8 1.5C.3 11 3.3 13.5 7 13.5s6.6-2.4 6.2-5.1c.5-.3.8-.9.8-1.5Z",clipRule:"evenodd"})})}),xn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 15",fill:"none",children:[a.jsx("path",{fill:"currentColor",d:"M4.875 10.65a.437.437 0 0 0-.437.438v2.625a.438.438 0 0 0 .68.364l1.07-.713 1.07.713a.438.438 0 0 0 .68-.364v-2.625a.437.437 0 0 0-.438-.438z"}),a.jsx("path",{fill:"currentColor",stroke:"currentColor",strokeWidth:".15",d:"M12.094.075a1.17 1.17 0 0 1 1.169 1.169V12.18a1.17 1.17 0 0 1-1.17 1.17h-2.63a.732.732 0 0 1 0-1.464H11.8V9.413H2.906a.58.58 0 0 0-.58.58v1.313a.58.58 0 0 0 .58.581h.069a.731.731 0 0 1 0 1.463h-.069a2.044 2.044 0 0 1-2.044-2.044V2.12A2.044 2.044 0 0 1 2.906.075zM2.906 1.538a.58.58 0 0 0-.58.58v5.917q.276-.084.58-.085H11.8V1.538z"})]})}),bn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M9.958 0c.194 0 .49.066.663.148 0 0-.112-.12.045.042.141.147 3.117 3.214 3.178 3.278.055.059.024.032.021.03.081.175.135.48.135.673v8.374c0 .62-.743 1.455-1.453 1.455l-2.436-.007A1.02 1.02 0 0 1 10 14H4c-.073 0-.144-.009-.212-.023l-2.345-.006A1.44 1.44 0 0 1 .01 12.56C-.022 11.696.04 2.202.04 1.454.04.708.646.031 1.524.031 2.404.031 9.958 0 9.958 0ZM1.471 1.435a.174.174 0 0 0-.057.037.173.173 0 0 0-.037.056.172.172 0 0 0-.014.067l.014 10.597c0 .193.158.35.352.352L3 12.55V8a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4.592l1.3.008a.349.349 0 0 0 .351-.349l-.012-7.914a.476.476 0 0 0-.127-.297L9.948 1.56c-.07-.068-.126-.044-.126.052V4.69c0 .293-.406.8-.774.801H3.75c-.403 0-.838-.413-.838-.8l-.002-3.079a.177.177 0 0 0-.174-.176l-1.199-.014a.176.176 0 0 0-.067.013Zm2.69 11.122 5.679.029V8.16H4.16v4.397Zm.232-11.099a.175.175 0 0 0-.176.175v2.435c0 .097.079.176.176.176h3.92a.175.175 0 0 0 .174-.176V1.634a.176.176 0 0 0-.175-.176h-3.92Z"})})}),yn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("path",{fill:"currentColor",d:"M7 1.25c-2.29 0-4.584.943-6.297 2.838l-.434.485C-.08 4.956-.09 5.596.242 5.998c.335.403.888.415 1.237.032l.438-.482c2.7-2.988 7.466-2.988 10.166 0l.438.482c.349.383.902.37 1.237-.032.332-.402.322-1.042-.027-1.425l-.434-.489C11.584 2.194 9.29 1.25 7 1.25ZM6.973 5.3c-1.375.012-2.739.635-3.682 1.831l-.438.557a1.083 1.083 0 0 0-.229.726c.01.268.113.521.287.703.171.181.397.276.63.26a.828.828 0 0 0 .608-.332l.434-.552c1.118-1.417 3.64-1.512 4.834.004l.437.548c.154.202.373.32.606.332a.8.8 0 0 0 .632-.26c.17-.182.273-.435.284-.703a1.108 1.108 0 0 0-.23-.726l-.437-.553C9.728 5.888 8.343 5.288 6.973 5.3Z"}),a.jsx("circle",{cx:"7",cy:"11.05",r:"1.867",fill:"currentColor"})]})}),kn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M4.031 4.031h.006M6.195 1.5H4.5c-1.05 0-1.575 0-1.976.204-.353.18-.64.467-.82.82-.204.4-.204.926-.204 1.976v1.695c0 .458 0 .688.052.904.046.19.121.374.224.542.116.189.278.35.603.675l2.937 2.938c.743.742 1.114 1.114 1.542 1.253.377.122.782.122 1.159 0 .428-.14.8-.51 1.542-1.253l1.695-1.695c.742-.743 1.114-1.114 1.253-1.542a1.88 1.88 0 0 0 0-1.159c-.14-.428-.51-.8-1.253-1.542L8.316 2.38c-.324-.325-.486-.487-.675-.603a1.9 1.9 0 0 0-.542-.224C6.883 1.5 6.653 1.5 6.195 1.5M4.344 4.031a.312.312 0 1 1-.625 0 .312.312 0 0 1 .625 0"})})}),jn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M7 0a7 7 0 1 1 0 14A7 7 0 0 1 7 0Zm0 1.866a5.134 5.134 0 0 0-3.257 9.102C3.853 9.002 4.821 7.467 7 7.467c2.179 0 3.146 1.535 3.256 3.5A5.134 5.134 0 0 0 7 1.866ZM7 2.8a1.867 1.867 0 1 1-.001 3.733A1.867 1.867 0 0 1 7 2.8Z"})})}),In=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.4",d:"M7 1.5 1.5 11.5h11L7 1.5Z"}),a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M7 6v2"}),a.jsx("circle",{cx:"7",cy:"9.75",r:"0.75",fill:"currentColor",stroke:"none"})]})}),Cn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M10.938 1.003c.196.003.376.007.538.018.331.023.668.074.998.216.488.211.918.56 1.199 1.027.199.33.27.672.3.987.028.297.027.655.027 1.035v5.428c0 .38.001.738-.027 1.035-.03.315-.101.657-.3.987a2.553 2.553 0 0 1-1.019.94l-.18.087c-.33.142-.667.193-.998.216-.324.022-.72.021-1.178.021H3.702c-.459 0-.854 0-1.178-.021a3.168 3.168 0 0 1-.874-.167l-.124-.05a2.583 2.583 0 0 1-1.199-1.026c-.199-.33-.27-.672-.3-.987C0 10.452 0 10.094 0 9.714V4.286c0-.38-.001-.738.027-1.035.03-.315.101-.657.3-.987l.112-.17a2.615 2.615 0 0 1 1.087-.857l.124-.049a3.17 3.17 0 0 1 .874-.167C2.848 1 3.244 1 3.702 1h6.596l.64.003ZM3.702 3c-.487 0-.8 0-1.04.017-.23.016-.312.043-.344.057a.596.596 0 0 0-.275.218c.01-.02-.01 0-.024.151C2 3.623 2 3.867 2 4.286v5.428c0 .42.001.664.019.843.008.091.019.134.024.15.044.07.13.157.274.219h.001c.032.014.113.041.344.057.24.017.553.017 1.04.017h6.596c.486 0 .8 0 1.04-.017.23-.016.312-.043.344-.057a.59.59 0 0 0 .274-.219.758.758 0 0 0 .025-.15c.018-.18.019-.424.019-.843V4.286c0-.42-.001-.664-.019-.843a.763.763 0 0 0-.025-.151.594.594 0 0 0-.274-.218c-.032-.014-.113-.041-.344-.057a7.799 7.799 0 0 0-.427-.015L10.298 3H3.702Zm4.24.5a1 1 0 0 1 0 2h-.008a1 1 0 0 1 0-2h.008Zm2.534 0a1 1 0 0 1 0 2h-.01a1 1 0 0 1 0-2h.01Z"})})}),Rn={projects:mn,chat:Wt,articles:Tt,mail:fn,github:on,globe:sn,linkedin:dn,reddit:wn,exit:en,camera:Ht,"qr-code":gn,download:Yt,save:bn,pencil:pn,"arrow-left":At,"arrow-right":Dt,cross:Ut,checkmark:zt,plus:vn,minus:hn,window:Cn,user:jn,duplicate:Qt,eye:Xt,"eye-off":Jt,signal:yn,audio:Ot,hardware:an,burger:Ft,repository:xn,"chevron-down":Zt,"chevron-up":$t,"chevron-left":qt,"chevron-right":Gt,branch:Bt,commit:Kt,folder:nn,file:tn,tag:kn,key:un,git:rn,home:ln,info:cn,warning:In},le=i.forwardRef(function(n,e){const{"aria-hidden":r,"aria-label":s,"aria-labelledby":o,color:c,role:l,size:p=14,style:h,type:d,...u}=n,v=Rn[d];if(!v)return console.warn(`Icon type "${d}" not found`),null;const m=s!==void 0||o!==void 0;return i.createElement(v,{...u,"aria-hidden":r??(m?void 0:!0),"aria-label":s,"aria-labelledby":o,ref:e,height:p,role:l??(m?"img":void 0),style:{flexShrink:0,...h,...c?{color:c}:void 0},width:p})}),Ze=i.forwardRef(function(n,e){const{className:r="",color:s,size:o=48,style:c,...l}=n,p=typeof o=="number"?`${o}px`:o;return a.jsx("div",{ref:e,className:["nk-spinner",r].filter(Boolean).join(" "),style:{...c,width:o,height:o,fontSize:p,...s?{color:s}:void 0},role:"status","aria-label":"Loading",...l})});function ze(t){return t==null||typeof t=="boolean"||typeof t=="string"&&!t.trim()?!1:Array.isArray(t)?t.some(ze):i.isValidElement(t)&&t.type===i.Fragment?ze(t.props.children):!0}function En(t,n){const e=t.getBoundingClientRect(),r=n.clientX-e.left,s=n.clientY-e.top;t.style.setProperty("--nk-button-glow-x",`${r}px`),t.style.setProperty("--nk-button-glow-y",`${s}px`)}const Le=i.forwardRef(function(n,e){const{as:r,children:s,className:o,disabled:c,fullWidth:l=!1,icon:p,iconAlignment:h="left",loading:d=!1,onClick:u,onKeyDown:v,onMouseMove:m,role:g,shape:k,tabIndex:b,textAlignment:x="center",tone:V,variant:E="primary",..._}=n,C=r??"button",P=c||d,I=!!p&&!ze(s),L=C==="a"&&"href"in _&&typeof _.href=="string",T=typeof C=="string"&&C!=="button"&&!L,F=y=>{if(P){y.preventDefault(),y.stopPropagation();return}const S=u;S==null||S(y)},H=y=>{En(y.currentTarget,y);const S=m;S==null||S(y)},O=y=>{const S=v;S==null||S(y),!(y.defaultPrevented||P||!T||y.key!=="Enter"&&y.key!==" ")&&(y.preventDefault(),y.currentTarget.click())},M=C==="button"?{disabled:P,type:_.type??"button"}:{"aria-disabled":P||void 0},Z=L&&P?{href:void 0}:void 0,R=L&&P?g??"link":T?g??"button":g,w=C==="button"?b:L&&P?void 0:P?-1:T?b??0:b;return i.createElement(C,{..._,...M,...Z,ref:e,"aria-busy":d||void 0,className:["nk-button",o].filter(Boolean).join(" "),"data-full-width":l||void 0,"data-icon-only":I||void 0,"data-shape":k,"data-tone":V,"data-variant":E,onClick:F,onKeyDown:T?O:v,onMouseMove:H,role:R,tabIndex:w},a.jsxs(a.Fragment,{children:[a.jsxs("span",{className:"nk-button__content",style:{justifyContent:x},children:[p&&h==="left"?a.jsx(le,{size:14,type:p}):null,s,p&&h==="right"?a.jsx(le,{size:14,type:p}):null]}),d?a.jsx(Ze,{"aria-hidden":"true","aria-label":void 0,className:"nk-button__spinner",role:void 0,size:16}):null]}))}),ae=i.forwardRef(function(n,e){const{align:r="left",as:s,className:o,size:c="body",tone:l="default",weight:p,...h}=n,d=s??"p";return i.createElement(d,{...h,ref:e,className:["nk-text",o].filter(Boolean).join(" "),"data-align":r,"data-size":c,"data-tone":l,"data-weight":p})}),Pn=i.forwardRef(function(n,e){const{children:r,className:s,header:o,spacing:c="standard",...l}=n;return a.jsxs(Pe,{...l,ref:e,className:["nk-card",s].filter(Boolean).join(" "),"data-has-header":o?!0:void 0,"data-spacing":c,children:[o?a.jsxs("div",{className:"nk-card__header",children:[o.title?a.jsx(ae,{as:"span",size:"caption",tone:"muted",weight:"semibold",children:o.title}):null,o.title&&o.subtitle?a.jsx("span",{"aria-hidden":"true",className:"nk-card__separator",children:"•"}):null,o.subtitle?a.jsx(ae,{as:"span",size:"caption",tone:"muted",weight:"semibold",children:o.subtitle}):null]}):null,o?a.jsx("div",{className:"nk-card__content","data-spacing":c,children:r}):r]})});function ce(t){return t!==void 0&&t!==!1&&t!=="false"}function fe(t,n){return t?!0:n}const lt=i.createContext(void 0);function Mn(){return i.useContext(lt)}const ct=i.forwardRef(function(n,e){var I;const{"aria-invalid":r,checked:s,children:o,className:c,defaultChecked:l,disabled:p=!1,invalid:h=!1,name:d,onChange:u,required:v=!1,style:m,value:g="on",...k}=n,b=Mn(),x=String(g),V=(b==null?void 0:b.value)!==void 0,E=p||!!(b!=null&&b.disabled),_=!!(b!=null&&b.required&&!b.hasSelection&&b.validationValue===x),C=h||ce(r);function P(L){u==null||u(L),L.defaultPrevented||b==null||b.handleChange(L)}return a.jsxs("label",{className:["nk-checkbox",c].filter(Boolean).join(" "),"data-disabled":E||void 0,"data-invalid":C||void 0,style:m,children:[a.jsx("input",{...k,ref:e,"aria-invalid":fe(h,r),checked:b?V?(I=b.value)==null?void 0:I.includes(x):void 0:s,className:"nk-checkbox__control",defaultChecked:b&&!V?b.defaultValue.includes(x):l,disabled:E,name:(b==null?void 0:b.name)??d,onChange:P,required:v||_,type:"checkbox",value:g}),a.jsx("span",{"aria-hidden":"true",className:"nk-checkbox__visual",children:a.jsx(le,{className:"nk-checkbox__icon",size:12,type:"checkmark"})}),o!==void 0?a.jsxs(ae,{as:"span",className:"nk-checkbox__label",children:[o,v?a.jsx("span",{"aria-hidden":"true",className:"nk-checkbox__required",children:"*"}):null]}):null]})}),ut=Symbol("nk-field-control-metadata");function dt(t){if(typeof t!="function"&&typeof t!="object"||t===null)return;const n=t,e=n[ut];return e||(n.type!==void 0&&n.type!==t?dt(n.type):void 0)}function ft(t,n){Object.assign(t,{[ut]:{requiredCommunication:n}})}const Ln=Object.freeze([]);function ht(t,n){i.Children.forEach(t,e=>{if(e==null||typeof e=="boolean")return;if(!i.isValidElement(e))throw new Error("CheckboxGroup children must be direct Checkbox elements or fragments");if(e.type===i.Fragment){ht(e.props.children,n);return}if(e.type!==ct)throw new Error("CheckboxGroup children must be direct Checkbox elements or fragments");const r=e;n.push({disabled:!!r.props.disabled,required:!!r.props.required,value:String(r.props.value??"on")})})}function Sn(t){const n=[];ht(t,n);const e=new Set;return n.forEach(r=>{if(e.has(r.value))throw new Error("CheckboxGroup Checkbox values must be unique");e.add(r.value)}),n}function Nn(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}const pt=i.forwardRef(function(n,e){const{"aria-invalid":r,children:s,className:o,defaultValue:c=Ln,disabled:l=!1,invalid:p=!1,name:h,onChange:d,orientation:u="vertical",required:v=!1,value:m,...g}=n,k=i.useRef(null),[b,x]=i.useState(c),V=m!==void 0,E=V?m:b,_=p||ce(r),C=Sn(s),P=l?[]:C.filter(w=>!w.disabled).map(w=>w.value),I=new Set(P),L=E.some(w=>I.has(w)),T=P[0],F=C.find(w=>!w.disabled&&w.value===T),H=c.some(w=>I.has(w)),O=!!(F!=null&&F.required),M=i.useCallback(w=>Nn(w,k,e),[e]);i.useEffect(()=>{var N;if(V)return;const w=(N=k.current)==null?void 0:N.querySelector('input[type="checkbox"]'),y=w instanceof HTMLInputElement?w.form:null;if(!y)return;const S=y.getRootNode();function A(B){var U;if(B.target!==y||B.defaultPrevented)return;const Q=Array.from(((U=k.current)==null?void 0:U.querySelectorAll('input[type="checkbox"]'))??[]).find(G=>!G.disabled&&G.value===T);Q&&(Q.required=!!(O||v&&!H)),x(c)}return S.addEventListener("reset",A),()=>S.removeEventListener("reset",A)},[s,c,H,V,v,O,T]);function Z(w){if(!V){const y=w.currentTarget.value,S=w.currentTarget.checked;x(A=>S?[...new Set([...A,y])]:A.filter(N=>N!==y))}d==null||d(w)}const R={defaultValue:c,disabled:l,handleChange:Z,hasSelection:L,name:h,required:v,value:m,validationValue:T};return a.jsx(lt.Provider,{value:R,children:a.jsx("div",{...g,ref:M,"aria-disabled":l||void 0,"aria-invalid":fe(p,r),className:["nk-checkbox-group",o].filter(Boolean).join(" "),"data-disabled":l||void 0,"data-invalid":_||void 0,"data-orientation":u,role:"group",children:s})})});ft(pt,"label");const _n=[{minWidth:he("xl"),marginPercent:32,preferredWidth:1200},{minWidth:he("lg"),marginPercent:20,preferredWidth:1100},{minWidth:he("md"),marginPercent:14,preferredWidth:he("md")},{minWidth:he("sm"),marginPercent:8,preferredWidth:650}],Vn=16;function Tn(t){for(const n of _n)if(t>=n.minWidth)return n}function An(t,n){if(!Number.isFinite(t)||!Number.isFinite(n)||t<he("sm")||n<=0)return;const e=Tn(t);if(!e)return;const r=t*e.marginPercent/100,s=t-r*2,o=Math.min(e.preferredWidth,t-Vn),c=Math.max(s,o);let l=Math.floor(c/n);return l%2===0&&(l-=1),l=Math.max(l,1),Math.min((l-1)*n,t)}const Dn=typeof window>"u"?i.useEffect:i.useLayoutEffect;function On(t,n){if(typeof t=="function"){t(n);return}t&&(t.current=n)}function Bn(t){const n=window.getComputedStyle(t),e=Number.parseFloat(n.paddingLeft)+Number.parseFloat(n.paddingRight);return Math.max(t.clientWidth-e,0)}function Fn(t){const e=window.getComputedStyle(t).getPropertyValue("--nk-cell").trim().match(/^([+]?(?:\d+\.?\d*|\.\d+))px$/i);if(!e)return;const r=Number.parseFloat(e[1]);return Number.isFinite(r)&&r>0?r:void 0}function Hn(t,n){const e=i.useRef(null),r=i.useRef(null),s=i.useRef(void 0),[o,c]=i.useState(void 0),l=i.useCallback(d=>{if(!n){if(s.current===void 0)return;s.current=void 0,c(void 0);return}const u=Bn(d),v=Fn(d),m=v===void 0?void 0:An(u,v);s.current!==m&&(s.current=m,c(m))},[n]),p=i.useCallback(d=>{var v;if((v=r.current)==null||v.disconnect(),r.current=null,typeof ResizeObserver>"u")return;const u=new ResizeObserver(()=>l(d));u.observe(d),r.current=u},[l]),h=i.useCallback(d=>{var u;(u=r.current)==null||u.disconnect(),r.current=null,e.current=d,On(t,d),!(!d||typeof window>"u"||!n)&&(l(d),p(d))},[p,n,t,l]);return Dn(()=>{e.current&&l(e.current)}),i.useEffect(()=>(e.current&&n&&p(e.current),()=>{var d;(d=r.current)==null||d.disconnect(),r.current=null}),[p,n]),{rootReference:h,innerWidth:o}}const Wn=i.forwardRef(function(n,e){const{accent:r,as:s,children:o,className:c,constrain:l=!0,fill:p="none",mode:h="grid",spacing:d="standard",style:u,theme:v="light",...m}=n,{rootReference:g,innerWidth:k}=Hn(e,l),b=s??"div",x=r!==void 0?{...u,"--nk-accent":r}:u;return i.createElement(b,{...m,ref:g,className:["nk-content",c].filter(Boolean).join(" "),"data-constrain":l,"data-fill":p,"data-mode":h,"data-spacing":d,"data-theme":v,style:x},i.createElement("div",{className:"nk-content__inner",style:k===void 0?void 0:{width:`${k}px`}},o))}),zn=i.forwardRef(function(n,e){const{"aria-hidden":r,"aria-label":s,"aria-labelledby":o,"aria-orientation":c,className:l,decorative:p=!1,orientation:h="horizontal",role:d,text:u,...v}=n,g=p?{"aria-hidden":!0,"aria-label":void 0,"aria-labelledby":void 0,role:void 0}:{"aria-hidden":r,"aria-label":s??(o===void 0&&h==="horizontal"?u:void 0),"aria-labelledby":o,"aria-orientation":c??h,role:d??"separator"};return a.jsx("div",{...v,...g,ref:e,className:["nk-divider",l].filter(Boolean).join(" "),"data-has-text":!!u||void 0,"data-orientation":h,children:u&&h==="horizontal"?a.jsx("span",{className:"nk-divider__text",children:u}):null})});function Oe(t){return typeof t=="string"?t.trim().length>0:t!=null&&t!==!1&&t!==!0}function Ue(...t){const n=t.flatMap(r=>(r==null?void 0:r.split(/\s+/).filter(Boolean))??[]),e=[...new Set(n)];return e.length>0?e.join(" "):void 0}const Zn=i.forwardRef(function(n,e){const{children:r,className:s,description:o,disabled:c=!1,error:l,label:p,orientation:h="vertical",required:d=!1,...u}=n,v=i.useId(),m=r.props.id??`${v}-control`,g=`${v}-label`,k=`${v}-description`,b=`${v}-error`,x=Oe(p),V=Oe(o),E=Oe(l),_=dt(r.type),C=_!==void 0,P=c||!!r.props.disabled,I=d||!!r.props.required,L=I&&(_==null?void 0:_.requiredCommunication)==="label",T=Ue(r.props["aria-describedby"],V?k:void 0,E?b:void 0),F=Ue(x?g:void 0,r.props["aria-labelledby"]),H=I?a.jsx("span",{"aria-hidden":"true",className:"nk-field__required",children:"*"}):null,O=L?a.jsx("span",{className:"nk-field__required-text",children:", select at least one"}):null,M=i.cloneElement(r,{"aria-describedby":T,"aria-invalid":E?!0:r.props["aria-invalid"],"aria-labelledby":F,disabled:P||void 0,id:m,required:I||void 0});return a.jsxs("div",{...u,ref:e,className:["nk-field",s].filter(Boolean).join(" "),"data-disabled":P||void 0,"data-has-label":x||void 0,"data-invalid":E||void 0,"data-orientation":h,"data-required":I||void 0,children:[x&&C?a.jsxs(ae,{as:"span",className:"nk-field__label",id:g,size:"caption",weight:"medium",children:[p,H,O]}):null,x&&!C?a.jsxs(ae,{as:"label",className:"nk-field__label",htmlFor:m,id:g,size:"caption",weight:"medium",children:[p,H]}):null,a.jsxs("div",{className:"nk-field__body",children:[M,V?a.jsx(ae,{as:"p",className:"nk-field__description",id:k,size:"caption",tone:"muted",children:o}):null,E?a.jsx(ae,{as:"p","aria-live":"polite",className:"nk-field__error",id:b,size:"caption",tone:"danger",children:l}):null]})]})});function Be(t){return Array.isArray(t)?t.length>0:t!=null&&String(t).length>0}function qn(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}function Ye(t){return t!=null&&t!==!1&&t!==!0&&t!==""}function Gn(t){var e;const n=(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"))==null?void 0:e.set;n?n.call(t,""):t.value=""}const $n=i.forwardRef(function(n,e){const{"aria-busy":r,"aria-invalid":s,className:o,clearable:c=!1,defaultValue:l,disabled:p=!1,id:h,invalid:d=!1,leading:u,loading:v=!1,onChange:m,readOnly:g=!1,style:k,trailing:b,type:x="text",value:V,...E}=n,_=i.useId(),C=i.useRef(null),[P,I]=i.useState(Be(l)),[L,T]=i.useState(!1);i.useEffect(()=>{x!=="password"&&T(!1)},[x]);const F=i.useCallback(W=>qn(W,C,e),[e]),H=h??`${_}-control`,O=p||v,M=d||ce(s),Z=V!==void 0?Be(V):P,R=x==="password"&&L?"text":x,w=fe(d,s),y=c&&Z&&!g&&!O,S=x==="password"&&!v,A=y||S,N=Ye(u),B=Ye(b)||A;function Q(W){V===void 0&&I(Be(W.currentTarget.value)),m==null||m(W)}function U(){const W=C.current;W&&(Gn(W),W.dispatchEvent(new Event("input",{bubbles:!0})),W.focus())}function G(){T(W=>!W)}return a.jsxs("div",{className:["nk-input",o].filter(Boolean).join(" "),"data-clearable":c||void 0,"data-disabled":O||void 0,"data-invalid":M||void 0,"data-leading":N||void 0,"data-loading":v||void 0,"data-read-only":g||void 0,"data-has-trailing-action":A||void 0,"data-trailing":B||void 0,style:k,children:[N?a.jsx("span",{className:"nk-input__leading",children:u}):null,a.jsx("input",{...E,ref:F,"aria-busy":v?!0:r,"aria-invalid":w,className:"nk-input__control",defaultValue:l,disabled:O,id:H,onChange:Q,readOnly:g,type:R,value:V}),B?a.jsxs("span",{className:"nk-input__trailing",children:[b,y?a.jsx(Le,{"aria-controls":H,"aria-label":"Clear input",className:"nk-input__action",icon:"cross",onClick:U,shape:"rectangle",type:"button",variant:"ghost"}):null,S?a.jsx(Le,{"aria-controls":H,"aria-label":L?"Hide password":"Show password","aria-pressed":L,className:"nk-input__action",disabled:O,icon:L?"eye-off":"eye",onClick:G,shape:"rectangle",type:"button",variant:"ghost"}):null]}):null,v?a.jsx(Ze,{"aria-hidden":"true","aria-label":void 0,className:"nk-input__spinner",role:void 0,size:14}):null]})}),Re=i.createContext(void 0),Qe=typeof window>"u"?i.useEffect:i.useLayoutEffect;function Xe(t,n){const e=t.ownerDocument.defaultView;if(!e)return;const r=e.getComputedStyle(t);Array.from(n.style).filter(o=>o.startsWith("--nk-")).forEach(o=>{n.style.removeProperty(o)});for(let o=0;o<r.length;o+=1){const c=r.item(o);c.startsWith("--nk-")&&n.style.setProperty(c,r.getPropertyValue(c))}}function Kn(t){const{children:n,source:e}=t,r=i.useRef(null),s=i.useContext(Re);return Qe(()=>{const o=r.current;if(!(!o||!s))return s.registerBranch(o)},[s]),Qe(()=>{var d;const o=r.current;if(!o)return;Xe(e,o);const l=e.closest(".nk-content")??e,p=(d=e.ownerDocument.defaultView)==null?void 0:d.MutationObserver;if(!p)return;const h=new p(()=>{Xe(e,o)});return h.observe(l,{attributeFilter:["class","data-theme","style"],attributes:!0}),()=>h.disconnect()},[e]),a.jsx("div",{className:"nk-portal",ref:r,style:{display:"contents"},children:n})}function Ne(t){const{children:n,container:e,inheritFrom:r}=t,s=i.useRef(null),[o,c]=i.useState(!1);i.useEffect(()=>{c(!0)},[]);const l=r??s.current,p=(l==null?void 0:l.ownerDocument)??(typeof document>"u"?null:document),h=e??(p==null?void 0:p.body)??null;return a.jsxs(a.Fragment,{children:[r?null:a.jsx("span",{"aria-hidden":"true",hidden:!0,ref:s}),o&&l&&h?Ct.createPortal(a.jsx(Kn,{source:l,children:n}),h):null]})}const Un=1e3,Yn=10,Je=new WeakMap;function Ee(t){const n=Je.get(t);if(n)return n;const e={focusLayers:new Set,layers:[],listeners:new Set};return Je.set(t,e),e}function et(t){t.listeners.forEach(n=>n())}function _e(t,n){const e=i.useRef(Symbol("nk-overlay-layer")),[,r]=i.useReducer(l=>l+1,0);i.useEffect(()=>{if(!t||!n)return;const l=Ee(n),p=()=>r();return l.listeners.add(p),l.layers.push(e.current),et(l),()=>{l.listeners.delete(p);const h=l.layers.indexOf(e.current);h>=0&&l.layers.splice(h,1),et(l)}},[t,n]);const s=n?Ee(n):null,o=(s==null?void 0:s.layers.indexOf(e.current))??-1,c=o>=0?o:(s==null?void 0:s.layers.length)??0;return{id:e.current,zIndex:Un+c*Yn}}function tt(t,n){const e=Ee(t).layers;return e.length>0&&e[e.length-1]===n}function Qn(t,n,e){i.useEffect(()=>{if(!t||!n)return;const r=Ee(n);return r.focusLayers.add(e),()=>{r.focusLayers.delete(e)}},[t,e,n])}function nt(t,n){const e=Ee(t);for(let r=e.layers.length-1;r>=0;r-=1){const s=e.layers[r];if(e.focusLayers.has(s))return s===n}return!1}function Xn(t,n){const e=t.composedPath();return n.some(r=>{var c;const s=r.current;if(!s)return!1;if(e.includes(s))return!0;const o=(c=s.ownerDocument.defaultView)==null?void 0:c.Node;return o&&t.target instanceof o?s.contains(t.target):!1})}function Ve(t){const{active:n,boundaries:e,dismissOnEscape:r=!0,dismissOnPointerDownOutside:s=!0,layerId:o,onEscapeDismiss:c,onEscapeKeyDown:l,onPointerDownOutside:p,onPointerDownOutsideDismiss:h,ownerDocument:d}=t;i.useEffect(()=>{if(!n||!d)return;function u(m){m.key!=="Escape"||!r||!tt(d,o)||(l==null||l(m),!m.defaultPrevented&&(m.preventDefault(),c==null||c()))}function v(m){!s||!tt(d,o)||Xn(m,e)||(p==null||p(m),!m.defaultPrevented&&(h==null||h()))}return d.addEventListener("keydown",u,!0),d.addEventListener("pointerdown",v,!0),()=>{d.removeEventListener("keydown",u,!0),d.removeEventListener("pointerdown",v,!0)}},[n,e,r,s,o,c,l,p,h,d])}const Jn=["a[href]","area[href]","button","input:not([type=hidden])","select","textarea","iframe","[contenteditable]:not([contenteditable='false'])","[tabindex]"].join(",");function er(t,n){let e=t;for(;e;){if(e.hidden||e.inert||e.getAttribute("aria-hidden")==="true")return!0;const r=e.ownerDocument.defaultView,s=r==null?void 0:r.getComputedStyle(e);if((s==null?void 0:s.display)==="none"||(s==null?void 0:s.visibility)==="hidden")return!0;if(e===n)break;e=e.parentElement}return!1}function tr(t,n){var o;const e=(o=t.ownerDocument.defaultView)==null?void 0:o.HTMLInputElement;if(!e||!(t instanceof e)||t.type!=="radio"||!t.name)return!0;const r=n.filter(c=>c instanceof e&&c.type==="radio"&&c.name===t.name&&c.form===t.form),s=r.find(c=>c.checked);return s?s===t:r[0]===t}function nr(t){const n=Array.from(t.querySelectorAll(Jn)).filter(e=>!e.matches(":disabled")&&e.tabIndex>=0&&!er(e,t));return n.filter(e=>tr(e,n))}function rt(t,n){const e=[t,...n];return[...new Set(e.flatMap(s=>nr(s)))].sort((s,o)=>{var p;if(s===o)return 0;const c=s.compareDocumentPosition(o),l=((p=s.ownerDocument.defaultView)==null?void 0:p.Node.DOCUMENT_POSITION_FOLLOWING)??4;return c&l?-1:1})}function Fe(t,n,e){return e?t.contains(e)||[...n].some(r=>r.contains(e)):!1}function vt(t){const{active:n,autoFocus:e=!0,container:r,initialFocusReference:s,layerId:o,restoreFocus:c=!0}=t,l=(r==null?void 0:r.ownerDocument)??null,p=i.useRef(new Set),h=i.useCallback(u=>(p.current.add(u),()=>p.current.delete(u)),[]),d=i.useMemo(()=>({registerBranch:h}),[h]);return Qn(n&&!!r,l,o),i.useEffect(()=>{var E,_;if(!n||!r)return;const u=r.ownerDocument,v=(E=u.defaultView)==null?void 0:E.HTMLElement,m=(_=u.defaultView)==null?void 0:_.Node,g=v&&u.activeElement instanceof v?u.activeElement:null;let k=!0;function b(){const C=s==null?void 0:s.current;(C&&Fe(r,p.current,C)?C:rt(r,p.current)[0]??r).focus({preventScroll:!0})}function x(C){if(C.key!=="Tab"||!nt(u,o))return;const P=rt(r,p.current);if(P.length===0){C.preventDefault(),r==null||r.focus({preventScroll:!0});return}const I=P[0],L=P[P.length-1],T=u.activeElement,F=Fe(r,p.current,T);C.shiftKey&&(T===I||!F)?(C.preventDefault(),L.focus()):!C.shiftKey&&(T===L||!F)&&(C.preventDefault(),I.focus())}function V(C){nt(u,o)&&m&&C.target instanceof m&&!Fe(r,p.current,C.target)&&b()}return u.addEventListener("keydown",x,!0),u.addEventListener("focusin",V,!0),e&&Promise.resolve().then(()=>{k&&b()}),()=>{k=!1,u.removeEventListener("keydown",x,!0),u.removeEventListener("focusin",V,!0),c&&(g!=null&&g.isConnected)&&g.focus({preventScroll:!0})}},[n,e,r,s,o,c]),d}function rr(){const[t,n]=i.useState(!1);return i.useEffect(()=>{const e=typeof window>"u"?null:window;if(!(e!=null&&e.matchMedia))return;const r=e.matchMedia("(prefers-reduced-motion: reduce)"),s=()=>{n(r.matches)};return s(),r.addEventListener("change",s),()=>r.removeEventListener("change",s)},[]),t}function Te(t,n=200){const e=rr(),[r,s]=i.useState(t);return i.useEffect(()=>{if(t){s(!0);return}if(!r)return;if(e||n<=0){s(!1);return}const o=window.setTimeout(()=>{s(!1)},n);return()=>window.clearTimeout(o)},[n,t,e,r]),{present:r,state:t?"open":r?"closing":"closed"}}const Me=new WeakMap;function or(t,n){i.useEffect(()=>{if(!t||!n)return;const e=Me.get(n);if(e)e.count+=1;else{const r=n.body,s=n.defaultView,o=s&&Number.parseFloat(s.getComputedStyle(r).paddingRight)||0,c=n.documentElement.clientWidth,l=s&&c>0?Math.max(0,s.innerWidth-c):0,p={count:1,overflow:r.style.overflow,paddingRight:r.style.paddingRight};Me.set(n,p),r.style.overflow="hidden",l>0&&(r.style.paddingRight=`${o+l}px`)}return()=>{const r=Me.get(n);r&&(r.count-=1,!(r.count>0)&&(n.body.style.overflow=r.overflow,n.body.style.paddingRight=r.paddingRight,Me.delete(n)))}},[t,n])}function sr(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}function ir(t){const{"aria-label":n,"aria-labelledby":e,children:r,className:s,closeButtonLabel:o="Close modal",exitable:c=!0,forwardedReference:l,initialFocusReference:p,lockScroll:h=!0,onClose:d,open:u,ownerDocument:v,presenceState:m,restoreFocus:g=!0,role:k="dialog",style:b,title:x,trapFocus:V=!0,...E}=t,_=i.useRef(null),C=i.useContext(Re),P=`${i.useId()}-title`,[I,L]=i.useState(null),T=_e(!0,v),F=i.useMemo(()=>[_],[]),H=!!(x!=null&&x.trim()),O=e??(n===void 0&&H?P:void 0),M=i.useCallback(S=>{sr(S,_,l),L(S)},[l]);i.useLayoutEffect(()=>{I&&(I.inert=!u)},[I,u]);const Z=i.useCallback(()=>{d==null||d("escape")},[d]),R=i.useCallback(()=>{d==null||d("outside")},[d]);Ve({active:u,boundaries:F,dismissOnEscape:c,dismissOnPointerDownOutside:c,layerId:T.id,onEscapeDismiss:Z,onPointerDownOutsideDismiss:R,ownerDocument:v});const w=vt({active:u&&V,container:I,initialFocusReference:p,layerId:T.id,restoreFocus:g});or(h,v);const y=c?a.jsx(Le,{"aria-label":o,className:"nk-modal__close",icon:"cross",onClick:()=>d==null?void 0:d("close-button"),shape:"rectangle",type:"button",variant:"ghost"}):null;return a.jsx(Re.Provider,{value:u&&V?w:C,children:a.jsx("div",{className:"nk-modal__overlay","data-state":m,role:"presentation",style:{zIndex:T.zIndex},children:a.jsxs(Pe,{...E,ref:M,"aria-hidden":u?void 0:!0,"aria-label":u?n:void 0,"aria-labelledby":u?O:void 0,"aria-modal":u?"true":void 0,className:["nk-modal",s].filter(Boolean).join(" "),"data-state":m,role:u?k:void 0,style:b,tabIndex:-1,children:[H?a.jsxs("div",{className:"nk-modal__header",children:[a.jsx(ae,{as:"h2",className:"nk-modal__title",id:P,size:"subtitle",weight:"semibold",children:x}),y]}):y,r]})})})}const ar=i.forwardRef(function(n,e){const{open:r,portalContainer:s}=n,o=Te(r),c=(s==null?void 0:s.ownerDocument)??(typeof document>"u"?null:document);return o.present?a.jsx(Ne,{container:s,children:a.jsx(ir,{...n,forwardedReference:e,ownerDocument:c,presenceState:o.state==="closing"?"closing":"open"})}):null}),lr=Number.parseInt(i.version,10);function mt(t){return lr>=19?t.props.ref:t.ref}function Se(t,n){typeof t=="function"?t(n):t&&(t.current=n)}const cr=12,ur={bottom:"top",left:"right",right:"left",top:"bottom"};function ot(t,n){const e=Math.min(cr,n/2);return Math.min(Math.max(e,t),n-e)}function dr(t){return ur[t]}function fr(t,n){return n==="left"||n==="right"?t.width:t.height}function hr(t,n,e,r,s,o){const c={bottom:o-e.bottom-n*2,left:e.left-n*2,right:s-e.right-n*2,top:e.top-n*2},l=dr(t),p=fr(r,t),h=c[t]<p&&c[l]>c[t]?l:t;let d=e.left+(e.width-r.width)/2,u=e.top+(e.height-r.height)/2;return h==="top"?u=e.top-r.height-n:h==="bottom"?u=e.bottom+n:h==="left"?d=e.left-r.width-n:d=e.right+n,d=Math.min(Math.max(n,d),Math.max(n,s-n-r.width)),u=Math.min(Math.max(n,u),Math.max(n,o-n-r.height)),{arrowOffset:h==="top"||h==="bottom"?ot(e.left+e.width/2-d,r.width):ot(e.top+e.height/2-u,r.height),left:d,placement:h,top:u}}const pr=8;function gt(t,n,e,r){const[s,o]=i.useState(null);return i.useEffect(()=>{if(!t||!e||!r){o(null);return}const c=e.ownerDocument.defaultView;if(!c)return;const l=c,p=l.getComputedStyle(e),h=Number.parseFloat(p.getPropertyValue("--nk-space-8")),d=Number.isFinite(h)?h:pr;function u(){const g=e==null?void 0:e.getBoundingClientRect(),k=r==null?void 0:r.getBoundingClientRect();!g||!k||o(hr(n,d,g,k,l.innerWidth,l.innerHeight))}u(),l.addEventListener("resize",u),l.addEventListener("scroll",u,!0);const v=l.ResizeObserver,m=v?new v(u):null;return m==null||m.observe(e),m==null||m.observe(r),()=>{l.removeEventListener("resize",u),l.removeEventListener("scroll",u,!0),m==null||m.disconnect()}},[t,r,n,e]),s}function vr(t,n,e){n.current=t,Se(e,t)}function mr(t,n,e){n.current=t,Se(e,t)}function gr(t,n){const e=(t==null?void 0:t.split(/\s+/).filter(Boolean))??[];return e.includes(n)||e.push(n),e.join(" ")}function wr(t){const n=t.tagName.toLowerCase();return t.getAttribute("role")==="button"&&n!=="button"?!1:["button","input","select","summary","textarea"].includes(n)?!0:n==="a"&&t.hasAttribute("href")}function xr(t){return t==="grid"||t==="listbox"||t==="menu"||t==="tree"?t:"dialog"}const br=i.forwardRef(function(n,e){const{"aria-label":r,"aria-labelledby":s,autoFocus:o=!0,children:c,className:l,closeOnEscape:p=!0,closeOnOutsideInteraction:h=!0,defaultOpen:d=!1,disabled:u=!1,initialFocusReference:v,onEscapeKeyDown:m,onOpenChange:g,onPointerDownOutside:k,open:b,placement:x="bottom",portalContainer:V,restoreFocus:E=!0,role:_="dialog",style:C,tabIndex:P,trapFocus:I=!1,trigger:L,...T}=n;if(L.type===i.Fragment)throw new Error("Popover requires a single non-Fragment trigger");const F=i.useId(),H=i.useContext(Re),O=`${F}-popover`,M=L.props,Z=mt(L),R=M.id??`${F}-trigger`,w=u||M.disabled===!0||M["aria-disabled"]===!0||M["aria-disabled"]==="true",y=b!==void 0,[S,A]=i.useState(d),N=y?b:S,B=Te(N),Q=i.useRef(null),U=i.useRef(null),G=i.useRef("programmatic"),W=i.useRef(null),se=i.useRef(N),ue=i.useRef(null),[pe,be]=i.useReducer(D=>D+1,0),[z,Y]=i.useState(null),[te,X]=i.useState(null),q=(V==null?void 0:V.ownerDocument)??(z==null?void 0:z.ownerDocument)??(typeof document>"u"?null:document),de=_e(B.present,q),J=i.useMemo(()=>[Q,U],[]),ne=gt(B.present,x,z,te),ve=N?{}:{inert:""},ye=i.useCallback(D=>{mr(D,Q,Z),Y(D)},[Z]),ke=i.useCallback(D=>{vr(D,U,e),X(D)},[e]),ie=i.useCallback((D,K)=>{N!==D&&(y?(W.current={open:D,reason:K},be()):(G.current=K,A(D)),g==null||g(D,K))},[y,g,N]),je=i.useCallback(()=>{ie(!1,"escape")},[ie]),me=i.useCallback(()=>{ie(!1,"outside")},[ie]),f=i.useCallback(D=>{var Ce;if(k==null||k(D),D.defaultPrevented)return;const K=(Ce=q==null?void 0:q.defaultView)==null?void 0:Ce.HTMLElement;ue.current=K?D.composedPath().find(we=>we instanceof K&&we.tabIndex>=0)??D.target:D.target},[k,q]);Ve({active:N,boundaries:J,dismissOnEscape:p,dismissOnPointerDownOutside:h,layerId:de.id,onEscapeDismiss:je,onEscapeKeyDown:m,onPointerDownOutside:f,onPointerDownOutsideDismiss:me,ownerDocument:q});const j=vt({active:N&&I,autoFocus:o,container:te,initialFocusReference:v,layerId:de.id,restoreFocus:E});i.useEffect(()=>{if(!N||I||!o||!te)return;let D=!0;return Promise.resolve().then(()=>{if(!D)return;const K=v==null?void 0:v.current;(K&&te.contains(K)?K:te).focus({preventScroll:!0})}),()=>{D=!1}},[o,v,N,te,I]),i.useEffect(()=>{var $e;const D=se.current;se.current=N;const K=W.current,Ce=y?D!==N&&(K==null?void 0:K.open)===N?K.reason:"programmatic":G.current;if(W.current=null,N){G.current="programmatic",ue.current=null;return}const we=q==null?void 0:q.activeElement,Ae=ue.current,De=($e=q==null?void 0:q.defaultView)==null?void 0:$e.HTMLElement,It=Ce==="outside"&&De&&Ae instanceof De&&we instanceof De&&(Ae===we||Ae.contains(we));D&&!I&&E&&!It&&(z==null||z.focus({preventScroll:!0})),ue.current=null},[pe,y,N,q,E,I,z]),i.useEffect(()=>{u&&N&&ie(!1,"programmatic")},[u,N,ie]);function $(D){var K;if(w){D.preventDefault(),D.stopPropagation();return}(K=M.onClick)==null||K.call(M,D),!D.defaultPrevented&&ie(!N,"trigger")}function ee(D){var K;(K=M.onKeyDown)==null||K.call(M,D),!(D.defaultPrevented||w||wr(D.currentTarget)||D.key!=="Enter"&&D.key!==" ")&&(D.preventDefault(),D.currentTarget.click())}if(u)return L;const re=typeof L.type=="string",oe=re?L.type:null,ge=oe==="a"&&typeof M.href=="string",qe=re&&!(oe==="button"||oe==="input"||oe==="select"||oe==="summary"||oe==="textarea"||ge),Ge=ge&&w,jt=i.cloneElement(L,{"aria-controls":N?gr(M["aria-controls"],O):M["aria-controls"],"aria-expanded":N,"aria-haspopup":M["aria-haspopup"]??xr(_),"aria-disabled":w?!0:M["aria-disabled"],className:[M.className,"nk-popover__trigger"].filter(Boolean).join(" "),href:Ge?void 0:M.href,id:R,onClick:$,onKeyDown:re?ee:M.onKeyDown,ref:ye,role:M.role??(Ge?"link":qe?"button":void 0),tabIndex:w?-1:M.tabIndex??(qe?0:void 0)});return a.jsxs(a.Fragment,{children:[jt,a.jsx(Re.Provider,{value:N&&I?j:H,children:B.present&&q?a.jsx(Ne,{container:V,inheritFrom:z,children:a.jsxs(Pe,{...T,...ve,ref:ke,"aria-hidden":N?void 0:!0,"aria-label":N?r:void 0,"aria-labelledby":N?s??(r===void 0?R:void 0):void 0,className:["nk-popover",l].filter(Boolean).join(" "),"data-placement":(ne==null?void 0:ne.placement)??x,"data-state":B.state==="closing"?"closing":"open",id:O,role:N?_:void 0,style:ne?{...C,"--nk-popover-arrow-offset":`${ne.arrowOffset}px`,left:ne.left,top:ne.top,zIndex:de.zIndex}:{...C,visibility:"hidden",zIndex:de.zIndex},tabIndex:P??-1,children:[a.jsx("span",{"aria-hidden":"true",className:"nk-popover__arrow"}),a.jsx("div",{className:"nk-popover__content",children:c})]})}):null})]})}),yr=3,kr=10,wt=4;function jr(t){return Number.isFinite(t)?Math.min(kr,Math.max(yr,Math.trunc(t))):wt}function xe(t,n,e){return(n==="numeric"?t.replace(/[^0-9]/g,""):t.replace(/[^0-9a-z]/gi,"").toUpperCase()).slice(0,e)}function Ir(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}function Cr(t,n){var r;const e=(r=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"))==null?void 0:r.set;e?e.call(t,n):t.value=n}function He(t,n,e){const r=Math.min(e-1,Math.max(0,n)),s=Math.min(r+1,t.value.length);t.focus(),t.setSelectionRange(r,s)}function Rr(t){const{defaultValue:n,disabled:e,forwardedReference:r,length:s,mode:o,onChange:c,onComplete:l,onFocus:p,onKeyDown:h,onPaste:d,onSelect:u,readOnly:v,value:m}=t,g=jr(s),k=xe(n,o,g),b=i.useRef(null),[x,V]=i.useState(k),[E,_]=i.useState(0),C=m!==void 0,P=xe(C?m:x,o,g),I=i.useCallback(R=>Ir(R,b,r),[r]);i.useEffect(()=>{!C&&x!==P&&V(P)},[C,P,x]),i.useEffect(()=>{var S;if(C)return;const R=(S=b.current)==null?void 0:S.form;if(!R)return;const w=R.getRootNode();function y(A){A.target!==R||A.defaultPrevented||(V(k),_(0))}return w.addEventListener("reset",y),()=>w.removeEventListener("reset",y)},[C,k]);function L(R){const w=R.selectionStart??P.length;return Math.min(g-1,Math.max(0,w))}function T(R){const w=R.currentTarget,y=w.selectionStart??w.value.length,S=xe(w.value,o,g),A=xe(w.value.slice(0,y),o,g).length;w.value=S,C||V(S),c==null||c(R),S.length===g&&S!==P&&(l==null||l(S));const N=Math.min(g-1,A);_(N),w.setSelectionRange(N,Math.min(N+1,S.length))}function F(R){if(d==null||d(R),R.defaultPrevented||e||v)return;const w=xe(R.clipboardData.getData("text"),o,g);if(R.preventDefault(),w.length===0)return;const y=R.currentTarget,S=y.selectionStart??P.length,A=y.selectionEnd??S,N=w.length===g?w:xe(P.slice(0,S)+w+P.slice(A),o,g),B=w.length===g?g:Math.min(g,S+w.length);Cr(y,N),y.setSelectionRange(B,B),y.dispatchEvent(new Event("input",{bubbles:!0}))}function H(R){if(h==null||h(R),R.defaultPrevented||R.key!=="ArrowLeft"&&R.key!=="ArrowRight")return;R.preventDefault();const w=R.key==="ArrowLeft"?-1:1,y=Math.min(g-1,Math.max(0,L(R.currentTarget)+w));_(y),He(R.currentTarget,y,g)}function O(R){p==null||p(R);const w=Math.min(g-1,P.length);_(w),He(R.currentTarget,w,g)}function M(R){u==null||u(R),_(L(R.currentTarget))}function Z(R,w){if(R.preventDefault(),e)return;const y=b.current;y&&(_(w),He(y,w,g))}return{activeIndex:E,handleChange:T,handleFocus:O,handleKeyDown:H,handlePaste:F,handleSelect:M,handleSlotPointerDown:Z,inputCallbackReference:I,length:g,renderedValue:P}}const Er=i.forwardRef(function(n,e){const{"aria-invalid":r,autoCapitalize:s,autoComplete:o="one-time-code",className:c,censored:l=!1,defaultValue:p="",disabled:h=!1,invalid:d=!1,length:u=wt,mode:v="numeric",onChange:m,onComplete:g,onFocus:k,onKeyDown:b,onPaste:x,onSelect:V,readOnly:E=!1,style:_,value:C,wrap:P=!1,...I}=n,{activeIndex:L,handleChange:T,handleFocus:F,handleKeyDown:H,handlePaste:O,handleSelect:M,handleSlotPointerDown:Z,inputCallbackReference:R,length:w,renderedValue:y}=Rr({defaultValue:p,disabled:h,forwardedReference:e,length:u,mode:v,onChange:m,onComplete:g,onFocus:k,onKeyDown:b,onPaste:x,onSelect:V,readOnly:E,value:C}),S=d||ce(r),A=!P&&w>=6&&w%2===0,N=w/2,B={..._,"--nk-pin-input-columns":Math.ceil(w/2)};return a.jsxs("span",{className:["nk-pin-input",c].filter(Boolean).join(" "),"data-disabled":h||void 0,"data-invalid":S||void 0,"data-read-only":E||void 0,"data-wrap":P||void 0,style:B,children:[a.jsx("input",{...I,ref:R,"aria-invalid":fe(d,r),autoCapitalize:s??(v==="alphanumeric"?"characters":"off"),autoComplete:o,className:"nk-pin-input__control",disabled:h,inputMode:v==="numeric"?"numeric":"text",maxLength:w,minLength:w,onChange:T,onFocus:F,onKeyDown:H,onPaste:O,onSelect:M,pattern:v==="numeric"?`[0-9]{${w}}`:`[0-9A-Za-z]{${w}}`,readOnly:E,spellCheck:!1,type:"text",value:y}),a.jsx("span",{"aria-hidden":"true",className:"nk-pin-input__slots",children:Array.from({length:w},(Q,U)=>a.jsxs("span",{className:"nk-pin-input__slot-group",children:[A&&U===N?a.jsx("span",{className:"nk-pin-input__separator",children:"-"}):null,a.jsx("span",{className:"nk-pin-input__slot","data-active":L===U||void 0,onPointerDown:G=>Z(G,U),children:l&&y[U]?a.jsx("span",{className:"nk-pin-input__censor"}):y[U]??""})]},U))})]})}),xt=i.createContext(void 0);function Pr(){const t=i.useContext(xt);if(!t)throw new Error("Radio must be rendered within RadioGroup");return t}function Mr(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}const Lr=i.forwardRef(function(n,e){const{children:r,className:s,disabled:o=!1,style:c,value:l,...p}=n,h=Pr(),d=i.useRef(null),u=h.disabled||o,v=h.value!==void 0,m=h.value===l,g=i.useCallback(k=>Mr(k,d,e),[e]);return i.useEffect(()=>{var k;!v&&u&&((k=d.current)!=null&&k.checked)&&(d.current.checked=!1)},[v,u]),a.jsxs("label",{className:["nk-radio",s].filter(Boolean).join(" "),"data-disabled":u||void 0,style:c,children:[a.jsx("input",{...p,ref:g,checked:v?!u&&m:void 0,className:"nk-radio__control",defaultChecked:v?void 0:!u&&h.defaultValue===l,disabled:u,name:h.name,onChange:h.onChange,required:h.required,type:"radio",value:l}),a.jsx("span",{"aria-hidden":"true",className:"nk-radio__visual"}),a.jsx(ae,{as:"span",className:"nk-radio__label",children:r})]})}),bt=i.forwardRef(function(n,e){const{"aria-invalid":r,children:s,className:o,defaultValue:c,disabled:l=!1,invalid:p=!1,name:h,onChange:d,orientation:u="vertical",required:v=!1,value:m,...g}=n,k=p||ce(r),b={defaultValue:c,disabled:l,name:h,onChange:d,required:v,value:m};return a.jsx(xt.Provider,{value:b,children:a.jsx("div",{...g,ref:e,"aria-disabled":l||void 0,"aria-invalid":fe(p,r),"aria-required":v||void 0,className:["nk-radio-group",o].filter(Boolean).join(" "),"data-disabled":l||void 0,"data-invalid":k||void 0,"data-orientation":u,role:"radiogroup",children:s})})});ft(bt,"group");function We(t,n,e){if(t.length===0)return-1;for(let r=1;r<=t.length;r+=1){const s=(n+e*r+t.length)%t.length;if(!t[s].disabled)return s}return-1}function Sr(t,n,e){for(let r=1;r<=t.length;r+=1){const s=(e+r+t.length)%t.length,o=t[s];if(!o.disabled&&o.label.toLocaleLowerCase().startsWith(n))return s}return-1}function Nr(t){const n=new Set;t.forEach(e=>{if(n.has(e.value))throw new Error("Select option values must be unique");n.add(e.value)})}function _r(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}function Vr(t){const{"aria-invalid":n,children:e,className:r,defaultValue:s,disabled:o=!1,forwardedReference:c,invalid:l=!1,placeholder:p,style:h,value:d,...u}=t,v=fe(l,n),m=l||ce(n);return a.jsxs("span",{className:["nk-select",r].filter(Boolean).join(" "),"data-disabled":o||void 0,"data-invalid":m||void 0,"data-mode":"native",style:h,children:[a.jsxs("select",{...u,ref:c,"aria-invalid":v,className:"nk-select__control",defaultValue:d===void 0?s??(p!==void 0?"":void 0):void 0,disabled:o,value:d,children:[p!==void 0?a.jsx("option",{disabled:!0,value:"",children:p}):null,e]}),a.jsx(le,{className:"nk-select__icon",type:"chevron-down"})]})}function Tr(t,n,e){const[r,s]=i.useState(null);return i.useEffect(()=>{if(!t||!n){s(null);return}const o=n.ownerDocument.defaultView;if(!o)return;const c=o;function l(){const d=n==null?void 0:n.getBoundingClientRect();if(!d)return;const u=8,v=4,m=c.innerHeight-d.bottom-v-u,g=d.top-v-u,k=m<160&&g>m,b=Math.max(72,k?g:m),x=e==null?void 0:e.getBoundingClientRect(),V=Math.max(d.width,(x==null?void 0:x.width)??d.width),E=Math.min(Math.max(u,d.left),Math.max(u,c.innerWidth-u-V)),_=k?Math.max(u,d.top-v-Math.min((x==null?void 0:x.height)??b,b)):d.bottom+v;s({left:E,maxHeight:b,minWidth:d.width,top:_})}l(),c.addEventListener("resize",l),c.addEventListener("scroll",l,!0);const p=c.ResizeObserver,h=p?new p(l):null;return h==null||h.observe(n),e&&(h==null||h.observe(e)),()=>{c.removeEventListener("resize",l),c.removeEventListener("scroll",l,!0),h==null||h.disconnect()}},[t,e,n]),r}function Ar(t){const{active:n,closeOnEscape:e,closeOnOutsideInteraction:r,highlightedIndex:s,id:o,listboxReference:c,onEscapeDismiss:l,onEscapeKeyDown:p,onHighlight:h,onOutsideDismiss:d,onPointerDownOutside:u,onSelect:v,options:m,ownerDocument:g,position:k,selectedValue:b,state:x,triggerReference:V}=t,E=i.useRef(null),_=_e(!0,g),C=i.useMemo(()=>[V,E],[V]),P=i.useCallback(I=>{E.current=I,c(I)},[c]);return Ve({active:n,boundaries:C,dismissOnEscape:e,dismissOnPointerDownOutside:r,layerId:_.id,onEscapeDismiss:l,onEscapeKeyDown:p,onPointerDownOutside:u,onPointerDownOutsideDismiss:d,ownerDocument:g}),a.jsx("div",{"aria-hidden":n?void 0:!0,"aria-labelledby":o,className:"nk-select__listbox","data-state":x,id:`${o}-listbox`,ref:P,role:"listbox",style:k?{left:k.left,maxHeight:k.maxHeight,minWidth:k.minWidth,top:k.top,zIndex:_.zIndex}:{visibility:"hidden",zIndex:_.zIndex},children:m.map((I,L)=>a.jsxs("div",{"aria-disabled":I.disabled||void 0,"aria-selected":I.value===b,className:"nk-select__option","data-highlighted":L===s||void 0,"data-selected":I.value===b||void 0,id:`${o}-option-${L}`,onPointerDown:T=>{T.preventDefault(),I.disabled||v(I)},onPointerMove:()=>{I.disabled||h(L)},role:"option",children:[I.icon?a.jsx(le,{type:I.icon}):null,a.jsx("span",{className:"nk-select__option-label",children:I.label}),I.value===b?a.jsx(le,{className:"nk-select__check",type:"checkmark"}):null]},I.value))})}function Dr(t){var me;const{"aria-invalid":n,className:e,closeOnEscape:r=!0,closeOnOutsideInteraction:s=!0,defaultValue:o="",disabled:c=!1,displayOverride:l,form:p,forwardedReference:h,id:d,invalid:u=!1,name:v,onChange:m,onClick:g,onEscapeKeyDown:k,onKeyDown:b,onOpenChange:x,onPointerDownOutside:V,options:E,placeholder:_,portalContainer:C,required:P=!1,style:I,value:L,width:T,...F}=t;Nr(E);const H=i.useId(),O=d??H,M=i.useRef(null),Z=i.useRef(null),R=i.useRef(null),w=i.useRef(""),[y,S]=i.useState(null),[A,N]=i.useState(!1),[B,Q]=i.useState(-1),[U,G]=i.useState(o),W=L!==void 0,se=W?L:U,ue=E.find(f=>f.value===se),pe=u||ce(n),be=fe(u,n),z=Te(A),Y=(C==null?void 0:C.ownerDocument)??((me=M.current)==null?void 0:me.ownerDocument)??(typeof document>"u"?null:document),te=Tr(z.present,M.current,y),X=T===void 0?I:{...I,width:T},q=l??ue,de=i.useCallback(f=>{_r(f,M,h)},[h]),J=i.useCallback(f=>{A!==f&&(N(f),x==null||x(f))},[x,A]),ne=i.useCallback((f=1)=>{const j=E.findIndex(ee=>ee.value===se&&!ee.disabled),$=f===1?-1:E.length;Q(j>=0?j:We(E,$,f)),J(!0)},[E,se,J]),ve=i.useCallback(f=>{var j;f.disabled||(W||G(f.value),J(!1),(j=M.current)==null||j.focus(),m==null||m(f.value))},[W,m,J]),ye=i.useCallback(()=>{var f;J(!1),(f=M.current)==null||f.focus()},[J]),ke=i.useCallback(()=>{J(!1)},[J]);function ie(f){g==null||g(f),!(f.defaultPrevented||c)&&(A?J(!1):ne())}function je(f){if(b==null||b(f),!(f.defaultPrevented||c)){if(f.key==="ArrowDown"||f.key==="ArrowUp"){f.preventDefault();const j=f.key==="ArrowDown"?1:-1;A?Q($=>We(E,$,j)):ne(j);return}if(f.key==="Home"||f.key==="End"){if(f.preventDefault(),!A)ne(f.key==="Home"?1:-1);else{const j=f.key==="Home"?1:-1,$=j===1?-1:E.length;Q(We(E,$,j))}return}if(f.key==="Enter"||f.key===" "){f.preventDefault();const j=E[B];A&&j?ve(j):A||ne();return}if(f.key==="Tab"){J(!1);return}if(f.key.length===1&&!f.altKey&&!f.ctrlKey&&!f.metaKey){const j=f.currentTarget.ownerDocument.defaultView;if(!j)return;const $=f.key.toLocaleLowerCase(),ee=w.current+$,re=Array.from(ee).every(ge=>ge===$);w.current=re?$:ee,R.current!==null&&j.clearTimeout(R.current),R.current=j.setTimeout(()=>{w.current="",R.current=null},500);const oe=Sr(E,w.current,B);oe>=0&&(f.preventDefault(),A||J(!0),Q(oe))}}}return i.useEffect(()=>{var f;if(A&&B>=0){const j=Y==null?void 0:Y.getElementById(`${O}-option-${B}`);j&&(y!=null&&y.contains(j))&&((f=j.scrollIntoView)==null||f.call(j,{block:"nearest"}))}},[B,O,y,A]),i.useEffect(()=>{var $;const f=($=M.current)==null?void 0:$.form;if(!f)return;function j(){const ee=Z.current,re=W?se:o;if(ee){const oe=Array.from(ee.options),ge=oe.find(Ie=>Ie.value===re)??oe[0];oe.forEach(Ie=>{Ie.defaultSelected=Ie===ge})}W||G(o),J(!1)}return f.addEventListener("reset",j),()=>f.removeEventListener("reset",j)},[o,p,W,se,J]),i.useEffect(()=>()=>{var j;const f=(j=M.current)==null?void 0:j.ownerDocument.defaultView;f&&R.current!==null&&f.clearTimeout(R.current)},[]),a.jsxs("span",{className:["nk-select",e].filter(Boolean).join(" "),"data-disabled":c||void 0,"data-invalid":pe||void 0,"data-mode":"custom","data-open":A||void 0,style:X,children:[a.jsxs("button",{...F,ref:de,"aria-activedescendant":A&&B>=0?`${O}-option-${B}`:void 0,"aria-controls":`${O}-listbox`,"aria-expanded":A,"aria-haspopup":"listbox","aria-invalid":be,"aria-required":P||void 0,"aria-autocomplete":"none",className:"nk-select__trigger",disabled:c,form:p,id:O,onClick:ie,onKeyDown:je,role:"combobox",type:"button",children:[q?a.jsxs("span",{className:"nk-select__value",children:[q.icon?a.jsx(le,{type:q.icon}):null,a.jsx("span",{className:"nk-select__value-label",children:q.label})]}):a.jsx("span",{className:"nk-select__placeholder",children:_}),a.jsx(le,{className:"nk-select__icon",type:"chevron-down"})]}),v||P?a.jsxs("select",{ref:Z,"aria-hidden":"true",className:"nk-select__form-control",disabled:c,form:p,name:v,onChange:()=>{},onInvalid:f=>{var j;f.preventDefault(),(j=M.current)==null||j.focus()},required:P,tabIndex:-1,value:se,children:[a.jsx("option",{value:""}),E.map(f=>a.jsx("option",{disabled:f.disabled,value:f.value,children:f.label},f.value))]}):null,z.present&&Y?a.jsx(Ne,{container:C,inheritFrom:M.current,children:a.jsx(Ar,{active:A,closeOnEscape:r,closeOnOutsideInteraction:s,highlightedIndex:B,id:O,listboxReference:S,onEscapeDismiss:ye,onEscapeKeyDown:k,onHighlight:Q,onOutsideDismiss:ke,onPointerDownOutside:V,onSelect:ve,options:E,ownerDocument:Y,position:te,selectedValue:se,state:z.state==="closing"?"closing":"open",triggerReference:M})}):null]})}const Or=i.forwardRef(function(n,e){const{options:r}=n;return r!==void 0?a.jsx(Dr,{...n,forwardedReference:e}):a.jsx(Vr,{...n,forwardedReference:e})}),Br=i.forwardRef(function(n,e){const{"aria-hidden":r=!0,className:s,height:o="1em",shape:c="rectangle",style:l,width:p=c==="circle"?"1em":"100%",...h}=n;return a.jsx("div",{...h,ref:e,"aria-hidden":r,className:["nk-skeleton",s].filter(Boolean).join(" "),"data-shape":c,style:{...l,width:p,height:o}})}),Fr=i.forwardRef(function(n,e){const{"aria-invalid":r,className:s,disabled:o=!1,style:c,...l}=n;return a.jsxs("span",{className:["nk-switch",s].filter(Boolean).join(" "),"data-disabled":o||void 0,"data-invalid":ce(r)||void 0,style:c,children:[a.jsx("input",{...l,ref:e,"aria-invalid":r,className:"nk-switch__control",disabled:o,role:"switch",type:"checkbox"}),a.jsx("span",{"aria-hidden":"true",className:"nk-switch__track",children:a.jsx("span",{className:"nk-switch__thumb"})})]})});function st(t){return Number.isFinite(t)?Math.max(1,Math.floor(t)):1}const Hr=i.forwardRef(function(n,e){const{"aria-invalid":r,className:s,disabled:o=!1,invalid:c=!1,minRows:l,readOnly:p=!1,resize:h="vertical",rows:d,style:u,...v}=n,m=st(d??l??3),k=`calc(${st(l??d??3)*1.25}em + var(--nk-text-area-padding) * 2 + var(--nk-text-area-border-width) * 2)`,b={...u,"--nk-text-area-min-height":k};return a.jsx("textarea",{...v,ref:e,"aria-invalid":fe(c,r),className:["nk-text-area",s].filter(Boolean).join(" "),"data-invalid":c||ce(r)||void 0,"data-resize":h,disabled:o,readOnly:p,rows:m,style:b})}),Wr=500,yt=i.createContext(null);function zr(t){const{children:n,delay:e=Wr}=t,r=i.useMemo(()=>({delay:e}),[e]);return a.jsx(yt.Provider,{value:r,children:n})}const kt=500,it=100;function Zr(t,n,e,r){n.current=t,Se(e,t),Se(r,t)}function qr(t){return Number.isFinite(t)?Math.max(0,t):kt}function Gr(t,n){const e=(t==null?void 0:t.split(/\s+/).filter(Boolean))??[];return e.includes(n)||e.push(n),e.join(" ")}const $r=i.forwardRef(function(n,e){const{children:r,className:s,content:o,contentClassName:c,contentStyle:l,delay:p,disabled:h=!1,onOpenChange:d,placement:u="top",portalContainer:v,style:m}=n;if(o==null||typeof o=="boolean"||typeof o=="string"&&!o.trim())throw new Error("Tooltip content must not be empty");if(r.type===i.Fragment)throw new Error("Tooltip requires a single non-Fragment trigger");const k=`${i.useId()}-tooltip`,b=i.useContext(yt),x=r.props,V=mt(r),E=i.useRef(null),_=i.useRef(null),C=i.useRef(h),P=i.useRef(!1),I=i.useRef(null),L=i.useRef(null),T=i.useRef(null),F=i.useRef(!1),H=i.useRef(!1),O=i.useRef(!1),M=i.useRef(!1),[Z,R]=i.useState(null),[w,y]=i.useState(null),[S,A]=i.useState(!1);C.current=h;const N=qr(p??(b==null?void 0:b.delay)??kt),B=Te(S),Q=(v==null?void 0:v.ownerDocument)??(Z==null?void 0:Z.ownerDocument)??(typeof document>"u"?null:document),U=_e(B.present,Q),G=gt(B.present,u,Z,w),W=i.useMemo(()=>[E,_],[]),se=Gr(x["aria-describedby"],k),ue=S&&B.present?se:x["aria-describedby"],pe=i.useCallback(f=>{Zr(f,E,V,e),R(f)},[e,V]),be=i.useCallback(f=>{_.current=f,f||(M.current=!1),y(f)},[]),z=i.useCallback(()=>{const f=I.current;f&&f.ownerWindow.clearTimeout(f.timerId),I.current=null},[]),Y=i.useCallback(()=>{const f=L.current;f&&f.ownerWindow.clearTimeout(f.timerId),L.current=null},[]),te=i.useCallback(()=>{const f=T.current;f&&f.ownerWindow.clearTimeout(f.timerId),T.current=null},[]),X=i.useCallback(f=>{P.current!==f&&(f||(M.current=!1),P.current=f,A(f),d==null||d(f))},[d]),q=i.useCallback(f=>{var ee,re;if(Y(),H.current||O.current||M.current)return;if(f===0){X(!1);return}const j=((ee=E.current)==null?void 0:ee.ownerDocument.defaultView)??((re=_.current)==null?void 0:re.ownerDocument.defaultView);if(!j){X(!1);return}const $=j.setTimeout(()=>{L.current=null,!H.current&&!O.current&&!M.current&&X(!1)},f);L.current={ownerWindow:j,timerId:$}},[Y,X]),de=i.useCallback(()=>{var $;if(z(),Y(),N===0){X(!0);return}const f=($=E.current)==null?void 0:$.ownerDocument.defaultView;if(!f)return;const j=f.setTimeout(()=>{I.current=null,C.current||X(!0)},N);I.current={ownerWindow:f,timerId:j}},[Y,z,N,X]);function J(f){var j;(j=x.onFocus)==null||j.call(x,f),H.current=!0,Y(),!F.current&&(z(),X(!0))}function ne(f){var j;(j=x.onBlur)==null||j.call(x,f),!f.currentTarget.contains(f.relatedTarget)&&(H.current=!1,z(),q(0))}function ve(f){var j;(j=x.onMouseEnter)==null||j.call(x,f),O.current=!0,de()}function ye(f){var j;(j=x.onMouseLeave)==null||j.call(x,f),O.current=!1,z(),q(it)}function ke(){M.current=!0,Y()}function ie(){M.current=!1,q(it)}function je(f){var ee,re;(ee=x.onPointerDown)==null||ee.call(x,f),z(),Y(),X(!1);const j=(re=E.current)==null?void 0:re.ownerDocument.defaultView;if(!j)return;F.current=!0,te();const $=j.setTimeout(()=>{F.current=!1,T.current=null},0);T.current={ownerWindow:j,timerId:$}}if(Ve({active:S,boundaries:W,dismissOnPointerDownOutside:!0,layerId:U.id,onEscapeDismiss:()=>X(!1),onPointerDownOutsideDismiss:()=>X(!1),ownerDocument:Q}),i.useEffect(()=>{h&&(z(),Y(),te(),F.current=!1,H.current=!1,O.current=!1,M.current=!1,P.current&&X(!1))},[Y,z,te,h,X]),i.useEffect(()=>()=>{z(),Y(),te()},[Y,z,te]),h)return i.cloneElement(r,{ref:pe});const me=i.cloneElement(r,{"aria-describedby":ue,className:[x.className,"nk-tooltip__trigger",s].filter(Boolean).join(" "),onBlur:ne,onFocus:J,onMouseEnter:ve,onMouseLeave:ye,onPointerDown:je,ref:pe,style:{...x.style,...m}});return a.jsxs(a.Fragment,{children:[me,B.present&&Q?a.jsx(Ne,{container:v,inheritFrom:Z,children:a.jsxs(Pe,{ref:be,"aria-hidden":S?void 0:!0,className:["nk-tooltip",c].filter(Boolean).join(" "),"data-placement":(G==null?void 0:G.placement)??u,"data-state":B.state==="closing"?"closing":"open",id:k,onMouseEnter:ke,onMouseLeave:ie,role:"tooltip",style:G?{...l,"--nk-tooltip-arrow-offset":`${G.arrowOffset}px`,left:G.left,top:G.top,zIndex:U.zIndex}:{...l,visibility:"hidden",zIndex:U.zIndex},children:[a.jsx("span",{"aria-hidden":"true",className:"nk-tooltip__arrow"}),o]})}):null]})});exports.Alert=Lt;exports.Avatar=_t;exports.Badge=Vt;exports.Button=Le;exports.Card=Pn;exports.Checkbox=ct;exports.CheckboxGroup=pt;exports.Content=Wn;exports.Divider=zn;exports.Field=Zn;exports.Icon=le;exports.Input=$n;exports.Modal=ar;exports.PinInput=Er;exports.Popover=br;exports.Radio=Lr;exports.RadioGroup=bt;exports.Select=Or;exports.Skeleton=Br;exports.Spinner=Ze;exports.Switch=Fr;exports.Text=ae;exports.TextArea=Hr;exports.Tooltip=$r;exports.TooltipProvider=zr;exports.breakpoint=he;exports.cell=Et;exports.px=Mt;exports.space=Pt;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),i=require("react"),St=require("react-dom"),_t=36,at=[2,4,8,12,16,24,32,48],Ke={sm:768,md:960,lg:1440,xl:1920};({...Object.fromEntries(at.map(t=>[`--nk-space-${t}`,`${t}px`]))});function Nt(t){if(typeof t!="number"||!Number.isFinite(t))throw new RangeError("Cell amount must be a finite number.");const n=t*_t;if(!Number.isFinite(n))throw new RangeError("Calculated cell value must be finite.");return n}function Mt(t){if(!at.some(n=>n===t))throw new RangeError(`Unsupported spacing size: ${String(t)}.`);return t}function pe(t){if(!Object.prototype.hasOwnProperty.call(Ke,t))throw new RangeError(`Unsupported breakpoint: ${String(t)}.`);return Ke[t]}function Lt(t){if(typeof t!="number"||!Number.isFinite(t))throw new RangeError("Pixel value must be a finite number.");return`${t}px`}const Se=i.forwardRef(function(n,e){const{children:r,className:s,...o}=n;return a.jsx("div",{...o,ref:e,className:["nk-surface",s].filter(Boolean).join(" "),children:r})}),Tt=i.forwardRef(function(n,e){const{children:r,className:s,role:o,tone:l="info",...c}=n;return a.jsxs(Se,{...c,ref:e,className:["nk-alert",s].filter(Boolean).join(" "),"data-tone":l,role:o,children:[a.jsx("span",{"aria-hidden":"true",className:"nk-alert__indicator"}),a.jsx("div",{className:"nk-alert__content",children:r})]})});function Vt(t){return(Array.from((t==null?void 0:t.trim())??"")[0]??"?").trim().toUpperCase()||"?"}function At(t){if(t==="?")return"neutral";const n=Array.from(t)[0]??"";if("AJO".includes(n))return"1";if("BNSV".includes(n))return"2";if("CFLQW".includes(n))return"3";if("EHKMPTX".includes(n))return"4";if("DGRUY".includes(n))return"5";if("IZ".includes(n))return"6";const e=n.codePointAt(0)??0;return String(e%6+1)}const Bt=i.forwardRef(function(n,e){const{alt:r,className:s,image:o,size:l=32,style:c,...f}=n,[h,d]=i.useState(),u=!!o&&o!==h,v=(r==null?void 0:r.trim())??"",m=Vt(v),g=typeof l=="number"?`${l}px`:l,C=v?{"aria-label":v,role:"img"}:{"aria-hidden":!0,role:void 0};function b(){d(o)}return a.jsx("div",{...f,...u?void 0:C,ref:e,className:["nk-avatar",s].filter(Boolean).join(" "),"data-palette":At(m),"data-state":u?"image":"fallback",style:{...c,"--nk-avatar-size":g},children:u?a.jsx("img",{alt:v,className:"nk-avatar__image",onError:b,src:o}):a.jsx("span",{"aria-hidden":"true",className:"nk-avatar__initial",children:m})})}),Dt=i.forwardRef(function(n,e){const{children:r,className:s,tone:o="neutral",variant:l="outline",...c}=n;return a.jsx("span",{...c,ref:e,className:["nk-badge",s].filter(Boolean).join(" "),"data-tone":o,"data-variant":l,children:r})}),Ot=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 0h1.6c.5.1 1 .3 1.3.6.3.4.5.8.5 1.3l.1 1.6v8.6c-.1.5-.3 1-.6 1.3a2 2 0 0 1-1.3.5l-1.6.1H1.9a2 2 0 0 1-1.3-.6A2 2 0 0 1 .1 12L0 10.5V1.9C.2 1.4.4.9.7.6A2 2 0 0 1 2 .1L3.5 0h7Zm-7 1.4H2.1c-.3 0-.4.1-.5.2l-.2.5v3.5a11.8 11.8 0 0 0 0 1l.4.3h.3l.7.1h1a1.4 1.4 0 0 1 .8.4l.4.4.1.4v.2l.2.3.1.4h3.2l.2-.5v-.2l.2-.6.4-.4.2-.2.6-.2h1a11.8 11.8 0 0 0 1 0l.3-.4v-.3l.1-.6V2.1c0-.3-.1-.4-.2-.5l-.5-.2H3.5Z",clipRule:"evenodd"})})}),Ft=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M5.75 10 3 7.25m0 0L5.75 4.5M3 7.25h8.5"})})}),Ht=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M8.25 10 11 7.25m0 0L8.25 4.5M11 7.25H2.5"})})}),Wt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.633",d:"M5.955 11.616 2.177 8.838a.82.82 0 0 0-.32-.143l-.985-.2-.03-.007a.148.148 0 0 1-.026-.087V5.423c0-.049.014-.076.022-.087l.034-.005.984-.202a.818.818 0 0 0 .32-.142l3.78-2.78v9.41Z"}),a.jsx("path",{fill:"currentColor",d:"M9.383 5.053c-.192-.37-.635-.454-.93-.168l-.044.033a.737.737 0 0 0-.133.825c.162.337.266.724.266 1.144 0 .421-.104.808-.266 1.145a.737.737 0 0 0 .133.824l.044.034c.28.286.738.219.93-.168A4.214 4.214 0 0 0 9.81 6.87c0-.64-.162-1.263-.427-1.818Z"}),a.jsx("path",{fill:"currentColor",d:"M10.932 3.386c-.207-.336-.635-.387-.9-.117l-.03.033a.768.768 0 0 0-.088.91c.472.756.737 1.699.737 2.692 0 1.01-.28 1.935-.737 2.692a.768.768 0 0 0 .088.91l.03.033c.265.27.693.219.9-.118.62-.993.973-2.205.973-3.517 0-1.313-.354-2.525-.973-3.518Z"}),a.jsx("path",{fill:"currentColor",d:"M12.48 1.754c-.22-.32-.62-.37-.885-.1l-.044.033c-.236.235-.265.64-.074.925.797 1.195 1.254 2.676 1.254 4.275 0 1.599-.472 3.097-1.254 4.275-.191.286-.162.69.074.925l.044.034c.266.27.664.219.885-.101.96-1.43 1.52-3.214 1.52-5.15 0-1.901-.56-3.685-1.52-5.116Z"})]})}),zt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M13 2.229c0-.413-.112-.818-.324-1.17a2.2 2.2 0 0 0-.88-.822A2.15 2.15 0 0 0 9.51.441c-.325.246-.577.58-.726.964a2.27 2.27 0 0 0 .4 2.303c.27.308.618.534 1.006.652v.095c0 .507-.197.992-.548 1.35a1.86 1.86 0 0 1-1.325.559H5.82c-.675.007-1.33.23-1.874.636V4.36a2.2 2.2 0 0 0 1.218-.936A2.26 2.26 0 0 0 4.751.542 2.16 2.16 0 0 0 3.322 0c-.525 0-1.032.193-1.43.542a2.26 2.26 0 0 0-.413 2.882c.283.451.716.783 1.219.936v5.28a2.2 2.2 0 0 0-1.218.936 2.26 2.26 0 0 0 .413 2.882c.397.35.904.542 1.43.542.524 0 1.031-.193 1.428-.542a2.26 2.26 0 0 0 .413-2.882 2.2 2.2 0 0 0-1.218-.936v-.095c0-.507.198-.992.55-1.35a1.86 1.86 0 0 1 1.324-.559h2.497c.828 0 1.622-.335 2.208-.931a3.2 3.2 0 0 0 .914-2.25V4.36c.45-.137.846-.418 1.127-.802S13 2.708 13 2.229"})})}),Zt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("rect",{width:"14",height:"2.1",y:"1.75",fill:"currentColor",rx:"1.05"}),a.jsx("rect",{width:"14",height:"2.1",y:"5.95",fill:"currentColor",rx:"1.05"}),a.jsx("rect",{width:"14",height:"2.1",y:"10.15",fill:"currentColor",rx:"1.05"})]})}),qt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.25 2.714h-1.313l-.437-.857C10.242 1.36 10.108 1 9.625 1h-5.25c-.483 0-.643.409-.875.857l-.438.857H1.75C.784 2.714 0 3.482 0 4.43v6.857C0 12.232.784 13 1.75 13h10.5c.966 0 1.75-.768 1.75-1.714V4.429c0-.947-.784-1.715-1.75-1.715ZM7 11.286c-1.933 0-3.5-1.535-3.5-3.429C3.5 5.964 5.067 4.43 7 4.43s3.5 1.535 3.5 3.428c0 1.894-1.567 3.429-3.5 3.429Z",clipRule:"evenodd"}),a.jsx("path",{fill:"currentColor",d:"M4.75 7.9a2.25 2.25 0 1 1 4.5 0 2.25 2.25 0 0 1-4.5 0Z"})]})}),Gt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M1.3 10.7c.1-.4 0-.7-.2-1A6 6 0 0 1 0 6.3C0 2.8 3.1 0 7 0s7 2.8 7 6.3-3.1 6.3-7 6.3c-.6 0-1.2 0-1.7-.2a1 1 0 0 0-.7 0l-3 1.5-.2.1a.7.7 0 0 1-.7-.9l.6-2.4Z"})})}),$t=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.8",d:"m4 7.5 2 2L10.5 5"})})}),Kt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M3.5 5.25 7 8.75l3.5-3.5"})})}),Ut=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M8.75 3.5 5.25 7l3.5 3.5"})})}),Yt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M5.25 3.5 8.75 7l-3.5 3.5"})})}),Xt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M3.5 8.75 7 5.25l3.5 3.5"})})}),Qt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.391 7.868a3.501 3.501 0 0 1-6.782 0 1 1 0 0 1-.109.007H.875a.875.875 0 1 1 0-1.75H3.5q.055 0 .109.007a3.501 3.501 0 0 1 6.782 0 1 1 0 0 1 .109-.007h2.625a.875.875 0 1 1 0 1.75H10.5a1 1 0 0 1-.109-.007M7 8.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5",clipRule:"evenodd"})})}),Jt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"m4 4 6 6M10 4l-6 6"})})}),en=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M3.5 12.25h7M7 1.75v8.167m0 0L9.917 7M7 9.917 4.083 7"})})}),tn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M8.152.192c.35 0 .663 0 .92.02.268.023.548.074.82.215.398.205.718.532.918.93.137.273.187.553.209.822.018.223.019.487.02.783.302 0 .574.001.803.02.267.023.547.072.82.213.397.206.718.533.918.932.137.273.185.552.207.821.021.26.02.575.02.93v5.012c0 .356.001.671-.02.931-.022.27-.07.549-.207.822-.2.398-.52.725-.918.93a2.126 2.126 0 0 1-.82.214c-.258.021-.57.02-.921.02H5.848c-.35 0-.663.002-.92-.02a2.124 2.124 0 0 1-.82-.214 2.117 2.117 0 0 1-.919-.931 2.177 2.177 0 0 1-.208-.82 10.57 10.57 0 0 1-.018-.792c-.145-.002-.29-.004-.43-.01a6.939 6.939 0 0 1-.595-.05 1.89 1.89 0 0 1-.6-.165 2.117 2.117 0 0 1-.918-.932 2.176 2.176 0 0 1-.207-.821c-.021-.26-.02-.575-.02-.93V3.11c0-.356-.001-.671.02-.931.022-.27.07-.549.207-.822.2-.398.52-.725.918-.93.273-.141.553-.192.82-.214.258-.021.57-.02.921-.02h5.073ZM5.848 4.577c-.377 0-.611 0-.786.015-.166.014-.207.036-.212.039a.5.5 0 0 0-.217.22l-.017.053a1.207 1.207 0 0 0-.024.174c-.015.18-.015.419-.015.8v5.012c0 .382 0 .621.015.801.007.086.016.14.024.174l.017.053a.506.506 0 0 0 .151.18l.066.04c.005.003.046.025.212.039.175.014.409.015.786.015h5.073c.377 0 .612 0 .787-.015.166-.014.207-.036.212-.038a.501.501 0 0 0 .217-.221c.004-.01.026-.056.04-.227.014-.18.015-.419.015-.801V5.879c0-.382 0-.621-.015-.8-.014-.172-.036-.218-.04-.227a.501.501 0 0 0-.217-.221c-.005-.003-.046-.025-.212-.04-.175-.014-.41-.014-.787-.014H5.848Zm-2.769-2.77c-.377 0-.611.002-.787.016-.166.014-.207.036-.212.038a.502.502 0 0 0-.217.221c-.004.01-.026.056-.04.227-.014.18-.015.419-.015.801v5.011c0 .382 0 .621.015.8.007.086.016.14.024.175l.016.052c.044.087.111.156.19.204.017.003.05.011.101.018.116.016.27.028.453.036.114.005.234.007.355.009V5.879c0-.356-.001-.671.02-.93.021-.27.07-.55.207-.822.2-.4.521-.726.918-.932.273-.14.553-.19.82-.213.258-.021.57-.02.92-.02h3.575c0-.298-.001-.498-.014-.653-.014-.171-.036-.218-.04-.227a.501.501 0 0 0-.218-.22l-.046-.015a1.143 1.143 0 0 0-.166-.024c-.175-.014-.409-.015-.786-.015H3.08Z"})})}),nn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,fill:"none",height:r,viewBox:"0 0 14 14",width:s,xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M7.042 4.475c.49 0 .97.15 1.377.429.407.28.724.677.912 1.142.187.464.237.976.141 1.469a2.57 2.57 0 0 1-.676 1.303 2.5 2.5 0 0 1-1.035.637 2.42 2.42 0 0 1-2.293-.467 2.54 2.54 0 0 1-.719-.994 2.6 2.6 0 0 1 .23-2.389c.226-.348.534-.633.893-.83a2.4 2.4 0 0 1 1.17-.3m-.017 1.157c-.354 0-.694.145-.944.402s-.392.605-.393.968c0 .755.617 1.389 1.354 1.389.73 0 1.317-.627 1.317-1.389 0-.754-.598-1.37-1.334-1.37",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),a.jsx("path",{d:"M7.023 2c2.73 0 5.303 1.51 6.656 4.154l.127.258.001.002.122.274.005.009v.007a.9.9 0 0 1 .066.303.9.9 0 0 1-.065.317v.005l-.004.008C12.665 10.313 9.904 12 6.997 12 4.09 12 1.333 10.318.066 7.349L.06 7.344l-.003-.01A1.1 1.1 0 0 1 0 7.016c0-.101.02-.202.057-.318L.06 6.69v-.002a7.7 7.7 0 0 1 2.797-3.415A7.43 7.43 0 0 1 7.023 2m0 1.284c-2.308 0-4.601 1.261-5.731 3.726 1.139 2.477 3.401 3.706 5.704 3.706 2.308 0 4.572-1.238 5.7-3.704-1.129-2.466-3.369-3.728-5.673-3.728",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})]})}),rn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,fill:"none",height:r,viewBox:"0 0 14 14",width:s,xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"m2.867 12.098 1.266.804 7-11-1.266-.804zM10.264 4.2c1.005.624 1.86 1.564 2.431 2.813-1.127 2.465-3.39 3.703-5.699 3.703q-.423-.002-.84-.06l-.745 1.17A7.5 7.5 0 0 0 6.996 12c2.907 0 5.669-1.687 6.936-4.663l.003-.008v-.005A.9.9 0 0 0 14 7.008a.9.9 0 0 0-.066-.304v-.008l-.005-.008-.121-.274-.001-.002-.127-.258h-.001a7.7 7.7 0 0 0-2.736-3.022zM7.022 2a7.43 7.43 0 0 0-4.166 1.274A7.7 7.7 0 0 0 .061 6.688L.06 6.69l-.003.007a1 1 0 0 0-.057.32q.005.163.058.317l.003.01.004.005c.658 1.54 1.718 2.73 2.99 3.523l.678-1.067C2.727 9.188 1.866 8.259 1.292 7.01c1.13-2.465 3.423-3.727 5.73-3.727q.416 0 .826.057l.743-1.17A7.4 7.4 0 0 0 7.022 2",fill:"currentColor"}),a.jsx("path",{d:"M8.343 7.219c-.061.408-.292.76-.616.968l-.872 1.369c.305.023.612-.01.906-.1.39-.123.747-.341 1.035-.638.346-.356.581-.81.677-1.303a2.6 2.6 0 0 0-.244-1.69zM7.042 4.475c-.408 0-.81.103-1.17.3-.36.198-.667.483-.893.83a2.61 2.61 0 0 0-.23 2.389q.027.063.058.124l.925-1.455a1.4 1.4 0 0 1 .472-.741l.92-1.444z",fill:"currentColor"})]})}),on=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M7 9.25 9.25 7m0 0L7 4.75M9.25 7H1m0-3.564V3.4c0-.84 0-1.26.163-1.581a1.5 1.5 0 0 1 .656-.656C2.139 1 2.56 1 3.4 1h7.2c.84 0 1.26 0 1.58.163a1.5 1.5 0 0 1 .657.656c.163.32.163.74.163 1.579v7.205c0 .838 0 1.257-.163 1.578a1.5 1.5 0 0 1-.656.656c-.321.163-.74.163-1.579.163H3.398c-.839 0-1.259 0-1.58-.163a1.5 1.5 0 0 1-.655-.656C1 11.86 1 11.44 1 10.6v-.037"})})}),sn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M12 5.5v4.867c0 .746 0 1.12-.14 1.405a1.3 1.3 0 0 1-.562.583c-.275.145-.635.145-1.355.145H4.557c-.72 0-1.08 0-1.355-.145a1.3 1.3 0 0 1-.562-.583c-.14-.285-.14-.659-.14-1.405V3.633c0-.746 0-1.12.14-1.405.123-.25.32-.455.562-.583.275-.145.635-.145 1.355-.145h3.586M12 5.5l-3.857-4M12 5.5H8.786a.655.655 0 0 1-.643-.667V1.5"})})}),an=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M2.49 2.25H5.19c.413 0 .508.004.588.021q.133.03.243.093c.064.036.128.088.421.358l.098.09c.244.224.45.42.7.56q.232.13.486.205l.17.044c.278.061.564.058.912.058h2.702c.447 0 .74 0 .966.017.217.017.307.045.356.068a.75.75 0 0 1 .342.308c.013.024.04.084.056.27.018.198.019.459.019.872v5c0 .413-.001.675-.019.872-.016.186-.043.246-.056.27a.75.75 0 0 1-.342.309c-.049.023-.139.051-.356.067-.225.017-.52.018-.966.018H2.489c-.447 0-.74 0-.966-.018-.217-.016-.307-.044-.356-.067a.75.75 0 0 1-.342-.309c-.013-.024-.04-.084-.056-.27a11 11 0 0 1-.019-.872V3.786c0-.413.001-.675.019-.872.016-.186.043-.246.056-.27a.75.75 0 0 1 .342-.309c.049-.023.139-.051.356-.067.225-.017.52-.018.966-.018"})})}),ln=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M6.293.818a1 1 0 0 1 1.414 0l5.586 5.585c.39.39.39 1.025 0 1.415l-5.586 5.585a1 1 0 0 1-1.414 0L.707 7.818a1 1 0 0 1 0-1.415L4.731 2.38l1.215 1.215a1.187 1.187 0 0 0 .554 1.68v4a1.187 1.187 0 1 0 .95 0V5.275q.06-.026.117-.06l1.865 1.864A1.186 1.186 0 0 0 10.537 8.7a1.188 1.188 0 1 0-.434-2.293L8.135 4.44a1.187 1.187 0 0 0-1.411-1.411l-1.32-1.32z"})})}),cn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 0a7 7 0 0 1 7 7.2c0 3.1-2 5.8-4.8 6.8-.3 0-.5-.2-.5-.4v-2c0-.6-.2-1-.4-1.3 1.5-.1 3.2-.7 3.2-3.5a3 3 0 0 0-.8-2c.1-.1.4-.8 0-1.8 0 0-.6-.2-2 .7a6.6 6.6 0 0 0-3.5 0C4 2.7 3.3 3 3.3 3c-.4 1-.1 1.7 0 1.9-.5.5-.8 1.1-.8 1.9 0 2.8 1.7 3.4 3.2 3.5-.2.2-.4.5-.4 1-.4.2-1.4.5-2-.6 0 0-.4-.7-1.1-.7 0 0-.7 0 0 .4 0 0 .4.2.7 1 0 0 .4 1.3 2.4 1v1.2c0 .2-.2.5-.5.4A7.2 7.2 0 0 1 0 7.2 7 7 0 0 1 7 0Z",clipRule:"evenodd"})})}),un=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 0a7 7 0 1 1 0 14A7 7 0 0 1 7 0ZM1.4 7.7c.3 2.2 1.9 4 4 4.7a9.7 9.7 0 0 1-1.9-4.7h-2Zm9 0c0 1.5-.6 3-1.8 4.7a5.6 5.6 0 0 0 4-4.7h-2.1ZM5 7.7c.2 1.4.8 3 2.1 4.6A8.7 8.7 0 0 0 9 7.7H5Zm.3-6c-2 .6-3.5 2.4-3.8 4.6h2.1l.1-.8a12 12 0 0 1 1.5-3.8Zm1.8 0A8.2 8.2 0 0 0 5 6.3h4.2v-.6a8.2 8.2 0 0 0-2.1-4Zm1.8 0a9.4 9.4 0 0 1 1.7 4.6h2c-.2-2.2-1.7-4-3.7-4.6Z",clipRule:"evenodd"})})}),dn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M9.71 0c.374 0 .678.304.678.678v.677h.677c.872 0 1.58.708 1.58 1.58v.678h.678a.678.678 0 0 1 0 1.355h-.678v1.355h.678a.677.677 0 0 1 0 1.355h-.678v1.354h.678a.678.678 0 0 1 0 1.356h-.678v.677c0 .872-.708 1.58-1.58 1.58h-.677v.678a.678.678 0 0 1-1.356 0v-.678H7.678v.678a.678.678 0 0 1-1.355 0v-.678H4.968v.678a.677.677 0 0 1-1.355 0v-.678h-.677a1.58 1.58 0 0 1-1.58-1.58v-.677H.677a.678.678 0 0 1 0-1.356h.677V7.678H.678a.678.678 0 0 1 0-1.355h.677V4.968H.678a.678.678 0 1 1 0-1.355h.677v-.677c0-.873.708-1.58 1.58-1.58h.678V.677a.678.678 0 0 1 1.355 0v.677h1.355V.678a.677.677 0 1 1 1.355 0v.677h1.354V.678c0-.374.304-.678.678-.678ZM2.936 2.71a.226.226 0 0 0-.226.226v8.128c0 .125.101.227.226.227h8.128a.228.228 0 0 0 .227-.226v-8.13a.227.227 0 0 0-.226-.225h-8.13Zm5.42 1.354c.872 0 1.58.709 1.58 1.582v2.71a1.58 1.58 0 0 1-1.58 1.58h-2.71c-.873 0-1.581-.708-1.582-1.58v-2.71c0-.873.709-1.582 1.582-1.582h2.71ZM5.645 5.42c-.125 0-.226.1-.226.226v2.71c0 .124.101.225.226.225h2.71a.226.226 0 0 0 .225-.226v-2.71a.226.226 0 0 0-.226-.225h-2.71Z"})})}),fn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M1 5.7v7.8h4.286v-3.467C5.286 9.076 6.053 8.3 7 8.3s1.714.776 1.714 1.733V13.5H13V5.7L7 .5z"})})}),hn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("circle",{cx:"7",cy:"7",r:"5.25",stroke:"currentColor",strokeWidth:"1.4"}),a.jsx("circle",{cx:"7",cy:"5",r:"0.75",fill:"currentColor",stroke:"none"}),a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M7 7v2.5"})]})}),pn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.254 7.814C11.323 7.814 13 6.177 13 4.157S11.323.5 9.254.5 5.507 2.137 5.507 4.157c0 .57.134 1.11.373 1.592a.55.55 0 0 1-.09.64l-4.423 4.318a.5.5 0 0 0 0 .715l1.779 1.737a.5.5 0 0 0 .698 0l.462-.45a.5.5 0 0 0 0-.716l-.585-.57a.5.5 0 0 1 0-.716l.605-.59a.5.5 0 0 1 .698 0l.62.604a.5.5 0 0 0 .698 0l.461-.45a.5.5 0 0 0 0-.716l-.584-.57a.5.5 0 0 1 0-.716l.761-.744a.55.55 0 0 1 .621-.085c.499.24 1.06.374 1.653.374m0-1.625c1.15 0 2.081-.91 2.081-2.032s-.932-2.032-2.081-2.032-2.082.91-2.082 2.032.932 2.032 2.082 2.032",clipRule:"evenodd"})})}),vn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14 14h-2.8V9.1c0-1.3-.6-2-1.7-2s-1.8.7-1.8 2V14H4.9V4.9h2.8v1s.9-1.5 2.9-1.5S14 5.6 14 8v6ZM1.7 3.4C.7 3.4 0 2.7 0 1.7S.8 0 1.7 0a1.7 1.7 0 0 1 0 3.4ZM0 14h3.5V4.9H0V14Z",clipRule:"evenodd"})})}),mn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"3 -2 16 22",fill:"none",children:[a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",d:"m3 3.7 8 5.9 8-5.9"}),a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",d:"M18 2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2Z"})]})}),gn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M3.5 7.121h7.243"})})}),wn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M9.534 2.136a1.784 1.784 0 0 1 1.944 2.91l-.26.258-2.522-2.522.259-.26c.166-.165.362-.297.579-.386ZM7.989 3.489 2.827 8.65a.5.5 0 0 0-.128.222l-.681 2.497a.5.5 0 0 0 .614.614l2.496-.681a.5.5 0 0 0 .222-.129l5.162-5.162L7.989 3.49Z"})})}),bn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M3.5 7.121h7.243M7.122 3.5v7.243"})})}),xn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("rect",{width:"6",height:"6",fill:"currentColor",rx:"1"}),a.jsx("rect",{width:"6",height:"6",x:"8",fill:"currentColor",rx:"1"}),a.jsx("rect",{width:"6",height:"6",y:"8",fill:"currentColor",rx:"1"}),a.jsx("rect",{width:"6",height:"6",x:"8",y:"8",fill:"currentColor",rx:"1"})]})}),kn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsxs("g",{fill:"currentColor",children:[a.jsx("path",{d:"M14 14h-3.111v-1.556h1.555V10.89H14V14ZM0 0h6.222v6.222H0V0Zm1.556 1.556v3.11h3.11v-3.11h-3.11ZM7.778 0H14v6.222H7.778V0Zm1.555 1.556v3.11h3.111v-3.11h-3.11ZM0 7.778h6.222V14H0V7.778Zm1.556 1.555v3.111h3.11v-3.11h-3.11Zm10.11-1.555H14V9h-2.333V7.778ZM9.333 10H7.778V7.778h1.555V10ZM9.31 12.444V14H7.779v-2H9.31v.444ZM9.3 11h1v1h-1zM10.3 11h1v1h-1z"}),a.jsx("path",{d:"M11.3 10H14v1h-2.7zM10.3 9h1v1h-1z"})]})})}),yn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.1 9.1a1 1 0 0 1-1-1c0-.7.5-1.2 1-1.2.6 0 1 .5 1 1.1 0 .6-.4 1.1-1 1.1Zm.2 2c-.5.5-1.3.8-2.3.8-1 0-1.8-.3-2.3-.8a.3.3 0 0 1 0-.4c.1-.1.3-.1.4 0 .4.4 1 .6 1.9.6.9 0 1.5-.2 1.9-.6 0-.1.3-.1.4 0v.4ZM3.9 8c0-.7.5-1.2 1-1.2s1 .5 1 1.1c0 .6-.5 1.1-1 1.1s-1-.5-1-1ZM14 6.8c0-1-.7-1.8-1.6-1.8-.4 0-.8.2-1 .5a6.8 6.8 0 0 0-4-1.3l.8-3 2.2.6c0 .8.8 1.5 1.5 1.5s1.4-.7 1.4-1.5c0-.7-.7-1.4-1.4-1.4-.6 0-1.2.4-1.4.9L7.8.7l-1 3.6c-1.6 0-3 .5-4.2 1.2-.3-.2-.6-.4-1-.4-.9 0-1.6.8-1.6 1.8 0 .6.3 1.1.8 1.5C.3 11 3.3 13.5 7 13.5s6.6-2.4 6.2-5.1c.5-.3.8-.9.8-1.5Z",clipRule:"evenodd"})})}),Cn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 15",fill:"none",children:[a.jsx("path",{fill:"currentColor",d:"M4.875 10.65a.437.437 0 0 0-.437.438v2.625a.438.438 0 0 0 .68.364l1.07-.713 1.07.713a.438.438 0 0 0 .68-.364v-2.625a.437.437 0 0 0-.438-.438z"}),a.jsx("path",{fill:"currentColor",stroke:"currentColor",strokeWidth:".15",d:"M12.094.075a1.17 1.17 0 0 1 1.169 1.169V12.18a1.17 1.17 0 0 1-1.17 1.17h-2.63a.732.732 0 0 1 0-1.464H11.8V9.413H2.906a.58.58 0 0 0-.58.58v1.313a.58.58 0 0 0 .58.581h.069a.731.731 0 0 1 0 1.463h-.069a2.044 2.044 0 0 1-2.044-2.044V2.12A2.044 2.044 0 0 1 2.906.075zM2.906 1.538a.58.58 0 0 0-.58.58v5.917q.276-.084.58-.085H11.8V1.538z"})]})}),jn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M9.958 0c.194 0 .49.066.663.148 0 0-.112-.12.045.042.141.147 3.117 3.214 3.178 3.278.055.059.024.032.021.03.081.175.135.48.135.673v8.374c0 .62-.743 1.455-1.453 1.455l-2.436-.007A1.02 1.02 0 0 1 10 14H4c-.073 0-.144-.009-.212-.023l-2.345-.006A1.44 1.44 0 0 1 .01 12.56C-.022 11.696.04 2.202.04 1.454.04.708.646.031 1.524.031 2.404.031 9.958 0 9.958 0ZM1.471 1.435a.174.174 0 0 0-.057.037.173.173 0 0 0-.037.056.172.172 0 0 0-.014.067l.014 10.597c0 .193.158.35.352.352L3 12.55V8a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4.592l1.3.008a.349.349 0 0 0 .351-.349l-.012-7.914a.476.476 0 0 0-.127-.297L9.948 1.56c-.07-.068-.126-.044-.126.052V4.69c0 .293-.406.8-.774.801H3.75c-.403 0-.838-.413-.838-.8l-.002-3.079a.177.177 0 0 0-.174-.176l-1.199-.014a.176.176 0 0 0-.067.013Zm2.69 11.122 5.679.029V8.16H4.16v4.397Zm.232-11.099a.175.175 0 0 0-.176.175v2.435c0 .097.079.176.176.176h3.92a.175.175 0 0 0 .174-.176V1.634a.176.176 0 0 0-.175-.176h-3.92Z"})})}),Rn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("path",{fill:"currentColor",d:"M7 1.25c-2.29 0-4.584.943-6.297 2.838l-.434.485C-.08 4.956-.09 5.596.242 5.998c.335.403.888.415 1.237.032l.438-.482c2.7-2.988 7.466-2.988 10.166 0l.438.482c.349.383.902.37 1.237-.032.332-.402.322-1.042-.027-1.425l-.434-.489C11.584 2.194 9.29 1.25 7 1.25ZM6.973 5.3c-1.375.012-2.739.635-3.682 1.831l-.438.557a1.083 1.083 0 0 0-.229.726c.01.268.113.521.287.703.171.181.397.276.63.26a.828.828 0 0 0 .608-.332l.434-.552c1.118-1.417 3.64-1.512 4.834.004l.437.548c.154.202.373.32.606.332a.8.8 0 0 0 .632-.26c.17-.182.273-.435.284-.703a1.108 1.108 0 0 0-.23-.726l-.437-.553C9.728 5.888 8.343 5.288 6.973 5.3Z"}),a.jsx("circle",{cx:"7",cy:"11.05",r:"1.867",fill:"currentColor"})]})}),In=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M4.031 4.031h.006M6.195 1.5H4.5c-1.05 0-1.575 0-1.976.204-.353.18-.64.467-.82.82-.204.4-.204.926-.204 1.976v1.695c0 .458 0 .688.052.904.046.19.121.374.224.542.116.189.278.35.603.675l2.937 2.938c.743.742 1.114 1.114 1.542 1.253.377.122.782.122 1.159 0 .428-.14.8-.51 1.542-1.253l1.695-1.695c.742-.743 1.114-1.114 1.253-1.542a1.88 1.88 0 0 0 0-1.159c-.14-.428-.51-.8-1.253-1.542L8.316 2.38c-.324-.325-.486-.487-.675-.603a1.9 1.9 0 0 0-.542-.224C6.883 1.5 6.653 1.5 6.195 1.5M4.344 4.031a.312.312 0 1 1-.625 0 .312.312 0 0 1 .625 0"})})}),En=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M7 0a7 7 0 1 1 0 14A7 7 0 0 1 7 0Zm0 1.866a5.134 5.134 0 0 0-3.257 9.102C3.853 9.002 4.821 7.467 7 7.467c2.179 0 3.146 1.535 3.256 3.5A5.134 5.134 0 0 0 7 1.866ZM7 2.8a1.867 1.867 0 1 1-.001 3.733A1.867 1.867 0 0 1 7 2.8Z"})})}),Pn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.4",d:"M7 1.5 1.5 11.5h11L7 1.5Z"}),a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M7 6v2"}),a.jsx("circle",{cx:"7",cy:"9.75",r:"0.75",fill:"currentColor",stroke:"none"})]})}),Sn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M10.938 1.003c.196.003.376.007.538.018.331.023.668.074.998.216.488.211.918.56 1.199 1.027.199.33.27.672.3.987.028.297.027.655.027 1.035v5.428c0 .38.001.738-.027 1.035-.03.315-.101.657-.3.987a2.553 2.553 0 0 1-1.019.94l-.18.087c-.33.142-.667.193-.998.216-.324.022-.72.021-1.178.021H3.702c-.459 0-.854 0-1.178-.021a3.168 3.168 0 0 1-.874-.167l-.124-.05a2.583 2.583 0 0 1-1.199-1.026c-.199-.33-.27-.672-.3-.987C0 10.452 0 10.094 0 9.714V4.286c0-.38-.001-.738.027-1.035.03-.315.101-.657.3-.987l.112-.17a2.615 2.615 0 0 1 1.087-.857l.124-.049a3.17 3.17 0 0 1 .874-.167C2.848 1 3.244 1 3.702 1h6.596l.64.003ZM3.702 3c-.487 0-.8 0-1.04.017-.23.016-.312.043-.344.057a.596.596 0 0 0-.275.218c.01-.02-.01 0-.024.151C2 3.623 2 3.867 2 4.286v5.428c0 .42.001.664.019.843.008.091.019.134.024.15.044.07.13.157.274.219h.001c.032.014.113.041.344.057.24.017.553.017 1.04.017h6.596c.486 0 .8 0 1.04-.017.23-.016.312-.043.344-.057a.59.59 0 0 0 .274-.219.758.758 0 0 0 .025-.15c.018-.18.019-.424.019-.843V4.286c0-.42-.001-.664-.019-.843a.763.763 0 0 0-.025-.151.594.594 0 0 0-.274-.218c-.032-.014-.113-.041-.344-.057a7.799 7.799 0 0 0-.427-.015L10.298 3H3.702Zm4.24.5a1 1 0 0 1 0 2h-.008a1 1 0 0 1 0-2h.008Zm2.534 0a1 1 0 0 1 0 2h-.01a1 1 0 0 1 0-2h.01Z"})})}),_n={projects:xn,chat:Gt,articles:Ot,mail:mn,github:cn,globe:un,linkedin:vn,reddit:yn,exit:on,camera:qt,"qr-code":kn,download:en,save:jn,pencil:wn,"arrow-left":Ft,"arrow-right":Ht,cross:Jt,checkmark:$t,plus:bn,minus:gn,window:Sn,user:En,duplicate:tn,eye:nn,"eye-off":rn,signal:Rn,audio:Wt,hardware:dn,burger:Zt,repository:Cn,"chevron-down":Kt,"chevron-up":Xt,"chevron-left":Ut,"chevron-right":Yt,branch:zt,commit:Qt,folder:an,file:sn,tag:In,key:pn,git:ln,home:fn,info:hn,warning:Pn},le=i.forwardRef(function(n,e){const{"aria-hidden":r,"aria-label":s,"aria-labelledby":o,color:l,role:c,size:f=14,style:h,type:d,...u}=n,v=_n[d];if(!v)return console.warn(`Icon type "${d}" not found`),null;const m=s!==void 0||o!==void 0;return i.createElement(v,{...u,"aria-hidden":r??(m?void 0:!0),"aria-label":s,"aria-labelledby":o,ref:e,height:f,role:c??(m?"img":void 0),style:{flexShrink:0,...h,...l?{color:l}:void 0},width:f})}),qe=i.forwardRef(function(n,e){const{className:r="",color:s,size:o=48,style:l,...c}=n,f=typeof o=="number"?`${o}px`:o;return a.jsx("div",{ref:e,className:["nk-spinner",r].filter(Boolean).join(" "),style:{...l,width:o,height:o,fontSize:f,...s?{color:s}:void 0},role:"status","aria-label":"Loading",...c})});function ze(t){return t==null||typeof t=="boolean"||typeof t=="string"&&!t.trim()?!1:Array.isArray(t)?t.some(ze):i.isValidElement(t)&&t.type===i.Fragment?ze(t.props.children):!0}function Nn(t,n){const e=t.getBoundingClientRect(),r=n.clientX-e.left,s=n.clientY-e.top;t.style.setProperty("--nk-button-glow-x",`${r}px`),t.style.setProperty("--nk-button-glow-y",`${s}px`)}const Re=i.forwardRef(function(n,e){const{as:r,children:s,className:o,disabled:l,fullWidth:c=!1,icon:f,iconAlignment:h="left",loading:d=!1,onClick:u,onKeyDown:v,onMouseMove:m,role:g,shape:C,tabIndex:b,textAlignment:w="center",tone:S,variant:I="primary",...M}=n,k=r??"button",j=l||d,y=!!f&&!ze(s),E=k==="a"&&"href"in M&&typeof M.href=="string",L=typeof k=="string"&&k!=="button"&&!E,O=R=>{if(j){R.preventDefault(),R.stopPropagation();return}const V=u;V==null||V(R)},H=R=>{Nn(R.currentTarget,R);const V=m;V==null||V(R)},B=R=>{const V=v;V==null||V(R),!(R.defaultPrevented||j||!L||R.key!=="Enter"&&R.key!==" ")&&(R.preventDefault(),R.currentTarget.click())},_=k==="button"?{disabled:j,type:M.type??"button"}:{"aria-disabled":j||void 0},Z=E&&j?{href:void 0}:void 0,N=E&&j?g??"link":L?g??"button":g,x=k==="button"?b:E&&j?void 0:j?-1:L?b??0:b;return i.createElement(k,{...M,..._,...Z,ref:e,"aria-busy":d||void 0,className:["nk-button",o].filter(Boolean).join(" "),"data-full-width":c||void 0,"data-icon-only":y||void 0,"data-shape":C,"data-tone":S,"data-variant":I,onClick:O,onKeyDown:L?B:v,onMouseMove:H,role:N,tabIndex:x},a.jsxs(a.Fragment,{children:[a.jsxs("span",{className:"nk-button__content",style:{justifyContent:w},children:[f&&h==="left"?a.jsx(le,{size:14,type:f}):null,s,f&&h==="right"?a.jsx(le,{size:14,type:f}):null]}),d?a.jsx(qe,{"aria-hidden":"true","aria-label":void 0,className:"nk-button__spinner",role:void 0,size:16}):null]}))}),ie=i.forwardRef(function(n,e){const{align:r="left",as:s,className:o,size:l="body",tone:c="default",weight:f,...h}=n,d=s??"p";return i.createElement(d,{...h,ref:e,className:["nk-text",o].filter(Boolean).join(" "),"data-align":r,"data-size":l,"data-tone":c,"data-weight":f})}),Mn=i.forwardRef(function(n,e){const{children:r,className:s,header:o,spacing:l="standard",...c}=n;return a.jsxs(Se,{...c,ref:e,className:["nk-card",s].filter(Boolean).join(" "),"data-has-header":o?!0:void 0,"data-spacing":l,children:[o?a.jsxs("div",{className:"nk-card__header",children:[o.title?a.jsx(ie,{as:"span",size:"caption",tone:"muted",weight:"semibold",children:o.title}):null,o.title&&o.subtitle?a.jsx("span",{"aria-hidden":"true",className:"nk-card__separator",children:"•"}):null,o.subtitle?a.jsx(ie,{as:"span",size:"caption",tone:"muted",weight:"semibold",children:o.subtitle}):null]}):null,o?a.jsx("div",{className:"nk-card__content","data-spacing":l,children:r}):r]})});function ce(t){return t!==void 0&&t!==!1&&t!=="false"}function fe(t,n){return t?!0:n}const lt=i.createContext(void 0);function Ln(){return i.useContext(lt)}const ct=i.forwardRef(function(n,e){var y;const{"aria-invalid":r,checked:s,children:o,className:l,defaultChecked:c,disabled:f=!1,invalid:h=!1,name:d,onChange:u,required:v=!1,style:m,value:g="on",...C}=n,b=Ln(),w=String(g),S=(b==null?void 0:b.value)!==void 0,I=f||!!(b!=null&&b.disabled),M=!!(b!=null&&b.required&&!b.hasSelection&&b.validationValue===w),k=h||ce(r);function j(E){u==null||u(E),E.defaultPrevented||b==null||b.handleChange(E)}return a.jsxs("label",{className:["nk-checkbox",l].filter(Boolean).join(" "),"data-disabled":I||void 0,"data-invalid":k||void 0,style:m,children:[a.jsx("input",{...C,ref:e,"aria-invalid":fe(h,r),checked:b?S?(y=b.value)==null?void 0:y.includes(w):void 0:s,className:"nk-checkbox__control",defaultChecked:b&&!S?b.defaultValue.includes(w):c,disabled:I,name:(b==null?void 0:b.name)??d,onChange:j,required:v||M,type:"checkbox",value:g}),a.jsx("span",{"aria-hidden":"true",className:"nk-checkbox__visual",children:a.jsx(le,{className:"nk-checkbox__icon",size:12,type:"checkmark"})}),o!==void 0?a.jsxs(ie,{as:"span",className:"nk-checkbox__label",children:[o,v?a.jsx("span",{"aria-hidden":"true",className:"nk-checkbox__required",children:"*"}):null]}):null]})}),ut=Symbol("nk-field-control-metadata");function dt(t){if(typeof t!="function"&&typeof t!="object"||t===null)return;const n=t,e=n[ut];return e||(n.type!==void 0&&n.type!==t?dt(n.type):void 0)}function ft(t,n){Object.assign(t,{[ut]:{requiredCommunication:n}})}const Tn=Object.freeze([]);function ht(t,n){i.Children.forEach(t,e=>{if(e==null||typeof e=="boolean")return;if(!i.isValidElement(e))throw new Error("CheckboxGroup children must be direct Checkbox elements or fragments");if(e.type===i.Fragment){ht(e.props.children,n);return}if(e.type!==ct)throw new Error("CheckboxGroup children must be direct Checkbox elements or fragments");const r=e;n.push({disabled:!!r.props.disabled,required:!!r.props.required,value:String(r.props.value??"on")})})}function Vn(t){const n=[];ht(t,n);const e=new Set;return n.forEach(r=>{if(e.has(r.value))throw new Error("CheckboxGroup Checkbox values must be unique");e.add(r.value)}),n}function An(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}const pt=i.forwardRef(function(n,e){const{"aria-invalid":r,children:s,className:o,defaultValue:l=Tn,disabled:c=!1,invalid:f=!1,name:h,onChange:d,orientation:u="vertical",required:v=!1,value:m,...g}=n,C=i.useRef(null),[b,w]=i.useState(l),S=m!==void 0,I=S?m:b,M=f||ce(r),k=Vn(s),j=c?[]:k.filter(x=>!x.disabled).map(x=>x.value),y=new Set(j),E=I.some(x=>y.has(x)),L=j[0],O=k.find(x=>!x.disabled&&x.value===L),H=l.some(x=>y.has(x)),B=!!(O!=null&&O.required),_=i.useCallback(x=>An(x,C,e),[e]);i.useEffect(()=>{var T;if(S)return;const x=(T=C.current)==null?void 0:T.querySelector('input[type="checkbox"]'),R=x instanceof HTMLInputElement?x.form:null;if(!R)return;const V=R.getRootNode();function A(F){var U;if(F.target!==R||F.defaultPrevented)return;const X=Array.from(((U=C.current)==null?void 0:U.querySelectorAll('input[type="checkbox"]'))??[]).find(G=>!G.disabled&&G.value===L);X&&(X.required=!!(B||v&&!H)),w(l)}return V.addEventListener("reset",A),()=>V.removeEventListener("reset",A)},[s,l,H,S,v,B,L]);function Z(x){if(!S){const R=x.currentTarget.value,V=x.currentTarget.checked;w(A=>V?[...new Set([...A,R])]:A.filter(T=>T!==R))}d==null||d(x)}const N={defaultValue:l,disabled:c,handleChange:Z,hasSelection:E,name:h,required:v,value:m,validationValue:L};return a.jsx(lt.Provider,{value:N,children:a.jsx("div",{...g,ref:_,"aria-disabled":c||void 0,"aria-invalid":fe(f,r),className:["nk-checkbox-group",o].filter(Boolean).join(" "),"data-disabled":c||void 0,"data-invalid":M||void 0,"data-orientation":u,role:"group",children:s})})});ft(pt,"label");const Bn=[{minWidth:pe("xl"),marginPercent:32,preferredWidth:1200},{minWidth:pe("lg"),marginPercent:20,preferredWidth:1100},{minWidth:pe("md"),marginPercent:14,preferredWidth:pe("md")},{minWidth:pe("sm"),marginPercent:8,preferredWidth:650}],Dn=16;function On(t){for(const n of Bn)if(t>=n.minWidth)return n}function Fn(t,n){if(!Number.isFinite(t)||!Number.isFinite(n)||t<pe("sm")||n<=0)return;const e=On(t);if(!e)return;const r=t*e.marginPercent/100,s=t-r*2,o=Math.min(e.preferredWidth,t-Dn),l=Math.max(s,o);let c=Math.floor(l/n);return c%2===0&&(c-=1),c=Math.max(c,1),Math.min((c-1)*n,t)}const Hn=typeof window>"u"?i.useEffect:i.useLayoutEffect;function Wn(t,n){if(typeof t=="function"){t(n);return}t&&(t.current=n)}function zn(t){const n=window.getComputedStyle(t),e=Number.parseFloat(n.paddingLeft)+Number.parseFloat(n.paddingRight);return Math.max(t.clientWidth-e,0)}function Zn(t){const e=window.getComputedStyle(t).getPropertyValue("--nk-cell").trim().match(/^([+]?(?:\d+\.?\d*|\.\d+))px$/i);if(!e)return;const r=Number.parseFloat(e[1]);return Number.isFinite(r)&&r>0?r:void 0}function qn(t,n){const e=i.useRef(null),r=i.useRef(null),s=i.useRef(void 0),[o,l]=i.useState(void 0),c=i.useCallback(d=>{if(!n){if(s.current===void 0)return;s.current=void 0,l(void 0);return}const u=zn(d),v=Zn(d),m=v===void 0?void 0:Fn(u,v);s.current!==m&&(s.current=m,l(m))},[n]),f=i.useCallback(d=>{var v;if((v=r.current)==null||v.disconnect(),r.current=null,typeof ResizeObserver>"u")return;const u=new ResizeObserver(()=>c(d));u.observe(d),r.current=u},[c]),h=i.useCallback(d=>{var u;(u=r.current)==null||u.disconnect(),r.current=null,e.current=d,Wn(t,d),!(!d||typeof window>"u"||!n)&&(c(d),f(d))},[f,n,t,c]);return Hn(()=>{e.current&&c(e.current)}),i.useEffect(()=>(e.current&&n&&f(e.current),()=>{var d;(d=r.current)==null||d.disconnect(),r.current=null}),[f,n]),{rootReference:h,innerWidth:o}}const Gn=i.forwardRef(function(n,e){const{accent:r,as:s,children:o,className:l,constrain:c=!0,fill:f="none",mode:h="grid",spacing:d="standard",style:u,theme:v="light",...m}=n,{rootReference:g,innerWidth:C}=qn(e,c),b=s??"div",w=r!==void 0?{...u,"--nk-accent":r}:u;return i.createElement(b,{...m,ref:g,className:["nk-content",l].filter(Boolean).join(" "),"data-constrain":c,"data-fill":f,"data-mode":h,"data-spacing":d,"data-theme":v,style:w},i.createElement("div",{className:"nk-content__inner",style:C===void 0?void 0:{width:`${C}px`}},o))}),$n=i.forwardRef(function(n,e){const{"aria-hidden":r,"aria-label":s,"aria-labelledby":o,"aria-orientation":l,className:c,decorative:f=!1,orientation:h="horizontal",role:d,text:u,...v}=n,g=f?{"aria-hidden":!0,"aria-label":void 0,"aria-labelledby":void 0,role:void 0}:{"aria-hidden":r,"aria-label":s??(o===void 0&&h==="horizontal"?u:void 0),"aria-labelledby":o,"aria-orientation":l??h,role:d??"separator"};return a.jsx("div",{...v,...g,ref:e,className:["nk-divider",c].filter(Boolean).join(" "),"data-has-text":!!u||void 0,"data-orientation":h,children:u&&h==="horizontal"?a.jsx("span",{className:"nk-divider__text",children:u}):null})});function De(t){return typeof t=="string"?t.trim().length>0:t!=null&&t!==!1&&t!==!0}function Ue(...t){const n=t.flatMap(r=>(r==null?void 0:r.split(/\s+/).filter(Boolean))??[]),e=[...new Set(n)];return e.length>0?e.join(" "):void 0}const Kn=i.forwardRef(function(n,e){const{children:r,className:s,description:o,disabled:l=!1,error:c,label:f,orientation:h="vertical",required:d=!1,...u}=n,v=i.useId(),m=r.props.id??`${v}-control`,g=`${v}-label`,C=`${v}-description`,b=`${v}-error`,w=De(f),S=De(o),I=De(c),M=dt(r.type),k=M!==void 0,j=l||!!r.props.disabled,y=d||!!r.props.required,E=y&&(M==null?void 0:M.requiredCommunication)==="label",L=Ue(r.props["aria-describedby"],S?C:void 0,I?b:void 0),O=Ue(w?g:void 0,r.props["aria-labelledby"]),H=y?a.jsx("span",{"aria-hidden":"true",className:"nk-field__required",children:"*"}):null,B=E?a.jsx("span",{className:"nk-field__required-text",children:", select at least one"}):null,_=i.cloneElement(r,{"aria-describedby":L,"aria-invalid":I?!0:r.props["aria-invalid"],"aria-labelledby":O,disabled:j||void 0,id:m,required:y||void 0});return a.jsxs("div",{...u,ref:e,className:["nk-field",s].filter(Boolean).join(" "),"data-disabled":j||void 0,"data-has-label":w||void 0,"data-invalid":I||void 0,"data-orientation":h,"data-required":y||void 0,children:[w&&k?a.jsxs(ie,{as:"span",className:"nk-field__label",id:g,size:"caption",weight:"medium",children:[f,H,B]}):null,w&&!k?a.jsxs(ie,{as:"label",className:"nk-field__label",htmlFor:m,id:g,size:"caption",weight:"medium",children:[f,H]}):null,a.jsxs("div",{className:"nk-field__body",children:[_,S?a.jsx(ie,{as:"p",className:"nk-field__description",id:C,size:"caption",tone:"muted",children:o}):null,I?a.jsx(ie,{as:"p","aria-live":"polite",className:"nk-field__error",id:b,size:"caption",tone:"danger",children:c}):null]})]})});function Oe(t){return Array.isArray(t)?t.length>0:t!=null&&String(t).length>0}function Un(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}function Ye(t){return t!=null&&t!==!1&&t!==!0&&t!==""}function Yn(t){var e;const n=(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"))==null?void 0:e.set;n?n.call(t,""):t.value=""}const Xn=i.forwardRef(function(n,e){const{"aria-busy":r,"aria-invalid":s,className:o,clearable:l=!1,defaultValue:c,disabled:f=!1,id:h,invalid:d=!1,leading:u,loading:v=!1,onChange:m,readOnly:g=!1,style:C,trailing:b,type:w="text",value:S,...I}=n,M=i.useId(),k=i.useRef(null),[j,y]=i.useState(Oe(c)),[E,L]=i.useState(!1);i.useEffect(()=>{w!=="password"&&L(!1)},[w]);const O=i.useCallback(z=>Un(z,k,e),[e]),H=h??`${M}-control`,B=f||v,_=d||ce(s),Z=S!==void 0?Oe(S):j,N=w==="password"&&E?"text":w,x=fe(d,s),R=l&&Z&&!g&&!B,V=w==="password"&&!v,A=R||V,T=Ye(u),F=Ye(b)||A;function X(z){S===void 0&&y(Oe(z.currentTarget.value)),m==null||m(z)}function U(){const z=k.current;z&&(Yn(z),z.dispatchEvent(new Event("input",{bubbles:!0})),z.focus())}function G(){L(z=>!z)}return a.jsxs("div",{className:["nk-input",o].filter(Boolean).join(" "),"data-clearable":l||void 0,"data-disabled":B||void 0,"data-invalid":_||void 0,"data-leading":T||void 0,"data-loading":v||void 0,"data-read-only":g||void 0,"data-has-trailing-action":A||void 0,"data-trailing":F||void 0,style:C,children:[T?a.jsx("span",{className:"nk-input__leading",children:u}):null,a.jsx("input",{...I,ref:O,"aria-busy":v?!0:r,"aria-invalid":x,className:"nk-input__control",defaultValue:c,disabled:B,id:H,onChange:X,readOnly:g,type:N,value:S}),F?a.jsxs("span",{className:"nk-input__trailing",children:[b,R?a.jsx(Re,{"aria-controls":H,"aria-label":"Clear input",className:"nk-input__action",icon:"cross",onClick:U,shape:"rectangle",type:"button",variant:"ghost"}):null,V?a.jsx(Re,{"aria-controls":H,"aria-label":E?"Hide password":"Show password","aria-pressed":E,className:"nk-input__action",disabled:B,icon:E?"eye-off":"eye",onClick:G,shape:"rectangle",type:"button",variant:"ghost"}):null]}):null,v?a.jsx(qe,{"aria-hidden":"true","aria-label":void 0,className:"nk-input__spinner",role:void 0,size:14}):null]})}),Ie=i.createContext(void 0),Xe=typeof window>"u"?i.useEffect:i.useLayoutEffect;function Qe(t,n){const e=t.ownerDocument.defaultView;if(!e)return;const r=e.getComputedStyle(t);Array.from(n.style).filter(o=>o.startsWith("--nk-")).forEach(o=>{n.style.removeProperty(o)});for(let o=0;o<r.length;o+=1){const l=r.item(o);l.startsWith("--nk-")&&n.style.setProperty(l,r.getPropertyValue(l))}}function Qn(t){const{children:n,source:e}=t,r=i.useRef(null),s=i.useContext(Ie),[o,l]=i.useState(null);return Xe(()=>{const c=r.current;if(!(!c||!s))return s.registerBranch(c)},[s]),Xe(()=>{var v;const c=r.current;if(!c)return;Qe(e,c),l(e);const h=e.closest(".nk-content")??e,d=(v=e.ownerDocument.defaultView)==null?void 0:v.MutationObserver;if(!d)return;const u=new d(()=>{Qe(e,c)});return u.observe(h,{attributeFilter:["class","data-theme","style"],attributes:!0}),()=>u.disconnect()},[e]),a.jsx("div",{className:"nk-portal",ref:r,style:{display:"contents"},children:o===e?n:null})}function Me(t){const{children:n,container:e,inheritFrom:r}=t,s=i.useRef(null),[o,l]=i.useState(!1);i.useEffect(()=>{l(!0)},[]);const c=r??s.current,f=(c==null?void 0:c.ownerDocument)??(typeof document>"u"?null:document),h=e??(f==null?void 0:f.body)??null;return a.jsxs(a.Fragment,{children:[r?null:a.jsx("span",{"aria-hidden":"true",hidden:!0,ref:s}),o&&c&&h?St.createPortal(a.jsx(Qn,{source:c,children:n}),h):null]})}const Jn=1e3,er=10,Je=new WeakMap;function Ee(t){const n=Je.get(t);if(n)return n;const e={focusLayers:new Set,layers:[],listeners:new Set};return Je.set(t,e),e}function et(t){t.listeners.forEach(n=>n())}function Le(t,n){const e=i.useRef(Symbol("nk-overlay-layer")),[,r]=i.useReducer(c=>c+1,0);i.useEffect(()=>{if(!t||!n)return;const c=Ee(n),f=()=>r();return c.listeners.add(f),c.layers.push(e.current),et(c),()=>{c.listeners.delete(f);const h=c.layers.indexOf(e.current);h>=0&&c.layers.splice(h,1),et(c)}},[t,n]);const s=n?Ee(n):null,o=(s==null?void 0:s.layers.indexOf(e.current))??-1,l=o>=0?o:(s==null?void 0:s.layers.length)??0;return{id:e.current,zIndex:Jn+l*er}}function tt(t,n){const e=Ee(t).layers;return e.length>0&&e[e.length-1]===n}function tr(t,n,e){i.useEffect(()=>{if(!t||!n)return;const r=Ee(n);return r.focusLayers.add(e),()=>{r.focusLayers.delete(e)}},[t,e,n])}function nt(t,n){const e=Ee(t);for(let r=e.layers.length-1;r>=0;r-=1){const s=e.layers[r];if(e.focusLayers.has(s))return s===n}return!1}function nr(t,n){const e=t.composedPath();return n.some(r=>{var l;const s=r.current;if(!s)return!1;if(e.includes(s))return!0;const o=(l=s.ownerDocument.defaultView)==null?void 0:l.Node;return o&&t.target instanceof o?s.contains(t.target):!1})}function Te(t){const{active:n,boundaries:e,dismissOnEscape:r=!0,dismissOnPointerDownOutside:s=!0,layerId:o,onEscapeDismiss:l,onEscapeKeyDown:c,onPointerDownOutside:f,onPointerDownOutsideDismiss:h,ownerDocument:d}=t;i.useEffect(()=>{if(!n||!d)return;function u(m){m.key!=="Escape"||!r||!tt(d,o)||(c==null||c(m),!m.defaultPrevented&&(m.preventDefault(),l==null||l()))}function v(m){!s||!tt(d,o)||nr(m,e)||(f==null||f(m),!m.defaultPrevented&&(h==null||h()))}return d.addEventListener("keydown",u,!0),d.addEventListener("pointerdown",v,!0),()=>{d.removeEventListener("keydown",u,!0),d.removeEventListener("pointerdown",v,!0)}},[n,e,r,s,o,l,c,f,h,d])}const Ze=new WeakSet;function rr(t){Ze.add(t);try{t.focus({preventScroll:!0})}finally{Ze.delete(t)}}function or(t){return Ze.has(t)}const sr=["a[href]","area[href]","button","input:not([type=hidden])","select","textarea","iframe","[contenteditable]:not([contenteditable='false'])","[tabindex]"].join(",");function ir(t,n){let e=t;for(;e;){if(e.hidden||e.inert||e.getAttribute("aria-hidden")==="true")return!0;const r=e.ownerDocument.defaultView,s=r==null?void 0:r.getComputedStyle(e);if((s==null?void 0:s.display)==="none"||(s==null?void 0:s.visibility)==="hidden")return!0;if(e===n)break;e=e.parentElement}return!1}function ar(t,n){var o;const e=(o=t.ownerDocument.defaultView)==null?void 0:o.HTMLInputElement;if(!e||!(t instanceof e)||t.type!=="radio"||!t.name)return!0;const r=n.filter(l=>l instanceof e&&l.type==="radio"&&l.name===t.name&&l.form===t.form),s=r.find(l=>l.checked);return s?s===t:r[0]===t}function lr(t){const n=Array.from(t.querySelectorAll(sr)).filter(e=>!e.matches(":disabled")&&e.tabIndex>=0&&!ir(e,t));return n.filter(e=>ar(e,n))}function rt(t,n){const e=[t,...n];return[...new Set(e.flatMap(s=>lr(s)))].sort((s,o)=>{var f;if(s===o)return 0;const l=s.compareDocumentPosition(o),c=((f=s.ownerDocument.defaultView)==null?void 0:f.Node.DOCUMENT_POSITION_FOLLOWING)??4;return l&c?-1:1})}function Fe(t,n,e){return e?t.contains(e)||[...n].some(r=>r.contains(e)):!1}function vt(t){const{active:n,autoFocus:e=!0,container:r,initialFocusReference:s,layerId:o,restoreFocus:l=!0}=t,c=(r==null?void 0:r.ownerDocument)??null,f=i.useRef(new Set),h=i.useCallback(u=>(f.current.add(u),()=>f.current.delete(u)),[]),d=i.useMemo(()=>({registerBranch:h}),[h]);return tr(n&&!!r,c,o),i.useEffect(()=>{var I,M;if(!n||!r)return;const u=r.ownerDocument,v=(I=u.defaultView)==null?void 0:I.HTMLElement,m=(M=u.defaultView)==null?void 0:M.Node,g=v&&u.activeElement instanceof v?u.activeElement:null;let C=!0;function b(){const k=s==null?void 0:s.current;(k&&Fe(r,f.current,k)?k:rt(r,f.current)[0]??r).focus({preventScroll:!0})}function w(k){if(k.key!=="Tab"||!nt(u,o))return;const j=rt(r,f.current);if(j.length===0){k.preventDefault(),r==null||r.focus({preventScroll:!0});return}const y=j[0],E=j[j.length-1],L=u.activeElement,O=Fe(r,f.current,L),B=!j.some(_=>_===L)&&(L===r||L===(s==null?void 0:s.current));if(!O||B){k.preventDefault(),(k.shiftKey?E:y).focus();return}k.shiftKey&&L===y?(k.preventDefault(),E.focus()):!k.shiftKey&&L===E&&(k.preventDefault(),y.focus())}function S(k){nt(u,o)&&m&&k.target instanceof m&&!Fe(r,f.current,k.target)&&b()}return u.addEventListener("keydown",w,!0),u.addEventListener("focusin",S,!0),e&&Promise.resolve().then(()=>{C&&b()}),()=>{C=!1,u.removeEventListener("keydown",w,!0),u.removeEventListener("focusin",S,!0),l&&(g!=null&&g.isConnected)&&rr(g)}},[n,e,r,s,o,l]),d}function cr(){const[t,n]=i.useState(!1);return i.useEffect(()=>{const e=typeof window>"u"?null:window;if(!(e!=null&&e.matchMedia))return;const r=e.matchMedia("(prefers-reduced-motion: reduce)"),s=()=>{n(r.matches)};return s(),r.addEventListener("change",s),()=>r.removeEventListener("change",s)},[]),t}function Ve(t,n=200){const e=cr(),[r,s]=i.useState(t);return i.useEffect(()=>{if(t){s(!0);return}if(!r)return;if(e||n<=0){s(!1);return}const o=window.setTimeout(()=>{s(!1)},n);return()=>window.clearTimeout(o)},[n,t,e,r]),{present:r,state:t?"open":r?"closing":"closed"}}const Ne=new WeakMap;function ur(t,n){i.useEffect(()=>{if(!t||!n)return;const e=Ne.get(n);if(e)e.count+=1;else{const r=n.body,s=n.defaultView,o=s&&Number.parseFloat(s.getComputedStyle(r).paddingRight)||0,l=n.documentElement.clientWidth,c=s&&l>0?Math.max(0,s.innerWidth-l):0,f={count:1,overflow:r.style.overflow,paddingRight:r.style.paddingRight};Ne.set(n,f),r.style.overflow="hidden",c>0&&(r.style.paddingRight=`${o+c}px`)}return()=>{const r=Ne.get(n);r&&(r.count-=1,!(r.count>0)&&(n.body.style.overflow=r.overflow,n.body.style.paddingRight=r.paddingRight,Ne.delete(n)))}},[t,n])}function dr(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}function fr(t){const{"aria-label":n,"aria-labelledby":e,children:r,className:s,closeButtonLabel:o="Close modal",exitable:l=!0,forwardedReference:c,initialFocusReference:f,lockScroll:h=!0,onClose:d,open:u,ownerDocument:v,presenceState:m,restoreFocus:g=!0,role:C="dialog",style:b,title:w,trapFocus:S=!0,...I}=t,M=i.useRef(null),k=i.useRef(null),j=i.useContext(Ie),y=`${i.useId()}-title`,[E,L]=i.useState(null),O=Le(!0,v),H=i.useMemo(()=>[M],[]),B=!!(w!=null&&w.trim()),_=f??(B?k:void 0),Z=e??(n===void 0&&B?y:void 0),N=i.useCallback(T=>{dr(T,M,c),L(T)},[c]);i.useLayoutEffect(()=>{E&&(E.inert=!u)},[E,u]);const x=i.useCallback(()=>{d==null||d("escape")},[d]),R=i.useCallback(()=>{d==null||d("outside")},[d]);Te({active:u,boundaries:H,dismissOnEscape:l,dismissOnPointerDownOutside:l,layerId:O.id,onEscapeDismiss:x,onPointerDownOutsideDismiss:R,ownerDocument:v});const V=vt({active:u&&S,container:E,initialFocusReference:_,layerId:O.id,restoreFocus:g});ur(h,v);const A=l?a.jsx(Re,{"aria-label":o,className:"nk-modal__close",icon:"cross",onClick:()=>d==null?void 0:d("close-button"),shape:"rectangle",type:"button",variant:"ghost"}):null;return a.jsx(Ie.Provider,{value:u&&S?V:j,children:a.jsx("div",{className:"nk-modal__overlay","data-state":m,role:"presentation",style:{zIndex:O.zIndex},children:a.jsxs(Se,{...I,ref:N,"aria-hidden":u?void 0:!0,"aria-label":u?n:void 0,"aria-labelledby":u?Z:void 0,"aria-modal":u?"true":void 0,className:["nk-modal",s].filter(Boolean).join(" "),"data-state":m,role:u?C:void 0,style:b,tabIndex:-1,children:[B?a.jsxs("div",{className:"nk-modal__header",children:[a.jsx(ie,{as:"h2",className:"nk-modal__title",id:y,ref:k,size:"subtitle",tabIndex:-1,weight:"semibold",children:w}),A]}):A,r]})})})}const hr=i.forwardRef(function(n,e){const{open:r}=n,s=i.useRef(n);r&&(s.current=n);const o=r?n:s.current,{portalContainer:l}=o,c=Ve(r),f=(l==null?void 0:l.ownerDocument)??(typeof document>"u"?null:document);return c.present?a.jsx(Me,{container:l,children:a.jsx(fr,{...o,forwardedReference:e,open:r,ownerDocument:f,presenceState:c.state==="closing"?"closing":"open"})}):null}),pr=Number.parseInt(i.version,10);function mt(t){return pr>=19?t.props.ref:t.ref}function Pe(t,n){typeof t=="function"?t(n):t&&(t.current=n)}const vr=12,mr={bottom:"top",left:"right",right:"left",top:"bottom"};function ot(t,n){const e=Math.min(vr,n/2);return Math.min(Math.max(e,t),n-e)}function gr(t){return mr[t]}function wr(t,n){return n==="left"||n==="right"?t.width:t.height}function br(t,n,e,r,s,o){const l={bottom:o-e.bottom-n*2,left:e.left-n*2,right:s-e.right-n*2,top:e.top-n*2},c=gr(t),f=wr(r,t),h=l[t]<f&&l[c]>l[t]?c:t;let d=e.left+(e.width-r.width)/2,u=e.top+(e.height-r.height)/2;return h==="top"?u=e.top-r.height-n:h==="bottom"?u=e.bottom+n:h==="left"?d=e.left-r.width-n:d=e.right+n,d=Math.min(Math.max(n,d),Math.max(n,s-n-r.width)),u=Math.min(Math.max(n,u),Math.max(n,o-n-r.height)),{arrowOffset:h==="top"||h==="bottom"?ot(e.left+e.width/2-d,r.width):ot(e.top+e.height/2-u,r.height),left:d,placement:h,top:u}}const xr=8;function gt(t,n,e,r){const[s,o]=i.useState(null);return i.useEffect(()=>{if(!t||!e||!r){o(null);return}const l=e.ownerDocument.defaultView;if(!l)return;const c=l,f=c.getComputedStyle(e),h=Number.parseFloat(f.getPropertyValue("--nk-space-8")),d=Number.isFinite(h)?h:xr;function u(){const g=e==null?void 0:e.getBoundingClientRect(),C=r==null?void 0:r.getBoundingClientRect();!g||!C||o(br(n,d,g,C,c.innerWidth,c.innerHeight))}u(),c.addEventListener("resize",u),c.addEventListener("scroll",u,!0);const v=c.ResizeObserver,m=v?new v(u):null;return m==null||m.observe(e),m==null||m.observe(r),()=>{c.removeEventListener("resize",u),c.removeEventListener("scroll",u,!0),m==null||m.disconnect()}},[t,r,n,e]),s}function kr(t){const{inert:n,panelElement:e}=t;return i.useLayoutEffect(()=>{e&&(e.inert=n)},[n,e]),null}function yr(t,n,e){n.current=t,Pe(e,t)}function Cr(t,n,e){n.current=t,Pe(e,t)}function jr(t,n){const e=(t==null?void 0:t.split(/\s+/).filter(Boolean))??[];return e.includes(n)||e.push(n),e.join(" ")}function Rr(t){const n=t.tagName.toLowerCase();return t.getAttribute("role")==="button"&&n!=="button"?!1:["button","input","select","summary","textarea"].includes(n)?!0:n==="a"&&t.hasAttribute("href")}function Ir(t){return t==="grid"||t==="listbox"||t==="menu"||t==="tree"?t:"dialog"}const Er=i.forwardRef(function(n,e){const{"aria-label":r,"aria-labelledby":s,autoFocus:o=!0,children:l,className:c,closeOnEscape:f=!0,closeOnOutsideInteraction:h=!0,defaultOpen:d=!1,disabled:u=!1,initialFocusReference:v,onEscapeKeyDown:m,onOpenChange:g,onPointerDownOutside:C,open:b,placement:w="bottom",portalContainer:S,restoreFocus:I=!0,role:M="dialog",style:k,tabIndex:j,trapFocus:y=!1,trigger:E,...L}=n;if(E.type===i.Fragment)throw new Error("Popover requires a single non-Fragment trigger");const O=i.useId(),H=i.useContext(Ie),B=`${O}-popover`,_=E.props,Z=mt(E),N=_.id??`${O}-trigger`,x=u||_.disabled===!0||_["aria-disabled"]===!0||_["aria-disabled"]==="true",R=b!==void 0,[V,A]=i.useState(d),T=R?b:V,F=Ve(T),X=i.useRef(null),U=i.useRef(null),G=i.useRef("programmatic"),z=i.useRef(null),oe=i.useRef(T),ue=i.useRef(null),[ve,xe]=i.useReducer(D=>D+1,0),[W,Y]=i.useState(null),[ne,J]=i.useState(null),q=(S==null?void 0:S.ownerDocument)??(W==null?void 0:W.ownerDocument)??(typeof document>"u"?null:document),de=Le(F.present,q),ee=i.useMemo(()=>[X,U],[]),re=gt(F.present,w,W,ne),me=i.useCallback(D=>{Cr(D,X,Z),Y(D)},[Z]),ke=i.useCallback(D=>{yr(D,U,e),J(D)},[e]),se=i.useCallback((D,K)=>{T!==D&&(R?(z.current={open:D,reason:K},xe()):(G.current=K,A(D)),g==null||g(D,K))},[R,g,T]),ye=i.useCallback(()=>{se(!1,"escape")},[se]),Ce=i.useCallback(()=>{se(!1,"outside")},[se]),ge=i.useCallback(D=>{var je;if(C==null||C(D),D.defaultPrevented)return;const K=(je=q==null?void 0:q.defaultView)==null?void 0:je.HTMLElement;ue.current=K?D.composedPath().find(we=>we instanceof K&&we.tabIndex>=0)??D.target:D.target},[C,q]);Te({active:T,boundaries:ee,dismissOnEscape:f,dismissOnPointerDownOutside:h,layerId:de.id,onEscapeDismiss:ye,onEscapeKeyDown:m,onPointerDownOutside:ge,onPointerDownOutsideDismiss:Ce,ownerDocument:q});const p=vt({active:T&&y,autoFocus:o,container:ne,initialFocusReference:v,layerId:de.id,restoreFocus:I});i.useEffect(()=>{if(!T||y||!o||!ne)return;let D=!0;return Promise.resolve().then(()=>{if(!D)return;const K=v==null?void 0:v.current;(K&&ne.contains(K)?K:ne).focus({preventScroll:!0})}),()=>{D=!1}},[o,v,T,ne,y]),i.useEffect(()=>{var $e;const D=oe.current;oe.current=T;const K=z.current,je=R?D!==T&&(K==null?void 0:K.open)===T?K.reason:"programmatic":G.current;if(z.current=null,T){G.current="programmatic",ue.current=null;return}const we=q==null?void 0:q.activeElement,Ae=ue.current,Be=($e=q==null?void 0:q.defaultView)==null?void 0:$e.HTMLElement,Pt=je==="outside"&&Be&&Ae instanceof Be&&we instanceof Be&&(Ae===we||Ae.contains(we));D&&!y&&I&&!Pt&&(W==null||W.focus({preventScroll:!0})),ue.current=null},[ve,R,T,q,I,y,W]),i.useEffect(()=>{u&&T&&se(!1,"programmatic")},[u,T,se]);function P(D){var K;if(x){D.preventDefault(),D.stopPropagation();return}(K=_.onClick)==null||K.call(_,D),!D.defaultPrevented&&se(!T,"trigger")}function $(D){var K;(K=_.onKeyDown)==null||K.call(_,D),!(D.defaultPrevented||x||Rr(D.currentTarget)||D.key!=="Enter"&&D.key!==" ")&&(D.preventDefault(),D.currentTarget.click())}if(u)return E;const Q=typeof E.type=="string",te=Q?E.type:null,ae=te==="a"&&typeof _.href=="string",he=Q&&!(te==="button"||te==="input"||te==="select"||te==="summary"||te==="textarea"||ae),Ge=ae&&x,Et=i.cloneElement(E,{"aria-controls":T?jr(_["aria-controls"],B):_["aria-controls"],"aria-expanded":T,"aria-haspopup":_["aria-haspopup"]??Ir(M),"aria-disabled":x?!0:_["aria-disabled"],className:[_.className,"nk-popover__trigger"].filter(Boolean).join(" "),href:Ge?void 0:_.href,id:N,onClick:P,onKeyDown:Q?$:_.onKeyDown,ref:me,role:_.role??(Ge?"link":he?"button":void 0),tabIndex:x?-1:_.tabIndex??(he?0:void 0)});return a.jsxs(a.Fragment,{children:[Et,a.jsx(Ie.Provider,{value:T&&y?p:H,children:F.present&&q?a.jsx(Me,{container:S,inheritFrom:W,children:a.jsxs(Se,{...L,ref:ke,"aria-hidden":T?void 0:!0,"aria-label":T?r:void 0,"aria-labelledby":T?s??(r===void 0?N:void 0):void 0,className:["nk-popover",c].filter(Boolean).join(" "),"data-placement":(re==null?void 0:re.placement)??w,"data-state":F.state==="closing"?"closing":"open",id:B,role:T?M:void 0,style:re?{...k,"--nk-popover-arrow-offset":`${re.arrowOffset}px`,left:re.left,top:re.top,zIndex:de.zIndex}:{...k,visibility:"hidden",zIndex:de.zIndex},tabIndex:j??-1,children:[a.jsx(kr,{inert:!T,panelElement:ne}),a.jsx("span",{"aria-hidden":"true",className:"nk-popover__arrow"}),a.jsx("div",{className:"nk-popover__content",children:l})]})}):null})]})}),Pr=3,Sr=10,wt=4;function _r(t){return Number.isFinite(t)?Math.min(Sr,Math.max(Pr,Math.trunc(t))):wt}function be(t,n,e){return(n==="numeric"?t.replace(/[^0-9]/g,""):t.replace(/[^0-9a-z]/gi,"").toUpperCase()).slice(0,e)}function Nr(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}function Mr(t,n){var r;const e=(r=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"))==null?void 0:r.set;e?e.call(t,n):t.value=n}function He(t,n,e){const r=Math.min(e-1,Math.max(0,n)),s=Math.min(r+1,t.value.length);t.focus(),t.setSelectionRange(r,s)}function Lr(t){const{defaultValue:n,disabled:e,forwardedReference:r,length:s,mode:o,onChange:l,onComplete:c,onFocus:f,onKeyDown:h,onPaste:d,onSelect:u,readOnly:v,value:m}=t,g=_r(s),C=be(n,o,g),b=i.useRef(null),[w,S]=i.useState(C),[I,M]=i.useState(0),k=m!==void 0,j=be(k?m:w,o,g),y=i.useCallback(N=>Nr(N,b,r),[r]);i.useEffect(()=>{!k&&w!==j&&S(j)},[k,j,w]),i.useEffect(()=>{var V;if(k)return;const N=(V=b.current)==null?void 0:V.form;if(!N)return;const x=N.getRootNode();function R(A){A.target!==N||A.defaultPrevented||(S(C),M(0))}return x.addEventListener("reset",R),()=>x.removeEventListener("reset",R)},[k,C]);function E(N){const x=N.selectionStart??j.length;return Math.min(g-1,Math.max(0,x))}function L(N){const x=N.currentTarget,R=x.selectionStart??x.value.length,V=be(x.value,o,g),A=be(x.value.slice(0,R),o,g).length;x.value=V,k||S(V),l==null||l(N),V.length===g&&V!==j&&(c==null||c(V));const T=Math.min(g-1,A);M(T),x.setSelectionRange(T,Math.min(T+1,V.length))}function O(N){if(d==null||d(N),N.defaultPrevented||e||v)return;const x=be(N.clipboardData.getData("text"),o,g);if(N.preventDefault(),x.length===0)return;const R=N.currentTarget,V=R.selectionStart??j.length,A=R.selectionEnd??V,T=x.length===g?x:be(j.slice(0,V)+x+j.slice(A),o,g),F=x.length===g?g:Math.min(g,V+x.length);Mr(R,T),R.setSelectionRange(F,F),R.dispatchEvent(new Event("input",{bubbles:!0}))}function H(N){if(h==null||h(N),N.defaultPrevented||N.key!=="ArrowLeft"&&N.key!=="ArrowRight")return;N.preventDefault();const x=N.key==="ArrowLeft"?-1:1,R=Math.min(g-1,Math.max(0,E(N.currentTarget)+x));M(R),He(N.currentTarget,R,g)}function B(N){f==null||f(N);const x=Math.min(g-1,j.length);M(x),He(N.currentTarget,x,g)}function _(N){u==null||u(N),M(E(N.currentTarget))}function Z(N,x){if(N.preventDefault(),e)return;const R=b.current;R&&(M(x),He(R,x,g))}return{activeIndex:I,handleChange:L,handleFocus:B,handleKeyDown:H,handlePaste:O,handleSelect:_,handleSlotPointerDown:Z,inputCallbackReference:y,length:g,renderedValue:j}}const Tr=i.forwardRef(function(n,e){const{"aria-invalid":r,autoCapitalize:s,autoComplete:o="one-time-code",className:l,censored:c=!1,defaultValue:f="",disabled:h=!1,invalid:d=!1,length:u=wt,mode:v="numeric",onChange:m,onComplete:g,onFocus:C,onKeyDown:b,onPaste:w,onSelect:S,readOnly:I=!1,style:M,value:k,wrap:j=!1,...y}=n,{activeIndex:E,handleChange:L,handleFocus:O,handleKeyDown:H,handlePaste:B,handleSelect:_,handleSlotPointerDown:Z,inputCallbackReference:N,length:x,renderedValue:R}=Lr({defaultValue:f,disabled:h,forwardedReference:e,length:u,mode:v,onChange:m,onComplete:g,onFocus:C,onKeyDown:b,onPaste:w,onSelect:S,readOnly:I,value:k}),V=d||ce(r),A=!j&&x>=6&&x%2===0,T=x/2,F={...M,"--nk-pin-input-columns":Math.ceil(x/2)};return a.jsxs("span",{className:["nk-pin-input",l].filter(Boolean).join(" "),"data-disabled":h||void 0,"data-invalid":V||void 0,"data-read-only":I||void 0,"data-wrap":j||void 0,style:F,children:[a.jsx("input",{...y,ref:N,"aria-invalid":fe(d,r),autoCapitalize:s??(v==="alphanumeric"?"characters":"off"),autoComplete:o,className:"nk-pin-input__control",disabled:h,inputMode:v==="numeric"?"numeric":"text",maxLength:x,minLength:x,onChange:L,onFocus:O,onKeyDown:H,onPaste:B,onSelect:_,pattern:v==="numeric"?`[0-9]{${x}}`:`[0-9A-Za-z]{${x}}`,readOnly:I,spellCheck:!1,type:"text",value:R}),a.jsx("span",{"aria-hidden":"true",className:"nk-pin-input__slots",children:Array.from({length:x},(X,U)=>a.jsxs("span",{className:"nk-pin-input__slot-group",children:[A&&U===T?a.jsx("span",{className:"nk-pin-input__separator",children:"-"}):null,a.jsx("span",{className:"nk-pin-input__slot","data-active":E===U||void 0,onPointerDown:G=>Z(G,U),children:c&&R[U]?a.jsx("span",{className:"nk-pin-input__censor"}):R[U]??""})]},U))})]})}),bt=i.createContext(void 0);function Vr(){const t=i.useContext(bt);if(!t)throw new Error("Radio must be rendered within RadioGroup");return t}function Ar(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}const Br=i.forwardRef(function(n,e){const{children:r,className:s,disabled:o=!1,style:l,value:c,...f}=n,h=Vr(),d=i.useRef(null),u=h.disabled||o,v=h.value!==void 0,m=h.value===c,g=i.useCallback(C=>Ar(C,d,e),[e]);return i.useEffect(()=>{var C;!v&&u&&((C=d.current)!=null&&C.checked)&&(d.current.checked=!1)},[v,u]),a.jsxs("label",{className:["nk-radio",s].filter(Boolean).join(" "),"data-disabled":u||void 0,style:l,children:[a.jsx("input",{...f,ref:g,checked:v?!u&&m:void 0,className:"nk-radio__control",defaultChecked:v?void 0:!u&&h.defaultValue===c,disabled:u,name:h.name,onChange:h.onChange,required:h.required,type:"radio",value:c}),a.jsx("span",{"aria-hidden":"true",className:"nk-radio__visual"}),a.jsx(ie,{as:"span",className:"nk-radio__label",children:r})]})}),xt=i.forwardRef(function(n,e){const{"aria-invalid":r,children:s,className:o,defaultValue:l,disabled:c=!1,invalid:f=!1,name:h,onChange:d,orientation:u="vertical",required:v=!1,value:m,...g}=n,C=f||ce(r),b={defaultValue:l,disabled:c,name:h,onChange:d,required:v,value:m};return a.jsx(bt.Provider,{value:b,children:a.jsx("div",{...g,ref:e,"aria-disabled":c||void 0,"aria-invalid":fe(f,r),"aria-required":v||void 0,className:["nk-radio-group",o].filter(Boolean).join(" "),"data-disabled":c||void 0,"data-invalid":C||void 0,"data-orientation":u,role:"radiogroup",children:s})})});ft(xt,"group");function We(t,n,e){if(t.length===0)return-1;for(let r=1;r<=t.length;r+=1){const s=(n+e*r+t.length)%t.length;if(!t[s].disabled)return s}return-1}function Dr(t,n,e){for(let r=1;r<=t.length;r+=1){const s=(e+r+t.length)%t.length,o=t[s];if(!o.disabled&&o.label.toLocaleLowerCase().startsWith(n))return s}return-1}function Or(t){const n=new Set;t.forEach(e=>{if(n.has(e.value))throw new Error("Select option values must be unique");n.add(e.value)})}function Fr(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}function Hr(t){const{"aria-invalid":n,children:e,className:r,defaultValue:s,disabled:o=!1,forwardedReference:l,invalid:c=!1,placeholder:f,style:h,value:d,...u}=t,v=fe(c,n),m=c||ce(n);return a.jsxs("span",{className:["nk-select",r].filter(Boolean).join(" "),"data-disabled":o||void 0,"data-invalid":m||void 0,"data-mode":"native",style:h,children:[a.jsxs("select",{...u,ref:l,"aria-invalid":v,className:"nk-select__control",defaultValue:d===void 0?s??(f!==void 0?"":void 0):void 0,disabled:o,value:d,children:[f!==void 0?a.jsx("option",{disabled:!0,value:"",children:f}):null,e]}),a.jsx(le,{className:"nk-select__icon",type:"chevron-down"})]})}function Wr(t,n,e){const[r,s]=i.useState(null);return i.useEffect(()=>{if(!t||!n){s(null);return}const o=n.ownerDocument.defaultView;if(!o)return;const l=o;function c(){const d=n==null?void 0:n.getBoundingClientRect();if(!d)return;const u=8,v=4,m=l.innerHeight-d.bottom-v-u,g=d.top-v-u,C=m<160&&g>m,b=Math.max(72,C?g:m),w=e==null?void 0:e.getBoundingClientRect(),S=Math.max(d.width,(w==null?void 0:w.width)??d.width),I=Math.min(Math.max(u,d.left),Math.max(u,l.innerWidth-u-S)),M=C?Math.max(u,d.top-v-Math.min((w==null?void 0:w.height)??b,b)):d.bottom+v;s({left:I,maxHeight:b,minWidth:d.width,top:M})}c(),l.addEventListener("resize",c),l.addEventListener("scroll",c,!0);const f=l.ResizeObserver,h=f?new f(c):null;return h==null||h.observe(n),e&&(h==null||h.observe(e)),()=>{l.removeEventListener("resize",c),l.removeEventListener("scroll",c,!0),h==null||h.disconnect()}},[t,e,n]),r}function zr(t){const{active:n,closeOnEscape:e,closeOnOutsideInteraction:r,highlightedIndex:s,id:o,listboxReference:l,onEscapeDismiss:c,onEscapeKeyDown:f,onHighlight:h,onOutsideDismiss:d,onPointerDownOutside:u,onSelect:v,options:m,ownerDocument:g,position:C,selectedValue:b,state:w,triggerReference:S}=t,I=i.useRef(null),M=Le(!0,g),k=i.useMemo(()=>[S,I],[S]),j=i.useCallback(y=>{I.current=y,l(y)},[l]);return Te({active:n,boundaries:k,dismissOnEscape:e,dismissOnPointerDownOutside:r,layerId:M.id,onEscapeDismiss:c,onEscapeKeyDown:f,onPointerDownOutside:u,onPointerDownOutsideDismiss:d,ownerDocument:g}),a.jsx("div",{"aria-hidden":n?void 0:!0,"aria-labelledby":o,className:"nk-select__listbox","data-state":w,id:`${o}-listbox`,ref:j,role:"listbox",style:C?{left:C.left,maxHeight:C.maxHeight,minWidth:C.minWidth,top:C.top,zIndex:M.zIndex}:{visibility:"hidden",zIndex:M.zIndex},children:m.map((y,E)=>a.jsxs("div",{"aria-disabled":y.disabled||void 0,"aria-selected":y.value===b,className:"nk-select__option","data-highlighted":E===s||void 0,"data-selected":y.value===b||void 0,id:`${o}-option-${E}`,onPointerDown:L=>{L.preventDefault(),y.disabled||v(y)},onPointerMove:()=>{y.disabled||h(E)},role:"option",children:[y.icon?a.jsx(le,{type:y.icon}):null,a.jsx("span",{className:"nk-select__option-label",children:y.label}),y.value===b?a.jsx(le,{className:"nk-select__check",type:"checkmark"}):null]},y.value))})}function Zr(t){var ge;const{"aria-invalid":n,className:e,closeOnEscape:r=!0,closeOnOutsideInteraction:s=!0,defaultValue:o="",disabled:l=!1,displayOverride:c,form:f,forwardedReference:h,id:d,invalid:u=!1,name:v,onChange:m,onClick:g,onEscapeKeyDown:C,onKeyDown:b,onOpenChange:w,onPointerDownOutside:S,options:I,placeholder:M,portalContainer:k,required:j=!1,style:y,value:E,width:L,...O}=t;Or(I);const H=i.useId(),B=d??H,_=i.useRef(null),Z=i.useRef(null),N=i.useRef(null),x=i.useRef(""),[R,V]=i.useState(null),[A,T]=i.useState(!1),[F,X]=i.useState(-1),[U,G]=i.useState(o),z=E!==void 0,oe=z?E:U,ue=I.find(p=>p.value===oe),ve=u||ce(n),xe=fe(u,n),W=Ve(A),Y=(k==null?void 0:k.ownerDocument)??((ge=_.current)==null?void 0:ge.ownerDocument)??(typeof document>"u"?null:document),ne=Wr(W.present,_.current,R),J=L===void 0?y:{...y,width:L},q=c??ue,de=i.useCallback(p=>{Fr(p,_,h)},[h]),ee=i.useCallback(p=>{A!==p&&(T(p),w==null||w(p))},[w,A]),re=i.useCallback((p=1)=>{const P=I.findIndex(Q=>Q.value===oe&&!Q.disabled),$=p===1?-1:I.length;X(P>=0?P:We(I,$,p)),ee(!0)},[I,oe,ee]),me=i.useCallback(p=>{var P;p.disabled||(z||G(p.value),ee(!1),(P=_.current)==null||P.focus(),m==null||m(p.value))},[z,m,ee]),ke=i.useCallback(()=>{var p;ee(!1),(p=_.current)==null||p.focus()},[ee]),se=i.useCallback(()=>{ee(!1)},[ee]);function ye(p){g==null||g(p),!(p.defaultPrevented||l)&&(A?ee(!1):re())}function Ce(p){if(b==null||b(p),!(p.defaultPrevented||l)){if(p.key==="ArrowDown"||p.key==="ArrowUp"){p.preventDefault();const P=p.key==="ArrowDown"?1:-1;A?X($=>We(I,$,P)):re(P);return}if(p.key==="Home"||p.key==="End"){if(p.preventDefault(),!A)re(p.key==="Home"?1:-1);else{const P=p.key==="Home"?1:-1,$=P===1?-1:I.length;X(We(I,$,P))}return}if(p.key==="Enter"||p.key===" "){p.preventDefault();const P=I[F];A&&P?me(P):A||re();return}if(p.key==="Tab"){ee(!1);return}if(p.key.length===1&&!p.altKey&&!p.ctrlKey&&!p.metaKey){const P=p.currentTarget.ownerDocument.defaultView;if(!P)return;const $=p.key.toLocaleLowerCase(),Q=x.current+$,te=Array.from(Q).every(_e=>_e===$);x.current=te?$:Q,N.current!==null&&P.clearTimeout(N.current),N.current=P.setTimeout(()=>{x.current="",N.current=null},500);const ae=Dr(I,x.current,F);ae>=0&&(p.preventDefault(),A||ee(!0),X(ae))}}}return i.useEffect(()=>{var p;if(A&&F>=0){const P=Y==null?void 0:Y.getElementById(`${B}-option-${F}`);P&&(R!=null&&R.contains(P))&&((p=P.scrollIntoView)==null||p.call(P,{block:"nearest"}))}},[F,B,R,A]),i.useEffect(()=>{var $;const p=($=_.current)==null?void 0:$.form;if(!p)return;function P(){const Q=Z.current,te=z?oe:o;if(Q){const ae=Array.from(Q.options),_e=ae.find(he=>he.value===te)??ae[0];ae.forEach(he=>{he.defaultSelected=he===_e})}z||G(o),ee(!1)}return p.addEventListener("reset",P),()=>p.removeEventListener("reset",P)},[o,f,z,oe,ee]),i.useEffect(()=>()=>{var P;const p=(P=_.current)==null?void 0:P.ownerDocument.defaultView;p&&N.current!==null&&p.clearTimeout(N.current)},[]),a.jsxs("span",{className:["nk-select",e].filter(Boolean).join(" "),"data-disabled":l||void 0,"data-invalid":ve||void 0,"data-mode":"custom","data-open":A||void 0,style:J,children:[a.jsxs("button",{...O,ref:de,"aria-activedescendant":A&&F>=0?`${B}-option-${F}`:void 0,"aria-controls":`${B}-listbox`,"aria-expanded":A,"aria-haspopup":"listbox","aria-invalid":xe,"aria-required":j||void 0,"aria-autocomplete":"none",className:"nk-select__trigger",disabled:l,form:f,id:B,onClick:ye,onKeyDown:Ce,role:"combobox",type:"button",children:[q?a.jsxs("span",{className:"nk-select__value",children:[q.icon?a.jsx(le,{type:q.icon}):null,a.jsx("span",{className:"nk-select__value-label",children:q.label})]}):a.jsx("span",{className:"nk-select__placeholder",children:M}),a.jsx(le,{className:"nk-select__icon",type:"chevron-down"})]}),v||j?a.jsxs("select",{ref:Z,"aria-hidden":"true",className:"nk-select__form-control",disabled:l,form:f,name:v,onChange:()=>{},onInvalid:p=>{var P;p.preventDefault(),(P=_.current)==null||P.focus()},required:j,tabIndex:-1,value:oe,children:[a.jsx("option",{value:""}),I.map(p=>a.jsx("option",{disabled:p.disabled,value:p.value,children:p.label},p.value))]}):null,W.present&&Y?a.jsx(Me,{container:k,inheritFrom:_.current,children:a.jsx(zr,{active:A,closeOnEscape:r,closeOnOutsideInteraction:s,highlightedIndex:F,id:B,listboxReference:V,onEscapeDismiss:ke,onEscapeKeyDown:C,onHighlight:X,onOutsideDismiss:se,onPointerDownOutside:S,onSelect:me,options:I,ownerDocument:Y,position:ne,selectedValue:oe,state:W.state==="closing"?"closing":"open",triggerReference:_})}):null]})}const qr=i.forwardRef(function(n,e){const{options:r}=n;return r!==void 0?a.jsx(Zr,{...n,forwardedReference:e}):a.jsx(Hr,{...n,forwardedReference:e})}),Gr=i.forwardRef(function(n,e){const{"aria-hidden":r=!0,className:s,height:o="1em",shape:l="rectangle",style:c,width:f=l==="circle"?"1em":"100%",...h}=n;return a.jsx("div",{...h,ref:e,"aria-hidden":r,className:["nk-skeleton",s].filter(Boolean).join(" "),"data-shape":l,style:{...c,width:f,height:o}})}),$r=i.forwardRef(function(n,e){const{"aria-invalid":r,className:s,disabled:o=!1,style:l,...c}=n;return a.jsxs("span",{className:["nk-switch",s].filter(Boolean).join(" "),"data-disabled":o||void 0,"data-invalid":ce(r)||void 0,style:l,children:[a.jsx("input",{...c,ref:e,"aria-invalid":r,className:"nk-switch__control",disabled:o,role:"switch",type:"checkbox"}),a.jsx("span",{"aria-hidden":"true",className:"nk-switch__track",children:a.jsx("span",{className:"nk-switch__thumb"})})]})}),Kr=500,kt=i.createContext(null);function Ur(t){const{children:n,delay:e=Kr}=t,r=i.useMemo(()=>({delay:e}),[e]);return a.jsx(kt.Provider,{value:r,children:n})}const yt=500,st=100;function Yr(t,n,e,r){n.current=t,Pe(e,t),Pe(r,t)}function Xr(t){return Number.isFinite(t)?Math.max(0,t):yt}function Qr(t,n){const e=(t==null?void 0:t.split(/\s+/).filter(Boolean))??[];return e.includes(n)||e.push(n),e.join(" ")}const Ct=i.forwardRef(function(n,e){const{children:r,className:s,content:o,contentClassName:l,contentStyle:c,delay:f,disabled:h=!1,onOpenChange:d,placement:u="top",portalContainer:v,style:m}=n;if(o==null||typeof o=="boolean"||typeof o=="string"&&!o.trim())throw new Error("Tooltip content must not be empty");if(r.type===i.Fragment)throw new Error("Tooltip requires a single non-Fragment trigger");const C=`${i.useId()}-tooltip`,b=i.useContext(kt),w=r.props,S=mt(r),I=i.useRef(null),M=i.useRef(null),k=i.useRef(h),j=i.useRef(!1),y=i.useRef(null),E=i.useRef(null),L=i.useRef(null),O=i.useRef(!1),H=i.useRef(!1),B=i.useRef(!1),_=i.useRef(!1),[Z,N]=i.useState(null),[x,R]=i.useState(null),[V,A]=i.useState(!1);k.current=h;const T=Xr(f??(b==null?void 0:b.delay)??yt),F=Ve(V),X=(v==null?void 0:v.ownerDocument)??(Z==null?void 0:Z.ownerDocument)??(typeof document>"u"?null:document),U=Le(F.present,X),G=gt(F.present,u,Z,x),z=i.useMemo(()=>[I,M],[]),oe=Qr(w["aria-describedby"],C),ue=V&&F.present?oe:w["aria-describedby"],ve=i.useCallback(p=>{Yr(p,I,S,e),N(p)},[e,S]),xe=i.useCallback(p=>{M.current=p,p||(_.current=!1),R(p)},[]),W=i.useCallback(()=>{const p=y.current;p&&p.ownerWindow.clearTimeout(p.timerId),y.current=null},[]),Y=i.useCallback(()=>{const p=E.current;p&&p.ownerWindow.clearTimeout(p.timerId),E.current=null},[]),ne=i.useCallback(()=>{const p=L.current;p&&p.ownerWindow.clearTimeout(p.timerId),L.current=null},[]),J=i.useCallback(p=>{j.current!==p&&(p||(_.current=!1),j.current=p,A(p),d==null||d(p))},[d]),q=i.useCallback(p=>{var Q,te;if(Y(),H.current||B.current||_.current)return;if(p===0){J(!1);return}const P=((Q=I.current)==null?void 0:Q.ownerDocument.defaultView)??((te=M.current)==null?void 0:te.ownerDocument.defaultView);if(!P){J(!1);return}const $=P.setTimeout(()=>{E.current=null,!H.current&&!B.current&&!_.current&&J(!1)},p);E.current={ownerWindow:P,timerId:$}},[Y,J]),de=i.useCallback(()=>{var $;if(W(),Y(),T===0){J(!0);return}const p=($=I.current)==null?void 0:$.ownerDocument.defaultView;if(!p)return;const P=p.setTimeout(()=>{y.current=null,k.current||J(!0)},T);y.current={ownerWindow:p,timerId:P}},[Y,W,T,J]);function ee(p){var P;if((P=w.onFocus)==null||P.call(w,p),H.current=!0,Y(),O.current||or(p.currentTarget)){W();return}W(),J(!0)}function re(p){var P;(P=w.onBlur)==null||P.call(w,p),!p.currentTarget.contains(p.relatedTarget)&&(H.current=!1,W(),q(0))}function me(p){var P;(P=w.onMouseEnter)==null||P.call(w,p),B.current=!0,de()}function ke(p){var P;(P=w.onMouseLeave)==null||P.call(w,p),B.current=!1,W(),q(st)}function se(){_.current=!0,Y()}function ye(){_.current=!1,q(st)}function Ce(p){var Q,te;(Q=w.onPointerDown)==null||Q.call(w,p),W(),Y(),J(!1);const P=(te=I.current)==null?void 0:te.ownerDocument.defaultView;if(!P)return;O.current=!0,ne();const $=P.setTimeout(()=>{O.current=!1,L.current=null},0);L.current={ownerWindow:P,timerId:$}}if(Te({active:V,boundaries:z,dismissOnPointerDownOutside:!0,layerId:U.id,onEscapeDismiss:()=>J(!1),onPointerDownOutsideDismiss:()=>J(!1),ownerDocument:X}),i.useEffect(()=>{h&&(W(),Y(),ne(),O.current=!1,H.current=!1,B.current=!1,_.current=!1,j.current&&J(!1))},[Y,W,ne,h,J]),i.useEffect(()=>()=>{W(),Y(),ne()},[Y,W,ne]),h)return i.cloneElement(r,{ref:ve});const ge=i.cloneElement(r,{"aria-describedby":ue,className:[w.className,"nk-tooltip__trigger",s].filter(Boolean).join(" "),onBlur:re,onFocus:ee,onMouseEnter:me,onMouseLeave:ke,onPointerDown:Ce,ref:ve,style:{...w.style,...m}});return a.jsxs(a.Fragment,{children:[ge,F.present&&X?a.jsx(Me,{container:v,inheritFrom:Z,children:a.jsxs(Se,{ref:xe,"aria-hidden":V?void 0:!0,className:["nk-tooltip",l].filter(Boolean).join(" "),"data-placement":(G==null?void 0:G.placement)??u,"data-state":F.state==="closing"?"closing":"open",id:C,onMouseEnter:se,onMouseLeave:ye,role:"tooltip",style:G?{...c,"--nk-tooltip-arrow-offset":`${G.arrowOffset}px`,left:G.left,top:G.top,zIndex:U.zIndex}:{...c,visibility:"hidden",zIndex:U.zIndex},children:[a.jsx("span",{"aria-hidden":"true",className:"nk-tooltip__arrow"}),o]})}):null]})}),Jr=["a[href]","audio[controls]","button","iframe","input","label","select","summary","textarea","video[controls]","[contenteditable]:not([contenteditable='false'])"].join(","),eo=new Set(["button","checkbox","combobox","grid","link","listbox","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","option","radio","radiogroup","scrollbar","searchbox","slider","spinbutton","switch","tab","tablist","textbox","tree","treegrid","treeitem"]);function to(t,n){var r;let e=t;for(;e&&e!==n;){if(e.matches(Jr)||(((r=e.getAttribute("role"))==null?void 0:r.split(/\s+/))??[]).some(o=>eo.has(o)))return!0;e=e.parentElement}return!1}function no(t,n,e){return t===void 0?n:e?e(t):t instanceof Date?Number.isNaN(t.getTime())?"Invalid Date":t.toISOString().slice(0,10):typeof t=="boolean"?t?"Yes":"No":t}function ro(t){if(typeof t=="number"||typeof t=="string")return String(t)}function jt(t){for(const n of i.Children.toArray(t)){if(i.isValidElement(n)&&n.type===i.Fragment){if(jt(n.props.children))return!0;continue}return!0}return!1}function oo(t,n){let e=!1;function r(o){return i.Children.map(o,l=>i.isValidElement(l)?l.type===i.Fragment?i.cloneElement(l,void 0,r(l.props.children)):!e&&l.type===It?(e=!0,i.cloneElement(l,{rowTrigger:n})):l:l)}const s=r(t);return{attached:e,content:s}}const so=i.forwardRef(function(n,e){const{children:r,className:s,...o}=n;return a.jsx("thead",{...o,ref:e,className:["nk-table__head",s].filter(Boolean).join(" "),children:r})}),io=i.forwardRef(function(n,e){const{children:r,className:s,emptyColumnCount:o=1,emptyMessage:l,...c}=n,f=!jt(r),h=Number.isFinite(o)?Math.max(1,Math.floor(o)):1;return a.jsx("tbody",{...c,ref:e,className:["nk-table__body",s].filter(Boolean).join(" "),children:f&&l!==void 0?a.jsx("tr",{className:"nk-table__row",children:a.jsx("td",{className:"nk-table__cell nk-table__empty-cell",colSpan:h,children:a.jsx("div",{className:"nk-table__empty-content",children:l})})}):r})}),ao=i.forwardRef(function(n,e){const{children:r,className:s,...o}=n;return a.jsx("tfoot",{...o,ref:e,className:["nk-table__foot",s].filter(Boolean).join(" "),children:r})}),lo=i.forwardRef(function(n,e){const{children:r,className:s,download:o,href:l,hrefLang:c,label:f,onClick:h,onNavigate:d,rel:u,target:v,...m}=n,g=i.useRef(null),C=l!==void 0||h!==void 0,b=(f==null?void 0:f.trim())||(l!==void 0?"Open row":"Activate row");function w(k){g.current=k}const S=l!==void 0?{kind:"link",label:b,linkProperties:{download:o,href:l,hrefLang:c,onNavigate:d,rel:u,target:v},reference:w}:h!==void 0?{kind:"button",label:b,onClick:h,reference:w}:void 0,I=S?oo(r,S):{content:r};function M(k){if(k.defaultPrevented)return;const j=k.target;if(!(j instanceof Element)||to(j,k.currentTarget))return;const y=g.current;if(!y)return;const E=y.ownerDocument.defaultView;if(!E){y.click();return}y.dispatchEvent(new E.MouseEvent("click",{altKey:k.altKey,bubbles:!0,button:k.button,buttons:k.buttons,cancelable:!0,clientX:k.clientX,clientY:k.clientY,ctrlKey:k.ctrlKey,metaKey:k.metaKey,shiftKey:k.shiftKey}))}return a.jsx("tr",{...m,ref:e,className:["nk-table__row",s].filter(Boolean).join(" "),"data-interactive":C||void 0,onClick:C?M:void 0,children:I.content})}),Rt=i.forwardRef(function(n,e){const{align:r="left",children:s,className:o,scope:l="col",sticky:c=!1,...f}=n;return a.jsx("th",{...f,ref:e,className:["nk-table__header-cell",o].filter(Boolean).join(" "),"data-align":r,"data-sticky":c||void 0,scope:l,children:s})}),co=i.forwardRef(function(n,e){const{children:r,className:s,...o}=n;return a.jsx(Rt,{...o,ref:e,align:"right",className:["nk-table__action-header-cell",s].filter(Boolean).join(" "),children:r??a.jsx("span",{className:"nk-table__visually-hidden",children:"Row actions"})})}),It=i.forwardRef(function(n,e){const{align:r="left",children:s,className:o,format:l,title:c,truncate:f,value:h,...d}=n,{rowTrigger:u,...v}=d,m=no(h,s,l),g=f===void 0?void 0:{maxWidth:f},C=c??(f===void 0?void 0:ro(m));return a.jsxs("td",{...v,ref:e,className:["nk-table__cell",o].filter(Boolean).join(" "),"data-align":r,title:C,children:[(u==null?void 0:u.kind)==="link"&&u.linkProperties?a.jsx("a",{ref:u.reference,"aria-label":u.label,className:"nk-table__row-trigger",download:u.linkProperties.download,href:u.linkProperties.href,hrefLang:u.linkProperties.hrefLang,onClick:u.linkProperties.onNavigate,rel:u.linkProperties.rel,target:u.linkProperties.target}):null,(u==null?void 0:u.kind)==="button"?a.jsx("button",{ref:u.reference,"aria-label":u.label,className:"nk-table__row-trigger",onClick:u.onClick,type:"button"}):null,f!==void 0?a.jsx("span",{className:"nk-table__truncated-content",style:g,children:m}):m]})}),uo=i.forwardRef(function(n,e){const{"aria-label":r,icon:s,label:o,...l}=n;return a.jsx(Ct,{content:o,children:a.jsx(Re,{...l,ref:e,"aria-label":r??o,className:"nk-table__action",icon:s,shape:"rectangle",type:"button",variant:"ghost"})})}),fo=i.forwardRef(function(n,e){const{children:r,className:s,onClick:o,...l}=n;function c(f){f.stopPropagation(),o==null||o(f)}return a.jsx("td",{...l,ref:e,className:["nk-table__cell","nk-table__action-cell",s].filter(Boolean).join(" "),"data-align":"right",onClick:c,children:a.jsx("span",{className:"nk-table__action-list",children:r})})}),ho=i.forwardRef(function(n,e){const{"aria-label":r,children:s,className:o,containerClassName:l,scrollContainerLabel:c,...f}=n,h=i.useRef(null),d=i.useRef(null),[u,v]=i.useState(!1),[m,g]=i.useState(!1),C=c??(r?`${r} scroll area`:"Scrollable table"),b=i.useCallback(S=>{d.current=S,Pe(e,S)},[e]);i.useEffect(()=>{const S=h.current,I=d.current;if(!S||!I)return;const M=S,k=I;function j(){const O=M.scrollWidth>M.clientWidth;v(O),O||g(!1)}j();const y=M.ownerDocument.defaultView;y==null||y.addEventListener("resize",j);const E=y==null?void 0:y.ResizeObserver,L=E?new E(j):void 0;return L==null||L.observe(M),L==null||L.observe(k),()=>{y==null||y.removeEventListener("resize",j),L==null||L.disconnect()}},[]);function w(S){g(u&&S.currentTarget.scrollLeft>1)}return a.jsx("div",{ref:h,"aria-label":u?C:void 0,className:["nk-table__container",l].filter(Boolean).join(" "),"data-scrolled":m||void 0,onScroll:w,role:u?"region":void 0,tabIndex:u?0:void 0,children:a.jsx("table",{...f,ref:b,"aria-label":r,className:["nk-table",o].filter(Boolean).join(" "),children:s})})}),po=Object.assign(ho,{Action:uo,ActionCell:fo,ActionHeaderCell:co,Body:io,Cell:It,Foot:ao,HeaderCell:Rt,Head:so,Row:lo});function it(t){return Number.isFinite(t)?Math.max(1,Math.floor(t)):1}const vo=i.forwardRef(function(n,e){const{"aria-invalid":r,className:s,disabled:o=!1,invalid:l=!1,minRows:c,readOnly:f=!1,resize:h="vertical",rows:d,style:u,...v}=n,m=it(d??c??3),C=`calc(${it(c??d??3)*1.25}em + var(--nk-text-area-padding) * 2 + var(--nk-text-area-border-width) * 2)`,b={...u,"--nk-text-area-min-height":C};return a.jsx("textarea",{...v,ref:e,"aria-invalid":fe(l,r),className:["nk-text-area",s].filter(Boolean).join(" "),"data-invalid":l||ce(r)||void 0,"data-resize":h,disabled:o,readOnly:f,rows:m,style:b})});exports.Alert=Tt;exports.Avatar=Bt;exports.Badge=Dt;exports.Button=Re;exports.Card=Mn;exports.Checkbox=ct;exports.CheckboxGroup=pt;exports.Content=Gn;exports.Divider=$n;exports.Field=Kn;exports.Icon=le;exports.Input=Xn;exports.Modal=hr;exports.PinInput=Tr;exports.Popover=Er;exports.Radio=Br;exports.RadioGroup=xt;exports.Select=qr;exports.Skeleton=Gr;exports.Spinner=qe;exports.Switch=$r;exports.Table=po;exports.Text=ie;exports.TextArea=vo;exports.Tooltip=Ct;exports.TooltipProvider=Ur;exports.breakpoint=pe;exports.cell=Nt;exports.px=Lt;exports.space=Mt;
|
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export { Select, type CustomSelectProps, type NativeSelectProps, type SelectDisp
|
|
|
22
22
|
export { Skeleton, type SkeletonProps, type SkeletonShape, } from "./components/Skeleton";
|
|
23
23
|
export { Spinner, type SpinnerProps } from "./components/Spinner";
|
|
24
24
|
export { Switch, type SwitchProps } from "./components/Switch";
|
|
25
|
+
export { Table, type TableActionCellProps, type TableActionHeaderCellProps, type TableActionProps, type TableBodyProps, type TableCellAlignment, type TableCellProps, type TableCellValue, type TableFootProps, type TableHeaderCellProps, type TableHeadProps, type TableProps, type TableRowProps, } from "./components/Table";
|
|
25
26
|
export { Text, type TextAlignment, type TextProps, type TextSize, type TextTone, type TextWeight, } from "./components/Text";
|
|
26
27
|
export { TextArea, type TextAreaProps, type TextAreaResize, } from "./components/TextArea";
|
|
27
28
|
export { Tooltip, type TooltipPlacement, type TooltipProps, TooltipProvider, type TooltipProviderProps, } from "./components/Tooltip";
|