@master/css 2.0.0-alpha.59 → 2.0.0-alpha.60

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/esm/css.d.ts CHANGED
@@ -28,10 +28,7 @@ export default class MasterCSS extends MutationObserver {
28
28
  themeNames: string[];
29
29
  relationThemesMap: Record<string, Record<string, string[]>>;
30
30
  relations: Record<string, string[]>;
31
- selectors: {
32
- single: [RegExp, string][];
33
- multiple: [RegExp, string[]][];
34
- };
31
+ selectors: Record<string, [RegExp, string[]][]>;
35
32
  constructor(config?: MasterCSSConfig, container?: Element);
36
33
  observe(target: Node, options?: MutationObserverInit): this;
37
34
  disconnect(): void;
package/esm/css.js CHANGED
@@ -2,6 +2,7 @@ import { defaultConfig } from './config';
2
2
  import { init } from './init';
3
3
  import { MasterCSSRule } from './rule';
4
4
  const selectorSymbols = [',', '.', '#', '[', '!', '*', '>', '+', '~', ':', '@'];
5
+ const vendorPrefixSelectorRegExp = /^::-[a-z]+-/m;
5
6
  const hasDocument = typeof document !== 'undefined';
6
7
  let STYLE;
7
8
  if (hasDocument) {
@@ -42,7 +43,7 @@ export default class MasterCSS extends MutationObserver {
42
43
  this.relations = {};
43
44
  this.colorNames = [];
44
45
  this.themeNames = [''];
45
- this.selectors = { single: [], multiple: [] };
46
+ this.selectors = {};
46
47
  const { semantics, classes, selectors, themes, colors } = this.config;
47
48
  function escapeString(str) {
48
49
  return str.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
@@ -53,12 +54,21 @@ export default class MasterCSS extends MutationObserver {
53
54
  }
54
55
  }
55
56
  if (selectors) {
56
- for (const entry of Object.entries(selectors)) {
57
- const isSingle = typeof entry[1] === 'string';
58
- this.selectors[isSingle ? 'single' : 'multiple'].push([
59
- new RegExp(escapeString(entry[0]) + '(?![a-z-])', isSingle ? 'g' : ''),
60
- entry[1]
61
- ]);
57
+ for (const [replacedSelectorText, newSelectorText] of Object.entries(selectors)) {
58
+ const regexp = new RegExp(escapeString(replacedSelectorText) + '(?![a-z-])');
59
+ for (const eachNewSelectorText of Array.isArray(newSelectorText) ? newSelectorText : [newSelectorText]) {
60
+ const vendor = eachNewSelectorText.match(vendorPrefixSelectorRegExp)?.[0] ?? '';
61
+ let selectorValues = this.selectors[vendor];
62
+ if (!selectorValues) {
63
+ selectorValues = this.selectors[vendor] = [];
64
+ }
65
+ let currentSelectValue = selectorValues.find(([_valueRegexp]) => _valueRegexp === regexp);
66
+ if (!currentSelectValue) {
67
+ currentSelectValue = [regexp, []];
68
+ selectorValues.push(currentSelectValue);
69
+ }
70
+ currentSelectValue[1].push(eachNewSelectorText);
71
+ }
62
72
  }
63
73
  }
64
74
  const mergeClasses = (theme, classes) => {
package/esm/rule.d.ts CHANGED
@@ -15,7 +15,7 @@ export declare class MasterCSSRule {
15
15
  readonly symbol: string;
16
16
  readonly token: string;
17
17
  readonly prefixSelectors: string[];
18
- readonly suffixSelectors: string[];
18
+ readonly vendorSuffixSelectors: Record<string, string[]>;
19
19
  readonly important: boolean;
20
20
  readonly media: MasterCSSMedia;
21
21
  readonly at: Record<string, string>;
package/esm/rule.js CHANGED
@@ -26,7 +26,7 @@ export class MasterCSSRule {
26
26
  symbol;
27
27
  token;
28
28
  prefixSelectors;
29
- suffixSelectors;
29
+ vendorSuffixSelectors;
30
30
  important;
31
31
  media;
32
32
  at = {};
@@ -253,41 +253,78 @@ export class MasterCSSRule {
253
253
  const suffixTokens = suffixToken.split('@');
254
254
  let suffixSelector = suffixTokens[0];
255
255
  if (suffixSelector) {
256
- this.suffixSelectors = [];
257
- const originalSuffixTokens = analyzeSelectorToken(suffixSelector);
258
- for (let eachOriginalSuffixToken of originalSuffixTokens) {
259
- for (const eachSingleSelectorEntry of selectors.single) {
260
- eachOriginalSuffixToken = eachOriginalSuffixToken.replace(eachSingleSelectorEntry[0], eachSingleSelectorEntry[1]);
261
- }
262
- const transform = (selectorText) => {
263
- for (const eachMultipleSelectorEntry of selectors.multiple) {
264
- if (eachMultipleSelectorEntry[0].test(selectorText)) {
265
- for (const eachSelectorText of eachMultipleSelectorEntry[1]) {
266
- transform(selectorText.replace(eachMultipleSelectorEntry[0], eachSelectorText));
267
- }
268
- return;
256
+ this.vendorSuffixSelectors = {};
257
+ const transform = (selectorText, selectorValues, selectors, matched) => {
258
+ for (const [regexp, newSelectorTexts] of selectorValues) {
259
+ if (regexp.test(selectorText)) {
260
+ for (const eachNewSelectorText of newSelectorTexts) {
261
+ transform(selectorText.replace(regexp, eachNewSelectorText), selectorValues, selectors, true);
269
262
  }
263
+ return;
270
264
  }
271
- this.suffixSelectors.push(selectorText);
272
- };
273
- transform(eachOriginalSuffixToken);
265
+ }
266
+ if (matched) {
267
+ selectors.push(selectorText);
268
+ }
269
+ };
270
+ const suffixSelectors = [];
271
+ if ('' in selectors) {
272
+ transform(suffixSelector, selectors[''], suffixSelectors, true);
274
273
  }
275
- for (const eachSuffixSelector of this.suffixSelectors) {
276
- if (this.hasWhere !== false) {
277
- this.hasWhere = eachSuffixSelector.includes(':where(');
274
+ else {
275
+ suffixSelectors.push(suffixSelector);
276
+ }
277
+ const vendorSelectors = {};
278
+ for (const [vendor, selectorValues] of Object.entries(selectors)) {
279
+ if (!vendor)
280
+ continue;
281
+ const newVendorSelectors = [];
282
+ for (const eachSuffixSelector of suffixSelectors) {
283
+ transform(eachSuffixSelector, selectorValues, newVendorSelectors, false);
284
+ }
285
+ if (newVendorSelectors.length) {
286
+ vendorSelectors[vendor] = newVendorSelectors;
278
287
  }
279
- for (let i = 0; i < PRIORITY_SELECTORS.length; i++) {
280
- if (eachSuffixSelector.includes(PRIORITY_SELECTORS[i])) {
281
- if (this.prioritySelectorIndex === -1 || this.prioritySelectorIndex > i) {
282
- this.prioritySelectorIndex = i;
288
+ }
289
+ const insertVendorSuffixSelectors = (vendor, selectorTexts) => {
290
+ const groupedSelectorTexts = selectorTexts.reduce((arr, eachSuffixSelector) => {
291
+ arr.push(...analyzeSelectorToken(eachSuffixSelector));
292
+ return arr;
293
+ }, []);
294
+ if (vendor in this.vendorSuffixSelectors) {
295
+ this.vendorSuffixSelectors[vendor].push(...groupedSelectorTexts);
296
+ }
297
+ else {
298
+ this.vendorSuffixSelectors[vendor] = groupedSelectorTexts;
299
+ }
300
+ };
301
+ const vendors = Object.keys(vendorSelectors);
302
+ if (vendors.length) {
303
+ for (const eachVendor of vendors) {
304
+ insertVendorSuffixSelectors(eachVendor, vendorSelectors[eachVendor]);
305
+ }
306
+ }
307
+ else {
308
+ insertVendorSuffixSelectors('', suffixSelectors);
309
+ }
310
+ for (const suffixSelectors of Object.values(this.vendorSuffixSelectors)) {
311
+ for (const eachSuffixSelector of suffixSelectors) {
312
+ if (this.hasWhere !== false) {
313
+ this.hasWhere = eachSuffixSelector.includes(':where(');
314
+ }
315
+ for (let i = 0; i < PRIORITY_SELECTORS.length; i++) {
316
+ if (eachSuffixSelector.includes(PRIORITY_SELECTORS[i])) {
317
+ if (this.prioritySelectorIndex === -1 || this.prioritySelectorIndex > i) {
318
+ this.prioritySelectorIndex = i;
319
+ }
320
+ break;
283
321
  }
284
- break;
285
322
  }
286
323
  }
287
324
  }
288
325
  }
289
326
  else {
290
- this.suffixSelectors = [''];
327
+ this.vendorSuffixSelectors = { '': [''] };
291
328
  }
292
329
  // 5. atTokens
293
330
  for (let i = 1; i < suffixTokens.length; i++) {
@@ -418,7 +455,7 @@ export class MasterCSSRule {
418
455
  // 7. value
419
456
  const insertNewNative = (themeName, bypassWhenUnmatchColor) => {
420
457
  let newValue, newUnit;
421
- const generateCssText = (propertiesText, themeName) => {
458
+ const generateCssText = (propertiesText, themeName, suffixSelectors) => {
422
459
  let prefixText = '';
423
460
  if (this.direction) {
424
461
  prefixText += '[dir=' + this.direction + '] ';
@@ -430,7 +467,7 @@ export class MasterCSSRule {
430
467
  return prefixTexts
431
468
  .map(eachPrefixText => prefixThemeText + eachPrefixText)
432
469
  .reduce((arr, eachPrefixText) => {
433
- arr.push(this.suffixSelectors
470
+ arr.push(suffixSelectors
434
471
  .reduce((_arr, eachSuffixSelector) => {
435
472
  _arr.push(eachPrefixText + esacpedName + eachSuffixSelector);
436
473
  return _arr;
@@ -501,19 +538,21 @@ export class MasterCSSRule {
501
538
  if (this.getThemeProps) {
502
539
  const themeProps = this.getThemeProps(declaration, css);
503
540
  for (const themeName in themeProps) {
504
- this.natives.push({
505
- unit: newUnit,
506
- value: newValue,
507
- text: generateCssText(Object
508
- .entries(themeProps[themeName])
509
- .map(([propertyName, propertyValue]) => getCssPropertyText(propertyName, {
510
- important: this.important,
511
- unit: '',
512
- value: propertyValue
513
- }))
514
- .join(';'), themeName),
515
- themeName
516
- });
541
+ for (const suffixSelectors of Object.values(this.vendorSuffixSelectors)) {
542
+ this.natives.push({
543
+ unit: newUnit,
544
+ value: newValue,
545
+ text: generateCssText(Object
546
+ .entries(themeProps[themeName])
547
+ .map(([propertyName, propertyValue]) => getCssPropertyText(propertyName, {
548
+ important: this.important,
549
+ unit: '',
550
+ value: propertyValue
551
+ }))
552
+ .join(';'), themeName, suffixSelectors),
553
+ themeName
554
+ });
555
+ }
517
556
  }
518
557
  return;
519
558
  }
@@ -525,22 +564,24 @@ export class MasterCSSRule {
525
564
  else {
526
565
  newValue = value;
527
566
  }
528
- this.natives.push({
529
- unit: newUnit,
530
- value: newValue,
531
- text: generateCssText(typeof newValue === 'object'
532
- ? Object
533
- .entries(newValue)
534
- .map(([propertyName, propertyValue]) => getCssPropertyText(propertyName, {
535
- ...(typeof propertyValue === 'object'
536
- ? propertyValue
537
- : { unit: '', value: propertyValue }),
538
- important: this.important
539
- }))
540
- .join(';')
541
- : getCssPropertyText(propName, { unit: newUnit, value: newValue, important: this.important }), themeName),
542
- themeName
543
- });
567
+ for (const suffixSelectors of Object.values(this.vendorSuffixSelectors)) {
568
+ this.natives.push({
569
+ unit: newUnit,
570
+ value: newValue,
571
+ text: generateCssText(typeof newValue === 'object'
572
+ ? Object
573
+ .entries(newValue)
574
+ .map(([propertyName, propertyValue]) => getCssPropertyText(propertyName, {
575
+ ...(typeof propertyValue === 'object'
576
+ ? propertyValue
577
+ : { unit: '', value: propertyValue }),
578
+ important: this.important
579
+ }))
580
+ .join(';')
581
+ : getCssPropertyText(propName, { unit: newUnit, value: newValue, important: this.important }), themeName, suffixSelectors),
582
+ themeName
583
+ });
584
+ }
544
585
  };
545
586
  if (this.getThemeProps) {
546
587
  insertNewNative(undefined, false);
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
- var Po=Object.create;var Ii=Object.defineProperty;var jo=Object.getOwnPropertyDescriptor;var Go=Object.getOwnPropertyNames;var Lo=Object.getPrototypeOf,_o=Object.prototype.hasOwnProperty;var zo=(r,i,o)=>i in r?Ii(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o;var Ho=(r,i)=>()=>(i||r((i={exports:{}}).exports,i),i.exports),Vo=(r,i)=>{for(var o in i)Ii(r,o,{get:i[o],enumerable:!0})},ho=(r,i,o,n)=>{if(i&&typeof i=="object"||typeof i=="function")for(let s of Go(i))!_o.call(r,s)&&s!==o&&Ii(r,s,{get:()=>i[s],enumerable:!(n=jo(i,s))||n.enumerable});return r};var so=(r,i,o)=>(o=r!=null?Po(Lo(r)):{},ho(i||!r||!r.__esModule?Ii(o,"default",{value:r,enumerable:!0}):o,r)),$o=r=>ho(Ii({},"__esModule",{value:!0}),r);var e=(r,i,o)=>(zo(r,typeof i!="symbol"?i+"":i,o),o);var ro=Ho((po,Bo)=>{(function(r,i){typeof po=="object"?Bo.exports=i(r):typeof define=="function"&&define.amd?define([],i.bind(r,r)):i(r)})(typeof global<"u"?global:po,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var i=function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");var n=String(o),s=n.length,l=-1,d,u="",c=n.charCodeAt(0);if(s==1&&c==45)return"\\"+n;for(;++l<s;){if(d=n.charCodeAt(l),d==0){u+="\uFFFD";continue}if(d>=1&&d<=31||d==127||l==0&&d>=48&&d<=57||l==1&&d>=48&&d<=57&&c==45){u+="\\"+d.toString(16)+" ";continue}if(d>=128||d==45||d==95||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122){u+=n.charAt(l);continue}u+="\\"+n.charAt(l)}return u};return r.CSS||(r.CSS={}),r.CSS.escape=i,i})});var ss={};Vo(ss,{DefaultRules:()=>Zi,MasterCSSRule:()=>t,configure:()=>Io,default:()=>P,defaultBreakpoints:()=>De,defaultColors:()=>Wi,defaultConfig:()=>Be,defaultRootSize:()=>ao,defaultSelectors:()=>Ei,defaultSemantics:()=>Pi,defaultThemes:()=>ji,defaultValues:()=>Li,extend:()=>to,fillColorScale:()=>D,init:()=>Ji,render:()=>Fo,renderFromHTML:()=>io,renderIntoHTML:()=>Do});module.exports=$o(ss);var De={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function Bi(r){r.startsWith("#")&&(r=r.slice(1));let i=r.match(/.{1,2}/g);return[parseInt(i[0],16),parseInt(i[1],16),parseInt(i[2],16)]}function xo(r,i,o){return((1<<24)+(r<<16)+(i<<8)+o).toString(16).slice(1)}function D(r){typeof r=="string"&&(r={"":r});let i=""in r,o=!1;for(let n in r)if(n&&+n>=100){o=!0;break}if(!o&&(!i||Object.keys(r).length>1)){let n=0,s="0"in r?Bi(r[0]):[0,0,0],l,d,u=[],c=()=>{let h=l-n,f=d.map((p,m)=>(p-s[m])/h);for(let p of u){let m=p-n,a=s.map((v,x)=>Math.round(v+f[x]*m));r[p]="#"+xo.call(this,...a)}};for(let h=1;h<100;h++)h in r?(u.length?(l=h,d=Bi(r[h]),c(),u.length=0,s=d):s=Bi(r[h]),n=h):u.push(h);u.length&&(l=100,d="100"in r?Bi(r[100]):[255,255,255],c())}return i||(r[""]=r[o?"500":"50"]),r}var Wi={slate:D({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:D({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:D({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:D({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:D({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:D({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:D({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:D({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:D({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:D({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:D({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:D({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:D({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:D({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:D({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:D({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:D({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:D({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:D({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:D({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"}),black:"#000000",white:"#ffffff"};var ao=16;var Ei={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("};var Pi={square:"aspect-ratio:1/1",video:"aspect-ratio:16/9",rounded:"border-radius:1e9em",round:"border-radius:50%",hidden:"display:none",hide:"display:none",block:"display:block",table:"display:table",flex:"display:flex",grid:"display:grid",contents:"display:contents",inline:"display:inline","inline-block":"display:inline-block","inline-flex":"display:inline-flex","inline-grid":"display:inline-grid","inline-table":"display:inline-table","table-cell":"display:table-cell","table-caption":"display:table-caption","flow-root":"display:flow-root","list-item":"display:list-item","table-row":"display:table-row","table-column":"display:table-column","table-row-group":"display:table-row-group","table-column-group":"display:table-column-group","table-header-group":"display:table-header-group","table-footer-group":"display:table-footer-group",italic:"font-style:italic",oblique:"font-style:oblique",isolate:"isolation:isolate",overflow:"overflow:visible",untouchable:"pointer-events:none",static:"position:static",fixed:"position:fixed",abs:"position:absolute",rel:"position:relative",sticky:"position:sticky",uppercase:"text-transform:uppercase",lowercase:"text-transform:lowercase",capitalize:"text-transform:capitalize",visible:"visibility:visible",invisible:"visibility:hidden","center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"}};var ji=["dark","light"];var Fi={content:"content-box",border:"border-box",padding:"padding-box"},Gi={min:"min-content",max:"max-content"},q={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let r in De)q[r]=De[r]/16+"rem";var Li={BackgroundClip:Fi,BackgroundOrigin:Fi,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...Fi,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},FlexDirection:{col:"column","col-reverse":"column-reverse"},FontFamily:{mono:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",sans:"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji",serif:"ui-serif, Georgia, Cambria, Times New Roman, Times, serif"},FontWeight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},GridAutoColumns:Gi,GridAutoRows:Gi,GridTemplateColumns:Gi,GridTemplateRows:Gi,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...Fi,margin:"margin-box"},TransformBox:{...Fi,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:q,MinWidth:q,MinHeight:q,MaxWidth:q,MaxHeight:q,Height:q,FlexBasis:q};function _i(r,i){return(r?r+":":"")+(i.unit?i.value+i.unit:i.value)+(i.important?"!important":"")}function vo(r){let i=u=>u==="+"||u==="-"||u==="*"||u==="/",o="",n,s="",l=!1;function d(){n=null,s=""}for(let u=0;u<r.length;u++){let c=r[u];if(c==="("||c===")")l=c===")",o+=s+c,d();else if(c===",")o+=s+c+" ",d();else{switch(n){case 1:break;case 2:if(i(c)){o+=s+" "+c+" ",d();continue}break;default:l&&(s+=" "),isNaN(+c)?i(c)||(n=1):n=2;break}s+=c}}return s&&(o+=s),o}var Uo=/^([+-.]?\d+(\.?\d+)?)(.*)?/,Yo="var(--";function zi(r,i,o,n,s,l){let d=n?n[r]:"",u="",c="",h;if(d)return{value:d,unit:u,unitToken:c};if(typeof r=="number")d=r,u=i||"";else{if(o){let f=Object.keys(o),p=!1,m=!1;r=r.replace(new RegExp(`(^|,| |\\()(${f.join("|")})(?:-([0-9]+))?(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(a,v,x,g,N)=>{m=!0;let y=o[x]?.[g||""];if(y){let E;for(let k of l)if(E=y[k])break;if(E){p=!0;let k=E;if(N){let C=N.endsWith("%")?parseFloat(N)/100:+N;C=isNaN(C)?1:Math.min(Math.max(C,0),1),k+=Math.round(C*255).toString(16).toUpperCase().padStart(2,"0")}return v+k}}return a}),m&&(h=p)}if(i){let f=r.match(Uo);if(f)if(r.includes("/")){let p=r.split("/");return{value:+p[0]/+p[1]*100+"%",unit:u,unitToken:c}}else return d=+f[1],u=c=f[3]||"",u||((i==="rem"||i==="em")&&(d=d/s),u=i||""),{value:d,unit:u,unitToken:c}}d=(r.indexOf("calc(")===-1?r:vo(r)).replace(/\$\(((\w|-)+)\)/g,Yo+"$1)")}return{value:d,unit:u,unitToken:c,colorMatched:h}}var kr={"(":")","'":"'","{":"}"};var go=[":disabled",":active",":focus",":hover"],Hi="matches",qo="semantics",So="symbol",Co="width",no="max-"+Co,lo="min-"+Co,mo="motion",yo="reduce",bo=yo+"d-"+mo,co="px",Xo="rem",Zo=["!","*",">","+","~",":","[","@","_"],Jo=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,Ko=r=>r.split(Jo).map((i,o)=>o%3?i:i.replace(/\_/g," ")).join(""),t=class{constructor(i,o,n){this.className=i;this.matching=o;this.css=n;let s=this.constructor,{id:l,unit:d,propName:u,colorful:c}=s,{breakpoints:h,mediaQueries:f,semantics:p,rootSize:m}=n.config,a=n.config.values[l],v=n.relationThemesMap[i],{themeNames:x,colorsThemesMap:g,selectors:N}=n,y=i,E,k,C,A;if(o.origin===qo)C=y.slice(o.value.length),E=p[o.value];else{let T;if(o.origin===Hi)if(l==="Group"){let M=0;for(;M<y.length&&!(y[M]==="{"&&y[M-1]!=="\\");M++);k=y.slice(0,M),T=y.slice(M)}else{let M=y.indexOf(":");this.prefix=y.slice(0,M+1),this.prefix.includes("(")?(this.prefix=void 0,T=y):T=y.slice(M+1)}else o.origin===So&&(this.symbol=y[0],T=y.slice(1));A=[];let S="",b=0;(function M(F,w,I=""){let R,B=!1;for(F&&(F===")"&&S.slice(-1)==="$"?R=S.length-1:F==="'"&&(B=!0),S+=T[b++]);b<T.length;b++){let O=T[b];if(O===F){if(S+=O,B){let j=0;for(let z=S.length-2;S[z]==="\\";z--)j++;if(j%2)continue}R!==void 0&&(S=S.slice(0,R)+S.slice(R).replace(/\$\((.*)\)/,"var(--$1)")),w||(B?A.push(S):A.push({value:S}),I="",S="");break}else if(!B&&O in kr)M(kr[O],w===void 0?0:w+1,I);else if(O==="|"&&F!=="}"&&(!B||I==="path"))F?S+=" ":(A.push({value:S}),S="");else{if(!F){if(O==="."){if(isNaN(+T[b+1]))break;T[b-1]==="-"&&(S+="0")}else if(O===","){A.push({value:S},","),S="";continue}else if(O==="#"&&(S||A.length&&T[b-1]!=="|")||Zo.includes(O))break;I+=O}S+=O}}})(),S&&A.push({value:S}),C=T.slice(b)}C[0]==="!"&&(this.important=!0,C=C.slice(1));let W=T=>{let S=Ko(T),b=[],M="",F=0;for(let w=0;w<S.length;w++){let I=S[w];if(I==="\\"){M+=I+S[++w];continue}!F&&I===","?(b.push(M),M=""):(M+=I,F&&I===")"?F--:I==="("&&F++)}return M&&b.push(M),b};this.prefixSelectors=k?W(k):[""];let H=C.split("@"),Y=H[0];if(Y){this.suffixSelectors=[];let T=W(Y);for(let S of T){for(let M of N.single)S=S.replace(M[0],M[1]);let b=M=>{for(let F of N.multiple)if(F[0].test(M)){for(let w of F[1])b(M.replace(F[0],w));return}this.suffixSelectors.push(M)};b(S)}for(let S of this.suffixSelectors){this.hasWhere!==!1&&(this.hasWhere=S.includes(":where("));for(let b=0;b<go.length;b++)if(S.includes(go[b])){(this.prioritySelectorIndex===-1||this.prioritySelectorIndex>b)&&(this.prioritySelectorIndex=b);break}}}else this.suffixSelectors=[""];for(let T=1;T<H.length;T++){let S=H[T];if(S)if(x.includes(S))this.themeName=S;else if(S==="rtl"||S==="ltr")this.direction=S;else{let b,M,F=S.indexOf("_");if(F!==-1)b=S.slice(0,F),M=S.slice(F);else{let w=S.indexOf("(");w!==-1&&(b=S.slice(0,w),M=S.slice(w))}if(!b){b="media";let w=[];this.media={token:S,features:{}};let I=S.split("&");for(let R of I)if(R==="all"||R==="print"||R==="screen"||R==="speech")this.media.type=R;else if(R==="\u{1F5A8}")this.media.type="print";else if(R==="landscape"||R==="portrait")w.push("(orientation:"+R+")");else if(R===mo||R===bo)w.push("(prefers-"+bo+":"+(R===mo?"no-preference":yo)+")");else if(f&&R in f)w.push(f[R]);else{let B={token:R},O="",j="",z=0;switch(R.startsWith("<=")?(j="<=",O=no):R.startsWith(">=")||h[R]?(j=">=",O=lo):R.startsWith(">")?(j=">",O=lo,z=.02):R.startsWith("<")&&(j="<",O=no,z=-.02),O){case no:case lo:let G=j?R.replace(j,""):R,Fe=h[G];Fe?Object.assign(B,zi(Fe,co)):Object.assign(B,zi(G,co)),B.unit===co&&(B.value+=z),this.media.features[O]=B,w.push("("+O+":"+(B.value+B.unit)+")");break}}M="",this.media.type&&(M=this.media.type),w.length&&(M+=(M?" and ":"")+w.join(" and "))}M&&(this.at[b]=(b in this.at?this.at[b]+" and ":"")+M.replace(/\_/g," "))}}this.order===void 0&&(this.order=0);let V=(T,S)=>{let b,M,F=(I,R)=>{let B="";this.direction&&(B+="[dir="+this.direction+"] ");let O=this.prefixSelectors.map(G=>G+B),j=(G,Fe)=>{let Ai=G?"."+G+" ":"",oo="."+CSS.escape(Fe);return O.map(Di=>Ai+Di).reduce((Di,Wo)=>(Di.push(this.suffixSelectors.reduce((uo,Eo)=>(uo.push(Wo+oo+Eo),uo),[]).join(",")),Di),[]).join(",")},z=j(R,i)+(v?Object.entries(v).filter(([G])=>this.themeName||!c||!R||!G||G===R).map(([G,Fe])=>Fe.reduce((Ai,oo)=>Ai+","+j(this.themeName??(c&&R||G),oo),"")).join(""):"")+"{"+I+"}";for(let G of Object.keys(this.at).sort((Fe,Ai)=>Ai==="supports"?-1:1))z="@"+G+" "+this.at[G]+"{"+z+"}";return z},w=[];if(A){let I,R;for(let B of A)typeof B=="string"?w.push(B):(I=zi(B.value,d,c&&g,a,m,this.themeName?[this.themeName,""]:[T]),I.colorMatched!==void 0&&R!==!0&&(R=I.colorMatched),w.push(I.value+I.unit));if(S&&(R===void 0?T:!R))return;if(w.length===1?I?(b=I.value,M=I.unit):b=w[0]:b=w.reduce((B,O,j)=>B+O+(O===","||A[j+1]===","||j===A.length-1?"":" "),""),typeof b!="object"){this.parseValue&&(b=this.parseValue(b,this.css.config)),c&&b==="current"?b="currentColor":a&&b in a&&(b=a[b].toString());let B={unit:M,value:b,important:this.important};if(this.getThemeProps){let O=this.getThemeProps(B,n);for(let j in O)this.natives.push({unit:M,value:b,text:F(Object.entries(O[j]).map(([z,G])=>_i(z,{important:this.important,unit:"",value:G})).join(";"),j),themeName:j});return}else this.get&&(b=this.get(B))}}else b=E;this.natives.push({unit:M,value:b,text:F(typeof b=="object"?Object.entries(b).map(([I,R])=>_i(I,{...typeof R=="object"?R:{unit:"",value:R},important:this.important})).join(";"):_i(u,{unit:M,value:b,important:this.important}),T),themeName:T})};if(this.getThemeProps)V(void 0,!1);else if(this.themeName)V(this.themeName,!1);else if(c)for(let T of x)V(T,!0);else V("",!1)}prefix;symbol;token;prefixSelectors;suffixSelectors;important;media;at={};direction;themeName;unitToken;hasWhere;prioritySelectorIndex=-1;natives=[];static match(i,o){if(this.matches&&this.matches.test(i))return{origin:Hi};if(this.colorStarts&&(i.match("^"+this.colorStarts+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current))")||o.length&&i.match("^"+this.colorStarts+"("+o.join("|")+")")&&i.indexOf("|")===-1))return{origin:Hi};if(this.symbol&&i.startsWith(this.symbol))return{origin:So};if(this.propName&&i.startsWith(this.propName+":"))return{origin:Hi}}};e(t,"id"),e(t,"propName"),e(t,"matches"),e(t,"colorStarts"),e(t,"symbol"),e(t,"unit",Xo),e(t,"colorful");typeof window<"u"&&(window.MasterCSSRule=t);var X=class extends t{};e(X,"id","FontWeight"),e(X,"matches",/^f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|bolder|extrabold|heavy)(?!\|)/),e(X,"propName","font-weight"),e(X,"unit","");var We=class extends t{};e(We,"id","FontFamily"),e(We,"matches",/^f(ont)?:(mono|sans|serif)(?!\|)/),e(We,"propName","font-family");var Ee=class extends t{};e(Ee,"id","FontSize"),e(Ee,"matches",/^f(ont)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(Ee,"propName","font-size");var Tr=class extends t{get(r){let o=this.prefix[0]==="m"?"margin":"padding",n=o+"-left",s=o+"-right",l=o+"-top",d=o+"-bottom";switch(this.prefix[1]){case"x":return{[n]:r,[s]:r};case"y":return{[l]:r,[d]:r};case"l":return{[n]:r};case"r":return{[s]:r};case"t":return{[l]:r};case"b":return{[d]:r};default:return{[o]:r}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};e(Tr,"id","Spacing"),e(Tr,"matches",/^[pm][xytblr]?:./);var Pe=class extends t{};e(Pe,"id","Width"),e(Pe,"matches",/^w:./),e(Pe,"propName","width");var je=class extends t{};e(je,"id","Height"),e(je,"matches",/^h:./),e(je,"propName","height");var Ge=class extends t{};e(Ge,"id","MinWidth"),e(Ge,"matches",/^min-w:./),e(Ge,"propName","min-width");var Le=class extends t{};e(Le,"id","MinHeight"),e(Le,"matches",/^min-h:./),e(Le,"propName","min-height");var Z=class extends t{};e(Z,"id","LetterSpacing"),e(Z,"matches",/^ls:./),e(Z,"propName","letter-spacing"),e(Z,"unit","em");var Qo="subpixel-antialiased",Ro="-webkit-font-smoothing",Mo="-moz-osx-font-smoothing",_e=class extends t{get(r){let i={};switch(r.value){case Qo:i[Ro]=i[Mo]={...r,value:"auto"};break;case"antialiased":i[Ro]={...r,value:"antialiased"},i[Mo]={...r,value:"grayscale"};break}return i}};e(_e,"id","FontSmoothing"),e(_e,"matches",/^f(ont)?:(antialiased|subpixel-antialiased)(?!\|)/),e(_e,"unit","");var J=class extends t{};e(J,"id","FontStyle"),e(J,"matches",/^f(ont)?:(normal|italic|oblique)(?!\|)/),e(J,"propName","font-style"),e(J,"unit","deg");var ze=class extends t{};e(ze,"id","FontVariantNumeric"),e(ze,"matches",/^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!\|)/),e(ze,"propName","font-variant-numeric");var K=class extends t{};e(K,"id","LineHeight"),e(K,"matches",/^lh:./),e(K,"propName","line-height"),e(K,"unit","");var He=class extends t{};e(He,"id","ObjectFit"),e(He,"matches",/^(object|obj):(contain|cover|fill|scale-down)/),e(He,"propName","object-fit");var Ve=class extends t{};e(Ve,"id","ObjectPosition"),e(Ve,"matches",/^(object|obj):(top|bottom|right|left|center)/),e(Ve,"propName","object-position");var $e=class extends t{};e($e,"id","TextAlign"),e($e,"matches",/^t(ext)?:(justify|center|left|right|start|end)(?!\|)/),e($e,"propName","text-align");var Q=class extends t{order=-1};e(Q,"id","TextDecoration"),e(Q,"matches",/^t(ext)?:(underline|line-through|overline)/),e(Q,"propName","text-decoration"),e(Q,"colorful",!0);var Ue=class extends t{};e(Ue,"id","TextTransform"),e(Ue,"matches",/^t(ext)?:(uppercase|lowercase|capitalize)(?!\|)/),e(Ue,"propName","text-transform");var Ye=class extends t{};e(Ye,"id","VerticalAlign"),e(Ye,"matches",/^(?:v|vertical):./),e(Ye,"propName","vertical-align");var qe=class extends t{get(r){return{overflow:{...r,value:"hidden"},display:{...r,value:"-webkit-box"},"overflow-wrap":{...r,value:"break-word"},"text-overflow":{...r,value:"ellipsis"},"-webkit-box-orient":{...r,value:"vertical"},"-webkit-line-clamp":r}}};e(qe,"id","Lines"),e(qe,"matches",/^lines:./),e(qe,"unit","");var ee=class extends t{};e(ee,"id","TransformOrigin"),e(ee,"matches",/^transform:((top|bottom|right|left|center)|\d)/),e(ee,"propName","transform-origin"),e(ee,"unit","px");var Xe=class extends t{};e(Xe,"id","TransformStyle"),e(Xe,"matches",/^transform:(flat|preserve-3d)(?!\|)/),e(Xe,"propName","transform-style");var Ze=class extends t{};e(Ze,"id","TransformBox"),e(Ze,"matches",/^transform:(content|border|fill|stroke|view)(?!\|)/),e(Ze,"propName","transform-box");var te=class extends t{parseValue(r,{rootSize:i}){return r.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,(o,n,s,l)=>{let d,u;switch(n){case"translate":d="rem";break;case"skew":d="deg";break;case"rotate":s==="3d"&&(u=!0),d="deg";break;default:return o}let c=l.split(",");return o.replace(l,c.map((h,f)=>!u||c.length-1===f?Number.isNaN(+h)?h:h/(d==="rem"?i:1)+d:h).join(","))})}};e(te,"id","Transform"),e(te,"matches",/^(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\(/),e(te,"propName","transform"),e(te,"unit","");var Je=class extends t{order=-1};e(Je,"id","Transition"),e(Je,"symbol","~"),e(Je,"propName","transition");var re=class extends t{};e(re,"id","TransitionDelay"),e(re,"matches",/^~delay:./),e(re,"propName","transition-delay"),e(re,"unit","ms");var ie=class extends t{};e(ie,"id","TransitionDuration"),e(ie,"matches",/^~duration:./),e(ie,"propName","transition-duration"),e(ie,"unit","ms");var Ke=class extends t{};e(Ke,"id","TransitionProperty"),e(Ke,"matches",/^~property:./),e(Ke,"propName","transition-property");var Qe=class extends t{};e(Qe,"id","TransitionTimingFunction"),e(Qe,"matches",/^~easing:./),e(Qe,"propName","transition-timing-function");var et=class extends t{};e(et,"id","MaxHeight"),e(et,"matches",/^max-h:./),e(et,"propName","max-height");var tt=class extends t{};e(tt,"id","MaxWidth"),e(tt,"matches",/^max-w:./),e(tt,"propName","max-width");var rt=class extends t{};e(rt,"id","Display"),e(rt,"matches",/^d:./),e(rt,"propName","display");var it=class extends t{};e(it,"id","BoxSizing"),e(it,"matches",/^box:(content|border)(?!\|)/),e(it,"propName","box-sizing");var ot=class extends t{};e(ot,"id","Opacity"),e(ot,"propName","opacity"),e(ot,"unit","");var wr=class extends t{};e(wr,"id","Visibility"),e(wr,"propName","visibility");var Or=class extends t{};e(Or,"id","Clear"),e(Or,"propName","clear");var Ar=class extends t{};e(Ar,"id","Float"),e(Ar,"propName","float");var Ir=class extends t{};e(Ir,"id","Isolation"),e(Ir,"propName","isolation");var Br=class extends t{get(r){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":r};case"y":return{"overflow-y":r}}return{overflow:r}}get order(){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":case"y":return 0}return-1}};e(Br,"id","Overflow"),e(Br,"matches",/^overflow(-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\$|var)/);var Fr=class extends t{get(r){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":r};case"y":return{"overscroll-behavior-y":r};default:return{"overscroll-behavior":r}}}};e(Fr,"id","OverscrollBehavior"),e(Fr,"matches",/^overscroll-behavior(?:-[xy])?:/);var oe=class extends t{};e(oe,"id","ZIndex"),e(oe,"matches",/^z:./),e(oe,"propName","z-index"),e(oe,"unit","");var se=class extends t{};e(se,"id","AnimationDelay"),e(se,"matches",/^\@delay:./),e(se,"propName","animation-delay"),e(se,"unit","ms");var st=class extends t{};e(st,"id","AnimationDirection"),e(st,"matches",/^\@direction:./),e(st,"propName","animation-direction");var at=class extends t{};e(at,"id","AnimationFillMode"),e(at,"matches",/^\@fill-mode:./),e(at,"propName","animation-fill-mode");var ae=class extends t{};e(ae,"id","AnimationIterationCount"),e(ae,"matches",/^\@iteration-count:./),e(ae,"propName","animation-interation-count"),e(ae,"unit","");var nt=class extends t{};e(nt,"id","AnimationName"),e(nt,"matches",/^\@name:./),e(nt,"propName","animation-name");var lt=class extends t{};e(lt,"id","AnimationPlayState"),e(lt,"matches",/^\@play-state:./),e(lt,"propName","animation-play-state");var ct=class extends t{};e(ct,"id","AnimationTimingFunction"),e(ct,"matches",/^\@easing:./),e(ct,"propName","animation-timing-function");var ne=class extends t{order=-1};e(ne,"id","Animation"),e(ne,"symbol","@"),e(ne,"propName","animation"),e(ne,"unit","");var Vi="border-";function le(r,i,o=""){o&&(o="-"+o);let n=/^b(order)?-?(.)?/.exec(r)[2],s=Vi+"left"+o,l=Vi+"right"+o,d=Vi+"top"+o,u=Vi+"bottom"+o;switch(n){case"x":return{[s]:i,[l]:i};case"y":return{[d]:i,[u]:i};case"l":return{[s]:i};case"r":return{[l]:i};case"t":return{[d]:i};case"b":return{[u]:i};default:return{["border"+o]:i}}}var ce=class extends t{get(r){return le(this.prefix,r,"color")}get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(ce,"id","BorderColor"),e(ce,"matches",/^border(-(left|right|top|bottom))?-color:./),e(ce,"colorStarts","b([xytblr]|(order(-(left|right|top|bottom))?))?:"),e(ce,"colorful",!0);var $i="border-top-left-radius",Ui="border-top-right-radius",Yi="border-bottom-left-radius",qi="border-bottom-right-radius",No="border-radius",es=[$i,Ui,Yi,qi],Dr=class extends t{get(r){if(this.prefix){let o="",n=this.prefix.split("-");if(n.length>1)for(let s=1;s<n.length-1;s++)o+=n[s][0];else o=this.prefix.slice(1,-1);switch(o){case"t":return{[$i]:r,[Ui]:r};case"tl":case"lt":return{[$i]:r};case"rt":case"tr":return{[Ui]:r};case"b":return{[Yi]:r,[qi]:r};case"bl":case"lb":return{[Yi]:r};case"br":case"rb":return{[qi]:r};case"l":return{[$i]:r,[Yi]:r};case"r":return{[Ui]:r,[qi]:r};default:return{[No]:r}}}let i=this.prefix?.slice(0,-1);return{[es.includes(i)?i:No]:r}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};e(Dr,"id","BorderRadius"),e(Dr,"matches",/^((r[tblr]?[tblr]?|border(-(top|bottom)-(left|right))?-radius):.)/);var Wr=class extends t{get(r){return le(this.prefix,r,"style")}get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Wr,"id","BorderStyle"),e(Wr,"matches",/^(border(-(left|right|top|bottom))?-style:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|))/);var Er=class extends t{get(r){return le(this.prefix,r,"width")}get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Er,"id","BorderWidth"),e(Er,"matches",/^(border(-(left|right|top|bottom))?-width:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(([0-9]|(max|min|calc|clamp)\(.*\))|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/);var dt=class extends t{get(r){return le(this.prefix,r)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};e(dt,"id","Border"),e(dt,"matches",/^b([xytblr]?|order(-(left|right|top|bottom))?):./),e(dt,"colorful",!0);var mt=class extends t{};e(mt,"id","BackgroundAttachment"),e(mt,"matches",/^(bg|background):(fixed|local|scroll)(?!\|)/),e(mt,"propName","background-attachment");var Pr=class extends t{};e(Pr,"id","BackgroundBlendMode"),e(Pr,"propName","background-blend-mode");var ft=class extends t{get(r){return{"-webkit-background-clip":r,"background-clip":r}}};e(ft,"id","BackgroundClip"),e(ft,"matches",/^(bg|background):text(?!\|)/),e(ft,"propName","background-clip");var $=class extends t{};e($,"id","BackgroundColor"),e($,"colorStarts","(bg|background):"),e($,"propName","background-color"),e($,"unit",""),e($,"colorful",!0);var pt=class extends t{};e(pt,"id","BackgroundOrigin"),e(pt,"matches",/^(bg|background):(content|border|padding)(?!\|)/),e(pt,"propName","background-origin");var de=class extends t{};e(de,"id","BackgroundPosition"),e(de,"matches",/^(bg|background):(top|bottom|right|left|center)(?!\|)/),e(de,"propName","background-position"),e(de,"unit","px");var ut=class extends t{};e(ut,"id","BackgroundRepeat"),e(ut,"matches",/^(bg|background):(space|round|repeat|no-repeat|repeat-x|repeat-y)(?![;a-zA-Z])/),e(ut,"propName","background-repeat");var ht=class extends t{};e(ht,"id","BackgroundSize"),e(ht,"matches",/^(bg|background):((auto|cover|contain)(?!\|)|\.?\d((?!\|).)*$)/),e(ht,"propName","background-size");var me=class extends t{};e(me,"id","BackgroundImage"),e(me,"matches",/^(bg|background):(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(me,"propName","background-image"),e(me,"colorful",!0);var fe=class extends t{order=-1};e(fe,"id","Background"),e(fe,"matches",/^bg:./),e(fe,"propName","background"),e(fe,"colorful",!0);var xt=class extends t{};e(xt,"id","MixBlendMode"),e(xt,"matches",/^blend:./),e(xt,"propName","mix-blend-mode");var jr=class extends t{};e(jr,"id","Position"),e(jr,"propName","position");var Gr=class extends t{get(r){let i=this.prefix.slice(0,-1);switch(i){case"top":case"left":case"right":case"bottom":return{[i]:r};case"center":return{left:r,right:r,"margin-left":{...r,unit:""},"margin-right":{...r,unit:""}};case"middle":return{top:r,bottom:r,"margin-top":{...r,unit:""},"margin-bottom":{...r,unit:""}}}}};e(Gr,"id","Placement"),e(Gr,"matches",/^(top|left|right|bottom|center|middle):./);function Xi(r,i,{rootSize:o}){let n="",s=0;return function l(d,u){let c="",h=u?i(u):"",f=()=>{c&&(n+=!h||Number.isNaN(+c)?c:+c/(h==="rem"?o:1)+h,c="")};for(;s<r.length;s++){let p=r[s];if(p===d&&(d!=="'"||r[s+1]===")")){f(),n+=p;break}else p===","||p===" "?(f(),n+=p):!c&&p==="'"?(n+=p,s++,l(p),c=""):c&&p==="("?(n+=c+p,s++,l(")",c),c=""):c+=p}f()}(),n}var vt=class extends t{get(r){return{"backdrop-filter":r,"-webkit-backdrop-filter":r}}parseValue(r,i){return Xi(r,o=>{switch(o){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},i)}};e(vt,"id","BackdropFilter"),e(vt,"matches",/^bd:./),e(vt,"propName","backdrop-filter");var pe=class extends t{};e(pe,"id","Fill"),e(pe,"propName","fill"),e(pe,"colorStarts","fill:"),e(pe,"colorful",!0);var gt=class extends t{};e(gt,"id","Stroke"),e(gt,"propName","stroke"),e(gt,"colorful",!0);var St=class extends t{};e(St,"id","StrokeWidth"),e(St,"matches",/^stroke:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(St,"propName","stroke-width");var bt=class extends t{parseValue(r,i){return Xi(r,o=>{switch(o){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},i)}};e(bt,"id","Filter"),e(bt,"matches",/^(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/),e(bt,"propName","filter");var Lr=class extends t{};e(Lr,"id","Cursor"),e(Lr,"propName","cursor");var _r=class extends t{};e(_r,"id","PointerEvents"),e(_r,"propName","pointer-events");var zr=class extends t{};e(zr,"id","Resize"),e(zr,"propName","resize");var Hr=class extends t{};e(Hr,"id","TouchAction"),e(Hr,"propName","touch-action");var Vr=class extends t{get(r){return{"user-drag":r,"-webkit-user-drag":r}}};e(Vr,"id","UserDrag"),e(Vr,"propName","user-drag");var $r=class extends t{get(r){return{"user-select":r,"-webkit-user-select":r}}};e($r,"id","UserSelect"),e($r,"propName","user-select");var ue=class extends t{};e(ue,"id","BoxShadow"),e(ue,"matches",/^s(?:hadow)?:./),e(ue,"propName","box-shadow"),e(ue,"colorful",!0);var Ct=class extends t{};e(Ct,"id","TextShadow"),e(Ct,"propName","text-shadow"),e(Ct,"colorful",!0);var Ur=class extends t{get(r){return{"font-size":r,"line-height":{...r,value:r.unit==="rem"?r.value+.375+r.unit:"calc("+r.value+r.unit+" + .375rem)",unit:""}}}};e(Ur,"id","TextSize"),e(Ur,"matches",/^t(ext)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var yt=class extends t{};e(yt,"id","WordBreak"),e(yt,"propName","word-break"),e(yt,"unit","");var he=class extends t{get(r){return{display:{...r,value:"grid"},"grid-template-columns":{...this,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(he,"id","GridColumns"),e(he,"matches",/^grid-cols:./),e(he,"propName","grid-columns"),e(he,"unit","");var Rt=class extends t{get(r){return{display:{...r,value:"grid"},"grid-auto-flow":{...r,value:"column"},"grid-template-rows":{...r,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(Rt,"id","GridRows"),e(Rt,"propName","grid-rows"),e(Rt,"unit","");var Yr=class extends t{get(r){switch(this.prefix[4]){case"x":return{"column-gap":r};case"y":return{"row-gap":r};default:return{gap:r}}}order=-1};e(Yr,"id","Gap"),e(Yr,"matches",/^gap(-x|-y)?:./);var Mt=class extends t{};e(Mt,"id","WordSpacing"),e(Mt,"propName","word-spacing"),e(Mt,"unit","em");var Nt=class extends t{get(r){return{["--"+this.prefix.slice(1,-1)]:r}}};e(Nt,"id","Variable"),e(Nt,"matches",/^\$[^ {}A-Z]+:[^ ]/),e(Nt,"unit","");var xe=class extends t{};e(xe,"id","AspectRadio"),e(xe,"matches",/^aspect:./),e(xe,"propName","aspect-ratio"),e(xe,"unit","");var kt=class extends t{get(r){return{"box-decoration-break":r,"-webkit-box-decoration-break":r}}};e(kt,"id","BoxDecorationBreak"),e(kt,"matches",/^box:(slice|clone)(?!\|)/),e(kt,"propName","box-decoration-break");var qr=class extends t{};e(qr,"id","BreakAfter"),e(qr,"propName","break-after");var Xr=class extends t{};e(Xr,"id","BreakBefore"),e(Xr,"propName","break-before");var Zr=class extends t{};e(Zr,"id","BreakInside"),e(Zr,"propName","break-inside");var Tt=class extends t{};e(Tt,"id","FlexShrink"),e(Tt,"propName","flex-shrink"),e(Tt,"unit","");var wt=class extends t{};e(wt,"id","FlexDirection"),e(wt,"matches",/^flex:((row|col|column)(-reverse)?)(?!\|)/),e(wt,"propName","flex-direction");var Ot=class extends t{};e(Ot,"id","FlexGrow"),e(Ot,"propName","flex-grow"),e(Ot,"unit","");var At=class extends t{};e(At,"id","FlexWrap"),e(At,"matches",/^flex:(wrap(-reverse)?|nowrap)(?!\|)/),e(At,"propName","flex-wrap");var Jr=class extends t{};e(Jr,"id","FlexBasis"),e(Jr,"propName","flex-basis");var It=class extends t{order=-1};e(It,"id","Flex"),e(It,"propName","flex"),e(It,"unit","");var ve=class extends t{};e(ve,"id","Order"),e(ve,"matches",/^o:./),e(ve,"propName","order"),e(ve,"unit","");var ge=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(ge,"id","GridColumn"),e(ge,"matches",/^grid-col(?:umn)?(?:-span)?:./),e(ge,"propName","grid-column"),e(ge,"unit","");var Bt=class extends t{};e(Bt,"id","ColumnSpan"),e(Bt,"matches",/^col-span:./),e(Bt,"propName","column-span");var Se=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(Se,"id","GridRow"),e(Se,"matches",/^grid-row-span:./),e(Se,"propName","grid-row"),e(Se,"unit","");var U=class extends t{};e(U,"id","Color"),e(U,"colorStarts","(?:color|fg|foreground):"),e(U,"colorful",!0),e(U,"propName","color"),e(U,"unit","");var Ft=class extends t{};e(Ft,"id","AlignContent"),e(Ft,"matches",/^ac:./),e(Ft,"propName","align-content");var Dt=class extends t{};e(Dt,"id","AlignItems"),e(Dt,"matches",/^ai:./),e(Dt,"propName","align-items");var Wt=class extends t{};e(Wt,"id","AlignSelf"),e(Wt,"matches",/^as:./),e(Wt,"propName","align-self");var Et=class extends t{};e(Et,"id","GridAutoColumns"),e(Et,"matches",/^grid-auto-cols:./),e(Et,"propName","grid-auto-columns");var Pt=class extends t{};e(Pt,"id","GridAutoFlow"),e(Pt,"matches",/^grid-flow:./),e(Pt,"propName","grid-auto-flow");var Kr=class extends t{};e(Kr,"id","GridAutoRows"),e(Kr,"propName","grid-auto-rows");var jt=class extends t{};e(jt,"id","JustifyContent"),e(jt,"matches",/^jc:./),e(jt,"propName","justify-content");var Gt=class extends t{};e(Gt,"id","JustifyItems"),e(Gt,"matches",/^ji:./),e(Gt,"propName","justify-items");var Lt=class extends t{};e(Lt,"id","JustifySelf"),e(Lt,"matches",/^js:./),e(Lt,"propName","justify-self");var Qr=class extends t{order=-1};e(Qr,"id","PlaceContent"),e(Qr,"propName","place-content");var ei=class extends t{order=-1};e(ei,"id","PlaceItems"),e(ei,"propName","place-items");var ti=class extends t{order=-1};e(ti,"id","PlaceSelf"),e(ti,"propName","place-self");var ri=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="padding:"?-1:0}};e(ri,"id","Padding"),e(ri,"matches",/^padding(?:-(?:left|right|top|bottom))?:./);var ii=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="margin:"?-1:0}};e(ii,"id","Margin"),e(ii,"matches",/^margin(-(left|right|top|bottom))?:./);var _t=class extends t{};e(_t,"id","TextOverflow"),e(_t,"matches",/^(text-(overflow|ovf):.|t(ext)?:(ellipsis|clip)(?!\|))/),e(_t,"propName","text-overflow");var zt=class extends t{};e(zt,"id","ListStylePosition"),e(zt,"matches",/^list-style:(inside|outside)(?!\|)/),e(zt,"propName","list-style-position");var Ht=class extends t{};e(Ht,"id","ListStyleType"),e(Ht,"matches",/^list-style:(disc|decimal)(?!\|)/),e(Ht,"propName","list-style-type");var oi=class extends t{order=-1};e(oi,"id","ListStyle"),e(oi,"propName","list-style");var be=class extends t{};e(be,"id","TextDecorationColor"),e(be,"propName","text-decoration-color"),e(be,"colorStarts","text-decoration:"),e(be,"colorful",!0);var Vt=class extends t{};e(Vt,"id","TextDecorationStyle"),e(Vt,"matches",/^t(ext)?:(solid|double|dotted|dashed|wavy)(?!\|)/),e(Vt,"propName","text-decoration-style");var Ce=class extends t{};e(Ce,"id","TextDecorationThickness"),e(Ce,"matches",/^text-decoration:(from-font(?!\|)|([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/),e(Ce,"propName","text-decoration-thickness"),e(Ce,"unit","em");var si=class extends t{};e(si,"id","TextIndent"),e(si,"propName","text-indent");var ai=class extends t{};e(ai,"id","Content"),e(ai,"propName","content");var ye=class extends t{};e(ye,"id","OutlineColor"),e(ye,"propName","outline-color"),e(ye,"colorStarts","outline:"),e(ye,"colorful",!0);var ni=class extends t{};e(ni,"id","OutlineOffset"),e(ni,"propName","outline-offset");var $t=class extends t{};e($t,"id","OutlineStyle"),e($t,"matches",/^outline:(none|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|)/),e($t,"propName","outline-style");var Ut=class extends t{};e(Ut,"id","OutlineWidth"),e(Ut,"matches",/^outline:(medium|thick|thin|[0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(Ut,"propName","outline-width");var Yt=class extends t{order=-1};e(Yt,"id","Outline"),e(Yt,"propName","outline"),e(Yt,"colorful",!0);var qt=class extends t{};e(qt,"id","BorderCollapse"),e(qt,"matches",/^b(order)?:(collapse|separate)(?!\|)/),e(qt,"propName","border-collapse");var li=class extends t{};e(li,"id","BorderSpacing"),e(li,"propName","border-spacing");var ci=class extends t{};e(ci,"id","TableLayout"),e(ci,"propName","table-layout");var Re=class extends t{};e(Re,"id","AccentColor"),e(Re,"propName","accent-color"),e(Re,"colorStarts","accent:"),e(Re,"colorful",!0);var di=class extends t{};e(di,"id","Appearance"),e(di,"propName","appearance");var Me=class extends t{};e(Me,"id","CaretColor"),e(Me,"propName","caret-color"),e(Me,"colorStarts","caret:"),e(Me,"colorful",!0);var mi=class extends t{};e(mi,"id","ScrollBehavior"),e(mi,"propName","scroll-behavior");var fi=class extends t{get(r){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":r,"scroll-margin-right":r};case"y":return{"scroll-margin-top":r,"scroll-margin-bottom":r};case"l":return{"scroll-margin-left":r};case"r":return{"scroll-margin-right":r};case"t":return{"scroll-margin-top":r};case"b":return{"scroll-margin-bottom":r}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}};e(fi,"id","ScrollMargin"),e(fi,"matches",/^scroll-m([xytblr]|argin(-(top|bottom|left|right))?)?:./);var pi=class extends t{get(r){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":r,"scroll-padding-right":r};case"y":return{"scroll-padding-top":r,"scroll-padding-bottom":r};case"l":return{"scroll-padding-left":r};case"r":return{"scroll-padding-right":r};case"t":return{"scroll-padding-top":r};case"b":return{"scroll-padding-bottom":r}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}};e(pi,"id","ScrollPadding"),e(pi,"matches",/^scroll-p([xytblr]|adding(-(top|bottom|left|right))?)?:./);var Xt=class extends t{};e(Xt,"id","ScrollSnapAlign"),e(Xt,"matches",/^scroll-snap:(start|end|center)/),e(Xt,"propName","scroll-snap-align");var Zt=class extends t{};e(Zt,"id","ScrollSnapStop"),e(Zt,"matches",/^scroll-snap:(normal|always)(?!\|)/),e(Zt,"propName","scroll-snap-stop");var Jt=class extends t{};e(Jt,"id","ScrollSnapType"),e(Jt,"matches",/^scroll-snap:(([xy]|block|inline|both)(\|(proximity|mandatory))?)(?!\|)/),e(Jt,"propName","scroll-snap-type");var ui=class extends t{};e(ui,"id","WillChange"),e(ui,"propName","will-change");var hi=class extends t{};e(hi,"id","TextUnderlineOffset"),e(hi,"propName","text-underline-offset");var Kt=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}};e(Kt,"id","Inset"),e(Kt,"matches",/^(?:top|bottom|left|right):./),e(Kt,"propName","inset");var Ne=class extends t{order=-1};e(Ne,"id","Columns"),e(Ne,"matches",/^(columns|cols):./),e(Ne,"propName","columns"),e(Ne,"unit","");var Qt=class extends t{};e(Qt,"id","WhiteSpace"),e(Qt,"propName","white-space"),e(Qt,"unit","");var er=class extends t{};e(er,"id","TextOrientation"),e(er,"matches",/^t(ext)?:(mixed|upright|sideways-right|sideways|use-glyph-orientation)(?!\|)/),e(er,"propName","text-orientation");var tr=class extends t{};e(tr,"id","WritingMode"),e(tr,"matches",/^writing:./),e(tr,"propName","writing-mode");var xi=class extends t{};e(xi,"id","Contain"),e(xi,"propName","contain");var ke=class extends t{};e(ke,"id","AnimationDuration"),e(ke,"matches",/^\@duration:./),e(ke,"propName","animation-duration"),e(ke,"unit","ms");var rr=class extends t{};e(rr,"id","TextRendering"),e(rr,"matches",/^t(ext)?:(optimizeSpeed|optimizeLegibility|geometricPrecision)(?!\|)/),e(rr,"propName","text-rendering");var vi=class extends t{};e(vi,"id","Direction"),e(vi,"propName","direction");var ir=class extends t{};e(ir,"id","TextDecorationLine"),e(ir,"matches",/^t(ext)?:(none|underline|overline|line-through)(?!\|)/),e(ir,"propName","text-decoration-line");var Te=class extends t{};e(Te,"id","GridColumnStart"),e(Te,"matches",/^grid-col-start:./),e(Te,"propName","grid-column-start"),e(Te,"unit","");var or=class extends t{};e(or,"id","ListStyleImage"),e(or,"matches",/^list-style:(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(or,"propName","list-style-image");var sr=class extends t{};e(sr,"id","ShapeOutside"),e(sr,"matches",/^shape:((margin|content|border|padding)(?!\|)|(inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)((?!\|).)*$)/),e(sr,"propName","shape-outside");var ar=class extends t{};e(ar,"id","ShapeMargin"),e(ar,"matches",/^shape:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(ar,"propName","shape-margin");var nr=class extends t{};e(nr,"id","ShapeImageThreshold"),e(nr,"propName","shape-image-threshold"),e(nr,"unit","");var lr=class extends t{};e(lr,"id","ClipPath"),e(lr,"matches",/^clip:./),e(lr,"propName","clip-path");var gi=class extends t{order=-1};e(gi,"id","Grid"),e(gi,"propName","grid");var we=class extends t{order=-1};e(we,"id","Font"),e(we,"matches",/^f:./),e(we,"propName","font"),e(we,"unit","");var Si=class extends t{};e(Si,"id","Quotes"),e(Si,"propName","quotes");var bi=class extends t{order=-1};e(bi,"id","GridTemplate"),e(bi,"propName","grid-template");var cr=class extends t{};e(cr,"id","GridRowStart"),e(cr,"propName","grid-row-start"),e(cr,"unit","");var Ci=class extends t{};e(Ci,"id","GridTemplateAreas"),e(Ci,"propName","grid-template-areas");var dr=class extends t{};e(dr,"id","GridTemplateColumns"),e(dr,"matches",/^grid-template-cols:./),e(dr,"propName","grid-template-columns");var yi=class extends t{};e(yi,"id","GridTemplateRows"),e(yi,"propName","grid-template-rows");var mr=class extends t{order=-1};e(mr,"id","GridArea"),e(mr,"propName","grid-area"),e(mr,"unit","");var Oe=class extends t{};e(Oe,"id","GridColumnEnd"),e(Oe,"matches",/^grid-col-end:./),e(Oe,"propName","grid-column-end"),e(Oe,"unit","");var fr=class extends t{};e(fr,"id","GridRowEnd"),e(fr,"propName","grid-row-end"),e(fr,"unit","");var Ri=class extends t{get(r){return{"mask-image":r,"-webkit-mask-image":r}}};e(Ri,"id","MaskImage"),e(Ri,"propName","mask-image");var Ae=class extends t{get(r){return{"-webkit-text-fill-color":r}}};e(Ae,"id","TextFillColor"),e(Ae,"matches",/^text-fill-color:./),e(Ae,"colorStarts","(text-fill|text|t):"),e(Ae,"colorful",!0);var Mi=class extends t{get(r){return{"-webkit-text-stroke":r}}};e(Mi,"id","TextStroke"),e(Mi,"matches",/^text-stroke:./);var Ni=class extends t{get(r){return{"-webkit-text-stroke-width":r}}};e(Ni,"id","TextStrokeWidth"),e(Ni,"matches",/^text-stroke(:((thin|medium|thick)(?!\|)|\.?\d((?!\|).)*$)|-width:.)/);var Ie=class extends t{get(r){return{"-webkit-text-stroke-color":r}}};e(Ie,"id","TextStrokeColor"),e(Ie,"matches",/^text-stroke-color:./),e(Ie,"colorStarts","text-stroke:"),e(Ie,"colorful",!0);var ki=class extends t{};e(ki,"id","StrokeDasharray"),e(ki,"propName","stroke-dasharray");var Ti=class extends t{};e(Ti,"id","StrokeDashoffset"),e(Ti,"propName","stroke-dash-offset");var pr=class extends t{};e(pr,"id","X"),e(pr,"propName","x"),e(pr,"unit","");var ur=class extends t{};e(ur,"id","Y"),e(ur,"propName","y"),e(ur,"unit","");var hr=class extends t{};e(hr,"id","Cx"),e(hr,"propName","cx"),e(hr,"unit","");var xr=class extends t{};e(xr,"id","Cy"),e(xr,"propName","cy"),e(xr,"unit","");var vr=class extends t{};e(vr,"id","Rx"),e(vr,"propName","rx"),e(vr,"unit","");var gr=class extends t{};e(gr,"id","Ry"),e(gr,"propName","ry"),e(gr,"unit","");var wi=class extends t{};e(wi,"id","BorderImageOutset"),e(wi,"propName","border-image-outset");var Sr=class extends t{};e(Sr,"id","BorderImageRepeat"),e(Sr,"matches",/^border-image:(?:stretch|repeat|round|space)(?:(?!\|).)*$/),e(Sr,"propName","border-image-repeat");var br=class extends t{};e(br,"id","BorderImageSlice"),e(br,"propName","border-image-slice"),e(br,"unit","");var Cr=class extends t{};e(Cr,"id","BorderImageSource"),e(Cr,"matches",/^border-image:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)(?:(?!\|).)*$/),e(Cr,"propName","border-image-source");var yr=class extends t{};e(yr,"id","BorderImageWidth"),e(yr,"matches",/^border-image:(?:\.?[0-9]|(max|min|calc|clamp)\(.*\))(?:(?!\|).)*$/),e(yr,"propName","border-image-width");var Rr=class extends t{};e(Rr,"id","BorderImage"),e(Rr,"propName","border-image"),e(Rr,"unit","");var ts=/\{(.*)\}/,Mr=class extends t{getThemeProps(r,i){let o={},n=(h,f)=>{let p=f.indexOf(":");if(p!==-1){h in o||(o[h]={});let m=o[h],a=f.slice(0,p);a in m||(m[a]=f.slice(p+1))}},s=h=>{let f=(p,m)=>{let a=m.slice(CSS.escape(h.className).length).match(ts)[1].split(";");for(let v of a)n(p,v)};if(this.themeName){let p=h.natives.find(m=>m.themeName===this.themeName)??h.natives.find(m=>!m.themeName);p&&f(this.themeName,p.text)}else for(let p of h.natives)f(p.themeName,p.text)},l=[],d="",u=()=>{d&&(l.push(d),d="")},c=1;(function h(f){for(;c<r.value.length;c++){let p=r.value[c];if(!f){if(p===";"){u();continue}if(p==="}")break}if(d+=p,f===p){if(f==="'"){let m=0;for(let a=d.length-2;d[a]==="\\";a--)m++;if(m%2)continue}break}else p in kr&&f!=="'"&&(c++,h(kr[p]))}})(void 0),u();for(let h of l){let f=i.findAndNew(h);if(Array.isArray(f))for(let p of f)s(p);else f?s(f):n(this.themeName??"",h)}return o}};e(Mr,"id","Group"),e(Mr,"matches",/^(?:.+?[*_>~+])?\{.+?\}/),e(Mr,"unit","");var Nr=class extends t{};e(Nr,"id","CounterIncrement"),e(Nr,"propName","counter-increment"),e(Nr,"unit","");var Zi=[Mr,Nt,Ee,X,We,_e,J,ze,we,U,Tr,ii,ri,Jr,At,Ot,Tt,wt,It,rt,Pe,je,Ge,Le,xi,ai,Nr,Z,K,He,Ve,$e,be,Vt,Ce,ir,Q,hi,_t,er,Ue,rr,si,Ye,Ne,Qt,Kt,qe,et,tt,it,ot,wr,Or,Ar,Ir,Br,Fr,oe,jr,Gr,Lr,_r,zr,Hr,yt,Mt,Vr,$r,Ct,Ur,Ae,Ni,Ie,Mi,ue,ci,Ze,Xe,ee,te,Ke,Qe,ie,re,Je,se,st,ke,at,ae,nt,lt,ct,ne,ce,Dr,Wr,Er,qt,li,wi,Sr,br,Cr,yr,Rr,dt,mt,Pr,ft,$,pt,de,ut,ht,me,fe,xt,vt,bt,pe,ki,Ti,St,gt,pr,ur,hr,xr,vr,gr,Te,Oe,ge,he,cr,fr,Se,Rt,Et,Pt,Kr,Ci,dr,yi,bi,mr,gi,Yr,ve,Zr,Xr,qr,kt,xe,Bt,Ft,Dt,Wt,jt,Gt,Lt,Qr,ei,ti,zt,Ht,or,oi,ye,ni,$t,Ut,Yt,Re,di,Me,mi,fi,pi,Xt,Zt,Jt,ui,tr,vi,sr,ar,nr,lr,Si,Ri];var Be={colors:Wi,breakpoints:De,semantics:Pi,values:Li,selectors:Ei,themes:ji,Rules:Zi,rootSize:16};function Ji(r){if(typeof window<"u"){let i=new P(r,document.head);return P.root=i,i.observe(document.documentElement),i}else return new P(r)}var rs=[",",".","#","[","!","*",">","+","~",":","@"],ko=typeof document<"u",Ki;ko&&(Ki=document.createElement("style"),Ki.title="master");var _="max-width",L="min-width",is="attributes",To=typeof window<"u",os=To?window.MutationObserver:Object,Qi=class extends os{constructor(o=Be,n){super(s=>{let l={},d=[],u=[],c=[],h=(a,v)=>{v?a.classList.forEach(p):a.classList.forEach(f);let x=a.children;for(let g=0;g<x.length;g++){let N=x[g];N.classList&&(u.push(N),h(N,v))}},f=a=>{a in l?l[a]++:l[a]=1},p=a=>{a in l?l[a]--:l[a]=-1},m=(a,v)=>{for(let x=0;x<a.length;x++){let g=a[x];g.classList&&!u.includes(g)&&!c.includes(g)&&(g.isConnected!==v?(u.push(g),h(g,v)):c.push(g))}};for(let a=0;a<s.length;a++){let v=s[a],{addedNodes:x,removedNodes:g,type:N,target:y,oldValue:E}=v;if(N===is){if(y.className===E||d.find(k=>k.target===y))continue;d.push(v)}else m(x,!1),m(g,!0)}if(!(!d.length&&!Object.keys(l).length)){for(let{oldValue:a,target:v}of d){let x=u.includes(v),g=v.classList,N=a?a.split(" "):[];if(x){if(v.isConnected)continue;for(let y of N)g.contains(y)||p(y)}else if(v.isConnected){g.forEach(y=>{N.includes(y)||f(y)});for(let y of N)g.contains(y)||p(y)}else for(let y of N)p(y)}for(let a in l){let v=l[a],x=(this.countOfName[a]||0)+v;x===0?(delete this.countOfName[a],this.delete(a)):(a in this.countOfName||this.findAndInsert(a),this.countOfName[a]=x)}}});this.config=o;this.container=n;if(this.cache(),!!ko){if(n){let s;for(let l of n.shadowRoot?.styleSheets||document.styleSheets)l.title==="master"&&(s=l.ownerNode);if(s){this.style=s;for(let l=0;l<this.style.sheet.cssRules.length;l++){let d=c=>{if(c.selectorText){let f=c.selectorText.split(", ")[0].split(" ");for(let p=0;p<f.length;p++){let m=f[p];if(m[0]==="."){let a=m.slice(1),v="";for(let x=0;x<a.length;x++){let g=a[x],N=a[x+1];if(g==="\\"){if(x++,N!=="\\"){v+=N;continue}}else if(rs.includes(g))break;v+=g}if(!(v in this.ruleOfClass)&&!(v in this.classes)){let x=this.findAndNew(v);if(x)return x}}}}else if(c.cssRules)for(let h=0;h<c.cssRules.length;h++){let f=d(c.cssRules[h]);if(f)return f}},u=d(this.style.sheet.cssRules[l]);if(u){this.rules.push(u),this.ruleOfClass[u.className]=u;for(let c=0;c<u.natives.length;c++)u.natives[c].cssRule=this.style.sheet.cssRules[l+c];l+=u.natives.length-1}}}else this.style=Ki.cloneNode(),this.container?.prepend(this.style)}Qi.instances.push(this)}}static refresh(o){for(let n of this.instances)n.refresh(o)}style;rules=[];ruleOfClass={};countOfName={};cache(){this.semantics=[],this.classes={},this.colorsThemesMap={},this.relationThemesMap={},this.relations={},this.colorNames=[],this.themeNames=[""],this.selectors={single:[],multiple:[]};let{semantics:o,classes:n,selectors:s,themes:l,colors:d}=this.config;function u(f){return f.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}if(o)for(let f in o)this.semantics.push([new RegExp("^"+u(f)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),f]);if(s)for(let f of Object.entries(s)){let p=typeof f[1]=="string";this.selectors[p?"single":"multiple"].push([new RegExp(u(f[0])+"(?![a-z-])",p?"g":""),f[1]])}let c=(f,p)=>{if(!!p){for(let m in p){let a=p[m],v=Array.isArray(a)?a:a.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");m in this.classes||(this.classes[m]=[]);let x=this.classes[m];for(let g of v)g in this.relationThemesMap?f in this.relationThemesMap[g]?this.relationThemesMap[g][f].push(m):this.relationThemesMap[g][f]=[m]:this.relationThemesMap[g]={[f]:[m]},x.includes(g)||x.push(g)}for(let m in this.relationThemesMap){this.relations[m]=[];for(let a of Object.values(this.relationThemesMap[m]))for(let v of a)this.relations[m].includes(v)||this.relations[m].push(v)}}},h=(f,p)=>{if(!!p)for(let m in p){let a=p[m];if(typeof a=="string"&&(a={"":a}),m in this.colorsThemesMap){let v=this.colorsThemesMap[m];for(let x in a){let g=a[x];x in v?v[x][f]=g:v[x]={[f]:g}}}else this.colorNames.push(m),this.colorsThemesMap[m]=Object.entries(a).reduce((v,[x,g])=>(v[x]={[f]:g},v),{})}};if(c("",n),h("",d),l)if(Array.isArray(l))this.themeNames.push(...l);else for(let f in l){let p=l[f];c(f,p.classes),h(f,p.colors),this.themeNames.push(f)}}semantics;classes;colorsThemesMap;colorNames;themeNames;relationThemesMap;relations;selectors;observe(o,n={subtree:!0,childList:!0}){return n.subtree&&o.querySelectorAll("[class]").forEach(s=>{s.classList.forEach(l=>{l in this.countOfName?this.countOfName[l]++:(this.countOfName[l]=1,this.findAndInsert(l))})}),super.observe(o,{...n,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this}disconnect(){super.disconnect(),this.ruleOfClass={},this.countOfName={},this.rules.length=0;let o=this.style.sheet;if(o)for(let n=o.cssRules.length-1;n>=0;n--)o.deleteRule(n)}findAndNew(o){let n=s=>{if(s in this.ruleOfClass)return this.ruleOfClass[s];for(let l of this.config.Rules){let d=l.match(s,this.colorNames);if(d)return new l(s,d,this)}for(let l of this.semantics)if(s.match(l[0]))return new t(s,{origin:"semantics",value:l[1]},this)};return o in this.classes?this.classes[o].map(n).filter(s=>s):n(o)}refresh(o){if(this.config=o,this.cache(),!this.style)return;let n=Ki.cloneNode();this.style.replaceWith(n),this.style=style,this.rules.length=0,this.ruleOfClass={};for(let s in this.countOfName)this.findAndInsert(s)}destroy(){let o=Qi.instances;this.disconnect(),o.splice(o.indexOf(this),1),this.style.remove()}insert(o){if(this.ruleOfClass[o.className])return;let{validateRule:n}=this.config;if(n&&!n(o,this))return;let s,l=this.rules.length-1,{media:d,order:u,prioritySelectorIndex:c,hasWhere:h,className:f}=o,p=(m,a,v,x)=>{let g,N=0,y;a&&(N=m.findIndex(a)),v&&(y=m.findIndex(v)),N===-1&&(N=m.length),(y===void 0||y===-1)&&(y=m.length),g=m.slice(N,y);for(let E=0;E<g.length;E++){let k=g[E];if(!(k.prioritySelectorIndex===-1||x&&x(k))&&(k.prioritySelectorIndex<c||k.prioritySelectorIndex===c&&(h&&!k.hasWhere||k.order>=u)))return N+E}return N+g.length};if(d){let m=this.rules.findIndex(a=>a.media);if(m!==-1){let a=d.features[_],v=d.features[L];if(a&&v){let x=a.value-v.value;for(let g=l;g>=m;g--){s=g;let N=this.rules[g],y=N.media,E=y.features[_],k=y.features[L];if(!E||!k){s++;break}let C=E.value-k.value;if(C===x){if(h!==N.hasWhere)continue;if(c!==-1){let A=[this.rules[g]];for(let W=g-1;W>=m;W--){let H=this.rules[W];if(H.hasWhere!==h)break;let Y=H.media,V=Y.features[_],T=Y.features[L];if(!V||!T||V.value-T.value!==C)break;A.unshift(this.rules[W])}s=p(this.rules,W=>W.media&&W.prioritySelectorIndex!==-1&&W.media.features[L]&&W.media.features[_])}break}else if(C>x)break}}else if(v)for(let x=m;x<=l;x++){s=x;let g=this.rules[x],N=g.media,y=N.features[_],E=N.features[L];if(y){if(E)break;continue}let k=E?.value;if(k===v.value){if(!h&&g.hasWhere){s++;continue}if(c!==-1)s=p(this.rules,C=>C.media,C=>C.media&&C.prioritySelectorIndex!==-1&&C.media.features[L]&&C.media.features[_],C=>!C.media.features[L]&&!C.media.features[_]);else for(let C=x;C<=l;C++){let A=this.rules[C],W=A.media,H=W.features[L];if(!W.features[_]){if(A.hasWhere!==h||H.value!==k||A.order>=u)break;s=C+1}}break}else{if(k>v.value)break;s++}}else if(a)for(let x=l;x>=m;x--){s=x;let g=this.rules[x],N=g.media,y=N.features[_];if(N.features[L])continue;let k=y?.value;if(!k||k>a.value){s++;break}else if(k===a.value){if(h&&!g.hasWhere)continue;if(c!==-1)s=p(this.rules,C=>C.media,C=>C.media&&C.prioritySelectorIndex!==-1&&C.media.features[L]&&C.media.features[_],C=>!C.media.features[L]&&!C.media.features[_]);else{let C=[this.rules[x]];for(let A=x-1;A>=m;A--){let W=this.rules[A],H=W.media,Y=H.features[L],V=H.features[_];if(!Y&&(!V||V.value!==k||W.hasWhere!==h))break;C.unshift(W)}for(let A=0;A<C.length;A++){let W=C[A];if(!W.media.features[L]){if(W.order>=u)break;s=x-C.length+2+A}}}break}}}if(s===void 0)if(m===-1)s=l+1;else if(c!==-1)s=m+p(this.rules.slice(m),void 0,a=>a.media.features[_]||a.media.features[L]);else if(h){let a=m;for(;a<this.rules.length;a++){let v=this.rules[a];if(v.prioritySelectorIndex!==-1||!v.hasWhere||v.order>=u){s=a;break}}s===void 0&&(s=a)}else for(let a=m;a<=l;a++){s=a;let v=this.rules[a],x=v.media;if(v.prioritySelectorIndex!==-1||x.features[_]||x.features[L])break;if(v.hasWhere)s++;else if(v.order>=u)break}}else if(c===-1)if(h)s=this.rules.findIndex(m=>!m.hasWhere||m.media||m.prioritySelectorIndex!==-1||m.order>=u),s===-1&&(s=l+1);else{let m=0;for(;m<this.rules.length;m++){let a=this.rules[m];if(a.media||!a.hasWhere&&(a.order>=u||a.prioritySelectorIndex!==-1)){s=m;break}}s===void 0&&(s=m)}else s=p(this.rules,void 0,m=>m.media);if(this.rules.splice(s,0,o),this.ruleOfClass[f]=o,this.style)try{let m=this.style.sheet,a=0,v=this.rules[s-1];if(v){let x=v.natives[v.natives.length-1].cssRule;for(let g=0;g<m.cssRules.length;g++)if(m.cssRules[g]===x){a=g+1;break}}for(let x of o.natives)m.insertRule(x.text,a),x.cssRule=m.cssRules[a++]}catch(m){console.error(m)}}delete(o){let n=this.style.sheet,s=l=>{let d=this.ruleOfClass[l];if(!d||l in this.relations&&this.relations[l].some(c=>c in this.countOfName))return;let u=d.natives[0];for(let c=0;c<n.cssRules.length;c++)if(n.cssRules[c]===u.cssRule){for(let f=0;f<d.natives.length;f++)n.deleteRule(c);this.rules.splice(this.rules.indexOf(d),1),delete this.ruleOfClass[o];break}};if(o in this.classes)for(let l of this.classes[o])l in this.countOfName||s(l);else s(o)}findAndInsert(o){let n=this.findAndNew(o);if(Array.isArray(n))for(let s of n)this.insert(s);else n&&this.insert(n)}},P=Qi;e(P,"init",Ji),e(P,"defaultConfig",Be),e(P,"instances",[]),e(P,"root");To&&(window.MasterCSS=P);function wo(r,i){return Array.isArray(r)&&Array.isArray(i)?r.concat(i):i}function eo(r){return Object.prototype.toString.call(r).slice(8,-1)}function Oi(r){return eo(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function fo(r){return eo(r)==="Symbol"}function Oo(r,i,o,n){let s={}.propertyIsEnumerable.call(n,i)?"enumerable":"nonenumerable";s==="enumerable"&&(r[i]=o),s==="nonenumerable"&&Object.defineProperty(r,i,{value:o,enumerable:!1,writable:!0,configurable:!0})}function Ao(r,i,o){if(!Oi(i))return i;let n={};if(Oi(r)){let u=Object.getOwnPropertyNames(r),c=Object.getOwnPropertySymbols(r);n=[...u,...c].reduce((h,f)=>{let p=r[f];return(!fo(f)&&!Object.getOwnPropertyNames(i).includes(f)||fo(f)&&!Object.getOwnPropertySymbols(i).includes(f))&&Oo(h,f,p,r),h},{})}let s=Object.getOwnPropertyNames(i),l=Object.getOwnPropertySymbols(i);return[...s,...l].reduce((u,c)=>{let h=i[c],f=Oi(r)?r[c]:void 0;f!==void 0&&Oi(h)&&(h=Ao(f,h,o));let p=o?o(f,h,c):h;return Oo(u,c,p,i),u},n)}function to(r,...i){return i.filter(o=>Oi(o)).reduce((o,n)=>Ao(o,n,wo),r)}function Io(...r){return r.length?to(Be,...r):Be}var mR=so(ro());function Fo(r,i=new P){if(!!r?.length){for(let o of r)o in i.countOfName||(i.findAndInsert(o),i.countOfName[o]=1);return i.rules.map(o=>o.natives.reduce((n,s)=>n+s.text,"")).join("")}}var uR=so(ro());function io(r,i=new P){if(!r)return;let o=/\sclass="([^"]*)"/gm,n;for(;n=o.exec(r);){let s=n[1].replace(/\n/g,"").split(" ").filter(l=>l);for(let l of s)l in i.countOfName||(i.findAndInsert(l),i.countOfName[l]=1)}return i.rules.map(s=>s.natives.reduce((l,d)=>l+d.text,"")).join("")}var vR=so(ro());function Do(r,i=new P){if(!!r)return r.replace(/(<head>)/,`$1<style title="master">${io(r,i)}</style>`)}
1
+ var Po=Object.create;var Ii=Object.defineProperty;var Go=Object.getOwnPropertyDescriptor;var Lo=Object.getOwnPropertyNames;var _o=Object.getPrototypeOf,zo=Object.prototype.hasOwnProperty;var Ho=(r,i,o)=>i in r?Ii(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o;var Vo=(r,i)=>()=>(i||r((i={exports:{}}).exports,i),i.exports),$o=(r,i)=>{for(var o in i)Ii(r,o,{get:i[o],enumerable:!0})},xo=(r,i,o,n)=>{if(i&&typeof i=="object"||typeof i=="function")for(let s of Lo(i))!zo.call(r,s)&&s!==o&&Ii(r,s,{get:()=>i[s],enumerable:!(n=Go(i,s))||n.enumerable});return r};var ao=(r,i,o)=>(o=r!=null?Po(_o(r)):{},xo(i||!r||!r.__esModule?Ii(o,"default",{value:r,enumerable:!0}):o,r)),Uo=r=>xo(Ii({},"__esModule",{value:!0}),r);var e=(r,i,o)=>(Ho(r,typeof i!="symbol"?i+"":i,o),o);var io=Vo((uo,Fo)=>{(function(r,i){typeof uo=="object"?Fo.exports=i(r):typeof define=="function"&&define.amd?define([],i.bind(r,r)):i(r)})(typeof global<"u"?global:uo,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var i=function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");var n=String(o),s=n.length,l=-1,d,u="",c=n.charCodeAt(0);if(s==1&&c==45)return"\\"+n;for(;++l<s;){if(d=n.charCodeAt(l),d==0){u+="\uFFFD";continue}if(d>=1&&d<=31||d==127||l==0&&d>=48&&d<=57||l==1&&d>=48&&d<=57&&c==45){u+="\\"+d.toString(16)+" ";continue}if(d>=128||d==45||d==95||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122){u+=n.charAt(l);continue}u+="\\"+n.charAt(l)}return u};return r.CSS||(r.CSS={}),r.CSS.escape=i,i})});var ns={};$o(ns,{DefaultRules:()=>Ji,MasterCSSRule:()=>t,configure:()=>Bo,default:()=>P,defaultBreakpoints:()=>De,defaultColors:()=>Ei,defaultConfig:()=>Fe,defaultRootSize:()=>no,defaultSelectors:()=>ji,defaultSemantics:()=>Pi,defaultThemes:()=>Gi,defaultValues:()=>_i,extend:()=>ro,fillColorScale:()=>F,init:()=>Ki,render:()=>Do,renderFromHTML:()=>oo,renderIntoHTML:()=>Wo});module.exports=Uo(ns);var De={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560};function Bi(r){r.startsWith("#")&&(r=r.slice(1));let i=r.match(/.{1,2}/g);return[parseInt(i[0],16),parseInt(i[1],16),parseInt(i[2],16)]}function vo(r,i,o){return((1<<24)+(r<<16)+(i<<8)+o).toString(16).slice(1)}function F(r){typeof r=="string"&&(r={"":r});let i=""in r,o=!1;for(let n in r)if(n&&+n>=100){o=!0;break}if(!o&&(!i||Object.keys(r).length>1)){let n=0,s="0"in r?Bi(r[0]):[0,0,0],l,d,u=[],c=()=>{let x=l-n,f=d.map((p,m)=>(p-s[m])/x);for(let p of u){let m=p-n,a=s.map((v,h)=>Math.round(v+f[h]*m));r[p]="#"+vo.call(this,...a)}};for(let x=1;x<100;x++)x in r?(u.length?(l=x,d=Bi(r[x]),c(),u.length=0,s=d):s=Bi(r[x]),n=x):u.push(x);u.length&&(l=100,d="100"in r?Bi(r[100]):[255,255,255],c())}return i||(r[""]=r[o?"500":"50"]),r}var Ei={slate:F({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:F({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:F({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:F({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:F({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:F({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:F({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:F({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:F({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:F({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:F({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:F({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:F({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:F({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:F({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:F({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:F({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:F({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:F({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:F({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"}),black:"#000000",white:"#ffffff"};var no=16;var ji={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("};var Pi={square:"aspect-ratio:1/1",video:"aspect-ratio:16/9",rounded:"border-radius:1e9em",round:"border-radius:50%",hidden:"display:none",hide:"display:none",block:"display:block",table:"display:table",flex:"display:flex",grid:"display:grid",contents:"display:contents",inline:"display:inline","inline-block":"display:inline-block","inline-flex":"display:inline-flex","inline-grid":"display:inline-grid","inline-table":"display:inline-table","table-cell":"display:table-cell","table-caption":"display:table-caption","flow-root":"display:flow-root","list-item":"display:list-item","table-row":"display:table-row","table-column":"display:table-column","table-row-group":"display:table-row-group","table-column-group":"display:table-column-group","table-header-group":"display:table-header-group","table-footer-group":"display:table-footer-group",italic:"font-style:italic",oblique:"font-style:oblique",isolate:"isolation:isolate",overflow:"overflow:visible",untouchable:"pointer-events:none",static:"position:static",fixed:"position:fixed",abs:"position:absolute",rel:"position:relative",sticky:"position:sticky",uppercase:"text-transform:uppercase",lowercase:"text-transform:lowercase",capitalize:"text-transform:capitalize",visible:"visibility:visible",invisible:"visibility:hidden","center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"}};var Gi=["dark","light"];var Fi={content:"content-box",border:"border-box",padding:"padding-box"},Li={min:"min-content",max:"max-content"},X={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let r in De)X[r]=De[r]/16+"rem";var _i={BackgroundClip:Fi,BackgroundOrigin:Fi,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...Fi,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},FlexDirection:{col:"column","col-reverse":"column-reverse"},FontFamily:{mono:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",sans:"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji",serif:"ui-serif, Georgia, Cambria, Times New Roman, Times, serif"},FontWeight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},GridAutoColumns:Li,GridAutoRows:Li,GridTemplateColumns:Li,GridTemplateRows:Li,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...Fi,margin:"margin-box"},TransformBox:{...Fi,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:X,MinWidth:X,MinHeight:X,MaxWidth:X,MaxHeight:X,Height:X,FlexBasis:X};function zi(r,i){return(r?r+":":"")+(i.unit?i.value+i.unit:i.value)+(i.important?"!important":"")}function go(r){let i=u=>u==="+"||u==="-"||u==="*"||u==="/",o="",n,s="",l=!1;function d(){n=null,s=""}for(let u=0;u<r.length;u++){let c=r[u];if(c==="("||c===")")l=c===")",o+=s+c,d();else if(c===",")o+=s+c+" ",d();else{switch(n){case 1:break;case 2:if(i(c)){o+=s+" "+c+" ",d();continue}break;default:l&&(s+=" "),isNaN(+c)?i(c)||(n=1):n=2;break}s+=c}}return s&&(o+=s),o}var Yo=/^([+-.]?\d+(\.?\d+)?)(.*)?/,qo="var(--";function Hi(r,i,o,n,s,l){let d=n?n[r]:"",u="",c="",x;if(d)return{value:d,unit:u,unitToken:c};if(typeof r=="number")d=r,u=i||"";else{if(o){let f=Object.keys(o),p=!1,m=!1;r=r.replace(new RegExp(`(^|,| |\\()(${f.join("|")})(?:-([0-9]+))?(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(a,v,h,g,N)=>{m=!0;let R=o[h]?.[g||""];if(R){let E;for(let I of l)if(E=R[I])break;if(E){p=!0;let I=E;if(N){let C=N.endsWith("%")?parseFloat(N)/100:+N;C=isNaN(C)?1:Math.min(Math.max(C,0),1),I+=Math.round(C*255).toString(16).toUpperCase().padStart(2,"0")}return v+I}}return a}),m&&(x=p)}if(i){let f=r.match(Yo);if(f)if(r.includes("/")){let p=r.split("/");return{value:+p[0]/+p[1]*100+"%",unit:u,unitToken:c}}else return d=+f[1],u=c=f[3]||"",u||((i==="rem"||i==="em")&&(d=d/s),u=i||""),{value:d,unit:u,unitToken:c}}d=(r.indexOf("calc(")===-1?r:go(r)).replace(/\$\(((\w|-)+)\)/g,qo+"$1)")}return{value:d,unit:u,unitToken:c,colorMatched:x}}var kr={"(":")","'":"'","{":"}"};var So=[":disabled",":active",":focus",":hover"],Vi="matches",Xo="semantics",bo="symbol",yo="width",lo="max-"+yo,co="min-"+yo,fo="motion",Ro="reduce",Co=Ro+"d-"+fo,mo="px",Zo="rem",Jo=["!","*",">","+","~",":","[","@","_"],Ko=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,Qo=r=>r.split(Ko).map((i,o)=>o%3?i:i.replace(/\_/g," ")).join(""),t=class{constructor(i,o,n){this.className=i;this.matching=o;this.css=n;let s=this.constructor,{id:l,unit:d,propName:u,colorful:c}=s,{breakpoints:x,mediaQueries:f,semantics:p,rootSize:m}=n.config,a=n.config.values[l],v=n.relationThemesMap[i],{themeNames:h,colorsThemesMap:g,selectors:N}=n,R=i,E,I,C,B;if(o.origin===Xo)C=R.slice(o.value.length),E=p[o.value];else{let A;if(o.origin===Vi)if(l==="Group"){let k=0;for(;k<R.length&&!(R[k]==="{"&&R[k-1]!=="\\");k++);I=R.slice(0,k),A=R.slice(k)}else{let k=R.indexOf(":");this.prefix=R.slice(0,k+1),this.prefix.includes("(")?(this.prefix=void 0,A=R):A=R.slice(k+1)}else o.origin===bo&&(this.symbol=R[0],A=R.slice(1));B=[];let b="",y=0;(function k(W,M,T=""){let S,w=!1;for(W&&(W===")"&&b.slice(-1)==="$"?S=b.length-1:W==="'"&&(w=!0),b+=A[y++]);y<A.length;y++){let O=A[y];if(O===W){if(b+=O,w){let j=0;for(let z=b.length-2;b[z]==="\\";z--)j++;if(j%2)continue}S!==void 0&&(b=b.slice(0,S)+b.slice(S).replace(/\$\((.*)\)/,"var(--$1)")),M||(w?B.push(b):B.push({value:b}),T="",b="");break}else if(!w&&O in kr)k(kr[O],M===void 0?0:M+1,T);else if(O==="|"&&W!=="}"&&(!w||T==="path"))W?b+=" ":(B.push({value:b}),b="");else{if(!W){if(O==="."){if(isNaN(+A[y+1]))break;A[y-1]==="-"&&(b+="0")}else if(O===","){B.push({value:b},","),b="";continue}else if(O==="#"&&(b||B.length&&A[y-1]!=="|")||Jo.includes(O))break;T+=O}b+=O}}})(),b&&B.push({value:b}),C=A.slice(y)}C[0]==="!"&&(this.important=!0,C=C.slice(1));let D=A=>{let b=Qo(A),y=[],k="",W=0;for(let M=0;M<b.length;M++){let T=b[M];if(T==="\\"){k+=T+b[++M];continue}!W&&T===","?(y.push(k),k=""):(k+=T,W&&T===")"?W--:T==="("&&W++)}return k&&y.push(k),y};this.prefixSelectors=I?D(I):[""];let H=C.split("@"),$=H[0];if($){this.vendorSuffixSelectors={};let A=(M,T,S,w)=>{for(let[O,j]of T)if(O.test(M)){for(let z of j)A(M.replace(O,z),T,S,!0);return}w&&S.push(M)},b=[];""in N?A($,N[""],b,!0):b.push($);let y={};for(let[M,T]of Object.entries(N)){if(!M)continue;let S=[];for(let w of b)A(w,T,S,!1);S.length&&(y[M]=S)}let k=(M,T)=>{let S=T.reduce((w,O)=>(w.push(...D(O)),w),[]);M in this.vendorSuffixSelectors?this.vendorSuffixSelectors[M].push(...S):this.vendorSuffixSelectors[M]=S},W=Object.keys(y);if(W.length)for(let M of W)k(M,y[M]);else k("",b);for(let M of Object.values(this.vendorSuffixSelectors))for(let T of M){this.hasWhere!==!1&&(this.hasWhere=T.includes(":where("));for(let S=0;S<So.length;S++)if(T.includes(So[S])){(this.prioritySelectorIndex===-1||this.prioritySelectorIndex>S)&&(this.prioritySelectorIndex=S);break}}}else this.vendorSuffixSelectors={"":[""]};for(let A=1;A<H.length;A++){let b=H[A];if(b)if(h.includes(b))this.themeName=b;else if(b==="rtl"||b==="ltr")this.direction=b;else{let y,k,W=b.indexOf("_");if(W!==-1)y=b.slice(0,W),k=b.slice(W);else{let M=b.indexOf("(");M!==-1&&(y=b.slice(0,M),k=b.slice(M))}if(!y){y="media";let M=[];this.media={token:b,features:{}};let T=b.split("&");for(let S of T)if(S==="all"||S==="print"||S==="screen"||S==="speech")this.media.type=S;else if(S==="\u{1F5A8}")this.media.type="print";else if(S==="landscape"||S==="portrait")M.push("(orientation:"+S+")");else if(S===fo||S===Co)M.push("(prefers-"+Co+":"+(S===fo?"no-preference":Ro)+")");else if(f&&S in f)M.push(f[S]);else{let w={token:S},O="",j="",z=0;switch(S.startsWith("<=")?(j="<=",O=lo):S.startsWith(">=")||x[S]?(j=">=",O=co):S.startsWith(">")?(j=">",O=co,z=.02):S.startsWith("<")&&(j="<",O=lo,z=-.02),O){case lo:case co:let q=j?S.replace(j,""):S,G=x[q];G?Object.assign(w,Hi(G,mo)):Object.assign(w,Hi(q,mo)),w.unit===mo&&(w.value+=z),this.media.features[O]=w,M.push("("+O+":"+(w.value+w.unit)+")");break}}k="",this.media.type&&(k=this.media.type),M.length&&(k+=(k?" and ":"")+M.join(" and "))}k&&(this.at[y]=(y in this.at?this.at[y]+" and ":"")+k.replace(/\_/g," "))}}this.order===void 0&&(this.order=0);let V=(A,b)=>{let y,k,W=(T,S,w)=>{let O="";this.direction&&(O+="[dir="+this.direction+"] ");let j=this.prefixSelectors.map(G=>G+O),z=(G,Di)=>{let Ai=G?"."+G+" ":"",so="."+CSS.escape(Di);return j.map(Wi=>Ai+Wi).reduce((Wi,Eo)=>(Wi.push(w.reduce((ho,jo)=>(ho.push(Eo+so+jo),ho),[]).join(",")),Wi),[]).join(",")},q=z(S,i)+(v?Object.entries(v).filter(([G])=>this.themeName||!c||!S||!G||G===S).map(([G,Di])=>Di.reduce((Ai,so)=>Ai+","+z(this.themeName??(c&&S||G),so),"")).join(""):"")+"{"+T+"}";for(let G of Object.keys(this.at).sort((Di,Ai)=>Ai==="supports"?-1:1))q="@"+G+" "+this.at[G]+"{"+q+"}";return q},M=[];if(B){let T,S;for(let w of B)typeof w=="string"?M.push(w):(T=Hi(w.value,d,c&&g,a,m,this.themeName?[this.themeName,""]:[A]),T.colorMatched!==void 0&&S!==!0&&(S=T.colorMatched),M.push(T.value+T.unit));if(b&&(S===void 0?A:!S))return;if(M.length===1?T?(y=T.value,k=T.unit):y=M[0]:y=M.reduce((w,O,j)=>w+O+(O===","||B[j+1]===","||j===B.length-1?"":" "),""),typeof y!="object"){this.parseValue&&(y=this.parseValue(y,this.css.config)),c&&y==="current"?y="currentColor":a&&y in a&&(y=a[y].toString());let w={unit:k,value:y,important:this.important};if(this.getThemeProps){let O=this.getThemeProps(w,n);for(let j in O)for(let z of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:k,value:y,text:W(Object.entries(O[j]).map(([q,G])=>zi(q,{important:this.important,unit:"",value:G})).join(";"),j,z),themeName:j});return}else this.get&&(y=this.get(w))}}else y=E;for(let T of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:k,value:y,text:W(typeof y=="object"?Object.entries(y).map(([S,w])=>zi(S,{...typeof w=="object"?w:{unit:"",value:w},important:this.important})).join(";"):zi(u,{unit:k,value:y,important:this.important}),A,T),themeName:A})};if(this.getThemeProps)V(void 0,!1);else if(this.themeName)V(this.themeName,!1);else if(c)for(let A of h)V(A,!0);else V("",!1)}prefix;symbol;token;prefixSelectors;vendorSuffixSelectors;important;media;at={};direction;themeName;unitToken;hasWhere;prioritySelectorIndex=-1;natives=[];static match(i,o){if(this.matches&&this.matches.test(i))return{origin:Vi};if(this.colorStarts&&(i.match("^"+this.colorStarts+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current))")||o.length&&i.match("^"+this.colorStarts+"("+o.join("|")+")")&&i.indexOf("|")===-1))return{origin:Vi};if(this.symbol&&i.startsWith(this.symbol))return{origin:bo};if(this.propName&&i.startsWith(this.propName+":"))return{origin:Vi}}};e(t,"id"),e(t,"propName"),e(t,"matches"),e(t,"colorStarts"),e(t,"symbol"),e(t,"unit",Zo),e(t,"colorful");typeof window<"u"&&(window.MasterCSSRule=t);var Z=class extends t{};e(Z,"id","FontWeight"),e(Z,"matches",/^f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|bolder|extrabold|heavy)(?!\|)/),e(Z,"propName","font-weight"),e(Z,"unit","");var We=class extends t{};e(We,"id","FontFamily"),e(We,"matches",/^f(ont)?:(mono|sans|serif)(?!\|)/),e(We,"propName","font-family");var Ee=class extends t{};e(Ee,"id","FontSize"),e(Ee,"matches",/^f(ont)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(Ee,"propName","font-size");var Tr=class extends t{get(r){let o=this.prefix[0]==="m"?"margin":"padding",n=o+"-left",s=o+"-right",l=o+"-top",d=o+"-bottom";switch(this.prefix[1]){case"x":return{[n]:r,[s]:r};case"y":return{[l]:r,[d]:r};case"l":return{[n]:r};case"r":return{[s]:r};case"t":return{[l]:r};case"b":return{[d]:r};default:return{[o]:r}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};e(Tr,"id","Spacing"),e(Tr,"matches",/^[pm][xytblr]?:./);var je=class extends t{};e(je,"id","Width"),e(je,"matches",/^w:./),e(je,"propName","width");var Pe=class extends t{};e(Pe,"id","Height"),e(Pe,"matches",/^h:./),e(Pe,"propName","height");var Ge=class extends t{};e(Ge,"id","MinWidth"),e(Ge,"matches",/^min-w:./),e(Ge,"propName","min-width");var Le=class extends t{};e(Le,"id","MinHeight"),e(Le,"matches",/^min-h:./),e(Le,"propName","min-height");var J=class extends t{};e(J,"id","LetterSpacing"),e(J,"matches",/^ls:./),e(J,"propName","letter-spacing"),e(J,"unit","em");var es="subpixel-antialiased",Mo="-webkit-font-smoothing",No="-moz-osx-font-smoothing",_e=class extends t{get(r){let i={};switch(r.value){case es:i[Mo]=i[No]={...r,value:"auto"};break;case"antialiased":i[Mo]={...r,value:"antialiased"},i[No]={...r,value:"grayscale"};break}return i}};e(_e,"id","FontSmoothing"),e(_e,"matches",/^f(ont)?:(antialiased|subpixel-antialiased)(?!\|)/),e(_e,"unit","");var K=class extends t{};e(K,"id","FontStyle"),e(K,"matches",/^f(ont)?:(normal|italic|oblique)(?!\|)/),e(K,"propName","font-style"),e(K,"unit","deg");var ze=class extends t{};e(ze,"id","FontVariantNumeric"),e(ze,"matches",/^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!\|)/),e(ze,"propName","font-variant-numeric");var Q=class extends t{};e(Q,"id","LineHeight"),e(Q,"matches",/^lh:./),e(Q,"propName","line-height"),e(Q,"unit","");var He=class extends t{};e(He,"id","ObjectFit"),e(He,"matches",/^(object|obj):(contain|cover|fill|scale-down)/),e(He,"propName","object-fit");var Ve=class extends t{};e(Ve,"id","ObjectPosition"),e(Ve,"matches",/^(object|obj):(top|bottom|right|left|center)/),e(Ve,"propName","object-position");var $e=class extends t{};e($e,"id","TextAlign"),e($e,"matches",/^t(ext)?:(justify|center|left|right|start|end)(?!\|)/),e($e,"propName","text-align");var ee=class extends t{order=-1};e(ee,"id","TextDecoration"),e(ee,"matches",/^t(ext)?:(underline|line-through|overline)/),e(ee,"propName","text-decoration"),e(ee,"colorful",!0);var Ue=class extends t{};e(Ue,"id","TextTransform"),e(Ue,"matches",/^t(ext)?:(uppercase|lowercase|capitalize)(?!\|)/),e(Ue,"propName","text-transform");var Ye=class extends t{};e(Ye,"id","VerticalAlign"),e(Ye,"matches",/^(?:v|vertical):./),e(Ye,"propName","vertical-align");var qe=class extends t{get(r){return{overflow:{...r,value:"hidden"},display:{...r,value:"-webkit-box"},"overflow-wrap":{...r,value:"break-word"},"text-overflow":{...r,value:"ellipsis"},"-webkit-box-orient":{...r,value:"vertical"},"-webkit-line-clamp":r}}};e(qe,"id","Lines"),e(qe,"matches",/^lines:./),e(qe,"unit","");var te=class extends t{};e(te,"id","TransformOrigin"),e(te,"matches",/^transform:((top|bottom|right|left|center)|\d)/),e(te,"propName","transform-origin"),e(te,"unit","px");var Xe=class extends t{};e(Xe,"id","TransformStyle"),e(Xe,"matches",/^transform:(flat|preserve-3d)(?!\|)/),e(Xe,"propName","transform-style");var Ze=class extends t{};e(Ze,"id","TransformBox"),e(Ze,"matches",/^transform:(content|border|fill|stroke|view)(?!\|)/),e(Ze,"propName","transform-box");var re=class extends t{parseValue(r,{rootSize:i}){return r.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,(o,n,s,l)=>{let d,u;switch(n){case"translate":d="rem";break;case"skew":d="deg";break;case"rotate":s==="3d"&&(u=!0),d="deg";break;default:return o}let c=l.split(",");return o.replace(l,c.map((x,f)=>!u||c.length-1===f?Number.isNaN(+x)?x:x/(d==="rem"?i:1)+d:x).join(","))})}};e(re,"id","Transform"),e(re,"matches",/^(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\(/),e(re,"propName","transform"),e(re,"unit","");var Je=class extends t{order=-1};e(Je,"id","Transition"),e(Je,"symbol","~"),e(Je,"propName","transition");var ie=class extends t{};e(ie,"id","TransitionDelay"),e(ie,"matches",/^~delay:./),e(ie,"propName","transition-delay"),e(ie,"unit","ms");var oe=class extends t{};e(oe,"id","TransitionDuration"),e(oe,"matches",/^~duration:./),e(oe,"propName","transition-duration"),e(oe,"unit","ms");var Ke=class extends t{};e(Ke,"id","TransitionProperty"),e(Ke,"matches",/^~property:./),e(Ke,"propName","transition-property");var Qe=class extends t{};e(Qe,"id","TransitionTimingFunction"),e(Qe,"matches",/^~easing:./),e(Qe,"propName","transition-timing-function");var et=class extends t{};e(et,"id","MaxHeight"),e(et,"matches",/^max-h:./),e(et,"propName","max-height");var tt=class extends t{};e(tt,"id","MaxWidth"),e(tt,"matches",/^max-w:./),e(tt,"propName","max-width");var rt=class extends t{};e(rt,"id","Display"),e(rt,"matches",/^d:./),e(rt,"propName","display");var it=class extends t{};e(it,"id","BoxSizing"),e(it,"matches",/^box:(content|border)(?!\|)/),e(it,"propName","box-sizing");var ot=class extends t{};e(ot,"id","Opacity"),e(ot,"propName","opacity"),e(ot,"unit","");var wr=class extends t{};e(wr,"id","Visibility"),e(wr,"propName","visibility");var Or=class extends t{};e(Or,"id","Clear"),e(Or,"propName","clear");var Ar=class extends t{};e(Ar,"id","Float"),e(Ar,"propName","float");var Ir=class extends t{};e(Ir,"id","Isolation"),e(Ir,"propName","isolation");var Br=class extends t{get(r){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":r};case"y":return{"overflow-y":r}}return{overflow:r}}get order(){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":case"y":return 0}return-1}};e(Br,"id","Overflow"),e(Br,"matches",/^overflow(-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\$|var)/);var Fr=class extends t{get(r){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":r};case"y":return{"overscroll-behavior-y":r};default:return{"overscroll-behavior":r}}}};e(Fr,"id","OverscrollBehavior"),e(Fr,"matches",/^overscroll-behavior(?:-[xy])?:/);var se=class extends t{};e(se,"id","ZIndex"),e(se,"matches",/^z:./),e(se,"propName","z-index"),e(se,"unit","");var ae=class extends t{};e(ae,"id","AnimationDelay"),e(ae,"matches",/^\@delay:./),e(ae,"propName","animation-delay"),e(ae,"unit","ms");var st=class extends t{};e(st,"id","AnimationDirection"),e(st,"matches",/^\@direction:./),e(st,"propName","animation-direction");var at=class extends t{};e(at,"id","AnimationFillMode"),e(at,"matches",/^\@fill-mode:./),e(at,"propName","animation-fill-mode");var ne=class extends t{};e(ne,"id","AnimationIterationCount"),e(ne,"matches",/^\@iteration-count:./),e(ne,"propName","animation-interation-count"),e(ne,"unit","");var nt=class extends t{};e(nt,"id","AnimationName"),e(nt,"matches",/^\@name:./),e(nt,"propName","animation-name");var lt=class extends t{};e(lt,"id","AnimationPlayState"),e(lt,"matches",/^\@play-state:./),e(lt,"propName","animation-play-state");var ct=class extends t{};e(ct,"id","AnimationTimingFunction"),e(ct,"matches",/^\@easing:./),e(ct,"propName","animation-timing-function");var le=class extends t{order=-1};e(le,"id","Animation"),e(le,"symbol","@"),e(le,"propName","animation"),e(le,"unit","");var $i="border-";function ce(r,i,o=""){o&&(o="-"+o);let n=/^b(order)?-?(.)?/.exec(r)[2],s=$i+"left"+o,l=$i+"right"+o,d=$i+"top"+o,u=$i+"bottom"+o;switch(n){case"x":return{[s]:i,[l]:i};case"y":return{[d]:i,[u]:i};case"l":return{[s]:i};case"r":return{[l]:i};case"t":return{[d]:i};case"b":return{[u]:i};default:return{["border"+o]:i}}}var de=class extends t{get(r){return ce(this.prefix,r,"color")}get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(de,"id","BorderColor"),e(de,"matches",/^border(-(left|right|top|bottom))?-color:./),e(de,"colorStarts","b([xytblr]|(order(-(left|right|top|bottom))?))?:"),e(de,"colorful",!0);var Ui="border-top-left-radius",Yi="border-top-right-radius",qi="border-bottom-left-radius",Xi="border-bottom-right-radius",ko="border-radius",ts=[Ui,Yi,qi,Xi],Dr=class extends t{get(r){if(this.prefix){let o="",n=this.prefix.split("-");if(n.length>1)for(let s=1;s<n.length-1;s++)o+=n[s][0];else o=this.prefix.slice(1,-1);switch(o){case"t":return{[Ui]:r,[Yi]:r};case"tl":case"lt":return{[Ui]:r};case"rt":case"tr":return{[Yi]:r};case"b":return{[qi]:r,[Xi]:r};case"bl":case"lb":return{[qi]:r};case"br":case"rb":return{[Xi]:r};case"l":return{[Ui]:r,[qi]:r};case"r":return{[Yi]:r,[Xi]:r};default:return{[ko]:r}}}let i=this.prefix?.slice(0,-1);return{[ts.includes(i)?i:ko]:r}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};e(Dr,"id","BorderRadius"),e(Dr,"matches",/^((r[tblr]?[tblr]?|border(-(top|bottom)-(left|right))?-radius):.)/);var Wr=class extends t{get(r){return ce(this.prefix,r,"style")}get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Wr,"id","BorderStyle"),e(Wr,"matches",/^(border(-(left|right|top|bottom))?-style:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|))/);var Er=class extends t{get(r){return ce(this.prefix,r,"width")}get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Er,"id","BorderWidth"),e(Er,"matches",/^(border(-(left|right|top|bottom))?-width:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(([0-9]|(max|min|calc|clamp)\(.*\))|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/);var dt=class extends t{get(r){return ce(this.prefix,r)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};e(dt,"id","Border"),e(dt,"matches",/^b([xytblr]?|order(-(left|right|top|bottom))?):./),e(dt,"colorful",!0);var mt=class extends t{};e(mt,"id","BackgroundAttachment"),e(mt,"matches",/^(bg|background):(fixed|local|scroll)(?!\|)/),e(mt,"propName","background-attachment");var jr=class extends t{};e(jr,"id","BackgroundBlendMode"),e(jr,"propName","background-blend-mode");var ft=class extends t{get(r){return{"-webkit-background-clip":r,"background-clip":r}}};e(ft,"id","BackgroundClip"),e(ft,"matches",/^(bg|background):text(?!\|)/),e(ft,"propName","background-clip");var U=class extends t{};e(U,"id","BackgroundColor"),e(U,"colorStarts","(bg|background):"),e(U,"propName","background-color"),e(U,"unit",""),e(U,"colorful",!0);var pt=class extends t{};e(pt,"id","BackgroundOrigin"),e(pt,"matches",/^(bg|background):(content|border|padding)(?!\|)/),e(pt,"propName","background-origin");var me=class extends t{};e(me,"id","BackgroundPosition"),e(me,"matches",/^(bg|background):(top|bottom|right|left|center)(?!\|)/),e(me,"propName","background-position"),e(me,"unit","px");var ut=class extends t{};e(ut,"id","BackgroundRepeat"),e(ut,"matches",/^(bg|background):(space|round|repeat|no-repeat|repeat-x|repeat-y)(?![;a-zA-Z])/),e(ut,"propName","background-repeat");var ht=class extends t{};e(ht,"id","BackgroundSize"),e(ht,"matches",/^(bg|background):((auto|cover|contain)(?!\|)|\.?\d((?!\|).)*$)/),e(ht,"propName","background-size");var fe=class extends t{};e(fe,"id","BackgroundImage"),e(fe,"matches",/^(bg|background):(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(fe,"propName","background-image"),e(fe,"colorful",!0);var pe=class extends t{order=-1};e(pe,"id","Background"),e(pe,"matches",/^bg:./),e(pe,"propName","background"),e(pe,"colorful",!0);var xt=class extends t{};e(xt,"id","MixBlendMode"),e(xt,"matches",/^blend:./),e(xt,"propName","mix-blend-mode");var Pr=class extends t{};e(Pr,"id","Position"),e(Pr,"propName","position");var Gr=class extends t{get(r){let i=this.prefix.slice(0,-1);switch(i){case"top":case"left":case"right":case"bottom":return{[i]:r};case"center":return{left:r,right:r,"margin-left":{...r,unit:""},"margin-right":{...r,unit:""}};case"middle":return{top:r,bottom:r,"margin-top":{...r,unit:""},"margin-bottom":{...r,unit:""}}}}};e(Gr,"id","Placement"),e(Gr,"matches",/^(top|left|right|bottom|center|middle):./);function Zi(r,i,{rootSize:o}){let n="",s=0;return function l(d,u){let c="",x=u?i(u):"",f=()=>{c&&(n+=!x||Number.isNaN(+c)?c:+c/(x==="rem"?o:1)+x,c="")};for(;s<r.length;s++){let p=r[s];if(p===d&&(d!=="'"||r[s+1]===")")){f(),n+=p;break}else p===","||p===" "?(f(),n+=p):!c&&p==="'"?(n+=p,s++,l(p),c=""):c&&p==="("?(n+=c+p,s++,l(")",c),c=""):c+=p}f()}(),n}var vt=class extends t{get(r){return{"backdrop-filter":r,"-webkit-backdrop-filter":r}}parseValue(r,i){return Zi(r,o=>{switch(o){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},i)}};e(vt,"id","BackdropFilter"),e(vt,"matches",/^bd:./),e(vt,"propName","backdrop-filter");var ue=class extends t{};e(ue,"id","Fill"),e(ue,"propName","fill"),e(ue,"colorStarts","fill:"),e(ue,"colorful",!0);var gt=class extends t{};e(gt,"id","Stroke"),e(gt,"propName","stroke"),e(gt,"colorful",!0);var St=class extends t{};e(St,"id","StrokeWidth"),e(St,"matches",/^stroke:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(St,"propName","stroke-width");var bt=class extends t{parseValue(r,i){return Zi(r,o=>{switch(o){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},i)}};e(bt,"id","Filter"),e(bt,"matches",/^(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/),e(bt,"propName","filter");var Lr=class extends t{};e(Lr,"id","Cursor"),e(Lr,"propName","cursor");var _r=class extends t{};e(_r,"id","PointerEvents"),e(_r,"propName","pointer-events");var zr=class extends t{};e(zr,"id","Resize"),e(zr,"propName","resize");var Hr=class extends t{};e(Hr,"id","TouchAction"),e(Hr,"propName","touch-action");var Vr=class extends t{get(r){return{"user-drag":r,"-webkit-user-drag":r}}};e(Vr,"id","UserDrag"),e(Vr,"propName","user-drag");var $r=class extends t{get(r){return{"user-select":r,"-webkit-user-select":r}}};e($r,"id","UserSelect"),e($r,"propName","user-select");var he=class extends t{};e(he,"id","BoxShadow"),e(he,"matches",/^s(?:hadow)?:./),e(he,"propName","box-shadow"),e(he,"colorful",!0);var Ct=class extends t{};e(Ct,"id","TextShadow"),e(Ct,"propName","text-shadow"),e(Ct,"colorful",!0);var Ur=class extends t{get(r){return{"font-size":r,"line-height":{...r,value:r.unit==="rem"?r.value+.375+r.unit:"calc("+r.value+r.unit+" + .375rem)",unit:""}}}};e(Ur,"id","TextSize"),e(Ur,"matches",/^t(ext)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var yt=class extends t{};e(yt,"id","WordBreak"),e(yt,"propName","word-break"),e(yt,"unit","");var xe=class extends t{get(r){return{display:{...r,value:"grid"},"grid-template-columns":{...this,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(xe,"id","GridColumns"),e(xe,"matches",/^grid-cols:./),e(xe,"propName","grid-columns"),e(xe,"unit","");var Rt=class extends t{get(r){return{display:{...r,value:"grid"},"grid-auto-flow":{...r,value:"column"},"grid-template-rows":{...r,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(Rt,"id","GridRows"),e(Rt,"propName","grid-rows"),e(Rt,"unit","");var Yr=class extends t{get(r){switch(this.prefix[4]){case"x":return{"column-gap":r};case"y":return{"row-gap":r};default:return{gap:r}}}order=-1};e(Yr,"id","Gap"),e(Yr,"matches",/^gap(-x|-y)?:./);var Mt=class extends t{};e(Mt,"id","WordSpacing"),e(Mt,"propName","word-spacing"),e(Mt,"unit","em");var Nt=class extends t{get(r){return{["--"+this.prefix.slice(1,-1)]:r}}};e(Nt,"id","Variable"),e(Nt,"matches",/^\$[^ {}A-Z]+:[^ ]/),e(Nt,"unit","");var ve=class extends t{};e(ve,"id","AspectRadio"),e(ve,"matches",/^aspect:./),e(ve,"propName","aspect-ratio"),e(ve,"unit","");var kt=class extends t{get(r){return{"box-decoration-break":r,"-webkit-box-decoration-break":r}}};e(kt,"id","BoxDecorationBreak"),e(kt,"matches",/^box:(slice|clone)(?!\|)/),e(kt,"propName","box-decoration-break");var qr=class extends t{};e(qr,"id","BreakAfter"),e(qr,"propName","break-after");var Xr=class extends t{};e(Xr,"id","BreakBefore"),e(Xr,"propName","break-before");var Zr=class extends t{};e(Zr,"id","BreakInside"),e(Zr,"propName","break-inside");var Tt=class extends t{};e(Tt,"id","FlexShrink"),e(Tt,"propName","flex-shrink"),e(Tt,"unit","");var wt=class extends t{};e(wt,"id","FlexDirection"),e(wt,"matches",/^flex:((row|col|column)(-reverse)?)(?!\|)/),e(wt,"propName","flex-direction");var Ot=class extends t{};e(Ot,"id","FlexGrow"),e(Ot,"propName","flex-grow"),e(Ot,"unit","");var At=class extends t{};e(At,"id","FlexWrap"),e(At,"matches",/^flex:(wrap(-reverse)?|nowrap)(?!\|)/),e(At,"propName","flex-wrap");var Jr=class extends t{};e(Jr,"id","FlexBasis"),e(Jr,"propName","flex-basis");var It=class extends t{order=-1};e(It,"id","Flex"),e(It,"propName","flex"),e(It,"unit","");var ge=class extends t{};e(ge,"id","Order"),e(ge,"matches",/^o:./),e(ge,"propName","order"),e(ge,"unit","");var Se=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(Se,"id","GridColumn"),e(Se,"matches",/^grid-col(?:umn)?(?:-span)?:./),e(Se,"propName","grid-column"),e(Se,"unit","");var Bt=class extends t{};e(Bt,"id","ColumnSpan"),e(Bt,"matches",/^col-span:./),e(Bt,"propName","column-span");var be=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(be,"id","GridRow"),e(be,"matches",/^grid-row-span:./),e(be,"propName","grid-row"),e(be,"unit","");var Y=class extends t{};e(Y,"id","Color"),e(Y,"colorStarts","(?:color|fg|foreground):"),e(Y,"colorful",!0),e(Y,"propName","color"),e(Y,"unit","");var Ft=class extends t{};e(Ft,"id","AlignContent"),e(Ft,"matches",/^ac:./),e(Ft,"propName","align-content");var Dt=class extends t{};e(Dt,"id","AlignItems"),e(Dt,"matches",/^ai:./),e(Dt,"propName","align-items");var Wt=class extends t{};e(Wt,"id","AlignSelf"),e(Wt,"matches",/^as:./),e(Wt,"propName","align-self");var Et=class extends t{};e(Et,"id","GridAutoColumns"),e(Et,"matches",/^grid-auto-cols:./),e(Et,"propName","grid-auto-columns");var jt=class extends t{};e(jt,"id","GridAutoFlow"),e(jt,"matches",/^grid-flow:./),e(jt,"propName","grid-auto-flow");var Kr=class extends t{};e(Kr,"id","GridAutoRows"),e(Kr,"propName","grid-auto-rows");var Pt=class extends t{};e(Pt,"id","JustifyContent"),e(Pt,"matches",/^jc:./),e(Pt,"propName","justify-content");var Gt=class extends t{};e(Gt,"id","JustifyItems"),e(Gt,"matches",/^ji:./),e(Gt,"propName","justify-items");var Lt=class extends t{};e(Lt,"id","JustifySelf"),e(Lt,"matches",/^js:./),e(Lt,"propName","justify-self");var Qr=class extends t{order=-1};e(Qr,"id","PlaceContent"),e(Qr,"propName","place-content");var ei=class extends t{order=-1};e(ei,"id","PlaceItems"),e(ei,"propName","place-items");var ti=class extends t{order=-1};e(ti,"id","PlaceSelf"),e(ti,"propName","place-self");var ri=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="padding:"?-1:0}};e(ri,"id","Padding"),e(ri,"matches",/^padding(?:-(?:left|right|top|bottom))?:./);var ii=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="margin:"?-1:0}};e(ii,"id","Margin"),e(ii,"matches",/^margin(-(left|right|top|bottom))?:./);var _t=class extends t{};e(_t,"id","TextOverflow"),e(_t,"matches",/^(text-(overflow|ovf):.|t(ext)?:(ellipsis|clip)(?!\|))/),e(_t,"propName","text-overflow");var zt=class extends t{};e(zt,"id","ListStylePosition"),e(zt,"matches",/^list-style:(inside|outside)(?!\|)/),e(zt,"propName","list-style-position");var Ht=class extends t{};e(Ht,"id","ListStyleType"),e(Ht,"matches",/^list-style:(disc|decimal)(?!\|)/),e(Ht,"propName","list-style-type");var oi=class extends t{order=-1};e(oi,"id","ListStyle"),e(oi,"propName","list-style");var Ce=class extends t{};e(Ce,"id","TextDecorationColor"),e(Ce,"propName","text-decoration-color"),e(Ce,"colorStarts","text-decoration:"),e(Ce,"colorful",!0);var Vt=class extends t{};e(Vt,"id","TextDecorationStyle"),e(Vt,"matches",/^t(ext)?:(solid|double|dotted|dashed|wavy)(?!\|)/),e(Vt,"propName","text-decoration-style");var ye=class extends t{};e(ye,"id","TextDecorationThickness"),e(ye,"matches",/^text-decoration:(from-font(?!\|)|([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/),e(ye,"propName","text-decoration-thickness"),e(ye,"unit","em");var si=class extends t{};e(si,"id","TextIndent"),e(si,"propName","text-indent");var ai=class extends t{};e(ai,"id","Content"),e(ai,"propName","content");var Re=class extends t{};e(Re,"id","OutlineColor"),e(Re,"propName","outline-color"),e(Re,"colorStarts","outline:"),e(Re,"colorful",!0);var ni=class extends t{};e(ni,"id","OutlineOffset"),e(ni,"propName","outline-offset");var $t=class extends t{};e($t,"id","OutlineStyle"),e($t,"matches",/^outline:(none|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|)/),e($t,"propName","outline-style");var Ut=class extends t{};e(Ut,"id","OutlineWidth"),e(Ut,"matches",/^outline:(medium|thick|thin|[0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(Ut,"propName","outline-width");var Yt=class extends t{order=-1};e(Yt,"id","Outline"),e(Yt,"propName","outline"),e(Yt,"colorful",!0);var qt=class extends t{};e(qt,"id","BorderCollapse"),e(qt,"matches",/^b(order)?:(collapse|separate)(?!\|)/),e(qt,"propName","border-collapse");var li=class extends t{};e(li,"id","BorderSpacing"),e(li,"propName","border-spacing");var ci=class extends t{};e(ci,"id","TableLayout"),e(ci,"propName","table-layout");var Me=class extends t{};e(Me,"id","AccentColor"),e(Me,"propName","accent-color"),e(Me,"colorStarts","accent:"),e(Me,"colorful",!0);var di=class extends t{};e(di,"id","Appearance"),e(di,"propName","appearance");var Ne=class extends t{};e(Ne,"id","CaretColor"),e(Ne,"propName","caret-color"),e(Ne,"colorStarts","caret:"),e(Ne,"colorful",!0);var mi=class extends t{};e(mi,"id","ScrollBehavior"),e(mi,"propName","scroll-behavior");var fi=class extends t{get(r){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":r,"scroll-margin-right":r};case"y":return{"scroll-margin-top":r,"scroll-margin-bottom":r};case"l":return{"scroll-margin-left":r};case"r":return{"scroll-margin-right":r};case"t":return{"scroll-margin-top":r};case"b":return{"scroll-margin-bottom":r}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}};e(fi,"id","ScrollMargin"),e(fi,"matches",/^scroll-m([xytblr]|argin(-(top|bottom|left|right))?)?:./);var pi=class extends t{get(r){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":r,"scroll-padding-right":r};case"y":return{"scroll-padding-top":r,"scroll-padding-bottom":r};case"l":return{"scroll-padding-left":r};case"r":return{"scroll-padding-right":r};case"t":return{"scroll-padding-top":r};case"b":return{"scroll-padding-bottom":r}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}};e(pi,"id","ScrollPadding"),e(pi,"matches",/^scroll-p([xytblr]|adding(-(top|bottom|left|right))?)?:./);var Xt=class extends t{};e(Xt,"id","ScrollSnapAlign"),e(Xt,"matches",/^scroll-snap:(start|end|center)/),e(Xt,"propName","scroll-snap-align");var Zt=class extends t{};e(Zt,"id","ScrollSnapStop"),e(Zt,"matches",/^scroll-snap:(normal|always)(?!\|)/),e(Zt,"propName","scroll-snap-stop");var Jt=class extends t{};e(Jt,"id","ScrollSnapType"),e(Jt,"matches",/^scroll-snap:(([xy]|block|inline|both)(\|(proximity|mandatory))?)(?!\|)/),e(Jt,"propName","scroll-snap-type");var ui=class extends t{};e(ui,"id","WillChange"),e(ui,"propName","will-change");var hi=class extends t{};e(hi,"id","TextUnderlineOffset"),e(hi,"propName","text-underline-offset");var Kt=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}};e(Kt,"id","Inset"),e(Kt,"matches",/^(?:top|bottom|left|right):./),e(Kt,"propName","inset");var ke=class extends t{order=-1};e(ke,"id","Columns"),e(ke,"matches",/^(columns|cols):./),e(ke,"propName","columns"),e(ke,"unit","");var Qt=class extends t{};e(Qt,"id","WhiteSpace"),e(Qt,"propName","white-space"),e(Qt,"unit","");var er=class extends t{};e(er,"id","TextOrientation"),e(er,"matches",/^t(ext)?:(mixed|upright|sideways-right|sideways|use-glyph-orientation)(?!\|)/),e(er,"propName","text-orientation");var tr=class extends t{};e(tr,"id","WritingMode"),e(tr,"matches",/^writing:./),e(tr,"propName","writing-mode");var xi=class extends t{};e(xi,"id","Contain"),e(xi,"propName","contain");var Te=class extends t{};e(Te,"id","AnimationDuration"),e(Te,"matches",/^\@duration:./),e(Te,"propName","animation-duration"),e(Te,"unit","ms");var rr=class extends t{};e(rr,"id","TextRendering"),e(rr,"matches",/^t(ext)?:(optimizeSpeed|optimizeLegibility|geometricPrecision)(?!\|)/),e(rr,"propName","text-rendering");var vi=class extends t{};e(vi,"id","Direction"),e(vi,"propName","direction");var ir=class extends t{};e(ir,"id","TextDecorationLine"),e(ir,"matches",/^t(ext)?:(none|underline|overline|line-through)(?!\|)/),e(ir,"propName","text-decoration-line");var we=class extends t{};e(we,"id","GridColumnStart"),e(we,"matches",/^grid-col-start:./),e(we,"propName","grid-column-start"),e(we,"unit","");var or=class extends t{};e(or,"id","ListStyleImage"),e(or,"matches",/^list-style:(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(or,"propName","list-style-image");var sr=class extends t{};e(sr,"id","ShapeOutside"),e(sr,"matches",/^shape:((margin|content|border|padding)(?!\|)|(inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)((?!\|).)*$)/),e(sr,"propName","shape-outside");var ar=class extends t{};e(ar,"id","ShapeMargin"),e(ar,"matches",/^shape:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(ar,"propName","shape-margin");var nr=class extends t{};e(nr,"id","ShapeImageThreshold"),e(nr,"propName","shape-image-threshold"),e(nr,"unit","");var lr=class extends t{};e(lr,"id","ClipPath"),e(lr,"matches",/^clip:./),e(lr,"propName","clip-path");var gi=class extends t{order=-1};e(gi,"id","Grid"),e(gi,"propName","grid");var Oe=class extends t{order=-1};e(Oe,"id","Font"),e(Oe,"matches",/^f:./),e(Oe,"propName","font"),e(Oe,"unit","");var Si=class extends t{};e(Si,"id","Quotes"),e(Si,"propName","quotes");var bi=class extends t{order=-1};e(bi,"id","GridTemplate"),e(bi,"propName","grid-template");var cr=class extends t{};e(cr,"id","GridRowStart"),e(cr,"propName","grid-row-start"),e(cr,"unit","");var Ci=class extends t{};e(Ci,"id","GridTemplateAreas"),e(Ci,"propName","grid-template-areas");var dr=class extends t{};e(dr,"id","GridTemplateColumns"),e(dr,"matches",/^grid-template-cols:./),e(dr,"propName","grid-template-columns");var yi=class extends t{};e(yi,"id","GridTemplateRows"),e(yi,"propName","grid-template-rows");var mr=class extends t{order=-1};e(mr,"id","GridArea"),e(mr,"propName","grid-area"),e(mr,"unit","");var Ae=class extends t{};e(Ae,"id","GridColumnEnd"),e(Ae,"matches",/^grid-col-end:./),e(Ae,"propName","grid-column-end"),e(Ae,"unit","");var fr=class extends t{};e(fr,"id","GridRowEnd"),e(fr,"propName","grid-row-end"),e(fr,"unit","");var Ri=class extends t{get(r){return{"mask-image":r,"-webkit-mask-image":r}}};e(Ri,"id","MaskImage"),e(Ri,"propName","mask-image");var Ie=class extends t{get(r){return{"-webkit-text-fill-color":r}}};e(Ie,"id","TextFillColor"),e(Ie,"matches",/^text-fill-color:./),e(Ie,"colorStarts","(text-fill|text|t):"),e(Ie,"colorful",!0);var Mi=class extends t{get(r){return{"-webkit-text-stroke":r}}};e(Mi,"id","TextStroke"),e(Mi,"matches",/^text-stroke:./);var Ni=class extends t{get(r){return{"-webkit-text-stroke-width":r}}};e(Ni,"id","TextStrokeWidth"),e(Ni,"matches",/^text-stroke(:((thin|medium|thick)(?!\|)|\.?\d((?!\|).)*$)|-width:.)/);var Be=class extends t{get(r){return{"-webkit-text-stroke-color":r}}};e(Be,"id","TextStrokeColor"),e(Be,"matches",/^text-stroke-color:./),e(Be,"colorStarts","text-stroke:"),e(Be,"colorful",!0);var ki=class extends t{};e(ki,"id","StrokeDasharray"),e(ki,"propName","stroke-dasharray");var Ti=class extends t{};e(Ti,"id","StrokeDashoffset"),e(Ti,"propName","stroke-dash-offset");var pr=class extends t{};e(pr,"id","X"),e(pr,"propName","x"),e(pr,"unit","");var ur=class extends t{};e(ur,"id","Y"),e(ur,"propName","y"),e(ur,"unit","");var hr=class extends t{};e(hr,"id","Cx"),e(hr,"propName","cx"),e(hr,"unit","");var xr=class extends t{};e(xr,"id","Cy"),e(xr,"propName","cy"),e(xr,"unit","");var vr=class extends t{};e(vr,"id","Rx"),e(vr,"propName","rx"),e(vr,"unit","");var gr=class extends t{};e(gr,"id","Ry"),e(gr,"propName","ry"),e(gr,"unit","");var wi=class extends t{};e(wi,"id","BorderImageOutset"),e(wi,"propName","border-image-outset");var Sr=class extends t{};e(Sr,"id","BorderImageRepeat"),e(Sr,"matches",/^border-image:(?:stretch|repeat|round|space)(?:(?!\|).)*$/),e(Sr,"propName","border-image-repeat");var br=class extends t{};e(br,"id","BorderImageSlice"),e(br,"propName","border-image-slice"),e(br,"unit","");var Cr=class extends t{};e(Cr,"id","BorderImageSource"),e(Cr,"matches",/^border-image:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)(?:(?!\|).)*$/),e(Cr,"propName","border-image-source");var yr=class extends t{};e(yr,"id","BorderImageWidth"),e(yr,"matches",/^border-image:(?:\.?[0-9]|(max|min|calc|clamp)\(.*\))(?:(?!\|).)*$/),e(yr,"propName","border-image-width");var Rr=class extends t{};e(Rr,"id","BorderImage"),e(Rr,"propName","border-image"),e(Rr,"unit","");var rs=/\{(.*)\}/,Mr=class extends t{getThemeProps(r,i){let o={},n=(x,f)=>{let p=f.indexOf(":");if(p!==-1){x in o||(o[x]={});let m=o[x],a=f.slice(0,p);a in m||(m[a]=f.slice(p+1))}},s=x=>{let f=(p,m)=>{let a=m.slice(CSS.escape(x.className).length).match(rs)[1].split(";");for(let v of a)n(p,v)};if(this.themeName){let p=x.natives.find(m=>m.themeName===this.themeName)??x.natives.find(m=>!m.themeName);p&&f(this.themeName,p.text)}else for(let p of x.natives)f(p.themeName,p.text)},l=[],d="",u=()=>{d&&(l.push(d),d="")},c=1;(function x(f){for(;c<r.value.length;c++){let p=r.value[c];if(!f){if(p===";"){u();continue}if(p==="}")break}if(d+=p,f===p){if(f==="'"){let m=0;for(let a=d.length-2;d[a]==="\\";a--)m++;if(m%2)continue}break}else p in kr&&f!=="'"&&(c++,x(kr[p]))}})(void 0),u();for(let x of l){let f=i.findAndNew(x);if(Array.isArray(f))for(let p of f)s(p);else f?s(f):n(this.themeName??"",x)}return o}};e(Mr,"id","Group"),e(Mr,"matches",/^(?:.+?[*_>~+])?\{.+?\}/),e(Mr,"unit","");var Nr=class extends t{};e(Nr,"id","CounterIncrement"),e(Nr,"propName","counter-increment"),e(Nr,"unit","");var Ji=[Mr,Nt,Ee,Z,We,_e,K,ze,Oe,Y,Tr,ii,ri,Jr,At,Ot,Tt,wt,It,rt,je,Pe,Ge,Le,xi,ai,Nr,J,Q,He,Ve,$e,Ce,Vt,ye,ir,ee,hi,_t,er,Ue,rr,si,Ye,ke,Qt,Kt,qe,et,tt,it,ot,wr,Or,Ar,Ir,Br,Fr,se,Pr,Gr,Lr,_r,zr,Hr,yt,Mt,Vr,$r,Ct,Ur,Ie,Ni,Be,Mi,he,ci,Ze,Xe,te,re,Ke,Qe,oe,ie,Je,ae,st,Te,at,ne,nt,lt,ct,le,de,Dr,Wr,Er,qt,li,wi,Sr,br,Cr,yr,Rr,dt,mt,jr,ft,U,pt,me,ut,ht,fe,pe,xt,vt,bt,ue,ki,Ti,St,gt,pr,ur,hr,xr,vr,gr,we,Ae,Se,xe,cr,fr,be,Rt,Et,jt,Kr,Ci,dr,yi,bi,mr,gi,Yr,ge,Zr,Xr,qr,kt,ve,Bt,Ft,Dt,Wt,Pt,Gt,Lt,Qr,ei,ti,zt,Ht,or,oi,Re,ni,$t,Ut,Yt,Me,di,Ne,mi,fi,pi,Xt,Zt,Jt,ui,tr,vi,sr,ar,nr,lr,Si,Ri];var Fe={colors:Ei,breakpoints:De,semantics:Pi,values:_i,selectors:ji,themes:Gi,Rules:Ji,rootSize:16};function Ki(r){if(typeof window<"u"){let i=new P(r,document.head);return P.root=i,i.observe(document.documentElement),i}else return new P(r)}var is=[",",".","#","[","!","*",">","+","~",":","@"],os=/^::-[a-z]+-/m,To=typeof document<"u",Qi;To&&(Qi=document.createElement("style"),Qi.title="master");var _="max-width",L="min-width",ss="attributes",wo=typeof window<"u",as=wo?window.MutationObserver:Object,eo=class extends as{constructor(o=Fe,n){super(s=>{let l={},d=[],u=[],c=[],x=(a,v)=>{v?a.classList.forEach(p):a.classList.forEach(f);let h=a.children;for(let g=0;g<h.length;g++){let N=h[g];N.classList&&(u.push(N),x(N,v))}},f=a=>{a in l?l[a]++:l[a]=1},p=a=>{a in l?l[a]--:l[a]=-1},m=(a,v)=>{for(let h=0;h<a.length;h++){let g=a[h];g.classList&&!u.includes(g)&&!c.includes(g)&&(g.isConnected!==v?(u.push(g),x(g,v)):c.push(g))}};for(let a=0;a<s.length;a++){let v=s[a],{addedNodes:h,removedNodes:g,type:N,target:R,oldValue:E}=v;if(N===ss){if(R.className===E||d.find(I=>I.target===R))continue;d.push(v)}else m(h,!1),m(g,!0)}if(!(!d.length&&!Object.keys(l).length)){for(let{oldValue:a,target:v}of d){let h=u.includes(v),g=v.classList,N=a?a.split(" "):[];if(h){if(v.isConnected)continue;for(let R of N)g.contains(R)||p(R)}else if(v.isConnected){g.forEach(R=>{N.includes(R)||f(R)});for(let R of N)g.contains(R)||p(R)}else for(let R of N)p(R)}for(let a in l){let v=l[a],h=(this.countOfName[a]||0)+v;h===0?(delete this.countOfName[a],this.delete(a)):(a in this.countOfName||this.findAndInsert(a),this.countOfName[a]=h)}}});this.config=o;this.container=n;if(this.cache(),!!To){if(n){let s;for(let l of n.shadowRoot?.styleSheets||document.styleSheets)l.title==="master"&&(s=l.ownerNode);if(s){this.style=s;for(let l=0;l<this.style.sheet.cssRules.length;l++){let d=c=>{if(c.selectorText){let f=c.selectorText.split(", ")[0].split(" ");for(let p=0;p<f.length;p++){let m=f[p];if(m[0]==="."){let a=m.slice(1),v="";for(let h=0;h<a.length;h++){let g=a[h],N=a[h+1];if(g==="\\"){if(h++,N!=="\\"){v+=N;continue}}else if(is.includes(g))break;v+=g}if(!(v in this.ruleOfClass)&&!(v in this.classes)){let h=this.findAndNew(v);if(h)return h}}}}else if(c.cssRules)for(let x=0;x<c.cssRules.length;x++){let f=d(c.cssRules[x]);if(f)return f}},u=d(this.style.sheet.cssRules[l]);if(u){this.rules.push(u),this.ruleOfClass[u.className]=u;for(let c=0;c<u.natives.length;c++)u.natives[c].cssRule=this.style.sheet.cssRules[l+c];l+=u.natives.length-1}}}else this.style=Qi.cloneNode(),this.container?.prepend(this.style)}eo.instances.push(this)}}static refresh(o){for(let n of this.instances)n.refresh(o)}style;rules=[];ruleOfClass={};countOfName={};cache(){this.semantics=[],this.classes={},this.colorsThemesMap={},this.relationThemesMap={},this.relations={},this.colorNames=[],this.themeNames=[""],this.selectors={};let{semantics:o,classes:n,selectors:s,themes:l,colors:d}=this.config;function u(f){return f.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}if(o)for(let f in o)this.semantics.push([new RegExp("^"+u(f)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),f]);if(s)for(let[f,p]of Object.entries(s)){let m=new RegExp(u(f)+"(?![a-z-])");for(let a of Array.isArray(p)?p:[p]){let v=a.match(os)?.[0]??"",h=this.selectors[v];h||(h=this.selectors[v]=[]);let g=h.find(([N])=>N===m);g||(g=[m,[]],h.push(g)),g[1].push(a)}}let c=(f,p)=>{if(!!p){for(let m in p){let a=p[m],v=Array.isArray(a)?a:a.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");m in this.classes||(this.classes[m]=[]);let h=this.classes[m];for(let g of v)g in this.relationThemesMap?f in this.relationThemesMap[g]?this.relationThemesMap[g][f].push(m):this.relationThemesMap[g][f]=[m]:this.relationThemesMap[g]={[f]:[m]},h.includes(g)||h.push(g)}for(let m in this.relationThemesMap){this.relations[m]=[];for(let a of Object.values(this.relationThemesMap[m]))for(let v of a)this.relations[m].includes(v)||this.relations[m].push(v)}}},x=(f,p)=>{if(!!p)for(let m in p){let a=p[m];if(typeof a=="string"&&(a={"":a}),m in this.colorsThemesMap){let v=this.colorsThemesMap[m];for(let h in a){let g=a[h];h in v?v[h][f]=g:v[h]={[f]:g}}}else this.colorNames.push(m),this.colorsThemesMap[m]=Object.entries(a).reduce((v,[h,g])=>(v[h]={[f]:g},v),{})}};if(c("",n),x("",d),l)if(Array.isArray(l))this.themeNames.push(...l);else for(let f in l){let p=l[f];c(f,p.classes),x(f,p.colors),this.themeNames.push(f)}}semantics;classes;colorsThemesMap;colorNames;themeNames;relationThemesMap;relations;selectors;observe(o,n={subtree:!0,childList:!0}){return n.subtree&&o.querySelectorAll("[class]").forEach(s=>{s.classList.forEach(l=>{l in this.countOfName?this.countOfName[l]++:(this.countOfName[l]=1,this.findAndInsert(l))})}),super.observe(o,{...n,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this}disconnect(){super.disconnect(),this.ruleOfClass={},this.countOfName={},this.rules.length=0;let o=this.style.sheet;if(o)for(let n=o.cssRules.length-1;n>=0;n--)o.deleteRule(n)}findAndNew(o){let n=s=>{if(s in this.ruleOfClass)return this.ruleOfClass[s];for(let l of this.config.Rules){let d=l.match(s,this.colorNames);if(d)return new l(s,d,this)}for(let l of this.semantics)if(s.match(l[0]))return new t(s,{origin:"semantics",value:l[1]},this)};return o in this.classes?this.classes[o].map(n).filter(s=>s):n(o)}refresh(o){if(this.config=o,this.cache(),!this.style)return;let n=Qi.cloneNode();this.style.replaceWith(n),this.style=style,this.rules.length=0,this.ruleOfClass={};for(let s in this.countOfName)this.findAndInsert(s)}destroy(){let o=eo.instances;this.disconnect(),o.splice(o.indexOf(this),1),this.style.remove()}insert(o){if(this.ruleOfClass[o.className])return;let{validateRule:n}=this.config;if(n&&!n(o,this))return;let s,l=this.rules.length-1,{media:d,order:u,prioritySelectorIndex:c,hasWhere:x,className:f}=o,p=(m,a,v,h)=>{let g,N=0,R;a&&(N=m.findIndex(a)),v&&(R=m.findIndex(v)),N===-1&&(N=m.length),(R===void 0||R===-1)&&(R=m.length),g=m.slice(N,R);for(let E=0;E<g.length;E++){let I=g[E];if(!(I.prioritySelectorIndex===-1||h&&h(I))&&(I.prioritySelectorIndex<c||I.prioritySelectorIndex===c&&(x&&!I.hasWhere||I.order>=u)))return N+E}return N+g.length};if(d){let m=this.rules.findIndex(a=>a.media);if(m!==-1){let a=d.features[_],v=d.features[L];if(a&&v){let h=a.value-v.value;for(let g=l;g>=m;g--){s=g;let N=this.rules[g],R=N.media,E=R.features[_],I=R.features[L];if(!E||!I){s++;break}let C=E.value-I.value;if(C===h){if(x!==N.hasWhere)continue;if(c!==-1){let B=[this.rules[g]];for(let D=g-1;D>=m;D--){let H=this.rules[D];if(H.hasWhere!==x)break;let $=H.media,V=$.features[_],A=$.features[L];if(!V||!A||V.value-A.value!==C)break;B.unshift(this.rules[D])}s=p(this.rules,D=>D.media&&D.prioritySelectorIndex!==-1&&D.media.features[L]&&D.media.features[_])}break}else if(C>h)break}}else if(v)for(let h=m;h<=l;h++){s=h;let g=this.rules[h],N=g.media,R=N.features[_],E=N.features[L];if(R){if(E)break;continue}let I=E?.value;if(I===v.value){if(!x&&g.hasWhere){s++;continue}if(c!==-1)s=p(this.rules,C=>C.media,C=>C.media&&C.prioritySelectorIndex!==-1&&C.media.features[L]&&C.media.features[_],C=>!C.media.features[L]&&!C.media.features[_]);else for(let C=h;C<=l;C++){let B=this.rules[C],D=B.media,H=D.features[L];if(!D.features[_]){if(B.hasWhere!==x||H.value!==I||B.order>=u)break;s=C+1}}break}else{if(I>v.value)break;s++}}else if(a)for(let h=l;h>=m;h--){s=h;let g=this.rules[h],N=g.media,R=N.features[_];if(N.features[L])continue;let I=R?.value;if(!I||I>a.value){s++;break}else if(I===a.value){if(x&&!g.hasWhere)continue;if(c!==-1)s=p(this.rules,C=>C.media,C=>C.media&&C.prioritySelectorIndex!==-1&&C.media.features[L]&&C.media.features[_],C=>!C.media.features[L]&&!C.media.features[_]);else{let C=[this.rules[h]];for(let B=h-1;B>=m;B--){let D=this.rules[B],H=D.media,$=H.features[L],V=H.features[_];if(!$&&(!V||V.value!==I||D.hasWhere!==x))break;C.unshift(D)}for(let B=0;B<C.length;B++){let D=C[B];if(!D.media.features[L]){if(D.order>=u)break;s=h-C.length+2+B}}}break}}}if(s===void 0)if(m===-1)s=l+1;else if(c!==-1)s=m+p(this.rules.slice(m),void 0,a=>a.media.features[_]||a.media.features[L]);else if(x){let a=m;for(;a<this.rules.length;a++){let v=this.rules[a];if(v.prioritySelectorIndex!==-1||!v.hasWhere||v.order>=u){s=a;break}}s===void 0&&(s=a)}else for(let a=m;a<=l;a++){s=a;let v=this.rules[a],h=v.media;if(v.prioritySelectorIndex!==-1||h.features[_]||h.features[L])break;if(v.hasWhere)s++;else if(v.order>=u)break}}else if(c===-1)if(x)s=this.rules.findIndex(m=>!m.hasWhere||m.media||m.prioritySelectorIndex!==-1||m.order>=u),s===-1&&(s=l+1);else{let m=0;for(;m<this.rules.length;m++){let a=this.rules[m];if(a.media||!a.hasWhere&&(a.order>=u||a.prioritySelectorIndex!==-1)){s=m;break}}s===void 0&&(s=m)}else s=p(this.rules,void 0,m=>m.media);if(this.rules.splice(s,0,o),this.ruleOfClass[f]=o,this.style)try{let m=this.style.sheet,a=0,v=this.rules[s-1];if(v){let h=v.natives[v.natives.length-1].cssRule;for(let g=0;g<m.cssRules.length;g++)if(m.cssRules[g]===h){a=g+1;break}}for(let h of o.natives)m.insertRule(h.text,a),h.cssRule=m.cssRules[a++]}catch(m){console.error(m)}}delete(o){let n=this.style.sheet,s=l=>{let d=this.ruleOfClass[l];if(!d||l in this.relations&&this.relations[l].some(c=>c in this.countOfName))return;let u=d.natives[0];for(let c=0;c<n.cssRules.length;c++)if(n.cssRules[c]===u.cssRule){for(let f=0;f<d.natives.length;f++)n.deleteRule(c);this.rules.splice(this.rules.indexOf(d),1),delete this.ruleOfClass[o];break}};if(o in this.classes)for(let l of this.classes[o])l in this.countOfName||s(l);else s(o)}findAndInsert(o){let n=this.findAndNew(o);if(Array.isArray(n))for(let s of n)this.insert(s);else n&&this.insert(n)}},P=eo;e(P,"init",Ki),e(P,"defaultConfig",Fe),e(P,"instances",[]),e(P,"root");wo&&(window.MasterCSS=P);function Oo(r,i){return Array.isArray(r)&&Array.isArray(i)?r.concat(i):i}function to(r){return Object.prototype.toString.call(r).slice(8,-1)}function Oi(r){return to(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function po(r){return to(r)==="Symbol"}function Ao(r,i,o,n){let s={}.propertyIsEnumerable.call(n,i)?"enumerable":"nonenumerable";s==="enumerable"&&(r[i]=o),s==="nonenumerable"&&Object.defineProperty(r,i,{value:o,enumerable:!1,writable:!0,configurable:!0})}function Io(r,i,o){if(!Oi(i))return i;let n={};if(Oi(r)){let u=Object.getOwnPropertyNames(r),c=Object.getOwnPropertySymbols(r);n=[...u,...c].reduce((x,f)=>{let p=r[f];return(!po(f)&&!Object.getOwnPropertyNames(i).includes(f)||po(f)&&!Object.getOwnPropertySymbols(i).includes(f))&&Ao(x,f,p,r),x},{})}let s=Object.getOwnPropertyNames(i),l=Object.getOwnPropertySymbols(i);return[...s,...l].reduce((u,c)=>{let x=i[c],f=Oi(r)?r[c]:void 0;f!==void 0&&Oi(x)&&(x=Io(f,x,o));let p=o?o(f,x,c):x;return Ao(u,c,p,i),u},n)}function ro(r,...i){return i.filter(o=>Oi(o)).reduce((o,n)=>Io(o,n,Oo),r)}function Bo(...r){return r.length?ro(Fe,...r):Fe}var pR=ao(io());function Do(r,i=new P){if(!!r?.length){for(let o of r)o in i.countOfName||(i.findAndInsert(o),i.countOfName[o]=1);return i.rules.map(o=>o.natives.reduce((n,s)=>n+s.text,"")).join("")}}var xR=ao(io());function oo(r,i=new P){if(!r)return;let o=/\sclass="([^"]*)"/gm,n;for(;n=o.exec(r);){let s=n[1].replace(/\n/g,"").split(" ").filter(l=>l);for(let l of s)l in i.countOfName||(i.findAndInsert(l),i.countOfName[l]=1)}return i.rules.map(s=>s.natives.reduce((l,d)=>l+d.text,"")).join("")}var SR=ao(io());function Wo(r,i=new P){if(!!r)return r.replace(/(<head>)/,`$1<style title="master">${oo(r,i)}</style>`)}
2
2
  /*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
package/package.json CHANGED
@@ -36,5 +36,5 @@
36
36
  "type": "git",
37
37
  "url": "https://github.com/master-co/css.git"
38
38
  },
39
- "version": "2.0.0-alpha.59"
39
+ "version": "2.0.0-alpha.60"
40
40
  }