"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../../parchment@3.0.0/node_modules/parchment/dist/parchment.js");class e extends t.StyleAttributor{value(r){let o=super.value(r);return o.startsWith("rgb(")?(o=o.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${o.split(",").map(l=>`00${parseInt(l,10).toString(16)}`.slice(-2)).join("")}`):o}}const s=new t.ClassAttributor("color","ql-color",{scope:t.Scope.INLINE}),c=new e("color","color",{scope:t.Scope.INLINE});exports.ColorAttributor=e;exports.ColorClass=s;exports.ColorStyle=c;
