var linkify=function(u){"use strict";function D(u){this.j={},this.jr=[],this.jd=null,this.t=u}D.prototype={accepts:function(){return!!this.t},tt:function(u,D){if(D&&D.j)return this.j[u]=D,D;var t=D,a=this.j[u];if(a)return t&&(a.t=t),a;a=e();var r=i(this,u);return r?(Object.assign(a.j,r.j),a.jr.append(r.jr),a.jr=r.jd,a.t=t||r.t):a.t=t,this.j[u]=a,a}};var e=function(){return new D},t=function(u){return new D(u)},a=function(u,D,e){u.j[D]||(u.j[D]=e)},r=function(u,D,e){u.jr.push([D,e])},i=function(u,D){var e=u.j[D];if(e)return e;for(var t=0;t=n)return[];for(;i0&&void 0!==arguments[0]?arguments[0]:[],D=e(),i=t(E),n=t(l),$=e(),au=t(g),ru=[[eu,n],[V,n],[uu,n],[Du,n]],iu=function(){var u=t(l);return u.j={"-":$},u.jr=[].concat(ru),u},nu=function(u){var D=iu();return D.t=u,D};o(D,[["'",t(w)],["{",t(f)],["[",t(m)],["<",t(d)],["(",t(p)],["}",t(B)],["]",t(b)],[">",t(v)],[")",t(y)],["&",t(k)],["*",t(j)],["@",t(x)],["`",t(z)],["^",t(L)],[":",t(N)],[",",t(P)],["$",t(S)],[".",t(T)],["=",t(R)],["!",t(H)],["-",t(M)],["%",t(I)],["|",t(K)],["+",t(U)],["#",t(q)],["?",t(_)],['"',t(Q)],["/",t(G)],[";",t(Y)],["~",t(W)],["_",t(X)],["\\",t(O)]]),a(D,"\n",t(h)),r(D,tu,au),a(au,"\n",e()),r(au,tu,au);for(var ou=0;ou2&&void 0!==arguments[2]?arguments[2]:{},t=Object.create(u.prototype);for(var a in e)t[a]=e[a];t.constructor=D,D.prototype=t}(lu,e,D),e}lu.prototype={t:"token",isLink:!1,toString:function(){return this.v},toHref:function(){return this.toString()},startIndex:function(){return this.tk[0].s},endIndex:function(){return this.tk[this.tk.length-1].e},toObject:function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:iu.defaultProtocol;return{type:this.t,value:this.v,isLink:this.isLink,href:this.toHref(u),start:this.startIndex(),end:this.endIndex()}}};var Fu=cu("email",{isLink:!0}),Eu=cu("email",{isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),Au=cu("text"),Cu=cu("nl"),gu=cu("url",{isLink:!0,toHref:function(){for(var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:iu.defaultProtocol,D=this.tk,e=!1,t=!1,a=[],r=0;D[r].t===A;)e=!0,a.push(D[r].v),r++;for(;D[r].t===G;)t=!0,a.push(D[r].v),r++;for(;r=0&&E++,a++,c++;if(E<0)for(var A=a-c;A0&&(r.push(mu(Au,D,n)),n=[]),a-=E,c-=E;var C=F.t,g=e.slice(a-c,a);r.push(mu(C,D,g))}}return n.length>0&&r.push(mu(Au,D,n)),r}(pu.parser.start,u,function(u,D){for(var e=function(u){for(var D=[],e=u.length,t=0;t56319||t+1===e||(r=u.charCodeAt(t+1))<56320||r>57343?u[t]:u.slice(t,t+2);D.push(i),t+=i.length}return D}(D.replace(/[A-Z]/g,(function(u){return u.toLowerCase()}))),t=e.length,a=[],r=0,n=0;n=0&&(F+=e[n].length,E++),l+=e[n].length,r+=e[n].length,n++;r-=F,n-=E,l-=F,a.push({t:c.t,v:D.substr(r-l,l),s:r-l,e:r})}return a}(pu.scanner.start,u))}return u.Options=nu,u.find=function(u){for(var D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=bu(u),t=[],a=0;a1&&void 0!==arguments[1]?arguments[1]:null,e=bu(u);return 1===e.length&&e[0].isLink&&(!D||e[0].t===D)},u.tokenize=bu,Object.defineProperty(u,"__esModule",{value:!0}),u}({});