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iB,OAAQ,CAAE,MAAO,oBACxD,QAAQ,QAAU","file":"/npm/stylis-plugin-rtl@2.1.1/dist/cjs/stylis-rtl.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/stylis-plugin-rtl@2.1.1/dist/cjs/stylis-rtl.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar cssjanus_1 = __importDefault(require(\"cssjanus\"));\nvar stylis_1 = require(\"stylis\");\nfunction stringifyPreserveComments(element, index, children) {\n    switch (element.type) {\n        case stylis_1.IMPORT:\n        case stylis_1.DECLARATION:\n        case stylis_1.COMMENT:\n            return (element.return = element.return || element.value);\n        case stylis_1.RULESET: {\n            element.value = Array.isArray(element.props) ? element.props.join(',') : element.props;\n            if (Array.isArray(element.children)) {\n                element.children.forEach(function (x) {\n                    if (x.type === stylis_1.COMMENT)\n                        x.children = x.value;\n                });\n            }\n        }\n    }\n    var serializedChildren = (0, stylis_1.serialize)(Array.prototype.concat(element.children), stringifyPreserveComments);\n    return (0, stylis_1.strlen)(serializedChildren) ? (element.return = element.value + '{' + serializedChildren + '}') : '';\n}\nfunction stylisRTLPlugin(element, index, children, callback) {\n    if (element.type === stylis_1.KEYFRAMES ||\n        element.type === stylis_1.SUPPORTS ||\n        (element.type === stylis_1.RULESET && (!element.parent || element.parent.type === stylis_1.MEDIA || element.parent.type === stylis_1.RULESET))) {\n        var stringified = cssjanus_1.default.transform(stringifyPreserveComments(element, index, children));\n        element.children = stringified ? (0, stylis_1.compile)(stringified)[0].children : [];\n        element.return = '';\n    }\n}\n// stable identifier that will not be dropped by minification unless the whole module\n// is unused\nObject.defineProperty(stylisRTLPlugin, 'name', { value: 'stylisRTLPlugin' });\nexports.default = stylisRTLPlugin;\n"]}