@n8n/chat 0.68.4 → 0.68.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/chat.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! Package version @n8n/chat@0.68.4 */
1
+ /*! Package version @n8n/chat@0.68.6 */
2
2
  import * as Vue from "vue";
3
3
  import { Comment, Fragment, Teleport, Text, Transition, cloneVNode, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, h, inject, isRef, mergeDefaults, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeMount, onBeforeUnmount, onDeactivated, onMounted, onUnmounted, onUpdated, openBlock, popScopeId, provide, pushScopeId, reactive, readonly, ref, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, toRef, toRefs, triggerRef, unref, useAttrs, useCssModule, useSlots, vModelText, vShow, warn, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
4
4
  var __create = Object.create, __defProp$1 = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp$1 = Object.prototype.hasOwnProperty, __esmMin = (e, t) => () => (e && (t = e(e = 0)), t), __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), __export = (e) => {
@@ -22154,168 +22154,194 @@ var entities_exports = /* @__PURE__ */ __export({
22154
22154
  var i, o, s, l = new this.State(e, t, n, r);
22155
22155
  for (this.tokenize(l), o = this.ruler2.getRules(""), s = o.length, i = 0; i < s; i++) o[i](l);
22156
22156
  }, o.prototype.State = require_state_inline(), t.exports = o;
22157
- })), require_re = /* @__PURE__ */ __commonJSMin(((e, t) => {
22158
- t.exports = function(e) {
22159
- var t = {};
22160
- e ||= {}, t.src_Any = require_regex$3().source, t.src_Cc = require_regex$2().source, t.src_Z = require_regex().source, t.src_P = require_regex$4().source, t.src_ZPCc = [
22157
+ })), require_index_cjs$1 = /* @__PURE__ */ __commonJSMin(((e) => {
22158
+ e.Any = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, e.Cc = /[\0-\x1F\x7F-\x9F]/, e.Cf = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, e.P = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, e.S = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, e.Z = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;
22159
+ })), require_index_cjs = /* @__PURE__ */ __commonJSMin(((e, t) => {
22160
+ var n = require_index_cjs$1();
22161
+ function r(e) {
22162
+ let t = {};
22163
+ e ||= {}, t.src_Any = n.Any.source, t.src_Cc = n.Cc.source, t.src_Z = n.Z.source, t.src_P = n.P.source, t.src_ZPCc = [
22161
22164
  t.src_Z,
22162
22165
  t.src_P,
22163
22166
  t.src_Cc
22164
22167
  ].join("|"), t.src_ZCc = [t.src_Z, t.src_Cc].join("|");
22165
- var n = "[><|]";
22166
- return t.src_pseudo_letter = "(?:(?!" + n + "|" + t.src_ZPCc + ")" + t.src_Any + ")", t.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", t.src_auth = "(?:(?:(?!" + t.src_ZCc + "|[@/\\[\\]()]).)+@)?", t.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", t.src_host_terminator = "(?=$|" + n + "|" + t.src_ZPCc + ")(?!" + (e["---"] ? "-(?!--)|" : "-|") + "_|:\\d|\\.-|\\.(?!$|" + t.src_ZPCc + "))", t.src_path = "(?:[/?#](?:(?!" + t.src_ZCc + "|" + n + "|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!" + t.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + t.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + t.src_ZCc + "|[}]).)*\\}|\\\"(?:(?!" + t.src_ZCc + "|[\"]).)+\\\"|\\'(?:(?!" + t.src_ZCc + "|[']).)+\\'|\\'(?=" + t.src_pseudo_letter + "|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + t.src_ZCc + "|[.]|$)|" + (e["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + ",(?!" + t.src_ZCc + "|$)|;(?!" + t.src_ZCc + "|$)|\\!+(?!" + t.src_ZCc + "|[!]|$)|\\?(?!" + t.src_ZCc + "|[?]|$))+|\\/)?", t.src_email_name = "[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\\"\\.a-zA-Z0-9_]*", t.src_xn = "xn--[a-z0-9\\-]{1,59}", t.src_domain_root = "(?:" + t.src_xn + "|" + t.src_pseudo_letter + "{1,63})", t.src_domain = "(?:" + t.src_xn + "|(?:" + t.src_pseudo_letter + ")|(?:" + t.src_pseudo_letter + "(?:-|" + t.src_pseudo_letter + "){0,61}" + t.src_pseudo_letter + "))", t.src_host = "(?:(?:(?:(?:" + t.src_domain + ")\\.)*" + t.src_domain + "))", t.tpl_host_fuzzy = "(?:" + t.src_ip4 + "|(?:(?:(?:" + t.src_domain + ")\\.)+(?:%TLDS%)))", t.tpl_host_no_ip_fuzzy = "(?:(?:(?:" + t.src_domain + ")\\.)+(?:%TLDS%))", t.src_host_strict = t.src_host + t.src_host_terminator, t.tpl_host_fuzzy_strict = t.tpl_host_fuzzy + t.src_host_terminator, t.src_host_port_strict = t.src_host + t.src_port + t.src_host_terminator, t.tpl_host_port_fuzzy_strict = t.tpl_host_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_port_no_ip_fuzzy_strict = t.tpl_host_no_ip_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_fuzzy_test = "localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:" + t.src_ZPCc + "|>|$))", t.tpl_email_fuzzy = "(^|" + n + "|\"|\\(|" + t.src_ZCc + ")(" + t.src_email_name + "@" + t.tpl_host_fuzzy_strict + ")", t.tpl_link_fuzzy = "(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + t.src_ZPCc + "))((?![$+<=>^`||])" + t.tpl_host_port_fuzzy_strict + t.src_path + ")", t.tpl_link_no_ip_fuzzy = "(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + t.src_ZPCc + "))((?![$+<=>^`||])" + t.tpl_host_port_no_ip_fuzzy_strict + t.src_path + ")", t;
22167
- };
22168
- })), require_linkify_it = /* @__PURE__ */ __commonJSMin(((e, t) => {
22169
- function n(e) {
22168
+ let r = "[><|]";
22169
+ return t.src_pseudo_letter = "(?:(?!" + r + "|" + t.src_ZPCc + ")" + t.src_Any + ")", t.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", t.src_auth = "(?:(?:(?!" + t.src_ZCc + "|[@/\\[\\]()]).)+@)?", t.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", t.src_host_terminator = "(?=$|" + r + "|" + t.src_ZPCc + ")(?!" + (e["---"] ? "-(?!--)|" : "-|") + "_|:\\d|\\.-|\\.(?!$|" + t.src_ZPCc + "))", t.src_path = "(?:[/?#](?:(?!" + t.src_ZCc + "|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!" + t.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + t.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + t.src_ZCc + "|[}]).)*\\}|\\\"(?:(?!" + t.src_ZCc + "|[\"]).)+\\\"|\\'(?:(?!" + t.src_ZCc + "|[']).)+\\'|\\'(?=" + t.src_pseudo_letter + "|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + t.src_ZCc + "|[.]|$)|" + (e["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + ",(?!" + t.src_ZCc + "|$)|;(?!" + t.src_ZCc + "|$)|\\!+(?!" + t.src_ZCc + "|[!]|$)|\\?(?!" + t.src_ZCc + "|[?]|$))+|\\/)?", t.src_email_name = "[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\\"\\.a-zA-Z0-9_]*", t.src_xn = "xn--[a-z0-9\\-]{1,59}", t.src_domain_root = "(?:" + t.src_xn + "|" + t.src_pseudo_letter + "{1,63})", t.src_domain = "(?:" + t.src_xn + "|(?:" + t.src_pseudo_letter + ")|(?:" + t.src_pseudo_letter + "(?:-|" + t.src_pseudo_letter + "){0,61}" + t.src_pseudo_letter + "))", t.src_host = "(?:(?:(?:(?:" + t.src_domain + ")\\.)*" + t.src_domain + "))", t.tpl_host_fuzzy = "(?:" + t.src_ip4 + "|(?:(?:(?:" + t.src_domain + ")\\.)+(?:%TLDS%)))", t.tpl_host_no_ip_fuzzy = "(?:(?:(?:" + t.src_domain + ")\\.)+(?:%TLDS%))", t.src_host_strict = t.src_host + t.src_host_terminator, t.tpl_host_fuzzy_strict = t.tpl_host_fuzzy + t.src_host_terminator, t.src_host_port_strict = t.src_host + t.src_port + t.src_host_terminator, t.tpl_host_port_fuzzy_strict = t.tpl_host_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_port_no_ip_fuzzy_strict = t.tpl_host_no_ip_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_fuzzy_test = "localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:" + t.src_ZPCc + "|>|$))", t.tpl_email_fuzzy = "(^|" + r + "|\"|\\(|" + t.src_ZCc + ")(" + t.src_email_name + "@" + t.tpl_host_fuzzy_strict + ")", t.tpl_link_fuzzy = "(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + t.src_ZPCc + "))((?![$+<=>^`||])" + t.tpl_host_port_fuzzy_strict + t.src_path + ")", t.tpl_link_no_ip_fuzzy = "(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + t.src_ZPCc + "))((?![$+<=>^`||])" + t.tpl_host_port_no_ip_fuzzy_strict + t.src_path + ")", t;
22170
+ }
22171
+ function i(e) {
22170
22172
  return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
22171
22173
  t && Object.keys(t).forEach(function(n) {
22172
22174
  e[n] = t[n];
22173
22175
  });
22174
22176
  }), e;
