text: (()=>{return(t,r)=>{const e=t=>{if(t.startsWith("#")){t=t.substring(1)}const r=t.substring(0,2);const e=t.substring(2,4);const n=t.substring(4,6);return{red:r,green:e,blue:n}};const n=t=>{const{red:r,green:n,blue:o}=e(t);return`\\c&H${o}${n}${r}&`.toUpperCase()};const o=(t,r=1)=>{const{red:n,green:o,blue:s}=e(t);const c=Math.round(255*(1-r)).toString(16);return`&H${c}${s}${o}${n}`.toUpperCase()};const s=t=>{const[r,e="00"]=String(t).split(".");return`${r.padStart(2,"0")}.${e.substr(0,2).padEnd(2,"0")}`};const c=t=>{let r=0;let e=0;while(t>=60){t-=60;e++}while(e>=60){e-=60;r++}return`${r}:${String(e).padStart(2,"0")}:${s(t)}`};const u=(t,r)=>{return[c(t),c(t+r)]};const i=(t,r)=>{return[c(t),c(r)]};const a=t=>{const r={"{":"｛","}":"｝","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","\n":"\\N"};for(const[e,n]of Object.entries(r)){t=t.replace(new RegExp(e,"g"),n)}return t};return{export:{convertHexColorForDialogue:n,convertHexColorForStyle:o,convertTimeByDuration:u,convertTimeByEndTime:i,normalizeContent:a}}}})();