@matechat/core 1.7.0 → 1.8.0

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.
@@ -1,21 +1,21 @@
1
1
  import "./index.css";
2
- import { defineComponent as oe, ref as T, computed as z, watch as j, nextTick as _, onMounted as re, createElementBlock as I, openBlock as N, normalizeClass as A, renderSlot as F, createVNode as pe, createElementVNode as M, toDisplayString as X, createCommentVNode as S, unref as L, Transition as ye, withCtx as fe, isVNode as le, h as w, useSlots as Me, Fragment as U, createBlock as Ne, resolveDynamicComponent as Ie } from "vue";
2
+ import { defineComponent as oe, ref as x, computed as B, watch as A, nextTick as U, onMounted as re, createElementBlock as w, openBlock as M, normalizeClass as T, renderSlot as F, createVNode as pe, createElementVNode as y, toDisplayString as X, createCommentVNode as j, unref as L, Transition as ye, withCtx as fe, withDirectives as Me, vShow as Ce, isVNode as le, h as v, useSlots as we, Fragment as E, createBlock as ve, resolveDynamicComponent as Ne } from "vue";
3
3
  import D from "highlight.js";
4
- import we from "markdown-it";
5
- import { debounce as ve } from "lodash-es";
6
- import { getDefaultWhiteList as Ce, getDefaultCSSWhiteList as Le, filterXSS as De } from "xss";
7
- import { useMcI18n as Te } from "@matechat/core/Locale";
8
- const xe = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='16px'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eenlarge%3c/title%3e%3cg%20id='enlarge'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M7.16666667,1%20C10.572409,1%2013.3333333,3.76092429%2013.3333333,7.16666667%20C13.3333333,8.68984984%2012.781084,10.0840543%2011.8658888,11.1599767%20L14.4225201,13.7154466%20C14.6177822,13.9107088%2014.6177822,14.2272912%2014.4225201,14.4225534%20C14.2489537,14.5961197%2013.9795293,14.6154049%2013.7846612,14.4804088%20L13.7154133,14.4225534%20L11.158968,11.8667467%20C10.083183,12.7814291%208.68937384,13.3333333%207.16666667,13.3333333%20C3.76092429,13.3333333%201,10.572409%201,7.16666667%20C1,3.76092429%203.76092429,1%207.16666667,1%20Z%20M7.16666667,2%20C4.31320904,2%202,4.31320904%202,7.16666667%20C2,10.0201243%204.31320904,12.3333333%207.16666667,12.3333333%20C10.0201243,12.3333333%2012.3333333,10.0201243%2012.3333333,7.16666667%20C12.3333333,4.31320904%2010.0201243,2%207.16666667,2%20Z%20M7.16666667,4.66666667%20C7.41212656,4.66666667%207.61627504,4.84354183%207.658611,5.07679103%20L7.66666667,5.16666667%20L7.666,6.668%20L9.16601582,6.66666666%20C9.44215796,6.66630764%209.66630679,6.88987368%209.66666668,7.16601582%20C9.66698576,7.4114755%209.49037648,7.61585405%209.25718258,7.65849359%20L9.16731751,7.66666666%20L7.666,7.668%20L7.66666667,9.16666667%20C7.66666667,9.44280904%207.44280904,9.66666667%207.16666667,9.66666667%20C6.92120678,9.66666667%206.7170583,9.48979151%206.67472234,9.2565423%20L6.66666667,9.16666667%20L6.666,7.669%20L5.17251751,7.67186668%20C4.89637537,7.6722257%204.67222654,7.44865965%204.67186666,7.17251751%20C4.67154758,6.92705783%204.84815685,6.72267929%205.08135075,6.68003974%20L5.17121582,6.67186709%20L6.666,6.669%20L6.66666667,5.16666667%20C6.66666667,4.89052429%206.89052429,4.66666667%207.16666667,4.66666667%20Z'%20id='形状结合'%20fill='%2371757F'%20fill-rule='nonzero'%3e%3c/path%3e%3c/g%3e%3c/svg%3e", Ae = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='16px'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3ezoom-out%3c/title%3e%3cg%20id='zoom-out'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M7.16666667,1%20C10.572409,1%2013.3333333,3.76092429%2013.3333333,7.16666667%20C13.3333333,8.68984984%2012.781084,10.0840543%2011.8658888,11.1599767%20L14.4225201,13.7154466%20C14.6177822,13.9107088%2014.6177822,14.2272912%2014.4225201,14.4225534%20C14.2489537,14.5961197%2013.9795293,14.6154049%2013.7846612,14.4804088%20L13.7154133,14.4225534%20L11.158968,11.8667467%20C10.083183,12.7814291%208.68937384,13.3333333%207.16666667,13.3333333%20C3.76092429,13.3333333%201,10.572409%201,7.16666667%20C1,3.76092429%203.76092429,1%207.16666667,1%20Z%20M7.16666667,2%20C4.31320904,2%202,4.31320904%202,7.16666667%20C2,10.0201243%204.31320904,12.3333333%207.16666667,12.3333333%20C10.0201243,12.3333333%2012.3333333,10.0201243%2012.3333333,7.16666667%20C12.3333333,4.31320904%2010.0201243,2%207.16666667,2%20Z%20M9.16601582,6.66666666%20C9.44215796,6.66630764%209.66630679,6.88987368%209.66666668,7.16601582%20C9.66698576,7.4114755%209.49037648,7.61585405%209.25718258,7.65849359%20L9.16731751,7.66666666%20L5.17251751,7.67186668%20C4.89637537,7.6722257%204.67222654,7.44865965%204.67186666,7.17251751%20C4.67154758,6.92705783%204.84815685,6.72267929%205.08135075,6.68003974%20L5.17121582,6.67186709%20L9.16601582,6.66666666%20Z'%20id='形状结合'%20fill='%2371757F'%20fill-rule='nonzero'%3e%3c/path%3e%3c/g%3e%3c/svg%3e", je = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='16px'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e全部收起%3c/title%3e%3cg%20id='全部收起'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M4.715694,14.4114091%20C4.910563,14.5464051%205.179987,14.5271201%205.353553,14.3535531%20L5.353553,14.3535531%20L7.99999988,11.7070001%20L10.646447,14.3535531%20L10.715694,14.4114091%20C10.910563,14.5464051%2011.179987,14.5271201%2011.353553,14.3535531%20C11.548816,14.1582911%2011.548816,13.8417091%2011.353553,13.6464471%20L11.353553,13.6464471%20L8.353553,10.6464471%20L8.284306,10.5885911%20C8.089437,10.4535951%207.820013,10.4728801%207.646447,10.6464471%20L7.646447,10.6464471%20L4.646447,13.6464471%20L4.588591,13.7156941%20C4.453595,13.9105631%204.47288,14.1799871%204.646447,14.3535531%20L4.646447,14.3535531%20L4.715694,14.4114091%20Z%20M14.5,7.50000012%20C14.776142,7.50000012%2015,7.72385812%2015,8.00000012%20C15,8.27614212%2014.776142,8.50000012%2014.5,8.50000012%20L1.5,8.50000012%20C1.223858,8.50000012%201,8.27614212%201,8.00000012%20C1,7.72385812%201.223858,7.50000012%201.5,7.50000012%20L14.5,7.50000012%20Z%20M8.284306,5.41140912%20L8.353553,5.35355312%20L11.353553,2.35355312%20C11.548816,2.15829112%2011.548816,1.84170912%2011.353553,1.64644712%20C11.179987,1.47288012%2010.910563,1.45359512%2010.715694,1.58859112%20L10.646447,1.64644712%20L7.99999988,4.29300012%20L5.353553,1.64644712%20C5.179987,1.47288012%204.910563,1.45359512%204.715694,1.58859112%20L4.646447,1.64644712%20C4.47288,1.82001312%204.453595,2.08943712%204.588591,2.28430612%20L4.646447,2.35355312%20L7.646447,5.35355312%20C7.820013,5.52712012%208.089437,5.54640512%208.284306,5.41140912%20Z'%20id='形状结合'%20fill='%2371757F'%20fill-rule='nonzero'%3e%3c/path%3e%3c/g%3e%3c/svg%3e", be = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnL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4LDIxNC44MjMxMjUgNjA0Ljk5MTk0NCwyMTQuNTg5ODc2IEw2MDUsMjE0LjUgTDYwNSwyMDcuNSBDNjA1LDIwNy4yNTQ1NCA2MDQuODIzMTI1LDIwNy4wNTAzOTIgNjA0LjU4OTg3NiwyMDcuMDA4MDU2IEw2MDQuNSwyMDcgWiIgaWQ9IuW9oueKtue7k+WQiCIgZmlsbD0iIzcxNzU3RiIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=", ke = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='16px'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3estatus/whiteBG/correct%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cdefs%3e%3cpolygon%20id='path-1'%20points='6.53553391%209.77817459%2012.1923882%204.12132034%2013.6066017%205.53553391%206.53553391%2012.6066017%203%209.07106781%204.41421356%207.65685425%206.53553391%209.77817459'%3e%3c/polygon%3e%3c/defs%3e%3cg%20id='status/whiteBG/correct'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cmask%20id='mask-2'%20fill='white'%3e%3cuse%20xlink:href='%23path-1'%3e%3c/use%3e%3c/mask%3e%3cuse%20id='Mask'%20fill='%233DCCA6'%20xlink:href='%23path-1'%3e%3c/use%3e%3c/g%3e%3c/svg%3e";
4
+ import Le from "markdown-it";
5
+ import { debounce as Ie } from "lodash-es";
6
+ import { getDefaultWhiteList as De, getDefaultCSSWhiteList as xe, filterXSS as Te } from "xss";
7
+ import { useMcI18n as Ae } from "@matechat/core/Locale";
8
+ const ke = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='16px'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eenlarge%3c/title%3e%3cg%20id='enlarge'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M7.16666667,1%20C10.572409,1%2013.3333333,3.76092429%2013.3333333,7.16666667%20C13.3333333,8.68984984%2012.781084,10.0840543%2011.8658888,11.1599767%20L14.4225201,13.7154466%20C14.6177822,13.9107088%2014.6177822,14.2272912%2014.4225201,14.4225534%20C14.2489537,14.5961197%2013.9795293,14.6154049%2013.7846612,14.4804088%20L13.7154133,14.4225534%20L11.158968,11.8667467%20C10.083183,12.7814291%208.68937384,13.3333333%207.16666667,13.3333333%20C3.76092429,13.3333333%201,10.572409%201,7.16666667%20C1,3.76092429%203.76092429,1%207.16666667,1%20Z%20M7.16666667,2%20C4.31320904,2%202,4.31320904%202,7.16666667%20C2,10.0201243%204.31320904,12.3333333%207.16666667,12.3333333%20C10.0201243,12.3333333%2012.3333333,10.0201243%2012.3333333,7.16666667%20C12.3333333,4.31320904%2010.0201243,2%207.16666667,2%20Z%20M7.16666667,4.66666667%20C7.41212656,4.66666667%207.61627504,4.84354183%207.658611,5.07679103%20L7.66666667,5.16666667%20L7.666,6.668%20L9.16601582,6.66666666%20C9.44215796,6.66630764%209.66630679,6.88987368%209.66666668,7.16601582%20C9.66698576,7.4114755%209.49037648,7.61585405%209.25718258,7.65849359%20L9.16731751,7.66666666%20L7.666,7.668%20L7.66666667,9.16666667%20C7.66666667,9.44280904%207.44280904,9.66666667%207.16666667,9.66666667%20C6.92120678,9.66666667%206.7170583,9.48979151%206.67472234,9.2565423%20L6.66666667,9.16666667%20L6.666,7.669%20L5.17251751,7.67186668%20C4.89637537,7.6722257%204.67222654,7.44865965%204.67186666,7.17251751%20C4.67154758,6.92705783%204.84815685,6.72267929%205.08135075,6.68003974%20L5.17121582,6.67186709%20L6.666,6.669%20L6.66666667,5.16666667%20C6.66666667,4.89052429%206.89052429,4.66666667%207.16666667,4.66666667%20Z'%20id='形状结合'%20fill='%2371757F'%20fill-rule='nonzero'%3e%3c/path%3e%3c/g%3e%3c/svg%3e", je = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='16px'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3ezoom-out%3c/title%3e%3cg%20id='zoom-out'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M7.16666667,1%20C10.572409,1%2013.3333333,3.76092429%2013.3333333,7.16666667%20C13.3333333,8.68984984%2012.781084,10.0840543%2011.8658888,11.1599767%20L14.4225201,13.7154466%20C14.6177822,13.9107088%2014.6177822,14.2272912%2014.4225201,14.4225534%20C14.2489537,14.5961197%2013.9795293,14.6154049%2013.7846612,14.4804088%20L13.7154133,14.4225534%20L11.158968,11.8667467%20C10.083183,12.7814291%208.68937384,13.3333333%207.16666667,13.3333333%20C3.76092429,13.3333333%201,10.572409%201,7.16666667%20C1,3.76092429%203.76092429,1%207.16666667,1%20Z%20M7.16666667,2%20C4.31320904,2%202,4.31320904%202,7.16666667%20C2,10.0201243%204.31320904,12.3333333%207.16666667,12.3333333%20C10.0201243,12.3333333%2012.3333333,10.0201243%2012.3333333,7.16666667%20C12.3333333,4.31320904%2010.0201243,2%207.16666667,2%20Z%20M9.16601582,6.66666666%20C9.44215796,6.66630764%209.66630679,6.88987368%209.66666668,7.16601582%20C9.66698576,7.4114755%209.49037648,7.61585405%209.25718258,7.65849359%20L9.16731751,7.66666666%20L5.17251751,7.67186668%20C4.89637537,7.6722257%204.67222654,7.44865965%204.67186666,7.17251751%20C4.67154758,6.92705783%204.84815685,6.72267929%205.08135075,6.68003974%20L5.17121582,6.67186709%20L9.16601582,6.66666666%20Z'%20id='形状结合'%20fill='%2371757F'%20fill-rule='nonzero'%3e%3c/path%3e%3c/g%3e%3c/svg%3e", be = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='16px'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3ei下载%3c/title%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='i下载'%3e%3cpath%20d='M14.5,14%20C14.7761424,14%2015,14.2238576%2015,14.5%20C15,14.7761424%2014.7761424,15%2014.5,15%20L1.5,15%20C1.22385763,15%201,14.7761424%201,14.5%20C1,14.2238576%201.22385763,14%201.5,14%20L14.5,14%20Z%20M8,1%20C8.24545989,1%208.44960837,1.17687516%208.49194433,1.41012437%20L8.5,1.5%20L8.5,10.793%20L11.6464466,7.64644661%20C11.820013,7.47288026%2012.0894374,7.45359511%2012.2843055,7.58859116%20L12.3535534,7.64644661%20C12.5271197,7.82001296%2012.5464049,8.08943736%2012.4114088,8.2843055%20L12.3535534,8.35355339%20L8.35355339,12.3535534%20L8.34128643,12.3654113%20C8.32881868,12.3770608%208.31575424,12.3880797%208.30214392,12.3984173%20L8.35355339,12.3535534%20C8.32671912,12.3803877%208.29759357,12.4035342%208.26680652,12.422993%20C8.25568247,12.4299807%208.24404667,12.4367067%208.23212724,12.4429657%20C8.21827569,12.4502504%208.20453886,12.4566485%208.1905951,12.4623894%20C8.17802507,12.4675915%208.16473685,12.4724419%208.15119917,12.4767316%20C8.13583471,12.481552%208.12047425,12.4856039%208.10498705,12.4889143%20C8.09430622,12.4912471%208.08325248,12.4932298%208.07207924,12.494843%20C8.05487076,12.4972949%208.03773477,12.498877%208.02056948,12.4995793%20C8.01375728,12.4998604%208.00689494,12.5%208,12.5%20L7.98043349,12.4996194%20C7.96293275,12.4989382%207.94546098,12.4973429%207.92809589,12.4948333%20L8,12.5%20C7.96390296,12.5%207.92869933,12.4961748%207.89477235,12.4889078%20C7.87952575,12.4856039%207.86416529,12.481552%207.84898836,12.4767587%20C7.83526315,12.4724419%207.82197493,12.4675915%207.80896344,12.4622078%20C7.79546114,12.4566485%207.78172431,12.4502504%207.76824181,12.443195%20C7.75595333,12.4367067%207.74431753,12.4299807%207.73298968,12.422812%20C7.72729809,12.4192668%207.72146362,12.4154054%207.7156945,12.4114088%20L7.69785608,12.3984173%20C7.68424576,12.3880797%207.67118132,12.3770608%207.65871357,12.3654113%20L7.64644661,12.3535534%20L3.64644661,8.35355339%20C3.45118446,8.15829124%203.45118446,7.84170876%203.64644661,7.64644661%20C3.82001296,7.47288026%204.08943736,7.45359511%204.2843055,7.58859116%20L4.35355339,7.64644661%20L7.5,10.793%20L7.5,1.5%20C7.5,1.22385763%207.72385763,1%208,1%20Z'%20id='形状结合'%20fill='%2371757F'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Se = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='16px'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e全部收起%3c/title%3e%3cg%20id='全部收起'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cpath%20d='M4.715694,14.4114091%20C4.910563,14.5464051%205.179987,14.5271201%205.353553,14.3535531%20L5.353553,14.3535531%20L7.99999988,11.7070001%20L10.646447,14.3535531%20L10.715694,14.4114091%20C10.910563,14.5464051%2011.179987,14.5271201%2011.353553,14.3535531%20C11.548816,14.1582911%2011.548816,13.8417091%2011.353553,13.6464471%20L11.353553,13.6464471%20L8.353553,10.6464471%20L8.284306,10.5885911%20C8.089437,10.4535951%207.820013,10.4728801%207.646447,10.6464471%20L7.646447,10.6464471%20L4.646447,13.6464471%20L4.588591,13.7156941%20C4.453595,13.9105631%204.47288,14.1799871%204.646447,14.3535531%20L4.646447,14.3535531%20L4.715694,14.4114091%20Z%20M14.5,7.50000012%20C14.776142,7.50000012%2015,7.72385812%2015,8.00000012%20C15,8.27614212%2014.776142,8.50000012%2014.5,8.50000012%20L1.5,8.50000012%20C1.223858,8.50000012%201,8.27614212%201,8.00000012%20C1,7.72385812%201.223858,7.50000012%201.5,7.50000012%20L14.5,7.50000012%20Z%20M8.284306,5.41140912%20L8.353553,5.35355312%20L11.353553,2.35355312%20C11.548816,2.15829112%2011.548816,1.84170912%2011.353553,1.64644712%20C11.179987,1.47288012%2010.910563,1.45359512%2010.715694,1.58859112%20L10.646447,1.64644712%20L7.99999988,4.29300012%20L5.353553,1.64644712%20C5.179987,1.47288012%204.910563,1.45359512%204.715694,1.58859112%20L4.646447,1.64644712%20C4.47288,1.82001312%204.453595,2.08943712%204.588591,2.28430612%20L4.646447,2.35355312%20L7.646447,5.35355312%20C7.820013,5.52712012%208.089437,5.54640512%208.284306,5.41140912%20Z'%20id='形状结合'%20fill='%2371757F'%20fill-rule='nonzero'%3e%3c/path%3e%3c/g%3e%3c/svg%3e", Oe = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+ZnVuY3Rpb24gaWNvbi9jb3B5PC90aXRsZT4KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkFQSS1zdGFydGVyLeWbvuagh+WFpeW6kyIgdHJhb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2Zz4=", Ee = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='16px'%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3estatus/whiteBG/correct%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cdefs%3e%3cpolygon%20id='path-1'%20points='6.53553391%209.77817459%2012.1923882%204.12132034%2013.6066017%205.53553391%206.53553391%2012.6066017%203%209.07106781%204.41421356%207.65685425%206.53553391%209.77817459'%3e%3c/polygon%3e%3c/defs%3e%3cg%20id='status/whiteBG/correct'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cmask%20id='mask-2'%20fill='white'%3e%3cuse%20xlink:href='%23path-1'%3e%3c/use%3e%3c/mask%3e%3cuse%20id='Mask'%20fill='%233DCCA6'%20xlink:href='%23path-1'%3e%3c/use%3e%3c/g%3e%3c/svg%3e";
9
9
  class ce {
10
10
  constructor() {
11
- this.xssWhiteList = Ce(), this.cssWhiteList = Le(), this.setDefaultXss();
11
+ this.xssWhiteList = De(), this.cssWhiteList = xe(), this.setDefaultXss();
12
12
  }
13
13
  setDefaultXss() {
14
14
  this.xssWhiteList.input = ["type", "checked", "disabled", "class"], this.xssWhiteList.label = ["for"], this.xssWhiteList.ul = ["class"], this.xssWhiteList.div = ["class"], this.xssWhiteList.a = ["href", "class", "target", "name"], this.xssWhiteList.ol = ["start"], this.xssWhiteList.p = ["class"], this.xssWhiteList.span = ["style", "class", "title", "id"], this.xssWhiteList.svg = ["style", "class", "width", "height", "viewbox", "preserveaspectratio", "id", "fill", "stroke"], this.xssWhiteList.path = ["style", "class", "d", "id", "fill", "stroke"], this.xssWhiteList.th = ["style"], this.xssWhiteList.td = ["style"];
15
15
  }
16
- onIgnoreTagAttr(s, o, d, n) {
17
- if (!n && (o === "id" || s === "span" && o === "style"))
18
- return o + "=" + d;
16
+ onIgnoreTagAttr(s, r, a, i) {
17
+ if (!i && (r === "id" || s === "span" && r === "style"))
18
+ return r + "=" + a;
19
19
  }
20
20
  getXssWhiteList() {
21
21
  return this.xssWhiteList;
@@ -24,18 +24,18 @@ class ce {
24
24
  this.xssWhiteList = s;
25
25
  }
26
26
  setCustomXssRules(s) {
27
- s && s.forEach((o) => {
28
- o.value === null ? delete this.xssWhiteList[o.key] : this.xssWhiteList[o.key] = o.value;
27
+ s && s.forEach((r) => {
28
+ r.value === null ? delete this.xssWhiteList[r.key] : this.xssWhiteList[r.key] = r.value;
29
29
  });
30
30
  }
31
- setMdPlugins(s, o) {
32
- s && s.length && s.forEach((d) => {
33
- const { plugin: n, opts: u } = d;
34
- o.use(n, u);
31
+ setMdPlugins(s, r) {
32
+ s && s.length && s.forEach((a) => {
33
+ const { plugin: i, opts: g } = a;
34
+ r.use(i, g);
35
35
  });
36
36
  }
37
37
  filterHtml(s) {
38
- return De(s, {
38
+ return Te(s, {
39
39
  whiteList: this.xssWhiteList,
40
40
  onIgnoreTagAttr: this.onIgnoreTagAttr,
41
41
  css: {
@@ -49,22 +49,22 @@ class ce {
49
49
  });
50
50
  }
51
51
  }
52
- const Se = {
52
+ const Be = {
53
53
  key: 0,
54
54
  class: "mc-code-block-header"
55
- }, Oe = { class: "mc-code-lang" }, Ee = { class: "mc-code-block-actions" }, Be = {
55
+ }, Ue = { class: "mc-code-lang" }, ze = { class: "mc-code-block-actions" }, _e = {
56
56
  key: 0,
57
57
  style: { "margin-right": "8px" }
58
- }, Ue = ["title"], ze = ["title"], _e = ["title"], We = ["title"], Ye = {
58
+ }, We = ["title"], Ze = ["title"], Ye = ["title"], Pe = ["title"], Qe = ["title"], Ge = {
59
59
  key: 0,
60
- src: be
61
- }, Ze = {
60
+ src: Oe
61
+ }, He = {
62
62
  key: 1,
63
- src: ke
64
- }, Pe = { key: 0 }, Qe = {
63
+ src: Ee
64
+ }, Fe = {
65
65
  key: 0,
66
66
  class: "mc-mermaid-content"
67
- }, Ge = { key: 1 }, He = ["innerHTML"], Fe = /* @__PURE__ */ oe({
67
+ }, Xe = { key: 1 }, $e = ["innerHTML"], Re = /* @__PURE__ */ oe({
68
68
  __name: "CodeBlock",
69
69
  props: {
70
70
  code: {
@@ -92,131 +92,135 @@ const Se = {
92
92
  default: () => ({})
93
93
  }
94
94
  },
95
- setup(i) {
96
- const s = i, { t: o } = Te(), d = new ce();
97
- let n = null;
98
- const u = T(!0), g = T(!1);
99
- T("");
100
- const r = T(!0), a = z(() => {
95
+ setup(n) {
96
+ const s = n, { t: r } = Ae(), a = new ce();
97
+ let i = null;
98
+ const g = x(!0), d = x(!1);
99
+ x("");
100
+ const l = x(!0), c = B(() => {
101
101
  var t;
102
102
  return s.enableMermaid && ((t = s.language) == null ? void 0 : t.toLowerCase()) === "mermaid";
103
- }), y = z(() => {
103
+ }), p = B(() => {
104
104
  try {
105
105
  const t = s.code.indexOf('<span class="mc-typewriter');
106
- let l;
107
- return s.language && D.getLanguage(s.language) ? t !== -1 ? l = D.highlight(s.code.slice(0, t), { language: s.language }).value + s.code.slice(t) : l = D.highlight(s.code, { language: s.language }).value : typeof D.highlightAuto !== void 0 ? t !== -1 ? l = D.highlightAuto(s.code.slice(0, t)).value + s.code.slice(t) : l = D.highlightAuto(s.code).value : l = d.filterHtml(s.code), l;
106
+ let e;
107
+ return s.language && D.getLanguage(s.language) ? t !== -1 ? e = D.highlight(s.code.slice(0, t), { language: s.language }).value + s.code.slice(t) : e = D.highlight(s.code, { language: s.language }).value : typeof D.highlightAuto !== void 0 ? t !== -1 ? e = D.highlightAuto(s.code.slice(0, t)).value + s.code.slice(t) : e = D.highlightAuto(s.code).value : e = a.filterHtml(s.code), e;
108
108
  } catch {
109
109
  }
110
- }), v = T(null), O = () => {
111
- var l;
112
- const t = (l = v.value) == null ? void 0 : l.querySelector(".mc-mermaid-content");
113
- t && n && n.zoomIn(t);
114
- }, C = () => {
115
- var l;
116
- const t = (l = v.value) == null ? void 0 : l.querySelector(".mc-mermaid-content");
117
- t && n && n.zoomOut(t);
118
- }, b = async () => {
119
- if (!(!a.value || !s.code)) {
120
- if (!n)
110
+ }), C = x(null), b = () => {
111
+ var e;
112
+ const t = (e = C.value) == null ? void 0 : e.querySelector(".mc-mermaid-content");
113
+ t && i && i.zoomIn(t);
114
+ }, I = () => {
115
+ var e;
116
+ const t = (e = C.value) == null ? void 0 : e.querySelector(".mc-mermaid-content");
117
+ t && i && i.zoomOut(t);
118
+ }, _ = () => {
119
+ var e;
120
+ const t = (e = C.value) == null ? void 0 : e.querySelector(".mc-mermaid-content");
121
+ t && i && i.download(t);
122
+ }, N = async () => {
123
+ if (!(!c.value || !s.code)) {
124
+ if (!i)
121
125
  try {
122
- const { MermaidService: t } = await import("./MermaidService-cIIuQ-0H.js"), l = {
126
+ const { MermaidService: t } = await import("./MermaidService-B6BcjbW_.js"), e = {
123
127
  theme: s.theme === "dark" ? "dark" : "default",
124
128
  ...s.mermaidConfig
125
129
  };
126
- n = new t(l);
130
+ i = new t(e);
127
131
  } catch (t) {
128
132
  console.error("Failed to load MermaidService:", t);
129
133
  return;
130
134
  }
131
- _(async () => {
132
- var l;
133
- const t = (l = v.value) == null ? void 0 : l.querySelector(".mc-mermaid-content");
134
- t && await n.renderToContainer(t, s.code.replace(/<span[^>]*\bclass\s*=\s*['"]mc-typewriter[^>]*>([\s\S]*?)<\/span>/g, "$1"), s.theme);
135
+ U(async () => {
136
+ var e;
137
+ const t = (e = C.value) == null ? void 0 : e.querySelector(".mc-mermaid-content");
138
+ t && await i.renderToContainer(t, s.code.replace(/<span[^>]*\bclass\s*=\s*['"]mc-typewriter[^>]*>([\s\S]*?)<\/span>/g, "$1"), s.theme);
135
139
  });
136
140
  }
137
- }, x = () => {
138
- u.value = !u.value;
139
- }, E = ve((t) => {
140
- const l = t.target;
141
+ }, W = () => {
142
+ g.value = !g.value;
143
+ }, S = Ie((t) => {
144
+ const e = t.target;
141
145
  if (navigator.clipboard)
142
146
  navigator.clipboard.writeText(s.code);
143
147
  else {
144
- const e = document.createElement("textarea");
145
- e.style.position = "fixed", e.style.top = "-9999px", e.style.left = "-9999px", e.style.zIndex = "-1", e.value = s.code, document.body.appendChild(e), e.select(), document.execCommand("copy"), document.body.removeChild(e);
148
+ const o = document.createElement("textarea");
149
+ o.style.position = "fixed", o.style.top = "-9999px", o.style.left = "-9999px", o.style.zIndex = "-1", o.value = s.code, document.body.appendChild(o), o.select(), document.execCommand("copy"), document.body.removeChild(o);
146
150
  }
147
- l.classList.remove("icon-copy-new"), g.value = !0, setTimeout(() => {
148
- g.value = !1;
151
+ e.classList.remove("icon-copy-new"), d.value = !0, setTimeout(() => {
152
+ d.value = !1;
149
153
  }, 1500);
150
- }, 300), Y = (t) => {
154
+ }, 300), Z = (t) => {
151
155
  t.dataset || (t.dataset = {}), t.style.height && (t.dataset.height = t.style.height), t.style.maxHeight = 0;
152
- }, Z = (t) => {
156
+ }, Y = (t) => {
153
157
  requestAnimationFrame(() => {
154
158
  t.dataset.oldOverflow = t.style.overflow, t.dataset.height ? t.style.maxHeight = t.dataset.height : t.scrollHeight !== 0 ? t.style.maxHeight = `${t.scrollHeight}px` : t.style.maxHeight = 0, t.style.overflow = "hidden";
155
159
  });
156
- }, P = (t) => {
160
+ }, O = (t) => {
157
161
  t.style.maxHeight = "", t.style.overflow = t.dataset.oldOverflow;
158
- }, B = (t) => {
159
- t.dataset || (t.dataset = {}), t.dataset.oldOverflow = t.style.overflow, t.style.maxHeight = `${t.scrollHeight}px`, t.style.overflow = "hidden";
160
162
  }, k = (t) => {
163
+ t.dataset || (t.dataset = {}), t.dataset.oldOverflow = t.style.overflow, t.style.maxHeight = `${t.scrollHeight}px`, t.style.overflow = "hidden";
164
+ }, P = (t) => {
161
165
  t.scrollHeight !== 0 && (t.style.maxHeight = 0);
162
166
  }, Q = (t) => {
163
167
  t.style.maxHeight = "", t.style.overflow = t.dataset.oldOverflow;
164
- }, G = z(() => s.theme === "dark" ? "mc-code-block-dark" : "mc-code-block-light");
165
- return j(() => [s.code, s.theme, s.enableMermaid], () => {
166
- a.value && _(() => {
167
- b();
168
+ }, G = B(() => s.theme === "dark" ? "mc-code-block-dark" : "mc-code-block-light");
169
+ return A(() => [s.code, s.theme, s.enableMermaid], () => {
170
+ c.value && U(() => {
171
+ N();
168
172
  });
169
- }, { immediate: !0 }), j(
170
- () => r.value,
173
+ }, { immediate: !0 }), A(
174
+ () => l.value,
171
175
  (t) => {
172
- t && a.value && _(() => {
173
- b();
176
+ t && c.value && U(() => {
177
+ N();
174
178
  });
175
179
  }
176
180
  ), re(() => {
177
- a.value && b();
178
- }), (t, l) => (N(), I(
181
+ c.value && N();
182
+ }), (t, e) => (M(), w(
179
183
  "div",
180
184
  {
181
- class: A(["mc-code-block", G.value]),
185
+ class: T(["mc-code-block", G.value]),
182
186
  ref_key: "rootRef",
183
- ref: v
187
+ ref: C
184
188
  },
185
189
  [
186
- t.$slots.header ? F(t.$slots, "header", { key: 1 }, void 0, !0) : (N(), I("div", Se, [
187
- M(
190
+ t.$slots.header ? F(t.$slots, "header", { key: 1 }, void 0, !0) : (M(), w("div", Be, [
191
+ y(
188
192
  "span",
189
- Oe,
190
- X(i.language),
193
+ Ue,
194
+ X(n.language),
191
195
  1
192
196
  /* TEXT */
193
197
  ),
194
198
  F(t.$slots, "actions", {}, () => [
195
- M("div", Ee, [
196
- a.value ? (N(), I("div", Be, [
197
- M(
199
+ y("div", ze, [
200
+ c.value ? (M(), w("div", _e, [
201
+ y(
198
202
  "ul",
199
203
  {
200
- class: A(["mc-diagram-switch", { "mc-show-code": !r.value }])
204
+ class: T(["mc-diagram-switch", { "mc-show-code": !l.value }])
201
205
  },
202
206
  [
203
- M(
207
+ y(
204
208
  "li",
205
209
  {
206
- onClick: l[0] || (l[0] = (e) => r.value = !0),
207
- class: A({ "mc-diagram-switch-active": r.value })
210
+ onClick: e[0] || (e[0] = (o) => l.value = !0),
211
+ class: T({ "mc-diagram-switch-active": l.value })
208
212
  },
209
- X(L(o)("Md.diagram")),
213
+ X(L(r)("Md.diagram")),
210
214
  3
211
215
  /* TEXT, CLASS */
212
216
  ),
213
- M(
217
+ y(
214
218
  "li",
215
219
  {
216
- onClick: l[1] || (l[1] = (e) => r.value = !1),
217
- class: A({ "mc-diagram-switch-active": !r.value })
220
+ onClick: e[1] || (e[1] = (o) => l.value = !1),
221
+ class: T({ "mc-diagram-switch-active": !l.value })
218
222
  },
219
- X(L(o)("Md.code")),
223
+ X(L(r)("Md.code")),
220
224
  3
221
225
  /* TEXT, CLASS */
222
226
  )
@@ -224,77 +228,100 @@ const Se = {
224
228
  2
225
229
  /* CLASS */
226
230
  )
227
- ])) : S("v-if", !0),
228
- a.value && r.value ? (N(), I("div", {
231
+ ])) : j("v-if", !0),
232
+ c.value && l.value ? (M(), w("div", {
229
233
  key: 1,
230
234
  class: "mc-action-btn mc-toggle-btn",
231
- title: L(o)("Md.zoomIn"),
232
- onClick: O
233
- }, l[3] || (l[3] = [
234
- M(
235
+ title: L(r)("Md.zoomIn"),
236
+ onClick: b
237
+ }, [...e[3] || (e[3] = [
238
+ y(
235
239
  "img",
236
- { src: xe },
240
+ { src: ke },
237
241
  null,
238
242
  -1
239
243
  /* CACHED */
240
244
  )
241
- ]), 8, Ue)) : S("v-if", !0),
242
- a.value && r.value ? (N(), I("div", {
245
+ ])], 8, We)) : j("v-if", !0),
246
+ c.value && l.value ? (M(), w("div", {
243
247
  key: 2,
244
248
  class: "mc-action-btn mc-toggle-btn",
245
- title: L(o)("Md.zoomOut"),
246
- onClick: C
247
- }, l[4] || (l[4] = [
248
- M(
249
+ title: L(r)("Md.zoomOut"),
250
+ onClick: I
251
+ }, [...e[4] || (e[4] = [
252
+ y(
249
253
  "img",
250
- { src: Ae },
254
+ { src: je },
251
255
  null,
252
256
  -1
253
257
  /* CACHED */
254
258
  )
255
- ]), 8, ze)) : S("v-if", !0),
256
- M("div", {
259
+ ])], 8, Ze)) : j("v-if", !0),
260
+ c.value && l.value ? (M(), w("div", {
261
+ key: 3,
257
262
  class: "mc-action-btn mc-toggle-btn",
258
- title: L(o)("Md.toggle"),
259
- onClick: x
260
- }, l[5] || (l[5] = [
261
- M(
263
+ title: L(r)("Md.downLoad"),
264
+ onClick: _
265
+ }, [...e[5] || (e[5] = [
266
+ y(
262
267
  "img",
263
- { src: je },
268
+ { src: be },
264
269
  null,
265
270
  -1
266
271
  /* CACHED */
267
272
  )
268
- ]), 8, _e),
269
- M("div", {
273
+ ])], 8, Ye)) : j("v-if", !0),
274
+ y("div", {
275
+ class: "mc-action-btn mc-toggle-btn",
276
+ title: L(r)("Md.toggle"),
277
+ onClick: W
278
+ }, [...e[6] || (e[6] = [
279
+ y(
280
+ "img",
281
+ { src: Se },
282
+ null,
283
+ -1
284
+ /* CACHED */
285
+ )
286
+ ])], 8, Pe),
287
+ y("div", {
270
288
  class: "mc-action-btn mc-copy-btn",
271
- title: L(o)("Md.copy"),
272
- onClick: l[2] || (l[2] = //@ts-ignore
273
- (...e) => L(E) && L(E)(...e))
289
+ title: L(r)("Md.copy"),
290
+ onClick: e[2] || (e[2] = //@ts-ignore
291
+ (...o) => L(S) && L(S)(...o))
274
292
  }, [
275
- g.value ? (N(), I("img", Ze)) : (N(), I("img", Ye))
276
- ], 8, We)
293
+ d.value ? (M(), w("img", He)) : (M(), w("img", Ge))
294
+ ], 8, Qe)
277
295
  ])
278
296
  ], !0)
279
297
  ])),
280
298
  pe(ye, {
281
299
  name: "collapse-transition",
282
- onBeforeEnter: Y,
283
- onEnter: Z,
284
- onAfterEnter: P,
285
- onBeforeLeave: B,
286
- onLeave: k,
287
- onAfterLeave: Q
300
+ onBeforeEnter: Z,
301
+ onEnter: Y,
302
+ onAfterEnter: O,
303
+ onBeforeLeave: k,
304
+ onLeave: P,
305
+ onAfterLeave: Q,
306
+ persisted: ""
288
307
  }, {
289
308
  default: fe(() => [
290
- u.value ? (N(), I("div", Pe, [
291
- a.value && r.value && !t.$slots.content ? (N(), I("div", Qe)) : t.$slots.content ? F(t.$slots, "content", { key: 2 }, void 0, !0) : (N(), I("pre", Ge, [
292
- M("code", {
293
- class: A(`hljs language-${i.language}`),
294
- innerHTML: y.value
295
- }, null, 10, He)
296
- ]))
297
- ])) : S("v-if", !0)
309
+ Me(y(
310
+ "div",
311
+ null,
312
+ [
313
+ c.value && l.value && !t.$slots.content ? (M(), w("div", Fe)) : t.$slots.content ? F(t.$slots, "content", { key: 2 }, void 0, !0) : (M(), w("pre", Xe, [
314
+ y("code", {
315
+ class: T(`hljs language-${n.language}`),
316
+ innerHTML: p.value
317
+ }, null, 10, $e)
318
+ ]))
319
+ ],
320
+ 512
321
+ /* NEED_PATCH */
322
+ ), [
323
+ [Ce, g.value]
324
+ ])
298
325
  ]),
299
326
  _: 3
300
327
  /* FORWARDED */
@@ -304,16 +331,16 @@ const Se = {
304
331
  /* CLASS */
305
332
  ));
306
333
  }
307
- }), ae = (i, s) => {
308
- const o = i.__vccOpts || i;
309
- for (const [d, n] of s)
310
- o[d] = n;
311
- return o;
312
- }, Xe = /* @__PURE__ */ ae(Fe, [["__scopeId", "data-v-3a712b93"]]), ne = {
334
+ }), ae = (n, s) => {
335
+ const r = n.__vccOpts || n;
336
+ for (const [a, i] of s)
337
+ r[a] = i;
338
+ return r;
339
+ }, Ke = /* @__PURE__ */ ae(Re, [["__scopeId", "data-v-6332bb90"]]), ie = {
313
340
  step: 2,
314
341
  interval: 50,
315
342
  style: "normal"
316
- }, $e = {
343
+ }, Ve = {
317
344
  content: {
318
345
  type: String,
319
346
  default: ""
@@ -370,306 +397,306 @@ const Se = {
370
397
  type: Object,
371
398
  default: () => ({})
372
399
  }
373
- }, Re = (i, s) => {
374
- const o = (i == null ? void 0 : i.content) || "", d = (s == null ? void 0 : s.content) || "", n = o.match(/<(\w+)/), u = d.match(/<\/(\w+)/);
375
- return n && u ? n[1] === u[1] : !1;
376
- }, Ke = (i) => {
377
- const s = i.content || "";
400
+ }, Je = (n, s) => {
401
+ const r = (n == null ? void 0 : n.content) || "", a = (s == null ? void 0 : s.content) || "", i = r.match(/<(\w+)/), g = a.match(/<\/(\w+)/);
402
+ return i && g ? i[1] === g[1] : !1;
403
+ }, qe = (n) => {
404
+ const s = n.content || "";
378
405
  if (s.match(/<(\w+)[^>]*\/>/))
379
406
  return !0;
380
- const o = [], d = /<(\w+)[^>]*>/g, n = /<\/(\w+)>/g;
381
- let u, g;
382
- d.lastIndex = 0, n.lastIndex = 0;
383
- const r = [];
384
- for (; (u = d.exec(s)) !== null; )
385
- r.push({
407
+ const r = [], a = /<(\w+)[^>]*>/g, i = /<\/(\w+)>/g;
408
+ let g, d;
409
+ a.lastIndex = 0, i.lastIndex = 0;
410
+ const l = [];
411
+ for (; (g = a.exec(s)) !== null; )
412
+ l.push({
386
413
  type: "open",
387
- tagName: u[1],
388
- index: u.index
389
- });
390
- for (; (g = n.exec(s)) !== null; )
391
- r.push({
392
- type: "close",
393
414
  tagName: g[1],
394
415
  index: g.index
395
416
  });
396
- r.sort((a, y) => a.index - y.index);
397
- for (const a of r)
398
- if (a.type === "open")
399
- o.push(a.tagName);
417
+ for (; (d = i.exec(s)) !== null; )
418
+ l.push({
419
+ type: "close",
420
+ tagName: d[1],
421
+ index: d.index
422
+ });
423
+ l.sort((c, p) => c.index - p.index);
424
+ for (const c of l)
425
+ if (c.type === "open")
426
+ r.push(c.tagName);
400
427
  else {
401
- if (o.length === 0 || o[o.length - 1] !== a.tagName)
428
+ if (r.length === 0 || r[r.length - 1] !== c.tagName)
402
429
  return !1;
403
- o.pop();
430
+ r.pop();
404
431
  }
405
- return o.length === 0;
406
- }, $ = (i) => ({
407
- nodeType: i ? i.type.replace("_open", "") : "root",
408
- openNode: i,
432
+ return r.length === 0;
433
+ }, $ = (n) => ({
434
+ nodeType: n ? n.type.replace("_open", "") : "root",
435
+ openNode: n,
409
436
  closeNode: null,
410
437
  children: [],
411
- vNodeKey: (i == null ? void 0 : i.vNodeKey) || ""
412
- }), Ve = (i, s) => {
413
- const o = i.content.startsWith("</");
438
+ vNodeKey: (n == null ? void 0 : n.vNodeKey) || ""
439
+ }), et = (n, s) => {
440
+ const r = n.content.startsWith("</");
414
441
  if (!s.length) {
415
- i.nesting = o ? 0 : 1, s.push(i);
442
+ n.nesting = r ? 0 : 1, s.push(n);
416
443
  return;
417
444
  }
418
- const d = s[s.length - 1];
419
- Re(d, i) ? (i.nesting = -1, s.pop()) : o ? i.nesting = 0 : (i.nesting = 1, s.push(i));
420
- }, de = (i) => {
421
- const s = (r) => {
422
- const a = $(r);
423
- return r.children && r.children.length > 0 && (a.children = de(r.children)), a;
424
- }, o = $(null);
425
- let d = o;
426
- const n = [], u = [], g = [];
427
- return i.forEach((r, a) => {
428
- if (r.vNodeKey = `mc-markdown-content-key-${a}`, r.tokenIndex = a, r.type.includes("html_")) {
429
- if (Ke(r)) {
430
- r.nesting = 0;
445
+ const a = s[s.length - 1];
446
+ Je(a, n) ? (n.nesting = -1, s.pop()) : r ? n.nesting = 0 : (n.nesting = 1, s.push(n));
447
+ }, de = (n) => {
448
+ const s = (l) => {
449
+ const c = $(l);
450
+ return l.children && l.children.length > 0 && (c.children = de(l.children)), c;
451
+ }, r = $(null);
452
+ let a = r;
453
+ const i = [], g = [], d = [];
454
+ return n.forEach((l, c) => {
455
+ if (l.vNodeKey = `mc-markdown-content-key-${c}`, l.tokenIndex = c, l.type.includes("html_")) {
456
+ if (qe(l)) {
457
+ l.nesting = 0;
431
458
  return;
432
459
  }
433
- const y = r.type === "html_block" ? g : u;
434
- Ve(r, y);
460
+ const p = l.type === "html_block" ? d : g;
461
+ et(l, p);
435
462
  }
436
- }), i.forEach((r, a) => {
437
- let y;
438
- if (r.nesting === 1)
439
- y = $(r), d.children.push(y), n.push(d), d = y;
440
- else if (r.nesting === -1) {
441
- if (d.closeNode = r, !n.length)
463
+ }), n.forEach((l, c) => {
464
+ let p;
465
+ if (l.nesting === 1)
466
+ p = $(l), a.children.push(p), i.push(a), a = p;
467
+ else if (l.nesting === -1) {
468
+ if (a.closeNode = l, !i.length)
442
469
  throw new Error("AST stack underflow.");
443
- y = n.pop(), d = y;
444
- } else if (r.nesting === 0)
445
- if (r.type === "inline" && r.children && r.children.length > 0) {
446
- const v = s(r);
447
- d.children.push(v);
470
+ p = i.pop(), a = p;
471
+ } else if (l.nesting === 0)
472
+ if (l.type === "inline" && l.children && l.children.length > 0) {
473
+ const C = s(l);
474
+ a.children.push(C);
448
475
  } else
449
- d.children.push(r);
476
+ a.children.push(l);
450
477
  else
451
- throw new Error(`Invalid nesting level found in token index ${a}.`);
452
- }), o.children;
453
- }, R = (i) => {
454
- if (!i || !i.trim()) return [];
478
+ throw new Error(`Invalid nesting level found in token index ${c}.`);
479
+ }), r.children;
480
+ }, R = (n) => {
481
+ if (!n || !n.trim()) return [];
455
482
  if (typeof window > "u" || typeof DOMParser > "u")
456
- return [i];
457
- const o = new DOMParser().parseFromString(`<body>${i}</body>`, "text/html"), d = [];
458
- return o.body.childNodes.forEach((n, u) => {
459
- const g = ge(n);
460
- (le(g) || typeof g == "string") && (typeof g == "object" && (g.key = u), d.push(g));
461
- }), d;
462
- }, ge = (i) => {
463
- if (i.nodeType === Node.TEXT_NODE) return i.textContent;
464
- if (i.nodeType !== Node.ELEMENT_NODE) return i.textContent || "";
465
- const s = i, o = {};
483
+ return [n];
484
+ const r = new DOMParser().parseFromString(`<body>${n}</body>`, "text/html"), a = [];
485
+ return r.body.childNodes.forEach((i, g) => {
486
+ const d = ge(i);
487
+ (le(d) || typeof d == "string") && (typeof d == "object" && (d.key = g), a.push(d));
488
+ }), a;
489
+ }, ge = (n) => {
490
+ if (n.nodeType === Node.TEXT_NODE) return n.textContent;
491
+ if (n.nodeType !== Node.ELEMENT_NODE) return n.textContent || "";
492
+ const s = n, r = {};
466
493
  if (s.hasAttributes() && s.attributes)
467
- for (const n of Array.from(s.attributes))
468
- o[n.name] = n.value;
469
- const d = [];
470
- return s.childNodes.length > 0 && s.childNodes.forEach((n) => {
471
- const u = ge(n);
472
- (le(u) || typeof u == "string") && d.push(u);
473
- }), W(s.tagName) ? w(s.tagName.toLowerCase(), o, d) : (i == null ? void 0 : i.textContent) || "";
474
- }, W = (i) => {
475
- if (!i) return !1;
494
+ for (const i of Array.from(s.attributes))
495
+ r[i.name] = i.value;
496
+ const a = [];
497
+ return s.childNodes.length > 0 && s.childNodes.forEach((i) => {
498
+ const g = ge(i);
499
+ (le(g) || typeof g == "string") && a.push(g);
500
+ }), z(s.tagName) ? v(s.tagName.toLowerCase(), r, a) : (n == null ? void 0 : n.textContent) || "";
501
+ }, z = (n) => {
502
+ if (!n) return !1;
476
503
  try {
477
- return document.createElement(i), !0;
504
+ return document.createElement(n), !0;
478
505
  } catch {
479
506
  return !1;
480
507
  }
481
- }, Je = /* @__PURE__ */ oe({
508
+ }, tt = /* @__PURE__ */ oe({
482
509
  __name: "mdCard",
483
- props: $e,
510
+ props: Ve,
484
511
  emits: ["afterMdtInit", "typingStart", "typing", "typingEnd"],
485
- setup(i, { expose: s, emit: o }) {
486
- const d = new ce(), n = i, u = o, g = Me();
487
- let r = null;
488
- const a = we({
512
+ setup(n, { expose: s, emit: r }) {
513
+ const a = new ce(), i = n, g = r, d = we();
514
+ let l = null;
515
+ const c = Le({
489
516
  breaks: !0,
490
517
  linkify: !0,
491
518
  html: !0,
492
- highlight: (e, c) => {
493
- if (c && D.getLanguage(c))
519
+ highlight: (e, o) => {
520
+ if (o && D.getLanguage(o))
494
521
  try {
495
- return D.highlight(e, { language: c }).value;
522
+ return D.highlight(e, { language: o }).value;
496
523
  } catch {
497
524
  }
498
525
  return "";
499
526
  },
500
- ...n.mdOptions
501
- }), y = T(0), v = T(!1), O = T(), C = () => {
502
- var p;
503
- let e = n.content || "";
504
- if (n.typing && v.value) {
505
- e = n.content.slice(0, y.value) || "";
506
- const f = { ...ne, ...n == null ? void 0 : n.typingOptions };
527
+ ...i.mdOptions
528
+ }), p = x(0), C = x(!1), b = x(), I = () => {
529
+ var m;
530
+ let e = i.content || "";
531
+ if (i.typing && C.value) {
532
+ e = i.content.slice(0, p.value) || "";
533
+ const f = { ...ie, ...i == null ? void 0 : i.typingOptions };
507
534
  f.style === "cursor" ? e += '<span class="mc-typewriter mc-typewriter-cursor">|</span>' : (f.style === "color" || f.style === "gradient") && (e = e.slice(0, -5) + `<span class="mc-typewriter mc-typewriter-${f.style}">${e.slice(-5)}</span>`);
508
535
  }
509
- if (n.enableThink) {
510
- const f = ((p = n.thinkOptions) == null ? void 0 : p.customClass) || "mc-think-block";
536
+ if (i.enableThink) {
537
+ const f = ((m = i.thinkOptions) == null ? void 0 : m.customClass) || "mc-think-block";
511
538
  e = (e == null ? void 0 : e.replace("<think>", `<div class="${f}">`).replace("</think>", "</div>")) || "";
512
539
  }
513
- const c = a.parse(e, {}), h = de(c), m = b(h);
514
- O.value = w(U, m);
515
- }, b = (e) => e.map((c) => x(c)), x = (e) => {
516
- var c, h;
540
+ const o = c.parse(e, {}), u = de(o), h = _(u);
541
+ b.value = v(E, h);
542
+ }, _ = (e) => e.map((o) => N(o)), N = (e) => {
543
+ var o, u;
517
544
  if (e.nodeType === "html_inline" || e.nodeType === "html_block") {
518
- const m = R(((c = e.openNode) == null ? void 0 : c.content) || "")[0];
519
- if (m) {
520
- const p = (m == null ? void 0 : m.children) || [];
521
- return Array.isArray(p) ? m.children = [...p, ...e.children.map((f) => x(f))] : m.children = [p, ...e.children.map((f) => x(f))], m;
545
+ const h = R(((o = e.openNode) == null ? void 0 : o.content) || "")[0];
546
+ if (h) {
547
+ const m = (h == null ? void 0 : h.children) || [];
548
+ return Array.isArray(m) ? h.children = [...m, ...e.children.map((f) => N(f))] : h.children = [m, ...e.children.map((f) => N(f))], h;
522
549
  } else
523
- return ((h = e.openNode) == null ? void 0 : h.content) || "";
550
+ return ((u = e.openNode) == null ? void 0 : u.content) || "";
524
551
  }
525
552
  if (e.nodeType === "inline") {
526
- const m = a.renderer.render([e.openNode], a.options, {}), p = R(m);
527
- return w(U, p);
553
+ const h = c.renderer.render([e.openNode], c.options, {}), m = R(h);
554
+ return v(E, m);
528
555
  }
529
- return E(e) ? Y(e) : P(e);
530
- }, E = (e) => "type" in e && "content" in e, Y = (e) => {
556
+ return W(e) ? S(e) : Y(e);
557
+ }, W = (e) => "type" in e && "content" in e, S = (e) => {
531
558
  if (e.type === "text")
532
559
  return e.content;
533
560
  if (e.type === "inline")
534
561
  return Z(e);
535
562
  if (e.type === "fence")
536
- return B(e);
563
+ return O(e);
537
564
  if (e.type === "softbreak")
538
- return a.options.breaks ? w("br") : `
565
+ return c.options.breaks ? v("br") : `
539
566
  `;
540
567
  if (e.type === "html_block" || e.type === "html_inline")
541
- return e.type === "html_block" ? w("div", { innerHTML: e.content }) : w("span", { innerHTML: e.content });
568
+ return e.type === "html_block" ? v("div", { innerHTML: e.content }) : v("span", { innerHTML: e.content });
542
569
  if (e.tag) {
543
- const c = W(e.tag) ? e.tag : "div", h = k(e.attrs || []);
544
- return w(c, { ...h, key: e.vNodeKey }, e.content);
570
+ const o = z(e.tag) ? e.tag : "div", u = k(e.attrs || []);
571
+ return v(o, { ...u, key: e.vNodeKey }, e.content);
545
572
  }
546
573
  return e.content;
547
574
  }, Z = (e) => {
548
- const c = a.renderer.render([e], a.options, {}), h = R(c);
549
- return w(U, h);
550
- }, P = (e) => {
551
- var p, f, K, V, J, q, ee, te, se;
552
- let c = "div";
553
- (p = e.openNode) != null && p.tag && W((f = e.openNode) == null ? void 0 : f.tag) && (c = (K = e.openNode) == null ? void 0 : K.tag);
554
- const h = k(((V = e.openNode) == null ? void 0 : V.attrs) || []);
575
+ const o = c.renderer.render([e], c.options, {}), u = R(o);
576
+ return v(E, u);
577
+ }, Y = (e) => {
578
+ var m, f, K, V, J, q, ee, te, se;
579
+ let o = "div";
580
+ (m = e.openNode) != null && m.tag && z((f = e.openNode) == null ? void 0 : f.tag) && (o = (K = e.openNode) == null ? void 0 : K.tag);
581
+ const u = k(((V = e.openNode) == null ? void 0 : V.attrs) || []);
555
582
  if (((J = e.openNode) == null ? void 0 : J.type) === "fence")
556
- return B(e.openNode);
583
+ return O(e.openNode);
557
584
  if ((q = e.openNode) != null && q.tag) {
558
- let H = W((ee = e.openNode) == null ? void 0 : ee.tag) ? (te = e.openNode) == null ? void 0 : te.tag : "div";
559
- const ue = e.children.map((me) => x(me)), he = k(((se = e.openNode) == null ? void 0 : se.attrs) || []);
560
- return w(H, { ...he, key: e.vNodeKey }, ue);
585
+ let H = z((ee = e.openNode) == null ? void 0 : ee.tag) ? (te = e.openNode) == null ? void 0 : te.tag : "div";
586
+ const ue = e.children.map((me) => N(me)), he = k(((se = e.openNode) == null ? void 0 : se.attrs) || []);
587
+ return v(H, { ...he, key: e.vNodeKey }, ue);
561
588
  }
562
- const m = e.children.map((H) => x(H));
563
- return w(c, { ...h, key: e.vNodeKey }, m);
564
- }, B = (e) => {
565
- var m;
566
- const c = ((m = e.info) == null ? void 0 : m.replace(/<span\b[^>]*>/i, "").replace("</span>", "")) || "", h = e.content;
567
- return Q(c, h, e.tokenIndex);
568
- }, k = (e) => e.reduce((c, [h, m]) => (c[h] = m, c), {});
569
- j(
589
+ const h = e.children.map((H) => N(H));
590
+ return v(o, { ...u, key: e.vNodeKey }, h);
591
+ }, O = (e) => {
592
+ var h;
593
+ const o = ((h = e.info) == null ? void 0 : h.replace(/<span\b[^>]*>/i, "").replace("</span>", "")) || "", u = e.content;
594
+ return P(o, u, e.tokenIndex);
595
+ }, k = (e) => e.reduce((o, [u, h]) => (o[u] = h, o), {});
596
+ A(
570
597
  () => {
571
598
  var e;
572
- return [n.enableThink, (e = n.thinkOptions) == null ? void 0 : e.customClass, n.theme];
599
+ return [i.enableThink, (e = i.thinkOptions) == null ? void 0 : e.customClass, i.theme];
573
600
  },
574
601
  () => {
575
- C();
602
+ I();
576
603
  }
577
604
  );
578
- const Q = (e, c, h) => {
579
- const m = {
580
- actions: g.actions ? () => {
581
- var p;
582
- return ((p = g.actions) == null ? void 0 : p.call(g, { codeBlockData: { code: c, language: e } })) || null;
605
+ const P = (e, o, u) => {
606
+ const h = {
607
+ actions: d.actions ? () => {
608
+ var m;
609
+ return ((m = d.actions) == null ? void 0 : m.call(d, { codeBlockData: { code: o, language: e } })) || null;
583
610
  } : void 0,
584
- header: g.header ? () => {
585
- var p;
586
- return ((p = g.header) == null ? void 0 : p.call(g, { codeBlockData: { code: c, language: e } })) || null;
611
+ header: d.header ? () => {
612
+ var m;
613
+ return ((m = d.header) == null ? void 0 : m.call(d, { codeBlockData: { code: o, language: e } })) || null;
587
614
  } : void 0,
588
- content: g.content ? () => {
589
- var p;
590
- return ((p = g.content) == null ? void 0 : p.call(g, { codeBlockData: { code: c, language: e } })) || null;
615
+ content: d.content ? () => {
616
+ var m;
617
+ return ((m = d.content) == null ? void 0 : m.call(d, { codeBlockData: { code: o, language: e } })) || null;
591
618
  } : void 0
592
619
  };
593
- return w(
594
- Xe,
620
+ return v(
621
+ Ke,
595
622
  {
596
623
  language: e,
597
- code: c,
598
- blockIndex: h,
599
- theme: n.theme,
600
- enableMermaid: n.enableMermaid,
601
- mermaidConfig: n.mermaidConfig,
602
- key: `code-block-${h}`
624
+ code: o,
625
+ blockIndex: u,
626
+ theme: i.theme,
627
+ enableMermaid: i.enableMermaid,
628
+ mermaidConfig: i.mermaidConfig,
629
+ key: `code-block-${u}`
603
630
  },
604
- m
631
+ h
605
632
  );
606
- }, G = () => {
607
- clearTimeout(r), v.value = !0, u("typingStart");
608
- const e = { ...ne, ...n == null ? void 0 : n.typingOptions }, c = () => {
609
- let h = e.step;
610
- if (Array.isArray(e.step) && (h = e.step[0] + Math.floor(Math.random() * (e.step[1] - e.step[0]))), y.value += h, C(), u("typing"), y.value >= n.content.length) {
611
- t(), C();
633
+ }, Q = () => {
634
+ clearTimeout(l), C.value = !0, g("typingStart");
635
+ const e = { ...ie, ...i == null ? void 0 : i.typingOptions }, o = () => {
636
+ let u = e.step;
637
+ if (Array.isArray(e.step) && (u = e.step[0] + Math.floor(Math.random() * (e.step[1] - e.step[0]))), p.value += u, I(), g("typing"), p.value >= i.content.length) {
638
+ G(), I();
612
639
  return;
613
640
  }
614
- r = setTimeout(c, e.interval);
641
+ l = setTimeout(o, e.interval);
615
642
  };
616
- r = setTimeout(c);
643
+ l = setTimeout(o);
617
644
  };
618
- j(
619
- () => n.content,
620
- (e, c) => {
621
- if (!n.typing) {
622
- y.value = (e == null ? void 0 : e.length) || 0, C();
645
+ A(
646
+ () => i.content,
647
+ (e, o) => {
648
+ if (!i.typing) {
649
+ p.value = (e == null ? void 0 : e.length) || 0, I();
623
650
  return;
624
651
  }
625
- e.indexOf(c) === -1 && (y.value = 0), _(() => G());
652
+ e.indexOf(o) === -1 && (p.value = 0), U(() => Q());
626
653
  },
627
654
  { immediate: !0 }
628
655
  );
629
- const t = () => {
630
- v.value = !1, u("typingEnd");
656
+ const G = () => {
657
+ C.value = !1, g("typingEnd");
631
658
  };
632
- j(
633
- () => n.customXssRules,
659
+ A(
660
+ () => i.customXssRules,
634
661
  (e) => {
635
- d.setCustomXssRules(e), C();
662
+ a.setCustomXssRules(e), I();
636
663
  },
637
664
  { deep: !1 }
638
- ), j(
639
- () => n.mdPlugins,
665
+ ), A(
666
+ () => i.mdPlugins,
640
667
  (e) => {
641
- d.setMdPlugins(e, a), C();
668
+ a.setMdPlugins(e, c), I();
642
669
  },
643
670
  { immediate: !0, deep: !1 }
644
671
  );
645
- const l = z(() => n.theme === "dark" ? "mc-markdown-render-dark" : "mc-markdown-render-light");
672
+ const t = B(() => i.theme === "dark" ? "mc-markdown-render-dark" : "mc-markdown-render-light");
646
673
  return re(() => {
647
- u("afterMdtInit", a);
648
- }), s({ mdt: a }), (e, c) => (N(), I(
649
- U,
674
+ g("afterMdtInit", c);
675
+ }), s({ mdt: c }), (e, o) => (M(), w(
676
+ E,
650
677
  null,
651
678
  [
652
- M(
679
+ y(
653
680
  "div",
654
681
  {
655
- class: A(["mc-markdown-render", l.value])
682
+ class: T(["mc-markdown-render", t.value])
656
683
  },
657
684
  [
658
- (N(), Ne(Ie(O.value)))
685
+ (M(), ve(Ne(b.value)))
659
686
  ],
660
687
  2
661
688
  /* CLASS */
662
689
  ),
663
- S("v-if", !0)
690
+ j("v-if", !0)
664
691
  ],
665
692
  64
666
693
  /* STABLE_FRAGMENT */
667
694
  ));
668
695
  }
669
- }), ie = /* @__PURE__ */ ae(Je, [["__scopeId", "data-v-d14b3723"]]);
670
- ie.install = (i) => {
671
- i.component("McMarkdownCard", ie);
696
+ }), ne = /* @__PURE__ */ ae(tt, [["__scopeId", "data-v-d14b3723"]]);
697
+ ne.install = (n) => {
698
+ n.component("McMarkdownCard", ne);
672
699
  };
673
700
  export {
674
- ie as McMarkdownCard
701
+ ne as McMarkdownCard
675
702
  };