22175
22177
  }
22176
- function r(e) {
22177
- return Object.prototype.toString.call(e);
22178
- }
22179
- function i(e) {
22180
- return r(e) === "[object String]";
22181
- }
22182
22178
  function o(e) {
22183
- return r(e) === "[object Object]";
22179
+ return Object.prototype.toString.call(e);
22184
22180
  }
22185
22181
  function s(e) {
22186
- return r(e) === "[object RegExp]";
22182
+ return o(e) === "[object String]";
22187
22183
  }
22188
22184
  function l(e) {
22189
- return r(e) === "[object Function]";
22185
+ return o(e) === "[object Object]";
22190
22186
  }
22191
22187
  function d(e) {
22188
+ return o(e) === "[object RegExp]";
22189
+ }
22190
+ function f(e) {
22191
+ return o(e) === "[object Function]";
22192
+ }
22193
+ function p(e) {
22192
22194
  return e.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
22193
22195
  }
22194
- var f = {
22196
+ var _ = {
22195
22197
  fuzzyLink: !0,
22196
22198
  fuzzyEmail: !0,
22197
22199
  fuzzyIP: !1
22198
22200
  };
22199
- function p(e) {
22201
+ function y(e) {
22200
22202
  return Object.keys(e || {}).reduce(function(e, t) {
22201
- return e || f.hasOwnProperty(t);
22203
+ return e || _.hasOwnProperty(t);
22202
22204
  }, !1);
22203
22205
  }
22204
- var _ = {
22206
+ var x = {
22205
22207
  "http:": { validate: function(e, t, n) {
22206
- var r = e.slice(t);
22208
+ let r = e.slice(t);
22207
22209
  return n.re.http || (n.re.http = RegExp("^\\/\\/" + n.re.src_auth + n.re.src_host_port_strict + n.re.src_path, "i")), n.re.http.test(r) ? r.match(n.re.http)[0].length : 0;
22208
22210
  } },
22209
22211
  "https:": "http:",
22210
22212
  "ftp:": "http:",
22211
22213
  "//": { validate: function(e, t, n) {
22212
- var r = e.slice(t);
22214
+ let r = e.slice(t);
22213
22215
  return n.re.no_http || (n.re.no_http = RegExp("^" + n.re.src_auth + "(?:localhost|(?:(?:" + n.re.src_domain + ")\\.)+" + n.re.src_domain_root + ")" + n.re.src_port + n.re.src_host_terminator + n.re.src_path, "i")), n.re.no_http.test(r) ? t >= 3 && e[t - 3] === ":" || t >= 3 && e[t - 3] === "/" ? 0 : r.match(n.re.no_http)[0].length : 0;
22214
22216
  } },
22215
22217
  "mailto:": { validate: function(e, t, n) {
22216
- var r = e.slice(t);
22218
+ let r = e.slice(t);
22217
22219
  return n.re.mailto || (n.re.mailto = RegExp("^" + n.re.src_email_name + "@" + n.re.src_host_strict, "i")), n.re.mailto.test(r) ? r.match(n.re.mailto)[0].length : 0;
22218
22220
  } }
22219
- }, y = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", x = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
22220
- function w(e) {
22221
- e.__index__ = -1, e.__text_cache__ = "";
22222
- }
22223
- function k(e) {
22221
+ }, w = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", k = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
22222
+ function $(e) {
22224
22223
  return function(t, n) {
22225
- var r = t.slice(n);
22224
+ let r = t.slice(n);
22226
22225
  return e.test(r) ? r.match(e)[0].length : 0;
22227
22226
  };
22228
22227
  }
22229
- function $() {
22228
+ function A7() {
22230
22229
  return function(e, t) {
22231
22230
  t.normalize(e);
22232
22231
  };
22233
22232
  }
22234
- function A7(e) {
22235
- var t = e.re = require_re()(e.__opts__), n = e.__tlds__.slice();
22236
- e.onCompile(), e.__tlds_replaced__ || n.push(y), n.push(t.src_xn), t.src_tlds = n.join("|");
22237
- function r(e) {
22233
+ function j7(e) {
22234
+ let t = e.re = r(e.__opts__), n = e.__tlds__.slice();
22235
+ e.onCompile(), e.__tlds_replaced__ || n.push(w), n.push(t.src_xn), t.src_tlds = n.join("|");
22236
+ function i(e) {
22238
22237
  return e.replace("%TLDS%", t.src_tlds);
22239
22238
  }
22240
- t.email_fuzzy = RegExp(r(t.tpl_email_fuzzy), "i"), t.link_fuzzy = RegExp(r(t.tpl_link_fuzzy), "i"), t.link_no_ip_fuzzy = RegExp(r(t.tpl_link_no_ip_fuzzy), "i"), t.host_fuzzy_test = RegExp(r(t.tpl_host_fuzzy_test), "i");
22241
- var f = [];
22239
+ t.email_fuzzy = RegExp(i(t.tpl_email_fuzzy), "i"), t.email_fuzzy_global = RegExp(i(t.tpl_email_fuzzy), "ig"), t.link_fuzzy = RegExp(i(t.tpl_link_fuzzy), "i"), t.link_fuzzy_global = RegExp(i(t.tpl_link_fuzzy), "ig"), t.link_no_ip_fuzzy = RegExp(i(t.tpl_link_no_ip_fuzzy), "i"), t.link_no_ip_fuzzy_global = RegExp(i(t.tpl_link_no_ip_fuzzy), "ig"), t.host_fuzzy_test = RegExp(i(t.tpl_host_fuzzy_test), "i");
22240
+ let o = [];
22242
22241
  e.__compiled__ = {};
22243
- function p(e, t) {
22242
+ function _(e, t) {
22244
22243
  throw Error("(LinkifyIt) Invalid schema \"" + e + "\": " + t);
22245
22244
  }
22246
22245
  Object.keys(e.__schemas__).forEach(function(t) {
22247
- var n = e.__schemas__[t];
22248
- if (n !== null) {
22249
- var r = {
22250
- validate: null,
22251
- link: null
22252
- };
22253
- if (e.__compiled__[t] = r, o(n)) {
22254
- s(n.validate) ? r.validate = k(n.validate) : l(n.validate) ? r.validate = n.validate : p(t, n), l(n.normalize) ? r.normalize = n.normalize : n.normalize ? p(t, n) : r.normalize = $();
22255
- return;
22256
- }
22257
- if (i(n)) {
22258
- f.push(t);
22259
- return;
22260
- }
22261
- p(t, n);
22246
+ let n = e.__schemas__[t];
22247
+ if (n === null) return;
22248
+ let r = {
22249
+ validate: null,
22250
+ link: null
22251
+ };
22252
+ if (e.__compiled__[t] = r, l(n)) {
22253
+ d(n.validate) ? r.validate = $(n.validate) : f(n.validate) ? r.validate = n.validate : _(t, n), f(n.normalize) ? r.normalize = n.normalize : n.normalize ? _(t, n) : r.normalize = A7();
22254
+ return;
22255
+ }
22256
+ if (s(n)) {
22257
+ o.push(t);
22258
+ return;
22262
22259
  }
22263
- }), f.forEach(function(t) {
22260
+ _(t, n);
22261
+ }), o.forEach(function(t) {
22264
22262
  e.__compiled__[e.__schemas__[t]] && (e.__compiled__[t].validate = e.__compiled__[e.__schemas__[t]].validate, e.__compiled__[t].normalize = e.__compiled__[e.__schemas__[t]].normalize);
22265
22263
  }), e.__compiled__[""] = {
22266
22264
  validate: null,
22267
- normalize: $()
22265
+ normalize: A7()
22268
22266
  };
22269
- var _ = Object.keys(e.__compiled__).filter(function(t) {
22267
+ let y = Object.keys(e.__compiled__).filter(function(t) {
22270
22268
  return t.length > 0 && e.__compiled__[t];
22271
- }).map(d).join("|");
22272
- e.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + t.src_ZPCc + "))(" + _ + ")", "i"), e.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + t.src_ZPCc + "))(" + _ + ")", "ig"), e.re.schema_at_start = RegExp("^" + e.re.schema_search.source, "i"), e.re.pretest = RegExp("(" + e.re.schema_test.source + ")|(" + e.re.host_fuzzy_test.source + ")|@", "i"), w(e);
22269
+ }).map(p).join("|");
22270
+ e.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + t.src_ZPCc + "))(" + y + ")", "i"), e.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + t.src_ZPCc + "))(" + y + ")", "ig"), e.re.schema_at_start = RegExp("^" + e.re.schema_search.source, "i"), e.re.pretest = RegExp("(" + e.re.schema_test.source + ")|(" + e.re.host_fuzzy_test.source + ")|@", "i");
22273
22271
  }
22274
- function j7(e, t) {
22275
- var n = e.__index__, r = e.__last_index__, i = e.__text_cache__.slice(n, r);
22276
- this.schema = e.__schema__.toLowerCase(), this.index = n + t, this.lastIndex = r + t, this.raw = i, this.text = i, this.url = i;
22277
- }
22278
- function M7(e, t) {
22279
- var n = new j7(e, t);
22280
- return e.__compiled__[n.schema].normalize(n, e), n;
22272
+ function M7(e, t, n, r) {
22273
+ let i = e.slice(n, r);
22274
+ this.schema = t.toLowerCase(), this.index = n, this.lastIndex = r, this.raw = i, this.text = i, this.url = i;
22281
22275
  }
22282
22276
  function N7(e, t) {
22283
22277
  if (!(this instanceof N7)) return new N7(e, t);
22284
- t || p(e) && (t = e, e = {}), this.__opts__ = n({}, f, t), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = n({}, _, e), this.__compiled__ = {}, this.__tlds__ = x, this.__tlds_replaced__ = !1, this.re = {}, A7(this);
22278
+ t || y(e) && (t = e, e = {}), this.__opts__ = i({}, _, t), this.__schemas__ = i({}, x, e), this.__compiled__ = {}, this.__tlds__ = k, this.__tlds_replaced__ = !1, this.re = {}, j7(this);
22285
22279
  }
22286
22280
  N7.prototype.add = function(e, t) {
22287
- return this.__schemas__[e] = t, A7(this), this;
22281
+ return this.__schemas__[e] = t, j7(this), this;
22288
22282
  }, N7.prototype.set = function(e) {
22289
- return this.__opts__ = n(this.__opts__, e), this;
22283
+ return this.__opts__ = i(this.__opts__, e), this;
22290
22284
  }, N7.prototype.test = function(e) {
22291
- if (this.__text_cache__ = e, this.__index__ = -1, !e.length) return !1;
22292
- var t, n, r, i, o, s, l, d, f;
22285
+ if (!e.length) return !1;
22286
+ let t, n;
22293
22287
  if (this.re.schema_test.test(e)) {
22294
- for (l = this.re.schema_search, l.lastIndex = 0; (t = l.exec(e)) !== null;) if (i = this.testSchemaAt(e, t[2], l.lastIndex), i) {
22295
- this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + i;
22296
- break;
22297
- }
22288
+ for (n = this.re.schema_search, n.lastIndex = 0; (t = n.exec(e)) !== null;) if (this.testSchemaAt(e, t[2], n.lastIndex)) return !0;
22298
22289
  }
22299
- return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (d = e.search(this.re.host_fuzzy_test), d >= 0 && (this.__index__ < 0 || d < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (o = n.index + n[1].length, (this.__index__ < 0 || o < this.__index__) && (this.__schema__ = "", this.__index__ = o, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (f = e.indexOf("@"), f >= 0 && (r = e.match(this.re.email_fuzzy)) !== null && (o = r.index + r[1].length, s = r.index + r[0].length, (this.__index__ < 0 || o < this.__index__ || o === this.__index__ && s > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = o, this.__last_index__ = s))), this.__index__ >= 0;
22290
+ return !!(this.__opts__.fuzzyLink && this.__compiled__["http:"] && e.search(this.re.host_fuzzy_test) >= 0 && e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy) !== null || this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && e.indexOf("@") >= 0 && e.match(this.re.email_fuzzy) !== null);
22300
22291
  }, N7.prototype.pretest = function(e) {
22301
22292
  return this.re.pretest.test(e);
22302
22293
  }, N7.prototype.testSchemaAt = function(e, t, n) {
22303
22294
  return this.__compiled__[t.toLowerCase()] ? this.__compiled__[t.toLowerCase()].validate(e, n, this) : 0;
22304
22295
  }, N7.prototype.match = function(e) {
22305
- var t = 0, n = [];
22306
- this.__index__ >= 0 && this.__text_cache__ === e && (n.push(M7(this, t)), t = this.__last_index__);
22307
- for (var r = t ? e.slice(t) : e; this.test(r);) n.push(M7(this, t)), r = r.slice(this.__last_index__), t += this.__last_index__;
22308
- return n.length ? n : null;
22296
+ let t = [], n = [], r = [], i = [], o, s, l;
22297
+ function d(e, t) {
22298
+ return e ? t ? e.index === t.index ? e.lastIndex >= t.lastIndex ? e : t : e.index < t.index ? e : t : e : t;
22299
+ }
22300
+ if (!e.length) return null;
22301
+ if (this.re.schema_test.test(e)) for (l = this.re.schema_search, l.lastIndex = 0; (o = l.exec(e)) !== null;) s = this.testSchemaAt(e, o[2], l.lastIndex), s && n.push({
22302
+ schema: o[2],
22303
+ index: o.index + o[1].length,
22304
+ lastIndex: o.index + o[0].length + s
22305
+ });
22306
+ if (this.__opts__.fuzzyLink && this.__compiled__["http:"]) for (l = this.__opts__.fuzzyIP ? this.re.link_fuzzy_global : this.re.link_no_ip_fuzzy_global, l.lastIndex = 0; (o = l.exec(e)) !== null;) r.push({
22307
+ schema: "",
22308
+ index: o.index + o[1].length,
22309
+ lastIndex: o.index + o[0].length
22310
+ });
22311
+ if (this.__opts__.fuzzyEmail && this.__compiled__["mailto:"]) for (l = this.re.email_fuzzy_global, l.lastIndex = 0; (o = l.exec(e)) !== null;) i.push({
22312
+ schema: "mailto:",
22313
+ index: o.index + o[1].length,
22314
+ lastIndex: o.index + o[0].length
22315
+ });
22316
+ let f = [
22317
+ 0,
22318
+ 0,
22319
+ 0
22320
+ ], p = 0;
22321
+ for (;;) {
22322
+ let o = [
22323
+ n[f[0]],
22324
+ i[f[1]],
22325
+ r[f[2]]
22326
+ ], s = d(d(o[0], o[1]), o[2]);
22327
+ if (!s) break;
22328
+ if (s === o[0] ? f[0]++ : s === o[1] ? f[1]++ : f[2]++, s.index < p) continue;
22329
+ let l = new M7(e, s.schema, s.index, s.lastIndex);
22330
+ this.__compiled__[l.schema].normalize(l, this), t.push(l), p = s.lastIndex;
22331
+ }
22332
+ return t.length ? t : null;
22309
22333
  }, N7.prototype.matchAtStart = function(e) {
22310
- if (this.__text_cache__ = e, this.__index__ = -1, !e.length) return null;
22311
- var t = this.re.schema_at_start.exec(e);
22334
+ if (!e.length) return null;
22335
+ let t = this.re.schema_at_start.exec(e);
22312
22336
  if (!t) return null;
22313
- var n = this.testSchemaAt(e, t[2], t[0].length);
22314
- return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n, M7(this, 0)) : null;
22337
+ let n = this.testSchemaAt(e, t[2], t[0].length);
22338
+ if (!n) return null;
22339
+ let r = new M7(e, t[2], t.index + t[1].length, t.index + t[0].length + n);
22340
+ return this.__compiled__[r.schema].normalize(r, this), r;
22315
22341
  }, N7.prototype.tlds = function(e, t) {
22316
22342
  return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(e, t, n) {
22317
22343
  return e !== n[t - 1];
22318
- }).reverse(), A7(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, A7(this), this);
22344
+ }).reverse(), j7(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, j7(this), this);
22319
22345
  }, N7.prototype.normalize = function(e) {
22320
22346
  e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url);
22321
22347
  }, N7.prototype.onCompile = function() {}, t.exports = N7;
@@ -22511,7 +22537,7 @@ var entities_exports = /* @__PURE__ */ __export({
22511
22537
  }
22512
22538
  };
22513
22539
  })), require_lib = /* @__PURE__ */ __commonJSMin(((e, t) => {
22514
- var n = require_utils(), r = require_helpers(), i = require_renderer(), o = require_parser_core(), s = require_parser_block(), l = require_parser_inline(), d = require_linkify_it(), f = require_mdurl(), p = require_punycode(), _ = {
22540
+ var n = require_utils(), r = require_helpers(), i = require_renderer(), o = require_parser_core(), s = require_parser_block(), l = require_parser_inline(), d = require_index_cjs(), f = require_mdurl(), p = require_punycode(), _ = {
22515
22541
  default: require_default(),
22516
22542
  zero: require_zero(),
22517
22543
  commonmark: require_commonmark()