@farris/x-ui 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- (function(R,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(R=typeof globalThis<"u"?globalThis:R||self,i(R.FarrisX={},R.vue))})(this,function(R,i){"use strict";var w2=Object.defineProperty;var lc=R=>{throw TypeError(R)};var x2=(R,i,ye)=>i in R?w2(R,i,{enumerable:!0,configurable:!0,writable:!0,value:ye}):R[i]=ye;var fe=(R,i,ye)=>x2(R,typeof i!="symbol"?i+"":i,ye),mi=(R,i,ye)=>i.has(R)||lc("Cannot "+ye);var A=(R,i,ye)=>(mi(R,i,"read from private field"),ye?ye.call(R):i.get(R)),ie=(R,i,ye)=>i.has(R)?lc("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(R):i.set(R,ye),re=(R,i,ye,at)=>(mi(R,i,"write to private field"),at?at.call(R,ye):i.set(R,ye),ye),Q=(R,i,ye)=>(mi(R,i,"access private method"),ye);var zu=(R,i,ye,at)=>({set _(Lr){re(R,i,Lr,ye)},get _(){return A(R,i,at)}});var $l,Ft,Tn,Ul,Wl,it,Qe,ft,an,ht,Nn,In,mt,Ee,pt,ve,he,ue,$e,Je,Re,Te,gt,Ne,bt,yt,et,tt,wt,qt,Ue,On,q,pi,sn,Lt,Fr,nt,cc,ln,Ln,Tr,Yt,Kt,gi,ju,Hu,me,bi,Or,Qt,yi,Vn;const ye={content:{type:Object,required:!0},onOpen:{type:Function,default:void 0}},at=i.defineComponent({name:"AppPreviewMessage",props:ye,setup(e){const t=i.ref(!1);function n(){var h;const a=(h=e.content)==null?void 0:h.appConfig;if(!a)return"";const s=a.ws??"",l=a.appPath??"",d=a.appObjectId??"";return`${a.appBuilderUri??"/apps/platform/development-platform/ide/app-builder/index.html"}?path=${l}&boId=${d}&ws=${s}&version=2.0#/home`}function r(){var s,l;const a=(s=e.content)==null?void 0:s.previewConfig;a&&e.onOpen&&e.onOpen({...a,title:a.title??((l=e.content)==null?void 0:l.appName)})}function o(a){const s=a.target;s!=null&&s.closest(".f-chat-app-preview-open-btn")||a.preventDefault()}function u(a){a.stopPropagation();const s=n();s&&window.open(s,"_blank")}return()=>{const a=e.content;if(!a)return null;const{message:s,appName:l,createdDatetime:d}=a;return i.createVNode("div",{class:"f-chat-message-app-preview"},[i.createVNode("div",{class:"f-chat-app-preview-message"},[s]),i.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()},[i.createVNode("div",{class:"f-chat-app-preview-card-left"},[i.createVNode("span",{class:"f-chat-app-preview-icon"},[i.createVNode("i",{class:"fx-icon fx-icon-bubble_star"},null)])]),i.createVNode("div",{class:"f-chat-app-preview-card-middle"},[i.createVNode("div",{class:"f-chat-app-preview-app-name"},[l]),i.createVNode("div",{class:"f-chat-app-preview-datetime"},[d])]),i.createVNode("div",{class:"f-chat-app-preview-card-right"},[i.createVNode("div",{class:"f-chat-app-preview-action-area"},null),t.value&&i.createVNode("button",{type:"button",class:"f-chat-app-preview-open-btn",onClick:u,title:"在新页签中打开","aria-label":"在新页签中打开"},[i.createVNode("i",{class:"fx-icon fx-icon-folder-open"},null)])])])])}}});at.install=e=>{e.component(at.name,at)};const Lr={content:{type:Object,required:!0},outputMode:{type:String,default:"streaming"},classNames:{type:Object,default:()=>({})},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],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},onShowDynamicComponent:{type:Function,default:void 0},attachmentRowClickOpensPreview:{type:Boolean,default:!0},attachmentShowDownload:{type:Boolean,default:!0},role:{type:String,default:"assistant"}},$u={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},dc="/api/runtime/attachment";function fc(){try{const e=$u==null?void 0:$u.VITE_ATTACHMENT_API_BASE;if(typeof e=="string"&&e.trim()!=="")return e.replace(/\/+$/,"")}catch{}return""}function hc(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 mc(e){return`${dc}/${encodeURIComponent(e)}/download`}function Uu(e){const t=String(e??"").trim();if(!t)return"";const n=mc(t),r=fc();return r?`${r}${n}`:n}function wi(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 xi(e){return String(e??"").replace(/[/\\]/g,"_").trim()||"download"}function pc(e){if(!e)return null;const t=/filename\*=UTF-8''([^;]+)|filename="([^"]+)"|filename=([^;]+)/i.exec(e),n=(t==null?void 0:t[1])??(t==null?void 0:t[2])??(t==null?void 0:t[3]);if(!n)return null;try{return decodeURIComponent(n.trim())}catch{return n.trim()}}function vi(e){const t=hc(e);if(typeof window>"u")return t;try{const n=new URL(t);if(n.origin!==window.location.origin&&n.pathname.startsWith("/api/"))return`${n.pathname}${n.search}${n.hash}`}catch{}return t}function gc(e,t){const n=URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=xi(t),r.rel="noopener noreferrer",r.style.display="none",document.body.appendChild(r),r.click(),r.remove(),URL.revokeObjectURL(n)}function bc(e){const t=document.createElement("a");t.href=vi(e),t.rel="noopener noreferrer",t.style.display="none",document.body.appendChild(t),t.click(),t.remove()}function dn(e){const t=String(e.fileId??"").trim();if(t)return Uu(t);const n=String(e.url??"").trim();if(!n)return;const r=wi(n);if(r)return Uu(r);if(n.startsWith("http://")||n.startsWith("https://")||n.startsWith("/"))return n}async function Vr(e,t){const n=xi(t),r=vi(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(),a=pc(o.headers.get("Content-Disposition"))??n;gc(u,a)}catch{bc(e)}}function we(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 Ce(e,t){return t&&(typeof t=="string"?t.split(";").filter(Boolean).forEach(r=>{var u,a;const o=r.split(":");if(o.length>=2&&((u=o[0])!=null&&u.trim())&&((a=o[1])!=null&&a.trim())){const s=o[0].trim(),l=o.slice(1).join(":").trim();e[s]=l}}):typeof t=="object"&&Object.entries(t).forEach(([n,r])=>{n&&r!==void 0&&r!==null&&(e[n]=r)})),e}function zn(e){return e||null}function Ai(e){return e?/\.(jpg|jpeg|png|gif|svg|webp|bmp|ico)$/i.test(e)||e.startsWith("http")||e.startsWith("data:image"):!1}function Pr(e){return e?typeof e!="string"?e:Ai(e)?i.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="fx-icon fx-icon-warning"></i>'}}):e.includes("fx-icon")||e.includes("icon-")?i.h("i",{class:e}):e:null}function ki(e,t,n,r={}){const{charInterval:o=30}=r,u=i.ref({});let a=[],s=new Set;const l=()=>typeof t=="function"?t():t.value,d=()=>typeof n=="function"?n():n.value,f=()=>{a.forEach(m=>clearInterval(m)),a=[]},c=()=>{f(),u.value={},s.clear()},h=()=>{f(),u.value={},s.clear()},p=()=>{const m=e();if(!m||Object.keys(m).length===0){u.value={};return}if(!d()){u.value={...m},s=new Set(Object.keys(m));return}const v=Object.keys(m);v.forEach(b=>{u.value.hasOwnProperty(b)||(u.value[b]="")});const x=v.filter(b=>!s.has(b));if(x.length===0)return;let y=0;const g=()=>{var S;if(y>=x.length)return;const b=x[y],w=m[b];if(!w){s.add(b),y++,g();return}let k=((S=u.value[b])==null?void 0:S.length)||0;const F=setInterval(()=>{k<w.length?(u.value={...u.value,[b]:w.slice(0,k+1)},k++):(clearInterval(F),a=a.filter(E=>E!==F),s.add(b),y++,g())},o);a.push(F)};g()};return i.watch(()=>e(),()=>{l()&&p()},{immediate:!0}),i.watch(n,()=>{h(),l()&&p()}),i.watch(t,m=>{m?p():c()}),i.onMounted(()=>{l()&&p()}),{displayContent:u}}function Rr(){const e=i.reactive({}),t=[],n=i.ref(null);let r=null;const o=30,u=m=>{const v=e[m];return!v||v.displayedLength>=v.rawValue.length},a=i.computed(()=>Object.keys(e).length===0?!1:Object.keys(e).every(m=>u(m))),s=()=>{for(const m of t)if(!u(m))return m;return null},l=()=>{if(!n.value&&(n.value=s(),!n.value)){d();return}const m=e[n.value];m&&(m.displayedLength<m.rawValue.length?(m.displayedLength++,m.displayedValue=m.rawValue.slice(0,m.displayedLength),m.isStreaming=!0):(m.isStreaming=!1,m.displayedValue=m.rawValue,n.value=s(),n.value||d()))},d=()=>{r&&(clearInterval(r),r=null)},f=()=>{r||(r=setInterval(l,o))},c=()=>{d(),Object.keys(e).forEach(m=>{delete e[m]}),t.length=0,n.value=null},h=(m,v)=>{if(e[m]){p(m,v);return}t.push(m),e[m]={rawValue:v??"",displayedLength:0,isStreaming:!1,displayedValue:""},r||(!n.value||n.value===m)&&f()},p=(m,v)=>{const x=e[m];if(!x){h(m,v);return}x.rawValue=v??"",!r&&!u(m)&&(!n.value||n.value===m)&&f()};return i.onUnmounted(()=>{d()}),{propertyStates:e,currentProperty:n,get isAnyStreaming(){return Object.values(e).some(m=>m.isStreaming)},isAllDone:a,startStreaming:f,reset:c,registerProperty:h,updatePropertyValue:p}}function Wu(){const e=i.ref(null),t=i.ref(0),n=i.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}}}const yc={read_file:"tool_file",write_file:"tool_file",edit_file:"tool_file",glob:"tool_file",grep:"tool_file",bash:"tool_command",web_fetch:"tool_internet",web_search:"tool_internet",todo_create:"tool_task",todo_list:"tool_task",todo_get:"tool_task",todo_update:"tool_task",ask_user:"tool_interaction",core_memory:"tool_memory",add_daily_note:"tool_memory",lint_json:"dateselect",lint_markdown:"dateselect",output_validation:"dateselect",load_skill_through_path:"tool_mcp"};function wc(e){return e?e.startsWith("mcp:")?"tool_mcp":yc[e]??"thinking_tool":"thinking_tool"}function Gu(){return{getToolIconClass:wc}}function xc(e){return e.scrollWidth>e.clientWidth}function Ci(){xc(this)?this.title=this.textContent??"":this.removeAttribute("title")}function Ei(){this.removeAttribute("title")}const _i={mounted(e){e.addEventListener("mouseenter",Ci),e.addEventListener("mouseleave",Ei)},updated(e){e.removeAttribute("title")},unmounted(e){e.removeEventListener("mouseenter",Ci),e.removeEventListener("mouseleave",Ei)}};function vc(e,t){const n=i.computed(()=>{var o;return Ce({},(o=e.styles)==null?void 0:o.header)});function r(){return t.slots.header&&i.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:n.value},[t.slots.header()])}return{renderHeader:r}}function Ac(e,t){var u;const n=i.ref(((u=e.content)==null?void 0:u.sender)??"发送人"),r=i.computed(()=>{var a;return Ce({},(a=e.styles)==null?void 0:a.header)});function o(){return i.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:r.value},[n.value])}return{renderHeader:o}}const Si={file:{type:Object,required:!0},customStyle:{type:Object,default:()=>({})},onPreviewFile:{type:Function,default:void 0},onBatchPreviewFile:{type:Function,default:void 0}},kc={role:{type:String,default:"assistant"},attachments:{type:Array,default:()=>[]},enableBatchPreview:{type:Boolean,default:!1},enableFixedWidth:{type:Boolean,default:!1},showDownloadButton:{type:Boolean,default:!0},onPreview:{type:Function,default:void 0},onBatchPreview:{type:Function,default:void 0}};function Cc(){return{getFileIcon:(o,u="file-type-")=>o?`${u}${{pdf:"pdf",doc:"doc",docx:"doc",xls:"xls",xlsx:"xls",csv:"xls",ppt:"ppt",pptx:"ppt",txt:"txt",zip:"zip",rar:"zip",image:"img",img:"img",md:"md",audio:"any"}[o.toLowerCase()]||"any"}`:`${u}any`,formatFileName:o=>(o==null?void 0:o.replace(/\.[^.]+$/,""))??"",formatFileSize:o=>o<1024?o+" B":o<1048576?(o/1024).toFixed(1)+" KB":(o/1048576).toFixed(1)+" MB",formatFileTime:o=>{const u=new Date(o),a=u.getFullYear(),s=String(u.getMonth()+1).padStart(2,"0"),l=String(u.getDate()).padStart(2,"0");return`${a}-${s}-${l}`}}}function Jt({status:e,variant:t=""}){let n="";return t?n=`f-chat-todo-status-icon f-chat-todo-status-${e.toLowerCase()} variant--${t.toLowerCase()} `:n=`f-chat-todo-status-icon f-chat-todo-status-${e.toLowerCase()}`,i.createVNode("span",{class:n,"aria-hidden":!0},null)}const Di=i.defineComponent({name:"FXBubbleAttachment",props:kc,emits:["preview","batchPreview"],setup(e,t){const n=i.computed(()=>e.attachments??[]),r=i.computed(()=>{var y;return((y=n.value)==null?void 0:y.length)>0}),{formatFileName:o,formatFileSize:u,formatFileTime:a,getFileIcon:s}=Cc(),l=i.computed(()=>({"f-chat-bubble-attachment-info":!0,"f-utils-fill":e.enableFixedWidth})),d=i.computed(()=>({"f-chat-bubble-attachment-name":!0,"name-tip":e.enableFixedWidth}));function f(y,g){g.pending||t.emit("preview",g)}async function c(y,g){y.stopPropagation(),y.preventDefault();const b=dn(g);b&&await Vr(b,g.name)}function h(y){y.stopPropagation(),y.preventDefault(),t.emit("batchPreview",n.value)}function p(y){switch(y.toLowerCase()){case"doc":case"docx":return"Word";case"xlsx":case"xls":return"Excel";case"ppt":case"pptx":return"PPT";case"txt":return"txt";case"png":case"jpg":case"jpeg":return"Image";case"pdf":return"PDF";case"md":return"Markdown";default:return""}}function m(y){if(!y)return null;const g=p(y.type);return i.createVNode("div",{class:"file-info f-utils-fill"},[i.createVNode("span",{class:"file-name",title:y.name},[y.name]),i.createVNode("div",{class:"file-info-footer"},[i.createVNode("span",{class:`file-icon ${s(y.type)}`},null),g&&i.createVNode(i.Fragment,null,[i.createVNode("span",{class:"file-type"},[p(y.type)])]),y.size&&i.createVNode(i.Fragment,null,[i.createVNode("div",{class:"file-info-divider"},null),i.createTextVNode(" "),i.createVNode("span",{class:"file-size"},[u(y.size)])])])])}function v(y,g){console.log("attachment"+y.pending);const b=dn(y);return i.createVNode("div",{class:"f-chat-bubble-attachment-item "+s(y.type,"attachment-type-")+(y.pending?" status-working":""),key:g,onClick:w=>f(w,y)},[i.createVNode("div",{class:"f-chat-bubble-attachment-main",role:"presentation"},[i.createVNode("div",{class:l.value},[i.createVNode("span",{class:"f-chat-bubble-attachment-icon file-icon "+s(y.type)},null),i.createVNode("span",{class:d.value,title:y.name},[o(y.name)]),y.pending===!0&&i.createVNode("div",{class:"f-chat-bubble-attachment-status status-working"},[i.createVNode(Jt,{status:"Working",variant:"attachment"},null),i.createTextVNode(" 生成中")]),y.timestamp?i.createVNode("span",{class:"f-chat-bubble-attachment-text"},[i.createTextVNode("创建时间:"),a(y.timestamp)]):null])]),e.showDownloadButton!==!1&&b?i.createVNode("button",{type:"button",class:"f-chat-bubble-attachment-download-btn","aria-label":"下载附件",title:"下载",onClick:w=>c(w,y)},[i.createVNode("i",{class:"fx-icon fx-icon-sidewindow_download","aria-hidden":"true"},null)]):null])}function x(y,g){return i.createVNode("div",{class:"f-chat-bubble-attachment-toast",key:g},[m(y)])}return()=>r.value?i.createVNode("div",{class:{"f-chat-bubble-attachments":!0,"attachments-toast":e.role==="user"}},[n.value.map((y,g)=>e.role==="user"?x(y,g):v(y,g)),e.enableBatchPreview&&i.createVNode("div",{class:"f-chat-bubble-attachment-preview-btn",onClick:h},[i.createVNode("span",{class:"f-chat-bubble-attachment-preview-btn-text"},[i.createTextVNode("查看全部文件")]),i.createVNode("i",{class:"fx-icon fx-icon-sort-asc-sm",style:{transform:"rotate(90deg)"}},null)])]):null}}),Fi=i.defineComponent({name:"FXBubbleFileContentFooter",props:Si,setup(e,t){const n=i.computed(()=>e.file?Array.isArray(e.file)?[...e.file]:[e.file]:[]);return Ce({},e.customStyle),()=>i.createVNode(Di,{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)}}),Ec={pageUrl:{type:String,required:!0},customStyle:{type:Object,default:()=>({})},onNavigate:{type:Function,default:void 0}},_c=i.defineComponent({name:"FXBubblePageContentFooter",props:Ec,setup(e,t){const n=i.ref(),r=i.computed(()=>{var a,s;const u={width:"100%",height:"100%",border:"none"};return(a=e.customStyle)!=null&&a.width&&(u.width=e.customStyle.width),(s=e.customStyle)!=null&&s.height&&(u.height=`${e.customStyle.height}px`),u}),o=u=>{var a,s;((a=u.data)==null?void 0:a.type)==="navigation"&&((s=u.data)!=null&&s.url)&&e.onNavigate&&e.onNavigate(u.data.url)};return i.onMounted(()=>{window.addEventListener("message",o)}),i.onUnmounted(()=>{window.removeEventListener("message",o)}),()=>i.createVNode("iframe",{ref:n,src:e.pageUrl,style:r.value,scrolling:"auto"},null)}});function Ti(){function e(o,u){const{fileContent:a,height:s,width:l}=o;return{file:a,customStyle:{width:l||"100%",height:s||"100%"},onPreviewFile:u==null?void 0:u.onPreviewFile,onBatchPreviewFile:u==null?void 0:u.onBatchPreviewFile}}function t(o,u){const{pageUrl:a,height:s,width:l}=o;return{pageUrl:a,customStyle:{width:l||"100%",height:s||"100%"},onNavigate:u==null?void 0:u.onNavigate}}function n(o,u){const a=e(o,u);return i.h(Fi,a)}function r(o,u){const a=t(o,u);return i.h(_c,a)}return{renderFileEmbeddedContent:n,renderPageEmbeddedContent:r}}const Sc={title:{type:String,default:""},subtitle:{type:String,default:""},text:{type:String,default:""},textFormat:{type:String,default:"plain"},placement:{type:String,default:"start"},onDynamicComponentsDetected:{type:Function,default:void 0},onShowDynamicComponent:{type:Function,default:void 0}},Xu="assistant-widget",st="```";function jn(e,t){let n=t;for(;n<e.length&&/\s/.test(e[n]);)n+=1;return n}function Ni(e,t){let n=t;for(;n<e.length&&/[a-zA-Z0-9-]/.test(e[n]);)n+=1;return{lang:e.slice(t,n),next:n}}function Ii(e){const t=e.toLowerCase();return t.length===0||t.length>Xu.length?!1:Xu.startsWith(t)}function Dc(e){return e.toLowerCase()===Xu}function Fc(e,t){let n=0;for(;n<t;){const r=e.indexOf(st,n);if(r===-1||r>=t)break;let o=r+st.length;o=jn(e,o);const{lang:u}=Ni(e,o);if(u.length>0)return!0;n=r+st.length}return!1}function Oi(e,t){if(!e.startsWith(st,t))return null;let n=t+st.length;n=jn(e,n);const{lang:r,next:o}=Ni(e,n);return r.length===0?e.slice(o).trim().length===0?Fc(e,t)?null:{fenceStart:t,bodyStart:o,langComplete:!1}:null:Ii(r)?(n=jn(e,o),{fenceStart:t,bodyStart:n,langComplete:Dc(r)}):null}function qu(e,t=0){const n=jn(e,t);return Oi(e,n)}function Tc(e,t,n){if(t<n)return!1;const r=e.slice(t+st.length);return r.length===0?!0:r.startsWith("`")?!1:(/^\s*[\r\n]/.test(r)||/^\s*$/.test(r),!0)}function Mr(e,t){let n=t;for(;n<=e.length;){const r=e.indexOf(st,n);if(r===-1)return-1;if(Tc(e,r,t))return r;n=r+1}return-1}function Nc(e){const t=qu(e,0);if(!(t!=null&&t.langComplete))return null;const n=Mr(e,t.bodyStart);return n===-1?null:e.slice(t.bodyStart,n).trim()}function Li(e){return e.replace(/```\s*assistant-widget\s*/gi,"``` assistant-widget\n")}function Ic(e){const t=e.match(/^\s*```\s*([a-zA-Z0-9-]*)$/);return t?Ii(t[1]??""):!1}function Oc(e,t){let n=t;for(;n<e.length;){const r=e.indexOf(st,n);if(r===-1)return null;const o=Oi(e,r);if(o)return{fenceIdx:r,open:o};n=r+st.length}return null}function Vi(e){if(!e)return!1;const t=qu(e,0);if(!(t!=null&&t.langComplete))return!1;const n=Mr(e,t.bodyStart);return n===-1?!1:jn(e,n+st.length)>=e.length}function Lc(e){if(!e)return!1;if(Vi(e)||Ic(e))return!0;const t=qu(e,0);return t?t.langComplete?Mr(e,t.bodyStart)===-1:!0:!1}function Vc(e){if(!e)return[];const t=[];let n=0;for(;n<e.length;){const r=Oc(e,n);if(!r){const l=e.slice(n);l&&t.push(l);break}const{fenceIdx:o,open:u}=r;if(o>n&&t.push(e.slice(n,o)),!u.langComplete){t.push(e.slice(o));break}const a=Mr(e,u.bodyStart);if(a===-1){t.push(e.slice(o));break}const s=a+st.length;t.push(Li(e.slice(o,s))),n=s}return t.filter(r=>r.trim().length>0)}function Pi(e){const t=Nc(Li(e.trim()));if(t==null||t==="")return null;try{return JSON.parse(t)}catch(n){return console.error("Failed to parse JSON:",n),null}}function Pc(e){var n;const t=Pi(e);return((n=t==null?void 0:t.renderer)==null?void 0:n.widgetImplOptions)||{}}const Rc=/^```\s*dynamic-component\b[\s\S]*?```$/,Mc=/^```\s*dynamic-component\b/,Bc=/^```\s*dynamic-component\b\s*/,zc=/\s*```\s*$/;function jc(e){return e.replace(/```\s*dynamic-component\b/g,"``` dynamic-component")}function Ri(e){return e.replace(Bc,"").replace(zc,"").trim()}function Hc(e,t){let n=t;for(;n<e.length;){const r=e.indexOf("```",n);if(r<0)return null;const u=e.slice(r+3).match(/^\s*dynamic-component\b/);if(u)return{fenceStart:r,contentStart:r+3+u[0].length};n=r+3}return null}function $c(e){return e?Rc.test(e)||Mc.test(e):!1}function Uc(e){const t=Ri(e);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.instanceId!="string"?null:{...r,instanceId:r.instanceId,name:typeof r.name=="string"?r.name:void 0,componentId:typeof r.componentId=="string"?r.componentId:void 0,jsUrl:typeof r.jsUrl=="string"?r.jsUrl:"",url:typeof r.url=="string"?r.url:"",title:typeof r.title=="string"?r.title:"预览",position:r.position==="inline"?"inline":"right",width:typeof r.width=="string"?r.width:void 0,isFullscreen:typeof r.isFullscreen=="boolean"?r.isFullscreen:!1,autoOpen:typeof r.autoOpen=="boolean"?r.autoOpen:!1,fileRe:typeof r.fileRe=="string"?r.fileRe:void 0,target:r.target==="preview"||r.target==="previewExtra"?r.target:r.renderArea==="previewExtra"?"previewExtra":r.renderArea==="preview"?"preview":void 0}}function Wc(e){const t=Ri(e);if(!t)return null;const n=t.match(/"position"\s*:\s*"(inline|right)"/);return n?{position:n[1]}:null}function Gc(e){if(!e)return[];const t=[];let n=0;for(;n<e.length;){const r=Hc(e,n);if(!r){const l=e.slice(n);l&&t.push(l);break}const o=e.slice(n,r.fenceStart);o&&t.push(o);const u=e.indexOf("```",r.contentStart);if(u===-1){t.push(e.slice(r.fenceStart));break}const a=u+3,s=e.slice(r.fenceStart,a);t.push(jc(s)),n=a}return t.filter(r=>r.length>0)}var Ve=(e=>(e.Text="text",e.FlowUIComplete="flowui-complete",e.AssistantWidgetComplete="assistant-widget-complete",e.AssistantWidgetPending="assistant-widget-pending",e.DynamicComponentComplete="dynamic-component-complete",e.DynamicComponentPending="dynamic-component-pending",e))(Ve||{});function Xc(e){var o;if(!e)return[];const t=[],n=new Set,r=Vc(e);for(const u of r)if(Lc(u))if(Vi(u)){const a=Pi(u);t.push({type:Ve.AssistantWidgetComplete,raw:u,widgetData:a,widgetUrl:(o=a==null?void 0:a.renderer)==null?void 0:o.url,widgetImplOptions:Pc(u)})}else t.push({type:Ve.AssistantWidgetPending,raw:u});else{const a=Gc(u);for(const s of a)if($c(s))if(s.endsWith("```")){const l=Uc(s);if(l!=null&&l.instanceId){if(n.has(l.instanceId))continue;n.add(l.instanceId),t.push({type:Ve.DynamicComponentComplete,raw:s,config:l})}}else{const l=Wc(s);t.push({type:Ve.DynamicComponentPending,raw:s,position:(l==null?void 0:l.position)??null})}else s.trim()&&t.push({type:Ve.Text,raw:s})}return t}const Mi={};function qc(e){let t=Mi[e];if(t)return t;t=Mi[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 fn(e,t){typeof t!="string"&&(t=fn.defaultChars);const n=qc(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let o="";for(let u=0,a=r.length;u<a;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<a){const l=parseInt(r.slice(u+4,u+6),16);if((l&192)===128){const d=s<<6&1984|l&63;d<128?o+="��":o+=String.fromCharCode(d),u+=3;continue}}if((s&240)===224&&u+6<a){const l=parseInt(r.slice(u+4,u+6),16),d=parseInt(r.slice(u+7,u+9),16);if((l&192)===128&&(d&192)===128){const f=s<<12&61440|l<<6&4032|d&63;f<2048||f>=55296&&f<=57343?o+="���":o+=String.fromCharCode(f),u+=6;continue}}if((s&248)===240&&u+9<a){const l=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((l&192)===128&&(d&192)===128&&(f&192)===128){let c=s<<18&1835008|l<<12&258048|d<<6&4032|f&63;c<65536||c>1114111?o+="����":(c-=65536,o+=String.fromCharCode(55296+(c>>10),56320+(c&1023))),u+=9;continue}}o+="�"}return o})}fn.defaultChars=";/?:@&=+$,#",fn.componentChars="";const Bi={};function Zc(e){let t=Bi[e];if(t)return t;t=Bi[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 Hn(e,t,n){typeof t!="string"&&(n=t,t=Hn.defaultChars),typeof n>"u"&&(n=!0);const r=Zc(t);let o="";for(let u=0,a=e.length;u<a;u++){const s=e.charCodeAt(u);if(n&&s===37&&u+2<a&&/^[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<a){const l=e.charCodeAt(u+1);if(l>=56320&&l<=57343){o+=encodeURIComponent(e[u]+e[u+1]),u++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[u])}return o}Hn.defaultChars=";/?:@&=+$,-_.!~*'()#",Hn.componentChars="-_.!~*'()";function Zu(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 Br(){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 Yc=/^([a-z0-9.+-]+:)/i,Kc=/:[0-9]*$/,Qc=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Jc=["<",">",'"',"`"," ","\r",`
2
- `," "],ed=["{","}","|","\\","^","`"].concat(Jc),td=["'"].concat(ed),zi=["%","/","?",";","#"].concat(td),ji=["/","?","#"],nd=255,Hi=/^[+a-z0-9A-Z_-]{0,63}$/,rd=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,$i={javascript:!0,"javascript:":!0},Ui={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Yu(e,t){if(e&&e instanceof Br)return e;const n=new Br;return n.parse(e,t),n}Br.prototype.parse=function(e,t){let n,r,o,u=e;if(u=u.trim(),!t&&e.split("#").length===1){const d=Qc.exec(u);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}let a=Yc.exec(u);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,u=u.substr(a.length)),(t||a||u.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=u.substr(0,2)==="//",o&&!(a&&$i[a])&&(u=u.substr(2),this.slashes=!0)),!$i[a]&&(o||a&&!Ui[a])){let d=-1;for(let m=0;m<ji.length;m++)r=u.indexOf(ji[m]),r!==-1&&(d===-1||r<d)&&(d=r);let f,c;d===-1?c=u.lastIndexOf("@"):c=u.lastIndexOf("@",d),c!==-1&&(f=u.slice(0,c),u=u.slice(c+1),this.auth=f),d=-1;for(let m=0;m<zi.length;m++)r=u.indexOf(zi[m]),r!==-1&&(d===-1||r<d)&&(d=r);d===-1&&(d=u.length),u[d-1]===":"&&d--;const h=u.slice(0,d);u=u.slice(d),this.parseHost(h),this.hostname=this.hostname||"";const p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){const m=this.hostname.split(/\./);for(let v=0,x=m.length;v<x;v++){const y=m[v];if(y&&!y.match(Hi)){let g="";for(let b=0,w=y.length;b<w;b++)y.charCodeAt(b)>127?g+="x":g+=y[b];if(!g.match(Hi)){const b=m.slice(0,v),w=m.slice(v+1),k=y.match(rd);k&&(b.push(k[1]),w.unshift(k[2])),w.length&&(u=w.join(".")+u),this.hostname=b.join(".");break}}}}this.hostname.length>nd&&(this.hostname=""),p&&(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 l=u.indexOf("?");return l!==-1&&(this.search=u.substr(l),u=u.slice(0,l)),u&&(this.pathname=u),Ui[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Br.prototype.parseHost=function(e){let t=Kc.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 ud=Object.freeze(Object.defineProperty({__proto__:null,decode:fn,encode:Hn,format:Zu,parse:Yu},Symbol.toStringTag,{value:"Module"})),Wi=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Gi=/[\0-\x1F\x7F-\x9F]/,od=/[\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]/,Ku=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,Xi=/[\$\+<->\^`\|~\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]/,qi=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,id=Object.freeze(Object.defineProperty({__proto__:null,Any:Wi,Cc:Gi,Cf:od,P:Ku,S:Xi,Z:qi},Symbol.toStringTag,{value:"Module"})),ad=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))),sd=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Qu;const ld=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]]),cd=(Qu=String.fromCodePoint)!==null&&Qu!==void 0?Qu: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 dd(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=ld.get(e))!==null&&t!==void 0?t:e}var Se;(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"})(Se||(Se={}));const fd=32;var Bt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Bt||(Bt={}));function Ju(e){return e>=Se.ZERO&&e<=Se.NINE}function hd(e){return e>=Se.UPPER_A&&e<=Se.UPPER_F||e>=Se.LOWER_A&&e<=Se.LOWER_F}function md(e){return e>=Se.UPPER_A&&e<=Se.UPPER_Z||e>=Se.LOWER_A&&e<=Se.LOWER_Z||Ju(e)}function pd(e){return e===Se.EQUALS||md(e)}var De;(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"})(De||(De={}));var zt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(zt||(zt={}));class gd{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=De.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=zt.Strict}startEntity(t){this.decodeMode=t,this.state=De.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case De.EntityStart:return t.charCodeAt(n)===Se.NUM?(this.state=De.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=De.NamedEntity,this.stateNamedEntity(t,n));case De.NumericStart:return this.stateNumericStart(t,n);case De.NumericDecimal:return this.stateNumericDecimal(t,n);case De.NumericHex:return this.stateNumericHex(t,n);case De.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|fd)===Se.LOWER_X?(this.state=De.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=De.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(Ju(o)||hd(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(Ju(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===Se.SEMI)this.consumed+=1;else if(this.decodeMode===zt.Strict)return 0;return this.emitCodePoint(dd(this.result),this.consumed),this.errors&&(t!==Se.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&Bt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=bd(r,o,this.treeIndex+Math.max(1,u),a),this.treeIndex<0)return this.result===0||this.decodeMode===zt.Attribute&&(u===0||pd(a))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],u=(o&Bt.VALUE_LENGTH)>>14,u!==0){if(a===Se.SEMI)return this.emitNamedEntityData(this.treeIndex,u,this.consumed+this.excess);this.decodeMode!==zt.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]&Bt.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]&~Bt.VALUE_LENGTH:o[t+1],r),n===3&&this.emitCodePoint(o[t+2],r),r}end(){var t;switch(this.state){case De.NamedEntity:return this.result!==0&&(this.decodeMode!==zt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case De.NumericDecimal:return this.emitNumericEntity(0,2);case De.NumericHex:return this.emitNumericEntity(0,3);case De.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case De.EntityStart:return 0}}}function Zi(e){let t="";const n=new gd(e,r=>t+=cd(r));return function(o,u){let a=0,s=0;for(;(s=o.indexOf("&",s))>=0;){t+=o.slice(a,s),n.startEntity(u);const d=n.write(o,s+1);if(d<0){a=s+n.end();break}a=s+d,s=d===0?a+1:a}const l=t+o.slice(a);return t="",l}}function bd(e,t,n,r){const o=(t&Bt.BRANCH_LENGTH)>>7,u=t&Bt.JUMP_TABLE;if(o===0)return u!==0&&r===u?n:-1;if(u){const l=r-u;return l<0||l>=o?-1:e[n+l]-1}let a=n,s=a+o-1;for(;a<=s;){const l=a+s>>>1,d=e[l];if(d<r)a=l+1;else if(d>r)s=l-1;else return e[l+o]}return-1}const yd=Zi(ad);Zi(sd);function Yi(e,t=zt.Legacy){return yd(e,t)}function wd(e){return Object.prototype.toString.call(e)}function eo(e){return wd(e)==="[object String]"}const xd=Object.prototype.hasOwnProperty;function vd(e,t){return xd.call(e,t)}function zr(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 Ki(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function to(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 jr(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 Qi=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Ad=/&([a-z#][a-z0-9]{1,31});/gi,kd=new RegExp(Qi.source+"|"+Ad.source,"gi"),Cd=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Ed(e,t){if(t.charCodeAt(0)===35&&Cd.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return to(r)?jr(r):e}const n=Yi(e);return n!==e?n:e}function _d(e){return e.indexOf("\\")<0?e:e.replace(Qi,"$1")}function hn(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(kd,function(t,n,r){return n||Ed(t,r)})}const Sd=/[&<>"]/,Dd=/[&<>"]/g,Fd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Td(e){return Fd[e]}function jt(e){return Sd.test(e)?e.replace(Dd,Td):e}const Nd=/[.?*+^$[\]\\(){}|-]/g;function Id(e){return e.replace(Nd,"\\$&")}function ce(e){switch(e){case 9:case 32:return!0}return!1}function $n(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 Un(e){return Ku.test(e)||Xi.test(e)}function Wn(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 Hr(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Od=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Ki,assign:zr,escapeHtml:jt,escapeRE:Id,fromCodePoint:jr,has:vd,isMdAsciiPunct:Wn,isPunctChar:Un,isSpace:ce,isString:eo,isValidEntityCode:to,isWhiteSpace:$n,lib:{mdurl:ud,ucmicro:id},normalizeReference:Hr,unescapeAll:hn,unescapeMd:_d},Symbol.toStringTag,{value:"Module"}));function Ld(e,t,n){let r,o,u,a;const s=e.posMax,l=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(a=e.pos,e.md.inline.skipToken(e),u===91){if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}}let d=-1;return o&&(d=e.pos),e.pos=l,d}function Vd(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=hn(e.slice(t+1,o)),u.ok=!0,u;if(r===92&&o+1<n){o+=2;continue}o++}return u}let a=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&&(a++,a>32))return u;if(r===41){if(a===0)break;a--}o++}return t===o||a!==0||(u.str=hn(e.slice(t,o)),u.pos=o,u.ok=!0),u}function Pd(e,t,n,r){let o,u=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)a.str=r.str,a.marker=r.marker;else{if(u>=n)return a;let s=e.charCodeAt(u);if(s!==34&&s!==39&&s!==40)return a;t++,u++,s===40&&(s=41),a.marker=s}for(;u<n;){if(o=e.charCodeAt(u),o===a.marker)return a.pos=u+1,a.str+=hn(e.slice(t,u)),a.ok=!0,a;if(o===40&&a.marker===41)return a;o===92&&u+1<n&&u++,u++}return a.can_continue=!0,a.str+=hn(e.slice(t,u)),a}const Rd=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:Vd,parseLinkLabel:Ld,parseLinkTitle:Pd},Symbol.toStringTag,{value:"Module"})),xt={};xt.code_inline=function(e,t,n,r,o){const u=e[t];return"<code"+o.renderAttrs(u)+">"+jt(u.content)+"</code>"},xt.code_block=function(e,t,n,r,o){const u=e[t];return"<pre"+o.renderAttrs(u)+"><code>"+jt(e[t].content)+`</code></pre>
1
+ (function(R,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(R=typeof globalThis<"u"?globalThis:R||self,i(R.FarrisX={},R.vue))})(this,function(R,i){"use strict";var w2=Object.defineProperty;var cc=R=>{throw TypeError(R)};var x2=(R,i,ye)=>i in R?w2(R,i,{enumerable:!0,configurable:!0,writable:!0,value:ye}):R[i]=ye;var fe=(R,i,ye)=>x2(R,typeof i!="symbol"?i+"":i,ye),mi=(R,i,ye)=>i.has(R)||cc("Cannot "+ye);var A=(R,i,ye)=>(mi(R,i,"read from private field"),ye?ye.call(R):i.get(R)),ie=(R,i,ye)=>i.has(R)?cc("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(R):i.set(R,ye),re=(R,i,ye,at)=>(mi(R,i,"write to private field"),at?at.call(R,ye):i.set(R,ye),ye),Q=(R,i,ye)=>(mi(R,i,"access private method"),ye);var zu=(R,i,ye,at)=>({set _(Lr){re(R,i,Lr,ye)},get _(){return A(R,i,at)}});var Ul,Dt,Nn,Wl,Gl,it,Qe,ft,an,ht,Tn,In,mt,Ee,pt,ve,he,ue,$e,Je,Re,Ne,gt,Te,bt,yt,et,tt,wt,qt,Ue,On,q,pi,sn,Lt,Dr,nt,dc,ln,Ln,Nr,Yt,Kt,gi,ju,Hu,me,bi,Or,Qt,yi,Vn;const ye={content:{type:Object,required:!0},onOpen:{type:Function,default:void 0}},at=i.defineComponent({name:"AppPreviewMessage",props:ye,setup(e){const t=i.ref(!1);function n(){var h;const a=(h=e.content)==null?void 0:h.appConfig;if(!a)return"";const s=a.ws??"",l=a.appPath??"",d=a.appObjectId??"";return`${a.appBuilderUri??"/apps/platform/development-platform/ide/app-builder/index.html"}?path=${l}&boId=${d}&ws=${s}&version=2.0#/home`}function r(){var s,l;const a=(s=e.content)==null?void 0:s.previewConfig;a&&e.onOpen&&e.onOpen({...a,title:a.title??((l=e.content)==null?void 0:l.appName)})}function o(a){const s=a.target;s!=null&&s.closest(".f-chat-app-preview-open-btn")||a.preventDefault()}function u(a){a.stopPropagation();const s=n();s&&window.open(s,"_blank")}return()=>{const a=e.content;if(!a)return null;const{message:s,appName:l,createdDatetime:d}=a;return i.createVNode("div",{class:"f-chat-message-app-preview"},[i.createVNode("div",{class:"f-chat-app-preview-message"},[s]),i.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()},[i.createVNode("div",{class:"f-chat-app-preview-card-left"},[i.createVNode("span",{class:"f-chat-app-preview-icon"},[i.createVNode("i",{class:"fx-icon fx-icon-bubble_star"},null)])]),i.createVNode("div",{class:"f-chat-app-preview-card-middle"},[i.createVNode("div",{class:"f-chat-app-preview-app-name"},[l]),i.createVNode("div",{class:"f-chat-app-preview-datetime"},[d])]),i.createVNode("div",{class:"f-chat-app-preview-card-right"},[i.createVNode("div",{class:"f-chat-app-preview-action-area"},null),t.value&&i.createVNode("button",{type:"button",class:"f-chat-app-preview-open-btn",onClick:u,title:"在新页签中打开","aria-label":"在新页签中打开"},[i.createVNode("i",{class:"fx-icon fx-icon-folder-open"},null)])])])])}}});at.install=e=>{e.component(at.name,at)};const Lr={content:{type:Object,required:!0},outputMode:{type:String,default:"streaming"},classNames:{type:Object,default:()=>({})},customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],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},onShowDynamicComponent:{type:Function,default:void 0},attachmentRowClickOpensPreview:{type:Boolean,default:!0},attachmentShowDownload:{type:Boolean,default:!0},role:{type:String,default:"assistant"}},$u={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},fc="/api/runtime/attachment";function hc(){try{const e=$u==null?void 0:$u.VITE_ATTACHMENT_API_BASE;if(typeof e=="string"&&e.trim()!=="")return e.replace(/\/+$/,"")}catch{}return""}function mc(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 pc(e){return`${fc}/${encodeURIComponent(e)}/download`}function Uu(e){const t=String(e??"").trim();if(!t)return"";const n=pc(t),r=hc();return r?`${r}${n}`:n}function wi(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 xi(e){return String(e??"").replace(/[/\\]/g,"_").trim()||"download"}function gc(e){if(!e)return null;const t=/filename\*=UTF-8''([^;]+)|filename="([^"]+)"|filename=([^;]+)/i.exec(e),n=(t==null?void 0:t[1])??(t==null?void 0:t[2])??(t==null?void 0:t[3]);if(!n)return null;try{return decodeURIComponent(n.trim())}catch{return n.trim()}}function vi(e){const t=mc(e);if(typeof window>"u")return t;try{const n=new URL(t);if(n.origin!==window.location.origin&&n.pathname.startsWith("/api/"))return`${n.pathname}${n.search}${n.hash}`}catch{}return t}function bc(e,t){const n=URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=xi(t),r.rel="noopener noreferrer",r.style.display="none",document.body.appendChild(r),r.click(),r.remove(),URL.revokeObjectURL(n)}function yc(e){const t=document.createElement("a");t.href=vi(e),t.rel="noopener noreferrer",t.style.display="none",document.body.appendChild(t),t.click(),t.remove()}function dn(e){const t=String(e.fileId??"").trim();if(t)return Uu(t);const n=String(e.url??"").trim();if(!n)return;const r=wi(n);if(r)return Uu(r);if(n.startsWith("http://")||n.startsWith("https://")||n.startsWith("/"))return n}async function Vr(e,t){const n=xi(t),r=vi(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(),a=gc(o.headers.get("Content-Disposition"))??n;bc(u,a)}catch{yc(e)}}function we(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 Ce(e,t){return t&&(typeof t=="string"?t.split(";").filter(Boolean).forEach(r=>{var u,a;const o=r.split(":");if(o.length>=2&&((u=o[0])!=null&&u.trim())&&((a=o[1])!=null&&a.trim())){const s=o[0].trim(),l=o.slice(1).join(":").trim();e[s]=l}}):typeof t=="object"&&Object.entries(t).forEach(([n,r])=>{n&&r!==void 0&&r!==null&&(e[n]=r)})),e}function zn(e){return e||null}function Ai(e){return e?/\.(jpg|jpeg|png|gif|svg|webp|bmp|ico)$/i.test(e)||e.startsWith("http")||e.startsWith("data:image"):!1}function Pr(e){return e?typeof e!="string"?e:Ai(e)?i.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="fx-icon fx-icon-warning"></i>'}}):e.includes("fx-icon")||e.includes("icon-")?i.h("i",{class:e}):e:null}function ki(e,t,n,r={}){const{charInterval:o=30}=r,u=i.ref({});let a=[],s=new Set;const l=()=>typeof t=="function"?t():t.value,d=()=>typeof n=="function"?n():n.value,f=()=>{a.forEach(m=>clearInterval(m)),a=[]},c=()=>{f(),u.value={},s.clear()},h=()=>{f(),u.value={},s.clear()},p=()=>{const m=e();if(!m||Object.keys(m).length===0){u.value={};return}if(!d()){u.value={...m},s=new Set(Object.keys(m));return}const v=Object.keys(m);v.forEach(b=>{u.value.hasOwnProperty(b)||(u.value[b]="")});const x=v.filter(b=>!s.has(b));if(x.length===0)return;let y=0;const g=()=>{var S;if(y>=x.length)return;const b=x[y],w=m[b];if(!w){s.add(b),y++,g();return}let k=((S=u.value[b])==null?void 0:S.length)||0;const D=setInterval(()=>{k<w.length?(u.value={...u.value,[b]:w.slice(0,k+1)},k++):(clearInterval(D),a=a.filter(E=>E!==D),s.add(b),y++,g())},o);a.push(D)};g()};return i.watch(()=>e(),()=>{l()&&p()},{immediate:!0}),i.watch(n,()=>{h(),l()&&p()}),i.watch(t,m=>{m?p():c()}),i.onMounted(()=>{l()&&p()}),{displayContent:u}}function Rr(){const e=i.reactive({}),t=[],n=i.ref(null);let r=null;const o=30,u=m=>{const v=e[m];return!v||v.displayedLength>=v.rawValue.length},a=i.computed(()=>Object.keys(e).length===0?!1:Object.keys(e).every(m=>u(m))),s=()=>{for(const m of t)if(!u(m))return m;return null},l=()=>{if(!n.value&&(n.value=s(),!n.value)){d();return}const m=e[n.value];m&&(m.displayedLength<m.rawValue.length?(m.displayedLength++,m.displayedValue=m.rawValue.slice(0,m.displayedLength),m.isStreaming=!0):(m.isStreaming=!1,m.displayedValue=m.rawValue,n.value=s(),n.value||d()))},d=()=>{r&&(clearInterval(r),r=null)},f=()=>{r||(r=setInterval(l,o))},c=()=>{d(),Object.keys(e).forEach(m=>{delete e[m]}),t.length=0,n.value=null},h=(m,v)=>{if(e[m]){p(m,v);return}t.push(m),e[m]={rawValue:v??"",displayedLength:0,isStreaming:!1,displayedValue:""},r||(!n.value||n.value===m)&&f()},p=(m,v)=>{const x=e[m];if(!x){h(m,v);return}x.rawValue=v??"",!r&&!u(m)&&(!n.value||n.value===m)&&f()};return i.onUnmounted(()=>{d()}),{propertyStates:e,currentProperty:n,get isAnyStreaming(){return Object.values(e).some(m=>m.isStreaming)},isAllDone:a,startStreaming:f,reset:c,registerProperty:h,updatePropertyValue:p}}function Wu(){const e=i.ref(null),t=i.ref(0),n=i.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}}}const wc={read_file:"tool_file",write_file:"tool_file",edit_file:"tool_file",glob:"tool_file",grep:"tool_file",bash:"tool_command",web_fetch:"tool_internet",web_search:"tool_internet",todo_create:"tool_task",todo_list:"tool_task",todo_get:"tool_task",todo_update:"tool_task",ask_user:"tool_interaction",core_memory:"tool_memory",add_daily_note:"tool_memory",lint_json:"dateselect",lint_markdown:"dateselect",output_validation:"dateselect",load_skill_through_path:"tool_mcp"};function xc(e){return e?e.startsWith("mcp:")?"tool_mcp":wc[e]??"thinking_tool":"thinking_tool"}function Gu(){return{getToolIconClass:xc}}function vc(e){return e.scrollWidth>e.clientWidth}function Ci(){vc(this)?this.title=this.textContent??"":this.removeAttribute("title")}function Ei(){this.removeAttribute("title")}const _i={mounted(e){e.addEventListener("mouseenter",Ci),e.addEventListener("mouseleave",Ei)},updated(e){e.removeAttribute("title")},unmounted(e){e.removeEventListener("mouseenter",Ci),e.removeEventListener("mouseleave",Ei)}};function Ac(e,t){const n=i.computed(()=>{var o;return Ce({},(o=e.styles)==null?void 0:o.header)});function r(){return t.slots.header&&i.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=i.ref(((u=e.content)==null?void 0:u.sender)??"发送人"),r=i.computed(()=>{var a;return Ce({},(a=e.styles)==null?void 0:a.header)});function o(){return i.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:r.value},[n.value])}return{renderHeader:o}}const Si={file:{type:Object,required:!0},customStyle:{type:Object,default:()=>({})},onPreviewFile:{type:Function,default:void 0},onBatchPreviewFile:{type:Function,default:void 0}},Cc={role:{type:String,default:"assistant"},attachments:{type:Array,default:()=>[]},enableBatchPreview:{type:Boolean,default:!1},enableFixedWidth:{type:Boolean,default:!1},showDownloadButton:{type:Boolean,default:!0},onPreview:{type:Function,default:void 0},onBatchPreview:{type:Function,default:void 0}};function Fi(){return{getFileIcon:(o,u="file-type-")=>o?`${u}${{pdf:"pdf",doc:"doc",docx:"doc",xls:"xls",xlsx:"xls",csv:"xls",ppt:"ppt",pptx:"ppt",txt:"txt",zip:"zip",rar:"zip",image:"img",img:"img",md:"md",audio:"any",form:"form",report:"report",board:"board"}[o.toLowerCase()]||"any"}`:`${u}any`,formatFileName:o=>(o==null?void 0:o.replace(/\.[^.]+$/,""))??"",formatFileSize:o=>o?o<1024?o+" B":o<1048576?(o/1024).toFixed(1)+" KB":(o/1048576).toFixed(1)+" MB":"",formatFileTime:o=>{if(!o)return"";const u=new Date(o),a=u.getFullYear(),s=String(u.getMonth()+1).padStart(2,"0"),l=String(u.getDate()).padStart(2,"0");return`${a}-${s}-${l}`}}}function Jt({status:e,variant:t=""}){let n="";return t?n=`f-chat-todo-status-icon f-chat-todo-status-${e.toLowerCase()} variant--${t.toLowerCase()} `:n=`f-chat-todo-status-icon f-chat-todo-status-${e.toLowerCase()}`,i.createVNode("span",{class:n,"aria-hidden":!0},null)}const Di=i.defineComponent({name:"FXBubbleAttachment",props:Cc,emits:["preview","batchPreview"],setup(e,t){const n=i.computed(()=>e.attachments??[]),r=i.computed(()=>{var y;return((y=n.value)==null?void 0:y.length)>0}),{formatFileName:o,formatFileSize:u,formatFileTime:a,getFileIcon:s}=Fi(),l=i.computed(()=>({"f-chat-bubble-attachment-info":!0,"f-utils-fill":e.enableFixedWidth})),d=i.computed(()=>({"f-chat-bubble-attachment-name":!0,"name-tip":e.enableFixedWidth}));function f(y,g){g.pending||t.emit("preview",g)}async function c(y,g){y.stopPropagation(),y.preventDefault();const b=dn(g);b&&await Vr(b,g.name)}function h(y){y.stopPropagation(),y.preventDefault(),t.emit("batchPreview",n.value)}function p(y){switch(y.toLowerCase()){case"doc":case"docx":return"Word";case"xlsx":case"xls":return"Excel";case"ppt":case"pptx":return"PPT";case"txt":return"txt";case"png":case"jpg":case"jpeg":return"Image";case"pdf":return"PDF";case"md":return"Markdown";default:return""}}function m(y){if(!y)return null;const g=p(y.type);return i.createVNode("div",{class:"file-info f-utils-fill"},[i.createVNode("span",{class:"file-name",title:y.name},[y.name]),i.createVNode("div",{class:"file-info-footer"},[i.createVNode("span",{class:`file-icon ${s(y.type)}`},null),g&&i.createVNode(i.Fragment,null,[i.createVNode("span",{class:"file-type"},[p(y.type)])]),y.size&&i.createVNode(i.Fragment,null,[i.createVNode("div",{class:"file-info-divider"},null),i.createTextVNode(" "),i.createVNode("span",{class:"file-size"},[u(y.size)])])])])}function v(y,g){console.log("attachment"+y.pending);const b=dn(y);return i.createVNode("div",{class:"f-chat-bubble-attachment-item "+s(y.type,"attachment-type-")+(y.pending?" status-working":""),key:g,onClick:w=>f(w,y)},[i.createVNode("div",{class:"f-chat-bubble-attachment-main",role:"presentation"},[i.createVNode("div",{class:l.value},[i.createVNode("span",{class:"f-chat-bubble-attachment-icon file-icon "+s(y.type)},null),i.createVNode("span",{class:d.value,title:y.name},[o(y.name)]),y.pending===!0&&i.createVNode("div",{class:"f-chat-bubble-attachment-status status-working"},[i.createVNode(Jt,{status:"Working",variant:"attachment"},null),i.createTextVNode(" 生成中")]),y.timestamp?i.createVNode("span",{class:"f-chat-bubble-attachment-text"},[i.createTextVNode("创建时间:"),a(y.timestamp)]):y.size?i.createVNode("span",{class:"f-chat-bubble-attachment-size"},[i.createTextVNode("文件大小:"),u(y.size)]):null])]),e.showDownloadButton!==!1&&b?i.createVNode("button",{type:"button",class:"f-chat-bubble-attachment-download-btn","aria-label":"下载附件",title:"下载",onClick:w=>c(w,y)},[i.createVNode("i",{class:"fx-icon fx-icon-sidewindow_download","aria-hidden":"true"},null)]):null])}function x(y,g){return i.createVNode("div",{class:"f-chat-bubble-attachment-toast",key:g},[m(y)])}return()=>r.value?i.createVNode("div",{class:{"f-chat-bubble-attachments":!0,"attachments-toast":e.role==="user"}},[n.value.map((y,g)=>e.role==="user"?x(y,g):v(y,g)),e.enableBatchPreview&&i.createVNode("div",{class:"f-chat-bubble-attachment-preview-btn",onClick:h},[i.createVNode("span",{class:"f-chat-bubble-attachment-preview-btn-text"},[i.createTextVNode("查看全部文件")]),i.createVNode("i",{class:"fx-icon fx-icon-sort-asc-sm",style:{transform:"rotate(90deg)"}},null)])]):null}}),Ni=i.defineComponent({name:"FXBubbleFileContentFooter",props:Si,setup(e,t){const n=i.computed(()=>e.file?Array.isArray(e.file)?[...e.file]:[e.file]:[]);return Ce({},e.customStyle),()=>i.createVNode(Di,{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)}}),Ec={pageUrl:{type:String,required:!0},customStyle:{type:Object,default:()=>({})},onNavigate:{type:Function,default:void 0}},_c=i.defineComponent({name:"FXBubblePageContentFooter",props:Ec,setup(e,t){const n=i.ref(),r=i.computed(()=>{var a,s;const u={width:"100%",height:"100%",border:"none"};return(a=e.customStyle)!=null&&a.width&&(u.width=e.customStyle.width),(s=e.customStyle)!=null&&s.height&&(u.height=`${e.customStyle.height}px`),u}),o=u=>{var a,s;((a=u.data)==null?void 0:a.type)==="navigation"&&((s=u.data)!=null&&s.url)&&e.onNavigate&&e.onNavigate(u.data.url)};return i.onMounted(()=>{window.addEventListener("message",o)}),i.onUnmounted(()=>{window.removeEventListener("message",o)}),()=>i.createVNode("iframe",{ref:n,src:e.pageUrl,style:r.value,scrolling:"auto"},null)}});function Ti(){function e(o,u){const{fileContent:a,height:s,width:l}=o;return{file:a,customStyle:{width:l||"100%",height:s||"100%"},onPreviewFile:u==null?void 0:u.onPreviewFile,onBatchPreviewFile:u==null?void 0:u.onBatchPreviewFile}}function t(o,u){const{pageUrl:a,height:s,width:l}=o;return{pageUrl:a,customStyle:{width:l||"100%",height:s||"100%"},onNavigate:u==null?void 0:u.onNavigate}}function n(o,u){const a=e(o,u);return i.h(Ni,a)}function r(o,u){const a=t(o,u);return i.h(_c,a)}return{renderFileEmbeddedContent:n,renderPageEmbeddedContent:r}}const Sc={title:{type:String,default:""},subtitle:{type:String,default:""},text:{type:String,default:""},textFormat:{type:String,default:"plain"},placement:{type:String,default:"start"},onDynamicComponentsDetected:{type:Function,default:void 0},onShowDynamicComponent:{type:Function,default:void 0}},Xu="assistant-widget",st="```";function jn(e,t){let n=t;for(;n<e.length&&/\s/.test(e[n]);)n+=1;return n}function Ii(e,t){let n=t;for(;n<e.length&&/[a-zA-Z0-9-]/.test(e[n]);)n+=1;return{lang:e.slice(t,n),next:n}}function Oi(e){const t=e.toLowerCase();return t.length===0||t.length>Xu.length?!1:Xu.startsWith(t)}function Fc(e){return e.toLowerCase()===Xu}function Dc(e,t){let n=0;for(;n<t;){const r=e.indexOf(st,n);if(r===-1||r>=t)break;let o=r+st.length;o=jn(e,o);const{lang:u}=Ii(e,o);if(u.length>0)return!0;n=r+st.length}return!1}function Li(e,t){if(!e.startsWith(st,t))return null;let n=t+st.length;n=jn(e,n);const{lang:r,next:o}=Ii(e,n);return r.length===0?e.slice(o).trim().length===0?Dc(e,t)?null:{fenceStart:t,bodyStart:o,langComplete:!1}:null:Oi(r)?(n=jn(e,o),{fenceStart:t,bodyStart:n,langComplete:Fc(r)}):null}function qu(e,t=0){const n=jn(e,t);return Li(e,n)}function Nc(e,t,n){if(t<n)return!1;const r=e.slice(t+st.length);return r.length===0?!0:r.startsWith("`")?!1:(/^\s*[\r\n]/.test(r)||/^\s*$/.test(r),!0)}function Mr(e,t){let n=t;for(;n<=e.length;){const r=e.indexOf(st,n);if(r===-1)return-1;if(Nc(e,r,t))return r;n=r+1}return-1}function Tc(e){const t=qu(e,0);if(!(t!=null&&t.langComplete))return null;const n=Mr(e,t.bodyStart);return n===-1?null:e.slice(t.bodyStart,n).trim()}function Vi(e){return e.replace(/```\s*assistant-widget\s*/gi,"``` assistant-widget\n")}function Ic(e){const t=e.match(/^\s*```\s*([a-zA-Z0-9-]*)$/);return t?Oi(t[1]??""):!1}function Oc(e,t){let n=t;for(;n<e.length;){const r=e.indexOf(st,n);if(r===-1)return null;const o=Li(e,r);if(o)return{fenceIdx:r,open:o};n=r+st.length}return null}function Pi(e){if(!e)return!1;const t=qu(e,0);if(!(t!=null&&t.langComplete))return!1;const n=Mr(e,t.bodyStart);return n===-1?!1:jn(e,n+st.length)>=e.length}function Lc(e){if(!e)return!1;if(Pi(e)||Ic(e))return!0;const t=qu(e,0);return t?t.langComplete?Mr(e,t.bodyStart)===-1:!0:!1}function Vc(e){if(!e)return[];const t=[];let n=0;for(;n<e.length;){const r=Oc(e,n);if(!r){const l=e.slice(n);l&&t.push(l);break}const{fenceIdx:o,open:u}=r;if(o>n&&t.push(e.slice(n,o)),!u.langComplete){t.push(e.slice(o));break}const a=Mr(e,u.bodyStart);if(a===-1){t.push(e.slice(o));break}const s=a+st.length;t.push(Vi(e.slice(o,s))),n=s}return t.filter(r=>r.trim().length>0)}function Ri(e){const t=Tc(Vi(e.trim()));if(t==null||t==="")return null;try{return JSON.parse(t)}catch(n){return console.error("Failed to parse JSON:",n),null}}function Pc(e){var n;const t=Ri(e);return((n=t==null?void 0:t.renderer)==null?void 0:n.widgetImplOptions)||{}}const Rc=/^```\s*dynamic-component\b[\s\S]*?```$/,Mc=/^```\s*dynamic-component\b/,Bc=/^```\s*dynamic-component\b\s*/,zc=/\s*```\s*$/;function jc(e){return e.replace(/```\s*dynamic-component\b/g,"``` dynamic-component")}function Mi(e){return e.replace(Bc,"").replace(zc,"").trim()}function Hc(e,t){let n=t;for(;n<e.length;){const r=e.indexOf("```",n);if(r<0)return null;const u=e.slice(r+3).match(/^\s*dynamic-component\b/);if(u)return{fenceStart:r,contentStart:r+3+u[0].length};n=r+3}return null}function $c(e){return e?Rc.test(e)||Mc.test(e):!1}function Uc(e){const t=Mi(e);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.instanceId!="string"?null:{...r,instanceId:r.instanceId,name:typeof r.name=="string"?r.name:void 0,componentId:typeof r.componentId=="string"?r.componentId:void 0,jsUrl:typeof r.jsUrl=="string"?r.jsUrl:"",url:typeof r.url=="string"?r.url:"",title:typeof r.title=="string"?r.title:"预览",position:r.position==="inline"?"inline":"right",width:typeof r.width=="string"?r.width:void 0,isFullscreen:typeof r.isFullscreen=="boolean"?r.isFullscreen:!1,autoOpen:typeof r.autoOpen=="boolean"?r.autoOpen:!1,fileRe:typeof r.fileRe=="string"?r.fileRe:void 0,target:r.target==="preview"||r.target==="previewExtra"?r.target:r.renderArea==="previewExtra"?"previewExtra":r.renderArea==="preview"?"preview":void 0}}function Wc(e){const t=Mi(e);if(!t)return null;const n=t.match(/"position"\s*:\s*"(inline|right)"/);return n?{position:n[1]}:null}function Gc(e){if(!e)return[];const t=[];let n=0;for(;n<e.length;){const r=Hc(e,n);if(!r){const l=e.slice(n);l&&t.push(l);break}const o=e.slice(n,r.fenceStart);o&&t.push(o);const u=e.indexOf("```",r.contentStart);if(u===-1){t.push(e.slice(r.fenceStart));break}const a=u+3,s=e.slice(r.fenceStart,a);t.push(jc(s)),n=a}return t.filter(r=>r.length>0)}var Ve=(e=>(e.Text="text",e.FlowUIComplete="flowui-complete",e.AssistantWidgetComplete="assistant-widget-complete",e.AssistantWidgetPending="assistant-widget-pending",e.DynamicComponentComplete="dynamic-component-complete",e.DynamicComponentPending="dynamic-component-pending",e))(Ve||{});function Xc(e){var o;if(!e)return[];const t=[],n=new Set,r=Vc(e);for(const u of r)if(Lc(u))if(Pi(u)){const a=Ri(u);t.push({type:Ve.AssistantWidgetComplete,raw:u,widgetData:a,widgetUrl:(o=a==null?void 0:a.renderer)==null?void 0:o.url,widgetImplOptions:Pc(u)})}else t.push({type:Ve.AssistantWidgetPending,raw:u});else{const a=Gc(u);for(const s of a)if($c(s))if(s.endsWith("```")){const l=Uc(s);if(l!=null&&l.instanceId){if(n.has(l.instanceId))continue;n.add(l.instanceId),t.push({type:Ve.DynamicComponentComplete,raw:s,config:l})}}else{const l=Wc(s);t.push({type:Ve.DynamicComponentPending,raw:s,position:(l==null?void 0:l.position)??null})}else s.trim()&&t.push({type:Ve.Text,raw:s})}return t}const Bi={};function qc(e){let t=Bi[e];if(t)return t;t=Bi[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 fn(e,t){typeof t!="string"&&(t=fn.defaultChars);const n=qc(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let o="";for(let u=0,a=r.length;u<a;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<a){const l=parseInt(r.slice(u+4,u+6),16);if((l&192)===128){const d=s<<6&1984|l&63;d<128?o+="��":o+=String.fromCharCode(d),u+=3;continue}}if((s&240)===224&&u+6<a){const l=parseInt(r.slice(u+4,u+6),16),d=parseInt(r.slice(u+7,u+9),16);if((l&192)===128&&(d&192)===128){const f=s<<12&61440|l<<6&4032|d&63;f<2048||f>=55296&&f<=57343?o+="���":o+=String.fromCharCode(f),u+=6;continue}}if((s&248)===240&&u+9<a){const l=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((l&192)===128&&(d&192)===128&&(f&192)===128){let c=s<<18&1835008|l<<12&258048|d<<6&4032|f&63;c<65536||c>1114111?o+="����":(c-=65536,o+=String.fromCharCode(55296+(c>>10),56320+(c&1023))),u+=9;continue}}o+="�"}return o})}fn.defaultChars=";/?:@&=+$,#",fn.componentChars="";const zi={};function Zc(e){let t=zi[e];if(t)return t;t=zi[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 Hn(e,t,n){typeof t!="string"&&(n=t,t=Hn.defaultChars),typeof n>"u"&&(n=!0);const r=Zc(t);let o="";for(let u=0,a=e.length;u<a;u++){const s=e.charCodeAt(u);if(n&&s===37&&u+2<a&&/^[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<a){const l=e.charCodeAt(u+1);if(l>=56320&&l<=57343){o+=encodeURIComponent(e[u]+e[u+1]),u++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[u])}return o}Hn.defaultChars=";/?:@&=+$,-_.!~*'()#",Hn.componentChars="-_.!~*'()";function Zu(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 Br(){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 Yc=/^([a-z0-9.+-]+:)/i,Kc=/:[0-9]*$/,Qc=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Jc=["<",">",'"',"`"," ","\r",`
2
+ `," "],ed=["{","}","|","\\","^","`"].concat(Jc),td=["'"].concat(ed),ji=["%","/","?",";","#"].concat(td),Hi=["/","?","#"],nd=255,$i=/^[+a-z0-9A-Z_-]{0,63}$/,rd=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ui={javascript:!0,"javascript:":!0},Wi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Yu(e,t){if(e&&e instanceof Br)return e;const n=new Br;return n.parse(e,t),n}Br.prototype.parse=function(e,t){let n,r,o,u=e;if(u=u.trim(),!t&&e.split("#").length===1){const d=Qc.exec(u);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}let a=Yc.exec(u);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,u=u.substr(a.length)),(t||a||u.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=u.substr(0,2)==="//",o&&!(a&&Ui[a])&&(u=u.substr(2),this.slashes=!0)),!Ui[a]&&(o||a&&!Wi[a])){let d=-1;for(let m=0;m<Hi.length;m++)r=u.indexOf(Hi[m]),r!==-1&&(d===-1||r<d)&&(d=r);let f,c;d===-1?c=u.lastIndexOf("@"):c=u.lastIndexOf("@",d),c!==-1&&(f=u.slice(0,c),u=u.slice(c+1),this.auth=f),d=-1;for(let m=0;m<ji.length;m++)r=u.indexOf(ji[m]),r!==-1&&(d===-1||r<d)&&(d=r);d===-1&&(d=u.length),u[d-1]===":"&&d--;const h=u.slice(0,d);u=u.slice(d),this.parseHost(h),this.hostname=this.hostname||"";const p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){const m=this.hostname.split(/\./);for(let v=0,x=m.length;v<x;v++){const y=m[v];if(y&&!y.match($i)){let g="";for(let b=0,w=y.length;b<w;b++)y.charCodeAt(b)>127?g+="x":g+=y[b];if(!g.match($i)){const b=m.slice(0,v),w=m.slice(v+1),k=y.match(rd);k&&(b.push(k[1]),w.unshift(k[2])),w.length&&(u=w.join(".")+u),this.hostname=b.join(".");break}}}}this.hostname.length>nd&&(this.hostname=""),p&&(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 l=u.indexOf("?");return l!==-1&&(this.search=u.substr(l),u=u.slice(0,l)),u&&(this.pathname=u),Wi[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Br.prototype.parseHost=function(e){let t=Kc.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 ud=Object.freeze(Object.defineProperty({__proto__:null,decode:fn,encode:Hn,format:Zu,parse:Yu},Symbol.toStringTag,{value:"Module"})),Gi=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Xi=/[\0-\x1F\x7F-\x9F]/,od=/[\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]/,Ku=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,qi=/[\$\+<->\^`\|~\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]/,Zi=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,id=Object.freeze(Object.defineProperty({__proto__:null,Any:Gi,Cc:Xi,Cf:od,P:Ku,S:qi,Z:Zi},Symbol.toStringTag,{value:"Module"})),ad=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))),sd=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Qu;const ld=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]]),cd=(Qu=String.fromCodePoint)!==null&&Qu!==void 0?Qu: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 dd(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=ld.get(e))!==null&&t!==void 0?t:e}var Se;(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"})(Se||(Se={}));const fd=32;var Bt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Bt||(Bt={}));function Ju(e){return e>=Se.ZERO&&e<=Se.NINE}function hd(e){return e>=Se.UPPER_A&&e<=Se.UPPER_F||e>=Se.LOWER_A&&e<=Se.LOWER_F}function md(e){return e>=Se.UPPER_A&&e<=Se.UPPER_Z||e>=Se.LOWER_A&&e<=Se.LOWER_Z||Ju(e)}function pd(e){return e===Se.EQUALS||md(e)}var Fe;(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"})(Fe||(Fe={}));var zt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(zt||(zt={}));class gd{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Fe.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=zt.Strict}startEntity(t){this.decodeMode=t,this.state=Fe.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Fe.EntityStart:return t.charCodeAt(n)===Se.NUM?(this.state=Fe.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Fe.NamedEntity,this.stateNamedEntity(t,n));case Fe.NumericStart:return this.stateNumericStart(t,n);case Fe.NumericDecimal:return this.stateNumericDecimal(t,n);case Fe.NumericHex:return this.stateNumericHex(t,n);case Fe.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|fd)===Se.LOWER_X?(this.state=Fe.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Fe.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(Ju(o)||hd(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(Ju(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===Se.SEMI)this.consumed+=1;else if(this.decodeMode===zt.Strict)return 0;return this.emitCodePoint(dd(this.result),this.consumed),this.errors&&(t!==Se.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&Bt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=bd(r,o,this.treeIndex+Math.max(1,u),a),this.treeIndex<0)return this.result===0||this.decodeMode===zt.Attribute&&(u===0||pd(a))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],u=(o&Bt.VALUE_LENGTH)>>14,u!==0){if(a===Se.SEMI)return this.emitNamedEntityData(this.treeIndex,u,this.consumed+this.excess);this.decodeMode!==zt.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]&Bt.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]&~Bt.VALUE_LENGTH:o[t+1],r),n===3&&this.emitCodePoint(o[t+2],r),r}end(){var t;switch(this.state){case Fe.NamedEntity:return this.result!==0&&(this.decodeMode!==zt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Fe.NumericDecimal:return this.emitNumericEntity(0,2);case Fe.NumericHex:return this.emitNumericEntity(0,3);case Fe.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Fe.EntityStart:return 0}}}function Yi(e){let t="";const n=new gd(e,r=>t+=cd(r));return function(o,u){let a=0,s=0;for(;(s=o.indexOf("&",s))>=0;){t+=o.slice(a,s),n.startEntity(u);const d=n.write(o,s+1);if(d<0){a=s+n.end();break}a=s+d,s=d===0?a+1:a}const l=t+o.slice(a);return t="",l}}function bd(e,t,n,r){const o=(t&Bt.BRANCH_LENGTH)>>7,u=t&Bt.JUMP_TABLE;if(o===0)return u!==0&&r===u?n:-1;if(u){const l=r-u;return l<0||l>=o?-1:e[n+l]-1}let a=n,s=a+o-1;for(;a<=s;){const l=a+s>>>1,d=e[l];if(d<r)a=l+1;else if(d>r)s=l-1;else return e[l+o]}return-1}const yd=Yi(ad);Yi(sd);function Ki(e,t=zt.Legacy){return yd(e,t)}function wd(e){return Object.prototype.toString.call(e)}function eo(e){return wd(e)==="[object String]"}const xd=Object.prototype.hasOwnProperty;function vd(e,t){return xd.call(e,t)}function zr(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 Qi(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function to(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 jr(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 Ji=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Ad=/&([a-z#][a-z0-9]{1,31});/gi,kd=new RegExp(Ji.source+"|"+Ad.source,"gi"),Cd=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Ed(e,t){if(t.charCodeAt(0)===35&&Cd.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return to(r)?jr(r):e}const n=Ki(e);return n!==e?n:e}function _d(e){return e.indexOf("\\")<0?e:e.replace(Ji,"$1")}function hn(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(kd,function(t,n,r){return n||Ed(t,r)})}const Sd=/[&<>"]/,Fd=/[&<>"]/g,Dd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Nd(e){return Dd[e]}function jt(e){return Sd.test(e)?e.replace(Fd,Nd):e}const Td=/[.?*+^$[\]\\(){}|-]/g;function Id(e){return e.replace(Td,"\\$&")}function ce(e){switch(e){case 9:case 32:return!0}return!1}function $n(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 Un(e){return Ku.test(e)||qi.test(e)}function Wn(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 Hr(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Od=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Qi,assign:zr,escapeHtml:jt,escapeRE:Id,fromCodePoint:jr,has:vd,isMdAsciiPunct:Wn,isPunctChar:Un,isSpace:ce,isString:eo,isValidEntityCode:to,isWhiteSpace:$n,lib:{mdurl:ud,ucmicro:id},normalizeReference:Hr,unescapeAll:hn,unescapeMd:_d},Symbol.toStringTag,{value:"Module"}));function Ld(e,t,n){let r,o,u,a;const s=e.posMax,l=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(a=e.pos,e.md.inline.skipToken(e),u===91){if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}}let d=-1;return o&&(d=e.pos),e.pos=l,d}function Vd(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=hn(e.slice(t+1,o)),u.ok=!0,u;if(r===92&&o+1<n){o+=2;continue}o++}return u}let a=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&&(a++,a>32))return u;if(r===41){if(a===0)break;a--}o++}return t===o||a!==0||(u.str=hn(e.slice(t,o)),u.pos=o,u.ok=!0),u}function Pd(e,t,n,r){let o,u=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)a.str=r.str,a.marker=r.marker;else{if(u>=n)return a;let s=e.charCodeAt(u);if(s!==34&&s!==39&&s!==40)return a;t++,u++,s===40&&(s=41),a.marker=s}for(;u<n;){if(o=e.charCodeAt(u),o===a.marker)return a.pos=u+1,a.str+=hn(e.slice(t,u)),a.ok=!0,a;if(o===40&&a.marker===41)return a;o===92&&u+1<n&&u++,u++}return a.can_continue=!0,a.str+=hn(e.slice(t,u)),a}const Rd=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:Vd,parseLinkLabel:Ld,parseLinkTitle:Pd},Symbol.toStringTag,{value:"Module"})),xt={};xt.code_inline=function(e,t,n,r,o){const u=e[t];return"<code"+o.renderAttrs(u)+">"+jt(u.content)+"</code>"},xt.code_block=function(e,t,n,r,o){const u=e[t];return"<pre"+o.renderAttrs(u)+"><code>"+jt(e[t].content)+`</code></pre>
3
3
  `},xt.fence=function(e,t,n,r,o){const u=e[t],a=u.info?hn(u.info).trim():"";let s="",l="";if(a){const f=a.split(/(\s+)/g);s=f[0],l=f.slice(2).join("")}let d;if(n.highlight?d=n.highlight(u.content,s,l)||jt(u.content):d=jt(u.content),d.indexOf("<pre")===0)return d+`
4
4
  `;if(a){const f=u.attrIndex("class"),c=u.attrs?u.attrs.slice():[];f<0?c.push(["class",n.langPrefix+s]):(c[f]=c[f].slice(),c[f][1]+=" "+n.langPrefix+s);const h={attrs:c};return`<pre><code${o.renderAttrs(h)}>${d}</code></pre>
5
5
  `}return`<pre><code${o.renderAttrs(u)}>${d}</code></pre>
@@ -11,32 +11,32 @@
11
11
  `},xt.text=function(e,t){return jt(e[t].content)},xt.html_block=function(e,t){return e[t].content},xt.html_inline=function(e,t){return e[t].content};function mn(){this.rules=zr({},xt)}mn.prototype.renderAttrs=function(t){let n,r,o;if(!t.attrs)return"";for(o="",n=0,r=t.attrs.length;n<r;n++)o+=" "+jt(t.attrs[n][0])+'="'+jt(t.attrs[n][1])+'"';return o},mn.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
12
  `),u+=(o.nesting===-1?"</":"<")+o.tag,u+=this.renderAttrs(o),o.nesting===0&&r.xhtmlOut&&(u+=" /");let a=!1;if(o.block&&(a=!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)&&(a=!1)}return u+=a?`>
13
13
  `:">",u},mn.prototype.renderInline=function(e,t,n){let r="";const o=this.rules;for(let u=0,a=e.length;u<a;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},mn.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},mn.prototype.render=function(e,t,n){let r="";const o=this.rules;for(let u=0,a=e.length;u<a;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 We(){this.__rules__=[],this.__cache__=null}We.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},We.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))})})},We.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},We.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},We.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},We.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},We.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},We.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)},We.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},We.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function lt(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}lt.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},lt.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},lt.prototype.attrSet=function(t,n){const r=this.attrIndex(t),o=[t,n];r<0?this.attrPush(o):this.attrs[r]=o},lt.prototype.attrGet=function(t){const n=this.attrIndex(t);let r=null;return n>=0&&(r=this.attrs[n][1]),r},lt.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 Ji(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Ji.prototype.Token=lt;const Md=/\r\n?|\n/g,Bd=/\0/g;function zd(e){let t;t=e.src.replace(Md,`
15
- `),t=t.replace(Bd,"�"),e.src=t}function jd(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 Hd(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 $d(e){return/^<a[>\s]/i.test(e)}function Ud(e){return/^<\/a\s*>/i.test(e)}function Wd(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 a=o.length-1;a>=0;a--){const s=o[a];if(s.type==="link_close"){for(a--;o[a].level!==s.level&&o[a].type!=="link_open";)a--;continue}if(s.type==="html_inline"&&($d(s.content)&&u>0&&u--,Ud(s.content)&&u++),!(u>0)&&s.type==="text"&&e.md.linkify.test(s.content)){const l=s.content;let d=e.md.linkify.match(l);const f=[];let c=s.level,h=0;d.length>0&&d[0].index===0&&a>0&&o[a-1].type==="text_special"&&(d=d.slice(1));for(let p=0;p<d.length;p++){const m=d[p].url,v=e.md.normalizeLink(m);if(!e.md.validateLink(v))continue;let x=d[p].text;d[p].schema?d[p].schema==="mailto:"&&!/^mailto:/i.test(x)?x=e.md.normalizeLinkText("mailto:"+x).replace(/^mailto:/,""):x=e.md.normalizeLinkText(x):x=e.md.normalizeLinkText("http://"+x).replace(/^http:\/\//,"");const y=d[p].index;if(y>h){const k=new e.Token("text","",0);k.content=l.slice(h,y),k.level=c,f.push(k)}const g=new e.Token("link_open","a",1);g.attrs=[["href",v]],g.level=c++,g.markup="linkify",g.info="auto",f.push(g);const b=new e.Token("text","",0);b.content=x,b.level=c,f.push(b);const w=new e.Token("link_close","a",-1);w.level=--c,w.markup="linkify",w.info="auto",f.push(w),h=d[p].lastIndex}if(h<l.length){const p=new e.Token("text","",0);p.content=l.slice(h),p.level=c,f.push(p)}t[n].children=o=Ki(o,a,f)}}}}const ea=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Gd=/\((c|tm|r)\)/i,Xd=/\((c|tm|r)\)/ig,qd={c:"©",r:"®",tm:"™"};function Zd(e,t){return qd[t.toLowerCase()]}function Yd(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(Xd,Zd)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function Kd(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&ea.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 Qd(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Gd.test(e.tokens[t].content)&&Yd(e.tokens[t].children),ea.test(e.tokens[t].content)&&Kd(e.tokens[t].children))}const Jd=/['"]/,ta=/['"]/g,na="’";function $r(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function e0(e,t){let n;const r=[];for(let o=0;o<e.length;o++){const u=e[o],a=e[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=a);n--);if(r.length=n+1,u.type!=="text")continue;let s=u.content,l=0,d=s.length;e:for(;l<d;){ta.lastIndex=l;const f=ta.exec(s);if(!f)break;let c=!0,h=!0;l=f.index+1;const p=f[0]==="'";let m=32;if(f.index-1>=0)m=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){m=e[n].content.charCodeAt(e[n].content.length-1);break}let v=32;if(l<d)v=s.charCodeAt(l);else for(n=o+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){v=e[n].content.charCodeAt(0);break}const x=Wn(m)||Un(String.fromCharCode(m)),y=Wn(v)||Un(String.fromCharCode(v)),g=$n(m),b=$n(v);if(b?c=!1:y&&(g||x||(c=!1)),g?h=!1:x&&(b||y||(h=!1)),v===34&&f[0]==='"'&&m>=48&&m<=57&&(h=c=!1),c&&h&&(c=x,h=y),!c&&!h){p&&(u.content=$r(u.content,f.index,na));continue}if(h)for(n=r.length-1;n>=0;n--){let w=r[n];if(r[n].level<a)break;if(w.single===p&&r[n].level===a){w=r[n];let k,F;p?(k=t.md.options.quotes[2],F=t.md.options.quotes[3]):(k=t.md.options.quotes[0],F=t.md.options.quotes[1]),u.content=$r(u.content,f.index,F),e[w.token].content=$r(e[w.token].content,w.pos,k),l+=F.length-1,w.token===o&&(l+=k.length-1),s=u.content,d=s.length,r.length=n;continue e}}c?r.push({token:o,pos:f.index,single:p,level:a}):h&&p&&(u.content=$r(u.content,f.index,na))}}}function t0(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!Jd.test(e.tokens[t].content)||e0(e.tokens[t].children,e)}function n0(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 a=r[u].children,s=a.length;for(t=0;t<s;t++)a[t].type==="text_special"&&(a[t].type="text");for(t=n=0;t<s;t++)a[t].type==="text"&&t+1<s&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}}const no=[["normalize",zd],["block",jd],["inline",Hd],["linkify",Wd],["replacements",Qd],["smartquotes",t0],["text_join",n0]];function ro(){this.ruler=new We;for(let e=0;e<no.length;e++)this.ruler.push(no[e][0],no[e][1])}ro.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},ro.prototype.State=Ji;function vt(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,a=0,s=0,l=0,d=o.length,f=!1;a<d;a++){const c=o.charCodeAt(a);if(!f)if(ce(c)){s++,c===9?l+=4-l%4:l++;continue}else f=!0;(c===10||a===d-1)&&(c!==10&&a++,this.bMarks.push(u),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),f=!1,s=0,l=0,u=a+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}vt.prototype.push=function(e,t,n){const r=new lt(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},vt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},vt.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},vt.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!ce(r))break}return t},vt.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!ce(this.src.charCodeAt(--t)))return t+1;return t},vt.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t},vt.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},vt.prototype.getLines=function(t,n,r,o){if(t>=n)return"";const u=new Array(n-t);for(let a=0,s=t;s<n;s++,a++){let l=0;const d=this.bMarks[s];let f=d,c;for(s+1<n||o?c=this.eMarks[s]+1:c=this.eMarks[s];f<c&&l<r;){const h=this.src.charCodeAt(f);if(ce(h))h===9?l+=4-(l+this.bsCount[s])%4:l++;else if(f-d<this.tShift[s])l++;else break;f++}l>r?u[a]=new Array(l-r+1).join(" ")+this.src.slice(f,c):u[a]=this.src.slice(f,c)}return u.join("")},vt.prototype.Token=lt;const r0=65536;function uo(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function ra(e){const t=[],n=e.length;let r=0,o=e.charCodeAt(r),u=!1,a=0,s="";for(;r<n;)o===124&&(u?(s+=e.substring(a,r-1),a=r):(t.push(s+e.substring(a,r)),s="",a=r+1)),u=o===92,r++,o=e.charCodeAt(r);return t.push(s+e.substring(a)),t}function u0(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 a=e.src.charCodeAt(u++);if(a!==124&&a!==45&&a!==58||u>=e.eMarks[o])return!1;const s=e.src.charCodeAt(u++);if(s!==124&&s!==45&&s!==58&&!ce(s)||a===45&&ce(s))return!1;for(;u<e.eMarks[o];){const w=e.src.charCodeAt(u);if(w!==124&&w!==45&&w!==58&&!ce(w))return!1;u++}let l=uo(e,t+1),d=l.split("|");const f=[];for(let w=0;w<d.length;w++){const k=d[w].trim();if(!k){if(w===0||w===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(k))return!1;k.charCodeAt(k.length-1)===58?f.push(k.charCodeAt(0)===58?"center":"right"):k.charCodeAt(0)===58?f.push("left"):f.push("")}if(l=uo(e,t).trim(),l.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;d=ra(l),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop();const c=d.length;if(c===0||c!==f.length)return!1;if(r)return!0;const h=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),v=[t,0];m.map=v;const x=e.push("thead_open","thead",1);x.map=[t,t+1];const y=e.push("tr_open","tr",1);y.map=[t,t+1];for(let w=0;w<d.length;w++){const k=e.push("th_open","th",1);f[w]&&(k.attrs=[["style","text-align:"+f[w]]]);const F=e.push("inline","",0);F.content=d[w].trim(),F.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let g,b=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let w=!1;for(let F=0,S=p.length;F<S;F++)if(p[F](e,o,n,!0)){w=!0;break}if(w||(l=uo(e,o).trim(),!l)||e.sCount[o]-e.blkIndent>=4||(d=ra(l),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),b+=c-d.length,b>r0))break;if(o===t+2){const F=e.push("tbody_open","tbody",1);F.map=g=[t+2,0]}const k=e.push("tr_open","tr",1);k.map=[o,o+1];for(let F=0;F<c;F++){const S=e.push("td_open","td",1);f[F]&&(S.attrs=[["style","text-align:"+f[F]]]);const E=e.push("inline","",0);E.content=d[F]?d[F].trim():"",E.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),v[1]=o,e.parentType=h,e.line=o,!0}function o0(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 i0(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 a=e.src.charCodeAt(o);if(a!==126&&a!==96)return!1;let s=o;o=e.skipChars(o,a);let l=o-s;if(l<3)return!1;const d=e.src.slice(s,o),f=e.src.slice(o,u);if(a===96&&f.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let c=t,h=!1;for(;c++,!(c>=n||(o=s=e.bMarks[c]+e.tShift[c],u=e.eMarks[c],o<u&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(o)===a&&!(e.sCount[c]-e.blkIndent>=4)&&(o=e.skipChars(o,a),!(o-s<l)&&(o=e.skipSpaces(o),!(o<u)))){h=!0;break}l=e.sCount[t],e.line=c+(h?1:0);const p=e.push("fence","code",0);return p.info=f,p.content=e.getLines(t+1,c,l,!0),p.markup=d,p.map=[t,e.line],!0}function a0(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==62)return!1;if(r)return!0;const s=[],l=[],d=[],f=[],c=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let p=!1,m;for(m=t;m<n;m++){const b=e.sCount[m]<e.blkIndent;if(o=e.bMarks[m]+e.tShift[m],u=e.eMarks[m],o>=u)break;if(e.src.charCodeAt(o++)===62&&!b){let k=e.sCount[m]+1,F,S;e.src.charCodeAt(o)===32?(o++,k++,S=!1,F=!0):e.src.charCodeAt(o)===9?(F=!0,(e.bsCount[m]+k)%4===3?(o++,k++,S=!1):S=!0):F=!1;let E=k;for(s.push(e.bMarks[m]),e.bMarks[m]=o;o<u;){const X=e.src.charCodeAt(o);if(ce(X))X===9?E+=4-(E+e.bsCount[m]+(S?1:0))%4:E++;else break;o++}p=o>=u,l.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(F?1:0),d.push(e.sCount[m]),e.sCount[m]=E-k,f.push(e.tShift[m]),e.tShift[m]=o-e.bMarks[m];continue}if(p)break;let w=!1;for(let k=0,F=c.length;k<F;k++)if(c[k](e,m,n,!0)){w=!0;break}if(w){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),l.push(e.bsCount[m]),f.push(e.tShift[m]),d.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),l.push(e.bsCount[m]),f.push(e.tShift[m]),d.push(e.sCount[m]),e.sCount[m]=-1}const v=e.blkIndent;e.blkIndent=0;const x=e.push("blockquote_open","blockquote",1);x.markup=">";const y=[t,0];x.map=y,e.md.block.tokenize(e,t,m);const g=e.push("blockquote_close","blockquote",-1);g.markup=">",e.lineMax=a,e.parentType=h,y[1]=e.line;for(let b=0;b<f.length;b++)e.bMarks[b+t]=s[b],e.tShift[b+t]=f[b],e.sCount[b+t]=d[b],e.bsCount[b+t]=l[b];return e.blkIndent=v,!0}function s0(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 a=e.src.charCodeAt(u++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;u<o;){const d=e.src.charCodeAt(u++);if(d!==a&&!ce(d))return!1;d===a&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(a)),!0}function ua(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(!ce(u))return-1}return r}function oa(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),!ce(u))?-1:o}function l0(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 c0(e,t,n,r){let o,u,a,s,l=t,d=!0;if(e.sCount[l]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let f=!1;r&&e.parentType==="paragraph"&&e.sCount[l]>=e.blkIndent&&(f=!0);let c,h,p;if((p=oa(e,l))>=0){if(c=!0,a=e.bMarks[l]+e.tShift[l],h=Number(e.src.slice(a,p-1)),f&&h!==1)return!1}else if((p=ua(e,l))>=0)c=!1;else return!1;if(f&&e.skipSpaces(p)>=e.eMarks[l])return!1;if(r)return!0;const m=e.src.charCodeAt(p-1),v=e.tokens.length;c?(s=e.push("ordered_list_open","ol",1),h!==1&&(s.attrs=[["start",h]])):s=e.push("bullet_list_open","ul",1);const x=[l,0];s.map=x,s.markup=String.fromCharCode(m);let y=!1;const g=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";l<n;){u=p,o=e.eMarks[l];const w=e.sCount[l]+p-(e.bMarks[l]+e.tShift[l]);let k=w;for(;u<o;){const G=e.src.charCodeAt(u);if(G===9)k+=4-(k+e.bsCount[l])%4;else if(G===32)k++;else break;u++}const F=u;let S;F>=o?S=1:S=k-w,S>4&&(S=1);const E=w+S;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(m);const X=[l,0];s.map=X,c&&(s.info=e.src.slice(a,p-1));const j=e.tight,B=e.tShift[l],H=e.sCount[l],L=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=E,e.tight=!0,e.tShift[l]=F-e.bMarks[l],e.sCount[l]=k,F>=o&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||y)&&(d=!1),y=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=L,e.tShift[l]=B,e.sCount[l]=H,e.tight=j,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(m),l=e.line,X[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let W=!1;for(let G=0,T=g.length;G<T;G++)if(g[G](e,l,n,!0)){W=!0;break}if(W)break;if(c){if(p=oa(e,l),p<0)break;a=e.bMarks[l]+e.tShift[l]}else if(p=ua(e,l),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return c?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(m),x[1]=l,e.line=l,e.parentType=b,d&&l0(e,v),!0}function d0(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==91)return!1;function s(g){const b=e.lineMax;if(g>=b||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 S=e.md.block.ruler.getRules("reference"),E=e.parentType;e.parentType="reference";let X=!1;for(let j=0,B=S.length;j<B;j++)if(S[j](e,g,b,!0)){X=!0;break}if(e.parentType=E,X)return null}const k=e.bMarks[g]+e.tShift[g],F=e.eMarks[g];return e.src.slice(k,F+1)}let l=e.src.slice(o,u+1);u=l.length;let d=-1;for(o=1;o<u;o++){const g=l.charCodeAt(o);if(g===91)return!1;if(g===93){d=o;break}else if(g===10){const b=s(a);b!==null&&(l+=b,u=l.length,a++)}else if(g===92&&(o++,o<u&&l.charCodeAt(o)===10)){const b=s(a);b!==null&&(l+=b,u=l.length,a++)}}if(d<0||l.charCodeAt(d+1)!==58)return!1;for(o=d+2;o<u;o++){const g=l.charCodeAt(o);if(g===10){const b=s(a);b!==null&&(l+=b,u=l.length,a++)}else if(!ce(g))break}const f=e.md.helpers.parseLinkDestination(l,o,u);if(!f.ok)return!1;const c=e.md.normalizeLink(f.str);if(!e.md.validateLink(c))return!1;o=f.pos;const h=o,p=a,m=o;for(;o<u;o++){const g=l.charCodeAt(o);if(g===10){const b=s(a);b!==null&&(l+=b,u=l.length,a++)}else if(!ce(g))break}let v=e.md.helpers.parseLinkTitle(l,o,u);for(;v.can_continue;){const g=s(a);if(g===null)break;l+=g,o=u,u=l.length,a++,v=e.md.helpers.parseLinkTitle(l,o,u,v)}let x;for(o<u&&m!==o&&v.ok?(x=v.str,o=v.pos):(x="",o=h,a=p);o<u;){const g=l.charCodeAt(o);if(!ce(g))break;o++}if(o<u&&l.charCodeAt(o)!==10&&x)for(x="",o=h,a=p;o<u;){const g=l.charCodeAt(o);if(!ce(g))break;o++}if(o<u&&l.charCodeAt(o)!==10)return!1;const y=Hr(l.slice(1,d));return y?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[y]>"u"&&(e.env.references[y]={title:x,href:c}),e.line=a),!0):!1}const f0=["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"],h0="[a-zA-Z_:][a-zA-Z0-9:._-]*",m0="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",ia="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+h0+"(?:\\s*=\\s*"+m0+")?)")+"*\\s*\\/?>",aa="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",p0="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",g0="<[?][\\s\\S]*?[?]>",b0="<![A-Za-z][^>]*>",y0="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",w0=new RegExp("^(?:"+ia+"|"+aa+"|"+p0+"|"+g0+"|"+b0+"|"+y0+")"),x0=new RegExp("^(?:"+ia+"|"+aa+")"),pn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+f0.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(x0.source+"\\s*$"),/^$/,!1]];function v0(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 a=e.src.slice(o,u),s=0;for(;s<pn.length&&!pn[s][0].test(a);s++);if(s===pn.length)return!1;if(r)return pn[s][2];let l=t+1;if(!pn[s][1].test(a)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(o=e.bMarks[l]+e.tShift[l],u=e.eMarks[l],a=e.src.slice(o,u),pn[s][1].test(a)){a.length!==0&&l++;break}}e.line=l;const d=e.push("html_block","",0);return d.map=[t,l],d.content=e.getLines(t,l,e.blkIndent,!0),!0}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)return!1;let a=e.src.charCodeAt(o);if(a!==35||o>=u)return!1;let s=1;for(a=e.src.charCodeAt(++o);a===35&&o<u&&s<=6;)s++,a=e.src.charCodeAt(++o);if(s>6||o<u&&!ce(a))return!1;if(r)return!0;u=e.skipSpacesBack(u,o);const l=e.skipCharsBack(u,35,o);l>o&&ce(e.src.charCodeAt(l-1))&&(u=l),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 c=e.push("heading_close","h"+String(s),-1);return c.markup="########".slice(0,s),!0}function k0(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,a,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 p=e.bMarks[s]+e.tShift[s];const m=e.eMarks[s];if(p<m&&(a=e.src.charCodeAt(p),(a===45||a===61)&&(p=e.skipChars(p,a),p=e.skipSpaces(p),p>=m))){u=a===61?1:2;break}}if(e.sCount[s]<0)continue;let h=!1;for(let p=0,m=r.length;p<m;p++)if(r[p](e,s,n,!0)){h=!0;break}if(h)break}if(!u)return!1;const l=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(a),d.map=[t,e.line];const f=e.push("inline","",0);f.content=l,f.map=[t,e.line-1],f.children=[];const c=e.push("heading_close","h"+String(u),-1);return c.markup=String.fromCharCode(a),e.parentType=o,!0}function C0(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,c=r.length;f<c;f++)if(r[f](e,u,n,!0)){d=!0;break}if(d)break}const a=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 l=e.push("inline","",0);return l.content=a,l.map=[t,e.line],l.children=[],e.push("paragraph_close","p",-1),e.parentType=o,!0}const Ur=[["table",u0,["paragraph","reference"]],["code",o0],["fence",i0,["paragraph","reference","blockquote","list"]],["blockquote",a0,["paragraph","reference","blockquote","list"]],["hr",s0,["paragraph","reference","blockquote","list"]],["list",c0,["paragraph","reference","blockquote"]],["reference",d0],["html_block",v0,["paragraph","reference","blockquote"]],["heading",A0,["paragraph","reference","blockquote"]],["lheading",k0],["paragraph",C0]];function Wr(){this.ruler=new We;for(let e=0;e<Ur.length;e++)this.ruler.push(Ur[e][0],Ur[e][1],{alt:(Ur[e][2]||[]).slice()})}Wr.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),o=r.length,u=e.md.options.maxNesting;let a=t,s=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n||e.sCount[a]<e.blkIndent));){if(e.level>=u){e.line=n;break}const l=e.line;let d=!1;for(let f=0;f<o;f++)if(d=r[f](e,a,n,!1),d){if(l>=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),a=e.line,a<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},Wr.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)},Wr.prototype.State=vt;function Gn(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}Gn.prototype.pushPending=function(){const e=new lt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Gn.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new lt(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},Gn.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 a=u-e,s=u<n?this.src.charCodeAt(u):32,l=Wn(o)||Un(String.fromCharCode(o)),d=Wn(s)||Un(String.fromCharCode(s)),f=$n(o),c=$n(s),h=!c&&(!d||f||l),p=!f&&(!l||c||d);return{can_open:h&&(t||!p||l),can_close:p&&(t||!h||d),length:a}},Gn.prototype.Token=lt;function E0(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 _0(e,t){let n=e.pos;for(;n<e.posMax&&!E0(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const S0=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function D0(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(S0);if(!o)return!1;const u=o[1],a=e.md.linkify.matchAtStart(e.src.slice(n-u.length));if(!a)return!1;let s=a.url;if(s.length<=u.length)return!1;let l=s.length;for(;l>0&&s.charCodeAt(l-1)===42;)l--;l!==s.length&&(s=s.slice(0,l));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 c=e.push("text","",0);c.content=e.md.normalizeLinkText(s);const h=e.push("link_close","a",-1);h.markup="linkify",h.info="auto"}return e.pos+=s.length-u.length,!0}function F0(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&&ce(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const oo=[];for(let e=0;e<256;e++)oo.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){oo[e.charCodeAt(0)]=1});function T0(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),!!ce(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 a="\\"+u;if(!t){const s=e.push("text_special","",0);o<256&&oo[o]!==0?s.content=u:s.content=a,s.markup=a,s.info="escape"}return e.pos=n+1,!0}function N0(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 a=e.src.slice(o,n),s=a.length;if(e.backticksScanned&&(e.backticks[s]||0)<=o)return t||(e.pending+=a),e.pos+=s,!0;let l=n,d;for(;(d=e.src.indexOf("`",l))!==-1;){for(l=d+1;l<u&&e.src.charCodeAt(l)===96;)l++;const f=l-d;if(f===s){if(!t){const c=e.push("code_inline","code",0);c.markup=a,c.content=e.src.slice(n,d).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[f]=d}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=s,!0}function I0(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 a=String.fromCharCode(r);if(u<2)return!1;let s;u%2&&(s=e.push("text","",0),s.content=a,u--);for(let l=0;l<u;l+=2)s=e.push("text","",0),s.content=a+a,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 sa(e,t){let n;const r=[],o=t.length;for(let u=0;u<o;u++){const a=t[u];if(a.marker!==126||a.end===-1)continue;const s=t[a.end];n=e.tokens[a.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 a=u+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,u!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[u],e.tokens[u]=n)}}function O0(e){const t=e.tokens_meta,n=e.tokens_meta.length;sa(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&sa(e,t[r].delimiters)}const la={tokenize:I0,postProcess:O0};function L0(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 a=e.push("text","",0);a.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 ca(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],a=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),l=e.tokens[o.token];l.type=a?"strong_open":"em_open",l.tag=a?"strong":"em",l.nesting=1,l.markup=a?s+s:s,l.content="";const d=e.tokens[u.token];d.type=a?"strong_close":"em_close",d.tag=a?"strong":"em",d.nesting=-1,d.markup=a?s+s:s,d.content="",a&&(e.tokens[t[r-1].token].content="",e.tokens[t[o.end+1].token].content="",r--)}}function V0(e){const t=e.tokens_meta,n=e.tokens_meta.length;ca(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&ca(e,t[r].delimiters)}const da={tokenize:L0,postProcess:V0};function P0(e,t){let n,r,o,u,a="",s="",l=e.pos,d=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,c=e.posMax,h=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<c&&e.src.charCodeAt(m)===40){for(d=!1,m++;m<c&&(n=e.src.charCodeAt(m),!(!ce(n)&&n!==10));m++);if(m>=c)return!1;if(l=m,o=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),o.ok){for(a=e.md.normalizeLink(o.str),e.md.validateLink(a)?m=o.pos:a="",l=m;m<c&&(n=e.src.charCodeAt(m),!(!ce(n)&&n!==10));m++);if(o=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<c&&l!==m&&o.ok)for(s=o.str,m=o.pos;m<c&&(n=e.src.charCodeAt(m),!(!ce(n)&&n!==10));m++);}(m>=c||e.src.charCodeAt(m)!==41)&&(d=!0),m++}if(d){if(typeof e.env.references>"u")return!1;if(m<c&&e.src.charCodeAt(m)===91?(l=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(l,m++):m=p+1):m=p+1,r||(r=e.src.slice(h,p)),u=e.env.references[Hr(r)],!u)return e.pos=f,!1;a=u.href,s=u.title}if(!t){e.pos=h,e.posMax=p;const v=e.push("link_open","a",1),x=[["href",a]];v.attrs=x,s&&x.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=c,!0}function R0(e,t){let n,r,o,u,a,s,l,d,f="";const c=e.pos,h=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(u=m+1,u<h&&e.src.charCodeAt(u)===40){for(u++;u<h&&(n=e.src.charCodeAt(u),!(!ce(n)&&n!==10));u++);if(u>=h)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<h&&(n=e.src.charCodeAt(u),!(!ce(n)&&n!==10));u++);if(s=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<h&&d!==u&&s.ok)for(l=s.str,u=s.pos;u<h&&(n=e.src.charCodeAt(u),!(!ce(n)&&n!==10));u++);else l="";if(u>=h||e.src.charCodeAt(u)!==41)return e.pos=c,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<h&&e.src.charCodeAt(u)===91?(d=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?o=e.src.slice(d,u++):u=m+1):u=m+1,o||(o=e.src.slice(p,m)),a=e.env.references[Hr(o)],!a)return e.pos=c,!1;f=a.href,l=a.title}if(!t){r=e.src.slice(p,m);const v=[];e.md.inline.parse(r,e.md,e.env,v);const x=e.push("image","img",0),y=[["src",f],["alt",""]];x.attrs=y,x.children=v,x.content=r,l&&y.push(["title",l])}return e.pos=u,e.posMax=h,!0}const M0=/^([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])?)*)$/,B0=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function z0(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 a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const u=e.src.slice(r+1,n);if(B0.test(u)){const a=e.md.normalizeLink(u);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.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(M0.test(u)){const a=e.md.normalizeLink("mailto:"+u);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.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 j0(e){return/^<a[>\s]/i.test(e)}function H0(e){return/^<\/a\s*>/i.test(e)}function $0(e){const t=e|32;return t>=97&&t<=122}function U0(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&&!$0(o))return!1;const u=e.src.slice(r).match(w0);if(!u)return!1;if(!t){const a=e.push("html_inline","",0);a.content=u[0],j0(a.content)&&e.linkLevel++,H0(a.content)&&e.linkLevel--}return e.pos+=u[0].length,!0}const W0=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,G0=/^&([a-z][a-z0-9]{1,31});/i;function X0(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(W0);if(u){if(!t){const a=u[1][0].toLowerCase()==="x"?parseInt(u[1].slice(1),16):parseInt(u[1],10),s=e.push("text_special","",0);s.content=to(a)?jr(a):jr(65533),s.markup=u[0],s.info="entity"}return e.pos+=u[0].length,!0}}else{const u=e.src.slice(n).match(G0);if(u){const a=Yi(u[0]);if(a!==u[0]){if(!t){const s=e.push("text_special","",0);s.content=a,s.markup=u[0],s.info="entity"}return e.pos+=u[0].length,!0}}}return!1}function fa(e){const t={},n=e.length;if(!n)return;let r=0,o=-2;const u=[];for(let a=0;a<n;a++){const s=e[a];if(u.push(0),(e[r].marker!==s.marker||o!==s.token-1)&&(r=a),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 l=t[s.marker][(s.open?3:0)+s.length%3];let d=r-u[r]-1,f=d;for(;d>l;d-=u[d]+1){const c=e[d];if(c.marker===s.marker&&c.open&&c.end<0){let h=!1;if((c.close||s.open)&&(c.length+s.length)%3===0&&(c.length%3!==0||s.length%3!==0)&&(h=!0),!h){const p=d>0&&!e[d-1].open?u[d-1]+1:0;u[a]=a-d+p,u[d]=p,s.open=!1,c.end=a,c.close=!1,f=-1,o=-2;break}}}f!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=f)}}function q0(e){const t=e.tokens_meta,n=e.tokens_meta.length;fa(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&fa(t[r].delimiters)}function Z0(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 io=[["text",_0],["linkify",D0],["newline",F0],["escape",T0],["backticks",N0],["strikethrough",la.tokenize],["emphasis",da.tokenize],["link",P0],["image",R0],["autolink",z0],["html_inline",U0],["entity",X0]],ao=[["balance_pairs",q0],["strikethrough",la.postProcess],["emphasis",da.postProcess],["fragments_join",Z0]];function Xn(){this.ruler=new We;for(let e=0;e<io.length;e++)this.ruler.push(io[e][0],io[e][1]);this.ruler2=new We;for(let e=0;e<ao.length;e++)this.ruler2.push(ao[e][0],ao[e][1])}Xn.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 a=!1;if(e.level<o){for(let s=0;s<r;s++)if(e.level++,a=n[s](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,u[t]=e.pos},Xn.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 a=!1;if(e.level<o){for(let s=0;s<n;s++)if(a=t[s](e,!1),a){if(u>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Xn.prototype.parse=function(e,t,n,r){const o=new this.State(e,t,n,r);this.tokenize(o);const u=this.ruler2.getRules(""),a=u.length;for(let s=0;s<a;s++)u[s](o)},Xn.prototype.State=Gn;function Y0(e){const t={};e=e||{},t.src_Any=Wi.source,t.src_Cc=Gi.source,t.src_Z=qi.source,t.src_P=Ku.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 so(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function Gr(e){return Object.prototype.toString.call(e)}function K0(e){return Gr(e)==="[object String]"}function Q0(e){return Gr(e)==="[object Object]"}function J0(e){return Gr(e)==="[object RegExp]"}function ha(e){return Gr(e)==="[object Function]"}function ef(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const ma={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function tf(e){return Object.keys(e||{}).reduce(function(t,n){return t||ma.hasOwnProperty(n)},!1)}const nf={"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}}},rf="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]",uf="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function of(e){e.__index__=-1,e.__text_cache__=""}function af(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function pa(){return function(e,t){t.normalize(e)}}function Xr(e){const t=e.re=Y0(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(rf),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,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l)}Object.keys(e.__schemas__).forEach(function(s){const l=e.__schemas__[s];if(l===null)return;const d={validate:null,link:null};if(e.__compiled__[s]=d,Q0(l)){J0(l.validate)?d.validate=af(l.validate):ha(l.validate)?d.validate=l.validate:u(s,l),ha(l.normalize)?d.normalize=l.normalize:l.normalize?u(s,l):d.normalize=pa();return}if(K0(l)){o.push(s);return}u(s,l)}),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:pa()};const a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(ef).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","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"),of(e)}function sf(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 lo(e,t){const n=new sf(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function qe(e,t){if(!(this instanceof qe))return new qe(e,t);t||tf(e)&&(t=e,e={}),this.__opts__=so({},ma,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=so({},nf,e),this.__compiled__={},this.__tlds__=uf,this.__tlds_replaced__=!1,this.re={},Xr(this)}qe.prototype.add=function(t,n){return this.__schemas__[t]=n,Xr(this),this},qe.prototype.set=function(t){return this.__opts__=so(this.__opts__,t),this},qe.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,o,u,a,s,l,d,f;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(u=this.testSchemaAt(t,n[2],l.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&&(a=r.index+r[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,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&&(a=o.index+o[1].length,s=o.index+o[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0},qe.prototype.pretest=function(t){return this.re.pretest.test(t)},qe.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0},qe.prototype.match=function(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(lo(this,r)),r=this.__last_index__);let o=r?t.slice(r):t;for(;this.test(o);)n.push(lo(this,r)),o=o.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null},qe.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,lo(this,0)):null},qe.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(),Xr(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Xr(this),this)},qe.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},qe.prototype.onCompile=function(){};const gn=2147483647,At=36,co=1,qn=26,lf=38,cf=700,ga=72,ba=128,ya="-",df=/^xn--/,ff=/[^\0-\x7F]/,hf=/[\x2E\u3002\uFF0E\uFF61]/g,mf={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},fo=At-co,kt=Math.floor,ho=String.fromCharCode;function Ht(e){throw new RangeError(mf[e])}function pf(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function wa(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(hf,".");const o=e.split("."),u=pf(o,t).join(".");return r+u}function xa(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 gf=e=>String.fromCodePoint(...e),bf=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:At},va=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Aa=function(e,t,n){let r=0;for(e=n?kt(e/cf):e>>1,e+=kt(e/t);e>fo*qn>>1;r+=At)e=kt(e/fo);return kt(r+(fo+1)*e/(e+lf))},ka=function(e){const t=[],n=e.length;let r=0,o=ba,u=ga,a=e.lastIndexOf(ya);a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&Ht("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){const l=r;for(let f=1,c=At;;c+=At){s>=n&&Ht("invalid-input");const h=bf(e.charCodeAt(s++));h>=At&&Ht("invalid-input"),h>kt((gn-r)/f)&&Ht("overflow"),r+=h*f;const p=c<=u?co:c>=u+qn?qn:c-u;if(h<p)break;const m=At-p;f>kt(gn/m)&&Ht("overflow"),f*=m}const d=t.length+1;u=Aa(r-l,d,l==0),kt(r/d)>gn-o&&Ht("overflow"),o+=kt(r/d),r%=d,t.splice(r++,0,o)}return String.fromCodePoint(...t)},Ca=function(e){const t=[];e=xa(e);const n=e.length;let r=ba,o=0,u=ga;for(const l of e)l<128&&t.push(ho(l));const a=t.length;let s=a;for(a&&t.push(ya);s<n;){let l=gn;for(const f of e)f>=r&&f<l&&(l=f);const d=s+1;l-r>kt((gn-o)/d)&&Ht("overflow"),o+=(l-r)*d,r=l;for(const f of e)if(f<r&&++o>gn&&Ht("overflow"),f===r){let c=o;for(let h=At;;h+=At){const p=h<=u?co:h>=u+qn?qn:h-u;if(c<p)break;const m=c-p,v=At-p;t.push(ho(va(p+m%v,0))),c=kt(m/v)}t.push(ho(va(c,0))),u=Aa(o,d,s===a),o=0,++s}++o,++r}return t.join("")},Ea={version:"2.3.1",ucs2:{decode:xa,encode:gf},decode:ka,encode:Ca,toASCII:function(e){return wa(e,function(t){return ff.test(t)?"xn--"+Ca(t):t})},toUnicode:function(e){return wa(e,function(t){return df.test(t)?ka(t.slice(4).toLowerCase()):t})}},yf={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"]}}}},wf=/^(vbscript|javascript|file|data):/,xf=/^data:image\/(gif|png|jpeg|webp);/;function vf(e){const t=e.trim().toLowerCase();return wf.test(t)?xf.test(t):!0}const _a=["http:","https:","mailto:"];function Af(e){const t=Yu(e,!0);if(t.hostname&&(!t.protocol||_a.indexOf(t.protocol)>=0))try{t.hostname=Ea.toASCII(t.hostname)}catch{}return Hn(Zu(t))}function kf(e){const t=Yu(e,!0);if(t.hostname&&(!t.protocol||_a.indexOf(t.protocol)>=0))try{t.hostname=Ea.toUnicode(t.hostname)}catch{}return fn(Zu(t),fn.defaultChars+"%")}function Ze(e,t){if(!(this instanceof Ze))return new Ze(e,t);t||eo(e)||(t=e||{},e="default"),this.inline=new Xn,this.block=new Wr,this.core=new ro,this.renderer=new mn,this.linkify=new qe,this.validateLink=vf,this.normalizeLink=Af,this.normalizeLinkText=kf,this.utils=Od,this.helpers=zr({},Rd),this.options={},this.configure(e),t&&this.set(t)}Ze.prototype.set=function(e){return zr(this.options,e),this},Ze.prototype.configure=function(e){const t=this;if(eo(e)){const n=e;if(e=yf[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},Ze.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},Ze.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},Ze.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Ze.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},Ze.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Ze.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Ze.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:Sa,setPrototypeOf:Da,isFrozen:Cf,getPrototypeOf:Ef,getOwnPropertyDescriptor:_f}=Object;let{freeze:Be,seal:ut,create:qr}=Object,{apply:mo,construct:po}=typeof Reflect<"u"&&Reflect;Be||(Be=function(t){return t}),ut||(ut=function(t){return t}),mo||(mo=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)}),po||(po=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 Zr=je(Array.prototype.forEach),Sf=je(Array.prototype.lastIndexOf),Fa=je(Array.prototype.pop),Zn=je(Array.prototype.push),Df=je(Array.prototype.splice),Yr=je(String.prototype.toLowerCase),go=je(String.prototype.toString),bo=je(String.prototype.match),Yn=je(String.prototype.replace),Ff=je(String.prototype.indexOf),Tf=je(String.prototype.trim),Ye=je(Object.prototype.hasOwnProperty),ze=je(RegExp.prototype.test),Kn=Nf(TypeError);function je(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 mo(e,t,r)}}function Nf(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return po(e,n)}}function oe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Yr;Da&&Da(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const u=n(o);u!==o&&(Cf(t)||(t[r]=u),o=u)}e[o]=!0}return e}function If(e){for(let t=0;t<e.length;t++)Ye(e,t)||(e[t]=null);return e}function Ct(e){const t=qr(null);for(const[n,r]of Sa(e))Ye(e,n)&&(Array.isArray(r)?t[n]=If(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=Ct(r):t[n]=r);return t}function Qn(e,t){for(;e!==null;){const r=_f(e,t);if(r){if(r.get)return je(r.get);if(typeof r.value=="function")return je(r.value)}e=Ef(e)}function n(){return null}return n}const Ta=Be(["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"]),yo=Be(["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"]),wo=Be(["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"]),Of=Be(["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"]),xo=Be(["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"]),Lf=Be(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Na=Be(["#text"]),Ia=Be(["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"]),vo=Be(["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"]),Oa=Be(["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"]),Kr=Be(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Vf=ut(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Pf=ut(/<%[\w\W]*|[\w\W]*%>/gm),Rf=ut(/\$\{[\w\W]*/gm),Mf=ut(/^data-[\-\w.\u00B7-\uFFFF]+$/),Bf=ut(/^aria-[\-\w]+$/),La=ut(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),zf=ut(/^(?:\w+script|data):/i),jf=ut(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Va=ut(/^html$/i),Hf=ut(/^[a-z][.\w]*(-[.\w]+)+$/i);var Pa=Object.freeze({__proto__:null,ARIA_ATTR:Bf,ATTR_WHITESPACE:jf,CUSTOM_ELEMENT:Hf,DATA_ATTR:Mf,DOCTYPE_NAME:Va,ERB_EXPR:Pf,IS_ALLOWED_URI:La,IS_SCRIPT_OR_DATA:zf,MUSTACHE_EXPR:Vf,TMPLIT_EXPR:Rf});const Jn={element:1,text:3,progressingInstruction:7,comment:8,document:9},$f=function(){return typeof window>"u"?null:window},Uf=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(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+u+" could not be created."),null}},Ra=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ma(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$f();const t=ne=>Ma(ne);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==Jn.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,o=r.currentScript,{DocumentFragment:u,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:d,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:h,trustedTypes:p}=e,m=l.prototype,v=Qn(m,"cloneNode"),x=Qn(m,"remove"),y=Qn(m,"nextSibling"),g=Qn(m,"childNodes"),b=Qn(m,"parentNode");if(typeof a=="function"){const ne=n.createElement("template");ne.content&&ne.content.ownerDocument&&(n=ne.content.ownerDocument)}let w,k="";const{implementation:F,createNodeIterator:S,createDocumentFragment:E,getElementsByTagName:X}=n,{importNode:j}=r;let B=Ra();t.isSupported=typeof Sa=="function"&&typeof b=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:H,ERB_EXPR:L,TMPLIT_EXPR:W,DATA_ATTR:G,ARIA_ATTR:T,IS_SCRIPT_OR_DATA:C,ATTR_WHITESPACE:D,CUSTOM_ELEMENT:P}=Pa;let{IS_ALLOWED_URI:M}=Pa,z=null;const N=oe({},[...Ta,...yo,...wo,...xo,...Na]);let V=null;const O=oe({},[...Ia,...vo,...Oa,...Kr]);let I=Object.seal(qr(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}})),$=null,J=null;const K=Object.seal(qr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Y=!0,te=!0,ae=!1,be=!0,Ae=!1,rt=!0,Oe=!1,Tt=!1,Zt=!1,Vt=!1,Lu=!1,Vu=!1,Gl=!0,Xl=!1;const d2="user-content-";let ii=!0,Nr=!1,Pn={},Nt=null;const ai=oe({},["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 ql=null;const Zl=oe({},["audio","video","img","source","image","track"]);let si=null;const Yl=oe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Pu="http://www.w3.org/1998/Math/MathML",Ru="http://www.w3.org/2000/svg",Pt="http://www.w3.org/1999/xhtml";let Rn=Pt,li=!1,ci=null;const f2=oe({},[Pu,Ru,Pt],go);let Mu=oe({},["mi","mo","mn","ms","mtext"]),Bu=oe({},["annotation-xml"]);const h2=oe({},["title","style","font","a","script"]);let Ir=null;const m2=["application/xhtml+xml","text/html"],p2="text/html";let _e=null,Mn=null;const g2=n.createElement("form"),Kl=function(_){return _ instanceof RegExp||_ instanceof Function},di=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Mn&&Mn===_)){if((!_||typeof _!="object")&&(_={}),_=Ct(_),Ir=m2.indexOf(_.PARSER_MEDIA_TYPE)===-1?p2:_.PARSER_MEDIA_TYPE,_e=Ir==="application/xhtml+xml"?go:Yr,z=Ye(_,"ALLOWED_TAGS")?oe({},_.ALLOWED_TAGS,_e):N,V=Ye(_,"ALLOWED_ATTR")?oe({},_.ALLOWED_ATTR,_e):O,ci=Ye(_,"ALLOWED_NAMESPACES")?oe({},_.ALLOWED_NAMESPACES,go):f2,si=Ye(_,"ADD_URI_SAFE_ATTR")?oe(Ct(Yl),_.ADD_URI_SAFE_ATTR,_e):Yl,ql=Ye(_,"ADD_DATA_URI_TAGS")?oe(Ct(Zl),_.ADD_DATA_URI_TAGS,_e):Zl,Nt=Ye(_,"FORBID_CONTENTS")?oe({},_.FORBID_CONTENTS,_e):ai,$=Ye(_,"FORBID_TAGS")?oe({},_.FORBID_TAGS,_e):Ct({}),J=Ye(_,"FORBID_ATTR")?oe({},_.FORBID_ATTR,_e):Ct({}),Pn=Ye(_,"USE_PROFILES")?_.USE_PROFILES:!1,Y=_.ALLOW_ARIA_ATTR!==!1,te=_.ALLOW_DATA_ATTR!==!1,ae=_.ALLOW_UNKNOWN_PROTOCOLS||!1,be=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ae=_.SAFE_FOR_TEMPLATES||!1,rt=_.SAFE_FOR_XML!==!1,Oe=_.WHOLE_DOCUMENT||!1,Vt=_.RETURN_DOM||!1,Lu=_.RETURN_DOM_FRAGMENT||!1,Vu=_.RETURN_TRUSTED_TYPE||!1,Zt=_.FORCE_BODY||!1,Gl=_.SANITIZE_DOM!==!1,Xl=_.SANITIZE_NAMED_PROPS||!1,ii=_.KEEP_CONTENT!==!1,Nr=_.IN_PLACE||!1,M=_.ALLOWED_URI_REGEXP||La,Rn=_.NAMESPACE||Pt,Mu=_.MATHML_TEXT_INTEGRATION_POINTS||Mu,Bu=_.HTML_INTEGRATION_POINTS||Bu,I=_.CUSTOM_ELEMENT_HANDLING||{},_.CUSTOM_ELEMENT_HANDLING&&Kl(_.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(I.tagNameCheck=_.CUSTOM_ELEMENT_HANDLING.tagNameCheck),_.CUSTOM_ELEMENT_HANDLING&&Kl(_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(I.attributeNameCheck=_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),_.CUSTOM_ELEMENT_HANDLING&&typeof _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(I.allowCustomizedBuiltInElements=_.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ae&&(te=!1),Lu&&(Vt=!0),Pn&&(z=oe({},Na),V=qr(null),Pn.html===!0&&(oe(z,Ta),oe(V,Ia)),Pn.svg===!0&&(oe(z,yo),oe(V,vo),oe(V,Kr)),Pn.svgFilters===!0&&(oe(z,wo),oe(V,vo),oe(V,Kr)),Pn.mathMl===!0&&(oe(z,xo),oe(V,Oa),oe(V,Kr))),Ye(_,"ADD_TAGS")||(K.tagCheck=null),Ye(_,"ADD_ATTR")||(K.attributeCheck=null),_.ADD_TAGS&&(typeof _.ADD_TAGS=="function"?K.tagCheck=_.ADD_TAGS:(z===N&&(z=Ct(z)),oe(z,_.ADD_TAGS,_e))),_.ADD_ATTR&&(typeof _.ADD_ATTR=="function"?K.attributeCheck=_.ADD_ATTR:(V===O&&(V=Ct(V)),oe(V,_.ADD_ATTR,_e))),_.ADD_URI_SAFE_ATTR&&oe(si,_.ADD_URI_SAFE_ATTR,_e),_.FORBID_CONTENTS&&(Nt===ai&&(Nt=Ct(Nt)),oe(Nt,_.FORBID_CONTENTS,_e)),_.ADD_FORBID_CONTENTS&&(Nt===ai&&(Nt=Ct(Nt)),oe(Nt,_.ADD_FORBID_CONTENTS,_e)),ii&&(z["#text"]=!0),Oe&&oe(z,["html","head","body"]),z.table&&(oe(z,["tbody"]),delete $.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw Kn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Kn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=_.TRUSTED_TYPES_POLICY,k=w.createHTML("")}else w===void 0&&(w=Uf(p,o)),w!==null&&typeof k=="string"&&(k=w.createHTML(""));Be&&Be(_),Mn=_}},Ql=oe({},[...yo,...wo,...Of]),Jl=oe({},[...xo,...Lf]),b2=function(_){let U=b(_);(!U||!U.tagName)&&(U={namespaceURI:Rn,tagName:"template"});const ee=Yr(_.tagName),ge=Yr(U.tagName);return ci[_.namespaceURI]?_.namespaceURI===Ru?U.namespaceURI===Pt?ee==="svg":U.namespaceURI===Pu?ee==="svg"&&(ge==="annotation-xml"||Mu[ge]):!!Ql[ee]:_.namespaceURI===Pu?U.namespaceURI===Pt?ee==="math":U.namespaceURI===Ru?ee==="math"&&Bu[ge]:!!Jl[ee]:_.namespaceURI===Pt?U.namespaceURI===Ru&&!Bu[ge]||U.namespaceURI===Pu&&!Mu[ge]?!1:!Jl[ee]&&(h2[ee]||!Ql[ee]):!!(Ir==="application/xhtml+xml"&&ci[_.namespaceURI]):!1},It=function(_){Zn(t.removed,{element:_});try{b(_).removeChild(_)}catch{x(_)}},cn=function(_,U){try{Zn(t.removed,{attribute:U.getAttributeNode(_),from:U})}catch{Zn(t.removed,{attribute:null,from:U})}if(U.removeAttribute(_),_==="is")if(Vt||Lu)try{It(U)}catch{}else try{U.setAttribute(_,"")}catch{}},ec=function(_){let U=null,ee=null;if(Zt)_="<remove></remove>"+_;else{const ke=bo(_,/^[\r\n\t ]+/);ee=ke&&ke[0]}Ir==="application/xhtml+xml"&&Rn===Pt&&(_='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_+"</body></html>");const ge=w?w.createHTML(_):_;if(Rn===Pt)try{U=new h().parseFromString(ge,Ir)}catch{}if(!U||!U.documentElement){U=F.createDocument(Rn,"template",null);try{U.documentElement.innerHTML=li?k:ge}catch{}}const Me=U.body||U.documentElement;return _&&ee&&Me.insertBefore(n.createTextNode(ee),Me.childNodes[0]||null),Rn===Pt?X.call(U,Oe?"html":"body")[0]:Oe?U.documentElement:Me},tc=function(_){return S.call(_.ownerDocument||_,_,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},fi=function(_){return _ instanceof c&&(typeof _.nodeName!="string"||typeof _.textContent!="string"||typeof _.removeChild!="function"||!(_.attributes instanceof f)||typeof _.removeAttribute!="function"||typeof _.setAttribute!="function"||typeof _.namespaceURI!="string"||typeof _.insertBefore!="function"||typeof _.hasChildNodes!="function")},nc=function(_){return typeof s=="function"&&_ instanceof s};function Rt(ne,_,U){Zr(ne,ee=>{ee.call(t,_,U,Mn)})}const rc=function(_){let U=null;if(Rt(B.beforeSanitizeElements,_,null),fi(_))return It(_),!0;const ee=_e(_.nodeName);if(Rt(B.uponSanitizeElement,_,{tagName:ee,allowedTags:z}),rt&&_.hasChildNodes()&&!nc(_.firstElementChild)&&ze(/<[/\w!]/g,_.innerHTML)&&ze(/<[/\w!]/g,_.textContent)||_.nodeType===Jn.progressingInstruction||rt&&_.nodeType===Jn.comment&&ze(/<[/\w]/g,_.data))return It(_),!0;if(!(K.tagCheck instanceof Function&&K.tagCheck(ee))&&(!z[ee]||$[ee])){if(!$[ee]&&oc(ee)&&(I.tagNameCheck instanceof RegExp&&ze(I.tagNameCheck,ee)||I.tagNameCheck instanceof Function&&I.tagNameCheck(ee)))return!1;if(ii&&!Nt[ee]){const ge=b(_)||_.parentNode,Me=g(_)||_.childNodes;if(Me&&ge){const ke=Me.length;for(let Xe=ke-1;Xe>=0;--Xe){const Mt=v(Me[Xe],!0);Mt.__removalCount=(_.__removalCount||0)+1,ge.insertBefore(Mt,y(_))}}}return It(_),!0}return _ instanceof l&&!b2(_)||(ee==="noscript"||ee==="noembed"||ee==="noframes")&&ze(/<\/no(script|embed|frames)/i,_.innerHTML)?(It(_),!0):(Ae&&_.nodeType===Jn.text&&(U=_.textContent,Zr([H,L,W],ge=>{U=Yn(U,ge," ")}),_.textContent!==U&&(Zn(t.removed,{element:_.cloneNode()}),_.textContent=U)),Rt(B.afterSanitizeElements,_,null),!1)},uc=function(_,U,ee){if(J[U]||Gl&&(U==="id"||U==="name")&&(ee in n||ee in g2))return!1;if(!(te&&!J[U]&&ze(G,U))){if(!(Y&&ze(T,U))){if(!(K.attributeCheck instanceof Function&&K.attributeCheck(U,_))){if(!V[U]||J[U]){if(!(oc(_)&&(I.tagNameCheck instanceof RegExp&&ze(I.tagNameCheck,_)||I.tagNameCheck instanceof Function&&I.tagNameCheck(_))&&(I.attributeNameCheck instanceof RegExp&&ze(I.attributeNameCheck,U)||I.attributeNameCheck instanceof Function&&I.attributeNameCheck(U,_))||U==="is"&&I.allowCustomizedBuiltInElements&&(I.tagNameCheck instanceof RegExp&&ze(I.tagNameCheck,ee)||I.tagNameCheck instanceof Function&&I.tagNameCheck(ee))))return!1}else if(!si[U]){if(!ze(M,Yn(ee,D,""))){if(!((U==="src"||U==="xlink:href"||U==="href")&&_!=="script"&&Ff(ee,"data:")===0&&ql[_])){if(!(ae&&!ze(C,Yn(ee,D,"")))){if(ee)return!1}}}}}}}return!0},oc=function(_){return _!=="annotation-xml"&&bo(_,P)},ic=function(_){Rt(B.beforeSanitizeAttributes,_,null);const{attributes:U}=_;if(!U||fi(_))return;const ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let ge=U.length;for(;ge--;){const Me=U[ge],{name:ke,namespaceURI:Xe,value:Mt}=Me,Bn=_e(ke),hi=Mt;let Le=ke==="value"?hi:Tf(hi);if(ee.attrName=Bn,ee.attrValue=Le,ee.keepAttr=!0,ee.forceKeepAttr=void 0,Rt(B.uponSanitizeAttribute,_,ee),Le=ee.attrValue,Xl&&(Bn==="id"||Bn==="name")&&(cn(ke,_),Le=d2+Le),rt&&ze(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Le)){cn(ke,_);continue}if(Bn==="attributename"&&bo(Le,"href")){cn(ke,_);continue}if(ee.forceKeepAttr)continue;if(!ee.keepAttr){cn(ke,_);continue}if(!be&&ze(/\/>/i,Le)){cn(ke,_);continue}Ae&&Zr([H,L,W],sc=>{Le=Yn(Le,sc," ")});const ac=_e(_.nodeName);if(!uc(ac,Bn,Le)){cn(ke,_);continue}if(w&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Xe)switch(p.getAttributeType(ac,Bn)){case"TrustedHTML":{Le=w.createHTML(Le);break}case"TrustedScriptURL":{Le=w.createScriptURL(Le);break}}if(Le!==hi)try{Xe?_.setAttributeNS(Xe,ke,Le):_.setAttribute(ke,Le),fi(_)?It(_):Fa(t.removed)}catch{cn(ke,_)}}Rt(B.afterSanitizeAttributes,_,null)},y2=function ne(_){let U=null;const ee=tc(_);for(Rt(B.beforeSanitizeShadowDOM,_,null);U=ee.nextNode();)Rt(B.uponSanitizeShadowNode,U,null),rc(U),ic(U),U.content instanceof u&&ne(U.content);Rt(B.afterSanitizeShadowDOM,_,null)};return t.sanitize=function(ne){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=null,ee=null,ge=null,Me=null;if(li=!ne,li&&(ne="<!-->"),typeof ne!="string"&&!nc(ne))if(typeof ne.toString=="function"){if(ne=ne.toString(),typeof ne!="string")throw Kn("dirty is not a string, aborting")}else throw Kn("toString is not a function");if(!t.isSupported)return ne;if(Tt||di(_),t.removed=[],typeof ne=="string"&&(Nr=!1),Nr){if(ne.nodeName){const Mt=_e(ne.nodeName);if(!z[Mt]||$[Mt])throw Kn("root node is forbidden and cannot be sanitized in-place")}}else if(ne instanceof s)U=ec("<!---->"),ee=U.ownerDocument.importNode(ne,!0),ee.nodeType===Jn.element&&ee.nodeName==="BODY"||ee.nodeName==="HTML"?U=ee:U.appendChild(ee);else{if(!Vt&&!Ae&&!Oe&&ne.indexOf("<")===-1)return w&&Vu?w.createHTML(ne):ne;if(U=ec(ne),!U)return Vt?null:Vu?k:""}U&&Zt&&It(U.firstChild);const ke=tc(Nr?ne:U);for(;ge=ke.nextNode();)rc(ge),ic(ge),ge.content instanceof u&&y2(ge.content);if(Nr)return ne;if(Vt){if(Lu)for(Me=E.call(U.ownerDocument);U.firstChild;)Me.appendChild(U.firstChild);else Me=U;return(V.shadowroot||V.shadowrootmode)&&(Me=j.call(r,Me,!0)),Me}let Xe=Oe?U.outerHTML:U.innerHTML;return Oe&&z["!doctype"]&&U.ownerDocument&&U.ownerDocument.doctype&&U.ownerDocument.doctype.name&&ze(Va,U.ownerDocument.doctype.name)&&(Xe="<!DOCTYPE "+U.ownerDocument.doctype.name+`>
17
- `+Xe),Ae&&Zr([H,L,W],Mt=>{Xe=Yn(Xe,Mt," ")}),w&&Vu?w.createHTML(Xe):Xe},t.setConfig=function(){let ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};di(ne),Tt=!0},t.clearConfig=function(){Mn=null,Tt=!1},t.isValidAttribute=function(ne,_,U){Mn||di({});const ee=_e(ne),ge=_e(_);return uc(ee,ge,U)},t.addHook=function(ne,_){typeof _=="function"&&Zn(B[ne],_)},t.removeHook=function(ne,_){if(_!==void 0){const U=Sf(B[ne],_);return U===-1?void 0:Df(B[ne],U,1)[0]}return Fa(B[ne])},t.removeHooks=function(ne){B[ne]=[]},t.removeAllHooks=function(){B=Ra()},t}var Wf=Ma();const Ba={content:{type:Object,required:!0},card:{type:Boolean,default:!0}},za=new Ze({html:!0,linkify:!0});za.linkify.set({fuzzyLink:!1});function Gf(e){let t=e;return t=t.replace(/([\u2026\u3001\u3002\uff0c\uff1a\uff1b\uff1f\uff01)】」』]|[;:,.!?(\[\]])[\t ]*(#{2,6}\s+)/g,`$1
14
+ `;break}return r},mn.prototype.render=function(e,t,n){let r="";const o=this.rules;for(let u=0,a=e.length;u<a;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 We(){this.__rules__=[],this.__cache__=null}We.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},We.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))})})},We.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},We.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},We.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},We.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},We.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},We.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)},We.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},We.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function lt(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}lt.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},lt.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},lt.prototype.attrSet=function(t,n){const r=this.attrIndex(t),o=[t,n];r<0?this.attrPush(o):this.attrs[r]=o},lt.prototype.attrGet=function(t){const n=this.attrIndex(t);let r=null;return n>=0&&(r=this.attrs[n][1]),r},lt.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 ea(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}ea.prototype.Token=lt;const Md=/\r\n?|\n/g,Bd=/\0/g;function zd(e){let t;t=e.src.replace(Md,`
15
+ `),t=t.replace(Bd,"�"),e.src=t}function jd(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 Hd(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 $d(e){return/^<a[>\s]/i.test(e)}function Ud(e){return/^<\/a\s*>/i.test(e)}function Wd(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 a=o.length-1;a>=0;a--){const s=o[a];if(s.type==="link_close"){for(a--;o[a].level!==s.level&&o[a].type!=="link_open";)a--;continue}if(s.type==="html_inline"&&($d(s.content)&&u>0&&u--,Ud(s.content)&&u++),!(u>0)&&s.type==="text"&&e.md.linkify.test(s.content)){const l=s.content;let d=e.md.linkify.match(l);const f=[];let c=s.level,h=0;d.length>0&&d[0].index===0&&a>0&&o[a-1].type==="text_special"&&(d=d.slice(1));for(let p=0;p<d.length;p++){const m=d[p].url,v=e.md.normalizeLink(m);if(!e.md.validateLink(v))continue;let x=d[p].text;d[p].schema?d[p].schema==="mailto:"&&!/^mailto:/i.test(x)?x=e.md.normalizeLinkText("mailto:"+x).replace(/^mailto:/,""):x=e.md.normalizeLinkText(x):x=e.md.normalizeLinkText("http://"+x).replace(/^http:\/\//,"");const y=d[p].index;if(y>h){const k=new e.Token("text","",0);k.content=l.slice(h,y),k.level=c,f.push(k)}const g=new e.Token("link_open","a",1);g.attrs=[["href",v]],g.level=c++,g.markup="linkify",g.info="auto",f.push(g);const b=new e.Token("text","",0);b.content=x,b.level=c,f.push(b);const w=new e.Token("link_close","a",-1);w.level=--c,w.markup="linkify",w.info="auto",f.push(w),h=d[p].lastIndex}if(h<l.length){const p=new e.Token("text","",0);p.content=l.slice(h),p.level=c,f.push(p)}t[n].children=o=Qi(o,a,f)}}}}const ta=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Gd=/\((c|tm|r)\)/i,Xd=/\((c|tm|r)\)/ig,qd={c:"©",r:"®",tm:"™"};function Zd(e,t){return qd[t.toLowerCase()]}function Yd(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(Xd,Zd)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function Kd(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&ta.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 Qd(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Gd.test(e.tokens[t].content)&&Yd(e.tokens[t].children),ta.test(e.tokens[t].content)&&Kd(e.tokens[t].children))}const Jd=/['"]/,na=/['"]/g,ra="’";function $r(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function e0(e,t){let n;const r=[];for(let o=0;o<e.length;o++){const u=e[o],a=e[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=a);n--);if(r.length=n+1,u.type!=="text")continue;let s=u.content,l=0,d=s.length;e:for(;l<d;){na.lastIndex=l;const f=na.exec(s);if(!f)break;let c=!0,h=!0;l=f.index+1;const p=f[0]==="'";let m=32;if(f.index-1>=0)m=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){m=e[n].content.charCodeAt(e[n].content.length-1);break}let v=32;if(l<d)v=s.charCodeAt(l);else for(n=o+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){v=e[n].content.charCodeAt(0);break}const x=Wn(m)||Un(String.fromCharCode(m)),y=Wn(v)||Un(String.fromCharCode(v)),g=$n(m),b=$n(v);if(b?c=!1:y&&(g||x||(c=!1)),g?h=!1:x&&(b||y||(h=!1)),v===34&&f[0]==='"'&&m>=48&&m<=57&&(h=c=!1),c&&h&&(c=x,h=y),!c&&!h){p&&(u.content=$r(u.content,f.index,ra));continue}if(h)for(n=r.length-1;n>=0;n--){let w=r[n];if(r[n].level<a)break;if(w.single===p&&r[n].level===a){w=r[n];let k,D;p?(k=t.md.options.quotes[2],D=t.md.options.quotes[3]):(k=t.md.options.quotes[0],D=t.md.options.quotes[1]),u.content=$r(u.content,f.index,D),e[w.token].content=$r(e[w.token].content,w.pos,k),l+=D.length-1,w.token===o&&(l+=k.length-1),s=u.content,d=s.length,r.length=n;continue e}}c?r.push({token:o,pos:f.index,single:p,level:a}):h&&p&&(u.content=$r(u.content,f.index,ra))}}}function t0(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!Jd.test(e.tokens[t].content)||e0(e.tokens[t].children,e)}function n0(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 a=r[u].children,s=a.length;for(t=0;t<s;t++)a[t].type==="text_special"&&(a[t].type="text");for(t=n=0;t<s;t++)a[t].type==="text"&&t+1<s&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}}const no=[["normalize",zd],["block",jd],["inline",Hd],["linkify",Wd],["replacements",Qd],["smartquotes",t0],["text_join",n0]];function ro(){this.ruler=new We;for(let e=0;e<no.length;e++)this.ruler.push(no[e][0],no[e][1])}ro.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},ro.prototype.State=ea;function vt(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,a=0,s=0,l=0,d=o.length,f=!1;a<d;a++){const c=o.charCodeAt(a);if(!f)if(ce(c)){s++,c===9?l+=4-l%4:l++;continue}else f=!0;(c===10||a===d-1)&&(c!==10&&a++,this.bMarks.push(u),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),f=!1,s=0,l=0,u=a+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}vt.prototype.push=function(e,t,n){const r=new lt(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},vt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},vt.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},vt.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!ce(r))break}return t},vt.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!ce(this.src.charCodeAt(--t)))return t+1;return t},vt.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t},vt.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},vt.prototype.getLines=function(t,n,r,o){if(t>=n)return"";const u=new Array(n-t);for(let a=0,s=t;s<n;s++,a++){let l=0;const d=this.bMarks[s];let f=d,c;for(s+1<n||o?c=this.eMarks[s]+1:c=this.eMarks[s];f<c&&l<r;){const h=this.src.charCodeAt(f);if(ce(h))h===9?l+=4-(l+this.bsCount[s])%4:l++;else if(f-d<this.tShift[s])l++;else break;f++}l>r?u[a]=new Array(l-r+1).join(" ")+this.src.slice(f,c):u[a]=this.src.slice(f,c)}return u.join("")},vt.prototype.Token=lt;const r0=65536;function uo(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function ua(e){const t=[],n=e.length;let r=0,o=e.charCodeAt(r),u=!1,a=0,s="";for(;r<n;)o===124&&(u?(s+=e.substring(a,r-1),a=r):(t.push(s+e.substring(a,r)),s="",a=r+1)),u=o===92,r++,o=e.charCodeAt(r);return t.push(s+e.substring(a)),t}function u0(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 a=e.src.charCodeAt(u++);if(a!==124&&a!==45&&a!==58||u>=e.eMarks[o])return!1;const s=e.src.charCodeAt(u++);if(s!==124&&s!==45&&s!==58&&!ce(s)||a===45&&ce(s))return!1;for(;u<e.eMarks[o];){const w=e.src.charCodeAt(u);if(w!==124&&w!==45&&w!==58&&!ce(w))return!1;u++}let l=uo(e,t+1),d=l.split("|");const f=[];for(let w=0;w<d.length;w++){const k=d[w].trim();if(!k){if(w===0||w===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(k))return!1;k.charCodeAt(k.length-1)===58?f.push(k.charCodeAt(0)===58?"center":"right"):k.charCodeAt(0)===58?f.push("left"):f.push("")}if(l=uo(e,t).trim(),l.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;d=ua(l),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop();const c=d.length;if(c===0||c!==f.length)return!1;if(r)return!0;const h=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),v=[t,0];m.map=v;const x=e.push("thead_open","thead",1);x.map=[t,t+1];const y=e.push("tr_open","tr",1);y.map=[t,t+1];for(let w=0;w<d.length;w++){const k=e.push("th_open","th",1);f[w]&&(k.attrs=[["style","text-align:"+f[w]]]);const D=e.push("inline","",0);D.content=d[w].trim(),D.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let g,b=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let w=!1;for(let D=0,S=p.length;D<S;D++)if(p[D](e,o,n,!0)){w=!0;break}if(w||(l=uo(e,o).trim(),!l)||e.sCount[o]-e.blkIndent>=4||(d=ua(l),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),b+=c-d.length,b>r0))break;if(o===t+2){const D=e.push("tbody_open","tbody",1);D.map=g=[t+2,0]}const k=e.push("tr_open","tr",1);k.map=[o,o+1];for(let D=0;D<c;D++){const S=e.push("td_open","td",1);f[D]&&(S.attrs=[["style","text-align:"+f[D]]]);const E=e.push("inline","",0);E.content=d[D]?d[D].trim():"",E.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),v[1]=o,e.parentType=h,e.line=o,!0}function o0(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 i0(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 a=e.src.charCodeAt(o);if(a!==126&&a!==96)return!1;let s=o;o=e.skipChars(o,a);let l=o-s;if(l<3)return!1;const d=e.src.slice(s,o),f=e.src.slice(o,u);if(a===96&&f.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let c=t,h=!1;for(;c++,!(c>=n||(o=s=e.bMarks[c]+e.tShift[c],u=e.eMarks[c],o<u&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(o)===a&&!(e.sCount[c]-e.blkIndent>=4)&&(o=e.skipChars(o,a),!(o-s<l)&&(o=e.skipSpaces(o),!(o<u)))){h=!0;break}l=e.sCount[t],e.line=c+(h?1:0);const p=e.push("fence","code",0);return p.info=f,p.content=e.getLines(t+1,c,l,!0),p.markup=d,p.map=[t,e.line],!0}function a0(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==62)return!1;if(r)return!0;const s=[],l=[],d=[],f=[],c=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let p=!1,m;for(m=t;m<n;m++){const b=e.sCount[m]<e.blkIndent;if(o=e.bMarks[m]+e.tShift[m],u=e.eMarks[m],o>=u)break;if(e.src.charCodeAt(o++)===62&&!b){let k=e.sCount[m]+1,D,S;e.src.charCodeAt(o)===32?(o++,k++,S=!1,D=!0):e.src.charCodeAt(o)===9?(D=!0,(e.bsCount[m]+k)%4===3?(o++,k++,S=!1):S=!0):D=!1;let E=k;for(s.push(e.bMarks[m]),e.bMarks[m]=o;o<u;){const X=e.src.charCodeAt(o);if(ce(X))X===9?E+=4-(E+e.bsCount[m]+(S?1:0))%4:E++;else break;o++}p=o>=u,l.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(D?1:0),d.push(e.sCount[m]),e.sCount[m]=E-k,f.push(e.tShift[m]),e.tShift[m]=o-e.bMarks[m];continue}if(p)break;let w=!1;for(let k=0,D=c.length;k<D;k++)if(c[k](e,m,n,!0)){w=!0;break}if(w){e.lineMax=m,e.blkIndent!==0&&(s.push(e.bMarks[m]),l.push(e.bsCount[m]),f.push(e.tShift[m]),d.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}s.push(e.bMarks[m]),l.push(e.bsCount[m]),f.push(e.tShift[m]),d.push(e.sCount[m]),e.sCount[m]=-1}const v=e.blkIndent;e.blkIndent=0;const x=e.push("blockquote_open","blockquote",1);x.markup=">";const y=[t,0];x.map=y,e.md.block.tokenize(e,t,m);const g=e.push("blockquote_close","blockquote",-1);g.markup=">",e.lineMax=a,e.parentType=h,y[1]=e.line;for(let b=0;b<f.length;b++)e.bMarks[b+t]=s[b],e.tShift[b+t]=f[b],e.sCount[b+t]=d[b],e.bsCount[b+t]=l[b];return e.blkIndent=v,!0}function s0(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 a=e.src.charCodeAt(u++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;u<o;){const d=e.src.charCodeAt(u++);if(d!==a&&!ce(d))return!1;d===a&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(a)),!0}function oa(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(!ce(u))return-1}return r}function ia(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),!ce(u))?-1:o}function l0(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 c0(e,t,n,r){let o,u,a,s,l=t,d=!0;if(e.sCount[l]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let f=!1;r&&e.parentType==="paragraph"&&e.sCount[l]>=e.blkIndent&&(f=!0);let c,h,p;if((p=ia(e,l))>=0){if(c=!0,a=e.bMarks[l]+e.tShift[l],h=Number(e.src.slice(a,p-1)),f&&h!==1)return!1}else if((p=oa(e,l))>=0)c=!1;else return!1;if(f&&e.skipSpaces(p)>=e.eMarks[l])return!1;if(r)return!0;const m=e.src.charCodeAt(p-1),v=e.tokens.length;c?(s=e.push("ordered_list_open","ol",1),h!==1&&(s.attrs=[["start",h]])):s=e.push("bullet_list_open","ul",1);const x=[l,0];s.map=x,s.markup=String.fromCharCode(m);let y=!1;const g=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";l<n;){u=p,o=e.eMarks[l];const w=e.sCount[l]+p-(e.bMarks[l]+e.tShift[l]);let k=w;for(;u<o;){const G=e.src.charCodeAt(u);if(G===9)k+=4-(k+e.bsCount[l])%4;else if(G===32)k++;else break;u++}const D=u;let S;D>=o?S=1:S=k-w,S>4&&(S=1);const E=w+S;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(m);const X=[l,0];s.map=X,c&&(s.info=e.src.slice(a,p-1));const j=e.tight,B=e.tShift[l],H=e.sCount[l],L=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=E,e.tight=!0,e.tShift[l]=D-e.bMarks[l],e.sCount[l]=k,D>=o&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||y)&&(d=!1),y=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=L,e.tShift[l]=B,e.sCount[l]=H,e.tight=j,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(m),l=e.line,X[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let W=!1;for(let G=0,N=g.length;G<N;G++)if(g[G](e,l,n,!0)){W=!0;break}if(W)break;if(c){if(p=ia(e,l),p<0)break;a=e.bMarks[l]+e.tShift[l]}else if(p=oa(e,l),p<0)break;if(m!==e.src.charCodeAt(p-1))break}return c?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(m),x[1]=l,e.line=l,e.parentType=b,d&&l0(e,v),!0}function d0(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==91)return!1;function s(g){const b=e.lineMax;if(g>=b||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 S=e.md.block.ruler.getRules("reference"),E=e.parentType;e.parentType="reference";let X=!1;for(let j=0,B=S.length;j<B;j++)if(S[j](e,g,b,!0)){X=!0;break}if(e.parentType=E,X)return null}const k=e.bMarks[g]+e.tShift[g],D=e.eMarks[g];return e.src.slice(k,D+1)}let l=e.src.slice(o,u+1);u=l.length;let d=-1;for(o=1;o<u;o++){const g=l.charCodeAt(o);if(g===91)return!1;if(g===93){d=o;break}else if(g===10){const b=s(a);b!==null&&(l+=b,u=l.length,a++)}else if(g===92&&(o++,o<u&&l.charCodeAt(o)===10)){const b=s(a);b!==null&&(l+=b,u=l.length,a++)}}if(d<0||l.charCodeAt(d+1)!==58)return!1;for(o=d+2;o<u;o++){const g=l.charCodeAt(o);if(g===10){const b=s(a);b!==null&&(l+=b,u=l.length,a++)}else if(!ce(g))break}const f=e.md.helpers.parseLinkDestination(l,o,u);if(!f.ok)return!1;const c=e.md.normalizeLink(f.str);if(!e.md.validateLink(c))return!1;o=f.pos;const h=o,p=a,m=o;for(;o<u;o++){const g=l.charCodeAt(o);if(g===10){const b=s(a);b!==null&&(l+=b,u=l.length,a++)}else if(!ce(g))break}let v=e.md.helpers.parseLinkTitle(l,o,u);for(;v.can_continue;){const g=s(a);if(g===null)break;l+=g,o=u,u=l.length,a++,v=e.md.helpers.parseLinkTitle(l,o,u,v)}let x;for(o<u&&m!==o&&v.ok?(x=v.str,o=v.pos):(x="",o=h,a=p);o<u;){const g=l.charCodeAt(o);if(!ce(g))break;o++}if(o<u&&l.charCodeAt(o)!==10&&x)for(x="",o=h,a=p;o<u;){const g=l.charCodeAt(o);if(!ce(g))break;o++}if(o<u&&l.charCodeAt(o)!==10)return!1;const y=Hr(l.slice(1,d));return y?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[y]>"u"&&(e.env.references[y]={title:x,href:c}),e.line=a),!0):!1}const f0=["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"],h0="[a-zA-Z_:][a-zA-Z0-9:._-]*",m0="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",aa="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+h0+"(?:\\s*=\\s*"+m0+")?)")+"*\\s*\\/?>",sa="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",p0="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",g0="<[?][\\s\\S]*?[?]>",b0="<![A-Za-z][^>]*>",y0="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",w0=new RegExp("^(?:"+aa+"|"+sa+"|"+p0+"|"+g0+"|"+b0+"|"+y0+")"),x0=new RegExp("^(?:"+aa+"|"+sa+")"),pn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+f0.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(x0.source+"\\s*$"),/^$/,!1]];function v0(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 a=e.src.slice(o,u),s=0;for(;s<pn.length&&!pn[s][0].test(a);s++);if(s===pn.length)return!1;if(r)return pn[s][2];let l=t+1;if(!pn[s][1].test(a)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(o=e.bMarks[l]+e.tShift[l],u=e.eMarks[l],a=e.src.slice(o,u),pn[s][1].test(a)){a.length!==0&&l++;break}}e.line=l;const d=e.push("html_block","",0);return d.map=[t,l],d.content=e.getLines(t,l,e.blkIndent,!0),!0}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)return!1;let a=e.src.charCodeAt(o);if(a!==35||o>=u)return!1;let s=1;for(a=e.src.charCodeAt(++o);a===35&&o<u&&s<=6;)s++,a=e.src.charCodeAt(++o);if(s>6||o<u&&!ce(a))return!1;if(r)return!0;u=e.skipSpacesBack(u,o);const l=e.skipCharsBack(u,35,o);l>o&&ce(e.src.charCodeAt(l-1))&&(u=l),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 c=e.push("heading_close","h"+String(s),-1);return c.markup="########".slice(0,s),!0}function k0(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,a,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 p=e.bMarks[s]+e.tShift[s];const m=e.eMarks[s];if(p<m&&(a=e.src.charCodeAt(p),(a===45||a===61)&&(p=e.skipChars(p,a),p=e.skipSpaces(p),p>=m))){u=a===61?1:2;break}}if(e.sCount[s]<0)continue;let h=!1;for(let p=0,m=r.length;p<m;p++)if(r[p](e,s,n,!0)){h=!0;break}if(h)break}if(!u)return!1;const l=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(a),d.map=[t,e.line];const f=e.push("inline","",0);f.content=l,f.map=[t,e.line-1],f.children=[];const c=e.push("heading_close","h"+String(u),-1);return c.markup=String.fromCharCode(a),e.parentType=o,!0}function C0(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,c=r.length;f<c;f++)if(r[f](e,u,n,!0)){d=!0;break}if(d)break}const a=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 l=e.push("inline","",0);return l.content=a,l.map=[t,e.line],l.children=[],e.push("paragraph_close","p",-1),e.parentType=o,!0}const Ur=[["table",u0,["paragraph","reference"]],["code",o0],["fence",i0,["paragraph","reference","blockquote","list"]],["blockquote",a0,["paragraph","reference","blockquote","list"]],["hr",s0,["paragraph","reference","blockquote","list"]],["list",c0,["paragraph","reference","blockquote"]],["reference",d0],["html_block",v0,["paragraph","reference","blockquote"]],["heading",A0,["paragraph","reference","blockquote"]],["lheading",k0],["paragraph",C0]];function Wr(){this.ruler=new We;for(let e=0;e<Ur.length;e++)this.ruler.push(Ur[e][0],Ur[e][1],{alt:(Ur[e][2]||[]).slice()})}Wr.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),o=r.length,u=e.md.options.maxNesting;let a=t,s=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n||e.sCount[a]<e.blkIndent));){if(e.level>=u){e.line=n;break}const l=e.line;let d=!1;for(let f=0;f<o;f++)if(d=r[f](e,a,n,!1),d){if(l>=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),a=e.line,a<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},Wr.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)},Wr.prototype.State=vt;function Gn(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}Gn.prototype.pushPending=function(){const e=new lt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Gn.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new lt(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},Gn.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 a=u-e,s=u<n?this.src.charCodeAt(u):32,l=Wn(o)||Un(String.fromCharCode(o)),d=Wn(s)||Un(String.fromCharCode(s)),f=$n(o),c=$n(s),h=!c&&(!d||f||l),p=!f&&(!l||c||d);return{can_open:h&&(t||!p||l),can_close:p&&(t||!h||d),length:a}},Gn.prototype.Token=lt;function E0(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 _0(e,t){let n=e.pos;for(;n<e.posMax&&!E0(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const S0=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function F0(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(S0);if(!o)return!1;const u=o[1],a=e.md.linkify.matchAtStart(e.src.slice(n-u.length));if(!a)return!1;let s=a.url;if(s.length<=u.length)return!1;let l=s.length;for(;l>0&&s.charCodeAt(l-1)===42;)l--;l!==s.length&&(s=s.slice(0,l));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 c=e.push("text","",0);c.content=e.md.normalizeLinkText(s);const h=e.push("link_close","a",-1);h.markup="linkify",h.info="auto"}return e.pos+=s.length-u.length,!0}function D0(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&&ce(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const oo=[];for(let e=0;e<256;e++)oo.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){oo[e.charCodeAt(0)]=1});function N0(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),!!ce(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 a="\\"+u;if(!t){const s=e.push("text_special","",0);o<256&&oo[o]!==0?s.content=u:s.content=a,s.markup=a,s.info="escape"}return e.pos=n+1,!0}function T0(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 a=e.src.slice(o,n),s=a.length;if(e.backticksScanned&&(e.backticks[s]||0)<=o)return t||(e.pending+=a),e.pos+=s,!0;let l=n,d;for(;(d=e.src.indexOf("`",l))!==-1;){for(l=d+1;l<u&&e.src.charCodeAt(l)===96;)l++;const f=l-d;if(f===s){if(!t){const c=e.push("code_inline","code",0);c.markup=a,c.content=e.src.slice(n,d).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[f]=d}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=s,!0}function I0(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 a=String.fromCharCode(r);if(u<2)return!1;let s;u%2&&(s=e.push("text","",0),s.content=a,u--);for(let l=0;l<u;l+=2)s=e.push("text","",0),s.content=a+a,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 la(e,t){let n;const r=[],o=t.length;for(let u=0;u<o;u++){const a=t[u];if(a.marker!==126||a.end===-1)continue;const s=t[a.end];n=e.tokens[a.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 a=u+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,u!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[u],e.tokens[u]=n)}}function O0(e){const t=e.tokens_meta,n=e.tokens_meta.length;la(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&la(e,t[r].delimiters)}const ca={tokenize:I0,postProcess:O0};function L0(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 a=e.push("text","",0);a.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 da(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],a=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),l=e.tokens[o.token];l.type=a?"strong_open":"em_open",l.tag=a?"strong":"em",l.nesting=1,l.markup=a?s+s:s,l.content="";const d=e.tokens[u.token];d.type=a?"strong_close":"em_close",d.tag=a?"strong":"em",d.nesting=-1,d.markup=a?s+s:s,d.content="",a&&(e.tokens[t[r-1].token].content="",e.tokens[t[o.end+1].token].content="",r--)}}function V0(e){const t=e.tokens_meta,n=e.tokens_meta.length;da(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&da(e,t[r].delimiters)}const fa={tokenize:L0,postProcess:V0};function P0(e,t){let n,r,o,u,a="",s="",l=e.pos,d=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,c=e.posMax,h=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<c&&e.src.charCodeAt(m)===40){for(d=!1,m++;m<c&&(n=e.src.charCodeAt(m),!(!ce(n)&&n!==10));m++);if(m>=c)return!1;if(l=m,o=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),o.ok){for(a=e.md.normalizeLink(o.str),e.md.validateLink(a)?m=o.pos:a="",l=m;m<c&&(n=e.src.charCodeAt(m),!(!ce(n)&&n!==10));m++);if(o=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<c&&l!==m&&o.ok)for(s=o.str,m=o.pos;m<c&&(n=e.src.charCodeAt(m),!(!ce(n)&&n!==10));m++);}(m>=c||e.src.charCodeAt(m)!==41)&&(d=!0),m++}if(d){if(typeof e.env.references>"u")return!1;if(m<c&&e.src.charCodeAt(m)===91?(l=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(l,m++):m=p+1):m=p+1,r||(r=e.src.slice(h,p)),u=e.env.references[Hr(r)],!u)return e.pos=f,!1;a=u.href,s=u.title}if(!t){e.pos=h,e.posMax=p;const v=e.push("link_open","a",1),x=[["href",a]];v.attrs=x,s&&x.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=c,!0}function R0(e,t){let n,r,o,u,a,s,l,d,f="";const c=e.pos,h=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(u=m+1,u<h&&e.src.charCodeAt(u)===40){for(u++;u<h&&(n=e.src.charCodeAt(u),!(!ce(n)&&n!==10));u++);if(u>=h)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<h&&(n=e.src.charCodeAt(u),!(!ce(n)&&n!==10));u++);if(s=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<h&&d!==u&&s.ok)for(l=s.str,u=s.pos;u<h&&(n=e.src.charCodeAt(u),!(!ce(n)&&n!==10));u++);else l="";if(u>=h||e.src.charCodeAt(u)!==41)return e.pos=c,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<h&&e.src.charCodeAt(u)===91?(d=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?o=e.src.slice(d,u++):u=m+1):u=m+1,o||(o=e.src.slice(p,m)),a=e.env.references[Hr(o)],!a)return e.pos=c,!1;f=a.href,l=a.title}if(!t){r=e.src.slice(p,m);const v=[];e.md.inline.parse(r,e.md,e.env,v);const x=e.push("image","img",0),y=[["src",f],["alt",""]];x.attrs=y,x.children=v,x.content=r,l&&y.push(["title",l])}return e.pos=u,e.posMax=h,!0}const M0=/^([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])?)*)$/,B0=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function z0(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 a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const u=e.src.slice(r+1,n);if(B0.test(u)){const a=e.md.normalizeLink(u);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.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(M0.test(u)){const a=e.md.normalizeLink("mailto:"+u);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.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 j0(e){return/^<a[>\s]/i.test(e)}function H0(e){return/^<\/a\s*>/i.test(e)}function $0(e){const t=e|32;return t>=97&&t<=122}function U0(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&&!$0(o))return!1;const u=e.src.slice(r).match(w0);if(!u)return!1;if(!t){const a=e.push("html_inline","",0);a.content=u[0],j0(a.content)&&e.linkLevel++,H0(a.content)&&e.linkLevel--}return e.pos+=u[0].length,!0}const W0=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,G0=/^&([a-z][a-z0-9]{1,31});/i;function X0(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(W0);if(u){if(!t){const a=u[1][0].toLowerCase()==="x"?parseInt(u[1].slice(1),16):parseInt(u[1],10),s=e.push("text_special","",0);s.content=to(a)?jr(a):jr(65533),s.markup=u[0],s.info="entity"}return e.pos+=u[0].length,!0}}else{const u=e.src.slice(n).match(G0);if(u){const a=Ki(u[0]);if(a!==u[0]){if(!t){const s=e.push("text_special","",0);s.content=a,s.markup=u[0],s.info="entity"}return e.pos+=u[0].length,!0}}}return!1}function ha(e){const t={},n=e.length;if(!n)return;let r=0,o=-2;const u=[];for(let a=0;a<n;a++){const s=e[a];if(u.push(0),(e[r].marker!==s.marker||o!==s.token-1)&&(r=a),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 l=t[s.marker][(s.open?3:0)+s.length%3];let d=r-u[r]-1,f=d;for(;d>l;d-=u[d]+1){const c=e[d];if(c.marker===s.marker&&c.open&&c.end<0){let h=!1;if((c.close||s.open)&&(c.length+s.length)%3===0&&(c.length%3!==0||s.length%3!==0)&&(h=!0),!h){const p=d>0&&!e[d-1].open?u[d-1]+1:0;u[a]=a-d+p,u[d]=p,s.open=!1,c.end=a,c.close=!1,f=-1,o=-2;break}}}f!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=f)}}function q0(e){const t=e.tokens_meta,n=e.tokens_meta.length;ha(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&ha(t[r].delimiters)}function Z0(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 io=[["text",_0],["linkify",F0],["newline",D0],["escape",N0],["backticks",T0],["strikethrough",ca.tokenize],["emphasis",fa.tokenize],["link",P0],["image",R0],["autolink",z0],["html_inline",U0],["entity",X0]],ao=[["balance_pairs",q0],["strikethrough",ca.postProcess],["emphasis",fa.postProcess],["fragments_join",Z0]];function Xn(){this.ruler=new We;for(let e=0;e<io.length;e++)this.ruler.push(io[e][0],io[e][1]);this.ruler2=new We;for(let e=0;e<ao.length;e++)this.ruler2.push(ao[e][0],ao[e][1])}Xn.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 a=!1;if(e.level<o){for(let s=0;s<r;s++)if(e.level++,a=n[s](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,u[t]=e.pos},Xn.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 a=!1;if(e.level<o){for(let s=0;s<n;s++)if(a=t[s](e,!1),a){if(u>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Xn.prototype.parse=function(e,t,n,r){const o=new this.State(e,t,n,r);this.tokenize(o);const u=this.ruler2.getRules(""),a=u.length;for(let s=0;s<a;s++)u[s](o)},Xn.prototype.State=Gn;function Y0(e){const t={};e=e||{},t.src_Any=Gi.source,t.src_Cc=Xi.source,t.src_Z=Zi.source,t.src_P=Ku.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 so(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function Gr(e){return Object.prototype.toString.call(e)}function K0(e){return Gr(e)==="[object String]"}function Q0(e){return Gr(e)==="[object Object]"}function J0(e){return Gr(e)==="[object RegExp]"}function ma(e){return Gr(e)==="[object Function]"}function ef(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const pa={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function tf(e){return Object.keys(e||{}).reduce(function(t,n){return t||pa.hasOwnProperty(n)},!1)}const nf={"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}}},rf="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]",uf="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function of(e){e.__index__=-1,e.__text_cache__=""}function af(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function ga(){return function(e,t){t.normalize(e)}}function Xr(e){const t=e.re=Y0(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(rf),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,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l)}Object.keys(e.__schemas__).forEach(function(s){const l=e.__schemas__[s];if(l===null)return;const d={validate:null,link:null};if(e.__compiled__[s]=d,Q0(l)){J0(l.validate)?d.validate=af(l.validate):ma(l.validate)?d.validate=l.validate:u(s,l),ma(l.normalize)?d.normalize=l.normalize:l.normalize?u(s,l):d.normalize=ga();return}if(K0(l)){o.push(s);return}u(s,l)}),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:ga()};const a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(ef).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","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"),of(e)}function sf(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 lo(e,t){const n=new sf(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function qe(e,t){if(!(this instanceof qe))return new qe(e,t);t||tf(e)&&(t=e,e={}),this.__opts__=so({},pa,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=so({},nf,e),this.__compiled__={},this.__tlds__=uf,this.__tlds_replaced__=!1,this.re={},Xr(this)}qe.prototype.add=function(t,n){return this.__schemas__[t]=n,Xr(this),this},qe.prototype.set=function(t){return this.__opts__=so(this.__opts__,t),this},qe.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,o,u,a,s,l,d,f;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(u=this.testSchemaAt(t,n[2],l.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&&(a=r.index+r[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,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&&(a=o.index+o[1].length,s=o.index+o[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0},qe.prototype.pretest=function(t){return this.re.pretest.test(t)},qe.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0},qe.prototype.match=function(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(lo(this,r)),r=this.__last_index__);let o=r?t.slice(r):t;for(;this.test(o);)n.push(lo(this,r)),o=o.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null},qe.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,lo(this,0)):null},qe.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(),Xr(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Xr(this),this)},qe.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},qe.prototype.onCompile=function(){};const gn=2147483647,At=36,co=1,qn=26,lf=38,cf=700,ba=72,ya=128,wa="-",df=/^xn--/,ff=/[^\0-\x7F]/,hf=/[\x2E\u3002\uFF0E\uFF61]/g,mf={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},fo=At-co,kt=Math.floor,ho=String.fromCharCode;function Ht(e){throw new RangeError(mf[e])}function pf(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function xa(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(hf,".");const o=e.split("."),u=pf(o,t).join(".");return r+u}function va(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 gf=e=>String.fromCodePoint(...e),bf=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:At},Aa=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},ka=function(e,t,n){let r=0;for(e=n?kt(e/cf):e>>1,e+=kt(e/t);e>fo*qn>>1;r+=At)e=kt(e/fo);return kt(r+(fo+1)*e/(e+lf))},Ca=function(e){const t=[],n=e.length;let r=0,o=ya,u=ba,a=e.lastIndexOf(wa);a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&Ht("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){const l=r;for(let f=1,c=At;;c+=At){s>=n&&Ht("invalid-input");const h=bf(e.charCodeAt(s++));h>=At&&Ht("invalid-input"),h>kt((gn-r)/f)&&Ht("overflow"),r+=h*f;const p=c<=u?co:c>=u+qn?qn:c-u;if(h<p)break;const m=At-p;f>kt(gn/m)&&Ht("overflow"),f*=m}const d=t.length+1;u=ka(r-l,d,l==0),kt(r/d)>gn-o&&Ht("overflow"),o+=kt(r/d),r%=d,t.splice(r++,0,o)}return String.fromCodePoint(...t)},Ea=function(e){const t=[];e=va(e);const n=e.length;let r=ya,o=0,u=ba;for(const l of e)l<128&&t.push(ho(l));const a=t.length;let s=a;for(a&&t.push(wa);s<n;){let l=gn;for(const f of e)f>=r&&f<l&&(l=f);const d=s+1;l-r>kt((gn-o)/d)&&Ht("overflow"),o+=(l-r)*d,r=l;for(const f of e)if(f<r&&++o>gn&&Ht("overflow"),f===r){let c=o;for(let h=At;;h+=At){const p=h<=u?co:h>=u+qn?qn:h-u;if(c<p)break;const m=c-p,v=At-p;t.push(ho(Aa(p+m%v,0))),c=kt(m/v)}t.push(ho(Aa(c,0))),u=ka(o,d,s===a),o=0,++s}++o,++r}return t.join("")},_a={version:"2.3.1",ucs2:{decode:va,encode:gf},decode:Ca,encode:Ea,toASCII:function(e){return xa(e,function(t){return ff.test(t)?"xn--"+Ea(t):t})},toUnicode:function(e){return xa(e,function(t){return df.test(t)?Ca(t.slice(4).toLowerCase()):t})}},yf={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"]}}}},wf=/^(vbscript|javascript|file|data):/,xf=/^data:image\/(gif|png|jpeg|webp);/;function vf(e){const t=e.trim().toLowerCase();return wf.test(t)?xf.test(t):!0}const Sa=["http:","https:","mailto:"];function Af(e){const t=Yu(e,!0);if(t.hostname&&(!t.protocol||Sa.indexOf(t.protocol)>=0))try{t.hostname=_a.toASCII(t.hostname)}catch{}return Hn(Zu(t))}function kf(e){const t=Yu(e,!0);if(t.hostname&&(!t.protocol||Sa.indexOf(t.protocol)>=0))try{t.hostname=_a.toUnicode(t.hostname)}catch{}return fn(Zu(t),fn.defaultChars+"%")}function Ze(e,t){if(!(this instanceof Ze))return new Ze(e,t);t||eo(e)||(t=e||{},e="default"),this.inline=new Xn,this.block=new Wr,this.core=new ro,this.renderer=new mn,this.linkify=new qe,this.validateLink=vf,this.normalizeLink=Af,this.normalizeLinkText=kf,this.utils=Od,this.helpers=zr({},Rd),this.options={},this.configure(e),t&&this.set(t)}Ze.prototype.set=function(e){return zr(this.options,e),this},Ze.prototype.configure=function(e){const t=this;if(eo(e)){const n=e;if(e=yf[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},Ze.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},Ze.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},Ze.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Ze.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},Ze.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Ze.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Ze.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:Fa,setPrototypeOf:Da,isFrozen:Cf,getPrototypeOf:Ef,getOwnPropertyDescriptor:_f}=Object;let{freeze:Be,seal:ut,create:qr}=Object,{apply:mo,construct:po}=typeof Reflect<"u"&&Reflect;Be||(Be=function(t){return t}),ut||(ut=function(t){return t}),mo||(mo=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)}),po||(po=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 Zr=je(Array.prototype.forEach),Sf=je(Array.prototype.lastIndexOf),Na=je(Array.prototype.pop),Zn=je(Array.prototype.push),Ff=je(Array.prototype.splice),Yr=je(String.prototype.toLowerCase),go=je(String.prototype.toString),bo=je(String.prototype.match),Yn=je(String.prototype.replace),Df=je(String.prototype.indexOf),Nf=je(String.prototype.trim),Ye=je(Object.prototype.hasOwnProperty),ze=je(RegExp.prototype.test),Kn=Tf(TypeError);function je(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 mo(e,t,r)}}function Tf(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return po(e,n)}}function oe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Yr;Da&&Da(e,null);let r=t.length;for(;r--;){let o=t[r];if(typeof o=="string"){const u=n(o);u!==o&&(Cf(t)||(t[r]=u),o=u)}e[o]=!0}return e}function If(e){for(let t=0;t<e.length;t++)Ye(e,t)||(e[t]=null);return e}function Ct(e){const t=qr(null);for(const[n,r]of Fa(e))Ye(e,n)&&(Array.isArray(r)?t[n]=If(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=Ct(r):t[n]=r);return t}function Qn(e,t){for(;e!==null;){const r=_f(e,t);if(r){if(r.get)return je(r.get);if(typeof r.value=="function")return je(r.value)}e=Ef(e)}function n(){return null}return n}const Ta=Be(["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"]),yo=Be(["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"]),wo=Be(["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"]),Of=Be(["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"]),xo=Be(["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"]),Lf=Be(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ia=Be(["#text"]),Oa=Be(["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"]),vo=Be(["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"]),La=Be(["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"]),Kr=Be(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Vf=ut(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Pf=ut(/<%[\w\W]*|[\w\W]*%>/gm),Rf=ut(/\$\{[\w\W]*/gm),Mf=ut(/^data-[\-\w.\u00B7-\uFFFF]+$/),Bf=ut(/^aria-[\-\w]+$/),Va=ut(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),zf=ut(/^(?:\w+script|data):/i),jf=ut(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Pa=ut(/^html$/i),Hf=ut(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ra=Object.freeze({__proto__:null,ARIA_ATTR:Bf,ATTR_WHITESPACE:jf,CUSTOM_ELEMENT:Hf,DATA_ATTR:Mf,DOCTYPE_NAME:Pa,ERB_EXPR:Pf,IS_ALLOWED_URI:Va,IS_SCRIPT_OR_DATA:zf,MUSTACHE_EXPR:Vf,TMPLIT_EXPR:Rf});const Jn={element:1,text:3,progressingInstruction:7,comment:8,document:9},$f=function(){return typeof window>"u"?null:window},Uf=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(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+u+" could not be created."),null}},Ma=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ba(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$f();const t=ne=>Ba(ne);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==Jn.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,o=r.currentScript,{DocumentFragment:u,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:d,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:h,trustedTypes:p}=e,m=l.prototype,v=Qn(m,"cloneNode"),x=Qn(m,"remove"),y=Qn(m,"nextSibling"),g=Qn(m,"childNodes"),b=Qn(m,"parentNode");if(typeof a=="function"){const ne=n.createElement("template");ne.content&&ne.content.ownerDocument&&(n=ne.content.ownerDocument)}let w,k="";const{implementation:D,createNodeIterator:S,createDocumentFragment:E,getElementsByTagName:X}=n,{importNode:j}=r;let B=Ma();t.isSupported=typeof Fa=="function"&&typeof b=="function"&&D&&D.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:H,ERB_EXPR:L,TMPLIT_EXPR:W,DATA_ATTR:G,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:C,ATTR_WHITESPACE:F,CUSTOM_ELEMENT:P}=Ra;let{IS_ALLOWED_URI:M}=Ra,z=null;const T=oe({},[...Ta,...yo,...wo,...xo,...Ia]);let V=null;const O=oe({},[...Oa,...vo,...La,...Kr]);let I=Object.seal(qr(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}})),$=null,J=null;const K=Object.seal(qr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Y=!0,te=!0,ae=!1,be=!0,Ae=!1,rt=!0,Oe=!1,Nt=!1,Zt=!1,Vt=!1,Lu=!1,Vu=!1,Xl=!0,ql=!1;const d2="user-content-";let ii=!0,Tr=!1,Pn={},Tt=null;const ai=oe({},["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 Zl=null;const Yl=oe({},["audio","video","img","source","image","track"]);let si=null;const Kl=oe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Pu="http://www.w3.org/1998/Math/MathML",Ru="http://www.w3.org/2000/svg",Pt="http://www.w3.org/1999/xhtml";let Rn=Pt,li=!1,ci=null;const f2=oe({},[Pu,Ru,Pt],go);let Mu=oe({},["mi","mo","mn","ms","mtext"]),Bu=oe({},["annotation-xml"]);const h2=oe({},["title","style","font","a","script"]);let Ir=null;const m2=["application/xhtml+xml","text/html"],p2="text/html";let _e=null,Mn=null;const g2=n.createElement("form"),Ql=function(_){return _ instanceof RegExp||_ instanceof Function},di=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Mn&&Mn===_)){if((!_||typeof _!="object")&&(_={}),_=Ct(_),Ir=m2.indexOf(_.PARSER_MEDIA_TYPE)===-1?p2:_.PARSER_MEDIA_TYPE,_e=Ir==="application/xhtml+xml"?go:Yr,z=Ye(_,"ALLOWED_TAGS")?oe({},_.ALLOWED_TAGS,_e):T,V=Ye(_,"ALLOWED_ATTR")?oe({},_.ALLOWED_ATTR,_e):O,ci=Ye(_,"ALLOWED_NAMESPACES")?oe({},_.ALLOWED_NAMESPACES,go):f2,si=Ye(_,"ADD_URI_SAFE_ATTR")?oe(Ct(Kl),_.ADD_URI_SAFE_ATTR,_e):Kl,Zl=Ye(_,"ADD_DATA_URI_TAGS")?oe(Ct(Yl),_.ADD_DATA_URI_TAGS,_e):Yl,Tt=Ye(_,"FORBID_CONTENTS")?oe({},_.FORBID_CONTENTS,_e):ai,$=Ye(_,"FORBID_TAGS")?oe({},_.FORBID_TAGS,_e):Ct({}),J=Ye(_,"FORBID_ATTR")?oe({},_.FORBID_ATTR,_e):Ct({}),Pn=Ye(_,"USE_PROFILES")?_.USE_PROFILES:!1,Y=_.ALLOW_ARIA_ATTR!==!1,te=_.ALLOW_DATA_ATTR!==!1,ae=_.ALLOW_UNKNOWN_PROTOCOLS||!1,be=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ae=_.SAFE_FOR_TEMPLATES||!1,rt=_.SAFE_FOR_XML!==!1,Oe=_.WHOLE_DOCUMENT||!1,Vt=_.RETURN_DOM||!1,Lu=_.RETURN_DOM_FRAGMENT||!1,Vu=_.RETURN_TRUSTED_TYPE||!1,Zt=_.FORCE_BODY||!1,Xl=_.SANITIZE_DOM!==!1,ql=_.SANITIZE_NAMED_PROPS||!1,ii=_.KEEP_CONTENT!==!1,Tr=_.IN_PLACE||!1,M=_.ALLOWED_URI_REGEXP||Va,Rn=_.NAMESPACE||Pt,Mu=_.MATHML_TEXT_INTEGRATION_POINTS||Mu,Bu=_.HTML_INTEGRATION_POINTS||Bu,I=_.CUSTOM_ELEMENT_HANDLING||{},_.CUSTOM_ELEMENT_HANDLING&&Ql(_.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(I.tagNameCheck=_.CUSTOM_ELEMENT_HANDLING.tagNameCheck),_.CUSTOM_ELEMENT_HANDLING&&Ql(_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(I.attributeNameCheck=_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),_.CUSTOM_ELEMENT_HANDLING&&typeof _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(I.allowCustomizedBuiltInElements=_.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ae&&(te=!1),Lu&&(Vt=!0),Pn&&(z=oe({},Ia),V=qr(null),Pn.html===!0&&(oe(z,Ta),oe(V,Oa)),Pn.svg===!0&&(oe(z,yo),oe(V,vo),oe(V,Kr)),Pn.svgFilters===!0&&(oe(z,wo),oe(V,vo),oe(V,Kr)),Pn.mathMl===!0&&(oe(z,xo),oe(V,La),oe(V,Kr))),Ye(_,"ADD_TAGS")||(K.tagCheck=null),Ye(_,"ADD_ATTR")||(K.attributeCheck=null),_.ADD_TAGS&&(typeof _.ADD_TAGS=="function"?K.tagCheck=_.ADD_TAGS:(z===T&&(z=Ct(z)),oe(z,_.ADD_TAGS,_e))),_.ADD_ATTR&&(typeof _.ADD_ATTR=="function"?K.attributeCheck=_.ADD_ATTR:(V===O&&(V=Ct(V)),oe(V,_.ADD_ATTR,_e))),_.ADD_URI_SAFE_ATTR&&oe(si,_.ADD_URI_SAFE_ATTR,_e),_.FORBID_CONTENTS&&(Tt===ai&&(Tt=Ct(Tt)),oe(Tt,_.FORBID_CONTENTS,_e)),_.ADD_FORBID_CONTENTS&&(Tt===ai&&(Tt=Ct(Tt)),oe(Tt,_.ADD_FORBID_CONTENTS,_e)),ii&&(z["#text"]=!0),Oe&&oe(z,["html","head","body"]),z.table&&(oe(z,["tbody"]),delete $.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw Kn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Kn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=_.TRUSTED_TYPES_POLICY,k=w.createHTML("")}else w===void 0&&(w=Uf(p,o)),w!==null&&typeof k=="string"&&(k=w.createHTML(""));Be&&Be(_),Mn=_}},Jl=oe({},[...yo,...wo,...Of]),ec=oe({},[...xo,...Lf]),b2=function(_){let U=b(_);(!U||!U.tagName)&&(U={namespaceURI:Rn,tagName:"template"});const ee=Yr(_.tagName),ge=Yr(U.tagName);return ci[_.namespaceURI]?_.namespaceURI===Ru?U.namespaceURI===Pt?ee==="svg":U.namespaceURI===Pu?ee==="svg"&&(ge==="annotation-xml"||Mu[ge]):!!Jl[ee]:_.namespaceURI===Pu?U.namespaceURI===Pt?ee==="math":U.namespaceURI===Ru?ee==="math"&&Bu[ge]:!!ec[ee]:_.namespaceURI===Pt?U.namespaceURI===Ru&&!Bu[ge]||U.namespaceURI===Pu&&!Mu[ge]?!1:!ec[ee]&&(h2[ee]||!Jl[ee]):!!(Ir==="application/xhtml+xml"&&ci[_.namespaceURI]):!1},It=function(_){Zn(t.removed,{element:_});try{b(_).removeChild(_)}catch{x(_)}},cn=function(_,U){try{Zn(t.removed,{attribute:U.getAttributeNode(_),from:U})}catch{Zn(t.removed,{attribute:null,from:U})}if(U.removeAttribute(_),_==="is")if(Vt||Lu)try{It(U)}catch{}else try{U.setAttribute(_,"")}catch{}},tc=function(_){let U=null,ee=null;if(Zt)_="<remove></remove>"+_;else{const ke=bo(_,/^[\r\n\t ]+/);ee=ke&&ke[0]}Ir==="application/xhtml+xml"&&Rn===Pt&&(_='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_+"</body></html>");const ge=w?w.createHTML(_):_;if(Rn===Pt)try{U=new h().parseFromString(ge,Ir)}catch{}if(!U||!U.documentElement){U=D.createDocument(Rn,"template",null);try{U.documentElement.innerHTML=li?k:ge}catch{}}const Me=U.body||U.documentElement;return _&&ee&&Me.insertBefore(n.createTextNode(ee),Me.childNodes[0]||null),Rn===Pt?X.call(U,Oe?"html":"body")[0]:Oe?U.documentElement:Me},nc=function(_){return S.call(_.ownerDocument||_,_,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},fi=function(_){return _ instanceof c&&(typeof _.nodeName!="string"||typeof _.textContent!="string"||typeof _.removeChild!="function"||!(_.attributes instanceof f)||typeof _.removeAttribute!="function"||typeof _.setAttribute!="function"||typeof _.namespaceURI!="string"||typeof _.insertBefore!="function"||typeof _.hasChildNodes!="function")},rc=function(_){return typeof s=="function"&&_ instanceof s};function Rt(ne,_,U){Zr(ne,ee=>{ee.call(t,_,U,Mn)})}const uc=function(_){let U=null;if(Rt(B.beforeSanitizeElements,_,null),fi(_))return It(_),!0;const ee=_e(_.nodeName);if(Rt(B.uponSanitizeElement,_,{tagName:ee,allowedTags:z}),rt&&_.hasChildNodes()&&!rc(_.firstElementChild)&&ze(/<[/\w!]/g,_.innerHTML)&&ze(/<[/\w!]/g,_.textContent)||_.nodeType===Jn.progressingInstruction||rt&&_.nodeType===Jn.comment&&ze(/<[/\w]/g,_.data))return It(_),!0;if(!(K.tagCheck instanceof Function&&K.tagCheck(ee))&&(!z[ee]||$[ee])){if(!$[ee]&&ic(ee)&&(I.tagNameCheck instanceof RegExp&&ze(I.tagNameCheck,ee)||I.tagNameCheck instanceof Function&&I.tagNameCheck(ee)))return!1;if(ii&&!Tt[ee]){const ge=b(_)||_.parentNode,Me=g(_)||_.childNodes;if(Me&&ge){const ke=Me.length;for(let Xe=ke-1;Xe>=0;--Xe){const Mt=v(Me[Xe],!0);Mt.__removalCount=(_.__removalCount||0)+1,ge.insertBefore(Mt,y(_))}}}return It(_),!0}return _ instanceof l&&!b2(_)||(ee==="noscript"||ee==="noembed"||ee==="noframes")&&ze(/<\/no(script|embed|frames)/i,_.innerHTML)?(It(_),!0):(Ae&&_.nodeType===Jn.text&&(U=_.textContent,Zr([H,L,W],ge=>{U=Yn(U,ge," ")}),_.textContent!==U&&(Zn(t.removed,{element:_.cloneNode()}),_.textContent=U)),Rt(B.afterSanitizeElements,_,null),!1)},oc=function(_,U,ee){if(J[U]||Xl&&(U==="id"||U==="name")&&(ee in n||ee in g2))return!1;if(!(te&&!J[U]&&ze(G,U))){if(!(Y&&ze(N,U))){if(!(K.attributeCheck instanceof Function&&K.attributeCheck(U,_))){if(!V[U]||J[U]){if(!(ic(_)&&(I.tagNameCheck instanceof RegExp&&ze(I.tagNameCheck,_)||I.tagNameCheck instanceof Function&&I.tagNameCheck(_))&&(I.attributeNameCheck instanceof RegExp&&ze(I.attributeNameCheck,U)||I.attributeNameCheck instanceof Function&&I.attributeNameCheck(U,_))||U==="is"&&I.allowCustomizedBuiltInElements&&(I.tagNameCheck instanceof RegExp&&ze(I.tagNameCheck,ee)||I.tagNameCheck instanceof Function&&I.tagNameCheck(ee))))return!1}else if(!si[U]){if(!ze(M,Yn(ee,F,""))){if(!((U==="src"||U==="xlink:href"||U==="href")&&_!=="script"&&Df(ee,"data:")===0&&Zl[_])){if(!(ae&&!ze(C,Yn(ee,F,"")))){if(ee)return!1}}}}}}}return!0},ic=function(_){return _!=="annotation-xml"&&bo(_,P)},ac=function(_){Rt(B.beforeSanitizeAttributes,_,null);const{attributes:U}=_;if(!U||fi(_))return;const ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let ge=U.length;for(;ge--;){const Me=U[ge],{name:ke,namespaceURI:Xe,value:Mt}=Me,Bn=_e(ke),hi=Mt;let Le=ke==="value"?hi:Nf(hi);if(ee.attrName=Bn,ee.attrValue=Le,ee.keepAttr=!0,ee.forceKeepAttr=void 0,Rt(B.uponSanitizeAttribute,_,ee),Le=ee.attrValue,ql&&(Bn==="id"||Bn==="name")&&(cn(ke,_),Le=d2+Le),rt&&ze(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Le)){cn(ke,_);continue}if(Bn==="attributename"&&bo(Le,"href")){cn(ke,_);continue}if(ee.forceKeepAttr)continue;if(!ee.keepAttr){cn(ke,_);continue}if(!be&&ze(/\/>/i,Le)){cn(ke,_);continue}Ae&&Zr([H,L,W],lc=>{Le=Yn(Le,lc," ")});const sc=_e(_.nodeName);if(!oc(sc,Bn,Le)){cn(ke,_);continue}if(w&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Xe)switch(p.getAttributeType(sc,Bn)){case"TrustedHTML":{Le=w.createHTML(Le);break}case"TrustedScriptURL":{Le=w.createScriptURL(Le);break}}if(Le!==hi)try{Xe?_.setAttributeNS(Xe,ke,Le):_.setAttribute(ke,Le),fi(_)?It(_):Na(t.removed)}catch{cn(ke,_)}}Rt(B.afterSanitizeAttributes,_,null)},y2=function ne(_){let U=null;const ee=nc(_);for(Rt(B.beforeSanitizeShadowDOM,_,null);U=ee.nextNode();)Rt(B.uponSanitizeShadowNode,U,null),uc(U),ac(U),U.content instanceof u&&ne(U.content);Rt(B.afterSanitizeShadowDOM,_,null)};return t.sanitize=function(ne){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=null,ee=null,ge=null,Me=null;if(li=!ne,li&&(ne="<!-->"),typeof ne!="string"&&!rc(ne))if(typeof ne.toString=="function"){if(ne=ne.toString(),typeof ne!="string")throw Kn("dirty is not a string, aborting")}else throw Kn("toString is not a function");if(!t.isSupported)return ne;if(Nt||di(_),t.removed=[],typeof ne=="string"&&(Tr=!1),Tr){if(ne.nodeName){const Mt=_e(ne.nodeName);if(!z[Mt]||$[Mt])throw Kn("root node is forbidden and cannot be sanitized in-place")}}else if(ne instanceof s)U=tc("<!---->"),ee=U.ownerDocument.importNode(ne,!0),ee.nodeType===Jn.element&&ee.nodeName==="BODY"||ee.nodeName==="HTML"?U=ee:U.appendChild(ee);else{if(!Vt&&!Ae&&!Oe&&ne.indexOf("<")===-1)return w&&Vu?w.createHTML(ne):ne;if(U=tc(ne),!U)return Vt?null:Vu?k:""}U&&Zt&&It(U.firstChild);const ke=nc(Tr?ne:U);for(;ge=ke.nextNode();)uc(ge),ac(ge),ge.content instanceof u&&y2(ge.content);if(Tr)return ne;if(Vt){if(Lu)for(Me=E.call(U.ownerDocument);U.firstChild;)Me.appendChild(U.firstChild);else Me=U;return(V.shadowroot||V.shadowrootmode)&&(Me=j.call(r,Me,!0)),Me}let Xe=Oe?U.outerHTML:U.innerHTML;return Oe&&z["!doctype"]&&U.ownerDocument&&U.ownerDocument.doctype&&U.ownerDocument.doctype.name&&ze(Pa,U.ownerDocument.doctype.name)&&(Xe="<!DOCTYPE "+U.ownerDocument.doctype.name+`>
17
+ `+Xe),Ae&&Zr([H,L,W],Mt=>{Xe=Yn(Xe,Mt," ")}),w&&Vu?w.createHTML(Xe):Xe},t.setConfig=function(){let ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};di(ne),Nt=!0},t.clearConfig=function(){Mn=null,Nt=!1},t.isValidAttribute=function(ne,_,U){Mn||di({});const ee=_e(ne),ge=_e(_);return oc(ee,ge,U)},t.addHook=function(ne,_){typeof _=="function"&&Zn(B[ne],_)},t.removeHook=function(ne,_){if(_!==void 0){const U=Sf(B[ne],_);return U===-1?void 0:Ff(B[ne],U,1)[0]}return Na(B[ne])},t.removeHooks=function(ne){B[ne]=[]},t.removeAllHooks=function(){B=Ma()},t}var Wf=Ba();const za={content:{type:Object,required:!0},card:{type:Boolean,default:!0}},ja=new Ze({html:!0,linkify:!0});ja.linkify.set({fuzzyLink:!1});function Gf(e){let t=e;return t=t.replace(/([\u2026\u3001\u3002\uff0c\uff1a\uff1b\uff1f\uff01)】」』]|[;:,.!?(\[\]])[\t ]*(#{2,6}\s+)/g,`$1
18
18
 
19
19
  $2`),t=t.replace(/(\*\*)(\s*)(#{2,6}\s+)/g,`$1
20
20
 
21
21
  $3`),t}function Xf(e){if(!e)return e;const t=/\r?\n/.test(e),n=[],r=e.replace(/```[\s\S]*?```|~~~[\s\S]*?~~~|`[^`\n]*`/g,u=>(n.push(u),`\0CODE${n.length-1}\0`));return(t?r:r.replace(/\\r\\n|\\n/g,`
22
22
  `)).replace(/\u0000CODE(\d+)\u0000/g,(u,a)=>n[Number(a)]??"")}function qf(e){const t=e.split(`
23
23
  `),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(`
24
- `).trim()}const bn=i.defineComponent({name:"FXMarkdownMessage",props:Ba,setup(e){const t=i.computed(()=>{var a;const n=Xf(((a=e.content)==null?void 0:a.content)??""),r=Gf(n),o=qf(r);if(!o)return"";const u=za.render(o);return Wf.sanitize(u,{ADD_TAGS:["style"],ADD_ATTR:["style","align","valign","colspan","rowspan","scope","title"]})});return()=>{var o;const n=(o=e.content)==null?void 0:o.message,r=e.card?" f-chat-message-markdown--card":"";return i.createVNode("div",{class:`f-chat-message-markdown${r}`},[n&&i.createVNode("div",{class:"f-chat-markdown-message"},[n]),i.createVNode("div",{class:"f-chat-markdown-content",innerHTML:t.value},null)])}}});bn.install=e=>{e.component(bn.name,bn)};const Zf=(e,t,n)=>{if(e.type!==Ve.Text)return null;const o=e.raw;if(!o)return null;if(typeof o!="string")return o;if(!o.trim())return null;let u=n.shouldShowMarkdown.value?o:o.replace(/\r\n/g,`
24
+ `).trim()}const bn=i.defineComponent({name:"FXMarkdownMessage",props:za,setup(e){const t=i.computed(()=>{var a;const n=Xf(((a=e.content)==null?void 0:a.content)??""),r=Gf(n),o=qf(r);if(!o)return"";const u=ja.render(o);return Wf.sanitize(u,{ADD_TAGS:["style"],ADD_ATTR:["style","align","valign","colspan","rowspan","scope","title"]})});return()=>{var o;const n=(o=e.content)==null?void 0:o.message,r=e.card?" f-chat-message-markdown--card":"";return i.createVNode("div",{class:`f-chat-message-markdown${r}`},[n&&i.createVNode("div",{class:"f-chat-markdown-message"},[n]),i.createVNode("div",{class:"f-chat-markdown-content",innerHTML:t.value},null)])}}});bn.install=e=>{e.component(bn.name,bn)};const Zf=(e,t,n)=>{if(e.type!==Ve.Text)return null;const o=e.raw;if(!o)return null;if(typeof o!="string")return o;if(!o.trim())return null;let u=n.shouldShowMarkdown.value?o:o.replace(/\r\n/g,`
25
25
  `).replace(/\r/g,`
26
- `).replace(/\t/g," ");return n.shouldShowMarkdown.value?i.createVNode(bn,{style:{border:"0px none rgb(51, 51, 51)",borderRadius:0,boxShadow:"none",padding:0},content:{type:"markdown",message:"",content:o}},null):i.createVNode("div",{class:"f-chat-bubble-content-text 00",key:`bubble-text-${t}`},[u])};function Yf(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 Kf(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 Qf=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(Kf(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var u=Yf(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}(),Pe="-ms-",Qr="-moz-",se="-webkit-",ja="comm",Ao="rule",ko="decl",Jf="@import",Ha="@keyframes",eh="@layer",th=Math.abs,Jr=String.fromCharCode,nh=Object.assign;function rh(e,t){return Ie(e,0)^45?(((t<<2^Ie(e,0))<<2^Ie(e,1))<<2^Ie(e,2))<<2^Ie(e,3):0}function $a(e){return e.trim()}function uh(e,t){return(e=t.exec(e))?e[0]:e}function le(e,t,n){return e.replace(t,n)}function Co(e,t){return e.indexOf(t)}function Ie(e,t){return e.charCodeAt(t)|0}function er(e,t,n){return e.slice(t,n)}function Et(e){return e.length}function Eo(e){return e.length}function eu(e,t){return t.push(e),e}function oh(e,t){return e.map(t).join("")}var tu=1,yn=1,Ua=0,Ge=0,xe=0,wn="";function nu(e,t,n,r,o,u,a){return{value:e,root:t,parent:n,type:r,props:o,children:u,line:tu,column:yn,length:a,return:""}}function tr(e,t){return nh(nu("",null,null,"",null,null,0),e,{length:-e.length},t)}function ih(){return xe}function ah(){return xe=Ge>0?Ie(wn,--Ge):0,yn--,xe===10&&(yn=1,tu--),xe}function Ke(){return xe=Ge<Ua?Ie(wn,Ge++):0,yn++,xe===10&&(yn=1,tu++),xe}function _t(){return Ie(wn,Ge)}function ru(){return Ge}function nr(e,t){return er(wn,e,t)}function rr(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 Wa(e){return tu=yn=1,Ua=Et(wn=e),Ge=0,[]}function Ga(e){return wn="",e}function uu(e){return $a(nr(Ge-1,_o(e===91?e+2:e===40?e+1:e)))}function sh(e){for(;(xe=_t())&&xe<33;)Ke();return rr(e)>2||rr(xe)>3?"":" "}function lh(e,t){for(;--t&&Ke()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return nr(e,ru()+(t<6&&_t()==32&&Ke()==32))}function _o(e){for(;Ke();)switch(xe){case e:return Ge;case 34:case 39:e!==34&&e!==39&&_o(xe);break;case 40:e===41&&_o(e);break;case 92:Ke();break}return Ge}function ch(e,t){for(;Ke()&&e+xe!==57;)if(e+xe===84&&_t()===47)break;return"/*"+nr(t,Ge-1)+"*"+Jr(e===47?e:Ke())}function dh(e){for(;!rr(_t());)Ke();return nr(e,Ge)}function fh(e){return Ga(ou("",null,null,null,[""],e=Wa(e),0,[0],e))}function ou(e,t,n,r,o,u,a,s,l){for(var d=0,f=0,c=a,h=0,p=0,m=0,v=1,x=1,y=1,g=0,b="",w=o,k=u,F=r,S=b;x;)switch(m=g,g=Ke()){case 40:if(m!=108&&Ie(S,c-1)==58){Co(S+=le(uu(g),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:S+=uu(g);break;case 9:case 10:case 13:case 32:S+=sh(m);break;case 92:S+=lh(ru()-1,7);continue;case 47:switch(_t()){case 42:case 47:eu(hh(ch(Ke(),ru()),t,n),l);break;default:S+="/"}break;case 123*v:s[d++]=Et(S)*y;case 125*v:case 59:case 0:switch(g){case 0:case 125:x=0;case 59+f:y==-1&&(S=le(S,/\f/g,"")),p>0&&Et(S)-c&&eu(p>32?qa(S+";",r,n,c-1):qa(le(S," ","")+";",r,n,c-2),l);break;case 59:S+=";";default:if(eu(F=Xa(S,t,n,d,f,o,s,b,w=[],k=[],c),u),g===123)if(f===0)ou(S,t,F,F,w,u,c,s,k);else switch(h===99&&Ie(S,3)===110?100:h){case 100:case 108:case 109:case 115:ou(e,F,F,r&&eu(Xa(e,F,F,0,0,o,s,b,o,w=[],c),k),o,k,c,s,r?w:k);break;default:ou(S,F,F,F,[""],k,0,s,k)}}d=f=p=0,v=y=1,b=S="",c=a;break;case 58:c=1+Et(S),p=m;default:if(v<1){if(g==123)--v;else if(g==125&&v++==0&&ah()==125)continue}switch(S+=Jr(g),g*v){case 38:y=f>0?1:(S+="\f",-1);break;case 44:s[d++]=(Et(S)-1)*y,y=1;break;case 64:_t()===45&&(S+=uu(Ke())),h=_t(),f=c=Et(b=S+=dh(ru())),g++;break;case 45:m===45&&Et(S)==2&&(v=0)}}return u}function Xa(e,t,n,r,o,u,a,s,l,d,f){for(var c=o-1,h=o===0?u:[""],p=Eo(h),m=0,v=0,x=0;m<r;++m)for(var y=0,g=er(e,c+1,c=th(v=a[m])),b=e;y<p;++y)(b=$a(v>0?h[y]+" "+g:le(g,/&\f/g,h[y])))&&(l[x++]=b);return nu(e,t,n,o===0?Ao:s,l,d,f)}function hh(e,t,n){return nu(e,t,n,ja,Jr(ih()),er(e,2,-2),0)}function qa(e,t,n,r){return nu(e,t,n,ko,er(e,0,r),er(e,r+1,-1),r)}function xn(e,t){for(var n="",r=Eo(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function mh(e,t,n,r){switch(e.type){case eh:if(e.children.length)break;case Jf:case ko:return e.return=e.return||e.value;case ja:return"";case Ha:return e.return=e.value+"{"+xn(e.children,r)+"}";case Ao:e.value=e.props.join(",")}return Et(n=xn(e.children,r))?e.return=e.value+"{"+n+"}":""}function ph(e){var t=Eo(e);return function(n,r,o,u){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,u)||"";return a}}function gh(e){return function(t){t.root||(t=t.return)&&e(t)}}function bh(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var yh=function(t,n,r){for(var o=0,u=0;o=u,u=_t(),o===38&&u===12&&(n[r]=1),!rr(u);)Ke();return nr(t,Ge)},wh=function(t,n){var r=-1,o=44;do switch(rr(o)){case 0:o===38&&_t()===12&&(n[r]=1),t[r]+=yh(Ge-1,n,r);break;case 2:t[r]+=uu(o);break;case 4:if(o===44){t[++r]=_t()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Jr(o)}while(o=Ke());return t},xh=function(t,n){return Ga(wh(Wa(t),n))},Za=new WeakMap,vh=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&&!Za.get(r))&&!o){Za.set(t,!0);for(var u=[],a=xh(n,u),s=r.props,l=0,d=0;l<a.length;l++)for(var f=0;f<s.length;f++,d++)t.props[d]=u[l]?a[l].replace(/&\f/g,s[f]):s[f]+" "+a[l]}}},Ah=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Ya(e,t){switch(rh(e,t)){case 5103:return se+"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 se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return se+e+Qr+e+Pe+e+e;case 6828:case 4268:return se+e+Pe+e+e;case 6165:return se+e+Pe+"flex-"+e+e;case 5187:return se+e+le(e,/(\w+).+(:[^]+)/,se+"box-$1$2"+Pe+"flex-$1$2")+e;case 5443:return se+e+Pe+"flex-item-"+le(e,/flex-|-self/,"")+e;case 4675:return se+e+Pe+"flex-line-pack"+le(e,/align-content|flex-|-self/,"")+e;case 5548:return se+e+Pe+le(e,"shrink","negative")+e;case 5292:return se+e+Pe+le(e,"basis","preferred-size")+e;case 6060:return se+"box-"+le(e,"-grow","")+se+e+Pe+le(e,"grow","positive")+e;case 4554:return se+le(e,/([^-])(transform)/g,"$1"+se+"$2")+e;case 6187:return le(le(le(e,/(zoom-|grab)/,se+"$1"),/(image-set)/,se+"$1"),e,"")+e;case 5495:case 3959:return le(e,/(image-set\([^]*)/,se+"$1$`$1");case 4968:return le(le(e,/(.+:)(flex-)?(.*)/,se+"box-pack:$3"+Pe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+se+e+e;case 4095:case 3583:case 4068:case 2532:return le(e,/(.+)-inline(.+)/,se+"$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(Et(e)-1-t>6)switch(Ie(e,t+1)){case 109:if(Ie(e,t+4)!==45)break;case 102:return le(e,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+Qr+(Ie(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Co(e,"stretch")?Ya(le(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ie(e,t+1)!==115)break;case 6444:switch(Ie(e,Et(e)-3-(~Co(e,"!important")&&10))){case 107:return le(e,":",":"+se)+e;case 101:return le(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(Ie(e,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+Pe+"$2box$3")+e}break;case 5936:switch(Ie(e,t+11)){case 114:return se+e+Pe+le(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return se+e+Pe+le(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return se+e+Pe+le(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return se+e+Pe+e+e}return e}var kh=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case ko:t.return=Ya(t.value,t.length);break;case Ha:return xn([tr(t,{value:le(t.value,"@","@"+se)})],o);case Ao:if(t.length)return oh(t.props,function(u){switch(uh(u,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xn([tr(t,{props:[le(u,/:(read-\w+)/,":"+Qr+"$1")]})],o);case"::placeholder":return xn([tr(t,{props:[le(u,/:(plac\w+)/,":"+se+"input-$1")]}),tr(t,{props:[le(u,/:(plac\w+)/,":"+Qr+"$1")]}),tr(t,{props:[le(u,/:(plac\w+)/,Pe+"input-$1")]})],o)}return""})}},Ch=[kh],Eh=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(v){var x=v.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||Ch,u={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),y=1;y<x.length;y++)u[x[y]]=!0;s.push(v)});var l,d=[vh,Ah];{var f,c=[mh,gh(function(v){f.insert(v)})],h=ph(d.concat(o,c)),p=function(x){return xn(fh(x),h)};l=function(x,y,g,b){f=g,p(x?x+"{"+y.styles+"}":y.styles),b&&(m.inserted[y.name]=!0)}}var m={key:n,sheet:new Qf({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:u,registered:{},insert:l};return m.sheet.hydrate(s),m};function _h(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 Sh={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},Dh=/[A-Z]|^ms/g,Fh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ka=function(t){return t.charCodeAt(1)===45},Qa=function(t){return t!=null&&typeof t!="boolean"},So=bh(function(e){return Ka(e)?e:e.replace(Dh,"-$&").toLowerCase()}),Ja=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Fh,function(r,o,u){return $t={name:o,styles:u,next:$t},o})}return Sh[t]!==1&&!Ka(t)&&typeof n=="number"&&n!==0?n+"px":n};function iu(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 $t={name:o.name,styles:o.styles,next:$t},o.name;var u=n;if(u.styles!==void 0){var a=u.next;if(a!==void 0)for(;a!==void 0;)$t={name:a.name,styles:a.styles,next:$t},a=a.next;var s=u.styles+";";return s}return Th(e,t,n)}}var l=n;if(t==null)return l;var d=t[l];return d!==void 0?d:l}function Th(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=iu(e,t,n[o])+";";else for(var u in n){var a=n[u];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?r+=u+"{"+t[s]+"}":Qa(s)&&(r+=So(u)+":"+Ja(u,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)Qa(a[l])&&(r+=So(u)+":"+Ja(u,a[l])+";");else{var d=iu(e,t,a);switch(u){case"animation":case"animationName":{r+=So(u)+":"+d+";";break}default:r+=u+"{"+d+"}"}}}return r}var es=/label:\s*([^\s;{]+)\s*(;|$)/g,$t;function Do(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="";$t=void 0;var u=e[0];if(u==null||u.raw===void 0)r=!1,o+=iu(n,t,u);else{var a=u;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=iu(n,t,e[s]),r){var l=u;o+=l[s]}es.lastIndex=0;for(var d="",f;(f=es.exec(o))!==null;)d+="-"+f[1];var c=_h(o)+d;return{name:c,styles:o,next:$t}}function ts(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Nh=function(t,n,r){var o=t.key+"-"+n.name;t.registered[o]===void 0&&(t.registered[o]=n.styles)},Ih=function(t,n,r){Nh(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 ns(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function rs(e,t,n){var r=[],o=ts(e,r,n);return r.length<2?n:o+t(r)}var Oh=function(t){var n=Eh(t);n.sheet.speedy=function(s){this.isSpeedy=s},n.compat=!0;var r=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Do(d,n.registered,void 0);return Ih(n,c),n.key+"-"+c.name},o=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Do(d,n.registered),h="animation-"+c.name;return ns(n,{name:c.name,styles:"@keyframes "+h+"{"+c.styles+"}"}),h},u=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Do(d,n.registered);ns(n,c)},a=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];return rs(n.registered,r,Lh(d))};return{css:r,cx:a,injectGlobal:u,keyframes:o,hydrate:function(l){l.forEach(function(d){n.inserted[d]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:ts.bind(null,n.registered),merge:rs.bind(null,n.registered,r)}},Lh=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 a in o)o[a]&&a&&(u&&(u+=" "),u+=a)}break}default:u=o}u&&(n&&(n+=" "),n+=u)}}return n},Vh=Oh({key:"css"}),Fo=Vh.css,Ph=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var us={exports:{}};/*!
26
+ `).replace(/\t/g," ");return n.shouldShowMarkdown.value?i.createVNode(bn,{style:{border:"0px none rgb(51, 51, 51)",borderRadius:0,boxShadow:"none",padding:0},content:{type:"markdown",message:"",content:o}},null):i.createVNode("div",{class:"f-chat-bubble-content-text 00",key:`bubble-text-${t}`},[u])};function Yf(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 Kf(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 Qf=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(Kf(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var u=Yf(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}(),Pe="-ms-",Qr="-moz-",se="-webkit-",Ha="comm",Ao="rule",ko="decl",Jf="@import",$a="@keyframes",eh="@layer",th=Math.abs,Jr=String.fromCharCode,nh=Object.assign;function rh(e,t){return Ie(e,0)^45?(((t<<2^Ie(e,0))<<2^Ie(e,1))<<2^Ie(e,2))<<2^Ie(e,3):0}function Ua(e){return e.trim()}function uh(e,t){return(e=t.exec(e))?e[0]:e}function le(e,t,n){return e.replace(t,n)}function Co(e,t){return e.indexOf(t)}function Ie(e,t){return e.charCodeAt(t)|0}function er(e,t,n){return e.slice(t,n)}function Et(e){return e.length}function Eo(e){return e.length}function eu(e,t){return t.push(e),e}function oh(e,t){return e.map(t).join("")}var tu=1,yn=1,Wa=0,Ge=0,xe=0,wn="";function nu(e,t,n,r,o,u,a){return{value:e,root:t,parent:n,type:r,props:o,children:u,line:tu,column:yn,length:a,return:""}}function tr(e,t){return nh(nu("",null,null,"",null,null,0),e,{length:-e.length},t)}function ih(){return xe}function ah(){return xe=Ge>0?Ie(wn,--Ge):0,yn--,xe===10&&(yn=1,tu--),xe}function Ke(){return xe=Ge<Wa?Ie(wn,Ge++):0,yn++,xe===10&&(yn=1,tu++),xe}function _t(){return Ie(wn,Ge)}function ru(){return Ge}function nr(e,t){return er(wn,e,t)}function rr(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 Ga(e){return tu=yn=1,Wa=Et(wn=e),Ge=0,[]}function Xa(e){return wn="",e}function uu(e){return Ua(nr(Ge-1,_o(e===91?e+2:e===40?e+1:e)))}function sh(e){for(;(xe=_t())&&xe<33;)Ke();return rr(e)>2||rr(xe)>3?"":" "}function lh(e,t){for(;--t&&Ke()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return nr(e,ru()+(t<6&&_t()==32&&Ke()==32))}function _o(e){for(;Ke();)switch(xe){case e:return Ge;case 34:case 39:e!==34&&e!==39&&_o(xe);break;case 40:e===41&&_o(e);break;case 92:Ke();break}return Ge}function ch(e,t){for(;Ke()&&e+xe!==57;)if(e+xe===84&&_t()===47)break;return"/*"+nr(t,Ge-1)+"*"+Jr(e===47?e:Ke())}function dh(e){for(;!rr(_t());)Ke();return nr(e,Ge)}function fh(e){return Xa(ou("",null,null,null,[""],e=Ga(e),0,[0],e))}function ou(e,t,n,r,o,u,a,s,l){for(var d=0,f=0,c=a,h=0,p=0,m=0,v=1,x=1,y=1,g=0,b="",w=o,k=u,D=r,S=b;x;)switch(m=g,g=Ke()){case 40:if(m!=108&&Ie(S,c-1)==58){Co(S+=le(uu(g),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:S+=uu(g);break;case 9:case 10:case 13:case 32:S+=sh(m);break;case 92:S+=lh(ru()-1,7);continue;case 47:switch(_t()){case 42:case 47:eu(hh(ch(Ke(),ru()),t,n),l);break;default:S+="/"}break;case 123*v:s[d++]=Et(S)*y;case 125*v:case 59:case 0:switch(g){case 0:case 125:x=0;case 59+f:y==-1&&(S=le(S,/\f/g,"")),p>0&&Et(S)-c&&eu(p>32?Za(S+";",r,n,c-1):Za(le(S," ","")+";",r,n,c-2),l);break;case 59:S+=";";default:if(eu(D=qa(S,t,n,d,f,o,s,b,w=[],k=[],c),u),g===123)if(f===0)ou(S,t,D,D,w,u,c,s,k);else switch(h===99&&Ie(S,3)===110?100:h){case 100:case 108:case 109:case 115:ou(e,D,D,r&&eu(qa(e,D,D,0,0,o,s,b,o,w=[],c),k),o,k,c,s,r?w:k);break;default:ou(S,D,D,D,[""],k,0,s,k)}}d=f=p=0,v=y=1,b=S="",c=a;break;case 58:c=1+Et(S),p=m;default:if(v<1){if(g==123)--v;else if(g==125&&v++==0&&ah()==125)continue}switch(S+=Jr(g),g*v){case 38:y=f>0?1:(S+="\f",-1);break;case 44:s[d++]=(Et(S)-1)*y,y=1;break;case 64:_t()===45&&(S+=uu(Ke())),h=_t(),f=c=Et(b=S+=dh(ru())),g++;break;case 45:m===45&&Et(S)==2&&(v=0)}}return u}function qa(e,t,n,r,o,u,a,s,l,d,f){for(var c=o-1,h=o===0?u:[""],p=Eo(h),m=0,v=0,x=0;m<r;++m)for(var y=0,g=er(e,c+1,c=th(v=a[m])),b=e;y<p;++y)(b=Ua(v>0?h[y]+" "+g:le(g,/&\f/g,h[y])))&&(l[x++]=b);return nu(e,t,n,o===0?Ao:s,l,d,f)}function hh(e,t,n){return nu(e,t,n,Ha,Jr(ih()),er(e,2,-2),0)}function Za(e,t,n,r){return nu(e,t,n,ko,er(e,0,r),er(e,r+1,-1),r)}function xn(e,t){for(var n="",r=Eo(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function mh(e,t,n,r){switch(e.type){case eh:if(e.children.length)break;case Jf:case ko:return e.return=e.return||e.value;case Ha:return"";case $a:return e.return=e.value+"{"+xn(e.children,r)+"}";case Ao:e.value=e.props.join(",")}return Et(n=xn(e.children,r))?e.return=e.value+"{"+n+"}":""}function ph(e){var t=Eo(e);return function(n,r,o,u){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,u)||"";return a}}function gh(e){return function(t){t.root||(t=t.return)&&e(t)}}function bh(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var yh=function(t,n,r){for(var o=0,u=0;o=u,u=_t(),o===38&&u===12&&(n[r]=1),!rr(u);)Ke();return nr(t,Ge)},wh=function(t,n){var r=-1,o=44;do switch(rr(o)){case 0:o===38&&_t()===12&&(n[r]=1),t[r]+=yh(Ge-1,n,r);break;case 2:t[r]+=uu(o);break;case 4:if(o===44){t[++r]=_t()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Jr(o)}while(o=Ke());return t},xh=function(t,n){return Xa(wh(Ga(t),n))},Ya=new WeakMap,vh=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&&!Ya.get(r))&&!o){Ya.set(t,!0);for(var u=[],a=xh(n,u),s=r.props,l=0,d=0;l<a.length;l++)for(var f=0;f<s.length;f++,d++)t.props[d]=u[l]?a[l].replace(/&\f/g,s[f]):s[f]+" "+a[l]}}},Ah=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Ka(e,t){switch(rh(e,t)){case 5103:return se+"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 se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return se+e+Qr+e+Pe+e+e;case 6828:case 4268:return se+e+Pe+e+e;case 6165:return se+e+Pe+"flex-"+e+e;case 5187:return se+e+le(e,/(\w+).+(:[^]+)/,se+"box-$1$2"+Pe+"flex-$1$2")+e;case 5443:return se+e+Pe+"flex-item-"+le(e,/flex-|-self/,"")+e;case 4675:return se+e+Pe+"flex-line-pack"+le(e,/align-content|flex-|-self/,"")+e;case 5548:return se+e+Pe+le(e,"shrink","negative")+e;case 5292:return se+e+Pe+le(e,"basis","preferred-size")+e;case 6060:return se+"box-"+le(e,"-grow","")+se+e+Pe+le(e,"grow","positive")+e;case 4554:return se+le(e,/([^-])(transform)/g,"$1"+se+"$2")+e;case 6187:return le(le(le(e,/(zoom-|grab)/,se+"$1"),/(image-set)/,se+"$1"),e,"")+e;case 5495:case 3959:return le(e,/(image-set\([^]*)/,se+"$1$`$1");case 4968:return le(le(e,/(.+:)(flex-)?(.*)/,se+"box-pack:$3"+Pe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+se+e+e;case 4095:case 3583:case 4068:case 2532:return le(e,/(.+)-inline(.+)/,se+"$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(Et(e)-1-t>6)switch(Ie(e,t+1)){case 109:if(Ie(e,t+4)!==45)break;case 102:return le(e,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+Qr+(Ie(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Co(e,"stretch")?Ka(le(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ie(e,t+1)!==115)break;case 6444:switch(Ie(e,Et(e)-3-(~Co(e,"!important")&&10))){case 107:return le(e,":",":"+se)+e;case 101:return le(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(Ie(e,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+Pe+"$2box$3")+e}break;case 5936:switch(Ie(e,t+11)){case 114:return se+e+Pe+le(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return se+e+Pe+le(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return se+e+Pe+le(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return se+e+Pe+e+e}return e}var kh=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case ko:t.return=Ka(t.value,t.length);break;case $a:return xn([tr(t,{value:le(t.value,"@","@"+se)})],o);case Ao:if(t.length)return oh(t.props,function(u){switch(uh(u,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xn([tr(t,{props:[le(u,/:(read-\w+)/,":"+Qr+"$1")]})],o);case"::placeholder":return xn([tr(t,{props:[le(u,/:(plac\w+)/,":"+se+"input-$1")]}),tr(t,{props:[le(u,/:(plac\w+)/,":"+Qr+"$1")]}),tr(t,{props:[le(u,/:(plac\w+)/,Pe+"input-$1")]})],o)}return""})}},Ch=[kh],Eh=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(v){var x=v.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||Ch,u={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),y=1;y<x.length;y++)u[x[y]]=!0;s.push(v)});var l,d=[vh,Ah];{var f,c=[mh,gh(function(v){f.insert(v)})],h=ph(d.concat(o,c)),p=function(x){return xn(fh(x),h)};l=function(x,y,g,b){f=g,p(x?x+"{"+y.styles+"}":y.styles),b&&(m.inserted[y.name]=!0)}}var m={key:n,sheet:new Qf({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:u,registered:{},insert:l};return m.sheet.hydrate(s),m};function _h(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 Sh={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},Fh=/[A-Z]|^ms/g,Dh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qa=function(t){return t.charCodeAt(1)===45},Ja=function(t){return t!=null&&typeof t!="boolean"},So=bh(function(e){return Qa(e)?e:e.replace(Fh,"-$&").toLowerCase()}),es=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Dh,function(r,o,u){return $t={name:o,styles:u,next:$t},o})}return Sh[t]!==1&&!Qa(t)&&typeof n=="number"&&n!==0?n+"px":n};function iu(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 $t={name:o.name,styles:o.styles,next:$t},o.name;var u=n;if(u.styles!==void 0){var a=u.next;if(a!==void 0)for(;a!==void 0;)$t={name:a.name,styles:a.styles,next:$t},a=a.next;var s=u.styles+";";return s}return Nh(e,t,n)}}var l=n;if(t==null)return l;var d=t[l];return d!==void 0?d:l}function Nh(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=iu(e,t,n[o])+";";else for(var u in n){var a=n[u];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?r+=u+"{"+t[s]+"}":Ja(s)&&(r+=So(u)+":"+es(u,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)Ja(a[l])&&(r+=So(u)+":"+es(u,a[l])+";");else{var d=iu(e,t,a);switch(u){case"animation":case"animationName":{r+=So(u)+":"+d+";";break}default:r+=u+"{"+d+"}"}}}return r}var ts=/label:\s*([^\s;{]+)\s*(;|$)/g,$t;function Fo(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="";$t=void 0;var u=e[0];if(u==null||u.raw===void 0)r=!1,o+=iu(n,t,u);else{var a=u;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=iu(n,t,e[s]),r){var l=u;o+=l[s]}ts.lastIndex=0;for(var d="",f;(f=ts.exec(o))!==null;)d+="-"+f[1];var c=_h(o)+d;return{name:c,styles:o,next:$t}}function ns(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Th=function(t,n,r){var o=t.key+"-"+n.name;t.registered[o]===void 0&&(t.registered[o]=n.styles)},Ih=function(t,n,r){Th(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 rs(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function us(e,t,n){var r=[],o=ns(e,r,n);return r.length<2?n:o+t(r)}var Oh=function(t){var n=Eh(t);n.sheet.speedy=function(s){this.isSpeedy=s},n.compat=!0;var r=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Fo(d,n.registered,void 0);return Ih(n,c),n.key+"-"+c.name},o=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Fo(d,n.registered),h="animation-"+c.name;return rs(n,{name:c.name,styles:"@keyframes "+h+"{"+c.styles+"}"}),h},u=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Fo(d,n.registered);rs(n,c)},a=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];return us(n.registered,r,Lh(d))};return{css:r,cx:a,injectGlobal:u,keyframes:o,hydrate:function(l){l.forEach(function(d){n.inserted[d]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:ns.bind(null,n.registered),merge:us.bind(null,n.registered,r)}},Lh=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 a in o)o[a]&&a&&(u&&(u+=" "),u+=a)}break}default:u=o}u&&(n&&(n+=" "),n+=u)}}return n},Vh=Oh({key:"css"}),Do=Vh.css,Ph=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var os={exports:{}};/*!
27
27
  Copyright (c) 2018 Jed Watson.
28
28
  Licensed under the MIT License (MIT), see
29
29
  http://jedwatson.github.io/classnames
30
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var u="",a=0;a<arguments.length;a++){var s=arguments[a];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 a="";for(var s in u)t.call(u,s)&&u[s]&&(a=o(a,s));return a}function o(u,a){return a?u?u+" "+a:u+a:u}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(us);var Mh=us.exports;const To=Rh(Mh),os={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 Bh{constructor(t){fe(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 zh(){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 No={exports:{}};(function(e,t){(function(n,r){r(t)})(Ph,function(n){var r=Object.defineProperty,o=Object.defineProperties,u=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,d=(N,V,O)=>V in N?r(N,V,{enumerable:!0,configurable:!0,writable:!0,value:O}):N[V]=O,f=(N,V)=>{for(var O in V||(V={}))s.call(V,O)&&d(N,O,V[O]);if(a)for(var O of a(V))l.call(V,O)&&d(N,O,V[O]);return N},c=(N,V)=>o(N,u(V)),h=(N,V,O)=>new Promise((I,$)=>{var J=te=>{try{Y(O.next(te))}catch(ae){$(ae)}},K=te=>{try{Y(O.throw(te))}catch(ae){$(ae)}},Y=te=>te.done?I(te.value):Promise.resolve(te.value).then(J,K);Y((O=O.apply(N,V)).next())}),p=(N=>(N[N.NONE=0]="NONE",N[N.LOADING=1]="LOADING",N[N.LOADED=2]="LOADED",N[N.ERROR=3]="ERROR",N))(p||{});class m{constructor(V){this.items={},this.factory=V}getOrCreateItemByURL(V){let O=this.items[V];return O||(O=this.items[V]=this.factory(V)),O}tryGetItemByURL(V){var O;return(O=this.items[V])!=null?O:null}removeItemByURL(V){const O=this.items[V];return O&&(this.items[V]=null,O)}}const v="__RUNTIME_IMPORT__";function x(N,V){var O,I;const $=globalThis,J=(O=$[v])!=null?O:$[v]={};return(I=J[N])!=null?I:J[N]=V()}const y=x("cssCache",()=>new m(N=>({url:N,status:p.NONE,el:null,error:null,reject:null})));function g(N,V,O){const I={handleLoad(){N.removeEventListener("load",I.handleLoad),N.removeEventListener("error",I.handleError),V()},handleError($){N.removeEventListener("load",I.handleLoad),N.removeEventListener("error",I.handleError),O($)}};N.addEventListener("load",I.handleLoad),N.addEventListener("error",I.handleError)}function b(N){const V=y.getOrCreateItemByURL(N),{status:O,error:I}=V;return O===p.LOADED?Promise.resolve():O===p.ERROR?Promise.reject(I):O===p.LOADING?new Promise(($,J)=>{const{el:K}=V;g(K,()=>$(),Y=>J(Y.error))}):(V.status=p.LOADING,new Promise(($,J)=>{const K=document.createElement("link");K.rel="stylesheet",K.href=N,g(K,()=>{V.status=p.LOADED,$()},Y=>{const te=Y.error||new Error(`Load css failed. href=${N}`);V.status=p.ERROR,V.error=te,J(te)}),V.el=K,K.setAttribute("data-runtime-import-type","css"),document.head.appendChild(K)}))}function w(N){return Promise.all(N.map(V=>b(V))).then(()=>Promise.resolve()).catch(V=>Promise.reject(V))}const k=x("jsCache",()=>new m(N=>({url:N,status:p.NONE,el:null,error:null,reject:null,exportThing:void 0}))),F=globalThis,{define:S}=F,{keys:E}=Object;let X=!1;typeof S<"u"&&!S.runtime_import&&(console.warn("runtime-import should NOT coexist with requiesjs or seajs or any other AMD/CMD loader."),X=!0);const j=x("pendingItemMap",()=>({})),B=function(...N){const V=N.pop(),{currentScript:O}=document;if(!O)throw new Error("currentScript is null.");const{src:I}=O,$=j[I];if(!$)throw new Error(`Can NOT find item, src=${I}`);j[I]=null;try{let J=N[0]||[],K=null;typeof J=="string"&&(K=J,J=N[1]||[]);const Y=$.exportThing=(()=>{let te=!1;const ae={};let be=V(...J.map(Ae=>Ae==="exports"?(te=!0,ae):F[Ae]));return!be&&te&&(be=ae),be})();K&&(F[K]=Y),Y&&E(Y).length===1&&Y.default&&($.exportThing=Y.default,$.exportThing.default=Y.default)}catch(J){$.status=p.ERROR,J instanceof Error&&($.error=J),$.reject(J)}},H=()=>{const{currentScript:N}=document;if(N){const{src:V}=N;if(j[V])return!0}return!1};["amd","cmd"].forEach(N=>{Object.defineProperty(B,N,{get:H})}),B.runtime_import=!0;function L(N,V){if(X)throw new Error("runtime-import UMD mode uses window.define, you should NOT have your own window.define.");F.define||(F.define=B),j[N]=V}function W(N){const V=/legao-comp\/(.*)\/[\d.]+\/web.js$/.exec(N),O=window;if(V&&V.length>0){const I=V[1];O.g_config=O.g_config||{},O.g_config.appKey=I}}function G(N,V,O){N.status=p.LOADING,W(V);const{umd:I,crossOrigin:$}=O;return new Promise((J,K)=>{const Y=document.createElement("script");if(Y.src=V,Y.async=!1,Y.crossOrigin=$,I){Y.setAttribute("data-runtime-import-type","javascript-umd"),N.reject=K;const te=Y.src;L(te,N)}else Y.setAttribute("data-runtime-import-type","javascript");g(Y,()=>{N.status=p.LOADED,N.el=null,J(N.exportThing)},te=>{const ae=te.error||new Error(`Load javascript failed. src=${V}`);N.status=p.ERROR,N.error=ae,N.el=null,K(ae)}),N.el=Y,document.body.appendChild(Y)})}function T(N,V){const O=k.getOrCreateItemByURL(N),{status:I,exportThing:$,error:J}=O;if(I===p.LOADED)return Promise.resolve($);if(I===p.ERROR)return Promise.reject(J);if(I===p.LOADING){const{el:K}=O;return new Promise((Y,te)=>{g(K,()=>Y(O.exportThing),ae=>te(ae.error))})}return G(O,N,V)}function C(N,V){let O=Promise.resolve();const I=N.length-1,{umd:$}=V;return N.forEach((J,K)=>{const Y=$&&K===I;O=O.then(()=>T(J,c(f({},V),{umd:Y})))}),O}function D(N){return h(this,null,function*(){const{scripts:V,styles:O}=N;if(O){const{urls:Y}=O;yield w(Y)}const{dependencies:I=[],entry:$,umd:J=!0,crossOrigin:K="anonymous"}=V;if(($?I.concat([$]):I).length)return yield C(I.concat([$]),{umd:J,crossOrigin:K})})}function P(N,V){return h(this,null,function*(){const O=V??{};return yield D({scripts:{dependencies:[],entry:N,umd:O.umd,crossOrigin:O.crossOrigin}})})}function M(N){return h(this,null,function*(){return yield D({scripts:{dependencies:[],entry:""},styles:{urls:[N]}})})}const z=D;n.importComponent=D,n.importModule=z,n.importScript=P,n.importStyle=M,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(No,No.exports);var jh=No.exports;function Hh(){async function e(t){return await jh.importScript(t)}return{loadWidgetAPI:e}}const vn=i.defineComponent({name:"FXWidgetContainer",props:os,setup(e,t){const{loadWidgetAPI:n}=Hh(),{deepEqual:r}=zh(),o=i.ref(null),u=i.ref(null),a=i.ref(null),s=i.ref(null),l=i.ref(null),d=i.computed(()=>{const g=Fo`width:100%!important`;return To("caf-assistant-widget-container__root",g,e.className)}),f=Fo`
30
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var u="",a=0;a<arguments.length;a++){var s=arguments[a];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 a="";for(var s in u)t.call(u,s)&&u[s]&&(a=o(a,s));return a}function o(u,a){return a?u?u+" "+a:u+a:u}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(os);var Mh=os.exports;const No=Rh(Mh),is={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 Bh{constructor(t){fe(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 zh(){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 To={exports:{}};(function(e,t){(function(n,r){r(t)})(Ph,function(n){var r=Object.defineProperty,o=Object.defineProperties,u=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,d=(T,V,O)=>V in T?r(T,V,{enumerable:!0,configurable:!0,writable:!0,value:O}):T[V]=O,f=(T,V)=>{for(var O in V||(V={}))s.call(V,O)&&d(T,O,V[O]);if(a)for(var O of a(V))l.call(V,O)&&d(T,O,V[O]);return T},c=(T,V)=>o(T,u(V)),h=(T,V,O)=>new Promise((I,$)=>{var J=te=>{try{Y(O.next(te))}catch(ae){$(ae)}},K=te=>{try{Y(O.throw(te))}catch(ae){$(ae)}},Y=te=>te.done?I(te.value):Promise.resolve(te.value).then(J,K);Y((O=O.apply(T,V)).next())}),p=(T=>(T[T.NONE=0]="NONE",T[T.LOADING=1]="LOADING",T[T.LOADED=2]="LOADED",T[T.ERROR=3]="ERROR",T))(p||{});class m{constructor(V){this.items={},this.factory=V}getOrCreateItemByURL(V){let O=this.items[V];return O||(O=this.items[V]=this.factory(V)),O}tryGetItemByURL(V){var O;return(O=this.items[V])!=null?O:null}removeItemByURL(V){const O=this.items[V];return O&&(this.items[V]=null,O)}}const v="__RUNTIME_IMPORT__";function x(T,V){var O,I;const $=globalThis,J=(O=$[v])!=null?O:$[v]={};return(I=J[T])!=null?I:J[T]=V()}const y=x("cssCache",()=>new m(T=>({url:T,status:p.NONE,el:null,error:null,reject:null})));function g(T,V,O){const I={handleLoad(){T.removeEventListener("load",I.handleLoad),T.removeEventListener("error",I.handleError),V()},handleError($){T.removeEventListener("load",I.handleLoad),T.removeEventListener("error",I.handleError),O($)}};T.addEventListener("load",I.handleLoad),T.addEventListener("error",I.handleError)}function b(T){const V=y.getOrCreateItemByURL(T),{status:O,error:I}=V;return O===p.LOADED?Promise.resolve():O===p.ERROR?Promise.reject(I):O===p.LOADING?new Promise(($,J)=>{const{el:K}=V;g(K,()=>$(),Y=>J(Y.error))}):(V.status=p.LOADING,new Promise(($,J)=>{const K=document.createElement("link");K.rel="stylesheet",K.href=T,g(K,()=>{V.status=p.LOADED,$()},Y=>{const te=Y.error||new Error(`Load css failed. href=${T}`);V.status=p.ERROR,V.error=te,J(te)}),V.el=K,K.setAttribute("data-runtime-import-type","css"),document.head.appendChild(K)}))}function w(T){return Promise.all(T.map(V=>b(V))).then(()=>Promise.resolve()).catch(V=>Promise.reject(V))}const k=x("jsCache",()=>new m(T=>({url:T,status:p.NONE,el:null,error:null,reject:null,exportThing:void 0}))),D=globalThis,{define:S}=D,{keys:E}=Object;let X=!1;typeof S<"u"&&!S.runtime_import&&(console.warn("runtime-import should NOT coexist with requiesjs or seajs or any other AMD/CMD loader."),X=!0);const j=x("pendingItemMap",()=>({})),B=function(...T){const V=T.pop(),{currentScript:O}=document;if(!O)throw new Error("currentScript is null.");const{src:I}=O,$=j[I];if(!$)throw new Error(`Can NOT find item, src=${I}`);j[I]=null;try{let J=T[0]||[],K=null;typeof J=="string"&&(K=J,J=T[1]||[]);const Y=$.exportThing=(()=>{let te=!1;const ae={};let be=V(...J.map(Ae=>Ae==="exports"?(te=!0,ae):D[Ae]));return!be&&te&&(be=ae),be})();K&&(D[K]=Y),Y&&E(Y).length===1&&Y.default&&($.exportThing=Y.default,$.exportThing.default=Y.default)}catch(J){$.status=p.ERROR,J instanceof Error&&($.error=J),$.reject(J)}},H=()=>{const{currentScript:T}=document;if(T){const{src:V}=T;if(j[V])return!0}return!1};["amd","cmd"].forEach(T=>{Object.defineProperty(B,T,{get:H})}),B.runtime_import=!0;function L(T,V){if(X)throw new Error("runtime-import UMD mode uses window.define, you should NOT have your own window.define.");D.define||(D.define=B),j[T]=V}function W(T){const V=/legao-comp\/(.*)\/[\d.]+\/web.js$/.exec(T),O=window;if(V&&V.length>0){const I=V[1];O.g_config=O.g_config||{},O.g_config.appKey=I}}function G(T,V,O){T.status=p.LOADING,W(V);const{umd:I,crossOrigin:$}=O;return new Promise((J,K)=>{const Y=document.createElement("script");if(Y.src=V,Y.async=!1,Y.crossOrigin=$,I){Y.setAttribute("data-runtime-import-type","javascript-umd"),T.reject=K;const te=Y.src;L(te,T)}else Y.setAttribute("data-runtime-import-type","javascript");g(Y,()=>{T.status=p.LOADED,T.el=null,J(T.exportThing)},te=>{const ae=te.error||new Error(`Load javascript failed. src=${V}`);T.status=p.ERROR,T.error=ae,T.el=null,K(ae)}),T.el=Y,document.body.appendChild(Y)})}function N(T,V){const O=k.getOrCreateItemByURL(T),{status:I,exportThing:$,error:J}=O;if(I===p.LOADED)return Promise.resolve($);if(I===p.ERROR)return Promise.reject(J);if(I===p.LOADING){const{el:K}=O;return new Promise((Y,te)=>{g(K,()=>Y(O.exportThing),ae=>te(ae.error))})}return G(O,T,V)}function C(T,V){let O=Promise.resolve();const I=T.length-1,{umd:$}=V;return T.forEach((J,K)=>{const Y=$&&K===I;O=O.then(()=>N(J,c(f({},V),{umd:Y})))}),O}function F(T){return h(this,null,function*(){const{scripts:V,styles:O}=T;if(O){const{urls:Y}=O;yield w(Y)}const{dependencies:I=[],entry:$,umd:J=!0,crossOrigin:K="anonymous"}=V;if(($?I.concat([$]):I).length)return yield C(I.concat([$]),{umd:J,crossOrigin:K})})}function P(T,V){return h(this,null,function*(){const O=V??{};return yield F({scripts:{dependencies:[],entry:T,umd:O.umd,crossOrigin:O.crossOrigin}})})}function M(T){return h(this,null,function*(){return yield F({scripts:{dependencies:[],entry:""},styles:{urls:[T]}})})}const z=F;n.importComponent=F,n.importModule=z,n.importScript=P,n.importStyle=M,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(To,To.exports);var jh=To.exports;function Hh(){async function e(t){return await jh.importScript(t)}return{loadWidgetAPI:e}}const vn=i.defineComponent({name:"FXWidgetContainer",props:is,setup(e,t){const{loadWidgetAPI:n}=Hh(),{deepEqual:r}=zh(),o=i.ref(null),u=i.ref(null),a=i.ref(null),s=i.ref(null),l=i.ref(null),d=i.computed(()=>{const g=Do`width:100%!important`;return No("caf-assistant-widget-container__root",g,e.className)}),f=Do`
31
31
  overflow: hidden;
32
- `,c=To("caf-assistant-widget-container__inner",f),h=i.computed(()=>{const g=Fo`
32
+ `,c=No("caf-assistant-widget-container__inner",f),h=i.computed(()=>{const g=Do`
33
33
  display: ${l.value?"block":"none"};
34
- `;return To("caf-assistant-widget-container__error",g)}),p=()=>{const g=a.value;g&&(s.value=new Bh(g))},m=()=>{const g=s.value;g&&(g.dispose(),s.value=null)},v=()=>{const g=u.value,b=o.value;g&&(g.unmount(),g.dispose()),b&&b.cleanup(),u.value=null,o.value=null},x=async()=>{const g=await n(e.widgetAPIURL);if(!g)throw new Error("Failed to load widget API");await g.initialize();const b=g.createWidget();o.value=g,u.value=b},y=g=>{console.error(g),l.value=g};return i.watch(()=>e.widgetAPIURL,async()=>{if(a.value)try{v(),await x();const g=a.value,b=u.value;b==null||b.updateOptions(e.widgetOptions),b==null||b.updateData(e.widgetData),g&&b&&await b.mount(g)}catch(g){y(g)}}),i.watch(()=>e.widgetOptions,(g,b)=>{try{const w=u.value;w&&(!b||!r(b,g))&&w.updateOptions(g)}catch(w){y(w)}}),i.watch(()=>e.widgetData,(g,b)=>{try{const w=u.value;w&&(!b||!r(b,g))&&w.updateData(g)}catch(w){y(w)}}),i.onMounted(async()=>{try{const g=a.value;if(g){p();const b=s.value;if(b){await x();const w=u.value;w&&(w.updateOptions(e.widgetOptions),w.updateData(e.widgetData),w.mount(b.getElement()),i.nextTick(()=>{g.parentElement&&(g.style.width="100%")}))}}}catch(g){y(g)}}),i.onBeforeUnmount(async()=>{try{v(),m()}catch(g){console.error(g)}}),()=>i.createVNode("div",{class:d.value},[i.createVNode("div",{ref:a,class:c},null),i.createVNode("div",{class:h.value},null)])}}),is=(e,t)=>{var n;if(e.type===Ve.AssistantWidgetComplete){const r=e;return r.widgetUrl?i.createVNode(vn,{key:`widget-${t}`,widgetAPIURL:r.widgetUrl,widgetOptions:{mode:"embedded",implOptions:r.widgetImplOptions},widgetData:((n=r.widgetData)==null?void 0:n.data)||{}},null):null}return e.type===Ve.AssistantWidgetPending?i.createVNode("div",{class:"f-chat-bubble-widget-pending",key:`widget-loading-${t}`},[i.createVNode("span",{class:"f-chat-todo-status-icon f-chat-todo-status-working"},null),i.createVNode("span",{class:"f-chat-bubble-widget-pending-text"},[i.createTextVNode("数据生成中......")])]):null},$h=3e4,as=8e3,He=new Map,ct=new Map,ur=new Map,St=[];function Fe(e){return String(e??"").replace(/^\ufeff/,"").replace(/[\u200b\u200c\u200d]/g,"").replace(/\u00a0/g," ").trim()}function au(e){const t=Fe(e);if(t)for(let n=St.length-1;n>=0;n--)St[n]===t&&St.splice(n,1)}function Uh(e){typeof window>"u"||(window.__fluens_dynamic_component_bootstrap_instance_id=e)}function su(e){if(typeof window>"u")return;const t=window;t.__fluens_dynamic_component_bootstrap_instance_id===e&&delete t.__fluens_dynamic_component_bootstrap_instance_id}function Wh(){return St[St.length-1]||void 0}function lu(e,t){const n=Fe(t);return n?Fe(e.instanceId)===n||e.componentId!=null&&Fe(String(e.componentId))===n||e.name!=null&&Fe(String(e.name))===n:!1}function Io(e){const t=Fe(e);if(!t)return null;const n=He.get(t);if(n)return{canonicalKey:t,entry:n};for(const[o,u]of He.entries())if(Fe(o)===t)return{canonicalKey:o,entry:u};const r=[];for(const[o,u]of He.entries())lu(u.config,t)&&r.push({key:o,entry:u});if(r.length===1){const{key:o,entry:u}=r[0];return o!==t&&console.warn(`[DynamicComponent] register id "${t}" resolved to pending instanceId "${o}" (alias match)`),{canonicalKey:o,entry:u}}if(r.length>1)return console.warn(`[DynamicComponent] register id "${t}" is ambiguous (${r.length} pending matches); refusing`),null;if(He.size===1){const[o,u]=[...He.entries()][0];return console.warn(`[DynamicComponent] register id "${t}" unmatched; using sole pending instance "${o}"`),{canonicalKey:o,entry:u}}return null}function ss(e,t){for(const[n,r]of ct){const o=Fe(n),u=e!==""&&o===e,a=String(t??"").trim(),s=e&&lu(r.config,e)||a&&lu(r.config,a);if(u||s)return console.warn(`[DynamicComponent] register skipped: id "${e||a}" already active (canonical "${n}"); unload first — second register yields "no pending", not duplicate mount`),!0}return!1}function Oo(){return{pendingKeys:[...He.keys()],bootstrapQueue:[...St],activeKeys:[...ct.keys()],...typeof window<"u"?{windowBootstrapPeek:window.__fluens_dynamic_component_bootstrap_instance_id}:{}}}function Gh(e){console.warn("[DynamicComponent] register diagnostics",{claimedNormalized:e,...Oo()})}function Xh(e){const t=Fe(e);if(t){if(ss(t,e))return{ok:!1,reason:"already_active_duplicate"};const r=Io(t);if(r)return{ok:!0,...r}}else if(ss("",e))return{ok:!1,reason:"already_active_duplicate"};for(let n=0;n<St.length;n++){const r=St[n],o=Io(r);if(o)return St.splice(n,1),t&&Fe(r)!==t&&console.warn(`[DynamicComponent] register id "${t}" did not match pending; using bootstrap instanceId "${r}" (sync bundle entry or use window.__fluens_dynamic_component_bootstrap_instance_id)`),{ok:!0,...o}}return{ok:!1,reason:"no_pending"}}function ls(e){const t=Fe(e);if(!t)return null;const n=ct.get(t);if(n)return n;for(const[u,a]of ct.entries())if(Fe(u)===t)return a;const r=[];for(const u of ct.values())lu(u.config,t)&&r.push(u);const o=[...new Map(r.map(u=>[u.config.instanceId,u])).values()];return o.length===1?(o[0].config.instanceId!==t&&console.warn(`[DynamicComponent] assistant post id "${t}" resolved to instanceId "${o[0].config.instanceId}" (alias match)`),o[0]):(o.length>1&&console.warn(`[DynamicComponent] assistant post id "${t}" is ambiguous (${o.length} active matches)`),null)}function qh(e){const t=Fe(e);if(!t)return null;const n=ct.get(t);if(n)return n;for(const[r,o]of ct.entries())if(Fe(r)===t)return o;return null}function Zh(e){const t=Fe(e);if(!t)return t;const n=ls(t);if(n)return n.config.instanceId;const r=Io(t);return r?r.canonicalKey:t}function Lo(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e}}}function cs(e,t){if(typeof e.onAssistantMessage!="function")return!0;try{return e.onAssistantMessage(Lo(t)),!0}catch(n){return console.warn("[DynamicComponent] onAssistantMessage failed",n),!1}}function Yh(e){const t=`fluens-dynamic-component-${e.instanceId}`;let n=document.getElementById(t);return n||(n=document.createElement("div"),n.id=t,n.style.width="100%",n.style.height="100%"),n}function ds(e){const t=ct.get(e.instanceId);if(t)return Promise.resolve(t.api);const n=He.get(e.instanceId);if(n)return new Promise((o,u)=>{const a=n.resolve,s=n.reject;n.resolve=l=>{a(l),o(l)},n.reject=l=>{s(l),u(l)}});if((e.name||e.componentId)&&!e.jsUrl)return Promise.reject(new Error(`Dynamic component resource is empty: ${e.name||e.componentId}`));const r=Yh(e);return new Promise((o,u)=>{const a={config:e,container:r,resolve:o,reject:u,timeoutId:0},s=setTimeout(()=>{a.postLoadRegisterCheckTimerId!=null&&(clearTimeout(a.postLoadRegisterCheckTimerId),a.postLoadRegisterCheckTimerId=void 0),He.delete(e.instanceId),au(e.instanceId),su(e.instanceId),u(new Error(`Dynamic component script load timeout: ${e.name||e.componentId}`))},$h);a.timeoutId=s,He.set(e.instanceId,a),St.push(e.instanceId),Uh(e.instanceId);const l=document.createElement("script");l.src=(e==null?void 0:e.jsUrl)??"",l.dataset.dynamicComponentId=e.instanceId,l.async=!1,l.onload=()=>{a.postLoadRegisterCheckTimerId=window.setTimeout(()=>{a.postLoadRegisterCheckTimerId=void 0,He.has(e.instanceId)&&(clearTimeout(s),He.delete(e.instanceId),au(e.instanceId),su(e.instanceId),u(new Error(`Dynamic component did not call __fluens_dynamic_component_register within ${as}ms after load: ${e.name||e.componentId}`)))},as)},l.onerror=()=>{clearTimeout(s),a.postLoadRegisterCheckTimerId!=null&&(clearTimeout(a.postLoadRegisterCheckTimerId),a.postLoadRegisterCheckTimerId=void 0),He.delete(e.instanceId),au(e.instanceId),su(e.instanceId),u(new Error(`Failed to load dynamic component: ${e.name||e.componentId}`))},document.head.appendChild(l)})}function fs(e){var o;const t=ct.get(e);if(t){try{t.api.unmount()}catch{}(o=t.scriptElement)==null||o.remove(),ct.delete(e)}const n=He.get(e);n&&(n.postLoadRegisterCheckTimerId!=null&&(clearTimeout(n.postLoadRegisterCheckTimerId),n.postLoadRegisterCheckTimerId=void 0),clearTimeout(n.timeoutId),He.delete(e)),ur.delete(e);const r=document.getElementById(`fluens-dynamic-component-${e}`);r&&r.remove()}function Kh(e,t){const n=Fe(e);if(!n)return!1;const r=ls(n);if(r)return cs(r.api,t);const o=Zh(n),u=ur.get(o)??[],a=u.findIndex(s=>s.messageId===t.messageId);return a>=0?u[a]=Lo(t):u.push(Lo(t)),ur.set(o,u),!1}typeof window<"u"&&(window.__fluens_get_dynamic_component_registry_debug_snapshot=Oo,window.__fluens_dynamic_component_register=function(e,t){const n=Fe(e),r=Xh(e);if(!r.ok){if(r.reason==="already_active_duplicate")return;Gh(n),console.warn(`[DynamicComponent] no pending for register id "${n}" (raw ${JSON.stringify(e)}); see diagnostics above. Try: unload tab / avoid double register / ensure FXDynamicComponent loaded this jsUrl first / empty id if sole pending`);return}const{canonicalKey:o,entry:u}=r;au(o),su(o),u.postLoadRegisterCheckTimerId!=null&&(clearTimeout(u.postLoadRegisterCheckTimerId),u.postLoadRegisterCheckTimerId=void 0),clearTimeout(u.timeoutId),He.delete(o);const a={config:u.config,container:u.container,api:t,scriptElement:document.currentScript};ct.set(o,a),a.container.parentElement;try{t.mount(u.container,u.config)}catch(l){console.error(`Failed to mount dynamic component: ${o}`,l)}const s=[o];n&&n!==o&&s.push(n);for(const l of s){const d=ur.get(l);d&&d.length>0&&(ur.delete(l),d.forEach(f=>cs(t,f)))}u.resolve(t)});const An=i.defineComponent({name:"FXDynamicComponent",props:{config:{type:Object,required:!0}},setup(e){const t=i.ref("loading"),n=i.ref(""),r=i.computed(()=>`fluens-dynamic-component-${e.config.instanceId}`),o=i.computed(()=>e.config.position==="inline"),u=i.computed(()=>!e.config.jsUrl&&!!e.config.url),a=i.computed(()=>({...o.value?{width:"fit-content",maxWidth:"100%"}:{width:"100%"},height:"auto",...t.value==="ready"&&o.value?{padding:"16px 0"}:{},...t.value==="ready"&&!o.value?{height:"100%",overflow:"hidden"}:{}}));return i.onMounted(()=>{u.value||(t.value="loading",n.value="",ds(e.config).then(()=>{t.value="ready"}).catch(s=>{t.value="error",n.value=s.message||"Unknown error"}))}),i.onUnmounted(()=>{u.value||fs(e.config.instanceId)}),()=>u.value?null:i.createVNode("div",{class:"f-chat-dynamic-component-body",style:a.value},[i.createVNode("div",{id:r.value,style:{width:"100%",height:"100%",display:t.value==="ready"?"":"none"}},null),t.value==="loading"&&i.createVNode("div",{class:"f-chat-dynamic-component-loading"},[i.createVNode("span",{class:"f-chat-dynamic-component-loading-spinner"},null),i.createVNode("span",null,[i.createTextVNode("加载中......")])]),t.value==="error"&&i.createVNode("div",{class:"f-chat-dynamic-component-error"},[i.createVNode("span",{class:"f-chat-dynamic-component-error-icon"},[i.createTextVNode("!")]),i.createVNode("span",null,[n.value])])])}}),hs=(e,t,n)=>{if(e.type===Ve.DynamicComponentComplete){const r=e;if(!r.config)return null;if(r.config.position==="inline")return i.createVNode(An,{key:`dc-${t}`,config:r.config},null);const o={type:"file",fileContent:{type:"md",name:r.config.title}},u={onPreviewFile:a=>{n.emit("showDynamicComponent",r.config)}};return n.emitDynamicComponentsDetectedOnce(r.config),i.createVNode("div",{style:{padding:"16px 0"}},[n.renderFileEmbeddedContent(o,u)])}return e.type===Ve.DynamicComponentPending?i.createVNode("div",{class:"f-chat-bubble-widget-pending",key:`dc-loading-${t}`},[i.createVNode("span",{class:"f-chat-todo-status-icon f-chat-todo-status-working"},null),i.createVNode("span",{class:"f-chat-bubble-widget-pending-text"},[i.createTextVNode("组件加载中......")])]):null};function Qh(){return{[Ve.Text]:Zf,[Ve.AssistantWidgetComplete]:is,[Ve.AssistantWidgetPending]:is,[Ve.DynamicComponentComplete]:hs,[Ve.DynamicComponentPending]:hs}}const Jh=i.defineComponent({name:"FXBubbleTextContent",props:Sc,emits:["dynamicComponentsDetected","showDynamicComponent"],setup(e,t){const{renderFileEmbeddedContent:n}=Ti(),{propertyStates:r,registerProperty:o,updatePropertyValue:u,startStreaming:a}=Rr();o("title",e.title??""),o("subtitle",e.subtitle??""),o("text",e.text??""),i.watch([()=>e.title,()=>e.subtitle,()=>e.text],([y,g,b])=>{u("title",y??""),u("subtitle",g??""),u("text",b??"")});const s=i.computed(()=>e.textFormat==="markdown"),l=i.ref(!1),d=i.computed(()=>{var y,g,b;return l.value?{title:((y=r.title)==null?void 0:y.displayedValue)??"",subtitle:((g=r.subtitle)==null?void 0:g.displayedValue)??"",text:((b=r.text)==null?void 0:b.displayedValue)??""}:{title:e.title,subtitle:e.subtitle,text:e.text}}),f=i.computed(()=>Xc(d.value.text)),c=new Set;function h(y){const g=String(y.instanceId??"").trim();!g||c.has(g)||(c.add(g),i.nextTick(()=>{var b;t.emit("dynamicComponentsDetected",[y]),(b=e.onDynamicComponentsDetected)==null||b.call(e,[y])}))}function p(y,...g){var b;t.emit(y,...g),y==="showDynamicComponent"&&((b=e.onShowDynamicComponent)==null||b.call(e,g[0]))}const m={shouldShowMarkdown:s,emit:p,emitDynamicComponentsDetectedOnce:h,renderFileEmbeddedContent:n},v=Qh(),x=()=>f.value.length===0?null:i.createVNode("div",{class:"f-chat-bubble-text-collection"},[f.value.map((y,g)=>{var b;return(b=v[y.type])==null?void 0:b.call(v,y,g,m)})]);return i.onMounted(()=>{l.value&&a()}),()=>i.createVNode(i.Fragment,null,[d.value.title&&i.createVNode("div",{class:"f-chat-bubble-content-title"},[d.value.title]),d.value.subtitle&&i.createVNode("div",{class:"f-chat-bubble-content-subtitle"},[d.value.subtitle]),x()])}}),em={content:{type:Object},outputMode:{type:String,default:"full"}},tm=i.defineComponent({name:"FXBubbleThink",props:em,setup(e,t){var X;const{propertyStates:n,registerProperty:r,updatePropertyValue:o,isAllDone:u}=Rr(),{elapsedSeconds:a,hasEverStarted:s,start:l,stop:d,reset:f}=Wu(),c=i.ref(((X=e.content)==null?void 0:X.completed)!==!0),h=i.ref(null),p=i.ref(null),m=i.ref(!1),v=i.ref(!1),x=i.computed(()=>e.outputMode==="streaming"),y=i.computed(()=>{var j;return(j=e.content)==null?void 0:j.completed}),g=i.computed(()=>{var B,H;if(y.value){const L=s.value?`(用时${a.value}秒)`:"";return((B=e.content)==null?void 0:B.title)??"思考完成"+L}return((H=e.content)==null?void 0:H.title)??"正在思考......"}),b=i.computed(()=>{var j,B;return x.value?((j=n.content)==null?void 0:j.displayedValue)??"":((B=e.content)==null?void 0:B.content)??""}),w=i.computed(()=>({"f-chat-bubble-thinking":!0,"is-pending":!y.value,"is-completed":y.value})),k=()=>{const j=h.value;if(!j||!m.value){v.value=!1;return}v.value=j.scrollTop>0};i.watch(()=>y.value,j=>{j?d():l()},{immediate:!0}),i.watch(()=>y.value,j=>{j&&(c.value=!1)}),i.watch(()=>e.content,j=>{j&&(n.content?o("content",j.content??""):r("content",j.content??""))},{immediate:!0}),i.watch(b,async()=>{if(c.value){await i.nextTick();const j=h.value;if(!j)return;await i.nextTick(),m.value=j.scrollHeight>j.clientHeight,m.value?(j.scrollTop=j.scrollHeight,v.value=!0):v.value=!1}},{immediate:!0}),i.watch(c,async j=>{if(j){await i.nextTick();const B=h.value;if(!B)return;await i.nextTick(),m.value=B.scrollHeight>B.clientHeight,m.value?(B.scrollTop=B.scrollHeight,v.value=!0):v.value=!1}}),i.onUnmounted(()=>{f()}),t.expose({instance:{get loadDone(){return e.content?(x.value?u.value:!0)&&y.value:!0}}});const F=()=>{c.value=!c.value},S=()=>y.value?null:i.createVNode(Jt,{status:"Working",variant:"thinking"},null),E=()=>!b.value||!c.value?null:i.createVNode("div",{class:"f-chat-bubble-thinking-content"},[i.createVNode("div",{class:"f-chat-bubble-thinking-scroll-container",ref:h,onScroll:k},[m.value&&v.value&&i.createVNode("div",{class:"f-chat-bubble-thinking-fade-mask"},null),i.createVNode("div",{class:"f-chat-bubble-thinking-text-wrapper"},[i.createVNode("div",{ref:p,class:"f-chat-bubble-thinking-content-text",innerHTML:b.value},null)])])]);return()=>i.createVNode("div",{class:w.value},[i.createVNode("div",{class:"f-chat-bubble-thinking-header",onClick:F},[S(),i.createVNode("span",{class:"f-chat-bubble-thinking-title",innerHTML:g.value},null),b.value&&i.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:c.value?"rotate(0deg)":"rotate(180deg)",transition:"all 0.3s ease-in-out"}},null)]),E()])}}),nm={content:{type:Object}},ms={id:{type:String},arrowOffsetX:{type:Number,default:0},class:{type:String,default:""},customStyles:{type:Object,default:null},isSimpleTips:{type:Boolean,default:!1},fitContent:{type:Boolean,default:!1},host:{type:Object},leftBoundary:{type:Object},keepWidthWithReference:{type:Boolean,default:!1},minWidth:{type:Number,default:-1},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},placement:{type:String,default:"bottom"},reference:{type:Object},rightBoundary:{type:Object},showArrow:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!1},zIndex:{type:Number,default:-1},limitContentBySpace:{type:Boolean,default:!1},beforeClose:{type:Function}};function rm(e){const t=e.host?e.host:"body",n=i.computed(()=>t==="body"?0:t?t.getBoundingClientRect().top:0),r=i.computed(()=>t==="body"?window.innerHeight:t?t.getBoundingClientRect().bottom:window.innerHeight),o=i.computed(()=>t==="body"?0:t?t.getBoundingClientRect().left:0),u=i.computed(()=>t==="body"?document.body.getBoundingClientRect().width:t?t.getBoundingClientRect().width-(e.rightBoundary?e.rightBoundary.getBoundingClientRect().width:0):document.body.getBoundingClientRect().width),a=i.computed(()=>t==="body"?window.innerHeight:t?t.getBoundingClientRect().height:window.innerHeight);return{host:t,hostLeft:o,hostTop:n,hostWidth:u,hostHeight:a,hostBottom:r}}function um(e,t,n,r){const o=i.ref(e.offsetX||0),u=i.ref(e.offsetY||0),a=i.ref(-1),s=i.ref(-1),l=i.ref(-1),d=i.ref(-1),f=i.ref(e.placement),c=i.ref(0),h=i.ref(0),p=i.ref(0),m=i.computed(()=>document.documentElement.scrollLeft),v=i.computed(()=>document.documentElement.scrollTop),{hostLeft:x,hostTop:y,hostWidth:g,hostHeight:b,hostBottom:w}=r;i.watch(()=>e.offsetX,O=>{o.value=O});const k=i.computed(()=>{const O={left:`${h.value}px`,top:`${p.value}px`,transform:`translate(${o.value}px, ${u.value}px)`};return e.zIndex!==-1&&(O["z-index"]=e.zIndex),e.fitContent?e.keepWidthWithReference&&n.value&&a.value>=n.value.getBoundingClientRect().width&&(O.width=`${a.value}px`):a.value!==-1&&(O.width=`${a.value}px`),e.minWidth!==-1&&(O.minWidth=`${e.minWidth}px`),e.customStyles&&Object.assign(O,e.customStyles),s.value>0&&(O.maxHeight=s.value+"px"),O}),F=i.computed(()=>({left:`${c.value}px`,transform:`translateX(${e.arrowOffsetX}px)`}));function S(O){if(O&&e.keepWidthWithReference){const I=O.getBoundingClientRect();a.value=Math.max(e.minWidth,I.width)}}function E(O,I){const $=g.value-O.width-4;return $>0?$:I}function X(O,I){const $=b.value-O.height-12;return $>0?$:I}function j(O,I,$){const J=c.value,K=I.left-x.value+I.width/2+m.value,Y=I.top-y.value-(O.height+$.height)+v.value;return{popoverLeft:K,popoverTop:Y,arrowLeft:J}}function B(O,I,$){const J=I.top-y.value+(I.height+$.height)+v.value,K=X(O,J);return Math.min(J,K)}function H(O,I){const $=E(I,O),J=O<=$?c.value:O-$;return{popoverLeft:Math.min(O,$),arrowLeft:J,maxHeight:0}}function L(O,I){const $=E(I,O),J=O<=$?c.value:O-$;return{popoverLeft:O,arrowLeft:J,maxHeight:0}}function W(O,I,$){const J=I.left-x.value+m.value,{arrowLeft:K,popoverLeft:Y}=L(J,O),{popoverTop:te}=j(O,I,$);return{popoverLeft:Y,popoverTop:te,arrowLeft:K,maxHeight:0}}function G(O,I,$){const J=I.left-x.value+I.width/2-($.width/2-(O.left-x.value))+m.value,{arrowLeft:K,popoverLeft:Y}=H(J,O),te=B(O,I,$);return{popoverLeft:Y,popoverTop:te,arrowLeft:K,maxHeight:0}}function T(O,I,$){const J=I.left-x.value+m.value,{arrowLeft:K,popoverLeft:Y}=H(J,O),te=B(O,I,$);return{popoverLeft:Y,popoverTop:te,arrowLeft:K,maxHeight:0}}function C(O,I,$){const J=I.left-x.value;let K=0,Y=0,te=0,ae=0,be="bottom-left";window.innerWidth-J>O.width?K=J+m.value:(K=I.right-O.width+m.value,te=O.width-$.width-20);let Ae=0;if(e.limitContentBySpace){const Zt={topHeight:I.top-y.value-$.height-8,bottomHeight:w.value-I.bottom-$.height-8};Ae=Math.max(Zt.topHeight,Zt.bottomHeight),O.height>Ae&&(ae=Ae,n.value.classList.add("popover-limitmax"))}const rt=ae?Math.floor(ae):O.height,Oe=I.top-y.value+(I.height+$.height);return w.value-Oe>rt?Y=Oe+v.value:(Y=I.top-rt-$.height+v.value,w.value-Oe>I.top?(Y=Oe+v.value,rt>I.top&&(Y=w.value-rt)):(Y=Y<0?0:Y,be="top")),n.value.classList.add("popover-"+be,"bs-popover-"+be),{popoverLeft:K<0?5:K,popoverTop:Y,arrowLeft:te,maxHeight:ae}}function D(O,I,$){const J=I.left+I.width,K=0;let Y=0,te=O.height;if(e.limitContentBySpace){const Tt=b.value-16-Math.abs(u.value);O.height>Tt?(Y=Tt,te=Tt,n.value.classList.add("popover-limitmax")):n.value.classList.remove("popover-limitmax")}const ae=Math.max(I.top-(te/2-I.height/2),y.value);let be=y.value+b.value-te-u.value;be<0&&(be=ae);const Ae=Math.min(ae,be),rt=J;return console.log("maxHeight"+Y),{popoverLeft:rt,popoverTop:Ae,arrowLeft:K,maxHeight:Y}}function P(O,I,$){const J=I.left+I.width,K=Math.max(I.top-I.height,y.value);let Y=y.value+b.value-O.height;Y<0&&(Y=K);const te=Math.min(K,Y);return{popoverLeft:J,popoverTop:te,arrowLeft:0,maxHeight:0}}const M=new Map([["top",j],["top-left",W],["bottom",G],["bottom-left",T],["right",D],["right-top",P],["auto",C]]);function z(O){var Y;e.keepWidthWithReference&&S(O);const I=O.getBoundingClientRect();l.value=I.top,d.value=I.left;const $=t.value?t.value.getBoundingClientRect():{height:4,width:4},J=(Y=n.value)==null?void 0:Y.getBoundingClientRect();a.value=J.width;const K=M.get(f.value);if(K){const{arrowLeft:te,popoverLeft:ae,popoverTop:be,maxHeight:Ae}=K(J,I,$);c.value=te,h.value=ae,p.value=be,s.value=Ae||-1}}function N(O){if(O){const I=O.getBoundingClientRect();(I.left!==d.value||I.top!==l.value)&&z(O)}}function V(){f.value=e.placement,c.value=0,h.value=0,p.value=0,a.value=-1}return{arrowStyle:F,popoverStyle:k,position:f,popoverWidth:a,fitToReference:S,followToReferencePosition:N,locateToReference:z,resetPosition:V}}function om(e,t,n,r,o,u,a){const s=i.ref(e.visible),l=i.computed(()=>s.value),{fitToReference:d,locateToReference:f,resetPosition:c}=a;let h;async function p(){s.value&&(e.beforeClose&&typeof e.beforeClose=="function"&&!await e.beforeClose()||(s.value=!1,document.body.removeEventListener("click",h),document.body.removeEventListener("mousedown",h),document.body.removeEventListener("wheel",h,!0),document.removeEventListener("scroll",h),c(),t.emit("hidden")))}h=v=>{var g;if(!o.value)return;const x=o.value.contains(v.target);if(v.type==="scroll"||v.type==="wheel"&&x){p();return}if(v.target.closest(".time-picker-panel"))return;const y=(g=v.target)==null?void 0:g.closest(".popover");if(y&&r.value&&y===r.value){v.type!=="scroll"&&v.type!=="wheel"&&v.stopPropagation();return}if(!x&&s.value){const b=o.value.closest(".popover");b&&b.removeEventListener("click",h),p()}};async function m(v){if(r.value&&(e.showArrow===!1||e.showArrow&&n.value)&&v){c(),s.value=!0,o.value=v,u.value&&d(v),await i.nextTick(),f(v),document.body.addEventListener("click",h),document.body.addEventListener("mousedown",h),document.body.addEventListener("wheel",h,!0),document.addEventListener("scroll",h),(top==null?void 0:top.document)!==document&&(top==null||top.document.addEventListener("mousedown",h));const x=v.closest(".popover");x&&x.addEventListener("click",h),t.emit("shown")}}return t.expose({hide:p,popoverRef:r,show:m,shown:l,isShow:s}),{showPopover:s,hidePopverOnClickBodyHandler:h}}function im(e,t,n,r,o,u){const{popoverWidth:a,fitToReference:s,followToReferencePosition:l}=o;function d(){var f;if(u.value&&((f=u.value.style)==null?void 0:f.display)!=="none"&&n.value){l(n.value);const c=n.value.getBoundingClientRect();r.value&&c.width!==a.value&&s(n.value)}}return{onResize:d}}function am(e,t=500){const n=i.ref(e.value);let r;const o=i.watch(e,a=>{clearTimeout(r),r=setTimeout(()=>{n.value=a},t)}),u=()=>{clearTimeout(r),o()};return i.onUnmounted(u),{delayedValue:n,cleanup:u}}const en=i.defineComponent({name:"FXPopover",props:ms,emits:["shown","hidden"],setup(e,t){const n=i.ref(),r=i.ref(),o=i.ref(e.reference),u=i.ref(e.keepWidthWithReference),a=i.computed(()=>!!e.title),s=rm(e),{host:l}=s,d=um(e,n,r,s),{position:f,arrowStyle:c,popoverStyle:h,fitToReference:p,locateToReference:m}=d,{showPopover:v,hidePopverOnClickBodyHandler:x}=om(e,t,n,r,o,u,d),{onResize:y}=im(e,t,o,u,d,r),g=i.computed(()=>{let S=f.value;S==="top-left"&&(S="top");const E=`popover in popover-${S}`,X=`bs-popover-${S}`,j={"popover-fitcontent":e.fitContent,fade:!0};j[E]=!0,j[X]=!0;const B=(e.class||"").split(" ");return e.isSimpleTips&&B.unshift("popover-tips"),B.reduce((H,L)=>(H[L]=!0,H),j),j}),b=i.computed(()=>({"popover-content":!0,"popover-body":!0})),w=i.computed(()=>{const S={};return S.opacity=v.value?1:0,S.visibility=v.value?"visible":"hidden",S.zIndex=1060,S}),k=i.computed(()=>e.isSimpleTips?!0:e.showArrow),{delayedValue:F}=am(w,50);return i.onMounted(()=>{var S;u.value&&p(o.value),e.reference&&m(o.value),window.addEventListener("resize",y),(S=r.value)==null||S.focus()}),i.onUnmounted(()=>{document.body.removeEventListener("click",x),window.removeEventListener("resize",y),v.value=!1}),()=>i.createVNode(i.Teleport,{to:l},{default:()=>{var S;return[i.withDirectives(i.createVNode("div",{tabindex:"-1",ref:r,class:g.value,style:{...h.value,...F.value},onMousedown:E=>{E.stopPropagation()},onClick:E=>{E.stopPropagation()}},[k.value&&i.createVNode("div",{ref:n,class:"popover-arrow arrow",style:c.value},null),a.value&&i.createVNode("h3",{class:"popover-title popover-header"},[e.title]),i.createVNode("div",{class:b.value},[t.slots.default&&((S=t.slots)==null?void 0:S.default())])]),[[i.vShow,v.value]])]}})}}),cu="FarrisX_PopoverInstancesKey";window[cu]=window[cu]||new WeakMap;function Vo(e,t,n){e.stopPropagation();const r=t.value;r&&r.value&&!r.value.isShow&&(r.value.show(n),window[cu].set(n,r.value))}function ps(e,t,n){e.stopPropagation(),t.value.value.hide(),window[cu].delete(n)}function sm(e,t,n){e.stopPropagation();const r=t.value;r&&r.value&&(r.value.isShow?ps(e,t,n):Vo(e,t,n))}function gs(e,t,n){t.arg&&t.arg==="toggle"?sm(e,t,n):Vo(e,t,n)}const bs={mounted:(e,t,n)=>{t.modifiers.hover?(e.addEventListener("mouseenter",r=>Vo(r,t,e)),e.addEventListener("mouseleave",r=>ps(r,t,e))):t.modifiers.click?e.addEventListener("click",r=>gs(r,t,e)):e.addEventListener("click",r=>gs(r,t,e)),e.classList.add("v-popover")},unMounted:(e,t,n)=>{}};en.install=e=>{e.component(en.name,en),e.directive("fxpopover",bs)};const ys={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"},listStatus:{type:String,default:void 0},completedCount:{type:Number,default:void 0},totalCount:{type:Number,default:void 0}},ws={items:{type:Array,default:()=>[]}},xs={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"}},du=i.defineComponent({name:"FXTodoListItemView",props:xs,emits:["click"],setup(e,{emit:t}){const{propertyStates:n,registerProperty:r,updatePropertyValue:o,startStreaming:u}=Rr();r("title",e.title??""),r("task",e.task??""),r("detail",e.message??""),i.watch([()=>e.title,()=>e.task,()=>e.message],([p,m,v])=>{o("title",p??""),o("task",m??""),o("detail",v??"")});const a=i.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=i.computed(()=>["f-chat-todo-task",{"is-done":e.status==="Done"}]);function l(){t("click",e,e.id)}const d=i.computed(()=>e.outputMode==="streaming"),f=i.computed(()=>{var p;return d.value?((p=n.title)==null?void 0:p.displayedValue)??"":e.title??""}),c=i.computed(()=>{var p;return d.value?((p=n.task)==null?void 0:p.displayedValue)??"":e.task??""}),h=i.computed(()=>{var p;return d.value?((p=n.detail)==null?void 0:p.displayedValue)??"":e.message??""});return i.onMounted(()=>{d.value&&u()}),()=>i.createVNode("li",{key:e.id,class:a.value,onClick:l},[e.todoList&&e.todoList.length>0&&i.createVNode(tn,{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&&i.createVNode(i.Fragment,null,[e.showLoading&&i.createVNode(Jt,{status:e.status??"Done",variant:"todo"},null),f.value?i.createVNode("div",{class:"f-chat-todo-task-wrapper"},[i.createVNode("span",{class:s.value},[f.value]),i.createVNode("div",{class:"f-chat-todo-task-description"},[c.value]),h.value?i.withDirectives(i.createVNode("div",{class:"f-chat-todo-task-description"},[h.value]),[[i.resolveDirective("overflow-tooltip")]]):null]):i.createVNode("div",{class:"f-chat-todo-task-wrapper"},[i.createVNode("span",{class:s.value},[c.value]),h.value?i.withDirectives(i.createVNode("div",{class:"f-chat-todo-task-description"},[h.value]),[[i.resolveDirective("overflow-tooltip")]]):null])])])}}),or=i.defineComponent({name:"FXTodoListView",props:ws,setup(e){return()=>{var t;return(t=e.items)!=null&&t.length?i.createVNode("ul",{class:"f-chat-todo-items"},[e.items.map((n,r)=>i.createVNode(du,i.mergeProps({key:r},n),null))]):null}}}),lm=300,cm={Working:"正在执行任务",Done:"已完成任务",NotStart:"待执行任务"},tn=i.defineComponent({name:"FXStartedTodo",props:ys,setup(e){const t=i.ref(null),n=i.ref(null),r=i.ref(null),o=i.ref(null),u=i.computed(()=>e.outputMode==="streaming"),{displayContent:a}=ki(()=>({detail:e.taskDetail??""}),()=>!0,u,{charInterval:30}),s=i.ref(e.initExpanded),l=i.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},lm))}function f(){e.detailViewMode!=="expand"&&(r.value!=null&&(window.clearTimeout(r.value),r.value=null),o.value=window.setTimeout(()=>{var g,b;(b=(g=n.value)==null?void 0:g.hide)==null||b.call(g),o.value=null},150))}function c(){if(e.detailViewMode==="none")return null;const g=a.value.detail??"";return i.createVNode(i.Fragment,null,[g?i.createVNode("div",{class:"f-chat-started-todo-task-detail"},[g]):null,i.createVNode(or,{items:e.todoList},null)])}function h(){e.detailViewMode==="expand"&&(s.value=!s.value)}function p(){return e.detailViewMode==="expand"?i.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:s.value?"rotate(0deg)":"rotate(180deg)",transition:"all 0.3s ease-in-out"}},null):null}function m(){return e.detailViewMode==="hover"&&i.createVNode(en,{ref:n,class:"f-chat-started-todo-popover"},{default:()=>[i.createVNode("div",{class:"f-chat-started-todo-popover-content",onMouseenter:()=>{o.value!=null&&(window.clearTimeout(o.value),o.value=null)},onMouseleave:f},[c()])]})}const v=i.computed(()=>e.listStatus==="completed"),x=i.computed(()=>{const g=e.todoList??[],b=e.totalCount??g.length;return{done:e.completedCount??g.filter(k=>(k==null?void 0:k.status)==="Done").length,total:b}});function y(){if(!v.value)return null;const{done:g,total:b}=x.value,w=b>0?`已完成 (${g}/${b})`:"已完成";return i.createVNode("span",{class:"f-chat-started-todo-completed-chip","aria-label":w},[w])}return()=>i.createVNode("div",{ref:t,class:["f-chat-message-started-todo",{"is-working":e.status==="Working","is-completed":v.value}],onMouseenter:d,onMouseleave:f},[i.createVNode("div",{class:"f-chat-message-started-todo--header",onClick:h},[e.showLabel&&i.createVNode("span",{class:"f-chat-started-todo-label"},[cm[e.status]]),i.createVNode("span",{class:"f-chat-started-todo-message",innerHTML:e.message},null),y(),p()]),e.detailViewMode==="expand"&&i.createVNode("div",{class:l.value},[c()]),m()])}});tn.install=e=>{e.component(tn.name,tn)};const dm=i.defineComponent({name:"FXBubbleThoughtChain",props:nm,setup(e,t){const{elapsedSeconds:n,hasEverStarted:r,start:o,stop:u,reset:a}=Wu(),s=i.computed(()=>{var c;return((c=e.content)==null?void 0:c.status)==="Done"}),l=i.computed(()=>{var c;return((c=e.content)==null?void 0:c.message)??"正在思考......"}),d=i.computed(()=>{var p,m;const c=((p=e.content)==null?void 0:p.doneMessage)??((m=e.content)==null?void 0:m.message)??"思考完成",h=r.value?`(用时${n.value}秒)`:"";return""+c+h}),f=i.computed(()=>s.value?d.value:l.value);return i.watch(()=>{var c;return(c=e.content)==null?void 0:c.status},c=>{c==="Working"?o():c==="Done"?u():a()},{immediate:!0}),i.onUnmounted(()=>{a()}),t.expose({instance:{get loadDone(){return e.content?s.value:!0}}}),()=>{var c,h,p,m,v,x;return e.content?i.createVNode(tn,{status:((c=e.content)==null?void 0:c.status)??"Working",message:f.value,todoList:(h=e.content)==null?void 0:h.todoList,detailViewMode:((p=e.content)==null?void 0:p.detailViewMode)??"expand",showLabel:!1,showLoading:!0,initExpanded:!0,listStatus:(m=e.content)==null?void 0:m.listStatus,completedCount:(v=e.content)==null?void 0:v.completedCount,totalCount:(x=e.content)==null?void 0:x.totalCount},null):null}}}),ir=i.defineComponent({name:"UserAuthMessage",props:{content:{type:Object,required:!0},onConfirm:{type:Function,default:void 0}},setup(e){return()=>i.createVNode("div",{class:"f-ec-auth"},[i.createVNode("div",{class:"f-ec-auth-desc"},[e.content.description]),i.createVNode("div",{class:"f-ec-auth-actions"},[e.content.options.map(t=>i.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]))])])}}),fm=300,kn=i.defineComponent({name:"FXToolUseMessage",props:{content:{type:Object,required:!0}},setup(e){const t=i.computed(()=>e.content.toolResultApplied===!0||String(e.content.result??"").trim().length>0),{getToolIconClass:n}=Gu(),r=i.computed(()=>e.content.success===!1),o=i.ref(!1);let u=setTimeout(()=>{o.value=!0},fm);i.onBeforeUnmount(()=>{u&&clearTimeout(u)});const a=i.computed(()=>t.value),s=i.computed(()=>o.value&&!t.value),l=i.computed(()=>r.value?"执行失败":a.value?"执行完成":"调用中"),d=i.ref(!1),f=i.computed(()=>({"f-chat-tool-use":!0,"is-done":a.value,"is-error":r.value})),c=i.computed(()=>({"f-chat-tool-use-status":!0,"is-done":a.value&&!r.value,"is-run":s.value&&!r.value,"is-error":r.value}));i.watch(()=>[e.content.result,e.content.toolResultApplied,e.content.success],()=>{t.value&&(d.value=!1)},{flush:"post"});const h=()=>t.value?i.createVNode("div",{class:"f-chat-tool-use-result"},[e.content.result??""]):null;return()=>i.createVNode("div",{class:f.value},[i.createVNode("div",{class:"f-chat-tool-use-header",onClick:()=>{d.value=!d.value}},[i.createVNode("i",{class:"fx-icon fx-icon-"+n(e.content.toolName)+" tool-icon"},null),i.createVNode("span",{class:"f-chat-tool-use-name"},[e.content.toolDescription??"tool"]),i.createVNode("div",{class:c.value},[r.value?i.createVNode(Jt,{status:"Error",variant:"tool-use"},null):i.createVNode(Jt,{status:a.value?"Done":s.value?"Working":"NotStart",variant:"tool-use"},null),i.createVNode("span",{class:"f-chat-tool-use-status-text"},[l.value])]),i.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:d.value?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease"}},null)]),d.value&&i.createVNode("div",{class:"f-chat-tool-use-content"},[h()])])}});kn.install=e=>{e.component(kn.name,kn)};const ar=i.defineComponent({name:"FXBubble",components:{"fx-user-auth-inline":ir,"fx-app-preview-inline":at,FXToolUse:kn},props:Lr,setup(e,t){const n=i.shallowRef(),r=i.ref(),o=i.ref(),u=i.computed(()=>!!e.showAvatar),a=i.computed(()=>u.value===!0||e.header==="ContentHeader"),s=i.computed(()=>t.slots.leftFooter||t.slots.rightFooter),l=i.computed(()=>{var L;return Ce({},(L=e.styles)==null?void 0:L.footer)}),d=L=>{if(e.attachmentRowClickOpensPreview!==!1&&e.onPreview){if(L.type==="md"&&L.content){e.onPreview({content:L.content,contentType:"markdown"});return}if(L!=null&&L.url){const W=L!=null&&L.fullScreenPreview?"fullScreen":"splitScreen";e.onPreview({url:L.url,previewMode:W,title:L.name})}}},f=L=>{if(e.attachmentRowClickOpensPreview===!1||!e.onPreview)return;const W=L==null?void 0:L.filter(T=>T.type==="md"&&T.content);if(W.length===0)return;const G=Object.fromEntries(W.map(T=>[T.name,T.content??""]));e.onPreview({contentMap:G,contentType:"markdown"})},{renderFileEmbeddedContent:c,renderPageEmbeddedContent:h}=Ti(),p=i.ref(""),m=i.computed(()=>{var W,G;if((W=e.content)!=null&&W.footerContent)return e.content.footerContent;const L=(G=e.content)==null?void 0:G.structuredContent;return L&&(L.footerTemplate||L.footerUrl||L.footerFile)?{type:L.footerUrl?"page":L.footerFile?"file":"template",pageUrl:L.footerUrl,fileContent:L.footerFile,template:L.footerTemplate,width:L.footerWidth,height:L.footerHeight}:null});i.watch(()=>{var L;return(L=m.value)==null?void 0:L.width},L=>{if(!L){p.value="";return}if(L.endsWith("%")){const W=parseFloat(L);isNaN(W)||i.nextTick(()=>{var T,C;const G=(C=(T=n.value)==null?void 0:T.parentElement)==null?void 0:C.clientWidth;G&&(p.value=`${G*W/100}px`)})}else p.value=L},{immediate:!0});const v=L=>{if(!L||L.length===0)return"我";const W=L.charAt(0);return/[\u4e00-\u9fa5]/.test(W)?W:W.toUpperCase()};function x(){return e.header==="ContentHeader"?vc:Ac}const y=x(),{renderHeader:g}=y(e,t),b=()=>{var G,T,C;const L=((G=e.content)==null?void 0:G.sender)??"发送人",W=v(((T=e.content)==null?void 0:T.sender)??"");return i.createVNode("div",{class:"f-chat-bubble-avatar"},[(C=e.content)!=null&&C.avatar?i.createVNode("img",{src:e.content.avatar,alt:L},null):i.createVNode("div",{class:"f-chat-bubble-avatar-initial"},[W])])},w=()=>{var W;const L=(W=e.content)==null?void 0:W.toolUseAboveText;return L!=null&&L.length?i.createVNode("div",{class:"f-chat-bubble-tool-use-group"},[L.map((G,T)=>i.createVNode(kn,{key:G.toolUseId??`tu-${T}`,content:G},null))]):null},k=()=>{var L;return(L=e.content)!=null&&L.thinkingContent?i.createVNode(tm,{ref:r,content:e.content.thinkingContent,outputMode:e.outputMode},null):null},F=()=>{var L;return(L=e.content)!=null&&L.startedTodo?i.createVNode(dm,{ref:o,content:e.content.startedTodo},null):null},S=L=>{if(!(L!=null&&L.type))return null;const{type:W}=L;return W==="page"&&L.pageUrl?h(L,{onNavigate:G=>{var T;(T=e.onPreview)==null||T.call(e,{url:G})}}):W==="file"&&L.fileContent?c(L,{onPreviewFile:d,onBatchPreviewFile:f}):W==="template"&&L.template?L.template():null},E=()=>{var T,C,D;if(!((D=(C=(T=e.content)==null?void 0:T.structuredContent)==null?void 0:C.sections)!=null&&D.length))return null;const{sections:L,showDivider:W}=e.content.structuredContent,G=P=>{const{content:M,label:z}=P;return z||M&&typeof M=="string"?i.createVNode(i.Fragment,null,[i.createVNode("span",{class:"f-chat-bubble-structured-section-item-dot"},null),P.label&&i.createVNode("span",{class:"f-chat-bubble-structured-section-item-label"},[P.label]),i.createVNode("span",{class:"f-chat-bubble-structured-section-item-content"},[P.content])]):S(P.content)};return i.createVNode("div",{class:["f-chat-bubble-structured",{"structure-content-divider":W}]},[L.map((P,M)=>i.createVNode("div",{key:M,class:["f-chat-bubble-structured-section",{"section-divider":P.showDivider}]},[i.createVNode("div",{class:"f-chat-bubble-structured-section-header"},[P.icon&&(P.icon.startsWith("http")||P.icon.startsWith("//")||P.icon.startsWith("../")||/\.(png|jpg|jpeg|gif|svg|webp|bmp)$/i.test(P.icon)?i.createVNode("img",{alt:P.title,src:P.icon,class:"f-chat-bubble-structured-section-icon"},null):i.createVNode("i",{class:`fx-icon ${P.icon}`,style:P.iconStyle},null)),i.createVNode("span",{class:"f-chat-bubble-structured-section-title"},[P.title])]),P.items&&P.items.length>0&&i.createVNode("div",{class:"f-chat-bubble-structured-section-items"},[P.items.map((z,N)=>i.createVNode("div",{key:N,class:"f-chat-bubble-structured-section-item"},[G(z)]))])]))])},X=()=>{const L=m.value;if(!L)return null;const W={};return p.value&&(W.width=p.value),L.height&&(W.height=`${L.height}px`),i.createVNode("div",{class:"f-chat-bubble-content-footer",style:W},[S(L)])},j=()=>{const L=e.attachmentRowClickOpensPreview!==!1?d:void 0;return i.createVNode(Di,{attachments:e.attachments??[],enableFixedWidth:e.placement==="end",showDownloadButton:e.attachmentShowDownload!==!1,onPreview:L,onBatchPreview:e.attachmentRowClickOpensPreview!==!1?f:void 0,role:e.role},null)},B=()=>{var W;const L=(W=e.content)==null?void 0:W.compositeInlineBlocks;return L!=null&&L.length?L.map((G,T)=>G.kind==="userAuth"?i.createVNode(i.resolveComponent("fx-user-auth-inline"),{key:`inline-auth-${T}`,content:G.content,onConfirm:e.onUserAuthConfirm},null):i.createVNode(i.resolveComponent("fx-app-preview-inline"),{key:`inline-preview-${T}`,content:G.content,onOpen:e.onPreview},null)):null},H=()=>{var L,W,G,T,C,D;return i.createVNode("div",{class:`f-chat-bubble-content ${e.placement}`},[a.value&&g(),j(),i.createVNode("div",{class:`f-chat-bubble-content-text-wrapper ${e.placement}`},[(L=e.content)!=null&&L.compositeOrderedBeforeMarkdownRender?e.content.compositeOrderedBeforeMarkdownRender():i.createVNode(i.Fragment,null,[k(),w()]),F(),E(),i.createVNode(Jh,{title:((W=e.content)==null?void 0:W.title)??"",subtitle:((G=e.content)==null?void 0:G.subtitle)??"",text:typeof((T=e.content)==null?void 0:T.text)=="string"?e.content.text:"",textFormat:((C=e.content)==null?void 0:C.textFormat)??"plain",placement:e.placement,onDynamicComponentsDetected:e==null?void 0:e.onDynamicComponentsDetected,onShowDynamicComponent:e==null?void 0:e.onShowDynamicComponent},null),X(),(D=e.compositeTailRender)==null?void 0:D.call(e),B()]),s.value&&i.createVNode("div",{class:"f-chat-bubble-footer",style:l.value},[t.slots.leftFooter&&i.createVNode("div",{class:"f-chat-bubble-footer-left"},[t.slots.leftFooter()]),t.slots.rightFooter&&i.createVNode("div",{class:"f-chat-bubble-footer-right"},[t.slots.rightFooter()])])])};return()=>i.createVNode("div",{class:"f-chat-bubble-container",ref:n},[i.createVNode("div",{class:`f-chat-bubble-wrapper ${e.placement}`},[e.placement==="start"?i.createVNode(i.Fragment,null,[u.value&&b(),H()]):i.createVNode(i.Fragment,null,[H(),u.value&&b()])])])}}),vs={customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""}},Po=i.defineComponent({name:"FXBubbleAction",props:vs,setup(e,t){const n=i.computed(()=>Ce({},e.customStyle));return()=>t.slots.default&&i.createVNode("span",{class:"f-chat-bubble-footer-action",style:n.value},[t.slots.default()])}});ar.install=e=>{e.component(ar.name,ar),e.component(Po.name,Po)};const As={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"}},ks={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:()=>({})}},fu=i.defineComponent({name:"FXCarouselItem",props:ks,emits:["click"],setup(e,{slots:t,emit:n}){const r=i.computed(()=>{var c;const f={"fx-carousel--item":!0,"fx-carousel--item-active":e.active};return we(f,(c=e.classNames)==null?void 0:c.item)}),o=i.computed(()=>{var c,h;const f=Ce({},(c=e.styles)==null?void 0:c.item);return Ce(f,(h=e.styles)==null?void 0:h.item)}),u=()=>{var f,c,h;return e.item.image?i.createVNode("img",{class:["fx-carousel--item-image",(f=e.classNames)==null?void 0:f.image],style:(c=e.styles)==null?void 0:c.image,src:e.item.image,alt:(h=e.item.title)==null?void 0:h.toString()},null):null},a=()=>{var f,c,h,p;return e.item.content?i.createVNode("div",{class:["fx-carousel--item-content",(f=e.classNames)==null?void 0:f.content],style:(c=e.styles)==null?void 0:c.content},[e.item.content]):t.default?i.createVNode("div",{class:["fx-carousel--item-content",(h=e.classNames)==null?void 0:h.content],style:(p=e.styles)==null?void 0:p.content},[t.default()]):null},s=()=>{var f,c;return e.item.title?i.createVNode("h3",{class:["fx-carousel--item-title",(f=e.classNames)==null?void 0:f.title],style:(c=e.styles)==null?void 0:c.title},[e.item.title]):null},l=()=>{var f,c;return e.item.description?i.createVNode("p",{class:["fx-carousel--item-description",(f=e.classNames)==null?void 0:f.description],style:(c=e.styles)==null?void 0:c.description},[e.item.description]):null},d=f=>{e.item.disabled||n("click",f,e.item,e.index)};return()=>i.createVNode("div",{class:r.value,style:o.value,onClick:d},[u(),a(),e.showInfo&&i.createVNode("div",{class:"fx-carousel--item-info"},[s(),l()])])}});function hm(e){const{items:t,autoplay:n=!1,interval:r=3e3,loop:o=!0,direction:u="horizontal"}=e,a=i.ref(0),s=i.ref(!1),l=i.ref(null),d=i.computed(()=>t.length),f=i.computed(()=>d.value<=1);i.computed(()=>a.value===0?o?d.value-1:0:a.value-1),i.computed(()=>a.value===d.value-1?o?0:a.value:a.value+1);const c=i.computed(()=>{const b=-a.value*100;return{transform:u==="horizontal"?`translateX(${b}%)`:`translateY(${b}%)`,transition:"transform 0.5s ease"}}),h=b=>{b<0||b>=d.value||(a.value,a.value=b)},p=()=>{f.value||(a.value===d.value-1?h(o?0:a.value):h(a.value+1))},m=()=>{f.value||(a.value===0?h(o?d.value-1:0):h(a.value-1))},v=()=>{!n||f.value||(x(),l.value=window.setInterval(()=>{s.value||p()},r))},x=()=>{l.value&&(clearInterval(l.value),l.value=null)},y=()=>{s.value=!0,n&&x()},g=()=>{s.value=!1,n&&v()};return i.onMounted(()=>{v()}),i.onUnmounted(()=>{x()}),{currentIndex:a,totalItems:d,isSingleItem:f,trackStyle:c,goTo:h,next:p,prev:m,handleMouseEnter:y,handleMouseLeave:g}}const sr=i.defineComponent({name:"FXCarousel",props:As,emits:["update:modelValue","change","item-click"],setup(e,{slots:t,emit:n}){const{currentIndex:r,isSingleItem:o,trackStyle:u,goTo:a,next:s,prev:l,handleMouseEnter:d,handleMouseLeave:f}=hm({items:e.items,autoplay:e.autoplay,interval:e.interval,loop:e.loop,direction:e.direction}),c=k=>{n("update:modelValue",k),n("change",k,r.value)},h=i.computed(()=>{var F;const k={"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 we(k,(F=e.classNames)==null?void 0:F.root)}),p=i.computed(()=>{var S;const k={height:typeof e.height=="number"?`${e.height}px`:e.height},F=Ce(k,e.customStyle);return Ce(F,(S=e.styles)==null?void 0:S.root)}),m=i.computed(()=>{var F;const k={"fx-carousel--container":!0,"fx-carousel--container-hover":e.arrowVisibility==="hover"};return we(k,(F=e.classNames)==null?void 0:F.container)}),v=i.computed(()=>{var F;return we({"fx-carousel--track":!0},(F=e.classNames)==null?void 0:F.track)}),x=i.computed(()=>{var F;const k={"fx-carousel--indicator":!0,"fx-carousel--indicator-outside":e.indicatorPosition==="outside","fx-carousel--indicator-none":e.indicatorPosition==="none"||!e.showIndicator};return we(k,(F=e.classNames)==null?void 0:F.indicator)}),y=k=>{var S,E;const F={"fx-carousel--arrow":!0,"fx-carousel--arrow-left":k==="left","fx-carousel--arrow-right":k==="right","fx-carousel--arrow-never":e.arrowVisibility==="never"||!e.showArrow};return F[`fx-carousel--arrow-${e.buttonPosition}`]=!0,we(F,k==="left"?(S=e.classNames)==null?void 0:S.arrowLeft:(E=e.classNames)==null?void 0:E.arrowRight)},g=k=>{var E,X;if(o.value)return null;const F=k==="left"?l:s,S=t[k==="left"?"prevArrow":"nextArrow"];return i.createVNode("button",{class:y(k),style:k==="left"?(E=e.styles)==null?void 0:E.arrowLeft:(X=e.styles)==null?void 0:X.arrowRight,onClick:F,"aria-label":`${k} arrow`},[S?S():i.createVNode("i",{style:"font-size: 60px;",class:`fx-icon fx-icon-arrow-${k==="left"?"left":"right"}`},null)])},b=()=>{var k;return o.value||!e.showIndicator?null:i.createVNode("div",{class:x.value,style:(k=e.styles)==null?void 0:k.indicator},[e.items.map((F,S)=>{var E,X;return i.createVNode("button",{"aria-label":`indicator ${S}`,key:S,class:["fx-carousel--indicator-item",{"fx-carousel--indicator-item-active":S===r.value}],style:S===r.value?(E=e.styles)==null?void 0:E.indicatorItemActive:(X=e.styles)==null?void 0:X.indicatorItem,onClick:()=>{a(S),c(S)}},null)})])},w=()=>i.createVNode("div",{class:v.value,style:u.value},[e.items.map((k,F)=>i.createVNode(fu,{key:k.id||`item_${F}`,item:k,showInfo:e.showInfo,index:F,active:F===r.value,styles:e.styles,classNames:e.classNames,onClick:(S,E,X)=>{n("item-click",S,E,X)}},{default:()=>{var S,E;return[(S=t.item)==null?void 0:S.call(t,{item:k,index:F,active:F===r.value}),(E=t[`item${F}`])==null?void 0:E.call(t,{item:k,index:F,active:F===r.value})]}}))]);return()=>{var k;return i.createVNode("div",{class:h.value,style:p.value,onMouseenter:d,onMouseleave:f},[e.buttonPosition==="outer"&&g("left"),i.createVNode("div",{class:m.value,style:(k=e.styles)==null?void 0:k.container},[e.buttonPosition==="inner"&&g("left"),w(),e.buttonPosition==="inner"&&g("right")]),e.buttonPosition==="outer"&&g("right"),b()])}}});sr.install=e=>{e.component(sr.name,sr),e.component(fu.name,fu)};const Cs={customStyle:{type:String,default:""},customClass:{type:String,default:""},direction:{Type:String,default:"row"}};function mm(e){const t=i.ref(-1),n=i.ref(-1),r=i.ref(0),o=i.ref(0),u=i.ref(!1),a=i.ref(!1),s=i.computed(()=>({display:u.value?"block":"none",left:`${r.value}px`,cursor:"e-resize"})),l=i.computed(()=>({display:a.value?"block":"none",top:`${o.value}px`,cursor:"n-resize"})),d=i.computed(()=>{const x={display:a.value||u.value?"block":"none"};return o.value>0&&(x.cursor="n-resize"),x});function f(x,y,g,b){const w=e.value;if(w){const{left:k,right:F,width:S}=w.getBoundingClientRect();let E=x.clientX-k;b==="right"&&(E=F-x.clientX),E>y&&(E=y),E<g&&(E=g),b==="right"&&(E=S-E),r.value=E}}function c(x,y,g,b){const w=e.value;if(w){const{top:k,bottom:F,height:S}=w.getBoundingClientRect();let E=x.clientY-k;b==="bottom"&&(E=F-x.clientY),E>y&&(E=y),E<g&&(E=g),b==="bottom"&&(E=S-E),o.value=E}}function h(){const x=e.value;if(x){const{width:y,height:g}=x.getBoundingClientRect();return{width:y,height:g}}return null}function p(){const x=e.value;return x?Array.from(x.querySelectorAll("[data-position]")).reduce((y,g)=>{const b=g.getAttribute("data-position");return y=Object.assign(y,{[b]:g}),y},{}):null}function m(x,y){const g=h(),b=p();if(g&&b){const w=b==null?void 0:b.right,k=b==null?void 0:b.left;if(x==="left"&&k)return w?g.width-w.clientWidth-y:g.width-y;if(x==="right"&&w)return k?g.width-k.clientWidth-y:g.width-y}}function v(x,y){const g=h(),b=p();if(g&&b){const w=b==null?void 0:b.bottom,k=b==null?void 0:b.top;if(x==="top"&&k)return w?g.height-w.clientHeight-y:g.height-y;if(x==="bottom"&&w)return k?g.height-k.clientHeight-y:g.height-y}}return{horizontalResizeHandleStyle:s,verticalResizeHandleStyle:l,resizeOverlayStyle:d,showHorizontalResizeHandle:u,showVerticalResizeHandle:a,horizontalResizeBarPosition:t,verticalResizeBarPosition:n,verticalResizeHandleOffset:o,horizontalResizeHandleOffset:r,draggingHorizontalResizeHandle:f,draggingVerticalResizeHandle:c,getPanelMaxWidth:m,getPanelMaxHeight:v}}const Cn=i.defineComponent({name:"FXSplitter",props:Cs,emits:[],setup(e,t){const n=i.ref(),r=mm(n),{horizontalResizeHandleStyle:o,verticalResizeHandleStyle:u,resizeOverlayStyle:a}=r;i.provide("splitter",{useResizeHandleComposition:r});const s=i.computed(()=>we({"f-splitter":!0},e==null?void 0:e.customClass)),l=i.computed(()=>{const d={"flex-direction":e.direction==="row"?"row":"column"};return Ce(d,e==null?void 0:e.customStyle)});return()=>i.createVNode("div",{class:s.value,ref:n,style:l.value},[t.slots.default&&t.slots.default(),i.createVNode("div",{class:"f-splitter-resize-overlay",style:a.value},null),i.createVNode("div",{class:"f-splitter-horizontal-resize-proxy",style:o.value},null),i.createVNode("div",{class:"f-splitter-vertical-resize-proxy",style:u.value},null)])}}),pm={customClass:{type:String,defaut:""},customStyle:{type:String,default:""},width:{type:Number},height:{type:Number},position:{type:String,default:"left"},visible:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},resizeHandle:{type:String,default:""},collapsable:{type:Boolean,default:!1},minWidth:{type:Number,default:100},minHeight:{type:Number,default:100},maxWidth:{type:Number,default:0},maxHeight:{type:Number,default:0}};function gm(e,t){const n=i.ref(e.width),r=i.ref(e.height),{horizontalResizeBarPosition:o,horizontalResizeHandleOffset:u,showHorizontalResizeHandle:a,showVerticalResizeHandle:s,verticalResizeBarPosition:l,verticalResizeHandleOffset:d,draggingHorizontalResizeHandle:f,draggingVerticalResizeHandle:c,getPanelMaxWidth:h,getPanelMaxHeight:p}=t;let m="",v,x,y;const g=()=>e.maxWidth?e.maxWidth:h(m,e.minWidth)||0,b=()=>e.maxHeight?e.maxHeight:p(m,e.minHeight)||0;function w(S){if((m==="left"||m==="right")&&x){const{left:E}=x.getBoundingClientRect(),{width:X}=v.getBoundingClientRect(),j=S.clientX-E;let B=m==="left"?(X||0)+(j-o.value):(X||0)-(j-o.value);B=e.minWidth>0?Math.max(e.minWidth,B):B;const H=g();H!=null&&H>0&&(B=H>B?B:H),n.value=B}if((m==="top"||m==="bottom")&&x){const{top:E}=x.getBoundingClientRect(),{height:X}=v.getBoundingClientRect(),j=S.clientY-E;let B=m==="top"?(X||0)+(j-l.value):(X||0)-(j-l.value);B=e.minHeight>0?Math.max(e.minHeight,B):B;const H=b();H!=null&&H>0&&(B=H>B?B:H),r.value=B}u.value=0,d.value=0,o.value=-1,l.value=-1,a.value=!1,s.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",w),document.body.style.userSelect="",m="",v=null,x=null}function k(S,E,X){if(m=E,v=X,a.value=!0,x=S.composedPath().find(B=>B.className.split(" ")[0]==="f-splitter"),x){const{left:B}=x.getBoundingClientRect();u.value=S.clientX-B,o.value=S.clientX-B;const H=g();y=L=>f(L,H,e.minWidth,m),document.addEventListener("mousemove",y),document.addEventListener("mouseup",w),document.body.style.userSelect="none"}}function F(S,E,X){if(m=E,v=X,s.value=!0,x=S.composedPath().find(B=>B.className.split(" ")[0]==="f-splitter"),x){const{top:B}=x.getBoundingClientRect();d.value=S.clientY-B,l.value=S.clientY-B;const H=b();y=L=>c(L,H,e.minHeight,m),document.addEventListener("mousemove",y),document.addEventListener("mouseup",w),document.body.style.userSelect="none"}}return{actualWidth:n,actualHeight:r,onClickSplitterHorizontalResizeBar:k,onClickSplitterVerticalResizeBar:F}}const lr=i.defineComponent({name:"FSplitterPane",props:pm,emits:[],setup(e,t){const n=i.ref(),r=i.inject("splitter"),{useResizeHandleComposition:o}=r,u=gm(e,o),{actualHeight:a,actualWidth:s,onClickSplitterHorizontalResizeBar:l,onClickSplitterVerticalResizeBar:d}=u,f=i.ref(e.position),c=i.computed(()=>{const b={"f-splitter-pane":!0,"f-splitter-pane-main":f.value==="center","has-resize-bar":e.resizable};return b["f-splitter-pane-"+f.value]=!0,we(b,e==null?void 0:e.customClass)}),h=i.computed(()=>e.resizeHandle?e.resizeHandle.split(",").filter(b=>["e","n","s","w"].find(w=>w===b)):[]),p=i.computed(()=>{const b={};return(s.value||s.value===0)&&(f.value==="left"||f.value==="right"||h.value.find(w=>w==="e")||h.value.find(w=>w==="w"))&&(b.width=`${s.value}px`),(a.value||a.value===0)&&(f.value==="bottom"||f.value==="top"||h.value.find(w=>w==="s")||h.value.find(w=>w==="n"))&&(b.height=`${a.value}px`),e.visible||(b.display="none"),Ce(b,e==null?void 0:e.customStyle)}),m=i.computed(()=>({"f-splitter-resize-bar":!0,"f-splitter-resize-bar-e":f.value==="left","f-splitter-resize-bar-n":f.value==="bottom","f-splitter-resize-bar-s":f.value==="top","f-splitter-resize-bar-w":f.value==="right"}));function v(b){return{e:"left",w:"right",s:"top",n:"bottom"}[b]||b}function x(b,w){w=v(w),["left","right"].find(k=>k===w)&&l(b,w,n.value),["top","bottom"].find(k=>k===w)&&d(b,w,n.value)}function y(){return h.value.length>0?h.value.map(b=>i.createVNode("span",{class:"f-splitter-resize-bar f-splitter-resize-bar-"+b,onMousedown:w=>x(w,b)},null)):i.createVNode("span",{class:m.value,onMousedown:b=>x(b,f.value)},null)}function g(){s.value=e.width,a.value=e.height,p.value}return t.expose({reset:g}),()=>i.createVNode("div",{ref:n,class:c.value,style:p.value,"data-position":f.value},[t.slots.default&&t.slots.default(),e.resizable&&y()])}});Cn.install=e=>{e.component(Cn.name,Cn),e.component(lr.name,lr)};const Es={previewConfig:{type:Object,default:()=>({})},onClose:{type:Function,default:()=>{}},onIframeLoad:{type:Function,default:()=>{}}},_s={content:{type:String,default:null}},bm=e=>{const t=typeof e;return t!=="function"&&t!=="object"||e===null},ym=e=>{const t=e.flags===""?void 0:e.flags;return new RegExp(e.source,t)},cr=(e,t=new WeakMap)=>{if(e===null||bm(e))return e;if(t.has(e))return t.get(e);if(e instanceof RegExp)return ym(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,cr(o,t))}),r}if(e instanceof Set){const r=new Set;t.set(e,r);for(const o of e)r.add(cr(o,t));return r}if(Array.isArray(e)){const r=[];return t.set(e,r),e.forEach(o=>{r.push(cr(o,t))}),r}const n={};t.set(e,n);for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=cr(e[r],t));return n},wm=(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)})},Ro=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,hu=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),xm=new Set(["__proto__","constructor","prototype"]),vm=e=>!xm.has(e),Mo=(e,t,n={})=>{if(Array.isArray(e)&&Array.isArray(t))return Bo(e,t,n);const{excludeKeys:r}=n,o=e,u=t;for(const a of Object.keys(u)){if(!vm(a))continue;const s=u[a],l=o[a];r&&r(a)?o[a]=s:Array.isArray(s)&&Array.isArray(l)?o[a]=Bo(l,s,n):hu(s)&&hu(l)?o[a]=Mo(l,s,n):o[a]=s}return e},Bo=(e,t,n)=>{const r=e.slice();return t.forEach((o,u)=>{const a=r[u];Array.isArray(o)&&Array.isArray(a)?r[u]=Bo(a,o,n):hu(o)&&hu(a)?r[u]=Mo(a,o,n):r[u]=o}),r},Z="md-editor",de="https://unpkg.com",Am=`${de}/@highlightjs/cdn-assets@11.11.1/highlight.min.js`,Ss={main:`${de}/prettier@3.8.1/standalone.js`,markdown:`${de}/prettier@3.8.1/plugins/markdown.js`},km={css:`${de}/cropperjs@1.6.2/dist/cropper.min.css`,js:`${de}/cropperjs@1.6.2/dist/cropper.min.js`},Cm=`${de}/screenfull@5.2.0/dist/screenfull.js`,Em=`${de}/mermaid@11.12.3/dist/mermaid.min.js`,_m={js:`${de}/katex@0.16.33/dist/katex.min.js`,css:`${de}/katex@0.16.33/dist/katex.min.css`},zo={a11y:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/a11y-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/a11y-dark.min.css`},atom:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-dark.min.css`},github:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/github.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/github-dark.min.css`},gradient:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/gradient-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/gradient-dark.min.css`},kimbie:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-dark.min.css`},paraiso:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-dark.min.css`},qtcreator:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-dark.min.css`}},Sm=`${de}/echarts@6.0.0/dist/echarts.min.js`,Ds={"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"}}},dt={editorExtensions:{highlight:{js:Am,css:zo},prettier:{standaloneJs:Ss.main,parserMarkdownJs:Ss.markdown},cropper:{...km},screenfull:{js:Cm},mermaid:{js:Em,enableZoom:!0},katex:{..._m},echarts:{js:Sm}},editorExtensionsAttrs:{},editorConfig:{languageUserDefined:{},mermaidTemplate:{},renderDelay:500,zIndex:2e4},codeMirrorExtensions:e=>e,markdownItConfig:()=>{},markdownItPlugins:e=>e,mermaidConfig:e=>e,katexConfig:e=>e,echartsConfig:e=>e},Dm=({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]},Fm="buildFinished",jo="errorCatcher",Ho="catalogChanged",Tm="pushCatalog",Fs="rerender",Nm="taskStateChanged";class Im{constructor(){fe(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(a){console.error(`${n} monitor event exception!`,a)}})}}const ot=new Im,Om=(e,t)=>{if(!e)return e;const n=t.split(`
35
- `),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 Ts(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 Lm={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>`},Dt=(e,t)=>typeof t[e]=="string"?t[e]:Lm[e],Ut=(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 a=Pm(e,u);t.onload&&a.addEventListener("load",t.onload),document.head.appendChild(a)}},Vm=(e,t)=>{var n;(n=document.getElementById(t.id))==null||n.remove(),Ut(e,t)},Pm=(e,t)=>{const n=document.createElement(e);return Object.keys(t).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),n},Rm=(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">${Dt("copy",t.customIcon)}</span>`):(r.insertAdjacentHTML("beforeend",`<div class="${Z}-mermaid-action"><span class="${Z}-mermaid-copy">${Dt("copy",t.customIcon)}</span></div>`),o=r.querySelector(`.${Z}-mermaid-action`));const u=o.querySelector(`.${Z}-mermaid-copy`);let a=-1;const s=()=>{clearTimeout(a),Ts(r.dataset.content||"").then(()=>{u.innerHTML=Dt("check",t.customIcon)}).catch(()=>{u.innerHTML=Dt("copy",t.customIcon)}).finally(()=>{a=window.setTimeout(()=>{u.innerHTML=Dt("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()}},Mm=(()=>{const e=t=>{if(!t)return()=>{};const n=t.firstChild;let r=1,o=0,u=0,a=!1,s,l,d,f=1;const c=()=>{n.style.transform=`translate(${o}px, ${u}px) scale(${r})`},h=w=>{w.touches.length===1?(a=!0,s=w.touches[0].clientX-o,l=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)},p=w=>{if(w.preventDefault(),a&&w.touches.length===1)o=w.touches[0].clientX-s,u=w.touches[0].clientY-l,c();else if(w.touches.length===2){const k=Math.hypot(w.touches[0].clientX-w.touches[1].clientX,w.touches[0].clientY-w.touches[1].clientY)/d,F=r;r=f*(1+(k-1));const S=(w.touches[0].clientX+w.touches[1].clientX)/2,E=(w.touches[0].clientY+w.touches[1].clientY)/2,X=n.getBoundingClientRect(),j=(S-X.left)/F,B=(E-X.top)/F;o-=j*(r-F),u-=B*(r-F),c()}},m=()=>{a=!1},v=w=>{w.preventDefault();const k=.02,F=r;w.deltaY<0?r+=k:r=Math.max(.1,r-k);const S=n.getBoundingClientRect(),E=w.clientX-S.left,X=w.clientY-S.top;o-=E/F*(r-F),u-=X/F*(r-F),c()},x=w=>{a=!0,s=w.clientX-o,l=w.clientY-u},y=w=>{a&&(o=w.clientX-s,u=w.clientY-l,c())},g=()=>{a=!1},b=()=>{a=!1};return t.addEventListener("touchstart",h,{passive:!1}),t.addEventListener("touchmove",p,{passive:!1}),t.addEventListener("touchend",m),t.addEventListener("wheel",v,{passive:!1}),t.addEventListener("mousedown",x),t.addEventListener("mousemove",y),t.addEventListener("mouseup",g),t.addEventListener("mouseleave",b),()=>{t.removeEventListener("touchstart",h),t.removeEventListener("touchmove",p),t.removeEventListener("touchend",m),t.removeEventListener("wheel",v),t.removeEventListener("mousedown",x),t.removeEventListener("mousemove",y),t.removeEventListener("mouseup",g),t.removeEventListener("mouseleave",b)}};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">${Dt("pin-off",n.customIcon)}</span>`):(o.insertAdjacentHTML("beforeend",`<div class="${Z}-mermaid-action"><span class="${Z}-mermaid-zoom">${Dt("pin-off",n.customIcon)}</span></div>`),u=o.querySelector(`.${Z}-mermaid-action`));const a=u.querySelector(`.${Z}-mermaid-zoom`),s=()=>{const l=r.get(o);if(l!=null&&l.removeEvent)l.removeEvent(),o.removeAttribute("data-grab"),r.set(o,{removeClick:l.removeClick}),a.innerHTML=Dt("pin-off",n.customIcon);else{const d=e(o);o.setAttribute("data-grab",""),r.set(o,{removeEvent:d,removeClick:l==null?void 0:l.removeClick}),a.innerHTML=Dt("pin",n.customIcon)}};a.addEventListener("click",s),r.set(o,{removeClick:()=>a.removeEventListener("click",s)})}),()=>{r.forEach(({removeEvent:o,removeClick:u})=>{o==null||o(),u==null||u()}),r.clear()}}})(),Ns=new Set([!0,!1,"alt","title"]);function Is(e,t){return(Array.isArray(e)?e:[]).filter(([n])=>n!==t)}function Os(e,t){e&&e.attrs&&(e.attrs=Is(e.attrs,t))}function Bm(e,t){if(!Ns.has(e))throw new TypeError(`figcaption must be one of: ${[...Ns]}.`);if(e==="alt")return t.content;const n=t.attrs.find(([r])=>r==="title");return Array.isArray(n)&&n[1]?(Os(t,"title"),n[1]):void 0}function zm(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 a=n.tokens[o];if(a.type!=="inline"||!a.children||a.children.length!==1&&a.children.length!==3||a.children.length===1&&a.children[0].type!=="image")continue;if(a.children.length===3){const[d,f,c]=a.children;if(d.type!=="link_open"||f.type!=="image"||c.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 l;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&&a.children.length===1){[l]=a.children;const d=new n.Token("link_open","a",1);d.attrPush(["href",l.attrGet("src")]),a.children.unshift(d),a.children.push(new n.Token("link_close","a",-1))}if(l=a.children.length===1?a.children[0]:a.children[1],t.figcaption){const d=Bm(t.figcaption,l);if(d){const[f]=e.parseInline(d,n.env);a.children.push(new n.Token("figcaption_open","figcaption",1)),a.children.push(...f.children),a.children.push(new n.Token("figcaption_close","figcaption",-1)),l.attrs&&(l.attrs=Is(l.attrs,"title"))}}if(t.copyAttrs&&l.attrs){const d=t.copyAttrs===!0?"":t.copyAttrs;s.attrs=l.attrs.filter(([f])=>f.match(d)).map(f=>Array.from(f))}if(t.tabindex&&(n.tokens[o-1].attrPush(["tabindex",r]),r++),t.lazy&&(l.attrs.some(([d])=>d==="loading")||l.attrs.push(["loading","lazy"])),t.async&&(l.attrs.some(([d])=>d==="decoding")||l.attrs.push(["decoding","async"])),t.classes&&typeof t.classes=="string"){let d=!1;for(let f=0,c=l.attrs.length;f<c&&!d;f++){const h=l.attrs[f];h[0]==="class"&&(h[1]=`${h[1]} ${t.classes}`,d=!0)}d||l.attrs.push(["class",t.classes])}if(t.removeSrc){const d=l.attrs.find(([f])=>f==="src");l.attrs.push(["data-src",d[1]]),Os(l,"src")}}})}const jm=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function Hm(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 a=e.push("sub_open","sub",1);a.markup="~";const s=e.push("text","",0);s.content=u.replace(jm,"$1");const l=e.push("sub_close","sub",-1);return l.markup="~",e.pos=e.posMax+1,e.posMax=n,!0}function $m(e){e.inline.ruler.after("emphasis","sub",Hm)}const Um=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function Wm(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 a=e.push("sup_open","sup",1);a.markup="^";const s=e.push("text","",0);s.content=u.replace(Um,"$1");const l=e.push("sup_close","sup",-1);return l.markup="^",e.pos=e.posMax+1,e.posMax=n,!0}function Gm(e){e.inline.ruler.after("emphasis","sup",Wm)}var Xm=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Ls=new Set,$o=typeof process=="object"&&process?process:{},Vs=(e,t,n,r)=>{typeof $o.emitWarning=="function"?$o.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)},mu=globalThis.AbortController,Ps=globalThis.AbortSignal;if(typeof mu>"u"){Ps=class{constructor(){fe(this,"onabort");fe(this,"_onabort",[]);fe(this,"reason");fe(this,"aborted",!1)}addEventListener(n,r){this._onabort.push(r)}},mu=class{constructor(){fe(this,"signal",new Ps);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=(($l=$o.env)==null?void 0:$l.LRU_CACHE_IGNORE_AC_WARNING)!=="1",t=()=>{e&&(e=!1,Vs("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 qm=e=>!Ls.has(e),Wt=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Rs=e=>Wt(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?pu:null:null,pu=class extends Array{constructor(t){super(t),this.fill(0)}},Zm=(Ft=class{constructor(t,n){fe(this,"heap");fe(this,"length");if(!A(Ft,Tn))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0}static create(t){let n=Rs(t);if(!n)return[];re(Ft,Tn,!0);let r=new Ft(t,n);return re(Ft,Tn,!1),r}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},Tn=new WeakMap,ie(Ft,Tn,!1),Ft),Ym=(Vn=class{constructor(t){ie(this,q);ie(this,it);ie(this,Qe);ie(this,ft);ie(this,an);ie(this,ht);ie(this,Nn);ie(this,In);ie(this,mt);fe(this,"ttl");fe(this,"ttlResolution");fe(this,"ttlAutopurge");fe(this,"updateAgeOnGet");fe(this,"updateAgeOnHas");fe(this,"allowStale");fe(this,"noDisposeOnSet");fe(this,"noUpdateTTL");fe(this,"maxEntrySize");fe(this,"sizeCalculation");fe(this,"noDeleteOnFetchRejection");fe(this,"noDeleteOnStaleGet");fe(this,"allowStaleOnFetchAbort");fe(this,"allowStaleOnFetchRejection");fe(this,"ignoreFetchAbort");ie(this,Ee);ie(this,pt);ie(this,ve);ie(this,he);ie(this,ue);ie(this,$e);ie(this,Je);ie(this,Re);ie(this,Te);ie(this,gt);ie(this,Ne);ie(this,bt);ie(this,yt);ie(this,et);ie(this,tt);ie(this,wt);ie(this,qt);ie(this,Ue);ie(this,On);ie(this,sn,()=>{});ie(this,Lt,()=>{});ie(this,Fr,()=>{});ie(this,nt,()=>!1);ie(this,ln,t=>{});ie(this,Ln,(t,n,r)=>{});ie(this,Tr,(t,n,r,o)=>{if(r||o)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});fe(this,Ul,"LRUCache");let{max:n=0,ttl:r,ttlResolution:o=1,ttlAutopurge:u,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:l,dispose:d,onInsert:f,disposeAfter:c,noDisposeOnSet:h,noUpdateTTL:p,maxSize:m=0,maxEntrySize:v=0,sizeCalculation:x,fetchMethod:y,memoMethod:g,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:w,allowStaleOnFetchRejection:k,allowStaleOnFetchAbort:F,ignoreFetchAbort:S,perf:E}=t;if(E!==void 0&&typeof(E==null?void 0:E.now)!="function")throw new TypeError("perf option must have a now() method if specified");if(re(this,mt,E??Xm),n!==0&&!Wt(n))throw new TypeError("max option must be a nonnegative integer");let X=n?Rs(n):Array;if(!X)throw new Error("invalid max value: "+n);if(re(this,it,n),re(this,Qe,m),this.maxEntrySize=v||A(this,Qe),this.sizeCalculation=x,this.sizeCalculation){if(!A(this,Qe)&&!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(re(this,In,g),y!==void 0&&typeof y!="function")throw new TypeError("fetchMethod must be a function if specified");if(re(this,Nn,y),re(this,qt,!!y),re(this,ve,new Map),re(this,he,new Array(n).fill(void 0)),re(this,ue,new Array(n).fill(void 0)),re(this,$e,new X(n)),re(this,Je,new X(n)),re(this,Re,0),re(this,Te,0),re(this,gt,Zm.create(n)),re(this,Ee,0),re(this,pt,0),typeof d=="function"&&re(this,ft,d),typeof f=="function"&&re(this,an,f),typeof c=="function"?(re(this,ht,c),re(this,Ne,[])):(re(this,ht,void 0),re(this,Ne,void 0)),re(this,wt,!!A(this,ft)),re(this,On,!!A(this,an)),re(this,Ue,!!A(this,ht)),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!k,this.allowStaleOnFetchAbort=!!F,this.ignoreFetchAbort=!!S,this.maxEntrySize!==0){if(A(this,Qe)!==0&&!Wt(A(this,Qe)))throw new TypeError("maxSize must be a positive integer if specified");if(!Wt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Q(this,q,cc).call(this)}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!w,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=Wt(o)||o===0?o:1,this.ttlAutopurge=!!u,this.ttl=r||0,this.ttl){if(!Wt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Q(this,q,pi).call(this)}if(A(this,it)===0&&this.ttl===0&&A(this,Qe)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!A(this,it)&&!A(this,Qe)){let j="LRU_CACHE_UNBOUNDED";qm(j)&&(Ls.add(j),Vs("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",j,Vn))}}get perf(){return A(this,mt)}static unsafeExposeInternals(t){return{starts:A(t,yt),ttls:A(t,et),autopurgeTimers:A(t,tt),sizes:A(t,bt),keyMap:A(t,ve),keyList:A(t,he),valList:A(t,ue),next:A(t,$e),prev:A(t,Je),get head(){return A(t,Re)},get tail(){return A(t,Te)},free:A(t,gt),isBackgroundFetch:n=>{var r;return Q(r=t,q,me).call(r,n)},backgroundFetch:(n,r,o,u)=>{var a;return Q(a=t,q,Hu).call(a,n,r,o,u)},moveToTail:n=>{var r;return Q(r=t,q,Or).call(r,n)},indexes:n=>{var r;return Q(r=t,q,Yt).call(r,n)},rindexes:n=>{var r;return Q(r=t,q,Kt).call(r,n)},isStale:n=>{var r;return A(r=t,nt).call(r,n)}}}get max(){return A(this,it)}get maxSize(){return A(this,Qe)}get calculatedSize(){return A(this,pt)}get size(){return A(this,Ee)}get fetchMethod(){return A(this,Nn)}get memoMethod(){return A(this,In)}get dispose(){return A(this,ft)}get onInsert(){return A(this,an)}get disposeAfter(){return A(this,ht)}getRemainingTTL(t){return A(this,ve).has(t)?1/0:0}*entries(){for(let t of Q(this,q,Yt).call(this))A(this,ue)[t]!==void 0&&A(this,he)[t]!==void 0&&!Q(this,q,me).call(this,A(this,ue)[t])&&(yield[A(this,he)[t],A(this,ue)[t]])}*rentries(){for(let t of Q(this,q,Kt).call(this))A(this,ue)[t]!==void 0&&A(this,he)[t]!==void 0&&!Q(this,q,me).call(this,A(this,ue)[t])&&(yield[A(this,he)[t],A(this,ue)[t]])}*keys(){for(let t of Q(this,q,Yt).call(this)){let n=A(this,he)[t];n!==void 0&&!Q(this,q,me).call(this,A(this,ue)[t])&&(yield n)}}*rkeys(){for(let t of Q(this,q,Kt).call(this)){let n=A(this,he)[t];n!==void 0&&!Q(this,q,me).call(this,A(this,ue)[t])&&(yield n)}}*values(){for(let t of Q(this,q,Yt).call(this))A(this,ue)[t]!==void 0&&!Q(this,q,me).call(this,A(this,ue)[t])&&(yield A(this,ue)[t])}*rvalues(){for(let t of Q(this,q,Kt).call(this))A(this,ue)[t]!==void 0&&!Q(this,q,me).call(this,A(this,ue)[t])&&(yield A(this,ue)[t])}[(Wl=Symbol.iterator,Ul=Symbol.toStringTag,Wl)](){return this.entries()}find(t,n={}){for(let r of Q(this,q,Yt).call(this)){let o=A(this,ue)[r],u=Q(this,q,me).call(this,o)?o.__staleWhileFetching:o;if(u!==void 0&&t(u,A(this,he)[r],this))return this.get(A(this,he)[r],n)}}forEach(t,n=this){for(let r of Q(this,q,Yt).call(this)){let o=A(this,ue)[r],u=Q(this,q,me).call(this,o)?o.__staleWhileFetching:o;u!==void 0&&t.call(n,u,A(this,he)[r],this)}}rforEach(t,n=this){for(let r of Q(this,q,Kt).call(this)){let o=A(this,ue)[r],u=Q(this,q,me).call(this,o)?o.__staleWhileFetching:o;u!==void 0&&t.call(n,u,A(this,he)[r],this)}}purgeStale(){let t=!1;for(let n of Q(this,q,Kt).call(this,{allowStale:!0}))A(this,nt).call(this,n)&&(Q(this,q,Qt).call(this,A(this,he)[n],"expire"),t=!0);return t}info(t){let n=A(this,ve).get(t);if(n===void 0)return;let r=A(this,ue)[n],o=Q(this,q,me).call(this,r)?r.__staleWhileFetching:r;if(o===void 0)return;let u={value:o};if(A(this,et)&&A(this,yt)){let a=A(this,et)[n],s=A(this,yt)[n];if(a&&s){let l=a-(A(this,mt).now()-s);u.ttl=l,u.start=Date.now()}}return A(this,bt)&&(u.size=A(this,bt)[n]),u}dump(){let t=[];for(let n of Q(this,q,Yt).call(this,{allowStale:!0})){let r=A(this,he)[n],o=A(this,ue)[n],u=Q(this,q,me).call(this,o)?o.__staleWhileFetching:o;if(u===void 0||r===void 0)continue;let a={value:u};if(A(this,et)&&A(this,yt)){a.ttl=A(this,et)[n];let s=A(this,mt).now()-A(this,yt)[n];a.start=Math.floor(Date.now()-s)}A(this,bt)&&(a.size=A(this,bt)[n]),t.unshift([r,a])}return t}load(t){this.clear();for(let[n,r]of t){if(r.start){let o=Date.now()-r.start;r.start=A(this,mt).now()-o}this.set(n,r.value,r)}}set(t,n,r={}){var h,p,m,v,x,y,g;if(n===void 0)return this.delete(t),this;let{ttl:o=this.ttl,start:u,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:l}=r,{noUpdateTTL:d=this.noUpdateTTL}=r,f=A(this,Tr).call(this,t,n,r.size||0,s);if(this.maxEntrySize&&f>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),Q(this,q,Qt).call(this,t,"set"),this;let c=A(this,Ee)===0?void 0:A(this,ve).get(t);if(c===void 0)c=A(this,Ee)===0?A(this,Te):A(this,gt).length!==0?A(this,gt).pop():A(this,Ee)===A(this,it)?Q(this,q,ju).call(this,!1):A(this,Ee),A(this,he)[c]=t,A(this,ue)[c]=n,A(this,ve).set(t,c),A(this,$e)[A(this,Te)]=c,A(this,Je)[c]=A(this,Te),re(this,Te,c),zu(this,Ee)._++,A(this,Ln).call(this,c,f,l),l&&(l.set="add"),d=!1,A(this,On)&&((h=A(this,an))==null||h.call(this,n,t,"add"));else{Q(this,q,Or).call(this,c);let b=A(this,ue)[c];if(n!==b){if(A(this,qt)&&Q(this,q,me).call(this,b)){b.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:w}=b;w!==void 0&&!a&&(A(this,wt)&&((p=A(this,ft))==null||p.call(this,w,t,"set")),A(this,Ue)&&((m=A(this,Ne))==null||m.push([w,t,"set"])))}else a||(A(this,wt)&&((v=A(this,ft))==null||v.call(this,b,t,"set")),A(this,Ue)&&((x=A(this,Ne))==null||x.push([b,t,"set"])));if(A(this,ln).call(this,c),A(this,Ln).call(this,c,f,l),A(this,ue)[c]=n,l){l.set="replace";let w=b&&Q(this,q,me).call(this,b)?b.__staleWhileFetching:b;w!==void 0&&(l.oldValue=w)}}else l&&(l.set="update");A(this,On)&&((y=this.onInsert)==null||y.call(this,n,t,n===b?"update":"replace"))}if(o!==0&&!A(this,et)&&Q(this,q,pi).call(this),A(this,et)&&(d||A(this,Fr).call(this,c,o,u),l&&A(this,Lt).call(this,l,c)),!a&&A(this,Ue)&&A(this,Ne)){let b=A(this,Ne),w;for(;w=b==null?void 0:b.shift();)(g=A(this,ht))==null||g.call(this,...w)}return this}pop(){var t;try{for(;A(this,Ee);){let n=A(this,ue)[A(this,Re)];if(Q(this,q,ju).call(this,!0),Q(this,q,me).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(A(this,Ue)&&A(this,Ne)){let n=A(this,Ne),r;for(;r=n==null?void 0:n.shift();)(t=A(this,ht))==null||t.call(this,...r)}}}has(t,n={}){let{updateAgeOnHas:r=this.updateAgeOnHas,status:o}=n,u=A(this,ve).get(t);if(u!==void 0){let a=A(this,ue)[u];if(Q(this,q,me).call(this,a)&&a.__staleWhileFetching===void 0)return!1;if(A(this,nt).call(this,u))o&&(o.has="stale",A(this,Lt).call(this,o,u));else return r&&A(this,sn).call(this,u),o&&(o.has="hit",A(this,Lt).call(this,o,u)),!0}else o&&(o.has="miss");return!1}peek(t,n={}){let{allowStale:r=this.allowStale}=n,o=A(this,ve).get(t);if(o===void 0||!r&&A(this,nt).call(this,o))return;let u=A(this,ue)[o];return Q(this,q,me).call(this,u)?u.__staleWhileFetching:u}async fetch(t,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:u=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:l=0,sizeCalculation:d=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:m=this.allowStaleOnFetchAbort,context:v,forceRefresh:x=!1,status:y,signal:g}=n;if(!A(this,qt))return y&&(y.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:o,noDeleteOnStaleGet:u,status:y});let b={allowStale:r,updateAgeOnGet:o,noDeleteOnStaleGet:u,ttl:a,noDisposeOnSet:s,size:l,sizeCalculation:d,noUpdateTTL:f,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:m,ignoreFetchAbort:p,status:y,signal:g},w=A(this,ve).get(t);if(w===void 0){y&&(y.fetch="miss");let k=Q(this,q,Hu).call(this,t,w,b,v);return k.__returned=k}else{let k=A(this,ue)[w];if(Q(this,q,me).call(this,k)){let X=r&&k.__staleWhileFetching!==void 0;return y&&(y.fetch="inflight",X&&(y.returnedStale=!0)),X?k.__staleWhileFetching:k.__returned=k}let F=A(this,nt).call(this,w);if(!x&&!F)return y&&(y.fetch="hit"),Q(this,q,Or).call(this,w),o&&A(this,sn).call(this,w),y&&A(this,Lt).call(this,y,w),k;let S=Q(this,q,Hu).call(this,t,w,b,v),E=S.__staleWhileFetching!==void 0&&r;return y&&(y.fetch=F?"stale":"refresh",E&&F&&(y.returnedStale=!0)),E?S.__staleWhileFetching:S.__returned=S}}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=A(this,In);if(!r)throw new Error("no memoMethod provided to constructor");let{context:o,forceRefresh:u,...a}=n,s=this.get(t,a);if(!u&&s!==void 0)return s;let l=r(t,s,{options:a,context:o});return this.set(t,l,a),l}get(t,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:u=this.noDeleteOnStaleGet,status:a}=n,s=A(this,ve).get(t);if(s!==void 0){let l=A(this,ue)[s],d=Q(this,q,me).call(this,l);return a&&A(this,Lt).call(this,a,s),A(this,nt).call(this,s)?(a&&(a.get="stale"),d?(a&&r&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),r?l.__staleWhileFetching:void 0):(u||Q(this,q,Qt).call(this,t,"expire"),a&&r&&(a.returnedStale=!0),r?l:void 0)):(a&&(a.get="hit"),d?l.__staleWhileFetching:(Q(this,q,Or).call(this,s),o&&A(this,sn).call(this,s),l))}else a&&(a.get="miss")}delete(t){return Q(this,q,Qt).call(this,t,"delete")}clear(){return Q(this,q,yi).call(this,"delete")}},it=new WeakMap,Qe=new WeakMap,ft=new WeakMap,an=new WeakMap,ht=new WeakMap,Nn=new WeakMap,In=new WeakMap,mt=new WeakMap,Ee=new WeakMap,pt=new WeakMap,ve=new WeakMap,he=new WeakMap,ue=new WeakMap,$e=new WeakMap,Je=new WeakMap,Re=new WeakMap,Te=new WeakMap,gt=new WeakMap,Ne=new WeakMap,bt=new WeakMap,yt=new WeakMap,et=new WeakMap,tt=new WeakMap,wt=new WeakMap,qt=new WeakMap,Ue=new WeakMap,On=new WeakMap,q=new WeakSet,pi=function(){let t=new pu(A(this,it)),n=new pu(A(this,it));re(this,et,t),re(this,yt,n);let r=this.ttlAutopurge?new Array(A(this,it)):void 0;re(this,tt,r),re(this,Fr,(s,l,d=A(this,mt).now())=>{n[s]=l!==0?d:0,t[s]=l,o(s,l)}),re(this,sn,s=>{n[s]=t[s]!==0?A(this,mt).now():0,o(s,t[s])});let o=this.ttlAutopurge?(s,l)=>{if(r!=null&&r[s]&&(clearTimeout(r[s]),r[s]=void 0),l&&l!==0&&r){let d=setTimeout(()=>{A(this,nt).call(this,s)&&Q(this,q,Qt).call(this,A(this,he)[s],"expire")},l+1);d.unref&&d.unref(),r[s]=d}}:()=>{};re(this,Lt,(s,l)=>{if(t[l]){let d=t[l],f=n[l];if(!d||!f)return;s.ttl=d,s.start=f,s.now=u||a();let c=s.now-f;s.remainingTTL=d-c}});let u=0,a=()=>{let s=A(this,mt).now();if(this.ttlResolution>0){u=s;let l=setTimeout(()=>u=0,this.ttlResolution);l.unref&&l.unref()}return s};this.getRemainingTTL=s=>{let l=A(this,ve).get(s);if(l===void 0)return 0;let d=t[l],f=n[l];if(!d||!f)return 1/0;let c=(u||a())-f;return d-c},re(this,nt,s=>{let l=n[s],d=t[s];return!!d&&!!l&&(u||a())-l>d})},sn=new WeakMap,Lt=new WeakMap,Fr=new WeakMap,nt=new WeakMap,cc=function(){let t=new pu(A(this,it));re(this,pt,0),re(this,bt,t),re(this,ln,n=>{re(this,pt,A(this,pt)-t[n]),t[n]=0}),re(this,Tr,(n,r,o,u)=>{if(Q(this,q,me).call(this,r))return 0;if(!Wt(o))if(u){if(typeof u!="function")throw new TypeError("sizeCalculation must be a function");if(o=u(r,n),!Wt(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}),re(this,Ln,(n,r,o)=>{if(t[n]=r,A(this,Qe)){let u=A(this,Qe)-t[n];for(;A(this,pt)>u;)Q(this,q,ju).call(this,!0)}re(this,pt,A(this,pt)+t[n]),o&&(o.entrySize=r,o.totalCalculatedSize=A(this,pt))})},ln=new WeakMap,Ln=new WeakMap,Tr=new WeakMap,Yt=function*({allowStale:t=this.allowStale}={}){if(A(this,Ee))for(let n=A(this,Te);!(!Q(this,q,gi).call(this,n)||((t||!A(this,nt).call(this,n))&&(yield n),n===A(this,Re)));)n=A(this,Je)[n]},Kt=function*({allowStale:t=this.allowStale}={}){if(A(this,Ee))for(let n=A(this,Re);!(!Q(this,q,gi).call(this,n)||((t||!A(this,nt).call(this,n))&&(yield n),n===A(this,Te)));)n=A(this,$e)[n]},gi=function(t){return t!==void 0&&A(this,ve).get(A(this,he)[t])===t},ju=function(t){var u,a,s;let n=A(this,Re),r=A(this,he)[n],o=A(this,ue)[n];return A(this,qt)&&Q(this,q,me).call(this,o)?o.__abortController.abort(new Error("evicted")):(A(this,wt)||A(this,Ue))&&(A(this,wt)&&((u=A(this,ft))==null||u.call(this,o,r,"evict")),A(this,Ue)&&((a=A(this,Ne))==null||a.push([o,r,"evict"]))),A(this,ln).call(this,n),(s=A(this,tt))!=null&&s[n]&&(clearTimeout(A(this,tt)[n]),A(this,tt)[n]=void 0),t&&(A(this,he)[n]=void 0,A(this,ue)[n]=void 0,A(this,gt).push(n)),A(this,Ee)===1?(re(this,Re,re(this,Te,0)),A(this,gt).length=0):re(this,Re,A(this,$e)[n]),A(this,ve).delete(r),zu(this,Ee)._--,n},Hu=function(t,n,r,o){let u=n===void 0?void 0:A(this,ue)[n];if(Q(this,q,me).call(this,u))return u;let a=new mu,{signal:s}=r;s==null||s.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});let l={signal:a.signal,options:r,context:o},d=(v,x=!1)=>{let{aborted:y}=a.signal,g=r.ignoreFetchAbort&&v!==void 0,b=r.ignoreFetchAbort||!!(r.allowStaleOnFetchAbort&&v!==void 0);if(r.status&&(y&&!x?(r.status.fetchAborted=!0,r.status.fetchError=a.signal.reason,g&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),y&&!g&&!x)return c(a.signal.reason,b);let w=p,k=A(this,ue)[n];return(k===p||g&&x&&k===void 0)&&(v===void 0?w.__staleWhileFetching!==void 0?A(this,ue)[n]=w.__staleWhileFetching:Q(this,q,Qt).call(this,t,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(t,v,l.options))),v},f=v=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=v),c(v,!1)),c=(v,x)=>{let{aborted:y}=a.signal,g=y&&r.allowStaleOnFetchAbort,b=g||r.allowStaleOnFetchRejection,w=b||r.noDeleteOnFetchRejection,k=p;if(A(this,ue)[n]===p&&(!w||!x&&k.__staleWhileFetching===void 0?Q(this,q,Qt).call(this,t,"fetch"):g||(A(this,ue)[n]=k.__staleWhileFetching)),b)return r.status&&k.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),k.__staleWhileFetching;if(k.__returned===k)throw v},h=(v,x)=>{var g;let y=(g=A(this,Nn))==null?void 0:g.call(this,t,u,l);y&&y instanceof Promise&&y.then(b=>v(b===void 0?void 0:b),x),a.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(v(void 0),r.allowStaleOnFetchAbort&&(v=b=>d(b,!0)))})};r.status&&(r.status.fetchDispatched=!0);let p=new Promise(h).then(d,f),m=Object.assign(p,{__abortController:a,__staleWhileFetching:u,__returned:void 0});return n===void 0?(this.set(t,m,{...l.options,status:void 0}),n=A(this,ve).get(t)):A(this,ue)[n]=m,m},me=function(t){if(!A(this,qt))return!1;let n=t;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof mu},bi=function(t,n){A(this,Je)[n]=t,A(this,$e)[t]=n},Or=function(t){t!==A(this,Te)&&(t===A(this,Re)?re(this,Re,A(this,$e)[t]):Q(this,q,bi).call(this,A(this,Je)[t],A(this,$e)[t]),Q(this,q,bi).call(this,A(this,Te),t),re(this,Te,t))},Qt=function(t,n){var o,u,a,s,l,d;let r=!1;if(A(this,Ee)!==0){let f=A(this,ve).get(t);if(f!==void 0)if((o=A(this,tt))!=null&&o[f]&&(clearTimeout((u=A(this,tt))==null?void 0:u[f]),A(this,tt)[f]=void 0),r=!0,A(this,Ee)===1)Q(this,q,yi).call(this,n);else{A(this,ln).call(this,f);let c=A(this,ue)[f];if(Q(this,q,me).call(this,c)?c.__abortController.abort(new Error("deleted")):(A(this,wt)||A(this,Ue))&&(A(this,wt)&&((a=A(this,ft))==null||a.call(this,c,t,n)),A(this,Ue)&&((s=A(this,Ne))==null||s.push([c,t,n]))),A(this,ve).delete(t),A(this,he)[f]=void 0,A(this,ue)[f]=void 0,f===A(this,Te))re(this,Te,A(this,Je)[f]);else if(f===A(this,Re))re(this,Re,A(this,$e)[f]);else{let h=A(this,Je)[f];A(this,$e)[h]=A(this,$e)[f];let p=A(this,$e)[f];A(this,Je)[p]=A(this,Je)[f]}zu(this,Ee)._--,A(this,gt).push(f)}}if(A(this,Ue)&&((l=A(this,Ne))!=null&&l.length)){let f=A(this,Ne),c;for(;c=f==null?void 0:f.shift();)(d=A(this,ht))==null||d.call(this,...c)}return r},yi=function(t){var n,r,o,u;for(let a of Q(this,q,Kt).call(this,{allowStale:!0})){let s=A(this,ue)[a];if(Q(this,q,me).call(this,s))s.__abortController.abort(new Error("deleted"));else{let l=A(this,he)[a];A(this,wt)&&((n=A(this,ft))==null||n.call(this,s,l,t)),A(this,Ue)&&((r=A(this,Ne))==null||r.push([s,l,t]))}}if(A(this,ve).clear(),A(this,ue).fill(void 0),A(this,he).fill(void 0),A(this,et)&&A(this,yt)){A(this,et).fill(0),A(this,yt).fill(0);for(let a of A(this,tt)??[])a!==void 0&&clearTimeout(a);(o=A(this,tt))==null||o.fill(void 0)}if(A(this,bt)&&A(this,bt).fill(0),re(this,Re,0),re(this,Te,0),A(this,gt).length=0,re(this,pt,0),re(this,Ee,0),A(this,Ue)&&A(this,Ne)){let a=A(this,Ne),s;for(;s=a==null?void 0:a.shift();)(u=A(this,ht))==null||u.call(this,...s)}},Vn);/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */var nn=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},gu=function(t){return t.tagName==="IMG"},Km=function(t){return NodeList.prototype.isPrototypeOf(t)},bu=function(t){return t&&t.nodeType===1},Ms=function(t){var n=t.currentSrc||t.src;return n.substr(-4).toLowerCase()===".svg"},Bs=function(t){try{return Array.isArray(t)?t.filter(gu):Km(t)?[].slice.call(t).filter(gu):bu(t)?[t].filter(gu):typeof t=="string"?[].slice.call(document.querySelectorAll(t)).filter(gu):[]}catch{throw new TypeError(`The provided selector is invalid.
34
+ `;return No("caf-assistant-widget-container__error",g)}),p=()=>{const g=a.value;g&&(s.value=new Bh(g))},m=()=>{const g=s.value;g&&(g.dispose(),s.value=null)},v=()=>{const g=u.value,b=o.value;g&&(g.unmount(),g.dispose()),b&&b.cleanup(),u.value=null,o.value=null},x=async()=>{const g=await n(e.widgetAPIURL);if(!g)throw new Error("Failed to load widget API");await g.initialize();const b=g.createWidget();o.value=g,u.value=b},y=g=>{console.error(g),l.value=g};return i.watch(()=>e.widgetAPIURL,async()=>{if(a.value)try{v(),await x();const g=a.value,b=u.value;b==null||b.updateOptions(e.widgetOptions),b==null||b.updateData(e.widgetData),g&&b&&await b.mount(g)}catch(g){y(g)}}),i.watch(()=>e.widgetOptions,(g,b)=>{try{const w=u.value;w&&(!b||!r(b,g))&&w.updateOptions(g)}catch(w){y(w)}}),i.watch(()=>e.widgetData,(g,b)=>{try{const w=u.value;w&&(!b||!r(b,g))&&w.updateData(g)}catch(w){y(w)}}),i.onMounted(async()=>{try{const g=a.value;if(g){p();const b=s.value;if(b){await x();const w=u.value;w&&(w.updateOptions(e.widgetOptions),w.updateData(e.widgetData),w.mount(b.getElement()),i.nextTick(()=>{g.parentElement&&(g.style.width="100%")}))}}}catch(g){y(g)}}),i.onBeforeUnmount(async()=>{try{v(),m()}catch(g){console.error(g)}}),()=>i.createVNode("div",{class:d.value},[i.createVNode("div",{ref:a,class:c},null),i.createVNode("div",{class:h.value},null)])}}),as=(e,t)=>{var n;if(e.type===Ve.AssistantWidgetComplete){const r=e;return r.widgetUrl?i.createVNode(vn,{key:`widget-${t}`,widgetAPIURL:r.widgetUrl,widgetOptions:{mode:"embedded",implOptions:r.widgetImplOptions},widgetData:((n=r.widgetData)==null?void 0:n.data)||{}},null):null}return e.type===Ve.AssistantWidgetPending?i.createVNode("div",{class:"f-chat-bubble-widget-pending",key:`widget-loading-${t}`},[i.createVNode("span",{class:"f-chat-todo-status-icon f-chat-todo-status-working"},null),i.createVNode("span",{class:"f-chat-bubble-widget-pending-text"},[i.createTextVNode("数据生成中......")])]):null},$h=3e4,ss=8e3,He=new Map,ct=new Map,ur=new Map,St=[];function De(e){return String(e??"").replace(/^\ufeff/,"").replace(/[\u200b\u200c\u200d]/g,"").replace(/\u00a0/g," ").trim()}function au(e){const t=De(e);if(t)for(let n=St.length-1;n>=0;n--)St[n]===t&&St.splice(n,1)}function Uh(e){typeof window>"u"||(window.__fluens_dynamic_component_bootstrap_instance_id=e)}function su(e){if(typeof window>"u")return;const t=window;t.__fluens_dynamic_component_bootstrap_instance_id===e&&delete t.__fluens_dynamic_component_bootstrap_instance_id}function Wh(){return St[St.length-1]||void 0}function lu(e,t){const n=De(t);return n?De(e.instanceId)===n||e.componentId!=null&&De(String(e.componentId))===n||e.name!=null&&De(String(e.name))===n:!1}function Io(e){const t=De(e);if(!t)return null;const n=He.get(t);if(n)return{canonicalKey:t,entry:n};for(const[o,u]of He.entries())if(De(o)===t)return{canonicalKey:o,entry:u};const r=[];for(const[o,u]of He.entries())lu(u.config,t)&&r.push({key:o,entry:u});if(r.length===1){const{key:o,entry:u}=r[0];return o!==t&&console.warn(`[DynamicComponent] register id "${t}" resolved to pending instanceId "${o}" (alias match)`),{canonicalKey:o,entry:u}}if(r.length>1)return console.warn(`[DynamicComponent] register id "${t}" is ambiguous (${r.length} pending matches); refusing`),null;if(He.size===1){const[o,u]=[...He.entries()][0];return console.warn(`[DynamicComponent] register id "${t}" unmatched; using sole pending instance "${o}"`),{canonicalKey:o,entry:u}}return null}function ls(e,t){for(const[n,r]of ct){const o=De(n),u=e!==""&&o===e,a=String(t??"").trim(),s=e&&lu(r.config,e)||a&&lu(r.config,a);if(u||s)return console.warn(`[DynamicComponent] register skipped: id "${e||a}" already active (canonical "${n}"); unload first — second register yields "no pending", not duplicate mount`),!0}return!1}function Oo(){return{pendingKeys:[...He.keys()],bootstrapQueue:[...St],activeKeys:[...ct.keys()],...typeof window<"u"?{windowBootstrapPeek:window.__fluens_dynamic_component_bootstrap_instance_id}:{}}}function Gh(e){console.warn("[DynamicComponent] register diagnostics",{claimedNormalized:e,...Oo()})}function Xh(e){const t=De(e);if(t){if(ls(t,e))return{ok:!1,reason:"already_active_duplicate"};const r=Io(t);if(r)return{ok:!0,...r}}else if(ls("",e))return{ok:!1,reason:"already_active_duplicate"};for(let n=0;n<St.length;n++){const r=St[n],o=Io(r);if(o)return St.splice(n,1),t&&De(r)!==t&&console.warn(`[DynamicComponent] register id "${t}" did not match pending; using bootstrap instanceId "${r}" (sync bundle entry or use window.__fluens_dynamic_component_bootstrap_instance_id)`),{ok:!0,...o}}return{ok:!1,reason:"no_pending"}}function cs(e){const t=De(e);if(!t)return null;const n=ct.get(t);if(n)return n;for(const[u,a]of ct.entries())if(De(u)===t)return a;const r=[];for(const u of ct.values())lu(u.config,t)&&r.push(u);const o=[...new Map(r.map(u=>[u.config.instanceId,u])).values()];return o.length===1?(o[0].config.instanceId!==t&&console.warn(`[DynamicComponent] assistant post id "${t}" resolved to instanceId "${o[0].config.instanceId}" (alias match)`),o[0]):(o.length>1&&console.warn(`[DynamicComponent] assistant post id "${t}" is ambiguous (${o.length} active matches)`),null)}function qh(e){const t=De(e);if(!t)return null;const n=ct.get(t);if(n)return n;for(const[r,o]of ct.entries())if(De(r)===t)return o;return null}function Zh(e){const t=De(e);if(!t)return t;const n=cs(t);if(n)return n.config.instanceId;const r=Io(t);return r?r.canonicalKey:t}function Lo(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e}}}function ds(e,t){if(typeof e.onAssistantMessage!="function")return!0;try{return e.onAssistantMessage(Lo(t)),!0}catch(n){return console.warn("[DynamicComponent] onAssistantMessage failed",n),!1}}function Yh(e){const t=`fluens-dynamic-component-${e.instanceId}`;let n=document.getElementById(t);return n||(n=document.createElement("div"),n.id=t,n.style.width="100%",n.style.height="100%"),n}function fs(e){const t=ct.get(e.instanceId);if(t)return Promise.resolve(t.api);const n=He.get(e.instanceId);if(n)return new Promise((o,u)=>{const a=n.resolve,s=n.reject;n.resolve=l=>{a(l),o(l)},n.reject=l=>{s(l),u(l)}});if((e.name||e.componentId)&&!e.jsUrl)return Promise.reject(new Error(`Dynamic component resource is empty: ${e.name||e.componentId}`));const r=Yh(e);return new Promise((o,u)=>{const a={config:e,container:r,resolve:o,reject:u,timeoutId:0},s=setTimeout(()=>{a.postLoadRegisterCheckTimerId!=null&&(clearTimeout(a.postLoadRegisterCheckTimerId),a.postLoadRegisterCheckTimerId=void 0),He.delete(e.instanceId),au(e.instanceId),su(e.instanceId),u(new Error(`Dynamic component script load timeout: ${e.name||e.componentId}`))},$h);a.timeoutId=s,He.set(e.instanceId,a),St.push(e.instanceId),Uh(e.instanceId);const l=document.createElement("script");l.src=(e==null?void 0:e.jsUrl)??"",l.dataset.dynamicComponentId=e.instanceId,l.async=!1,l.onload=()=>{a.postLoadRegisterCheckTimerId=window.setTimeout(()=>{a.postLoadRegisterCheckTimerId=void 0,He.has(e.instanceId)&&(clearTimeout(s),He.delete(e.instanceId),au(e.instanceId),su(e.instanceId),u(new Error(`Dynamic component did not call __fluens_dynamic_component_register within ${ss}ms after load: ${e.name||e.componentId}`)))},ss)},l.onerror=()=>{clearTimeout(s),a.postLoadRegisterCheckTimerId!=null&&(clearTimeout(a.postLoadRegisterCheckTimerId),a.postLoadRegisterCheckTimerId=void 0),He.delete(e.instanceId),au(e.instanceId),su(e.instanceId),u(new Error(`Failed to load dynamic component: ${e.name||e.componentId}`))},document.head.appendChild(l)})}function hs(e){var o;const t=ct.get(e);if(t){try{t.api.unmount()}catch{}(o=t.scriptElement)==null||o.remove(),ct.delete(e)}const n=He.get(e);n&&(n.postLoadRegisterCheckTimerId!=null&&(clearTimeout(n.postLoadRegisterCheckTimerId),n.postLoadRegisterCheckTimerId=void 0),clearTimeout(n.timeoutId),He.delete(e)),ur.delete(e);const r=document.getElementById(`fluens-dynamic-component-${e}`);r&&r.remove()}function Kh(e,t){const n=De(e);if(!n)return!1;const r=cs(n);if(r)return ds(r.api,t);const o=Zh(n),u=ur.get(o)??[],a=u.findIndex(s=>s.messageId===t.messageId);return a>=0?u[a]=Lo(t):u.push(Lo(t)),ur.set(o,u),!1}typeof window<"u"&&(window.__fluens_get_dynamic_component_registry_debug_snapshot=Oo,window.__fluens_dynamic_component_register=function(e,t){const n=De(e),r=Xh(e);if(!r.ok){if(r.reason==="already_active_duplicate")return;Gh(n),console.warn(`[DynamicComponent] no pending for register id "${n}" (raw ${JSON.stringify(e)}); see diagnostics above. Try: unload tab / avoid double register / ensure FXDynamicComponent loaded this jsUrl first / empty id if sole pending`);return}const{canonicalKey:o,entry:u}=r;au(o),su(o),u.postLoadRegisterCheckTimerId!=null&&(clearTimeout(u.postLoadRegisterCheckTimerId),u.postLoadRegisterCheckTimerId=void 0),clearTimeout(u.timeoutId),He.delete(o);const a={config:u.config,container:u.container,api:t,scriptElement:document.currentScript};ct.set(o,a),a.container.parentElement;try{t.mount(u.container,u.config)}catch(l){console.error(`Failed to mount dynamic component: ${o}`,l)}const s=[o];n&&n!==o&&s.push(n);for(const l of s){const d=ur.get(l);d&&d.length>0&&(ur.delete(l),d.forEach(f=>ds(t,f)))}u.resolve(t)});const An=i.defineComponent({name:"FXDynamicComponent",props:{config:{type:Object,required:!0}},setup(e){const t=i.ref("loading"),n=i.ref(""),r=i.computed(()=>`fluens-dynamic-component-${e.config.instanceId}`),o=i.computed(()=>e.config.position==="inline"),u=i.computed(()=>!e.config.jsUrl&&!!e.config.url),a=i.computed(()=>({...o.value?{width:"fit-content",maxWidth:"100%"}:{width:"100%"},height:"auto",...t.value==="ready"&&o.value?{padding:"16px 0"}:{},...t.value==="ready"&&!o.value?{height:"100%",overflow:"hidden"}:{}}));return i.onMounted(()=>{u.value||(t.value="loading",n.value="",fs(e.config).then(()=>{t.value="ready"}).catch(s=>{t.value="error",n.value=s.message||"Unknown error"}))}),i.onUnmounted(()=>{u.value||hs(e.config.instanceId)}),()=>u.value?null:i.createVNode("div",{class:"f-chat-dynamic-component-body",style:a.value},[i.createVNode("div",{id:r.value,style:{width:"100%",height:"100%",display:t.value==="ready"?"":"none"}},null),t.value==="loading"&&i.createVNode("div",{class:"f-chat-dynamic-component-loading"},[i.createVNode("span",{class:"f-chat-dynamic-component-loading-spinner"},null),i.createVNode("span",null,[i.createTextVNode("加载中......")])]),t.value==="error"&&i.createVNode("div",{class:"f-chat-dynamic-component-error"},[i.createVNode("span",{class:"f-chat-dynamic-component-error-icon"},[i.createTextVNode("!")]),i.createVNode("span",null,[n.value])])])}}),ms=(e,t,n)=>{if(e.type===Ve.DynamicComponentComplete){const r=e;if(!r.config)return null;if(r.config.position==="inline")return i.createVNode(An,{key:`dc-${t}`,config:r.config},null);const o={type:"file",fileContent:{type:"md",name:r.config.title}},u={onPreviewFile:a=>{n.emit("showDynamicComponent",r.config)}};return n.emitDynamicComponentsDetectedOnce(r.config),i.createVNode("div",{style:{padding:"16px 0"}},[n.renderFileEmbeddedContent(o,u)])}return e.type===Ve.DynamicComponentPending?i.createVNode("div",{class:"f-chat-bubble-widget-pending",key:`dc-loading-${t}`},[i.createVNode("span",{class:"f-chat-todo-status-icon f-chat-todo-status-working"},null),i.createVNode("span",{class:"f-chat-bubble-widget-pending-text"},[i.createTextVNode("组件加载中......")])]):null};function Qh(){return{[Ve.Text]:Zf,[Ve.AssistantWidgetComplete]:as,[Ve.AssistantWidgetPending]:as,[Ve.DynamicComponentComplete]:ms,[Ve.DynamicComponentPending]:ms}}const Jh=i.defineComponent({name:"FXBubbleTextContent",props:Sc,emits:["dynamicComponentsDetected","showDynamicComponent"],setup(e,t){const{renderFileEmbeddedContent:n}=Ti(),{propertyStates:r,registerProperty:o,updatePropertyValue:u,startStreaming:a}=Rr();o("title",e.title??""),o("subtitle",e.subtitle??""),o("text",e.text??""),i.watch([()=>e.title,()=>e.subtitle,()=>e.text],([y,g,b])=>{u("title",y??""),u("subtitle",g??""),u("text",b??"")});const s=i.computed(()=>e.textFormat==="markdown"),l=i.ref(!1),d=i.computed(()=>{var y,g,b;return l.value?{title:((y=r.title)==null?void 0:y.displayedValue)??"",subtitle:((g=r.subtitle)==null?void 0:g.displayedValue)??"",text:((b=r.text)==null?void 0:b.displayedValue)??""}:{title:e.title,subtitle:e.subtitle,text:e.text}}),f=i.computed(()=>Xc(d.value.text)),c=new Set;function h(y){const g=String(y.instanceId??"").trim();!g||c.has(g)||(c.add(g),i.nextTick(()=>{var b;t.emit("dynamicComponentsDetected",[y]),(b=e.onDynamicComponentsDetected)==null||b.call(e,[y])}))}function p(y,...g){var b;t.emit(y,...g),y==="showDynamicComponent"&&((b=e.onShowDynamicComponent)==null||b.call(e,g[0]))}const m={shouldShowMarkdown:s,emit:p,emitDynamicComponentsDetectedOnce:h,renderFileEmbeddedContent:n},v=Qh(),x=()=>f.value.length===0?null:i.createVNode("div",{class:"f-chat-bubble-text-collection"},[f.value.map((y,g)=>{var b;return(b=v[y.type])==null?void 0:b.call(v,y,g,m)})]);return i.onMounted(()=>{l.value&&a()}),()=>i.createVNode(i.Fragment,null,[d.value.title&&i.createVNode("div",{class:"f-chat-bubble-content-title"},[d.value.title]),d.value.subtitle&&i.createVNode("div",{class:"f-chat-bubble-content-subtitle"},[d.value.subtitle]),x()])}}),em={content:{type:Object},outputMode:{type:String,default:"full"}},tm=i.defineComponent({name:"FXBubbleThink",props:em,setup(e,t){var X;const{propertyStates:n,registerProperty:r,updatePropertyValue:o,isAllDone:u}=Rr(),{elapsedSeconds:a,hasEverStarted:s,start:l,stop:d,reset:f}=Wu(),c=i.ref(((X=e.content)==null?void 0:X.completed)!==!0),h=i.ref(null),p=i.ref(null),m=i.ref(!1),v=i.ref(!1),x=i.computed(()=>e.outputMode==="streaming"),y=i.computed(()=>{var j;return(j=e.content)==null?void 0:j.completed}),g=i.computed(()=>{var B,H;if(y.value){const L=s.value?`(用时${a.value}秒)`:"";return((B=e.content)==null?void 0:B.title)??"思考完成"+L}return((H=e.content)==null?void 0:H.title)??"正在思考......"}),b=i.computed(()=>{var j,B;return x.value?((j=n.content)==null?void 0:j.displayedValue)??"":((B=e.content)==null?void 0:B.content)??""}),w=i.computed(()=>({"f-chat-bubble-thinking":!0,"is-pending":!y.value,"is-completed":y.value})),k=()=>{const j=h.value;if(!j||!m.value){v.value=!1;return}v.value=j.scrollTop>0};i.watch(()=>y.value,j=>{j?d():l()},{immediate:!0}),i.watch(()=>y.value,j=>{j&&(c.value=!1)}),i.watch(()=>e.content,j=>{j&&(n.content?o("content",j.content??""):r("content",j.content??""))},{immediate:!0}),i.watch(b,async()=>{if(c.value){await i.nextTick();const j=h.value;if(!j)return;await i.nextTick(),m.value=j.scrollHeight>j.clientHeight,m.value?(j.scrollTop=j.scrollHeight,v.value=!0):v.value=!1}},{immediate:!0}),i.watch(c,async j=>{if(j){await i.nextTick();const B=h.value;if(!B)return;await i.nextTick(),m.value=B.scrollHeight>B.clientHeight,m.value?(B.scrollTop=B.scrollHeight,v.value=!0):v.value=!1}}),i.onUnmounted(()=>{f()}),t.expose({instance:{get loadDone(){return e.content?(x.value?u.value:!0)&&y.value:!0}}});const D=()=>{c.value=!c.value},S=()=>y.value?null:i.createVNode(Jt,{status:"Working",variant:"thinking"},null),E=()=>!b.value||!c.value?null:i.createVNode("div",{class:"f-chat-bubble-thinking-content"},[i.createVNode("div",{class:"f-chat-bubble-thinking-scroll-container",ref:h,onScroll:k},[m.value&&v.value&&i.createVNode("div",{class:"f-chat-bubble-thinking-fade-mask"},null),i.createVNode("div",{class:"f-chat-bubble-thinking-text-wrapper"},[i.createVNode("div",{ref:p,class:"f-chat-bubble-thinking-content-text",innerHTML:b.value},null)])])]);return()=>i.createVNode("div",{class:w.value},[i.createVNode("div",{class:"f-chat-bubble-thinking-header",onClick:D},[S(),i.createVNode("span",{class:"f-chat-bubble-thinking-title",innerHTML:g.value},null),b.value&&i.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:c.value?"rotate(0deg)":"rotate(180deg)",transition:"all 0.3s ease-in-out"}},null)]),E()])}}),nm={content:{type:Object}},ps={id:{type:String},arrowOffsetX:{type:Number,default:0},class:{type:String,default:""},customStyles:{type:Object,default:null},isSimpleTips:{type:Boolean,default:!1},fitContent:{type:Boolean,default:!1},host:{type:Object},leftBoundary:{type:Object},keepWidthWithReference:{type:Boolean,default:!1},minWidth:{type:Number,default:-1},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},placement:{type:String,default:"bottom"},reference:{type:Object},rightBoundary:{type:Object},showArrow:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!1},zIndex:{type:Number,default:-1},limitContentBySpace:{type:Boolean,default:!1},beforeClose:{type:Function}};function rm(e){const t=e.host?e.host:"body",n=i.computed(()=>t==="body"?0:t?t.getBoundingClientRect().top:0),r=i.computed(()=>t==="body"?window.innerHeight:t?t.getBoundingClientRect().bottom:window.innerHeight),o=i.computed(()=>t==="body"?0:t?t.getBoundingClientRect().left:0),u=i.computed(()=>t==="body"?document.body.getBoundingClientRect().width:t?t.getBoundingClientRect().width-(e.rightBoundary?e.rightBoundary.getBoundingClientRect().width:0):document.body.getBoundingClientRect().width),a=i.computed(()=>t==="body"?window.innerHeight:t?t.getBoundingClientRect().height:window.innerHeight);return{host:t,hostLeft:o,hostTop:n,hostWidth:u,hostHeight:a,hostBottom:r}}function um(e,t,n,r){const o=i.ref(e.offsetX||0),u=i.ref(e.offsetY||0),a=i.ref(-1),s=i.ref(-1),l=i.ref(-1),d=i.ref(-1),f=i.ref(e.placement),c=i.ref(0),h=i.ref(0),p=i.ref(0),m=i.computed(()=>document.documentElement.scrollLeft),v=i.computed(()=>document.documentElement.scrollTop),{hostLeft:x,hostTop:y,hostWidth:g,hostHeight:b,hostBottom:w}=r;i.watch(()=>e.offsetX,O=>{o.value=O});const k=i.computed(()=>{const O={left:`${h.value}px`,top:`${p.value}px`,transform:`translate(${o.value}px, ${u.value}px)`};return e.zIndex!==-1&&(O["z-index"]=e.zIndex),e.fitContent?e.keepWidthWithReference&&n.value&&a.value>=n.value.getBoundingClientRect().width&&(O.width=`${a.value}px`):a.value!==-1&&(O.width=`${a.value}px`),e.minWidth!==-1&&(O.minWidth=`${e.minWidth}px`),e.customStyles&&Object.assign(O,e.customStyles),s.value>0&&(O.maxHeight=s.value+"px"),O}),D=i.computed(()=>({left:`${c.value}px`,transform:`translateX(${e.arrowOffsetX}px)`}));function S(O){if(O&&e.keepWidthWithReference){const I=O.getBoundingClientRect();a.value=Math.max(e.minWidth,I.width)}}function E(O,I){const $=g.value-O.width-4;return $>0?$:I}function X(O,I){const $=b.value-O.height-12;return $>0?$:I}function j(O,I,$){const J=c.value,K=I.left-x.value+I.width/2+m.value,Y=I.top-y.value-(O.height+$.height)+v.value;return{popoverLeft:K,popoverTop:Y,arrowLeft:J}}function B(O,I,$){const J=I.top-y.value+(I.height+$.height)+v.value,K=X(O,J);return Math.min(J,K)}function H(O,I){const $=E(I,O),J=O<=$?c.value:O-$;return{popoverLeft:Math.min(O,$),arrowLeft:J,maxHeight:0}}function L(O,I){const $=E(I,O),J=O<=$?c.value:O-$;return{popoverLeft:O,arrowLeft:J,maxHeight:0}}function W(O,I,$){const J=I.left-x.value+m.value,{arrowLeft:K,popoverLeft:Y}=L(J,O),{popoverTop:te}=j(O,I,$);return{popoverLeft:Y,popoverTop:te,arrowLeft:K,maxHeight:0}}function G(O,I,$){const J=I.left-x.value+I.width/2-($.width/2-(O.left-x.value))+m.value,{arrowLeft:K,popoverLeft:Y}=H(J,O),te=B(O,I,$);return{popoverLeft:Y,popoverTop:te,arrowLeft:K,maxHeight:0}}function N(O,I,$){const J=I.left-x.value+m.value,{arrowLeft:K,popoverLeft:Y}=H(J,O),te=B(O,I,$);return{popoverLeft:Y,popoverTop:te,arrowLeft:K,maxHeight:0}}function C(O,I,$){const J=I.left-x.value;let K=0,Y=0,te=0,ae=0,be="bottom-left";window.innerWidth-J>O.width?K=J+m.value:(K=I.right-O.width+m.value,te=O.width-$.width-20);let Ae=0;if(e.limitContentBySpace){const Zt={topHeight:I.top-y.value-$.height-8,bottomHeight:w.value-I.bottom-$.height-8};Ae=Math.max(Zt.topHeight,Zt.bottomHeight),O.height>Ae&&(ae=Ae,n.value.classList.add("popover-limitmax"))}const rt=ae?Math.floor(ae):O.height,Oe=I.top-y.value+(I.height+$.height);return w.value-Oe>rt?Y=Oe+v.value:(Y=I.top-rt-$.height+v.value,w.value-Oe>I.top?(Y=Oe+v.value,rt>I.top&&(Y=w.value-rt)):(Y=Y<0?0:Y,be="top")),n.value.classList.add("popover-"+be,"bs-popover-"+be),{popoverLeft:K<0?5:K,popoverTop:Y,arrowLeft:te,maxHeight:ae}}function F(O,I,$){const J=I.left+I.width,K=0;let Y=0,te=O.height;if(e.limitContentBySpace){const Nt=b.value-16-Math.abs(u.value);O.height>Nt?(Y=Nt,te=Nt,n.value.classList.add("popover-limitmax")):n.value.classList.remove("popover-limitmax")}const ae=Math.max(I.top-(te/2-I.height/2),y.value);let be=y.value+b.value-te-u.value;be<0&&(be=ae);const Ae=Math.min(ae,be),rt=J;return console.log("maxHeight"+Y),{popoverLeft:rt,popoverTop:Ae,arrowLeft:K,maxHeight:Y}}function P(O,I,$){const J=I.left+I.width,K=Math.max(I.top-I.height,y.value);let Y=y.value+b.value-O.height;Y<0&&(Y=K);const te=Math.min(K,Y);return{popoverLeft:J,popoverTop:te,arrowLeft:0,maxHeight:0}}const M=new Map([["top",j],["top-left",W],["bottom",G],["bottom-left",N],["right",F],["right-top",P],["auto",C]]);function z(O){var Y;e.keepWidthWithReference&&S(O);const I=O.getBoundingClientRect();l.value=I.top,d.value=I.left;const $=t.value?t.value.getBoundingClientRect():{height:4,width:4},J=(Y=n.value)==null?void 0:Y.getBoundingClientRect();a.value=J.width;const K=M.get(f.value);if(K){const{arrowLeft:te,popoverLeft:ae,popoverTop:be,maxHeight:Ae}=K(J,I,$);c.value=te,h.value=ae,p.value=be,s.value=Ae||-1}}function T(O){if(O){const I=O.getBoundingClientRect();(I.left!==d.value||I.top!==l.value)&&z(O)}}function V(){f.value=e.placement,c.value=0,h.value=0,p.value=0,a.value=-1}return{arrowStyle:D,popoverStyle:k,position:f,popoverWidth:a,fitToReference:S,followToReferencePosition:T,locateToReference:z,resetPosition:V}}function om(e,t,n,r,o,u,a){const s=i.ref(e.visible),l=i.computed(()=>s.value),{fitToReference:d,locateToReference:f,resetPosition:c}=a;let h;async function p(){s.value&&(e.beforeClose&&typeof e.beforeClose=="function"&&!await e.beforeClose()||(s.value=!1,document.body.removeEventListener("click",h),document.body.removeEventListener("mousedown",h),document.body.removeEventListener("wheel",h,!0),document.removeEventListener("scroll",h),c(),t.emit("hidden")))}h=v=>{var g;if(!o.value)return;const x=o.value.contains(v.target);if(v.type==="scroll"||v.type==="wheel"&&x){p();return}if(v.target.closest(".time-picker-panel"))return;const y=(g=v.target)==null?void 0:g.closest(".popover");if(y&&r.value&&y===r.value){v.type!=="scroll"&&v.type!=="wheel"&&v.stopPropagation();return}if(!x&&s.value){const b=o.value.closest(".popover");b&&b.removeEventListener("click",h),p()}};async function m(v){if(r.value&&(e.showArrow===!1||e.showArrow&&n.value)&&v){c(),s.value=!0,o.value=v,u.value&&d(v),await i.nextTick(),f(v),document.body.addEventListener("click",h),document.body.addEventListener("mousedown",h),document.body.addEventListener("wheel",h,!0),document.addEventListener("scroll",h),(top==null?void 0:top.document)!==document&&(top==null||top.document.addEventListener("mousedown",h));const x=v.closest(".popover");x&&x.addEventListener("click",h),t.emit("shown")}}return t.expose({hide:p,popoverRef:r,show:m,shown:l,isShow:s}),{showPopover:s,hidePopverOnClickBodyHandler:h}}function im(e,t,n,r,o,u){const{popoverWidth:a,fitToReference:s,followToReferencePosition:l}=o;function d(){var f;if(u.value&&((f=u.value.style)==null?void 0:f.display)!=="none"&&n.value){l(n.value);const c=n.value.getBoundingClientRect();r.value&&c.width!==a.value&&s(n.value)}}return{onResize:d}}function am(e,t=500){const n=i.ref(e.value);let r;const o=i.watch(e,a=>{clearTimeout(r),r=setTimeout(()=>{n.value=a},t)}),u=()=>{clearTimeout(r),o()};return i.onUnmounted(u),{delayedValue:n,cleanup:u}}const en=i.defineComponent({name:"FXPopover",props:ps,emits:["shown","hidden"],setup(e,t){const n=i.ref(),r=i.ref(),o=i.ref(e.reference),u=i.ref(e.keepWidthWithReference),a=i.computed(()=>!!e.title),s=rm(e),{host:l}=s,d=um(e,n,r,s),{position:f,arrowStyle:c,popoverStyle:h,fitToReference:p,locateToReference:m}=d,{showPopover:v,hidePopverOnClickBodyHandler:x}=om(e,t,n,r,o,u,d),{onResize:y}=im(e,t,o,u,d,r),g=i.computed(()=>{let S=f.value;S==="top-left"&&(S="top");const E=`popover in popover-${S}`,X=`bs-popover-${S}`,j={"popover-fitcontent":e.fitContent,fade:!0};j[E]=!0,j[X]=!0;const B=(e.class||"").split(" ");return e.isSimpleTips&&B.unshift("popover-tips"),B.reduce((H,L)=>(H[L]=!0,H),j),j}),b=i.computed(()=>({"popover-content":!0,"popover-body":!0})),w=i.computed(()=>{const S={};return S.opacity=v.value?1:0,S.visibility=v.value?"visible":"hidden",S.zIndex=1060,S}),k=i.computed(()=>e.isSimpleTips?!0:e.showArrow),{delayedValue:D}=am(w,50);return i.onMounted(()=>{var S;u.value&&p(o.value),e.reference&&m(o.value),window.addEventListener("resize",y),(S=r.value)==null||S.focus()}),i.onUnmounted(()=>{document.body.removeEventListener("click",x),window.removeEventListener("resize",y),v.value=!1}),()=>i.createVNode(i.Teleport,{to:l},{default:()=>{var S;return[i.withDirectives(i.createVNode("div",{tabindex:"-1",ref:r,class:g.value,style:{...h.value,...D.value},onMousedown:E=>{E.stopPropagation()},onClick:E=>{E.stopPropagation()}},[k.value&&i.createVNode("div",{ref:n,class:"popover-arrow arrow",style:c.value},null),a.value&&i.createVNode("h3",{class:"popover-title popover-header"},[e.title]),i.createVNode("div",{class:b.value},[t.slots.default&&((S=t.slots)==null?void 0:S.default())])]),[[i.vShow,v.value]])]}})}}),cu="FarrisX_PopoverInstancesKey";window[cu]=window[cu]||new WeakMap;function Vo(e,t,n){e.stopPropagation();const r=t.value;r&&r.value&&!r.value.isShow&&(r.value.show(n),window[cu].set(n,r.value))}function gs(e,t,n){e.stopPropagation(),t.value.value.hide(),window[cu].delete(n)}function sm(e,t,n){e.stopPropagation();const r=t.value;r&&r.value&&(r.value.isShow?gs(e,t,n):Vo(e,t,n))}function bs(e,t,n){t.arg&&t.arg==="toggle"?sm(e,t,n):Vo(e,t,n)}const ys={mounted:(e,t,n)=>{t.modifiers.hover?(e.addEventListener("mouseenter",r=>Vo(r,t,e)),e.addEventListener("mouseleave",r=>gs(r,t,e))):t.modifiers.click?e.addEventListener("click",r=>bs(r,t,e)):e.addEventListener("click",r=>bs(r,t,e)),e.classList.add("v-popover")},unMounted:(e,t,n)=>{}};en.install=e=>{e.component(en.name,en),e.directive("fxpopover",ys)};const ws={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"},listStatus:{type:String,default:void 0},completedCount:{type:Number,default:void 0},totalCount:{type:Number,default:void 0}},xs={items:{type:Array,default:()=>[]}},vs={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"}},du=i.defineComponent({name:"FXTodoListItemView",props:vs,emits:["click"],setup(e,{emit:t}){const{propertyStates:n,registerProperty:r,updatePropertyValue:o,startStreaming:u}=Rr();r("title",e.title??""),r("task",e.task??""),r("detail",e.message??""),i.watch([()=>e.title,()=>e.task,()=>e.message],([p,m,v])=>{o("title",p??""),o("task",m??""),o("detail",v??"")});const a=i.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=i.computed(()=>["f-chat-todo-task",{"is-done":e.status==="Done"}]);function l(){t("click",e,e.id)}const d=i.computed(()=>e.outputMode==="streaming"),f=i.computed(()=>{var p;return d.value?((p=n.title)==null?void 0:p.displayedValue)??"":e.title??""}),c=i.computed(()=>{var p;return d.value?((p=n.task)==null?void 0:p.displayedValue)??"":e.task??""}),h=i.computed(()=>{var p;return d.value?((p=n.detail)==null?void 0:p.displayedValue)??"":e.message??""});return i.onMounted(()=>{d.value&&u()}),()=>i.createVNode("li",{key:e.id,class:a.value,onClick:l},[e.todoList&&e.todoList.length>0&&i.createVNode(tn,{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&&i.createVNode(i.Fragment,null,[e.showLoading&&i.createVNode(Jt,{status:e.status??"Done",variant:"todo"},null),f.value?i.createVNode("div",{class:"f-chat-todo-task-wrapper"},[i.createVNode("span",{class:s.value},[f.value]),i.createVNode("div",{class:"f-chat-todo-task-description"},[c.value]),h.value?i.withDirectives(i.createVNode("div",{class:"f-chat-todo-task-description"},[h.value]),[[i.resolveDirective("overflow-tooltip")]]):null]):i.createVNode("div",{class:"f-chat-todo-task-wrapper"},[i.createVNode("span",{class:s.value},[c.value]),h.value?i.withDirectives(i.createVNode("div",{class:"f-chat-todo-task-description"},[h.value]),[[i.resolveDirective("overflow-tooltip")]]):null])])])}}),or=i.defineComponent({name:"FXTodoListView",props:xs,setup(e){return()=>{var t;return(t=e.items)!=null&&t.length?i.createVNode("ul",{class:"f-chat-todo-items"},[e.items.map((n,r)=>i.createVNode(du,i.mergeProps({key:r},n),null))]):null}}}),lm=300,cm={Working:"正在执行任务",Done:"已完成任务",NotStart:"待执行任务"},tn=i.defineComponent({name:"FXStartedTodo",props:ws,setup(e){const t=i.ref(null),n=i.ref(null),r=i.ref(null),o=i.ref(null),u=i.computed(()=>e.outputMode==="streaming"),{displayContent:a}=ki(()=>({detail:e.taskDetail??""}),()=>!0,u,{charInterval:30}),s=i.ref(e.initExpanded),l=i.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},lm))}function f(){e.detailViewMode!=="expand"&&(r.value!=null&&(window.clearTimeout(r.value),r.value=null),o.value=window.setTimeout(()=>{var g,b;(b=(g=n.value)==null?void 0:g.hide)==null||b.call(g),o.value=null},150))}function c(){if(e.detailViewMode==="none")return null;const g=a.value.detail??"";return i.createVNode(i.Fragment,null,[g?i.createVNode("div",{class:"f-chat-started-todo-task-detail"},[g]):null,i.createVNode(or,{items:e.todoList},null)])}function h(){e.detailViewMode==="expand"&&(s.value=!s.value)}function p(){return e.detailViewMode==="expand"?i.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:s.value?"rotate(0deg)":"rotate(180deg)",transition:"all 0.3s ease-in-out"}},null):null}function m(){return e.detailViewMode==="hover"&&i.createVNode(en,{ref:n,class:"f-chat-started-todo-popover"},{default:()=>[i.createVNode("div",{class:"f-chat-started-todo-popover-content",onMouseenter:()=>{o.value!=null&&(window.clearTimeout(o.value),o.value=null)},onMouseleave:f},[c()])]})}const v=i.computed(()=>e.listStatus==="completed"),x=i.computed(()=>{const g=e.todoList??[],b=e.totalCount??g.length;return{done:e.completedCount??g.filter(k=>(k==null?void 0:k.status)==="Done").length,total:b}});function y(){if(!v.value)return null;const{done:g,total:b}=x.value,w=b>0?`已完成 (${g}/${b})`:"已完成";return i.createVNode("span",{class:"f-chat-started-todo-completed-chip","aria-label":w},[w])}return()=>i.createVNode("div",{ref:t,class:["f-chat-message-started-todo",{"is-working":e.status==="Working","is-completed":v.value}],onMouseenter:d,onMouseleave:f},[i.createVNode("div",{class:"f-chat-message-started-todo--header",onClick:h},[e.showLabel&&i.createVNode("span",{class:"f-chat-started-todo-label"},[cm[e.status]]),i.createVNode("span",{class:"f-chat-started-todo-message",innerHTML:e.message},null),y(),p()]),e.detailViewMode==="expand"&&i.createVNode("div",{class:l.value},[c()]),m()])}});tn.install=e=>{e.component(tn.name,tn)};const dm=i.defineComponent({name:"FXBubbleThoughtChain",props:nm,setup(e,t){const{elapsedSeconds:n,hasEverStarted:r,start:o,stop:u,reset:a}=Wu(),s=i.computed(()=>{var c;return((c=e.content)==null?void 0:c.status)==="Done"}),l=i.computed(()=>{var c;return((c=e.content)==null?void 0:c.message)??"正在思考......"}),d=i.computed(()=>{var p,m;const c=((p=e.content)==null?void 0:p.doneMessage)??((m=e.content)==null?void 0:m.message)??"思考完成",h=r.value?`(用时${n.value}秒)`:"";return""+c+h}),f=i.computed(()=>s.value?d.value:l.value);return i.watch(()=>{var c;return(c=e.content)==null?void 0:c.status},c=>{c==="Working"?o():c==="Done"?u():a()},{immediate:!0}),i.onUnmounted(()=>{a()}),t.expose({instance:{get loadDone(){return e.content?s.value:!0}}}),()=>{var c,h,p,m,v,x;return e.content?i.createVNode(tn,{status:((c=e.content)==null?void 0:c.status)??"Working",message:f.value,todoList:(h=e.content)==null?void 0:h.todoList,detailViewMode:((p=e.content)==null?void 0:p.detailViewMode)??"expand",showLabel:!1,showLoading:!0,initExpanded:!0,listStatus:(m=e.content)==null?void 0:m.listStatus,completedCount:(v=e.content)==null?void 0:v.completedCount,totalCount:(x=e.content)==null?void 0:x.totalCount},null):null}}}),ir=i.defineComponent({name:"UserAuthMessage",props:{content:{type:Object,required:!0},onConfirm:{type:Function,default:void 0}},setup(e){return()=>i.createVNode("div",{class:"f-ec-auth"},[i.createVNode("div",{class:"f-ec-auth-desc"},[e.content.description]),i.createVNode("div",{class:"f-ec-auth-actions"},[e.content.options.map(t=>i.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]))])])}}),fm=300,kn=i.defineComponent({name:"FXToolUseMessage",props:{content:{type:Object,required:!0}},setup(e){const t=i.computed(()=>e.content.toolResultApplied===!0||String(e.content.result??"").trim().length>0),{getToolIconClass:n}=Gu(),r=i.computed(()=>e.content.success===!1),o=i.ref(!1);let u=setTimeout(()=>{o.value=!0},fm);i.onBeforeUnmount(()=>{u&&clearTimeout(u)});const a=i.computed(()=>t.value),s=i.computed(()=>o.value&&!t.value),l=i.computed(()=>r.value?"执行失败":a.value?"执行完成":"调用中"),d=i.ref(!1),f=i.computed(()=>({"f-chat-tool-use":!0,"is-done":a.value,"is-error":r.value})),c=i.computed(()=>({"f-chat-tool-use-status":!0,"is-done":a.value&&!r.value,"is-run":s.value&&!r.value,"is-error":r.value}));i.watch(()=>[e.content.result,e.content.toolResultApplied,e.content.success],()=>{t.value&&(d.value=!1)},{flush:"post"});const h=()=>t.value?i.createVNode("div",{class:"f-chat-tool-use-result"},[e.content.result??""]):null;return()=>i.createVNode("div",{class:f.value},[i.createVNode("div",{class:"f-chat-tool-use-header",onClick:()=>{d.value=!d.value}},[i.createVNode("i",{class:"fx-icon fx-icon-"+n(e.content.toolName)+" tool-icon"},null),i.createVNode("span",{class:"f-chat-tool-use-name"},[e.content.toolDescription??"tool"]),i.createVNode("div",{class:c.value},[r.value?i.createVNode(Jt,{status:"Error",variant:"tool-use"},null):i.createVNode(Jt,{status:a.value?"Done":s.value?"Working":"NotStart",variant:"tool-use"},null),i.createVNode("span",{class:"f-chat-tool-use-status-text"},[l.value])]),i.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:d.value?"rotate(0deg)":"rotate(180deg)",transition:"transform 0.2s ease"}},null)]),d.value&&i.createVNode("div",{class:"f-chat-tool-use-content"},[h()])])}});kn.install=e=>{e.component(kn.name,kn)};const ar=i.defineComponent({name:"FXBubble",components:{"fx-user-auth-inline":ir,"fx-app-preview-inline":at,FXToolUse:kn},props:Lr,setup(e,t){const n=i.shallowRef(),r=i.ref(),o=i.ref(),u=i.computed(()=>!!e.showAvatar),a=i.computed(()=>u.value===!0||e.header==="ContentHeader"),s=i.computed(()=>t.slots.leftFooter||t.slots.rightFooter),l=i.computed(()=>{var L;return Ce({},(L=e.styles)==null?void 0:L.footer)}),d=L=>{if(e.attachmentRowClickOpensPreview!==!1&&e.onPreview){if(L.type==="md"&&L.content){e.onPreview({content:L.content,contentType:"markdown"});return}if(L!=null&&L.url){const W=L!=null&&L.fullScreenPreview?"fullScreen":"splitScreen";e.onPreview({url:L.url,previewMode:W,title:L.name})}}},f=L=>{if(e.attachmentRowClickOpensPreview===!1||!e.onPreview)return;const W=L==null?void 0:L.filter(N=>N.type==="md"&&N.content);if(W.length===0)return;const G=Object.fromEntries(W.map(N=>[N.name,N.content??""]));e.onPreview({contentMap:G,contentType:"markdown"})},{renderFileEmbeddedContent:c,renderPageEmbeddedContent:h}=Ti(),p=i.ref(""),m=i.computed(()=>{var W,G;if((W=e.content)!=null&&W.footerContent)return e.content.footerContent;const L=(G=e.content)==null?void 0:G.structuredContent;return L&&(L.footerTemplate||L.footerUrl||L.footerFile)?{type:L.footerUrl?"page":L.footerFile?"file":"template",pageUrl:L.footerUrl,fileContent:L.footerFile,template:L.footerTemplate,width:L.footerWidth,height:L.footerHeight}:null});i.watch(()=>{var L;return(L=m.value)==null?void 0:L.width},L=>{if(!L){p.value="";return}if(L.endsWith("%")){const W=parseFloat(L);isNaN(W)||i.nextTick(()=>{var N,C;const G=(C=(N=n.value)==null?void 0:N.parentElement)==null?void 0:C.clientWidth;G&&(p.value=`${G*W/100}px`)})}else p.value=L},{immediate:!0});const v=L=>{if(!L||L.length===0)return"我";const W=L.charAt(0);return/[\u4e00-\u9fa5]/.test(W)?W:W.toUpperCase()};function x(){return e.header==="ContentHeader"?Ac:kc}const y=x(),{renderHeader:g}=y(e,t),b=()=>{var G,N,C;const L=((G=e.content)==null?void 0:G.sender)??"发送人",W=v(((N=e.content)==null?void 0:N.sender)??"");return i.createVNode("div",{class:"f-chat-bubble-avatar"},[(C=e.content)!=null&&C.avatar?i.createVNode("img",{src:e.content.avatar,alt:L},null):i.createVNode("div",{class:"f-chat-bubble-avatar-initial"},[W])])},w=()=>{var W;const L=(W=e.content)==null?void 0:W.toolUseAboveText;return L!=null&&L.length?i.createVNode("div",{class:"f-chat-bubble-tool-use-group"},[L.map((G,N)=>i.createVNode(kn,{key:G.toolUseId??`tu-${N}`,content:G},null))]):null},k=()=>{var L;return(L=e.content)!=null&&L.thinkingContent?i.createVNode(tm,{ref:r,content:e.content.thinkingContent,outputMode:e.outputMode},null):null},D=()=>{var L;return(L=e.content)!=null&&L.startedTodo?i.createVNode(dm,{ref:o,content:e.content.startedTodo},null):null},S=L=>{if(!(L!=null&&L.type))return null;const{type:W}=L;return W==="page"&&L.pageUrl?h(L,{onNavigate:G=>{var N;(N=e.onPreview)==null||N.call(e,{url:G})}}):W==="file"&&L.fileContent?c(L,{onPreviewFile:d,onBatchPreviewFile:f}):W==="template"&&L.template?L.template():null},E=()=>{var N,C,F;if(!((F=(C=(N=e.content)==null?void 0:N.structuredContent)==null?void 0:C.sections)!=null&&F.length))return null;const{sections:L,showDivider:W}=e.content.structuredContent,G=P=>{const{content:M,label:z}=P;return z||M&&typeof M=="string"?i.createVNode(i.Fragment,null,[i.createVNode("span",{class:"f-chat-bubble-structured-section-item-dot"},null),P.label&&i.createVNode("span",{class:"f-chat-bubble-structured-section-item-label"},[P.label]),i.createVNode("span",{class:"f-chat-bubble-structured-section-item-content"},[P.content])]):S(P.content)};return i.createVNode("div",{class:["f-chat-bubble-structured",{"structure-content-divider":W}]},[L.map((P,M)=>i.createVNode("div",{key:M,class:["f-chat-bubble-structured-section",{"section-divider":P.showDivider}]},[i.createVNode("div",{class:"f-chat-bubble-structured-section-header"},[P.icon&&(P.icon.startsWith("http")||P.icon.startsWith("//")||P.icon.startsWith("../")||/\.(png|jpg|jpeg|gif|svg|webp|bmp)$/i.test(P.icon)?i.createVNode("img",{alt:P.title,src:P.icon,class:"f-chat-bubble-structured-section-icon"},null):i.createVNode("i",{class:`fx-icon ${P.icon}`,style:P.iconStyle},null)),i.createVNode("span",{class:"f-chat-bubble-structured-section-title"},[P.title])]),P.items&&P.items.length>0&&i.createVNode("div",{class:"f-chat-bubble-structured-section-items"},[P.items.map((z,T)=>i.createVNode("div",{key:T,class:"f-chat-bubble-structured-section-item"},[G(z)]))])]))])},X=()=>{const L=m.value;if(!L)return null;const W={};return p.value&&(W.width=p.value),L.height&&(W.height=`${L.height}px`),i.createVNode("div",{class:"f-chat-bubble-content-footer",style:W},[S(L)])},j=()=>{const L=e.attachmentRowClickOpensPreview!==!1?d:void 0;return i.createVNode(Di,{attachments:e.attachments??[],enableFixedWidth:e.placement==="end",showDownloadButton:e.attachmentShowDownload!==!1,onPreview:L,onBatchPreview:e.attachmentRowClickOpensPreview!==!1?f:void 0,role:e.role},null)},B=()=>{var W;const L=(W=e.content)==null?void 0:W.compositeInlineBlocks;return L!=null&&L.length?L.map((G,N)=>G.kind==="userAuth"?i.createVNode(i.resolveComponent("fx-user-auth-inline"),{key:`inline-auth-${N}`,content:G.content,onConfirm:e.onUserAuthConfirm},null):i.createVNode(i.resolveComponent("fx-app-preview-inline"),{key:`inline-preview-${N}`,content:G.content,onOpen:e.onPreview},null)):null},H=()=>{var L,W,G,N,C,F;return i.createVNode("div",{class:`f-chat-bubble-content ${e.placement}`},[a.value&&g(),j(),i.createVNode("div",{class:`f-chat-bubble-content-text-wrapper ${e.placement}`},[(L=e.content)!=null&&L.compositeOrderedBeforeMarkdownRender?e.content.compositeOrderedBeforeMarkdownRender():i.createVNode(i.Fragment,null,[k(),w()]),D(),E(),i.createVNode(Jh,{title:((W=e.content)==null?void 0:W.title)??"",subtitle:((G=e.content)==null?void 0:G.subtitle)??"",text:typeof((N=e.content)==null?void 0:N.text)=="string"?e.content.text:"",textFormat:((C=e.content)==null?void 0:C.textFormat)??"plain",placement:e.placement,onDynamicComponentsDetected:e==null?void 0:e.onDynamicComponentsDetected,onShowDynamicComponent:e==null?void 0:e.onShowDynamicComponent},null),X(),(F=e.compositeTailRender)==null?void 0:F.call(e),B()]),s.value&&i.createVNode("div",{class:"f-chat-bubble-footer",style:l.value},[t.slots.leftFooter&&i.createVNode("div",{class:"f-chat-bubble-footer-left"},[t.slots.leftFooter()]),t.slots.rightFooter&&i.createVNode("div",{class:"f-chat-bubble-footer-right"},[t.slots.rightFooter()])])])};return()=>i.createVNode("div",{class:"f-chat-bubble-container",ref:n},[i.createVNode("div",{class:`f-chat-bubble-wrapper ${e.placement}`},[e.placement==="start"?i.createVNode(i.Fragment,null,[u.value&&b(),H()]):i.createVNode(i.Fragment,null,[H(),u.value&&b()])])])}}),As={customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""}},Po=i.defineComponent({name:"FXBubbleAction",props:As,setup(e,t){const n=i.computed(()=>Ce({},e.customStyle));return()=>t.slots.default&&i.createVNode("span",{class:"f-chat-bubble-footer-action",style:n.value},[t.slots.default()])}});ar.install=e=>{e.component(ar.name,ar),e.component(Po.name,Po)};const ks={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"}},Cs={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:()=>({})}},fu=i.defineComponent({name:"FXCarouselItem",props:Cs,emits:["click"],setup(e,{slots:t,emit:n}){const r=i.computed(()=>{var c;const f={"fx-carousel--item":!0,"fx-carousel--item-active":e.active};return we(f,(c=e.classNames)==null?void 0:c.item)}),o=i.computed(()=>{var c,h;const f=Ce({},(c=e.styles)==null?void 0:c.item);return Ce(f,(h=e.styles)==null?void 0:h.item)}),u=()=>{var f,c,h;return e.item.image?i.createVNode("img",{class:["fx-carousel--item-image",(f=e.classNames)==null?void 0:f.image],style:(c=e.styles)==null?void 0:c.image,src:e.item.image,alt:(h=e.item.title)==null?void 0:h.toString()},null):null},a=()=>{var f,c,h,p;return e.item.content?i.createVNode("div",{class:["fx-carousel--item-content",(f=e.classNames)==null?void 0:f.content],style:(c=e.styles)==null?void 0:c.content},[e.item.content]):t.default?i.createVNode("div",{class:["fx-carousel--item-content",(h=e.classNames)==null?void 0:h.content],style:(p=e.styles)==null?void 0:p.content},[t.default()]):null},s=()=>{var f,c;return e.item.title?i.createVNode("h3",{class:["fx-carousel--item-title",(f=e.classNames)==null?void 0:f.title],style:(c=e.styles)==null?void 0:c.title},[e.item.title]):null},l=()=>{var f,c;return e.item.description?i.createVNode("p",{class:["fx-carousel--item-description",(f=e.classNames)==null?void 0:f.description],style:(c=e.styles)==null?void 0:c.description},[e.item.description]):null},d=f=>{e.item.disabled||n("click",f,e.item,e.index)};return()=>i.createVNode("div",{class:r.value,style:o.value,onClick:d},[u(),a(),e.showInfo&&i.createVNode("div",{class:"fx-carousel--item-info"},[s(),l()])])}});function hm(e){const{items:t,autoplay:n=!1,interval:r=3e3,loop:o=!0,direction:u="horizontal"}=e,a=i.ref(0),s=i.ref(!1),l=i.ref(null),d=i.computed(()=>t.length),f=i.computed(()=>d.value<=1);i.computed(()=>a.value===0?o?d.value-1:0:a.value-1),i.computed(()=>a.value===d.value-1?o?0:a.value:a.value+1);const c=i.computed(()=>{const b=-a.value*100;return{transform:u==="horizontal"?`translateX(${b}%)`:`translateY(${b}%)`,transition:"transform 0.5s ease"}}),h=b=>{b<0||b>=d.value||(a.value,a.value=b)},p=()=>{f.value||(a.value===d.value-1?h(o?0:a.value):h(a.value+1))},m=()=>{f.value||(a.value===0?h(o?d.value-1:0):h(a.value-1))},v=()=>{!n||f.value||(x(),l.value=window.setInterval(()=>{s.value||p()},r))},x=()=>{l.value&&(clearInterval(l.value),l.value=null)},y=()=>{s.value=!0,n&&x()},g=()=>{s.value=!1,n&&v()};return i.onMounted(()=>{v()}),i.onUnmounted(()=>{x()}),{currentIndex:a,totalItems:d,isSingleItem:f,trackStyle:c,goTo:h,next:p,prev:m,handleMouseEnter:y,handleMouseLeave:g}}const sr=i.defineComponent({name:"FXCarousel",props:ks,emits:["update:modelValue","change","item-click"],setup(e,{slots:t,emit:n}){const{currentIndex:r,isSingleItem:o,trackStyle:u,goTo:a,next:s,prev:l,handleMouseEnter:d,handleMouseLeave:f}=hm({items:e.items,autoplay:e.autoplay,interval:e.interval,loop:e.loop,direction:e.direction}),c=k=>{n("update:modelValue",k),n("change",k,r.value)},h=i.computed(()=>{var D;const k={"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 we(k,(D=e.classNames)==null?void 0:D.root)}),p=i.computed(()=>{var S;const k={height:typeof e.height=="number"?`${e.height}px`:e.height},D=Ce(k,e.customStyle);return Ce(D,(S=e.styles)==null?void 0:S.root)}),m=i.computed(()=>{var D;const k={"fx-carousel--container":!0,"fx-carousel--container-hover":e.arrowVisibility==="hover"};return we(k,(D=e.classNames)==null?void 0:D.container)}),v=i.computed(()=>{var D;return we({"fx-carousel--track":!0},(D=e.classNames)==null?void 0:D.track)}),x=i.computed(()=>{var D;const k={"fx-carousel--indicator":!0,"fx-carousel--indicator-outside":e.indicatorPosition==="outside","fx-carousel--indicator-none":e.indicatorPosition==="none"||!e.showIndicator};return we(k,(D=e.classNames)==null?void 0:D.indicator)}),y=k=>{var S,E;const D={"fx-carousel--arrow":!0,"fx-carousel--arrow-left":k==="left","fx-carousel--arrow-right":k==="right","fx-carousel--arrow-never":e.arrowVisibility==="never"||!e.showArrow};return D[`fx-carousel--arrow-${e.buttonPosition}`]=!0,we(D,k==="left"?(S=e.classNames)==null?void 0:S.arrowLeft:(E=e.classNames)==null?void 0:E.arrowRight)},g=k=>{var E,X;if(o.value)return null;const D=k==="left"?l:s,S=t[k==="left"?"prevArrow":"nextArrow"];return i.createVNode("button",{class:y(k),style:k==="left"?(E=e.styles)==null?void 0:E.arrowLeft:(X=e.styles)==null?void 0:X.arrowRight,onClick:D,"aria-label":`${k} arrow`},[S?S():i.createVNode("i",{style:"font-size: 60px;",class:`fx-icon fx-icon-arrow-${k==="left"?"left":"right"}`},null)])},b=()=>{var k;return o.value||!e.showIndicator?null:i.createVNode("div",{class:x.value,style:(k=e.styles)==null?void 0:k.indicator},[e.items.map((D,S)=>{var E,X;return i.createVNode("button",{"aria-label":`indicator ${S}`,key:S,class:["fx-carousel--indicator-item",{"fx-carousel--indicator-item-active":S===r.value}],style:S===r.value?(E=e.styles)==null?void 0:E.indicatorItemActive:(X=e.styles)==null?void 0:X.indicatorItem,onClick:()=>{a(S),c(S)}},null)})])},w=()=>i.createVNode("div",{class:v.value,style:u.value},[e.items.map((k,D)=>i.createVNode(fu,{key:k.id||`item_${D}`,item:k,showInfo:e.showInfo,index:D,active:D===r.value,styles:e.styles,classNames:e.classNames,onClick:(S,E,X)=>{n("item-click",S,E,X)}},{default:()=>{var S,E;return[(S=t.item)==null?void 0:S.call(t,{item:k,index:D,active:D===r.value}),(E=t[`item${D}`])==null?void 0:E.call(t,{item:k,index:D,active:D===r.value})]}}))]);return()=>{var k;return i.createVNode("div",{class:h.value,style:p.value,onMouseenter:d,onMouseleave:f},[e.buttonPosition==="outer"&&g("left"),i.createVNode("div",{class:m.value,style:(k=e.styles)==null?void 0:k.container},[e.buttonPosition==="inner"&&g("left"),w(),e.buttonPosition==="inner"&&g("right")]),e.buttonPosition==="outer"&&g("right"),b()])}}});sr.install=e=>{e.component(sr.name,sr),e.component(fu.name,fu)};const Es={customStyle:{type:String,default:""},customClass:{type:String,default:""},direction:{Type:String,default:"row"}};function mm(e){const t=i.ref(-1),n=i.ref(-1),r=i.ref(0),o=i.ref(0),u=i.ref(!1),a=i.ref(!1),s=i.computed(()=>({display:u.value?"block":"none",left:`${r.value}px`,cursor:"e-resize"})),l=i.computed(()=>({display:a.value?"block":"none",top:`${o.value}px`,cursor:"n-resize"})),d=i.computed(()=>{const x={display:a.value||u.value?"block":"none"};return o.value>0&&(x.cursor="n-resize"),x});function f(x,y,g,b){const w=e.value;if(w){const{left:k,right:D,width:S}=w.getBoundingClientRect();let E=x.clientX-k;b==="right"&&(E=D-x.clientX),E>y&&(E=y),E<g&&(E=g),b==="right"&&(E=S-E),r.value=E}}function c(x,y,g,b){const w=e.value;if(w){const{top:k,bottom:D,height:S}=w.getBoundingClientRect();let E=x.clientY-k;b==="bottom"&&(E=D-x.clientY),E>y&&(E=y),E<g&&(E=g),b==="bottom"&&(E=S-E),o.value=E}}function h(){const x=e.value;if(x){const{width:y,height:g}=x.getBoundingClientRect();return{width:y,height:g}}return null}function p(){const x=e.value;return x?Array.from(x.querySelectorAll("[data-position]")).reduce((y,g)=>{const b=g.getAttribute("data-position");return y=Object.assign(y,{[b]:g}),y},{}):null}function m(x,y){const g=h(),b=p();if(g&&b){const w=b==null?void 0:b.right,k=b==null?void 0:b.left;if(x==="left"&&k)return w?g.width-w.clientWidth-y:g.width-y;if(x==="right"&&w)return k?g.width-k.clientWidth-y:g.width-y}}function v(x,y){const g=h(),b=p();if(g&&b){const w=b==null?void 0:b.bottom,k=b==null?void 0:b.top;if(x==="top"&&k)return w?g.height-w.clientHeight-y:g.height-y;if(x==="bottom"&&w)return k?g.height-k.clientHeight-y:g.height-y}}return{horizontalResizeHandleStyle:s,verticalResizeHandleStyle:l,resizeOverlayStyle:d,showHorizontalResizeHandle:u,showVerticalResizeHandle:a,horizontalResizeBarPosition:t,verticalResizeBarPosition:n,verticalResizeHandleOffset:o,horizontalResizeHandleOffset:r,draggingHorizontalResizeHandle:f,draggingVerticalResizeHandle:c,getPanelMaxWidth:m,getPanelMaxHeight:v}}const Cn=i.defineComponent({name:"FXSplitter",props:Es,emits:[],setup(e,t){const n=i.ref(),r=mm(n),{horizontalResizeHandleStyle:o,verticalResizeHandleStyle:u,resizeOverlayStyle:a}=r;i.provide("splitter",{useResizeHandleComposition:r});const s=i.computed(()=>we({"f-splitter":!0},e==null?void 0:e.customClass)),l=i.computed(()=>{const d={"flex-direction":e.direction==="row"?"row":"column"};return Ce(d,e==null?void 0:e.customStyle)});return()=>i.createVNode("div",{class:s.value,ref:n,style:l.value},[t.slots.default&&t.slots.default(),i.createVNode("div",{class:"f-splitter-resize-overlay",style:a.value},null),i.createVNode("div",{class:"f-splitter-horizontal-resize-proxy",style:o.value},null),i.createVNode("div",{class:"f-splitter-vertical-resize-proxy",style:u.value},null)])}}),pm={customClass:{type:String,defaut:""},customStyle:{type:String,default:""},width:{type:Number},height:{type:Number},position:{type:String,default:"left"},visible:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},resizeHandle:{type:String,default:""},collapsable:{type:Boolean,default:!1},minWidth:{type:Number,default:100},minHeight:{type:Number,default:100},maxWidth:{type:Number,default:0},maxHeight:{type:Number,default:0}};function gm(e,t){const n=i.ref(e.width),r=i.ref(e.height),{horizontalResizeBarPosition:o,horizontalResizeHandleOffset:u,showHorizontalResizeHandle:a,showVerticalResizeHandle:s,verticalResizeBarPosition:l,verticalResizeHandleOffset:d,draggingHorizontalResizeHandle:f,draggingVerticalResizeHandle:c,getPanelMaxWidth:h,getPanelMaxHeight:p}=t;let m="",v,x,y;const g=()=>e.maxWidth?e.maxWidth:h(m,e.minWidth)||0,b=()=>e.maxHeight?e.maxHeight:p(m,e.minHeight)||0;function w(S){if((m==="left"||m==="right")&&x){const{left:E}=x.getBoundingClientRect(),{width:X}=v.getBoundingClientRect(),j=S.clientX-E;let B=m==="left"?(X||0)+(j-o.value):(X||0)-(j-o.value);B=e.minWidth>0?Math.max(e.minWidth,B):B;const H=g();H!=null&&H>0&&(B=H>B?B:H),n.value=B}if((m==="top"||m==="bottom")&&x){const{top:E}=x.getBoundingClientRect(),{height:X}=v.getBoundingClientRect(),j=S.clientY-E;let B=m==="top"?(X||0)+(j-l.value):(X||0)-(j-l.value);B=e.minHeight>0?Math.max(e.minHeight,B):B;const H=b();H!=null&&H>0&&(B=H>B?B:H),r.value=B}u.value=0,d.value=0,o.value=-1,l.value=-1,a.value=!1,s.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",w),document.body.style.userSelect="",m="",v=null,x=null}function k(S,E,X){if(m=E,v=X,a.value=!0,x=S.composedPath().find(B=>B.className.split(" ")[0]==="f-splitter"),x){const{left:B}=x.getBoundingClientRect();u.value=S.clientX-B,o.value=S.clientX-B;const H=g();y=L=>f(L,H,e.minWidth,m),document.addEventListener("mousemove",y),document.addEventListener("mouseup",w),document.body.style.userSelect="none"}}function D(S,E,X){if(m=E,v=X,s.value=!0,x=S.composedPath().find(B=>B.className.split(" ")[0]==="f-splitter"),x){const{top:B}=x.getBoundingClientRect();d.value=S.clientY-B,l.value=S.clientY-B;const H=b();y=L=>c(L,H,e.minHeight,m),document.addEventListener("mousemove",y),document.addEventListener("mouseup",w),document.body.style.userSelect="none"}}return{actualWidth:n,actualHeight:r,onClickSplitterHorizontalResizeBar:k,onClickSplitterVerticalResizeBar:D}}const lr=i.defineComponent({name:"FSplitterPane",props:pm,emits:[],setup(e,t){const n=i.ref(),r=i.inject("splitter"),{useResizeHandleComposition:o}=r,u=gm(e,o),{actualHeight:a,actualWidth:s,onClickSplitterHorizontalResizeBar:l,onClickSplitterVerticalResizeBar:d}=u,f=i.ref(e.position),c=i.computed(()=>{const b={"f-splitter-pane":!0,"f-splitter-pane-main":f.value==="center","has-resize-bar":e.resizable};return b["f-splitter-pane-"+f.value]=!0,we(b,e==null?void 0:e.customClass)}),h=i.computed(()=>e.resizeHandle?e.resizeHandle.split(",").filter(b=>["e","n","s","w"].find(w=>w===b)):[]),p=i.computed(()=>{const b={};return(s.value||s.value===0)&&(f.value==="left"||f.value==="right"||h.value.find(w=>w==="e")||h.value.find(w=>w==="w"))&&(b.width=`${s.value}px`),(a.value||a.value===0)&&(f.value==="bottom"||f.value==="top"||h.value.find(w=>w==="s")||h.value.find(w=>w==="n"))&&(b.height=`${a.value}px`),e.visible||(b.display="none"),Ce(b,e==null?void 0:e.customStyle)}),m=i.computed(()=>({"f-splitter-resize-bar":!0,"f-splitter-resize-bar-e":f.value==="left","f-splitter-resize-bar-n":f.value==="bottom","f-splitter-resize-bar-s":f.value==="top","f-splitter-resize-bar-w":f.value==="right"}));function v(b){return{e:"left",w:"right",s:"top",n:"bottom"}[b]||b}function x(b,w){w=v(w),["left","right"].find(k=>k===w)&&l(b,w,n.value),["top","bottom"].find(k=>k===w)&&d(b,w,n.value)}function y(){return h.value.length>0?h.value.map(b=>i.createVNode("span",{class:"f-splitter-resize-bar f-splitter-resize-bar-"+b,onMousedown:w=>x(w,b)},null)):i.createVNode("span",{class:m.value,onMousedown:b=>x(b,f.value)},null)}function g(){s.value=e.width,a.value=e.height,p.value}return t.expose({reset:g}),()=>i.createVNode("div",{ref:n,class:c.value,style:p.value,"data-position":f.value},[t.slots.default&&t.slots.default(),e.resizable&&y()])}});Cn.install=e=>{e.component(Cn.name,Cn),e.component(lr.name,lr)};const _s={previewConfig:{type:Object,default:()=>({})},onClose:{type:Function,default:()=>{}},onIframeLoad:{type:Function,default:()=>{}}},Ss={content:{type:String,default:null}},bm=e=>{const t=typeof e;return t!=="function"&&t!=="object"||e===null},ym=e=>{const t=e.flags===""?void 0:e.flags;return new RegExp(e.source,t)},cr=(e,t=new WeakMap)=>{if(e===null||bm(e))return e;if(t.has(e))return t.get(e);if(e instanceof RegExp)return ym(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,cr(o,t))}),r}if(e instanceof Set){const r=new Set;t.set(e,r);for(const o of e)r.add(cr(o,t));return r}if(Array.isArray(e)){const r=[];return t.set(e,r),e.forEach(o=>{r.push(cr(o,t))}),r}const n={};t.set(e,n);for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=cr(e[r],t));return n},wm=(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)})},Ro=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,hu=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),xm=new Set(["__proto__","constructor","prototype"]),vm=e=>!xm.has(e),Mo=(e,t,n={})=>{if(Array.isArray(e)&&Array.isArray(t))return Bo(e,t,n);const{excludeKeys:r}=n,o=e,u=t;for(const a of Object.keys(u)){if(!vm(a))continue;const s=u[a],l=o[a];r&&r(a)?o[a]=s:Array.isArray(s)&&Array.isArray(l)?o[a]=Bo(l,s,n):hu(s)&&hu(l)?o[a]=Mo(l,s,n):o[a]=s}return e},Bo=(e,t,n)=>{const r=e.slice();return t.forEach((o,u)=>{const a=r[u];Array.isArray(o)&&Array.isArray(a)?r[u]=Bo(a,o,n):hu(o)&&hu(a)?r[u]=Mo(a,o,n):r[u]=o}),r},Z="md-editor",de="https://unpkg.com",Am=`${de}/@highlightjs/cdn-assets@11.11.1/highlight.min.js`,Fs={main:`${de}/prettier@3.8.1/standalone.js`,markdown:`${de}/prettier@3.8.1/plugins/markdown.js`},km={css:`${de}/cropperjs@1.6.2/dist/cropper.min.css`,js:`${de}/cropperjs@1.6.2/dist/cropper.min.js`},Cm=`${de}/screenfull@5.2.0/dist/screenfull.js`,Em=`${de}/mermaid@11.12.3/dist/mermaid.min.js`,_m={js:`${de}/katex@0.16.33/dist/katex.min.js`,css:`${de}/katex@0.16.33/dist/katex.min.css`},zo={a11y:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/a11y-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/a11y-dark.min.css`},atom:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-dark.min.css`},github:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/github.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/github-dark.min.css`},gradient:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/gradient-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/gradient-dark.min.css`},kimbie:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-dark.min.css`},paraiso:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-dark.min.css`},qtcreator:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${de}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css`,dark:`${de}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-dark.min.css`}},Sm=`${de}/echarts@6.0.0/dist/echarts.min.js`,Ds={"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"}}},dt={editorExtensions:{highlight:{js:Am,css:zo},prettier:{standaloneJs:Fs.main,parserMarkdownJs:Fs.markdown},cropper:{...km},screenfull:{js:Cm},mermaid:{js:Em,enableZoom:!0},katex:{..._m},echarts:{js:Sm}},editorExtensionsAttrs:{},editorConfig:{languageUserDefined:{},mermaidTemplate:{},renderDelay:500,zIndex:2e4},codeMirrorExtensions:e=>e,markdownItConfig:()=>{},markdownItPlugins:e=>e,mermaidConfig:e=>e,katexConfig:e=>e,echartsConfig:e=>e},Fm=({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]},Dm="buildFinished",jo="errorCatcher",Ho="catalogChanged",Nm="pushCatalog",Ns="rerender",Tm="taskStateChanged";class Im{constructor(){fe(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(a){console.error(`${n} monitor event exception!`,a)}})}}const ot=new Im,Om=(e,t)=>{if(!e)return e;const n=t.split(`
35
+ `),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 Ts(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 Lm={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>`},Ft=(e,t)=>typeof t[e]=="string"?t[e]:Lm[e],Ut=(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 a=Pm(e,u);t.onload&&a.addEventListener("load",t.onload),document.head.appendChild(a)}},Vm=(e,t)=>{var n;(n=document.getElementById(t.id))==null||n.remove(),Ut(e,t)},Pm=(e,t)=>{const n=document.createElement(e);return Object.keys(t).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),n},Rm=(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">${Ft("copy",t.customIcon)}</span>`):(r.insertAdjacentHTML("beforeend",`<div class="${Z}-mermaid-action"><span class="${Z}-mermaid-copy">${Ft("copy",t.customIcon)}</span></div>`),o=r.querySelector(`.${Z}-mermaid-action`));const u=o.querySelector(`.${Z}-mermaid-copy`);let a=-1;const s=()=>{clearTimeout(a),Ts(r.dataset.content||"").then(()=>{u.innerHTML=Ft("check",t.customIcon)}).catch(()=>{u.innerHTML=Ft("copy",t.customIcon)}).finally(()=>{a=window.setTimeout(()=>{u.innerHTML=Ft("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()}},Mm=(()=>{const e=t=>{if(!t)return()=>{};const n=t.firstChild;let r=1,o=0,u=0,a=!1,s,l,d,f=1;const c=()=>{n.style.transform=`translate(${o}px, ${u}px) scale(${r})`},h=w=>{w.touches.length===1?(a=!0,s=w.touches[0].clientX-o,l=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)},p=w=>{if(w.preventDefault(),a&&w.touches.length===1)o=w.touches[0].clientX-s,u=w.touches[0].clientY-l,c();else if(w.touches.length===2){const k=Math.hypot(w.touches[0].clientX-w.touches[1].clientX,w.touches[0].clientY-w.touches[1].clientY)/d,D=r;r=f*(1+(k-1));const S=(w.touches[0].clientX+w.touches[1].clientX)/2,E=(w.touches[0].clientY+w.touches[1].clientY)/2,X=n.getBoundingClientRect(),j=(S-X.left)/D,B=(E-X.top)/D;o-=j*(r-D),u-=B*(r-D),c()}},m=()=>{a=!1},v=w=>{w.preventDefault();const k=.02,D=r;w.deltaY<0?r+=k:r=Math.max(.1,r-k);const S=n.getBoundingClientRect(),E=w.clientX-S.left,X=w.clientY-S.top;o-=E/D*(r-D),u-=X/D*(r-D),c()},x=w=>{a=!0,s=w.clientX-o,l=w.clientY-u},y=w=>{a&&(o=w.clientX-s,u=w.clientY-l,c())},g=()=>{a=!1},b=()=>{a=!1};return t.addEventListener("touchstart",h,{passive:!1}),t.addEventListener("touchmove",p,{passive:!1}),t.addEventListener("touchend",m),t.addEventListener("wheel",v,{passive:!1}),t.addEventListener("mousedown",x),t.addEventListener("mousemove",y),t.addEventListener("mouseup",g),t.addEventListener("mouseleave",b),()=>{t.removeEventListener("touchstart",h),t.removeEventListener("touchmove",p),t.removeEventListener("touchend",m),t.removeEventListener("wheel",v),t.removeEventListener("mousedown",x),t.removeEventListener("mousemove",y),t.removeEventListener("mouseup",g),t.removeEventListener("mouseleave",b)}};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">${Ft("pin-off",n.customIcon)}</span>`):(o.insertAdjacentHTML("beforeend",`<div class="${Z}-mermaid-action"><span class="${Z}-mermaid-zoom">${Ft("pin-off",n.customIcon)}</span></div>`),u=o.querySelector(`.${Z}-mermaid-action`));const a=u.querySelector(`.${Z}-mermaid-zoom`),s=()=>{const l=r.get(o);if(l!=null&&l.removeEvent)l.removeEvent(),o.removeAttribute("data-grab"),r.set(o,{removeClick:l.removeClick}),a.innerHTML=Ft("pin-off",n.customIcon);else{const d=e(o);o.setAttribute("data-grab",""),r.set(o,{removeEvent:d,removeClick:l==null?void 0:l.removeClick}),a.innerHTML=Ft("pin",n.customIcon)}};a.addEventListener("click",s),r.set(o,{removeClick:()=>a.removeEventListener("click",s)})}),()=>{r.forEach(({removeEvent:o,removeClick:u})=>{o==null||o(),u==null||u()}),r.clear()}}})(),Is=new Set([!0,!1,"alt","title"]);function Os(e,t){return(Array.isArray(e)?e:[]).filter(([n])=>n!==t)}function Ls(e,t){e&&e.attrs&&(e.attrs=Os(e.attrs,t))}function Bm(e,t){if(!Is.has(e))throw new TypeError(`figcaption must be one of: ${[...Is]}.`);if(e==="alt")return t.content;const n=t.attrs.find(([r])=>r==="title");return Array.isArray(n)&&n[1]?(Ls(t,"title"),n[1]):void 0}function zm(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 a=n.tokens[o];if(a.type!=="inline"||!a.children||a.children.length!==1&&a.children.length!==3||a.children.length===1&&a.children[0].type!=="image")continue;if(a.children.length===3){const[d,f,c]=a.children;if(d.type!=="link_open"||f.type!=="image"||c.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 l;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&&a.children.length===1){[l]=a.children;const d=new n.Token("link_open","a",1);d.attrPush(["href",l.attrGet("src")]),a.children.unshift(d),a.children.push(new n.Token("link_close","a",-1))}if(l=a.children.length===1?a.children[0]:a.children[1],t.figcaption){const d=Bm(t.figcaption,l);if(d){const[f]=e.parseInline(d,n.env);a.children.push(new n.Token("figcaption_open","figcaption",1)),a.children.push(...f.children),a.children.push(new n.Token("figcaption_close","figcaption",-1)),l.attrs&&(l.attrs=Os(l.attrs,"title"))}}if(t.copyAttrs&&l.attrs){const d=t.copyAttrs===!0?"":t.copyAttrs;s.attrs=l.attrs.filter(([f])=>f.match(d)).map(f=>Array.from(f))}if(t.tabindex&&(n.tokens[o-1].attrPush(["tabindex",r]),r++),t.lazy&&(l.attrs.some(([d])=>d==="loading")||l.attrs.push(["loading","lazy"])),t.async&&(l.attrs.some(([d])=>d==="decoding")||l.attrs.push(["decoding","async"])),t.classes&&typeof t.classes=="string"){let d=!1;for(let f=0,c=l.attrs.length;f<c&&!d;f++){const h=l.attrs[f];h[0]==="class"&&(h[1]=`${h[1]} ${t.classes}`,d=!0)}d||l.attrs.push(["class",t.classes])}if(t.removeSrc){const d=l.attrs.find(([f])=>f==="src");l.attrs.push(["data-src",d[1]]),Ls(l,"src")}}})}const jm=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function Hm(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 a=e.push("sub_open","sub",1);a.markup="~";const s=e.push("text","",0);s.content=u.replace(jm,"$1");const l=e.push("sub_close","sub",-1);return l.markup="~",e.pos=e.posMax+1,e.posMax=n,!0}function $m(e){e.inline.ruler.after("emphasis","sub",Hm)}const Um=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function Wm(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 a=e.push("sup_open","sup",1);a.markup="^";const s=e.push("text","",0);s.content=u.replace(Um,"$1");const l=e.push("sup_close","sup",-1);return l.markup="^",e.pos=e.posMax+1,e.posMax=n,!0}function Gm(e){e.inline.ruler.after("emphasis","sup",Wm)}var Xm=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Vs=new Set,$o=typeof process=="object"&&process?process:{},Ps=(e,t,n,r)=>{typeof $o.emitWarning=="function"?$o.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)},mu=globalThis.AbortController,Rs=globalThis.AbortSignal;if(typeof mu>"u"){Rs=class{constructor(){fe(this,"onabort");fe(this,"_onabort",[]);fe(this,"reason");fe(this,"aborted",!1)}addEventListener(n,r){this._onabort.push(r)}},mu=class{constructor(){fe(this,"signal",new Rs);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=((Ul=$o.env)==null?void 0:Ul.LRU_CACHE_IGNORE_AC_WARNING)!=="1",t=()=>{e&&(e=!1,Ps("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 qm=e=>!Vs.has(e),Wt=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Ms=e=>Wt(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?pu:null:null,pu=class extends Array{constructor(t){super(t),this.fill(0)}},Zm=(Dt=class{constructor(t,n){fe(this,"heap");fe(this,"length");if(!A(Dt,Nn))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0}static create(t){let n=Ms(t);if(!n)return[];re(Dt,Nn,!0);let r=new Dt(t,n);return re(Dt,Nn,!1),r}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},Nn=new WeakMap,ie(Dt,Nn,!1),Dt),Ym=(Vn=class{constructor(t){ie(this,q);ie(this,it);ie(this,Qe);ie(this,ft);ie(this,an);ie(this,ht);ie(this,Tn);ie(this,In);ie(this,mt);fe(this,"ttl");fe(this,"ttlResolution");fe(this,"ttlAutopurge");fe(this,"updateAgeOnGet");fe(this,"updateAgeOnHas");fe(this,"allowStale");fe(this,"noDisposeOnSet");fe(this,"noUpdateTTL");fe(this,"maxEntrySize");fe(this,"sizeCalculation");fe(this,"noDeleteOnFetchRejection");fe(this,"noDeleteOnStaleGet");fe(this,"allowStaleOnFetchAbort");fe(this,"allowStaleOnFetchRejection");fe(this,"ignoreFetchAbort");ie(this,Ee);ie(this,pt);ie(this,ve);ie(this,he);ie(this,ue);ie(this,$e);ie(this,Je);ie(this,Re);ie(this,Ne);ie(this,gt);ie(this,Te);ie(this,bt);ie(this,yt);ie(this,et);ie(this,tt);ie(this,wt);ie(this,qt);ie(this,Ue);ie(this,On);ie(this,sn,()=>{});ie(this,Lt,()=>{});ie(this,Dr,()=>{});ie(this,nt,()=>!1);ie(this,ln,t=>{});ie(this,Ln,(t,n,r)=>{});ie(this,Nr,(t,n,r,o)=>{if(r||o)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});fe(this,Wl,"LRUCache");let{max:n=0,ttl:r,ttlResolution:o=1,ttlAutopurge:u,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:l,dispose:d,onInsert:f,disposeAfter:c,noDisposeOnSet:h,noUpdateTTL:p,maxSize:m=0,maxEntrySize:v=0,sizeCalculation:x,fetchMethod:y,memoMethod:g,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:w,allowStaleOnFetchRejection:k,allowStaleOnFetchAbort:D,ignoreFetchAbort:S,perf:E}=t;if(E!==void 0&&typeof(E==null?void 0:E.now)!="function")throw new TypeError("perf option must have a now() method if specified");if(re(this,mt,E??Xm),n!==0&&!Wt(n))throw new TypeError("max option must be a nonnegative integer");let X=n?Ms(n):Array;if(!X)throw new Error("invalid max value: "+n);if(re(this,it,n),re(this,Qe,m),this.maxEntrySize=v||A(this,Qe),this.sizeCalculation=x,this.sizeCalculation){if(!A(this,Qe)&&!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(re(this,In,g),y!==void 0&&typeof y!="function")throw new TypeError("fetchMethod must be a function if specified");if(re(this,Tn,y),re(this,qt,!!y),re(this,ve,new Map),re(this,he,new Array(n).fill(void 0)),re(this,ue,new Array(n).fill(void 0)),re(this,$e,new X(n)),re(this,Je,new X(n)),re(this,Re,0),re(this,Ne,0),re(this,gt,Zm.create(n)),re(this,Ee,0),re(this,pt,0),typeof d=="function"&&re(this,ft,d),typeof f=="function"&&re(this,an,f),typeof c=="function"?(re(this,ht,c),re(this,Te,[])):(re(this,ht,void 0),re(this,Te,void 0)),re(this,wt,!!A(this,ft)),re(this,On,!!A(this,an)),re(this,Ue,!!A(this,ht)),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!k,this.allowStaleOnFetchAbort=!!D,this.ignoreFetchAbort=!!S,this.maxEntrySize!==0){if(A(this,Qe)!==0&&!Wt(A(this,Qe)))throw new TypeError("maxSize must be a positive integer if specified");if(!Wt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Q(this,q,dc).call(this)}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!w,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=Wt(o)||o===0?o:1,this.ttlAutopurge=!!u,this.ttl=r||0,this.ttl){if(!Wt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Q(this,q,pi).call(this)}if(A(this,it)===0&&this.ttl===0&&A(this,Qe)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!A(this,it)&&!A(this,Qe)){let j="LRU_CACHE_UNBOUNDED";qm(j)&&(Vs.add(j),Ps("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",j,Vn))}}get perf(){return A(this,mt)}static unsafeExposeInternals(t){return{starts:A(t,yt),ttls:A(t,et),autopurgeTimers:A(t,tt),sizes:A(t,bt),keyMap:A(t,ve),keyList:A(t,he),valList:A(t,ue),next:A(t,$e),prev:A(t,Je),get head(){return A(t,Re)},get tail(){return A(t,Ne)},free:A(t,gt),isBackgroundFetch:n=>{var r;return Q(r=t,q,me).call(r,n)},backgroundFetch:(n,r,o,u)=>{var a;return Q(a=t,q,Hu).call(a,n,r,o,u)},moveToTail:n=>{var r;return Q(r=t,q,Or).call(r,n)},indexes:n=>{var r;return Q(r=t,q,Yt).call(r,n)},rindexes:n=>{var r;return Q(r=t,q,Kt).call(r,n)},isStale:n=>{var r;return A(r=t,nt).call(r,n)}}}get max(){return A(this,it)}get maxSize(){return A(this,Qe)}get calculatedSize(){return A(this,pt)}get size(){return A(this,Ee)}get fetchMethod(){return A(this,Tn)}get memoMethod(){return A(this,In)}get dispose(){return A(this,ft)}get onInsert(){return A(this,an)}get disposeAfter(){return A(this,ht)}getRemainingTTL(t){return A(this,ve).has(t)?1/0:0}*entries(){for(let t of Q(this,q,Yt).call(this))A(this,ue)[t]!==void 0&&A(this,he)[t]!==void 0&&!Q(this,q,me).call(this,A(this,ue)[t])&&(yield[A(this,he)[t],A(this,ue)[t]])}*rentries(){for(let t of Q(this,q,Kt).call(this))A(this,ue)[t]!==void 0&&A(this,he)[t]!==void 0&&!Q(this,q,me).call(this,A(this,ue)[t])&&(yield[A(this,he)[t],A(this,ue)[t]])}*keys(){for(let t of Q(this,q,Yt).call(this)){let n=A(this,he)[t];n!==void 0&&!Q(this,q,me).call(this,A(this,ue)[t])&&(yield n)}}*rkeys(){for(let t of Q(this,q,Kt).call(this)){let n=A(this,he)[t];n!==void 0&&!Q(this,q,me).call(this,A(this,ue)[t])&&(yield n)}}*values(){for(let t of Q(this,q,Yt).call(this))A(this,ue)[t]!==void 0&&!Q(this,q,me).call(this,A(this,ue)[t])&&(yield A(this,ue)[t])}*rvalues(){for(let t of Q(this,q,Kt).call(this))A(this,ue)[t]!==void 0&&!Q(this,q,me).call(this,A(this,ue)[t])&&(yield A(this,ue)[t])}[(Gl=Symbol.iterator,Wl=Symbol.toStringTag,Gl)](){return this.entries()}find(t,n={}){for(let r of Q(this,q,Yt).call(this)){let o=A(this,ue)[r],u=Q(this,q,me).call(this,o)?o.__staleWhileFetching:o;if(u!==void 0&&t(u,A(this,he)[r],this))return this.get(A(this,he)[r],n)}}forEach(t,n=this){for(let r of Q(this,q,Yt).call(this)){let o=A(this,ue)[r],u=Q(this,q,me).call(this,o)?o.__staleWhileFetching:o;u!==void 0&&t.call(n,u,A(this,he)[r],this)}}rforEach(t,n=this){for(let r of Q(this,q,Kt).call(this)){let o=A(this,ue)[r],u=Q(this,q,me).call(this,o)?o.__staleWhileFetching:o;u!==void 0&&t.call(n,u,A(this,he)[r],this)}}purgeStale(){let t=!1;for(let n of Q(this,q,Kt).call(this,{allowStale:!0}))A(this,nt).call(this,n)&&(Q(this,q,Qt).call(this,A(this,he)[n],"expire"),t=!0);return t}info(t){let n=A(this,ve).get(t);if(n===void 0)return;let r=A(this,ue)[n],o=Q(this,q,me).call(this,r)?r.__staleWhileFetching:r;if(o===void 0)return;let u={value:o};if(A(this,et)&&A(this,yt)){let a=A(this,et)[n],s=A(this,yt)[n];if(a&&s){let l=a-(A(this,mt).now()-s);u.ttl=l,u.start=Date.now()}}return A(this,bt)&&(u.size=A(this,bt)[n]),u}dump(){let t=[];for(let n of Q(this,q,Yt).call(this,{allowStale:!0})){let r=A(this,he)[n],o=A(this,ue)[n],u=Q(this,q,me).call(this,o)?o.__staleWhileFetching:o;if(u===void 0||r===void 0)continue;let a={value:u};if(A(this,et)&&A(this,yt)){a.ttl=A(this,et)[n];let s=A(this,mt).now()-A(this,yt)[n];a.start=Math.floor(Date.now()-s)}A(this,bt)&&(a.size=A(this,bt)[n]),t.unshift([r,a])}return t}load(t){this.clear();for(let[n,r]of t){if(r.start){let o=Date.now()-r.start;r.start=A(this,mt).now()-o}this.set(n,r.value,r)}}set(t,n,r={}){var h,p,m,v,x,y,g;if(n===void 0)return this.delete(t),this;let{ttl:o=this.ttl,start:u,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:l}=r,{noUpdateTTL:d=this.noUpdateTTL}=r,f=A(this,Nr).call(this,t,n,r.size||0,s);if(this.maxEntrySize&&f>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),Q(this,q,Qt).call(this,t,"set"),this;let c=A(this,Ee)===0?void 0:A(this,ve).get(t);if(c===void 0)c=A(this,Ee)===0?A(this,Ne):A(this,gt).length!==0?A(this,gt).pop():A(this,Ee)===A(this,it)?Q(this,q,ju).call(this,!1):A(this,Ee),A(this,he)[c]=t,A(this,ue)[c]=n,A(this,ve).set(t,c),A(this,$e)[A(this,Ne)]=c,A(this,Je)[c]=A(this,Ne),re(this,Ne,c),zu(this,Ee)._++,A(this,Ln).call(this,c,f,l),l&&(l.set="add"),d=!1,A(this,On)&&((h=A(this,an))==null||h.call(this,n,t,"add"));else{Q(this,q,Or).call(this,c);let b=A(this,ue)[c];if(n!==b){if(A(this,qt)&&Q(this,q,me).call(this,b)){b.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:w}=b;w!==void 0&&!a&&(A(this,wt)&&((p=A(this,ft))==null||p.call(this,w,t,"set")),A(this,Ue)&&((m=A(this,Te))==null||m.push([w,t,"set"])))}else a||(A(this,wt)&&((v=A(this,ft))==null||v.call(this,b,t,"set")),A(this,Ue)&&((x=A(this,Te))==null||x.push([b,t,"set"])));if(A(this,ln).call(this,c),A(this,Ln).call(this,c,f,l),A(this,ue)[c]=n,l){l.set="replace";let w=b&&Q(this,q,me).call(this,b)?b.__staleWhileFetching:b;w!==void 0&&(l.oldValue=w)}}else l&&(l.set="update");A(this,On)&&((y=this.onInsert)==null||y.call(this,n,t,n===b?"update":"replace"))}if(o!==0&&!A(this,et)&&Q(this,q,pi).call(this),A(this,et)&&(d||A(this,Dr).call(this,c,o,u),l&&A(this,Lt).call(this,l,c)),!a&&A(this,Ue)&&A(this,Te)){let b=A(this,Te),w;for(;w=b==null?void 0:b.shift();)(g=A(this,ht))==null||g.call(this,...w)}return this}pop(){var t;try{for(;A(this,Ee);){let n=A(this,ue)[A(this,Re)];if(Q(this,q,ju).call(this,!0),Q(this,q,me).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(A(this,Ue)&&A(this,Te)){let n=A(this,Te),r;for(;r=n==null?void 0:n.shift();)(t=A(this,ht))==null||t.call(this,...r)}}}has(t,n={}){let{updateAgeOnHas:r=this.updateAgeOnHas,status:o}=n,u=A(this,ve).get(t);if(u!==void 0){let a=A(this,ue)[u];if(Q(this,q,me).call(this,a)&&a.__staleWhileFetching===void 0)return!1;if(A(this,nt).call(this,u))o&&(o.has="stale",A(this,Lt).call(this,o,u));else return r&&A(this,sn).call(this,u),o&&(o.has="hit",A(this,Lt).call(this,o,u)),!0}else o&&(o.has="miss");return!1}peek(t,n={}){let{allowStale:r=this.allowStale}=n,o=A(this,ve).get(t);if(o===void 0||!r&&A(this,nt).call(this,o))return;let u=A(this,ue)[o];return Q(this,q,me).call(this,u)?u.__staleWhileFetching:u}async fetch(t,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:u=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:s=this.noDisposeOnSet,size:l=0,sizeCalculation:d=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:m=this.allowStaleOnFetchAbort,context:v,forceRefresh:x=!1,status:y,signal:g}=n;if(!A(this,qt))return y&&(y.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:o,noDeleteOnStaleGet:u,status:y});let b={allowStale:r,updateAgeOnGet:o,noDeleteOnStaleGet:u,ttl:a,noDisposeOnSet:s,size:l,sizeCalculation:d,noUpdateTTL:f,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:m,ignoreFetchAbort:p,status:y,signal:g},w=A(this,ve).get(t);if(w===void 0){y&&(y.fetch="miss");let k=Q(this,q,Hu).call(this,t,w,b,v);return k.__returned=k}else{let k=A(this,ue)[w];if(Q(this,q,me).call(this,k)){let X=r&&k.__staleWhileFetching!==void 0;return y&&(y.fetch="inflight",X&&(y.returnedStale=!0)),X?k.__staleWhileFetching:k.__returned=k}let D=A(this,nt).call(this,w);if(!x&&!D)return y&&(y.fetch="hit"),Q(this,q,Or).call(this,w),o&&A(this,sn).call(this,w),y&&A(this,Lt).call(this,y,w),k;let S=Q(this,q,Hu).call(this,t,w,b,v),E=S.__staleWhileFetching!==void 0&&r;return y&&(y.fetch=D?"stale":"refresh",E&&D&&(y.returnedStale=!0)),E?S.__staleWhileFetching:S.__returned=S}}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=A(this,In);if(!r)throw new Error("no memoMethod provided to constructor");let{context:o,forceRefresh:u,...a}=n,s=this.get(t,a);if(!u&&s!==void 0)return s;let l=r(t,s,{options:a,context:o});return this.set(t,l,a),l}get(t,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:u=this.noDeleteOnStaleGet,status:a}=n,s=A(this,ve).get(t);if(s!==void 0){let l=A(this,ue)[s],d=Q(this,q,me).call(this,l);return a&&A(this,Lt).call(this,a,s),A(this,nt).call(this,s)?(a&&(a.get="stale"),d?(a&&r&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),r?l.__staleWhileFetching:void 0):(u||Q(this,q,Qt).call(this,t,"expire"),a&&r&&(a.returnedStale=!0),r?l:void 0)):(a&&(a.get="hit"),d?l.__staleWhileFetching:(Q(this,q,Or).call(this,s),o&&A(this,sn).call(this,s),l))}else a&&(a.get="miss")}delete(t){return Q(this,q,Qt).call(this,t,"delete")}clear(){return Q(this,q,yi).call(this,"delete")}},it=new WeakMap,Qe=new WeakMap,ft=new WeakMap,an=new WeakMap,ht=new WeakMap,Tn=new WeakMap,In=new WeakMap,mt=new WeakMap,Ee=new WeakMap,pt=new WeakMap,ve=new WeakMap,he=new WeakMap,ue=new WeakMap,$e=new WeakMap,Je=new WeakMap,Re=new WeakMap,Ne=new WeakMap,gt=new WeakMap,Te=new WeakMap,bt=new WeakMap,yt=new WeakMap,et=new WeakMap,tt=new WeakMap,wt=new WeakMap,qt=new WeakMap,Ue=new WeakMap,On=new WeakMap,q=new WeakSet,pi=function(){let t=new pu(A(this,it)),n=new pu(A(this,it));re(this,et,t),re(this,yt,n);let r=this.ttlAutopurge?new Array(A(this,it)):void 0;re(this,tt,r),re(this,Dr,(s,l,d=A(this,mt).now())=>{n[s]=l!==0?d:0,t[s]=l,o(s,l)}),re(this,sn,s=>{n[s]=t[s]!==0?A(this,mt).now():0,o(s,t[s])});let o=this.ttlAutopurge?(s,l)=>{if(r!=null&&r[s]&&(clearTimeout(r[s]),r[s]=void 0),l&&l!==0&&r){let d=setTimeout(()=>{A(this,nt).call(this,s)&&Q(this,q,Qt).call(this,A(this,he)[s],"expire")},l+1);d.unref&&d.unref(),r[s]=d}}:()=>{};re(this,Lt,(s,l)=>{if(t[l]){let d=t[l],f=n[l];if(!d||!f)return;s.ttl=d,s.start=f,s.now=u||a();let c=s.now-f;s.remainingTTL=d-c}});let u=0,a=()=>{let s=A(this,mt).now();if(this.ttlResolution>0){u=s;let l=setTimeout(()=>u=0,this.ttlResolution);l.unref&&l.unref()}return s};this.getRemainingTTL=s=>{let l=A(this,ve).get(s);if(l===void 0)return 0;let d=t[l],f=n[l];if(!d||!f)return 1/0;let c=(u||a())-f;return d-c},re(this,nt,s=>{let l=n[s],d=t[s];return!!d&&!!l&&(u||a())-l>d})},sn=new WeakMap,Lt=new WeakMap,Dr=new WeakMap,nt=new WeakMap,dc=function(){let t=new pu(A(this,it));re(this,pt,0),re(this,bt,t),re(this,ln,n=>{re(this,pt,A(this,pt)-t[n]),t[n]=0}),re(this,Nr,(n,r,o,u)=>{if(Q(this,q,me).call(this,r))return 0;if(!Wt(o))if(u){if(typeof u!="function")throw new TypeError("sizeCalculation must be a function");if(o=u(r,n),!Wt(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}),re(this,Ln,(n,r,o)=>{if(t[n]=r,A(this,Qe)){let u=A(this,Qe)-t[n];for(;A(this,pt)>u;)Q(this,q,ju).call(this,!0)}re(this,pt,A(this,pt)+t[n]),o&&(o.entrySize=r,o.totalCalculatedSize=A(this,pt))})},ln=new WeakMap,Ln=new WeakMap,Nr=new WeakMap,Yt=function*({allowStale:t=this.allowStale}={}){if(A(this,Ee))for(let n=A(this,Ne);!(!Q(this,q,gi).call(this,n)||((t||!A(this,nt).call(this,n))&&(yield n),n===A(this,Re)));)n=A(this,Je)[n]},Kt=function*({allowStale:t=this.allowStale}={}){if(A(this,Ee))for(let n=A(this,Re);!(!Q(this,q,gi).call(this,n)||((t||!A(this,nt).call(this,n))&&(yield n),n===A(this,Ne)));)n=A(this,$e)[n]},gi=function(t){return t!==void 0&&A(this,ve).get(A(this,he)[t])===t},ju=function(t){var u,a,s;let n=A(this,Re),r=A(this,he)[n],o=A(this,ue)[n];return A(this,qt)&&Q(this,q,me).call(this,o)?o.__abortController.abort(new Error("evicted")):(A(this,wt)||A(this,Ue))&&(A(this,wt)&&((u=A(this,ft))==null||u.call(this,o,r,"evict")),A(this,Ue)&&((a=A(this,Te))==null||a.push([o,r,"evict"]))),A(this,ln).call(this,n),(s=A(this,tt))!=null&&s[n]&&(clearTimeout(A(this,tt)[n]),A(this,tt)[n]=void 0),t&&(A(this,he)[n]=void 0,A(this,ue)[n]=void 0,A(this,gt).push(n)),A(this,Ee)===1?(re(this,Re,re(this,Ne,0)),A(this,gt).length=0):re(this,Re,A(this,$e)[n]),A(this,ve).delete(r),zu(this,Ee)._--,n},Hu=function(t,n,r,o){let u=n===void 0?void 0:A(this,ue)[n];if(Q(this,q,me).call(this,u))return u;let a=new mu,{signal:s}=r;s==null||s.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});let l={signal:a.signal,options:r,context:o},d=(v,x=!1)=>{let{aborted:y}=a.signal,g=r.ignoreFetchAbort&&v!==void 0,b=r.ignoreFetchAbort||!!(r.allowStaleOnFetchAbort&&v!==void 0);if(r.status&&(y&&!x?(r.status.fetchAborted=!0,r.status.fetchError=a.signal.reason,g&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),y&&!g&&!x)return c(a.signal.reason,b);let w=p,k=A(this,ue)[n];return(k===p||g&&x&&k===void 0)&&(v===void 0?w.__staleWhileFetching!==void 0?A(this,ue)[n]=w.__staleWhileFetching:Q(this,q,Qt).call(this,t,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(t,v,l.options))),v},f=v=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=v),c(v,!1)),c=(v,x)=>{let{aborted:y}=a.signal,g=y&&r.allowStaleOnFetchAbort,b=g||r.allowStaleOnFetchRejection,w=b||r.noDeleteOnFetchRejection,k=p;if(A(this,ue)[n]===p&&(!w||!x&&k.__staleWhileFetching===void 0?Q(this,q,Qt).call(this,t,"fetch"):g||(A(this,ue)[n]=k.__staleWhileFetching)),b)return r.status&&k.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),k.__staleWhileFetching;if(k.__returned===k)throw v},h=(v,x)=>{var g;let y=(g=A(this,Tn))==null?void 0:g.call(this,t,u,l);y&&y instanceof Promise&&y.then(b=>v(b===void 0?void 0:b),x),a.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(v(void 0),r.allowStaleOnFetchAbort&&(v=b=>d(b,!0)))})};r.status&&(r.status.fetchDispatched=!0);let p=new Promise(h).then(d,f),m=Object.assign(p,{__abortController:a,__staleWhileFetching:u,__returned:void 0});return n===void 0?(this.set(t,m,{...l.options,status:void 0}),n=A(this,ve).get(t)):A(this,ue)[n]=m,m},me=function(t){if(!A(this,qt))return!1;let n=t;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof mu},bi=function(t,n){A(this,Je)[n]=t,A(this,$e)[t]=n},Or=function(t){t!==A(this,Ne)&&(t===A(this,Re)?re(this,Re,A(this,$e)[t]):Q(this,q,bi).call(this,A(this,Je)[t],A(this,$e)[t]),Q(this,q,bi).call(this,A(this,Ne),t),re(this,Ne,t))},Qt=function(t,n){var o,u,a,s,l,d;let r=!1;if(A(this,Ee)!==0){let f=A(this,ve).get(t);if(f!==void 0)if((o=A(this,tt))!=null&&o[f]&&(clearTimeout((u=A(this,tt))==null?void 0:u[f]),A(this,tt)[f]=void 0),r=!0,A(this,Ee)===1)Q(this,q,yi).call(this,n);else{A(this,ln).call(this,f);let c=A(this,ue)[f];if(Q(this,q,me).call(this,c)?c.__abortController.abort(new Error("deleted")):(A(this,wt)||A(this,Ue))&&(A(this,wt)&&((a=A(this,ft))==null||a.call(this,c,t,n)),A(this,Ue)&&((s=A(this,Te))==null||s.push([c,t,n]))),A(this,ve).delete(t),A(this,he)[f]=void 0,A(this,ue)[f]=void 0,f===A(this,Ne))re(this,Ne,A(this,Je)[f]);else if(f===A(this,Re))re(this,Re,A(this,$e)[f]);else{let h=A(this,Je)[f];A(this,$e)[h]=A(this,$e)[f];let p=A(this,$e)[f];A(this,Je)[p]=A(this,Je)[f]}zu(this,Ee)._--,A(this,gt).push(f)}}if(A(this,Ue)&&((l=A(this,Te))!=null&&l.length)){let f=A(this,Te),c;for(;c=f==null?void 0:f.shift();)(d=A(this,ht))==null||d.call(this,...c)}return r},yi=function(t){var n,r,o,u;for(let a of Q(this,q,Kt).call(this,{allowStale:!0})){let s=A(this,ue)[a];if(Q(this,q,me).call(this,s))s.__abortController.abort(new Error("deleted"));else{let l=A(this,he)[a];A(this,wt)&&((n=A(this,ft))==null||n.call(this,s,l,t)),A(this,Ue)&&((r=A(this,Te))==null||r.push([s,l,t]))}}if(A(this,ve).clear(),A(this,ue).fill(void 0),A(this,he).fill(void 0),A(this,et)&&A(this,yt)){A(this,et).fill(0),A(this,yt).fill(0);for(let a of A(this,tt)??[])a!==void 0&&clearTimeout(a);(o=A(this,tt))==null||o.fill(void 0)}if(A(this,bt)&&A(this,bt).fill(0),re(this,Re,0),re(this,Ne,0),A(this,gt).length=0,re(this,pt,0),re(this,Ee,0),A(this,Ue)&&A(this,Te)){let a=A(this,Te),s;for(;s=a==null?void 0:a.shift();)(u=A(this,ht))==null||u.call(this,...s)}},Vn);/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */var nn=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},gu=function(t){return t.tagName==="IMG"},Km=function(t){return NodeList.prototype.isPrototypeOf(t)},bu=function(t){return t&&t.nodeType===1},Bs=function(t){var n=t.currentSrc||t.src;return n.substr(-4).toLowerCase()===".svg"},zs=function(t){try{return Array.isArray(t)?t.filter(gu):Km(t)?[].slice.call(t).filter(gu):bu(t)?[t].filter(gu):typeof t=="string"?[].slice.call(document.querySelectorAll(t)).filter(gu):[]}catch{throw new TypeError(`The provided selector is invalid.
36
36
  Expects a CSS selector, a Node element, a NodeList or an array.
37
- See: https://github.com/francoischalifour/medium-zoom`)}},Qm=function(t){var n=document.createElement("div");return n.classList.add("medium-zoom-overlay"),n.style.background=t,n},Jm=function(t){var n=t.getBoundingClientRect(),r=n.top,o=n.left,u=n.width,a=n.height,s=t.cloneNode(),l=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+l+"px",s.style.left=o+d+"px",s.style.width=u+"px",s.style.height=a+"px",s.style.transform="",s},En=function(t,n){var r=nn({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},ep=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=window.Promise||function(H){function L(){}H(L,L)},o=function(H){var L=H.target;if(L===X){m();return}b.indexOf(L)!==-1&&v({target:L})},u=function(){if(!(k||!E.original)){var H=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(F-H)>S.scrollOffset&&setTimeout(m,150)}},a=function(H){var L=H.key||H.keyCode;(L==="Escape"||L==="Esc"||L===27)&&m()},s=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},L=H;if(H.background&&(X.style.background=H.background),H.container&&H.container instanceof Object&&(L.container=nn({},S.container,H.container)),H.template){var W=bu(H.template)?H.template:document.querySelector(H.template);L.template=W}return S=nn({},S,L),b.forEach(function(G){G.dispatchEvent(En("medium-zoom:update",{detail:{zoom:j}}))}),j},l=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(nn({},S,H))},d=function(){for(var H=arguments.length,L=Array(H),W=0;W<H;W++)L[W]=arguments[W];var G=L.reduce(function(T,C){return[].concat(T,Bs(C))},[]);return G.filter(function(T){return b.indexOf(T)===-1}).forEach(function(T){b.push(T),T.classList.add("medium-zoom-image")}),w.forEach(function(T){var C=T.type,D=T.listener,P=T.options;G.forEach(function(M){M.addEventListener(C,D,P)})}),j},f=function(){for(var H=arguments.length,L=Array(H),W=0;W<H;W++)L[W]=arguments[W];E.zoomed&&m();var G=L.length>0?L.reduce(function(T,C){return[].concat(T,Bs(C))},[]):b;return G.forEach(function(T){T.classList.remove("medium-zoom-image"),T.dispatchEvent(En("medium-zoom:detach",{detail:{zoom:j}}))}),b=b.filter(function(T){return G.indexOf(T)===-1}),j},c=function(H,L){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return b.forEach(function(G){G.addEventListener("medium-zoom:"+H,L,W)}),w.push({type:"medium-zoom:"+H,listener:L,options:W}),j},h=function(H,L){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return b.forEach(function(G){G.removeEventListener("medium-zoom:"+H,L,W)}),w=w.filter(function(G){return!(G.type==="medium-zoom:"+H&&G.listener.toString()===L.toString())}),j},p=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},L=H.target,W=function(){var T={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},C=void 0,D=void 0;if(S.container)if(S.container instanceof Object)T=nn({},T,S.container),C=T.width-T.left-T.right-S.margin*2,D=T.height-T.top-T.bottom-S.margin*2;else{var P=bu(S.container)?S.container:document.querySelector(S.container),M=P.getBoundingClientRect(),z=M.width,N=M.height,V=M.left,O=M.top;T=nn({},T,{width:z,height:N,left:V,top:O})}C=C||T.width-S.margin*2,D=D||T.height-S.margin*2;var I=E.zoomedHd||E.original,$=Ms(I)?C:I.naturalWidth||C,J=Ms(I)?D:I.naturalHeight||D,K=I.getBoundingClientRect(),Y=K.top,te=K.left,ae=K.width,be=K.height,Ae=Math.min(Math.max(ae,$),C)/ae,rt=Math.min(Math.max(be,J),D)/be,Oe=Math.min(Ae,rt),Tt=(-te+(C-ae)/2+S.margin+T.left)/Oe,Zt=(-Y+(D-be)/2+S.margin+T.top)/Oe,Vt="scale("+Oe+") translate3d("+Tt+"px, "+Zt+"px, 0)";E.zoomed.style.transform=Vt,E.zoomedHd&&(E.zoomedHd.style.transform=Vt)};return new r(function(G){if(L&&b.indexOf(L)===-1){G(j);return}var T=function z(){k=!1,E.zoomed.removeEventListener("transitionend",z),E.original.dispatchEvent(En("medium-zoom:opened",{detail:{zoom:j}})),G(j)};if(E.zoomed){G(j);return}if(L)E.original=L;else if(b.length>0){var C=b;E.original=C[0]}else{G(j);return}if(E.original.dispatchEvent(En("medium-zoom:open",{detail:{zoom:j}})),F=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,k=!0,E.zoomed=Jm(E.original),document.body.appendChild(X),S.template){var D=bu(S.template)?S.template:document.querySelector(S.template);E.template=document.createElement("div"),E.template.appendChild(D.content.cloneNode(!0)),document.body.appendChild(E.template)}if(E.original.parentElement&&E.original.parentElement.tagName==="PICTURE"&&E.original.currentSrc&&(E.zoomed.src=E.original.currentSrc),document.body.appendChild(E.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),E.original.classList.add("medium-zoom-image--hidden"),E.zoomed.classList.add("medium-zoom-image--opened"),E.zoomed.addEventListener("click",m),E.zoomed.addEventListener("transitionend",T),E.original.getAttribute("data-zoom-src")){E.zoomedHd=E.zoomed.cloneNode(),E.zoomedHd.removeAttribute("srcset"),E.zoomedHd.removeAttribute("sizes"),E.zoomedHd.removeAttribute("loading"),E.zoomedHd.src=E.zoomed.getAttribute("data-zoom-src"),E.zoomedHd.onerror=function(){clearInterval(P),console.warn("Unable to reach the zoom image target "+E.zoomedHd.src),E.zoomedHd=null,W()};var P=setInterval(function(){E.zoomedHd.complete&&(clearInterval(P),E.zoomedHd.classList.add("medium-zoom-image--opened"),E.zoomedHd.addEventListener("click",m),document.body.appendChild(E.zoomedHd),W())},10)}else if(E.original.hasAttribute("srcset")){E.zoomedHd=E.zoomed.cloneNode(),E.zoomedHd.removeAttribute("sizes"),E.zoomedHd.removeAttribute("loading");var M=E.zoomedHd.addEventListener("load",function(){E.zoomedHd.removeEventListener("load",M),E.zoomedHd.classList.add("medium-zoom-image--opened"),E.zoomedHd.addEventListener("click",m),document.body.appendChild(E.zoomedHd),W()})}else W()})},m=function(){return new r(function(H){if(k||!E.original){H(j);return}var L=function W(){E.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(E.zoomed),E.zoomedHd&&document.body.removeChild(E.zoomedHd),document.body.removeChild(X),E.zoomed.classList.remove("medium-zoom-image--opened"),E.template&&document.body.removeChild(E.template),k=!1,E.zoomed.removeEventListener("transitionend",W),E.original.dispatchEvent(En("medium-zoom:closed",{detail:{zoom:j}})),E.original=null,E.zoomed=null,E.zoomedHd=null,E.template=null,H(j)};k=!0,document.body.classList.remove("medium-zoom--opened"),E.zoomed.style.transform="",E.zoomedHd&&(E.zoomedHd.style.transform=""),E.template&&(E.template.style.transition="opacity 150ms",E.template.style.opacity=0),E.original.dispatchEvent(En("medium-zoom:close",{detail:{zoom:j}})),E.zoomed.addEventListener("transitionend",L)})},v=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},L=H.target;return E.original?m():p({target:L})},x=function(){return S},y=function(){return b},g=function(){return E.original},b=[],w=[],k=!1,F=0,S=n,E={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?S=t:(t||typeof t=="string")&&d(t),S=nn({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},S);var X=Qm(S.background);document.addEventListener("click",o),document.addEventListener("keyup",a),document.addEventListener("scroll",u),window.addEventListener("resize",m);var j={open:p,close:m,toggle:v,update:s,clone:l,attach:d,detach:f,on:c,off:h,getOptions:x,getImages:y,getZoomedImage:g};return j};function tp(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 np=".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}";tp(np);const Gt={hljs:`${Z}-hljs`,hlcss:`${Z}-hlCss`,mermaidM:`${Z}-mermaid-m`,mermaid:`${Z}-mermaid`,katexjs:`${Z}-katex`,katexcss:`${Z}-katexCss`,echarts:`${Z}-echarts`},rp=(e,{editorId:t,rootRef:n,setting:r})=>{const o=dt.editorExtensions.highlight,u=dt.editorExtensionsAttrs.highlight;i.provide("editorId",t),i.provide("rootRef",n),i.provide("theme",i.computed(()=>e.theme)),i.provide("language",i.computed(()=>e.language)),i.provide("highlight",i.computed(()=>{const{js:s}=o,l={...zo,...o.css},{js:d,css:f={}}=u||{},c=e.codeStyleReverse&&e.codeStyleReverseList.includes(e.previewTheme)?"dark":e.theme,h=l[e.codeTheme]?l[e.codeTheme][c]:zo.atom[c],p=l[e.codeTheme]&&f[e.codeTheme]?f[e.codeTheme][c]:f.atom?f.atom[c]:{};return{js:{src:s,...d},css:{href:h,...p}}})),i.provide("showCodeRowNumber",e.showCodeRowNumber);const a=i.computed(()=>{const s={...Ds,...dt.editorConfig.languageUserDefined};return Mo(cr(Ds["en-US"]),s[e.language]||{})});return i.provide("usedLanguageText",a),i.provide("previewTheme",i.computed(()=>e.previewTheme)),i.provide("customIcon",i.computed(()=>e.customIcon)),i.provide("setting",i.computed(()=>r?{...r}:{preview:!0,htmlPreview:!1,previewOnly:!1,pageFullscreen:!1,fullscreen:!1})),{editorId:t}},up=e=>{const t=i.useId();return e.id||e.editorId||`${Z}-${t}`},op=(e,t,n)=>{const r=i.inject("editorId"),o=i.inject("rootRef"),u=i.inject("usedLanguageText"),a=i.inject("setting"),s=()=>{o.value.querySelectorAll(`#${r} .${Z}-preview .${Z}-code`).forEach(f=>{let c=-1;const h=f.querySelector(`.${Z}-copy-button:not([data-processed])`);h&&(h.onclick=p=>{p.preventDefault(),clearTimeout(c);const m=(f.querySelector("input:checked + pre code")||f.querySelector("pre code")).textContent,{text:v,successTips:x,failTips:y}=u.value.copyCode;let g=x;Ts(e.formatCopiedText(m||"")).catch(()=>{g=y}).finally(()=>{h.dataset.isIcon?h.dataset.tips=g:h.innerHTML=g,c=window.setTimeout(()=>{h.dataset.isIcon?h.dataset.tips=v:h.innerHTML=v},1500)})},h.setAttribute("data-processed","true"))})},l=()=>{i.nextTick(s)},d=f=>{f&&i.nextTick(s)};i.watch([t,n],l),i.watch(()=>a.value.preview,d),i.watch(()=>a.value.htmlPreview,d),i.onMounted(s)},ip=e=>{const t=i.inject("editorId"),n=i.inject("theme"),r=i.inject("rootRef"),{editorExtensions:o,editorExtensionsAttrs:u}=dt;let a=o.echarts.instance;const s=i.shallowRef(-1),l=()=>{!e.noEcharts&&a&&(s.value=s.value+1)};i.watch(()=>n.value,()=>{l()}),i.onMounted(()=>{var v;if(e.noEcharts||a)return;const m=o.echarts.js;Ut("script",{...(v=u.echarts)==null?void 0:v.js,src:m,id:Gt.echarts,onload(){a=window.echarts,l()}},"echarts")});let d=[],f=[],c=[];const h=(m=!1)=>{if(!d.length){m&&(f.forEach(g=>{var b;(b=g.dispose)==null||b.call(g)}),c.forEach(g=>{var b;(b=g.disconnect)==null||b.call(g)}),f=[],c=[]);return}const v=[],x=[],y=[];d.forEach((g,b)=>{var F,S;const w=f[b],k=c[b];if(m||!g||!g.isConnected||r!=null&&r.value&&!r.value.contains(g)){(F=w==null?void 0:w.dispose)==null||F.call(w),(S=k==null?void 0:k.disconnect)==null||S.call(k);return}v.push(g),w&&x.push(w),k&&y.push(k)}),d=v,f=x,c=y},p=()=>{h(),!e.noEcharts&&a&&Array.from(r.value.querySelectorAll(`#${t} div.${Z}-echarts:not([data-processed])`)).forEach(m=>{if(m.dataset.closed==="false")return!1;try{const v=new Function(`return ${m.innerText}`)(),x=a.init(m,n.value);x.setOption(v),m.setAttribute("data-processed",""),d.push(m),f.push(x);const y=new ResizeObserver(()=>{x.resize()});y.observe(m),c.push(y)}catch(v){ot.emit(t,jo,{name:"echarts",message:v==null?void 0:v.message,error:v})}})};return i.onBeforeUnmount(()=>{h(!0)}),{reRenderEcharts:s,replaceEcharts:p}},ap=e=>{const t=i.inject("highlight"),n=i.shallowRef(dt.editorExtensions.highlight.instance);return i.onMounted(()=>{e.noHighlight||n.value||(Ut("link",{...t.value.css,rel:"stylesheet",id:Gt.hlcss}),Ut("script",{...t.value.js,id:Gt.hljs,onload(){n.value=window.hljs}},"hljs"))}),i.watch(()=>t.value.css,()=>{e.noHighlight||dt.editorExtensions.highlight.instance||Vm("link",{...t.value.css,rel:"stylesheet",id:Gt.hlcss})}),n},sp=e=>{const t=i.shallowRef(dt.editorExtensions.katex.instance);return i.onMounted(()=>{var o,u;if(e.noKatex||t.value)return;const{editorExtensions:n,editorExtensionsAttrs:r}=dt;Ut("script",{...(o=r.katex)==null?void 0:o.js,src:n.katex.js,id:Gt.katexjs,onload(){t.value=window.katex}},"katex"),Ut("link",{...(u=r.katex)==null?void 0:u.css,rel:"stylesheet",href:n.katex.css,id:Gt.katexcss})}),t},yu=new Ym({max:1e3,ttl:6e5}),lp=e=>{const t=i.inject("editorId"),n=i.inject("theme"),r=i.inject("rootRef"),{editorExtensions:o,editorExtensionsAttrs:u,mermaidConfig:a}=dt;let s=o.mermaid.instance;const l=i.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(a(f)),l.value=l.value+1}};return i.watch(()=>n.value,()=>{yu.clear(),d()}),i.onMounted(()=>{var c,h;if(e.noMermaid||s)return;const f=o.mermaid.js;/\.mjs/.test(f)?(Ut("link",{...(c=u.mermaid)==null?void 0:c.js,rel:"modulepreload",href:f,id:Gt.mermaidM}),import(f).then(p=>{s=p.default,d()}).catch(p=>{ot.emit(t,jo,{name:"mermaid",message:`Failed to load mermaid module: ${p.message}`,error:p})})):Ut("script",{...(h=u.mermaid)==null?void 0:h.js,src:f,id:Gt.mermaid,onload(){s=window.mermaid,d()}},"mermaid")}),{reRenderRef:l,replaceMermaid:async()=>{if(!e.noMermaid&&s){const f=r.value.querySelectorAll(`div.${Z}-mermaid`),c=document.createElement("div"),h=document.body.offsetWidth>1366?document.body.offsetWidth:1366,p=document.body.offsetHeight>768?document.body.offsetHeight:768;c.style.width=h+"px",c.style.height=p+"px",c.style.position="fixed",c.style.zIndex="-10000",c.style.top="-10000";let m=f.length;m>0&&document.body.appendChild(c),await Promise.allSettled(Array.from(f).map(v=>(async x=>{var b;if(x.dataset.closed==="false")return!1;const y=x.innerText;let g=yu.get(y);if(!g){const w=Ro();let k={svg:""};try{k=await s.render(w,y,c),g=await e.sanitizeMermaid(k.svg);const F=document.createElement("p");F.className=`${Z}-mermaid`,F.setAttribute("data-processed",""),F.setAttribute("data-content",y),F.innerHTML=g,(b=F.children[0])==null||b.removeAttribute("height"),yu.set(y,F.innerHTML),x.dataset.line!==void 0&&(F.dataset.line=x.dataset.line),x.replaceWith(F)}catch(F){ot.emit(t,jo,{name:"mermaid",message:F.message,error:F})}--m===0&&c.remove()}})(v)))}}}},cp=(e,t)=>{t=t||{};const n=3,r=t.marker||"!",o=r.charCodeAt(0),u=r.length;let a="",s="";const l=(f,c,h,p,m)=>{const v=f[c];return v.type==="admonition_open"?f[c].attrPush(["class",`${Z}-admonition ${Z}-admonition-${v.info}`]):v.type==="admonition_title_open"&&f[c].attrPush(["class",`${Z}-admonition-title`]),m.renderToken(f,c,h)},d=f=>{const c=f.trim().split(" ",2);s="",a=c[0],c.length>1&&(s=f.substring(a.length+2))};e.block.ruler.before("code","admonition",(f,c,h,p)=>{let m,v,x,y=!1,g=f.bMarks[c]+f.tShift[c],b=f.eMarks[c];if(o!==f.src.charCodeAt(g))return!1;for(m=g+1;m<=b&&r[(m-g)%u]===f.src[m];m++);const w=Math.floor((m-g)/u);if(w!==n)return!1;m-=(m-g)%u;const k=f.src.slice(g,m),F=f.src.slice(m,b);if(d(F),p)return!0;for(v=c;v++,!(v>=h||(g=f.bMarks[v]+f.tShift[v],b=f.eMarks[v],g<b&&f.sCount[v]<f.blkIndent));)if(o===f.src.charCodeAt(g)&&!(f.sCount[v]-f.blkIndent>=4)){for(m=g+1;m<=b&&r[(m-g)%u]===f.src[m];m++);if(!(Math.floor((m-g)/u)<w)&&(m-=(m-g)%u,m=f.skipSpaces(m),!(m<b))){y=!0;break}}const S=f.parentType,E=f.lineMax;return f.parentType="root",f.lineMax=v,x=f.push("admonition_open","div",1),x.markup=k,x.block=!0,x.info=a,x.map=[c,v],s&&(x=f.push("admonition_title_open","p",1),x.markup=k+" "+a,x.map=[c,v],x=f.push("inline","",0),x.content=s,x.map=[c,f.line-1],x.children=[],x=f.push("admonition_title_close","p",-1),x.markup=k+" "+a),f.md.block.tokenize(f,c+1,v),x=f.push("admonition_close","div",-1),x.markup=f.src.slice(g,m),x.block=!0,f.parentType=S,f.lineMax=E,f.line=v+(y?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.admonition_open=l,e.renderer.rules.admonition_title_open=l,e.renderer.rules.admonition_title_close=l,e.renderer.rules.admonition_close=l},Uo=(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},dp=(e,t)=>{const n=e.renderer.rules.fence,r=e.utils.unescapeAll,o=/\[(\w*)(?::([\w ]*))?\]/,u=/::(open|close)/,a=c=>c.info?r(c.info).trim():"",s=c=>{const h=a(c),[p=null,m=""]=(o.exec(h)||[]).slice(1);return[p,m]},l=c=>{const h=a(c);return h?h.split(/(\s+)/g)[0]:""},d=c=>{const h=c.info.match(u)||[],p=h[1]==="open"||h[1]!=="close"&&t.codeFoldable&&c.content.trim().split(`
38
- `).length<t.autoFoldThreshold,m=h[1]||t.codeFoldable?"details":"div",v=h[1]||t.codeFoldable?"summary":"div";return{open:p,tagContainer:m,tagHeader:v}},f=(c,h,p,m,v)=>{var C;if(c[h].hidden)return"";const x=(C=t.usedLanguageTextRef.value)==null?void 0:C.copyCode.text,y=t.customIconRef.value.copy||x,g=!!t.customIconRef.value.copy,b=`<span class="${Z}-collapse-tips">${Dt("collapse-tips",t.customIconRef.value)}</span>`,[w]=s(c[h]);if(w===null){const{open:D,tagContainer:P,tagHeader:M}=d(c[h]),z=[["class",`${Z}-code`]];D&&z.push(["open",""]);const N={attrs:Uo(c[h],z)};c[h].info=c[h].info.replace(u,"");const V=n(c,h,p,m,v);return`
39
- <${P} ${v.renderAttrs(N)}>
37
+ See: https://github.com/francoischalifour/medium-zoom`)}},Qm=function(t){var n=document.createElement("div");return n.classList.add("medium-zoom-overlay"),n.style.background=t,n},Jm=function(t){var n=t.getBoundingClientRect(),r=n.top,o=n.left,u=n.width,a=n.height,s=t.cloneNode(),l=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+l+"px",s.style.left=o+d+"px",s.style.width=u+"px",s.style.height=a+"px",s.style.transform="",s},En=function(t,n){var r=nn({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},ep=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=window.Promise||function(H){function L(){}H(L,L)},o=function(H){var L=H.target;if(L===X){m();return}b.indexOf(L)!==-1&&v({target:L})},u=function(){if(!(k||!E.original)){var H=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(D-H)>S.scrollOffset&&setTimeout(m,150)}},a=function(H){var L=H.key||H.keyCode;(L==="Escape"||L==="Esc"||L===27)&&m()},s=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},L=H;if(H.background&&(X.style.background=H.background),H.container&&H.container instanceof Object&&(L.container=nn({},S.container,H.container)),H.template){var W=bu(H.template)?H.template:document.querySelector(H.template);L.template=W}return S=nn({},S,L),b.forEach(function(G){G.dispatchEvent(En("medium-zoom:update",{detail:{zoom:j}}))}),j},l=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(nn({},S,H))},d=function(){for(var H=arguments.length,L=Array(H),W=0;W<H;W++)L[W]=arguments[W];var G=L.reduce(function(N,C){return[].concat(N,zs(C))},[]);return G.filter(function(N){return b.indexOf(N)===-1}).forEach(function(N){b.push(N),N.classList.add("medium-zoom-image")}),w.forEach(function(N){var C=N.type,F=N.listener,P=N.options;G.forEach(function(M){M.addEventListener(C,F,P)})}),j},f=function(){for(var H=arguments.length,L=Array(H),W=0;W<H;W++)L[W]=arguments[W];E.zoomed&&m();var G=L.length>0?L.reduce(function(N,C){return[].concat(N,zs(C))},[]):b;return G.forEach(function(N){N.classList.remove("medium-zoom-image"),N.dispatchEvent(En("medium-zoom:detach",{detail:{zoom:j}}))}),b=b.filter(function(N){return G.indexOf(N)===-1}),j},c=function(H,L){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return b.forEach(function(G){G.addEventListener("medium-zoom:"+H,L,W)}),w.push({type:"medium-zoom:"+H,listener:L,options:W}),j},h=function(H,L){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return b.forEach(function(G){G.removeEventListener("medium-zoom:"+H,L,W)}),w=w.filter(function(G){return!(G.type==="medium-zoom:"+H&&G.listener.toString()===L.toString())}),j},p=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},L=H.target,W=function(){var N={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},C=void 0,F=void 0;if(S.container)if(S.container instanceof Object)N=nn({},N,S.container),C=N.width-N.left-N.right-S.margin*2,F=N.height-N.top-N.bottom-S.margin*2;else{var P=bu(S.container)?S.container:document.querySelector(S.container),M=P.getBoundingClientRect(),z=M.width,T=M.height,V=M.left,O=M.top;N=nn({},N,{width:z,height:T,left:V,top:O})}C=C||N.width-S.margin*2,F=F||N.height-S.margin*2;var I=E.zoomedHd||E.original,$=Bs(I)?C:I.naturalWidth||C,J=Bs(I)?F:I.naturalHeight||F,K=I.getBoundingClientRect(),Y=K.top,te=K.left,ae=K.width,be=K.height,Ae=Math.min(Math.max(ae,$),C)/ae,rt=Math.min(Math.max(be,J),F)/be,Oe=Math.min(Ae,rt),Nt=(-te+(C-ae)/2+S.margin+N.left)/Oe,Zt=(-Y+(F-be)/2+S.margin+N.top)/Oe,Vt="scale("+Oe+") translate3d("+Nt+"px, "+Zt+"px, 0)";E.zoomed.style.transform=Vt,E.zoomedHd&&(E.zoomedHd.style.transform=Vt)};return new r(function(G){if(L&&b.indexOf(L)===-1){G(j);return}var N=function z(){k=!1,E.zoomed.removeEventListener("transitionend",z),E.original.dispatchEvent(En("medium-zoom:opened",{detail:{zoom:j}})),G(j)};if(E.zoomed){G(j);return}if(L)E.original=L;else if(b.length>0){var C=b;E.original=C[0]}else{G(j);return}if(E.original.dispatchEvent(En("medium-zoom:open",{detail:{zoom:j}})),D=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,k=!0,E.zoomed=Jm(E.original),document.body.appendChild(X),S.template){var F=bu(S.template)?S.template:document.querySelector(S.template);E.template=document.createElement("div"),E.template.appendChild(F.content.cloneNode(!0)),document.body.appendChild(E.template)}if(E.original.parentElement&&E.original.parentElement.tagName==="PICTURE"&&E.original.currentSrc&&(E.zoomed.src=E.original.currentSrc),document.body.appendChild(E.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),E.original.classList.add("medium-zoom-image--hidden"),E.zoomed.classList.add("medium-zoom-image--opened"),E.zoomed.addEventListener("click",m),E.zoomed.addEventListener("transitionend",N),E.original.getAttribute("data-zoom-src")){E.zoomedHd=E.zoomed.cloneNode(),E.zoomedHd.removeAttribute("srcset"),E.zoomedHd.removeAttribute("sizes"),E.zoomedHd.removeAttribute("loading"),E.zoomedHd.src=E.zoomed.getAttribute("data-zoom-src"),E.zoomedHd.onerror=function(){clearInterval(P),console.warn("Unable to reach the zoom image target "+E.zoomedHd.src),E.zoomedHd=null,W()};var P=setInterval(function(){E.zoomedHd.complete&&(clearInterval(P),E.zoomedHd.classList.add("medium-zoom-image--opened"),E.zoomedHd.addEventListener("click",m),document.body.appendChild(E.zoomedHd),W())},10)}else if(E.original.hasAttribute("srcset")){E.zoomedHd=E.zoomed.cloneNode(),E.zoomedHd.removeAttribute("sizes"),E.zoomedHd.removeAttribute("loading");var M=E.zoomedHd.addEventListener("load",function(){E.zoomedHd.removeEventListener("load",M),E.zoomedHd.classList.add("medium-zoom-image--opened"),E.zoomedHd.addEventListener("click",m),document.body.appendChild(E.zoomedHd),W()})}else W()})},m=function(){return new r(function(H){if(k||!E.original){H(j);return}var L=function W(){E.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(E.zoomed),E.zoomedHd&&document.body.removeChild(E.zoomedHd),document.body.removeChild(X),E.zoomed.classList.remove("medium-zoom-image--opened"),E.template&&document.body.removeChild(E.template),k=!1,E.zoomed.removeEventListener("transitionend",W),E.original.dispatchEvent(En("medium-zoom:closed",{detail:{zoom:j}})),E.original=null,E.zoomed=null,E.zoomedHd=null,E.template=null,H(j)};k=!0,document.body.classList.remove("medium-zoom--opened"),E.zoomed.style.transform="",E.zoomedHd&&(E.zoomedHd.style.transform=""),E.template&&(E.template.style.transition="opacity 150ms",E.template.style.opacity=0),E.original.dispatchEvent(En("medium-zoom:close",{detail:{zoom:j}})),E.zoomed.addEventListener("transitionend",L)})},v=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},L=H.target;return E.original?m():p({target:L})},x=function(){return S},y=function(){return b},g=function(){return E.original},b=[],w=[],k=!1,D=0,S=n,E={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?S=t:(t||typeof t=="string")&&d(t),S=nn({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},S);var X=Qm(S.background);document.addEventListener("click",o),document.addEventListener("keyup",a),document.addEventListener("scroll",u),window.addEventListener("resize",m);var j={open:p,close:m,toggle:v,update:s,clone:l,attach:d,detach:f,on:c,off:h,getOptions:x,getImages:y,getZoomedImage:g};return j};function tp(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 np=".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}";tp(np);const Gt={hljs:`${Z}-hljs`,hlcss:`${Z}-hlCss`,mermaidM:`${Z}-mermaid-m`,mermaid:`${Z}-mermaid`,katexjs:`${Z}-katex`,katexcss:`${Z}-katexCss`,echarts:`${Z}-echarts`},rp=(e,{editorId:t,rootRef:n,setting:r})=>{const o=dt.editorExtensions.highlight,u=dt.editorExtensionsAttrs.highlight;i.provide("editorId",t),i.provide("rootRef",n),i.provide("theme",i.computed(()=>e.theme)),i.provide("language",i.computed(()=>e.language)),i.provide("highlight",i.computed(()=>{const{js:s}=o,l={...zo,...o.css},{js:d,css:f={}}=u||{},c=e.codeStyleReverse&&e.codeStyleReverseList.includes(e.previewTheme)?"dark":e.theme,h=l[e.codeTheme]?l[e.codeTheme][c]:zo.atom[c],p=l[e.codeTheme]&&f[e.codeTheme]?f[e.codeTheme][c]:f.atom?f.atom[c]:{};return{js:{src:s,...d},css:{href:h,...p}}})),i.provide("showCodeRowNumber",e.showCodeRowNumber);const a=i.computed(()=>{const s={...Ds,...dt.editorConfig.languageUserDefined};return Mo(cr(Ds["en-US"]),s[e.language]||{})});return i.provide("usedLanguageText",a),i.provide("previewTheme",i.computed(()=>e.previewTheme)),i.provide("customIcon",i.computed(()=>e.customIcon)),i.provide("setting",i.computed(()=>r?{...r}:{preview:!0,htmlPreview:!1,previewOnly:!1,pageFullscreen:!1,fullscreen:!1})),{editorId:t}},up=e=>{const t=i.useId();return e.id||e.editorId||`${Z}-${t}`},op=(e,t,n)=>{const r=i.inject("editorId"),o=i.inject("rootRef"),u=i.inject("usedLanguageText"),a=i.inject("setting"),s=()=>{o.value.querySelectorAll(`#${r} .${Z}-preview .${Z}-code`).forEach(f=>{let c=-1;const h=f.querySelector(`.${Z}-copy-button:not([data-processed])`);h&&(h.onclick=p=>{p.preventDefault(),clearTimeout(c);const m=(f.querySelector("input:checked + pre code")||f.querySelector("pre code")).textContent,{text:v,successTips:x,failTips:y}=u.value.copyCode;let g=x;Ts(e.formatCopiedText(m||"")).catch(()=>{g=y}).finally(()=>{h.dataset.isIcon?h.dataset.tips=g:h.innerHTML=g,c=window.setTimeout(()=>{h.dataset.isIcon?h.dataset.tips=v:h.innerHTML=v},1500)})},h.setAttribute("data-processed","true"))})},l=()=>{i.nextTick(s)},d=f=>{f&&i.nextTick(s)};i.watch([t,n],l),i.watch(()=>a.value.preview,d),i.watch(()=>a.value.htmlPreview,d),i.onMounted(s)},ip=e=>{const t=i.inject("editorId"),n=i.inject("theme"),r=i.inject("rootRef"),{editorExtensions:o,editorExtensionsAttrs:u}=dt;let a=o.echarts.instance;const s=i.shallowRef(-1),l=()=>{!e.noEcharts&&a&&(s.value=s.value+1)};i.watch(()=>n.value,()=>{l()}),i.onMounted(()=>{var v;if(e.noEcharts||a)return;const m=o.echarts.js;Ut("script",{...(v=u.echarts)==null?void 0:v.js,src:m,id:Gt.echarts,onload(){a=window.echarts,l()}},"echarts")});let d=[],f=[],c=[];const h=(m=!1)=>{if(!d.length){m&&(f.forEach(g=>{var b;(b=g.dispose)==null||b.call(g)}),c.forEach(g=>{var b;(b=g.disconnect)==null||b.call(g)}),f=[],c=[]);return}const v=[],x=[],y=[];d.forEach((g,b)=>{var D,S;const w=f[b],k=c[b];if(m||!g||!g.isConnected||r!=null&&r.value&&!r.value.contains(g)){(D=w==null?void 0:w.dispose)==null||D.call(w),(S=k==null?void 0:k.disconnect)==null||S.call(k);return}v.push(g),w&&x.push(w),k&&y.push(k)}),d=v,f=x,c=y},p=()=>{h(),!e.noEcharts&&a&&Array.from(r.value.querySelectorAll(`#${t} div.${Z}-echarts:not([data-processed])`)).forEach(m=>{if(m.dataset.closed==="false")return!1;try{const v=new Function(`return ${m.innerText}`)(),x=a.init(m,n.value);x.setOption(v),m.setAttribute("data-processed",""),d.push(m),f.push(x);const y=new ResizeObserver(()=>{x.resize()});y.observe(m),c.push(y)}catch(v){ot.emit(t,jo,{name:"echarts",message:v==null?void 0:v.message,error:v})}})};return i.onBeforeUnmount(()=>{h(!0)}),{reRenderEcharts:s,replaceEcharts:p}},ap=e=>{const t=i.inject("highlight"),n=i.shallowRef(dt.editorExtensions.highlight.instance);return i.onMounted(()=>{e.noHighlight||n.value||(Ut("link",{...t.value.css,rel:"stylesheet",id:Gt.hlcss}),Ut("script",{...t.value.js,id:Gt.hljs,onload(){n.value=window.hljs}},"hljs"))}),i.watch(()=>t.value.css,()=>{e.noHighlight||dt.editorExtensions.highlight.instance||Vm("link",{...t.value.css,rel:"stylesheet",id:Gt.hlcss})}),n},sp=e=>{const t=i.shallowRef(dt.editorExtensions.katex.instance);return i.onMounted(()=>{var o,u;if(e.noKatex||t.value)return;const{editorExtensions:n,editorExtensionsAttrs:r}=dt;Ut("script",{...(o=r.katex)==null?void 0:o.js,src:n.katex.js,id:Gt.katexjs,onload(){t.value=window.katex}},"katex"),Ut("link",{...(u=r.katex)==null?void 0:u.css,rel:"stylesheet",href:n.katex.css,id:Gt.katexcss})}),t},yu=new Ym({max:1e3,ttl:6e5}),lp=e=>{const t=i.inject("editorId"),n=i.inject("theme"),r=i.inject("rootRef"),{editorExtensions:o,editorExtensionsAttrs:u,mermaidConfig:a}=dt;let s=o.mermaid.instance;const l=i.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(a(f)),l.value=l.value+1}};return i.watch(()=>n.value,()=>{yu.clear(),d()}),i.onMounted(()=>{var c,h;if(e.noMermaid||s)return;const f=o.mermaid.js;/\.mjs/.test(f)?(Ut("link",{...(c=u.mermaid)==null?void 0:c.js,rel:"modulepreload",href:f,id:Gt.mermaidM}),import(f).then(p=>{s=p.default,d()}).catch(p=>{ot.emit(t,jo,{name:"mermaid",message:`Failed to load mermaid module: ${p.message}`,error:p})})):Ut("script",{...(h=u.mermaid)==null?void 0:h.js,src:f,id:Gt.mermaid,onload(){s=window.mermaid,d()}},"mermaid")}),{reRenderRef:l,replaceMermaid:async()=>{if(!e.noMermaid&&s){const f=r.value.querySelectorAll(`div.${Z}-mermaid`),c=document.createElement("div"),h=document.body.offsetWidth>1366?document.body.offsetWidth:1366,p=document.body.offsetHeight>768?document.body.offsetHeight:768;c.style.width=h+"px",c.style.height=p+"px",c.style.position="fixed",c.style.zIndex="-10000",c.style.top="-10000";let m=f.length;m>0&&document.body.appendChild(c),await Promise.allSettled(Array.from(f).map(v=>(async x=>{var b;if(x.dataset.closed==="false")return!1;const y=x.innerText;let g=yu.get(y);if(!g){const w=Ro();let k={svg:""};try{k=await s.render(w,y,c),g=await e.sanitizeMermaid(k.svg);const D=document.createElement("p");D.className=`${Z}-mermaid`,D.setAttribute("data-processed",""),D.setAttribute("data-content",y),D.innerHTML=g,(b=D.children[0])==null||b.removeAttribute("height"),yu.set(y,D.innerHTML),x.dataset.line!==void 0&&(D.dataset.line=x.dataset.line),x.replaceWith(D)}catch(D){ot.emit(t,jo,{name:"mermaid",message:D.message,error:D})}--m===0&&c.remove()}})(v)))}}}},cp=(e,t)=>{t=t||{};const n=3,r=t.marker||"!",o=r.charCodeAt(0),u=r.length;let a="",s="";const l=(f,c,h,p,m)=>{const v=f[c];return v.type==="admonition_open"?f[c].attrPush(["class",`${Z}-admonition ${Z}-admonition-${v.info}`]):v.type==="admonition_title_open"&&f[c].attrPush(["class",`${Z}-admonition-title`]),m.renderToken(f,c,h)},d=f=>{const c=f.trim().split(" ",2);s="",a=c[0],c.length>1&&(s=f.substring(a.length+2))};e.block.ruler.before("code","admonition",(f,c,h,p)=>{let m,v,x,y=!1,g=f.bMarks[c]+f.tShift[c],b=f.eMarks[c];if(o!==f.src.charCodeAt(g))return!1;for(m=g+1;m<=b&&r[(m-g)%u]===f.src[m];m++);const w=Math.floor((m-g)/u);if(w!==n)return!1;m-=(m-g)%u;const k=f.src.slice(g,m),D=f.src.slice(m,b);if(d(D),p)return!0;for(v=c;v++,!(v>=h||(g=f.bMarks[v]+f.tShift[v],b=f.eMarks[v],g<b&&f.sCount[v]<f.blkIndent));)if(o===f.src.charCodeAt(g)&&!(f.sCount[v]-f.blkIndent>=4)){for(m=g+1;m<=b&&r[(m-g)%u]===f.src[m];m++);if(!(Math.floor((m-g)/u)<w)&&(m-=(m-g)%u,m=f.skipSpaces(m),!(m<b))){y=!0;break}}const S=f.parentType,E=f.lineMax;return f.parentType="root",f.lineMax=v,x=f.push("admonition_open","div",1),x.markup=k,x.block=!0,x.info=a,x.map=[c,v],s&&(x=f.push("admonition_title_open","p",1),x.markup=k+" "+a,x.map=[c,v],x=f.push("inline","",0),x.content=s,x.map=[c,f.line-1],x.children=[],x=f.push("admonition_title_close","p",-1),x.markup=k+" "+a),f.md.block.tokenize(f,c+1,v),x=f.push("admonition_close","div",-1),x.markup=f.src.slice(g,m),x.block=!0,f.parentType=S,f.lineMax=E,f.line=v+(y?1:0),!0},{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.admonition_open=l,e.renderer.rules.admonition_title_open=l,e.renderer.rules.admonition_title_close=l,e.renderer.rules.admonition_close=l},Uo=(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},dp=(e,t)=>{const n=e.renderer.rules.fence,r=e.utils.unescapeAll,o=/\[(\w*)(?::([\w ]*))?\]/,u=/::(open|close)/,a=c=>c.info?r(c.info).trim():"",s=c=>{const h=a(c),[p=null,m=""]=(o.exec(h)||[]).slice(1);return[p,m]},l=c=>{const h=a(c);return h?h.split(/(\s+)/g)[0]:""},d=c=>{const h=c.info.match(u)||[],p=h[1]==="open"||h[1]!=="close"&&t.codeFoldable&&c.content.trim().split(`
38
+ `).length<t.autoFoldThreshold,m=h[1]||t.codeFoldable?"details":"div",v=h[1]||t.codeFoldable?"summary":"div";return{open:p,tagContainer:m,tagHeader:v}},f=(c,h,p,m,v)=>{var C;if(c[h].hidden)return"";const x=(C=t.usedLanguageTextRef.value)==null?void 0:C.copyCode.text,y=t.customIconRef.value.copy||x,g=!!t.customIconRef.value.copy,b=`<span class="${Z}-collapse-tips">${Ft("collapse-tips",t.customIconRef.value)}</span>`,[w]=s(c[h]);if(w===null){const{open:F,tagContainer:P,tagHeader:M}=d(c[h]),z=[["class",`${Z}-code`]];F&&z.push(["open",""]);const T={attrs:Uo(c[h],z)};c[h].info=c[h].info.replace(u,"");const V=n(c,h,p,m,v);return`
39
+ <${P} ${v.renderAttrs(T)}>
40
40
  <${M} class="${Z}-code-head">
41
41
  <div class="${Z}-code-flag"><span></span><span></span><span></span></div>
42
42
  <div class="${Z}-code-action">
@@ -48,17 +48,17 @@ See: https://github.com/francoischalifour/medium-zoom`)}},Qm=function(t){var n=d
48
48
  </${M}>
49
49
  ${V}
50
50
  </${P}>
51
- `}let k,F,S,E,X="",j="",B="";const{open:H,tagContainer:L,tagHeader:W}=d(c[h]),G=[["class",`${Z}-code`]];H&&G.push(["open",""]);const T={attrs:Uo(c[h],G)};for(let D=h;D<c.length&&(k=c[D],[F,S]=s(k),F===w);D++){k.info=k.info.replace(o,"").replace(u,""),k.hidden=!0;const P=`${Z}-codetab-${t.editorId}-${h}-${D-h}`;E=D-h>0?"":"checked",X+=`
51
+ `}let k,D,S,E,X="",j="",B="";const{open:H,tagContainer:L,tagHeader:W}=d(c[h]),G=[["class",`${Z}-code`]];H&&G.push(["open",""]);const N={attrs:Uo(c[h],G)};for(let F=h;F<c.length&&(k=c[F],[D,S]=s(k),D===w);F++){k.info=k.info.replace(o,"").replace(u,""),k.hidden=!0;const P=`${Z}-codetab-${t.editorId}-${h}-${F-h}`;E=F-h>0?"":"checked",X+=`
52
52
  <li>
53
53
  <input
54
54
  type="radio"
55
- id="label-${Z}-codetab-label-1-${t.editorId}-${h}-${D-h}"
55
+ id="label-${Z}-codetab-label-1-${t.editorId}-${h}-${F-h}"
56
56
  name="${Z}-codetab-label-${t.editorId}-${h}"
57
57
  class="${P}"
58
58
  ${E}
59
59
  >
60
60
  <label
61
- for="label-${Z}-codetab-label-1-${t.editorId}-${h}-${D-h}"
61
+ for="label-${Z}-codetab-label-1-${t.editorId}-${h}-${F-h}"
62
62
  onclick="this.getRootNode().querySelectorAll('.${P}').forEach(e => e.click())"
63
63
  >
64
64
  ${e.utils.escapeHtml(S||l(k))}
@@ -71,7 +71,7 @@ See: https://github.com/francoischalifour/medium-zoom`)}},Qm=function(t){var n=d
71
71
  class="${P}"
72
72
  ${E}
73
73
  role="presentation">
74
- ${n(c,D,p,m,v)}
74
+ ${n(c,F,p,m,v)}
75
75
  </div>`,B+=`
76
76
  <input
77
77
  type="radio"
@@ -80,7 +80,7 @@ See: https://github.com/francoischalifour/medium-zoom`)}},Qm=function(t){var n=d
80
80
  ${E}
81
81
  role="presentation">
82
82
  <span class=${Z}-code-lang role="note">${e.utils.escapeHtml(l(k))}</span>`}return`
83
- <${L} ${v.renderAttrs(T)}>
83
+ <${L} ${v.renderAttrs(N)}>
84
84
  <${W} class="${Z}-code-head">
85
85
  <div class="${Z}-code-flag">
86
86
  <ul class="${Z}-codetab-label" role="tablist">${X}</ul>
@@ -94,12 +94,12 @@ See: https://github.com/francoischalifour/medium-zoom`)}},Qm=function(t){var n=d
94
94
  </${W}>
95
95
  ${j}
96
96
  </${L}>
97
- `};e.renderer.rules.fence=f,e.renderer.rules.code_block=f},fp=(e,t)=>{const n=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(r,o,u,a,s)=>{var f,c;const l=r[o],d=l.content.trim();if(l.info==="echarts"){if(l.attrSet("class",`${Z}-echarts`),l.attrSet("data-echarts-theme",t.themeRef.value),l.map&&l.level===0){const h=l.map[1]-1,p=!!((c=(f=a.srcLines[h])==null?void 0:f.trim())!=null&&c.startsWith("```"));l.attrSet("data-closed",`${p}`),l.attrSet("data-line",String(l.map[0]))}return`<div ${s.renderAttrs(l)} style="width: 100%; aspect-ratio: 4 / 3;">${e.utils.escapeHtml(d)}</div>`}return n(r,o,u,a,s)}},hp=(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((l,d)=>l+(["text","code_inline","math_inline"].includes(d.type)&&d.content||""),""))||"",a=o.markup.length;return t.headsRef.value.push({text:u,level:a,line:o.map[0],currentToken:o,nextToken:n[r+1]}),o.map&&o.level===0&&o.attrSet("id",t.mdHeadingId({text:u,level:a,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,a)=>a.renderToken(n,r,o)},zs={block:[{open:"$$",close:"$$"},{open:"\\[",close:"\\]"}],inline:[{open:"$$",close:"$$"},{open:"$",close:"$"},{open:"\\[",close:"\\]"},{open:"\\(",close:"\\)"}]},mp=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 a=u;for(;(a=t.src.indexOf(o.close,a))!==-1;){let s=0,l=a-1;for(;l>=0&&t.src[l]==="\\";)s++,l--;if(s%2===0)break;a+=o.close.length}if(a!==-1){if(a-u===0)return n||(t.pending+=o.open+o.close),t.pos=a+o.close.length,!0;if(!n){const s=t.push("math_inline","math",0);s.markup=o.open,s.content=t.src.slice(u,a)}return t.pos=a+o.close.length,!0}}return!1},pp=e=>(t,n,r,o)=>{const u=e.delimiters,a=t.bMarks[n]+t.tShift[n],s=t.eMarks[n],l=(d,f,c)=>{t.line=f;const h=t.push("math_block","math",0);return h.block=!0,h.content=d,h.map=[n,t.line],h.markup=c,!0};for(const d of u){const f=a;if(t.src.slice(f,f+d.open.length)!==d.open)continue;const c=f+d.open.length,h=t.src.slice(c,s).trim(),p=h==="",m=h===d.close,v=h.endsWith(d.close);if(!p&&!m&&!v)continue;if(o)return!0;if(m)return l("",n+1,d.open);if(!p&&v){const w=h.slice(0,-d.close.length);return l(w,n+1,d.open)}let x=n+1,y=!1,g="";for(;x<r;x++){const w=t.bMarks[x]+t.tShift[x],k=t.eMarks[x];if(w<k&&t.tShift[x]<t.blkIndent)break;if(t.src.slice(w,k).trim().endsWith(d.close)){const F=t.src.slice(0,k).lastIndexOf(d.close);g=t.src.slice(w,F),y=!0;break}}if(!y)continue;const b=t.getLines(n+1,x,t.tShift[n],!0)+(g.trim()?g:"");return l(b,x+1,d.open)}return!1},gp=(e,{katexRef:t,inlineDelimiters:n,blockDelimiters:r})=>{const o=(s,l,d,f,c=!1)=>{const h={attrs:Uo(s,[["class",l]])},p=f.renderAttrs(h);if(!t.value)return`<${d} ${p}>${s.content}</${d}>`;const m=t.value.renderToString(s.content,dt.katexConfig({throwOnError:!1,displayMode:c}));return`<${d} ${p} data-processed>${m}</${d}>`},u=(s,l,d,f,c)=>o(s[l],`${Z}-katex-inline`,"span",c),a=(s,l,d,f,c)=>o(s[l],`${Z}-katex-block`,"p",c,!0);e.inline.ruler.before("escape","math_inline",mp({delimiters:n||zs.inline})),e.block.ruler.after("blockquote","math_block",pp({delimiters:r||zs.block}),{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=u,e.renderer.rules.math_block=a},bp=(e,t)=>{const n=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(r,o,u,a,s)=>{var f,c;const l=r[o],d=l.content.trim();if(l.info==="mermaid"){if(l.attrSet("class",`${Z}-mermaid`),l.attrSet("data-mermaid-theme",t.themeRef.value),l.map&&l.level===0){const p=l.map[1]-1,m=!!((c=(f=a.srcLines[p])==null?void 0:f.trim())!=null&&c.startsWith("```"));l.attrSet("data-closed",`${m}`),l.attrSet("data-line",String(l.map[0]))}const h=yu.get(d);return h?(l.attrSet("data-processed",""),l.attrSet("data-content",d),`<p ${s.renderAttrs(l)}>${h}</p>`):`<div ${s.renderAttrs(l)}>${e.utils.escapeHtml(d)}</div>`}return n(r,o,u,a,s)}},js=(e,t,n)=>{const r=e.attrIndex(t),o=[t,n];r<0?e.attrPush(o):(e.attrs=e.attrs||[],e.attrs[r]=o)},yp=e=>e.type==="inline",wp=e=>e.type==="paragraph_open",xp=e=>e.type==="list_item_open",vp=e=>e.content.indexOf("[ ] ")===0||e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0,Ap=(e,t)=>yp(e[t])&&wp(e[t-1])&&xp(e[t-2])&&vp(e[t]),kp=(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},Cp=e=>{const t=new e("html_inline","",0);return t.content="<label>",t},Ep=e=>{const t=new e("html_inline","",0);return t.content="</label>",t},_p=(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},Sp=(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},Dp=(e,t,n)=>{if(e.children=e.children||[],e.children.unshift(Sp(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(_p(e.content,r,t))}else e.children.unshift(Cp(t)),e.children.push(Ep(t))},Fp=(e,t={})=>{e.core.ruler.after("inline","github-task-lists",n=>{const r=n.tokens;for(let o=2;o<r.length;o++)Ap(r,o)&&(Dp(r[o],n.Token,t),js(r[o-2],"class","task-list-item"+(t.enabled?" enabled":" ")),js(r[kp(r,o-2)],"class","contains-task-list"))})},Tp=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))},Np=(e,t)=>{const{editorConfig:n,markdownItPlugins:r}=dt,o=i.inject("editorId"),u=i.inject("language"),a=i.inject("usedLanguageText"),s=i.inject("showCodeRowNumber"),l=i.inject("theme"),d=i.inject("customIcon"),f=i.inject("rootRef"),c=i.inject("setting"),h=i.ref([]),p=ap(e),m=sp(e),{reRenderRef:v,replaceMermaid:x}=lp(e),{reRenderEcharts:y,replaceEcharts:g}=ip(e),b=Ze({html:!0,breaks:!0,linkify:!0}),w=[{type:"image",plugin:zm,options:{figcaption:!0,classes:"md-zoom"}},{type:"admonition",plugin:cp,options:{}},{type:"taskList",plugin:Fp,options:{}},{type:"heading",plugin:hp,options:{mdHeadingId:e.mdHeadingId,headsRef:h}},{type:"code",plugin:dp,options:{editorId:o,usedLanguageTextRef:a,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold,customIconRef:d}},{type:"sub",plugin:$m,options:{}},{type:"sup",plugin:Gm,options:{}}];e.noKatex||w.push({type:"katex",plugin:gp,options:{katexRef:m}}),e.noMermaid||w.push({type:"mermaid",plugin:bp,options:{themeRef:l}}),e.noEcharts||w.push({type:"echarts",plugin:fp,options:{themeRef:l}}),r(w,{editorId:o}).forEach(G=>{b.use(G.plugin,G.options)});const k=b.options.highlight;b.set({highlight:(G,T,C)=>{if(k){const M=k(G,T,C);if(M)return M}let D;!e.noHighlight&&p.value?p.value.getLanguage(T)?D=p.value.highlight(G,{language:T,ignoreIllegals:!0}).value:D=p.value.highlightAuto(G).value:D=b.utils.escapeHtml(G);const P=s?Om(D.replace(/^\n+|\n+$/g,""),G.replace(/^\n+|\n+$/g,"")):`<span class="${Z}-code-block">${D.replace(/^\n+|\n+$/g,"")}</span>`;return`<pre><code class="language-${T}" language=${T}>${P}</code></pre>`}}),Tp(b);const F=i.ref(`_article-key_${Ro()}`),S=i.ref(e.sanitize(b.render(e.modelValue,{srcLines:e.modelValue.split(`
98
- `)})));let E=()=>{},X=()=>{};const j=()=>{var T;const G=(T=f.value)==null?void 0:T.querySelectorAll(`#${o} p.${Z}-mermaid:not([data-closed=false])`);X(),X=Rm(G,{customIcon:d.value}),E(),E=Mm(G,{customIcon:d.value})},B=()=>{ot.emit(o,Fm,S.value),e.onHtmlChanged(S.value),e.onGetCatalog(h.value),ot.emit(o,Ho,h.value),i.nextTick(()=>{x().then(j),g()})},H=()=>{h.value=[],S.value=e.sanitize(b.render(e.modelValue,{srcLines:e.modelValue.split(`
99
- `)}))},L=i.computed(()=>(e.noKatex||!!m.value)&&(e.noHighlight||!!p.value));let W=-1;return i.watch([i.toRef(e,"modelValue"),L,v,u],()=>{W=window.setTimeout(()=>{H()},t?0:n.renderDelay)}),i.watch(()=>c.value.preview,()=>{c.value.preview&&i.nextTick(()=>{x().then(j),g(),ot.emit(o,Ho,h.value)})}),i.watch([S,y],()=>{B()}),i.onMounted(B),i.onMounted(()=>{ot.on(o,{name:Tm,callback(){ot.emit(o,Ho,h.value)}}),ot.on(o,{name:Fs,callback:()=>{F.value=`_article-key_${Ro()}`,H()}})}),i.onBeforeUnmount(()=>{E(),X(),clearTimeout(W)}),{html:S,key:F}},Ip=(e,t)=>{const n=i.inject("editorId"),r=i.inject("setting"),{noImgZoomIn:o}=e,u=wm(()=>{const a=document.querySelectorAll(`#${n}-preview img:not(.not-zoom):not(.medium-zoom-image)`);a.length!==0&&ep(a,{background:"#00000073"})});i.onMounted(async()=>{!o&&r.value.preview&&await u()}),i.watch([t,()=>r.value.preview],async()=>{!o&&r.value.preview&&await u()})},Hs={checked:{regexp:/- \[x\]/,value:"- [ ]"},unChecked:{regexp:/- \[\s\]/,value:"- [x]"}},Op=(e,t)=>{const n=i.inject("editorId"),r=i.inject("rootRef");let o=()=>{};const u=()=>{if(!r.value)return!1;const a=r.value.querySelectorAll(".task-list-item.enabled"),s=l=>{var m;l.preventDefault();const d=l.target.checked?"unChecked":"checked",f=(m=l.target.parentElement)==null?void 0:m.dataset.line;if(!f)return;const c=Number(f),h=e.modelValue.split(`
100
- `),p=h[Number(c)].replace(Hs[d].regexp,Hs[d].value);e.previewOnly?(h[Number(c)]=p,e.onChange(h.join(`
101
- `))):ot.emit(n,Nm,c+1,p)};a.forEach(l=>{l.addEventListener("click",s)}),o=()=>{a.forEach(l=>{l.removeEventListener("click",s)})}};i.onBeforeUnmount(()=>{o()}),i.watch([t],()=>{o(),i.nextTick(u)},{immediate:!0})},Lp=(e,t,n)=>{const r=i.inject("setting"),o=()=>{i.nextTick(()=>{var a;(a=e.onRemount)==null||a.call(e)})},u=a=>{a&&o()};i.watch([t,n],o),i.watch(()=>r.value.preview,u),i.watch(()=>r.value.htmlPreview,u),i.onMounted(o)},$s={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}};({...$s});const Us=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes)},Vp=(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,Pp=i.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=i.ref(),n=e.html,r=(o,u)=>{if(!t.value)return;const a=t.value,s=Array.from(a.childNodes),l=Math.min(o.length,u.length);let d=-1;for(let c=0;c<l;c++)if(!Vp(o[c],u[c])){d=c;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 c=s.length-1;c>=f;c--)s[c].remove();for(let c=d;c<o.length;c++)a.appendChild(o[c].cloneNode(!0))};return i.watch(()=>e.html,(o,u)=>{const a=Us(o),s=Us(u||"");r(a,s)}),()=>i.createVNode("div",{id:e.id,class:e.class,innerHTML:n,ref:t},null)}}),Rp=i.defineComponent({name:"ContentPreview",props:$s,setup(e){const t=i.inject("editorId"),n=i.inject("setting"),r=i.inject("previewTheme"),o=i.inject("showCodeRowNumber"),{html:u,key:a}=Np(e,e.previewOnly);op(e,u,a),Ip(e,u),Op(e,u),Lp(e,u,a);const s=i.computed(()=>[`${Z}-preview`,`${r==null?void 0:r.value}-theme`,o&&`${Z}-scrn`].filter(Boolean)),l=()=>{const d=`${t}-preview`;return e.previewComponent?i.h(e.previewComponent,{key:a.value,html:u.value,id:d,class:s.value}):i.createVNode(Pp,{key:a.value,html:u.value,id:d,class:s.value},null)};return()=>i.createVNode(i.Fragment,null,[n.value.preview&&(e.previewOnly?l():i.createVNode("div",{id:`${t}-preview-wrapper`,class:`${Z}-preview-wrapper`,key:"content-preview-wrapper"},[l()])),n.value.htmlPreview&&i.createVNode("div",{id:`${t}-html-wrapper`,class:`${Z}-preview-wrapper`,key:"html-preview-wrapper"},[i.createVNode("div",{class:`${Z}-html`},[u.value])])])}}),Mp=({text:e})=>e,Ws={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:Mp},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}};({...Ws});const Gs=["onHtmlChanged","onGetCatalog","onChange","onRemount","update:modelValue"];[...Gs];const Bp=(e,t,n)=>{const{editorId:r}=n,o={rerender(){ot.emit(r,Fs)}};t.expose(o)},wu=i.defineComponent({name:"MdPreview",props:Ws,emits:Gs,setup(e,t){const{noKatex:n,noMermaid:r,noHighlight:o}=e,u=i.ref(),a=up(e);rp(e,{rootRef:u,editorId:a}),Bp(e,t,{editorId:a}),i.onBeforeUnmount(()=>{ot.clear(a)});const s=c=>{var h;(h=e.onChange)==null||h.call(e,c),t.emit("onChange",c),t.emit("update:modelValue",c)},l=c=>{var h;(h=e.onHtmlChanged)==null||h.call(e,c),t.emit("onHtmlChanged",c)},d=c=>{var h;(h=e.onGetCatalog)==null||h.call(e,c),t.emit("onGetCatalog",c)},f=()=>{var c;(c=e.onRemount)==null||c.call(e),t.emit("onRemount")};return()=>i.createVNode("div",{id:a,class:[Z,e.class,e.theme==="dark"&&`${Z}-dark`,`${Z}-previewOnly`],style:e.style,ref:u},[i.createVNode(Rp,{modelValue:e.modelValue,onChange:s,onHtmlChanged:l,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)])}});wu.install=e=>(e.component(wu.name,wu),e);const zp={onClick:{type:Function,default:void 0},language:{type:String,default:void 0},theme:{type:String,default:void 0},disabled:{type:Boolean,default:void 0}},Wo=i.defineComponent({name:"NormalFooterToolbar",props:zp,emits:["onClick"],setup(e,t){return()=>{const n=Dm({props:e,ctx:t});return i.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])}}});Wo.install=e=>(e.component(Wo.name,Wo),e);var Go={exports:{}},pe={},Xo={exports:{}},rn={},Xs;function qs(){if(Xs)return rn;Xs=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,a,s){}function n(u,a,s){}var r=/javascript\s*\:/img;function o(u,a){return r.test(a)?"":a}return rn.whiteList=e(),rn.getDefaultWhiteList=e,rn.onAttr=t,rn.onIgnoreAttr=n,rn.safeAttrValue=o,rn}var Zs,Ys;function Ks(){return Ys||(Ys=1,Zs={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,"")}}),Zs}var qo,Qs;function jp(){if(Qs)return qo;Qs=1;var e=Ks();function t(n,r){n=e.trimRight(n),n[n.length-1]!==";"&&(n+=";");var o=n.length,u=!1,a=0,s=0,l="";function d(){if(!u){var h=e.trim(n.slice(a,s)),p=h.indexOf(":");if(p!==-1){var m=e.trim(h.slice(0,p)),v=e.trim(h.slice(p+1));if(m){var x=r(a,l.length,m,v,h);x&&(l+=x+"; ")}}}a=s+1}for(;s<o;s++){var f=n[s];if(f==="/"&&n[s+1]==="*"){var c=n.indexOf("*/",s+2);if(c===-1)break;s=c+1,a=s+1,u=!1}else f==="("?u=!0:f===")"?u=!1:f===";"?u||d():f===`
102
- `&&d()}return e.trim(l)}return qo=t,qo}var Zo,Js;function Hp(){if(Js)return Zo;Js=1;var e=qs(),t=jp();Ks();function n(u){return u==null}function r(u){var a={};for(var s in u)a[s]=u[s];return a}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 a=this,s=a.options,l=s.whiteList,d=s.onAttr,f=s.onIgnoreAttr,c=s.safeAttrValue,h=t(u,function(p,m,v,x,y){var g=l[v],b=!1;if(g===!0?b=g:typeof g=="function"?b=g(x):g instanceof RegExp&&(b=g.test(x)),b!==!0&&(b=!1),x=c(v,x),!!x){var w={position:m,sourcePosition:p,source:y,isWhite:b};if(b){var k=d(v,x,w);return n(k)?v+":"+x:k}else{var k=f(v,x,w);if(!n(k))return k}}});return h},Zo=o,Zo}var el;function Yo(){return el||(el=1,function(e,t){var n=qs(),r=Hp();function o(a,s){var l=new r(s);return l.process(a)}t=e.exports=o,t.FilterCSS=r;for(var u in n)t[u]=n[u];typeof window<"u"&&(window.filterCSS=e.exports)}(Xo,Xo.exports)),Xo.exports}var tl,nl;function Ko(){return nl||(nl=1,tl={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}}),tl}var rl;function ul(){if(rl)return pe;rl=1;var e=Yo().FilterCSS,t=Yo().getDefaultWhiteList,n=Ko();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(T,C,D){}function a(T,C,D){}function s(T,C,D){}function l(T,C,D){}function d(T){return T.replace(c,"&lt;").replace(h,"&gt;")}function f(T,C,D,P){if(D=j(D),C==="href"||C==="src"){if(D=n.trim(D),D==="#")return"#";if(!(D.substr(0,7)==="http://"||D.substr(0,8)==="https://"||D.substr(0,7)==="mailto:"||D.substr(0,4)==="tel:"||D.substr(0,11)==="data:image/"||D.substr(0,6)==="ftp://"||D.substr(0,2)==="./"||D.substr(0,3)==="../"||D[0]==="#"||D[0]==="/"))return""}else if(C==="background"){if(g.lastIndex=0,g.test(D))return""}else if(C==="style"){if(b.lastIndex=0,b.test(D)||(w.lastIndex=0,w.test(D)&&(g.lastIndex=0,g.test(D))))return"";P!==!1&&(P=P||o,D=P.process(D))}return D=B(D),D}var c=/</g,h=/>/g,p=/"/g,m=/&quot;/g,v=/&#([a-zA-Z0-9]*);?/gim,x=/&colon;?/gim,y=/&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,b=/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 k(T){return T.replace(p,"&quot;")}function F(T){return T.replace(m,'"')}function S(T){return T.replace(v,function(C,D){return D[0]==="x"||D[0]==="X"?String.fromCharCode(parseInt(D.substr(1),16)):String.fromCharCode(parseInt(D,10))})}function E(T){return T.replace(x,":").replace(y," ")}function X(T){for(var C="",D=0,P=T.length;D<P;D++)C+=T.charCodeAt(D)<32?" ":T.charAt(D);return n.trim(C)}function j(T){return T=F(T),T=S(T),T=E(T),T=X(T),T}function B(T){return T=k(T),T=d(T),T}function H(){return""}function L(T,C){typeof C!="function"&&(C=function(){});var D=!Array.isArray(T);function P(N){return D?!0:n.indexOf(T,N)!==-1}var M=[],z=!1;return{onIgnoreTag:function(N,V,O){if(P(N))if(O.isClosing){var I="[/removed]",$=O.position+I.length;return M.push([z!==!1?z:O.position,$]),z=!1,I}else return z||(z=O.position),"[removed]";else return C(N,V,O)},remove:function(N){var V="",O=0;return n.forEach(M,function(I){V+=N.slice(O,I[0]),O=I[1]}),V+=N.slice(O),V}}}function W(T){for(var C="",D=0;D<T.length;){var P=T.indexOf("<!--",D);if(P===-1){C+=T.slice(D);break}C+=T.slice(D,P);var M=T.indexOf("-->",P);if(M===-1)break;D=M+3}return C}function G(T){var C=T.split("");return C=C.filter(function(D){var P=D.charCodeAt(0);return P===127?!1:P<=31?P===10||P===13:!0}),C.join("")}return pe.whiteList=r(),pe.getDefaultWhiteList=r,pe.onTag=u,pe.onIgnoreTag=a,pe.onTagAttr=s,pe.onIgnoreTagAttr=l,pe.safeAttrValue=f,pe.escapeHtml=d,pe.escapeQuote=k,pe.unescapeQuote=F,pe.escapeHtmlEntities=S,pe.escapeDangerHtml5Entities=E,pe.clearNonPrintableCharacter=X,pe.friendlyAttrValue=j,pe.escapeAttrValue=B,pe.onIgnoreTagStripAll=H,pe.StripTagBody=L,pe.stripCommentTag=W,pe.stripBlankChar=G,pe.attributeWrapSign='"',pe.cssFilter=o,pe.getDefaultCSSWhiteList=t,pe}var xu={},ol;function il(){if(ol)return xu;ol=1;var e=Ko();function t(c){var h=e.spaceIndex(c),p;return h===-1?p=c.slice(1,-1):p=c.slice(1,h+1),p=e.trim(p).toLowerCase(),p.slice(0,1)==="/"&&(p=p.slice(1)),p.slice(-1)==="/"&&(p=p.slice(0,-1)),p}function n(c){return c.slice(0,2)==="</"}function r(c,h,p){var m="",v=0,x=!1,y=!1,g=0,b=c.length,w="",k="";e:for(g=0;g<b;g++){var F=c.charAt(g);if(x===!1){if(F==="<"){x=g;continue}}else if(y===!1){if(F==="<"){m+=p(c.slice(v,g)),x=g,v=g;continue}if(F===">"||g===b-1){m+=p(c.slice(v,x)),k=c.slice(x,g+1),w=t(k),m+=h(x,m.length,w,k,n(k)),v=g+1,x=!1;continue}if(F==='"'||F==="'")for(var S=1,E=c.charAt(g-S);E.trim()===""||E==="=";){if(E==="="){y=F;continue e}E=c.charAt(g-++S)}}else if(F===y){y=!1;continue}}return v<b&&(m+=p(c.substr(v))),m}var o=/[^a-zA-Z0-9\\_:.-]/gim;function u(c,h){var p=0,m=0,v=[],x=!1,y=c.length;function g(S,E){if(S=e.trim(S),S=S.replace(o,"").toLowerCase(),!(S.length<1)){var X=h(S,E||"");X&&v.push(X)}}for(var b=0;b<y;b++){var w=c.charAt(b),k,F;if(x===!1&&w==="="){x=c.slice(p,b),p=b+1,m=c.charAt(p)==='"'||c.charAt(p)==="'"?p:s(c,b+1);continue}if(x!==!1&&b===m){if(F=c.indexOf(w,b+1),F===-1)break;k=e.trim(c.slice(m+1,F)),g(x,k),x=!1,b=F,p=b+1;continue}if(/\s|\n|\t/.test(w))if(c=c.replace(/\s|\n|\t/g," "),x===!1)if(F=a(c,b),F===-1){k=e.trim(c.slice(p,b)),g(k),x=!1,p=b+1;continue}else{b=F-1;continue}else if(F=l(c,b-1),F===-1){k=e.trim(c.slice(p,b)),k=f(k),g(x,k),x=!1,p=b+1;continue}else continue}return p<c.length&&(x===!1?g(c.slice(p)):g(x,f(e.trim(c.slice(p))))),e.trim(v.join(" "))}function a(c,h){for(;h<c.length;h++){var p=c[h];if(p!==" ")return p==="="?h:-1}}function s(c,h){for(;h<c.length;h++){var p=c[h];if(p!==" ")return p==="'"||p==='"'?h:-1}}function l(c,h){for(;h>0;h--){var p=c[h];if(p!==" ")return p==="="?h:-1}}function d(c){return c[0]==='"'&&c[c.length-1]==='"'||c[0]==="'"&&c[c.length-1]==="'"}function f(c){return d(c)?c.substr(1,c.length-2):c}return xu.parseTag=r,xu.parseAttr=u,xu}var Qo,al;function $p(){if(al)return Qo;al=1;var e=Yo().FilterCSS,t=ul(),n=il(),r=n.parseTag,o=n.parseAttr,u=Ko();function a(c){return c==null}function s(c){var h=u.spaceIndex(c);if(h===-1)return{html:"",closing:c[c.length-2]==="/"};c=u.trim(c.slice(h+1,-1));var p=c[c.length-1]==="/";return p&&(c=u.trim(c.slice(0,-1))),{html:c,closing:p}}function l(c){var h={};for(var p in c)h[p]=c[p];return h}function d(c){var h={};for(var p in c)Array.isArray(c[p])?h[p.toLowerCase()]=c[p].map(function(m){return m.toLowerCase()}):h[p.toLowerCase()]=c[p];return h}function f(c){c=l(c||{}),c.stripIgnoreTag&&(c.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),c.onIgnoreTag=t.onIgnoreTagStripAll),c.whiteList||c.allowList?c.whiteList=d(c.whiteList||c.allowList):c.whiteList=t.whiteList,this.attributeWrapSign=c.singleQuotedAttributeValue===!0?"'":t.attributeWrapSign,c.onTag=c.onTag||t.onTag,c.onTagAttr=c.onTagAttr||t.onTagAttr,c.onIgnoreTag=c.onIgnoreTag||t.onIgnoreTag,c.onIgnoreTagAttr=c.onIgnoreTagAttr||t.onIgnoreTagAttr,c.safeAttrValue=c.safeAttrValue||t.safeAttrValue,c.escapeHtml=c.escapeHtml||t.escapeHtml,this.options=c,c.css===!1?this.cssFilter=!1:(c.css=c.css||{},this.cssFilter=new e(c.css))}return f.prototype.process=function(c){if(c=c||"",c=c.toString(),!c)return"";var h=this,p=h.options,m=p.whiteList,v=p.onTag,x=p.onIgnoreTag,y=p.onTagAttr,g=p.onIgnoreTagAttr,b=p.safeAttrValue,w=p.escapeHtml,k=h.attributeWrapSign,F=h.cssFilter;p.stripBlankChar&&(c=t.stripBlankChar(c)),p.allowCommentTag||(c=t.stripCommentTag(c));var S=!1;p.stripIgnoreTagBody&&(S=t.StripTagBody(p.stripIgnoreTagBody,x),x=S.onIgnoreTag);var E=r(c,function(X,j,B,H,L){var W={sourcePosition:X,position:j,isClosing:L,isWhite:Object.prototype.hasOwnProperty.call(m,B)},G=v(B,H,W);if(!a(G))return G;if(W.isWhite){if(W.isClosing)return"</"+B+">";var T=s(H),C=m[B],D=o(T.html,function(P,M){var z=u.indexOf(C,P)!==-1,N=y(B,P,M,z);return a(N)?z?(M=b(B,P,M,F),M?P+"="+k+M+k:P):(N=g(B,P,M,z),a(N)?void 0:N):N});return H="<"+B,D&&(H+=" "+D),T.closing&&(H+=" /"),H+=">",H}else return G=x(B,H,W),a(G)?w(H):G},w);return S&&(E=S.remove(E)),E},Qo=f,Qo}var sl;function Up(){return sl||(sl=1,function(e,t){var n=ul(),r=il(),o=$p();function u(s,l){var d=new o(l);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 l in r)t[l]=r[l]}(),typeof window<"u"&&(window.filterXSS=e.exports);function a(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}a()&&(self.filterXSS=e.exports)}(Go,Go.exports)),Go.exports}Up();const un=i.defineComponent({name:"FMarkdownPreview",props:_s,setup(e){return()=>i.createVNode("div",{class:"f-markdown-preview-container"},[i.createVNode(wu,{modelValue:e.content},null)])}});un.install=e=>{e.component(un.name,un)};const Jo="farris-x-preview-bridge",ei=1,ti="assistant.message";function ll(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e,content:e.content}}}function cl(e){return e!==null&&typeof e=="object"}function dl(e){if(!cl(e)||e.source!==Jo||e.v!==ei||e.type!==ti)return!1;const t=e.payload;return!(!cl(t)||typeof t.messageId!="string"||t.messageId.length===0||t.role!=="user"&&t.role!=="assistant")}function Wp(e,t){return!!(e.source===window.parent||t&&e.source===window.top||e.source===window)}function fl(e,t,n){const r=ll(n);try{return e.postMessage({source:Jo,v:ei,type:ti,payload:r},t),!0}catch{return!1}}function hl(e){const t=e.allowTopAsSource!==!1,n=r=>{var o;Wp(r,t)&&(e.allowedParentOrigins&&e.allowedParentOrigins.length>0&&!e.allowedParentOrigins.includes(r.origin)||dl(r.data)&&((o=e.onAssistantMessage)==null||o.call(e,r.data.payload)))};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)}const Gp="/platform/common/web/renderer/index.html#/preview",Xp="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components/Contacts.frm",qp="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components",Zp="67441dbb-0219-46f2-b247-51555c317995";function ml(e){if(e.url)return e.url;const t=e.baseUri??Gp,n=e.metadataPath??Xp,r=e.projectPath??qp,o=e.baseMetadataId??Zp;return`${t}?metadataPath=${encodeURIComponent(n)}&projectPath=${encodeURIComponent(r)}&baseMetadataId=${encodeURIComponent(o)}`}function Yp(e){if(typeof window>"u")return null;if(e.postMessageTargetOrigin)return e.postMessageTargetOrigin;try{const t=ml(e),n=new URL(t,window.location.href).origin;return n==="null"||n===""?window.location.origin:n}catch{return null}}const dr=i.defineComponent({name:"ChatPreview",props:Es,setup(e,{expose:t}){const n=i.ref(null),r=i.ref(null),o=i.ref(!1),u=i.ref(!1),a=i.computed(()=>ml(e.previewConfig??{})),s=i.computed(()=>{var T;return((T=e.previewConfig)==null?void 0:T.contentType)==="markdown"}),l=i.computed(()=>{var T;return Object.keys(((T=e.previewConfig)==null?void 0:T.contentMap)??{})}),d=i.computed(()=>l.value.filter(T=>T).length>0),f=i.ref(),c=i.ref(),h=i.ref(!1);let p=null;i.onBeforeUnmount(()=>{p==null||p(),p=null,H()}),i.watch(()=>[a.value,n.value,s.value],()=>{if(p==null||p(),p=null,s.value)return;const T=n.value;if(!T)return;h.value=!1,o.value=!1,u.value=!1;const C=Date.now(),D=200,P=300,M=1e4;let z=!1,N=null,V=null;V=window.setTimeout(()=>{V=null,z||(u.value=!0)},D);const O=()=>{if(z)return;if(z=!0,N&&(window.clearTimeout(N),N=null),V&&(window.clearTimeout(V),V=null),h.value=!0,L(T),u.value){const J=Date.now()-C,K=Math.max(0,P-J);setTimeout(()=>{o.value=!0},K)}else o.value=!0;const $=()=>{var J;return(J=e.onIframeLoad)==null?void 0:J.call(e)};$(),window.setTimeout($,0),window.setTimeout($,120)},I=()=>{var $;z||(z=!0,V&&(window.clearTimeout(V),V=null),console.warn("ChatPreview: iframe load timeout"),h.value=!0,o.value=!0,($=e.onIframeLoad)==null||$.call(e))};T.addEventListener("load",O,{once:!0}),N=window.setTimeout(I,M),p=()=>{T.removeEventListener("load",O),N&&(window.clearTimeout(N),N=null),V&&(window.clearTimeout(V),V=null)}},{flush:"post"}),i.watch([s,()=>{var T;return(T=e.previewConfig)==null?void 0:T.contentMap}],()=>{H(),s.value&&i.nextTick(()=>B())},{flush:"post"}),i.watch(()=>{var T;return(T=e.previewConfig)==null?void 0:T.contentMap},T=>{if(T){const C=Object.keys(T);f.value=C[0]??""}else f.value="";m()},{immediate:!0});function m(T){var C,D;T&&(f.value=T),d.value&&f.value?c.value=((D=(C=e.previewConfig)==null?void 0:C.contentMap)==null?void 0:D[f.value])||"":c.value=""}function v(T){var P;if(s.value||!h.value)return!1;const C=(P=n.value)==null?void 0:P.contentWindow;if(!C)return!1;const D=Yp(e.previewConfig??{});return D?fl(C,D,T):!1}t({postAssistantPayload:v});const x=i.ref(!1);let y=null;const g=800;function b(){x.value=!0,j(!0),y!=null&&(window.clearTimeout(y),y=null)}function w(){y!=null&&window.clearTimeout(y),y=window.setTimeout(()=>{x.value=!1,j(!1),y=null},g)}function k(){b(),w()}function F(){b()}function S(){w()}let E=[];function X(){const T=r.value;if(!T)return[];const C=[],D=T.querySelectorAll(".f-markdown-preview-container");return D.length>0&&D.forEach(P=>C.push(P)),C.length===0&&T.scrollHeight>T.clientHeight&&C.push(T),C}function j(T){const C=r.value;C&&C.querySelectorAll(".f-markdown-preview-container").forEach(D=>{D.classList.toggle("f-chat-preview-scrollbar-visible",T)})}function B(){const T=X();E=T,T.forEach(C=>{C.addEventListener("scroll",k,{passive:!0}),C.addEventListener("mouseenter",F),C.addEventListener("mouseleave",S)})}function H(){E.forEach(T=>{T.removeEventListener("scroll",k),T.removeEventListener("mouseenter",F),T.removeEventListener("mouseleave",S)}),E=[]}function L(T){try{const C=T.contentDocument;if(!C)return;const D="f-chat-preview-injected-scrollbar-style";if(C.getElementById(D))return;const P=C.createElement("style");P.id=D,P.textContent=`
97
+ `};e.renderer.rules.fence=f,e.renderer.rules.code_block=f},fp=(e,t)=>{const n=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(r,o,u,a,s)=>{var f,c;const l=r[o],d=l.content.trim();if(l.info==="echarts"){if(l.attrSet("class",`${Z}-echarts`),l.attrSet("data-echarts-theme",t.themeRef.value),l.map&&l.level===0){const h=l.map[1]-1,p=!!((c=(f=a.srcLines[h])==null?void 0:f.trim())!=null&&c.startsWith("```"));l.attrSet("data-closed",`${p}`),l.attrSet("data-line",String(l.map[0]))}return`<div ${s.renderAttrs(l)} style="width: 100%; aspect-ratio: 4 / 3;">${e.utils.escapeHtml(d)}</div>`}return n(r,o,u,a,s)}},hp=(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((l,d)=>l+(["text","code_inline","math_inline"].includes(d.type)&&d.content||""),""))||"",a=o.markup.length;return t.headsRef.value.push({text:u,level:a,line:o.map[0],currentToken:o,nextToken:n[r+1]}),o.map&&o.level===0&&o.attrSet("id",t.mdHeadingId({text:u,level:a,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,a)=>a.renderToken(n,r,o)},js={block:[{open:"$$",close:"$$"},{open:"\\[",close:"\\]"}],inline:[{open:"$$",close:"$$"},{open:"$",close:"$"},{open:"\\[",close:"\\]"},{open:"\\(",close:"\\)"}]},mp=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 a=u;for(;(a=t.src.indexOf(o.close,a))!==-1;){let s=0,l=a-1;for(;l>=0&&t.src[l]==="\\";)s++,l--;if(s%2===0)break;a+=o.close.length}if(a!==-1){if(a-u===0)return n||(t.pending+=o.open+o.close),t.pos=a+o.close.length,!0;if(!n){const s=t.push("math_inline","math",0);s.markup=o.open,s.content=t.src.slice(u,a)}return t.pos=a+o.close.length,!0}}return!1},pp=e=>(t,n,r,o)=>{const u=e.delimiters,a=t.bMarks[n]+t.tShift[n],s=t.eMarks[n],l=(d,f,c)=>{t.line=f;const h=t.push("math_block","math",0);return h.block=!0,h.content=d,h.map=[n,t.line],h.markup=c,!0};for(const d of u){const f=a;if(t.src.slice(f,f+d.open.length)!==d.open)continue;const c=f+d.open.length,h=t.src.slice(c,s).trim(),p=h==="",m=h===d.close,v=h.endsWith(d.close);if(!p&&!m&&!v)continue;if(o)return!0;if(m)return l("",n+1,d.open);if(!p&&v){const w=h.slice(0,-d.close.length);return l(w,n+1,d.open)}let x=n+1,y=!1,g="";for(;x<r;x++){const w=t.bMarks[x]+t.tShift[x],k=t.eMarks[x];if(w<k&&t.tShift[x]<t.blkIndent)break;if(t.src.slice(w,k).trim().endsWith(d.close)){const D=t.src.slice(0,k).lastIndexOf(d.close);g=t.src.slice(w,D),y=!0;break}}if(!y)continue;const b=t.getLines(n+1,x,t.tShift[n],!0)+(g.trim()?g:"");return l(b,x+1,d.open)}return!1},gp=(e,{katexRef:t,inlineDelimiters:n,blockDelimiters:r})=>{const o=(s,l,d,f,c=!1)=>{const h={attrs:Uo(s,[["class",l]])},p=f.renderAttrs(h);if(!t.value)return`<${d} ${p}>${s.content}</${d}>`;const m=t.value.renderToString(s.content,dt.katexConfig({throwOnError:!1,displayMode:c}));return`<${d} ${p} data-processed>${m}</${d}>`},u=(s,l,d,f,c)=>o(s[l],`${Z}-katex-inline`,"span",c),a=(s,l,d,f,c)=>o(s[l],`${Z}-katex-block`,"p",c,!0);e.inline.ruler.before("escape","math_inline",mp({delimiters:n||js.inline})),e.block.ruler.after("blockquote","math_block",pp({delimiters:r||js.block}),{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=u,e.renderer.rules.math_block=a},bp=(e,t)=>{const n=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(r,o,u,a,s)=>{var f,c;const l=r[o],d=l.content.trim();if(l.info==="mermaid"){if(l.attrSet("class",`${Z}-mermaid`),l.attrSet("data-mermaid-theme",t.themeRef.value),l.map&&l.level===0){const p=l.map[1]-1,m=!!((c=(f=a.srcLines[p])==null?void 0:f.trim())!=null&&c.startsWith("```"));l.attrSet("data-closed",`${m}`),l.attrSet("data-line",String(l.map[0]))}const h=yu.get(d);return h?(l.attrSet("data-processed",""),l.attrSet("data-content",d),`<p ${s.renderAttrs(l)}>${h}</p>`):`<div ${s.renderAttrs(l)}>${e.utils.escapeHtml(d)}</div>`}return n(r,o,u,a,s)}},Hs=(e,t,n)=>{const r=e.attrIndex(t),o=[t,n];r<0?e.attrPush(o):(e.attrs=e.attrs||[],e.attrs[r]=o)},yp=e=>e.type==="inline",wp=e=>e.type==="paragraph_open",xp=e=>e.type==="list_item_open",vp=e=>e.content.indexOf("[ ] ")===0||e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0,Ap=(e,t)=>yp(e[t])&&wp(e[t-1])&&xp(e[t-2])&&vp(e[t]),kp=(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},Cp=e=>{const t=new e("html_inline","",0);return t.content="<label>",t},Ep=e=>{const t=new e("html_inline","",0);return t.content="</label>",t},_p=(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},Sp=(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},Fp=(e,t,n)=>{if(e.children=e.children||[],e.children.unshift(Sp(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(_p(e.content,r,t))}else e.children.unshift(Cp(t)),e.children.push(Ep(t))},Dp=(e,t={})=>{e.core.ruler.after("inline","github-task-lists",n=>{const r=n.tokens;for(let o=2;o<r.length;o++)Ap(r,o)&&(Fp(r[o],n.Token,t),Hs(r[o-2],"class","task-list-item"+(t.enabled?" enabled":" ")),Hs(r[kp(r,o-2)],"class","contains-task-list"))})},Np=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))},Tp=(e,t)=>{const{editorConfig:n,markdownItPlugins:r}=dt,o=i.inject("editorId"),u=i.inject("language"),a=i.inject("usedLanguageText"),s=i.inject("showCodeRowNumber"),l=i.inject("theme"),d=i.inject("customIcon"),f=i.inject("rootRef"),c=i.inject("setting"),h=i.ref([]),p=ap(e),m=sp(e),{reRenderRef:v,replaceMermaid:x}=lp(e),{reRenderEcharts:y,replaceEcharts:g}=ip(e),b=Ze({html:!0,breaks:!0,linkify:!0}),w=[{type:"image",plugin:zm,options:{figcaption:!0,classes:"md-zoom"}},{type:"admonition",plugin:cp,options:{}},{type:"taskList",plugin:Dp,options:{}},{type:"heading",plugin:hp,options:{mdHeadingId:e.mdHeadingId,headsRef:h}},{type:"code",plugin:dp,options:{editorId:o,usedLanguageTextRef:a,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold,customIconRef:d}},{type:"sub",plugin:$m,options:{}},{type:"sup",plugin:Gm,options:{}}];e.noKatex||w.push({type:"katex",plugin:gp,options:{katexRef:m}}),e.noMermaid||w.push({type:"mermaid",plugin:bp,options:{themeRef:l}}),e.noEcharts||w.push({type:"echarts",plugin:fp,options:{themeRef:l}}),r(w,{editorId:o}).forEach(G=>{b.use(G.plugin,G.options)});const k=b.options.highlight;b.set({highlight:(G,N,C)=>{if(k){const M=k(G,N,C);if(M)return M}let F;!e.noHighlight&&p.value?p.value.getLanguage(N)?F=p.value.highlight(G,{language:N,ignoreIllegals:!0}).value:F=p.value.highlightAuto(G).value:F=b.utils.escapeHtml(G);const P=s?Om(F.replace(/^\n+|\n+$/g,""),G.replace(/^\n+|\n+$/g,"")):`<span class="${Z}-code-block">${F.replace(/^\n+|\n+$/g,"")}</span>`;return`<pre><code class="language-${N}" language=${N}>${P}</code></pre>`}}),Np(b);const D=i.ref(`_article-key_${Ro()}`),S=i.ref(e.sanitize(b.render(e.modelValue,{srcLines:e.modelValue.split(`
98
+ `)})));let E=()=>{},X=()=>{};const j=()=>{var N;const G=(N=f.value)==null?void 0:N.querySelectorAll(`#${o} p.${Z}-mermaid:not([data-closed=false])`);X(),X=Rm(G,{customIcon:d.value}),E(),E=Mm(G,{customIcon:d.value})},B=()=>{ot.emit(o,Dm,S.value),e.onHtmlChanged(S.value),e.onGetCatalog(h.value),ot.emit(o,Ho,h.value),i.nextTick(()=>{x().then(j),g()})},H=()=>{h.value=[],S.value=e.sanitize(b.render(e.modelValue,{srcLines:e.modelValue.split(`
99
+ `)}))},L=i.computed(()=>(e.noKatex||!!m.value)&&(e.noHighlight||!!p.value));let W=-1;return i.watch([i.toRef(e,"modelValue"),L,v,u],()=>{W=window.setTimeout(()=>{H()},t?0:n.renderDelay)}),i.watch(()=>c.value.preview,()=>{c.value.preview&&i.nextTick(()=>{x().then(j),g(),ot.emit(o,Ho,h.value)})}),i.watch([S,y],()=>{B()}),i.onMounted(B),i.onMounted(()=>{ot.on(o,{name:Nm,callback(){ot.emit(o,Ho,h.value)}}),ot.on(o,{name:Ns,callback:()=>{D.value=`_article-key_${Ro()}`,H()}})}),i.onBeforeUnmount(()=>{E(),X(),clearTimeout(W)}),{html:S,key:D}},Ip=(e,t)=>{const n=i.inject("editorId"),r=i.inject("setting"),{noImgZoomIn:o}=e,u=wm(()=>{const a=document.querySelectorAll(`#${n}-preview img:not(.not-zoom):not(.medium-zoom-image)`);a.length!==0&&ep(a,{background:"#00000073"})});i.onMounted(async()=>{!o&&r.value.preview&&await u()}),i.watch([t,()=>r.value.preview],async()=>{!o&&r.value.preview&&await u()})},$s={checked:{regexp:/- \[x\]/,value:"- [ ]"},unChecked:{regexp:/- \[\s\]/,value:"- [x]"}},Op=(e,t)=>{const n=i.inject("editorId"),r=i.inject("rootRef");let o=()=>{};const u=()=>{if(!r.value)return!1;const a=r.value.querySelectorAll(".task-list-item.enabled"),s=l=>{var m;l.preventDefault();const d=l.target.checked?"unChecked":"checked",f=(m=l.target.parentElement)==null?void 0:m.dataset.line;if(!f)return;const c=Number(f),h=e.modelValue.split(`
100
+ `),p=h[Number(c)].replace($s[d].regexp,$s[d].value);e.previewOnly?(h[Number(c)]=p,e.onChange(h.join(`
101
+ `))):ot.emit(n,Tm,c+1,p)};a.forEach(l=>{l.addEventListener("click",s)}),o=()=>{a.forEach(l=>{l.removeEventListener("click",s)})}};i.onBeforeUnmount(()=>{o()}),i.watch([t],()=>{o(),i.nextTick(u)},{immediate:!0})},Lp=(e,t,n)=>{const r=i.inject("setting"),o=()=>{i.nextTick(()=>{var a;(a=e.onRemount)==null||a.call(e)})},u=a=>{a&&o()};i.watch([t,n],o),i.watch(()=>r.value.preview,u),i.watch(()=>r.value.htmlPreview,u),i.onMounted(o)},Us={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}};({...Us});const Ws=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes)},Vp=(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,Pp=i.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=i.ref(),n=e.html,r=(o,u)=>{if(!t.value)return;const a=t.value,s=Array.from(a.childNodes),l=Math.min(o.length,u.length);let d=-1;for(let c=0;c<l;c++)if(!Vp(o[c],u[c])){d=c;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 c=s.length-1;c>=f;c--)s[c].remove();for(let c=d;c<o.length;c++)a.appendChild(o[c].cloneNode(!0))};return i.watch(()=>e.html,(o,u)=>{const a=Ws(o),s=Ws(u||"");r(a,s)}),()=>i.createVNode("div",{id:e.id,class:e.class,innerHTML:n,ref:t},null)}}),Rp=i.defineComponent({name:"ContentPreview",props:Us,setup(e){const t=i.inject("editorId"),n=i.inject("setting"),r=i.inject("previewTheme"),o=i.inject("showCodeRowNumber"),{html:u,key:a}=Tp(e,e.previewOnly);op(e,u,a),Ip(e,u),Op(e,u),Lp(e,u,a);const s=i.computed(()=>[`${Z}-preview`,`${r==null?void 0:r.value}-theme`,o&&`${Z}-scrn`].filter(Boolean)),l=()=>{const d=`${t}-preview`;return e.previewComponent?i.h(e.previewComponent,{key:a.value,html:u.value,id:d,class:s.value}):i.createVNode(Pp,{key:a.value,html:u.value,id:d,class:s.value},null)};return()=>i.createVNode(i.Fragment,null,[n.value.preview&&(e.previewOnly?l():i.createVNode("div",{id:`${t}-preview-wrapper`,class:`${Z}-preview-wrapper`,key:"content-preview-wrapper"},[l()])),n.value.htmlPreview&&i.createVNode("div",{id:`${t}-html-wrapper`,class:`${Z}-preview-wrapper`,key:"html-preview-wrapper"},[i.createVNode("div",{class:`${Z}-html`},[u.value])])])}}),Mp=({text:e})=>e,Gs={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:Mp},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}};({...Gs});const Xs=["onHtmlChanged","onGetCatalog","onChange","onRemount","update:modelValue"];[...Xs];const Bp=(e,t,n)=>{const{editorId:r}=n,o={rerender(){ot.emit(r,Ns)}};t.expose(o)},wu=i.defineComponent({name:"MdPreview",props:Gs,emits:Xs,setup(e,t){const{noKatex:n,noMermaid:r,noHighlight:o}=e,u=i.ref(),a=up(e);rp(e,{rootRef:u,editorId:a}),Bp(e,t,{editorId:a}),i.onBeforeUnmount(()=>{ot.clear(a)});const s=c=>{var h;(h=e.onChange)==null||h.call(e,c),t.emit("onChange",c),t.emit("update:modelValue",c)},l=c=>{var h;(h=e.onHtmlChanged)==null||h.call(e,c),t.emit("onHtmlChanged",c)},d=c=>{var h;(h=e.onGetCatalog)==null||h.call(e,c),t.emit("onGetCatalog",c)},f=()=>{var c;(c=e.onRemount)==null||c.call(e),t.emit("onRemount")};return()=>i.createVNode("div",{id:a,class:[Z,e.class,e.theme==="dark"&&`${Z}-dark`,`${Z}-previewOnly`],style:e.style,ref:u},[i.createVNode(Rp,{modelValue:e.modelValue,onChange:s,onHtmlChanged:l,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)])}});wu.install=e=>(e.component(wu.name,wu),e);const zp={onClick:{type:Function,default:void 0},language:{type:String,default:void 0},theme:{type:String,default:void 0},disabled:{type:Boolean,default:void 0}},Wo=i.defineComponent({name:"NormalFooterToolbar",props:zp,emits:["onClick"],setup(e,t){return()=>{const n=Fm({props:e,ctx:t});return i.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])}}});Wo.install=e=>(e.component(Wo.name,Wo),e);var Go={exports:{}},pe={},Xo={exports:{}},rn={},qs;function Zs(){if(qs)return rn;qs=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,a,s){}function n(u,a,s){}var r=/javascript\s*\:/img;function o(u,a){return r.test(a)?"":a}return rn.whiteList=e(),rn.getDefaultWhiteList=e,rn.onAttr=t,rn.onIgnoreAttr=n,rn.safeAttrValue=o,rn}var Ys,Ks;function Qs(){return Ks||(Ks=1,Ys={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,"")}}),Ys}var qo,Js;function jp(){if(Js)return qo;Js=1;var e=Qs();function t(n,r){n=e.trimRight(n),n[n.length-1]!==";"&&(n+=";");var o=n.length,u=!1,a=0,s=0,l="";function d(){if(!u){var h=e.trim(n.slice(a,s)),p=h.indexOf(":");if(p!==-1){var m=e.trim(h.slice(0,p)),v=e.trim(h.slice(p+1));if(m){var x=r(a,l.length,m,v,h);x&&(l+=x+"; ")}}}a=s+1}for(;s<o;s++){var f=n[s];if(f==="/"&&n[s+1]==="*"){var c=n.indexOf("*/",s+2);if(c===-1)break;s=c+1,a=s+1,u=!1}else f==="("?u=!0:f===")"?u=!1:f===";"?u||d():f===`
102
+ `&&d()}return e.trim(l)}return qo=t,qo}var Zo,el;function Hp(){if(el)return Zo;el=1;var e=Zs(),t=jp();Qs();function n(u){return u==null}function r(u){var a={};for(var s in u)a[s]=u[s];return a}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 a=this,s=a.options,l=s.whiteList,d=s.onAttr,f=s.onIgnoreAttr,c=s.safeAttrValue,h=t(u,function(p,m,v,x,y){var g=l[v],b=!1;if(g===!0?b=g:typeof g=="function"?b=g(x):g instanceof RegExp&&(b=g.test(x)),b!==!0&&(b=!1),x=c(v,x),!!x){var w={position:m,sourcePosition:p,source:y,isWhite:b};if(b){var k=d(v,x,w);return n(k)?v+":"+x:k}else{var k=f(v,x,w);if(!n(k))return k}}});return h},Zo=o,Zo}var tl;function Yo(){return tl||(tl=1,function(e,t){var n=Zs(),r=Hp();function o(a,s){var l=new r(s);return l.process(a)}t=e.exports=o,t.FilterCSS=r;for(var u in n)t[u]=n[u];typeof window<"u"&&(window.filterCSS=e.exports)}(Xo,Xo.exports)),Xo.exports}var nl,rl;function Ko(){return rl||(rl=1,nl={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}}),nl}var ul;function ol(){if(ul)return pe;ul=1;var e=Yo().FilterCSS,t=Yo().getDefaultWhiteList,n=Ko();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(N,C,F){}function a(N,C,F){}function s(N,C,F){}function l(N,C,F){}function d(N){return N.replace(c,"&lt;").replace(h,"&gt;")}function f(N,C,F,P){if(F=j(F),C==="href"||C==="src"){if(F=n.trim(F),F==="#")return"#";if(!(F.substr(0,7)==="http://"||F.substr(0,8)==="https://"||F.substr(0,7)==="mailto:"||F.substr(0,4)==="tel:"||F.substr(0,11)==="data:image/"||F.substr(0,6)==="ftp://"||F.substr(0,2)==="./"||F.substr(0,3)==="../"||F[0]==="#"||F[0]==="/"))return""}else if(C==="background"){if(g.lastIndex=0,g.test(F))return""}else if(C==="style"){if(b.lastIndex=0,b.test(F)||(w.lastIndex=0,w.test(F)&&(g.lastIndex=0,g.test(F))))return"";P!==!1&&(P=P||o,F=P.process(F))}return F=B(F),F}var c=/</g,h=/>/g,p=/"/g,m=/&quot;/g,v=/&#([a-zA-Z0-9]*);?/gim,x=/&colon;?/gim,y=/&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,b=/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 k(N){return N.replace(p,"&quot;")}function D(N){return N.replace(m,'"')}function S(N){return N.replace(v,function(C,F){return F[0]==="x"||F[0]==="X"?String.fromCharCode(parseInt(F.substr(1),16)):String.fromCharCode(parseInt(F,10))})}function E(N){return N.replace(x,":").replace(y," ")}function X(N){for(var C="",F=0,P=N.length;F<P;F++)C+=N.charCodeAt(F)<32?" ":N.charAt(F);return n.trim(C)}function j(N){return N=D(N),N=S(N),N=E(N),N=X(N),N}function B(N){return N=k(N),N=d(N),N}function H(){return""}function L(N,C){typeof C!="function"&&(C=function(){});var F=!Array.isArray(N);function P(T){return F?!0:n.indexOf(N,T)!==-1}var M=[],z=!1;return{onIgnoreTag:function(T,V,O){if(P(T))if(O.isClosing){var I="[/removed]",$=O.position+I.length;return M.push([z!==!1?z:O.position,$]),z=!1,I}else return z||(z=O.position),"[removed]";else return C(T,V,O)},remove:function(T){var V="",O=0;return n.forEach(M,function(I){V+=T.slice(O,I[0]),O=I[1]}),V+=T.slice(O),V}}}function W(N){for(var C="",F=0;F<N.length;){var P=N.indexOf("<!--",F);if(P===-1){C+=N.slice(F);break}C+=N.slice(F,P);var M=N.indexOf("-->",P);if(M===-1)break;F=M+3}return C}function G(N){var C=N.split("");return C=C.filter(function(F){var P=F.charCodeAt(0);return P===127?!1:P<=31?P===10||P===13:!0}),C.join("")}return pe.whiteList=r(),pe.getDefaultWhiteList=r,pe.onTag=u,pe.onIgnoreTag=a,pe.onTagAttr=s,pe.onIgnoreTagAttr=l,pe.safeAttrValue=f,pe.escapeHtml=d,pe.escapeQuote=k,pe.unescapeQuote=D,pe.escapeHtmlEntities=S,pe.escapeDangerHtml5Entities=E,pe.clearNonPrintableCharacter=X,pe.friendlyAttrValue=j,pe.escapeAttrValue=B,pe.onIgnoreTagStripAll=H,pe.StripTagBody=L,pe.stripCommentTag=W,pe.stripBlankChar=G,pe.attributeWrapSign='"',pe.cssFilter=o,pe.getDefaultCSSWhiteList=t,pe}var xu={},il;function al(){if(il)return xu;il=1;var e=Ko();function t(c){var h=e.spaceIndex(c),p;return h===-1?p=c.slice(1,-1):p=c.slice(1,h+1),p=e.trim(p).toLowerCase(),p.slice(0,1)==="/"&&(p=p.slice(1)),p.slice(-1)==="/"&&(p=p.slice(0,-1)),p}function n(c){return c.slice(0,2)==="</"}function r(c,h,p){var m="",v=0,x=!1,y=!1,g=0,b=c.length,w="",k="";e:for(g=0;g<b;g++){var D=c.charAt(g);if(x===!1){if(D==="<"){x=g;continue}}else if(y===!1){if(D==="<"){m+=p(c.slice(v,g)),x=g,v=g;continue}if(D===">"||g===b-1){m+=p(c.slice(v,x)),k=c.slice(x,g+1),w=t(k),m+=h(x,m.length,w,k,n(k)),v=g+1,x=!1;continue}if(D==='"'||D==="'")for(var S=1,E=c.charAt(g-S);E.trim()===""||E==="=";){if(E==="="){y=D;continue e}E=c.charAt(g-++S)}}else if(D===y){y=!1;continue}}return v<b&&(m+=p(c.substr(v))),m}var o=/[^a-zA-Z0-9\\_:.-]/gim;function u(c,h){var p=0,m=0,v=[],x=!1,y=c.length;function g(S,E){if(S=e.trim(S),S=S.replace(o,"").toLowerCase(),!(S.length<1)){var X=h(S,E||"");X&&v.push(X)}}for(var b=0;b<y;b++){var w=c.charAt(b),k,D;if(x===!1&&w==="="){x=c.slice(p,b),p=b+1,m=c.charAt(p)==='"'||c.charAt(p)==="'"?p:s(c,b+1);continue}if(x!==!1&&b===m){if(D=c.indexOf(w,b+1),D===-1)break;k=e.trim(c.slice(m+1,D)),g(x,k),x=!1,b=D,p=b+1;continue}if(/\s|\n|\t/.test(w))if(c=c.replace(/\s|\n|\t/g," "),x===!1)if(D=a(c,b),D===-1){k=e.trim(c.slice(p,b)),g(k),x=!1,p=b+1;continue}else{b=D-1;continue}else if(D=l(c,b-1),D===-1){k=e.trim(c.slice(p,b)),k=f(k),g(x,k),x=!1,p=b+1;continue}else continue}return p<c.length&&(x===!1?g(c.slice(p)):g(x,f(e.trim(c.slice(p))))),e.trim(v.join(" "))}function a(c,h){for(;h<c.length;h++){var p=c[h];if(p!==" ")return p==="="?h:-1}}function s(c,h){for(;h<c.length;h++){var p=c[h];if(p!==" ")return p==="'"||p==='"'?h:-1}}function l(c,h){for(;h>0;h--){var p=c[h];if(p!==" ")return p==="="?h:-1}}function d(c){return c[0]==='"'&&c[c.length-1]==='"'||c[0]==="'"&&c[c.length-1]==="'"}function f(c){return d(c)?c.substr(1,c.length-2):c}return xu.parseTag=r,xu.parseAttr=u,xu}var Qo,sl;function $p(){if(sl)return Qo;sl=1;var e=Yo().FilterCSS,t=ol(),n=al(),r=n.parseTag,o=n.parseAttr,u=Ko();function a(c){return c==null}function s(c){var h=u.spaceIndex(c);if(h===-1)return{html:"",closing:c[c.length-2]==="/"};c=u.trim(c.slice(h+1,-1));var p=c[c.length-1]==="/";return p&&(c=u.trim(c.slice(0,-1))),{html:c,closing:p}}function l(c){var h={};for(var p in c)h[p]=c[p];return h}function d(c){var h={};for(var p in c)Array.isArray(c[p])?h[p.toLowerCase()]=c[p].map(function(m){return m.toLowerCase()}):h[p.toLowerCase()]=c[p];return h}function f(c){c=l(c||{}),c.stripIgnoreTag&&(c.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),c.onIgnoreTag=t.onIgnoreTagStripAll),c.whiteList||c.allowList?c.whiteList=d(c.whiteList||c.allowList):c.whiteList=t.whiteList,this.attributeWrapSign=c.singleQuotedAttributeValue===!0?"'":t.attributeWrapSign,c.onTag=c.onTag||t.onTag,c.onTagAttr=c.onTagAttr||t.onTagAttr,c.onIgnoreTag=c.onIgnoreTag||t.onIgnoreTag,c.onIgnoreTagAttr=c.onIgnoreTagAttr||t.onIgnoreTagAttr,c.safeAttrValue=c.safeAttrValue||t.safeAttrValue,c.escapeHtml=c.escapeHtml||t.escapeHtml,this.options=c,c.css===!1?this.cssFilter=!1:(c.css=c.css||{},this.cssFilter=new e(c.css))}return f.prototype.process=function(c){if(c=c||"",c=c.toString(),!c)return"";var h=this,p=h.options,m=p.whiteList,v=p.onTag,x=p.onIgnoreTag,y=p.onTagAttr,g=p.onIgnoreTagAttr,b=p.safeAttrValue,w=p.escapeHtml,k=h.attributeWrapSign,D=h.cssFilter;p.stripBlankChar&&(c=t.stripBlankChar(c)),p.allowCommentTag||(c=t.stripCommentTag(c));var S=!1;p.stripIgnoreTagBody&&(S=t.StripTagBody(p.stripIgnoreTagBody,x),x=S.onIgnoreTag);var E=r(c,function(X,j,B,H,L){var W={sourcePosition:X,position:j,isClosing:L,isWhite:Object.prototype.hasOwnProperty.call(m,B)},G=v(B,H,W);if(!a(G))return G;if(W.isWhite){if(W.isClosing)return"</"+B+">";var N=s(H),C=m[B],F=o(N.html,function(P,M){var z=u.indexOf(C,P)!==-1,T=y(B,P,M,z);return a(T)?z?(M=b(B,P,M,D),M?P+"="+k+M+k:P):(T=g(B,P,M,z),a(T)?void 0:T):T});return H="<"+B,F&&(H+=" "+F),N.closing&&(H+=" /"),H+=">",H}else return G=x(B,H,W),a(G)?w(H):G},w);return S&&(E=S.remove(E)),E},Qo=f,Qo}var ll;function Up(){return ll||(ll=1,function(e,t){var n=ol(),r=al(),o=$p();function u(s,l){var d=new o(l);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 l in r)t[l]=r[l]}(),typeof window<"u"&&(window.filterXSS=e.exports);function a(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}a()&&(self.filterXSS=e.exports)}(Go,Go.exports)),Go.exports}Up();const un=i.defineComponent({name:"FMarkdownPreview",props:Ss,setup(e){return()=>i.createVNode("div",{class:"f-markdown-preview-container"},[i.createVNode(wu,{modelValue:e.content},null)])}});un.install=e=>{e.component(un.name,un)};const Jo="farris-x-preview-bridge",ei=1,ti="assistant.message";function cl(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e,content:e.content}}}function dl(e){return e!==null&&typeof e=="object"}function fl(e){if(!dl(e)||e.source!==Jo||e.v!==ei||e.type!==ti)return!1;const t=e.payload;return!(!dl(t)||typeof t.messageId!="string"||t.messageId.length===0||t.role!=="user"&&t.role!=="assistant")}function Wp(e,t){return!!(e.source===window.parent||t&&e.source===window.top||e.source===window)}function hl(e,t,n){const r=cl(n);try{return e.postMessage({source:Jo,v:ei,type:ti,payload:r},t),!0}catch{return!1}}function ml(e){const t=e.allowTopAsSource!==!1,n=r=>{var o;Wp(r,t)&&(e.allowedParentOrigins&&e.allowedParentOrigins.length>0&&!e.allowedParentOrigins.includes(r.origin)||fl(r.data)&&((o=e.onAssistantMessage)==null||o.call(e,r.data.payload)))};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)}const Gp="/platform/common/web/renderer/index.html#/preview",Xp="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components/Contacts.frm",qp="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components",Zp="67441dbb-0219-46f2-b247-51555c317995";function pl(e){if(e.url)return e.url;const t=e.baseUri??Gp,n=e.metadataPath??Xp,r=e.projectPath??qp,o=e.baseMetadataId??Zp;return`${t}?metadataPath=${encodeURIComponent(n)}&projectPath=${encodeURIComponent(r)}&baseMetadataId=${encodeURIComponent(o)}`}function Yp(e){if(typeof window>"u")return null;if(e.postMessageTargetOrigin)return e.postMessageTargetOrigin;try{const t=pl(e),n=new URL(t,window.location.href).origin;return n==="null"||n===""?window.location.origin:n}catch{return null}}const dr=i.defineComponent({name:"ChatPreview",props:_s,setup(e,{expose:t}){const n=i.ref(null),r=i.ref(null),o=i.ref(!1),u=i.ref(!1),a=i.computed(()=>pl(e.previewConfig??{})),s=i.computed(()=>{var N;return((N=e.previewConfig)==null?void 0:N.contentType)==="markdown"}),l=i.computed(()=>{var N;return Object.keys(((N=e.previewConfig)==null?void 0:N.contentMap)??{})}),d=i.computed(()=>l.value.filter(N=>N).length>0),f=i.ref(),c=i.ref(),h=i.ref(!1);let p=null;i.onBeforeUnmount(()=>{p==null||p(),p=null,H()}),i.watch(()=>[a.value,n.value,s.value],()=>{if(p==null||p(),p=null,s.value)return;const N=n.value;if(!N)return;h.value=!1,o.value=!1,u.value=!1;const C=Date.now(),F=200,P=300,M=1e4;let z=!1,T=null,V=null;V=window.setTimeout(()=>{V=null,z||(u.value=!0)},F);const O=()=>{if(z)return;if(z=!0,T&&(window.clearTimeout(T),T=null),V&&(window.clearTimeout(V),V=null),h.value=!0,L(N),u.value){const J=Date.now()-C,K=Math.max(0,P-J);setTimeout(()=>{o.value=!0},K)}else o.value=!0;const $=()=>{var J;return(J=e.onIframeLoad)==null?void 0:J.call(e)};$(),window.setTimeout($,0),window.setTimeout($,120)},I=()=>{var $;z||(z=!0,V&&(window.clearTimeout(V),V=null),console.warn("ChatPreview: iframe load timeout"),h.value=!0,o.value=!0,($=e.onIframeLoad)==null||$.call(e))};N.addEventListener("load",O,{once:!0}),T=window.setTimeout(I,M),p=()=>{N.removeEventListener("load",O),T&&(window.clearTimeout(T),T=null),V&&(window.clearTimeout(V),V=null)}},{flush:"post"}),i.watch([s,()=>{var N;return(N=e.previewConfig)==null?void 0:N.contentMap}],()=>{H(),s.value&&i.nextTick(()=>B())},{flush:"post"}),i.watch(()=>{var N;return(N=e.previewConfig)==null?void 0:N.contentMap},N=>{if(N){const C=Object.keys(N);f.value=C[0]??""}else f.value="";m()},{immediate:!0});function m(N){var C,F;N&&(f.value=N),d.value&&f.value?c.value=((F=(C=e.previewConfig)==null?void 0:C.contentMap)==null?void 0:F[f.value])||"":c.value=""}function v(N){var P;if(s.value||!h.value)return!1;const C=(P=n.value)==null?void 0:P.contentWindow;if(!C)return!1;const F=Yp(e.previewConfig??{});return F?hl(C,F,N):!1}t({postAssistantPayload:v});const x=i.ref(!1);let y=null;const g=800;function b(){x.value=!0,j(!0),y!=null&&(window.clearTimeout(y),y=null)}function w(){y!=null&&window.clearTimeout(y),y=window.setTimeout(()=>{x.value=!1,j(!1),y=null},g)}function k(){b(),w()}function D(){b()}function S(){w()}let E=[];function X(){const N=r.value;if(!N)return[];const C=[],F=N.querySelectorAll(".f-markdown-preview-container");return F.length>0&&F.forEach(P=>C.push(P)),C.length===0&&N.scrollHeight>N.clientHeight&&C.push(N),C}function j(N){const C=r.value;C&&C.querySelectorAll(".f-markdown-preview-container").forEach(F=>{F.classList.toggle("f-chat-preview-scrollbar-visible",N)})}function B(){const N=X();E=N,N.forEach(C=>{C.addEventListener("scroll",k,{passive:!0}),C.addEventListener("mouseenter",D),C.addEventListener("mouseleave",S)})}function H(){E.forEach(N=>{N.removeEventListener("scroll",k),N.removeEventListener("mouseenter",D),N.removeEventListener("mouseleave",S)}),E=[]}function L(N){try{const C=N.contentDocument;if(!C)return;const F="f-chat-preview-injected-scrollbar-style";if(C.getElementById(F))return;const P=C.createElement("style");P.id=F,P.textContent=`
103
103
  html, body {
104
104
  scrollbar-width: thin;
105
105
  scrollbar-color: transparent transparent;
@@ -146,8 +146,8 @@ See: https://github.com/francoischalifour/medium-zoom`)}},Qm=function(t){var n=d
146
146
  document.addEventListener('mouseenter', show);
147
147
  document.addEventListener('mouseleave', scheduleHide);
148
148
  })();
149
- `,(C.head||C.documentElement).appendChild(z)}catch{}}const W=()=>{var T;return i.createVNode("div",{class:"f-chat-preview-header"},[i.createVNode("div",{class:"f-chat-preview-header-left"},[i.createVNode("button",{class:"f-chat-preview-preview-btn"},[i.createVNode("i",{class:"fx-icon fx-icon-card_info"},null),i.createVNode("span",{class:"f-chat-preview-preview-text"},[((T=e.previewConfig)==null?void 0:T.title)||"预览"])])]),i.createVNode("div",{class:"f-chat-preview-header-right"},[i.createVNode("button",{class:"f-chat-preview-tool-btn",title:"关闭预览","aria-label":"关闭预览",onClick:()=>{var C;return(C=e.onClose)==null?void 0:C.call(e)}},[i.createVNode("i",{class:"fx-icon fx-icon-sidewindow_close"},null)])])])},G=()=>{var T;return d.value?c.value?i.createVNode("div",{class:"d-flex"},[i.createVNode(Cn,{class:"f-chat-content-main-layout",direction:"row"},{default:()=>[i.createVNode(lr,{position:"center",resizable:!1,minWidth:100,class:"f-chat-content-main-left"},{default:()=>[i.createVNode("div",{class:"f-chat-preview-content-nav"},[i.createVNode("div",{class:"f-chat-preview-content-nav-title"},[i.createTextVNode("全部文件")]),i.createVNode("div",{class:"f-chat-preview-content-nav-content"},[l.value.map((C,D)=>i.createVNode("div",{key:D,class:["f-chat-preview-content-nav-item",C===f.value?"active-nav-item":""],title:C,onClick:()=>m(C)},[C]))])])]}),i.createVNode(lr,{position:"right",resizable:!0,width:600,class:"f-chat-preview-pane-right"},{default:()=>[i.createVNode(un,{content:c.value},null)]})]})]):null:i.createVNode(un,{content:((T=e.previewConfig)==null?void 0:T.content)??""},null)};return()=>i.createVNode("div",{class:"f-chat-preview"},[W(),i.createVNode("div",{ref:r,class:"f-chat-preview-content",style:{overflow:s.value?"auto":"hidden"}},[s.value?G():i.createVNode(i.Fragment,null,[i.withDirectives(i.createVNode("div",{class:["f-chat-preview-skeleton",{"f-chat-preview-skeleton--fade-out":o.value}]},[i.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"60%"}},null),i.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"80%"}},null),i.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"45%"}},null),i.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"70%"}},null),i.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"55%"}},null)]),[[i.vShow,u.value]]),i.createVNode("iframe",{ref:n,name:"preview-iframe",title:"preview-iframe",src:a.value,class:["f-chat-preview-iframe",{"f-chat-preview-iframe--visible":o.value}]},null)])])])}});function Kp(e,t){const n=typeof window<"u"?window.AgentWorkbenchSDK:void 0;if(!n){console.warn("[AgentWorkbenchSDK] invoke: window.AgentWorkbenchSDK is not available");return}try{const r=n[e];if(typeof r!="function"){console.warn("[AgentWorkbenchSDK] invoke: not a function:",e);return}return r(...t??[])}catch(r){console.warn("[AgentWorkbenchSDK] invoke error:",e,r);return}}function Qp(e){return hl(e)}let Jp=0;const fr=[];function on(){var e;return((e=fr[fr.length-1])==null?void 0:e.h)??{}}function e1(e){const t=++Jp;return fr.push({id:t,h:e}),()=>{const n=fr.findIndex(r=>r.id===t);n>=0&&fr.splice(n,1)}}const t1={showPreview(e){var t,n;(n=(t=on()).showPreview)==null||n.call(t,e)},replaceRightPreview(e){var t,n;(n=(t=on()).showPreview)==null||n.call(t,e)},closePreviewPane(){var e,t;(t=(e=on()).closePreviewPane)==null||t.call(e)},closeRightPreview(){var e,t;(t=(e=on()).closeRightPreview)==null||t.call(e)},showFullScreenPreview(e){var t,n;(n=(t=on()).showFullScreenPreview)==null||n.call(t,e)},closeFullScreenPreview(){var e,t;(t=(e=on()).closeFullScreenPreview)==null||t.call(e)},isPreviewLayoutActive(){return typeof on().showPreview=="function"}};dr.install=e=>{e.component(dr.name,dr)};const pl={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}},hr=i.defineComponent({name:"FXConfirmDialog",props:pl,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 a(s){e.closeOnMask&&s.target===s.currentTarget&&o()}return()=>e.modelValue?i.createVNode(i.Teleport,{to:"body"},{default:()=>[i.createVNode("div",{class:"f-chat-confirm-dialog-mask",onClick:a},[i.createVNode("div",{class:"f-chat-confirm-dialog"},[i.createVNode("div",{class:"f-chat-confirm-dialog--content d-flex flex-row"},[i.createVNode("div",{class:"f-chat-confirm-dialog--icon type-warning"},[i.createVNode("i",{class:"fx-icon fx-icon-warning"},null)]),i.createVNode("div",{class:"f-chat-confirm-dialog--main"},[n.title||e.title?i.createVNode("div",{class:"f-chat-confirm-dialog--title"},[n.title?n.title():e.title]):null,n.default||e.description?i.createVNode("div",{class:"f-chat-confirm-dialog--description"},[n.default?n.default():e.description]):null])]),i.createVNode("div",{class:["f-chat-confirm-dialog--actions",{"with-divider":e.showDivider}]},[i.createVNode("button",{type:"button",class:"f-chat-confirm-dialog--btn f-chat-confirm-dialog-btn-cancel",onClick:o},[e.cancelText]),i.createVNode("button",{type:"button",class:"f-chat-confirm-dialog--btn f-chat-confirm-dialog-btn-confirm",onClick:u},[e.confirmText])])])])]}):null}});hr.install=e=>{e.component(hr.name,hr)};function gl(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 n1(e){if(Array.isArray(e))return e}function r1(e,t,n){return(t=c1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u1(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,u,a,s=[],l=!0,d=!1;try{if(u=(n=n.call(e)).next,t!==0)for(;!(l=(r=u.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){d=!0,o=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw o}}return s}}function o1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
150
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bl(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 yl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bl(Object(n),!0).forEach(function(r){r1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function i1(e,t){if(e==null)return{};var n,r,o=a1(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 a1(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 s1(e,t){return n1(e)||u1(e,t)||d1(e,t)||o1()}function l1(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 c1(e){var t=l1(e,"string");return typeof t=="symbol"?t:t+""}function d1(e,t){if(e){if(typeof e=="string")return gl(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)?gl(e,t):void 0}}function f1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wl(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 xl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wl(Object(n),!0).forEach(function(r){f1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function h1(){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 mr(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 a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(n,[].concat(o,s))}}}function vu(e){return{}.toString.call(e).includes("Object")}function m1(e){return!Object.keys(e).length}function pr(e){return typeof e=="function"}function p1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function g1(e,t){return vu(t)||Xt("changeType"),Object.keys(t).some(function(n){return!p1(e,n)})&&Xt("changeField"),t}function b1(e){pr(e)||Xt("selectorType")}function y1(e){pr(e)||vu(e)||Xt("handlerType"),vu(e)&&Object.values(e).some(function(t){return!pr(t)})&&Xt("handlersType")}function w1(e){e||Xt("initialIsRequired"),vu(e)||Xt("initialType"),m1(e)&&Xt("initialContent")}function x1(e,t){throw new Error(e[t]||e.default)}var v1={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"},Xt=mr(x1)(v1),Au={changes:g1,selector:b1,handler:y1,initial:w1};function A1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Au.initial(e),Au.handler(t);var n={current:e},r=mr(E1)(n,t),o=mr(C1)(n),u=mr(Au.changes)(e),a=mr(k1)(n);function s(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(f){return f};return Au.selector(d),d(n.current)}function l(d){h1(r,o,u,a)(d)}return[s,l]}function k1(e,t){return pr(t)?t(e.current):t}function C1(e,t){return e.current=xl(xl({},e.current),t),t}function E1(e,t,n){return pr(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 _1={create:A1},S1={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function D1(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 a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(n,[].concat(o,s))}}}function F1(e){return{}.toString.call(e).includes("Object")}function T1(e){return e||Al("configIsRequired"),F1(e)||Al("configType"),e.urls?(N1(),{paths:{vs:e.urls.monacoBase}}):e}function N1(){console.warn(vl.deprecation)}function I1(e,t){throw new Error(e[t]||e.default)}var vl={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!
149
+ `,(C.head||C.documentElement).appendChild(z)}catch{}}const W=()=>{var N;return i.createVNode("div",{class:"f-chat-preview-header"},[i.createVNode("div",{class:"f-chat-preview-header-left"},[i.createVNode("button",{class:"f-chat-preview-preview-btn"},[i.createVNode("i",{class:"fx-icon fx-icon-card_info"},null),i.createVNode("span",{class:"f-chat-preview-preview-text"},[((N=e.previewConfig)==null?void 0:N.title)||"预览"])])]),i.createVNode("div",{class:"f-chat-preview-header-right"},[i.createVNode("button",{class:"f-chat-preview-tool-btn",title:"关闭预览","aria-label":"关闭预览",onClick:()=>{var C;return(C=e.onClose)==null?void 0:C.call(e)}},[i.createVNode("i",{class:"fx-icon fx-icon-sidewindow_close"},null)])])])},G=()=>{var N;return d.value?c.value?i.createVNode("div",{class:"d-flex"},[i.createVNode(Cn,{class:"f-chat-content-main-layout",direction:"row"},{default:()=>[i.createVNode(lr,{position:"center",resizable:!1,minWidth:100,class:"f-chat-content-main-left"},{default:()=>[i.createVNode("div",{class:"f-chat-preview-content-nav"},[i.createVNode("div",{class:"f-chat-preview-content-nav-title"},[i.createTextVNode("全部文件")]),i.createVNode("div",{class:"f-chat-preview-content-nav-content"},[l.value.map((C,F)=>i.createVNode("div",{key:F,class:["f-chat-preview-content-nav-item",C===f.value?"active-nav-item":""],title:C,onClick:()=>m(C)},[C]))])])]}),i.createVNode(lr,{position:"right",resizable:!0,width:600,class:"f-chat-preview-pane-right"},{default:()=>[i.createVNode(un,{content:c.value},null)]})]})]):null:i.createVNode(un,{content:((N=e.previewConfig)==null?void 0:N.content)??""},null)};return()=>i.createVNode("div",{class:"f-chat-preview"},[W(),i.createVNode("div",{ref:r,class:"f-chat-preview-content",style:{overflow:s.value?"auto":"hidden"}},[s.value?G():i.createVNode(i.Fragment,null,[i.withDirectives(i.createVNode("div",{class:["f-chat-preview-skeleton",{"f-chat-preview-skeleton--fade-out":o.value}]},[i.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"60%"}},null),i.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"80%"}},null),i.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"45%"}},null),i.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"70%"}},null),i.createVNode("div",{class:"f-chat-preview-skeleton-line",style:{width:"55%"}},null)]),[[i.vShow,u.value]]),i.createVNode("iframe",{ref:n,name:"preview-iframe",title:"preview-iframe",src:a.value,class:["f-chat-preview-iframe",{"f-chat-preview-iframe--visible":o.value}]},null)])])])}});function Kp(e,t){const n=typeof window<"u"?window.AgentWorkbenchSDK:void 0;if(!n){console.warn("[AgentWorkbenchSDK] invoke: window.AgentWorkbenchSDK is not available");return}try{const r=n[e];if(typeof r!="function"){console.warn("[AgentWorkbenchSDK] invoke: not a function:",e);return}return r(...t??[])}catch(r){console.warn("[AgentWorkbenchSDK] invoke error:",e,r);return}}function Qp(e){return ml(e)}let Jp=0;const fr=[];function on(){var e;return((e=fr[fr.length-1])==null?void 0:e.h)??{}}function e1(e){const t=++Jp;return fr.push({id:t,h:e}),()=>{const n=fr.findIndex(r=>r.id===t);n>=0&&fr.splice(n,1)}}const t1={showPreview(e){var t,n;(n=(t=on()).showPreview)==null||n.call(t,e)},replaceRightPreview(e){var t,n;(n=(t=on()).showPreview)==null||n.call(t,e)},closePreviewPane(){var e,t;(t=(e=on()).closePreviewPane)==null||t.call(e)},closeRightPreview(){var e,t;(t=(e=on()).closeRightPreview)==null||t.call(e)},showFullScreenPreview(e){var t,n;(n=(t=on()).showFullScreenPreview)==null||n.call(t,e)},closeFullScreenPreview(){var e,t;(t=(e=on()).closeFullScreenPreview)==null||t.call(e)},isPreviewLayoutActive(){return typeof on().showPreview=="function"}};dr.install=e=>{e.component(dr.name,dr)};const gl={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:!1}},hr=i.defineComponent({name:"FXConfirmDialog",props:gl,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 a(s){e.closeOnMask&&s.target===s.currentTarget&&o()}return()=>e.modelValue?i.createVNode(i.Teleport,{to:"body"},{default:()=>[i.createVNode("div",{class:"f-chat-confirm-dialog-mask",onClick:a},[i.createVNode("div",{class:"f-chat-confirm-dialog"},[i.createVNode("div",{class:"f-chat-confirm-dialog-body"},[i.createVNode("div",{class:"f-chat-confirm-dialog-header"},[i.createVNode("div",{class:"f-chat-confirm-dialog-icon","aria-hidden":"true"},[i.createVNode("svg",{class:"f-chat-confirm-dialog-icon-symbol",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[i.createVNode("rect",{x:"5.125",y:"1",width:"1.75",height:"7.25",rx:"0.875",fill:"#FFFFFF"},null),i.createVNode("circle",{cx:"6",cy:"10.5",r:"1",fill:"#FFFFFF"},null)])]),i.createVNode("div",{class:"f-chat-confirm-dialog-title"},[n.title?n.title():e.title])]),(n.default||e.description)&&i.createVNode("div",{class:"f-chat-confirm-dialog-description"},[n.default?n.default():e.description])]),i.createVNode("div",{class:["f-chat-confirm-dialog-actions",{"with-divider":e.showDivider}]},[i.createVNode("button",{type:"button",class:"f-chat-confirm-dialog-btn f-chat-confirm-dialog-btn-cancel",onClick:o},[e.cancelText]),i.createVNode("button",{type:"button",class:"f-chat-confirm-dialog-btn f-chat-confirm-dialog-btn-confirm",onClick:u},[e.confirmText])])])])]}):null}});hr.install=e=>{e.component(hr.name,hr)};function bl(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 n1(e){if(Array.isArray(e))return e}function r1(e,t,n){return(t=c1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u1(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,u,a,s=[],l=!0,d=!1;try{if(u=(n=n.call(e)).next,t!==0)for(;!(l=(r=u.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){d=!0,o=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw o}}return s}}function o1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
150
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yl(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 wl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yl(Object(n),!0).forEach(function(r){r1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function i1(e,t){if(e==null)return{};var n,r,o=a1(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 a1(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 s1(e,t){return n1(e)||u1(e,t)||d1(e,t)||o1()}function l1(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 c1(e){var t=l1(e,"string");return typeof t=="symbol"?t:t+""}function d1(e,t){if(e){if(typeof e=="string")return bl(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)?bl(e,t):void 0}}function f1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xl(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 vl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xl(Object(n),!0).forEach(function(r){f1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function h1(){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 mr(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 a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(n,[].concat(o,s))}}}function vu(e){return{}.toString.call(e).includes("Object")}function m1(e){return!Object.keys(e).length}function pr(e){return typeof e=="function"}function p1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function g1(e,t){return vu(t)||Xt("changeType"),Object.keys(t).some(function(n){return!p1(e,n)})&&Xt("changeField"),t}function b1(e){pr(e)||Xt("selectorType")}function y1(e){pr(e)||vu(e)||Xt("handlerType"),vu(e)&&Object.values(e).some(function(t){return!pr(t)})&&Xt("handlersType")}function w1(e){e||Xt("initialIsRequired"),vu(e)||Xt("initialType"),m1(e)&&Xt("initialContent")}function x1(e,t){throw new Error(e[t]||e.default)}var v1={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"},Xt=mr(x1)(v1),Au={changes:g1,selector:b1,handler:y1,initial:w1};function A1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Au.initial(e),Au.handler(t);var n={current:e},r=mr(E1)(n,t),o=mr(C1)(n),u=mr(Au.changes)(e),a=mr(k1)(n);function s(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(f){return f};return Au.selector(d),d(n.current)}function l(d){h1(r,o,u,a)(d)}return[s,l]}function k1(e,t){return pr(t)?t(e.current):t}function C1(e,t){return e.current=vl(vl({},e.current),t),t}function E1(e,t,n){return pr(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 _1={create:A1},S1={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function F1(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 a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(n,[].concat(o,s))}}}function D1(e){return{}.toString.call(e).includes("Object")}function N1(e){return e||kl("configIsRequired"),D1(e)||kl("configType"),e.urls?(T1(),{paths:{vs:e.urls.monacoBase}}):e}function T1(){console.warn(Al.deprecation)}function I1(e,t){throw new Error(e[t]||e.default)}var Al={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!
151
151
  You are using deprecated way of configuration.
152
152
 
153
153
  Instead of using
@@ -156,6 +156,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
156
156
  monaco.config({ paths: { vs: '...' } })
157
157
 
158
158
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
159
- `},Al=D1(I1)(vl),O1={config:T1},L1=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,a){return a(u)},o)}};function kl(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],kl(e[n],t[n]))}),yl(yl({},e),t)}var V1={type:"cancelation",msg:"operation is manually canceled"};function ni(e){var t=!1,n=new Promise(function(r,o){e.then(function(u){return t?o(V1):r(u)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var P1=["monaco"],R1=_1.create({config:S1,isInitialized:!1,resolve:null,reject:null,monaco:null}),Cl=s1(R1,2),gr=Cl[0],ku=Cl[1];function M1(e){var t=O1.config(e),n=t.monaco,r=i1(t,P1);ku(function(o){return{config:kl(o.config,r),monaco:n}})}function B1(){var e=gr(function(t){var n=t.monaco,r=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:r,resolve:o}});if(!e.isInitialized){if(ku({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),ni(ri);if(window.monaco&&window.monaco.editor)return El(window.monaco),e.resolve(window.monaco),ni(ri);L1(z1,H1)($1)}return ni(ri)}function z1(e){return document.body.appendChild(e)}function j1(e){var t=document.createElement("script");return e&&(t.src=e),t}function H1(e){var t=gr(function(r){var o=r.config,u=r.reject;return{config:o,reject:u}}),n=j1("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function $1(){var e=gr(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;El(r),e.resolve(r)},function(n){e.reject(n)})}function El(e){gr().monaco||ku({monaco:e})}function U1(){return gr(function(e){var t=e.monaco;return t})}var ri=new Promise(function(e,t){return ku({resolve:e,reject:t})}),W1={config:M1,init:B1,__getMonacoInstance:U1};const _l={content:{type:Object,required:!0}},Sl=20,G1=16,_n=180;function X1(e){typeof requestIdleCallback<"u"?requestIdleCallback(e,{timeout:500}):setTimeout(e,0)}const br=i.defineComponent({name:"FXCodingMessage",props:_l,setup(e){const t=i.ref(!0),n=i.ref(!1),r=i.ref(null),o=i.ref(null),u=i.ref(_n),a=i.ref(!1);function s(){t.value=!t.value}function l(){var g,b,w,k;const m=(g=e.content)==null?void 0:g.code;if(!m)return _n;const x=o.value;let y;if(x!=null&&x.getOriginalEditor&&(x!=null&&x.getModifiedEditor)){const F=((b=x.getOriginalEditor().getModel())==null?void 0:b.getLineCount())??0,S=((w=x.getModifiedEditor().getModel())==null?void 0:w.getLineCount())??0;y=F+S}else if(x!=null&&x.getModel)y=((k=x.getModel())==null?void 0:k.getLineCount())??0;else{const{value:F,originalValue:S}=m,E=(F||"").split(`
159
+ `},kl=F1(I1)(Al),O1={config:N1},L1=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,a){return a(u)},o)}};function Cl(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],Cl(e[n],t[n]))}),wl(wl({},e),t)}var V1={type:"cancelation",msg:"operation is manually canceled"};function ni(e){var t=!1,n=new Promise(function(r,o){e.then(function(u){return t?o(V1):r(u)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var P1=["monaco"],R1=_1.create({config:S1,isInitialized:!1,resolve:null,reject:null,monaco:null}),El=s1(R1,2),gr=El[0],ku=El[1];function M1(e){var t=O1.config(e),n=t.monaco,r=i1(t,P1);ku(function(o){return{config:Cl(o.config,r),monaco:n}})}function B1(){var e=gr(function(t){var n=t.monaco,r=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:r,resolve:o}});if(!e.isInitialized){if(ku({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),ni(ri);if(window.monaco&&window.monaco.editor)return _l(window.monaco),e.resolve(window.monaco),ni(ri);L1(z1,H1)($1)}return ni(ri)}function z1(e){return document.body.appendChild(e)}function j1(e){var t=document.createElement("script");return e&&(t.src=e),t}function H1(e){var t=gr(function(r){var o=r.config,u=r.reject;return{config:o,reject:u}}),n=j1("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function $1(){var e=gr(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;_l(r),e.resolve(r)},function(n){e.reject(n)})}function _l(e){gr().monaco||ku({monaco:e})}function U1(){return gr(function(e){var t=e.monaco;return t})}var ri=new Promise(function(e,t){return ku({resolve:e,reject:t})}),W1={config:M1,init:B1,__getMonacoInstance:U1};const Sl={content:{type:Object,required:!0}},Fl=20,G1=16,_n=180;function X1(e){typeof requestIdleCallback<"u"?requestIdleCallback(e,{timeout:500}):setTimeout(e,0)}const br=i.defineComponent({name:"FXCodingMessage",props:Sl,setup(e){const t=i.ref(!0),n=i.ref(!1),r=i.ref(null),o=i.ref(null),u=i.ref(_n),a=i.ref(!1);function s(){t.value=!t.value}function l(){var g,b,w,k;const m=(g=e.content)==null?void 0:g.code;if(!m)return _n;const x=o.value;let y;if(x!=null&&x.getOriginalEditor&&(x!=null&&x.getModifiedEditor)){const D=((b=x.getOriginalEditor().getModel())==null?void 0:b.getLineCount())??0,S=((w=x.getModifiedEditor().getModel())==null?void 0:w.getLineCount())??0;y=D+S}else if(x!=null&&x.getModel)y=((k=x.getModel())==null?void 0:k.getLineCount())??0;else{const{value:D,originalValue:S}=m,E=(D||"").split(`
160
160
  `).length,X=S?S.split(`
161
- `).length:0;y=S?X+E:E}return G1+y*Sl}const d=i.computed(()=>(o.value,l()>_n));function f(){n.value=!n.value,u.value=n.value?l():_n,h()}function c(){if(!o.value)return;o.value=null;const v=()=>{};typeof requestIdleCallback<"u"?requestIdleCallback(v,{timeout:100}):setTimeout(v,0)}function h(){if(a.value)return;const m=r.value,v=o.value;if(!m||!(v!=null&&v.layout))return;const x=m.clientWidth||m.offsetWidth,y=u.value;requestAnimationFrame(()=>{var g,b;a.value||!o.value||(b=(g=o.value)==null?void 0:g.layout)==null||b.call(g,{width:x,height:y})})}function p(){var m;a.value||!r.value||!((m=e.content)!=null&&m.code)||W1.init().then(v=>{var w;if(a.value||!r.value||!((w=e.content)!=null&&w.code))return;const{value:x,originalValue:y,language:g="typescript"}=e.content.code,b={readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,lineNumbers:"off",glyphMargin:!1,lineDecorationsWidth:0,folding:!1,renderLineHighlight:"none",fontSize:12,lineHeight:Sl,padding:{top:8,bottom:8}};if(y){const k=v.editor.createDiffEditor(r.value,{...b,renderSideBySide:!1,renderOverviewRuler:!1});k.setModel({original:v.editor.createModel(y,g),modified:v.editor.createModel(x,g)}),k.getOriginalEditor().updateOptions({minimap:{enabled:!1}}),k.getModifiedEditor().updateOptions({minimap:{enabled:!1}}),i.nextTick(()=>{var S;if(a.value)return;const F=(S=k.getContainerDomNode)==null?void 0:S.call(k);if(F){const E=F.querySelector('.diff-editor-cell.original, [class*="original"]');E&&(E.style.display="none")}}),o.value=k}else{const k=v.editor.create(r.value,{value:x,language:g,...b});o.value=k}u.value=_n,i.nextTick(()=>h())})}return i.onMounted(()=>{X1(()=>{a.value||!r.value||p()})}),i.watch(t,m=>{m&&!a.value&&i.nextTick(()=>h())}),i.onBeforeUnmount(()=>{a.value=!0,c()}),i.watch(()=>{var m,v;return(v=(m=e.content)==null?void 0:m.code)==null?void 0:v.value},()=>{a.value||(n.value?u.value=l():u.value=_n,h())}),()=>{const m=e.content;if(!m)return null;const{message:v,fileIcon:x,fileName:y,code:g}=m;return i.createVNode("div",{class:"f-chat-message-coding"},[i.createVNode("div",{class:"f-chat-coding-message"},[v]),i.createVNode("div",{class:"f-chat-coding-card"},[i.createVNode("div",{class:"f-chat-coding-header",onClick:s,role:"button",tabindex:0,onKeydown:b=>b.key==="Enter"&&s()},[i.createVNode("span",{class:"f-chat-coding-header-icon-slot"},[i.createVNode("span",{class:"f-chat-coding-header-icon"},[i.createVNode("img",{src:x,alt:"",onError:b=>{var w;b.target.style.display="none",(w=b.target.parentElement)==null||w.classList.add("icon-error")}},null),i.createVNode("span",{class:"f-chat-coding-header-icon-fallback"},[i.createTextVNode("📄")])]),i.createVNode("span",{class:"f-chat-coding-header-expand"},[i.createVNode("i",{class:t.value?"fx-icon fx-icon-foldup":"fx-icon fx-icon-expanddown"},null)])]),i.createVNode("span",{class:"f-chat-coding-header-filename"},[y]),i.createVNode("span",{class:"f-chat-coding-header-stats"},[i.createVNode("span",{class:"f-chat-coding-stat-add"},[i.createTextVNode("+"),g.addedLines]),i.createVNode("span",{class:"f-chat-coding-stat-del"},[i.createTextVNode("-"),g.deletedLines])])]),i.createVNode("div",{style:{display:t.value?"block":"none"}},[i.createVNode("div",{ref:r,class:"f-chat-coding-editor",style:{height:`${u.value}px`}},null),d.value&&i.createVNode("button",{type:"button",class:"f-chat-coding-expand-btn",onClick:f,"aria-label":n.value?"收起代码":"展开代码",title:n.value?"收起代码":"展开代码"},[i.createVNode("i",{class:["fx-icon fx-icon-expanddown",n.value&&"f-chat-coding-expand-icon-up"]},null)])])])])}}});br.install=e=>{e.component(br.name,br)};const Dl={content:{type:Object,required:!0}};function q1(e){return"file"in e&&"path"in e}const yr=i.defineComponent({name:"FileOperationMessage",props:Dl,setup(e){const t=i.ref(!0),n=i.ref({}),r=i.computed(()=>{var l;return!!((l=e.content)!=null&&l.summary)}),o=i.computed(()=>{var d;const l=(d=e.content)==null?void 0:d.summary;return l?`浏览了 ${l.explored} 个文件并查询了 ${l.searched} 个文件`:""});function u(){t.value=!t.value}function a(l){n.value={...n.value,[l]:!n.value[l]}}function s(l){return n.value[l]??!1}return()=>{const l=e.content;if(!l)return null;const{summary:d,operations:f}=l,c=!r.value||t.value;return i.createVNode("div",{class:"f-chat-message-file-operation"},[d&&i.createVNode("div",{class:"f-chat-file-op-summary",onClick:u,role:"button",tabindex:0,onKeydown:h=>h.key==="Enter"&&u()},[i.createVNode("span",{class:"f-chat-file-op-summary-inner"},[i.createVNode("span",{class:"f-chat-file-op-summary-text"},[o.value]),i.createVNode("span",{class:["f-chat-file-op-expand-btn",{expanded:t.value}]},[i.createVNode("i",{class:t.value?"fx-icon fx-icon-foldup":"fx-icon fx-icon-expanddown"},null)])])]),c&&i.createVNode("div",{class:"f-chat-file-op-operations"},[f.map((h,p)=>{var m,v,x,y;return i.createVNode("div",{key:p,class:"f-chat-file-op-operation"},[i.createVNode("div",i.mergeProps({class:["f-chat-file-op-operation-row",{"op-read":h.type==="Read","has-details":!!((m=h.details)!=null&&m.length)}],onClick:()=>{var g;return((g=h.details)==null?void 0:g.length)&&a(p)}},(v=h.details)!=null&&v.length?{role:"button",tabIndex:0}:{},{onKeydown:g=>{var b;return((b=h.details)==null?void 0:b.length)&&g.key==="Enter"&&a(p)}}),[i.createVNode("span",{class:"f-chat-file-op-type"},[h.type]),i.createVNode("span",{class:"f-chat-file-op-message-wrap"},[i.createVNode("span",{class:"f-chat-file-op-message"},[h.message]),(x=h.details)!=null&&x.length?i.createVNode("span",{class:["f-chat-file-op-expand-btn","sm",{expanded:s(p)}]},[i.createVNode("i",{class:s(p)?"fx-icon fx-icon-foldu":"fx-icon pfx-icon-expanddown"},null)]):null])]),((y=h.details)==null?void 0:y.length)&&s(p)&&i.createVNode("div",{class:"f-chat-file-op-details"},[h.details.map((g,b)=>q1(g)?i.createVNode("div",{key:b,class:"f-chat-file-op-detail-file"},[i.createVNode("span",{class:"f-chat-file-op-file-icon"},[i.createVNode("img",{src:g.icon,alt:"",onError:w=>{const k=w.target;k.style.display="none";const F=k.parentElement;F&&F.classList.add("icon-error")}},null),i.createVNode("span",{class:"f-chat-file-op-file-icon-fallback"},[i.createTextVNode("📄")])]),i.createVNode("span",{class:"f-chat-file-op-file-name"},[g.file]),i.createVNode("span",{class:"f-chat-file-op-file-path",title:g.path},[g.path])]):i.createVNode("div",{key:b,class:"f-chat-file-op-detail-text"},[i.createVNode("div",{class:"f-chat-file-op-detail-title"},[g.title]),i.createVNode("div",{class:"f-chat-file-op-detail-content"},[g.text])]))])])})])])}}});yr.install=e=>{e.component(yr.name,yr)};const Fl={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,String,Array],default:""},customStyle:{type:[Object,String],default:""},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},Z1="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",wr=i.defineComponent({name:"FXGenerateProcess",props:Fl,emits:["closed"],setup(e,t){const n=i.computed(()=>{const d={"fx-generate-process":!0,"fx-generate-process--no-progress":!e.showProgress};return we(d,e.customClass)}),r=i.computed(()=>Ce({},e.customStyle));function o(){var d,f;return t.slots.icon?t.slots.icon():i.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?Pr(e.icon):i.createVNode("img",{alt:"ai logo",class:"fx-generate-process--icon-default",src:Z1},null)])}function u(){var d,f;return e.description&&i.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 a(){var d,f;return e.progress>0&&i.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,i.createTextVNode("%")])}function s(){return i.createVNode("div",{class:"fx-generate-process--mask",onClick:d=>{d.stopPropagation()}},null)}function l(d=()=>{}){t.emit("closed",{callback:d})}return i.watch(()=>e.visible,d=>{d||l()}),t.expose({close:l}),()=>{var d,f;return i.createVNode(i.Fragment,null,[e.visible&&s(),e.visible&&i.createVNode("div",{class:n.value,style:r.value},[o(),!e.showProgress&&u(),e.showProgress&&i.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"]},[i.createVNode("div",{class:"fx-generate-process--progress-fill",style:{width:`${e.progress}%`}},null),!e.description&&a()]),e.description&&e.progress>0&&i.createVNode("div",{class:"fx-generate-process--progress"},[u(),i.createTextVNode(" "),a()])])])}}});wr.install=e=>{e.component(wr.name,wr)};const Tl={title:{type:String,default:"历史对话"},items:{type:Array,default:()=>[]}},Y1=[{key:"today",label:"今天"},{key:"week",label:"近7天"},{key:"older",label:"更早"}],xr=i.defineComponent({name:"FXChatHistory",props:Tl,emits:["itemClick"],setup(e,{emit:t}){const n=a=>{const s=new Date(a),l=new Date;return s.getDate()===l.getDate()&&s.getMonth()===l.getMonth()&&s.getFullYear()===l.getFullYear()},r=a=>{const s=new Date(a),l=new Date;return l.setDate(l.getDate()-7),s>=l&&!n(a)},o=i.computed(()=>{var l;const a={today:[],week:[],older:[]};(l=e.items)==null||l.forEach(d=>{n(d.timestamp)?a.today.push(d):r(d.timestamp)?a.week.push(d):a.older.push(d)});const s=(d,f)=>f.timestamp-d.timestamp;return a.today.sort(s).length||a.week.sort(s).length||a.older.sort(s).length?{today:a.today.sort(s),week:a.week.sort(s),older:a.older.sort(s)}:null}),u=(a,s)=>s.length>0&&i.createVNode("div",{class:"f-chat-history-section"},[i.createVNode("span",{class:"f-chat-history-section-header"},[a]),i.createVNode("div",{class:"d-flex flex-column"},[s.map(l=>i.createVNode("div",{key:l.id,class:"f-chat-history-item",onClick:()=>t("itemClick",l)},[i.createVNode("span",{class:"f-chat-history-item-title"},[l.title])]))])]);return()=>i.createVNode("div",{class:"f-chat-history-manager"},[i.createVNode("div",{class:"f-chat-history-manager-scroll"},[o.value&&Y1.map(a=>u(a.label,o.value[a.key]))])])}});xr.install=e=>{e.component(xr.name,xr)};const Nl={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,String,Array],default:""},customStyle:{type:[Object,String],default:""}};var Il=(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))(Il||{});const Ol={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,String,Array],default:""},customStyle:{type:[Object,String],default:""},showType:{type:String,default:Il.defaultTextItem},gap:{type:[String,Number]},onClick:{type:Function,required:!1}},Cu=i.defineComponent({name:"FPrompt",props:Ol,setup(e){const t=i.computed(()=>!e.id&&e.children&&e.children.length>0),n=i.computed(()=>{var h;let c={"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 c=we(c,(h=e.classNames)==null?void 0:h.item),we(c,e.customClass)}),r=i.computed(()=>{let c={"fx-prompt--item":!0};return c[`fx-prompt--${e.showType||"none"}`]=!0,c}),o=i.computed(()=>{var h;const c=Ce({},(h=e.styles)==null?void 0:h.item);return Ce(c,e.customStyle)}),u=()=>{var c,h;return e.icon?i.createVNode("div",{class:["fx-prompt--item-icon",(c=e.classNames)==null?void 0:c.icon],style:(h=e.styles)==null?void 0:h.icon},[Pr(e.icon)]):null},a=()=>{var c,h;return e.label?i.createVNode("h6",{class:["fx-prompt--item-label",(c=e.classNames)==null?void 0:c.label],style:(h=e.styles)==null?void 0:h.label},[zn(e.label)]):null};function s(){var h;const c={"fx-prompt--item-badge":!0};return typeof e.badge=="string"&&(c["badge-default"]=!0),we(c,(h=e.classNames)==null?void 0:h.badge)}const l=()=>{var c;return e.badge?i.createVNode("span",{class:s(),style:(c=e.styles)==null?void 0:c.badge},[zn(e.badge)]):null},d=()=>{var c,h;return e.description?i.createVNode("p",{class:["fx-prompt--item-description",(c=e.classNames)==null?void 0:c.description],style:(h=e.styles)==null?void 0:h.description},[zn(e.description)]):null},f=()=>{var c,h,p,m;return!e.children||e.children.length===0?null:i.createVNode(Sn,{class:{"fx-prompt--only-children":!e.id,"fx-prompt--item-nested":e.id},gap:e.gap,items:e.children,vertical:!0,customClass:(c=e.classNames)==null?void 0:c.subItems,customStyle:(h=e.styles)==null?void 0:h.subItems,styles:{item:((p=e.styles)==null?void 0:p.subItem)??{}},classNames:{item:((m=e.classNames)==null?void 0:m.subItem)??""}},null)};return()=>{var c,h;return i.createVNode("div",{class:n.value,style:o.value,onClick:e.onClick},[t.value?f():i.createVNode("div",{class:r.value},[u(),l(),i.createVNode("div",{class:["fx-prompt--item-content",(c=e.classNames)==null?void 0:c.itemContent],style:(h=e.styles)==null?void 0:h.itemContent},[a(),d(),f()])])])}}}),Sn=i.defineComponent({name:"FXPrompts",props:Nl,emits:["item-click"],setup(e,t){const n=i.computed(()=>{var f;let d={"fx-prompts":!0,"fx-prompts--fade-in":e.fadeIn,"fx-prompts--fade-in-left":e.fadeInLeft};return d=we(d,e.customClass),d=we(d,(f=e.classNames)==null?void 0:f.root),d});function r(d=null){var c;let f={"fx-prompts--items":!0,"fx-prompt":!0,"fx-prompts--items-wrap":e.wrap,"fx-prompts--items-vertical":e.vertical};return f=we(f,(c=e.classNames)==null?void 0:c.items),f=we(f,d==null?void 0:d.customClass),f}function o(d=null){var c;let f={};return(e.gap||e.gap===0)&&(f.gap=typeof e.gap=="number"?`${e.gap}px`:e.gap),f=Ce(f,(c=e.styles)==null?void 0:c.items),f=Ce(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)},a=d=>{var f,c;return d!=null&&d.title?i.createVNode("h5",{class:["fx-prompts--title",(f=e.classNames)==null?void 0:f.title],style:(c=e.styles)==null?void 0:c.title},[zn(d==null?void 0:d.title)]):null};function s(d){return!d.items||d.items.length===0?null:i.createVNode("div",{class:r(d),style:o(d)},[d.items.map((f,c)=>i.createVNode(Cu,{key:f.id||`key_${c}`,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:h=>u(h,f)},null))])}function l(){return t.slots.footer?t.slots.footer():null}return()=>{var d;return i.createVNode("div",{class:n.value,style:(d=e.styles)==null?void 0:d.root},[t.slots.title&&t.slots.title(),a(e),t.slots.default&&t.slots.default(),s(e),l()])}}});Sn.install=e=>{e.component(Sn.name,Sn),e.component(Cu.name,Cu)};const Ll={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助理"}},vr=i.defineComponent({name:"FXSuggestion",props:Ll,setup(e,t){const n=i.ref(null),r=i.ref(!1),o=i.ref(!1),u=i.ref({top:0,left:0,height:0}),a=i.ref(-1),s=i.ref(""),l=i.computed(()=>typeof e.prompt=="string"?e.prompt:"输入“@”获取推荐操作"),d=i.computed(()=>{var y;return(((y=e.items)==null?void 0:y.length)??0)===0}),f=()=>{var X;if(!n.value||d.value)return;if((((X=n.value.textContent)==null?void 0:X.trim())||"")===""){n.value.textContent="",n.value.innerHTML="",v();return}const g=window.getSelection();if(!g||g.rangeCount===0)return;const b=g.getRangeAt(0),w=b.cloneRange();w.selectNodeContents(n.value),w.setEnd(b.endContainer,b.endOffset);const k=w.toString(),F=k.lastIndexOf(e.promptChar);if(s.value=n.value.textContent||"",F!==-1&&k.substring(F+1).trim()===""&&(n.value.textContent=k.replace(/@$/,`@${e.promptAgentName} `),s.value=n.value.textContent,r.value=!0,b.selectNodeContents(n.value),b.collapse(!1),g.removeAllRanges(),g.addRange(b)),r.value===!1){o.value=!1,a.value=-1;return}if((n.value.textContent||"").lastIndexOf(`@${e.promptAgentName} `)!==-1){const j=document.createRange();j.setStart(n.value,0),j.setEnd(b.endContainer,b.endOffset);const{top:B,right:H}=j.getBoundingClientRect(),L=c();u.value={top:B-L-5,left:H+5,height:L},a.value===-1&&(a.value=0),o.value=!0}else o.value=!1,a.value=-1},c=()=>{const g=e.items.length*38-6;return Math.min(g+28+20,e.height)},h=y=>{var k;if(!n.value)return;const g=window.getSelection();if(!g||g.rangeCount===0)return;const b=((k=n.value.textContent)==null?void 0:k.replace(/\s*$/,""))||"";n.value.textContent=`${b} ${y.label}`;const w=g.getRangeAt(0);w.selectNodeContents(n.value),w.collapse(!1),g.removeAllRanges(),g.addRange(w),v()},p=async y=>{if(!o.value||!e.items||e.items.length===0)return;switch(["ArrowUp","ArrowDown","Enter","Escape"].includes(y.key)&&y.preventDefault(),y.key){case"ArrowDown":a.value++,a.value>=e.items.length&&(a.value=0);break;case"ArrowUp":a.value--,a.value<0&&(a.value=e.items.length-1);break;case"Enter":a.value!==-1&&h(e.items[a.value]);break;case"Escape":v();break}await i.nextTick();const g=a.value>0?".f-chat-suggestion-panel-item--current":".f-chat-suggestion-panel-header",b=document.querySelector(g);b==null||b.scrollIntoView({block:"nearest",behavior:"smooth"})},m=y=>{n.value&&!n.value.contains(y.target)&&v()},v=()=>{r.value=!1,o.value=!1,a.value=-1};i.onMounted(()=>{document.addEventListener("click",m)}),i.onUnmounted(()=>{document.removeEventListener("click",m)});const x=y=>{const g=y.iconUrl||"",b=y.icon||"fx-icon fx-icon-sender_task";return i.createVNode(i.Fragment,null,[g?i.createVNode("img",{alt:"suggestion item icon",src:g},null):i.createVNode("i",{class:b},null),i.createVNode("span",{class:"f-chat-suggestion-panel-item-label"},[y.label])])};return()=>{var y;return i.createVNode("div",{class:"f-chat-suggestion-container"},[i.createVNode("div",{ref:n,class:"f-chat-suggestion-input",contenteditable:"true",onInput:f,onKeyup:f,onKeydown:p,"data-placeholder":l.value},null),o.value&&i.createVNode("div",{class:"f-chat-suggestion-panel",style:{top:`${u.value.top}px`,left:`${u.value.left}px`,height:`${u.value.height}px`}},[i.createVNode("div",{class:"f-chat-suggestion-panel-header"},[e.title]),i.createVNode("div",{class:"f-chat-suggestion-panel-container"},[(y=e.items)==null?void 0:y.map((g,b)=>i.createVNode("div",{key:b,class:["f-chat-suggestion-panel-item",{"f-chat-suggestion-panel-item--current":b===a.value}],onClick:()=>h(g),onMouseenter:()=>a.value===b},[x(g)]))])])])}}});vr.install=e=>{e.component(vr.name,vr)};const Vl={type:{type:String,default:"Todo"},message:{type:String,default:""},items:{type:Array,default:[]},customClass:{type:String,default:""}},Ar=i.defineComponent({name:"Todo",props:Vl,setup(e){const t=i.ref(!0),n=i.computed(()=>{var o;return(o=e.items)==null?void 0:o.length});function r(){t.value=!t.value}return()=>i.createVNode("div",{class:["f-chat-message-todo",e.customClass]},[i.createVNode("div",{class:"f-chat-todo-message"},[e.message]),i.createVNode("div",{class:"f-chat-todo-list"},[i.createVNode("div",{class:"f-chat-todo-header",onClick:r,role:"button",tabindex:0,onKeydown:o=>o.key==="Enter"&&r()},[i.createVNode("span",{class:"f-chat-todo-header-icon-slot"},[i.createVNode("span",{class:"f-chat-todo-header-icon"},[i.createVNode("i",{class:"fx-icon fx-icon-task-record"},null)]),i.createVNode("span",{class:"f-chat-todo-header-expand"},[i.createVNode("i",{class:t.value?"fx-icon fx-icon-foldup":"fx-icon fx-icon-expanddown"},null)])]),i.createVNode("span",{class:"f-chat-todo-header-label"},[i.createTextVNode("待办任务")]),i.createVNode("span",{class:"f-chat-todo-header-count"},[n.value])]),t.value&&i.createVNode("div",{class:"f-chat-todo-content"},[i.createVNode(or,{items:e.items},null)])])])}});Ar.install=e=>{e.component(Ar.name,Ar),e.component(or.name,or),e.component(du.name,du),e.directive("overflow-tooltip",_i)};function Dn(e){return e.toolResultApplied===!0||String(e.result??"").trim().length>0}const kr=i.defineComponent({name:"FXToolUseBatch",props:{content:{type:Object,required:!0}},setup(e){const t=i.computed(()=>{const c=e.content.toolCalls;return!c||c.length===0?!0:c.every(Dn)}),{getToolIconClass:n}=Gu(),r=i.computed(()=>t.value?`共调用 ${e.content.totalCount??e.content.toolCalls.length} 个工具`:"正在调用工具"),o=i.ref(!t.value),u=()=>{o.value=!o.value};i.watch(t,c=>{c&&(o.value=!1)});const a=c=>{Dn(c)&&(c._expanded=!c._expanded)},s=c=>{const h=Dn(c),p=c.success===!1;return{"f-chat-tool-use-batch-item":!0,"is-done":h&&!p,"is-error":p,"is-run":!h&&!p}},l=c=>{const h=Dn(c);return c.success===!1?"执行失败":h?"执行成功":"调用中"},d=c=>{const h=Dn(c);return c.success===!1?"Error":h?"Done":"Working"},f=c=>c.toolDescription?c.toolDescription:c.command?`{ command: ${c.command} }`:c.toolName??"tool";return()=>i.createVNode("div",{class:"f-chat-tool-use-batch"},[i.createVNode("div",{class:"f-chat-tool-use-batch-header",onClick:u},[i.createVNode("span",{class:"f-chat-tool-use-batch-title"},[r.value]),i.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:o.value?"rotate(-90deg)":"rotate(90deg)",transition:"transform 0.2s ease"}},null)]),o.value&&i.createVNode("div",{class:"f-chat-tool-use-batch-body"},[e.content.toolCalls.map(c=>{const h=Dn(c),p=c.success===!1,m=h||p,v=!!c._expanded;return i.createVNode("div",{class:s(c)},[i.createVNode("div",{class:"f-chat-tool-use-batch-item-header",onClick:()=>a(c)},[i.createVNode("i",{class:"fx-icon fx-icon-"+n(c.toolName)+" tool-icon"},null),i.createVNode("span",{class:"f-chat-tool-use-batch-item-text"},[f(c)]),i.createVNode("div",{class:"f-chat-tool-use-batch-item-status"},[i.createVNode(Jt,{status:d(c),variant:"tool-use"},null),i.createVNode("span",null,[l(c)])]),m&&i.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:v?"rotate(-90deg)":"rotate(90deg)",transition:"transform 0.2s ease"}},null)]),v&&m&&i.createVNode("div",{class:"f-chat-tool-use-batch-item-result"},[c.errorMessage||c.result])])})])])}});kr.install=e=>{e.component(kr.name,kr)};const Pl={icon:[String,Object],title:[String,Object],description:[String,Object],customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},Cr=i.defineComponent({name:"FXWelcome",props:Pl,emits:[],setup(e,t){const n=i.computed(()=>{const a={"fx-welcome":!0};return!e.description&&(e.icon||t.slots.icon)&&(a["fx-welcome--no-description"]=!0),we(a,e.customClass)}),r=i.computed(()=>Ce({},e.customStyle));function o(){var a,s;return t.slots.icon?t.slots.icon():e.icon?i.createVNode("div",{class:["fx-welcome--icon",(a=e.classNames)==null?void 0:a.icon],style:(s=e.styles)==null?void 0:s.icon},[Pr(e.icon)]):null}function u(){var a,s,l,d,f,c;return t.slots.content?i.createVNode("div",{class:"fx-welcome--content"},[t.slots.content()]):(e.title||e.description)&&i.createVNode("div",{class:["fx-welcome--content",(a=e.classNames)==null?void 0:a.content],style:(s=e.styles)==null?void 0:s.content},[e.title&&i.createVNode("h4",{class:["fx-welcome--title",(l=e.classNames)==null?void 0:l.title],style:(d=e.styles)==null?void 0:d.title},[e.title]),e.description&&i.createVNode("p",{class:["fx-welcome--description",(f=e.classNames)==null?void 0:f.description],style:(c=e.styles)==null?void 0:c.description},[e.description])])}return()=>i.createVNode("div",{class:n.value,style:r.value},[o(),u()])}});Cr.install=e=>{e.component(Cr.name,Cr)};const Rl={content:{type:Object,required:!0},onOpen:{type:Function}},K1="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",Q1="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",J1="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==",Ml="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",e2="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",Er=i.defineComponent({name:"FChatAttachmentPreview",props:Rl,emits:[],setup(e){function t(s){switch(s.toLowerCase()){case"doc":case"docx":return K1;case"xlsx":case"xls":return Q1;case"ppt":case"mobi":return J1;case"txt":return Ml;case"png":case"jpg":case"jpeg":case"gif":return e2;default:return Ml}}function n(s){return s.icon?s.icon:t(s.type||"")}function r(s){if(s===0)return"0 B";const l=1024,d=["B","KB","MB","GB"],f=Math.floor(Math.log(s)/Math.log(l));return parseFloat((s/Math.pow(l,f)).toFixed(2))+" "+d[f]}async function o(s){var l;(l=e.onOpen)==null||l.call(e,s)}async function u(s,l){s.stopPropagation(),s.preventDefault();const d=dn(l);d&&await Vr(d,l.name)}function a(s,l){const d=r(s.size||0),f=n(s),c=dn(s);return i.createVNode("div",{key:l,class:"f-chat-attachment-preview-card"},[i.createVNode("div",{class:"f-chat-attachment-preview-card-inner"},[i.createVNode("div",{class:"f-chat-attachment-preview-main",role:"button",tabindex:0,onClick:()=>o(s),onKeydown:h=>h.key==="Enter"&&o(s)},[i.createVNode("div",{class:"f-chat-attachment-preview-icon-wrapper"},[i.createVNode("img",{src:f,alt:""},null)]),i.createVNode("div",{class:"f-chat-attachment-preview-info"},[i.createVNode("div",{class:"f-chat-attachment-preview-name",title:s.name},[s.name]),i.createVNode("div",{class:"f-chat-attachment-preview-meta"},[d&&i.createVNode("span",null,[d])])])]),c?i.createVNode("button",{type:"button",class:"f-chat-attachment-preview-download-btn","aria-label":"下载附件",title:"下载",onClick:h=>u(h,s)},[i.createVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[i.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),i.createVNode("polyline",{points:"7 10 12 15 17 10","stroke-linecap":"round","stroke-linejoin":"round"},null),i.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:l,attachments:d}=s;return i.createVNode("div",{class:"f-chat-attachment-preview"},[l&&i.createVNode("div",{class:"f-chat-attachment-preview-message"},[l]),i.createVNode("div",{class:"f-chat-attachment-preview-list"},[d.map((f,c)=>a(f,c))])])}}});Er.install=e=>{e.component(Er.name,Er)},vn.install=e=>{e.component(vn.name,vn)},An.install=e=>{e.component(An.name,An)};const Bl={activeNavId:{type:String,default:""},displayField:{type:String,default:"text"},disableField:{type:String,default:"disable"},horizontal:{type:Boolean,default:!0},idField:{type:String,default:"id"},maxNum:{type:Number,default:99},navData:{type:Array,default:()=>[]},navPicking:{type:Function,default:null},valueField:{type:String,default:"num"},visible:{type:Boolean,default:!0},customClass:{type:String,default:""},customStyle:{type:String,default:""}},_r=i.defineComponent({name:"FXNav",props:Bl,emits:["nav","update:activeNavId"],setup(e,t){const n=i.ref(e.activeNavId),r=i.ref(e.navData);function o(f){if(r.value&&r.value.length){let c=r.value.find(h=>h[e.idField]===f&&h[e.disableField]!==!0);c||(c=r.value.find(h=>h[e.disableField]!==!0)),c&&n.value!==c.id&&(n.value=c.id,t.emit("nav",c))}}i.watch([()=>e.activeNavId,()=>e.navData],([f,c])=>{r.value=c,o(f)});const u=i.computed(()=>e.visible&&r.value.length>0);function a(f){f.disable||f.id===n.value||Promise.resolve().then(()=>{const c=e.navPicking;return c&&typeof c=="function"?c(f):!0}).then(c=>{let h=!0;typeof c=="object"?c.canContinue||(h=!1,c.message&&console.error({message:c.message,position:"top-center"})):h=c,h&&(n.value=f.id,t.emit("update:activeNavId",f.id),t.emit("nav",f))})}const s=i.computed(()=>{const f={"farris-nav":!0,"farris-nav-vertical":!e.horizontal};return we(f,e.customClass)}),l=i.computed(()=>Ce({},e.customStyle));function d(f){r.value=f,o(n.value)}return t.expose({updateNavData:d}),()=>{var f;return u.value&&i.createVNode("div",{class:s.value,style:l.value},[(f=r.value)==null?void 0:f.map(c=>i.createVNode("div",{class:["farris-nav-item",{active:c[e.idField]===n.value},{disabled:c[e.disableField]}],onClick:()=>a(c)},[i.createVNode("div",{class:"farris-nav-item-link pt-3"},[i.createVNode("span",{class:"farris-nav-item-link-text"},[typeof c[e.displayField]=="function"?c[e.displayField]():c[e.displayField],c[e.valueField]&&i.createVNode("div",{class:"farris-nav-item-tag"},[c[e.valueField]<=e.maxNum&&i.createVNode("span",{class:"tag-text"},[c[e.valueField]]),c[e.valueField]>e.maxNum&&i.createVNode("span",{class:"tag-text"},[e.maxNum,i.createTextVNode("+")])])]),i.createVNode("div",{class:"farris-nav-item-bottom-line"},null)])]))])}}});_r.install=e=>{e.component(_r.name,_r)};const zl={buttonContent:{type:String,default:'<i class="fx-icon fx-icon-search"></i>'},customClass:{type:String,default:""},modelValue:{type:String,default:""},popupHost:{type:Object},data:{type:Array,default:()=>[]},placeholder:{type:String,default:"请输入关键词"},idField:{type:String,default:"id"},textField:{type:String,default:"name"},maxHeight:{type:Number,default:350},loading:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},showDropdown:{type:Boolean,default:!0}},jl={data:{type:Array,default:()=>[]},onConfirmResult:{type:Function,default:void 0},onSearchedValue:{type:Function,default:void 0},idField:{type:String,default:"id"},textField:{type:String,default:"name"},maxHeight:{type:Number,default:350},loading:{type:Boolean,default:!1}},Eu=i.defineComponent({name:"FXSearchBoxContainer",props:jl,emits:["confirmResult","searchedValue"],setup(e,t){const n=i.ref(e.data),r=i.ref(""),o=i.computed(()=>{if(!r.value)return n.value;const d=r.value.toLowerCase();return n.value.filter(f=>String(f[e.textField]??"").toLowerCase().includes(d))});function u(d){r.value=d}function a(d){t.emit("confirmResult",d[e.textField]),t.emit("searchedValue",[d])}function s(d){return t.slots.default?t.slots.default({item:d}):i.createVNode("span",null,[d[e.textField]])}const l=i.computed(()=>{const d={padding:"8px"};return e.maxHeight!==void 0&&e.maxHeight>0&&(d.maxHeight=`${e.maxHeight}px`),d});return i.watch(()=>e.data,d=>{d!==n.value&&(n.value=d)}),t.expose({search:u}),()=>i.createVNode("div",{class:"search-box-container f-utils-overflow-xhya position-relative",style:l.value},[e.loading&&i.createVNode("div",{class:"search-box-loading"},[i.createVNode("i",{class:"fx-icon fx-icon-bubble_step_loading fx-icon-spin"},null)]),i.createVNode("ul",{class:"search-box-list"},[o.value.map(d=>i.createVNode("li",{class:"search-box-item dropdown-item",key:d[e.idField],onClick:()=>a(d)},[s(d)])),!e.loading&&o.value.length===0&&i.createVNode("li",{class:"search-box-empty"},[i.createTextVNode("无匹配结果")])])])}}),Sr=i.defineComponent({name:"FXSearchBox",props:zl,emits:["update:modelValue","change","selectedValue","clickButton"],setup(e,t){const n=i.ref(),r=i.ref(),o=i.ref(),u=i.ref(e.modelValue),a=i.ref(!1),s='<i class="fx-icon fx-icon-clockwise fx-icon-spin"></i>',l=i.computed(()=>e.loading?s:e.buttonContent);i.watch(u,w=>{var k;(k=o.value)==null||k.search(w),t.emit("update:modelValue",w)}),i.watch(()=>e.modelValue,w=>{u.value=w});function d(w){u.value=w,m()}function f(w){const k=u.value;t.emit("change",w,{oldValue:k,newValue:w})}function c(w){t.emit("selectedValue",w)}function h(){t.emit("clickButton",{})}async function p(){var w;a.value=!0,await i.nextTick(),(w=r.value)==null||w.show(n.value)}function m(){var w;(w=r.value)==null||w.hide(),a.value=!1}function v(){a.value?m():p()}function x(w){const k=w.target.value;u.value=k,f(k),e.showDropdown&&k&&p()}function y(){e.showDropdown&&u.value&&p()}function g(){u.value="",t.emit("update:modelValue",""),m()}t.expose({togglePopup:v,hidePopup:m,showPopup:p});const b=i.computed(()=>{const w=we({},e.customClass);return["f-search-box",{"f-search-box-disabled":e.disable},...typeof w=="string"?[w]:Array.isArray(w)?w:[]]});return()=>i.createVNode("div",{class:b.value},[i.createVNode("div",{class:"f-search-box-input-group",ref:n},[i.createVNode("input",{class:"f-search-box-input form-control",type:"text",placeholder:e.placeholder,value:u.value,disabled:e.disable,onInput:x,onFocus:y},null),u.value&&!e.disable&&i.createVNode("span",{class:"f-search-box-clear",onClick:g},[i.createVNode("i",{class:"fx-icon fx-icon-close"},null)]),i.createVNode("span",{class:"f-search-box-button",onClick:h,innerHTML:l.value},null)]),e.showDropdown&&i.createVNode(en,{ref:r,placement:"bottom-left",keepWidthWithReference:!0,showArrow:!1,fitContent:!0,limitContentBySpace:!0,host:e.popupHost},{default:()=>[i.createVNode(Eu,{ref:o,data:e.data,idField:e.idField,textField:e.textField,onConfirmResult:d,onSearchedValue:w=>c(w),loading:e.loading,maxHeight:e.maxHeight},t.slots)]})])}});Sr.install=e=>{e.component(Sr.name,Sr),e.component(Eu.name,Eu)};const ui={data:{type:Array,default:()=>[]},view:{type:String,default:"ContentView"},customClass:{type:String,default:""},itemClass:{type:[String,Function],default:""},idField:{type:String,default:"id"},textField:{type:String,default:"name"},titleField:{type:String,default:"name"},valueField:{type:String,default:"id"},group:{type:Object,default:void 0}};function t2(e){const t=i.ref([...e.data]),n=i.ref([]),r=i.ref(""),o=i.computed(()=>{var h;const c=e.group;return c!=null&&c.enable&&((h=c.groupFields)!=null&&h.length)?u(t.value,c):t.value.map((p,m)=>({type:0,data:p,originalIndex:m}))});function u(c,h){const p=[],m=h.groupFields[0],v=new Map;c.forEach(y=>{const g=String(y[m]??"");v.has(g)||v.set(g,[]),v.get(g).push(y)});let x=0;return v.forEach((y,g)=>{p.push({type:1,data:{[m]:g},groupField:m,groupValue:g,originalIndex:x++}),y.forEach(b=>{p.push({type:0,data:b,groupField:m,groupValue:g,originalIndex:x++})})}),p}function a(c){t.value=[...c],n.value=[],r.value=""}function s(c){r.value=c;const h=t.value.find(p=>p[e.idField]===c);h&&!n.value.includes(h)&&(n.value=[h])}function l(){n.value=[],r.value=""}function d(c){const h=n.value.indexOf(c);h>=0?n.value.splice(h,1):n.value=[c],r.value=c[e.idField]}function f(c){return n.value.includes(c)}return{data:t,visualData:o,selectedItems:n,activeItemId:r,updateDataSource:a,activeRowById:s,clearSelection:l,toggleSelection:d,isSelected:f}}const n2=i.defineComponent({name:"FXListViewItem",props:{...ui,item:{type:Object,default:()=>({})},index:{type:Number,default:0},isActive:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1}},emits:["clickItem"],setup(e,t){const n=i.computed(()=>({"f-list-view-item":!0,"f-list-view-item-active":e.isActive}));return()=>i.createVNode("li",{class:[n.value,typeof e.itemClass=="function"?e.itemClass(e.item,e.index):e.itemClass],onClick:()=>t.emit("clickItem",e.item,e.index)},[t.slots.default?t.slots.default({item:e.item,index:e.index,selectedItem:e.isSelected?e.item:null}):i.createVNode("span",null,[e.item[e.textField]])])}}),r2=i.defineComponent({name:"FXListGroupItem",props:{groupData:{type:Object,default:()=>({})},groupField:{type:String,default:""},groupValue:{type:String,default:""},index:{type:Number,default:0}},setup(e,t){return()=>i.createVNode("li",{class:"f-list-view-group-item"},[t.slots.default?t.slots.default({item:e.groupData,index:e.index}):i.createVNode("div",{class:"f-list-view-group-header"},[i.createVNode("i",{class:"fx-icon f-accordion-expand"},null),i.createVNode("span",null,[e.groupValue])])])}}),Dr=i.defineComponent({name:"FXListView",props:ui,emits:["clickItem"],setup(e,t){const{visualData:n,activeItemId:r,updateDataSource:o,activeRowById:u,clearSelection:a,toggleSelection:s,isSelected:l}=t2({data:e.data,idField:e.idField,group:e.group}),d=i.computed(()=>we({"f-list-view":!0},e.customClass));function f(c,h){s(c),t.emit("clickItem",c,h)}return t.expose({updateDataSource:o,activeRowById:u,clearSelection:a}),()=>i.createVNode("div",{class:d.value},[i.createVNode("div",{class:"f-list-view-content"},[i.createVNode("ul",{class:"f-listview-items"},[n.value.map((c,h)=>c.type===1?i.createVNode(r2,{key:`group_${c.groupValue}_${h}`,groupData:c.data,groupField:c.groupField,groupValue:c.groupValue,index:h},{default:t.slots.group}):i.createVNode(n2,{key:`${c.data[e.idField]}_${h}`,item:c.data,index:c.originalIndex,isActive:c.data[e.idField]===r.value,isSelected:l(c.data),itemClass:e.itemClass,textField:e.textField,onClickItem:f},{default:t.slots.content}))])])])}});Dr.install=e=>{e.component(Dr.name,Dr)};const Hl={content:{type:Object,required:!0},defaultExpanded:{type:Boolean,default:!0}},_u=i.defineComponent({name:"FXAgentThinkingMessage",props:Hl,setup(e){const t=i.ref(e.defaultExpanded),n=i.ref({}),r=i.computed(()=>{var p;const h=(p=e.content)==null?void 0:p.streamStatus;return h==="end"||h===void 0}),o=i.computed(()=>{var p;const h=(p=e.content)==null?void 0:p.title;return h||(r.value?"思考过程":"正在思考...")}),u=i.computed(()=>{var h;return((h=e.content)==null?void 0:h.steps)??[]}),a=i.computed(()=>{var h,p;return u.value.length>0?"":((p=(h=e.content)==null?void 0:h.text)==null?void 0:p.trim())??""}),s=i.computed(()=>{var h,p;return u.value.length>0||!!a.value||(((p=(h=e.content)==null?void 0:h.sources)==null?void 0:p.length)??0)>0});i.watch(u,h=>{const p={};h.forEach((m,v)=>{p[v]=n.value[v]??!!m.detail}),n.value=p},{immediate:!0}),i.watch(r,h=>{h&&(t.value=!1)});const l=()=>{t.value=!t.value},d=h=>{n.value={...n.value,[h]:!n.value[h]}},f=h=>i.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:h?"rotate(0deg)":"rotate(180deg)",transition:"all 0.3s ease-in-out"}},null),c=(h,p)=>{var x;const m=!!((x=h.detail)!=null&&x.trim()),v=n.value[p]??m;return i.createVNode("div",{class:"f-x-thinking-step",key:p},[i.createVNode("div",{class:"f-x-thinking-step-header",onClick:()=>m&&d(p)},[i.createVNode("span",{class:"f-x-thinking-step-dot","aria-hidden":!0},null),i.createVNode("span",{class:"f-x-thinking-step-summary"},[h.summary]),m?f(v):null]),m&&v?i.createVNode("div",{class:"f-x-thinking-step-detail"},[h.detail]):null])};return()=>{const h=e.content;if(!h)return null;const p={"f-x-thinking":!0,"is-pending":!r.value,"is-completed":r.value};return i.createVNode("div",{class:p},[i.createVNode("div",{class:"f-x-thinking-header",onClick:l},[r.value?null:i.createVNode(Jt,{status:"Working",variant:"thinking"},null),i.createVNode("span",{class:"f-x-thinking-title"},[o.value]),s.value?f(t.value):null]),t.value&&s.value?i.createVNode("div",{class:"f-x-thinking-body"},[a.value?i.createVNode("div",{class:"f-x-thinking-text"},[a.value]):null,u.value.map(c),h.sources&&h.sources.length>0?i.createVNode("ul",{class:"f-x-thinking-sources"},[h.sources.map((m,v)=>i.createVNode("li",{key:v},[m]))]):null]):null])}}});_u.install=e=>{e.component(_u.name,_u)};function u2(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function o2(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`#attachment:${encodeURIComponent(t)}`}function i2(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?{url:t}:{fileId:t}}const Su=i.defineComponent({name:"FXAttachmentFileMessage",props:{content:{type:Object,required:!0}},setup(e){const t=i.computed(()=>o2(e.content.media)),n=i.computed(()=>dn(i2(e.content.media)));async function r(o){o.preventDefault(),o.stopPropagation();const u=n.value;u&&await Vr(u,e.content.name)}return()=>{const o=!!n.value;return i.createVNode("div",{class:"f-ec-attach-row"},[i.createVNode("a",{class:"f-ec-attach f-ec-attach--stretch",href:t.value,target:"_blank",rel:"noopener noreferrer"},[i.createVNode("span",{class:"f-ec-attach-icon","aria-hidden":!0},[i.createTextVNode("📎")]),i.createVNode("span",{class:"f-ec-attach-body"},[i.createVNode("span",{class:"f-ec-attach-name"},[e.content.name]),i.createVNode("span",{class:"f-ec-attach-meta"},[i.createVNode("span",{class:"f-ec-attach-cat"},[e.content.category]),i.createVNode("span",{class:"f-ec-attach-size"},[u2(e.content.size)])])])]),o?i.createVNode("button",{type:"button",class:"f-ec-attach-download-btn","aria-label":"下载附件",title:"下载",onClick:r},[i.createVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[i.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),i.createVNode("polyline",{points:"7 10 12 15 17 10","stroke-linecap":"round","stroke-linejoin":"round"},null),i.createVNode("line",{x1:"12",y1:"15",x2:"12",y2:"3","stroke-linecap":"round","stroke-linejoin":"round"},null)])]):null])}}});Su.install=e=>{e.component(Su.name,Su)};const a2={0:"高",1:"中",2:"低"},Du=i.defineComponent({name:"ErrorReminderMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content.errorLevel;return i.createVNode("div",{class:["f-ec-error",`f-ec-error--lvl-${t}`]},[i.createVNode("div",{class:"f-ec-error-head"},[i.createVNode("span",{class:"f-ec-error-badge"},[a2[t]]),i.createVNode("span",{class:"f-ec-error-label"},[i.createTextVNode("错误提醒")])]),i.createVNode("div",{class:"f-ec-error-text"},[e.content.errorText]),e.content.errorLink?i.createVNode("a",{class:"f-ec-error-link",href:e.content.errorLink,target:"_blank",rel:"noopener noreferrer"},[i.createTextVNode("查看详情")]):null])}}});Du.install=e=>{e.component(Du.name,Du)};function s2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Ot="__hitl_other__";function oi(e,t=120){return e?e.length>t?e.slice(0,t)+"...":e:""}function Fn(e){const t=e??"text";return t==="text"||t==="select"||t==="multi_select"||t==="confirm"||t==="form"||t==="date"||t==="number"?t:"text"}const Fu=i.defineComponent({name:"FXHitlQuestion",props:{content:{type:Object,required:!0},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!0},pinned:{type:Boolean,default:!1},pinnedWidth:{type:String,default:void 0},pinnedInputHeight:{type:Number,default:0},pinnedBottom:{type:Number,default:36},teleportTo:{type:[String,Object],default:void 0},onSubmitAnswers:{type:Function,default:void 0}},setup(e){const t=i.ref(!1),n=i.ref(0),r=i.ref({}),o=i.ref({}),u=i.computed(()=>t.value||e.disabled);function a(C){const D={},P={};for(const M of C){const z=Fn(M.ui_type);if(z==="confirm")D[M.id]=void 0;else if(z==="text"||z==="select")D[M.id]=M.default_value??"";else if(z==="multi_select")D[M.id]=M.default_value?JSON.parse(M.default_value):[];else if(z==="form"){const N={};if(Array.isArray(M.fields))for(const V of M.fields)N[V.name]=V.default_value??"";D[M.id]=N}else D[M.id]=M.default_value??"";P[M.id]={active:!1,text:""}}r.value=D,o.value=P,n.value=0}i.watch(()=>e.content.questions,C=>{Array.isArray(C)&&C.length&&a(C)},{immediate:!0}),i.watch(()=>e.content.answers,C=>{if(!Array.isArray(C)||C.length===0)return;const D={...r.value},P={...o.value};for(const M of C){D[M.id]=M.answer;const z=e.content.questions.find(N=>N.id===M.id);z&&Fn(z.ui_type)==="select"&&typeof M.answer=="string"&&!(z.options??[]).some(O=>O.label===M.answer)&&M.answer!==""&&(P[M.id]={active:!0,text:M.answer},D[M.id]=Ot)}r.value=D,o.value=P,t.value=!0},{immediate:!0});const s=i.computed(()=>e.content.questions.length),l=i.computed(()=>{const C=e.content.questions;if(C.length===0)return null;const D=Math.max(0,Math.min(n.value,C.length-1));return C[D]}),d=i.computed(()=>n.value<=0),f=i.computed(()=>n.value>=s.value-1),c=i.computed(()=>{const C=l.value;return C?m(C):!0});function h(){e.required&&!c.value||f.value||(n.value+=1)}function p(){d.value||(n.value-=1)}function m(C){var M,z;const D=Fn(C.ui_type),P=r.value[C.id];if(D==="text"&&(typeof P!="string"||P.trim()==="")||D==="select"&&(typeof P!="string"||P.trim()===""||P===Ot&&(((z=(M=o.value[C.id])==null?void 0:M.text)==null?void 0:z.trim())??"")==="")||D==="confirm"&&typeof P!="boolean"||D==="multi_select"&&(!Array.isArray(P)||P.length===0))return!1;if(D==="form"){const N=C.fields??[],V=P;for(const O of N)if(O.required){const I=V[O.name];if(typeof I!="string"||I.trim()==="")return!1}}return!((D==="date"||D==="number")&&(typeof P!="string"||P.trim()===""))}const v=i.computed(()=>u.value?!1:e.content.questions.every(C=>m(C)));function x(C,D){r.value={...r.value,[C]:D}}function y(C,D,P){const M=r.value[C]??{};x(C,{...M,[D]:P})}function g(C,D){var P;D===Ot?(o.value={...o.value,[C.id]:{...o.value[C.id],active:!0,text:((P=o.value[C.id])==null?void 0:P.text)??""}},x(C.id,Ot)):(o.value={...o.value,[C.id]:{active:!1,text:""}},x(C.id,D))}function b(C,D){const P=r.value[C.id]??[];P.includes(D)?x(C.id,P.filter(M=>M!==D)):x(C.id,[...P,D])}function w(){var D,P,M;if(!v.value)return;const C=[];for(const z of e.content.questions){const N=Fn(z.ui_type);let V=r.value[z.id];N==="select"&&V===Ot&&(V=((P=(D=o.value[z.id])==null?void 0:D.text)==null?void 0:P.trim())??""),N==="number"&&(V=Number(V)),C.push({id:z.id,answer:V})}t.value=!0,(M=e.onSubmitAnswers)==null||M.call(e,C)}function k(C,D,P){return i.createVNode("div",{class:"f-hitl-date-wrap"},[i.createVNode("input",{class:"f-hitl-input",type:"date",value:C,disabled:D,onInput:M=>P(M.target.value)},null)])}function F(C,D,P,M,z){const N=I=>{let $=Number(C)||0;$+=I,M!==void 0&&($=Math.max(M,$)),z!==void 0&&($=Math.min(z,$)),P(String($))},V=z!==void 0&&Number(C||0)>=z,O=M!==void 0&&Number(C||0)<=M;return i.createVNode("div",{class:"f-hitl-num-wrap"},[i.createVNode("input",{class:"f-hitl-input f-hitl-num-input",type:"number",value:C,min:M,max:z,disabled:D,onInput:I=>P(I.target.value)},null),i.createVNode("div",{class:"f-hitl-num-btns"},[i.createVNode("button",{type:"button",class:"f-hitl-num-btn",disabled:D||V,onClick:()=>N(1)},[i.createVNode("span",{class:"fx-icon fx-icon-foldup"},null)]),i.createVNode("button",{type:"button",class:"f-hitl-num-btn",disabled:D||O,onClick:()=>N(-1)},[i.createVNode("span",{class:"fx-icon fx-icon-expanddown"},null)])])])}function S(C,D,P,M){return i.createVNode("div",{key:C.label,class:["f-hitl-opt-row",{"f-hitl-opt-row--active":P}],onClick:M},[i.createVNode("span",{class:"f-hitl-opt-row__index"},[D+1]),i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[C.label]),C.description?i.createVNode("span",{class:"f-hitl-opt-row__desc"},[oi(C.description)]):null]),i.createVNode("span",{class:"f-hitl-opt-row__check"},[P?i.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])])}function E(C,D){return i.createVNode("div",{class:"f-hitl-form-item",key:C.name},[i.createVNode("div",{class:"f-hitl-form-item__label"},[C.label]),D])}function X(C,D,P){const M=r.value[C.id]??"",z=r.value[C.id]??[],N=o.value[C.id]??{active:!1,text:""},V=P==="single",O=V&&M===Ot||N.active,I=C.allow_other&&O,$=te=>V?M===te.label&&!N.active:z.includes(te.label),J=te=>()=>{u.value||(V?g(C,te.label):b(C,te.label))},K=()=>{if(!u.value)if(V)g(C,Ot);else{const te=N.text;N.active?(x(C.id,z.filter(ae=>ae!==te)),o.value={...o.value,[C.id]:{active:!1,text:""}}):(o.value={...o.value,[C.id]:{active:!0,text:N.text}},N.text&&!z.includes(N.text)&&x(C.id,[...z,N.text]))}},Y=te=>{const ae=te.target.value;o.value={...o.value,[C.id]:{active:!0,text:ae}},V?x(C.id,Ot):x(C.id,[...z.filter(be=>be!==N.text),ae])};return i.createVNode("div",{key:C.id},[i.createVNode("div",{class:"f-hitl-option-list"},[D.map((te,ae)=>S(te,ae,$(te),J(te))),C.allow_other?i.createVNode("div",{class:["f-hitl-opt-row f-hitl-opt-row--other",{"f-hitl-opt-row--active":O}],onClick:K},[i.createVNode("span",{class:"f-hitl-opt-row__index"},[i.createTextVNode("...")]),i.createVNode("span",{class:"f-hitl-opt-row__label"},[i.createTextVNode("其他")]),i.createVNode("span",{class:"f-hitl-opt-row__check"},[O?i.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])]):null]),I?i.createVNode("input",{class:"f-hitl-input f-hitl-input--other",type:"text",value:N.text,placeholder:"请输入自定义内容",disabled:u.value,onInput:Y},null):null])}function j(C){const D=r.value[C.id]??{},P=C.fields??[];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("div",{class:"f-hitl-form-group"},[P.map(M=>{const z=D[M.name]??"";return M.type==="select"?E(M,i.createVNode("div",{class:"f-hitl-select-group"},[(M.options??[]).map(N=>{const V=typeof N=="string"?N:N.label??"";return i.createVNode("button",{key:V,type:"button",class:["f-hitl-opt",{"f-hitl-opt--active":z===V}],disabled:u.value,onClick:()=>y(C.id,M.name,V)},[V])})])):M.type==="number"?E(M,F(z,u.value,N=>y(C.id,M.name,N),M.min,M.max)):M.type==="date"?E(M,k(z,u.value,N=>y(C.id,M.name,N))):E(M,i.createVNode("input",{class:"f-hitl-input",type:"text",value:z,placeholder:M.default_value??"请输入",disabled:u.value,onInput:N=>y(C.id,M.name,N.target.value)},null))})])])}function B(C){const D=Fn(C.ui_type);if(D==="text"){const P=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("input",{class:"f-hitl-input",type:"text",value:P,placeholder:C.placeholder??"请输入",disabled:u.value,onInput:M=>x(C.id,M.target.value)},null)])}if(D==="multi_select"){const P=Array.isArray(C.options)?C.options:[];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[X(C,P,"multi")])}if(D==="form")return j(C);if(D==="select"){let P=Array.isArray(C.options)?C.options:[];return P.length===0&&(P=[{label:"暂无"}]),i.createVNode("div",{class:"f-hitl-field",key:C.id},[X(C,P,"single")])}if(D==="confirm"){const P=r.value[C.id];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("div",{class:"f-hitl-confirm"},[i.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":P===!0}],disabled:u.value,onClick:()=>x(C.id,!0)},[i.createTextVNode("是")]),i.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":P===!1}],disabled:u.value,onClick:()=>x(C.id,!1)},[i.createTextVNode("否")])])])}if(D==="date"){const P=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[k(P,u.value,M=>x(C.id,M))])}if(D==="number"){const P=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[F(P,u.value,M=>x(C.id,M),C.min,C.max)])}return i.createVNode("div",{class:"f-hitl-field f-hitl-field--unsupported",key:C.id},[i.createVNode("div",{class:"f-hitl-unsupported"},[i.createTextVNode("暂不支持 ui_type「"),String(C.ui_type),i.createTextVNode("」,请升级前端。")])])}function H(C){const D=Fn(C.ui_type),P=(z,N,V)=>i.createVNode("input",{class:"f-hitl-input",type:z,value:N,readonly:!0,min:V==null?void 0:V.min,max:V==null?void 0:V.max},null);if(D==="text"){const z=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[P("text",z)])}if(D==="multi_select"){const z=r.value[C.id]??[],N=Array.isArray(C.options)?C.options:[],V=new Set(N.map(I=>I.label)),O=z.filter(I=>!V.has(I));return i.createVNode("div",{key:C.id},[i.createVNode("div",{class:"f-hitl-option-list"},[N.filter(I=>z.includes(I.label)).map(I=>i.createVNode("div",{class:"f-hitl-opt-row",key:I.label},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[I.label]),I.description?i.createVNode("span",{class:"f-hitl-opt-row__desc"},[oi(I.description)]):null])])),O.map(I=>i.createVNode("div",{class:"f-hitl-opt-row",key:I},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[I])])]))])])}if(D==="select"){const z=r.value[C.id]??"",N=o.value[C.id]??{active:!1,text:""},V=Array.isArray(C.options)?C.options:[],O=z===Ot||N.active;return i.createVNode("div",{key:C.id},[i.createVNode("div",{class:"f-hitl-option-list"},[O?i.createVNode("div",{class:"f-hitl-opt-row"},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[N.text||"其他"])])]):V.filter(I=>I.label===z).map(I=>i.createVNode("div",{class:"f-hitl-opt-row",key:I.label},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[I.label]),I.description?i.createVNode("span",{class:"f-hitl-opt-row__desc"},[oi(I.description)]):null])]))])])}if(D==="confirm"){const z=r.value[C.id];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("div",{class:"f-hitl-confirm"},[i.createVNode("button",{type:"button",class:["f-hitl-cbtn","f-hitl-cbtn--readonly"]},[z===!0?"是":"否"])])])}if(D==="form"){const z=r.value[C.id]??{},N=C.fields??[];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("div",{class:"f-hitl-form-group"},[N.map(V=>{const O=z[V.name]??"";let I;return V.type==="number"?I=P("number",O,{min:V.min,max:V.max}):V.type==="date"?I=P("date",O):I=P("text",O),E(V,I)})])])}if(D==="date"){const z=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[P("date",z)])}if(D==="number"){const z=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[P("number",z)])}const M=r.value[C.id];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("span",{class:"f-hitl-submitted-value"},[String(M??"")])])}function L(C){return i.createVNode("div",{class:"f-hitl-card__title-wrap"},[i.createVNode("span",{class:"f-hitl-card__title"},[C.question]),i.createVNode("span",{class:"f-hitl-card__subtitle"},[C.header])])}function W(){return s.value<=1?null:i.createVNode("div",{class:"f-hitl-pagination"},[i.createVNode("button",{type:"button",class:"f-hitl-pagination__btn",disabled:d.value,onClick:p},[i.createVNode("span",{class:"fx-icon fx-icon-arrow-left"},null)]),i.createVNode("span",{class:"f-hitl-pagination__text"},[n.value+1,i.createTextVNode("/"),s.value]),i.createVNode("button",{type:"button",class:"f-hitl-pagination__btn",disabled:f.value,onClick:h},[i.createVNode("span",{class:"fx-icon fx-icon-arrow-right"},null)])])}function G(){const C=e.pinnedWidth?{width:`calc(${e.pinnedWidth} * 0.8)`,minWidth:"343px",maxWidth:"800px"}:void 0;return i.createVNode("div",{class:"f-hitl-card",style:C},[i.createVNode("div",{class:"f-hitl-submitted-flat"},[e.content.questions.map(D=>i.createVNode("div",{class:"f-hitl-submitted-item",key:D.id},[i.createVNode("div",{class:"f-hitl-card__header"},[L(D)]),i.createVNode("div",{class:"f-hitl-card__body"},[H(D)])]))])])}function T(){const C=l.value;if(!C)return null;const D=e.pinned?"f-hitl-card--pinned":"",P=e.pinned&&e.pinnedWidth?{width:e.pinnedWidth}:void 0,M=e.pinnedInputHeight??0,z=e.pinnedBottom??36,N=()=>i.createVNode(i.Fragment,null,[i.createVNode("div",{class:"f-hitl-card__header"},[L(C),W()]),i.createVNode("div",{class:"f-hitl-card__body"},[B(C)]),!u.value&&i.createVNode("div",{class:"f-hitl-card__footer"},[s.value>1&&!f.value&&i.createVNode("button",{type:"button",class:"f-hitl-btn",disabled:e.required&&!c.value,onClick:h},[i.createTextVNode("下一条")]),f.value&&i.createVNode("button",{type:"button",class:"f-hitl-btn",disabled:!v.value,onClick:w},[i.createTextVNode("提交")])])]);if(e.pinned){const V=i.createVNode("div",{class:"f-hitl-pinned-spacer","aria-hidden":"true"},[i.createVNode("div",{class:"f-hitl-card",style:{...P,marginBottom:`-${M}px`}},[N()])]);if(e.teleportTo){const I={...P,bottom:`${z}px`},$=i.createVNode("div",{class:["f-hitl-card",D],style:I},[N()]);return i.createVNode(i.Fragment,null,[V,i.createVNode(i.Teleport,{to:e.teleportTo},s2($)?$:{default:()=>[$]})])}const O=i.createVNode("div",{class:["f-hitl-card",D],style:P},[N()]);return i.createVNode(i.Fragment,null,[V,O])}return i.createVNode("div",{class:["f-hitl-card",D],style:P},[N()])}return()=>u.value?G():T()}});Fu.install=e=>{e.component(Fu.name,Fu)};function l2(e,t){var r;const n=(r=e.pickActions)==null?void 0:r[t];return n||e.pickActionDefault}const Tu=i.defineComponent({name:"InputRecommendMessage",props:{content:{type:Object,required:!0},onPick:{type:Function,default:void 0}},setup(e){const t=(n,r)=>{var o;l2(e.content,r),(o=e.onPick)==null||o.call(e,n)};return()=>i.createVNode("div",{class:"f-ec-recommend"},[e.content.title?i.createVNode("div",{class:"f-ec-recommend-title"},[e.content.title]):null,i.createVNode("div",{class:"f-ec-recommend-chips"},[e.content.suggestions.map((n,r)=>i.createVNode("button",{key:r,type:"button",class:"f-ec-recommend-chip",onClick:()=>t(n,r)},[n]))])])}});Tu.install=e=>{e.component(Tu.name,Tu)};const Nu=i.defineComponent({name:"LinkCardMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content;return i.createVNode("div",{class:"f-ec-linkcard"},[t.poster?i.createVNode("div",{class:"f-ec-linkcard-poster"},[i.createVNode("img",{src:t.poster,alt:""},null)]):null,i.createVNode("div",{class:"f-ec-linkcard-body"},[i.createVNode("a",{class:"f-ec-linkcard-title",href:t.url,target:"_blank",rel:"noopener noreferrer"},[t.title]),t.subtitle?i.createVNode("div",{class:"f-ec-linkcard-sub"},[t.subtitle]):null,t.relatedLinks&&t.relatedLinks.length>0?i.createVNode("div",{class:"f-ec-linkcard-related"},[i.createVNode("div",{class:"f-ec-linkcard-related-label"},[i.createTextVNode("相关阅读")]),i.createVNode("ul",null,[t.relatedLinks.map((n,r)=>i.createVNode("li",{key:r},[i.createVNode("a",{href:n.url,target:"_blank",rel:"noopener noreferrer"},[n.title])]))])]):null])])}}});Nu.install=e=>{e.component(Nu.name,Nu)};const Iu=i.defineComponent({name:"ReferenceSourcesMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>i.createVNode("div",{class:"f-ec-sources"},[i.createVNode("div",{class:"f-ec-sources-title"},[i.createTextVNode("引用来源")]),i.createVNode("ul",{class:"f-ec-sources-list"},[e.content.items.map((t,n)=>i.createVNode("li",{key:n},[i.createVNode("a",{href:t.url,target:"_blank",rel:"noopener noreferrer"},[t.title])]))])])}});Iu.install=e=>{e.component(Iu.name,Iu)};const Ou=i.defineComponent({name:"UnknownEnterpriseMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>i.createVNode("div",{class:"f-ec-unknown"},[i.createVNode("div",{class:"f-ec-unknown-title"},[i.createTextVNode("未知类型消息")]),e.content.wireType?i.createVNode("div",{class:"f-ec-unknown-wire"},[i.createTextVNode("wire type: "),e.content.wireType]):null,i.createVNode("div",{class:"f-ec-unknown-desc"},[e.content.hint??"客户端无法识别此消息类型,已按占位展示。"])])}});Ou.install=e=>{e.component(Ou.name,Ou)},ir.install=e=>{e.component(ir.name,ir)};const c2={install(e){e.use(at).use(ar).use(sr).use(dr).use(hr).use(br).use(yr).use(wr).use(xr).use(bn).use(un).use(Sn).use(tn).use(vr).use(Ar).use(kr).use(Cr).use(Er).use(vn).use(An).use(en).use(Cn).use(_r).use(Sr).use(Dr)}};R.FXAgentThinking=_u,R.FXAppPreview=at,R.FXAttachmentFile=Su,R.FXAttachmentPreview=Er,R.FXBubble=ar,R.FXBubbleAction=Po,R.FXCarousel=sr,R.FXCarouselItem=fu,R.FXChatPreview=dr,R.FXCoding=br,R.FXConfirmDialog=hr,R.FXDynamicComponent=An,R.FXErrorReminder=Du,R.FXFileEmbeddedContent=Fi,R.FXFileOperation=yr,R.FXGenerateProcess=wr,R.FXHistory=xr,R.FXHitlQuestion=Fu,R.FXInputRecommend=Tu,R.FXLinkCard=Nu,R.FXListView=Dr,R.FXMarkdown=bn,R.FXMarkdownPreview=un,R.FXNav=_r,R.FXPopover=en,R.FXPopoverDirective=bs,R.FXPrompt=Cu,R.FXPrompts=Sn,R.FXReferenceSources=Iu,R.FXSearchBox=Sr,R.FXSearchBoxContainer=Eu,R.FXSplitter=Cn,R.FXSplitterPane=lr,R.FXStartedTodo=tn,R.FXSuggestion=vr,R.FXTodo=Ar,R.FXTodoListItemView=du,R.FXTodoListView=or,R.FXToolUse=kn,R.FXToolUseBatch=kr,R.FXUnknownEnterprise=Ou,R.FXUserAuth=ir,R.FXWelcome=Cr,R.FXWidgetContainer=vn,R.PREVIEW_BRIDGE_MESSAGE_TYPE_ASSISTANT=ti,R.PREVIEW_BRIDGE_SOURCE=Jo,R.PREVIEW_BRIDGE_VERSION=ei,R.agentThinkingProps=Hl,R.appPreviewMessageProps=ye,R.attachmentPreviewProps=Rl,R.bubbleActionProps=vs,R.bubbleProps=Lr,R.carouselItemProps=ks,R.carouselProps=As,R.chatHistoryProps=Tl,R.chatPreviewProps=Es,R.clonePreviewPayloadForPostMessage=ll,R.codingMessageProps=_l,R.confirmDialogProps=pl,R.createPreviewIframeSdk=Qp,R.default=c2,R.extractFileIdFromRuntimeDownloadUrl=wi,R.fileEmbeddedContentProps=Si,R.fileOperationMessageProps=Dl,R.generateProcessProps=Fl,R.getCustomClass=we,R.getCustomStyle=Ce,R.getDynamicCompState=qh,R.getDynamicComponentRegistryDebugSnapshot=Oo,R.invokeAgentWorkbenchSdkApi=Kp,R.isImageUrl=Ai,R.isPreviewBridgeAssistantMessage=dl,R.listViewProps=ui,R.loadDynamicComponent=ds,R.markdownMessageProps=Ba,R.markdownPreviewProps=_s,R.navProps=Bl,R.normalizeDynamicComponentRegisterClaim=Fe,R.overflowTooltipDirective=_i,R.peekDynamicComponentRegisterBootstrapId=Wh,R.popoverProps=ms,R.postAssistantToPreviewIframe=fl,R.postDynamicComponentAssistantMessage=Kh,R.previewLayoutBridge=t1,R.promptProps=Ol,R.promptsProps=Nl,R.registerPreviewChromeSdk=e1,R.renderIconNode=Pr,R.renderNode=zn,R.resolveHrefForAttachmentDownload=dn,R.resolveRuntimeAttachmentDownloadUrl=Uu,R.searchBoxContainerProps=jl,R.searchBoxProps=zl,R.splitterProps=Cs,R.startedTodoProps=ys,R.subscribeAssistantInPreviewIframe=hl,R.suggestionProps=Ll,R.todoListItemProps=xs,R.todoListViewProps=ws,R.todoProps=Vl,R.triggerAttachmentDownload=Vr,R.unloadDynamicComponent=fs,R.useSequentialStreaming=Rr,R.useStreamingOutput=ki,R.useTimer=Wu,R.useToolIcon=Gu,R.welcomeProps=Pl,R.widgetContainerProps=os,Object.defineProperties(R,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
161
+ `).length:0;y=S?X+E:E}return G1+y*Fl}const d=i.computed(()=>(o.value,l()>_n));function f(){n.value=!n.value,u.value=n.value?l():_n,h()}function c(){if(!o.value)return;o.value=null;const v=()=>{};typeof requestIdleCallback<"u"?requestIdleCallback(v,{timeout:100}):setTimeout(v,0)}function h(){if(a.value)return;const m=r.value,v=o.value;if(!m||!(v!=null&&v.layout))return;const x=m.clientWidth||m.offsetWidth,y=u.value;requestAnimationFrame(()=>{var g,b;a.value||!o.value||(b=(g=o.value)==null?void 0:g.layout)==null||b.call(g,{width:x,height:y})})}function p(){var m;a.value||!r.value||!((m=e.content)!=null&&m.code)||W1.init().then(v=>{var w;if(a.value||!r.value||!((w=e.content)!=null&&w.code))return;const{value:x,originalValue:y,language:g="typescript"}=e.content.code,b={readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,lineNumbers:"off",glyphMargin:!1,lineDecorationsWidth:0,folding:!1,renderLineHighlight:"none",fontSize:12,lineHeight:Fl,padding:{top:8,bottom:8}};if(y){const k=v.editor.createDiffEditor(r.value,{...b,renderSideBySide:!1,renderOverviewRuler:!1});k.setModel({original:v.editor.createModel(y,g),modified:v.editor.createModel(x,g)}),k.getOriginalEditor().updateOptions({minimap:{enabled:!1}}),k.getModifiedEditor().updateOptions({minimap:{enabled:!1}}),i.nextTick(()=>{var S;if(a.value)return;const D=(S=k.getContainerDomNode)==null?void 0:S.call(k);if(D){const E=D.querySelector('.diff-editor-cell.original, [class*="original"]');E&&(E.style.display="none")}}),o.value=k}else{const k=v.editor.create(r.value,{value:x,language:g,...b});o.value=k}u.value=_n,i.nextTick(()=>h())})}return i.onMounted(()=>{X1(()=>{a.value||!r.value||p()})}),i.watch(t,m=>{m&&!a.value&&i.nextTick(()=>h())}),i.onBeforeUnmount(()=>{a.value=!0,c()}),i.watch(()=>{var m,v;return(v=(m=e.content)==null?void 0:m.code)==null?void 0:v.value},()=>{a.value||(n.value?u.value=l():u.value=_n,h())}),()=>{const m=e.content;if(!m)return null;const{message:v,fileIcon:x,fileName:y,code:g}=m;return i.createVNode("div",{class:"f-chat-message-coding"},[i.createVNode("div",{class:"f-chat-coding-message"},[v]),i.createVNode("div",{class:"f-chat-coding-card"},[i.createVNode("div",{class:"f-chat-coding-header",onClick:s,role:"button",tabindex:0,onKeydown:b=>b.key==="Enter"&&s()},[i.createVNode("span",{class:"f-chat-coding-header-icon-slot"},[i.createVNode("span",{class:"f-chat-coding-header-icon"},[i.createVNode("img",{src:x,alt:"",onError:b=>{var w;b.target.style.display="none",(w=b.target.parentElement)==null||w.classList.add("icon-error")}},null),i.createVNode("span",{class:"f-chat-coding-header-icon-fallback"},[i.createTextVNode("📄")])]),i.createVNode("span",{class:"f-chat-coding-header-expand"},[i.createVNode("i",{class:t.value?"fx-icon fx-icon-foldup":"fx-icon fx-icon-expanddown"},null)])]),i.createVNode("span",{class:"f-chat-coding-header-filename"},[y]),i.createVNode("span",{class:"f-chat-coding-header-stats"},[i.createVNode("span",{class:"f-chat-coding-stat-add"},[i.createTextVNode("+"),g.addedLines]),i.createVNode("span",{class:"f-chat-coding-stat-del"},[i.createTextVNode("-"),g.deletedLines])])]),i.createVNode("div",{style:{display:t.value?"block":"none"}},[i.createVNode("div",{ref:r,class:"f-chat-coding-editor",style:{height:`${u.value}px`}},null),d.value&&i.createVNode("button",{type:"button",class:"f-chat-coding-expand-btn",onClick:f,"aria-label":n.value?"收起代码":"展开代码",title:n.value?"收起代码":"展开代码"},[i.createVNode("i",{class:["fx-icon fx-icon-expanddown",n.value&&"f-chat-coding-expand-icon-up"]},null)])])])])}}});br.install=e=>{e.component(br.name,br)};const Dl={content:{type:Object,required:!0}};function q1(e){return"file"in e&&"path"in e}const yr=i.defineComponent({name:"FileOperationMessage",props:Dl,setup(e){const t=i.ref(!0),n=i.ref({}),r=i.computed(()=>{var l;return!!((l=e.content)!=null&&l.summary)}),o=i.computed(()=>{var d;const l=(d=e.content)==null?void 0:d.summary;return l?`浏览了 ${l.explored} 个文件并查询了 ${l.searched} 个文件`:""});function u(){t.value=!t.value}function a(l){n.value={...n.value,[l]:!n.value[l]}}function s(l){return n.value[l]??!1}return()=>{const l=e.content;if(!l)return null;const{summary:d,operations:f}=l,c=!r.value||t.value;return i.createVNode("div",{class:"f-chat-message-file-operation"},[d&&i.createVNode("div",{class:"f-chat-file-op-summary",onClick:u,role:"button",tabindex:0,onKeydown:h=>h.key==="Enter"&&u()},[i.createVNode("span",{class:"f-chat-file-op-summary-inner"},[i.createVNode("span",{class:"f-chat-file-op-summary-text"},[o.value]),i.createVNode("span",{class:["f-chat-file-op-expand-btn",{expanded:t.value}]},[i.createVNode("i",{class:t.value?"fx-icon fx-icon-foldup":"fx-icon fx-icon-expanddown"},null)])])]),c&&i.createVNode("div",{class:"f-chat-file-op-operations"},[f.map((h,p)=>{var m,v,x,y;return i.createVNode("div",{key:p,class:"f-chat-file-op-operation"},[i.createVNode("div",i.mergeProps({class:["f-chat-file-op-operation-row",{"op-read":h.type==="Read","has-details":!!((m=h.details)!=null&&m.length)}],onClick:()=>{var g;return((g=h.details)==null?void 0:g.length)&&a(p)}},(v=h.details)!=null&&v.length?{role:"button",tabIndex:0}:{},{onKeydown:g=>{var b;return((b=h.details)==null?void 0:b.length)&&g.key==="Enter"&&a(p)}}),[i.createVNode("span",{class:"f-chat-file-op-type"},[h.type]),i.createVNode("span",{class:"f-chat-file-op-message-wrap"},[i.createVNode("span",{class:"f-chat-file-op-message"},[h.message]),(x=h.details)!=null&&x.length?i.createVNode("span",{class:["f-chat-file-op-expand-btn","sm",{expanded:s(p)}]},[i.createVNode("i",{class:s(p)?"fx-icon fx-icon-foldu":"fx-icon pfx-icon-expanddown"},null)]):null])]),((y=h.details)==null?void 0:y.length)&&s(p)&&i.createVNode("div",{class:"f-chat-file-op-details"},[h.details.map((g,b)=>q1(g)?i.createVNode("div",{key:b,class:"f-chat-file-op-detail-file"},[i.createVNode("span",{class:"f-chat-file-op-file-icon"},[i.createVNode("img",{src:g.icon,alt:"",onError:w=>{const k=w.target;k.style.display="none";const D=k.parentElement;D&&D.classList.add("icon-error")}},null),i.createVNode("span",{class:"f-chat-file-op-file-icon-fallback"},[i.createTextVNode("📄")])]),i.createVNode("span",{class:"f-chat-file-op-file-name"},[g.file]),i.createVNode("span",{class:"f-chat-file-op-file-path",title:g.path},[g.path])]):i.createVNode("div",{key:b,class:"f-chat-file-op-detail-text"},[i.createVNode("div",{class:"f-chat-file-op-detail-title"},[g.title]),i.createVNode("div",{class:"f-chat-file-op-detail-content"},[g.text])]))])])})])])}}});yr.install=e=>{e.component(yr.name,yr)};const Nl={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,String,Array],default:""},customStyle:{type:[Object,String],default:""},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},Z1="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",wr=i.defineComponent({name:"FXGenerateProcess",props:Nl,emits:["closed"],setup(e,t){const n=i.computed(()=>{const d={"fx-generate-process":!0,"fx-generate-process--no-progress":!e.showProgress};return we(d,e.customClass)}),r=i.computed(()=>Ce({},e.customStyle));function o(){var d,f;return t.slots.icon?t.slots.icon():i.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?Pr(e.icon):i.createVNode("img",{alt:"ai logo",class:"fx-generate-process--icon-default",src:Z1},null)])}function u(){var d,f;return e.description&&i.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 a(){var d,f;return e.progress>0&&i.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,i.createTextVNode("%")])}function s(){return i.createVNode("div",{class:"fx-generate-process--mask",onClick:d=>{d.stopPropagation()}},null)}function l(d=()=>{}){t.emit("closed",{callback:d})}return i.watch(()=>e.visible,d=>{d||l()}),t.expose({close:l}),()=>{var d,f;return i.createVNode(i.Fragment,null,[e.visible&&s(),e.visible&&i.createVNode("div",{class:n.value,style:r.value},[o(),!e.showProgress&&u(),e.showProgress&&i.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"]},[i.createVNode("div",{class:"fx-generate-process--progress-fill",style:{width:`${e.progress}%`}},null),!e.description&&a()]),e.description&&e.progress>0&&i.createVNode("div",{class:"fx-generate-process--progress"},[u(),i.createTextVNode(" "),a()])])])}}});wr.install=e=>{e.component(wr.name,wr)};const Tl={title:{type:String,default:"历史对话"},items:{type:Array,default:()=>[]}},Y1=[{key:"today",label:"今天"},{key:"week",label:"近7天"},{key:"older",label:"更早"}],xr=i.defineComponent({name:"FXChatHistory",props:Tl,emits:["itemClick"],setup(e,{emit:t}){const n=a=>{const s=new Date(a),l=new Date;return s.getDate()===l.getDate()&&s.getMonth()===l.getMonth()&&s.getFullYear()===l.getFullYear()},r=a=>{const s=new Date(a),l=new Date;return l.setDate(l.getDate()-7),s>=l&&!n(a)},o=i.computed(()=>{var l;const a={today:[],week:[],older:[]};(l=e.items)==null||l.forEach(d=>{n(d.timestamp)?a.today.push(d):r(d.timestamp)?a.week.push(d):a.older.push(d)});const s=(d,f)=>f.timestamp-d.timestamp;return a.today.sort(s).length||a.week.sort(s).length||a.older.sort(s).length?{today:a.today.sort(s),week:a.week.sort(s),older:a.older.sort(s)}:null}),u=(a,s)=>s.length>0&&i.createVNode("div",{class:"f-chat-history-section"},[i.createVNode("span",{class:"f-chat-history-section-header"},[a]),i.createVNode("div",{class:"d-flex flex-column"},[s.map(l=>i.createVNode("div",{key:l.id,class:"f-chat-history-item",onClick:()=>t("itemClick",l)},[i.createVNode("span",{class:"f-chat-history-item-title"},[l.title])]))])]);return()=>i.createVNode("div",{class:"f-chat-history-manager"},[i.createVNode("div",{class:"f-chat-history-manager-scroll"},[o.value&&Y1.map(a=>u(a.label,o.value[a.key]))])])}});xr.install=e=>{e.component(xr.name,xr)};const Il={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,String,Array],default:""},customStyle:{type:[Object,String],default:""}};var Ol=(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))(Ol||{});const Ll={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,String,Array],default:""},customStyle:{type:[Object,String],default:""},showType:{type:String,default:Ol.defaultTextItem},gap:{type:[String,Number]},onClick:{type:Function,required:!1}},Cu=i.defineComponent({name:"FPrompt",props:Ll,setup(e){const t=i.computed(()=>!e.id&&e.children&&e.children.length>0),n=i.computed(()=>{var h;let c={"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 c=we(c,(h=e.classNames)==null?void 0:h.item),we(c,e.customClass)}),r=i.computed(()=>{let c={"fx-prompt--item":!0};return c[`fx-prompt--${e.showType||"none"}`]=!0,c}),o=i.computed(()=>{var h;const c=Ce({},(h=e.styles)==null?void 0:h.item);return Ce(c,e.customStyle)}),u=()=>{var c,h;return e.icon?i.createVNode("div",{class:["fx-prompt--item-icon",(c=e.classNames)==null?void 0:c.icon],style:(h=e.styles)==null?void 0:h.icon},[Pr(e.icon)]):null},a=()=>{var c,h;return e.label?i.createVNode("h6",{class:["fx-prompt--item-label",(c=e.classNames)==null?void 0:c.label],style:(h=e.styles)==null?void 0:h.label},[zn(e.label)]):null};function s(){var h;const c={"fx-prompt--item-badge":!0};return typeof e.badge=="string"&&(c["badge-default"]=!0),we(c,(h=e.classNames)==null?void 0:h.badge)}const l=()=>{var c;return e.badge?i.createVNode("span",{class:s(),style:(c=e.styles)==null?void 0:c.badge},[zn(e.badge)]):null},d=()=>{var c,h;return e.description?i.createVNode("p",{class:["fx-prompt--item-description",(c=e.classNames)==null?void 0:c.description],style:(h=e.styles)==null?void 0:h.description},[zn(e.description)]):null},f=()=>{var c,h,p,m;return!e.children||e.children.length===0?null:i.createVNode(Sn,{class:{"fx-prompt--only-children":!e.id,"fx-prompt--item-nested":e.id},gap:e.gap,items:e.children,vertical:!0,customClass:(c=e.classNames)==null?void 0:c.subItems,customStyle:(h=e.styles)==null?void 0:h.subItems,styles:{item:((p=e.styles)==null?void 0:p.subItem)??{}},classNames:{item:((m=e.classNames)==null?void 0:m.subItem)??""}},null)};return()=>{var c,h;return i.createVNode("div",{class:n.value,style:o.value,onClick:e.onClick},[t.value?f():i.createVNode("div",{class:r.value},[u(),l(),i.createVNode("div",{class:["fx-prompt--item-content",(c=e.classNames)==null?void 0:c.itemContent],style:(h=e.styles)==null?void 0:h.itemContent},[a(),d(),f()])])])}}}),Sn=i.defineComponent({name:"FXPrompts",props:Il,emits:["item-click"],setup(e,t){const n=i.computed(()=>{var f;let d={"fx-prompts":!0,"fx-prompts--fade-in":e.fadeIn,"fx-prompts--fade-in-left":e.fadeInLeft};return d=we(d,e.customClass),d=we(d,(f=e.classNames)==null?void 0:f.root),d});function r(d=null){var c;let f={"fx-prompts--items":!0,"fx-prompt":!0,"fx-prompts--items-wrap":e.wrap,"fx-prompts--items-vertical":e.vertical};return f=we(f,(c=e.classNames)==null?void 0:c.items),f=we(f,d==null?void 0:d.customClass),f}function o(d=null){var c;let f={};return(e.gap||e.gap===0)&&(f.gap=typeof e.gap=="number"?`${e.gap}px`:e.gap),f=Ce(f,(c=e.styles)==null?void 0:c.items),f=Ce(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)},a=d=>{var f,c;return d!=null&&d.title?i.createVNode("h5",{class:["fx-prompts--title",(f=e.classNames)==null?void 0:f.title],style:(c=e.styles)==null?void 0:c.title},[zn(d==null?void 0:d.title)]):null};function s(d){return!d.items||d.items.length===0?null:i.createVNode("div",{class:r(d),style:o(d)},[d.items.map((f,c)=>i.createVNode(Cu,{key:f.id||`key_${c}`,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:h=>u(h,f)},null))])}function l(){return t.slots.footer?t.slots.footer():null}return()=>{var d;return i.createVNode("div",{class:n.value,style:(d=e.styles)==null?void 0:d.root},[t.slots.title&&t.slots.title(),a(e),t.slots.default&&t.slots.default(),s(e),l()])}}});Sn.install=e=>{e.component(Sn.name,Sn),e.component(Cu.name,Cu)};const Vl={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助理"}},vr=i.defineComponent({name:"FXSuggestion",props:Vl,setup(e,t){const n=i.ref(null),r=i.ref(!1),o=i.ref(!1),u=i.ref({top:0,left:0,height:0}),a=i.ref(-1),s=i.ref(""),l=i.computed(()=>typeof e.prompt=="string"?e.prompt:"输入“@”获取推荐操作"),d=i.computed(()=>{var y;return(((y=e.items)==null?void 0:y.length)??0)===0}),f=()=>{var X;if(!n.value||d.value)return;if((((X=n.value.textContent)==null?void 0:X.trim())||"")===""){n.value.textContent="",n.value.innerHTML="",v();return}const g=window.getSelection();if(!g||g.rangeCount===0)return;const b=g.getRangeAt(0),w=b.cloneRange();w.selectNodeContents(n.value),w.setEnd(b.endContainer,b.endOffset);const k=w.toString(),D=k.lastIndexOf(e.promptChar);if(s.value=n.value.textContent||"",D!==-1&&k.substring(D+1).trim()===""&&(n.value.textContent=k.replace(/@$/,`@${e.promptAgentName} `),s.value=n.value.textContent,r.value=!0,b.selectNodeContents(n.value),b.collapse(!1),g.removeAllRanges(),g.addRange(b)),r.value===!1){o.value=!1,a.value=-1;return}if((n.value.textContent||"").lastIndexOf(`@${e.promptAgentName} `)!==-1){const j=document.createRange();j.setStart(n.value,0),j.setEnd(b.endContainer,b.endOffset);const{top:B,right:H}=j.getBoundingClientRect(),L=c();u.value={top:B-L-5,left:H+5,height:L},a.value===-1&&(a.value=0),o.value=!0}else o.value=!1,a.value=-1},c=()=>{const g=e.items.length*38-6;return Math.min(g+28+20,e.height)},h=y=>{var k;if(!n.value)return;const g=window.getSelection();if(!g||g.rangeCount===0)return;const b=((k=n.value.textContent)==null?void 0:k.replace(/\s*$/,""))||"";n.value.textContent=`${b} ${y.label}`;const w=g.getRangeAt(0);w.selectNodeContents(n.value),w.collapse(!1),g.removeAllRanges(),g.addRange(w),v()},p=async y=>{if(!o.value||!e.items||e.items.length===0)return;switch(["ArrowUp","ArrowDown","Enter","Escape"].includes(y.key)&&y.preventDefault(),y.key){case"ArrowDown":a.value++,a.value>=e.items.length&&(a.value=0);break;case"ArrowUp":a.value--,a.value<0&&(a.value=e.items.length-1);break;case"Enter":a.value!==-1&&h(e.items[a.value]);break;case"Escape":v();break}await i.nextTick();const g=a.value>0?".f-chat-suggestion-panel-item--current":".f-chat-suggestion-panel-header",b=document.querySelector(g);b==null||b.scrollIntoView({block:"nearest",behavior:"smooth"})},m=y=>{n.value&&!n.value.contains(y.target)&&v()},v=()=>{r.value=!1,o.value=!1,a.value=-1};i.onMounted(()=>{document.addEventListener("click",m)}),i.onUnmounted(()=>{document.removeEventListener("click",m)});const x=y=>{const g=y.iconUrl||"",b=y.icon||"fx-icon fx-icon-sender_task";return i.createVNode(i.Fragment,null,[g?i.createVNode("img",{alt:"suggestion item icon",src:g},null):i.createVNode("i",{class:b},null),i.createVNode("span",{class:"f-chat-suggestion-panel-item-label"},[y.label])])};return()=>{var y;return i.createVNode("div",{class:"f-chat-suggestion-container"},[i.createVNode("div",{ref:n,class:"f-chat-suggestion-input",contenteditable:"true",onInput:f,onKeyup:f,onKeydown:p,"data-placeholder":l.value},null),o.value&&i.createVNode("div",{class:"f-chat-suggestion-panel",style:{top:`${u.value.top}px`,left:`${u.value.left}px`,height:`${u.value.height}px`}},[i.createVNode("div",{class:"f-chat-suggestion-panel-header"},[e.title]),i.createVNode("div",{class:"f-chat-suggestion-panel-container"},[(y=e.items)==null?void 0:y.map((g,b)=>i.createVNode("div",{key:b,class:["f-chat-suggestion-panel-item",{"f-chat-suggestion-panel-item--current":b===a.value}],onClick:()=>h(g),onMouseenter:()=>a.value===b},[x(g)]))])])])}}});vr.install=e=>{e.component(vr.name,vr)};const Pl={type:{type:String,default:"Todo"},message:{type:String,default:""},items:{type:Array,default:[]},customClass:{type:String,default:""}},Ar=i.defineComponent({name:"Todo",props:Pl,setup(e){const t=i.ref(!0),n=i.computed(()=>{var o;return(o=e.items)==null?void 0:o.length});function r(){t.value=!t.value}return()=>i.createVNode("div",{class:["f-chat-message-todo",e.customClass]},[i.createVNode("div",{class:"f-chat-todo-message"},[e.message]),i.createVNode("div",{class:"f-chat-todo-list"},[i.createVNode("div",{class:"f-chat-todo-header",onClick:r,role:"button",tabindex:0,onKeydown:o=>o.key==="Enter"&&r()},[i.createVNode("span",{class:"f-chat-todo-header-icon-slot"},[i.createVNode("span",{class:"f-chat-todo-header-icon"},[i.createVNode("i",{class:"fx-icon fx-icon-task-record"},null)]),i.createVNode("span",{class:"f-chat-todo-header-expand"},[i.createVNode("i",{class:t.value?"fx-icon fx-icon-foldup":"fx-icon fx-icon-expanddown"},null)])]),i.createVNode("span",{class:"f-chat-todo-header-label"},[i.createTextVNode("待办任务")]),i.createVNode("span",{class:"f-chat-todo-header-count"},[n.value])]),t.value&&i.createVNode("div",{class:"f-chat-todo-content"},[i.createVNode(or,{items:e.items},null)])])])}});Ar.install=e=>{e.component(Ar.name,Ar),e.component(or.name,or),e.component(du.name,du),e.directive("overflow-tooltip",_i)};function Fn(e){return e.toolResultApplied===!0||String(e.result??"").trim().length>0}const kr=i.defineComponent({name:"FXToolUseBatch",props:{content:{type:Object,required:!0}},setup(e){const t=i.computed(()=>{const c=e.content.toolCalls;return!c||c.length===0?!0:c.every(Fn)}),{getToolIconClass:n}=Gu(),r=i.computed(()=>t.value?`共调用 ${e.content.totalCount??e.content.toolCalls.length} 个工具`:"正在调用工具"),o=i.ref(!t.value),u=()=>{o.value=!o.value};i.watch(t,c=>{c&&(o.value=!1)});const a=c=>{Fn(c)&&(c._expanded=!c._expanded)},s=c=>{const h=Fn(c),p=c.success===!1;return{"f-chat-tool-use-batch-item":!0,"is-done":h&&!p,"is-error":p,"is-run":!h&&!p}},l=c=>{const h=Fn(c);return c.success===!1?"执行失败":h?"执行成功":"调用中"},d=c=>{const h=Fn(c);return c.success===!1?"Error":h?"Done":"Working"},f=c=>c.toolDescription?c.toolDescription:c.command?`{ command: ${c.command} }`:c.toolName??"tool";return()=>i.createVNode("div",{class:"f-chat-tool-use-batch"},[i.createVNode("div",{class:"f-chat-tool-use-batch-header",onClick:u},[i.createVNode("span",{class:"f-chat-tool-use-batch-title"},[r.value]),i.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:o.value?"rotate(-90deg)":"rotate(90deg)",transition:"transform 0.2s ease"}},null)]),o.value&&i.createVNode("div",{class:"f-chat-tool-use-batch-body"},[e.content.toolCalls.map(c=>{const h=Fn(c),p=c.success===!1,m=h||p,v=!!c._expanded;return i.createVNode("div",{class:s(c)},[i.createVNode("div",{class:"f-chat-tool-use-batch-item-header",onClick:()=>a(c)},[i.createVNode("i",{class:"fx-icon fx-icon-"+n(c.toolName)+" tool-icon"},null),i.createVNode("span",{class:"f-chat-tool-use-batch-item-text"},[f(c)]),i.createVNode("div",{class:"f-chat-tool-use-batch-item-status"},[i.createVNode(Jt,{status:d(c),variant:"tool-use"},null),i.createVNode("span",null,[l(c)])]),m&&i.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:v?"rotate(-90deg)":"rotate(90deg)",transition:"transform 0.2s ease"}},null)]),v&&m&&i.createVNode("div",{class:"f-chat-tool-use-batch-item-result"},[c.errorMessage||c.result])])})])])}});kr.install=e=>{e.component(kr.name,kr)};const Rl={icon:[String,Object],title:[String,Object],description:[String,Object],customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""},styles:{type:Object,default:()=>({})},classNames:{type:Object,default:()=>({})}},Cr=i.defineComponent({name:"FXWelcome",props:Rl,emits:[],setup(e,t){const n=i.computed(()=>{const a={"fx-welcome":!0};return!e.description&&(e.icon||t.slots.icon)&&(a["fx-welcome--no-description"]=!0),we(a,e.customClass)}),r=i.computed(()=>Ce({},e.customStyle));function o(){var a,s;return t.slots.icon?t.slots.icon():e.icon?i.createVNode("div",{class:["fx-welcome--icon",(a=e.classNames)==null?void 0:a.icon],style:(s=e.styles)==null?void 0:s.icon},[Pr(e.icon)]):null}function u(){var a,s,l,d,f,c;return t.slots.content?i.createVNode("div",{class:"fx-welcome--content"},[t.slots.content()]):(e.title||e.description)&&i.createVNode("div",{class:["fx-welcome--content",(a=e.classNames)==null?void 0:a.content],style:(s=e.styles)==null?void 0:s.content},[e.title&&i.createVNode("h4",{class:["fx-welcome--title",(l=e.classNames)==null?void 0:l.title],style:(d=e.styles)==null?void 0:d.title},[e.title]),e.description&&i.createVNode("p",{class:["fx-welcome--description",(f=e.classNames)==null?void 0:f.description],style:(c=e.styles)==null?void 0:c.description},[e.description])])}return()=>i.createVNode("div",{class:n.value,style:r.value},[o(),u()])}});Cr.install=e=>{e.component(Cr.name,Cr)};const Ml={content:{type:Object,required:!0},onOpen:{type:Function}},K1="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",Q1="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",J1="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==",Bl="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",e2="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",Er=i.defineComponent({name:"FChatAttachmentPreview",props:Ml,emits:[],setup(e){function t(s){switch(s.toLowerCase()){case"doc":case"docx":return K1;case"xlsx":case"xls":return Q1;case"ppt":case"mobi":return J1;case"txt":return Bl;case"png":case"jpg":case"jpeg":case"gif":return e2;default:return Bl}}function n(s){return s.icon?s.icon:t(s.type||"")}function r(s){if(s===0)return"0 B";const l=1024,d=["B","KB","MB","GB"],f=Math.floor(Math.log(s)/Math.log(l));return parseFloat((s/Math.pow(l,f)).toFixed(2))+" "+d[f]}async function o(s){var l;(l=e.onOpen)==null||l.call(e,s)}async function u(s,l){s.stopPropagation(),s.preventDefault();const d=dn(l);d&&await Vr(d,l.name)}function a(s,l){const d=r(s.size||0),f=n(s),c=dn(s);return i.createVNode("div",{key:l,class:"f-chat-attachment-preview-card"},[i.createVNode("div",{class:"f-chat-attachment-preview-card-inner"},[i.createVNode("div",{class:"f-chat-attachment-preview-main",role:"button",tabindex:0,onClick:()=>o(s),onKeydown:h=>h.key==="Enter"&&o(s)},[i.createVNode("div",{class:"f-chat-attachment-preview-icon-wrapper"},[i.createVNode("img",{src:f,alt:""},null)]),i.createVNode("div",{class:"f-chat-attachment-preview-info"},[i.createVNode("div",{class:"f-chat-attachment-preview-name",title:s.name},[s.name]),i.createVNode("div",{class:"f-chat-attachment-preview-meta"},[d&&i.createVNode("span",null,[d])])])]),c?i.createVNode("button",{type:"button",class:"f-chat-attachment-preview-download-btn","aria-label":"下载附件",title:"下载",onClick:h=>u(h,s)},[i.createVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[i.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),i.createVNode("polyline",{points:"7 10 12 15 17 10","stroke-linecap":"round","stroke-linejoin":"round"},null),i.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:l,attachments:d}=s;return i.createVNode("div",{class:"f-chat-attachment-preview"},[l&&i.createVNode("div",{class:"f-chat-attachment-preview-message"},[l]),i.createVNode("div",{class:"f-chat-attachment-preview-list"},[d.map((f,c)=>a(f,c))])])}}});Er.install=e=>{e.component(Er.name,Er)},vn.install=e=>{e.component(vn.name,vn)},An.install=e=>{e.component(An.name,An)};const zl={activeNavId:{type:String,default:""},displayField:{type:String,default:"text"},disableField:{type:String,default:"disable"},horizontal:{type:Boolean,default:!0},idField:{type:String,default:"id"},maxNum:{type:Number,default:99},navData:{type:Array,default:()=>[]},navPicking:{type:Function,default:null},valueField:{type:String,default:"num"},visible:{type:Boolean,default:!0},customClass:{type:String,default:""},customStyle:{type:String,default:""}},_r=i.defineComponent({name:"FXNav",props:zl,emits:["nav","update:activeNavId"],setup(e,t){const n=i.ref(e.activeNavId),r=i.ref(e.navData);function o(f){if(r.value&&r.value.length){let c=r.value.find(h=>h[e.idField]===f&&h[e.disableField]!==!0);c||(c=r.value.find(h=>h[e.disableField]!==!0)),c&&n.value!==c.id&&(n.value=c.id,t.emit("nav",c))}}i.watch([()=>e.activeNavId,()=>e.navData],([f,c])=>{r.value=c,o(f)});const u=i.computed(()=>e.visible&&r.value.length>0);function a(f){f.disable||f.id===n.value||Promise.resolve().then(()=>{const c=e.navPicking;return c&&typeof c=="function"?c(f):!0}).then(c=>{let h=!0;typeof c=="object"?c.canContinue||(h=!1,c.message&&console.error({message:c.message,position:"top-center"})):h=c,h&&(n.value=f.id,t.emit("update:activeNavId",f.id),t.emit("nav",f))})}const s=i.computed(()=>{const f={"farris-nav":!0,"farris-nav-vertical":!e.horizontal};return we(f,e.customClass)}),l=i.computed(()=>Ce({},e.customStyle));function d(f){r.value=f,o(n.value)}return t.expose({updateNavData:d}),()=>{var f;return u.value&&i.createVNode("div",{class:s.value,style:l.value},[(f=r.value)==null?void 0:f.map(c=>i.createVNode("div",{class:["farris-nav-item",{active:c[e.idField]===n.value},{disabled:c[e.disableField]}],onClick:()=>a(c)},[i.createVNode("div",{class:"farris-nav-item-link pt-3"},[i.createVNode("span",{class:"farris-nav-item-link-text"},[typeof c[e.displayField]=="function"?c[e.displayField]():c[e.displayField],c[e.valueField]&&i.createVNode("div",{class:"farris-nav-item-tag"},[c[e.valueField]<=e.maxNum&&i.createVNode("span",{class:"tag-text"},[c[e.valueField]]),c[e.valueField]>e.maxNum&&i.createVNode("span",{class:"tag-text"},[e.maxNum,i.createTextVNode("+")])])]),i.createVNode("div",{class:"farris-nav-item-bottom-line"},null)])]))])}}});_r.install=e=>{e.component(_r.name,_r)};const jl={buttonContent:{type:String,default:'<i class="fx-icon fx-icon-search"></i>'},customClass:{type:String,default:""},modelValue:{type:String,default:""},popupHost:{type:Object},data:{type:Array,default:()=>[]},placeholder:{type:String,default:"请输入关键词"},idField:{type:String,default:"id"},textField:{type:String,default:"name"},maxHeight:{type:Number,default:350},loading:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},showDropdown:{type:Boolean,default:!0}},Hl={data:{type:Array,default:()=>[]},onConfirmResult:{type:Function,default:void 0},onSearchedValue:{type:Function,default:void 0},idField:{type:String,default:"id"},textField:{type:String,default:"name"},maxHeight:{type:Number,default:350},loading:{type:Boolean,default:!1}},Eu=i.defineComponent({name:"FXSearchBoxContainer",props:Hl,emits:["confirmResult","searchedValue"],setup(e,t){const n=i.ref(e.data),r=i.ref(""),o=i.computed(()=>{if(!r.value)return n.value;const d=r.value.toLowerCase();return n.value.filter(f=>String(f[e.textField]??"").toLowerCase().includes(d))});function u(d){r.value=d}function a(d){t.emit("confirmResult",d[e.textField]),t.emit("searchedValue",[d])}function s(d){return t.slots.default?t.slots.default({item:d}):i.createVNode("span",null,[d[e.textField]])}const l=i.computed(()=>{const d={padding:"8px"};return e.maxHeight!==void 0&&e.maxHeight>0&&(d.maxHeight=`${e.maxHeight}px`),d});return i.watch(()=>e.data,d=>{d!==n.value&&(n.value=d)}),t.expose({search:u}),()=>i.createVNode("div",{class:"search-box-container f-utils-overflow-xhya position-relative",style:l.value},[e.loading&&i.createVNode("div",{class:"search-box-loading"},[i.createVNode("i",{class:"fx-icon fx-icon-bubble_step_loading fx-icon-spin"},null)]),i.createVNode("ul",{class:"search-box-list"},[o.value.map(d=>i.createVNode("li",{class:"search-box-item dropdown-item",key:d[e.idField],onClick:()=>a(d)},[s(d)])),!e.loading&&o.value.length===0&&i.createVNode("li",{class:"search-box-empty"},[i.createTextVNode("无匹配结果")])])])}}),Sr=i.defineComponent({name:"FXSearchBox",props:jl,emits:["update:modelValue","change","selectedValue","clickButton"],setup(e,t){const n=i.ref(),r=i.ref(),o=i.ref(),u=i.ref(e.modelValue),a=i.ref(!1),s='<i class="fx-icon fx-icon-clockwise fx-icon-spin"></i>',l=i.computed(()=>e.loading?s:e.buttonContent);i.watch(u,w=>{var k;(k=o.value)==null||k.search(w),t.emit("update:modelValue",w)}),i.watch(()=>e.modelValue,w=>{u.value=w});function d(w){u.value=w,m()}function f(w){const k=u.value;t.emit("change",w,{oldValue:k,newValue:w})}function c(w){t.emit("selectedValue",w)}function h(){t.emit("clickButton",{})}async function p(){var w;a.value=!0,await i.nextTick(),(w=r.value)==null||w.show(n.value)}function m(){var w;(w=r.value)==null||w.hide(),a.value=!1}function v(){a.value?m():p()}function x(w){const k=w.target.value;u.value=k,f(k),e.showDropdown&&k&&p()}function y(){e.showDropdown&&u.value&&p()}function g(){u.value="",t.emit("update:modelValue",""),m()}t.expose({togglePopup:v,hidePopup:m,showPopup:p});const b=i.computed(()=>{const w=we({},e.customClass);return["f-search-box",{"f-search-box-disabled":e.disable},...typeof w=="string"?[w]:Array.isArray(w)?w:[]]});return()=>i.createVNode("div",{class:b.value},[i.createVNode("div",{class:"f-search-box-input-group",ref:n},[i.createVNode("input",{class:"f-search-box-input form-control",type:"text",placeholder:e.placeholder,value:u.value,disabled:e.disable,onInput:x,onFocus:y},null),u.value&&!e.disable&&i.createVNode("span",{class:"f-search-box-clear",onClick:g},[i.createVNode("i",{class:"fx-icon fx-icon-close"},null)]),i.createVNode("span",{class:"f-search-box-button",onClick:h,innerHTML:l.value},null)]),e.showDropdown&&i.createVNode(en,{ref:r,placement:"bottom-left",keepWidthWithReference:!0,showArrow:!1,fitContent:!0,limitContentBySpace:!0,host:e.popupHost},{default:()=>[i.createVNode(Eu,{ref:o,data:e.data,idField:e.idField,textField:e.textField,onConfirmResult:d,onSearchedValue:w=>c(w),loading:e.loading,maxHeight:e.maxHeight},t.slots)]})])}});Sr.install=e=>{e.component(Sr.name,Sr),e.component(Eu.name,Eu)};const ui={data:{type:Array,default:()=>[]},view:{type:String,default:"ContentView"},customClass:{type:String,default:""},itemClass:{type:[String,Function],default:""},idField:{type:String,default:"id"},textField:{type:String,default:"name"},titleField:{type:String,default:"name"},valueField:{type:String,default:"id"},group:{type:Object,default:void 0}};function t2(e){const t=i.ref([...e.data]),n=i.ref([]),r=i.ref(""),o=i.computed(()=>{var h;const c=e.group;return c!=null&&c.enable&&((h=c.groupFields)!=null&&h.length)?u(t.value,c):t.value.map((p,m)=>({type:0,data:p,originalIndex:m}))});function u(c,h){const p=[],m=h.groupFields[0],v=new Map;c.forEach(y=>{const g=String(y[m]??"");v.has(g)||v.set(g,[]),v.get(g).push(y)});let x=0;return v.forEach((y,g)=>{p.push({type:1,data:{[m]:g},groupField:m,groupValue:g,originalIndex:x++}),y.forEach(b=>{p.push({type:0,data:b,groupField:m,groupValue:g,originalIndex:x++})})}),p}function a(c){t.value=[...c],n.value=[],r.value=""}function s(c){r.value=c;const h=t.value.find(p=>p[e.idField]===c);h&&!n.value.includes(h)&&(n.value=[h])}function l(){n.value=[],r.value=""}function d(c){const h=n.value.indexOf(c);h>=0?n.value.splice(h,1):n.value=[c],r.value=c[e.idField]}function f(c){return n.value.includes(c)}return{data:t,visualData:o,selectedItems:n,activeItemId:r,updateDataSource:a,activeRowById:s,clearSelection:l,toggleSelection:d,isSelected:f}}const n2=i.defineComponent({name:"FXListViewItem",props:{...ui,item:{type:Object,default:()=>({})},index:{type:Number,default:0},isActive:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1}},emits:["clickItem"],setup(e,t){const n=i.computed(()=>({"f-list-view-item":!0,"f-list-view-item-active":e.isActive}));return()=>i.createVNode("li",{class:[n.value,typeof e.itemClass=="function"?e.itemClass(e.item,e.index):e.itemClass],onClick:()=>t.emit("clickItem",e.item,e.index)},[t.slots.default?t.slots.default({item:e.item,index:e.index,selectedItem:e.isSelected?e.item:null}):i.createVNode("span",null,[e.item[e.textField]])])}}),r2=i.defineComponent({name:"FXListGroupItem",props:{groupData:{type:Object,default:()=>({})},groupField:{type:String,default:""},groupValue:{type:String,default:""},index:{type:Number,default:0}},setup(e,t){return()=>i.createVNode("li",{class:"f-list-view-group-item"},[t.slots.default?t.slots.default({item:e.groupData,index:e.index}):i.createVNode("div",{class:"f-list-view-group-header"},[i.createVNode("i",{class:"fx-icon f-accordion-expand"},null),i.createVNode("span",null,[e.groupValue])])])}}),Fr=i.defineComponent({name:"FXListView",props:ui,emits:["clickItem"],setup(e,t){const{visualData:n,activeItemId:r,updateDataSource:o,activeRowById:u,clearSelection:a,toggleSelection:s,isSelected:l}=t2({data:e.data,idField:e.idField,group:e.group}),d=i.computed(()=>we({"f-list-view":!0},e.customClass));function f(c,h){s(c),t.emit("clickItem",c,h)}return t.expose({updateDataSource:o,activeRowById:u,clearSelection:a}),()=>i.createVNode("div",{class:d.value},[i.createVNode("div",{class:"f-list-view-content"},[i.createVNode("ul",{class:"f-listview-items"},[n.value.map((c,h)=>c.type===1?i.createVNode(r2,{key:`group_${c.groupValue}_${h}`,groupData:c.data,groupField:c.groupField,groupValue:c.groupValue,index:h},{default:t.slots.group}):i.createVNode(n2,{key:`${c.data[e.idField]}_${h}`,item:c.data,index:c.originalIndex,isActive:c.data[e.idField]===r.value,isSelected:l(c.data),itemClass:e.itemClass,textField:e.textField,onClickItem:f},{default:t.slots.content}))])])])}});Fr.install=e=>{e.component(Fr.name,Fr)};const $l={content:{type:Object,required:!0},defaultExpanded:{type:Boolean,default:!0}},_u=i.defineComponent({name:"FXAgentThinkingMessage",props:$l,setup(e){const t=i.ref(e.defaultExpanded),n=i.ref({}),r=i.computed(()=>{var p;const h=(p=e.content)==null?void 0:p.streamStatus;return h==="end"||h===void 0}),o=i.computed(()=>{var p;const h=(p=e.content)==null?void 0:p.title;return h||(r.value?"思考过程":"正在思考...")}),u=i.computed(()=>{var h;return((h=e.content)==null?void 0:h.steps)??[]}),a=i.computed(()=>{var h,p;return u.value.length>0?"":((p=(h=e.content)==null?void 0:h.text)==null?void 0:p.trim())??""}),s=i.computed(()=>{var h,p;return u.value.length>0||!!a.value||(((p=(h=e.content)==null?void 0:h.sources)==null?void 0:p.length)??0)>0});i.watch(u,h=>{const p={};h.forEach((m,v)=>{p[v]=n.value[v]??!!m.detail}),n.value=p},{immediate:!0}),i.watch(r,h=>{h&&(t.value=!1)});const l=()=>{t.value=!t.value},d=h=>{n.value={...n.value,[h]:!n.value[h]}},f=h=>i.createVNode("i",{class:"fx-icon fx-icon-foldup",style:{transform:h?"rotate(0deg)":"rotate(180deg)",transition:"all 0.3s ease-in-out"}},null),c=(h,p)=>{var x;const m=!!((x=h.detail)!=null&&x.trim()),v=n.value[p]??m;return i.createVNode("div",{class:"f-x-thinking-step",key:p},[i.createVNode("div",{class:"f-x-thinking-step-header",onClick:()=>m&&d(p)},[i.createVNode("span",{class:"f-x-thinking-step-dot","aria-hidden":!0},null),i.createVNode("span",{class:"f-x-thinking-step-summary"},[h.summary]),m?f(v):null]),m&&v?i.createVNode("div",{class:"f-x-thinking-step-detail"},[h.detail]):null])};return()=>{const h=e.content;if(!h)return null;const p={"f-x-thinking":!0,"is-pending":!r.value,"is-completed":r.value};return i.createVNode("div",{class:p},[i.createVNode("div",{class:"f-x-thinking-header",onClick:l},[r.value?null:i.createVNode(Jt,{status:"Working",variant:"thinking"},null),i.createVNode("span",{class:"f-x-thinking-title"},[o.value]),s.value?f(t.value):null]),t.value&&s.value?i.createVNode("div",{class:"f-x-thinking-body"},[a.value?i.createVNode("div",{class:"f-x-thinking-text"},[a.value]):null,u.value.map(c),h.sources&&h.sources.length>0?i.createVNode("ul",{class:"f-x-thinking-sources"},[h.sources.map((m,v)=>i.createVNode("li",{key:v},[m]))]):null]):null])}}});_u.install=e=>{e.component(_u.name,_u)};function u2(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function o2(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`#attachment:${encodeURIComponent(t)}`}function i2(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?{url:t}:{fileId:t}}const Su=i.defineComponent({name:"FXAttachmentFileMessage",props:{content:{type:Object,required:!0}},setup(e){const t=i.computed(()=>o2(e.content.media)),n=i.computed(()=>dn(i2(e.content.media)));async function r(o){o.preventDefault(),o.stopPropagation();const u=n.value;u&&await Vr(u,e.content.name)}return()=>{const o=!!n.value;return i.createVNode("div",{class:"f-ec-attach-row"},[i.createVNode("a",{class:"f-ec-attach f-ec-attach--stretch",href:t.value,target:"_blank",rel:"noopener noreferrer"},[i.createVNode("span",{class:"f-ec-attach-icon","aria-hidden":!0},[i.createTextVNode("📎")]),i.createVNode("span",{class:"f-ec-attach-body"},[i.createVNode("span",{class:"f-ec-attach-name"},[e.content.name]),i.createVNode("span",{class:"f-ec-attach-meta"},[i.createVNode("span",{class:"f-ec-attach-cat"},[e.content.category]),i.createVNode("span",{class:"f-ec-attach-size"},[u2(e.content.size)])])])]),o?i.createVNode("button",{type:"button",class:"f-ec-attach-download-btn","aria-label":"下载附件",title:"下载",onClick:r},[i.createVNode("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[i.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),i.createVNode("polyline",{points:"7 10 12 15 17 10","stroke-linecap":"round","stroke-linejoin":"round"},null),i.createVNode("line",{x1:"12",y1:"15",x2:"12",y2:"3","stroke-linecap":"round","stroke-linejoin":"round"},null)])]):null])}}});Su.install=e=>{e.component(Su.name,Su)};const a2={0:"高",1:"中",2:"低"},Fu=i.defineComponent({name:"ErrorReminderMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content.errorLevel;return i.createVNode("div",{class:["f-ec-error",`f-ec-error--lvl-${t}`]},[i.createVNode("div",{class:"f-ec-error-head"},[i.createVNode("span",{class:"f-ec-error-badge"},[a2[t]]),i.createVNode("span",{class:"f-ec-error-label"},[i.createTextVNode("错误提醒")])]),i.createVNode("div",{class:"f-ec-error-text"},[e.content.errorText]),e.content.errorLink?i.createVNode("a",{class:"f-ec-error-link",href:e.content.errorLink,target:"_blank",rel:"noopener noreferrer"},[i.createTextVNode("查看详情")]):null])}}});Fu.install=e=>{e.component(Fu.name,Fu)};function s2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Ot="__hitl_other__";function oi(e,t=120){return e?e.length>t?e.slice(0,t)+"...":e:""}function Dn(e){const t=e??"text";return t==="text"||t==="select"||t==="multi_select"||t==="confirm"||t==="form"||t==="date"||t==="number"?t:"text"}const Du=i.defineComponent({name:"FXHitlQuestion",props:{content:{type:Object,required:!0},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!0},pinned:{type:Boolean,default:!1},pinnedWidth:{type:String,default:void 0},pinnedInputHeight:{type:Number,default:0},pinnedBottom:{type:Number,default:36},teleportTo:{type:[String,Object],default:void 0},onSubmitAnswers:{type:Function,default:void 0}},setup(e){const t=i.ref(!1),n=i.ref(0),r=i.ref({}),o=i.ref({}),u=i.computed(()=>t.value||e.disabled);function a(C){const F={},P={};for(const M of C){const z=Dn(M.ui_type);if(z==="confirm")F[M.id]=void 0;else if(z==="text"||z==="select")F[M.id]=M.default_value??"";else if(z==="multi_select")F[M.id]=M.default_value?JSON.parse(M.default_value):[];else if(z==="form"){const T={};if(Array.isArray(M.fields))for(const V of M.fields)T[V.name]=V.default_value??"";F[M.id]=T}else F[M.id]=M.default_value??"";P[M.id]={active:!1,text:""}}r.value=F,o.value=P,n.value=0}i.watch(()=>e.content.questions,C=>{Array.isArray(C)&&C.length&&a(C)},{immediate:!0}),i.watch(()=>e.content.answers,C=>{if(!Array.isArray(C)||C.length===0)return;const F={...r.value},P={...o.value};for(const M of C){F[M.id]=M.answer;const z=e.content.questions.find(T=>T.id===M.id);z&&Dn(z.ui_type)==="select"&&typeof M.answer=="string"&&!(z.options??[]).some(O=>O.label===M.answer)&&M.answer!==""&&(P[M.id]={active:!0,text:M.answer},F[M.id]=Ot)}r.value=F,o.value=P,t.value=!0},{immediate:!0});const s=i.computed(()=>e.content.questions.length),l=i.computed(()=>{const C=e.content.questions;if(C.length===0)return null;const F=Math.max(0,Math.min(n.value,C.length-1));return C[F]}),d=i.computed(()=>n.value<=0),f=i.computed(()=>n.value>=s.value-1),c=i.computed(()=>{const C=l.value;return C?m(C):!0});function h(){e.required&&!c.value||f.value||(n.value+=1)}function p(){d.value||(n.value-=1)}function m(C){var M,z;const F=Dn(C.ui_type),P=r.value[C.id];if(F==="text"&&(typeof P!="string"||P.trim()==="")||F==="select"&&(typeof P!="string"||P.trim()===""||P===Ot&&(((z=(M=o.value[C.id])==null?void 0:M.text)==null?void 0:z.trim())??"")==="")||F==="confirm"&&typeof P!="boolean"||F==="multi_select"&&(!Array.isArray(P)||P.length===0))return!1;if(F==="form"){const T=C.fields??[],V=P;for(const O of T)if(O.required){const I=V[O.name];if(typeof I!="string"||I.trim()==="")return!1}}return!((F==="date"||F==="number")&&(typeof P!="string"||P.trim()===""))}const v=i.computed(()=>u.value?!1:e.content.questions.every(C=>m(C)));function x(C,F){r.value={...r.value,[C]:F}}function y(C,F,P){const M=r.value[C]??{};x(C,{...M,[F]:P})}function g(C,F){var P;F===Ot?(o.value={...o.value,[C.id]:{...o.value[C.id],active:!0,text:((P=o.value[C.id])==null?void 0:P.text)??""}},x(C.id,Ot)):(o.value={...o.value,[C.id]:{active:!1,text:""}},x(C.id,F))}function b(C,F){const P=r.value[C.id]??[];P.includes(F)?x(C.id,P.filter(M=>M!==F)):x(C.id,[...P,F])}function w(){var F,P,M;if(!v.value)return;const C=[];for(const z of e.content.questions){const T=Dn(z.ui_type);let V=r.value[z.id];T==="select"&&V===Ot&&(V=((P=(F=o.value[z.id])==null?void 0:F.text)==null?void 0:P.trim())??""),T==="number"&&(V=Number(V)),C.push({id:z.id,answer:V})}t.value=!0,(M=e.onSubmitAnswers)==null||M.call(e,C)}function k(C,F,P){return i.createVNode("div",{class:"f-hitl-date-wrap"},[i.createVNode("input",{class:"f-hitl-input",type:"date",value:C,disabled:F,onInput:M=>P(M.target.value)},null)])}function D(C,F,P,M,z){const T=I=>{let $=Number(C)||0;$+=I,M!==void 0&&($=Math.max(M,$)),z!==void 0&&($=Math.min(z,$)),P(String($))},V=z!==void 0&&Number(C||0)>=z,O=M!==void 0&&Number(C||0)<=M;return i.createVNode("div",{class:"f-hitl-num-wrap"},[i.createVNode("input",{class:"f-hitl-input f-hitl-num-input",type:"number",value:C,min:M,max:z,disabled:F,onInput:I=>P(I.target.value)},null),i.createVNode("div",{class:"f-hitl-num-btns"},[i.createVNode("button",{type:"button",class:"f-hitl-num-btn",disabled:F||V,onClick:()=>T(1)},[i.createVNode("span",{class:"fx-icon fx-icon-foldup"},null)]),i.createVNode("button",{type:"button",class:"f-hitl-num-btn",disabled:F||O,onClick:()=>T(-1)},[i.createVNode("span",{class:"fx-icon fx-icon-expanddown"},null)])])])}function S(C,F,P,M){return i.createVNode("div",{key:C.label,class:["f-hitl-opt-row",{"f-hitl-opt-row--active":P}],onClick:M},[i.createVNode("span",{class:"f-hitl-opt-row__index"},[F+1]),i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[C.label]),C.description?i.createVNode("span",{class:"f-hitl-opt-row__desc"},[oi(C.description)]):null]),i.createVNode("span",{class:"f-hitl-opt-row__check"},[P?i.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])])}function E(C,F){return i.createVNode("div",{class:"f-hitl-form-item",key:C.name},[i.createVNode("div",{class:"f-hitl-form-item__label"},[C.label]),F])}function X(C,F,P){const M=r.value[C.id]??"",z=r.value[C.id]??[],T=o.value[C.id]??{active:!1,text:""},V=P==="single",O=V&&M===Ot||T.active,I=C.allow_other&&O,$=te=>V?M===te.label&&!T.active:z.includes(te.label),J=te=>()=>{u.value||(V?g(C,te.label):b(C,te.label))},K=()=>{if(!u.value)if(V)g(C,Ot);else{const te=T.text;T.active?(x(C.id,z.filter(ae=>ae!==te)),o.value={...o.value,[C.id]:{active:!1,text:""}}):(o.value={...o.value,[C.id]:{active:!0,text:T.text}},T.text&&!z.includes(T.text)&&x(C.id,[...z,T.text]))}},Y=te=>{const ae=te.target.value;o.value={...o.value,[C.id]:{active:!0,text:ae}},V?x(C.id,Ot):x(C.id,[...z.filter(be=>be!==T.text),ae])};return i.createVNode("div",{key:C.id},[i.createVNode("div",{class:"f-hitl-option-list"},[F.map((te,ae)=>S(te,ae,$(te),J(te))),C.allow_other?i.createVNode("div",{class:["f-hitl-opt-row f-hitl-opt-row--other",{"f-hitl-opt-row--active":O}],onClick:K},[i.createVNode("span",{class:"f-hitl-opt-row__index"},[i.createTextVNode("...")]),i.createVNode("span",{class:"f-hitl-opt-row__label"},[i.createTextVNode("其他")]),i.createVNode("span",{class:"f-hitl-opt-row__check"},[O?i.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])]):null]),I?i.createVNode("input",{class:"f-hitl-input f-hitl-input--other",type:"text",value:T.text,placeholder:"请输入自定义内容",disabled:u.value,onInput:Y},null):null])}function j(C){const F=r.value[C.id]??{},P=C.fields??[];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("div",{class:"f-hitl-form-group"},[P.map(M=>{const z=F[M.name]??"";return M.type==="select"?E(M,i.createVNode("div",{class:"f-hitl-select-group"},[(M.options??[]).map(T=>{const V=typeof T=="string"?T:T.label??"";return i.createVNode("button",{key:V,type:"button",class:["f-hitl-opt",{"f-hitl-opt--active":z===V}],disabled:u.value,onClick:()=>y(C.id,M.name,V)},[V])})])):M.type==="number"?E(M,D(z,u.value,T=>y(C.id,M.name,T),M.min,M.max)):M.type==="date"?E(M,k(z,u.value,T=>y(C.id,M.name,T))):E(M,i.createVNode("input",{class:"f-hitl-input",type:"text",value:z,placeholder:M.default_value??"请输入",disabled:u.value,onInput:T=>y(C.id,M.name,T.target.value)},null))})])])}function B(C){const F=Dn(C.ui_type);if(F==="text"){const P=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("input",{class:"f-hitl-input",type:"text",value:P,placeholder:C.placeholder??"请输入",disabled:u.value,onInput:M=>x(C.id,M.target.value)},null)])}if(F==="multi_select"){const P=Array.isArray(C.options)?C.options:[];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[X(C,P,"multi")])}if(F==="form")return j(C);if(F==="select"){let P=Array.isArray(C.options)?C.options:[];return P.length===0&&(P=[{label:"暂无"}]),i.createVNode("div",{class:"f-hitl-field",key:C.id},[X(C,P,"single")])}if(F==="confirm"){const P=r.value[C.id];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("div",{class:"f-hitl-confirm"},[i.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":P===!0}],disabled:u.value,onClick:()=>x(C.id,!0)},[i.createTextVNode("是")]),i.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":P===!1}],disabled:u.value,onClick:()=>x(C.id,!1)},[i.createTextVNode("否")])])])}if(F==="date"){const P=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[k(P,u.value,M=>x(C.id,M))])}if(F==="number"){const P=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[D(P,u.value,M=>x(C.id,M),C.min,C.max)])}return i.createVNode("div",{class:"f-hitl-field f-hitl-field--unsupported",key:C.id},[i.createVNode("div",{class:"f-hitl-unsupported"},[i.createTextVNode("暂不支持 ui_type「"),String(C.ui_type),i.createTextVNode("」,请升级前端。")])])}function H(C){const F=Dn(C.ui_type),P=(z,T,V)=>i.createVNode("input",{class:"f-hitl-input",type:z,value:T,readonly:!0,min:V==null?void 0:V.min,max:V==null?void 0:V.max},null);if(F==="text"){const z=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[P("text",z)])}if(F==="multi_select"){const z=r.value[C.id]??[],T=Array.isArray(C.options)?C.options:[],V=new Set(T.map(I=>I.label)),O=z.filter(I=>!V.has(I));return i.createVNode("div",{key:C.id},[i.createVNode("div",{class:"f-hitl-option-list"},[T.filter(I=>z.includes(I.label)).map(I=>i.createVNode("div",{class:"f-hitl-opt-row",key:I.label},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[I.label]),I.description?i.createVNode("span",{class:"f-hitl-opt-row__desc"},[oi(I.description)]):null])])),O.map(I=>i.createVNode("div",{class:"f-hitl-opt-row",key:I},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[I])])]))])])}if(F==="select"){const z=r.value[C.id]??"",T=o.value[C.id]??{active:!1,text:""},V=Array.isArray(C.options)?C.options:[],O=z===Ot||T.active;return i.createVNode("div",{key:C.id},[i.createVNode("div",{class:"f-hitl-option-list"},[O?i.createVNode("div",{class:"f-hitl-opt-row"},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[T.text||"其他"])])]):V.filter(I=>I.label===z).map(I=>i.createVNode("div",{class:"f-hitl-opt-row",key:I.label},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[I.label]),I.description?i.createVNode("span",{class:"f-hitl-opt-row__desc"},[oi(I.description)]):null])]))])])}if(F==="confirm"){const z=r.value[C.id];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("div",{class:"f-hitl-confirm"},[i.createVNode("button",{type:"button",class:["f-hitl-cbtn","f-hitl-cbtn--readonly"]},[z===!0?"是":"否"])])])}if(F==="form"){const z=r.value[C.id]??{},T=C.fields??[];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("div",{class:"f-hitl-form-group"},[T.map(V=>{const O=z[V.name]??"";let I;return V.type==="number"?I=P("number",O,{min:V.min,max:V.max}):V.type==="date"?I=P("date",O):I=P("text",O),E(V,I)})])])}if(F==="date"){const z=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[P("date",z)])}if(F==="number"){const z=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[P("number",z)])}const M=r.value[C.id];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("span",{class:"f-hitl-submitted-value"},[String(M??"")])])}function L(C){return i.createVNode("div",{class:"f-hitl-card__title-wrap"},[i.createVNode("span",{class:"f-hitl-card__title"},[C.question]),i.createVNode("span",{class:"f-hitl-card__subtitle"},[C.header])])}function W(){return s.value<=1?null:i.createVNode("div",{class:"f-hitl-pagination"},[i.createVNode("button",{type:"button",class:"f-hitl-pagination__btn",disabled:d.value,onClick:p},[i.createVNode("span",{class:"fx-icon fx-icon-arrow-left"},null)]),i.createVNode("span",{class:"f-hitl-pagination__text"},[n.value+1,i.createTextVNode("/"),s.value]),i.createVNode("button",{type:"button",class:"f-hitl-pagination__btn",disabled:f.value,onClick:h},[i.createVNode("span",{class:"fx-icon fx-icon-arrow-right"},null)])])}function G(){const C=e.pinnedWidth?{width:`calc(${e.pinnedWidth} * 0.8)`,minWidth:"343px",maxWidth:"800px"}:void 0;return i.createVNode("div",{class:"f-hitl-card",style:C},[i.createVNode("div",{class:"f-hitl-submitted-flat"},[e.content.questions.map(F=>i.createVNode("div",{class:"f-hitl-submitted-item",key:F.id},[i.createVNode("div",{class:"f-hitl-card__header"},[L(F)]),i.createVNode("div",{class:"f-hitl-card__body"},[H(F)])]))])])}function N(){const C=l.value;if(!C)return null;const F=e.pinned?"f-hitl-card--pinned":"",P=e.pinned&&e.pinnedWidth?{width:e.pinnedWidth}:void 0,M=e.pinnedInputHeight??0,z=e.pinnedBottom??36,T=()=>i.createVNode(i.Fragment,null,[i.createVNode("div",{class:"f-hitl-card__header"},[L(C),W()]),i.createVNode("div",{class:"f-hitl-card__body"},[B(C)]),!u.value&&i.createVNode("div",{class:"f-hitl-card__footer"},[s.value>1&&!f.value&&i.createVNode("button",{type:"button",class:"f-hitl-btn",disabled:e.required&&!c.value,onClick:h},[i.createTextVNode("下一条")]),f.value&&i.createVNode("button",{type:"button",class:"f-hitl-btn",disabled:!v.value,onClick:w},[i.createTextVNode("提交")])])]);if(e.pinned){const V=i.createVNode("div",{class:"f-hitl-pinned-spacer","aria-hidden":"true"},[i.createVNode("div",{class:"f-hitl-card",style:{...P,marginBottom:`-${M}px`}},[T()])]);if(e.teleportTo){const I={...P,bottom:`${z}px`},$=i.createVNode("div",{class:["f-hitl-card",F],style:I},[T()]);return i.createVNode(i.Fragment,null,[V,i.createVNode(i.Teleport,{to:e.teleportTo},s2($)?$:{default:()=>[$]})])}const O=i.createVNode("div",{class:["f-hitl-card",F],style:P},[T()]);return i.createVNode(i.Fragment,null,[V,O])}return i.createVNode("div",{class:["f-hitl-card",F],style:P},[T()])}return()=>u.value?G():N()}});Du.install=e=>{e.component(Du.name,Du)};function l2(e,t){var r;const n=(r=e.pickActions)==null?void 0:r[t];return n||e.pickActionDefault}const Nu=i.defineComponent({name:"InputRecommendMessage",props:{content:{type:Object,required:!0},onPick:{type:Function,default:void 0}},setup(e){const t=(n,r)=>{var o;l2(e.content,r),(o=e.onPick)==null||o.call(e,n)};return()=>i.createVNode("div",{class:"f-ec-recommend"},[e.content.title?i.createVNode("div",{class:"f-ec-recommend-title"},[e.content.title]):null,i.createVNode("div",{class:"f-ec-recommend-chips"},[e.content.suggestions.map((n,r)=>i.createVNode("button",{key:r,type:"button",class:"f-ec-recommend-chip",onClick:()=>t(n,r)},[n]))])])}});Nu.install=e=>{e.component(Nu.name,Nu)};const Tu=i.defineComponent({name:"LinkCardMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>{const t=e.content;return i.createVNode("div",{class:"f-ec-linkcard"},[t.poster?i.createVNode("div",{class:"f-ec-linkcard-poster"},[i.createVNode("img",{src:t.poster,alt:""},null)]):null,i.createVNode("div",{class:"f-ec-linkcard-body"},[i.createVNode("a",{class:"f-ec-linkcard-title",href:t.url,target:"_blank",rel:"noopener noreferrer"},[t.title]),t.subtitle?i.createVNode("div",{class:"f-ec-linkcard-sub"},[t.subtitle]):null,t.relatedLinks&&t.relatedLinks.length>0?i.createVNode("div",{class:"f-ec-linkcard-related"},[i.createVNode("div",{class:"f-ec-linkcard-related-label"},[i.createTextVNode("相关阅读")]),i.createVNode("ul",null,[t.relatedLinks.map((n,r)=>i.createVNode("li",{key:r},[i.createVNode("a",{href:n.url,target:"_blank",rel:"noopener noreferrer"},[n.title])]))])]):null])])}}});Tu.install=e=>{e.component(Tu.name,Tu)};const Iu=i.defineComponent({name:"ReferenceSourcesMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>i.createVNode("div",{class:"f-ec-sources"},[i.createVNode("div",{class:"f-ec-sources-title"},[i.createTextVNode("引用来源")]),i.createVNode("ul",{class:"f-ec-sources-list"},[e.content.items.map((t,n)=>i.createVNode("li",{key:n},[i.createVNode("a",{href:t.url,target:"_blank",rel:"noopener noreferrer"},[t.title])]))])])}});Iu.install=e=>{e.component(Iu.name,Iu)};const Ou=i.defineComponent({name:"UnknownEnterpriseMessage",props:{content:{type:Object,required:!0}},setup(e){return()=>i.createVNode("div",{class:"f-ec-unknown"},[i.createVNode("div",{class:"f-ec-unknown-title"},[i.createTextVNode("未知类型消息")]),e.content.wireType?i.createVNode("div",{class:"f-ec-unknown-wire"},[i.createTextVNode("wire type: "),e.content.wireType]):null,i.createVNode("div",{class:"f-ec-unknown-desc"},[e.content.hint??"客户端无法识别此消息类型,已按占位展示。"])])}});Ou.install=e=>{e.component(Ou.name,Ou)},ir.install=e=>{e.component(ir.name,ir)};const c2={install(e){e.use(at).use(ar).use(sr).use(dr).use(hr).use(br).use(yr).use(wr).use(xr).use(bn).use(un).use(Sn).use(tn).use(vr).use(Ar).use(kr).use(Cr).use(Er).use(vn).use(An).use(en).use(Cn).use(_r).use(Sr).use(Fr)}};R.FXAgentThinking=_u,R.FXAppPreview=at,R.FXAttachmentFile=Su,R.FXAttachmentPreview=Er,R.FXBubble=ar,R.FXBubbleAction=Po,R.FXCarousel=sr,R.FXCarouselItem=fu,R.FXChatPreview=dr,R.FXCoding=br,R.FXConfirmDialog=hr,R.FXDynamicComponent=An,R.FXErrorReminder=Fu,R.FXFileEmbeddedContent=Ni,R.FXFileOperation=yr,R.FXGenerateProcess=wr,R.FXHistory=xr,R.FXHitlQuestion=Du,R.FXInputRecommend=Nu,R.FXLinkCard=Tu,R.FXListView=Fr,R.FXMarkdown=bn,R.FXMarkdownPreview=un,R.FXNav=_r,R.FXPopover=en,R.FXPopoverDirective=ys,R.FXPrompt=Cu,R.FXPrompts=Sn,R.FXReferenceSources=Iu,R.FXSearchBox=Sr,R.FXSearchBoxContainer=Eu,R.FXSplitter=Cn,R.FXSplitterPane=lr,R.FXStartedTodo=tn,R.FXSuggestion=vr,R.FXTodo=Ar,R.FXTodoListItemView=du,R.FXTodoListView=or,R.FXToolUse=kn,R.FXToolUseBatch=kr,R.FXUnknownEnterprise=Ou,R.FXUserAuth=ir,R.FXWelcome=Cr,R.FXWidgetContainer=vn,R.PREVIEW_BRIDGE_MESSAGE_TYPE_ASSISTANT=ti,R.PREVIEW_BRIDGE_SOURCE=Jo,R.PREVIEW_BRIDGE_VERSION=ei,R.agentThinkingProps=$l,R.appPreviewMessageProps=ye,R.attachmentPreviewProps=Ml,R.bubbleActionProps=As,R.bubbleProps=Lr,R.carouselItemProps=Cs,R.carouselProps=ks,R.chatHistoryProps=Tl,R.chatPreviewProps=_s,R.clonePreviewPayloadForPostMessage=cl,R.codingMessageProps=Sl,R.confirmDialogProps=gl,R.createPreviewIframeSdk=Qp,R.default=c2,R.extractFileIdFromRuntimeDownloadUrl=wi,R.fileEmbeddedContentProps=Si,R.fileOperationMessageProps=Dl,R.generateProcessProps=Nl,R.getCustomClass=we,R.getCustomStyle=Ce,R.getDynamicCompState=qh,R.getDynamicComponentRegistryDebugSnapshot=Oo,R.invokeAgentWorkbenchSdkApi=Kp,R.isImageUrl=Ai,R.isPreviewBridgeAssistantMessage=fl,R.listViewProps=ui,R.loadDynamicComponent=fs,R.markdownMessageProps=za,R.markdownPreviewProps=Ss,R.navProps=zl,R.normalizeDynamicComponentRegisterClaim=De,R.overflowTooltipDirective=_i,R.peekDynamicComponentRegisterBootstrapId=Wh,R.popoverProps=ps,R.postAssistantToPreviewIframe=hl,R.postDynamicComponentAssistantMessage=Kh,R.previewLayoutBridge=t1,R.promptProps=Ll,R.promptsProps=Il,R.registerPreviewChromeSdk=e1,R.renderIconNode=Pr,R.renderNode=zn,R.resolveHrefForAttachmentDownload=dn,R.resolveRuntimeAttachmentDownloadUrl=Uu,R.searchBoxContainerProps=Hl,R.searchBoxProps=jl,R.splitterProps=Es,R.startedTodoProps=ws,R.subscribeAssistantInPreviewIframe=ml,R.suggestionProps=Vl,R.todoListItemProps=vs,R.todoListViewProps=xs,R.todoProps=Pl,R.triggerAttachmentDownload=Vr,R.unloadDynamicComponent=hs,R.useAttachment=Fi,R.useSequentialStreaming=Rr,R.useStreamingOutput=ki,R.useTimer=Wu,R.useToolIcon=Gu,R.welcomeProps=Rl,R.widgetContainerProps=is,Object.defineProperties(R,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});