@farris/x-ui 0.0.1

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.
Files changed (140) hide show
  1. package/app-preview/index.d.ts +8 -0
  2. package/app-preview/src/app-preview.component.d.ts +22 -0
  3. package/app-preview/src/app-preview.props.d.ts +14 -0
  4. package/app-preview/src/types.d.ts +37 -0
  5. package/attachment-preview/index.d.ts +8 -0
  6. package/attachment-preview/src/attachment-preview.component.d.ts +20 -0
  7. package/attachment-preview/src/attachment-preview.props.d.ts +13 -0
  8. package/attachment-preview/src/types.d.ts +27 -0
  9. package/bubble/index.d.ts +10 -0
  10. package/bubble/src/bubble.component.d.ts +119 -0
  11. package/bubble/src/bubble.props.d.ts +79 -0
  12. package/bubble/src/components/action/bubble-action.component.d.ts +11 -0
  13. package/bubble/src/components/action/bubble-action.props.d.ts +15 -0
  14. package/bubble/src/components/attachment/bubble-attachment.component.d.ts +16 -0
  15. package/bubble/src/components/attachment/bubble-attachment.props.d.ts +18 -0
  16. package/bubble/src/components/bubble-think/bubble-think.component.d.ts +10 -0
  17. package/bubble/src/components/bubble-think/bubble-think.props.d.ts +16 -0
  18. package/bubble/src/components/bubble-thought-chain/bubble-thought-chain.component.d.ts +6 -0
  19. package/bubble/src/components/bubble-thought-chain/bubble-thought-chain.props.d.ts +9 -0
  20. package/bubble/src/components/embedded-content/file/file-embedded-content.component.d.ts +16 -0
  21. package/bubble/src/components/embedded-content/file/file-embedded-content.props.d.ts +26 -0
  22. package/bubble/src/components/embedded-content/page/page-embedded-content.component.d.ts +13 -0
  23. package/bubble/src/components/embedded-content/page/page-embedded-content.props.d.ts +20 -0
  24. package/bubble/src/components/header/content-header.component.d.ts +6 -0
  25. package/bubble/src/components/header/sender-header.component.d.ts +6 -0
  26. package/bubble/src/components/text-content/text-content.component.d.ts +20 -0
  27. package/bubble/src/components/text-content/text-content.props.d.ts +32 -0
  28. package/bubble/src/composition/types.d.ts +153 -0
  29. package/bubble/src/composition/use-attachment.d.ts +5 -0
  30. package/bubble/src/composition/use-embedded-content.d.ts +12 -0
  31. package/bubble/src/composition/use-widget-content.d.ts +47 -0
  32. package/bubble/test/bubble.spec.d.ts +1 -0
  33. package/carousel/index.d.ts +10 -0
  34. package/carousel/src/carousel.component.d.ts +169 -0
  35. package/carousel/src/carousel.props.d.ts +94 -0
  36. package/carousel/src/components/carousel-item.component.d.ts +61 -0
  37. package/carousel/src/components/carousel-item.props.d.ts +35 -0
  38. package/carousel/src/composition/type.d.ts +27 -0
  39. package/carousel/src/composition/use-carousel.d.ts +23 -0
  40. package/carousel/test/carousel.spec.d.ts +1 -0
  41. package/chat-preview/index.d.ts +13 -0
  42. package/chat-preview/src/agent-workbench-sdk.d.ts +61 -0
  43. package/chat-preview/src/chat-preview.component.d.ts +34 -0
  44. package/chat-preview/src/chat-preview.props.d.ts +19 -0
  45. package/chat-preview/src/preview-bridge-protocol.d.ts +22 -0
  46. package/chat-preview/src/preview-chrome-sdk.d.ts +28 -0
  47. package/chat-preview/src/preview-iframe-sdk.d.ts +6 -0
  48. package/coding/index.d.ts +8 -0
  49. package/coding/src/coding.component.d.ts +12 -0
  50. package/coding/src/coding.props.d.ts +10 -0
  51. package/coding/src/types.d.ts +23 -0
  52. package/common/index.d.ts +7 -0
  53. package/common/src/runtime-attachment-download.d.ts +16 -0
  54. package/common/src/types.d.ts +2 -0
  55. package/common/src/use-appearance.d.ts +14 -0
  56. package/common/src/use-render.d.ts +15 -0
  57. package/common/src/use-sequential-streaming.d.ts +19 -0
  58. package/common/src/use-streaming-output.d.ts +18 -0
  59. package/common/src/use-timer.d.ts +7 -0
  60. package/components.d.ts +40 -0
  61. package/confirm-dialog/index.d.ts +7 -0
  62. package/confirm-dialog/src/confirm-dialog.component.d.ts +38 -0
  63. package/confirm-dialog/src/confirm-dialog.props.d.ts +33 -0
  64. package/dynamic-component/index.d.ts +7 -0
  65. package/dynamic-component/src/composition/dynamic-component-registry.d.ts +9 -0
  66. package/dynamic-component/src/composition/types.d.ts +18 -0
  67. package/dynamic-component/src/composition/use-dynamic-component-parser.d.ts +14 -0
  68. package/dynamic-component/src/dynamic-component.component.d.ts +15 -0
  69. package/enterprise-cloud/index.d.ts +16 -0
  70. package/enterprise-cloud/src/agent-thinking.component.d.ts +15 -0
  71. package/enterprise-cloud/src/attachment-file.component.d.ts +15 -0
  72. package/enterprise-cloud/src/error-reminder.component.d.ts +15 -0
  73. package/enterprise-cloud/src/hitl-question.component.d.ts +43 -0
  74. package/enterprise-cloud/src/input-recommend.component.d.ts +25 -0
  75. package/enterprise-cloud/src/link-card.component.d.ts +15 -0
  76. package/enterprise-cloud/src/reference-sources.component.d.ts +15 -0
  77. package/enterprise-cloud/src/types.d.ts +155 -0
  78. package/enterprise-cloud/src/unknown-enterprise.component.d.ts +15 -0
  79. package/enterprise-cloud/src/user-auth.component.d.ts +25 -0
  80. package/farris.x-ui.esm.js +13185 -0
  81. package/farris.x-ui.umd.cjs +108 -0
  82. package/file-operation/index.d.ts +8 -0
  83. package/file-operation/src/file-operation.component.d.ts +12 -0
  84. package/file-operation/src/file-operation.props.d.ts +10 -0
  85. package/file-operation/src/types.d.ts +30 -0
  86. package/generate-process/index.d.ts +7 -0
  87. package/generate-process/src/composition/type.d.ts +1 -0
  88. package/generate-process/src/generate-process.component.d.ts +41 -0
  89. package/generate-process/src/generate-process.props.d.ts +47 -0
  90. package/history/index.d.ts +7 -0
  91. package/history/src/composition/type.d.ts +8 -0
  92. package/history/src/history.component.d.ts +15 -0
  93. package/history/src/history.props.d.ts +14 -0
  94. package/index.css +1 -0
  95. package/index.d.ts +8 -0
  96. package/markdown/index.d.ts +8 -0
  97. package/markdown/src/markdown.component.d.ts +12 -0
  98. package/markdown/src/markdown.props.d.ts +10 -0
  99. package/markdown/src/types.d.ts +8 -0
  100. package/markdown-preview/index.d.ts +7 -0
  101. package/markdown-preview/src/markdown-preview.component.d.ts +9 -0
  102. package/markdown-preview/src/markdown-preview.props.d.ts +9 -0
  103. package/package.json +19 -0
  104. package/prompts/index.d.ts +9 -0
  105. package/prompts/src/components/prompt.component.d.ts +131 -0
  106. package/prompts/src/components/prompt.props.d.ts +79 -0
  107. package/prompts/src/composition/type.d.ts +34 -0
  108. package/prompts/src/prompts.component.d.ts +46 -0
  109. package/prompts/src/prompts.props.d.ts +61 -0
  110. package/started-todo/index.d.ts +8 -0
  111. package/started-todo/src/started-todo.component.d.ts +108 -0
  112. package/started-todo/src/started-todo.props.d.ts +54 -0
  113. package/started-todo/src/types.d.ts +9 -0
  114. package/suggestion/index.d.ts +7 -0
  115. package/suggestion/src/composition/type.d.ts +6 -0
  116. package/suggestion/src/suggestion.component.d.ts +37 -0
  117. package/suggestion/src/suggestion.props.d.ts +34 -0
  118. package/todo/index.d.ts +12 -0
  119. package/todo/src/components/todo-list-item-view.component.d.ts +112 -0
  120. package/todo/src/components/todo-list-item-view.props.d.ts +57 -0
  121. package/todo/src/components/todo-list-view.d.ts +17 -0
  122. package/todo/src/components/todo-list-view.props.d.ts +11 -0
  123. package/todo/src/composition/status-icon.d.ts +6 -0
  124. package/todo/src/composition/type.d.ts +32 -0
  125. package/todo/src/todo.component.d.ts +41 -0
  126. package/todo/src/todo.props.d.ts +24 -0
  127. package/tool-use/index.d.ts +6 -0
  128. package/tool-use/src/tool-use.component.d.ts +19 -0
  129. package/welcome/index.d.ts +7 -0
  130. package/welcome/src/composition/type.d.ts +1 -0
  131. package/welcome/src/welcome.component.d.ts +35 -0
  132. package/welcome/src/welcome.props.d.ts +30 -0
  133. package/welcome/test/welcome.spec.d.ts +1 -0
  134. package/widget-container/index.d.ts +8 -0
  135. package/widget-container/src/composition/class/stage.class.d.ts +10 -0
  136. package/widget-container/src/composition/types.d.ts +24 -0
  137. package/widget-container/src/composition/use-deep-equal.d.ts +3 -0
  138. package/widget-container/src/composition/use-load-widget.d.ts +5 -0
  139. package/widget-container/src/widget-container.component.d.ts +28 -0
  140. package/widget-container/src/widget-container.props.d.ts +35 -0
@@ -0,0 +1,108 @@
1
+ (function(T,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("@farris/ui-vue")):typeof define=="function"&&define.amd?define(["exports","vue","@farris/ui-vue"],a):(T=typeof globalThis<"u"?globalThis:T||self,a(T.FarrisX={},T.vue,T.uiVue))})(this,function(T,a,pe){"use strict";var $2=Object.defineProperty;var mc=T=>{throw TypeError(T)};var U2=(T,a,pe)=>a in T?$2(T,a,{enumerable:!0,configurable:!0,writable:!0,value:pe}):T[a]=pe;var le=(T,a,pe)=>U2(T,typeof a!="symbol"?a+"":a,pe),Bo=(T,a,pe)=>a.has(T)||mc("Cannot "+pe);var x=(T,a,pe)=>(Bo(T,a,"read from private field"),pe?pe.call(T):a.get(T)),ue=(T,a,pe)=>a.has(T)?mc("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(T):a.set(T,pe),Y=(T,a,pe,Gt)=>(Bo(T,a,"write to private field"),Gt?Gt.call(T,pe):a.set(T,pe),pe),W=(T,a,pe)=>(Bo(T,a,"access private method"),pe);var fr=(T,a,pe,Gt)=>({set _(Tt){Y(T,a,Tt,pe)},get _(){return x(T,a,Gt)}});var Zs,wt,xn,Ys,Ks,Je,We,nt,Jt,ut,An,wn,rt,Ae,ot,ye,de,K,Pe,qe,Oe,Ce,it,Ee,at,st,Xe,Ze,ct,zt,Ve,kn,V,jo,en,Et,du,Ye,gc,tn,vn,fu,$t,Ut,zo,hr,pr,he,$o,bu,Ht,Uo,Cn;const Gt={content:{type:Object,required:!0},onOpen:{type:Function,default:void 0}},Tt=a.defineComponent({name:"AppPreviewMessage",props:Gt,setup(e){const t=a.ref(!1);function n(){var p;const i=(p=e.content)==null?void 0:p.appConfig;if(!i)return"";const s=i.ws??"",c=i.appPath??"",d=i.appObjectId??"";return`${i.appBuilderUri??"/apps/platform/development-platform/ide/app-builder/index.html"}?path=${c}&boId=${d}&ws=${s}&version=2.0#/home`}function r(){var s;const i=(s=e.content)==null?void 0:s.previewConfig;i&&e.onOpen&&e.onOpen(i)}function o(i){const s=i.target;s!=null&&s.closest(".f-chat-app-preview-open-btn")||i.preventDefault()}function u(i){i.stopPropagation();const s=n();s&&window.open(s,"_blank")}return()=>{const i=e.content;if(!i)return null;const{message:s,appName:c,createdDatetime:d}=i;return a.createVNode("div",{class:"f-chat-message-app-preview"},[a.createVNode("div",{class:"f-chat-app-preview-message"},[s]),a.createVNode("div",{class:"f-chat-app-preview-card",onMouseenter:()=>t.value=!0,onMouseleave:()=>t.value=!1,onMousedown:o,onClick:r,role:"button",tabindex:0,onKeydown:f=>f.key==="Enter"&&r()},[a.createVNode("div",{class:"f-chat-app-preview-card-left"},[a.createVNode("span",{class:"f-chat-app-preview-icon"},[a.createVNode("i",{class:"f-icon f-icon-page-title-administer"},null)])]),a.createVNode("div",{class:"f-chat-app-preview-card-middle"},[a.createVNode("div",{class:"f-chat-app-preview-app-name"},[c]),a.createVNode("div",{class:"f-chat-app-preview-datetime"},[d])]),a.createVNode("div",{class:"f-chat-app-preview-card-right"},[a.createVNode("div",{class:"f-chat-app-preview-action-area"},null),t.value&&a.createVNode("button",{type:"button",class:"f-chat-app-preview-open-btn",onClick:u,title:"在新页签中打开","aria-label":"在新页签中打开"},[a.createVNode("i",{class:"f-icon f-icon-folder-open"},null)])])])])}}});Tt.install=e=>{e.component(Tt.name,Tt)};const Ho={content:{type:Object,required:!0},outputMode:{type:String,default:"streaming"},classNames:{type:Object,default:()=>({})},customClass:{type:Object,default:""},customStyle:{type:Object,default:""},header:{type:String,default:"sender"},placement:{type:String,default:"start"},showAvatar:{type:Boolean,default:!0},styles:{type:Object,default:()=>({})},attachments:{type:Array,default:()=>[]},onPreview:{type:Function,default:void 0},onUserAuthConfirm:{type:Function,default:void 0},compositeTailRender:{type:Function,default:void 0},onDynamicComponentsDetected:{type:Function,default:void 0}},mr={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},bc="/api/runtime/attachment";function yc(){try{const e=mr==null?void 0:mr.VITE_ATTACHMENT_API_BASE;if(typeof e=="string"&&e.trim()!=="")return e.replace(/\/+$/,"")}catch{}return""}function xc(e){var n;const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:typeof window<"u"&&((n=window.location)!=null&&n.origin)&&t.startsWith("/")?`${window.location.origin}${t}`:t}function Ac(e){return`${bc}/${encodeURIComponent(e)}/download`}function gr(e){const t=String(e??"").trim();if(!t)return"";const n=Ac(t),r=yc();return r?`${r}${n}`:n}function Go(e){const t=e.trim().match(/\/api\/runtime\/attachment\/([^/]+)\/download(?:\?|#|$)/i);if(!(t!=null&&t[1]))return"";try{return decodeURIComponent(t[1]).trim()}catch{return t[1].trim()}}function un(e){const t=String(e.fileId??"").trim();if(t)return gr(t);const n=String(e.url??"").trim();if(!n)return;const r=Go(n);if(r)return gr(r);if(n.startsWith("http://")||n.startsWith("https://")||n.startsWith("/"))return n}async function yu(e,t){const n=String(t??"").replace(/[/\\]/g,"_").trim()||"download",r=xc(e);try{const o=await fetch(r,{credentials:"include",mode:"cors"});if(!o.ok)throw new Error(`download_http_${o.status}`);const u=await o.blob(),i=URL.createObjectURL(u),s=document.createElement("a");s.href=i,s.download=n,s.rel="noopener noreferrer",document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(i)}catch{const o=document.createElement("a");o.href=r,o.target="_blank",o.rel="noopener noreferrer",document.body.appendChild(o),o.click(),document.body.removeChild(o)}}function Se(e,t){return t&&(typeof t=="string"?t.split(" ").filter(Boolean).forEach(r=>{e[r]=!0}):Array.isArray(t)?t.forEach(n=>{n&&(e[n]=!0)}):typeof t=="object"&&Object.entries(t).forEach(([n,r])=>{n&&r&&(e[n]=!0)})),e}function Te(e,t){return t&&(typeof t=="string"?t.split(";").filter(Boolean).forEach(r=>{var u,i;const o=r.split(":");if(o.length>=2&&((u=o[0])!=null&&u.trim())&&((i=o[1])!=null&&i.trim())){const s=o[0].trim(),c=o.slice(1).join(":").trim();e[s]=c}}):typeof t=="object"&&Object.entries(t).forEach(([n,r])=>{n&&r!==void 0&&r!==null&&(e[n]=r)})),e}function Tn(e){return e||null}function Wo(e){return e?/\.(jpg|jpeg|png|gif|svg|webp|bmp|ico)$/i.test(e)||e.startsWith("http")||e.startsWith("data:image"):!1}function xu(e){return e?typeof e!="string"?e:Wo(e)?a.h("img",{src:e,alt:"icon",class:"fx-prompt--item-icon-image",onError:t=>{const n=t.target;n.style.display="none",n.parentElement.innerHTML='<i class="f-icon f-icon-warning"></i>'}}):e.includes("f-icon")||e.includes("icon-")?a.h("i",{class:e}):e:null}function qo(e,t,n,r={}){const{charInterval:o=30}=r,u=a.ref({});let i=[],s=new Set;const c=()=>typeof t=="function"?t():t.value,d=()=>typeof n=="function"?n():n.value,f=()=>{i.forEach(h=>clearInterval(h)),i=[]},l=()=>{f(),u.value={},s.clear()},p=()=>{f(),u.value={},s.clear()},m=()=>{const h=e();if(!h||Object.keys(h).length===0){u.value={};return}if(!d()){u.value={...h},s=new Set(Object.keys(h));return}const b=Object.keys(h);b.forEach(y=>{u.value.hasOwnProperty(y)||(u.value[y]="")});const A=b.filter(y=>!s.has(y));if(A.length===0)return;let k=0;const g=()=>{var _;if(k>=A.length)return;const y=A[k],w=h[y];if(!w){s.add(y),k++,g();return}let v=((_=u.value[y])==null?void 0:_.length)||0;const E=setInterval(()=>{v<w.length?(u.value={...u.value,[y]:w.slice(0,v+1)},v++):(clearInterval(E),i=i.filter(F=>F!==E),s.add(y),k++,g())},o);i.push(E)};g()};return a.watch(()=>e(),()=>{c()&&m()},{immediate:!0}),a.watch(n,()=>{p(),c()&&m()}),a.watch(t,h=>{h?m():l()}),a.onMounted(()=>{c()&&m()}),{displayContent:u}}function Au(){const e=a.reactive({}),t=[],n=a.ref(null);let r=null;const o=30,u=h=>{const b=e[h];return!b||b.displayedLength>=b.rawValue.length},i=a.computed(()=>Object.keys(e).length===0?!1:Object.keys(e).every(h=>u(h))),s=()=>{for(const h of t)if(!u(h))return h;return null},c=()=>{if(!n.value&&(n.value=s(),!n.value)){d();return}const h=e[n.value];h&&(h.displayedLength<h.rawValue.length?(h.displayedLength++,h.displayedValue=h.rawValue.slice(0,h.displayedLength),h.isStreaming=!0):(h.isStreaming=!1,h.displayedValue=h.rawValue,n.value=s(),n.value||d()))},d=()=>{r&&(clearInterval(r),r=null)},f=()=>{r||(r=setInterval(c,o))},l=()=>{d(),Object.keys(e).forEach(h=>{delete e[h]}),t.length=0,n.value=null},p=(h,b)=>{if(e[h]){m(h,b);return}t.push(h),e[h]={rawValue:b??"",displayedLength:0,isStreaming:!1,displayedValue:""},r||(!n.value||n.value===h)&&f()},m=(h,b)=>{const A=e[h];if(!A){p(h,b);return}A.rawValue=b??"",!r&&!u(h)&&(!n.value||n.value===h)&&f()};return a.onUnmounted(()=>{d()}),{propertyStates:e,currentProperty:n,get isAnyStreaming(){return Object.values(e).some(h=>h.isStreaming)},isAllDone:i,startStreaming:f,reset:l,registerProperty:p,updatePropertyValue:m}}function br(){const e=a.ref(null),t=a.ref(0),n=a.ref(!1);let r=null;const o=()=>{e.value=Date.now(),n.value=!0,r=setInterval(()=>{e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))},1e3)},u=()=>{r&&(clearInterval(r),r=null),e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))};return{elapsedSeconds:t,hasEverStarted:n,start:o,stop:u,reset:()=>{u(),e.value=null,t.value=0,n.value=!1}}}function wc(e,t){const n=a.computed(()=>{var o;return Te({},(o=e.styles)==null?void 0:o.header)});function r(){return t.slots.header&&a.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:n.value},[t.slots.header()])}return{renderHeader:r}}function kc(e,t){var u;const n=a.ref(((u=e.content)==null?void 0:u.sender)??"发送人"),r=a.computed(()=>{var i;return Te({},(i=e.styles)==null?void 0:i.header)});function o(){return a.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:r.value},[n.value])}return{renderHeader:o}}const vc={file:{type:Object,required:!0},customStyle:{type:Object,default:()=>({})},onPreviewFile:{type:Function,default:void 0},onBatchPreviewFile:{type:Function,default:void 0}},Cc={attachments:{type:Array,default:()=>[]},enableBatchPreview:{type:Boolean,default:!1},enableFixedWidth:{type:Boolean,default:!1}};function Ec(){return{getFileIcon:r=>({pdf:"file-type-pdf",doc:"file-type-doc",docx:"file-type-doc",xls:"file-type-xls",xlsx:"file-type-xls",ppt:"file-type-ppt",pptx:"file-type-ppt",txt:"file-type-txt",zip:"file-type-zip",rar:"file-type-zip",image:"file-type-img",img:"file-type-img",md:"file-type-md",video:"file-type-any",audio:"file-type-any"})[r.toLowerCase()]||"file-type-any",formatFileName:r=>(r==null?void 0:r.replace(/\.[^.]+$/,""))??"",formatFileSize:r=>r<1024?r+" B":r<1048576?(r/1024).toFixed(1)+" KB":(r/1048576).toFixed(1)+" MB"}}const Xo=a.defineComponent({name:"FXBubbleAttachment",props:Cc,emits:["preview","batchPreview"],setup(e,t){const n=a.computed(()=>e.attachments??[]),r=a.computed(()=>{var m;return((m=n.value)==null?void 0:m.length)>0}),{getFileIcon:o,formatFileName:u,formatFileSize:i}=Ec(),s=a.computed(()=>({"f-chat-bubble-attachment-info":!0,"f-utils-fill":e.enableFixedWidth})),c=a.computed(()=>({"f-chat-bubble-attachment-name":!0,"name-tip":e.enableFixedWidth})),d=a.computed(()=>e.enableFixedWidth?{width:"200px"}:{flex:"0 0 calc(50% - 4px)"});function f(m,h){t.emit("preview",h)}async function l(m,h){m.stopPropagation(),m.preventDefault();const b=un(h);b&&await yu(b,h.name)}function p(m){t.emit("batchPreview",n.value)}return()=>r.value?a.createVNode("div",{class:"f-chat-bubble-attachments"},[n.value.map((m,h)=>{const b=un(m);return a.createVNode("div",{class:"f-chat-bubble-attachment-item",style:d.value,key:h},[a.createVNode("div",{class:"f-chat-bubble-attachment-main",role:"presentation",onClick:A=>f(A,m)},[a.createVNode("span",{class:`f-chat-bubble-attachment-icon ${o(m.type)}`},null),a.createVNode("div",{class:s.value},[a.createVNode("span",{class:c.value,title:m.name},[u(m.name)]),a.createVNode("span",{class:"f-chat-bubble-attachment-size"},[i((m==null?void 0:m.size)??0)])])]),b?a.createVNode("button",{type:"button",class:"f-chat-bubble-attachment-download-btn","aria-label":"下载附件",title:"下载",onClick:A=>l(A,m)},[a.createVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[a.createVNode("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","stroke-linecap":"round","stroke-linejoin":"round"},null),a.createVNode("polyline",{points:"7 10 12 15 17 10","stroke-linecap":"round","stroke-linejoin":"round"},null),a.createVNode("line",{x1:"12",y1:"15",x2:"12",y2:"3","stroke-linecap":"round","stroke-linejoin":"round"},null)])]):null])}),e.enableBatchPreview&&a.createVNode("div",{class:"f-chat-bubble-attachment-preview-btn",onClick:p},[a.createVNode("span",{class:"f-chat-bubble-attachment-preview-btn-text"},[a.createTextVNode("查看全部文件")]),a.createVNode("i",{class:"f-icon f-icon-sort-asc-sm",style:{transform:"rotate(90deg)"}},null)])]):null}}),_c=a.defineComponent({name:"FXBubbleFileContentFooter",props:vc,setup(e,t){const n=a.computed(()=>e.file?Array.isArray(e.file)?[...e.file]:[e.file]:[]);return Te({},e.customStyle),()=>a.createVNode(Xo,{attachments:n.value,onPreview:r=>{var o;return(o=e.onPreviewFile)==null?void 0:o.call(e,r)},onBatchPreview:r=>{var o;return(o=e.onBatchPreviewFile)==null?void 0:o.call(e,r)}},null)}}),Fc={pageUrl:{type:String,required:!0},customStyle:{type:Object,default:()=>({})},onNavigate:{type:Function,default:void 0}},Dc=a.defineComponent({name:"FXBubblePageContentFooter",props:Fc,setup(e,t){const n=a.ref(),r=a.computed(()=>{var i,s;const u={width:"100%",height:"100%",border:"none"};return(i=e.customStyle)!=null&&i.width&&(u.width=e.customStyle.width),(s=e.customStyle)!=null&&s.height&&(u.height=`${e.customStyle.height}px`),u}),o=u=>{var i,s;((i=u.data)==null?void 0:i.type)==="navigation"&&((s=u.data)!=null&&s.url)&&e.onNavigate&&e.onNavigate(u.data.url)};return a.onMounted(()=>{window.addEventListener("message",o)}),a.onUnmounted(()=>{window.removeEventListener("message",o)}),()=>a.createVNode("iframe",{ref:n,src:e.pageUrl,style:r.value,scrolling:"auto"},null)}});function Sc(){function e(o,u){const{fileContent:i,height:s,width:c}=o;return{file:i,customStyle:{width:c||"100%",height:s||"100%"},onPreviewFile:u==null?void 0:u.onPreviewFile,onBatchPreviewFile:u==null?void 0:u.onBatchPreviewFile}}function t(o,u){const{pageUrl:i,height:s,width:c}=o;return{pageUrl:i,customStyle:{width:c||"100%",height:s||"100%"},onNavigate:u==null?void 0:u.onNavigate}}function n(o,u){const i=e(o,u);return a.h(_c,i)}function r(o,u){const i=t(o,u);return a.h(Dc,i)}return{renderFileEmbeddedContent:n,renderPageEmbeddedContent:r}}const Tc={title:{type:String,default:""},subtitle:{type:String,default:""},text:{type:String,default:""},textFormat:{type:String,default:"plain"},placement:{type:String,default:"start"}};function Nc(e){return e.replace(/```\s*\n+\s*assistant-widget/g,"``` assistant-widget")}function yr(e){if(!e)return!1;const t=/^```\s*assistant-widget[\s\S]*?```$/,n=/^```\s*assistant-widget/;return t.test(e)||n.test(e)}function Oc(e){if(!e)return[];const t=/(```[\s]*assistant-widget[\s\S]*?```)/g,n=[];let r=0,o;for(;(o=t.exec(e))!==null;){if(o.index>r){const u=e.slice(r,o.index),i=/(```[\s]*assistant-widget)/,s=u.match(i);if(s){const c=u.indexOf(s[0]);c>0&&n.push(u.slice(0,c)),n.push(u.slice(c));const d=u.slice(c+s[0].length);d.trim().length>0&&n.push(d)}else n.push(u)}n.push(Nc(o[0])),r=o.index+o[0].length}if(r<e.length){const u=e.slice(r),i=/(```[\s]*assistant-widget)/,s=u.match(i);if(s){const c=u.indexOf(s[0]);c>0&&n.push(u.slice(0,c)),n.push(u.slice(c))}else n.push(u)}return n.filter(u=>u.trim().length>0)}function Zo(e){const t=e.replace("``` assistant-widget","").replace("```","").trim();try{return JSON.parse(t)}catch(n){return console.error("Failed to parse JSON:",n),null}}function Lc(e){var n;const t=Zo(e);return((n=t==null?void 0:t.renderer)==null?void 0:n.widgetImplOptions)||{}}const Yo={};function Ic(e){let t=Yo[e];if(t)return t;t=Yo[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);t.push(r)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}function rn(e,t){typeof t!="string"&&(t=rn.defaultChars);const n=Ic(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let o="";for(let u=0,i=r.length;u<i;u+=3){const s=parseInt(r.slice(u+1,u+3),16);if(s<128){o+=n[s];continue}if((s&224)===192&&u+3<i){const c=parseInt(r.slice(u+4,u+6),16);if((c&192)===128){const d=s<<6&1984|c&63;d<128?o+="��":o+=String.fromCharCode(d),u+=3;continue}}if((s&240)===224&&u+6<i){const c=parseInt(r.slice(u+4,u+6),16),d=parseInt(r.slice(u+7,u+9),16);if((c&192)===128&&(d&192)===128){const f=s<<12&61440|c<<6&4032|d&63;f<2048||f>=55296&&f<=57343?o+="���":o+=String.fromCharCode(f),u+=6;continue}}if((s&248)===240&&u+9<i){const c=parseInt(r.slice(u+4,u+6),16),d=parseInt(r.slice(u+7,u+9),16),f=parseInt(r.slice(u+10,u+12),16);if((c&192)===128&&(d&192)===128&&(f&192)===128){let l=s<<18&1835008|c<<12&258048|d<<6&4032|f&63;l<65536||l>1114111?o+="����":(l-=65536,o+=String.fromCharCode(55296+(l>>10),56320+(l&1023))),u+=9;continue}}o+="�"}return o})}rn.defaultChars=";/?:@&=+$,#",rn.componentChars="";const Ko={};function Rc(e){let t=Ko[e];if(t)return t;t=Ko[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Nn(e,t,n){typeof t!="string"&&(n=t,t=Nn.defaultChars),typeof n>"u"&&(n=!0);const r=Rc(t);let o="";for(let u=0,i=e.length;u<i;u++){const s=e.charCodeAt(u);if(n&&s===37&&u+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(u+1,u+3))){o+=e.slice(u,u+3),u+=2;continue}if(s<128){o+=r[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&u+1<i){const c=e.charCodeAt(u+1);if(c>=56320&&c<=57343){o+=encodeURIComponent(e[u]+e[u+1]),u++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[u])}return o}Nn.defaultChars=";/?:@&=+$,-_.!~*'()#",Nn.componentChars="-_.!~*'()";function xr(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function wu(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Mc=/^([a-z0-9.+-]+:)/i,Pc=/:[0-9]*$/,Vc=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Bc=["<",">",'"',"`"," ","\r",`
2
+ `," "],jc=["{","}","|","\\","^","`"].concat(Bc),zc=["'"].concat(jc),Qo=["%","/","?",";","#"].concat(zc),Jo=["/","?","#"],$c=255,ei=/^[+a-z0-9A-Z_-]{0,63}$/,Uc=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ti={javascript:!0,"javascript:":!0},ni={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ar(e,t){if(e&&e instanceof wu)return e;const n=new wu;return n.parse(e,t),n}wu.prototype.parse=function(e,t){let n,r,o,u=e;if(u=u.trim(),!t&&e.split("#").length===1){const d=Vc.exec(u);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}let i=Mc.exec(u);if(i&&(i=i[0],n=i.toLowerCase(),this.protocol=i,u=u.substr(i.length)),(t||i||u.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=u.substr(0,2)==="//",o&&!(i&&ti[i])&&(u=u.substr(2),this.slashes=!0)),!ti[i]&&(o||i&&!ni[i])){let d=-1;for(let h=0;h<Jo.length;h++)r=u.indexOf(Jo[h]),r!==-1&&(d===-1||r<d)&&(d=r);let f,l;d===-1?l=u.lastIndexOf("@"):l=u.lastIndexOf("@",d),l!==-1&&(f=u.slice(0,l),u=u.slice(l+1),this.auth=f),d=-1;for(let h=0;h<Qo.length;h++)r=u.indexOf(Qo[h]),r!==-1&&(d===-1||r<d)&&(d=r);d===-1&&(d=u.length),u[d-1]===":"&&d--;const p=u.slice(0,d);u=u.slice(d),this.parseHost(p),this.hostname=this.hostname||"";const m=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!m){const h=this.hostname.split(/\./);for(let b=0,A=h.length;b<A;b++){const k=h[b];if(k&&!k.match(ei)){let g="";for(let y=0,w=k.length;y<w;y++)k.charCodeAt(y)>127?g+="x":g+=k[y];if(!g.match(ei)){const y=h.slice(0,b),w=h.slice(b+1),v=k.match(Uc);v&&(y.push(v[1]),w.unshift(v[2])),w.length&&(u=w.join(".")+u),this.hostname=y.join(".");break}}}}this.hostname.length>$c&&(this.hostname=""),m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=u.indexOf("#");s!==-1&&(this.hash=u.substr(s),u=u.slice(0,s));const c=u.indexOf("?");return c!==-1&&(this.search=u.substr(c),u=u.slice(0,c)),u&&(this.pathname=u),ni[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},wu.prototype.parseHost=function(e){let t=Pc.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const Hc=Object.freeze(Object.defineProperty({__proto__:null,decode:rn,encode:Nn,format:xr,parse:Ar},Symbol.toStringTag,{value:"Module"})),ui=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ri=/[\0-\x1F\x7F-\x9F]/,Gc=/[\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]/,wr=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,oi=/[\$\+<->\^`\|~\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]/,ii=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Wc=Object.freeze(Object.defineProperty({__proto__:null,Any:ui,Cc:ri,Cf:Gc,P:wr,S:oi,Z:ii},Symbol.toStringTag,{value:"Module"})),qc=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Xc=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var kr;const Zc=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Yc=(kr=String.fromCodePoint)!==null&&kr!==void 0?kr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Kc(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Zc.get(e))!==null&&t!==void 0?t:e}var ke;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(ke||(ke={}));const Qc=32;var Nt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Nt||(Nt={}));function vr(e){return e>=ke.ZERO&&e<=ke.NINE}function Jc(e){return e>=ke.UPPER_A&&e<=ke.UPPER_F||e>=ke.LOWER_A&&e<=ke.LOWER_F}function el(e){return e>=ke.UPPER_A&&e<=ke.UPPER_Z||e>=ke.LOWER_A&&e<=ke.LOWER_Z||vr(e)}function tl(e){return e===ke.EQUALS||el(e)}var ve;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(ve||(ve={}));var Ot;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ot||(Ot={}));class nl{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=ve.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ot.Strict}startEntity(t){this.decodeMode=t,this.state=ve.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case ve.EntityStart:return t.charCodeAt(n)===ke.NUM?(this.state=ve.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=ve.NamedEntity,this.stateNamedEntity(t,n));case ve.NumericStart:return this.stateNumericStart(t,n);case ve.NumericDecimal:return this.stateNumericDecimal(t,n);case ve.NumericHex:return this.stateNumericHex(t,n);case ve.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Qc)===ke.LOWER_X?(this.state=ve.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=ve.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,o){if(n!==r){const u=r-n;this.result=this.result*Math.pow(o,u)+parseInt(t.substr(n,u),o),this.consumed+=u}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(vr(o)||Jc(o))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(vr(o))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===ke.SEMI)this.consumed+=1;else if(this.decodeMode===Ot.Strict)return 0;return this.emitCodePoint(Kc(this.result),this.consumed),this.errors&&(t!==ke.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let o=r[this.treeIndex],u=(o&Nt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const i=t.charCodeAt(n);if(this.treeIndex=ul(r,o,this.treeIndex+Math.max(1,u),i),this.treeIndex<0)return this.result===0||this.decodeMode===Ot.Attribute&&(u===0||tl(i))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],u=(o&Nt.VALUE_LENGTH)>>14,u!==0){if(i===ke.SEMI)return this.emitNamedEntityData(this.treeIndex,u,this.consumed+this.excess);this.decodeMode!==Ot.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,o=(r[n]&Nt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~Nt.VALUE_LENGTH:o[t+1],r),n===3&&this.emitCodePoint(o[t+2],r),r}end(){var t;switch(this.state){case ve.NamedEntity:return this.result!==0&&(this.decodeMode!==Ot.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ve.NumericDecimal:return this.emitNumericEntity(0,2);case ve.NumericHex:return this.emitNumericEntity(0,3);case ve.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ve.EntityStart:return 0}}}function ai(e){let t="";const n=new nl(e,r=>t+=Yc(r));return function(o,u){let i=0,s=0;for(;(s=o.indexOf("&",s))>=0;){t+=o.slice(i,s),n.startEntity(u);const d=n.write(o,s+1);if(d<0){i=s+n.end();break}i=s+d,s=d===0?i+1:i}const c=t+o.slice(i);return t="",c}}function ul(e,t,n,r){const o=(t&Nt.BRANCH_LENGTH)>>7,u=t&Nt.JUMP_TABLE;if(o===0)return u!==0&&r===u?n:-1;if(u){const c=r-u;return c<0||c>=o?-1:e[n+c]-1}let i=n,s=i+o-1;for(;i<=s;){const c=i+s>>>1,d=e[c];if(d<r)i=c+1;else if(d>r)s=c-1;else return e[c+o]}return-1}const rl=ai(qc);ai(Xc);function si(e,t=Ot.Legacy){return rl(e,t)}function ol(e){return Object.prototype.toString.call(e)}function Cr(e){return ol(e)==="[object String]"}const il=Object.prototype.hasOwnProperty;function al(e,t){return il.call(e,t)}function ku(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){e[r]=n[r]})}}),e}function ci(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Er(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function vu(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const li=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,sl=/&([a-z#][a-z0-9]{1,31});/gi,cl=new RegExp(li.source+"|"+sl.source,"gi"),ll=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function dl(e,t){if(t.charCodeAt(0)===35&&ll.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Er(r)?vu(r):e}const n=si(e);return n!==e?n:e}function fl(e){return e.indexOf("\\")<0?e:e.replace(li,"$1")}function on(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(cl,function(t,n,r){return n||dl(t,r)})}const hl=/[&<>"]/,pl=/[&<>"]/g,ml={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function gl(e){return ml[e]}function Lt(e){return hl.test(e)?e.replace(pl,gl):e}const bl=/[.?*+^$[\]\\(){}|-]/g;function yl(e){return e.replace(bl,"\\$&")}function se(e){switch(e){case 9:case 32:return!0}return!1}function On(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Ln(e){return wr.test(e)||oi.test(e)}function In(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Cu(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const xl=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:ci,assign:ku,escapeHtml:Lt,escapeRE:yl,fromCodePoint:vu,has:al,isMdAsciiPunct:In,isPunctChar:Ln,isSpace:se,isString:Cr,isValidEntityCode:Er,isWhiteSpace:On,lib:{mdurl:Hc,ucmicro:Wc},normalizeReference:Cu,unescapeAll:on,unescapeMd:fl},Symbol.toStringTag,{value:"Module"}));function Al(e,t,n){let r,o,u,i;const s=e.posMax,c=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(u=e.src.charCodeAt(e.pos),u===93&&(r--,r===0)){o=!0;break}if(i=e.pos,e.md.inline.skipToken(e),u===91){if(i===e.pos-1)r++;else if(n)return e.pos=c,-1}}let d=-1;return o&&(d=e.pos),e.pos=c,d}function wl(e,t,n){let r,o=t;const u={ok:!1,pos:0,str:""};if(e.charCodeAt(o)===60){for(o++;o<n;){if(r=e.charCodeAt(o),r===10||r===60)return u;if(r===62)return u.pos=o+1,u.str=on(e.slice(t+1,o)),u.ok=!0,u;if(r===92&&o+1<n){o+=2;continue}o++}return u}let i=0;for(;o<n&&(r=e.charCodeAt(o),!(r===32||r<32||r===127));){if(r===92&&o+1<n){if(e.charCodeAt(o+1)===32)break;o+=2;continue}if(r===40&&(i++,i>32))return u;if(r===41){if(i===0)break;i--}o++}return t===o||i!==0||(u.str=on(e.slice(t,o)),u.pos=o,u.ok=!0),u}function kl(e,t,n,r){let o,u=t;const i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)i.str=r.str,i.marker=r.marker;else{if(u>=n)return i;let s=e.charCodeAt(u);if(s!==34&&s!==39&&s!==40)return i;t++,u++,s===40&&(s=41),i.marker=s}for(;u<n;){if(o=e.charCodeAt(u),o===i.marker)return i.pos=u+1,i.str+=on(e.slice(t,u)),i.ok=!0,i;if(o===40&&i.marker===41)return i;o===92&&u+1<n&&u++,u++}return i.can_continue=!0,i.str+=on(e.slice(t,u)),i}const vl=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:wl,parseLinkLabel:Al,parseLinkTitle:kl},Symbol.toStringTag,{value:"Module"})),ft={};ft.code_inline=function(e,t,n,r,o){const u=e[t];return"<code"+o.renderAttrs(u)+">"+Lt(u.content)+"</code>"},ft.code_block=function(e,t,n,r,o){const u=e[t];return"<pre"+o.renderAttrs(u)+"><code>"+Lt(e[t].content)+`</code></pre>
3
+ `},ft.fence=function(e,t,n,r,o){const u=e[t],i=u.info?on(u.info).trim():"";let s="",c="";if(i){const f=i.split(/(\s+)/g);s=f[0],c=f.slice(2).join("")}let d;if(n.highlight?d=n.highlight(u.content,s,c)||Lt(u.content):d=Lt(u.content),d.indexOf("<pre")===0)return d+`
4
+ `;if(i){const f=u.attrIndex("class"),l=u.attrs?u.attrs.slice():[];f<0?l.push(["class",n.langPrefix+s]):(l[f]=l[f].slice(),l[f][1]+=" "+n.langPrefix+s);const p={attrs:l};return`<pre><code${o.renderAttrs(p)}>${d}</code></pre>
5
+ `}return`<pre><code${o.renderAttrs(u)}>${d}</code></pre>
6
+ `},ft.image=function(e,t,n,r,o){const u=e[t];return u.attrs[u.attrIndex("alt")][1]=o.renderInlineAsText(u.children,n,r),o.renderToken(e,t,n)},ft.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
7
+ `:`<br>
8
+ `},ft.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
9
+ `:`<br>
10
+ `:`
11
+ `},ft.text=function(e,t){return Lt(e[t].content)},ft.html_block=function(e,t){return e[t].content},ft.html_inline=function(e,t){return e[t].content};function an(){this.rules=ku({},ft)}an.prototype.renderAttrs=function(t){let n,r,o;if(!t.attrs)return"";for(o="",n=0,r=t.attrs.length;n<r;n++)o+=" "+Lt(t.attrs[n][0])+'="'+Lt(t.attrs[n][1])+'"';return o},an.prototype.renderToken=function(t,n,r){const o=t[n];let u="";if(o.hidden)return"";o.block&&o.nesting!==-1&&n&&t[n-1].hidden&&(u+=`
12
+ `),u+=(o.nesting===-1?"</":"<")+o.tag,u+=this.renderAttrs(o),o.nesting===0&&r.xhtmlOut&&(u+=" /");let i=!1;if(o.block&&(i=!0,o.nesting===1&&n+1<t.length)){const s=t[n+1];(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===o.tag)&&(i=!1)}return u+=i?`>
13
+ `:">",u},an.prototype.renderInline=function(e,t,n){let r="";const o=this.rules;for(let u=0,i=e.length;u<i;u++){const s=e[u].type;typeof o[s]<"u"?r+=o[s](e,u,t,n,this):r+=this.renderToken(e,u,t)}return r},an.prototype.renderInlineAsText=function(e,t,n){let r="";for(let o=0,u=e.length;o<u;o++)switch(e[o].type){case"text":r+=e[o].content;break;case"image":r+=this.renderInlineAsText(e[o].children,t,n);break;case"html_inline":case"html_block":r+=e[o].content;break;case"softbreak":case"hardbreak":r+=`
14
+ `;break}return r},an.prototype.render=function(e,t,n){let r="";const o=this.rules;for(let u=0,i=e.length;u<i;u++){const s=e[u].type;s==="inline"?r+=this.renderInline(e[u].children,t,n):typeof o[s]<"u"?r+=o[s](e,u,t,n,this):r+=this.renderToken(e,u,t,n)}return r};function Be(){this.__rules__=[],this.__cache__=null}Be.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},Be.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||e.__cache__[n].push(r.fn))})})},Be.prototype.at=function(e,t,n){const r=this.__find__(e),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null},Be.prototype.before=function(e,t,n,r){const o=this.__find__(e),u=r||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:u.alt||[]}),this.__cache__=null},Be.prototype.after=function(e,t,n,r){const o=this.__find__(e),u=r||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:u.alt||[]}),this.__cache__=null},Be.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},Be.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const o=this.__find__(r);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!0,n.push(r)},this),this.__cache__=null,n},Be.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)},Be.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const o=this.__find__(r);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!1,n.push(r)},this),this.__cache__=null,n},Be.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function et(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}et.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let r=0,o=n.length;r<o;r++)if(n[r][0]===t)return r;return-1},et.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},et.prototype.attrSet=function(t,n){const r=this.attrIndex(t),o=[t,n];r<0?this.attrPush(o):this.attrs[r]=o},et.prototype.attrGet=function(t){const n=this.attrIndex(t);let r=null;return n>=0&&(r=this.attrs[n][1]),r},et.prototype.attrJoin=function(t,n){const r=this.attrIndex(t);r<0?this.attrPush([t,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};function di(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}di.prototype.Token=et;const Cl=/\r\n?|\n/g,El=/\0/g;function _l(e){let t;t=e.src.replace(Cl,`
15
+ `),t=t.replace(El,"�"),e.src=t}function Fl(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function Dl(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const o=t[n];o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)}}function Sl(e){return/^<a[>\s]/i.test(e)}function Tl(e){return/^<\/a\s*>/i.test(e)}function Nl(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let o=t[n].children,u=0;for(let i=o.length-1;i>=0;i--){const s=o[i];if(s.type==="link_close"){for(i--;o[i].level!==s.level&&o[i].type!=="link_open";)i--;continue}if(s.type==="html_inline"&&(Sl(s.content)&&u>0&&u--,Tl(s.content)&&u++),!(u>0)&&s.type==="text"&&e.md.linkify.test(s.content)){const c=s.content;let d=e.md.linkify.match(c);const f=[];let l=s.level,p=0;d.length>0&&d[0].index===0&&i>0&&o[i-1].type==="text_special"&&(d=d.slice(1));for(let m=0;m<d.length;m++){const h=d[m].url,b=e.md.normalizeLink(h);if(!e.md.validateLink(b))continue;let A=d[m].text;d[m].schema?d[m].schema==="mailto:"&&!/^mailto:/i.test(A)?A=e.md.normalizeLinkText("mailto:"+A).replace(/^mailto:/,""):A=e.md.normalizeLinkText(A):A=e.md.normalizeLinkText("http://"+A).replace(/^http:\/\//,"");const k=d[m].index;if(k>p){const v=new e.Token("text","",0);v.content=c.slice(p,k),v.level=l,f.push(v)}const g=new e.Token("link_open","a",1);g.attrs=[["href",b]],g.level=l++,g.markup="linkify",g.info="auto",f.push(g);const y=new e.Token("text","",0);y.content=A,y.level=l,f.push(y);const w=new e.Token("link_close","a",-1);w.level=--l,w.markup="linkify",w.info="auto",f.push(w),p=d[m].lastIndex}if(p<c.length){const m=new e.Token("text","",0);m.content=c.slice(p),m.level=l,f.push(m)}t[n].children=o=ci(o,i,f)}}}}const fi=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Ol=/\((c|tm|r)\)/i,Ll=/\((c|tm|r)\)/ig,Il={c:"©",r:"®",tm:"™"};function Rl(e,t){return Il[t.toLowerCase()]}function Ml(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&(r.content=r.content.replace(Ll,Rl)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function Pl(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&fi.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function Vl(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Ol.test(e.tokens[t].content)&&Ml(e.tokens[t].children),fi.test(e.tokens[t].content)&&Pl(e.tokens[t].children))}const Bl=/['"]/,hi=/['"]/g,pi="’";function Eu(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function jl(e,t){let n;const r=[];for(let o=0;o<e.length;o++){const u=e[o],i=e[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=i);n--);if(r.length=n+1,u.type!=="text")continue;let s=u.content,c=0,d=s.length;e:for(;c<d;){hi.lastIndex=c;const f=hi.exec(s);if(!f)break;let l=!0,p=!0;c=f.index+1;const m=f[0]==="'";let h=32;if(f.index-1>=0)h=s.charCodeAt(f.index-1);else for(n=o-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){h=e[n].content.charCodeAt(e[n].content.length-1);break}let b=32;if(c<d)b=s.charCodeAt(c);else for(n=o+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){b=e[n].content.charCodeAt(0);break}const A=In(h)||Ln(String.fromCharCode(h)),k=In(b)||Ln(String.fromCharCode(b)),g=On(h),y=On(b);if(y?l=!1:k&&(g||A||(l=!1)),g?p=!1:A&&(y||k||(p=!1)),b===34&&f[0]==='"'&&h>=48&&h<=57&&(p=l=!1),l&&p&&(l=A,p=k),!l&&!p){m&&(u.content=Eu(u.content,f.index,pi));continue}if(p)for(n=r.length-1;n>=0;n--){let w=r[n];if(r[n].level<i)break;if(w.single===m&&r[n].level===i){w=r[n];let v,E;m?(v=t.md.options.quotes[2],E=t.md.options.quotes[3]):(v=t.md.options.quotes[0],E=t.md.options.quotes[1]),u.content=Eu(u.content,f.index,E),e[w.token].content=Eu(e[w.token].content,w.pos,v),c+=E.length-1,w.token===o&&(c+=v.length-1),s=u.content,d=s.length,r.length=n;continue e}}l?r.push({token:o,pos:f.index,single:m,level:i}):p&&m&&(u.content=Eu(u.content,f.index,pi))}}}function zl(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!Bl.test(e.tokens[t].content)||jl(e.tokens[t].children,e)}function $l(e){let t,n;const r=e.tokens,o=r.length;for(let u=0;u<o;u++){if(r[u].type!=="inline")continue;const i=r[u].children,s=i.length;for(t=0;t<s;t++)i[t].type==="text_special"&&(i[t].type="text");for(t=n=0;t<s;t++)i[t].type==="text"&&t+1<s&&i[t+1].type==="text"?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}}const _r=[["normalize",_l],["block",Fl],["inline",Dl],["linkify",Nl],["replacements",Vl],["smartquotes",zl],["text_join",$l]];function Fr(){this.ruler=new Be;for(let e=0;e<_r.length;e++)this.ruler.push(_r[e][0],_r[e][1])}Fr.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},Fr.prototype.State=di;function ht(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const o=this.src;for(let u=0,i=0,s=0,c=0,d=o.length,f=!1;i<d;i++){const l=o.charCodeAt(i);if(!f)if(se(l)){s++,l===9?c+=4-c%4:c++;continue}else f=!0;(l===10||i===d-1)&&(l!==10&&i++,this.bMarks.push(u),this.eMarks.push(i),this.tShift.push(s),this.sCount.push(c),this.bsCount.push(0),f=!1,s=0,c=0,u=i+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}ht.prototype.push=function(e,t,n){const r=new et(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},ht.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},ht.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},ht.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!se(r))break}return t},ht.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!se(this.src.charCodeAt(--t)))return t+1;return t},ht.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t},ht.prototype.skipCharsBack=function(t,n,r){if(t<=r)return t;for(;t>r;)if(n!==this.src.charCodeAt(--t))return t+1;return t},ht.prototype.getLines=function(t,n,r,o){if(t>=n)return"";const u=new Array(n-t);for(let i=0,s=t;s<n;s++,i++){let c=0;const d=this.bMarks[s];let f=d,l;for(s+1<n||o?l=this.eMarks[s]+1:l=this.eMarks[s];f<l&&c<r;){const p=this.src.charCodeAt(f);if(se(p))p===9?c+=4-(c+this.bsCount[s])%4:c++;else if(f-d<this.tShift[s])c++;else break;f++}c>r?u[i]=new Array(c-r+1).join(" ")+this.src.slice(f,l):u[i]=this.src.slice(f,l)}return u.join("")},ht.prototype.Token=et;const Ul=65536;function Dr(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function mi(e){const t=[],n=e.length;let r=0,o=e.charCodeAt(r),u=!1,i=0,s="";for(;r<n;)o===124&&(u?(s+=e.substring(i,r-1),i=r):(t.push(s+e.substring(i,r)),s="",i=r+1)),u=o===92,r++,o=e.charCodeAt(r);return t.push(s+e.substring(i)),t}function Hl(e,t,n,r){if(t+2>n)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent||e.sCount[o]-e.blkIndent>=4)return!1;let u=e.bMarks[o]+e.tShift[o];if(u>=e.eMarks[o])return!1;const i=e.src.charCodeAt(u++);if(i!==124&&i!==45&&i!==58||u>=e.eMarks[o])return!1;const s=e.src.charCodeAt(u++);if(s!==124&&s!==45&&s!==58&&!se(s)||i===45&&se(s))return!1;for(;u<e.eMarks[o];){const w=e.src.charCodeAt(u);if(w!==124&&w!==45&&w!==58&&!se(w))return!1;u++}let c=Dr(e,t+1),d=c.split("|");const f=[];for(let w=0;w<d.length;w++){const v=d[w].trim();if(!v){if(w===0||w===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(v))return!1;v.charCodeAt(v.length-1)===58?f.push(v.charCodeAt(0)===58?"center":"right"):v.charCodeAt(0)===58?f.push("left"):f.push("")}if(c=Dr(e,t).trim(),c.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;d=mi(c),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop();const l=d.length;if(l===0||l!==f.length)return!1;if(r)return!0;const p=e.parentType;e.parentType="table";const m=e.md.block.ruler.getRules("blockquote"),h=e.push("table_open","table",1),b=[t,0];h.map=b;const A=e.push("thead_open","thead",1);A.map=[t,t+1];const k=e.push("tr_open","tr",1);k.map=[t,t+1];for(let w=0;w<d.length;w++){const v=e.push("th_open","th",1);f[w]&&(v.attrs=[["style","text-align:"+f[w]]]);const E=e.push("inline","",0);E.content=d[w].trim(),E.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let g,y=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let w=!1;for(let E=0,_=m.length;E<_;E++)if(m[E](e,o,n,!0)){w=!0;break}if(w||(c=Dr(e,o).trim(),!c)||e.sCount[o]-e.blkIndent>=4||(d=mi(c),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),y+=l-d.length,y>Ul))break;if(o===t+2){const E=e.push("tbody_open","tbody",1);E.map=g=[t+2,0]}const v=e.push("tr_open","tr",1);v.map=[o,o+1];for(let E=0;E<l;E++){const _=e.push("td_open","td",1);f[E]&&(_.attrs=[["style","text-align:"+f[E]]]);const F=e.push("inline","",0);F.content=d[E]?d[E].trim():"",F.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return g&&(e.push("tbody_close","tbody",-1),g[1]=o),e.push("table_close","table",-1),b[1]=o,e.parentType=p,e.line=o,!0}function Gl(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,o=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,o=r;continue}break}e.line=o;const u=e.push("code_block","code",0);return u.content=e.getLines(t,o,4+e.blkIndent,!1)+`
16
+ `,u.map=[t,e.line],!0}function Wl(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>u)return!1;const i=e.src.charCodeAt(o);if(i!==126&&i!==96)return!1;let s=o;o=e.skipChars(o,i);let c=o-s;if(c<3)return!1;const d=e.src.slice(s,o),f=e.src.slice(o,u);if(i===96&&f.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;let l=t,p=!1;for(;l++,!(l>=n||(o=s=e.bMarks[l]+e.tShift[l],u=e.eMarks[l],o<u&&e.sCount[l]<e.blkIndent));)if(e.src.charCodeAt(o)===i&&!(e.sCount[l]-e.blkIndent>=4)&&(o=e.skipChars(o,i),!(o-s<c)&&(o=e.skipSpaces(o),!(o<u)))){p=!0;break}c=e.sCount[t],e.line=l+(p?1:0);const m=e.push("fence","code",0);return m.info=f,m.content=e.getLines(t+1,l,c,!0),m.markup=d,m.map=[t,e.line],!0}function ql(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];const i=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==62)return!1;if(r)return!0;const s=[],c=[],d=[],f=[],l=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let m=!1,h;for(h=t;h<n;h++){const y=e.sCount[h]<e.blkIndent;if(o=e.bMarks[h]+e.tShift[h],u=e.eMarks[h],o>=u)break;if(e.src.charCodeAt(o++)===62&&!y){let v=e.sCount[h]+1,E,_;e.src.charCodeAt(o)===32?(o++,v++,_=!1,E=!0):e.src.charCodeAt(o)===9?(E=!0,(e.bsCount[h]+v)%4===3?(o++,v++,_=!1):_=!0):E=!1;let F=v;for(s.push(e.bMarks[h]),e.bMarks[h]=o;o<u;){const q=e.src.charCodeAt(o);if(se(q))q===9?F+=4-(F+e.bsCount[h]+(_?1:0))%4:F++;else break;o++}m=o>=u,c.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(E?1:0),d.push(e.sCount[h]),e.sCount[h]=F-v,f.push(e.tShift[h]),e.tShift[h]=o-e.bMarks[h];continue}if(m)break;let w=!1;for(let v=0,E=l.length;v<E;v++)if(l[v](e,h,n,!0)){w=!0;break}if(w){e.lineMax=h,e.blkIndent!==0&&(s.push(e.bMarks[h]),c.push(e.bsCount[h]),f.push(e.tShift[h]),d.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}s.push(e.bMarks[h]),c.push(e.bsCount[h]),f.push(e.tShift[h]),d.push(e.sCount[h]),e.sCount[h]=-1}const b=e.blkIndent;e.blkIndent=0;const A=e.push("blockquote_open","blockquote",1);A.markup=">";const k=[t,0];A.map=k,e.md.block.tokenize(e,t,h);const g=e.push("blockquote_close","blockquote",-1);g.markup=">",e.lineMax=i,e.parentType=p,k[1]=e.line;for(let y=0;y<f.length;y++)e.bMarks[y+t]=s[y],e.tShift[y+t]=f[y],e.sCount[y+t]=d[y],e.bsCount[y+t]=c[y];return e.blkIndent=b,!0}function Xl(e,t,n,r){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let u=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(u++);if(i!==42&&i!==45&&i!==95)return!1;let s=1;for(;u<o;){const d=e.src.charCodeAt(u++);if(d!==i&&!se(d))return!1;d===i&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;const c=e.push("hr","hr",0);return c.map=[t,e.line],c.markup=Array(s+1).join(String.fromCharCode(i)),!0}function gi(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(r++);if(o!==42&&o!==45&&o!==43)return-1;if(r<n){const u=e.src.charCodeAt(r);if(!se(u))return-1}return r}function bi(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let o=n;if(o+1>=r)return-1;let u=e.src.charCodeAt(o++);if(u<48||u>57)return-1;for(;;){if(o>=r)return-1;if(u=e.src.charCodeAt(o++),u>=48&&u<=57){if(o-n>=10)return-1;continue}if(u===41||u===46)break;return-1}return o<r&&(u=e.src.charCodeAt(o),!se(u))?-1:o}function Zl(e,t){const n=e.level+2;for(let r=t+2,o=e.tokens.length-2;r<o;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function Yl(e,t,n,r){let o,u,i,s,c=t,d=!0;if(e.sCount[c]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]<e.blkIndent)return!1;let f=!1;r&&e.parentType==="paragraph"&&e.sCount[c]>=e.blkIndent&&(f=!0);let l,p,m;if((m=bi(e,c))>=0){if(l=!0,i=e.bMarks[c]+e.tShift[c],p=Number(e.src.slice(i,m-1)),f&&p!==1)return!1}else if((m=gi(e,c))>=0)l=!1;else return!1;if(f&&e.skipSpaces(m)>=e.eMarks[c])return!1;if(r)return!0;const h=e.src.charCodeAt(m-1),b=e.tokens.length;l?(s=e.push("ordered_list_open","ol",1),p!==1&&(s.attrs=[["start",p]])):s=e.push("bullet_list_open","ul",1);const A=[c,0];s.map=A,s.markup=String.fromCharCode(h);let k=!1;const g=e.md.block.ruler.getRules("list"),y=e.parentType;for(e.parentType="list";c<n;){u=m,o=e.eMarks[c];const w=e.sCount[c]+m-(e.bMarks[c]+e.tShift[c]);let v=w;for(;u<o;){const M=e.src.charCodeAt(u);if(M===9)v+=4-(v+e.bsCount[c])%4;else if(M===32)v++;else break;u++}const E=u;let _;E>=o?_=1:_=v-w,_>4&&(_=1);const F=w+_;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(h);const q=[c,0];s.map=q,l&&(s.info=e.src.slice(i,m-1));const P=e.tight,B=e.tShift[c],j=e.sCount[c],D=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=F,e.tight=!0,e.tShift[c]=E-e.bMarks[c],e.sCount[c]=v,E>=o&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,c,n,!0),(!e.tight||k)&&(d=!1),k=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=D,e.tShift[c]=B,e.sCount[c]=j,e.tight=P,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(h),c=e.line,q[1]=c,c>=n||e.sCount[c]<e.blkIndent||e.sCount[c]-e.blkIndent>=4)break;let R=!1;for(let M=0,S=g.length;M<S;M++)if(g[M](e,c,n,!0)){R=!0;break}if(R)break;if(l){if(m=bi(e,c),m<0)break;i=e.bMarks[c]+e.tShift[c]}else if(m=gi(e,c),m<0)break;if(h!==e.src.charCodeAt(m-1))break}return l?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(h),A[1]=c,e.line=c,e.parentType=y,d&&Zl(e,b),!0}function Kl(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t],i=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==91)return!1;function s(g){const y=e.lineMax;if(g>=y||e.isEmpty(g))return null;let w=!1;if(e.sCount[g]-e.blkIndent>3&&(w=!0),e.sCount[g]<0&&(w=!0),!w){const _=e.md.block.ruler.getRules("reference"),F=e.parentType;e.parentType="reference";let q=!1;for(let P=0,B=_.length;P<B;P++)if(_[P](e,g,y,!0)){q=!0;break}if(e.parentType=F,q)return null}const v=e.bMarks[g]+e.tShift[g],E=e.eMarks[g];return e.src.slice(v,E+1)}let c=e.src.slice(o,u+1);u=c.length;let d=-1;for(o=1;o<u;o++){const g=c.charCodeAt(o);if(g===91)return!1;if(g===93){d=o;break}else if(g===10){const y=s(i);y!==null&&(c+=y,u=c.length,i++)}else if(g===92&&(o++,o<u&&c.charCodeAt(o)===10)){const y=s(i);y!==null&&(c+=y,u=c.length,i++)}}if(d<0||c.charCodeAt(d+1)!==58)return!1;for(o=d+2;o<u;o++){const g=c.charCodeAt(o);if(g===10){const y=s(i);y!==null&&(c+=y,u=c.length,i++)}else if(!se(g))break}const f=e.md.helpers.parseLinkDestination(c,o,u);if(!f.ok)return!1;const l=e.md.normalizeLink(f.str);if(!e.md.validateLink(l))return!1;o=f.pos;const p=o,m=i,h=o;for(;o<u;o++){const g=c.charCodeAt(o);if(g===10){const y=s(i);y!==null&&(c+=y,u=c.length,i++)}else if(!se(g))break}let b=e.md.helpers.parseLinkTitle(c,o,u);for(;b.can_continue;){const g=s(i);if(g===null)break;c+=g,o=u,u=c.length,i++,b=e.md.helpers.parseLinkTitle(c,o,u,b)}let A;for(o<u&&h!==o&&b.ok?(A=b.str,o=b.pos):(A="",o=p,i=m);o<u;){const g=c.charCodeAt(o);if(!se(g))break;o++}if(o<u&&c.charCodeAt(o)!==10&&A)for(A="",o=p,i=m;o<u;){const g=c.charCodeAt(o);if(!se(g))break;o++}if(o<u&&c.charCodeAt(o)!==10)return!1;const k=Cu(c.slice(1,d));return k?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[k]>"u"&&(e.env.references[k]={title:A,href:l}),e.line=i),!0):!1}const Ql=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Jl="[a-zA-Z_:][a-zA-Z0-9:._-]*",e0="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",yi="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+Jl+"(?:\\s*=\\s*"+e0+")?)")+"*\\s*\\/?>",xi="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",t0="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",n0="<[?][\\s\\S]*?[?]>",u0="<![A-Za-z][^>]*>",r0="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",o0=new RegExp("^(?:"+yi+"|"+xi+"|"+t0+"|"+n0+"|"+u0+"|"+r0+")"),i0=new RegExp("^(?:"+yi+"|"+xi+")"),sn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Ql.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(i0.source+"\\s*$"),/^$/,!1]];function a0(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let i=e.src.slice(o,u),s=0;for(;s<sn.length&&!sn[s][0].test(i);s++);if(s===sn.length)return!1;if(r)return sn[s][2];let c=t+1;if(!sn[s][1].test(i)){for(;c<n&&!(e.sCount[c]<e.blkIndent);c++)if(o=e.bMarks[c]+e.tShift[c],u=e.eMarks[c],i=e.src.slice(o,u),sn[s][1].test(i)){i.length!==0&&c++;break}}e.line=c;const d=e.push("html_block","",0);return d.map=[t,c],d.content=e.getLines(t,c,e.blkIndent,!0),!0}function s0(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.src.charCodeAt(o);if(i!==35||o>=u)return!1;let s=1;for(i=e.src.charCodeAt(++o);i===35&&o<u&&s<=6;)s++,i=e.src.charCodeAt(++o);if(s>6||o<u&&!se(i))return!1;if(r)return!0;u=e.skipSpacesBack(u,o);const c=e.skipCharsBack(u,35,o);c>o&&se(e.src.charCodeAt(c-1))&&(u=c),e.line=t+1;const d=e.push("heading_open","h"+String(s),1);d.markup="########".slice(0,s),d.map=[t,e.line];const f=e.push("inline","",0);f.content=e.src.slice(o,u).trim(),f.map=[t,e.line],f.children=[];const l=e.push("heading_close","h"+String(s),-1);return l.markup="########".slice(0,s),!0}function c0(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let u=0,i,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let m=e.bMarks[s]+e.tShift[s];const h=e.eMarks[s];if(m<h&&(i=e.src.charCodeAt(m),(i===45||i===61)&&(m=e.skipChars(m,i),m=e.skipSpaces(m),m>=h))){u=i===61?1:2;break}}if(e.sCount[s]<0)continue;let p=!1;for(let m=0,h=r.length;m<h;m++)if(r[m](e,s,n,!0)){p=!0;break}if(p)break}if(!u)return!1;const c=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const d=e.push("heading_open","h"+String(u),1);d.markup=String.fromCharCode(i),d.map=[t,e.line];const f=e.push("inline","",0);f.content=c,f.map=[t,e.line-1],f.children=[];const l=e.push("heading_close","h"+String(u),-1);return l.markup=String.fromCharCode(i),e.parentType=o,!0}function l0(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),o=e.parentType;let u=t+1;for(e.parentType="paragraph";u<n&&!e.isEmpty(u);u++){if(e.sCount[u]-e.blkIndent>3||e.sCount[u]<0)continue;let d=!1;for(let f=0,l=r.length;f<l;f++)if(r[f](e,u,n,!0)){d=!0;break}if(d)break}const i=e.getLines(t,u,e.blkIndent,!1).trim();e.line=u;const s=e.push("paragraph_open","p",1);s.map=[t,e.line];const c=e.push("inline","",0);return c.content=i,c.map=[t,e.line],c.children=[],e.push("paragraph_close","p",-1),e.parentType=o,!0}const _u=[["table",Hl,["paragraph","reference"]],["code",Gl],["fence",Wl,["paragraph","reference","blockquote","list"]],["blockquote",ql,["paragraph","reference","blockquote","list"]],["hr",Xl,["paragraph","reference","blockquote","list"]],["list",Yl,["paragraph","reference","blockquote"]],["reference",Kl],["html_block",a0,["paragraph","reference","blockquote"]],["heading",s0,["paragraph","reference","blockquote"]],["lheading",c0],["paragraph",l0]];function Fu(){this.ruler=new Be;for(let e=0;e<_u.length;e++)this.ruler.push(_u[e][0],_u[e][1],{alt:(_u[e][2]||[]).slice()})}Fu.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),o=r.length,u=e.md.options.maxNesting;let i=t,s=!1;for(;i<n&&(e.line=i=e.skipEmptyLines(i),!(i>=n||e.sCount[i]<e.blkIndent));){if(e.level>=u){e.line=n;break}const c=e.line;let d=!1;for(let f=0;f<o;f++)if(d=r[f](e,i,n,!1),d){if(c>=e.line)throw new Error("block rule didn't increment state.line");break}if(!d)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),i=e.line,i<n&&e.isEmpty(i)&&(s=!0,i++,e.line=i)}},Fu.prototype.parse=function(e,t,n,r){if(!e)return;const o=new this.State(e,t,n,r);this.tokenize(o,o.line,o.lineMax)},Fu.prototype.State=ht;function Rn(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Rn.prototype.pushPending=function(){const e=new et("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Rn.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new et(e,t,n);let o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r},Rn.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),o=e>0?this.src.charCodeAt(e-1):32;let u=e;for(;u<n&&this.src.charCodeAt(u)===r;)u++;const i=u-e,s=u<n?this.src.charCodeAt(u):32,c=In(o)||Ln(String.fromCharCode(o)),d=In(s)||Ln(String.fromCharCode(s)),f=On(o),l=On(s),p=!l&&(!d||f||c),m=!f&&(!c||l||d);return{can_open:p&&(t||!m||c),can_close:m&&(t||!p||d),length:i}},Rn.prototype.Token=et;function d0(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function f0(e,t){let n=e.pos;for(;n<e.posMax&&!d0(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const h0=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function p0(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const o=e.pending.match(h0);if(!o)return!1;const u=o[1],i=e.md.linkify.matchAtStart(e.src.slice(n-u.length));if(!i)return!1;let s=i.url;if(s.length<=u.length)return!1;let c=s.length;for(;c>0&&s.charCodeAt(c-1)===42;)c--;c!==s.length&&(s=s.slice(0,c));const d=e.md.normalizeLink(s);if(!e.md.validateLink(d))return!1;if(!t){e.pending=e.pending.slice(0,-u.length);const f=e.push("link_open","a",1);f.attrs=[["href",d]],f.markup="linkify",f.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(s);const p=e.push("link_close","a",-1);p.markup="linkify",p.info="auto"}return e.pos+=s.length-u.length,!0}function m0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,o=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let u=r-1;for(;u>=1&&e.pending.charCodeAt(u-1)===32;)u--;e.pending=e.pending.slice(0,u),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<o&&se(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const Sr=[];for(let e=0;e<256;e++)Sr.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Sr[e.charCodeAt(0)]=1});function g0(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let o=e.src.charCodeAt(n);if(o===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(o=e.src.charCodeAt(n),!!se(o));)n++;return e.pos=n,!0}let u=e.src[n];if(o>=55296&&o<=56319&&n+1<r){const s=e.src.charCodeAt(n+1);s>=56320&&s<=57343&&(u+=e.src[n+1],n++)}const i="\\"+u;if(!t){const s=e.push("text_special","",0);o<256&&Sr[o]!==0?s.content=u:s.content=i,s.markup=i,s.info="escape"}return e.pos=n+1,!0}function b0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const o=n;n++;const u=e.posMax;for(;n<u&&e.src.charCodeAt(n)===96;)n++;const i=e.src.slice(o,n),s=i.length;if(e.backticksScanned&&(e.backticks[s]||0)<=o)return t||(e.pending+=i),e.pos+=s,!0;let c=n,d;for(;(d=e.src.indexOf("`",c))!==-1;){for(c=d+1;c<u&&e.src.charCodeAt(c)===96;)c++;const f=c-d;if(f===s){if(!t){const l=e.push("code_inline","code",0);l.markup=i,l.content=e.src.slice(n,d).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=c,!0}e.backticks[f]=d}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=s,!0}function y0(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const o=e.scanDelims(e.pos,!0);let u=o.length;const i=String.fromCharCode(r);if(u<2)return!1;let s;u%2&&(s=e.push("text","",0),s.content=i,u--);for(let c=0;c<u;c+=2)s=e.push("text","",0),s.content=i+i,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0}function Ai(e,t){let n;const r=[],o=t.length;for(let u=0;u<o;u++){const i=t[u];if(i.marker!==126||i.end===-1)continue;const s=t[i.end];n=e.tokens[i.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[s.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&r.push(s.token-1)}for(;r.length;){const u=r.pop();let i=u+1;for(;i<e.tokens.length&&e.tokens[i].type==="s_close";)i++;i--,u!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[u],e.tokens[u]=n)}}function x0(e){const t=e.tokens_meta,n=e.tokens_meta.length;Ai(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Ai(e,t[r].delimiters)}const wi={tokenize:y0,postProcess:x0};function A0(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const o=e.scanDelims(e.pos,r===42);for(let u=0;u<o.length;u++){const i=e.push("text","",0);i.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return e.pos+=o.length,!0}function ki(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const o=t[r];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const u=t[o.end],i=r>0&&t[r-1].end===o.end+1&&t[r-1].marker===o.marker&&t[r-1].token===o.token-1&&t[o.end+1].token===u.token+1,s=String.fromCharCode(o.marker),c=e.tokens[o.token];c.type=i?"strong_open":"em_open",c.tag=i?"strong":"em",c.nesting=1,c.markup=i?s+s:s,c.content="";const d=e.tokens[u.token];d.type=i?"strong_close":"em_close",d.tag=i?"strong":"em",d.nesting=-1,d.markup=i?s+s:s,d.content="",i&&(e.tokens[t[r-1].token].content="",e.tokens[t[o.end+1].token].content="",r--)}}function w0(e){const t=e.tokens_meta,n=e.tokens_meta.length;ki(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&ki(e,t[r].delimiters)}const vi={tokenize:A0,postProcess:w0};function k0(e,t){let n,r,o,u,i="",s="",c=e.pos,d=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,l=e.posMax,p=e.pos+1,m=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(m<0)return!1;let h=m+1;if(h<l&&e.src.charCodeAt(h)===40){for(d=!1,h++;h<l&&(n=e.src.charCodeAt(h),!(!se(n)&&n!==10));h++);if(h>=l)return!1;if(c=h,o=e.md.helpers.parseLinkDestination(e.src,h,e.posMax),o.ok){for(i=e.md.normalizeLink(o.str),e.md.validateLink(i)?h=o.pos:i="",c=h;h<l&&(n=e.src.charCodeAt(h),!(!se(n)&&n!==10));h++);if(o=e.md.helpers.parseLinkTitle(e.src,h,e.posMax),h<l&&c!==h&&o.ok)for(s=o.str,h=o.pos;h<l&&(n=e.src.charCodeAt(h),!(!se(n)&&n!==10));h++);}(h>=l||e.src.charCodeAt(h)!==41)&&(d=!0),h++}if(d){if(typeof e.env.references>"u")return!1;if(h<l&&e.src.charCodeAt(h)===91?(c=h+1,h=e.md.helpers.parseLinkLabel(e,h),h>=0?r=e.src.slice(c,h++):h=m+1):h=m+1,r||(r=e.src.slice(p,m)),u=e.env.references[Cu(r)],!u)return e.pos=f,!1;i=u.href,s=u.title}if(!t){e.pos=p,e.posMax=m;const b=e.push("link_open","a",1),A=[["href",i]];b.attrs=A,s&&A.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=h,e.posMax=l,!0}function v0(e,t){let n,r,o,u,i,s,c,d,f="";const l=e.pos,p=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const m=e.pos+2,h=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(h<0)return!1;if(u=h+1,u<p&&e.src.charCodeAt(u)===40){for(u++;u<p&&(n=e.src.charCodeAt(u),!(!se(n)&&n!==10));u++);if(u>=p)return!1;for(d=u,s=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),s.ok&&(f=e.md.normalizeLink(s.str),e.md.validateLink(f)?u=s.pos:f=""),d=u;u<p&&(n=e.src.charCodeAt(u),!(!se(n)&&n!==10));u++);if(s=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<p&&d!==u&&s.ok)for(c=s.str,u=s.pos;u<p&&(n=e.src.charCodeAt(u),!(!se(n)&&n!==10));u++);else c="";if(u>=p||e.src.charCodeAt(u)!==41)return e.pos=l,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<p&&e.src.charCodeAt(u)===91?(d=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?o=e.src.slice(d,u++):u=h+1):u=h+1,o||(o=e.src.slice(m,h)),i=e.env.references[Cu(o)],!i)return e.pos=l,!1;f=i.href,c=i.title}if(!t){r=e.src.slice(m,h);const b=[];e.md.inline.parse(r,e.md,e.env,b);const A=e.push("image","img",0),k=[["src",f],["alt",""]];A.attrs=k,A.children=b,A.content=r,c&&k.push(["title",c])}return e.pos=u,e.posMax=p,!0}const C0=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,E0=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function _0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const i=e.src.charCodeAt(n);if(i===60)return!1;if(i===62)break}const u=e.src.slice(r+1,n);if(E0.test(u)){const i=e.md.normalizeLink(u);if(!e.md.validateLink(i))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",i]],s.markup="autolink",s.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(u);const d=e.push("link_close","a",-1);d.markup="autolink",d.info="auto"}return e.pos+=u.length+2,!0}if(C0.test(u)){const i=e.md.normalizeLink("mailto:"+u);if(!e.md.validateLink(i))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",i]],s.markup="autolink",s.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(u);const d=e.push("link_close","a",-1);d.markup="autolink",d.info="auto"}return e.pos+=u.length+2,!0}return!1}function F0(e){return/^<a[>\s]/i.test(e)}function D0(e){return/^<\/a\s*>/i.test(e)}function S0(e){const t=e|32;return t>=97&&t<=122}function T0(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;const o=e.src.charCodeAt(r+1);if(o!==33&&o!==63&&o!==47&&!S0(o))return!1;const u=e.src.slice(r).match(o0);if(!u)return!1;if(!t){const i=e.push("html_inline","",0);i.content=u[0],F0(i.content)&&e.linkLevel++,D0(i.content)&&e.linkLevel--}return e.pos+=u[0].length,!0}const N0=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,O0=/^&([a-z][a-z0-9]{1,31});/i;function L0(e,t){const n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){const u=e.src.slice(n).match(N0);if(u){if(!t){const i=u[1][0].toLowerCase()==="x"?parseInt(u[1].slice(1),16):parseInt(u[1],10),s=e.push("text_special","",0);s.content=Er(i)?vu(i):vu(65533),s.markup=u[0],s.info="entity"}return e.pos+=u[0].length,!0}}else{const u=e.src.slice(n).match(O0);if(u){const i=si(u[0]);if(i!==u[0]){if(!t){const s=e.push("text_special","",0);s.content=i,s.markup=u[0],s.info="entity"}return e.pos+=u[0].length,!0}}}return!1}function Ci(e){const t={},n=e.length;if(!n)return;let r=0,o=-2;const u=[];for(let i=0;i<n;i++){const s=e[i];if(u.push(0),(e[r].marker!==s.marker||o!==s.token-1)&&(r=i),o=s.token,s.length=s.length||0,!s.close)continue;t.hasOwnProperty(s.marker)||(t[s.marker]=[-1,-1,-1,-1,-1,-1]);const c=t[s.marker][(s.open?3:0)+s.length%3];let d=r-u[r]-1,f=d;for(;d>c;d-=u[d]+1){const l=e[d];if(l.marker===s.marker&&l.open&&l.end<0){let p=!1;if((l.close||s.open)&&(l.length+s.length)%3===0&&(l.length%3!==0||s.length%3!==0)&&(p=!0),!p){const m=d>0&&!e[d-1].open?u[d-1]+1:0;u[i]=i-d+m,u[d]=m,s.open=!1,l.end=i,l.close=!1,f=-1,o=-2;break}}}f!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=f)}}function I0(e){const t=e.tokens_meta,n=e.tokens_meta.length;Ci(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Ci(t[r].delimiters)}function R0(e){let t,n,r=0;const o=e.tokens,u=e.tokens.length;for(t=n=0;t<u;t++)o[t].nesting<0&&r--,o[t].level=r,o[t].nesting>0&&r++,o[t].type==="text"&&t+1<u&&o[t+1].type==="text"?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}const Tr=[["text",f0],["linkify",p0],["newline",m0],["escape",g0],["backticks",b0],["strikethrough",wi.tokenize],["emphasis",vi.tokenize],["link",k0],["image",v0],["autolink",_0],["html_inline",T0],["entity",L0]],Nr=[["balance_pairs",I0],["strikethrough",wi.postProcess],["emphasis",vi.postProcess],["fragments_join",R0]];function Mn(){this.ruler=new Be;for(let e=0;e<Tr.length;e++)this.ruler.push(Tr[e][0],Tr[e][1]);this.ruler2=new Be;for(let e=0;e<Nr.length;e++)this.ruler2.push(Nr[e][0],Nr[e][1])}Mn.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,o=e.md.options.maxNesting,u=e.cache;if(typeof u[t]<"u"){e.pos=u[t];return}let i=!1;if(e.level<o){for(let s=0;s<r;s++)if(e.level++,i=n[s](e,!0),e.level--,i){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;i||e.pos++,u[t]=e.pos},Mn.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,o=e.md.options.maxNesting;for(;e.pos<r;){const u=e.pos;let i=!1;if(e.level<o){for(let s=0;s<n;s++)if(i=t[s](e,!1),i){if(u>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(i){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Mn.prototype.parse=function(e,t,n,r){const o=new this.State(e,t,n,r);this.tokenize(o);const u=this.ruler2.getRules(""),i=u.length;for(let s=0;s<i;s++)u[s](o)},Mn.prototype.State=Rn;function M0(e){const t={};e=e||{},t.src_Any=ui.source,t.src_Cc=ri.source,t.src_Z=ii.source,t.src_P=wr.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";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}function Or(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function Du(e){return Object.prototype.toString.call(e)}function P0(e){return Du(e)==="[object String]"}function V0(e){return Du(e)==="[object Object]"}function B0(e){return Du(e)==="[object RegExp]"}function Ei(e){return Du(e)==="[object Function]"}function j0(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const _i={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function z0(e){return Object.keys(e||{}).reduce(function(t,n){return t||_i.hasOwnProperty(n)},!1)}const $0={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new 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}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new 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}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new 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}}},U0="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]",H0="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function G0(e){e.__index__=-1,e.__text_cache__=""}function W0(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function Fi(){return function(e,t){t.normalize(e)}}function Su(e){const t=e.re=M0(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(U0),n.push(t.src_xn),t.src_tlds=n.join("|");function r(s){return s.replace("%TLDS%",t.src_tlds)}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");const o=[];e.__compiled__={};function u(s,c){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+c)}Object.keys(e.__schemas__).forEach(function(s){const c=e.__schemas__[s];if(c===null)return;const d={validate:null,link:null};if(e.__compiled__[s]=d,V0(c)){B0(c.validate)?d.validate=W0(c.validate):Ei(c.validate)?d.validate=c.validate:u(s,c),Ei(c.normalize)?d.normalize=c.normalize:c.normalize?u(s,c):d.normalize=Fi();return}if(P0(c)){o.push(s);return}u(s,c)}),o.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:Fi()};const i=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(j0).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","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"),G0(e)}function q0(e,t){const n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function Lr(e,t){const n=new q0(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function $e(e,t){if(!(this instanceof $e))return new $e(e,t);t||z0(e)&&(t=e,e={}),this.__opts__=Or({},_i,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Or({},$0,e),this.__compiled__={},this.__tlds__=H0,this.__tlds_replaced__=!1,this.re={},Su(this)}$e.prototype.add=function(t,n){return this.__schemas__[t]=n,Su(this),this},$e.prototype.set=function(t){return this.__opts__=Or(this.__opts__,t),this},$e.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,o,u,i,s,c,d,f;if(this.re.schema_test.test(t)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(t))!==null;)if(u=this.testSchemaAt(t,n[2],c.lastIndex),u){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+u;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(d=t.search(this.re.host_fuzzy_test),d>=0&&(this.__index__<0||d<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(i=r.index+r[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(o=t.match(this.re.email_fuzzy))!==null&&(i=o.index+o[1].length,s=o.index+o[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=s))),this.__index__>=0},$e.prototype.pretest=function(t){return this.re.pretest.test(t)},$e.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0},$e.prototype.match=function(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(Lr(this,r)),r=this.__last_index__);let o=r?t.slice(r):t;for(;this.test(o);)n.push(Lr(this,r)),o=o.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null},$e.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const r=this.testSchemaAt(t,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,Lr(this,0)):null},$e.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,o,u){return r!==u[o-1]}).reverse(),Su(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Su(this),this)},$e.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},$e.prototype.onCompile=function(){};const cn=2147483647,pt=36,Ir=1,Pn=26,X0=38,Z0=700,Di=72,Si=128,Ti="-",Y0=/^xn--/,K0=/[^\0-\x7F]/,Q0=/[\x2E\u3002\uFF0E\uFF61]/g,J0={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Rr=pt-Ir,mt=Math.floor,Mr=String.fromCharCode;function It(e){throw new RangeError(J0[e])}function ed(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function Ni(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(Q0,".");const o=e.split("."),u=ed(o,t).join(".");return r+u}function Oi(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const u=e.charCodeAt(n++);(u&64512)==56320?t.push(((o&1023)<<10)+(u&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}const td=e=>String.fromCodePoint(...e),nd=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:pt},Li=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Ii=function(e,t,n){let r=0;for(e=n?mt(e/Z0):e>>1,e+=mt(e/t);e>Rr*Pn>>1;r+=pt)e=mt(e/Rr);return mt(r+(Rr+1)*e/(e+X0))},Ri=function(e){const t=[],n=e.length;let r=0,o=Si,u=Di,i=e.lastIndexOf(Ti);i<0&&(i=0);for(let s=0;s<i;++s)e.charCodeAt(s)>=128&&It("not-basic"),t.push(e.charCodeAt(s));for(let s=i>0?i+1:0;s<n;){const c=r;for(let f=1,l=pt;;l+=pt){s>=n&&It("invalid-input");const p=nd(e.charCodeAt(s++));p>=pt&&It("invalid-input"),p>mt((cn-r)/f)&&It("overflow"),r+=p*f;const m=l<=u?Ir:l>=u+Pn?Pn:l-u;if(p<m)break;const h=pt-m;f>mt(cn/h)&&It("overflow"),f*=h}const d=t.length+1;u=Ii(r-c,d,c==0),mt(r/d)>cn-o&&It("overflow"),o+=mt(r/d),r%=d,t.splice(r++,0,o)}return String.fromCodePoint(...t)},Mi=function(e){const t=[];e=Oi(e);const n=e.length;let r=Si,o=0,u=Di;for(const c of e)c<128&&t.push(Mr(c));const i=t.length;let s=i;for(i&&t.push(Ti);s<n;){let c=cn;for(const f of e)f>=r&&f<c&&(c=f);const d=s+1;c-r>mt((cn-o)/d)&&It("overflow"),o+=(c-r)*d,r=c;for(const f of e)if(f<r&&++o>cn&&It("overflow"),f===r){let l=o;for(let p=pt;;p+=pt){const m=p<=u?Ir:p>=u+Pn?Pn:p-u;if(l<m)break;const h=l-m,b=pt-m;t.push(Mr(Li(m+h%b,0))),l=mt(h/b)}t.push(Mr(Li(l,0))),u=Ii(o,d,s===i),o=0,++s}++o,++r}return t.join("")},Pi={version:"2.3.1",ucs2:{decode:Oi,encode:td},decode:Ri,encode:Mi,toASCII:function(e){return Ni(e,function(t){return K0.test(t)?"xn--"+Mi(t):t})},toUnicode:function(e){return Ni(e,function(t){return Y0.test(t)?Ri(t.slice(4).toLowerCase()):t})}},ud={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},rd=/^(vbscript|javascript|file|data):/,od=/^data:image\/(gif|png|jpeg|webp);/;function id(e){const t=e.trim().toLowerCase();return rd.test(t)?od.test(t):!0}const Vi=["http:","https:","mailto:"];function ad(e){const t=Ar(e,!0);if(t.hostname&&(!t.protocol||Vi.indexOf(t.protocol)>=0))try{t.hostname=Pi.toASCII(t.hostname)}catch{}return Nn(xr(t))}function sd(e){const t=Ar(e,!0);if(t.hostname&&(!t.protocol||Vi.indexOf(t.protocol)>=0))try{t.hostname=Pi.toUnicode(t.hostname)}catch{}return rn(xr(t),rn.defaultChars+"%")}function Ue(e,t){if(!(this instanceof Ue))return new Ue(e,t);t||Cr(e)||(t=e||{},e="default"),this.inline=new Mn,this.block=new Fu,this.core=new Fr,this.renderer=new an,this.linkify=new $e,this.validateLink=id,this.normalizeLink=ad,this.normalizeLinkText=sd,this.utils=xl,this.helpers=ku({},vl),this.options={},this.configure(e),t&&this.set(t)}Ue.prototype.set=function(e){return ku(this.options,e),this},Ue.prototype.configure=function(e){const t=this;if(Cr(e)){const n=e;if(e=ud[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},Ue.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(o){return n.indexOf(o)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Ue.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(o){return n.indexOf(o)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Ue.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Ue.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Ue.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Ue.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Ue.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:Bi,setPrototypeOf:ji,isFrozen:cd,getPrototypeOf:ld,getOwnPropertyDescriptor:dd}=Object;let{freeze:Ie,seal:Ke,create:Tu}=Object,{apply:Pr,construct:Vr}=typeof Reflect<"u"&&Reflect;Ie||(Ie=function(t){return t}),Ke||(Ke=function(t){return t}),Pr||(Pr=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),u=2;u<r;u++)o[u-2]=arguments[u];return t.apply(n,o)}),Vr||(Vr=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return new t(...r)});const Nu=Me(Array.prototype.forEach),fd=Me(Array.prototype.lastIndexOf),zi=Me(Array.prototype.pop),Vn=Me(Array.prototype.push),hd=Me(Array.prototype.splice),Ou=Me(String.prototype.toLowerCase),Br=Me(String.prototype.toString),jr=Me(String.prototype.match),Bn=Me(String.prototype.replace),pd=Me(String.prototype.indexOf),md=Me(String.prototype.trim),He=Me(Object.prototype.hasOwnProperty),Re=Me(RegExp.prototype.test),jn=gd(TypeError);function Me(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Pr(e,t,r)}}function gd(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Vr(e,n)}}function ee(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ou;ji&&ji(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const u=n(o);u!==o&&(cd(t)||(t[r]=u),o=u)}e[o]=!0}return e}function bd(e){for(let t=0;t<e.length;t++)He(e,t)||(e[t]=null);return e}function gt(e){const t=Tu(null);for(const[n,r]of Bi(e))He(e,n)&&(Array.isArray(r)?t[n]=bd(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=gt(r):t[n]=r);return t}function zn(e,t){for(;e!==null;){const r=dd(e,t);if(r){if(r.get)return Me(r.get);if(typeof r.value=="function")return Me(r.value)}e=ld(e)}function n(){return null}return n}const $i=Ie(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),zr=Ie(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),$r=Ie(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),yd=Ie(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ur=Ie(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),xd=Ie(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ui=Ie(["#text"]),Hi=Ie(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Hr=Ie(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Gi=Ie(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Lu=Ie(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ad=Ke(/\{\{[\w\W]*|[\w\W]*\}\}/gm),wd=Ke(/<%[\w\W]*|[\w\W]*%>/gm),kd=Ke(/\$\{[\w\W]*/gm),vd=Ke(/^data-[\-\w.\u00B7-\uFFFF]+$/),Cd=Ke(/^aria-[\-\w]+$/),Wi=Ke(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ed=Ke(/^(?:\w+script|data):/i),_d=Ke(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),qi=Ke(/^html$/i),Fd=Ke(/^[a-z][.\w]*(-[.\w]+)+$/i);var Xi=Object.freeze({__proto__:null,ARIA_ATTR:Cd,ATTR_WHITESPACE:_d,CUSTOM_ELEMENT:Fd,DATA_ATTR:vd,DOCTYPE_NAME:qi,ERB_EXPR:wd,IS_ALLOWED_URI:Wi,IS_SCRIPT_OR_DATA:Ed,MUSTACHE_EXPR:Ad,TMPLIT_EXPR:kd});const $n={element:1,text:3,progressingInstruction:7,comment:8,document:9},Dd=function(){return typeof window>"u"?null:window},Sd=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const u="dompurify"+(r?"#"+r:"");try{return t.createPolicy(u,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+u+" could not be created."),null}},Zi=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Yi(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Dd();const t=Z=>Yi(Z);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==$n.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,o=r.currentScript,{DocumentFragment:u,HTMLTemplateElement:i,Node:s,Element:c,NodeFilter:d,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:l,DOMParser:p,trustedTypes:m}=e,h=c.prototype,b=zn(h,"cloneNode"),A=zn(h,"remove"),k=zn(h,"nextSibling"),g=zn(h,"childNodes"),y=zn(h,"parentNode");if(typeof i=="function"){const Z=n.createElement("template");Z.content&&Z.content.ownerDocument&&(n=Z.content.ownerDocument)}let w,v="";const{implementation:E,createNodeIterator:_,createDocumentFragment:F,getElementsByTagName:q}=n,{importNode:P}=r;let B=Zi();t.isSupported=typeof Bi=="function"&&typeof y=="function"&&E&&E.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:j,ERB_EXPR:D,TMPLIT_EXPR:R,DATA_ATTR:M,ARIA_ATTR:S,IS_SCRIPT_OR_DATA:H,ATTR_WHITESPACE:O,CUSTOM_ELEMENT:U}=Xi;let{IS_ALLOWED_URI:te}=Xi,Q=null;const N=ee({},[...$i,...zr,...$r,...Ur,...Ui]);let L=null;const $=ee({},[...Hi,...Hr,...Gi,...Lu]);let G=Object.seal(Tu(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),J=null,oe=null;const ne=Object.seal(Tu(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let re=!0,fe=!0,_e=!1,kt=!0,lt=!1,En=!0,dt=!1,hu=!1,pu=!1,_t=!1,ir=!1,ar=!1,Qs=!0,Js=!1;const I2="user-content-";let No=!0,mu=!1,_n={},vt=null;const Oo=ee({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ec=null;const tc=ee({},["audio","video","img","source","image","track"]);let Lo=null;const nc=ee({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),sr="http://www.w3.org/1998/Math/MathML",cr="http://www.w3.org/2000/svg",Ft="http://www.w3.org/1999/xhtml";let Fn=Ft,Io=!1,Ro=null;const R2=ee({},[sr,cr,Ft],Br);let lr=ee({},["mi","mo","mn","ms","mtext"]),dr=ee({},["annotation-xml"]);const M2=ee({},["title","style","font","a","script"]);let gu=null;const P2=["application/xhtml+xml","text/html"],V2="text/html";let we=null,Dn=null;const B2=n.createElement("form"),uc=function(C){return C instanceof RegExp||C instanceof Function},Mo=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Dn&&Dn===C)){if((!C||typeof C!="object")&&(C={}),C=gt(C),gu=P2.indexOf(C.PARSER_MEDIA_TYPE)===-1?V2:C.PARSER_MEDIA_TYPE,we=gu==="application/xhtml+xml"?Br:Ou,Q=He(C,"ALLOWED_TAGS")?ee({},C.ALLOWED_TAGS,we):N,L=He(C,"ALLOWED_ATTR")?ee({},C.ALLOWED_ATTR,we):$,Ro=He(C,"ALLOWED_NAMESPACES")?ee({},C.ALLOWED_NAMESPACES,Br):R2,Lo=He(C,"ADD_URI_SAFE_ATTR")?ee(gt(nc),C.ADD_URI_SAFE_ATTR,we):nc,ec=He(C,"ADD_DATA_URI_TAGS")?ee(gt(tc),C.ADD_DATA_URI_TAGS,we):tc,vt=He(C,"FORBID_CONTENTS")?ee({},C.FORBID_CONTENTS,we):Oo,J=He(C,"FORBID_TAGS")?ee({},C.FORBID_TAGS,we):gt({}),oe=He(C,"FORBID_ATTR")?ee({},C.FORBID_ATTR,we):gt({}),_n=He(C,"USE_PROFILES")?C.USE_PROFILES:!1,re=C.ALLOW_ARIA_ATTR!==!1,fe=C.ALLOW_DATA_ATTR!==!1,_e=C.ALLOW_UNKNOWN_PROTOCOLS||!1,kt=C.ALLOW_SELF_CLOSE_IN_ATTR!==!1,lt=C.SAFE_FOR_TEMPLATES||!1,En=C.SAFE_FOR_XML!==!1,dt=C.WHOLE_DOCUMENT||!1,_t=C.RETURN_DOM||!1,ir=C.RETURN_DOM_FRAGMENT||!1,ar=C.RETURN_TRUSTED_TYPE||!1,pu=C.FORCE_BODY||!1,Qs=C.SANITIZE_DOM!==!1,Js=C.SANITIZE_NAMED_PROPS||!1,No=C.KEEP_CONTENT!==!1,mu=C.IN_PLACE||!1,te=C.ALLOWED_URI_REGEXP||Wi,Fn=C.NAMESPACE||Ft,lr=C.MATHML_TEXT_INTEGRATION_POINTS||lr,dr=C.HTML_INTEGRATION_POINTS||dr,G=C.CUSTOM_ELEMENT_HANDLING||{},C.CUSTOM_ELEMENT_HANDLING&&uc(C.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(G.tagNameCheck=C.CUSTOM_ELEMENT_HANDLING.tagNameCheck),C.CUSTOM_ELEMENT_HANDLING&&uc(C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(G.attributeNameCheck=C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),C.CUSTOM_ELEMENT_HANDLING&&typeof C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(G.allowCustomizedBuiltInElements=C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),lt&&(fe=!1),ir&&(_t=!0),_n&&(Q=ee({},Ui),L=Tu(null),_n.html===!0&&(ee(Q,$i),ee(L,Hi)),_n.svg===!0&&(ee(Q,zr),ee(L,Hr),ee(L,Lu)),_n.svgFilters===!0&&(ee(Q,$r),ee(L,Hr),ee(L,Lu)),_n.mathMl===!0&&(ee(Q,Ur),ee(L,Gi),ee(L,Lu))),He(C,"ADD_TAGS")||(ne.tagCheck=null),He(C,"ADD_ATTR")||(ne.attributeCheck=null),C.ADD_TAGS&&(typeof C.ADD_TAGS=="function"?ne.tagCheck=C.ADD_TAGS:(Q===N&&(Q=gt(Q)),ee(Q,C.ADD_TAGS,we))),C.ADD_ATTR&&(typeof C.ADD_ATTR=="function"?ne.attributeCheck=C.ADD_ATTR:(L===$&&(L=gt(L)),ee(L,C.ADD_ATTR,we))),C.ADD_URI_SAFE_ATTR&&ee(Lo,C.ADD_URI_SAFE_ATTR,we),C.FORBID_CONTENTS&&(vt===Oo&&(vt=gt(vt)),ee(vt,C.FORBID_CONTENTS,we)),C.ADD_FORBID_CONTENTS&&(vt===Oo&&(vt=gt(vt)),ee(vt,C.ADD_FORBID_CONTENTS,we)),No&&(Q["#text"]=!0),dt&&ee(Q,["html","head","body"]),Q.table&&(ee(Q,["tbody"]),delete J.tbody),C.TRUSTED_TYPES_POLICY){if(typeof C.TRUSTED_TYPES_POLICY.createHTML!="function")throw jn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw jn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=C.TRUSTED_TYPES_POLICY,v=w.createHTML("")}else w===void 0&&(w=Sd(m,o)),w!==null&&typeof v=="string"&&(v=w.createHTML(""));Ie&&Ie(C),Dn=C}},rc=ee({},[...zr,...$r,...yd]),oc=ee({},[...Ur,...xd]),j2=function(C){let I=y(C);(!I||!I.tagName)&&(I={namespaceURI:Fn,tagName:"template"});const X=Ou(C.tagName),ge=Ou(I.tagName);return Ro[C.namespaceURI]?C.namespaceURI===cr?I.namespaceURI===Ft?X==="svg":I.namespaceURI===sr?X==="svg"&&(ge==="annotation-xml"||lr[ge]):!!rc[X]:C.namespaceURI===sr?I.namespaceURI===Ft?X==="math":I.namespaceURI===cr?X==="math"&&dr[ge]:!!oc[X]:C.namespaceURI===Ft?I.namespaceURI===cr&&!dr[ge]||I.namespaceURI===sr&&!lr[ge]?!1:!oc[X]&&(M2[X]||!rc[X]):!!(gu==="application/xhtml+xml"&&Ro[C.namespaceURI]):!1},Ct=function(C){Vn(t.removed,{element:C});try{y(C).removeChild(C)}catch{A(C)}},nn=function(C,I){try{Vn(t.removed,{attribute:I.getAttributeNode(C),from:I})}catch{Vn(t.removed,{attribute:null,from:I})}if(I.removeAttribute(C),C==="is")if(_t||ir)try{Ct(I)}catch{}else try{I.setAttribute(C,"")}catch{}},ic=function(C){let I=null,X=null;if(pu)C="<remove></remove>"+C;else{const xe=jr(C,/^[\r\n\t ]+/);X=xe&&xe[0]}gu==="application/xhtml+xml"&&Fn===Ft&&(C='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+C+"</body></html>");const ge=w?w.createHTML(C):C;if(Fn===Ft)try{I=new p().parseFromString(ge,gu)}catch{}if(!I||!I.documentElement){I=E.createDocument(Fn,"template",null);try{I.documentElement.innerHTML=Io?v:ge}catch{}}const Le=I.body||I.documentElement;return C&&X&&Le.insertBefore(n.createTextNode(X),Le.childNodes[0]||null),Fn===Ft?q.call(I,dt?"html":"body")[0]:dt?I.documentElement:Le},ac=function(C){return _.call(C.ownerDocument||C,C,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Po=function(C){return C instanceof l&&(typeof C.nodeName!="string"||typeof C.textContent!="string"||typeof C.removeChild!="function"||!(C.attributes instanceof f)||typeof C.removeAttribute!="function"||typeof C.setAttribute!="function"||typeof C.namespaceURI!="string"||typeof C.insertBefore!="function"||typeof C.hasChildNodes!="function")},sc=function(C){return typeof s=="function"&&C instanceof s};function Dt(Z,C,I){Nu(Z,X=>{X.call(t,C,I,Dn)})}const cc=function(C){let I=null;if(Dt(B.beforeSanitizeElements,C,null),Po(C))return Ct(C),!0;const X=we(C.nodeName);if(Dt(B.uponSanitizeElement,C,{tagName:X,allowedTags:Q}),En&&C.hasChildNodes()&&!sc(C.firstElementChild)&&Re(/<[/\w!]/g,C.innerHTML)&&Re(/<[/\w!]/g,C.textContent)||C.nodeType===$n.progressingInstruction||En&&C.nodeType===$n.comment&&Re(/<[/\w]/g,C.data))return Ct(C),!0;if(!(ne.tagCheck instanceof Function&&ne.tagCheck(X))&&(!Q[X]||J[X])){if(!J[X]&&dc(X)&&(G.tagNameCheck instanceof RegExp&&Re(G.tagNameCheck,X)||G.tagNameCheck instanceof Function&&G.tagNameCheck(X)))return!1;if(No&&!vt[X]){const ge=y(C)||C.parentNode,Le=g(C)||C.childNodes;if(Le&&ge){const xe=Le.length;for(let ze=xe-1;ze>=0;--ze){const St=b(Le[ze],!0);St.__removalCount=(C.__removalCount||0)+1,ge.insertBefore(St,k(C))}}}return Ct(C),!0}return C instanceof c&&!j2(C)||(X==="noscript"||X==="noembed"||X==="noframes")&&Re(/<\/no(script|embed|frames)/i,C.innerHTML)?(Ct(C),!0):(lt&&C.nodeType===$n.text&&(I=C.textContent,Nu([j,D,R],ge=>{I=Bn(I,ge," ")}),C.textContent!==I&&(Vn(t.removed,{element:C.cloneNode()}),C.textContent=I)),Dt(B.afterSanitizeElements,C,null),!1)},lc=function(C,I,X){if(oe[I]||Qs&&(I==="id"||I==="name")&&(X in n||X in B2))return!1;if(!(fe&&!oe[I]&&Re(M,I))){if(!(re&&Re(S,I))){if(!(ne.attributeCheck instanceof Function&&ne.attributeCheck(I,C))){if(!L[I]||oe[I]){if(!(dc(C)&&(G.tagNameCheck instanceof RegExp&&Re(G.tagNameCheck,C)||G.tagNameCheck instanceof Function&&G.tagNameCheck(C))&&(G.attributeNameCheck instanceof RegExp&&Re(G.attributeNameCheck,I)||G.attributeNameCheck instanceof Function&&G.attributeNameCheck(I,C))||I==="is"&&G.allowCustomizedBuiltInElements&&(G.tagNameCheck instanceof RegExp&&Re(G.tagNameCheck,X)||G.tagNameCheck instanceof Function&&G.tagNameCheck(X))))return!1}else if(!Lo[I]){if(!Re(te,Bn(X,O,""))){if(!((I==="src"||I==="xlink:href"||I==="href")&&C!=="script"&&pd(X,"data:")===0&&ec[C])){if(!(_e&&!Re(H,Bn(X,O,"")))){if(X)return!1}}}}}}}return!0},dc=function(C){return C!=="annotation-xml"&&jr(C,U)},fc=function(C){Dt(B.beforeSanitizeAttributes,C,null);const{attributes:I}=C;if(!I||Po(C))return;const X={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:L,forceKeepAttr:void 0};let ge=I.length;for(;ge--;){const Le=I[ge],{name:xe,namespaceURI:ze,value:St}=Le,Sn=we(xe),Vo=St;let De=xe==="value"?Vo:md(Vo);if(X.attrName=Sn,X.attrValue=De,X.keepAttr=!0,X.forceKeepAttr=void 0,Dt(B.uponSanitizeAttribute,C,X),De=X.attrValue,Js&&(Sn==="id"||Sn==="name")&&(nn(xe,C),De=I2+De),En&&Re(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,De)){nn(xe,C);continue}if(Sn==="attributename"&&jr(De,"href")){nn(xe,C);continue}if(X.forceKeepAttr)continue;if(!X.keepAttr){nn(xe,C);continue}if(!kt&&Re(/\/>/i,De)){nn(xe,C);continue}lt&&Nu([j,D,R],pc=>{De=Bn(De,pc," ")});const hc=we(C.nodeName);if(!lc(hc,Sn,De)){nn(xe,C);continue}if(w&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!ze)switch(m.getAttributeType(hc,Sn)){case"TrustedHTML":{De=w.createHTML(De);break}case"TrustedScriptURL":{De=w.createScriptURL(De);break}}if(De!==Vo)try{ze?C.setAttributeNS(ze,xe,De):C.setAttribute(xe,De),Po(C)?Ct(C):zi(t.removed)}catch{nn(xe,C)}}Dt(B.afterSanitizeAttributes,C,null)},z2=function Z(C){let I=null;const X=ac(C);for(Dt(B.beforeSanitizeShadowDOM,C,null);I=X.nextNode();)Dt(B.uponSanitizeShadowNode,I,null),cc(I),fc(I),I.content instanceof u&&Z(I.content);Dt(B.afterSanitizeShadowDOM,C,null)};return t.sanitize=function(Z){let C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=null,X=null,ge=null,Le=null;if(Io=!Z,Io&&(Z="<!-->"),typeof Z!="string"&&!sc(Z))if(typeof Z.toString=="function"){if(Z=Z.toString(),typeof Z!="string")throw jn("dirty is not a string, aborting")}else throw jn("toString is not a function");if(!t.isSupported)return Z;if(hu||Mo(C),t.removed=[],typeof Z=="string"&&(mu=!1),mu){if(Z.nodeName){const St=we(Z.nodeName);if(!Q[St]||J[St])throw jn("root node is forbidden and cannot be sanitized in-place")}}else if(Z instanceof s)I=ic("<!---->"),X=I.ownerDocument.importNode(Z,!0),X.nodeType===$n.element&&X.nodeName==="BODY"||X.nodeName==="HTML"?I=X:I.appendChild(X);else{if(!_t&&!lt&&!dt&&Z.indexOf("<")===-1)return w&&ar?w.createHTML(Z):Z;if(I=ic(Z),!I)return _t?null:ar?v:""}I&&pu&&Ct(I.firstChild);const xe=ac(mu?Z:I);for(;ge=xe.nextNode();)cc(ge),fc(ge),ge.content instanceof u&&z2(ge.content);if(mu)return Z;if(_t){if(ir)for(Le=F.call(I.ownerDocument);I.firstChild;)Le.appendChild(I.firstChild);else Le=I;return(L.shadowroot||L.shadowrootmode)&&(Le=P.call(r,Le,!0)),Le}let ze=dt?I.outerHTML:I.innerHTML;return dt&&Q["!doctype"]&&I.ownerDocument&&I.ownerDocument.doctype&&I.ownerDocument.doctype.name&&Re(qi,I.ownerDocument.doctype.name)&&(ze="<!DOCTYPE "+I.ownerDocument.doctype.name+`>
17
+ `+ze),lt&&Nu([j,D,R],St=>{ze=Bn(ze,St," ")}),w&&ar?w.createHTML(ze):ze},t.setConfig=function(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Mo(Z),hu=!0},t.clearConfig=function(){Dn=null,hu=!1},t.isValidAttribute=function(Z,C,I){Dn||Mo({});const X=we(Z),ge=we(C);return lc(X,ge,I)},t.addHook=function(Z,C){typeof C=="function"&&Vn(B[Z],C)},t.removeHook=function(Z,C){if(C!==void 0){const I=fd(B[Z],C);return I===-1?void 0:hd(B[Z],I,1)[0]}return zi(B[Z])},t.removeHooks=function(Z){B[Z]=[]},t.removeAllHooks=function(){B=Zi()},t}var Td=Yi();const Ki={content:{type:Object,required:!0}},Nd=new Ue({html:!0,linkify:!0});function Od(e){const t=e.split(`
18
+ `),n=t.filter(o=>o.trim().length>0);if(n.length===0)return e.trim();const r=Math.min(...n.map(o=>{var u;return(((u=o.match(/^\s*/))==null?void 0:u[0])??"").length}));return t.map(o=>o.slice(r)).join(`
19
+ `).trim()}const ln=a.defineComponent({name:"FXMarkdownMessage",props:Ki,setup(e){const t=a.computed(()=>{var u;const n=(((u=e.content)==null?void 0:u.content)??"").replace(/\\n/g,`
20
+ `),r=Od(n);if(!r)return"";const o=Nd.render(r);return Td.sanitize(o,{ADD_TAGS:["style"],ADD_ATTR:["style","align","valign","colspan","rowspan","scope","title"]})});return()=>{var r;const n=(r=e.content)==null?void 0:r.message;return a.createVNode("div",{class:"f-chat-message-markdown"},[n&&a.createVNode("div",{class:"f-chat-markdown-message"},[n]),a.createVNode("div",{class:"f-chat-markdown-content",innerHTML:t.value},null)])}}});ln.install=e=>{e.component(ln.name,ln)};function Ld(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Id(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Rd=function(){function e(n){var r=this;this._insertTag=function(o){var u;r.tags.length===0?r.insertionPoint?u=r.insertionPoint.nextSibling:r.prepend?u=r.container.firstChild:u=r.before:u=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,u),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Id(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var u=Ld(o);try{u.insertRule(r,u.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Ne="-ms-",Iu="-moz-",ie="-webkit-",Qi="comm",Gr="rule",Wr="decl",Md="@import",Ji="@keyframes",Pd="@layer",Vd=Math.abs,Ru=String.fromCharCode,Bd=Object.assign;function jd(e,t){return Fe(e,0)^45?(((t<<2^Fe(e,0))<<2^Fe(e,1))<<2^Fe(e,2))<<2^Fe(e,3):0}function ea(e){return e.trim()}function zd(e,t){return(e=t.exec(e))?e[0]:e}function ae(e,t,n){return e.replace(t,n)}function qr(e,t){return e.indexOf(t)}function Fe(e,t){return e.charCodeAt(t)|0}function Un(e,t,n){return e.slice(t,n)}function bt(e){return e.length}function Xr(e){return e.length}function Mu(e,t){return t.push(e),e}function $d(e,t){return e.map(t).join("")}var Pu=1,dn=1,ta=0,je=0,be=0,fn="";function Vu(e,t,n,r,o,u,i){return{value:e,root:t,parent:n,type:r,props:o,children:u,line:Pu,column:dn,length:i,return:""}}function Hn(e,t){return Bd(Vu("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ud(){return be}function Hd(){return be=je>0?Fe(fn,--je):0,dn--,be===10&&(dn=1,Pu--),be}function Ge(){return be=je<ta?Fe(fn,je++):0,dn++,be===10&&(dn=1,Pu++),be}function yt(){return Fe(fn,je)}function Bu(){return je}function Gn(e,t){return Un(fn,e,t)}function Wn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function na(e){return Pu=dn=1,ta=bt(fn=e),je=0,[]}function ua(e){return fn="",e}function ju(e){return ea(Gn(je-1,Zr(e===91?e+2:e===40?e+1:e)))}function Gd(e){for(;(be=yt())&&be<33;)Ge();return Wn(e)>2||Wn(be)>3?"":" "}function Wd(e,t){for(;--t&&Ge()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return Gn(e,Bu()+(t<6&&yt()==32&&Ge()==32))}function Zr(e){for(;Ge();)switch(be){case e:return je;case 34:case 39:e!==34&&e!==39&&Zr(be);break;case 40:e===41&&Zr(e);break;case 92:Ge();break}return je}function qd(e,t){for(;Ge()&&e+be!==57;)if(e+be===84&&yt()===47)break;return"/*"+Gn(t,je-1)+"*"+Ru(e===47?e:Ge())}function Xd(e){for(;!Wn(yt());)Ge();return Gn(e,je)}function Zd(e){return ua(zu("",null,null,null,[""],e=na(e),0,[0],e))}function zu(e,t,n,r,o,u,i,s,c){for(var d=0,f=0,l=i,p=0,m=0,h=0,b=1,A=1,k=1,g=0,y="",w=o,v=u,E=r,_=y;A;)switch(h=g,g=Ge()){case 40:if(h!=108&&Fe(_,l-1)==58){qr(_+=ae(ju(g),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:_+=ju(g);break;case 9:case 10:case 13:case 32:_+=Gd(h);break;case 92:_+=Wd(Bu()-1,7);continue;case 47:switch(yt()){case 42:case 47:Mu(Yd(qd(Ge(),Bu()),t,n),c);break;default:_+="/"}break;case 123*b:s[d++]=bt(_)*k;case 125*b:case 59:case 0:switch(g){case 0:case 125:A=0;case 59+f:k==-1&&(_=ae(_,/\f/g,"")),m>0&&bt(_)-l&&Mu(m>32?oa(_+";",r,n,l-1):oa(ae(_," ","")+";",r,n,l-2),c);break;case 59:_+=";";default:if(Mu(E=ra(_,t,n,d,f,o,s,y,w=[],v=[],l),u),g===123)if(f===0)zu(_,t,E,E,w,u,l,s,v);else switch(p===99&&Fe(_,3)===110?100:p){case 100:case 108:case 109:case 115:zu(e,E,E,r&&Mu(ra(e,E,E,0,0,o,s,y,o,w=[],l),v),o,v,l,s,r?w:v);break;default:zu(_,E,E,E,[""],v,0,s,v)}}d=f=m=0,b=k=1,y=_="",l=i;break;case 58:l=1+bt(_),m=h;default:if(b<1){if(g==123)--b;else if(g==125&&b++==0&&Hd()==125)continue}switch(_+=Ru(g),g*b){case 38:k=f>0?1:(_+="\f",-1);break;case 44:s[d++]=(bt(_)-1)*k,k=1;break;case 64:yt()===45&&(_+=ju(Ge())),p=yt(),f=l=bt(y=_+=Xd(Bu())),g++;break;case 45:h===45&&bt(_)==2&&(b=0)}}return u}function ra(e,t,n,r,o,u,i,s,c,d,f){for(var l=o-1,p=o===0?u:[""],m=Xr(p),h=0,b=0,A=0;h<r;++h)for(var k=0,g=Un(e,l+1,l=Vd(b=i[h])),y=e;k<m;++k)(y=ea(b>0?p[k]+" "+g:ae(g,/&\f/g,p[k])))&&(c[A++]=y);return Vu(e,t,n,o===0?Gr:s,c,d,f)}function Yd(e,t,n){return Vu(e,t,n,Qi,Ru(Ud()),Un(e,2,-2),0)}function oa(e,t,n,r){return Vu(e,t,n,Wr,Un(e,0,r),Un(e,r+1,-1),r)}function hn(e,t){for(var n="",r=Xr(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Kd(e,t,n,r){switch(e.type){case Pd:if(e.children.length)break;case Md:case Wr:return e.return=e.return||e.value;case Qi:return"";case Ji:return e.return=e.value+"{"+hn(e.children,r)+"}";case Gr:e.value=e.props.join(",")}return bt(n=hn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Qd(e){var t=Xr(e);return function(n,r,o,u){for(var i="",s=0;s<t;s++)i+=e[s](n,r,o,u)||"";return i}}function Jd(e){return function(t){t.root||(t=t.return)&&e(t)}}function ef(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var tf=function(t,n,r){for(var o=0,u=0;o=u,u=yt(),o===38&&u===12&&(n[r]=1),!Wn(u);)Ge();return Gn(t,je)},nf=function(t,n){var r=-1,o=44;do switch(Wn(o)){case 0:o===38&&yt()===12&&(n[r]=1),t[r]+=tf(je-1,n,r);break;case 2:t[r]+=ju(o);break;case 4:if(o===44){t[++r]=yt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ru(o)}while(o=Ge());return t},uf=function(t,n){return ua(nf(na(t),n))},ia=new WeakMap,rf=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!ia.get(r))&&!o){ia.set(t,!0);for(var u=[],i=uf(n,u),s=r.props,c=0,d=0;c<i.length;c++)for(var f=0;f<s.length;f++,d++)t.props[d]=u[c]?i[c].replace(/&\f/g,s[f]):s[f]+" "+i[c]}}},of=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function aa(e,t){switch(jd(e,t)){case 5103:return ie+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ie+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ie+e+Iu+e+Ne+e+e;case 6828:case 4268:return ie+e+Ne+e+e;case 6165:return ie+e+Ne+"flex-"+e+e;case 5187:return ie+e+ae(e,/(\w+).+(:[^]+)/,ie+"box-$1$2"+Ne+"flex-$1$2")+e;case 5443:return ie+e+Ne+"flex-item-"+ae(e,/flex-|-self/,"")+e;case 4675:return ie+e+Ne+"flex-line-pack"+ae(e,/align-content|flex-|-self/,"")+e;case 5548:return ie+e+Ne+ae(e,"shrink","negative")+e;case 5292:return ie+e+Ne+ae(e,"basis","preferred-size")+e;case 6060:return ie+"box-"+ae(e,"-grow","")+ie+e+Ne+ae(e,"grow","positive")+e;case 4554:return ie+ae(e,/([^-])(transform)/g,"$1"+ie+"$2")+e;case 6187:return ae(ae(ae(e,/(zoom-|grab)/,ie+"$1"),/(image-set)/,ie+"$1"),e,"")+e;case 5495:case 3959:return ae(e,/(image-set\([^]*)/,ie+"$1$`$1");case 4968:return ae(ae(e,/(.+:)(flex-)?(.*)/,ie+"box-pack:$3"+Ne+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ie+e+e;case 4095:case 3583:case 4068:case 2532:return ae(e,/(.+)-inline(.+)/,ie+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(bt(e)-1-t>6)switch(Fe(e,t+1)){case 109:if(Fe(e,t+4)!==45)break;case 102:return ae(e,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+Iu+(Fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~qr(e,"stretch")?aa(ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Fe(e,t+1)!==115)break;case 6444:switch(Fe(e,bt(e)-3-(~qr(e,"!important")&&10))){case 107:return ae(e,":",":"+ie)+e;case 101:return ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ie+(Fe(e,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+Ne+"$2box$3")+e}break;case 5936:switch(Fe(e,t+11)){case 114:return ie+e+Ne+ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ie+e+Ne+ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ie+e+Ne+ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ie+e+Ne+e+e}return e}var af=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Wr:t.return=aa(t.value,t.length);break;case Ji:return hn([Hn(t,{value:ae(t.value,"@","@"+ie)})],o);case Gr:if(t.length)return $d(t.props,function(u){switch(zd(u,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hn([Hn(t,{props:[ae(u,/:(read-\w+)/,":"+Iu+"$1")]})],o);case"::placeholder":return hn([Hn(t,{props:[ae(u,/:(plac\w+)/,":"+ie+"input-$1")]}),Hn(t,{props:[ae(u,/:(plac\w+)/,":"+Iu+"$1")]}),Hn(t,{props:[ae(u,/:(plac\w+)/,Ne+"input-$1")]})],o)}return""})}},sf=[af],cf=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(b){var A=b.getAttribute("data-emotion");A.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var o=t.stylisPlugins||sf,u={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(b){for(var A=b.getAttribute("data-emotion").split(" "),k=1;k<A.length;k++)u[A[k]]=!0;s.push(b)});var c,d=[rf,of];{var f,l=[Kd,Jd(function(b){f.insert(b)})],p=Qd(d.concat(o,l)),m=function(A){return hn(Zd(A),p)};c=function(A,k,g,y){f=g,m(A?A+"{"+k.styles+"}":k.styles),y&&(h.inserted[k.name]=!0)}}var h={key:n,sheet:new Rd({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:u,registered:{},insert:c};return h.sheet.hydrate(s),h};function lf(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var df={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ff=/[A-Z]|^ms/g,hf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sa=function(t){return t.charCodeAt(1)===45},ca=function(t){return t!=null&&typeof t!="boolean"},Yr=ef(function(e){return sa(e)?e:e.replace(ff,"-$&").toLowerCase()}),la=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(hf,function(r,o,u){return Rt={name:o,styles:u,next:Rt},o})}return df[t]!==1&&!sa(t)&&typeof n=="number"&&n!==0?n+"px":n};function $u(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Rt={name:o.name,styles:o.styles,next:Rt},o.name;var u=n;if(u.styles!==void 0){var i=u.next;if(i!==void 0)for(;i!==void 0;)Rt={name:i.name,styles:i.styles,next:Rt},i=i.next;var s=u.styles+";";return s}return pf(e,t,n)}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function pf(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=$u(e,t,n[o])+";";else for(var u in n){var i=n[u];if(typeof i!="object"){var s=i;t!=null&&t[s]!==void 0?r+=u+"{"+t[s]+"}":ca(s)&&(r+=Yr(u)+":"+la(u,s)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var c=0;c<i.length;c++)ca(i[c])&&(r+=Yr(u)+":"+la(u,i[c])+";");else{var d=$u(e,t,i);switch(u){case"animation":case"animationName":{r+=Yr(u)+":"+d+";";break}default:r+=u+"{"+d+"}"}}}return r}var da=/label:\s*([^\s;{]+)\s*(;|$)/g,Rt;function Kr(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Rt=void 0;var u=e[0];if(u==null||u.raw===void 0)r=!1,o+=$u(n,t,u);else{var i=u;o+=i[0]}for(var s=1;s<e.length;s++)if(o+=$u(n,t,e[s]),r){var c=u;o+=c[s]}da.lastIndex=0;for(var d="",f;(f=da.exec(o))!==null;)d+="-"+f[1];var l=lf(o)+d;return{name:l,styles:o,next:Rt}}function fa(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var mf=function(t,n,r){var o=t.key+"-"+n.name;t.registered[o]===void 0&&(t.registered[o]=n.styles)},gf=function(t,n,r){mf(t,n);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var u=n;do t.insert(n===u?"."+o:"",u,t.sheet,!0),u=u.next;while(u!==void 0)}};function ha(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function pa(e,t,n){var r=[],o=fa(e,r,n);return r.length<2?n:o+t(r)}var bf=function(t){var n=cf(t);n.sheet.speedy=function(s){this.isSpeedy=s},n.compat=!0;var r=function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];var l=Kr(d,n.registered,void 0);return gf(n,l),n.key+"-"+l.name},o=function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];var l=Kr(d,n.registered),p="animation-"+l.name;return ha(n,{name:l.name,styles:"@keyframes "+p+"{"+l.styles+"}"}),p},u=function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];var l=Kr(d,n.registered);ha(n,l)},i=function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];return pa(n.registered,r,yf(d))};return{css:r,cx:i,injectGlobal:u,keyframes:o,hydrate:function(c){c.forEach(function(d){n.inserted[d]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:fa.bind(null,n.registered),merge:pa.bind(null,n.registered,r)}},yf=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(o!=null){var u=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))u=e(o);else{u="";for(var i in o)o[i]&&i&&(u&&(u+=" "),u+=i)}break}default:u=o}u&&(n&&(n+=" "),n+=u)}}return n},xf=bf({key:"css"}),Qr=xf.css,Af=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ma={exports:{}};/*!
21
+ Copyright (c) 2018 Jed Watson.
22
+ Licensed under the MIT License (MIT), see
23
+ http://jedwatson.github.io/classnames
24
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var u="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(u=o(u,r(s)))}return u}function r(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return n.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var i="";for(var s in u)t.call(u,s)&&u[s]&&(i=o(i,s));return i}function o(u,i){return i?u?u+" "+i:u+i:u}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(ma);var kf=ma.exports;const Jr=wf(kf),ga={className:{type:String,default:""},viewStatus:{type:String,default:"full"},widgetAPIURL:{type:String,default:""},widgetOptions:{type:Object,default:()=>({mode:"embedded",implOptions:{}})},widgetData:{type:Object,default:()=>({})}};class vf{constructor(t){le(this,"root");if(!t)throw new Error("parentElement is required");this.root=document.createElement("div"),this.root.className="fx-card-container-stage__root",t.appendChild(this.root)}dispose(){this.root.remove()}getElement(){return this.root}}function Cf(){function e(t,n){if(t===n)return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null||Array.isArray(t)!==Array.isArray(n))return!1;const r=Object.keys(t),o=Object.keys(n);if(r.length!==o.length)return!1;for(const u of r)if(!o.includes(u)||!e(t[u],n[u]))return!1;return!0}return{deepEqual:e}}var eo={exports:{}};(function(e,t){(function(n,r){r(t)})(Af,function(n){var r=Object.defineProperty,o=Object.defineProperties,u=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,d=(N,L,$)=>L in N?r(N,L,{enumerable:!0,configurable:!0,writable:!0,value:$}):N[L]=$,f=(N,L)=>{for(var $ in L||(L={}))s.call(L,$)&&d(N,$,L[$]);if(i)for(var $ of i(L))c.call(L,$)&&d(N,$,L[$]);return N},l=(N,L)=>o(N,u(L)),p=(N,L,$)=>new Promise((G,J)=>{var oe=fe=>{try{re($.next(fe))}catch(_e){J(_e)}},ne=fe=>{try{re($.throw(fe))}catch(_e){J(_e)}},re=fe=>fe.done?G(fe.value):Promise.resolve(fe.value).then(oe,ne);re(($=$.apply(N,L)).next())}),m=(N=>(N[N.NONE=0]="NONE",N[N.LOADING=1]="LOADING",N[N.LOADED=2]="LOADED",N[N.ERROR=3]="ERROR",N))(m||{});class h{constructor(L){this.items={},this.factory=L}getOrCreateItemByURL(L){let $=this.items[L];return $||($=this.items[L]=this.factory(L)),$}tryGetItemByURL(L){var $;return($=this.items[L])!=null?$:null}removeItemByURL(L){const $=this.items[L];return $&&(this.items[L]=null,$)}}const b="__RUNTIME_IMPORT__";function A(N,L){var $,G;const J=globalThis,oe=($=J[b])!=null?$:J[b]={};return(G=oe[N])!=null?G:oe[N]=L()}const k=A("cssCache",()=>new h(N=>({url:N,status:m.NONE,el:null,error:null,reject:null})));function g(N,L,$){const G={handleLoad(){N.removeEventListener("load",G.handleLoad),N.removeEventListener("error",G.handleError),L()},handleError(J){N.removeEventListener("load",G.handleLoad),N.removeEventListener("error",G.handleError),$(J)}};N.addEventListener("load",G.handleLoad),N.addEventListener("error",G.handleError)}function y(N){const L=k.getOrCreateItemByURL(N),{status:$,error:G}=L;return $===m.LOADED?Promise.resolve():$===m.ERROR?Promise.reject(G):$===m.LOADING?new Promise((J,oe)=>{const{el:ne}=L;g(ne,()=>J(),re=>oe(re.error))}):(L.status=m.LOADING,new Promise((J,oe)=>{const ne=document.createElement("link");ne.rel="stylesheet",ne.href=N,g(ne,()=>{L.status=m.LOADED,J()},re=>{const fe=re.error||new Error(`Load css failed. href=${N}`);L.status=m.ERROR,L.error=fe,oe(fe)}),L.el=ne,ne.setAttribute("data-runtime-import-type","css"),document.head.appendChild(ne)}))}function w(N){return Promise.all(N.map(L=>y(L))).then(()=>Promise.resolve()).catch(L=>Promise.reject(L))}const v=A("jsCache",()=>new h(N=>({url:N,status:m.NONE,el:null,error:null,reject:null,exportThing:void 0}))),E=globalThis,{define:_}=E,{keys:F}=Object;let q=!1;typeof _<"u"&&!_.runtime_import&&(console.warn("runtime-import should NOT coexist with requiesjs or seajs or any other AMD/CMD loader."),q=!0);const P=A("pendingItemMap",()=>({})),B=function(...N){const L=N.pop(),{currentScript:$}=document;if(!$)throw new Error("currentScript is null.");const{src:G}=$,J=P[G];if(!J)throw new Error(`Can NOT find item, src=${G}`);P[G]=null;try{let oe=N[0]||[],ne=null;typeof oe=="string"&&(ne=oe,oe=N[1]||[]);const re=J.exportThing=(()=>{let fe=!1;const _e={};let kt=L(...oe.map(lt=>lt==="exports"?(fe=!0,_e):E[lt]));return!kt&&fe&&(kt=_e),kt})();ne&&(E[ne]=re),re&&F(re).length===1&&re.default&&(J.exportThing=re.default,J.exportThing.default=re.default)}catch(oe){J.status=m.ERROR,oe instanceof Error&&(J.error=oe),J.reject(oe)}},j=()=>{const{currentScript:N}=document;if(N){const{src:L}=N;if(P[L])return!0}return!1};["amd","cmd"].forEach(N=>{Object.defineProperty(B,N,{get:j})}),B.runtime_import=!0;function D(N,L){if(q)throw new Error("runtime-import UMD mode uses window.define, you should NOT have your own window.define.");E.define||(E.define=B),P[N]=L}function R(N){const L=/legao-comp\/(.*)\/[\d.]+\/web.js$/.exec(N),$=window;if(L&&L.length>0){const G=L[1];$.g_config=$.g_config||{},$.g_config.appKey=G}}function M(N,L,$){N.status=m.LOADING,R(L);const{umd:G,crossOrigin:J}=$;return new Promise((oe,ne)=>{const re=document.createElement("script");if(re.src=L,re.async=!1,re.crossOrigin=J,G){re.setAttribute("data-runtime-import-type","javascript-umd"),N.reject=ne;const fe=re.src;D(fe,N)}else re.setAttribute("data-runtime-import-type","javascript");g(re,()=>{N.status=m.LOADED,N.el=null,oe(N.exportThing)},fe=>{const _e=fe.error||new Error(`Load javascript failed. src=${L}`);N.status=m.ERROR,N.error=_e,N.el=null,ne(_e)}),N.el=re,document.body.appendChild(re)})}function S(N,L){const $=v.getOrCreateItemByURL(N),{status:G,exportThing:J,error:oe}=$;if(G===m.LOADED)return Promise.resolve(J);if(G===m.ERROR)return Promise.reject(oe);if(G===m.LOADING){const{el:ne}=$;return new Promise((re,fe)=>{g(ne,()=>re($.exportThing),_e=>fe(_e.error))})}return M($,N,L)}function H(N,L){let $=Promise.resolve();const G=N.length-1,{umd:J}=L;return N.forEach((oe,ne)=>{const re=J&&ne===G;$=$.then(()=>S(oe,l(f({},L),{umd:re})))}),$}function O(N){return p(this,null,function*(){const{scripts:L,styles:$}=N;if($){const{urls:re}=$;yield w(re)}const{dependencies:G=[],entry:J,umd:oe=!0,crossOrigin:ne="anonymous"}=L;if((J?G.concat([J]):G).length)return yield H(G.concat([J]),{umd:oe,crossOrigin:ne})})}function U(N,L){return p(this,null,function*(){const $=L??{};return yield O({scripts:{dependencies:[],entry:N,umd:$.umd,crossOrigin:$.crossOrigin}})})}function te(N){return p(this,null,function*(){return yield O({scripts:{dependencies:[],entry:""},styles:{urls:[N]}})})}const Q=O;n.importComponent=O,n.importModule=Q,n.importScript=U,n.importStyle=te,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(eo,eo.exports);var Ef=eo.exports;function _f(){async function e(t){return await Ef.importScript(t)}return{loadWidgetAPI:e}}const pn=a.defineComponent({name:"FXWidgetContainer",props:ga,setup(e,t){const{loadWidgetAPI:n}=_f(),{deepEqual:r}=Cf(),o=a.ref(null),u=a.ref(null),i=a.ref(null),s=a.ref(null),c=a.ref(null),d=a.computed(()=>{const g=Qr`width:100%!important`;return Jr("caf-assistant-widget-container__root",g,e.className)}),f=Qr`
25
+ overflow: hidden;
26
+ `,l=Jr("caf-assistant-widget-container__inner",f),p=a.computed(()=>{const g=Qr`
27
+ display: ${c.value?"block":"none"};
28
+ `;return Jr("caf-assistant-widget-container__error",g)}),m=()=>{const g=i.value;g&&(s.value=new vf(g))},h=()=>{const g=s.value;g&&(g.dispose(),s.value=null)},b=()=>{const g=u.value,y=o.value;g&&(g.unmount(),g.dispose()),y&&y.cleanup(),u.value=null,o.value=null},A=async()=>{const g=await n(e.widgetAPIURL);if(!g)throw new Error("Failed to load widget API");await g.initialize();const y=g.createWidget();o.value=g,u.value=y},k=g=>{console.error(g),c.value=g};return a.watch(()=>e.widgetAPIURL,async()=>{if(i.value)try{b(),await A();const g=i.value,y=u.value;y==null||y.updateOptions(e.widgetOptions),y==null||y.updateData(e.widgetData),g&&y&&await y.mount(g)}catch(g){k(g)}}),a.watch(()=>e.widgetOptions,(g,y)=>{try{const w=u.value;w&&(!y||!r(y,g))&&w.updateOptions(g)}catch(w){k(w)}}),a.watch(()=>e.widgetData,(g,y)=>{try{const w=u.value;w&&(!y||!r(y,g))&&w.updateData(g)}catch(w){k(w)}}),a.onMounted(async()=>{try{const g=i.value;if(g){m();const y=s.value;if(y){await A();const w=u.value;w&&(w.updateOptions(e.widgetOptions),w.updateData(e.widgetData),w.mount(y.getElement()),a.nextTick(()=>{g.parentElement&&(g.style.width="100%")}))}}}catch(g){k(g)}}),a.onBeforeUnmount(async()=>{try{b(),h()}catch(g){console.error(g)}}),()=>a.createVNode("div",{class:d.value},[a.createVNode("div",{ref:i,class:l},null),a.createVNode("div",{class:p.value},null)])}}),Ff=/^```\s*dynamic-component[\s\S]*?```$/,Df=/^```\s*dynamic-component/;function Sf(e){return e.replace(/```\s*\n*\s*dynamic-component/g,"``` dynamic-component")}function ba(e){return e?Ff.test(e)||Df.test(e):!1}function Tf(e){const t=e.replace(/```\s*dynamic-component\s*\n?/,"").replace(/\n?\s*```/,"").trim();if(!t)return null;let n;try{n=JSON.parse(t)}catch{return null}if(!n||typeof n!="object"||Array.isArray(n))return null;const r=n;return typeof r.id!="string"||typeof r.jsUrl!="string"?null:{id:r.id,jsUrl:r.jsUrl,renderArea:r.renderArea==="preview"?"preview":"inline",title:typeof r.title=="string"?r.title:void 0,width:typeof r.width=="string"?r.width:void 0,height:typeof r.height=="string"?r.height:void 0}}function Nf(e){const t=e.replace(/```\s*dynamic-component\s*\n?/,"").replace(/\n?\s*```/,"").trim();if(!t)return null;const n=t.match(/"renderArea"\s*:\s*"(inline|preview)"/);return n?{renderArea:n[1]}:null}function Of(e){if(!e)return[];const t="``` dynamic-component",n="```",r=[];let o=0;for(;o<e.length;){const u=e.indexOf(t,o);if(u===-1){const m=e.slice(o);m&&r.push(m);break}let i=u+t.length;const s=e.lastIndexOf("```",u),c=s>=0&&s<u+3?s:u,d=e.slice(o,c);d&&r.push(d);const f=e.indexOf(n,i);if(f===-1){r.push(e.slice(c));break}const l=f+n.length,p=e.slice(c,l);r.push(Sf(p)),o=l}return r.filter(u=>u.length>0)}const Lf=3e4,xt=new Map,Uu=new Map;function If(e){const t=`fluens-dynamic-component-${e.id}`;let n=document.getElementById(t);return n||(n=document.createElement("div"),n.id=t,n.style.width="100%",n.style.height="100%"),n}function ya(e){const t=Uu.get(e.id);if(t)return Promise.resolve(t.api);const n=xt.get(e.id);if(n)return new Promise((o,u)=>{const i=n.resolve,s=n.reject;n.resolve=c=>{i(c),o(c)},n.reject=c=>{s(c),u(c)}});const r=If(e);return new Promise((o,u)=>{const i=setTimeout(()=>{xt.delete(e.id),u(new Error(`Dynamic component script load timeout: ${e.jsUrl}`))},Lf),s={config:e,container:r,resolve:o,reject:u,timeoutId:i};xt.set(e.id,s);const c=document.createElement("script");c.src=e.jsUrl,c.dataset.dynamicComponentId=e.id,c.onload=()=>{setTimeout(()=>{xt.has(e.id)&&(clearTimeout(i),xt.delete(e.id),u(new Error(`Dynamic component did not call __fluens_dynamic_component_register: ${e.jsUrl}`)))},200)},c.onerror=()=>{clearTimeout(i),xt.delete(e.id),u(new Error(`Failed to load dynamic component: ${e.jsUrl}`))},document.head.appendChild(c)})}function xa(e){var o;const t=Uu.get(e);if(t){try{t.api.unmount()}catch{}(o=t.scriptElement)==null||o.remove(),Uu.delete(e)}const n=xt.get(e);n&&(clearTimeout(n.timeoutId),xt.delete(e));const r=document.getElementById(`fluens-dynamic-component-${e}`);r&&r.remove()}window.__fluens_dynamic_component_register=function(e,t){const n=xt.get(e);if(!n){console.warn(`Failed to read data in pending dynamic component: ${e}`);return}clearTimeout(n.timeoutId),xt.delete(e);const r={config:n.config,container:n.container,api:t,scriptElement:document.currentScript};Uu.set(e,r),r.container.parentElement;try{t.mount(n.container,n.config)}catch(o){console.error(`Failed to mount dynamic component: ${e}`,o)}n.resolve(t)};const mn=a.defineComponent({name:"FXDynamicComponent",props:{config:{type:Object,required:!0}},setup(e){const t=a.ref("loading"),n=a.ref(""),r=a.computed(()=>`fluens-dynamic-component-${e.config.id}`),o=a.computed(()=>({width:e.config.width||"100%",height:e.config.height||"400px"}));return a.onMounted(()=>{t.value="loading",n.value="",ya(e.config).then(()=>{t.value="ready"}).catch(u=>{t.value="error",n.value=u.message||"Unknown error"})}),a.onUnmounted(()=>{xa(e.config.id)}),()=>a.createVNode("div",{class:"f-chat-dynamic-component-body",style:o.value},[a.createVNode("div",{id:r.value,style:{width:"100%",height:"100%"}},null),t.value==="loading"&&a.createVNode("div",{class:"f-chat-dynamic-component-loading"},[a.createVNode("span",{class:"f-chat-dynamic-component-loading-spinner"},null),a.createVNode("span",null,[a.createTextVNode("加载中......")])]),t.value==="error"&&a.createVNode("div",{class:"f-chat-dynamic-component-error"},[a.createVNode("span",{class:"f-chat-dynamic-component-error-icon"},[a.createTextVNode("!")]),a.createVNode("span",null,[n.value])])])}}),Rf=a.defineComponent({name:"FXBubbleTextContent",props:Tc,emits:["dynamicComponentsDetected"],setup(e,t){const{propertyStates:n,registerProperty:r,updatePropertyValue:o,startStreaming:u}=Au();r("title",e.title??""),r("subtitle",e.subtitle??""),r("text",e.text??""),a.watch([()=>e.title,()=>e.subtitle,()=>e.text],([l,p,m])=>{o("title",l??""),o("subtitle",p??""),o("text",m??"")});const i=a.computed(()=>e.textFormat==="markdown"),s=a.ref(!1),c=a.computed(()=>{var l,p,m;return s.value?{title:((l=n.title)==null?void 0:l.displayedValue)??"",subtitle:((p=n.subtitle)==null?void 0:p.displayedValue)??"",text:((m=n.text)==null?void 0:m.displayedValue)??""}:{title:e.title,subtitle:e.subtitle,text:e.text}}),d=a.computed(()=>{const l=Oc(c.value.text),p=[];for(const m of l)yr(m)?p.push(m):p.push(...Of(m));return p}),f=()=>d.value.length===0?null:a.createVNode("div",{class:"f-chat-bubble-text-collection"},[d.value.map((l,p)=>{var m;if(yr(l)&&l.endsWith("```")){const h=Zo(l),b=(m=h==null?void 0:h.renderer)==null?void 0:m.url;return b?a.createVNode(pn,{key:`widget-${p}`,widgetAPIURL:b,widgetOptions:{mode:"embedded",implOptions:Lc(l)},widgetData:h.data||{}},null):null}else{if(yr(l))return a.createVNode("div",{class:"f-chat-bubble-widget-pending",key:`widget-loading-${p}`},[a.createVNode("span",{class:"f-chat-todo-status-icon f-chat-todo-status-working"},null),a.createVNode("span",{class:"f-chat-bubble-widget-pending-text"},[a.createTextVNode("数据生成中......")])]);if(ba(l)&&l.endsWith("```")){const h=Tf(l);return h?h.renderArea==="inline"?a.createVNode(mn,{key:`dc-new-${p}`,config:h},null):(a.nextTick(()=>t.emit("dynamicComponentsDetected",[h])),null):null}else if(ba(l)){const h=Nf(l);return(h==null?void 0:h.renderArea)==="preview"?null:a.createVNode("div",{class:"f-chat-bubble-widget-pending",key:`dynamic-component-new-loading-${p}`},[a.createVNode("span",{class:"f-chat-todo-status-icon f-chat-todo-status-working"},null),a.createVNode("span",{class:"f-chat-bubble-widget-pending-text"},[a.createTextVNode("组件加载中......")])])}else if(l!=null&&l.trim())return i.value?a.createVNode(ln,{style:{border:"0px none rgb(51, 51, 51)",borderRadius:0,boxShadow:"none",padding:0},content:{type:"markdown",message:"",content:l}},null):a.createVNode("div",{class:"f-chat-bubble-content-text",key:`bubble-text-${p}`},[l])}return null})]);return a.onMounted(()=>{s.value&&u()}),()=>a.createVNode(a.Fragment,null,[c.value.title&&a.createVNode("div",{class:"f-chat-bubble-content-title"},[c.value.title]),c.value.subtitle&&a.createVNode("div",{class:"f-chat-bubble-content-subtitle"},[c.value.subtitle]),f()])}}),Mf={content:{type:Object},outputMode:{type:String,default:"full"}};function Hu({status:e}){const t=`f-chat-todo-status-icon f-chat-todo-status-${e.toLowerCase()}`;return a.createVNode("span",{class:t,"aria-hidden":!0},null)}const Aa=100,Pf=a.defineComponent({name:"FXBubbleThink",props:Mf,setup(e,t){var q;const{propertyStates:n,registerProperty:r,updatePropertyValue:o,isAllDone:u}=Au(),{elapsedSeconds:i,hasEverStarted:s,start:c,stop:d,reset:f}=br(),l=a.ref(((q=e.content)==null?void 0:q.completed)!==!0),p=a.ref(null),m=a.ref(null),h=a.ref(!1),b=a.ref(!1),A=a.computed(()=>e.outputMode==="streaming"),k=a.computed(()=>{var P;return(P=e.content)==null?void 0:P.completed}),g=a.computed(()=>{var R,M,S;const P=(R=y.value)==null?void 0:R.trim(),B=P?P.slice(0,8):"",j=B?`<span class="f-chat-bubble-thinking-preview">${B}</span>`:"";if(k.value){const H=s.value?`(用时${i.value}秒)`:"";return(((M=e.content)==null?void 0:M.title)??"思考完成"+H)+j}return(((S=e.content)==null?void 0:S.title)??"正在思考......")+j}),y=a.computed(()=>{var P,B;return A.value?((P=n.content)==null?void 0:P.displayedValue)??"":((B=e.content)==null?void 0:B.content)??""}),w=a.computed(()=>({"f-chat-bubble-thinking":!0,"is-pending":!k.value,"is-completed":k.value})),v=()=>{const P=p.value;if(!P||!h.value){b.value=!1;return}b.value=P.scrollTop>0};a.watch(()=>k.value,P=>{P?d():c()},{immediate:!0}),a.watch(()=>k.value,P=>{P&&(l.value=!1)}),a.watch(()=>e.content,P=>{P&&(n.content?o("content",P.content??""):r("content",P.content??""))},{immediate:!0}),a.watch(y,async()=>{if(l.value){await a.nextTick();const P=m.value;if(!P)return;await a.nextTick(),h.value=P.scrollHeight>Aa;const B=p.value;B&&h.value&&(B.scrollTop=B.scrollHeight,b.value=!0)}},{immediate:!0}),a.watch(l,async P=>{if(P){await a.nextTick();const B=m.value;if(!B)return;await a.nextTick(),h.value=B.scrollHeight>Aa;const j=p.value;j&&h.value&&(j.scrollTop=j.scrollHeight,b.value=!0)}}),a.onUnmounted(()=>{f()}),t.expose({instance:{get loadDone(){return e.content?(A.value?u.value:!0)&&k.value:!0}}});const E=()=>{l.value=!l.value},_=()=>k.value?null:a.createVNode(Hu,{status:"Working"},null),F=()=>!y.value||!l.value?null:a.createVNode("div",{class:"f-chat-bubble-thinking-content"},[a.createVNode("div",{class:"f-chat-bubble-thinking-scroll-container",ref:p,onScroll:v},[h.value&&b.value&&a.createVNode("div",{class:"f-chat-bubble-thinking-fade-mask"},null),a.createVNode("div",{class:"f-chat-bubble-thinking-text-wrapper"},[a.createVNode("div",{ref:m,class:"f-chat-bubble-thinking-content-text",innerHTML:y.value},null)])])]);return()=>a.createVNode("div",{class:w.value},[a.createVNode("div",{class:"f-chat-bubble-thinking-header",onClick:E},[_(),a.createVNode("span",{class:"f-chat-bubble-thinking-title",innerHTML:g.value},null),y.value&&a.createVNode("i",{class:"f-icon f-icon-arrow-chevron-right",style:{transform:l.value?"rotate(90deg)":"rotate(0deg)",transition:"all 0.3s ease-in-out"}},null)]),F()])}}),Vf={content:{type:Object}},wa={type:{type:String,default:"StartedToDo"},status:{type:String,default:"NotStart"},message:{type:String,default:""},taskDetail:{type:String,default:""},todoList:{type:Array,default:[]},detailViewMode:{type:String,default:"hover"},initExpanded:{type:Boolean,default:!1},showLoading:{type:Boolean,default:!0},showLabel:{type:Boolean,default:!0},loading:Object,shimmer:{type:Boolean,default:!0},outputMode:{type:String,default:"streaming"}},ka={items:{type:Array,default:()=>[]}},va={id:{type:Number||String,default:0},status:{type:String},task:{type:String,default:""},todoList:{type:Array,default:[]},detailViewMode:{type:String,default:"expand"},initExpanded:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},showLabel:{type:Boolean,default:!1},shimmer:{type:Boolean,default:!0},title:{type:String,default:""},message:{type:String,default:""},outputMode:{type:String,default:"full"}},Gu=a.defineComponent({name:"FXTodoListItemView",props:va,emits:["click"],setup(e,{emit:t}){const{propertyStates:n,registerProperty:r,updatePropertyValue:o,startStreaming:u}=Au();r("title",e.title??""),r("task",e.task??""),a.watch([()=>e.title,()=>e.task],([p,m])=>{o("title",p??""),o("task",m??"")});const i=a.computed(()=>["f-chat-todo-item",{"is-done":e.status==="Done","is-working":e.status==="Working","is-not-start":e.status==="NotStart","no-shimmer":!e.shimmer}]),s=a.computed(()=>["f-chat-todo-task",{"is-done":e.status==="Done"}]);function c(){t("click",e,e.id)}const d=a.computed(()=>e.outputMode==="streaming"),f=a.computed(()=>{var p;return d.value?((p=n.title)==null?void 0:p.displayedValue)??"":e.title??""}),l=a.computed(()=>{var p;return d.value?((p=n.task)==null?void 0:p.displayedValue)??"":e.task??""});return a.computed(()=>{var p;return d.value?((p=n.detail)==null?void 0:p.displayedValue)??"":e.message??""}),a.onMounted(()=>{d.value&&u()}),()=>a.createVNode("li",{key:e.id,class:i.value,onClick:c},[e.todoList&&e.todoList.length>0&&a.createVNode(Wt,{todoList:e.todoList,status:e.status,message:e.task,taskDetail:e.message,detailViewMode:e.detailViewMode,initExpanded:e.initExpanded,showLoading:e.showLoading,showLabel:e.showLabel,outputMode:e.outputMode},null),!e.todoList||e.todoList.length===0&&a.createVNode(a.Fragment,null,[e.showLoading&&a.createVNode(Hu,{status:e.status??"Done"},null),f.value?a.createVNode("div",{class:"f-chat-todo-task-wrapper"},[a.createVNode("span",{class:s.value},[f.value]),a.createVNode("div",{class:"f-chat-todo-task-description"},[l.value])]):a.createVNode("div",{class:s.value},[l.value])])])}}),qn=a.defineComponent({name:"FXTodoListView",props:ka,setup(e){return()=>{var t;return(t=e.items)!=null&&t.length?a.createVNode("ul",{class:"f-chat-todo-items"},[e.items.map((n,r)=>a.createVNode(Gu,a.mergeProps({key:r},n),null))]):null}}}),Bf="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e编组%207%3c/title%3e%3cdefs%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-1'%3e%3cstop%20stop-color='%230D7FE6'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%231EBBC6'%20offset='58.0673923%25'%3e%3c/stop%3e%3cstop%20stop-color='%232AE7AF'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cpath%20d='M7.55915932,0%20L13.7556941,3.41136535%20L13.7556941,11.284674%20L13.3483936,11.690778%20L7.386,8.406%20L7.38699821,14.9818613%20L6.43606745,14.9818613%20L0.817648054,11.8789694%20L0,10.332184%20L0,3.84230019%20L1.11160458,3.1505903%20L6.167,6.164%20L6.16702601,0.0484363034%20L7.55915932,0%20Z%20M6.22734637,8.44496623%20L1.7439756,11.0288454%20L6.22734637,13.5008368%20L6.22734637,8.44496623%20Z%20M12.540835,4.77769015%20L8.0314841,7.40118228%20L12.540835,9.89639007%20L12.540835,4.77769015%20Z%20M1.21847977,4.6422718%20L1.21847977,9.89639007%20L5.74466316,7.33704011%20L1.21847977,4.6422718%20Z%20M7.38699821,1.29872452%20L7.38699821,6.38587585%20L11.9618229,3.74647178%20L7.38699821,1.29872452%20Z'%20id='path-2'%3e%3c/path%3e%3clinearGradient%20x1='81.0966666%25'%20y1='38.5584607%25'%20x2='28.8545509%25'%20y2='61.9626707%25'%20id='linearGradient-4'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-5'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='44.8152906%25'%20y1='77.6521765%25'%20x2='44.8152906%25'%20y2='3.26462903%25'%20id='linearGradient-6'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-7'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='3.93796935%25'%20y1='32.607826%25'%20x2='78.9687461%25'%20y2='60.0462823%25'%20id='linearGradient-8'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-9'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='56.0769337%25'%20y1='45.0797149%25'%20x2='24.9463054%25'%20y2='71.1433818%25'%20id='linearGradient-10'%3e%3cstop%20stop-color='%23159BD7'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='10.434388%25'%20y1='68.063656%25'%20x2='86.6988821%25'%20y2='30.8651063%25'%20id='linearGradient-11'%3e%3cstop%20stop-color='%2321C6C1'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-12'%3e%3cstop%20stop-color='%230D7FE6'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%232AE7AF'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='输入框'%20transform='translate(-383,%20-2915)'%3e%3cg%20id='编组-3'%20transform='translate(353,%202900)'%3e%3cg%20id='编组-12'%20transform='translate(16,%200)'%3e%3cg%20id='编组-7'%20transform='translate(14,%2015)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='18'%20height='18'%3e%3c/rect%3e%3cg%20id='编组-35'%20transform='translate(0.2571,%200.2571)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='17.4857143'%20height='17.4857143'%3e%3c/rect%3e%3cg%20id='编组-19备份-17'%20transform='translate(1.0286,%200.5143)'%3e%3cpath%20d='M8.37444647,0.834547606%20L14.5709813,4.24591296%20L14.5709813,12.1192216%20L14.1636807,12.5253256%20L8.20128715,9.24054761%20L8.20228536,15.8164089%20L7.25135461,15.8164089%20L1.63293521,12.713517%20L0.815287151,11.1667316%20L0.815287151,4.67684779%20L1.92689173,3.98513791%20L6.98228715,6.99854761%20L6.98231316,0.882983909%20L8.37444647,0.834547606%20Z%20M7.04263352,9.27951383%20L2.55926275,11.8633931%20L7.04263352,14.3353844%20L7.04263352,9.27951383%20Z%20M13.3561221,5.61223775%20L8.84677126,8.23572989%20L13.3561221,10.7309377%20L13.3561221,5.61223775%20Z%20M2.03376692,5.47681941%20L2.03376692,10.7309377%20L6.55995031,8.17158771%20L2.03376692,5.47681941%20Z%20M8.20228536,2.13327213%20L8.20228536,7.22042346%20L12.77711,4.58101939%20L8.20228536,2.13327213%20Z'%20id='形状结合'%20fill='url(%23linearGradient-1)'%3e%3c/path%3e%3cg%20id='路径-2-+-路径-3-+-路径-4蒙版'%20transform='translate(0.8153,%200.8345)'%3e%3cmask%20id='mask-3'%20fill='white'%3e%3cuse%20xlink:href='%23path-2'%3e%3c/use%3e%3c/mask%3e%3cuse%20id='蒙版'%20fill='url(%23linearGradient-1)'%20xlink:href='%23path-2'%3e%3c/use%3e%3cpolygon%20id='路径-2'%20fill='url(%23linearGradient-4)'%20filter='url(%23filter-5)'%20mask='url(%23mask-3)'%20points='4.25315881%206.97898081%206.77390576%206.97898081%207.02656062%208.27871177%202.85827337%2011.0934106%201.11764364%208.72438079'%3e%3c/polygon%3e%3cpolygon%20id='路径-3'%20fill='url(%23linearGradient-6)'%20filter='url(%23filter-7)'%20mask='url(%23mask-3)'%20points='7.02656062%206.72375166%208.13485635%204.53274022%208.34127598%201.90699543%205.4451985%201.76583085%205.65253089%205.06118714%206.77390576%206.72375166'%3e%3c/polygon%3e%3cpolygon%20id='路径-4'%20fill='url(%23linearGradient-8)'%20filter='url(%23filter-9)'%20mask='url(%23mask-3)'%20points='10.0650382%207.40118228%207.32091739%207.49951705%207.32091739%208.25868082%208.54200343%2010.0061721%2010.9306691%2010.9000701%2012.5091187%208.51626021'%3e%3c/polygon%3e%3c/g%3e%3cpath%20d='M8.37444647,0.834547606%20L14.5709813,4.24591296%20L14.5709813,12.1192216%20L14.1636807,12.5253256%20L6.98231316,8.56885311%20L6.98231316,0.882983909%20L8.37444647,0.834547606%20Z%20M8.20228536,2.13327213%20L8.20228536,7.22042346%20L8.49131316,7.05254761%20L8.49185956,7.71336245%20L9.03131316,8.12754761%20L8.84677126,8.23572989%20L13.3561221,10.7309377%20L13.3553132,5.61654761%20L13.6305018,5.15381301%20L12.77711,4.58101939%20L8.20228536,2.13327213%20Z'%20id='形状结合'%20fill='url(%23linearGradient-10)'%20fill-rule='nonzero'%3e%3c/path%3e%3cpolygon%20id='路径'%20fill='url(%23linearGradient-11)'%20fill-rule='nonzero'%20points='6.7778308%208.05322127%207.08945008%209.24101764%202.55926275%2011.8633931%202.19155022%2010.6380421'%3e%3c/polygon%3e%3cg%20id='编组-21'%20fill='url(%23linearGradient-12)'%3e%3cpath%20d='M7.62936495,9.94195975%20C8.65711289,9.94195975%209.49026721,9.10880543%209.49026721,8.08105749%20C9.49026721,7.05330955%208.65711289,6.22015523%207.62936495,6.22015523%20C6.60161701,6.22015523%205.7684627,7.05330955%205.7684627,8.08105749%20C5.7684627,9.10880543%206.60161701,9.94195975%207.62936495,9.94195975%20Z%20M13.9785177,6.03107309%20C14.7793603,6.03107309%2015.4285714,5.38186193%2015.4285714,4.58101939%20C15.4285714,3.78017684%2014.7793603,3.13096568%2013.9785177,3.13096568%20C13.1776752,3.13096568%2012.528464,3.78017684%2012.528464,4.58101939%20C12.528464,5.38186193%2013.1776752,6.03107309%2013.9785177,6.03107309%20Z%20M7.62936495,16.4714598%20C8.4302075,16.4714598%209.07941866,15.8222486%209.07941866,15.0214061%20C9.07941866,14.2205635%208.4302075,13.5713524%207.62936495,13.5713524%20C6.8285224,13.5713524%206.17931125,14.2205635%206.17931125,15.0214061%20C6.17931125,15.8222486%206.8285224,16.4714598%207.62936495,16.4714598%20Z%20M1.45005371,13.0387617%20C2.25089625,13.0387617%202.90010741,12.3895505%202.90010741,11.588708%20C2.90010741,10.7878654%202.25089625,10.1386543%201.45005371,10.1386543%20C0.649211158,10.1386543%200,10.7878654%200,11.588708%20C0,12.3895505%200.649211158,13.0387617%201.45005371,13.0387617%20Z%20M7.62936495,2.51342642%20C8.32342849,2.51342642%208.88607816,1.95077675%208.88607816,1.25671321%20C8.88607816,0.56264967%208.32342849,0%207.62936495,0%20C6.93530141,0%206.37265174,0.56264967%206.37265174,1.25671321%20C6.37265174,1.95077675%206.93530141,2.51342642%207.62936495,2.51342642%20Z%20M13.9785177,12.9913309%20C14.6725813,12.9913309%2015.2352309,12.4286812%2015.2352309,11.7346177%20C15.2352309,11.0405541%2014.6725813,10.4779045%2013.9785177,10.4779045%20C13.2844542,10.4779045%2012.7218045,11.0405541%2012.7218045,11.7346177%20C12.7218045,12.4286812%2013.2844542,12.9913309%2013.9785177,12.9913309%20Z%20M1.45005371,5.50262617%20C2.14411725,5.50262617%202.70676692,4.9399765%202.70676692,4.24591296%20C2.70676692,3.55184942%202.14411725,2.98919975%201.45005371,2.98919975%20C0.755990164,2.98919975%200.193340494,3.55184942%200.193340494,4.24591296%20C0.193340494,4.9399765%200.755990164,5.50262617%201.45005371,5.50262617%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",jf=300,zf={Working:"正在执行任务",Done:"已完成任务",NotStart:"待执行任务"},Wt=a.defineComponent({name:"FXStartedTodo",props:wa,setup(e){const t=a.ref(null),n=a.ref(null),r=a.ref(null),o=a.ref(null),u=a.computed(()=>e.outputMode==="streaming"),{displayContent:i}=qo(()=>({detail:e.taskDetail??""}),()=>!0,u,{charInterval:30}),s=a.ref(e.initExpanded),c=a.computed(()=>({"f-chat-message-started-todo--content":!0,"d-none":!s.value}));function d(){e.detailViewMode!=="expand"&&(o.value!=null&&(window.clearTimeout(o.value),o.value=null),r.value=window.setTimeout(()=>{t.value&&n.value&&n.value.show(t.value),r.value=null},jf))}function f(){e.detailViewMode!=="expand"&&(r.value!=null&&(window.clearTimeout(r.value),r.value=null),o.value=window.setTimeout(()=>{var A,k;(k=(A=n.value)==null?void 0:A.hide)==null||k.call(A),o.value=null},150))}function l(){if(e.detailViewMode==="none")return null;const A=i.value.detail??"";return a.createVNode(a.Fragment,null,[A?a.createVNode("div",{class:"f-chat-started-todo-task-detail"},[A]):null,a.createVNode(qn,{items:e.todoList},null)])}function p(){e.detailViewMode==="expand"&&(s.value=!s.value)}function m(){return e.detailViewMode==="expand"?a.createVNode("i",{class:"f-icon f-icon-arrow-chevron-right",style:{transform:s.value?"rotate(90deg)":"rotate(0deg)",transition:"all 0.3s ease-in-out"}},null):null}function h(){return e.detailViewMode==="hover"&&a.createVNode(pe.FPopover,a.mergeProps({ref:n,class:"f-chat-started-todo-popover"},{trigger:"none"}),{default:()=>[a.createVNode("div",{class:"f-chat-started-todo-popover-content",onMouseenter:()=>{o.value!=null&&(window.clearTimeout(o.value),o.value=null)},onMouseleave:f},[l()])]})}function b(){return e.showLoading?e.loading?e.loading:e.status==="Done"?a.createVNode("img",{src:Bf},null):a.createVNode(Hu,{status:e.status},null):null}return()=>a.createVNode("div",{ref:t,class:["f-chat-message-started-todo",{"is-working":e.status==="Working"}],onMouseenter:d,onMouseleave:f},[a.createVNode("div",{class:"f-chat-message-started-todo--header",onClick:p},[e.showLabel&&a.createVNode("span",{class:"f-chat-started-todo-label"},[zf[e.status]]),b(),a.createVNode("span",{class:"f-chat-started-todo-message",innerHTML:e.message},null),m()]),e.detailViewMode==="expand"&&a.createVNode("div",{class:c.value},[l()]),h()])}});Wt.install=e=>{e.component(Wt.name,Wt)};const $f=a.defineComponent({name:"FXBubbleThoughtChain",props:Vf,setup(e,t){const{elapsedSeconds:n,hasEverStarted:r,start:o,stop:u,reset:i}=br(),s=a.computed(()=>{var l;return((l=e.content)==null?void 0:l.status)==="Done"}),c=a.computed(()=>{var l;return((l=e.content)==null?void 0:l.message)??"正在思考......"}),d=a.computed(()=>{var m,h;const l=((m=e.content)==null?void 0:m.doneMessage)??((h=e.content)==null?void 0:h.message)??"思考完成",p=r.value?`(用时${n.value}秒)`:"";return""+l+p}),f=a.computed(()=>s.value?d.value:c.value);return a.watch(()=>{var l;return(l=e.content)==null?void 0:l.status},l=>{l==="Working"?o():l==="Done"?u():i()},{immediate:!0}),a.onUnmounted(()=>{i()}),t.expose({instance:{get loadDone(){return e.content?s.value:!0}}}),()=>{var l,p,m;return e.content?a.createVNode(Wt,{status:((l=e.content)==null?void 0:l.status)??"Working",message:f.value,todoList:(p=e.content)==null?void 0:p.todoList,detailViewMode:((m=e.content)==null?void 0:m.detailViewMode)??"expand",showLabel:!1,showLoading:!0,initExpanded:!0},null):null}}}),to=a.defineComponent({name:"UserAuthMessage",props:{content:{type:Object,required:!0},onConfirm:{type:Function,default:void 0}},setup(e){return()=>a.createVNode("div",{class:"f-ec-auth"},[a.createVNode("div",{class:"f-ec-auth-desc"},[e.content.description]),a.createVNode("div",{class:"f-ec-auth-actions"},[e.content.options.map(t=>a.createVNode("button",{key:t.optionId,type:"button",class:"f-ec-auth-btn",onClick:()=>{var n;(n=e.onConfirm)==null||n.call(e,t.optionId,t.name,t.message??t.name),console.info("[UserAuth]",t.optionId,t.name)}},[t.name]))])])}}),Uf=300,qt=a.defineComponent({name:"FXToolUseMessage",props:{content:{type:Object,required:!0}},setup(e){const t=a.computed(()=>e.content.toolResultApplied===!0||String(e.content.result??"").trim().length>0),n=a.ref(!1);let r=setTimeout(()=>{n.value=!0},Uf);a.onBeforeUnmount(()=>{r&&clearTimeout(r)});const o=a.computed(()=>t.value),u=a.computed(()=>n.value&&!t.value),i=a.computed(()=>o.value?"执行成功":"调用中"),s=a.ref(!1),c=a.computed(()=>({"f-chat-tool-use":!0,"is-done":o.value})),d=a.computed(()=>({"f-chat-tool-use-status":!0,"is-done":o.value,"is-run":u.value}));a.watch(()=>[e.content.result,e.content.toolResultApplied],()=>{t.value&&(s.value=!1)},{flush:"post"});const f=()=>t.value?a.createVNode("div",{class:"f-chat-tool-use-result"},[e.content.result??""]):null;return()=>a.createVNode("div",{class:c.value},[a.createVNode("div",{class:"f-chat-tool-use-header",onClick:()=>{s.value=!s.value}},[a.createVNode("i",{class:"tool-icon"},null),a.createVNode("span",{class:"f-chat-tool-use-name"},[e.content.toolDescription??"tool"]),a.createVNode("div",{class:d.value},[a.createVNode(Hu,{status:o.value?"Done":u.value?"Working":"NotStart"},null),a.createVNode("span",{class:"f-chat-tool-use-status-text"},[i.value])]),a.createVNode("i",{class:"f-icon f-icon-arrow-chevron-right",style:{transform:s.value?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.2s ease"}},null)]),s.value&&a.createVNode("div",{class:"f-chat-tool-use-content"},[f()])])}});qt.install=e=>{e.component(qt.name,qt)};const Xn=a.defineComponent({name:"FXBubble",components:{"fx-user-auth-inline":to,"fx-app-preview-inline":Tt,FXToolUse:qt},props:Ho,setup(e,t){const n=a.shallowRef(),r=a.ref(),o=a.ref(),u=a.computed(()=>!!e.showAvatar),i=a.computed(()=>u.value===!0||e.header==="ContentHeader"),s=a.computed(()=>t.slots.leftFooter||t.slots.rightFooter),c=a.computed(()=>{var D;return Te({},(D=e.styles)==null?void 0:D.footer)}),d=D=>{if(e.onPreview){if(D.type==="md"&&D.content){e.onPreview({content:D.content,contentType:"markdown"});return}if(D!=null&&D.url){const R=D!=null&&D.fullScreenPreview?"fullScreen":"splitScreen";e.onPreview({url:D.url,previewMode:R})}}},f=D=>{if(!e.onPreview)return;const R=D==null?void 0:D.filter(S=>S.type==="md"&&S.content);if(R.length===0)return;const M=Object.fromEntries(R.map(S=>[S.name,S.content??""]));e.onPreview({contentMap:M,contentType:"markdown"})},{renderFileEmbeddedContent:l,renderPageEmbeddedContent:p}=Sc(),m=a.ref(""),h=a.computed(()=>{var R,M;if((R=e.content)!=null&&R.footerContent)return e.content.footerContent;const D=(M=e.content)==null?void 0:M.structuredContent;return D&&(D.footerTemplate||D.footerUrl||D.footerFile)?{type:D.footerUrl?"page":D.footerFile?"file":"template",pageUrl:D.footerUrl,fileContent:D.footerFile,template:D.footerTemplate,width:D.footerWidth,height:D.footerHeight}:null});a.watch(()=>{var D;return(D=h.value)==null?void 0:D.width},D=>{if(!D){m.value="";return}if(D.endsWith("%")){const R=parseFloat(D);isNaN(R)||a.nextTick(()=>{var S,H;const M=(H=(S=n.value)==null?void 0:S.parentElement)==null?void 0:H.clientWidth;M&&(m.value=`${M*R/100}px`)})}else m.value=D},{immediate:!0});const b=D=>{if(!D||D.length===0)return"我";const R=D.charAt(0);return/[\u4e00-\u9fa5]/.test(R)?R:R.toUpperCase()};function A(){return e.header==="ContentHeader"?wc:kc}const k=A(),{renderHeader:g}=k(e,t),y=()=>{var M,S,H;const D=((M=e.content)==null?void 0:M.sender)??"发送人",R=b(((S=e.content)==null?void 0:S.sender)??"");return a.createVNode("div",{class:"f-chat-bubble-avatar"},[(H=e.content)!=null&&H.avatar?a.createVNode("img",{src:e.content.avatar,alt:D},null):a.createVNode("div",{class:"f-chat-bubble-avatar-initial"},[R])])},w=()=>{var R;const D=(R=e.content)==null?void 0:R.toolUseAboveText;return D!=null&&D.length?a.createVNode("div",{class:"f-chat-bubble-tool-use-group"},[D.map((M,S)=>a.createVNode(qt,{key:M.toolUseId??`tu-${S}`,content:M},null))]):null},v=()=>{var D;return(D=e.content)!=null&&D.thinkingContent?a.createVNode(Pf,{ref:r,content:e.content.thinkingContent,outputMode:e.outputMode},null):null},E=()=>{var D;return(D=e.content)!=null&&D.startedTodo?a.createVNode($f,{ref:o,content:e.content.startedTodo},null):null},_=D=>{if(!(D!=null&&D.type))return null;const{type:R}=D;return R==="page"&&D.pageUrl?p(D,{onNavigate:M=>{var S;(S=e.onPreview)==null||S.call(e,{url:M})}}):R==="file"&&D.fileContent?l(D,{onPreviewFile:d,onBatchPreviewFile:f}):R==="template"&&D.template?D.template():null},F=()=>{var S,H,O;if(!((O=(H=(S=e.content)==null?void 0:S.structuredContent)==null?void 0:H.sections)!=null&&O.length))return null;const{sections:D,showDivider:R}=e.content.structuredContent,M=U=>{const{content:te,label:Q}=U;return Q||te&&typeof te=="string"?a.createVNode(a.Fragment,null,[a.createVNode("span",{class:"f-chat-bubble-structured-section-item-dot"},null),U.label&&a.createVNode("span",{class:"f-chat-bubble-structured-section-item-label"},[U.label]),a.createVNode("span",{class:"f-chat-bubble-structured-section-item-content"},[U.content])]):_(U.content)};return a.createVNode("div",{class:["f-chat-bubble-structured",{"structure-content-divider":R}]},[D.map((U,te)=>a.createVNode("div",{key:te,class:["f-chat-bubble-structured-section",{"section-divider":U.showDivider}]},[a.createVNode("div",{class:"f-chat-bubble-structured-section-header"},[U.icon&&(U.icon.startsWith("http")||U.icon.startsWith("//")||U.icon.startsWith("../")||/\.(png|jpg|jpeg|gif|svg|webp|bmp)$/i.test(U.icon)?a.createVNode("img",{alt:U.title,src:U.icon,class:"f-chat-bubble-structured-section-icon"},null):a.createVNode("i",{class:`f-icon ${U.icon}`,style:U.iconStyle},null)),a.createVNode("span",{class:"f-chat-bubble-structured-section-title"},[U.title])]),U.items&&U.items.length>0&&a.createVNode("div",{class:"f-chat-bubble-structured-section-items"},[U.items.map((Q,N)=>a.createVNode("div",{key:N,class:"f-chat-bubble-structured-section-item"},[M(Q)]))])]))])},q=()=>{const D=h.value;if(!D)return null;const R={};return m.value&&(R.width=m.value),D.height&&(R.height=`${D.height}px`),a.createVNode("div",{class:"f-chat-bubble-content-footer",style:R},[_(D)])},P=()=>a.createVNode(Xo,{attachments:e.attachments??[],enableFixedWidth:e.placement==="end",onPreview:d,onBatchPreview:f},null),B=()=>{var R;const D=(R=e.content)==null?void 0:R.compositeInlineBlocks;return D!=null&&D.length?D.map((M,S)=>M.kind==="userAuth"?a.createVNode(a.resolveComponent("fx-user-auth-inline"),{key:`inline-auth-${S}`,content:M.content,onConfirm:e.onUserAuthConfirm},null):a.createVNode(a.resolveComponent("fx-app-preview-inline"),{key:`inline-preview-${S}`,content:M.content,onOpen:e.onPreview},null)):null},j=()=>{var D,R,M,S,H,O;return a.createVNode("div",{class:`f-chat-bubble-content ${e.placement}`},[i.value&&g(),a.createVNode("div",{class:`f-chat-bubble-content-text-wrapper ${e.placement}`},[(D=e.content)!=null&&D.compositeOrderedBeforeMarkdownRender?e.content.compositeOrderedBeforeMarkdownRender():a.createVNode(a.Fragment,null,[v(),w()]),E(),F(),a.createVNode(Rf,{title:((R=e.content)==null?void 0:R.title)??"",subtitle:((M=e.content)==null?void 0:M.subtitle)??"",text:((S=e.content)==null?void 0:S.text)??"",textFormat:((H=e.content)==null?void 0:H.textFormat)??"plain",placement:e.placement,onDynamicComponentsDetected:e==null?void 0:e.onDynamicComponentsDetected},null),q(),(O=e.compositeTailRender)==null?void 0:O.call(e),B()]),s.value&&a.createVNode("div",{class:"f-chat-bubble-footer",style:c.value},[t.slots.leftFooter&&a.createVNode("div",{class:"f-chat-bubble-footer-left"},[t.slots.leftFooter()]),t.slots.rightFooter&&a.createVNode("div",{class:"f-chat-bubble-footer-right"},[t.slots.rightFooter()])]),P()])};return()=>a.createVNode("div",{class:"f-chat-bubble-container",ref:n},[a.createVNode("div",{class:`f-chat-bubble-wrapper ${e.placement}`},[e.placement==="start"?a.createVNode(a.Fragment,null,[u.value&&y(),j()]):a.createVNode(a.Fragment,null,[j(),u.value&&y()])])])}}),Ca={customClass:{type:Object,default:""},customStyle:{type:Object,default:""}},no=a.defineComponent({name:"FXBubbleAction",props:Ca,setup(e,t){const n=a.computed(()=>Te({},e.customStyle));return()=>t.slots.default&&a.createVNode("span",{class:"f-chat-bubble-footer-action",style:n.value},[t.slots.default()])}});Xn.install=e=>{e.component(Xn.name,Xn),e.component(no.name,no)};const Ea={items:{type:Array,default:()=>[]},modelValue:{type:Number,default:0},direction:{type:String,default:"horizontal"},autoplay:{type:Boolean,default:!1},interval:{type:Number,default:3e3},loop:{type:Boolean,default:!0},trigger:{type:String,default:"click"},indicatorPosition:{type:String,default:"inside"},arrowVisibility:{type:String,default:"hover"},showIndicator:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showInfo:{type:Boolean,default:!0},height:{type:[String,Number],default:"400px"},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})},customClass:{type:[String,Array,Object],default:""},customStyle:{type:[Object,String],default:""},buttonPosition:{type:String,default:"inner"}},_a={item:{type:Object,default:()=>({})},index:{type:Number,default:0},active:{type:Boolean,default:!1},showInfo:{type:Boolean,default:!0},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},Wu=a.defineComponent({name:"FXCarouselItem",props:_a,emits:["click"],setup(e,{slots:t,emit:n}){const r=a.computed(()=>{var l;const f={"fx-carousel--item":!0,"fx-carousel--item-active":e.active};return Se(f,(l=e.classNames)==null?void 0:l.item)}),o=a.computed(()=>{var l,p;const f=Te({},(l=e.styles)==null?void 0:l.item);return Te(f,(p=e.styles)==null?void 0:p.item)}),u=()=>{var f,l,p;return e.item.image?a.createVNode("img",{class:["fx-carousel--item-image",(f=e.classNames)==null?void 0:f.image],style:(l=e.styles)==null?void 0:l.image,src:e.item.image,alt:(p=e.item.title)==null?void 0:p.toString()},null):null},i=()=>{var f,l,p,m;return e.item.content?a.createVNode("div",{class:["fx-carousel--item-content",(f=e.classNames)==null?void 0:f.content],style:(l=e.styles)==null?void 0:l.content},[e.item.content]):t.default?a.createVNode("div",{class:["fx-carousel--item-content",(p=e.classNames)==null?void 0:p.content],style:(m=e.styles)==null?void 0:m.content},[t.default()]):null},s=()=>{var f,l;return e.item.title?a.createVNode("h3",{class:["fx-carousel--item-title",(f=e.classNames)==null?void 0:f.title],style:(l=e.styles)==null?void 0:l.title},[e.item.title]):null},c=()=>{var f,l;return e.item.description?a.createVNode("p",{class:["fx-carousel--item-description",(f=e.classNames)==null?void 0:f.description],style:(l=e.styles)==null?void 0:l.description},[e.item.description]):null},d=f=>{e.item.disabled||n("click",f,e.item,e.index)};return()=>a.createVNode("div",{class:r.value,style:o.value,onClick:d},[u(),i(),e.showInfo&&a.createVNode("div",{class:"fx-carousel--item-info"},[s(),c()])])}});function Hf(e){const{items:t,autoplay:n=!1,interval:r=3e3,loop:o=!0,direction:u="horizontal"}=e,i=a.ref(0),s=a.ref(!1),c=a.ref(null),d=a.computed(()=>t.length),f=a.computed(()=>d.value<=1);a.computed(()=>i.value===0?o?d.value-1:0:i.value-1),a.computed(()=>i.value===d.value-1?o?0:i.value:i.value+1);const l=a.computed(()=>{const y=-i.value*100;return{transform:u==="horizontal"?`translateX(${y}%)`:`translateY(${y}%)`,transition:"transform 0.5s ease"}}),p=y=>{y<0||y>=d.value||(i.value,i.value=y)},m=()=>{f.value||(i.value===d.value-1?p(o?0:i.value):p(i.value+1))},h=()=>{f.value||(i.value===0?p(o?d.value-1:0):p(i.value-1))},b=()=>{!n||f.value||(A(),c.value=window.setInterval(()=>{s.value||m()},r))},A=()=>{c.value&&(clearInterval(c.value),c.value=null)},k=()=>{s.value=!0,n&&A()},g=()=>{s.value=!1,n&&b()};return a.onMounted(()=>{b()}),a.onUnmounted(()=>{A()}),{currentIndex:i,totalItems:d,isSingleItem:f,trackStyle:l,goTo:p,next:m,prev:h,handleMouseEnter:k,handleMouseLeave:g}}const Zn=a.defineComponent({name:"FXCarousel",props:Ea,emits:["update:modelValue","change","item-click"],setup(e,{slots:t,emit:n}){const{currentIndex:r,isSingleItem:o,trackStyle:u,goTo:i,next:s,prev:c,handleMouseEnter:d,handleMouseLeave:f}=Hf({items:e.items,autoplay:e.autoplay,interval:e.interval,loop:e.loop,direction:e.direction}),l=v=>{n("update:modelValue",v),n("change",v,r.value)},p=a.computed(()=>{var E;const v={"fx-carousel":!0,"fx-carousel--vertical":e.direction==="vertical","fx-carousel--single":o.value,"fx-carousel--button-outer":e.buttonPosition==="outer","fx-carousel--button-inner":e.buttonPosition==="inner"};return Se(v,(E=e.classNames)==null?void 0:E.root)}),m=a.computed(()=>{var _;const v={height:typeof e.height=="number"?`${e.height}px`:e.height},E=Te(v,e.customStyle);return Te(E,(_=e.styles)==null?void 0:_.root)}),h=a.computed(()=>{var E;const v={"fx-carousel--container":!0,"fx-carousel--container-hover":e.arrowVisibility==="hover"};return Se(v,(E=e.classNames)==null?void 0:E.container)}),b=a.computed(()=>{var E;return Se({"fx-carousel--track":!0},(E=e.classNames)==null?void 0:E.track)}),A=a.computed(()=>{var E;const v={"fx-carousel--indicator":!0,"fx-carousel--indicator-outside":e.indicatorPosition==="outside","fx-carousel--indicator-none":e.indicatorPosition==="none"||!e.showIndicator};return Se(v,(E=e.classNames)==null?void 0:E.indicator)}),k=v=>{var _,F;const E={"fx-carousel--arrow":!0,"fx-carousel--arrow-left":v==="left","fx-carousel--arrow-right":v==="right","fx-carousel--arrow-never":e.arrowVisibility==="never"||!e.showArrow};return E[`fx-carousel--arrow-${e.buttonPosition}`]=!0,Se(E,v==="left"?(_=e.classNames)==null?void 0:_.arrowLeft:(F=e.classNames)==null?void 0:F.arrowRight)},g=v=>{var F,q;if(o.value)return null;const E=v==="left"?c:s,_=t[v==="left"?"prevArrow":"nextArrow"];return a.createVNode("button",{class:k(v),style:v==="left"?(F=e.styles)==null?void 0:F.arrowLeft:(q=e.styles)==null?void 0:q.arrowRight,onClick:E,"aria-label":`${v} arrow`},[_?_():a.createVNode("i",{style:"font-size: 60px;",class:`f-icon f-icon-arrow-chevron-${v==="left"?"left":"right"}`},null)])},y=()=>{var v;return o.value||!e.showIndicator?null:a.createVNode("div",{class:A.value,style:(v=e.styles)==null?void 0:v.indicator},[e.items.map((E,_)=>{var F,q;return a.createVNode("button",{"aria-label":`indicator ${_}`,key:_,class:["fx-carousel--indicator-item",{"fx-carousel--indicator-item-active":_===r.value}],style:_===r.value?(F=e.styles)==null?void 0:F.indicatorItemActive:(q=e.styles)==null?void 0:q.indicatorItem,onClick:()=>{i(_),l(_)}},null)})])},w=()=>a.createVNode("div",{class:b.value,style:u.value},[e.items.map((v,E)=>a.createVNode(Wu,{key:v.id||`item_${E}`,item:v,showInfo:e.showInfo,index:E,active:E===r.value,styles:e.styles,classNames:e.classNames,onClick:(_,F,q)=>{n("item-click",_,F,q)}},{default:()=>{var _,F;return[(_=t.item)==null?void 0:_.call(t,{item:v,index:E,active:E===r.value}),(F=t[`item${E}`])==null?void 0:F.call(t,{item:v,index:E,active:E===r.value})]}}))]);return()=>{var v;return a.createVNode("div",{class:p.value,style:m.value,onMouseenter:d,onMouseleave:f},[e.buttonPosition==="outer"&&g("left"),a.createVNode("div",{class:h.value,style:(v=e.styles)==null?void 0:v.container},[e.buttonPosition==="inner"&&g("left"),w(),e.buttonPosition==="inner"&&g("right")]),e.buttonPosition==="outer"&&g("right"),y()])}}});Zn.install=e=>{e.component(Zn.name,Zn),e.component(Wu.name,Wu)};const Fa={previewConfig:{type:Object,default:()=>({})},onClose:{type:Function,default:()=>{}},onIframeLoad:{type:Function,default:()=>{}}},Da={content:{type:String,default:null}},Gf=e=>{const t=typeof e;return t!=="function"&&t!=="object"||e===null},Wf=e=>{const t=e.flags===""?void 0:e.flags;return new RegExp(e.source,t)},Yn=(e,t=new WeakMap)=>{if(e===null||Gf(e))return e;if(t.has(e))return t.get(e);if(e instanceof RegExp)return Wf(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof Function)return e;if(e instanceof Map){const r=new Map;return t.set(e,r),e.forEach((o,u)=>{r.set(u,Yn(o,t))}),r}if(e instanceof Set){const r=new Set;t.set(e,r);for(const o of e)r.add(Yn(o,t));return r}if(Array.isArray(e)){const r=[];return t.set(e,r),e.forEach(o=>{r.push(Yn(o,t))}),r}const n={};t.set(e,n);for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Yn(e[r],t));return n},qf=(e,t=200)=>{let n=0;return(...r)=>new Promise(o=>{n&&(clearTimeout(n),o("cancel")),n=window.setTimeout(()=>{e.apply(void 0,r),n=0,o("done")},t)})},uo=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,qu=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Xf=new Set(["__proto__","constructor","prototype"]),Zf=e=>!Xf.has(e),ro=(e,t,n={})=>{if(Array.isArray(e)&&Array.isArray(t))return oo(e,t,n);const{excludeKeys:r}=n,o=e,u=t;for(const i of Object.keys(u)){if(!Zf(i))continue;const s=u[i],c=o[i];r&&r(i)?o[i]=s:Array.isArray(s)&&Array.isArray(c)?o[i]=oo(c,s,n):qu(s)&&qu(c)?o[i]=ro(c,s,n):o[i]=s}return e},oo=(e,t,n)=>{const r=e.slice();return t.forEach((o,u)=>{const i=r[u];Array.isArray(o)&&Array.isArray(i)?r[u]=oo(i,o,n):qu(o)&&qu(i)?r[u]=ro(i,o,n):r[u]=o}),r},z="md-editor",ce="https://unpkg.com",Yf=`${ce}/@highlightjs/cdn-assets@11.11.1/highlight.min.js`,Sa={main:`${ce}/prettier@3.8.1/standalone.js`,markdown:`${ce}/prettier@3.8.1/plugins/markdown.js`},Kf={css:`${ce}/cropperjs@1.6.2/dist/cropper.min.css`,js:`${ce}/cropperjs@1.6.2/dist/cropper.min.js`},Qf=`${ce}/screenfull@5.2.0/dist/screenfull.js`,Jf=`${ce}/mermaid@11.12.3/dist/mermaid.min.js`,e1={js:`${ce}/katex@0.16.33/dist/katex.min.js`,css:`${ce}/katex@0.16.33/dist/katex.min.css`},io={a11y:{light:`${ce}/@highlightjs/cdn-assets@11.11.1/styles/a11y-light.min.css`,dark:`${ce}/@highlightjs/cdn-assets@11.11.1/styles/a11y-dark.min.css`},atom:{light:`${ce}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-light.min.css`,dark:`${ce}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-dark.min.css`},github:{light:`${ce}/@highlightjs/cdn-assets@11.11.1/styles/github.min.css`,dark:`${ce}/@highlightjs/cdn-assets@11.11.1/styles/github-dark.min.css`},gradient:{light:`${ce}/@highlightjs/cdn-assets@11.11.1/styles/gradient-light.min.css`,dark:`${ce}/@highlightjs/cdn-assets@11.11.1/styles/gradient-dark.min.css`},kimbie:{light:`${ce}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-light.min.css`,dark:`${ce}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-dark.min.css`},paraiso:{light:`${ce}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-light.min.css`,dark:`${ce}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-dark.min.css`},qtcreator:{light:`${ce}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-light.min.css`,dark:`${ce}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${ce}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css`,dark:`${ce}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-dark.min.css`}},t1=`${ce}/echarts@6.0.0/dist/echarts.min.js`,Ta={"zh-CN":{toolbarTips:{bold:"加粗",underline:"下划线",italic:"斜体",strikeThrough:"删除线",title:"标题",sub:"下标",sup:"上标",quote:"引用",unorderedList:"无序列表",orderedList:"有序列表",task:"任务列表",codeRow:"行内代码",code:"块级代码",link:"链接",image:"图片",table:"表格",mermaid:"mermaid图",katex:"katex公式",revoke:"后退",next:"前进",save:"保存",prettier:"美化",pageFullscreen:"浏览器全屏",fullscreen:"屏幕全屏",preview:"预览",previewOnly:"仅预览",htmlPreview:"html代码预览",catalog:"目录",github:"源码地址"},titleItem:{h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",h6:"六级标题"},imgTitleItem:{link:"添加链接",upload:"上传图片",clip2upload:"裁剪上传"},linkModalTips:{linkTitle:"添加链接",imageTitle:"添加图片",descLabel:"链接描述:",descLabelPlaceHolder:"请输入描述...",urlLabel:"链接地址:",urlLabelPlaceHolder:"请输入链接...",buttonOK:"确定"},clipModalTips:{title:"裁剪图片上传",buttonUpload:"上传"},copyCode:{text:"复制代码",successTips:"已复制!",failTips:"复制失败!"},mermaid:{flow:"流程图",sequence:"时序图",gantt:"甘特图",class:"类图",state:"状态图",pie:"饼图",relationship:"关系图",journey:"旅程图"},katex:{inline:"行内公式",block:"块级公式"},footer:{markdownTotal:"字数",scrollAuto:"同步滚动"}},"en-US":{toolbarTips:{bold:"bold",underline:"underline",italic:"italic",strikeThrough:"strikeThrough",title:"title",sub:"subscript",sup:"superscript",quote:"quote",unorderedList:"unordered list",orderedList:"ordered list",task:"task list",codeRow:"inline code",code:"block-level code",link:"link",image:"image",table:"table",mermaid:"mermaid",katex:"formula",revoke:"revoke",next:"undo revoke",save:"save",prettier:"prettier",pageFullscreen:"fullscreen in page",fullscreen:"fullscreen",preview:"preview",previewOnly:"preview only",htmlPreview:"html preview",catalog:"catalog",github:"source code"},titleItem:{h1:"Lv1 Heading",h2:"Lv2 Heading",h3:"Lv3 Heading",h4:"Lv4 Heading",h5:"Lv5 Heading",h6:"Lv6 Heading"},imgTitleItem:{link:"Add Image Link",upload:"Upload Images",clip2upload:"Crop And Upload"},linkModalTips:{linkTitle:"Add Link",imageTitle:"Add Image",descLabel:"Desc:",descLabelPlaceHolder:"Enter a description...",urlLabel:"Link:",urlLabelPlaceHolder:"Enter a link...",buttonOK:"OK"},clipModalTips:{title:"Crop Image",buttonUpload:"Upload"},copyCode:{text:"Copy",successTips:"Copied!",failTips:"Copy failed!"},mermaid:{flow:"flow",sequence:"sequence",gantt:"gantt",class:"class",state:"state",pie:"pie",relationship:"relationship",journey:"journey"},katex:{inline:"inline",block:"block"},footer:{markdownTotal:"Character Count",scrollAuto:"Scroll Auto"}}},tt={editorExtensions:{highlight:{js:Yf,css:io},prettier:{standaloneJs:Sa.main,parserMarkdownJs:Sa.markdown},cropper:{...Kf},screenfull:{js:Qf},mermaid:{js:Jf,enableZoom:!0},katex:{...e1},echarts:{js:t1}},editorExtensionsAttrs:{},editorConfig:{languageUserDefined:{},mermaidTemplate:{},renderDelay:500,zIndex:2e4},codeMirrorExtensions:e=>e,markdownItConfig:()=>{},markdownItPlugins:e=>e,mermaidConfig:e=>e,katexConfig:e=>e,echartsConfig:e=>e},n1=({instance:e,ctx:t,props:n={}},r="default")=>{const o=(e==null?void 0:e.$slots[r])||(t==null?void 0:t.slots[r]);return(o?o(e):"")||n[r]},u1="buildFinished",ao="errorCatcher",so="catalogChanged",r1="pushCatalog",Na="rerender",o1="taskStateChanged";class i1{constructor(){le(this,"pools",{})}remove(t,n,r){const o=this.pools[t]&&this.pools[t][n];o&&(this.pools[t][n]=o.filter(u=>u!==r))}clear(t){this.pools[t]={}}on(t,n){return this.pools[t]||(this.pools[t]={}),this.pools[t][n.name]||(this.pools[t][n.name]=[]),this.pools[t][n.name].push(n.callback),this.pools[t][n.name].includes(n.callback)}emit(t,n,...r){this.pools[t]||(this.pools[t]={});const o=this.pools[t][n];o&&o.forEach(u=>{try{u(...r)}catch(i){console.error(`${n} monitor event exception!`,i)}})}}const Qe=new i1,a1=(e,t)=>{if(!e)return e;const n=t.split(`
29
+ `),r=['<span rn-wrapper aria-hidden="true">'];return n.forEach(()=>{r.push("<span></span>")}),r.push("</span>"),`<span class="${z}-code-block">${e}</span>${r.join("")}`};async function Oa(e){if(typeof e=="string"){if(window.isSecureContext&&navigator.clipboard)return await navigator.clipboard.writeText(e);{const t=document.createElement("textarea");let n=!1;if(t.value=e,t.style.position="fixed",t.style.opacity=0,t.style.zIndex="-10000",t.style.top="-10000",document.body.appendChild(t),t.select(),n=document.execCommand("copy"),document.body.removeChild(t),n)return;throw new Error('Failed to copy content via "execCommand"!')}}}const s1={copy:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-copy ${z}-icon"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>`,"collapse-tips":`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-chevron-left ${z}-icon"><circle cx="12" cy="12" r="10"/><path d="m14 16-4-4 4-4"/></svg>`,pin:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-pin ${z}-icon"><path d="M12 17v5"/><path d="M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"/></svg>`,"pin-off":`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-pin-off ${z}-icon"><path d="M12 17v5"/><path d="M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89"/><path d="m2 2 20 20"/><path d="M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11"/></svg>`,check:`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check ${z}-icon"><path d="M20 6 9 17l-5-5"/></svg>`},At=(e,t)=>typeof t[e]=="string"?t[e]:s1[e],Mt=(e,t,n="")=>{var o;const r=document.getElementById(t.id);if(r)n!==""&&(Reflect.get(window,n)?(o=t.onload)==null||o.call(r,new Event("load")):t.onload&&r.addEventListener("load",t.onload));else{const u={...t};u.onload=null;const i=l1(e,u);t.onload&&i.addEventListener("load",t.onload),document.head.appendChild(i)}},c1=(e,t)=>{var n;(n=document.getElementById(t.id))==null||n.remove(),Mt(e,t)},l1=(e,t)=>{const n=document.createElement(e);return Object.keys(t).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),n},d1=(e,t)=>{const n=new Map;return e==null||e.forEach(r=>{let o=r.querySelector(`.${z}-mermaid-action`);o?o.querySelector(`.${z}-mermaid-copy`)||o.insertAdjacentHTML("beforeend",`<span class="${z}-mermaid-copy">${At("copy",t.customIcon)}</span>`):(r.insertAdjacentHTML("beforeend",`<div class="${z}-mermaid-action"><span class="${z}-mermaid-copy">${At("copy",t.customIcon)}</span></div>`),o=r.querySelector(`.${z}-mermaid-action`));const u=o.querySelector(`.${z}-mermaid-copy`);let i=-1;const s=()=>{clearTimeout(i),Oa(r.dataset.content||"").then(()=>{u.innerHTML=At("check",t.customIcon)}).catch(()=>{u.innerHTML=At("copy",t.customIcon)}).finally(()=>{i=window.setTimeout(()=>{u.innerHTML=At("copy",t.customIcon)},1500)})};u.addEventListener("click",s),n.set(r,{removeClick:()=>{u.removeEventListener("click",s)}})}),()=>{n.forEach(({removeClick:r})=>{r==null||r()}),n.clear()}},f1=(()=>{const e=t=>{if(!t)return()=>{};const n=t.firstChild;let r=1,o=0,u=0,i=!1,s,c,d,f=1;const l=()=>{n.style.transform=`translate(${o}px, ${u}px) scale(${r})`},p=w=>{w.touches.length===1?(i=!0,s=w.touches[0].clientX-o,c=w.touches[0].clientY-u):w.touches.length===2&&(d=Math.hypot(w.touches[0].clientX-w.touches[1].clientX,w.touches[0].clientY-w.touches[1].clientY),f=r)},m=w=>{if(w.preventDefault(),i&&w.touches.length===1)o=w.touches[0].clientX-s,u=w.touches[0].clientY-c,l();else if(w.touches.length===2){const v=Math.hypot(w.touches[0].clientX-w.touches[1].clientX,w.touches[0].clientY-w.touches[1].clientY)/d,E=r;r=f*(1+(v-1));const _=(w.touches[0].clientX+w.touches[1].clientX)/2,F=(w.touches[0].clientY+w.touches[1].clientY)/2,q=n.getBoundingClientRect(),P=(_-q.left)/E,B=(F-q.top)/E;o-=P*(r-E),u-=B*(r-E),l()}},h=()=>{i=!1},b=w=>{w.preventDefault();const v=.02,E=r;w.deltaY<0?r+=v:r=Math.max(.1,r-v);const _=n.getBoundingClientRect(),F=w.clientX-_.left,q=w.clientY-_.top;o-=F/E*(r-E),u-=q/E*(r-E),l()},A=w=>{i=!0,s=w.clientX-o,c=w.clientY-u},k=w=>{i&&(o=w.clientX-s,u=w.clientY-c,l())},g=()=>{i=!1},y=()=>{i=!1};return t.addEventListener("touchstart",p,{passive:!1}),t.addEventListener("touchmove",m,{passive:!1}),t.addEventListener("touchend",h),t.addEventListener("wheel",b,{passive:!1}),t.addEventListener("mousedown",A),t.addEventListener("mousemove",k),t.addEventListener("mouseup",g),t.addEventListener("mouseleave",y),()=>{t.removeEventListener("touchstart",p),t.removeEventListener("touchmove",m),t.removeEventListener("touchend",h),t.removeEventListener("wheel",b),t.removeEventListener("mousedown",A),t.removeEventListener("mousemove",k),t.removeEventListener("mouseup",g),t.removeEventListener("mouseleave",y)}};return(t,n)=>{const r=new Map;return t==null||t.forEach(o=>{let u=o.querySelector(`.${z}-mermaid-action`);u?u.querySelector(`.${z}-mermaid-zoom`)||u.insertAdjacentHTML("beforeend",`<span class="${z}-mermaid-zoom">${At("pin-off",n.customIcon)}</span>`):(o.insertAdjacentHTML("beforeend",`<div class="${z}-mermaid-action"><span class="${z}-mermaid-zoom">${At("pin-off",n.customIcon)}</span></div>`),u=o.querySelector(`.${z}-mermaid-action`));const i=u.querySelector(`.${z}-mermaid-zoom`),s=()=>{const c=r.get(o);if(c!=null&&c.removeEvent)c.removeEvent(),o.removeAttribute("data-grab"),r.set(o,{removeClick:c.removeClick}),i.innerHTML=At("pin-off",n.customIcon);else{const d=e(o);o.setAttribute("data-grab",""),r.set(o,{removeEvent:d,removeClick:c==null?void 0:c.removeClick}),i.innerHTML=At("pin",n.customIcon)}};i.addEventListener("click",s),r.set(o,{removeClick:()=>i.removeEventListener("click",s)})}),()=>{r.forEach(({removeEvent:o,removeClick:u})=>{o==null||o(),u==null||u()}),r.clear()}}})(),La=new Set([!0,!1,"alt","title"]);function Ia(e,t){return(Array.isArray(e)?e:[]).filter(([n])=>n!==t)}function Ra(e,t){e&&e.attrs&&(e.attrs=Ia(e.attrs,t))}function h1(e,t){if(!La.has(e))throw new TypeError(`figcaption must be one of: ${[...La]}.`);if(e==="alt")return t.content;const n=t.attrs.find(([r])=>r==="title");return Array.isArray(n)&&n[1]?(Ra(t,"title"),n[1]):void 0}function p1(e,t){t=t||{},e.core.ruler.before("linkify","image_figures",function(n){let r=1;for(let o=1,u=n.tokens.length;o<u-1;++o){const i=n.tokens[o];if(i.type!=="inline"||!i.children||i.children.length!==1&&i.children.length!==3||i.children.length===1&&i.children[0].type!=="image")continue;if(i.children.length===3){const[d,f,l]=i.children;if(d.type!=="link_open"||f.type!=="image"||l.type!=="link_close")continue}if(o!==0&&n.tokens[o-1].type!=="paragraph_open"||o!==u-1&&n.tokens[o+1].type!=="paragraph_close")continue;const s=n.tokens[o-1];let c;if(s.type="figure_open",s.tag="figure",n.tokens[o+1].type="figure_close",n.tokens[o+1].tag="figure",t.dataType&&n.tokens[o-1].attrPush(["data-type","image"]),t.link&&i.children.length===1){[c]=i.children;const d=new n.Token("link_open","a",1);d.attrPush(["href",c.attrGet("src")]),i.children.unshift(d),i.children.push(new n.Token("link_close","a",-1))}if(c=i.children.length===1?i.children[0]:i.children[1],t.figcaption){const d=h1(t.figcaption,c);if(d){const[f]=e.parseInline(d,n.env);i.children.push(new n.Token("figcaption_open","figcaption",1)),i.children.push(...f.children),i.children.push(new n.Token("figcaption_close","figcaption",-1)),c.attrs&&(c.attrs=Ia(c.attrs,"title"))}}if(t.copyAttrs&&c.attrs){const d=t.copyAttrs===!0?"":t.copyAttrs;s.attrs=c.attrs.filter(([f])=>f.match(d)).map(f=>Array.from(f))}if(t.tabindex&&(n.tokens[o-1].attrPush(["tabindex",r]),r++),t.lazy&&(c.attrs.some(([d])=>d==="loading")||c.attrs.push(["loading","lazy"])),t.async&&(c.attrs.some(([d])=>d==="decoding")||c.attrs.push(["decoding","async"])),t.classes&&typeof t.classes=="string"){let d=!1;for(let f=0,l=c.attrs.length;f<l&&!d;f++){const p=c.attrs[f];p[0]==="class"&&(p[1]=`${p[1]} ${t.classes}`,d=!0)}d||c.attrs.push(["class",t.classes])}if(t.removeSrc){const d=c.attrs.find(([f])=>f==="src");c.attrs.push(["data-src",d[1]]),Ra(c,"src")}}})}const m1=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function g1(e,t){const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==126||t||r+2>=n)return!1;e.pos=r+1;let o=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===126){o=!0;break}e.md.inline.skipToken(e)}if(!o||r+1===e.pos)return e.pos=r,!1;const u=e.src.slice(r+1,e.pos);if(u.match(/(^|[^\\])(\\\\)*\s/))return e.pos=r,!1;e.posMax=e.pos,e.pos=r+1;const i=e.push("sub_open","sub",1);i.markup="~";const s=e.push("text","",0);s.content=u.replace(m1,"$1");const c=e.push("sub_close","sub",-1);return c.markup="~",e.pos=e.posMax+1,e.posMax=n,!0}function b1(e){e.inline.ruler.after("emphasis","sub",g1)}const y1=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function x1(e,t){const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==94||t||r+2>=n)return!1;e.pos=r+1;let o=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===94){o=!0;break}e.md.inline.skipToken(e)}if(!o||r+1===e.pos)return e.pos=r,!1;const u=e.src.slice(r+1,e.pos);if(u.match(/(^|[^\\])(\\\\)*\s/))return e.pos=r,!1;e.posMax=e.pos,e.pos=r+1;const i=e.push("sup_open","sup",1);i.markup="^";const s=e.push("text","",0);s.content=u.replace(y1,"$1");const c=e.push("sup_close","sup",-1);return c.markup="^",e.pos=e.posMax+1,e.posMax=n,!0}function A1(e){e.inline.ruler.after("emphasis","sup",x1)}var w1=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Ma=new Set,co=typeof process=="object"&&process?process:{},Pa=(e,t,n,r)=>{typeof co.emitWarning=="function"?co.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)},Xu=globalThis.AbortController,Va=globalThis.AbortSignal;if(typeof Xu>"u"){Va=class{constructor(){le(this,"onabort");le(this,"_onabort",[]);le(this,"reason");le(this,"aborted",!1)}addEventListener(n,r){this._onabort.push(r)}},Xu=class{constructor(){le(this,"signal",new Va);t()}abort(n){var r,o;if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let u of this.signal._onabort)u(n);(o=(r=this.signal).onabort)==null||o.call(r,n)}}};let e=((Zs=co.env)==null?void 0:Zs.LRU_CACHE_IGNORE_AC_WARNING)!=="1",t=()=>{e&&(e=!1,Pa("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var k1=e=>!Ma.has(e),Pt=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Ba=e=>Pt(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Zu:null:null,Zu=class extends Array{constructor(t){super(t),this.fill(0)}},v1=(wt=class{constructor(t,n){le(this,"heap");le(this,"length");if(!x(wt,xn))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0}static create(t){let n=Ba(t);if(!n)return[];Y(wt,xn,!0);let r=new wt(t,n);return Y(wt,xn,!1),r}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},xn=new WeakMap,ue(wt,xn,!1),wt),C1=(Cn=class{constructor(t){ue(this,V);ue(this,Je);ue(this,We);ue(this,nt);ue(this,Jt);ue(this,ut);ue(this,An);ue(this,wn);ue(this,rt);le(this,"ttl");le(this,"ttlResolution");le(this,"ttlAutopurge");le(this,"updateAgeOnGet");le(this,"updateAgeOnHas");le(this,"allowStale");le(this,"noDisposeOnSet");le(this,"noUpdateTTL");le(this,"maxEntrySize");le(this,"sizeCalculation");le(this,"noDeleteOnFetchRejection");le(this,"noDeleteOnStaleGet");le(this,"allowStaleOnFetchAbort");le(this,"allowStaleOnFetchRejection");le(this,"ignoreFetchAbort");ue(this,Ae);ue(this,ot);ue(this,ye);ue(this,de);ue(this,K);ue(this,Pe);ue(this,qe);ue(this,Oe);ue(this,Ce);ue(this,it);ue(this,Ee);ue(this,at);ue(this,st);ue(this,Xe);ue(this,Ze);ue(this,ct);ue(this,zt);ue(this,Ve);ue(this,kn);ue(this,en,()=>{});ue(this,Et,()=>{});ue(this,du,()=>{});ue(this,Ye,()=>!1);ue(this,tn,t=>{});ue(this,vn,(t,n,r)=>{});ue(this,fu,(t,n,r,o)=>{if(r||o)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});le(this,Ys,"LRUCache");let{max:n=0,ttl:r,ttlResolution:o=1,ttlAutopurge:u,updateAgeOnGet:i,updateAgeOnHas:s,allowStale:c,dispose:d,onInsert:f,disposeAfter:l,noDisposeOnSet:p,noUpdateTTL:m,maxSize:h=0,maxEntrySize:b=0,sizeCalculation:A,fetchMethod:k,memoMethod:g,noDeleteOnFetchRejection:y,noDeleteOnStaleGet:w,allowStaleOnFetchRejection:v,allowStaleOnFetchAbort:E,ignoreFetchAbort:_,perf:F}=t;if(F!==void 0&&typeof(F==null?void 0:F.now)!="function")throw new TypeError("perf option must have a now() method if specified");if(Y(this,rt,F??w1),n!==0&&!Pt(n))throw new TypeError("max option must be a nonnegative integer");let q=n?Ba(n):Array;if(!q)throw new Error("invalid max value: "+n);if(Y(this,Je,n),Y(this,We,h),this.maxEntrySize=b||x(this,We),this.sizeCalculation=A,this.sizeCalculation){if(!x(this,We)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(g!==void 0&&typeof g!="function")throw new TypeError("memoMethod must be a function if defined");if(Y(this,wn,g),k!==void 0&&typeof k!="function")throw new TypeError("fetchMethod must be a function if specified");if(Y(this,An,k),Y(this,zt,!!k),Y(this,ye,new Map),Y(this,de,new Array(n).fill(void 0)),Y(this,K,new Array(n).fill(void 0)),Y(this,Pe,new q(n)),Y(this,qe,new q(n)),Y(this,Oe,0),Y(this,Ce,0),Y(this,it,v1.create(n)),Y(this,Ae,0),Y(this,ot,0),typeof d=="function"&&Y(this,nt,d),typeof f=="function"&&Y(this,Jt,f),typeof l=="function"?(Y(this,ut,l),Y(this,Ee,[])):(Y(this,ut,void 0),Y(this,Ee,void 0)),Y(this,ct,!!x(this,nt)),Y(this,kn,!!x(this,Jt)),Y(this,Ve,!!x(this,ut)),this.noDisposeOnSet=!!p,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!y,this.allowStaleOnFetchRejection=!!v,this.allowStaleOnFetchAbort=!!E,this.ignoreFetchAbort=!!_,this.maxEntrySize!==0){if(x(this,We)!==0&&!Pt(x(this,We)))throw new TypeError("maxSize must be a positive integer if specified");if(!Pt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");W(this,V,gc).call(this)}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!w,this.updateAgeOnGet=!!i,this.updateAgeOnHas=!!s,this.ttlResolution=Pt(o)||o===0?o:1,this.ttlAutopurge=!!u,this.ttl=r||0,this.ttl){if(!Pt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");W(this,V,jo).call(this)}if(x(this,Je)===0&&this.ttl===0&&x(this,We)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!x(this,Je)&&!x(this,We)){let P="LRU_CACHE_UNBOUNDED";k1(P)&&(Ma.add(P),Pa("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",P,Cn))}}get perf(){return x(this,rt)}static unsafeExposeInternals(t){return{starts:x(t,st),ttls:x(t,Xe),autopurgeTimers:x(t,Ze),sizes:x(t,at),keyMap:x(t,ye),keyList:x(t,de),valList:x(t,K),next:x(t,Pe),prev:x(t,qe),get head(){return x(t,Oe)},get tail(){return x(t,Ce)},free:x(t,it),isBackgroundFetch:n=>{var r;return W(r=t,V,he).call(r,n)},backgroundFetch:(n,r,o,u)=>{var i;return W(i=t,V,pr).call(i,n,r,o,u)},moveToTail:n=>{var r;return W(r=t,V,bu).call(r,n)},indexes:n=>{var r;return W(r=t,V,$t).call(r,n)},rindexes:n=>{var r;return W(r=t,V,Ut).call(r,n)},isStale:n=>{var r;return x(r=t,Ye).call(r,n)}}}get max(){return x(this,Je)}get maxSize(){return x(this,We)}get calculatedSize(){return x(this,ot)}get size(){return x(this,Ae)}get fetchMethod(){return x(this,An)}get memoMethod(){return x(this,wn)}get dispose(){return x(this,nt)}get onInsert(){return x(this,Jt)}get disposeAfter(){return x(this,ut)}getRemainingTTL(t){return x(this,ye).has(t)?1/0:0}*entries(){for(let t of W(this,V,$t).call(this))x(this,K)[t]!==void 0&&x(this,de)[t]!==void 0&&!W(this,V,he).call(this,x(this,K)[t])&&(yield[x(this,de)[t],x(this,K)[t]])}*rentries(){for(let t of W(this,V,Ut).call(this))x(this,K)[t]!==void 0&&x(this,de)[t]!==void 0&&!W(this,V,he).call(this,x(this,K)[t])&&(yield[x(this,de)[t],x(this,K)[t]])}*keys(){for(let t of W(this,V,$t).call(this)){let n=x(this,de)[t];n!==void 0&&!W(this,V,he).call(this,x(this,K)[t])&&(yield n)}}*rkeys(){for(let t of W(this,V,Ut).call(this)){let n=x(this,de)[t];n!==void 0&&!W(this,V,he).call(this,x(this,K)[t])&&(yield n)}}*values(){for(let t of W(this,V,$t).call(this))x(this,K)[t]!==void 0&&!W(this,V,he).call(this,x(this,K)[t])&&(yield x(this,K)[t])}*rvalues(){for(let t of W(this,V,Ut).call(this))x(this,K)[t]!==void 0&&!W(this,V,he).call(this,x(this,K)[t])&&(yield x(this,K)[t])}[(Ks=Symbol.iterator,Ys=Symbol.toStringTag,Ks)](){return this.entries()}find(t,n={}){for(let r of W(this,V,$t).call(this)){let o=x(this,K)[r],u=W(this,V,he).call(this,o)?o.__staleWhileFetching:o;if(u!==void 0&&t(u,x(this,de)[r],this))return this.get(x(this,de)[r],n)}}forEach(t,n=this){for(let r of W(this,V,$t).call(this)){let o=x(this,K)[r],u=W(this,V,he).call(this,o)?o.__staleWhileFetching:o;u!==void 0&&t.call(n,u,x(this,de)[r],this)}}rforEach(t,n=this){for(let r of W(this,V,Ut).call(this)){let o=x(this,K)[r],u=W(this,V,he).call(this,o)?o.__staleWhileFetching:o;u!==void 0&&t.call(n,u,x(this,de)[r],this)}}purgeStale(){let t=!1;for(let n of W(this,V,Ut).call(this,{allowStale:!0}))x(this,Ye).call(this,n)&&(W(this,V,Ht).call(this,x(this,de)[n],"expire"),t=!0);return t}info(t){let n=x(this,ye).get(t);if(n===void 0)return;let r=x(this,K)[n],o=W(this,V,he).call(this,r)?r.__staleWhileFetching:r;if(o===void 0)return;let u={value:o};if(x(this,Xe)&&x(this,st)){let i=x(this,Xe)[n],s=x(this,st)[n];if(i&&s){let c=i-(x(this,rt).now()-s);u.ttl=c,u.start=Date.now()}}return x(this,at)&&(u.size=x(this,at)[n]),u}dump(){let t=[];for(let n of W(this,V,$t).call(this,{allowStale:!0})){let r=x(this,de)[n],o=x(this,K)[n],u=W(this,V,he).call(this,o)?o.__staleWhileFetching:o;if(u===void 0||r===void 0)continue;let i={value:u};if(x(this,Xe)&&x(this,st)){i.ttl=x(this,Xe)[n];let s=x(this,rt).now()-x(this,st)[n];i.start=Math.floor(Date.now()-s)}x(this,at)&&(i.size=x(this,at)[n]),t.unshift([r,i])}return t}load(t){this.clear();for(let[n,r]of t){if(r.start){let o=Date.now()-r.start;r.start=x(this,rt).now()-o}this.set(n,r.value,r)}}set(t,n,r={}){var p,m,h,b,A,k,g;if(n===void 0)return this.delete(t),this;let{ttl:o=this.ttl,start:u,noDisposeOnSet:i=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:c}=r,{noUpdateTTL:d=this.noUpdateTTL}=r,f=x(this,fu).call(this,t,n,r.size||0,s);if(this.maxEntrySize&&f>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),W(this,V,Ht).call(this,t,"set"),this;let l=x(this,Ae)===0?void 0:x(this,ye).get(t);if(l===void 0)l=x(this,Ae)===0?x(this,Ce):x(this,it).length!==0?x(this,it).pop():x(this,Ae)===x(this,Je)?W(this,V,hr).call(this,!1):x(this,Ae),x(this,de)[l]=t,x(this,K)[l]=n,x(this,ye).set(t,l),x(this,Pe)[x(this,Ce)]=l,x(this,qe)[l]=x(this,Ce),Y(this,Ce,l),fr(this,Ae)._++,x(this,vn).call(this,l,f,c),c&&(c.set="add"),d=!1,x(this,kn)&&((p=x(this,Jt))==null||p.call(this,n,t,"add"));else{W(this,V,bu).call(this,l);let y=x(this,K)[l];if(n!==y){if(x(this,zt)&&W(this,V,he).call(this,y)){y.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:w}=y;w!==void 0&&!i&&(x(this,ct)&&((m=x(this,nt))==null||m.call(this,w,t,"set")),x(this,Ve)&&((h=x(this,Ee))==null||h.push([w,t,"set"])))}else i||(x(this,ct)&&((b=x(this,nt))==null||b.call(this,y,t,"set")),x(this,Ve)&&((A=x(this,Ee))==null||A.push([y,t,"set"])));if(x(this,tn).call(this,l),x(this,vn).call(this,l,f,c),x(this,K)[l]=n,c){c.set="replace";let w=y&&W(this,V,he).call(this,y)?y.__staleWhileFetching:y;w!==void 0&&(c.oldValue=w)}}else c&&(c.set="update");x(this,kn)&&((k=this.onInsert)==null||k.call(this,n,t,n===y?"update":"replace"))}if(o!==0&&!x(this,Xe)&&W(this,V,jo).call(this),x(this,Xe)&&(d||x(this,du).call(this,l,o,u),c&&x(this,Et).call(this,c,l)),!i&&x(this,Ve)&&x(this,Ee)){let y=x(this,Ee),w;for(;w=y==null?void 0:y.shift();)(g=x(this,ut))==null||g.call(this,...w)}return this}pop(){var t;try{for(;x(this,Ae);){let n=x(this,K)[x(this,Oe)];if(W(this,V,hr).call(this,!0),W(this,V,he).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(x(this,Ve)&&x(this,Ee)){let n=x(this,Ee),r;for(;r=n==null?void 0:n.shift();)(t=x(this,ut))==null||t.call(this,...r)}}}has(t,n={}){let{updateAgeOnHas:r=this.updateAgeOnHas,status:o}=n,u=x(this,ye).get(t);if(u!==void 0){let i=x(this,K)[u];if(W(this,V,he).call(this,i)&&i.__staleWhileFetching===void 0)return!1;if(x(this,Ye).call(this,u))o&&(o.has="stale",x(this,Et).call(this,o,u));else return r&&x(this,en).call(this,u),o&&(o.has="hit",x(this,Et).call(this,o,u)),!0}else o&&(o.has="miss");return!1}peek(t,n={}){let{allowStale:r=this.allowStale}=n,o=x(this,ye).get(t);if(o===void 0||!r&&x(this,Ye).call(this,o))return;let u=x(this,K)[o];return W(this,V,he).call(this,u)?u.__staleWhileFetching:u}async fetch(t,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:u=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:c=0,sizeCalculation:d=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:p=this.allowStaleOnFetchRejection,ignoreFetchAbort:m=this.ignoreFetchAbort,allowStaleOnFetchAbort:h=this.allowStaleOnFetchAbort,context:b,forceRefresh:A=!1,status:k,signal:g}=n;if(!x(this,zt))return k&&(k.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:o,noDeleteOnStaleGet:u,status:k});let y={allowStale:r,updateAgeOnGet:o,noDeleteOnStaleGet:u,ttl:i,noDisposeOnSet:s,size:c,sizeCalculation:d,noUpdateTTL:f,noDeleteOnFetchRejection:l,allowStaleOnFetchRejection:p,allowStaleOnFetchAbort:h,ignoreFetchAbort:m,status:k,signal:g},w=x(this,ye).get(t);if(w===void 0){k&&(k.fetch="miss");let v=W(this,V,pr).call(this,t,w,y,b);return v.__returned=v}else{let v=x(this,K)[w];if(W(this,V,he).call(this,v)){let q=r&&v.__staleWhileFetching!==void 0;return k&&(k.fetch="inflight",q&&(k.returnedStale=!0)),q?v.__staleWhileFetching:v.__returned=v}let E=x(this,Ye).call(this,w);if(!A&&!E)return k&&(k.fetch="hit"),W(this,V,bu).call(this,w),o&&x(this,en).call(this,w),k&&x(this,Et).call(this,k,w),v;let _=W(this,V,pr).call(this,t,w,y,b),F=_.__staleWhileFetching!==void 0&&r;return k&&(k.fetch=E?"stale":"refresh",F&&E&&(k.returnedStale=!0)),F?_.__staleWhileFetching:_.__returned=_}}async forceFetch(t,n={}){let r=await this.fetch(t,n);if(r===void 0)throw new Error("fetch() returned undefined");return r}memo(t,n={}){let r=x(this,wn);if(!r)throw new Error("no memoMethod provided to constructor");let{context:o,forceRefresh:u,...i}=n,s=this.get(t,i);if(!u&&s!==void 0)return s;let c=r(t,s,{options:i,context:o});return this.set(t,c,i),c}get(t,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:u=this.noDeleteOnStaleGet,status:i}=n,s=x(this,ye).get(t);if(s!==void 0){let c=x(this,K)[s],d=W(this,V,he).call(this,c);return i&&x(this,Et).call(this,i,s),x(this,Ye).call(this,s)?(i&&(i.get="stale"),d?(i&&r&&c.__staleWhileFetching!==void 0&&(i.returnedStale=!0),r?c.__staleWhileFetching:void 0):(u||W(this,V,Ht).call(this,t,"expire"),i&&r&&(i.returnedStale=!0),r?c:void 0)):(i&&(i.get="hit"),d?c.__staleWhileFetching:(W(this,V,bu).call(this,s),o&&x(this,en).call(this,s),c))}else i&&(i.get="miss")}delete(t){return W(this,V,Ht).call(this,t,"delete")}clear(){return W(this,V,Uo).call(this,"delete")}},Je=new WeakMap,We=new WeakMap,nt=new WeakMap,Jt=new WeakMap,ut=new WeakMap,An=new WeakMap,wn=new WeakMap,rt=new WeakMap,Ae=new WeakMap,ot=new WeakMap,ye=new WeakMap,de=new WeakMap,K=new WeakMap,Pe=new WeakMap,qe=new WeakMap,Oe=new WeakMap,Ce=new WeakMap,it=new WeakMap,Ee=new WeakMap,at=new WeakMap,st=new WeakMap,Xe=new WeakMap,Ze=new WeakMap,ct=new WeakMap,zt=new WeakMap,Ve=new WeakMap,kn=new WeakMap,V=new WeakSet,jo=function(){let t=new Zu(x(this,Je)),n=new Zu(x(this,Je));Y(this,Xe,t),Y(this,st,n);let r=this.ttlAutopurge?new Array(x(this,Je)):void 0;Y(this,Ze,r),Y(this,du,(s,c,d=x(this,rt).now())=>{n[s]=c!==0?d:0,t[s]=c,o(s,c)}),Y(this,en,s=>{n[s]=t[s]!==0?x(this,rt).now():0,o(s,t[s])});let o=this.ttlAutopurge?(s,c)=>{if(r!=null&&r[s]&&(clearTimeout(r[s]),r[s]=void 0),c&&c!==0&&r){let d=setTimeout(()=>{x(this,Ye).call(this,s)&&W(this,V,Ht).call(this,x(this,de)[s],"expire")},c+1);d.unref&&d.unref(),r[s]=d}}:()=>{};Y(this,Et,(s,c)=>{if(t[c]){let d=t[c],f=n[c];if(!d||!f)return;s.ttl=d,s.start=f,s.now=u||i();let l=s.now-f;s.remainingTTL=d-l}});let u=0,i=()=>{let s=x(this,rt).now();if(this.ttlResolution>0){u=s;let c=setTimeout(()=>u=0,this.ttlResolution);c.unref&&c.unref()}return s};this.getRemainingTTL=s=>{let c=x(this,ye).get(s);if(c===void 0)return 0;let d=t[c],f=n[c];if(!d||!f)return 1/0;let l=(u||i())-f;return d-l},Y(this,Ye,s=>{let c=n[s],d=t[s];return!!d&&!!c&&(u||i())-c>d})},en=new WeakMap,Et=new WeakMap,du=new WeakMap,Ye=new WeakMap,gc=function(){let t=new Zu(x(this,Je));Y(this,ot,0),Y(this,at,t),Y(this,tn,n=>{Y(this,ot,x(this,ot)-t[n]),t[n]=0}),Y(this,fu,(n,r,o,u)=>{if(W(this,V,he).call(this,r))return 0;if(!Pt(o))if(u){if(typeof u!="function")throw new TypeError("sizeCalculation must be a function");if(o=u(r,n),!Pt(o))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return o}),Y(this,vn,(n,r,o)=>{if(t[n]=r,x(this,We)){let u=x(this,We)-t[n];for(;x(this,ot)>u;)W(this,V,hr).call(this,!0)}Y(this,ot,x(this,ot)+t[n]),o&&(o.entrySize=r,o.totalCalculatedSize=x(this,ot))})},tn=new WeakMap,vn=new WeakMap,fu=new WeakMap,$t=function*({allowStale:t=this.allowStale}={}){if(x(this,Ae))for(let n=x(this,Ce);!(!W(this,V,zo).call(this,n)||((t||!x(this,Ye).call(this,n))&&(yield n),n===x(this,Oe)));)n=x(this,qe)[n]},Ut=function*({allowStale:t=this.allowStale}={}){if(x(this,Ae))for(let n=x(this,Oe);!(!W(this,V,zo).call(this,n)||((t||!x(this,Ye).call(this,n))&&(yield n),n===x(this,Ce)));)n=x(this,Pe)[n]},zo=function(t){return t!==void 0&&x(this,ye).get(x(this,de)[t])===t},hr=function(t){var u,i,s;let n=x(this,Oe),r=x(this,de)[n],o=x(this,K)[n];return x(this,zt)&&W(this,V,he).call(this,o)?o.__abortController.abort(new Error("evicted")):(x(this,ct)||x(this,Ve))&&(x(this,ct)&&((u=x(this,nt))==null||u.call(this,o,r,"evict")),x(this,Ve)&&((i=x(this,Ee))==null||i.push([o,r,"evict"]))),x(this,tn).call(this,n),(s=x(this,Ze))!=null&&s[n]&&(clearTimeout(x(this,Ze)[n]),x(this,Ze)[n]=void 0),t&&(x(this,de)[n]=void 0,x(this,K)[n]=void 0,x(this,it).push(n)),x(this,Ae)===1?(Y(this,Oe,Y(this,Ce,0)),x(this,it).length=0):Y(this,Oe,x(this,Pe)[n]),x(this,ye).delete(r),fr(this,Ae)._--,n},pr=function(t,n,r,o){let u=n===void 0?void 0:x(this,K)[n];if(W(this,V,he).call(this,u))return u;let i=new Xu,{signal:s}=r;s==null||s.addEventListener("abort",()=>i.abort(s.reason),{signal:i.signal});let c={signal:i.signal,options:r,context:o},d=(b,A=!1)=>{let{aborted:k}=i.signal,g=r.ignoreFetchAbort&&b!==void 0,y=r.ignoreFetchAbort||!!(r.allowStaleOnFetchAbort&&b!==void 0);if(r.status&&(k&&!A?(r.status.fetchAborted=!0,r.status.fetchError=i.signal.reason,g&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),k&&!g&&!A)return l(i.signal.reason,y);let w=m,v=x(this,K)[n];return(v===m||g&&A&&v===void 0)&&(b===void 0?w.__staleWhileFetching!==void 0?x(this,K)[n]=w.__staleWhileFetching:W(this,V,Ht).call(this,t,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(t,b,c.options))),b},f=b=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=b),l(b,!1)),l=(b,A)=>{let{aborted:k}=i.signal,g=k&&r.allowStaleOnFetchAbort,y=g||r.allowStaleOnFetchRejection,w=y||r.noDeleteOnFetchRejection,v=m;if(x(this,K)[n]===m&&(!w||!A&&v.__staleWhileFetching===void 0?W(this,V,Ht).call(this,t,"fetch"):g||(x(this,K)[n]=v.__staleWhileFetching)),y)return r.status&&v.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),v.__staleWhileFetching;if(v.__returned===v)throw b},p=(b,A)=>{var g;let k=(g=x(this,An))==null?void 0:g.call(this,t,u,c);k&&k instanceof Promise&&k.then(y=>b(y===void 0?void 0:y),A),i.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(b(void 0),r.allowStaleOnFetchAbort&&(b=y=>d(y,!0)))})};r.status&&(r.status.fetchDispatched=!0);let m=new Promise(p).then(d,f),h=Object.assign(m,{__abortController:i,__staleWhileFetching:u,__returned:void 0});return n===void 0?(this.set(t,h,{...c.options,status:void 0}),n=x(this,ye).get(t)):x(this,K)[n]=h,h},he=function(t){if(!x(this,zt))return!1;let n=t;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof Xu},$o=function(t,n){x(this,qe)[n]=t,x(this,Pe)[t]=n},bu=function(t){t!==x(this,Ce)&&(t===x(this,Oe)?Y(this,Oe,x(this,Pe)[t]):W(this,V,$o).call(this,x(this,qe)[t],x(this,Pe)[t]),W(this,V,$o).call(this,x(this,Ce),t),Y(this,Ce,t))},Ht=function(t,n){var o,u,i,s,c,d;let r=!1;if(x(this,Ae)!==0){let f=x(this,ye).get(t);if(f!==void 0)if((o=x(this,Ze))!=null&&o[f]&&(clearTimeout((u=x(this,Ze))==null?void 0:u[f]),x(this,Ze)[f]=void 0),r=!0,x(this,Ae)===1)W(this,V,Uo).call(this,n);else{x(this,tn).call(this,f);let l=x(this,K)[f];if(W(this,V,he).call(this,l)?l.__abortController.abort(new Error("deleted")):(x(this,ct)||x(this,Ve))&&(x(this,ct)&&((i=x(this,nt))==null||i.call(this,l,t,n)),x(this,Ve)&&((s=x(this,Ee))==null||s.push([l,t,n]))),x(this,ye).delete(t),x(this,de)[f]=void 0,x(this,K)[f]=void 0,f===x(this,Ce))Y(this,Ce,x(this,qe)[f]);else if(f===x(this,Oe))Y(this,Oe,x(this,Pe)[f]);else{let p=x(this,qe)[f];x(this,Pe)[p]=x(this,Pe)[f];let m=x(this,Pe)[f];x(this,qe)[m]=x(this,qe)[f]}fr(this,Ae)._--,x(this,it).push(f)}}if(x(this,Ve)&&((c=x(this,Ee))!=null&&c.length)){let f=x(this,Ee),l;for(;l=f==null?void 0:f.shift();)(d=x(this,ut))==null||d.call(this,...l)}return r},Uo=function(t){var n,r,o,u;for(let i of W(this,V,Ut).call(this,{allowStale:!0})){let s=x(this,K)[i];if(W(this,V,he).call(this,s))s.__abortController.abort(new Error("deleted"));else{let c=x(this,de)[i];x(this,ct)&&((n=x(this,nt))==null||n.call(this,s,c,t)),x(this,Ve)&&((r=x(this,Ee))==null||r.push([s,c,t]))}}if(x(this,ye).clear(),x(this,K).fill(void 0),x(this,de).fill(void 0),x(this,Xe)&&x(this,st)){x(this,Xe).fill(0),x(this,st).fill(0);for(let i of x(this,Ze)??[])i!==void 0&&clearTimeout(i);(o=x(this,Ze))==null||o.fill(void 0)}if(x(this,at)&&x(this,at).fill(0),Y(this,Oe,0),Y(this,Ce,0),x(this,it).length=0,Y(this,ot,0),Y(this,Ae,0),x(this,Ve)&&x(this,Ee)){let i=x(this,Ee),s;for(;s=i==null?void 0:i.shift();)(u=x(this,ut))==null||u.call(this,...s)}},Cn);/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */var Xt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yu=function(t){return t.tagName==="IMG"},E1=function(t){return NodeList.prototype.isPrototypeOf(t)},Ku=function(t){return t&&t.nodeType===1},ja=function(t){var n=t.currentSrc||t.src;return n.substr(-4).toLowerCase()===".svg"},za=function(t){try{return Array.isArray(t)?t.filter(Yu):E1(t)?[].slice.call(t).filter(Yu):Ku(t)?[t].filter(Yu):typeof t=="string"?[].slice.call(document.querySelectorAll(t)).filter(Yu):[]}catch{throw new TypeError(`The provided selector is invalid.
30
+ Expects a CSS selector, a Node element, a NodeList or an array.
31
+ See: https://github.com/francoischalifour/medium-zoom`)}},_1=function(t){var n=document.createElement("div");return n.classList.add("medium-zoom-overlay"),n.style.background=t,n},F1=function(t){var n=t.getBoundingClientRect(),r=n.top,o=n.left,u=n.width,i=n.height,s=t.cloneNode(),c=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,d=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return s.removeAttribute("id"),s.style.position="absolute",s.style.top=r+c+"px",s.style.left=o+d+"px",s.style.width=u+"px",s.style.height=i+"px",s.style.transform="",s},gn=function(t,n){var r=Xt({bubbles:!1,cancelable:!1,detail:void 0},n);if(typeof window.CustomEvent=="function")return new CustomEvent(t,r);var o=document.createEvent("CustomEvent");return o.initCustomEvent(t,r.bubbles,r.cancelable,r.detail),o},D1=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=window.Promise||function(j){function D(){}j(D,D)},o=function(j){var D=j.target;if(D===q){h();return}y.indexOf(D)!==-1&&b({target:D})},u=function(){if(!(v||!F.original)){var j=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(E-j)>_.scrollOffset&&setTimeout(h,150)}},i=function(j){var D=j.key||j.keyCode;(D==="Escape"||D==="Esc"||D===27)&&h()},s=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=j;if(j.background&&(q.style.background=j.background),j.container&&j.container instanceof Object&&(D.container=Xt({},_.container,j.container)),j.template){var R=Ku(j.template)?j.template:document.querySelector(j.template);D.template=R}return _=Xt({},_,D),y.forEach(function(M){M.dispatchEvent(gn("medium-zoom:update",{detail:{zoom:P}}))}),P},c=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(Xt({},_,j))},d=function(){for(var j=arguments.length,D=Array(j),R=0;R<j;R++)D[R]=arguments[R];var M=D.reduce(function(S,H){return[].concat(S,za(H))},[]);return M.filter(function(S){return y.indexOf(S)===-1}).forEach(function(S){y.push(S),S.classList.add("medium-zoom-image")}),w.forEach(function(S){var H=S.type,O=S.listener,U=S.options;M.forEach(function(te){te.addEventListener(H,O,U)})}),P},f=function(){for(var j=arguments.length,D=Array(j),R=0;R<j;R++)D[R]=arguments[R];F.zoomed&&h();var M=D.length>0?D.reduce(function(S,H){return[].concat(S,za(H))},[]):y;return M.forEach(function(S){S.classList.remove("medium-zoom-image"),S.dispatchEvent(gn("medium-zoom:detach",{detail:{zoom:P}}))}),y=y.filter(function(S){return M.indexOf(S)===-1}),P},l=function(j,D){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return y.forEach(function(M){M.addEventListener("medium-zoom:"+j,D,R)}),w.push({type:"medium-zoom:"+j,listener:D,options:R}),P},p=function(j,D){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return y.forEach(function(M){M.removeEventListener("medium-zoom:"+j,D,R)}),w=w.filter(function(M){return!(M.type==="medium-zoom:"+j&&M.listener.toString()===D.toString())}),P},m=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=j.target,R=function(){var S={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},H=void 0,O=void 0;if(_.container)if(_.container instanceof Object)S=Xt({},S,_.container),H=S.width-S.left-S.right-_.margin*2,O=S.height-S.top-S.bottom-_.margin*2;else{var U=Ku(_.container)?_.container:document.querySelector(_.container),te=U.getBoundingClientRect(),Q=te.width,N=te.height,L=te.left,$=te.top;S=Xt({},S,{width:Q,height:N,left:L,top:$})}H=H||S.width-_.margin*2,O=O||S.height-_.margin*2;var G=F.zoomedHd||F.original,J=ja(G)?H:G.naturalWidth||H,oe=ja(G)?O:G.naturalHeight||O,ne=G.getBoundingClientRect(),re=ne.top,fe=ne.left,_e=ne.width,kt=ne.height,lt=Math.min(Math.max(_e,J),H)/_e,En=Math.min(Math.max(kt,oe),O)/kt,dt=Math.min(lt,En),hu=(-fe+(H-_e)/2+_.margin+S.left)/dt,pu=(-re+(O-kt)/2+_.margin+S.top)/dt,_t="scale("+dt+") translate3d("+hu+"px, "+pu+"px, 0)";F.zoomed.style.transform=_t,F.zoomedHd&&(F.zoomedHd.style.transform=_t)};return new r(function(M){if(D&&y.indexOf(D)===-1){M(P);return}var S=function Q(){v=!1,F.zoomed.removeEventListener("transitionend",Q),F.original.dispatchEvent(gn("medium-zoom:opened",{detail:{zoom:P}})),M(P)};if(F.zoomed){M(P);return}if(D)F.original=D;else if(y.length>0){var H=y;F.original=H[0]}else{M(P);return}if(F.original.dispatchEvent(gn("medium-zoom:open",{detail:{zoom:P}})),E=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,v=!0,F.zoomed=F1(F.original),document.body.appendChild(q),_.template){var O=Ku(_.template)?_.template:document.querySelector(_.template);F.template=document.createElement("div"),F.template.appendChild(O.content.cloneNode(!0)),document.body.appendChild(F.template)}if(F.original.parentElement&&F.original.parentElement.tagName==="PICTURE"&&F.original.currentSrc&&(F.zoomed.src=F.original.currentSrc),document.body.appendChild(F.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),F.original.classList.add("medium-zoom-image--hidden"),F.zoomed.classList.add("medium-zoom-image--opened"),F.zoomed.addEventListener("click",h),F.zoomed.addEventListener("transitionend",S),F.original.getAttribute("data-zoom-src")){F.zoomedHd=F.zoomed.cloneNode(),F.zoomedHd.removeAttribute("srcset"),F.zoomedHd.removeAttribute("sizes"),F.zoomedHd.removeAttribute("loading"),F.zoomedHd.src=F.zoomed.getAttribute("data-zoom-src"),F.zoomedHd.onerror=function(){clearInterval(U),console.warn("Unable to reach the zoom image target "+F.zoomedHd.src),F.zoomedHd=null,R()};var U=setInterval(function(){F.zoomedHd.complete&&(clearInterval(U),F.zoomedHd.classList.add("medium-zoom-image--opened"),F.zoomedHd.addEventListener("click",h),document.body.appendChild(F.zoomedHd),R())},10)}else if(F.original.hasAttribute("srcset")){F.zoomedHd=F.zoomed.cloneNode(),F.zoomedHd.removeAttribute("sizes"),F.zoomedHd.removeAttribute("loading");var te=F.zoomedHd.addEventListener("load",function(){F.zoomedHd.removeEventListener("load",te),F.zoomedHd.classList.add("medium-zoom-image--opened"),F.zoomedHd.addEventListener("click",h),document.body.appendChild(F.zoomedHd),R()})}else R()})},h=function(){return new r(function(j){if(v||!F.original){j(P);return}var D=function R(){F.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(F.zoomed),F.zoomedHd&&document.body.removeChild(F.zoomedHd),document.body.removeChild(q),F.zoomed.classList.remove("medium-zoom-image--opened"),F.template&&document.body.removeChild(F.template),v=!1,F.zoomed.removeEventListener("transitionend",R),F.original.dispatchEvent(gn("medium-zoom:closed",{detail:{zoom:P}})),F.original=null,F.zoomed=null,F.zoomedHd=null,F.template=null,j(P)};v=!0,document.body.classList.remove("medium-zoom--opened"),F.zoomed.style.transform="",F.zoomedHd&&(F.zoomedHd.style.transform=""),F.template&&(F.template.style.transition="opacity 150ms",F.template.style.opacity=0),F.original.dispatchEvent(gn("medium-zoom:close",{detail:{zoom:P}})),F.zoomed.addEventListener("transitionend",D)})},b=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=j.target;return F.original?h():m({target:D})},A=function(){return _},k=function(){return y},g=function(){return F.original},y=[],w=[],v=!1,E=0,_=n,F={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?_=t:(t||typeof t=="string")&&d(t),_=Xt({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},_);var q=_1(_.background);document.addEventListener("click",o),document.addEventListener("keyup",i),document.addEventListener("scroll",u),window.addEventListener("resize",h);var P={open:m,close:h,toggle:b,update:s,clone:c,attach:d,detach:f,on:l,off:p,getOptions:A,getImages:k,getZoomedImage:g};return P};function S1(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var T1=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";S1(T1);const Vt={hljs:`${z}-hljs`,hlcss:`${z}-hlCss`,mermaidM:`${z}-mermaid-m`,mermaid:`${z}-mermaid`,katexjs:`${z}-katex`,katexcss:`${z}-katexCss`,echarts:`${z}-echarts`},N1=(e,{editorId:t,rootRef:n,setting:r})=>{const o=tt.editorExtensions.highlight,u=tt.editorExtensionsAttrs.highlight;a.provide("editorId",t),a.provide("rootRef",n),a.provide("theme",a.computed(()=>e.theme)),a.provide("language",a.computed(()=>e.language)),a.provide("highlight",a.computed(()=>{const{js:s}=o,c={...io,...o.css},{js:d,css:f={}}=u||{},l=e.codeStyleReverse&&e.codeStyleReverseList.includes(e.previewTheme)?"dark":e.theme,p=c[e.codeTheme]?c[e.codeTheme][l]:io.atom[l],m=c[e.codeTheme]&&f[e.codeTheme]?f[e.codeTheme][l]:f.atom?f.atom[l]:{};return{js:{src:s,...d},css:{href:p,...m}}})),a.provide("showCodeRowNumber",e.showCodeRowNumber);const i=a.computed(()=>{const s={...Ta,...tt.editorConfig.languageUserDefined};return ro(Yn(Ta["en-US"]),s[e.language]||{})});return a.provide("usedLanguageText",i),a.provide("previewTheme",a.computed(()=>e.previewTheme)),a.provide("customIcon",a.computed(()=>e.customIcon)),a.provide("setting",a.computed(()=>r?{...r}:{preview:!0,htmlPreview:!1,previewOnly:!1,pageFullscreen:!1,fullscreen:!1})),{editorId:t}},O1=e=>{const t=a.useId();return e.id||e.editorId||`${z}-${t}`},L1=(e,t,n)=>{const r=a.inject("editorId"),o=a.inject("rootRef"),u=a.inject("usedLanguageText"),i=a.inject("setting"),s=()=>{o.value.querySelectorAll(`#${r} .${z}-preview .${z}-code`).forEach(f=>{let l=-1;const p=f.querySelector(`.${z}-copy-button:not([data-processed])`);p&&(p.onclick=m=>{m.preventDefault(),clearTimeout(l);const h=(f.querySelector("input:checked + pre code")||f.querySelector("pre code")).textContent,{text:b,successTips:A,failTips:k}=u.value.copyCode;let g=A;Oa(e.formatCopiedText(h||"")).catch(()=>{g=k}).finally(()=>{p.dataset.isIcon?p.dataset.tips=g:p.innerHTML=g,l=window.setTimeout(()=>{p.dataset.isIcon?p.dataset.tips=b:p.innerHTML=b},1500)})},p.setAttribute("data-processed","true"))})},c=()=>{a.nextTick(s)},d=f=>{f&&a.nextTick(s)};a.watch([t,n],c),a.watch(()=>i.value.preview,d),a.watch(()=>i.value.htmlPreview,d),a.onMounted(s)},I1=e=>{const t=a.inject("editorId"),n=a.inject("theme"),r=a.inject("rootRef"),{editorExtensions:o,editorExtensionsAttrs:u}=tt;let i=o.echarts.instance;const s=a.shallowRef(-1),c=()=>{!e.noEcharts&&i&&(s.value=s.value+1)};a.watch(()=>n.value,()=>{c()}),a.onMounted(()=>{var b;if(e.noEcharts||i)return;const h=o.echarts.js;Mt("script",{...(b=u.echarts)==null?void 0:b.js,src:h,id:Vt.echarts,onload(){i=window.echarts,c()}},"echarts")});let d=[],f=[],l=[];const p=(h=!1)=>{if(!d.length){h&&(f.forEach(g=>{var y;(y=g.dispose)==null||y.call(g)}),l.forEach(g=>{var y;(y=g.disconnect)==null||y.call(g)}),f=[],l=[]);return}const b=[],A=[],k=[];d.forEach((g,y)=>{var E,_;const w=f[y],v=l[y];if(h||!g||!g.isConnected||r!=null&&r.value&&!r.value.contains(g)){(E=w==null?void 0:w.dispose)==null||E.call(w),(_=v==null?void 0:v.disconnect)==null||_.call(v);return}b.push(g),w&&A.push(w),v&&k.push(v)}),d=b,f=A,l=k},m=()=>{p(),!e.noEcharts&&i&&Array.from(r.value.querySelectorAll(`#${t} div.${z}-echarts:not([data-processed])`)).forEach(h=>{if(h.dataset.closed==="false")return!1;try{const b=new Function(`return ${h.innerText}`)(),A=i.init(h,n.value);A.setOption(b),h.setAttribute("data-processed",""),d.push(h),f.push(A);const k=new ResizeObserver(()=>{A.resize()});k.observe(h),l.push(k)}catch(b){Qe.emit(t,ao,{name:"echarts",message:b==null?void 0:b.message,error:b})}})};return a.onBeforeUnmount(()=>{p(!0)}),{reRenderEcharts:s,replaceEcharts:m}},R1=e=>{const t=a.inject("highlight"),n=a.shallowRef(tt.editorExtensions.highlight.instance);return a.onMounted(()=>{e.noHighlight||n.value||(Mt("link",{...t.value.css,rel:"stylesheet",id:Vt.hlcss}),Mt("script",{...t.value.js,id:Vt.hljs,onload(){n.value=window.hljs}},"hljs"))}),a.watch(()=>t.value.css,()=>{e.noHighlight||tt.editorExtensions.highlight.instance||c1("link",{...t.value.css,rel:"stylesheet",id:Vt.hlcss})}),n},M1=e=>{const t=a.shallowRef(tt.editorExtensions.katex.instance);return a.onMounted(()=>{var o,u;if(e.noKatex||t.value)return;const{editorExtensions:n,editorExtensionsAttrs:r}=tt;Mt("script",{...(o=r.katex)==null?void 0:o.js,src:n.katex.js,id:Vt.katexjs,onload(){t.value=window.katex}},"katex"),Mt("link",{...(u=r.katex)==null?void 0:u.css,rel:"stylesheet",href:n.katex.css,id:Vt.katexcss})}),t},Qu=new C1({max:1e3,ttl:6e5}),P1=e=>{const t=a.inject("editorId"),n=a.inject("theme"),r=a.inject("rootRef"),{editorExtensions:o,editorExtensionsAttrs:u,mermaidConfig:i}=tt;let s=o.mermaid.instance;const c=a.shallowRef(-1),d=()=>{if(!e.noMermaid&&s){const f=n.value==="dark"?{startOnLoad:!1,theme:"dark"}:{startOnLoad:!1,theme:"base",themeVariables:{background:"#ffffff",primaryColor:"#ffffff",primaryTextColor:"#1f2329",primaryBorderColor:"#b7c0cc",secondaryColor:"#f7f8fa",tertiaryColor:"#f7f8fa",lineColor:"#596273",edgeLabelBackground:"#ffffff",clusterBkg:"#ffffff",clusterBorder:"#b7c0cc"}};s.initialize(i(f)),c.value=c.value+1}};return a.watch(()=>n.value,()=>{Qu.clear(),d()}),a.onMounted(()=>{var l,p;if(e.noMermaid||s)return;const f=o.mermaid.js;/\.mjs/.test(f)?(Mt("link",{...(l=u.mermaid)==null?void 0:l.js,rel:"modulepreload",href:f,id:Vt.mermaidM}),import(f).then(m=>{s=m.default,d()}).catch(m=>{Qe.emit(t,ao,{name:"mermaid",message:`Failed to load mermaid module: ${m.message}`,error:m})})):Mt("script",{...(p=u.mermaid)==null?void 0:p.js,src:f,id:Vt.mermaid,onload(){s=window.mermaid,d()}},"mermaid")}),{reRenderRef:c,replaceMermaid:async()=>{if(!e.noMermaid&&s){const f=r.value.querySelectorAll(`div.${z}-mermaid`),l=document.createElement("div"),p=document.body.offsetWidth>1366?document.body.offsetWidth:1366,m=document.body.offsetHeight>768?document.body.offsetHeight:768;l.style.width=p+"px",l.style.height=m+"px",l.style.position="fixed",l.style.zIndex="-10000",l.style.top="-10000";let h=f.length;h>0&&document.body.appendChild(l),await Promise.allSettled(Array.from(f).map(b=>(async A=>{var y;if(A.dataset.closed==="false")return!1;const k=A.innerText;let g=Qu.get(k);if(!g){const w=uo();let v={svg:""};try{v=await s.render(w,k,l),g=await e.sanitizeMermaid(v.svg);const E=document.createElement("p");E.className=`${z}-mermaid`,E.setAttribute("data-processed",""),E.setAttribute("data-content",k),E.innerHTML=g,(y=E.children[0])==null||y.removeAttribute("height"),Qu.set(k,E.innerHTML),A.dataset.line!==void 0&&(E.dataset.line=A.dataset.line),A.replaceWith(E)}catch(E){Qe.emit(t,ao,{name:"mermaid",message:E.message,error:E})}--h===0&&l.remove()}})(b)))}}}},V1=(e,t)=>{t=t||{};const n=3,r=t.marker||"!",o=r.charCodeAt(0),u=r.length;let i="",s="";const c=(f,l,p,m,h)=>{const b=f[l];return b.type==="admonition_open"?f[l].attrPush(["class",`${z}-admonition ${z}-admonition-${b.info}`]):b.type==="admonition_title_open"&&f[l].attrPush(["class",`${z}-admonition-title`]),h.renderToken(f,l,p)},d=f=>{const l=f.trim().split(" ",2);s="",i=l[0],l.length>1&&(s=f.substring(i.length+2))};e.block.ruler.before("code","admonition",(f,l,p,m)=>{let h,b,A,k=!1,g=f.bMarks[l]+f.tShift[l],y=f.eMarks[l];if(o!==f.src.charCodeAt(g))return!1;for(h=g+1;h<=y&&r[(h-g)%u]===f.src[h];h++);const w=Math.floor((h-g)/u);if(w!==n)return!1;h-=(h-g)%u;const v=f.src.slice(g,h),E=f.src.slice(h,y);if(d(E),m)return!0;for(b=l;b++,!(b>=p||(g=f.bMarks[b]+f.tShift[b],y=f.eMarks[b],g<y&&f.sCount[b]<f.blkIndent));)if(o===f.src.charCodeAt(g)&&!(f.sCount[b]-f.blkIndent>=4)){for(h=g+1;h<=y&&r[(h-g)%u]===f.src[h];h++);if(!(Math.floor((h-g)/u)<w)&&(h-=(h-g)%u,h=f.skipSpaces(h),!(h<y))){k=!0;break}}const _=f.parentType,F=f.lineMax;return f.parentType="root",f.lineMax=b,A=f.push("admonition_open","div",1),A.markup=v,A.block=!0,A.info=i,A.map=[l,b],s&&(A=f.push("admonition_title_open","p",1),A.markup=v+" "+i,A.map=[l,b],A=f.push("inline","",0),A.content=s,A.map=[l,f.line-1],A.children=[],A=f.push("admonition_title_close","p",-1),A.markup=v+" "+i),f.md.block.tokenize(f,l+1,b),A=f.push("admonition_close","div",-1),A.markup=f.src.slice(g,h),A.block=!0,f.parentType=_,f.lineMax=F,f.line=b+(k?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.admonition_open=c,e.renderer.rules.admonition_title_open=c,e.renderer.rules.admonition_title_close=c,e.renderer.rules.admonition_close=c},lo=(e,t)=>{const n=e.attrs?e.attrs.slice():[];return t.forEach(r=>{const o=e.attrIndex(r[0]);o<0?n.push(r):(n[o]=n[o].slice(),n[o][1]+=` ${r[1]}`)}),n},B1=(e,t)=>{const n=e.renderer.rules.fence,r=e.utils.unescapeAll,o=/\[(\w*)(?::([\w ]*))?\]/,u=/::(open|close)/,i=l=>l.info?r(l.info).trim():"",s=l=>{const p=i(l),[m=null,h=""]=(o.exec(p)||[]).slice(1);return[m,h]},c=l=>{const p=i(l);return p?p.split(/(\s+)/g)[0]:""},d=l=>{const p=l.info.match(u)||[],m=p[1]==="open"||p[1]!=="close"&&t.codeFoldable&&l.content.trim().split(`
32
+ `).length<t.autoFoldThreshold,h=p[1]||t.codeFoldable?"details":"div",b=p[1]||t.codeFoldable?"summary":"div";return{open:m,tagContainer:h,tagHeader:b}},f=(l,p,m,h,b)=>{var H;if(l[p].hidden)return"";const A=(H=t.usedLanguageTextRef.value)==null?void 0:H.copyCode.text,k=t.customIconRef.value.copy||A,g=!!t.customIconRef.value.copy,y=`<span class="${z}-collapse-tips">${At("collapse-tips",t.customIconRef.value)}</span>`,[w]=s(l[p]);if(w===null){const{open:O,tagContainer:U,tagHeader:te}=d(l[p]),Q=[["class",`${z}-code`]];O&&Q.push(["open",""]);const N={attrs:lo(l[p],Q)};l[p].info=l[p].info.replace(u,"");const L=n(l,p,m,h,b);return`
33
+ <${U} ${b.renderAttrs(N)}>
34
+ <${te} class="${z}-code-head">
35
+ <div class="${z}-code-flag"><span></span><span></span><span></span></div>
36
+ <div class="${z}-code-action">
37
+ <span class="${z}-code-lang">${e.utils.escapeHtml(l[p].info.trim())}</span>
38
+ <span class="${z}-copy-button" data-tips="${A}"${g?" data-is-icon=true":""}>${k}</span>
39
+ ${t.extraTools instanceof Function?t.extraTools({lang:l[p].info.trim()}):t.extraTools||""}
40
+ ${U==="details"?y:""}
41
+ </div>
42
+ </${te}>
43
+ ${L}
44
+ </${U}>
45
+ `}let v,E,_,F,q="",P="",B="";const{open:j,tagContainer:D,tagHeader:R}=d(l[p]),M=[["class",`${z}-code`]];j&&M.push(["open",""]);const S={attrs:lo(l[p],M)};for(let O=p;O<l.length&&(v=l[O],[E,_]=s(v),E===w);O++){v.info=v.info.replace(o,"").replace(u,""),v.hidden=!0;const U=`${z}-codetab-${t.editorId}-${p}-${O-p}`;F=O-p>0?"":"checked",q+=`
46
+ <li>
47
+ <input
48
+ type="radio"
49
+ id="label-${z}-codetab-label-1-${t.editorId}-${p}-${O-p}"
50
+ name="${z}-codetab-label-${t.editorId}-${p}"
51
+ class="${U}"
52
+ ${F}
53
+ >
54
+ <label
55
+ for="label-${z}-codetab-label-1-${t.editorId}-${p}-${O-p}"
56
+ onclick="this.getRootNode().querySelectorAll('.${U}').forEach(e => e.click())"
57
+ >
58
+ ${e.utils.escapeHtml(_||c(v))}
59
+ </label>
60
+ </li>`,P+=`
61
+ <div role="tabpanel">
62
+ <input
63
+ type="radio"
64
+ name="${z}-codetab-pre-${t.editorId}-${p}"
65
+ class="${U}"
66
+ ${F}
67
+ role="presentation">
68
+ ${n(l,O,m,h,b)}
69
+ </div>`,B+=`
70
+ <input
71
+ type="radio"
72
+ name="${z}-codetab-lang-${t.editorId}-${p}"
73
+ class="${U}"
74
+ ${F}
75
+ role="presentation">
76
+ <span class=${z}-code-lang role="note">${e.utils.escapeHtml(c(v))}</span>`}return`
77
+ <${D} ${b.renderAttrs(S)}>
78
+ <${R} class="${z}-code-head">
79
+ <div class="${z}-code-flag">
80
+ <ul class="${z}-codetab-label" role="tablist">${q}</ul>
81
+ </div>
82
+ <div class="${z}-code-action">
83
+ <span class="${z}-codetab-lang">${B}</span>
84
+ <span class="${z}-copy-button" data-tips="${A}"${g?" data-is-icon=true":""}>${k}</span>
85
+ ${t.extraTools instanceof Function?t.extraTools({lang:l[p].info.trim()}):t.extraTools||""}
86
+ ${D==="details"?y:""}
87
+ </div>
88
+ </${R}>
89
+ ${P}
90
+ </${D}>
91
+ `};e.renderer.rules.fence=f,e.renderer.rules.code_block=f},j1=(e,t)=>{const n=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(r,o,u,i,s)=>{var f,l;const c=r[o],d=c.content.trim();if(c.info==="echarts"){if(c.attrSet("class",`${z}-echarts`),c.attrSet("data-echarts-theme",t.themeRef.value),c.map&&c.level===0){const p=c.map[1]-1,m=!!((l=(f=i.srcLines[p])==null?void 0:f.trim())!=null&&l.startsWith("```"));c.attrSet("data-closed",`${m}`),c.attrSet("data-line",String(c.map[0]))}return`<div ${s.renderAttrs(c)} style="width: 100%; aspect-ratio: 4 / 3;">${e.utils.escapeHtml(d)}</div>`}return n(r,o,u,i,s)}},z1=(e,t)=>{e.renderer.rules.heading_open=(n,r)=>{var s;const o=n[r],u=((s=n[r+1].children)==null?void 0:s.reduce((c,d)=>c+(["text","code_inline","math_inline"].includes(d.type)&&d.content||""),""))||"",i=o.markup.length;return t.headsRef.value.push({text:u,level:i,line:o.map[0],currentToken:o,nextToken:n[r+1]}),o.map&&o.level===0&&o.attrSet("id",t.mdHeadingId({text:u,level:i,index:t.headsRef.value.length,currentToken:o,nextToken:n[r+1]})),e.renderer.renderToken(n,r,t)},e.renderer.rules.heading_close=(n,r,o,u,i)=>i.renderToken(n,r,o)},$a={block:[{open:"$$",close:"$$"},{open:"\\[",close:"\\]"}],inline:[{open:"$$",close:"$$"},{open:"$",close:"$"},{open:"\\[",close:"\\]"},{open:"\\(",close:"\\)"}]},$1=e=>(t,n)=>{const r=e.delimiters;for(const o of r){if(!t.src.startsWith(o.open,t.pos))continue;const u=t.pos+o.open.length;let i=u;for(;(i=t.src.indexOf(o.close,i))!==-1;){let s=0,c=i-1;for(;c>=0&&t.src[c]==="\\";)s++,c--;if(s%2===0)break;i+=o.close.length}if(i!==-1){if(i-u===0)return n||(t.pending+=o.open+o.close),t.pos=i+o.close.length,!0;if(!n){const s=t.push("math_inline","math",0);s.markup=o.open,s.content=t.src.slice(u,i)}return t.pos=i+o.close.length,!0}}return!1},U1=e=>(t,n,r,o)=>{const u=e.delimiters,i=t.bMarks[n]+t.tShift[n],s=t.eMarks[n],c=(d,f,l)=>{t.line=f;const p=t.push("math_block","math",0);return p.block=!0,p.content=d,p.map=[n,t.line],p.markup=l,!0};for(const d of u){const f=i;if(t.src.slice(f,f+d.open.length)!==d.open)continue;const l=f+d.open.length,p=t.src.slice(l,s).trim(),m=p==="",h=p===d.close,b=p.endsWith(d.close);if(!m&&!h&&!b)continue;if(o)return!0;if(h)return c("",n+1,d.open);if(!m&&b){const w=p.slice(0,-d.close.length);return c(w,n+1,d.open)}let A=n+1,k=!1,g="";for(;A<r;A++){const w=t.bMarks[A]+t.tShift[A],v=t.eMarks[A];if(w<v&&t.tShift[A]<t.blkIndent)break;if(t.src.slice(w,v).trim().endsWith(d.close)){const E=t.src.slice(0,v).lastIndexOf(d.close);g=t.src.slice(w,E),k=!0;break}}if(!k)continue;const y=t.getLines(n+1,A,t.tShift[n],!0)+(g.trim()?g:"");return c(y,A+1,d.open)}return!1},H1=(e,{katexRef:t,inlineDelimiters:n,blockDelimiters:r})=>{const o=(s,c,d,f,l=!1)=>{const p={attrs:lo(s,[["class",c]])},m=f.renderAttrs(p);if(!t.value)return`<${d} ${m}>${s.content}</${d}>`;const h=t.value.renderToString(s.content,tt.katexConfig({throwOnError:!1,displayMode:l}));return`<${d} ${m} data-processed>${h}</${d}>`},u=(s,c,d,f,l)=>o(s[c],`${z}-katex-inline`,"span",l),i=(s,c,d,f,l)=>o(s[c],`${z}-katex-block`,"p",l,!0);e.inline.ruler.before("escape","math_inline",$1({delimiters:n||$a.inline})),e.block.ruler.after("blockquote","math_block",U1({delimiters:r||$a.block}),{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=u,e.renderer.rules.math_block=i},G1=(e,t)=>{const n=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(r,o,u,i,s)=>{var f,l;const c=r[o],d=c.content.trim();if(c.info==="mermaid"){if(c.attrSet("class",`${z}-mermaid`),c.attrSet("data-mermaid-theme",t.themeRef.value),c.map&&c.level===0){const m=c.map[1]-1,h=!!((l=(f=i.srcLines[m])==null?void 0:f.trim())!=null&&l.startsWith("```"));c.attrSet("data-closed",`${h}`),c.attrSet("data-line",String(c.map[0]))}const p=Qu.get(d);return p?(c.attrSet("data-processed",""),c.attrSet("data-content",d),`<p ${s.renderAttrs(c)}>${p}</p>`):`<div ${s.renderAttrs(c)}>${e.utils.escapeHtml(d)}</div>`}return n(r,o,u,i,s)}},Ua=(e,t,n)=>{const r=e.attrIndex(t),o=[t,n];r<0?e.attrPush(o):(e.attrs=e.attrs||[],e.attrs[r]=o)},W1=e=>e.type==="inline",q1=e=>e.type==="paragraph_open",X1=e=>e.type==="list_item_open",Z1=e=>e.content.indexOf("[ ] ")===0||e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0,Y1=(e,t)=>W1(e[t])&&q1(e[t-1])&&X1(e[t-2])&&Z1(e[t]),K1=(e,t)=>{const n=e[t].level-1;for(let r=t-1;r>=0;r--)if(e[r].level===n)return r;return-1},Q1=e=>{const t=new e("html_inline","",0);return t.content="<label>",t},J1=e=>{const t=new e("html_inline","",0);return t.content="</label>",t},eh=(e,t,n)=>{const r=new n("html_inline","",0);return r.content='<label class="task-list-item-label" for="'+t+'">'+e+"</label>",r.attrs=[["for",t]],r},th=(e,t,n)=>{const r=new t("html_inline","",0),o=n.enabled?" ":' disabled="" ';return e.content.indexOf("[ ] ")===0?r.content='<input class="task-list-item-checkbox"'+o+'type="checkbox">':(e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0)&&(r.content='<input class="task-list-item-checkbox" checked=""'+o+'type="checkbox">'),r},nh=(e,t,n)=>{if(e.children=e.children||[],e.children.unshift(th(e,t,n)),e.children[1].content=e.children[1].content.slice(3),e.content=e.content.slice(3),n.label)if(n.labelAfter){e.children.pop();const r="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);e.children[0].content=e.children[0].content.slice(0,-1)+' id="'+r+'">',e.children.push(eh(e.content,r,t))}else e.children.unshift(Q1(t)),e.children.push(J1(t))},uh=(e,t={})=>{e.core.ruler.after("inline","github-task-lists",n=>{const r=n.tokens;for(let o=2;o<r.length;o++)Y1(r,o)&&(nh(r[o],n.Token,t),Ua(r[o-2],"class","task-list-item"+(t.enabled?" enabled":" ")),Ua(r[K1(r,o-2)],"class","contains-task-list"))})},rh=e=>{e.core.ruler.push("init-line-number",t=>(t.tokens.forEach(n=>{n.map&&(n.attrs||(n.attrs=[]),n.attrs.push(["data-line",n.map[0].toString()]))}),!0))},oh=(e,t)=>{const{editorConfig:n,markdownItPlugins:r}=tt,o=a.inject("editorId"),u=a.inject("language"),i=a.inject("usedLanguageText"),s=a.inject("showCodeRowNumber"),c=a.inject("theme"),d=a.inject("customIcon"),f=a.inject("rootRef"),l=a.inject("setting"),p=a.ref([]),m=R1(e),h=M1(e),{reRenderRef:b,replaceMermaid:A}=P1(e),{reRenderEcharts:k,replaceEcharts:g}=I1(e),y=Ue({html:!0,breaks:!0,linkify:!0}),w=[{type:"image",plugin:p1,options:{figcaption:!0,classes:"md-zoom"}},{type:"admonition",plugin:V1,options:{}},{type:"taskList",plugin:uh,options:{}},{type:"heading",plugin:z1,options:{mdHeadingId:e.mdHeadingId,headsRef:p}},{type:"code",plugin:B1,options:{editorId:o,usedLanguageTextRef:i,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold,customIconRef:d}},{type:"sub",plugin:b1,options:{}},{type:"sup",plugin:A1,options:{}}];e.noKatex||w.push({type:"katex",plugin:H1,options:{katexRef:h}}),e.noMermaid||w.push({type:"mermaid",plugin:G1,options:{themeRef:c}}),e.noEcharts||w.push({type:"echarts",plugin:j1,options:{themeRef:c}}),r(w,{editorId:o}).forEach(M=>{y.use(M.plugin,M.options)});const v=y.options.highlight;y.set({highlight:(M,S,H)=>{if(v){const te=v(M,S,H);if(te)return te}let O;!e.noHighlight&&m.value?m.value.getLanguage(S)?O=m.value.highlight(M,{language:S,ignoreIllegals:!0}).value:O=m.value.highlightAuto(M).value:O=y.utils.escapeHtml(M);const U=s?a1(O.replace(/^\n+|\n+$/g,""),M.replace(/^\n+|\n+$/g,"")):`<span class="${z}-code-block">${O.replace(/^\n+|\n+$/g,"")}</span>`;return`<pre><code class="language-${S}" language=${S}>${U}</code></pre>`}}),rh(y);const E=a.ref(`_article-key_${uo()}`),_=a.ref(e.sanitize(y.render(e.modelValue,{srcLines:e.modelValue.split(`
92
+ `)})));let F=()=>{},q=()=>{};const P=()=>{var S;const M=(S=f.value)==null?void 0:S.querySelectorAll(`#${o} p.${z}-mermaid:not([data-closed=false])`);q(),q=d1(M,{customIcon:d.value}),F(),F=f1(M,{customIcon:d.value})},B=()=>{Qe.emit(o,u1,_.value),e.onHtmlChanged(_.value),e.onGetCatalog(p.value),Qe.emit(o,so,p.value),a.nextTick(()=>{A().then(P),g()})},j=()=>{p.value=[],_.value=e.sanitize(y.render(e.modelValue,{srcLines:e.modelValue.split(`
93
+ `)}))},D=a.computed(()=>(e.noKatex||!!h.value)&&(e.noHighlight||!!m.value));let R=-1;return a.watch([a.toRef(e,"modelValue"),D,b,u],()=>{R=window.setTimeout(()=>{j()},t?0:n.renderDelay)}),a.watch(()=>l.value.preview,()=>{l.value.preview&&a.nextTick(()=>{A().then(P),g(),Qe.emit(o,so,p.value)})}),a.watch([_,k],()=>{B()}),a.onMounted(B),a.onMounted(()=>{Qe.on(o,{name:r1,callback(){Qe.emit(o,so,p.value)}}),Qe.on(o,{name:Na,callback:()=>{E.value=`_article-key_${uo()}`,j()}})}),a.onBeforeUnmount(()=>{F(),q(),clearTimeout(R)}),{html:_,key:E}},ih=(e,t)=>{const n=a.inject("editorId"),r=a.inject("setting"),{noImgZoomIn:o}=e,u=qf(()=>{const i=document.querySelectorAll(`#${n}-preview img:not(.not-zoom):not(.medium-zoom-image)`);i.length!==0&&D1(i,{background:"#00000073"})});a.onMounted(async()=>{!o&&r.value.preview&&await u()}),a.watch([t,()=>r.value.preview],async()=>{!o&&r.value.preview&&await u()})},Ha={checked:{regexp:/- \[x\]/,value:"- [ ]"},unChecked:{regexp:/- \[\s\]/,value:"- [x]"}},ah=(e,t)=>{const n=a.inject("editorId"),r=a.inject("rootRef");let o=()=>{};const u=()=>{if(!r.value)return!1;const i=r.value.querySelectorAll(".task-list-item.enabled"),s=c=>{var h;c.preventDefault();const d=c.target.checked?"unChecked":"checked",f=(h=c.target.parentElement)==null?void 0:h.dataset.line;if(!f)return;const l=Number(f),p=e.modelValue.split(`
94
+ `),m=p[Number(l)].replace(Ha[d].regexp,Ha[d].value);e.previewOnly?(p[Number(l)]=m,e.onChange(p.join(`
95
+ `))):Qe.emit(n,o1,l+1,m)};i.forEach(c=>{c.addEventListener("click",s)}),o=()=>{i.forEach(c=>{c.removeEventListener("click",s)})}};a.onBeforeUnmount(()=>{o()}),a.watch([t],()=>{o(),a.nextTick(u)},{immediate:!0})},sh=(e,t,n)=>{const r=a.inject("setting"),o=()=>{a.nextTick(()=>{var i;(i=e.onRemount)==null||i.call(e)})},u=i=>{i&&o()};a.watch([t,n],o),a.watch(()=>r.value.preview,u),a.watch(()=>r.value.htmlPreview,u),a.onMounted(o)},Ga={modelValue:{type:String,default:""},onChange:{type:Function,default:()=>{}},onHtmlChanged:{type:Function,default:()=>{}},onGetCatalog:{type:Function,default:()=>{}},mdHeadingId:{type:Function,default:()=>""},noMermaid:{type:Boolean,default:!1},sanitize:{type:Function,default:e=>e},noKatex:{type:Boolean,default:!1},formatCopiedText:{type:Function,default:e=>e},noHighlight:{type:Boolean,default:!1},previewOnly:{type:Boolean,default:!1},noImgZoomIn:{type:Boolean},sanitizeMermaid:{type:Function},codeFoldable:{type:Boolean},autoFoldThreshold:{type:Number},onRemount:{type:Function},noEcharts:{type:Boolean},previewComponent:{type:[Object,Function],default:void 0}};({...Ga});const Wa=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes)},ch=(e,t)=>e.nodeType!==t.nodeType?!1:e.nodeType===Node.TEXT_NODE||e.nodeType===Node.COMMENT_NODE?e.textContent===t.textContent:e.nodeType===Node.ELEMENT_NODE?e.outerHTML===t.outerHTML:e.isEqualNode?e.isEqualNode(t):!1,lh=a.defineComponent({name:"UpdateOnDemand",props:{id:{type:String,required:!0},class:{type:[String,Array,Object],required:!0},html:{type:String,required:!0}},setup(e){const t=a.ref(),n=e.html,r=(o,u)=>{if(!t.value)return;const i=t.value,s=Array.from(i.childNodes),c=Math.min(o.length,u.length);let d=-1;for(let l=0;l<c;l++)if(!ch(o[l],u[l])){d=l;break}if(d===-1)if(u.length>o.length)d=o.length;else if(o.length>u.length)d=u.length;else return;const f=Math.min(d,s.length);for(let l=s.length-1;l>=f;l--)s[l].remove();for(let l=d;l<o.length;l++)i.appendChild(o[l].cloneNode(!0))};return a.watch(()=>e.html,(o,u)=>{const i=Wa(o),s=Wa(u||"");r(i,s)}),()=>a.createVNode("div",{id:e.id,class:e.class,innerHTML:n,ref:t},null)}}),dh=a.defineComponent({name:"ContentPreview",props:Ga,setup(e){const t=a.inject("editorId"),n=a.inject("setting"),r=a.inject("previewTheme"),o=a.inject("showCodeRowNumber"),{html:u,key:i}=oh(e,e.previewOnly);L1(e,u,i),ih(e,u),ah(e,u),sh(e,u,i);const s=a.computed(()=>[`${z}-preview`,`${r==null?void 0:r.value}-theme`,o&&`${z}-scrn`].filter(Boolean)),c=()=>{const d=`${t}-preview`;return e.previewComponent?a.h(e.previewComponent,{key:i.value,html:u.value,id:d,class:s.value}):a.createVNode(lh,{key:i.value,html:u.value,id:d,class:s.value},null)};return()=>a.createVNode(a.Fragment,null,[n.value.preview&&(e.previewOnly?c():a.createVNode("div",{id:`${t}-preview-wrapper`,class:`${z}-preview-wrapper`,key:"content-preview-wrapper"},[c()])),n.value.htmlPreview&&a.createVNode("div",{id:`${t}-html-wrapper`,class:`${z}-preview-wrapper`,key:"html-preview-wrapper"},[a.createVNode("div",{class:`${z}-html`},[u.value])])])}}),fh=({text:e})=>e,qa={modelValue:{type:String,default:""},onChange:{type:Function,default:void 0},theme:{type:String,default:"light"},class:{type:String,default:""},language:{type:String,default:"zh-CN"},onHtmlChanged:{type:Function,default:void 0},onGetCatalog:{type:Function,default:void 0},editorId:{type:String,default:void 0},id:{type:String,default:void 0},showCodeRowNumber:{type:Boolean,default:!0},previewTheme:{type:String,default:"default"},style:{type:Object,default:()=>({})},mdHeadingId:{type:Function,default:fh},sanitize:{type:Function,default:e=>e},noMermaid:{type:Boolean,default:!1},noKatex:{type:Boolean,default:!1},codeTheme:{type:String,default:"atom"},formatCopiedText:{type:Function,default:e=>e},codeStyleReverse:{type:Boolean,default:!0},codeStyleReverseList:{type:Array,default:["default","mk-cute"]},noHighlight:{type:Boolean,default:!1},noImgZoomIn:{type:Boolean,default:!1},customIcon:{type:Object,default:{}},sanitizeMermaid:{type:Function,default:e=>Promise.resolve(e)},codeFoldable:{type:Boolean,default:!0},autoFoldThreshold:{type:Number,default:30},onRemount:{type:Function,default:void 0},noEcharts:{type:Boolean,default:!1},previewComponent:{type:[Object,Function],default:void 0}};({...qa});const Xa=["onHtmlChanged","onGetCatalog","onChange","onRemount","update:modelValue"];[...Xa];const hh=(e,t,n)=>{const{editorId:r}=n,o={rerender(){Qe.emit(r,Na)}};t.expose(o)},Ju=a.defineComponent({name:"MdPreview",props:qa,emits:Xa,setup(e,t){const{noKatex:n,noMermaid:r,noHighlight:o}=e,u=a.ref(),i=O1(e);N1(e,{rootRef:u,editorId:i}),hh(e,t,{editorId:i}),a.onBeforeUnmount(()=>{Qe.clear(i)});const s=l=>{var p;(p=e.onChange)==null||p.call(e,l),t.emit("onChange",l),t.emit("update:modelValue",l)},c=l=>{var p;(p=e.onHtmlChanged)==null||p.call(e,l),t.emit("onHtmlChanged",l)},d=l=>{var p;(p=e.onGetCatalog)==null||p.call(e,l),t.emit("onGetCatalog",l)},f=()=>{var l;(l=e.onRemount)==null||l.call(e),t.emit("onRemount")};return()=>a.createVNode("div",{id:i,class:[z,e.class,e.theme==="dark"&&`${z}-dark`,`${z}-previewOnly`],style:e.style,ref:u},[a.createVNode(dh,{modelValue:e.modelValue,onChange:s,onHtmlChanged:c,onGetCatalog:d,mdHeadingId:e.mdHeadingId,noMermaid:r,sanitize:e.sanitize,noKatex:n,formatCopiedText:e.formatCopiedText,noHighlight:o,noImgZoomIn:e.noImgZoomIn,previewOnly:!0,sanitizeMermaid:e.sanitizeMermaid,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold,onRemount:f,noEcharts:e.noEcharts,previewComponent:e.previewComponent},null)])}});Ju.install=e=>(e.component(Ju.name,Ju),e);const ph={onClick:{type:Function,default:void 0},language:{type:String,default:void 0},theme:{type:String,default:void 0},disabled:{type:Boolean,default:void 0}},fo=a.defineComponent({name:"NormalFooterToolbar",props:ph,emits:["onClick"],setup(e,t){return()=>{const n=n1({props:e,ctx:t});return a.createVNode("div",{class:[`${z}-footer-item`,e.disabled&&`${z}-disabled`],onClick:r=>{var o;e.disabled||((o=e.onClick)==null||o.call(e,r),t.emit("onClick",r))}},[n])}}});fo.install=e=>(e.component(fo.name,fo),e);var ho={exports:{}},me={},po={exports:{}},Zt={},Za;function Ya(){if(Za)return Zt;Za=1;function e(){var u={};return u["align-content"]=!1,u["align-items"]=!1,u["align-self"]=!1,u["alignment-adjust"]=!1,u["alignment-baseline"]=!1,u.all=!1,u["anchor-point"]=!1,u.animation=!1,u["animation-delay"]=!1,u["animation-direction"]=!1,u["animation-duration"]=!1,u["animation-fill-mode"]=!1,u["animation-iteration-count"]=!1,u["animation-name"]=!1,u["animation-play-state"]=!1,u["animation-timing-function"]=!1,u.azimuth=!1,u["backface-visibility"]=!1,u.background=!0,u["background-attachment"]=!0,u["background-clip"]=!0,u["background-color"]=!0,u["background-image"]=!0,u["background-origin"]=!0,u["background-position"]=!0,u["background-repeat"]=!0,u["background-size"]=!0,u["baseline-shift"]=!1,u.binding=!1,u.bleed=!1,u["bookmark-label"]=!1,u["bookmark-level"]=!1,u["bookmark-state"]=!1,u.border=!0,u["border-bottom"]=!0,u["border-bottom-color"]=!0,u["border-bottom-left-radius"]=!0,u["border-bottom-right-radius"]=!0,u["border-bottom-style"]=!0,u["border-bottom-width"]=!0,u["border-collapse"]=!0,u["border-color"]=!0,u["border-image"]=!0,u["border-image-outset"]=!0,u["border-image-repeat"]=!0,u["border-image-slice"]=!0,u["border-image-source"]=!0,u["border-image-width"]=!0,u["border-left"]=!0,u["border-left-color"]=!0,u["border-left-style"]=!0,u["border-left-width"]=!0,u["border-radius"]=!0,u["border-right"]=!0,u["border-right-color"]=!0,u["border-right-style"]=!0,u["border-right-width"]=!0,u["border-spacing"]=!0,u["border-style"]=!0,u["border-top"]=!0,u["border-top-color"]=!0,u["border-top-left-radius"]=!0,u["border-top-right-radius"]=!0,u["border-top-style"]=!0,u["border-top-width"]=!0,u["border-width"]=!0,u.bottom=!1,u["box-decoration-break"]=!0,u["box-shadow"]=!0,u["box-sizing"]=!0,u["box-snap"]=!0,u["box-suppress"]=!0,u["break-after"]=!0,u["break-before"]=!0,u["break-inside"]=!0,u["caption-side"]=!1,u.chains=!1,u.clear=!0,u.clip=!1,u["clip-path"]=!1,u["clip-rule"]=!1,u.color=!0,u["color-interpolation-filters"]=!0,u["column-count"]=!1,u["column-fill"]=!1,u["column-gap"]=!1,u["column-rule"]=!1,u["column-rule-color"]=!1,u["column-rule-style"]=!1,u["column-rule-width"]=!1,u["column-span"]=!1,u["column-width"]=!1,u.columns=!1,u.contain=!1,u.content=!1,u["counter-increment"]=!1,u["counter-reset"]=!1,u["counter-set"]=!1,u.crop=!1,u.cue=!1,u["cue-after"]=!1,u["cue-before"]=!1,u.cursor=!1,u.direction=!1,u.display=!0,u["display-inside"]=!0,u["display-list"]=!0,u["display-outside"]=!0,u["dominant-baseline"]=!1,u.elevation=!1,u["empty-cells"]=!1,u.filter=!1,u.flex=!1,u["flex-basis"]=!1,u["flex-direction"]=!1,u["flex-flow"]=!1,u["flex-grow"]=!1,u["flex-shrink"]=!1,u["flex-wrap"]=!1,u.float=!1,u["float-offset"]=!1,u["flood-color"]=!1,u["flood-opacity"]=!1,u["flow-from"]=!1,u["flow-into"]=!1,u.font=!0,u["font-family"]=!0,u["font-feature-settings"]=!0,u["font-kerning"]=!0,u["font-language-override"]=!0,u["font-size"]=!0,u["font-size-adjust"]=!0,u["font-stretch"]=!0,u["font-style"]=!0,u["font-synthesis"]=!0,u["font-variant"]=!0,u["font-variant-alternates"]=!0,u["font-variant-caps"]=!0,u["font-variant-east-asian"]=!0,u["font-variant-ligatures"]=!0,u["font-variant-numeric"]=!0,u["font-variant-position"]=!0,u["font-weight"]=!0,u.grid=!1,u["grid-area"]=!1,u["grid-auto-columns"]=!1,u["grid-auto-flow"]=!1,u["grid-auto-rows"]=!1,u["grid-column"]=!1,u["grid-column-end"]=!1,u["grid-column-start"]=!1,u["grid-row"]=!1,u["grid-row-end"]=!1,u["grid-row-start"]=!1,u["grid-template"]=!1,u["grid-template-areas"]=!1,u["grid-template-columns"]=!1,u["grid-template-rows"]=!1,u["hanging-punctuation"]=!1,u.height=!0,u.hyphens=!1,u.icon=!1,u["image-orientation"]=!1,u["image-resolution"]=!1,u["ime-mode"]=!1,u["initial-letters"]=!1,u["inline-box-align"]=!1,u["justify-content"]=!1,u["justify-items"]=!1,u["justify-self"]=!1,u.left=!1,u["letter-spacing"]=!0,u["lighting-color"]=!0,u["line-box-contain"]=!1,u["line-break"]=!1,u["line-grid"]=!1,u["line-height"]=!1,u["line-snap"]=!1,u["line-stacking"]=!1,u["line-stacking-ruby"]=!1,u["line-stacking-shift"]=!1,u["line-stacking-strategy"]=!1,u["list-style"]=!0,u["list-style-image"]=!0,u["list-style-position"]=!0,u["list-style-type"]=!0,u.margin=!0,u["margin-bottom"]=!0,u["margin-left"]=!0,u["margin-right"]=!0,u["margin-top"]=!0,u["marker-offset"]=!1,u["marker-side"]=!1,u.marks=!1,u.mask=!1,u["mask-box"]=!1,u["mask-box-outset"]=!1,u["mask-box-repeat"]=!1,u["mask-box-slice"]=!1,u["mask-box-source"]=!1,u["mask-box-width"]=!1,u["mask-clip"]=!1,u["mask-image"]=!1,u["mask-origin"]=!1,u["mask-position"]=!1,u["mask-repeat"]=!1,u["mask-size"]=!1,u["mask-source-type"]=!1,u["mask-type"]=!1,u["max-height"]=!0,u["max-lines"]=!1,u["max-width"]=!0,u["min-height"]=!0,u["min-width"]=!0,u["move-to"]=!1,u["nav-down"]=!1,u["nav-index"]=!1,u["nav-left"]=!1,u["nav-right"]=!1,u["nav-up"]=!1,u["object-fit"]=!1,u["object-position"]=!1,u.opacity=!1,u.order=!1,u.orphans=!1,u.outline=!1,u["outline-color"]=!1,u["outline-offset"]=!1,u["outline-style"]=!1,u["outline-width"]=!1,u.overflow=!1,u["overflow-wrap"]=!1,u["overflow-x"]=!1,u["overflow-y"]=!1,u.padding=!0,u["padding-bottom"]=!0,u["padding-left"]=!0,u["padding-right"]=!0,u["padding-top"]=!0,u.page=!1,u["page-break-after"]=!1,u["page-break-before"]=!1,u["page-break-inside"]=!1,u["page-policy"]=!1,u.pause=!1,u["pause-after"]=!1,u["pause-before"]=!1,u.perspective=!1,u["perspective-origin"]=!1,u.pitch=!1,u["pitch-range"]=!1,u["play-during"]=!1,u.position=!1,u["presentation-level"]=!1,u.quotes=!1,u["region-fragment"]=!1,u.resize=!1,u.rest=!1,u["rest-after"]=!1,u["rest-before"]=!1,u.richness=!1,u.right=!1,u.rotation=!1,u["rotation-point"]=!1,u["ruby-align"]=!1,u["ruby-merge"]=!1,u["ruby-position"]=!1,u["shape-image-threshold"]=!1,u["shape-outside"]=!1,u["shape-margin"]=!1,u.size=!1,u.speak=!1,u["speak-as"]=!1,u["speak-header"]=!1,u["speak-numeral"]=!1,u["speak-punctuation"]=!1,u["speech-rate"]=!1,u.stress=!1,u["string-set"]=!1,u["tab-size"]=!1,u["table-layout"]=!1,u["text-align"]=!0,u["text-align-last"]=!0,u["text-combine-upright"]=!0,u["text-decoration"]=!0,u["text-decoration-color"]=!0,u["text-decoration-line"]=!0,u["text-decoration-skip"]=!0,u["text-decoration-style"]=!0,u["text-emphasis"]=!0,u["text-emphasis-color"]=!0,u["text-emphasis-position"]=!0,u["text-emphasis-style"]=!0,u["text-height"]=!0,u["text-indent"]=!0,u["text-justify"]=!0,u["text-orientation"]=!0,u["text-overflow"]=!0,u["text-shadow"]=!0,u["text-space-collapse"]=!0,u["text-transform"]=!0,u["text-underline-position"]=!0,u["text-wrap"]=!0,u.top=!1,u.transform=!1,u["transform-origin"]=!1,u["transform-style"]=!1,u.transition=!1,u["transition-delay"]=!1,u["transition-duration"]=!1,u["transition-property"]=!1,u["transition-timing-function"]=!1,u["unicode-bidi"]=!1,u["vertical-align"]=!1,u.visibility=!1,u["voice-balance"]=!1,u["voice-duration"]=!1,u["voice-family"]=!1,u["voice-pitch"]=!1,u["voice-range"]=!1,u["voice-rate"]=!1,u["voice-stress"]=!1,u["voice-volume"]=!1,u.volume=!1,u["white-space"]=!1,u.widows=!1,u.width=!0,u["will-change"]=!1,u["word-break"]=!0,u["word-spacing"]=!0,u["word-wrap"]=!0,u["wrap-flow"]=!1,u["wrap-through"]=!1,u["writing-mode"]=!1,u["z-index"]=!1,u}function t(u,i,s){}function n(u,i,s){}var r=/javascript\s*\:/img;function o(u,i){return r.test(i)?"":i}return Zt.whiteList=e(),Zt.getDefaultWhiteList=e,Zt.onAttr=t,Zt.onIgnoreAttr=n,Zt.safeAttrValue=o,Zt}var Ka,Qa;function Ja(){return Qa||(Qa=1,Ka={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,o;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}}),Ka}var mo,es;function mh(){if(es)return mo;es=1;var e=Ja();function t(n,r){n=e.trimRight(n),n[n.length-1]!==";"&&(n+=";");var o=n.length,u=!1,i=0,s=0,c="";function d(){if(!u){var p=e.trim(n.slice(i,s)),m=p.indexOf(":");if(m!==-1){var h=e.trim(p.slice(0,m)),b=e.trim(p.slice(m+1));if(h){var A=r(i,c.length,h,b,p);A&&(c+=A+"; ")}}}i=s+1}for(;s<o;s++){var f=n[s];if(f==="/"&&n[s+1]==="*"){var l=n.indexOf("*/",s+2);if(l===-1)break;s=l+1,i=s+1,u=!1}else f==="("?u=!0:f===")"?u=!1:f===";"?u||d():f===`
96
+ `&&d()}return e.trim(c)}return mo=t,mo}var go,ts;function gh(){if(ts)return go;ts=1;var e=Ya(),t=mh();Ja();function n(u){return u==null}function r(u){var i={};for(var s in u)i[s]=u[s];return i}function o(u){u=r(u||{}),u.whiteList=u.whiteList||e.whiteList,u.onAttr=u.onAttr||e.onAttr,u.onIgnoreAttr=u.onIgnoreAttr||e.onIgnoreAttr,u.safeAttrValue=u.safeAttrValue||e.safeAttrValue,this.options=u}return o.prototype.process=function(u){if(u=u||"",u=u.toString(),!u)return"";var i=this,s=i.options,c=s.whiteList,d=s.onAttr,f=s.onIgnoreAttr,l=s.safeAttrValue,p=t(u,function(m,h,b,A,k){var g=c[b],y=!1;if(g===!0?y=g:typeof g=="function"?y=g(A):g instanceof RegExp&&(y=g.test(A)),y!==!0&&(y=!1),A=l(b,A),!!A){var w={position:h,sourcePosition:m,source:k,isWhite:y};if(y){var v=d(b,A,w);return n(v)?b+":"+A:v}else{var v=f(b,A,w);if(!n(v))return v}}});return p},go=o,go}var ns;function bo(){return ns||(ns=1,function(e,t){var n=Ya(),r=gh();function o(i,s){var c=new r(s);return c.process(i)}t=e.exports=o,t.FilterCSS=r;for(var u in n)t[u]=n[u];typeof window<"u"&&(window.filterCSS=e.exports)}(po,po.exports)),po.exports}var us,rs;function yo(){return rs||(rs=1,us={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,o;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,n=t.exec(e);return n?n.index:-1}}),us}var os;function is(){if(os)return me;os=1;var e=bo().FilterCSS,t=bo().getDefaultWhiteList,n=yo();function r(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var o=new e;function u(S,H,O){}function i(S,H,O){}function s(S,H,O){}function c(S,H,O){}function d(S){return S.replace(l,"&lt;").replace(p,"&gt;")}function f(S,H,O,U){if(O=P(O),H==="href"||H==="src"){if(O=n.trim(O),O==="#")return"#";if(!(O.substr(0,7)==="http://"||O.substr(0,8)==="https://"||O.substr(0,7)==="mailto:"||O.substr(0,4)==="tel:"||O.substr(0,11)==="data:image/"||O.substr(0,6)==="ftp://"||O.substr(0,2)==="./"||O.substr(0,3)==="../"||O[0]==="#"||O[0]==="/"))return""}else if(H==="background"){if(g.lastIndex=0,g.test(O))return""}else if(H==="style"){if(y.lastIndex=0,y.test(O)||(w.lastIndex=0,w.test(O)&&(g.lastIndex=0,g.test(O))))return"";U!==!1&&(U=U||o,O=U.process(O))}return O=B(O),O}var l=/</g,p=/>/g,m=/"/g,h=/&quot;/g,b=/&#([a-zA-Z0-9]*);?/gim,A=/&colon;?/gim,k=/&newline;?/gim,g=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,y=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,w=/u\s*r\s*l\s*\(.*/gi;function v(S){return S.replace(m,"&quot;")}function E(S){return S.replace(h,'"')}function _(S){return S.replace(b,function(H,O){return O[0]==="x"||O[0]==="X"?String.fromCharCode(parseInt(O.substr(1),16)):String.fromCharCode(parseInt(O,10))})}function F(S){return S.replace(A,":").replace(k," ")}function q(S){for(var H="",O=0,U=S.length;O<U;O++)H+=S.charCodeAt(O)<32?" ":S.charAt(O);return n.trim(H)}function P(S){return S=E(S),S=_(S),S=F(S),S=q(S),S}function B(S){return S=v(S),S=d(S),S}function j(){return""}function D(S,H){typeof H!="function"&&(H=function(){});var O=!Array.isArray(S);function U(N){return O?!0:n.indexOf(S,N)!==-1}var te=[],Q=!1;return{onIgnoreTag:function(N,L,$){if(U(N))if($.isClosing){var G="[/removed]",J=$.position+G.length;return te.push([Q!==!1?Q:$.position,J]),Q=!1,G}else return Q||(Q=$.position),"[removed]";else return H(N,L,$)},remove:function(N){var L="",$=0;return n.forEach(te,function(G){L+=N.slice($,G[0]),$=G[1]}),L+=N.slice($),L}}}function R(S){for(var H="",O=0;O<S.length;){var U=S.indexOf("<!--",O);if(U===-1){H+=S.slice(O);break}H+=S.slice(O,U);var te=S.indexOf("-->",U);if(te===-1)break;O=te+3}return H}function M(S){var H=S.split("");return H=H.filter(function(O){var U=O.charCodeAt(0);return U===127?!1:U<=31?U===10||U===13:!0}),H.join("")}return me.whiteList=r(),me.getDefaultWhiteList=r,me.onTag=u,me.onIgnoreTag=i,me.onTagAttr=s,me.onIgnoreTagAttr=c,me.safeAttrValue=f,me.escapeHtml=d,me.escapeQuote=v,me.unescapeQuote=E,me.escapeHtmlEntities=_,me.escapeDangerHtml5Entities=F,me.clearNonPrintableCharacter=q,me.friendlyAttrValue=P,me.escapeAttrValue=B,me.onIgnoreTagStripAll=j,me.StripTagBody=D,me.stripCommentTag=R,me.stripBlankChar=M,me.attributeWrapSign='"',me.cssFilter=o,me.getDefaultCSSWhiteList=t,me}var er={},as;function ss(){if(as)return er;as=1;var e=yo();function t(l){var p=e.spaceIndex(l),m;return p===-1?m=l.slice(1,-1):m=l.slice(1,p+1),m=e.trim(m).toLowerCase(),m.slice(0,1)==="/"&&(m=m.slice(1)),m.slice(-1)==="/"&&(m=m.slice(0,-1)),m}function n(l){return l.slice(0,2)==="</"}function r(l,p,m){var h="",b=0,A=!1,k=!1,g=0,y=l.length,w="",v="";e:for(g=0;g<y;g++){var E=l.charAt(g);if(A===!1){if(E==="<"){A=g;continue}}else if(k===!1){if(E==="<"){h+=m(l.slice(b,g)),A=g,b=g;continue}if(E===">"||g===y-1){h+=m(l.slice(b,A)),v=l.slice(A,g+1),w=t(v),h+=p(A,h.length,w,v,n(v)),b=g+1,A=!1;continue}if(E==='"'||E==="'")for(var _=1,F=l.charAt(g-_);F.trim()===""||F==="=";){if(F==="="){k=E;continue e}F=l.charAt(g-++_)}}else if(E===k){k=!1;continue}}return b<y&&(h+=m(l.substr(b))),h}var o=/[^a-zA-Z0-9\\_:.-]/gim;function u(l,p){var m=0,h=0,b=[],A=!1,k=l.length;function g(_,F){if(_=e.trim(_),_=_.replace(o,"").toLowerCase(),!(_.length<1)){var q=p(_,F||"");q&&b.push(q)}}for(var y=0;y<k;y++){var w=l.charAt(y),v,E;if(A===!1&&w==="="){A=l.slice(m,y),m=y+1,h=l.charAt(m)==='"'||l.charAt(m)==="'"?m:s(l,y+1);continue}if(A!==!1&&y===h){if(E=l.indexOf(w,y+1),E===-1)break;v=e.trim(l.slice(h+1,E)),g(A,v),A=!1,y=E,m=y+1;continue}if(/\s|\n|\t/.test(w))if(l=l.replace(/\s|\n|\t/g," "),A===!1)if(E=i(l,y),E===-1){v=e.trim(l.slice(m,y)),g(v),A=!1,m=y+1;continue}else{y=E-1;continue}else if(E=c(l,y-1),E===-1){v=e.trim(l.slice(m,y)),v=f(v),g(A,v),A=!1,m=y+1;continue}else continue}return m<l.length&&(A===!1?g(l.slice(m)):g(A,f(e.trim(l.slice(m))))),e.trim(b.join(" "))}function i(l,p){for(;p<l.length;p++){var m=l[p];if(m!==" ")return m==="="?p:-1}}function s(l,p){for(;p<l.length;p++){var m=l[p];if(m!==" ")return m==="'"||m==='"'?p:-1}}function c(l,p){for(;p>0;p--){var m=l[p];if(m!==" ")return m==="="?p:-1}}function d(l){return l[0]==='"'&&l[l.length-1]==='"'||l[0]==="'"&&l[l.length-1]==="'"}function f(l){return d(l)?l.substr(1,l.length-2):l}return er.parseTag=r,er.parseAttr=u,er}var xo,cs;function bh(){if(cs)return xo;cs=1;var e=bo().FilterCSS,t=is(),n=ss(),r=n.parseTag,o=n.parseAttr,u=yo();function i(l){return l==null}function s(l){var p=u.spaceIndex(l);if(p===-1)return{html:"",closing:l[l.length-2]==="/"};l=u.trim(l.slice(p+1,-1));var m=l[l.length-1]==="/";return m&&(l=u.trim(l.slice(0,-1))),{html:l,closing:m}}function c(l){var p={};for(var m in l)p[m]=l[m];return p}function d(l){var p={};for(var m in l)Array.isArray(l[m])?p[m.toLowerCase()]=l[m].map(function(h){return h.toLowerCase()}):p[m.toLowerCase()]=l[m];return p}function f(l){l=c(l||{}),l.stripIgnoreTag&&(l.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),l.onIgnoreTag=t.onIgnoreTagStripAll),l.whiteList||l.allowList?l.whiteList=d(l.whiteList||l.allowList):l.whiteList=t.whiteList,this.attributeWrapSign=l.singleQuotedAttributeValue===!0?"'":t.attributeWrapSign,l.onTag=l.onTag||t.onTag,l.onTagAttr=l.onTagAttr||t.onTagAttr,l.onIgnoreTag=l.onIgnoreTag||t.onIgnoreTag,l.onIgnoreTagAttr=l.onIgnoreTagAttr||t.onIgnoreTagAttr,l.safeAttrValue=l.safeAttrValue||t.safeAttrValue,l.escapeHtml=l.escapeHtml||t.escapeHtml,this.options=l,l.css===!1?this.cssFilter=!1:(l.css=l.css||{},this.cssFilter=new e(l.css))}return f.prototype.process=function(l){if(l=l||"",l=l.toString(),!l)return"";var p=this,m=p.options,h=m.whiteList,b=m.onTag,A=m.onIgnoreTag,k=m.onTagAttr,g=m.onIgnoreTagAttr,y=m.safeAttrValue,w=m.escapeHtml,v=p.attributeWrapSign,E=p.cssFilter;m.stripBlankChar&&(l=t.stripBlankChar(l)),m.allowCommentTag||(l=t.stripCommentTag(l));var _=!1;m.stripIgnoreTagBody&&(_=t.StripTagBody(m.stripIgnoreTagBody,A),A=_.onIgnoreTag);var F=r(l,function(q,P,B,j,D){var R={sourcePosition:q,position:P,isClosing:D,isWhite:Object.prototype.hasOwnProperty.call(h,B)},M=b(B,j,R);if(!i(M))return M;if(R.isWhite){if(R.isClosing)return"</"+B+">";var S=s(j),H=h[B],O=o(S.html,function(U,te){var Q=u.indexOf(H,U)!==-1,N=k(B,U,te,Q);return i(N)?Q?(te=y(B,U,te,E),te?U+"="+v+te+v:U):(N=g(B,U,te,Q),i(N)?void 0:N):N});return j="<"+B,O&&(j+=" "+O),S.closing&&(j+=" /"),j+=">",j}else return M=A(B,j,R),i(M)?w(j):M},w);return _&&(F=_.remove(F)),F},xo=f,xo}var ls;function yh(){return ls||(ls=1,function(e,t){var n=is(),r=ss(),o=bh();function u(s,c){var d=new o(c);return d.process(s)}t=e.exports=u,t.filterXSS=u,t.FilterXSS=o,function(){for(var s in n)t[s]=n[s];for(var c in r)t[c]=r[c]}(),typeof window<"u"&&(window.filterXSS=e.exports);function i(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}i()&&(self.filterXSS=e.exports)}(ho,ho.exports)),ho.exports}yh();const Yt=a.defineComponent({name:"FMarkdownPreview",props:Da,setup(e){return()=>a.createVNode("div",{class:"f-markdown-preview-container"},[a.createVNode(Ju,{modelValue:e.content},null)])}});Yt.install=e=>{e.component(Yt.name,Yt)};const Ao="farris-x-preview-bridge",wo=1,ko="assistant.message";function ds(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e,content:e.content}}}function fs(e){return e!==null&&typeof e=="object"}function hs(e){if(!fs(e)||e.source!==Ao||e.v!==wo||e.type!==ko)return!1;const t=e.payload;return!(!fs(t)||typeof t.messageId!="string"||t.messageId.length===0||t.role!=="user"&&t.role!=="assistant")}let xh=0;const Kn=[];function Kt(){var e;return((e=Kn[Kn.length-1])==null?void 0:e.h)??{}}function Ah(e){const t=++xh;return Kn.push({id:t,h:e}),()=>{const n=Kn.findIndex(r=>r.id===t);n>=0&&Kn.splice(n,1)}}const Qt={showPreview(e){var t,n;(n=(t=Kt()).showPreview)==null||n.call(t,e)},replaceRightPreview(e){var t,n;(n=(t=Kt()).showPreview)==null||n.call(t,e)},closePreviewPane(){var e,t;(t=(e=Kt()).closePreviewPane)==null||t.call(e)},closeRightPreview(){var e,t;(t=(e=Kt()).closeRightPreview)==null||t.call(e)},showFullScreenPreview(e){var t,n;(n=(t=Kt()).showFullScreenPreview)==null||n.call(t,e)},closeFullScreenPreview(){var e,t;(t=(e=Kt()).closeFullScreenPreview)==null||t.call(e)},isPreviewLayoutActive(){return typeof Kt().showPreview=="function"}},ps={eventType:"invoke",method:"sendMessage"};function ms(e,t){const n=(t==null?void 0:t.target)??(typeof window<"u"?window.top??window:void 0);if(!n)return!1;try{return n.postMessage({eventType:ps.eventType,method:ps.method,params:[e]},(t==null?void 0:t.targetOrigin)??"*"),!0}catch{return!1}}function wh(e,t){return!!(e.source===window.parent||t&&e.source===window.top||e.source===window)}function vo(e,t,n){const r=ds(n);try{return e.postMessage({source:Ao,v:wo,type:ko,payload:r},t),!0}catch{return!1}}function gs(e){const t=e.allowTopAsSource!==!1,n=r=>{var o;wh(r,t)&&(e.allowedParentOrigins&&e.allowedParentOrigins.length>0&&!e.allowedParentOrigins.includes(r.origin)||hs(r.data)&&((o=e.onAssistantMessage)==null||o.call(e,r.data.payload)))};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)}const Co={subscribe:gs,postAssistantMessage:vo,sendChatMessage:ms,showPreview:Qt.showPreview,replaceRightPreview:Qt.replaceRightPreview,closePreviewPane:Qt.closePreviewPane,closeRightPreview:Qt.closeRightPreview,showFullScreenPreview:Qt.showFullScreenPreview,closeFullScreenPreview:Qt.closeFullScreenPreview,isPreviewLayoutActive:Qt.isPreviewLayoutActive};function Eo(e,t){try{const n=Co[e];if(typeof n!="function"){console.warn("[AgentWorkbenchSDK] invoke: not a function:",e);return}return n(...t??[])}catch(n){console.warn("[AgentWorkbenchSDK] invoke error:",e,n);return}}const kh="/platform/common/web/renderer/index.html#/preview",vh="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components/Contacts.frm",Ch="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components",Eh="67441dbb-0219-46f2-b247-51555c317995";function bs(e){if(e.url)return e.url;const t=e.baseUri??kh,n=e.metadataPath??vh,r=e.projectPath??Ch,o=e.baseMetadataId??Eh;return`${t}?metadataPath=${encodeURIComponent(n)}&projectPath=${encodeURIComponent(r)}&baseMetadataId=${encodeURIComponent(o)}`}function _h(e){if(typeof window>"u")return null;if(e.postMessageTargetOrigin)return e.postMessageTargetOrigin;try{const t=bs(e),n=new URL(t,window.location.href).origin;return n==="null"||n===""?window.location.origin:n}catch{return null}}const Qn=a.defineComponent({name:"ChatPreview",props:Fa,setup(e,{expose:t}){const n=a.ref(null),r=a.computed(()=>bs(e.previewConfig??{})),o=a.computed(()=>{var b;return((b=e.previewConfig)==null?void 0:b.contentType)==="markdown"}),u=a.computed(()=>{var b;return Object.keys(((b=e.previewConfig)==null?void 0:b.contentMap)??{})}),i=a.computed(()=>u.value.filter(b=>b).length>0),s=a.ref(),c=a.ref(),d=a.ref(!1);let f=null;a.onBeforeUnmount(()=>{f==null||f(),f=null}),a.watch(()=>[r.value,n.value,o.value],()=>{if(f==null||f(),f=null,o.value)return;const b=n.value;if(!b)return;d.value=!1;let A=!1;const k=()=>{if(A)return;A=!0,d.value=!0;const g=()=>{var y;return(y=e.onIframeLoad)==null?void 0:y.call(e)};g(),window.setTimeout(g,0),window.setTimeout(g,120)};b.addEventListener("load",k,{once:!0}),f=()=>b.removeEventListener("load",k)},{flush:"post"}),a.watch(()=>{var b;return(b=e.previewConfig)==null?void 0:b.contentMap},b=>{if(b){const[A,...k]=Object.keys(b);s.value=A??""}else s.value="";l()},{immediate:!0});function l(b){var A,k;b&&(s.value=b),i.value&&s.value?c.value=((k=(A=e.previewConfig)==null?void 0:A.contentMap)==null?void 0:k[s.value])||"":c.value=""}function p(b){var g;if(o.value||!d.value)return!1;const A=(g=n.value)==null?void 0:g.contentWindow;if(!A)return!1;const k=_h(e.previewConfig??{});return k?vo(A,k,b):!1}t({postAssistantPayload:p});const m=()=>a.createVNode("div",{class:"f-chat-preview-header"},[a.createVNode("div",{class:"f-chat-preview-header-left"},[a.createVNode("button",{class:"f-chat-preview-preview-btn"},[a.createVNode("i",{class:"f-icon f-icon-view-cardview"},null),a.createVNode("span",{class:"f-chat-preview-preview-text"},[a.createTextVNode("预览")])])]),a.createVNode("div",{class:"f-chat-preview-header-right"},[a.createVNode("button",{class:"f-chat-preview-tool-btn",title:"关闭预览","aria-label":"关闭预览",onClick:()=>{var b;return(b=e.onClose)==null?void 0:b.call(e)}},[a.createVNode("i",{class:"f-icon f-icon-close"},null)])])]),h=()=>{var b;return i.value?c.value?a.createVNode("div",{class:"d-flex"},[a.createVNode(pe.FSplitter,{class:"f-chat-content-main-layout",direction:"row"},{default:()=>[a.createVNode(pe.FSplitterPane,{position:"center",resizable:!1,minWidth:100,class:"f-chat-content-main-left"},{default:()=>[a.createVNode("div",{class:"f-chat-preview-content-nav"},[a.createVNode("div",{class:"f-chat-preview-content-nav-title"},[a.createTextVNode("全部文件")]),a.createVNode("div",{class:"f-chat-preview-content-nav-content"},[u.value.map((A,k)=>a.createVNode("div",{key:k,class:["f-chat-preview-content-nav-item",A===s.value?"active-nav-item":""],title:A,onClick:()=>l(A)},[A]))])])]}),a.createVNode(pe.FSplitterPane,{position:"right",resizable:!0,width:600,class:"f-chat-preview-pane-right"},{default:()=>[a.createVNode(Yt,{content:c.value},null)]})]})]):null:a.createVNode(Yt,{content:((b=e.previewConfig)==null?void 0:b.content)??""},null)};return()=>a.createVNode("div",{class:"f-chat-preview"},[m(),a.createVNode("div",{class:"f-chat-preview-content"},[o.value?h():a.createVNode("iframe",{ref:n,name:"preview-iframe",title:"preview-iframe",src:r.value},null)])])}});function Fh(e){return Co.subscribe(e)}Qn.install=e=>{e.component(Qn.name,Qn)};const ys={modelValue:{type:Boolean,default:!1},title:{type:[String,Object],default:"标题"},description:{type:[String,Object],default:""},cancelText:{type:String,default:"取消"},confirmText:{type:String,default:"确认"},closeOnMask:{type:Boolean,default:!1},showDivider:{type:Boolean,default:!0}},Jn=a.defineComponent({name:"FXConfirmDialog",props:ys,emits:{"update:modelValue":e=>!0,cancel:()=>!0,confirm:()=>!0},setup(e,{emit:t,slots:n}){function r(){t("update:modelValue",!1)}function o(){t("cancel"),r()}function u(){t("confirm"),r()}function i(s){e.closeOnMask&&s.target===s.currentTarget&&o()}return()=>e.modelValue?a.createVNode("div",{class:"f-chat-confirm-dialog-mask",onClick:i},[a.createVNode("div",{class:"f-chat-confirm-dialog"},[a.createVNode("div",{class:"f-chat-confirm-dialog-title"},[n.title?n.title():e.title]),a.createVNode("div",{class:"f-chat-confirm-dialog-description"},[n.default?n.default():e.description]),a.createVNode("div",{class:["f-chat-confirm-dialog-actions",{"with-divider":e.showDivider}]},[a.createVNode("button",{type:"button",class:"f-chat-confirm-dialog-btn f-chat-confirm-dialog-btn-cancel",onClick:o},[e.cancelText]),a.createVNode("button",{type:"button",class:"f-chat-confirm-dialog-btn f-chat-confirm-dialog-btn-confirm",onClick:u},[e.confirmText])])])]):null}});Jn.install=e=>{e.component(Jn.name,Jn)};function xs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Dh(e){if(Array.isArray(e))return e}function Sh(e,t,n){return(t=Mh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Th(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,u,i,s=[],c=!0,d=!1;try{if(u=(n=n.call(e)).next,t!==0)for(;!(c=(r=u.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){d=!0,o=f}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(d)throw o}}return s}}function Nh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
97
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function As(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ws(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?As(Object(n),!0).forEach(function(r){Sh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):As(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Oh(e,t){if(e==null)return{};var n,r,o=Lh(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(r=0;r<u.length;r++)n=u[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Lh(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ih(e,t){return Dh(e)||Th(e,t)||Ph(e,t)||Nh()}function Rh(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mh(e){var t=Rh(e,"string");return typeof t=="symbol"?t:t+""}function Ph(e,t){if(e){if(typeof e=="string")return xs(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xs(e,t):void 0}}function Vh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ks(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function vs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ks(Object(n),!0).forEach(function(r){Vh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ks(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(o,u){return u(o)},r)}}function eu(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),u=0;u<r;u++)o[u]=arguments[u];return o.length>=e.length?e.apply(this,o):function(){for(var i=arguments.length,s=new Array(i),c=0;c<i;c++)s[c]=arguments[c];return t.apply(n,[].concat(o,s))}}}function tr(e){return{}.toString.call(e).includes("Object")}function jh(e){return!Object.keys(e).length}function tu(e){return typeof e=="function"}function zh(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function $h(e,t){return tr(t)||Bt("changeType"),Object.keys(t).some(function(n){return!zh(e,n)})&&Bt("changeField"),t}function Uh(e){tu(e)||Bt("selectorType")}function Hh(e){tu(e)||tr(e)||Bt("handlerType"),tr(e)&&Object.values(e).some(function(t){return!tu(t)})&&Bt("handlersType")}function Gh(e){e||Bt("initialIsRequired"),tr(e)||Bt("initialType"),jh(e)&&Bt("initialContent")}function Wh(e,t){throw new Error(e[t]||e.default)}var qh={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Bt=eu(Wh)(qh),nr={changes:$h,selector:Uh,handler:Hh,initial:Gh};function Xh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};nr.initial(e),nr.handler(t);var n={current:e},r=eu(Kh)(n,t),o=eu(Yh)(n),u=eu(nr.changes)(e),i=eu(Zh)(n);function s(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(f){return f};return nr.selector(d),d(n.current)}function c(d){Bh(r,o,u,i)(d)}return[s,c]}function Zh(e,t){return tu(t)?t(e.current):t}function Yh(e,t){return e.current=vs(vs({},e.current),t),t}function Kh(e,t,n){return tu(t)?t(e.current):Object.keys(n).forEach(function(r){var o;return(o=t[r])===null||o===void 0?void 0:o.call(t,e.current[r])}),n}var Qh={create:Xh},Jh={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function e2(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),u=0;u<r;u++)o[u]=arguments[u];return o.length>=e.length?e.apply(this,o):function(){for(var i=arguments.length,s=new Array(i),c=0;c<i;c++)s[c]=arguments[c];return t.apply(n,[].concat(o,s))}}}function t2(e){return{}.toString.call(e).includes("Object")}function n2(e){return e||Es("configIsRequired"),t2(e)||Es("configType"),e.urls?(u2(),{paths:{vs:e.urls.monacoBase}}):e}function u2(){console.warn(Cs.deprecation)}function r2(e,t){throw new Error(e[t]||e.default)}var Cs={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
98
+ You are using deprecated way of configuration.
99
+
100
+ Instead of using
101
+ monaco.config({ urls: { monacoBase: '...' } })
102
+ use
103
+ monaco.config({ paths: { vs: '...' } })
104
+
105
+ For more please check the link https://github.com/suren-atoyan/monaco-loader#config
106
+ `},Es=e2(r2)(Cs),o2={config:n2},i2=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(o){return n.reduceRight(function(u,i){return i(u)},o)}};function _s(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],_s(e[n],t[n]))}),ws(ws({},e),t)}var a2={type:"cancelation",msg:"operation is manually canceled"};function _o(e){var t=!1,n=new Promise(function(r,o){e.then(function(u){return t?o(a2):r(u)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var s2=["monaco"],c2=Qh.create({config:Jh,isInitialized:!1,resolve:null,reject:null,monaco:null}),Fs=Ih(c2,2),nu=Fs[0],ur=Fs[1];function l2(e){var t=o2.config(e),n=t.monaco,r=Oh(t,s2);ur(function(o){return{config:_s(o.config,r),monaco:n}})}function d2(){var e=nu(function(t){var n=t.monaco,r=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:r,resolve:o}});if(!e.isInitialized){if(ur({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),_o(Fo);if(window.monaco&&window.monaco.editor)return Ds(window.monaco),e.resolve(window.monaco),_o(Fo);i2(f2,p2)(m2)}return _o(Fo)}function f2(e){return document.body.appendChild(e)}function h2(e){var t=document.createElement("script");return e&&(t.src=e),t}function p2(e){var t=nu(function(r){var o=r.config,u=r.reject;return{config:o,reject:u}}),n=h2("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function m2(){var e=nu(function(n){var r=n.config,o=n.resolve,u=n.reject;return{config:r,resolve:o,reject:u}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m||n;Ds(r),e.resolve(r)},function(n){e.reject(n)})}function Ds(e){nu().monaco||ur({monaco:e})}function g2(){return nu(function(e){var t=e.monaco;return t})}var Fo=new Promise(function(e,t){return ur({resolve:e,reject:t})}),b2={config:l2,init:d2,__getMonacoInstance:g2};const Ss={content:{type:Object,required:!0}},Ts=20,y2=16,bn=180;function x2(e){typeof requestIdleCallback<"u"?requestIdleCallback(e,{timeout:500}):setTimeout(e,0)}const uu=a.defineComponent({name:"FXCodingMessage",props:Ss,setup(e){const t=a.ref(!0),n=a.ref(!1),r=a.ref(null),o=a.ref(null),u=a.ref(bn),i=a.ref(!1);function s(){t.value=!t.value}function c(){var g,y,w,v;const h=(g=e.content)==null?void 0:g.code;if(!h)return bn;const A=o.value;let k;if(A!=null&&A.getOriginalEditor&&(A!=null&&A.getModifiedEditor)){const E=((y=A.getOriginalEditor().getModel())==null?void 0:y.getLineCount())??0,_=((w=A.getModifiedEditor().getModel())==null?void 0:w.getLineCount())??0;k=E+_}else if(A!=null&&A.getModel)k=((v=A.getModel())==null?void 0:v.getLineCount())??0;else{const{value:E,originalValue:_}=h,F=(E||"").split(`
107
+ `).length,q=_?_.split(`
108
+ `).length:0;k=_?q+F:F}return y2+k*Ts}const d=a.computed(()=>(o.value,c()>bn));function f(){n.value=!n.value,u.value=n.value?c():bn,p()}function l(){if(!o.value)return;o.value=null;const b=()=>{};typeof requestIdleCallback<"u"?requestIdleCallback(b,{timeout:100}):setTimeout(b,0)}function p(){if(i.value)return;const h=r.value,b=o.value;if(!h||!(b!=null&&b.layout))return;const A=h.clientWidth||h.offsetWidth,k=u.value;requestAnimationFrame(()=>{var g,y;i.value||!o.value||(y=(g=o.value)==null?void 0:g.layout)==null||y.call(g,{width:A,height:k})})}function m(){var h;i.value||!r.value||!((h=e.content)!=null&&h.code)||b2.init().then(b=>{var w;if(i.value||!r.value||!((w=e.content)!=null&&w.code))return;const{value:A,originalValue:k,language:g="typescript"}=e.content.code,y={readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,lineNumbers:"off",glyphMargin:!1,lineDecorationsWidth:0,folding:!1,renderLineHighlight:"none",fontSize:12,lineHeight:Ts,padding:{top:8,bottom:8}};if(k){const v=b.editor.createDiffEditor(r.value,{...y,renderSideBySide:!1,renderOverviewRuler:!1});v.setModel({original:b.editor.createModel(k,g),modified:b.editor.createModel(A,g)}),v.getOriginalEditor().updateOptions({minimap:{enabled:!1}}),v.getModifiedEditor().updateOptions({minimap:{enabled:!1}}),a.nextTick(()=>{var _;if(i.value)return;const E=(_=v.getContainerDomNode)==null?void 0:_.call(v);if(E){const F=E.querySelector('.diff-editor-cell.original, [class*="original"]');F&&(F.style.display="none")}}),o.value=v}else{const v=b.editor.create(r.value,{value:A,language:g,...y});o.value=v}u.value=bn,a.nextTick(()=>p())})}return a.onMounted(()=>{x2(()=>{i.value||!r.value||m()})}),a.watch(t,h=>{h&&!i.value&&a.nextTick(()=>p())}),a.onBeforeUnmount(()=>{i.value=!0,l()}),a.watch(()=>{var h,b;return(b=(h=e.content)==null?void 0:h.code)==null?void 0:b.value},()=>{i.value||(n.value?u.value=c():u.value=bn,p())}),()=>{const h=e.content;if(!h)return null;const{message:b,fileIcon:A,fileName:k,code:g}=h;return a.createVNode("div",{class:"f-chat-message-coding"},[a.createVNode("div",{class:"f-chat-coding-message"},[b]),a.createVNode("div",{class:"f-chat-coding-card"},[a.createVNode("div",{class:"f-chat-coding-header",onClick:s,role:"button",tabindex:0,onKeydown:y=>y.key==="Enter"&&s()},[a.createVNode("span",{class:"f-chat-coding-header-icon-slot"},[a.createVNode("span",{class:"f-chat-coding-header-icon"},[a.createVNode("img",{src:A,alt:"",onError:y=>{var w;y.target.style.display="none",(w=y.target.parentElement)==null||w.classList.add("icon-error")}},null),a.createVNode("span",{class:"f-chat-coding-header-icon-fallback"},[a.createTextVNode("📄")])]),a.createVNode("span",{class:"f-chat-coding-header-expand"},[a.createVNode("i",{class:t.value?"f-icon f-icon-arrow-chevron-down":"f-icon f-icon-arrow-chevron-right"},null)])]),a.createVNode("span",{class:"f-chat-coding-header-filename"},[k]),a.createVNode("span",{class:"f-chat-coding-header-stats"},[a.createVNode("span",{class:"f-chat-coding-stat-add"},[a.createTextVNode("+"),g.addedLines]),a.createVNode("span",{class:"f-chat-coding-stat-del"},[a.createTextVNode("-"),g.deletedLines])])]),a.createVNode("div",{style:{display:t.value?"block":"none"}},[a.createVNode("div",{ref:r,class:"f-chat-coding-editor",style:{height:`${u.value}px`}},null),d.value&&a.createVNode("button",{type:"button",class:"f-chat-coding-expand-btn",onClick:f,"aria-label":n.value?"收起代码":"展开代码",title:n.value?"收起代码":"展开代码"},[a.createVNode("i",{class:["f-icon f-icon-arrow-chevron-down",n.value&&"f-chat-coding-expand-icon-up"]},null)])])])])}}});uu.install=e=>{e.component(uu.name,uu)};const Ns={content:{type:Object,required:!0}};function A2(e){return"file"in e&&"path"in e}const ru=a.defineComponent({name:"FileOperationMessage",props:Ns,setup(e){const t=a.ref(!0),n=a.ref({}),r=a.computed(()=>{var c;return!!((c=e.content)!=null&&c.summary)}),o=a.computed(()=>{var d;const c=(d=e.content)==null?void 0:d.summary;return c?`浏览了 ${c.explored} 个文件并查询了 ${c.searched} 个文件`:""});function u(){t.value=!t.value}function i(c){n.value={...n.value,[c]:!n.value[c]}}function s(c){return n.value[c]??!1}return()=>{const c=e.content;if(!c)return null;const{summary:d,operations:f}=c,l=!r.value||t.value;return a.createVNode("div",{class:"f-chat-message-file-operation"},[d&&a.createVNode("div",{class:"f-chat-file-op-summary",onClick:u,role:"button",tabindex:0,onKeydown:p=>p.key==="Enter"&&u()},[a.createVNode("span",{class:"f-chat-file-op-summary-inner"},[a.createVNode("span",{class:"f-chat-file-op-summary-text"},[o.value]),a.createVNode("span",{class:["f-chat-file-op-expand-btn",{expanded:t.value}]},[a.createVNode("i",{class:t.value?"f-icon f-icon-arrow-chevron-down":"f-icon f-icon-arrow-chevron-right"},null)])])]),l&&a.createVNode("div",{class:"f-chat-file-op-operations"},[f.map((p,m)=>{var h,b,A,k;return a.createVNode("div",{key:m,class:"f-chat-file-op-operation"},[a.createVNode("div",a.mergeProps({class:["f-chat-file-op-operation-row",{"op-read":p.type==="Read","has-details":!!((h=p.details)!=null&&h.length)}],onClick:()=>{var g;return((g=p.details)==null?void 0:g.length)&&i(m)}},(b=p.details)!=null&&b.length?{role:"button",tabIndex:0}:{},{onKeydown:g=>{var y;return((y=p.details)==null?void 0:y.length)&&g.key==="Enter"&&i(m)}}),[a.createVNode("span",{class:"f-chat-file-op-type"},[p.type]),a.createVNode("span",{class:"f-chat-file-op-message-wrap"},[a.createVNode("span",{class:"f-chat-file-op-message"},[p.message]),(A=p.details)!=null&&A.length?a.createVNode("span",{class:["f-chat-file-op-expand-btn","sm",{expanded:s(m)}]},[a.createVNode("i",{class:s(m)?"f-icon f-icon-arrow-chevron-down":"f-icon f-icon-arrow-chevron-right"},null)]):null])]),((k=p.details)==null?void 0:k.length)&&s(m)&&a.createVNode("div",{class:"f-chat-file-op-details"},[p.details.map((g,y)=>A2(g)?a.createVNode("div",{key:y,class:"f-chat-file-op-detail-file"},[a.createVNode("span",{class:"f-chat-file-op-file-icon"},[a.createVNode("img",{src:g.icon,alt:"",onError:w=>{const v=w.target;v.style.display="none";const E=v.parentElement;E&&E.classList.add("icon-error")}},null),a.createVNode("span",{class:"f-chat-file-op-file-icon-fallback"},[a.createTextVNode("📄")])]),a.createVNode("span",{class:"f-chat-file-op-file-name"},[g.file]),a.createVNode("span",{class:"f-chat-file-op-file-path",title:g.path},[g.path])]):a.createVNode("div",{key:y,class:"f-chat-file-op-detail-text"},[a.createVNode("div",{class:"f-chat-file-op-detail-title"},[g.title]),a.createVNode("div",{class:"f-chat-file-op-detail-content"},[g.text])]))])])})])])}}});ru.install=e=>{e.component(ru.name,ru)};const Os={visible:{type:Boolean,default:!0},description:[String,Object],progress:{type:Number,default:0},showProgress:{type:Boolean,default:!0},icon:{type:[String,Object],default:""},customClass:{type:Object,default:""},customStyle:{type:Object,default:""},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},w2="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='60px'%20height='60px'%20viewBox='0%200%2060%2060'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e智能logo60px%3c/title%3e%3cdefs%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-1'%3e%3cstop%20stop-color='%230D7FE6'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%231EBBC6'%20offset='58.0673923%25'%3e%3c/stop%3e%3cstop%20stop-color='%232AE7AF'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cpath%20d='M25.1971977,0%20L45.8523137,11.3712178%20L45.8523137,37.6155801%20L44.4946453,38.9692599%20L24.623,28.022%20L24.6233274,49.9395377%20L21.4535582,49.9395377%20L2.72549351,39.5965647%20L0,34.4406135%20L0,12.8076673%20L3.70534859,10.5019677%20L20.556,20.546%20L20.5567534,0.161454345%20L25.1971977,0%20Z%20M20.7578212,28.1498874%20L5.81325199,36.7628182%20L20.7578212,45.0027895%20L20.7578212,28.1498874%20Z%20M41.8027832,15.9256338%20L26.7716137,24.6706076%20L41.8027832,32.9879669%20L41.8027832,15.9256338%20Z%20M4.06159924,15.4742393%20L4.06159924,32.9879669%20L19.1488772,24.4568004%20L4.06159924,15.4742393%20Z%20M24.6233274,4.32908173%20L24.6233274,21.2862528%20L39.8727429,12.4882393%20L24.6233274,4.32908173%20Z'%20id='path-2'%3e%3c/path%3e%3clinearGradient%20x1='81.0966666%25'%20y1='38.5584607%25'%20x2='28.8545509%25'%20y2='61.9626707%25'%20id='linearGradient-4'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-5'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='44.8152906%25'%20y1='77.6521765%25'%20x2='44.8152906%25'%20y2='3.26462903%25'%20id='linearGradient-6'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-7'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='3.93796935%25'%20y1='32.607826%25'%20x2='78.9687461%25'%20y2='60.0462823%25'%20id='linearGradient-8'%3e%3cstop%20stop-color='%23FFFFFF'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3cfilter%20x='0.0%25'%20y='0.0%25'%20width='100.0%25'%20height='100.0%25'%20filterUnits='objectBoundingBox'%20id='filter-9'%3e%3cfeGaussianBlur%20stdDeviation='0'%20in='SourceGraphic'%3e%3c/feGaussianBlur%3e%3c/filter%3e%3clinearGradient%20x1='56.0769337%25'%20y1='45.0797149%25'%20x2='24.9463054%25'%20y2='71.1433818%25'%20id='linearGradient-10'%3e%3cstop%20stop-color='%23159BD7'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='10.434388%25'%20y1='68.063656%25'%20x2='86.6988821%25'%20y2='30.8651063%25'%20id='linearGradient-11'%3e%3cstop%20stop-color='%2321C6C1'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%23FFFFFF'%20stop-opacity='0'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='linearGradient-12'%3e%3cstop%20stop-color='%230D7FE6'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='%232AE7AF'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='页面-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='生成过程'%20transform='translate(-766,%20-1268)'%3e%3cg%20id='编组-7'%20transform='translate(321,%20699)'%3e%3cg%20id='编组-5'%20transform='translate(247,%20488)'%3e%3cg%20id='智能logo60px'%20transform='translate(198,%2081)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='60'%20height='60'%3e%3c/rect%3e%3cg%20id='编组-35'%20transform='translate(0.8571,%200.8571)'%3e%3crect%20id='矩形'%20x='0'%20y='0'%20width='58.2857143'%20height='58.2857143'%3e%3c/rect%3e%3cg%20id='编组-19备份-17'%20transform='translate(3.4286,%201.7143)'%3e%3cpath%20d='M27.9148216,2.78182535%20L48.5699376,14.1530432%20L48.5699376,40.3974054%20L47.2122691,41.7510852%20L27.3406238,30.8038254%20L27.3409512,52.7213631%20L24.171182,52.7213631%20L5.44311735,42.3783901%20L2.71762384,37.2224388%20L2.71762384,15.5894926%20L6.42297243,13.283793%20L23.2736238,23.3278254%20L23.2743772,2.9432797%20L27.9148216,2.78182535%20Z%20M23.4754451,30.9317128%20L8.53087583,39.5446435%20L23.4754451,47.7846148%20L23.4754451,30.9317128%20Z%20M44.520407,18.7074592%20L29.4892375,27.452433%20L44.520407,35.7697922%20L44.520407,18.7074592%20Z%20M6.77922307,18.2560647%20L6.77922307,35.7697922%20L21.866501,27.2386257%20L6.77922307,18.2560647%20Z%20M27.3409512,7.11090709%20L27.3409512,24.0680782%20L42.5903667,15.2700646%20L27.3409512,7.11090709%20Z'%20id='形状结合'%20fill='url(%23linearGradient-1)'%3e%3c/path%3e%3cg%20id='路径-2-+-路径-3-+-路径-4蒙版'%20transform='translate(2.7176,%202.7818)'%3e%3cmask%20id='mask-3'%20fill='white'%3e%3cuse%20xlink:href='%23path-2'%3e%3c/use%3e%3c/mask%3e%3cuse%20id='蒙版'%20fill='url(%23linearGradient-1)'%20xlink:href='%23path-2'%3e%3c/use%3e%3cpolygon%20id='路径-2'%20fill='url(%23linearGradient-4)'%20filter='url(%23filter-5)'%20mask='url(%23mask-3)'%20points='14.177196%2023.2632694%2022.5796859%2023.2632694%2023.4218687%2027.5957059%209.52757789%2036.9780352%203.7254788%2029.0812693'%3e%3c/polygon%3e%3cpolygon%20id='路径-3'%20fill='url(%23linearGradient-6)'%20filter='url(%23filter-7)'%20mask='url(%23mask-3)'%20points='23.4218687%2022.4125055%2027.1161878%2015.1091341%2027.8042533%206.35665145%2018.1506617%205.88610282%2018.8417696%2016.8706238%2022.5796859%2022.4125055'%3e%3c/polygon%3e%3cpolygon%20id='路径-4'%20fill='url(%23linearGradient-8)'%20filter='url(%23filter-9)'%20mask='url(%23mask-3)'%20points='33.5501273%2024.6706076%2024.403058%2024.9983902%2024.403058%2027.5289361%2028.4733448%2033.3539069%2036.4355638%2036.3335669%2041.6970622%2028.387534'%3e%3c/polygon%3e%3c/g%3e%3cpath%20d='M27.9148216,2.78182535%20L48.5699376,14.1530432%20L48.5699376,40.3974054%20L47.2122691,41.7510852%20L23.2743772,28.5628437%20L23.2743772,2.9432797%20L27.9148216,2.78182535%20Z%20M27.3409512,7.11090709%20L27.3409512,24.0680782%20L28.3053772,23.5108254%20L28.3061985,25.7112082%20L30.1053772,27.0928254%20L29.4892375,27.452433%20L44.520407,35.7697922%20L44.5203772,18.7198254%20L45.4350062,17.1793767%20L42.5903667,15.2700646%20L27.3409512,7.11090709%20Z'%20id='形状结合'%20fill='url(%23linearGradient-10)'%20fill-rule='nonzero'%3e%3c/path%3e%3cpolygon%20id='路径'%20fill='url(%23linearGradient-11)'%20fill-rule='nonzero'%20points='22.5927693%2026.8440709%2023.6315003%2030.8033921%208.53087583%2039.5446435%207.30516741%2035.4601402'%3e%3c/polygon%3e%3cg%20id='编组-21'%20fill='url(%23linearGradient-12)'%3e%3cpath%20d='M25.4312165,33.1398658%20C28.857043,33.1398658%2031.634224,30.3626848%2031.634224,26.9368583%20C31.634224,23.5110318%2028.857043,20.7338508%2025.4312165,20.7338508%20C22.00539,20.7338508%2019.228209,23.5110318%2019.228209,26.9368583%20C19.228209,30.3626848%2022.00539,33.1398658%2025.4312165,33.1398658%20Z%20M46.5950591,20.103577%20C49.2645342,20.103577%2051.4285714,17.9395398%2051.4285714,15.2700646%20C51.4285714,12.6005895%2049.2645342,10.4365523%2046.5950591,10.4365523%20C43.9255839,10.4365523%2041.7615467,12.6005895%2041.7615467,15.2700646%20C41.7615467,17.9395398%2043.9255839,20.103577%2046.5950591,20.103577%20Z%20M25.4312165,54.9048659%20C28.1006917,54.9048659%2030.2647289,52.7408287%2030.2647289,50.0713536%20C30.2647289,47.4018784%2028.1006917,45.2378412%2025.4312165,45.2378412%20C22.7617413,45.2378412%2020.5977042,47.4018784%2020.5977042,50.0713536%20C20.5977042,52.7408287%2022.7617413,54.9048659%2025.4312165,54.9048659%20Z%20M4.83351235,43.462539%20C7.50298751,43.462539%209.6670247,41.2985018%209.6670247,38.6290267%20C9.6670247,35.9595515%207.50298751,33.7955143%204.83351235,33.7955143%20C2.16403719,33.7955143%200,35.9595515%200,38.6290267%20C0,41.2985018%202.16403719,43.462539%204.83351235,43.462539%20Z%20M25.4312165,8.37808808%20C27.7447616,8.37808808%2029.6202605,6.50258918%2029.6202605,4.18904404%20C29.6202605,1.8754989%2027.7447616,0%2025.4312165,0%20C23.1176714,0%2021.2421725,1.8754989%2021.2421725,4.18904404%20C21.2421725,6.50258918%2023.1176714,8.37808808%2025.4312165,8.37808808%20Z%20M46.5950591,43.3044363%20C48.9086042,43.3044363%2050.7841031,41.4289374%2050.7841031,39.1153922%20C50.7841031,36.8018471%2048.9086042,34.9263482%2046.5950591,34.9263482%20C44.2815139,34.9263482%2042.406015,36.8018471%2042.406015,39.1153922%20C42.406015,41.4289374%2044.2815139,43.3044363%2046.5950591,43.3044363%20Z%20M4.83351235,18.3420872%20C7.14705749,18.3420872%209.02255639,16.4665883%209.02255639,14.1530432%20C9.02255639,11.8394981%207.14705749,9.96399915%204.83351235,9.96399915%20C2.51996721,9.96399915%200.644468314,11.8394981%200.644468314,14.1530432%20C0.644468314,16.4665883%202.51996721,18.3420872%204.83351235,18.3420872%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ou=a.defineComponent({name:"FXGenerateProcess",props:Os,emits:["closed"],setup(e,t){const n=a.computed(()=>{const d={"fx-generate-process":!0,"fx-generate-process--no-progress":!e.showProgress};return Se(d,e.customClass)}),r=a.computed(()=>Te({},e.customStyle));function o(){var d,f;return t.slots.icon?t.slots.icon():a.createVNode("div",{class:["fx-generate-process--icon",(d=e.classNames)==null?void 0:d.icon],style:(f=e.styles)==null?void 0:f.icon},[e.icon?xu(e.icon):a.createVNode("img",{alt:"ai logo",class:"fx-generate-process--icon-default",src:w2},null)])}function u(){var d,f;return e.description&&a.createVNode("p",{class:["fx-generate-process--description",(d=e.classNames)==null?void 0:d.description],style:(f=e.styles)==null?void 0:f.description},[e.description])}function i(){var d,f;return e.progress>0&&a.createVNode("div",{class:["fx-generate-process--progress-text",(d=e.classNames)==null?void 0:d["progress-text"]],style:(f=e.styles)==null?void 0:f["progress-text"]},[e.progress,a.createTextVNode("%")])}function s(){return a.createVNode("div",{class:"fx-generate-process--mask",onClick:d=>{d.stopPropagation()}},null)}function c(d=()=>{}){t.emit("closed",{callback:d})}return a.watch(()=>e.visible,d=>{d||c()}),t.expose({close:c}),()=>{var d,f;return a.createVNode(a.Fragment,null,[e.visible&&s(),e.visible&&a.createVNode("div",{class:n.value,style:r.value},[o(),!e.showProgress&&u(),e.showProgress&&a.createVNode("div",{class:["fx-generate-process--progress-bar",(d=e.classNames)==null?void 0:d["progress-bar"]],style:(f=e.styles)==null?void 0:f["progress-bar"]},[a.createVNode("div",{class:"fx-generate-process--progress-fill",style:{width:`${e.progress}%`}},null),!e.description&&i()]),e.description&&e.progress>0&&a.createVNode("div",{class:"fx-generate-process--progress"},[u(),a.createTextVNode(" "),i()])])])}}});ou.install=e=>{e.component(ou.name,ou)};const Ls={title:{type:String,default:"历史对话"},items:{type:Array,default:()=>[]}},k2=[{key:"today",label:"今天"},{key:"week",label:"近7天"},{key:"older",label:"更早"}],iu=a.defineComponent({name:"FXChatHistory",props:Ls,emits:["itemClick"],setup(e,{emit:t}){const n=i=>{const s=new Date(i),c=new Date;return s.getDate()===c.getDate()&&s.getMonth()===c.getMonth()&&s.getFullYear()===c.getFullYear()},r=i=>{const s=new Date(i),c=new Date;return c.setDate(c.getDate()-7),s>=c&&!n(i)},o=a.computed(()=>{var c;const i={today:[],week:[],older:[]};(c=e.items)==null||c.forEach(d=>{n(d.timestamp)?i.today.push(d):r(d.timestamp)?i.week.push(d):i.older.push(d)});const s=(d,f)=>f.timestamp-d.timestamp;return i.today.sort(s).length||i.week.sort(s).length||i.older.sort(s).length?{today:i.today.sort(s),week:i.week.sort(s),older:i.older.sort(s)}:null}),u=(i,s)=>s.length>0&&a.createVNode("div",{class:"f-chat-history-section"},[a.createVNode("span",{class:"f-chat-history-section-header"},[i]),a.createVNode("div",{class:"d-flex flex-column"},[s.map(c=>a.createVNode("div",{key:c.id,class:"f-chat-history-item",onClick:()=>t("itemClick",c)},[a.createVNode("span",{class:"f-chat-history-item-title"},[c.title])]))])]);return()=>a.createVNode("div",{class:"f-chat-history-manager"},[a.createVNode("div",{class:"f-chat-history-manager-scroll"},[o.value&&k2.map(i=>u(i.label,o.value[i.key]))])])}});iu.install=e=>{e.component(iu.name,iu)};const Is={items:{type:Array,default:()=>[]},title:{type:[String,Object],default:""},vertical:{type:Boolean,default:!1},wrap:{type:Boolean,default:!1},gap:{type:[String,Number],default:12},fadeIn:{type:Boolean,default:!1},fadeInLeft:{type:Boolean,default:!1},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})},customClass:{type:Object,default:""},customStyle:{type:Object,default:""}};var Rs=(e=>(e.standardFeatureCard="standard-feature-card",e.primaryFeatureCard="primary-feature-card",e.compactFeatureCard="compact-feature-card",e.standardQuestionItem="standard-question-item",e.functionEntryItem="function-entry-item",e.defaultTextItem="default-text-item",e.hasNestEntryItem="has-nest-entry-item",e.likeButtonEntryItem="like-button-entry-item",e.none="",e))(Rs||{});const Ms={id:{type:[String,Number],default:""},icon:{type:[String,Object],default:""},label:{type:[String,Object],default:""},description:{type:[String,Object],default:""},badge:{type:[String,Object],default:""},disabled:{type:Boolean,default:!1},children:{type:Array,default:()=>[]},styles:{type:Object},classNames:{type:Object},customClass:{type:Object,default:""},customStyle:{type:Object,default:""},showType:{type:String,default:Rs.defaultTextItem},gap:{type:[String,Number]},onClick:{type:Function,required:!1}},rr=a.defineComponent({name:"FPrompt",props:Ms,setup(e){const t=a.computed(()=>!e.id&&e.children&&e.children.length>0),n=a.computed(()=>{var p;let l={"fx-prompt--item-wrapper":!0,"fx-prompt--item-disabled":e.disabled,"fx-prompt--item-has-nest":e.id&&e.children&&e.children.length>0};return l=Se(l,(p=e.classNames)==null?void 0:p.item),Se(l,e.customClass)}),r=a.computed(()=>{let l={"fx-prompt--item":!0};return l[`fx-prompt--${e.showType||"none"}`]=!0,l}),o=a.computed(()=>{var p;const l=Te({},(p=e.styles)==null?void 0:p.item);return Te(l,e.customStyle)}),u=()=>{var l,p;return e.icon?a.createVNode("div",{class:["fx-prompt--item-icon",(l=e.classNames)==null?void 0:l.icon],style:(p=e.styles)==null?void 0:p.icon},[xu(e.icon)]):null},i=()=>{var l,p;return e.label?a.createVNode("h6",{class:["fx-prompt--item-label",(l=e.classNames)==null?void 0:l.label],style:(p=e.styles)==null?void 0:p.label},[Tn(e.label)]):null};function s(){var p;const l={"fx-prompt--item-badge":!0};return typeof e.badge=="string"&&(l["badge-default"]=!0),Se(l,(p=e.classNames)==null?void 0:p.badge)}const c=()=>{var l;return e.badge?a.createVNode("span",{class:s(),style:(l=e.styles)==null?void 0:l.badge},[Tn(e.badge)]):null},d=()=>{var l,p;return e.description?a.createVNode("p",{class:["fx-prompt--item-description",(l=e.classNames)==null?void 0:l.description],style:(p=e.styles)==null?void 0:p.description},[Tn(e.description)]):null},f=()=>{var l,p,m,h;return!e.children||e.children.length===0?null:a.createVNode(yn,{class:{"fx-prompt--only-children":!e.id,"fx-prompt--item-nested":e.id},gap:e.gap,items:e.children,vertical:!0,customClass:(l=e.classNames)==null?void 0:l.subItems,customStyle:(p=e.styles)==null?void 0:p.subItems,styles:{item:((m=e.styles)==null?void 0:m.subItem)??{}},classNames:{item:((h=e.classNames)==null?void 0:h.subItem)??""}},null)};return()=>{var l,p;return a.createVNode("div",{class:n.value,style:o.value,onClick:e.onClick},[t.value?f():a.createVNode("div",{class:r.value},[u(),c(),a.createVNode("div",{class:["fx-prompt--item-content",(l=e.classNames)==null?void 0:l.itemContent],style:(p=e.styles)==null?void 0:p.itemContent},[i(),d(),f()])])])}}}),yn=a.defineComponent({name:"FXPrompts",props:Is,emits:["item-click"],setup(e,t){const n=a.computed(()=>{var f;let d={"fx-prompts":!0,"fx-prompts--fade-in":e.fadeIn,"fx-prompts--fade-in-left":e.fadeInLeft};return d=Se(d,e.customClass),d=Se(d,(f=e.classNames)==null?void 0:f.root),d});function r(d=null){var l;let f={"fx-prompts--items":!0,"fx-prompt":!0,"fx-prompts--items-wrap":e.wrap,"fx-prompts--items-vertical":e.vertical};return f=Se(f,(l=e.classNames)==null?void 0:l.items),f=Se(f,d==null?void 0:d.customClass),f}function o(d=null){var l;let f={};return(e.gap||e.gap===0)&&(f.gap=typeof e.gap=="number"?`${e.gap}px`:e.gap),f=Te(f,(l=e.styles)==null?void 0:l.items),f=Te(f,d==null?void 0:d.customStyle),f}const u=(d,f)=>{f.disabled||f.children&&f.children.length>0||t.emit("item-click",d,f)},i=d=>{var f,l;return d!=null&&d.title?a.createVNode("h5",{class:["fx-prompts--title",(f=e.classNames)==null?void 0:f.title],style:(l=e.styles)==null?void 0:l.title},[Tn(d==null?void 0:d.title)]):null};function s(d){return!d.items||d.items.length===0?null:a.createVNode("div",{class:r(d),style:o(d)},[d.items.map((f,l)=>a.createVNode(rr,{key:f.id||`key_${l}`,id:f.id,icon:f.icon,label:f.label,description:f.description,disabled:f.disabled,children:f.children,styles:f.styles||e.styles,classNames:f.classNames||e.classNames,showType:f.showType,customClass:f.customClass,customStyle:f.customStyle,gap:f.gap,badge:f.badge,onClick:p=>u(p,f)},null))])}function c(){return t.slots.footer?t.slots.footer():null}return()=>{var d;return a.createVNode("div",{class:n.value,style:(d=e.styles)==null?void 0:d.root},[t.slots.title&&t.slots.title(),i(e),t.slots.default&&t.slots.default(),s(e),c()])}}});yn.install=e=>{e.component(yn.name,yn),e.component(rr.name,rr)};const Ps={items:{type:Array,default:()=>[]},height:{type:Number,default:200},title:{type:[String,Object],default:"推荐操作"},prompt:{type:[String,Object],default:"输入@获取推荐操作"},promptChar:{type:String,default:"@"},promptAgentName:{type:String,default:"AI助理"}},au=a.defineComponent({name:"FXSuggestion",props:Ps,setup(e,t){const n=a.ref(null),r=a.ref(!1),o=a.ref(!1),u=a.ref({top:0,left:0,height:0}),i=a.ref(-1),s=a.ref(""),c=a.computed(()=>typeof e.prompt=="string"?e.prompt:"输入“@”获取推荐操作"),d=a.computed(()=>{var k;return(((k=e.items)==null?void 0:k.length)??0)===0}),f=()=>{var q;if(!n.value||d.value)return;if((((q=n.value.textContent)==null?void 0:q.trim())||"")===""){n.value.textContent="",n.value.innerHTML="",b();return}const g=window.getSelection();if(!g||g.rangeCount===0)return;const y=g.getRangeAt(0),w=y.cloneRange();w.selectNodeContents(n.value),w.setEnd(y.endContainer,y.endOffset);const v=w.toString(),E=v.lastIndexOf(e.promptChar);if(s.value=n.value.textContent||"",E!==-1&&v.substring(E+1).trim()===""&&(n.value.textContent=v.replace(/@$/,`@${e.promptAgentName} `),s.value=n.value.textContent,r.value=!0,y.selectNodeContents(n.value),y.collapse(!1),g.removeAllRanges(),g.addRange(y)),r.value===!1){o.value=!1,i.value=-1;return}if((n.value.textContent||"").lastIndexOf(`@${e.promptAgentName} `)!==-1){const P=document.createRange();P.setStart(n.value,0),P.setEnd(y.endContainer,y.endOffset);const{top:B,right:j}=P.getBoundingClientRect(),D=l();u.value={top:B-D-5,left:j+5,height:D},i.value===-1&&(i.value=0),o.value=!0}else o.value=!1,i.value=-1},l=()=>{const g=e.items.length*38-6;return Math.min(g+28+20,e.height)},p=k=>{var v;if(!n.value)return;const g=window.getSelection();if(!g||g.rangeCount===0)return;const y=((v=n.value.textContent)==null?void 0:v.replace(/\s*$/,""))||"";n.value.textContent=`${y} ${k.label}`;const w=g.getRangeAt(0);w.selectNodeContents(n.value),w.collapse(!1),g.removeAllRanges(),g.addRange(w),b()},m=async k=>{if(!o.value||!e.items||e.items.length===0)return;switch(["ArrowUp","ArrowDown","Enter","Escape"].includes(k.key)&&k.preventDefault(),k.key){case"ArrowDown":i.value++,i.value>=e.items.length&&(i.value=0);break;case"ArrowUp":i.value--,i.value<0&&(i.value=e.items.length-1);break;case"Enter":i.value!==-1&&p(e.items[i.value]);break;case"Escape":b();break}await a.nextTick();const g=i.value>0?".f-chat-suggestion-panel-item--current":".f-chat-suggestion-panel-header",y=document.querySelector(g);y==null||y.scrollIntoView({block:"nearest",behavior:"smooth"})},h=k=>{n.value&&!n.value.contains(k.target)&&b()},b=()=>{r.value=!1,o.value=!1,i.value=-1};a.onMounted(()=>{document.addEventListener("click",h)}),a.onUnmounted(()=>{document.removeEventListener("click",h)});const A=k=>{const g=k.iconUrl||"",y=k.icon||"f-icon f-icon-task-record";return a.createVNode(a.Fragment,null,[g?a.createVNode("img",{alt:"suggestion item icon",src:g},null):a.createVNode("i",{class:y},null),a.createVNode("span",{class:"f-chat-suggestion-panel-item-label"},[k.label])])};return()=>{var k;return a.createVNode("div",{class:"f-chat-suggestion-container"},[a.createVNode("div",{ref:n,class:"f-chat-suggestion-input",contenteditable:"true",onInput:f,onKeyup:f,onKeydown:m,"data-placeholder":c.value},null),o.value&&a.createVNode("div",{class:"f-chat-suggestion-panel",style:{top:`${u.value.top}px`,left:`${u.value.left}px`,height:`${u.value.height}px`}},[a.createVNode("div",{class:"f-chat-suggestion-panel-header"},[e.title]),a.createVNode("div",{class:"f-chat-suggestion-panel-container"},[(k=e.items)==null?void 0:k.map((g,y)=>a.createVNode("div",{key:y,class:["f-chat-suggestion-panel-item",{"f-chat-suggestion-panel-item--current":y===i.value}],onClick:()=>p(g),onMouseenter:()=>i.value===y},[A(g)]))])])])}}});au.install=e=>{e.component(au.name,au)};const Vs={type:{type:String,default:"Todo"},message:{type:String,default:""},items:{type:Array,default:[]},customClass:{type:String,default:""}},su=a.defineComponent({name:"Todo",props:Vs,setup(e){const t=a.ref(!0),n=a.computed(()=>{var o;return(o=e.items)==null?void 0:o.length});function r(){t.value=!t.value}return()=>a.createVNode("div",{class:["f-chat-message-todo",e.customClass]},[a.createVNode("div",{class:"f-chat-todo-message"},[e.message]),a.createVNode("div",{class:"f-chat-todo-list"},[a.createVNode("div",{class:"f-chat-todo-header",onClick:r,role:"button",tabindex:0,onKeydown:o=>o.key==="Enter"&&r()},[a.createVNode("span",{class:"f-chat-todo-header-icon-slot"},[a.createVNode("span",{class:"f-chat-todo-header-icon"},[a.createVNode("i",{class:"f-icon f-icon-task-record"},null)]),a.createVNode("span",{class:"f-chat-todo-header-expand"},[a.createVNode("i",{class:t.value?"f-icon f-icon-arrow-chevron-down":"f-icon f-icon-arrow-chevron-right"},null)])]),a.createVNode("span",{class:"f-chat-todo-header-label"},[a.createTextVNode("待办任务")]),a.createVNode("span",{class:"f-chat-todo-header-count"},[n.value])]),t.value&&a.createVNode("div",{class:"f-chat-todo-content"},[a.createVNode(qn,{items:e.items},null)])])])}});su.install=e=>{e.component(su.name,su),e.component(qn.name,qn),e.component(Gu.name,Gu)};const Bs={icon:[String,Object],title:[String,Object],description:[String,Object],customClass:{type:Object,default:""},customStyle:{type:Object,default:""},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},cu=a.defineComponent({name:"FXWelcome",props:Bs,emits:[],setup(e,t){const n=a.computed(()=>{const i={"fx-welcome":!0};return!e.description&&(e.icon||t.slots.icon)&&(i["fx-welcome--no-description"]=!0),Se(i,e.customClass)}),r=a.computed(()=>Te({},e.customStyle));function o(){var i,s;return t.slots.icon?t.slots.icon():e.icon?a.createVNode("div",{class:["fx-welcome--icon",(i=e.classNames)==null?void 0:i.icon],style:(s=e.styles)==null?void 0:s.icon},[xu(e.icon)]):null}function u(){var i,s,c,d,f,l;return t.slots.content?a.createVNode("div",{class:"fx-welcome--content"},[t.slots.content()]):(e.title||e.description)&&a.createVNode("div",{class:["fx-welcome--content",(i=e.classNames)==null?void 0:i.content],style:(s=e.styles)==null?void 0:s.content},[e.title&&a.createVNode("h4",{class:["fx-welcome--title",(c=e.classNames)==null?void 0:c.title],style:(d=e.styles)==null?void 0:d.title},[e.title]),e.description&&a.createVNode("p",{class:["fx-welcome--description",(f=e.classNames)==null?void 0:f.description],style:(l=e.styles)==null?void 0:l.description},[e.description])])}return()=>a.createVNode("div",{class:n.value,style:r.value},[o(),u()])}});cu.install=e=>{e.component(cu.name,cu)};const js={content:{type:Object,required:!0},onOpen:{type:Function}},v2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAHHUlEQVRYCV2XSY8VVRTHT9UbgAbpZpSmaRNMxIiGqZVEE1csXBoNboyJ23ahfgI/gQuXdiRx6UY2utKNEUJjQLrBEEwUmQcBBZuphzdU+fufc+tVw61Xde894/+ce+6tepml9uKhpYMbVpWTuWUTpZUjQc7oSnvUMZvvVZJO8om4ZjzLUmK2bqVZO4g+r3hLfbMHi5plc1lZztBPnftkxeGkbfbCocUvW5lNrl+ZYQdLaurCv3UKs7mlNIHuo9RXsqJtHuKZwFRmxH+4ZLbYq3mS5Z76/dOVH2WKvCjLb1e3zHQPHEszIZDNfxY0AyAT9QNHSaoJaf0KV4qHApAcBu8+NisqwBUdO3mevZcT8aRE27mEaamLCdJShEaGknM4QkQLIJqbrWgsUwy2M3osnYtDS2qDQVlkkwDIJjKYrUbSSp0bDy96ugPJeYbUsyyRjbDXwpK31HkkjDusv5rsPa1PPUzkWBlpKX+VosKleS1Aq6IcOAgmWUkQkaFwo/jcRpUJJvy6/WR7kDU37/oEMNLUtC30lV64dilhKVg8sdo5DxeLQlX0mqs1PbQYV8Qq3Uu90Bc3xJQJKYZ+U327kdREdyDuWTpJSfzMmoDo9pNBtxFG2hSvU0WTjowUhXVZfzmVyQoGBe9zZU3UZo5RGXaypBEYbhf24SvaEj617/7s2/UH1AF8AnLi2zsatnNTwwvrxv3CfryoonAVr43NQ2bv7GxaL9XAVyd7NqedpKVzN3gEQ9NT63pQPd2lPUDwrecbNsK5oHZ3vrBvzvasJbTaT4D8eH/TxoeZ0249KuyH84vExCWriOwfy+yDPb7C9t98aZ//zGkmvtTpXZNxrvRHktTDJJBOr7AT1+ujb9dmEobjFtpav7E15cC5dLasyW3rMwGs7PdN9+4tAU786Su9VEsR0OA5AKB1KQO5ouuQ56MoVW3Xs9osIGNdm1lhb4zXxiuZfTgs4Eu/pN896pE5e/qibAUddjT5ZMRhVM1FEDdj7wLgcjcYPIdX5rZ9GK6ywAHw+rbaeCU0sbVBlqIOtpCh0bU1yGMXOp45mfcdIDcOREuBjjAEDp4g61I4tx4WduleqiD4SmlZ9NnvAHgu1vbOoz4vGQzQ9o5BA0Ch9C+L/o87Pfv3Md7k3CXlI40JKGAO0s82S4Ake/yqCieajGoZdmzMbf1QqJ240rHZ6yGzcXVu4yMqw9J2bw2A0jx2kUwqWhWnOr986I9YgbQeEuz1ZZwbUEcu1XWwZ1QRlvbqWJ3+GQCeWgZyAl7J8u1dDuACAOScZKrO/ABTLgSKGwC6YqIt5Gc3DI1PXusBSJK8atc0bHSN2Wvb4nwQ7QzRz16rs7RvrGV8U9j4ugC50C3tFDbcg0DoR68dJefymwsRP5+oDNmBPGGBdr6b2ZmbdRYmWOc9Kbq/H/TZ/yV1Utg9zgm1feMt27etTv+vV7opo7XNquZcAb9UVjhX3wWxg0lIxTl+uY7w/b1DNpROLqVeQHVVWRhZldu7u/ksSu0Y6dfBIzeKVnc0tETnTjUgchYFqFRVRQntiIoote0b6uh+IzNZpnrJbOZaLbNrrF2J2zS6pVLuzlSegktTlDQth2dASETUue08pPKcfU1/7nZh99NWc630OI1TmROIGVL9dLt5v28X7xbhEpnMqw2n4RtH/HwbOkHVqTddSpYy4Kigo3ziKQe3fP0jAmXgBi+qOw/rM0NgpnX4EF8u57KmMlnmXDTdsaHhqPgcFUjE0DJ4wlCavvRkhLMpeqm7AxRmrz4pc+yvqP5Iu1ty+/WRH/4Gi9qJ49oRxfkkRJHin8537aVN8yknZkdVXIqM24mA/v7skt3m9PQlRPMXP0NYRkWttcSWotWu8wD9yfjNrxcpfT67F7QFGegnJQlyFyoMjuC1rYLXcbWmGMvBrtczsnoH9Fk/vbZDGX6G80YTG7hLYONLCNtq0qPzLyJN9KXjRMlzDT65VMU40odIW2PdHgtPjDtYKN0Sh7p8UWWau3IufxLk58lQclPzJdCHI6aCJDlFL0nGWmMZ0orm+nil8T5yUHKifVzC71JleUObCl1fPRWfLtfwPsemA5ENLo35GsvmOl3+isk/tytorObRIshC9gs49J5SMIXhJEYX7xCVpYxINkkQQGw3mYc38KFKy+aajzvlDP/dDohRmYtsYACEypybwuC8/z2rnBMDNEXBHwzeU8qaeCkLFUTqSvpuQw4qP7KbZTPNhW42hZEDtQAcF4peS6qzQEgW2CmSEyjRfUDnDlLE4g3cMXaenjDE03yQhaycyuNfag6IYIivFoppDFMOdWvt3HmScbDUgLab7louOUOuXvfQh6RsTZ3+bMVhByTCy18sHWStJim6Cb7t+LSgCRRNY0c/mEfqB5HIeSWjkUcjAjetskX9zFFPM3nWxHnT/57/Dzj0fqfCZcLZAAAAAElFTkSuQmCC",C2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAHeklEQVRYCV1XW2hcVRTd985MZjKxNaVa6cNqnwbaftSIiuiPilh8NC2tWh+lXyFFbMEKgvgABQUfIGoxWqGioFLjR0GQlqooGhptjNU+9EPaarT2IUySZt73Xtfa+5w7o3dyc885+5y91l57nzN3AnHXjoOPbJAgGEhEegNJugUNCURqzbrUk5ok6GcklK6OLrTRwc2PxPhLYkniCAswEqPtbXiWGxekEdUkxniQSCmReDSO4sGP+vYPERoQIjtGtr2JRQOB9tQ3Rh0DPMvNCnAi6cwUJROEBk4QvQluoCkBR6QR1UFgqkVYiWKufmRwT9+BrYFFLh/Dl7sSCAEN0PeEIgA044bkM3mNlkYFR9R8sq8qEIB9AMRRU6brUxiPNHol5whwfsK2yMYsZaeRYFzrwVM6GMuEoYRBBxxRZkgOQubEOeJCOFQHrl1uTEsEcKpDGwFjZ0sVC5KBLJb26kJkw0iADDPjCBHQR8n1BgRnKQknqToHIZCsRVWJoJgBeQJGUpXD3ITkEunN4n93GjXm+LaVAxGJadIyCq5ScOaRkVFIgpMQKoWSVxtlDBkZGHW+X6trdK6u6876PPsU0F+rzdwagDkkCPueEOGtr+BwPF2fNGKOnE8BSbZI2BrWTbaOSs2FHQwUFwzUni0YdRGj54dPFxX7nGVzGLXZKoi8qYWJPqNsA9X6cX3vm4Fka0ogp9ITnCBRxEi53smNZ7sz2ii1H0tirEHO682qI0pCppbVSosMx9vVRBHGUsE+78wWzaGqwJRiEe55nfPkmjnX6SICY5J8PX5AzpfPKohGipytWbROsmGWZp0zdnpEfj47iq4D5w6iAvyoShYUVgQ4YiLRVAQZBdK8AzyKIvlzelw2dW+WK2Yuome9rpy5WF75/llETZKR3L74bll/1f3eLGenT8ueI7uVIGX2kht4q88gQxYcG9VmGYBNnUyGXrqo2ZBdP+3E1qqlAMtm9cjNl6/Rw+ay4nxZu3xTaouw9tXh5+wQgl+Cp4cUI9fbpxYEfJW2y8IcKXMewHBwhhEdfz8FYWPd8vtkftdC6V+93aR31qFj78nRc2P/CcQK2MhYDaCt5BIJWZ0EzId5rWztY4ys/RaERvLlqX3y45lDKYlcJidP3Pi8LLy4lZpfzx+VDw7vgjIOQKNFmjTvLVAGS5/ECgkeJgG+6Zh/xxILtJpgCzDGYuS8d8bekMnaREqikC2kbW7Bl755CqSbEoSabdvRDIRE6Bt+VFn4sjawYZECvmQ8S/Y9EQPGInyPkvFktSS7Dr2WgrY33v1hp/w9OY61zjlJo4ipJH16EnySBGtMFcjzENIgwRIfLgiwgOAKrG0qgWrF3+Ez3+kWbAevN2sy9teIFN1W1mCcigyGvnxQJOjJkBh2bgagzAmJsvgYgZfMnvSFI0od9fVskkuKc9rxpSObl4FrH8O7QgZf2QyIcy16KzZ3BpCI+jaVVQGViOCMmEbIZiTIGo5oY8GgvWTWUlnbc6+O/f/f1fOvl1uX3ikdIMBvU42camqxEdj8+XEM6BwtQisIG9A0YDKJ8YiNQYj2HKLr730U7waZFPuXc0fSNhsPrt4qc7sW4FTt1DXMsx5Wqir90RdTwDYCxjiK0Bvw9G08qbgu0OgjuWfFFpk7Y0EKOD5xUp7et10OnvoqHctjVzx8w5OSxSefMRIE0mDgp1UHLEDe3IZkQpH5guBYKUP0yZ57evmsFXLLojtSIJ52r3/7Aux1eevgi7o7vHHJ7B5Zv2oLDqdc6/0R872SFqRhtilgcnh5aCAJFAW2aEGl54uKv/Ye+1B+++e4vjdM1Ery9sjL3qTPvpUPybLZK/UlNuGhxBTwo8q2lLYiZJQuN5zAYgO8Rs7FD6zql9nFS1OAP0onZM/h3Qoe4HzAmSPDJ76Q4ZOfp3NYJ9tuekby2JYF1gP9Akefrqb8jgv6P9tIRDUaAccwSvANWZOpyoQrSCuoAo7sPLYd1eFrCXeN5pkAmmcd1fcL3boYLVcnpR5XsYS+tbjUJzqsAZOG4HYrG2VcqV/AcvQ5B855LNci/EaIcdziYGKfKoAHLvpBm/N5saboE6CdObxrtOF4NWjHNvTA/mkHSLU5bUB0CBBGg7dzfdJG7fXEZBSwaTpABFMwh/WDC6A6B/bOnP2i8niMXmsAVEu6AxxbRtHAz7Ea3pL0Ql8dgoeXL4ICjUYFbkmOMXOOkSMRlR6RS2BBMWK+LeWwM/wpS3CsKVGBUVBRqQgQoF3B7zl1C1IwENkiJKDesf7mM5uzY1yjZ0qUNJ7wpWeAC66AoiRRrmNqiB1i+SCBLToUDPIeRw2VR5VROWF3zuAVTi2/F/DVzHGO8dYi1G1nwPY+YQQJyruYnQHfNoayHgx337V3CO4H6YhvtTW+2TICd3MRZfMONDrY2G9ilzSQKhajRqSOPSB9WFvzToLo82ceT0w4GBx+vDKkiqAnmz+5bcNUtTSQxM1enIDduih1QAUYNZWCU8SaAqJ3UcdMyI9KgTLMkNrcXKpC0owatVGCj1HUyeCn237Xn+f/Avavy/P8wtVMAAAAAElFTkSuQmCC",E2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAGCklEQVRYCYVXPY8cRRCtnt29s/EhW0KAEAkxmXUBIkBkRERwdoqFHNiW/AMwPwCJECTYEDKEnYJk4+ASIwQ6WSIjwJKNQBjO8t6Xb3dvZ5r3XlXPjIzX7rub7qmuqvfqo3v3ksXIH53fsJQvmOV1y3aqyJ8055x74sZyAys8EqS+hX2pcC9b3t6xPD/i/gSPrWxpvPrNjWt0QhvLV85/CU2AP3sQXEDmwEIiXkuKLw4sb5DnBgz/nWju9NL42Lc3LyZFbs3VZ0O7RusATrnmj0ceURMMg3JfYEVC+4dme4ctUe5Xls4MlfbQdYvHnnQ4m4N9KKVkmYiDyqzCX+C6VYArG65PcI3jq5Z3D7QsQYDEhSE8rLvGkudRbfZwDzwZSZAo69WR2ck1EAlbYLU6EAmcMrIk8dHAjP60R3+2XmHvqQ1XlBuC8ifA4Q+ZObL8cBcLuGGz4afoQ63LGl+wn4aM131I0fIpSJ42oNws6KmtMyEEVRzNa8vTmVUrgyBHfwhbme+DwY6s3YF7gY+lBErtqM9RIpQ8hCUbNkePDFHjICp96DBJjNgnMKoSEiFmkvHxRAKljllHDdGfPWeDd8+0RssWeTbFmf/b6p82rdn8TuDMVhKZx7LBkoBhaR/5FDAYo10QMY5O3VgNxoXQMuAiT6vHrHr1NRu9f85GF68QGqWAPQJp2CN1NKCOqhP6XwZ0aZAAvCpbWLAB0b/taHYnciwBw1AoONUnnsdSibfB66dt8cbb1vx40xKzTjHLESWhLUsmAoxQ+2DmelQEa8gpqXjme2Pn40uWD3CrjnAMkV8RxX56bs1OfHDZVk6/Ke3hW+/Y9NYPOsIJfhrcJ06A0bvD1rNH3kPhkjwGoLQCoP7ApZJWcIeJrQensu3v2v7Xn7Wa1YuvWLPAKSEYH0cLTA7u5UYPtHWRGSJGOK5EdNaMNaSH/tA1ipgSSoM/MEEBRCjv7VhzsOfKo5Wwhd99NGiEzblk2nuATUFmBBJWmXHBoBFd1hEgGOOuAMwf/ja4L3hbVmtrVqEXOOr7f8q0gY90iM+CdngW6HjoeHp2QCwqu5YdHKxbWy38pCR8KPiJAYfB0KqXXrbjGx+2qvOtW/CJXto9tLRoeA20/tyvLiIHLxdPP1rGKVbBr3g++elXZbl0rrfv2+x7fOTvPrJqhtuU4KHdD2qo1DPKsqvLhykqvcAz1G4uBexvzH/9xfa++MTyPw+swtnnFayysczhqs1Ax4ZpB1TR6Hnswy/u/W6HiEwnAGWKFpBdgzov7t2x+u5ddPxR15xQA7TK1XMrG2SgE1GJgyTaDOAY0VkZ9YNtm25e14VT0XGDCNnEPG6oM4n51VuuWQBTCJ+8V9Q1ESTXOAVINSPhoMPY1CvXIoAalkGwR1O9hTvZUVChy0icgH5SQEbY1ORgy/pwHJ4C+HNWWGBQsdGxxCLI9DhRRTo8+z4IFsThvUp4Q0CciOZazChe9FUqdMN6qGMUtHQSxIMGodEu/J0OSdhnX+s6jjRTKzETEWubXVhQ1hGCInwPWRfX7ZWCXiR3Im5EIQbUieWXkIv4ZN0LZ+nrhZBcADxwhNeZoQek6OmXPIBdB67guf7rD5vf/lmixZ3fPAr2Db+UoocIXgaBCihTTncdtaIIDd+wNL981lUk6BQadXe2xXRuNb731XErVgBNAGfDMQuBIIziVJBsLrgrMp/df5FxH1dxVxdFQSLBjjPTqT+ACZDvWFOmjpfPSLFkFEiIp8/+HutuW/b0OSmMSsNo1tEEKCJlivmFpCIhrKt+zltQEnIQzvKh1y7dkjMzpObBTfBxl7dEVMa8fl2BEYo5P8kierJl1RU/HQDAQQsIEZ0ErQuQXIe4aIiMpS1WdOyKYYLInSkB4mZzNnINDkSNElBXOP7AmpEX+5IFN4GcWQ0dylLK42r4+dVriHBs0XSQx5CKrwXooCFwYL3AMeYCGiJXgwvulqwK3bWZxvELN25fI4rG7NJ7G/jywf+Q13Ou9d+SosHnQDPZb69rAtFIgHSmX1JwmfaYBRdQypX0sTfB2xayKHDK/wNolX2UI+Wo7QAAAABJRU5ErkJggg==",zs="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAGLUlEQVRYCW1XTY9UVRCt19M9MwyiAxojRI1REImJRAfQhcSVGmJINMG9G5LRH+DOxJ0JP0BnpYlbMCYqGBciJmqIZiAsSARUUDQoYGjmo2emP97znFNVr3vUm+n76ladqjpV9973oLAYcyf6hwZlOVtVNmNWTVcQDH9lPLnGcr1Oa9cTRoD8KEoerstS3m1g5pe71dw7h6eP0b3g9O7x7ntwnKUsR4AzoQIymGzUU/DAFDlS53Il0qlTnABSJpHOGnzKau7IG1teL7zywVE6OJjoQnIGB1gEmEk4JQ0yAqWvP9PPn8DV/obkpQ1K4pClarzaZNs9OuEcnlyVY1UBzDEk586upUF/9ZJCFkM5Wi9df1B58iRkg9kmwDNKFoFSromMZmBzMPRYR4w6D+BEA5d4PJHTVteEkr/jihkQKKcVFEwC7wePieg10pG0J5BrVsuhp+SR7ZO/GStfQXKC3IczcDjszdpZQQiihlgXSu5BqKXhxDWDSRHY/9Ex/1qvtH5fIT00fWpsZc0S7KTjlEMALGSIR9hFbAQ7gD8H9byyVVVgnyskxY+x0y+6kddaPpianS69PcmGcQ9UHzw3iQcdkhDFPFxsrcf2ZNhSkTEQ4chO1nLk8u0FgayITFOJ7amvTlbAUlLO5PLRNPLCUtqiPkfJ3rsjY52Hrs2sHuFlzRZxlQmFcXOty+SRX77ug7nGupBFEkQ5zJKbXGTlmXy8ZfbwVp3PCJbtrez6rYHduxm84fjz731bXoGAxe5HWtr728ulbb6jIUI5sWM9HMRzP63VuZI43wNiNMpy01RhLz09kf7rnp9+t2J7do7b1rvHbP5C1z76umP7do3by/un7OT8ij32YMtmdv7Xd7FT2rlLIMBo4kypwBmI0yklbdAvLFV2/PSq5AP7JmxsrLCvzq4Zg1y93reb7YG9dmCjPbmjZafPN+z5PZN2a3FgX55ZtW1bxuzCr13b8UDL9u6atD9u9O3UmRXr4lZkh1UscnGNLXAm2ps4uWs9s/NXBqL64l4QgHTxas/+XvDXX3uxtLOXevbUo+N2+OAmG28VdvTzRet2K7v8Z99+uVbZxHgBAmbtpdJ++JFfH4XD5KKvK2uocnSh0tF3q5PxL5c8wond4X4y1klUxXvO5Feu9ez85R46Bgv/COCPI3R8oaW/Y/xcNWpsbIWS00/ew0lBY8lte+i+pjWxNRzb7mnaXTg3HCLBp1Y+1cRCqyIC0BDBTB6OTKDfaBTaAKa+iQvywt4NuAGlXfitqy4cfHZK4enivu6stdjzGxHvi4hFIg2COTJ4rl0nkybZASV6/xOTdufGhrbh41PL2ord2yds+zZcz4g39GRsj18zDCNj6sIqOJR8cngy7pGvQ6n1lk0Ne+bxCfsL74MzF7t2Ewfzm3Orgrzy3EYrsBN52t1P80jMOEcKzWuIJEoUCrYlB/Wf4d4z6GIHOBhaOHSffNuxazd6/j2A8ovvO7pu9JvCK2CxY9iann14YsFuLQ08OWxej8fPPMVb7y9Iw9ZNTfo+8YPCl0SCRBLp64aIpH/3l/Bu4A0qS7+iDJbb4P6O80JhHLEzXvx7wFkNQXCKTnhyuqENwcAZx+cXFrWcJGjHj3aHZnL6pw7PkBm76Szp6AB3pByB5Ip1EsKTATTok2v5cwoTA6UOqnXdFMavLTrgrfWlV5nJGYryuqAef0hIoBoiaJJ1/3BAhxRXb1vkxJZx6/xjFExjG+EBMEP9K7nI0FZXTfL8ZXCW5qW4PgqAVqE4YYx2Qy8iad2mgOTGEXjpXB5JBMjwuolu+DipoT99kojLDnRdA1esTUZM6RX6s24jnWFXQ4gbxbJy+KkiCIpDaMh08k5QiT/4JibIt/EmtPkaSBKkpwkPRNJHRCpXpt3JMoHDk3ztzK2iDVONYWwO6fEoivkGPmhzDgybql3PXD5wykoVFEpWUXeHQairq/QYo8Xw4HGt6oEtkLtxZBb/SxWJCAaDQmmKKpJU2JTL80HjeOpEUBrows6Htg2C5HSwau6Dt+8/5kcWyjfn2oemWgP8D7kxMygH00QziLd25E3HKBiqHvIy3oTkJ10IddsVIBK73AZ0vrBCyenzD7OyHHaTkJSSAAAAAElFTkSuQmCC",_2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAGkElEQVRYCZVXS2udRRh+Z+Y7zTFtk5iml7S1XpBW3HhJdVER0YUKikhtRNCFF5TYheLWjX/AlRuzcOnO/AXXIpiFG0URoUWq0KJpLb2eb8bned6ZcxLaCP1O5szMe33ey8z5Eqw+5czyKSt5Bdsli3vnRB6dB+k6lgV/2SVLsYJ1IE108pw23jf6plk6pWyEYOuhhNXwyPdrNBj4Vc689qXlQudm3QGoJS2t9GbX/8B6hOEgCpzROeexQ4EjHRTSsZ/IEXjjYV31ILuaHl3/MHjk/TdEaHEPxvTYkBzlq2Y3zrkzOWD0XNBJM+h7OmqOmyPOkmsgMvRDDaDYcoShFQqFMJRz2a4oIYbtFOgzQq40ykmLUNL0zoVkVJrmtM4OGNbgXCAzs0SdvBLxtUTDJd1dIyPD0+xC2HezKFa0QKXxqBmAtNEwsyFwVR9eW5kcOAWd53KSX4pANRfibjA7qgMEnXiEboB6oIYZ8R0A00iDeOi4OQM4lY00Aa3louaY5mup5zIXA1WQYndMJlHSMI1x8shCYhlEqWwH6ptJXb0Hqh6BKTuTyEGRXdqn7a6EnbCBVqiIZZBfAjJRFKw0a2V0ofJcxh1WueGDFhc/RtvcZ+HKT5bPfV5PEfjVXusDZQBgOjUYFkSmR7ItddUJJqWWWRj9gx2OpTLjdOmCF+//wkLnV4jNPm1xeK/1Py+jd27QEP5q9DLrPtBZ6MPKbChZ32JMPUd1rgzBCPulloV8zxzoO5+YOJcW9KaOmO1+EjtPdyvn5pm5B5+jatE4hqoNWpATp8EM+mWXDMpoPVa+ZpS3PgH3inULEJnUXmv6Aw3h07l2mDxiORKtRegArFu0MjyGXpweN1cDGP79zsqNP7cgKFd+Mbv2O474rLJD+5ujp++uaZChk1AJbhhQMq5jgCmocTr8KUpwl+WzV61c/FZZyrhUvD+GuNI/s7BwysKOQ1au/WblwtrYoXV7LfTXcLtfZujj0bErme7mvNWUWfBaUzxb3PeuhcT7ArIHTlu+hIjzZb+cEk4SLjLrL1r56ysWzUEBuHe727DBfrQNrvZ8E1Y8814CbPSppWjN5bTeytRRi7sel3N+xanDFuZfrWWAicE+2GuAGRBLWTPK7OkukCb6ASAkWwGo2SRMAUfejJUesUA5LbxB5pYnLryOfbIyWJA4v5Q90FgW+sjQLfhFVXZrf/HHjld76wdlwDveETnD1wSk6KePbnHOTZxaNNtzEg05lKPMIA68b/HY1xbnXxTNywobygiUiIo2cSpCGKg8AtDq3hQQNl4PMNCAac8r9HfbJy2chBxKhBH3v2Np/gVcKwNLix9Y2H3CecyCDhe/HEzARVMGe5WFSOfNMaPPPVFSFgqoV9z1mO9v852QmTL1gIWZpwD05S0S3eGPoI9jiw9tFf4EMxPVfEi4T9DUuoi8duRUMIicYOL880hV6+Mt9sebwf43bXDo9HjfFiENLR35pDomDHwULPGwN1CyHQhQkFgbDU5g6tNZmn2m2dt27maO43jyB+3WJ+18GC9ZL7kzOpSIl4L+GK5fxUI3YbCucebEtoZvdbU9pTv4tmVcYq2nVIoGBnHXDPAi4rHBrRdYJ9zRc89tb/UOOMxOd/A9aHhe+T6oNTMOmpqQDjWUCQji7k7TD92Bm/8XTeilsuMgfKC8uFvgRs656ASoOm73QRldsv7SDxaG90DQz8ikFblqg4aIna/tfJw+6dsql684T3XHEgBcBl0w+vUtvWixRkKI+rMU/egm5lE957xKUB798NChQnBL1OOzmcaoMhoM/nmKYoy4H/HyVyLWLi4A0MGbKH8YIKgLhYrsVl6faETPFZigwU+gRUWhN0kH4imEBYJinWkLkYHOtTsmSOjw5cfFuIU+3gnj9bMb6Po5Jlo/GrwsACJiUDoydtRtQIN0LjpYtERjmimLlcCTyHPODtcLBznIBkBRBU5rHORvENI6BciQIISYnqj3ZUaDCw1rvLspmoQoEgT4z1uCnA9Pd4IcR4QMdSjHwLCUHdpX6jETJIjrAFZWBZdMDAFhrZlGiFGZhqIG1jLMmUB0jjXzzabTnv9ZMnK3x5rTTguyZZq0kPNq5H+psA0QkgFCjwaT0FJwclVj0wSZ47bGTOBbmhNcOVYw7CsPSCo0A5/ds3+vSYb78uPxU31/cwUAlnLf490aDqqThppyPClthltlajyD54C9nNKvNggQvA3Q1lFOOD+/Rjv/AYfYvIrlGomFAAAAAElFTkSuQmCC",lu=a.defineComponent({name:"FChatAttachmentPreview",props:js,emits:[],setup(e){function t(s){switch(s.toLowerCase()){case"doc":case"docx":return v2;case"xlsx":case"xls":return C2;case"ppt":case"mobi":return E2;case"txt":return zs;case"png":case"jpg":case"jpeg":case"gif":return _2;default:return zs}}function n(s){return s.icon?s.icon:t(s.type||"")}function r(s){if(s===0)return"0 B";const c=1024,d=["B","KB","MB","GB"],f=Math.floor(Math.log(s)/Math.log(c));return parseFloat((s/Math.pow(c,f)).toFixed(2))+" "+d[f]}async function o(s){var c;(c=e.onOpen)==null||c.call(e,s)}async function u(s,c){s.stopPropagation(),s.preventDefault();const d=un(c);d&&await yu(d,c.name)}function i(s,c){const d=r(s.size||0),f=n(s),l=un(s);return a.createVNode("div",{key:c,class:"f-chat-attachment-preview-card"},[a.createVNode("div",{class:"f-chat-attachment-preview-card-inner"},[a.createVNode("div",{class:"f-chat-attachment-preview-main",role:"button",tabindex:0,onClick:()=>o(s),onKeydown:p=>p.key==="Enter"&&o(s)},[a.createVNode("div",{class:"f-chat-attachment-preview-icon-wrapper"},[a.createVNode("img",{src:f,alt:""},null)]),a.createVNode("div",{class:"f-chat-attachment-preview-info"},[a.createVNode("div",{class:"f-chat-attachment-preview-name",title:s.name},[s.name]),a.createVNode("div",{class:"f-chat-attachment-preview-meta"},[d&&a.createVNode("span",null,[d])])])]),l?a.createVNode("button",{type:"button",class:"f-chat-attachment-preview-download-btn","aria-label":"下载附件",title:"下载",onClick:p=>u(p,s)},[a.createVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[a.createVNode("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","stroke-linecap":"round","stroke-linejoin":"round"},null),a.createVNode("polyline",{points:"7 10 12 15 17 10","stroke-linecap":"round","stroke-linejoin":"round"},null),a.createVNode("line",{x1:"12",y1:"15",x2:"12",y2:"3","stroke-linecap":"round","stroke-linejoin":"round"},null)])]):null])])}return()=>{const s=e.content;if(!s)return null;const{message:c,attachments:d}=s;return a.createVNode("div",{class:"f-chat-attachment-preview"},[c&&a.createVNode("div",{class:"f-chat-attachment-preview-message"},[c]),a.createVNode("div",{class:"f-chat-attachment-preview-list"},[d.map((f,l)=>i(f,l))])])}}});lu.install=e=>{e.component(lu.name,lu)},pn.install=e=>{e.component(pn.name,pn)},mn.install=e=>{e.component(mn.name,mn)};const Do=a.defineComponent({name:"FXAgentThinkingMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content,n=t.streamStatus==="end"||t.streamStatus===void 0;return a.createVNode("details",{class:"f-ec-thinking",open:!0},[a.createVNode("summary",{class:"f-ec-thinking-summary"},[a.createTextVNode("思考过程"),n?null:a.createVNode("span",{class:"f-ec-thinking-badge"},[a.createTextVNode("进行中")])]),a.createVNode("div",{class:"f-ec-thinking-body"},[t.text]),t.sources&&t.sources.length>0?a.createVNode("ul",{class:"f-ec-thinking-sources"},[t.sources.map((r,o)=>a.createVNode("li",{key:o},[r]))]):null])}}});function F2(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function D2(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`#attachment:${encodeURIComponent(t)}`}function S2(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?{url:t}:{fileId:t}}const $s=a.defineComponent({name:"FXAttachmentFileMessage",props:{content:{type:Object,required:!0}},setup(e){const t=a.computed(()=>D2(e.content.media)),n=a.computed(()=>un(S2(e.content.media)));async function r(o){o.preventDefault(),o.stopPropagation();const u=n.value;u&&await yu(u,e.content.name)}return()=>{const o=!!n.value;return a.createVNode("div",{class:"f-ec-attach-row"},[a.createVNode("a",{class:"f-ec-attach f-ec-attach--stretch",href:t.value,target:"_blank",rel:"noopener noreferrer"},[a.createVNode("span",{class:"f-ec-attach-icon","aria-hidden":!0},[a.createTextVNode("📎")]),a.createVNode("span",{class:"f-ec-attach-body"},[a.createVNode("span",{class:"f-ec-attach-name"},[e.content.name]),a.createVNode("span",{class:"f-ec-attach-meta"},[a.createVNode("span",{class:"f-ec-attach-cat"},[e.content.category]),a.createVNode("span",{class:"f-ec-attach-size"},[F2(e.content.size)])])])]),o?a.createVNode("button",{type:"button",class:"f-ec-attach-download-btn","aria-label":"下载附件",title:"下载",onClick:r},[a.createVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[a.createVNode("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4","stroke-linecap":"round","stroke-linejoin":"round"},null),a.createVNode("polyline",{points:"7 10 12 15 17 10","stroke-linecap":"round","stroke-linejoin":"round"},null),a.createVNode("line",{x1:"12",y1:"15",x2:"12",y2:"3","stroke-linecap":"round","stroke-linejoin":"round"},null)])]):null])}}}),T2={0:"高",1:"中",2:"低"},Us=a.defineComponent({name:"ErrorReminderMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content.errorLevel;return a.createVNode("div",{class:["f-ec-error",`f-ec-error--lvl-${t}`]},[a.createVNode("div",{class:"f-ec-error-head"},[a.createVNode("span",{class:"f-ec-error-badge"},[T2[t]]),a.createVNode("span",{class:"f-ec-error-label"},[a.createTextVNode("错误提醒")])]),a.createVNode("div",{class:"f-ec-error-text"},[e.content.errorText]),e.content.errorLink?a.createVNode("a",{class:"f-ec-error-link",href:e.content.errorLink,target:"_blank",rel:"noopener noreferrer"},[a.createTextVNode("查看详情")]):null])}}}),So="{{suggestionText}}";function To(e,t){if(typeof e=="string")return e===So?t:e.includes(So)?e.split(So).join(t):e;if(Array.isArray(e))return e.map(n=>To(n,t));if(e!==null&&typeof e=="object"){const n={};for(const[r,o]of Object.entries(e))n[r]=To(o,t);return n}return e}function N2(e,t){var r;const n=(r=e.pickActions)==null?void 0:r[t];return n||e.pickActionDefault}const Hs=a.defineComponent({name:"InputRecommendMessage",props:{content:{type:Object,required:!0},onPick:{type:Function,default:void 0}},setup(e){const t=(n,r)=>{var u;const o=N2(e.content,r);if((o==null?void 0:o.sdk)==="AgentWorkbenchSDK"&&o.api){const i=To(o.params??[],n);Eo(o.api,i)}else Eo("sendChatMessage",[n]);(u=e.onPick)==null||u.call(e,n)};return()=>a.createVNode("div",{class:"f-ec-recommend"},[e.content.title?a.createVNode("div",{class:"f-ec-recommend-title"},[e.content.title]):null,a.createVNode("div",{class:"f-ec-recommend-chips"},[e.content.suggestions.map((n,r)=>a.createVNode("button",{key:r,type:"button",class:"f-ec-recommend-chip",onClick:()=>t(n,r)},[n]))])])}}),Gs=a.defineComponent({name:"LinkCardMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content;return a.createVNode("div",{class:"f-ec-linkcard"},[t.poster?a.createVNode("div",{class:"f-ec-linkcard-poster"},[a.createVNode("img",{src:t.poster,alt:""},null)]):null,a.createVNode("div",{class:"f-ec-linkcard-body"},[a.createVNode("a",{class:"f-ec-linkcard-title",href:t.url,target:"_blank",rel:"noopener noreferrer"},[t.title]),t.subtitle?a.createVNode("div",{class:"f-ec-linkcard-sub"},[t.subtitle]):null,t.relatedLinks&&t.relatedLinks.length>0?a.createVNode("div",{class:"f-ec-linkcard-related"},[a.createVNode("div",{class:"f-ec-linkcard-related-label"},[a.createTextVNode("相关阅读")]),a.createVNode("ul",null,[t.relatedLinks.map((n,r)=>a.createVNode("li",{key:r},[a.createVNode("a",{href:n.url,target:"_blank",rel:"noopener noreferrer"},[n.title])]))])]):null])])}}}),Ws=a.defineComponent({name:"ReferenceSourcesMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>a.createVNode("div",{class:"f-ec-sources"},[a.createVNode("div",{class:"f-ec-sources-title"},[a.createTextVNode("引用来源")]),a.createVNode("ul",{class:"f-ec-sources-list"},[e.content.items.map((t,n)=>a.createVNode("li",{key:n},[a.createVNode("a",{href:t.url,target:"_blank",rel:"noopener noreferrer"},[t.title])]))])])}}),jt="__hitl_other__";function or(e){const t=e??"text";return t==="text"||t==="select"||t==="multi_select"||t==="confirm"||t==="form"||t==="date"||t==="number"?t:"text"}const qs=a.defineComponent({name:"FXHitlQuestion",props:{content:{type:Object,required:!0},disabled:{type:Boolean,default:!1},onSubmitAnswers:{type:Function,default:void 0}},setup(e){const t=a.ref(!1),n=a.ref({}),r=a.ref({});function o(h){const b={},A={};for(const k of h){const g=or(k.ui_type);g==="confirm"?b[k.id]=k.default_value==="true"||k.default_value==="1":b[k.id]=k.default_value??"",A[k.id]={active:!1,text:""}}n.value=b,r.value=A}a.watch(()=>e.content.questions,h=>{Array.isArray(h)&&h.length&&o(h)},{immediate:!0});const u=a.computed(()=>{var h,b;if(t.value||e.disabled)return!1;for(const A of e.content.questions){const k=or(A.ui_type),g=n.value[A.id];if(k==="text"&&(typeof g!="string"||g.trim()==="")||k==="select"&&(typeof g!="string"||g.trim()===""||g===jt&&(((b=(h=r.value[A.id])==null?void 0:h.text)==null?void 0:b.trim())??"")==="")||k==="confirm"&&typeof g!="boolean")return!1}return!0});function i(h,b){n.value={...n.value,[h]:b}}function s(h,b){var A;b===jt?(r.value={...r.value,[h.id]:{...r.value[h.id],active:!0,text:((A=r.value[h.id])==null?void 0:A.text)??""}},i(h.id,jt)):(r.value={...r.value,[h.id]:{active:!1,text:""}},i(h.id,b))}function c(){var b,A,k;if(!u.value)return;const h=[];for(const g of e.content.questions){const y=or(g.ui_type);let w=n.value[g.id];y==="select"&&w===jt&&(w=((A=(b=r.value[g.id])==null?void 0:b.text)==null?void 0:A.trim())??""),h.push({id:g.id,answer:w})}t.value=!0,(k=e.onSubmitAnswers)==null||k.call(e,h)}function d(h){const b=n.value[h.id]??"";return a.createVNode("div",{class:"f-hitl-field",key:h.id},[h.header?a.createVNode("div",{class:"f-hitl-field__header"},[h.header]):null,a.createVNode("div",{class:"f-hitl-field__label"},[h.question]),a.createVNode("input",{class:"f-hitl-input",type:"text",value:b,placeholder:h.placeholder??"请输入",disabled:t.value||e.disabled,onInput:A=>i(h.id,A.target.value)},null)])}function f(h,b){const A=n.value[h.id]??"",k=r.value[h.id]??{active:!1,text:""};return a.createVNode("div",{class:"f-hitl-field",key:h.id},[h.header?a.createVNode("div",{class:"f-hitl-field__header"},[h.header]):null,a.createVNode("div",{class:"f-hitl-field__label"},[h.question]),a.createVNode("div",{class:"f-hitl-select-group"},[b.map(g=>a.createVNode("button",{key:g.label,type:"button",class:["f-hitl-opt",{"f-hitl-opt--active":A===g.label&&!k.active}],disabled:t.value||e.disabled,onClick:()=>s(h,g.label)},[a.createVNode("span",{class:"f-hitl-opt__label"},[g.label]),g.description?a.createVNode("span",{class:"f-hitl-opt__desc"},[g.description]):null])),h.allow_other?a.createVNode("button",{type:"button",class:["f-hitl-opt",{"f-hitl-opt--active":A===jt||k.active}],disabled:t.value||e.disabled,onClick:()=>s(h,jt)},[a.createTextVNode("其他")]):null]),h.allow_other&&(A===jt||k.active)?a.createVNode("input",{class:"f-hitl-input f-hitl-input--other",type:"text",value:k.text,placeholder:"请输入自定义内容",disabled:t.value||e.disabled,onInput:g=>{const y=g.target.value;r.value={...r.value,[h.id]:{active:!0,text:y}},i(h.id,jt)}},null):null])}function l(h){const b=n.value[h.id];return a.createVNode("div",{class:"f-hitl-field",key:h.id},[h.header?a.createVNode("div",{class:"f-hitl-field__header"},[h.header]):null,a.createVNode("div",{class:"f-hitl-field__label"},[h.question]),a.createVNode("div",{class:"f-hitl-confirm"},[a.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":b===!0}],disabled:t.value||e.disabled,onClick:()=>i(h.id,!0)},[a.createTextVNode("是")]),a.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":b===!1}],disabled:t.value||e.disabled,onClick:()=>i(h.id,!1)},[a.createTextVNode("否")])])])}function p(h){return a.createVNode("div",{class:"f-hitl-field f-hitl-field--unsupported",key:h.id},[a.createVNode("div",{class:"f-hitl-field__label"},[h.question]),a.createVNode("div",{class:"f-hitl-unsupported"},[a.createTextVNode("暂不支持 ui_type「"),String(h.ui_type),a.createTextVNode("」,请升级前端。")])])}function m(h){const b=or(h.ui_type);if(b==="text")return d(h);if(b==="select"){const A=Array.isArray(h.options)?h.options:[];return A.length===0?p({...h,ui_type:"text"}):f(h,A)}return b==="confirm"?l(h):p(h)}return()=>a.createVNode("div",{class:"f-hitl-card"},[a.createVNode("div",{class:"f-hitl-card__meta"},[a.createVNode("span",{class:"f-hitl-chip"},[a.createTextVNode("人机协同")])]),a.createVNode("div",{class:"f-hitl-card__body"},[e.content.questions.map(h=>m(h))]),a.createVNode("div",{class:"f-hitl-card__footer"},[a.createVNode("button",{type:"button",class:"f-hitl-submit",disabled:!u.value,onClick:c},[t.value?"已提交":"提交回答"])])])}}),Xs=a.defineComponent({name:"UnknownEnterpriseMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>a.createVNode("div",{class:"f-ec-unknown"},[a.createVNode("div",{class:"f-ec-unknown-title"},[a.createTextVNode("未知类型消息")]),e.content.wireType?a.createVNode("div",{class:"f-ec-unknown-wire"},[a.createTextVNode("wire type: "),e.content.wireType]):null,a.createVNode("div",{class:"f-ec-unknown-desc"},[e.content.hint??"客户端无法识别此消息类型,已按占位展示。"])])}}),O2=[Do,$s,Us,qs,Hs,Gs,Ws,qt,Xs,to];Do.install=e=>{for(const t of O2)e.component(t.name,t)};const L2={install(e){e.use(Tt).use(Xn).use(Zn).use(Qn).use(Jn).use(uu).use(ru).use(ou).use(iu).use(ln).use(Yt).use(yn).use(Wt).use(au).use(su).use(cu).use(lu).use(pn).use(mn)}};T.AgentWorkbenchSDK=Co,T.FXAgentThinking=Do,T.FXAppPreview=Tt,T.FXAttachmentFile=$s,T.FXAttachmentPreview=lu,T.FXBubble=Xn,T.FXBubbleAction=no,T.FXCarousel=Zn,T.FXCarouselItem=Wu,T.FXChatPreview=Qn,T.FXCoding=uu,T.FXConfirmDialog=Jn,T.FXDynamicComponent=mn,T.FXErrorReminder=Us,T.FXFileOperation=ru,T.FXGenerateProcess=ou,T.FXHistory=iu,T.FXHitlQuestion=qs,T.FXInputRecommend=Hs,T.FXLinkCard=Gs,T.FXMarkdown=ln,T.FXMarkdownPreview=Yt,T.FXPrompt=rr,T.FXPrompts=yn,T.FXReferenceSources=Ws,T.FXStartedTodo=Wt,T.FXSuggestion=au,T.FXTodo=su,T.FXTodoListItemView=Gu,T.FXTodoListView=qn,T.FXToolUse=qt,T.FXUnknownEnterprise=Xs,T.FXUserAuth=to,T.FXWelcome=cu,T.FXWidgetContainer=pn,T.PREVIEW_BRIDGE_MESSAGE_TYPE_ASSISTANT=ko,T.PREVIEW_BRIDGE_SOURCE=Ao,T.PREVIEW_BRIDGE_VERSION=wo,T.appPreviewMessageProps=Gt,T.attachmentPreviewProps=js,T.bubbleActionProps=Ca,T.bubbleProps=Ho,T.carouselItemProps=_a,T.carouselProps=Ea,T.chatHistoryProps=Ls,T.chatPreviewProps=Fa,T.clonePreviewPayloadForPostMessage=ds,T.codingMessageProps=Ss,T.confirmDialogProps=ys,T.createPreviewIframeSdk=Fh,T.default=L2,T.extractFileIdFromRuntimeDownloadUrl=Go,T.fileOperationMessageProps=Ns,T.generateProcessProps=Os,T.getCustomClass=Se,T.getCustomStyle=Te,T.invokeAgentWorkbenchSdkApi=Eo,T.isImageUrl=Wo,T.isPreviewBridgeAssistantMessage=hs,T.loadDynamicComponent=ya,T.markdownMessageProps=Ki,T.markdownPreviewProps=Da,T.postAssistantViaAgentWorkbenchSDK=vo,T.promptProps=Ms,T.promptsProps=Is,T.registerPreviewChromeSdk=Ah,T.renderIconNode=xu,T.renderNode=Tn,T.resolveHrefForAttachmentDownload=un,T.resolveRuntimeAttachmentDownloadUrl=gr,T.sendChatMessageViaAgentWorkbenchSDK=ms,T.startedTodoProps=wa,T.subscribeAssistantViaAgentWorkbenchSDK=gs,T.suggestionProps=Ps,T.todoListItemProps=va,T.todoListViewProps=ka,T.todoProps=Vs,T.triggerAttachmentDownload=yu,T.unloadDynamicComponent=xa,T.useSequentialStreaming=Au,T.useStreamingOutput=qo,T.useTimer=br,T.welcomeProps=Bs,T.widgetContainerProps=ga,Object.defineProperties(T,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});