@fwkui/x-css 1.0.20 → 1.0.22
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 +17 -7
- package/dist/index-auto.js +31 -19
- package/dist/index-auto.js.map +1 -1
- package/dist/index-auto.mjs +31 -19
- package/dist/index-auto.mjs.map +1 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +31 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -263,7 +263,8 @@ export const fx = createSharedInstance({
|
|
|
263
263
|
styleId: 'fwkui',
|
|
264
264
|
version: 'v1',
|
|
265
265
|
compression: true,
|
|
266
|
-
debounceMs: 1000
|
|
266
|
+
debounceMs: 1000,
|
|
267
|
+
loadOnInit: true
|
|
267
268
|
}
|
|
268
269
|
});
|
|
269
270
|
|
|
@@ -314,7 +315,8 @@ xcss.cssObserve(document, {
|
|
|
314
315
|
styleId: 'fwkui',
|
|
315
316
|
version: 'v1',
|
|
316
317
|
compression: true,
|
|
317
|
-
debounceMs: 1000
|
|
318
|
+
debounceMs: 1000,
|
|
319
|
+
loadOnInit: true
|
|
318
320
|
}
|
|
319
321
|
});
|
|
320
322
|
```
|
|
@@ -473,8 +475,11 @@ import { getBootloaderScript } from '@fwkui/x-css';
|
|
|
473
475
|
const styleId = 'fwkui';
|
|
474
476
|
const version = 'v1';
|
|
475
477
|
|
|
476
|
-
const bootloaderScript = getBootloaderScript(styleId, version);
|
|
477
|
-
const bootloaderScriptCompact = getBootloaderScript(styleId, version, {
|
|
478
|
+
const bootloaderScript = getBootloaderScript(styleId, version, { loadOnInit: true });
|
|
479
|
+
const bootloaderScriptCompact = getBootloaderScript(styleId, version, {
|
|
480
|
+
compact: true,
|
|
481
|
+
loadOnInit: true
|
|
482
|
+
});
|
|
478
483
|
```
|
|
479
484
|
|
|
480
485
|
### Cấu trúc chèn vào `<head>` (khuyến nghị)
|
|
@@ -483,7 +488,7 @@ const bootloaderScriptCompact = getBootloaderScript(styleId, version, { compact:
|
|
|
483
488
|
<head>
|
|
484
489
|
<!-- 1) Bootloader từ cache: chạy sớm nhất để giảm FOUC -->
|
|
485
490
|
<script>
|
|
486
|
-
/* nội dung từ getBootloaderScript(styleId, version) */
|
|
491
|
+
/* nội dung từ getBootloaderScript(styleId, version, { loadOnInit: true }) */
|
|
487
492
|
</script>
|
|
488
493
|
|
|
489
494
|
<!-- 2) Bundle/module của app -->
|
|
@@ -510,7 +515,10 @@ import { getBootloaderScript } from '@fwkui/x-css';
|
|
|
510
515
|
|
|
511
516
|
const styleId = 'fwkui';
|
|
512
517
|
const version = 'v1';
|
|
513
|
-
const bootloaderScript = getBootloaderScript(styleId, version, {
|
|
518
|
+
const bootloaderScript = getBootloaderScript(styleId, version, {
|
|
519
|
+
compact: true,
|
|
520
|
+
loadOnInit: true
|
|
521
|
+
});
|
|
514
522
|
|
|
515
523
|
const html = `
|
|
516
524
|
<!doctype html>
|
|
@@ -528,8 +536,10 @@ Lưu ý:
|
|
|
528
536
|
1. Đồng bộ `styleId` + `version` giữa bootloader và cấu hình `xcss.css(...)`.
|
|
529
537
|
2. Script tạo từ `getBootloaderScript` ưu tiên `DecompressionStream` (cache deflate-raw) và fallback LZW.
|
|
530
538
|
3. Sau bootloader vẫn cần gọi `xcss.cssObserve(...)` như bình thường.
|
|
531
|
-
4.
|
|
539
|
+
4. Mặc định `loadOnInit` đang bật; muốn tắt hẳn load/save cache thì truyền `{ loadOnInit: false }`.
|
|
540
|
+
5. Dùng `{ compact: true }` khi muốn script trả về ở dạng nén gọn để nhúng HTML.
|
|
532
541
|
6. Nếu dữ liệu cache dưới key hiện tại bị lỗi/không decode được, engine sẽ tự xóa key đó để lần chạy sau lưu lại dữ liệu mới.
|
|
542
|
+
7. Cache runtime chỉ khởi tạo khi browser dùng được cả `localStorage` writable và `Web Locks`; thiếu một trong hai thì engine/bootloader sẽ bỏ qua load-save cache.
|
|
533
543
|
|
|
534
544
|
### Khi nào nên dùng `getBootloaderScript`
|
|
535
545
|
|
package/dist/index-auto.js
CHANGED
|
@@ -1,20 +1,30 @@
|
|
|
1
|
-
"use strict";var Te=Object.defineProperty;var Et=Object.getOwnPropertyDescriptor;var Rt=Object.getOwnPropertyNames;var It=Object.prototype.hasOwnProperty;var Tt=(e,t)=>{for(var r in t)Te(e,r,{get:t[r],enumerable:!0})},At=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Rt(t))!It.call(e,n)&&n!==r&&Te(e,n,{get:()=>t[n],enumerable:!(s=Et(t,n))||s.enumerable});return e};var _t=e=>At(Te({},"__esModule",{value:!0}),e);var mr={};Tt(mr,{clsx:()=>dr,createSharedClsx:()=>cr,createSharedInstance:()=>lr,default:()=>gr,getBootloaderScript:()=>ct,getCss:()=>pr,observe:()=>fr,ready:()=>br,setClsxRoot:()=>ur});module.exports=_t(mr);var Je=e=>(e=e||new Map,{all:e,on(t,r){let s=e.get(t);s?s.push(r):e.set(t,[r])},off(t,r){let s=e.get(t);s&&(r?s.splice(s.indexOf(r)>>>0,1):e.set(t,[]))},emit(t,r){let s=e.get(t);s&&s.slice().forEach(l=>{l(r)});let n=e.get("*");n&&n.slice().forEach(l=>{l(t,r)})}});function Ot(e,t,r){let s=0;for(let n=t;n<r;n++){let l=e.charCodeAt(n);if(l===91){s++;continue}if(l===93){s>0&&s--;continue}if(l===58&&s===0)return n}return-1}function Lt(e,t,r){let s=0;for(let n=r-1;n>=t;n--){let l=e.charCodeAt(n);if(l===93){s++;continue}if(l===91){s>0&&s--;continue}if(l===64&&s===0)return n}return-1}function Pt(e,t,r){let s=0;for(let n=t;n<r;n++){let l=e.charCodeAt(n);if(l===91){s++;continue}if(l===93){if(s===0)return!1;s--}}return s===0}function Dt(e){return e>=97&&e<=122}function pe(e){if(!e||e.length<2||!Pt(e,0,e.length))return null;let t=0,r=e.length,s="",n=Lt(e,t,r);n>t&&(s=e.substring(n+1,r),r=n);let l="",f="",u=Ot(e,t,r);if(u>0&&u<r){let A=e.substring(t,u);t=u+1,l=A}let y=t;for(;y<r;){let A=e.charCodeAt(y);if(A>=48&&A<=57)y++;else break}if(y>t&&(f=e.substring(t,y),t=y),t>=r||e.charCodeAt(t)===38)return null;if(e.charCodeAt(t)===91){let A=e.indexOf("]",t);if(A>t)return{mq:l,layer:f,prop:e.substring(t,A+1),val:"",selector:s}}let v=t;for(;v<r;){let A=e.charCodeAt(v);if(A===45||A===46){if(v+1<r){let C=e.charCodeAt(v+1);if(A===45&&C===45&&v>t||C>=48&&C<=57)break}v++;continue}if(!Dt(A))break;v++}if(v===t)return null;let X=e.substring(t,v),N=e.substring(v,r);return{mq:l,layer:f,prop:X,val:N,selector:s}}var Ge={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"},Ye={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"},M={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"}};M.ji=M.jc;M.js=M.jc;M.pc=M.jc;M.pi=M.jc;M.ps=M.jc;var jt={SHORT_PROPERTIES:Ge,COMMON_VALUES:Ye,SPECIFIC_VALUES:M},st=e=>{let t=typeof e?.styleId=="string"&&e.styleId.trim()?e.styleId.trim():"fwkui",r=typeof e?.version=="string"&&e.version.trim()?e.version.trim():"v1",s=e?.compression??!0,n=typeof e?.debounceMs=="number"&&e.debounceMs>=0?e.debounceMs:1e3,l=typeof e?.sizeLast=="number"&&Number.isFinite(e.sizeLast)&&e.sizeLast>=0?Math.floor(e.sizeLast):1e3;return{styleId:t,version:r,compression:s,debounceMs:n,sizeLast:l}},zt=e=>`${e.styleId}_cache_${e.version}`,Mt=e=>`${e.styleId}_ks_${e.version}`,Xt=e=>`${e.styleId}_bc_${e.version}`,ot=e=>{if(!e||typeof e!="object")return!1;let t=e;return t.__xcss_cache_v===2&&t.compressed===!0&&typeof t.payload=="string"},Ae=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"},it=()=>typeof CompressionStream<"u"&&typeof Blob<"u"&&typeof Response<"u",at=()=>typeof DecompressionStream<"u"&&typeof Blob<"u"&&typeof Response<"u",$t=e=>{if(typeof btoa=="function"){let r="";for(let n=0;n<e.length;n+=32768){let l=e.subarray(n,n+32768);for(let f=0;f<l.length;f++)r+=String.fromCharCode(l[f])}return btoa(r)}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")},Bt=e=>{if(typeof atob=="function"){let r=atob(e),s=new Uint8Array(r.length);for(let n=0;n<r.length;n++)s[n]=r.charCodeAt(n);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")},Kt=async e=>{if(!it())throw new Error("XCSS: CompressionStream is not supported");let t=new Blob([e]).stream().pipeThrough(new CompressionStream("deflate-raw")),r=await new Response(t).arrayBuffer();return $t(new Uint8Array(r))},Ut=async e=>{if(!at())throw new Error("XCSS: DecompressionStream is not supported");let t=Bt(e),r=new Uint8Array(t.length);r.set(t);let s=new Blob([r.buffer]).stream().pipeThrough(new DecompressionStream("deflate-raw"));return await new Response(s).text()},Nt=e=>{try{let t=JSON.parse(e);return Ae(t)}catch{return!1}},Vt=e=>{if(!e)return"";let t=new Map,r=[],s=256;for(let l=0;l<256;l++)t.set(String.fromCharCode(l),l);let n=e[0];for(let l=1;l<e.length;l++){let f=e[l],u=n+f;t.has(u)?n=u:(r.push(t.get(n)),t.set(u,s++),n=f)}return r.push(t.get(n)),r.map(l=>String.fromCharCode(l)).join("")},lt=e=>{if(!e)return"";let t=new Map,r=256,s="";for(let u=0;u<256;u++)t.set(u,String.fromCharCode(u));let n=e.split("").map(u=>u.charCodeAt(0)),l=n[0],f=t.get(l)||"";s=f;for(let u=1;u<n.length;u++){let y=n[u],v=t.get(y);v||(v=y===r?f+f[0]:""),s+=v,t.set(r++,f+v[0]),f=v}return s},Qe=e=>{if(!e||typeof e!="object")return null;let t=e,r=t.default&&typeof t.default=="object"?t.default:t,s=r.SHORT_PROPERTIES,n=r.COMMON_VALUES,l=r.SPECIFIC_VALUES;return!s||!n||!l||typeof s!="object"||typeof n!="object"||typeof l!="object"?null:{SHORT_PROPERTIES:s,COMMON_VALUES:n,SPECIFIC_VALUES:l}},et=e=>{if(!e||typeof e!="object")return null;let t=e,r=Array.isArray(t.entries)?t.entries:Array.isArray(t.k)?t.k:null;if(!r)return null;let s=r.filter(l=>Array.isArray(l)&&l.length===2&&typeof l[0]=="string"&&typeof l[1]=="string"),n=typeof t.sizeLast=="number"?t.sizeLast:typeof t.s=="number"?t.s:null;return n===null?null:{source:typeof t.source=="string"?t.source:"",sizeLast:n,entries:s}},Ht=(e,t)=>{let r=t;for(;r<e.length&&/\s/.test(e[r]);)r++;return r},Wt=(e,t)=>{let r=0,s=null,n=!1,l=!1,f=!1;for(let u=t;u<e.length;u++){let y=e[u],v=e[u+1];if(l){y===`
|
|
2
|
-
`&&(l=!1);continue}if(
|
|
3
|
-
`;)r++;continue}if(s==="/"&&n==="*"){for(r+=2;r<e.length;){if(e[r]==="*"&&e[r+1]==="/"){r+=2;break}r++}continue}break}return r},
|
|
4
|
-
`,r:"\r",t:" ",b:"\b",f:"\f",v:"\v","\\":"\\",'"':'"',"'":"'"}[
|
|
5
|
-
|
|
6
|
-
}`:
|
|
7
|
-
|
|
8
|
-
`:"")
|
|
9
|
-
`),
|
|
10
|
-
`:"")+W.join(
|
|
11
|
-
|
|
12
|
-
`:
|
|
13
|
-
`)
|
|
14
|
-
${d}
|
|
15
|
-
}`:d}).join(`
|
|
16
|
-
`)}};function $e(o){let a=new RegExp("^(\\[(?<p>[a-zA-Z]+)\\])$"),{p=""}=a.exec(o)?.groups??{};if(p&&s[p]&&Array.isArray(s[p])){let b=s[p],m=[],E=!0,k=g=>{let S=g.trim();if(!S)return null;let h=S.endsWith(";")?S.slice(0,-1).trim():S,$=h.indexOf(":");if($<=0||$>=h.length-1)return null;let R=h.slice(0,$).trim(),j=h.slice($+1).trim();return!R||!j||!/^(?:--[a-zA-Z0-9-_]+|-?[a-zA-Z][a-zA-Z0-9-]*)$/.test(R)?null:`${R}:${j}`};for(let g of b){if(typeof g!="string"){E=!1;break}let S=k(g);if(S){if(typeof CSS<"u"&&!CSS.supports(S)){E=!1;break}m.push(S);continue}E=!1;break}if(m.length>0&&E)return m.join(";")}return null}function Be(o,a){let p=$e(o+a);if(p)return p;if(!o||a===void 0)return null;let b=F[o],m=b||o,E=a[0],k=!1,g=a;if(E==="!"&&(k=!0,g=g.substring(1),E=g[0]),g.startsWith("--"))g="var("+g+")";else if(E==="["&&g.endsWith("]"))g=g.substring(1,g.length-1);else if(g.length>0){let R=g[0].toLowerCase()+g.substring(1),j=le[o]?.[R]||Ce[R];if(!j){let D=g.toLowerCase();j=le[o]?.[D]||Ce[D]}g=j||g}if(g=g.replace(/(';|;)/g,R=>R=="';"?";":" "),!g)return null;let S=g+(k?" !important":""),h=[m+":"+S];switch(m){case"mx":h=[`margin-left:${S}`,`margin-right:${S}`];break;case"my":h=[`margin-top:${S}`,`margin-bottom:${S}`];break;case"px":h=[`padding-left:${S}`,`padding-right:${S}`];break;case"py":h=[`padding-top:${S}`,`padding-bottom:${S}`];break;case"bdx":h=[`border-left:${S}`,`border-right:${S}`];break;case"bdy":h=[`border-top:${S}`,`border-bottom:${S}`];break}return!(typeof CSS<"u")||h.every(R=>CSS.supports(R))?h.join(";"):null}let ht=o=>{let a=0;for(let p=o.length-1;p>=0;p--){let b=o[p];if(b==="]"){a++;continue}if(b==="["){a>0&&a--;continue}if(b==="@"&&a===0)return{body:o.slice(0,p),selector:o.slice(p+1)}}return{body:o,selector:""}},yt=o=>{let a=[],p=0,b=0;for(let m=0;m<o.length;m++){let E=o[m];if(E==="["){b++;continue}if(E==="]"){b>0&&b--;continue}E==="&"&&b===0&&(a.push(o.slice(p,m)),p=m+1)}return a.push(o.slice(p)),a},ve=o=>{if(!o)return!0;let a=o.trim();if(!a)return!0;if(/[{}]/.test(a)||a==="#"||a==="("||a===")"||a===","||a===">"||a==="+"||a==="~"||a.startsWith("(")||a.startsWith(")"))return!1;let p=0;for(let b=0;b<a.length;b++){let m=a[b];if(m==="("){p++;continue}if(m===")"){if(p===0)return!1;p--}}return p===0};function Ke(o){if(!Me(o))return null;let a=u?o.slice(u.length):o,p=typeof CSS<"u"?CSS.escape(o):St(o);if(a.includes("&")&&!a.startsWith("&")){let{body:D,selector:re}=ht(a),ne=yt(D).map(L=>L.trim()).filter(L=>L.length>0).map(L=>u&&L.startsWith(u)?L.slice(u.length):L);if(ne.length>1){let L="",q="",V=re,Z=!1,J=[];for(let _ of ne){let O=V?`${_}@${V}`:_,T=pe(O);if(!T||!he(T.mq)||!T.prop.startsWith("[")&&!Se(T.prop))return null;Z?(!T.mq&&L&&(T.mq=L),!T.layer&&q&&(T.layer=q)):(L=T.mq||"",q=T.layer||"",Z=!0);let fe=T.mq||"",se=T.layer||"",oe=T.selector||"";if(fe!==L||se!==q||oe!==V)return null;let G=Be(T.prop,T.val);if(!G)return null;J.push(G)}if(J.length===0)return null;let H=V.replace(/(';|;)/g,_=>_=="';"?";":" "),B=`selector(${p}${H})`;if(H){if(typeof CSS<"u"){if(!CSS.supports(B))return null}else if(!ve(H))return null}return{media:L||"default",layer:q||"0",className:p,property:J.join(";"),selector:H,cssRules:`.${p}${H}{${J.join(";")}}`}}}let b=pe(a);if(!b||!he(b.mq)||!b.prop.startsWith("[")&&!Se(b.prop))return null;let{mq:m="default",layer:E="0",prop:k,val:g,selector:S=""}=b,h=[],$=Be(k,g);if($&&h.push($),h.length===0)return null;let R=S.replace(/(';|;)/g,D=>D=="';"?";":" "),j=`selector(${p}${R})`;if(R){if(typeof CSS<"u"){if(!CSS.supports(j))return null}else if(!ve(R))return null}return{media:m||"default",layer:E||"0",className:p,property:h.join(";"),selector:R,cssRules:`.${p}${R}{${h.join(";")}}`}}let St=o=>o.replace(/([^\w-])/g,"\\$1"),ke=o=>{var a=[...o?.classList||[]].filter(p=>{if(p){let b=p.charCodeAt(0)==45?p.charCodeAt(1):p.charCodeAt(0);return b>=97&&b<=122||b>=48&&b<=57}return!1});return o?.children?.length>0&&Array.from(o?.children).forEach(p=>{a.push(...ke(p))}),a.flat(1/0)},wt=(o,a)=>{if(typeof a!="function")throw new Error("Callback is not a function");if(!o)return;let p;"documentElement"in o?p=o.documentElement:(o instanceof Element||"tagName"in o||"host"in o)&&(p=o),p&&(p instanceof Element&&a(ke(p)),typeof MutationObserver<"u"&&new MutationObserver(b=>{for(let m of b)if(m.type=="attributes"&&m.attributeName=="class"){if(m.target.nodeType==1){let E=String(m.target?.className??""),k=String(m?.oldValue??"");if(E||k){let g=E.split(" ").map(h=>h.trim()).filter(h=>h),S=k.split(" ").map(h=>h.trim()).filter(h=>h);g=g.filter(h=>!S.includes(h)),typeof a=="function"&&a([...new Set(g)])}}}else if(m.type=="childList"&&m.addedNodes.length>0){let E=[...m.addedNodes].filter(k=>k.nodeType==1).map(k=>ke(k)).flat(1/0);typeof a=="function"&&a([...new Set(E)])}}).observe(p,{attributes:!0,attributeOldValue:!0,attributeFilter:["class"],childList:!0,subtree:!0}))};return{buildCss:mt,exportCache:()=>typeof window>"u"||!window.localStorage?te:rt(window.localStorage.getItem(N))||te,ready:xe}},rr=(e,t)=>{_e(t).buildCss(e).observe()},nr=(e,t)=>_e(t).buildCss(e).clsx,Oe={css:_e,cssObserve:rr,clsx:nr};var sr=(e,t)=>(e=e||"fwkui",t=t||"v1",`${e}_cache_${t}`),ct=(e="fwkui",t="v1",r)=>{let s=String(e||"").trim()||"fwkui",n=sr(s,t),l=JSON.stringify(s),f=JSON.stringify(n),u=`
|
|
1
|
+
"use strict";var Xe=Object.defineProperty;var $t=Object.getOwnPropertyDescriptor;var Ut=Object.getOwnPropertyNames;var Nt=Object.prototype.hasOwnProperty;var Bt=(e,t)=>{for(var r in t)Xe(e,r,{get:t[r],enumerable:!0})},Vt=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ut(t))!Nt.call(e,n)&&n!==r&&Xe(e,n,{get:()=>t[n],enumerable:!(s=$t(t,n))||s.enumerable});return e};var Ht=e=>Vt(Xe({},"__esModule",{value:!0}),e);var Xr={};Bt(Xr,{clsx:()=>zr,createSharedClsx:()=>Tr,createSharedInstance:()=>Lr,default:()=>Kr,getBootloaderScript:()=>St,getCss:()=>jr,observe:()=>Pr,ready:()=>Mr,setClsxRoot:()=>Dr});module.exports=Ht(Xr);var ot=e=>(e=e||new Map,{all:e,on(t,r){let s=e.get(t);s?s.push(r):e.set(t,[r])},off(t,r){let s=e.get(t);s&&(r?s.splice(s.indexOf(r)>>>0,1):e.set(t,[]))},emit(t,r){let s=e.get(t);s&&s.slice().forEach(l=>{l(r)});let n=e.get("*");n&&n.slice().forEach(l=>{l(t,r)})}});function Wt(e,t,r){let s=0;for(let n=t;n<r;n++){let l=e.charCodeAt(n);if(l===91){s++;continue}if(l===93){s>0&&s--;continue}if(l===58&&s===0)return n}return-1}function Ft(e,t,r){let s=0;for(let n=r-1;n>=t;n--){let l=e.charCodeAt(n);if(l===93){s++;continue}if(l===91){s>0&&s--;continue}if(l===64&&s===0)return n}return-1}function qt(e,t,r){let s=0;for(let n=t;n<r;n++){let l=e.charCodeAt(n);if(l===91){s++;continue}if(l===93){if(s===0)return!1;s--}}return s===0}function Jt(e){return e>=97&&e<=122}function ye(e){if(!e||e.length<2||!qt(e,0,e.length))return null;let t=0,r=e.length,s="",n=Ft(e,t,r);n>t&&(s=e.substring(n+1,r),r=n);let l="",d="",u=Wt(e,t,r);if(u>0&&u<r){let L=e.substring(t,u);t=u+1,l=L}let S=t;for(;S<r;){let L=e.charCodeAt(S);if(L>=48&&L<=57)S++;else break}if(S>t&&(d=e.substring(t,S),t=S),t>=r||e.charCodeAt(t)===38)return null;if(e.charCodeAt(t)===91){let L=e.indexOf("]",t);if(L>t)return{mq:l,layer:d,prop:e.substring(t,L+1),val:"",selector:s}}let x=t;for(;x<r;){let L=e.charCodeAt(x);if(L===45||L===46){if(x+1<r){let k=e.charCodeAt(x+1);if(L===45&&k===45&&x>t||k>=48&&k<=57)break}x++;continue}if(!Jt(L))break;x++}if(x===t)return null;let T=e.substring(t,x),$=e.substring(x,r);return{mq:l,layer:d,prop:T,val:$,selector:s}}var it={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"},at={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"},X={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"}};X.ji=X.jc;X.js=X.jc;X.pc=X.jc;X.pi=X.jc;X.ps=X.jc;var Zt={SHORT_PROPERTIES:it,COMMON_VALUES:at,SPECIFIC_VALUES:X},pt=e=>{let t=typeof e?.styleId=="string"&&e.styleId.trim()?e.styleId.trim():"fwkui",r=typeof e?.version=="string"&&e.version.trim()?e.version.trim():"v1",s=e?.compression??!0,n=typeof e?.debounceMs=="number"&&e.debounceMs>=0?e.debounceMs:1e3,l=typeof e?.sizeLast=="number"&&Number.isFinite(e.sizeLast)&&e.sizeLast>=0?Math.floor(e.sizeLast):1e3,d=e?.loadOnInit??!0;return{styleId:t,version:r,compression:s,debounceMs:n,sizeLast:l,loadOnInit:d}},Yt=e=>`${e.styleId}_cache_${e.version}`,Gt=e=>`${e.styleId}_ks_${e.version}`,Qt=e=>`${e.styleId}_bc_${e.version}`,er=e=>`${e.styleId}_kr_${e.version}`,tr=e=>`${e.styleId}_kr_lock_${e.version}`,lt=(e,t)=>{if(!e)return{sizeLast:0,entries:[]};try{let r=e.getItem(t);if(!r)return{sizeLast:0,entries:[]};let s=JSON.parse(r),n=typeof s.sizeLast=="number"?s.sizeLast:typeof s.s=="number"?s.s:0,d=(Array.isArray(s.entries)?s.entries:Array.isArray(s.e)?s.e:[]).filter(u=>Array.isArray(u)&&u.length===2&&typeof u[0]=="string"&&typeof u[1]=="string");return{sizeLast:Number.isFinite(n)&&n>=0?Math.floor(n):0,entries:d}}catch{return{sizeLast:0,entries:[]}}},rr=(e,t,r)=>{if(e)try{e.setItem(t,JSON.stringify({s:r.sizeLast,e:r.entries}))}catch{}},nr=()=>{if(typeof window>"u"||typeof window.localStorage>"u")return!1;try{let e="__xcss_cache_probe__";return window.localStorage.setItem(e,"1"),window.localStorage.removeItem(e),!0}catch{return!1}},gt=()=>typeof navigator<"u"&&typeof navigator.locks<"u"&&typeof navigator.locks.request=="function",sr=()=>nr()&>(),bt=e=>{if(!e||typeof e!="object")return!1;let t=e;return t.__xcss_cache_v===2&&t.compressed===!0&&typeof t.payload=="string"},$e=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"},mt=()=>typeof CompressionStream<"u"&&typeof Blob<"u"&&typeof Response<"u",yt=()=>typeof DecompressionStream<"u"&&typeof Blob<"u"&&typeof Response<"u",or=e=>{if(typeof btoa=="function"){let r="";for(let n=0;n<e.length;n+=32768){let l=e.subarray(n,n+32768);for(let d=0;d<l.length;d++)r+=String.fromCharCode(l[d])}return btoa(r)}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")},ir=e=>{if(typeof atob=="function"){let r=atob(e),s=new Uint8Array(r.length);for(let n=0;n<r.length;n++)s[n]=r.charCodeAt(n);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")},ar=async e=>{if(!mt())throw new Error("XCSS: CompressionStream is not supported");let t=new Blob([e]).stream().pipeThrough(new CompressionStream("deflate-raw")),r=await new Response(t).arrayBuffer();return or(new Uint8Array(r))},lr=async e=>{if(!yt())throw new Error("XCSS: DecompressionStream is not supported");let t=ir(e),r=new Uint8Array(t.length);r.set(t);let s=new Blob([r.buffer]).stream().pipeThrough(new DecompressionStream("deflate-raw"));return await new Response(s).text()},cr=e=>{try{let t=JSON.parse(e);return $e(t)}catch{return!1}},dr=e=>{if(!e)return"";let t=new Map,r=[],s=256;for(let l=0;l<256;l++)t.set(String.fromCharCode(l),l);let n=e[0];for(let l=1;l<e.length;l++){let d=e[l],u=n+d;t.has(u)?n=u:(r.push(t.get(n)),t.set(u,s++),n=d)}return r.push(t.get(n)),r.map(l=>String.fromCharCode(l)).join("")},ht=e=>{if(!e)return"";let t=new Map,r=256,s="";for(let u=0;u<256;u++)t.set(u,String.fromCharCode(u));let n=e.split("").map(u=>u.charCodeAt(0)),l=n[0],d=t.get(l)||"";s=d;for(let u=1;u<n.length;u++){let S=n[u],x=t.get(S);x||(x=S===r?d+d[0]:""),s+=x,t.set(r++,d+x[0]),d=x}return s},ct=e=>{if(!e||typeof e!="object")return null;let t=e,r=t.default&&typeof t.default=="object"?t.default:t,s=r.SHORT_PROPERTIES,n=r.COMMON_VALUES,l=r.SPECIFIC_VALUES;return!s||!n||!l||typeof s!="object"||typeof n!="object"||typeof l!="object"?null:{SHORT_PROPERTIES:s,COMMON_VALUES:n,SPECIFIC_VALUES:l}},dt=e=>{if(!e||typeof e!="object")return null;let t=e,r=Array.isArray(t.entries)?t.entries:Array.isArray(t.k)?t.k:null;if(!r)return null;let s=r.filter(l=>Array.isArray(l)&&l.length===2&&typeof l[0]=="string"&&typeof l[1]=="string"),n=typeof t.sizeLast=="number"?t.sizeLast:typeof t.s=="number"?t.s:null;return n===null?null:{source:typeof t.source=="string"?t.source:"",sizeLast:n,entries:s}},fr=(e,t)=>{let r=t;for(;r<e.length&&/\s/.test(e[r]);)r++;return r},ur=(e,t)=>{let r=0,s=null,n=!1,l=!1,d=!1;for(let u=t;u<e.length;u++){let S=e[u],x=e[u+1];if(l){S===`
|
|
2
|
+
`&&(l=!1);continue}if(d){S==="*"&&x==="/"&&(d=!1,u++);continue}if(s){if(n){n=!1;continue}if(S==="\\"){n=!0;continue}S===s&&(s=null);continue}if(S==="/"&&x==="/"){l=!0,u++;continue}if(S==="/"&&x==="*"){d=!0,u++;continue}if(S==='"'||S==="'"||S==="`"){s=S;continue}if(S==="{"){r++;continue}if(S==="}"&&(r--,r===0))return u}return-1},he=(e,t)=>{let r=e.indexOf(t);if(r===-1)return null;let s=fr(e,r+t.length);if(e[s]!=="{")return null;let n=ur(e,s);return n===-1?null:e.slice(s,n+1)},te=(e,t)=>{let r=t;for(;r<e.length;){let s=e[r],n=e[r+1];if(/\s/.test(s)){r++;continue}if(s==="/"&&n==="/"){for(r+=2;r<e.length&&e[r]!==`
|
|
3
|
+
`;)r++;continue}if(s==="/"&&n==="*"){for(r+=2;r<e.length;){if(e[r]==="*"&&e[r+1]==="/"){r+=2;break}r++}continue}break}return r},ft=(e,t)=>{let r=e[t];if(r!=='"'&&r!=="'")return null;let s="",n=t+1;for(;n<e.length;){let l=e[n];if(l==="\\"){if(n++,n>=e.length)return null;let d=e[n];s+={n:`
|
|
4
|
+
`,r:"\r",t:" ",b:"\b",f:"\f",v:"\v","\\":"\\",'"':'"',"'":"'"}[d]??d,n++;continue}if(l===r)return{value:s,end:n+1};s+=l,n++}return null},pr=(e,t)=>{let r=e[t];if(!r||!/[A-Za-z_$]/.test(r))return null;let s=t+1;for(;s<e.length&&/[A-Za-z0-9_$]/.test(e[s]);)s++;return{value:e.slice(t,s),end:s}},Se=e=>{let t=(n,l)=>{let d=te(n,l);return n[d]==="{"?r(n,d):ft(n,d)},r=(n,l)=>{let d=te(n,l);if(n[d]!=="{")return null;d++;let u={};for(;d<n.length;){if(d=te(n,d),n[d]==="}")return{value:u,end:d+1};let S=ft(n,d)||pr(n,d);if(!S||(d=te(n,S.end),n[d]!==":"))return null;d++;let x=t(n,d);if(!x)return null;if(u[S.value]=x.value,d=te(n,x.end),n[d]===","){d++;continue}return n[d]==="}"?{value:u,end:d+1}:null}return null},s=r(e,0);return s&&te(e,s.end)===e.length?s.value:null},gr=e=>{let t=he(e,"export const SHORT_PROPERTIES ="),r=he(e,"export const COMMON_VALUES ="),s=he(e,"export const SPECIFIC_VALUES =");if(t&&r&&s)return ct({SHORT_PROPERTIES:Se(t),COMMON_VALUES:Se(r),SPECIFIC_VALUES:Se(s)});let n=he(e,"export default");return n?ct(Se(n)):null},br=async e=>{let t=typeof process<"u"?process:null;if(!t||typeof t.getBuiltinModule!="function")return null;let r=e.startsWith("file:"),s=e.startsWith("/")||e.startsWith("./")||e.startsWith("../")||/^[A-Za-z]:[\\/]/.test(e);if(!r&&!s)return null;let n=t.getBuiltinModule("node:fs/promises");return n?.readFile?n.readFile(r?new URL(e):e,"utf8"):null},mr=async e=>{let t=await br(e);if(typeof t=="string")return t;if(typeof fetch=="function"){let r=await fetch(e);if(!r.ok)throw new Error(`XCSS: Failed to fetch dictionary module: ${r.status}`);return r.text()}throw new Error("XCSS: fetch is not supported in this runtime")},yr=async e=>{let t=await mr(e),r=gr(t);if(!r)throw new Error(hr);return r},hr="XCSS: dictionary module must export plain-object SHORT_PROPERTIES, COMMON_VALUES and SPECIFIC_VALUES",Sr=(e,t)=>{if(!e||typeof document>"u")return;t=t||"fwkui";let r=Array.from({length:24},(s,n)=>"l"+n);if(!e.querySelector('style[id="'+t+'"]')){let s=document.createElement("style");s.id=t;let n=`@layer ${r.join(", ")};`;if(s.textContent=n,!(e instanceof ShadowRoot))document.head.append(s);else try{e.prepend(s)}catch{e.appendChild(s)}}},wr=e=>{let t=Array.isArray(e.excludes)?e.excludes:[],r=pt(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:r}),n=0;if(s.length===0)return n.toString();for(let l=0;l<s.length;l++){let d=s.charCodeAt(l);n=(n<<5)-n+d,n|=0}return n.toString()},ut=e=>{if(!e)return null;try{let t=JSON.parse(e);if(bt(t)){let r=ht(t.payload);return r?JSON.parse(r):null}return $e(t)?null:t}catch{return null}},Cr=async e=>{if(!e)return null;try{let t=JSON.parse(e);if(bt(t)){let r=ht(t.payload);return r?JSON.parse(r):null}if($e(t)){let r=await lr(t.payload);return r?JSON.parse(r):null}return t}catch{return null}},xr=(e,t)=>{if(e==="root")return t;let r=/@media[^{]+\{\n?([\s\S]+)\n?\}/.exec(t);return r&&r[1]?r[1].trim():t},vr=e=>Array.isArray(e)?e.join(`
|
|
5
|
+
`):e||"",kr=(e,t)=>e?!t||t===e?e:t.startsWith(e)?t:`${e}
|
|
6
|
+
${t}`:t,Ue=(e={base:"",aliases:{},excludes:[],excludePrefixes:[],breakpoints:[],theme:{},prefix:"",dictionaryImport:!0,cache:{styleId:"fwkui",version:"v1",compression:!0,debounceMs:1e3,sizeLast:1e3,loadOnInit:!0}})=>{let{base:t=null,breakpoints:r=[],aliases:s={},theme:n={},excludes:l=[],excludePrefixes:d=[],prefix:u="",dictionaryImport:S=!0,cache:x={}}=e||{};Array.isArray(r)||(r=[]),Array.isArray(l)||(l=[]),Array.isArray(d)||(d=[]),(!s||typeof s!="object")&&(s={}),(!n||typeof n!="object")&&(n={});let T=pt(x),$=Yt(T),L=Gt(T),k=Qt(T),D=l,ne=d.filter(i=>typeof i=="string").map(i=>i.trim()).filter(i=>i.length>0),we=i=>{let a=i.replace(/[.+?^${}()|[\]\\]/g,"\\$&");return new RegExp("^"+a.replace(/\*/g,".*")+"$")},Fe=D.filter(i=>typeof i=="string").map(i=>i.trim()).filter(i=>i.length>0).map(i=>{if(i.includes("*")){let a=we(i);return p=>a.test(p)}return a=>a===i}),wt=i=>ne.some(a=>i.startsWith(a))?!0:Fe.some(a=>a(i)),qe=i=>!(wt(i)||u&&!i.startsWith(u)),Ct=["default","xs","sm","md","lg","xl","2xl","sma","mda","lga","xla"],xt=r.filter(i=>!!i&&typeof i=="object"&&!Array.isArray(i)).map(i=>Object.keys(i)[0]).filter(i=>typeof i=="string"&&i.length>0),vt=new Set([...Ct,...xt]),Ce=i=>!i||vt.has(i),kt=S!==!1,Et=new Set(["mx","my","px","py","bdx","bdy"]),xe=new Set,ve=i=>i?!kt||!Y||Object.keys(Y).length===0?!0:!!Y[i]||Et.has(i)||xe.has(i):!1,Y={},ce={},ke={},Ee={},Je=()=>{Ee={...ke,...n}},de=i=>{if(!i){Y={},ce={},ke={},xe=new Set,Je();return}Y=i.SHORT_PROPERTIES,ce=i.SPECIFIC_VALUES,ke=i.COMMON_VALUES,xe=new Set(Object.values(Y)),Je()},fe=!0,Re=Promise.resolve();S===!1?de(null):typeof S=="string"?(fe=!1,de(null),Re=yr(S).then(i=>{de(i)}).catch(i=>{console.warn("XCSS: Failed to import dictionary from URL",i)}).finally(()=>{fe=!0})):de(Zt);let se=null,Rt=(i=typeof document<"u"?document:void 0)=>{let a=typeof window<"u"&&typeof document<"u",p=a?window:null,w=p?.localStorage||null,E=a&&sr(),h=T.loadOnInit&&E,C=h?w:null,b=null,v=vr(t);i&&(b="getRootNode"in i?i.getRootNode():i);let y=new Map,M=new Map,R=new Set,P=(o,c)=>{y.set(o,c),M.set(c,o),R.add(c)},B=o=>M.get(o)||o,oe=er(T),ue=tr(T),A=T.sizeLast,U=new Set,V=!1,H=null,W=!0,F=`xcss_${Math.random().toString(36).slice(2)}${Date.now().toString(36)}`,Q=[],q=!1,J=null,I=o=>{typeof o=="number"&&Number.isFinite(o)&&o>A&&(A=o)},ie=o=>{o&&o.forEach(([c,f])=>{let g=y.get(c);g!==f&&(g||R.has(f)&&M.get(f)!==c||P(c,f))})};if(h){let o=lt(C,oe);I(o.sizeLast),ie(o.entries)}let pe=o=>{o&&(o.source&&o.source===F||(I(o.sizeLast),o.entries.forEach(([c,f])=>{let g=y.get(c);g!==f&&(g||R.has(f)||P(c,f))})))},Ae=()=>{if(q=!1,!a||Q.length===0)return;let o={source:F,sizeLast:A,entries:Q.splice(0,Q.length)};if(J)try{J.postMessage(o);return}catch{J=null}if(C)try{C.setItem(L,JSON.stringify(o))}catch{}},ae=o=>{!a||!h||(Q.push(o),!q&&(q=!0,queueMicrotask(Ae)))},Lt=o=>{let c;do c="D"+(A++).toString(32).toUpperCase();while(R.has(c));return P(o,c),c},Tt=async o=>{if(!h||!C||o.length===0)return;let c=()=>{let g=lt(C,oe),m=new Map(g.entries),O=new Set(g.entries.map(([,z])=>z));I(g.sizeLast),ie(g.entries);let _=Math.max(A,g.sizeLast,T.sizeLast),j=[];return o.forEach(z=>{if(y.has(z))return;let ee=m.get(z);if(ee){P(z,ee);return}let K;do K="D"+(_++).toString(32).toUpperCase();while(O.has(K)||R.has(K));m.set(z,K),O.add(K),j.push([z,K]),P(z,K)}),I(_),j.length===0?[]:(rr(C,oe,{sizeLast:_,entries:[...g.entries,...j]}),j)},f=[];if(gt())try{await navigator.locks.request(ue,async()=>{f=c()})}catch{f=c()}else f=c();f.length!==0&&(f.forEach(g=>ae(g)),Ke(f.map(([g])=>g)),je())},zt=async()=>{if(!(!h||!a))return H||(H=(async()=>{for(;U.size>0;){let o=Array.from(U);U.clear(),await Tt(o)}})().finally(()=>{H=null}),H)},Pt=o=>{!h||!a||(U.add(o),!V&&(V=!0,queueMicrotask(()=>{V=!1,zt()})))};if(a&&b&&Sr(b,T.styleId),h&&a&&typeof BroadcastChannel<"u")try{J=new BroadcastChannel(k),J.addEventListener("message",o=>{pe(dt(o.data))})}catch{J=null}let Oe=ot(),ge=[{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)"},...r],Qe=ge.filter((o,c)=>ge.findLastIndex(f=>Object.keys(f)[0]==Object.keys(o)[0])==c),Le=Qe.map(o=>Object.keys(o)[0]),Z={},G={},N={root:""},Dt={root:[]},jt={root:!1},Te=wr(e),ze=null,Pe=0,be=!1,me=null,le=null,De=o=>{try{C?.setItem($,o)}catch(c){console.warn("XCSS: Failed to save cache",c)}},et=o=>{!a||!C||typeof o=="string"&&C.getItem($)!==o||(C.removeItem($),C.removeItem(L))},Mt=o=>{if(!h||!a||!C)return;se=o;let c=++Pe;try{let f=JSON.stringify(o),g=()=>{let m={__xcss_cache_v:2,compressed:!0,payload:dr(f)};De(JSON.stringify(m))};if(!T.compression){De(f);return}if(mt()&&yt()){ar(f).then(m=>{if(c!==Pe)return;De(JSON.stringify({__xcss_cache_v:3,compressed:!0,algorithm:"deflate-raw",encoding:"base64",payload:m}))}).catch(()=>{c===Pe&&g()});return}g()}catch(f){console.warn("XCSS: Failed to save cache",f)}},je=()=>{!a||!h||(ze&&clearTimeout(ze),ze=setTimeout(()=>{let o={};for(let g in Z)o[g]=Array.from(Z[g]);let c={};Object.keys(N).forEach(g=>{if(g==="root")c[g]=N[g];else{let m=ge.find(O=>Object.keys(O)[0]===g)?.[g];m&&N[g]?c[g]=`@media ${m} {
|
|
7
|
+
${N[g]}
|
|
8
|
+
}`:c[g]=N[g]||""}});let f={configHash:Te,cssText:c,rulesSet:o,keys:Array.from(y.entries()),sizeLast:A};Mt(f)},T.debounceMs))};if(h&&a&&C)try{let o=C.getItem($);if(o){let c=ut(o);c?c.configHash!==Te?C.removeItem($):(me=c,be=!0,se=c):cr(o)?le={raw:o}:C.removeItem($)}}catch(o){console.error(o)}a&&(G.root=new CSSStyleSheet);let Me=(o,c)=>{N[o]=c,a&&G[o]&&G[o].replaceSync(c)};Le.forEach(o=>{if(Z[o]=new Set,a){let c=Qe.find(f=>Object.keys(f)[0]==o)?.[o]||"";G[o]=new CSSStyleSheet({media:c})}N[o]="",Dt[o]=[],jt[o]=!1}),Me("root",v);let tt=()=>{if(!b)return;let o=b.querySelector(`style[id="${T.styleId}"]`);o&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{o.remove()})})},rt=o=>{o.keys&&ie(o.keys),I(o.sizeLast),["root",...Le].forEach(f=>{let g=Z[f]||new Set,m=o.rulesSet?.[f]||[],O=new Set([...m,...Array.from(g)]);if(Z[f]=O,f==="root"){let z=typeof o.cssText?.root=="string"?o.cssText.root:"",ee=kr(v,z);Me("root",ee);return}let _=Array.from(O).join(`
|
|
9
|
+
`),j=typeof o.cssText?.[f]=="string"?xr(f,o.cssText[f]):"";Me(f,_||j)}),se=o,tt()};if(be&&me&&rt(me),a&&b?.adoptedStyleSheets){let o=b.adoptedStyleSheets,c=["root",...Le].map(f=>G[f]).filter(f=>f&&!o.includes(f));c.length>0&&(b.adoptedStyleSheets=[...o,...c])}h||tt(),h&&a&&C&&le&&!be&&(async()=>{let o=await Cr(le.raw);if(!o){et(le.raw);return}if(o.configHash!==Te){et(le.raw);return}be=!0,me=o,rt(o)})(),h&&a&&p?.addEventListener&&p.addEventListener("storage",o=>{if(o.key===L&&o.newValue)try{pe(dt(JSON.parse(o.newValue)))}catch{}});let Kt=(o,c,f)=>{try{o.insertRule(c,o.cssRules.length)}catch{try{o.replaceSync(f)}catch{}}},Xt=(o,c)=>{let{media:f,property:g,selector:m,layer:O,className:_}=c,j=N;O=Number(O)||0;let z=y.get(o),ee=z?`.${z}${m}`:`.${_}${m}`;var K=`@layer l${O}{${ee}{${g}}}`;Z[f]||(Z[f]=new Set);let st=Z[f];st.has(K)||(st.add(K),j[f]+=(j[f]?`
|
|
10
|
+
`:"")+K,a&&G[f]&&Kt(G[f],K,j[f]),je())},nt=o=>{o.forEach(c=>{let f=B(c),g=Ge(f);g&&Xt(f,g)})},Ke=o=>{if(o.length===0)return;let c=()=>nt(o);fe?c():Re.then(c)};return Oe.on("observeDom",Ke),{clsx:(...o)=>{let c=o.map(m=>Array.isArray(m)?m:[m]).flat(1/0).map(m=>typeof m=="string"?m.split(/(\s|\t)+/g):[]).flat(1/0);c=c.filter(m=>typeof m=="string"&&m.trim()),c=[...new Set(c)];let f=m=>{if(!qe(m))return!1;if(fe)return!!Ge(m);let O=u?m.slice(u.length):m,_=ye(O);if(!_||!Ce(_.mq))return!1;let j=(_.selector||"").replace(/(';|;)/g,z=>z=="';"?";":" ");return j&&!Ie(j)?!1:_.prop.startsWith("[")?!!Ze(_.prop+_.val):ve(_.prop)?(_.prop==="&",_.val.length>0):!1},g=c.map(m=>{let O=m;if(y.has(m))O=y.get(m);else if(f(m))if(h&&a)Pt(m);else{let _=Lt(m);ae([m,_]),je(),O=_}return O});return!a||W?Oe.emit("observeDom",c):queueMicrotask(()=>Oe.emit("observeDom",c)),g.join(" ")},observe:()=>{!a||!b||(Ot(b,o=>{W?nt(o):Ke(o)}),W=!1)},getCssString:()=>Object.entries(N).map(([o,c])=>{if(!c)return"";if(o==="root"||o==="default")return c;let f=ge.find(g=>Object.keys(g)[0]===o)?.[o];return f?`@media ${f} {
|
|
11
|
+
${c}
|
|
12
|
+
}`:c}).join(`
|
|
13
|
+
`)}};function Ze(i){let a=new RegExp("^(\\[(?<p>[a-zA-Z]+)\\])$"),{p=""}=a.exec(i)?.groups??{};if(p&&s[p]&&Array.isArray(s[p])){let w=s[p],E=[],h=!0,C=b=>{let v=b.trim();if(!v)return null;let y=v.endsWith(";")?v.slice(0,-1).trim():v,M=y.indexOf(":");if(M<=0||M>=y.length-1)return null;let R=y.slice(0,M).trim(),P=y.slice(M+1).trim();return!R||!P||!/^(?:--[a-zA-Z0-9-_]+|-?[a-zA-Z][a-zA-Z0-9-]*)$/.test(R)?null:`${R}:${P}`};for(let b of w){if(typeof b!="string"){h=!1;break}let v=C(b);if(v){if(typeof CSS<"u"&&!CSS.supports(v)){h=!1;break}E.push(v);continue}h=!1;break}if(E.length>0&&h)return E.join(";")}return null}function Ye(i,a){let p=Ze(i+a);if(p)return p;if(!i||a===void 0)return null;let w=Y[i],E=w||i,h=a[0],C=!1,b=a;if(h==="!"&&(C=!0,b=b.substring(1),h=b[0]),b.startsWith("--"))b="var("+b+")";else if(h==="["&&b.endsWith("]"))b=b.substring(1,b.length-1);else if(b.length>0){let R=b[0].toLowerCase()+b.substring(1),P=ce[i]?.[R]||Ee[R];if(!P){let B=b.toLowerCase();P=ce[i]?.[B]||Ee[B]}b=P||b}if(b=b.replace(/(';|;)/g,R=>R=="';"?";":" "),!b)return null;let v=b+(C?" !important":""),y=[E+":"+v];switch(E){case"mx":y=[`margin-left:${v}`,`margin-right:${v}`];break;case"my":y=[`margin-top:${v}`,`margin-bottom:${v}`];break;case"px":y=[`padding-left:${v}`,`padding-right:${v}`];break;case"py":y=[`padding-top:${v}`,`padding-bottom:${v}`];break;case"bdx":y=[`border-left:${v}`,`border-right:${v}`];break;case"bdy":y=[`border-top:${v}`,`border-bottom:${v}`];break}return!(typeof CSS<"u")||y.every(R=>CSS.supports(R))?y.join(";"):null}let It=i=>{let a=0;for(let p=i.length-1;p>=0;p--){let w=i[p];if(w==="]"){a++;continue}if(w==="["){a>0&&a--;continue}if(w==="@"&&a===0)return{body:i.slice(0,p),selector:i.slice(p+1)}}return{body:i,selector:""}},_t=i=>{let a=[],p=0,w=0;for(let E=0;E<i.length;E++){let h=i[E];if(h==="["){w++;continue}if(h==="]"){w>0&&w--;continue}h==="&"&&w===0&&(a.push(i.slice(p,E)),p=E+1)}return a.push(i.slice(p)),a},Ie=i=>{if(!i)return!0;let a=i.trim();if(!a)return!0;if(/[{}]/.test(a)||a==="#"||a==="("||a===")"||a===","||a===">"||a==="+"||a==="~"||a.startsWith("(")||a.startsWith(")"))return!1;let p=0;for(let w=0;w<a.length;w++){let E=a[w];if(E==="("){p++;continue}if(E===")"){if(p===0)return!1;p--}}return p===0};function Ge(i){if(!qe(i))return null;let a=u?i.slice(u.length):i,p=typeof CSS<"u"?CSS.escape(i):At(i);if(a.includes("&")&&!a.startsWith("&")){let{body:B,selector:oe}=It(a),ue=_t(B).map(A=>A.trim()).filter(A=>A.length>0).map(A=>u&&A.startsWith(u)?A.slice(u.length):A);if(ue.length>1){let A="",U="",V=oe,H=!1,W=[];for(let q of ue){let J=V?`${q}@${V}`:q,I=ye(J);if(!I||!Ce(I.mq)||!I.prop.startsWith("[")&&!ve(I.prop))return null;H?(!I.mq&&A&&(I.mq=A),!I.layer&&U&&(I.layer=U)):(A=I.mq||"",U=I.layer||"",H=!0);let ie=I.mq||"",pe=I.layer||"",Ae=I.selector||"";if(ie!==A||pe!==U||Ae!==V)return null;let ae=Ye(I.prop,I.val);if(!ae)return null;W.push(ae)}if(W.length===0)return null;let F=V.replace(/(';|;)/g,q=>q=="';"?";":" "),Q=`selector(${p}${F})`;if(F){if(typeof CSS<"u"){if(!CSS.supports(Q))return null}else if(!Ie(F))return null}return{media:A||"default",layer:U||"0",className:p,property:W.join(";"),selector:F,cssRules:`.${p}${F}{${W.join(";")}}`}}}let w=ye(a);if(!w||!Ce(w.mq)||!w.prop.startsWith("[")&&!ve(w.prop))return null;let{mq:E="default",layer:h="0",prop:C,val:b,selector:v=""}=w,y=[],M=Ye(C,b);if(M&&y.push(M),y.length===0)return null;let R=v.replace(/(';|;)/g,B=>B=="';"?";":" "),P=`selector(${p}${R})`;if(R){if(typeof CSS<"u"){if(!CSS.supports(P))return null}else if(!Ie(R))return null}return{media:E||"default",layer:h||"0",className:p,property:y.join(";"),selector:R,cssRules:`.${p}${R}{${y.join(";")}}`}}let At=i=>i.replace(/([^\w-])/g,"\\$1"),_e=i=>{var a=[...i?.classList||[]].filter(p=>{if(p){let w=p.charCodeAt(0)==45?p.charCodeAt(1):p.charCodeAt(0);return w>=97&&w<=122||w>=48&&w<=57}return!1});return i?.children?.length>0&&Array.from(i?.children).forEach(p=>{a.push(..._e(p))}),a.flat(1/0)},Ot=(i,a)=>{if(typeof a!="function")throw new Error("Callback is not a function");if(!i)return;let p;"documentElement"in i?p=i.documentElement:(i instanceof Element||"tagName"in i||"host"in i)&&(p=i),p&&(p instanceof Element&&a(_e(p)),typeof MutationObserver<"u"&&new MutationObserver(w=>{for(let E of w)if(E.type=="attributes"&&E.attributeName=="class"){if(E.target.nodeType==1){let h=String(E.target?.className??""),C=String(E?.oldValue??"");if(h||C){let b=h.split(" ").map(y=>y.trim()).filter(y=>y),v=C.split(" ").map(y=>y.trim()).filter(y=>y);b=b.filter(y=>!v.includes(y)),typeof a=="function"&&a([...new Set(b)])}}}else if(E.type=="childList"&&E.addedNodes.length>0){let h=[...E.addedNodes].filter(C=>C.nodeType==1).map(C=>_e(C)).flat(1/0);typeof a=="function"&&a([...new Set(h)])}}).observe(p,{attributes:!0,attributeOldValue:!0,attributeFilter:["class"],childList:!0,subtree:!0}))};return{buildCss:Rt,exportCache:()=>!T.loadOnInit||typeof window>"u"||!window.localStorage?se:ut(window.localStorage.getItem($))||se,ready:Re}},Er=(e,t)=>{Ue(t).buildCss(e).observe()},Rr=(e,t)=>Ue(t).buildCss(e).clsx,Ne={css:Ue,cssObserve:Er,clsx:Rr};var Ir=(e,t)=>(e=e||"fwkui",t=t||"v1",`${e}_cache_${t}`),St=(e="fwkui",t="v1",r)=>{let s=String(e||"").trim()||"fwkui",n=Ir(s,t),l=r?.loadOnInit??!0,d=JSON.stringify(s),u=JSON.stringify(n),x=`
|
|
17
14
|
(async function () {
|
|
15
|
+
function canUseCacheRuntime() {
|
|
16
|
+
if (typeof window === 'undefined' || !window.localStorage) return false;
|
|
17
|
+
if (typeof navigator === 'undefined' || !navigator.locks || typeof navigator.locks.request !== 'function') return false;
|
|
18
|
+
try {
|
|
19
|
+
var probeKey = '__xcss_cache_probe__';
|
|
20
|
+
localStorage.setItem(probeKey, '1');
|
|
21
|
+
localStorage.removeItem(probeKey);
|
|
22
|
+
return true;
|
|
23
|
+
} catch (_error) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
18
28
|
function decompressLZW(compressed) {
|
|
19
29
|
if (!compressed) return '';
|
|
20
30
|
var dictionary = {};
|
|
@@ -97,9 +107,11 @@ ${d}
|
|
|
97
107
|
|
|
98
108
|
try {
|
|
99
109
|
if (typeof window === 'undefined' || !window.localStorage) return;
|
|
110
|
+
if (!${JSON.stringify(l)}) return;
|
|
111
|
+
if (!canUseCacheRuntime()) return;
|
|
100
112
|
|
|
101
|
-
var styleId = ${
|
|
102
|
-
var key = ${
|
|
113
|
+
var styleId = ${d};
|
|
114
|
+
var key = ${u};
|
|
103
115
|
var raw = localStorage.getItem(key);
|
|
104
116
|
if (!raw) return;
|
|
105
117
|
var payload=await parseCache(raw);
|
|
@@ -123,5 +135,5 @@ ${d}
|
|
|
123
135
|
styleEl.textContent = css;
|
|
124
136
|
} catch (_error) {}
|
|
125
137
|
})();
|
|
126
|
-
`.trim();return r?.compact?
|
|
138
|
+
`.trim();return r?.compact?x.replace(/\s+/g," ").trim():x};var Be="__FWXCSS_SHARED__",_r={base:"html,body{font-size:16px;padding:0;margin:0;}"},Ar=e=>{if(!e)return!1;let t=typeof Document<"u",r=typeof ShadowRoot<"u",s=t&&e instanceof Document,n=r&&e instanceof ShadowRoot;return s||n},Or=e=>{let t=[],r=s=>{if(s){if(typeof s=="string"||typeof s=="number"){t.push(String(s));return}if(Array.isArray(s)){s.forEach(r);return}typeof s=="object"&&Object.keys(s).forEach(n=>{s[n]&&t.push(n)})}};return e.forEach(r),t},He=e=>{let t=new WeakMap,r=null,s=e??_r,n=typeof document<"u"?document:null,l=k=>{let D=Ne.css(s);return{...D.buildCss(k??void 0),ready:D.ready}},d=()=>(r||(r=l(null)),r),u=k=>{if(!k)return d();let D=t.get(k);return D||(D=l(k),t.set(k,D)),D};return{clsx:(...k)=>{let D,ne=k[k.length-1];Ar(ne)&&(D=ne,k=k.slice(0,-1));let we=Or(k);return u(D||n).clsx(we.join(" "))},observe:k=>{u(k||n).observe()},setClsxRoot:k=>{n=k||(typeof document<"u"?document:null)},getCss:k=>k?u(k).getCssString():n?u(n).getCssString():d().getCssString(),ready:k=>k?u(k).ready:n?u(n).ready:d().ready}},Lr=e=>He(e),Tr=e=>He(e),Ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:global,re=Ve[Be]||He();Ve[Be]||(Ve[Be]=re);var zr=re.clsx,Pr=re.observe,Dr=re.setClsxRoot,jr=re.getCss,Mr=re.ready;var We=Ne;typeof document<"u"&&(We.cssObserve(document),console.log("\u{1F680} fwxcss Auto-Observer Activated"));var Kr=We;0&&(module.exports={clsx,createSharedClsx,createSharedInstance,getBootloaderScript,getCss,observe,ready,setClsxRoot});
|
|
127
139
|
//# sourceMappingURL=index-auto.js.map
|