-
Notifications
You must be signed in to change notification settings - Fork 0
/
SplitText.min.js
11 lines (9 loc) · 15.3 KB
/
SplitText.min.js
1
2
3
4
5
6
7
8
9
10
/*!
* SplitText 3.12.5
* https://gsap.com
*
* @license Copyright 2024, GreenSock. All rights reserved.
* This plugin is a membership benefit of Club GSAP and is only authorized for use in sites/apps/products developed by individuals/companies with an active Club GSAP membership. See https://gsap.com/pricing
* @author: Jack Doyle, [email protected]
*/
!function(D,u){"object"==typeof exports&&"undefined"!=typeof module?u(exports):"function"==typeof define&&define.amd?define(["exports"],u):u((D=D||self).window=D.window||{})}(this,function(D){"use strict";var b=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF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|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function n(D){X=document,e=window,(C=C||D||e.gsap||console.warn("Please gsap.registerPlugin(SplitText)"))&&(E=C.utils.toArray,i=C.core.context||function(){},F=1)}function o(D){return e.getComputedStyle(D)}function p(D){return"absolute"===D.position||!0===D.absolute}function q(D,u){for(var e,t=u.length;-1<--t;)if(e=u[t],D.substr(0,e.length)===e)return e.length}function s(D,u){void 0===D&&(D="");var e=~D.indexOf("++"),t=1;return e&&(D=D.split("++").join("")),function(){return"<"+u+" style='position:relative;display:inline-block;'"+(D?" class='"+D+(e?t++:"")+"'>":">")}}function t(D,u,e){var F=D.nodeType;if(1===F||9===F||11===F)for(D=D.firstChild;D;D=D.nextSibling)t(D,u,e);else 3!==F&&4!==F||(D.nodeValue=D.nodeValue.split(u).join(e))}function u(D,u){for(var e=u.length;-1<--e;)D.push(u[e])}function v(D,u,e){for(var t;D&&D!==u;){if(t=D._next||D.nextSibling)return t.textContent.charAt(0)===e;D=D.parentNode||D._parent}}function w(D){var u,e,t=E(D.childNodes),F=t.length;for(u=0;u<F;u++)(e=t[u])._isSplit?w(e):u&&e.previousSibling&&3===e.previousSibling.nodeType?(e.previousSibling.nodeValue+=3===e.nodeType?e.nodeValue:e.firstChild.nodeValue,D.removeChild(e)):3!==e.nodeType&&(D.insertBefore(e.firstChild,e),D.removeChild(e))}function x(D,u){return parseFloat(u[D])||0}function y(D,e,F,C,i,n,s){var E,r,l,d,a,h,B,f,A,c,g,y,b=o(D),_=x("paddingLeft",b),S=-999,T=x("borderBottomWidth",b)+x("borderTopWidth",b),m=x("borderLeftWidth",b)+x("borderRightWidth",b),N=x("paddingTop",b)+x("paddingBottom",b),L=x("paddingLeft",b)+x("paddingRight",b),W=x("fontSize",b)*(e.lineThreshold||.2),H=b.textAlign,O=[],V=[],M=[],R=e.wordDelimiter||" ",j=e.tag?e.tag:e.span?"span":"div",k=e.type||e.split||"chars,words,lines",P=i&&~k.indexOf("lines")?[]:null,z=~k.indexOf("words"),q=~k.indexOf("chars"),G=p(e),I=e.linesClass,J=~(I||"").indexOf("++"),K=[],Q="flex"===b.display,U=D.style.display;for(J&&(I=I.split("++").join("")),Q&&(D.style.display="block"),l=(r=D.getElementsByTagName("*")).length,a=[],E=0;E<l;E++)a[E]=r[E];if(P||G)for(E=0;E<l;E++)((h=(d=a[E]).parentNode===D)||G||q&&!z)&&(y=d.offsetTop,P&&h&&Math.abs(y-S)>W&&("BR"!==d.nodeName||0===E)&&(B=[],P.push(B),S=y),G&&(d._x=d.offsetLeft,d._y=y,d._w=d.offsetWidth,d._h=d.offsetHeight),P&&((d._isSplit&&h||!q&&h||z&&h||!z&&d.parentNode.parentNode===D&&!d.parentNode._isSplit)&&(B.push(d),d._x-=_,v(d,D,R)&&(d._wordEnd=!0)),"BR"===d.nodeName&&(d.nextSibling&&"BR"===d.nextSibling.nodeName||0===E)&&P.push([])));for(E=0;E<l;E++)if(h=(d=a[E]).parentNode===D,"BR"!==d.nodeName)if(G&&(A=d.style,z||h||(d._x+=d.parentNode._x,d._y+=d.parentNode._y),A.left=d._x+"px",A.top=d._y+"px",A.position="absolute",A.display="block",A.width=d._w+1+"px",A.height=d._h+"px"),!z&&q)if(d._isSplit)for(d._next=r=d.nextSibling,d.parentNode.appendChild(d);r&&3===r.nodeType&&" "===r.textContent;)d._next=r.nextSibling,d.parentNode.appendChild(r),r=r.nextSibling;else d.parentNode._isSplit?(d._parent=d.parentNode,!d.previousSibling&&d.firstChild&&(d.firstChild._isFirst=!0),d.nextSibling&&" "===d.nextSibling.textContent&&!d.nextSibling.nextSibling&&K.push(d.nextSibling),d._next=d.nextSibling&&d.nextSibling._isFirst?null:d.nextSibling,d.parentNode.removeChild(d),a.splice(E--,1),l--):h||(y=!d.nextSibling&&v(d.parentNode,D,R),d.parentNode._parent&&d.parentNode._parent.appendChild(d),y&&d.parentNode.appendChild(X.createTextNode(" ")),"span"===j&&(d.style.display="inline"),O.push(d));else d.parentNode._isSplit&&!d._isSplit&&""!==d.innerHTML?V.push(d):q&&!d._isSplit&&("span"===j&&(d.style.display="inline"),O.push(d));else P||G?(d.parentNode&&d.parentNode.removeChild(d),a.splice(E--,1),l--):z||D.appendChild(d);for(E=K.length;-1<--E;)K[E].parentNode.removeChild(K[E]);if(P){for(G&&(c=X.createElement(j),D.appendChild(c),g=c.offsetWidth+"px",y=c.offsetParent===D?0:D.offsetLeft,D.removeChild(c)),A=D.style.cssText,D.style.cssText="display:none;";D.firstChild;)D.removeChild(D.firstChild);for(f=" "===R&&(!G||!z&&!q),E=0;E<P.length;E++){for(B=P[E],(c=X.createElement(j)).style.cssText="display:block;text-align:"+H+";position:"+(G?"absolute;":"relative;"),I&&(c.className=I+(J?E+1:"")),M.push(c),l=B.length,r=0;r<l;r++)"BR"!==B[r].nodeName&&(d=B[r],c.appendChild(d),f&&d._wordEnd&&c.appendChild(X.createTextNode(" ")),G&&(0===r&&(c.style.top=d._y+"px",c.style.left=_+y+"px"),d.style.top="0px",y&&(d.style.left=d._x-y+"px")));0===l?c.innerHTML=" ":z||q||(w(c),t(c,String.fromCharCode(160)," ")),G&&(c.style.width=g,c.style.height=d._h+"px"),D.appendChild(c)}D.style.cssText=A}G&&(s>D.clientHeight&&(D.style.height=s-N+"px",D.clientHeight<s&&(D.style.height=s+T+"px")),n>D.clientWidth&&(D.style.width=n-L+"px",D.clientWidth<n&&(D.style.width=n+m+"px"))),Q&&(U?D.style.display=U:D.style.removeProperty("display")),u(F,O),z&&u(C,V),u(i,M)}function z(D,u,e,F){function eb(D){return D===B||D===T&&" "===B}var C,i,n,s,E,r,l,o,d=u.tag?u.tag:u.span?"span":"div",a=~(u.type||u.split||"chars,words,lines").indexOf("chars"),h=p(u),B=u.wordDelimiter||" ",f=" "!==B?"":h?"­ ":" ",A="</"+d+">",c=1,x=u.specialChars?"function"==typeof u.specialChars?u.specialChars:q:null,g=X.createElement("div"),y=D.parentNode;for(y.insertBefore(g,D),g.textContent=D.nodeValue,y.removeChild(D),l=-1!==(C=function getText(D){var u=D.nodeType,e="";if(1===u||9===u||11===u){if("string"==typeof D.textContent)return D.textContent;for(D=D.firstChild;D;D=D.nextSibling)e+=getText(D)}else if(3===u||4===u)return D.nodeValue;return e}(D=g)).indexOf("<"),!1!==u.reduceWhiteSpace&&(C=C.replace(S," ").replace(_,"")),l&&(C=C.split("<").join("{{LT}}")),E=C.length,i=(" "===C.charAt(0)?f:"")+e(),n=0;n<E;n++)if(r=C.charAt(n),x&&(o=x(C.substr(n),u.specialChars)))r=C.substr(n,o||1),i+=a&&" "!==r?F()+r+"</"+d+">":r,n+=o-1;else if(eb(r)&&!eb(C.charAt(n-1))&&n){for(i+=c?A:"",c=0;eb(C.charAt(n+1));)i+=f,n++;n===E-1?i+=f:")"!==C.charAt(n+1)&&(i+=f+e(),c=1)}else"{"===r&&"{{LT}}"===C.substr(n,6)?(i+=a?F()+"{{LT}}</"+d+">":"{{LT}}",n+=5):55296<=r.charCodeAt(0)&&r.charCodeAt(0)<=56319||65024<=C.charCodeAt(n+1)&&C.charCodeAt(n+1)<=65039?(s=((C.substr(n,12).split(b)||[])[1]||"").length||2,i+=a&&" "!==r?F()+C.substr(n,s)+"</"+d+">":C.substr(n,s),n+=s-1):i+=a&&" "!==r?F()+r+"</"+d+">":r;D.outerHTML=i+(c?A:""),l&&t(y,"{{LT}}","<")}function A(D,u,e,t){var F,C,i=E(D.childNodes),n=i.length,s=p(u);if(3!==D.nodeType||1<n){for(u.absolute=!1,F=0;F<n;F++)(C=i[F])._next=C._isFirst=C._parent=C._wordEnd=null,3===C.nodeType&&!/\S+/.test(C.nodeValue)||(s&&3!==C.nodeType&&"inline"===o(C).display&&(C.style.display="inline-block",C.style.position="relative"),C._isSplit=!0,A(C,u,e,t));return u.absolute=s,void(D._isSplit=!0)}z(D,u,e,t)}var X,e,F,C,i,E,r,_=/(?:\r|\n|\t\t)/g,S=/(?:\s\s+)/g,T=String.fromCharCode(160),l=((r=SplitText.prototype).split=function split(D){this.isSplit&&this.revert(),this.vars=D=D||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var u,e,t,F=this.elements.length,C=D.tag?D.tag:D.span?"span":"div",i=s(D.wordsClass,C),n=s(D.charsClass,C);-1<--F;)t=this.elements[F],this._originals[F]={html:t.innerHTML,style:t.getAttribute("style")},u=t.clientHeight,e=t.clientWidth,A(t,D,i,n),y(t,D,this.chars,this.words,this.lines,e,u);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},r.revert=function revert(){var e=this._originals;if(!e)throw"revert() call wasn't scoped properly.";return this.elements.forEach(function(D,u){D.innerHTML=e[u].html,D.setAttribute("style",e[u].style)}),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},SplitText.create=function create(D,u){return new SplitText(D,u)},SplitText);function SplitText(D,u){F||n(),this.elements=E(D),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=u||{},i(this),this.split(u)}l.version="3.12.5",l.register=n,D.SplitText=l,D.default=l;if (typeof(window)==="undefined"||window!==D){Object.defineProperty(D,"__esModule",{value:!0})} else {delete D.default}});