@farris/x-ui 0.3.8 → 0.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/farris.x-ui.umd.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(V,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(V=typeof globalThis<"u"?globalThis:V||self,i(V.FarrisX={},V.vue))})(this,function(V,i){"use strict";var C2=Object.defineProperty;var hc=V=>{throw TypeError(V)};var _2=(V,i,ve)=>i in V?C2(V,i,{enumerable:!0,configurable:!0,writable:!0,value:ve}):V[i]=ve;var ge=(V,i,ve)=>_2(V,typeof i!="symbol"?i+"":i,ve),pi=(V,i,ve)=>i.has(V)||hc("Cannot "+ve);var A=(V,i,ve)=>(pi(V,i,"read from private field"),ve?ve.call(V):i.get(V)),se=(V,i,ve)=>i.has(V)?hc("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(V):i.set(V,ve),ne=(V,i,ve,lt)=>(pi(V,i,"write to private field"),lt?lt.call(V,ve):i.set(V,ve),ve),J=(V,i,ve)=>(pi(V,i,"access private method"),ve);var Ho=(V,i,ve,lt)=>({set _(Rr){ne(V,i,Rr,ve)},get _(){return A(V,i,lt)}});var Xl,It,In,ql,Zl,st,tt,mt,ln,pt,On,Ln,gt,Se,bt,Ce,be,ie,We,nt,Me,Ie,yt,Oe,wt,xt,rt,ot,vt,Kt,Ge,Vn,Y,gi,cn,Pt,Ir,ut,mc,dn,Pn,Or,Qt,Jt,bi,$o,Uo,ye,yi,Pr,en,wi,Rn;const ve={content:{type:Object,required:!0},onOpen:{type:Function,default:void 0}},lt=i.defineComponent({name:"AppPreviewMessage",props:ve,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 u(a){const s=a.target;s!=null&&s.closest(".f-chat-app-preview-open-btn")||a.preventDefault()}function o(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:u,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:o,title:"在新页签中打开","aria-label":"在新页签中打开"},[i.createVNode("i",{class:"fx-icon fx-icon-folder-open"},null)])])])])}}});lt.install=e=>{e.component(lt.name,lt)};const Rr={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"}},Wo={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},pc="/api/runtime/attachment";function gc(){try{const e=Wo==null?void 0:Wo.VITE_ATTACHMENT_API_BASE;if(typeof e=="string"&&e.trim()!=="")return e.replace(/\/+$/,"")}catch{}return""}function bc(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 yc(e){return`${pc}/${encodeURIComponent(e)}/download`}function Go(e){const t=String(e??"").trim();if(!t)return"";const n=yc(t),r=gc();return r?`${r}${n}`:n}function xi(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 vi(e){return String(e??"").replace(/[/\\]/g,"_").trim()||"download"}function wc(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 Ai(e){const t=bc(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 xc(e,t){const n=URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=vi(t),r.rel="noopener noreferrer",r.style.display="none",document.body.appendChild(r),r.click(),r.remove(),URL.revokeObjectURL(n)}function vc(e){const t=document.createElement("a");t.href=Ai(e),t.rel="noopener noreferrer",t.style.display="none",document.body.appendChild(t),t.click(),t.remove()}function mn(e){const t=String(e.fileId??"").trim();if(t)return Go(t);const n=String(e.url??"").trim();if(!n)return;const r=xi(n);if(r)return Go(r);if(n.startsWith("http://")||n.startsWith("https://")||n.startsWith("/"))return n}async function Mr(e,t){const n=vi(t),r=Ai(e);try{const u=await fetch(r,{credentials:"include",mode:"cors"});if(!u.ok)throw new Error(`download_http_${u.status}`);const o=await u.blob(),a=wc(u.headers.get("Content-Disposition"))??n;xc(o,a)}catch{vc(e)}}function Ae(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 Ee(e,t){return t&&(typeof t=="string"?t.split(";").filter(Boolean).forEach(r=>{var o,a;const u=r.split(":");if(u.length>=2&&((o=u[0])!=null&&o.trim())&&((a=u[1])!=null&&a.trim())){const s=u[0].trim(),l=u.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 Hn(e){return e||null}function ki(e){return e?/\.(jpg|jpeg|png|gif|svg|webp|bmp|ico)$/i.test(e)||e.startsWith("http")||e.startsWith("data:image"):!1}function Br(e){return e?typeof e!="string"?e:ki(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 Ci(e,t,n,r={}){const{charInterval:u=30}=r,o=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(),o.value={},s.clear()},h=()=>{f(),o.value={},s.clear()},p=()=>{const m=e();if(!m||Object.keys(m).length===0){o.value={};return}if(!d()){o.value={...m},s=new Set(Object.keys(m));return}const x=Object.keys(m);x.forEach(g=>{o.value.hasOwnProperty(g)||(o.value[g]="")});const v=x.filter(g=>!s.has(g));if(v.length===0)return;let y=0;const b=()=>{var F;if(y>=v.length)return;const g=v[y],w=m[g];if(!w){s.add(g),y++,b();return}let k=((F=o.value[g])==null?void 0:F.length)||0;const D=setInterval(()=>{k<w.length?(o.value={...o.value,[g]:w.slice(0,k+1)},k++):(clearInterval(D),a=a.filter(S=>S!==D),s.add(g),y++,b())},u);a.push(D)};b()};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:o}}function zr(){const e=i.reactive({}),t=[],n=i.ref(null);let r=null;const u=30,o=m=>{const x=e[m];return!x||x.displayedLength>=x.rawValue.length},a=i.computed(()=>Object.keys(e).length===0?!1:Object.keys(e).every(m=>o(m))),s=()=>{for(const m of t)if(!o(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,u))},c=()=>{d(),Object.keys(e).forEach(m=>{delete e[m]}),t.length=0,n.value=null},h=(m,x)=>{if(e[m]){p(m,x);return}t.push(m),e[m]={rawValue:x??"",displayedLength:0,isStreaming:!1,displayedValue:""},r||(!n.value||n.value===m)&&f()},p=(m,x)=>{const v=e[m];if(!v){h(m,x);return}v.rawValue=x??"",!r&&!o(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 Xo(){const e=i.ref(null),t=i.ref(0),n=i.ref(!1);let r=null;const u=()=>{e.value=Date.now(),n.value=!0,r=setInterval(()=>{e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))},1e3)},o=()=>{r&&(clearInterval(r),r=null),e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))};return{elapsedSeconds:t,hasEverStarted:n,start:u,stop:o,reset:()=>{o(),e.value=null,t.value=0,n.value=!1}}}const Ac={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 kc(e){return e?e.startsWith("mcp:")?"tool_mcp":Ac[e]??"thinking_tool":"thinking_tool"}function qo(){return{getToolIconClass:kc}}function Cc(e){return e.scrollWidth>e.clientWidth}function _i(){Cc(this)?this.title=this.textContent??"":this.removeAttribute("title")}function Ei(){this.removeAttribute("title")}const Si={mounted(e){e.addEventListener("mouseenter",_i),e.addEventListener("mouseleave",Ei)},updated(e){e.removeAttribute("title")},unmounted(e){e.removeEventListener("mouseenter",_i),e.removeEventListener("mouseleave",Ei)}};function _c(e,t){const n=i.computed(()=>{var u;return Ee({},(u=e.styles)==null?void 0:u.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 Ec(e,t){var o;const n=i.ref(((o=e.content)==null?void 0:o.sender)??"发送人"),r=i.computed(()=>{var a;return Ee({},(a=e.styles)==null?void 0:a.header)});function u(){return i.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:r.value},[n.value])}return{renderHeader:u}}const Fi={file:{type:Object,required:!0},customStyle:{type:Object,default:()=>({})},onPreviewFile:{type:Function,default:void 0},onBatchPreviewFile:{type:Function,default:void 0}},Sc={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 Di(){return{getFileIcon:(u,o="file-type-",a="")=>{var d;const s={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",html:"html",json:"json"};let l=u?s[u.toLowerCase()]:"";if(!l&&a){const f=((d=a.split(".").pop())==null?void 0:d.toLowerCase())||"";l=f?s[f]:""}return`${o}${l||"any"}`},formatFileName:u=>(u==null?void 0:u.replace(/\.[^.]+$/,""))??"",formatFileSize:u=>u?u<1024?u+" B":u<1048576?(u/1024).toFixed(1)+" KB":(u/1048576).toFixed(1)+" MB":"",formatFileTime:u=>{if(!u)return"";const o=new Date(u),a=o.getFullYear(),s=String(o.getMonth()+1).padStart(2,"0"),l=String(o.getDate()).padStart(2,"0");return`${a}-${s}-${l}`}}}function tn({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 Ni=i.defineComponent({name:"FXBubbleAttachment",props:Sc,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:u,formatFileSize:o,formatFileTime:a,getFileIcon:s}=Di(),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,b){b.pending||t.emit("preview",b)}async function c(y,b){y.stopPropagation(),y.preventDefault();const g=mn(b);g&&await Mr(g,b.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 b=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,"file-type-",y.name)}`},null),b&&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"},[o(y.size)])])])])}function x(y,b){const g=mn(y);return i.createVNode("div",{class:"f-chat-bubble-attachment-item "+s(y.type,"attachment-type-",y.name)+(y.pending?" status-working":""),key:b,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,"file-type-",y.name)},null),i.createVNode("span",{class:d.value,title:y.name},[u(y.name)]),y.pending===!0&&i.createVNode("div",{class:"f-chat-bubble-attachment-status status-working"},[i.createVNode(tn,{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("文件大小:"),o(y.size)]):null])]),e.showDownloadButton!==!1&&g?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 v(y,b){return i.createVNode("div",{class:"f-chat-bubble-attachment-toast",key:b},[m(y)])}return()=>r.value?i.createVNode("div",{class:{"f-chat-bubble-attachments":!0,"attachments-toast":e.role==="user"}},[n.value.map((y,b)=>e.role==="user"?v(y,b):x(y,b)),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}}),Ti=i.defineComponent({name:"FXBubbleFileContentFooter",props:Fi,setup(e,t){const n=i.computed(()=>e.file?Array.isArray(e.file)?[...e.file]:[e.file]:[]);return Ee({},e.customStyle),()=>i.createVNode(Ni,{attachments:n.value,onPreview:r=>{var u;return(u=e.onPreviewFile)==null?void 0:u.call(e,r)},onBatchPreview:r=>{var u;return(u=e.onBatchPreviewFile)==null?void 0:u.call(e,r)}},null)}}),Fc={pageUrl:{type:String,required:!0},customStyle:{type:Object,default:()=>({})},onNavigate:{type:Function,default:void 0}},Dc=i.defineComponent({name:"FXBubblePageContentFooter",props:Fc,setup(e,t){const n=i.ref(),r=i.computed(()=>{var a,s;const o={width:"100%",height:"100%",border:"none"};return(a=e.customStyle)!=null&&a.width&&(o.width=e.customStyle.width),(s=e.customStyle)!=null&&s.height&&(o.height=`${e.customStyle.height}px`),o}),u=o=>{var a,s;((a=o.data)==null?void 0:a.type)==="navigation"&&((s=o.data)!=null&&s.url)&&e.onNavigate&&e.onNavigate(o.data.url)};return i.onMounted(()=>{window.addEventListener("message",u)}),i.onUnmounted(()=>{window.removeEventListener("message",u)}),()=>i.createVNode("iframe",{ref:n,src:e.pageUrl,style:r.value,scrolling:"auto"},null)}});function Ii(){function e(u,o){const{fileContent:a,height:s,width:l}=u;return{file:a,customStyle:{width:l||"100%",height:s||"100%"},onPreviewFile:o==null?void 0:o.onPreviewFile,onBatchPreviewFile:o==null?void 0:o.onBatchPreviewFile}}function t(u,o){const{pageUrl:a,height:s,width:l}=u;return{pageUrl:a,customStyle:{width:l||"100%",height:s||"100%"},onNavigate:o==null?void 0:o.onNavigate}}function n(u,o){const a=e(u,o);return i.h(Ti,a)}function r(u,o){const a=t(u,o);return i.h(Dc,a)}return{renderFileEmbeddedContent:n,renderPageEmbeddedContent:r}}const Nc={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}},Zo="assistant-widget",ct="```";function $n(e,t){let n=t;for(;n<e.length&&/\s/.test(e[n]);)n+=1;return n}function Oi(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 Li(e){const t=e.toLowerCase();return t.length===0||t.length>Zo.length?!1:Zo.startsWith(t)}function Tc(e){return e.toLowerCase()===Zo}function Ic(e,t){let n=0;for(;n<t;){const r=e.indexOf(ct,n);if(r===-1||r>=t)break;let u=r+ct.length;u=$n(e,u);const{lang:o}=Oi(e,u);if(o.length>0)return!0;n=r+ct.length}return!1}function Vi(e,t){if(!e.startsWith(ct,t))return null;let n=t+ct.length;n=$n(e,n);const{lang:r,next:u}=Oi(e,n);return r.length===0?e.slice(u).trim().length===0?Ic(e,t)?null:{fenceStart:t,bodyStart:u,langComplete:!1}:null:Li(r)?(n=$n(e,u),{fenceStart:t,bodyStart:n,langComplete:Tc(r)}):null}function Yo(e,t=0){const n=$n(e,t);return Vi(e,n)}function Oc(e,t,n){if(t<n)return!1;const r=e.slice(t+ct.length);return r.length===0?!0:r.startsWith("`")?!1:(/^\s*[\r\n]/.test(r)||/^\s*$/.test(r),!0)}function jr(e,t){let n=t;for(;n<=e.length;){const r=e.indexOf(ct,n);if(r===-1)return-1;if(Oc(e,r,t))return r;n=r+1}return-1}function Lc(e){const t=Yo(e,0);if(!(t!=null&&t.langComplete))return null;const n=jr(e,t.bodyStart);return n===-1?null:e.slice(t.bodyStart,n).trim()}function Pi(e){return e.replace(/```\s*assistant-widget\s*/gi,"``` assistant-widget\n")}function Vc(e){const t=e.match(/^\s*```\s*([a-zA-Z0-9-]*)$/);return t?Li(t[1]??""):!1}function Pc(e,t){let n=t;for(;n<e.length;){const r=e.indexOf(ct,n);if(r===-1)return null;const u=Vi(e,r);if(u)return{fenceIdx:r,open:u};n=r+ct.length}return null}function Ri(e){if(!e)return!1;const t=Yo(e,0);if(!(t!=null&&t.langComplete))return!1;const n=jr(e,t.bodyStart);return n===-1?!1:$n(e,n+ct.length)>=e.length}function Rc(e){if(!e)return!1;if(Ri(e)||Vc(e))return!0;const t=Yo(e,0);return t?t.langComplete?jr(e,t.bodyStart)===-1:!0:!1}function Mc(e){if(!e)return[];const t=[];let n=0;for(;n<e.length;){const r=Pc(e,n);if(!r){const l=e.slice(n);l&&t.push(l);break}const{fenceIdx:u,open:o}=r;if(u>n&&t.push(e.slice(n,u)),!o.langComplete){t.push(e.slice(u));break}const a=jr(e,o.bodyStart);if(a===-1){t.push(e.slice(u));break}const s=a+ct.length;t.push(Pi(e.slice(u,s))),n=s}return t.filter(r=>r.trim().length>0)}function Mi(e){const t=Lc(Pi(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 Bc(e){var n;const t=Mi(e);return((n=t==null?void 0:t.renderer)==null?void 0:n.widgetImplOptions)||{}}const zc=/^```\s*dynamic-component\b[\s\S]*?```$/,jc=/^```\s*dynamic-component\b/,Hc=/^```\s*dynamic-component\b\s*/,$c=/\s*```\s*$/;function Uc(e){return e.replace(/```\s*dynamic-component\b/g,"``` dynamic-component")}function Bi(e){return e.replace(Hc,"").replace($c,"").trim()}function Wc(e,t){let n=t;for(;n<e.length;){const r=e.indexOf("```",n);if(r<0)return null;const o=e.slice(r+3).match(/^\s*dynamic-component\b/);if(o)return{fenceStart:r,contentStart:r+3+o[0].length};n=r+3}return null}function Gc(e){return e?zc.test(e)||jc.test(e):!1}function Xc(e){const t=Bi(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 qc(e){const t=Bi(e);if(!t)return null;const n=t.match(/"position"\s*:\s*"(inline|right)"/);return n?{position:n[1]}:null}function Zc(e){if(!e)return[];const t=[];let n=0;for(;n<e.length;){const r=Wc(e,n);if(!r){const l=e.slice(n);l&&t.push(l);break}const u=e.slice(n,r.fenceStart);u&&t.push(u);const o=e.indexOf("```",r.contentStart);if(o===-1){t.push(e.slice(r.fenceStart));break}const a=o+3,s=e.slice(r.fenceStart,a);t.push(Uc(s)),n=a}return t.filter(r=>r.length>0)}var Pe=(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))(Pe||{});function Yc(e){var u;if(!e)return[];const t=[],n=new Set,r=Mc(e);for(const o of r)if(Rc(o))if(Ri(o)){const a=Mi(o);t.push({type:Pe.AssistantWidgetComplete,raw:o,widgetData:a,widgetUrl:(u=a==null?void 0:a.renderer)==null?void 0:u.url,widgetImplOptions:Bc(o)})}else t.push({type:Pe.AssistantWidgetPending,raw:o});else{const a=Zc(o);for(const s of a)if(Gc(s))if(s.endsWith("```")){const l=Xc(s);if(l!=null&&l.instanceId){if(n.has(l.instanceId))continue;n.add(l.instanceId),t.push({type:Pe.DynamicComponentComplete,raw:s,config:l})}}else{const l=qc(s);t.push({type:Pe.DynamicComponentPending,raw:s,position:(l==null?void 0:l.position)??null})}else s.trim()&&t.push({type:Pe.Text,raw:s})}return t}const zi={};function Kc(e){let t=zi[e];if(t)return t;t=zi[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 pn(e,t){typeof t!="string"&&(t=pn.defaultChars);const n=Kc(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let u="";for(let o=0,a=r.length;o<a;o+=3){const s=parseInt(r.slice(o+1,o+3),16);if(s<128){u+=n[s];continue}if((s&224)===192&&o+3<a){const l=parseInt(r.slice(o+4,o+6),16);if((l&192)===128){const d=s<<6&1984|l&63;d<128?u+="��":u+=String.fromCharCode(d),o+=3;continue}}if((s&240)===224&&o+6<a){const l=parseInt(r.slice(o+4,o+6),16),d=parseInt(r.slice(o+7,o+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?u+="���":u+=String.fromCharCode(f),o+=6;continue}}if((s&248)===240&&o+9<a){const l=parseInt(r.slice(o+4,o+6),16),d=parseInt(r.slice(o+7,o+9),16),f=parseInt(r.slice(o+10,o+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?u+="����":(c-=65536,u+=String.fromCharCode(55296+(c>>10),56320+(c&1023))),o+=9;continue}}u+="�"}return u})}pn.defaultChars=";/?:@&=+$,#",pn.componentChars="";const ji={};function Qc(e){let t=ji[e];if(t)return t;t=ji[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 Un(e,t,n){typeof t!="string"&&(n=t,t=Un.defaultChars),typeof n>"u"&&(n=!0);const r=Qc(t);let u="";for(let o=0,a=e.length;o<a;o++){const s=e.charCodeAt(o);if(n&&s===37&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3))){u+=e.slice(o,o+3),o+=2;continue}if(s<128){u+=r[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a){const l=e.charCodeAt(o+1);if(l>=56320&&l<=57343){u+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}u+="%EF%BF%BD";continue}u+=encodeURIComponent(e[o])}return u}Un.defaultChars=";/?:@&=+$,-_.!~*'()#",Un.componentChars="-_.!~*'()";function Ko(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 Hr(){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 Jc=/^([a-z0-9.+-]+:)/i,ed=/:[0-9]*$/,td=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,nd=["<",">",'"',"`"," ","\r",`
|
|
2
|
-
`," "],rd=["{","}","|","\\","^","`"].concat(nd),od=["'"].concat(rd),Hi=["%","/","?",";","#"].concat(od),$i=["/","?","#"],ud=255,Ui=/^[+a-z0-9A-Z_-]{0,63}$/,id=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Wi={javascript:!0,"javascript:":!0},Gi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Qo(e,t){if(e&&e instanceof Hr)return e;const n=new Hr;return n.parse(e,t),n}Hr.prototype.parse=function(e,t){let n,r,u,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const d=td.exec(o);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}let a=Jc.exec(o);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(t||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(u=o.substr(0,2)==="//",u&&!(a&&Wi[a])&&(o=o.substr(2),this.slashes=!0)),!Wi[a]&&(u||a&&!Gi[a])){let d=-1;for(let m=0;m<$i.length;m++)r=o.indexOf($i[m]),r!==-1&&(d===-1||r<d)&&(d=r);let f,c;d===-1?c=o.lastIndexOf("@"):c=o.lastIndexOf("@",d),c!==-1&&(f=o.slice(0,c),o=o.slice(c+1),this.auth=f),d=-1;for(let m=0;m<Hi.length;m++)r=o.indexOf(Hi[m]),r!==-1&&(d===-1||r<d)&&(d=r);d===-1&&(d=o.length),o[d-1]===":"&&d--;const h=o.slice(0,d);o=o.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 x=0,v=m.length;x<v;x++){const y=m[x];if(y&&!y.match(Ui)){let b="";for(let g=0,w=y.length;g<w;g++)y.charCodeAt(g)>127?b+="x":b+=y[g];if(!b.match(Ui)){const g=m.slice(0,x),w=m.slice(x+1),k=y.match(id);k&&(g.push(k[1]),w.unshift(k[2])),w.length&&(o=w.join(".")+o),this.hostname=g.join(".");break}}}}this.hostname.length>ud&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=o.indexOf("#");s!==-1&&(this.hash=o.substr(s),o=o.slice(0,s));const l=o.indexOf("?");return l!==-1&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),Gi[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Hr.prototype.parseHost=function(e){let t=ed.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 ad=Object.freeze(Object.defineProperty({__proto__:null,decode:pn,encode:Un,format:Ko,parse:Qo},Symbol.toStringTag,{value:"Module"})),Xi=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,qi=/[\0-\x1F\x7F-\x9F]/,sd=/[\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]/,Jo=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,Zi=/[\$\+<->\^`\|~\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]/,Yi=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ld=Object.freeze(Object.defineProperty({__proto__:null,Any:Xi,Cc:qi,Cf:sd,P:Jo,S:Zi,Z:Yi},Symbol.toStringTag,{value:"Module"})),cd=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୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏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ǣጓ\0y;䐎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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;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\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»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ↄⅪ←ٖ↛ǰ↉\0proø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;䅓Ācrir;榿;쀀𝔬ͯ\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\0m;櫳;櫽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))),dd=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var eu;const fd=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]]),hd=(eu=String.fromCodePoint)!==null&&eu!==void 0?eu: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 md(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=fd.get(e))!==null&&t!==void 0?t:e}var De;(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"})(De||(De={}));const pd=32;var jt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(jt||(jt={}));function tu(e){return e>=De.ZERO&&e<=De.NINE}function gd(e){return e>=De.UPPER_A&&e<=De.UPPER_F||e>=De.LOWER_A&&e<=De.LOWER_F}function bd(e){return e>=De.UPPER_A&&e<=De.UPPER_Z||e>=De.LOWER_A&&e<=De.LOWER_Z||tu(e)}function yd(e){return e===De.EQUALS||bd(e)}var Ne;(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"})(Ne||(Ne={}));var Ht;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ht||(Ht={}));class wd{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Ne.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ht.Strict}startEntity(t){this.decodeMode=t,this.state=Ne.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Ne.EntityStart:return t.charCodeAt(n)===De.NUM?(this.state=Ne.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Ne.NamedEntity,this.stateNamedEntity(t,n));case Ne.NumericStart:return this.stateNumericStart(t,n);case Ne.NumericDecimal:return this.stateNumericDecimal(t,n);case Ne.NumericHex:return this.stateNumericHex(t,n);case Ne.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|pd)===De.LOWER_X?(this.state=Ne.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Ne.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,u){if(n!==r){const o=r-n;this.result=this.result*Math.pow(u,o)+parseInt(t.substr(n,o),u),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(tu(u)||gd(u))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(u,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(tu(u))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(u,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===De.SEMI)this.consumed+=1;else if(this.decodeMode===Ht.Strict)return 0;return this.emitCodePoint(md(this.result),this.consumed),this.errors&&(t!==De.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let u=r[this.treeIndex],o=(u&jt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=xd(r,u,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return this.result===0||this.decodeMode===Ht.Attribute&&(o===0||yd(a))?0:this.emitNotTerminatedNamedEntity();if(u=r[this.treeIndex],o=(u&jt.VALUE_LENGTH)>>14,o!==0){if(a===De.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Ht.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,u=(r[n]&jt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,u,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:u}=this;return this.emitCodePoint(n===1?u[t]&~jt.VALUE_LENGTH:u[t+1],r),n===3&&this.emitCodePoint(u[t+2],r),r}end(){var t;switch(this.state){case Ne.NamedEntity:return this.result!==0&&(this.decodeMode!==Ht.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ne.NumericDecimal:return this.emitNumericEntity(0,2);case Ne.NumericHex:return this.emitNumericEntity(0,3);case Ne.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ne.EntityStart:return 0}}}function Ki(e){let t="";const n=new wd(e,r=>t+=hd(r));return function(u,o){let a=0,s=0;for(;(s=u.indexOf("&",s))>=0;){t+=u.slice(a,s),n.startEntity(o);const d=n.write(u,s+1);if(d<0){a=s+n.end();break}a=s+d,s=d===0?a+1:a}const l=t+u.slice(a);return t="",l}}function xd(e,t,n,r){const u=(t&jt.BRANCH_LENGTH)>>7,o=t&jt.JUMP_TABLE;if(u===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=u?-1:e[n+l]-1}let a=n,s=a+u-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+u]}return-1}const vd=Ki(cd);Ki(dd);function Qi(e,t=Ht.Legacy){return vd(e,t)}function Ad(e){return Object.prototype.toString.call(e)}function nu(e){return Ad(e)==="[object String]"}const kd=Object.prototype.hasOwnProperty;function Cd(e,t){return kd.call(e,t)}function $r(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 Ji(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function ru(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 Ur(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 ea=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,_d=/&([a-z#][a-z0-9]{1,31});/gi,Ed=new RegExp(ea.source+"|"+_d.source,"gi"),Sd=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Fd(e,t){if(t.charCodeAt(0)===35&&Sd.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return ru(r)?Ur(r):e}const n=Qi(e);return n!==e?n:e}function Dd(e){return e.indexOf("\\")<0?e:e.replace(ea,"$1")}function gn(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Ed,function(t,n,r){return n||Fd(t,r)})}const Nd=/[&<>"]/,Td=/[&<>"]/g,Id={"&":"&","<":"<",">":">",'"':"""};function Od(e){return Id[e]}function $t(e){return Nd.test(e)?e.replace(Td,Od):e}const Ld=/[.?*+^$[\]\\(){}|-]/g;function Vd(e){return e.replace(Ld,"\\$&")}function me(e){switch(e){case 9:case 32:return!0}return!1}function Wn(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 Gn(e){return Jo.test(e)||Zi.test(e)}function Xn(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 Wr(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Pd=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Ji,assign:$r,escapeHtml:$t,escapeRE:Vd,fromCodePoint:Ur,has:Cd,isMdAsciiPunct:Xn,isPunctChar:Gn,isSpace:me,isString:nu,isValidEntityCode:ru,isWhiteSpace:Wn,lib:{mdurl:ad,ucmicro:ld},normalizeReference:Wr,unescapeAll:gn,unescapeMd:Dd},Symbol.toStringTag,{value:"Module"}));function Rd(e,t,n){let r,u,o,a;const s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(o=e.src.charCodeAt(e.pos),o===93&&(r--,r===0)){u=!0;break}if(a=e.pos,e.md.inline.skipToken(e),o===91){if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}}let d=-1;return u&&(d=e.pos),e.pos=l,d}function Md(e,t,n){let r,u=t;const o={ok:!1,pos:0,str:""};if(e.charCodeAt(u)===60){for(u++;u<n;){if(r=e.charCodeAt(u),r===10||r===60)return o;if(r===62)return o.pos=u+1,o.str=gn(e.slice(t+1,u)),o.ok=!0,o;if(r===92&&u+1<n){u+=2;continue}u++}return o}let a=0;for(;u<n&&(r=e.charCodeAt(u),!(r===32||r<32||r===127));){if(r===92&&u+1<n){if(e.charCodeAt(u+1)===32)break;u+=2;continue}if(r===40&&(a++,a>32))return o;if(r===41){if(a===0)break;a--}u++}return t===u||a!==0||(o.str=gn(e.slice(t,u)),o.pos=u,o.ok=!0),o}function Bd(e,t,n,r){let u,o=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(o>=n)return a;let s=e.charCodeAt(o);if(s!==34&&s!==39&&s!==40)return a;t++,o++,s===40&&(s=41),a.marker=s}for(;o<n;){if(u=e.charCodeAt(o),u===a.marker)return a.pos=o+1,a.str+=gn(e.slice(t,o)),a.ok=!0,a;if(u===40&&a.marker===41)return a;u===92&&o+1<n&&o++,o++}return a.can_continue=!0,a.str+=gn(e.slice(t,o)),a}const zd=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:Md,parseLinkLabel:Rd,parseLinkTitle:Bd},Symbol.toStringTag,{value:"Module"})),kt={};kt.code_inline=function(e,t,n,r,u){const o=e[t];return"<code"+u.renderAttrs(o)+">"+$t(o.content)+"</code>"},kt.code_block=function(e,t,n,r,u){const o=e[t];return"<pre"+u.renderAttrs(o)+"><code>"+$t(e[t].content)+`</code></pre>
|
|
1
|
+
(function(V,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(V=typeof globalThis<"u"?globalThis:V||self,i(V.FarrisX={},V.vue))})(this,function(V,i){"use strict";var F2=Object.defineProperty;var hc=V=>{throw TypeError(V)};var N2=(V,i,ve)=>i in V?F2(V,i,{enumerable:!0,configurable:!0,writable:!0,value:ve}):V[i]=ve;var ge=(V,i,ve)=>N2(V,typeof i!="symbol"?i+"":i,ve),pi=(V,i,ve)=>i.has(V)||hc("Cannot "+ve);var A=(V,i,ve)=>(pi(V,i,"read from private field"),ve?ve.call(V):i.get(V)),se=(V,i,ve)=>i.has(V)?hc("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(V):i.set(V,ve),ne=(V,i,ve,lt)=>(pi(V,i,"write to private field"),lt?lt.call(V,ve):i.set(V,ve),ve),J=(V,i,ve)=>(pi(V,i,"access private method"),ve);var Ho=(V,i,ve,lt)=>({set _(Rr){ne(V,i,Rr,ve)},get _(){return A(V,i,lt)}});var Xl,It,In,ql,Zl,st,tt,mt,ln,pt,On,Ln,gt,Se,bt,Ce,be,ie,We,nt,Me,Ie,yt,Oe,wt,xt,rt,ot,vt,Kt,Ge,Vn,Y,gi,cn,Pt,Ir,ut,mc,dn,Pn,Or,Qt,Jt,bi,$o,Uo,ye,yi,Pr,en,wi,Rn;const ve={content:{type:Object,required:!0},onOpen:{type:Function,default:void 0}},lt=i.defineComponent({name:"AppPreviewMessage",props:ve,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 u(a){const s=a.target;s!=null&&s.closest(".f-chat-app-preview-open-btn")||a.preventDefault()}function o(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:u,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:o,title:"在新页签中打开","aria-label":"在新页签中打开"},[i.createVNode("i",{class:"fx-icon fx-icon-folder-open"},null)])])])])}}});lt.install=e=>{e.component(lt.name,lt)};const Rr={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"}},Wo={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},pc="/api/runtime/attachment";function gc(){try{const e=Wo==null?void 0:Wo.VITE_ATTACHMENT_API_BASE;if(typeof e=="string"&&e.trim()!=="")return e.replace(/\/+$/,"")}catch{}return""}function bc(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 yc(e){return`${pc}/${encodeURIComponent(e)}/download`}function Go(e){const t=String(e??"").trim();if(!t)return"";const n=yc(t),r=gc();return r?`${r}${n}`:n}function xi(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 vi(e){return String(e??"").replace(/[/\\]/g,"_").trim()||"download"}function wc(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 Ai(e){const t=bc(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 xc(e,t){const n=URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=vi(t),r.rel="noopener noreferrer",r.style.display="none",document.body.appendChild(r),r.click(),r.remove(),URL.revokeObjectURL(n)}function vc(e){const t=document.createElement("a");t.href=Ai(e),t.rel="noopener noreferrer",t.style.display="none",document.body.appendChild(t),t.click(),t.remove()}function mn(e){const t=String(e.fileId??"").trim();if(t)return Go(t);const n=String(e.url??"").trim();if(!n)return;const r=xi(n);if(r)return Go(r);if(n.startsWith("http://")||n.startsWith("https://")||n.startsWith("/"))return n}async function Mr(e,t){const n=vi(t),r=Ai(e);try{const u=await fetch(r,{credentials:"include",mode:"cors"});if(!u.ok)throw new Error(`download_http_${u.status}`);const o=await u.blob(),a=wc(u.headers.get("Content-Disposition"))??n;xc(o,a)}catch{vc(e)}}function Ae(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 Ee(e,t){return t&&(typeof t=="string"?t.split(";").filter(Boolean).forEach(r=>{var o,a;const u=r.split(":");if(u.length>=2&&((o=u[0])!=null&&o.trim())&&((a=u[1])!=null&&a.trim())){const s=u[0].trim(),l=u.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 Hn(e){return e||null}function ki(e){return e?/\.(jpg|jpeg|png|gif|svg|webp|bmp|ico)$/i.test(e)||e.startsWith("http")||e.startsWith("data:image"):!1}function Br(e){return e?typeof e!="string"?e:ki(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 Ci(e,t,n,r={}){const{charInterval:u=30}=r,o=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(),o.value={},s.clear()},h=()=>{f(),o.value={},s.clear()},p=()=>{const m=e();if(!m||Object.keys(m).length===0){o.value={};return}if(!d()){o.value={...m},s=new Set(Object.keys(m));return}const x=Object.keys(m);x.forEach(g=>{o.value.hasOwnProperty(g)||(o.value[g]="")});const v=x.filter(g=>!s.has(g));if(v.length===0)return;let y=0;const b=()=>{var F;if(y>=v.length)return;const g=v[y],w=m[g];if(!w){s.add(g),y++,b();return}let k=((F=o.value[g])==null?void 0:F.length)||0;const N=setInterval(()=>{k<w.length?(o.value={...o.value,[g]:w.slice(0,k+1)},k++):(clearInterval(N),a=a.filter(S=>S!==N),s.add(g),y++,b())},u);a.push(N)};b()};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:o}}function zr(){const e=i.reactive({}),t=[],n=i.ref(null);let r=null;const u=30,o=m=>{const x=e[m];return!x||x.displayedLength>=x.rawValue.length},a=i.computed(()=>Object.keys(e).length===0?!1:Object.keys(e).every(m=>o(m))),s=()=>{for(const m of t)if(!o(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,u))},c=()=>{d(),Object.keys(e).forEach(m=>{delete e[m]}),t.length=0,n.value=null},h=(m,x)=>{if(e[m]){p(m,x);return}t.push(m),e[m]={rawValue:x??"",displayedLength:0,isStreaming:!1,displayedValue:""},r||(!n.value||n.value===m)&&f()},p=(m,x)=>{const v=e[m];if(!v){h(m,x);return}v.rawValue=x??"",!r&&!o(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 Xo(){const e=i.ref(null),t=i.ref(0),n=i.ref(!1);let r=null;const u=()=>{e.value=Date.now(),n.value=!0,r=setInterval(()=>{e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))},1e3)},o=()=>{r&&(clearInterval(r),r=null),e.value&&(t.value=Math.floor((Date.now()-e.value)/1e3))};return{elapsedSeconds:t,hasEverStarted:n,start:u,stop:o,reset:()=>{o(),e.value=null,t.value=0,n.value=!1}}}const Ac={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 kc(e){return e?e.startsWith("mcp:")?"tool_mcp":Ac[e]??"thinking_tool":"thinking_tool"}function qo(){return{getToolIconClass:kc}}function Cc(e){return e.scrollWidth>e.clientWidth}function _i(){Cc(this)?this.title=this.textContent??"":this.removeAttribute("title")}function Ei(){this.removeAttribute("title")}const Si={mounted(e){e.addEventListener("mouseenter",_i),e.addEventListener("mouseleave",Ei)},updated(e){e.removeAttribute("title")},unmounted(e){e.removeEventListener("mouseenter",_i),e.removeEventListener("mouseleave",Ei)}};function _c(e,t){const n=i.computed(()=>{var u;return Ee({},(u=e.styles)==null?void 0:u.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 Ec(e,t){var o;const n=i.ref(((o=e.content)==null?void 0:o.sender)??"发送人"),r=i.computed(()=>{var a;return Ee({},(a=e.styles)==null?void 0:a.header)});function u(){return i.createVNode("div",{class:`f-chat-bubble-header ${e.placement}`,style:r.value},[n.value])}return{renderHeader:u}}const Fi={file:{type:Object,required:!0},customStyle:{type:Object,default:()=>({})},onPreviewFile:{type:Function,default:void 0},onBatchPreviewFile:{type:Function,default:void 0}},Sc={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 Ni(){return{getFileIcon:(u,o="file-type-",a="")=>{var d;const s={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",html:"html",json:"json"};let l=u?s[u.toLowerCase()]:"";if(!l&&a){const f=((d=a.split(".").pop())==null?void 0:d.toLowerCase())||"";l=f?s[f]:""}return`${o}${l||"any"}`},formatFileName:u=>(u==null?void 0:u.replace(/\.[^.]+$/,""))??"",formatFileSize:u=>u?u<1024?u+" B":u<1048576?(u/1024).toFixed(1)+" KB":(u/1048576).toFixed(1)+" MB":"",formatFileTime:u=>{if(!u)return"";const o=new Date(u),a=o.getFullYear(),s=String(o.getMonth()+1).padStart(2,"0"),l=String(o.getDate()).padStart(2,"0");return`${a}-${s}-${l}`}}}function tn({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:Sc,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:u,formatFileSize:o,formatFileTime:a,getFileIcon:s}=Ni(),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,b){b.pending||t.emit("preview",b)}async function c(y,b){y.stopPropagation(),y.preventDefault();const g=mn(b);g&&await Mr(g,b.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 b=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,"file-type-",y.name)}`},null),b&&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"},[o(y.size)])])])])}function x(y,b){const g=mn(y);return i.createVNode("div",{class:"f-chat-bubble-attachment-item "+s(y.type,"attachment-type-",y.name)+(y.pending?" status-working":""),key:b,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,"file-type-",y.name)},null),i.createVNode("span",{class:d.value,title:y.name},[u(y.name)]),y.pending===!0&&i.createVNode("div",{class:"f-chat-bubble-attachment-status status-working"},[i.createVNode(tn,{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("文件大小:"),o(y.size)]):null])]),e.showDownloadButton!==!1&&g?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 v(y,b){return i.createVNode("div",{class:"f-chat-bubble-attachment-toast",key:b},[m(y)])}return()=>r.value?i.createVNode("div",{class:{"f-chat-bubble-attachments":!0,"attachments-toast":e.role==="user"}},[n.value.map((y,b)=>e.role==="user"?v(y,b):x(y,b)),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}}),Ti=i.defineComponent({name:"FXBubbleFileContentFooter",props:Fi,setup(e,t){const n=i.computed(()=>e.file?Array.isArray(e.file)?[...e.file]:[e.file]:[]);return Ee({},e.customStyle),()=>i.createVNode(Di,{attachments:n.value,onPreview:r=>{var u;return(u=e.onPreviewFile)==null?void 0:u.call(e,r)},onBatchPreview:r=>{var u;return(u=e.onBatchPreviewFile)==null?void 0:u.call(e,r)}},null)}}),Fc={pageUrl:{type:String,required:!0},customStyle:{type:Object,default:()=>({})},onNavigate:{type:Function,default:void 0}},Nc=i.defineComponent({name:"FXBubblePageContentFooter",props:Fc,setup(e,t){const n=i.ref(),r=i.computed(()=>{var a,s;const o={width:"100%",height:"100%",border:"none"};return(a=e.customStyle)!=null&&a.width&&(o.width=e.customStyle.width),(s=e.customStyle)!=null&&s.height&&(o.height=`${e.customStyle.height}px`),o}),u=o=>{var a,s;((a=o.data)==null?void 0:a.type)==="navigation"&&((s=o.data)!=null&&s.url)&&e.onNavigate&&e.onNavigate(o.data.url)};return i.onMounted(()=>{window.addEventListener("message",u)}),i.onUnmounted(()=>{window.removeEventListener("message",u)}),()=>i.createVNode("iframe",{ref:n,src:e.pageUrl,style:r.value,scrolling:"auto"},null)}});function Ii(){function e(u,o){const{fileContent:a,height:s,width:l}=u;return{file:a,customStyle:{width:l||"100%",height:s||"100%"},onPreviewFile:o==null?void 0:o.onPreviewFile,onBatchPreviewFile:o==null?void 0:o.onBatchPreviewFile}}function t(u,o){const{pageUrl:a,height:s,width:l}=u;return{pageUrl:a,customStyle:{width:l||"100%",height:s||"100%"},onNavigate:o==null?void 0:o.onNavigate}}function n(u,o){const a=e(u,o);return i.h(Ti,a)}function r(u,o){const a=t(u,o);return i.h(Nc,a)}return{renderFileEmbeddedContent:n,renderPageEmbeddedContent:r}}const Dc={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}},Zo="assistant-widget",ct="```";function $n(e,t){let n=t;for(;n<e.length&&/\s/.test(e[n]);)n+=1;return n}function Oi(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 Li(e){const t=e.toLowerCase();return t.length===0||t.length>Zo.length?!1:Zo.startsWith(t)}function Tc(e){return e.toLowerCase()===Zo}function Ic(e,t){let n=0;for(;n<t;){const r=e.indexOf(ct,n);if(r===-1||r>=t)break;let u=r+ct.length;u=$n(e,u);const{lang:o}=Oi(e,u);if(o.length>0)return!0;n=r+ct.length}return!1}function Vi(e,t){if(!e.startsWith(ct,t))return null;let n=t+ct.length;n=$n(e,n);const{lang:r,next:u}=Oi(e,n);return r.length===0?e.slice(u).trim().length===0?Ic(e,t)?null:{fenceStart:t,bodyStart:u,langComplete:!1}:null:Li(r)?(n=$n(e,u),{fenceStart:t,bodyStart:n,langComplete:Tc(r)}):null}function Yo(e,t=0){const n=$n(e,t);return Vi(e,n)}function Oc(e,t,n){if(t<n)return!1;const r=e.slice(t+ct.length);return r.length===0?!0:r.startsWith("`")?!1:(/^\s*[\r\n]/.test(r)||/^\s*$/.test(r),!0)}function jr(e,t){let n=t;for(;n<=e.length;){const r=e.indexOf(ct,n);if(r===-1)return-1;if(Oc(e,r,t))return r;n=r+1}return-1}function Lc(e){const t=Yo(e,0);if(!(t!=null&&t.langComplete))return null;const n=jr(e,t.bodyStart);return n===-1?null:e.slice(t.bodyStart,n).trim()}function Pi(e){return e.replace(/```\s*assistant-widget\s*/gi,"``` assistant-widget\n")}function Vc(e){const t=e.match(/^\s*```\s*([a-zA-Z0-9-]*)$/);return t?Li(t[1]??""):!1}function Pc(e,t){let n=t;for(;n<e.length;){const r=e.indexOf(ct,n);if(r===-1)return null;const u=Vi(e,r);if(u)return{fenceIdx:r,open:u};n=r+ct.length}return null}function Ri(e){if(!e)return!1;const t=Yo(e,0);if(!(t!=null&&t.langComplete))return!1;const n=jr(e,t.bodyStart);return n===-1?!1:$n(e,n+ct.length)>=e.length}function Rc(e){if(!e)return!1;if(Ri(e)||Vc(e))return!0;const t=Yo(e,0);return t?t.langComplete?jr(e,t.bodyStart)===-1:!0:!1}function Mc(e){if(!e)return[];const t=[];let n=0;for(;n<e.length;){const r=Pc(e,n);if(!r){const l=e.slice(n);l&&t.push(l);break}const{fenceIdx:u,open:o}=r;if(u>n&&t.push(e.slice(n,u)),!o.langComplete){t.push(e.slice(u));break}const a=jr(e,o.bodyStart);if(a===-1){t.push(e.slice(u));break}const s=a+ct.length;t.push(Pi(e.slice(u,s))),n=s}return t.filter(r=>r.trim().length>0)}function Mi(e){const t=Lc(Pi(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 Bc(e){var n;const t=Mi(e);return((n=t==null?void 0:t.renderer)==null?void 0:n.widgetImplOptions)||{}}const zc=/^```\s*dynamic-component\b[\s\S]*?```$/,jc=/^```\s*dynamic-component\b/,Hc=/^```\s*dynamic-component\b\s*/,$c=/\s*```\s*$/;function Uc(e){return e.replace(/```\s*dynamic-component\b/g,"``` dynamic-component")}function Bi(e){return e.replace(Hc,"").replace($c,"").trim()}function Wc(e,t){let n=t;for(;n<e.length;){const r=e.indexOf("```",n);if(r<0)return null;const o=e.slice(r+3).match(/^\s*dynamic-component\b/);if(o)return{fenceStart:r,contentStart:r+3+o[0].length};n=r+3}return null}function Gc(e){return e?zc.test(e)||jc.test(e):!1}function Xc(e){const t=Bi(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 qc(e){const t=Bi(e);if(!t)return null;const n=t.match(/"position"\s*:\s*"(inline|right)"/);return n?{position:n[1]}:null}function Zc(e){if(!e)return[];const t=[];let n=0;for(;n<e.length;){const r=Wc(e,n);if(!r){const l=e.slice(n);l&&t.push(l);break}const u=e.slice(n,r.fenceStart);u&&t.push(u);const o=e.indexOf("```",r.contentStart);if(o===-1){t.push(e.slice(r.fenceStart));break}const a=o+3,s=e.slice(r.fenceStart,a);t.push(Uc(s)),n=a}return t.filter(r=>r.length>0)}var Pe=(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))(Pe||{});function Yc(e){var u;if(!e)return[];const t=[],n=new Set,r=Mc(e);for(const o of r)if(Rc(o))if(Ri(o)){const a=Mi(o);t.push({type:Pe.AssistantWidgetComplete,raw:o,widgetData:a,widgetUrl:(u=a==null?void 0:a.renderer)==null?void 0:u.url,widgetImplOptions:Bc(o)})}else t.push({type:Pe.AssistantWidgetPending,raw:o});else{const a=Zc(o);for(const s of a)if(Gc(s))if(s.endsWith("```")){const l=Xc(s);if(l!=null&&l.instanceId){if(n.has(l.instanceId))continue;n.add(l.instanceId),t.push({type:Pe.DynamicComponentComplete,raw:s,config:l})}}else{const l=qc(s);t.push({type:Pe.DynamicComponentPending,raw:s,position:(l==null?void 0:l.position)??null})}else s.trim()&&t.push({type:Pe.Text,raw:s})}return t}const zi={};function Kc(e){let t=zi[e];if(t)return t;t=zi[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 pn(e,t){typeof t!="string"&&(t=pn.defaultChars);const n=Kc(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let u="";for(let o=0,a=r.length;o<a;o+=3){const s=parseInt(r.slice(o+1,o+3),16);if(s<128){u+=n[s];continue}if((s&224)===192&&o+3<a){const l=parseInt(r.slice(o+4,o+6),16);if((l&192)===128){const d=s<<6&1984|l&63;d<128?u+="��":u+=String.fromCharCode(d),o+=3;continue}}if((s&240)===224&&o+6<a){const l=parseInt(r.slice(o+4,o+6),16),d=parseInt(r.slice(o+7,o+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?u+="���":u+=String.fromCharCode(f),o+=6;continue}}if((s&248)===240&&o+9<a){const l=parseInt(r.slice(o+4,o+6),16),d=parseInt(r.slice(o+7,o+9),16),f=parseInt(r.slice(o+10,o+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?u+="����":(c-=65536,u+=String.fromCharCode(55296+(c>>10),56320+(c&1023))),o+=9;continue}}u+="�"}return u})}pn.defaultChars=";/?:@&=+$,#",pn.componentChars="";const ji={};function Qc(e){let t=ji[e];if(t)return t;t=ji[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 Un(e,t,n){typeof t!="string"&&(n=t,t=Un.defaultChars),typeof n>"u"&&(n=!0);const r=Qc(t);let u="";for(let o=0,a=e.length;o<a;o++){const s=e.charCodeAt(o);if(n&&s===37&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3))){u+=e.slice(o,o+3),o+=2;continue}if(s<128){u+=r[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a){const l=e.charCodeAt(o+1);if(l>=56320&&l<=57343){u+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}u+="%EF%BF%BD";continue}u+=encodeURIComponent(e[o])}return u}Un.defaultChars=";/?:@&=+$,-_.!~*'()#",Un.componentChars="-_.!~*'()";function Ko(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 Hr(){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 Jc=/^([a-z0-9.+-]+:)/i,ed=/:[0-9]*$/,td=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,nd=["<",">",'"',"`"," ","\r",`
|
|
2
|
+
`," "],rd=["{","}","|","\\","^","`"].concat(nd),od=["'"].concat(rd),Hi=["%","/","?",";","#"].concat(od),$i=["/","?","#"],ud=255,Ui=/^[+a-z0-9A-Z_-]{0,63}$/,id=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Wi={javascript:!0,"javascript:":!0},Gi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Qo(e,t){if(e&&e instanceof Hr)return e;const n=new Hr;return n.parse(e,t),n}Hr.prototype.parse=function(e,t){let n,r,u,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const d=td.exec(o);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}let a=Jc.exec(o);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(t||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(u=o.substr(0,2)==="//",u&&!(a&&Wi[a])&&(o=o.substr(2),this.slashes=!0)),!Wi[a]&&(u||a&&!Gi[a])){let d=-1;for(let m=0;m<$i.length;m++)r=o.indexOf($i[m]),r!==-1&&(d===-1||r<d)&&(d=r);let f,c;d===-1?c=o.lastIndexOf("@"):c=o.lastIndexOf("@",d),c!==-1&&(f=o.slice(0,c),o=o.slice(c+1),this.auth=f),d=-1;for(let m=0;m<Hi.length;m++)r=o.indexOf(Hi[m]),r!==-1&&(d===-1||r<d)&&(d=r);d===-1&&(d=o.length),o[d-1]===":"&&d--;const h=o.slice(0,d);o=o.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 x=0,v=m.length;x<v;x++){const y=m[x];if(y&&!y.match(Ui)){let b="";for(let g=0,w=y.length;g<w;g++)y.charCodeAt(g)>127?b+="x":b+=y[g];if(!b.match(Ui)){const g=m.slice(0,x),w=m.slice(x+1),k=y.match(id);k&&(g.push(k[1]),w.unshift(k[2])),w.length&&(o=w.join(".")+o),this.hostname=g.join(".");break}}}}this.hostname.length>ud&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=o.indexOf("#");s!==-1&&(this.hash=o.substr(s),o=o.slice(0,s));const l=o.indexOf("?");return l!==-1&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),Gi[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Hr.prototype.parseHost=function(e){let t=ed.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 ad=Object.freeze(Object.defineProperty({__proto__:null,decode:pn,encode:Un,format:Ko,parse:Qo},Symbol.toStringTag,{value:"Module"})),Xi=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,qi=/[\0-\x1F\x7F-\x9F]/,sd=/[\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]/,Jo=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,Zi=/[\$\+<->\^`\|~\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]/,Yi=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ld=Object.freeze(Object.defineProperty({__proto__:null,Any:Xi,Cc:qi,Cf:sd,P:Jo,S:Zi,Z:Yi},Symbol.toStringTag,{value:"Module"})),cd=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୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏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ǣጓ\0y;䐎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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;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\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»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ↄⅪ←ٖ↛ǰ↉\0proø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;䅓Ācrir;榿;쀀𝔬ͯ\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\0m;櫳;櫽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))),dd=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var eu;const fd=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]]),hd=(eu=String.fromCodePoint)!==null&&eu!==void 0?eu: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 md(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=fd.get(e))!==null&&t!==void 0?t:e}var Ne;(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"})(Ne||(Ne={}));const pd=32;var jt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(jt||(jt={}));function tu(e){return e>=Ne.ZERO&&e<=Ne.NINE}function gd(e){return e>=Ne.UPPER_A&&e<=Ne.UPPER_F||e>=Ne.LOWER_A&&e<=Ne.LOWER_F}function bd(e){return e>=Ne.UPPER_A&&e<=Ne.UPPER_Z||e>=Ne.LOWER_A&&e<=Ne.LOWER_Z||tu(e)}function yd(e){return e===Ne.EQUALS||bd(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 Ht;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ht||(Ht={}));class wd{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=Ht.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)===Ne.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)|pd)===Ne.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,u){if(n!==r){const o=r-n;this.result=this.result*Math.pow(u,o)+parseInt(t.substr(n,o),u),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(tu(u)||gd(u))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(u,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const u=t.charCodeAt(n);if(tu(u))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(u,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===Ne.SEMI)this.consumed+=1;else if(this.decodeMode===Ht.Strict)return 0;return this.emitCodePoint(md(this.result),this.consumed),this.errors&&(t!==Ne.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let u=r[this.treeIndex],o=(u&jt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=xd(r,u,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return this.result===0||this.decodeMode===Ht.Attribute&&(o===0||yd(a))?0:this.emitNotTerminatedNamedEntity();if(u=r[this.treeIndex],o=(u&jt.VALUE_LENGTH)>>14,o!==0){if(a===Ne.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Ht.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,u=(r[n]&jt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,u,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:u}=this;return this.emitCodePoint(n===1?u[t]&~jt.VALUE_LENGTH:u[t+1],r),n===3&&this.emitCodePoint(u[t+2],r),r}end(){var t;switch(this.state){case De.NamedEntity:return this.result!==0&&(this.decodeMode!==Ht.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 Ki(e){let t="";const n=new wd(e,r=>t+=hd(r));return function(u,o){let a=0,s=0;for(;(s=u.indexOf("&",s))>=0;){t+=u.slice(a,s),n.startEntity(o);const d=n.write(u,s+1);if(d<0){a=s+n.end();break}a=s+d,s=d===0?a+1:a}const l=t+u.slice(a);return t="",l}}function xd(e,t,n,r){const u=(t&jt.BRANCH_LENGTH)>>7,o=t&jt.JUMP_TABLE;if(u===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=u?-1:e[n+l]-1}let a=n,s=a+u-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+u]}return-1}const vd=Ki(cd);Ki(dd);function Qi(e,t=Ht.Legacy){return vd(e,t)}function Ad(e){return Object.prototype.toString.call(e)}function nu(e){return Ad(e)==="[object String]"}const kd=Object.prototype.hasOwnProperty;function Cd(e,t){return kd.call(e,t)}function $r(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 Ji(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function ru(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 Ur(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 ea=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,_d=/&([a-z#][a-z0-9]{1,31});/gi,Ed=new RegExp(ea.source+"|"+_d.source,"gi"),Sd=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Fd(e,t){if(t.charCodeAt(0)===35&&Sd.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return ru(r)?Ur(r):e}const n=Qi(e);return n!==e?n:e}function Nd(e){return e.indexOf("\\")<0?e:e.replace(ea,"$1")}function gn(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Ed,function(t,n,r){return n||Fd(t,r)})}const Dd=/[&<>"]/,Td=/[&<>"]/g,Id={"&":"&","<":"<",">":">",'"':"""};function Od(e){return Id[e]}function $t(e){return Dd.test(e)?e.replace(Td,Od):e}const Ld=/[.?*+^$[\]\\(){}|-]/g;function Vd(e){return e.replace(Ld,"\\$&")}function me(e){switch(e){case 9:case 32:return!0}return!1}function Wn(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 Gn(e){return Jo.test(e)||Zi.test(e)}function Xn(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 Wr(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Pd=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:Ji,assign:$r,escapeHtml:$t,escapeRE:Vd,fromCodePoint:Ur,has:Cd,isMdAsciiPunct:Xn,isPunctChar:Gn,isSpace:me,isString:nu,isValidEntityCode:ru,isWhiteSpace:Wn,lib:{mdurl:ad,ucmicro:ld},normalizeReference:Wr,unescapeAll:gn,unescapeMd:Nd},Symbol.toStringTag,{value:"Module"}));function Rd(e,t,n){let r,u,o,a;const s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(o=e.src.charCodeAt(e.pos),o===93&&(r--,r===0)){u=!0;break}if(a=e.pos,e.md.inline.skipToken(e),o===91){if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}}let d=-1;return u&&(d=e.pos),e.pos=l,d}function Md(e,t,n){let r,u=t;const o={ok:!1,pos:0,str:""};if(e.charCodeAt(u)===60){for(u++;u<n;){if(r=e.charCodeAt(u),r===10||r===60)return o;if(r===62)return o.pos=u+1,o.str=gn(e.slice(t+1,u)),o.ok=!0,o;if(r===92&&u+1<n){u+=2;continue}u++}return o}let a=0;for(;u<n&&(r=e.charCodeAt(u),!(r===32||r<32||r===127));){if(r===92&&u+1<n){if(e.charCodeAt(u+1)===32)break;u+=2;continue}if(r===40&&(a++,a>32))return o;if(r===41){if(a===0)break;a--}u++}return t===u||a!==0||(o.str=gn(e.slice(t,u)),o.pos=u,o.ok=!0),o}function Bd(e,t,n,r){let u,o=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(o>=n)return a;let s=e.charCodeAt(o);if(s!==34&&s!==39&&s!==40)return a;t++,o++,s===40&&(s=41),a.marker=s}for(;o<n;){if(u=e.charCodeAt(o),u===a.marker)return a.pos=o+1,a.str+=gn(e.slice(t,o)),a.ok=!0,a;if(u===40&&a.marker===41)return a;u===92&&o+1<n&&o++,o++}return a.can_continue=!0,a.str+=gn(e.slice(t,o)),a}const zd=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:Md,parseLinkLabel:Rd,parseLinkTitle:Bd},Symbol.toStringTag,{value:"Module"})),kt={};kt.code_inline=function(e,t,n,r,u){const o=e[t];return"<code"+u.renderAttrs(o)+">"+$t(o.content)+"</code>"},kt.code_block=function(e,t,n,r,u){const o=e[t];return"<pre"+u.renderAttrs(o)+"><code>"+$t(e[t].content)+`</code></pre>
|
|
3
3
|
`},kt.fence=function(e,t,n,r,u){const o=e[t],a=o.info?gn(o.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(o.content,s,l)||$t(o.content):d=$t(o.content),d.indexOf("<pre")===0)return d+`
|
|
4
4
|
`;if(a){const f=o.attrIndex("class"),c=o.attrs?o.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${u.renderAttrs(h)}>${d}</code></pre>
|
|
5
5
|
`}return`<pre><code${u.renderAttrs(o)}>${d}</code></pre>
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
`),o+=(u.nesting===-1?"</":"<")+u.tag,o+=this.renderAttrs(u),u.nesting===0&&r.xhtmlOut&&(o+=" /");let a=!1;if(u.block&&(a=!0,u.nesting===1&&n+1<t.length)){const s=t[n+1];(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===u.tag)&&(a=!1)}return o+=a?`>
|
|
13
13
|
`:">",o},bn.prototype.renderInline=function(e,t,n){let r="";const u=this.rules;for(let o=0,a=e.length;o<a;o++){const s=e[o].type;typeof u[s]<"u"?r+=u[s](e,o,t,n,this):r+=this.renderToken(e,o,t)}return r},bn.prototype.renderInlineAsText=function(e,t,n){let r="";for(let u=0,o=e.length;u<o;u++)switch(e[u].type){case"text":r+=e[u].content;break;case"image":r+=this.renderInlineAsText(e[u].children,t,n);break;case"html_inline":case"html_block":r+=e[u].content;break;case"softbreak":case"hardbreak":r+=`
|
|
14
14
|
`;break}return r},bn.prototype.render=function(e,t,n){let r="";const u=this.rules;for(let o=0,a=e.length;o<a;o++){const s=e[o].type;s==="inline"?r+=this.renderInline(e[o].children,t,n):typeof u[s]<"u"?r+=u[s](e,o,t,n,this):r+=this.renderToken(e,o,t,n)}return r};function qe(){this.__rules__=[],this.__cache__=null}qe.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},qe.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))})})},qe.prototype.at=function(e,t,n){const r=this.__find__(e),u=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=u.alt||[],this.__cache__=null},qe.prototype.before=function(e,t,n,r){const u=this.__find__(e),o=r||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(u,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},qe.prototype.after=function(e,t,n,r){const u=this.__find__(e),o=r||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(u+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},qe.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},qe.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const u=this.__find__(r);if(u<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[u].enabled=!0,n.push(r)},this),this.__cache__=null,n},qe.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)},qe.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const u=this.__find__(r);if(u<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[u].enabled=!1,n.push(r)},this),this.__cache__=null,n},qe.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function dt(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}dt.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let r=0,u=n.length;r<u;r++)if(n[r][0]===t)return r;return-1},dt.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},dt.prototype.attrSet=function(t,n){const r=this.attrIndex(t),u=[t,n];r<0?this.attrPush(u):this.attrs[r]=u},dt.prototype.attrGet=function(t){const n=this.attrIndex(t);let r=null;return n>=0&&(r=this.attrs[n][1]),r},dt.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 ta(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}ta.prototype.Token=dt;const jd=/\r\n?|\n/g,Hd=/\0/g;function $d(e){let t;t=e.src.replace(jd,`
|
|
15
|
-
`),t=t.replace(Hd,"�"),e.src=t}function Ud(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 Wd(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const u=t[n];u.type==="inline"&&e.md.inline.parse(u.content,e.md,e.env,u.children)}}function Gd(e){return/^<a[>\s]/i.test(e)}function Xd(e){return/^<\/a\s*>/i.test(e)}function qd(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 u=t[n].children,o=0;for(let a=u.length-1;a>=0;a--){const s=u[a];if(s.type==="link_close"){for(a--;u[a].level!==s.level&&u[a].type!=="link_open";)a--;continue}if(s.type==="html_inline"&&(Gd(s.content)&&o>0&&o--,Xd(s.content)&&o++),!(o>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&&u[a-1].type==="text_special"&&(d=d.slice(1));for(let p=0;p<d.length;p++){const m=d[p].url,x=e.md.normalizeLink(m);if(!e.md.validateLink(x))continue;let v=d[p].text;d[p].schema?d[p].schema==="mailto:"&&!/^mailto:/i.test(v)?v=e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):v=e.md.normalizeLinkText(v):v=e.md.normalizeLinkText("http://"+v).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 b=new e.Token("link_open","a",1);b.attrs=[["href",x]],b.level=c++,b.markup="linkify",b.info="auto",f.push(b);const g=new e.Token("text","",0);g.content=v,g.level=c,f.push(g);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=u=Ji(u,a,f)}}}}const na=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Zd=/\((c|tm|r)\)/i,Yd=/\((c|tm|r)\)/ig,Kd={c:"©",r:"®",tm:"™"};function Qd(e,t){return Kd[t.toLowerCase()]}function Jd(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(Yd,Qd)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function e0(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&na.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 t0(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Zd.test(e.tokens[t].content)&&Jd(e.tokens[t].children),na.test(e.tokens[t].content)&&e0(e.tokens[t].children))}const n0=/['"]/,ra=/['"]/g,oa="’";function Gr(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function r0(e,t){let n;const r=[];for(let u=0;u<e.length;u++){const o=e[u],a=e[u].level;for(n=r.length-1;n>=0&&!(r[n].level<=a);n--);if(r.length=n+1,o.type!=="text")continue;let s=o.content,l=0,d=s.length;e:for(;l<d;){ra.lastIndex=l;const f=ra.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=u-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 x=32;if(l<d)x=s.charCodeAt(l);else for(n=u+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){x=e[n].content.charCodeAt(0);break}const v=Xn(m)||Gn(String.fromCharCode(m)),y=Xn(x)||Gn(String.fromCharCode(x)),b=Wn(m),g=Wn(x);if(g?c=!1:y&&(b||v||(c=!1)),b?h=!1:v&&(g||y||(h=!1)),x===34&&f[0]==='"'&&m>=48&&m<=57&&(h=c=!1),c&&h&&(c=v,h=y),!c&&!h){p&&(o.content=Gr(o.content,f.index,oa));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]),o.content=Gr(o.content,f.index,D),e[w.token].content=Gr(e[w.token].content,w.pos,k),l+=D.length-1,w.token===u&&(l+=k.length-1),s=o.content,d=s.length,r.length=n;continue e}}c?r.push({token:u,pos:f.index,single:p,level:a}):h&&p&&(o.content=Gr(o.content,f.index,oa))}}}function o0(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!n0.test(e.tokens[t].content)||r0(e.tokens[t].children,e)}function u0(e){let t,n;const r=e.tokens,u=r.length;for(let o=0;o<u;o++){if(r[o].type!=="inline")continue;const a=r[o].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 ou=[["normalize",$d],["block",Ud],["inline",Wd],["linkify",qd],["replacements",t0],["smartquotes",o0],["text_join",u0]];function uu(){this.ruler=new qe;for(let e=0;e<ou.length;e++)this.ruler.push(ou[e][0],ou[e][1])}uu.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},uu.prototype.State=ta;function Ct(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 u=this.src;for(let o=0,a=0,s=0,l=0,d=u.length,f=!1;a<d;a++){const c=u.charCodeAt(a);if(!f)if(me(c)){s++,c===9?l+=4-l%4:l++;continue}else f=!0;(c===10||a===d-1)&&(c!==10&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),f=!1,s=0,l=0,o=a+1)}this.bMarks.push(u.length),this.eMarks.push(u.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Ct.prototype.push=function(e,t,n){const r=new dt(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},Ct.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},Ct.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},Ct.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!me(r))break}return t},Ct.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!me(this.src.charCodeAt(--t)))return t+1;return t},Ct.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t},Ct.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},Ct.prototype.getLines=function(t,n,r,u){if(t>=n)return"";const o=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||u?c=this.eMarks[s]+1:c=this.eMarks[s];f<c&&l<r;){const h=this.src.charCodeAt(f);if(me(h))h===9?l+=4-(l+this.bsCount[s])%4:l++;else if(f-d<this.tShift[s])l++;else break;f++}l>r?o[a]=new Array(l-r+1).join(" ")+this.src.slice(f,c):o[a]=this.src.slice(f,c)}return o.join("")},Ct.prototype.Token=dt;const i0=65536;function iu(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,u=e.charCodeAt(r),o=!1,a=0,s="";for(;r<n;)u===124&&(o?(s+=e.substring(a,r-1),a=r):(t.push(s+e.substring(a,r)),s="",a=r+1)),o=u===92,r++,u=e.charCodeAt(r);return t.push(s+e.substring(a)),t}function a0(e,t,n,r){if(t+2>n)return!1;let u=t+1;if(e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)return!1;let o=e.bMarks[u]+e.tShift[u];if(o>=e.eMarks[u])return!1;const a=e.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58||o>=e.eMarks[u])return!1;const s=e.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58&&!me(s)||a===45&&me(s))return!1;for(;o<e.eMarks[u];){const w=e.src.charCodeAt(o);if(w!==124&&w!==45&&w!==58&&!me(w))return!1;o++}let l=iu(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=iu(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),x=[t,0];m.map=x;const v=e.push("thead_open","thead",1);v.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 b,g=0;for(u=t+2;u<n&&!(e.sCount[u]<e.blkIndent);u++){let w=!1;for(let D=0,F=p.length;D<F;D++)if(p[D](e,u,n,!0)){w=!0;break}if(w||(l=iu(e,u).trim(),!l)||e.sCount[u]-e.blkIndent>=4||(d=ua(l),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),g+=c-d.length,g>i0))break;if(u===t+2){const D=e.push("tbody_open","tbody",1);D.map=b=[t+2,0]}const k=e.push("tr_open","tr",1);k.map=[u,u+1];for(let D=0;D<c;D++){const F=e.push("td_open","td",1);f[D]&&(F.attrs=[["style","text-align:"+f[D]]]);const S=e.push("inline","",0);S.content=d[D]?d[D].trim():"",S.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return b&&(e.push("tbody_close","tbody",-1),b[1]=u),e.push("table_close","table",-1),x[1]=u,e.parentType=h,e.line=u,!0}function s0(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,u=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,u=r;continue}break}e.line=u;const o=e.push("code_block","code",0);return o.content=e.getLines(t,u,4+e.blkIndent,!1)+`
|
|
16
|
-
`,o.map=[t,e.line],!0}function l0(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||u+3>o)return!1;const a=e.src.charCodeAt(u);if(a!==126&&a!==96)return!1;let s=u;u=e.skipChars(u,a);let l=u-s;if(l<3)return!1;const d=e.src.slice(s,u),f=e.src.slice(u,o);if(a===96&&f.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let c=t,h=!1;for(;c++,!(c>=n||(u=s=e.bMarks[c]+e.tShift[c],o=e.eMarks[c],u<o&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(u)===a&&!(e.sCount[c]-e.blkIndent>=4)&&(u=e.skipChars(u,a),!(u-s<l)&&(u=e.skipSpaces(u),!(u<o)))){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 c0(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==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 g=e.sCount[m]<e.blkIndent;if(u=e.bMarks[m]+e.tShift[m],o=e.eMarks[m],u>=o)break;if(e.src.charCodeAt(u++)===62&&!g){let k=e.sCount[m]+1,D,F;e.src.charCodeAt(u)===32?(u++,k++,F=!1,D=!0):e.src.charCodeAt(u)===9?(D=!0,(e.bsCount[m]+k)%4===3?(u++,k++,F=!1):F=!0):D=!1;let S=k;for(s.push(e.bMarks[m]),e.bMarks[m]=u;u<o;){const q=e.src.charCodeAt(u);if(me(q))q===9?S+=4-(S+e.bsCount[m]+(F?1:0))%4:S++;else break;u++}p=u>=o,l.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(D?1:0),d.push(e.sCount[m]),e.sCount[m]=S-k,f.push(e.tShift[m]),e.tShift[m]=u-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 x=e.blkIndent;e.blkIndent=0;const v=e.push("blockquote_open","blockquote",1);v.markup=">";const y=[t,0];v.map=y,e.md.block.tokenize(e,t,m);const b=e.push("blockquote_close","blockquote",-1);b.markup=">",e.lineMax=a,e.parentType=h,y[1]=e.line;for(let g=0;g<f.length;g++)e.bMarks[g+t]=s[g],e.tShift[g+t]=f[g],e.sCount[g+t]=d[g],e.bsCount[g+t]=l[g];return e.blkIndent=x,!0}function d0(e,t,n,r){const u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(o++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;o<u;){const d=e.src.charCodeAt(o++);if(d!==a&&!me(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 ia(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const u=e.src.charCodeAt(r++);if(u!==42&&u!==45&&u!==43)return-1;if(r<n){const o=e.src.charCodeAt(r);if(!me(o))return-1}return r}function aa(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let u=n;if(u+1>=r)return-1;let o=e.src.charCodeAt(u++);if(o<48||o>57)return-1;for(;;){if(u>=r)return-1;if(o=e.src.charCodeAt(u++),o>=48&&o<=57){if(u-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return u<r&&(o=e.src.charCodeAt(u),!me(o))?-1:u}function f0(e,t){const n=e.level+2;for(let r=t+2,u=e.tokens.length-2;r<u;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 h0(e,t,n,r){let u,o,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=aa(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=ia(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),x=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 v=[l,0];s.map=v,s.markup=String.fromCharCode(m);let y=!1;const b=e.md.block.ruler.getRules("list"),g=e.parentType;for(e.parentType="list";l<n;){o=p,u=e.eMarks[l];const w=e.sCount[l]+p-(e.bMarks[l]+e.tShift[l]);let k=w;for(;o<u;){const X=e.src.charCodeAt(o);if(X===9)k+=4-(k+e.bsCount[l])%4;else if(X===32)k++;else break;o++}const D=o;let F;D>=u?F=1:F=k-w,F>4&&(F=1);const S=w+F;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(m);const q=[l,0];s.map=q,c&&(s.info=e.src.slice(a,p-1));const H=e.tight,z=e.tShift[l],$=e.sCount[l],I=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=S,e.tight=!0,e.tShift[l]=D-e.bMarks[l],e.sCount[l]=k,D>=u&&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=I,e.tShift[l]=z,e.sCount[l]=$,e.tight=H,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(m),l=e.line,q[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let G=!1;for(let X=0,T=b.length;X<T;X++)if(b[X](e,l,n,!0)){G=!0;break}if(G)break;if(c){if(p=aa(e,l),p<0)break;a=e.bMarks[l]+e.tShift[l]}else if(p=ia(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),v[1]=l,e.line=l,e.parentType=g,d&&f0(e,x),!0}function m0(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==91)return!1;function s(b){const g=e.lineMax;if(b>=g||e.isEmpty(b))return null;let w=!1;if(e.sCount[b]-e.blkIndent>3&&(w=!0),e.sCount[b]<0&&(w=!0),!w){const F=e.md.block.ruler.getRules("reference"),S=e.parentType;e.parentType="reference";let q=!1;for(let H=0,z=F.length;H<z;H++)if(F[H](e,b,g,!0)){q=!0;break}if(e.parentType=S,q)return null}const k=e.bMarks[b]+e.tShift[b],D=e.eMarks[b];return e.src.slice(k,D+1)}let l=e.src.slice(u,o+1);o=l.length;let d=-1;for(u=1;u<o;u++){const b=l.charCodeAt(u);if(b===91)return!1;if(b===93){d=u;break}else if(b===10){const g=s(a);g!==null&&(l+=g,o=l.length,a++)}else if(b===92&&(u++,u<o&&l.charCodeAt(u)===10)){const g=s(a);g!==null&&(l+=g,o=l.length,a++)}}if(d<0||l.charCodeAt(d+1)!==58)return!1;for(u=d+2;u<o;u++){const b=l.charCodeAt(u);if(b===10){const g=s(a);g!==null&&(l+=g,o=l.length,a++)}else if(!me(b))break}const f=e.md.helpers.parseLinkDestination(l,u,o);if(!f.ok)return!1;const c=e.md.normalizeLink(f.str);if(!e.md.validateLink(c))return!1;u=f.pos;const h=u,p=a,m=u;for(;u<o;u++){const b=l.charCodeAt(u);if(b===10){const g=s(a);g!==null&&(l+=g,o=l.length,a++)}else if(!me(b))break}let x=e.md.helpers.parseLinkTitle(l,u,o);for(;x.can_continue;){const b=s(a);if(b===null)break;l+=b,u=o,o=l.length,a++,x=e.md.helpers.parseLinkTitle(l,u,o,x)}let v;for(u<o&&m!==u&&x.ok?(v=x.str,u=x.pos):(v="",u=h,a=p);u<o;){const b=l.charCodeAt(u);if(!me(b))break;u++}if(u<o&&l.charCodeAt(u)!==10&&v)for(v="",u=h,a=p;u<o;){const b=l.charCodeAt(u);if(!me(b))break;u++}if(u<o&&l.charCodeAt(u)!==10)return!1;const y=Wr(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:v,href:c}),e.line=a),!0):!1}const p0=["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"],g0="[a-zA-Z_:][a-zA-Z0-9:._-]*",b0="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",sa="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+g0+"(?:\\s*=\\s*"+b0+")?)")+"*\\s*\\/?>",la="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",y0="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",w0="<[?][\\s\\S]*?[?]>",x0="<![A-Za-z][^>]*>",v0="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",A0=new RegExp("^(?:"+sa+"|"+la+"|"+y0+"|"+w0+"|"+x0+"|"+v0+")"),k0=new RegExp("^(?:"+sa+"|"+la+")"),yn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+p0.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(k0.source+"\\s*$"),/^$/,!1]];function C0(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;let a=e.src.slice(u,o),s=0;for(;s<yn.length&&!yn[s][0].test(a);s++);if(s===yn.length)return!1;if(r)return yn[s][2];let l=t+1;if(!yn[s][1].test(a)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(u=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],a=e.src.slice(u,o),yn[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 _0(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(u);if(a!==35||u>=o)return!1;let s=1;for(a=e.src.charCodeAt(++u);a===35&&u<o&&s<=6;)s++,a=e.src.charCodeAt(++u);if(s>6||u<o&&!me(a))return!1;if(r)return!0;o=e.skipSpacesBack(o,u);const l=e.skipCharsBack(o,35,u);l>u&&me(e.src.charCodeAt(l-1))&&(o=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(u,o).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 E0(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const u=e.parentType;e.parentType="paragraph";let o=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))){o=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(!o)return!1;const l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const d=e.push("heading_open","h"+String(o),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(o),-1);return c.markup=String.fromCharCode(a),e.parentType=u,!0}function S0(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),u=e.parentType;let o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let d=!1;for(let f=0,c=r.length;f<c;f++)if(r[f](e,o,n,!0)){d=!0;break}if(d)break}const a=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o;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=u,!0}const Xr=[["table",a0,["paragraph","reference"]],["code",s0],["fence",l0,["paragraph","reference","blockquote","list"]],["blockquote",c0,["paragraph","reference","blockquote","list"]],["hr",d0,["paragraph","reference","blockquote","list"]],["list",h0,["paragraph","reference","blockquote"]],["reference",m0],["html_block",C0,["paragraph","reference","blockquote"]],["heading",_0,["paragraph","reference","blockquote"]],["lheading",E0],["paragraph",S0]];function qr(){this.ruler=new qe;for(let e=0;e<Xr.length;e++)this.ruler.push(Xr[e][0],Xr[e][1],{alt:(Xr[e][2]||[]).slice()})}qr.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),u=r.length,o=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>=o){e.line=n;break}const l=e.line;let d=!1;for(let f=0;f<u;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)}},qr.prototype.parse=function(e,t,n,r){if(!e)return;const u=new this.State(e,t,n,r);this.tokenize(u,u.line,u.lineMax)},qr.prototype.State=Ct;function qn(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}qn.prototype.pushPending=function(){const e=new dt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},qn.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new dt(e,t,n);let u=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=[],u={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(u),r},qn.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),u=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o<n&&this.src.charCodeAt(o)===r;)o++;const a=o-e,s=o<n?this.src.charCodeAt(o):32,l=Xn(u)||Gn(String.fromCharCode(u)),d=Xn(s)||Gn(String.fromCharCode(s)),f=Wn(u),c=Wn(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}},qn.prototype.Token=dt;function F0(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 D0(e,t){let n=e.pos;for(;n<e.posMax&&!F0(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const N0=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function T0(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 u=e.pending.match(N0);if(!u)return!1;const o=u[1],a=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!a)return!1;let s=a.url;if(s.length<=o.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,-o.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-o.length,!0}function I0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,u=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let o=r-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),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<u&&me(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const au=[];for(let e=0;e<256;e++)au.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){au[e.charCodeAt(0)]=1});function O0(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let u=e.src.charCodeAt(n);if(u===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(u=e.src.charCodeAt(n),!!me(u));)n++;return e.pos=n,!0}let o=e.src[n];if(u>=55296&&u<=56319&&n+1<r){const s=e.src.charCodeAt(n+1);s>=56320&&s<=57343&&(o+=e.src[n+1],n++)}const a="\\"+o;if(!t){const s=e.push("text_special","",0);u<256&&au[u]!==0?s.content=o:s.content=a,s.markup=a,s.info="escape"}return e.pos=n+1,!0}function L0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const u=n;n++;const o=e.posMax;for(;n<o&&e.src.charCodeAt(n)===96;)n++;const a=e.src.slice(u,n),s=a.length;if(e.backticksScanned&&(e.backticks[s]||0)<=u)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<o&&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 V0(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const u=e.scanDelims(e.pos,!0);let o=u.length;const a=String.fromCharCode(r);if(o<2)return!1;let s;o%2&&(s=e.push("text","",0),s.content=a,o--);for(let l=0;l<o;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:u.can_open,close:u.can_close});return e.pos+=u.length,!0}function ca(e,t){let n;const r=[],u=t.length;for(let o=0;o<u;o++){const a=t[o];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 o=r.pop();let a=o+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,o!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[o],e.tokens[o]=n)}}function P0(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:V0,postProcess:P0};function R0(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const u=e.scanDelims(e.pos,r===42);for(let o=0;o<u.length;o++){const a=e.push("text","",0);a.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:u.length,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close})}return e.pos+=u.length,!0}function fa(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const u=t[r];if(u.marker!==95&&u.marker!==42||u.end===-1)continue;const o=t[u.end],a=r>0&&t[r-1].end===u.end+1&&t[r-1].marker===u.marker&&t[r-1].token===u.token-1&&t[u.end+1].token===o.token+1,s=String.fromCharCode(u.marker),l=e.tokens[u.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[o.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[u.end+1].token].content="",r--)}}function M0(e){const t=e.tokens_meta,n=e.tokens_meta.length;fa(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&fa(e,t[r].delimiters)}const ha={tokenize:R0,postProcess:M0};function B0(e,t){let n,r,u,o,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),!(!me(n)&&n!==10));m++);if(m>=c)return!1;if(l=m,u=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),u.ok){for(a=e.md.normalizeLink(u.str),e.md.validateLink(a)?m=u.pos:a="",l=m;m<c&&(n=e.src.charCodeAt(m),!(!me(n)&&n!==10));m++);if(u=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<c&&l!==m&&u.ok)for(s=u.str,m=u.pos;m<c&&(n=e.src.charCodeAt(m),!(!me(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)),o=e.env.references[Wr(r)],!o)return e.pos=f,!1;a=o.href,s=o.title}if(!t){e.pos=h,e.posMax=p;const x=e.push("link_open","a",1),v=[["href",a]];x.attrs=v,s&&v.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 z0(e,t){let n,r,u,o,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(o=m+1,o<h&&e.src.charCodeAt(o)===40){for(o++;o<h&&(n=e.src.charCodeAt(o),!(!me(n)&&n!==10));o++);if(o>=h)return!1;for(d=o,s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),s.ok&&(f=e.md.normalizeLink(s.str),e.md.validateLink(f)?o=s.pos:f=""),d=o;o<h&&(n=e.src.charCodeAt(o),!(!me(n)&&n!==10));o++);if(s=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<h&&d!==o&&s.ok)for(l=s.str,o=s.pos;o<h&&(n=e.src.charCodeAt(o),!(!me(n)&&n!==10));o++);else l="";if(o>=h||e.src.charCodeAt(o)!==41)return e.pos=c,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<h&&e.src.charCodeAt(o)===91?(d=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?u=e.src.slice(d,o++):o=m+1):o=m+1,u||(u=e.src.slice(p,m)),a=e.env.references[Wr(u)],!a)return e.pos=c,!1;f=a.href,l=a.title}if(!t){r=e.src.slice(p,m);const x=[];e.md.inline.parse(r,e.md,e.env,x);const v=e.push("image","img",0),y=[["src",f],["alt",""]];v.attrs=y,v.children=x,v.content=r,l&&y.push(["title",l])}return e.pos=o,e.posMax=h,!0}const j0=/^([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])?)*)$/,H0=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function $0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,u=e.posMax;for(;;){if(++n>=u)return!1;const a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const o=e.src.slice(r+1,n);if(H0.test(o)){const a=e.md.normalizeLink(o);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(o);const d=e.push("link_close","a",-1);d.markup="autolink",d.info="auto"}return e.pos+=o.length+2,!0}if(j0.test(o)){const a=e.md.normalizeLink("mailto:"+o);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(o);const d=e.push("link_close","a",-1);d.markup="autolink",d.info="auto"}return e.pos+=o.length+2,!0}return!1}function U0(e){return/^<a[>\s]/i.test(e)}function W0(e){return/^<\/a\s*>/i.test(e)}function G0(e){const t=e|32;return t>=97&&t<=122}function X0(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 u=e.src.charCodeAt(r+1);if(u!==33&&u!==63&&u!==47&&!G0(u))return!1;const o=e.src.slice(r).match(A0);if(!o)return!1;if(!t){const a=e.push("html_inline","",0);a.content=o[0],U0(a.content)&&e.linkLevel++,W0(a.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const q0=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Z0=/^&([a-z][a-z0-9]{1,31});/i;function Y0(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 o=e.src.slice(n).match(q0);if(o){if(!t){const a=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=e.push("text_special","",0);s.content=ru(a)?Ur(a):Ur(65533),s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(Z0);if(o){const a=Qi(o[0]);if(a!==o[0]){if(!t){const s=e.push("text_special","",0);s.content=a,s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function ma(e){const t={},n=e.length;if(!n)return;let r=0,u=-2;const o=[];for(let a=0;a<n;a++){const s=e[a];if(o.push(0),(e[r].marker!==s.marker||u!==s.token-1)&&(r=a),u=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-o[r]-1,f=d;for(;d>l;d-=o[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?o[d-1]+1:0;o[a]=a-d+p,o[d]=p,s.open=!1,c.end=a,c.close=!1,f=-1,u=-2;break}}}f!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=f)}}function K0(e){const t=e.tokens_meta,n=e.tokens_meta.length;ma(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&ma(t[r].delimiters)}function Q0(e){let t,n,r=0;const u=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)u[t].nesting<0&&r--,u[t].level=r,u[t].nesting>0&&r++,u[t].type==="text"&&t+1<o&&u[t+1].type==="text"?u[t+1].content=u[t].content+u[t+1].content:(t!==n&&(u[n]=u[t]),n++);t!==n&&(u.length=n)}const su=[["text",D0],["linkify",T0],["newline",I0],["escape",O0],["backticks",L0],["strikethrough",da.tokenize],["emphasis",ha.tokenize],["link",B0],["image",z0],["autolink",$0],["html_inline",X0],["entity",Y0]],lu=[["balance_pairs",K0],["strikethrough",da.postProcess],["emphasis",ha.postProcess],["fragments_join",Q0]];function Zn(){this.ruler=new qe;for(let e=0;e<su.length;e++)this.ruler.push(su[e][0],su[e][1]);this.ruler2=new qe;for(let e=0;e<lu.length;e++)this.ruler2.push(lu[e][0],lu[e][1])}Zn.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,u=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let a=!1;if(e.level<u){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++,o[t]=e.pos},Zn.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,u=e.md.options.maxNesting;for(;e.pos<r;){const o=e.pos;let a=!1;if(e.level<u){for(let s=0;s<n;s++)if(a=t[s](e,!1),a){if(o>=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()},Zn.prototype.parse=function(e,t,n,r){const u=new this.State(e,t,n,r);this.tokenize(u);const o=this.ruler2.getRules(""),a=o.length;for(let s=0;s<a;s++)o[s](u)},Zn.prototype.State=qn;function J0(e){const t={};e=e||{},t.src_Any=Xi.source,t.src_Cc=qi.source,t.src_Z=Yi.source,t.src_P=Jo.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 cu(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function Zr(e){return Object.prototype.toString.call(e)}function ef(e){return Zr(e)==="[object String]"}function tf(e){return Zr(e)==="[object Object]"}function nf(e){return Zr(e)==="[object RegExp]"}function pa(e){return Zr(e)==="[object Function]"}function rf(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const ga={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function of(e){return Object.keys(e||{}).reduce(function(t,n){return t||ga.hasOwnProperty(n)},!1)}const uf={"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}}},af="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]",sf="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function lf(e){e.__index__=-1,e.__text_cache__=""}function cf(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function ba(){return function(e,t){t.normalize(e)}}function Yr(e){const t=e.re=J0(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(af),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 u=[];e.__compiled__={};function o(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,tf(l)){nf(l.validate)?d.validate=cf(l.validate):pa(l.validate)?d.validate=l.validate:o(s,l),pa(l.normalize)?d.normalize=l.normalize:l.normalize?o(s,l):d.normalize=ba();return}if(ef(l)){u.push(s);return}o(s,l)}),u.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:ba()};const a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(rf).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"),lf(e)}function df(e,t){const n=e.__index__,r=e.__last_index__,u=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=u,this.text=u,this.url=u}function du(e,t){const n=new df(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Ke(e,t){if(!(this instanceof Ke))return new Ke(e,t);t||of(e)&&(t=e,e={}),this.__opts__=cu({},ga,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=cu({},uf,e),this.__compiled__={},this.__tlds__=sf,this.__tlds_replaced__=!1,this.re={},Yr(this)}Ke.prototype.add=function(t,n){return this.__schemas__[t]=n,Yr(this),this},Ke.prototype.set=function(t){return this.__opts__=cu(this.__opts__,t),this},Ke.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,u,o,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(o=this.testSchemaAt(t,n[2],l.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;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&&(u=t.match(this.re.email_fuzzy))!==null&&(a=u.index+u[1].length,s=u.index+u[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},Ke.prototype.pretest=function(t){return this.re.pretest.test(t)},Ke.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0},Ke.prototype.match=function(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(du(this,r)),r=this.__last_index__);let u=r?t.slice(r):t;for(;this.test(u);)n.push(du(this,r)),u=u.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null},Ke.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,du(this,0)):null},Ke.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,u,o){return r!==o[u-1]}).reverse(),Yr(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Yr(this),this)},Ke.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},Ke.prototype.onCompile=function(){};const wn=2147483647,_t=36,fu=1,Yn=26,ff=38,hf=700,ya=72,wa=128,xa="-",mf=/^xn--/,pf=/[^\0-\x7F]/,gf=/[\x2E\u3002\uFF0E\uFF61]/g,bf={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},hu=_t-fu,Et=Math.floor,mu=String.fromCharCode;function Ut(e){throw new RangeError(bf[e])}function yf(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function va(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(gf,".");const u=e.split("."),o=yf(u,t).join(".");return r+o}function Aa(e){const t=[];let n=0;const r=e.length;for(;n<r;){const u=e.charCodeAt(n++);if(u>=55296&&u<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((u&1023)<<10)+(o&1023)+65536):(t.push(u),n--)}else t.push(u)}return t}const wf=e=>String.fromCodePoint(...e),xf=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:_t},ka=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Ca=function(e,t,n){let r=0;for(e=n?Et(e/hf):e>>1,e+=Et(e/t);e>hu*Yn>>1;r+=_t)e=Et(e/hu);return Et(r+(hu+1)*e/(e+ff))},_a=function(e){const t=[],n=e.length;let r=0,u=wa,o=ya,a=e.lastIndexOf(xa);a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&Ut("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=_t;;c+=_t){s>=n&&Ut("invalid-input");const h=xf(e.charCodeAt(s++));h>=_t&&Ut("invalid-input"),h>Et((wn-r)/f)&&Ut("overflow"),r+=h*f;const p=c<=o?fu:c>=o+Yn?Yn:c-o;if(h<p)break;const m=_t-p;f>Et(wn/m)&&Ut("overflow"),f*=m}const d=t.length+1;o=Ca(r-l,d,l==0),Et(r/d)>wn-u&&Ut("overflow"),u+=Et(r/d),r%=d,t.splice(r++,0,u)}return String.fromCodePoint(...t)},Ea=function(e){const t=[];e=Aa(e);const n=e.length;let r=wa,u=0,o=ya;for(const l of e)l<128&&t.push(mu(l));const a=t.length;let s=a;for(a&&t.push(xa);s<n;){let l=wn;for(const f of e)f>=r&&f<l&&(l=f);const d=s+1;l-r>Et((wn-u)/d)&&Ut("overflow"),u+=(l-r)*d,r=l;for(const f of e)if(f<r&&++u>wn&&Ut("overflow"),f===r){let c=u;for(let h=_t;;h+=_t){const p=h<=o?fu:h>=o+Yn?Yn:h-o;if(c<p)break;const m=c-p,x=_t-p;t.push(mu(ka(p+m%x,0))),c=Et(m/x)}t.push(mu(ka(c,0))),o=Ca(u,d,s===a),u=0,++s}++u,++r}return t.join("")},Sa={version:"2.3.1",ucs2:{decode:Aa,encode:wf},decode:_a,encode:Ea,toASCII:function(e){return va(e,function(t){return pf.test(t)?"xn--"+Ea(t):t})},toUnicode:function(e){return va(e,function(t){return mf.test(t)?_a(t.slice(4).toLowerCase()):t})}},vf={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"]}}}},Af=/^(vbscript|javascript|file|data):/,kf=/^data:image\/(gif|png|jpeg|webp);/;function Cf(e){const t=e.trim().toLowerCase();return Af.test(t)?kf.test(t):!0}const Fa=["http:","https:","mailto:"];function _f(e){const t=Qo(e,!0);if(t.hostname&&(!t.protocol||Fa.indexOf(t.protocol)>=0))try{t.hostname=Sa.toASCII(t.hostname)}catch{}return Un(Ko(t))}function Ef(e){const t=Qo(e,!0);if(t.hostname&&(!t.protocol||Fa.indexOf(t.protocol)>=0))try{t.hostname=Sa.toUnicode(t.hostname)}catch{}return pn(Ko(t),pn.defaultChars+"%")}function Qe(e,t){if(!(this instanceof Qe))return new Qe(e,t);t||nu(e)||(t=e||{},e="default"),this.inline=new Zn,this.block=new qr,this.core=new uu,this.renderer=new bn,this.linkify=new Ke,this.validateLink=Cf,this.normalizeLink=_f,this.normalizeLinkText=Ef,this.utils=Pd,this.helpers=$r({},zd),this.options={},this.configure(e),t&&this.set(t)}Qe.prototype.set=function(e){return $r(this.options,e),this},Qe.prototype.configure=function(e){const t=this;if(nu(e)){const n=e;if(e=vf[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},Qe.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Qe.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Qe.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Qe.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},Qe.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Qe.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Qe.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:Da,setPrototypeOf:Na,isFrozen:Sf,getPrototypeOf:Ff,getOwnPropertyDescriptor:Df}=Object;let{freeze:je,seal:it,create:Kr}=Object,{apply:pu,construct:gu}=typeof Reflect<"u"&&Reflect;je||(je=function(t){return t}),it||(it=function(t){return t}),pu||(pu=function(t,n){for(var r=arguments.length,u=new Array(r>2?r-2:0),o=2;o<r;o++)u[o-2]=arguments[o];return t.apply(n,u)}),gu||(gu=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];return new t(...r)});const Qr=$e(Array.prototype.forEach),Nf=$e(Array.prototype.lastIndexOf),Ta=$e(Array.prototype.pop),Kn=$e(Array.prototype.push),Tf=$e(Array.prototype.splice),Jr=$e(String.prototype.toLowerCase),bu=$e(String.prototype.toString),yu=$e(String.prototype.match),Qn=$e(String.prototype.replace),If=$e(String.prototype.indexOf),Of=$e(String.prototype.trim),Je=$e(Object.prototype.hasOwnProperty),He=$e(RegExp.prototype.test),Jn=Lf(TypeError);function $e(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];return pu(e,t,r)}}function Lf(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gu(e,n)}}function ae(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Jr;Na&&Na(e,null);let r=t.length;for(;r--;){let u=t[r];if(typeof u=="string"){const o=n(u);o!==u&&(Sf(t)||(t[r]=o),u=o)}e[u]=!0}return e}function Vf(e){for(let t=0;t<e.length;t++)Je(e,t)||(e[t]=null);return e}function St(e){const t=Kr(null);for(const[n,r]of Da(e))Je(e,n)&&(Array.isArray(r)?t[n]=Vf(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=St(r):t[n]=r);return t}function er(e,t){for(;e!==null;){const r=Df(e,t);if(r){if(r.get)return $e(r.get);if(typeof r.value=="function")return $e(r.value)}e=Ff(e)}function n(){return null}return n}const Ia=je(["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"]),wu=je(["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"]),xu=je(["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"]),Pf=je(["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"]),vu=je(["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"]),Rf=je(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Oa=je(["#text"]),La=je(["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"]),Au=je(["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"]),Va=je(["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"]),eo=je(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Mf=it(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Bf=it(/<%[\w\W]*|[\w\W]*%>/gm),zf=it(/\$\{[\w\W]*/gm),jf=it(/^data-[\-\w.\u00B7-\uFFFF]+$/),Hf=it(/^aria-[\-\w]+$/),Pa=it(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$f=it(/^(?:\w+script|data):/i),Uf=it(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ra=it(/^html$/i),Wf=it(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ma=Object.freeze({__proto__:null,ARIA_ATTR:Hf,ATTR_WHITESPACE:Uf,CUSTOM_ELEMENT:Wf,DATA_ATTR:jf,DOCTYPE_NAME:Ra,ERB_EXPR:Bf,IS_ALLOWED_URI:Pa,IS_SCRIPT_OR_DATA:$f,MUSTACHE_EXPR:Mf,TMPLIT_EXPR:zf});const tr={element:1,text:3,progressingInstruction:7,comment:8,document:9},Gf=function(){return typeof window>"u"?null:window},Xf=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const u="data-tt-policy-suffix";n&&n.hasAttribute(u)&&(r=n.getAttribute(u));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},Ba=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function za(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gf();const t=te=>za(te);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==tr.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,u=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:d,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:h,trustedTypes:p}=e,m=l.prototype,x=er(m,"cloneNode"),v=er(m,"remove"),y=er(m,"nextSibling"),b=er(m,"childNodes"),g=er(m,"parentNode");if(typeof a=="function"){const te=n.createElement("template");te.content&&te.content.ownerDocument&&(n=te.content.ownerDocument)}let w,k="";const{implementation:D,createNodeIterator:F,createDocumentFragment:S,getElementsByTagName:q}=n,{importNode:H}=r;let z=Ba();t.isSupported=typeof Da=="function"&&typeof g=="function"&&D&&D.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:$,ERB_EXPR:I,TMPLIT_EXPR:G,DATA_ATTR:X,ARIA_ATTR:T,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:B,CUSTOM_ELEMENT:Z}=Ma;let{IS_ALLOWED_URI:ue}=Ma,C=null;const E=ae({},[...Ia,...wu,...xu,...vu,...Oa]);let N=null;const O=ae({},[...La,...Au,...Va,...eo]);let P=Object.seal(Kr(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}})),U=null,L=null;const R=Object.seal(Kr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let M=!0,Q=!0,re=!1,oe=!0,ce=!1,le=!0,he=!1,Be=!1,At=!1,Xe=!1,Rt=!1,fn=!1,Yl=!0,Kl=!1;const g2="user-content-";let ai=!0,Lr=!1,Mn={},Ot=null;const si=ae({},["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 Jl=ae({},["audio","video","img","source","image","track"]);let li=null;const ec=ae({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Mo="http://www.w3.org/1998/Math/MathML",Bo="http://www.w3.org/2000/svg",Mt="http://www.w3.org/1999/xhtml";let Bn=Mt,ci=!1,di=null;const b2=ae({},[Mo,Bo,Mt],bu);let zo=ae({},["mi","mo","mn","ms","mtext"]),jo=ae({},["annotation-xml"]);const y2=ae({},["title","style","font","a","script"]);let Vr=null;const w2=["application/xhtml+xml","text/html"],x2="text/html";let Fe=null,zn=null;const v2=n.createElement("form"),tc=function(_){return _ instanceof RegExp||_ instanceof Function},fi=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(zn&&zn===_)){if((!_||typeof _!="object")&&(_={}),_=St(_),Vr=w2.indexOf(_.PARSER_MEDIA_TYPE)===-1?x2:_.PARSER_MEDIA_TYPE,Fe=Vr==="application/xhtml+xml"?bu:Jr,C=Je(_,"ALLOWED_TAGS")?ae({},_.ALLOWED_TAGS,Fe):E,N=Je(_,"ALLOWED_ATTR")?ae({},_.ALLOWED_ATTR,Fe):O,di=Je(_,"ALLOWED_NAMESPACES")?ae({},_.ALLOWED_NAMESPACES,bu):b2,li=Je(_,"ADD_URI_SAFE_ATTR")?ae(St(ec),_.ADD_URI_SAFE_ATTR,Fe):ec,Ql=Je(_,"ADD_DATA_URI_TAGS")?ae(St(Jl),_.ADD_DATA_URI_TAGS,Fe):Jl,Ot=Je(_,"FORBID_CONTENTS")?ae({},_.FORBID_CONTENTS,Fe):si,U=Je(_,"FORBID_TAGS")?ae({},_.FORBID_TAGS,Fe):St({}),L=Je(_,"FORBID_ATTR")?ae({},_.FORBID_ATTR,Fe):St({}),Mn=Je(_,"USE_PROFILES")?_.USE_PROFILES:!1,M=_.ALLOW_ARIA_ATTR!==!1,Q=_.ALLOW_DATA_ATTR!==!1,re=_.ALLOW_UNKNOWN_PROTOCOLS||!1,oe=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ce=_.SAFE_FOR_TEMPLATES||!1,le=_.SAFE_FOR_XML!==!1,he=_.WHOLE_DOCUMENT||!1,Xe=_.RETURN_DOM||!1,Rt=_.RETURN_DOM_FRAGMENT||!1,fn=_.RETURN_TRUSTED_TYPE||!1,At=_.FORCE_BODY||!1,Yl=_.SANITIZE_DOM!==!1,Kl=_.SANITIZE_NAMED_PROPS||!1,ai=_.KEEP_CONTENT!==!1,Lr=_.IN_PLACE||!1,ue=_.ALLOWED_URI_REGEXP||Pa,Bn=_.NAMESPACE||Mt,zo=_.MATHML_TEXT_INTEGRATION_POINTS||zo,jo=_.HTML_INTEGRATION_POINTS||jo,P=_.CUSTOM_ELEMENT_HANDLING||{},_.CUSTOM_ELEMENT_HANDLING&&tc(_.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(P.tagNameCheck=_.CUSTOM_ELEMENT_HANDLING.tagNameCheck),_.CUSTOM_ELEMENT_HANDLING&&tc(_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(P.attributeNameCheck=_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),_.CUSTOM_ELEMENT_HANDLING&&typeof _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(P.allowCustomizedBuiltInElements=_.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ce&&(Q=!1),Rt&&(Xe=!0),Mn&&(C=ae({},Oa),N=Kr(null),Mn.html===!0&&(ae(C,Ia),ae(N,La)),Mn.svg===!0&&(ae(C,wu),ae(N,Au),ae(N,eo)),Mn.svgFilters===!0&&(ae(C,xu),ae(N,Au),ae(N,eo)),Mn.mathMl===!0&&(ae(C,vu),ae(N,Va),ae(N,eo))),Je(_,"ADD_TAGS")||(R.tagCheck=null),Je(_,"ADD_ATTR")||(R.attributeCheck=null),_.ADD_TAGS&&(typeof _.ADD_TAGS=="function"?R.tagCheck=_.ADD_TAGS:(C===E&&(C=St(C)),ae(C,_.ADD_TAGS,Fe))),_.ADD_ATTR&&(typeof _.ADD_ATTR=="function"?R.attributeCheck=_.ADD_ATTR:(N===O&&(N=St(N)),ae(N,_.ADD_ATTR,Fe))),_.ADD_URI_SAFE_ATTR&&ae(li,_.ADD_URI_SAFE_ATTR,Fe),_.FORBID_CONTENTS&&(Ot===si&&(Ot=St(Ot)),ae(Ot,_.FORBID_CONTENTS,Fe)),_.ADD_FORBID_CONTENTS&&(Ot===si&&(Ot=St(Ot)),ae(Ot,_.ADD_FORBID_CONTENTS,Fe)),ai&&(C["#text"]=!0),he&&ae(C,["html","head","body"]),C.table&&(ae(C,["tbody"]),delete U.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw Jn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Jn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=_.TRUSTED_TYPES_POLICY,k=w.createHTML("")}else w===void 0&&(w=Xf(p,u)),w!==null&&typeof k=="string"&&(k=w.createHTML(""));je&&je(_),zn=_}},nc=ae({},[...wu,...xu,...Pf]),rc=ae({},[...vu,...Rf]),A2=function(_){let W=g(_);(!W||!W.tagName)&&(W={namespaceURI:Bn,tagName:"template"});const ee=Jr(_.tagName),xe=Jr(W.tagName);return di[_.namespaceURI]?_.namespaceURI===Bo?W.namespaceURI===Mt?ee==="svg":W.namespaceURI===Mo?ee==="svg"&&(xe==="annotation-xml"||zo[xe]):!!nc[ee]:_.namespaceURI===Mo?W.namespaceURI===Mt?ee==="math":W.namespaceURI===Bo?ee==="math"&&jo[xe]:!!rc[ee]:_.namespaceURI===Mt?W.namespaceURI===Bo&&!jo[xe]||W.namespaceURI===Mo&&!zo[xe]?!1:!rc[ee]&&(y2[ee]||!nc[ee]):!!(Vr==="application/xhtml+xml"&&di[_.namespaceURI]):!1},Lt=function(_){Kn(t.removed,{element:_});try{g(_).removeChild(_)}catch{v(_)}},hn=function(_,W){try{Kn(t.removed,{attribute:W.getAttributeNode(_),from:W})}catch{Kn(t.removed,{attribute:null,from:W})}if(W.removeAttribute(_),_==="is")if(Xe||Rt)try{Lt(W)}catch{}else try{W.setAttribute(_,"")}catch{}},oc=function(_){let W=null,ee=null;if(At)_="<remove></remove>"+_;else{const _e=yu(_,/^[\r\n\t ]+/);ee=_e&&_e[0]}Vr==="application/xhtml+xml"&&Bn===Mt&&(_='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_+"</body></html>");const xe=w?w.createHTML(_):_;if(Bn===Mt)try{W=new h().parseFromString(xe,Vr)}catch{}if(!W||!W.documentElement){W=D.createDocument(Bn,"template",null);try{W.documentElement.innerHTML=ci?k:xe}catch{}}const ze=W.body||W.documentElement;return _&&ee&&ze.insertBefore(n.createTextNode(ee),ze.childNodes[0]||null),Bn===Mt?q.call(W,he?"html":"body")[0]:he?W.documentElement:ze},uc=function(_){return F.call(_.ownerDocument||_,_,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},hi=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")},ic=function(_){return typeof s=="function"&&_ instanceof s};function Bt(te,_,W){Qr(te,ee=>{ee.call(t,_,W,zn)})}const ac=function(_){let W=null;if(Bt(z.beforeSanitizeElements,_,null),hi(_))return Lt(_),!0;const ee=Fe(_.nodeName);if(Bt(z.uponSanitizeElement,_,{tagName:ee,allowedTags:C}),le&&_.hasChildNodes()&&!ic(_.firstElementChild)&&He(/<[/\w!]/g,_.innerHTML)&&He(/<[/\w!]/g,_.textContent)||_.nodeType===tr.progressingInstruction||le&&_.nodeType===tr.comment&&He(/<[/\w]/g,_.data))return Lt(_),!0;if(!(R.tagCheck instanceof Function&&R.tagCheck(ee))&&(!C[ee]||U[ee])){if(!U[ee]&&lc(ee)&&(P.tagNameCheck instanceof RegExp&&He(P.tagNameCheck,ee)||P.tagNameCheck instanceof Function&&P.tagNameCheck(ee)))return!1;if(ai&&!Ot[ee]){const xe=g(_)||_.parentNode,ze=b(_)||_.childNodes;if(ze&&xe){const _e=ze.length;for(let Ye=_e-1;Ye>=0;--Ye){const zt=x(ze[Ye],!0);zt.__removalCount=(_.__removalCount||0)+1,xe.insertBefore(zt,y(_))}}}return Lt(_),!0}return _ instanceof l&&!A2(_)||(ee==="noscript"||ee==="noembed"||ee==="noframes")&&He(/<\/no(script|embed|frames)/i,_.innerHTML)?(Lt(_),!0):(ce&&_.nodeType===tr.text&&(W=_.textContent,Qr([$,I,G],xe=>{W=Qn(W,xe," ")}),_.textContent!==W&&(Kn(t.removed,{element:_.cloneNode()}),_.textContent=W)),Bt(z.afterSanitizeElements,_,null),!1)},sc=function(_,W,ee){if(L[W]||Yl&&(W==="id"||W==="name")&&(ee in n||ee in v2))return!1;if(!(Q&&!L[W]&&He(X,W))){if(!(M&&He(T,W))){if(!(R.attributeCheck instanceof Function&&R.attributeCheck(W,_))){if(!N[W]||L[W]){if(!(lc(_)&&(P.tagNameCheck instanceof RegExp&&He(P.tagNameCheck,_)||P.tagNameCheck instanceof Function&&P.tagNameCheck(_))&&(P.attributeNameCheck instanceof RegExp&&He(P.attributeNameCheck,W)||P.attributeNameCheck instanceof Function&&P.attributeNameCheck(W,_))||W==="is"&&P.allowCustomizedBuiltInElements&&(P.tagNameCheck instanceof RegExp&&He(P.tagNameCheck,ee)||P.tagNameCheck instanceof Function&&P.tagNameCheck(ee))))return!1}else if(!li[W]){if(!He(ue,Qn(ee,B,""))){if(!((W==="src"||W==="xlink:href"||W==="href")&&_!=="script"&&If(ee,"data:")===0&&Ql[_])){if(!(re&&!He(j,Qn(ee,B,"")))){if(ee)return!1}}}}}}}return!0},lc=function(_){return _!=="annotation-xml"&&yu(_,Z)},cc=function(_){Bt(z.beforeSanitizeAttributes,_,null);const{attributes:W}=_;if(!W||hi(_))return;const ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:N,forceKeepAttr:void 0};let xe=W.length;for(;xe--;){const ze=W[xe],{name:_e,namespaceURI:Ye,value:zt}=ze,jn=Fe(_e),mi=zt;let Ve=_e==="value"?mi:Of(mi);if(ee.attrName=jn,ee.attrValue=Ve,ee.keepAttr=!0,ee.forceKeepAttr=void 0,Bt(z.uponSanitizeAttribute,_,ee),Ve=ee.attrValue,Kl&&(jn==="id"||jn==="name")&&(hn(_e,_),Ve=g2+Ve),le&&He(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ve)){hn(_e,_);continue}if(jn==="attributename"&&yu(Ve,"href")){hn(_e,_);continue}if(ee.forceKeepAttr)continue;if(!ee.keepAttr){hn(_e,_);continue}if(!oe&&He(/\/>/i,Ve)){hn(_e,_);continue}ce&&Qr([$,I,G],fc=>{Ve=Qn(Ve,fc," ")});const dc=Fe(_.nodeName);if(!sc(dc,jn,Ve)){hn(_e,_);continue}if(w&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Ye)switch(p.getAttributeType(dc,jn)){case"TrustedHTML":{Ve=w.createHTML(Ve);break}case"TrustedScriptURL":{Ve=w.createScriptURL(Ve);break}}if(Ve!==mi)try{Ye?_.setAttributeNS(Ye,_e,Ve):_.setAttribute(_e,Ve),hi(_)?Lt(_):Ta(t.removed)}catch{hn(_e,_)}}Bt(z.afterSanitizeAttributes,_,null)},k2=function te(_){let W=null;const ee=uc(_);for(Bt(z.beforeSanitizeShadowDOM,_,null);W=ee.nextNode();)Bt(z.uponSanitizeShadowNode,W,null),ac(W),cc(W),W.content instanceof o&&te(W.content);Bt(z.afterSanitizeShadowDOM,_,null)};return t.sanitize=function(te){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=null,ee=null,xe=null,ze=null;if(ci=!te,ci&&(te="<!-->"),typeof te!="string"&&!ic(te))if(typeof te.toString=="function"){if(te=te.toString(),typeof te!="string")throw Jn("dirty is not a string, aborting")}else throw Jn("toString is not a function");if(!t.isSupported)return te;if(Be||fi(_),t.removed=[],typeof te=="string"&&(Lr=!1),Lr){if(te.nodeName){const zt=Fe(te.nodeName);if(!C[zt]||U[zt])throw Jn("root node is forbidden and cannot be sanitized in-place")}}else if(te instanceof s)W=oc("<!---->"),ee=W.ownerDocument.importNode(te,!0),ee.nodeType===tr.element&&ee.nodeName==="BODY"||ee.nodeName==="HTML"?W=ee:W.appendChild(ee);else{if(!Xe&&!ce&&!he&&te.indexOf("<")===-1)return w&&fn?w.createHTML(te):te;if(W=oc(te),!W)return Xe?null:fn?k:""}W&&At&&Lt(W.firstChild);const _e=uc(Lr?te:W);for(;xe=_e.nextNode();)ac(xe),cc(xe),xe.content instanceof o&&k2(xe.content);if(Lr)return te;if(Xe){if(Rt)for(ze=S.call(W.ownerDocument);W.firstChild;)ze.appendChild(W.firstChild);else ze=W;return(N.shadowroot||N.shadowrootmode)&&(ze=H.call(r,ze,!0)),ze}let Ye=he?W.outerHTML:W.innerHTML;return he&&C["!doctype"]&&W.ownerDocument&&W.ownerDocument.doctype&&W.ownerDocument.doctype.name&&He(Ra,W.ownerDocument.doctype.name)&&(Ye="<!DOCTYPE "+W.ownerDocument.doctype.name+`>
|
|
17
|
-
`+Ye),ce&&Qr([$,I,G],zt=>{Ye=Qn(Ye,zt," ")}),w&&fn?w.createHTML(Ye):Ye},t.setConfig=function(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fi(te),Be=!0},t.clearConfig=function(){zn=null,Be=!1},t.isValidAttribute=function(te,_,W){zn||fi({});const ee=Fe(te),xe=Fe(_);return sc(ee,xe,W)},t.addHook=function(te,_){typeof _=="function"&&Kn(z[te],_)},t.removeHook=function(te,_){if(_!==void 0){const W=
|
|
15
|
+
`),t=t.replace(Hd,"�"),e.src=t}function Ud(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 Wd(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const u=t[n];u.type==="inline"&&e.md.inline.parse(u.content,e.md,e.env,u.children)}}function Gd(e){return/^<a[>\s]/i.test(e)}function Xd(e){return/^<\/a\s*>/i.test(e)}function qd(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 u=t[n].children,o=0;for(let a=u.length-1;a>=0;a--){const s=u[a];if(s.type==="link_close"){for(a--;u[a].level!==s.level&&u[a].type!=="link_open";)a--;continue}if(s.type==="html_inline"&&(Gd(s.content)&&o>0&&o--,Xd(s.content)&&o++),!(o>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&&u[a-1].type==="text_special"&&(d=d.slice(1));for(let p=0;p<d.length;p++){const m=d[p].url,x=e.md.normalizeLink(m);if(!e.md.validateLink(x))continue;let v=d[p].text;d[p].schema?d[p].schema==="mailto:"&&!/^mailto:/i.test(v)?v=e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):v=e.md.normalizeLinkText(v):v=e.md.normalizeLinkText("http://"+v).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 b=new e.Token("link_open","a",1);b.attrs=[["href",x]],b.level=c++,b.markup="linkify",b.info="auto",f.push(b);const g=new e.Token("text","",0);g.content=v,g.level=c,f.push(g);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=u=Ji(u,a,f)}}}}const na=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Zd=/\((c|tm|r)\)/i,Yd=/\((c|tm|r)\)/ig,Kd={c:"©",r:"®",tm:"™"};function Qd(e,t){return Kd[t.toLowerCase()]}function Jd(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(Yd,Qd)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function e0(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&na.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 t0(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Zd.test(e.tokens[t].content)&&Jd(e.tokens[t].children),na.test(e.tokens[t].content)&&e0(e.tokens[t].children))}const n0=/['"]/,ra=/['"]/g,oa="’";function Gr(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function r0(e,t){let n;const r=[];for(let u=0;u<e.length;u++){const o=e[u],a=e[u].level;for(n=r.length-1;n>=0&&!(r[n].level<=a);n--);if(r.length=n+1,o.type!=="text")continue;let s=o.content,l=0,d=s.length;e:for(;l<d;){ra.lastIndex=l;const f=ra.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=u-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 x=32;if(l<d)x=s.charCodeAt(l);else for(n=u+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){x=e[n].content.charCodeAt(0);break}const v=Xn(m)||Gn(String.fromCharCode(m)),y=Xn(x)||Gn(String.fromCharCode(x)),b=Wn(m),g=Wn(x);if(g?c=!1:y&&(b||v||(c=!1)),b?h=!1:v&&(g||y||(h=!1)),x===34&&f[0]==='"'&&m>=48&&m<=57&&(h=c=!1),c&&h&&(c=v,h=y),!c&&!h){p&&(o.content=Gr(o.content,f.index,oa));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,N;p?(k=t.md.options.quotes[2],N=t.md.options.quotes[3]):(k=t.md.options.quotes[0],N=t.md.options.quotes[1]),o.content=Gr(o.content,f.index,N),e[w.token].content=Gr(e[w.token].content,w.pos,k),l+=N.length-1,w.token===u&&(l+=k.length-1),s=o.content,d=s.length,r.length=n;continue e}}c?r.push({token:u,pos:f.index,single:p,level:a}):h&&p&&(o.content=Gr(o.content,f.index,oa))}}}function o0(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!n0.test(e.tokens[t].content)||r0(e.tokens[t].children,e)}function u0(e){let t,n;const r=e.tokens,u=r.length;for(let o=0;o<u;o++){if(r[o].type!=="inline")continue;const a=r[o].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 ou=[["normalize",$d],["block",Ud],["inline",Wd],["linkify",qd],["replacements",t0],["smartquotes",o0],["text_join",u0]];function uu(){this.ruler=new qe;for(let e=0;e<ou.length;e++)this.ruler.push(ou[e][0],ou[e][1])}uu.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},uu.prototype.State=ta;function Ct(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 u=this.src;for(let o=0,a=0,s=0,l=0,d=u.length,f=!1;a<d;a++){const c=u.charCodeAt(a);if(!f)if(me(c)){s++,c===9?l+=4-l%4:l++;continue}else f=!0;(c===10||a===d-1)&&(c!==10&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),f=!1,s=0,l=0,o=a+1)}this.bMarks.push(u.length),this.eMarks.push(u.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Ct.prototype.push=function(e,t,n){const r=new dt(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},Ct.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},Ct.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},Ct.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!me(r))break}return t},Ct.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!me(this.src.charCodeAt(--t)))return t+1;return t},Ct.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t},Ct.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},Ct.prototype.getLines=function(t,n,r,u){if(t>=n)return"";const o=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||u?c=this.eMarks[s]+1:c=this.eMarks[s];f<c&&l<r;){const h=this.src.charCodeAt(f);if(me(h))h===9?l+=4-(l+this.bsCount[s])%4:l++;else if(f-d<this.tShift[s])l++;else break;f++}l>r?o[a]=new Array(l-r+1).join(" ")+this.src.slice(f,c):o[a]=this.src.slice(f,c)}return o.join("")},Ct.prototype.Token=dt;const i0=65536;function iu(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,u=e.charCodeAt(r),o=!1,a=0,s="";for(;r<n;)u===124&&(o?(s+=e.substring(a,r-1),a=r):(t.push(s+e.substring(a,r)),s="",a=r+1)),o=u===92,r++,u=e.charCodeAt(r);return t.push(s+e.substring(a)),t}function a0(e,t,n,r){if(t+2>n)return!1;let u=t+1;if(e.sCount[u]<e.blkIndent||e.sCount[u]-e.blkIndent>=4)return!1;let o=e.bMarks[u]+e.tShift[u];if(o>=e.eMarks[u])return!1;const a=e.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58||o>=e.eMarks[u])return!1;const s=e.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58&&!me(s)||a===45&&me(s))return!1;for(;o<e.eMarks[u];){const w=e.src.charCodeAt(o);if(w!==124&&w!==45&&w!==58&&!me(w))return!1;o++}let l=iu(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=iu(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),x=[t,0];m.map=x;const v=e.push("thead_open","thead",1);v.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 N=e.push("inline","",0);N.content=d[w].trim(),N.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let b,g=0;for(u=t+2;u<n&&!(e.sCount[u]<e.blkIndent);u++){let w=!1;for(let N=0,F=p.length;N<F;N++)if(p[N](e,u,n,!0)){w=!0;break}if(w||(l=iu(e,u).trim(),!l)||e.sCount[u]-e.blkIndent>=4||(d=ua(l),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),g+=c-d.length,g>i0))break;if(u===t+2){const N=e.push("tbody_open","tbody",1);N.map=b=[t+2,0]}const k=e.push("tr_open","tr",1);k.map=[u,u+1];for(let N=0;N<c;N++){const F=e.push("td_open","td",1);f[N]&&(F.attrs=[["style","text-align:"+f[N]]]);const S=e.push("inline","",0);S.content=d[N]?d[N].trim():"",S.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return b&&(e.push("tbody_close","tbody",-1),b[1]=u),e.push("table_close","table",-1),x[1]=u,e.parentType=h,e.line=u,!0}function s0(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,u=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,u=r;continue}break}e.line=u;const o=e.push("code_block","code",0);return o.content=e.getLines(t,u,4+e.blkIndent,!1)+`
|
|
16
|
+
`,o.map=[t,e.line],!0}function l0(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||u+3>o)return!1;const a=e.src.charCodeAt(u);if(a!==126&&a!==96)return!1;let s=u;u=e.skipChars(u,a);let l=u-s;if(l<3)return!1;const d=e.src.slice(s,u),f=e.src.slice(u,o);if(a===96&&f.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let c=t,h=!1;for(;c++,!(c>=n||(u=s=e.bMarks[c]+e.tShift[c],o=e.eMarks[c],u<o&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(u)===a&&!(e.sCount[c]-e.blkIndent>=4)&&(u=e.skipChars(u,a),!(u-s<l)&&(u=e.skipSpaces(u),!(u<o)))){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 c0(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==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 g=e.sCount[m]<e.blkIndent;if(u=e.bMarks[m]+e.tShift[m],o=e.eMarks[m],u>=o)break;if(e.src.charCodeAt(u++)===62&&!g){let k=e.sCount[m]+1,N,F;e.src.charCodeAt(u)===32?(u++,k++,F=!1,N=!0):e.src.charCodeAt(u)===9?(N=!0,(e.bsCount[m]+k)%4===3?(u++,k++,F=!1):F=!0):N=!1;let S=k;for(s.push(e.bMarks[m]),e.bMarks[m]=u;u<o;){const q=e.src.charCodeAt(u);if(me(q))q===9?S+=4-(S+e.bsCount[m]+(F?1:0))%4:S++;else break;u++}p=u>=o,l.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(N?1:0),d.push(e.sCount[m]),e.sCount[m]=S-k,f.push(e.tShift[m]),e.tShift[m]=u-e.bMarks[m];continue}if(p)break;let w=!1;for(let k=0,N=c.length;k<N;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 x=e.blkIndent;e.blkIndent=0;const v=e.push("blockquote_open","blockquote",1);v.markup=">";const y=[t,0];v.map=y,e.md.block.tokenize(e,t,m);const b=e.push("blockquote_close","blockquote",-1);b.markup=">",e.lineMax=a,e.parentType=h,y[1]=e.line;for(let g=0;g<f.length;g++)e.bMarks[g+t]=s[g],e.tShift[g+t]=f[g],e.sCount[g+t]=d[g],e.bsCount[g+t]=l[g];return e.blkIndent=x,!0}function d0(e,t,n,r){const u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(o++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;o<u;){const d=e.src.charCodeAt(o++);if(d!==a&&!me(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 ia(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const u=e.src.charCodeAt(r++);if(u!==42&&u!==45&&u!==43)return-1;if(r<n){const o=e.src.charCodeAt(r);if(!me(o))return-1}return r}function aa(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let u=n;if(u+1>=r)return-1;let o=e.src.charCodeAt(u++);if(o<48||o>57)return-1;for(;;){if(u>=r)return-1;if(o=e.src.charCodeAt(u++),o>=48&&o<=57){if(u-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return u<r&&(o=e.src.charCodeAt(u),!me(o))?-1:u}function f0(e,t){const n=e.level+2;for(let r=t+2,u=e.tokens.length-2;r<u;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 h0(e,t,n,r){let u,o,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=aa(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=ia(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),x=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 v=[l,0];s.map=v,s.markup=String.fromCharCode(m);let y=!1;const b=e.md.block.ruler.getRules("list"),g=e.parentType;for(e.parentType="list";l<n;){o=p,u=e.eMarks[l];const w=e.sCount[l]+p-(e.bMarks[l]+e.tShift[l]);let k=w;for(;o<u;){const X=e.src.charCodeAt(o);if(X===9)k+=4-(k+e.bsCount[l])%4;else if(X===32)k++;else break;o++}const N=o;let F;N>=u?F=1:F=k-w,F>4&&(F=1);const S=w+F;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(m);const q=[l,0];s.map=q,c&&(s.info=e.src.slice(a,p-1));const H=e.tight,z=e.tShift[l],$=e.sCount[l],I=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=S,e.tight=!0,e.tShift[l]=N-e.bMarks[l],e.sCount[l]=k,N>=u&&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=I,e.tShift[l]=z,e.sCount[l]=$,e.tight=H,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(m),l=e.line,q[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let G=!1;for(let X=0,T=b.length;X<T;X++)if(b[X](e,l,n,!0)){G=!0;break}if(G)break;if(c){if(p=aa(e,l),p<0)break;a=e.bMarks[l]+e.tShift[l]}else if(p=ia(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),v[1]=l,e.line=l,e.parentType=g,d&&f0(e,x),!0}function m0(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(u)!==91)return!1;function s(b){const g=e.lineMax;if(b>=g||e.isEmpty(b))return null;let w=!1;if(e.sCount[b]-e.blkIndent>3&&(w=!0),e.sCount[b]<0&&(w=!0),!w){const F=e.md.block.ruler.getRules("reference"),S=e.parentType;e.parentType="reference";let q=!1;for(let H=0,z=F.length;H<z;H++)if(F[H](e,b,g,!0)){q=!0;break}if(e.parentType=S,q)return null}const k=e.bMarks[b]+e.tShift[b],N=e.eMarks[b];return e.src.slice(k,N+1)}let l=e.src.slice(u,o+1);o=l.length;let d=-1;for(u=1;u<o;u++){const b=l.charCodeAt(u);if(b===91)return!1;if(b===93){d=u;break}else if(b===10){const g=s(a);g!==null&&(l+=g,o=l.length,a++)}else if(b===92&&(u++,u<o&&l.charCodeAt(u)===10)){const g=s(a);g!==null&&(l+=g,o=l.length,a++)}}if(d<0||l.charCodeAt(d+1)!==58)return!1;for(u=d+2;u<o;u++){const b=l.charCodeAt(u);if(b===10){const g=s(a);g!==null&&(l+=g,o=l.length,a++)}else if(!me(b))break}const f=e.md.helpers.parseLinkDestination(l,u,o);if(!f.ok)return!1;const c=e.md.normalizeLink(f.str);if(!e.md.validateLink(c))return!1;u=f.pos;const h=u,p=a,m=u;for(;u<o;u++){const b=l.charCodeAt(u);if(b===10){const g=s(a);g!==null&&(l+=g,o=l.length,a++)}else if(!me(b))break}let x=e.md.helpers.parseLinkTitle(l,u,o);for(;x.can_continue;){const b=s(a);if(b===null)break;l+=b,u=o,o=l.length,a++,x=e.md.helpers.parseLinkTitle(l,u,o,x)}let v;for(u<o&&m!==u&&x.ok?(v=x.str,u=x.pos):(v="",u=h,a=p);u<o;){const b=l.charCodeAt(u);if(!me(b))break;u++}if(u<o&&l.charCodeAt(u)!==10&&v)for(v="",u=h,a=p;u<o;){const b=l.charCodeAt(u);if(!me(b))break;u++}if(u<o&&l.charCodeAt(u)!==10)return!1;const y=Wr(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:v,href:c}),e.line=a),!0):!1}const p0=["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"],g0="[a-zA-Z_:][a-zA-Z0-9:._-]*",b0="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",sa="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+g0+"(?:\\s*=\\s*"+b0+")?)")+"*\\s*\\/?>",la="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",y0="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",w0="<[?][\\s\\S]*?[?]>",x0="<![A-Za-z][^>]*>",v0="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",A0=new RegExp("^(?:"+sa+"|"+la+"|"+y0+"|"+w0+"|"+x0+"|"+v0+")"),k0=new RegExp("^(?:"+sa+"|"+la+")"),yn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+p0.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(k0.source+"\\s*$"),/^$/,!1]];function C0(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;let a=e.src.slice(u,o),s=0;for(;s<yn.length&&!yn[s][0].test(a);s++);if(s===yn.length)return!1;if(r)return yn[s][2];let l=t+1;if(!yn[s][1].test(a)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(u=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],a=e.src.slice(u,o),yn[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 _0(e,t,n,r){let u=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(u);if(a!==35||u>=o)return!1;let s=1;for(a=e.src.charCodeAt(++u);a===35&&u<o&&s<=6;)s++,a=e.src.charCodeAt(++u);if(s>6||u<o&&!me(a))return!1;if(r)return!0;o=e.skipSpacesBack(o,u);const l=e.skipCharsBack(o,35,u);l>u&&me(e.src.charCodeAt(l-1))&&(o=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(u,o).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 E0(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const u=e.parentType;e.parentType="paragraph";let o=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))){o=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(!o)return!1;const l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const d=e.push("heading_open","h"+String(o),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(o),-1);return c.markup=String.fromCharCode(a),e.parentType=u,!0}function S0(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),u=e.parentType;let o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let d=!1;for(let f=0,c=r.length;f<c;f++)if(r[f](e,o,n,!0)){d=!0;break}if(d)break}const a=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o;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=u,!0}const Xr=[["table",a0,["paragraph","reference"]],["code",s0],["fence",l0,["paragraph","reference","blockquote","list"]],["blockquote",c0,["paragraph","reference","blockquote","list"]],["hr",d0,["paragraph","reference","blockquote","list"]],["list",h0,["paragraph","reference","blockquote"]],["reference",m0],["html_block",C0,["paragraph","reference","blockquote"]],["heading",_0,["paragraph","reference","blockquote"]],["lheading",E0],["paragraph",S0]];function qr(){this.ruler=new qe;for(let e=0;e<Xr.length;e++)this.ruler.push(Xr[e][0],Xr[e][1],{alt:(Xr[e][2]||[]).slice()})}qr.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),u=r.length,o=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>=o){e.line=n;break}const l=e.line;let d=!1;for(let f=0;f<u;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)}},qr.prototype.parse=function(e,t,n,r){if(!e)return;const u=new this.State(e,t,n,r);this.tokenize(u,u.line,u.lineMax)},qr.prototype.State=Ct;function qn(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}qn.prototype.pushPending=function(){const e=new dt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},qn.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new dt(e,t,n);let u=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=[],u={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(u),r},qn.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),u=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o<n&&this.src.charCodeAt(o)===r;)o++;const a=o-e,s=o<n?this.src.charCodeAt(o):32,l=Xn(u)||Gn(String.fromCharCode(u)),d=Xn(s)||Gn(String.fromCharCode(s)),f=Wn(u),c=Wn(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}},qn.prototype.Token=dt;function F0(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 N0(e,t){let n=e.pos;for(;n<e.posMax&&!F0(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const D0=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function T0(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 u=e.pending.match(D0);if(!u)return!1;const o=u[1],a=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!a)return!1;let s=a.url;if(s.length<=o.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,-o.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-o.length,!0}function I0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,u=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let o=r-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),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<u&&me(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const au=[];for(let e=0;e<256;e++)au.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){au[e.charCodeAt(0)]=1});function O0(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let u=e.src.charCodeAt(n);if(u===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(u=e.src.charCodeAt(n),!!me(u));)n++;return e.pos=n,!0}let o=e.src[n];if(u>=55296&&u<=56319&&n+1<r){const s=e.src.charCodeAt(n+1);s>=56320&&s<=57343&&(o+=e.src[n+1],n++)}const a="\\"+o;if(!t){const s=e.push("text_special","",0);u<256&&au[u]!==0?s.content=o:s.content=a,s.markup=a,s.info="escape"}return e.pos=n+1,!0}function L0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const u=n;n++;const o=e.posMax;for(;n<o&&e.src.charCodeAt(n)===96;)n++;const a=e.src.slice(u,n),s=a.length;if(e.backticksScanned&&(e.backticks[s]||0)<=u)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<o&&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 V0(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const u=e.scanDelims(e.pos,!0);let o=u.length;const a=String.fromCharCode(r);if(o<2)return!1;let s;o%2&&(s=e.push("text","",0),s.content=a,o--);for(let l=0;l<o;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:u.can_open,close:u.can_close});return e.pos+=u.length,!0}function ca(e,t){let n;const r=[],u=t.length;for(let o=0;o<u;o++){const a=t[o];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 o=r.pop();let a=o+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,o!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[o],e.tokens[o]=n)}}function P0(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:V0,postProcess:P0};function R0(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const u=e.scanDelims(e.pos,r===42);for(let o=0;o<u.length;o++){const a=e.push("text","",0);a.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:u.length,token:e.tokens.length-1,end:-1,open:u.can_open,close:u.can_close})}return e.pos+=u.length,!0}function fa(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const u=t[r];if(u.marker!==95&&u.marker!==42||u.end===-1)continue;const o=t[u.end],a=r>0&&t[r-1].end===u.end+1&&t[r-1].marker===u.marker&&t[r-1].token===u.token-1&&t[u.end+1].token===o.token+1,s=String.fromCharCode(u.marker),l=e.tokens[u.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[o.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[u.end+1].token].content="",r--)}}function M0(e){const t=e.tokens_meta,n=e.tokens_meta.length;fa(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&fa(e,t[r].delimiters)}const ha={tokenize:R0,postProcess:M0};function B0(e,t){let n,r,u,o,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),!(!me(n)&&n!==10));m++);if(m>=c)return!1;if(l=m,u=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),u.ok){for(a=e.md.normalizeLink(u.str),e.md.validateLink(a)?m=u.pos:a="",l=m;m<c&&(n=e.src.charCodeAt(m),!(!me(n)&&n!==10));m++);if(u=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<c&&l!==m&&u.ok)for(s=u.str,m=u.pos;m<c&&(n=e.src.charCodeAt(m),!(!me(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)),o=e.env.references[Wr(r)],!o)return e.pos=f,!1;a=o.href,s=o.title}if(!t){e.pos=h,e.posMax=p;const x=e.push("link_open","a",1),v=[["href",a]];x.attrs=v,s&&v.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 z0(e,t){let n,r,u,o,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(o=m+1,o<h&&e.src.charCodeAt(o)===40){for(o++;o<h&&(n=e.src.charCodeAt(o),!(!me(n)&&n!==10));o++);if(o>=h)return!1;for(d=o,s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),s.ok&&(f=e.md.normalizeLink(s.str),e.md.validateLink(f)?o=s.pos:f=""),d=o;o<h&&(n=e.src.charCodeAt(o),!(!me(n)&&n!==10));o++);if(s=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<h&&d!==o&&s.ok)for(l=s.str,o=s.pos;o<h&&(n=e.src.charCodeAt(o),!(!me(n)&&n!==10));o++);else l="";if(o>=h||e.src.charCodeAt(o)!==41)return e.pos=c,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<h&&e.src.charCodeAt(o)===91?(d=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?u=e.src.slice(d,o++):o=m+1):o=m+1,u||(u=e.src.slice(p,m)),a=e.env.references[Wr(u)],!a)return e.pos=c,!1;f=a.href,l=a.title}if(!t){r=e.src.slice(p,m);const x=[];e.md.inline.parse(r,e.md,e.env,x);const v=e.push("image","img",0),y=[["src",f],["alt",""]];v.attrs=y,v.children=x,v.content=r,l&&y.push(["title",l])}return e.pos=o,e.posMax=h,!0}const j0=/^([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])?)*)$/,H0=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function $0(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,u=e.posMax;for(;;){if(++n>=u)return!1;const a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const o=e.src.slice(r+1,n);if(H0.test(o)){const a=e.md.normalizeLink(o);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(o);const d=e.push("link_close","a",-1);d.markup="autolink",d.info="auto"}return e.pos+=o.length+2,!0}if(j0.test(o)){const a=e.md.normalizeLink("mailto:"+o);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(o);const d=e.push("link_close","a",-1);d.markup="autolink",d.info="auto"}return e.pos+=o.length+2,!0}return!1}function U0(e){return/^<a[>\s]/i.test(e)}function W0(e){return/^<\/a\s*>/i.test(e)}function G0(e){const t=e|32;return t>=97&&t<=122}function X0(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 u=e.src.charCodeAt(r+1);if(u!==33&&u!==63&&u!==47&&!G0(u))return!1;const o=e.src.slice(r).match(A0);if(!o)return!1;if(!t){const a=e.push("html_inline","",0);a.content=o[0],U0(a.content)&&e.linkLevel++,W0(a.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const q0=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Z0=/^&([a-z][a-z0-9]{1,31});/i;function Y0(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 o=e.src.slice(n).match(q0);if(o){if(!t){const a=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=e.push("text_special","",0);s.content=ru(a)?Ur(a):Ur(65533),s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(Z0);if(o){const a=Qi(o[0]);if(a!==o[0]){if(!t){const s=e.push("text_special","",0);s.content=a,s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function ma(e){const t={},n=e.length;if(!n)return;let r=0,u=-2;const o=[];for(let a=0;a<n;a++){const s=e[a];if(o.push(0),(e[r].marker!==s.marker||u!==s.token-1)&&(r=a),u=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-o[r]-1,f=d;for(;d>l;d-=o[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?o[d-1]+1:0;o[a]=a-d+p,o[d]=p,s.open=!1,c.end=a,c.close=!1,f=-1,u=-2;break}}}f!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=f)}}function K0(e){const t=e.tokens_meta,n=e.tokens_meta.length;ma(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&ma(t[r].delimiters)}function Q0(e){let t,n,r=0;const u=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)u[t].nesting<0&&r--,u[t].level=r,u[t].nesting>0&&r++,u[t].type==="text"&&t+1<o&&u[t+1].type==="text"?u[t+1].content=u[t].content+u[t+1].content:(t!==n&&(u[n]=u[t]),n++);t!==n&&(u.length=n)}const su=[["text",N0],["linkify",T0],["newline",I0],["escape",O0],["backticks",L0],["strikethrough",da.tokenize],["emphasis",ha.tokenize],["link",B0],["image",z0],["autolink",$0],["html_inline",X0],["entity",Y0]],lu=[["balance_pairs",K0],["strikethrough",da.postProcess],["emphasis",ha.postProcess],["fragments_join",Q0]];function Zn(){this.ruler=new qe;for(let e=0;e<su.length;e++)this.ruler.push(su[e][0],su[e][1]);this.ruler2=new qe;for(let e=0;e<lu.length;e++)this.ruler2.push(lu[e][0],lu[e][1])}Zn.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,u=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let a=!1;if(e.level<u){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++,o[t]=e.pos},Zn.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,u=e.md.options.maxNesting;for(;e.pos<r;){const o=e.pos;let a=!1;if(e.level<u){for(let s=0;s<n;s++)if(a=t[s](e,!1),a){if(o>=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()},Zn.prototype.parse=function(e,t,n,r){const u=new this.State(e,t,n,r);this.tokenize(u);const o=this.ruler2.getRules(""),a=o.length;for(let s=0;s<a;s++)o[s](u)},Zn.prototype.State=qn;function J0(e){const t={};e=e||{},t.src_Any=Xi.source,t.src_Cc=qi.source,t.src_Z=Yi.source,t.src_P=Jo.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 cu(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function Zr(e){return Object.prototype.toString.call(e)}function ef(e){return Zr(e)==="[object String]"}function tf(e){return Zr(e)==="[object Object]"}function nf(e){return Zr(e)==="[object RegExp]"}function pa(e){return Zr(e)==="[object Function]"}function rf(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const ga={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function of(e){return Object.keys(e||{}).reduce(function(t,n){return t||ga.hasOwnProperty(n)},!1)}const uf={"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}}},af="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]",sf="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function lf(e){e.__index__=-1,e.__text_cache__=""}function cf(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function ba(){return function(e,t){t.normalize(e)}}function Yr(e){const t=e.re=J0(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(af),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 u=[];e.__compiled__={};function o(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,tf(l)){nf(l.validate)?d.validate=cf(l.validate):pa(l.validate)?d.validate=l.validate:o(s,l),pa(l.normalize)?d.normalize=l.normalize:l.normalize?o(s,l):d.normalize=ba();return}if(ef(l)){u.push(s);return}o(s,l)}),u.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:ba()};const a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(rf).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"),lf(e)}function df(e,t){const n=e.__index__,r=e.__last_index__,u=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=u,this.text=u,this.url=u}function du(e,t){const n=new df(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Ke(e,t){if(!(this instanceof Ke))return new Ke(e,t);t||of(e)&&(t=e,e={}),this.__opts__=cu({},ga,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=cu({},uf,e),this.__compiled__={},this.__tlds__=sf,this.__tlds_replaced__=!1,this.re={},Yr(this)}Ke.prototype.add=function(t,n){return this.__schemas__[t]=n,Yr(this),this},Ke.prototype.set=function(t){return this.__opts__=cu(this.__opts__,t),this},Ke.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,u,o,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(o=this.testSchemaAt(t,n[2],l.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;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&&(u=t.match(this.re.email_fuzzy))!==null&&(a=u.index+u[1].length,s=u.index+u[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},Ke.prototype.pretest=function(t){return this.re.pretest.test(t)},Ke.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0},Ke.prototype.match=function(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(du(this,r)),r=this.__last_index__);let u=r?t.slice(r):t;for(;this.test(u);)n.push(du(this,r)),u=u.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null},Ke.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,du(this,0)):null},Ke.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,u,o){return r!==o[u-1]}).reverse(),Yr(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Yr(this),this)},Ke.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},Ke.prototype.onCompile=function(){};const wn=2147483647,_t=36,fu=1,Yn=26,ff=38,hf=700,ya=72,wa=128,xa="-",mf=/^xn--/,pf=/[^\0-\x7F]/,gf=/[\x2E\u3002\uFF0E\uFF61]/g,bf={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},hu=_t-fu,Et=Math.floor,mu=String.fromCharCode;function Ut(e){throw new RangeError(bf[e])}function yf(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function va(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(gf,".");const u=e.split("."),o=yf(u,t).join(".");return r+o}function Aa(e){const t=[];let n=0;const r=e.length;for(;n<r;){const u=e.charCodeAt(n++);if(u>=55296&&u<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((u&1023)<<10)+(o&1023)+65536):(t.push(u),n--)}else t.push(u)}return t}const wf=e=>String.fromCodePoint(...e),xf=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:_t},ka=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Ca=function(e,t,n){let r=0;for(e=n?Et(e/hf):e>>1,e+=Et(e/t);e>hu*Yn>>1;r+=_t)e=Et(e/hu);return Et(r+(hu+1)*e/(e+ff))},_a=function(e){const t=[],n=e.length;let r=0,u=wa,o=ya,a=e.lastIndexOf(xa);a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&Ut("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=_t;;c+=_t){s>=n&&Ut("invalid-input");const h=xf(e.charCodeAt(s++));h>=_t&&Ut("invalid-input"),h>Et((wn-r)/f)&&Ut("overflow"),r+=h*f;const p=c<=o?fu:c>=o+Yn?Yn:c-o;if(h<p)break;const m=_t-p;f>Et(wn/m)&&Ut("overflow"),f*=m}const d=t.length+1;o=Ca(r-l,d,l==0),Et(r/d)>wn-u&&Ut("overflow"),u+=Et(r/d),r%=d,t.splice(r++,0,u)}return String.fromCodePoint(...t)},Ea=function(e){const t=[];e=Aa(e);const n=e.length;let r=wa,u=0,o=ya;for(const l of e)l<128&&t.push(mu(l));const a=t.length;let s=a;for(a&&t.push(xa);s<n;){let l=wn;for(const f of e)f>=r&&f<l&&(l=f);const d=s+1;l-r>Et((wn-u)/d)&&Ut("overflow"),u+=(l-r)*d,r=l;for(const f of e)if(f<r&&++u>wn&&Ut("overflow"),f===r){let c=u;for(let h=_t;;h+=_t){const p=h<=o?fu:h>=o+Yn?Yn:h-o;if(c<p)break;const m=c-p,x=_t-p;t.push(mu(ka(p+m%x,0))),c=Et(m/x)}t.push(mu(ka(c,0))),o=Ca(u,d,s===a),u=0,++s}++u,++r}return t.join("")},Sa={version:"2.3.1",ucs2:{decode:Aa,encode:wf},decode:_a,encode:Ea,toASCII:function(e){return va(e,function(t){return pf.test(t)?"xn--"+Ea(t):t})},toUnicode:function(e){return va(e,function(t){return mf.test(t)?_a(t.slice(4).toLowerCase()):t})}},vf={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"]}}}},Af=/^(vbscript|javascript|file|data):/,kf=/^data:image\/(gif|png|jpeg|webp);/;function Cf(e){const t=e.trim().toLowerCase();return Af.test(t)?kf.test(t):!0}const Fa=["http:","https:","mailto:"];function _f(e){const t=Qo(e,!0);if(t.hostname&&(!t.protocol||Fa.indexOf(t.protocol)>=0))try{t.hostname=Sa.toASCII(t.hostname)}catch{}return Un(Ko(t))}function Ef(e){const t=Qo(e,!0);if(t.hostname&&(!t.protocol||Fa.indexOf(t.protocol)>=0))try{t.hostname=Sa.toUnicode(t.hostname)}catch{}return pn(Ko(t),pn.defaultChars+"%")}function Qe(e,t){if(!(this instanceof Qe))return new Qe(e,t);t||nu(e)||(t=e||{},e="default"),this.inline=new Zn,this.block=new qr,this.core=new uu,this.renderer=new bn,this.linkify=new Ke,this.validateLink=Cf,this.normalizeLink=_f,this.normalizeLinkText=Ef,this.utils=Pd,this.helpers=$r({},zd),this.options={},this.configure(e),t&&this.set(t)}Qe.prototype.set=function(e){return $r(this.options,e),this},Qe.prototype.configure=function(e){const t=this;if(nu(e)){const n=e;if(e=vf[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},Qe.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Qe.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(u){n=n.concat(this[u].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(u){return n.indexOf(u)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Qe.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Qe.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},Qe.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Qe.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Qe.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:Na,setPrototypeOf:Da,isFrozen:Sf,getPrototypeOf:Ff,getOwnPropertyDescriptor:Nf}=Object;let{freeze:je,seal:it,create:Kr}=Object,{apply:pu,construct:gu}=typeof Reflect<"u"&&Reflect;je||(je=function(t){return t}),it||(it=function(t){return t}),pu||(pu=function(t,n){for(var r=arguments.length,u=new Array(r>2?r-2:0),o=2;o<r;o++)u[o-2]=arguments[o];return t.apply(n,u)}),gu||(gu=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];return new t(...r)});const Qr=$e(Array.prototype.forEach),Df=$e(Array.prototype.lastIndexOf),Ta=$e(Array.prototype.pop),Kn=$e(Array.prototype.push),Tf=$e(Array.prototype.splice),Jr=$e(String.prototype.toLowerCase),bu=$e(String.prototype.toString),yu=$e(String.prototype.match),Qn=$e(String.prototype.replace),If=$e(String.prototype.indexOf),Of=$e(String.prototype.trim),Je=$e(Object.prototype.hasOwnProperty),He=$e(RegExp.prototype.test),Jn=Lf(TypeError);function $e(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),u=1;u<n;u++)r[u-1]=arguments[u];return pu(e,t,r)}}function Lf(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gu(e,n)}}function ae(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Jr;Da&&Da(e,null);let r=t.length;for(;r--;){let u=t[r];if(typeof u=="string"){const o=n(u);o!==u&&(Sf(t)||(t[r]=o),u=o)}e[u]=!0}return e}function Vf(e){for(let t=0;t<e.length;t++)Je(e,t)||(e[t]=null);return e}function St(e){const t=Kr(null);for(const[n,r]of Na(e))Je(e,n)&&(Array.isArray(r)?t[n]=Vf(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=St(r):t[n]=r);return t}function er(e,t){for(;e!==null;){const r=Nf(e,t);if(r){if(r.get)return $e(r.get);if(typeof r.value=="function")return $e(r.value)}e=Ff(e)}function n(){return null}return n}const Ia=je(["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"]),wu=je(["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"]),xu=je(["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"]),Pf=je(["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"]),vu=je(["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"]),Rf=je(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Oa=je(["#text"]),La=je(["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"]),Au=je(["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"]),Va=je(["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"]),eo=je(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Mf=it(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Bf=it(/<%[\w\W]*|[\w\W]*%>/gm),zf=it(/\$\{[\w\W]*/gm),jf=it(/^data-[\-\w.\u00B7-\uFFFF]+$/),Hf=it(/^aria-[\-\w]+$/),Pa=it(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$f=it(/^(?:\w+script|data):/i),Uf=it(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ra=it(/^html$/i),Wf=it(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ma=Object.freeze({__proto__:null,ARIA_ATTR:Hf,ATTR_WHITESPACE:Uf,CUSTOM_ELEMENT:Wf,DATA_ATTR:jf,DOCTYPE_NAME:Ra,ERB_EXPR:Bf,IS_ALLOWED_URI:Pa,IS_SCRIPT_OR_DATA:$f,MUSTACHE_EXPR:Mf,TMPLIT_EXPR:zf});const tr={element:1,text:3,progressingInstruction:7,comment:8,document:9},Gf=function(){return typeof window>"u"?null:window},Xf=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const u="data-tt-policy-suffix";n&&n.hasAttribute(u)&&(r=n.getAttribute(u));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},Ba=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function za(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gf();const t=te=>za(te);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==tr.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,u=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:d,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:c,DOMParser:h,trustedTypes:p}=e,m=l.prototype,x=er(m,"cloneNode"),v=er(m,"remove"),y=er(m,"nextSibling"),b=er(m,"childNodes"),g=er(m,"parentNode");if(typeof a=="function"){const te=n.createElement("template");te.content&&te.content.ownerDocument&&(n=te.content.ownerDocument)}let w,k="";const{implementation:N,createNodeIterator:F,createDocumentFragment:S,getElementsByTagName:q}=n,{importNode:H}=r;let z=Ba();t.isSupported=typeof Na=="function"&&typeof g=="function"&&N&&N.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:$,ERB_EXPR:I,TMPLIT_EXPR:G,DATA_ATTR:X,ARIA_ATTR:T,IS_SCRIPT_OR_DATA:j,ATTR_WHITESPACE:B,CUSTOM_ELEMENT:Z}=Ma;let{IS_ALLOWED_URI:ue}=Ma,C=null;const E=ae({},[...Ia,...wu,...xu,...vu,...Oa]);let D=null;const O=ae({},[...La,...Au,...Va,...eo]);let P=Object.seal(Kr(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}})),U=null,L=null;const R=Object.seal(Kr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let M=!0,Q=!0,re=!1,oe=!0,ce=!1,le=!0,he=!1,Be=!1,At=!1,Xe=!1,Rt=!1,fn=!1,Yl=!0,Kl=!1;const x2="user-content-";let ai=!0,Lr=!1,Mn={},Ot=null;const si=ae({},["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 Jl=ae({},["audio","video","img","source","image","track"]);let li=null;const ec=ae({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Mo="http://www.w3.org/1998/Math/MathML",Bo="http://www.w3.org/2000/svg",Mt="http://www.w3.org/1999/xhtml";let Bn=Mt,ci=!1,di=null;const v2=ae({},[Mo,Bo,Mt],bu);let zo=ae({},["mi","mo","mn","ms","mtext"]),jo=ae({},["annotation-xml"]);const A2=ae({},["title","style","font","a","script"]);let Vr=null;const k2=["application/xhtml+xml","text/html"],C2="text/html";let Fe=null,zn=null;const _2=n.createElement("form"),tc=function(_){return _ instanceof RegExp||_ instanceof Function},fi=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(zn&&zn===_)){if((!_||typeof _!="object")&&(_={}),_=St(_),Vr=k2.indexOf(_.PARSER_MEDIA_TYPE)===-1?C2:_.PARSER_MEDIA_TYPE,Fe=Vr==="application/xhtml+xml"?bu:Jr,C=Je(_,"ALLOWED_TAGS")?ae({},_.ALLOWED_TAGS,Fe):E,D=Je(_,"ALLOWED_ATTR")?ae({},_.ALLOWED_ATTR,Fe):O,di=Je(_,"ALLOWED_NAMESPACES")?ae({},_.ALLOWED_NAMESPACES,bu):v2,li=Je(_,"ADD_URI_SAFE_ATTR")?ae(St(ec),_.ADD_URI_SAFE_ATTR,Fe):ec,Ql=Je(_,"ADD_DATA_URI_TAGS")?ae(St(Jl),_.ADD_DATA_URI_TAGS,Fe):Jl,Ot=Je(_,"FORBID_CONTENTS")?ae({},_.FORBID_CONTENTS,Fe):si,U=Je(_,"FORBID_TAGS")?ae({},_.FORBID_TAGS,Fe):St({}),L=Je(_,"FORBID_ATTR")?ae({},_.FORBID_ATTR,Fe):St({}),Mn=Je(_,"USE_PROFILES")?_.USE_PROFILES:!1,M=_.ALLOW_ARIA_ATTR!==!1,Q=_.ALLOW_DATA_ATTR!==!1,re=_.ALLOW_UNKNOWN_PROTOCOLS||!1,oe=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ce=_.SAFE_FOR_TEMPLATES||!1,le=_.SAFE_FOR_XML!==!1,he=_.WHOLE_DOCUMENT||!1,Xe=_.RETURN_DOM||!1,Rt=_.RETURN_DOM_FRAGMENT||!1,fn=_.RETURN_TRUSTED_TYPE||!1,At=_.FORCE_BODY||!1,Yl=_.SANITIZE_DOM!==!1,Kl=_.SANITIZE_NAMED_PROPS||!1,ai=_.KEEP_CONTENT!==!1,Lr=_.IN_PLACE||!1,ue=_.ALLOWED_URI_REGEXP||Pa,Bn=_.NAMESPACE||Mt,zo=_.MATHML_TEXT_INTEGRATION_POINTS||zo,jo=_.HTML_INTEGRATION_POINTS||jo,P=_.CUSTOM_ELEMENT_HANDLING||{},_.CUSTOM_ELEMENT_HANDLING&&tc(_.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(P.tagNameCheck=_.CUSTOM_ELEMENT_HANDLING.tagNameCheck),_.CUSTOM_ELEMENT_HANDLING&&tc(_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(P.attributeNameCheck=_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),_.CUSTOM_ELEMENT_HANDLING&&typeof _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(P.allowCustomizedBuiltInElements=_.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ce&&(Q=!1),Rt&&(Xe=!0),Mn&&(C=ae({},Oa),D=Kr(null),Mn.html===!0&&(ae(C,Ia),ae(D,La)),Mn.svg===!0&&(ae(C,wu),ae(D,Au),ae(D,eo)),Mn.svgFilters===!0&&(ae(C,xu),ae(D,Au),ae(D,eo)),Mn.mathMl===!0&&(ae(C,vu),ae(D,Va),ae(D,eo))),Je(_,"ADD_TAGS")||(R.tagCheck=null),Je(_,"ADD_ATTR")||(R.attributeCheck=null),_.ADD_TAGS&&(typeof _.ADD_TAGS=="function"?R.tagCheck=_.ADD_TAGS:(C===E&&(C=St(C)),ae(C,_.ADD_TAGS,Fe))),_.ADD_ATTR&&(typeof _.ADD_ATTR=="function"?R.attributeCheck=_.ADD_ATTR:(D===O&&(D=St(D)),ae(D,_.ADD_ATTR,Fe))),_.ADD_URI_SAFE_ATTR&&ae(li,_.ADD_URI_SAFE_ATTR,Fe),_.FORBID_CONTENTS&&(Ot===si&&(Ot=St(Ot)),ae(Ot,_.FORBID_CONTENTS,Fe)),_.ADD_FORBID_CONTENTS&&(Ot===si&&(Ot=St(Ot)),ae(Ot,_.ADD_FORBID_CONTENTS,Fe)),ai&&(C["#text"]=!0),he&&ae(C,["html","head","body"]),C.table&&(ae(C,["tbody"]),delete U.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw Jn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Jn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=_.TRUSTED_TYPES_POLICY,k=w.createHTML("")}else w===void 0&&(w=Xf(p,u)),w!==null&&typeof k=="string"&&(k=w.createHTML(""));je&&je(_),zn=_}},nc=ae({},[...wu,...xu,...Pf]),rc=ae({},[...vu,...Rf]),E2=function(_){let W=g(_);(!W||!W.tagName)&&(W={namespaceURI:Bn,tagName:"template"});const ee=Jr(_.tagName),xe=Jr(W.tagName);return di[_.namespaceURI]?_.namespaceURI===Bo?W.namespaceURI===Mt?ee==="svg":W.namespaceURI===Mo?ee==="svg"&&(xe==="annotation-xml"||zo[xe]):!!nc[ee]:_.namespaceURI===Mo?W.namespaceURI===Mt?ee==="math":W.namespaceURI===Bo?ee==="math"&&jo[xe]:!!rc[ee]:_.namespaceURI===Mt?W.namespaceURI===Bo&&!jo[xe]||W.namespaceURI===Mo&&!zo[xe]?!1:!rc[ee]&&(A2[ee]||!nc[ee]):!!(Vr==="application/xhtml+xml"&&di[_.namespaceURI]):!1},Lt=function(_){Kn(t.removed,{element:_});try{g(_).removeChild(_)}catch{v(_)}},hn=function(_,W){try{Kn(t.removed,{attribute:W.getAttributeNode(_),from:W})}catch{Kn(t.removed,{attribute:null,from:W})}if(W.removeAttribute(_),_==="is")if(Xe||Rt)try{Lt(W)}catch{}else try{W.setAttribute(_,"")}catch{}},oc=function(_){let W=null,ee=null;if(At)_="<remove></remove>"+_;else{const _e=yu(_,/^[\r\n\t ]+/);ee=_e&&_e[0]}Vr==="application/xhtml+xml"&&Bn===Mt&&(_='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_+"</body></html>");const xe=w?w.createHTML(_):_;if(Bn===Mt)try{W=new h().parseFromString(xe,Vr)}catch{}if(!W||!W.documentElement){W=N.createDocument(Bn,"template",null);try{W.documentElement.innerHTML=ci?k:xe}catch{}}const ze=W.body||W.documentElement;return _&&ee&&ze.insertBefore(n.createTextNode(ee),ze.childNodes[0]||null),Bn===Mt?q.call(W,he?"html":"body")[0]:he?W.documentElement:ze},uc=function(_){return F.call(_.ownerDocument||_,_,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},hi=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")},ic=function(_){return typeof s=="function"&&_ instanceof s};function Bt(te,_,W){Qr(te,ee=>{ee.call(t,_,W,zn)})}const ac=function(_){let W=null;if(Bt(z.beforeSanitizeElements,_,null),hi(_))return Lt(_),!0;const ee=Fe(_.nodeName);if(Bt(z.uponSanitizeElement,_,{tagName:ee,allowedTags:C}),le&&_.hasChildNodes()&&!ic(_.firstElementChild)&&He(/<[/\w!]/g,_.innerHTML)&&He(/<[/\w!]/g,_.textContent)||_.nodeType===tr.progressingInstruction||le&&_.nodeType===tr.comment&&He(/<[/\w]/g,_.data))return Lt(_),!0;if(!(R.tagCheck instanceof Function&&R.tagCheck(ee))&&(!C[ee]||U[ee])){if(!U[ee]&&lc(ee)&&(P.tagNameCheck instanceof RegExp&&He(P.tagNameCheck,ee)||P.tagNameCheck instanceof Function&&P.tagNameCheck(ee)))return!1;if(ai&&!Ot[ee]){const xe=g(_)||_.parentNode,ze=b(_)||_.childNodes;if(ze&&xe){const _e=ze.length;for(let Ye=_e-1;Ye>=0;--Ye){const zt=x(ze[Ye],!0);zt.__removalCount=(_.__removalCount||0)+1,xe.insertBefore(zt,y(_))}}}return Lt(_),!0}return _ instanceof l&&!E2(_)||(ee==="noscript"||ee==="noembed"||ee==="noframes")&&He(/<\/no(script|embed|frames)/i,_.innerHTML)?(Lt(_),!0):(ce&&_.nodeType===tr.text&&(W=_.textContent,Qr([$,I,G],xe=>{W=Qn(W,xe," ")}),_.textContent!==W&&(Kn(t.removed,{element:_.cloneNode()}),_.textContent=W)),Bt(z.afterSanitizeElements,_,null),!1)},sc=function(_,W,ee){if(L[W]||Yl&&(W==="id"||W==="name")&&(ee in n||ee in _2))return!1;if(!(Q&&!L[W]&&He(X,W))){if(!(M&&He(T,W))){if(!(R.attributeCheck instanceof Function&&R.attributeCheck(W,_))){if(!D[W]||L[W]){if(!(lc(_)&&(P.tagNameCheck instanceof RegExp&&He(P.tagNameCheck,_)||P.tagNameCheck instanceof Function&&P.tagNameCheck(_))&&(P.attributeNameCheck instanceof RegExp&&He(P.attributeNameCheck,W)||P.attributeNameCheck instanceof Function&&P.attributeNameCheck(W,_))||W==="is"&&P.allowCustomizedBuiltInElements&&(P.tagNameCheck instanceof RegExp&&He(P.tagNameCheck,ee)||P.tagNameCheck instanceof Function&&P.tagNameCheck(ee))))return!1}else if(!li[W]){if(!He(ue,Qn(ee,B,""))){if(!((W==="src"||W==="xlink:href"||W==="href")&&_!=="script"&&If(ee,"data:")===0&&Ql[_])){if(!(re&&!He(j,Qn(ee,B,"")))){if(ee)return!1}}}}}}}return!0},lc=function(_){return _!=="annotation-xml"&&yu(_,Z)},cc=function(_){Bt(z.beforeSanitizeAttributes,_,null);const{attributes:W}=_;if(!W||hi(_))return;const ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:D,forceKeepAttr:void 0};let xe=W.length;for(;xe--;){const ze=W[xe],{name:_e,namespaceURI:Ye,value:zt}=ze,jn=Fe(_e),mi=zt;let Ve=_e==="value"?mi:Of(mi);if(ee.attrName=jn,ee.attrValue=Ve,ee.keepAttr=!0,ee.forceKeepAttr=void 0,Bt(z.uponSanitizeAttribute,_,ee),Ve=ee.attrValue,Kl&&(jn==="id"||jn==="name")&&(hn(_e,_),Ve=x2+Ve),le&&He(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ve)){hn(_e,_);continue}if(jn==="attributename"&&yu(Ve,"href")){hn(_e,_);continue}if(ee.forceKeepAttr)continue;if(!ee.keepAttr){hn(_e,_);continue}if(!oe&&He(/\/>/i,Ve)){hn(_e,_);continue}ce&&Qr([$,I,G],fc=>{Ve=Qn(Ve,fc," ")});const dc=Fe(_.nodeName);if(!sc(dc,jn,Ve)){hn(_e,_);continue}if(w&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Ye)switch(p.getAttributeType(dc,jn)){case"TrustedHTML":{Ve=w.createHTML(Ve);break}case"TrustedScriptURL":{Ve=w.createScriptURL(Ve);break}}if(Ve!==mi)try{Ye?_.setAttributeNS(Ye,_e,Ve):_.setAttribute(_e,Ve),hi(_)?Lt(_):Ta(t.removed)}catch{hn(_e,_)}}Bt(z.afterSanitizeAttributes,_,null)},S2=function te(_){let W=null;const ee=uc(_);for(Bt(z.beforeSanitizeShadowDOM,_,null);W=ee.nextNode();)Bt(z.uponSanitizeShadowNode,W,null),ac(W),cc(W),W.content instanceof o&&te(W.content);Bt(z.afterSanitizeShadowDOM,_,null)};return t.sanitize=function(te){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=null,ee=null,xe=null,ze=null;if(ci=!te,ci&&(te="<!-->"),typeof te!="string"&&!ic(te))if(typeof te.toString=="function"){if(te=te.toString(),typeof te!="string")throw Jn("dirty is not a string, aborting")}else throw Jn("toString is not a function");if(!t.isSupported)return te;if(Be||fi(_),t.removed=[],typeof te=="string"&&(Lr=!1),Lr){if(te.nodeName){const zt=Fe(te.nodeName);if(!C[zt]||U[zt])throw Jn("root node is forbidden and cannot be sanitized in-place")}}else if(te instanceof s)W=oc("<!---->"),ee=W.ownerDocument.importNode(te,!0),ee.nodeType===tr.element&&ee.nodeName==="BODY"||ee.nodeName==="HTML"?W=ee:W.appendChild(ee);else{if(!Xe&&!ce&&!he&&te.indexOf("<")===-1)return w&&fn?w.createHTML(te):te;if(W=oc(te),!W)return Xe?null:fn?k:""}W&&At&&Lt(W.firstChild);const _e=uc(Lr?te:W);for(;xe=_e.nextNode();)ac(xe),cc(xe),xe.content instanceof o&&S2(xe.content);if(Lr)return te;if(Xe){if(Rt)for(ze=S.call(W.ownerDocument);W.firstChild;)ze.appendChild(W.firstChild);else ze=W;return(D.shadowroot||D.shadowrootmode)&&(ze=H.call(r,ze,!0)),ze}let Ye=he?W.outerHTML:W.innerHTML;return he&&C["!doctype"]&&W.ownerDocument&&W.ownerDocument.doctype&&W.ownerDocument.doctype.name&&He(Ra,W.ownerDocument.doctype.name)&&(Ye="<!DOCTYPE "+W.ownerDocument.doctype.name+`>
|
|
17
|
+
`+Ye),ce&&Qr([$,I,G],zt=>{Ye=Qn(Ye,zt," ")}),w&&fn?w.createHTML(Ye):Ye},t.setConfig=function(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fi(te),Be=!0},t.clearConfig=function(){zn=null,Be=!1},t.isValidAttribute=function(te,_,W){zn||fi({});const ee=Fe(te),xe=Fe(_);return sc(ee,xe,W)},t.addHook=function(te,_){typeof _=="function"&&Kn(z[te],_)},t.removeHook=function(te,_){if(_!==void 0){const W=Df(z[te],_);return W===-1?void 0:Tf(z[te],W,1)[0]}return Ta(z[te])},t.removeHooks=function(te){z[te]=[]},t.removeAllHooks=function(){z=Ba()},t}var qf=za();const ja={content:{type:Object,required:!0},card:{type:Boolean,default:!0}},Ha=new Qe({html:!0,linkify:!0});Ha.linkify.set({fuzzyLink:!1});function Zf(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
|
|
|
@@ -23,19 +23,19 @@ $3`),t}function Yf(e){if(!e)return e;const t=/\r?\n/.test(e),n=[],r=e.replace(/`
|
|
|
23
23
|
`),n=t.filter(u=>u.trim().length>0);if(n.length===0)return e.trim();const r=Math.min(...n.map(u=>{var o;return(((o=u.match(/^\s*/))==null?void 0:o[0])??"").length}));return t.map(u=>u.slice(r)).join(`
|
|
24
24
|
`).trim()}const xn=i.defineComponent({name:"FXMarkdownMessage",props:ja,setup(e){const t=i.computed(()=>{var a;const n=Yf(((a=e.content)==null?void 0:a.content)??""),r=Zf(n),u=Kf(r);if(!u)return"";const o=Ha.render(u);return qf.sanitize(o,{ADD_TAGS:["style"],ADD_ATTR:["style","align","valign","colspan","rowspan","scope","title"]})});return()=>{var u;const n=(u=e.content)==null?void 0:u.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)])}}});xn.install=e=>{e.component(xn.name,xn)};const Qf=(e,t,n)=>{if(e.type!==Pe.Text)return null;const u=e.raw;if(!u)return null;if(typeof u!="string")return u;if(!u.trim())return null;let o=n.shouldShowMarkdown.value?u:u.replace(/\r\n/g,`
|
|
25
25
|
`).replace(/\r/g,`
|
|
26
|
-
`).replace(/\t/g," ");return n.shouldShowMarkdown.value?i.createVNode(xn,{style:{border:"0px none rgb(51, 51, 51)",borderRadius:0,boxShadow:"none",padding:0},content:{type:"markdown",message:"",content:u}},null):i.createVNode("div",{class:"f-chat-bubble-content-text 00",key:`bubble-text-${t}`},[o])};function Jf(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 eh(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 th=function(){function e(n){var r=this;this._insertTag=function(u){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(u,o),r.tags.push(u)},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(eh(this));var u=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Jf(u);try{o.insertRule(r,o.cssRules.length)}catch{}}else u.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var u;return(u=r.parentNode)==null?void 0:u.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Re="-ms-",to="-moz-",de="-webkit-",$a="comm",ku="rule",Cu="decl",nh="@import",Ua="@keyframes",rh="@layer",oh=Math.abs,no=String.fromCharCode,uh=Object.assign;function ih(e,t){return Le(e,0)^45?(((t<<2^Le(e,0))<<2^Le(e,1))<<2^Le(e,2))<<2^Le(e,3):0}function Wa(e){return e.trim()}function ah(e,t){return(e=t.exec(e))?e[0]:e}function fe(e,t,n){return e.replace(t,n)}function _u(e,t){return e.indexOf(t)}function Le(e,t){return e.charCodeAt(t)|0}function nr(e,t,n){return e.slice(t,n)}function Ft(e){return e.length}function Eu(e){return e.length}function ro(e,t){return t.push(e),e}function sh(e,t){return e.map(t).join("")}var oo=1,vn=1,Ga=0,Ze=0,ke=0,An="";function uo(e,t,n,r,u,o,a){return{value:e,root:t,parent:n,type:r,props:u,children:o,line:oo,column:vn,length:a,return:""}}function rr(e,t){return uh(uo("",null,null,"",null,null,0),e,{length:-e.length},t)}function lh(){return ke}function ch(){return ke=Ze>0?Le(An,--Ze):0,vn--,ke===10&&(vn=1,oo--),ke}function et(){return ke=Ze<Ga?Le(An,Ze++):0,vn++,ke===10&&(vn=1,oo++),ke}function Dt(){return Le(An,Ze)}function io(){return Ze}function or(e,t){return nr(An,e,t)}function ur(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 Xa(e){return oo=vn=1,Ga=Ft(An=e),Ze=0,[]}function qa(e){return An="",e}function ao(e){return Wa(or(Ze-1,Su(e===91?e+2:e===40?e+1:e)))}function dh(e){for(;(ke=Dt())&&ke<33;)et();return ur(e)>2||ur(ke)>3?"":" "}function fh(e,t){for(;--t&&et()&&!(ke<48||ke>102||ke>57&&ke<65||ke>70&&ke<97););return or(e,io()+(t<6&&Dt()==32&&et()==32))}function Su(e){for(;et();)switch(ke){case e:return Ze;case 34:case 39:e!==34&&e!==39&&Su(ke);break;case 40:e===41&&Su(e);break;case 92:et();break}return Ze}function hh(e,t){for(;et()&&e+ke!==57;)if(e+ke===84&&Dt()===47)break;return"/*"+or(t,Ze-1)+"*"+no(e===47?e:et())}function mh(e){for(;!ur(Dt());)et();return or(e,Ze)}function ph(e){return qa(so("",null,null,null,[""],e=Xa(e),0,[0],e))}function so(e,t,n,r,u,o,a,s,l){for(var d=0,f=0,c=a,h=0,p=0,m=0,x=1,v=1,y=1,b=0,g="",w=u,k=o,D=r,F=g;v;)switch(m=b,b=et()){case 40:if(m!=108&&Le(F,c-1)==58){_u(F+=fe(ao(b),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:F+=ao(b);break;case 9:case 10:case 13:case 32:F+=dh(m);break;case 92:F+=fh(io()-1,7);continue;case 47:switch(Dt()){case 42:case 47:ro(gh(hh(et(),io()),t,n),l);break;default:F+="/"}break;case 123*x:s[d++]=Ft(F)*y;case 125*x:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+f:y==-1&&(F=fe(F,/\f/g,"")),p>0&&Ft(F)-c&&ro(p>32?Ya(F+";",r,n,c-1):Ya(fe(F," ","")+";",r,n,c-2),l);break;case 59:F+=";";default:if(ro(D=Za(F,t,n,d,f,u,s,g,w=[],k=[],c),o),b===123)if(f===0)so(F,t,D,D,w,o,c,s,k);else switch(h===99&&Le(F,3)===110?100:h){case 100:case 108:case 109:case 115:so(e,D,D,r&&ro(Za(e,D,D,0,0,u,s,g,u,w=[],c),k),u,k,c,s,r?w:k);break;default:so(F,D,D,D,[""],k,0,s,k)}}d=f=p=0,x=y=1,g=F="",c=a;break;case 58:c=1+Ft(F),p=m;default:if(x<1){if(b==123)--x;else if(b==125&&x++==0&&ch()==125)continue}switch(F+=no(b),b*x){case 38:y=f>0?1:(F+="\f",-1);break;case 44:s[d++]=(Ft(F)-1)*y,y=1;break;case 64:Dt()===45&&(F+=ao(et())),h=Dt(),f=c=Ft(g=F+=mh(io())),b++;break;case 45:m===45&&Ft(F)==2&&(x=0)}}return o}function Za(e,t,n,r,u,o,a,s,l,d,f){for(var c=u-1,h=u===0?o:[""],p=Eu(h),m=0,x=0,v=0;m<r;++m)for(var y=0,b=nr(e,c+1,c=oh(x=a[m])),g=e;y<p;++y)(g=Wa(x>0?h[y]+" "+b:fe(b,/&\f/g,h[y])))&&(l[v++]=g);return uo(e,t,n,u===0?ku:s,l,d,f)}function gh(e,t,n){return uo(e,t,n,$a,no(lh()),nr(e,2,-2),0)}function Ya(e,t,n,r){return uo(e,t,n,Cu,nr(e,0,r),nr(e,r+1,-1),r)}function kn(e,t){for(var n="",r=Eu(e),u=0;u<r;u++)n+=t(e[u],u,e,t)||"";return n}function bh(e,t,n,r){switch(e.type){case rh:if(e.children.length)break;case nh:case Cu:return e.return=e.return||e.value;case $a:return"";case Ua:return e.return=e.value+"{"+kn(e.children,r)+"}";case ku:e.value=e.props.join(",")}return Ft(n=kn(e.children,r))?e.return=e.value+"{"+n+"}":""}function yh(e){var t=Eu(e);return function(n,r,u,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,u,o)||"";return a}}function wh(e){return function(t){t.root||(t=t.return)&&e(t)}}function xh(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var vh=function(t,n,r){for(var u=0,o=0;u=o,o=Dt(),u===38&&o===12&&(n[r]=1),!ur(o);)et();return or(t,Ze)},Ah=function(t,n){var r=-1,u=44;do switch(ur(u)){case 0:u===38&&Dt()===12&&(n[r]=1),t[r]+=vh(Ze-1,n,r);break;case 2:t[r]+=ao(u);break;case 4:if(u===44){t[++r]=Dt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=no(u)}while(u=et());return t},kh=function(t,n){return qa(Ah(Xa(t),n))},Ka=new WeakMap,Ch=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,u=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&&!Ka.get(r))&&!u){Ka.set(t,!0);for(var o=[],a=kh(n,o),s=r.props,l=0,d=0;l<a.length;l++)for(var f=0;f<s.length;f++,d++)t.props[d]=o[l]?a[l].replace(/&\f/g,s[f]):s[f]+" "+a[l]}}},_h=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Qa(e,t){switch(ih(e,t)){case 5103:return de+"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 de+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return de+e+to+e+Re+e+e;case 6828:case 4268:return de+e+Re+e+e;case 6165:return de+e+Re+"flex-"+e+e;case 5187:return de+e+fe(e,/(\w+).+(:[^]+)/,de+"box-$1$2"+Re+"flex-$1$2")+e;case 5443:return de+e+Re+"flex-item-"+fe(e,/flex-|-self/,"")+e;case 4675:return de+e+Re+"flex-line-pack"+fe(e,/align-content|flex-|-self/,"")+e;case 5548:return de+e+Re+fe(e,"shrink","negative")+e;case 5292:return de+e+Re+fe(e,"basis","preferred-size")+e;case 6060:return de+"box-"+fe(e,"-grow","")+de+e+Re+fe(e,"grow","positive")+e;case 4554:return de+fe(e,/([^-])(transform)/g,"$1"+de+"$2")+e;case 6187:return fe(fe(fe(e,/(zoom-|grab)/,de+"$1"),/(image-set)/,de+"$1"),e,"")+e;case 5495:case 3959:return fe(e,/(image-set\([^]*)/,de+"$1$`$1");case 4968:return fe(fe(e,/(.+:)(flex-)?(.*)/,de+"box-pack:$3"+Re+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+de+e+e;case 4095:case 3583:case 4068:case 2532:return fe(e,/(.+)-inline(.+)/,de+"$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(Ft(e)-1-t>6)switch(Le(e,t+1)){case 109:if(Le(e,t+4)!==45)break;case 102:return fe(e,/(.+:)(.+)-([^]+)/,"$1"+de+"$2-$3$1"+to+(Le(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_u(e,"stretch")?Qa(fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Le(e,t+1)!==115)break;case 6444:switch(Le(e,Ft(e)-3-(~_u(e,"!important")&&10))){case 107:return fe(e,":",":"+de)+e;case 101:return fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+de+(Le(e,14)===45?"inline-":"")+"box$3$1"+de+"$2$3$1"+Re+"$2box$3")+e}break;case 5936:switch(Le(e,t+11)){case 114:return de+e+Re+fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return de+e+Re+fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return de+e+Re+fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return de+e+Re+e+e}return e}var Eh=function(t,n,r,u){if(t.length>-1&&!t.return)switch(t.type){case Cu:t.return=Qa(t.value,t.length);break;case Ua:return kn([rr(t,{value:fe(t.value,"@","@"+de)})],u);case ku:if(t.length)return sh(t.props,function(o){switch(ah(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return kn([rr(t,{props:[fe(o,/:(read-\w+)/,":"+to+"$1")]})],u);case"::placeholder":return kn([rr(t,{props:[fe(o,/:(plac\w+)/,":"+de+"input-$1")]}),rr(t,{props:[fe(o,/:(plac\w+)/,":"+to+"$1")]}),rr(t,{props:[fe(o,/:(plac\w+)/,Re+"input-$1")]})],u)}return""})}},Sh=[Eh],Fh=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(x){var v=x.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var u=t.stylisPlugins||Sh,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var v=x.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)o[v[y]]=!0;s.push(x)});var l,d=[Ch,_h];{var f,c=[bh,wh(function(x){f.insert(x)})],h=yh(d.concat(u,c)),p=function(v){return kn(ph(v),h)};l=function(v,y,b,g){f=b,p(v?v+"{"+y.styles+"}":y.styles),g&&(m.inserted[y.name]=!0)}}var m={key:n,sheet:new th({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return m.sheet.hydrate(s),m};function Dh(e){for(var t=0,n,r=0,u=e.length;u>=4;++r,u-=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(u){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 Nh={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},Th=/[A-Z]|^ms/g,Ih=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ja=function(t){return t.charCodeAt(1)===45},es=function(t){return t!=null&&typeof t!="boolean"},Fu=xh(function(e){return Ja(e)?e:e.replace(Th,"-$&").toLowerCase()}),ts=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Ih,function(r,u,o){return Wt={name:u,styles:o,next:Wt},u})}return Nh[t]!==1&&!Ja(t)&&typeof n=="number"&&n!==0?n+"px":n};function lo(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 u=n;if(u.anim===1)return Wt={name:u.name,styles:u.styles,next:Wt},u.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Wt={name:a.name,styles:a.styles,next:Wt},a=a.next;var s=o.styles+";";return s}return Oh(e,t,n)}}var l=n;if(t==null)return l;var d=t[l];return d!==void 0?d:l}function Oh(e,t,n){var r="";if(Array.isArray(n))for(var u=0;u<n.length;u++)r+=lo(e,t,n[u])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?r+=o+"{"+t[s]+"}":es(s)&&(r+=Fu(o)+":"+ts(o,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++)es(a[l])&&(r+=Fu(o)+":"+ts(o,a[l])+";");else{var d=lo(e,t,a);switch(o){case"animation":case"animationName":{r+=Fu(o)+":"+d+";";break}default:r+=o+"{"+d+"}"}}}return r}var ns=/label:\s*([^\s;{]+)\s*(;|$)/g,Wt;function Du(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,u="";Wt=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,u+=lo(n,t,o);else{var a=o;u+=a[0]}for(var s=1;s<e.length;s++)if(u+=lo(n,t,e[s]),r){var l=o;u+=l[s]}ns.lastIndex=0;for(var d="",f;(f=ns.exec(u))!==null;)d+="-"+f[1];var c=Dh(u)+d;return{name:c,styles:u,next:Wt}}function rs(e,t,n){var r="";return n.split(" ").forEach(function(u){e[u]!==void 0?t.push(e[u]+";"):u&&(r+=u+" ")}),r}var Lh=function(t,n,r){var u=t.key+"-"+n.name;t.registered[u]===void 0&&(t.registered[u]=n.styles)},Vh=function(t,n,r){Lh(t,n);var u=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+u:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function os(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function us(e,t,n){var r=[],u=rs(e,r,n);return r.length<2?n:u+t(r)}var Ph=function(t){var n=Fh(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=Du(d,n.registered,void 0);return Vh(n,c),n.key+"-"+c.name},u=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Du(d,n.registered),h="animation-"+c.name;return os(n,{name:c.name,styles:"@keyframes "+h+"{"+c.styles+"}"}),h},o=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Du(d,n.registered);os(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,Rh(d))};return{css:r,cx:a,injectGlobal:o,keyframes:u,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:rs.bind(null,n.registered),merge:us.bind(null,n.registered,r)}},Rh=function e(t){for(var n="",r=0;r<t.length;r++){var u=t[r];if(u!=null){var o=void 0;switch(typeof u){case"boolean":break;case"object":{if(Array.isArray(u))o=e(u);else{o="";for(var a in u)u[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=u}o&&(n&&(n+=" "),n+=o)}}return n},Mh=Ph({key:"css"}),Nu=Mh.css,Bh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var is={exports:{}};/*!
|
|
26
|
+
`).replace(/\t/g," ");return n.shouldShowMarkdown.value?i.createVNode(xn,{style:{border:"0px none rgb(51, 51, 51)",borderRadius:0,boxShadow:"none",padding:0},content:{type:"markdown",message:"",content:u}},null):i.createVNode("div",{class:"f-chat-bubble-content-text 00",key:`bubble-text-${t}`},[o])};function Jf(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 eh(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 th=function(){function e(n){var r=this;this._insertTag=function(u){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(u,o),r.tags.push(u)},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(eh(this));var u=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Jf(u);try{o.insertRule(r,o.cssRules.length)}catch{}}else u.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var u;return(u=r.parentNode)==null?void 0:u.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Re="-ms-",to="-moz-",de="-webkit-",$a="comm",ku="rule",Cu="decl",nh="@import",Ua="@keyframes",rh="@layer",oh=Math.abs,no=String.fromCharCode,uh=Object.assign;function ih(e,t){return Le(e,0)^45?(((t<<2^Le(e,0))<<2^Le(e,1))<<2^Le(e,2))<<2^Le(e,3):0}function Wa(e){return e.trim()}function ah(e,t){return(e=t.exec(e))?e[0]:e}function fe(e,t,n){return e.replace(t,n)}function _u(e,t){return e.indexOf(t)}function Le(e,t){return e.charCodeAt(t)|0}function nr(e,t,n){return e.slice(t,n)}function Ft(e){return e.length}function Eu(e){return e.length}function ro(e,t){return t.push(e),e}function sh(e,t){return e.map(t).join("")}var oo=1,vn=1,Ga=0,Ze=0,ke=0,An="";function uo(e,t,n,r,u,o,a){return{value:e,root:t,parent:n,type:r,props:u,children:o,line:oo,column:vn,length:a,return:""}}function rr(e,t){return uh(uo("",null,null,"",null,null,0),e,{length:-e.length},t)}function lh(){return ke}function ch(){return ke=Ze>0?Le(An,--Ze):0,vn--,ke===10&&(vn=1,oo--),ke}function et(){return ke=Ze<Ga?Le(An,Ze++):0,vn++,ke===10&&(vn=1,oo++),ke}function Nt(){return Le(An,Ze)}function io(){return Ze}function or(e,t){return nr(An,e,t)}function ur(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 Xa(e){return oo=vn=1,Ga=Ft(An=e),Ze=0,[]}function qa(e){return An="",e}function ao(e){return Wa(or(Ze-1,Su(e===91?e+2:e===40?e+1:e)))}function dh(e){for(;(ke=Nt())&&ke<33;)et();return ur(e)>2||ur(ke)>3?"":" "}function fh(e,t){for(;--t&&et()&&!(ke<48||ke>102||ke>57&&ke<65||ke>70&&ke<97););return or(e,io()+(t<6&&Nt()==32&&et()==32))}function Su(e){for(;et();)switch(ke){case e:return Ze;case 34:case 39:e!==34&&e!==39&&Su(ke);break;case 40:e===41&&Su(e);break;case 92:et();break}return Ze}function hh(e,t){for(;et()&&e+ke!==57;)if(e+ke===84&&Nt()===47)break;return"/*"+or(t,Ze-1)+"*"+no(e===47?e:et())}function mh(e){for(;!ur(Nt());)et();return or(e,Ze)}function ph(e){return qa(so("",null,null,null,[""],e=Xa(e),0,[0],e))}function so(e,t,n,r,u,o,a,s,l){for(var d=0,f=0,c=a,h=0,p=0,m=0,x=1,v=1,y=1,b=0,g="",w=u,k=o,N=r,F=g;v;)switch(m=b,b=et()){case 40:if(m!=108&&Le(F,c-1)==58){_u(F+=fe(ao(b),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:F+=ao(b);break;case 9:case 10:case 13:case 32:F+=dh(m);break;case 92:F+=fh(io()-1,7);continue;case 47:switch(Nt()){case 42:case 47:ro(gh(hh(et(),io()),t,n),l);break;default:F+="/"}break;case 123*x:s[d++]=Ft(F)*y;case 125*x:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+f:y==-1&&(F=fe(F,/\f/g,"")),p>0&&Ft(F)-c&&ro(p>32?Ya(F+";",r,n,c-1):Ya(fe(F," ","")+";",r,n,c-2),l);break;case 59:F+=";";default:if(ro(N=Za(F,t,n,d,f,u,s,g,w=[],k=[],c),o),b===123)if(f===0)so(F,t,N,N,w,o,c,s,k);else switch(h===99&&Le(F,3)===110?100:h){case 100:case 108:case 109:case 115:so(e,N,N,r&&ro(Za(e,N,N,0,0,u,s,g,u,w=[],c),k),u,k,c,s,r?w:k);break;default:so(F,N,N,N,[""],k,0,s,k)}}d=f=p=0,x=y=1,g=F="",c=a;break;case 58:c=1+Ft(F),p=m;default:if(x<1){if(b==123)--x;else if(b==125&&x++==0&&ch()==125)continue}switch(F+=no(b),b*x){case 38:y=f>0?1:(F+="\f",-1);break;case 44:s[d++]=(Ft(F)-1)*y,y=1;break;case 64:Nt()===45&&(F+=ao(et())),h=Nt(),f=c=Ft(g=F+=mh(io())),b++;break;case 45:m===45&&Ft(F)==2&&(x=0)}}return o}function Za(e,t,n,r,u,o,a,s,l,d,f){for(var c=u-1,h=u===0?o:[""],p=Eu(h),m=0,x=0,v=0;m<r;++m)for(var y=0,b=nr(e,c+1,c=oh(x=a[m])),g=e;y<p;++y)(g=Wa(x>0?h[y]+" "+b:fe(b,/&\f/g,h[y])))&&(l[v++]=g);return uo(e,t,n,u===0?ku:s,l,d,f)}function gh(e,t,n){return uo(e,t,n,$a,no(lh()),nr(e,2,-2),0)}function Ya(e,t,n,r){return uo(e,t,n,Cu,nr(e,0,r),nr(e,r+1,-1),r)}function kn(e,t){for(var n="",r=Eu(e),u=0;u<r;u++)n+=t(e[u],u,e,t)||"";return n}function bh(e,t,n,r){switch(e.type){case rh:if(e.children.length)break;case nh:case Cu:return e.return=e.return||e.value;case $a:return"";case Ua:return e.return=e.value+"{"+kn(e.children,r)+"}";case ku:e.value=e.props.join(",")}return Ft(n=kn(e.children,r))?e.return=e.value+"{"+n+"}":""}function yh(e){var t=Eu(e);return function(n,r,u,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,u,o)||"";return a}}function wh(e){return function(t){t.root||(t=t.return)&&e(t)}}function xh(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var vh=function(t,n,r){for(var u=0,o=0;u=o,o=Nt(),u===38&&o===12&&(n[r]=1),!ur(o);)et();return or(t,Ze)},Ah=function(t,n){var r=-1,u=44;do switch(ur(u)){case 0:u===38&&Nt()===12&&(n[r]=1),t[r]+=vh(Ze-1,n,r);break;case 2:t[r]+=ao(u);break;case 4:if(u===44){t[++r]=Nt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=no(u)}while(u=et());return t},kh=function(t,n){return qa(Ah(Xa(t),n))},Ka=new WeakMap,Ch=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,u=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&&!Ka.get(r))&&!u){Ka.set(t,!0);for(var o=[],a=kh(n,o),s=r.props,l=0,d=0;l<a.length;l++)for(var f=0;f<s.length;f++,d++)t.props[d]=o[l]?a[l].replace(/&\f/g,s[f]):s[f]+" "+a[l]}}},_h=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Qa(e,t){switch(ih(e,t)){case 5103:return de+"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 de+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return de+e+to+e+Re+e+e;case 6828:case 4268:return de+e+Re+e+e;case 6165:return de+e+Re+"flex-"+e+e;case 5187:return de+e+fe(e,/(\w+).+(:[^]+)/,de+"box-$1$2"+Re+"flex-$1$2")+e;case 5443:return de+e+Re+"flex-item-"+fe(e,/flex-|-self/,"")+e;case 4675:return de+e+Re+"flex-line-pack"+fe(e,/align-content|flex-|-self/,"")+e;case 5548:return de+e+Re+fe(e,"shrink","negative")+e;case 5292:return de+e+Re+fe(e,"basis","preferred-size")+e;case 6060:return de+"box-"+fe(e,"-grow","")+de+e+Re+fe(e,"grow","positive")+e;case 4554:return de+fe(e,/([^-])(transform)/g,"$1"+de+"$2")+e;case 6187:return fe(fe(fe(e,/(zoom-|grab)/,de+"$1"),/(image-set)/,de+"$1"),e,"")+e;case 5495:case 3959:return fe(e,/(image-set\([^]*)/,de+"$1$`$1");case 4968:return fe(fe(e,/(.+:)(flex-)?(.*)/,de+"box-pack:$3"+Re+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+de+e+e;case 4095:case 3583:case 4068:case 2532:return fe(e,/(.+)-inline(.+)/,de+"$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(Ft(e)-1-t>6)switch(Le(e,t+1)){case 109:if(Le(e,t+4)!==45)break;case 102:return fe(e,/(.+:)(.+)-([^]+)/,"$1"+de+"$2-$3$1"+to+(Le(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_u(e,"stretch")?Qa(fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Le(e,t+1)!==115)break;case 6444:switch(Le(e,Ft(e)-3-(~_u(e,"!important")&&10))){case 107:return fe(e,":",":"+de)+e;case 101:return fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+de+(Le(e,14)===45?"inline-":"")+"box$3$1"+de+"$2$3$1"+Re+"$2box$3")+e}break;case 5936:switch(Le(e,t+11)){case 114:return de+e+Re+fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return de+e+Re+fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return de+e+Re+fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return de+e+Re+e+e}return e}var Eh=function(t,n,r,u){if(t.length>-1&&!t.return)switch(t.type){case Cu:t.return=Qa(t.value,t.length);break;case Ua:return kn([rr(t,{value:fe(t.value,"@","@"+de)})],u);case ku:if(t.length)return sh(t.props,function(o){switch(ah(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return kn([rr(t,{props:[fe(o,/:(read-\w+)/,":"+to+"$1")]})],u);case"::placeholder":return kn([rr(t,{props:[fe(o,/:(plac\w+)/,":"+de+"input-$1")]}),rr(t,{props:[fe(o,/:(plac\w+)/,":"+to+"$1")]}),rr(t,{props:[fe(o,/:(plac\w+)/,Re+"input-$1")]})],u)}return""})}},Sh=[Eh],Fh=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(x){var v=x.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var u=t.stylisPlugins||Sh,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var v=x.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)o[v[y]]=!0;s.push(x)});var l,d=[Ch,_h];{var f,c=[bh,wh(function(x){f.insert(x)})],h=yh(d.concat(u,c)),p=function(v){return kn(ph(v),h)};l=function(v,y,b,g){f=b,p(v?v+"{"+y.styles+"}":y.styles),g&&(m.inserted[y.name]=!0)}}var m={key:n,sheet:new th({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return m.sheet.hydrate(s),m};function Nh(e){for(var t=0,n,r=0,u=e.length;u>=4;++r,u-=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(u){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 Dh={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},Th=/[A-Z]|^ms/g,Ih=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ja=function(t){return t.charCodeAt(1)===45},es=function(t){return t!=null&&typeof t!="boolean"},Fu=xh(function(e){return Ja(e)?e:e.replace(Th,"-$&").toLowerCase()}),ts=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Ih,function(r,u,o){return Wt={name:u,styles:o,next:Wt},u})}return Dh[t]!==1&&!Ja(t)&&typeof n=="number"&&n!==0?n+"px":n};function lo(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 u=n;if(u.anim===1)return Wt={name:u.name,styles:u.styles,next:Wt},u.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Wt={name:a.name,styles:a.styles,next:Wt},a=a.next;var s=o.styles+";";return s}return Oh(e,t,n)}}var l=n;if(t==null)return l;var d=t[l];return d!==void 0?d:l}function Oh(e,t,n){var r="";if(Array.isArray(n))for(var u=0;u<n.length;u++)r+=lo(e,t,n[u])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?r+=o+"{"+t[s]+"}":es(s)&&(r+=Fu(o)+":"+ts(o,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++)es(a[l])&&(r+=Fu(o)+":"+ts(o,a[l])+";");else{var d=lo(e,t,a);switch(o){case"animation":case"animationName":{r+=Fu(o)+":"+d+";";break}default:r+=o+"{"+d+"}"}}}return r}var ns=/label:\s*([^\s;{]+)\s*(;|$)/g,Wt;function Nu(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,u="";Wt=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,u+=lo(n,t,o);else{var a=o;u+=a[0]}for(var s=1;s<e.length;s++)if(u+=lo(n,t,e[s]),r){var l=o;u+=l[s]}ns.lastIndex=0;for(var d="",f;(f=ns.exec(u))!==null;)d+="-"+f[1];var c=Nh(u)+d;return{name:c,styles:u,next:Wt}}function rs(e,t,n){var r="";return n.split(" ").forEach(function(u){e[u]!==void 0?t.push(e[u]+";"):u&&(r+=u+" ")}),r}var Lh=function(t,n,r){var u=t.key+"-"+n.name;t.registered[u]===void 0&&(t.registered[u]=n.styles)},Vh=function(t,n,r){Lh(t,n);var u=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+u:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function os(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function us(e,t,n){var r=[],u=rs(e,r,n);return r.length<2?n:u+t(r)}var Ph=function(t){var n=Fh(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=Nu(d,n.registered,void 0);return Vh(n,c),n.key+"-"+c.name},u=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Nu(d,n.registered),h="animation-"+c.name;return os(n,{name:c.name,styles:"@keyframes "+h+"{"+c.styles+"}"}),h},o=function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];var c=Nu(d,n.registered);os(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,Rh(d))};return{css:r,cx:a,injectGlobal:o,keyframes:u,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:rs.bind(null,n.registered),merge:us.bind(null,n.registered,r)}},Rh=function e(t){for(var n="",r=0;r<t.length;r++){var u=t[r];if(u!=null){var o=void 0;switch(typeof u){case"boolean":break;case"object":{if(Array.isArray(u))o=e(u);else{o="";for(var a in u)u[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=u}o&&(n&&(n+=" "),n+=o)}}return n},Mh=Ph({key:"css"}),Du=Mh.css,Bh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var is={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 o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=u(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)t.call(o,s)&&o[s]&&(a=u(a,s));return a}function u(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(is);var jh=is.exports;const Tu=zh(jh),as={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 Hh{constructor(t){ge(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 $h(){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),u=Object.keys(n);if(r.length!==u.length)return!1;for(const o of r)if(!u.includes(o)||!e(t[o],n[o]))return!1;return!0}return{deepEqual:e}}var Iu={exports:{}};(function(e,t){(function(n,r){r(t)})(Bh,function(n){var r=Object.defineProperty,u=Object.defineProperties,o=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,d=(E,
|
|
30
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=u(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)t.call(o,s)&&o[s]&&(a=u(a,s));return a}function u(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(is);var jh=is.exports;const Tu=zh(jh),as={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 Hh{constructor(t){ge(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 $h(){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),u=Object.keys(n);if(r.length!==u.length)return!1;for(const o of r)if(!u.includes(o)||!e(t[o],n[o]))return!1;return!0}return{deepEqual:e}}var Iu={exports:{}};(function(e,t){(function(n,r){r(t)})(Bh,function(n){var r=Object.defineProperty,u=Object.defineProperties,o=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,d=(E,D,O)=>D in E?r(E,D,{enumerable:!0,configurable:!0,writable:!0,value:O}):E[D]=O,f=(E,D)=>{for(var O in D||(D={}))s.call(D,O)&&d(E,O,D[O]);if(a)for(var O of a(D))l.call(D,O)&&d(E,O,D[O]);return E},c=(E,D)=>u(E,o(D)),h=(E,D,O)=>new Promise((P,U)=>{var L=Q=>{try{M(O.next(Q))}catch(re){U(re)}},R=Q=>{try{M(O.throw(Q))}catch(re){U(re)}},M=Q=>Q.done?P(Q.value):Promise.resolve(Q.value).then(L,R);M((O=O.apply(E,D)).next())}),p=(E=>(E[E.NONE=0]="NONE",E[E.LOADING=1]="LOADING",E[E.LOADED=2]="LOADED",E[E.ERROR=3]="ERROR",E))(p||{});class m{constructor(D){this.items={},this.factory=D}getOrCreateItemByURL(D){let O=this.items[D];return O||(O=this.items[D]=this.factory(D)),O}tryGetItemByURL(D){var O;return(O=this.items[D])!=null?O:null}removeItemByURL(D){const O=this.items[D];return O&&(this.items[D]=null,O)}}const x="__RUNTIME_IMPORT__";function v(E,D){var O,P;const U=globalThis,L=(O=U[x])!=null?O:U[x]={};return(P=L[E])!=null?P:L[E]=D()}const y=v("cssCache",()=>new m(E=>({url:E,status:p.NONE,el:null,error:null,reject:null})));function b(E,D,O){const P={handleLoad(){E.removeEventListener("load",P.handleLoad),E.removeEventListener("error",P.handleError),D()},handleError(U){E.removeEventListener("load",P.handleLoad),E.removeEventListener("error",P.handleError),O(U)}};E.addEventListener("load",P.handleLoad),E.addEventListener("error",P.handleError)}function g(E){const D=y.getOrCreateItemByURL(E),{status:O,error:P}=D;return O===p.LOADED?Promise.resolve():O===p.ERROR?Promise.reject(P):O===p.LOADING?new Promise((U,L)=>{const{el:R}=D;b(R,()=>U(),M=>L(M.error))}):(D.status=p.LOADING,new Promise((U,L)=>{const R=document.createElement("link");R.rel="stylesheet",R.href=E,b(R,()=>{D.status=p.LOADED,U()},M=>{const Q=M.error||new Error(`Load css failed. href=${E}`);D.status=p.ERROR,D.error=Q,L(Q)}),D.el=R,R.setAttribute("data-runtime-import-type","css"),document.head.appendChild(R)}))}function w(E){return Promise.all(E.map(D=>g(D))).then(()=>Promise.resolve()).catch(D=>Promise.reject(D))}const k=v("jsCache",()=>new m(E=>({url:E,status:p.NONE,el:null,error:null,reject:null,exportThing:void 0}))),N=globalThis,{define:F}=N,{keys:S}=Object;let q=!1;typeof F<"u"&&!F.runtime_import&&(console.warn("runtime-import should NOT coexist with requiesjs or seajs or any other AMD/CMD loader."),q=!0);const H=v("pendingItemMap",()=>({})),z=function(...E){const D=E.pop(),{currentScript:O}=document;if(!O)throw new Error("currentScript is null.");const{src:P}=O,U=H[P];if(!U)throw new Error(`Can NOT find item, src=${P}`);H[P]=null;try{let L=E[0]||[],R=null;typeof L=="string"&&(R=L,L=E[1]||[]);const M=U.exportThing=(()=>{let Q=!1;const re={};let oe=D(...L.map(ce=>ce==="exports"?(Q=!0,re):N[ce]));return!oe&&Q&&(oe=re),oe})();R&&(N[R]=M),M&&S(M).length===1&&M.default&&(U.exportThing=M.default,U.exportThing.default=M.default)}catch(L){U.status=p.ERROR,L instanceof Error&&(U.error=L),U.reject(L)}},$=()=>{const{currentScript:E}=document;if(E){const{src:D}=E;if(H[D])return!0}return!1};["amd","cmd"].forEach(E=>{Object.defineProperty(z,E,{get:$})}),z.runtime_import=!0;function I(E,D){if(q)throw new Error("runtime-import UMD mode uses window.define, you should NOT have your own window.define.");N.define||(N.define=z),H[E]=D}function G(E){const D=/legao-comp\/(.*)\/[\d.]+\/web.js$/.exec(E),O=window;if(D&&D.length>0){const P=D[1];O.g_config=O.g_config||{},O.g_config.appKey=P}}function X(E,D,O){E.status=p.LOADING,G(D);const{umd:P,crossOrigin:U}=O;return new Promise((L,R)=>{const M=document.createElement("script");if(M.src=D,M.async=!1,M.crossOrigin=U,P){M.setAttribute("data-runtime-import-type","javascript-umd"),E.reject=R;const Q=M.src;I(Q,E)}else M.setAttribute("data-runtime-import-type","javascript");b(M,()=>{E.status=p.LOADED,E.el=null,L(E.exportThing)},Q=>{const re=Q.error||new Error(`Load javascript failed. src=${D}`);E.status=p.ERROR,E.error=re,E.el=null,R(re)}),E.el=M,document.body.appendChild(M)})}function T(E,D){const O=k.getOrCreateItemByURL(E),{status:P,exportThing:U,error:L}=O;if(P===p.LOADED)return Promise.resolve(U);if(P===p.ERROR)return Promise.reject(L);if(P===p.LOADING){const{el:R}=O;return new Promise((M,Q)=>{b(R,()=>M(O.exportThing),re=>Q(re.error))})}return X(O,E,D)}function j(E,D){let O=Promise.resolve();const P=E.length-1,{umd:U}=D;return E.forEach((L,R)=>{const M=U&&R===P;O=O.then(()=>T(L,c(f({},D),{umd:M})))}),O}function B(E){return h(this,null,function*(){const{scripts:D,styles:O}=E;if(O){const{urls:M}=O;yield w(M)}const{dependencies:P=[],entry:U,umd:L=!0,crossOrigin:R="anonymous"}=D;if((U?P.concat([U]):P).length)return yield j(P.concat([U]),{umd:L,crossOrigin:R})})}function Z(E,D){return h(this,null,function*(){const O=D??{};return yield B({scripts:{dependencies:[],entry:E,umd:O.umd,crossOrigin:O.crossOrigin}})})}function ue(E){return h(this,null,function*(){return yield B({scripts:{dependencies:[],entry:""},styles:{urls:[E]}})})}const C=B;n.importComponent=B,n.importModule=C,n.importScript=Z,n.importStyle=ue,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(Iu,Iu.exports);var Uh=Iu.exports;function Wh(){async function e(t){return await Uh.importScript(t)}return{loadWidgetAPI:e}}const Cn=i.defineComponent({name:"FXWidgetContainer",props:as,setup(e,t){const{loadWidgetAPI:n}=Wh(),{deepEqual:r}=$h(),u=i.ref(null),o=i.ref(null),a=i.ref(null),s=i.ref(null),l=i.ref(null),d=i.computed(()=>{const b=Du`width:100%!important`;return Tu("caf-assistant-widget-container__root",b,e.className)}),f=Du`
|
|
31
31
|
overflow: hidden;
|
|
32
|
-
`,c=Tu("caf-assistant-widget-container__inner",f),h=i.computed(()=>{const b=
|
|
32
|
+
`,c=Tu("caf-assistant-widget-container__inner",f),h=i.computed(()=>{const b=Du`
|
|
33
33
|
display: ${l.value?"block":"none"};
|
|
34
|
-
`;return Tu("caf-assistant-widget-container__error",b)}),p=()=>{const b=a.value;b&&(s.value=new Hh(b))},m=()=>{const b=s.value;b&&(b.dispose(),s.value=null)},x=()=>{const b=o.value,g=u.value;b&&(b.unmount(),b.dispose()),g&&g.cleanup(),o.value=null,u.value=null},v=async()=>{const b=await n(e.widgetAPIURL);if(!b)throw new Error("Failed to load widget API");await b.initialize();const g=b.createWidget();u.value=b,o.value=g},y=b=>{console.error(b),l.value=b};return i.watch(()=>e.widgetAPIURL,async()=>{if(a.value)try{x(),await v();const b=a.value,g=o.value;g==null||g.updateOptions(e.widgetOptions),g==null||g.updateData(e.widgetData),b&&g&&await g.mount(b)}catch(b){y(b)}}),i.watch(()=>e.widgetOptions,(b,g)=>{try{const w=o.value;w&&(!g||!r(g,b))&&w.updateOptions(b)}catch(w){y(w)}}),i.watch(()=>e.widgetData,(b,g)=>{try{const w=o.value;w&&(!g||!r(g,b))&&w.updateData(b)}catch(w){y(w)}}),i.onMounted(async()=>{try{const b=a.value;if(b){p();const g=s.value;if(g){await v();const w=o.value;w&&(w.updateOptions(e.widgetOptions),w.updateData(e.widgetData),w.mount(g.getElement()),i.nextTick(()=>{b.parentElement&&(b.style.width="100%")}))}}}catch(b){y(b)}}),i.onBeforeUnmount(async()=>{try{x(),m()}catch(b){console.error(b)}}),()=>i.createVNode("div",{class:d.value},[i.createVNode("div",{ref:a,class:c},null),i.createVNode("div",{class:h.value},null)])}}),ss=(e,t)=>{var n;if(e.type===Pe.AssistantWidgetComplete){const r=e;return r.widgetUrl?i.createVNode(Cn,{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===Pe.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},Gh=3e4,ls=8e3,Ue=new Map,ft=new Map,ir=new Map,Nt=[];function Te(e){return String(e??"").replace(/^\ufeff/,"").replace(/[\u200b\u200c\u200d]/g,"").replace(/\u00a0/g," ").trim()}function co(e){const t=Te(e);if(t)for(let n=Nt.length-1;n>=0;n--)Nt[n]===t&&Nt.splice(n,1)}function Xh(e){typeof window>"u"||(window.__fluens_dynamic_component_bootstrap_instance_id=e)}function fo(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 qh(){return Nt[Nt.length-1]||void 0}function ho(e,t){const n=Te(t);return n?Te(e.instanceId)===n||e.componentId!=null&&Te(String(e.componentId))===n||e.name!=null&&Te(String(e.name))===n:!1}function Ou(e){const t=Te(e);if(!t)return null;const n=Ue.get(t);if(n)return{canonicalKey:t,entry:n};for(const[u,o]of Ue.entries())if(Te(u)===t)return{canonicalKey:u,entry:o};const r=[];for(const[u,o]of Ue.entries())ho(o.config,t)&&r.push({key:u,entry:o});if(r.length===1){const{key:u,entry:o}=r[0];return u!==t&&console.warn(`[DynamicComponent] register id "${t}" resolved to pending instanceId "${u}" (alias match)`),{canonicalKey:u,entry:o}}if(r.length>1)return console.warn(`[DynamicComponent] register id "${t}" is ambiguous (${r.length} pending matches); refusing`),null;if(Ue.size===1){const[u,o]=[...Ue.entries()][0];return console.warn(`[DynamicComponent] register id "${t}" unmatched; using sole pending instance "${u}"`),{canonicalKey:u,entry:o}}return null}function cs(e,t){for(const[n,r]of ft){const u=Te(n),o=e!==""&&u===e,a=String(t??"").trim(),s=e&&ho(r.config,e)||a&&ho(r.config,a);if(o||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 Lu(){return{pendingKeys:[...Ue.keys()],bootstrapQueue:[...Nt],activeKeys:[...ft.keys()],...typeof window<"u"?{windowBootstrapPeek:window.__fluens_dynamic_component_bootstrap_instance_id}:{}}}function Zh(e){console.warn("[DynamicComponent] register diagnostics",{claimedNormalized:e,...Lu()})}function Yh(e){const t=Te(e);if(t){if(cs(t,e))return{ok:!1,reason:"already_active_duplicate"};const r=Ou(t);if(r)return{ok:!0,...r}}else if(cs("",e))return{ok:!1,reason:"already_active_duplicate"};for(let n=0;n<Nt.length;n++){const r=Nt[n],u=Ou(r);if(u)return Nt.splice(n,1),t&&Te(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,...u}}return{ok:!1,reason:"no_pending"}}function ds(e){const t=Te(e);if(!t)return null;const n=ft.get(t);if(n)return n;for(const[o,a]of ft.entries())if(Te(o)===t)return a;const r=[];for(const o of ft.values())ho(o.config,t)&&r.push(o);const u=[...new Map(r.map(o=>[o.config.instanceId,o])).values()];return u.length===1?(u[0].config.instanceId!==t&&console.warn(`[DynamicComponent] assistant post id "${t}" resolved to instanceId "${u[0].config.instanceId}" (alias match)`),u[0]):(u.length>1&&console.warn(`[DynamicComponent] assistant post id "${t}" is ambiguous (${u.length} active matches)`),null)}function Kh(e){const t=Te(e);if(!t)return null;const n=ft.get(t);if(n)return n;for(const[r,u]of ft.entries())if(Te(r)===t)return u;return null}function Qh(e){const t=Te(e);if(!t)return t;const n=ds(t);if(n)return n.config.instanceId;const r=Ou(t);return r?r.canonicalKey:t}function Vu(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e}}}function fs(e,t){if(typeof e.onAssistantMessage!="function")return!0;try{return e.onAssistantMessage(Vu(t)),!0}catch(n){return console.warn("[DynamicComponent] onAssistantMessage failed",n),!1}}function Jh(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 hs(e){const t=ft.get(e.instanceId);if(t)return Promise.resolve(t.api);const n=Ue.get(e.instanceId);if(n)return new Promise((u,o)=>{const a=n.resolve,s=n.reject;n.resolve=l=>{a(l),u(l)},n.reject=l=>{s(l),o(l)}});if((e.name||e.componentId)&&!e.jsUrl)return Promise.reject(new Error(`Dynamic component resource is empty: ${e.name||e.componentId}`));const r=Jh(e);return new Promise((u,o)=>{const a={config:e,container:r,resolve:u,reject:o,timeoutId:0},s=setTimeout(()=>{a.postLoadRegisterCheckTimerId!=null&&(clearTimeout(a.postLoadRegisterCheckTimerId),a.postLoadRegisterCheckTimerId=void 0),Ue.delete(e.instanceId),co(e.instanceId),fo(e.instanceId),o(new Error(`Dynamic component script load timeout: ${e.name||e.componentId}`))},Gh);a.timeoutId=s,Ue.set(e.instanceId,a),Nt.push(e.instanceId),Xh(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,Ue.has(e.instanceId)&&(clearTimeout(s),Ue.delete(e.instanceId),co(e.instanceId),fo(e.instanceId),o(new Error(`Dynamic component did not call __fluens_dynamic_component_register within ${ls}ms after load: ${e.name||e.componentId}`)))},ls)},l.onerror=()=>{clearTimeout(s),a.postLoadRegisterCheckTimerId!=null&&(clearTimeout(a.postLoadRegisterCheckTimerId),a.postLoadRegisterCheckTimerId=void 0),Ue.delete(e.instanceId),co(e.instanceId),fo(e.instanceId),o(new Error(`Failed to load dynamic component: ${e.name||e.componentId}`))},document.head.appendChild(l)})}function ms(e){var u;const t=ft.get(e);if(t){try{t.api.unmount()}catch{}(u=t.scriptElement)==null||u.remove(),ft.delete(e)}const n=Ue.get(e);n&&(n.postLoadRegisterCheckTimerId!=null&&(clearTimeout(n.postLoadRegisterCheckTimerId),n.postLoadRegisterCheckTimerId=void 0),clearTimeout(n.timeoutId),Ue.delete(e)),ir.delete(e);const r=document.getElementById(`fluens-dynamic-component-${e}`);r&&r.remove()}function em(e,t){const n=Te(e);if(!n)return!1;const r=ds(n);if(r)return fs(r.api,t);const u=Qh(n),o=ir.get(u)??[],a=o.findIndex(s=>s.messageId===t.messageId);return a>=0?o[a]=Vu(t):o.push(Vu(t)),ir.set(u,o),!1}typeof window<"u"&&(window.__fluens_get_dynamic_component_registry_debug_snapshot=Lu,window.__fluens_dynamic_component_register=function(e,t){const n=Te(e),r=Yh(e);if(!r.ok){if(r.reason==="already_active_duplicate")return;Zh(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:u,entry:o}=r;co(u),fo(u),o.postLoadRegisterCheckTimerId!=null&&(clearTimeout(o.postLoadRegisterCheckTimerId),o.postLoadRegisterCheckTimerId=void 0),clearTimeout(o.timeoutId),Ue.delete(u);const a={config:o.config,container:o.container,api:t,scriptElement:document.currentScript};ft.set(u,a),a.container.parentElement;try{t.mount(o.container,o.config)}catch(l){console.error(`Failed to mount dynamic component: ${u}`,l)}const s=[u];n&&n!==u&&s.push(n);for(const l of s){const d=ir.get(l);d&&d.length>0&&(ir.delete(l),d.forEach(f=>fs(t,f)))}o.resolve(t)});const _n=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}`),u=i.computed(()=>e.config.position==="inline"),o=i.computed(()=>!e.config.jsUrl&&!!e.config.url),a=i.computed(()=>({...u.value?{width:"fit-content",maxWidth:"100%"}:{width:"100%"},height:"auto",...t.value==="ready"&&u.value?{padding:"16px 0"}:{},...t.value==="ready"&&!u.value?{height:"100%",overflow:"hidden"}:{}}));return i.onMounted(()=>{o.value||(t.value="loading",n.value="",hs(e.config).then(()=>{t.value="ready"}).catch(s=>{t.value="error",n.value=s.message||"Unknown error"}))}),i.onUnmounted(()=>{o.value||ms(e.config.instanceId)}),()=>o.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])])])}}),ps=(e,t,n)=>{if(e.type===Pe.DynamicComponentComplete){const r=e;if(!r.config)return null;if(r.config.position==="inline")return i.createVNode(_n,{key:`dc-${t}`,config:r.config},null);const u={type:"file",fileContent:{type:"md",name:r.config.title}},o={onPreviewFile:a=>{n.emit("showDynamicComponent",r.config)}};return n.emitDynamicComponentsDetectedOnce(r.config),i.createVNode("div",{style:{padding:"16px 0"}},[n.renderFileEmbeddedContent(u,o)])}return e.type===Pe.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 tm(){return{[Pe.Text]:Qf,[Pe.AssistantWidgetComplete]:ss,[Pe.AssistantWidgetPending]:ss,[Pe.DynamicComponentComplete]:ps,[Pe.DynamicComponentPending]:ps}}const nm=i.defineComponent({name:"FXBubbleTextContent",props:Nc,emits:["dynamicComponentsDetected","showDynamicComponent"],setup(e,t){const{renderFileEmbeddedContent:n}=Ii(),{propertyStates:r,registerProperty:u,updatePropertyValue:o,startStreaming:a}=zr();u("title",e.title??""),u("subtitle",e.subtitle??""),u("text",e.text??""),i.watch([()=>e.title,()=>e.subtitle,()=>e.text],([y,b,g])=>{o("title",y??""),o("subtitle",b??""),o("text",g??"")});const s=i.computed(()=>e.textFormat==="markdown"),l=i.ref(!1),d=i.computed(()=>{var y,b,g;return l.value?{title:((y=r.title)==null?void 0:y.displayedValue)??"",subtitle:((b=r.subtitle)==null?void 0:b.displayedValue)??"",text:((g=r.text)==null?void 0:g.displayedValue)??""}:{title:e.title,subtitle:e.subtitle,text:e.text}}),f=i.computed(()=>Yc(d.value.text)),c=new Set;function h(y){const b=String(y.instanceId??"").trim();!b||c.has(b)||(c.add(b),i.nextTick(()=>{var g;t.emit("dynamicComponentsDetected",[y]),(g=e.onDynamicComponentsDetected)==null||g.call(e,[y])}))}function p(y,...b){var g;t.emit(y,...b),y==="showDynamicComponent"&&((g=e.onShowDynamicComponent)==null||g.call(e,b[0]))}const m={shouldShowMarkdown:s,emit:p,emitDynamicComponentsDetectedOnce:h,renderFileEmbeddedContent:n},x=tm(),v=()=>f.value.length===0?null:i.createVNode("div",{class:"f-chat-bubble-text-collection"},[f.value.map((y,b)=>{var g;return(g=x[y.type])==null?void 0:g.call(x,y,b,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]),v()])}}),rm={content:{type:Object},outputMode:{type:String,default:"full"}},om=i.defineComponent({name:"FXBubbleThink",props:rm,setup(e,t){var q;const{propertyStates:n,registerProperty:r,updatePropertyValue:u,isAllDone:o}=zr(),{elapsedSeconds:a,hasEverStarted:s,start:l,stop:d,reset:f}=Xo(),c=i.ref(((q=e.content)==null?void 0:q.completed)!==!0),h=i.ref(null),p=i.ref(null),m=i.ref(!1),x=i.ref(!1),v=i.computed(()=>e.outputMode==="streaming"),y=i.computed(()=>{var H;return(H=e.content)==null?void 0:H.completed}),b=i.computed(()=>{var z,$;if(y.value){const I=s.value?`(用时${a.value}秒)`:"";return((z=e.content)==null?void 0:z.title)??"思考完成"+I}return(($=e.content)==null?void 0:$.title)??"正在思考......"}),g=i.computed(()=>{var H,z;return v.value?((H=n.content)==null?void 0:H.displayedValue)??"":((z=e.content)==null?void 0:z.content)??""}),w=i.computed(()=>({"f-chat-bubble-thinking":!0,"is-pending":!y.value,"is-completed":y.value})),k=()=>{const H=h.value;if(!H||!m.value){x.value=!1;return}x.value=H.scrollTop>0};i.watch(()=>y.value,H=>{H?d():l()},{immediate:!0}),i.watch(()=>y.value,H=>{H&&(c.value=!1)}),i.watch(()=>e.content,H=>{H&&(n.content?u("content",H.content??""):r("content",H.content??""))},{immediate:!0}),i.watch(g,async()=>{if(c.value){await i.nextTick();const H=h.value;if(!H)return;await i.nextTick(),m.value=H.scrollHeight>H.clientHeight,m.value?(H.scrollTop=H.scrollHeight,x.value=!0):x.value=!1}},{immediate:!0}),i.watch(c,async H=>{if(H){await i.nextTick();const z=h.value;if(!z)return;await i.nextTick(),m.value=z.scrollHeight>z.clientHeight,m.value?(z.scrollTop=z.scrollHeight,x.value=!0):x.value=!1}}),i.onUnmounted(()=>{f()}),t.expose({instance:{get loadDone(){return e.content?(v.value?o.value:!0)&&y.value:!0}}});const D=()=>{c.value=!c.value},F=()=>y.value?null:i.createVNode(tn,{status:"Working",variant:"thinking"},null),S=()=>!g.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&&x.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:g.value},null)])])]);return()=>i.createVNode("div",{class:w.value},[i.createVNode("div",{class:"f-chat-bubble-thinking-header",onClick:D},[F(),i.createVNode("span",{class:"f-chat-bubble-thinking-title",innerHTML:b.value},null),g.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)]),S()])}}),um={content:{type:Object}},gs={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},theme:{type:String,default:"default"},title:{type:String},visible:{type:Boolean,default:!1},zIndex:{type:Number,default:-1},limitContentBySpace:{type:Boolean,default:!1},beforeClose:{type:Function}};function im(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),u=i.computed(()=>t==="body"?0:t?t.getBoundingClientRect().left:0),o=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:u,hostTop:n,hostWidth:o,hostHeight:a,hostBottom:r}}function am(e,t,n,r){const u=i.ref(e.offsetX||0),o=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),x=i.computed(()=>document.documentElement.scrollTop),{hostLeft:v,hostTop:y,hostWidth:b,hostHeight:g,hostBottom:w}=r;i.watch(()=>e.offsetX,L=>{u.value=L});const k=i.computed(()=>{const L={left:`${h.value}px`,top:`${p.value}px`,transform:`translate(${u.value}px, ${o.value}px)`};return e.zIndex!==-1&&(L["z-index"]=e.zIndex),e.fitContent?e.keepWidthWithReference&&n.value&&a.value>=n.value.getBoundingClientRect().width&&(L.width=`${a.value}px`):a.value!==-1&&(L.width=`${a.value}px`),e.minWidth!==-1&&(L.minWidth=`${e.minWidth}px`),e.customStyles&&Object.assign(L,e.customStyles),s.value>0&&(L.maxHeight=s.value+"px"),L}),D=i.computed(()=>({left:`${c.value}px`,transform:`translateX(${e.arrowOffsetX}px)`}));function F(L){if(L&&e.keepWidthWithReference){const R=L.getBoundingClientRect();a.value=Math.max(e.minWidth,R.width)}}function S(L,R){const M=b.value-L.width-4;return M>0?M:R}function q(L,R){const M=g.value-L.height-12;return M>0?M:R}function H(L,R,M){const Q=c.value,re=R.left-v.value+R.width/2+m.value,oe=R.top-y.value-(L.height+M.height)+x.value;return{popoverLeft:re,popoverTop:oe,arrowLeft:Q}}function z(L,R,M){const Q=R.top-y.value+(R.height+M.height)+x.value,re=q(L,Q);return Math.min(Q,re)}function $(L,R){const M=S(R,L),Q=L<=M?c.value:L-M;return{popoverLeft:Math.min(L,M),arrowLeft:Q,maxHeight:0}}function I(L,R){const M=S(R,L),Q=L<=M?c.value:L-M;return{popoverLeft:L,arrowLeft:Q,maxHeight:0}}function G(L,R,M){const Q=R.left-v.value+m.value,{arrowLeft:re,popoverLeft:oe}=I(Q,L),{popoverTop:ce}=H(L,R,M);return{popoverLeft:oe,popoverTop:ce,arrowLeft:re,maxHeight:0}}function X(L,R,M){const Q=R.left-v.value+R.width/2-(M.width/2-(L.left-v.value))+m.value,{arrowLeft:re,popoverLeft:oe}=$(Q,L),ce=z(L,R,M);return{popoverLeft:oe,popoverTop:ce,arrowLeft:re,maxHeight:0}}function T(L,R,M){const Q=R.left-v.value+m.value,{arrowLeft:re,popoverLeft:oe}=$(Q,L),ce=z(L,R,M);return{popoverLeft:oe,popoverTop:ce,arrowLeft:re,maxHeight:0}}function j(L,R,M){const Q=R.right-v.value-L.width+m.value,oe=Math.max(Q,4),ce=oe-Q,le=L.width-M.width-20-ce,he=z(L,R,M);return{popoverLeft:oe,popoverTop:he,arrowLeft:le,maxHeight:0}}function B(L,R,M){const Q=R.left-v.value;let re=0,oe=0,ce=0,le=0,he="bottom-left";window.innerWidth-Q>L.width?re=Q+m.value:(re=R.right-L.width+m.value,ce=L.width-M.width-20);let Be=0;if(e.limitContentBySpace){const fn={topHeight:R.top-y.value-M.height-8,bottomHeight:w.value-R.bottom-M.height-8};Be=Math.max(fn.topHeight,fn.bottomHeight),L.height>Be&&(le=Be,n.value.classList.add("popover-limitmax"))}const At=le?Math.floor(le):L.height,Xe=R.top-y.value+(R.height+M.height);return w.value-Xe>At?oe=Xe+x.value:(oe=R.top-At-M.height+x.value,w.value-Xe>R.top?(oe=Xe+x.value,At>R.top&&(oe=w.value-At)):(oe=oe<0?0:oe,he="top")),n.value.classList.add("popover-"+he,"bs-popover-"+he),{popoverLeft:re<0?5:re,popoverTop:oe,arrowLeft:ce,maxHeight:le}}function Z(L,R,M){const Q=R.left+R.width,re=0;let oe=0,ce=L.height;if(e.limitContentBySpace){const Rt=g.value-16-Math.abs(o.value);L.height>Rt?(oe=Rt,ce=Rt,n.value.classList.add("popover-limitmax")):n.value.classList.remove("popover-limitmax")}const le=Math.max(R.top-(ce/2-R.height/2),y.value);let he=y.value+g.value-ce-o.value;he<0&&(he=le);const Be=Math.min(le,he);return{popoverLeft:Q,popoverTop:Be,arrowLeft:re,maxHeight:oe}}function ue(L,R,M){const Q=R.left+R.width,re=Math.max(R.top-R.height,y.value);let oe=y.value+g.value-L.height;oe<0&&(oe=re);const ce=Math.min(re,oe);return{popoverLeft:Q,popoverTop:ce,arrowLeft:0,maxHeight:0}}function C(L,R,M){const Q=R.left-v.value+R.width/2-L.width/2+m.value,re=R.top-y.value-(L.height+M.height)+x.value,oe=L.width/2-M.width/2;return{popoverLeft:Q,popoverTop:re,arrowLeft:oe,maxHeight:0}}function E(L,R,M){const Q=R.left-v.value+R.width/2-L.width/2+m.value,re=z(L,R,M),oe=L.width/2-M.width/2;return{popoverLeft:Q,popoverTop:re,arrowLeft:oe,maxHeight:0}}const N=new Map([["top",H],["top-left",G],["top-center",C],["bottom",X],["bottom-left",T],["bottom-right",j],["bottom-center",E],["right",Z],["right-top",ue],["auto",B]]);function O(L){var oe;e.keepWidthWithReference&&F(L);const R=L.getBoundingClientRect();l.value=R.top,d.value=R.left;const M=t.value?t.value.getBoundingClientRect():{height:4,width:4},Q=(oe=n.value)==null?void 0:oe.getBoundingClientRect();a.value=Q.width;const re=N.get(f.value);if(re){const{arrowLeft:ce,popoverLeft:le,popoverTop:he,maxHeight:Be}=re(Q,R,M);c.value=ce,h.value=le,p.value=he,s.value=Be||-1}}function P(L){if(L){const R=L.getBoundingClientRect();(R.left!==d.value||R.top!==l.value)&&O(L)}}function U(){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:F,followToReferencePosition:P,locateToReference:O,resetPosition:U}}function sm(e,t,n,r,u,o,a){const s=i.ref(e.visible),l=i.computed(()=>s.value),{fitToReference:d,locateToReference:f,resetPosition:c}=a;i.watch(()=>e.visible,async x=>{x&&e.reference?(await i.nextTick(),m(e.reference)):x||p()},{flush:"post"});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=x=>{var b;if(!u.value)return;const v=u.value.contains(x.target);if(x.type==="scroll"||x.type==="wheel"&&v){p();return}if(x.target.closest(".time-picker-panel"))return;const y=(b=x.target)==null?void 0:b.closest(".popover");if(y&&r.value&&y===r.value){x.type!=="scroll"&&x.type!=="wheel"&&x.stopPropagation();return}if(!v&&s.value){const g=u.value.closest(".popover");g&&g.removeEventListener("click",h),p()}};async function m(x){if(r.value&&(e.showArrow===!1||e.showArrow&&n.value)&&x){c(),s.value=!0,u.value=x,o.value&&d(x),await i.nextTick(),f(x),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 v=x.closest(".popover");v&&v.addEventListener("click",h),t.emit("shown")}}return t.expose({hide:p,popoverRef:r,show:m,shown:l,isShow:s}),{showPopover:s,hidePopverOnClickBodyHandler:h}}function lm(e,t,n,r,u,o){const{popoverWidth:a,fitToReference:s,followToReferencePosition:l}=u;function d(){var f;if(o.value&&((f=o.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 cm(e,t=500){const n=i.ref(e.value);let r;const u=i.watch(e,a=>{clearTimeout(r),r=setTimeout(()=>{n.value=a},t)}),o=()=>{clearTimeout(r),u()};return i.onUnmounted(o),{delayedValue:n,cleanup:o}}const nn=i.defineComponent({name:"FXPopover",props:gs,emits:["shown","hidden"],setup(e,t){const n=i.ref(),r=i.ref(),u=i.ref(e.reference),o=i.ref(e.keepWidthWithReference),a=i.computed(()=>!!e.title),s=im(e),{host:l}=s,d=am(e,n,r,s),{position:f,arrowStyle:c,popoverStyle:h,fitToReference:p,locateToReference:m}=d,{showPopover:x,hidePopverOnClickBodyHandler:v}=sm(e,t,n,r,u,o,d),{onResize:y}=lm(e,t,u,o,d,r),b=i.computed(()=>{let F=f.value;const S=`popover in popover-${F}`,q=`bs-popover-${F}`,H={"popover-fitcontent":e.fitContent,fade:!0};H[S]=!0,H[q]=!0,e.theme==="dark"&&(H["popover-theme-dark"]=!0);const z=(e.class||"").split(" ");return e.isSimpleTips&&z.unshift("popover-tips"),z.reduce(($,I)=>($[I]=!0,$),H),H}),g=i.computed(()=>({"popover-content":!0,"popover-body":!0})),w=i.computed(()=>{const F={};return F.opacity=x.value?1:0,F.visibility=x.value?"visible":"hidden",F.zIndex=1060,F}),k=i.computed(()=>e.isSimpleTips?!0:e.showArrow),{delayedValue:D}=cm(w,50);return i.onMounted(()=>{var F;o.value&&p(u.value),e.reference&&m(u.value),window.addEventListener("resize",y),(F=r.value)==null||F.focus()}),i.onUnmounted(()=>{document.body.removeEventListener("click",v),window.removeEventListener("resize",y),x.value=!1}),()=>i.createVNode(i.Teleport,{to:l},{default:()=>{var F;return[i.withDirectives(i.createVNode("div",{tabindex:"-1",ref:r,class:b.value,style:{...h.value,...D.value},onMousedown:S=>{S.stopPropagation()},onClick:S=>{S.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:g.value},[t.slots.default&&((F=t.slots)==null?void 0:F.default())])]),[[i.vShow,x.value]])]}})}}),mo="FarrisX_PopoverInstancesKey";window[mo]=window[mo]||new WeakMap;function Pu(e,t,n){e.stopPropagation();const r=t.value;r&&r.value&&!r.value.isShow&&(r.value.show(n),window[mo].set(n,r.value))}function bs(e,t,n){e.stopPropagation(),t.value.value.hide(),window[mo].delete(n)}function dm(e,t,n){e.stopPropagation();const r=t.value;r&&r.value&&(r.value.isShow?bs(e,t,n):Pu(e,t,n))}function ys(e,t,n){t.arg&&t.arg==="toggle"?dm(e,t,n):Pu(e,t,n)}const ws={mounted:(e,t,n)=>{t.modifiers.hover?(e.addEventListener("mouseenter",r=>Pu(r,t,e)),e.addEventListener("mouseleave",r=>bs(r,t,e))):t.modifiers.click?e.addEventListener("click",r=>ys(r,t,e)):e.addEventListener("click",r=>ys(r,t,e)),e.classList.add("v-popover")},unMounted:(e,t,n)=>{}};nn.install=e=>{e.component(nn.name,nn),e.directive("fxpopover",ws)};const xs={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}},vs={items:{type:Array,default:()=>[]}},As={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"}},po=i.defineComponent({name:"FXTodoListItemView",props:As,emits:["click"],setup(e,{emit:t}){const{propertyStates:n,registerProperty:r,updatePropertyValue:u,startStreaming:o}=zr();r("title",e.title??""),r("task",e.task??""),r("detail",e.message??""),i.watch([()=>e.title,()=>e.task,()=>e.message],([p,m,x])=>{u("title",p??""),u("task",m??""),u("detail",x??"")});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&&o()}),()=>i.createVNode("li",{key:e.id,class:a.value,onClick:l},[e.todoList&&e.todoList.length>0&&i.createVNode(rn,{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(tn,{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])])])}}),ar=i.defineComponent({name:"FXTodoListView",props:vs,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(po,i.mergeProps({key:r},n),null))]):null}}}),fm=300,hm={Working:"正在执行任务",Done:"已完成任务",NotStart:"待执行任务"},rn=i.defineComponent({name:"FXStartedTodo",props:xs,setup(e){const t=i.ref(null),n=i.ref(null),r=i.ref(null),u=i.ref(null),o=i.computed(()=>e.outputMode==="streaming"),{displayContent:a}=Ci(()=>({detail:e.taskDetail??""}),()=>!0,o,{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"&&(u.value!=null&&(window.clearTimeout(u.value),u.value=null),r.value=window.setTimeout(()=>{t.value&&n.value&&n.value.show(t.value),r.value=null},fm))}function f(){e.detailViewMode!=="expand"&&(r.value!=null&&(window.clearTimeout(r.value),r.value=null),u.value=window.setTimeout(()=>{var b,g;(g=(b=n.value)==null?void 0:b.hide)==null||g.call(b),u.value=null},150))}function c(){if(e.detailViewMode==="none")return null;const b=a.value.detail??"";return i.createVNode(i.Fragment,null,[b?i.createVNode("div",{class:"f-chat-started-todo-task-detail"},[b]):null,i.createVNode(ar,{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(nn,{ref:n,class:"f-chat-started-todo-popover"},{default:()=>[i.createVNode("div",{class:"f-chat-started-todo-popover-content",onMouseenter:()=>{u.value!=null&&(window.clearTimeout(u.value),u.value=null)},onMouseleave:f},[c()])]})}const x=i.computed(()=>e.listStatus==="completed"),v=i.computed(()=>{const b=e.todoList??[],g=e.totalCount??b.length;return{done:e.completedCount??b.filter(k=>(k==null?void 0:k.status)==="Done").length,total:g}});function y(){if(!x.value)return null;const{done:b,total:g}=v.value,w=g>0?`已完成 (${b}/${g})`:"已完成";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":x.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"},[hm[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()])}});rn.install=e=>{e.component(rn.name,rn)};const mm=i.defineComponent({name:"FXBubbleThoughtChain",props:um,setup(e,t){const{elapsedSeconds:n,hasEverStarted:r,start:u,stop:o,reset:a}=Xo(),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"?u():c==="Done"?o():a()},{immediate:!0}),i.onUnmounted(()=>{a()}),t.expose({instance:{get loadDone(){return e.content?s.value:!0}}}),()=>{var c,h,p,m,x,v;return e.content?i.createVNode(rn,{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:(x=e.content)==null?void 0:x.completedCount,totalCount:(v=e.content)==null?void 0:v.totalCount},null):null}}}),sr=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]))])])}}),pm=300,En=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}=qo(),r=i.computed(()=>e.content.success===!1),u=i.ref(!1);let o=setTimeout(()=>{u.value=!0},pm);i.onBeforeUnmount(()=>{o&&clearTimeout(o)});const a=i.computed(()=>t.value),s=i.computed(()=>u.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(()=>t.value,(p,m)=>{p&&!m&&(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(tn,{status:"Error",variant:"tool-use"},null):i.createVNode(tn,{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()])])}});En.install=e=>{e.component(En.name,En)};const lr=i.defineComponent({name:"FXBubble",components:{"fx-user-auth-inline":sr,"fx-app-preview-inline":lt,FXToolUse:En},props:Rr,setup(e,t){const n=i.shallowRef(),r=i.ref(),u=i.ref(),o=i.computed(()=>!!e.showAvatar),a=i.computed(()=>o.value===!0||e.header==="ContentHeader"),s=i.computed(()=>t.slots.leftFooter||t.slots.rightFooter),l=i.computed(()=>{var I;return Ee({},(I=e.styles)==null?void 0:I.footer)}),d=I=>{if(e.attachmentRowClickOpensPreview!==!1&&e.onPreview){if(I.type==="md"&&I.content){e.onPreview({content:I.content,contentType:"markdown"});return}if(I!=null&&I.url){const G=I!=null&&I.fullScreenPreview?"fullScreen":"splitScreen";e.onPreview({url:I.url,previewMode:G,title:I.name})}}},f=I=>{if(e.attachmentRowClickOpensPreview===!1||!e.onPreview)return;const G=I==null?void 0:I.filter(T=>T.type==="md"&&T.content);if(G.length===0)return;const X=Object.fromEntries(G.map(T=>[T.name,T.content??""]));e.onPreview({contentMap:X,contentType:"markdown"})},{renderFileEmbeddedContent:c,renderPageEmbeddedContent:h}=Ii(),p=i.ref(""),m=i.computed(()=>{var G,X;if((G=e.content)!=null&&G.footerContent)return e.content.footerContent;const I=(X=e.content)==null?void 0:X.structuredContent;return I&&(I.footerTemplate||I.footerUrl||I.footerFile)?{type:I.footerUrl?"page":I.footerFile?"file":"template",pageUrl:I.footerUrl,fileContent:I.footerFile,template:I.footerTemplate,width:I.footerWidth,height:I.footerHeight}:null});i.watch(()=>{var I;return(I=m.value)==null?void 0:I.width},I=>{if(!I){p.value="";return}if(I.endsWith("%")){const G=parseFloat(I);isNaN(G)||i.nextTick(()=>{var T,j;const X=(j=(T=n.value)==null?void 0:T.parentElement)==null?void 0:j.clientWidth;X&&(p.value=`${X*G/100}px`)})}else p.value=I},{immediate:!0});const x=I=>{if(!I||I.length===0)return"我";const G=I.charAt(0);return/[\u4e00-\u9fa5]/.test(G)?G:G.toUpperCase()};function v(){return e.header==="ContentHeader"?_c:Ec}const y=v(),{renderHeader:b}=y(e,t),g=()=>{var X,T,j;const I=((X=e.content)==null?void 0:X.sender)??"发送人",G=x(((T=e.content)==null?void 0:T.sender)??"");return i.createVNode("div",{class:"f-chat-bubble-avatar"},[(j=e.content)!=null&&j.avatar?i.createVNode("img",{src:e.content.avatar,alt:I},null):i.createVNode("div",{class:"f-chat-bubble-avatar-initial"},[G])])},w=()=>{var G;const I=(G=e.content)==null?void 0:G.toolUseAboveText;return I!=null&&I.length?i.createVNode("div",{class:"f-chat-bubble-tool-use-group"},[I.map((X,T)=>i.createVNode(En,{key:X.toolUseId??`tu-${T}`,content:X},null))]):null},k=()=>{var I;return(I=e.content)!=null&&I.thinkingContent?i.createVNode(om,{ref:r,content:e.content.thinkingContent,outputMode:e.outputMode},null):null},D=()=>{var I;return(I=e.content)!=null&&I.startedTodo?i.createVNode(mm,{ref:u,content:e.content.startedTodo},null):null},F=I=>{if(!(I!=null&&I.type))return null;const{type:G}=I;return G==="page"&&I.pageUrl?h(I,{onNavigate:X=>{var T;(T=e.onPreview)==null||T.call(e,{url:X})}}):G==="file"&&I.fileContent?c(I,{onPreviewFile:d,onBatchPreviewFile:f}):G==="template"&&I.template?I.template():null},S=()=>{var T,j,B;if(!((B=(j=(T=e.content)==null?void 0:T.structuredContent)==null?void 0:j.sections)!=null&&B.length))return null;const{sections:I,showDivider:G}=e.content.structuredContent,X=Z=>{const{content:ue,label:C}=Z;return C||ue&&typeof ue=="string"?i.createVNode(i.Fragment,null,[i.createVNode("span",{class:"f-chat-bubble-structured-section-item-dot"},null),Z.label&&i.createVNode("span",{class:"f-chat-bubble-structured-section-item-label"},[Z.label]),i.createVNode("span",{class:"f-chat-bubble-structured-section-item-content"},[Z.content])]):F(Z.content)};return i.createVNode("div",{class:["f-chat-bubble-structured",{"structure-content-divider":G}]},[I.map((Z,ue)=>i.createVNode("div",{key:ue,class:["f-chat-bubble-structured-section",{"section-divider":Z.showDivider}]},[i.createVNode("div",{class:"f-chat-bubble-structured-section-header"},[Z.icon&&(Z.icon.startsWith("http")||Z.icon.startsWith("//")||Z.icon.startsWith("../")||/\.(png|jpg|jpeg|gif|svg|webp|bmp)$/i.test(Z.icon)?i.createVNode("img",{alt:Z.title,src:Z.icon,class:"f-chat-bubble-structured-section-icon"},null):i.createVNode("i",{class:`fx-icon ${Z.icon}`,style:Z.iconStyle},null)),i.createVNode("span",{class:"f-chat-bubble-structured-section-title"},[Z.title])]),Z.items&&Z.items.length>0&&i.createVNode("div",{class:"f-chat-bubble-structured-section-items"},[Z.items.map((C,E)=>i.createVNode("div",{key:E,class:"f-chat-bubble-structured-section-item"},[X(C)]))])]))])},q=()=>{const I=m.value;if(!I)return null;const G={};return p.value&&(G.width=p.value),I.height&&(G.height=`${I.height}px`),i.createVNode("div",{class:"f-chat-bubble-content-footer",style:G},[F(I)])},H=()=>{const I=e.attachmentRowClickOpensPreview!==!1?d:void 0;return i.createVNode(Ni,{attachments:e.attachments??[],enableFixedWidth:e.placement==="end",showDownloadButton:e.attachmentShowDownload!==!1,onPreview:I,onBatchPreview:e.attachmentRowClickOpensPreview!==!1?f:void 0,role:e.role},null)},z=()=>{var G;const I=(G=e.content)==null?void 0:G.compositeInlineBlocks;return I!=null&&I.length?I.map((X,T)=>X.kind==="userAuth"?i.createVNode(i.resolveComponent("fx-user-auth-inline"),{key:`inline-auth-${T}`,content:X.content,onConfirm:e.onUserAuthConfirm},null):i.createVNode(i.resolveComponent("fx-app-preview-inline"),{key:`inline-preview-${T}`,content:X.content,onOpen:e.onPreview},null)):null},$=()=>{var I,G,X,T,j,B;return i.createVNode("div",{class:`f-chat-bubble-content ${e.placement}`},[a.value&&b(),H(),i.createVNode("div",{class:`f-chat-bubble-content-text-wrapper ${e.placement}`},[(I=e.content)!=null&&I.compositeOrderedBeforeMarkdownRender?e.content.compositeOrderedBeforeMarkdownRender():i.createVNode(i.Fragment,null,[k(),w()]),D(),S(),i.createVNode(nm,{title:((G=e.content)==null?void 0:G.title)??"",subtitle:((X=e.content)==null?void 0:X.subtitle)??"",text:typeof((T=e.content)==null?void 0:T.text)=="string"?e.content.text:"",textFormat:((j=e.content)==null?void 0:j.textFormat)??"plain",placement:e.placement,onDynamicComponentsDetected:e==null?void 0:e.onDynamicComponentsDetected,onShowDynamicComponent:e==null?void 0:e.onShowDynamicComponent},null),q(),(B=e.compositeTailRender)==null?void 0:B.call(e),z()]),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,[o.value&&g(),$()]):i.createVNode(i.Fragment,null,[$(),o.value&&g()])])])}}),ks={customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""}},Ru=i.defineComponent({name:"FXBubbleAction",props:ks,setup(e,t){const n=i.computed(()=>Ee({},e.customStyle));return()=>t.slots.default&&i.createVNode("span",{class:"f-chat-bubble-footer-action",style:n.value},[t.slots.default()])}});lr.install=e=>{e.component(lr.name,lr),e.component(Ru.name,Ru)};const Cs={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"}},_s={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:()=>({})}},go=i.defineComponent({name:"FXCarouselItem",props:_s,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 Ae(f,(c=e.classNames)==null?void 0:c.item)}),u=i.computed(()=>{var c,h;const f=Ee({},(c=e.styles)==null?void 0:c.item);return Ee(f,(h=e.styles)==null?void 0:h.item)}),o=()=>{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:u.value,onClick:d},[o(),a(),e.showInfo&&i.createVNode("div",{class:"fx-carousel--item-info"},[s(),l()])])}});function gm(e){const{items:t,autoplay:n=!1,interval:r=3e3,loop:u=!0,direction:o="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?u?d.value-1:0:a.value-1),i.computed(()=>a.value===d.value-1?u?0:a.value:a.value+1);const c=i.computed(()=>{const g=-a.value*100;return{transform:o==="horizontal"?`translateX(${g}%)`:`translateY(${g}%)`,transition:"transform 0.5s ease"}}),h=g=>{g<0||g>=d.value||(a.value,a.value=g)},p=()=>{f.value||(a.value===d.value-1?h(u?0:a.value):h(a.value+1))},m=()=>{f.value||(a.value===0?h(u?d.value-1:0):h(a.value-1))},x=()=>{!n||f.value||(v(),l.value=window.setInterval(()=>{s.value||p()},r))},v=()=>{l.value&&(clearInterval(l.value),l.value=null)},y=()=>{s.value=!0,n&&v()},b=()=>{s.value=!1,n&&x()};return i.onMounted(()=>{x()}),i.onUnmounted(()=>{v()}),{currentIndex:a,totalItems:d,isSingleItem:f,trackStyle:c,goTo:h,next:p,prev:m,handleMouseEnter:y,handleMouseLeave:b}}const cr=i.defineComponent({name:"FXCarousel",props:Cs,emits:["update:modelValue","change","item-click"],setup(e,{slots:t,emit:n}){const{currentIndex:r,isSingleItem:u,trackStyle:o,goTo:a,next:s,prev:l,handleMouseEnter:d,handleMouseLeave:f}=gm({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":u.value,"fx-carousel--button-outer":e.buttonPosition==="outer","fx-carousel--button-inner":e.buttonPosition==="inner"};return Ae(k,(D=e.classNames)==null?void 0:D.root)}),p=i.computed(()=>{var F;const k={height:typeof e.height=="number"?`${e.height}px`:e.height},D=Ee(k,e.customStyle);return Ee(D,(F=e.styles)==null?void 0:F.root)}),m=i.computed(()=>{var D;const k={"fx-carousel--container":!0,"fx-carousel--container-hover":e.arrowVisibility==="hover"};return Ae(k,(D=e.classNames)==null?void 0:D.container)}),x=i.computed(()=>{var D;return Ae({"fx-carousel--track":!0},(D=e.classNames)==null?void 0:D.track)}),v=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 Ae(k,(D=e.classNames)==null?void 0:D.indicator)}),y=k=>{var F,S;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,Ae(D,k==="left"?(F=e.classNames)==null?void 0:F.arrowLeft:(S=e.classNames)==null?void 0:S.arrowRight)},b=k=>{var S,q;if(u.value)return null;const D=k==="left"?l:s,F=t[k==="left"?"prevArrow":"nextArrow"];return i.createVNode("button",{class:y(k),style:k==="left"?(S=e.styles)==null?void 0:S.arrowLeft:(q=e.styles)==null?void 0:q.arrowRight,onClick:D,"aria-label":`${k} arrow`},[F?F():i.createVNode("i",{style:"font-size: 60px;",class:`fx-icon fx-icon-arrow-${k==="left"?"left":"right"}`},null)])},g=()=>{var k;return u.value||!e.showIndicator?null:i.createVNode("div",{class:v.value,style:(k=e.styles)==null?void 0:k.indicator},[e.items.map((D,F)=>{var S,q;return i.createVNode("button",{"aria-label":`indicator ${F}`,key:F,class:["fx-carousel--indicator-item",{"fx-carousel--indicator-item-active":F===r.value}],style:F===r.value?(S=e.styles)==null?void 0:S.indicatorItemActive:(q=e.styles)==null?void 0:q.indicatorItem,onClick:()=>{a(F),c(F)}},null)})])},w=()=>i.createVNode("div",{class:x.value,style:o.value},[e.items.map((k,D)=>i.createVNode(go,{key:k.id||`item_${D}`,item:k,showInfo:e.showInfo,index:D,active:D===r.value,styles:e.styles,classNames:e.classNames,onClick:(F,S,q)=>{n("item-click",F,S,q)}},{default:()=>{var F,S;return[(F=t.item)==null?void 0:F.call(t,{item:k,index:D,active:D===r.value}),(S=t[`item${D}`])==null?void 0:S.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"&&b("left"),i.createVNode("div",{class:m.value,style:(k=e.styles)==null?void 0:k.container},[e.buttonPosition==="inner"&&b("left"),w(),e.buttonPosition==="inner"&&b("right")]),e.buttonPosition==="outer"&&b("right"),g()])}}});cr.install=e=>{e.component(cr.name,cr),e.component(go.name,go)};const Es={customStyle:{type:String,default:""},customClass:{type:String,default:""},direction:{Type:String,default:"row"}};function bm(e){const t=i.ref(-1),n=i.ref(-1),r=i.ref(0),u=i.ref(0),o=i.ref(!1),a=i.ref(!1),s=i.computed(()=>({display:o.value?"block":"none",left:`${r.value}px`,cursor:"e-resize"})),l=i.computed(()=>({display:a.value?"block":"none",top:`${u.value}px`,cursor:"n-resize"})),d=i.computed(()=>{const v={display:a.value||o.value?"block":"none"};return u.value>0&&(v.cursor="n-resize"),v});function f(v,y,b,g){const w=e.value;if(w){const{left:k,right:D,width:F}=w.getBoundingClientRect();let S=v.clientX-k;g==="right"&&(S=D-v.clientX),S>y&&(S=y),S<b&&(S=b),g==="right"&&(S=F-S),r.value=S}}function c(v,y,b,g){const w=e.value;if(w){const{top:k,bottom:D,height:F}=w.getBoundingClientRect();let S=v.clientY-k;g==="bottom"&&(S=D-v.clientY),S>y&&(S=y),S<b&&(S=b),g==="bottom"&&(S=F-S),u.value=S}}function h(){const v=e.value;if(v){const{width:y,height:b}=v.getBoundingClientRect();return{width:y,height:b}}return null}function p(){const v=e.value;return v?Array.from(v.querySelectorAll("[data-position]")).reduce((y,b)=>{const g=b.getAttribute("data-position");return y=Object.assign(y,{[g]:b}),y},{}):null}function m(v,y){const b=h(),g=p();if(b&&g){const w=g==null?void 0:g.right,k=g==null?void 0:g.left;if(v==="left"&&k)return w?b.width-w.clientWidth-y:b.width-y;if(v==="right"&&w)return k?b.width-k.clientWidth-y:b.width-y}}function x(v,y){const b=h(),g=p();if(b&&g){const w=g==null?void 0:g.bottom,k=g==null?void 0:g.top;if(v==="top"&&k)return w?b.height-w.clientHeight-y:b.height-y;if(v==="bottom"&&w)return k?b.height-k.clientHeight-y:b.height-y}}return{horizontalResizeHandleStyle:s,verticalResizeHandleStyle:l,resizeOverlayStyle:d,showHorizontalResizeHandle:o,showVerticalResizeHandle:a,horizontalResizeBarPosition:t,verticalResizeBarPosition:n,verticalResizeHandleOffset:u,horizontalResizeHandleOffset:r,draggingHorizontalResizeHandle:f,draggingVerticalResizeHandle:c,getPanelMaxWidth:m,getPanelMaxHeight:x}}const Sn=i.defineComponent({name:"FXSplitter",props:Es,emits:[],setup(e,t){const n=i.ref(),r=bm(n),{horizontalResizeHandleStyle:u,verticalResizeHandleStyle:o,resizeOverlayStyle:a}=r;i.provide("splitter",{useResizeHandleComposition:r});const s=i.computed(()=>Ae({"f-splitter":!0},e==null?void 0:e.customClass)),l=i.computed(()=>{const d={"flex-direction":e.direction==="row"?"row":"column"};return Ee(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:u.value},null),i.createVNode("div",{class:"f-splitter-vertical-resize-proxy",style:o.value},null)])}}),ym={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 wm(e,t){const n=i.ref(e.width),r=i.ref(e.height),{horizontalResizeBarPosition:u,horizontalResizeHandleOffset:o,showHorizontalResizeHandle:a,showVerticalResizeHandle:s,verticalResizeBarPosition:l,verticalResizeHandleOffset:d,draggingHorizontalResizeHandle:f,draggingVerticalResizeHandle:c,getPanelMaxWidth:h,getPanelMaxHeight:p}=t;let m="",x,v,y;const b=()=>e.maxWidth?e.maxWidth:h(m,e.minWidth)||0,g=()=>e.maxHeight?e.maxHeight:p(m,e.minHeight)||0;function w(F){if((m==="left"||m==="right")&&v){const{left:S}=v.getBoundingClientRect(),{width:q}=x.getBoundingClientRect(),H=F.clientX-S;let z=m==="left"?(q||0)+(H-u.value):(q||0)-(H-u.value);z=e.minWidth>0?Math.max(e.minWidth,z):z;const $=b();$!=null&&$>0&&(z=$>z?z:$),n.value=z}if((m==="top"||m==="bottom")&&v){const{top:S}=v.getBoundingClientRect(),{height:q}=x.getBoundingClientRect(),H=F.clientY-S;let z=m==="top"?(q||0)+(H-l.value):(q||0)-(H-l.value);z=e.minHeight>0?Math.max(e.minHeight,z):z;const $=g();$!=null&&$>0&&(z=$>z?z:$),r.value=z}o.value=0,d.value=0,u.value=-1,l.value=-1,a.value=!1,s.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",w),document.body.style.userSelect="",m="",x=null,v=null}function k(F,S,q){if(m=S,x=q,a.value=!0,v=F.composedPath().find(z=>z.className.split(" ")[0]==="f-splitter"),v){const{left:z}=v.getBoundingClientRect();o.value=F.clientX-z,u.value=F.clientX-z;const $=b();y=I=>f(I,$,e.minWidth,m),document.addEventListener("mousemove",y),document.addEventListener("mouseup",w),document.body.style.userSelect="none"}}function D(F,S,q){if(m=S,x=q,s.value=!0,v=F.composedPath().find(z=>z.className.split(" ")[0]==="f-splitter"),v){const{top:z}=v.getBoundingClientRect();d.value=F.clientY-z,l.value=F.clientY-z;const $=g();y=I=>c(I,$,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 dr=i.defineComponent({name:"FSplitterPane",props:ym,emits:[],setup(e,t){const n=i.ref(),r=i.inject("splitter"),{useResizeHandleComposition:u}=r,o=wm(e,u),{actualHeight:a,actualWidth:s,onClickSplitterHorizontalResizeBar:l,onClickSplitterVerticalResizeBar:d}=o,f=i.ref(e.position),c=i.computed(()=>{const g={"f-splitter-pane":!0,"f-splitter-pane-main":f.value==="center","has-resize-bar":e.resizable};return g["f-splitter-pane-"+f.value]=!0,Ae(g,e==null?void 0:e.customClass)}),h=i.computed(()=>e.resizeHandle?e.resizeHandle.split(",").filter(g=>["e","n","s","w"].find(w=>w===g)):[]),p=i.computed(()=>{const g={};return(s.value||s.value===0)&&(f.value==="left"||f.value==="right"||h.value.find(w=>w==="e")||h.value.find(w=>w==="w"))&&(g.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"))&&(g.height=`${a.value}px`),e.visible||(g.display="none"),Ee(g,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 x(g){return{e:"left",w:"right",s:"top",n:"bottom"}[g]||g}function v(g,w){w=x(w),["left","right"].find(k=>k===w)&&l(g,w,n.value),["top","bottom"].find(k=>k===w)&&d(g,w,n.value)}function y(){return h.value.length>0?h.value.map(g=>i.createVNode("span",{class:"f-splitter-resize-bar f-splitter-resize-bar-"+g,onMousedown:w=>v(w,g)},null)):i.createVNode("span",{class:m.value,onMousedown:g=>v(g,f.value)},null)}function b(){s.value=e.width,a.value=e.height,p.value}return t.expose({reset:b}),()=>i.createVNode("div",{ref:n,class:c.value,style:p.value,"data-position":f.value},[t.slots.default&&t.slots.default(),e.resizable&&y()])}});Sn.install=e=>{e.component(Sn.name,Sn),e.component(dr.name,dr)};const Ss={previewConfig:{type:Object,default:()=>({})},onClose:{type:Function,default:()=>{}},onIframeLoad:{type:Function,default:()=>{}}},Fs={content:{type:String,default:null}},xm=e=>{const t=typeof e;return t!=="function"&&t!=="object"||e===null},vm=e=>{const t=e.flags===""?void 0:e.flags;return new RegExp(e.source,t)},fr=(e,t=new WeakMap)=>{if(e===null||xm(e))return e;if(t.has(e))return t.get(e);if(e instanceof RegExp)return vm(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((u,o)=>{r.set(o,fr(u,t))}),r}if(e instanceof Set){const r=new Set;t.set(e,r);for(const u of e)r.add(fr(u,t));return r}if(Array.isArray(e)){const r=[];return t.set(e,r),e.forEach(u=>{r.push(fr(u,t))}),r}const n={};t.set(e,n);for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=fr(e[r],t));return n},Am=(e,t=200)=>{let n=0;return(...r)=>new Promise(u=>{n&&(clearTimeout(n),u("cancel")),n=window.setTimeout(()=>{e.apply(void 0,r),n=0,u("done")},t)})},Mu=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,bo=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),km=new Set(["__proto__","constructor","prototype"]),Cm=e=>!km.has(e),Bu=(e,t,n={})=>{if(Array.isArray(e)&&Array.isArray(t))return zu(e,t,n);const{excludeKeys:r}=n,u=e,o=t;for(const a of Object.keys(o)){if(!Cm(a))continue;const s=o[a],l=u[a];r&&r(a)?u[a]=s:Array.isArray(s)&&Array.isArray(l)?u[a]=zu(l,s,n):bo(s)&&bo(l)?u[a]=Bu(l,s,n):u[a]=s}return e},zu=(e,t,n)=>{const r=e.slice();return t.forEach((u,o)=>{const a=r[o];Array.isArray(u)&&Array.isArray(a)?r[o]=zu(a,u,n):bo(u)&&bo(a)?r[o]=Bu(a,u,n):r[o]=u}),r},K="md-editor",pe="https://unpkg.com",_m=`${pe}/@highlightjs/cdn-assets@11.11.1/highlight.min.js`,Ds={main:`${pe}/prettier@3.8.1/standalone.js`,markdown:`${pe}/prettier@3.8.1/plugins/markdown.js`},Em={css:`${pe}/cropperjs@1.6.2/dist/cropper.min.css`,js:`${pe}/cropperjs@1.6.2/dist/cropper.min.js`},Sm=`${pe}/screenfull@5.2.0/dist/screenfull.js`,Fm=`${pe}/mermaid@11.12.3/dist/mermaid.min.js`,Dm={js:`${pe}/katex@0.16.33/dist/katex.min.js`,css:`${pe}/katex@0.16.33/dist/katex.min.css`},ju={a11y:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/a11y-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/a11y-dark.min.css`},atom:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-dark.min.css`},github:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/github.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/github-dark.min.css`},gradient:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/gradient-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/gradient-dark.min.css`},kimbie:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-dark.min.css`},paraiso:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-dark.min.css`},qtcreator:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-dark.min.css`}},Nm=`${pe}/echarts@6.0.0/dist/echarts.min.js`,Ns={"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"}}},ht={editorExtensions:{highlight:{js:_m,css:ju},prettier:{standaloneJs:Ds.main,parserMarkdownJs:Ds.markdown},cropper:{...Em},screenfull:{js:Sm},mermaid:{js:Fm,enableZoom:!0},katex:{...Dm},echarts:{js:Nm}},editorExtensionsAttrs:{},editorConfig:{languageUserDefined:{},mermaidTemplate:{},renderDelay:500,zIndex:2e4},codeMirrorExtensions:e=>e,markdownItConfig:()=>{},markdownItPlugins:e=>e,mermaidConfig:e=>e,katexConfig:e=>e,echartsConfig:e=>e},Tm=({instance:e,ctx:t,props:n={}},r="default")=>{const u=(e==null?void 0:e.$slots[r])||(t==null?void 0:t.slots[r]);return(u?u(e):"")||n[r]},Im="buildFinished",Hu="errorCatcher",$u="catalogChanged",Om="pushCatalog",Ts="rerender",Lm="taskStateChanged";class Vm{constructor(){ge(this,"pools",{})}remove(t,n,r){const u=this.pools[t]&&this.pools[t][n];u&&(this.pools[t][n]=u.filter(o=>o!==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 u=this.pools[t][n];u&&u.forEach(o=>{try{o(...r)}catch(a){console.error(`${n} monitor event exception!`,a)}})}}const at=new Vm,Pm=(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="${K}-code-block">${e}</span>${r.join("")}`};async function Is(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 Rm={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 ${K}-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 ${K}-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 ${K}-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 ${K}-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 ${K}-icon"><path d="M20 6 9 17l-5-5"/></svg>`},Tt=(e,t)=>typeof t[e]=="string"?t[e]:Rm[e],Gt=(e,t,n="")=>{var u;const r=document.getElementById(t.id);if(r)n!==""&&(Reflect.get(window,n)?(u=t.onload)==null||u.call(r,new Event("load")):t.onload&&r.addEventListener("load",t.onload));else{const o={...t};o.onload=null;const a=Bm(e,o);t.onload&&a.addEventListener("load",t.onload),document.head.appendChild(a)}},Mm=(e,t)=>{var n;(n=document.getElementById(t.id))==null||n.remove(),Gt(e,t)},Bm=(e,t)=>{const n=document.createElement(e);return Object.keys(t).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),n},zm=(e,t)=>{const n=new Map;return e==null||e.forEach(r=>{let u=r.querySelector(`.${K}-mermaid-action`);u?u.querySelector(`.${K}-mermaid-copy`)||u.insertAdjacentHTML("beforeend",`<span class="${K}-mermaid-copy">${Tt("copy",t.customIcon)}</span>`):(r.insertAdjacentHTML("beforeend",`<div class="${K}-mermaid-action"><span class="${K}-mermaid-copy">${Tt("copy",t.customIcon)}</span></div>`),u=r.querySelector(`.${K}-mermaid-action`));const o=u.querySelector(`.${K}-mermaid-copy`);let a=-1;const s=()=>{clearTimeout(a),Is(r.dataset.content||"").then(()=>{o.innerHTML=Tt("check",t.customIcon)}).catch(()=>{o.innerHTML=Tt("copy",t.customIcon)}).finally(()=>{a=window.setTimeout(()=>{o.innerHTML=Tt("copy",t.customIcon)},1500)})};o.addEventListener("click",s),n.set(r,{removeClick:()=>{o.removeEventListener("click",s)}})}),()=>{n.forEach(({removeClick:r})=>{r==null||r()}),n.clear()}},jm=(()=>{const e=t=>{if(!t)return()=>{};const n=t.firstChild;let r=1,u=0,o=0,a=!1,s,l,d,f=1;const c=()=>{n.style.transform=`translate(${u}px, ${o}px) scale(${r})`},h=w=>{w.touches.length===1?(a=!0,s=w.touches[0].clientX-u,l=w.touches[0].clientY-o):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)u=w.touches[0].clientX-s,o=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 F=(w.touches[0].clientX+w.touches[1].clientX)/2,S=(w.touches[0].clientY+w.touches[1].clientY)/2,q=n.getBoundingClientRect(),H=(F-q.left)/D,z=(S-q.top)/D;u-=H*(r-D),o-=z*(r-D),c()}},m=()=>{a=!1},x=w=>{w.preventDefault();const k=.02,D=r;w.deltaY<0?r+=k:r=Math.max(.1,r-k);const F=n.getBoundingClientRect(),S=w.clientX-F.left,q=w.clientY-F.top;u-=S/D*(r-D),o-=q/D*(r-D),c()},v=w=>{a=!0,s=w.clientX-u,l=w.clientY-o},y=w=>{a&&(u=w.clientX-s,o=w.clientY-l,c())},b=()=>{a=!1},g=()=>{a=!1};return t.addEventListener("touchstart",h,{passive:!1}),t.addEventListener("touchmove",p,{passive:!1}),t.addEventListener("touchend",m),t.addEventListener("wheel",x,{passive:!1}),t.addEventListener("mousedown",v),t.addEventListener("mousemove",y),t.addEventListener("mouseup",b),t.addEventListener("mouseleave",g),()=>{t.removeEventListener("touchstart",h),t.removeEventListener("touchmove",p),t.removeEventListener("touchend",m),t.removeEventListener("wheel",x),t.removeEventListener("mousedown",v),t.removeEventListener("mousemove",y),t.removeEventListener("mouseup",b),t.removeEventListener("mouseleave",g)}};return(t,n)=>{const r=new Map;return t==null||t.forEach(u=>{let o=u.querySelector(`.${K}-mermaid-action`);o?o.querySelector(`.${K}-mermaid-zoom`)||o.insertAdjacentHTML("beforeend",`<span class="${K}-mermaid-zoom">${Tt("pin-off",n.customIcon)}</span>`):(u.insertAdjacentHTML("beforeend",`<div class="${K}-mermaid-action"><span class="${K}-mermaid-zoom">${Tt("pin-off",n.customIcon)}</span></div>`),o=u.querySelector(`.${K}-mermaid-action`));const a=o.querySelector(`.${K}-mermaid-zoom`),s=()=>{const l=r.get(u);if(l!=null&&l.removeEvent)l.removeEvent(),u.removeAttribute("data-grab"),r.set(u,{removeClick:l.removeClick}),a.innerHTML=Tt("pin-off",n.customIcon);else{const d=e(u);u.setAttribute("data-grab",""),r.set(u,{removeEvent:d,removeClick:l==null?void 0:l.removeClick}),a.innerHTML=Tt("pin",n.customIcon)}};a.addEventListener("click",s),r.set(u,{removeClick:()=>a.removeEventListener("click",s)})}),()=>{r.forEach(({removeEvent:u,removeClick:o})=>{u==null||u(),o==null||o()}),r.clear()}}})(),Os=new Set([!0,!1,"alt","title"]);function Ls(e,t){return(Array.isArray(e)?e:[]).filter(([n])=>n!==t)}function Vs(e,t){e&&e.attrs&&(e.attrs=Ls(e.attrs,t))}function Hm(e,t){if(!Os.has(e))throw new TypeError(`figcaption must be one of: ${[...Os]}.`);if(e==="alt")return t.content;const n=t.attrs.find(([r])=>r==="title");return Array.isArray(n)&&n[1]?(Vs(t,"title"),n[1]):void 0}function $m(e,t){t=t||{},e.core.ruler.before("linkify","image_figures",function(n){let r=1;for(let u=1,o=n.tokens.length;u<o-1;++u){const a=n.tokens[u];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(u!==0&&n.tokens[u-1].type!=="paragraph_open"||u!==o-1&&n.tokens[u+1].type!=="paragraph_close")continue;const s=n.tokens[u-1];let l;if(s.type="figure_open",s.tag="figure",n.tokens[u+1].type="figure_close",n.tokens[u+1].tag="figure",t.dataType&&n.tokens[u-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=Hm(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=Ls(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[u-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]]),Vs(l,"src")}}})}const Um=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function Wm(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 u=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===126){u=!0;break}e.md.inline.skipToken(e)}if(!u||r+1===e.pos)return e.pos=r,!1;const o=e.src.slice(r+1,e.pos);if(o.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=o.replace(Um,"$1");const l=e.push("sub_close","sub",-1);return l.markup="~",e.pos=e.posMax+1,e.posMax=n,!0}function Gm(e){e.inline.ruler.after("emphasis","sub",Wm)}const Xm=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function qm(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 u=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===94){u=!0;break}e.md.inline.skipToken(e)}if(!u||r+1===e.pos)return e.pos=r,!1;const o=e.src.slice(r+1,e.pos);if(o.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=o.replace(Xm,"$1");const l=e.push("sup_close","sup",-1);return l.markup="^",e.pos=e.posMax+1,e.posMax=n,!0}function Zm(e){e.inline.ruler.after("emphasis","sup",qm)}var Ym=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Ps=new Set,Uu=typeof process=="object"&&process?process:{},Rs=(e,t,n,r)=>{typeof Uu.emitWarning=="function"?Uu.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)},yo=globalThis.AbortController,Ms=globalThis.AbortSignal;if(typeof yo>"u"){Ms=class{constructor(){ge(this,"onabort");ge(this,"_onabort",[]);ge(this,"reason");ge(this,"aborted",!1)}addEventListener(n,r){this._onabort.push(r)}},yo=class{constructor(){ge(this,"signal",new Ms);t()}abort(n){var r,u;if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let o of this.signal._onabort)o(n);(u=(r=this.signal).onabort)==null||u.call(r,n)}}};let e=((Xl=Uu.env)==null?void 0:Xl.LRU_CACHE_IGNORE_AC_WARNING)!=="1",t=()=>{e&&(e=!1,Rs("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 Km=e=>!Ps.has(e),Xt=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Bs=e=>Xt(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?wo:null:null,wo=class extends Array{constructor(t){super(t),this.fill(0)}},Qm=(It=class{constructor(t,n){ge(this,"heap");ge(this,"length");if(!A(It,In))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0}static create(t){let n=Bs(t);if(!n)return[];ne(It,In,!0);let r=new It(t,n);return ne(It,In,!1),r}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},In=new WeakMap,se(It,In,!1),It),Jm=(Rn=class{constructor(t){se(this,Y);se(this,st);se(this,tt);se(this,mt);se(this,ln);se(this,pt);se(this,On);se(this,Ln);se(this,gt);ge(this,"ttl");ge(this,"ttlResolution");ge(this,"ttlAutopurge");ge(this,"updateAgeOnGet");ge(this,"updateAgeOnHas");ge(this,"allowStale");ge(this,"noDisposeOnSet");ge(this,"noUpdateTTL");ge(this,"maxEntrySize");ge(this,"sizeCalculation");ge(this,"noDeleteOnFetchRejection");ge(this,"noDeleteOnStaleGet");ge(this,"allowStaleOnFetchAbort");ge(this,"allowStaleOnFetchRejection");ge(this,"ignoreFetchAbort");se(this,Se);se(this,bt);se(this,Ce);se(this,be);se(this,ie);se(this,We);se(this,nt);se(this,Me);se(this,Ie);se(this,yt);se(this,Oe);se(this,wt);se(this,xt);se(this,rt);se(this,ot);se(this,vt);se(this,Kt);se(this,Ge);se(this,Vn);se(this,cn,()=>{});se(this,Pt,()=>{});se(this,Ir,()=>{});se(this,ut,()=>!1);se(this,dn,t=>{});se(this,Pn,(t,n,r)=>{});se(this,Or,(t,n,r,u)=>{if(r||u)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});ge(this,ql,"LRUCache");let{max:n=0,ttl:r,ttlResolution:u=1,ttlAutopurge:o,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:l,dispose:d,onInsert:f,disposeAfter:c,noDisposeOnSet:h,noUpdateTTL:p,maxSize:m=0,maxEntrySize:x=0,sizeCalculation:v,fetchMethod:y,memoMethod:b,noDeleteOnFetchRejection:g,noDeleteOnStaleGet:w,allowStaleOnFetchRejection:k,allowStaleOnFetchAbort:D,ignoreFetchAbort:F,perf:S}=t;if(S!==void 0&&typeof(S==null?void 0:S.now)!="function")throw new TypeError("perf option must have a now() method if specified");if(ne(this,gt,S??Ym),n!==0&&!Xt(n))throw new TypeError("max option must be a nonnegative integer");let q=n?Bs(n):Array;if(!q)throw new Error("invalid max value: "+n);if(ne(this,st,n),ne(this,tt,m),this.maxEntrySize=x||A(this,tt),this.sizeCalculation=v,this.sizeCalculation){if(!A(this,tt)&&!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(b!==void 0&&typeof b!="function")throw new TypeError("memoMethod must be a function if defined");if(ne(this,Ln,b),y!==void 0&&typeof y!="function")throw new TypeError("fetchMethod must be a function if specified");if(ne(this,On,y),ne(this,Kt,!!y),ne(this,Ce,new Map),ne(this,be,new Array(n).fill(void 0)),ne(this,ie,new Array(n).fill(void 0)),ne(this,We,new q(n)),ne(this,nt,new q(n)),ne(this,Me,0),ne(this,Ie,0),ne(this,yt,Qm.create(n)),ne(this,Se,0),ne(this,bt,0),typeof d=="function"&&ne(this,mt,d),typeof f=="function"&&ne(this,ln,f),typeof c=="function"?(ne(this,pt,c),ne(this,Oe,[])):(ne(this,pt,void 0),ne(this,Oe,void 0)),ne(this,vt,!!A(this,mt)),ne(this,Vn,!!A(this,ln)),ne(this,Ge,!!A(this,pt)),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!g,this.allowStaleOnFetchRejection=!!k,this.allowStaleOnFetchAbort=!!D,this.ignoreFetchAbort=!!F,this.maxEntrySize!==0){if(A(this,tt)!==0&&!Xt(A(this,tt)))throw new TypeError("maxSize must be a positive integer if specified");if(!Xt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");J(this,Y,mc).call(this)}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!w,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=Xt(u)||u===0?u:1,this.ttlAutopurge=!!o,this.ttl=r||0,this.ttl){if(!Xt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");J(this,Y,gi).call(this)}if(A(this,st)===0&&this.ttl===0&&A(this,tt)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!A(this,st)&&!A(this,tt)){let H="LRU_CACHE_UNBOUNDED";Km(H)&&(Ps.add(H),Rs("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",H,Rn))}}get perf(){return A(this,gt)}static unsafeExposeInternals(t){return{starts:A(t,xt),ttls:A(t,rt),autopurgeTimers:A(t,ot),sizes:A(t,wt),keyMap:A(t,Ce),keyList:A(t,be),valList:A(t,ie),next:A(t,We),prev:A(t,nt),get head(){return A(t,Me)},get tail(){return A(t,Ie)},free:A(t,yt),isBackgroundFetch:n=>{var r;return J(r=t,Y,ye).call(r,n)},backgroundFetch:(n,r,u,o)=>{var a;return J(a=t,Y,Uo).call(a,n,r,u,o)},moveToTail:n=>{var r;return J(r=t,Y,Pr).call(r,n)},indexes:n=>{var r;return J(r=t,Y,Qt).call(r,n)},rindexes:n=>{var r;return J(r=t,Y,Jt).call(r,n)},isStale:n=>{var r;return A(r=t,ut).call(r,n)}}}get max(){return A(this,st)}get maxSize(){return A(this,tt)}get calculatedSize(){return A(this,bt)}get size(){return A(this,Se)}get fetchMethod(){return A(this,On)}get memoMethod(){return A(this,Ln)}get dispose(){return A(this,mt)}get onInsert(){return A(this,ln)}get disposeAfter(){return A(this,pt)}getRemainingTTL(t){return A(this,Ce).has(t)?1/0:0}*entries(){for(let t of J(this,Y,Qt).call(this))A(this,ie)[t]!==void 0&&A(this,be)[t]!==void 0&&!J(this,Y,ye).call(this,A(this,ie)[t])&&(yield[A(this,be)[t],A(this,ie)[t]])}*rentries(){for(let t of J(this,Y,Jt).call(this))A(this,ie)[t]!==void 0&&A(this,be)[t]!==void 0&&!J(this,Y,ye).call(this,A(this,ie)[t])&&(yield[A(this,be)[t],A(this,ie)[t]])}*keys(){for(let t of J(this,Y,Qt).call(this)){let n=A(this,be)[t];n!==void 0&&!J(this,Y,ye).call(this,A(this,ie)[t])&&(yield n)}}*rkeys(){for(let t of J(this,Y,Jt).call(this)){let n=A(this,be)[t];n!==void 0&&!J(this,Y,ye).call(this,A(this,ie)[t])&&(yield n)}}*values(){for(let t of J(this,Y,Qt).call(this))A(this,ie)[t]!==void 0&&!J(this,Y,ye).call(this,A(this,ie)[t])&&(yield A(this,ie)[t])}*rvalues(){for(let t of J(this,Y,Jt).call(this))A(this,ie)[t]!==void 0&&!J(this,Y,ye).call(this,A(this,ie)[t])&&(yield A(this,ie)[t])}[(Zl=Symbol.iterator,ql=Symbol.toStringTag,Zl)](){return this.entries()}find(t,n={}){for(let r of J(this,Y,Qt).call(this)){let u=A(this,ie)[r],o=J(this,Y,ye).call(this,u)?u.__staleWhileFetching:u;if(o!==void 0&&t(o,A(this,be)[r],this))return this.get(A(this,be)[r],n)}}forEach(t,n=this){for(let r of J(this,Y,Qt).call(this)){let u=A(this,ie)[r],o=J(this,Y,ye).call(this,u)?u.__staleWhileFetching:u;o!==void 0&&t.call(n,o,A(this,be)[r],this)}}rforEach(t,n=this){for(let r of J(this,Y,Jt).call(this)){let u=A(this,ie)[r],o=J(this,Y,ye).call(this,u)?u.__staleWhileFetching:u;o!==void 0&&t.call(n,o,A(this,be)[r],this)}}purgeStale(){let t=!1;for(let n of J(this,Y,Jt).call(this,{allowStale:!0}))A(this,ut).call(this,n)&&(J(this,Y,en).call(this,A(this,be)[n],"expire"),t=!0);return t}info(t){let n=A(this,Ce).get(t);if(n===void 0)return;let r=A(this,ie)[n],u=J(this,Y,ye).call(this,r)?r.__staleWhileFetching:r;if(u===void 0)return;let o={value:u};if(A(this,rt)&&A(this,xt)){let a=A(this,rt)[n],s=A(this,xt)[n];if(a&&s){let l=a-(A(this,gt).now()-s);o.ttl=l,o.start=Date.now()}}return A(this,wt)&&(o.size=A(this,wt)[n]),o}dump(){let t=[];for(let n of J(this,Y,Qt).call(this,{allowStale:!0})){let r=A(this,be)[n],u=A(this,ie)[n],o=J(this,Y,ye).call(this,u)?u.__staleWhileFetching:u;if(o===void 0||r===void 0)continue;let a={value:o};if(A(this,rt)&&A(this,xt)){a.ttl=A(this,rt)[n];let s=A(this,gt).now()-A(this,xt)[n];a.start=Math.floor(Date.now()-s)}A(this,wt)&&(a.size=A(this,wt)[n]),t.unshift([r,a])}return t}load(t){this.clear();for(let[n,r]of t){if(r.start){let u=Date.now()-r.start;r.start=A(this,gt).now()-u}this.set(n,r.value,r)}}set(t,n,r={}){var h,p,m,x,v,y,b;if(n===void 0)return this.delete(t),this;let{ttl:u=this.ttl,start:o,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:l}=r,{noUpdateTTL:d=this.noUpdateTTL}=r,f=A(this,Or).call(this,t,n,r.size||0,s);if(this.maxEntrySize&&f>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),J(this,Y,en).call(this,t,"set"),this;let c=A(this,Se)===0?void 0:A(this,Ce).get(t);if(c===void 0)c=A(this,Se)===0?A(this,Ie):A(this,yt).length!==0?A(this,yt).pop():A(this,Se)===A(this,st)?J(this,Y,$o).call(this,!1):A(this,Se),A(this,be)[c]=t,A(this,ie)[c]=n,A(this,Ce).set(t,c),A(this,We)[A(this,Ie)]=c,A(this,nt)[c]=A(this,Ie),ne(this,Ie,c),Ho(this,Se)._++,A(this,Pn).call(this,c,f,l),l&&(l.set="add"),d=!1,A(this,Vn)&&((h=A(this,ln))==null||h.call(this,n,t,"add"));else{J(this,Y,Pr).call(this,c);let g=A(this,ie)[c];if(n!==g){if(A(this,Kt)&&J(this,Y,ye).call(this,g)){g.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:w}=g;w!==void 0&&!a&&(A(this,vt)&&((p=A(this,mt))==null||p.call(this,w,t,"set")),A(this,Ge)&&((m=A(this,Oe))==null||m.push([w,t,"set"])))}else a||(A(this,vt)&&((x=A(this,mt))==null||x.call(this,g,t,"set")),A(this,Ge)&&((v=A(this,Oe))==null||v.push([g,t,"set"])));if(A(this,dn).call(this,c),A(this,Pn).call(this,c,f,l),A(this,ie)[c]=n,l){l.set="replace";let w=g&&J(this,Y,ye).call(this,g)?g.__staleWhileFetching:g;w!==void 0&&(l.oldValue=w)}}else l&&(l.set="update");A(this,Vn)&&((y=this.onInsert)==null||y.call(this,n,t,n===g?"update":"replace"))}if(u!==0&&!A(this,rt)&&J(this,Y,gi).call(this),A(this,rt)&&(d||A(this,Ir).call(this,c,u,o),l&&A(this,Pt).call(this,l,c)),!a&&A(this,Ge)&&A(this,Oe)){let g=A(this,Oe),w;for(;w=g==null?void 0:g.shift();)(b=A(this,pt))==null||b.call(this,...w)}return this}pop(){var t;try{for(;A(this,Se);){let n=A(this,ie)[A(this,Me)];if(J(this,Y,$o).call(this,!0),J(this,Y,ye).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(A(this,Ge)&&A(this,Oe)){let n=A(this,Oe),r;for(;r=n==null?void 0:n.shift();)(t=A(this,pt))==null||t.call(this,...r)}}}has(t,n={}){let{updateAgeOnHas:r=this.updateAgeOnHas,status:u}=n,o=A(this,Ce).get(t);if(o!==void 0){let a=A(this,ie)[o];if(J(this,Y,ye).call(this,a)&&a.__staleWhileFetching===void 0)return!1;if(A(this,ut).call(this,o))u&&(u.has="stale",A(this,Pt).call(this,u,o));else return r&&A(this,cn).call(this,o),u&&(u.has="hit",A(this,Pt).call(this,u,o)),!0}else u&&(u.has="miss");return!1}peek(t,n={}){let{allowStale:r=this.allowStale}=n,u=A(this,Ce).get(t);if(u===void 0||!r&&A(this,ut).call(this,u))return;let o=A(this,ie)[u];return J(this,Y,ye).call(this,o)?o.__staleWhileFetching:o}async fetch(t,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:u=this.updateAgeOnGet,noDeleteOnStaleGet:o=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:x,forceRefresh:v=!1,status:y,signal:b}=n;if(!A(this,Kt))return y&&(y.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:u,noDeleteOnStaleGet:o,status:y});let g={allowStale:r,updateAgeOnGet:u,noDeleteOnStaleGet:o,ttl:a,noDisposeOnSet:s,size:l,sizeCalculation:d,noUpdateTTL:f,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:m,ignoreFetchAbort:p,status:y,signal:b},w=A(this,Ce).get(t);if(w===void 0){y&&(y.fetch="miss");let k=J(this,Y,Uo).call(this,t,w,g,x);return k.__returned=k}else{let k=A(this,ie)[w];if(J(this,Y,ye).call(this,k)){let q=r&&k.__staleWhileFetching!==void 0;return y&&(y.fetch="inflight",q&&(y.returnedStale=!0)),q?k.__staleWhileFetching:k.__returned=k}let D=A(this,ut).call(this,w);if(!v&&!D)return y&&(y.fetch="hit"),J(this,Y,Pr).call(this,w),u&&A(this,cn).call(this,w),y&&A(this,Pt).call(this,y,w),k;let F=J(this,Y,Uo).call(this,t,w,g,x),S=F.__staleWhileFetching!==void 0&&r;return y&&(y.fetch=D?"stale":"refresh",S&&D&&(y.returnedStale=!0)),S?F.__staleWhileFetching:F.__returned=F}}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,Ln);if(!r)throw new Error("no memoMethod provided to constructor");let{context:u,forceRefresh:o,...a}=n,s=this.get(t,a);if(!o&&s!==void 0)return s;let l=r(t,s,{options:a,context:u});return this.set(t,l,a),l}get(t,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:u=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:a}=n,s=A(this,Ce).get(t);if(s!==void 0){let l=A(this,ie)[s],d=J(this,Y,ye).call(this,l);return a&&A(this,Pt).call(this,a,s),A(this,ut).call(this,s)?(a&&(a.get="stale"),d?(a&&r&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),r?l.__staleWhileFetching:void 0):(o||J(this,Y,en).call(this,t,"expire"),a&&r&&(a.returnedStale=!0),r?l:void 0)):(a&&(a.get="hit"),d?l.__staleWhileFetching:(J(this,Y,Pr).call(this,s),u&&A(this,cn).call(this,s),l))}else a&&(a.get="miss")}delete(t){return J(this,Y,en).call(this,t,"delete")}clear(){return J(this,Y,wi).call(this,"delete")}},st=new WeakMap,tt=new WeakMap,mt=new WeakMap,ln=new WeakMap,pt=new WeakMap,On=new WeakMap,Ln=new WeakMap,gt=new WeakMap,Se=new WeakMap,bt=new WeakMap,Ce=new WeakMap,be=new WeakMap,ie=new WeakMap,We=new WeakMap,nt=new WeakMap,Me=new WeakMap,Ie=new WeakMap,yt=new WeakMap,Oe=new WeakMap,wt=new WeakMap,xt=new WeakMap,rt=new WeakMap,ot=new WeakMap,vt=new WeakMap,Kt=new WeakMap,Ge=new WeakMap,Vn=new WeakMap,Y=new WeakSet,gi=function(){let t=new wo(A(this,st)),n=new wo(A(this,st));ne(this,rt,t),ne(this,xt,n);let r=this.ttlAutopurge?new Array(A(this,st)):void 0;ne(this,ot,r),ne(this,Ir,(s,l,d=A(this,gt).now())=>{n[s]=l!==0?d:0,t[s]=l,u(s,l)}),ne(this,cn,s=>{n[s]=t[s]!==0?A(this,gt).now():0,u(s,t[s])});let u=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,ut).call(this,s)&&J(this,Y,en).call(this,A(this,be)[s],"expire")},l+1);d.unref&&d.unref(),r[s]=d}}:()=>{};ne(this,Pt,(s,l)=>{if(t[l]){let d=t[l],f=n[l];if(!d||!f)return;s.ttl=d,s.start=f,s.now=o||a();let c=s.now-f;s.remainingTTL=d-c}});let o=0,a=()=>{let s=A(this,gt).now();if(this.ttlResolution>0){o=s;let l=setTimeout(()=>o=0,this.ttlResolution);l.unref&&l.unref()}return s};this.getRemainingTTL=s=>{let l=A(this,Ce).get(s);if(l===void 0)return 0;let d=t[l],f=n[l];if(!d||!f)return 1/0;let c=(o||a())-f;return d-c},ne(this,ut,s=>{let l=n[s],d=t[s];return!!d&&!!l&&(o||a())-l>d})},cn=new WeakMap,Pt=new WeakMap,Ir=new WeakMap,ut=new WeakMap,mc=function(){let t=new wo(A(this,st));ne(this,bt,0),ne(this,wt,t),ne(this,dn,n=>{ne(this,bt,A(this,bt)-t[n]),t[n]=0}),ne(this,Or,(n,r,u,o)=>{if(J(this,Y,ye).call(this,r))return 0;if(!Xt(u))if(o){if(typeof o!="function")throw new TypeError("sizeCalculation must be a function");if(u=o(r,n),!Xt(u))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 u}),ne(this,Pn,(n,r,u)=>{if(t[n]=r,A(this,tt)){let o=A(this,tt)-t[n];for(;A(this,bt)>o;)J(this,Y,$o).call(this,!0)}ne(this,bt,A(this,bt)+t[n]),u&&(u.entrySize=r,u.totalCalculatedSize=A(this,bt))})},dn=new WeakMap,Pn=new WeakMap,Or=new WeakMap,Qt=function*({allowStale:t=this.allowStale}={}){if(A(this,Se))for(let n=A(this,Ie);!(!J(this,Y,bi).call(this,n)||((t||!A(this,ut).call(this,n))&&(yield n),n===A(this,Me)));)n=A(this,nt)[n]},Jt=function*({allowStale:t=this.allowStale}={}){if(A(this,Se))for(let n=A(this,Me);!(!J(this,Y,bi).call(this,n)||((t||!A(this,ut).call(this,n))&&(yield n),n===A(this,Ie)));)n=A(this,We)[n]},bi=function(t){return t!==void 0&&A(this,Ce).get(A(this,be)[t])===t},$o=function(t){var o,a,s;let n=A(this,Me),r=A(this,be)[n],u=A(this,ie)[n];return A(this,Kt)&&J(this,Y,ye).call(this,u)?u.__abortController.abort(new Error("evicted")):(A(this,vt)||A(this,Ge))&&(A(this,vt)&&((o=A(this,mt))==null||o.call(this,u,r,"evict")),A(this,Ge)&&((a=A(this,Oe))==null||a.push([u,r,"evict"]))),A(this,dn).call(this,n),(s=A(this,ot))!=null&&s[n]&&(clearTimeout(A(this,ot)[n]),A(this,ot)[n]=void 0),t&&(A(this,be)[n]=void 0,A(this,ie)[n]=void 0,A(this,yt).push(n)),A(this,Se)===1?(ne(this,Me,ne(this,Ie,0)),A(this,yt).length=0):ne(this,Me,A(this,We)[n]),A(this,Ce).delete(r),Ho(this,Se)._--,n},Uo=function(t,n,r,u){let o=n===void 0?void 0:A(this,ie)[n];if(J(this,Y,ye).call(this,o))return o;let a=new yo,{signal:s}=r;s==null||s.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});let l={signal:a.signal,options:r,context:u},d=(x,v=!1)=>{let{aborted:y}=a.signal,b=r.ignoreFetchAbort&&x!==void 0,g=r.ignoreFetchAbort||!!(r.allowStaleOnFetchAbort&&x!==void 0);if(r.status&&(y&&!v?(r.status.fetchAborted=!0,r.status.fetchError=a.signal.reason,b&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),y&&!b&&!v)return c(a.signal.reason,g);let w=p,k=A(this,ie)[n];return(k===p||b&&v&&k===void 0)&&(x===void 0?w.__staleWhileFetching!==void 0?A(this,ie)[n]=w.__staleWhileFetching:J(this,Y,en).call(this,t,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(t,x,l.options))),x},f=x=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=x),c(x,!1)),c=(x,v)=>{let{aborted:y}=a.signal,b=y&&r.allowStaleOnFetchAbort,g=b||r.allowStaleOnFetchRejection,w=g||r.noDeleteOnFetchRejection,k=p;if(A(this,ie)[n]===p&&(!w||!v&&k.__staleWhileFetching===void 0?J(this,Y,en).call(this,t,"fetch"):b||(A(this,ie)[n]=k.__staleWhileFetching)),g)return r.status&&k.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),k.__staleWhileFetching;if(k.__returned===k)throw x},h=(x,v)=>{var b;let y=(b=A(this,On))==null?void 0:b.call(this,t,o,l);y&&y instanceof Promise&&y.then(g=>x(g===void 0?void 0:g),v),a.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(x(void 0),r.allowStaleOnFetchAbort&&(x=g=>d(g,!0)))})};r.status&&(r.status.fetchDispatched=!0);let p=new Promise(h).then(d,f),m=Object.assign(p,{__abortController:a,__staleWhileFetching:o,__returned:void 0});return n===void 0?(this.set(t,m,{...l.options,status:void 0}),n=A(this,Ce).get(t)):A(this,ie)[n]=m,m},ye=function(t){if(!A(this,Kt))return!1;let n=t;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof yo},yi=function(t,n){A(this,nt)[n]=t,A(this,We)[t]=n},Pr=function(t){t!==A(this,Ie)&&(t===A(this,Me)?ne(this,Me,A(this,We)[t]):J(this,Y,yi).call(this,A(this,nt)[t],A(this,We)[t]),J(this,Y,yi).call(this,A(this,Ie),t),ne(this,Ie,t))},en=function(t,n){var u,o,a,s,l,d;let r=!1;if(A(this,Se)!==0){let f=A(this,Ce).get(t);if(f!==void 0)if((u=A(this,ot))!=null&&u[f]&&(clearTimeout((o=A(this,ot))==null?void 0:o[f]),A(this,ot)[f]=void 0),r=!0,A(this,Se)===1)J(this,Y,wi).call(this,n);else{A(this,dn).call(this,f);let c=A(this,ie)[f];if(J(this,Y,ye).call(this,c)?c.__abortController.abort(new Error("deleted")):(A(this,vt)||A(this,Ge))&&(A(this,vt)&&((a=A(this,mt))==null||a.call(this,c,t,n)),A(this,Ge)&&((s=A(this,Oe))==null||s.push([c,t,n]))),A(this,Ce).delete(t),A(this,be)[f]=void 0,A(this,ie)[f]=void 0,f===A(this,Ie))ne(this,Ie,A(this,nt)[f]);else if(f===A(this,Me))ne(this,Me,A(this,We)[f]);else{let h=A(this,nt)[f];A(this,We)[h]=A(this,We)[f];let p=A(this,We)[f];A(this,nt)[p]=A(this,nt)[f]}Ho(this,Se)._--,A(this,yt).push(f)}}if(A(this,Ge)&&((l=A(this,Oe))!=null&&l.length)){let f=A(this,Oe),c;for(;c=f==null?void 0:f.shift();)(d=A(this,pt))==null||d.call(this,...c)}return r},wi=function(t){var n,r,u,o;for(let a of J(this,Y,Jt).call(this,{allowStale:!0})){let s=A(this,ie)[a];if(J(this,Y,ye).call(this,s))s.__abortController.abort(new Error("deleted"));else{let l=A(this,be)[a];A(this,vt)&&((n=A(this,mt))==null||n.call(this,s,l,t)),A(this,Ge)&&((r=A(this,Oe))==null||r.push([s,l,t]))}}if(A(this,Ce).clear(),A(this,ie).fill(void 0),A(this,be).fill(void 0),A(this,rt)&&A(this,xt)){A(this,rt).fill(0),A(this,xt).fill(0);for(let a of A(this,ot)??[])a!==void 0&&clearTimeout(a);(u=A(this,ot))==null||u.fill(void 0)}if(A(this,wt)&&A(this,wt).fill(0),ne(this,Me,0),ne(this,Ie,0),A(this,yt).length=0,ne(this,bt,0),ne(this,Se,0),A(this,Ge)&&A(this,Oe)){let a=A(this,Oe),s;for(;s=a==null?void 0:a.shift();)(o=A(this,pt))==null||o.call(this,...s)}},Rn);/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */var on=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},xo=function(t){return t.tagName==="IMG"},ep=function(t){return NodeList.prototype.isPrototypeOf(t)},vo=function(t){return t&&t.nodeType===1},zs=function(t){var n=t.currentSrc||t.src;return n.substr(-4).toLowerCase()===".svg"},js=function(t){try{return Array.isArray(t)?t.filter(xo):ep(t)?[].slice.call(t).filter(xo):vo(t)?[t].filter(xo):typeof t=="string"?[].slice.call(document.querySelectorAll(t)).filter(xo):[]}catch{throw new TypeError(`The provided selector is invalid.
|
|
34
|
+
`;return Tu("caf-assistant-widget-container__error",b)}),p=()=>{const b=a.value;b&&(s.value=new Hh(b))},m=()=>{const b=s.value;b&&(b.dispose(),s.value=null)},x=()=>{const b=o.value,g=u.value;b&&(b.unmount(),b.dispose()),g&&g.cleanup(),o.value=null,u.value=null},v=async()=>{const b=await n(e.widgetAPIURL);if(!b)throw new Error("Failed to load widget API");await b.initialize();const g=b.createWidget();u.value=b,o.value=g},y=b=>{console.error(b),l.value=b};return i.watch(()=>e.widgetAPIURL,async()=>{if(a.value)try{x(),await v();const b=a.value,g=o.value;g==null||g.updateOptions(e.widgetOptions),g==null||g.updateData(e.widgetData),b&&g&&await g.mount(b)}catch(b){y(b)}}),i.watch(()=>e.widgetOptions,(b,g)=>{try{const w=o.value;w&&(!g||!r(g,b))&&w.updateOptions(b)}catch(w){y(w)}}),i.watch(()=>e.widgetData,(b,g)=>{try{const w=o.value;w&&(!g||!r(g,b))&&w.updateData(b)}catch(w){y(w)}}),i.onMounted(async()=>{try{const b=a.value;if(b){p();const g=s.value;if(g){await v();const w=o.value;w&&(w.updateOptions(e.widgetOptions),w.updateData(e.widgetData),w.mount(g.getElement()),i.nextTick(()=>{b.parentElement&&(b.style.width="100%")}))}}}catch(b){y(b)}}),i.onBeforeUnmount(async()=>{try{x(),m()}catch(b){console.error(b)}}),()=>i.createVNode("div",{class:d.value},[i.createVNode("div",{ref:a,class:c},null),i.createVNode("div",{class:h.value},null)])}}),ss=(e,t)=>{var n;if(e.type===Pe.AssistantWidgetComplete){const r=e;return r.widgetUrl?i.createVNode(Cn,{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===Pe.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},Gh=3e4,ls=8e3,Ue=new Map,ft=new Map,ir=new Map,Dt=[];function Te(e){return String(e??"").replace(/^\ufeff/,"").replace(/[\u200b\u200c\u200d]/g,"").replace(/\u00a0/g," ").trim()}function co(e){const t=Te(e);if(t)for(let n=Dt.length-1;n>=0;n--)Dt[n]===t&&Dt.splice(n,1)}function Xh(e){typeof window>"u"||(window.__fluens_dynamic_component_bootstrap_instance_id=e)}function fo(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 qh(){return Dt[Dt.length-1]||void 0}function ho(e,t){const n=Te(t);return n?Te(e.instanceId)===n||e.componentId!=null&&Te(String(e.componentId))===n||e.name!=null&&Te(String(e.name))===n:!1}function Ou(e){const t=Te(e);if(!t)return null;const n=Ue.get(t);if(n)return{canonicalKey:t,entry:n};for(const[u,o]of Ue.entries())if(Te(u)===t)return{canonicalKey:u,entry:o};const r=[];for(const[u,o]of Ue.entries())ho(o.config,t)&&r.push({key:u,entry:o});if(r.length===1){const{key:u,entry:o}=r[0];return u!==t&&console.warn(`[DynamicComponent] register id "${t}" resolved to pending instanceId "${u}" (alias match)`),{canonicalKey:u,entry:o}}if(r.length>1)return console.warn(`[DynamicComponent] register id "${t}" is ambiguous (${r.length} pending matches); refusing`),null;if(Ue.size===1){const[u,o]=[...Ue.entries()][0];return console.warn(`[DynamicComponent] register id "${t}" unmatched; using sole pending instance "${u}"`),{canonicalKey:u,entry:o}}return null}function cs(e,t){for(const[n,r]of ft){const u=Te(n),o=e!==""&&u===e,a=String(t??"").trim(),s=e&&ho(r.config,e)||a&&ho(r.config,a);if(o||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 Lu(){return{pendingKeys:[...Ue.keys()],bootstrapQueue:[...Dt],activeKeys:[...ft.keys()],...typeof window<"u"?{windowBootstrapPeek:window.__fluens_dynamic_component_bootstrap_instance_id}:{}}}function Zh(e){console.warn("[DynamicComponent] register diagnostics",{claimedNormalized:e,...Lu()})}function Yh(e){const t=Te(e);if(t){if(cs(t,e))return{ok:!1,reason:"already_active_duplicate"};const r=Ou(t);if(r)return{ok:!0,...r}}else if(cs("",e))return{ok:!1,reason:"already_active_duplicate"};for(let n=0;n<Dt.length;n++){const r=Dt[n],u=Ou(r);if(u)return Dt.splice(n,1),t&&Te(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,...u}}return{ok:!1,reason:"no_pending"}}function ds(e){const t=Te(e);if(!t)return null;const n=ft.get(t);if(n)return n;for(const[o,a]of ft.entries())if(Te(o)===t)return a;const r=[];for(const o of ft.values())ho(o.config,t)&&r.push(o);const u=[...new Map(r.map(o=>[o.config.instanceId,o])).values()];return u.length===1?(u[0].config.instanceId!==t&&console.warn(`[DynamicComponent] assistant post id "${t}" resolved to instanceId "${u[0].config.instanceId}" (alias match)`),u[0]):(u.length>1&&console.warn(`[DynamicComponent] assistant post id "${t}" is ambiguous (${u.length} active matches)`),null)}function Kh(e){const t=Te(e);if(!t)return null;const n=ft.get(t);if(n)return n;for(const[r,u]of ft.entries())if(Te(r)===t)return u;return null}function Qh(e){const t=Te(e);if(!t)return t;const n=ds(t);if(n)return n.config.instanceId;const r=Ou(t);return r?r.canonicalKey:t}function Vu(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e}}}function fs(e,t){if(typeof e.onAssistantMessage!="function")return!0;try{return e.onAssistantMessage(Vu(t)),!0}catch(n){return console.warn("[DynamicComponent] onAssistantMessage failed",n),!1}}function Jh(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 hs(e){const t=ft.get(e.instanceId);if(t)return Promise.resolve(t.api);const n=Ue.get(e.instanceId);if(n)return new Promise((u,o)=>{const a=n.resolve,s=n.reject;n.resolve=l=>{a(l),u(l)},n.reject=l=>{s(l),o(l)}});if((e.name||e.componentId)&&!e.jsUrl)return Promise.reject(new Error(`Dynamic component resource is empty: ${e.name||e.componentId}`));const r=Jh(e);return new Promise((u,o)=>{const a={config:e,container:r,resolve:u,reject:o,timeoutId:0},s=setTimeout(()=>{a.postLoadRegisterCheckTimerId!=null&&(clearTimeout(a.postLoadRegisterCheckTimerId),a.postLoadRegisterCheckTimerId=void 0),Ue.delete(e.instanceId),co(e.instanceId),fo(e.instanceId),o(new Error(`Dynamic component script load timeout: ${e.name||e.componentId}`))},Gh);a.timeoutId=s,Ue.set(e.instanceId,a),Dt.push(e.instanceId),Xh(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,Ue.has(e.instanceId)&&(clearTimeout(s),Ue.delete(e.instanceId),co(e.instanceId),fo(e.instanceId),o(new Error(`Dynamic component did not call __fluens_dynamic_component_register within ${ls}ms after load: ${e.name||e.componentId}`)))},ls)},l.onerror=()=>{clearTimeout(s),a.postLoadRegisterCheckTimerId!=null&&(clearTimeout(a.postLoadRegisterCheckTimerId),a.postLoadRegisterCheckTimerId=void 0),Ue.delete(e.instanceId),co(e.instanceId),fo(e.instanceId),o(new Error(`Failed to load dynamic component: ${e.name||e.componentId}`))},document.head.appendChild(l)})}function ms(e){var u;const t=ft.get(e);if(t){try{t.api.unmount()}catch{}(u=t.scriptElement)==null||u.remove(),ft.delete(e)}const n=Ue.get(e);n&&(n.postLoadRegisterCheckTimerId!=null&&(clearTimeout(n.postLoadRegisterCheckTimerId),n.postLoadRegisterCheckTimerId=void 0),clearTimeout(n.timeoutId),Ue.delete(e)),ir.delete(e);const r=document.getElementById(`fluens-dynamic-component-${e}`);r&&r.remove()}function em(e,t){const n=Te(e);if(!n)return!1;const r=ds(n);if(r)return fs(r.api,t);const u=Qh(n),o=ir.get(u)??[],a=o.findIndex(s=>s.messageId===t.messageId);return a>=0?o[a]=Vu(t):o.push(Vu(t)),ir.set(u,o),!1}typeof window<"u"&&(window.__fluens_get_dynamic_component_registry_debug_snapshot=Lu,window.__fluens_dynamic_component_register=function(e,t){const n=Te(e),r=Yh(e);if(!r.ok){if(r.reason==="already_active_duplicate")return;Zh(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:u,entry:o}=r;co(u),fo(u),o.postLoadRegisterCheckTimerId!=null&&(clearTimeout(o.postLoadRegisterCheckTimerId),o.postLoadRegisterCheckTimerId=void 0),clearTimeout(o.timeoutId),Ue.delete(u);const a={config:o.config,container:o.container,api:t,scriptElement:document.currentScript};ft.set(u,a),a.container.parentElement;try{t.mount(o.container,o.config)}catch(l){console.error(`Failed to mount dynamic component: ${u}`,l)}const s=[u];n&&n!==u&&s.push(n);for(const l of s){const d=ir.get(l);d&&d.length>0&&(ir.delete(l),d.forEach(f=>fs(t,f)))}o.resolve(t)});const _n=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}`),u=i.computed(()=>e.config.position==="inline"),o=i.computed(()=>!e.config.jsUrl&&!!e.config.url),a=i.computed(()=>({...u.value?{width:"fit-content",maxWidth:"100%"}:{width:"100%"},height:"auto",...t.value==="ready"&&u.value?{padding:"16px 0"}:{},...t.value==="ready"&&!u.value?{height:"100%",overflow:"hidden"}:{}}));return i.onMounted(()=>{o.value||(t.value="loading",n.value="",hs(e.config).then(()=>{t.value="ready"}).catch(s=>{t.value="error",n.value=s.message||"Unknown error"}))}),i.onUnmounted(()=>{o.value||ms(e.config.instanceId)}),()=>o.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])])])}}),ps=(e,t,n)=>{if(e.type===Pe.DynamicComponentComplete){const r=e;if(!r.config)return null;if(r.config.position==="inline")return i.createVNode(_n,{key:`dc-${t}`,config:r.config},null);const u={type:"file",fileContent:{type:"md",name:r.config.title}},o={onPreviewFile:a=>{n.emit("showDynamicComponent",r.config)}};return n.emitDynamicComponentsDetectedOnce(r.config),i.createVNode("div",{style:{padding:"16px 0"}},[n.renderFileEmbeddedContent(u,o)])}return e.type===Pe.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 tm(){return{[Pe.Text]:Qf,[Pe.AssistantWidgetComplete]:ss,[Pe.AssistantWidgetPending]:ss,[Pe.DynamicComponentComplete]:ps,[Pe.DynamicComponentPending]:ps}}const nm=i.defineComponent({name:"FXBubbleTextContent",props:Dc,emits:["dynamicComponentsDetected","showDynamicComponent"],setup(e,t){const{renderFileEmbeddedContent:n}=Ii(),{propertyStates:r,registerProperty:u,updatePropertyValue:o,startStreaming:a}=zr();u("title",e.title??""),u("subtitle",e.subtitle??""),u("text",e.text??""),i.watch([()=>e.title,()=>e.subtitle,()=>e.text],([y,b,g])=>{o("title",y??""),o("subtitle",b??""),o("text",g??"")});const s=i.computed(()=>e.textFormat==="markdown"),l=i.ref(!1),d=i.computed(()=>{var y,b,g;return l.value?{title:((y=r.title)==null?void 0:y.displayedValue)??"",subtitle:((b=r.subtitle)==null?void 0:b.displayedValue)??"",text:((g=r.text)==null?void 0:g.displayedValue)??""}:{title:e.title,subtitle:e.subtitle,text:e.text}}),f=i.computed(()=>Yc(d.value.text)),c=new Set;function h(y){const b=String(y.instanceId??"").trim();!b||c.has(b)||(c.add(b),i.nextTick(()=>{var g;t.emit("dynamicComponentsDetected",[y]),(g=e.onDynamicComponentsDetected)==null||g.call(e,[y])}))}function p(y,...b){var g;t.emit(y,...b),y==="showDynamicComponent"&&((g=e.onShowDynamicComponent)==null||g.call(e,b[0]))}const m={shouldShowMarkdown:s,emit:p,emitDynamicComponentsDetectedOnce:h,renderFileEmbeddedContent:n},x=tm(),v=()=>f.value.length===0?null:i.createVNode("div",{class:"f-chat-bubble-text-collection"},[f.value.map((y,b)=>{var g;return(g=x[y.type])==null?void 0:g.call(x,y,b,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]),v()])}}),rm={content:{type:Object},outputMode:{type:String,default:"full"}},om=i.defineComponent({name:"FXBubbleThink",props:rm,setup(e,t){var q;const{propertyStates:n,registerProperty:r,updatePropertyValue:u,isAllDone:o}=zr(),{elapsedSeconds:a,hasEverStarted:s,start:l,stop:d,reset:f}=Xo(),c=i.ref(((q=e.content)==null?void 0:q.completed)!==!0),h=i.ref(null),p=i.ref(null),m=i.ref(!1),x=i.ref(!1),v=i.computed(()=>e.outputMode==="streaming"),y=i.computed(()=>{var H;return(H=e.content)==null?void 0:H.completed}),b=i.computed(()=>{var z,$;if(y.value){const I=s.value?`(用时${a.value}秒)`:"";return((z=e.content)==null?void 0:z.title)??"思考完成"+I}return(($=e.content)==null?void 0:$.title)??"正在思考......"}),g=i.computed(()=>{var H,z;return v.value?((H=n.content)==null?void 0:H.displayedValue)??"":((z=e.content)==null?void 0:z.content)??""}),w=i.computed(()=>({"f-chat-bubble-thinking":!0,"is-pending":!y.value,"is-completed":y.value})),k=()=>{const H=h.value;if(!H||!m.value){x.value=!1;return}x.value=H.scrollTop>0};i.watch(()=>y.value,H=>{H?d():l()},{immediate:!0}),i.watch(()=>y.value,H=>{H&&(c.value=!1)}),i.watch(()=>e.content,H=>{H&&(n.content?u("content",H.content??""):r("content",H.content??""))},{immediate:!0}),i.watch(g,async()=>{if(c.value){await i.nextTick();const H=h.value;if(!H)return;await i.nextTick(),m.value=H.scrollHeight>H.clientHeight,m.value?(H.scrollTop=H.scrollHeight,x.value=!0):x.value=!1}},{immediate:!0}),i.watch(c,async H=>{if(H){await i.nextTick();const z=h.value;if(!z)return;await i.nextTick(),m.value=z.scrollHeight>z.clientHeight,m.value?(z.scrollTop=z.scrollHeight,x.value=!0):x.value=!1}}),i.onUnmounted(()=>{f()}),t.expose({instance:{get loadDone(){return e.content?(v.value?o.value:!0)&&y.value:!0}}});const N=()=>{c.value=!c.value},F=()=>y.value?null:i.createVNode(tn,{status:"Working",variant:"thinking"},null),S=()=>!g.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&&x.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:g.value},null)])])]);return()=>i.createVNode("div",{class:w.value},[i.createVNode("div",{class:"f-chat-bubble-thinking-header",onClick:N},[F(),i.createVNode("span",{class:"f-chat-bubble-thinking-title",innerHTML:b.value},null),g.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)]),S()])}}),um={content:{type:Object}},gs={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},theme:{type:String,default:"default"},title:{type:String},visible:{type:Boolean,default:!1},zIndex:{type:Number,default:-1},limitContentBySpace:{type:Boolean,default:!1},beforeClose:{type:Function}};function im(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),u=i.computed(()=>t==="body"?0:t?t.getBoundingClientRect().left:0),o=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:u,hostTop:n,hostWidth:o,hostHeight:a,hostBottom:r}}function am(e,t,n,r){const u=i.ref(e.offsetX||0),o=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),x=i.computed(()=>document.documentElement.scrollTop),{hostLeft:v,hostTop:y,hostWidth:b,hostHeight:g,hostBottom:w}=r;i.watch(()=>e.offsetX,L=>{u.value=L});const k=i.computed(()=>{const L={left:`${h.value}px`,top:`${p.value}px`,transform:`translate(${u.value}px, ${o.value}px)`};return e.zIndex!==-1&&(L["z-index"]=e.zIndex),e.fitContent?e.keepWidthWithReference&&n.value&&a.value>=n.value.getBoundingClientRect().width&&(L.width=`${a.value}px`):a.value!==-1&&(L.width=`${a.value}px`),e.minWidth!==-1&&(L.minWidth=`${e.minWidth}px`),e.customStyles&&Object.assign(L,e.customStyles),s.value>0&&(L.maxHeight=s.value+"px"),L}),N=i.computed(()=>({left:`${c.value}px`,transform:`translateX(${e.arrowOffsetX}px)`}));function F(L){if(L&&e.keepWidthWithReference){const R=L.getBoundingClientRect();a.value=Math.max(e.minWidth,R.width)}}function S(L,R){const M=b.value-L.width-4;return M>0?M:R}function q(L,R){const M=g.value-L.height-12;return M>0?M:R}function H(L,R,M){const Q=c.value,re=R.left-v.value+R.width/2+m.value,oe=R.top-y.value-(L.height+M.height)+x.value;return{popoverLeft:re,popoverTop:oe,arrowLeft:Q}}function z(L,R,M){const Q=R.top-y.value+(R.height+M.height)+x.value,re=q(L,Q);return Math.min(Q,re)}function $(L,R){const M=S(R,L),Q=L<=M?c.value:L-M;return{popoverLeft:Math.min(L,M),arrowLeft:Q,maxHeight:0}}function I(L,R){const M=S(R,L),Q=L<=M?c.value:L-M;return{popoverLeft:L,arrowLeft:Q,maxHeight:0}}function G(L,R,M){const Q=R.left-v.value+m.value,{arrowLeft:re,popoverLeft:oe}=I(Q,L),{popoverTop:ce}=H(L,R,M);return{popoverLeft:oe,popoverTop:ce,arrowLeft:re,maxHeight:0}}function X(L,R,M){const Q=R.left-v.value+R.width/2-(M.width/2-(L.left-v.value))+m.value,{arrowLeft:re,popoverLeft:oe}=$(Q,L),ce=z(L,R,M);return{popoverLeft:oe,popoverTop:ce,arrowLeft:re,maxHeight:0}}function T(L,R,M){const Q=R.left-v.value+m.value,{arrowLeft:re,popoverLeft:oe}=$(Q,L),ce=z(L,R,M);return{popoverLeft:oe,popoverTop:ce,arrowLeft:re,maxHeight:0}}function j(L,R,M){const Q=R.right-v.value-L.width+m.value,oe=Math.max(Q,4),ce=oe-Q,le=L.width-M.width-20-ce,he=z(L,R,M);return{popoverLeft:oe,popoverTop:he,arrowLeft:le,maxHeight:0}}function B(L,R,M){const Q=R.left-v.value;let re=0,oe=0,ce=0,le=0,he="bottom-left";window.innerWidth-Q>L.width?re=Q+m.value:(re=R.right-L.width+m.value,ce=L.width-M.width-20);let Be=0;if(e.limitContentBySpace){const fn={topHeight:R.top-y.value-M.height-8,bottomHeight:w.value-R.bottom-M.height-8};Be=Math.max(fn.topHeight,fn.bottomHeight),L.height>Be&&(le=Be,n.value.classList.add("popover-limitmax"))}const At=le?Math.floor(le):L.height,Xe=R.top-y.value+(R.height+M.height);return w.value-Xe>At?oe=Xe+x.value:(oe=R.top-At-M.height+x.value,w.value-Xe>R.top?(oe=Xe+x.value,At>R.top&&(oe=w.value-At)):(oe=oe<0?0:oe,he="top")),n.value.classList.add("popover-"+he,"bs-popover-"+he),{popoverLeft:re<0?5:re,popoverTop:oe,arrowLeft:ce,maxHeight:le}}function Z(L,R,M){const Q=R.left+R.width,re=0;let oe=0,ce=L.height;if(e.limitContentBySpace){const Rt=g.value-16-Math.abs(o.value);L.height>Rt?(oe=Rt,ce=Rt,n.value.classList.add("popover-limitmax")):n.value.classList.remove("popover-limitmax")}const le=Math.max(R.top-(ce/2-R.height/2),y.value);let he=y.value+g.value-ce-o.value;he<0&&(he=le);const Be=Math.min(le,he);return{popoverLeft:Q,popoverTop:Be,arrowLeft:re,maxHeight:oe}}function ue(L,R,M){const Q=R.left+R.width,re=Math.max(R.top-R.height,y.value);let oe=y.value+g.value-L.height;oe<0&&(oe=re);const ce=Math.min(re,oe);return{popoverLeft:Q,popoverTop:ce,arrowLeft:0,maxHeight:0}}function C(L,R,M){const Q=R.left-v.value+R.width/2-L.width/2+m.value,re=R.top-y.value-(L.height+M.height)+x.value,oe=L.width/2-M.width/2;return{popoverLeft:Q,popoverTop:re,arrowLeft:oe,maxHeight:0}}function E(L,R,M){const Q=R.left-v.value+R.width/2-L.width/2+m.value,re=z(L,R,M),oe=L.width/2-M.width/2;return{popoverLeft:Q,popoverTop:re,arrowLeft:oe,maxHeight:0}}const D=new Map([["top",H],["top-left",G],["top-center",C],["bottom",X],["bottom-left",T],["bottom-right",j],["bottom-center",E],["right",Z],["right-top",ue],["auto",B]]);function O(L){var oe;e.keepWidthWithReference&&F(L);const R=L.getBoundingClientRect();l.value=R.top,d.value=R.left;const M=t.value?t.value.getBoundingClientRect():{height:4,width:4},Q=(oe=n.value)==null?void 0:oe.getBoundingClientRect();a.value=Q.width;const re=D.get(f.value);if(re){const{arrowLeft:ce,popoverLeft:le,popoverTop:he,maxHeight:Be}=re(Q,R,M);c.value=ce,h.value=le,p.value=he,s.value=Be||-1}}function P(L){if(L){const R=L.getBoundingClientRect();(R.left!==d.value||R.top!==l.value)&&O(L)}}function U(){f.value=e.placement,c.value=0,h.value=0,p.value=0,a.value=-1}return{arrowStyle:N,popoverStyle:k,position:f,popoverWidth:a,fitToReference:F,followToReferencePosition:P,locateToReference:O,resetPosition:U}}function sm(e,t,n,r,u,o,a){const s=i.ref(e.visible),l=i.computed(()=>s.value),{fitToReference:d,locateToReference:f,resetPosition:c}=a;i.watch(()=>e.visible,async x=>{x&&e.reference?(await i.nextTick(),m(e.reference)):x||p()},{flush:"post"});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=x=>{var b;if(!u.value)return;const v=u.value.contains(x.target);if(x.type==="scroll"||x.type==="wheel"&&v){p();return}if(x.target.closest(".time-picker-panel"))return;const y=(b=x.target)==null?void 0:b.closest(".popover");if(y&&r.value&&y===r.value){x.type!=="scroll"&&x.type!=="wheel"&&x.stopPropagation();return}if(!v&&s.value){const g=u.value.closest(".popover");g&&g.removeEventListener("click",h),p()}};async function m(x){if(r.value&&(e.showArrow===!1||e.showArrow&&n.value)&&x){c(),s.value=!0,u.value=x,o.value&&d(x),await i.nextTick(),f(x),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 v=x.closest(".popover");v&&v.addEventListener("click",h),t.emit("shown")}}return t.expose({hide:p,popoverRef:r,show:m,shown:l,isShow:s}),{showPopover:s,hidePopverOnClickBodyHandler:h}}function lm(e,t,n,r,u,o){const{popoverWidth:a,fitToReference:s,followToReferencePosition:l}=u;function d(){var f;if(o.value&&((f=o.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 cm(e,t=500){const n=i.ref(e.value);let r;const u=i.watch(e,a=>{clearTimeout(r),r=setTimeout(()=>{n.value=a},t)}),o=()=>{clearTimeout(r),u()};return i.onUnmounted(o),{delayedValue:n,cleanup:o}}const nn=i.defineComponent({name:"FXPopover",props:gs,emits:["shown","hidden"],setup(e,t){const n=i.ref(),r=i.ref(),u=i.ref(e.reference),o=i.ref(e.keepWidthWithReference),a=i.computed(()=>!!e.title),s=im(e),{host:l}=s,d=am(e,n,r,s),{position:f,arrowStyle:c,popoverStyle:h,fitToReference:p,locateToReference:m}=d,{showPopover:x,hidePopverOnClickBodyHandler:v}=sm(e,t,n,r,u,o,d),{onResize:y}=lm(e,t,u,o,d,r),b=i.computed(()=>{let F=f.value;const S=`popover in popover-${F}`,q=`bs-popover-${F}`,H={"popover-fitcontent":e.fitContent,fade:!0};H[S]=!0,H[q]=!0,e.theme==="dark"&&(H["popover-theme-dark"]=!0);const z=(e.class||"").split(" ");return e.isSimpleTips&&z.unshift("popover-tips"),z.reduce(($,I)=>($[I]=!0,$),H),H}),g=i.computed(()=>({"popover-content":!0,"popover-body":!0})),w=i.computed(()=>{const F={};return F.opacity=x.value?1:0,F.visibility=x.value?"visible":"hidden",F.zIndex=1060,F}),k=i.computed(()=>e.isSimpleTips?!0:e.showArrow),{delayedValue:N}=cm(w,50);return i.onMounted(()=>{var F;o.value&&p(u.value),e.reference&&m(u.value),window.addEventListener("resize",y),(F=r.value)==null||F.focus()}),i.onUnmounted(()=>{document.body.removeEventListener("click",v),window.removeEventListener("resize",y),x.value=!1}),()=>i.createVNode(i.Teleport,{to:l},{default:()=>{var F;return[i.withDirectives(i.createVNode("div",{tabindex:"-1",ref:r,class:b.value,style:{...h.value,...N.value},onMousedown:S=>{S.stopPropagation()},onClick:S=>{S.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:g.value},[t.slots.default&&((F=t.slots)==null?void 0:F.default())])]),[[i.vShow,x.value]])]}})}}),mo="FarrisX_PopoverInstancesKey";window[mo]=window[mo]||new WeakMap;function Pu(e,t,n){e.stopPropagation();const r=t.value;r&&r.value&&!r.value.isShow&&(r.value.show(n),window[mo].set(n,r.value))}function bs(e,t,n){e.stopPropagation(),t.value.value.hide(),window[mo].delete(n)}function dm(e,t,n){e.stopPropagation();const r=t.value;r&&r.value&&(r.value.isShow?bs(e,t,n):Pu(e,t,n))}function ys(e,t,n){t.arg&&t.arg==="toggle"?dm(e,t,n):Pu(e,t,n)}const ws={mounted:(e,t,n)=>{t.modifiers.hover?(e.addEventListener("mouseenter",r=>Pu(r,t,e)),e.addEventListener("mouseleave",r=>bs(r,t,e))):t.modifiers.click?e.addEventListener("click",r=>ys(r,t,e)):e.addEventListener("click",r=>ys(r,t,e)),e.classList.add("v-popover")},unMounted:(e,t,n)=>{}};nn.install=e=>{e.component(nn.name,nn),e.directive("fxpopover",ws)};const xs={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}},vs={items:{type:Array,default:()=>[]}},As={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"}},po=i.defineComponent({name:"FXTodoListItemView",props:As,emits:["click"],setup(e,{emit:t}){const{propertyStates:n,registerProperty:r,updatePropertyValue:u,startStreaming:o}=zr();r("title",e.title??""),r("task",e.task??""),r("detail",e.message??""),i.watch([()=>e.title,()=>e.task,()=>e.message],([p,m,x])=>{u("title",p??""),u("task",m??""),u("detail",x??"")});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&&o()}),()=>i.createVNode("li",{key:e.id,class:a.value,onClick:l},[e.todoList&&e.todoList.length>0&&i.createVNode(rn,{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(tn,{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])])])}}),ar=i.defineComponent({name:"FXTodoListView",props:vs,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(po,i.mergeProps({key:r},n),null))]):null}}}),fm=300,hm={Working:"正在执行任务",Done:"已完成任务",NotStart:"待执行任务"},rn=i.defineComponent({name:"FXStartedTodo",props:xs,setup(e){const t=i.ref(null),n=i.ref(null),r=i.ref(null),u=i.ref(null),o=i.computed(()=>e.outputMode==="streaming"),{displayContent:a}=Ci(()=>({detail:e.taskDetail??""}),()=>!0,o,{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"&&(u.value!=null&&(window.clearTimeout(u.value),u.value=null),r.value=window.setTimeout(()=>{t.value&&n.value&&n.value.show(t.value),r.value=null},fm))}function f(){e.detailViewMode!=="expand"&&(r.value!=null&&(window.clearTimeout(r.value),r.value=null),u.value=window.setTimeout(()=>{var b,g;(g=(b=n.value)==null?void 0:b.hide)==null||g.call(b),u.value=null},150))}function c(){if(e.detailViewMode==="none")return null;const b=a.value.detail??"";return i.createVNode(i.Fragment,null,[b?i.createVNode("div",{class:"f-chat-started-todo-task-detail"},[b]):null,i.createVNode(ar,{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(nn,{ref:n,class:"f-chat-started-todo-popover"},{default:()=>[i.createVNode("div",{class:"f-chat-started-todo-popover-content",onMouseenter:()=>{u.value!=null&&(window.clearTimeout(u.value),u.value=null)},onMouseleave:f},[c()])]})}const x=i.computed(()=>e.listStatus==="completed"),v=i.computed(()=>{const b=e.todoList??[],g=e.totalCount??b.length;return{done:e.completedCount??b.filter(k=>(k==null?void 0:k.status)==="Done").length,total:g}});function y(){if(!x.value)return null;const{done:b,total:g}=v.value,w=g>0?`已完成 (${b}/${g})`:"已完成";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":x.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"},[hm[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()])}});rn.install=e=>{e.component(rn.name,rn)};const mm=i.defineComponent({name:"FXBubbleThoughtChain",props:um,setup(e,t){const{elapsedSeconds:n,hasEverStarted:r,start:u,stop:o,reset:a}=Xo(),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"?u():c==="Done"?o():a()},{immediate:!0}),i.onUnmounted(()=>{a()}),t.expose({instance:{get loadDone(){return e.content?s.value:!0}}}),()=>{var c,h,p,m,x,v;return e.content?i.createVNode(rn,{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:(x=e.content)==null?void 0:x.completedCount,totalCount:(v=e.content)==null?void 0:v.totalCount},null):null}}}),sr=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]))])])}}),pm=300,En=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}=qo(),r=i.computed(()=>e.content.success===!1),u=i.ref(!1);let o=setTimeout(()=>{u.value=!0},pm);i.onBeforeUnmount(()=>{o&&clearTimeout(o)});const a=i.computed(()=>t.value),s=i.computed(()=>u.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(()=>t.value,(p,m)=>{p&&!m&&(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(tn,{status:"Error",variant:"tool-use"},null):i.createVNode(tn,{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()])])}});En.install=e=>{e.component(En.name,En)};const lr=i.defineComponent({name:"FXBubble",components:{"fx-user-auth-inline":sr,"fx-app-preview-inline":lt,FXToolUse:En},props:Rr,setup(e,t){const n=i.shallowRef(),r=i.ref(),u=i.ref(),o=i.computed(()=>!!e.showAvatar),a=i.computed(()=>o.value===!0||e.header==="ContentHeader"),s=i.computed(()=>t.slots.leftFooter||t.slots.rightFooter),l=i.computed(()=>{var I;return Ee({},(I=e.styles)==null?void 0:I.footer)}),d=I=>{if(e.attachmentRowClickOpensPreview!==!1&&e.onPreview){if(I.type==="md"&&I.content){e.onPreview({content:I.content,contentType:"markdown"});return}if(I!=null&&I.url){const G=I!=null&&I.fullScreenPreview?"fullScreen":"splitScreen";e.onPreview({url:I.url,previewMode:G,title:I.name})}}},f=I=>{if(e.attachmentRowClickOpensPreview===!1||!e.onPreview)return;const G=I==null?void 0:I.filter(T=>T.type==="md"&&T.content);if(G.length===0)return;const X=Object.fromEntries(G.map(T=>[T.name,T.content??""]));e.onPreview({contentMap:X,contentType:"markdown"})},{renderFileEmbeddedContent:c,renderPageEmbeddedContent:h}=Ii(),p=i.ref(""),m=i.computed(()=>{var G,X;if((G=e.content)!=null&&G.footerContent)return e.content.footerContent;const I=(X=e.content)==null?void 0:X.structuredContent;return I&&(I.footerTemplate||I.footerUrl||I.footerFile)?{type:I.footerUrl?"page":I.footerFile?"file":"template",pageUrl:I.footerUrl,fileContent:I.footerFile,template:I.footerTemplate,width:I.footerWidth,height:I.footerHeight}:null});i.watch(()=>{var I;return(I=m.value)==null?void 0:I.width},I=>{if(!I){p.value="";return}if(I.endsWith("%")){const G=parseFloat(I);isNaN(G)||i.nextTick(()=>{var T,j;const X=(j=(T=n.value)==null?void 0:T.parentElement)==null?void 0:j.clientWidth;X&&(p.value=`${X*G/100}px`)})}else p.value=I},{immediate:!0});const x=I=>{if(!I||I.length===0)return"我";const G=I.charAt(0);return/[\u4e00-\u9fa5]/.test(G)?G:G.toUpperCase()};function v(){return e.header==="ContentHeader"?_c:Ec}const y=v(),{renderHeader:b}=y(e,t),g=()=>{var X,T,j;const I=((X=e.content)==null?void 0:X.sender)??"发送人",G=x(((T=e.content)==null?void 0:T.sender)??"");return i.createVNode("div",{class:"f-chat-bubble-avatar"},[(j=e.content)!=null&&j.avatar?i.createVNode("img",{src:e.content.avatar,alt:I},null):i.createVNode("div",{class:"f-chat-bubble-avatar-initial"},[G])])},w=()=>{var G;const I=(G=e.content)==null?void 0:G.toolUseAboveText;return I!=null&&I.length?i.createVNode("div",{class:"f-chat-bubble-tool-use-group"},[I.map((X,T)=>i.createVNode(En,{key:X.toolUseId??`tu-${T}`,content:X},null))]):null},k=()=>{var I;return(I=e.content)!=null&&I.thinkingContent?i.createVNode(om,{ref:r,content:e.content.thinkingContent,outputMode:e.outputMode},null):null},N=()=>{var I;return(I=e.content)!=null&&I.startedTodo?i.createVNode(mm,{ref:u,content:e.content.startedTodo},null):null},F=I=>{if(!(I!=null&&I.type))return null;const{type:G}=I;return G==="page"&&I.pageUrl?h(I,{onNavigate:X=>{var T;(T=e.onPreview)==null||T.call(e,{url:X})}}):G==="file"&&I.fileContent?c(I,{onPreviewFile:d,onBatchPreviewFile:f}):G==="template"&&I.template?I.template():null},S=()=>{var T,j,B;if(!((B=(j=(T=e.content)==null?void 0:T.structuredContent)==null?void 0:j.sections)!=null&&B.length))return null;const{sections:I,showDivider:G}=e.content.structuredContent,X=Z=>{const{content:ue,label:C}=Z;return C||ue&&typeof ue=="string"?i.createVNode(i.Fragment,null,[i.createVNode("span",{class:"f-chat-bubble-structured-section-item-dot"},null),Z.label&&i.createVNode("span",{class:"f-chat-bubble-structured-section-item-label"},[Z.label]),i.createVNode("span",{class:"f-chat-bubble-structured-section-item-content"},[Z.content])]):F(Z.content)};return i.createVNode("div",{class:["f-chat-bubble-structured",{"structure-content-divider":G}]},[I.map((Z,ue)=>i.createVNode("div",{key:ue,class:["f-chat-bubble-structured-section",{"section-divider":Z.showDivider}]},[i.createVNode("div",{class:"f-chat-bubble-structured-section-header"},[Z.icon&&(Z.icon.startsWith("http")||Z.icon.startsWith("//")||Z.icon.startsWith("../")||/\.(png|jpg|jpeg|gif|svg|webp|bmp)$/i.test(Z.icon)?i.createVNode("img",{alt:Z.title,src:Z.icon,class:"f-chat-bubble-structured-section-icon"},null):i.createVNode("i",{class:`fx-icon ${Z.icon}`,style:Z.iconStyle},null)),i.createVNode("span",{class:"f-chat-bubble-structured-section-title"},[Z.title])]),Z.items&&Z.items.length>0&&i.createVNode("div",{class:"f-chat-bubble-structured-section-items"},[Z.items.map((C,E)=>i.createVNode("div",{key:E,class:"f-chat-bubble-structured-section-item"},[X(C)]))])]))])},q=()=>{const I=m.value;if(!I)return null;const G={};return p.value&&(G.width=p.value),I.height&&(G.height=`${I.height}px`),i.createVNode("div",{class:"f-chat-bubble-content-footer",style:G},[F(I)])},H=()=>{const I=e.attachmentRowClickOpensPreview!==!1?d:void 0;return i.createVNode(Di,{attachments:e.attachments??[],enableFixedWidth:e.placement==="end",showDownloadButton:e.attachmentShowDownload!==!1,onPreview:I,onBatchPreview:e.attachmentRowClickOpensPreview!==!1?f:void 0,role:e.role},null)},z=()=>{var G;const I=(G=e.content)==null?void 0:G.compositeInlineBlocks;return I!=null&&I.length?I.map((X,T)=>X.kind==="userAuth"?i.createVNode(i.resolveComponent("fx-user-auth-inline"),{key:`inline-auth-${T}`,content:X.content,onConfirm:e.onUserAuthConfirm},null):i.createVNode(i.resolveComponent("fx-app-preview-inline"),{key:`inline-preview-${T}`,content:X.content,onOpen:e.onPreview},null)):null},$=()=>{var I,G,X,T,j,B;return i.createVNode("div",{class:`f-chat-bubble-content ${e.placement}`},[a.value&&b(),H(),i.createVNode("div",{class:`f-chat-bubble-content-text-wrapper ${e.placement}`},[(I=e.content)!=null&&I.compositeOrderedBeforeMarkdownRender?e.content.compositeOrderedBeforeMarkdownRender():i.createVNode(i.Fragment,null,[k(),w()]),N(),S(),i.createVNode(nm,{title:((G=e.content)==null?void 0:G.title)??"",subtitle:((X=e.content)==null?void 0:X.subtitle)??"",text:typeof((T=e.content)==null?void 0:T.text)=="string"?e.content.text:"",textFormat:((j=e.content)==null?void 0:j.textFormat)??"plain",placement:e.placement,onDynamicComponentsDetected:e==null?void 0:e.onDynamicComponentsDetected,onShowDynamicComponent:e==null?void 0:e.onShowDynamicComponent},null),q(),(B=e.compositeTailRender)==null?void 0:B.call(e),z()]),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,[o.value&&g(),$()]):i.createVNode(i.Fragment,null,[$(),o.value&&g()])])])}}),ks={customClass:{type:[Object,String,Array],default:""},customStyle:{type:[Object,String],default:""}},Ru=i.defineComponent({name:"FXBubbleAction",props:ks,setup(e,t){const n=i.computed(()=>Ee({},e.customStyle));return()=>t.slots.default&&i.createVNode("span",{class:"f-chat-bubble-footer-action",style:n.value},[t.slots.default()])}});lr.install=e=>{e.component(lr.name,lr),e.component(Ru.name,Ru)};const Cs={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"}},_s={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:()=>({})}},go=i.defineComponent({name:"FXCarouselItem",props:_s,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 Ae(f,(c=e.classNames)==null?void 0:c.item)}),u=i.computed(()=>{var c,h;const f=Ee({},(c=e.styles)==null?void 0:c.item);return Ee(f,(h=e.styles)==null?void 0:h.item)}),o=()=>{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:u.value,onClick:d},[o(),a(),e.showInfo&&i.createVNode("div",{class:"fx-carousel--item-info"},[s(),l()])])}});function gm(e){const{items:t,autoplay:n=!1,interval:r=3e3,loop:u=!0,direction:o="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?u?d.value-1:0:a.value-1),i.computed(()=>a.value===d.value-1?u?0:a.value:a.value+1);const c=i.computed(()=>{const g=-a.value*100;return{transform:o==="horizontal"?`translateX(${g}%)`:`translateY(${g}%)`,transition:"transform 0.5s ease"}}),h=g=>{g<0||g>=d.value||(a.value,a.value=g)},p=()=>{f.value||(a.value===d.value-1?h(u?0:a.value):h(a.value+1))},m=()=>{f.value||(a.value===0?h(u?d.value-1:0):h(a.value-1))},x=()=>{!n||f.value||(v(),l.value=window.setInterval(()=>{s.value||p()},r))},v=()=>{l.value&&(clearInterval(l.value),l.value=null)},y=()=>{s.value=!0,n&&v()},b=()=>{s.value=!1,n&&x()};return i.onMounted(()=>{x()}),i.onUnmounted(()=>{v()}),{currentIndex:a,totalItems:d,isSingleItem:f,trackStyle:c,goTo:h,next:p,prev:m,handleMouseEnter:y,handleMouseLeave:b}}const cr=i.defineComponent({name:"FXCarousel",props:Cs,emits:["update:modelValue","change","item-click"],setup(e,{slots:t,emit:n}){const{currentIndex:r,isSingleItem:u,trackStyle:o,goTo:a,next:s,prev:l,handleMouseEnter:d,handleMouseLeave:f}=gm({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 N;const k={"fx-carousel":!0,"fx-carousel--vertical":e.direction==="vertical","fx-carousel--single":u.value,"fx-carousel--button-outer":e.buttonPosition==="outer","fx-carousel--button-inner":e.buttonPosition==="inner"};return Ae(k,(N=e.classNames)==null?void 0:N.root)}),p=i.computed(()=>{var F;const k={height:typeof e.height=="number"?`${e.height}px`:e.height},N=Ee(k,e.customStyle);return Ee(N,(F=e.styles)==null?void 0:F.root)}),m=i.computed(()=>{var N;const k={"fx-carousel--container":!0,"fx-carousel--container-hover":e.arrowVisibility==="hover"};return Ae(k,(N=e.classNames)==null?void 0:N.container)}),x=i.computed(()=>{var N;return Ae({"fx-carousel--track":!0},(N=e.classNames)==null?void 0:N.track)}),v=i.computed(()=>{var N;const k={"fx-carousel--indicator":!0,"fx-carousel--indicator-outside":e.indicatorPosition==="outside","fx-carousel--indicator-none":e.indicatorPosition==="none"||!e.showIndicator};return Ae(k,(N=e.classNames)==null?void 0:N.indicator)}),y=k=>{var F,S;const N={"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 N[`fx-carousel--arrow-${e.buttonPosition}`]=!0,Ae(N,k==="left"?(F=e.classNames)==null?void 0:F.arrowLeft:(S=e.classNames)==null?void 0:S.arrowRight)},b=k=>{var S,q;if(u.value)return null;const N=k==="left"?l:s,F=t[k==="left"?"prevArrow":"nextArrow"];return i.createVNode("button",{class:y(k),style:k==="left"?(S=e.styles)==null?void 0:S.arrowLeft:(q=e.styles)==null?void 0:q.arrowRight,onClick:N,"aria-label":`${k} arrow`},[F?F():i.createVNode("i",{style:"font-size: 60px;",class:`fx-icon fx-icon-arrow-${k==="left"?"left":"right"}`},null)])},g=()=>{var k;return u.value||!e.showIndicator?null:i.createVNode("div",{class:v.value,style:(k=e.styles)==null?void 0:k.indicator},[e.items.map((N,F)=>{var S,q;return i.createVNode("button",{"aria-label":`indicator ${F}`,key:F,class:["fx-carousel--indicator-item",{"fx-carousel--indicator-item-active":F===r.value}],style:F===r.value?(S=e.styles)==null?void 0:S.indicatorItemActive:(q=e.styles)==null?void 0:q.indicatorItem,onClick:()=>{a(F),c(F)}},null)})])},w=()=>i.createVNode("div",{class:x.value,style:o.value},[e.items.map((k,N)=>i.createVNode(go,{key:k.id||`item_${N}`,item:k,showInfo:e.showInfo,index:N,active:N===r.value,styles:e.styles,classNames:e.classNames,onClick:(F,S,q)=>{n("item-click",F,S,q)}},{default:()=>{var F,S;return[(F=t.item)==null?void 0:F.call(t,{item:k,index:N,active:N===r.value}),(S=t[`item${N}`])==null?void 0:S.call(t,{item:k,index:N,active:N===r.value})]}}))]);return()=>{var k;return i.createVNode("div",{class:h.value,style:p.value,onMouseenter:d,onMouseleave:f},[e.buttonPosition==="outer"&&b("left"),i.createVNode("div",{class:m.value,style:(k=e.styles)==null?void 0:k.container},[e.buttonPosition==="inner"&&b("left"),w(),e.buttonPosition==="inner"&&b("right")]),e.buttonPosition==="outer"&&b("right"),g()])}}});cr.install=e=>{e.component(cr.name,cr),e.component(go.name,go)};const Es={customStyle:{type:String,default:""},customClass:{type:String,default:""},direction:{Type:String,default:"row"}};function bm(e){const t=i.ref(-1),n=i.ref(-1),r=i.ref(0),u=i.ref(0),o=i.ref(!1),a=i.ref(!1),s=i.computed(()=>({display:o.value?"block":"none",left:`${r.value}px`,cursor:"e-resize"})),l=i.computed(()=>({display:a.value?"block":"none",top:`${u.value}px`,cursor:"n-resize"})),d=i.computed(()=>{const v={display:a.value||o.value?"block":"none"};return u.value>0&&(v.cursor="n-resize"),v});function f(v,y,b,g){const w=e.value;if(w){const{left:k,right:N,width:F}=w.getBoundingClientRect();let S=v.clientX-k;g==="right"&&(S=N-v.clientX),S>y&&(S=y),S<b&&(S=b),g==="right"&&(S=F-S),r.value=S}}function c(v,y,b,g){const w=e.value;if(w){const{top:k,bottom:N,height:F}=w.getBoundingClientRect();let S=v.clientY-k;g==="bottom"&&(S=N-v.clientY),S>y&&(S=y),S<b&&(S=b),g==="bottom"&&(S=F-S),u.value=S}}function h(){const v=e.value;if(v){const{width:y,height:b}=v.getBoundingClientRect();return{width:y,height:b}}return null}function p(){const v=e.value;return v?Array.from(v.querySelectorAll("[data-position]")).reduce((y,b)=>{const g=b.getAttribute("data-position");return y=Object.assign(y,{[g]:b}),y},{}):null}function m(v,y){const b=h(),g=p();if(b&&g){const w=g==null?void 0:g.right,k=g==null?void 0:g.left;if(v==="left"&&k)return w?b.width-w.clientWidth-y:b.width-y;if(v==="right"&&w)return k?b.width-k.clientWidth-y:b.width-y}}function x(v,y){const b=h(),g=p();if(b&&g){const w=g==null?void 0:g.bottom,k=g==null?void 0:g.top;if(v==="top"&&k)return w?b.height-w.clientHeight-y:b.height-y;if(v==="bottom"&&w)return k?b.height-k.clientHeight-y:b.height-y}}return{horizontalResizeHandleStyle:s,verticalResizeHandleStyle:l,resizeOverlayStyle:d,showHorizontalResizeHandle:o,showVerticalResizeHandle:a,horizontalResizeBarPosition:t,verticalResizeBarPosition:n,verticalResizeHandleOffset:u,horizontalResizeHandleOffset:r,draggingHorizontalResizeHandle:f,draggingVerticalResizeHandle:c,getPanelMaxWidth:m,getPanelMaxHeight:x}}const Sn=i.defineComponent({name:"FXSplitter",props:Es,emits:[],setup(e,t){const n=i.ref(),r=bm(n),{horizontalResizeHandleStyle:u,verticalResizeHandleStyle:o,resizeOverlayStyle:a}=r;i.provide("splitter",{useResizeHandleComposition:r});const s=i.computed(()=>Ae({"f-splitter":!0},e==null?void 0:e.customClass)),l=i.computed(()=>{const d={"flex-direction":e.direction==="row"?"row":"column"};return Ee(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:u.value},null),i.createVNode("div",{class:"f-splitter-vertical-resize-proxy",style:o.value},null)])}}),ym={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 wm(e,t){const n=i.ref(e.width),r=i.ref(e.height),{horizontalResizeBarPosition:u,horizontalResizeHandleOffset:o,showHorizontalResizeHandle:a,showVerticalResizeHandle:s,verticalResizeBarPosition:l,verticalResizeHandleOffset:d,draggingHorizontalResizeHandle:f,draggingVerticalResizeHandle:c,getPanelMaxWidth:h,getPanelMaxHeight:p}=t;let m="",x,v,y;const b=()=>e.maxWidth?e.maxWidth:h(m,e.minWidth)||0,g=()=>e.maxHeight?e.maxHeight:p(m,e.minHeight)||0;function w(F){if((m==="left"||m==="right")&&v){const{left:S}=v.getBoundingClientRect(),{width:q}=x.getBoundingClientRect(),H=F.clientX-S;let z=m==="left"?(q||0)+(H-u.value):(q||0)-(H-u.value);z=e.minWidth>0?Math.max(e.minWidth,z):z;const $=b();$!=null&&$>0&&(z=$>z?z:$),n.value=z}if((m==="top"||m==="bottom")&&v){const{top:S}=v.getBoundingClientRect(),{height:q}=x.getBoundingClientRect(),H=F.clientY-S;let z=m==="top"?(q||0)+(H-l.value):(q||0)-(H-l.value);z=e.minHeight>0?Math.max(e.minHeight,z):z;const $=g();$!=null&&$>0&&(z=$>z?z:$),r.value=z}o.value=0,d.value=0,u.value=-1,l.value=-1,a.value=!1,s.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",w),document.body.style.userSelect="",m="",x=null,v=null}function k(F,S,q){if(m=S,x=q,a.value=!0,v=F.composedPath().find(z=>z.className.split(" ")[0]==="f-splitter"),v){const{left:z}=v.getBoundingClientRect();o.value=F.clientX-z,u.value=F.clientX-z;const $=b();y=I=>f(I,$,e.minWidth,m),document.addEventListener("mousemove",y),document.addEventListener("mouseup",w),document.body.style.userSelect="none"}}function N(F,S,q){if(m=S,x=q,s.value=!0,v=F.composedPath().find(z=>z.className.split(" ")[0]==="f-splitter"),v){const{top:z}=v.getBoundingClientRect();d.value=F.clientY-z,l.value=F.clientY-z;const $=g();y=I=>c(I,$,e.minHeight,m),document.addEventListener("mousemove",y),document.addEventListener("mouseup",w),document.body.style.userSelect="none"}}return{actualWidth:n,actualHeight:r,onClickSplitterHorizontalResizeBar:k,onClickSplitterVerticalResizeBar:N}}const dr=i.defineComponent({name:"FSplitterPane",props:ym,emits:[],setup(e,t){const n=i.ref(),r=i.inject("splitter"),{useResizeHandleComposition:u}=r,o=wm(e,u),{actualHeight:a,actualWidth:s,onClickSplitterHorizontalResizeBar:l,onClickSplitterVerticalResizeBar:d}=o,f=i.ref(e.position),c=i.computed(()=>{const g={"f-splitter-pane":!0,"f-splitter-pane-main":f.value==="center","has-resize-bar":e.resizable};return g["f-splitter-pane-"+f.value]=!0,Ae(g,e==null?void 0:e.customClass)}),h=i.computed(()=>e.resizeHandle?e.resizeHandle.split(",").filter(g=>["e","n","s","w"].find(w=>w===g)):[]),p=i.computed(()=>{const g={};return(s.value||s.value===0)&&(f.value==="left"||f.value==="right"||h.value.find(w=>w==="e")||h.value.find(w=>w==="w"))&&(g.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"))&&(g.height=`${a.value}px`),e.visible||(g.display="none"),Ee(g,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 x(g){return{e:"left",w:"right",s:"top",n:"bottom"}[g]||g}function v(g,w){w=x(w),["left","right"].find(k=>k===w)&&l(g,w,n.value),["top","bottom"].find(k=>k===w)&&d(g,w,n.value)}function y(){return h.value.length>0?h.value.map(g=>i.createVNode("span",{class:"f-splitter-resize-bar f-splitter-resize-bar-"+g,onMousedown:w=>v(w,g)},null)):i.createVNode("span",{class:m.value,onMousedown:g=>v(g,f.value)},null)}function b(){s.value=e.width,a.value=e.height,p.value}return t.expose({reset:b}),()=>i.createVNode("div",{ref:n,class:c.value,style:p.value,"data-position":f.value},[t.slots.default&&t.slots.default(),e.resizable&&y()])}});Sn.install=e=>{e.component(Sn.name,Sn),e.component(dr.name,dr)};const Ss={previewConfig:{type:Object,default:()=>({})},onClose:{type:Function,default:()=>{}},onIframeLoad:{type:Function,default:()=>{}}},Fs={content:{type:String,default:null}},xm=e=>{const t=typeof e;return t!=="function"&&t!=="object"||e===null},vm=e=>{const t=e.flags===""?void 0:e.flags;return new RegExp(e.source,t)},fr=(e,t=new WeakMap)=>{if(e===null||xm(e))return e;if(t.has(e))return t.get(e);if(e instanceof RegExp)return vm(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((u,o)=>{r.set(o,fr(u,t))}),r}if(e instanceof Set){const r=new Set;t.set(e,r);for(const u of e)r.add(fr(u,t));return r}if(Array.isArray(e)){const r=[];return t.set(e,r),e.forEach(u=>{r.push(fr(u,t))}),r}const n={};t.set(e,n);for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=fr(e[r],t));return n},Am=(e,t=200)=>{let n=0;return(...r)=>new Promise(u=>{n&&(clearTimeout(n),u("cancel")),n=window.setTimeout(()=>{e.apply(void 0,r),n=0,u("done")},t)})},Mu=()=>`${Date.now().toString(36)}${Math.random().toString(36).substring(2)}`,bo=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),km=new Set(["__proto__","constructor","prototype"]),Cm=e=>!km.has(e),Bu=(e,t,n={})=>{if(Array.isArray(e)&&Array.isArray(t))return zu(e,t,n);const{excludeKeys:r}=n,u=e,o=t;for(const a of Object.keys(o)){if(!Cm(a))continue;const s=o[a],l=u[a];r&&r(a)?u[a]=s:Array.isArray(s)&&Array.isArray(l)?u[a]=zu(l,s,n):bo(s)&&bo(l)?u[a]=Bu(l,s,n):u[a]=s}return e},zu=(e,t,n)=>{const r=e.slice();return t.forEach((u,o)=>{const a=r[o];Array.isArray(u)&&Array.isArray(a)?r[o]=zu(a,u,n):bo(u)&&bo(a)?r[o]=Bu(a,u,n):r[o]=u}),r},K="md-editor",pe="https://unpkg.com",_m=`${pe}/@highlightjs/cdn-assets@11.11.1/highlight.min.js`,Ns={main:`${pe}/prettier@3.8.1/standalone.js`,markdown:`${pe}/prettier@3.8.1/plugins/markdown.js`},Em={css:`${pe}/cropperjs@1.6.2/dist/cropper.min.css`,js:`${pe}/cropperjs@1.6.2/dist/cropper.min.js`},Sm=`${pe}/screenfull@5.2.0/dist/screenfull.js`,Fm=`${pe}/mermaid@11.12.3/dist/mermaid.min.js`,Nm={js:`${pe}/katex@0.16.33/dist/katex.min.js`,css:`${pe}/katex@0.16.33/dist/katex.min.css`},ju={a11y:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/a11y-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/a11y-dark.min.css`},atom:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/atom-one-dark.min.css`},github:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/github.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/github-dark.min.css`},gradient:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/gradient-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/gradient-dark.min.css`},kimbie:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/kimbie-dark.min.css`},paraiso:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/paraiso-dark.min.css`},qtcreator:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/qtcreator-dark.min.css`},stackoverflow:{light:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-light.min.css`,dark:`${pe}/@highlightjs/cdn-assets@11.11.1/styles/stackoverflow-dark.min.css`}},Dm=`${pe}/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"}}},ht={editorExtensions:{highlight:{js:_m,css:ju},prettier:{standaloneJs:Ns.main,parserMarkdownJs:Ns.markdown},cropper:{...Em},screenfull:{js:Sm},mermaid:{js:Fm,enableZoom:!0},katex:{...Nm},echarts:{js:Dm}},editorExtensionsAttrs:{},editorConfig:{languageUserDefined:{},mermaidTemplate:{},renderDelay:500,zIndex:2e4},codeMirrorExtensions:e=>e,markdownItConfig:()=>{},markdownItPlugins:e=>e,mermaidConfig:e=>e,katexConfig:e=>e,echartsConfig:e=>e},Tm=({instance:e,ctx:t,props:n={}},r="default")=>{const u=(e==null?void 0:e.$slots[r])||(t==null?void 0:t.slots[r]);return(u?u(e):"")||n[r]},Im="buildFinished",Hu="errorCatcher",$u="catalogChanged",Om="pushCatalog",Ts="rerender",Lm="taskStateChanged";class Vm{constructor(){ge(this,"pools",{})}remove(t,n,r){const u=this.pools[t]&&this.pools[t][n];u&&(this.pools[t][n]=u.filter(o=>o!==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 u=this.pools[t][n];u&&u.forEach(o=>{try{o(...r)}catch(a){console.error(`${n} monitor event exception!`,a)}})}}const at=new Vm,Pm=(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="${K}-code-block">${e}</span>${r.join("")}`};async function Is(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 Rm={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 ${K}-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 ${K}-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 ${K}-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 ${K}-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 ${K}-icon"><path d="M20 6 9 17l-5-5"/></svg>`},Tt=(e,t)=>typeof t[e]=="string"?t[e]:Rm[e],Gt=(e,t,n="")=>{var u;const r=document.getElementById(t.id);if(r)n!==""&&(Reflect.get(window,n)?(u=t.onload)==null||u.call(r,new Event("load")):t.onload&&r.addEventListener("load",t.onload));else{const o={...t};o.onload=null;const a=Bm(e,o);t.onload&&a.addEventListener("load",t.onload),document.head.appendChild(a)}},Mm=(e,t)=>{var n;(n=document.getElementById(t.id))==null||n.remove(),Gt(e,t)},Bm=(e,t)=>{const n=document.createElement(e);return Object.keys(t).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),n},zm=(e,t)=>{const n=new Map;return e==null||e.forEach(r=>{let u=r.querySelector(`.${K}-mermaid-action`);u?u.querySelector(`.${K}-mermaid-copy`)||u.insertAdjacentHTML("beforeend",`<span class="${K}-mermaid-copy">${Tt("copy",t.customIcon)}</span>`):(r.insertAdjacentHTML("beforeend",`<div class="${K}-mermaid-action"><span class="${K}-mermaid-copy">${Tt("copy",t.customIcon)}</span></div>`),u=r.querySelector(`.${K}-mermaid-action`));const o=u.querySelector(`.${K}-mermaid-copy`);let a=-1;const s=()=>{clearTimeout(a),Is(r.dataset.content||"").then(()=>{o.innerHTML=Tt("check",t.customIcon)}).catch(()=>{o.innerHTML=Tt("copy",t.customIcon)}).finally(()=>{a=window.setTimeout(()=>{o.innerHTML=Tt("copy",t.customIcon)},1500)})};o.addEventListener("click",s),n.set(r,{removeClick:()=>{o.removeEventListener("click",s)}})}),()=>{n.forEach(({removeClick:r})=>{r==null||r()}),n.clear()}},jm=(()=>{const e=t=>{if(!t)return()=>{};const n=t.firstChild;let r=1,u=0,o=0,a=!1,s,l,d,f=1;const c=()=>{n.style.transform=`translate(${u}px, ${o}px) scale(${r})`},h=w=>{w.touches.length===1?(a=!0,s=w.touches[0].clientX-u,l=w.touches[0].clientY-o):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)u=w.touches[0].clientX-s,o=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,N=r;r=f*(1+(k-1));const F=(w.touches[0].clientX+w.touches[1].clientX)/2,S=(w.touches[0].clientY+w.touches[1].clientY)/2,q=n.getBoundingClientRect(),H=(F-q.left)/N,z=(S-q.top)/N;u-=H*(r-N),o-=z*(r-N),c()}},m=()=>{a=!1},x=w=>{w.preventDefault();const k=.02,N=r;w.deltaY<0?r+=k:r=Math.max(.1,r-k);const F=n.getBoundingClientRect(),S=w.clientX-F.left,q=w.clientY-F.top;u-=S/N*(r-N),o-=q/N*(r-N),c()},v=w=>{a=!0,s=w.clientX-u,l=w.clientY-o},y=w=>{a&&(u=w.clientX-s,o=w.clientY-l,c())},b=()=>{a=!1},g=()=>{a=!1};return t.addEventListener("touchstart",h,{passive:!1}),t.addEventListener("touchmove",p,{passive:!1}),t.addEventListener("touchend",m),t.addEventListener("wheel",x,{passive:!1}),t.addEventListener("mousedown",v),t.addEventListener("mousemove",y),t.addEventListener("mouseup",b),t.addEventListener("mouseleave",g),()=>{t.removeEventListener("touchstart",h),t.removeEventListener("touchmove",p),t.removeEventListener("touchend",m),t.removeEventListener("wheel",x),t.removeEventListener("mousedown",v),t.removeEventListener("mousemove",y),t.removeEventListener("mouseup",b),t.removeEventListener("mouseleave",g)}};return(t,n)=>{const r=new Map;return t==null||t.forEach(u=>{let o=u.querySelector(`.${K}-mermaid-action`);o?o.querySelector(`.${K}-mermaid-zoom`)||o.insertAdjacentHTML("beforeend",`<span class="${K}-mermaid-zoom">${Tt("pin-off",n.customIcon)}</span>`):(u.insertAdjacentHTML("beforeend",`<div class="${K}-mermaid-action"><span class="${K}-mermaid-zoom">${Tt("pin-off",n.customIcon)}</span></div>`),o=u.querySelector(`.${K}-mermaid-action`));const a=o.querySelector(`.${K}-mermaid-zoom`),s=()=>{const l=r.get(u);if(l!=null&&l.removeEvent)l.removeEvent(),u.removeAttribute("data-grab"),r.set(u,{removeClick:l.removeClick}),a.innerHTML=Tt("pin-off",n.customIcon);else{const d=e(u);u.setAttribute("data-grab",""),r.set(u,{removeEvent:d,removeClick:l==null?void 0:l.removeClick}),a.innerHTML=Tt("pin",n.customIcon)}};a.addEventListener("click",s),r.set(u,{removeClick:()=>a.removeEventListener("click",s)})}),()=>{r.forEach(({removeEvent:u,removeClick:o})=>{u==null||u(),o==null||o()}),r.clear()}}})(),Os=new Set([!0,!1,"alt","title"]);function Ls(e,t){return(Array.isArray(e)?e:[]).filter(([n])=>n!==t)}function Vs(e,t){e&&e.attrs&&(e.attrs=Ls(e.attrs,t))}function Hm(e,t){if(!Os.has(e))throw new TypeError(`figcaption must be one of: ${[...Os]}.`);if(e==="alt")return t.content;const n=t.attrs.find(([r])=>r==="title");return Array.isArray(n)&&n[1]?(Vs(t,"title"),n[1]):void 0}function $m(e,t){t=t||{},e.core.ruler.before("linkify","image_figures",function(n){let r=1;for(let u=1,o=n.tokens.length;u<o-1;++u){const a=n.tokens[u];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(u!==0&&n.tokens[u-1].type!=="paragraph_open"||u!==o-1&&n.tokens[u+1].type!=="paragraph_close")continue;const s=n.tokens[u-1];let l;if(s.type="figure_open",s.tag="figure",n.tokens[u+1].type="figure_close",n.tokens[u+1].tag="figure",t.dataType&&n.tokens[u-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=Hm(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=Ls(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[u-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]]),Vs(l,"src")}}})}const Um=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function Wm(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 u=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===126){u=!0;break}e.md.inline.skipToken(e)}if(!u||r+1===e.pos)return e.pos=r,!1;const o=e.src.slice(r+1,e.pos);if(o.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=o.replace(Um,"$1");const l=e.push("sub_close","sub",-1);return l.markup="~",e.pos=e.posMax+1,e.posMax=n,!0}function Gm(e){e.inline.ruler.after("emphasis","sub",Wm)}const Xm=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function qm(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 u=!1;for(;e.pos<n;){if(e.src.charCodeAt(e.pos)===94){u=!0;break}e.md.inline.skipToken(e)}if(!u||r+1===e.pos)return e.pos=r,!1;const o=e.src.slice(r+1,e.pos);if(o.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=o.replace(Xm,"$1");const l=e.push("sup_close","sup",-1);return l.markup="^",e.pos=e.posMax+1,e.posMax=n,!0}function Zm(e){e.inline.ruler.after("emphasis","sup",qm)}var Ym=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Ps=new Set,Uu=typeof process=="object"&&process?process:{},Rs=(e,t,n,r)=>{typeof Uu.emitWarning=="function"?Uu.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)},yo=globalThis.AbortController,Ms=globalThis.AbortSignal;if(typeof yo>"u"){Ms=class{constructor(){ge(this,"onabort");ge(this,"_onabort",[]);ge(this,"reason");ge(this,"aborted",!1)}addEventListener(n,r){this._onabort.push(r)}},yo=class{constructor(){ge(this,"signal",new Ms);t()}abort(n){var r,u;if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let o of this.signal._onabort)o(n);(u=(r=this.signal).onabort)==null||u.call(r,n)}}};let e=((Xl=Uu.env)==null?void 0:Xl.LRU_CACHE_IGNORE_AC_WARNING)!=="1",t=()=>{e&&(e=!1,Rs("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 Km=e=>!Ps.has(e),Xt=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),Bs=e=>Xt(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?wo:null:null,wo=class extends Array{constructor(t){super(t),this.fill(0)}},Qm=(It=class{constructor(t,n){ge(this,"heap");ge(this,"length");if(!A(It,In))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0}static create(t){let n=Bs(t);if(!n)return[];ne(It,In,!0);let r=new It(t,n);return ne(It,In,!1),r}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},In=new WeakMap,se(It,In,!1),It),Jm=(Rn=class{constructor(t){se(this,Y);se(this,st);se(this,tt);se(this,mt);se(this,ln);se(this,pt);se(this,On);se(this,Ln);se(this,gt);ge(this,"ttl");ge(this,"ttlResolution");ge(this,"ttlAutopurge");ge(this,"updateAgeOnGet");ge(this,"updateAgeOnHas");ge(this,"allowStale");ge(this,"noDisposeOnSet");ge(this,"noUpdateTTL");ge(this,"maxEntrySize");ge(this,"sizeCalculation");ge(this,"noDeleteOnFetchRejection");ge(this,"noDeleteOnStaleGet");ge(this,"allowStaleOnFetchAbort");ge(this,"allowStaleOnFetchRejection");ge(this,"ignoreFetchAbort");se(this,Se);se(this,bt);se(this,Ce);se(this,be);se(this,ie);se(this,We);se(this,nt);se(this,Me);se(this,Ie);se(this,yt);se(this,Oe);se(this,wt);se(this,xt);se(this,rt);se(this,ot);se(this,vt);se(this,Kt);se(this,Ge);se(this,Vn);se(this,cn,()=>{});se(this,Pt,()=>{});se(this,Ir,()=>{});se(this,ut,()=>!1);se(this,dn,t=>{});se(this,Pn,(t,n,r)=>{});se(this,Or,(t,n,r,u)=>{if(r||u)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});ge(this,ql,"LRUCache");let{max:n=0,ttl:r,ttlResolution:u=1,ttlAutopurge:o,updateAgeOnGet:a,updateAgeOnHas:s,allowStale:l,dispose:d,onInsert:f,disposeAfter:c,noDisposeOnSet:h,noUpdateTTL:p,maxSize:m=0,maxEntrySize:x=0,sizeCalculation:v,fetchMethod:y,memoMethod:b,noDeleteOnFetchRejection:g,noDeleteOnStaleGet:w,allowStaleOnFetchRejection:k,allowStaleOnFetchAbort:N,ignoreFetchAbort:F,perf:S}=t;if(S!==void 0&&typeof(S==null?void 0:S.now)!="function")throw new TypeError("perf option must have a now() method if specified");if(ne(this,gt,S??Ym),n!==0&&!Xt(n))throw new TypeError("max option must be a nonnegative integer");let q=n?Bs(n):Array;if(!q)throw new Error("invalid max value: "+n);if(ne(this,st,n),ne(this,tt,m),this.maxEntrySize=x||A(this,tt),this.sizeCalculation=v,this.sizeCalculation){if(!A(this,tt)&&!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(b!==void 0&&typeof b!="function")throw new TypeError("memoMethod must be a function if defined");if(ne(this,Ln,b),y!==void 0&&typeof y!="function")throw new TypeError("fetchMethod must be a function if specified");if(ne(this,On,y),ne(this,Kt,!!y),ne(this,Ce,new Map),ne(this,be,new Array(n).fill(void 0)),ne(this,ie,new Array(n).fill(void 0)),ne(this,We,new q(n)),ne(this,nt,new q(n)),ne(this,Me,0),ne(this,Ie,0),ne(this,yt,Qm.create(n)),ne(this,Se,0),ne(this,bt,0),typeof d=="function"&&ne(this,mt,d),typeof f=="function"&&ne(this,ln,f),typeof c=="function"?(ne(this,pt,c),ne(this,Oe,[])):(ne(this,pt,void 0),ne(this,Oe,void 0)),ne(this,vt,!!A(this,mt)),ne(this,Vn,!!A(this,ln)),ne(this,Ge,!!A(this,pt)),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!p,this.noDeleteOnFetchRejection=!!g,this.allowStaleOnFetchRejection=!!k,this.allowStaleOnFetchAbort=!!N,this.ignoreFetchAbort=!!F,this.maxEntrySize!==0){if(A(this,tt)!==0&&!Xt(A(this,tt)))throw new TypeError("maxSize must be a positive integer if specified");if(!Xt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");J(this,Y,mc).call(this)}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!w,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!s,this.ttlResolution=Xt(u)||u===0?u:1,this.ttlAutopurge=!!o,this.ttl=r||0,this.ttl){if(!Xt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");J(this,Y,gi).call(this)}if(A(this,st)===0&&this.ttl===0&&A(this,tt)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!A(this,st)&&!A(this,tt)){let H="LRU_CACHE_UNBOUNDED";Km(H)&&(Ps.add(H),Rs("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",H,Rn))}}get perf(){return A(this,gt)}static unsafeExposeInternals(t){return{starts:A(t,xt),ttls:A(t,rt),autopurgeTimers:A(t,ot),sizes:A(t,wt),keyMap:A(t,Ce),keyList:A(t,be),valList:A(t,ie),next:A(t,We),prev:A(t,nt),get head(){return A(t,Me)},get tail(){return A(t,Ie)},free:A(t,yt),isBackgroundFetch:n=>{var r;return J(r=t,Y,ye).call(r,n)},backgroundFetch:(n,r,u,o)=>{var a;return J(a=t,Y,Uo).call(a,n,r,u,o)},moveToTail:n=>{var r;return J(r=t,Y,Pr).call(r,n)},indexes:n=>{var r;return J(r=t,Y,Qt).call(r,n)},rindexes:n=>{var r;return J(r=t,Y,Jt).call(r,n)},isStale:n=>{var r;return A(r=t,ut).call(r,n)}}}get max(){return A(this,st)}get maxSize(){return A(this,tt)}get calculatedSize(){return A(this,bt)}get size(){return A(this,Se)}get fetchMethod(){return A(this,On)}get memoMethod(){return A(this,Ln)}get dispose(){return A(this,mt)}get onInsert(){return A(this,ln)}get disposeAfter(){return A(this,pt)}getRemainingTTL(t){return A(this,Ce).has(t)?1/0:0}*entries(){for(let t of J(this,Y,Qt).call(this))A(this,ie)[t]!==void 0&&A(this,be)[t]!==void 0&&!J(this,Y,ye).call(this,A(this,ie)[t])&&(yield[A(this,be)[t],A(this,ie)[t]])}*rentries(){for(let t of J(this,Y,Jt).call(this))A(this,ie)[t]!==void 0&&A(this,be)[t]!==void 0&&!J(this,Y,ye).call(this,A(this,ie)[t])&&(yield[A(this,be)[t],A(this,ie)[t]])}*keys(){for(let t of J(this,Y,Qt).call(this)){let n=A(this,be)[t];n!==void 0&&!J(this,Y,ye).call(this,A(this,ie)[t])&&(yield n)}}*rkeys(){for(let t of J(this,Y,Jt).call(this)){let n=A(this,be)[t];n!==void 0&&!J(this,Y,ye).call(this,A(this,ie)[t])&&(yield n)}}*values(){for(let t of J(this,Y,Qt).call(this))A(this,ie)[t]!==void 0&&!J(this,Y,ye).call(this,A(this,ie)[t])&&(yield A(this,ie)[t])}*rvalues(){for(let t of J(this,Y,Jt).call(this))A(this,ie)[t]!==void 0&&!J(this,Y,ye).call(this,A(this,ie)[t])&&(yield A(this,ie)[t])}[(Zl=Symbol.iterator,ql=Symbol.toStringTag,Zl)](){return this.entries()}find(t,n={}){for(let r of J(this,Y,Qt).call(this)){let u=A(this,ie)[r],o=J(this,Y,ye).call(this,u)?u.__staleWhileFetching:u;if(o!==void 0&&t(o,A(this,be)[r],this))return this.get(A(this,be)[r],n)}}forEach(t,n=this){for(let r of J(this,Y,Qt).call(this)){let u=A(this,ie)[r],o=J(this,Y,ye).call(this,u)?u.__staleWhileFetching:u;o!==void 0&&t.call(n,o,A(this,be)[r],this)}}rforEach(t,n=this){for(let r of J(this,Y,Jt).call(this)){let u=A(this,ie)[r],o=J(this,Y,ye).call(this,u)?u.__staleWhileFetching:u;o!==void 0&&t.call(n,o,A(this,be)[r],this)}}purgeStale(){let t=!1;for(let n of J(this,Y,Jt).call(this,{allowStale:!0}))A(this,ut).call(this,n)&&(J(this,Y,en).call(this,A(this,be)[n],"expire"),t=!0);return t}info(t){let n=A(this,Ce).get(t);if(n===void 0)return;let r=A(this,ie)[n],u=J(this,Y,ye).call(this,r)?r.__staleWhileFetching:r;if(u===void 0)return;let o={value:u};if(A(this,rt)&&A(this,xt)){let a=A(this,rt)[n],s=A(this,xt)[n];if(a&&s){let l=a-(A(this,gt).now()-s);o.ttl=l,o.start=Date.now()}}return A(this,wt)&&(o.size=A(this,wt)[n]),o}dump(){let t=[];for(let n of J(this,Y,Qt).call(this,{allowStale:!0})){let r=A(this,be)[n],u=A(this,ie)[n],o=J(this,Y,ye).call(this,u)?u.__staleWhileFetching:u;if(o===void 0||r===void 0)continue;let a={value:o};if(A(this,rt)&&A(this,xt)){a.ttl=A(this,rt)[n];let s=A(this,gt).now()-A(this,xt)[n];a.start=Math.floor(Date.now()-s)}A(this,wt)&&(a.size=A(this,wt)[n]),t.unshift([r,a])}return t}load(t){this.clear();for(let[n,r]of t){if(r.start){let u=Date.now()-r.start;r.start=A(this,gt).now()-u}this.set(n,r.value,r)}}set(t,n,r={}){var h,p,m,x,v,y,b;if(n===void 0)return this.delete(t),this;let{ttl:u=this.ttl,start:o,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:s=this.sizeCalculation,status:l}=r,{noUpdateTTL:d=this.noUpdateTTL}=r,f=A(this,Or).call(this,t,n,r.size||0,s);if(this.maxEntrySize&&f>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),J(this,Y,en).call(this,t,"set"),this;let c=A(this,Se)===0?void 0:A(this,Ce).get(t);if(c===void 0)c=A(this,Se)===0?A(this,Ie):A(this,yt).length!==0?A(this,yt).pop():A(this,Se)===A(this,st)?J(this,Y,$o).call(this,!1):A(this,Se),A(this,be)[c]=t,A(this,ie)[c]=n,A(this,Ce).set(t,c),A(this,We)[A(this,Ie)]=c,A(this,nt)[c]=A(this,Ie),ne(this,Ie,c),Ho(this,Se)._++,A(this,Pn).call(this,c,f,l),l&&(l.set="add"),d=!1,A(this,Vn)&&((h=A(this,ln))==null||h.call(this,n,t,"add"));else{J(this,Y,Pr).call(this,c);let g=A(this,ie)[c];if(n!==g){if(A(this,Kt)&&J(this,Y,ye).call(this,g)){g.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:w}=g;w!==void 0&&!a&&(A(this,vt)&&((p=A(this,mt))==null||p.call(this,w,t,"set")),A(this,Ge)&&((m=A(this,Oe))==null||m.push([w,t,"set"])))}else a||(A(this,vt)&&((x=A(this,mt))==null||x.call(this,g,t,"set")),A(this,Ge)&&((v=A(this,Oe))==null||v.push([g,t,"set"])));if(A(this,dn).call(this,c),A(this,Pn).call(this,c,f,l),A(this,ie)[c]=n,l){l.set="replace";let w=g&&J(this,Y,ye).call(this,g)?g.__staleWhileFetching:g;w!==void 0&&(l.oldValue=w)}}else l&&(l.set="update");A(this,Vn)&&((y=this.onInsert)==null||y.call(this,n,t,n===g?"update":"replace"))}if(u!==0&&!A(this,rt)&&J(this,Y,gi).call(this),A(this,rt)&&(d||A(this,Ir).call(this,c,u,o),l&&A(this,Pt).call(this,l,c)),!a&&A(this,Ge)&&A(this,Oe)){let g=A(this,Oe),w;for(;w=g==null?void 0:g.shift();)(b=A(this,pt))==null||b.call(this,...w)}return this}pop(){var t;try{for(;A(this,Se);){let n=A(this,ie)[A(this,Me)];if(J(this,Y,$o).call(this,!0),J(this,Y,ye).call(this,n)){if(n.__staleWhileFetching)return n.__staleWhileFetching}else if(n!==void 0)return n}}finally{if(A(this,Ge)&&A(this,Oe)){let n=A(this,Oe),r;for(;r=n==null?void 0:n.shift();)(t=A(this,pt))==null||t.call(this,...r)}}}has(t,n={}){let{updateAgeOnHas:r=this.updateAgeOnHas,status:u}=n,o=A(this,Ce).get(t);if(o!==void 0){let a=A(this,ie)[o];if(J(this,Y,ye).call(this,a)&&a.__staleWhileFetching===void 0)return!1;if(A(this,ut).call(this,o))u&&(u.has="stale",A(this,Pt).call(this,u,o));else return r&&A(this,cn).call(this,o),u&&(u.has="hit",A(this,Pt).call(this,u,o)),!0}else u&&(u.has="miss");return!1}peek(t,n={}){let{allowStale:r=this.allowStale}=n,u=A(this,Ce).get(t);if(u===void 0||!r&&A(this,ut).call(this,u))return;let o=A(this,ie)[u];return J(this,Y,ye).call(this,o)?o.__staleWhileFetching:o}async fetch(t,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:u=this.updateAgeOnGet,noDeleteOnStaleGet:o=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:x,forceRefresh:v=!1,status:y,signal:b}=n;if(!A(this,Kt))return y&&(y.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:u,noDeleteOnStaleGet:o,status:y});let g={allowStale:r,updateAgeOnGet:u,noDeleteOnStaleGet:o,ttl:a,noDisposeOnSet:s,size:l,sizeCalculation:d,noUpdateTTL:f,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:m,ignoreFetchAbort:p,status:y,signal:b},w=A(this,Ce).get(t);if(w===void 0){y&&(y.fetch="miss");let k=J(this,Y,Uo).call(this,t,w,g,x);return k.__returned=k}else{let k=A(this,ie)[w];if(J(this,Y,ye).call(this,k)){let q=r&&k.__staleWhileFetching!==void 0;return y&&(y.fetch="inflight",q&&(y.returnedStale=!0)),q?k.__staleWhileFetching:k.__returned=k}let N=A(this,ut).call(this,w);if(!v&&!N)return y&&(y.fetch="hit"),J(this,Y,Pr).call(this,w),u&&A(this,cn).call(this,w),y&&A(this,Pt).call(this,y,w),k;let F=J(this,Y,Uo).call(this,t,w,g,x),S=F.__staleWhileFetching!==void 0&&r;return y&&(y.fetch=N?"stale":"refresh",S&&N&&(y.returnedStale=!0)),S?F.__staleWhileFetching:F.__returned=F}}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,Ln);if(!r)throw new Error("no memoMethod provided to constructor");let{context:u,forceRefresh:o,...a}=n,s=this.get(t,a);if(!o&&s!==void 0)return s;let l=r(t,s,{options:a,context:u});return this.set(t,l,a),l}get(t,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:u=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:a}=n,s=A(this,Ce).get(t);if(s!==void 0){let l=A(this,ie)[s],d=J(this,Y,ye).call(this,l);return a&&A(this,Pt).call(this,a,s),A(this,ut).call(this,s)?(a&&(a.get="stale"),d?(a&&r&&l.__staleWhileFetching!==void 0&&(a.returnedStale=!0),r?l.__staleWhileFetching:void 0):(o||J(this,Y,en).call(this,t,"expire"),a&&r&&(a.returnedStale=!0),r?l:void 0)):(a&&(a.get="hit"),d?l.__staleWhileFetching:(J(this,Y,Pr).call(this,s),u&&A(this,cn).call(this,s),l))}else a&&(a.get="miss")}delete(t){return J(this,Y,en).call(this,t,"delete")}clear(){return J(this,Y,wi).call(this,"delete")}},st=new WeakMap,tt=new WeakMap,mt=new WeakMap,ln=new WeakMap,pt=new WeakMap,On=new WeakMap,Ln=new WeakMap,gt=new WeakMap,Se=new WeakMap,bt=new WeakMap,Ce=new WeakMap,be=new WeakMap,ie=new WeakMap,We=new WeakMap,nt=new WeakMap,Me=new WeakMap,Ie=new WeakMap,yt=new WeakMap,Oe=new WeakMap,wt=new WeakMap,xt=new WeakMap,rt=new WeakMap,ot=new WeakMap,vt=new WeakMap,Kt=new WeakMap,Ge=new WeakMap,Vn=new WeakMap,Y=new WeakSet,gi=function(){let t=new wo(A(this,st)),n=new wo(A(this,st));ne(this,rt,t),ne(this,xt,n);let r=this.ttlAutopurge?new Array(A(this,st)):void 0;ne(this,ot,r),ne(this,Ir,(s,l,d=A(this,gt).now())=>{n[s]=l!==0?d:0,t[s]=l,u(s,l)}),ne(this,cn,s=>{n[s]=t[s]!==0?A(this,gt).now():0,u(s,t[s])});let u=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,ut).call(this,s)&&J(this,Y,en).call(this,A(this,be)[s],"expire")},l+1);d.unref&&d.unref(),r[s]=d}}:()=>{};ne(this,Pt,(s,l)=>{if(t[l]){let d=t[l],f=n[l];if(!d||!f)return;s.ttl=d,s.start=f,s.now=o||a();let c=s.now-f;s.remainingTTL=d-c}});let o=0,a=()=>{let s=A(this,gt).now();if(this.ttlResolution>0){o=s;let l=setTimeout(()=>o=0,this.ttlResolution);l.unref&&l.unref()}return s};this.getRemainingTTL=s=>{let l=A(this,Ce).get(s);if(l===void 0)return 0;let d=t[l],f=n[l];if(!d||!f)return 1/0;let c=(o||a())-f;return d-c},ne(this,ut,s=>{let l=n[s],d=t[s];return!!d&&!!l&&(o||a())-l>d})},cn=new WeakMap,Pt=new WeakMap,Ir=new WeakMap,ut=new WeakMap,mc=function(){let t=new wo(A(this,st));ne(this,bt,0),ne(this,wt,t),ne(this,dn,n=>{ne(this,bt,A(this,bt)-t[n]),t[n]=0}),ne(this,Or,(n,r,u,o)=>{if(J(this,Y,ye).call(this,r))return 0;if(!Xt(u))if(o){if(typeof o!="function")throw new TypeError("sizeCalculation must be a function");if(u=o(r,n),!Xt(u))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 u}),ne(this,Pn,(n,r,u)=>{if(t[n]=r,A(this,tt)){let o=A(this,tt)-t[n];for(;A(this,bt)>o;)J(this,Y,$o).call(this,!0)}ne(this,bt,A(this,bt)+t[n]),u&&(u.entrySize=r,u.totalCalculatedSize=A(this,bt))})},dn=new WeakMap,Pn=new WeakMap,Or=new WeakMap,Qt=function*({allowStale:t=this.allowStale}={}){if(A(this,Se))for(let n=A(this,Ie);!(!J(this,Y,bi).call(this,n)||((t||!A(this,ut).call(this,n))&&(yield n),n===A(this,Me)));)n=A(this,nt)[n]},Jt=function*({allowStale:t=this.allowStale}={}){if(A(this,Se))for(let n=A(this,Me);!(!J(this,Y,bi).call(this,n)||((t||!A(this,ut).call(this,n))&&(yield n),n===A(this,Ie)));)n=A(this,We)[n]},bi=function(t){return t!==void 0&&A(this,Ce).get(A(this,be)[t])===t},$o=function(t){var o,a,s;let n=A(this,Me),r=A(this,be)[n],u=A(this,ie)[n];return A(this,Kt)&&J(this,Y,ye).call(this,u)?u.__abortController.abort(new Error("evicted")):(A(this,vt)||A(this,Ge))&&(A(this,vt)&&((o=A(this,mt))==null||o.call(this,u,r,"evict")),A(this,Ge)&&((a=A(this,Oe))==null||a.push([u,r,"evict"]))),A(this,dn).call(this,n),(s=A(this,ot))!=null&&s[n]&&(clearTimeout(A(this,ot)[n]),A(this,ot)[n]=void 0),t&&(A(this,be)[n]=void 0,A(this,ie)[n]=void 0,A(this,yt).push(n)),A(this,Se)===1?(ne(this,Me,ne(this,Ie,0)),A(this,yt).length=0):ne(this,Me,A(this,We)[n]),A(this,Ce).delete(r),Ho(this,Se)._--,n},Uo=function(t,n,r,u){let o=n===void 0?void 0:A(this,ie)[n];if(J(this,Y,ye).call(this,o))return o;let a=new yo,{signal:s}=r;s==null||s.addEventListener("abort",()=>a.abort(s.reason),{signal:a.signal});let l={signal:a.signal,options:r,context:u},d=(x,v=!1)=>{let{aborted:y}=a.signal,b=r.ignoreFetchAbort&&x!==void 0,g=r.ignoreFetchAbort||!!(r.allowStaleOnFetchAbort&&x!==void 0);if(r.status&&(y&&!v?(r.status.fetchAborted=!0,r.status.fetchError=a.signal.reason,b&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),y&&!b&&!v)return c(a.signal.reason,g);let w=p,k=A(this,ie)[n];return(k===p||b&&v&&k===void 0)&&(x===void 0?w.__staleWhileFetching!==void 0?A(this,ie)[n]=w.__staleWhileFetching:J(this,Y,en).call(this,t,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(t,x,l.options))),x},f=x=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=x),c(x,!1)),c=(x,v)=>{let{aborted:y}=a.signal,b=y&&r.allowStaleOnFetchAbort,g=b||r.allowStaleOnFetchRejection,w=g||r.noDeleteOnFetchRejection,k=p;if(A(this,ie)[n]===p&&(!w||!v&&k.__staleWhileFetching===void 0?J(this,Y,en).call(this,t,"fetch"):b||(A(this,ie)[n]=k.__staleWhileFetching)),g)return r.status&&k.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),k.__staleWhileFetching;if(k.__returned===k)throw x},h=(x,v)=>{var b;let y=(b=A(this,On))==null?void 0:b.call(this,t,o,l);y&&y instanceof Promise&&y.then(g=>x(g===void 0?void 0:g),v),a.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(x(void 0),r.allowStaleOnFetchAbort&&(x=g=>d(g,!0)))})};r.status&&(r.status.fetchDispatched=!0);let p=new Promise(h).then(d,f),m=Object.assign(p,{__abortController:a,__staleWhileFetching:o,__returned:void 0});return n===void 0?(this.set(t,m,{...l.options,status:void 0}),n=A(this,Ce).get(t)):A(this,ie)[n]=m,m},ye=function(t){if(!A(this,Kt))return!1;let n=t;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof yo},yi=function(t,n){A(this,nt)[n]=t,A(this,We)[t]=n},Pr=function(t){t!==A(this,Ie)&&(t===A(this,Me)?ne(this,Me,A(this,We)[t]):J(this,Y,yi).call(this,A(this,nt)[t],A(this,We)[t]),J(this,Y,yi).call(this,A(this,Ie),t),ne(this,Ie,t))},en=function(t,n){var u,o,a,s,l,d;let r=!1;if(A(this,Se)!==0){let f=A(this,Ce).get(t);if(f!==void 0)if((u=A(this,ot))!=null&&u[f]&&(clearTimeout((o=A(this,ot))==null?void 0:o[f]),A(this,ot)[f]=void 0),r=!0,A(this,Se)===1)J(this,Y,wi).call(this,n);else{A(this,dn).call(this,f);let c=A(this,ie)[f];if(J(this,Y,ye).call(this,c)?c.__abortController.abort(new Error("deleted")):(A(this,vt)||A(this,Ge))&&(A(this,vt)&&((a=A(this,mt))==null||a.call(this,c,t,n)),A(this,Ge)&&((s=A(this,Oe))==null||s.push([c,t,n]))),A(this,Ce).delete(t),A(this,be)[f]=void 0,A(this,ie)[f]=void 0,f===A(this,Ie))ne(this,Ie,A(this,nt)[f]);else if(f===A(this,Me))ne(this,Me,A(this,We)[f]);else{let h=A(this,nt)[f];A(this,We)[h]=A(this,We)[f];let p=A(this,We)[f];A(this,nt)[p]=A(this,nt)[f]}Ho(this,Se)._--,A(this,yt).push(f)}}if(A(this,Ge)&&((l=A(this,Oe))!=null&&l.length)){let f=A(this,Oe),c;for(;c=f==null?void 0:f.shift();)(d=A(this,pt))==null||d.call(this,...c)}return r},wi=function(t){var n,r,u,o;for(let a of J(this,Y,Jt).call(this,{allowStale:!0})){let s=A(this,ie)[a];if(J(this,Y,ye).call(this,s))s.__abortController.abort(new Error("deleted"));else{let l=A(this,be)[a];A(this,vt)&&((n=A(this,mt))==null||n.call(this,s,l,t)),A(this,Ge)&&((r=A(this,Oe))==null||r.push([s,l,t]))}}if(A(this,Ce).clear(),A(this,ie).fill(void 0),A(this,be).fill(void 0),A(this,rt)&&A(this,xt)){A(this,rt).fill(0),A(this,xt).fill(0);for(let a of A(this,ot)??[])a!==void 0&&clearTimeout(a);(u=A(this,ot))==null||u.fill(void 0)}if(A(this,wt)&&A(this,wt).fill(0),ne(this,Me,0),ne(this,Ie,0),A(this,yt).length=0,ne(this,bt,0),ne(this,Se,0),A(this,Ge)&&A(this,Oe)){let a=A(this,Oe),s;for(;s=a==null?void 0:a.shift();)(o=A(this,pt))==null||o.call(this,...s)}},Rn);/*! medium-zoom 1.1.0 | MIT License | https://github.com/francoischalifour/medium-zoom */var on=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},xo=function(t){return t.tagName==="IMG"},ep=function(t){return NodeList.prototype.isPrototypeOf(t)},vo=function(t){return t&&t.nodeType===1},zs=function(t){var n=t.currentSrc||t.src;return n.substr(-4).toLowerCase()===".svg"},js=function(t){try{return Array.isArray(t)?t.filter(xo):ep(t)?[].slice.call(t).filter(xo):vo(t)?[t].filter(xo):typeof t=="string"?[].slice.call(document.querySelectorAll(t)).filter(xo):[]}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`)}},tp=function(t){var n=document.createElement("div");return n.classList.add("medium-zoom-overlay"),n.style.background=t,n},np=function(t){var n=t.getBoundingClientRect(),r=n.top,u=n.left,o=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=u+d+"px",s.style.width=o+"px",s.style.height=a+"px",s.style.transform="",s},Fn=function(t,n){var r=on({bubbles:!1,cancelable:!1,detail:void 0},n);if(typeof window.CustomEvent=="function")return new CustomEvent(t,r);var u=document.createEvent("CustomEvent");return u.initCustomEvent(t,r.bubbles,r.cancelable,r.detail),u},rp=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=window.Promise||function($){function I(){}$(I,I)},u=function($){var I=$.target;if(I===q){m();return}g.indexOf(I)!==-1&&x({target:I})},o=function(){if(!(k||!S.original)){var $=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(D-$)>F.scrollOffset&&setTimeout(m,150)}},a=function($){var I=$.key||$.keyCode;(I==="Escape"||I==="Esc"||I===27)&&m()},s=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=$;if($.background&&(q.style.background=$.background),$.container&&$.container instanceof Object&&(I.container=on({},F.container,$.container)),$.template){var G=vo($.template)?$.template:document.querySelector($.template);I.template=G}return F=on({},F,I),g.forEach(function(X){X.dispatchEvent(Fn("medium-zoom:update",{detail:{zoom:H}}))}),H},l=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(on({},F,$))},d=function(){for(var $=arguments.length,I=Array($),G=0;G<$;G++)I[G]=arguments[G];var X=I.reduce(function(T,j){return[].concat(T,js(j))},[]);return X.filter(function(T){return g.indexOf(T)===-1}).forEach(function(T){g.push(T),T.classList.add("medium-zoom-image")}),w.forEach(function(T){var j=T.type,B=T.listener,Z=T.options;X.forEach(function(ue){ue.addEventListener(j,B,Z)})}),H},f=function(){for(var $=arguments.length,I=Array($),G=0;G<$;G++)I[G]=arguments[G];S.zoomed&&m();var X=I.length>0?I.reduce(function(T,j){return[].concat(T,js(j))},[]):g;return X.forEach(function(T){T.classList.remove("medium-zoom-image"),T.dispatchEvent(Fn("medium-zoom:detach",{detail:{zoom:H}}))}),g=g.filter(function(T){return X.indexOf(T)===-1}),H},c=function($,I){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return g.forEach(function(X){X.addEventListener("medium-zoom:"+$,I,G)}),w.push({type:"medium-zoom:"+$,listener:I,options:G}),H},h=function($,I){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return g.forEach(function(X){X.removeEventListener("medium-zoom:"+$,I,G)}),w=w.filter(function(X){return!(X.type==="medium-zoom:"+$&&X.listener.toString()===I.toString())}),H},p=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=$.target,G=function(){var T={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},j=void 0,B=void 0;if(F.container)if(F.container instanceof Object)T=on({},T,F.container),j=T.width-T.left-T.right-F.margin*2,B=T.height-T.top-T.bottom-F.margin*2;else{var Z=vo(F.container)?F.container:document.querySelector(F.container),ue=Z.getBoundingClientRect(),C=ue.width,E=ue.height,N=ue.left,O=ue.top;T=on({},T,{width:C,height:E,left:N,top:O})}j=j||T.width-F.margin*2,B=B||T.height-F.margin*2;var P=S.zoomedHd||S.original,U=zs(P)?j:P.naturalWidth||j,L=zs(P)?B:P.naturalHeight||B,R=P.getBoundingClientRect(),M=R.top,Q=R.left,re=R.width,oe=R.height,ce=Math.min(Math.max(re,U),j)/re,le=Math.min(Math.max(oe,L),B)/oe,he=Math.min(ce,le),Be=(-Q+(j-re)/2+F.margin+T.left)/he,At=(-M+(B-oe)/2+F.margin+T.top)/he,Xe="scale("+he+") translate3d("+Be+"px, "+At+"px, 0)";S.zoomed.style.transform=Xe,S.zoomedHd&&(S.zoomedHd.style.transform=Xe)};return new r(function(X){if(I&&g.indexOf(I)===-1){X(H);return}var T=function C(){k=!1,S.zoomed.removeEventListener("transitionend",C),S.original.dispatchEvent(Fn("medium-zoom:opened",{detail:{zoom:H}})),X(H)};if(S.zoomed){X(H);return}if(I)S.original=I;else if(g.length>0){var j=g;S.original=j[0]}else{X(H);return}if(S.original.dispatchEvent(Fn("medium-zoom:open",{detail:{zoom:H}})),D=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,k=!0,S.zoomed=np(S.original),document.body.appendChild(q),F.template){var B=vo(F.template)?F.template:document.querySelector(F.template);S.template=document.createElement("div"),S.template.appendChild(B.content.cloneNode(!0)),document.body.appendChild(S.template)}if(S.original.parentElement&&S.original.parentElement.tagName==="PICTURE"&&S.original.currentSrc&&(S.zoomed.src=S.original.currentSrc),document.body.appendChild(S.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),S.original.classList.add("medium-zoom-image--hidden"),S.zoomed.classList.add("medium-zoom-image--opened"),S.zoomed.addEventListener("click",m),S.zoomed.addEventListener("transitionend",T),S.original.getAttribute("data-zoom-src")){S.zoomedHd=S.zoomed.cloneNode(),S.zoomedHd.removeAttribute("srcset"),S.zoomedHd.removeAttribute("sizes"),S.zoomedHd.removeAttribute("loading"),S.zoomedHd.src=S.zoomed.getAttribute("data-zoom-src"),S.zoomedHd.onerror=function(){clearInterval(Z),console.warn("Unable to reach the zoom image target "+S.zoomedHd.src),S.zoomedHd=null,G()};var Z=setInterval(function(){S.zoomedHd.complete&&(clearInterval(Z),S.zoomedHd.classList.add("medium-zoom-image--opened"),S.zoomedHd.addEventListener("click",m),document.body.appendChild(S.zoomedHd),G())},10)}else if(S.original.hasAttribute("srcset")){S.zoomedHd=S.zoomed.cloneNode(),S.zoomedHd.removeAttribute("sizes"),S.zoomedHd.removeAttribute("loading");var ue=S.zoomedHd.addEventListener("load",function(){S.zoomedHd.removeEventListener("load",ue),S.zoomedHd.classList.add("medium-zoom-image--opened"),S.zoomedHd.addEventListener("click",m),document.body.appendChild(S.zoomedHd),G()})}else G()})},m=function(){return new r(function($){if(k||!S.original){$(H);return}var I=function G(){S.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(S.zoomed),S.zoomedHd&&document.body.removeChild(S.zoomedHd),document.body.removeChild(q),S.zoomed.classList.remove("medium-zoom-image--opened"),S.template&&document.body.removeChild(S.template),k=!1,S.zoomed.removeEventListener("transitionend",G),S.original.dispatchEvent(Fn("medium-zoom:closed",{detail:{zoom:H}})),S.original=null,S.zoomed=null,S.zoomedHd=null,S.template=null,$(H)};k=!0,document.body.classList.remove("medium-zoom--opened"),S.zoomed.style.transform="",S.zoomedHd&&(S.zoomedHd.style.transform=""),S.template&&(S.template.style.transition="opacity 150ms",S.template.style.opacity=0),S.original.dispatchEvent(Fn("medium-zoom:close",{detail:{zoom:H}})),S.zoomed.addEventListener("transitionend",I)})},x=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=$.target;return S.original?m():p({target:I})},v=function(){return F},y=function(){return g},b=function(){return S.original},g=[],w=[],k=!1,D=0,F=n,S={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?F=t:(t||typeof t=="string")&&d(t),F=on({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},F);var q=tp(F.background);document.addEventListener("click",u),document.addEventListener("keyup",a),document.addEventListener("scroll",o),window.addEventListener("resize",m);var H={open:p,close:m,toggle:x,update:s,clone:l,attach:d,detach:f,on:c,off:h,getOptions:v,getImages:y,getZoomedImage:b};return H};function op(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.type="text/css",n==="top"&&r.firstChild?r.insertBefore(u,r.firstChild):r.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e))}}var up=".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}";op(up);const qt={hljs:`${K}-hljs`,hlcss:`${K}-hlCss`,mermaidM:`${K}-mermaid-m`,mermaid:`${K}-mermaid`,katexjs:`${K}-katex`,katexcss:`${K}-katexCss`,echarts:`${K}-echarts`},ip=(e,{editorId:t,rootRef:n,setting:r})=>{const u=ht.editorExtensions.highlight,o=ht.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}=u,l={...ju,...u.css},{js:d,css:f={}}=o||{},c=e.codeStyleReverse&&e.codeStyleReverseList.includes(e.previewTheme)?"dark":e.theme,h=l[e.codeTheme]?l[e.codeTheme][c]:ju.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={...Ns,...ht.editorConfig.languageUserDefined};return Bu(fr(Ns["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}},ap=e=>{const t=i.useId();return e.id||e.editorId||`${K}-${t}`},sp=(e,t,n)=>{const r=i.inject("editorId"),u=i.inject("rootRef"),o=i.inject("usedLanguageText"),a=i.inject("setting"),s=()=>{u.value.querySelectorAll(`#${r} .${K}-preview .${K}-code`).forEach(f=>{let c=-1;const h=f.querySelector(`.${K}-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:x,successTips:v,failTips:y}=o.value.copyCode;let b=v;Is(e.formatCopiedText(m||"")).catch(()=>{b=y}).finally(()=>{h.dataset.isIcon?h.dataset.tips=b:h.innerHTML=b,c=window.setTimeout(()=>{h.dataset.isIcon?h.dataset.tips=x:h.innerHTML=x},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)},lp=e=>{const t=i.inject("editorId"),n=i.inject("theme"),r=i.inject("rootRef"),{editorExtensions:u,editorExtensionsAttrs:o}=ht;let a=u.echarts.instance;const s=i.shallowRef(-1),l=()=>{!e.noEcharts&&a&&(s.value=s.value+1)};i.watch(()=>n.value,()=>{l()}),i.onMounted(()=>{var x;if(e.noEcharts||a)return;const m=u.echarts.js;Gt("script",{...(x=o.echarts)==null?void 0:x.js,src:m,id:qt.echarts,onload(){a=window.echarts,l()}},"echarts")});let d=[],f=[],c=[];const h=(m=!1)=>{if(!d.length){m&&(f.forEach(b=>{var g;(g=b.dispose)==null||g.call(b)}),c.forEach(b=>{var g;(g=b.disconnect)==null||g.call(b)}),f=[],c=[]);return}const x=[],v=[],y=[];d.forEach((b,g)=>{var D,F;const w=f[g],k=c[g];if(m||!b||!b.isConnected||r!=null&&r.value&&!r.value.contains(b)){(D=w==null?void 0:w.dispose)==null||D.call(w),(F=k==null?void 0:k.disconnect)==null||F.call(k);return}x.push(b),w&&v.push(w),k&&y.push(k)}),d=x,f=v,c=y},p=()=>{h(),!e.noEcharts&&a&&Array.from(r.value.querySelectorAll(`#${t} div.${K}-echarts:not([data-processed])`)).forEach(m=>{if(m.dataset.closed==="false")return!1;try{const x=new Function(`return ${m.innerText}`)(),v=a.init(m,n.value);v.setOption(x),m.setAttribute("data-processed",""),d.push(m),f.push(v);const y=new ResizeObserver(()=>{v.resize()});y.observe(m),c.push(y)}catch(x){at.emit(t,Hu,{name:"echarts",message:x==null?void 0:x.message,error:x})}})};return i.onBeforeUnmount(()=>{h(!0)}),{reRenderEcharts:s,replaceEcharts:p}},cp=e=>{const t=i.inject("highlight"),n=i.shallowRef(ht.editorExtensions.highlight.instance);return i.onMounted(()=>{e.noHighlight||n.value||(Gt("link",{...t.value.css,rel:"stylesheet",id:qt.hlcss}),Gt("script",{...t.value.js,id:qt.hljs,onload(){n.value=window.hljs}},"hljs"))}),i.watch(()=>t.value.css,()=>{e.noHighlight||ht.editorExtensions.highlight.instance||Mm("link",{...t.value.css,rel:"stylesheet",id:qt.hlcss})}),n},dp=e=>{const t=i.shallowRef(ht.editorExtensions.katex.instance);return i.onMounted(()=>{var u,o;if(e.noKatex||t.value)return;const{editorExtensions:n,editorExtensionsAttrs:r}=ht;Gt("script",{...(u=r.katex)==null?void 0:u.js,src:n.katex.js,id:qt.katexjs,onload(){t.value=window.katex}},"katex"),Gt("link",{...(o=r.katex)==null?void 0:o.css,rel:"stylesheet",href:n.katex.css,id:qt.katexcss})}),t},Ao=new Jm({max:1e3,ttl:6e5}),fp=e=>{const t=i.inject("editorId"),n=i.inject("theme"),r=i.inject("rootRef"),{editorExtensions:u,editorExtensionsAttrs:o,mermaidConfig:a}=ht;let s=u.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,()=>{Ao.clear(),d()}),i.onMounted(()=>{var c,h;if(e.noMermaid||s)return;const f=u.mermaid.js;/\.mjs/.test(f)?(Gt("link",{...(c=o.mermaid)==null?void 0:c.js,rel:"modulepreload",href:f,id:qt.mermaidM}),import(f).then(p=>{s=p.default,d()}).catch(p=>{at.emit(t,Hu,{name:"mermaid",message:`Failed to load mermaid module: ${p.message}`,error:p})})):Gt("script",{...(h=o.mermaid)==null?void 0:h.js,src:f,id:qt.mermaid,onload(){s=window.mermaid,d()}},"mermaid")}),{reRenderRef:l,replaceMermaid:async()=>{if(!e.noMermaid&&s){const f=r.value.querySelectorAll(`div.${K}-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(x=>(async v=>{var g;if(v.dataset.closed==="false")return!1;const y=v.innerText;let b=Ao.get(y);if(!b){const w=Mu();let k={svg:""};try{k=await s.render(w,y,c),b=await e.sanitizeMermaid(k.svg);const D=document.createElement("p");D.className=`${K}-mermaid`,D.setAttribute("data-processed",""),D.setAttribute("data-content",y),D.innerHTML=b,(g=D.children[0])==null||g.removeAttribute("height"),Ao.set(y,D.innerHTML),v.dataset.line!==void 0&&(D.dataset.line=v.dataset.line),v.replaceWith(D)}catch(D){at.emit(t,Hu,{name:"mermaid",message:D.message,error:D})}--m===0&&c.remove()}})(x)))}}}},hp=(e,t)=>{t=t||{};const n=3,r=t.marker||"!",u=r.charCodeAt(0),o=r.length;let a="",s="";const l=(f,c,h,p,m)=>{const x=f[c];return x.type==="admonition_open"?f[c].attrPush(["class",`${K}-admonition ${K}-admonition-${x.info}`]):x.type==="admonition_title_open"&&f[c].attrPush(["class",`${K}-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,x,v,y=!1,b=f.bMarks[c]+f.tShift[c],g=f.eMarks[c];if(u!==f.src.charCodeAt(b))return!1;for(m=b+1;m<=g&&r[(m-b)%o]===f.src[m];m++);const w=Math.floor((m-b)/o);if(w!==n)return!1;m-=(m-b)%o;const k=f.src.slice(b,m),D=f.src.slice(m,g);if(d(D),p)return!0;for(x=c;x++,!(x>=h||(b=f.bMarks[x]+f.tShift[x],g=f.eMarks[x],b<g&&f.sCount[x]<f.blkIndent));)if(u===f.src.charCodeAt(b)&&!(f.sCount[x]-f.blkIndent>=4)){for(m=b+1;m<=g&&r[(m-b)%o]===f.src[m];m++);if(!(Math.floor((m-b)/o)<w)&&(m-=(m-b)%o,m=f.skipSpaces(m),!(m<g))){y=!0;break}}const F=f.parentType,S=f.lineMax;return f.parentType="root",f.lineMax=x,v=f.push("admonition_open","div",1),v.markup=k,v.block=!0,v.info=a,v.map=[c,x],s&&(v=f.push("admonition_title_open","p",1),v.markup=k+" "+a,v.map=[c,x],v=f.push("inline","",0),v.content=s,v.map=[c,f.line-1],v.children=[],v=f.push("admonition_title_close","p",-1),v.markup=k+" "+a),f.md.block.tokenize(f,c+1,x),v=f.push("admonition_close","div",-1),v.markup=f.src.slice(b,m),v.block=!0,f.parentType=F,f.lineMax=S,f.line=x+(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},Wu=(e,t)=>{const n=e.attrs?e.attrs.slice():[];return t.forEach(r=>{const u=e.attrIndex(r[0]);u<0?n.push(r):(n[u]=n[u].slice(),n[u][1]+=` ${r[1]}`)}),n},mp=(e,t)=>{const n=e.renderer.rules.fence,r=e.utils.unescapeAll,u=/\[(\w*)(?::([\w ]*))?\]/,o=/::(open|close)/,a=c=>c.info?r(c.info).trim():"",s=c=>{const h=a(c),[p=null,m=""]=(u.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(o)||[],p=h[1]==="open"||h[1]!=="close"&&t.codeFoldable&&c.content.trim().split(`
|
|
38
|
-
`).length<t.autoFoldThreshold,m=h[1]||t.codeFoldable?"details":"div",x=h[1]||t.codeFoldable?"summary":"div";return{open:p,tagContainer:m,tagHeader:x}},f=(c,h,p,m,x)=>{var j;if(c[h].hidden)return"";const v=(j=t.usedLanguageTextRef.value)==null?void 0:j.copyCode.text,y=t.customIconRef.value.copy||v,b=!!t.customIconRef.value.copy,g=`<span class="${K}-collapse-tips">${Tt("collapse-tips",t.customIconRef.value)}</span>`,[w]=s(c[h]);if(w===null){const{open:B,tagContainer:Z,tagHeader:ue}=d(c[h]),C=[["class",`${K}-code`]];B&&C.push(["open",""]);const E={attrs:Wu(c[h],C)};c[h].info=c[h].info.replace(o,"");const
|
|
37
|
+
See: https://github.com/francoischalifour/medium-zoom`)}},tp=function(t){var n=document.createElement("div");return n.classList.add("medium-zoom-overlay"),n.style.background=t,n},np=function(t){var n=t.getBoundingClientRect(),r=n.top,u=n.left,o=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=u+d+"px",s.style.width=o+"px",s.style.height=a+"px",s.style.transform="",s},Fn=function(t,n){var r=on({bubbles:!1,cancelable:!1,detail:void 0},n);if(typeof window.CustomEvent=="function")return new CustomEvent(t,r);var u=document.createEvent("CustomEvent");return u.initCustomEvent(t,r.bubbles,r.cancelable,r.detail),u},rp=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=window.Promise||function($){function I(){}$(I,I)},u=function($){var I=$.target;if(I===q){m();return}g.indexOf(I)!==-1&&x({target:I})},o=function(){if(!(k||!S.original)){var $=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(N-$)>F.scrollOffset&&setTimeout(m,150)}},a=function($){var I=$.key||$.keyCode;(I==="Escape"||I==="Esc"||I===27)&&m()},s=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=$;if($.background&&(q.style.background=$.background),$.container&&$.container instanceof Object&&(I.container=on({},F.container,$.container)),$.template){var G=vo($.template)?$.template:document.querySelector($.template);I.template=G}return F=on({},F,I),g.forEach(function(X){X.dispatchEvent(Fn("medium-zoom:update",{detail:{zoom:H}}))}),H},l=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e(on({},F,$))},d=function(){for(var $=arguments.length,I=Array($),G=0;G<$;G++)I[G]=arguments[G];var X=I.reduce(function(T,j){return[].concat(T,js(j))},[]);return X.filter(function(T){return g.indexOf(T)===-1}).forEach(function(T){g.push(T),T.classList.add("medium-zoom-image")}),w.forEach(function(T){var j=T.type,B=T.listener,Z=T.options;X.forEach(function(ue){ue.addEventListener(j,B,Z)})}),H},f=function(){for(var $=arguments.length,I=Array($),G=0;G<$;G++)I[G]=arguments[G];S.zoomed&&m();var X=I.length>0?I.reduce(function(T,j){return[].concat(T,js(j))},[]):g;return X.forEach(function(T){T.classList.remove("medium-zoom-image"),T.dispatchEvent(Fn("medium-zoom:detach",{detail:{zoom:H}}))}),g=g.filter(function(T){return X.indexOf(T)===-1}),H},c=function($,I){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return g.forEach(function(X){X.addEventListener("medium-zoom:"+$,I,G)}),w.push({type:"medium-zoom:"+$,listener:I,options:G}),H},h=function($,I){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return g.forEach(function(X){X.removeEventListener("medium-zoom:"+$,I,G)}),w=w.filter(function(X){return!(X.type==="medium-zoom:"+$&&X.listener.toString()===I.toString())}),H},p=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=$.target,G=function(){var T={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},j=void 0,B=void 0;if(F.container)if(F.container instanceof Object)T=on({},T,F.container),j=T.width-T.left-T.right-F.margin*2,B=T.height-T.top-T.bottom-F.margin*2;else{var Z=vo(F.container)?F.container:document.querySelector(F.container),ue=Z.getBoundingClientRect(),C=ue.width,E=ue.height,D=ue.left,O=ue.top;T=on({},T,{width:C,height:E,left:D,top:O})}j=j||T.width-F.margin*2,B=B||T.height-F.margin*2;var P=S.zoomedHd||S.original,U=zs(P)?j:P.naturalWidth||j,L=zs(P)?B:P.naturalHeight||B,R=P.getBoundingClientRect(),M=R.top,Q=R.left,re=R.width,oe=R.height,ce=Math.min(Math.max(re,U),j)/re,le=Math.min(Math.max(oe,L),B)/oe,he=Math.min(ce,le),Be=(-Q+(j-re)/2+F.margin+T.left)/he,At=(-M+(B-oe)/2+F.margin+T.top)/he,Xe="scale("+he+") translate3d("+Be+"px, "+At+"px, 0)";S.zoomed.style.transform=Xe,S.zoomedHd&&(S.zoomedHd.style.transform=Xe)};return new r(function(X){if(I&&g.indexOf(I)===-1){X(H);return}var T=function C(){k=!1,S.zoomed.removeEventListener("transitionend",C),S.original.dispatchEvent(Fn("medium-zoom:opened",{detail:{zoom:H}})),X(H)};if(S.zoomed){X(H);return}if(I)S.original=I;else if(g.length>0){var j=g;S.original=j[0]}else{X(H);return}if(S.original.dispatchEvent(Fn("medium-zoom:open",{detail:{zoom:H}})),N=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,k=!0,S.zoomed=np(S.original),document.body.appendChild(q),F.template){var B=vo(F.template)?F.template:document.querySelector(F.template);S.template=document.createElement("div"),S.template.appendChild(B.content.cloneNode(!0)),document.body.appendChild(S.template)}if(S.original.parentElement&&S.original.parentElement.tagName==="PICTURE"&&S.original.currentSrc&&(S.zoomed.src=S.original.currentSrc),document.body.appendChild(S.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),S.original.classList.add("medium-zoom-image--hidden"),S.zoomed.classList.add("medium-zoom-image--opened"),S.zoomed.addEventListener("click",m),S.zoomed.addEventListener("transitionend",T),S.original.getAttribute("data-zoom-src")){S.zoomedHd=S.zoomed.cloneNode(),S.zoomedHd.removeAttribute("srcset"),S.zoomedHd.removeAttribute("sizes"),S.zoomedHd.removeAttribute("loading"),S.zoomedHd.src=S.zoomed.getAttribute("data-zoom-src"),S.zoomedHd.onerror=function(){clearInterval(Z),console.warn("Unable to reach the zoom image target "+S.zoomedHd.src),S.zoomedHd=null,G()};var Z=setInterval(function(){S.zoomedHd.complete&&(clearInterval(Z),S.zoomedHd.classList.add("medium-zoom-image--opened"),S.zoomedHd.addEventListener("click",m),document.body.appendChild(S.zoomedHd),G())},10)}else if(S.original.hasAttribute("srcset")){S.zoomedHd=S.zoomed.cloneNode(),S.zoomedHd.removeAttribute("sizes"),S.zoomedHd.removeAttribute("loading");var ue=S.zoomedHd.addEventListener("load",function(){S.zoomedHd.removeEventListener("load",ue),S.zoomedHd.classList.add("medium-zoom-image--opened"),S.zoomedHd.addEventListener("click",m),document.body.appendChild(S.zoomedHd),G()})}else G()})},m=function(){return new r(function($){if(k||!S.original){$(H);return}var I=function G(){S.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(S.zoomed),S.zoomedHd&&document.body.removeChild(S.zoomedHd),document.body.removeChild(q),S.zoomed.classList.remove("medium-zoom-image--opened"),S.template&&document.body.removeChild(S.template),k=!1,S.zoomed.removeEventListener("transitionend",G),S.original.dispatchEvent(Fn("medium-zoom:closed",{detail:{zoom:H}})),S.original=null,S.zoomed=null,S.zoomedHd=null,S.template=null,$(H)};k=!0,document.body.classList.remove("medium-zoom--opened"),S.zoomed.style.transform="",S.zoomedHd&&(S.zoomedHd.style.transform=""),S.template&&(S.template.style.transition="opacity 150ms",S.template.style.opacity=0),S.original.dispatchEvent(Fn("medium-zoom:close",{detail:{zoom:H}})),S.zoomed.addEventListener("transitionend",I)})},x=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=$.target;return S.original?m():p({target:I})},v=function(){return F},y=function(){return g},b=function(){return S.original},g=[],w=[],k=!1,N=0,F=n,S={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?F=t:(t||typeof t=="string")&&d(t),F=on({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},F);var q=tp(F.background);document.addEventListener("click",u),document.addEventListener("keyup",a),document.addEventListener("scroll",o),window.addEventListener("resize",m);var H={open:p,close:m,toggle:x,update:s,clone:l,attach:d,detach:f,on:c,off:h,getOptions:v,getImages:y,getZoomedImage:b};return H};function op(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],u=document.createElement("style");u.type="text/css",n==="top"&&r.firstChild?r.insertBefore(u,r.firstChild):r.appendChild(u),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(document.createTextNode(e))}}var up=".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}";op(up);const qt={hljs:`${K}-hljs`,hlcss:`${K}-hlCss`,mermaidM:`${K}-mermaid-m`,mermaid:`${K}-mermaid`,katexjs:`${K}-katex`,katexcss:`${K}-katexCss`,echarts:`${K}-echarts`},ip=(e,{editorId:t,rootRef:n,setting:r})=>{const u=ht.editorExtensions.highlight,o=ht.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}=u,l={...ju,...u.css},{js:d,css:f={}}=o||{},c=e.codeStyleReverse&&e.codeStyleReverseList.includes(e.previewTheme)?"dark":e.theme,h=l[e.codeTheme]?l[e.codeTheme][c]:ju.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,...ht.editorConfig.languageUserDefined};return Bu(fr(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}},ap=e=>{const t=i.useId();return e.id||e.editorId||`${K}-${t}`},sp=(e,t,n)=>{const r=i.inject("editorId"),u=i.inject("rootRef"),o=i.inject("usedLanguageText"),a=i.inject("setting"),s=()=>{u.value.querySelectorAll(`#${r} .${K}-preview .${K}-code`).forEach(f=>{let c=-1;const h=f.querySelector(`.${K}-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:x,successTips:v,failTips:y}=o.value.copyCode;let b=v;Is(e.formatCopiedText(m||"")).catch(()=>{b=y}).finally(()=>{h.dataset.isIcon?h.dataset.tips=b:h.innerHTML=b,c=window.setTimeout(()=>{h.dataset.isIcon?h.dataset.tips=x:h.innerHTML=x},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)},lp=e=>{const t=i.inject("editorId"),n=i.inject("theme"),r=i.inject("rootRef"),{editorExtensions:u,editorExtensionsAttrs:o}=ht;let a=u.echarts.instance;const s=i.shallowRef(-1),l=()=>{!e.noEcharts&&a&&(s.value=s.value+1)};i.watch(()=>n.value,()=>{l()}),i.onMounted(()=>{var x;if(e.noEcharts||a)return;const m=u.echarts.js;Gt("script",{...(x=o.echarts)==null?void 0:x.js,src:m,id:qt.echarts,onload(){a=window.echarts,l()}},"echarts")});let d=[],f=[],c=[];const h=(m=!1)=>{if(!d.length){m&&(f.forEach(b=>{var g;(g=b.dispose)==null||g.call(b)}),c.forEach(b=>{var g;(g=b.disconnect)==null||g.call(b)}),f=[],c=[]);return}const x=[],v=[],y=[];d.forEach((b,g)=>{var N,F;const w=f[g],k=c[g];if(m||!b||!b.isConnected||r!=null&&r.value&&!r.value.contains(b)){(N=w==null?void 0:w.dispose)==null||N.call(w),(F=k==null?void 0:k.disconnect)==null||F.call(k);return}x.push(b),w&&v.push(w),k&&y.push(k)}),d=x,f=v,c=y},p=()=>{h(),!e.noEcharts&&a&&Array.from(r.value.querySelectorAll(`#${t} div.${K}-echarts:not([data-processed])`)).forEach(m=>{if(m.dataset.closed==="false")return!1;try{const x=new Function(`return ${m.innerText}`)(),v=a.init(m,n.value);v.setOption(x),m.setAttribute("data-processed",""),d.push(m),f.push(v);const y=new ResizeObserver(()=>{v.resize()});y.observe(m),c.push(y)}catch(x){at.emit(t,Hu,{name:"echarts",message:x==null?void 0:x.message,error:x})}})};return i.onBeforeUnmount(()=>{h(!0)}),{reRenderEcharts:s,replaceEcharts:p}},cp=e=>{const t=i.inject("highlight"),n=i.shallowRef(ht.editorExtensions.highlight.instance);return i.onMounted(()=>{e.noHighlight||n.value||(Gt("link",{...t.value.css,rel:"stylesheet",id:qt.hlcss}),Gt("script",{...t.value.js,id:qt.hljs,onload(){n.value=window.hljs}},"hljs"))}),i.watch(()=>t.value.css,()=>{e.noHighlight||ht.editorExtensions.highlight.instance||Mm("link",{...t.value.css,rel:"stylesheet",id:qt.hlcss})}),n},dp=e=>{const t=i.shallowRef(ht.editorExtensions.katex.instance);return i.onMounted(()=>{var u,o;if(e.noKatex||t.value)return;const{editorExtensions:n,editorExtensionsAttrs:r}=ht;Gt("script",{...(u=r.katex)==null?void 0:u.js,src:n.katex.js,id:qt.katexjs,onload(){t.value=window.katex}},"katex"),Gt("link",{...(o=r.katex)==null?void 0:o.css,rel:"stylesheet",href:n.katex.css,id:qt.katexcss})}),t},Ao=new Jm({max:1e3,ttl:6e5}),fp=e=>{const t=i.inject("editorId"),n=i.inject("theme"),r=i.inject("rootRef"),{editorExtensions:u,editorExtensionsAttrs:o,mermaidConfig:a}=ht;let s=u.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,()=>{Ao.clear(),d()}),i.onMounted(()=>{var c,h;if(e.noMermaid||s)return;const f=u.mermaid.js;/\.mjs/.test(f)?(Gt("link",{...(c=o.mermaid)==null?void 0:c.js,rel:"modulepreload",href:f,id:qt.mermaidM}),import(f).then(p=>{s=p.default,d()}).catch(p=>{at.emit(t,Hu,{name:"mermaid",message:`Failed to load mermaid module: ${p.message}`,error:p})})):Gt("script",{...(h=o.mermaid)==null?void 0:h.js,src:f,id:qt.mermaid,onload(){s=window.mermaid,d()}},"mermaid")}),{reRenderRef:l,replaceMermaid:async()=>{if(!e.noMermaid&&s){const f=r.value.querySelectorAll(`div.${K}-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(x=>(async v=>{var g;if(v.dataset.closed==="false")return!1;const y=v.innerText;let b=Ao.get(y);if(!b){const w=Mu();let k={svg:""};try{k=await s.render(w,y,c),b=await e.sanitizeMermaid(k.svg);const N=document.createElement("p");N.className=`${K}-mermaid`,N.setAttribute("data-processed",""),N.setAttribute("data-content",y),N.innerHTML=b,(g=N.children[0])==null||g.removeAttribute("height"),Ao.set(y,N.innerHTML),v.dataset.line!==void 0&&(N.dataset.line=v.dataset.line),v.replaceWith(N)}catch(N){at.emit(t,Hu,{name:"mermaid",message:N.message,error:N})}--m===0&&c.remove()}})(x)))}}}},hp=(e,t)=>{t=t||{};const n=3,r=t.marker||"!",u=r.charCodeAt(0),o=r.length;let a="",s="";const l=(f,c,h,p,m)=>{const x=f[c];return x.type==="admonition_open"?f[c].attrPush(["class",`${K}-admonition ${K}-admonition-${x.info}`]):x.type==="admonition_title_open"&&f[c].attrPush(["class",`${K}-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,x,v,y=!1,b=f.bMarks[c]+f.tShift[c],g=f.eMarks[c];if(u!==f.src.charCodeAt(b))return!1;for(m=b+1;m<=g&&r[(m-b)%o]===f.src[m];m++);const w=Math.floor((m-b)/o);if(w!==n)return!1;m-=(m-b)%o;const k=f.src.slice(b,m),N=f.src.slice(m,g);if(d(N),p)return!0;for(x=c;x++,!(x>=h||(b=f.bMarks[x]+f.tShift[x],g=f.eMarks[x],b<g&&f.sCount[x]<f.blkIndent));)if(u===f.src.charCodeAt(b)&&!(f.sCount[x]-f.blkIndent>=4)){for(m=b+1;m<=g&&r[(m-b)%o]===f.src[m];m++);if(!(Math.floor((m-b)/o)<w)&&(m-=(m-b)%o,m=f.skipSpaces(m),!(m<g))){y=!0;break}}const F=f.parentType,S=f.lineMax;return f.parentType="root",f.lineMax=x,v=f.push("admonition_open","div",1),v.markup=k,v.block=!0,v.info=a,v.map=[c,x],s&&(v=f.push("admonition_title_open","p",1),v.markup=k+" "+a,v.map=[c,x],v=f.push("inline","",0),v.content=s,v.map=[c,f.line-1],v.children=[],v=f.push("admonition_title_close","p",-1),v.markup=k+" "+a),f.md.block.tokenize(f,c+1,x),v=f.push("admonition_close","div",-1),v.markup=f.src.slice(b,m),v.block=!0,f.parentType=F,f.lineMax=S,f.line=x+(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},Wu=(e,t)=>{const n=e.attrs?e.attrs.slice():[];return t.forEach(r=>{const u=e.attrIndex(r[0]);u<0?n.push(r):(n[u]=n[u].slice(),n[u][1]+=` ${r[1]}`)}),n},mp=(e,t)=>{const n=e.renderer.rules.fence,r=e.utils.unescapeAll,u=/\[(\w*)(?::([\w ]*))?\]/,o=/::(open|close)/,a=c=>c.info?r(c.info).trim():"",s=c=>{const h=a(c),[p=null,m=""]=(u.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(o)||[],p=h[1]==="open"||h[1]!=="close"&&t.codeFoldable&&c.content.trim().split(`
|
|
38
|
+
`).length<t.autoFoldThreshold,m=h[1]||t.codeFoldable?"details":"div",x=h[1]||t.codeFoldable?"summary":"div";return{open:p,tagContainer:m,tagHeader:x}},f=(c,h,p,m,x)=>{var j;if(c[h].hidden)return"";const v=(j=t.usedLanguageTextRef.value)==null?void 0:j.copyCode.text,y=t.customIconRef.value.copy||v,b=!!t.customIconRef.value.copy,g=`<span class="${K}-collapse-tips">${Tt("collapse-tips",t.customIconRef.value)}</span>`,[w]=s(c[h]);if(w===null){const{open:B,tagContainer:Z,tagHeader:ue}=d(c[h]),C=[["class",`${K}-code`]];B&&C.push(["open",""]);const E={attrs:Wu(c[h],C)};c[h].info=c[h].info.replace(o,"");const D=n(c,h,p,m,x);return`
|
|
39
39
|
<${Z} ${x.renderAttrs(E)}>
|
|
40
40
|
<${ue} class="${K}-code-head">
|
|
41
41
|
<div class="${K}-code-flag"><span></span><span></span><span></span></div>
|
|
@@ -46,9 +46,9 @@ See: https://github.com/francoischalifour/medium-zoom`)}},tp=function(t){var n=d
|
|
|
46
46
|
${Z==="details"?g:""}
|
|
47
47
|
</div>
|
|
48
48
|
</${ue}>
|
|
49
|
-
${
|
|
49
|
+
${D}
|
|
50
50
|
</${Z}>
|
|
51
|
-
`}let k,
|
|
51
|
+
`}let k,N,F,S,q="",H="",z="";const{open:$,tagContainer:I,tagHeader:G}=d(c[h]),X=[["class",`${K}-code`]];$&&X.push(["open",""]);const T={attrs:Wu(c[h],X)};for(let B=h;B<c.length&&(k=c[B],[N,F]=s(k),N===w);B++){k.info=k.info.replace(u,"").replace(o,""),k.hidden=!0;const Z=`${K}-codetab-${t.editorId}-${h}-${B-h}`;S=B-h>0?"":"checked",q+=`
|
|
52
52
|
<li>
|
|
53
53
|
<input
|
|
54
54
|
type="radio"
|
|
@@ -94,12 +94,12 @@ See: https://github.com/francoischalifour/medium-zoom`)}},tp=function(t){var n=d
|
|
|
94
94
|
</${G}>
|
|
95
95
|
${H}
|
|
96
96
|
</${I}>
|
|
97
|
-
`};e.renderer.rules.fence=f,e.renderer.rules.code_block=f},pp=(e,t)=>{const n=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(r,u,o,a,s)=>{var f,c;const l=r[u],d=l.content.trim();if(l.info==="echarts"){if(l.attrSet("class",`${K}-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,u,o,a,s)}},gp=(e,t)=>{e.renderer.rules.heading_open=(n,r)=>{var s;const u=n[r],o=((s=n[r+1].children)==null?void 0:s.reduce((l,d)=>l+(["text","code_inline","math_inline"].includes(d.type)&&d.content||""),""))||"",a=u.markup.length;return t.headsRef.value.push({text:o,level:a,line:u.map[0],currentToken:u,nextToken:n[r+1]}),u.map&&u.level===0&&u.attrSet("id",t.mdHeadingId({text:o,level:a,index:t.headsRef.value.length,currentToken:u,nextToken:n[r+1]})),e.renderer.renderToken(n,r,t)},e.renderer.rules.heading_close=(n,r,u,o,a)=>a.renderToken(n,r,u)},Hs={block:[{open:"$$",close:"$$"},{open:"\\[",close:"\\]"}],inline:[{open:"$$",close:"$$"},{open:"$",close:"$"},{open:"\\[",close:"\\]"},{open:"\\(",close:"\\)"}]},bp=e=>(t,n)=>{const r=e.delimiters;for(const u of r){if(!t.src.startsWith(u.open,t.pos))continue;const o=t.pos+u.open.length;let a=o;for(;(a=t.src.indexOf(u.close,a))!==-1;){let s=0,l=a-1;for(;l>=0&&t.src[l]==="\\";)s++,l--;if(s%2===0)break;a+=u.close.length}if(a!==-1){if(a-o===0)return n||(t.pending+=u.open+u.close),t.pos=a+u.close.length,!0;if(!n){const s=t.push("math_inline","math",0);s.markup=u.open,s.content=t.src.slice(o,a)}return t.pos=a+u.close.length,!0}}return!1},yp=e=>(t,n,r,u)=>{const o=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 o){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,x=h.endsWith(d.close);if(!p&&!m&&!x)continue;if(u)return!0;if(m)return l("",n+1,d.open);if(!p&&x){const w=h.slice(0,-d.close.length);return l(w,n+1,d.open)}let v=n+1,y=!1,b="";for(;v<r;v++){const w=t.bMarks[v]+t.tShift[v],k=t.eMarks[v];if(w<k&&t.tShift[v]<t.blkIndent)break;if(t.src.slice(w,k).trim().endsWith(d.close)){const
|
|
97
|
+
`};e.renderer.rules.fence=f,e.renderer.rules.code_block=f},pp=(e,t)=>{const n=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(r,u,o,a,s)=>{var f,c;const l=r[u],d=l.content.trim();if(l.info==="echarts"){if(l.attrSet("class",`${K}-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,u,o,a,s)}},gp=(e,t)=>{e.renderer.rules.heading_open=(n,r)=>{var s;const u=n[r],o=((s=n[r+1].children)==null?void 0:s.reduce((l,d)=>l+(["text","code_inline","math_inline"].includes(d.type)&&d.content||""),""))||"",a=u.markup.length;return t.headsRef.value.push({text:o,level:a,line:u.map[0],currentToken:u,nextToken:n[r+1]}),u.map&&u.level===0&&u.attrSet("id",t.mdHeadingId({text:o,level:a,index:t.headsRef.value.length,currentToken:u,nextToken:n[r+1]})),e.renderer.renderToken(n,r,t)},e.renderer.rules.heading_close=(n,r,u,o,a)=>a.renderToken(n,r,u)},Hs={block:[{open:"$$",close:"$$"},{open:"\\[",close:"\\]"}],inline:[{open:"$$",close:"$$"},{open:"$",close:"$"},{open:"\\[",close:"\\]"},{open:"\\(",close:"\\)"}]},bp=e=>(t,n)=>{const r=e.delimiters;for(const u of r){if(!t.src.startsWith(u.open,t.pos))continue;const o=t.pos+u.open.length;let a=o;for(;(a=t.src.indexOf(u.close,a))!==-1;){let s=0,l=a-1;for(;l>=0&&t.src[l]==="\\";)s++,l--;if(s%2===0)break;a+=u.close.length}if(a!==-1){if(a-o===0)return n||(t.pending+=u.open+u.close),t.pos=a+u.close.length,!0;if(!n){const s=t.push("math_inline","math",0);s.markup=u.open,s.content=t.src.slice(o,a)}return t.pos=a+u.close.length,!0}}return!1},yp=e=>(t,n,r,u)=>{const o=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 o){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,x=h.endsWith(d.close);if(!p&&!m&&!x)continue;if(u)return!0;if(m)return l("",n+1,d.open);if(!p&&x){const w=h.slice(0,-d.close.length);return l(w,n+1,d.open)}let v=n+1,y=!1,b="";for(;v<r;v++){const w=t.bMarks[v]+t.tShift[v],k=t.eMarks[v];if(w<k&&t.tShift[v]<t.blkIndent)break;if(t.src.slice(w,k).trim().endsWith(d.close)){const N=t.src.slice(0,k).lastIndexOf(d.close);b=t.src.slice(w,N),y=!0;break}}if(!y)continue;const g=t.getLines(n+1,v,t.tShift[n],!0)+(b.trim()?b:"");return l(g,v+1,d.open)}return!1},wp=(e,{katexRef:t,inlineDelimiters:n,blockDelimiters:r})=>{const u=(s,l,d,f,c=!1)=>{const h={attrs:Wu(s,[["class",l]])},p=f.renderAttrs(h);if(!t.value)return`<${d} ${p}>${s.content}</${d}>`;const m=t.value.renderToString(s.content,ht.katexConfig({throwOnError:!1,displayMode:c}));return`<${d} ${p} data-processed>${m}</${d}>`},o=(s,l,d,f,c)=>u(s[l],`${K}-katex-inline`,"span",c),a=(s,l,d,f,c)=>u(s[l],`${K}-katex-block`,"p",c,!0);e.inline.ruler.before("escape","math_inline",bp({delimiters:n||Hs.inline})),e.block.ruler.after("blockquote","math_block",yp({delimiters:r||Hs.block}),{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=o,e.renderer.rules.math_block=a},xp=(e,t)=>{const n=e.renderer.rules.fence.bind(e.renderer.rules);e.renderer.rules.fence=(r,u,o,a,s)=>{var f,c;const l=r[u],d=l.content.trim();if(l.info==="mermaid"){if(l.attrSet("class",`${K}-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=Ao.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,u,o,a,s)}},$s=(e,t,n)=>{const r=e.attrIndex(t),u=[t,n];r<0?e.attrPush(u):(e.attrs=e.attrs||[],e.attrs[r]=u)},vp=e=>e.type==="inline",Ap=e=>e.type==="paragraph_open",kp=e=>e.type==="list_item_open",Cp=e=>e.content.indexOf("[ ] ")===0||e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0,_p=(e,t)=>vp(e[t])&&Ap(e[t-1])&&kp(e[t-2])&&Cp(e[t]),Ep=(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},Sp=e=>{const t=new e("html_inline","",0);return t.content="<label>",t},Fp=e=>{const t=new e("html_inline","",0);return t.content="</label>",t},Np=(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},Dp=(e,t,n)=>{const r=new t("html_inline","",0),u=n.enabled?" ":' disabled="" ';return e.content.indexOf("[ ] ")===0?r.content='<input class="task-list-item-checkbox"'+u+'type="checkbox">':(e.content.indexOf("[x] ")===0||e.content.indexOf("[X] ")===0)&&(r.content='<input class="task-list-item-checkbox" checked=""'+u+'type="checkbox">'),r},Tp=(e,t,n)=>{if(e.children=e.children||[],e.children.unshift(Dp(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(Np(e.content,r,t))}else e.children.unshift(Sp(t)),e.children.push(Fp(t))},Ip=(e,t={})=>{e.core.ruler.after("inline","github-task-lists",n=>{const r=n.tokens;for(let u=2;u<r.length;u++)_p(r,u)&&(Tp(r[u],n.Token,t),$s(r[u-2],"class","task-list-item"+(t.enabled?" enabled":" ")),$s(r[Ep(r,u-2)],"class","contains-task-list"))})},Op=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))},Lp=(e,t)=>{const{editorConfig:n,markdownItPlugins:r}=ht,u=i.inject("editorId"),o=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=cp(e),m=dp(e),{reRenderRef:x,replaceMermaid:v}=fp(e),{reRenderEcharts:y,replaceEcharts:b}=lp(e),g=Qe({html:!0,breaks:!0,linkify:!0}),w=[{type:"image",plugin:$m,options:{figcaption:!0,classes:"md-zoom"}},{type:"admonition",plugin:hp,options:{}},{type:"taskList",plugin:Ip,options:{}},{type:"heading",plugin:gp,options:{mdHeadingId:e.mdHeadingId,headsRef:h}},{type:"code",plugin:mp,options:{editorId:u,usedLanguageTextRef:a,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold,customIconRef:d}},{type:"sub",plugin:Gm,options:{}},{type:"sup",plugin:Zm,options:{}}];e.noKatex||w.push({type:"katex",plugin:wp,options:{katexRef:m}}),e.noMermaid||w.push({type:"mermaid",plugin:xp,options:{themeRef:l}}),e.noEcharts||w.push({type:"echarts",plugin:pp,options:{themeRef:l}}),r(w,{editorId:u}).forEach(X=>{g.use(X.plugin,X.options)});const k=g.options.highlight;g.set({highlight:(X,T,j)=>{if(k){const ue=k(X,T,j);if(ue)return ue}let B;!e.noHighlight&&p.value?p.value.getLanguage(T)?B=p.value.highlight(X,{language:T,ignoreIllegals:!0}).value:B=p.value.highlightAuto(X).value:B=g.utils.escapeHtml(X);const Z=s?Pm(B.replace(/^\n+|\n+$/g,""),X.replace(/^\n+|\n+$/g,"")):`<span class="${K}-code-block">${B.replace(/^\n+|\n+$/g,"")}</span>`;return`<pre><code class="language-${T}" language=${T}>${Z}</code></pre>`}}),Op(g);const N=i.ref(`_article-key_${Mu()}`),F=i.ref(e.sanitize(g.render(e.modelValue,{srcLines:e.modelValue.split(`
|
|
98
98
|
`)})));let S=()=>{},q=()=>{};const H=()=>{var T;const X=(T=f.value)==null?void 0:T.querySelectorAll(`#${u} p.${K}-mermaid:not([data-closed=false])`);q(),q=zm(X,{customIcon:d.value}),S(),S=jm(X,{customIcon:d.value})},z=()=>{at.emit(u,Im,F.value),e.onHtmlChanged(F.value),e.onGetCatalog(h.value),at.emit(u,$u,h.value),i.nextTick(()=>{v().then(H),b()})},$=()=>{h.value=[],F.value=e.sanitize(g.render(e.modelValue,{srcLines:e.modelValue.split(`
|
|
99
|
-
`)}))},I=i.computed(()=>(e.noKatex||!!m.value)&&(e.noHighlight||!!p.value));let G=-1;return i.watch([i.toRef(e,"modelValue"),I,x,o],()=>{G=window.setTimeout(()=>{$()},t?0:n.renderDelay)}),i.watch(()=>c.value.preview,()=>{c.value.preview&&i.nextTick(()=>{v().then(H),b(),at.emit(u,$u,h.value)})}),i.watch([F,y],()=>{z()}),i.onMounted(z),i.onMounted(()=>{at.on(u,{name:Om,callback(){at.emit(u,$u,h.value)}}),at.on(u,{name:Ts,callback:()=>{
|
|
99
|
+
`)}))},I=i.computed(()=>(e.noKatex||!!m.value)&&(e.noHighlight||!!p.value));let G=-1;return i.watch([i.toRef(e,"modelValue"),I,x,o],()=>{G=window.setTimeout(()=>{$()},t?0:n.renderDelay)}),i.watch(()=>c.value.preview,()=>{c.value.preview&&i.nextTick(()=>{v().then(H),b(),at.emit(u,$u,h.value)})}),i.watch([F,y],()=>{z()}),i.onMounted(z),i.onMounted(()=>{at.on(u,{name:Om,callback(){at.emit(u,$u,h.value)}}),at.on(u,{name:Ts,callback:()=>{N.value=`_article-key_${Mu()}`,$()}})}),i.onBeforeUnmount(()=>{S(),q(),clearTimeout(G)}),{html:F,key:N}},Vp=(e,t)=>{const n=i.inject("editorId"),r=i.inject("setting"),{noImgZoomIn:u}=e,o=Am(()=>{const a=document.querySelectorAll(`#${n}-preview img:not(.not-zoom):not(.medium-zoom-image)`);a.length!==0&&rp(a,{background:"#00000073"})});i.onMounted(async()=>{!u&&r.value.preview&&await o()}),i.watch([t,()=>r.value.preview],async()=>{!u&&r.value.preview&&await o()})},Us={checked:{regexp:/- \[x\]/,value:"- [ ]"},unChecked:{regexp:/- \[\s\]/,value:"- [x]"}},Pp=(e,t)=>{const n=i.inject("editorId"),r=i.inject("rootRef");let u=()=>{};const o=()=>{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
100
|
`),p=h[Number(c)].replace(Us[d].regexp,Us[d].value);e.previewOnly?(h[Number(c)]=p,e.onChange(h.join(`
|
|
101
101
|
`))):at.emit(n,Lm,c+1,p)};a.forEach(l=>{l.addEventListener("click",s)}),u=()=>{a.forEach(l=>{l.removeEventListener("click",s)})}};i.onBeforeUnmount(()=>{u()}),i.watch([t],()=>{u(),i.nextTick(o)},{immediate:!0})},Rp=(e,t,n)=>{const r=i.inject("setting"),u=()=>{i.nextTick(()=>{var a;(a=e.onRemount)==null||a.call(e)})},o=a=>{a&&u()};i.watch([t,n],u),i.watch(()=>r.value.preview,o),i.watch(()=>r.value.htmlPreview,o),i.onMounted(u)},Ws={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}};({...Ws});const Gs=e=>{const t=new DOMParser().parseFromString(e,"text/html");return Array.from(t.body.childNodes)},Mp=(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,Bp=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=(u,o)=>{if(!t.value)return;const a=t.value,s=Array.from(a.childNodes),l=Math.min(u.length,o.length);let d=-1;for(let c=0;c<l;c++)if(!Mp(u[c],o[c])){d=c;break}if(d===-1)if(o.length>u.length)d=u.length;else if(u.length>o.length)d=o.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<u.length;c++)a.appendChild(u[c].cloneNode(!0))};return i.watch(()=>e.html,(u,o)=>{const a=Gs(u),s=Gs(o||"");r(a,s)}),()=>i.createVNode("div",{id:e.id,class:e.class,innerHTML:n,ref:t},null)}}),zp=i.defineComponent({name:"ContentPreview",props:Ws,setup(e){const t=i.inject("editorId"),n=i.inject("setting"),r=i.inject("previewTheme"),u=i.inject("showCodeRowNumber"),{html:o,key:a}=Lp(e,e.previewOnly);sp(e,o,a),Vp(e,o),Pp(e,o),Rp(e,o,a);const s=i.computed(()=>[`${K}-preview`,`${r==null?void 0:r.value}-theme`,u&&`${K}-scrn`].filter(Boolean)),l=()=>{const d=`${t}-preview`;return e.previewComponent?i.h(e.previewComponent,{key:a.value,html:o.value,id:d,class:s.value}):i.createVNode(Bp,{key:a.value,html:o.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:`${K}-preview-wrapper`,key:"content-preview-wrapper"},[l()])),n.value.htmlPreview&&i.createVNode("div",{id:`${t}-html-wrapper`,class:`${K}-preview-wrapper`,key:"html-preview-wrapper"},[i.createVNode("div",{class:`${K}-html`},[o.value])])])}}),jp=({text:e})=>e,Xs={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:jp},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}};({...Xs});const qs=["onHtmlChanged","onGetCatalog","onChange","onRemount","update:modelValue"];[...qs];const Hp=(e,t,n)=>{const{editorId:r}=n,u={rerender(){at.emit(r,Ts)}};t.expose(u)},ko=i.defineComponent({name:"MdPreview",props:Xs,emits:qs,setup(e,t){const{noKatex:n,noMermaid:r,noHighlight:u}=e,o=i.ref(),a=ap(e);ip(e,{rootRef:o,editorId:a}),Hp(e,t,{editorId:a}),i.onBeforeUnmount(()=>{at.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:[K,e.class,e.theme==="dark"&&`${K}-dark`,`${K}-previewOnly`],style:e.style,ref:o},[i.createVNode(zp,{modelValue:e.modelValue,onChange:s,onHtmlChanged:l,onGetCatalog:d,mdHeadingId:e.mdHeadingId,noMermaid:r,sanitize:e.sanitize,noKatex:n,formatCopiedText:e.formatCopiedText,noHighlight:u,noImgZoomIn:e.noImgZoomIn,previewOnly:!0,sanitizeMermaid:e.sanitizeMermaid,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold,onRemount:f,noEcharts:e.noEcharts,previewComponent:e.previewComponent},null)])}});ko.install=e=>(e.component(ko.name,ko),e);const $p={onClick:{type:Function,default:void 0},language:{type:String,default:void 0},theme:{type:String,default:void 0},disabled:{type:Boolean,default:void 0}},Gu=i.defineComponent({name:"NormalFooterToolbar",props:$p,emits:["onClick"],setup(e,t){return()=>{const n=Tm({props:e,ctx:t});return i.createVNode("div",{class:[`${K}-footer-item`,e.disabled&&`${K}-disabled`],onClick:r=>{var u;e.disabled||((u=e.onClick)==null||u.call(e,r),t.emit("onClick",r))}},[n])}}});Gu.install=e=>(e.component(Gu.name,Gu),e);var Xu={exports:{}},we={},qu={exports:{}},un={},Zs;function Ys(){if(Zs)return un;Zs=1;function e(){var o={};return o["align-content"]=!1,o["align-items"]=!1,o["align-self"]=!1,o["alignment-adjust"]=!1,o["alignment-baseline"]=!1,o.all=!1,o["anchor-point"]=!1,o.animation=!1,o["animation-delay"]=!1,o["animation-direction"]=!1,o["animation-duration"]=!1,o["animation-fill-mode"]=!1,o["animation-iteration-count"]=!1,o["animation-name"]=!1,o["animation-play-state"]=!1,o["animation-timing-function"]=!1,o.azimuth=!1,o["backface-visibility"]=!1,o.background=!0,o["background-attachment"]=!0,o["background-clip"]=!0,o["background-color"]=!0,o["background-image"]=!0,o["background-origin"]=!0,o["background-position"]=!0,o["background-repeat"]=!0,o["background-size"]=!0,o["baseline-shift"]=!1,o.binding=!1,o.bleed=!1,o["bookmark-label"]=!1,o["bookmark-level"]=!1,o["bookmark-state"]=!1,o.border=!0,o["border-bottom"]=!0,o["border-bottom-color"]=!0,o["border-bottom-left-radius"]=!0,o["border-bottom-right-radius"]=!0,o["border-bottom-style"]=!0,o["border-bottom-width"]=!0,o["border-collapse"]=!0,o["border-color"]=!0,o["border-image"]=!0,o["border-image-outset"]=!0,o["border-image-repeat"]=!0,o["border-image-slice"]=!0,o["border-image-source"]=!0,o["border-image-width"]=!0,o["border-left"]=!0,o["border-left-color"]=!0,o["border-left-style"]=!0,o["border-left-width"]=!0,o["border-radius"]=!0,o["border-right"]=!0,o["border-right-color"]=!0,o["border-right-style"]=!0,o["border-right-width"]=!0,o["border-spacing"]=!0,o["border-style"]=!0,o["border-top"]=!0,o["border-top-color"]=!0,o["border-top-left-radius"]=!0,o["border-top-right-radius"]=!0,o["border-top-style"]=!0,o["border-top-width"]=!0,o["border-width"]=!0,o.bottom=!1,o["box-decoration-break"]=!0,o["box-shadow"]=!0,o["box-sizing"]=!0,o["box-snap"]=!0,o["box-suppress"]=!0,o["break-after"]=!0,o["break-before"]=!0,o["break-inside"]=!0,o["caption-side"]=!1,o.chains=!1,o.clear=!0,o.clip=!1,o["clip-path"]=!1,o["clip-rule"]=!1,o.color=!0,o["color-interpolation-filters"]=!0,o["column-count"]=!1,o["column-fill"]=!1,o["column-gap"]=!1,o["column-rule"]=!1,o["column-rule-color"]=!1,o["column-rule-style"]=!1,o["column-rule-width"]=!1,o["column-span"]=!1,o["column-width"]=!1,o.columns=!1,o.contain=!1,o.content=!1,o["counter-increment"]=!1,o["counter-reset"]=!1,o["counter-set"]=!1,o.crop=!1,o.cue=!1,o["cue-after"]=!1,o["cue-before"]=!1,o.cursor=!1,o.direction=!1,o.display=!0,o["display-inside"]=!0,o["display-list"]=!0,o["display-outside"]=!0,o["dominant-baseline"]=!1,o.elevation=!1,o["empty-cells"]=!1,o.filter=!1,o.flex=!1,o["flex-basis"]=!1,o["flex-direction"]=!1,o["flex-flow"]=!1,o["flex-grow"]=!1,o["flex-shrink"]=!1,o["flex-wrap"]=!1,o.float=!1,o["float-offset"]=!1,o["flood-color"]=!1,o["flood-opacity"]=!1,o["flow-from"]=!1,o["flow-into"]=!1,o.font=!0,o["font-family"]=!0,o["font-feature-settings"]=!0,o["font-kerning"]=!0,o["font-language-override"]=!0,o["font-size"]=!0,o["font-size-adjust"]=!0,o["font-stretch"]=!0,o["font-style"]=!0,o["font-synthesis"]=!0,o["font-variant"]=!0,o["font-variant-alternates"]=!0,o["font-variant-caps"]=!0,o["font-variant-east-asian"]=!0,o["font-variant-ligatures"]=!0,o["font-variant-numeric"]=!0,o["font-variant-position"]=!0,o["font-weight"]=!0,o.grid=!1,o["grid-area"]=!1,o["grid-auto-columns"]=!1,o["grid-auto-flow"]=!1,o["grid-auto-rows"]=!1,o["grid-column"]=!1,o["grid-column-end"]=!1,o["grid-column-start"]=!1,o["grid-row"]=!1,o["grid-row-end"]=!1,o["grid-row-start"]=!1,o["grid-template"]=!1,o["grid-template-areas"]=!1,o["grid-template-columns"]=!1,o["grid-template-rows"]=!1,o["hanging-punctuation"]=!1,o.height=!0,o.hyphens=!1,o.icon=!1,o["image-orientation"]=!1,o["image-resolution"]=!1,o["ime-mode"]=!1,o["initial-letters"]=!1,o["inline-box-align"]=!1,o["justify-content"]=!1,o["justify-items"]=!1,o["justify-self"]=!1,o.left=!1,o["letter-spacing"]=!0,o["lighting-color"]=!0,o["line-box-contain"]=!1,o["line-break"]=!1,o["line-grid"]=!1,o["line-height"]=!1,o["line-snap"]=!1,o["line-stacking"]=!1,o["line-stacking-ruby"]=!1,o["line-stacking-shift"]=!1,o["line-stacking-strategy"]=!1,o["list-style"]=!0,o["list-style-image"]=!0,o["list-style-position"]=!0,o["list-style-type"]=!0,o.margin=!0,o["margin-bottom"]=!0,o["margin-left"]=!0,o["margin-right"]=!0,o["margin-top"]=!0,o["marker-offset"]=!1,o["marker-side"]=!1,o.marks=!1,o.mask=!1,o["mask-box"]=!1,o["mask-box-outset"]=!1,o["mask-box-repeat"]=!1,o["mask-box-slice"]=!1,o["mask-box-source"]=!1,o["mask-box-width"]=!1,o["mask-clip"]=!1,o["mask-image"]=!1,o["mask-origin"]=!1,o["mask-position"]=!1,o["mask-repeat"]=!1,o["mask-size"]=!1,o["mask-source-type"]=!1,o["mask-type"]=!1,o["max-height"]=!0,o["max-lines"]=!1,o["max-width"]=!0,o["min-height"]=!0,o["min-width"]=!0,o["move-to"]=!1,o["nav-down"]=!1,o["nav-index"]=!1,o["nav-left"]=!1,o["nav-right"]=!1,o["nav-up"]=!1,o["object-fit"]=!1,o["object-position"]=!1,o.opacity=!1,o.order=!1,o.orphans=!1,o.outline=!1,o["outline-color"]=!1,o["outline-offset"]=!1,o["outline-style"]=!1,o["outline-width"]=!1,o.overflow=!1,o["overflow-wrap"]=!1,o["overflow-x"]=!1,o["overflow-y"]=!1,o.padding=!0,o["padding-bottom"]=!0,o["padding-left"]=!0,o["padding-right"]=!0,o["padding-top"]=!0,o.page=!1,o["page-break-after"]=!1,o["page-break-before"]=!1,o["page-break-inside"]=!1,o["page-policy"]=!1,o.pause=!1,o["pause-after"]=!1,o["pause-before"]=!1,o.perspective=!1,o["perspective-origin"]=!1,o.pitch=!1,o["pitch-range"]=!1,o["play-during"]=!1,o.position=!1,o["presentation-level"]=!1,o.quotes=!1,o["region-fragment"]=!1,o.resize=!1,o.rest=!1,o["rest-after"]=!1,o["rest-before"]=!1,o.richness=!1,o.right=!1,o.rotation=!1,o["rotation-point"]=!1,o["ruby-align"]=!1,o["ruby-merge"]=!1,o["ruby-position"]=!1,o["shape-image-threshold"]=!1,o["shape-outside"]=!1,o["shape-margin"]=!1,o.size=!1,o.speak=!1,o["speak-as"]=!1,o["speak-header"]=!1,o["speak-numeral"]=!1,o["speak-punctuation"]=!1,o["speech-rate"]=!1,o.stress=!1,o["string-set"]=!1,o["tab-size"]=!1,o["table-layout"]=!1,o["text-align"]=!0,o["text-align-last"]=!0,o["text-combine-upright"]=!0,o["text-decoration"]=!0,o["text-decoration-color"]=!0,o["text-decoration-line"]=!0,o["text-decoration-skip"]=!0,o["text-decoration-style"]=!0,o["text-emphasis"]=!0,o["text-emphasis-color"]=!0,o["text-emphasis-position"]=!0,o["text-emphasis-style"]=!0,o["text-height"]=!0,o["text-indent"]=!0,o["text-justify"]=!0,o["text-orientation"]=!0,o["text-overflow"]=!0,o["text-shadow"]=!0,o["text-space-collapse"]=!0,o["text-transform"]=!0,o["text-underline-position"]=!0,o["text-wrap"]=!0,o.top=!1,o.transform=!1,o["transform-origin"]=!1,o["transform-style"]=!1,o.transition=!1,o["transition-delay"]=!1,o["transition-duration"]=!1,o["transition-property"]=!1,o["transition-timing-function"]=!1,o["unicode-bidi"]=!1,o["vertical-align"]=!1,o.visibility=!1,o["voice-balance"]=!1,o["voice-duration"]=!1,o["voice-family"]=!1,o["voice-pitch"]=!1,o["voice-range"]=!1,o["voice-rate"]=!1,o["voice-stress"]=!1,o["voice-volume"]=!1,o.volume=!1,o["white-space"]=!1,o.widows=!1,o.width=!0,o["will-change"]=!1,o["word-break"]=!0,o["word-spacing"]=!0,o["word-wrap"]=!0,o["wrap-flow"]=!1,o["wrap-through"]=!1,o["writing-mode"]=!1,o["z-index"]=!1,o}function t(o,a,s){}function n(o,a,s){}var r=/javascript\s*\:/img;function u(o,a){return r.test(a)?"":a}return un.whiteList=e(),un.getDefaultWhiteList=e,un.onAttr=t,un.onIgnoreAttr=n,un.safeAttrValue=u,un}var Ks,Qs;function Js(){return Qs||(Qs=1,Ks={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,u;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,u=e.length;r<u;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,"")}}),Ks}var Zu,el;function Up(){if(el)return Zu;el=1;var e=Js();function t(n,r){n=e.trimRight(n),n[n.length-1]!==";"&&(n+=";");var u=n.length,o=!1,a=0,s=0,l="";function d(){if(!o){var h=e.trim(n.slice(a,s)),p=h.indexOf(":");if(p!==-1){var m=e.trim(h.slice(0,p)),x=e.trim(h.slice(p+1));if(m){var v=r(a,l.length,m,x,h);v&&(l+=v+"; ")}}}a=s+1}for(;s<u;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,o=!1}else f==="("?o=!0:f===")"?o=!1:f===";"?o||d():f===`
|
|
102
|
-
`&&d()}return e.trim(l)}return Zu=t,Zu}var Yu,tl;function Wp(){if(tl)return Yu;tl=1;var e=Ys(),t=Up();Js();function n(o){return o==null}function r(o){var a={};for(var s in o)a[s]=o[s];return a}function u(o){o=r(o||{}),o.whiteList=o.whiteList||e.whiteList,o.onAttr=o.onAttr||e.onAttr,o.onIgnoreAttr=o.onIgnoreAttr||e.onIgnoreAttr,o.safeAttrValue=o.safeAttrValue||e.safeAttrValue,this.options=o}return u.prototype.process=function(o){if(o=o||"",o=o.toString(),!o)return"";var a=this,s=a.options,l=s.whiteList,d=s.onAttr,f=s.onIgnoreAttr,c=s.safeAttrValue,h=t(o,function(p,m,x,v,y){var b=l[x],g=!1;if(b===!0?g=b:typeof b=="function"?g=b(v):b instanceof RegExp&&(g=b.test(v)),g!==!0&&(g=!1),v=c(x,v),!!v){var w={position:m,sourcePosition:p,source:y,isWhite:g};if(g){var k=d(x,v,w);return n(k)?x+":"+v:k}else{var k=f(x,v,w);if(!n(k))return k}}});return h},Yu=u,Yu}var nl;function Ku(){return nl||(nl=1,function(e,t){var n=Ys(),r=Wp();function u(a,s){var l=new r(s);return l.process(a)}t=e.exports=u,t.FilterCSS=r;for(var o in n)t[o]=n[o];typeof window<"u"&&(window.filterCSS=e.exports)}(qu,qu.exports)),qu.exports}var rl,ol;function Qu(){return ol||(ol=1,rl={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,u;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,u=e.length;r<u;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}}),rl}var ul;function il(){if(ul)return we;ul=1;var e=Ku().FilterCSS,t=Ku().getDefaultWhiteList,n=Qu();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 u=new e;function o(T,j,B){}function a(T,j,B){}function s(T,j,B){}function l(T,j,B){}function d(T){return T.replace(c,"<").replace(h,">")}function f(T,j,B,Z){if(B=H(B),j==="href"||j==="src"){if(B=n.trim(B),B==="#")return"#";if(!(B.substr(0,7)==="http://"||B.substr(0,8)==="https://"||B.substr(0,7)==="mailto:"||B.substr(0,4)==="tel:"||B.substr(0,11)==="data:image/"||B.substr(0,6)==="ftp://"||B.substr(0,2)==="./"||B.substr(0,3)==="../"||B[0]==="#"||B[0]==="/"))return""}else if(j==="background"){if(b.lastIndex=0,b.test(B))return""}else if(j==="style"){if(g.lastIndex=0,g.test(B)||(w.lastIndex=0,w.test(B)&&(b.lastIndex=0,b.test(B))))return"";Z!==!1&&(Z=Z||u,B=Z.process(B))}return B=z(B),B}var c=/</g,h=/>/g,p=/"/g,m=/"/g,x=/&#([a-zA-Z0-9]*);?/gim,v=/:?/gim,y=/&newline;?/gim,b=/((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,g=/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,""")}function D(T){return T.replace(m,'"')}function F(T){return T.replace(x,function(j,B){return B[0]==="x"||B[0]==="X"?String.fromCharCode(parseInt(B.substr(1),16)):String.fromCharCode(parseInt(B,10))})}function S(T){return T.replace(v,":").replace(y," ")}function q(T){for(var j="",B=0,Z=T.length;B<Z;B++)j+=T.charCodeAt(B)<32?" ":T.charAt(B);return n.trim(j)}function H(T){return T=D(T),T=F(T),T=S(T),T=q(T),T}function z(T){return T=k(T),T=d(T),T}function $(){return""}function I(T,j){typeof j!="function"&&(j=function(){});var B=!Array.isArray(T);function Z(E){return B?!0:n.indexOf(T,E)!==-1}var ue=[],C=!1;return{onIgnoreTag:function(E,N,O){if(Z(E))if(O.isClosing){var P="[/removed]",U=O.position+P.length;return ue.push([C!==!1?C:O.position,U]),C=!1,P}else return C||(C=O.position),"[removed]";else return j(E,N,O)},remove:function(E){var N="",O=0;return n.forEach(ue,function(P){N+=E.slice(O,P[0]),O=P[1]}),N+=E.slice(O),N}}}function G(T){for(var j="",B=0;B<T.length;){var Z=T.indexOf("<!--",B);if(Z===-1){j+=T.slice(B);break}j+=T.slice(B,Z);var ue=T.indexOf("-->",Z);if(ue===-1)break;B=ue+3}return j}function X(T){var j=T.split("");return j=j.filter(function(B){var Z=B.charCodeAt(0);return Z===127?!1:Z<=31?Z===10||Z===13:!0}),j.join("")}return we.whiteList=r(),we.getDefaultWhiteList=r,we.onTag=o,we.onIgnoreTag=a,we.onTagAttr=s,we.onIgnoreTagAttr=l,we.safeAttrValue=f,we.escapeHtml=d,we.escapeQuote=k,we.unescapeQuote=D,we.escapeHtmlEntities=F,we.escapeDangerHtml5Entities=S,we.clearNonPrintableCharacter=q,we.friendlyAttrValue=H,we.escapeAttrValue=z,we.onIgnoreTagStripAll=$,we.StripTagBody=I,we.stripCommentTag=G,we.stripBlankChar=X,we.attributeWrapSign='"',we.cssFilter=u,we.getDefaultCSSWhiteList=t,we}var Co={},al;function sl(){if(al)return Co;al=1;var e=Qu();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="",x=0,v=!1,y=!1,b=0,g=c.length,w="",k="";e:for(b=0;b<g;b++){var D=c.charAt(b);if(v===!1){if(D==="<"){v=b;continue}}else if(y===!1){if(D==="<"){m+=p(c.slice(x,b)),v=b,x=b;continue}if(D===">"||b===g-1){m+=p(c.slice(x,v)),k=c.slice(v,b+1),w=t(k),m+=h(v,m.length,w,k,n(k)),x=b+1,v=!1;continue}if(D==='"'||D==="'")for(var F=1,S=c.charAt(b-F);S.trim()===""||S==="=";){if(S==="="){y=D;continue e}S=c.charAt(b-++F)}}else if(D===y){y=!1;continue}}return x<g&&(m+=p(c.substr(x))),m}var u=/[^a-zA-Z0-9\\_:.-]/gim;function o(c,h){var p=0,m=0,x=[],v=!1,y=c.length;function b(F,S){if(F=e.trim(F),F=F.replace(u,"").toLowerCase(),!(F.length<1)){var q=h(F,S||"");q&&x.push(q)}}for(var g=0;g<y;g++){var w=c.charAt(g),k,D;if(v===!1&&w==="="){v=c.slice(p,g),p=g+1,m=c.charAt(p)==='"'||c.charAt(p)==="'"?p:s(c,g+1);continue}if(v!==!1&&g===m){if(D=c.indexOf(w,g+1),D===-1)break;k=e.trim(c.slice(m+1,D)),b(v,k),v=!1,g=D,p=g+1;continue}if(/\s|\n|\t/.test(w))if(c=c.replace(/\s|\n|\t/g," "),v===!1)if(D=a(c,g),D===-1){k=e.trim(c.slice(p,g)),b(k),v=!1,p=g+1;continue}else{g=D-1;continue}else if(D=l(c,g-1),D===-1){k=e.trim(c.slice(p,g)),k=f(k),b(v,k),v=!1,p=g+1;continue}else continue}return p<c.length&&(v===!1?b(c.slice(p)):b(v,f(e.trim(c.slice(p))))),e.trim(x.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 Co.parseTag=r,Co.parseAttr=o,Co}var Ju,ll;function Gp(){if(ll)return Ju;ll=1;var e=Ku().FilterCSS,t=il(),n=sl(),r=n.parseTag,u=n.parseAttr,o=Qu();function a(c){return c==null}function s(c){var h=o.spaceIndex(c);if(h===-1)return{html:"",closing:c[c.length-2]==="/"};c=o.trim(c.slice(h+1,-1));var p=c[c.length-1]==="/";return p&&(c=o.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,x=p.onTag,v=p.onIgnoreTag,y=p.onTagAttr,b=p.onIgnoreTagAttr,g=p.safeAttrValue,w=p.escapeHtml,k=h.attributeWrapSign,D=h.cssFilter;p.stripBlankChar&&(c=t.stripBlankChar(c)),p.allowCommentTag||(c=t.stripCommentTag(c));var F=!1;p.stripIgnoreTagBody&&(F=t.StripTagBody(p.stripIgnoreTagBody,v),v=F.onIgnoreTag);var S=r(c,function(q,H,z,$,I){var G={sourcePosition:q,position:H,isClosing:I,isWhite:Object.prototype.hasOwnProperty.call(m,z)},X=x(z,$,G);if(!a(X))return X;if(G.isWhite){if(G.isClosing)return"</"+z+">";var T=s($),j=m[z],B=u(T.html,function(Z,ue){var C=o.indexOf(j,Z)!==-1,E=y(z,Z,ue,C);return a(E)?C?(ue=g(z,Z,ue,D),ue?Z+"="+k+ue+k:Z):(E=b(z,Z,ue,C),a(E)?void 0:E):E});return $="<"+z,B&&($+=" "+B),T.closing&&($+=" /"),$+=">",$}else return X=v(z,$,G),a(X)?w($):X},w);return F&&(S=F.remove(S)),S},Ju=f,Ju}var cl;function Xp(){return cl||(cl=1,function(e,t){var n=il(),r=sl(),u=Gp();function o(s,l){var d=new u(l);return d.process(s)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=u,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)}(Xu,Xu.exports)),Xu.exports}Xp();const an=i.defineComponent({name:"FMarkdownPreview",props:Fs,setup(e){return()=>i.createVNode("div",{class:"f-markdown-preview-container"},[i.createVNode(ko,{modelValue:e.content},null)])}});an.install=e=>{e.component(an.name,an)};const ei="farris-x-preview-bridge",ti=1,ni="assistant.message";function dl(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e,content:e.content}}}function fl(e){return e!==null&&typeof e=="object"}function hl(e){if(!fl(e)||e.source!==ei||e.v!==ti||e.type!==ni)return!1;const t=e.payload;return!(!fl(t)||typeof t.messageId!="string"||t.messageId.length===0||t.role!=="user"&&t.role!=="assistant")}function qp(e,t){return!!(e.source===window.parent||t&&e.source===window.top||e.source===window)}function ml(e,t,n){const r=dl(n);try{return e.postMessage({source:ei,v:ti,type:ni,payload:r},t),!0}catch{return!1}}function pl(e){const t=e.allowTopAsSource!==!1,n=r=>{var u;qp(r,t)&&(e.allowedParentOrigins&&e.allowedParentOrigins.length>0&&!e.allowedParentOrigins.includes(r.origin)||hl(r.data)&&((u=e.onAssistantMessage)==null||u.call(e,r.data.payload)))};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)}const Zp="/platform/common/web/renderer/index.html#/preview",Yp="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components/Contacts.frm",Kp="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components",Qp="67441dbb-0219-46f2-b247-51555c317995";function gl(e){if(e.url)return e.url;const t=e.baseUri??Zp,n=e.metadataPath??Yp,r=e.projectPath??Kp,u=e.baseMetadataId??Qp;return`${t}?metadataPath=${encodeURIComponent(n)}&projectPath=${encodeURIComponent(r)}&baseMetadataId=${encodeURIComponent(u)}`}function Jp(e){if(typeof window>"u")return null;if(e.postMessageTargetOrigin)return e.postMessageTargetOrigin;try{const t=gl(e),n=new URL(t,window.location.href).origin;return n==="null"||n===""?window.location.origin:n}catch{return null}}const hr=i.defineComponent({name:"ChatPreview",props:Ss,setup(e,{expose:t}){const n=i.ref(null),r=i.ref(null),u=i.ref(!1),o=i.ref(!1),a=i.computed(()=>gl(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,$()}),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,u.value=!1,o.value=!1;const j=Date.now(),B=200,Z=300,ue=1e4;let C=!1,E=null,N=null;N=window.setTimeout(()=>{N=null,C||(o.value=!0)},B);const O=()=>{if(C)return;if(C=!0,E&&(window.clearTimeout(E),E=null),N&&(window.clearTimeout(N),N=null),h.value=!0,I(T),o.value){const L=Date.now()-j,R=Math.max(0,Z-L);setTimeout(()=>{u.value=!0},R)}else u.value=!0;const U=()=>{var L;return(L=e.onIframeLoad)==null?void 0:L.call(e)};U(),window.setTimeout(U,0),window.setTimeout(U,120)},P=()=>{var U;C||(C=!0,N&&(window.clearTimeout(N),N=null),console.warn("ChatPreview: iframe load timeout"),h.value=!0,u.value=!0,(U=e.onIframeLoad)==null||U.call(e))};T.addEventListener("load",O,{once:!0}),E=window.setTimeout(P,ue),p=()=>{T.removeEventListener("load",O),E&&(window.clearTimeout(E),E=null),N&&(window.clearTimeout(N),N=null)}},{flush:"post"}),i.watch([s,()=>{var T;return(T=e.previewConfig)==null?void 0:T.contentMap}],()=>{$(),s.value&&i.nextTick(()=>z())},{flush:"post"}),i.watch(()=>{var T;return(T=e.previewConfig)==null?void 0:T.contentMap},T=>{if(T){const j=Object.keys(T);f.value=j[0]??""}else f.value="";m()},{immediate:!0});function m(T){var j,B;T&&(f.value=T),d.value&&f.value?c.value=((B=(j=e.previewConfig)==null?void 0:j.contentMap)==null?void 0:B[f.value])||"":c.value=""}function x(T){var Z;if(s.value||!h.value)return!1;const j=(Z=n.value)==null?void 0:Z.contentWindow;if(!j)return!1;const B=Jp(e.previewConfig??{});return B?ml(j,B,T):!1}t({postAssistantPayload:x});const v=i.ref(!1);let y=null;const b=800;function g(){v.value=!0,H(!0),y!=null&&(window.clearTimeout(y),y=null)}function w(){y!=null&&window.clearTimeout(y),y=window.setTimeout(()=>{v.value=!1,H(!1),y=null},b)}function k(){g(),w()}function D(){g()}function F(){w()}let S=[];function q(){const T=r.value;if(!T)return[];const j=[],B=T.querySelectorAll(".f-markdown-preview-container");return B.length>0&&B.forEach(Z=>j.push(Z)),j.length===0&&T.scrollHeight>T.clientHeight&&j.push(T),j}function H(T){const j=r.value;j&&j.querySelectorAll(".f-markdown-preview-container").forEach(B=>{B.classList.toggle("f-chat-preview-scrollbar-visible",T)})}function z(){const T=q();S=T,T.forEach(j=>{j.addEventListener("scroll",k,{passive:!0}),j.addEventListener("mouseenter",D),j.addEventListener("mouseleave",F)})}function $(){S.forEach(T=>{T.removeEventListener("scroll",k),T.removeEventListener("mouseenter",D),T.removeEventListener("mouseleave",F)}),S=[]}function I(T){try{const j=T.contentDocument;if(!j)return;const B="f-chat-preview-injected-scrollbar-style";if(j.getElementById(B))return;const Z=j.createElement("style");Z.id=B,Z.textContent=`
|
|
102
|
+
`&&d()}return e.trim(l)}return Zu=t,Zu}var Yu,tl;function Wp(){if(tl)return Yu;tl=1;var e=Ys(),t=Up();Js();function n(o){return o==null}function r(o){var a={};for(var s in o)a[s]=o[s];return a}function u(o){o=r(o||{}),o.whiteList=o.whiteList||e.whiteList,o.onAttr=o.onAttr||e.onAttr,o.onIgnoreAttr=o.onIgnoreAttr||e.onIgnoreAttr,o.safeAttrValue=o.safeAttrValue||e.safeAttrValue,this.options=o}return u.prototype.process=function(o){if(o=o||"",o=o.toString(),!o)return"";var a=this,s=a.options,l=s.whiteList,d=s.onAttr,f=s.onIgnoreAttr,c=s.safeAttrValue,h=t(o,function(p,m,x,v,y){var b=l[x],g=!1;if(b===!0?g=b:typeof b=="function"?g=b(v):b instanceof RegExp&&(g=b.test(v)),g!==!0&&(g=!1),v=c(x,v),!!v){var w={position:m,sourcePosition:p,source:y,isWhite:g};if(g){var k=d(x,v,w);return n(k)?x+":"+v:k}else{var k=f(x,v,w);if(!n(k))return k}}});return h},Yu=u,Yu}var nl;function Ku(){return nl||(nl=1,function(e,t){var n=Ys(),r=Wp();function u(a,s){var l=new r(s);return l.process(a)}t=e.exports=u,t.FilterCSS=r;for(var o in n)t[o]=n[o];typeof window<"u"&&(window.filterCSS=e.exports)}(qu,qu.exports)),qu.exports}var rl,ol;function Qu(){return ol||(ol=1,rl={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,u;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,u=e.length;r<u;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}}),rl}var ul;function il(){if(ul)return we;ul=1;var e=Ku().FilterCSS,t=Ku().getDefaultWhiteList,n=Qu();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 u=new e;function o(T,j,B){}function a(T,j,B){}function s(T,j,B){}function l(T,j,B){}function d(T){return T.replace(c,"<").replace(h,">")}function f(T,j,B,Z){if(B=H(B),j==="href"||j==="src"){if(B=n.trim(B),B==="#")return"#";if(!(B.substr(0,7)==="http://"||B.substr(0,8)==="https://"||B.substr(0,7)==="mailto:"||B.substr(0,4)==="tel:"||B.substr(0,11)==="data:image/"||B.substr(0,6)==="ftp://"||B.substr(0,2)==="./"||B.substr(0,3)==="../"||B[0]==="#"||B[0]==="/"))return""}else if(j==="background"){if(b.lastIndex=0,b.test(B))return""}else if(j==="style"){if(g.lastIndex=0,g.test(B)||(w.lastIndex=0,w.test(B)&&(b.lastIndex=0,b.test(B))))return"";Z!==!1&&(Z=Z||u,B=Z.process(B))}return B=z(B),B}var c=/</g,h=/>/g,p=/"/g,m=/"/g,x=/&#([a-zA-Z0-9]*);?/gim,v=/:?/gim,y=/&newline;?/gim,b=/((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,g=/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,""")}function N(T){return T.replace(m,'"')}function F(T){return T.replace(x,function(j,B){return B[0]==="x"||B[0]==="X"?String.fromCharCode(parseInt(B.substr(1),16)):String.fromCharCode(parseInt(B,10))})}function S(T){return T.replace(v,":").replace(y," ")}function q(T){for(var j="",B=0,Z=T.length;B<Z;B++)j+=T.charCodeAt(B)<32?" ":T.charAt(B);return n.trim(j)}function H(T){return T=N(T),T=F(T),T=S(T),T=q(T),T}function z(T){return T=k(T),T=d(T),T}function $(){return""}function I(T,j){typeof j!="function"&&(j=function(){});var B=!Array.isArray(T);function Z(E){return B?!0:n.indexOf(T,E)!==-1}var ue=[],C=!1;return{onIgnoreTag:function(E,D,O){if(Z(E))if(O.isClosing){var P="[/removed]",U=O.position+P.length;return ue.push([C!==!1?C:O.position,U]),C=!1,P}else return C||(C=O.position),"[removed]";else return j(E,D,O)},remove:function(E){var D="",O=0;return n.forEach(ue,function(P){D+=E.slice(O,P[0]),O=P[1]}),D+=E.slice(O),D}}}function G(T){for(var j="",B=0;B<T.length;){var Z=T.indexOf("<!--",B);if(Z===-1){j+=T.slice(B);break}j+=T.slice(B,Z);var ue=T.indexOf("-->",Z);if(ue===-1)break;B=ue+3}return j}function X(T){var j=T.split("");return j=j.filter(function(B){var Z=B.charCodeAt(0);return Z===127?!1:Z<=31?Z===10||Z===13:!0}),j.join("")}return we.whiteList=r(),we.getDefaultWhiteList=r,we.onTag=o,we.onIgnoreTag=a,we.onTagAttr=s,we.onIgnoreTagAttr=l,we.safeAttrValue=f,we.escapeHtml=d,we.escapeQuote=k,we.unescapeQuote=N,we.escapeHtmlEntities=F,we.escapeDangerHtml5Entities=S,we.clearNonPrintableCharacter=q,we.friendlyAttrValue=H,we.escapeAttrValue=z,we.onIgnoreTagStripAll=$,we.StripTagBody=I,we.stripCommentTag=G,we.stripBlankChar=X,we.attributeWrapSign='"',we.cssFilter=u,we.getDefaultCSSWhiteList=t,we}var Co={},al;function sl(){if(al)return Co;al=1;var e=Qu();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="",x=0,v=!1,y=!1,b=0,g=c.length,w="",k="";e:for(b=0;b<g;b++){var N=c.charAt(b);if(v===!1){if(N==="<"){v=b;continue}}else if(y===!1){if(N==="<"){m+=p(c.slice(x,b)),v=b,x=b;continue}if(N===">"||b===g-1){m+=p(c.slice(x,v)),k=c.slice(v,b+1),w=t(k),m+=h(v,m.length,w,k,n(k)),x=b+1,v=!1;continue}if(N==='"'||N==="'")for(var F=1,S=c.charAt(b-F);S.trim()===""||S==="=";){if(S==="="){y=N;continue e}S=c.charAt(b-++F)}}else if(N===y){y=!1;continue}}return x<g&&(m+=p(c.substr(x))),m}var u=/[^a-zA-Z0-9\\_:.-]/gim;function o(c,h){var p=0,m=0,x=[],v=!1,y=c.length;function b(F,S){if(F=e.trim(F),F=F.replace(u,"").toLowerCase(),!(F.length<1)){var q=h(F,S||"");q&&x.push(q)}}for(var g=0;g<y;g++){var w=c.charAt(g),k,N;if(v===!1&&w==="="){v=c.slice(p,g),p=g+1,m=c.charAt(p)==='"'||c.charAt(p)==="'"?p:s(c,g+1);continue}if(v!==!1&&g===m){if(N=c.indexOf(w,g+1),N===-1)break;k=e.trim(c.slice(m+1,N)),b(v,k),v=!1,g=N,p=g+1;continue}if(/\s|\n|\t/.test(w))if(c=c.replace(/\s|\n|\t/g," "),v===!1)if(N=a(c,g),N===-1){k=e.trim(c.slice(p,g)),b(k),v=!1,p=g+1;continue}else{g=N-1;continue}else if(N=l(c,g-1),N===-1){k=e.trim(c.slice(p,g)),k=f(k),b(v,k),v=!1,p=g+1;continue}else continue}return p<c.length&&(v===!1?b(c.slice(p)):b(v,f(e.trim(c.slice(p))))),e.trim(x.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 Co.parseTag=r,Co.parseAttr=o,Co}var Ju,ll;function Gp(){if(ll)return Ju;ll=1;var e=Ku().FilterCSS,t=il(),n=sl(),r=n.parseTag,u=n.parseAttr,o=Qu();function a(c){return c==null}function s(c){var h=o.spaceIndex(c);if(h===-1)return{html:"",closing:c[c.length-2]==="/"};c=o.trim(c.slice(h+1,-1));var p=c[c.length-1]==="/";return p&&(c=o.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,x=p.onTag,v=p.onIgnoreTag,y=p.onTagAttr,b=p.onIgnoreTagAttr,g=p.safeAttrValue,w=p.escapeHtml,k=h.attributeWrapSign,N=h.cssFilter;p.stripBlankChar&&(c=t.stripBlankChar(c)),p.allowCommentTag||(c=t.stripCommentTag(c));var F=!1;p.stripIgnoreTagBody&&(F=t.StripTagBody(p.stripIgnoreTagBody,v),v=F.onIgnoreTag);var S=r(c,function(q,H,z,$,I){var G={sourcePosition:q,position:H,isClosing:I,isWhite:Object.prototype.hasOwnProperty.call(m,z)},X=x(z,$,G);if(!a(X))return X;if(G.isWhite){if(G.isClosing)return"</"+z+">";var T=s($),j=m[z],B=u(T.html,function(Z,ue){var C=o.indexOf(j,Z)!==-1,E=y(z,Z,ue,C);return a(E)?C?(ue=g(z,Z,ue,N),ue?Z+"="+k+ue+k:Z):(E=b(z,Z,ue,C),a(E)?void 0:E):E});return $="<"+z,B&&($+=" "+B),T.closing&&($+=" /"),$+=">",$}else return X=v(z,$,G),a(X)?w($):X},w);return F&&(S=F.remove(S)),S},Ju=f,Ju}var cl;function Xp(){return cl||(cl=1,function(e,t){var n=il(),r=sl(),u=Gp();function o(s,l){var d=new u(l);return d.process(s)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=u,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)}(Xu,Xu.exports)),Xu.exports}Xp();const an=i.defineComponent({name:"FMarkdownPreview",props:Fs,setup(e){return()=>i.createVNode("div",{class:"f-markdown-preview-container"},[i.createVNode(ko,{modelValue:e.content},null)])}});an.install=e=>{e.component(an.name,an)};const ei="farris-x-preview-bridge",ti=1,ni="assistant.message";function dl(e){try{return JSON.parse(JSON.stringify(e))}catch{return{...e,content:e.content}}}function fl(e){return e!==null&&typeof e=="object"}function hl(e){if(!fl(e)||e.source!==ei||e.v!==ti||e.type!==ni)return!1;const t=e.payload;return!(!fl(t)||typeof t.messageId!="string"||t.messageId.length===0||t.role!=="user"&&t.role!=="assistant")}function qp(e,t){return!!(e.source===window.parent||t&&e.source===window.top||e.source===window)}function ml(e,t,n){const r=dl(n);try{return e.postMessage({source:ei,v:ti,type:ni,payload:r},t),!0}catch{return!1}}function pl(e){const t=e.allowTopAsSource!==!1,n=r=>{var u;qp(r,t)&&(e.allowedParentOrigins&&e.allowedParentOrigins.length>0&&!e.allowedParentOrigins.includes(r.origin)||hl(r.data)&&((u=e.onAssistantMessage)==null||u.call(e,r.data.payload)))};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)}const Zp="/platform/common/web/renderer/index.html#/preview",Yp="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components/Contacts.frm",Kp="Cases/ApplicationTemplates/Contacts/bo-contacts-front/metadata/components",Qp="67441dbb-0219-46f2-b247-51555c317995";function gl(e){if(e.url)return e.url;const t=e.baseUri??Zp,n=e.metadataPath??Yp,r=e.projectPath??Kp,u=e.baseMetadataId??Qp;return`${t}?metadataPath=${encodeURIComponent(n)}&projectPath=${encodeURIComponent(r)}&baseMetadataId=${encodeURIComponent(u)}`}function Jp(e){if(typeof window>"u")return null;if(e.postMessageTargetOrigin)return e.postMessageTargetOrigin;try{const t=gl(e),n=new URL(t,window.location.href).origin;return n==="null"||n===""?window.location.origin:n}catch{return null}}const hr=i.defineComponent({name:"ChatPreview",props:Ss,setup(e,{expose:t}){const n=i.ref(null),r=i.ref(null),u=i.ref(!1),o=i.ref(!1),a=i.computed(()=>gl(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,$()}),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,u.value=!1,o.value=!1;const j=Date.now(),B=200,Z=300,ue=1e4;let C=!1,E=null,D=null;D=window.setTimeout(()=>{D=null,C||(o.value=!0)},B);const O=()=>{if(C)return;if(C=!0,E&&(window.clearTimeout(E),E=null),D&&(window.clearTimeout(D),D=null),h.value=!0,I(T),o.value){const L=Date.now()-j,R=Math.max(0,Z-L);setTimeout(()=>{u.value=!0},R)}else u.value=!0;const U=()=>{var L;return(L=e.onIframeLoad)==null?void 0:L.call(e)};U(),window.setTimeout(U,0),window.setTimeout(U,120)},P=()=>{var U;C||(C=!0,D&&(window.clearTimeout(D),D=null),console.warn("ChatPreview: iframe load timeout"),h.value=!0,u.value=!0,(U=e.onIframeLoad)==null||U.call(e))};T.addEventListener("load",O,{once:!0}),E=window.setTimeout(P,ue),p=()=>{T.removeEventListener("load",O),E&&(window.clearTimeout(E),E=null),D&&(window.clearTimeout(D),D=null)}},{flush:"post"}),i.watch([s,()=>{var T;return(T=e.previewConfig)==null?void 0:T.contentMap}],()=>{$(),s.value&&i.nextTick(()=>z())},{flush:"post"}),i.watch(()=>{var T;return(T=e.previewConfig)==null?void 0:T.contentMap},T=>{if(T){const j=Object.keys(T);f.value=j[0]??""}else f.value="";m()},{immediate:!0});function m(T){var j,B;T&&(f.value=T),d.value&&f.value?c.value=((B=(j=e.previewConfig)==null?void 0:j.contentMap)==null?void 0:B[f.value])||"":c.value=""}function x(T){var Z;if(s.value||!h.value)return!1;const j=(Z=n.value)==null?void 0:Z.contentWindow;if(!j)return!1;const B=Jp(e.previewConfig??{});return B?ml(j,B,T):!1}t({postAssistantPayload:x});const v=i.ref(!1);let y=null;const b=800;function g(){v.value=!0,H(!0),y!=null&&(window.clearTimeout(y),y=null)}function w(){y!=null&&window.clearTimeout(y),y=window.setTimeout(()=>{v.value=!1,H(!1),y=null},b)}function k(){g(),w()}function N(){g()}function F(){w()}let S=[];function q(){const T=r.value;if(!T)return[];const j=[],B=T.querySelectorAll(".f-markdown-preview-container");return B.length>0&&B.forEach(Z=>j.push(Z)),j.length===0&&T.scrollHeight>T.clientHeight&&j.push(T),j}function H(T){const j=r.value;j&&j.querySelectorAll(".f-markdown-preview-container").forEach(B=>{B.classList.toggle("f-chat-preview-scrollbar-visible",T)})}function z(){const T=q();S=T,T.forEach(j=>{j.addEventListener("scroll",k,{passive:!0}),j.addEventListener("mouseenter",N),j.addEventListener("mouseleave",F)})}function $(){S.forEach(T=>{T.removeEventListener("scroll",k),T.removeEventListener("mouseenter",N),T.removeEventListener("mouseleave",F)}),S=[]}function I(T){try{const j=T.contentDocument;if(!j)return;const B="f-chat-preview-injected-scrollbar-style";if(j.getElementById(B))return;const Z=j.createElement("style");Z.id=B,Z.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`)}},tp=function(t){var n=d
|
|
|
146
146
|
document.addEventListener('mouseenter', show);
|
|
147
147
|
document.addEventListener('mouseleave', scheduleHide);
|
|
148
148
|
})();
|
|
149
|
-
`,(j.head||j.documentElement).appendChild(C)}catch{}}const G=()=>{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 j;return(j=e.onClose)==null?void 0:j.call(e)}},[i.createVNode("i",{class:"fx-icon fx-icon-sidewindow_close"},null)])])])},X=()=>{var T;return d.value?c.value?i.createVNode("div",{class:"d-flex"},[i.createVNode(Sn,{class:"f-chat-content-main-layout",direction:"row"},{default:()=>[i.createVNode(dr,{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((j,B)=>i.createVNode("div",{key:B,class:["f-chat-preview-content-nav-item",j===f.value?"active-nav-item":""],title:j,onClick:()=>m(j)},[j]))])])]}),i.createVNode(dr,{position:"right",resizable:!0,width:600,class:"f-chat-preview-pane-right"},{default:()=>[i.createVNode(an,{content:c.value},null)]})]})]):null:i.createVNode(an,{content:((T=e.previewConfig)==null?void 0:T.content)??""},null)};return()=>i.createVNode("div",{class:"f-chat-preview"},[G(),i.createVNode("div",{ref:r,class:"f-chat-preview-content",style:{overflow:s.value?"auto":"hidden"}},[s.value?X():i.createVNode(i.Fragment,null,[i.withDirectives(i.createVNode("div",{class:["f-chat-preview-skeleton",{"f-chat-preview-skeleton--fade-out":u.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,o.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":u.value}]},null)])])])}});function e1(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 t1(e){return pl(e)}let n1=0;const mr=[];function sn(){var e;return((e=mr[mr.length-1])==null?void 0:e.h)??{}}function r1(e){const t=++n1;return mr.push({id:t,h:e}),()=>{const n=mr.findIndex(r=>r.id===t);n>=0&&mr.splice(n,1)}}const o1={showPreview(e){var t,n;(n=(t=sn()).showPreview)==null||n.call(t,e)},replaceRightPreview(e){var t,n;(n=(t=sn()).showPreview)==null||n.call(t,e)},closePreviewPane(){var e,t;(t=(e=sn()).closePreviewPane)==null||t.call(e)},closeRightPreview(){var e,t;(t=(e=sn()).closeRightPreview)==null||t.call(e)},showFullScreenPreview(e){var t,n;(n=(t=sn()).showFullScreenPreview)==null||n.call(t,e)},closeFullScreenPreview(){var e,t;(t=(e=sn()).closeFullScreenPreview)==null||t.call(e)},isPreviewLayoutActive(){return typeof sn().showPreview=="function"}};hr.install=e=>{e.component(hr.name,hr)};const bl={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}},pr=i.defineComponent({name:"FXConfirmDialog",props:bl,emits:{"update:modelValue":e=>!0,cancel:()=>!0,confirm:()=>!0},setup(e,{emit:t,slots:n}){function r(){t("update:modelValue",!1)}function u(){t("cancel"),r()}function o(){t("confirm"),r()}function a(
|
|
150
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).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){
|
|
149
|
+
`,(j.head||j.documentElement).appendChild(C)}catch{}}const G=()=>{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 j;return(j=e.onClose)==null?void 0:j.call(e)}},[i.createVNode("i",{class:"fx-icon fx-icon-sidewindow_close"},null)])])])},X=()=>{var T;return d.value?c.value?i.createVNode("div",{class:"d-flex"},[i.createVNode(Sn,{class:"f-chat-content-main-layout",direction:"row"},{default:()=>[i.createVNode(dr,{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((j,B)=>i.createVNode("div",{key:B,class:["f-chat-preview-content-nav-item",j===f.value?"active-nav-item":""],title:j,onClick:()=>m(j)},[j]))])])]}),i.createVNode(dr,{position:"right",resizable:!0,width:600,class:"f-chat-preview-pane-right"},{default:()=>[i.createVNode(an,{content:c.value},null)]})]})]):null:i.createVNode(an,{content:((T=e.previewConfig)==null?void 0:T.content)??""},null)};return()=>i.createVNode("div",{class:"f-chat-preview"},[G(),i.createVNode("div",{ref:r,class:"f-chat-preview-content",style:{overflow:s.value?"auto":"hidden"}},[s.value?X():i.createVNode(i.Fragment,null,[i.withDirectives(i.createVNode("div",{class:["f-chat-preview-skeleton",{"f-chat-preview-skeleton--fade-out":u.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,o.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":u.value}]},null)])])])}});function e1(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 t1(e){return pl(e)}let n1=0;const mr=[];function sn(){var e;return((e=mr[mr.length-1])==null?void 0:e.h)??{}}function r1(e){const t=++n1;return mr.push({id:t,h:e}),()=>{const n=mr.findIndex(r=>r.id===t);n>=0&&mr.splice(n,1)}}const o1={showPreview(e){var t,n;(n=(t=sn()).showPreview)==null||n.call(t,e)},replaceRightPreview(e){var t,n;(n=(t=sn()).showPreview)==null||n.call(t,e)},closePreviewPane(){var e,t;(t=(e=sn()).closePreviewPane)==null||t.call(e)},closeRightPreview(){var e,t;(t=(e=sn()).closeRightPreview)==null||t.call(e)},showFullScreenPreview(e){var t,n;(n=(t=sn()).showFullScreenPreview)==null||n.call(t,e)},closeFullScreenPreview(){var e,t;(t=(e=sn()).closeFullScreenPreview)==null||t.call(e)},isPreviewLayoutActive(){return typeof sn().showPreview=="function"}};hr.install=e=>{e.component(hr.name,hr)};const bl={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},iconType:{type:String,default:"warning"}};function u1(){return 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)])}function i1(){return 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("path",{d:"M2.5 6.25L4.75 8.5L9.5 3.75",stroke:"#FFFFFF","stroke-width":"1.75","stroke-linecap":"round","stroke-linejoin":"round"},null)])}function a1(){return i.createVNode("span",{class:"f-chat-confirm-dialog-icon-letter"},[i.createTextVNode("i")])}function s1(){return 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("path",{d:"M2.5 2.5L9.5 9.5M9.5 2.5L2.5 9.5",stroke:"#FFFFFF","stroke-width":"1.75","stroke-linecap":"round"},null)])}const pr=i.defineComponent({name:"FXConfirmDialog",props:bl,emits:{"update:modelValue":e=>!0,cancel:()=>!0,confirm:()=>!0},setup(e,{emit:t,slots:n}){function r(){t("update:modelValue",!1)}function u(){t("cancel"),r()}function o(){t("confirm"),r()}function a(l){e.closeOnMask&&l.target===l.currentTarget&&u()}function s(){const l=e.iconType??"warning";return i.createVNode("div",{class:["f-chat-confirm-dialog-icon",`is-${l}`],"aria-hidden":"true"},[l==="success"?i1():null,l==="info"?a1():null,l==="error"?s1():null,l==="warning"?u1():null])}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",role:"dialog","aria-modal":"true"},[i.createVNode("div",{class:"f-chat-confirm-dialog-body"},[i.createVNode("div",{class:"f-chat-confirm-dialog-header"},[s(),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:u},[e.cancelText]),i.createVNode("button",{type:"button",class:"f-chat-confirm-dialog-btn f-chat-confirm-dialog-btn-confirm",onClick:o},[e.confirmText])])])])]}):null}});pr.install=e=>{e.component(pr.name,pr)};function yl(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 l1(e){if(Array.isArray(e))return e}function c1(e,t,n){return(t=b1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d1(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,u,o,a,s=[],l=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){d=!0,u=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw u}}return s}}function f1(){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 wl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).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){c1(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(e,t){if(e==null)return{};var n,r,u=m1(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(u[n]=e[n])}return u}function m1(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 p1(e,t){return l1(e)||d1(e,t)||y1(e,t)||f1()}function g1(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 b1(e){var t=g1(e,"string");return typeof t=="symbol"?t:t+""}function y1(e,t){if(e){if(typeof e=="string")return yl(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)?yl(e,t):void 0}}function w1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function Al(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vl(Object(n),!0).forEach(function(r){w1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function x1(){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(u,o){return o(u)},r)}}function gr(e){return function t(){for(var n=this,r=arguments.length,u=new Array(r),o=0;o<r;o++)u[o]=arguments[o];return u.length>=e.length?e.apply(this,u):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(n,[].concat(u,s))}}}function _o(e){return{}.toString.call(e).includes("Object")}function v1(e){return!Object.keys(e).length}function br(e){return typeof e=="function"}function A1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function k1(e,t){return _o(t)||Zt("changeType"),Object.keys(t).some(function(n){return!A1(e,n)})&&Zt("changeField"),t}function C1(e){br(e)||Zt("selectorType")}function _1(e){br(e)||_o(e)||Zt("handlerType"),_o(e)&&Object.values(e).some(function(t){return!br(t)})&&Zt("handlersType")}function E1(e){e||Zt("initialIsRequired"),_o(e)||Zt("initialType"),v1(e)&&Zt("initialContent")}function S1(e,t){throw new Error(e[t]||e.default)}var F1={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"},Zt=gr(S1)(F1),Eo={changes:k1,selector:C1,handler:_1,initial:E1};function N1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Eo.initial(e),Eo.handler(t);var n={current:e},r=gr(I1)(n,t),u=gr(T1)(n),o=gr(Eo.changes)(e),a=gr(D1)(n);function s(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(f){return f};return Eo.selector(d),d(n.current)}function l(d){x1(r,u,o,a)(d)}return[s,l]}function D1(e,t){return br(t)?t(e.current):t}function T1(e,t){return e.current=Al(Al({},e.current),t),t}function I1(e,t,n){return br(t)?t(e.current):Object.keys(n).forEach(function(r){var u;return(u=t[r])===null||u===void 0?void 0:u.call(t,e.current[r])}),n}var O1={create:N1},L1={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function V1(e){return function t(){for(var n=this,r=arguments.length,u=new Array(r),o=0;o<r;o++)u[o]=arguments[o];return u.length>=e.length?e.apply(this,u):function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return t.apply(n,[].concat(u,s))}}}function P1(e){return{}.toString.call(e).includes("Object")}function R1(e){return e||Cl("configIsRequired"),P1(e)||Cl("configType"),e.urls?(M1(),{paths:{vs:e.urls.monacoBase}}):e}function M1(){console.warn(kl.deprecation)}function B1(e,t){throw new Error(e[t]||e.default)}var kl={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
|
-
`},Cl=
|
|
159
|
+
`},Cl=V1(B1)(kl),z1={config:R1},j1=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(u){return n.reduceRight(function(o,a){return a(o)},u)}};function _l(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],_l(e[n],t[n]))}),xl(xl({},e),t)}var H1={type:"cancelation",msg:"operation is manually canceled"};function ri(e){var t=!1,n=new Promise(function(r,u){e.then(function(o){return t?u(H1):r(o)}),e.catch(u)});return n.cancel=function(){return t=!0},n}var $1=["monaco"],U1=O1.create({config:L1,isInitialized:!1,resolve:null,reject:null,monaco:null}),El=p1(U1,2),yr=El[0],So=El[1];function W1(e){var t=z1.config(e),n=t.monaco,r=h1(t,$1);So(function(u){return{config:_l(u.config,r),monaco:n}})}function G1(){var e=yr(function(t){var n=t.monaco,r=t.isInitialized,u=t.resolve;return{monaco:n,isInitialized:r,resolve:u}});if(!e.isInitialized){if(So({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),ri(oi);if(window.monaco&&window.monaco.editor)return Sl(window.monaco),e.resolve(window.monaco),ri(oi);j1(X1,Z1)(Y1)}return ri(oi)}function X1(e){return document.body.appendChild(e)}function q1(e){var t=document.createElement("script");return e&&(t.src=e),t}function Z1(e){var t=yr(function(r){var u=r.config,o=r.reject;return{config:u,reject:o}}),n=q1("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function Y1(){var e=yr(function(n){var r=n.config,u=n.resolve,o=n.reject;return{config:r,resolve:u,reject:o}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m||n;Sl(r),e.resolve(r)},function(n){e.reject(n)})}function Sl(e){yr().monaco||So({monaco:e})}function K1(){return yr(function(e){var t=e.monaco;return t})}var oi=new Promise(function(e,t){return So({resolve:e,reject:t})}),Q1={config:W1,init:G1,__getMonacoInstance:K1};const Fl={content:{type:Object,required:!0}},Nl=20,J1=16,Nn=180;function e2(e){typeof requestIdleCallback<"u"?requestIdleCallback(e,{timeout:500}):setTimeout(e,0)}const wr=i.defineComponent({name:"FXCodingMessage",props:Fl,setup(e){const t=i.ref(!0),n=i.ref(!1),r=i.ref(null),u=i.ref(null),o=i.ref(Nn),a=i.ref(!1);function s(){t.value=!t.value}function l(){var b,g,w,k;const m=(b=e.content)==null?void 0:b.code;if(!m)return Nn;const v=u.value;let y;if(v!=null&&v.getOriginalEditor&&(v!=null&&v.getModifiedEditor)){const N=((g=v.getOriginalEditor().getModel())==null?void 0:g.getLineCount())??0,F=((w=v.getModifiedEditor().getModel())==null?void 0:w.getLineCount())??0;y=N+F}else if(v!=null&&v.getModel)y=((k=v.getModel())==null?void 0:k.getLineCount())??0;else{const{value:N,originalValue:F}=m,S=(N||"").split(`
|
|
160
160
|
`).length,q=F?F.split(`
|
|
161
|
-
`).length:0;y=F?q+S:S}return Z1+y*Dl}const d=i.computed(()=>(u.value,l()>Dn));function f(){n.value=!n.value,o.value=n.value?l():Dn,h()}function c(){if(!u.value)return;u.value=null;const x=()=>{};typeof requestIdleCallback<"u"?requestIdleCallback(x,{timeout:100}):setTimeout(x,0)}function h(){if(a.value)return;const m=r.value,x=u.value;if(!m||!(x!=null&&x.layout))return;const v=m.clientWidth||m.offsetWidth,y=o.value;requestAnimationFrame(()=>{var b,g;a.value||!u.value||(g=(b=u.value)==null?void 0:b.layout)==null||g.call(b,{width:v,height:y})})}function p(){var m;a.value||!r.value||!((m=e.content)!=null&&m.code)||q1.init().then(x=>{var w;if(a.value||!r.value||!((w=e.content)!=null&&w.code))return;const{value:v,originalValue:y,language:b="typescript"}=e.content.code,g={readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,lineNumbers:"off",glyphMargin:!1,lineDecorationsWidth:0,folding:!1,renderLineHighlight:"none",fontSize:12,lineHeight:Dl,padding:{top:8,bottom:8}};if(y){const k=x.editor.createDiffEditor(r.value,{...g,renderSideBySide:!1,renderOverviewRuler:!1});k.setModel({original:x.editor.createModel(y,b),modified:x.editor.createModel(v,b)}),k.getOriginalEditor().updateOptions({minimap:{enabled:!1}}),k.getModifiedEditor().updateOptions({minimap:{enabled:!1}}),i.nextTick(()=>{var F;if(a.value)return;const D=(F=k.getContainerDomNode)==null?void 0:F.call(k);if(D){const S=D.querySelector('.diff-editor-cell.original, [class*="original"]');S&&(S.style.display="none")}}),u.value=k}else{const k=x.editor.create(r.value,{value:v,language:b,...g});u.value=k}o.value=Dn,i.nextTick(()=>h())})}return i.onMounted(()=>{Y1(()=>{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,x;return(x=(m=e.content)==null?void 0:m.code)==null?void 0:x.value},()=>{a.value||(n.value?o.value=l():o.value=Dn,h())}),()=>{const m=e.content;if(!m)return null;const{message:x,fileIcon:v,fileName:y,code:b}=m;return i.createVNode("div",{class:"f-chat-message-coding"},[i.createVNode("div",{class:"f-chat-coding-message"},[x]),i.createVNode("div",{class:"f-chat-coding-card"},[i.createVNode("div",{class:"f-chat-coding-header",onClick:s,role:"button",tabindex:0,onKeydown:g=>g.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:v,alt:"",onError:g=>{var w;g.target.style.display="none",(w=g.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("+"),b.addedLines]),i.createVNode("span",{class:"f-chat-coding-stat-del"},[i.createTextVNode("-"),b.deletedLines])])]),i.createVNode("div",{style:{display:t.value?"block":"none"}},[i.createVNode("div",{ref:r,class:"f-chat-coding-editor",style:{height:`${o.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)])])])])}}});wr.install=e=>{e.component(wr.name,wr)};const Nl={content:{type:Object,required:!0}};function K1(e){return"file"in e&&"path"in e}const xr=i.defineComponent({name:"FileOperationMessage",props:Nl,setup(e){const t=i.ref(!0),n=i.ref({}),r=i.computed(()=>{var l;return!!((l=e.content)!=null&&l.summary)}),u=i.computed(()=>{var d;const l=(d=e.content)==null?void 0:d.summary;return l?`浏览了 ${l.explored} 个文件并查询了 ${l.searched} 个文件`:""});function o(){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:o,role:"button",tabindex:0,onKeydown:h=>h.key==="Enter"&&o()},[i.createVNode("span",{class:"f-chat-file-op-summary-inner"},[i.createVNode("span",{class:"f-chat-file-op-summary-text"},[u.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,x,v,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 b;return((b=h.details)==null?void 0:b.length)&&a(p)}},(x=h.details)!=null&&x.length?{role:"button",tabIndex:0}:{},{onKeydown:b=>{var g;return((g=h.details)==null?void 0:g.length)&&b.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]),(v=h.details)!=null&&v.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((b,g)=>K1(b)?i.createVNode("div",{key:g,class:"f-chat-file-op-detail-file"},[i.createVNode("span",{class:"f-chat-file-op-file-icon"},[i.createVNode("img",{src:b.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"},[b.file]),i.createVNode("span",{class:"f-chat-file-op-file-path",title:b.path},[b.path])]):i.createVNode("div",{key:g,class:"f-chat-file-op-detail-text"},[i.createVNode("div",{class:"f-chat-file-op-detail-title"},[b.title]),i.createVNode("div",{class:"f-chat-file-op-detail-content"},[b.text])]))])])})])])}}});xr.install=e=>{e.component(xr.name,xr)};const Tl={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:()=>({})}},Q1="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",vr=i.defineComponent({name:"FXGenerateProcess",props:Tl,emits:["closed"],setup(e,t){const n=i.computed(()=>{const d={"fx-generate-process":!0,"fx-generate-process--no-progress":!e.showProgress};return Ae(d,e.customClass)}),r=i.computed(()=>Ee({},e.customStyle));function u(){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?Br(e.icon):i.createVNode("img",{alt:"ai logo",class:"fx-generate-process--icon-default",src:Q1},null)])}function o(){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},[u(),!e.showProgress&&o(),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"},[o(),i.createTextVNode(" "),a()])])])}}});vr.install=e=>{e.component(vr.name,vr)};const Il={title:{type:String,default:"历史对话"},items:{type:Array,default:()=>[]}},J1=[{key:"today",label:"今天"},{key:"week",label:"近7天"},{key:"older",label:"更早"}],Ar=i.defineComponent({name:"FXChatHistory",props:Il,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)},u=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}),o=(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"},[u.value&&J1.map(a=>o(a.label,u.value[a.key]))])])}});Ar.install=e=>{e.component(Ar.name,Ar)};const Ol={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 Ll=(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))(Ll||{});const Vl={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:Ll.defaultTextItem},gap:{type:[String,Number]},onClick:{type:Function,required:!1}},Fo=i.defineComponent({name:"FPrompt",props:Vl,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=Ae(c,(h=e.classNames)==null?void 0:h.item),Ae(c,e.customClass)}),r=i.computed(()=>{let c={"fx-prompt--item":!0};return c[`fx-prompt--${e.showType||"none"}`]=!0,c}),u=i.computed(()=>{var h;const c=Ee({},(h=e.styles)==null?void 0:h.item);return Ee(c,e.customStyle)}),o=()=>{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},[Br(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},[Hn(e.label)]):null};function s(){var h;const c={"fx-prompt--item-badge":!0};return typeof e.badge=="string"&&(c["badge-default"]=!0),Ae(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},[Hn(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},[Hn(e.description)]):null},f=()=>{var c,h,p,m;return!e.children||e.children.length===0?null:i.createVNode(Nn,{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:u.value,onClick:e.onClick},[t.value?f():i.createVNode("div",{class:r.value},[o(),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()])])])}}}),Nn=i.defineComponent({name:"FXPrompts",props:Ol,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=Ae(d,e.customClass),d=Ae(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=Ae(f,(c=e.classNames)==null?void 0:c.items),f=Ae(f,d==null?void 0:d.customClass),f}function u(d=null){var c;let f={};return(e.gap||e.gap===0)&&(f.gap=typeof e.gap=="number"?`${e.gap}px`:e.gap),f=Ee(f,(c=e.styles)==null?void 0:c.items),f=Ee(f,d==null?void 0:d.customStyle),f}const o=(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},[Hn(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:u(d)},[d.items.map((f,c)=>i.createVNode(Fo,{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=>o(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()])}}});Nn.install=e=>{e.component(Nn.name,Nn),e.component(Fo.name,Fo)};const Pl={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助理"}},kr=i.defineComponent({name:"FXSuggestion",props:Pl,setup(e,t){const n=i.ref(null),r=i.ref(!1),u=i.ref(!1),o=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 q;if(!n.value||d.value)return;if((((q=n.value.textContent)==null?void 0:q.trim())||"")===""){n.value.textContent="",n.value.innerHTML="",x();return}const b=window.getSelection();if(!b||b.rangeCount===0)return;const g=b.getRangeAt(0),w=g.cloneRange();w.selectNodeContents(n.value),w.setEnd(g.endContainer,g.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,g.selectNodeContents(n.value),g.collapse(!1),b.removeAllRanges(),b.addRange(g)),r.value===!1){u.value=!1,a.value=-1;return}if((n.value.textContent||"").lastIndexOf(`@${e.promptAgentName} `)!==-1){const H=document.createRange();H.setStart(n.value,0),H.setEnd(g.endContainer,g.endOffset);const{top:z,right:$}=H.getBoundingClientRect(),I=c();o.value={top:z-I-5,left:$+5,height:I},a.value===-1&&(a.value=0),u.value=!0}else u.value=!1,a.value=-1},c=()=>{const b=e.items.length*38-6;return Math.min(b+28+20,e.height)},h=y=>{var k;if(!n.value)return;const b=window.getSelection();if(!b||b.rangeCount===0)return;const g=((k=n.value.textContent)==null?void 0:k.replace(/\s*$/,""))||"";n.value.textContent=`${g} ${y.label}`;const w=b.getRangeAt(0);w.selectNodeContents(n.value),w.collapse(!1),b.removeAllRanges(),b.addRange(w),x()},p=async y=>{if(!u.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":x();break}await i.nextTick();const b=a.value>0?".f-chat-suggestion-panel-item--current":".f-chat-suggestion-panel-header",g=document.querySelector(b);g==null||g.scrollIntoView({block:"nearest",behavior:"smooth"})},m=y=>{n.value&&!n.value.contains(y.target)&&x()},x=()=>{r.value=!1,u.value=!1,a.value=-1};i.onMounted(()=>{document.addEventListener("click",m)}),i.onUnmounted(()=>{document.removeEventListener("click",m)});const v=y=>{const b=y.iconUrl||"",g=y.icon||"fx-icon fx-icon-sender_task";return i.createVNode(i.Fragment,null,[b?i.createVNode("img",{alt:"suggestion item icon",src:b},null):i.createVNode("i",{class:g},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),u.value&&i.createVNode("div",{class:"f-chat-suggestion-panel",style:{top:`${o.value.top}px`,left:`${o.value.left}px`,height:`${o.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((b,g)=>i.createVNode("div",{key:g,class:["f-chat-suggestion-panel-item",{"f-chat-suggestion-panel-item--current":g===a.value}],onClick:()=>h(b),onMouseenter:()=>a.value===g},[v(b)]))])])])}}});kr.install=e=>{e.component(kr.name,kr)};const Rl={type:{type:String,default:"Todo"},message:{type:String,default:""},items:{type:Array,default:[]},customClass:{type:String,default:""}},Cr=i.defineComponent({name:"Todo",props:Rl,setup(e){const t=i.ref(!0),n=i.computed(()=>{var u;return(u=e.items)==null?void 0:u.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:u=>u.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(ar,{items:e.items},null)])])])}});Cr.install=e=>{e.component(Cr.name,Cr),e.component(ar.name,ar),e.component(po.name,po),e.directive("overflow-tooltip",Si)};function Tn(e){return e.toolResultApplied===!0||String(e.result??"").trim().length>0}const _r=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(Tn)}),{getToolIconClass:n}=qo(),r=i.computed(()=>t.value?`共调用 ${e.content.totalCount??e.content.toolCalls.length} 个工具`:"正在调用工具"),u=i.ref(!t.value),o=()=>{u.value=!u.value};i.watch(t,c=>{c&&(u.value=!1)});const a=c=>{Tn(c)&&(c._expanded=!c._expanded)},s=c=>{const h=Tn(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=Tn(c);return c.success===!1?"执行完成":h?"执行成功":"调用中"},d=c=>{const h=Tn(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:o},[i.createVNode("span",{class:"f-chat-tool-use-batch-title"},[r.value]),i.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:u.value?"rotate(-90deg)":"rotate(90deg)",transition:"transform 0.2s ease"}},null)]),u.value&&i.createVNode("div",{class:"f-chat-tool-use-batch-body"},[e.content.toolCalls.map(c=>{const h=Tn(c),p=c.success===!1,m=h||p,x=!!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(tn,{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:x?"rotate(-90deg)":"rotate(90deg)",transition:"transform 0.2s ease"}},null)]),x&&m&&i.createVNode("div",{class:"f-chat-tool-use-batch-item-result"},[c.errorMessage||c.result])])})])])}});_r.install=e=>{e.component(_r.name,_r)};const Ml={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:()=>({})}},Er=i.defineComponent({name:"FXWelcome",props:Ml,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),Ae(a,e.customClass)}),r=i.computed(()=>Ee({},e.customStyle));function u(){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},[Br(e.icon)]):null}function o(){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},[u(),o()])}});Er.install=e=>{e.component(Er.name,Er)};const Bl={content:{type:Object,required:!0},onOpen:{type:Function}},e2="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",t2="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",n2="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==",zl="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",r2="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",Sr=i.defineComponent({name:"FChatAttachmentPreview",props:Bl,emits:[],setup(e){function t(s){switch(s.toLowerCase()){case"doc":case"docx":return e2;case"xlsx":case"xls":return t2;case"ppt":case"mobi":return n2;case"txt":return zl;case"png":case"jpg":case"jpeg":case"gif":return r2;default:return zl}}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 u(s){var l;(l=e.onOpen)==null||l.call(e,s)}async function o(s,l){s.stopPropagation(),s.preventDefault();const d=mn(l);d&&await Mr(d,l.name)}function a(s,l){const d=r(s.size||0),f=n(s),c=mn(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:()=>u(s),onKeydown:h=>h.key==="Enter"&&u(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=>o(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))])])}}});Sr.install=e=>{e.component(Sr.name,Sr)},Cn.install=e=>{e.component(Cn.name,Cn)},_n.install=e=>{e.component(_n.name,_n)};const jl={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:""}},Fr=i.defineComponent({name:"FXNav",props:jl,emits:["nav","update:activeNavId"],setup(e,t){const n=i.ref(e.activeNavId),r=i.ref(e.navData);function u(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,u(f)});const o=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 Ae(f,e.customClass)}),l=i.computed(()=>Ee({},e.customStyle));function d(f){r.value=f,u(n.value)}return t.expose({updateNavData:d}),()=>{var f;return o.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)])]))])}}});Fr.install=e=>{e.component(Fr.name,Fr)};const Hl={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},itemClass:{type:String,default:""},dropdownClass:{type:String,default:""}},$l={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},enableHighlight:{type:Boolean,default:!0},itemClass:{type:String,default:""}},Do=i.defineComponent({name:"FXSearchBoxContainer",props:$l,emits:["confirmResult","searchedValue"],setup(e,t){const n=i.ref(e.data),r=i.ref(""),u=i.computed(()=>{if(!r.value)return n.value;const f=r.value.toLowerCase();return n.value.filter(c=>String(c[e.textField]??"").toLowerCase().includes(f))});function o(f){r.value=f}function a(f){t.emit("confirmResult",f[e.textField]),t.emit("searchedValue",[f])}function s(f,c){if(!c)return[f];const h=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),p=new RegExp(`(${h})`,"gi");return f.split(p).map(x=>x.toLowerCase()===c.toLowerCase()?i.createVNode("span",{class:"search-box-highlight"},[x]):x)}function l(f){const c=String(f[e.textField]??"");return t.slots.default?t.slots.default({item:f,searchValue:r.value,highlight:s}):s(c,r.value)}const d=i.computed(()=>{const f={padding:"8px"};return e.maxHeight!==void 0&&e.maxHeight>0&&(f.maxHeight=`${e.maxHeight}px`),f});return i.watch(()=>e.data,f=>{f!==n.value&&(n.value=f)}),t.expose({search:o}),()=>i.createVNode("div",{class:"search-box-container f-utils-overflow-xhya position-relative",style:d.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"},[u.value.map(f=>i.createVNode("li",{class:["search-box-item dropdown-item",e.itemClass],key:f[e.idField],onClick:()=>a(f)},[l(f)])),!e.loading&&u.value.length===0&&i.createVNode("li",{class:"search-box-empty"},[i.createTextVNode("无匹配结果")])])])}}),Dr=i.defineComponent({name:"FXSearchBox",props:Hl,emits:["update:modelValue","change","selectedValue","clickButton"],setup(e,t){const n=i.ref(),r=i.ref(),u=i.ref(),o=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(o,w=>{var k;(k=u.value)==null||k.search(w),t.emit("update:modelValue",w)}),i.watch(()=>e.modelValue,w=>{o.value=w});function d(w){o.value=w,m()}function f(w){const k=o.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 x(){a.value?m():p()}function v(w){const k=w.target.value;o.value=k,f(k),e.showDropdown&&k&&p()}function y(){e.showDropdown&&o.value&&p()}function b(){o.value="",t.emit("update:modelValue",""),m()}t.expose({togglePopup:x,hidePopup:m,showPopup:p});const g=i.computed(()=>{const w=Ae({},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:g.value},[i.createVNode("div",{class:"f-search-box-input-group",ref:n},[t.slots.prefix&&i.createVNode("span",{class:"f-search-box-prefix"},[t.slots.prefix()]),i.createVNode("input",{class:"f-search-box-input form-control",type:"text",placeholder:e.placeholder,value:o.value,disabled:e.disable,onInput:v,onFocus:y},null),o.value&&!e.disable&&i.createVNode("span",{class:"f-search-box-clear",onClick:b},[i.createVNode("i",{class:"fx-icon fx-icon-close"},null)]),t.slots.suffix?i.createVNode("span",{class:"f-search-box-suffix",onClick:h},[t.slots.suffix()]):l.value&&i.createVNode("span",{class:"f-search-box-button",onClick:h,innerHTML:l.value},null)]),e.showDropdown&&i.createVNode(nn,{ref:r,placement:"bottom-left",keepWidthWithReference:!0,showArrow:!1,fitContent:!0,limitContentBySpace:!0,host:e.popupHost,class:"f-search-box--dropdown "+e.dropdownClass},{default:()=>[t.slots.dropdown?t.slots.dropdown({data:e.data,searchValue:o.value,loading:e.loading}):i.createVNode(Do,{ref:u,data:e.data,idField:e.idField,textField:e.textField,onConfirmResult:d,onSearchedValue:w=>c(w),loading:e.loading,maxHeight:e.maxHeight,itemClass:e.itemClass},t.slots)]})])}});Dr.install=e=>{e.component(Dr.name,Dr),e.component(Do.name,Do)};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 o2(e){const t=i.ref([...e.data]),n=i.ref([]),r=i.ref(""),u=i.computed(()=>{var h;const c=e.group;return c!=null&&c.enable&&((h=c.groupFields)!=null&&h.length)?o(t.value,c):t.value.map((p,m)=>({type:0,data:p,originalIndex:m}))});function o(c,h){const p=[],m=h.groupFields[0],x=new Map;c.forEach(y=>{const b=String(y[m]??"");x.has(b)||x.set(b,[]),x.get(b).push(y)});let v=0;return x.forEach((y,b)=>{p.push({type:1,data:{[m]:b},groupField:m,groupValue:b,originalIndex:v++}),y.forEach(g=>{p.push({type:0,data:g,groupField:m,groupValue:b,originalIndex:v++})})}),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:u,selectedItems:n,activeItemId:r,updateDataSource:a,activeRowById:s,clearSelection:l,toggleSelection:d,isSelected:f}}const u2=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]])])}}),i2=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])])])}}),Nr=i.defineComponent({name:"FXListView",props:ui,emits:["clickItem"],setup(e,t){const{visualData:n,activeItemId:r,updateDataSource:u,activeRowById:o,clearSelection:a,toggleSelection:s,isSelected:l}=o2({data:e.data,idField:e.idField,group:e.group}),d=i.computed(()=>Ae({"f-list-view":!0},e.customClass));function f(c,h){s(c),t.emit("clickItem",c,h)}return t.expose({updateDataSource:u,activeRowById:o,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(i2,{key:`group_${c.groupValue}_${h}`,groupData:c.data,groupField:c.groupField,groupValue:c.groupValue,index:h},{default:t.slots.group}):i.createVNode(u2,{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}))])])])}});Nr.install=e=>{e.component(Nr.name,Nr)};const Ul={content:{type:Object,required:!0},defaultExpanded:{type:Boolean,default:!0}},No=i.defineComponent({name:"FXAgentThinkingMessage",props:Ul,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}),u=i.computed(()=>{var p;const h=(p=e.content)==null?void 0:p.title;return h||(r.value?"思考过程":"正在思考...")}),o=i.computed(()=>{var h;return((h=e.content)==null?void 0:h.steps)??[]}),a=i.computed(()=>{var h,p;return o.value.length>0?"":((p=(h=e.content)==null?void 0:h.text)==null?void 0:p.trim())??""}),s=i.computed(()=>{var h,p;return o.value.length>0||!!a.value||(((p=(h=e.content)==null?void 0:h.sources)==null?void 0:p.length)??0)>0});i.watch(o,h=>{const p={};h.forEach((m,x)=>{p[x]=n.value[x]??!!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 v;const m=!!((v=h.detail)!=null&&v.trim()),x=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(x):null]),m&&x?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(tn,{status:"Working",variant:"thinking"},null),i.createVNode("span",{class:"f-x-thinking-title"},[u.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,o.value.map(c),h.sources&&h.sources.length>0?i.createVNode("ul",{class:"f-x-thinking-sources"},[h.sources.map((m,x)=>i.createVNode("li",{key:x},[m]))]):null]):null])}}});No.install=e=>{e.component(No.name,No)};function a2(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function s2(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`#attachment:${encodeURIComponent(t)}`}function l2(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?{url:t}:{fileId:t}}const To=i.defineComponent({name:"FXAttachmentFileMessage",props:{content:{type:Object,required:!0}},setup(e){const t=i.computed(()=>s2(e.content.media)),n=i.computed(()=>mn(l2(e.content.media)));async function r(u){u.preventDefault(),u.stopPropagation();const o=n.value;o&&await Mr(o,e.content.name)}return()=>{const u=!!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"},[a2(e.content.size)])])])]),u?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])}}});To.install=e=>{e.component(To.name,To)};const c2={0:"高",1:"中",2:"低"},Io=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"},[c2[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])}}});Io.install=e=>{e.component(Io.name,Io)};function d2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Wl=".f-chat-content-input-section";function f2(e,t){const n=(t??"").trim();return n||`Agent请求使用【${e.trim()||"该系统"}】凭证访问该系统,是否授权?`}const Tr=i.defineComponent({name:"FXCredentialAuthDialog",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"凭证授权请求"},question:{type:String,default:""},systemName:{type:String,default:""},disabled:{type:Boolean,default:!1},onSelect:{type:Function,required:!0},onClose:{type:Function,default:void 0},teleportTo:{type:[String,Object],default:Wl}},setup(e){const t=i.computed(()=>f2(e.systemName,e.question));function n(u){e.disabled||e.onSelect(u)}const r=i.computed(()=>e.teleportTo??Wl);return()=>{if(!e.visible)return null;const u=i.createVNode("div",{class:"f-credential-auth-anchor f-credential-auth-anchor--overlay-input",role:"dialog","aria-modal":"true","aria-labelledby":"f-credential-auth-title"},[i.createVNode("div",{class:"f-credential-auth-dialog"},[i.createVNode("div",{id:"f-credential-auth-title",class:"f-credential-auth-dialog__title"},[e.title]),i.createVNode("div",{class:"f-credential-auth-dialog__body"},[t.value]),i.createVNode("div",{class:"f-credential-auth-dialog__actions"},[i.createVNode("button",{type:"button",class:"f-credential-auth-dialog__btn f-credential-auth-dialog__btn--primary","data-testid":"auth-per-access",disabled:e.disabled,onClick:()=>n("PER_ACCESS_YES")},[i.createTextVNode("临时授权一次")]),i.createVNode("button",{type:"button",class:"f-credential-auth-dialog__btn f-credential-auth-dialog__btn--outline","data-testid":"auth-session",disabled:e.disabled,onClick:()=>n("SESSION_YES")},[i.createTextVNode("授权整个会话")]),i.createVNode("button",{type:"button",class:"f-credential-auth-dialog__btn f-credential-auth-dialog__btn--outline","data-testid":"auth-no",disabled:e.disabled,onClick:()=>n("NO")},[i.createTextVNode("拒绝")])])])]);return r.value?i.createVNode(i.Teleport,{to:r.value},d2(u)?u:{default:()=>[u]}):u}}});Tr.install=e=>{e.component(Tr.name,Tr)};function h2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Vt="__hitl_other__";function ii(e,t=120){return e?e.length>t?e.slice(0,t)+"...":e:""}function Yt(e){const t=e??"text";return t==="text"||t==="select"||t==="multi_select"||t==="confirm"||t==="form"||t==="date"||t==="number"||t==="authorize"?t:"text"}function Gl(e){return e==="PER_ACCESS_YES"?"是(本次授权)":e==="SESSION_YES"?"是,当前会话后续不再询问":e==="NO"?"否":String(e??"")}const Oo=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},onSubmitAuthAnswer:{type:Function,default:void 0}},setup(e){const t=i.ref(!1),n=i.ref(0),r=i.ref({}),u=i.ref({}),o=i.computed(()=>t.value||e.disabled),a=i.computed(()=>{var C;return e.content.questions.length===1&&Yt((C=e.content.questions[0])==null?void 0:C.ui_type)==="authorize"&&!!e.content.credentialAuth}),s=i.ref(!1);i.watch(()=>[a.value,t.value,e.disabled],([C,E,N])=>{s.value=C&&!E&&!N},{immediate:!0});function l(C){var N;const E=e.content.questions[0];E&&(r.value={[E.id]:C},t.value=!0,s.value=!1,(N=e.onSubmitAuthAnswer)==null||N.call(e,{questionId:E.id,answer:C}))}function d(C){const E={},N={};for(const O of C){const P=Yt(O.ui_type);if(P==="confirm")E[O.id]=void 0;else if(P==="authorize")E[O.id]=void 0;else if(P==="text"||P==="select")E[O.id]=O.default_value??"";else if(P==="multi_select")E[O.id]=O.default_value?JSON.parse(O.default_value):[];else if(P==="form"){const U={};if(Array.isArray(O.fields))for(const L of O.fields)U[L.name]=L.default_value??"";E[O.id]=U}else E[O.id]=O.default_value??"";N[O.id]={active:!1,text:""}}r.value=E,u.value=N,n.value=0}i.watch(()=>e.content.questions,C=>{Array.isArray(C)&&C.length&&d(C)},{immediate:!0}),i.watch(()=>e.content.answers,C=>{if(!Array.isArray(C)||C.length===0)return;const E={...r.value},N={...u.value};for(const O of C){E[O.id]=O.answer;const P=e.content.questions.find(U=>U.id===O.id);P&&Yt(P.ui_type)==="select"&&typeof O.answer=="string"&&!(P.options??[]).some(R=>R.label===O.answer)&&O.answer!==""&&(N[O.id]={active:!0,text:O.answer},E[O.id]=Vt)}r.value=E,u.value=N,t.value=!0},{immediate:!0});const f=i.computed(()=>e.content.questions.length),c=i.computed(()=>{const C=e.content.questions;if(C.length===0)return null;const E=Math.max(0,Math.min(n.value,C.length-1));return C[E]}),h=i.computed(()=>n.value<=0),p=i.computed(()=>n.value>=f.value-1),m=i.computed(()=>{const C=c.value;return C?y(C):!0});function x(){e.required&&!m.value||p.value||(n.value+=1)}function v(){h.value||(n.value-=1)}function y(C){var O,P;const E=Yt(C.ui_type),N=r.value[C.id];if(E==="text"&&(typeof N!="string"||N.trim()==="")||E==="select"&&(typeof N!="string"||N.trim()===""||N===Vt&&(((P=(O=u.value[C.id])==null?void 0:O.text)==null?void 0:P.trim())??"")==="")||E==="confirm"&&typeof N!="boolean"||E==="multi_select"&&(!Array.isArray(N)||N.length===0))return!1;if(E==="form"){const U=C.fields??[],L=N;for(const R of U)if(R.required){const M=L[R.name];if(typeof M!="string"||M.trim()==="")return!1}}return!((E==="date"||E==="number")&&(typeof N!="string"||N.trim()===""))}const b=i.computed(()=>o.value?!1:e.content.questions.every(C=>y(C)));function g(C,E){r.value={...r.value,[C]:E}}function w(C,E,N){const O=r.value[C]??{};g(C,{...O,[E]:N})}function k(C){const E=Yt(C.ui_type);return E==="select"||E==="multi_select"}function D(C,E){var N;E===Vt?(u.value={...u.value,[C.id]:{...u.value[C.id],active:!0,text:((N=u.value[C.id])==null?void 0:N.text)??""}},g(C.id,Vt)):(u.value={...u.value,[C.id]:{active:!1,text:""}},g(C.id,E))}function F(C,E){const N=r.value[C.id]??[];N.includes(E)?g(C.id,N.filter(O=>O!==E)):g(C.id,[...N,E])}function S(){var E,N,O;if(!b.value)return;const C=[];for(const P of e.content.questions){const U=Yt(P.ui_type);let L=r.value[P.id];U==="select"&&L===Vt&&(L=((N=(E=u.value[P.id])==null?void 0:E.text)==null?void 0:N.trim())??""),U==="number"&&(L=Number(L)),C.push({id:P.id,answer:L})}t.value=!0,(O=e.onSubmitAnswers)==null||O.call(e,C)}function q(C,E,N){return i.createVNode("div",{class:"f-hitl-date-wrap"},[i.createVNode("input",{class:"f-hitl-input",type:"date",value:C,disabled:E,onInput:O=>N(O.target.value)},null)])}function H(C,E,N,O,P){const U=M=>{let Q=Number(C)||0;Q+=M,O!==void 0&&(Q=Math.max(O,Q)),P!==void 0&&(Q=Math.min(P,Q)),N(String(Q))},L=P!==void 0&&Number(C||0)>=P,R=O!==void 0&&Number(C||0)<=O;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:O,max:P,disabled:E,onInput:M=>N(M.target.value)},null),i.createVNode("div",{class:"f-hitl-num-btns"},[i.createVNode("button",{type:"button",class:"f-hitl-num-btn",disabled:E||L,onClick:()=>U(1)},[i.createVNode("span",{class:"fx-icon fx-icon-foldup"},null)]),i.createVNode("button",{type:"button",class:"f-hitl-num-btn",disabled:E||R,onClick:()=>U(-1)},[i.createVNode("span",{class:"fx-icon fx-icon-expanddown"},null)])])])}function z(C,E,N,O){return i.createVNode("div",{key:C.label,class:["f-hitl-opt-row",{"f-hitl-opt-row--active":N}],onClick:O},[i.createVNode("span",{class:"f-hitl-opt-row__index"},[E+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",title:C.description},[ii(C.description)]):null]),i.createVNode("span",{class:"f-hitl-opt-row__check"},[N?i.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])])}function $(C,E){return i.createVNode("div",{class:"f-hitl-form-item",key:C.name},[i.createVNode("div",{class:"f-hitl-form-item__label"},[C.label]),E])}function I(C,E,N){const O=r.value[C.id]??"",P=r.value[C.id]??[],U=u.value[C.id]??{active:!1,text:""},L=N==="single",R=L&&O===Vt||U.active,M=C.allow_other&&R,Q=le=>L?O===le.label&&!U.active:P.includes(le.label),re=le=>()=>{o.value||(L?D(C,le.label):F(C,le.label))},oe=()=>{if(!o.value)if(L)D(C,Vt);else{const le=U.text;U.active?(g(C.id,P.filter(he=>he!==le)),u.value={...u.value,[C.id]:{active:!1,text:""}}):(u.value={...u.value,[C.id]:{active:!0,text:U.text}},U.text&&!P.includes(U.text)&&g(C.id,[...P,U.text]))}},ce=le=>{const he=le.target.value;u.value={...u.value,[C.id]:{active:!0,text:he}},L?g(C.id,Vt):g(C.id,[...P.filter(Be=>Be!==U.text),he])};return i.createVNode("div",{key:C.id},[i.createVNode("div",{class:"f-hitl-option-list"},[E.map((le,he)=>z(le,he,Q(le),re(le))),C.allow_other?i.createVNode("div",{class:["f-hitl-opt-row f-hitl-opt-row--other",{"f-hitl-opt-row--active":R}],onClick:oe},[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"},[R?i.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])]):null]),M?i.createVNode("input",{class:"f-hitl-input f-hitl-input--other",type:"text",value:U.text,placeholder:"请输入自定义内容",disabled:o.value,onInput:ce},null):null])}function G(C){const E=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(O=>{const P=E[O.name]??"";return O.type==="select"?$(O,i.createVNode("div",{class:"f-hitl-select-group"},[(O.options??[]).map(U=>{const L=typeof U=="string"?U:U.label??"";return i.createVNode("button",{key:L,type:"button",class:["f-hitl-opt",{"f-hitl-opt--active":P===L}],disabled:o.value,onClick:()=>w(C.id,O.name,L)},[L])})])):O.type==="number"?$(O,H(P,o.value,U=>w(C.id,O.name,U),O.min,O.max)):O.type==="date"?$(O,q(P,o.value,U=>w(C.id,O.name,U))):$(O,i.createVNode("input",{class:"f-hitl-input",type:"text",value:P,placeholder:O.default_value??"请输入",disabled:o.value,onInput:U=>w(C.id,O.name,U.target.value)},null))})])])}function X(C){const E=Yt(C.ui_type);if(E==="text"){const N=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:N,placeholder:C.placeholder??"请输入",disabled:o.value,onInput:O=>g(C.id,O.target.value)},null)])}if(E==="multi_select"){const N=Array.isArray(C.options)?C.options:[];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[I(C,N,"multi")])}if(E==="form")return G(C);if(E==="select"){let N=Array.isArray(C.options)?C.options:[];return N.length===0&&(N=[{label:"暂无"}]),i.createVNode("div",{class:"f-hitl-field",key:C.id},[I(C,N,"single")])}if(E==="confirm"){const N=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":N===!0}],disabled:o.value,onClick:()=>g(C.id,!0)},[i.createTextVNode("是")]),i.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":N===!1}],disabled:o.value,onClick:()=>g(C.id,!1)},[i.createTextVNode("否")])])])}if(E==="authorize")return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("span",{class:"f-hitl-submitted-value"},[Gl(r.value[C.id])])]);if(E==="date"){const N=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[q(N,o.value,O=>g(C.id,O))])}if(E==="number"){const N=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[H(N,o.value,O=>g(C.id,O),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 T(C){const E=Yt(C.ui_type),N=(P,U,L)=>i.createVNode("input",{class:"f-hitl-input",type:P,value:U,readonly:!0,min:L==null?void 0:L.min,max:L==null?void 0:L.max},null);if(E==="text"){const P=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[N("text",P)])}if(E==="multi_select"){const P=r.value[C.id]??[],U=Array.isArray(C.options)?C.options:[],L=new Set(U.map(M=>M.label)),R=P.filter(M=>!L.has(M));return i.createVNode("div",{key:C.id},[i.createVNode("div",{class:"f-hitl-option-list"},[U.filter(M=>P.includes(M.label)).map(M=>i.createVNode("div",{class:"f-hitl-opt-row",key:M.label},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[M.label]),M.description?i.createVNode("span",{class:"f-hitl-opt-row__desc",title:M.description},[ii(M.description)]):null])])),R.map(M=>i.createVNode("div",{class:"f-hitl-opt-row",key:M},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[M])])]))])])}if(E==="select"){const P=r.value[C.id]??"",U=u.value[C.id]??{active:!1,text:""},L=Array.isArray(C.options)?C.options:[],R=P===Vt||U.active;return i.createVNode("div",{key:C.id},[i.createVNode("div",{class:"f-hitl-option-list"},[R?i.createVNode("div",{class:"f-hitl-opt-row"},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[U.text||"其他"])])]):L.filter(M=>M.label===P).map(M=>i.createVNode("div",{class:"f-hitl-opt-row",key:M.label},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[M.label]),M.description?i.createVNode("span",{class:"f-hitl-opt-row__desc",title:M.description},[ii(M.description)]):null])]))])])}if(E==="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--readonly"]},[P===!0?"是":"否"])])])}if(E==="authorize")return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("span",{class:"f-hitl-submitted-value"},[Gl(r.value[C.id])])]);if(E==="form"){const P=r.value[C.id]??{},U=C.fields??[];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("div",{class:"f-hitl-form-group"},[U.map(L=>{const R=P[L.name]??"";let M;return L.type==="number"?M=N("number",R,{min:L.min,max:L.max}):L.type==="date"?M=N("date",R):M=N("text",R),$(L,M)})])])}if(E==="date"){const P=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[N("date",P)])}if(E==="number"){const P=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[N("number",P)])}const O=r.value[C.id];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("span",{class:"f-hitl-submitted-value"},[String(O??"")])])}function j(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 B(){return f.value<=1?null:i.createVNode("div",{class:"f-hitl-pagination"},[i.createVNode("button",{type:"button",class:"f-hitl-pagination__btn",disabled:h.value,onClick:v},[i.createVNode("span",{class:"fx-icon fx-icon-arrow-left"},null)]),i.createVNode("span",{class:"f-hitl-pagination__text"},[n.value+1,i.createTextVNode("/"),f.value]),i.createVNode("button",{type:"button",class:"f-hitl-pagination__btn",disabled:p.value,onClick:x},[i.createVNode("span",{class:"fx-icon fx-icon-arrow-right"},null)])])}function Z(){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(E=>i.createVNode("div",{class:"f-hitl-submitted-item",key:E.id},[i.createVNode("div",{class:"f-hitl-card__header"},[j(E)]),i.createVNode("div",{class:["f-hitl-card__body",{"f-hitl-card__body--option":k(E)}]},[T(E)])]))])])}function ue(){const C=c.value;if(!C)return null;const E=e.pinned?"f-hitl-card--pinned":"",N=e.pinned&&e.pinnedWidth?{width:e.pinnedWidth}:void 0,O=e.pinnedInputHeight??0,P=e.pinnedBottom??36,U=()=>i.createVNode(i.Fragment,null,[i.createVNode("div",{class:"f-hitl-card__header"},[j(C),B()]),i.createVNode("div",{class:["f-hitl-card__body",{"f-hitl-card__body--option":k(C)}]},[X(C)]),!o.value&&i.createVNode("div",{class:"f-hitl-card__footer"},[f.value>1&&!p.value&&i.createVNode("button",{type:"button",class:"f-hitl-btn",disabled:e.required&&!m.value,onClick:x},[i.createTextVNode("下一条")]),p.value&&i.createVNode("button",{type:"button",class:"f-hitl-btn",disabled:!b.value,onClick:S},[i.createTextVNode("提交")])])]);if(e.pinned){const L=i.createVNode("div",{class:"f-hitl-pinned-spacer","aria-hidden":"true"},[i.createVNode("div",{class:"f-hitl-card",style:{...N,marginBottom:`-${O}px`}},[U()])]);if(e.teleportTo){const M={...N,bottom:`${P}px`},Q=i.createVNode("div",{class:["f-hitl-card",E],style:M},[U()]);return i.createVNode(i.Fragment,null,[L,i.createVNode(i.Teleport,{to:e.teleportTo},h2(Q)?Q:{default:()=>[Q]})])}const R=i.createVNode("div",{class:["f-hitl-card",E],style:N},[U()]);return i.createVNode(i.Fragment,null,[L,R])}return i.createVNode("div",{class:["f-hitl-card",E],style:N},[U()])}return()=>{var C;if(a.value){const E=e.content.questions[0];return E?i.createVNode(i.Fragment,null,[i.createVNode(Tr,{visible:s.value,title:E.header??"凭证授权请求",question:E.question,systemName:((C=e.content.credentialAuth)==null?void 0:C.systemName)??"",disabled:o.value,teleportTo:".f-chat-content-input-section",onSelect:l},null)]):null}return o.value?Z():ue()}}});Oo.install=e=>{e.component(Oo.name,Oo)};function m2(e,t){var r;const n=(r=e.pickActions)==null?void 0:r[t];return n||e.pickActionDefault}const Lo=i.defineComponent({name:"InputRecommendMessage",props:{content:{type:Object,required:!0},onPick:{type:Function,default:void 0}},setup(e){const t=(n,r)=>{var u;m2(e.content,r),(u=e.onPick)==null||u.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]))])])}});Lo.install=e=>{e.component(Lo.name,Lo)};const Vo=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])])}}});Vo.install=e=>{e.component(Vo.name,Vo)};const Po=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])]))])])}});Po.install=e=>{e.component(Po.name,Po)};const Ro=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??"客户端无法识别此消息类型,已按占位展示。"])])}});Ro.install=e=>{e.component(Ro.name,Ro)},sr.install=e=>{e.component(sr.name,sr)};const p2={install(e){e.use(lt).use(lr).use(cr).use(hr).use(pr).use(wr).use(xr).use(vr).use(Ar).use(xn).use(an).use(Nn).use(rn).use(kr).use(Cr).use(_r).use(Er).use(Sr).use(Cn).use(_n).use(nn).use(Sn).use(Fr).use(Dr).use(Nr)}};V.FXAgentThinking=No,V.FXAppPreview=lt,V.FXAttachmentFile=To,V.FXAttachmentPreview=Sr,V.FXBubble=lr,V.FXBubbleAction=Ru,V.FXCarousel=cr,V.FXCarouselItem=go,V.FXChatPreview=hr,V.FXCoding=wr,V.FXConfirmDialog=pr,V.FXCredentialAuthDialog=Tr,V.FXDynamicComponent=_n,V.FXErrorReminder=Io,V.FXFileEmbeddedContent=Ti,V.FXFileOperation=xr,V.FXGenerateProcess=vr,V.FXHistory=Ar,V.FXHitlQuestion=Oo,V.FXInputRecommend=Lo,V.FXLinkCard=Vo,V.FXListView=Nr,V.FXMarkdown=xn,V.FXMarkdownPreview=an,V.FXNav=Fr,V.FXPopover=nn,V.FXPopoverDirective=ws,V.FXPrompt=Fo,V.FXPrompts=Nn,V.FXReferenceSources=Po,V.FXSearchBox=Dr,V.FXSearchBoxContainer=Do,V.FXSplitter=Sn,V.FXSplitterPane=dr,V.FXStartedTodo=rn,V.FXSuggestion=kr,V.FXTodo=Cr,V.FXTodoListItemView=po,V.FXTodoListView=ar,V.FXToolUse=En,V.FXToolUseBatch=_r,V.FXUnknownEnterprise=Ro,V.FXUserAuth=sr,V.FXWelcome=Er,V.FXWidgetContainer=Cn,V.PREVIEW_BRIDGE_MESSAGE_TYPE_ASSISTANT=ni,V.PREVIEW_BRIDGE_SOURCE=ei,V.PREVIEW_BRIDGE_VERSION=ti,V.agentThinkingProps=Ul,V.appPreviewMessageProps=ve,V.attachmentPreviewProps=Bl,V.bubbleActionProps=ks,V.bubbleProps=Rr,V.carouselItemProps=_s,V.carouselProps=Cs,V.chatHistoryProps=Il,V.chatPreviewProps=Ss,V.clonePreviewPayloadForPostMessage=dl,V.codingMessageProps=Fl,V.confirmDialogProps=bl,V.createPreviewIframeSdk=t1,V.default=p2,V.extractFileIdFromRuntimeDownloadUrl=xi,V.fileEmbeddedContentProps=Fi,V.fileOperationMessageProps=Nl,V.generateProcessProps=Tl,V.getCustomClass=Ae,V.getCustomStyle=Ee,V.getDynamicCompState=Kh,V.getDynamicComponentRegistryDebugSnapshot=Lu,V.invokeAgentWorkbenchSdkApi=e1,V.isImageUrl=ki,V.isPreviewBridgeAssistantMessage=hl,V.listViewProps=ui,V.loadDynamicComponent=hs,V.markdownMessageProps=ja,V.markdownPreviewProps=Fs,V.navProps=jl,V.normalizeDynamicComponentRegisterClaim=Te,V.overflowTooltipDirective=Si,V.peekDynamicComponentRegisterBootstrapId=qh,V.popoverProps=gs,V.postAssistantToPreviewIframe=ml,V.postDynamicComponentAssistantMessage=em,V.previewLayoutBridge=o1,V.promptProps=Vl,V.promptsProps=Ol,V.registerPreviewChromeSdk=r1,V.renderIconNode=Br,V.renderNode=Hn,V.resolveHrefForAttachmentDownload=mn,V.resolveRuntimeAttachmentDownloadUrl=Go,V.searchBoxContainerProps=$l,V.searchBoxProps=Hl,V.splitterProps=Es,V.startedTodoProps=xs,V.subscribeAssistantInPreviewIframe=pl,V.suggestionProps=Pl,V.todoListItemProps=As,V.todoListViewProps=vs,V.todoProps=Rl,V.triggerAttachmentDownload=Mr,V.unloadDynamicComponent=ms,V.useAttachment=Di,V.useSequentialStreaming=zr,V.useStreamingOutput=Ci,V.useTimer=Xo,V.useToolIcon=qo,V.welcomeProps=Ml,V.widgetContainerProps=as,Object.defineProperties(V,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
161
|
+
`).length:0;y=F?q+S:S}return J1+y*Nl}const d=i.computed(()=>(u.value,l()>Nn));function f(){n.value=!n.value,o.value=n.value?l():Nn,h()}function c(){if(!u.value)return;u.value=null;const x=()=>{};typeof requestIdleCallback<"u"?requestIdleCallback(x,{timeout:100}):setTimeout(x,0)}function h(){if(a.value)return;const m=r.value,x=u.value;if(!m||!(x!=null&&x.layout))return;const v=m.clientWidth||m.offsetWidth,y=o.value;requestAnimationFrame(()=>{var b,g;a.value||!u.value||(g=(b=u.value)==null?void 0:b.layout)==null||g.call(b,{width:v,height:y})})}function p(){var m;a.value||!r.value||!((m=e.content)!=null&&m.code)||Q1.init().then(x=>{var w;if(a.value||!r.value||!((w=e.content)!=null&&w.code))return;const{value:v,originalValue:y,language:b="typescript"}=e.content.code,g={readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,lineNumbers:"off",glyphMargin:!1,lineDecorationsWidth:0,folding:!1,renderLineHighlight:"none",fontSize:12,lineHeight:Nl,padding:{top:8,bottom:8}};if(y){const k=x.editor.createDiffEditor(r.value,{...g,renderSideBySide:!1,renderOverviewRuler:!1});k.setModel({original:x.editor.createModel(y,b),modified:x.editor.createModel(v,b)}),k.getOriginalEditor().updateOptions({minimap:{enabled:!1}}),k.getModifiedEditor().updateOptions({minimap:{enabled:!1}}),i.nextTick(()=>{var F;if(a.value)return;const N=(F=k.getContainerDomNode)==null?void 0:F.call(k);if(N){const S=N.querySelector('.diff-editor-cell.original, [class*="original"]');S&&(S.style.display="none")}}),u.value=k}else{const k=x.editor.create(r.value,{value:v,language:b,...g});u.value=k}o.value=Nn,i.nextTick(()=>h())})}return i.onMounted(()=>{e2(()=>{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,x;return(x=(m=e.content)==null?void 0:m.code)==null?void 0:x.value},()=>{a.value||(n.value?o.value=l():o.value=Nn,h())}),()=>{const m=e.content;if(!m)return null;const{message:x,fileIcon:v,fileName:y,code:b}=m;return i.createVNode("div",{class:"f-chat-message-coding"},[i.createVNode("div",{class:"f-chat-coding-message"},[x]),i.createVNode("div",{class:"f-chat-coding-card"},[i.createVNode("div",{class:"f-chat-coding-header",onClick:s,role:"button",tabindex:0,onKeydown:g=>g.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:v,alt:"",onError:g=>{var w;g.target.style.display="none",(w=g.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("+"),b.addedLines]),i.createVNode("span",{class:"f-chat-coding-stat-del"},[i.createTextVNode("-"),b.deletedLines])])]),i.createVNode("div",{style:{display:t.value?"block":"none"}},[i.createVNode("div",{ref:r,class:"f-chat-coding-editor",style:{height:`${o.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)])])])])}}});wr.install=e=>{e.component(wr.name,wr)};const Dl={content:{type:Object,required:!0}};function t2(e){return"file"in e&&"path"in e}const xr=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)}),u=i.computed(()=>{var d;const l=(d=e.content)==null?void 0:d.summary;return l?`浏览了 ${l.explored} 个文件并查询了 ${l.searched} 个文件`:""});function o(){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:o,role:"button",tabindex:0,onKeydown:h=>h.key==="Enter"&&o()},[i.createVNode("span",{class:"f-chat-file-op-summary-inner"},[i.createVNode("span",{class:"f-chat-file-op-summary-text"},[u.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,x,v,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 b;return((b=h.details)==null?void 0:b.length)&&a(p)}},(x=h.details)!=null&&x.length?{role:"button",tabIndex:0}:{},{onKeydown:b=>{var g;return((g=h.details)==null?void 0:g.length)&&b.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]),(v=h.details)!=null&&v.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((b,g)=>t2(b)?i.createVNode("div",{key:g,class:"f-chat-file-op-detail-file"},[i.createVNode("span",{class:"f-chat-file-op-file-icon"},[i.createVNode("img",{src:b.icon,alt:"",onError:w=>{const k=w.target;k.style.display="none";const N=k.parentElement;N&&N.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"},[b.file]),i.createVNode("span",{class:"f-chat-file-op-file-path",title:b.path},[b.path])]):i.createVNode("div",{key:g,class:"f-chat-file-op-detail-text"},[i.createVNode("div",{class:"f-chat-file-op-detail-title"},[b.title]),i.createVNode("div",{class:"f-chat-file-op-detail-content"},[b.text])]))])])})])])}}});xr.install=e=>{e.component(xr.name,xr)};const Tl={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:()=>({})}},n2="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",vr=i.defineComponent({name:"FXGenerateProcess",props:Tl,emits:["closed"],setup(e,t){const n=i.computed(()=>{const d={"fx-generate-process":!0,"fx-generate-process--no-progress":!e.showProgress};return Ae(d,e.customClass)}),r=i.computed(()=>Ee({},e.customStyle));function u(){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?Br(e.icon):i.createVNode("img",{alt:"ai logo",class:"fx-generate-process--icon-default",src:n2},null)])}function o(){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},[u(),!e.showProgress&&o(),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"},[o(),i.createTextVNode(" "),a()])])])}}});vr.install=e=>{e.component(vr.name,vr)};const Il={title:{type:String,default:"历史对话"},items:{type:Array,default:()=>[]}},r2=[{key:"today",label:"今天"},{key:"week",label:"近7天"},{key:"older",label:"更早"}],Ar=i.defineComponent({name:"FXChatHistory",props:Il,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)},u=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}),o=(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"},[u.value&&r2.map(a=>o(a.label,u.value[a.key]))])])}});Ar.install=e=>{e.component(Ar.name,Ar)};const Ol={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 Ll=(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))(Ll||{});const Vl={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:Ll.defaultTextItem},gap:{type:[String,Number]},onClick:{type:Function,required:!1}},Fo=i.defineComponent({name:"FPrompt",props:Vl,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=Ae(c,(h=e.classNames)==null?void 0:h.item),Ae(c,e.customClass)}),r=i.computed(()=>{let c={"fx-prompt--item":!0};return c[`fx-prompt--${e.showType||"none"}`]=!0,c}),u=i.computed(()=>{var h;const c=Ee({},(h=e.styles)==null?void 0:h.item);return Ee(c,e.customStyle)}),o=()=>{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},[Br(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},[Hn(e.label)]):null};function s(){var h;const c={"fx-prompt--item-badge":!0};return typeof e.badge=="string"&&(c["badge-default"]=!0),Ae(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},[Hn(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},[Hn(e.description)]):null},f=()=>{var c,h,p,m;return!e.children||e.children.length===0?null:i.createVNode(Dn,{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:u.value,onClick:e.onClick},[t.value?f():i.createVNode("div",{class:r.value},[o(),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()])])])}}}),Dn=i.defineComponent({name:"FXPrompts",props:Ol,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=Ae(d,e.customClass),d=Ae(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=Ae(f,(c=e.classNames)==null?void 0:c.items),f=Ae(f,d==null?void 0:d.customClass),f}function u(d=null){var c;let f={};return(e.gap||e.gap===0)&&(f.gap=typeof e.gap=="number"?`${e.gap}px`:e.gap),f=Ee(f,(c=e.styles)==null?void 0:c.items),f=Ee(f,d==null?void 0:d.customStyle),f}const o=(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},[Hn(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:u(d)},[d.items.map((f,c)=>i.createVNode(Fo,{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=>o(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()])}}});Dn.install=e=>{e.component(Dn.name,Dn),e.component(Fo.name,Fo)};const Pl={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助理"}},kr=i.defineComponent({name:"FXSuggestion",props:Pl,setup(e,t){const n=i.ref(null),r=i.ref(!1),u=i.ref(!1),o=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 q;if(!n.value||d.value)return;if((((q=n.value.textContent)==null?void 0:q.trim())||"")===""){n.value.textContent="",n.value.innerHTML="",x();return}const b=window.getSelection();if(!b||b.rangeCount===0)return;const g=b.getRangeAt(0),w=g.cloneRange();w.selectNodeContents(n.value),w.setEnd(g.endContainer,g.endOffset);const k=w.toString(),N=k.lastIndexOf(e.promptChar);if(s.value=n.value.textContent||"",N!==-1&&k.substring(N+1).trim()===""&&(n.value.textContent=k.replace(/@$/,`@${e.promptAgentName} `),s.value=n.value.textContent,r.value=!0,g.selectNodeContents(n.value),g.collapse(!1),b.removeAllRanges(),b.addRange(g)),r.value===!1){u.value=!1,a.value=-1;return}if((n.value.textContent||"").lastIndexOf(`@${e.promptAgentName} `)!==-1){const H=document.createRange();H.setStart(n.value,0),H.setEnd(g.endContainer,g.endOffset);const{top:z,right:$}=H.getBoundingClientRect(),I=c();o.value={top:z-I-5,left:$+5,height:I},a.value===-1&&(a.value=0),u.value=!0}else u.value=!1,a.value=-1},c=()=>{const b=e.items.length*38-6;return Math.min(b+28+20,e.height)},h=y=>{var k;if(!n.value)return;const b=window.getSelection();if(!b||b.rangeCount===0)return;const g=((k=n.value.textContent)==null?void 0:k.replace(/\s*$/,""))||"";n.value.textContent=`${g} ${y.label}`;const w=b.getRangeAt(0);w.selectNodeContents(n.value),w.collapse(!1),b.removeAllRanges(),b.addRange(w),x()},p=async y=>{if(!u.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":x();break}await i.nextTick();const b=a.value>0?".f-chat-suggestion-panel-item--current":".f-chat-suggestion-panel-header",g=document.querySelector(b);g==null||g.scrollIntoView({block:"nearest",behavior:"smooth"})},m=y=>{n.value&&!n.value.contains(y.target)&&x()},x=()=>{r.value=!1,u.value=!1,a.value=-1};i.onMounted(()=>{document.addEventListener("click",m)}),i.onUnmounted(()=>{document.removeEventListener("click",m)});const v=y=>{const b=y.iconUrl||"",g=y.icon||"fx-icon fx-icon-sender_task";return i.createVNode(i.Fragment,null,[b?i.createVNode("img",{alt:"suggestion item icon",src:b},null):i.createVNode("i",{class:g},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),u.value&&i.createVNode("div",{class:"f-chat-suggestion-panel",style:{top:`${o.value.top}px`,left:`${o.value.left}px`,height:`${o.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((b,g)=>i.createVNode("div",{key:g,class:["f-chat-suggestion-panel-item",{"f-chat-suggestion-panel-item--current":g===a.value}],onClick:()=>h(b),onMouseenter:()=>a.value===g},[v(b)]))])])])}}});kr.install=e=>{e.component(kr.name,kr)};const Rl={type:{type:String,default:"Todo"},message:{type:String,default:""},items:{type:Array,default:[]},customClass:{type:String,default:""}},Cr=i.defineComponent({name:"Todo",props:Rl,setup(e){const t=i.ref(!0),n=i.computed(()=>{var u;return(u=e.items)==null?void 0:u.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:u=>u.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(ar,{items:e.items},null)])])])}});Cr.install=e=>{e.component(Cr.name,Cr),e.component(ar.name,ar),e.component(po.name,po),e.directive("overflow-tooltip",Si)};function Tn(e){return e.toolResultApplied===!0||String(e.result??"").trim().length>0}const _r=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(Tn)}),{getToolIconClass:n}=qo(),r=i.computed(()=>t.value?`共调用 ${e.content.totalCount??e.content.toolCalls.length} 个工具`:"正在调用工具"),u=i.ref(!t.value),o=()=>{u.value=!u.value};i.watch(t,c=>{c&&(u.value=!1)});const a=c=>{Tn(c)&&(c._expanded=!c._expanded)},s=c=>{const h=Tn(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=Tn(c);return c.success===!1?"执行完成":h?"执行成功":"调用中"},d=c=>{const h=Tn(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:o},[i.createVNode("span",{class:"f-chat-tool-use-batch-title"},[r.value]),i.createVNode("i",{class:"fx-icon fx-icon-arrow-right",style:{transform:u.value?"rotate(-90deg)":"rotate(90deg)",transition:"transform 0.2s ease"}},null)]),u.value&&i.createVNode("div",{class:"f-chat-tool-use-batch-body"},[e.content.toolCalls.map(c=>{const h=Tn(c),p=c.success===!1,m=h||p,x=!!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(tn,{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:x?"rotate(-90deg)":"rotate(90deg)",transition:"transform 0.2s ease"}},null)]),x&&m&&i.createVNode("div",{class:"f-chat-tool-use-batch-item-result"},[c.errorMessage||c.result])])})])])}});_r.install=e=>{e.component(_r.name,_r)};const Ml={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:()=>({})}},Er=i.defineComponent({name:"FXWelcome",props:Ml,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),Ae(a,e.customClass)}),r=i.computed(()=>Ee({},e.customStyle));function u(){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},[Br(e.icon)]):null}function o(){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},[u(),o()])}});Er.install=e=>{e.component(Er.name,Er)};const Bl={content:{type:Object,required:!0},onOpen:{type:Function}},o2="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",u2="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",i2="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==",zl="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",a2="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",Sr=i.defineComponent({name:"FChatAttachmentPreview",props:Bl,emits:[],setup(e){function t(s){switch(s.toLowerCase()){case"doc":case"docx":return o2;case"xlsx":case"xls":return u2;case"ppt":case"mobi":return i2;case"txt":return zl;case"png":case"jpg":case"jpeg":case"gif":return a2;default:return zl}}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 u(s){var l;(l=e.onOpen)==null||l.call(e,s)}async function o(s,l){s.stopPropagation(),s.preventDefault();const d=mn(l);d&&await Mr(d,l.name)}function a(s,l){const d=r(s.size||0),f=n(s),c=mn(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:()=>u(s),onKeydown:h=>h.key==="Enter"&&u(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=>o(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))])])}}});Sr.install=e=>{e.component(Sr.name,Sr)},Cn.install=e=>{e.component(Cn.name,Cn)},_n.install=e=>{e.component(_n.name,_n)};const jl={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:""}},Fr=i.defineComponent({name:"FXNav",props:jl,emits:["nav","update:activeNavId"],setup(e,t){const n=i.ref(e.activeNavId),r=i.ref(e.navData);function u(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,u(f)});const o=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 Ae(f,e.customClass)}),l=i.computed(()=>Ee({},e.customStyle));function d(f){r.value=f,u(n.value)}return t.expose({updateNavData:d}),()=>{var f;return o.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)])]))])}}});Fr.install=e=>{e.component(Fr.name,Fr)};const Hl={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},itemClass:{type:String,default:""},dropdownClass:{type:String,default:""}},$l={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},enableHighlight:{type:Boolean,default:!0},itemClass:{type:String,default:""}},No=i.defineComponent({name:"FXSearchBoxContainer",props:$l,emits:["confirmResult","searchedValue"],setup(e,t){const n=i.ref(e.data),r=i.ref(""),u=i.computed(()=>{if(!r.value)return n.value;const f=r.value.toLowerCase();return n.value.filter(c=>String(c[e.textField]??"").toLowerCase().includes(f))});function o(f){r.value=f}function a(f){t.emit("confirmResult",f[e.textField]),t.emit("searchedValue",[f])}function s(f,c){if(!c)return[f];const h=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),p=new RegExp(`(${h})`,"gi");return f.split(p).map(x=>x.toLowerCase()===c.toLowerCase()?i.createVNode("span",{class:"search-box-highlight"},[x]):x)}function l(f){const c=String(f[e.textField]??"");return t.slots.default?t.slots.default({item:f,searchValue:r.value,highlight:s}):s(c,r.value)}const d=i.computed(()=>{const f={padding:"8px"};return e.maxHeight!==void 0&&e.maxHeight>0&&(f.maxHeight=`${e.maxHeight}px`),f});return i.watch(()=>e.data,f=>{f!==n.value&&(n.value=f)}),t.expose({search:o}),()=>i.createVNode("div",{class:"search-box-container f-utils-overflow-xhya position-relative",style:d.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"},[u.value.map(f=>i.createVNode("li",{class:["search-box-item dropdown-item",e.itemClass],key:f[e.idField],onClick:()=>a(f)},[l(f)])),!e.loading&&u.value.length===0&&i.createVNode("li",{class:"search-box-empty"},[i.createTextVNode("无匹配结果")])])])}}),Nr=i.defineComponent({name:"FXSearchBox",props:Hl,emits:["update:modelValue","change","selectedValue","clickButton"],setup(e,t){const n=i.ref(),r=i.ref(),u=i.ref(),o=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(o,w=>{var k;(k=u.value)==null||k.search(w),t.emit("update:modelValue",w)}),i.watch(()=>e.modelValue,w=>{o.value=w});function d(w){o.value=w,m()}function f(w){const k=o.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 x(){a.value?m():p()}function v(w){const k=w.target.value;o.value=k,f(k),e.showDropdown&&k&&p()}function y(){e.showDropdown&&o.value&&p()}function b(){o.value="",t.emit("update:modelValue",""),m()}t.expose({togglePopup:x,hidePopup:m,showPopup:p});const g=i.computed(()=>{const w=Ae({},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:g.value},[i.createVNode("div",{class:"f-search-box-input-group",ref:n},[t.slots.prefix&&i.createVNode("span",{class:"f-search-box-prefix"},[t.slots.prefix()]),i.createVNode("input",{class:"f-search-box-input form-control",type:"text",placeholder:e.placeholder,value:o.value,disabled:e.disable,onInput:v,onFocus:y},null),o.value&&!e.disable&&i.createVNode("span",{class:"f-search-box-clear",onClick:b},[i.createVNode("i",{class:"fx-icon fx-icon-close"},null)]),t.slots.suffix?i.createVNode("span",{class:"f-search-box-suffix",onClick:h},[t.slots.suffix()]):l.value&&i.createVNode("span",{class:"f-search-box-button",onClick:h,innerHTML:l.value},null)]),e.showDropdown&&i.createVNode(nn,{ref:r,placement:"bottom-left",keepWidthWithReference:!0,showArrow:!1,fitContent:!0,limitContentBySpace:!0,host:e.popupHost,class:"f-search-box--dropdown "+e.dropdownClass},{default:()=>[t.slots.dropdown?t.slots.dropdown({data:e.data,searchValue:o.value,loading:e.loading}):i.createVNode(No,{ref:u,data:e.data,idField:e.idField,textField:e.textField,onConfirmResult:d,onSearchedValue:w=>c(w),loading:e.loading,maxHeight:e.maxHeight,itemClass:e.itemClass},t.slots)]})])}});Nr.install=e=>{e.component(Nr.name,Nr),e.component(No.name,No)};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 s2(e){const t=i.ref([...e.data]),n=i.ref([]),r=i.ref(""),u=i.computed(()=>{var h;const c=e.group;return c!=null&&c.enable&&((h=c.groupFields)!=null&&h.length)?o(t.value,c):t.value.map((p,m)=>({type:0,data:p,originalIndex:m}))});function o(c,h){const p=[],m=h.groupFields[0],x=new Map;c.forEach(y=>{const b=String(y[m]??"");x.has(b)||x.set(b,[]),x.get(b).push(y)});let v=0;return x.forEach((y,b)=>{p.push({type:1,data:{[m]:b},groupField:m,groupValue:b,originalIndex:v++}),y.forEach(g=>{p.push({type:0,data:g,groupField:m,groupValue:b,originalIndex:v++})})}),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:u,selectedItems:n,activeItemId:r,updateDataSource:a,activeRowById:s,clearSelection:l,toggleSelection:d,isSelected:f}}const l2=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]])])}}),c2=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:u,activeRowById:o,clearSelection:a,toggleSelection:s,isSelected:l}=s2({data:e.data,idField:e.idField,group:e.group}),d=i.computed(()=>Ae({"f-list-view":!0},e.customClass));function f(c,h){s(c),t.emit("clickItem",c,h)}return t.expose({updateDataSource:u,activeRowById:o,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(c2,{key:`group_${c.groupValue}_${h}`,groupData:c.data,groupField:c.groupField,groupValue:c.groupValue,index:h},{default:t.slots.group}):i.createVNode(l2,{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 Ul={content:{type:Object,required:!0},defaultExpanded:{type:Boolean,default:!0}},Do=i.defineComponent({name:"FXAgentThinkingMessage",props:Ul,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}),u=i.computed(()=>{var p;const h=(p=e.content)==null?void 0:p.title;return h||(r.value?"思考过程":"正在思考...")}),o=i.computed(()=>{var h;return((h=e.content)==null?void 0:h.steps)??[]}),a=i.computed(()=>{var h,p;return o.value.length>0?"":((p=(h=e.content)==null?void 0:h.text)==null?void 0:p.trim())??""}),s=i.computed(()=>{var h,p;return o.value.length>0||!!a.value||(((p=(h=e.content)==null?void 0:h.sources)==null?void 0:p.length)??0)>0});i.watch(o,h=>{const p={};h.forEach((m,x)=>{p[x]=n.value[x]??!!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 v;const m=!!((v=h.detail)!=null&&v.trim()),x=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(x):null]),m&&x?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(tn,{status:"Working",variant:"thinking"},null),i.createVNode("span",{class:"f-x-thinking-title"},[u.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,o.value.map(c),h.sources&&h.sources.length>0?i.createVNode("ul",{class:"f-x-thinking-sources"},[h.sources.map((m,x)=>i.createVNode("li",{key:x},[m]))]):null]):null])}}});Do.install=e=>{e.component(Do.name,Do)};function d2(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function f2(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?t:`#attachment:${encodeURIComponent(t)}`}function h2(e){const t=e.trim();return t.startsWith("http://")||t.startsWith("https://")?{url:t}:{fileId:t}}const To=i.defineComponent({name:"FXAttachmentFileMessage",props:{content:{type:Object,required:!0}},setup(e){const t=i.computed(()=>f2(e.content.media)),n=i.computed(()=>mn(h2(e.content.media)));async function r(u){u.preventDefault(),u.stopPropagation();const o=n.value;o&&await Mr(o,e.content.name)}return()=>{const u=!!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"},[d2(e.content.size)])])])]),u?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])}}});To.install=e=>{e.component(To.name,To)};const m2={0:"高",1:"中",2:"低"},Io=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"},[m2[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])}}});Io.install=e=>{e.component(Io.name,Io)};function p2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Wl=".f-chat-content-input-section";function g2(e,t){const n=(t??"").trim();return n||`Agent请求使用【${e.trim()||"该系统"}】凭证访问该系统,是否授权?`}const Tr=i.defineComponent({name:"FXCredentialAuthDialog",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"凭证授权请求"},question:{type:String,default:""},systemName:{type:String,default:""},disabled:{type:Boolean,default:!1},onSelect:{type:Function,required:!0},onClose:{type:Function,default:void 0},teleportTo:{type:[String,Object],default:Wl}},setup(e){const t=i.computed(()=>g2(e.systemName,e.question));function n(u){e.disabled||e.onSelect(u)}const r=i.computed(()=>e.teleportTo??Wl);return()=>{if(!e.visible)return null;const u=i.createVNode("div",{class:"f-credential-auth-anchor f-credential-auth-anchor--overlay-input",role:"dialog","aria-modal":"true","aria-labelledby":"f-credential-auth-title"},[i.createVNode("div",{class:"f-credential-auth-dialog"},[i.createVNode("div",{id:"f-credential-auth-title",class:"f-credential-auth-dialog__title"},[e.title]),i.createVNode("div",{class:"f-credential-auth-dialog__body"},[t.value]),i.createVNode("div",{class:"f-credential-auth-dialog__actions"},[i.createVNode("button",{type:"button",class:"f-credential-auth-dialog__btn f-credential-auth-dialog__btn--primary","data-testid":"auth-per-access",disabled:e.disabled,onClick:()=>n("PER_ACCESS_YES")},[i.createTextVNode("临时授权一次")]),i.createVNode("button",{type:"button",class:"f-credential-auth-dialog__btn f-credential-auth-dialog__btn--outline","data-testid":"auth-session",disabled:e.disabled,onClick:()=>n("SESSION_YES")},[i.createTextVNode("授权整个会话")]),i.createVNode("button",{type:"button",class:"f-credential-auth-dialog__btn f-credential-auth-dialog__btn--outline","data-testid":"auth-no",disabled:e.disabled,onClick:()=>n("NO")},[i.createTextVNode("拒绝")])])])]);return r.value?i.createVNode(i.Teleport,{to:r.value},p2(u)?u:{default:()=>[u]}):u}}});Tr.install=e=>{e.component(Tr.name,Tr)};function b2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Vt="__hitl_other__";function ii(e,t=120){return e?e.length>t?e.slice(0,t)+"...":e:""}function Yt(e){const t=e??"text";return t==="text"||t==="select"||t==="multi_select"||t==="confirm"||t==="form"||t==="date"||t==="number"||t==="authorize"?t:"text"}function Gl(e){return e==="PER_ACCESS_YES"?"是(本次授权)":e==="SESSION_YES"?"是,当前会话后续不再询问":e==="NO"?"否":String(e??"")}const Oo=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},onSubmitAuthAnswer:{type:Function,default:void 0}},setup(e){const t=i.ref(!1),n=i.ref(0),r=i.ref({}),u=i.ref({}),o=i.computed(()=>t.value||e.disabled),a=i.computed(()=>{var C;return e.content.questions.length===1&&Yt((C=e.content.questions[0])==null?void 0:C.ui_type)==="authorize"&&!!e.content.credentialAuth}),s=i.ref(!1);i.watch(()=>[a.value,t.value,e.disabled],([C,E,D])=>{s.value=C&&!E&&!D},{immediate:!0});function l(C){var D;const E=e.content.questions[0];E&&(r.value={[E.id]:C},t.value=!0,s.value=!1,(D=e.onSubmitAuthAnswer)==null||D.call(e,{questionId:E.id,answer:C}))}function d(C){const E={},D={};for(const O of C){const P=Yt(O.ui_type);if(P==="confirm")E[O.id]=void 0;else if(P==="authorize")E[O.id]=void 0;else if(P==="text"||P==="select")E[O.id]=O.default_value??"";else if(P==="multi_select")E[O.id]=O.default_value?JSON.parse(O.default_value):[];else if(P==="form"){const U={};if(Array.isArray(O.fields))for(const L of O.fields)U[L.name]=L.default_value??"";E[O.id]=U}else E[O.id]=O.default_value??"";D[O.id]={active:!1,text:""}}r.value=E,u.value=D,n.value=0}i.watch(()=>e.content.questions,C=>{Array.isArray(C)&&C.length&&d(C)},{immediate:!0}),i.watch(()=>e.content.answers,C=>{if(!Array.isArray(C)||C.length===0)return;const E={...r.value},D={...u.value};for(const O of C){E[O.id]=O.answer;const P=e.content.questions.find(U=>U.id===O.id);P&&Yt(P.ui_type)==="select"&&typeof O.answer=="string"&&!(P.options??[]).some(R=>R.label===O.answer)&&O.answer!==""&&(D[O.id]={active:!0,text:O.answer},E[O.id]=Vt)}r.value=E,u.value=D,t.value=!0},{immediate:!0});const f=i.computed(()=>e.content.questions.length),c=i.computed(()=>{const C=e.content.questions;if(C.length===0)return null;const E=Math.max(0,Math.min(n.value,C.length-1));return C[E]}),h=i.computed(()=>n.value<=0),p=i.computed(()=>n.value>=f.value-1),m=i.computed(()=>{const C=c.value;return C?y(C):!0});function x(){e.required&&!m.value||p.value||(n.value+=1)}function v(){h.value||(n.value-=1)}function y(C){var O,P;const E=Yt(C.ui_type),D=r.value[C.id];if(E==="text"&&(typeof D!="string"||D.trim()==="")||E==="select"&&(typeof D!="string"||D.trim()===""||D===Vt&&(((P=(O=u.value[C.id])==null?void 0:O.text)==null?void 0:P.trim())??"")==="")||E==="confirm"&&typeof D!="boolean"||E==="multi_select"&&(!Array.isArray(D)||D.length===0))return!1;if(E==="form"){const U=C.fields??[],L=D;for(const R of U)if(R.required){const M=L[R.name];if(typeof M!="string"||M.trim()==="")return!1}}return!((E==="date"||E==="number")&&(typeof D!="string"||D.trim()===""))}const b=i.computed(()=>o.value?!1:e.content.questions.every(C=>y(C)));function g(C,E){r.value={...r.value,[C]:E}}function w(C,E,D){const O=r.value[C]??{};g(C,{...O,[E]:D})}function k(C){const E=Yt(C.ui_type);return E==="select"||E==="multi_select"}function N(C,E){var D;E===Vt?(u.value={...u.value,[C.id]:{...u.value[C.id],active:!0,text:((D=u.value[C.id])==null?void 0:D.text)??""}},g(C.id,Vt)):(u.value={...u.value,[C.id]:{active:!1,text:""}},g(C.id,E))}function F(C,E){const D=r.value[C.id]??[];D.includes(E)?g(C.id,D.filter(O=>O!==E)):g(C.id,[...D,E])}function S(){var E,D,O;if(!b.value)return;const C=[];for(const P of e.content.questions){const U=Yt(P.ui_type);let L=r.value[P.id];U==="select"&&L===Vt&&(L=((D=(E=u.value[P.id])==null?void 0:E.text)==null?void 0:D.trim())??""),U==="number"&&(L=Number(L)),C.push({id:P.id,answer:L})}t.value=!0,(O=e.onSubmitAnswers)==null||O.call(e,C)}function q(C,E,D){return i.createVNode("div",{class:"f-hitl-date-wrap"},[i.createVNode("input",{class:"f-hitl-input",type:"date",value:C,disabled:E,onInput:O=>D(O.target.value)},null)])}function H(C,E,D,O,P){const U=M=>{let Q=Number(C)||0;Q+=M,O!==void 0&&(Q=Math.max(O,Q)),P!==void 0&&(Q=Math.min(P,Q)),D(String(Q))},L=P!==void 0&&Number(C||0)>=P,R=O!==void 0&&Number(C||0)<=O;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:O,max:P,disabled:E,onInput:M=>D(M.target.value)},null),i.createVNode("div",{class:"f-hitl-num-btns"},[i.createVNode("button",{type:"button",class:"f-hitl-num-btn",disabled:E||L,onClick:()=>U(1)},[i.createVNode("span",{class:"fx-icon fx-icon-foldup"},null)]),i.createVNode("button",{type:"button",class:"f-hitl-num-btn",disabled:E||R,onClick:()=>U(-1)},[i.createVNode("span",{class:"fx-icon fx-icon-expanddown"},null)])])])}function z(C,E,D,O){return i.createVNode("div",{key:C.label,class:["f-hitl-opt-row",{"f-hitl-opt-row--active":D}],onClick:O},[i.createVNode("span",{class:"f-hitl-opt-row__index"},[E+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",title:C.description},[ii(C.description)]):null]),i.createVNode("span",{class:"f-hitl-opt-row__check"},[D?i.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])])}function $(C,E){return i.createVNode("div",{class:"f-hitl-form-item",key:C.name},[i.createVNode("div",{class:"f-hitl-form-item__label"},[C.label]),E])}function I(C,E,D){const O=r.value[C.id]??"",P=r.value[C.id]??[],U=u.value[C.id]??{active:!1,text:""},L=D==="single",R=L&&O===Vt||U.active,M=C.allow_other&&R,Q=le=>L?O===le.label&&!U.active:P.includes(le.label),re=le=>()=>{o.value||(L?N(C,le.label):F(C,le.label))},oe=()=>{if(!o.value)if(L)N(C,Vt);else{const le=U.text;U.active?(g(C.id,P.filter(he=>he!==le)),u.value={...u.value,[C.id]:{active:!1,text:""}}):(u.value={...u.value,[C.id]:{active:!0,text:U.text}},U.text&&!P.includes(U.text)&&g(C.id,[...P,U.text]))}},ce=le=>{const he=le.target.value;u.value={...u.value,[C.id]:{active:!0,text:he}},L?g(C.id,Vt):g(C.id,[...P.filter(Be=>Be!==U.text),he])};return i.createVNode("div",{key:C.id},[i.createVNode("div",{class:"f-hitl-option-list"},[E.map((le,he)=>z(le,he,Q(le),re(le))),C.allow_other?i.createVNode("div",{class:["f-hitl-opt-row f-hitl-opt-row--other",{"f-hitl-opt-row--active":R}],onClick:oe},[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"},[R?i.createVNode("span",{class:"fx-icon fx-icon-sender_choose",style:"font-size: 20px;"},null):null])]):null]),M?i.createVNode("input",{class:"f-hitl-input f-hitl-input--other",type:"text",value:U.text,placeholder:"请输入自定义内容",disabled:o.value,onInput:ce},null):null])}function G(C){const E=r.value[C.id]??{},D=C.fields??[];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("div",{class:"f-hitl-form-group"},[D.map(O=>{const P=E[O.name]??"";return O.type==="select"?$(O,i.createVNode("div",{class:"f-hitl-select-group"},[(O.options??[]).map(U=>{const L=typeof U=="string"?U:U.label??"";return i.createVNode("button",{key:L,type:"button",class:["f-hitl-opt",{"f-hitl-opt--active":P===L}],disabled:o.value,onClick:()=>w(C.id,O.name,L)},[L])})])):O.type==="number"?$(O,H(P,o.value,U=>w(C.id,O.name,U),O.min,O.max)):O.type==="date"?$(O,q(P,o.value,U=>w(C.id,O.name,U))):$(O,i.createVNode("input",{class:"f-hitl-input",type:"text",value:P,placeholder:O.default_value??"请输入",disabled:o.value,onInput:U=>w(C.id,O.name,U.target.value)},null))})])])}function X(C){const E=Yt(C.ui_type);if(E==="text"){const D=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:D,placeholder:C.placeholder??"请输入",disabled:o.value,onInput:O=>g(C.id,O.target.value)},null)])}if(E==="multi_select"){const D=Array.isArray(C.options)?C.options:[];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[I(C,D,"multi")])}if(E==="form")return G(C);if(E==="select"){let D=Array.isArray(C.options)?C.options:[];return D.length===0&&(D=[{label:"暂无"}]),i.createVNode("div",{class:"f-hitl-field",key:C.id},[I(C,D,"single")])}if(E==="confirm"){const D=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":D===!0}],disabled:o.value,onClick:()=>g(C.id,!0)},[i.createTextVNode("是")]),i.createVNode("button",{type:"button",class:["f-hitl-cbtn",{"f-hitl-cbtn--primary":D===!1}],disabled:o.value,onClick:()=>g(C.id,!1)},[i.createTextVNode("否")])])])}if(E==="authorize")return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("span",{class:"f-hitl-submitted-value"},[Gl(r.value[C.id])])]);if(E==="date"){const D=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[q(D,o.value,O=>g(C.id,O))])}if(E==="number"){const D=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[H(D,o.value,O=>g(C.id,O),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 T(C){const E=Yt(C.ui_type),D=(P,U,L)=>i.createVNode("input",{class:"f-hitl-input",type:P,value:U,readonly:!0,min:L==null?void 0:L.min,max:L==null?void 0:L.max},null);if(E==="text"){const P=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[D("text",P)])}if(E==="multi_select"){const P=r.value[C.id]??[],U=Array.isArray(C.options)?C.options:[],L=new Set(U.map(M=>M.label)),R=P.filter(M=>!L.has(M));return i.createVNode("div",{key:C.id},[i.createVNode("div",{class:"f-hitl-option-list"},[U.filter(M=>P.includes(M.label)).map(M=>i.createVNode("div",{class:"f-hitl-opt-row",key:M.label},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[M.label]),M.description?i.createVNode("span",{class:"f-hitl-opt-row__desc",title:M.description},[ii(M.description)]):null])])),R.map(M=>i.createVNode("div",{class:"f-hitl-opt-row",key:M},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[M])])]))])])}if(E==="select"){const P=r.value[C.id]??"",U=u.value[C.id]??{active:!1,text:""},L=Array.isArray(C.options)?C.options:[],R=P===Vt||U.active;return i.createVNode("div",{key:C.id},[i.createVNode("div",{class:"f-hitl-option-list"},[R?i.createVNode("div",{class:"f-hitl-opt-row"},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[U.text||"其他"])])]):L.filter(M=>M.label===P).map(M=>i.createVNode("div",{class:"f-hitl-opt-row",key:M.label},[i.createVNode("div",{class:"f-hitl-opt-row__label"},[i.createVNode("span",null,[M.label]),M.description?i.createVNode("span",{class:"f-hitl-opt-row__desc",title:M.description},[ii(M.description)]):null])]))])])}if(E==="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--readonly"]},[P===!0?"是":"否"])])])}if(E==="authorize")return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("span",{class:"f-hitl-submitted-value"},[Gl(r.value[C.id])])]);if(E==="form"){const P=r.value[C.id]??{},U=C.fields??[];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("div",{class:"f-hitl-form-group"},[U.map(L=>{const R=P[L.name]??"";let M;return L.type==="number"?M=D("number",R,{min:L.min,max:L.max}):L.type==="date"?M=D("date",R):M=D("text",R),$(L,M)})])])}if(E==="date"){const P=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[D("date",P)])}if(E==="number"){const P=r.value[C.id]??"";return i.createVNode("div",{class:"f-hitl-field",key:C.id},[D("number",P)])}const O=r.value[C.id];return i.createVNode("div",{class:"f-hitl-field",key:C.id},[i.createVNode("span",{class:"f-hitl-submitted-value"},[String(O??"")])])}function j(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 B(){return f.value<=1?null:i.createVNode("div",{class:"f-hitl-pagination"},[i.createVNode("button",{type:"button",class:"f-hitl-pagination__btn",disabled:h.value,onClick:v},[i.createVNode("span",{class:"fx-icon fx-icon-arrow-left"},null)]),i.createVNode("span",{class:"f-hitl-pagination__text"},[n.value+1,i.createTextVNode("/"),f.value]),i.createVNode("button",{type:"button",class:"f-hitl-pagination__btn",disabled:p.value,onClick:x},[i.createVNode("span",{class:"fx-icon fx-icon-arrow-right"},null)])])}function Z(){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(E=>i.createVNode("div",{class:"f-hitl-submitted-item",key:E.id},[i.createVNode("div",{class:"f-hitl-card__header"},[j(E)]),i.createVNode("div",{class:["f-hitl-card__body",{"f-hitl-card__body--option":k(E)}]},[T(E)])]))])])}function ue(){const C=c.value;if(!C)return null;const E=e.pinned?"f-hitl-card--pinned":"",D=e.pinned&&e.pinnedWidth?{width:e.pinnedWidth}:void 0,O=e.pinnedInputHeight??0,P=e.pinnedBottom??36,U=()=>i.createVNode(i.Fragment,null,[i.createVNode("div",{class:"f-hitl-card__header"},[j(C),B()]),i.createVNode("div",{class:["f-hitl-card__body",{"f-hitl-card__body--option":k(C)}]},[X(C)]),!o.value&&i.createVNode("div",{class:"f-hitl-card__footer"},[f.value>1&&!p.value&&i.createVNode("button",{type:"button",class:"f-hitl-btn",disabled:e.required&&!m.value,onClick:x},[i.createTextVNode("下一条")]),p.value&&i.createVNode("button",{type:"button",class:"f-hitl-btn",disabled:!b.value,onClick:S},[i.createTextVNode("提交")])])]);if(e.pinned){const L=i.createVNode("div",{class:"f-hitl-pinned-spacer","aria-hidden":"true"},[i.createVNode("div",{class:"f-hitl-card",style:{...D,marginBottom:`-${O}px`}},[U()])]);if(e.teleportTo){const M={...D,bottom:`${P}px`},Q=i.createVNode("div",{class:["f-hitl-card",E],style:M},[U()]);return i.createVNode(i.Fragment,null,[L,i.createVNode(i.Teleport,{to:e.teleportTo},b2(Q)?Q:{default:()=>[Q]})])}const R=i.createVNode("div",{class:["f-hitl-card",E],style:D},[U()]);return i.createVNode(i.Fragment,null,[L,R])}return i.createVNode("div",{class:["f-hitl-card",E],style:D},[U()])}return()=>{var C;if(a.value){const E=e.content.questions[0];return E?i.createVNode(i.Fragment,null,[i.createVNode(Tr,{visible:s.value,title:E.header??"凭证授权请求",question:E.question,systemName:((C=e.content.credentialAuth)==null?void 0:C.systemName)??"",disabled:o.value,teleportTo:".f-chat-content-input-section",onSelect:l},null)]):null}return o.value?Z():ue()}}});Oo.install=e=>{e.component(Oo.name,Oo)};function y2(e,t){var r;const n=(r=e.pickActions)==null?void 0:r[t];return n||e.pickActionDefault}const Lo=i.defineComponent({name:"InputRecommendMessage",props:{content:{type:Object,required:!0},onPick:{type:Function,default:void 0}},setup(e){const t=(n,r)=>{var u;y2(e.content,r),(u=e.onPick)==null||u.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]))])])}});Lo.install=e=>{e.component(Lo.name,Lo)};const Vo=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])])}}});Vo.install=e=>{e.component(Vo.name,Vo)};const Po=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])]))])])}});Po.install=e=>{e.component(Po.name,Po)};const Ro=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??"客户端无法识别此消息类型,已按占位展示。"])])}});Ro.install=e=>{e.component(Ro.name,Ro)},sr.install=e=>{e.component(sr.name,sr)};const w2={install(e){e.use(lt).use(lr).use(cr).use(hr).use(pr).use(wr).use(xr).use(vr).use(Ar).use(xn).use(an).use(Dn).use(rn).use(kr).use(Cr).use(_r).use(Er).use(Sr).use(Cn).use(_n).use(nn).use(Sn).use(Fr).use(Nr).use(Dr)}};V.FXAgentThinking=Do,V.FXAppPreview=lt,V.FXAttachmentFile=To,V.FXAttachmentPreview=Sr,V.FXBubble=lr,V.FXBubbleAction=Ru,V.FXCarousel=cr,V.FXCarouselItem=go,V.FXChatPreview=hr,V.FXCoding=wr,V.FXConfirmDialog=pr,V.FXCredentialAuthDialog=Tr,V.FXDynamicComponent=_n,V.FXErrorReminder=Io,V.FXFileEmbeddedContent=Ti,V.FXFileOperation=xr,V.FXGenerateProcess=vr,V.FXHistory=Ar,V.FXHitlQuestion=Oo,V.FXInputRecommend=Lo,V.FXLinkCard=Vo,V.FXListView=Dr,V.FXMarkdown=xn,V.FXMarkdownPreview=an,V.FXNav=Fr,V.FXPopover=nn,V.FXPopoverDirective=ws,V.FXPrompt=Fo,V.FXPrompts=Dn,V.FXReferenceSources=Po,V.FXSearchBox=Nr,V.FXSearchBoxContainer=No,V.FXSplitter=Sn,V.FXSplitterPane=dr,V.FXStartedTodo=rn,V.FXSuggestion=kr,V.FXTodo=Cr,V.FXTodoListItemView=po,V.FXTodoListView=ar,V.FXToolUse=En,V.FXToolUseBatch=_r,V.FXUnknownEnterprise=Ro,V.FXUserAuth=sr,V.FXWelcome=Er,V.FXWidgetContainer=Cn,V.PREVIEW_BRIDGE_MESSAGE_TYPE_ASSISTANT=ni,V.PREVIEW_BRIDGE_SOURCE=ei,V.PREVIEW_BRIDGE_VERSION=ti,V.agentThinkingProps=Ul,V.appPreviewMessageProps=ve,V.attachmentPreviewProps=Bl,V.bubbleActionProps=ks,V.bubbleProps=Rr,V.carouselItemProps=_s,V.carouselProps=Cs,V.chatHistoryProps=Il,V.chatPreviewProps=Ss,V.clonePreviewPayloadForPostMessage=dl,V.codingMessageProps=Fl,V.confirmDialogProps=bl,V.createPreviewIframeSdk=t1,V.default=w2,V.extractFileIdFromRuntimeDownloadUrl=xi,V.fileEmbeddedContentProps=Fi,V.fileOperationMessageProps=Dl,V.generateProcessProps=Tl,V.getCustomClass=Ae,V.getCustomStyle=Ee,V.getDynamicCompState=Kh,V.getDynamicComponentRegistryDebugSnapshot=Lu,V.invokeAgentWorkbenchSdkApi=e1,V.isImageUrl=ki,V.isPreviewBridgeAssistantMessage=hl,V.listViewProps=ui,V.loadDynamicComponent=hs,V.markdownMessageProps=ja,V.markdownPreviewProps=Fs,V.navProps=jl,V.normalizeDynamicComponentRegisterClaim=Te,V.overflowTooltipDirective=Si,V.peekDynamicComponentRegisterBootstrapId=qh,V.popoverProps=gs,V.postAssistantToPreviewIframe=ml,V.postDynamicComponentAssistantMessage=em,V.previewLayoutBridge=o1,V.promptProps=Vl,V.promptsProps=Ol,V.registerPreviewChromeSdk=r1,V.renderIconNode=Br,V.renderNode=Hn,V.resolveHrefForAttachmentDownload=mn,V.resolveRuntimeAttachmentDownloadUrl=Go,V.searchBoxContainerProps=$l,V.searchBoxProps=Hl,V.splitterProps=Es,V.startedTodoProps=xs,V.subscribeAssistantInPreviewIframe=pl,V.suggestionProps=Pl,V.todoListItemProps=As,V.todoListViewProps=vs,V.todoProps=Rl,V.triggerAttachmentDownload=Mr,V.unloadDynamicComponent=ms,V.useAttachment=Ni,V.useSequentialStreaming=zr,V.useStreamingOutput=Ci,V.useTimer=Xo,V.useToolIcon=qo,V.welcomeProps=Ml,V.widgetContainerProps=as,Object.defineProperties(V,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|