(function(t,i){typeof exports=="object"&&typeof module<"u"?i(exports):typeof define=="function"&&define.amd?define(["exports"],i):(t=typeof globalThis<"u"?globalThis:t||self,i(t["reading-time-estimator"]={}))})(this,function(t){"use strict";const d={en:{less:"less than a minute read",default:"min read"},fr:{less:"moins d'une minute de lecture",default:"min de lecture"},es:{less:"menos de un minuto leyendo",default:"min de lectura"},cn:{less:"小于一分钟",default:"分钟"},ja:{less:"1分未満の読み取り",default:"最小読み取り"},de:{less:"weniger als eine Minute Lesezeit",default:"Min. Lesezeit"},"pt-br":{less:"menos de um minuto de leitura",default:"minutos de leitura"},tr:{less:"bir dakikadan az okuma süresi",default:"dakika okuma süresi"},ro:{less:"timp de citire mai puțin de un minut",default:"min. timp de lectură"},bn:{less:"এক মিনিটের কম সময়ে পড়ুন",default:"সর্বনিম্ন সময়ে পড়ুন"},sk:{less:"menej ako minúta čítania",default:"min čítania"},cs:{less:"méně než minuta čtení",default:"min čtení"}},r=["en","fr","es","cn","ja","de","pt-br","tr","ro","bn","sk","cs"],l=e=>(e.match(/[\w|\d|\s|,|.|\u00C0-\u024F|\u4E00-\u9FA5|\u3041-\u309F]+/giu)??[]).flatMap(n=>n.match(/[\u4E00-\u9FA5]/gu)??n),c=e=>l(e).reduce((s,n)=>s+(n.trim().length?n.trim().split(/\s+/u).length:0),0),m=e=>e<1+Number.EPSILON,f=(e,s="en")=>d[s][e?"less":"default"],p=(e,s=300,n="en")=>{const a=c(e),u=Math.round(a/s),o=m(u);return{minutes:u,words:a,text:`${o?"":`${u} `}${f(o,n)}`}};t.readingTime=p,t.supportedLanguages=r,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});