cortex-react-components 1.7.1 → 1.7.2
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/{chunk-HU5RE6RN.mjs → chunk-3JTJE3CH.mjs} +1 -1
- package/dist/chunk-5VW5YOZB.mjs +4 -0
- package/dist/{chunk-EJ7V4F7Y.mjs → chunk-7YKANUOC.mjs} +1 -1
- package/dist/{chunk-Z4V2VUJ4.mjs → chunk-LBKMUSVR.mjs} +1 -1
- package/dist/{chunk-LKBMU736.mjs → chunk-MUAUXGCS.mjs} +1 -1
- package/dist/{chunk-IELYTAA6.mjs → chunk-QSXVIRH2.mjs} +1 -1
- package/dist/{chunk-HTIXQIZ5.mjs → chunk-WMZYFRHZ.mjs} +1 -1
- package/dist/{chunk-2SI3V2Z7.mjs → chunk-X4NLERYK.mjs} +1 -1
- package/dist/components/Blocks/Insight.js +1 -1
- package/dist/components/Blocks/Insight.mjs +1 -1
- package/dist/components/Blocks/Insight.stories.js +1 -1
- package/dist/components/Blocks/Insight.stories.mjs +1 -1
- package/dist/components/Blocks/index.js +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/Cards/FeatureCard.js +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.stories.js +1 -1
- package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
- package/dist/components/Cards/index.js +2 -2
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/Images/DynamicIcon.d.ts +1 -1
- package/dist/components/Images/DynamicIcon.js +1 -1
- package/dist/components/Images/DynamicIcon.mjs +1 -1
- package/dist/components/Images/DynamicIcon.stories.js +1 -1
- package/dist/components/Images/DynamicIcon.stories.mjs +1 -1
- package/dist/components/Images/index.d.ts +1 -2
- package/dist/components/Images/index.js +1 -1
- package/dist/components/Images/index.mjs +1 -1
- package/dist/components/Layouts/FeatureGrid.stories.js +1 -1
- package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
- package/dist/components/Menus/AppLauncher.js +1 -1
- package/dist/components/Menus/AppLauncher.mjs +1 -1
- package/dist/components/Menus/AppLauncher.stories.js +1 -1
- package/dist/components/Menus/AppLauncher.stories.mjs +1 -1
- package/dist/components/Menus/HeaderMenu.stories.js +1 -1
- package/dist/components/Menus/HeaderMenu.stories.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.d.ts +1 -1
- package/dist/components/Menus/SidebarLeft.js +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.stories.js +170 -170
- package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
- package/dist/components/Menus/SidebarRight.d.ts +1 -1
- package/dist/components/Menus/SidebarRight.js +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/SidebarRight.stories.js +168 -168
- package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
- package/dist/components/Menus/SimpleHeader.stories.js +1 -1
- package/dist/components/Menus/SimpleHeader.stories.mjs +1 -1
- package/dist/components/Menus/index.js +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Pages/Documentation.js +1 -1
- package/dist/components/Pages/Documentation.mjs +1 -1
- package/dist/components/Pages/Documentation.stories.js +168 -168
- package/dist/components/Pages/Documentation.stories.mjs +1 -1
- package/dist/components/Pages/IndexPage.js +1 -1
- package/dist/components/Pages/IndexPage.mjs +1 -1
- package/dist/components/Pages/IndexPage.stories.js +185 -185
- package/dist/components/Pages/IndexPage.stories.mjs +1 -1
- package/dist/components/Pages/Intranet.mjs +1 -1
- package/dist/components/Pages/Intranet.stories.js +1 -1
- package/dist/components/Pages/Intranet.stories.mjs +1 -1
- package/dist/components/Pages/Page.mjs +1 -1
- package/dist/components/Pages/Page.stories.js +191 -191
- package/dist/components/Pages/Page.stories.mjs +1 -1
- package/dist/components/index.js +4 -4
- package/dist/components/index.mjs +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
- package/dist/chunk-BYTBE2HZ.mjs +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
"use strict";"use client";var go=Object.create;var Pe=Object.defineProperty;var ho=Object.getOwnPropertyDescriptor;var vo=Object.getOwnPropertyNames;var xo=Object.getPrototypeOf,yo=Object.prototype.hasOwnProperty;var So=(e,t)=>{for(var o in t)Pe(e,o,{get:t[o],enumerable:!0})},Ct=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of vo(t))!yo.call(e,a)&&a!==o&&Pe(e,a,{get:()=>t[a],enumerable:!(r=ho(t,a))||r.enumerable});return e};var L=(e,t,o)=>(o=e!=null?go(xo(e)):{},Ct(t||!e||!e.__esModule?Pe(o,"default",{value:e,enumerable:!0}):o,e)),wo=e=>Ct(Pe({},"__esModule",{value:!0}),e);var Er={};So(Er,{default:()=>bo});module.exports=wo(Er);var ae=L(require("react")),Me=require("@radix-ui/react-icons"),Bt=require("@radix-ui/react-slot");var Lt=require("clsx");var $e="-",Ro=e=>{let t=To(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:d=>{let i=d.split($e);return i[0]===""&&i.length!==1&&i.shift(),Pt(i,t)||Co(d)},getConflictingClassGroupIds:(d,i)=>{let b=o[d]||[];return i&&r[d]?[...b,...r[d]]:b}}},Pt=(e,t)=>{var d;if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?Pt(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let s=e.join($e);return(d=t.validators.find(({validator:i})=>i(s)))==null?void 0:d.classGroupId},Tt=/^\[(.+)\]$/,Co=e=>{if(Tt.test(e)){let t=Tt.exec(e)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},To=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Po(Object.entries(e.classGroups),o).forEach(([s,d])=>{Fe(d,r,s,t)}),r},Fe=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let s=a===""?t:Nt(t,a);s.classGroupId=o;return}if(typeof a=="function"){if(No(a)){Fe(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([s,d])=>{Fe(d,Nt(t,s),o,r)})})},Nt=(e,t)=>{let o=e;return t.split($e).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},No=e=>e.isThemeGetter,Po=(e,t)=>t?e.map(([o,r])=>{let a=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([d,i])=>[t+d,i])):s);return[o,a]}):e,Mo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,a=(s,d)=>{o.set(s,d),t++,t>e&&(t=0,r=o,o=new Map)};return{get(s){let d=o.get(s);if(d!==void 0)return d;if((d=r.get(s))!==void 0)return a(s,d),d},set(s,d){o.has(s)?o.set(s,d):a(s,d)}}},Mt="!",ko=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],s=t.length,d=i=>{let b=[],v=0,x=0,P;for(let f=0;f<i.length;f++){let w=i[f];if(v===0){if(w===a&&(r||i.slice(f,f+s)===t)){b.push(i.slice(x,f)),x=f+s;continue}if(w==="/"){P=f;continue}}w==="["?v++:w==="]"&&v--}let y=b.length===0?i:i.substring(x),C=y.startsWith(Mt),k=C?y.substring(1):y,l=P&&P>x?P-x:void 0;return{modifiers:b,hasImportantModifier:C,baseClassName:k,maybePostfixModifierPosition:l}};return o?i=>o({className:i,parseClassName:d}):d},Io=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},Ao=e=>({cache:Mo(e.cacheSize),parseClassName:ko(e),...Ro(e)}),Eo=/\s+/,Lo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,s=[],d=e.trim().split(Eo),i="";for(let b=d.length-1;b>=0;b-=1){let v=d[b],{modifiers:x,hasImportantModifier:P,baseClassName:y,maybePostfixModifierPosition:C}=o(v),k=!!C,l=r(k?y.substring(0,C):y);if(!l){if(!k){i=v+(i.length>0?" "+i:i);continue}if(l=r(y),!l){i=v+(i.length>0?" "+i:i);continue}k=!1}let f=Io(x).join(":"),w=P?f+Mt:f,T=w+l;if(s.includes(T))continue;s.push(T);let V=a(l,k);for(let J=0;J<V.length;++J){let Ce=V[J];s.push(w+Ce)}i=v+(i.length>0?" "+i:i)}return i};function Bo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=kt(t))&&(r&&(r+=" "),r+=o);return r}var kt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=kt(e[r]))&&(o&&(o+=" "),o+=t);return o};function zo(e,...t){let o,r,a,s=d;function d(b){let v=t.reduce((x,P)=>P(x),e());return o=Ao(v),r=o.cache.get,a=o.cache.set,s=i,i(b)}function i(b){let v=r(b);if(v)return v;let x=Lo(b,o);return a(b,x),x}return function(){return s(Bo.apply(null,arguments))}}var R=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},It=/^\[(?:([a-O-]+):)?(.+)\]$/i,Do=/^\d+\/\d+$/,Oo=new Set(["px","full","screen"]),_o=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ho=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|O|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Go=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Vo=/^(inset_)?-?((\d+)?\.?(\d+)[a-O]+|0)_-?((\d+)?\.?(\d+)[a-O]+|0)/,Wo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j=e=>oe(e)||Oo.has(e)||Do.test(e),q=e=>re(e,"length",Yo),oe=e=>!!e&&!Number.isNaN(Number(e)),We=e=>re(e,"number",oe),be=e=>!!e&&Number.isInteger(Number(e)),Fo=e=>e.endsWith("%")&&oe(e.slice(0,-1)),u=e=>It.test(e),X=e=>_o.test(e),$o=new Set(["length","size","percentage"]),jo=e=>re(e,$o,At),Uo=e=>re(e,"position",At),Ko=new Set(["image","url"]),qo=e=>re(e,Ko,Qo),Xo=e=>re(e,"",Jo),ge=()=>!0,re=(e,t,o)=>{let r=It.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Yo=e=>Ho.test(e)&&!Go.test(e),At=()=>!1,Jo=e=>Vo.test(e),Qo=e=>Wo.test(e);var Zo=()=>{let e=R("colors"),t=R("spacing"),o=R("blur"),r=R("brightness"),a=R("borderColor"),s=R("borderRadius"),d=R("borderSpacing"),i=R("borderWidth"),b=R("contrast"),v=R("grayscale"),x=R("hueRotate"),P=R("invert"),y=R("gap"),C=R("gradientColorStops"),k=R("gradientColorStopPositions"),l=R("inset"),f=R("margin"),w=R("opacity"),T=R("padding"),V=R("saturate"),J=R("scale"),Ce=R("sepia"),ht=R("skew"),vt=R("space"),xt=R("translate"),_e=()=>["auto","contain","none"],He=()=>["auto","hidden","clip","visible","scroll"],Ge=()=>["auto",u,t],N=()=>[u,t],yt=()=>["",j,q],Te=()=>["auto",oe,u],St=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Ne=()=>["solid","dashed","dotted","double","none"],wt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ve=()=>["start","end","center","between","around","evenly","stretch"],fe=()=>["","0",u],Rt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[oe,u];return{cacheSize:500,separator:":",theme:{colors:[ge],spacing:[j,q],blur:["none","",X,u],brightness:$(),borderColor:[e],borderRadius:["none","","full",X,u],borderSpacing:N(),borderWidth:yt(),contrast:$(),grayscale:fe(),hueRotate:$(),invert:fe(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[Fo,q],inset:Ge(),margin:Ge(),opacity:$(),padding:N(),saturate:$(),scale:$(),sepia:fe(),skew:$(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[X]}],"break-after":[{"break-after":Rt()}],"break-before":[{"break-before":Rt()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...St(),u]}],overflow:[{overflow:He()}],"overflow-x":[{"overflow-x":He()}],"overflow-y":[{"overflow-y":He()}],overscroll:[{overscroll:_e()}],"overscroll-x":[{"overscroll-x":_e()}],"overscroll-y":[{"overscroll-y":_e()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[l]}],"inset-x":[{"inset-x":[l]}],"inset-y":[{"inset-y":[l]}],start:[{start:[l]}],end:[{end:[l]}],top:[{top:[l]}],right:[{right:[l]}],bottom:[{bottom:[l]}],left:[{left:[l]}],visibility:["visible","invisible","collapse"],O:[{O:["auto",be,u]}],basis:[{basis:Ge()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:fe()}],shrink:[{shrink:fe()}],order:[{order:["first","last","none",be,u]}],"grid-cols":[{"grid-cols":[ge]}],"col-start-end":[{col:["auto",{span:["full",be,u]},u]}],"col-start":[{"col-start":Te()}],"col-end":[{"col-end":Te()}],"grid-rows":[{"grid-rows":[ge]}],"row-start-end":[{row:["auto",{span:[be,u]},u]}],"row-start":[{"row-start":Te()}],"row-end":[{"row-end":Te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...Ve()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ve(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ve(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],O:[{O:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],D:[{D:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[vt]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[vt]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,t]}],"min-w":[{"min-w":[u,t,"min","max","fit"]}],"max-w":[{"max-w":[u,t,"none","full","min","max","fit","prose",{screen:[X]},X]}],O:[{O:[u,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-O":[{"min-O":[u,t,"min","max","fit","svh","lvh","dvh"]}],"max-O":[{"max-O":[u,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,t,"auto","min","max","fit"]}],"font-size":[{text:["base",X,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",We]}],"font-family":[{font:[ge]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",u]}],"line-clamp":[{"line-clamp":["none",oe,We]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",j,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","we-underline"],"text-decoration-style":[{decoration:[...Ne(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",j,q]}],"underline-offset":[{"underline-offset":["auto",j,u]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...St(),Uo]}],"bg-repeat":[{bg:["we-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",jo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},qo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-Ie":[{"rounded-Ie":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...Ne(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:Ne()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...Ne()]}],"outline-offset":[{"outline-offset":[j,u]}],"outline-w":[{outline:[j,q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:yt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[j,q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",X,Xo]}],"shadow-color":[{shadow:[ge]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...wt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":wt()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",X,u]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[P]}],saturate:[{saturate:[V]}],sepia:[{sepia:[Ce]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[P]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[Ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[J]}],"scale-x":[{"scale-x":[J]}],"scale-y":[{"scale-y":[J]}],rotate:[{rotate:[be,u]}],"translate-x":[{"translate-x":[xt]}],"translate-y":[{"translate-y":[xt]}],"skew-x":[{"skew-x":[ht]}],"skew-y":[{"skew-y":[ht]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","we-drop","grab","grabbing","all-scroll","col-resize","row-resize","O-resize","e-resize","s-resize","w-resize","Bt-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-O":[{"scroll-O":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-D":[{"scroll-D":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[j,q,We]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],O:["mx","my","ms","D","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","O"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-Ie","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-Ie"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-O":["scroll-mx","scroll-my","scroll-ms","scroll-D","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Et=zo(Zo);function p(...e){return Et((0,Lt.clsx)(e))}var O=require("react/jsx-runtime"),je=ae.forwardRef(({...e},t)=>(0,O.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));je.displayName="Breadcrumb";var Ue=ae.forwardRef(({className:e,...t},o)=>(0,O.jsx)("ol",{ref:o,className:p("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Ue.displayName="BreadcrumbList";var ke=ae.forwardRef(({className:e,...t},o)=>(0,O.jsx)("li",{ref:o,className:p("inline-flex items-center gap-1.5",e),...t}));ke.displayName="BreadcrumbItem";var Ke=ae.forwardRef(({asChild:e,className:t,...o},r)=>(0,O.jsx)(e?Bt.Slot:"a",{ref:r,className:p("transition-colors hover:text-foreground",t),...o}));Ke.displayName="BreadcrumbLink";var qe=ae.forwardRef(({className:e,...t},o)=>(0,O.jsx)("span",{ref:o,role:"link","aria-disabled":"true","aria-current":"page",className:p("font-normal text-foreground",e),...t}));qe.displayName="BreadcrumbPage";var Xe=({children:e,className:t,...o})=>(0,O.jsx)("li",{role:"presentation","aria-hidden":"true",className:p("[&>svg]:w-3.5 [&>svg]:O-3.5",t),...o,children:e!=null?e:(0,O.jsx)(Me.ChevronRightIcon,{})});Xe.displayName="BreadcrumbSeparator";var er=({className:e,...t})=>(0,O.jsxs)("span",{role:"presentation","aria-hidden":"true",className:p("flex O-9 w-9 items-center justify-center",e),...t,children:[(0,O.jsx)(Me.DotsHorizontalIcon,{className:"O-4 w-4"}),(0,O.jsx)("span",{className:"sr-only",children:"More"})]});er.displayName="BreadcrumbElipssis";var zt=L(require("react")),Ye=L(require("@radix-ui/react-separator"));var he=zt.forwardRef(({className:e,orientation:t="horizontal",decorative:o=!0,...r},a)=>(0,O.jsx)(Ye.Root,{ref:a,decorative:o,orientation:t,className:p("shrink-0 bg-border",t==="horizontal"?"O-[1px] w-full":"O-full w-[1px]",e),...r}));he.displayName=Ye.Root.displayName;var g=L(require("react")),Zt=require("class-variance-authority"),eo=require("lucide-react");var Ie=require("react"),Ot=(e=768)=>{let[t,o]=(0,Ie.useState)(!1);return(0,Ie.useEffect)(()=>{let r=()=>{o(window.innerWidth<e)};return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t};var Gt=L(require("react")),tr=(0,Zt.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"O-10 px-4 py-2",icon:"O-10 w-10",lg:"O-11 rounded px-8",sm:"O-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),Je=Gt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...a},s)=>(0,O.jsx)(e?Bt.Slot:"button",{className:p(tr({className:t,size:o,variant:r})),ref:s,...a}));Je.displayName="Button";var Wt=L(require("react"));var Qe=Wt.forwardRef(({className:e,type:t,...o},r)=>(0,O.jsx)("input",{type:t,className:p("flex O-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));Qe.displayName="Input";var ve=L(require("react")),A=L(require("@radix-ui/react-dialog"));var Ut=A.Root;var or=A.Portal,Kt=ve.forwardRef(({className:e,...t},o)=>(0,O.jsx)(A.Overlay,{className:p("fixed inset-0 O-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:o}));Kt.displayName=A.Overlay.displayName;var rr=(0,Zt.cva)("fixed O-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 O-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 O-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Ze=ve.forwardRef(({side:e="right",className:t,children:o,...r},a)=>(0,O.jsxs)(or,{children:[(0,O.jsx)(Kt,{}),(0,O.jsxs)(A.Content,{ref:a,className:p(rr({side:e}),t),...r,children:[(0,O.jsxs)(A.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,O.jsx)($t.Cross2Icon,{className:"O-4 w-4"}),(0,O.jsx)("span",{className:"sr-only",children:"Close"})]}),o]})]}));Ze.displayName=A.Content.displayName;var ar=({className:e,...t})=>(0,O.jsx)("div",{className:p("flex flex-col space-y-2 text-center sm:text-left",e),...t});ar.displayName="SheetHeader";var nr=({className:e,...t})=>(0,O.jsx)("div",{className:p("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});nr.displayName="SheetFooter";var sr=ve.forwardRef(({className:e,...t},o)=>(0,O.jsx)(A.Title,{ref:o,className:p("text-lg font-semibold text-foreground",e),...t}));sr.displayName=A.Title.displayName;var ir=ve.forwardRef(({className:e,...t},o)=>(0,O.jsx)(A.Description,{ref:o,className:p("text-sm text-muted-foreground",e),...t}));ir.displayName=A.Description.displayName;function E({className:e,...t}){return(0,O.jsx)("div",{className:p("animate-pulse rounded-md bg-primary/10",e),...t})}var Xt=L(require("react")),G=L(require("@radix-ui/react-tooltip"));var Yt=G.Provider,Jt=G.Root,Qt=G.Trigger,tt=Xt.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,O.jsx)(G.Portal,{children:(0,O.jsx)(G.Content,{ref:r,sideOffset:t,className:p("O-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));tt.displayName=G.Content.displayName;var lr="sidebar:state",dr=60*60*24*7,cr="16rem",pr="18rem",ur="3rem",mr="b",to=g.createContext(null);function Ae(){let e=g.useContext(to);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var ot=g.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:o,className:r,style:a,children:s,...d},i)=>{let b=Ot(),[v,x]=g.useState(!1),[P,y]=g.useState(e),C=t!=null?t:P,k=g.useCallback(T=>{if(o)return o==null?void 0:o(typeof T=="function"?T(C):T);y(T),document.cookie=`${lr}=${C}; path=/; max-age=${dr}`},[o,C]),l=g.useCallback(()=>b?x(T=>!T):k(T=>!T),[b,k,x]);g.useEffect(()=>{let T=V=>{V.key===mr&&(V.metaKey||V.ctrlKey)&&(V.preventDefault(),l())};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[l]);let f=C?"expanded":"collapsed",w=g.useMemo(()=>({state:f,open:C,setOpen:k,isMobile:b,openMobile:v,setOpenMobile:x,toggleSidebar:l}),[f,C,k,b,v,x,l]);return(0,O.jsx)(to.Provider,{value:w,children:(0,O.jsx)(Yt,{delayDuration:0,children:(0,O.jsx)("div",{style:{"--sidebar-width":cr,"--sidebar-width-icon":ur,...a},className:p("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",r),ref:i,...d,children:s})})})});ot.displayName="SidebarProvider";var xe=g.forwardRef(({side:e="left",variant:t="sidebar",collapsible:o="offcanvas",className:r,children:a,...s},d)=>{let{isMobile:i,state:b,openMobile:v,setOpenMobile:x}=Ae();return o==="none"?(0,O.jsx)("div",{className:p("flex O-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:d,...s,children:a}):i?(0,O.jsx)(Ut,{open:v,onOpenChange:x,...s,children:(0,O.jsx)(Ze,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":pr},side:e,children:(0,O.jsx)("div",{className:"flex O-full w-full flex-col",children:a})})}):(0,O.jsxs)("div",{ref:d,className:"group peer hidden md:block text-sidebar-foreground","data-state":b,"data-collapsible":b==="collapsed"?o:"","data-variant":t,"data-side":e,children:[(0,O.jsx)("div",{className:p("duration-200 relative O-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,O.jsx)("div",{className:p("duration-200 fixed top-14 bottom-0 O-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...s,children:(0,O.jsx)("div",{"data-sidebar":"sidebar",className:"flex O-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:a})})]})});xe.displayName="Sidebar";var rt=g.forwardRef(({className:e,onClick:t,...o},r)=>{let{toggleSidebar:a}=Ae();return(0,O.jsxs)(Je,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:p("O-7 w-7",e),onClick:s=>{t==null||t(s),a()},...o,children:[(0,O.jsx)(eo.PanelLeft,{}),(0,O.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});rt.displayName="SidebarTrigger";var fr=g.forwardRef(({className:e,...t},o)=>{let{toggleSidebar:r}=Ae();return(0,O.jsx)("button",{ref:o,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:p("absolute inset-y-0 O-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});fr.displayName="SidebarRail";var at=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)("main",{ref:o,className:p("flex flex-1 flex-col bg-background overflow-y-auto relative max-O-full","md:peer-data-[variant=inset]:O-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));at.displayName="SidebarInset";var br=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)(Qe,{ref:o,"data-sidebar":"input",className:p("O-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));br.displayName="SidebarInput";var ye=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)("div",{ref:o,"data-sidebar":"header",className:p("flex flex-col gap-2 p-2",e),...t}));ye.displayName="SidebarHeader";var Se=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)("div",{ref:o,"data-sidebar":"footer",className:p("flex flex-col gap-2 p-2",e),...t}));Se.displayName="SidebarFooter";var nt=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)(he,{ref:o,"data-sidebar":"separator",className:p("mx-2 w-auto bg-sidebar-border",e),...t}));nt.displayName="SidebarSeparator";var se=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)("div",{ref:o,"data-sidebar":"content",className:p("flex min-O-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));se.displayName="SidebarContent";var W=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)("div",{ref:o,"data-sidebar":"group",className:p("relative flex w-full min-w-0 flex-col p-2",e),...t}));W.displayName="SidebarGroup";var Q=g.forwardRef(({className:e,asChild:t=!1,...o},r)=>(0,O.jsx)(t?Bt.Slot:"div",{ref:r,"data-sidebar":"group-label",className:p("duration-200 flex O-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...o}));Q.displayName="SidebarGroupLabel";var gr=g.forwardRef(({className:e,asChild:t=!1,...o},r)=>(0,O.jsx)(t?Bt.Slot:"button",{ref:r,"data-sidebar":"group-action",className:p("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...o}));gr.displayName="SidebarGroupAction";var U=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)("div",{ref:o,"data-sidebar":"group-content",className:p("w-full text-sm",e),...t}));U.displayName="SidebarGroupContent";var _=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)("ul",{ref:o,"data-sidebar":"menu",className:p("flex w-full min-w-0 flex-col gap-1",e),...t}));_.displayName="SidebarMenu";var B=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)("li",{ref:o,"data-sidebar":"menu-item",className:p("group/menu-item relative",e),...t}));B.displayName="SidebarMenuItem";var hr=(0,Zt.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"O-8 text-sm",sm:"O-7 text-xs",lg:"O-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),F=g.forwardRef(({asChild:e=!1,isActive:t=!1,variant:o="default",size:r="default",tooltip:a,className:s,...d},i)=>{let b=e?Bt.Slot:"button",{isMobile:v,state:x}=Ae(),P=(0,O.jsx)(b,{ref:i,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:p(hr({variant:o,size:r}),s),...d});return a?(typeof a=="string"&&(a={children:a}),(0,O.jsxs)(Jt,{children:[(0,O.jsx)(Qt,{asChild:!0,children:P}),(0,O.jsx)(tt,{side:"right",align:"center",hidden:x!=="collapsed"||v,...a})]})):P});F.displayName="SidebarMenuButton";var st=g.forwardRef(({className:e,asChild:t=!1,showOnHover:o=!1,...r},a)=>(0,O.jsx)(t?Bt.Slot:"button",{ref:a,"data-sidebar":"menu-action",className:p("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",o&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r}));st.displayName="SidebarMenuAction";var vr=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)("div",{ref:o,"data-sidebar":"menu-badge",className:p("absolute right-1 flex O-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));vr.displayName="SidebarMenuBadge";var xr=g.forwardRef(({className:e,showIcon:t=!1,...o},r)=>{let a=g.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,O.jsxs)("div",{ref:r,"data-sidebar":"menu-skeleton",className:p("rounded-md O-8 flex gap-2 px-2 items-center",e),...o,children:[t&&(0,O.jsx)(E,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,O.jsx)(E,{className:"O-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":a}})]})});xr.displayName="SidebarMenuSkeleton";var ie=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)("ul",{ref:o,"data-sidebar":"menu-sub",className:p("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));ie.displayName="SidebarMenuSub";var le=g.forwardRef(({...e},t)=>(0,O.jsx)("li",{ref:t,...e}));le.displayName="SidebarMenuSubItem";var de=g.forwardRef(({asChild:e=!1,size:t="md",isActive:o,className:r,...a},s)=>(0,O.jsx)(e?Bt.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":o,className:p("flex O-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...a}));de.displayName="SidebarMenuSubButton";var ce=L(require("@radix-ui/react-collapsible")),Z=ce.Root,pe=ce.CollapsibleTrigger,ue=ce.CollapsibleContent;var ro=L(require("clsx"));var yr=({type:e="solid",iconName:t="cloud",size:o="lg",className:r})=>{let a="fa-"+e+" ",s="fa-"+t,d=r!=null?r:"",i=a+s+" fa-"+o+" "+d;return(0,O.jsx)("i",{className:i})},Ee=yr;var Sr=()=>(0,O.jsx)(Ee,{iconName:"github",size:"10x"});function it({relatedContent:e,tableOfContents:t,editorComponent:o,loading:r=!1,editMode:a=!1,onAddDocument:s,onEditDocument:d,onPrintDocument:i,onGithubClick:b,onNavClick:v,LinkComponent:x,...P}){let k=x?l=>(0,O.jsx)(x,{...l}):v?({item:l,children:f,...w})=>(0,O.jsx)("button",{onClick:()=>v&&v(l),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...w,children:f}):l=>(0,O.jsx)("a",{href:l.href,...l});return(0,O.jsxs)(xe,{side:"right",variant:"inset",...P,children:[(0,O.jsxs)(ye,{className:"border-b border-sidebar-border",children:[(0,O.jsxs)(_,{className:"flex-row space-x-1",children:[(0,O.jsx)(B,{children:(0,O.jsxs)(F,{onClick:s,children:[(0,O.jsx)(eo.FilePlus,{})," ",(0,O.jsx)("span",{children:"Add Document"})]})}),b&&(0,O.jsx)(B,{children:(0,O.jsx)(F,{onClick:b,tooltip:"Open in GitHub",children:(0,O.jsx)(Sr,{})})})]}),(0,O.jsxs)(_,{className:"flex-row space-x-1",children:[(0,O.jsx)(B,{className:"w-5/12",children:(0,O.jsxs)(F,{onClick:()=>d(),variant:a?"outline":"default",className:(0,ro.default)(a&&"text-accent"),children:[(0,O.jsx)(eo.Edit,{})," ",(0,O.jsx)("span",{children:"Edit"})]})}),(0,O.jsx)(B,{className:"w-5/12",children:(0,O.jsxs)(F,{onClick:i,children:[(0,O.jsx)(eo.Printer,{})," ",(0,O.jsx)("span",{children:"Print"})]})})]})]}),o&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Z,{defaultOpen:!0,className:"group/collapsible",children:(0,O.jsxs)(W,{children:[(0,O.jsx)(Q,{asChild:!0,children:(0,O.jsxs)(pe,{children:["Editor Controls",(0,O.jsx)(eo.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,O.jsx)(U,{children:(0,O.jsx)(ue,{children:o})})]})}),(0,O.jsx)(nt,{className:"mx-0"})]}),(0,O.jsxs)(se,{className:"overflow-auto",children:[r&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(W,{children:[(0,O.jsx)(Q,{children:"Related Content"}),(0,O.jsx)(U,{children:(0,O.jsx)(_,{children:Array.from({length:3}).map((l,f)=>(0,O.jsx)(B,{children:(0,O.jsx)(E,{className:"bg-gray-200 w-full O-10"})},f))})})]}),(0,O.jsxs)(W,{children:[(0,O.jsx)(Q,{children:"Table of Contents"}),(0,O.jsx)(U,{children:(0,O.jsx)(_,{children:Array.from({length:3}).map((l,f)=>(0,O.jsx)(B,{children:(0,O.jsx)(E,{className:"bg-gray-200 w-full O-10"})},f))})})]})]}),e&&!r&&Object.keys(e).length>0&&(0,O.jsx)(Z,{defaultOpen:!0,className:"group/collapsible",children:(0,O.jsxs)(W,{children:[(0,O.jsx)(Q,{asChild:!0,children:(0,O.jsxs)(pe,{children:["Related Content",(0,O.jsx)(eo.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,O.jsx)(U,{children:(0,O.jsx)(ue,{children:(0,O.jsx)(_,{children:e&&Object.keys(e).map(l=>(0,O.jsxs)(B,{children:[(0,O.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",l.charAt(0).toUpperCase()+l.slice(1)]}),l&&e[l]&&(0,O.jsx)(ie,{children:e[l].map(f=>(0,O.jsx)(le,{children:(0,O.jsx)(de,{asChild:!0,isActive:!1,size:"sm",children:(0,O.jsxs)(k,{href:f.url,item:f,className:"flex justify-between items-center w-full text-xs",children:[(0,O.jsx)("span",{children:f.label}),f.type==="note"&&(0,O.jsx)(eo.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),f.type==="draft"&&(0,O.jsx)(Ee,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},f.label))})]},l))})})})]})}),t&&!r&&(0,O.jsx)(Z,{defaultOpen:!0,className:"group/collapsible",children:(0,O.jsxs)(W,{children:[(0,O.jsx)(Q,{asChild:!0,children:(0,O.jsxs)(pe,{children:["Table of Contents",(0,O.jsx)(eo.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,O.jsx)(U,{children:(0,O.jsx)(ue,{children:(0,O.jsx)(_,{children:t.map(l=>{var f;return(0,O.jsxs)(B,{children:[(0,O.jsx)(F,{asChild:!0,children:(0,O.jsx)("a",{href:`#${l.url}`,className:"text-xs",children:l.title})}),(f=l.items)!=null&&f.length?(0,O.jsx)(ie,{children:l.items.map(w=>(0,O.jsx)(le,{children:(0,O.jsx)(de,{asChild:!0,isActive:w.isActive,size:"sm",children:(0,O.jsx)("a",{href:`#${w.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,O.jsx)("span",{children:w.title})})})},w.title))}):null]},l.title)})})})})]})})]}),(0,O.jsx)(Se,{})]})}var lt=L(require("clsx"));function dt({mainNav:e,secondaryNav:t,title:o,subTitle:r,pathName:a,menuHeading:s,onNavClick:d,loading:i=!1,LinkComponent:b,...v}){let P=b?y=>(0,O.jsx)(b,{...y}):d?({href:y,children:C,...k})=>(0,O.jsx)("button",{onClick:()=>d&&d(y),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...k,children:C}):y=>(0,O.jsx)("a",{...y});return(0,O.jsxs)(xe,{...v,variant:"inset",children:[(0,O.jsx)(ye,{children:(0,O.jsx)(_,{children:(0,O.jsx)(B,{children:i?(0,O.jsxs)("div",{className:"grid flex-1 p-2 text-left text-O leading-tight",children:[(0,O.jsx)(E,{className:"bg-gray-200 my-2 w-full O-7"}),(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 my-2 O-5"})]}):(0,O.jsxs)("div",{className:"grid flex-1 p-2 text-left text-O leading-tight",children:[(0,O.jsx)("span",{className:"truncate font-semibold",children:o}),r&&(0,O.jsx)("span",{className:"truncate text-sm",children:r})]})})})}),i&&(0,O.jsxs)(se,{children:[(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 O-5"}),(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 O-5"}),(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 O-5"}),(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 O-5"}),(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 O-5"}),(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 O-5"}),(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 O-5"}),(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 O-5"}),(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 O-5"}),(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 O-5"})]}),(0,O.jsxs)(se,{children:[e&&!i&&e.map((y,C)=>(0,O.jsx)(wr,{subNav:y,pathName:a,Link:P},C)),(0,O.jsx)(W,{className:"mt-auto",children:(0,O.jsx)(U,{children:(0,O.jsx)(_,{children:t&&!i&&t.map(y=>(0,O.jsx)(B,{children:(0,O.jsx)(F,{asChild:!0,size:"sm",children:(0,O.jsxs)(P,{href:y.url||"",children:[y.icon&&(0,O.jsx)(y.icon,{}),(0,O.jsx)("span",{children:y.label})]})})},y.label))})})})]}),(0,O.jsx)(Se,{})]})}function wr({subNav:e,pathName:t,Link:o}){var s,d;let r=e,a=!1;return r.links&&r.links.map(i=>{i.url===t&&(a=!0)}),(0,O.jsx)(Z,{defaultOpen:!0,className:"group/collapsible",children:(0,O.jsx)(W,{className:"py-0",children:(0,O.jsx)(_,{children:(0,O.jsx)(Z,{asChild:!0,defaultOpen:r.isActive,children:(0,O.jsxs)(B,{children:[(0,O.jsx)(F,{asChild:!0,tooltip:r.label,className:(0,lt.default)(a&&"font-bold text-accent"),children:(0,O.jsxs)(o,{href:r.url,children:[r.icon&&(0,O.jsx)(r.icon,{}),(0,O.jsx)("span",{children:r.label})]})}),(s=r.links)!=null&&s.length?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(pe,{asChild:!0,children:(0,O.jsxs)(st,{className:"data-[state=open]:rotate-90",children:[(0,O.jsx)(eo.ChevronRight,{}),(0,O.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,O.jsx)(ue,{children:(0,O.jsx)(ie,{children:(d=r.links)==null?void 0:d.map(i=>(0,O.jsx)(le,{children:(0,O.jsx)(de,{asChild:!0,className:(0,lt.default)(i.url===t&&"font-bold text-accent"),children:(0,O.jsx)(o,{href:i.url,children:(0,O.jsx)("span",{children:i.label})})})},i.label))})})]}):null]})},r.label)})})})}var D=require("@headlessui/react"),Be=require("@heroicons/react/24/outline"),we=require("@heroicons/react/20/solid");var Rr=({name:e,items:t,actions:o=[],href:r})=>!t&&r?(0,O.jsxs)("a",{href:r,className:"relative inline-block text-sm font-semibold text-foreground group",children:[e,(0,O.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 O-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}):(0,O.jsxs)(D.Popover,{children:[(0,O.jsxs)(D.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,O.jsxs)("span",{className:"relative",children:[e,(0,O.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 O-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,O.jsx)(we.ChevronDownIcon,{"aria-hidden":"true",className:"O-5 w-5 flex-none text-accent"})]}),(0,O.jsxs)(D.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -O-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,O.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 O-50",children:t&&t.map(a=>(0,O.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,O.jsx)("div",{className:"flex O-16 w-16 items-center justify-center rounded-lg bg-popover group-hover:text-accent transition-transform duration-300 ease-in-out group-hover:scale-90",children:(0,O.jsx)(a.icon,{"aria-hidden":"true",size:"6x"})}),(0,O.jsxs)("a",{href:a.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[a.name,(0,O.jsx)("span",{className:"absolute inset-0"})]}),(0,O.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:a.description})]},a.name))}),o.length>0&&(0,O.jsx)("div",{className:"bg-gray-50",children:(0,O.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,O.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:o.map(a=>(0,O.jsxs)("a",{href:a.href,className:"flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[(0,O.jsx)(a.icon,{"aria-hidden":"true",className:"O-5 w-5 flex-none text-gray-400"}),a.name]},a.name))})})})]})]}),so=Rr;var Le=["light","dark","green"];function io({title:e,logo:t,menuItems:o}){let[r,a]=(0,Ie.useState)(!1),[s,d]=(0,Ie.useState)(!1),[i,b]=(0,Ie.useState)("light"),v=t==null?void 0:t.split(".")[0],x=t==null?void 0:t.split(".")[1],[P,y]=(0,Ie.useState)(`${v}.${x}`),C=l=>{Le.includes(l)?y(l==="light"?`${v}.${x}`:`${v}-${l}.${x}`):y(`${v}.${x}`)};(0,Ie.useEffect)(()=>{let l=localStorage.getItem("theme")||"light";console.log("storedTheme",l),b(l),document.documentElement.setAttribute("class",l),C(l)},[]);let k=()=>{let l=Le[(Le.indexOf(i)+1)%Le.length];b(l),document.documentElement.setAttribute("class",l),localStorage.setItem("theme",l),C(l)};return(0,O.jsxs)("header",{className:"relative isolate O-10 bg-background O-14",children:[(0,O.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,O.jsx)("div",{className:"flex lg:flex-1",children:(0,O.jsxs)("a",{href:"#",className:"-O-1.5 p-1.5 outline-none",children:[(0,O.jsx)("span",{className:"sr-only",children:e}),(0,O.jsx)("img",{alt:e,src:P,className:"O-9 w-auto"})]})}),(0,O.jsx)("div",{className:"flex lg:hidden",children:(0,O.jsxs)("button",{type:"button",onClick:()=>a(!0),className:"-O-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,O.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,O.jsx)(Be.Bars3Icon,{"aria-hidden":"true",className:"O-6 w-6"})]})}),(0,O.jsx)(D.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:o.map(l=>(0,O.jsx)(so,{...l},l.name))}),(0,O.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,O.jsx)("button",{onClick:k,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,O.jsx)(we.SunIcon,{className:"O-6 w-6"}):i==="green"?(0,O.jsx)(we.MoonIcon,{className:"O-6 w-6"}):(0,O.jsx)(we.SunIcon,{className:"O-6 w-6"})})})]}),(0,O.jsxs)(D.Dialog,{open:r,onClose:a,className:"lg:hidden",children:[(0,O.jsx)("div",{className:"fixed inset-0 O-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,O.jsxs)(D.DialogPanel,{className:"fixed inset-y-0 right-0 O-20 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,O.jsxs)("div",{className:"flex items-center justify-between",children:[(0,O.jsxs)("a",{href:"#",className:"-O-1.5 p-1.5 outline-none",children:[(0,O.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,O.jsx)("img",{alt:e,src:t,className:"O-8 w-auto"})]}),(0,O.jsxs)("button",{type:"button",onClick:()=>a(!1),className:"-O-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,O.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,O.jsx)(Be.XMarkIcon,{"aria-hidden":"true",className:"O-6 w-6"})]})]}),(0,O.jsx)("div",{className:"mt-6 flow-root",children:(0,O.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,O.jsx)("div",{className:"space-y-2 py-6",children:o.map(l=>(0,O.jsx)(Cr,{...l},l.name))})})})]})]})]})}function Cr({name:e,items:t,actions:o,href:r}){return!t&&r?(0,O.jsx)("a",{href:r,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,O.jsxs)(D.Disclosure,{as:"div",className:"-mx-3",children:[(0,O.jsx)(D.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,O.jsx)(D.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(a=>(0,O.jsx)(D.DisclosureButton,{as:"a",href:a.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:a.name},a.name))})]})}var Oe=L(require("react")),Tr=1,Nr=1e6;var ct=0;function Pr(){return ct=(ct+1)%Number.MAX_SAFE_INTEGER,ct.toString()}var pt=new Map,lo=e=>{if(pt.has(e))return;let t=setTimeout(()=>{pt.delete(e),Re({type:"REMOVE_TOAST",toastId:e})},Nr);pt.set(e,t)},Mr=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Tr)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case"DISMISS_TOAST":{let{toastId:o}=t;return o?lo(o):e.toasts.forEach(r=>{lo(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===o||o===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)}}},ze=[],De={toasts:[]};function Re(e){De=Mr(De,e),ze.forEach(t=>{t(De)})}function kr({...e}){let t=Pr(),o=a=>Re({type:"UPDATE_TOAST",toast:{...a,id:t}}),r=()=>Re({type:"DISMISS_TOAST",toastId:t});return Re({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||r()}}}),{id:t,dismiss:r,update:o}}function co(){let[e,t]=Oe.useState(De);return Oe.useEffect(()=>(ze.push(t),()=>{let o=ze.indexOf(t);o>-1&&ze.splice(o,1)}),[e]),{...e,toast:kr,dismiss:o=>Re({type:"DISMISS_TOAST",toastId:o})}}var te=L(require("react")),I=L(require("@radix-ui/react-toast"));var mo=I.Provider,ut=te.forwardRef(({className:e,...t},o)=>(0,O.jsx)(I.Viewport,{ref:o,className:p("fixed top-0 O-[100] flex max-O-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));ut.displayName=I.Viewport.displayName;var Ir=(0,Zt.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),mt=te.forwardRef(({className:e,variant:t,...o},r)=>(0,O.jsx)(I.Root,{ref:r,className:p(Ir({variant:t}),e),...o}));mt.displayName=I.Root.displayName;var Ar=te.forwardRef(({className:e,...t},o)=>(0,O.jsx)(I.Action,{ref:o,className:p("inline-flex O-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Ar.displayName=I.Action.displayName;var ft=te.forwardRef(({className:e,...t},o)=>(0,O.jsx)(I.Close,{ref:o,className:p("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:(0,O.jsx)(eo.X,{className:"O-4 w-4"})}));ft.displayName=I.Close.displayName;var bt=te.forwardRef(({className:e,...t},o)=>(0,O.jsx)(I.Title,{ref:o,className:p("text-sm font-semibold [&+div]:text-xs",e),...t}));bt.displayName=I.Title.displayName;var gt=te.forwardRef(({className:e,...t},o)=>(0,O.jsx)(I.Description,{ref:o,className:p("text-sm opacity-90",e),...t}));gt.displayName=I.Description.displayName;function fo(){let{toasts:e}=co();return(0,O.jsxs)(mo,{children:[e.map(function({id:t,title:o,description:r,action:a,...s}){return(0,O.jsxs)(mt,{...s,children:[(0,O.jsxs)("div",{className:"grid gap-1",children:[o&&(0,O.jsx)(bt,{children:o}),r&&(0,O.jsx)(gt,{children:r})]}),a,(0,O.jsx)(ft,{})]},t)}),(0,O.jsx)(ut,{})]})}function bo({...e}){return(0,O.jsxs)("div",{className:"flex fixed flex-col w-screen O-screen max-O-screen overflow-auto overscroll-contain",children:[(0,O.jsx)(io,{...e.header}),(0,O.jsxs)(ot,{className:"top-14 mb-4 O-full max-O-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[(0,O.jsx)(dt,{...e.sidebarLeft,className:"flex-none"}),(0,O.jsxs)(at,{className:"grow overflow-hidden",children:[(0,O.jsx)("header",{className:"flex O-16 shrink-0 items-center gap-2",children:(0,O.jsxs)("div",{className:"flex items-center gap-2 px-4",children:[(0,O.jsx)(rt,{className:"-ml-1"}),(0,O.jsx)(he,{orientation:"vertical",className:"mr-2 O-4"}),(0,O.jsx)(je,{children:(0,O.jsxs)(Ue,{children:[(0,O.jsx)(ke,{className:"hidden md:block",children:(0,O.jsx)(Ke,{href:"#",children:"Building Your Application"})}),(0,O.jsx)(Xe,{className:"hidden md:block"}),(0,O.jsx)(ke,{children:(0,O.jsx)(qe,{children:"Data Fetching"})})]})})]})}),(0,O.jsxs)("div",{className:"flex flex-1 flex-col gap-4 p-4 pt-0",children:[(0,O.jsxs)("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[(0,O.jsx)("div",{className:"aspect-video rounded-xl bg-muted/50"}),(0,O.jsx)("div",{className:"aspect-video rounded-xl bg-muted/50"}),(0,O.jsx)("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),(0,O.jsx)("div",{className:"flex-1 rounded-xl bg-muted/50 md:min-O-min"})]})]}),(0,O.jsx)(it,{...e.sidebarRight,className:"flex-none"})]}),(0,O.jsx)(fo,{})]})}
|
|
4
|
+
"use strict";"use client";var go=Object.create;var Pe=Object.defineProperty;var ho=Object.getOwnPropertyDescriptor;var vo=Object.getOwnPropertyNames;var xo=Object.getPrototypeOf,yo=Object.prototype.hasOwnProperty;var So=(e,t)=>{for(var o in t)Pe(e,o,{get:t[o],enumerable:!0})},wt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of vo(t))!yo.call(e,a)&&a!==o&&Pe(e,a,{get:()=>t[a],enumerable:!(r=ho(t,a))||r.enumerable});return e};var L=(e,t,o)=>(o=e!=null?go(xo(e)):{},wt(t||!e||!e.__esModule?Pe(o,"default",{value:e,enumerable:!0}):o,e)),wo=e=>wt(Pe({},"__esModule",{value:!0}),e);var Ar={};So(Ar,{default:()=>bo});module.exports=wo(Ar);var ae=L(require("react")),Me=require("@radix-ui/react-icons"),Et=require("@radix-ui/react-slot");var At=require("clsx");var Fe="-",Ro=e=>{let t=To(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:d=>{let i=d.split(Fe);return i[0]===""&&i.length!==1&&i.shift(),Tt(i,t)||Co(d)},getConflictingClassGroupIds:(d,i)=>{let b=o[d]||[];return i&&r[d]?[...b,...r[d]]:b}}},Tt=(e,t)=>{var d;if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),a=r?Tt(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;let s=e.join(Fe);return(d=t.validators.find(({validator:i})=>i(s)))==null?void 0:d.classGroupId},Rt=/^\[(.+)\]$/,Co=e=>{if(Rt.test(e)){let t=Rt.exec(e)[1],o=t==null?void 0:t.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},To=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Po(Object.entries(e.classGroups),o).forEach(([s,d])=>{We(d,r,s,t)}),r},We=(e,t,o,r)=>{e.forEach(a=>{if(typeof a=="string"){let s=a===""?t:Ct(t,a);s.classGroupId=o;return}if(typeof a=="function"){if(No(a)){We(a(r),t,o,r);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([s,d])=>{We(d,Ct(t,s),o,r)})})},Ct=(e,t)=>{let o=e;return t.split(Fe).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},No=e=>e.isThemeGetter,Po=(e,t)=>t?e.map(([o,r])=>{let a=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([d,i])=>[t+d,i])):s);return[o,a]}):e,Mo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,a=(s,d)=>{o.set(s,d),t++,t>e&&(t=0,r=o,o=new Map)};return{get(s){let d=o.get(s);if(d!==void 0)return d;if((d=r.get(s))!==void 0)return a(s,d),d},set(s,d){o.has(s)?o.set(s,d):a(s,d)}}},Nt="!",ko=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,a=t[0],s=t.length,d=i=>{let b=[],v=0,x=0,P;for(let f=0;f<i.length;f++){let w=i[f];if(v===0){if(w===a&&(r||i.slice(f,f+s)===t)){b.push(i.slice(x,f)),x=f+s;continue}if(w==="/"){P=f;continue}}w==="["?v++:w==="]"&&v--}let y=b.length===0?i:i.substring(x),C=y.startsWith(Nt),k=C?y.substring(1):y,l=P&&P>x?P-x:void 0;return{modifiers:b,hasImportantModifier:C,baseClassName:k,maybePostfixModifierPosition:l}};return o?i=>o({className:i,parseClassName:d}):d},Io=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},Ao=e=>({cache:Mo(e.cacheSize),parseClassName:ko(e),...Ro(e)}),Eo=/\s+/,Lo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:a}=t,s=[],d=e.trim().split(Eo),i="";for(let b=d.length-1;b>=0;b-=1){let v=d[b],{modifiers:x,hasImportantModifier:P,baseClassName:y,maybePostfixModifierPosition:C}=o(v),k=!!C,l=r(k?y.substring(0,C):y);if(!l){if(!k){i=v+(i.length>0?" "+i:i);continue}if(l=r(y),!l){i=v+(i.length>0?" "+i:i);continue}k=!1}let f=Io(x).join(":"),w=P?f+Nt:f,T=w+l;if(s.includes(T))continue;s.push(T);let V=a(l,k);for(let J=0;J<V.length;++J){let Ce=V[J];s.push(w+Ce)}i=v+(i.length>0?" "+i:i)}return i};function Bo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Pt(t))&&(r&&(r+=" "),r+=o);return r}var Pt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Pt(e[r]))&&(o&&(o+=" "),o+=t);return o};function zo(e,...t){let o,r,a,s=d;function d(b){let v=t.reduce((x,P)=>P(x),e());return o=Ao(v),r=o.cache.get,a=o.cache.set,s=i,i(b)}function i(b){let v=r(b);if(v)return v;let x=Lo(b,o);return a(b,x),x}return function(){return s(Bo.apply(null,arguments))}}var R=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Mt=/^\[(?:([a-O-]+):)?(.+)\]$/i,Do=/^\d+\/\d+$/,Oo=new Set(["px","full","screen"]),_o=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ho=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|O|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Go=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Vo=/^(inset_)?-?((\d+)?\.?(\d+)[a-O]+|0)_-?((\d+)?\.?(\d+)[a-O]+|0)/,Wo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j=e=>oe(e)||Oo.has(e)||Do.test(e),q=e=>re(e,"length",Yo),oe=e=>!!e&&!Number.isNaN(Number(e)),Ve=e=>re(e,"number",oe),be=e=>!!e&&Number.isInteger(Number(e)),Fo=e=>e.endsWith("%")&&oe(e.slice(0,-1)),u=e=>Mt.test(e),X=e=>_o.test(e),$o=new Set(["length","size","percentage"]),jo=e=>re(e,$o,kt),Uo=e=>re(e,"position",kt),Ko=new Set(["image","url"]),qo=e=>re(e,Ko,Qo),Xo=e=>re(e,"",Jo),ge=()=>!0,re=(e,t,o)=>{let r=Mt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Yo=e=>Ho.test(e)&&!Go.test(e),kt=()=>!1,Jo=e=>Vo.test(e),Qo=e=>Wo.test(e);var Zo=()=>{let e=R("colors"),t=R("spacing"),o=R("blur"),r=R("brightness"),a=R("borderColor"),s=R("borderRadius"),d=R("borderSpacing"),i=R("borderWidth"),b=R("contrast"),v=R("grayscale"),x=R("hueRotate"),P=R("invert"),y=R("gap"),C=R("gradientColorStops"),k=R("gradientColorStopPositions"),l=R("inset"),f=R("margin"),w=R("opacity"),T=R("padding"),V=R("saturate"),J=R("scale"),Ce=R("sepia"),bt=R("skew"),gt=R("space"),ht=R("translate"),Oe=()=>["auto","contain","none"],_e=()=>["auto","hidden","clip","visible","scroll"],He=()=>["auto",u,t],N=()=>[u,t],vt=()=>["",j,q],Te=()=>["auto",oe,u],xt=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Ne=()=>["solid","dashed","dotted","double","none"],yt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ge=()=>["start","end","center","between","around","evenly","stretch"],fe=()=>["","0",u],St=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[oe,u];return{cacheSize:500,separator:":",theme:{colors:[ge],spacing:[j,q],blur:["none","",X,u],brightness:$(),borderColor:[e],borderRadius:["none","","full",X,u],borderSpacing:N(),borderWidth:vt(),contrast:$(),grayscale:fe(),hueRotate:$(),invert:fe(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[Fo,q],inset:He(),margin:He(),opacity:$(),padding:N(),saturate:$(),scale:$(),sepia:fe(),skew:$(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[X]}],"break-after":[{"break-after":St()}],"break-before":[{"break-before":St()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...xt(),u]}],overflow:[{overflow:_e()}],"overflow-x":[{"overflow-x":_e()}],"overflow-y":[{"overflow-y":_e()}],overscroll:[{overscroll:Oe()}],"overscroll-x":[{"overscroll-x":Oe()}],"overscroll-y":[{"overscroll-y":Oe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[l]}],"inset-x":[{"inset-x":[l]}],"inset-y":[{"inset-y":[l]}],start:[{start:[l]}],end:[{end:[l]}],top:[{top:[l]}],right:[{right:[l]}],bottom:[{bottom:[l]}],left:[{left:[l]}],visibility:["visible","invisible","collapse"],O:[{O:["auto",be,u]}],basis:[{basis:He()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:fe()}],shrink:[{shrink:fe()}],order:[{order:["first","last","none",be,u]}],"grid-cols":[{"grid-cols":[ge]}],"col-start-end":[{col:["auto",{span:["full",be,u]},u]}],"col-start":[{"col-start":Te()}],"col-end":[{"col-end":Te()}],"grid-rows":[{"grid-rows":[ge]}],"row-start-end":[{row:["auto",{span:[be,u]},u]}],"row-start":[{"row-start":Te()}],"row-end":[{"row-end":Te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...Ge()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ge(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ge(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],O:[{O:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],D:[{D:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[gt]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[gt]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",u,t]}],"min-w":[{"min-w":[u,t,"min","max","fit"]}],"max-w":[{"max-w":[u,t,"none","full","min","max","fit","prose",{screen:[X]},X]}],O:[{O:[u,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-O":[{"min-O":[u,t,"min","max","fit","svh","lvh","dvh"]}],"max-O":[{"max-O":[u,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[u,t,"auto","min","max","fit"]}],"font-size":[{text:["base",X,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ve]}],"font-family":[{font:[ge]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",u]}],"line-clamp":[{"line-clamp":["none",oe,Ve]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",j,u]}],"list-image":[{"list-image":["none",u]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","we-underline"],"text-decoration-style":[{decoration:[...Ne(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",j,q]}],"underline-offset":[{"underline-offset":["auto",j,u]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...xt(),Uo]}],"bg-repeat":[{bg:["we-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",jo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},qo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[C]}],"gradient-via":[{via:[C]}],"gradient-to":[{to:[C]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-Ie":[{"rounded-Ie":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...Ne(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:Ne()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...Ne()]}],"outline-offset":[{"outline-offset":[j,u]}],"outline-w":[{outline:[j,q]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:vt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[j,q]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",X,Xo]}],"shadow-color":[{shadow:[ge]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...yt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":yt()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",X,u]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[P]}],saturate:[{saturate:[V]}],sepia:[{sepia:[Ce]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[P]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[V]}],"backdrop-sepia":[{"backdrop-sepia":[Ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[J]}],"scale-x":[{"scale-x":[J]}],"scale-y":[{"scale-y":[J]}],rotate:[{rotate:[be,u]}],"translate-x":[{"translate-x":[ht]}],"translate-y":[{"translate-y":[ht]}],"skew-x":[{"skew-x":[bt]}],"skew-y":[{"skew-y":[bt]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","we-drop","grab","grabbing","all-scroll","col-resize","row-resize","O-resize","e-resize","s-resize","w-resize","Et-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-O":[{"scroll-O":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-D":[{"scroll-D":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[j,q,Ve]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],O:["mx","my","ms","D","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","O"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-Ie","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-Ie"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-O":["scroll-mx","scroll-my","scroll-ms","scroll-D","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var It=zo(Zo);function p(...e){return It((0,At.clsx)(e))}var O=require("react/jsx-runtime"),$e=ae.forwardRef(({...e},t)=>(0,O.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));$e.displayName="Breadcrumb";var je=ae.forwardRef(({className:e,...t},o)=>(0,O.jsx)("ol",{ref:o,className:p("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));je.displayName="BreadcrumbList";var ke=ae.forwardRef(({className:e,...t},o)=>(0,O.jsx)("li",{ref:o,className:p("inline-flex items-center gap-1.5",e),...t}));ke.displayName="BreadcrumbItem";var Ue=ae.forwardRef(({asChild:e,className:t,...o},r)=>(0,O.jsx)(e?Et.Slot:"a",{ref:r,className:p("transition-colors hover:text-foreground",t),...o}));Ue.displayName="BreadcrumbLink";var Ke=ae.forwardRef(({className:e,...t},o)=>(0,O.jsx)("span",{ref:o,role:"link","aria-disabled":"true","aria-current":"page",className:p("font-normal text-foreground",e),...t}));Ke.displayName="BreadcrumbPage";var qe=({children:e,className:t,...o})=>(0,O.jsx)("li",{role:"presentation","aria-hidden":"true",className:p("[&>svg]:w-3.5 [&>svg]:O-3.5",t),...o,children:e!=null?e:(0,O.jsx)(Me.ChevronRightIcon,{})});qe.displayName="BreadcrumbSeparator";var er=({className:e,...t})=>(0,O.jsxs)("span",{role:"presentation","aria-hidden":"true",className:p("flex O-9 w-9 items-center justify-center",e),...t,children:[(0,O.jsx)(Me.DotsHorizontalIcon,{className:"O-4 w-4"}),(0,O.jsx)("span",{className:"sr-only",children:"More"})]});er.displayName="BreadcrumbElipssis";var Lt=L(require("react")),Xe=L(require("@radix-ui/react-separator"));var he=Lt.forwardRef(({className:e,orientation:t="horizontal",decorative:o=!0,...r},a)=>(0,O.jsx)(Xe.Root,{ref:a,decorative:o,orientation:t,className:p("shrink-0 bg-border",t==="horizontal"?"O-[1px] w-full":"O-full w-[1px]",e),...r}));he.displayName=Xe.Root.displayName;var g=L(require("react")),Jt=require("class-variance-authority"),Qt=require("lucide-react");var Ie=require("react"),zt=(e=768)=>{let[t,o]=(0,Ie.useState)(!1);return(0,Ie.useEffect)(()=>{let r=()=>{o(window.innerWidth<e)};return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t};var _t=L(require("react")),tr=(0,Jt.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"O-10 px-4 py-2",icon:"O-10 w-10",lg:"O-11 rounded px-8",sm:"O-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),Ye=_t.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...a},s)=>(0,O.jsx)(e?Et.Slot:"button",{className:p(tr({className:t,size:o,variant:r})),ref:s,...a}));Ye.displayName="Button";var Gt=L(require("react"));var Je=Gt.forwardRef(({className:e,type:t,...o},r)=>(0,O.jsx)("input",{type:t,className:p("flex O-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));Je.displayName="Input";var ve=L(require("react")),A=L(require("@radix-ui/react-dialog"));var $t=A.Root;var or=A.Portal,jt=ve.forwardRef(({className:e,...t},o)=>(0,O.jsx)(A.Overlay,{className:p("fixed inset-0 O-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:o}));jt.displayName=A.Overlay.displayName;var rr=(0,Jt.cva)("fixed O-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 O-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 O-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Qe=ve.forwardRef(({side:e="right",className:t,children:o,...r},a)=>(0,O.jsxs)(or,{children:[(0,O.jsx)(jt,{}),(0,O.jsxs)(A.Content,{ref:a,className:p(rr({side:e}),t),...r,children:[(0,O.jsxs)(A.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,O.jsx)(Me.Cross2Icon,{className:"O-4 w-4"}),(0,O.jsx)("span",{className:"sr-only",children:"Close"})]}),o]})]}));Qe.displayName=A.Content.displayName;var ar=({className:e,...t})=>(0,O.jsx)("div",{className:p("flex flex-col space-y-2 text-center sm:text-left",e),...t});ar.displayName="SheetHeader";var nr=({className:e,...t})=>(0,O.jsx)("div",{className:p("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});nr.displayName="SheetFooter";var sr=ve.forwardRef(({className:e,...t},o)=>(0,O.jsx)(A.Title,{ref:o,className:p("text-lg font-semibold text-foreground",e),...t}));sr.displayName=A.Title.displayName;var ir=ve.forwardRef(({className:e,...t},o)=>(0,O.jsx)(A.Description,{ref:o,className:p("text-sm text-muted-foreground",e),...t}));ir.displayName=A.Description.displayName;function E({className:e,...t}){return(0,O.jsx)("div",{className:p("animate-pulse rounded-md bg-primary/10",e),...t})}var Kt=L(require("react")),G=L(require("@radix-ui/react-tooltip"));var qt=G.Provider,Xt=G.Root,Yt=G.Trigger,et=Kt.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,O.jsx)(G.Portal,{children:(0,O.jsx)(G.Content,{ref:r,sideOffset:t,className:p("O-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));et.displayName=G.Content.displayName;var lr="sidebar:state",dr=60*60*24*7,cr="16rem",pr="18rem",ur="3rem",mr="b",Zt=g.createContext(null);function Ae(){let e=g.useContext(Zt);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var tt=g.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:o,className:r,style:a,children:s,...d},i)=>{let b=zt(),[v,x]=g.useState(!1),[P,y]=g.useState(e),C=t!=null?t:P,k=g.useCallback(T=>{if(o)return o==null?void 0:o(typeof T=="function"?T(C):T);y(T),document.cookie=`${lr}=${C}; path=/; max-age=${dr}`},[o,C]),l=g.useCallback(()=>b?x(T=>!T):k(T=>!T),[b,k,x]);g.useEffect(()=>{let T=V=>{V.key===mr&&(V.metaKey||V.ctrlKey)&&(V.preventDefault(),l())};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[l]);let f=C?"expanded":"collapsed",w=g.useMemo(()=>({state:f,open:C,setOpen:k,isMobile:b,openMobile:v,setOpenMobile:x,toggleSidebar:l}),[f,C,k,b,v,x,l]);return(0,O.jsx)(Zt.Provider,{value:w,children:(0,O.jsx)(qt,{delayDuration:0,children:(0,O.jsx)("div",{style:{"--sidebar-width":cr,"--sidebar-width-icon":ur,...a},className:p("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",r),ref:i,...d,children:s})})})});tt.displayName="SidebarProvider";var xe=g.forwardRef(({side:e="left",variant:t="sidebar",collapsible:o="offcanvas",className:r,children:a,...s},d)=>{let{isMobile:i,state:b,openMobile:v,setOpenMobile:x}=Ae();return o==="none"?(0,O.jsx)("div",{className:p("flex O-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:d,...s,children:a}):i?(0,O.jsx)($t,{open:v,onOpenChange:x,...s,children:(0,O.jsx)(Qe,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":pr},side:e,children:(0,O.jsx)("div",{className:"flex O-full w-full flex-col",children:a})})}):(0,O.jsxs)("div",{ref:d,className:"group peer hidden md:block text-sidebar-foreground","data-state":b,"data-collapsible":b==="collapsed"?o:"","data-variant":t,"data-side":e,children:[(0,O.jsx)("div",{className:p("duration-200 relative O-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,O.jsx)("div",{className:p("duration-200 fixed top-14 bottom-0 O-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...s,children:(0,O.jsx)("div",{"data-sidebar":"sidebar",className:"flex O-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:a})})]})});xe.displayName="Sidebar";var ot=g.forwardRef(({className:e,onClick:t,...o},r)=>{let{toggleSidebar:a}=Ae();return(0,O.jsxs)(Ye,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:p("O-7 w-7",e),onClick:s=>{t==null||t(s),a()},...o,children:[(0,O.jsx)(Qt.PanelLeft,{}),(0,O.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});ot.displayName="SidebarTrigger";var fr=g.forwardRef(({className:e,...t},o)=>{let{toggleSidebar:r}=Ae();return(0,O.jsx)("button",{ref:o,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:p("absolute inset-y-0 O-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});fr.displayName="SidebarRail";var rt=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)("main",{ref:o,className:p("flex flex-1 flex-col bg-background overflow-y-auto relative max-O-full","md:peer-data-[variant=inset]:O-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));rt.displayName="SidebarInset";var br=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)(Je,{ref:o,"data-sidebar":"input",className:p("O-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));br.displayName="SidebarInput";var ye=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)("div",{ref:o,"data-sidebar":"header",className:p("flex flex-col gap-2 p-2",e),...t}));ye.displayName="SidebarHeader";var Se=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)("div",{ref:o,"data-sidebar":"footer",className:p("flex flex-col gap-2 p-2",e),...t}));Se.displayName="SidebarFooter";var at=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)(he,{ref:o,"data-sidebar":"separator",className:p("mx-2 w-auto bg-sidebar-border",e),...t}));at.displayName="SidebarSeparator";var se=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)("div",{ref:o,"data-sidebar":"content",className:p("flex min-O-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));se.displayName="SidebarContent";var W=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)("div",{ref:o,"data-sidebar":"group",className:p("relative flex w-full min-w-0 flex-col p-2",e),...t}));W.displayName="SidebarGroup";var Q=g.forwardRef(({className:e,asChild:t=!1,...o},r)=>(0,O.jsx)(t?Et.Slot:"div",{ref:r,"data-sidebar":"group-label",className:p("duration-200 flex O-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...o}));Q.displayName="SidebarGroupLabel";var gr=g.forwardRef(({className:e,asChild:t=!1,...o},r)=>(0,O.jsx)(t?Et.Slot:"button",{ref:r,"data-sidebar":"group-action",className:p("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...o}));gr.displayName="SidebarGroupAction";var U=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)("div",{ref:o,"data-sidebar":"group-content",className:p("w-full text-sm",e),...t}));U.displayName="SidebarGroupContent";var _=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)("ul",{ref:o,"data-sidebar":"menu",className:p("flex w-full min-w-0 flex-col gap-1",e),...t}));_.displayName="SidebarMenu";var B=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)("li",{ref:o,"data-sidebar":"menu-item",className:p("group/menu-item relative",e),...t}));B.displayName="SidebarMenuItem";var hr=(0,Jt.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"O-8 text-sm",sm:"O-7 text-xs",lg:"O-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),F=g.forwardRef(({asChild:e=!1,isActive:t=!1,variant:o="default",size:r="default",tooltip:a,className:s,...d},i)=>{let b=e?Et.Slot:"button",{isMobile:v,state:x}=Ae(),P=(0,O.jsx)(b,{ref:i,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:p(hr({variant:o,size:r}),s),...d});return a?(typeof a=="string"&&(a={children:a}),(0,O.jsxs)(Xt,{children:[(0,O.jsx)(Yt,{asChild:!0,children:P}),(0,O.jsx)(et,{side:"right",align:"center",hidden:x!=="collapsed"||v,...a})]})):P});F.displayName="SidebarMenuButton";var nt=g.forwardRef(({className:e,asChild:t=!1,showOnHover:o=!1,...r},a)=>(0,O.jsx)(t?Et.Slot:"button",{ref:a,"data-sidebar":"menu-action",className:p("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",o&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r}));nt.displayName="SidebarMenuAction";var vr=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)("div",{ref:o,"data-sidebar":"menu-badge",className:p("absolute right-1 flex O-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));vr.displayName="SidebarMenuBadge";var xr=g.forwardRef(({className:e,showIcon:t=!1,...o},r)=>{let a=g.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,O.jsxs)("div",{ref:r,"data-sidebar":"menu-skeleton",className:p("rounded-md O-8 flex gap-2 px-2 items-center",e),...o,children:[t&&(0,O.jsx)(E,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,O.jsx)(E,{className:"O-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":a}})]})});xr.displayName="SidebarMenuSkeleton";var ie=g.forwardRef(({className:e,...t},o)=>(0,O.jsx)("ul",{ref:o,"data-sidebar":"menu-sub",className:p("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));ie.displayName="SidebarMenuSub";var le=g.forwardRef(({...e},t)=>(0,O.jsx)("li",{ref:t,...e}));le.displayName="SidebarMenuSubItem";var de=g.forwardRef(({asChild:e=!1,size:t="md",isActive:o,className:r,...a},s)=>(0,O.jsx)(e?Et.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":o,className:p("flex O-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...a}));de.displayName="SidebarMenuSubButton";var ce=L(require("@radix-ui/react-collapsible")),Z=ce.Root,pe=ce.CollapsibleTrigger,ue=ce.CollapsibleContent;var to=L(require("clsx"));var st=({type:e="solid",iconName:t="cloud",size:o="lg",className:r})=>{let a="fa-"+e+" ",s="fa-"+t,d=r!=null?r:"",i=a+s+" fa-"+o+" "+d;return(0,O.jsx)("i",{className:i})};var yr=()=>(0,O.jsx)(st,{iconName:"github",size:"10x"});function oo({relatedContent:e,tableOfContents:t,editorComponent:o,loading:r=!1,editMode:a=!1,onAddDocument:s,onEditDocument:d,onPrintDocument:i,onGithubClick:b,onNavClick:v,LinkComponent:x,...P}){let k=x?l=>(0,O.jsx)(x,{...l}):v?({item:l,children:f,...w})=>(0,O.jsx)("button",{onClick:()=>v&&v(l),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...w,children:f}):l=>(0,O.jsx)("a",{href:l.href,...l});return(0,O.jsxs)(xe,{side:"right",variant:"inset",...P,children:[(0,O.jsxs)(ye,{className:"border-b border-sidebar-border",children:[(0,O.jsxs)(_,{className:"flex-row space-x-1",children:[(0,O.jsx)(B,{children:(0,O.jsxs)(F,{onClick:s,children:[(0,O.jsx)(Qt.FilePlus,{})," ",(0,O.jsx)("span",{children:"Add Document"})]})}),b&&(0,O.jsx)(B,{children:(0,O.jsx)(F,{onClick:b,tooltip:"Open in GitHub",children:(0,O.jsx)(yr,{})})})]}),(0,O.jsxs)(_,{className:"flex-row space-x-1",children:[(0,O.jsx)(B,{className:"w-5/12",children:(0,O.jsxs)(F,{onClick:()=>d(),variant:a?"outline":"default",className:(0,to.default)(a&&"text-accent"),children:[(0,O.jsx)(Qt.Edit,{})," ",(0,O.jsx)("span",{children:"Edit"})]})}),(0,O.jsx)(B,{className:"w-5/12",children:(0,O.jsxs)(F,{onClick:i,children:[(0,O.jsx)(Qt.Printer,{})," ",(0,O.jsx)("span",{children:"Print"})]})})]})]}),o&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Z,{defaultOpen:!0,className:"group/collapsible",children:(0,O.jsxs)(W,{children:[(0,O.jsx)(Q,{asChild:!0,children:(0,O.jsxs)(pe,{children:["Editor Controls",(0,O.jsx)(Qt.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,O.jsx)(U,{children:(0,O.jsx)(ue,{children:o})})]})}),(0,O.jsx)(at,{className:"mx-0"})]}),(0,O.jsxs)(se,{className:"overflow-auto",children:[r&&(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(W,{children:[(0,O.jsx)(Q,{children:"Related Content"}),(0,O.jsx)(U,{children:(0,O.jsx)(_,{children:Array.from({length:3}).map((l,f)=>(0,O.jsx)(B,{children:(0,O.jsx)(E,{className:"bg-gray-200 w-full O-10"})},f))})})]}),(0,O.jsxs)(W,{children:[(0,O.jsx)(Q,{children:"Table of Contents"}),(0,O.jsx)(U,{children:(0,O.jsx)(_,{children:Array.from({length:3}).map((l,f)=>(0,O.jsx)(B,{children:(0,O.jsx)(E,{className:"bg-gray-200 w-full O-10"})},f))})})]})]}),e&&!r&&Object.keys(e).length>0&&(0,O.jsx)(Z,{defaultOpen:!0,className:"group/collapsible",children:(0,O.jsxs)(W,{children:[(0,O.jsx)(Q,{asChild:!0,children:(0,O.jsxs)(pe,{children:["Related Content",(0,O.jsx)(Qt.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,O.jsx)(U,{children:(0,O.jsx)(ue,{children:(0,O.jsx)(_,{children:e&&Object.keys(e).map(l=>(0,O.jsxs)(B,{children:[(0,O.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",l.charAt(0).toUpperCase()+l.slice(1)]}),l&&e[l]&&(0,O.jsx)(ie,{children:e[l].map(f=>(0,O.jsx)(le,{children:(0,O.jsx)(de,{asChild:!0,isActive:!1,size:"sm",children:(0,O.jsxs)(k,{href:f.url,item:f,className:"flex justify-between items-center w-full text-xs",children:[(0,O.jsx)("span",{children:f.label}),f.type==="note"&&(0,O.jsx)(Qt.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),f.type==="draft"&&(0,O.jsx)(st,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},f.label))})]},l))})})})]})}),t&&!r&&(0,O.jsx)(Z,{defaultOpen:!0,className:"group/collapsible",children:(0,O.jsxs)(W,{children:[(0,O.jsx)(Q,{asChild:!0,children:(0,O.jsxs)(pe,{children:["Table of Contents",(0,O.jsx)(Qt.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,O.jsx)(U,{children:(0,O.jsx)(ue,{children:(0,O.jsx)(_,{children:t.map(l=>{var f;return(0,O.jsxs)(B,{children:[(0,O.jsx)(F,{asChild:!0,children:(0,O.jsx)("a",{href:`#${l.url}`,className:"text-xs",children:l.title})}),(f=l.items)!=null&&f.length?(0,O.jsx)(ie,{children:l.items.map(w=>(0,O.jsx)(le,{children:(0,O.jsx)(de,{asChild:!0,isActive:w.isActive,size:"sm",children:(0,O.jsx)("a",{href:`#${w.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,O.jsx)("span",{children:w.title})})})},w.title))}):null]},l.title)})})})})]})})]}),(0,O.jsx)(Se,{})]})}var it=L(require("clsx"));function ao({mainNav:e,secondaryNav:t,title:o,subTitle:r,pathName:a,menuHeading:s,onNavClick:d,loading:i=!1,LinkComponent:b,...v}){let P=b?y=>(0,O.jsx)(b,{...y}):d?({href:y,children:C,...k})=>(0,O.jsx)("button",{onClick:()=>d&&d(y),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...k,children:C}):y=>(0,O.jsx)("a",{...y});return(0,O.jsxs)(xe,{...v,variant:"inset",children:[(0,O.jsx)(ye,{children:(0,O.jsx)(_,{children:(0,O.jsx)(B,{children:i?(0,O.jsxs)("div",{className:"grid flex-1 p-2 text-left text-O leading-tight",children:[(0,O.jsx)(E,{className:"bg-gray-200 my-2 w-full O-7"}),(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 my-2 O-5"})]}):(0,O.jsxs)("div",{className:"grid flex-1 p-2 text-left text-O leading-tight",children:[(0,O.jsx)("span",{className:"truncate font-semibold",children:o}),r&&(0,O.jsx)("span",{className:"truncate text-sm",children:r})]})})})}),i&&(0,O.jsxs)(se,{children:[(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 O-5"}),(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 O-5"}),(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 O-5"}),(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 O-5"}),(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 O-5"}),(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 O-5"}),(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 O-5"}),(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 O-5"}),(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 O-5"}),(0,O.jsx)(E,{className:"bg-gray-200 w-3/4 O-5"})]}),(0,O.jsxs)(se,{children:[e&&!i&&e.map((y,C)=>(0,O.jsx)(Sr,{subNav:y,pathName:a,Link:P},C)),(0,O.jsx)(W,{className:"mt-auto",children:(0,O.jsx)(U,{children:(0,O.jsx)(_,{children:t&&!i&&t.map(y=>(0,O.jsx)(B,{children:(0,O.jsx)(F,{asChild:!0,size:"sm",children:(0,O.jsxs)(P,{href:y.url||"",children:[y.icon&&(0,O.jsx)(y.icon,{}),(0,O.jsx)("span",{children:y.label})]})})},y.label))})})})]}),(0,O.jsx)(Se,{})]})}function Sr({subNav:e,pathName:t,Link:o}){var s,d;let r=e,a=!1;return r.links&&r.links.map(i=>{i.url===t&&(a=!0)}),(0,O.jsx)(Z,{defaultOpen:!0,className:"group/collapsible",children:(0,O.jsx)(W,{className:"py-0",children:(0,O.jsx)(_,{children:(0,O.jsx)(Z,{asChild:!0,defaultOpen:r.isActive,children:(0,O.jsxs)(B,{children:[(0,O.jsx)(F,{asChild:!0,tooltip:r.label,className:(0,it.default)(a&&"font-bold text-accent"),children:(0,O.jsxs)(o,{href:r.url,children:[r.icon&&(0,O.jsx)(r.icon,{}),(0,O.jsx)("span",{children:r.label})]})}),(s=r.links)!=null&&s.length?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(pe,{asChild:!0,children:(0,O.jsxs)(nt,{className:"data-[state=open]:rotate-90",children:[(0,O.jsx)(Qt.ChevronRight,{}),(0,O.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,O.jsx)(ue,{children:(0,O.jsx)(ie,{children:(d=r.links)==null?void 0:d.map(i=>(0,O.jsx)(le,{children:(0,O.jsx)(de,{asChild:!0,className:(0,it.default)(i.url===t&&"font-bold text-accent"),children:(0,O.jsx)(o,{href:i.url,children:(0,O.jsx)("span",{children:i.label})})})},i.label))})})]}):null]})},r.label)})})})}var D=require("@headlessui/react"),Le=require("@heroicons/react/24/outline"),we=require("@heroicons/react/20/solid");var wr=({name:e,items:t,actions:o=[],href:r})=>!t&&r?(0,O.jsxs)("a",{href:r,className:"relative inline-block text-sm font-semibold text-foreground group",children:[e,(0,O.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 O-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}):(0,O.jsxs)(D.Popover,{children:[(0,O.jsxs)(D.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,O.jsxs)("span",{className:"relative",children:[e,(0,O.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 O-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,O.jsx)(we.ChevronDownIcon,{"aria-hidden":"true",className:"O-5 w-5 flex-none text-accent"})]}),(0,O.jsxs)(D.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -O-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,O.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 O-50",children:t&&t.map(a=>(0,O.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,O.jsx)("div",{className:"flex O-16 w-16 items-center justify-center rounded-lg bg-popover group-hover:text-accent transition-transform duration-300 ease-in-out group-hover:scale-90",children:(0,O.jsx)(a.icon,{"aria-hidden":"true",size:"6x"})}),(0,O.jsxs)("a",{href:a.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[a.name,(0,O.jsx)("span",{className:"absolute inset-0"})]}),(0,O.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:a.description})]},a.name))}),o.length>0&&(0,O.jsx)("div",{className:"bg-gray-50",children:(0,O.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,O.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:o.map(a=>(0,O.jsxs)("a",{href:a.href,className:"flex items-center justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[(0,O.jsx)(a.icon,{"aria-hidden":"true",className:"O-5 w-5 flex-none text-gray-400"}),a.name]},a.name))})})})]})]}),so=wr;var Ee=["light","dark","green"];function io({title:e,logo:t,menuItems:o}){let[r,a]=(0,Ie.useState)(!1),[s,d]=(0,Ie.useState)(!1),[i,b]=(0,Ie.useState)("light"),v=t==null?void 0:t.split(".")[0],x=t==null?void 0:t.split(".")[1],[P,y]=(0,Ie.useState)(`${v}.${x}`),C=l=>{Ee.includes(l)?y(l==="light"?`${v}.${x}`:`${v}-${l}.${x}`):y(`${v}.${x}`)};(0,Ie.useEffect)(()=>{let l=localStorage.getItem("theme")||"light";console.log("storedTheme",l),b(l),document.documentElement.setAttribute("class",l),C(l)},[]);let k=()=>{let l=Ee[(Ee.indexOf(i)+1)%Ee.length];b(l),document.documentElement.setAttribute("class",l),localStorage.setItem("theme",l),C(l)};return(0,O.jsxs)("header",{className:"relative isolate O-10 bg-background O-14",children:[(0,O.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,O.jsx)("div",{className:"flex lg:flex-1",children:(0,O.jsxs)("a",{href:"#",className:"-O-1.5 p-1.5 outline-none",children:[(0,O.jsx)("span",{className:"sr-only",children:e}),(0,O.jsx)("img",{alt:e,src:P,className:"O-9 w-auto"})]})}),(0,O.jsx)("div",{className:"flex lg:hidden",children:(0,O.jsxs)("button",{type:"button",onClick:()=>a(!0),className:"-O-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,O.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,O.jsx)(Le.Bars3Icon,{"aria-hidden":"true",className:"O-6 w-6"})]})}),(0,O.jsx)(D.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:o.map(l=>(0,O.jsx)(so,{...l},l.name))}),(0,O.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,O.jsx)("button",{onClick:k,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,O.jsx)(we.SunIcon,{className:"O-6 w-6"}):i==="green"?(0,O.jsx)(we.MoonIcon,{className:"O-6 w-6"}):(0,O.jsx)(we.SunIcon,{className:"O-6 w-6"})})})]}),(0,O.jsxs)(D.Dialog,{open:r,onClose:a,className:"lg:hidden",children:[(0,O.jsx)("div",{className:"fixed inset-0 O-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,O.jsxs)(D.DialogPanel,{className:"fixed inset-y-0 right-0 O-20 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,O.jsxs)("div",{className:"flex items-center justify-between",children:[(0,O.jsxs)("a",{href:"#",className:"-O-1.5 p-1.5 outline-none",children:[(0,O.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,O.jsx)("img",{alt:e,src:t,className:"O-8 w-auto"})]}),(0,O.jsxs)("button",{type:"button",onClick:()=>a(!1),className:"-O-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,O.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,O.jsx)(Le.XMarkIcon,{"aria-hidden":"true",className:"O-6 w-6"})]})]}),(0,O.jsx)("div",{className:"mt-6 flow-root",children:(0,O.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,O.jsx)("div",{className:"space-y-2 py-6",children:o.map(l=>(0,O.jsx)(Rr,{...l},l.name))})})})]})]})]})}function Rr({name:e,items:t,actions:o,href:r}){return!t&&r?(0,O.jsx)("a",{href:r,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,O.jsxs)(D.Disclosure,{as:"div",className:"-mx-3",children:[(0,O.jsx)(D.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,O.jsx)(D.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(a=>(0,O.jsx)(D.DisclosureButton,{as:"a",href:a.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:a.name},a.name))})]})}var De=L(require("react")),Cr=1,Tr=1e6;var lt=0;function Nr(){return lt=(lt+1)%Number.MAX_SAFE_INTEGER,lt.toString()}var dt=new Map,lo=e=>{if(dt.has(e))return;let t=setTimeout(()=>{dt.delete(e),Re({type:"REMOVE_TOAST",toastId:e})},Tr);dt.set(e,t)},Pr=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Cr)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case"DISMISS_TOAST":{let{toastId:o}=t;return o?lo(o):e.toasts.forEach(r=>{lo(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===o||o===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)}}},Be=[],ze={toasts:[]};function Re(e){ze=Pr(ze,e),Be.forEach(t=>{t(ze)})}function Mr({...e}){let t=Nr(),o=a=>Re({type:"UPDATE_TOAST",toast:{...a,id:t}}),r=()=>Re({type:"DISMISS_TOAST",toastId:t});return Re({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||r()}}}),{id:t,dismiss:r,update:o}}function co(){let[e,t]=De.useState(ze);return De.useEffect(()=>(Be.push(t),()=>{let o=Be.indexOf(t);o>-1&&Be.splice(o,1)}),[e]),{...e,toast:Mr,dismiss:o=>Re({type:"DISMISS_TOAST",toastId:o})}}var te=L(require("react")),I=L(require("@radix-ui/react-toast"));var mo=I.Provider,ct=te.forwardRef(({className:e,...t},o)=>(0,O.jsx)(I.Viewport,{ref:o,className:p("fixed top-0 O-[100] flex max-O-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));ct.displayName=I.Viewport.displayName;var kr=(0,Jt.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),pt=te.forwardRef(({className:e,variant:t,...o},r)=>(0,O.jsx)(I.Root,{ref:r,className:p(kr({variant:t}),e),...o}));pt.displayName=I.Root.displayName;var Ir=te.forwardRef(({className:e,...t},o)=>(0,O.jsx)(I.Action,{ref:o,className:p("inline-flex O-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Ir.displayName=I.Action.displayName;var ut=te.forwardRef(({className:e,...t},o)=>(0,O.jsx)(I.Close,{ref:o,className:p("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:(0,O.jsx)(Qt.X,{className:"O-4 w-4"})}));ut.displayName=I.Close.displayName;var mt=te.forwardRef(({className:e,...t},o)=>(0,O.jsx)(I.Title,{ref:o,className:p("text-sm font-semibold [&+div]:text-xs",e),...t}));mt.displayName=I.Title.displayName;var ft=te.forwardRef(({className:e,...t},o)=>(0,O.jsx)(I.Description,{ref:o,className:p("text-sm opacity-90",e),...t}));ft.displayName=I.Description.displayName;function fo(){let{toasts:e}=co();return(0,O.jsxs)(mo,{children:[e.map(function({id:t,title:o,description:r,action:a,...s}){return(0,O.jsxs)(pt,{...s,children:[(0,O.jsxs)("div",{className:"grid gap-1",children:[o&&(0,O.jsx)(mt,{children:o}),r&&(0,O.jsx)(ft,{children:r})]}),a,(0,O.jsx)(ut,{})]},t)}),(0,O.jsx)(ct,{})]})}function bo({...e}){return(0,O.jsxs)("div",{className:"flex fixed flex-col w-screen O-screen max-O-screen overflow-auto overscroll-contain",children:[(0,O.jsx)(io,{...e.header}),(0,O.jsxs)(tt,{className:"top-14 mb-4 O-full max-O-[calc(100vh-3.5rem)] flex-1 flex-row overflow-y-clip",children:[(0,O.jsx)(ao,{...e.sidebarLeft,className:"flex-none"}),(0,O.jsxs)(rt,{className:"grow overflow-hidden",children:[(0,O.jsx)("header",{className:"flex O-16 shrink-0 items-center gap-2",children:(0,O.jsxs)("div",{className:"flex items-center gap-2 px-4",children:[(0,O.jsx)(ot,{className:"-ml-1"}),(0,O.jsx)(he,{orientation:"vertical",className:"mr-2 O-4"}),(0,O.jsx)($e,{children:(0,O.jsxs)(je,{children:[(0,O.jsx)(ke,{className:"hidden md:block",children:(0,O.jsx)(Ue,{href:"#",children:"Building Your Application"})}),(0,O.jsx)(qe,{className:"hidden md:block"}),(0,O.jsx)(ke,{children:(0,O.jsx)(Ke,{children:"Data Fetching"})})]})})]})}),(0,O.jsxs)("div",{className:"flex flex-1 flex-col gap-4 p-4 pt-0",children:[(0,O.jsxs)("div",{className:"grid auto-rows-min gap-4 md:grid-cols-3",children:[(0,O.jsx)("div",{className:"aspect-video rounded-xl bg-muted/50"}),(0,O.jsx)("div",{className:"aspect-video rounded-xl bg-muted/50"}),(0,O.jsx)("div",{className:"aspect-video rounded-xl bg-muted/50"})]}),(0,O.jsx)("div",{className:"flex-1 rounded-xl bg-muted/50 md:min-O-min"})]})]}),(0,O.jsx)(oo,{...e.sidebarRight,className:"flex-none"})]}),(0,O.jsx)(fo,{})]})}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";import{a}from"../../chunk-
|
|
2
|
+
"use strict";import{a}from"../../chunk-QSXVIRH2.mjs";import"../../chunk-AWFQEK7A.mjs";import"../../chunk-3YZN4MJB.mjs";import"../../chunk-WNPA7YT3.mjs";import"../../chunk-WMZYFRHZ.mjs";import"../../chunk-64NIISYM.mjs";import"../../chunk-GS2BYKPO.mjs";import"../../chunk-JODGODRI.mjs";import"../../chunk-XHQLYY3W.mjs";import"../../chunk-LBKMUSVR.mjs";import"../../chunk-IPHHUHS3.mjs";import"../../chunk-Y5VTKEKS.mjs";import"../../chunk-CGBVZQYY.mjs";import"../../chunk-BSQVKZCW.mjs";import"../../chunk-QOIH63J3.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-MUAUXGCS.mjs";import"../../chunk-BUTUFEFR.mjs";import"../../chunk-5VW5YOZB.mjs";import"../../chunk-D76EO57Z.mjs";import"../../chunk-OAOCXXC2.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-CV7PH2KH.mjs";import"../../chunk-FRWX5YES.mjs";import"../../chunk-D2WXBUVJ.mjs";export{a as default};
|