@fwkui/x-css 1.0.13 → 1.0.15
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/README.md +129 -3
- package/dist/dictionary.d.mts +5 -0
- package/dist/dictionary.d.ts +5 -0
- package/dist/dictionary.js +2 -0
- package/dist/dictionary.js.map +1 -0
- package/dist/dictionary.mjs +2 -0
- package/dist/dictionary.mjs.map +1 -0
- package/dist/index-auto.d.mts +1 -1
- package/dist/index-auto.d.ts +1 -1
- package/dist/index-auto.js +130 -11
- package/dist/index-auto.js.map +1 -1
- package/dist/index-auto.mjs +130 -11
- package/dist/index-auto.mjs.map +1 -1
- package/dist/index.d.mts +19 -2
- package/dist/index.d.ts +19 -2
- package/dist/index.js +130 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +130 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index-auto.js
CHANGED
|
@@ -1,12 +1,131 @@
|
|
|
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
|
-
${
|
|
3
|
-
}`:
|
|
4
|
-
`),
|
|
5
|
-
`:"")+
|
|
6
|
-
`),
|
|
7
|
-
`:"")+
|
|
8
|
-
`),
|
|
9
|
-
${
|
|
10
|
-
}`:
|
|
11
|
-
`)}};function
|
|
1
|
+
"use strict";var xe=Object.defineProperty;var it=Object.getOwnPropertyDescriptor;var at=Object.getOwnPropertyNames;var ct=Object.prototype.hasOwnProperty;var lt=(e,t)=>{for(var n in t)xe(e,n,{get:t[n],enumerable:!0})},dt=(e,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of at(t))!ct.call(e,i)&&i!==n&&xe(e,i,{get:()=>t[i],enumerable:!(s=it(t,i))||s.enumerable});return e};var ut=e=>dt(xe({},"__esModule",{value:!0}),e);var Mt={};lt(Mt,{clsx:()=>Pt,default:()=>Kt,getBootloaderScript:()=>Fe,getCss:()=>Xt,setClsxRoot:()=>$t});module.exports=ut(Mt);var Le=e=>(e=e||new Map,{all:e,on(t,n){let s=e.get(t);s?s.push(n):e.set(t,[n])},off(t,n){let s=e.get(t);s&&(n?s.splice(s.indexOf(n)>>>0,1):e.set(t,[]))},emit(t,n){let s=e.get(t);s&&s.slice().forEach(u=>{u(n)});let i=e.get("*");i&&i.slice().forEach(u=>{u(t,n)})}});function ft(e,t,n){let s=0;for(let i=t;i<n;i++){let u=e.charCodeAt(i);if(u===91){s++;continue}if(u===93){s>0&&s--;continue}if(u===58&&s===0)return i}return-1}function pt(e,t,n){let s=0;for(let i=n-1;i>=t;i--){let u=e.charCodeAt(i);if(u===93){s++;continue}if(u===91){s>0&&s--;continue}if(u===64&&s===0)return i}return-1}function yt(e,t,n){let s=0;for(let i=t;i<n;i++){let u=e.charCodeAt(i);if(u===91){s++;continue}if(u===93){if(s===0)return!1;s--}}return s===0}function ht(e){return e>=97&&e<=122}function ce(e){if(!e||e.length<2||!yt(e,0,e.length))return null;let t=0,n=e.length,s="",i=pt(e,t,n);i>t&&(s=e.substring(i+1,n),n=i);let u="",b="",w=ft(e,t,n);if(w>0&&w<n){let x=e.substring(t,w);t=w+1,u=x}let T=t;for(;T<n;){let x=e.charCodeAt(T);if(x>=48&&x<=57)T++;else break}if(T>t&&(b=e.substring(t,T),t=T),t>=n||e.charCodeAt(t)===38)return null;if(e.charCodeAt(t)===91){let x=e.indexOf("]",t);if(x>t)return{mq:u,layer:b,prop:e.substring(t,x+1),val:"",selector:s}}let E=t;for(;E<n;){let x=e.charCodeAt(E);if(x===45||x===46){if(E+1<n){let X=e.charCodeAt(E+1);if(x===45&&X===45&&E>t||X>=48&&X<=57)break}E++;continue}if(!ht(x))break;E++}if(E===t)return null;let R=e.substring(t,E),A=e.substring(E,n);return{mq:u,layer:b,prop:R,val:A,selector:s}}var q="xcss_cache_v1",He=e=>{let t=typeof e?.styleId=="string"&&e.styleId.trim()?e.styleId.trim():"fwkui",n=typeof e?.version=="string"&&e.version.trim()?e.version.trim():"v1",s=e?.compression??!0,i=typeof e?.debounceMs=="number"&&e.debounceMs>=0?e.debounceMs:1e3;return{styleId:t,version:n,compression:s,debounceMs:i}},gt=e=>`${e.styleId}_cache_${e.version}`,We=e=>{if(!e||typeof e!="object")return!1;let t=e;return t.__xcss_cache_v===2&&t.compressed===!0&&typeof t.payload=="string"},Ee=e=>{if(!e||typeof e!="object")return!1;let t=e;return t.__xcss_cache_v===3&&t.compressed===!0&&t.algorithm==="deflate-raw"&&t.encoding==="base64"&&typeof t.payload=="string"},Ue=()=>typeof CompressionStream<"u"&&typeof Blob<"u"&&typeof Response<"u",Ve=()=>typeof DecompressionStream<"u"&&typeof Blob<"u"&&typeof Response<"u",St=e=>{if(typeof btoa=="function"){let n="";for(let i=0;i<e.length;i+=32768){let u=e.subarray(i,i+32768);for(let b=0;b<u.length;b++)n+=String.fromCharCode(u[b])}return btoa(n)}let t=globalThis.Buffer;if(typeof t<"u")return t.from(e).toString("base64");throw new Error("XCSS: base64 encoding is not supported in this runtime")},mt=e=>{if(typeof atob=="function"){let n=atob(e),s=new Uint8Array(n.length);for(let i=0;i<n.length;i++)s[i]=n.charCodeAt(i);return s}let t=globalThis.Buffer;if(typeof t<"u")return new Uint8Array(t.from(e,"base64"));throw new Error("XCSS: base64 decoding is not supported in this runtime")},Ct=async e=>{if(!Ue())throw new Error("XCSS: CompressionStream is not supported");let t=new Blob([e]).stream().pipeThrough(new CompressionStream("deflate-raw")),n=await new Response(t).arrayBuffer();return St(new Uint8Array(n))},bt=async e=>{if(!Ve())throw new Error("XCSS: DecompressionStream is not supported");let t=mt(e),n=new Uint8Array(t.length);n.set(t);let s=new Blob([n.buffer]).stream().pipeThrough(new DecompressionStream("deflate-raw"));return await new Response(s).text()},wt=e=>{try{let t=JSON.parse(e);return Ee(t)}catch{return!1}},xt=e=>{if(!e)return"";let t=new Map,n=[],s=256;for(let u=0;u<256;u++)t.set(String.fromCharCode(u),u);let i=e[0];for(let u=1;u<e.length;u++){let b=e[u],w=i+b;t.has(w)?i=w:(n.push(t.get(i)),t.set(w,s++),i=b)}return n.push(t.get(i)),n.map(u=>String.fromCharCode(u)).join("")},Ne=e=>{if(!e)return"";let t=new Map,n=256,s="";for(let w=0;w<256;w++)t.set(w,String.fromCharCode(w));let i=e.split("").map(w=>w.charCodeAt(0)),u=i[0],b=t.get(u)||"";s=b;for(let w=1;w<i.length;w++){let T=i[w],E=t.get(T);E||(E=T===n?b+b[0]:""),s+=E,t.set(n++,b+E[0]),b=E}return s},Re=e=>{if(!e||typeof e!="object")return null;let t=e,n=t.default&&typeof t.default=="object"?t.default:t,s=n.SHORT_PROPERTIES,i=n.COMMON_VALUES,u=n.SPECIFIC_VALUES;return!s||!i||!u||typeof s!="object"||typeof i!="object"||typeof u!="object"?null:{SHORT_PROPERTIES:s,COMMON_VALUES:i,SPECIFIC_VALUES:u}},vt=async e=>{let t=await import(e),n=Re(t);if(!n)throw new Error(qe);return n},qe="XCSS: dictionary module must export SHORT_PROPERTIES, COMMON_VALUES and SPECIFIC_VALUES",Ze=()=>{let e=typeof require=="function"?require:null;if(!e)return null;for(let t of["./dictionary.js","./dictionary"])try{let n=e(t),s=Re(n);if(s)return s}catch{}return null},Et=async()=>{let e=Ze();if(e)return e;let t=["./dictionary.mjs","./dictionary.js","./dictionary"],n=null;for(let s of t)try{let i=await import(s),u=Re(i);if(u)return u}catch(i){n=i}throw n||new Error(qe)},Rt=(e,t)=>{if(!e||typeof document>"u")return;t=t||"fwkui";let n=Array.from({length:24},(s,i)=>"l"+i);if(!e.querySelector('style[id="'+t+'"]')){let s=document.createElement("style");if(s.id=t,!(e instanceof ShadowRoot))document.head.append(s);else try{e.prepend(s)}catch{e.appendChild(s)}let i=`@layer ${n.join(", ")};`,u=setInterval(()=>{if(s.sheet){clearInterval(u);try{s.sheet.insertRule(i,s.sheet.cssRules.length)}catch{}}},10)}},Dt=e=>{let t=Array.isArray(e.excludes)?e.excludes:Array.isArray(e.exclude)?e.exclude:[],n=He(e.cache),s=JSON.stringify({base:e.base||"",aliases:e.aliases||{},breakpoints:e.breakpoints||[],theme:e.theme||{},prefix:e.prefix||"",excludes:t,excludePrefixes:e.excludePrefixes||[],dictionaryImport:e.dictionaryImport??!0,cache:n}),i=0;if(s.length===0)return i.toString();for(let u=0;u<s.length;u++){let b=s.charCodeAt(u);i=(i<<5)-i+b,i|=0}return i.toString()},ve=e=>{if(!e)return null;try{let t=JSON.parse(e);if(We(t)){let n=Ne(t.payload);return n?JSON.parse(n):null}return Ee(t)?null:t}catch{return null}},Tt=async e=>{if(!e)return null;try{let t=JSON.parse(e);if(We(t)){let n=Ne(t.payload);return n?JSON.parse(n):null}if(Ee(t)){let n=await bt(t.payload);return n?JSON.parse(n):null}return t}catch{return null}},Be=(e,t)=>{if(e==="root")return t;let n=/@media[^{]+\{\n?([\s\S]+)\n?\}/.exec(t);return n&&n[1]?n[1].trim():t},De=(e={base:"",aliases:{},excludes:[],excludePrefixes:[],breakpoints:[],theme:{},prefix:"",dictionaryImport:!0,cache:{styleId:"fwkui",version:"v1",compression:!0,debounceMs:1e3}})=>{let{base:t=null,breakpoints:n=[],aliases:s={},theme:i={},excludes:u=[],exclude:b=[],excludePrefixes:w=[],prefix:T="",dictionaryImport:E=!0,cache:R={}}=e||{};Array.isArray(n)||(n=[]),Array.isArray(u)||(u=[]),Array.isArray(b)||(b=[]),Array.isArray(w)||(w=[]),(!s||typeof s!="object")&&(s={}),(!i||typeof i!="object")&&(i={});let A=He(R),x=gt(A),X=[...u,...b],Z=w.filter(r=>typeof r=="string").map(r=>r.trim()).filter(r=>r.length>0),ke=r=>{let o=r.replace(/[.+?^${}()|[\]\\]/g,"\\$&");return new RegExp("^"+o.replace(/\*/g,".*")+"$")},K=X.filter(r=>typeof r=="string").map(r=>r.trim()).filter(r=>r.length>0).map(r=>{if(r.includes("*")){let o=ke(r);return l=>o.test(l)}return o=>o===r}),re=r=>Z.some(o=>r.startsWith(o))?!0:K.some(o=>o(r)),Ie=r=>!(re(r)||T&&!r.startsWith(T)),Je=["default","xs","sm","md","lg","xl","2xl","sma","mda","lga","xla"],ze=n.filter(r=>!!r&&typeof r=="object"&&!Array.isArray(r)).map(r=>Object.keys(r)[0]).filter(r=>typeof r=="string"&&r.length>0),Ye=new Set([...Je,...ze]),ue=r=>!r||Ye.has(r),Ge=E!==!1,Qe=new Set(["mx","my","px","py","bdx","bdy"]),fe=new Set,pe=r=>r?!Ge||!V||Object.keys(V).length===0?!0:!!V[r]||Qe.has(r)||fe.has(r):!1,V={},ne={},ye={},he={},Oe=()=>{he={...ye,...i}},F=r=>{if(!r){V={},ne={},ye={},fe=new Set,Oe();return}V=r.SHORT_PROPERTIES,ne=r.SPECIFIC_VALUES,ye=r.COMMON_VALUES,fe=new Set(Object.values(V)),Oe()},J=!0,se=Promise.resolve();if(E===!1)F(null);else if(typeof E=="string")J=!1,F(null),se=vt(E).then(r=>{F(r)}).catch(r=>{console.warn("XCSS: Failed to import dictionary from URL",r)}).finally(()=>{J=!0});else{let r=Ze();r?F(r):(J=!1,F(null),se=Et().then(o=>{F(o)}).catch(o=>{console.warn("XCSS: Failed to load built-in dictionary module",o)}).finally(()=>{J=!0}))}let G=null,et=(r=typeof document<"u"?document:void 0)=>{let o=typeof window<"u"&&typeof document<"u",l=null,g=Array.isArray(t)?t.length>0:!!t;r&&(l="getRootNode"in r?r.getRootNode():r);let p=new Map;o&&l&&Rt(l,A.styleId);let v=Le(),_=[{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)"},...n],y=_.filter((a,d)=>_.findLastIndex(c=>Object.keys(c)[0]==Object.keys(a)[0])==d),C=y.map(a=>Object.keys(a)[0]),f={},D={},S={root:""},M={root:[]},L={root:!1},Q=Dt(e),z=null,k=0,j=!1,O=null,Y=null,W=[],B=a=>{try{window.localStorage.setItem(x,a)}catch(d){console.warn("XCSS: Failed to save cache",d)}},oe=(a,d)=>{!o||!window.localStorage||typeof d=="string"&&window.localStorage.getItem(a)!==d||window.localStorage.removeItem(a)},N=a=>{if(!o||!window.localStorage)return;G=a;let d=++k;try{let c=JSON.stringify(a),h=()=>{let m={__xcss_cache_v:2,compressed:!0,payload:xt(c)};B(JSON.stringify(m))};if(!A.compression){B(c);return}if(Ue()&&Ve()){Ct(c).then(m=>{if(d!==k)return;B(JSON.stringify({__xcss_cache_v:3,compressed:!0,algorithm:"deflate-raw",encoding:"base64",payload:m}))}).catch(()=>{d===k&&h()});return}h()}catch(c){console.warn("XCSS: Failed to save cache",c)}},ie=()=>{o&&(z&&clearTimeout(z),z=setTimeout(()=>{let a={};for(let h in f)a[h]=Array.from(f[h]);let d={};Object.keys(S).forEach(h=>{if(h==="root")d[h]=S[h];else{let m=_.find($=>Object.keys($)[0]===h)?.[h];m&&S[h]?d[h]=`@media ${m} {
|
|
2
|
+
${S[h]}
|
|
3
|
+
}`:d[h]=S[h]||""}});let c={configHash:Q,cssText:d,rulesSet:a,keys:Array.from(p.entries())};N(c)},A.debounceMs))};if(o&&window.localStorage)try{let a=x===q?[x]:[x,q];for(let d of a){let c=window.localStorage.getItem(d);if(!c)continue;let h=ve(c);if(!h){if(wt(c)){W.push({key:d,raw:c});continue}window.localStorage.removeItem(d);continue}if(h.configHash!==Q){window.localStorage.removeItem(d);continue}O=h,Y=d,j=!0;break}if(O){if(O.keys&&O.keys.forEach(([d,c])=>p.set(d,c)),O.cssText)for(let d in O.cssText){let c=O.cssText[d];S[d]=Be(d,c)}G=O}}catch(a){console.error(a)}o&&(D.root=new CSSStyleSheet),C.forEach(a=>{if(f[a]=new Set,o){let d=y.find(c=>Object.keys(c)[0]==a)?.[a]||"";D[a]=new CSSStyleSheet({media:d})}j||(S[a]=""),M[a]=[],L[a]=!1});let I=()=>{if(!l)return;let a=l.querySelector(`style[id="${A.styleId}"]`);a&&a.remove()},ae=(a,d)=>{if(a.keys&&a.keys.forEach(([c,h])=>p.set(c,h)),a.cssText)for(let c in a.cssText){if(c==="root"&&g)continue;let h=Be(c,a.cssText[c]);S[c]=h,o&&D[c]&&D[c].replaceSync(h)}if(a.rulesSet)for(let c in a.rulesSet)f[c]||(f[c]=new Set),a.rulesSet[c].forEach(h=>f[c].add(h));o&&window.localStorage&&d===q&&x!==q&&(N(a),window.localStorage.removeItem(q)),G=a,I()};j&&O&&ae(O,Y),t&&Array.isArray(t)?(S.root=t.join(`
|
|
4
|
+
`),o&&D.root&&D.root.replaceSync(S.root)):(S.root=t||"",o&&D.root&&D.root.replaceSync(S.root)),o&&l&&["root",...C].forEach(a=>{D[a]&&l?.adoptedStyleSheets&&(l.adoptedStyleSheets.includes(D[a])||(l.adoptedStyleSheets=[...l.adoptedStyleSheets,D[a]]))}),o&&window.localStorage&&W.length>0&&(async()=>{for(let a of W){let d=await Tt(a.raw);if(!d){oe(a.key,a.raw);continue}if(d.configHash!==Q){oe(a.key,a.raw);continue}if(!j){j=!0,O=d,Y=a.key,ae(d,a.key);break}}})();let me=(a,d)=>{let{media:c,property:h,selector:m,layer:$,className:P}=d,U=S,H=M,be=L;$=Number($)||0;let Ke=p.get(a),ot=Ke?`.${Ke}${m}`:`.${P}${m}`;var we=`@layer l${$}{${ot}{${h}}}`;f[c]||(f[c]=new Set);let Me=f[c];if(!Me.has(we))if(Me.add(we),H[c]||(H[c]=[]),H[c].push(we),o)be[c]||(be[c]=!0,queueMicrotask(()=>{let te=H[c],je=D[c];te.length>0&&(U[c]+=(U[c]?`
|
|
5
|
+
`:"")+te.join(`
|
|
6
|
+
`),je&&je.replaceSync(U[c]),H[c]=[],ie()),be[c]=!1}));else{let te=H[c];te.length>0&&(U[c]+=(U[c]?`
|
|
7
|
+
`:"")+te.join(`
|
|
8
|
+
`),H[c]=[])}},Ce=a=>{a.forEach(d=>{let c=Xe(d);c&&me(d,c)})},ee=a=>{if(a.length===0)return;let d=()=>Ce(a);J?d():se.then(d)};return v.on("observeDom",ee),{clsx:(...a)=>{let d=a.map(m=>Array.isArray(m)?m:[m]).flat(1/0).map(m=>typeof m=="string"?m.split(/(\s|\t)+/g):[]).flat(1/0);d=d.filter(m=>typeof m=="string"&&m.trim()),d=[...new Set(d)];let c=m=>{if(!Ie(m))return!1;if(J)return!!Xe(m);let $=T?m.slice(T.length):m,P=ce($);if(!P||!ue(P.mq))return!1;let U=(P.selector||"").replace(/(';|;)/g,H=>H=="';"?";":" ");return U&&!ge(U)?!1:P.prop.startsWith("[")?!!Pe(P.prop+P.val):pe(P.prop)?(P.prop==="&",P.val.length>0):!1},h=d.map(m=>{let $=m;if(p.has(m))$=p.get(m);else if(c(m)){let P="D"+p.size.toString(32).toUpperCase();p.set(m,P),$=P,ie()}return $});return o?queueMicrotask(()=>v.emit("observeDom",d)):v.emit("observeDom",d),h.join(" ")},observe:()=>{!o||!l||st(l,a=>{ee(a)})},getCssString:()=>Object.entries(S).map(([a,d])=>{if(!d)return"";if(a==="root"||a==="default")return d;let c=_.find(h=>Object.keys(h)[0]===a)?.[a];return c?`@media ${c} {
|
|
9
|
+
${d}
|
|
10
|
+
}`:d}).join(`
|
|
11
|
+
`)}};function Pe(r){let o=new RegExp("^(\\[(?<p>[a-zA-Z]+)\\])$"),{p:l=""}=o.exec(r)?.groups??{};if(l&&s[l]&&Array.isArray(s[l])){let g=s[l],p=[],v=!0,_=y=>{let C=y.trim();if(!C)return null;let f=C.endsWith(";")?C.slice(0,-1).trim():C,D=f.indexOf(":");if(D<=0||D>=f.length-1)return null;let S=f.slice(0,D).trim(),M=f.slice(D+1).trim();return!S||!M||!/^(?:--[a-zA-Z0-9-_]+|-?[a-zA-Z][a-zA-Z0-9-]*)$/.test(S)?null:`${S}:${M}`};for(let y of g){if(typeof y!="string"){v=!1;break}let C=_(y);if(C){if(typeof CSS<"u"&&!CSS.supports(C)){v=!1;break}p.push(C);continue}v=!1;break}if(p.length>0&&v)return p.join(";")}return null}function $e(r,o){let l=Pe(r+o);if(l)return l;if(!r||o===void 0)return null;let g=V[r],p=g||r,v=o[0],_=!1,y=o;if(v==="!"&&(_=!0,y=y.substring(1),v=y[0]),y.startsWith("--"))y="var("+y+")";else if(v==="["&&y.endsWith("]"))y=y.substring(1,y.length-1);else if(y.length>0){let S=y[0].toLowerCase()+y.substring(1),M=ne[r]?.[S]||he[S];if(!M){let L=y.toLowerCase();M=ne[r]?.[L]||he[L]}y=M||y}if(y=y.replace(/(';|;)/g,S=>S=="';"?";":" "),!y)return null;let C=y+(_?" !important":""),f=[p+":"+C];switch(p){case"mx":f=[`margin-left:${C}`,`margin-right:${C}`];break;case"my":f=[`margin-top:${C}`,`margin-bottom:${C}`];break;case"px":f=[`padding-left:${C}`,`padding-right:${C}`];break;case"py":f=[`padding-top:${C}`,`padding-bottom:${C}`];break;case"bdx":f=[`border-left:${C}`,`border-right:${C}`];break;case"bdy":f=[`border-top:${C}`,`border-bottom:${C}`];break}return!(typeof CSS<"u")||f.every(S=>CSS.supports(S))?f.join(";"):null}let tt=r=>{let o=0;for(let l=r.length-1;l>=0;l--){let g=r[l];if(g==="]"){o++;continue}if(g==="["){o>0&&o--;continue}if(g==="@"&&o===0)return{body:r.slice(0,l),selector:r.slice(l+1)}}return{body:r,selector:""}},rt=r=>{let o=[],l=0,g=0;for(let p=0;p<r.length;p++){let v=r[p];if(v==="["){g++;continue}if(v==="]"){g>0&&g--;continue}v==="&"&&g===0&&(o.push(r.slice(l,p)),l=p+1)}return o.push(r.slice(l)),o},ge=r=>{if(!r)return!0;let o=r.trim();if(!o)return!0;if(/[{}]/.test(o)||o==="#"||o==="("||o===")"||o===","||o===">"||o==="+"||o==="~"||o.startsWith("(")||o.startsWith(")"))return!1;let l=0;for(let g=0;g<o.length;g++){let p=o[g];if(p==="("){l++;continue}if(p===")"){if(l===0)return!1;l--}}return l===0};function Xe(r){if(!Ie(r))return null;let o=T?r.slice(T.length):r,l=typeof CSS<"u"?CSS.escape(r):nt(r);if(o.includes("&")&&!o.startsWith("&")){let{body:L,selector:Q}=tt(o),z=rt(L).map(k=>k.trim()).filter(k=>k.length>0).map(k=>T&&k.startsWith(T)?k.slice(T.length):k);if(z.length>1){let k="",j="",O=Q,Y=!1,W=[];for(let N of z){let ie=O?`${N}@${O}`:N,I=ce(ie);if(!I||!ue(I.mq)||!I.prop.startsWith("[")&&!pe(I.prop))return null;Y?(!I.mq&&k&&(I.mq=k),!I.layer&&j&&(I.layer=j)):(k=I.mq||"",j=I.layer||"",Y=!0);let ae=I.mq||"",me=I.layer||"",Ce=I.selector||"";if(ae!==k||me!==j||Ce!==O)return null;let ee=$e(I.prop,I.val);if(!ee)return null;W.push(ee)}if(W.length===0)return null;let B=O.replace(/(';|;)/g,N=>N=="';"?";":" "),oe=`selector(${l}${B})`;if(B){if(typeof CSS<"u"){if(!CSS.supports(oe))return null}else if(!ge(B))return null}return{media:k||"default",layer:j||"0",className:l,property:W.join(";"),selector:B,cssRules:`.${l}${B}{${W.join(";")}}`}}}let g=ce(o);if(!g||!ue(g.mq)||!g.prop.startsWith("[")&&!pe(g.prop))return null;let{mq:p="default",layer:v="0",prop:_,val:y,selector:C=""}=g,f=[],D=$e(_,y);if(D&&f.push(D),f.length===0)return null;let S=C.replace(/(';|;)/g,L=>L=="';"?";":" "),M=`selector(${l}${S})`;if(S){if(typeof CSS<"u"){if(!CSS.supports(M))return null}else if(!ge(S))return null}return{media:p||"default",layer:v||"0",className:l,property:f.join(";"),selector:S,cssRules:`.${l}${S}{${f.join(";")}}`}}let nt=r=>r.replace(/([^\w-])/g,"\\$1"),Se=r=>{var o=[...r?.classList||[]].filter(l=>{if(l){let g=l.charCodeAt(0)==45?l.charCodeAt(1):l.charCodeAt(0);return g>=97&&g<=122||g>=48&&g<=57}return!1});return r?.children?.length>0&&Array.from(r?.children).forEach(l=>{o.push(...Se(l))}),o.flat(1/0)},st=(r,o)=>{if(typeof o!="function")throw new Error("Callback is not a function");if(!r)return;let l;"documentElement"in r?l=r.documentElement:(r instanceof Element||"tagName"in r||"host"in r)&&(l=r),l&&(l instanceof Element&&o(Se(l)),typeof MutationObserver<"u"&&new MutationObserver(g=>{for(let p of g)if(p.type=="attributes"&&p.attributeName=="class"){if(p.target.nodeType==1){let v=String(p.target?.className??""),_=String(p?.oldValue??"");if(v||_){let y=v.split(" ").map(f=>f.trim()).filter(f=>f),C=_.split(" ").map(f=>f.trim()).filter(f=>f);y=y.filter(f=>!C.includes(f)),typeof o=="function"&&o([...new Set(y)])}}}else if(p.type=="childList"&&p.addedNodes.length>0){let v=[...p.addedNodes].filter(_=>_.nodeType==1).map(_=>Se(_)).flat(1/0);typeof o=="function"&&o([...new Set(v)])}}).observe(l,{attributes:!0,attributeOldValue:!0,attributeFilter:["class"],childList:!0,subtree:!0}))};return{buildCss:et,exportCache:()=>{if(typeof window>"u"||!window.localStorage)return G;let r=ve(window.localStorage.getItem(x));if(r)return r;if(x!==q){let o=ve(window.localStorage.getItem(q));if(o)return o}return G},ready:se}},_t=(e,t)=>{De(t).buildCss(e).observe()},At=(e,t)=>De(t).buildCss(e).clsx,le={css:De,cssObserve:_t,clsx:At};var kt="xcss_cache_v1",It=(e,t)=>{let n=String(t||"").trim();return n?n===kt||n.includes("_cache_")?n:`${e}_cache_${n}`:`${e}_cache_v1`},Fe=(e="fwkui",t="v1",n)=>{let s=String(e||"").trim()||"fwkui",i=It(s,t),u=JSON.stringify(s),b=JSON.stringify(i),w=`
|
|
12
|
+
(async function () {
|
|
13
|
+
function decompressLZW(compressed) {
|
|
14
|
+
if (!compressed) return '';
|
|
15
|
+
var dictionary = {};
|
|
16
|
+
var dictSize = 256;
|
|
17
|
+
var i;
|
|
18
|
+
for (i = 0; i < 256; i++) dictionary[i] = String.fromCharCode(i);
|
|
19
|
+
var codes = compressed.split('').map(function (ch) { return ch.charCodeAt(0); });
|
|
20
|
+
var previous = codes[0];
|
|
21
|
+
var phrase = dictionary[previous] || '';
|
|
22
|
+
var result = phrase;
|
|
23
|
+
for (i = 1; i < codes.length; i++) {
|
|
24
|
+
var current = codes[i];
|
|
25
|
+
var entry = dictionary[current];
|
|
26
|
+
if (!entry) entry = current === dictSize ? phrase + phrase[0] : '';
|
|
27
|
+
result += entry;
|
|
28
|
+
dictionary[dictSize++] = phrase + entry[0];
|
|
29
|
+
phrase = entry;
|
|
30
|
+
}
|
|
31
|
+
return result;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function canUseStream() {
|
|
35
|
+
return (
|
|
36
|
+
typeof DecompressionStream !== 'undefined' &&
|
|
37
|
+
typeof Blob !== 'undefined' &&
|
|
38
|
+
typeof Response !== 'undefined'
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function base64ToBytes(base64) {
|
|
43
|
+
if (typeof atob === 'function') {
|
|
44
|
+
var binary = atob(base64);
|
|
45
|
+
var bytes = new Uint8Array(binary.length);
|
|
46
|
+
for (var i = 0; i < binary.length; i++) bytes[i] = binary.charCodeAt(i);
|
|
47
|
+
return bytes;
|
|
48
|
+
}
|
|
49
|
+
if (typeof Buffer !== 'undefined') {
|
|
50
|
+
return new Uint8Array(Buffer.from(base64, 'base64'));
|
|
51
|
+
}
|
|
52
|
+
throw new Error('No base64 decoder');
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
async function decompressDeflateRawBase64(payload) {
|
|
56
|
+
if (!canUseStream()) return null;
|
|
57
|
+
try {
|
|
58
|
+
var bytes = base64ToBytes(payload);
|
|
59
|
+
var stream = new Blob([bytes]).stream().pipeThrough(new DecompressionStream('deflate-raw'));
|
|
60
|
+
return await new Response(stream).text();
|
|
61
|
+
} catch (_error) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
async function parseCache(raw) {
|
|
67
|
+
if (!raw) return null;
|
|
68
|
+
try {
|
|
69
|
+
var parsed = JSON.parse(raw);
|
|
70
|
+
if (
|
|
71
|
+
parsed &&
|
|
72
|
+
parsed.__xcss_cache_v === 3 &&
|
|
73
|
+
parsed.compressed === true &&
|
|
74
|
+
parsed.algorithm === 'deflate-raw' &&
|
|
75
|
+
parsed.encoding === 'base64' &&
|
|
76
|
+
typeof parsed.payload === 'string'
|
|
77
|
+
) {
|
|
78
|
+
var expandedStream = await decompressDeflateRawBase64(parsed.payload);
|
|
79
|
+
if (!expandedStream) return null;
|
|
80
|
+
parsed = JSON.parse(expandedStream);
|
|
81
|
+
} else if (parsed && parsed.__xcss_cache_v === 2 && parsed.compressed === true && typeof parsed.payload === 'string') {
|
|
82
|
+
var expanded = decompressLZW(parsed.payload);
|
|
83
|
+
if (!expanded) return null;
|
|
84
|
+
parsed = JSON.parse(expanded);
|
|
85
|
+
}
|
|
86
|
+
if (!parsed || !parsed.cssText) return null;
|
|
87
|
+
return parsed;
|
|
88
|
+
} catch (_error) {
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
try {
|
|
94
|
+
if (typeof window === 'undefined' || !window.localStorage) return;
|
|
95
|
+
|
|
96
|
+
var styleId = ${u};
|
|
97
|
+
var primaryKey = ${b};
|
|
98
|
+
var keys = primaryKey === 'xcss_cache_v1' ? [primaryKey] : [primaryKey, 'xcss_cache_v1'];
|
|
99
|
+
var payload = null;
|
|
100
|
+
|
|
101
|
+
for (var i = 0; i < keys.length; i++) {
|
|
102
|
+
var key = keys[i];
|
|
103
|
+
var raw = localStorage.getItem(key);
|
|
104
|
+
if (!raw) continue;
|
|
105
|
+
payload = await parseCache(raw);
|
|
106
|
+
if (!payload) {
|
|
107
|
+
localStorage.removeItem(key);
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
if (payload) break;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (!payload) return;
|
|
114
|
+
|
|
115
|
+
var styleEl = document.getElementById(styleId);
|
|
116
|
+
if (!styleEl) {
|
|
117
|
+
styleEl = document.createElement('style');
|
|
118
|
+
styleEl.id = styleId;
|
|
119
|
+
document.head.appendChild(styleEl);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
var css = '';
|
|
123
|
+
if (payload.cssText.root) css += payload.cssText.root + '\\n';
|
|
124
|
+
for (var k in payload.cssText) {
|
|
125
|
+
if (k !== 'root') css += (payload.cssText[k] || '') + '\\n';
|
|
126
|
+
}
|
|
127
|
+
styleEl.textContent = css;
|
|
128
|
+
} catch (_error) {}
|
|
129
|
+
})();
|
|
130
|
+
`.trim();return n?.compact?w.replace(/\s+/g," ").trim():w};var Te="__FWXCSS_SHARED__",Ot=()=>{let e=new WeakMap,t=null,n=typeof document<"u"?document:null,s=R=>{if(!R)return!1;let A=typeof Document<"u",x=typeof ShadowRoot<"u",X=A&&R instanceof Document,Z=x&&R instanceof ShadowRoot;return X||Z},i=()=>(t||(t=le.css().buildCss(void 0)),t),u=R=>le.css({base:"html,body{font-size:16px;padding:0;margin:0;}"}).buildCss(R),b=R=>{if(!R)return i();let A=e.get(R);return A||(A=u(R),e.set(R,A)),A};return{clsx:(...R)=>{let A,x=R[R.length-1];s(x)&&(A=x,R=R.slice(0,-1));let X=[],Z=K=>{if(K){if(typeof K=="string"||typeof K=="number"){X.push(String(K));return}if(Array.isArray(K)){K.forEach(Z);return}typeof K=="object"&&Object.keys(K).forEach(re=>{K[re]&&X.push(re)})}};return R.forEach(Z),b(A||n).clsx(X.join(" "))},setClsxRoot:R=>{n=R||(typeof document<"u"?document:null)},getCss:()=>i().getCssString()}},_e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:global,de=_e[Te]||Ot();_e[Te]||(_e[Te]=de);var Pt=de.clsx,$t=de.setClsxRoot,Xt=de.getCss;var Ae=le;typeof document<"u"&&(Ae.cssObserve(document),console.log("\u{1F680} fwxcss Auto-Observer Activated"));var Kt=Ae;0&&(module.exports={clsx,getBootloaderScript,getCss,setClsxRoot});
|
|
12
131
|
//# sourceMappingURL=index-auto.js.map
|