@fwkui/x-css 1.0.13 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- "use strict";var ne=Object.defineProperty;var Te=Object.getOwnPropertyDescriptor;var Ae=Object.getOwnPropertyNames;var Ie=Object.prototype.hasOwnProperty;var Oe=(e,r)=>{for(var a in r)ne(e,a,{get:r[a],enumerable:!0})},je=(e,r,a,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let f of Ae(r))!Ie.call(e,f)&&f!==a&&ne(e,f,{get:()=>r[f],enumerable:!(n=Te(r,f))||n.enumerable});return e};var Pe=e=>je(ne({},"__esModule",{value:!0}),e);var Ne={};Oe(Ne,{clsx:()=>Ue,default:()=>Fe,getCss:()=>Xe,setClsxRoot:()=>Ke});module.exports=Pe(Ne);var ue=e=>(e=e||new Map,{all:e,on(r,a){let n=e.get(r);n?n.push(a):e.set(r,[a])},off(r,a){let n=e.get(r);n&&(a?n.splice(n.indexOf(a)>>>0,1):e.set(r,[]))},emit(r,a){let n=e.get(r);n&&n.slice().forEach(m=>{m(a)});let f=e.get("*");f&&f.slice().forEach(m=>{m(r,a)})}});function De(e){return e>=97&&e<=122}function ge(e){if(!e||e.length<2)return null;let r=0,a=e.length,n="",f=e.lastIndexOf("@");if(f>0){let y=e.lastIndexOf("]");(y===-1||f>y)&&(n=e.substring(f+1),a=f)}let m="",A="",P=e.indexOf(":",r);if(P>0&&P<a){let y=e.substring(r,P);r=P+1,m=y}let I=r;for(;I<a;){let y=e.charCodeAt(I);if(y>=48&&y<=57)I++;else break}if(I>r&&(A=e.substring(r,I),r=I),r>=a)return null;if(e.charCodeAt(r)===38)return{mq:m,layer:A,prop:"&",val:e.substring(r+1,a),selector:n};if(e.charCodeAt(r)===91){let y=e.indexOf("]",r);if(y>r)return{mq:m,layer:A,prop:e.substring(r,y+1),val:"",selector:n}}let C=r;for(;C<a;){let y=e.charCodeAt(C);if(y===45||y===46){if(C+1<a){let j=e.charCodeAt(C+1);if(y===45&&j===45&&C>r||j>=48&&j<=57)break}C++;continue}if(!De(y))break;C++}if(C===r)return null;let h=e.substring(r,C),v=e.substring(C,a);return{mq:m,layer:A,prop:h,val:v,selector:n}}var me={a:"all",ac:"align-content",acc:"accent-color",ai:"align-items",ani:"animation",anic:"animation-composition",anide:"animation-delay",anidi:"animation-direction",anidu:"animation-duration",anifm:"animation-fill-mode",aniic:"animation-iteration-count",anin:"animation-name",anips:"animation-play-state",anitf:"animation-timing-function",ap:"appearance",ar:"aspect-ratio",as:"align-self",b:"bottom",bd:"border",bda:"border-radius",bdb:"border-bottom",bdbc:"border-bottom-color",bdblc:"border-block-color",bdble:"border-block-end",bdblec:"border-block-end-color",bdbles:"border-block-end-style",bdblew:"border-block-end-width",bdblk:"border-block",bdblr:"border-bottom-left-radius",bdbls:"border-block-start",bdblsc:"border-block-start-color",bdblss:"border-block-start-style",bdblst:"border-block-style",bdblsw:"border-block-start-width",bdblwi:"border-block-width",bdbr:"box-decoration-break",bdbrr:"border-bottom-right-radius",bdbst:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color",bdcl:"border-collapse",bdeer:"border-end-end-radius",bdesr:"border-end-start-radius",bdi:"border-inline",bdic:"border-inline-color",bdie:"border-inline-end",bdiec:"border-inline-end-color",bdies:"border-inline-end-style",bdiew:"border-inline-end-width",bdimg:"border-image",bdinw:"border-inline-width",bdio:"border-image-outset",bdir:"border-image-repeat",bdis:"border-image-slice",bdisc:"border-inline-start-color",bdisrc:"border-image-source",bdiss:"border-inline-start-style",bdista:"border-inline-start",bdistl:"border-inline-style",bdisw:"border-inline-start-width",bdiw:"border-image-width",bdl:"border-left",bdlc:"border-left-color",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right",bdra:"border-radius",bdrc:"border-right-color",bdrs:"border-right-style",bdrw:"border-right-width",bds:"border-style",bdser:"border-start-end-radius",bdsp:"border-spacing",bdssr:"border-start-start-radius",bdt:"border-top",bdtc:"border-top-color",bdtlr:"border-top-left-radius",bdtrr:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bg:"background",bga:"background-attachment",bgbm:"background-blend-mode",bgc:"background-color",bgcl:"background-clip",bgi:"background-image",bgo:"background-origin",bgp:"background-position",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat",bgs:"background-size",bkdf:"backdrop-filter",bkfv:"backface-visibility",blks:"block-size",brka:"break-after",brkb:"break-before",brki:"break-inside",bxsh:"box-shadow",bxshd:"box-shadow",bxsz:"box-sizing",c:"color",caps:"caption-side",cip:"color-interpolation",ciw:"contain-intrinsic-width",clpp:"clip-path",clr:"clear",cnt:"contain",cntibs:"contain-intrinsic-block-size",cntih:"contain-intrinsic-height",cntiis:"contain-intrinsic-inline-size",cntis:"contain-intrinsic-size",cntri:"counter-increment",cntrr:"counter-reset",cntrs:"counter-set",col:"columns",colc:"column-count",colf:"column-fill",colg:"column-gap",colr:"column-rule",colrc:"column-rule-color",colrs:"column-rule-style",colrw:"column-rule-width",cols:"column-span",colw:"column-width",cr:"cursor",crtc:"caret-color",csch:"color-scheme",ctr:"container",ctrn:"container-name",ctrt:"container-type",ctt:"content",d:"display",dir:"direction",empc:"empty-cells",fca:"forced-color-adjust",ff:"font-family",fl:"float",flt:"filter",fn:"font",fnf:"font-family",fnfs:"font-feature-settings",fnk:"font-kerning",fnlo:"font-language-override",fnos:"font-optical-sizing",fnp:"font-palette",fns:"font-size",fnsa:"font-size-adjust",fnsp:"font-synthesis-position",fnss:"font-synthesis-style",fnssc:"font-synthesis-small-caps",fnstr:"font-stretch",fnsty:"font-style",fnsw:"font-synthesis-weight",fnsyn:"font-synthesis",fnv:"font-variant",fnva:"font-variant-alternates",fnvc:"font-variant-caps",fnve:"font-variant-emoji",fnvea:"font-variant-east-asian",fnvl:"font-variant-ligatures",fnvn:"font-variant-numeric",fnvp:"font-variant-position",fnvs:"font-variation-settings",fnw:"font-weight",fw:"font-weight",fx:"flex",fxb:"flex-basis",fxd:"flex-direction",fxf:"flex-flow",fxg:"flex-grow",fxs:"flex-shrink",fxw:"flex-wrap",g:"grid",ga:"grid-area",gac:"grid-auto-columns",gaf:"grid-auto-flow",gap:"gap",gar:"grid-auto-rows",gc:"grid-column",gce:"grid-column-end",gcs:"grid-column-start",gr:"grid-row",gre:"grid-row-end",grs:"grid-row-start",gt:"grid-template",gta:"grid-template-areas",gtc:"grid-template-columns",gtr:"grid-template-rows",h:"height",hc:"hyphenate-character",hlc:"hyphenate-limit-chars",hp:"hanging-punctuation",hyp:"hyphens",i:"inset",ibe:"inset-block-end",iblk:"inset-block",ibsta:"inset-block-start",ii:"inset-inline",iie:"inset-inline-end",iis:"inset-inline-start",imgo:"image-orientation",imgr:"image-rendering",ins:"inline-size",is:"isolation",jc:"justify-content",ji:"justify-items",js:"justify-self",l:"left",lbrk:"line-break",lh:"line-height",lisp:"list-style-position",ls:"list-style",lsi:"list-style-image",lst:"list-style-type",lts:"letter-spacing",m:"margin",mb:"margin-bottom",mbd:"mix-blend-mode",mbe:"margin-block-end",mblk:"margin-block",mbs:"max-block-size",mbsta:"margin-block-start",mh:"max-height",mibs:"min-block-size",mie:"margin-inline-end",mih:"min-height",min:"margin-inline",mis:"max-inline-size",mista:"margin-inline-start",misz:"min-inline-size",miw:"min-width",ml:"margin-left",mr:"margin-right",msk:"mask",mskb:"mask-border",mskbm:"mask-border-mode",mskbo:"mask-border-outset",mskbr:"mask-border-repeat",mskbs:"mask-border-slice",mskbsrc:"mask-border-source",mskbw:"mask-border-width",mskc:"mask-clip",mskcp:"mask-composite",mski:"mask-image",mskm:"mask-mode",msko:"mask-origin",mskp:"mask-position",mskr:"mask-repeat",msks:"mask-size",mskt:"mask-type",mt:"margin-top",mtd:"math-depth",mts:"math-style",mw:"max-width",mxw:"max-width",of:"object-fit",ofa:"offset-anchor",ofd:"offset-distance",ofl:"overflow",ofla:"overflow-anchor",oflb:"overflow-block",oflcm:"overflow-clip-margin",ofli:"overflow-inline",oflw:"overflow-wrap",oflx:"overflow-x",ofly:"overflow-y",ofp:"offset-path",ofpo:"offset-position",ofr:"offset-rotate",ofs:"offset",olc:"outline-color",oli:"outline",olo:"outline-offset",ols:"outline-style",olw:"outline-width",op:"object-position",opc:"opacity",ord:"order",orp:"orphans",orsby:"overscroll-behavior-y",osrbb:"overscroll-behavior-block",osrbh:"overscroll-behavior",osrbi:"overscroll-behavior-inline",osrbx:"overscroll-behavior-x",p:"padding",pb:"padding-bottom",pbe:"padding-block-end",pblk:"padding-block",pbs:"padding-block-start",pe:"pointer-events",pg:"page",pgba:"page-break-after",pgbb:"page-break-before",pgbi:"page-break-inside",pi:"padding-inline",pie:"padding-inline-end",pis:"padding-inline-start",pl:"padding-left",plc:"place-content",pli:"place-items",pls:"place-self",pos:"position",pr:"padding-right",prca:"print-color-adjust",pso:"perspective-origin",psp:"perspective",pt:"padding-top",pto:"paint-order",qts:"quotes",r:"right",rbp:"ruby-position",rgap:"row-gap",rot:"rotate",rsz:"resize",s:"scale",sbc:"scrollbar-color",sbg:"scrollbar-gutter",sbw:"scrollbar-width",scrb:"scroll-behavior",scrm:"scroll-margin",scrmb:"scroll-margin-bottom",scrmbe:"scroll-margin-block-end",scrmblk:"scroll-margin-block",scrmbs:"scroll-margin-block-start",scrmi:"scroll-margin-inline",scrmie:"scroll-margin-inline-end",scrmis:"scroll-margin-inline-start",scrml:"scroll-margin-left",scrmr:"scroll-margin-right",scrmt:"scroll-margin-top",scrp:"scroll-padding",scrpb:"scroll-padding-bottom",scrpblk:"scroll-padding-block",scrpbs:"scroll-padding-block-start",scrpi:"scroll-padding-inline",scrpie:"scroll-padding-inline-end",scrpis:"scroll-padding-inline-start",scrpl:"scroll-padding-left",scrpr:"scroll-padding-right",scrpt:"scroll-padding-top",scrsa:"scroll-snap-align",scrss:"scroll-snap-stop",scrst:"scroll-snap-type",shit:"shape-image-threshold",shm:"shape-margin",sho:"shape-outside",srcpbe:"scroll-padding-block-end",t:"top",ta:"text-align",tal:"text-align-last",tbl:"table-layout",tbs:"tab-size",tcu:"text-combine-upright",td:"text-decoration",tdc:"text-decoration-color",tdl:"text-decoration-line",tds:"text-decoration-style",tdsi:"text-decoration-skip-ink",tdt:"text-decoration-thickness",tec:"text-emphasis-color",tep:"text-emphasis-position",teph:"text-emphasis",tes:"text-emphasis-style",ti:"text-indent",tj:"text-justify",toa:"touch-action",tol:"text-overflow",tor:"text-orientation",tra:"transform",trab:"transform-box",tran:"transition",tranb:"transition-behavior",trand:"transition-delay",trandur:"transition-duration",tranp:"transition-property",trantf:"transition-timing-function",trao:"transform-origin",tras:"transform-style",trd:"text-rendering",trl:"translate",tsh:"text-shadow",ttr:"text-transform",tuo:"text-underline-offset",tup:"text-underline-position",tw:"text-wrap",unib:"unicode-bidi",us:"user-select",v:"visibility",va:"vertical-align",w:"width",wc:"will-change",wd:"widows",wlc:"-webkit-line-clamp",wrb:"word-break",wrs:"word-spacing",wrtm:"writing-mode",ws:"white-space",wsc:"white-space-collapse",wtfc:"-webkit-text-fill-color",wts:"-webkit-text-stroke",wtsc:"-webkit-text-stroke-color",wtsw:"-webkit-text-stroke-width",z:"z-index",zo:"zoom"},he={in:"inherit",ini:"initial",un:"unset",rv:"revert",n:"none",a:"auto",t:"top",b:"bottom",l:"left",r:"right",c:"center",m:"middle",j:"justify",s:"start",e:"end",tr:"transparent",cc:"currentColor",minc:"min-content",maxc:"max-content",fitc:"fit-content",sol:"solid",das:"dashed",dot:"dotted",dub:"double",vis:"visible",h:"hidden",col:"collapse"},O={ac:{s:"start",e:"end",fs:"flex-start",fe:"flex-end",n:"normal",b:"baseline",fb:"first baseline",lb:"last baseline",sp:"space-between",sa:"space-around",se:"space-evenly",st:"stretch",sc:"safe center",uc:"unsafe center"},acc:{u:"unset"},ai:{n:"normal",c:"center",s:"start",e:"end",fs:"flex-start",fe:"flex-end",ss:"self-start",se:"self-end",b:"baseline",fb:"first baseline",lb:"last baseline",sc:"safe center",uc:"unsafe center"},anic:{r:"replace",a:"add",ac:"accumulate",ra:"replace, add",aac:"add, accumulate",raac:"replace, add, accumulate"},anidi:{r:"reverse",a:"alternate",ar:"alternate-reverse",nr:"normal, reverse",arn:"alternate, reverse, normal"},anifm:{f:"forwards",b:"backwards",nb:"none, backwards",fbn:"both, forwards, none"},anin:{s:"slide"},anips:{p:"paused",r:"running"},anitf:{ei:"ease-in",eo:"ease-out",eio:"ease-in-out",l:"linear",ss:"step-start",se:"step-end"},ap:{mb:"menulist-button",tf:"textfield",b:"button",c:"checkbox"},ar:{s:"1 / 1",v:"16 / 9"},as:{n:"normal",c:"center",s:"start",e:"end",ss:"self-start",se:"self-end",fs:"flex-start",fe:"flex-end",b:"baseline",fb:"first baseline",lb:"last baseline",st:"stretch",sc:"safe center",uc:"unsafe center"},bd:{d:"dotted",ds:"dashed",db:"double",g:"groove",r:"ridge",i:"inset",o:"outset"},bdbles:{d:"dotted",ds:"dashed",db:"double",g:"groove",r:"ridge",i:"inset",o:"outset"},bdblss:{d:"dotted",ds:"dashed",db:"double",g:"groove",r:"ridge",i:"inset",o:"outset"},bdblst:{d:"dotted",ds:"dashed",db:"double",g:"groove",r:"ridge",i:"inset",o:"outset"},bdbr:{c:"clone",s:"slice"},bdbst:{d:"dotted",ds:"dashed",db:"double",g:"groove",r:"ridge",i:"inset",o:"outset"},bdbw:{t:"thin",m:"medium",th:"thick"},bdcl:{s:"separate",c:"collapse"},bdir:{st:"stretch",r:"repeat",rn:"round",s:"space"},bdlw:{t:"thin",m:"medium",th:"thick"},bdrs:{dt:"dotted",ds:"dashed",s:"solid",db:"double",g:"groove",r:"ridge",in:"inset",out:"outset"},bdrw:{t:"thin",m:"medium",th:"thick"},bds:{dt:"dotted",ds:"dashed",s:"solid",db:"double",g:"groove",r:"ridge",in:"inset",out:"outset"},bdts:{dt:"dotted",ds:"dashed",s:"solid",db:"double",g:"groove",r:"ridge",in:"inset",out:"outset"},bdtw:{t:"thin",m:"medium",th:"thick"},bdw:{t:"thin",m:"medium",th:"thick"},bga:{s:"scroll",f:"fixed",l:"local"},bgbm:{n:"normal",m:"multiply",s:"screen",o:"overlay",d:"darken",l:"lighten",cd:"color-dodge",i:"color-burn",hl:"hard-light",sl:"soft-light",di:"difference",e:"exclusion",h:"hue",sa:"saturation",c:"color",lu:"luminosity"},bgc:{t:"transparent",c:"currentcolor"},bgcl:{bb:"border-box",pb:"padding-box",cb:"content-box",t:"text"},bgo:{bb:"border-box",pb:"padding-box",cb:"content-box"},bgp:{t:"top",b:"bottom",l:"left",r:"right",c:"center",lt:"left top",ct:"center top",rt:"right top",lc:"left center",cc:"center center",rc:"right center",lb:"left bottom",cb:"center bottom",rb:"right bottom"},bgpx:{l:"left",r:"right",c:"center"},bgpy:{t:"top",b:"bottom",c:"center"},bgr:{r:"repeat",x:"repeat-x",y:"repeat-y",s:"space",rn:"round",n:"no-repeat",rs:"repeat space",rr:"repeat repeat",nr:"no-repeat round"},bgs:{c:"contain"},c:{i:"inherit",t:"transparent"},cr:{p:"pointer",d:"default",cm:"context-menu",h:"help",pg:"progress",w:"wait",c:"cell",t:"text",vt:"vertical-text",al:"alias",cp:"copy",mo:"move",nd:"no-drop",na:"not-allowed",gr:"grab",gb:"grabbing",as:"all-scroll",colr:"col-resize",rr:"row-resize",nr:"n-resize",er:"e-resize",sr:"s-resize",wr:"w-resize",ner:"ne-resize",ser:"se-resize",swr:"sw-resize",ewr:"ew-resize",nsr:"ns-resize",nesw:"nesw-resize",nwse:"nwse-resize",zi:"zoom-in",zo:"zoom-out"},d:{b:"block",ib:"inline-block",i:"inline",f:"flex",if:"inline-flex",t:"table",it:"inline-table",tcp:"table-caption",tcell:"table-cell",tcol:"table-column",tcolg:"table-column-group",tfg:"table-footer-group",thg:"table-header-group",trg:"table-row-group",tr:"table-row",fr:"flow-root",g:"grid",ig:"inline-grid",c:"contents",li:"list-item"},ff:{a:"ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",s:"ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif",m:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace"},fl:{is:"inline-start",ie:"inline-end",r:"right",l:"left"},fx:{i:"0 1 auto",a:"1 1 auto"},fxd:{r:"row",rr:"row-reverse",c:"column",cr:"column-reverse"},fxw:{w:"wrap",wr:"wrap-reverse",n:"nowrap"},gac:{mic:"min-content",mac:"max-content",mm:"minmax(0, 1fr)"},gaf:{r:"row",c:"column",d:"dense",rd:"row dense",cd:"column dense"},gar:{mic:"min-content",mac:"max-content",mm:"minmax(0, 1fr)"},gc:{f:"1 / -1"},gr:{f:"1 / -1"},gtc:{s:"subgrid"},gtr:{s:"subgrid"},h:{mic:"min-content",mac:"max-content",fc:"fit-content"},hyp:{m:"manual"},is:{i:"isolate"},jc:{c:"center",s:"start",e:"end",fs:"flex-start",fe:"flex-end",l:"left",r:"right",n:"normal",sp:"space-between",sa:"space-around",se:"space-evenly",st:"stretch",sc:"safe center",uc:"unsafe center"},ji:{n:"normal",st:"stretch",c:"center",s:"start",e:"end",fs:"flex-start",fe:"flex-end",ss:"self-start",se:"self-end",l:"left",r:"right",b:"baseline",fb:"first baseline",lb:"last baseline",lr:"legacy right",ll:"legacy left",lc:"legacy center",sc:"safe center",uc:"unsafe center"},js:{n:"normal",st:"stretch",c:"center",s:"start",e:"end",fs:"flex-start",fe:"flex-end",ss:"self-start",se:"self-end",l:"left",r:"right",b:"baseline",sc:"safe center",uc:"unsafe center"},lisp:{i:"inside",o:"outside"},ls:{i:"inside",di:"disc",c:"circle",s:"square",de:"decimal",g:"georgian",tci:"trad-chinese-informal",k:"kannada"},lst:{di:"disc",c:"circle",s:"square",de:"decimal",g:"georgian",tci:"trad-chinese-informal",k:"kannada"},lts:{n:"normal"},mbd:{n:"normal",m:"multiply",s:"screen",o:"overlay",d:"darken",l:"lighten",cd:"color-dodge",i:"color-burn",hl:"hard-light",sl:"soft-light",di:"difference",e:"exclusion",h:"hue",sa:"saturation",c:"color",lu:"luminosity"},mih:{f:"100%",mic:"min-content",mac:"max-content",fc:"fit-content"},miw:{f:"100%",mic:"min-content",mac:"max-content",fc:"fit-content"},of:{c:"contain",cv:"cover",f:"fill",sd:"scale-down"},oflw:{c:"clip",s:"scroll"},oflx:{c:"clip",s:"scroll"},ofly:{c:"clip",s:"scroll"},olc:{i:"inherit",c:"currentColor",t:"transparent"},ols:{dt:"dotted",ds:"dashed",s:"solid",db:"double",g:"groove",r:"ridge",in:"inset",out:"outset"},olw:{t:"thin",m:"medium",th:"thick"},op:{b:"bottom",c:"center",l:"left",r:"right",t:"top",lb:"left bottom",lt:"left top",rb:"right bottom",rt:"right top"},orsby:{c:"contain"},osrbb:{c:"contain"},osrbh:{c:"contain"},osrbi:{c:"contain"},osrbx:{c:"contain"},pi:{s:"start",c:"center",e:"end",b:"baseline",st:"stretch"},pos:{s:"static",f:"fixed",a:"absolute",r:"relative",st:"sticky"},rsz:{b:"both",h:"horizontal",v:"vertical"},ta:{s:"start",e:"end",l:"left",r:"right",c:"center",j:"justify",mp:"match-parent",mc:"-moz-center",wc:"-webkit-center"},tal:{s:"start",e:"end",l:"left",r:"right",c:"center",j:"justify"},td:{u:"underline"},tdl:{u:"underline",o:"overline",lt:"line-through",b:"blink"},tds:{db:"double",dt:"dotted",ds:"dashed",w:"wavy"},tdt:{ff:"from-font"},tep:{or:"over right",ol:"over left",ur:"under right",ul:"under left",lo:"left over",ru:"right under",lu:"left under"},tj:{iw:"inter-word",ic:"inter-character",d:"distribute"},toa:{p:"pan-x",py:"pan-y",pm:"pan-x pan-y",pi:"pinch-zoom"},tol:{c:"clip",e:"ellipsis"},tor:{m:"mixed",u:"upright",sr:"sideways-right",sl:"sideways-left",s:"sideways",ugo:"use-glyph-orientation"},trd:{op:"optimizeSpeed",ol:"optimizeLegibility",g:"geometricPrecision"},ttr:{c:"capitalize",u:"uppercase",l:"lowercase",fw:"full-width",fsk:"full-size-kana"},tup:{u:"under",l:"left",r:"right",ul:"under left",ru:"right under"},tw:{w:"wrap",n:"nowrap",b:"balance",p:"pretty"},us:{t:"text",all:"all",c:"contain"},v:{c:"collapse"},va:{bl:"baseline",t:"top",m:"middle",b:"bottom",tt:"text-top",tb:"text-bottom",sb:"sub",sp:"super"},w:{mic:"min-content",mac:"max-content",fc:"fit-content",f:"100%"},wc:{sp:"scroll-position",c:"contents",t:"transform"},wtsw:{m:"medium",t:"thick"}};O.ji=O.jc;O.js=O.jc;O.pc=O.jc;O.pi=O.jc;O.ps=O.jc;var ze=e=>{if(!e||typeof e!="object")return null;let r=e,a=r.default&&typeof r.default=="object"?r.default:r,n=a.SHORT_PROPERTIES,f=a.COMMON_VALUES,m=a.SPECIFIC_VALUES;return!n||!f||!m||typeof n!="object"||typeof f!="object"||typeof m!="object"?null:{SHORT_PROPERTIES:n,COMMON_VALUES:f,SPECIFIC_VALUES:m}},Me=async e=>{let r=await import(e),a=ze(r);if(!a)throw new Error("XCSS: dictionary module must export SHORT_PROPERTIES, COMMON_VALUES and SPECIFIC_VALUES");return a},Le=(e,r)=>{if(!e||typeof document>"u")return;r=r||"fwkui";let a=Array.from({length:24},(n,f)=>"l"+f);if(!e.querySelector('style[id="'+r+'"]')){let n=document.createElement("style");if(n.id=r,!(e instanceof ShadowRoot))document.head.append(n);else try{e.prepend(n)}catch{e.appendChild(n)}let f=`@layer ${a.join(", ")};`,m=setInterval(()=>{if(n.sheet){clearInterval(m);try{n.sheet.insertRule(f,n.sheet.cssRules.length)}catch{}}},10)}},_e=e=>{let r=Array.isArray(e.excludes)?e.excludes:Array.isArray(e.exclude)?e.exclude:[],a=JSON.stringify({base:e.base||"",aliases:e.aliases||{},breakpoints:e.breakpoints||[],theme:e.theme||{},prefix:e.prefix||"",excludes:r,excludePrefixes:e.excludePrefixes||[],dictionaryImport:e.dictionaryImport??!0}),n=0;if(a.length===0)return n.toString();for(let f=0;f<a.length;f++){let m=a.charCodeAt(f);n=(n<<5)-n+m,n|=0}return n.toString()},K="xcss_cache_v1",se=(e={base:"",aliases:{},excludes:[],excludePrefixes:[],breakpoints:[],theme:{},prefix:"",dictionaryImport:!0})=>{let{base:r=null,breakpoints:a=[],aliases:n={},theme:f={},excludes:m=[],exclude:A=[],excludePrefixes:P=[],prefix:I="",dictionaryImport:C=!0}=e||{};Array.isArray(a)||(a=[]),Array.isArray(m)||(m=[]),Array.isArray(A)||(A=[]),Array.isArray(P)||(P=[]),(!n||typeof n!="object")&&(n={}),(!f||typeof f!="object")&&(f={});let h=[...m,...A],v=P.filter(t=>typeof t=="string").map(t=>t.trim()).filter(t=>t.length>0),y=t=>{let l=t.replace(/[.+?^${}()|[\]\\]/g,"\\$&");return new RegExp("^"+l.replace(/\*/g,".*")+"$")},j=h.filter(t=>typeof t=="string").map(t=>t.trim()).filter(t=>t.length>0).map(t=>{if(t.includes("*")){let l=y(t);return d=>l.test(d)}return l=>l===t}),L=t=>v.some(l=>t.startsWith(l))?!0:j.some(l=>l(t)),q=t=>!(I&&!t.startsWith(I)||L(t)),E={},z={},B={},J={},le=()=>{J={...B,...f}},X=t=>{if(!t){E={},z={},B={},le();return}E=t.SHORT_PROPERTIES,z=t.SPECIFIC_VALUES,B=t.COMMON_VALUES,le()},G=!0,Y=Promise.resolve();C===!1?X(null):typeof C=="string"?(G=!1,X(null),Y=Me(C).then(t=>{X(t)}).catch(t=>{console.warn("XCSS: Failed to import dictionary from URL",t)}).finally(()=>{G=!0})):X({SHORT_PROPERTIES:me,COMMON_VALUES:he,SPECIFIC_VALUES:O});let ye=(t=typeof document<"u"?document:void 0)=>{let l=typeof window<"u"&&typeof document<"u",d=null;t&&(d="getRootNode"in t?t.getRootNode():t);let x=new Map;l&&d&&Le(d);let g=ue(),k=[{default:""},{xs:"screen and (max-width: 575px)"},{sm:"screen and (min-width: 576px)"},{md:"screen and (min-width: 768px)"},{lg:"screen and (min-width: 992px)"},{xl:"screen and (min-width: 1200px)"},{"2xl":"screen and (min-width: 1400px)"},{sma:"screen and (max-width: 768px)"},{mda:"screen and (max-width: 992px)"},{lga:"screen and (max-width: 1200px)"},{xla:"screen and (max-width: 1400px)"},...a],S=k.filter((i,s)=>k.findLastIndex(o=>Object.keys(o)[0]==Object.keys(i)[0])==s),b=S.map(i=>Object.keys(i)[0]),u={},p={},w={root:""},R={root:[]},D={root:!1},_=_e(e),$=null,ee=!1,Ce=i=>{if(!(!l||!window.localStorage))try{localStorage.setItem(K,JSON.stringify(i))}catch(s){console.warn("XCSS: Failed to save cache",s)}},ce=()=>{l&&($&&clearTimeout($),$=setTimeout(()=>{let i={};for(let c in u)i[c]=Array.from(u[c]);let s={};Object.keys(w).forEach(c=>{if(c==="root")s[c]=w[c];else{let T=k.find(H=>Object.keys(H)[0]===c)?.[c];T&&w[c]?s[c]=`@media ${T} {
2
- ${w[c]}
3
- }`:s[c]=w[c]||""}});let o={configHash:_,cssText:s,rulesSet:i,keys:Array.from(x.entries())};Ce(o)},1e3))};if(l&&window.localStorage)try{let i=localStorage.getItem(K);if(i){let s=JSON.parse(i);if(s&&s.configHash===_){if(s.keys&&s.keys.forEach(([o,c])=>x.set(o,c)),s.cssText)for(let o in s.cssText){let c=s.cssText[o];if(o!=="root"){let T=/@media[^{]+\{\n?([\s\S]+)\n?\}/.exec(c);T&&T[1]?w[o]=T[1].trim():w[o]=c}else w[o]=c}ee=!0}else localStorage.removeItem(K)}}catch(i){console.error(i)}if(l&&(p.root=new CSSStyleSheet),b.forEach(i=>{if(u[i]=new Set,l){let s=S.find(o=>Object.keys(o)[0]==i)?.[i]||"";p[i]=new CSSStyleSheet({media:s})}ee||(w[i]=""),R[i]=[],D[i]=!1}),ee&&l&&window.localStorage){let i=localStorage.getItem(K);if(i){let s=JSON.parse(i);if(s.rulesSet)for(let o in s.rulesSet)u[o]&&s.rulesSet[o].forEach(c=>u[o].add(c))}if(d){let s=d.querySelector('style[id="fwkui"]');s&&s.remove()}}r&&Array.isArray(r)?(w.root=r.join(`
4
- `),l&&p.root&&p.root.replaceSync(w.root)):(w.root=r||"",l&&p.root&&p.root.replaceSync(w.root)),l&&d&&["root",...b].forEach(i=>{p[i]&&d?.adoptedStyleSheets&&(d.adoptedStyleSheets.includes(p[i])||(d.adoptedStyleSheets=[...d.adoptedStyleSheets,p[i]]))});let ve=(i,s)=>{let{media:o,property:c,selector:T,layer:H,className:F}=s,V=w,M=R,te=D;H=Number(H)||0;let fe=x.get(i),Re=fe?`.${fe}${T}`:`.${F}${T}`;var re=`@layer l${H}{${Re}{${c}}}`;u[o]||(u[o]=new Set);let be=u[o];if(!be.has(re))if(be.add(re),M[o]||(M[o]=[]),M[o].push(re),l)te[o]||(te[o]=!0,queueMicrotask(()=>{let U=M[o],pe=p[o];U.length>0&&(V[o]+=(V[o]?`
1
+ "use strict";var ne=Object.defineProperty;var De=Object.getOwnPropertyDescriptor;var Ae=Object.getOwnPropertyNames;var Ie=Object.prototype.hasOwnProperty;var Oe=(e,n)=>{for(var s in n)ne(e,s,{get:n[s],enumerable:!0})},Pe=(e,n,s,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let d of Ae(n))!Ie.call(e,d)&&d!==s&&ne(e,d,{get:()=>n[d],enumerable:!(r=De(n,d))||r.enumerable});return e};var ke=e=>Pe(ne({},"__esModule",{value:!0}),e);var Fe={};Oe(Fe,{clsx:()=>Ke,default:()=>qe,getCss:()=>Ue,setClsxRoot:()=>We});module.exports=ke(Fe);var ge=e=>(e=e||new Map,{all:e,on(n,s){let r=e.get(n);r?r.push(s):e.set(n,[s])},off(n,s){let r=e.get(n);r&&(s?r.splice(r.indexOf(s)>>>0,1):e.set(n,[]))},emit(n,s){let r=e.get(n);r&&r.slice().forEach(S=>{S(s)});let d=e.get("*");d&&d.slice().forEach(S=>{S(n,s)})}});function $e(e){return e>=97&&e<=122}function re(e){if(!e||e.length<2)return null;let n=0,s=e.length,r="",d=e.lastIndexOf("@");if(d>0){let C=e.lastIndexOf("]");(C===-1||d>C)&&(r=e.substring(d+1),s=d)}let S="",I="",$=e.indexOf(":",n);if($>0&&$<s){let C=e.substring(n,$);n=$+1,S=C}let T=n;for(;T<s;){let C=e.charCodeAt(T);if(C>=48&&C<=57)T++;else break}if(T>n&&(I=e.substring(n,T),n=T),n>=s)return null;if(e.charCodeAt(n)===38)return{mq:S,layer:I,prop:"&",val:e.substring(n+1,s),selector:r};if(e.charCodeAt(n)===91){let C=e.indexOf("]",n);if(C>n)return{mq:S,layer:I,prop:e.substring(n,C+1),val:"",selector:r}}let R=n;for(;R<s;){let C=e.charCodeAt(R);if(C===45||C===46){if(R+1<s){let O=e.charCodeAt(R+1);if(C===45&&O===45&&R>n||O>=48&&O<=57)break}R++;continue}if(!$e(C))break;R++}if(R===n)return null;let m=e.substring(n,R),v=e.substring(R,s);return{mq:S,layer:I,prop:m,val:v,selector:r}}var se=e=>{if(!e||typeof e!="object")return null;let n=e,s=n.default&&typeof n.default=="object"?n.default:n,r=s.SHORT_PROPERTIES,d=s.COMMON_VALUES,S=s.SPECIFIC_VALUES;return!r||!d||!S||typeof r!="object"||typeof d!="object"||typeof S!="object"?null:{SHORT_PROPERTIES:r,COMMON_VALUES:d,SPECIFIC_VALUES:S}},je=async e=>{let n=await import(e),s=se(n);if(!s)throw new Error(Se);return s},Se="XCSS: dictionary module must export SHORT_PROPERTIES, COMMON_VALUES and SPECIFIC_VALUES",he=()=>{let e=typeof require=="function"?require:null;if(!e)return null;for(let n of["./dictionary.js","./dictionary"])try{let s=e(n),r=se(s);if(r)return r}catch{}return null},He=async()=>{let e=he();if(e)return e;let n=["./dictionary.mjs","./dictionary.js","./dictionary"],s=null;for(let r of n)try{let d=await import(r),S=se(d);if(S)return S}catch(d){s=d}throw s||new Error(Se)},Me=(e,n)=>{if(!e||typeof document>"u")return;n=n||"fwkui";let s=Array.from({length:24},(r,d)=>"l"+d);if(!e.querySelector('style[id="'+n+'"]')){let r=document.createElement("style");if(r.id=n,!(e instanceof ShadowRoot))document.head.append(r);else try{e.prepend(r)}catch{e.appendChild(r)}let d=`@layer ${s.join(", ")};`,S=setInterval(()=>{if(r.sheet){clearInterval(S);try{r.sheet.insertRule(d,r.sheet.cssRules.length)}catch{}}},10)}},Le=e=>{let n=Array.isArray(e.excludes)?e.excludes:Array.isArray(e.exclude)?e.exclude:[],s=JSON.stringify({base:e.base||"",aliases:e.aliases||{},breakpoints:e.breakpoints||[],theme:e.theme||{},prefix:e.prefix||"",excludes:n,excludePrefixes:e.excludePrefixes||[],dictionaryImport:e.dictionaryImport??!0}),r=0;if(s.length===0)return r.toString();for(let d=0;d<s.length;d++){let S=s.charCodeAt(d);r=(r<<5)-r+S,r|=0}return r.toString()},q="xcss_cache_v1",oe=(e={base:"",aliases:{},excludes:[],excludePrefixes:[],breakpoints:[],theme:{},prefix:"",dictionaryImport:!0})=>{let{base:n=null,breakpoints:s=[],aliases:r={},theme:d={},excludes:S=[],exclude:I=[],excludePrefixes:$=[],prefix:T="",dictionaryImport:R=!0}=e||{};Array.isArray(s)||(s=[]),Array.isArray(S)||(S=[]),Array.isArray(I)||(I=[]),Array.isArray($)||($=[]),(!r||typeof r!="object")&&(r={}),(!d||typeof d!="object")&&(d={});let m=[...S,...I],v=$.filter(t=>typeof t=="string").map(t=>t.trim()).filter(t=>t.length>0),C=t=>{let o=t.replace(/[.+?^${}()|[\]\\]/g,"\\$&");return new RegExp("^"+o.replace(/\*/g,".*")+"$")},O=m.filter(t=>typeof t=="string").map(t=>t.trim()).filter(t=>t.length>0).map(t=>{if(t.includes("*")){let o=C(t);return c=>o.test(c)}return o=>o===t}),L=t=>v.some(o=>t.startsWith(o))?!0:O.some(o=>o(t)),J=t=>!(T&&!t.startsWith(T)||L(t)),D={},H={},z={},Y={},ce=()=>{Y={...z,...d}},_=t=>{if(!t){D={},H={},z={},ce();return}D=t.SHORT_PROPERTIES,H=t.SPECIFIC_VALUES,z=t.COMMON_VALUES,ce()},X=!0,F=Promise.resolve();if(R===!1)_(null);else if(typeof R=="string")X=!1,_(null),F=je(R).then(t=>{_(t)}).catch(t=>{console.warn("XCSS: Failed to import dictionary from URL",t)}).finally(()=>{X=!0});else{let t=he();t?_(t):(X=!1,_(null),F=He().then(o=>{_(o)}).catch(o=>{console.warn("XCSS: Failed to load built-in dictionary module",o)}).finally(()=>{X=!0}))}let me=(t=typeof document<"u"?document:void 0)=>{let o=typeof window<"u"&&typeof document<"u",c=null;t&&(c="getRootNode"in t?t.getRootNode():t);let x=new Map;o&&c&&Me(c);let h=ge(),w=[{default:""},{xs:"screen and (max-width: 575px)"},{sm:"screen and (min-width: 576px)"},{md:"screen and (min-width: 768px)"},{lg:"screen and (min-width: 992px)"},{xl:"screen and (min-width: 1200px)"},{"2xl":"screen and (min-width: 1400px)"},{sma:"screen and (max-width: 768px)"},{mda:"screen and (max-width: 992px)"},{lga:"screen and (max-width: 1200px)"},{xla:"screen and (max-width: 1400px)"},...s],E=w.filter((l,i)=>w.findLastIndex(a=>Object.keys(a)[0]==Object.keys(l)[0])==i),f=E.map(l=>Object.keys(l)[0]),y={},u={},b={root:""},A={root:[]},j={root:!1},V=Le(e),K=null,Z=!1,we=l=>{if(!(!o||!window.localStorage))try{localStorage.setItem(q,JSON.stringify(l))}catch(i){console.warn("XCSS: Failed to save cache",i)}},de=()=>{o&&(K&&clearTimeout(K),K=setTimeout(()=>{let l={};for(let g in y)l[g]=Array.from(y[g]);let i={};Object.keys(b).forEach(g=>{if(g==="root")i[g]=b[g];else{let p=w.find(P=>Object.keys(P)[0]===g)?.[g];p&&b[g]?i[g]=`@media ${p} {
2
+ ${b[g]}
3
+ }`:i[g]=b[g]||""}});let a={configHash:V,cssText:i,rulesSet:l,keys:Array.from(x.entries())};we(a)},1e3))};if(o&&window.localStorage)try{let l=localStorage.getItem(q);if(l){let i=JSON.parse(l);if(i&&i.configHash===V){if(i.keys&&i.keys.forEach(([a,g])=>x.set(a,g)),i.cssText)for(let a in i.cssText){let g=i.cssText[a];if(a!=="root"){let p=/@media[^{]+\{\n?([\s\S]+)\n?\}/.exec(g);p&&p[1]?b[a]=p[1].trim():b[a]=g}else b[a]=g}Z=!0}else localStorage.removeItem(q)}}catch(l){console.error(l)}if(o&&(u.root=new CSSStyleSheet),f.forEach(l=>{if(y[l]=new Set,o){let i=E.find(a=>Object.keys(a)[0]==l)?.[l]||"";u[l]=new CSSStyleSheet({media:i})}Z||(b[l]=""),A[l]=[],j[l]=!1}),Z&&o&&window.localStorage){let l=localStorage.getItem(q);if(l){let i=JSON.parse(l);if(i.rulesSet)for(let a in i.rulesSet)y[a]&&i.rulesSet[a].forEach(g=>y[a].add(g))}if(c){let i=c.querySelector('style[id="fwkui"]');i&&i.remove()}}n&&Array.isArray(n)?(b.root=n.join(`
4
+ `),o&&u.root&&u.root.replaceSync(b.root)):(b.root=n||"",o&&u.root&&u.root.replaceSync(b.root)),o&&c&&["root",...f].forEach(l=>{u[l]&&c?.adoptedStyleSheets&&(c.adoptedStyleSheets.includes(u[l])||(c.adoptedStyleSheets=[...c.adoptedStyleSheets,u[l]]))});let Re=(l,i)=>{let{media:a,property:g,selector:p,layer:P,className:k}=i,W=b,M=A,ee=j;P=Number(P)||0;let ue=x.get(l),ve=ue?`.${ue}${p}`:`.${k}${p}`;var te=`@layer l${P}{${ve}{${g}}}`;y[a]||(y[a]=new Set);let pe=y[a];if(!pe.has(te))if(pe.add(te),M[a]||(M[a]=[]),M[a].push(te),o)ee[a]||(ee[a]=!0,queueMicrotask(()=>{let U=M[a],ye=u[a];U.length>0&&(W[a]+=(W[a]?`
5
5
  `:"")+U.join(`
6
- `),pe&&pe.replaceSync(V[o]),M[o]=[],ce()),te[o]=!1}));else{let U=M[o];U.length>0&&(V[o]+=(V[o]?`
6
+ `),ye&&ye.replaceSync(W[a]),M[a]=[],de()),ee[a]=!1}));else{let U=M[a];U.length>0&&(W[a]+=(W[a]?`
7
7
  `:"")+U.join(`
8
- `),M[o]=[])}},Ee=i=>{i.forEach(s=>{let o=Q(s);o&&ve(s,o)})},de=i=>{if(i.length===0)return;let s=()=>Ee(i);G?s():Y.then(s)};return g.on("observeDom",de),{clsx:(...i)=>{let s=i.map(c=>Array.isArray(c)?c:[c]).flat(1/0).map(c=>typeof c=="string"?c.split(/(\s|\t)+/g):[]).flat(1/0);s=s.filter(c=>typeof c=="string"&&c.trim()),s=[...new Set(s)];let o=s.map(c=>{let T=c;if(x.has(c))T=x.get(c);else if(q(c)&&Q(c)){let F="D"+x.size.toString(32).toUpperCase();x.set(c,F),T=F,ce()}return T});return l?queueMicrotask(()=>g.emit("observeDom",s)):g.emit("observeDom",s),o.join(" ")},observe:()=>{!l||!d||ke(d,i=>{de(i)})},getCssString:()=>Object.entries(w).map(([i,s])=>{if(!s)return"";if(i==="root"||i==="default")return s;let o=k.find(c=>Object.keys(c)[0]===i)?.[i];return o?`@media ${o} {
9
- ${s}
10
- }`:s}).join(`
11
- `)}};function xe(t){let l=new RegExp("^(\\[(?<p>[a-zA-Z]+)\\])$"),{p:d=""}=l.exec(t)?.groups??{};if(d&&n[d]&&Array.isArray(n[d])){let x=n[d],g=[],k=!0;for(let S of x){let b=Q(S);b&&b.property?g.push(b.property):typeof CSS<"u"&&CSS.supports(S)||typeof CSS>"u"?g.push(S):k=!1}if(g.length>0&&(typeof CSS>"u"||k))return g.join(";")}return null}function we(t,l){let d=xe(t+l);if(d)return d;if(!t||l===void 0)return null;let x=E[t],g=x||t,k=l[0],S=!1,b=l;if(k==="!"&&(S=!0,b=b.substring(1),k=b[0]),b.startsWith("--"))b="var("+b+")";else if(k==="["&&b.endsWith("]"))b=b.substring(1,b.length-1);else if(b.length>0){let R=b[0].toLowerCase()+b.substring(1),D=z[t]?.[R]||J[R];if(!D){let _=b.toLowerCase();D=z[t]?.[_]||J[_]}b=D||b}if(b=b.replace(/(';|;)/g,R=>R=="';"?";":" "),!b)return null;let u=b+(S?" !important":""),p=[g+":"+u];switch(g){case"mx":p=[`margin-left:${u}`,`margin-right:${u}`];break;case"my":p=[`margin-top:${u}`,`margin-bottom:${u}`];break;case"px":p=[`padding-left:${u}`,`padding-right:${u}`];break;case"py":p=[`padding-top:${u}`,`padding-bottom:${u}`];break;case"bdx":p=[`border-left:${u}`,`border-right:${u}`];break;case"bdy":p=[`border-top:${u}`,`border-bottom:${u}`];break}return!(typeof CSS<"u")||p.every(R=>CSS.supports(R))?p.join(";"):null}function Q(t){if(!q(t))return null;let l=I?t.slice(I.length):t,d=ge(l);if(!d)return null;let{mq:x="default",layer:g="0",prop:k,val:S,selector:b=""}=d,u=[],p=we(k,S);if(p&&u.push(p),u.length==0)return null;let w=b.replace(/(';|;)/g,$=>$=="';"?";":" "),R=typeof CSS<"u"?CSS.escape(t):Se(t),D=`selector(${R}${w})`;return typeof CSS<"u"&&w&&!CSS.supports(D)?null:{media:x||"default",layer:g||"0",className:R,property:u.join(";"),selector:w,cssRules:`.${R}${w}{${u.join(";")}}`}}let Se=t=>t.replace(/([^\w-])/g,"\\$1"),Z=t=>{var l=[...t?.classList||[]].filter(d=>{if(d){let x=d.charCodeAt(0)==45?d.charCodeAt(1):d.charCodeAt(0);return x>=97&&x<=122||x>=48&&x<=57}return!1});return t?.children?.length>0&&Array.from(t?.children).forEach(d=>{l.push(...Z(d))}),l.flat(1/0)},ke=(t,l)=>{if(typeof l!="function")throw new Error("Callback is not a function");if(!t)return;let d;"documentElement"in t?d=t.documentElement:(t instanceof Element||"tagName"in t||"host"in t)&&(d=t),d&&(d instanceof Element&&l(Z(d)),typeof MutationObserver<"u"&&new MutationObserver(x=>{for(let g of x)if(g.type=="attributes"&&g.attributeName=="class"){if(g.target.nodeType==1){let k=String(g.target?.className??""),S=String(g?.oldValue??"");if(k||S){let b=k.split(" ").map(p=>p.trim()).filter(p=>p),u=S.split(" ").map(p=>p.trim()).filter(p=>p);b=b.filter(p=>!u.includes(p)),typeof l=="function"&&l([...new Set(b)])}}}else if(g.type=="childList"&&g.addedNodes.length>0){let k=[...g.addedNodes].filter(S=>S.nodeType==1).map(S=>Z(S)).flat(1/0);typeof l=="function"&&l([...new Set(k)])}}).observe(d,{attributes:!0,attributeOldValue:!0,attributeFilter:["class"],childList:!0,subtree:!0}))};return{buildCss:ye,exportCache:()=>typeof localStorage>"u"?null:JSON.parse(localStorage.getItem(K)||"null"),ready:Y}},He=(e,r)=>{se(r).buildCss(e).observe()},$e=(e,r)=>se(r).buildCss(e).clsx,N={css:se,cssObserve:He,clsx:$e};var oe="__FWXCSS_SHARED__",Ve=()=>{let e=new WeakMap,r=null,a=typeof document<"u"?document:null,n=h=>{if(!h)return!1;let v=typeof Document<"u",y=typeof ShadowRoot<"u",j=v&&h instanceof Document,L=y&&h instanceof ShadowRoot;return j||L},f=()=>(r||(r=N.css().buildCss(void 0)),r),m=h=>N.css({base:"html,body{font-size:16px;padding:0;margin:0;}"}).buildCss(h),A=h=>{if(!h)return f();let v=e.get(h);return v||(v=m(h),e.set(h,v)),v};return{clsx:(...h)=>{let v,y=h[h.length-1];n(y)&&(v=y,h=h.slice(0,-1));let j=[],L=E=>{if(E){if(typeof E=="string"||typeof E=="number"){j.push(String(E));return}if(Array.isArray(E)){E.forEach(L);return}typeof E=="object"&&Object.keys(E).forEach(z=>{E[z]&&j.push(z)})}};return h.forEach(L),A(v||a).clsx(j.join(" "))},setClsxRoot:h=>{a=h||(typeof document<"u"?document:null)},getCss:()=>f().getCssString()}},ie=typeof globalThis<"u"?globalThis:typeof window<"u"?window:global,W=ie[oe]||Ve();ie[oe]||(ie[oe]=W);var Ue=W.clsx,Ke=W.setClsxRoot,Xe=W.getCss,ae=N;typeof document<"u"&&(ae.cssObserve(document),console.log("\u{1F680} fwxcss Auto-Observer Activated"));var Fe=ae;0&&(module.exports={clsx,getCss,setClsxRoot});
8
+ `),M[a]=[])}},Te=l=>{l.forEach(i=>{let a=G(i);a&&Re(i,a)})},fe=l=>{if(l.length===0)return;let i=()=>Te(l);X?i():F.then(i)};return h.on("observeDom",fe),{clsx:(...l)=>{let i=l.map(p=>Array.isArray(p)?p:[p]).flat(1/0).map(p=>typeof p=="string"?p.split(/(\s|\t)+/g):[]).flat(1/0);i=i.filter(p=>typeof p=="string"&&p.trim()),i=[...new Set(i)];let a=p=>{if(!J(p))return!1;if(X)return!!G(p);let P=T?p.slice(T.length):p,k=re(P);return k?k.prop.startsWith("[")?!0:(k.prop==="&",k.val.length>0):!1},g=i.map(p=>{let P=p;if(x.has(p))P=x.get(p);else if(a(p)){let k="D"+x.size.toString(32).toUpperCase();x.set(p,k),P=k,de()}return P});return o?queueMicrotask(()=>h.emit("observeDom",i)):h.emit("observeDom",i),g.join(" ")},observe:()=>{!o||!c||Ee(c,l=>{fe(l)})},getCssString:()=>Object.entries(b).map(([l,i])=>{if(!i)return"";if(l==="root"||l==="default")return i;let a=w.find(g=>Object.keys(g)[0]===l)?.[l];return a?`@media ${a} {
9
+ ${i}
10
+ }`:i}).join(`
11
+ `)}};function Ce(t){let o=new RegExp("^(\\[(?<p>[a-zA-Z]+)\\])$"),{p:c=""}=o.exec(t)?.groups??{};if(c&&r[c]&&Array.isArray(r[c])){let x=r[c],h=[],w=!0;for(let E of x){let f=G(E);f&&f.property?h.push(f.property):typeof CSS<"u"&&CSS.supports(E)||typeof CSS>"u"?h.push(E):w=!1}if(h.length>0&&(typeof CSS>"u"||w))return h.join(";")}return null}function xe(t,o){let c=Ce(t+o);if(c)return c;if(!t||o===void 0)return null;let x=D[t],h=x||t,w=o[0],E=!1,f=o;if(w==="!"&&(E=!0,f=f.substring(1),w=f[0]),f.startsWith("--"))f="var("+f+")";else if(w==="["&&f.endsWith("]"))f=f.substring(1,f.length-1);else if(f.length>0){let A=f[0].toLowerCase()+f.substring(1),j=H[t]?.[A]||Y[A];if(!j){let V=f.toLowerCase();j=H[t]?.[V]||Y[V]}f=j||f}if(f=f.replace(/(';|;)/g,A=>A=="';"?";":" "),!f)return null;let y=f+(E?" !important":""),u=[h+":"+y];switch(h){case"mx":u=[`margin-left:${y}`,`margin-right:${y}`];break;case"my":u=[`margin-top:${y}`,`margin-bottom:${y}`];break;case"px":u=[`padding-left:${y}`,`padding-right:${y}`];break;case"py":u=[`padding-top:${y}`,`padding-bottom:${y}`];break;case"bdx":u=[`border-left:${y}`,`border-right:${y}`];break;case"bdy":u=[`border-top:${y}`,`border-bottom:${y}`];break}return!(typeof CSS<"u")||u.every(A=>CSS.supports(A))?u.join(";"):null}function G(t){if(!J(t))return null;let o=T?t.slice(T.length):t,c=re(o);if(!c)return null;let{mq:x="default",layer:h="0",prop:w,val:E,selector:f=""}=c,y=[],u=xe(w,E);if(u&&y.push(u),y.length==0)return null;let b=f.replace(/(';|;)/g,K=>K=="';"?";":" "),A=typeof CSS<"u"?CSS.escape(t):be(t),j=`selector(${A}${b})`;return typeof CSS<"u"&&b&&!CSS.supports(j)?null:{media:x||"default",layer:h||"0",className:A,property:y.join(";"),selector:b,cssRules:`.${A}${b}{${y.join(";")}}`}}let be=t=>t.replace(/([^\w-])/g,"\\$1"),Q=t=>{var o=[...t?.classList||[]].filter(c=>{if(c){let x=c.charCodeAt(0)==45?c.charCodeAt(1):c.charCodeAt(0);return x>=97&&x<=122||x>=48&&x<=57}return!1});return t?.children?.length>0&&Array.from(t?.children).forEach(c=>{o.push(...Q(c))}),o.flat(1/0)},Ee=(t,o)=>{if(typeof o!="function")throw new Error("Callback is not a function");if(!t)return;let c;"documentElement"in t?c=t.documentElement:(t instanceof Element||"tagName"in t||"host"in t)&&(c=t),c&&(c instanceof Element&&o(Q(c)),typeof MutationObserver<"u"&&new MutationObserver(x=>{for(let h of x)if(h.type=="attributes"&&h.attributeName=="class"){if(h.target.nodeType==1){let w=String(h.target?.className??""),E=String(h?.oldValue??"");if(w||E){let f=w.split(" ").map(u=>u.trim()).filter(u=>u),y=E.split(" ").map(u=>u.trim()).filter(u=>u);f=f.filter(u=>!y.includes(u)),typeof o=="function"&&o([...new Set(f)])}}}else if(h.type=="childList"&&h.addedNodes.length>0){let w=[...h.addedNodes].filter(E=>E.nodeType==1).map(E=>Q(E)).flat(1/0);typeof o=="function"&&o([...new Set(w)])}}).observe(c,{attributes:!0,attributeOldValue:!0,attributeFilter:["class"],childList:!0,subtree:!0}))};return{buildCss:me,exportCache:()=>typeof localStorage>"u"?null:JSON.parse(localStorage.getItem(q)||"null"),ready:F}},_e=(e,n)=>{oe(n).buildCss(e).observe()},Xe=(e,n)=>oe(n).buildCss(e).clsx,N={css:oe,cssObserve:_e,clsx:Xe};var ie="__FWXCSS_SHARED__",Ve=()=>{let e=new WeakMap,n=null,s=typeof document<"u"?document:null,r=m=>{if(!m)return!1;let v=typeof Document<"u",C=typeof ShadowRoot<"u",O=v&&m instanceof Document,L=C&&m instanceof ShadowRoot;return O||L},d=()=>(n||(n=N.css().buildCss(void 0)),n),S=m=>N.css({base:"html,body{font-size:16px;padding:0;margin:0;}"}).buildCss(m),I=m=>{if(!m)return d();let v=e.get(m);return v||(v=S(m),e.set(m,v)),v};return{clsx:(...m)=>{let v,C=m[m.length-1];r(C)&&(v=C,m=m.slice(0,-1));let O=[],L=D=>{if(D){if(typeof D=="string"||typeof D=="number"){O.push(String(D));return}if(Array.isArray(D)){D.forEach(L);return}typeof D=="object"&&Object.keys(D).forEach(H=>{D[H]&&O.push(H)})}};return m.forEach(L),I(v||s).clsx(O.join(" "))},setClsxRoot:m=>{s=m||(typeof document<"u"?document:null)},getCss:()=>d().getCssString()}},ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:global,B=ae[ie]||Ve();ae[ie]||(ae[ie]=B);var Ke=B.clsx,We=B.setClsxRoot,Ue=B.getCss,le=N;typeof document<"u"&&(le.cssObserve(document),console.log("\u{1F680} fwxcss Auto-Observer Activated"));var qe=le;0&&(module.exports={clsx,getCss,setClsxRoot});
12
12
  //# sourceMappingURL=index-auto.js.map