source: frontend/node_modules/css-declaration-sorter/dist/main.cjs

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 37.7 KB
Line 
1'use strict';
2
3Object.defineProperty(exports, '__esModule', { value: true });
4
5const shorthandData = {
6 'animation': [
7 'animation-name',
8 'animation-duration',
9 'animation-timing-function',
10 'animation-delay',
11 'animation-iteration-count',
12 'animation-direction',
13 'animation-fill-mode',
14 'animation-play-state',
15 ],
16 'background': [
17 'background-image',
18 'background-size',
19 'background-position',
20 'background-repeat',
21 'background-origin',
22 'background-clip',
23 'background-attachment',
24 'background-color',
25 ],
26 'columns': [
27 'column-width',
28 'column-count',
29 ],
30 'column-rule': [
31 'column-rule-width',
32 'column-rule-style',
33 'column-rule-color',
34 ],
35 'flex': [
36 'flex-grow',
37 'flex-shrink',
38 'flex-basis',
39 ],
40 'flex-flow': [
41 'flex-direction',
42 'flex-wrap',
43 ],
44 'font': [
45 'font-style',
46 'font-variant',
47 'font-weight',
48 'font-stretch',
49 'font-size',
50 'font-family',
51 'line-height',
52 ],
53 'grid': [
54 'grid-template-rows',
55 'grid-template-columns',
56 'grid-template-areas',
57 'grid-auto-rows',
58 'grid-auto-columns',
59 'grid-auto-flow',
60 'column-gap',
61 'row-gap',
62 ],
63 'grid-area': [
64 'grid-row-start',
65 'grid-column-start',
66 'grid-row-end',
67 'grid-column-end',
68 ],
69 'grid-column': [
70 'grid-column-start',
71 'grid-column-end',
72 ],
73 'grid-row': [
74 'grid-row-start',
75 'grid-row-end',
76 ],
77 'grid-template': [
78 'grid-template-columns',
79 'grid-template-rows',
80 'grid-template-areas',
81 ],
82 'list-style': [
83 'list-style-type',
84 'list-style-position',
85 'list-style-image',
86 ],
87 'padding': [
88 'padding-block',
89 'padding-block-start',
90 'padding-block-end',
91 'padding-inline',
92 'padding-inline-start',
93 'padding-inline-end',
94 'padding-top',
95 'padding-right',
96 'padding-bottom',
97 'padding-left',
98 ],
99 'padding-block': [
100 'padding-block-start',
101 'padding-block-end',
102 'padding-top',
103 'padding-right',
104 'padding-bottom',
105 'padding-left',
106 ],
107 'padding-block-start': [
108 'padding-top',
109 'padding-right',
110 'padding-left',
111 ],
112 'padding-block-end': [
113 'padding-right',
114 'padding-bottom',
115 'padding-left',
116 ],
117 'padding-inline': [
118 'padding-inline-start',
119 'padding-inline-end',
120 'padding-top',
121 'padding-right',
122 'padding-bottom',
123 'padding-left',
124 ],
125 'padding-inline-start': [
126 'padding-top',
127 'padding-right',
128 'padding-left',
129 ],
130 'padding-inline-end': [
131 'padding-right',
132 'padding-bottom',
133 'padding-left',
134 ],
135 'margin': [
136 'margin-block',
137 'margin-block-start',
138 'margin-block-end',
139 'margin-inline',
140 'margin-inline-start',
141 'margin-inline-end',
142 'margin-top',
143 'margin-right',
144 'margin-bottom',
145 'margin-left',
146 ],
147 'margin-block': [
148 'margin-block-start',
149 'margin-block-end',
150 'margin-top',
151 'margin-right',
152 'margin-bottom',
153 'margin-left',
154 ],
155 'margin-inline': [
156 'margin-inline-start',
157 'margin-inline-end',
158 'margin-top',
159 'margin-right',
160 'margin-bottom',
161 'margin-left',
162 ],
163 'margin-inline-start': [
164 'margin-top',
165 'margin-right',
166 'margin-bottom',
167 'margin-left',
168 ],
169 'margin-inline-end': [
170 'margin-top',
171 'margin-right',
172 'margin-bottom',
173 'margin-left',
174 ],
175 'border': [
176 'border-top',
177 'border-right',
178 'border-bottom',
179 'border-left',
180 'border-width',
181 'border-style',
182 'border-color',
183 'border-top-width',
184 'border-right-width',
185 'border-bottom-width',
186 'border-left-width',
187 'border-inline-start-width',
188 'border-inline-end-width',
189 'border-block-start-width',
190 'border-block-end-width',
191 'border-top-style',
192 'border-right-style',
193 'border-bottom-style',
194 'border-left-style',
195 'border-inline-start-style',
196 'border-inline-end-style',
197 'border-block-start-style',
198 'border-block-end-style',
199 'border-top-color',
200 'border-right-color',
201 'border-bottom-color',
202 'border-left-color',
203 'border-inline-start-color',
204 'border-inline-end-color',
205 'border-block-start-color',
206 'border-block-end-color',
207 'border-block',
208 'border-block-start',
209 'border-block-end',
210 'border-block-width',
211 'border-block-style',
212 'border-block-color',
213 'border-inline',
214 'border-inline-start',
215 'border-inline-end',
216 'border-inline-width',
217 'border-inline-style',
218 'border-inline-color',
219 ],
220 'border-top': [
221 'border-width',
222 'border-style',
223 'border-color',
224 'border-top-width',
225 'border-top-style',
226 'border-top-color',
227 ],
228 'border-right': [
229 'border-width',
230 'border-style',
231 'border-color',
232 'border-right-width',
233 'border-right-style',
234 'border-right-color',
235 ],
236 'border-bottom': [
237 'border-width',
238 'border-style',
239 'border-color',
240 'border-bottom-width',
241 'border-bottom-style',
242 'border-bottom-color',
243 ],
244 'border-left': [
245 'border-width',
246 'border-style',
247 'border-color',
248 'border-left-width',
249 'border-left-style',
250 'border-left-color',
251 ],
252 'border-color': [
253 'border-top-color',
254 'border-bottom-color',
255 'border-left-color',
256 'border-right-color',
257 'border-inline-start-color',
258 'border-inline-end-color',
259 'border-block-start-color',
260 'border-block-end-color',
261 ],
262 'border-width': [
263 'border-top-width',
264 'border-bottom-width',
265 'border-left-width',
266 'border-right-width',
267 'border-inline-start-width',
268 'border-inline-end-width',
269 'border-block-start-width',
270 'border-block-end-width',
271 ],
272 'border-style': [
273 'border-top-style',
274 'border-bottom-style',
275 'border-left-style',
276 'border-right-style',
277 'border-inline-start-style',
278 'border-inline-end-style',
279 'border-block-start-style',
280 'border-block-end-style',
281 ],
282 'border-radius': [
283 'border-top-right-radius',
284 'border-top-left-radius',
285 'border-bottom-right-radius',
286 'border-bottom-left-radius',
287 ],
288 'border-block': [
289 'border-block-start',
290 'border-block-end',
291 'border-block-width',
292 'border-width',
293 'border-block-style',
294 'border-style',
295 'border-block-color',
296 'border-color',
297 ],
298 'border-block-start': [
299 'border-block-start-width',
300 'border-width',
301 'border-block-start-style',
302 'border-style',
303 'border-block-start-color',
304 'border-color',
305 ],
306 'border-block-end': [
307 'border-block-end-width',
308 'border-width',
309 'border-block-end-style',
310 'border-style',
311 'border-block-end-color',
312 'border-color',
313 ],
314 'border-inline': [
315 'border-inline-start',
316 'border-inline-end',
317 'border-inline-width',
318 'border-width',
319 'border-inline-style',
320 'border-style',
321 'border-inline-color',
322 'border-color',
323 ],
324 'border-inline-start': [
325 'border-inline-start-width',
326 'border-width',
327 'border-inline-start-style',
328 'border-style',
329 'border-inline-start-color',
330 'border-color',
331 ],
332 'border-inline-end': [
333 'border-inline-end-width',
334 'border-width',
335 'border-inline-end-style',
336 'border-style',
337 'border-inline-end-color',
338 'border-color',
339 ],
340 'border-image': [
341 'border-image-source',
342 'border-image-slice',
343 'border-image-width',
344 'border-image-outset',
345 'border-image-repeat',
346 ],
347 'mask': [
348 'mask-image',
349 'mask-mode',
350 'mask-position',
351 'mask-size',
352 'mask-repeat',
353 'mask-origin',
354 'mask-clip',
355 'mask-composite',
356 ],
357 'inline-size': [
358 'width',
359 'height',
360 ],
361 'block-size': [
362 'width',
363 'height',
364 ],
365 'max-inline-size': [
366 'max-width',
367 'max-height',
368 ],
369 'max-block-size': [
370 'max-width',
371 'max-height',
372 ],
373 'inset': [
374 'inset-block',
375 'inset-block-start',
376 'inset-block-end',
377 'inset-inline',
378 'inset-inline-start',
379 'inset-inline-end',
380 'top',
381 'right',
382 'bottom',
383 'left',
384 ],
385 'inset-block': [
386 'inset-block-start',
387 'inset-block-end',
388 'top',
389 'right',
390 'bottom',
391 'left',
392 ],
393 'inset-inline': [
394 'inset-inline-start',
395 'inset-inline-end',
396 'top',
397 'right',
398 'bottom',
399 'left',
400 ],
401 'outline': [
402 'outline-color',
403 'outline-style',
404 'outline-width',
405 ],
406 'overflow': [
407 'overflow-x',
408 'overflow-y',
409 ],
410 'place-content': [
411 'align-content',
412 'justify-content',
413 ],
414 'place-items': [
415 'align-items',
416 'justify-items',
417 ],
418 'place-self': [
419 'align-self',
420 'justify-self',
421 ],
422 'text-decoration': [
423 'text-decoration-color',
424 'text-decoration-style',
425 'text-decoration-line',
426 ],
427 'transition': [
428 'transition-delay',
429 'transition-duration',
430 'transition-property',
431 'transition-timing-function',
432 ],
433 'text-emphasis': [
434 'text-emphasis-style',
435 'text-emphasis-color',
436 ],
437};
438
439function bubbleSort (list, comparator) {
440 let upperIndex = list.length - 1;
441
442 while (upperIndex > 0) {
443 let swapIndex = 0;
444
445 for (let i = 0; i < upperIndex; i += 1) {
446 if (comparator(list[i], list[i + 1]) > 0) {
447 const temp = list[i + 1];
448 list[i + 1] = list[i];
449 list[i] = temp;
450 swapIndex = i;
451 }
452 }
453
454 upperIndex = swapIndex;
455 }
456
457 return list;
458}
459
460function __variableDynamicImportRuntime0__(path) {
461 switch (path) {
462 case '../orders/alphabetical.mjs': return Promise.resolve().then(function () { return alphabetical; });
463 case '../orders/concentric-css.mjs': return Promise.resolve().then(function () { return concentricCss; });
464 case '../orders/smacss.mjs': return Promise.resolve().then(function () { return smacss; });
465 default: return new Promise(function(resolve, reject) {
466 (typeof queueMicrotask === 'function' ? queueMicrotask : setTimeout)(
467 reject.bind(null, new Error("Unknown variable dynamic import: " + path))
468 );
469 })
470 }
471 }
472
473const builtInOrders = [
474 'alphabetical',
475 'concentric-css',
476 'smacss',
477];
478
479const cssDeclarationSorter = ({ order = 'alphabetical', keepOverrides = false } = {}) => ({
480 postcssPlugin: 'css-declaration-sorter',
481 OnceExit (css) {
482 let withKeepOverrides = comparator => comparator;
483 if (keepOverrides) {
484 withKeepOverrides = withOverridesComparator(shorthandData);
485 }
486
487 if (typeof order === 'function') {
488 return processCss({ css, comparator: withKeepOverrides(order) });
489 }
490
491 if (!builtInOrders.includes(order))
492 return Promise.reject(
493 Error([
494 `Invalid built-in order '${order}' provided.`,
495 `Available built-in orders are: ${builtInOrders}`,
496 ].join('\n'))
497 );
498
499 return __variableDynamicImportRuntime0__(`../orders/${order}.mjs`)
500 .then(({ properties }) => processCss({
501 css,
502 comparator: withKeepOverrides(orderComparator(properties)),
503 }));
504 },
505});
506
507cssDeclarationSorter.postcss = true;
508
509function processCss ({ css, comparator }) {
510 const comments = [];
511 const rulesCache = [];
512
513 css.walk(node => {
514 const nodes = node.nodes;
515 const type = node.type;
516
517 if (type === 'comment') {
518 // Don't do anything to root comments or the last newline comment
519 const isNewlineNode = node.raws.before && node.raws.before.includes('\n');
520 const lastNewlineNode = isNewlineNode && !node.next();
521 const onlyNode = !node.prev() && !node.next() || !node.parent;
522
523 if (lastNewlineNode || onlyNode || node.parent.type === 'root') {
524 return;
525 }
526
527 if (isNewlineNode) {
528 const pairedNode = node.next() || node.prev();
529 if (pairedNode) {
530 comments.unshift({
531 'comment': node,
532 'pairedNode': pairedNode,
533 'insertPosition': node.next() ? 'Before' : 'After',
534 });
535 node.remove();
536 }
537 } else {
538 const pairedNode = node.prev() || node.next();
539 if (pairedNode) {
540 comments.push({
541 'comment': node,
542 'pairedNode': pairedNode,
543 'insertPosition': 'After',
544 });
545 node.remove();
546 }
547 }
548 return;
549 }
550
551 // Add rule-like nodes to a cache so that we can remove all
552 // comment nodes before we start sorting.
553 const isRule = type === 'rule' || type === 'atrule';
554 if (isRule && nodes && nodes.length > 1) {
555 rulesCache.push(nodes);
556 }
557 });
558
559 // Perform a sort once all comment nodes are removed
560 rulesCache.forEach(nodes => {
561 sortCssDeclarations({ nodes, comparator });
562 });
563
564 // Add comments back to the nodes they are paired with
565 comments.forEach(node => {
566 const pairedNode = node.pairedNode;
567 node.comment.remove();
568 pairedNode.parent && pairedNode.parent['insert' + node.insertPosition](pairedNode, node.comment);
569 });
570}
571
572function sortCssDeclarations ({ nodes, comparator }) {
573 bubbleSort(nodes, (a, b) => {
574 if (a.type === 'decl' && b.type === 'decl') {
575 return comparator(a.prop, b.prop);
576 } else {
577 return compareDifferentType(a, b);
578 }
579 });
580}
581
582function withOverridesComparator (shorthandData) {
583 return function (comparator) {
584 return function (a, b) {
585 a = removeVendorPrefix(a);
586 b = removeVendorPrefix(b);
587
588 if (shorthandData[a] && shorthandData[a].includes(b)) return 0;
589 if (shorthandData[b] && shorthandData[b].includes(a)) return 0;
590
591 return comparator(a, b);
592 };
593 };
594}
595
596function orderComparator (order) {
597 return function (a, b) {
598 return order.indexOf(a) - order.indexOf(b);
599 };
600}
601
602function compareDifferentType (a, b) {
603 if (b.type === 'atrule' || a.type === 'atrule') {
604 return 0;
605 }
606
607 return a.type === 'decl' ? -1 : b.type === 'decl' ? 1 : 0;
608}
609
610function removeVendorPrefix (property) {
611 return property.replace(/^-\w+-/, '');
612}
613
614const properties$2 = [
615 "all",
616 "-webkit-line-clamp",
617 "-webkit-text-fill-color",
618 "-webkit-text-stroke",
619 "-webkit-text-stroke-color",
620 "-webkit-text-stroke-width",
621 "accent-color",
622 "align-content",
623 "align-items",
624 "align-self",
625 "animation",
626 "animation-delay",
627 "animation-direction",
628 "animation-duration",
629 "animation-fill-mode",
630 "animation-iteration-count",
631 "animation-name",
632 "animation-play-state",
633 "animation-timing-function",
634 "appearance",
635 "ascent-override",
636 "aspect-ratio",
637 "backdrop-filter",
638 "backface-visibility",
639 "background",
640 "background-attachment",
641 "background-blend-mode",
642 "background-clip",
643 "background-color",
644 "background-image",
645 "background-origin",
646 "background-position",
647 "background-position-x",
648 "background-position-y",
649 "background-repeat",
650 "background-size",
651 "block-size",
652 "border",
653 "border-block",
654 "border-block-color",
655 "border-block-end",
656 "border-block-end-color",
657 "border-block-end-style",
658 "border-block-end-width",
659 "border-block-start",
660 "border-block-start-color",
661 "border-block-start-style",
662 "border-block-start-width",
663 "border-block-style",
664 "border-block-width",
665 "border-bottom",
666 "border-bottom-color",
667 "border-bottom-left-radius",
668 "border-bottom-right-radius",
669 "border-bottom-style",
670 "border-bottom-width",
671 "border-collapse",
672 "border-color",
673 "border-end-end-radius",
674 "border-end-start-radius",
675 "border-image",
676 "border-image-outset",
677 "border-image-repeat",
678 "border-image-slice",
679 "border-image-source",
680 "border-image-width",
681 "border-inline",
682 "border-inline-color",
683 "border-inline-end",
684 "border-inline-end-color",
685 "border-inline-end-style",
686 "border-inline-end-width",
687 "border-inline-start",
688 "border-inline-start-color",
689 "border-inline-start-style",
690 "border-inline-start-width",
691 "border-inline-style",
692 "border-inline-width",
693 "border-left",
694 "border-left-color",
695 "border-left-style",
696 "border-left-width",
697 "border-radius",
698 "border-right",
699 "border-right-color",
700 "border-right-style",
701 "border-right-width",
702 "border-spacing",
703 "border-start-end-radius",
704 "border-start-start-radius",
705 "border-style",
706 "border-top",
707 "border-top-color",
708 "border-top-left-radius",
709 "border-top-right-radius",
710 "border-top-style",
711 "border-top-width",
712 "border-width",
713 "bottom",
714 "box-decoration-break",
715 "box-shadow",
716 "box-sizing",
717 "break-after",
718 "break-before",
719 "break-inside",
720 "caption-side",
721 "caret-color",
722 "clear",
723 "clip-path",
724 "color",
725 "color-scheme",
726 "column-count",
727 "column-fill",
728 "column-gap",
729 "column-rule",
730 "column-rule-color",
731 "column-rule-style",
732 "column-rule-width",
733 "column-span",
734 "column-width",
735 "columns",
736 "contain",
737 "contain-intrinsic-height",
738 "contain-intrinsic-size",
739 "contain-intrinsic-width",
740 "container",
741 "container-name",
742 "container-type",
743 "content",
744 "content-visibility",
745 "counter-increment",
746 "counter-reset",
747 "counter-set",
748 "cursor",
749 "descent-override",
750 "direction",
751 "display",
752 "empty-cells",
753 "filter",
754 "flex",
755 "flex-basis",
756 "flex-direction",
757 "flex-flow",
758 "flex-grow",
759 "flex-shrink",
760 "flex-wrap",
761 "float",
762 "font",
763 "font-display",
764 "font-family",
765 "font-kerning",
766 "font-language-override",
767 "font-optical-sizing",
768 "font-palette",
769 "font-size",
770 "font-size-adjust",
771 "font-stretch",
772 "font-style",
773 "font-synthesis",
774 "font-variant",
775 "font-variant-alternates",
776 "font-variant-caps",
777 "font-variant-east-asian",
778 "font-variant-emoji",
779 "font-variant-ligatures",
780 "font-variant-numeric",
781 "font-variant-position",
782 "font-variation-settings",
783 "font-weight",
784 "forced-color-adjust",
785 "gap",
786 "grid",
787 "grid-area",
788 "grid-auto-columns",
789 "grid-auto-flow",
790 "grid-auto-rows",
791 "grid-column",
792 "grid-column-end",
793 "grid-column-start",
794 "grid-row",
795 "grid-row-end",
796 "grid-row-start",
797 "grid-template",
798 "grid-template-areas",
799 "grid-template-columns",
800 "grid-template-rows",
801 "hanging-punctuation",
802 "height",
803 "hyphenate-character",
804 "hyphens",
805 "image-orientation",
806 "image-rendering",
807 "inline-size",
808 "inset",
809 "inset-block",
810 "inset-block-end",
811 "inset-block-start",
812 "inset-inline",
813 "inset-inline-end",
814 "inset-inline-start",
815 "isolation",
816 "justify-content",
817 "justify-items",
818 "justify-self",
819 "left",
820 "letter-spacing",
821 "line-break",
822 "line-gap-override",
823 "line-height",
824 "list-style",
825 "list-style-image",
826 "list-style-position",
827 "list-style-type",
828 "margin",
829 "margin-block",
830 "margin-block-end",
831 "margin-block-start",
832 "margin-bottom",
833 "margin-inline",
834 "margin-inline-end",
835 "margin-inline-start",
836 "margin-left",
837 "margin-right",
838 "margin-top",
839 "mask",
840 "mask-border",
841 "mask-border-outset",
842 "mask-border-repeat",
843 "mask-border-slice",
844 "mask-border-source",
845 "mask-border-width",
846 "mask-clip",
847 "mask-composite",
848 "mask-image",
849 "mask-mode",
850 "mask-origin",
851 "mask-position",
852 "mask-repeat",
853 "mask-size",
854 "mask-type",
855 "max-block-size",
856 "max-height",
857 "max-inline-size",
858 "max-width",
859 "min-block-size",
860 "min-height",
861 "min-inline-size",
862 "min-width",
863 "mix-blend-mode",
864 "object-fit",
865 "object-position",
866 "offset",
867 "offset-anchor",
868 "offset-distance",
869 "offset-path",
870 "offset-rotate",
871 "opacity",
872 "order",
873 "orphans",
874 "outline",
875 "outline-color",
876 "outline-offset",
877 "outline-style",
878 "outline-width",
879 "overflow",
880 "overflow-anchor",
881 "overflow-block",
882 "overflow-clip-margin",
883 "overflow-inline",
884 "overflow-wrap",
885 "overflow-x",
886 "overflow-y",
887 "overscroll-behavior",
888 "overscroll-behavior-block",
889 "overscroll-behavior-inline",
890 "overscroll-behavior-x",
891 "overscroll-behavior-y",
892 "padding",
893 "padding-block",
894 "padding-block-end",
895 "padding-block-start",
896 "padding-bottom",
897 "padding-inline",
898 "padding-inline-end",
899 "padding-inline-start",
900 "padding-left",
901 "padding-right",
902 "padding-top",
903 "page",
904 "page-break-after",
905 "page-break-before",
906 "page-break-inside",
907 "paint-order",
908 "perspective",
909 "perspective-origin",
910 "place-content",
911 "place-items",
912 "place-self",
913 "pointer-events",
914 "position",
915 "print-color-adjust",
916 "quotes",
917 "resize",
918 "right",
919 "rotate",
920 "row-gap",
921 "ruby-position",
922 "scale",
923 "scroll-behavior",
924 "scroll-margin",
925 "scroll-margin-block",
926 "scroll-margin-block-end",
927 "scroll-margin-block-start",
928 "scroll-margin-bottom",
929 "scroll-margin-inline",
930 "scroll-margin-inline-end",
931 "scroll-margin-inline-start",
932 "scroll-margin-left",
933 "scroll-margin-right",
934 "scroll-margin-top",
935 "scroll-padding",
936 "scroll-padding-block",
937 "scroll-padding-block-end",
938 "scroll-padding-block-start",
939 "scroll-padding-bottom",
940 "scroll-padding-inline",
941 "scroll-padding-inline-end",
942 "scroll-padding-inline-start",
943 "scroll-padding-left",
944 "scroll-padding-right",
945 "scroll-padding-top",
946 "scroll-snap-align",
947 "scroll-snap-stop",
948 "scroll-snap-type",
949 "scrollbar-color",
950 "scrollbar-gutter",
951 "scrollbar-width",
952 "shape-image-threshold",
953 "shape-margin",
954 "shape-outside",
955 "size-adjust",
956 "src",
957 "tab-size",
958 "table-layout",
959 "text-align",
960 "text-align-last",
961 "text-combine-upright",
962 "text-decoration",
963 "text-decoration-color",
964 "text-decoration-line",
965 "text-decoration-skip-ink",
966 "text-decoration-style",
967 "text-decoration-thickness",
968 "text-emphasis",
969 "text-emphasis-color",
970 "text-emphasis-position",
971 "text-emphasis-style",
972 "text-indent",
973 "text-justify",
974 "text-orientation",
975 "text-overflow",
976 "text-rendering",
977 "text-shadow",
978 "text-transform",
979 "text-underline-offset",
980 "text-underline-position",
981 "top",
982 "touch-action",
983 "transform",
984 "transform-box",
985 "transform-origin",
986 "transform-style",
987 "transition",
988 "transition-delay",
989 "transition-duration",
990 "transition-property",
991 "transition-timing-function",
992 "translate",
993 "unicode-bidi",
994 "unicode-range",
995 "user-select",
996 "vertical-align",
997 "visibility",
998 "white-space",
999 "widows",
1000 "width",
1001 "will-change",
1002 "word-break",
1003 "word-spacing",
1004 "writing-mode",
1005 "z-index"
1006];
1007
1008var alphabetical = /*#__PURE__*/Object.freeze({
1009 __proto__: null,
1010 properties: properties$2
1011});
1012
1013const properties$1 = [
1014 "all",
1015 "display",
1016 "position",
1017 "top",
1018 "right",
1019 "bottom",
1020 "left",
1021 "offset",
1022 "offset-anchor",
1023 "offset-distance",
1024 "offset-path",
1025 "offset-rotate",
1026 "grid",
1027 "grid-template-rows",
1028 "grid-template-columns",
1029 "grid-template-areas",
1030 "grid-auto-rows",
1031 "grid-auto-columns",
1032 "grid-auto-flow",
1033 "column-gap",
1034 "row-gap",
1035 "grid-area",
1036 "grid-row",
1037 "grid-row-start",
1038 "grid-row-end",
1039 "grid-column",
1040 "grid-column-start",
1041 "grid-column-end",
1042 "grid-template",
1043 "flex",
1044 "flex-grow",
1045 "flex-shrink",
1046 "flex-basis",
1047 "flex-direction",
1048 "flex-flow",
1049 "flex-wrap",
1050 "box-decoration-break",
1051 "place-content",
1052 "align-content",
1053 "justify-content",
1054 "place-items",
1055 "align-items",
1056 "justify-items",
1057 "place-self",
1058 "align-self",
1059 "justify-self",
1060 "vertical-align",
1061 "order",
1062 "float",
1063 "clear",
1064 "shape-margin",
1065 "shape-outside",
1066 "shape-image-threshold",
1067 "orphans",
1068 "gap",
1069 "columns",
1070 "column-fill",
1071 "column-rule",
1072 "column-rule-width",
1073 "column-rule-style",
1074 "column-rule-color",
1075 "column-width",
1076 "column-span",
1077 "column-count",
1078 "break-before",
1079 "break-after",
1080 "break-inside",
1081 "page",
1082 "page-break-before",
1083 "page-break-after",
1084 "page-break-inside",
1085 "transform",
1086 "transform-box",
1087 "transform-origin",
1088 "transform-style",
1089 "translate",
1090 "rotate",
1091 "scale",
1092
1093 "perspective",
1094 "perspective-origin",
1095 "appearance",
1096 "visibility",
1097 "content-visibility",
1098 "opacity",
1099 "z-index",
1100 "paint-order",
1101 "mix-blend-mode",
1102 "backface-visibility",
1103 "backdrop-filter",
1104 "clip-path",
1105 "mask",
1106 "mask-border",
1107 "mask-border-outset",
1108 "mask-border-repeat",
1109 "mask-border-slice",
1110 "mask-border-source",
1111 "mask-border-width",
1112 "mask-image",
1113 "mask-mode",
1114 "mask-position",
1115 "mask-size",
1116 "mask-repeat",
1117 "mask-origin",
1118 "mask-clip",
1119 "mask-composite",
1120 "mask-type",
1121 "filter",
1122 "animation",
1123 "animation-duration",
1124 "animation-timing-function",
1125 "animation-delay",
1126 "animation-iteration-count",
1127 "animation-direction",
1128 "animation-fill-mode",
1129 "animation-play-state",
1130 "animation-name",
1131 "transition",
1132 "transition-delay",
1133 "transition-duration",
1134 "transition-property",
1135 "transition-timing-function",
1136 "will-change",
1137 "counter-increment",
1138 "counter-reset",
1139 "counter-set",
1140 "cursor",
1141
1142 "box-sizing",
1143 "contain",
1144 "contain-intrinsic-height",
1145 "contain-intrinsic-size",
1146 "contain-intrinsic-width",
1147 "container",
1148 "container-name",
1149 "container-type",
1150 "margin",
1151 "margin-top",
1152 "margin-right",
1153 "margin-bottom",
1154 "margin-left",
1155 "margin-inline",
1156 "margin-inline-start",
1157 "margin-inline-end",
1158 "margin-block",
1159 "margin-block-start",
1160 "margin-block-end",
1161 "inset",
1162 "inset-block",
1163 "inset-block-end",
1164 "inset-block-start",
1165 "inset-inline",
1166 "inset-inline-end",
1167 "inset-inline-start",
1168 "outline",
1169 "outline-color",
1170 "outline-style",
1171 "outline-width",
1172 "outline-offset",
1173 "box-shadow",
1174 "border",
1175 "border-top",
1176 "border-right",
1177 "border-bottom",
1178 "border-left",
1179 "border-width",
1180 "border-top-width",
1181 "border-right-width",
1182 "border-bottom-width",
1183 "border-left-width",
1184 "border-style",
1185 "border-top-style",
1186 "border-right-style",
1187 "border-bottom-style",
1188 "border-left-style",
1189 "border-color",
1190 "border-top-color",
1191 "border-right-color",
1192 "border-bottom-color",
1193 "border-left-color",
1194 "border-radius",
1195 "border-top-right-radius",
1196 "border-top-left-radius",
1197 "border-bottom-right-radius",
1198 "border-bottom-left-radius",
1199 "border-inline",
1200 "border-inline-width",
1201 "border-inline-style",
1202 "border-inline-color",
1203 "border-inline-start",
1204 "border-inline-start-width",
1205 "border-inline-start-style",
1206 "border-inline-start-color",
1207 "border-inline-end",
1208 "border-inline-end-width",
1209 "border-inline-end-style",
1210 "border-inline-end-color",
1211 "border-block",
1212 "border-block-width",
1213 "border-block-style",
1214 "border-block-color",
1215 "border-block-start",
1216 "border-block-start-width",
1217 "border-block-start-style",
1218 "border-block-start-color",
1219 "border-block-end",
1220 "border-block-end-width",
1221 "border-block-end-style",
1222 "border-block-end-color",
1223 "border-image",
1224 "border-image-source",
1225 "border-image-slice",
1226 "border-image-width",
1227 "border-image-outset",
1228 "border-image-repeat",
1229 "border-collapse",
1230 "border-spacing",
1231 "border-start-start-radius",
1232 "border-start-end-radius",
1233 "border-end-start-radius",
1234 "border-end-end-radius",
1235 "background",
1236 "background-image",
1237 "background-position",
1238 "background-size",
1239 "background-repeat",
1240 "background-origin",
1241 "background-clip",
1242 "background-attachment",
1243 "background-color",
1244 "background-blend-mode",
1245 "background-position-x",
1246 "background-position-y",
1247 "isolation",
1248 "padding",
1249 "padding-top",
1250 "padding-right",
1251 "padding-bottom",
1252 "padding-left",
1253 "padding-inline",
1254 "padding-inline-start",
1255 "padding-inline-end",
1256 "padding-block",
1257 "padding-block-start",
1258 "padding-block-end",
1259 "image-orientation",
1260 "image-rendering",
1261
1262 "aspect-ratio",
1263 "width",
1264 "min-width",
1265 "max-width",
1266 "height",
1267 "min-height",
1268 "max-height",
1269 "-webkit-line-clamp",
1270 "-webkit-text-fill-color",
1271 "-webkit-text-stroke",
1272 "-webkit-text-stroke-color",
1273 "-webkit-text-stroke-width",
1274 "inline-size",
1275 "min-inline-size",
1276 "max-inline-size",
1277 "block-size",
1278 "min-block-size",
1279 "max-block-size",
1280 "table-layout",
1281 "caption-side",
1282 "empty-cells",
1283 "overflow",
1284 "overflow-anchor",
1285 "overflow-block",
1286 "overflow-clip-margin",
1287 "overflow-inline",
1288 "overflow-x",
1289 "overflow-y",
1290 "overscroll-behavior",
1291 "overscroll-behavior-block",
1292 "overscroll-behavior-inline",
1293 "overscroll-behavior-x",
1294 "overscroll-behavior-y",
1295 "resize",
1296 "object-fit",
1297 "object-position",
1298 "scroll-behavior",
1299 "scroll-margin",
1300 "scroll-margin-block",
1301 "scroll-margin-block-end",
1302 "scroll-margin-block-start",
1303 "scroll-margin-bottom",
1304 "scroll-margin-inline",
1305 "scroll-margin-inline-end",
1306 "scroll-margin-inline-start",
1307 "scroll-margin-left",
1308 "scroll-margin-right",
1309 "scroll-margin-top",
1310 "scroll-padding",
1311 "scroll-padding-block",
1312 "scroll-padding-block-end",
1313 "scroll-padding-block-start",
1314 "scroll-padding-bottom",
1315 "scroll-padding-inline",
1316 "scroll-padding-inline-end",
1317 "scroll-padding-inline-start",
1318 "scroll-padding-left",
1319 "scroll-padding-right",
1320 "scroll-padding-top",
1321 "scroll-snap-align",
1322 "scroll-snap-stop",
1323 "scroll-snap-type",
1324 "scrollbar-color",
1325 "scrollbar-gutter",
1326 "scrollbar-width",
1327 "touch-action",
1328 "pointer-events",
1329
1330 "content",
1331 "quotes",
1332 "hanging-punctuation",
1333 "color",
1334 "accent-color",
1335 "print-color-adjust",
1336 "forced-color-adjust",
1337 "color-scheme",
1338 "caret-color",
1339 "font",
1340 "font-style",
1341 "font-variant",
1342 "font-weight",
1343 "font-stretch",
1344 "font-size",
1345 "size-adjust",
1346 "line-height",
1347 "src",
1348 "font-family",
1349 "font-display",
1350 "font-kerning",
1351 "font-language-override",
1352 "font-optical-sizing",
1353 "font-palette",
1354 "font-size-adjust",
1355 "font-synthesis",
1356 "font-variant-alternates",
1357 "font-variant-caps",
1358 "font-variant-east-asian",
1359 "font-variant-emoji",
1360 "font-variant-ligatures",
1361 "font-variant-numeric",
1362 "font-variant-position",
1363 "font-variation-settings",
1364 "ascent-override",
1365 "descent-override",
1366 "line-gap-override",
1367 "hyphens",
1368 "hyphenate-character",
1369 "letter-spacing",
1370 "line-break",
1371 "list-style",
1372 "list-style-type",
1373 "list-style-image",
1374 "list-style-position",
1375 "writing-mode",
1376 "direction",
1377 "unicode-bidi",
1378 "unicode-range",
1379 "user-select",
1380 "ruby-position",
1381 "text-combine-upright",
1382 "text-align",
1383 "text-align-last",
1384 "text-decoration",
1385 "text-decoration-line",
1386 "text-decoration-style",
1387 "text-decoration-color",
1388 "text-decoration-thickness",
1389 "text-decoration-skip-ink",
1390 "text-emphasis",
1391 "text-emphasis-style",
1392 "text-emphasis-color",
1393 "text-emphasis-position",
1394 "text-indent",
1395 "text-justify",
1396 "text-underline-position",
1397 "text-underline-offset",
1398 "text-orientation",
1399 "text-overflow",
1400 "text-rendering",
1401 "text-shadow",
1402 "text-transform",
1403 "white-space",
1404 "word-break",
1405 "word-spacing",
1406 "overflow-wrap",
1407 "tab-size",
1408 "widows"
1409];
1410
1411var concentricCss = /*#__PURE__*/Object.freeze({
1412 __proto__: null,
1413 properties: properties$1
1414});
1415
1416const properties = [
1417 "all",
1418 "box-sizing",
1419 "contain",
1420 "contain-intrinsic-height",
1421 "contain-intrinsic-size",
1422 "contain-intrinsic-width",
1423 "container",
1424 "container-name",
1425 "container-type",
1426 "display",
1427 "appearance",
1428 "visibility",
1429 "content-visibility",
1430 "z-index",
1431 "paint-order",
1432 "position",
1433 "top",
1434 "right",
1435 "bottom",
1436 "left",
1437 "offset",
1438 "offset-anchor",
1439 "offset-distance",
1440 "offset-path",
1441 "offset-rotate",
1442
1443
1444 "grid",
1445 "grid-template-rows",
1446 "grid-template-columns",
1447 "grid-template-areas",
1448 "grid-auto-rows",
1449 "grid-auto-columns",
1450 "grid-auto-flow",
1451 "column-gap",
1452 "row-gap",
1453 "grid-area",
1454 "grid-row",
1455 "grid-row-start",
1456 "grid-row-end",
1457 "grid-column",
1458 "grid-column-start",
1459 "grid-column-end",
1460 "grid-template",
1461 "flex",
1462 "flex-grow",
1463 "flex-shrink",
1464 "flex-basis",
1465 "flex-direction",
1466 "flex-flow",
1467 "flex-wrap",
1468 "box-decoration-break",
1469 "place-content",
1470 "place-items",
1471 "place-self",
1472 "align-content",
1473 "align-items",
1474 "align-self",
1475 "justify-content",
1476 "justify-items",
1477 "justify-self",
1478 "order",
1479 "aspect-ratio",
1480 "width",
1481 "min-width",
1482 "max-width",
1483 "height",
1484 "min-height",
1485 "max-height",
1486 "-webkit-line-clamp",
1487 "-webkit-text-fill-color",
1488 "-webkit-text-stroke",
1489 "-webkit-text-stroke-color",
1490 "-webkit-text-stroke-width",
1491 "inline-size",
1492 "min-inline-size",
1493 "max-inline-size",
1494 "block-size",
1495 "min-block-size",
1496 "max-block-size",
1497 "margin",
1498 "margin-top",
1499 "margin-right",
1500 "margin-bottom",
1501 "margin-left",
1502 "margin-inline",
1503 "margin-inline-start",
1504 "margin-inline-end",
1505 "margin-block",
1506 "margin-block-start",
1507 "margin-block-end",
1508 "inset",
1509 "inset-block",
1510 "inset-block-end",
1511 "inset-block-start",
1512 "inset-inline",
1513 "inset-inline-end",
1514 "inset-inline-start",
1515 "padding",
1516 "padding-top",
1517 "padding-right",
1518 "padding-bottom",
1519 "padding-left",
1520 "padding-inline",
1521 "padding-inline-start",
1522 "padding-inline-end",
1523 "padding-block",
1524 "padding-block-start",
1525 "padding-block-end",
1526 "float",
1527 "clear",
1528 "overflow",
1529 "overflow-anchor",
1530 "overflow-block",
1531 "overflow-clip-margin",
1532 "overflow-inline",
1533 "overflow-x",
1534 "overflow-y",
1535 "overscroll-behavior",
1536 "overscroll-behavior-block",
1537 "overscroll-behavior-inline",
1538 "overscroll-behavior-x",
1539 "overscroll-behavior-y",
1540 "orphans",
1541 "gap",
1542 "columns",
1543 "column-fill",
1544 "column-rule",
1545 "column-rule-color",
1546 "column-rule-style",
1547 "column-rule-width",
1548 "column-span",
1549 "column-count",
1550 "column-width",
1551 "object-fit",
1552 "object-position",
1553 "transform",
1554 "transform-box",
1555 "transform-origin",
1556 "transform-style",
1557 "translate",
1558 "rotate",
1559 "scale",
1560
1561 "border",
1562 "border-top",
1563 "border-right",
1564 "border-bottom",
1565 "border-left",
1566 "border-width",
1567 "border-top-width",
1568 "border-right-width",
1569 "border-bottom-width",
1570 "border-left-width",
1571 "border-style",
1572 "border-top-style",
1573 "border-right-style",
1574 "border-bottom-style",
1575 "border-left-style",
1576 "border-radius",
1577 "border-top-right-radius",
1578 "border-top-left-radius",
1579 "border-bottom-right-radius",
1580 "border-bottom-left-radius",
1581 "border-inline",
1582 "border-inline-color",
1583 "border-inline-style",
1584 "border-inline-width",
1585 "border-inline-start",
1586 "border-inline-start-color",
1587 "border-inline-start-style",
1588 "border-inline-start-width",
1589 "border-inline-end",
1590 "border-inline-end-color",
1591 "border-inline-end-style",
1592 "border-inline-end-width",
1593 "border-block",
1594 "border-block-color",
1595 "border-block-style",
1596 "border-block-width",
1597 "border-block-start",
1598 "border-block-start-color",
1599 "border-block-start-style",
1600 "border-block-start-width",
1601 "border-block-end",
1602 "border-block-end-color",
1603 "border-block-end-style",
1604 "border-block-end-width",
1605 "border-color",
1606 "border-image",
1607 "border-image-outset",
1608 "border-image-repeat",
1609 "border-image-slice",
1610 "border-image-source",
1611 "border-image-width",
1612 "border-top-color",
1613 "border-right-color",
1614 "border-bottom-color",
1615 "border-left-color",
1616 "border-collapse",
1617 "border-spacing",
1618 "border-start-start-radius",
1619 "border-start-end-radius",
1620 "border-end-start-radius",
1621 "border-end-end-radius",
1622 "outline",
1623 "outline-color",
1624 "outline-style",
1625 "outline-width",
1626 "outline-offset",
1627
1628 "backdrop-filter",
1629 "backface-visibility",
1630 "background",
1631 "background-image",
1632 "background-position",
1633 "background-size",
1634 "background-repeat",
1635 "background-origin",
1636 "background-clip",
1637 "background-attachment",
1638 "background-color",
1639 "background-blend-mode",
1640 "background-position-x",
1641 "background-position-y",
1642 "box-shadow",
1643 "isolation",
1644
1645 "content",
1646 "quotes",
1647 "hanging-punctuation",
1648 "color",
1649 "accent-color",
1650 "print-color-adjust",
1651 "forced-color-adjust",
1652 "color-scheme",
1653 "caret-color",
1654 "font",
1655 "font-style",
1656 "font-variant",
1657 "font-weight",
1658 "src",
1659 "font-stretch",
1660 "font-size",
1661 "size-adjust",
1662 "line-height",
1663 "font-family",
1664 "font-display",
1665 "font-kerning",
1666 "font-language-override",
1667 "font-optical-sizing",
1668 "font-palette",
1669 "font-size-adjust",
1670 "font-synthesis",
1671 "font-variant-alternates",
1672 "font-variant-caps",
1673 "font-variant-east-asian",
1674 "font-variant-emoji",
1675 "font-variant-ligatures",
1676 "font-variant-numeric",
1677 "font-variant-position",
1678 "font-variation-settings",
1679 "ascent-override",
1680 "descent-override",
1681 "line-gap-override",
1682 "hyphens",
1683 "hyphenate-character",
1684 "letter-spacing",
1685 "line-break",
1686 "list-style",
1687 "list-style-image",
1688 "list-style-position",
1689 "list-style-type",
1690 "direction",
1691 "text-align",
1692 "text-align-last",
1693 "text-decoration",
1694 "text-decoration-line",
1695 "text-decoration-style",
1696 "text-decoration-color",
1697 "text-decoration-thickness",
1698 "text-decoration-skip-ink",
1699 "text-emphasis",
1700 "text-emphasis-style",
1701 "text-emphasis-color",
1702 "text-emphasis-position",
1703 "text-indent",
1704 "text-justify",
1705 "text-underline-position",
1706 "text-underline-offset",
1707 "text-orientation",
1708 "text-overflow",
1709 "text-rendering",
1710 "text-shadow",
1711 "text-transform",
1712 "vertical-align",
1713 "white-space",
1714 "word-break",
1715 "word-spacing",
1716 "overflow-wrap",
1717
1718 "animation",
1719 "animation-duration",
1720 "animation-timing-function",
1721 "animation-delay",
1722 "animation-iteration-count",
1723 "animation-direction",
1724 "animation-fill-mode",
1725 "animation-play-state",
1726 "animation-name",
1727 "mix-blend-mode",
1728 "break-before",
1729 "break-after",
1730 "break-inside",
1731 "page",
1732 "page-break-before",
1733 "page-break-after",
1734 "page-break-inside",
1735 "caption-side",
1736 "clip-path",
1737 "counter-increment",
1738 "counter-reset",
1739 "counter-set",
1740 "cursor",
1741 "empty-cells",
1742 "filter",
1743 "image-orientation",
1744 "image-rendering",
1745 "mask",
1746 "mask-border",
1747 "mask-border-outset",
1748 "mask-border-repeat",
1749 "mask-border-slice",
1750 "mask-border-source",
1751 "mask-border-width",
1752 "mask-clip",
1753 "mask-composite",
1754 "mask-image",
1755 "mask-mode",
1756 "mask-origin",
1757 "mask-position",
1758 "mask-repeat",
1759 "mask-size",
1760 "mask-type",
1761 "opacity",
1762 "perspective",
1763 "perspective-origin",
1764 "pointer-events",
1765 "resize",
1766 "scroll-behavior",
1767 "scroll-margin",
1768 "scroll-margin-block",
1769 "scroll-margin-block-end",
1770 "scroll-margin-block-start",
1771 "scroll-margin-bottom",
1772 "scroll-margin-inline",
1773 "scroll-margin-inline-end",
1774 "scroll-margin-inline-start",
1775 "scroll-margin-left",
1776 "scroll-margin-right",
1777 "scroll-margin-top",
1778 "scroll-padding",
1779 "scroll-padding-block",
1780 "scroll-padding-block-end",
1781 "scroll-padding-block-start",
1782 "scroll-padding-bottom",
1783 "scroll-padding-inline",
1784 "scroll-padding-inline-end",
1785 "scroll-padding-inline-start",
1786 "scroll-padding-left",
1787 "scroll-padding-right",
1788 "scroll-padding-top",
1789 "scroll-snap-align",
1790 "scroll-snap-stop",
1791 "scroll-snap-type",
1792 "scrollbar-color",
1793 "scrollbar-gutter",
1794 "scrollbar-width",
1795 "shape-image-threshold",
1796 "shape-margin",
1797 "shape-outside",
1798 "tab-size",
1799 "table-layout",
1800 "ruby-position",
1801 "text-combine-upright",
1802 "touch-action",
1803 "transition",
1804 "transition-delay",
1805 "transition-duration",
1806 "transition-property",
1807 "transition-timing-function",
1808 "will-change",
1809 "unicode-bidi",
1810 "unicode-range",
1811 "user-select",
1812 "widows",
1813 "writing-mode"
1814];
1815
1816var smacss = /*#__PURE__*/Object.freeze({
1817 __proto__: null,
1818 properties: properties
1819});
1820
1821exports.cssDeclarationSorter = cssDeclarationSorter;
1822exports.default = cssDeclarationSorter;
1823
1824module.exports = cssDeclarationSorter;
Note: See TracBrowser for help on using the repository browser.