function SplitText(s,e){function t(s){if("object"==typeof s&&null!==s){var e={};for(var i in s)e[i]=t(s[i]);return e}return s}function i(s,e){return new RegExp("(\\s|^)"+e+"(\\s|$)").test(s.className)}function o(s,e){i(s,e)||(s.className+=" "+e)}function r(s){var s=s,e=0,t=0,i=0,o=0;if(s.offsetParent){do s.offsetParent&&s.offsetParent==document.getElementsByTagName("html")[0],e+=s.offsetTop,t+=s.offsetParent?s.offsetParent.scrollTop:0,i+=s.offsetLeft,o+=s.offsetParent?s.offsetParent.scrollLeft:0;while(s=s.offsetParent);return[i-o,e-t]}}function n(s,e){var t="
",i="
";s.innerHTML=t+s.innerHTML.replaceAll(" ",i+" "+t)+i;for(var n=s.querySelectorAll("div"),l=0;l]+(>|$)/g,"");var y={lines:[],words:[],chars:[]};if(-1!=this.vars.type.indexOf("lines")){var g=d.innerHTML,u=g.split(" "),w=[];d.innerHTML=u[0];for(var T=d.offsetHeight,f=1;fT&&(T=d.offsetHeight,w.push(d.innerHTML.length-(u[f].length+1)));w.push(d.innerHTML.length),d.innerHTML="";for(var f=0;f=0;f--)y.chars[f].style.width=y.chars[f].offsetWidth+"px",y.chars[f].style.height=y.chars[f].offsetHeight+"px",y.chars[f].style.left=y.chars[f].toBe.left+"px",y.chars[f].style.top=y.chars[f].toBe.top+"px";for(var f=y.words.length-1;f>=0;f--)y.words[f].style.width=y.words[f].offsetWidth+"px",y.words[f].style.height=y.words[f].offsetHeight+"px",y.words[f].style.left=y.words[f].toBe.left+"px",y.words[f].style.top=y.words[f].toBe.top+"px";for(var f=y.lines.length-1;f>=0;f--)y.lines[f].style.width=y.lines[f].offsetWidth+"px",y.lines[f].style.height=y.lines[f].offsetHeight+"px",y.lines[f].style.left=y.lines[f].toBe.left+"px",y.lines[f].style.top=y.lines[f].toBe.top+"px";for(var f=y.chars.length-1;f>=0;f--)y.chars[f].style.position=this.vars.position;for(var f=y.words.length-1;f>=0;f--)y.words[f].style.position=this.vars.position;for(var f=y.lines.length-1;f>=0;f--)y.lines[f].style.position=this.vars.position}this.lines=this.lines.concat(y.lines),this.words=this.words.concat(y.words),this.chars=this.chars.concat(y.chars)}}