shweet 0.0.13 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.d.ts +97 -97
- package/dist/index.js +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -117,11 +117,11 @@ declare class _Var {
|
|
|
117
117
|
fallback?: CSSValue;
|
|
118
118
|
var: string;
|
|
119
119
|
value: media;
|
|
120
|
-
constructor(vr?: obj<CSSValue |
|
|
120
|
+
constructor(vr?: obj<CSSValue | media>, fallback?: CSSValue);
|
|
121
121
|
__(fallback?: CSSValue): string;
|
|
122
122
|
new(val: CSSValue, fallback?: CSSValue): _Var;
|
|
123
123
|
}
|
|
124
|
-
declare const Var: (vr: obj<CSSValue>, fallback?: CSSValue) => _Var;
|
|
124
|
+
declare const Var: (vr: obj<CSSValue | media>, fallback?: CSSValue) => _Var;
|
|
125
125
|
|
|
126
126
|
type CSSValue = V | _Var | undefined | CSSValue[];
|
|
127
127
|
type VarType = _Var;
|
|
@@ -255,289 +255,289 @@ declare class FontFace extends Base<obj<fontFace>> {
|
|
|
255
255
|
|
|
256
256
|
declare class ps {
|
|
257
257
|
static attr(d: obj<string>): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
258
|
-
[x: string]: (_Var |
|
|
258
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
259
259
|
};
|
|
260
260
|
static after(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
261
|
-
[x: string]: (_Var |
|
|
261
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
262
262
|
};
|
|
263
263
|
static before(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
264
|
-
[x: string]: (_Var |
|
|
264
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
265
265
|
};
|
|
266
266
|
static backdrop(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
267
|
-
[x: string]: (_Var |
|
|
267
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
268
268
|
};
|
|
269
269
|
static cue(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
270
|
-
[x: string]: (_Var |
|
|
270
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
271
271
|
};
|
|
272
272
|
static cueRegion(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
273
|
-
[x: string]: (_Var |
|
|
273
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
274
274
|
};
|
|
275
275
|
static firstLetter(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
276
|
-
[x: string]: (_Var |
|
|
276
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
277
277
|
};
|
|
278
278
|
static firstLine(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
279
|
-
[x: string]: (_Var |
|
|
279
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
280
280
|
};
|
|
281
281
|
static marker(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
282
|
-
[x: string]: (_Var |
|
|
282
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
283
283
|
};
|
|
284
284
|
static part(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
285
|
-
[x: string]: (_Var |
|
|
285
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
286
286
|
};
|
|
287
287
|
static placeholder(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
288
|
-
[x: string]: (_Var |
|
|
288
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
289
289
|
};
|
|
290
290
|
static selection(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
291
|
-
[x: string]: (_Var |
|
|
291
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
292
292
|
};
|
|
293
293
|
static slotted(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
294
|
-
[x: string]: (_Var |
|
|
294
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
295
295
|
};
|
|
296
296
|
static spellingError(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
297
|
-
[x: string]: (_Var |
|
|
297
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
298
298
|
};
|
|
299
299
|
static targetText(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
300
|
-
[x: string]: (_Var |
|
|
300
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
301
301
|
};
|
|
302
302
|
static viewTransition(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
303
|
-
[x: string]: (_Var |
|
|
303
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
304
304
|
};
|
|
305
305
|
static viewTransitionGroup(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
306
|
-
[x: string]: (_Var |
|
|
306
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
307
307
|
};
|
|
308
308
|
static viewTransitionImagePair(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
309
|
-
[x: string]: (_Var |
|
|
309
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
310
310
|
};
|
|
311
311
|
static viewTransitionNew(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
312
|
-
[x: string]: (_Var |
|
|
312
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
313
313
|
};
|
|
314
314
|
static viewTransitionOld(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
315
|
-
[x: string]: (_Var |
|
|
315
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
316
316
|
};
|
|
317
317
|
static scrollbar(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
318
|
-
[x: string]: (_Var |
|
|
318
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
319
319
|
};
|
|
320
320
|
static scrollbarThumb(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
321
|
-
[x: string]: (_Var |
|
|
321
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
322
322
|
};
|
|
323
323
|
static scrollbarTrack(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
324
|
-
[x: string]: (_Var |
|
|
324
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
325
325
|
};
|
|
326
326
|
static scrollbarCorner(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
327
|
-
[x: string]: (_Var |
|
|
327
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
328
328
|
};
|
|
329
329
|
static active(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
330
|
-
[x: string]: (_Var |
|
|
330
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
331
331
|
};
|
|
332
332
|
static anyLink(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
333
|
-
[x: string]: (_Var |
|
|
333
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
334
334
|
};
|
|
335
335
|
static autofill(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
336
|
-
[x: string]: (_Var |
|
|
336
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
337
337
|
};
|
|
338
338
|
static blank(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
339
|
-
[x: string]: (_Var |
|
|
339
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
340
340
|
};
|
|
341
341
|
static checked(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
342
|
-
[x: string]: (_Var |
|
|
342
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
343
343
|
};
|
|
344
344
|
static current(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
345
|
-
[x: string]: (_Var |
|
|
345
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
346
346
|
};
|
|
347
347
|
static default(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
348
|
-
[x: string]: (_Var |
|
|
348
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
349
349
|
};
|
|
350
350
|
static defined(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
351
|
-
[x: string]: (_Var |
|
|
351
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
352
352
|
};
|
|
353
353
|
static disabled(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
354
|
-
[x: string]: (_Var |
|
|
354
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
355
355
|
};
|
|
356
356
|
static empty(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
357
|
-
[x: string]: (_Var |
|
|
357
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
358
358
|
};
|
|
359
359
|
static enabled(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
360
|
-
[x: string]: (_Var |
|
|
360
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
361
361
|
};
|
|
362
362
|
static first(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
363
|
-
[x: string]: (_Var |
|
|
363
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
364
364
|
};
|
|
365
365
|
static firstChild(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
366
|
-
[x: string]: (_Var |
|
|
366
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
367
367
|
};
|
|
368
368
|
static firstOfType(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
369
|
-
[x: string]: (_Var |
|
|
369
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
370
370
|
};
|
|
371
371
|
static fullscreen(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
372
|
-
[x: string]: (_Var |
|
|
372
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
373
373
|
};
|
|
374
374
|
static future(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
375
|
-
[x: string]: (_Var |
|
|
375
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
376
376
|
};
|
|
377
377
|
static focus(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
378
|
-
[x: string]: (_Var |
|
|
378
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
379
379
|
};
|
|
380
380
|
static focusVisible(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
381
|
-
[x: string]: (_Var |
|
|
381
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
382
382
|
};
|
|
383
383
|
static focusWithin(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
384
|
-
[x: string]: (_Var |
|
|
384
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
385
385
|
};
|
|
386
386
|
static host(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
387
|
-
[x: string]: (_Var |
|
|
387
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
388
388
|
};
|
|
389
389
|
static hover(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
390
|
-
[x: string]: (_Var |
|
|
390
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
391
391
|
};
|
|
392
392
|
static indeterminate(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
393
|
-
[x: string]: (_Var |
|
|
393
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
394
394
|
};
|
|
395
395
|
static inRange(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
396
|
-
[x: string]: (_Var |
|
|
396
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
397
397
|
};
|
|
398
398
|
static invalid(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
399
|
-
[x: string]: (_Var |
|
|
399
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
400
400
|
};
|
|
401
401
|
static lastChild(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
402
|
-
[x: string]: (_Var |
|
|
402
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
403
403
|
};
|
|
404
404
|
static lastOfType(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
405
|
-
[x: string]: (_Var |
|
|
405
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
406
406
|
};
|
|
407
407
|
static left(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
408
|
-
[x: string]: (_Var |
|
|
408
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
409
409
|
};
|
|
410
410
|
static link(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
411
|
-
[x: string]: (_Var |
|
|
411
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
412
412
|
};
|
|
413
413
|
static localLink(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
414
|
-
[x: string]: (_Var |
|
|
414
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
415
415
|
};
|
|
416
416
|
static modal(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
417
|
-
[x: string]: (_Var |
|
|
417
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
418
418
|
};
|
|
419
419
|
static onlyChild(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
420
|
-
[x: string]: (_Var |
|
|
420
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
421
421
|
};
|
|
422
422
|
static onlyOfType(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
423
|
-
[x: string]: (_Var |
|
|
423
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
424
424
|
};
|
|
425
425
|
static optional(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
426
|
-
[x: string]: (_Var |
|
|
426
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
427
427
|
};
|
|
428
428
|
static outOfRange(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
429
|
-
[x: string]: (_Var |
|
|
429
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
430
430
|
};
|
|
431
431
|
static past(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
432
|
-
[x: string]: (_Var |
|
|
432
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
433
433
|
};
|
|
434
434
|
static pictureInPicture(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
435
|
-
[x: string]: (_Var |
|
|
435
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
436
436
|
};
|
|
437
437
|
static placeholderShown(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
438
|
-
[x: string]: (_Var |
|
|
438
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
439
439
|
};
|
|
440
440
|
static paused(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
441
|
-
[x: string]: (_Var |
|
|
441
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
442
442
|
};
|
|
443
443
|
static playing(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
444
|
-
[x: string]: (_Var |
|
|
444
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
445
445
|
};
|
|
446
446
|
static readOnly(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
447
|
-
[x: string]: (_Var |
|
|
447
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
448
448
|
};
|
|
449
449
|
static readWrite(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
450
|
-
[x: string]: (_Var |
|
|
450
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
451
451
|
};
|
|
452
452
|
static required(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
453
|
-
[x: string]: (_Var |
|
|
453
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
454
454
|
};
|
|
455
455
|
static right(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
456
|
-
[x: string]: (_Var |
|
|
456
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
457
457
|
};
|
|
458
458
|
static root(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
459
|
-
[x: string]: (_Var |
|
|
459
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
460
460
|
};
|
|
461
461
|
static scope(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
462
|
-
[x: string]: (_Var |
|
|
462
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
463
463
|
};
|
|
464
464
|
static target(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
465
|
-
[x: string]: (_Var |
|
|
465
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
466
466
|
};
|
|
467
467
|
static targetWithin(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
468
|
-
[x: string]: (_Var |
|
|
468
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
469
469
|
};
|
|
470
470
|
static userInvalid(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
471
|
-
[x: string]: (_Var |
|
|
471
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
472
472
|
};
|
|
473
473
|
static valid(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
474
|
-
[x: string]: (_Var |
|
|
474
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
475
475
|
};
|
|
476
476
|
static visited(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
477
|
-
[x: string]: (_Var |
|
|
477
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
478
478
|
};
|
|
479
479
|
static dir(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
480
|
-
[x: string]: (_Var |
|
|
480
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
481
481
|
};
|
|
482
482
|
static has(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
483
|
-
[x: string]: (_Var |
|
|
483
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
484
484
|
};
|
|
485
485
|
static host_(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
486
|
-
[x: string]: (_Var |
|
|
486
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
487
487
|
};
|
|
488
488
|
static hostContext(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
489
|
-
[x: string]: (_Var |
|
|
489
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
490
490
|
};
|
|
491
491
|
static is(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
492
|
-
[x: string]: (_Var |
|
|
492
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
493
493
|
};
|
|
494
494
|
static lang(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
495
|
-
[x: string]: (_Var |
|
|
495
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
496
496
|
};
|
|
497
497
|
static not(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
498
|
-
[x: string]: (_Var |
|
|
498
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
499
499
|
};
|
|
500
500
|
static nthChild(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
501
|
-
[x: string]: (_Var |
|
|
501
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
502
502
|
};
|
|
503
503
|
static nthCol(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
504
|
-
[x: string]: (_Var |
|
|
504
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
505
505
|
};
|
|
506
506
|
static nthLastChild(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
507
|
-
[x: string]: (_Var |
|
|
507
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
508
508
|
};
|
|
509
509
|
static nthLastCol(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
510
|
-
[x: string]: (_Var |
|
|
510
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
511
511
|
};
|
|
512
512
|
static nthLastOfType(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
513
|
-
[x: string]: (_Var |
|
|
513
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
514
514
|
};
|
|
515
515
|
static nthOfType(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
516
|
-
[x: string]: (_Var |
|
|
516
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
517
517
|
};
|
|
518
518
|
static state(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
519
|
-
[x: string]: (_Var |
|
|
519
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
520
520
|
};
|
|
521
521
|
static where(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
522
|
-
[x: string]: (_Var |
|
|
522
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
523
523
|
};
|
|
524
524
|
static and(str: string): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
525
|
-
[x: string]: (_Var |
|
|
525
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
526
526
|
};
|
|
527
527
|
static child(str: string): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
528
|
-
[x: string]: (_Var |
|
|
528
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
529
529
|
};
|
|
530
530
|
static desc(str: string): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
531
|
-
[x: string]: (_Var |
|
|
531
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
532
532
|
};
|
|
533
533
|
static next(str: string): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
534
|
-
[x: string]: (_Var |
|
|
534
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
535
535
|
};
|
|
536
536
|
static general(str: string): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
537
|
-
[x: string]: (_Var |
|
|
537
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
538
538
|
};
|
|
539
539
|
static withClass(str: string): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any>)[]) => {
|
|
540
|
-
[x: string]: (_Var |
|
|
540
|
+
[x: string]: (_Var | CSSinR | Medyas<any, Record<string, any>> | obj<CSSValue> | support)[];
|
|
541
541
|
};
|
|
542
542
|
}
|
|
543
543
|
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var tn=Object.defineProperty;var An=(n,C)=>{for(var $ in C)tn(n,$,{get:C[$],enumerable:!0,configurable:!0,set:(T)=>C[$]=()=>T})};var Jn={};An(Jn,{isWindow:()=>_n,isUndefined:()=>fn,isStr:()=>t,isPromise:()=>Vn,isPlainObject:()=>on,isObj:()=>d,isNumber:()=>_,isNum:()=>Tn,isNull:()=>x,isNotWindow:()=>Wn,isNotNull:()=>yn,isInt:()=>Hn,isFN:()=>v,isDict:()=>zn,isDefined:()=>B,isClassOrId:()=>$n,isBool:()=>gn,isAsync:()=>Pn,isArraybuff:()=>un,isArr:()=>W});var v=(n)=>typeof n==="function",Pn=(n)=>n.constructor.name==="AsyncFunction",Vn=(n)=>!!n&&typeof n.then==="function",_=(n)=>{return!isNaN(parseFloat(n))&&isFinite(n)},zn=(n)=>{return typeof n==="object"&&n!==null&&!Array.isArray(n)},on=(n)=>{return typeof n==="object"&&n!==null&&Object.getPrototypeOf(n)===Object.prototype},un=(n)=>{return n instanceof Uint8Array||n instanceof ArrayBuffer||typeof n==="string"},$n=(n)=>{return n.startsWith(".")||n.startsWith("#")},gn=(n)=>typeof n==="boolean",t=(n)=>typeof n==="string",W=(n)=>Array.isArray(n),d=(n)=>typeof n==="object",Tn=(n)=>typeof n==="number",x=(n)=>n===null,yn=(n)=>n===null,fn=(n)=>typeof n==="undefined",B=(n)=>typeof n!=="undefined",Hn=(n)=>{return Number.isInteger(Number(n))},_n=typeof window!=="undefined",Wn=typeof window==="undefined";var Qn=(n)=>{return W(n)?n:[n]};class c{static set i(n){console.info(...Qn(n))}static set e(n){console.error(...Qn(n))}static set w(n){console.info(...Qn(n))}}var dn=(n)=>Array.from({length:n},(C,$)=>$),Zn="ABCDEFGHIJKLMNOPQRSTUVWXYZ",Ln="abcdefghijklmnopqrstuvwxyz";var s=(n)=>JSON.stringify(n),En=(n)=>{return JSON.parse(n)},A=(n)=>{if(n.startsWith("webkit"))n="-"+n;return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},p=(n)=>{let C=Zn+Ln,$=dn(10).join("");return Array.from({length:n},(T,J)=>C+(J?$:"")).reduce((T,J)=>{return T+=J.charAt(Math.floor(Math.random()*J.length))},"")},cn=(n=6,C)=>{if(!C)return Math.floor(Math.random()*n);return Math.round(Math.random()*(C-n)+n)},On=()=>{let n=[...Zn,...Ln],C=cn(0,n.length);return n[C]};class L extends Map{obj(n){n&&
|
|
3
|
-
`)),!0}}var Yn=Array.from;class Rn{shweet;shaker;include;CID=new L;css="";constructor(n,C=[],$=[]){this.shweet=n;this.shaker=C;this.include=$}load(n,C="rem"){let $=N.default,T=N.prop;X(T,N.extra);let J=new L,E={},
|
|
2
|
+
var tn=Object.defineProperty;var An=(n,C)=>{for(var $ in C)tn(n,$,{get:C[$],enumerable:!0,configurable:!0,set:(T)=>C[$]=()=>T})};var Jn={};An(Jn,{isWindow:()=>_n,isUndefined:()=>fn,isStr:()=>t,isPromise:()=>Vn,isPlainObject:()=>on,isObj:()=>d,isNumber:()=>_,isNum:()=>Tn,isNull:()=>x,isNotWindow:()=>Wn,isNotNull:()=>yn,isInt:()=>Hn,isFN:()=>v,isDict:()=>zn,isDefined:()=>B,isClassOrId:()=>$n,isBool:()=>gn,isAsync:()=>Pn,isArraybuff:()=>un,isArr:()=>W});var v=(n)=>typeof n==="function",Pn=(n)=>n.constructor.name==="AsyncFunction",Vn=(n)=>!!n&&typeof n.then==="function",_=(n)=>{return!isNaN(parseFloat(n))&&isFinite(n)},zn=(n)=>{return typeof n==="object"&&n!==null&&!Array.isArray(n)},on=(n)=>{return typeof n==="object"&&n!==null&&Object.getPrototypeOf(n)===Object.prototype},un=(n)=>{return n instanceof Uint8Array||n instanceof ArrayBuffer||typeof n==="string"},$n=(n)=>{return n.startsWith(".")||n.startsWith("#")},gn=(n)=>typeof n==="boolean",t=(n)=>typeof n==="string",W=(n)=>Array.isArray(n),d=(n)=>typeof n==="object",Tn=(n)=>typeof n==="number",x=(n)=>n===null,yn=(n)=>n===null,fn=(n)=>typeof n==="undefined",B=(n)=>typeof n!=="undefined",Hn=(n)=>{return Number.isInteger(Number(n))},_n=typeof window!=="undefined",Wn=typeof window==="undefined";var Qn=(n)=>{return W(n)?n:[n]};class c{static set i(n){console.info(...Qn(n))}static set e(n){console.error(...Qn(n))}static set w(n){console.info(...Qn(n))}}var dn=(n)=>Array.from({length:n},(C,$)=>$),Zn="ABCDEFGHIJKLMNOPQRSTUVWXYZ",Ln="abcdefghijklmnopqrstuvwxyz";var s=(n)=>JSON.stringify(n),En=(n)=>{return JSON.parse(n)},A=(n)=>{if(n.startsWith("webkit"))n="-"+n;return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},p=(n)=>{let C=Zn+Ln,$=dn(10).join("");return Array.from({length:n},(T,J)=>C+(J?$:"")).reduce((T,J)=>{return T+=J.charAt(Math.floor(Math.random()*J.length))},"")},cn=(n=6,C)=>{if(!C)return Math.floor(Math.random()*n);return Math.round(Math.random()*(C-n)+n)},On=()=>{let n=[...Zn,...Ln],C=cn(0,n.length);return n[C]};class L extends Map{obj(n){n&&G(n).forEach(([C,$])=>this.set(C,$))}map(n){n.forEach((C,$)=>{if(C instanceof L)this.set($,C);else if(W(C)){if(this.lacks($))this.set($,[]);this.get($).push(...C)}else if(d(C))this.ass($,C);else this.set($,C)})}ass(n,C){if(!this.has(n))this.set(n,{});X(this.get(n),C)}lacks(n){return!this.has(n)}init(n,C){return this.has(n)?this.get(n):this.set(n,C).get(n)}}var{values:P,keys:w,entries:G}=Object;var X=Object.assign,Dn=(n,C)=>Object.hasOwn(n,C),Nn=(n)=>{return Object.keys(n).length};class bn{static rand(n=6,C){if(C)return Math.floor(Math.random()*(C-n+1)+n);return Math.floor(Math.random()*n)+1-1}static fill(n,C=null){return Array(n).fill(C)}static new({dom:n,id:C,inner:$}){let T=document.createElement(n);if(C)T.id=C;if($)T.innerHTML=$;return T}static randFrom(n){if(Array.isArray(n)){let C=n.length,$=this.rand(0,C-1);return n[$]}else if(typeof n=="object"){let C=w(n),$=C.length,T=this.rand(0,$-1);return C[T]}}static randomAZ=On;static makeID=p;static class(n,C){let $=C;if(n?.class)$.push(...W(n.class)?n.class:[n.class]);n.class=C}static get O(){return{vals:P,keys:w,items:G,has:Dn,ass:X,len:(n={})=>w(n).length}}static get is(){return Jn}static get return(){return Fn}static sleep=(n=1000)=>new Promise((C)=>setTimeout(C,n))}class Fn{static array(n){return W(n)?n:[n]}}var Bn={xs:"480px",sm:"480px",smd:"624px",md:"768px",lg:"1024px",xl:"1280px",xxl:"1536px"};class N{static default="xs";static prop=G(Bn).reduce((n,[C,$],T)=>{return n[C]=`(${T==0?"max-width":"min-width"}: ${$})`,n},{});static extra={no_hover:"(pointer: coarse)",print:"print",screen:"screen",dark:"(prefers-color-scheme: dark)"};constructor(n,C={}){let $=N.default,T={};if(n!==void 0)i(T,$,n,$);G(C).forEach(([J,E])=>{i(T,J,E,$)}),X(this,T)}static get breakpoints(){return En(s(Bn))}}var i=(n,C,$,T)=>{if($!==void 0)if($ instanceof N)G($).forEach(([J,E])=>{if(T!==C)if(C!==J)if(T===J)i(n,C,E,T);else i(n,`${C}-${J}`,E,T);else i(n,J,E,T);else i(n,J,E,T)});else n[C]=$};function j(n,C){if(C)return new N(n,C);return new N(void 0,n)}function ln(n){if(this._prefix)return j({[this._prefix]:n});else return j({xs:n})}function Y(n){return new this.constructor({prefix:n,values:this._values,data:this.data})}class a{_prefix;data;_values;constructor({prefix:n,data:C,values:$}={data:{},values:{}}){this._prefix=n,this._values=$,G($).forEach(([T,J])=>{if(!this._values[T])this._values[T]=j({});X(this._values[T],J)}),this.data=C}get XS(){return Y.call(this,"xs")}get SM(){return Y.call(this,"sm")}get SMD(){return Y.call(this,"smd")}get MD(){return Y.call(this,"md")}get LG(){return Y.call(this,"lg")}get XL(){return Y.call(this,"xl")}get XXL(){return Y.call(this,"xxl")}get NO_HOVER(){return Y.call(this,"no_hover")}get PRINT(){return Y.call(this,"print")}get SCREEN(){return Y.call(this,"screen")}get DARK(){return Y.call(this,"dark")}set _value(n){G(n).forEach(([C,$])=>{if(!this._values[C])this._values[C]=j({});X(this._values[C],ln.call(this,$))})}get _value(){return this._values}}class K{k="";fallback;var="";value;constructor(n={},C){if(Nn(n)){let[$,T]=G(n)[0];this.k=$,this.var="--"+A($),this.value=T instanceof N?T:j(T,{}),this.fallback=C}else this.value=j({})}__(n){if(n)this.fallback=n;let C=this.fallback;if(C)return`var(${this.var}, ${Q(C)})`;else return`var(${this.var})`}new(n,C){return new K({[this.k]:n instanceof N?n:Q(n)},C)}}var vn=(n,C)=>{return new K(n,C)};var Q=(n,C={unit:"rem"})=>{let{rem:$,second:T,quote:J,degree:E,percent:q,delimeter:U,unit:R,delimeter_arr:Z}=C;if(fn(n)||x(n)||!J&&n==="")return"";let g=W(n)?n:[n];if(!g.length)return"";return g.filter((S)=>B(S)).map((S)=>{if(W(S))return U=Z||", ",Q(S,{...C,delimeter:" "});if(S instanceof K)return S.__();if(J)S=String(S);if(Tn(S))if($)return`${S}${R?R:"rem"}`;else if(E)return`${S}deg`;else if(q)return`${S}%`;else if(T)return`${S}s`;else return String(S);if(t(S))if(S.includes("("))return S;else if(J)return`'${S}'`;else return S;return""}).filter((S)=>B(S)&&S!=="").join(U||" ")};var Xn=new Set(["transitionDuration","transitionDelay","animationDelay","animationDuration"]),xn=new Set([...Xn,"zIndex","opacity","aspectRatio","order","flexShrink","flexGrow","flex","fillOpacity","lineClamp","order","scale","webkitLineClamp","animationIterationCount","animationTimingFunction","transitionTimingFunction","columnCount","gridColumn","gridRow","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd"]),pn=new Set(["content"]),sn=new Set(["transitionProperty"]),z=(n,C,$="rem")=>{let T=Q(C,{rem:!xn.has(n),second:Xn.has(n),quote:pn.has(n),delimeter:sn.has(n)?", ":" ",unit:$});return`${A(n)}: ${T};`};class e{value;__;constructor(n){if(this.value=new L,t(n))this.value.set(n,[]);else G(n).forEach(([C,$])=>{this.value.set(`${C}:${$}`,[])});this.__=(...C)=>{return this.value.forEach(($)=>{$.push(...C)}),this}}}function an(n){return new e(n).__}var o=(n)=>{if(v(n))return o(n());if(n instanceof N)return n;if(n instanceof K)return j(n.__(),{});return j(n,{})},en=(n)=>{n.value.forEach((C,$)=>{n.value.set($,C.map((T)=>{let J={};return G(T).forEach(([E,q])=>{if(B(q))J[E]=o(q)}),J}))})},Sn=(n,C=[])=>{let $=[];if(W(n))return Sn(n[0],$);if(n instanceof K)return Sn(P(n.value),$);return $.push(String(n)),$};class qn{base;constructor(n){this.base=n}props(n,C,$){let T=["animation","animationName"].includes(C);return G($).forEach(([J,E])=>{if(T)$[J]=this.addPrefixToAnimation(n,E);else $[J]=E}),$}addPrefixToAnimation(n,C){if(C instanceof K)this.saveAnim(n,C);else if(W(C))return C[0]=this.addPrefixToAnimation(n,C[0]),C;else if(t(C)&&!C.includes("("))return C.split(", ").map((J)=>{let E=J.split(" "),q=E[0],U=E.slice(1).join(" "),R=`${this.base.PREFIX}${q}`;return this.base.ANIM.init(R,new Set).add(n),`${this.base.PREFIX}${q} ${U}`.trim()}).join(", ");return C}saveAnim(n,C){Sn(C).forEach(($)=>{this.base.ANIM.init(`${this.base.PREFIX}${$}`,new Set).add(n)})}process(n,C,$,T,J){if($ instanceof K)this.saveAnim(n,$),T.ass($.var,this.props(n,$.var,o($.value)));else if(C.startsWith(":")||C.startsWith(",")){if(C.startsWith("::before")||C.startsWith("::after")){if(W($)){if(!$.some((q)=>("content"in q)))$.push({content:""})}}this.set(n+C,$,J)}else if(C.startsWith(" ")){let q=C.match(/^.*?\w/gm)?.[0].slice(0,-1),U=C.replaceAll(/, /gm,`, ${n}${q}`);this.set(n+U,$,J)}else if($n(C))this.set(n+C,$,J);else T.set(C,this.props(n,C,o($)))}set(n,C,$){if(!d(C))return;let T=new L;if(C instanceof K)this.saveAnim(n,C),T.ass(C.var,this.props(n,C.var,o(C.value)));else if(C instanceof a)G(C._value).forEach(([E,q])=>{if(B(q))T.set(E,this.props(n,E,o(q)))});else if(C instanceof e)en(C),T.init("supports",[]).push(C);else if(W(C))C.forEach((E)=>{this.set(n,E,$)});else G(C).forEach(([E,q])=>{return this.process(n,E,q,T,$)});let J=$.init(n,new L);T.forEach((E,q)=>{if(q==="supports")$.init(n,new L).init(q,[])?.push(...E);else J.set(q,E)})}}class r{PRE;EXPORT;UNIT;PS;PREFIX;ARR=new L;CID=new L;DATA=new L;ANIM=new L;IMPORTED=[];constructor(n="",C="",$,T){this.PRE=n;this.EXPORT=$;this.UNIT=T;this.PREFIX=C?C+"_":C,this.PS=new qn(this)}get(n,C,$){let T=n.PRE+C;if(n.DATA.has(T))return T;else if(C in n)return n[C];else return n.PRE+C}set(n,C,$){return!1}get css(){return new Proxy(this,this)}load(n){return this.IMPORTED.push(n),this}}class V extends r{set(n,C,$){let T=n.PRE+C;return n.PS.set(T,$,n.DATA),!0}}class k extends r{webkit;constructor(n="",C=!0,$){super("",n,!1,$);this.webkit=C}set(n,C,$){let T=n.PREFIX+C,J=W($)?$:[$],E=new L;if(J.forEach((q)=>{G(q).forEach(([U,R])=>{let Z=_(U)?`${U}%`:U;n.PS.set(Z,R,E)})}),n.ANIM.init(T,new Set),n.DATA.set(`@keyframes ${T}`,E),this.webkit)n.DATA.set(`@-webkit-keyframes ${T}`,E);return!0}}class m extends r{constructor(n=""){super("@",n)}set(n,C,$){return n.ARR.init(n.PRE+C,new Set).add($),n}}class l extends r{constructor(n=""){super("@font-face",n);this.ARR.set(this.PRE,new Set)}set(n,C,$){let T=G({fontFamily:C,...$}).map(([J,E])=>{return z(J,E,this.UNIT)});return n.ARR.get(n.PRE)?.add(T.join(`
|
|
3
|
+
`)),!0}}var Yn=Array.from;class Rn{shweet;shaker;include;CID=new L;css="";constructor(n,C=[],$=[]){this.shweet=n;this.shaker=C;this.include=$}load(n,C="rem"){let $=N.default,T=N.prop;X(T,N.extra);let J=new L,E={},q={},U={},R=new Set,Z={},g={};w(T).forEach((S)=>{Z[S]={}});for(let S of P(this.shweet))if(S instanceof V){if(!S.DATA.size)continue;this.ClassID(S,E,q,n),S.ANIM.forEach((b,H)=>{b.forEach((F)=>{J.init(H,new Set).add(F)})})}else if(S instanceof k)this.KF(S,U,J);else if(S instanceof m)this.AT(S,R);else if(S instanceof l)this.FONT(S,R);return G(E).forEach(([S,b])=>{if(!Z[S])Z[S]={};G(b).forEach(([H,F])=>{let O=F.join(", ");if(!Z[S][O])Z[S][O]=[];Z[S][O].push(H)})}),G(q).forEach(([S,b])=>{G(b).forEach(([H,F])=>{if(!g[H])g[H]={};G(F).forEach(([O,D])=>{let M=`@supports (${S})`;if(!g[H][M])g[H][M]={};let I=D.join(", ");if(!g[H][M][I])g[H][M][I]=new Set;g[H][M][I].add(O)})})}),G(Z).forEach(([S,b])=>{let H=[],F=[];if(G(b).forEach(([O,D])=>{if(D.some((I)=>{return I.startsWith("animation")||I.startsWith("transition")}))F.push(u(O,D));else H.push(u(O,D))}),F.length)H.unshift(...F);if(U[S])G(U[S]).forEach(([O,D])=>{H.push(u(O,D))});if(g[S])G(g[S]).forEach(([O,D])=>{let M=G(D).map(([I,h])=>{return u(I,[...h])});H.push(u(O,M))});if(H.length)if(R.add(`/* -------------- ${S+(S===$?" ( default )":"")} */`),S===$)R.add(H.join(`
|
|
4
4
|
`));else{let O=S.split("-").map((D)=>T[D]).join(" and ");R.add(`@media ${O} {
|
|
5
5
|
${H.join(`
|
|
6
6
|
`)}
|
|
7
7
|
}`)}}),this.css=[...R].join(`
|
|
8
|
-
`),this}ClassID(n,C,$,T){let J=(E,
|
|
8
|
+
`),this}ClassID(n,C,$,T){let J=(E,q,U,R,Z)=>{G(q).forEach(([g,S])=>{this.push(Z,U,g,R,z(E,S,n.UNIT))})};n.DATA.forEach((E,q)=>{let U=CC(q,n.PREFIX),R=this.getCID(q,n.PREFIX,T);E.forEach((Z,g)=>{if(g==="supports"){if(W(Z))Z.forEach((S)=>{S.value.forEach((b,H)=>{if(!(H in $))$[H]={};b.forEach((F)=>{G(F).forEach(([O,D])=>{J(O,D,U,R,$[H])})})})})}else J(g,Z,U,R,C)})}),n.IMPORTED.forEach((E)=>{this.ClassID(E,C,$,E.EXPORT)})}KF(n,C,$){let T=(J,E,q)=>{jn(C,J,E),C[J][E].push(q)};n.DATA.forEach((J,E)=>{J.forEach((q,U)=>{let R={};q.forEach((Z,g)=>{if(g==="supports")c.e=["@supports not supported in @keyframes",{error:"support in keyframes"}];else G(Z).forEach(([S,b])=>{if(this.shaker.length){let H=E.split(" ")[1];if($.has(H)){if([...$.get(H)].some((D)=>{return this.getCID(D,"",!1,!1)})){if(!(S in R))R[S]=[];R[S].push(z(g,b,n.UNIT))}}}else{if(!(S in R))R[S]=[];R[S].push(z(g,b,n.UNIT))}})}),G(R).forEach(([Z,g])=>{T(Z,E,u(U,g))})})}),n.IMPORTED.forEach((J)=>{this.KF(J,C,$)})}AT(n,C){for(let[$,T]of n.ARR)T.forEach((J)=>{let E=J.includes("(")?J:`"${J}"`;C.add(`${$} ${E.trim()};`)});n.IMPORTED.forEach(($)=>{this.AT($,C)})}FONT(n,C){(n.ARR.get("@font-face")??new Set).forEach((J)=>{C.add(`@font-face {
|
|
9
9
|
${J}
|
|
10
|
-
}`)}),n.IMPORTED.forEach((J)=>{this.FONT(J,C)})}getCID(n,C,$,T=!0){let J=/\.(?![0-9])([a-zA-Z0-9_-]+)(?![^{]*})/g,E=/#(?![0-9])([a-zA-Z0-9_-]+)(?![^{]*})/g,
|
|
10
|
+
}`)}),n.IMPORTED.forEach((J)=>{this.FONT(J,C)})}getCID(n,C,$,T=!0){let J=/\.(?![0-9])([a-zA-Z0-9_-]+)(?![^{]*})/g,E=/#(?![0-9])([a-zA-Z0-9_-]+)(?![^{]*})/g,q=/\b([a-zA-Z][a-zA-Z0-9]*)\b(?![^{}]*})/g,U=[...new Set(Gn(n,J)),...new Set(Gn(n,E))];if(T&&B($)&&$)U.forEach((R)=>{this.CID.init(R.replaceAll("-","_"),new Set).add(C+R)});return U.push(...new Set(Gn(n,q))),U.some((R)=>this.shaker.includes(R)||this.include.includes(R))}push(n,C,$,T,J){if(!(this.shaker.length&&C.startsWith(".")||C.startsWith("#"))||T)jn(n,$,J),nC(n,$,J,C)}}var u=(n,C)=>{return`${n} {
|
|
11
11
|
${C.join(`
|
|
12
12
|
`)}
|
|
13
|
-
}`},Gn=(n,C)=>{return Yn(n.matchAll(C),($)=>$[1])},jn=(n,C,$)=>{try{if(!n[C])n[C]={},n[C][$]=[];if(!n[C][$])n[C][$]=[]}catch(T){c.e=[`property "${C}" not found!`,{error:"@ensurePropsInitialized"}]}},nC=(n,C,$,T)=>{if(!n[C])n[C]={[$]:T.split(",").map((J)=>J.trim())};else n[C][$].push(...T.split(",").map((J)=>J.trim()))},CC=(n,C)=>{if(C)return n.replaceAll(/\.|\#/g,($)=>$+C);return n};import{mkdirSync as $C,writeFileSync as TC,existsSync as Kn}from"fs";var nn=(n,C="")=>{if(Kn(n))return!0;return TC(n,C,{flag:"wx"}),!0},Cn=(n)=>{if(Kn(n))return!0;return $C(n,{recursive:!0}),!0};import{writeFileSync as wn}from"fs";function f(n){return function(...C){return{[n]:C}}}class Mn{static attr(n){let[C,$]=q(n)[0];return f(`[${C}="${$}"]`)}static after(n=""){return f("::after"+n)}static before(n=""){return f("::before"+n)}static backdrop(n=""){return f("::backdrop"+n)}static cue(n=""){return f("::cue"+n)}static cueRegion(n=""){return f("::cue-region"+n)}static firstLetter(n=""){return f("::first-letter"+n)}static firstLine(n=""){return f("::first-line"+n)}static marker(n=""){return f("::marker"+n)}static part(n=""){return f("::part"+n)}static placeholder(n=""){return f("::placeholder"+n)}static selection(n=""){return f("::selection"+n)}static slotted(n=""){return f("::slotted"+n)}static spellingError(n=""){return f("::spelling-error"+n)}static targetText(n=""){return f("::target-text"+n)}static viewTransition(n=""){return f("::view-transition"+n)}static viewTransitionGroup(n=""){return f("::view-transition-group"+n)}static viewTransitionImagePair(n=""){return f("::view-transition-image-pair"+n)}static viewTransitionNew(n=""){return f("::view-transition-new"+n)}static viewTransitionOld(n=""){return f("::view-transition-old"+n)}static scrollbar(n=""){return f("::-webkit-scrollbar"+n)}static scrollbarThumb(n=""){return f("::-webkit-scrollbar-thumb"+n)}static scrollbarTrack(n=""){return f("::-webkit-scrollbar-track"+n)}static scrollbarCorner(n=""){return f("::-webkit-scrollbar-corner"+n)}static active(n=""){return f(":active"+n)}static anyLink(n=""){return f(":any-link"+n)}static autofill(n=""){return f(":autofill"+n)}static blank(n=""){return f(":blank"+n)}static checked(n=""){return f(":checked"+n)}static current(n=""){return f(":current"+n)}static default(n=""){return f(":default"+n)}static defined(n=""){return f(":defined"+n)}static disabled(n=""){return f(":disabled"+n)}static empty(n=""){return f(":empty"+n)}static enabled(n=""){return f(":enabled"+n)}static first(n=""){return f(":first"+n)}static firstChild(n=""){return f(":first-child"+n)}static firstOfType(n=""){return f(":first-of-type"+n)}static fullscreen(n=""){return f(":fullscreen"+n)}static future(n=""){return f(":future"+n)}static focus(n=""){return f(":focus"+n)}static focusVisible(n=""){return f(":focus-visible"+n)}static focusWithin(n=""){return f(":focus-within"+n)}static host(n=""){return f(":host"+n)}static hover(n=""){return f(":hover"+n)}static indeterminate(n=""){return f(":indeterminate"+n)}static inRange(n=""){return f(":in-range"+n)}static invalid(n=""){return f(":invalid"+n)}static lastChild(n=""){return f(":last-child"+n)}static lastOfType(n=""){return f(":last-of-type"+n)}static left(n=""){return f(":left"+n)}static link(n=""){return f(":link"+n)}static localLink(n=""){return f(":local-link"+n)}static modal(n=""){return f(":modal"+n)}static onlyChild(n=""){return f(":only-child"+n)}static onlyOfType(n=""){return f(":only-of-type"+n)}static optional(n=""){return f(":optional"+n)}static outOfRange(n=""){return f(":out-of-range"+n)}static past(n=""){return f(":past"+n)}static pictureInPicture(n=""){return f(":picture-in-picture"+n)}static placeholderShown(n=""){return f(":placeholder-shown"+n)}static paused(n=""){return f(":paused"+n)}static playing(n=""){return f(":playing"+n)}static readOnly(n=""){return f(":read-only"+n)}static readWrite(n=""){return f(":read-write"+n)}static required(n=""){return f(":required"+n)}static right(n=""){return f(":right"+n)}static root(n=""){return f(":root"+n)}static scope(n=""){return f(":scope"+n)}static target(n=""){return f(":target"+n)}static targetWithin(n=""){return f(":target-within"+n)}static userInvalid(n=""){return f(":user-invalid"+n)}static valid(n=""){return f(":valid"+n)}static visited(n=""){return f(":visited"+n)}static dir(n){return f(`:dir(${n})`)}static has(n){return f(`:has(${n})`)}static host_(n){return f(`:host(${n})`)}static hostContext(n){return f(`:host-context(${n})`)}static is(n){return f(`:is(${n})`)}static lang(n){return f(`:lang(${n})`)}static not(n){return f(`:not(${n})`)}static nthChild(n){return f(`:nth-child(${n})`)}static nthCol(n){return f(`:nth-col(${n})`)}static nthLastChild(n){return f(`:nth-last-child(${n})`)}static nthLastCol(n){return f(`:nth-last-col(${n})`)}static nthLastOfType(n){return f(`:nth-last-of-type(${n})`)}static nthOfType(n){return f(`:nth-of-type(${n})`)}static state(n){return f(`:state(${n})`)}static where(n){return f(`:where(${n})`)}static and(n){return f(", "+n)}static child(n){return f(" > "+n)}static desc(n){return f(" "+n)}static next(n){return f(" + "+n)}static general(n){return f(" ~ "+n)}static withClass(n){if(!n.startsWith("."))throw Error("should start with . or # - class / id");return f(n)}}class In{static minmax(n,C){return`minmax(${Q([n,C],{rem:!0,delimeter:", "})})`}static fitContent(n){return`fit-content(${Q([n],{rem:!0})})`}static repeat(n,...C){return`repeat(${Q([n,Q([C],{rem:!0})],{delimeter:", "})})`}}class hn extends In{static attr(n,C,$){return`attr(${Q([n,C,$])})`}static blur(n){return`blur(${Q([n],{rem:!0})})`}static brightness(n){return`brightness(${Q([n])})`}static calc(...n){return`calc(${Q(n,{rem:!0})})`}static circle(n,C){return`circle(${Q([n,C],{rem:!0})})`}static clamp(n,C,$){return`clamp(${Q([n,C,$],{rem:!0,delimeter:", "})})`}static colorMix(n,C,$){return`color-mix(${Q([n,Q(W(C)?C:[C]),Q(W($)?$:[$])],{delimeter:", "})})`}static conicGradient(...n){return`conic-gradient(${Q(n,{delimeter:", "})})`}static contrast(n){return`contrast(${Q([n])})`}static cubicBezier(n,C,$,T){return`cubic-bezier(${Q([n,C,$,T],{delimeter:", "})})`}static dropShadow(...n){return`drop-shadow(${Q(n,{rem:!0})})`}static grayscale(n){return`grayscale(${Q([n])})`}static hsl(n,C,$){return`hsl(${Q([n,C,$])})`}static hsla(n,C,$,T){return`hsl(${Q([n,C,$,T?["/",T]:T])})`}static hueRotate(n){return`hue-rotate(${Q([n],{degree:!0})})`}static inset(...n){return`inset(${Q(n,{rem:!0})})`}static invert(n){return`invert(${Q([n])})`}static linearGradient(...n){return`linear-gradient(${Q(n,{delimeter:", "})})`}static matrix(n,C,$,T,J,E){return`matrix(${Q([n,C,$,T,J,E],{delimeter:", "})})`}static matrix3d(n,C,$,T){return`matrix3d(${Q([n,C,$,T],{delimeter:", "})})`}static max(...n){return`max(${Q(n,{rem:!0,delimeter:", "})})`}static min(...n){return`min(${Q(n,{rem:!0,delimeter:", "})})`}static opacity(n){return`opacity(${Q([n])})`}static path(n){return`path(${Q([n],{quote:!0})})`}static clipPath(n,C){return`path(${Q([n,Q([C],{quote:!0})],{delimeter:", "})})`}static perspective(n){return`perspective(${Q([n])})`}static polygon(...n){return`polygon(${Q(n,{percent:!0,delimeter:", "})})`}static ray(...n){return`ray(${Q(n,{degree:!0})})`}static radialGradient(...n){return`radial-gradient(${Q(n,{delimeter_arr:", ",percent:!0,delimeter:", "})})`}static repeatingConicGradient(...n){return`repeating-conic-gradient(${Q(n,{degree:!0,delimeter:", "})})`}static repeatingLinearGradient(...n){return`repeating-linear-gradient(${Q(n,{degree:!0,delimeter:", "})})`}static repeatingRadialGradient(...n){return`repeating-radial-gradient(${Q(n,{degree:!0,delimeter:", "})})`}static rgb(n,C,$){return`rgb(${Q([n,C,$])})`}static rgba(n,C,$,T){return`rgba(${Q([n,C,$,T?["/",T]:void 0],{delimeter_arr:" "})})`}static rotate(n){return`rotate(${Q([n],{degree:!0})})`}static rotate3d(n,C,$,T){return`rotate3d(${Q([Q([n,C,$],{delimeter:", "}),T],{degree:!0,delimeter:", "})})`}static rotateX(n){return`rotateX(${Q([n],{degree:!0})})`}static rotateY(n){return`rotateY(${Q([n],{degree:!0})})`}static rotateZ(n){return`rotateZ(${Q([n],{degree:!0})})`}static saturate(...n){return`saturate(${Q(n)})`}static scale(n,C){return`scale(${Q([n,C],{delimeter:", "})})`}static scale3d(n,C,$){return`scale3d(${Q([n,C,$],{delimeter:", "})})`}static scaleX(n){return`scaleX(${Q([n])})`}static scaleY(n){return`scaleY(${Q([n])})`}static scaleZ(n){return`scaleZ(${Q([n])})`}static sepia(n){return`sepia(${Q([n])})`}static skew(...n){return`skew(${Q(n,{degree:!0,delimeter:", "})})`}static skewX(n){return`skewX(${Q([n],{degree:!0})})`}static skewY(n){return`skewY(${Q([n],{degree:!0})})`}static steps(n,C){return`steps(${Q([n,C],{delimeter:", "})})`}static translate(...n){return`translate(${Q(n,{rem:!0,delimeter:", "})})`}static translate3d(...n){return`translate3d(${Q(n,{rem:!0,delimeter:", "})})`}static translateX(n){return`translateX(${Q([n],{rem:!0})})`}static translateY(n){return`translateY(${Q([n],{rem:!0})})`}static translateZ(...n){return`translateZ(${Q(n,{rem:!0,delimeter:", "})})`}static url(n){return`url(${Q([n],{quote:!0})})`}static var(n,C=""){n="--"+A(n);let $=C?", "+Q([C],{rem:!0,delimeter:", "}):"";return`var(${Q([n],{rem:!0})}${$})`}}var fC={important:" !important",visible:"visible",hidden:"hidden",auto:"auto",none:"none",clip:"clip",scroll:"scroll",initial:"initial",inherit:"inherit",flex:"flex",center:"center",flex_start:"flex-start",flex_end:"flex-end",space_evenly:"space-evenly",stretch:"stretch",wrap:"wrap",column:"column",column_reverse:"column-reverse",row:"row",row_reverse:"row-reverse",space_between:"space-between",space_around:"space-around",pr100:"100%",pr50:"50%",i100vh:"100vh",i100vw:"100vw",block:"block",sticky:"sticky",fixed:"fixed",absolute:"absolute",relative:"relative",pointer:"pointer",grabbing:"grabbing",checkbox:"checkbox",solid:"solid",inset:"inset",bold:"bold",currentColor:"currentColor",forwards:"forwards",text:"text",norepeat:"no-repeat",nowrap:"nowrap",difference:"difference",preserve3d:"preserve-3d"};class JC{path;name;prefix;exportMap;_imported=new Set;save;constructor({__filename:n,name:C,prefix:$,Shweet:T=[],exportMap:J,webkitKeyframes:E,unit:G="rem"}){this.path=n,this.name=C||qC(n),this.prefix=$??"",this.exportMap=J;let U=W(T)?T:[T];SC.call(this,this.prefix,U,E,J,G);let R=this;Object.assign(this,{get shweet(){return R}}),this.save=({dir:Z,mapDir:g,mapName:S="index",minify:b=!0,shaker:H=[],include:F=[]})=>{let O=B(J)?J:!!g,D=new Rn(this,H,F).load(O),M=W(Z)?Z:[Z],I=b?QC(D.css):D.css;if(M.forEach((h)=>{if(!h)return;let y=h.endsWith("/")?"":"/",Un=h+y+this.name+".css";Cn(h+y),nn(Un),wn(Un,I||"/* --------------*/")}),g){let h=g.endsWith("/")?"":"/",y=g+h+S+".js";Cn(g+h),nn(y),EC(y,D.CID)}return this}}get imported(){return[...this._imported]}}var QC=(n)=>{return n.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{}:;,])\s*/g,"$1").trim()},EC=(n,C)=>{let $={};C.forEach((J)=>{q(J).forEach(([E,G])=>{if(!$[E])$[E]=[G];else $[E].push(G)})});let T=[...C.entries()].map(([J,E])=>{return`${J}="${[...E].join(" ")}"`}).sort((J,E)=>J.localeCompare(E,void 0,{numeric:!0}));wn(n,T.length?`export const ${T.join()};`:"export {}");return};function SC(n,C,$=!1,T,J){let E={d:new V("",n,T,J),i:new V("#",n,T,J),c:new V(".",n,T,J),kf:new k(n,$,J),at:new m,font:new l};C.forEach((G)=>{this._imported.add(G.path),G._imported.forEach((U)=>{this._imported.add(U)}),w(E).forEach((U)=>{E[U].load(G[U])})}),w(E).forEach((G)=>{E[G]=E[G].css}),X(this,E)}function qC(n){return n.split("/").slice(-1)[0].split(".")[0]}export{fC as v,an as supports,Mn as ps,N as media,j as med,c as log,qC as fileName,hn as f,bn as __,vn as Var,Q as Value,JC as Shweet,a as Medyas};
|
|
13
|
+
}`},Gn=(n,C)=>{return Yn(n.matchAll(C),($)=>$[1])},jn=(n,C,$)=>{try{if(!n[C])n[C]={},n[C][$]=[];if(!n[C][$])n[C][$]=[]}catch(T){c.e=[`property "${C}" not found!`,{error:"@ensurePropsInitialized"}]}},nC=(n,C,$,T)=>{if(!n[C])n[C]={[$]:T.split(",").map((J)=>J.trim())};else n[C][$].push(...T.split(",").map((J)=>J.trim()))},CC=(n,C)=>{if(C)return n.replaceAll(/\.|\#/g,($)=>$+C);return n};import{mkdirSync as $C,writeFileSync as TC,existsSync as Kn}from"fs";var nn=(n,C="")=>{if(Kn(n))return!0;return TC(n,C,{flag:"wx"}),!0},Cn=(n)=>{if(Kn(n))return!0;return $C(n,{recursive:!0}),!0};import{writeFileSync as wn}from"fs";function f(n){return function(...C){return{[n]:C}}}class Mn{static attr(n){let[C,$]=G(n)[0];return f(`[${C}="${$}"]`)}static after(n=""){return f("::after"+n)}static before(n=""){return f("::before"+n)}static backdrop(n=""){return f("::backdrop"+n)}static cue(n=""){return f("::cue"+n)}static cueRegion(n=""){return f("::cue-region"+n)}static firstLetter(n=""){return f("::first-letter"+n)}static firstLine(n=""){return f("::first-line"+n)}static marker(n=""){return f("::marker"+n)}static part(n=""){return f("::part"+n)}static placeholder(n=""){return f("::placeholder"+n)}static selection(n=""){return f("::selection"+n)}static slotted(n=""){return f("::slotted"+n)}static spellingError(n=""){return f("::spelling-error"+n)}static targetText(n=""){return f("::target-text"+n)}static viewTransition(n=""){return f("::view-transition"+n)}static viewTransitionGroup(n=""){return f("::view-transition-group"+n)}static viewTransitionImagePair(n=""){return f("::view-transition-image-pair"+n)}static viewTransitionNew(n=""){return f("::view-transition-new"+n)}static viewTransitionOld(n=""){return f("::view-transition-old"+n)}static scrollbar(n=""){return f("::-webkit-scrollbar"+n)}static scrollbarThumb(n=""){return f("::-webkit-scrollbar-thumb"+n)}static scrollbarTrack(n=""){return f("::-webkit-scrollbar-track"+n)}static scrollbarCorner(n=""){return f("::-webkit-scrollbar-corner"+n)}static active(n=""){return f(":active"+n)}static anyLink(n=""){return f(":any-link"+n)}static autofill(n=""){return f(":autofill"+n)}static blank(n=""){return f(":blank"+n)}static checked(n=""){return f(":checked"+n)}static current(n=""){return f(":current"+n)}static default(n=""){return f(":default"+n)}static defined(n=""){return f(":defined"+n)}static disabled(n=""){return f(":disabled"+n)}static empty(n=""){return f(":empty"+n)}static enabled(n=""){return f(":enabled"+n)}static first(n=""){return f(":first"+n)}static firstChild(n=""){return f(":first-child"+n)}static firstOfType(n=""){return f(":first-of-type"+n)}static fullscreen(n=""){return f(":fullscreen"+n)}static future(n=""){return f(":future"+n)}static focus(n=""){return f(":focus"+n)}static focusVisible(n=""){return f(":focus-visible"+n)}static focusWithin(n=""){return f(":focus-within"+n)}static host(n=""){return f(":host"+n)}static hover(n=""){return f(":hover"+n)}static indeterminate(n=""){return f(":indeterminate"+n)}static inRange(n=""){return f(":in-range"+n)}static invalid(n=""){return f(":invalid"+n)}static lastChild(n=""){return f(":last-child"+n)}static lastOfType(n=""){return f(":last-of-type"+n)}static left(n=""){return f(":left"+n)}static link(n=""){return f(":link"+n)}static localLink(n=""){return f(":local-link"+n)}static modal(n=""){return f(":modal"+n)}static onlyChild(n=""){return f(":only-child"+n)}static onlyOfType(n=""){return f(":only-of-type"+n)}static optional(n=""){return f(":optional"+n)}static outOfRange(n=""){return f(":out-of-range"+n)}static past(n=""){return f(":past"+n)}static pictureInPicture(n=""){return f(":picture-in-picture"+n)}static placeholderShown(n=""){return f(":placeholder-shown"+n)}static paused(n=""){return f(":paused"+n)}static playing(n=""){return f(":playing"+n)}static readOnly(n=""){return f(":read-only"+n)}static readWrite(n=""){return f(":read-write"+n)}static required(n=""){return f(":required"+n)}static right(n=""){return f(":right"+n)}static root(n=""){return f(":root"+n)}static scope(n=""){return f(":scope"+n)}static target(n=""){return f(":target"+n)}static targetWithin(n=""){return f(":target-within"+n)}static userInvalid(n=""){return f(":user-invalid"+n)}static valid(n=""){return f(":valid"+n)}static visited(n=""){return f(":visited"+n)}static dir(n){return f(`:dir(${n})`)}static has(n){return f(`:has(${n})`)}static host_(n){return f(`:host(${n})`)}static hostContext(n){return f(`:host-context(${n})`)}static is(n){return f(`:is(${n})`)}static lang(n){return f(`:lang(${n})`)}static not(n){return f(`:not(${n})`)}static nthChild(n){return f(`:nth-child(${n})`)}static nthCol(n){return f(`:nth-col(${n})`)}static nthLastChild(n){return f(`:nth-last-child(${n})`)}static nthLastCol(n){return f(`:nth-last-col(${n})`)}static nthLastOfType(n){return f(`:nth-last-of-type(${n})`)}static nthOfType(n){return f(`:nth-of-type(${n})`)}static state(n){return f(`:state(${n})`)}static where(n){return f(`:where(${n})`)}static and(n){return f(", "+n)}static child(n){return f(" > "+n)}static desc(n){return f(" "+n)}static next(n){return f(" + "+n)}static general(n){return f(" ~ "+n)}static withClass(n){if(!n.startsWith("."))throw Error("should start with . or # - class / id");return f(n)}}class In{static minmax(n,C){return`minmax(${Q([n,C],{rem:!0,delimeter:", "})})`}static fitContent(n){return`fit-content(${Q([n],{rem:!0})})`}static repeat(n,...C){return`repeat(${Q([n,Q([C],{rem:!0})],{delimeter:", "})})`}}class hn extends In{static attr(n,C,$){return`attr(${Q([n,C,$])})`}static blur(n){return`blur(${Q([n],{rem:!0})})`}static brightness(n){return`brightness(${Q([n])})`}static calc(...n){return`calc(${Q(n,{rem:!0})})`}static circle(n,C){return`circle(${Q([n,C],{rem:!0})})`}static clamp(n,C,$){return`clamp(${Q([n,C,$],{rem:!0,delimeter:", "})})`}static colorMix(n,C,$){return`color-mix(${Q([n,Q(W(C)?C:[C]),Q(W($)?$:[$])],{delimeter:", "})})`}static conicGradient(...n){return`conic-gradient(${Q(n,{delimeter:", "})})`}static contrast(n){return`contrast(${Q([n])})`}static cubicBezier(n,C,$,T){return`cubic-bezier(${Q([n,C,$,T],{delimeter:", "})})`}static dropShadow(...n){return`drop-shadow(${Q(n,{rem:!0})})`}static grayscale(n){return`grayscale(${Q([n])})`}static hsl(n,C,$){return`hsl(${Q([n,C,$])})`}static hsla(n,C,$,T){return`hsl(${Q([n,C,$,T?["/",T]:T])})`}static hueRotate(n){return`hue-rotate(${Q([n],{degree:!0})})`}static inset(...n){return`inset(${Q(n,{rem:!0})})`}static invert(n){return`invert(${Q([n])})`}static linearGradient(...n){return`linear-gradient(${Q(n,{delimeter:", "})})`}static matrix(n,C,$,T,J,E){return`matrix(${Q([n,C,$,T,J,E],{delimeter:", "})})`}static matrix3d(n,C,$,T){return`matrix3d(${Q([n,C,$,T],{delimeter:", "})})`}static max(...n){return`max(${Q(n,{rem:!0,delimeter:", "})})`}static min(...n){return`min(${Q(n,{rem:!0,delimeter:", "})})`}static opacity(n){return`opacity(${Q([n])})`}static path(n){return`path(${Q([n],{quote:!0})})`}static clipPath(n,C){return`path(${Q([n,Q([C],{quote:!0})],{delimeter:", "})})`}static perspective(n){return`perspective(${Q([n])})`}static polygon(...n){return`polygon(${Q(n,{percent:!0,delimeter:", "})})`}static ray(...n){return`ray(${Q(n,{degree:!0})})`}static radialGradient(...n){return`radial-gradient(${Q(n,{delimeter_arr:", ",percent:!0,delimeter:", "})})`}static repeatingConicGradient(...n){return`repeating-conic-gradient(${Q(n,{degree:!0,delimeter:", "})})`}static repeatingLinearGradient(...n){return`repeating-linear-gradient(${Q(n,{degree:!0,delimeter:", "})})`}static repeatingRadialGradient(...n){return`repeating-radial-gradient(${Q(n,{degree:!0,delimeter:", "})})`}static rgb(n,C,$){return`rgb(${Q([n,C,$])})`}static rgba(n,C,$,T){return`rgba(${Q([n,C,$,T?["/",T]:void 0],{delimeter_arr:" "})})`}static rotate(n){return`rotate(${Q([n],{degree:!0})})`}static rotate3d(n,C,$,T){return`rotate3d(${Q([Q([n,C,$],{delimeter:", "}),T],{degree:!0,delimeter:", "})})`}static rotateX(n){return`rotateX(${Q([n],{degree:!0})})`}static rotateY(n){return`rotateY(${Q([n],{degree:!0})})`}static rotateZ(n){return`rotateZ(${Q([n],{degree:!0})})`}static saturate(...n){return`saturate(${Q(n)})`}static scale(n,C){return`scale(${Q([n,C],{delimeter:", "})})`}static scale3d(n,C,$){return`scale3d(${Q([n,C,$],{delimeter:", "})})`}static scaleX(n){return`scaleX(${Q([n])})`}static scaleY(n){return`scaleY(${Q([n])})`}static scaleZ(n){return`scaleZ(${Q([n])})`}static sepia(n){return`sepia(${Q([n])})`}static skew(...n){return`skew(${Q(n,{degree:!0,delimeter:", "})})`}static skewX(n){return`skewX(${Q([n],{degree:!0})})`}static skewY(n){return`skewY(${Q([n],{degree:!0})})`}static steps(n,C){return`steps(${Q([n,C],{delimeter:", "})})`}static translate(...n){return`translate(${Q(n,{rem:!0,delimeter:", "})})`}static translate3d(...n){return`translate3d(${Q(n,{rem:!0,delimeter:", "})})`}static translateX(n){return`translateX(${Q([n],{rem:!0})})`}static translateY(n){return`translateY(${Q([n],{rem:!0})})`}static translateZ(...n){return`translateZ(${Q(n,{rem:!0,delimeter:", "})})`}static url(n){return`url(${Q([n],{quote:!0})})`}static var(n,C=""){n="--"+A(n);let $=C?", "+Q([C],{rem:!0,delimeter:", "}):"";return`var(${Q([n],{rem:!0})}${$})`}}var fC={important:" !important",visible:"visible",hidden:"hidden",auto:"auto",none:"none",clip:"clip",scroll:"scroll",initial:"initial",inherit:"inherit",flex:"flex",center:"center",flex_start:"flex-start",flex_end:"flex-end",space_evenly:"space-evenly",stretch:"stretch",wrap:"wrap",column:"column",column_reverse:"column-reverse",row:"row",row_reverse:"row-reverse",space_between:"space-between",space_around:"space-around",pr100:"100%",pr50:"50%",i100vh:"100vh",i100vw:"100vw",block:"block",sticky:"sticky",fixed:"fixed",absolute:"absolute",relative:"relative",pointer:"pointer",grabbing:"grabbing",checkbox:"checkbox",solid:"solid",inset:"inset",bold:"bold",currentColor:"currentColor",forwards:"forwards",text:"text",norepeat:"no-repeat",nowrap:"nowrap",difference:"difference",preserve3d:"preserve-3d"};class JC{path;name;prefix;exportMap;_imported=new Set;save;constructor({__filename:n,name:C,prefix:$,Shweet:T=[],exportMap:J,webkitKeyframes:E,unit:q="rem"}){this.path=n,this.name=C||qC(n),this.prefix=$??"",this.exportMap=J;let U=W(T)?T:[T];SC.call(this,this.prefix,U,E,J,q);let R=this;Object.assign(this,{get shweet(){return R}}),this.save=({dir:Z,mapDir:g,mapName:S="index",minify:b=!0,shaker:H=[],include:F=[]})=>{let O=B(J)?J:!!g,D=new Rn(this,H,F).load(O),M=W(Z)?Z:[Z],I=b?QC(D.css):D.css;if(M.forEach((h)=>{if(!h)return;let y=h.endsWith("/")?"":"/",Un=h+y+this.name+".css";Cn(h+y),nn(Un),wn(Un,I||"/* --------------*/")}),g){let h=g.endsWith("/")?"":"/",y=g+h+S+".js";Cn(g+h),nn(y),EC(y,D.CID)}return this}}get imported(){return[...this._imported]}}var QC=(n)=>{return n.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{}:;,])\s*/g,"$1").trim()},EC=(n,C)=>{let $={};C.forEach((J)=>{G(J).forEach(([E,q])=>{if(!$[E])$[E]=[q];else $[E].push(q)})});let T=[...C.entries()].map(([J,E])=>{return`${J}="${[...E].join(" ")}"`}).sort((J,E)=>J.localeCompare(E,void 0,{numeric:!0}));wn(n,T.length?`export const ${T.join()};`:"export {}");return};function SC(n,C,$=!1,T,J){let E={d:new V("",n,T,J),i:new V("#",n,T,J),c:new V(".",n,T,J),kf:new k(n,$,J),at:new m,font:new l};C.forEach((q)=>{this._imported.add(q.path),q._imported.forEach((U)=>{this._imported.add(U)}),w(E).forEach((U)=>{E[U].load(q[U])})}),w(E).forEach((q)=>{E[q]=E[q].css}),X(this,E)}function qC(n){return n.split("/").slice(-1)[0].split(".")[0]}export{fC as v,an as supports,Mn as ps,N as media,j as med,c as log,qC as fileName,hn as f,bn as __,vn as Var,Q as Value,JC as Shweet,a as Medyas};
|