framework/extensions/emoji/js/dist/forum.js

2 lines
55 KiB
JavaScript
Raw Normal View History

module.exports=function(e){var a={};function d(u){if(a[u])return a[u].exports;var o=a[u]={i:u,l:!1,exports:{}};return e[u].call(o.exports,o,o.exports,d),o.l=!0,o.exports}return d.m=e,d.c=a,d.d=function(e,a,u){d.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:u})},d.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,a){if(1&a&&(e=d(e)),8&a)return e;if(4&a&&"object"==typeof e&&e&&e.__esModule)return e;var u=Object.create(null);if(d.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:e}),2&a&&"string"!=typeof e)for(var o in e)d.d(u,o,function(a){return e[a]}.bind(null,o));return u},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="",d(d.s=10)}([function(e,a){e.exports=flarum.core.compat.extend},function(e,a,d){(function(a){var d=a.location||{},u=function(){"use strict";var e={base:"https://twemoji.maxcdn.com/2/",ext:".png",size:"72x72",className:"emoji",convert:{fromCodePoint:function(e){var a="string"==typeof e?parseInt(e,16):e;if(a<65536)return r(a);return r(55296+((a-=65536)>>10),56320+(1023&a))},toCodePoint:m},onerror:function(){this.parentNode&&this.parentNode.replaceChild(i(this.alt,!1),this)},parse:function(a,u){u&&"function"!=typeof u||(u={callback:u});return("string"==typeof a?function(e,a){return g(e,function(e){var d,u,o=e,n=_(e),t=a.callback(n,a);if(n&&t){for(u in o="<img ".concat('class="',a.className,'" ','draggable="false" ','alt="',e,'"',' src="',t,'"'),d=a.attributes(e,n))d.hasOwnProperty(u)&&0!==u.indexOf("on")&&-1===o.indexOf(" "+u+"=")&&(o=o.concat(" ",u,'="',l(d[u]),'"'));o=o.concat("/>")}return o})}:function(e,a){var u,o,n,r,l,c,f,s,g,m,p,b,h,w=function e(a,d){var u,o,n=a.childNodes,r=n.length;for(;r--;)u=n[r],3===(o=u.nodeType)?d.push(u):1!==o||"ownerSVGElement"in u||t.test(u.nodeName.toLowerCase())||e(u,d);return d}(e,[]),k=w.length;for(;k--;){for(n=!1,r=document.createDocumentFragment(),l=w[k],c=l.nodeValue,s=0;f=d.exec(c);){if((g=f.index)!==s&&r.appendChild(i(c.slice(s,g),!0)),p=f[0],b=_(p),s=g+p.length,h=a.callback(b,a),b&&h){for(o in(m=new Image).onerror=a.onerror,m.setAttribute("draggable","false"),u=a.attributes(p,b))u.hasOwnProperty(o)&&0!==o.indexOf("on")&&!m.hasAttribute(o)&&m.setAttribute(o,u[o]);m.className=a.className,m.alt=p,m.src=h,n=!0,r.appendChild(m)}m||r.appendChild(i(p,!1)),m=null}n&&(s<c.length&&r.appendChild(i(c.slice(s),!0)),l.parentNode.replaceChild(r,l))}return e})(a,{callback:u.callback||c,attributes:"function"==typeof u.attributes?u.attributes:s,base:"string"==typeof u.base?u.base:e.base,ext:u.ext||e.ext,size:u.folder||function(e){return"number"==typeof e?e+"x"+e:e}(u.size||e.size),className:u.className||e.className,onerror:u.onerror||e.onerror})},replace:g,test:function(e){d.lastIndex=0;var a=d.test(e);return d.lastIndex=0,a}},a={"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},d=/(?:\ud83d[\udc68\udc69])(?:\ud83c[\udffb-\udfff])?\u200d(?:\u2695\ufe0f|\u2696\ufe0f|\u2708\ufe0f|\ud83c[\udf3e\udf73\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddb0-\uddb3])|(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75]|\u26f9)((?:\ud83c[\udffb-\udfff]|\ufe0f)\u200d[\u2640\u2642]\ufe0f)|(?:\ud83c[\udfc3\udfc4\udfca]|\ud83d[\udc6e\udc71\udc73\udc77\udc81\udc82\udc86\udc87\ude45-\ude47\ude4b\ude4d\ude4e\udea3\udeb4-\udeb6]|\ud83e[\udd26\udd35\udd37-\udd39\udd3d\udd3e\uddb8\uddb9\uddd6-\udddd])(?:\ud83c[\udffb-\udfff])?\u200d[\u2640\u2642]\ufe0f|(?:\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d[\udc68\udc69]|\u
//# sourceMappingURL=forum.js.map