@rongcloud/im-kit 5.40.0 → 5.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +187 -20
- package/dist/index.esm.js +8070 -7600
- package/dist/index.umd.js +152 -143
- package/package.json +3 -3
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Uv=Object.defineProperty;var Nv=(be,j,f)=>j in be?Uv(be,j,{enumerable:!0,configurable:!0,writable:!0,value:f}):be[j]=f;var q=(be,j,f)=>(Nv(be,typeof j!="symbol"?j+"":j,f),f),wc=(be,j,f)=>{if(!j.has(be))throw TypeError("Cannot "+f)};var yn=(be,j,f)=>(wc(be,j,"read from private field"),f?f.call(be):j.get(be)),Ji=(be,j,f)=>{if(j.has(be))throw TypeError("Cannot add the same private member more than once");j instanceof WeakSet?j.add(be):j.set(be,f)},tr=(be,j,f,it)=>(wc(be,j,"write to private field"),it?it.call(be,f):j.set(be,f),f);var Yh=(be,j,f)=>(wc(be,j,"access private method"),f);(function(be,j){typeof exports=="object"&&typeof module<"u"?j(exports,require("@rongcloud/engine"),require("@rongcloud/imlib-next")):typeof define=="function"&&define.amd?define(["exports","@rongcloud/engine","@rongcloud/imlib-next"],j):(be=typeof globalThis<"u"?globalThis:be||self,j(be.RongIMKit={},be.RCEngine,be.RongIMLib))})(this,function(be,j,f){var Zo,gi,_i,Yo,Ta,Jh;"use strict";var it=(e=>(e[e.LOADING=0]="LOADING",e[e.DELETED=f.QuoteMessageStatus.DELETED]="DELETED",e[e.RECALLED=f.QuoteMessageStatus.RECALLED]="RECALLED",e[e.LOAD_ERROR=4]="LOAD_ERROR",e[e.LOADED=5]="LOADED",e))(it||{});const wa=e=>{let t;if(typeof e=="object"&&e!==null)if(Array.isArray(e)){t=[];for(let s in e)t.push(wa(e[s]))}else{t={};for(let s in e)t[s]=wa(e[s])}else t=e;return t},Xh=e=>{let t;try{t=wa(e)}catch{t=JSON.parse(JSON.stringify(e))}return t},Ma=e=>JSON.parse(JSON.stringify(e));function Mc(e){let t=!1;const s=()=>e instanceof HTMLElement?e:e.value||null,n=a=>{a.preventDefault(),a.stopPropagation()},i=a=>{["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"," "].includes(a.key)&&(a.preventDefault(),a.stopPropagation())};return{disableScroll:()=>{if(t)return;t=!0;const a=s();a&&(a.addEventListener("wheel",n,{passive:!1}),a.addEventListener("touchmove",n,{passive:!1}),a.addEventListener("keydown",i,{passive:!1}))},enableScroll:()=>{if(!t)return;t=!1;const a=s();a&&(a.removeEventListener("wheel",n),a.removeEventListener("touchmove",n),a.removeEventListener("keydown",i))},get isScrollDisabled(){return t}}}function $n(e){if(e==null)return"#000000";if(typeof e=="string"){const t=e.trim();return t.startsWith("#")?t.toLowerCase():`#${t.toLowerCase()}`}return`#${e.toString(16).padStart(6,"0")}`}const e2=[f.ConversationType.PRIVATE,f.ConversationType.GROUP,f.ConversationType.SYSTEM],Hn=e=>{if(!e)return!0;const{targetId:t,conversationType:s,channelId:n}=e;return!t||typeof t!="string"||e2.indexOf(s)===-1||!!n&&typeof n!="string"},vt=(e,t)=>e.targetId===t.targetId&&e.conversationType===t.conversationType&&e.channelId===t.channelId,Ct=e=>`[${e.targetId}][${e.conversationType}][${e.channelId||""}]`,Oc=e=>e.conversationType===f.ConversationType.PRIVATE||e.conversationType===f.ConversationType.GROUP,t2=function(e,t,s){const n=e<t,i=n?t/e:e/t;let o,r=0,a=0,l,c;const u=function(){return n?(o=e/100,l=100,c=t/o,a=(c-s.maxHeight)/2):(o=t/100,c=100,l=e/o,r=(l-s.maxWidth)/2),{w:l,h:c,x:-r,y:-a}},d=function(){return n?(o=t/s.maxHeight,c=s.maxHeight,l=e/o):(o=e/s.maxWidth,l=s.maxWidth,c=t/o),{w:l,h:c,x:-r,y:-a}};return i>s.scale?u():d()},bc=e=>{const t=document.createElement("canvas"),s=t.getContext("2d"),n=160,i=160,o=2.4,r=t2(e.width,e.height,{maxHeight:n,maxWidth:i,scale:o});t.width=Math.min(r.w,i),t.height=Math.min(r.h,n),s.drawImage(e,r.x,r.y,r.w,r.h);let a=t.toDataURL("image/png",.5);const l=/data:image\/[^;]+;base64,/;return a=a.replace(l,""),a},mi=e=>{e||(e=Date.now());const t=new Date(e),s=`${t.getFullYear()}`,n=`${t.getMonth()+1}`,i=`${t.getDate()}`,o=t.getDay();let r=`${t.getHours()}`;r.length<2&&(r=`0${r}`);let a=`${t.getMinutes()}`;return a.length<2&&(a=`0${a}`),{year:s,month:n,day:i,hour:r,minute:a,weekDay:o}},s2=e=>{const t=Math.floor(e/60),s=Math.floor(t/60),n=Math.floor(s/24);return e<60?`0:${e.toString().padStart(2,"0")}`:(e=Math.floor(e),`${n>0?`${n}d `:""}${s>0?`${(s%24).toString().padStart(2,"0").trim()}:`:""}${t>0?`${(t%60).toString().padStart(2,"0")}:`:""}${(e%60).toString().padStart(2,"0")}`.trim())},n2=e=>e<1024?e+" B":e<1024*1024?(e/1024).toFixed(2)+" KB":e<1024*1024*1024?(e/(1024*1024)).toFixed(2)+" MB":e<1024*1024*1024*1024?(e/(1024*1024*1024)).toFixed(2)+" GB":(e/(1024*1024*1024*1024)).toFixed(2)+" TB",i2=(e,t=40,s=8)=>{if(!e||e.length<=t)return e;const n=t-s-3;return n<=0?e:`${e.slice(0,n)}...${e.slice(-s)}`},o2=e=>new Promise(t=>{const s=document.createElement("video");let n=!1;const i=d=>{n||(n=!0,t(d))},o=()=>{s.pause(),s.src="",s.removeAttribute("src"),s.load()},r=URL.createObjectURL(e);let a=!1;const l=()=>{o(),URL.revokeObjectURL(r)},c=()=>{if(n)return;const{duration:d,videoHeight:h,videoWidth:p}=s;if(d>120){l(),i(null);return}if(!p||!h){l(),i(null);return}s.width=p,s.height=h;const _=bc(s);l(),i(new f.SightMessage({name:e.name,size:e.size,duration:d,content:_,sightUrl:""}))},u=()=>{if(a)return;a=!0;const d=s;typeof d.requestVideoFrameCallback=="function"?d.requestVideoFrameCallback(()=>c()):requestAnimationFrame(()=>requestAnimationFrame(c))};s.onloadeddata=()=>{u()},s.onerror=()=>{l(),i(null)},s.playsInline=!0,s.muted=!0,s.preload="auto",s.src=r,s.play()}),r2=e=>new Promise(t=>{const s=new Image,n=URL.createObjectURL(e);s.onload=()=>t(new f.GIFMessage({gifDataSize:e.size,remoteUrl:n,width:s.width,height:s.height})),s.onerror=i=>{URL.revokeObjectURL(n),t(null)},s.src=n}),a2=e=>new Promise(t=>{const s=new Image,n=URL.createObjectURL(e);s.onload=()=>{const i=bc(s);t(new f.ImageMessage({content:i,imageUri:n}))},s.onerror=()=>{t(null),URL.revokeObjectURL(n)},s.src=n}),l2=async e=>{let t=null;switch(e.type){case"video/mp4":t=await o2(e);break;case"image/gif":e.size<2*1024*1024&&(t=await r2(e));break;case"image/jpeg":case"image/jpg":case"image/png":e.size<100*1024*1024&&(t=await a2(e));break}return t||new f.FileMessage({name:e.name,size:e.size,type:e.type,fileUrl:""})},c2=e=>e?/data:image\/[^;]+;base64,/.test(e)?e:`data:image/png;base64,${e}`:void 0,Lc=e=>{const t=e.quoteMessageStatus===f.QuoteMessageStatus.DELETED||e.quoteMessageStatus===f.QuoteMessageStatus.RECALLED?e.quoteMessageStatus:it.LOADING;return{...e,status:t}},Ac=(e,t,s)=>{const{objName:n,referMsgUid:i,referMsgUserId:o,referMsgStatus:r,referMsg:a}=e;let l,c;switch(r){case f.ReferenceMessageStatus.DELETE:l=f.QuoteMessageStatus.DELETED,c=it.DELETED;break;case f.ReferenceMessageStatus.RECALLED:l=f.QuoteMessageStatus.RECALLED,c=it.RECALLED;break;default:l=f.QuoteMessageStatus.DELETED,c=it.LOADED;break}let u;return c===it.LOADED&&(u={...t,senderUserId:o,content:a,messageType:n,messageUId:i,messageDirection:s}),{objectName:n,senderId:o,messageUId:i,quoteMessageStatus:l,status:c,quoteMessage:u}},Ei=e=>{const{quoteInfo:t,content:s,messageDirection:n,senderUserId:i,...o}=e,r={...o,content:s,messageDirection:n,senderUserId:i,transactionId:NaN,progress:100};if(r.messageType===f.MessageType.REFERENCE){const{referMsgUserId:a}=s,l=i===a?n:2-(n-1);r.quoteInfo=Ac(s,e,l)}else t&&(r.quoteInfo=Lc(t));return r},u2=e=>{const t="(?:(?:25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d|\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d|\\d)",s="(?!@)(?:[a-z0-9-@_]{1,36}\\.)+[a-z]{2,6}",n="(?:\\:\\d{1,5})?",i="(?:localhost)",o="(?:(?:/[a-zA-Z0-9.,;?\\'+&%$#=~_\\-!()*\\|\\/]*)?)",r=new RegExp("(((https?)://(?:("+t+")|("+s+")|"+i+")"+n+o+"))","ig"),a=e.match(r),l=new RegExp("([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+.[a-zA-Z0-9_-]+)","ig"),c=e.match(l),u=[];if(a==null||a.forEach(_=>{u.push({type:"url",val:_,index:e.indexOf(_,0)})}),c==null||c.forEach(_=>{u.push({type:"mail",val:_,index:e.indexOf(_,0)})}),u.length<=0)return{type:0,content:[{content:e,type:"text"}],position:[]};const d=[];let h=0;const p=[];return u.sort((_,m)=>_.index-m.index),u.forEach(_=>{const m=e.indexOf(_.val,h);m>h&&d.push({content:e.substring(h,m),type:"text"}),d.push({content:_.val,type:_.type}),p.push(d.length),h=m+_.val.length}),h<e.length&&d.push({content:e.substring(h),type:"text"}),{type:1,content:d,position:p}};function Sn(e,t){let s=e.length;for(let n=s-1;n>-1;n--)if(t(e[n]))return n;return-1}const _s=()=>typeof window<"u"&&window.innerWidth<=768;class ne{constructor(t,s){q(this,"_resolve",!1);q(this,"_promise");q(this,"_stopped",!1);q(this,"_defaultPrevented",!1);q(this,"data");this.type=t,this.data=s}isImmediatePropagationStopped(){return this._stopped}stopImmediatePropagation(){this._stopped=!0}isDefaultPrevented(){return this._defaultPrevented}preventDefault(){this._defaultPrevented=!0}sendResult(t){if(typeof this._resolve=="function"){this._resolve(t),this._resolve=!0;return}const s=this._resolve?"Cannot resubmit.":"There is no transaction waiting event result.";console.error(s,"event type:",this.type)}async awaitResult(){return this._promise||(this._promise=new Promise(t=>{this._resolve=t})),this._promise}clone(t){const s=new ne(this.type,Xh(this.data));return s.sendResult=this.sendResult.bind(this),s}}var Tn=(e=>(e[e.CANCEL=0]="CANCEL",e[e.CONFIRM=1]="CONFIRM",e))(Tn||{});class Xi extends ne{constructor(t,s){super("CONNECTION_STATUS_CHANGE",{status:t,code:s})}}var Gn=(e=>(e.SINGLE="single",e.MERGE="merge",e))(Gn||{}),Z=(e=>(e.USER_PROFILES_UPDATE="USER_PROFILES_UPDATE",e.GROUP_PROFILES_UPDATE="GROUP_PROFILES_UPDATE",e.GROUP_MEMBERS_UPDATE="GROUP_MEMBERS_UPDATE",e.INIT_USER_CACHE="INIT_USER_CACHE",e.DESTROY_USER_CACHE="DESTROY_USER_CACHE",e.SYSTEM_PROFILES_UPDATE="SYSTEM_PROFILES_UPDATE",e.CONVERSATION_ITEM_CHANGE="CONVERSATION_ITEM_CHANGE",e.CONVERSATION_LIST_RESET="CONVERSATION_LIST_RESET",e.CONVERSATION_ITEM_ORDER_CHANGE="CONVERSATION_ITEM_ORDER_CHANGE",e.CONVERSATIN_ITEM_REMOVE="CONVERSATIN_ITEM_REMOVE",e.MESSAGE_STATE_CHANGE="MESSAGE_STATE_CHANGE",e.INSERT_NEW_MESSAGES="INSERT_NEW_MESSAGES",e.FILE_UPLOAD_PROGRESS="FILE_UPLOAD_PROGRESS",e.LANGUAGE_CHANGE="LANGUAGE_CHANGE",e.AUDIO_PLAY_EVENT="AUDIO_PLAY_EVENT",e.SET_TEXTAREA_VALUE_EVENT="SET_TEXTAREA_VALUE_EVENT",e.ADJUST_MESSAGE_LIST_SCROLL="ADJUST_MESSAGE_LIST_SCROLL",e.SPEECH_TO_TEXT_STATE_CHANGE="SPEECH_TO_TEXT_STATE_CHANGE",e.RECV_NEW_MESSAGES="RECV_NEW_MESSAGES",e.CONNECTION_STATUS_CHANGE="CONNECTION_STATUS_CHANGE",e.CONVERSATION_BAR_SWITCH_CHANGE="CONVERSATION_BAR_SWITCH_CHANGE",e.CONVERSATION_DETAIL_BACK_SWITCH_CHANGE="CONVERSATION_DETAIL_BACK_SWITCH_CHANGE",e.CONVERSATION_BAR_TITLE_CHANGE="CONVERSATION_BAR_TITLE_CHANGE",e.TOAST_EVENT="TOAST_EVENT",e))(Z||{}),ge=(e=>(e.CONFIRM_EVENT="CONFIRM_EVENT",e.ALERT_EVENT="ALERT_EVENT",e.DELETE_MESSAGE_MODAL_EVENT="DELETE_MESSAGE_MODAL_EVENT",e.MEDIA_MESSAGE_MODAL_EVENT="MEDIA_MESSAGE_MODAL_EVENT",e.COMBINE_MESSAGE_MODAL_EVENT="COMBINE_MESSAGE_MODAL_EVENT",e.FORWARDING_EVENT="FORWARDING_EVENT",e.TAKE_PHOTO_MODAL_EVENT="TAKE_PHOTO_MODAL_EVENT",e.UNSCHEDULED_MESSAGES="UNSCHEDULED_MESSAGES",e.CONVERSATION_EXTENSION_CLICK="CONVERSATION_EXTENSION_CLICK",e.BEFORE_SYSTEM_CONVERSATION_OPEN="BEFORE_SYSTEM_CONVERSATION_OPEN",e.CONVERSATION_MENU_ITEM_CLICK="CONVERSATION_MENU_ITEM_CLICK",e.INPUT_MENU_ITEM_CLICK="INPUT_MENU_ITEM_CLICK",e.CONVERSATION_SELECTED="CONVERSATION_SELECTED",e.CONVERSATION_ICON_CLICK="CONVERSATION_ICON_CLICK",e.CONVERSATION_NAVI_CLICK="CONVERSATION_NAVI_CLICK",e.MESSAGE_MENU_ITEM_CLICK="MESSAGE_MENU_ITEM_CLICK",e.MESSAGE_LINK_CLICK="MESSAGE_LINK_CLICK",e.DOWNLOAD_LINK_EVENT="DOWNLOAD_LINK_EVENT",e.FILE_SEND_FAILED_EVENT="FILE_SEND_FAILED_EVENT",e.MESSAGES_DELETED="MESSAGES_DELETED",e.TOAST_EVENT="TOAST_EVENT",e))(ge||{});class xc{constructor(){q(this,"_listeners",new Map)}addEventListener(t,s,n){const i=this._listeners.get(t);i?i.push({target:n,listener:s}):this._listeners.set(t,[{target:n,listener:s}])}onceEventListener(t,s,n){const i=this._listeners.get(t);i?i.push({target:n,listener:s,once:!0}):this._listeners.set(t,[{target:n,listener:s,once:!0}])}removeEventListener(t,s,n){const i=this._listeners.get(t);if(i){const o=i.findIndex(r=>r.listener===s&&r.target===n);o!==-1&&i.splice(o,1)}}removeEventListeners(t){this._listeners.delete(t)}removeAllEventListeners(){this._listeners.clear()}dispatchEvent(t,s=!0){s?setTimeout(()=>this._handleDispatchEvent(t),0):this._handleDispatchEvent(t)}_handleDispatchEvent(t){const s=t,n=this._listeners.get(s.type);if(!(!n||n.length===0))for(const{target:i,once:o,listener:r}of n){if(s.isImmediatePropagationStopped())return;try{r.call(i,s)}catch(a){console.error(a)}o&&this.removeEventListener(s.type,r,i)}}}var Rt=(e=>(e.SHOW_CONNECTION_STATUS="SHOW_CONNECTION_STATUS",e.SHOW_MESSAGE_STATE="SHOW_MESSAGE_STATE",e.FOCUS_ON_LATEST_MESSAGE="FOCUS_ON_LATEST_MESSAGE",e.AT_ALL="AT_ALL",e.SHOW_USER_ONLINE_STATE="SHOW_USER_ONLINE_STATE",e.PROMPT_SENDER_WHEN_QUOTE_MESSAGE="PROMPT_SENDER_WHEN_QUOTE_MESSAGE",e.DELETE_MESSAGES_WHILE_DELETE_CONVERSATION="DELETE_MESSAGES_WHILE_DELETE_CONVERSATION",e.USE_QUOTE_MESSAGE_V2="USE_QUOTE_MESSAGE_V2",e))(Rt||{}),B=(e=>(e.D="L_DEBUG_O",e.A_INIT_O="A_INIT_O",e.A_SET_COMMAND_SWITCH_O="L_SET_COMMAND_SWITCH_O",e.A_REGISTER_CUSTOM_ELEMENT_O="A_REGISTER_CUSTOM_ELEMENT_O",e.L_REGISTER_DOM_ELEMENTS_O="L_REGISTER_DOM_ELEMENTS_O",e.A_REGISTER_MESSAGE_TYPE_O="A_REGISTER_MESSAGE_TYPE_O",e.A_SET_CUSTOM_SERVICE_O="A_SET_CUSTOM_SERVICE_O",e.A_SET_CUSTOM_LANGUAGE_PACK_O="A_SET_CUSTOM_LANGUAGE_PACK_O",e.A_CLONE_LANGUAGE_ENTRIES_O="A_CLONE_LANGUAGE_ENTRIES_O",e.A_REGISTER_LANGUAGE_PACK_O="A_REGISTER_LANGUAGE_PACK_O",e.A_SET_LANGUAGE_O="A_SET_LANGUAGE_O",e.A_READY_O="A_READY_O",e.L_REQ_USER_PROFILE_HOOK_T="L_REQ_USER_PROFILE_HOOK_T",e.L_REQ_USER_PROFILE_HOOK_R="L_REQ_USER_PROFILE_HOOK_R",e.L_REQ_USER_PROFILE_HOOK_E="L_REQ_USER_PROFILE_HOOK_E",e.L_GET_DEFAULT_USER_PROFILE_HOOK_E="L_GET_DEFAULT_USER_PROFILE_HOOK_E",e.L_GET_DEFAULT_USER_PROFILE_HOOK_O="L_GET_DEFAULT_USER_PROFILE_HOOK_O",e.A_UPDATE_USER_PROFILE_E="A_UPDATE_USER_PROFILE_E",e.A_UPDATE_USER_PROFILE_T="A_UPDATE_USER_PROFILE_T",e.A_UPDATE_USER_PROFILE_R="A_UPDATE_USER_PROFILE_R",e.A_UPDATE_USER_ONLINE_STATE_R="A_UPDATE_USER_ONLINE_STATE_R",e.A_UPDATE_USER_ONLINE_STATE_T="A_UPDATE_USER_ONLINE_STATE_T",e.L_GET_DEFAULT_GROUP_PROFILE_HOOK_O="L_GET_DEFAULT_GROUP_PROFILE_HOOK_O",e.L_GET_DEFAULT_GROUP_PROFILE_HOOK_E="L_GET_DEFAULT_GROUP_PROFILE_HOOK_E",e.L_REQ_GROUP_PROFILE_HOOK_T="L_REQ_GROUP_PROFILE_HOOK_T",e.L_REQ_GROUP_PROFILE_HOOK_E="L_REQ_GROUP_PROFILE_HOOK_E",e.L_REQ_GROUP_PROFILE_HOOK_R="L_REQ_GROUP_PROFILE_HOOK_R",e.A_UPDATE_GROUP_PROFILE_T="A_UPDATE_GROUP_PROFILE_T",e.A_UPDATE_GROUP_PROFILE_E="A_UPDATE_GROUP_PROFILE_E",e.A_UPDATE_GROUP_PROFILE_R="A_UPDATE_GROUP_PROFILE_R",e.L_REQ_GROUP_MEMBERS_HOOK_T="L_REQ_GROUP_MEMBERS_HOOK_T",e.L_REQ_GROUP_MEMBERS_HOOK_E="L_REQ_GROUP_MEMBERS_HOOK_E",e.L_REQ_GROUP_MEMBERS_HOOK_R="L_REQ_GROUP_MEMBERS_HOOK_R",e.A_UPDATE_GROUP_MEMBERS_T="A_UPDATE_GROUP_MEMBERS_T",e.A_UPDATE_GROUP_MEMBERS_E="A_UPDATE_GROUP_MEMBERS_E",e.A_UPDATE_GROUP_MEMBERS_R="A_UPDATE_GROUP_MEMBERS_R",e.A_ADD_GROUP_MEMBERS_T="A_ADD_GROUP_MEMBERS_T",e.A_ADD_GROUP_MEMBERS_E="A_ADD_GROUP_MEMBERS_E",e.A_ADD_GROUP_MEMBERS_R="A_ADD_GROUP_MEMBERS_R",e.A_REMOVE_GROUP_MEMBERS_T="A_REMOVE_GROUP_MEMBERS_T",e.A_REMOVE_GROUP_MEMBERS_E="A_REMOVE_GROUP_MEMBERS_E",e.A_REMOVE_GROUP_MEMBERS_R="A_REMOVE_GROUP_MEMBERS_R",e.L_REQ_USER_ONLINE_HOOK_T="L_REQ_USER_ONLINE_HOOK_T",e.L_REQ_USER_ONLINE_HOOK_E="L_REQ_USER_ONLINE_HOOK_E",e.L_REQ_USER_ONLINE_HOOK_R="L_REQ_USER_ONLINE_HOOK_R",e.L_REQ_SYSTEM_PROFILE_HOOK_T="L_REQ_SYSTEM_PROFILE_HOOK_T",e.L_REQ_SYSTEM_PROFILE_HOOK_E="L_REQ_SYSTEM_PROFILE_HOOK_E",e.L_REQ_SYSTEM_PROFILE_HOOK_R="L_REQ_SYSTEM_PROFILE_HOOK_R",e.L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_O="L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_O",e.L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_E="L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_E",e.L_GET_TAGS_FROM_LIB_E="L_GET_TAGS_FROM_LIB_E",e.A_ADD_UNVERIFIED_TAG_O="A_ADD_UNVERIFIED_TAG_O",e.A_ADD_UNVERIFIED_TAG_E="A_ADD_UNVERIFIED_TAG_E",e.A_ADD_TAG_E="A_ADD_TAG_E",e.A_UPDATE_TAG_E="A_UPDATE_TAG_E",e.A_REMOVE_TAG_E="A_REMOVE_TAG_E",e.A_SET_INPUT_MENU_E="A_SET_INPUT_MENU_E",e.A_SET_MESSAGE_BUBBLE_CFG_E="A_SET_MESSAGE_BUBBLE_CFG_E",e.A_SET_CONVERSATION_ITEM_CFG_E="A_SET_CONVERSATION_ITEM_CFG_E",e.A_UPDATE_USER_ONLINE_STATE_E="A_UPDATE_USER_ONLINE_STATE_E",e.A_OPEN_CONVERSATION_E="A_OPEN_CONVERSATION_E",e.A_REMOVE_CONVERSATION_E="A_REMOVE_CONVERSATION_E",e.A_SEND_MESSAGE_E="A_SEND_MESSAGE_E",e.A_INSERT_MESSAGE_E="A_INSERT_MESSAGE_E",e.A_SET_CONVERSATION_EXTENSION_E="A_SET_CONVERSATION_EXTENSION_E",e.L_PUSH_2_QUEUE_O="L_PUSH_2_QUEUE_O",e.L_TASK_QUEUE_EXECUTE_O="L_PICK_ITEM_FROM_QUEUE_O",e.L_SEND_MSG_T="L_SEND_MSG_T",e.L_SEND_MSG_R="L_SEND_MSG_R",e.L_UPLOAD_FILE_T="L_UPLOAD_FILE_T",e.L_UPLOAD_FILE_R="L_UPLOAD_FILE_R",e.L_UPLOAD_FILE_O="L_UPLOAD_FILE_O",e.A_SET_CHAT_EMOJI_LIBRARY_E="A_SET_CHAT_EMOJI_LIBRARY_E",e.L_GET_PUSH_CONFIG_HOOK_E="L_GET_PUSH_CONFIG_HOOK_E",e.L_SET_RECALL_DURATION_E="L_SET_RECALL_DURATION_E",e.L_SEND_READ_RECEIPT_MESSAGEV4_T="L_SEND_READ_RECEIPT_MESSAGEV4_T",e.L_SEND_READ_RECEIPT_MESSAGEV4_R="L_SEND_READ_RECEIPT_MESSAGEV4_R",e.L_PARSE_CONVERSATION_E="L_PARSE_CONVERSATION_E",e.L_GET_CONVERSATION_E="L_GET_CONVERSATION_E",e.L_V5_RECEIPT_RESPONSE_E="L_V5_RECEIPT_RESPONSE_E",e.L_HANDLE_READ_RECEIPT_V5_E="L_HANDLE_READ_RECEIPT_V5_E",e.L_GET_READ_RECEIPT_INFO_V5_E="L_GET_READ_RECEIPT_INFO_V5_E",e.L_V5_RECEIPT_RESPONSE_O="L_V5_RECEIPT_RESPONSE_O",e.L_SEND_V5_RECEIPT_T="L_SEND_V5_RECEIPT_T",e.L_SEND_V5_RECEIPT_R="L_SEND_V5_RECEIPT_R",e.L_SEND_V5_RECEIPT_O="L_SEND_V5_RECEIPT_O",e.L_SEND_V5_RECEIPT_E="L_SEND_V5_RECEIPT_E",e.L_STT_REQUEST_T="L_STT_REQUEST_T",e.L_STT_REQUEST_R="L_STT_REQUEST_R",e.L_STT_REQUEST_E="L_STT_REQUEST_E",e.L_STT_RESPONSE_O="L_STT_RESPONSE_O",e.L_STT_RESPONSE_R="L_STT_RESPONSE_R",e.L_STT_RESPONSE_E="L_STT_RESPONSE_E",e.A_SET_QUOTE_ENABLE_MESSAGE_TYPE_LIST_O="A_SET_QUOTE_ENABLE_MESSAGE_TYPE_LIST_O",e))(B||{});class d2{constructor(t){q(this,"_commands",new Map);q(this,"_conversationBarTitle");q(this,"_conversationBarSwitch",!0);q(this,"_conversationDetailBackSwitch",!0);q(this,"_extensions",[]);q(this,"_pushConfigHook");this.logger=t,this._init()}_init(){this._commands.set(Rt.SHOW_CONNECTION_STATUS,!0),this._commands.set(Rt.SHOW_MESSAGE_STATE,!1),this._commands.set(Rt.FOCUS_ON_LATEST_MESSAGE,!0),this._commands.set(Rt.AT_ALL,!1),this._commands.set(Rt.SHOW_USER_ONLINE_STATE,!1),this._commands.set(Rt.PROMPT_SENDER_WHEN_QUOTE_MESSAGE,!1),this._commands.set(Rt.DELETE_MESSAGES_WHILE_DELETE_CONVERSATION,!0),this._commands.set(Rt.USE_QUOTE_MESSAGE_V2,!1)}setCommandSwitch(t,s){this.logger.info(B.A_SET_COMMAND_SWITCH_O,`command: ${t}, enable: ${!!s}`),this._commands.set(t,!!s)}getCommandSwitch(t){return!!this._commands.get(t)}setConversationBarTitle(t){this._conversationBarSwitch&&(this._conversationBarTitle=t)}setConversationBarSwitch(t){this._conversationBarSwitch=t}setConversationDetailBackSwitch(t){this._conversationDetailBackSwitch=t}getConversationBarSwitch(){return this._conversationBarSwitch}getConversationDetailBackSwitch(){return this._conversationDetailBackSwitch}getConversationBarTitle(){return this._conversationBarTitle}getConversationExtension(){return this._extensions}setConversationExtension(t){this._extensions.splice(0,this._extensions.length,...t)}setPushConfigHook(t){this._pushConfigHook=t}getPushConfig(t){if(!this._pushConfigHook)return;let s;try{s=this._pushConfigHook({...t})}catch(n){this.logger.error(B.L_GET_PUSH_CONFIG_HOOK_E,JSON.stringify({messageType:t.messageType,error:n==null?void 0:n.message})),console.error(n)}return s}destroy(){this._commands.clear()}}let Oa;const f2=e=>(Oa||(Oa={set:(t,s)=>{e.localStorage.setItem(t,JSON.stringify(s))},get:t=>{let s;try{s=JSON.parse(e.localStorage.getItem(t))}catch{s=null}return s},remove:t=>e.localStorage.removeItem(t),getKeys:()=>{const t=[];for(const s in e.localStorage)t.push(s);return t}}),Oa);class h2{constructor(t){q(this,"_caches",{});t&&(this._caches=t)}set(t,s){this._caches[t]=s}remove(t){const s=this.get(t);return delete this._caches[t],s}get(t){return this._caches[t]}getKeys(){const t=[];for(const s in this._caches)t.push(s);return t}}class p2{constructor(t,s){q(this,"_cache");q(this,"_storageKey");q(this,"_rootStorage");this._rootStorage=f2(t);const n=this._rootStorage.get(s)||{};this._cache=new h2({[s]:n}),this._storageKey=s}_get(){const t=this._storageKey;return this._cache.get(t)||{}}_set(t){const s=this._storageKey;t=t||{},this._cache.set(s,t),this._rootStorage.set(s,t)}set(t,s){const n=this._get();n[t]=s,this._set(n)}remove(t){const s=this._get();delete s[t],this._set(s)}clear(){const t=this._storageKey;this._rootStorage.remove(t),this._cache.remove(t)}get(t){return this._get()[t]}getKeys(){const t=this._get(),s=[];for(const n in t)s.push(n);return s}getValues(){return this._get()||{}}}const g2=(e,t)=>`im-kit-${e}-${t}`,eo={lrt:{keyName:"lastReadTime",defaultVal:0},srrt:{keyName:"sendReadReceiptTime",defaultVal:0}},kc={};for(const e in eo){const{keyName:t}=eo[e];kc[t]=e}class _2{constructor(t,s,n,i){q(this,"_localStore");this.logger=i,this._localStore=new p2(t,g2(s,n))}_getStoreKey(t,s,n){return`${n}_${t}_${s}`}get(t,s,n=""){const i=this._getStoreKey(t,s,n),o=this._localStore.get(i)||{},r={};for(const a in eo){const{keyName:l,defaultVal:c}=eo[a];r[l]=o[a]||Ma(c)}return r}set(t,s,n,i){const o=this._getStoreKey(t,s,i),r=this._localStore.get(o)||{};for(const a in n){const l=kc[a],c=n[a];if(j.isUndefined(l)||j.isUndefined(c))continue;const{defaultVal:u}=eo[l];c===u?delete r[l]:r[l]=c}if(j.notEmptyObject(r)){this._localStore.set(o,r);return}this._localStore.remove(o)}remove(t,s,n){const i=this._getStoreKey(t,s,n);this._localStore.remove(i)}}class Is{constructor(t){q(this,"logger");q(this,"store");this.ctx=t,this.logger=t.logger,this.store=t.store,this.ctx.addEventListener(Z.DESTROY_USER_CACHE,this._onDestroyUserCache,this),this.ctx.addEventListener(Z.INIT_USER_CACHE,this._onInitUserCache,this),this._onInit()}_onInit(){}}class ba{constructor(t,s,n){q(this,"_cache",new Map);q(this,"logger");q(this,"store");q(this,"_requesting",new Map);q(this,"_waitingList",new Set);q(this,"_waitingPromise");this._ctx=t,this._hook=s,this._defaultHook=n,this.logger=t.logger,this.store=t.store}async _push2Waiting(t){this._waitingPromise?t.forEach(s=>this._waitingList.add(s)):(this._waitingList=new Set(t),this._waitingPromise=new Promise(s=>{setTimeout(()=>{const n=[...this._waitingList];this._waitingList.clear(),this._request(n),this._waitingPromise=void 0,s()},200)})),await this._waitingPromise,await Promise.all(t.map(s=>this._requesting.get(s)))}async _request(t){const s=this.logger.createTraceId();let n;try{this.logger.info(this.ReqStartTag,t.join(","),s),n=this._hook(t),t.forEach(a=>{this._requesting.set(a,n)})}catch(a){this.logger.error(this.ReqFailedTag,a.message,s);return}const i=await n;if(!(i instanceof Array)){this.logger.error(this.ReqFailedTag,"result must be a Array",s);return}const o=[],r=i.filter((a,l)=>{const c=!this._isInvalid(a);if(!c)this.logger.warn(this.ReqFailedTag,`invalid value in position ${l}`,s),console.error(`invalid value in position ${l}: `,a);else{const{cached:u,changed:d}=this._checkAndUpdateCacheData(a);d&&o.push(u)}return c});o.length>0&&this._dispatchUpdateEvent(o),this.logger.info(this.ReqSuccessTag,`valid value length: ${r.length}`,s)}async reqData(t,s=!1){if(t.length===0)return[];const n=s?t.slice():t.filter(r=>{const a=this._cache.get(r);return!a||a.usingDefault});if(n.length===0)return this.getCache(t,!0);const i=[],o=[];return n.forEach(r=>{const a=this._requesting.get(r);a?i.includes(a)||i.push(a):o.push(r)}),o.length>0&&i.push(this._push2Waiting(o)),i.length>0&&await Promise.all(i),this.getCache(t,!0)}getCache(t,s){if(t.length===0)return[];const n=[],i=t.map(o=>{const r=this._cache.get(o);if(r)return r.usingDefault&&n.push(o),r;n.push(o);const a=this._getDefaultCache(o);return this._cache.set(o,a),a});return!s&&n.length>0&&this.reqData(n,!0),i}_getDefaultCache(t){let s;if(this._defaultHook){this.logger.info(this.GetDefaultTag,`id: ${t}`);try{s=this._defaultHook(t)}catch(i){this.logger.error(this.GetDefaultErrorTag,i.message)}s&&this._isInvalid(s)&&(this.logger.error(this.GetDefaultErrorTag,`id: ${t}`),s=void 0)}return this._createDefaultCache(t,s)}clear(){this._cache.clear()}}const m2=`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1
|
+
var hC=Object.defineProperty;var pC=(Le,j,f)=>j in Le?hC(Le,j,{enumerable:!0,configurable:!0,writable:!0,value:f}):Le[j]=f;var B=(Le,j,f)=>(pC(Le,typeof j!="symbol"?j+"":j,f),f),Nc=(Le,j,f)=>{if(!j.has(Le))throw TypeError("Cannot "+f)};var Cn=(Le,j,f)=>(Nc(Le,j,"read from private field"),f?f.call(Le):j.get(Le)),oo=(Le,j,f)=>{if(j.has(Le))throw TypeError("Cannot add the same private member more than once");j instanceof WeakSet?j.add(Le):j.set(Le,f)},sr=(Le,j,f,rt)=>(Nc(Le,j,"write to private field"),rt?rt.call(Le,f):j.set(Le,f),f);var d2=(Le,j,f)=>(Nc(Le,j,"access private method"),f);(function(Le,j){typeof exports=="object"&&typeof module<"u"?j(exports,require("@rongcloud/engine"),require("@rongcloud/imlib-next")):typeof define=="function"&&define.amd?define(["exports","@rongcloud/engine","@rongcloud/imlib-next"],j):(Le=typeof globalThis<"u"?globalThis:Le||self,j(Le.RongIMKit={},Le.RCEngine,Le.RongIMLib))})(this,function(Le,j,f){var Jo,pi,gi,er,Ma,f2;"use strict";var rt=(e=>(e[e.LOADING=0]="LOADING",e[e.DELETED=f.QuoteMessageStatus.DELETED]="DELETED",e[e.RECALLED=f.QuoteMessageStatus.RECALLED]="RECALLED",e[e.LOAD_ERROR=4]="LOAD_ERROR",e[e.LOADED=5]="LOADED",e))(rt||{});const ka=e=>{let t;if(typeof e=="object"&&e!==null)if(Array.isArray(e)){t=[];for(let s in e)t.push(ka(e[s]))}else{t={};for(let s in e)t[s]=ka(e[s])}else t=e;return t},h2=e=>{let t;try{t=ka(e)}catch{t=JSON.parse(JSON.stringify(e))}return t},Ua=e=>JSON.parse(JSON.stringify(e));function Dc(e){let t=!1;const s=()=>e instanceof HTMLElement?e:e.value||null,n=a=>{a.preventDefault(),a.stopPropagation()},i=a=>{["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"," "].includes(a.key)&&(a.preventDefault(),a.stopPropagation())};return{disableScroll:()=>{if(t)return;t=!0;const a=s();a&&(a.addEventListener("wheel",n,{passive:!1}),a.addEventListener("touchmove",n,{passive:!1}),a.addEventListener("keydown",i,{passive:!1}))},enableScroll:()=>{if(!t)return;t=!1;const a=s();a&&(a.removeEventListener("wheel",n),a.removeEventListener("touchmove",n),a.removeEventListener("keydown",i))},get isScrollDisabled(){return t}}}function Gn(e){if(e==null)return"#000000";if(typeof e=="string"){const t=e.trim();return t.startsWith("#")?t.toLowerCase():`#${t.toLowerCase()}`}return`#${e.toString(16).padStart(6,"0")}`}const p2=[f.ConversationType.PRIVATE,f.ConversationType.GROUP,f.ConversationType.SYSTEM],Bn=e=>{if(!e)return!0;const{targetId:t,conversationType:s,channelId:n}=e;return!t||typeof t!="string"||p2.indexOf(s)===-1||!!n&&typeof n!="string"},vt=(e,t)=>e.targetId===t.targetId&&e.conversationType===t.conversationType&&e.channelId===t.channelId,gt=e=>`[${e.targetId}][${e.conversationType}][${e.channelId||""}]`,Pc=e=>e.conversationType===f.ConversationType.PRIVATE||e.conversationType===f.ConversationType.GROUP,g2=function(e,t,s){const n=e<t,i=n?t/e:e/t;let o,r=0,a=0,l,c;const u=function(){return n?(o=e/100,l=100,c=t/o,a=(c-s.maxHeight)/2):(o=t/100,c=100,l=e/o,r=(l-s.maxWidth)/2),{w:l,h:c,x:-r,y:-a}},d=function(){return n?(o=t/s.maxHeight,c=s.maxHeight,l=e/o):(o=e/s.maxWidth,l=s.maxWidth,c=t/o),{w:l,h:c,x:-r,y:-a}};return i>s.scale?u():d()},Vc=e=>{const t=document.createElement("canvas"),s=t.getContext("2d"),n=160,i=160,o=2.4,r=g2(e.width,e.height,{maxHeight:n,maxWidth:i,scale:o});t.width=Math.min(r.w,i),t.height=Math.min(r.h,n),s.drawImage(e,r.x,r.y,r.w,r.h);let a=t.toDataURL("image/png",.5);const l=/data:image\/[^;]+;base64,/;return a=a.replace(l,""),a},Si=e=>{e||(e=Date.now());const t=new Date(e),s=`${t.getFullYear()}`,n=`${t.getMonth()+1}`,i=`${t.getDate()}`,o=t.getDay();let r=`${t.getHours()}`;r.length<2&&(r=`0${r}`);let a=`${t.getMinutes()}`;return a.length<2&&(a=`0${a}`),{year:s,month:n,day:i,hour:r,minute:a,weekDay:o}},_2=e=>{const t=Math.floor(e/60),s=Math.floor(t/60),n=Math.floor(s/24);return e<60?`0:${e.toString().padStart(2,"0")}`:(e=Math.floor(e),`${n>0?`${n}d `:""}${s>0?`${(s%24).toString().padStart(2,"0").trim()}:`:""}${t>0?`${(t%60).toString().padStart(2,"0")}:`:""}${(e%60).toString().padStart(2,"0")}`.trim())},m2=e=>e<1024?e+" B":e<1024*1024?(e/1024).toFixed(2)+" KB":e<1024*1024*1024?(e/(1024*1024)).toFixed(2)+" MB":e<1024*1024*1024*1024?(e/(1024*1024*1024)).toFixed(2)+" GB":(e/(1024*1024*1024*1024)).toFixed(2)+" TB",E2=(e,t=40,s=8)=>{if(!e||e.length<=t)return e;const n=t-s-3;return n<=0?e:`${e.slice(0,n)}...${e.slice(-s)}`},v2=e=>new Promise(t=>{const s=document.createElement("video");let n=!1;const i=d=>{n||(n=!0,t(d))},o=()=>{s.pause(),s.src="",s.removeAttribute("src"),s.load()},r=URL.createObjectURL(e);let a=!1;const l=()=>{o(),URL.revokeObjectURL(r)},c=()=>{if(n)return;const{duration:d,videoHeight:h,videoWidth:p}=s;if(d>120){l(),i(null);return}if(!p||!h){l(),i(null);return}s.width=p,s.height=h;const m=Vc(s);l(),i(new f.SightMessage({name:e.name,size:e.size,duration:d,content:m,sightUrl:""}))},u=()=>{if(a)return;a=!0;const d=s;typeof d.requestVideoFrameCallback=="function"?d.requestVideoFrameCallback(()=>c()):requestAnimationFrame(()=>requestAnimationFrame(c))};s.onloadeddata=()=>{u()},s.onerror=()=>{l(),i(null)},s.playsInline=!0,s.muted=!0,s.preload="auto",s.src=r,s.play()}),C2=e=>new Promise(t=>{const s=new Image,n=URL.createObjectURL(e);s.onload=()=>t(new f.GIFMessage({gifDataSize:e.size,remoteUrl:n,width:s.width,height:s.height})),s.onerror=i=>{URL.revokeObjectURL(n),t(null)},s.src=n}),y2=e=>new Promise(t=>{const s=new Image,n=URL.createObjectURL(e);s.onload=()=>{const i=Vc(s);t(new f.ImageMessage({content:i,imageUri:n}))},s.onerror=()=>{t(null),URL.revokeObjectURL(n)},s.src=n}),S2=async e=>{let t=null;switch(e.type){case"video/mp4":t=await v2(e);break;case"image/gif":e.size<2*1024*1024&&(t=await C2(e));break;case"image/jpeg":case"image/jpg":case"image/png":e.size<100*1024*1024&&(t=await y2(e));break}return t||new f.FileMessage({name:e.name,size:e.size,type:e.type,fileUrl:""})},T2=e=>e?/data:image\/[^;]+;base64,/.test(e)?e:`data:image/png;base64,${e}`:void 0,Fc=e=>{const t=e.quoteMessageStatus===f.QuoteMessageStatus.DELETED||e.quoteMessageStatus===f.QuoteMessageStatus.RECALLED?e.quoteMessageStatus:rt.LOADING;return{...e,status:t}},$c=(e,t,s)=>{const{objName:n,referMsgUid:i,referMsgUserId:o,referMsgStatus:r,referMsg:a}=e;let l,c;switch(r){case f.ReferenceMessageStatus.DELETE:l=f.QuoteMessageStatus.DELETED,c=rt.DELETED;break;case f.ReferenceMessageStatus.RECALLED:l=f.QuoteMessageStatus.RECALLED,c=rt.RECALLED;break;default:l=f.QuoteMessageStatus.DELETED,c=rt.LOADED;break}let u;return c===rt.LOADED&&(u={...t,senderUserId:o,content:a,messageType:n,messageUId:i,messageDirection:s}),{objectName:n,senderId:o,messageUId:i,quoteMessageStatus:l,status:c,quoteMessage:u}},Ti=e=>{const{quoteInfo:t,content:s,messageDirection:n,senderUserId:i,...o}=e,r={...o,content:s,messageDirection:n,senderUserId:i,transactionId:NaN,progress:100,reactions:[]};if(r.messageType===f.MessageType.REFERENCE){const{referMsgUserId:a}=s,l=i===a?n:2-(n-1);r.quoteInfo=$c(s,e,l)}else t&&(r.quoteInfo=Fc(t));return r},I2=e=>{const t="(?:(?:25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d|\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d{2}|[1-9]\\d|\\d)",s="(?!@)(?:[a-z0-9-@_]{1,36}\\.)+[a-z]{2,6}",n="(?:\\:\\d{1,5})?",i="(?:localhost)",o="(?:(?:/[a-zA-Z0-9.,;?\\'+&%$#=~_\\-!()*\\|\\/]*)?)",r=new RegExp("(((https?)://(?:("+t+")|("+s+")|"+i+")"+n+o+"))","ig"),a=e.match(r),l=new RegExp("([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+.[a-zA-Z0-9_-]+)","ig"),c=e.match(l),u=[];if(a==null||a.forEach(m=>{u.push({type:"url",val:m,index:e.indexOf(m,0)})}),c==null||c.forEach(m=>{u.push({type:"mail",val:m,index:e.indexOf(m,0)})}),u.length<=0)return{type:0,content:[{content:e,type:"text"}],position:[]};const d=[];let h=0;const p=[];return u.sort((m,v)=>m.index-v.index),u.forEach(m=>{const v=e.indexOf(m.val,h);v>h&&d.push({content:e.substring(h,v),type:"text"}),d.push({content:m.val,type:m.type}),p.push(d.length),h=v+m.val.length}),h<e.length&&d.push({content:e.substring(h),type:"text"}),{type:1,content:d,position:p}};function yn(e,t){let s=e.length;for(let n=s-1;n>-1;n--)if(t(e[n]))return n;return-1}const vs=()=>typeof window<"u"&&window.innerWidth<=768;class ee{constructor(t,s){B(this,"_resolve",!1);B(this,"_promise");B(this,"_stopped",!1);B(this,"_defaultPrevented",!1);B(this,"data");this.type=t,this.data=s}isImmediatePropagationStopped(){return this._stopped}stopImmediatePropagation(){this._stopped=!0}isDefaultPrevented(){return this._defaultPrevented}preventDefault(){this._defaultPrevented=!0}sendResult(t){if(typeof this._resolve=="function"){this._resolve(t),this._resolve=!0;return}const s=this._resolve?"Cannot resubmit.":"There is no transaction waiting event result.";console.error(s,"event type:",this.type)}async awaitResult(){return this._promise||(this._promise=new Promise(t=>{this._resolve=t})),this._promise}clone(t){const s=new ee(this.type,h2(this.data));return s.sendResult=this.sendResult.bind(this),s}}var Sn=(e=>(e[e.CANCEL=0]="CANCEL",e[e.CONFIRM=1]="CONFIRM",e))(Sn||{});class ro extends ee{constructor(t,s){super("CONNECTION_STATUS_CHANGE",{status:t,code:s})}}var jn=(e=>(e.SINGLE="single",e.MERGE="merge",e))(jn||{}),Z=(e=>(e.USER_PROFILES_UPDATE="USER_PROFILES_UPDATE",e.GROUP_PROFILES_UPDATE="GROUP_PROFILES_UPDATE",e.GROUP_MEMBERS_UPDATE="GROUP_MEMBERS_UPDATE",e.INIT_USER_CACHE="INIT_USER_CACHE",e.DESTROY_USER_CACHE="DESTROY_USER_CACHE",e.SYSTEM_PROFILES_UPDATE="SYSTEM_PROFILES_UPDATE",e.CONVERSATION_ITEM_CHANGE="CONVERSATION_ITEM_CHANGE",e.CONVERSATION_LIST_RESET="CONVERSATION_LIST_RESET",e.CONVERSATION_ITEM_ORDER_CHANGE="CONVERSATION_ITEM_ORDER_CHANGE",e.CONVERSATIN_ITEM_REMOVE="CONVERSATIN_ITEM_REMOVE",e.MESSAGE_STATE_CHANGE="MESSAGE_STATE_CHANGE",e.INSERT_NEW_MESSAGES="INSERT_NEW_MESSAGES",e.FILE_UPLOAD_PROGRESS="FILE_UPLOAD_PROGRESS",e.LANGUAGE_CHANGE="LANGUAGE_CHANGE",e.AUDIO_PLAY_EVENT="AUDIO_PLAY_EVENT",e.SET_TEXTAREA_VALUE_EVENT="SET_TEXTAREA_VALUE_EVENT",e.ADJUST_MESSAGE_LIST_SCROLL="ADJUST_MESSAGE_LIST_SCROLL",e.SPEECH_TO_TEXT_STATE_CHANGE="SPEECH_TO_TEXT_STATE_CHANGE",e.RECV_NEW_MESSAGES="RECV_NEW_MESSAGES",e.CONNECTION_STATUS_CHANGE="CONNECTION_STATUS_CHANGE",e.CONVERSATION_BAR_SWITCH_CHANGE="CONVERSATION_BAR_SWITCH_CHANGE",e.CONVERSATION_DETAIL_BACK_SWITCH_CHANGE="CONVERSATION_DETAIL_BACK_SWITCH_CHANGE",e.CONVERSATION_BAR_TITLE_CHANGE="CONVERSATION_BAR_TITLE_CHANGE",e.TOAST_EVENT="TOAST_EVENT",e))(Z||{}),fe=(e=>(e.CONFIRM_EVENT="CONFIRM_EVENT",e.ALERT_EVENT="ALERT_EVENT",e.DELETE_MESSAGE_MODAL_EVENT="DELETE_MESSAGE_MODAL_EVENT",e.MEDIA_MESSAGE_MODAL_EVENT="MEDIA_MESSAGE_MODAL_EVENT",e.COMBINE_MESSAGE_MODAL_EVENT="COMBINE_MESSAGE_MODAL_EVENT",e.FORWARDING_EVENT="FORWARDING_EVENT",e.TAKE_PHOTO_MODAL_EVENT="TAKE_PHOTO_MODAL_EVENT",e.REACTIONS_DETAIL_EVENT="REACTIONS_DETAIL_EVENT",e.UNSCHEDULED_MESSAGES="UNSCHEDULED_MESSAGES",e.CONVERSATION_EXTENSION_CLICK="CONVERSATION_EXTENSION_CLICK",e.BEFORE_SYSTEM_CONVERSATION_OPEN="BEFORE_SYSTEM_CONVERSATION_OPEN",e.CONVERSATION_MENU_ITEM_CLICK="CONVERSATION_MENU_ITEM_CLICK",e.INPUT_MENU_ITEM_CLICK="INPUT_MENU_ITEM_CLICK",e.CONVERSATION_SELECTED="CONVERSATION_SELECTED",e.CONVERSATION_ICON_CLICK="CONVERSATION_ICON_CLICK",e.CONVERSATION_NAVI_CLICK="CONVERSATION_NAVI_CLICK",e.MESSAGE_MENU_ITEM_CLICK="MESSAGE_MENU_ITEM_CLICK",e.MESSAGE_LINK_CLICK="MESSAGE_LINK_CLICK",e.DOWNLOAD_LINK_EVENT="DOWNLOAD_LINK_EVENT",e.FILE_SEND_FAILED_EVENT="FILE_SEND_FAILED_EVENT",e.MESSAGES_DELETED="MESSAGES_DELETED",e.INPUT_TEXTAREA_FOCUS="INPUT_TEXTAREA_FOCUS",e.INPUT_TEXTAREA_BLUR="INPUT_TEXTAREA_BLUR",e.INPUT_TEXTAREA_CHANGE="INPUT_TEXTAREA_CHANGE",e.BEFORE_SEND_MESSAGE="BEFORE_SEND_MESSAGE",e.TOAST_EVENT="TOAST_EVENT",e))(fe||{});class Hc{constructor(){B(this,"_listeners",new Map)}addEventListener(t,s,n){const i=this._listeners.get(t);i?i.push({target:n,listener:s}):this._listeners.set(t,[{target:n,listener:s}])}onceEventListener(t,s,n){const i=this._listeners.get(t);i?i.push({target:n,listener:s,once:!0}):this._listeners.set(t,[{target:n,listener:s,once:!0}])}removeEventListener(t,s,n){const i=this._listeners.get(t);if(i){const o=i.findIndex(r=>r.listener===s&&r.target===n);o!==-1&&i.splice(o,1)}}removeEventListeners(t){this._listeners.delete(t)}removeAllEventListeners(){this._listeners.clear()}dispatch(t,s=!0){s?setTimeout(()=>this._handleDispatchEvent(t),0):this._handleDispatchEvent(t)}_handleDispatchEvent(t){const s=t,n=this._listeners.get(s.type);if(!(!n||n.length===0))for(const{target:i,once:o,listener:r}of n){if(s.isImmediatePropagationStopped())return;try{r.call(i,s)}catch(a){console.error(a)}o&&this.removeEventListener(s.type,r,i)}}}var ut=(e=>(e.SHOW_CONNECTION_STATUS="SHOW_CONNECTION_STATUS",e.SHOW_MESSAGE_STATE="SHOW_MESSAGE_STATE",e.FOCUS_ON_LATEST_MESSAGE="FOCUS_ON_LATEST_MESSAGE",e.AT_ALL="AT_ALL",e.SHOW_USER_ONLINE_STATE="SHOW_USER_ONLINE_STATE",e.PROMPT_SENDER_WHEN_QUOTE_MESSAGE="PROMPT_SENDER_WHEN_QUOTE_MESSAGE",e.DELETE_MESSAGES_WHILE_DELETE_CONVERSATION="DELETE_MESSAGES_WHILE_DELETE_CONVERSATION",e.USE_QUOTE_MESSAGE_V2="USE_QUOTE_MESSAGE_V2",e.MESSAGE_REACTION_ENABLED="MESSAGE_REACTION_ENABLED",e.SHOW_MESSAGE_REACT_USERS="SHOW_MESSAGE_REACT_USERS",e))(ut||{}),G=(e=>(e.D="L_DEBUG_O",e.A_INIT_O="A_INIT_O",e.A_SET_COMMAND_SWITCH_O="L_SET_COMMAND_SWITCH_O",e.A_REGISTER_CUSTOM_ELEMENT_O="A_REGISTER_CUSTOM_ELEMENT_O",e.L_REGISTER_DOM_ELEMENTS_O="L_REGISTER_DOM_ELEMENTS_O",e.A_REGISTER_MESSAGE_TYPE_O="A_REGISTER_MESSAGE_TYPE_O",e.A_SET_CUSTOM_SERVICE_O="A_SET_CUSTOM_SERVICE_O",e.A_SET_CUSTOM_LANGUAGE_PACK_O="A_SET_CUSTOM_LANGUAGE_PACK_O",e.A_CLONE_LANGUAGE_ENTRIES_O="A_CLONE_LANGUAGE_ENTRIES_O",e.A_REGISTER_LANGUAGE_PACK_O="A_REGISTER_LANGUAGE_PACK_O",e.A_SET_LANGUAGE_O="A_SET_LANGUAGE_O",e.A_READY_O="A_READY_O",e.L_REQ_USER_PROFILE_HOOK_T="L_REQ_USER_PROFILE_HOOK_T",e.L_REQ_USER_PROFILE_HOOK_R="L_REQ_USER_PROFILE_HOOK_R",e.L_REQ_USER_PROFILE_HOOK_E="L_REQ_USER_PROFILE_HOOK_E",e.L_GET_DEFAULT_USER_PROFILE_HOOK_E="L_GET_DEFAULT_USER_PROFILE_HOOK_E",e.L_GET_DEFAULT_USER_PROFILE_HOOK_O="L_GET_DEFAULT_USER_PROFILE_HOOK_O",e.A_UPDATE_USER_PROFILE_E="A_UPDATE_USER_PROFILE_E",e.A_UPDATE_USER_PROFILE_T="A_UPDATE_USER_PROFILE_T",e.A_UPDATE_USER_PROFILE_R="A_UPDATE_USER_PROFILE_R",e.A_UPDATE_USER_ONLINE_STATE_R="A_UPDATE_USER_ONLINE_STATE_R",e.A_UPDATE_USER_ONLINE_STATE_T="A_UPDATE_USER_ONLINE_STATE_T",e.L_GET_DEFAULT_GROUP_PROFILE_HOOK_O="L_GET_DEFAULT_GROUP_PROFILE_HOOK_O",e.L_GET_DEFAULT_GROUP_PROFILE_HOOK_E="L_GET_DEFAULT_GROUP_PROFILE_HOOK_E",e.L_REQ_GROUP_PROFILE_HOOK_T="L_REQ_GROUP_PROFILE_HOOK_T",e.L_REQ_GROUP_PROFILE_HOOK_E="L_REQ_GROUP_PROFILE_HOOK_E",e.L_REQ_GROUP_PROFILE_HOOK_R="L_REQ_GROUP_PROFILE_HOOK_R",e.A_UPDATE_GROUP_PROFILE_T="A_UPDATE_GROUP_PROFILE_T",e.A_UPDATE_GROUP_PROFILE_E="A_UPDATE_GROUP_PROFILE_E",e.A_UPDATE_GROUP_PROFILE_R="A_UPDATE_GROUP_PROFILE_R",e.L_REQ_GROUP_MEMBERS_HOOK_T="L_REQ_GROUP_MEMBERS_HOOK_T",e.L_REQ_GROUP_MEMBERS_HOOK_E="L_REQ_GROUP_MEMBERS_HOOK_E",e.L_REQ_GROUP_MEMBERS_HOOK_R="L_REQ_GROUP_MEMBERS_HOOK_R",e.A_UPDATE_GROUP_MEMBERS_T="A_UPDATE_GROUP_MEMBERS_T",e.A_UPDATE_GROUP_MEMBERS_E="A_UPDATE_GROUP_MEMBERS_E",e.A_UPDATE_GROUP_MEMBERS_R="A_UPDATE_GROUP_MEMBERS_R",e.A_ADD_GROUP_MEMBERS_T="A_ADD_GROUP_MEMBERS_T",e.A_ADD_GROUP_MEMBERS_E="A_ADD_GROUP_MEMBERS_E",e.A_ADD_GROUP_MEMBERS_R="A_ADD_GROUP_MEMBERS_R",e.A_REMOVE_GROUP_MEMBERS_T="A_REMOVE_GROUP_MEMBERS_T",e.A_REMOVE_GROUP_MEMBERS_E="A_REMOVE_GROUP_MEMBERS_E",e.A_REMOVE_GROUP_MEMBERS_R="A_REMOVE_GROUP_MEMBERS_R",e.L_REQ_USER_ONLINE_HOOK_T="L_REQ_USER_ONLINE_HOOK_T",e.L_REQ_USER_ONLINE_HOOK_E="L_REQ_USER_ONLINE_HOOK_E",e.L_REQ_USER_ONLINE_HOOK_R="L_REQ_USER_ONLINE_HOOK_R",e.L_REQ_SYSTEM_PROFILE_HOOK_T="L_REQ_SYSTEM_PROFILE_HOOK_T",e.L_REQ_SYSTEM_PROFILE_HOOK_E="L_REQ_SYSTEM_PROFILE_HOOK_E",e.L_REQ_SYSTEM_PROFILE_HOOK_R="L_REQ_SYSTEM_PROFILE_HOOK_R",e.L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_O="L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_O",e.L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_E="L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_E",e.L_GET_TAGS_FROM_LIB_E="L_GET_TAGS_FROM_LIB_E",e.A_ADD_UNVERIFIED_TAG_O="A_ADD_UNVERIFIED_TAG_O",e.A_ADD_UNVERIFIED_TAG_E="A_ADD_UNVERIFIED_TAG_E",e.A_ADD_TAG_E="A_ADD_TAG_E",e.A_UPDATE_TAG_E="A_UPDATE_TAG_E",e.A_REMOVE_TAG_E="A_REMOVE_TAG_E",e.A_SET_INPUT_MENU_E="A_SET_INPUT_MENU_E",e.A_SET_MESSAGE_BUBBLE_CFG_E="A_SET_MESSAGE_BUBBLE_CFG_E",e.A_SET_CONVERSATION_ITEM_CFG_E="A_SET_CONVERSATION_ITEM_CFG_E",e.A_UPDATE_USER_ONLINE_STATE_E="A_UPDATE_USER_ONLINE_STATE_E",e.A_OPEN_CONVERSATION_E="A_OPEN_CONVERSATION_E",e.A_REMOVE_CONVERSATION_E="A_REMOVE_CONVERSATION_E",e.A_SEND_MESSAGE_E="A_SEND_MESSAGE_E",e.A_INSERT_MESSAGE_E="A_INSERT_MESSAGE_E",e.A_SET_CONVERSATION_EXTENSION_E="A_SET_CONVERSATION_EXTENSION_E",e.L_PUSH_2_QUEUE_O="L_PUSH_2_QUEUE_O",e.L_TASK_QUEUE_EXECUTE_O="L_PICK_ITEM_FROM_QUEUE_O",e.L_SEND_MSG_T="L_SEND_MSG_T",e.L_SEND_MSG_R="L_SEND_MSG_R",e.L_UPLOAD_FILE_T="L_UPLOAD_FILE_T",e.L_UPLOAD_FILE_R="L_UPLOAD_FILE_R",e.L_UPLOAD_FILE_O="L_UPLOAD_FILE_O",e.A_SET_CHAT_EMOJI_LIBRARY_E="A_SET_CHAT_EMOJI_LIBRARY_E",e.L_GET_PUSH_CONFIG_HOOK_E="L_GET_PUSH_CONFIG_HOOK_E",e.L_SET_RECALL_DURATION_E="L_SET_RECALL_DURATION_E",e.L_SEND_READ_RECEIPT_MESSAGEV4_T="L_SEND_READ_RECEIPT_MESSAGEV4_T",e.L_SEND_READ_RECEIPT_MESSAGEV4_R="L_SEND_READ_RECEIPT_MESSAGEV4_R",e.L_PARSE_CONVERSATION_E="L_PARSE_CONVERSATION_E",e.L_GET_CONVERSATION_E="L_GET_CONVERSATION_E",e.L_V5_RECEIPT_RESPONSE_E="L_V5_RECEIPT_RESPONSE_E",e.L_HANDLE_READ_RECEIPT_V5_E="L_HANDLE_READ_RECEIPT_V5_E",e.L_GET_READ_RECEIPT_INFO_V5_E="L_GET_READ_RECEIPT_INFO_V5_E",e.L_V5_RECEIPT_RESPONSE_O="L_V5_RECEIPT_RESPONSE_O",e.L_SEND_V5_RECEIPT_T="L_SEND_V5_RECEIPT_T",e.L_SEND_V5_RECEIPT_R="L_SEND_V5_RECEIPT_R",e.L_SEND_V5_RECEIPT_O="L_SEND_V5_RECEIPT_O",e.L_SEND_V5_RECEIPT_E="L_SEND_V5_RECEIPT_E",e.L_STT_REQUEST_T="L_STT_REQUEST_T",e.L_STT_REQUEST_R="L_STT_REQUEST_R",e.L_STT_REQUEST_E="L_STT_REQUEST_E",e.L_STT_RESPONSE_O="L_STT_RESPONSE_O",e.L_STT_RESPONSE_R="L_STT_RESPONSE_R",e.L_STT_RESPONSE_E="L_STT_RESPONSE_E",e.A_SET_QUOTE_ENABLE_MESSAGE_TYPE_LIST_O="A_SET_QUOTE_ENABLE_MESSAGE_TYPE_LIST_O",e))(G||{});class w2{constructor(t){B(this,"_commands",new Map);B(this,"_conversationBarTitle");B(this,"_conversationBarSwitch",!0);B(this,"_conversationDetailBackSwitch",!0);B(this,"_extensions",[]);B(this,"_pushConfigHook");this.logger=t,this._init()}_init(){this._commands.set(ut.SHOW_CONNECTION_STATUS,!0),this._commands.set(ut.SHOW_MESSAGE_STATE,!1),this._commands.set(ut.FOCUS_ON_LATEST_MESSAGE,!0),this._commands.set(ut.AT_ALL,!1),this._commands.set(ut.SHOW_USER_ONLINE_STATE,!1),this._commands.set(ut.PROMPT_SENDER_WHEN_QUOTE_MESSAGE,!1),this._commands.set(ut.DELETE_MESSAGES_WHILE_DELETE_CONVERSATION,!0),this._commands.set(ut.USE_QUOTE_MESSAGE_V2,!1),this._commands.set(ut.MESSAGE_REACTION_ENABLED,!1),this._commands.set(ut.SHOW_MESSAGE_REACT_USERS,!1)}setCommandSwitch(t,s){this.logger.info(G.A_SET_COMMAND_SWITCH_O,`command: ${t}, enable: ${!!s}`),this._commands.set(t,!!s)}getCommandSwitch(t){return!!this._commands.get(t)}setConversationBarTitle(t){this._conversationBarSwitch&&(this._conversationBarTitle=t)}setConversationBarSwitch(t){this._conversationBarSwitch=t}setConversationDetailBackSwitch(t){this._conversationDetailBackSwitch=t}getConversationBarSwitch(){return this._conversationBarSwitch}getConversationDetailBackSwitch(){return this._conversationDetailBackSwitch}getConversationBarTitle(){return this._conversationBarTitle}getConversationExtension(){return this._extensions}setConversationExtension(t){this._extensions.splice(0,this._extensions.length,...t)}setPushConfigHook(t){this._pushConfigHook=t}getPushConfig(t){if(!this._pushConfigHook)return;let s;try{s=this._pushConfigHook({...t})}catch(n){this.logger.error(G.L_GET_PUSH_CONFIG_HOOK_E,JSON.stringify({messageType:t.messageType,error:n==null?void 0:n.message})),console.error(n)}return s}destroy(){this._commands.clear()}}let Na;const R2=e=>(Na||(Na={set:(t,s)=>{e.localStorage.setItem(t,JSON.stringify(s))},get:t=>{let s;try{s=JSON.parse(e.localStorage.getItem(t))}catch{s=null}return s},remove:t=>e.localStorage.removeItem(t),getKeys:()=>{const t=[];for(const s in e.localStorage)t.push(s);return t}}),Na);class M2{constructor(t){B(this,"_caches",{});t&&(this._caches=t)}set(t,s){this._caches[t]=s}remove(t){const s=this.get(t);return delete this._caches[t],s}get(t){return this._caches[t]}getKeys(){const t=[];for(const s in this._caches)t.push(s);return t}}class O2{constructor(t,s){B(this,"_cache");B(this,"_storageKey");B(this,"_rootStorage");this._rootStorage=R2(t);const n=this._rootStorage.get(s)||{};this._cache=new M2({[s]:n}),this._storageKey=s}_get(){const t=this._storageKey;return this._cache.get(t)||{}}_set(t){const s=this._storageKey;t=t||{},this._cache.set(s,t),this._rootStorage.set(s,t)}set(t,s){const n=this._get();n[t]=s,this._set(n)}remove(t){const s=this._get();delete s[t],this._set(s)}clear(){const t=this._storageKey;this._rootStorage.remove(t),this._cache.remove(t)}get(t){return this._get()[t]}getKeys(){const t=this._get(),s=[];for(const n in t)s.push(n);return s}getValues(){return this._get()||{}}}const b2=(e,t)=>`im-kit-${e}-${t}`,ao={lrt:{keyName:"lastReadTime",defaultVal:0},srrt:{keyName:"sendReadReceiptTime",defaultVal:0}},Gc={};for(const e in ao){const{keyName:t}=ao[e];Gc[t]=e}class L2{constructor(t,s,n,i){B(this,"_localStore");this.logger=i,this._localStore=new O2(t,b2(s,n))}_getStoreKey(t,s,n){return`${n}_${t}_${s}`}get(t,s,n=""){const i=this._getStoreKey(t,s,n),o=this._localStore.get(i)||{},r={};for(const a in ao){const{keyName:l,defaultVal:c}=ao[a];r[l]=o[a]||Ua(c)}return r}set(t,s,n,i){const o=this._getStoreKey(t,s,i),r=this._localStore.get(o)||{};for(const a in n){const l=Gc[a],c=n[a];if(j.isUndefined(l)||j.isUndefined(c))continue;const{defaultVal:u}=ao[l];c===u?delete r[l]:r[l]=c}if(j.notEmptyObject(r)){this._localStore.set(o,r);return}this._localStore.remove(o)}remove(t,s,n){const i=this._getStoreKey(t,s,n);this._localStore.remove(i)}}class Ls{constructor(t){B(this,"logger");B(this,"store");this.ctx=t,this.logger=t.logger,this.store=t.store,this.ctx.addEventListener(Z.DESTROY_USER_CACHE,this._onDestroyUserCache,this),this.ctx.addEventListener(Z.INIT_USER_CACHE,this._onInitUserCache,this),this._onInit()}_onInit(){}}class Da{constructor(t,s,n){B(this,"_cache",new Map);B(this,"logger");B(this,"store");B(this,"_requesting",new Map);B(this,"_waitingList",new Set);B(this,"_waitingPromise");this._ctx=t,this._hook=s,this._defaultHook=n,this.logger=t.logger,this.store=t.store}async _push2Waiting(t){this._waitingPromise?t.forEach(s=>this._waitingList.add(s)):(this._waitingList=new Set(t),this._waitingPromise=new Promise(s=>{setTimeout(()=>{const n=[...this._waitingList];this._waitingList.clear(),this._request(n),this._waitingPromise=void 0,s()},200)})),await this._waitingPromise,await Promise.all(t.map(s=>this._requesting.get(s)))}async _request(t){const s=this.logger.createTraceId();let n;try{this.logger.info(this.ReqStartTag,t.join(","),s),n=this._hook(t),t.forEach(a=>{this._requesting.set(a,n)})}catch(a){this.logger.error(this.ReqFailedTag,a.message,s);return}const i=await n;if(!(i instanceof Array)){this.logger.error(this.ReqFailedTag,"result must be a Array",s);return}const o=[],r=i.filter((a,l)=>{const c=!this._isInvalid(a);if(!c)this.logger.warn(this.ReqFailedTag,`invalid value in position ${l}`,s),console.error(`invalid value in position ${l}: `,a);else{const{cached:u,changed:d}=this._checkAndUpdateCacheData(a);d&&o.push(u)}return c});o.length>0&&this._dispatchUpdateEvent(o),this.logger.info(this.ReqSuccessTag,`valid value length: ${r.length}`,s)}async reqData(t,s=!1){if(t.length===0)return[];const n=s?t.slice():t.filter(r=>{const a=this._cache.get(r);return!a||a.usingDefault});if(n.length===0)return this.getCache(t,!0);const i=[],o=[];return n.forEach(r=>{const a=this._requesting.get(r);a?i.includes(a)||i.push(a):o.push(r)}),o.length>0&&i.push(this._push2Waiting(o)),i.length>0&&await Promise.all(i),this.getCache(t,!0)}getCache(t,s){if(t.length===0)return[];const n=[],i=t.map(o=>{const r=this._cache.get(o);if(r)return r.usingDefault&&n.push(o),r;n.push(o);const a=this._getDefaultCache(o);return this._cache.set(o,a),a});return!s&&n.length>0&&this.reqData(n,!0),i}_getDefaultCache(t){let s;if(this._defaultHook){this.logger.info(this.GetDefaultTag,`id: ${t}`);try{s=this._defaultHook(t)}catch(i){this.logger.error(this.GetDefaultErrorTag,i.message)}s&&this._isInvalid(s)&&(this.logger.error(this.GetDefaultErrorTag,`id: ${t}`),s=void 0)}return this._createDefaultCache(t,s)}clear(){this._cache.clear()}}const A2=`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<circle cx="16" cy="16" r="16" fill="#C4B7FF"/>
|
|
3
3
|
<path d="M22.9954 13.7373C22.9954 12.131 21.8033 10.7873 20.2483 10.5629C19.996 10.5265 19.7881 10.7367 19.7881 10.9917C19.7881 11.2466 19.9969 11.4484 20.2467 11.4997C21.2896 11.7137 22.0721 12.6431 22.0721 13.7495C22.0721 14.8558 21.2896 15.7758 20.2467 15.9876C19.9969 16.0383 19.7881 16.2401 19.7881 16.4951C19.7881 16.75 19.996 16.9602 20.2483 16.9236C21.8033 16.6974 22.9954 15.3437 22.9954 13.7373Z" fill="#020814"/>
|
|
4
4
|
<path d="M24.9999 19.6052C24.9999 18.451 24.0645 17.5156 22.9103 17.5156H22.7466C22.5017 17.5156 22.3032 17.7141 22.3032 17.959C22.3032 18.2039 22.5017 18.4024 22.7466 18.4024H22.9103C23.5785 18.4024 24.1252 18.9491 24.1252 19.6173C24.1252 20.2855 23.5785 20.8322 22.9103 20.8322H22.7345C22.4963 20.8322 22.3032 21.0253 22.3032 21.2635C22.3032 21.5017 22.4963 21.6947 22.7345 21.6947H22.9103C24.0645 21.6947 24.9999 20.7593 24.9999 19.6052Z" fill="#020814"/>
|
|
@@ -6,25 +6,25 @@ var Uv=Object.defineProperty;var Nv=(be,j,f)=>j in be?Uv(be,j,{enumerable:!0,con
|
|
|
6
6
|
<path d="M7.00009 19.6052C7.00009 18.451 7.93555 17.5156 9.08968 17.5156H9.25338C9.49828 17.5156 9.69681 17.7141 9.69681 17.959C9.69681 18.2039 9.49828 18.4024 9.25338 18.4024H9.08968C8.4215 18.4024 7.8748 18.9491 7.8748 19.6173C7.8748 20.2855 8.4215 20.8322 9.08968 20.8322H9.26553C9.50372 20.8322 9.69681 21.0253 9.69681 21.2635C9.69681 21.5017 9.50372 21.6947 9.26553 21.6947H9.08968C7.93555 21.6947 7.00009 20.7593 7.00009 19.6052Z" fill="#020814"/>
|
|
7
7
|
<path d="M15.946 17.1026C13.8922 17.1026 12.2323 15.4286 12.2323 13.3889C12.2323 11.3492 13.8922 9.66113 15.946 9.66113C17.9997 9.66113 19.6597 11.3351 19.6597 13.3748C19.6597 15.4145 17.9997 17.1026 15.946 17.1026ZM15.946 10.7302C14.483 10.7302 13.3014 11.9119 13.3014 13.3748C13.3014 14.8378 14.4971 16.0335 15.946 16.0335C17.4089 16.0335 18.5906 14.8519 18.5906 13.3889C18.5906 11.9259 17.4089 10.7302 15.946 10.7302ZM19.5612 22.5887H12.3448C11.0085 22.5887 9.92529 21.5055 9.92529 20.1692C9.92529 18.8328 11.0085 17.7497 12.3448 17.7497H19.5612C20.8975 17.7497 21.9807 18.8328 21.9807 20.1692C21.9807 21.5055 20.8975 22.5887 19.5612 22.5887ZM12.3448 18.7765C11.5711 18.7765 10.9381 19.4096 10.9381 20.1832C10.9381 20.9569 11.5711 21.5899 12.3448 21.5899H19.5612C20.3349 21.5899 20.9679 20.9569 20.9679 20.1832C20.9679 19.4096 20.3349 18.7765 19.5612 18.7765H12.3448Z" fill="#020814"/>
|
|
8
8
|
</svg>
|
|
9
|
-
`,
|
|
9
|
+
`,x2=`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10
10
|
<circle cx="16" cy="16" r="16" fill="#D2E1FE"/>
|
|
11
11
|
<path d="M15.952 17.216C13.616 17.216 11.728 15.312 11.728 12.992C11.728 10.672 13.616 8.75195 15.952 8.75195C18.288 8.75195 20.176 10.656 20.176 12.976C20.176 15.296 18.288 17.216 15.952 17.216ZM15.952 9.96795C14.288 9.96795 12.944 11.312 12.944 12.976C12.944 14.64 14.304 16 15.952 16C17.616 16 18.96 14.656 18.96 12.992C18.96 11.328 17.616 9.96795 15.952 9.96795ZM20.064 23.456H11.856C10.336 23.456 9.104 22.224 9.104 20.704C9.104 19.184 10.336 17.952 11.856 17.952H20.064C21.584 17.952 22.816 19.184 22.816 20.704C22.816 22.224 21.584 23.456 20.064 23.456ZM11.856 19.12C10.976 19.12 10.256 19.84 10.256 20.72C10.256 21.6 10.976 22.32 11.856 22.32H20.064C20.944 22.32 21.664 21.6 21.664 20.72C21.664 19.84 20.944 19.12 20.064 19.12H11.856Z" fill="#020814"/>
|
|
12
12
|
</svg>
|
|
13
|
-
`,
|
|
13
|
+
`,k2=`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
14
14
|
<circle cx="16" cy="16" r="16" fill="#FFCB82"/>
|
|
15
15
|
<path d="M18.1627 23.3216C17.9241 23.3211 17.69 23.2566 17.4848 23.1349L12.7916 20.3783C12.7359 20.3457 12.6725 20.3285 12.608 20.3285H10.3391C9.98405 20.328 9.64369 20.1868 9.39266 19.9358C9.14163 19.6848 9.00041 19.3444 9 18.9894V13.3519C9.00005 12.9968 9.14113 12.6563 9.3922 12.4052C9.64328 12.1542 9.98379 12.0131 10.3389 12.013H10.3482L12.5836 12.0285H12.5859C12.6509 12.0284 12.7147 12.011 12.7707 11.9779L17.4803 9.18705C17.6836 9.06656 17.9152 9.00204 18.1516 9.00005C18.388 8.99806 18.6206 9.05866 18.826 9.17571C19.0313 9.29276 19.2021 9.46208 19.3208 9.66647C19.4395 9.87086 19.502 10.103 19.502 10.3394V21.98C19.5011 22.3351 19.3598 22.6755 19.1088 22.9267C18.8579 23.178 18.5178 23.3198 18.1627 23.3212V23.3216ZM10.3391 12.9896C10.243 12.9896 10.1508 13.0278 10.0828 13.0957C10.0148 13.1636 9.97661 13.2558 9.97656 13.3519V18.9894C9.97672 19.0855 10.015 19.1776 10.0829 19.2456C10.1509 19.3135 10.243 19.3517 10.3391 19.3519H12.6088C12.8472 19.3519 13.0813 19.4155 13.2869 19.5363L17.9799 22.2929C18.035 22.3255 18.0977 22.3428 18.1616 22.3433C18.2256 22.3438 18.2886 22.3273 18.3441 22.2955C18.3997 22.2638 18.4458 22.2179 18.4779 22.1626C18.51 22.1072 18.5268 22.0444 18.5268 21.9804V10.3398C18.5268 10.2758 18.51 10.213 18.4779 10.1576C18.4458 10.1023 18.3997 10.0564 18.3441 10.0247C18.2886 9.99292 18.2256 9.97645 18.1616 9.97691C18.0977 9.97737 18.035 9.99475 17.9799 10.0273L13.2686 12.8179C13.0592 12.9419 12.8201 13.0066 12.5768 13.005L10.3416 12.9896H10.3391Z" fill="#020814" stroke="#020814" stroke-width="0.3"/>
|
|
16
16
|
<path d="M20.89 19.984C20.8127 19.9841 20.7376 19.9579 20.6771 19.9098C20.6165 19.8616 20.5741 19.7944 20.5567 19.719C20.5394 19.6436 20.5481 19.5646 20.5814 19.4948C20.6148 19.425 20.6708 19.3686 20.7404 19.3348C21.1965 19.1133 21.5767 18.7059 21.84 18.1567C22.0957 17.6237 22.2178 16.9962 22.1838 16.3895C22.1537 15.8506 22.0021 15.3544 21.7457 14.9557C21.466 14.52 21.0723 14.21 20.5756 14.0342C20.4901 14.004 20.4201 13.941 20.3811 13.8592C20.3421 13.7774 20.3371 13.6834 20.3674 13.5979C20.3976 13.5124 20.4606 13.4425 20.5424 13.4034C20.6242 13.3644 20.7182 13.3595 20.8037 13.3897C21.4291 13.6074 21.9634 14.0288 22.3209 14.5862C22.641 15.0844 22.8287 15.6948 22.8664 16.3512C22.9066 17.071 22.7611 17.8171 22.4562 18.4522C22.1254 19.1422 21.6359 19.66 21.039 19.9497C20.9926 19.9723 20.9417 19.984 20.89 19.984Z" fill="#020814" stroke="#020814" stroke-width="0.5"/>
|
|
17
17
|
</svg>
|
|
18
|
-
`,
|
|
18
|
+
`,U2=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
19
19
|
<path d="M6.92969 13.056C6.92969 13.7 7.45969 14.222 8.11569 14.222C8.77069 14.222 9.30169 13.7 9.30169 13.056H10.0927C10.0927 14.13 9.20769 15 8.11569 15C7.02369 15 6.13869 14.13 6.13869 13.056H6.92969ZM12.0397 4.344C12.3247 4.944 12.4737 5.596 12.4737 6.258V9.175C12.4737 9.245 12.4937 9.315 12.5297 9.377L13.6367 11.173C13.7061 11.2918 13.7429 11.4268 13.7434 11.5644C13.7438 11.702 13.7079 11.8372 13.6393 11.9565C13.5707 12.0757 13.4718 12.1747 13.3526 12.2435C13.2335 12.3122 13.0983 12.3483 12.9607 12.348H3.89569L4.68669 11.57H12.9607L11.8527 9.77C11.7387 9.58958 11.6783 9.38044 11.6787 9.167V6.257C11.6787 5.807 11.5977 5.361 11.4387 4.939L12.0397 4.344ZM11.8467 2.239C11.9288 2.15692 12.0401 2.1108 12.1562 2.1108C12.2723 2.1108 12.3836 2.15692 12.4657 2.239C12.5478 2.32108 12.5939 2.43242 12.5939 2.5485C12.5939 2.66459 12.5478 2.77592 12.4657 2.858L3.18569 12.138C3.14511 12.1787 3.09691 12.211 3.04384 12.2331C2.99077 12.2552 2.93387 12.2666 2.8764 12.2667C2.81892 12.2668 2.76198 12.2556 2.70884 12.2337C2.6557 12.2117 2.6074 12.1796 2.56669 12.139C2.52598 12.0984 2.49366 12.0502 2.47158 11.9972C2.4495 11.9441 2.43808 11.8872 2.43799 11.8297C2.4379 11.7722 2.44913 11.7153 2.47104 11.6622C2.49295 11.609 2.52511 11.5607 2.56569 11.52L11.8467 2.239ZM8.07969 1C8.18469 1 8.28569 1.041 8.35969 1.114C8.39631 1.14984 8.42543 1.19262 8.44534 1.23983C8.46526 1.28705 8.47557 1.33776 8.47569 1.389V1.856C9.19869 1.914 9.89569 2.156 10.4957 2.556L9.93569 3.116C9.45583 2.82552 8.91258 2.65599 8.35269 2.622H8.11269C6.14569 2.622 4.55269 4.189 4.55269 6.122L4.56469 8.392L3.77369 9.171V6.106C3.77802 5.52052 3.90278 4.9422 4.14018 4.407C4.37759 3.8718 4.72258 3.39117 5.15369 2.995C5.85095 2.35177 6.73945 1.95423 7.68369 1.863V1.39C7.68369 1.287 7.72669 1.188 7.80069 1.115C7.87505 1.04162 7.97522 1.00033 8.07969 1Z" fill="#7C838E" stroke="#7C838E" stroke-width="0.342857"/>
|
|
20
20
|
</svg>
|
|
21
|
-
`,
|
|
21
|
+
`,N2=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
22
22
|
<path d="M14.325 5.95002L10.0781 1.70939C9.96563 1.59689 9.82032 1.54221 9.67344 1.54221C9.52657 1.54221 9.37969 1.59689 9.26876 1.70939L6.49219 4.48283C6.28126 4.45939 6.07032 4.44846 5.85782 4.44846C4.59688 4.44846 3.33438 4.86252 2.29844 5.69221C2.03282 5.90314 2.01094 6.30158 2.25157 6.54221L5.38282 9.66877L1.67032 13.375C1.62501 13.4203 1.59688 13.4797 1.59063 13.5438L1.53282 14.1844C1.51719 14.3469 1.64688 14.4844 1.80626 14.4844C1.81563 14.4844 1.82344 14.4844 1.83282 14.4828L2.47344 14.425C2.53751 14.4203 2.59688 14.3906 2.64219 14.3453L6.35469 10.6375L9.48594 13.7641C9.59844 13.8766 9.74376 13.9313 9.89063 13.9313C10.0578 13.9313 10.2234 13.8594 10.3375 13.7172C11.3078 12.5078 11.7109 10.9922 11.5469 9.52814L14.3234 6.75627C14.5484 6.53439 14.5484 6.17346 14.325 5.95002ZM10.6703 8.65471L10.2484 9.07658L10.3141 9.66877C10.3781 10.2485 10.3313 10.825 10.1734 11.3844C10.0797 11.711 9.95313 12.0235 9.79063 12.3172L3.70313 6.23752C3.92501 6.11564 4.15626 6.01252 4.39844 5.92971C4.86719 5.76721 5.35782 5.68752 5.85782 5.68752C6.02344 5.68752 6.19063 5.69533 6.35626 5.71564L6.94844 5.78127L9.67501 3.05783L12.975 6.35314L10.6703 8.65471Z" fill="#7C838E"/>
|
|
23
23
|
</svg>
|
|
24
|
-
`,
|
|
24
|
+
`,D2=`<svg width="13" height="10" viewBox="0 0 13 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
25
25
|
<path d="M10.4464 1.00743C10.9346 0.530944 11.7166 0.540543 12.1929 1.02886C12.669 1.51697 12.6594 2.29858 12.1714 2.77483L5.5787 9.20931C5.05539 9.72006 4.22159 9.72461 3.69274 9.21961L1.12127 6.76413C0.628033 6.29313 0.610061 5.51144 1.08113 5.01828C1.55212 4.5252 2.33363 4.50725 2.82675 4.97818L4.26713 6.35373C4.46506 6.54275 4.77714 6.54104 4.97299 6.34987L10.4464 1.00743Z" fill="white"/>
|
|
26
26
|
</svg>
|
|
27
|
-
`,
|
|
27
|
+
`,P2=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
28
28
|
<g clip-path="url(#clip0_235_4141)">
|
|
29
29
|
<path d="M6.49384 12.7875C4.87365 12.7875 3.25347 12.1705 2.02015 10.9372C-0.446494 8.47029 -0.446494 4.45619 2.02015 1.98931C4.48656 -0.477098 8.50089 -0.478018 10.9678 1.98931C13.4344 4.45619 13.4344 8.47029 10.9678 10.9372C9.73444 12.1705 8.11403 12.7875 6.49384 12.7875ZM6.49384 1.45585C5.21104 1.45585 3.92801 1.94421 2.95152 2.92069C0.998325 4.87389 0.998325 8.05259 2.95152 10.0058C4.90495 11.9585 8.08296 11.9594 10.0364 10.0058C11.9896 8.05259 11.9896 4.87389 10.0364 2.92069C9.05967 1.94421 7.77687 1.45585 6.49384 1.45585Z" fill="#41464F"/>
|
|
30
30
|
<path d="M15.2108 15.8391C15.0423 15.8391 14.8736 15.7749 14.7452 15.6463L10.2862 11.1868C10.0289 10.9296 10.0289 10.5128 10.2862 10.2555C10.5435 9.99818 10.9603 9.99818 11.2176 10.2555L15.6766 14.7147C15.9339 14.972 15.9339 15.3887 15.6766 15.646C15.6155 15.7073 15.5429 15.7559 15.4629 15.789C15.383 15.8222 15.2973 15.8392 15.2108 15.8391Z" fill="#41464F"/>
|
|
@@ -35,195 +35,195 @@ var Uv=Object.defineProperty;var Nv=(be,j,f)=>j in be?Uv(be,j,{enumerable:!0,con
|
|
|
35
35
|
</clipPath>
|
|
36
36
|
</defs>
|
|
37
37
|
</svg>
|
|
38
|
-
`,
|
|
38
|
+
`,V2=`<svg width="15" height="9" viewBox="0 0 15 9" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
39
39
|
<path d="M13.7551 0.143687H12.4318H10.2877H7.74159H5.12847H2.81687H1.1753C0.907286 0.143687 0.689527 0.205107 0.522019 0.327945C0.354512 0.450784 0.240048 0.607124 0.178629 0.796966C0.11721 0.986807 0.114418 1.19619 0.170254 1.42512C0.22609 1.65405 0.348928 1.88018 0.53877 2.10352C0.951955 2.55021 1.38747 3.01923 1.84533 3.51059C2.30318 4.00194 2.7722 4.49888 3.25239 5.0014L4.65945 6.50897C5.13964 7.01149 5.59749 7.49726 6.03301 7.96628C6.23402 8.17846 6.47411 8.3348 6.75329 8.4353C7.03247 8.53581 7.32003 8.58327 7.61596 8.57768C7.91189 8.5721 8.20223 8.50789 8.487 8.38505C8.77176 8.26221 9.02023 8.08912 9.2324 7.86578C10.0029 7.06174 10.807 6.1907 11.6445 5.25266C12.482 4.31462 13.3587 3.30958 14.2744 2.23753C14.4866 1.98068 14.6317 1.72663 14.7099 1.47537C14.7881 1.22411 14.802 1.00077 14.7518 0.805341C14.7015 0.609916 14.5898 0.450784 14.4168 0.327945C14.2437 0.205107 14.0231 0.143687 13.7551 0.143687Z" fill="#0099FF"/>
|
|
40
40
|
</svg>
|
|
41
|
-
`,
|
|
41
|
+
`,Bc=`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
42
42
|
<rect width="30" height="30" rx="8" fill="#F3F5FA"/>
|
|
43
43
|
<path d="M16.0065 14.997L21.2996 9.70389C21.5668 9.43671 21.5668 8.99621 21.2996 8.72903L21.2707 8.70014C21.0035 8.43296 20.563 8.43296 20.2959 8.70014L15.0027 14.0005L9.70955 8.70014C9.44237 8.43296 9.00187 8.43296 8.73469 8.70014L8.7058 8.72903C8.4314 8.99621 8.4314 9.43671 8.7058 9.70389L13.999 14.997L8.7058 20.2902C8.43862 20.5574 8.43862 20.9979 8.7058 21.2651L8.73469 21.294C9.00187 21.5611 9.44237 21.5611 9.70955 21.294L15.0027 16.0008L20.2959 21.294C20.563 21.5611 21.0035 21.5611 21.2707 21.294L21.2996 21.2651C21.5668 20.9979 21.5668 20.5574 21.2996 20.2902L16.0065 14.997Z" fill="#41464F" stroke="#41464F" stroke-width="0.3"/>
|
|
44
44
|
</svg>
|
|
45
|
-
`,
|
|
45
|
+
`,jc=`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
46
46
|
<rect width="30" height="30" rx="8" fill="#F3F5FA"/>
|
|
47
47
|
<path d="M21.2222 20.9969C21.4285 20.9969 21.6263 21.0788 21.7722 21.2247C21.9181 21.3706 22 21.5684 22 21.7747C22 21.9809 21.9181 22.1788 21.7722 22.3246C21.6263 22.4705 21.4285 22.5524 21.2222 22.5524H8.77778C8.5715 22.5524 8.37367 22.4705 8.22781 22.3246C8.08194 22.1788 8 21.9809 8 21.7747C8 21.5684 8.08194 21.3706 8.22781 21.2247C8.37367 21.0788 8.5715 20.9969 8.77778 20.9969H21.2222ZM15 7C15.2063 7 15.4041 7.08194 15.55 7.22781C15.6958 7.37367 15.7778 7.5715 15.7778 7.77778V17.1726L19.5033 13.447C19.6432 13.3072 19.831 13.226 20.0286 13.2197C20.2262 13.2135 20.4188 13.2827 20.5671 13.4134C20.7155 13.544 20.8086 13.7263 20.8274 13.9231C20.8462 14.1199 20.7894 14.3165 20.6684 14.4729L20.6031 14.546L15.5468 19.6054C15.4129 19.7395 15.2348 19.8201 15.0458 19.8321C14.8568 19.8441 14.6698 19.7868 14.5201 19.6708L14.447 19.6062L9.39533 14.5631C9.25531 14.4234 9.17378 14.2356 9.16732 14.0379C9.16087 13.8402 9.22997 13.6475 9.36058 13.4989C9.49119 13.3504 9.67349 13.2572 9.87038 13.2383C10.0673 13.2194 10.264 13.2762 10.4204 13.3972L10.4936 13.4618L14.2222 17.1827V7.77778C14.2222 7.5715 14.3042 7.37367 14.45 7.22781C14.5959 7.08194 14.7937 7 15 7Z" fill="#41464F"/>
|
|
48
48
|
</svg>
|
|
49
|
-
`,
|
|
49
|
+
`,qc=`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
50
50
|
<rect width="30" height="30" rx="8" fill="#F3F5FA"/>
|
|
51
51
|
<path d="M15.7116 15.7087L23.1973 15.7087C23.5751 15.7087 23.8866 15.3972 23.8866 15.0193L23.8866 14.9785C23.8866 14.6006 23.5751 14.2891 23.1973 14.2891L15.7065 14.2943L15.7116 6.8035C15.7116 6.42564 15.4002 6.11417 15.0223 6.11417H14.9815C14.5985 6.10906 14.287 6.42054 14.2921 6.8035L14.2921 14.2891L6.80647 14.2891C6.42861 14.2891 6.11714 14.6006 6.11714 14.9785L6.11714 15.0193C6.11714 15.3972 6.42861 15.7087 6.80647 15.7087L14.2921 15.7087L14.2921 23.1943C14.2921 23.5722 14.6036 23.8836 14.9815 23.8836H15.0223C15.4002 23.8836 15.7116 23.5722 15.7116 23.1943L15.7116 15.7087Z" fill="#41464F" stroke="#41464F" stroke-width="0.3"/>
|
|
52
52
|
</svg>
|
|
53
|
-
`,
|
|
53
|
+
`,Kc=`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
54
54
|
<rect width="30" height="30" rx="8" fill="#F3F5FA"/>
|
|
55
55
|
<path d="M23.1974 15.7086L15.7117 15.7086L14.2922 15.7086H6.80655C6.42869 15.7086 6.11721 15.3971 6.11721 15.0193L6.11721 14.9784C6.11721 14.6006 6.42869 14.2891 6.80655 14.2891L14.2922 14.2891L15.7066 14.2942L23.1974 14.2891C23.5752 14.2891 23.8867 14.6006 23.8867 14.9784V15.0193C23.8867 15.3971 23.5752 15.7086 23.1974 15.7086Z" fill="#41464F" stroke="#41464F" stroke-width="0.3"/>
|
|
56
56
|
</svg>
|
|
57
|
-
`,
|
|
57
|
+
`,F2=`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
58
58
|
<path d="M0.570362 5.55844L3.13238 7.36772C3.40259 7.55765 3.77288 7.52766 4.00306 7.29775L7.68596 3.61921C7.87611 3.42928 8.19636 3.42928 8.38651 3.61921C8.57666 3.80913 8.57666 4.12901 8.38651 4.31893L4.70362 7.99748C4.47343 8.22738 4.4334 8.59724 4.63356 8.86713L6.44499 11.4261C7.08549 12.3358 8.48659 12.1258 8.83687 11.0663L11.9293 1.78993C12.2796 0.730354 11.2688 -0.279246 10.2079 0.0706154L0.930646 3.16939C-0.130189 3.51925 -0.330346 4.91869 0.570362 5.55844Z" fill="white"/>
|
|
59
59
|
</svg>
|
|
60
|
-
`,
|
|
60
|
+
`,zc=`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
61
61
|
<rect width="30" height="30" rx="8" fill="#F3F5FA"/>
|
|
62
62
|
<path d="M12.1133 8.06641H17.8545C17.8597 8.06706 17.8856 8.07208 17.9355 8.10742C17.9978 8.15153 18.0689 8.22385 18.1426 8.31934C18.2907 8.51132 18.3903 8.72221 18.4072 8.75977L18.4121 8.77051L18.418 8.78125L18.8398 9.62207L18.8438 9.62793L18.8623 9.66406L19.0205 9.96973H22.6367C22.9218 9.96973 23.1504 10.2008 23.1504 10.4775V22.3994C23.1504 22.6766 22.9217 22.9082 22.6367 22.9082H7.33008C7.04513 22.9082 6.81641 22.6766 6.81641 22.3994V10.4775C6.81643 10.2008 7.04503 9.96973 7.33008 9.96973H10.9473L11.1055 9.66406L11.124 9.62793L11.127 9.62207L11.5547 8.77148L11.5615 8.75977L11.5674 8.74707C11.5674 8.74704 11.5911 8.69352 11.6348 8.61426C11.6796 8.53289 11.7413 8.43153 11.8145 8.33496C11.8895 8.23589 11.9636 8.15914 12.0293 8.11133C12.0945 8.0639 12.1201 8.06641 12.1133 8.06641Z" stroke="#020814" stroke-width="1.13337"/>
|
|
63
63
|
<circle cx="14.9998" cy="16.2162" r="2.45563" stroke="#020814" stroke-width="1.13337"/>
|
|
64
64
|
</svg>
|
|
65
|
-
`,
|
|
65
|
+
`,Qc=`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
66
66
|
<rect width="30" height="30" rx="8" fill="#F3F5FA"/>
|
|
67
67
|
<path d="M9.58301 8.05371H20.417C21.6274 8.05388 22.5711 8.99756 22.5713 10.208V21.042C22.5711 22.2524 21.6274 23.1961 20.417 23.1963H9.58301C8.37256 23.1961 7.42888 22.2524 7.42871 21.042V10.208C7.42888 8.99756 8.37256 8.05388 9.58301 8.05371Z" stroke="#020814" stroke-width="1.10795"/>
|
|
68
68
|
<path d="M12.7051 11.8972C12.9571 11.8973 13.2066 11.9473 13.4395 12.0437C13.6724 12.1402 13.8842 12.2815 14.0625 12.4597C14.1964 12.5936 14.3095 12.7465 14.3984 12.9128L14.4795 13.0828L14.543 13.2605C14.5977 13.4408 14.625 13.629 14.625 13.8181C14.625 14.0701 14.5759 14.3197 14.4795 14.5525C14.383 14.7855 14.2408 14.9972 14.0625 15.1755C13.8842 15.3539 13.6725 15.496 13.4395 15.5925C13.2066 15.6889 12.957 15.738 12.7051 15.738C12.4529 15.738 12.2027 15.689 11.9697 15.5925C11.7367 15.496 11.525 15.3539 11.3467 15.1755C11.1685 14.9973 11.0271 14.7854 10.9307 14.5525C10.8342 14.3196 10.7842 14.0702 10.7842 13.8181C10.7842 13.5659 10.8342 13.3158 10.9307 13.0828C11.0272 12.8498 11.1684 12.638 11.3467 12.4597C11.525 12.2814 11.7368 12.1402 11.9697 12.0437C12.2027 11.9472 12.4529 11.8972 12.7051 11.8972Z" stroke="#020814" stroke-width="0.886364"/>
|
|
69
69
|
<path d="M11.3822 21.3889C11.2421 21.6411 10.9325 21.7446 10.6688 21.6274L10.6472 21.6178C10.3779 21.4981 10.2567 21.1829 10.3763 20.9136C11.5138 18.2595 13.3555 16.9053 15.793 16.7428C17.8513 16.6345 19.368 16.0386 20.2888 14.9553L20.3157 14.9246C20.5105 14.7019 20.8487 14.6786 21.0723 14.8724C21.2974 15.0675 21.321 15.4084 21.1248 15.6326L21.1013 15.6595C19.9638 16.9595 18.1763 17.7178 15.8472 17.8261C13.843 17.9345 12.3805 19.072 11.4055 21.347L11.3822 21.3889Z" fill="#020814"/>
|
|
70
70
|
</svg>
|
|
71
|
-
|
|
71
|
+
`,Wc=`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
72
72
|
<rect width="30" height="30" rx="8" fill="#F3F5FA"/>
|
|
73
73
|
<path d="M14.8302 22.7855C19.2238 22.7855 22.7855 19.2238 22.7855 14.8302C22.7855 10.4367 19.2238 6.875 14.8302 6.875C10.4367 6.875 6.875 10.4367 6.875 14.8302C6.875 19.2238 10.4367 22.7855 14.8302 22.7855Z" stroke="#020814" stroke-width="0.993306" stroke-linejoin="round"/>
|
|
74
74
|
<path d="M11.5365 13.3759C11.5365 13.8597 11.9287 14.2518 12.4124 14.2518C12.8962 14.2518 13.2884 13.8597 13.2884 13.3759C13.2884 12.8922 12.8962 12.5 12.4124 12.5C11.9287 12.5 11.5365 12.8922 11.5365 13.3759ZM16.7918 13.3759C16.7918 13.8597 17.184 14.2518 17.6677 14.2518C18.1515 14.2518 18.5437 13.8597 18.5437 13.3759C18.5437 12.8922 18.1515 12.5 17.6677 12.5C17.184 12.5 16.7918 12.8922 16.7918 13.3759ZM15.0399 19.0689C13.8139 19.0689 12.5876 18.4551 11.8869 17.4923C11.6235 17.1419 11.4496 16.7046 11.2731 16.3543C11.1862 16.0909 11.36 15.8288 11.5366 15.7405C11.8 15.6536 11.9739 15.8274 12.0621 16.0039C12.1491 16.3542 12.3256 16.6178 12.4994 16.8799C13.2002 17.7558 14.0761 18.1945 15.0386 18.1945C16.0014 18.1945 16.9657 17.7572 17.4912 16.9682C17.6664 16.7047 17.8416 16.3557 17.9285 16.0922C18.0168 15.8288 18.2789 15.7419 18.454 15.8288C18.7174 15.9157 18.8044 16.1791 18.7174 16.3543C18.6293 16.7916 18.3672 17.1419 18.1036 17.4923C17.4924 18.4564 16.2663 19.0689 15.0399 19.0689Z" fill="#020814" stroke="#020814" stroke-width="0.1875"/>
|
|
75
75
|
</svg>
|
|
76
|
-
|
|
76
|
+
`,$2=`<svg width="24" height="23" viewBox="0 0 24 23" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
77
77
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.9775 22.1738C11.1802 22.1738 10.5365 21.5302 10.5365 20.7328V12.567H2.37071C1.57334 12.567 0.929688 11.9233 0.929688 11.126C0.929688 10.3286 1.57334 9.68495 2.37071 9.68495H10.5365V1.51915C10.5365 0.721782 11.1802 0.078125 11.9775 0.078125C12.7749 0.078125 13.4186 0.721782 13.4186 1.51915V9.68495H21.5844C22.3817 9.68495 23.0254 10.3286 23.0254 11.126C23.0254 11.9233 22.3817 12.567 21.5844 12.567H13.4186V20.7328C13.4186 21.5302 12.7749 22.1738 11.9775 22.1738Z" fill="#0099FF"/>
|
|
78
78
|
</svg>
|
|
79
|
-
`,
|
|
79
|
+
`,Zc=`<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
80
80
|
<rect width="30" height="30" rx="8" fill="#F3F5FA"/>
|
|
81
81
|
<path d="M10.5645 6.8125H19.4355C19.764 6.81251 20.0891 6.87729 20.3926 7.00293C20.6961 7.12867 20.9727 7.31259 21.2051 7.54492C21.4374 7.77726 21.6213 8.05386 21.7471 8.35742C21.8727 8.66086 21.9375 8.98603 21.9375 9.31445V19.8545C21.9375 20.1831 21.8728 20.5089 21.7471 20.8125C21.6214 21.1159 21.4373 21.3918 21.2051 21.624C20.9727 21.8564 20.6961 22.0403 20.3926 22.166C20.0891 22.2917 19.764 22.3564 19.4355 22.3564H10.5645C10.236 22.3564 9.9109 22.2917 9.60742 22.166C9.30386 22.0403 9.02726 21.8564 8.79492 21.624C8.56272 21.3918 8.37863 21.1159 8.25293 20.8125C8.12719 20.5089 8.0625 20.1831 8.0625 19.8545V9.31445C8.06251 8.98603 8.12729 8.66086 8.25293 8.35742C8.37867 8.05386 8.56259 7.77726 8.79492 7.54492C9.02726 7.31259 9.30386 7.12867 9.60742 7.00293C9.91086 6.87729 10.236 6.81251 10.5645 6.8125Z" stroke="#020814" stroke-width="1.125"/>
|
|
82
82
|
<path d="M11.3707 12.7823H15.403C15.5741 12.7823 15.7382 12.7143 15.8592 12.5933C15.9802 12.4723 16.0482 12.3082 16.0482 12.1371C16.0482 11.966 15.9802 11.8019 15.8592 11.6809C15.7382 11.5599 15.5741 11.4919 15.403 11.4919H11.3707C11.1996 11.4919 11.0355 11.5599 10.9145 11.6809C10.7936 11.8019 10.7256 11.966 10.7256 12.1371C10.7256 12.3082 10.7936 12.4723 10.9145 12.5933C11.0355 12.7143 11.1996 12.7823 11.3707 12.7823Z" fill="#020814"/>
|
|
83
83
|
<path d="M11.3709 16.0079H18.6289C18.7137 16.0079 18.7976 15.9912 18.8758 15.9588C18.9541 15.9264 19.0253 15.8788 19.0852 15.8189C19.1451 15.759 19.1926 15.6879 19.2251 15.6096C19.2575 15.5313 19.2742 15.4474 19.2742 15.3627C19.2742 15.278 19.2575 15.1941 19.2251 15.1158C19.1926 15.0375 19.1451 14.9664 19.0852 14.9065C19.0253 14.8465 18.9541 14.799 18.8758 14.7666C18.7976 14.7342 18.7137 14.7175 18.6289 14.7175H11.3709C11.2861 14.7175 11.2022 14.7342 11.1239 14.7666C11.0456 14.799 10.9745 14.8465 10.9146 14.9065C10.8547 14.9664 10.8071 15.0375 10.7747 15.1158C10.7423 15.1941 10.7256 15.278 10.7256 15.3627C10.7256 15.4474 10.7423 15.5313 10.7747 15.6096C10.8071 15.6879 10.8547 15.759 10.9146 15.8189C10.9745 15.8788 11.0456 15.9264 11.1239 15.9588C11.2022 15.9912 11.2861 16.0079 11.3709 16.0079Z" fill="#020814"/>
|
|
84
84
|
</svg>
|
|
85
|
-
`,
|
|
85
|
+
`,Yc=`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
86
86
|
<path d="M0.569914 5.56064L3.12991 7.37064C3.39991 7.56064 3.76991 7.53064 3.99991 7.30064L7.67991 3.62064C7.86991 3.43064 8.18991 3.43064 8.37991 3.62064C8.56991 3.81064 8.56991 4.13064 8.37991 4.32064L4.69991 8.00064C4.46991 8.23064 4.42991 8.60064 4.62991 8.87064L6.43991 11.4306C7.07991 12.3406 8.47991 12.1306 8.82991 11.0706L11.9199 1.79064C12.2699 0.730643 11.2599 -0.279357 10.1999 0.0706434L0.929914 3.17064C-0.130086 3.52064 -0.330086 4.92064 0.569914 5.56064Z" fill="#CCCCCC"/>
|
|
87
87
|
</svg>
|
|
88
|
-
`,
|
|
88
|
+
`,H2=`<svg width="24" height="23" viewBox="0 0 24 23" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
89
89
|
<path d="M11.7722 18.572L11.7707 18.572C11.7637 18.572 11.7565 18.5721 11.7492 18.5722C11.7431 18.5722 11.7369 18.5723 11.7305 18.5724L11.7209 18.5725C11.7099 18.5726 11.6985 18.5727 11.687 18.5727C9.54072 18.5727 8.01707 17.6033 7.02388 16.6169C6.03227 15.6321 5.56502 14.6267 5.52498 14.5378C5.33961 14.127 5.52182 13.6447 5.93196 13.4591L5.93224 13.459C6.34282 13.2745 6.82354 13.4557 7.0099 13.8635L7.00993 13.8636C7.03616 13.9211 7.40015 14.6941 8.163 15.4512C8.92441 16.2068 10.078 16.9419 11.6898 16.9419C11.6994 16.9419 11.7092 16.9417 11.7201 16.9416L11.7205 16.9416L11.7722 18.572ZM11.7722 18.572C16.2412 18.5194 17.9935 14.7027 18.0683 14.5343C18.2522 14.1225 18.0666 13.6406 17.6557 13.4575C17.2421 13.2722 16.762 13.4593 16.5795 13.8695C16.5508 13.9319 15.1674 16.9009 11.7538 16.9412L11.7722 18.572ZM0.656307 11.5242C0.656307 17.6828 5.64829 22.6747 11.8069 22.6747C17.9651 22.6747 22.9571 17.6828 22.9571 11.5242C22.9571 5.36557 17.9651 0.373592 11.8069 0.373592C5.64829 0.373592 0.656307 5.36557 0.656307 11.5242ZM2.28714 11.5242C2.28714 6.27482 6.55754 2.00443 11.8069 2.00443C17.0559 2.00443 21.3263 6.27482 21.3263 11.5242C21.3263 16.7732 17.0559 21.0439 11.8069 21.0439C6.55754 21.0439 2.28714 16.7732 2.28714 11.5242ZM13.7399 9.45679C13.7399 10.2855 14.4114 10.9581 15.2409 10.9581C16.0701 10.9581 16.7419 10.2855 16.7419 9.45679C16.7419 8.6287 16.07 7.9565 15.2409 7.9565C14.4115 7.9565 13.7399 8.62873 13.7399 9.45679ZM6.84982 9.45679C6.84982 10.2855 7.52128 10.9581 8.35081 10.9581C9.17997 10.9581 9.85179 10.2855 9.85179 9.45679C9.85179 8.6287 9.17989 7.9565 8.35081 7.9565C7.52136 7.9565 6.84982 8.62873 6.84982 9.45679Z" fill="#A1AABF" stroke="#A1AABF" stroke-width="0.252815"/>
|
|
90
90
|
</svg>
|
|
91
|
-
`,
|
|
91
|
+
`,G2=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
92
92
|
<path d="M10.8822 2.33447C10.8903 2.33447 10.8969 2.33587 10.9007 2.3374C10.904 2.33875 10.9079 2.34173 10.9134 2.34717H10.9144L15.6917 7.11865C15.7087 7.13617 15.7067 7.1594 15.6927 7.17334L15.6898 7.17627L12.5667 10.2944L12.3616 10.4985L12.3939 10.7856C12.5613 12.28 12.1495 13.8247 11.1615 15.0562C11.1559 15.0631 11.1511 15.0669 11.1468 15.0688C11.1419 15.0711 11.1352 15.0727 11.1273 15.0728C11.1195 15.0728 11.1135 15.0713 11.1097 15.0698L11.096 15.0601L7.57259 11.5425L7.14876 11.1196L6.72493 11.5425L2.62141 15.6392L2.35286 15.6636L2.37727 15.397L6.47981 11.3022L6.90462 10.8774L6.47981 10.4526L2.95735 6.93506H2.95638C2.94819 6.92654 2.94391 6.91545 2.94466 6.90186C2.94549 6.88815 2.95157 6.87968 2.9593 6.87354L2.96126 6.87158C4.01592 6.02707 5.30258 5.604 6.59016 5.604C6.80849 5.60401 7.02375 5.6154 7.23763 5.63916L7.52376 5.67139L7.72786 5.46729L10.8509 2.34717L10.8548 2.34424C10.8576 2.3414 10.8602 2.33976 10.8636 2.33838C10.8676 2.33677 10.874 2.33453 10.8822 2.33447Z" stroke="#41464F" stroke-width="1.2"/>
|
|
93
93
|
</svg>
|
|
94
|
-
`,
|
|
94
|
+
`,B2=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
95
95
|
<path d="M6.33852 10.6891L3.12099 7.4764C2.87373 7.22914 2.89621 6.81972 3.16915 6.60297C3.68867 6.18689 4.26364 5.87253 4.86681 5.65971C5.49953 5.43647 6.16328 5.32495 6.8266 5.32495C7.04496 5.32495 7.26171 5.33619 7.47846 5.36028L10.3315 2.51042C10.4455 2.39482 10.5964 2.33862 10.7474 2.33862C10.8983 2.33862 11.0476 2.39482 11.1632 2.51042L15.5271 6.86789C15.7567 7.09748 15.7567 7.46837 15.5255 7.69636L12.6724 10.5446M7.33717 11.6846L10.5547 14.8973C10.6703 15.0129 10.8196 15.0691 10.9705 15.0691" stroke="#41464F" stroke-width="1.125"/>
|
|
96
96
|
<path d="M14.9394 12.0909L13.6821 13.3482L12.4249 12.091C12.3326 11.9988 12.1833 11.9987 12.091 12.091C11.9991 12.1829 11.999 12.3325 12.0912 12.4247L13.3483 13.682L12.0911 14.9392C11.999 15.0313 11.999 15.181 12.0911 15.2731C12.1833 15.3653 12.3328 15.3652 12.4249 15.2731L13.6821 14.0159L14.9393 15.2732C15.0314 15.3653 15.1812 15.3651 15.2732 15.2732C15.3655 15.1809 15.3653 15.0314 15.2732 14.9393L14.0159 13.6821L15.2731 12.425C15.3654 12.3327 15.3653 12.1833 15.2731 12.0911C15.1808 11.9989 15.0315 11.9988 14.9394 12.0909Z" fill="#41464F" stroke="#41464F" stroke-width="0.75"/>
|
|
97
97
|
<path d="M6.97821 11.3252L2.28485 16.0186L1.95868 16.0479L1.98798 15.7227L6.71356 11.0625L6.97821 11.3252Z" stroke="#41464F" stroke-width="1.125"/>
|
|
98
98
|
</svg>
|
|
99
|
-
`,
|
|
99
|
+
`,j2=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
100
100
|
<path d="M15.0637 12.9112L13.9949 10.77C13.9165 10.6141 13.8754 10.442 13.8749 10.2675V7.38749C13.8838 6.16141 13.4411 4.97495 12.6312 4.0544C11.8213 3.13384 10.7009 2.5436 9.48369 2.39624H9.37494V1.64624C9.37494 1.54678 9.33543 1.4514 9.2651 1.38108C9.19478 1.31075 9.09939 1.27124 8.99994 1.27124C8.90048 1.27124 8.8051 1.31075 8.73477 1.38108C8.66445 1.4514 8.62494 1.54678 8.62494 1.64624V2.39624C7.40194 2.49059 6.25947 3.04252 5.4254 3.94193C4.59133 4.84134 4.12696 6.02211 4.12494 7.24874V10.2675C4.12446 10.442 4.08338 10.6141 4.00494 10.77L2.93619 12.9112C2.87851 13.0257 2.85113 13.153 2.85665 13.2811C2.86218 13.4091 2.90042 13.5336 2.96774 13.6427C3.03506 13.7517 3.12921 13.8417 3.24119 13.9041C3.35318 13.9664 3.47927 13.999 3.60744 13.9987H14.3924C14.5206 13.999 14.6467 13.9664 14.7587 13.9041C14.8707 13.8417 14.9648 13.7517 15.0321 13.6427C15.0994 13.5336 15.1377 13.4091 15.1432 13.2811C15.1487 13.153 15.1214 13.0257 15.0637 12.9112ZM3.60744 13.2487L4.67619 11.1075C4.80686 10.8468 4.87492 10.5591 4.87494 10.2675V7.26749C4.87577 6.69124 4.99734 6.12156 5.2318 5.59516C5.46625 5.06876 5.8084 4.59733 6.23619 4.21124C6.98769 3.51376 7.97464 3.12541 8.99994 3.12374C9.13892 3.12267 9.27786 3.12893 9.41619 3.14249C10.4474 3.27213 11.395 3.77621 12.0788 4.55888C12.7626 5.34155 13.1349 6.34823 13.1249 7.38749V10.2675C13.125 10.5591 13.193 10.8468 13.3237 11.1075L14.3924 13.2487H3.60744Z" fill="#41464F" stroke="#41464F" stroke-width="0.5"/>
|
|
101
101
|
<path d="M9.13013 15.9997C8.39213 15.9997 7.79588 15.4125 7.79588 14.688H6.90601C6.90601 15.8962 7.90163 16.875 9.13013 16.875C10.3586 16.875 11.3543 15.8962 11.3543 14.688H10.4644C10.4644 15.4125 9.86701 15.9997 9.13013 15.9997Z" fill="#41464F" stroke="#41464F" stroke-width="0.385714"/>
|
|
102
102
|
</svg>
|
|
103
|
-
`,
|
|
103
|
+
`,q2=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
104
104
|
<path d="M7.7959 14.688C7.7959 15.4125 8.39215 15.9998 9.13015 15.9998C9.86702 15.9998 10.4644 15.4125 10.4644 14.688H11.3543C11.3543 15.8962 10.3586 16.875 9.13015 16.875C7.90165 16.875 6.90602 15.8962 6.90602 14.688H7.7959ZM13.5446 4.887C13.8653 5.562 14.0329 6.2955 14.0329 7.04025V10.3219C14.0329 10.4006 14.0554 10.4794 14.0959 10.5491L15.3413 12.5696C15.4194 12.7033 15.4608 12.8552 15.4613 13.0099C15.4618 13.1647 15.4214 13.3169 15.3442 13.451C15.267 13.5852 15.1558 13.6966 15.0217 13.7739C14.8877 13.8513 14.7355 13.8918 14.5808 13.8915H4.38265L5.27252 13.0162H14.5808L13.3343 10.9913C13.206 10.7883 13.1381 10.553 13.1385 10.3129V7.03912C13.1385 6.53287 13.0474 6.03113 12.8685 5.55638L13.5446 4.887ZM13.3275 2.51888C13.4199 2.42653 13.5451 2.37465 13.6757 2.37465C13.8063 2.37465 13.9316 2.42653 14.0239 2.51888C14.1162 2.61122 14.1681 2.73647 14.1681 2.86706C14.1681 2.99766 14.1162 3.1229 14.0239 3.21525L3.5839 13.6552C3.53825 13.701 3.48402 13.7374 3.42432 13.7622C3.36462 13.7871 3.30061 13.7999 3.23594 13.8C3.17128 13.8001 3.10723 13.7875 3.04745 13.7629C2.98766 13.7382 2.93332 13.702 2.88752 13.6564C2.84173 13.6107 2.80537 13.5565 2.78052 13.4968C2.75568 13.4371 2.74284 13.3731 2.74274 13.3084C2.74263 13.2438 2.75527 13.1797 2.77992 13.1199C2.80457 13.0601 2.84075 13.0058 2.8864 12.96L13.3275 2.51888ZM9.08965 1.125C9.20777 1.125 9.3214 1.17112 9.40465 1.25325C9.44585 1.29357 9.4786 1.3417 9.50101 1.39481C9.52342 1.44793 9.53502 1.50498 9.53515 1.56263V2.088C10.3485 2.15325 11.1326 2.4255 11.8076 2.8755L11.1776 3.5055C10.6378 3.17871 10.0267 2.98799 9.39677 2.94975H9.12677C6.9139 2.94975 5.12177 4.71263 5.12177 6.88725L5.13527 9.441L4.2454 10.3174V6.86925C4.25028 6.21059 4.39062 5.55997 4.65771 4.95787C4.92479 4.35577 5.3129 3.81506 5.7979 3.36937C6.58232 2.64575 7.58188 2.19851 8.64415 2.09588V1.56375C8.64415 1.44787 8.69252 1.3365 8.77577 1.25438C8.85943 1.17182 8.97212 1.12537 9.08965 1.125Z" fill="#41464F" stroke="#41464F" stroke-width="0.385714"/>
|
|
105
105
|
</svg>
|
|
106
|
-
`,
|
|
106
|
+
`,K2=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
107
107
|
<path d="M16.3516 2.41907H11.767H2.9253C2.7462 2.41907 2.57444 2.49022 2.44779 2.61686C2.32115 2.7435 2.25 2.91527 2.25 3.09437V15.5809L5.25697 13.2179H15.0747C15.2536 13.2179 15.4252 13.1468 15.5518 13.0204C15.6785 12.894 15.7497 12.7225 15.75 12.5436V6.40103V2.54978" stroke="#41464F" stroke-width="1.2"/>
|
|
108
108
|
<path d="M12.0164 5.70605C12.206 5.51745 12.5124 5.51748 12.702 5.70605C12.8918 5.89488 12.8918 6.20078 12.702 6.38965L8.27618 10.7939C8.18148 10.8882 8.05721 10.9355 7.93341 10.9355C7.80952 10.9355 7.68444 10.8891 7.58966 10.7949V10.7939L5.29767 8.5127C5.10787 8.32382 5.10784 8.01793 5.29767 7.8291C5.46348 7.66417 5.71879 7.64307 5.90704 7.7666L5.98322 7.8291L7.93243 9.76855L12.0164 5.70605Z" fill="#41464F" stroke="#41464F" stroke-width="0.189873"/>
|
|
109
109
|
</svg>
|
|
110
|
-
`,
|
|
110
|
+
`,z2=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
111
111
|
<path d="M15.75 6.40103V12.5436C15.7497 12.7225 15.6785 12.894 15.5519 13.0204C15.4252 13.1468 15.2536 13.2179 15.0747 13.2179H5.25697L2.25 15.5809V3.09437C2.25 2.91527 2.32115 2.7435 2.44779 2.61686C2.57444 2.49022 2.7462 2.41907 2.9253 2.41907H11.767" stroke="#41464F" stroke-width="1.2"/>
|
|
112
112
|
<circle cx="15.0004" cy="3" r="1.5" fill="#41464F"/>
|
|
113
113
|
</svg>
|
|
114
|
-
`,
|
|
114
|
+
`,Q2=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
115
115
|
<path d="M13.1998 14.1491C13.1998 14.3924 13.1032 14.6256 12.9312 14.7976C12.7592 14.9696 12.5259 15.0662 12.2827 15.0662H5.68249C5.43946 15.0656 5.20657 14.9688 5.03472 14.7969C4.86287 14.6251 4.76604 14.3922 4.76538 14.1491V4.42424H13.1998V14.1491ZM6.5971 2.78045C6.59676 2.75568 6.60139 2.73109 6.61071 2.70813C6.62004 2.68518 6.63387 2.66433 6.65139 2.64681C6.66891 2.62929 6.68976 2.61546 6.71271 2.60614C6.73567 2.59681 6.76026 2.59218 6.78503 2.59252H11.1902C11.2149 2.59218 11.2395 2.59681 11.2625 2.60614C11.2854 2.61546 11.3063 2.62929 11.3238 2.64681C11.3413 2.66433 11.3552 2.68518 11.3645 2.70813C11.3738 2.73109 11.3784 2.75568 11.3781 2.78045V3.3217H6.5971V2.78045ZM15.9486 3.3217H12.4706V2.78045C12.4706 2.44085 12.3357 2.11517 12.0956 1.87503C11.8555 1.6349 11.5298 1.5 11.1902 1.5H6.78503C6.44584 1.50132 6.12092 1.63665 5.88107 1.87649C5.64123 2.11634 5.5059 2.44126 5.50458 2.78045V3.3217H2.01655C1.87644 3.33114 1.74515 3.39345 1.64925 3.49603C1.55335 3.59861 1.5 3.73379 1.5 3.87422C1.5 4.01464 1.55335 4.14983 1.64925 4.25241C1.74515 4.35498 1.87644 4.4173 2.01655 4.42674H3.66284V14.1491C3.66284 14.4144 3.71508 14.677 3.81657 14.922C3.91807 15.1671 4.06684 15.3897 4.25438 15.5772C4.44192 15.7648 4.66457 15.9136 4.9096 16.015C5.15464 16.1165 5.41726 16.1688 5.68249 16.1688H12.2827C12.5479 16.1688 12.8105 16.1165 13.0556 16.015C13.3006 15.9136 13.5233 15.7648 13.7108 15.5772C13.8983 15.3897 14.0471 15.1671 14.1486 14.922C14.2501 14.677 14.3023 14.4144 14.3023 14.1491V4.42424H15.9486C16.0948 4.42424 16.2351 4.36616 16.3384 4.26277C16.4418 4.15939 16.4999 4.01917 16.4999 3.87297C16.5013 3.8002 16.4879 3.7279 16.4607 3.6604C16.4335 3.59291 16.3929 3.53159 16.3415 3.48013C16.29 3.42867 16.2287 3.38811 16.1612 3.36089C16.0937 3.33366 16.0214 3.32034 15.9486 3.3217ZM8.98259 13.4099C9.0552 13.4099 9.12709 13.3956 9.19413 13.3677C9.26118 13.3399 9.32206 13.299 9.37329 13.2476C9.42451 13.1961 9.46506 13.1351 9.49262 13.0679C9.52017 13.0007 9.53419 12.9288 9.53386 12.8562V6.98513C9.53386 6.83893 9.47578 6.69871 9.3724 6.59533C9.26901 6.49194 9.1288 6.43386 8.98259 6.43386C8.83638 6.43386 8.69617 6.49194 8.59278 6.59533C8.4894 6.69871 8.43132 6.83893 8.43132 6.98513V12.8562C8.43099 12.9288 8.44501 13.0007 8.47256 13.0679C8.50012 13.1351 8.54067 13.1961 8.5919 13.2476C8.64312 13.299 8.704 13.3399 8.77105 13.3677C8.8381 13.3956 8.90999 13.4099 8.98259 13.4099ZM6.40916 13.4099C6.55603 13.4099 6.69689 13.3516 6.80074 13.2477C6.90459 13.1439 6.96294 13.003 6.96294 12.8562V6.98513C6.96804 6.90945 6.95753 6.83352 6.93208 6.76206C6.90662 6.6906 6.86675 6.62513 6.81494 6.56972C6.76314 6.5143 6.7005 6.47012 6.63091 6.43992C6.56133 6.40971 6.48628 6.39413 6.41042 6.39413C6.33456 6.39413 6.25951 6.40971 6.18992 6.43992C6.12033 6.47012 6.05769 6.5143 6.00589 6.56972C5.95408 6.62513 5.91421 6.6906 5.88876 6.76206C5.8633 6.83352 5.85279 6.90945 5.85789 6.98513V12.8562C5.86167 13.0014 5.92088 13.1397 6.02339 13.2427C6.1259 13.3457 6.26393 13.4055 6.40916 13.4099ZM11.556 13.4099C11.7025 13.4093 11.8427 13.3506 11.946 13.2469C12.0493 13.1431 12.1073 13.0026 12.1073 12.8562V6.98513C12.1124 6.90945 12.1019 6.83352 12.0764 6.76206C12.051 6.6906 12.0111 6.62513 11.9593 6.56972C11.9075 6.5143 11.8448 6.47012 11.7753 6.43992C11.7057 6.40971 11.6306 6.39413 11.5548 6.39413C11.4789 6.39413 11.4039 6.40971 11.3343 6.43992C11.2647 6.47012 11.202 6.5143 11.1502 6.56972C11.0984 6.62513 11.0586 6.6906 11.0331 6.76206C11.0076 6.83352 10.9971 6.90945 11.0022 6.98513V12.8562C11.0022 13.003 11.0606 13.1439 11.1644 13.2477C11.2683 13.3516 11.4091 13.4099 11.556 13.4099Z" fill="#41464F"/>
|
|
116
116
|
</svg>
|
|
117
|
-
`,
|
|
117
|
+
`,Xc=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
118
118
|
<path d="M13.1998 14.1491C13.1998 14.3924 13.1032 14.6256 12.9312 14.7976C12.7592 14.9696 12.5259 15.0662 12.2827 15.0662H5.68249C5.43946 15.0656 5.20657 14.9688 5.03472 14.7969C4.86287 14.6251 4.76604 14.3922 4.76538 14.1491V4.42424H13.1998V14.1491ZM6.5971 2.78045C6.59676 2.75568 6.60139 2.73109 6.61071 2.70813C6.62004 2.68518 6.63387 2.66433 6.65139 2.64681C6.66891 2.62929 6.68976 2.61546 6.71271 2.60614C6.73567 2.59681 6.76026 2.59218 6.78503 2.59252H11.1902C11.2149 2.59218 11.2395 2.59681 11.2625 2.60614C11.2854 2.61546 11.3063 2.62929 11.3238 2.64681C11.3413 2.66433 11.3552 2.68518 11.3645 2.70813C11.3738 2.73109 11.3784 2.75568 11.3781 2.78045V3.3217H6.5971V2.78045ZM15.9486 3.3217H12.4706V2.78045C12.4706 2.44085 12.3357 2.11517 12.0956 1.87503C11.8555 1.6349 11.5298 1.5 11.1902 1.5H6.78503C6.44584 1.50132 6.12092 1.63665 5.88107 1.87649C5.64123 2.11634 5.5059 2.44126 5.50458 2.78045V3.3217H2.01655C1.87644 3.33114 1.74515 3.39345 1.64925 3.49603C1.55335 3.59861 1.5 3.73379 1.5 3.87422C1.5 4.01464 1.55335 4.14983 1.64925 4.25241C1.74515 4.35498 1.87644 4.4173 2.01655 4.42674H3.66284V14.1491C3.66284 14.4144 3.71508 14.677 3.81657 14.922C3.91807 15.1671 4.06684 15.3897 4.25438 15.5772C4.44192 15.7648 4.66457 15.9136 4.9096 16.015C5.15464 16.1165 5.41726 16.1688 5.68249 16.1688H12.2827C12.5479 16.1688 12.8105 16.1165 13.0556 16.015C13.3006 15.9136 13.5233 15.7648 13.7108 15.5772C13.8983 15.3897 14.0471 15.1671 14.1486 14.922C14.2501 14.677 14.3023 14.4144 14.3023 14.1491V4.42424H15.9486C16.0948 4.42424 16.2351 4.36616 16.3384 4.26277C16.4418 4.15939 16.4999 4.01917 16.4999 3.87297C16.5013 3.8002 16.4879 3.7279 16.4607 3.6604C16.4335 3.59291 16.3929 3.53159 16.3415 3.48013C16.29 3.42867 16.2287 3.38811 16.1612 3.36089C16.0937 3.33366 16.0214 3.32034 15.9486 3.3217ZM8.98259 13.4099C9.0552 13.4099 9.12709 13.3956 9.19413 13.3677C9.26118 13.3399 9.32206 13.299 9.37329 13.2476C9.42451 13.1961 9.46506 13.1351 9.49262 13.0679C9.52017 13.0007 9.53419 12.9288 9.53386 12.8562V6.98513C9.53386 6.83893 9.47578 6.69871 9.3724 6.59533C9.26901 6.49194 9.1288 6.43386 8.98259 6.43386C8.83638 6.43386 8.69617 6.49194 8.59278 6.59533C8.4894 6.69871 8.43132 6.83893 8.43132 6.98513V12.8562C8.43099 12.9288 8.44501 13.0007 8.47256 13.0679C8.50012 13.1351 8.54067 13.1961 8.5919 13.2476C8.64312 13.299 8.704 13.3399 8.77105 13.3677C8.8381 13.3956 8.90999 13.4099 8.98259 13.4099ZM6.40916 13.4099C6.55603 13.4099 6.69689 13.3516 6.80074 13.2477C6.90459 13.1439 6.96294 13.003 6.96294 12.8562V6.98513C6.96804 6.90945 6.95753 6.83352 6.93208 6.76206C6.90662 6.6906 6.86675 6.62513 6.81494 6.56972C6.76314 6.5143 6.7005 6.47012 6.63091 6.43992C6.56133 6.40971 6.48628 6.39413 6.41042 6.39413C6.33456 6.39413 6.25951 6.40971 6.18992 6.43992C6.12033 6.47012 6.05769 6.5143 6.00589 6.56972C5.95408 6.62513 5.91421 6.6906 5.88876 6.76206C5.8633 6.83352 5.85279 6.90945 5.85789 6.98513V12.8562C5.86167 13.0014 5.92088 13.1397 6.02339 13.2427C6.1259 13.3457 6.26393 13.4055 6.40916 13.4099ZM11.556 13.4099C11.7025 13.4093 11.8427 13.3506 11.946 13.2469C12.0493 13.1431 12.1073 13.0026 12.1073 12.8562V6.98513C12.1124 6.90945 12.1019 6.83352 12.0764 6.76206C12.051 6.6906 12.0111 6.62513 11.9593 6.56972C11.9075 6.5143 11.8448 6.47012 11.7753 6.43992C11.7057 6.40971 11.6306 6.39413 11.5548 6.39413C11.4789 6.39413 11.4039 6.40971 11.3343 6.43992C11.2647 6.47012 11.202 6.5143 11.1502 6.56972C11.0984 6.62513 11.0586 6.6906 11.0331 6.76206C11.0076 6.83352 10.9971 6.90945 11.0022 6.98513V12.8562C11.0022 13.003 11.0606 13.1439 11.1644 13.2477C11.2683 13.3516 11.4091 13.4099 11.556 13.4099Z" fill="#41464F"/>
|
|
119
119
|
</svg>
|
|
120
|
-
`,
|
|
120
|
+
`,W2=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
121
121
|
<path d="M6.82895 1.5H15.1184C15.4848 1.5 15.8362 1.64556 16.0953 1.90466C16.3544 2.16375 16.5 2.51516 16.5 2.88158V11.1711C16.5 11.5375 16.3544 11.8889 16.0953 12.148C15.8362 12.4071 15.4848 12.5526 15.1184 12.5526H6.82895C6.46253 12.5526 6.11112 12.4071 5.85202 12.148C5.59293 11.8889 5.44737 11.5375 5.44737 11.1711V2.88158C5.44737 2.51516 5.59293 2.16375 5.85202 1.90466C6.11112 1.64556 6.46253 1.5 6.82895 1.5ZM6.82895 2.68421C6.7766 2.68421 6.7264 2.705 6.68939 2.74202C6.65237 2.77903 6.63158 2.82923 6.63158 2.88158V11.1711C6.63158 11.197 6.63668 11.2226 6.6466 11.2466C6.65652 11.2705 6.67106 11.2923 6.68939 11.3106C6.70771 11.3289 6.72947 11.3435 6.75342 11.3534C6.77736 11.3633 6.80303 11.3684 6.82895 11.3684H15.1184C15.1708 11.3684 15.221 11.3476 15.258 11.3106C15.295 11.2736 15.3158 11.2234 15.3158 11.1711V2.88158C15.3158 2.82923 15.295 2.77903 15.258 2.74202C15.221 2.705 15.1708 2.68421 15.1184 2.68421H6.82895ZM11.3684 13.7368C11.3684 13.5798 11.4308 13.4292 11.5418 13.3182C11.6529 13.2071 11.8035 13.1447 11.9605 13.1447C12.1176 13.1447 12.2682 13.2071 12.3792 13.3182C12.4902 13.4292 12.5526 13.5798 12.5526 13.7368V15.1184C12.5526 15.4848 12.4071 15.8362 12.148 16.0953C11.8889 16.3544 11.5375 16.5 11.1711 16.5H2.88158C2.51516 16.5 2.16375 16.3544 1.90466 16.0953C1.64556 15.8362 1.5 15.4848 1.5 15.1184V6.82895C1.5 6.46253 1.64556 6.11112 1.90466 5.85202C2.16375 5.59293 2.51516 5.44737 2.88158 5.44737H4.26316C4.42019 5.44737 4.5708 5.50975 4.68184 5.62079C4.79288 5.73183 4.85526 5.88244 4.85526 6.03947C4.85526 6.19651 4.79288 6.34711 4.68184 6.45816C4.5708 6.5692 4.42019 6.63158 4.26316 6.63158H2.88158C2.82923 6.63158 2.77903 6.65237 2.74202 6.68939C2.705 6.7264 2.68421 6.7766 2.68421 6.82895V15.1184C2.68421 15.1708 2.705 15.221 2.74202 15.258C2.77903 15.295 2.82923 15.3158 2.88158 15.3158H11.1711C11.2234 15.3158 11.2736 15.295 11.3106 15.258C11.3476 15.221 11.3684 15.1708 11.3684 15.1184V13.7368Z" fill="#41464F"/>
|
|
122
122
|
</svg>
|
|
123
|
-
`,
|
|
123
|
+
`,Z2=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
124
124
|
<path d="M9 14.4245L10.9395 12.5756C11.0432 12.4767 11.181 12.4215 11.3244 12.4215H15.3843V4.1157H2.6157V12.4215H6.67562C6.81895 12.4215 6.95679 12.4767 7.06054 12.5756L9 14.4245ZM9.38492 15.599C9.16943 15.8045 8.83057 15.8045 8.61508 15.599L6.45232 13.5372H2.05785C1.74976 13.5372 1.5 13.2874 1.5 12.9793V3.55785C1.5 3.24976 1.74976 3 2.05785 3H15.9421C16.2502 3 16.5 3.24976 16.5 3.55785V12.9793C16.5 13.2874 16.2502 13.5372 15.9421 13.5372H11.5477L9.38492 15.599ZM5.96281 9.13636C5.48355 9.13636 5.09504 8.74785 5.09504 8.26859C5.09504 7.78934 5.48355 7.40083 5.96281 7.40083C6.44207 7.40083 6.83058 7.78934 6.83058 8.26859C6.83058 8.74785 6.44207 9.13636 5.96281 9.13636ZM9 9.13636C8.52074 9.13636 8.13223 8.74785 8.13223 8.26859C8.13223 7.78934 8.52074 7.40083 9 7.40083C9.47926 7.40083 9.86777 7.78934 9.86777 8.26859C9.86777 8.74785 9.47926 9.13636 9 9.13636ZM12.0372 9.13636C11.5579 9.13636 11.1694 8.74785 11.1694 8.26859C11.1694 7.78934 11.5579 7.40083 12.0372 7.40083C12.5164 7.40083 12.905 7.78934 12.905 8.26859C12.905 8.74785 12.5164 9.13636 12.0372 9.13636Z" fill="#41464F"/>
|
|
125
125
|
</svg>
|
|
126
|
-
`,
|
|
126
|
+
`,Y2=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
127
127
|
<path d="M15.435 12.8544C15.3582 12.9824 15.2338 13.0745 15.089 13.1107C14.9443 13.1469 14.7911 13.1241 14.6632 13.0473C14.5352 12.9705 14.443 12.846 14.4069 12.7013C14.3707 12.5565 14.3935 12.4034 14.4703 12.2754C15.0642 11.2862 15.377 10.1538 15.375 9C15.375 5.47912 12.5209 2.625 9 2.625C5.47913 2.625 2.625 5.47912 2.625 9C2.625 12.5209 5.47913 15.375 9 15.375C10.1536 15.377 11.2859 15.0644 12.2751 14.4707C12.3384 14.4327 12.4086 14.4075 12.4817 14.3967C12.5547 14.3858 12.6292 14.3894 12.7009 14.4073C12.7726 14.4252 12.84 14.4571 12.8993 14.5011C12.9587 14.545 13.0088 14.6003 13.0468 14.6636C13.0848 14.727 13.11 14.7972 13.1208 14.8702C13.1317 14.9433 13.1281 15.0178 13.1102 15.0895C13.0923 15.1611 13.0604 15.2286 13.0164 15.2879C12.9725 15.3473 12.9172 15.3974 12.8539 15.4354C11.6899 16.134 10.3575 16.5021 9 16.5C4.85794 16.5 1.5 13.1421 1.5 9C1.5 4.85794 4.85794 1.5 9 1.5C13.1421 1.5 16.5 4.85794 16.5 9C16.5 10.3762 16.1282 11.6994 15.435 12.8544ZM6.58444 8.60362L8.067 10.08L11.4144 6.7275C11.5199 6.62193 11.6629 6.56256 11.8121 6.56245C11.9613 6.56235 12.1044 6.62151 12.21 6.72694C12.3156 6.83236 12.3749 6.9754 12.375 7.1246C12.3752 7.2738 12.316 7.41693 12.2106 7.5225L8.46619 11.2725C8.36087 11.378 8.21798 11.4374 8.06892 11.4376C7.91986 11.4378 7.77681 11.3788 7.67119 11.2736L5.79056 9.40069C5.73755 9.34871 5.69535 9.28675 5.66639 9.21839C5.63744 9.15003 5.62231 9.07661 5.62186 9.00237C5.62142 8.92813 5.63568 8.85453 5.66382 8.78583C5.69196 8.71713 5.73342 8.65467 5.78581 8.60207C5.8382 8.54947 5.90049 8.50776 5.96908 8.47935C6.03767 8.45093 6.1112 8.43638 6.18545 8.43652C6.25969 8.43667 6.33317 8.45151 6.40165 8.48019C6.47013 8.50887 6.53225 8.55082 6.58444 8.60362Z" fill="#41464F"/>
|
|
128
128
|
</svg>
|
|
129
|
-
`,
|
|
129
|
+
`,Jc=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
130
130
|
<path d="M15.3146 9.39413C15.3146 9.23711 15.377 9.08652 15.4881 8.97548C15.5991 8.86445 15.7497 8.80207 15.9067 8.80207C16.0637 8.80207 16.2143 8.86445 16.3254 8.97548C16.4364 9.08652 16.4988 9.23711 16.4988 9.39413V14.3279C16.4988 15.5268 15.5268 16.4988 14.3279 16.4988H3.67087C2.47196 16.4988 1.5 15.5268 1.5 14.3279V4.26297C1.5 3.06406 2.47196 2.0921 3.67087 2.0921H8.80203C8.95905 2.0921 9.10964 2.15448 9.22068 2.26551C9.33171 2.37654 9.39408 2.52713 9.39408 2.68416C9.39408 2.84118 9.33171 2.99177 9.22068 3.1028C9.10964 3.21384 8.95905 3.27621 8.80203 3.27621H3.67087C3.40917 3.27621 3.15818 3.38018 2.97313 3.56523C2.78807 3.75028 2.68411 4.00127 2.68411 4.26297V14.3279C2.68411 14.5896 2.78807 14.8406 2.97313 15.0257C3.15818 15.2107 3.40917 15.3147 3.67087 15.3147H14.3279C14.5896 15.3147 14.8406 15.2107 15.0256 15.0257C15.2107 14.8406 15.3146 14.5896 15.3146 14.3279V9.39413ZM14.5365 4.26297L12.8752 2.49786C12.7676 2.38349 12.7098 2.23106 12.7146 2.0741C12.7193 1.91714 12.7863 1.7685 12.9006 1.66089C13.015 1.55327 13.1674 1.4955 13.3244 1.50027C13.4814 1.50505 13.63 1.57198 13.7376 1.68635L16.3379 4.44928C16.6935 4.82701 16.4255 5.44709 15.9067 5.44709H12.9348C11.4237 5.44709 10.1835 6.76461 10.1835 8.40737V11.9597C10.1835 12.1167 10.1211 12.2673 10.0101 12.3784C9.89905 12.4894 9.74846 12.5518 9.59144 12.5518C9.43441 12.5518 9.28382 12.4894 9.17279 12.3784C9.06176 12.2673 8.99938 12.1167 8.99938 11.9597V8.40737C8.99938 6.12618 10.7531 4.26297 12.9348 4.26297H14.5365Z" fill="#41464F"/>
|
|
131
131
|
</svg>
|
|
132
|
-
`,
|
|
132
|
+
`,X2=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
133
133
|
<path d="M16.4182 15.6966L13.6824 9.83897C13.6381 9.76494 13.5754 9.70365 13.5004 9.66109C13.4254 9.61853 13.3406 9.59616 13.2544 9.59616C13.1682 9.59616 13.0834 9.61853 13.0084 9.66109C12.9334 9.70365 12.8707 9.76494 12.8265 9.83897L10.1664 15.6966C10.1332 15.7544 10.1127 15.8185 10.1061 15.8848C10.0996 15.9511 10.1073 16.018 10.1286 16.0811C10.1499 16.1442 10.1843 16.2021 10.2297 16.2509C10.275 16.2997 10.3302 16.3383 10.3916 16.3641C10.5069 16.4132 10.6365 16.4162 10.7539 16.3724C10.8712 16.3287 10.9673 16.2416 11.0223 16.1291L11.9615 14.1072H14.6223L15.5631 16.1291C15.6404 16.2973 15.8101 16.4039 15.9955 16.4016C16.0607 16.4151 16.1279 16.4151 16.193 16.4016C16.26 16.3769 16.3204 16.3372 16.3698 16.2855C16.4191 16.2339 16.456 16.1717 16.4777 16.1037C16.4995 16.0357 16.5054 15.9636 16.4951 15.8929C16.4848 15.8223 16.4585 15.7549 16.4182 15.6959V15.6966ZM12.385 13.1297L13.325 11.1551L14.265 13.1297H12.385ZM13.5697 6.02196C13.8926 6.56403 14.0728 7.17818 14.096 7.80884L13.4286 7.25326C13.3311 7.17729 13.2076 7.14266 13.0848 7.15683C12.962 7.17099 12.8497 7.23282 12.772 7.32899C12.6944 7.42516 12.6576 7.54798 12.6696 7.67101C12.6816 7.79404 12.7414 7.90744 12.8362 7.98678L14.2462 9.14299C14.327 9.21319 14.4313 9.25021 14.5382 9.2466C14.6476 9.24961 14.7543 9.21279 14.8386 9.14299L16.2681 7.98678C16.3648 7.90922 16.427 7.79658 16.441 7.67339C16.4551 7.55021 16.4199 7.42645 16.3431 7.32909C16.2638 7.23149 16.1494 7.16894 16.0244 7.1549C15.8994 7.14086 15.7739 7.17645 15.6749 7.25401L15.0368 7.77956C15.0048 6.55237 14.4941 5.38637 13.6137 4.53083C12.7333 3.67529 11.5532 3.19809 10.3256 3.20125C10.2009 3.20125 10.0814 3.25077 9.99324 3.33891C9.9051 3.42705 9.85558 3.54659 9.85558 3.67124C9.85558 3.79589 9.9051 3.91544 9.99324 4.00358C10.0814 4.09172 10.2009 4.14124 10.3256 4.14124C10.9835 4.14371 11.6292 4.31868 12.1983 4.64869C12.7674 4.97871 13.24 5.45222 13.569 6.02196H13.5697ZM9.50796 15.4241C8.53284 15.4247 7.59559 15.0466 6.89386 14.3695C6.19213 13.6924 5.78077 12.7693 5.74651 11.7948L6.41471 12.3399C6.45267 12.4047 6.5056 12.4594 6.56908 12.4996C6.63256 12.5397 6.70473 12.564 6.77955 12.5705C6.85437 12.577 6.92966 12.5655 6.99911 12.5369C7.06857 12.5084 7.13016 12.4636 7.17873 12.4063C7.2273 12.349 7.26144 12.2809 7.27828 12.2077C7.29513 12.1345 7.29418 12.0584 7.27554 11.9856C7.25689 11.9129 7.22108 11.8456 7.17111 11.7896C7.12113 11.7335 7.05845 11.6902 6.98832 11.6634L5.58734 10.4599C5.5036 10.3919 5.39902 10.3548 5.29116 10.3548C5.1833 10.3548 5.07872 10.3919 4.99497 10.4599L3.55721 11.6634C3.46047 11.7409 3.3983 11.8536 3.38424 11.9768C3.37018 12.1 3.40536 12.2237 3.48213 12.3211C3.57222 12.4314 3.70662 12.4968 3.84851 12.4998C3.95739 12.4984 4.06294 12.4621 4.14958 12.3962L4.78925 11.8706C4.83074 13.0893 5.34414 14.2441 6.22107 15.0913C7.098 15.9386 8.26984 16.4119 9.48919 16.4114C9.55104 16.4115 9.6123 16.3994 9.66946 16.3757C9.72661 16.3521 9.77855 16.3175 9.82228 16.2737C9.86601 16.23 9.90068 16.1781 9.92431 16.1209C9.94793 16.0637 9.96004 16.0025 9.95994 15.9406C9.96494 15.8769 9.95717 15.8129 9.93708 15.7522C9.917 15.6916 9.885 15.6356 9.84297 15.5875C9.80094 15.5393 9.74972 15.5001 9.69232 15.4721C9.63492 15.444 9.5725 15.4277 9.50871 15.4241H9.50796ZM6.95303 8.52359C6.84622 8.52123 6.74469 8.47672 6.67056 8.39979C6.59644 8.32285 6.55575 8.21973 6.55736 8.11291V3.95805C6.55736 3.73131 6.73605 3.54661 6.95303 3.54661C7.17001 3.54661 7.34794 3.73131 7.34794 3.95805V8.11291C7.34794 8.33815 7.17076 8.52359 6.95303 8.52359ZM8.61227 7.45447C8.50547 7.45191 8.40401 7.40721 8.33002 7.33014C8.25604 7.25306 8.21554 7.14986 8.21736 7.04304V5.17057C8.21736 4.94383 8.39604 4.75914 8.61302 4.75914C8.83 4.75914 9.00794 4.94383 9.00794 5.17057V7.04229C9.00956 7.14905 8.96899 7.25214 8.89505 7.32918C8.82111 7.40621 8.71976 7.45096 8.61302 7.45372L8.61227 7.45447ZM1.89496 7.45447C1.78822 7.45171 1.68688 7.40696 1.61294 7.32993C1.539 7.25289 1.49843 7.1498 1.50005 7.04304V5.17057C1.50005 4.94383 1.67798 4.75914 1.89496 4.75914C2.11269 4.75914 2.29063 4.94383 2.29063 5.17057V7.04229C2.31015 7.26752 2.13221 7.45372 1.89496 7.45372V7.45447ZM3.57448 8.54462C3.4676 8.54205 3.36607 8.49739 3.29197 8.42033C3.21787 8.34328 3.1772 8.24007 3.17881 8.13318V3.97832C3.1772 3.87142 3.21787 3.76822 3.29197 3.69117C3.36607 3.61411 3.4676 3.56945 3.57448 3.56688C3.68122 3.56964 3.78256 3.61439 3.8565 3.69143C3.93044 3.76846 3.97101 3.87155 3.96939 3.97832V8.13318C3.97101 8.23995 3.93044 8.34304 3.8565 8.42007C3.78256 8.49711 3.68122 8.54186 3.57448 8.54462ZM5.25399 9.75789C5.14719 9.75533 5.04573 9.71064 4.97175 9.63356C4.89776 9.55648 4.85726 9.45328 4.85908 9.34646V2.66143C4.85908 2.43469 5.03626 2.25 5.25399 2.25C5.47172 2.25 5.64891 2.43469 5.64891 2.66143V9.34646C5.65072 9.45328 5.61022 9.55648 5.53624 9.63356C5.46226 9.71064 5.3608 9.75533 5.25399 9.75789Z" fill="#41464F" stroke="#41464F" stroke-width="0.15"/>
|
|
134
134
|
</svg>
|
|
135
|
-
`,
|
|
135
|
+
`,J2=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
136
136
|
<path d="M5.29102 10.3545C5.39888 10.3545 5.50414 10.392 5.58789 10.46L6.98828 11.6631C7.05842 11.6899 7.12093 11.734 7.1709 11.79C7.22075 11.846 7.25674 11.9128 7.27539 11.9854C7.29404 12.0581 7.29516 12.1348 7.27832 12.208C7.26145 12.2811 7.22722 12.349 7.17871 12.4062C7.13014 12.4635 7.06847 12.5085 6.99902 12.5371C6.92962 12.5656 6.85405 12.5768 6.7793 12.5703C6.70473 12.5638 6.63264 12.54 6.56934 12.5C6.50589 12.4599 6.45299 12.4046 6.41504 12.3398L5.74609 11.7949C5.78037 12.7692 6.19208 13.6921 6.89355 14.3691C7.59529 15.0462 8.53367 15.4244 9.50879 15.4238C9.57252 15.4274 9.63503 15.4437 9.69238 15.4717C9.74978 15.4997 9.80074 15.5398 9.84277 15.5879C9.88472 15.6359 9.91743 15.6914 9.9375 15.752C9.95756 15.8125 9.96493 15.8768 9.95996 15.9404C9.96006 16.0023 9.94843 16.0639 9.9248 16.1211C9.9012 16.1782 9.86595 16.2297 9.82227 16.2734C9.7786 16.3171 9.72698 16.3524 9.66992 16.376C9.61276 16.3996 9.5511 16.4112 9.48926 16.4111C8.26991 16.4116 7.09764 15.939 6.2207 15.0918C5.34388 14.2447 4.83066 13.0896 4.78906 11.8711L4.14941 12.3965C4.06284 12.4623 3.95736 12.4986 3.84863 12.5C3.70683 12.497 3.57252 12.4315 3.48242 12.3213C3.40565 12.2239 3.3707 12.0998 3.38477 11.9766C3.39889 11.8535 3.46095 11.7406 3.55762 11.6631L4.99512 10.46C5.07881 10.392 5.18323 10.3545 5.29102 10.3545ZM11.8398 14.3691L11.0225 16.1289C10.9675 16.2414 10.8712 16.3283 10.7539 16.3721C10.6366 16.4158 10.5068 16.4133 10.3916 16.3643C10.3302 16.3384 10.2748 16.2998 10.2295 16.251C10.1842 16.2022 10.1502 16.1441 10.1289 16.0811C10.1076 16.0179 10.0999 15.9511 10.1064 15.8848C10.113 15.8185 10.1328 15.754 10.166 15.6963L11.1133 13.6123L11.8398 14.3691ZM13.2324 9.5498C13.3186 9.5498 13.4035 9.57272 13.4785 9.61523C13.5535 9.65779 13.6169 9.71894 13.6611 9.79297L15.501 13.7568L13.6611 11.9102L13.1533 11.3926L12.4131 10.665L12.8047 9.79297C12.8489 9.71894 12.9123 9.65779 12.9873 9.61523C13.0621 9.57281 13.1464 9.54988 13.2324 9.5498ZM13.1621 11.4004L13.6436 11.8799L13.3359 11.1348L13.1621 11.4004ZM5.64941 8.13281V9.34668C5.65117 9.45342 5.61006 9.55677 5.53613 9.63379C5.46217 9.71074 5.36062 9.75525 5.25391 9.75781C5.14718 9.75521 5.04562 9.71079 4.97168 9.63379C4.89775 9.55677 4.85762 9.45342 4.85938 9.34668V7.33008L5.64941 8.13281ZM10.3252 3.20117C11.5528 3.19801 12.7329 3.67572 13.6133 4.53125C14.4936 5.38673 15.0051 6.5522 15.0371 7.7793L15.6748 7.25391C15.7738 7.17635 15.8994 7.14123 16.0244 7.15527C16.1493 7.16931 16.2635 7.23162 16.3428 7.3291C16.4195 7.42647 16.4555 7.55064 16.4414 7.67383C16.4273 7.79666 16.3649 7.90887 16.2686 7.98633L14.8389 9.14258C14.7546 9.21238 14.6474 9.25008 14.5381 9.24707C14.4312 9.25061 14.3268 9.21272 14.2461 9.14258L12.8359 7.98633C12.7414 7.907 12.6819 7.79375 12.6699 7.6709C12.6579 7.5479 12.6948 7.42525 12.7725 7.3291C12.8501 7.233 12.9622 7.17138 13.085 7.15723C13.2077 7.14308 13.3312 7.17704 13.4287 7.25293L14.0957 7.80859C14.0753 7.25692 13.9356 6.71771 13.6846 6.22852L13.5693 6.02148C13.2404 5.45184 12.7673 4.97841 12.1982 4.64844C11.6292 4.3185 10.983 4.14407 10.3252 4.1416C10.2007 4.14149 10.0812 4.09188 9.99316 4.00391C9.90502 3.91577 9.85547 3.79555 9.85547 3.6709C9.85556 3.5464 9.90513 3.42692 9.99316 3.33887C10.0812 3.25083 10.2007 3.20129 10.3252 3.20117ZM3.96973 6.375V8.13281C3.97134 8.23957 3.93037 8.34289 3.85645 8.41992C3.7825 8.49695 3.68096 8.54217 3.57422 8.54492C3.46746 8.54228 3.36602 8.4969 3.29199 8.41992C3.21803 8.34289 3.1771 8.2396 3.17871 8.13281V5.625L3.96973 6.375ZM1.89551 4.75879C2.11302 4.75906 2.29102 4.94433 2.29102 5.1709V7.04199C2.31052 7.26708 2.13252 7.45385 1.89551 7.4541L1.81641 7.44434C1.7395 7.427 1.66871 7.38773 1.61328 7.33008C1.53934 7.25305 1.49838 7.14973 1.5 7.04297V5.1709C1.5 4.94416 1.67853 4.75879 1.89551 4.75879ZM8.61328 4.75879C8.83017 4.7589 9.00781 4.94423 9.00781 5.1709V7.04199C9.00859 7.09345 8.99928 7.14416 8.98145 7.19141L8.21777 6.40723V5.1709C8.21777 4.94416 8.3963 4.75879 8.61328 4.75879ZM6.95312 3.54688C7.17008 3.54689 7.34764 3.7313 7.34766 3.95801V5.54199L6.55762 4.75879V3.95801C6.55764 3.73129 6.73616 3.54688 6.95312 3.54688ZM5.25391 2.25C5.47154 2.25 5.64926 2.43453 5.64941 2.66113V3.73047L4.85938 2.97168V2.66113C4.85953 2.43458 5.03634 2.25008 5.25391 2.25Z" fill="#41464F"/>
|
|
137
137
|
<line x1="2.82577" y1="3.06445" x2="15.5303" y2="15.769" stroke="#41464F" stroke-width="1.125" stroke-linecap="round"/>
|
|
138
138
|
</svg>
|
|
139
|
-
|
|
139
|
+
`,e0=`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
140
140
|
<path d="M4.1713 6.63079L6.1603 8.49454C6.45182 8.78922 6.75182 9.26682 6.4603 9.56142C6.16855 9.85602 5.77075 9.85602 5.47915 9.56142L2.4322 6.47577C2.20082 6.24267 2.18395 5.86947 2.41532 5.63637L5.47922 2.50257C5.77082 2.20797 6.1687 2.20797 6.4603 2.50257C6.7519 2.79717 6.4519 3.27484 6.1603 3.56937L4.19717 5.50579H10.8923C13.5855 5.50579 15.7499 7.84159 15.7499 10.5285C15.7499 13.2154 13.5854 15.7817 10.8923 15.7817H3.75212C3.34225 15.7817 2.99837 15.5914 2.99837 15.1817C2.99837 14.7719 3.34225 14.6566 3.75212 14.6566H10.8329C12.6392 14.6566 14.6247 12.3306 14.6247 10.5285C14.6247 8.72629 12.6392 6.63094 10.8329 6.63094H4.1713V6.63079Z" fill="#41464F"/>
|
|
141
141
|
</svg>
|
|
142
|
-
`,
|
|
142
|
+
`,t0=`<svg width="29" height="34" viewBox="0 0 29 34" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
143
143
|
<path d="M1.6875 0C1.2654 0 0.8154 0.16875 0.50625 0.50625C0.19665 0.84375 0 1.26585 0 1.6875V32.0625C0 32.4846 0.16875 32.9346 0.50625 33.2437C0.84375 33.5812 1.26585 33.75 1.6875 33.75H26.4375C26.8596 33.75 27.3096 33.5812 27.6187 33.2437C27.9562 32.9062 28.125 32.4841 28.125 32.0625V9.5625L18.5625 0H1.6875Z" fill="#7DAAFF"/>
|
|
144
144
|
<path d="M28.125 9.5625H20.25C19.8279 9.5625 19.3779 9.39375 19.0688 9.05625C18.7313 8.74665 18.5625 8.29665 18.5625 7.875V0L28.125 9.5625Z" fill="white" fill-opacity="0.5"/>
|
|
145
145
|
</svg>
|
|
146
|
-
`,
|
|
146
|
+
`,s0=`<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
147
147
|
<path d="M9.375 1.875C8.6715 1.875 7.9215 2.15625 7.40625 2.71875C6.89025 3.28125 6.5625 3.98475 6.5625 4.6875V55.3125C6.5625 56.016 6.84375 56.766 7.40625 57.2812C7.96875 57.8438 8.67225 58.125 9.375 58.125H50.625C51.3285 58.125 52.0785 57.8438 52.5938 57.2812C53.1562 56.7188 53.4375 56.0153 53.4375 55.3125V17.8125L37.5 1.875H9.375Z" fill="#02DBDB"/>
|
|
148
148
|
<path d="M53.4375 17.8125H40.3125C39.609 17.8125 38.859 17.5312 38.3438 16.9688C37.7813 16.4528 37.5 15.7028 37.5 15V1.875L53.4375 17.8125Z" fill="white" fill-opacity="0.5"/>
|
|
149
149
|
<path d="M36.8735 20.3282L25.0626 22.3012C25.0243 22.3073 24.9886 22.3185 24.9538 22.3318H24.5272C24.2363 22.3318 24.0051 22.5645 24.0051 22.8514V36.3531C23.5443 36.0866 23.0084 35.9346 22.4373 35.9346C20.7057 35.9346 19.3018 37.335 19.3018 39.063C19.3018 40.791 20.7057 42.1914 22.4373 42.1914C24.1689 42.1914 25.5729 40.791 25.5729 39.063C25.5729 38.9364 25.5652 38.8118 25.5509 38.6904C25.5652 38.6424 25.5729 38.5924 25.5729 38.5393V27.5588L36.5474 25.6235V33.2236C36.0865 32.9582 35.5506 32.8051 34.9796 32.8051C33.2479 32.8051 31.844 34.2065 31.844 35.9345C31.844 37.6616 33.2479 39.063 34.9796 39.063C36.7112 39.063 38.1151 37.6616 38.1151 35.9345C38.1151 35.808 38.1075 35.6834 38.0932 35.561C38.1075 35.513 38.1151 35.4629 38.1151 35.4099V20.811C38.1151 20.5558 37.9299 20.3424 37.6859 20.2996C37.6007 20.2465 37.4935 20.2251 37.3756 20.2445L37.098 20.2914H37.0694C37 20.2914 36.9337 20.3047 36.8735 20.3282Z" fill="white"/>
|
|
150
150
|
</svg>
|
|
151
|
-
`,
|
|
151
|
+
`,n0=`<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
152
152
|
<path d="M9.375 1.875C8.6715 1.875 7.9215 2.15625 7.40625 2.71875C6.89025 3.28125 6.5625 3.98475 6.5625 4.6875V55.3125C6.5625 56.016 6.84375 56.766 7.40625 57.2812C7.96875 57.8438 8.67225 58.125 9.375 58.125H50.625C51.3285 58.125 52.0785 57.8438 52.5938 57.2812C53.1562 56.7188 53.4375 56.0153 53.4375 55.3125V17.8125L37.5 1.875H9.375Z" fill="#8CD167"/>
|
|
153
153
|
<path d="M53.4375 17.8125H40.3125C39.609 17.8125 38.859 17.5312 38.3438 16.9688C37.7813 16.4528 37.5 15.7028 37.5 15V1.875L53.4375 17.8125Z" fill="white" fill-opacity="0.5"/>
|
|
154
154
|
<path d="M29.3858 28.1802L25.5663 21.8514C25.4303 21.6289 25.1893 21.4929 24.9297 21.4929H22.5564C22.4142 21.4929 22.2783 21.53 22.1608 21.6103C21.8147 21.8267 21.7097 22.284 21.9322 22.6363L27.0187 30.6956L21.8642 38.9033C21.79 39.0207 21.7529 39.1567 21.7529 39.2989C21.7529 39.7068 22.0867 40.0405 22.4946 40.0405H24.6268C24.8864 40.0405 25.1213 39.9045 25.2573 39.6882L29.1324 33.415L32.9828 39.682C33.1188 39.9045 33.3599 40.0343 33.6133 40.0343H35.9309C36.0731 40.0343 36.209 39.9911 36.3327 39.9169C36.6788 39.6944 36.7777 39.2371 36.5552 38.8909L31.3636 30.8316L36.6355 22.6425C36.7097 22.5251 36.7529 22.3829 36.7529 22.2408C36.7529 21.8328 36.4192 21.4991 36.0113 21.4991H33.8048C33.5453 21.4991 33.3042 21.6351 33.1683 21.8576L29.3858 28.1802Z" fill="white"/>
|
|
155
155
|
</svg>
|
|
156
|
-
`,
|
|
156
|
+
`,i0=`<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
157
157
|
<path d="M9.375 1.875C8.6715 1.875 7.9215 2.15625 7.40625 2.71875C6.89025 3.28125 6.5625 3.98475 6.5625 4.6875V55.3125C6.5625 56.016 6.84375 56.766 7.40625 57.2812C7.96875 57.8438 8.67225 58.125 9.375 58.125H50.625C51.3285 58.125 52.0785 57.8438 52.5938 57.2812C53.1562 56.7188 53.4375 56.0153 53.4375 55.3125V17.8125L37.5 1.875H9.375Z" fill="#526AF0"/>
|
|
158
158
|
<path d="M53.4375 17.8125H40.3125C39.609 17.8125 38.859 17.5312 38.3438 16.9688C37.7813 16.4528 37.5 15.7028 37.5 15V1.875L53.4375 17.8125Z" fill="white" fill-opacity="0.5"/>
|
|
159
159
|
<path d="M40 20.9375H17.5C16.9823 20.9375 16.5625 21.3573 16.5625 21.875V40.625C16.5625 41.1427 16.9823 41.5625 17.5 41.5625H40C40.5177 41.5625 40.9375 41.1427 40.9375 40.625V21.875C40.9375 21.3573 40.5177 20.9375 40 20.9375ZM39.0625 22.8125V36.6409L32.4062 31.6487C31.9091 31.2761 31.2162 31.2761 30.719 31.6487L27.831 33.8144L23.9805 30.7341C23.4979 30.3477 22.83 30.3184 22.3161 30.6641L18.4375 33.2721V22.8125H39.0625ZM18.4375 39.6875V35.532L23.077 32.4125L27.7943 36.1859L31.5625 33.3594L39.0625 38.9844V39.6875H18.4375Z" fill="white"/>
|
|
160
160
|
<path d="M34.375 30.3125C35.926 30.3125 37.1875 29.051 37.1875 27.5C37.1875 25.949 35.926 24.6875 34.375 24.6875C32.824 24.6875 31.5625 25.949 31.5625 27.5C31.5625 29.051 32.824 30.3125 34.375 30.3125ZM34.375 26.5625C34.8918 26.5625 35.3125 26.9832 35.3125 27.5C35.3125 28.0168 34.8918 28.4375 34.375 28.4375C33.8582 28.4375 33.4375 28.0168 33.4375 27.5C33.4375 26.9832 33.8582 26.5625 34.375 26.5625Z" fill="white"/>
|
|
161
161
|
</svg>
|
|
162
|
-
`,
|
|
162
|
+
`,o0=`<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
163
163
|
<path d="M9.375 1.875C8.6715 1.875 7.9215 2.15625 7.40625 2.71875C6.89025 3.28125 6.5625 3.98475 6.5625 4.6875V55.3125C6.5625 56.016 6.84375 56.766 7.40625 57.2812C7.96875 57.8438 8.67225 58.125 9.375 58.125H50.625C51.3285 58.125 52.0785 57.8438 52.5938 57.2812C53.1562 56.7188 53.4375 56.0153 53.4375 55.3125V17.8125L37.5 1.875H9.375Z" fill="#7D66FF"/>
|
|
164
164
|
<path d="M53.4375 17.8125H40.3125C39.609 17.8125 38.859 17.5312 38.3438 16.9688C37.7813 16.4528 37.5 15.7028 37.5 15V1.875L53.4375 17.8125Z" fill="white" fill-opacity="0.5"/>
|
|
165
165
|
<path d="M20.7544 33.3423C18.9575 33.3423 17.5 31.8848 17.5 30.0879C17.5 28.291 18.9575 26.8335 20.7544 26.8335C22.5513 26.8335 24.0088 28.291 24.0088 30.0879C24.0088 31.8848 22.5513 33.3423 20.7544 33.3423ZM30 33.3423C28.2031 33.3423 26.7456 31.8848 26.7456 30.0879C26.7456 28.291 28.2031 26.8335 30 26.8335C31.7969 26.8335 33.2544 28.291 33.2544 30.0879C33.2544 31.8848 31.7969 33.3423 30 33.3423ZM39.2456 33.3423C37.4487 33.3423 35.9912 31.8848 35.9912 30.0879C35.9912 28.291 37.4487 26.8335 39.2456 26.8335C41.0425 26.8335 42.5 28.291 42.5 30.0879C42.5 31.8848 41.0425 33.3423 39.2456 33.3423Z" fill="white"/>
|
|
166
166
|
</svg>
|
|
167
|
-
`,
|
|
167
|
+
`,r0=`<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
168
168
|
<path d="M9.375 1.875C8.6715 1.875 7.9215 2.15625 7.40625 2.71875C6.89025 3.28125 6.5625 3.98475 6.5625 4.6875V55.3125C6.5625 56.016 6.84375 56.766 7.40625 57.2812C7.96875 57.8438 8.67225 58.125 9.375 58.125H50.625C51.3285 58.125 52.0785 57.8438 52.5938 57.2812C53.1562 56.7188 53.4375 56.0153 53.4375 55.3125V17.8125L37.5 1.875H9.375Z" fill="#FF5F59"/>
|
|
169
169
|
<path d="M53.4375 17.8125H40.3125C39.609 17.8125 38.859 17.5312 38.3438 16.9688C37.7813 16.4528 37.5 15.7028 37.5 15V1.875L53.4375 17.8125Z" fill="white" fill-opacity="0.5"/>
|
|
170
170
|
<path d="M40.7806 49.4068C37.8271 49.4068 35.2021 44.3443 33.7959 41.063C31.4529 40.0783 28.8744 39.188 26.3904 38.5783C24.1869 40.0318 20.4834 42.188 17.6244 42.188C15.8431 42.188 14.5771 41.297 14.1084 39.7505C13.7334 38.4845 14.0619 37.5943 14.4369 37.1255C15.1869 36.0943 16.7341 35.5783 19.0779 35.5783C20.9529 35.5783 23.3431 35.9068 26.0154 36.563C27.7494 35.3443 29.4834 33.938 31.0306 32.438C30.3271 29.1568 29.5771 23.8595 31.4994 21.422C32.4369 20.2505 33.8904 19.8755 35.6244 20.3908C37.5466 20.9533 38.2494 22.1255 38.4841 23.0158C39.2806 26.2033 35.6244 30.5158 33.1396 33.047C33.7021 35.2505 34.4056 37.547 35.2966 39.6568C38.8591 41.2505 43.0771 43.5943 43.5466 46.1728C43.7341 47.063 43.4521 47.9068 42.7494 48.6103C42.1396 49.1255 41.4834 49.4068 40.7806 49.4068ZM36.4209 42.2818C38.2029 45.8915 39.8904 47.579 40.7806 47.579C40.9216 47.579 41.1091 47.5318 41.3904 47.297C41.7181 46.9693 41.7181 46.7345 41.6709 46.547C41.4834 45.6095 39.9834 44.063 36.4209 42.2818ZM19.0779 37.4533C16.7806 37.4533 16.1244 38.0158 15.9369 38.2505C15.8896 38.3443 15.7021 38.579 15.8896 39.2353C16.0306 39.7978 16.4056 40.3603 17.6244 40.3603C19.1244 40.3603 21.2806 39.5158 23.8119 38.0158C21.9834 37.6408 20.3896 37.4533 19.0771 37.4533H19.0779ZM28.3591 37.1728C29.8591 37.5943 31.4056 38.1103 32.8591 38.6728C32.3431 37.313 31.9216 35.9068 31.5466 34.5478C30.5053 35.4481 29.4425 36.3234 28.3591 37.1728ZM34.1716 22.0318C33.6556 22.0318 33.2806 22.2193 32.9521 22.5943C31.9681 23.813 31.8744 26.9068 32.6244 30.8443C35.4841 27.797 37.0306 24.9845 36.6556 23.4845C36.6084 23.2505 36.4209 22.5943 35.1084 22.2193C34.7334 22.0783 34.4529 22.0318 34.1709 22.0318H34.1716Z" fill="white"/>
|
|
171
171
|
</svg>
|
|
172
|
-
`,
|
|
172
|
+
`,a0=`<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
173
173
|
<path d="M9.375 1.875C8.6715 1.875 7.9215 2.15625 7.40625 2.71875C6.89025 3.28125 6.5625 3.98475 6.5625 4.6875V55.3125C6.5625 56.016 6.84375 56.766 7.40625 57.2812C7.96875 57.8438 8.67225 58.125 9.375 58.125H50.625C51.3285 58.125 52.0785 57.8438 52.5938 57.2812C53.1562 56.7188 53.4375 56.0153 53.4375 55.3125V17.8125L37.5 1.875H9.375Z" fill="#FF5F59"/>
|
|
174
174
|
<path d="M53.4375 17.8125H40.3125C39.609 17.8125 38.859 17.5312 38.3438 16.9688C37.7813 16.4528 37.5 15.7028 37.5 15V1.875L53.4375 17.8125Z" fill="white" fill-opacity="0.5"/>
|
|
175
175
|
<path d="M23.8582 20.7605C23.5409 20.7605 23.2812 21.0201 23.2812 21.3374V41.2413C23.2812 41.5586 23.5409 41.8182 23.8582 41.8182H26.2019C26.5192 41.8182 26.7788 41.5586 26.7788 41.2413V34.3542H31.3437C35.6274 34.3542 38.2812 31.549 38.2812 27.5682C38.2812 23.6379 35.6635 20.7677 31.3582 20.7677H23.8582V20.7605ZM34.7187 27.561C34.7187 30.6908 32.8077 31.4768 29.5841 31.4768H26.7788V23.6595H30.8317C33.2692 23.6595 34.7187 25.0802 34.7187 27.561Z" fill="white"/>
|
|
176
176
|
</svg>
|
|
177
|
-
`,
|
|
177
|
+
`,l0=`<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
178
178
|
<path d="M9.375 1.875C8.6715 1.875 7.9215 2.15625 7.40625 2.71875C6.89025 3.28125 6.5625 3.98475 6.5625 4.6875V55.3125C6.5625 56.016 6.84375 56.766 7.40625 57.2812C7.96875 57.8438 8.67225 58.125 9.375 58.125H50.625C51.3285 58.125 52.0785 57.8438 52.5938 57.2812C53.1562 56.7188 53.4375 56.0153 53.4375 55.3125V17.8125L37.5 1.875H9.375Z" fill="#59B7FF"/>
|
|
179
179
|
<path d="M53.4375 17.8125H40.3125C39.609 17.8125 38.859 17.5312 38.3438 16.9688C37.7813 16.4528 37.5 15.7028 37.5 15V1.875L53.4375 17.8125Z" fill="white" fill-opacity="0.5"/>
|
|
180
180
|
<rect x="15" y="25" width="20" height="3.75" rx="1.875" fill="white"/>
|
|
181
181
|
<rect x="15" y="35" width="30" height="3.75" rx="1.875" fill="white"/>
|
|
182
182
|
</svg>
|
|
183
|
-
`,
|
|
183
|
+
`,c0=`<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
184
184
|
<path d="M9.375 1.875C8.6715 1.875 7.9215 2.15625 7.40625 2.71875C6.89025 3.28125 6.5625 3.98475 6.5625 4.6875V55.3125C6.5625 56.016 6.84375 56.766 7.40625 57.2812C7.96875 57.8438 8.67225 58.125 9.375 58.125H50.625C51.3285 58.125 52.0785 57.8438 52.5938 57.2812C53.1562 56.7188 53.4375 56.0153 53.4375 55.3125V17.8125L37.5 1.875H9.375Z" fill="#B459FF"/>
|
|
185
185
|
<path d="M53.4375 17.8125H40.3125C39.609 17.8125 38.859 17.5312 38.3438 16.9688C37.7813 16.4528 37.5 15.7028 37.5 15V1.875L53.4375 17.8125Z" fill="white" fill-opacity="0.5"/>
|
|
186
186
|
<path d="M37.444 32.1272L25.6398 39.9967C24.3964 40.8231 23.3765 40.2796 23.3765 38.7832V22.4486C23.3765 20.9522 24.3964 20.4049 25.6398 21.2388L37.444 29.112C38.6873 29.9347 38.6873 31.2971 37.444 32.1272Z" fill="white"/>
|
|
187
187
|
</svg>
|
|
188
|
-
`,
|
|
188
|
+
`,u0=`<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
189
189
|
<path d="M9.375 1.875C8.6715 1.875 7.9215 2.15625 7.40625 2.71875C6.89025 3.28125 6.5625 3.98475 6.5625 4.6875V55.3125C6.5625 56.016 6.84375 56.766 7.40625 57.2812C7.96875 57.8438 8.67225 58.125 9.375 58.125H50.625C51.3285 58.125 52.0785 57.8438 52.5938 57.2812C53.1562 56.7188 53.4375 56.0153 53.4375 55.3125V17.8125L37.5 1.875H9.375Z" fill="#297BFF"/>
|
|
190
190
|
<path d="M53.4375 17.8125H40.3125C39.609 17.8125 38.859 17.5312 38.3438 16.9688C37.7813 16.4528 37.5 15.7028 37.5 15V1.875L53.4375 17.8125Z" fill="white" fill-opacity="0.5"/>
|
|
191
191
|
<path d="M29.5003 29.7974L32.7548 41.9377C32.7969 42.0949 32.8898 42.2339 33.0189 42.3329C33.148 42.432 33.3062 42.4857 33.469 42.4857H35.4274C35.59 42.4857 35.748 42.4321 35.8771 42.3332C36.0062 42.2343 36.0991 42.0957 36.1414 41.9387L40.7245 24.9309C40.7414 24.8681 40.75 24.8035 40.75 24.7385C40.75 24.3301 40.4189 23.999 40.0105 23.999H37.8183C37.6509 23.999 37.4886 24.0558 37.3577 24.16C37.2268 24.2642 37.1351 24.4097 37.0976 24.5727L34.2759 36.842L31.2096 24.5594C31.1696 24.3994 31.0773 24.2573 30.9473 24.1558C30.8174 24.0542 30.6572 23.999 30.4922 23.999H28.5085C28.3435 23.999 28.1833 24.0542 28.0533 24.1557C27.9233 24.2573 27.8309 24.3994 27.791 24.5594L24.7308 36.8178L21.8903 24.5714C21.8525 24.4087 21.7608 24.2635 21.63 24.1595C21.4992 24.0556 21.337 23.999 21.1699 23.999H18.9897C18.9248 23.999 18.8603 24.0075 18.7977 24.0244C18.4033 24.1303 18.1695 24.536 18.2755 24.9304L22.8462 41.9382C22.8885 42.0953 22.9813 42.234 23.1104 42.333C23.2395 42.432 23.3976 42.4857 23.5603 42.4857H25.5316C25.6943 42.4857 25.8525 42.432 25.9817 42.3329C26.1108 42.2339 26.2036 42.0949 26.2458 41.9377L29.5003 29.7974Z" fill="white"/>
|
|
192
192
|
</svg>
|
|
193
|
-
`,
|
|
193
|
+
`,d0=`<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
194
194
|
<path d="M57.0557 39.1914C57.0564 38.1279 56.8473 37.0747 56.4404 36.092C56.0335 35.1094 55.4367 34.2168 54.6843 33.4651C53.9319 32.7135 53.0386 32.1176 52.0556 31.7117C51.0726 31.3058 50.0192 31.0977 48.9557 31.0995H38.1557C33.6831 31.0995 30.0557 34.7377 30.0557 39.1914V55.3995H48.9557C53.4282 55.3995 57.0557 51.7612 57.0557 47.3076V39.1914ZM40.8557 41.8995V44.5995H38.1557V41.8995H40.8557ZM48.9557 41.8995V44.5995H46.2557V41.8995H48.9557Z" fill="#C9D2E8"/>
|
|
195
195
|
<path d="M2.94532 16.3548C2.94428 14.8099 3.248 13.28 3.83907 11.8527C4.43015 10.4254 5.29697 9.12864 6.3899 8.0368C7.48283 6.94496 8.78041 6.07944 10.2083 5.48979C11.6362 4.90015 13.1664 4.59796 14.7113 4.60054H30.3993C36.8961 4.60054 42.1653 9.88543 42.1653 16.3548V39.8985H14.7113C8.21451 39.8985 2.94532 34.6136 2.94532 28.1443V16.3548ZM26.4773 20.2885V24.2105H30.3993V20.2885H26.4773ZM14.7113 20.2885V24.2105H18.6333V20.2885H14.7113Z" fill="#0047FF"/>
|
|
196
196
|
</svg>
|
|
197
|
-
`,
|
|
197
|
+
`,f0=`<svg width="13" height="12" viewBox="0 0 13 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
198
198
|
<path d="M11.3644 9.20443L8.83787 8.22025C8.83787 8.22025 8.3554 8.03316 8.16893 7.8501C8.04885 7.73095 8.05723 7.45326 8.16365 7.09645C8.27008 6.73995 9.56483 5.29161 9.56483 3.97575C9.56483 1.94441 8.22819 0.296875 6.58096 0.296875C4.93343 0.296875 3.59833 1.94441 3.59833 3.97575C3.59833 5.23638 4.75254 6.73871 4.89464 7.01082C5.03706 7.28447 5.00262 7.70086 4.89061 7.82621C4.72182 8.01578 4.10408 8.20505 4.10408 8.20505L1.82638 9.21963C1.29427 9.41014 0.876953 9.91184 0.876953 10.479V10.7471C0.876953 11.3648 1.37866 11.7434 1.99517 11.7434H11.1931C11.8096 11.7434 12.3123 11.3648 12.3123 10.7471V10.479C12.3138 9.91153 11.8965 9.39462 11.3644 9.20443Z" fill="#BCBCBC"/>
|
|
199
199
|
</svg>
|
|
200
|
-
`,
|
|
200
|
+
`,h0=`<svg width="11" height="11" viewBox="0 0 11 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
201
201
|
<path d="M10.0626 1.54947L8.97368 0.460596L5.15078 4.28331L1.30478 0.4375L0.21582 1.52641L4.06183 5.37222L0.227398 9.20648L1.31632 10.2954L5.15077 6.46113L8.97367 10.2839L10.0626 9.19497L6.23973 5.37222L10.0626 1.54947Z" fill="white"/>
|
|
202
202
|
</svg>
|
|
203
|
-
`,
|
|
203
|
+
`,p0=`<svg width="13" height="11" viewBox="0 0 13 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
204
204
|
<path d="M8.91047 3.14917H2.36044L3.89083 1.61878C4.13568 1.37391 4.13568 1.00662 3.89083 0.761769C3.64597 0.516917 3.27867 0.516903 3.0338 0.761769L0.462758 3.33281C0.401552 3.39402 0.340332 3.45524 0.340332 3.57767V3.82253C0.340332 3.88375 0.340332 3.94496 0.401552 3.94496L0.462758 4.00618C0.462758 4.0674 0.523978 4.0674 0.585198 4.1286L3.15624 6.0875C3.27867 6.14871 3.40109 6.20993 3.52353 6.20993C3.70718 6.20993 3.89083 6.14871 4.01325 5.96506C4.1969 5.72021 4.1969 5.2917 3.89083 5.10805L2.72773 4.37347H8.9717C10.2572 4.37347 11.3591 5.41412 11.3591 6.76087C11.3591 8.10761 10.2572 9.14827 8.91047 9.14827H4.56419C4.1969 9.14827 3.95203 9.39313 3.95203 9.76042C3.95203 10.1277 4.1969 10.3726 4.56419 10.3726H8.91047C10.8694 10.3726 12.5222 8.78097 12.5222 6.76087C12.5222 4.74076 10.9306 3.14917 8.91047 3.14917Z" fill="white"/>
|
|
205
205
|
</svg>
|
|
206
|
-
`,
|
|
206
|
+
`,g0=`<svg width="20" height="19" viewBox="0 0 20 19" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
207
207
|
<path d="M5.32359 5.34793H5.32361C5.49247 5.34791 5.6569 5.29379 5.79277 5.19352C5.92865 5.09325 6.02884 4.95209 6.07866 4.79073L6.72513 2.6996L6.72514 2.69956C6.73276 2.67489 6.74807 2.65332 6.76883 2.63799C6.7896 2.62266 6.81473 2.61438 6.84054 2.61437H13.1586C13.1844 2.61438 13.2096 2.62266 13.2303 2.63799C13.2511 2.65332 13.2664 2.6749 13.274 2.69956L13.274 2.69959L13.9205 4.791C13.9704 4.9523 14.0706 5.0934 14.2065 5.19362C14.3423 5.29385 14.5067 5.34792 14.6756 5.34793H16.6057C16.7412 5.34793 16.8754 5.37463 17.0006 5.42649C17.1258 5.47835 17.2396 5.55437 17.3354 5.65021C17.4313 5.74604 17.5073 5.85981 17.5592 5.98502C17.611 6.11023 17.6377 6.24443 17.6377 6.37996V15.4918C17.6377 15.6274 17.611 15.7616 17.5592 15.8868C17.5073 16.012 17.4313 16.1258 17.3354 16.2216C17.2396 16.3174 17.1258 16.3934 17.0006 16.4453C16.8754 16.4972 16.7412 16.5239 16.6057 16.5239H3.39346C3.25794 16.5239 3.12374 16.4972 2.99852 16.4453L2.95759 16.5441L2.99852 16.4453C2.87331 16.3934 2.75954 16.3174 2.66371 16.2216C2.56788 16.1258 2.49186 16.012 2.44 15.8868C2.38813 15.7616 2.36144 15.6274 2.36144 15.4918V6.37996C2.36144 6.24443 2.38813 6.11023 2.44 5.98502C2.49186 5.85981 2.56788 5.74604 2.66371 5.65021C2.75954 5.55437 2.87331 5.47835 2.99852 5.42649C3.12374 5.37463 3.25794 5.34793 3.39346 5.34793H5.32359ZM5.21479 2.23276L5.31698 2.26435L5.21479 2.23277L4.74058 3.76723H3.39346C1.95052 3.76723 0.780734 4.93702 0.780734 6.37996V15.4918C0.780734 16.9348 1.95052 18.1046 3.39346 18.1046H16.6057C18.0486 18.1046 19.2184 16.9348 19.2184 15.4918V6.37996C19.2184 4.93702 18.0486 3.76723 16.6057 3.76723H15.2586L14.7844 2.23277C14.677 1.88545 14.4613 1.58164 14.1687 1.36586C13.8762 1.15007 13.5222 1.03366 13.1587 1.03366H6.84049C6.47697 1.03366 6.12299 1.15007 5.83044 1.36586C5.53789 1.58164 5.32213 1.88545 5.21479 2.23276ZM6.47566 10.4803C6.47566 12.4264 8.05343 14.0042 9.99958 14.0042C11.9457 14.0042 13.5235 12.4264 13.5235 10.4803C13.5235 8.53416 11.9457 6.95639 9.99958 6.95639C8.05343 6.95639 6.47566 8.53416 6.47566 10.4803ZM11.3736 11.8544C11.0092 12.2188 10.515 12.4235 9.99958 12.4235C9.48421 12.4235 8.98994 12.2188 8.62552 11.8544C8.2611 11.4899 8.05637 10.9957 8.05637 10.4803C8.05637 9.96493 8.2611 9.47067 8.62552 9.10625C8.98994 8.74182 9.48421 8.53709 9.99958 8.53709C10.515 8.53709 11.0092 8.74182 11.3736 9.10625C11.7381 9.47067 11.9428 9.96493 11.9428 10.4803C11.9428 10.9957 11.7381 11.4899 11.3736 11.8544Z" fill="white" stroke="#0099FF" stroke-width="0.213922"/>
|
|
208
208
|
</svg>
|
|
209
|
-
`,
|
|
209
|
+
`,Pa=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
210
210
|
<path d="M12.8671 11.9976L17.4274 7.43731C17.6576 7.20712 17.6576 6.82762 17.4274 6.59743L17.4025 6.57255C17.1723 6.34235 16.7928 6.34235 16.5626 6.57255L12.0024 11.139L7.4421 6.57255C7.21191 6.34235 6.83241 6.34235 6.60222 6.57255L6.57733 6.59743C6.34092 6.82762 6.34092 7.20712 6.57733 7.43731L11.1376 11.9976L6.57733 16.5578C6.34714 16.788 6.34714 17.1675 6.57733 17.3977L6.60222 17.4226C6.83241 17.6528 7.21191 17.6528 7.4421 17.4226L12.0024 12.8623L16.5626 17.4226C16.7928 17.6528 17.1723 17.6528 17.4025 17.4226L17.4274 17.3977C17.6576 17.1675 17.6576 16.788 17.4274 16.5578L12.8671 11.9976Z" fill="#020814"/>
|
|
211
211
|
</svg>
|
|
212
|
-
`,
|
|
212
|
+
`,_0=`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
213
213
|
<path d="M17.5223 11.6612L8.44708 17.7457C7.52958 18.3607 6.28709 18.1157 5.67209 17.1984C5.45119 16.8689 5.33324 16.4812 5.33325 16.0845V3.91553C5.33325 2.81103 6.22875 1.91553 7.33325 1.91553C7.72992 1.91552 8.11762 2.03346 8.44708 2.25436L17.5221 8.33886C18.4396 8.95386 18.6848 10.1964 18.0696 11.1139C17.9245 11.3302 17.7386 11.5161 17.5223 11.6612Z" fill="#020814"/>
|
|
214
214
|
</svg>
|
|
215
|
-
`,
|
|
215
|
+
`,m0=`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
216
216
|
<rect x="4" y="2" width="4" height="16" rx="2" fill="#0047FF"/>
|
|
217
217
|
<rect x="12" y="2" width="4" height="16" rx="2" fill="#0047FF"/>
|
|
218
218
|
</svg>
|
|
219
|
-
`,
|
|
219
|
+
`,E0=`<svg width="85" height="78" viewBox="0 0 85 78" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
220
220
|
<path d="M66.4263 40.3517C71.3137 40.3582 75.9985 42.3055 79.4504 45.7653C82.9024 49.2252 84.839 53.9143 84.8343 58.8017C84.8343 68.993 76.5931 77.2552 66.4263 77.2552C61.5396 77.2478 56.8557 75.3001 53.4045 71.8404C49.9533 68.3806 48.0172 63.692 48.0219 58.8052C48.0219 48.614 56.2631 40.3517 66.4263 40.3517ZM68.4114 65.9191H64.3363V70.1203H68.4114V65.9191ZM74.6395 0.234375C77.6434 0.234375 80.066 2.67804 80.066 5.67485V39.0459C76.0612 36.2565 71.2963 34.7643 66.4158 34.7712C61.8212 34.7662 57.3229 36.0889 53.4623 38.5802L49.1142 34.3301C49.0342 34.2501 48.9392 34.1866 48.8347 34.1433C48.7302 34.1 48.6181 34.0777 48.505 34.0777C48.3918 34.0777 48.2798 34.1 48.1753 34.1433C48.0708 34.1866 47.9758 34.2501 47.8958 34.3301L30.7587 51.1031C30.6693 51.1901 30.5624 51.257 30.4451 51.2993C30.3278 51.3416 30.2027 51.3583 30.0784 51.3484C29.9541 51.3384 29.8334 51.302 29.7243 51.2416C29.6152 51.1812 29.5202 51.0982 29.4458 50.9981L21.8523 40.7753C21.7719 40.6661 21.667 40.5772 21.546 40.516C21.425 40.4548 21.2912 40.4228 21.1556 40.4228C21.02 40.4228 20.8862 40.4548 20.7652 40.516C20.6442 40.5772 20.5392 40.6661 20.4589 40.7753L8.91628 56.3195C8.81857 56.4498 8.75915 56.6048 8.74468 56.767C8.73022 56.9292 8.76129 57.0922 8.83441 57.2377C8.90752 57.3832 9.01978 57.5054 9.15856 57.5906C9.29734 57.6758 9.45713 57.7206 9.61997 57.7199H42.4659C42.4553 58.0875 42.4448 58.4551 42.4448 58.8227C42.4448 61.2349 42.8019 63.5595 43.4636 65.7616H6.24155C3.23774 65.7616 0.811584 63.3179 0.811584 60.3176V5.67485C0.811584 2.66403 3.24824 0.234375 6.23805 0.234375H74.6395ZM68.6424 47.4972H64.2312L64.7669 64.0881V64.1932H67.9808L68.6459 47.4972H68.6424ZM21.4252 12.9428C19.5826 13.0007 17.8348 13.7734 16.5519 15.0972C15.269 16.4211 14.5516 18.1922 14.5516 20.0357C14.5516 21.8792 15.269 23.6504 16.5519 24.9742C17.8348 26.2981 19.5826 27.0708 21.4252 27.1287C23.3036 27.1249 25.1037 26.3759 26.4303 25.046C27.7569 23.7161 28.5015 21.9141 28.5006 20.0357C28.5024 18.1567 27.7583 16.3538 26.4316 15.0232C25.1049 13.6925 23.3042 12.943 21.4252 12.9393V12.9428Z" fill="#CFD8ED"/>
|
|
221
221
|
</svg>
|
|
222
|
-
`,
|
|
222
|
+
`,v0=`<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
223
223
|
<circle cx="18" cy="18.0001" r="17" fill="black" fill-opacity="0.5" stroke="white" stroke-width="2" stroke-linecap="round"/>
|
|
224
224
|
<path d="M22.9529 18.3662L15.2991 23.4687C14.4929 24.0045 13.8315 23.6521 13.8315 22.6818V12.0906C13.8315 11.1203 14.4929 10.7654 15.2991 11.3061L22.9529 16.4111C23.759 16.9445 23.759 17.8279 22.9529 18.3662Z" fill="white"/>
|
|
225
225
|
</svg>
|
|
226
|
-
`,
|
|
226
|
+
`,C0=`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
227
227
|
<g clip-path="url(#clip0_211_2152)">
|
|
228
228
|
<path d="M6.99982 0.65625C10.5309 0.65625 13.3436 3.46889 13.3436 7C13.3436 10.5311 10.5309 13.3438 6.99982 13.3438C3.46871 13.3438 0.656067 10.5311 0.656067 7C0.656067 3.46889 3.46871 0.65625 6.99982 0.65625Z" stroke="#FF5A50" stroke-width="1.3125"/>
|
|
229
229
|
<path d="M6.82464 3.50212C6.5896 3.50212 6.46571 3.59869 6.31995 3.74444C6.18148 3.93757 6.13229 4.13252 6.13047 4.36573C6.13047 4.60806 6.13047 4.4623 6.17966 4.89775L6.31084 7.30457C6.31084 7.5396 6.36003 7.73273 6.4566 7.97505C6.50579 8.12081 6.64973 8.21737 6.79548 8.21737C6.99043 8.21737 7.13437 8.12081 7.18356 7.97505C7.28013 7.78921 7.32932 7.54689 7.32932 7.30457L7.52245 4.84856C7.53703 4.75928 7.57164 4.43497 7.57164 4.38578C7.59897 4.21451 7.53703 3.923 7.42589 3.79181C7.32932 3.60597 7.087 3.48208 6.82464 3.50212Z" fill="#FF5A50"/>
|
|
@@ -235,11 +235,11 @@ var Uv=Object.defineProperty;var Nv=(be,j,f)=>j in be?Uv(be,j,{enumerable:!0,con
|
|
|
235
235
|
</clipPath>
|
|
236
236
|
</defs>
|
|
237
237
|
</svg>
|
|
238
|
-
`,
|
|
238
|
+
`,y0=`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
239
239
|
<circle cx="7" cy="7" r="6.34375" stroke="#46DB7A" stroke-width="1.3125"/>
|
|
240
240
|
<path d="M4.22888 7.72945L5.97888 9.47945L10.0622 5.39612" stroke="#46DB7A" stroke-width="1.16667" stroke-linecap="round" stroke-linejoin="round"/>
|
|
241
241
|
</svg>
|
|
242
|
-
`,
|
|
242
|
+
`,S0=`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
243
243
|
<g clip-path="url(#clip0_232_1031)">
|
|
244
244
|
<path d="M6.99982 0.65625C10.5309 0.65625 13.3436 3.46889 13.3436 7C13.3436 10.5311 10.5309 13.3438 6.99982 13.3438C3.46871 13.3438 0.656067 10.5311 0.656067 7C0.656067 3.46889 3.46871 0.65625 6.99982 0.65625Z" stroke="#B8B8B8" stroke-width="1.3125"/>
|
|
245
245
|
</g>
|
|
@@ -249,7 +249,7 @@ var Uv=Object.defineProperty;var Nv=(be,j,f)=>j in be?Uv(be,j,{enumerable:!0,con
|
|
|
249
249
|
</clipPath>
|
|
250
250
|
</defs>
|
|
251
251
|
</svg>
|
|
252
|
-
`,
|
|
252
|
+
`,T0=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
253
253
|
<circle cx="8.00004" cy="7.99998" r="6.66667" stroke="url(#paint0_linear_23_808)" stroke-width="1.3"/>
|
|
254
254
|
<defs>
|
|
255
255
|
<linearGradient id="paint0_linear_23_808" x1="23.2381" y1="-2.9524" x2="4.66671" y2="10.8571" gradientUnits="userSpaceOnUse">
|
|
@@ -258,7 +258,7 @@ var Uv=Object.defineProperty;var Nv=(be,j,f)=>j in be?Uv(be,j,{enumerable:!0,con
|
|
|
258
258
|
</linearGradient>
|
|
259
259
|
</defs>
|
|
260
260
|
</svg>
|
|
261
|
-
`,
|
|
261
|
+
`,I0=`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
262
262
|
<g clip-path="url(#clip0_232_1031)">
|
|
263
263
|
<path d="M6.99982 0.65625C10.5309 0.65625 13.3436 3.46889 13.3436 7C13.3436 10.5311 10.5309 13.3438 6.99982 13.3438C3.46871 13.3438 0.656067 10.5311 0.656067 7C0.656067 3.46889 3.46871 0.65625 6.99982 0.65625Z" stroke="#E4E7ED" stroke-width="1.3125"/>
|
|
264
264
|
</g>
|
|
@@ -268,7 +268,7 @@ var Uv=Object.defineProperty;var Nv=(be,j,f)=>j in be?Uv(be,j,{enumerable:!0,con
|
|
|
268
268
|
</clipPath>
|
|
269
269
|
</defs>
|
|
270
270
|
</svg>
|
|
271
|
-
`,
|
|
271
|
+
`,w0=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
272
272
|
<circle cx="8.00004" cy="7.99998" r="6.66667" stroke="url(#paint0_linear_23_808)" stroke-width="1.3"/>
|
|
273
273
|
<defs>
|
|
274
274
|
<linearGradient id="paint0_linear_23_808" x1="23.2381" y1="-2.9524" x2="4.66671" y2="10.8571" gradientUnits="userSpaceOnUse">
|
|
@@ -277,105 +277,114 @@ var Uv=Object.defineProperty;var Nv=(be,j,f)=>j in be?Uv(be,j,{enumerable:!0,con
|
|
|
277
277
|
</linearGradient>
|
|
278
278
|
</defs>
|
|
279
279
|
</svg>
|
|
280
|
-
`,
|
|
280
|
+
`,e1=`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
281
281
|
<path d="M0 8C0 3.58172 3.58172 0 8 0H12C16.4183 0 20 3.58172 20 8V12C20 16.4183 16.4183 20 12 20H8C3.58172 20 0 16.4183 0 12V8Z" fill="#E3E7EF"/>
|
|
282
282
|
<circle cx="6" cy="10" r="1" fill="#020814"/>
|
|
283
283
|
<circle cx="10" cy="10" r="1" fill="#020814"/>
|
|
284
284
|
<circle cx="14" cy="10" r="1" fill="#020814"/>
|
|
285
285
|
</svg>
|
|
286
|
-
`,f0=qc.replace(/#E3E7EF/g,"#D0DDFF").replace(/#020814/g,"#0047FF"),h0=Gc.replace(/#CCCCCC/g,"#0047FF"),p0=$c.replace(/#F3F5FA/g,"#D0DDFF").replace(/#020814/g,"#0047FF"),g0=Fc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#020814/g,"#0047FF"),_0=Hc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#020814/g,"#0047FF"),m0=Vc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#020814/g,"#0047FF"),E0=La.replace(/#020814/g,"#0047FF").replace(/<svg([^>]*)>/,'<svg$1><rect width="24" height="24" rx="4" fill="#E3E7EF"/>');URL.createObjectURL(new Blob([H2],{type:"image/svg+xml"}));const In=URL.createObjectURL(new Blob([G2],{type:"image/svg+xml"})),Aa=URL.createObjectURL(new Blob([B2],{type:"image/svg+xml"})),Rs=URL.createObjectURL(new Blob([j2],{type:"image/svg+xml"})),xa=URL.createObjectURL(new Blob([q2],{type:"image/svg+xml"})),v0=URL.createObjectURL(new Blob([K2],{type:"image/svg+xml"})),Kc=URL.createObjectURL(new Blob([z2],{type:"image/svg+xml"})),sr=URL.createObjectURL(new Blob([Q2],{type:"image/svg+xml"})),Xs=URL.createObjectURL(new Blob([W2],{type:"image/svg+xml"})),zc=URL.createObjectURL(new Blob([Z2],{type:"image/svg+xml"})),C0={jpg:Rs,jpeg:Rs,png:Rs,gif:Rs,bmp:Rs,webp:Rs,svg:Rs,tif:Rs,tiff:Rs,ico:Rs,heic:Rs,txt:sr,log:sr,md:sr,rtf:sr,doc:zc,docx:zc,xls:Aa,xlsx:Aa,csv:Aa,ppt:Kc,pptx:Kc,pdf:v0,mp3:In,wav:In,ogg:In,aac:In,flac:In,m4a:In,wma:In,amr:In,mp4:Xs,mov:Xs,avi:Xs,mkv:Xs,webm:Xs,wmv:Xs,flv:Xs,m4v:Xs,"3gp":Xs},y0=e=>{if(!e)return xa;const t=e.lastIndexOf(".");if(t<0||t===e.length-1)return xa;const s=e.slice(t+1).toLowerCase();return C0[s]||xa},S0=URL.createObjectURL(new Blob([p0],{type:"image/svg+xml"})),T0=URL.createObjectURL(new Blob([g0],{type:"image/svg+xml"})),I0=URL.createObjectURL(new Blob([_0],{type:"image/svg+xml"})),R0=URL.createObjectURL(new Blob([m0],{type:"image/svg+xml"})),Qc=URL.createObjectURL(new Blob([qc],{type:"image/svg+xml"})),Wc=URL.createObjectURL(new Blob([f0],{type:"image/svg+xml"})),Zc=URL.createObjectURL(new Blob([Uc],{type:"image/svg+xml"})),w0=URL.createObjectURL(new Blob([Nc],{type:"image/svg+xml"})),M0=Dc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#41464F/g,"#0047FF"),O0=Pc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#41464F/g,"#0047FF"),b0=Nc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#41464F/g,"#0047FF"),L0=Uc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#41464F/g,"#0047FF"),A0=URL.createObjectURL(new Blob([Dc],{type:"image/svg+xml"})),x0=URL.createObjectURL(new Blob([M0],{type:"image/svg+xml"})),k0=URL.createObjectURL(new Blob([Pc],{type:"image/svg+xml"})),U0=URL.createObjectURL(new Blob([O0],{type:"image/svg+xml"})),N0=URL.createObjectURL(new Blob([b0],{type:"image/svg+xml"})),Yc=URL.createObjectURL(new Blob([L0],{type:"image/svg+xml"})),D0=URL.createObjectURL(new Blob([R2],{type:"image/svg+xml"})),Jc=URL.createObjectURL(new Blob([Bc],{type:"image/svg+xml"})),P0=URL.createObjectURL(new Blob([N2],{type:"image/svg+xml"})),V0=URL.createObjectURL(new Blob([D2],{type:"image/svg+xml"})),F0=URL.createObjectURL(new Blob([P2],{type:"image/svg+xml"})),Xc=URL.createObjectURL(new Blob([jc],{type:"image/svg+xml"})),$0=jc.replace(/#41464F/g,"#0047FF"),H0=Bc.replace(/#41464F/g,"#E35858"),G0=La.replace(/#020814/g,"#0047FF"),B0=URL.createObjectURL(new Blob([$0],{type:"image/svg+xml"})),j0=URL.createObjectURL(new Blob([H0],{type:"image/svg+xml"})),q0=URL.createObjectURL(new Blob([G0],{type:"image/svg+xml"})),K0=URL.createObjectURL(new Blob([V2],{type:"image/svg+xml"})),z0=URL.createObjectURL(new Blob([F2],{type:"image/svg+xml"})),Q0=URL.createObjectURL(new Blob([$2],{type:"image/svg+xml"})),W0=URL.createObjectURL(new Blob([O2],{type:"image/svg+xml"})),Z0=URL.createObjectURL(new Blob([b2],{type:"image/svg+xml"})),Y0=URL.createObjectURL(new Blob([L2],{type:"image/svg+xml"})),J0=URL.createObjectURL(new Blob([A2],{type:"image/svg+xml"}));URL.createObjectURL(new Blob([x2],{type:"image/svg+xml"})),URL.createObjectURL(new Blob([k2],{type:"image/svg+xml"}));const X0=URL.createObjectURL(new Blob([U2],{type:"image/svg+xml"})),ep=URL.createObjectURL(new Blob([Vc],{type:"image/svg+xml"})),tp=URL.createObjectURL(new Blob([Fc],{type:"image/svg+xml"})),sp=URL.createObjectURL(new Blob([$c],{type:"image/svg+xml"})),np=URL.createObjectURL(new Blob([Hc],{type:"image/svg+xml"})),ip=URL.createObjectURL(new Blob([Gc],{type:"image/svg+xml"})),op=URL.createObjectURL(new Blob([h0],{type:"image/svg+xml"}));URL.createObjectURL(new Blob([w2],{type:"image/svg+xml"}));const rp=URL.createObjectURL(new Blob([M2],{type:"image/svg+xml"})),nr=URL.createObjectURL(new Blob([m2],{type:"image/svg+xml"})),ir=URL.createObjectURL(new Blob([E2],{type:"image/svg+xml"})),ka=URL.createObjectURL(new Blob([v2],{type:"image/svg+xml"})),ap=URL.createObjectURL(new Blob([C2],{type:"image/svg+xml"})),lp=URL.createObjectURL(new Blob([y2],{type:"image/svg+xml"})),e1=URL.createObjectURL(new Blob([S2],{type:"image/svg+xml"})),cp=URL.createObjectURL(new Blob([T2],{type:"image/svg+xml"})),t1=URL.createObjectURL(new Blob([I2],{type:"image/svg+xml"})),s1=URL.createObjectURL(new Blob([Y2],{type:"image/svg+xml"})),up=URL.createObjectURL(new Blob([J2],{type:"image/svg+xml"}));URL.createObjectURL(new Blob([X2],{type:"image/svg+xml"}));const dp=URL.createObjectURL(new Blob([e0],{type:"image/svg+xml"})),fp=URL.createObjectURL(new Blob([t0],{type:"image/svg+xml"})),n1=URL.createObjectURL(new Blob([La],{type:"image/svg+xml"})),hp=URL.createObjectURL(new Blob([E0],{type:"image/svg+xml"})),pp=URL.createObjectURL(new Blob([s0],{type:"image/svg+xml"})),gp=URL.createObjectURL(new Blob([n0],{type:"image/svg+xml"})),i1=URL.createObjectURL(new Blob([i0],{type:"image/svg+xml"})),_p=URL.createObjectURL(new Blob([o0],{type:"image/svg+xml"})),o1=URL.createObjectURL(new Blob([r0],{type:"image/svg+xml"})),mp=URL.createObjectURL(new Blob([a0],{type:"image/svg+xml"})),r1=URL.createObjectURL(new Blob([l0],{type:"image/svg+xml"})),Ep=URL.createObjectURL(new Blob([c0],{type:"image/svg+xml"})),vp=URL.createObjectURL(new Blob([u0],{type:"image/svg+xml"})),Cp=URL.createObjectURL(new Blob([d0],{type:"image/svg+xml"}));class yp extends ba{constructor(s,n,i,o){super(s,n,i);q(this,"GetDefaultTag",B.L_GET_DEFAULT_USER_PROFILE_HOOK_O);q(this,"GetDefaultErrorTag",B.L_GET_DEFAULT_USER_PROFILE_HOOK_E);q(this,"ReqStartTag",B.L_REQ_USER_PROFILE_HOOK_T);q(this,"ReqFailedTag",B.L_REQ_USER_PROFILE_HOOK_E);q(this,"ReqSuccessTag",B.L_REQ_USER_PROFILE_HOOK_R);this._reqUserOnlineStatus=o}_isSameUserProfile(s,n){return s.name===n.name&&s.userId===n.userId&&s.portraitUri===n.portraitUri}_updateCacheUserProfile(s,n){s.name=n.name,s.portraitUri=n.portraitUri||s.portraitUri,s.usingDefault=!1}_checkAndUpdateCacheData(s){const{name:n,userId:i,portraitUri:o}=s;let r=this._cache.get(i),a=!1;return r?this._isSameUserProfile(r,s)||(this._updateCacheUserProfile(r,s),a=!0):(a=!0,r={name:n,userId:i,portraitUri:o||ir,usingDefault:!1,online:!1},this._cache.set(i,r)),{changed:a,cached:r}}_isInvalid(s){return typeof s!="object"||!s.userId||typeof s.userId!="string"||!s.name||typeof s.name!="string"||!!s.portraitUri&&typeof s.portraitUri!="string"}_dispatchUpdateEvent(s){s.length!==0&&this._ctx.dispatchEvent(new ne(Z.USER_PROFILES_UPDATE,s))}_createDefaultCache(s,n){return n?{...n,portraitUri:n.portraitUri||ir,usingDefault:!0,online:!1}:{userId:s,name:`${s}`,portraitUri:ir,usingDefault:!0,online:!1}}updateUserProfile(s){const n=this.logger.createTraceId();if(this.logger.warn(B.A_UPDATE_USER_PROFILE_T,void 0,n),this._isInvalid(s)){this.logger.error(B.A_UPDATE_USER_PROFILE_E,"invalid user profile",n);return}const{userId:i,name:o,portraitUri:r}=s;let a=this._cache.get(i);if(a&&this._isSameUserProfile(a,s)){this.logger.warn(B.A_UPDATE_USER_PROFILE_R,`user profile not changed: ${i}`,n);return}a?this._updateCacheUserProfile(a,s):(a={userId:i,name:o,portraitUri:r||ir,usingDefault:!1,online:!1},this._cache.set(i,a)),this.logger.info(B.A_UPDATE_USER_PROFILE_R,`userId: ${i}, name: ${o}, portraitUri: ${r}`,n),this._dispatchUpdateEvent([a])}updateUserOnlineStatus(s,n){const i=this.logger.createTraceId();if(this.logger.info(B.A_UPDATE_USER_ONLINE_STATE_T,`userId: ${s}, online: ${n}`,i),!this.store.getCommandSwitch(Rt.SHOW_USER_ONLINE_STATE)){this.logger.warn(B.A_UPDATE_USER_ONLINE_STATE_R,"command switch is off",i);return}const o=this._cache.get(s);if(!o){this.logger.warn(B.A_UPDATE_USER_ONLINE_STATE_R,`user profile not found: ${s}`,i);return}if(o.online===n){this.logger.warn(B.A_UPDATE_USER_ONLINE_STATE_R,`user online state not changed: ${s}`,i);return}o.online=n,this.logger.info(B.A_UPDATE_USER_ONLINE_STATE_R,`userId: ${s}, online: ${n}`,i),this._dispatchUpdateEvent([o])}async reqUserOnlineStatus(s){const n=this.logger.createTraceId();if(!this.store.getCommandSwitch(Rt.SHOW_USER_ONLINE_STATE))return;if(this.logger.info(B.L_REQ_USER_ONLINE_HOOK_T,`userIds: ${s.join(",")}`,n),typeof this._reqUserOnlineStatus!="function"){this.logger.error(B.L_REQ_USER_ONLINE_HOOK_E,"'reqUserOnlineStatus' is not a function",n);return}let i;try{i=await this._reqUserOnlineStatus(s)}catch(r){this.logger.error(B.L_REQ_USER_ONLINE_HOOK_E,r.message,n);return}if(!Array.isArray(i)){this.logger.error(B.L_REQ_USER_ONLINE_HOOK_E,"invalid result, must be a Array",n),console.error("invalid result: ",i);return}const o=[];i.forEach((r,a)=>{if(typeof r!="object"||typeof r.userId!="string"||typeof r.online!="boolean"){this.logger.warn(B.L_REQ_USER_ONLINE_HOOK_E,`invalid item index: ${a}`,n),console.error(`invalid item in position ${a}: `,r);return}const{userId:l,online:c}=r,u=this._cache.get(l);if(!u){this.logger.warn(B.L_REQ_USER_ONLINE_HOOK_E,`user profile not found: ${l}`,n);return}u.online!==c&&(u.online=c,o.push(u))}),this.logger.info(B.L_REQ_USER_ONLINE_HOOK_R,"",n),this._dispatchUpdateEvent(o)}}class Sp extends ba{constructor(s,n,i,o){super(s,n,o);q(this,"ReqStartTag",B.L_REQ_GROUP_PROFILE_HOOK_T);q(this,"ReqFailedTag",B.L_REQ_GROUP_PROFILE_HOOK_E);q(this,"ReqSuccessTag",B.L_REQ_GROUP_PROFILE_HOOK_R);q(this,"GetDefaultTag",B.L_GET_DEFAULT_GROUP_PROFILE_HOOK_O);q(this,"GetDefaultErrorTag",B.L_GET_DEFAULT_GROUP_PROFILE_HOOK_E);q(this,"_groupMembers",new Map);this._reqGroupMembers=i}_checkAndUpdateCacheData(s){const{name:n,groupId:i,portraitUri:o}=s;let r=this._cache.get(i),a=!1;return r?this._isSameGroupProfile(r,s)||(this._updateCacheGroupProfile(r,s),a=!0):(a=!0,r={name:n,groupId:i,portraitUri:o||nr,memberCount:0,usingDefault:!1},this._cache.set(i,r)),{changed:a,cached:r}}_isInvalid(s){return typeof s!="object"||!s.groupId||typeof s.groupId!="string"||!s.name||typeof s.name!="string"||!!s.portraitUri&&typeof s.portraitUri!="string"||typeof s.memberCount!="number"||s.memberCount<0}_isSameGroupProfile(s,n){return s.groupId===n.groupId&&s.name===n.name&&s.memberCount===n.memberCount&&s.portraitUri===n.portraitUri}_dispatchUpdateEvent(s){s.length!==0&&this._ctx.dispatchEvent(new ne(Z.GROUP_PROFILES_UPDATE,s))}_createDefaultCache(s,n){return n?{...n,portraitUri:n.portraitUri||nr,usingDefault:!0}:{groupId:s,name:`${s}`,portraitUri:nr,usingDefault:!0,memberCount:0}}_updateCacheGroupProfile(s,n){s.name=n.name,s.portraitUri=n.portraitUri||s.portraitUri,s.memberCount=n.memberCount,s.usingDefault=!1}updateGroupProfile(s){const n=this.logger.createTraceId();if(this.logger.warn(B.A_UPDATE_GROUP_PROFILE_T,void 0,n),this._isInvalid(s)){this.logger.error(B.A_UPDATE_GROUP_PROFILE_E,"invalid group profile",n);return}const{groupId:i,name:o,portraitUri:r,memberCount:a}=s;let l=this._cache.get(i);if(l&&this._isSameGroupProfile(l,s)){this.logger.warn(B.A_UPDATE_GROUP_PROFILE_R,`group profile not changed: ${i}`,n);return}l?this._updateCacheGroupProfile(l,s):(l={groupId:i,name:o,portraitUri:r||nr,usingDefault:!1,memberCount:a},this._cache.set(i,l)),this.logger.info(B.A_UPDATE_GROUP_PROFILE_R,`groupId: ${i}, name: ${o}, portraitUri: ${r}, memberCount: ${a}`,n),this._dispatchUpdateEvent([l])}_cloneGroupMember(s){const{userId:n,nickname:i}=s;return{userId:n,nickname:i}}async reqGroupMembers(s,n=!0){const i=this.logger.createTraceId();if(!n){const a=this._groupMembers.get(s);if(a)return[...a]}let o;try{this.logger.info(B.L_REQ_GROUP_MEMBERS_HOOK_T,`groupId: ${s}`,i),o=await this._reqGroupMembers(s)}catch(a){return this.logger.error(B.L_REQ_GROUP_MEMBERS_HOOK_E,a.message,i),[]}if(!o||!Array.isArray(o))return this.logger.error(B.L_REQ_GROUP_MEMBERS_HOOK_E,"result must be a Array",i),[];const r=o.filter((a,l)=>this._isInvalidGroupMemberProfile(a)?(this.logger.error(B.L_REQ_GROUP_MEMBERS_HOOK_E,`result[${l}] is invalid`,i),!1):!0).map(this._cloneGroupMember);return this.logger.info(B.L_REQ_GROUP_MEMBERS_HOOK_R,`groupId: ${s}, memberCount: ${o.length}`,i),this._groupMembers.set(s,r),r}updateGroupMembers(s,n){const i=this.logger.createTraceId();if(this.logger.info(B.A_UPDATE_GROUP_MEMBERS_T,`groupId: ${s}`,i),!n||!Array.isArray(n)){this.logger.error(B.A_UPDATE_GROUP_MEMBERS_E,"param 'members' must be a Array",i);return}if(n.some((a,l)=>this._isInvalidGroupMemberProfile(a)?(this.logger.error(B.A_UPDATE_GROUP_MEMBERS_E,`param 'members[${l}]' is invalid`,i),!0):!1))return;const o=n.map(this._cloneGroupMember);this._groupMembers.set(s,o),this._dispatchGroupMembersUpdateEvent(s,o);const r=this._cache.get(s);r?r.memberCount!==n.length&&(r.memberCount=n.length,this._dispatchUpdateEvent([r])):this.logger.warn(B.A_UPDATE_GROUP_MEMBERS_E,`group profile not found: ${s}`,i),this.logger.info(B.A_UPDATE_GROUP_MEMBERS_R,`groupId: ${s}, memberCount: ${n.length}`,i)}addGroupMembers(s,n){const i=this.logger.createTraceId();if(this.logger.info(B.A_ADD_GROUP_MEMBERS_T,`groupId: ${s}`,i),!n||!Array.isArray(n)){this.logger.error(B.A_ADD_GROUP_MEMBERS_E,"param 'members' must be a Array",i);return}if(n.some((u,d)=>{const h=this._isInvalidGroupMemberProfile(u);return h&&this.logger.error(B.A_ADD_GROUP_MEMBERS_E,`param 'members[${d}]' is invalid`,i),h}))return;const r=this._groupMembers.get(s)||[],a=n.filter(u=>!r.some(d=>d.userId===u.userId));if(a.length===0){this.logger.warn(B.A_ADD_GROUP_MEMBERS_R,`no new members to add: ${s}`,i);return}const l=[...r,...a.map(this._cloneGroupMember)];this._groupMembers.set(s,l),this._dispatchGroupMembersUpdateEvent(s,l);const c=this._cache.get(s);c?c.memberCount!==l.length&&(c.memberCount=l.length,this._dispatchUpdateEvent([c])):this.logger.warn(B.A_ADD_GROUP_MEMBERS_E,`group profile not found: ${s}`,i),this.logger.info(B.A_ADD_GROUP_MEMBERS_R,`groupId: ${s}, members: ${n.map(u=>u.userId).join(",")}`,i)}removeGroupMembers(s,n){const i=this.logger.createTraceId();if(this.logger.info(B.A_REMOVE_GROUP_MEMBERS_T,`groupId: ${s}`,i),!n||!Array.isArray(n)){this.logger.error(B.A_REMOVE_GROUP_MEMBERS_E,"param 'userIds' must be a Array",i);return}const o=n.filter((c,u)=>typeof c!="string"||c.length===0?(this.logger.error(B.A_REMOVE_GROUP_MEMBERS_E,`param 'userIds[${u}]' is invalid`,i),!1):!0);if(o.length===0){this.logger.warn(B.A_REMOVE_GROUP_MEMBERS_R,`no valid members to remove: ${s}`,i);return}const r=this._groupMembers.get(s);if(!r){this.logger.warn(B.A_REMOVE_GROUP_MEMBERS_E,`group members not found: ${s}`,i);return}const a=r.filter(c=>!o.includes(c.userId));this._groupMembers.set(s,a),this._dispatchGroupMembersUpdateEvent(s,a);const l=this._cache.get(s);l?l.memberCount!==a.length&&(l.memberCount=a.length,this._dispatchUpdateEvent([l])):this.logger.warn(B.A_REMOVE_GROUP_MEMBERS_E,`group profile not found: ${s}`,i),this.logger.info(B.A_REMOVE_GROUP_MEMBERS_R,`groupId: ${s}, members: ${o.join(",")}`,i)}_isInvalidGroupMemberProfile(s){return typeof s!="object"||!s.userId||typeof s.userId!="string"||!!s.nickname&&typeof s.nickname!="string"}_dispatchGroupMembersUpdateEvent(s,n){this._ctx.dispatchEvent(new ne(Z.GROUP_MEMBERS_UPDATE,{groupId:s,members:n}))}clear(){super.clear(),this._groupMembers.clear()}}class Tp extends ba{constructor(){super(...arguments);q(this,"ReqStartTag",B.L_REQ_SYSTEM_PROFILE_HOOK_T);q(this,"ReqFailedTag",B.L_REQ_SYSTEM_PROFILE_HOOK_E);q(this,"ReqSuccessTag",B.L_REQ_SYSTEM_PROFILE_HOOK_R);q(this,"GetDefaultTag",B.L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_O);q(this,"GetDefaultErrorTag",B.L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_E)}_checkAndUpdateCacheData(s){const{name:n,systemId:i,portraitUri:o}=s;let r=this._cache.get(i),a=!1;return r?this._isSameSystemProfile(r,s)||(this._updateCacheSystemProfile(r,s),a=!0):(a=!0,r={name:n,systemId:i,portraitUri:o||ka,usingDefault:!1},this._cache.set(i,r)),{changed:a,cached:r}}_isSameSystemProfile(s,n){return s.systemId===n.systemId&&s.name===n.name&&s.portraitUri===n.portraitUri}_updateCacheSystemProfile(s,n){s.name=n.name,s.portraitUri=n.portraitUri||s.portraitUri,s.usingDefault=!1}_isInvalid(s){return typeof s!="object"||!s.systemId||typeof s.systemId!="string"||!s.name||typeof s.name!="string"||!!s.portraitUri&&typeof s.portraitUri!="string"}_dispatchUpdateEvent(s){s.length!==0&&this._ctx.dispatchEvent(new ne(Z.SYSTEM_PROFILES_UPDATE,s))}_createDefaultCache(s,n){return n?{...n,portraitUri:n.portraitUri||ka,usingDefault:!0}:{systemId:s,name:`${s}`,portraitUri:ka,usingDefault:!0}}}class Ip extends Is{constructor(s,n){super(s);q(this,"_users");q(this,"_groups");q(this,"_systems");this._hooks=n,this._users=new yp(s,this._hooks.reqUserProfiles,this._hooks.getDefaultUserProfile,this._hooks.reqUserOnlineStatus),this._groups=new Sp(s,this._hooks.reqGroupProfiles,this._hooks.reqGroupMembers,this._hooks.getDefaultGroupProfile),this._systems=new Tp(s,this._hooks.reqSystemProfiles,this._hooks.getDefaultSystemProfile)}_onInit(){}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this._systems.clear(),this._users.clear(),this._groups.clear()}async requestUserProfiles(s,n=!1){return this._users.getCache(s,n)}async requestSystemProfiles(s,n=!1){return this._systems.reqData(s,n)}async requestGroupProfiles(s,n=!1){return this._groups.reqData(s,n)}getUserProfile(s){return this.getUserProfiles([s])[0]}getGroupProfile(s){return this.getGroupProfiles([s])[0]}getUserProfiles(s,n=!1){return this._users.getCache(s,n)}getSystemProfiles(s,n=!1){return this._systems.getCache(s,n)}getGroupProfiles(s,n=!1){return this._groups.getCache(s,n)}updateUserProfile(s){this._users.updateUserProfile(s)}updateGroupProfile(s){this._groups.updateGroupProfile(s)}updateUserOnlineStatus(s,n){this._users.updateUserOnlineStatus(s,n)}async reqUserOnlineStatus(s){return this._users.reqUserOnlineStatus(s)}async reqGroupMembers(s,n=!0){return this._groups.reqGroupMembers(s,n)}updateGroupMembers(s,n){return this._groups.updateGroupMembers(s,n)}addGroupMembers(s,n){return this._groups.addGroupMembers(s,n)}removeGroupMembers(s,n){return this._groups.removeGroupMembers(s,n)}}const Ds={en_US:{direction:"ltr",entries:{"conv.loading.msg":"Loading...","conv.mentioned.me.msg":"@me","conv.mentioned.all.msg":"@all","conv.draft.msg":"[Draft]","message.list.select":"Select the following message","message.list.unselect":"Unselect","message.list.recall.by.self":"You recalled one message","message.list.recall.by.other":"{0} recalled one message","message.list.reedit.msg":"Reedit","message.list.read":"Seen","message.list.back":"Back","message.list.reedit":"Reedit","message.list.read-receipt.tooltip.all-unread":"All unread","message.list.read-receipt.tooltip.all-read":"All read","message.list.read-receipt.tooltip.read-count":" Read: {0}","message.list.read-receipt.tooltip.unread-count":" Unread: {0}","message-type.RC:ImgMsg":"[Image]","message-type.RC:HQVCMsg":"[Audio]","message-type.RC:VcMsg":"[Audio]","message-type.RC:GIFMsg":"[Image]","message-type.RC:FileMsg":"[File]","message-type.RC:SightMsg":"[Video]","message-type.RC:ImgTextMsg":"[Image text]","message-type.RC:LBSMsg":"[Location]","message-type.RC:CombineMsg":"[Combine]","message-type.RC:CombineV2Msg":"[Combine]","message-type.RC:ReferenceMsg":"[Reference]","message-type.unknown":"[Unsupported message types]","time.format.today":"Today","time.format.yesterday":"Yesterday","time.format.monday":"Mon","time.format.tueday":"Tue","time.format.wedday":"Wed","time.format.thurday":"Thur","time.format.friday":"Fri","time.format.satday":"Sat","time.format.sunday":"Sun","time.format.full":"{0}/{1}/{2}","input.menu.item.photo":"Photo","input.menu.item.images":"Image","input.menu.item.files":"File","input.menu.item.emoji":"Emoji","input.placeholder":"Shift + Enter for newline, Enter for send","input.send":"Send","input.reply.prefix":"Reply ","input.mentioned.all":"All","input.placeholder.search":"search","conversation.menu.item.add_top":"Pin","conversation.menu.item.remove_top":"Unpin","conversation.menu.item.mute":"Mute","conversation.menu.item.unmute":"Unmute","conversation.menu.item.mark_read":"Mark as read","conversation.menu.item.mark_unread":"Mark as unread","conversation.menu.item.remove":"Delete","message.menu.item.reply":"Reply","message.menu.item.multi.choice":"Select","message.menu.item.copy":"Copy","message.menu.item.forward":"Forward","message.menu.item.delete":"Delete","message.menu.item.speech.to.text":"Transcribe","message.menu.item.cancel.speech.to.text":"Cancel Transcribe","message.speech.to.text.failed":"Speech conversion failed","message.speech.to.text.empty":" ","message.speech.to.text.unsupported":"This voice message does not support transcription","message.menu.item.recall":"Recall","conversation.empty.desc":"No message","conversation.list.empty.desc":"No conversation","conversation.list.bar.title":"Conversation","conversation.detail.bar.typing":"Typing...","conversation.detail.bar.typing.audio":"Speaking...","alert.req.msg.error":"Request message failed: {0}","alert.pickfiles.maxcount":"You can only select up to {0} files","alert.paste.not.supported":"Paste is not supported in your browser","alert.delete.message.failed":"Delete message failed: {0}","alert.delete.messages.partial.failure":"Delete {0} messages failed","alert.delete.conversation.failed":"Delete conversation failed: {0}","alert.imlib.failed.network":"The request could not be completed. Please check your network and try again later. (Error code: {0})","alert.imlib.failed.generic":"The operation could not be completed. Please try again later. (Error code: {0})","alert.forward.not.supported":"The {0} selected messages cannot be forwarded","alert.forward.over.length":"Select up to 100 chat transcripts","alert.delete.over.length":"Cannot delete more than 100 messages","alert.send.message.maxcount":"Exceeds {0} characters, please delete some and try again.","alert.message-deleted":"Message deleted","alert.conversation.list.not.ready":"Conversation list is not ready, please try again later","dialog.delete.msg":"Delete this message","dialog.delete.msg.confirm":"Delete","dialog.delete.msg.content":"This operation will only delete your conversation record, others will still see it","dialog.tips.msg":"Tips","dialog.cancel.msg":"Cancel","dialog.confirm.msg":"OK","dialog.forwarding.msg":"Forward it to","dialog.recall.msg":"Also delete for everyone","dialog.forwarding.confirm":"Send","take-photo.send-btn.label":"Send","take-photo.cancel-btn.label":"Cancel","take-photo.retry-btn.label":"Retry","take-photo.msg.camera-starting":"Camera starting...","take-photo.msg.camera-startup-failure":"Camera startup failure: {0}","multi-choice.menu.selected-count":"Selected {0} items","multi-choice.menu.forward-item-by-item":"Forward","multi-choice.menu.delete":"Delete","private.combine-msg.title":"{0} and {1} chat history","private.combine-msg.signal.title":"{0}'s chat history","group.combine-msg.title":"Group chat history","connection.status.suspended":"Network Unavailabel","connection.status.disconnected":"Active disconnection","connection.status.connecting":"Connecting...","toast.forward.success":"Forwarded successfully","toast.copy.success":"Copied","quote.status.loading":"Loading...","quote.status.deleted":"Deleted","quote.status.recalled":"Recalled","quote.status.load-error":"Load error"}},zh_CN:{direction:"ltr",entries:{"conv.loading.msg":"加载中...","conv.mentioned.me.msg":"@我","conv.mentioned.all.msg":"@所有人","conv.draft.msg":"[草稿]","message.list.select":"选择以下信息","message.list.unselect":"取消选择","message.list.recall.by.self":"你撤回了一条消息","message.list.recall.by.other":"{0} 撤回了一条消息","message.list.reedit.msg":"重新编辑","message.list.read":"已读","message.list.back":"返回","message.list.reedit":"重新编辑","message.list.read-receipt.tooltip.all-unread":"全部未读","message.list.read-receipt.tooltip.all-read":"全部已读","message.list.read-receipt.tooltip.read-count":"{0} 人已读","message.list.read-receipt.tooltip.unread-count":"{0} 人未读","message-type.RC:ImgMsg":"[图片]","message-type.RC:HQVCMsg":"[语音]","message-type.RC:VcMsg":"[语音]","message-type.RC:GIFMsg":"[图片]","message-type.RC:FileMsg":"[文件]","message-type.RC:SightMsg":"[视频]","message-type.RC:ImgTextMsg":"[图文]","message-type.RC:LBSMsg":"[位置]","message-type.RC:CombineMsg":"[合并转发]","message-type.RC:CombineV2Msg":"[合并转发]","message-type.RC:ReferenceMsg":"[引用]","message-type.unknown":"[不支持的消息类型]","time.format.today":"今天","time.format.yesterday":"昨天","time.format.monday":"星期一","time.format.tueday":"星期二","time.format.wedday":"星期三","time.format.thurday":"星期四","time.format.friday":"星期五","time.format.satday":"星期六","time.format.sunday":"星期日","time.format.full":"{0}/{1}/{2}","input.menu.item.photo":"拍照","input.menu.item.images":"图片","input.menu.item.files":"文件","input.menu.item.emoji":"表情","input.placeholder":"Shift + Enter 换行, Enter 发送","input.send":"发送","input.reply.prefix":"回复 ","input.mentioned.all":"所有人","input.placeholder.search":"搜索","conversation.menu.item.add_top":"置顶","conversation.menu.item.remove_top":"取消置顶","conversation.menu.item.mute":"免打扰","conversation.menu.item.unmute":"取消免打扰","conversation.menu.item.mark_read":"标记已读","conversation.menu.item.mark_unread":"标记未读","conversation.menu.item.remove":"删除","message.menu.item.reply":"回复","message.menu.item.multi.choice":"多选","message.menu.item.copy":"复制","message.menu.item.forward":"转发","message.menu.item.delete":"删除","message.menu.item.speech.to.text":"转文字","message.menu.item.cancel.speech.to.text":"取消转文字","message.speech.to.text.failed":"语音转换失败","message.speech.to.text.empty":" ","message.speech.to.text.unsupported":"此语音消息不支持转文字功能","message.menu.item.recall":"撤回","conversation.empty.desc":"暂无消息","conversation.list.empty.desc":"暂无对话","conversation.list.bar.title":"会话","conversation.detail.bar.typing":"对方正在输入...","conversation.detail.bar.typing.audio":"对方正在讲话...","alert.req.msg.error":"请求消息失败: {0}","alert.pickfiles.maxcount":"最多只能选择 {0} 个文件","alert.paste.not.supported":"您的浏览器不支持粘贴操作","alert.delete.message.failed":"删除消息失败: {0}","alert.delete.messages.partial.failure":"删除 {0} 条消息失败","alert.delete.conversation.failed":"删除会话失败: {0}","alert.imlib.failed.network":"当前请求未成功,请检查网络后稍候重试。(错误码:{0})","alert.imlib.failed.generic":"操作未成功,请稍后重试。(错误码:{0})","alert.forward.not.supported":"选中的第 {0} 条消息不支持转发","alert.forward.over.length":"聊天记录选择不能超过 100 条","alert.delete.over.length":"不能删除超过 100 条消息","alert.send.message.maxcount":"内容超过 {0} 字, 请删除部分内容后再尝试发送","alert.message-deleted":"消息被删除","alert.conversation.list.not.ready":"会话列表仍在加载中, 请稍后再试","dialog.delete.msg":"删除该条消息","dialog.delete.msg.confirm":"删除","dialog.delete.msg.content":"该操作仅会删除你的会话记录,其它人仍可见","dialog.tips.msg":"提示","dialog.cancel.msg":"取消","dialog.confirm.msg":"确认","dialog.forwarding.msg":"转发给","dialog.recall.msg":"同时删除对方的","dialog.forwarding.confirm":"发送","take-photo.send-btn.label":"发送","take-photo.cancel-btn.label":"取消","take-photo.retry-btn.label":"重拍","take-photo.msg.camera-starting":"相机启动中...","take-photo.msg.camera-startup-failure":"相机启动失败: {0}","multi-choice.menu.selected-count":"已选择 {0} 项","multi-choice.menu.forward-item-by-item":"逐条转发","multi-choice.menu.delete":"删除","private.combine-msg.title":"{0} 和 {1} 的聊天记录","private.combine-msg.signal.title":"{0} 的聊天记录","group.combine-msg.title":"群聊的聊天记录","connection.status.suspended":"当前网络不可用,请检查网络","connection.status.disconnected":"已主动断开连接","connection.status.connecting":"连接中...","toast.forward.success":"转发成功","toast.copy.success":"已复制","quote.status.loading":"加载中...","quote.status.deleted":"消息已删除","quote.status.recalled":"消息已撤回","quote.status.load-error":"消息查询失败"}}};class Rp extends Is{constructor(){super(...arguments);q(this,"_language","zh_CN")}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){}cloneLanguageEntries(s){return Ds[s]?(this.logger.info(B.A_CLONE_LANGUAGE_ENTRIES_O,`lang: ${s}`),{...Ds[s].entries}):(this.logger.error(B.A_CLONE_LANGUAGE_ENTRIES_O,`Language pack '${s}' not found.`),null)}registerLanguagePack(s,n,i="ltr"){this.logger.info(B.A_REGISTER_LANGUAGE_PACK_O,`lang: ${s}, direction: ${i}`),Ds[s]={direction:i,entries:n}}setLanguage(s){if(!Ds[s]){this.logger.error(B.A_SET_LANGUAGE_O,`Language pack '${s}' not found.`);return}if(this._language===s){this.logger.warn(B.A_SET_LANGUAGE_O,`Language '${s}' already in use.`);return}this.logger.info(B.A_SET_LANGUAGE_O,`current: ${this._language}, target: ${s}`);const{direction:n}=Ds[s];this._language=s,this.ctx.dispatchEvent(new ne(Z.LANGUAGE_CHANGE,{lang:s,direction:n}))}getLanguage(){return this._language}getSupportedLanguages(){return Object.keys(Ds)}getEntryString(s){var n;return(n=Ds[this._language])==null?void 0:n.entries[s]}format(s,...n){const i=Ds[this._language].entries[s];return i?i.replace(/\{\d+\}/g,(o,r)=>n[parseInt(o.substring(1,o.length-1),10)].toString()):s}}var Ps=(e=>(e[e.SUCCESS=f.ErrorCode.SUCCESS]="SUCCESS",e[e.INVALID_CONVERSATION=39001]="INVALID_CONVERSATION",e[e.TASK_CANCEL=39002]="TASK_CANCEL",e[e.CONVERSATION_LIST_NOT_READY=39003]="CONVERSATION_LIST_NOT_READY",e))(Ps||{});class a1 extends Is{constructor(s,n=5,i=5){super(s);q(this,"_timestamps",[]);q(this,"_queue",[]);q(this,"_executing",[]);q(this,"_timer",-1);q(this,"_paused",!1);this._parallel=n,this._fps=i}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){clearTimeout(this._timer),this._timer=-1}async push(s){return new Promise(n=>{this._queue.push({params:s,resolve:n}),this.logger.info(B.L_PUSH_2_QUEUE_O,`${this._tag}: queue length: ${this._queue.length}`),this._execute()})}remove(s){let n=this._queue.findIndex(i=>i.params.transactionId===s);if(n!==-1){const i=this._queue[n];return i.code=Ps.TASK_CANCEL,!0}if(n=this._executing.findIndex(i=>i.params.transactionId===s),n!==-1){const i=this._executing[n],o=this._try2CancelExecutingTask(s);return o&&(i.code=Ps.TASK_CANCEL),o}return!1}async _execute(){if(this._paused||this._queue.length===0||this._executing.length>=this._parallel)return;if(this._timestamps.length>=this._fps){this.logger.warn(B.L_TASK_QUEUE_EXECUTE_O,`${this._tag}: trigger limiting`);return}this._timer===-1&&(this._timer=window.setTimeout(()=>{this._timestamps.length=0,this._timer=-1,this._execute()},1e3));const s=this._queue.shift();this._executing.push(s),this._timestamps.push(Date.now()),this.logger.info(B.L_TASK_QUEUE_EXECUTE_O,`${this._tag}: queue length: ${this._queue.length}, executing length: ${this._executing.length}`);const n=this._handle(s.params);this._execute();const{code:i,data:o}=await n;s.code=i,s.result=o,this._checkResolve()}_checkResolve(){for(;this._executing.length&&this._executing[0].code!==void 0;){const{resolve:s,code:n,result:i}=this._executing.shift();s({code:n,data:i})}this._execute()}}class wp extends a1{constructor(s){super(s,1,5);q(this,"_tag","MessageSendQueue")}async _handle(s){const{conversation:n,message:i,options:o}=s,{conversationType:r,targetId:a,channelId:l}=n,c=this.logger.createTraceId();this.logger.info(B.L_SEND_MSG_T,`type: ${i.messageType}, conversationType: ${r}, targetId: ${a}, channelId: ${l||""}`,c);const{isCounted:u,isPersited:d,content:h,messageType:p,quoteInfo:_}=i,m=new f.BaseMessage(p,h,d,u);if(j.isObject(m.content))try{m.content=Ma(m.content)}catch(g){this.logger.warn(B.A_SEND_MESSAGE_E,g.message)}const b={...o,onSendBefore(g){var E;i.messageId=g.messageId,(E=o==null?void 0:o.onSendBefore)==null||E.call(o,g)},pushConfig:this.ctx.store.getPushConfig(i),quoteInfo:_};if(this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5){const g=[j.ConversationType.PRIVATE,j.ConversationType.GROUP].includes(n.conversationType),E=o==null?void 0:o.isMentioned;g&&!E&&(b.needReceipt=!0)}const{code:M,data:C}=await f.sendMessage(n,m,b);return M!==f.ErrorCode.SUCCESS?this.logger.warn(B.L_SEND_MSG_R,`code: ${M}`,c):this.logger.info(B.L_SEND_MSG_R,"success",c),{code:M,data:C}}_try2CancelExecutingTask(s){return!1}}class Mp extends a1{constructor(){super(...arguments);q(this,"_tag","FileUploadQueue");q(this,"_clients",new Map)}_getFileType(s){switch(s){case f.MessageType.IMAGE:case f.MessageType.GIF:return f.FileType.IMAGE;case f.MessageType.SIGHT:return f.FileType.SIGHT;case f.MessageType.COMBINE:return f.FileType.COMBINE_HTML;default:return f.FileType.FILE}}async _handle(s){const{message:n,transactionId:i}=s,o=n.file,r=this._getFileType(n.messageType),a={file:o,fileType:r,onProgress:(p,_)=>{this.logger.debug(B.L_UPLOAD_FILE_O,`name: ${o.name}, progress: ${p}/${_}`);const m=Math.floor(p*100/_);n.progress=m,this.ctx.dispatchEvent(new ne(Z.FILE_UPLOAD_PROGRESS,{progress:m,message:n}))}},l=this.logger.createTraceId();this.logger.info(B.L_UPLOAD_FILE_T,`name: ${o.name}, size: ${o.size}`,l);const c=await f.createUploadTask(a);if(c.code!==f.ErrorCode.SUCCESS)return this.logger.warn(B.L_UPLOAD_FILE_R,`code: ${c.code}`,l),{code:c.code,data:{message:n}};const u=c.data;this._clients.set(i,u);const{code:d,data:h}=await u.awaitResult();return d!==f.ErrorCode.SUCCESS?(this.logger.warn(B.L_UPLOAD_FILE_R,`code: ${d}`,l),n.progress=-1,n.sentStatus=j.SentStatus.FAILED,this.ctx.dispatchEvent(new ne(Z.MESSAGE_STATE_CHANGE,[n])),{code:d,data:{message:n}}):(this.logger.info(B.L_UPLOAD_FILE_R,"success",l),{code:d,data:{message:n,httpUrl:h.downloadUrl}})}_try2CancelExecutingTask(s){const n=this._clients.get(s);return n?(f.stopUploadTask(n.id),this._clients.delete(s),!0):!1}}/**
|
|
287
|
-
|
|
286
|
+
`,t1=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
287
|
+
<rect width="24" height="24" rx="9.6" fill="#E3E7EF"/>
|
|
288
|
+
<path d="M11.8642 18.2284C15.379 18.2284 18.2284 15.379 18.2284 11.8642C18.2284 8.34934 15.379 5.5 11.8642 5.5C8.34934 5.5 5.5 8.34934 5.5 11.8642C5.5 15.379 8.34934 18.2284 11.8642 18.2284Z" stroke="#020814" stroke-width="0.794645" stroke-linejoin="round"/>
|
|
289
|
+
<path d="M9.22918 10.7006C9.22918 11.0877 9.54293 11.4014 9.92995 11.4014C10.317 11.4014 10.6307 11.0877 10.6307 10.7006C10.6307 10.3137 10.317 9.99994 9.92995 9.99994C9.54293 9.99994 9.22918 10.3137 9.22918 10.7006ZM13.4334 10.7006C13.4334 11.0877 13.7472 11.4014 14.1342 11.4014C14.5212 11.4014 14.835 11.0877 14.835 10.7006C14.835 10.3137 14.5212 9.99994 14.1342 9.99994C13.7472 9.99994 13.4334 10.3137 13.4334 10.7006ZM12.0319 15.2551C11.0511 15.2551 10.0701 14.764 9.50954 13.9938C9.29879 13.7135 9.1597 13.3636 9.01849 13.0834C8.94895 12.8726 9.08797 12.663 9.22924 12.5923C9.44 12.5228 9.57908 12.6619 9.64972 12.803C9.71926 13.0833 9.86047 13.2941 9.99956 13.5039C10.5601 14.2046 11.2609 14.5555 12.0309 14.5555C12.8011 14.5555 13.5726 14.2057 13.993 13.5745C14.1331 13.3637 14.2733 13.0845 14.3428 12.8737C14.4135 12.663 14.6231 12.5934 14.7632 12.663C14.9739 12.7325 15.0435 12.9432 14.9739 13.0834C14.9034 13.4332 14.6938 13.7135 14.4829 13.9938C13.994 14.765 13.013 15.2551 12.0319 15.2551Z" fill="#020814" stroke="#020814" stroke-width="0.15"/>
|
|
290
|
+
</svg>
|
|
291
|
+
`,R0=e1.replace(/#E3E7EF/g,"#D0DDFF").replace(/#020814/g,"#0047FF"),M0=t1.replace(/#E3E7EF/g,"#D0DDFF").replace(/#020814/g,"#0047FF"),O0=Yc.replace(/#CCCCCC/g,"#0047FF"),b0=Wc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#020814/g,"#0047FF"),L0=Qc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#020814/g,"#0047FF"),A0=Zc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#020814/g,"#0047FF"),x0=zc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#020814/g,"#0047FF"),k0=Pa.replace(/#020814/g,"#0047FF").replace(/<svg([^>]*)>/,'<svg$1><rect width="24" height="24" rx="4" fill="#E3E7EF"/>');URL.createObjectURL(new Blob([t0],{type:"image/svg+xml"}));const Tn=URL.createObjectURL(new Blob([s0],{type:"image/svg+xml"})),Va=URL.createObjectURL(new Blob([n0],{type:"image/svg+xml"})),As=URL.createObjectURL(new Blob([i0],{type:"image/svg+xml"})),Fa=URL.createObjectURL(new Blob([o0],{type:"image/svg+xml"})),U0=URL.createObjectURL(new Blob([r0],{type:"image/svg+xml"})),s1=URL.createObjectURL(new Blob([a0],{type:"image/svg+xml"})),nr=URL.createObjectURL(new Blob([l0],{type:"image/svg+xml"})),sn=URL.createObjectURL(new Blob([c0],{type:"image/svg+xml"})),n1=URL.createObjectURL(new Blob([u0],{type:"image/svg+xml"})),N0={jpg:As,jpeg:As,png:As,gif:As,bmp:As,webp:As,svg:As,tif:As,tiff:As,ico:As,heic:As,txt:nr,log:nr,md:nr,rtf:nr,doc:n1,docx:n1,xls:Va,xlsx:Va,csv:Va,ppt:s1,pptx:s1,pdf:U0,mp3:Tn,wav:Tn,ogg:Tn,aac:Tn,flac:Tn,m4a:Tn,wma:Tn,amr:Tn,mp4:sn,mov:sn,avi:sn,mkv:sn,webm:sn,wmv:sn,flv:sn,m4v:sn,"3gp":sn},D0=e=>{if(!e)return Fa;const t=e.lastIndexOf(".");if(t<0||t===e.length-1)return Fa;const s=e.slice(t+1).toLowerCase();return N0[s]||Fa},P0=URL.createObjectURL(new Blob([b0],{type:"image/svg+xml"})),V0=URL.createObjectURL(new Blob([L0],{type:"image/svg+xml"})),F0=URL.createObjectURL(new Blob([A0],{type:"image/svg+xml"})),$0=URL.createObjectURL(new Blob([x0],{type:"image/svg+xml"})),i1=URL.createObjectURL(new Blob([e1],{type:"image/svg+xml"})),o1=URL.createObjectURL(new Blob([R0],{type:"image/svg+xml"})),r1=URL.createObjectURL(new Blob([Bc],{type:"image/svg+xml"})),H0=URL.createObjectURL(new Blob([jc],{type:"image/svg+xml"})),G0=URL.createObjectURL(new Blob([t1],{type:"image/svg+xml"})),B0=URL.createObjectURL(new Blob([M0],{type:"image/svg+xml"})),j0=qc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#41464F/g,"#0047FF"),q0=Kc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#41464F/g,"#0047FF"),K0=jc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#41464F/g,"#0047FF"),z0=Bc.replace(/#F3F5FA/g,"#D0DDFF").replace(/#41464F/g,"#0047FF"),Q0=URL.createObjectURL(new Blob([qc],{type:"image/svg+xml"})),W0=URL.createObjectURL(new Blob([j0],{type:"image/svg+xml"})),Z0=URL.createObjectURL(new Blob([Kc],{type:"image/svg+xml"})),Y0=URL.createObjectURL(new Blob([q0],{type:"image/svg+xml"})),X0=URL.createObjectURL(new Blob([K0],{type:"image/svg+xml"})),a1=URL.createObjectURL(new Blob([z0],{type:"image/svg+xml"})),J0=URL.createObjectURL(new Blob([F2],{type:"image/svg+xml"})),l1=URL.createObjectURL(new Blob([Xc],{type:"image/svg+xml"})),ep=URL.createObjectURL(new Blob([W2],{type:"image/svg+xml"})),tp=URL.createObjectURL(new Blob([Z2],{type:"image/svg+xml"})),sp=URL.createObjectURL(new Blob([Y2],{type:"image/svg+xml"})),c1=URL.createObjectURL(new Blob([Jc],{type:"image/svg+xml"})),np=Jc.replace(/#41464F/g,"#0047FF"),ip=Xc.replace(/#41464F/g,"#E35858"),op=Pa.replace(/#020814/g,"#0047FF"),rp=URL.createObjectURL(new Blob([np],{type:"image/svg+xml"})),ap=URL.createObjectURL(new Blob([ip],{type:"image/svg+xml"})),lp=URL.createObjectURL(new Blob([op],{type:"image/svg+xml"})),cp=URL.createObjectURL(new Blob([X2],{type:"image/svg+xml"})),up=URL.createObjectURL(new Blob([J2],{type:"image/svg+xml"})),dp=URL.createObjectURL(new Blob([e0],{type:"image/svg+xml"})),fp=URL.createObjectURL(new Blob([G2],{type:"image/svg+xml"})),hp=URL.createObjectURL(new Blob([B2],{type:"image/svg+xml"})),pp=URL.createObjectURL(new Blob([j2],{type:"image/svg+xml"})),gp=URL.createObjectURL(new Blob([q2],{type:"image/svg+xml"}));URL.createObjectURL(new Blob([K2],{type:"image/svg+xml"})),URL.createObjectURL(new Blob([z2],{type:"image/svg+xml"}));const _p=URL.createObjectURL(new Blob([Q2],{type:"image/svg+xml"})),mp=URL.createObjectURL(new Blob([zc],{type:"image/svg+xml"})),Ep=URL.createObjectURL(new Blob([Qc],{type:"image/svg+xml"})),vp=URL.createObjectURL(new Blob([Wc],{type:"image/svg+xml"})),Cp=URL.createObjectURL(new Blob([Zc],{type:"image/svg+xml"})),yp=URL.createObjectURL(new Blob([Yc],{type:"image/svg+xml"})),Sp=URL.createObjectURL(new Blob([O0],{type:"image/svg+xml"}));URL.createObjectURL(new Blob([$2],{type:"image/svg+xml"}));const Tp=URL.createObjectURL(new Blob([H2],{type:"image/svg+xml"})),ir=URL.createObjectURL(new Blob([A2],{type:"image/svg+xml"})),or=URL.createObjectURL(new Blob([x2],{type:"image/svg+xml"})),$a=URL.createObjectURL(new Blob([k2],{type:"image/svg+xml"})),Ip=URL.createObjectURL(new Blob([U2],{type:"image/svg+xml"})),wp=URL.createObjectURL(new Blob([N2],{type:"image/svg+xml"})),u1=URL.createObjectURL(new Blob([D2],{type:"image/svg+xml"})),Rp=URL.createObjectURL(new Blob([P2],{type:"image/svg+xml"})),d1=URL.createObjectURL(new Blob([V2],{type:"image/svg+xml"})),f1=URL.createObjectURL(new Blob([d0],{type:"image/svg+xml"})),Mp=URL.createObjectURL(new Blob([f0],{type:"image/svg+xml"}));URL.createObjectURL(new Blob([h0],{type:"image/svg+xml"}));const Op=URL.createObjectURL(new Blob([p0],{type:"image/svg+xml"})),bp=URL.createObjectURL(new Blob([g0],{type:"image/svg+xml"})),h1=URL.createObjectURL(new Blob([Pa],{type:"image/svg+xml"})),Lp=URL.createObjectURL(new Blob([k0],{type:"image/svg+xml"})),Ap=URL.createObjectURL(new Blob([_0],{type:"image/svg+xml"})),xp=URL.createObjectURL(new Blob([m0],{type:"image/svg+xml"})),p1=URL.createObjectURL(new Blob([E0],{type:"image/svg+xml"})),kp=URL.createObjectURL(new Blob([v0],{type:"image/svg+xml"})),g1=URL.createObjectURL(new Blob([C0],{type:"image/svg+xml"})),Up=URL.createObjectURL(new Blob([y0],{type:"image/svg+xml"})),_1=URL.createObjectURL(new Blob([S0],{type:"image/svg+xml"})),Np=URL.createObjectURL(new Blob([T0],{type:"image/svg+xml"})),Dp=URL.createObjectURL(new Blob([I0],{type:"image/svg+xml"})),Pp=URL.createObjectURL(new Blob([w0],{type:"image/svg+xml"}));class Vp extends Da{constructor(s,n,i,o){super(s,n,i);B(this,"GetDefaultTag",G.L_GET_DEFAULT_USER_PROFILE_HOOK_O);B(this,"GetDefaultErrorTag",G.L_GET_DEFAULT_USER_PROFILE_HOOK_E);B(this,"ReqStartTag",G.L_REQ_USER_PROFILE_HOOK_T);B(this,"ReqFailedTag",G.L_REQ_USER_PROFILE_HOOK_E);B(this,"ReqSuccessTag",G.L_REQ_USER_PROFILE_HOOK_R);this._reqUserOnlineStatus=o}_isSameUserProfile(s,n){return s.name===n.name&&s.userId===n.userId&&s.portraitUri===n.portraitUri}_updateCacheUserProfile(s,n){s.name=n.name,s.portraitUri=n.portraitUri||s.portraitUri,s.usingDefault=!1}_checkAndUpdateCacheData(s){const{name:n,userId:i,portraitUri:o}=s;let r=this._cache.get(i),a=!1;return r?this._isSameUserProfile(r,s)||(this._updateCacheUserProfile(r,s),a=!0):(a=!0,r={name:n,userId:i,portraitUri:o||or,usingDefault:!1,online:!1},this._cache.set(i,r)),{changed:a,cached:r}}_isInvalid(s){return typeof s!="object"||!s.userId||typeof s.userId!="string"||!s.name||typeof s.name!="string"||!!s.portraitUri&&typeof s.portraitUri!="string"}_dispatchUpdateEvent(s){s.length!==0&&this._ctx.dispatch(new ee(Z.USER_PROFILES_UPDATE,s))}_createDefaultCache(s,n){return n?{...n,portraitUri:n.portraitUri||or,usingDefault:!0,online:!1}:{userId:s,name:`${s}`,portraitUri:or,usingDefault:!0,online:!1}}updateUserProfile(s){const n=this.logger.createTraceId();if(this.logger.warn(G.A_UPDATE_USER_PROFILE_T,void 0,n),this._isInvalid(s)){this.logger.error(G.A_UPDATE_USER_PROFILE_E,"invalid user profile",n);return}const{userId:i,name:o,portraitUri:r}=s;let a=this._cache.get(i);if(a&&this._isSameUserProfile(a,s)){this.logger.warn(G.A_UPDATE_USER_PROFILE_R,`user profile not changed: ${i}`,n);return}a?this._updateCacheUserProfile(a,s):(a={userId:i,name:o,portraitUri:r||or,usingDefault:!1,online:!1},this._cache.set(i,a)),this.logger.info(G.A_UPDATE_USER_PROFILE_R,`userId: ${i}, name: ${o}, portraitUri: ${r}`,n),this._dispatchUpdateEvent([a])}updateUserOnlineStatus(s,n){const i=this.logger.createTraceId();if(this.logger.info(G.A_UPDATE_USER_ONLINE_STATE_T,`userId: ${s}, online: ${n}`,i),!this.store.getCommandSwitch(ut.SHOW_USER_ONLINE_STATE)){this.logger.warn(G.A_UPDATE_USER_ONLINE_STATE_R,"command switch is off",i);return}const o=this._cache.get(s);if(!o){this.logger.warn(G.A_UPDATE_USER_ONLINE_STATE_R,`user profile not found: ${s}`,i);return}if(o.online===n){this.logger.warn(G.A_UPDATE_USER_ONLINE_STATE_R,`user online state not changed: ${s}`,i);return}o.online=n,this.logger.info(G.A_UPDATE_USER_ONLINE_STATE_R,`userId: ${s}, online: ${n}`,i),this._dispatchUpdateEvent([o])}async reqUserOnlineStatus(s){const n=this.logger.createTraceId();if(!this.store.getCommandSwitch(ut.SHOW_USER_ONLINE_STATE))return;if(this.logger.info(G.L_REQ_USER_ONLINE_HOOK_T,`userIds: ${s.join(",")}`,n),typeof this._reqUserOnlineStatus!="function"){this.logger.error(G.L_REQ_USER_ONLINE_HOOK_E,"'reqUserOnlineStatus' is not a function",n);return}let i;try{i=await this._reqUserOnlineStatus(s)}catch(r){this.logger.error(G.L_REQ_USER_ONLINE_HOOK_E,r.message,n);return}if(!Array.isArray(i)){this.logger.error(G.L_REQ_USER_ONLINE_HOOK_E,"invalid result, must be a Array",n),console.error("invalid result: ",i);return}const o=[];i.forEach((r,a)=>{if(typeof r!="object"||typeof r.userId!="string"||typeof r.online!="boolean"){this.logger.warn(G.L_REQ_USER_ONLINE_HOOK_E,`invalid item index: ${a}`,n),console.error(`invalid item in position ${a}: `,r);return}const{userId:l,online:c}=r,u=this._cache.get(l);if(!u){this.logger.warn(G.L_REQ_USER_ONLINE_HOOK_E,`user profile not found: ${l}`,n);return}u.online!==c&&(u.online=c,o.push(u))}),this.logger.info(G.L_REQ_USER_ONLINE_HOOK_R,"",n),this._dispatchUpdateEvent(o)}}class Fp extends Da{constructor(s,n,i,o){super(s,n,o);B(this,"ReqStartTag",G.L_REQ_GROUP_PROFILE_HOOK_T);B(this,"ReqFailedTag",G.L_REQ_GROUP_PROFILE_HOOK_E);B(this,"ReqSuccessTag",G.L_REQ_GROUP_PROFILE_HOOK_R);B(this,"GetDefaultTag",G.L_GET_DEFAULT_GROUP_PROFILE_HOOK_O);B(this,"GetDefaultErrorTag",G.L_GET_DEFAULT_GROUP_PROFILE_HOOK_E);B(this,"_groupMembers",new Map);this._reqGroupMembers=i}_checkAndUpdateCacheData(s){const{name:n,groupId:i,portraitUri:o}=s;let r=this._cache.get(i),a=!1;return r?this._isSameGroupProfile(r,s)||(this._updateCacheGroupProfile(r,s),a=!0):(a=!0,r={name:n,groupId:i,portraitUri:o||ir,memberCount:0,usingDefault:!1},this._cache.set(i,r)),{changed:a,cached:r}}_isInvalid(s){return typeof s!="object"||!s.groupId||typeof s.groupId!="string"||!s.name||typeof s.name!="string"||!!s.portraitUri&&typeof s.portraitUri!="string"||typeof s.memberCount!="number"||s.memberCount<0}_isSameGroupProfile(s,n){return s.groupId===n.groupId&&s.name===n.name&&s.memberCount===n.memberCount&&s.portraitUri===n.portraitUri}_dispatchUpdateEvent(s){s.length!==0&&this._ctx.dispatch(new ee(Z.GROUP_PROFILES_UPDATE,s))}_createDefaultCache(s,n){return n?{...n,portraitUri:n.portraitUri||ir,usingDefault:!0}:{groupId:s,name:`${s}`,portraitUri:ir,usingDefault:!0,memberCount:0}}_updateCacheGroupProfile(s,n){s.name=n.name,s.portraitUri=n.portraitUri||s.portraitUri,s.memberCount=n.memberCount,s.usingDefault=!1}updateGroupProfile(s){const n=this.logger.createTraceId();if(this.logger.warn(G.A_UPDATE_GROUP_PROFILE_T,void 0,n),this._isInvalid(s)){this.logger.error(G.A_UPDATE_GROUP_PROFILE_E,"invalid group profile",n);return}const{groupId:i,name:o,portraitUri:r,memberCount:a}=s;let l=this._cache.get(i);if(l&&this._isSameGroupProfile(l,s)){this.logger.warn(G.A_UPDATE_GROUP_PROFILE_R,`group profile not changed: ${i}`,n);return}l?this._updateCacheGroupProfile(l,s):(l={groupId:i,name:o,portraitUri:r||ir,usingDefault:!1,memberCount:a},this._cache.set(i,l)),this.logger.info(G.A_UPDATE_GROUP_PROFILE_R,`groupId: ${i}, name: ${o}, portraitUri: ${r}, memberCount: ${a}`,n),this._dispatchUpdateEvent([l])}_cloneGroupMember(s){const{userId:n,nickname:i}=s;return{userId:n,nickname:i}}async reqGroupMembers(s,n=!0){const i=this.logger.createTraceId();if(!n){const a=this._groupMembers.get(s);if(a)return[...a]}let o;try{this.logger.info(G.L_REQ_GROUP_MEMBERS_HOOK_T,`groupId: ${s}`,i),o=await this._reqGroupMembers(s)}catch(a){return this.logger.error(G.L_REQ_GROUP_MEMBERS_HOOK_E,a.message,i),[]}if(!o||!Array.isArray(o))return this.logger.error(G.L_REQ_GROUP_MEMBERS_HOOK_E,"result must be a Array",i),[];const r=o.filter((a,l)=>this._isInvalidGroupMemberProfile(a)?(this.logger.error(G.L_REQ_GROUP_MEMBERS_HOOK_E,`result[${l}] is invalid`,i),!1):!0).map(this._cloneGroupMember);return this.logger.info(G.L_REQ_GROUP_MEMBERS_HOOK_R,`groupId: ${s}, memberCount: ${o.length}`,i),this._groupMembers.set(s,r),r}updateGroupMembers(s,n){const i=this.logger.createTraceId();if(this.logger.info(G.A_UPDATE_GROUP_MEMBERS_T,`groupId: ${s}`,i),!n||!Array.isArray(n)){this.logger.error(G.A_UPDATE_GROUP_MEMBERS_E,"param 'members' must be a Array",i);return}if(n.some((a,l)=>this._isInvalidGroupMemberProfile(a)?(this.logger.error(G.A_UPDATE_GROUP_MEMBERS_E,`param 'members[${l}]' is invalid`,i),!0):!1))return;const o=n.map(this._cloneGroupMember);this._groupMembers.set(s,o),this._dispatchGroupMembersUpdateEvent(s,o);const r=this._cache.get(s);r?r.memberCount!==n.length&&(r.memberCount=n.length,this._dispatchUpdateEvent([r])):this.logger.warn(G.A_UPDATE_GROUP_MEMBERS_E,`group profile not found: ${s}`,i),this.logger.info(G.A_UPDATE_GROUP_MEMBERS_R,`groupId: ${s}, memberCount: ${n.length}`,i)}addGroupMembers(s,n){const i=this.logger.createTraceId();if(this.logger.info(G.A_ADD_GROUP_MEMBERS_T,`groupId: ${s}`,i),!n||!Array.isArray(n)){this.logger.error(G.A_ADD_GROUP_MEMBERS_E,"param 'members' must be a Array",i);return}if(n.some((u,d)=>{const h=this._isInvalidGroupMemberProfile(u);return h&&this.logger.error(G.A_ADD_GROUP_MEMBERS_E,`param 'members[${d}]' is invalid`,i),h}))return;const r=this._groupMembers.get(s)||[],a=n.filter(u=>!r.some(d=>d.userId===u.userId));if(a.length===0){this.logger.warn(G.A_ADD_GROUP_MEMBERS_R,`no new members to add: ${s}`,i);return}const l=[...r,...a.map(this._cloneGroupMember)];this._groupMembers.set(s,l),this._dispatchGroupMembersUpdateEvent(s,l);const c=this._cache.get(s);c?c.memberCount!==l.length&&(c.memberCount=l.length,this._dispatchUpdateEvent([c])):this.logger.warn(G.A_ADD_GROUP_MEMBERS_E,`group profile not found: ${s}`,i),this.logger.info(G.A_ADD_GROUP_MEMBERS_R,`groupId: ${s}, members: ${n.map(u=>u.userId).join(",")}`,i)}removeGroupMembers(s,n){const i=this.logger.createTraceId();if(this.logger.info(G.A_REMOVE_GROUP_MEMBERS_T,`groupId: ${s}`,i),!n||!Array.isArray(n)){this.logger.error(G.A_REMOVE_GROUP_MEMBERS_E,"param 'userIds' must be a Array",i);return}const o=n.filter((c,u)=>typeof c!="string"||c.length===0?(this.logger.error(G.A_REMOVE_GROUP_MEMBERS_E,`param 'userIds[${u}]' is invalid`,i),!1):!0);if(o.length===0){this.logger.warn(G.A_REMOVE_GROUP_MEMBERS_R,`no valid members to remove: ${s}`,i);return}const r=this._groupMembers.get(s);if(!r){this.logger.warn(G.A_REMOVE_GROUP_MEMBERS_E,`group members not found: ${s}`,i);return}const a=r.filter(c=>!o.includes(c.userId));this._groupMembers.set(s,a),this._dispatchGroupMembersUpdateEvent(s,a);const l=this._cache.get(s);l?l.memberCount!==a.length&&(l.memberCount=a.length,this._dispatchUpdateEvent([l])):this.logger.warn(G.A_REMOVE_GROUP_MEMBERS_E,`group profile not found: ${s}`,i),this.logger.info(G.A_REMOVE_GROUP_MEMBERS_R,`groupId: ${s}, members: ${o.join(",")}`,i)}_isInvalidGroupMemberProfile(s){return typeof s!="object"||!s.userId||typeof s.userId!="string"||!!s.nickname&&typeof s.nickname!="string"}_dispatchGroupMembersUpdateEvent(s,n){this._ctx.dispatch(new ee(Z.GROUP_MEMBERS_UPDATE,{groupId:s,members:n}))}clear(){super.clear(),this._groupMembers.clear()}}class $p extends Da{constructor(){super(...arguments);B(this,"ReqStartTag",G.L_REQ_SYSTEM_PROFILE_HOOK_T);B(this,"ReqFailedTag",G.L_REQ_SYSTEM_PROFILE_HOOK_E);B(this,"ReqSuccessTag",G.L_REQ_SYSTEM_PROFILE_HOOK_R);B(this,"GetDefaultTag",G.L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_O);B(this,"GetDefaultErrorTag",G.L_GET_DEFAULT_SYSTEM_PROFILE_HOOK_E)}_checkAndUpdateCacheData(s){const{name:n,systemId:i,portraitUri:o}=s;let r=this._cache.get(i),a=!1;return r?this._isSameSystemProfile(r,s)||(this._updateCacheSystemProfile(r,s),a=!0):(a=!0,r={name:n,systemId:i,portraitUri:o||$a,usingDefault:!1},this._cache.set(i,r)),{changed:a,cached:r}}_isSameSystemProfile(s,n){return s.systemId===n.systemId&&s.name===n.name&&s.portraitUri===n.portraitUri}_updateCacheSystemProfile(s,n){s.name=n.name,s.portraitUri=n.portraitUri||s.portraitUri,s.usingDefault=!1}_isInvalid(s){return typeof s!="object"||!s.systemId||typeof s.systemId!="string"||!s.name||typeof s.name!="string"||!!s.portraitUri&&typeof s.portraitUri!="string"}_dispatchUpdateEvent(s){s.length!==0&&this._ctx.dispatch(new ee(Z.SYSTEM_PROFILES_UPDATE,s))}_createDefaultCache(s,n){return n?{...n,portraitUri:n.portraitUri||$a,usingDefault:!0}:{systemId:s,name:`${s}`,portraitUri:$a,usingDefault:!0}}}class Hp extends Ls{constructor(s,n){super(s);B(this,"_users");B(this,"_groups");B(this,"_systems");this._hooks=n,this._users=new Vp(s,this._hooks.reqUserProfiles,this._hooks.getDefaultUserProfile,this._hooks.reqUserOnlineStatus),this._groups=new Fp(s,this._hooks.reqGroupProfiles,this._hooks.reqGroupMembers,this._hooks.getDefaultGroupProfile),this._systems=new $p(s,this._hooks.reqSystemProfiles,this._hooks.getDefaultSystemProfile)}_onInit(){}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this._systems.clear(),this._users.clear(),this._groups.clear()}async requestUserProfiles(s,n=!1){return this._users.getCache(s,n)}async requestSystemProfiles(s,n=!1){return this._systems.reqData(s,n)}async requestGroupProfiles(s,n=!1){return this._groups.reqData(s,n)}getUserProfile(s){return this.getUserProfiles([s])[0]}getGroupProfile(s){return this.getGroupProfiles([s])[0]}getUserProfiles(s,n=!1){return this._users.getCache(s,n)}getSystemProfiles(s,n=!1){return this._systems.getCache(s,n)}getGroupProfiles(s,n=!1){return this._groups.getCache(s,n)}updateUserProfile(s){this._users.updateUserProfile(s)}updateGroupProfile(s){this._groups.updateGroupProfile(s)}updateUserOnlineStatus(s,n){this._users.updateUserOnlineStatus(s,n)}async reqUserOnlineStatus(s){return this._users.reqUserOnlineStatus(s)}async reqGroupMembers(s,n=!0){return this._groups.reqGroupMembers(s,n)}updateGroupMembers(s,n){return this._groups.updateGroupMembers(s,n)}addGroupMembers(s,n){return this._groups.addGroupMembers(s,n)}removeGroupMembers(s,n){return this._groups.removeGroupMembers(s,n)}async requestUserViewProfiles(s,n){const i=new Map;return(await this.requestUserProfiles(s)).forEach(r=>{i.set(r.userId,{...r})}),n&&(await this.reqGroupMembers(n)).forEach(a=>{const l=i.get(a.userId);l&&(l.nickname=a.nickname)}),i}}const Hs={en_US:{direction:"ltr",entries:{"conv.loading.msg":"Loading...","conv.mentioned.me.msg":"@me","conv.mentioned.all.msg":"@all","conv.draft.msg":"[Draft]","message.list.select":"Select the following message","message.list.unselect":"Unselect","message.list.recall.by.self":"You recalled one message","message.list.recall.by.other":"{0} recalled one message","message.list.reedit.msg":"Reedit","message.list.read":"Seen","message.list.back":"Back","message.list.reedit":"Reedit","message.list.read-receipt.tooltip.all-unread":"All unread","message.list.read-receipt.tooltip.all-read":"All read","message.list.read-receipt.tooltip.read-count":" Read: {0}","message.list.read-receipt.tooltip.unread-count":" Unread: {0}","message-type.RC:ImgMsg":"[Image]","message-type.RC:HQVCMsg":"[Audio]","message-type.RC:VcMsg":"[Audio]","message-type.RC:GIFMsg":"[Image]","message-type.RC:FileMsg":"[File]","message-type.RC:SightMsg":"[Video]","message-type.RC:ImgTextMsg":"[Image text]","message-type.RC:LBSMsg":"[Location]","message-type.RC:CombineMsg":"[Combine]","message-type.RC:CombineV2Msg":"[Combine]","message-type.RC:ReferenceMsg":"[Reference]","message-type.unknown":"[Unsupported message types]","time.format.today":"Today","time.format.yesterday":"Yesterday","time.format.monday":"Mon","time.format.tueday":"Tue","time.format.wedday":"Wed","time.format.thurday":"Thur","time.format.friday":"Fri","time.format.satday":"Sat","time.format.sunday":"Sun","time.format.full":"{0}/{1}/{2}","input.menu.item.photo":"Photo","input.menu.item.images":"Image","input.menu.item.files":"File","input.menu.item.emoji":"Emoji","input.placeholder":"Shift + Enter for newline, Enter for send","input.send":"Send","input.reply.prefix":"Reply ","input.mentioned.all":"All","input.placeholder.search":"search","conversation.menu.item.add_top":"Pin","conversation.menu.item.remove_top":"Unpin","conversation.menu.item.mute":"Mute","conversation.menu.item.unmute":"Unmute","conversation.menu.item.mark_read":"Mark as read","conversation.menu.item.mark_unread":"Mark as unread","conversation.menu.item.remove":"Delete","message.menu.item.reply":"Reply","message.menu.item.multi.choice":"Select","message.menu.item.copy":"Copy","message.menu.item.forward":"Forward","message.menu.item.delete":"Delete","message.menu.item.speech.to.text":"Transcribe","message.menu.item.cancel.speech.to.text":"Cancel Transcribe","message.speech.to.text.failed":"Speech conversion failed","message.speech.to.text.empty":" ","message.speech.to.text.unsupported":"This voice message does not support transcription","message.menu.item.recall":"Recall","conversation.empty.desc":"No message","conversation.list.empty.desc":"No conversation","conversation.list.bar.title":"Conversation","conversation.detail.bar.typing":"Typing...","conversation.detail.bar.typing.audio":"Speaking...","alert.req.msg.error":"Request message failed: {0}","alert.pickfiles.maxcount":"You can only select up to {0} files","alert.paste.not.supported":"Paste is not supported in your browser","alert.delete.message.failed":"Delete message failed: {0}","alert.delete.messages.partial.failure":"Delete {0} messages failed","alert.delete.conversation.failed":"Delete conversation failed: {0}","alert.imlib.failed.network":"The request could not be completed. Please check your network and try again later. (Error code: {0})","alert.imlib.failed.generic":"The operation could not be completed. Please try again later. (Error code: {0})","alert.forward.not.supported":"The {0} selected messages cannot be forwarded","alert.forward.over.length":"Select up to 100 chat transcripts","alert.delete.over.length":"Cannot delete more than 100 messages","alert.send.message.maxcount":"Exceeds {0} characters, please delete some and try again.","alert.message-deleted":"Message deleted","alert.conversation.list.not.ready":"Conversation list is not ready, please try again later","dialog.delete.msg":"Delete this message","dialog.delete.msg.confirm":"Delete","dialog.delete.msg.content":"This operation will only delete your conversation record, others will still see it","dialog.tips.msg":"Tips","dialog.cancel.msg":"Cancel","dialog.confirm.msg":"OK","dialog.forwarding.msg":"Forward it to","dialog.recall.msg":"Also delete for everyone","dialog.forwarding.confirm":"Send","take-photo.send-btn.label":"Send","take-photo.cancel-btn.label":"Cancel","take-photo.retry-btn.label":"Retry","take-photo.msg.camera-starting":"Camera starting...","take-photo.msg.camera-startup-failure":"Camera startup failure: {0}","multi-choice.menu.selected-count":"Selected {0} items","multi-choice.menu.forward-item-by-item":"Forward","multi-choice.menu.delete":"Delete","private.combine-msg.title":"{0} and {1} chat history","private.combine-msg.signal.title":"{0}'s chat history","group.combine-msg.title":"Group chat history","connection.status.suspended":"Network Unavailabel","connection.status.disconnected":"Active disconnection","connection.status.connecting":"Connecting...","toast.forward.success":"Forwarded successfully","toast.copy.success":"Copied","quote.status.loading":"Loading...","quote.status.deleted":"Deleted","quote.status.recalled":"Recalled","quote.status.load-error":"Load error","reaction.detail.title":"Reaction Details","reaction.detail.loading":"Loading...","reaction.total.users":"{0}","alert.reaction.limit.reached":"Reaction limit reached. Cannot add more.","alert.reaction.failed":"Reaction failed. Please try again later."}},zh_CN:{direction:"ltr",entries:{"conv.loading.msg":"加载中...","conv.mentioned.me.msg":"@我","conv.mentioned.all.msg":"@所有人","conv.draft.msg":"[草稿]","message.list.select":"选择以下信息","message.list.unselect":"取消选择","message.list.recall.by.self":"你撤回了一条消息","message.list.recall.by.other":"{0} 撤回了一条消息","message.list.reedit.msg":"重新编辑","message.list.read":"已读","message.list.back":"返回","message.list.reedit":"重新编辑","message.list.read-receipt.tooltip.all-unread":"全部未读","message.list.read-receipt.tooltip.all-read":"全部已读","message.list.read-receipt.tooltip.read-count":"{0} 人已读","message.list.read-receipt.tooltip.unread-count":"{0} 人未读","message-type.RC:ImgMsg":"[图片]","message-type.RC:HQVCMsg":"[语音]","message-type.RC:VcMsg":"[语音]","message-type.RC:GIFMsg":"[图片]","message-type.RC:FileMsg":"[文件]","message-type.RC:SightMsg":"[视频]","message-type.RC:ImgTextMsg":"[图文]","message-type.RC:LBSMsg":"[位置]","message-type.RC:CombineMsg":"[合并转发]","message-type.RC:CombineV2Msg":"[合并转发]","message-type.RC:ReferenceMsg":"[引用]","message-type.unknown":"[不支持的消息类型]","time.format.today":"今天","time.format.yesterday":"昨天","time.format.monday":"星期一","time.format.tueday":"星期二","time.format.wedday":"星期三","time.format.thurday":"星期四","time.format.friday":"星期五","time.format.satday":"星期六","time.format.sunday":"星期日","time.format.full":"{0}/{1}/{2}","input.menu.item.photo":"拍照","input.menu.item.images":"图片","input.menu.item.files":"文件","input.menu.item.emoji":"表情","input.placeholder":"Shift + Enter 换行, Enter 发送","input.send":"发送","input.reply.prefix":"回复 ","input.mentioned.all":"所有人","input.placeholder.search":"搜索","conversation.menu.item.add_top":"置顶","conversation.menu.item.remove_top":"取消置顶","conversation.menu.item.mute":"免打扰","conversation.menu.item.unmute":"取消免打扰","conversation.menu.item.mark_read":"标记已读","conversation.menu.item.mark_unread":"标记未读","conversation.menu.item.remove":"删除","message.menu.item.reply":"回复","message.menu.item.multi.choice":"多选","message.menu.item.copy":"复制","message.menu.item.forward":"转发","message.menu.item.delete":"删除","message.menu.item.speech.to.text":"转文字","message.menu.item.cancel.speech.to.text":"取消转文字","message.speech.to.text.failed":"语音转换失败","message.speech.to.text.empty":" ","message.speech.to.text.unsupported":"此语音消息不支持转文字功能","message.menu.item.recall":"撤回","conversation.empty.desc":"暂无消息","conversation.list.empty.desc":"暂无对话","conversation.list.bar.title":"会话","conversation.detail.bar.typing":"对方正在输入...","conversation.detail.bar.typing.audio":"对方正在讲话...","alert.req.msg.error":"请求消息失败: {0}","alert.pickfiles.maxcount":"最多只能选择 {0} 个文件","alert.paste.not.supported":"您的浏览器不支持粘贴操作","alert.delete.message.failed":"删除消息失败: {0}","alert.delete.messages.partial.failure":"删除 {0} 条消息失败","alert.delete.conversation.failed":"删除会话失败: {0}","alert.imlib.failed.network":"当前请求未成功,请检查网络后稍候重试。(错误码:{0})","alert.imlib.failed.generic":"操作未成功,请稍后重试。(错误码:{0})","alert.forward.not.supported":"选中的第 {0} 条消息不支持转发","alert.forward.over.length":"聊天记录选择不能超过 100 条","alert.delete.over.length":"不能删除超过 100 条消息","alert.send.message.maxcount":"内容超过 {0} 字, 请删除部分内容后再尝试发送","alert.message-deleted":"消息被删除","alert.conversation.list.not.ready":"会话列表仍在加载中, 请稍后再试","dialog.delete.msg":"删除该条消息","dialog.delete.msg.confirm":"删除","dialog.delete.msg.content":"该操作仅会删除你的会话记录,其它人仍可见","dialog.tips.msg":"提示","dialog.cancel.msg":"取消","dialog.confirm.msg":"确认","dialog.forwarding.msg":"转发给","dialog.recall.msg":"同时删除对方的","dialog.forwarding.confirm":"发送","take-photo.send-btn.label":"发送","take-photo.cancel-btn.label":"取消","take-photo.retry-btn.label":"重拍","take-photo.msg.camera-starting":"相机启动中...","take-photo.msg.camera-startup-failure":"相机启动失败: {0}","multi-choice.menu.selected-count":"已选择 {0} 项","multi-choice.menu.forward-item-by-item":"逐条转发","multi-choice.menu.delete":"删除","private.combine-msg.title":"{0} 和 {1} 的聊天记录","private.combine-msg.signal.title":"{0} 的聊天记录","group.combine-msg.title":"群聊的聊天记录","connection.status.suspended":"当前网络不可用,请检查网络","connection.status.disconnected":"已主动断开连接","connection.status.connecting":"连接中...","toast.forward.success":"转发成功","toast.copy.success":"已复制","quote.status.loading":"加载中...","quote.status.deleted":"消息已删除","quote.status.recalled":"消息已撤回","quote.status.load-error":"消息查询失败","reaction.detail.title":"回应详情","reaction.detail.loading":"加载中...","reaction.total.users":"{0}人","alert.reaction.limit.reached":"回应已达上限,无法继续添加","alert.reaction.failed":"消息回应失败,请稍后再试"}}};class Gp extends Ls{constructor(){super(...arguments);B(this,"_language","zh_CN")}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){}cloneLanguageEntries(s){return Hs[s]?(this.logger.info(G.A_CLONE_LANGUAGE_ENTRIES_O,`lang: ${s}`),{...Hs[s].entries}):(this.logger.error(G.A_CLONE_LANGUAGE_ENTRIES_O,`Language pack '${s}' not found.`),null)}registerLanguagePack(s,n,i="ltr"){this.logger.info(G.A_REGISTER_LANGUAGE_PACK_O,`lang: ${s}, direction: ${i}`),Hs[s]={direction:i,entries:n}}setLanguage(s){if(!Hs[s]){this.logger.error(G.A_SET_LANGUAGE_O,`Language pack '${s}' not found.`);return}if(this._language===s){this.logger.warn(G.A_SET_LANGUAGE_O,`Language '${s}' already in use.`);return}this.logger.info(G.A_SET_LANGUAGE_O,`current: ${this._language}, target: ${s}`);const{direction:n}=Hs[s];this._language=s,this.ctx.dispatch(new ee(Z.LANGUAGE_CHANGE,{lang:s,direction:n}))}getLanguage(){return this._language}getSupportedLanguages(){return Object.keys(Hs)}getEntryString(s){var n;return(n=Hs[this._language])==null?void 0:n.entries[s]}format(s,...n){const i=Hs[this._language].entries[s];return i?i.replace(/\{\d+\}/g,(o,r)=>n[parseInt(o.substring(1,o.length-1),10)].toString()):s}}var Gs=(e=>(e[e.SUCCESS=f.ErrorCode.SUCCESS]="SUCCESS",e[e.INVALID_CONVERSATION=39001]="INVALID_CONVERSATION",e[e.TASK_CANCEL=39002]="TASK_CANCEL",e[e.CONVERSATION_LIST_NOT_READY=39003]="CONVERSATION_LIST_NOT_READY",e))(Gs||{});class m1 extends Ls{constructor(s,n=5,i=5){super(s);B(this,"_timestamps",[]);B(this,"_queue",[]);B(this,"_executing",[]);B(this,"_timer",-1);B(this,"_paused",!1);this._parallel=n,this._fps=i}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){clearTimeout(this._timer),this._timer=-1}async push(s){return new Promise(n=>{this._queue.push({params:s,resolve:n}),this.logger.info(G.L_PUSH_2_QUEUE_O,`${this._tag}: queue length: ${this._queue.length}`),this._execute()})}remove(s){let n=this._queue.findIndex(i=>i.params.transactionId===s);if(n!==-1){const i=this._queue[n];return i.code=Gs.TASK_CANCEL,!0}if(n=this._executing.findIndex(i=>i.params.transactionId===s),n!==-1){const i=this._executing[n],o=this._try2CancelExecutingTask(s);return o&&(i.code=Gs.TASK_CANCEL),o}return!1}async _execute(){if(this._paused||this._queue.length===0||this._executing.length>=this._parallel)return;if(this._timestamps.length>=this._fps){this.logger.warn(G.L_TASK_QUEUE_EXECUTE_O,`${this._tag}: trigger limiting`);return}this._timer===-1&&(this._timer=window.setTimeout(()=>{this._timestamps.length=0,this._timer=-1,this._execute()},1e3));const s=this._queue.shift();this._executing.push(s),this._timestamps.push(Date.now()),this.logger.info(G.L_TASK_QUEUE_EXECUTE_O,`${this._tag}: queue length: ${this._queue.length}, executing length: ${this._executing.length}`);const n=this._handle(s.params);this._execute();const{code:i,data:o}=await n;s.code=i,s.result=o,this._checkResolve()}_checkResolve(){for(;this._executing.length&&this._executing[0].code!==void 0;){const{resolve:s,code:n,result:i}=this._executing.shift();s({code:n,data:i})}this._execute()}}class Bp extends m1{constructor(s){super(s,1,5);B(this,"_tag","MessageSendQueue")}async _handle(s){const{conversation:n,message:i,options:o}=s,{conversationType:r,targetId:a,channelId:l}=n,c=this.logger.createTraceId();this.logger.info(G.L_SEND_MSG_T,`type: ${i.messageType}, conversationType: ${r}, targetId: ${a}, channelId: ${l||""}`,c);const{isCounted:u,isPersited:d,content:h,messageType:p,quoteInfo:m}=i,v=new f.BaseMessage(p,h,d,u);if(j.isObject(v.content))try{v.content=Ua(v.content)}catch(g){this.logger.warn(G.A_SEND_MESSAGE_E,g.message)}const O={...o,onSendBefore(g){var _;i.messageId=g.messageId,(_=o==null?void 0:o.onSendBefore)==null||_.call(o,g)},pushConfig:this.ctx.store.getPushConfig(i),quoteInfo:m};if(this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5){const g=[j.ConversationType.PRIVATE,j.ConversationType.GROUP].includes(n.conversationType),_=o==null?void 0:o.isMentioned;g&&!_&&(O.needReceipt=!0)}const{code:w,data:C}=await f.sendMessage(n,v,O);return w!==f.ErrorCode.SUCCESS?this.logger.warn(G.L_SEND_MSG_R,`code: ${w}`,c):this.logger.info(G.L_SEND_MSG_R,"success",c),{code:w,data:C}}_try2CancelExecutingTask(s){return!1}}class jp extends m1{constructor(){super(...arguments);B(this,"_tag","FileUploadQueue");B(this,"_clients",new Map)}_getFileType(s){switch(s){case f.MessageType.IMAGE:case f.MessageType.GIF:return f.FileType.IMAGE;case f.MessageType.SIGHT:return f.FileType.SIGHT;case f.MessageType.COMBINE:return f.FileType.COMBINE_HTML;default:return f.FileType.FILE}}async _handle(s){const{message:n,transactionId:i}=s,o=n.file,r=this._getFileType(n.messageType),a={file:o,fileType:r,onProgress:(p,m)=>{this.logger.debug(G.L_UPLOAD_FILE_O,`name: ${o.name}, progress: ${p}/${m}`);const v=Math.floor(p*100/m);n.progress=v,this.ctx.dispatch(new ee(Z.FILE_UPLOAD_PROGRESS,{progress:v,message:n}))}},l=this.logger.createTraceId();this.logger.info(G.L_UPLOAD_FILE_T,`name: ${o.name}, size: ${o.size}`,l);const c=await f.createUploadTask(a);if(c.code!==f.ErrorCode.SUCCESS)return this.logger.warn(G.L_UPLOAD_FILE_R,`code: ${c.code}`,l),{code:c.code,data:{message:n}};const u=c.data;this._clients.set(i,u);const{code:d,data:h}=await u.awaitResult();return d!==f.ErrorCode.SUCCESS?(this.logger.warn(G.L_UPLOAD_FILE_R,`code: ${d}`,l),n.progress=-1,n.sentStatus=j.SentStatus.FAILED,this.ctx.dispatch(new ee(Z.MESSAGE_STATE_CHANGE,[n])),{code:d,data:{message:n}}):(this.logger.info(G.L_UPLOAD_FILE_R,"success",l),{code:d,data:{message:n,httpUrl:h.downloadUrl}})}_try2CancelExecutingTask(s){const n=this._clients.get(s);return n?(f.stopUploadTask(n.id),this._clients.delete(s),!0):!1}}/**
|
|
292
|
+
* @vue/shared v3.5.27
|
|
288
293
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
289
294
|
* @license MIT
|
|
290
|
-
**/function
|
|
291
|
-
* @vue/reactivity v3.5.
|
|
295
|
+
**/function hs(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Ge={},Ii=[],kt=()=>{},wi=()=>!1,qn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ha=e=>e.startsWith("onUpdate:"),$e=Object.assign,Ga=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},qp=Object.prototype.hasOwnProperty,Qe=(e,t)=>qp.call(e,t),pe=Array.isArray,Ri=e=>Mi(e)==="[object Map]",Kn=e=>Mi(e)==="[object Set]",E1=e=>Mi(e)==="[object Date]",Kp=e=>Mi(e)==="[object RegExp]",Oe=e=>typeof e=="function",Ue=e=>typeof e=="string",ns=e=>typeof e=="symbol",Xe=e=>e!==null&&typeof e=="object",Ba=e=>(Xe(e)||Oe(e))&&Oe(e.then)&&Oe(e.catch),v1=Object.prototype.toString,Mi=e=>v1.call(e),zp=e=>Mi(e).slice(8,-1),rr=e=>Mi(e)==="[object Object]",ar=e=>Ue(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,nn=hs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Qp=hs("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),lr=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},Wp=/-\w/g,at=lr(e=>e.replace(Wp,t=>t.slice(1).toUpperCase())),Zp=/\B([A-Z])/g,is=lr(e=>e.replace(Zp,"-$1").toLowerCase()),zn=lr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Oi=lr(e=>e?`on${zn(e)}`:""),Xt=(e,t)=>!Object.is(e,t),bi=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},C1=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},cr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ur=e=>{const t=Ue(e)?Number(e):NaN;return isNaN(t)?e:t};let y1;const dr=()=>y1||(y1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Yp(e,t){return e+JSON.stringify(t,(s,n)=>typeof n=="function"?n.toString():n)}const Xp=hs("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");function lt(e){if(pe(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],i=Ue(n)?S1(n):lt(n);if(i)for(const o in i)t[o]=i[o]}return t}else if(Ue(e)||Xe(e))return e}const Jp=/;(?![^(]*\))/g,e5=/:([^]+)/,t5=/\/\*[^]*?\*\//g;function S1(e){const t={};return e.replace(t5,"").split(Jp).forEach(s=>{if(s){const n=s.split(e5);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Pe(e){let t="";if(Ue(e))t=e;else if(pe(e))for(let s=0;s<e.length;s++){const n=Pe(e[s]);n&&(t+=n+" ")}else if(Xe(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}function s5(e){if(!e)return null;let{class:t,style:s}=e;return t&&!Ue(t)&&(e.class=Pe(t)),s&&(e.style=lt(s)),e}const n5="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",i5="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,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,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",o5="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",r5="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",a5=hs(n5),l5=hs(i5),c5=hs(o5),u5=hs(r5),d5=hs("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function T1(e){return!!e||e===""}function f5(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=In(e[n],t[n]);return s}function In(e,t){if(e===t)return!0;let s=E1(e),n=E1(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=ns(e),n=ns(t),s||n)return e===t;if(s=pe(e),n=pe(t),s||n)return s&&n?f5(e,t):!1;if(s=Xe(e),n=Xe(t),s||n){if(!s||!n)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const r in e){const a=e.hasOwnProperty(r),l=t.hasOwnProperty(r);if(a&&!l||!a&&l||!In(e[r],t[r]))return!1}}return String(e)===String(t)}function fr(e,t){return e.findIndex(s=>In(s,t))}const I1=e=>!!(e&&e.__v_isRef===!0),se=e=>Ue(e)?e:e==null?"":pe(e)||Xe(e)&&(e.toString===v1||!Oe(e.toString))?I1(e)?se(e.value):JSON.stringify(e,w1,2):String(e),w1=(e,t)=>I1(t)?w1(e,t.value):Ri(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],o)=>(s[ja(n,o)+" =>"]=i,s),{})}:Kn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>ja(s))}:ns(t)?ja(t):Xe(t)&&!pe(t)&&!rr(t)?String(t):t,ja=(e,t="")=>{var s;return ns(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};function h5(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}/**
|
|
296
|
+
* @vue/reactivity v3.5.27
|
|
292
297
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
293
298
|
* @license MIT
|
|
294
|
-
**/let xt;class Pa{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&xt&&(xt.active?(this.parent=xt,this.index=(xt.scopes||(xt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=xt;try{return xt=this,t()}finally{xt=s}}}on(){++this._on===1&&(this.prevScope=xt,xt=this)}off(){if(this._on>0&&--this._on===0){if(xt===this)xt=this.prevScope;else{let t=xt;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Yp(e){return new Pa(e)}function _1(){return xt}function Jp(e,t=!1){xt&&xt.cleanups.push(e)}let st;const Va=new WeakSet;class to{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,xt&&(xt.active?xt.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Va.has(this)&&(Va.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||E1(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,T1(this),v1(this);const t=st,s=ws;st=this,ws=!0;try{return this.fn()}finally{C1(this),st=t,ws=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ga(t);this.deps=this.depsTail=void 0,T1(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Va.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ha(this)&&this.run()}get dirty(){return Ha(this)}}let m1=0,so,no;function E1(e,t=!1){if(e.flags|=8,t){e.next=no,no=e;return}e.next=so,so=e}function Fa(){m1++}function $a(){if(--m1>0)return;if(no){let t=no;for(no=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;so;){let t=so;for(so=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function v1(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function C1(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),Ga(n),Xp(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function Ha(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(y1(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function y1(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===io)||(e.globalVersion=io,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ha(e))))return;e.flags|=2;const t=e.dep,s=st,n=ws;st=e,ws=!0;try{v1(e);const i=e.fn(e._value);(t.version===0||Pt(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{st=s,ws=n,C1(e),e.flags&=-3}}function Ga(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)Ga(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Xp(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}function e5(e,t){e.effect instanceof to&&(e=e.effect.fn);const s=new to(e);t&&Ve(s,t);try{s.run()}catch(i){throw s.stop(),i}const n=s.run.bind(s);return n.effect=s,n}function t5(e){e.effect.stop()}let ws=!0;const S1=[];function Vs(){S1.push(ws),ws=!1}function Fs(){const e=S1.pop();ws=e===void 0?!0:e}function T1(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=st;st=void 0;try{t()}finally{st=s}}}let io=0;class s5{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class hr{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!st||!ws||st===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==st)s=this.activeLink=new s5(st,this),st.deps?(s.prevDep=st.depsTail,st.depsTail.nextDep=s,st.depsTail=s):st.deps=st.depsTail=s,I1(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=st.depsTail,s.nextDep=void 0,st.depsTail.nextDep=s,st.depsTail=s,st.deps===s&&(st.deps=n)}return s}trigger(t){this.version++,io++,this.notify(t)}notify(t){Fa();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{$a()}}}function I1(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)I1(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const pr=new WeakMap,Kn=Symbol(""),Ba=Symbol(""),oo=Symbol("");function jt(e,t,s){if(ws&&st){let n=pr.get(e);n||pr.set(e,n=new Map);let i=n.get(s);i||(n.set(s,i=new hr),i.map=n,i.key=s),i.track()}}function sn(e,t,s,n,i,o){const r=pr.get(e);if(!r){io++;return}const a=l=>{l&&l.trigger()};if(Fa(),t==="clear")r.forEach(a);else{const l=he(e),c=l&&ar(s);if(l&&s==="length"){const u=Number(n);r.forEach((d,h)=>{(h==="length"||h===oo||!Bt(h)&&h>=u)&&a(d)})}else switch((s!==void 0||r.has(void 0))&&a(r.get(s)),c&&a(r.get(oo)),t){case"add":l?c&&a(r.get("length")):(a(r.get(Kn)),yi(e)&&a(r.get(Ba)));break;case"delete":l||(a(r.get(Kn)),yi(e)&&a(r.get(Ba)));break;case"set":yi(e)&&a(r.get(Kn));break}}$a()}function n5(e,t){const s=pr.get(e);return s&&s.get(t)}function Ri(e){const t=He(e);return t===e?t:(jt(t,"iterate",oo),ss(e)?t:t.map(Ms))}function gr(e){return jt(e=He(e),"iterate",oo),e}function $s(e,t){return Hs(e)?wi(rn(e)?Ms(t):t):Ms(t)}const i5={__proto__:null,[Symbol.iterator](){return ja(this,Symbol.iterator,e=>$s(this,e))},concat(...e){return Ri(this).concat(...e.map(t=>he(t)?Ri(t):t))},entries(){return ja(this,"entries",e=>(e[1]=$s(this,e[1]),e))},every(e,t){return nn(this,"every",e,t,void 0,arguments)},filter(e,t){return nn(this,"filter",e,t,s=>s.map(n=>$s(this,n)),arguments)},find(e,t){return nn(this,"find",e,t,s=>$s(this,s),arguments)},findIndex(e,t){return nn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return nn(this,"findLast",e,t,s=>$s(this,s),arguments)},findLastIndex(e,t){return nn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return nn(this,"forEach",e,t,void 0,arguments)},includes(...e){return qa(this,"includes",e)},indexOf(...e){return qa(this,"indexOf",e)},join(e){return Ri(this).join(e)},lastIndexOf(...e){return qa(this,"lastIndexOf",e)},map(e,t){return nn(this,"map",e,t,void 0,arguments)},pop(){return ro(this,"pop")},push(...e){return ro(this,"push",e)},reduce(e,...t){return R1(this,"reduce",e,t)},reduceRight(e,...t){return R1(this,"reduceRight",e,t)},shift(){return ro(this,"shift")},some(e,t){return nn(this,"some",e,t,void 0,arguments)},splice(...e){return ro(this,"splice",e)},toReversed(){return Ri(this).toReversed()},toSorted(e){return Ri(this).toSorted(e)},toSpliced(...e){return Ri(this).toSpliced(...e)},unshift(...e){return ro(this,"unshift",e)},values(){return ja(this,"values",e=>$s(this,e))}};function ja(e,t,s){const n=gr(e),i=n[t]();return n!==e&&!ss(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=s(o.value)),o}),i}const o5=Array.prototype;function nn(e,t,s,n,i,o){const r=gr(e),a=r!==e&&!ss(e),l=r[t];if(l!==o5[t]){const d=l.apply(e,o);return a?Ms(d):d}let c=s;r!==e&&(a?c=function(d,h){return s.call(this,$s(e,d),h,e)}:s.length>2&&(c=function(d,h){return s.call(this,d,h,e)}));const u=l.call(r,c,n);return a&&i?i(u):u}function R1(e,t,s,n){const i=gr(e),o=i!==e&&!ss(e);let r=s,a=!1;i!==e&&(o?(a=n.length===0,r=function(c,u,d){return a&&(a=!1,c=$s(e,c)),s.call(this,c,$s(e,u),d,e)}):s.length>3&&(r=function(c,u,d){return s.call(this,c,u,d,e)}));const l=i[t](r,...n);return a?$s(e,l):l}function qa(e,t,s){const n=He(e);jt(n,"iterate",oo);const i=n[t](...s);return(i===-1||i===!1)&&lo(s[0])?(s[0]=He(s[0]),n[t](...s)):i}function ro(e,t,s=[]){Vs(),Fa();const n=He(e)[t].apply(e,s);return $a(),Fs(),n}const r5=ls("__proto__,__v_isRef,__isVue"),w1=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Bt));function a5(e){Bt(e)||(e=String(e));const t=He(this);return jt(t,"has",e),t.hasOwnProperty(e)}class M1{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return o;if(s==="__v_raw")return n===(i?o?k1:x1:o?A1:L1).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const r=he(t);if(!i){let l;if(r&&(l=i5[s]))return l;if(s==="hasOwnProperty")return a5}const a=Reflect.get(t,s,pt(t)?t:n);if((Bt(s)?w1.has(s):r5(s))||(i||jt(t,"get",s),o))return a;if(pt(a)){const l=r&&ar(s)?a:a.value;return i&&qe(l)?ao(l):l}return qe(a)?i?ao(a):on(a):a}}class O1 extends M1{constructor(t=!1){super(!1,t)}set(t,s,n,i){let o=t[s];const r=he(t)&&ar(s);if(!this._isShallow){const c=Hs(o);if(!ss(n)&&!Hs(n)&&(o=He(o),n=He(n)),!r&&pt(o)&&!pt(n))return c||(o.value=n),!0}const a=r?Number(s)<t.length:ze(t,s),l=Reflect.set(t,s,n,pt(t)?t:i);return t===He(i)&&(a?Pt(n,o)&&sn(t,"set",s,n):sn(t,"add",s,n)),l}deleteProperty(t,s){const n=ze(t,s);t[s];const i=Reflect.deleteProperty(t,s);return i&&n&&sn(t,"delete",s,void 0),i}has(t,s){const n=Reflect.has(t,s);return(!Bt(s)||!w1.has(s))&&jt(t,"has",s),n}ownKeys(t){return jt(t,"iterate",he(t)?"length":Kn),Reflect.ownKeys(t)}}class b1 extends M1{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const l5=new O1,c5=new b1,u5=new O1(!0),d5=new b1(!0),Ka=e=>e,_r=e=>Reflect.getPrototypeOf(e);function f5(e,t,s){return function(...n){const i=this.__v_raw,o=He(i),r=yi(o),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,c=i[e](...n),u=s?Ka:t?wi:Ms;return!t&&jt(o,"iterate",l?Ba:Kn),Ve(Object.create(c),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:a?[u(d[0]),u(d[1])]:u(d),done:h}}})}}function mr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function h5(e,t){const s={get(i){const o=this.__v_raw,r=He(o),a=He(i);e||(Pt(i,a)&&jt(r,"get",i),jt(r,"get",a));const{has:l}=_r(r),c=t?Ka:e?wi:Ms;if(l.call(r,i))return c(o.get(i));if(l.call(r,a))return c(o.get(a));o!==r&&o.get(i)},get size(){const i=this.__v_raw;return!e&&jt(He(i),"iterate",Kn),i.size},has(i){const o=this.__v_raw,r=He(o),a=He(i);return e||(Pt(i,a)&&jt(r,"has",i),jt(r,"has",a)),i===a?o.has(i):o.has(i)||o.has(a)},forEach(i,o){const r=this,a=r.__v_raw,l=He(a),c=t?Ka:e?wi:Ms;return!e&&jt(l,"iterate",Kn),a.forEach((u,d)=>i.call(o,c(u),c(d),r))}};return Ve(s,e?{add:mr("add"),set:mr("set"),delete:mr("delete"),clear:mr("clear")}:{add(i){const o=He(this),r=_r(o),a=He(i),l=!t&&!ss(i)&&!Hs(i)?a:i;return r.has.call(o,l)||Pt(i,l)&&r.has.call(o,i)||Pt(a,l)&&r.has.call(o,a)||(o.add(l),sn(o,"add",l,l)),this},set(i,o){!t&&!ss(o)&&!Hs(o)&&(o=He(o));const r=He(this),{has:a,get:l}=_r(r);let c=a.call(r,i);c||(i=He(i),c=a.call(r,i));const u=l.call(r,i);return r.set(i,o),c?Pt(o,u)&&sn(r,"set",i,o):sn(r,"add",i,o),this},delete(i){const o=He(this),{has:r,get:a}=_r(o);let l=r.call(o,i);l||(i=He(i),l=r.call(o,i)),a&&a.call(o,i);const c=o.delete(i);return l&&sn(o,"delete",i,void 0),c},clear(){const i=He(this),o=i.size!==0,r=i.clear();return o&&sn(i,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=f5(i,e,t)}),s}function Er(e,t){const s=h5(e,t);return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(ze(s,i)&&i in n?s:n,i,o)}const p5={get:Er(!1,!1)},g5={get:Er(!1,!0)},_5={get:Er(!0,!1)},m5={get:Er(!0,!0)},L1=new WeakMap,A1=new WeakMap,x1=new WeakMap,k1=new WeakMap;function E5(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function on(e){return Hs(e)?e:vr(e,!1,l5,p5,L1)}function U1(e){return vr(e,!1,u5,g5,A1)}function ao(e){return vr(e,!0,c5,_5,x1)}function v5(e){return vr(e,!0,d5,m5,k1)}function vr(e,t,s,n,i){if(!qe(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=i.get(e);if(o)return o;const r=E5(Lp(e));if(r===0)return e;const a=new Proxy(e,r===2?n:s);return i.set(e,a),a}function rn(e){return Hs(e)?rn(e.__v_raw):!!(e&&e.__v_isReactive)}function Hs(e){return!!(e&&e.__v_isReadonly)}function ss(e){return!!(e&&e.__v_isShallow)}function lo(e){return e?!!e.__v_raw:!1}function He(e){const t=e&&e.__v_raw;return t?He(t):e}function N1(e){return!ze(e,"__v_skip")&&Object.isExtensible(e)&&u1(e,"__v_skip",!0),e}const Ms=e=>qe(e)?on(e):e,wi=e=>qe(e)?ao(e):e;function pt(e){return e?e.__v_isRef===!0:!1}function N(e){return P1(e,!1)}function D1(e){return P1(e,!0)}function P1(e,t){return pt(e)?e:new C5(e,t)}class C5{constructor(t,s){this.dep=new hr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:He(t),this._value=s?t:Ms(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||ss(t)||Hs(t);t=n?t:He(t),Pt(t,s)&&(this._rawValue=t,this._value=n?t:Ms(t),this.dep.trigger())}}function y5(e){e.dep&&e.dep.trigger()}function D(e){return pt(e)?e.value:e}function S5(e){return we(e)?e():D(e)}const T5={get:(e,t,s)=>t==="__v_raw"?e:D(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return pt(i)&&!pt(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function za(e){return rn(e)?e:new Proxy(e,T5)}class I5{constructor(t){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new hr,{get:n,set:i}=t(s.track.bind(s),s.trigger.bind(s));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function V1(e){return new I5(e)}function R5(e){const t=he(e)?new Array(e.length):{};for(const s in e)t[s]=F1(e,s);return t}class w5{constructor(t,s,n){this._object=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=Bt(s)?s:String(s),this._raw=He(t);let i=!0,o=t;if(!he(t)||Bt(this._key)||!ar(this._key))do i=!lo(o)||ss(o);while(i&&(o=o.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=D(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&pt(this._raw[this._key])){const s=this._object[this._key];if(pt(s)){s.value=t;return}}this._object[this._key]=t}get dep(){return n5(this._raw,this._key)}}class M5{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function O5(e,t,s){return pt(e)?e:we(e)?new M5(e):qe(e)&&arguments.length>1?F1(e,t,s):N(e)}function F1(e,t,s){return new w5(e,t,s)}class b5{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new hr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=io-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&st!==this)return E1(this,!0),!0}get value(){const t=this.dep.track();return y1(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function L5(e,t,s=!1){let n,i;return we(e)?n=e:(n=e.get,i=e.set),new b5(n,i,s)}const A5={GET:"get",HAS:"has",ITERATE:"iterate"},x5={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Cr={},yr=new WeakMap;let Rn;function k5(){return Rn}function $1(e,t=!1,s=Rn){if(s){let n=yr.get(s);n||yr.set(s,n=[]),n.push(e)}}function U5(e,t,s=$e){const{immediate:n,deep:i,once:o,scheduler:r,augmentJob:a,call:l}=s,c=E=>i?E:ss(E)||i===!1||i===0?an(E,1):an(E);let u,d,h,p,_=!1,m=!1;if(pt(e)?(d=()=>e.value,_=ss(e)):rn(e)?(d=()=>c(e),_=!0):he(e)?(m=!0,_=e.some(E=>rn(E)||ss(E)),d=()=>e.map(E=>{if(pt(E))return E.value;if(rn(E))return c(E);if(we(E))return l?l(E,2):E()})):we(e)?t?d=l?()=>l(e,2):e:d=()=>{if(h){Vs();try{h()}finally{Fs()}}const E=Rn;Rn=u;try{return l?l(e,3,[p]):e(p)}finally{Rn=E}}:d=Dt,t&&i){const E=d,v=i===!0?1/0:i;d=()=>an(E(),v)}const b=_1(),M=()=>{u.stop(),b&&b.active&&Ua(b.effects,u)};if(o&&t){const E=t;t=(...v)=>{E(...v),M()}}let C=m?new Array(e.length).fill(Cr):Cr;const g=E=>{if(!(!(u.flags&1)||!u.dirty&&!E))if(t){const v=u.run();if(i||_||(m?v.some((L,k)=>Pt(L,C[k])):Pt(v,C))){h&&h();const L=Rn;Rn=u;try{const k=[v,C===Cr?void 0:m&&C[0]===Cr?[]:C,p];C=v,l?l(t,3,k):t(...k)}finally{Rn=L}}}else u.run()};return a&&a(g),u=new to(d),u.scheduler=r?()=>r(g,!1):g,p=E=>$1(E,!1,u),h=u.onStop=()=>{const E=yr.get(u);if(E){if(l)l(E,4);else for(const v of E)v();yr.delete(u)}},t?n?g(!0):C=u.run():r?r(g.bind(null,!0),!0):u.run(),M.pause=u.pause.bind(u),M.resume=u.resume.bind(u),M.stop=M,M}function an(e,t=1/0,s){if(t<=0||!qe(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,pt(e))an(e.value,t,s);else if(he(e))for(let n=0;n<e.length;n++)an(e[n],t,s);else if(jn(e)||yi(e))e.forEach(n=>{an(n,t,s)});else if(rr(e)){for(const n in e)an(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&an(e[n],t,s)}return e}/**
|
|
295
|
-
* @vue/runtime-core v3.5.
|
|
299
|
+
**/let Bt;class qa{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Bt,!t&&Bt&&(this.index=(Bt.scopes||(Bt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Bt;try{return Bt=this,t()}finally{Bt=s}}}on(){++this._on===1&&(this.prevScope=Bt,Bt=this)}off(){this._on>0&&--this._on===0&&(Bt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function p5(e){return new qa(e)}function R1(){return Bt}function g5(e,t=!1){Bt&&Bt.cleanups.push(e)}let it;const Ka=new WeakSet;class lo{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Bt&&Bt.active&&Bt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ka.has(this)&&(Ka.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||O1(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,k1(this),b1(this);const t=it,s=xs;it=this,xs=!0;try{return this.fn()}finally{L1(this),it=t,xs=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Za(t);this.deps=this.depsTail=void 0,k1(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ka.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Wa(this)&&this.run()}get dirty(){return Wa(this)}}let M1=0,co,uo;function O1(e,t=!1){if(e.flags|=8,t){e.next=uo,uo=e;return}e.next=co,co=e}function za(){M1++}function Qa(){if(--M1>0)return;if(uo){let t=uo;for(uo=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;co;){let t=co;for(co=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function b1(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function L1(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),Za(n),_5(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function Wa(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(A1(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function A1(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===fo)||(e.globalVersion=fo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Wa(e))))return;e.flags|=2;const t=e.dep,s=it,n=xs;it=e,xs=!0;try{b1(e);const i=e.fn(e._value);(t.version===0||Xt(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{it=s,xs=n,L1(e),e.flags&=-3}}function Za(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)Za(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function _5(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}function m5(e,t){e.effect instanceof lo&&(e=e.effect.fn);const s=new lo(e);t&&$e(s,t);try{s.run()}catch(i){throw s.stop(),i}const n=s.run.bind(s);return n.effect=s,n}function E5(e){e.effect.stop()}let xs=!0;const x1=[];function Bs(){x1.push(xs),xs=!1}function js(){const e=x1.pop();xs=e===void 0?!0:e}function k1(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=it;it=void 0;try{t()}finally{it=s}}}let fo=0;class v5{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class hr{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!it||!xs||it===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==it)s=this.activeLink=new v5(it,this),it.deps?(s.prevDep=it.depsTail,it.depsTail.nextDep=s,it.depsTail=s):it.deps=it.depsTail=s,U1(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=it.depsTail,s.nextDep=void 0,it.depsTail.nextDep=s,it.depsTail=s,it.deps===s&&(it.deps=n)}return s}trigger(t){this.version++,fo++,this.notify(t)}notify(t){za();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Qa()}}}function U1(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)U1(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const pr=new WeakMap,Qn=Symbol(""),Ya=Symbol(""),ho=Symbol("");function jt(e,t,s){if(xs&&it){let n=pr.get(e);n||pr.set(e,n=new Map);let i=n.get(s);i||(n.set(s,i=new hr),i.map=n,i.key=s),i.track()}}function on(e,t,s,n,i,o){const r=pr.get(e);if(!r){fo++;return}const a=l=>{l&&l.trigger()};if(za(),t==="clear")r.forEach(a);else{const l=pe(e),c=l&&ar(s);if(l&&s==="length"){const u=Number(n);r.forEach((d,h)=>{(h==="length"||h===ho||!ns(h)&&h>=u)&&a(d)})}else switch((s!==void 0||r.has(void 0))&&a(r.get(s)),c&&a(r.get(ho)),t){case"add":l?c&&a(r.get("length")):(a(r.get(Qn)),Ri(e)&&a(r.get(Ya)));break;case"delete":l||(a(r.get(Qn)),Ri(e)&&a(r.get(Ya)));break;case"set":Ri(e)&&a(r.get(Qn));break}}Qa()}function C5(e,t){const s=pr.get(e);return s&&s.get(t)}function Li(e){const t=Be(e);return t===e?t:(jt(t,"iterate",ho),os(e)?t:t.map(ks))}function gr(e){return jt(e=Be(e),"iterate",ho),e}function wn(e,t){return qs(e)?Ai(an(e)?ks(t):t):ks(t)}const y5={__proto__:null,[Symbol.iterator](){return Xa(this,Symbol.iterator,e=>wn(this,e))},concat(...e){return Li(this).concat(...e.map(t=>pe(t)?Li(t):t))},entries(){return Xa(this,"entries",e=>(e[1]=wn(this,e[1]),e))},every(e,t){return rn(this,"every",e,t,void 0,arguments)},filter(e,t){return rn(this,"filter",e,t,s=>s.map(n=>wn(this,n)),arguments)},find(e,t){return rn(this,"find",e,t,s=>wn(this,s),arguments)},findIndex(e,t){return rn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return rn(this,"findLast",e,t,s=>wn(this,s),arguments)},findLastIndex(e,t){return rn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return rn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ja(this,"includes",e)},indexOf(...e){return Ja(this,"indexOf",e)},join(e){return Li(this).join(e)},lastIndexOf(...e){return Ja(this,"lastIndexOf",e)},map(e,t){return rn(this,"map",e,t,void 0,arguments)},pop(){return po(this,"pop")},push(...e){return po(this,"push",e)},reduce(e,...t){return N1(this,"reduce",e,t)},reduceRight(e,...t){return N1(this,"reduceRight",e,t)},shift(){return po(this,"shift")},some(e,t){return rn(this,"some",e,t,void 0,arguments)},splice(...e){return po(this,"splice",e)},toReversed(){return Li(this).toReversed()},toSorted(e){return Li(this).toSorted(e)},toSpliced(...e){return Li(this).toSpliced(...e)},unshift(...e){return po(this,"unshift",e)},values(){return Xa(this,"values",e=>wn(this,e))}};function Xa(e,t,s){const n=gr(e),i=n[t]();return n!==e&&!os(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=s(o.value)),o}),i}const S5=Array.prototype;function rn(e,t,s,n,i,o){const r=gr(e),a=r!==e&&!os(e),l=r[t];if(l!==S5[t]){const d=l.apply(e,o);return a?ks(d):d}let c=s;r!==e&&(a?c=function(d,h){return s.call(this,wn(e,d),h,e)}:s.length>2&&(c=function(d,h){return s.call(this,d,h,e)}));const u=l.call(r,c,n);return a&&i?i(u):u}function N1(e,t,s,n){const i=gr(e);let o=s;return i!==e&&(os(e)?s.length>3&&(o=function(r,a,l){return s.call(this,r,a,l,e)}):o=function(r,a,l){return s.call(this,r,wn(e,a),l,e)}),i[t](o,...n)}function Ja(e,t,s){const n=Be(e);jt(n,"iterate",ho);const i=n[t](...s);return(i===-1||i===!1)&&_o(s[0])?(s[0]=Be(s[0]),n[t](...s)):i}function po(e,t,s=[]){Bs(),za();const n=Be(e)[t].apply(e,s);return Qa(),js(),n}const T5=hs("__proto__,__v_isRef,__isVue"),D1=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ns));function I5(e){ns(e)||(e=String(e));const t=Be(this);return jt(t,"has",e),t.hasOwnProperty(e)}class P1{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return o;if(s==="__v_raw")return n===(i?o?B1:G1:o?H1:$1).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const r=pe(t);if(!i){let l;if(r&&(l=y5[s]))return l;if(s==="hasOwnProperty")return I5}const a=Reflect.get(t,s,_t(t)?t:n);if((ns(s)?D1.has(s):T5(s))||(i||jt(t,"get",s),o))return a;if(_t(a)){const l=r&&ar(s)?a:a.value;return i&&Xe(l)?go(l):l}return Xe(a)?i?go(a):Cs(a):a}}class V1 extends P1{constructor(t=!1){super(!1,t)}set(t,s,n,i){let o=t[s];const r=pe(t)&&ar(s);if(!this._isShallow){const c=qs(o);if(!os(n)&&!qs(n)&&(o=Be(o),n=Be(n)),!r&&_t(o)&&!_t(n))return c||(o.value=n),!0}const a=r?Number(s)<t.length:Qe(t,s),l=Reflect.set(t,s,n,_t(t)?t:i);return t===Be(i)&&(a?Xt(n,o)&&on(t,"set",s,n):on(t,"add",s,n)),l}deleteProperty(t,s){const n=Qe(t,s);t[s];const i=Reflect.deleteProperty(t,s);return i&&n&&on(t,"delete",s,void 0),i}has(t,s){const n=Reflect.has(t,s);return(!ns(s)||!D1.has(s))&&jt(t,"has",s),n}ownKeys(t){return jt(t,"iterate",pe(t)?"length":Qn),Reflect.ownKeys(t)}}class F1 extends P1{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const w5=new V1,R5=new F1,M5=new V1(!0),O5=new F1(!0),el=e=>e,_r=e=>Reflect.getPrototypeOf(e);function b5(e,t,s){return function(...n){const i=this.__v_raw,o=Be(i),r=Ri(o),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,c=i[e](...n),u=s?el:t?Ai:ks;return!t&&jt(o,"iterate",l?Ya:Qn),$e(Object.create(c),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:a?[u(d[0]),u(d[1])]:u(d),done:h}}})}}function mr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function L5(e,t){const s={get(i){const o=this.__v_raw,r=Be(o),a=Be(i);e||(Xt(i,a)&&jt(r,"get",i),jt(r,"get",a));const{has:l}=_r(r),c=t?el:e?Ai:ks;if(l.call(r,i))return c(o.get(i));if(l.call(r,a))return c(o.get(a));o!==r&&o.get(i)},get size(){const i=this.__v_raw;return!e&&jt(Be(i),"iterate",Qn),i.size},has(i){const o=this.__v_raw,r=Be(o),a=Be(i);return e||(Xt(i,a)&&jt(r,"has",i),jt(r,"has",a)),i===a?o.has(i):o.has(i)||o.has(a)},forEach(i,o){const r=this,a=r.__v_raw,l=Be(a),c=t?el:e?Ai:ks;return!e&&jt(l,"iterate",Qn),a.forEach((u,d)=>i.call(o,c(u),c(d),r))}};return $e(s,e?{add:mr("add"),set:mr("set"),delete:mr("delete"),clear:mr("clear")}:{add(i){!t&&!os(i)&&!qs(i)&&(i=Be(i));const o=Be(this);return _r(o).has.call(o,i)||(o.add(i),on(o,"add",i,i)),this},set(i,o){!t&&!os(o)&&!qs(o)&&(o=Be(o));const r=Be(this),{has:a,get:l}=_r(r);let c=a.call(r,i);c||(i=Be(i),c=a.call(r,i));const u=l.call(r,i);return r.set(i,o),c?Xt(o,u)&&on(r,"set",i,o):on(r,"add",i,o),this},delete(i){const o=Be(this),{has:r,get:a}=_r(o);let l=r.call(o,i);l||(i=Be(i),l=r.call(o,i)),a&&a.call(o,i);const c=o.delete(i);return l&&on(o,"delete",i,void 0),c},clear(){const i=Be(this),o=i.size!==0,r=i.clear();return o&&on(i,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=b5(i,e,t)}),s}function Er(e,t){const s=L5(e,t);return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Qe(s,i)&&i in n?s:n,i,o)}const A5={get:Er(!1,!1)},x5={get:Er(!1,!0)},k5={get:Er(!0,!1)},U5={get:Er(!0,!0)},$1=new WeakMap,H1=new WeakMap,G1=new WeakMap,B1=new WeakMap;function N5(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function D5(e){return e.__v_skip||!Object.isExtensible(e)?0:N5(zp(e))}function Cs(e){return qs(e)?e:vr(e,!1,w5,A5,$1)}function j1(e){return vr(e,!1,M5,x5,H1)}function go(e){return vr(e,!0,R5,k5,G1)}function P5(e){return vr(e,!0,O5,U5,B1)}function vr(e,t,s,n,i){if(!Xe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=D5(e);if(o===0)return e;const r=i.get(e);if(r)return r;const a=new Proxy(e,o===2?n:s);return i.set(e,a),a}function an(e){return qs(e)?an(e.__v_raw):!!(e&&e.__v_isReactive)}function qs(e){return!!(e&&e.__v_isReadonly)}function os(e){return!!(e&&e.__v_isShallow)}function _o(e){return e?!!e.__v_raw:!1}function Be(e){const t=e&&e.__v_raw;return t?Be(t):e}function q1(e){return!Qe(e,"__v_skip")&&Object.isExtensible(e)&&C1(e,"__v_skip",!0),e}const ks=e=>Xe(e)?Cs(e):e,Ai=e=>Xe(e)?go(e):e;function _t(e){return e?e.__v_isRef===!0:!1}function N(e){return z1(e,!1)}function K1(e){return z1(e,!0)}function z1(e,t){return _t(e)?e:new V5(e,t)}class V5{constructor(t,s){this.dep=new hr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:Be(t),this._value=s?t:ks(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||os(t)||qs(t);t=n?t:Be(t),Xt(t,s)&&(this._rawValue=t,this._value=n?t:ks(t),this.dep.trigger())}}function F5(e){e.dep&&e.dep.trigger()}function D(e){return _t(e)?e.value:e}function $5(e){return Oe(e)?e():D(e)}const H5={get:(e,t,s)=>t==="__v_raw"?e:D(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return _t(i)&&!_t(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function tl(e){return an(e)?e:new Proxy(e,H5)}class G5{constructor(t){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new hr,{get:n,set:i}=t(s.track.bind(s),s.trigger.bind(s));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Q1(e){return new G5(e)}function B5(e){const t=pe(e)?new Array(e.length):{};for(const s in e)t[s]=W1(e,s);return t}class j5{constructor(t,s,n){this._object=t,this._key=s,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=Be(t);let i=!0,o=t;if(!pe(t)||!ar(String(s)))do i=!_o(o)||os(o);while(i&&(o=o.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=D(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&_t(this._raw[this._key])){const s=this._object[this._key];if(_t(s)){s.value=t;return}}this._object[this._key]=t}get dep(){return C5(this._raw,this._key)}}class q5{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function K5(e,t,s){return _t(e)?e:Oe(e)?new q5(e):Xe(e)&&arguments.length>1?W1(e,t,s):N(e)}function W1(e,t,s){return new j5(e,t,s)}class z5{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new hr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=fo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&it!==this)return O1(this,!0),!0}get value(){const t=this.dep.track();return A1(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Q5(e,t,s=!1){let n,i;return Oe(e)?n=e:(n=e.get,i=e.set),new z5(n,i,s)}const W5={GET:"get",HAS:"has",ITERATE:"iterate"},Z5={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Cr={},yr=new WeakMap;let Rn;function Y5(){return Rn}function Z1(e,t=!1,s=Rn){if(s){let n=yr.get(s);n||yr.set(s,n=[]),n.push(e)}}function X5(e,t,s=Ge){const{immediate:n,deep:i,once:o,scheduler:r,augmentJob:a,call:l}=s,c=_=>i?_:os(_)||i===!1||i===0?ln(_,1):ln(_);let u,d,h,p,m=!1,v=!1;if(_t(e)?(d=()=>e.value,m=os(e)):an(e)?(d=()=>c(e),m=!0):pe(e)?(v=!0,m=e.some(_=>an(_)||os(_)),d=()=>e.map(_=>{if(_t(_))return _.value;if(an(_))return c(_);if(Oe(_))return l?l(_,2):_()})):Oe(e)?t?d=l?()=>l(e,2):e:d=()=>{if(h){Bs();try{h()}finally{js()}}const _=Rn;Rn=u;try{return l?l(e,3,[p]):e(p)}finally{Rn=_}}:d=kt,t&&i){const _=d,E=i===!0?1/0:i;d=()=>ln(_(),E)}const O=R1(),w=()=>{u.stop(),O&&O.active&&Ga(O.effects,u)};if(o&&t){const _=t;t=(...E)=>{_(...E),w()}}let C=v?new Array(e.length).fill(Cr):Cr;const g=_=>{if(!(!(u.flags&1)||!u.dirty&&!_))if(t){const E=u.run();if(i||m||(v?E.some((L,P)=>Xt(L,C[P])):Xt(E,C))){h&&h();const L=Rn;Rn=u;try{const P=[E,C===Cr?void 0:v&&C[0]===Cr?[]:C,p];C=E,l?l(t,3,P):t(...P)}finally{Rn=L}}}else u.run()};return a&&a(g),u=new lo(d),u.scheduler=r?()=>r(g,!1):g,p=_=>Z1(_,!1,u),h=u.onStop=()=>{const _=yr.get(u);if(_){if(l)l(_,4);else for(const E of _)E();yr.delete(u)}},t?n?g(!0):C=u.run():r?r(g.bind(null,!0),!0):u.run(),w.pause=u.pause.bind(u),w.resume=u.resume.bind(u),w.stop=w,w}function ln(e,t=1/0,s){if(t<=0||!Xe(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,_t(e))ln(e.value,t,s);else if(pe(e))for(let n=0;n<e.length;n++)ln(e[n],t,s);else if(Kn(e)||Ri(e))e.forEach(n=>{ln(n,t,s)});else if(rr(e)){for(const n in e)ln(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&ln(e[n],t,s)}return e}/**
|
|
300
|
+
* @vue/runtime-core v3.5.27
|
|
296
301
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
297
302
|
* @license MIT
|
|
298
|
-
**/const
|
|
303
|
+
**/const Wn=[];function J5(e){Wn.push(e)}function e3(){Wn.pop()}let sl=!1;function vC(e,...t){if(sl)return;sl=!0,Bs();const s=Wn.length?Wn[Wn.length-1].component:null,n=s&&s.appContext.config.warnHandler,i=t3();if(n)Zn(n,s,11,[e+t.map(o=>{var r,a;return(a=(r=o.toString)==null?void 0:r.call(o))!=null?a:JSON.stringify(o)}).join(""),s&&s.proxy,i.map(({vnode:o})=>`at <${gd(s,o.type)}>`).join(`
|
|
299
304
|
`),i]);else{const o=[`[Vue warn]: ${e}`,...t];i.length&&o.push(`
|
|
300
|
-
`,...
|
|
301
|
-
`],...F5(s))}),t}function F5({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,i=` at <${id(e.component,e.type,n)}`,o=">"+s;return e.props?[i,...$5(e.props),o]:[i+o]}function $5(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(n=>{t.push(...H1(n,e[n]))}),s.length>3&&t.push(" ..."),t}function H1(e,t,s){return Le(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:pt(t)?(t=H1(e,He(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):we(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=He(t),s?t:[`${e}=`,t])}function H5(e,t){}const G5={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},B5={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Qn(e,t,s,n){try{return n?e(...n):e()}catch(i){Wn(i,t,s)}}function cs(e,t,s,n){if(we(e)){const i=Qn(e,t,s,n);return i&&Na(i)&&i.catch(o=>{Wn(o,t,s)}),i}if(he(e)){const i=[];for(let o=0;o<e.length;o++)i.push(cs(e[o],t,s,n));return i}}function Wn(e,t,s,n=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||$e;if(t){let a=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const u=a.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,l,c)===!1)return}a=a.parent}if(o){Vs(),Qn(o,null,10,[e,l,c]),Fs();return}}j5(e,s,i,n,r)}function j5(e,t,s,n=!0,i=!1){if(i)throw e;console.error(e)}const Jt=[];let Gs=-1;const Mi=[];let wn=null,Oi=0;const G1=Promise.resolve();let Sr=null;function at(e){const t=Sr||G1;return e?t.then(this?e.bind(this):e):t}function q5(e){let t=Gs+1,s=Jt.length;for(;t<s;){const n=t+s>>>1,i=Jt[n],o=uo(i);o<e||o===e&&i.flags&2?t=n+1:s=n}return t}function Wa(e){if(!(e.flags&1)){const t=uo(e),s=Jt[Jt.length-1];!s||!(e.flags&2)&&t>=uo(s)?Jt.push(e):Jt.splice(q5(t),0,e),e.flags|=1,B1()}}function B1(){Sr||(Sr=G1.then(q1))}function co(e){he(e)?Mi.push(...e):wn&&e.id===-1?wn.splice(Oi+1,0,e):e.flags&1||(Mi.push(e),e.flags|=1),B1()}function j1(e,t,s=Gs+1){for(;s<Jt.length;s++){const n=Jt[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;Jt.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Tr(e){if(Mi.length){const t=[...new Set(Mi)].sort((s,n)=>uo(s)-uo(n));if(Mi.length=0,wn){wn.push(...t);return}for(wn=t,Oi=0;Oi<wn.length;Oi++){const s=wn[Oi];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}wn=null,Oi=0}}const uo=e=>e.id==null?e.flags&2?-1:1/0:e.id;function q1(e){const t=Dt;try{for(Gs=0;Gs<Jt.length;Gs++){const s=Jt[Gs];s&&!(s.flags&8)&&(s.flags&4&&(s.flags&=-2),Qn(s,s.i,s.i?15:14),s.flags&4||(s.flags&=-2))}}finally{for(;Gs<Jt.length;Gs++){const s=Jt[Gs];s&&(s.flags&=-2)}Gs=-1,Jt.length=0,Tr(),Sr=null,(Jt.length||Mi.length)&&q1()}}let bi,Ir=[];function K1(e,t){var s,n;bi=e,bi?(bi.enabled=!0,Ir.forEach(({event:i,args:o})=>bi.emit(i,...o)),Ir=[]):typeof window<"u"&&window.HTMLElement&&!((n=(s=window.navigator)==null?void 0:s.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{K1(o,t)}),setTimeout(()=>{bi||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ir=[])},3e3)):Ir=[]}let Vt=null,Rr=null;function fo(e){const t=Vt;return Vt=e,Rr=e&&e.type.__scopeId||null,t}function K5(e){Rr=e}function z5(){Rr=null}const Q5=e=>gt;function gt(e,t=Vt,s){if(!t||e._n)return e;const n=(...i)=>{n._d&&To(-1);const o=fo(t);let r;try{r=e(...i)}finally{fo(o),n._d&&To(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function ms(e,t){if(Vt===null)return e;const s=wo(Vt),n=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,r,a,l=$e]=t[i];o&&(we(o)&&(o={mounted:o,updated:o}),o.deep&&an(r),n.push({dir:o,instance:s,value:r,oldValue:void 0,arg:a,modifiers:l}))}return e}function Bs(e,t,s,n){const i=e.dirs,o=t&&t.dirs;for(let r=0;r<i.length;r++){const a=i[r];o&&(a.oldValue=o[r].value);let l=a.dir[n];l&&(Vs(),cs(l,s,8,[e.el,a,e,t]),Fs())}}function wr(e,t){if(Ft){let s=Ft.provides;const n=Ft.parent&&Ft.parent.provides;n===s&&(s=Ft.provides=Object.create(n)),s[e]=t}}function Zn(e,t,s=!1){const n=es();if(n||Jn){let i=Jn?Jn._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return s&&we(t)?t.call(n&&n.proxy):t}}function W5(){return!!(es()||Jn)}const z1=Symbol.for("v-scx"),Q1=()=>Zn(z1);function Z5(e,t){return ho(e,null,t)}function Y5(e,t){return ho(e,null,{flush:"post"})}function W1(e,t){return ho(e,null,{flush:"sync"})}function us(e,t,s){return ho(e,t,s)}function ho(e,t,s=$e){const{immediate:n,deep:i,flush:o,once:r}=s,a=Ve({},s),l=t&&n||!t&&o!=="post";let c;if(si){if(o==="sync"){const p=Q1();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=Dt,p.resume=Dt,p.pause=Dt,p}}const u=Ft;a.call=(p,_,m)=>cs(p,u,_,m);let d=!1;o==="post"?a.scheduler=p=>{Mt(p,u&&u.suspense)}:o!=="sync"&&(d=!0,a.scheduler=(p,_)=>{_?p():Wa(p)}),a.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const h=U5(e,t,a);return si&&(c?c.push(h):l&&h()),h}function J5(e,t,s){const n=this.proxy,i=Le(e)?e.includes(".")?Z1(n,e):()=>n[e]:e.bind(n,n);let o;we(t)?o=t:(o=t.handler,s=t);const r=Di(this),a=ho(i,o.bind(n),s);return r(),a}function Z1(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;i<s.length&&n;i++)n=n[s[i]];return n}}const Mn=new WeakMap,Y1=Symbol("_vte"),J1=e=>e.__isTeleport,Yn=e=>e&&(e.disabled||e.disabled===""),X5=e=>e&&(e.defer||e.defer===""),X1=e=>typeof SVGElement<"u"&&e instanceof SVGElement,eu=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Za=(e,t)=>{const s=e&&e.to;return Le(s)?t?t(s):null:s},e3={name:"Teleport",__isTeleport:!0,process(e,t,s,n,i,o,r,a,l,c){const{mc:u,pc:d,pbc:h,o:{insert:p,querySelector:_,createText:m,createComment:b,parentNode:M}}=c,C=Yn(t.props);let{dynamicChildren:g}=t;const E=(k,$,A)=>{k.shapeFlag&16&&u(k.children,$,A,i,o,r,a,l)},v=(k=t)=>{const $=Yn(k.props),A=k.target=Za(k.props,_),U=Ya(A,k,m,p);A&&(r!=="svg"&&X1(A)?r="svg":r!=="mathml"&&eu(A)&&(r="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(A),$||(E(k,A,U),po(k,!1)))},L=k=>{const $=()=>{if(Mn.get(k)===$){if(Mn.delete(k),Yn(k.props)){const A=M(k.el)||s;E(k,A,k.anchor),po(k,!0)}v(k)}};Mn.set(k,$),Mt($,o)};if(e==null){const k=t.el=m(""),$=t.anchor=m("");if(p(k,s,n),p($,s,n),X5(t.props)||o&&o.pendingBranch){L(t);return}C&&(E(t,s,$),po(t,!0)),v()}else{t.el=e.el;const k=t.anchor=e.anchor,$=Mn.get(e);if($){$.flags|=8,Mn.delete(e),L(t);return}t.targetStart=e.targetStart;const A=t.target=e.target,U=t.targetAnchor=e.targetAnchor,O=Yn(e.props),T=O?s:A,V=O?k:U;if(r==="svg"||X1(A)?r="svg":(r==="mathml"||eu(A))&&(r="mathml"),g?(h(e.dynamicChildren,g,T,i,o,r,a),El(e,t,!0)):l||d(e,t,T,V,i,o,r,a,!1),C)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Mr(t,s,k,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const K=t.target=Za(t.props,_);K&&Mr(t,K,null,c,0)}else O&&Mr(t,A,U,c,1);po(t,C)}},remove(e,t,s,{um:n,o:{remove:i}},o){const{shapeFlag:r,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:h}=e,p=o||!Yn(h),_=Mn.get(e);if(_&&(_.flags|=8,Mn.delete(e)),d&&(i(c),i(u)),o&&i(l),!_&&r&16)for(let m=0;m<a.length;m++){const b=a[m];n(b,t,s,p,!!b.dynamicChildren)}},move:Mr,hydrate:t3};function Mr(e,t,s,{o:{insert:n},m:i},o=2){o===0&&n(e.targetAnchor,t,s);const{el:r,anchor:a,shapeFlag:l,children:c,props:u}=e,d=o===2;if(d&&n(r,t,s),!Mn.has(e)&&(!d||Yn(u))&&l&16)for(let h=0;h<c.length;h++)i(c[h],t,s,2);d&&n(a,t,s)}function t3(e,t,s,n,i,o,{o:{nextSibling:r,parentNode:a,querySelector:l,insert:c,createText:u}},d){function h(b,M){let C=M;for(;C;){if(C&&C.nodeType===8){if(C.data==="teleport start anchor")t.targetStart=C;else if(C.data==="teleport anchor"){t.targetAnchor=C,b._lpa=t.targetAnchor&&r(t.targetAnchor);break}}C=r(C)}}function p(b,M){M.anchor=d(r(b),M,a(b),s,n,i,o)}const _=t.target=Za(t.props,l),m=Yn(t.props);if(_){const b=_._lpa||_.firstChild;t.shapeFlag&16&&(m?(p(e,t),h(_,b),t.targetAnchor||Ya(_,t,u,c,a(e)===_?e:null)):(t.anchor=r(e),h(_,b),t.targetAnchor||Ya(_,t,u,c),d(b&&r(b),t,_,s,n,i,o))),po(t,m)}else m&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=r(e));return t.anchor&&r(t.anchor)}const s3=e3;function po(e,t){const s=e.ctx;if(s&&s.ut){let n,i;for(t?(n=e.el,i=e.anchor):(n=e.targetStart,i=e.targetAnchor);n&&n!==i;)n.nodeType===1&&n.setAttribute("data-v-owner",s.uid),n=n.nextSibling;s.ut()}}function Ya(e,t,s,n,i=null){const o=t.targetStart=s(""),r=t.targetAnchor=s("");return o[Y1]=r,e&&(n(o,e,i),n(r,e,i)),r}const Es=Symbol("_leaveCb"),go=Symbol("_enterCb");function Ja(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return lt(()=>{e.isMounted=!0}),On(()=>{e.isUnmounting=!0}),e}const vs=[Function,Array],Xa={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:vs,onEnter:vs,onAfterEnter:vs,onEnterCancelled:vs,onBeforeLeave:vs,onLeave:vs,onAfterLeave:vs,onLeaveCancelled:vs,onBeforeAppear:vs,onAppear:vs,onAfterAppear:vs,onAppearCancelled:vs},tu=e=>{const t=e.subTree;return t.component?tu(t.component):t},n3={name:"BaseTransition",props:Xa,setup(e,{slots:t}){const s=es(),n=Ja();return()=>{const i=t.default&&Or(t.default(),!0),o=i&&i.length?su(i):s.subTree?ue():void 0;if(!o)return;const r=He(e),{mode:a}=r;if(n.isLeaving)return el(o);const l=ou(o);if(!l)return el(o);let c=Li(l,r,n,s,d=>c=d);l.type!==yt&&ln(l,c);let u=s.subTree&&ou(s.subTree);if(u&&u.type!==yt&&!Os(u,l)&&tu(s).type!==yt){let d=Li(u,r,n,s);if(ln(u,d),a==="out-in"&&l.type!==yt)return n.isLeaving=!0,d.afterLeave=()=>{n.isLeaving=!1,s.job.flags&8||s.update(),delete d.afterLeave,u=void 0},el(o);a==="in-out"&&l.type!==yt?d.delayLeave=(h,p,_)=>{const m=iu(n,u);m[String(u.key)]=u,h[Es]=()=>{p(),h[Es]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{_(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function su(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==yt){t=s;break}}return t}const nu=n3;function iu(e,t){const{leavingVNodes:s}=e;let n=s.get(t.type);return n||(n=Object.create(null),s.set(t.type,n)),n}function Li(e,t,s,n,i){const{appear:o,mode:r,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:p,onAfterLeave:_,onLeaveCancelled:m,onBeforeAppear:b,onAppear:M,onAfterAppear:C,onAppearCancelled:g}=t,E=String(e.key),v=iu(s,e),L=(A,U)=>{A&&cs(A,n,9,U)},k=(A,U)=>{const O=U[1];L(A,U),he(A)?A.every(T=>T.length<=1)&&O():A.length<=1&&O()},$={mode:r,persisted:a,beforeEnter(A){let U=l;if(!s.isMounted)if(o)U=b||l;else return;A[Es]&&A[Es](!0);const O=v[E];O&&Os(e,O)&&O.el[Es]&&O.el[Es](),L(U,[A])},enter(A){if(v[E]===e)return;let U=c,O=u,T=d;if(!s.isMounted)if(o)U=M||c,O=C||u,T=g||d;else return;let V=!1;A[go]=X=>{V||(V=!0,X?L(T,[A]):L(O,[A]),$.delayedLeave&&$.delayedLeave(),A[go]=void 0)};const K=A[go].bind(null,!1);U?k(U,[A,K]):K()},leave(A,U){const O=String(e.key);if(A[go]&&A[go](!0),s.isUnmounting)return U();L(h,[A]);let T=!1;A[Es]=K=>{T||(T=!0,U(),K?L(m,[A]):L(_,[A]),A[Es]=void 0,v[O]===e&&delete v[O])};const V=A[Es].bind(null,!1);v[O]=e,p?k(p,[A,V]):V()},clone(A){const U=Li(A,t,s,n,i);return i&&i(U),U}};return $}function el(e){if(_o(e))return e=js(e),e.children=null,e}function ou(e){if(!_o(e))return J1(e.type)&&e.children?su(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&we(s.default))return s.default()}}function ln(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ln(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Or(e,t=!1,s){let n=[],i=0;for(let o=0;o<e.length;o++){let r=e[o];const a=s==null?r.key:String(s)+String(r.key!=null?r.key:o);r.type===Ne?(r.patchFlag&128&&i++,n=n.concat(Or(r.children,t,a))):(t||r.type!==yt)&&n.push(a!=null?js(r,{key:a}):r)}if(i>1)for(let o=0;o<n.length;o++)n[o].patchFlag=-2;return n}function Te(e,t){return we(e)?(()=>Ve({name:e.name},t,{setup:e}))():e}function i3(){const e=es();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function tl(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function o3(e){const t=es(),s=D1(null);if(t){const i=t.refs===$e?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>s.value,set:o=>s.value=o})}return s}function ru(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const br=new WeakMap;function Ai(e,t,s,n,i=!1){if(he(e)){e.forEach((m,b)=>Ai(m,t&&(he(t)?t[b]:t),s,n,i));return}if(cn(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Ai(e,t,s,n.component.subTree);return}const o=n.shapeFlag&4?wo(n.component):n.el,r=i?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===$e?a.refs={}:a.refs,d=a.setupState,h=He(d),p=d===$e?Ci:m=>ru(u,m)?!1:ze(h,m),_=(m,b)=>!(b&&ru(u,b));if(c!=null&&c!==l){if(au(t),Le(c))u[c]=null,p(c)&&(d[c]=null);else if(pt(c)){const m=t;_(c,m.k)&&(c.value=null),m.k&&(u[m.k]=null)}}if(we(l))Qn(l,a,12,[r,u]);else{const m=Le(l),b=pt(l);if(m||b){const M=()=>{if(e.f){const C=m?p(l)?d[l]:u[l]:_()||!e.k?l.value:u[e.k];if(i)he(C)&&Ua(C,o);else if(he(C))C.includes(o)||C.push(o);else if(m)u[l]=[o],p(l)&&(d[l]=u[l]);else{const g=[o];_(l,e.k)&&(l.value=g),e.k&&(u[e.k]=g)}}else m?(u[l]=r,p(l)&&(d[l]=r)):b&&(_(l,e.k)&&(l.value=r),e.k&&(u[e.k]=r))};if(r){const C=()=>{M(),br.delete(e)};C.id=-1,br.set(e,C),Mt(C,s)}else au(e),M()}}}function au(e){const t=br.get(e);t&&(t.flags|=8,br.delete(e))}let lu=!1;const xi=()=>{lu||(console.error("Hydration completed but contains mismatches."),lu=!0)},r3=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",a3=e=>e.namespaceURI.includes("MathML"),Lr=e=>{if(e.nodeType===1){if(r3(e))return"svg";if(a3(e))return"mathml"}},ki=e=>e.nodeType===8;function l3(e){const{mt:t,p:s,o:{patchProp:n,createText:i,nextSibling:o,parentNode:r,remove:a,insert:l,createComment:c}}=e,u=(g,E)=>{if(!E.hasChildNodes()){s(null,g,E),Tr(),E._vnode=g;return}d(E.firstChild,g,null,null,null),Tr(),E._vnode=g},d=(g,E,v,L,k,$=!1)=>{$=$||!!E.dynamicChildren;const A=ki(g)&&g.data==="[",U=()=>m(g,E,v,L,k,A),{type:O,ref:T,shapeFlag:V,patchFlag:K}=E;let X=g.nodeType;E.el=g,K===-2&&($=!1,E.dynamicChildren=null);let te=null;switch(O){case bn:X!==3?E.children===""?(l(E.el=i(""),r(g),g),te=g):te=U():(g.data!==E.children&&(xi(),g.data=E.children),te=o(g));break;case yt:C(g)?(te=o(g),M(E.el=g.content.firstChild,g,v)):X!==8||A?te=U():te=o(g);break;case ei:if(A&&(g=o(g),X=g.nodeType),X===1||X===3){te=g;const ie=!E.children.length;for(let F=0;F<E.staticCount;F++)ie&&(E.children+=te.nodeType===1?te.outerHTML:te.data),F===E.staticCount-1&&(E.anchor=te),te=o(te);return A?o(te):te}else U();break;case Ne:A?te=_(g,E,v,L,k,$):te=U();break;default:if(V&1)(X!==1||E.type.toLowerCase()!==g.tagName.toLowerCase())&&!C(g)?te=U():te=h(g,E,v,L,k,$);else if(V&6){E.slotScopeIds=k;const ie=r(g);if(A?te=b(g):ki(g)&&g.data==="teleport start"?te=b(g,g.data,"teleport end"):te=o(g),t(E,ie,null,v,L,Lr(ie),$),cn(E)&&!E.type.__asyncResolved){let F;A?(F=Ie(Ne),F.anchor=te?te.previousSibling:ie.lastChild):F=g.nodeType===3?Io(""):Ie("div"),F.el=g,E.component.subTree=F}}else V&64?X!==8?te=U():te=E.type.hydrate(g,E,v,L,k,$,e,p):V&128&&(te=E.type.hydrate(g,E,v,L,Lr(r(g)),k,$,e,d))}return T!=null&&Ai(T,null,L,E),te},h=(g,E,v,L,k,$)=>{$=$||!!E.dynamicChildren;const{type:A,props:U,patchFlag:O,shapeFlag:T,dirs:V,transition:K}=E,X=A==="input"||A==="option";if(X||O!==-1){V&&Bs(E,null,v,"created");let te=!1;if(C(g)){te=Hu(null,K)&&v&&v.vnode.props&&v.vnode.props.appear;const F=g.content.firstChild;if(te){const Oe=F.getAttribute("class");Oe&&(F.$cls=Oe),K.beforeEnter(F)}M(F,g,v),E.el=g=F}if(T&16&&!(U&&(U.innerHTML||U.textContent))){let F=p(g.firstChild,E,g,v,L,k,$);for(F&&!Ar(g,1)&&xi();F;){const Oe=F;F=F.nextSibling,a(Oe)}}else if(T&8){let F=E.children;F[0]===`
|
|
302
|
-
`&&(g.tagName==="PRE"||g.tagName==="TEXTAREA")&&(
|
|
303
|
-
`)&&(Ar(g,0)||xi(),g.textContent=E.children)}if(U){if(X||!$||O&48){const F=g.tagName.includes("-");for(const Oe in U)(X&&(Oe.endsWith("value")||Oe==="indeterminate")||Bn(Oe)&&!en(Oe)||Oe[0]==="."||F&&!en(Oe))&&n(g,Oe,null,U[Oe],void 0,v)}else if(U.onClick)n(g,"onClick",null,U.onClick,void 0,v);else if(O&4&&rn(U.style))for(const F in U.style)U.style[F]}let ie;(ie=U&&U.onVnodeBeforeMount)&&is(ie,v,E),V&&Bs(E,null,v,"beforeMount"),((ie=U&&U.onVnodeMounted)||V||te)&&Ku(()=>{ie&&is(ie,v,E),te&&K.enter(g),V&&Bs(E,null,v,"mounted")},L)}return g.nextSibling},p=(g,E,v,L,k,$,A)=>{A=A||!!E.dynamicChildren;const U=E.children,O=U.length;let T=!1;for(let V=0;V<O;V++){const K=A?U[V]:U[V]=ns(U[V]),X=K.type===bn;g?(X&&!A&&V+1<O&&ns(U[V+1]).type===bn&&(l(i(g.data.slice(K.children.length)),v,o(g)),g.data=K.children),g=d(g,K,L,k,$,A)):X&&!K.children?l(K.el=i(""),v):(T||(T=!0,Ar(v,1)||xi()),s(null,K,v,null,L,k,Lr(v),$))}return g},_=(g,E,v,L,k,$)=>{const{slotScopeIds:A}=E;A&&(k=k?k.concat(A):A);const U=r(g),O=p(o(g),E,U,v,L,k,$);return O&&ki(O)&&O.data==="]"?o(E.anchor=O):(xi(),l(E.anchor=c("]"),U,O),O)},m=(g,E,v,L,k,$)=>{if(Ar(g.parentElement,1)||xi(),E.el=null,$){const O=b(g);for(;;){const T=o(g);if(T&&T!==O)a(T);else break}}const A=o(g),U=r(g);return a(g),s(null,E,U,A,v,L,Lr(U),k),v&&(v.vnode.el=E.el,$r(v,E.el)),A},b=(g,E="[",v="]")=>{let L=0;for(;g;)if(g=o(g),g&&ki(g)&&(g.data===E&&L++,g.data===v)){if(L===0)return o(g);L--}return g},M=(g,E,v)=>{const L=E.parentNode;L&&L.replaceChild(g,E);let k=v;for(;k;)k.vnode.el===E&&(k.vnode.el=k.subTree.el=g),k=k.parent},C=g=>g.nodeType===1&&g.tagName==="TEMPLATE";return[u,d]}const cu="data-allow-mismatch",c3={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Ar(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(cu);)e=e.parentElement;const s=e&&e.getAttribute(cu);if(s==null)return!1;if(s==="")return!0;{const n=s.split(",");return t===0&&n.includes("children")?!0:n.includes(c3[t])}}const u3=dr().requestIdleCallback||(e=>setTimeout(e,1)),d3=dr().cancelIdleCallback||(e=>clearTimeout(e)),f3=(e=1e4)=>t=>{const s=u3(t,{timeout:e});return()=>d3(s)};function h3(e){const{top:t,left:s,bottom:n,right:i}=e.getBoundingClientRect(),{innerHeight:o,innerWidth:r}=window;return(t>0&&t<o||n>0&&n<o)&&(s>0&&s<r||i>0&&i<r)}const p3=e=>(t,s)=>{const n=new IntersectionObserver(i=>{for(const o of i)if(o.isIntersecting){n.disconnect(),t();break}},e);return s(i=>{if(i instanceof Element){if(h3(i))return t(),n.disconnect(),!1;n.observe(i)}}),()=>n.disconnect()},g3=e=>t=>{if(e){const s=matchMedia(e);if(s.matches)t();else return s.addEventListener("change",t,{once:!0}),()=>s.removeEventListener("change",t)}},_3=(e=[])=>(t,s)=>{Le(e)&&(e=[e]);let n=!1;const i=r=>{n||(n=!0,o(),t(),r.target.dispatchEvent(new r.constructor(r.type,r)))},o=()=>{s(r=>{for(const a of e)r.removeEventListener(a,i)})};return s(r=>{for(const a of e)r.addEventListener(a,i,{once:!0})}),o};function m3(e,t){if(ki(e)&&e.data==="["){let s=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(ki(n))if(n.data==="]"){if(--s===0)break}else n.data==="["&&s++;n=n.nextSibling}}else t(e)}const cn=e=>!!e.type.__asyncLoader;function E3(e){we(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:n,delay:i=200,hydrate:o,timeout:r,suspensible:a=!0,onError:l}=e;let c=null,u,d=0;const h=()=>(d++,c=null,p()),p=()=>{let _;return c||(_=c=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((b,M)=>{l(m,()=>b(h()),()=>M(m),d+1)});throw m}).then(m=>_!==c&&c?c:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),u=m,m)))};return Te({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(_,m,b){let M=!1;(m.bu||(m.bu=[])).push(()=>M=!0);const C=()=>{M||b()},g=o?()=>{const E=o(C,v=>m3(_,v));E&&(m.bum||(m.bum=[])).push(E)}:C;u?g():p().then(()=>!m.isUnmounted&&g())},get __asyncResolved(){return u},setup(){const _=Ft;if(tl(_),u)return()=>xr(u,_);const m=g=>{c=null,Wn(g,_,13,!n)};if(a&&_.suspense||si)return p().then(g=>()=>xr(g,_)).catch(g=>(m(g),()=>n?Ie(n,{error:g}):null));const b=N(!1),M=N(),C=N(!!i);return i&&setTimeout(()=>{C.value=!1},i),r!=null&&setTimeout(()=>{if(!b.value&&!M.value){const g=new Error(`Async component timed out after ${r}ms.`);m(g),M.value=g}},r),p().then(()=>{b.value=!0,_.parent&&_o(_.parent.vnode)&&_.parent.update()}).catch(g=>{m(g),M.value=g}),()=>{if(b.value&&u)return xr(u,_);if(M.value&&n)return Ie(n,{error:M.value});if(s&&!C.value)return xr(s,_)}}})}function xr(e,t){const{ref:s,props:n,children:i,ce:o}=t.vnode,r=Ie(e,n,i);return r.ref=s,r.ce=o,delete t.vnode.ce,r}const _o=e=>e.type.__isKeepAlive,v3={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const s=es(),n=s.ctx;if(!n.renderer)return()=>{const C=t.default&&t.default();return C&&C.length===1?C[0]:C};const i=new Map,o=new Set;let r=null;const a=s.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=n,h=d("div");n.activate=(C,g,E,v,L)=>{const k=C.component;c(C,g,E,0,a),l(k.vnode,C,g,E,k,a,v,C.slotScopeIds,L),Mt(()=>{k.isDeactivated=!1,k.a&&Ii(k.a);const $=C.props&&C.props.onVnodeMounted;$&&is($,k.parent,C)},a)},n.deactivate=C=>{const g=C.component;Hr(g.m),Hr(g.a),c(C,h,null,1,a),Mt(()=>{g.da&&Ii(g.da);const E=C.props&&C.props.onVnodeUnmounted;E&&is(E,g.parent,C),g.isDeactivated=!0},a)};function p(C){sl(C),u(C,s,a,!0)}function _(C){i.forEach((g,E)=>{const v=zr(cn(g)?g.type.__asyncResolved||{}:g.type);v&&!C(v)&&m(E)})}function m(C){const g=i.get(C);g&&(!r||!Os(g,r))?p(g):r&&sl(r),i.delete(C),o.delete(C)}us(()=>[e.include,e.exclude],([C,g])=>{C&&_(E=>mo(C,E)),g&&_(E=>!mo(g,E))},{flush:"post",deep:!0});let b=null;const M=()=>{b!=null&&(Gr(s.subTree.type)?Mt(()=>{i.set(b,kr(s.subTree))},s.subTree.suspense):i.set(b,kr(s.subTree)))};return lt(M),Nr(M),On(()=>{i.forEach(C=>{const{subTree:g,suspense:E}=s,v=kr(g);if(C.type===v.type&&C.key===v.key){sl(v);const L=v.component.da;L&&Mt(L,E);return}p(C)})}),()=>{if(b=null,!t.default)return r=null;const C=t.default(),g=C[0];if(C.length>1)return r=null,C;if(!fn(g)||!(g.shapeFlag&4)&&!(g.shapeFlag&128))return r=null,g;let E=kr(g);if(E.type===yt)return r=null,E;const v=E.type,L=zr(cn(E)?E.type.__asyncResolved||{}:v),{include:k,exclude:$,max:A}=e;if(k&&(!L||!mo(k,L))||$&&L&&mo($,L))return E.shapeFlag&=-257,r=E,g;const U=E.key==null?v:E.key,O=i.get(U);return E.el&&(E=js(E),g.shapeFlag&128&&(g.ssContent=E)),b=U,O?(E.el=O.el,E.component=O.component,E.transition&&ln(E,E.transition),E.shapeFlag|=512,o.delete(U),o.add(U)):(o.add(U),A&&o.size>parseInt(A,10)&&m(o.values().next().value)),E.shapeFlag|=256,r=E,Gr(g.type)?g:E}}};function mo(e,t){return he(e)?e.some(s=>mo(s,t)):Le(e)?e.split(",").includes(t):bp(e)?(e.lastIndex=0,e.test(t)):!1}function uu(e,t){fu(e,"a",t)}function du(e,t){fu(e,"da",t)}function fu(e,t,s=Ft){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ur(t,n,s),s){let i=s.parent;for(;i&&i.parent;)_o(i.parent.vnode)&&C3(n,t,s,i),i=i.parent}}function C3(e,t,s,n){const i=Ur(t,e,n,!0);wt(()=>{Ua(n[t],i)},s)}function sl(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function kr(e){return e.shapeFlag&128?e.ssContent:e}function Ur(e,t,s=Ft,n=!1){if(s){const i=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...r)=>{Vs();const a=Di(s),l=cs(t,s,e,r);return a(),Fs(),l});return n?i.unshift(o):i.push(o),o}}const un=e=>(t,s=Ft)=>{(!si||e==="sp")&&Ur(e,(...n)=>t(...n),s)},nl=un("bm"),lt=un("m"),il=un("bu"),Nr=un("u"),On=un("bum"),wt=un("um"),hu=un("sp"),pu=un("rtg"),gu=un("rtc");function _u(e,t=Ft){Ur("ec",e,t)}const ol="components",y3="directives";function ve(e,t){return rl(ol,e,!0,t)||e}const mu=Symbol.for("v-ndc");function Dr(e){return Le(e)?rl(ol,e,!1)||e:e||mu}function S3(e){return rl(y3,e)}function rl(e,t,s=!0,n=!1){const i=Vt||Ft;if(i){const o=i.type;if(e===ol){const a=zr(o,!1);if(a&&(a===t||a===Xe(t)||a===qn(Xe(t))))return o}const r=Eu(i[e]||o[e],t)||Eu(i.appContext[e],t);return!r&&n?o:r}}function Eu(e,t){return e&&(e[t]||e[Xe(t)]||e[qn(Xe(t))])}function kt(e,t,s,n){let i;const o=s&&s[n],r=he(e);if(r||Le(e)){const a=r&&rn(e);let l=!1,c=!1;a&&(l=!ss(e),c=Hs(e),e=gr(e)),i=new Array(e.length);for(let u=0,d=e.length;u<d;u++)i[u]=t(l?c?wi(Ms(e[u])):Ms(e[u]):e[u],u,void 0,o&&o[u])}else if(typeof e=="number"){i=new Array(e);for(let a=0;a<e;a++)i[a]=t(a+1,a,void 0,o&&o[a])}else if(qe(e))if(e[Symbol.iterator])i=Array.from(e,(a,l)=>t(a,l,void 0,o&&o[l]));else{const a=Object.keys(e);i=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];i[l]=t(e[u],u,l,o&&o[l])}}else i=[];return s&&(s[n]=i),i}function T3(e,t){for(let s=0;s<t.length;s++){const n=t[s];if(he(n))for(let i=0;i<n.length;i++)e[n[i].name]=n[i].fn;else n&&(e[n.name]=n.key?(...i)=>{const o=n.fn(...i);return o&&(o.key=n.key),o}:n.fn)}return e}function dn(e,t,s={},n,i){if(Vt.ce||Vt.parent&&cn(Vt.parent)&&Vt.parent.ce){const c=Object.keys(s).length>0;return t!=="default"&&(s.name=t),R(),xe(Ne,null,[Ie("slot",s,n&&n())],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),R();const r=o&&al(o(s)),a=s.key||r&&r.key,l=xe(Ne,{key:(a&&!Bt(a)?a:`_${t}`)+(!r&&n?"_fb":"")},r||(n?n():[]),r&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function al(e){return e.some(t=>fn(t)?!(t.type===yt||t.type===Ne&&!al(t.children)):!0)?e:null}function I3(e,t){const s={};for(const n in e)s[t&&/[A-Z]/.test(n)?`on:${n}`:Ti(n)]=e[n];return s}const ll=e=>e?Xu(e)?wo(e):ll(e.parent):null,Eo=Ve(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ll(e.parent),$root:e=>ll(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>fl(e),$forceUpdate:e=>e.f||(e.f=()=>{Wa(e.update)}),$nextTick:e=>e.n||(e.n=at.bind(e.proxy)),$watch:e=>J5.bind(e)}),cl=(e,t)=>e!==$e&&!e.__isScriptSetup&&ze(e,t),ul={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:o,accessCache:r,type:a,appContext:l}=e;if(t[0]!=="$"){const h=r[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return o[t]}else{if(cl(n,t))return r[t]=1,n[t];if(i!==$e&&ze(i,t))return r[t]=2,i[t];if(ze(o,t))return r[t]=3,o[t];if(s!==$e&&ze(s,t))return r[t]=4,s[t];dl&&(r[t]=0)}}const c=Eo[t];let u,d;if(c)return t==="$attrs"&&jt(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(s!==$e&&ze(s,t))return r[t]=4,s[t];if(d=l.config.globalProperties,ze(d,t))return d[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:o}=e;return cl(i,t)?(i[t]=s,!0):n!==$e&&ze(n,t)?(n[t]=s,!0):ze(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,props:o,type:r}},a){let l;return!!(s[a]||e!==$e&&a[0]!=="$"&&ze(e,a)||cl(t,a)||ze(o,a)||ze(n,a)||ze(Eo,a)||ze(i.config.globalProperties,a)||(l=r.__cssModules)&&l[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:ze(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}},R3=Ve({},ul,{get(e,t){if(t!==Symbol.unscopables)return ul.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Np(t)}});function w3(){return null}function M3(){return null}function O3(e){}function b3(e){}function L3(){return null}function A3(){}function x3(e,t){return null}function k3(){return vu().slots}function U3(){return vu().attrs}function vu(e){const t=es();return t.setupContext||(t.setupContext=nd(t))}function vo(e){return he(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}function N3(e,t){const s=vo(e);for(const n in t){if(n.startsWith("__skip"))continue;let i=s[n];i?he(i)||we(i)?i=s[n]={type:i,default:t[n]}:i.default=t[n]:i===null&&(i=s[n]={default:t[n]}),i&&t[`__skip_${n}`]&&(i.skipFactory=!0)}return s}function D3(e,t){return!e||!t?e||t:he(e)&&he(t)?e.concat(t):Ve({},vo(e),vo(t))}function P3(e,t){const s={};for(const n in e)t.includes(n)||Object.defineProperty(s,n,{enumerable:!0,get:()=>e[n]});return s}function V3(e){const t=es(),s=si;let n=e();Ro(),s&&Ni(!1);const i=()=>{Di(t),s&&Ni(!0)},o=()=>{es()!==t&&t.scope.off(),Ro(),s&&Ni(!1)};return Na(n)&&(n=n.catch(r=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(o)),r})),[n,()=>{i(),Promise.resolve().then(o)}]}let dl=!0;function F3(e){const t=fl(e),s=e.proxy,n=e.ctx;dl=!1,t.beforeCreate&&Cu(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:p,updated:_,activated:m,deactivated:b,beforeDestroy:M,beforeUnmount:C,destroyed:g,unmounted:E,render:v,renderTracked:L,renderTriggered:k,errorCaptured:$,serverPrefetch:A,expose:U,inheritAttrs:O,components:T,directives:V,filters:K}=t;if(c&&$3(c,n,null),r)for(const ie in r){const F=r[ie];we(F)&&(n[ie]=F.bind(s))}if(i){const ie=i.call(s,s);qe(ie)&&(e.data=on(ie))}if(dl=!0,o)for(const ie in o){const F=o[ie],Oe=we(F)?F.bind(s,s):we(F.get)?F.get.bind(s,s):Dt,Lt=!we(F)&&we(F.set)?F.set.bind(s):Dt,Ye=me({get:Oe,set:Lt});Object.defineProperty(n,ie,{enumerable:!0,configurable:!0,get:()=>Ye.value,set:Et=>Ye.value=Et})}if(a)for(const ie in a)yu(a[ie],n,s,ie);if(l){const ie=we(l)?l.call(s):l;Reflect.ownKeys(ie).forEach(F=>{wr(F,ie[F])})}u&&Cu(u,e,"c");function te(ie,F){he(F)?F.forEach(Oe=>ie(Oe.bind(s))):F&&ie(F.bind(s))}if(te(nl,d),te(lt,h),te(il,p),te(Nr,_),te(uu,m),te(du,b),te(_u,$),te(gu,L),te(pu,k),te(On,C),te(wt,E),te(hu,A),he(U))if(U.length){const ie=e.exposed||(e.exposed={});U.forEach(F=>{Object.defineProperty(ie,F,{get:()=>s[F],set:Oe=>s[F]=Oe,enumerable:!0})})}else e.exposed||(e.exposed={});v&&e.render===Dt&&(e.render=v),O!=null&&(e.inheritAttrs=O),T&&(e.components=T),V&&(e.directives=V),A&&tl(e)}function $3(e,t,s=Dt){he(e)&&(e=hl(e));for(const n in e){const i=e[n];let o;qe(i)?"default"in i?o=Zn(i.from||n,i.default,!0):o=Zn(i.from||n):o=Zn(i),pt(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[n]=o}}function Cu(e,t,s){cs(he(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function yu(e,t,s,n){let i=n.includes(".")?Z1(s,n):()=>s[n];if(Le(e)){const o=t[e];we(o)&&us(i,o)}else if(we(e))us(i,e.bind(s));else if(qe(e))if(he(e))e.forEach(o=>yu(o,t,s,n));else{const o=we(e.handler)?e.handler.bind(s):t[e.handler];we(o)&&us(i,o,e)}}function fl(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,a=o.get(t);let l;return a?l=a:!i.length&&!s&&!n?l=t:(l={},i.length&&i.forEach(c=>Pr(l,c,r,!0)),Pr(l,t,r)),qe(t)&&o.set(t,l),l}function Pr(e,t,s,n=!1){const{mixins:i,extends:o}=t;o&&Pr(e,o,s,!0),i&&i.forEach(r=>Pr(e,r,s,!0));for(const r in t)if(!(n&&r==="expose")){const a=H3[r]||s&&s[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const H3={data:Su,props:Tu,emits:Tu,methods:Co,computed:Co,beforeCreate:Xt,created:Xt,beforeMount:Xt,mounted:Xt,beforeUpdate:Xt,updated:Xt,beforeDestroy:Xt,beforeUnmount:Xt,destroyed:Xt,unmounted:Xt,activated:Xt,deactivated:Xt,errorCaptured:Xt,serverPrefetch:Xt,components:Co,directives:Co,watch:B3,provide:Su,inject:G3};function Su(e,t){return t?e?function(){return Ve(we(e)?e.call(this,this):e,we(t)?t.call(this,this):t)}:t:e}function G3(e,t){return Co(hl(e),hl(t))}function hl(e){if(he(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function Xt(e,t){return e?[...new Set([].concat(e,t))]:t}function Co(e,t){return e?Ve(Object.create(null),e,t):t}function Tu(e,t){return e?he(e)&&he(t)?[...new Set([...e,...t])]:Ve(Object.create(null),vo(e),vo(t??{})):t}function B3(e,t){if(!e)return t;if(!t)return e;const s=Ve(Object.create(null),e);for(const n in t)s[n]=Xt(e[n],t[n]);return s}function Iu(){return{app:null,config:{isNativeTag:Ci,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let j3=0;function q3(e,t){return function(n,i=null){we(n)||(n=Ve({},n)),i!=null&&!qe(i)&&(i=null);const o=Iu(),r=new WeakSet,a=[];let l=!1;const c=o.app={_uid:j3++,_component:n,_props:i,_container:null,_context:o,_instance:null,version:ad,get config(){return o.config},set config(u){},use(u,...d){return r.has(u)||(u&&we(u.install)?(r.add(u),u.install(c,...d)):we(u)&&(r.add(u),u(c,...d))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,d){return d?(o.components[u]=d,c):o.components[u]},directive(u,d){return d?(o.directives[u]=d,c):o.directives[u]},mount(u,d,h){if(!l){const p=c._ceVNode||Ie(n,i);return p.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),d&&t?t(p,u):e(p,u,h),l=!0,c._container=u,u.__vue_app__=c,wo(p.component)}},onUnmount(u){a.push(u)},unmount(){l&&(cs(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return o.provides[u]=d,c},runWithContext(u){const d=Jn;Jn=c;try{return u()}finally{Jn=d}}};return c}}let Jn=null;function K3(e,t,s=$e){const n=es(),i=Xe(t),o=ts(t),r=Ru(e,i),a=V1((l,c)=>{let u,d=$e,h;return W1(()=>{const p=e[i];Pt(u,p)&&(u=p,c())}),{get(){return l(),s.get?s.get(u):u},set(p){const _=s.set?s.set(p):p;if(!Pt(_,u)&&!(d!==$e&&Pt(p,d)))return;const m=n.vnode.props;m&&(t in m||i in m||o in m)&&(`onUpdate:${t}`in m||`onUpdate:${i}`in m||`onUpdate:${o}`in m)||(u=p,c()),n.emit(`update:${t}`,_),Pt(p,_)&&Pt(p,d)&&!Pt(_,h)&&c(),d=p,h=_}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?r||$e:a,done:!1}:{done:!0}}}},a}const Ru=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Xe(t)}Modifiers`]||e[`${ts(t)}Modifiers`];function z3(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||$e;let i=s;const o=t.startsWith("update:"),r=o&&Ru(n,t.slice(7));r&&(r.trim&&(i=s.map(u=>Le(u)?u.trim():u)),r.number&&(i=s.map(cr)));let a,l=n[a=Ti(t)]||n[a=Ti(Xe(t))];!l&&o&&(l=n[a=Ti(ts(t))]),l&&cs(l,e,6,i);const c=n[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,cs(c,e,6,i)}}const Q3=new WeakMap;function wu(e,t,s=!1){const n=s?Q3:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const o=e.emits;let r={},a=!1;if(!we(e)){const l=c=>{const u=wu(c,t,!0);u&&(a=!0,Ve(r,u))};!s&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(qe(e)&&n.set(e,null),null):(he(o)?o.forEach(l=>r[l]=null):Ve(r,o),qe(e)&&n.set(e,r),r)}function Vr(e,t){return!e||!Bn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ze(e,t[0].toLowerCase()+t.slice(1))||ze(e,ts(t))||ze(e,t))}function Gv(){}function Fr(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[o],slots:r,attrs:a,emit:l,render:c,renderCache:u,props:d,data:h,setupState:p,ctx:_,inheritAttrs:m}=e,b=fo(e);let M,C;try{if(s.shapeFlag&4){const E=i||n,v=E;M=ns(c.call(v,E,u,d,p,h,_)),C=a}else{const E=t;M=ns(E.length>1?E(d,{attrs:a,slots:r,emit:l}):E(d,null)),C=t.props?a:Z3(a)}}catch(E){So.length=0,Wn(E,e,1),M=Ie(yt)}let g=M;if(C&&m!==!1){const E=Object.keys(C),{shapeFlag:v}=g;E.length&&v&7&&(o&&E.some(or)&&(C=Y3(C,o)),g=js(g,C,!1,!0))}return s.dirs&&(g=js(g,null,!1,!0),g.dirs=g.dirs?g.dirs.concat(s.dirs):s.dirs),s.transition&&ln(g,s.transition),M=g,fo(b),M}function W3(e,t=!0){let s;for(let n=0;n<e.length;n++){const i=e[n];if(fn(i)){if(i.type!==yt||i.children==="v-if"){if(s)return;s=i}}else return}return s}const Z3=e=>{let t;for(const s in e)(s==="class"||s==="style"||Bn(s))&&((t||(t={}))[s]=e[s]);return t},Y3=(e,t)=>{const s={};for(const n in e)(!or(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function J3(e,t,s){const{props:n,children:i,component:o}=e,{props:r,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&l>=0){if(l&1024)return!0;if(l&16)return n?Mu(n,r,c):!!r;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const h=u[d];if(Ou(r,n,h)&&!Vr(c,h))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===r?!1:n?r?Mu(n,r,c):!0:!!r;return!1}function Mu(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const o=n[i];if(Ou(t,e,o)&&!Vr(s,o))return!0}return!1}function Ou(e,t,s){const n=e[s],i=t[s];return s==="style"&&qe(n)&&qe(i)?!tn(n,i):n!==i}function $r({vnode:e,parent:t,suspense:s},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.suspense.vnode.el=i.el=n,e=i),i===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const bu={},Lu=()=>Object.create(bu),Au=e=>Object.getPrototypeOf(e)===bu;function X3(e,t,s,n=!1){const i={},o=Lu();e.propsDefaults=Object.create(null),xu(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);s?e.props=n?i:U1(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function e4(e,t,s,n){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,a=He(i),[l]=e.propsOptions;let c=!1;if((n||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let h=u[d];if(Vr(e.emitsOptions,h))continue;const p=t[h];if(l)if(ze(o,h))p!==o[h]&&(o[h]=p,c=!0);else{const _=Xe(h);i[_]=pl(l,a,_,p,e,!1)}else p!==o[h]&&(o[h]=p,c=!0)}}}else{xu(e,t,i,o)&&(c=!0);let u;for(const d in a)(!t||!ze(t,d)&&((u=ts(d))===d||!ze(t,u)))&&(l?s&&(s[d]!==void 0||s[u]!==void 0)&&(i[d]=pl(l,a,d,void 0,e,!0)):delete i[d]);if(o!==a)for(const d in o)(!t||!ze(t,d))&&(delete o[d],c=!0)}c&&sn(e.attrs,"set","")}function xu(e,t,s,n){const[i,o]=e.propsOptions;let r=!1,a;if(t)for(let l in t){if(en(l))continue;const c=t[l];let u;i&&ze(i,u=Xe(l))?!o||!o.includes(u)?s[u]=c:(a||(a={}))[u]=c:Vr(e.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,r=!0)}if(o){const l=He(s),c=a||$e;for(let u=0;u<o.length;u++){const d=o[u];s[d]=pl(i,l,d,c[d],e,!ze(c,d))}}return r}function pl(e,t,s,n,i,o){const r=e[s];if(r!=null){const a=ze(r,"default");if(a&&n===void 0){const l=r.default;if(r.type!==Function&&!r.skipFactory&&we(l)){const{propsDefaults:c}=i;if(s in c)n=c[s];else{const u=Di(i);n=c[s]=l.call(null,t),u()}}else n=l;i.ce&&i.ce._setProp(s,n)}r[0]&&(o&&!a?n=!1:r[1]&&(n===""||n===ts(s))&&(n=!0))}return n}const t4=new WeakMap;function ku(e,t,s=!1){const n=s?t4:t.propsCache,i=n.get(e);if(i)return i;const o=e.props,r={},a=[];let l=!1;if(!we(e)){const u=d=>{l=!0;const[h,p]=ku(d,t,!0);Ve(r,h),p&&a.push(...p)};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return qe(e)&&n.set(e,vi),vi;if(he(o))for(let u=0;u<o.length;u++){const d=Xe(o[u]);Uu(d)&&(r[d]=$e)}else if(o)for(const u in o){const d=Xe(u);if(Uu(d)){const h=o[u],p=r[d]=he(h)||we(h)?{type:h}:Ve({},h),_=p.type;let m=!1,b=!0;if(he(_))for(let M=0;M<_.length;++M){const C=_[M],g=we(C)&&C.name;if(g==="Boolean"){m=!0;break}else g==="String"&&(b=!1)}else m=we(_)&&_.name==="Boolean";p[0]=m,p[1]=b,(m||ze(p,"default"))&&a.push(d)}}const c=[r,a];return qe(e)&&n.set(e,c),c}function Uu(e){return e[0]!=="$"&&!en(e)}const gl=e=>e==="_"||e==="_ctx"||e==="$stable",_l=e=>he(e)?e.map(ns):[ns(e)],s4=(e,t,s)=>{if(t._n)return t;const n=gt((...i)=>_l(t(...i)),s);return n._c=!1,n},Nu=(e,t,s)=>{const n=e._ctx;for(const i in e){if(gl(i))continue;const o=e[i];if(we(o))t[i]=s4(i,o,n);else if(o!=null){const r=_l(o);t[i]=()=>r}}},Du=(e,t)=>{const s=_l(t);e.slots.default=()=>s},Pu=(e,t,s)=>{for(const n in t)(s||!gl(n))&&(e[n]=t[n])},n4=(e,t,s)=>{const n=e.slots=Lu();if(e.vnode.shapeFlag&32){const i=t._;i?(Pu(n,t,s),s&&u1(n,"_",i,!0)):Nu(t,n)}else t&&Du(e,t)},i4=(e,t,s)=>{const{vnode:n,slots:i}=e;let o=!0,r=$e;if(n.shapeFlag&32){const a=t._;a?s&&a===1?o=!1:Pu(i,t,s):(o=!t.$stable,Nu(t,i)),r=t}else t&&(Du(e,t),r={default:1});if(o)for(const a in i)!gl(a)&&r[a]==null&&delete i[a]},Mt=Ku;function Vu(e){return $u(e)}function Fu(e){return $u(e,l3)}function $u(e,t){const s=dr();s.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:r,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:p=Dt,insertStaticContent:_}=e,m=(S,w,H,Y=null,Q=null,z=null,le=void 0,oe=null,se=!!w.dynamicChildren)=>{if(S===w)return;S&&!Os(S,w)&&(Y=nt(S),Et(S,Q,z,!0),S=null),w.patchFlag===-2&&(se=!1,w.dynamicChildren=null);const{type:W,ref:fe,shapeFlag:de}=w;switch(W){case bn:b(S,w,H,Y);break;case yt:M(S,w,H,Y);break;case ei:S==null&&C(w,H,Y,le);break;case Ne:T(S,w,H,Y,Q,z,le,oe,se);break;default:de&1?v(S,w,H,Y,Q,z,le,oe,se):de&6?V(S,w,H,Y,Q,z,le,oe,se):(de&64||de&128)&&W.process(S,w,H,Y,Q,z,le,oe,se,Ht)}fe!=null&&Q?Ai(fe,S&&S.ref,z,w||S,!w):fe==null&&S&&S.ref!=null&&Ai(S.ref,null,z,S,!0)},b=(S,w,H,Y)=>{if(S==null)n(w.el=a(w.children),H,Y);else{const Q=w.el=S.el;w.children!==S.children&&c(Q,w.children)}},M=(S,w,H,Y)=>{S==null?n(w.el=l(w.children||""),H,Y):w.el=S.el},C=(S,w,H,Y)=>{[S.el,S.anchor]=_(S.children,w,H,Y,S.el,S.anchor)},g=({el:S,anchor:w},H,Y)=>{let Q;for(;S&&S!==w;)Q=h(S),n(S,H,Y),S=Q;n(w,H,Y)},E=({el:S,anchor:w})=>{let H;for(;S&&S!==w;)H=h(S),i(S),S=H;i(w)},v=(S,w,H,Y,Q,z,le,oe,se)=>{if(w.type==="svg"?le="svg":w.type==="math"&&(le="mathml"),S==null)L(w,H,Y,Q,z,le,oe,se);else{const W=S.el&&S.el._isVueCE?S.el:null;try{W&&W._beginPatch(),A(S,w,Q,z,le,oe,se)}finally{W&&W._endPatch()}}},L=(S,w,H,Y,Q,z,le,oe)=>{let se,W;const{props:fe,shapeFlag:de,transition:Se,dirs:Me}=S;if(se=S.el=r(S.type,z,fe&&fe.is,fe),de&8?u(se,S.children):de&16&&$(S.children,se,null,Y,Q,ml(S,z),le,oe),Me&&Bs(S,null,Y,"created"),k(se,S,S.scopeId,le,Y),fe){for(const Je in fe)Je!=="value"&&!en(Je)&&o(se,Je,null,fe[Je],z,Y);"value"in fe&&o(se,"value",null,fe.value,z),(W=fe.onVnodeBeforeMount)&&is(W,Y,S)}Me&&Bs(S,null,Y,"beforeMount");const Be=Hu(Q,Se);Be&&Se.beforeEnter(se),n(se,w,H),((W=fe&&fe.onVnodeMounted)||Be||Me)&&Mt(()=>{try{W&&is(W,Y,S),Be&&Se.enter(se),Me&&Bs(S,null,Y,"mounted")}finally{}},Q)},k=(S,w,H,Y,Q)=>{if(H&&p(S,H),Y)for(let z=0;z<Y.length;z++)p(S,Y[z]);if(Q){let z=Q.subTree;if(w===z||Gr(z.type)&&(z.ssContent===w||z.ssFallback===w)){const le=Q.vnode;k(S,le,le.scopeId,le.slotScopeIds,Q.parent)}}},$=(S,w,H,Y,Q,z,le,oe,se=0)=>{for(let W=se;W<S.length;W++){const fe=S[W]=oe?hn(S[W]):ns(S[W]);m(null,fe,w,H,Y,Q,z,le,oe)}},A=(S,w,H,Y,Q,z,le)=>{const oe=w.el=S.el;let{patchFlag:se,dynamicChildren:W,dirs:fe}=w;se|=S.patchFlag&16;const de=S.props||$e,Se=w.props||$e;let Me;if(H&&Xn(H,!1),(Me=Se.onVnodeBeforeUpdate)&&is(Me,H,w,S),fe&&Bs(w,S,H,"beforeUpdate"),H&&Xn(H,!0),(de.innerHTML&&Se.innerHTML==null||de.textContent&&Se.textContent==null)&&u(oe,""),W?U(S.dynamicChildren,W,oe,H,Y,ml(w,Q),z):le||F(S,w,oe,null,H,Y,ml(w,Q),z,!1),se>0){if(se&16)O(oe,de,Se,H,Q);else if(se&2&&de.class!==Se.class&&o(oe,"class",null,Se.class,Q),se&4&&o(oe,"style",de.style,Se.style,Q),se&8){const Be=w.dynamicProps;for(let Je=0;Je<Be.length;Je++){const We=Be[Je],ht=de[We],Tt=Se[We];(Tt!==ht||We==="value")&&o(oe,We,ht,Tt,Q,H)}}se&1&&S.children!==w.children&&u(oe,w.children)}else!le&&W==null&&O(oe,de,Se,H,Q);((Me=Se.onVnodeUpdated)||fe)&&Mt(()=>{Me&&is(Me,H,w,S),fe&&Bs(w,S,H,"updated")},Y)},U=(S,w,H,Y,Q,z,le)=>{for(let oe=0;oe<w.length;oe++){const se=S[oe],W=w[oe],fe=se.el&&(se.type===Ne||!Os(se,W)||se.shapeFlag&198)?d(se.el):H;m(se,W,fe,null,Y,Q,z,le,!0)}},O=(S,w,H,Y,Q)=>{if(w!==H){if(w!==$e)for(const z in w)!en(z)&&!(z in H)&&o(S,z,w[z],null,Q,Y);for(const z in H){if(en(z))continue;const le=H[z],oe=w[z];le!==oe&&z!=="value"&&o(S,z,oe,le,Q,Y)}"value"in H&&o(S,"value",w.value,H.value,Q)}},T=(S,w,H,Y,Q,z,le,oe,se)=>{const W=w.el=S?S.el:a(""),fe=w.anchor=S?S.anchor:a("");let{patchFlag:de,dynamicChildren:Se,slotScopeIds:Me}=w;Me&&(oe=oe?oe.concat(Me):Me),S==null?(n(W,H,Y),n(fe,H,Y),$(w.children||[],H,fe,Q,z,le,oe,se)):de>0&&de&64&&Se&&S.dynamicChildren&&S.dynamicChildren.length===Se.length?(U(S.dynamicChildren,Se,H,Q,z,le,oe),(w.key!=null||Q&&w===Q.subTree)&&El(S,w,!0)):F(S,w,H,fe,Q,z,le,oe,se)},V=(S,w,H,Y,Q,z,le,oe,se)=>{w.slotScopeIds=oe,S==null?w.shapeFlag&512?Q.ctx.activate(w,H,Y,le,se):K(w,H,Y,Q,z,le,se):X(S,w,se)},K=(S,w,H,Y,Q,z,le)=>{const oe=S.component=Ju(S,Y,Q);if(_o(S)&&(oe.ctx.renderer=Ht),ed(oe,!1,le),oe.asyncDep){if(Q&&Q.registerDep(oe,te,le),!S.el){const se=oe.subTree=Ie(yt);M(null,se,w,H),S.placeholder=se.el}}else te(oe,S,w,H,Q,z,le)},X=(S,w,H)=>{const Y=w.component=S.component;if(J3(S,w,H))if(Y.asyncDep&&!Y.asyncResolved){ie(Y,w,H);return}else Y.next=w,Y.update();else w.el=S.el,Y.vnode=w},te=(S,w,H,Y,Q,z,le)=>{const oe=()=>{if(S.isMounted){let{next:de,bu:Se,u:Me,parent:Be,vnode:Je}=S;{const Gt=Gu(S);if(Gt){de&&(de.el=Je.el,ie(S,de,le)),Gt.asyncDep.then(()=>{Mt(()=>{S.isUnmounted||W()},Q)});return}}let We=de,ht;Xn(S,!1),de?(de.el=Je.el,ie(S,de,le)):de=Je,Se&&Ii(Se),(ht=de.props&&de.props.onVnodeBeforeUpdate)&&is(ht,Be,de,Je),Xn(S,!0);const Tt=Fr(S),ps=S.subTree;S.subTree=Tt,m(ps,Tt,d(ps.el),nt(ps),S,Q,z),de.el=Tt.el,We===null&&$r(S,Tt.el),Me&&Mt(Me,Q),(ht=de.props&&de.props.onVnodeUpdated)&&Mt(()=>is(ht,Be,de,Je),Q)}else{let de;const{el:Se,props:Me}=w,{bm:Be,m:Je,parent:We,root:ht,type:Tt}=S,ps=cn(w);if(Xn(S,!1),Be&&Ii(Be),!ps&&(de=Me&&Me.onVnodeBeforeMount)&&is(de,We,w),Xn(S,!0),Se&&Ws){const Gt=()=>{S.subTree=Fr(S),Ws(Se,S.subTree,S,Q,null)};ps&&Tt.__asyncHydrate?Tt.__asyncHydrate(Se,S,Gt):Gt()}else{ht.ce&&ht.ce._hasShadowRoot()&&ht.ce._injectChildStyle(Tt,S.parent?S.parent.type:void 0);const Gt=S.subTree=Fr(S);m(null,Gt,H,Y,S,Q,z),w.el=Gt.el}if(Je&&Mt(Je,Q),!ps&&(de=Me&&Me.onVnodeMounted)){const Gt=w;Mt(()=>is(de,We,Gt),Q)}(w.shapeFlag&256||We&&cn(We.vnode)&&We.vnode.shapeFlag&256)&&S.a&&Mt(S.a,Q),S.isMounted=!0,w=H=Y=null}};S.scope.on();const se=S.effect=new to(oe);S.scope.off();const W=S.update=se.run.bind(se),fe=S.job=se.runIfDirty.bind(se);fe.i=S,fe.id=S.uid,se.scheduler=()=>Wa(fe),Xn(S,!0),W()},ie=(S,w,H)=>{w.component=S;const Y=S.vnode.props;S.vnode=w,S.next=null,e4(S,w.props,Y,H),i4(S,w.children,H),Vs(),j1(S),Fs()},F=(S,w,H,Y,Q,z,le,oe,se=!1)=>{const W=S&&S.children,fe=S?S.shapeFlag:0,de=w.children,{patchFlag:Se,shapeFlag:Me}=w;if(Se>0){if(Se&128){Lt(W,de,H,Y,Q,z,le,oe,se);return}else if(Se&256){Oe(W,de,H,Y,Q,z,le,oe,se);return}}Me&8?(fe&16&&et(W,Q,z),de!==W&&u(H,de)):fe&16?Me&16?Lt(W,de,H,Y,Q,z,le,oe,se):et(W,Q,z,!0):(fe&8&&u(H,""),Me&16&&$(de,H,Y,Q,z,le,oe,se))},Oe=(S,w,H,Y,Q,z,le,oe,se)=>{S=S||vi,w=w||vi;const W=S.length,fe=w.length,de=Math.min(W,fe);let Se;for(Se=0;Se<de;Se++){const Me=w[Se]=se?hn(w[Se]):ns(w[Se]);m(S[Se],Me,H,null,Q,z,le,oe,se)}W>fe?et(S,Q,z,!0,!1,de):$(w,H,Y,Q,z,le,oe,se,de)},Lt=(S,w,H,Y,Q,z,le,oe,se)=>{let W=0;const fe=w.length;let de=S.length-1,Se=fe-1;for(;W<=de&&W<=Se;){const Me=S[W],Be=w[W]=se?hn(w[W]):ns(w[W]);if(Os(Me,Be))m(Me,Be,H,null,Q,z,le,oe,se);else break;W++}for(;W<=de&&W<=Se;){const Me=S[de],Be=w[Se]=se?hn(w[Se]):ns(w[Se]);if(Os(Me,Be))m(Me,Be,H,null,Q,z,le,oe,se);else break;de--,Se--}if(W>de){if(W<=Se){const Me=Se+1,Be=Me<fe?w[Me].el:Y;for(;W<=Se;)m(null,w[W]=se?hn(w[W]):ns(w[W]),H,Be,Q,z,le,oe,se),W++}}else if(W>Se)for(;W<=de;)Et(S[W],Q,z,!0),W++;else{const Me=W,Be=W,Je=new Map;for(W=Be;W<=Se;W++){const It=w[W]=se?hn(w[W]):ns(w[W]);It.key!=null&&Je.set(It.key,W)}let We,ht=0;const Tt=Se-Be+1;let ps=!1,Gt=0;const Vn=new Array(Tt);for(W=0;W<Tt;W++)Vn[W]=0;for(W=Me;W<=de;W++){const It=S[W];if(ht>=Tt){Et(It,Q,z,!0);continue}let dt;if(It.key!=null)dt=Je.get(It.key);else for(We=Be;We<=Se;We++)if(Vn[We-Be]===0&&Os(It,w[We])){dt=We;break}dt===void 0?Et(It,Q,z,!0):(Vn[dt-Be]=W+1,dt>=Gt?Gt=dt:ps=!0,m(It,w[dt],H,null,Q,z,le,oe,se),ht++)}const Zs=ps?o4(Vn):vi;for(We=Zs.length-1,W=Tt-1;W>=0;W--){const It=Be+W,dt=w[It],Cn=w[It+1],Wi=It+1<fe?Cn.el||Bu(Cn):Y;Vn[W]===0?m(null,dt,H,Wi,Q,z,le,oe,se):ps&&(We<0||W!==Zs[We]?Ye(dt,H,Wi,2):We--)}}},Ye=(S,w,H,Y,Q=null)=>{const{el:z,type:le,transition:oe,children:se,shapeFlag:W}=S;if(W&6){Ye(S.component.subTree,w,H,Y);return}if(W&128){S.suspense.move(w,H,Y);return}if(W&64){le.move(S,w,H,Ht);return}if(le===Ne){n(z,w,H);for(let de=0;de<se.length;de++)Ye(se[de],w,H,Y);n(S.anchor,w,H);return}if(le===ei){g(S,w,H);return}if(Y!==2&&W&1&&oe)if(Y===0)oe.persisted&&!z[Es]?n(z,w,H):(oe.beforeEnter(z),n(z,w,H),Mt(()=>oe.enter(z),Q));else{const{leave:de,delayLeave:Se,afterLeave:Me}=oe,Be=()=>{S.ctx.isUnmounted?i(z):n(z,w,H)},Je=()=>{const We=z._isLeaving||!!z[Es];z._isLeaving&&z[Es](!0),oe.persisted&&!We?Be():de(z,()=>{Be(),Me&&Me()})};Se?Se(z,Be,Je):Je()}else n(z,w,H)},Et=(S,w,H,Y=!1,Q=!1)=>{const{type:z,props:le,ref:oe,children:se,dynamicChildren:W,shapeFlag:fe,patchFlag:de,dirs:Se,cacheIndex:Me,memo:Be}=S;if(de===-2&&(Q=!1),oe!=null&&(Vs(),Ai(oe,null,H,S,!0),Fs()),Me!=null&&(w.renderCache[Me]=void 0),fe&256){w.ctx.deactivate(S);return}const Je=fe&1&&Se,We=!cn(S);let ht;if(We&&(ht=le&&le.onVnodeBeforeUnmount)&&is(ht,w,S),fe&6)_e(S.component,H,Y);else{if(fe&128){S.suspense.unmount(H,Y);return}Je&&Bs(S,null,w,"beforeUnmount"),fe&64?S.type.remove(S,w,H,Ht,Y):W&&!W.hasOnce&&(z!==Ne||de>0&&de&64)?et(W,w,H,!1,!0):(z===Ne&&de&384||!Q&&fe&16)&&et(se,w,H),Y&&ks(S)}const Tt=Be!=null&&Me==null;(We&&(ht=le&&le.onVnodeUnmounted)||Je||Tt)&&Mt(()=>{ht&&is(ht,w,S),Je&&Bs(S,null,w,"unmounted"),Tt&&(S.el=null)},H)},ks=S=>{const{type:w,el:H,anchor:Y,transition:Q}=S;if(w===Ne){ce(H,Y);return}if(w===ei){E(S);return}const z=()=>{i(H),Q&&!Q.persisted&&Q.afterLeave&&Q.afterLeave()};if(S.shapeFlag&1&&Q&&!Q.persisted){const{leave:le,delayLeave:oe}=Q,se=()=>le(H,z);oe?oe(S.el,z,se):se()}else z()},ce=(S,w)=>{let H;for(;S!==w;)H=h(S),i(S),S=H;i(w)},_e=(S,w,H)=>{const{bum:Y,scope:Q,job:z,subTree:le,um:oe,m:se,a:W}=S;Hr(se),Hr(W),Y&&Ii(Y),Q.stop(),z&&(z.flags|=8,Et(le,S,w,H)),oe&&Mt(oe,w),Mt(()=>{S.isUnmounted=!0},w)},et=(S,w,H,Y=!1,Q=!1,z=0)=>{for(let le=z;le<S.length;le++)Et(S[le],w,H,Y,Q)},nt=S=>{if(S.shapeFlag&6)return nt(S.component.subTree);if(S.shapeFlag&128)return S.suspense.next();const w=h(S.anchor||S.el),H=w&&w[Y1];return H?h(H):w};let as=!1;const tt=(S,w,H)=>{let Y;S==null?w._vnode&&(Et(w._vnode,null,null,!0),Y=w._vnode.component):m(w._vnode||null,S,w,null,null,null,H),w._vnode=S,as||(as=!0,j1(Y),Tr(),as=!1)},Ht={p:m,um:Et,m:Ye,r:ks,mt:K,mc:$,pc:F,pbc:U,n:nt,o:e};let Qi,Ws;return t&&([Qi,Ws]=t(Ht)),{render:tt,hydrate:Qi,createApp:q3(tt,Qi)}}function ml({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Xn({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Hu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function El(e,t,s=!1){const n=e.children,i=t.children;if(he(n)&&he(i))for(let o=0;o<n.length;o++){const r=n[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=hn(i[o]),a.el=r.el),!s&&a.patchFlag!==-2&&El(r,a)),a.type===bn&&(a.patchFlag===-1&&(a=i[o]=hn(a)),a.el=r.el),a.type===yt&&!a.el&&(a.el=r.el)}}function o4(e){const t=e.slice(),s=[0];let n,i,o,r,a;const l=e.length;for(n=0;n<l;n++){const c=e[n];if(c!==0){if(i=s[s.length-1],e[i]<c){t[n]=i,s.push(n);continue}for(o=0,r=s.length-1;o<r;)a=o+r>>1,e[s[a]]<c?o=a+1:r=a;c<e[s[o]]&&(o>0&&(t[n]=s[o-1]),s[o]=n)}}for(o=s.length,r=s[o-1];o-- >0;)s[o]=r,r=t[r];return s}function Gu(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Gu(t)}function Hr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Bu(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Bu(t.subTree):null}const Gr=e=>e.__isSuspense;let vl=0;const r4={name:"Suspense",__isSuspense:!0,process(e,t,s,n,i,o,r,a,l,c){if(e==null)a4(t,s,n,i,o,r,a,l,c);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}l4(e,t,s,n,i,r,a,l,c)}},hydrate:c4,normalize:u4};function yo(e,t){const s=e.props&&e.props[t];we(s)&&s()}function a4(e,t,s,n,i,o,r,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),h=e.suspense=ju(e,i,n,t,d,s,o,r,a,l);c(null,h.pendingBranch=e.ssContent,d,null,n,h,o,r),h.deps>0?(yo(e,"onPending"),yo(e,"onFallback"),c(null,e.ssFallback,t,s,n,null,o,r),Ui(h,e.ssFallback)):h.resolve(!1,!0)}function l4(e,t,s,n,i,o,r,a,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const h=t.ssContent,p=t.ssFallback,{activeBranch:_,pendingBranch:m,isInFallback:b,isHydrating:M}=d;if(m)d.pendingBranch=h,Os(m,h)?(l(m,h,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0?d.resolve():b&&(M||(l(_,p,s,n,i,null,o,r,a),Ui(d,p)))):(d.pendingId=vl++,M?(d.isHydrating=!1,d.activeBranch=m):c(m,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),b?(l(null,h,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0?d.resolve():(l(_,p,s,n,i,null,o,r,a),Ui(d,p))):_&&Os(_,h)?(l(_,h,s,n,i,d,o,r,a),d.resolve(!0)):(l(null,h,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0&&d.resolve()));else if(_&&Os(_,h))l(_,h,s,n,i,d,o,r,a),Ui(d,h);else if(yo(t,"onPending"),d.pendingBranch=h,h.shapeFlag&512?d.pendingId=h.component.suspenseId:d.pendingId=vl++,l(null,h,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0)d.resolve();else{const{timeout:C,pendingId:g}=d;C>0?setTimeout(()=>{d.pendingId===g&&d.fallback(p)},C):C===0&&d.fallback(p)}}function ju(e,t,s,n,i,o,r,a,l,c,u=!1){const{p:d,m:h,um:p,n:_,o:{parentNode:m,remove:b}}=c;let M;const C=d4(e);C&&t&&t.pendingBranch&&(M=t.pendingId,t.deps++);const g=e.props?ur(e.props.timeout):void 0,E=o,v={vnode:e,parent:t,parentComponent:s,namespace:r,container:n,hiddenContainer:i,deps:0,pendingId:vl++,timeout:typeof g=="number"?g:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(L=!1,k=!1){const{vnode:$,activeBranch:A,pendingBranch:U,pendingId:O,effects:T,parentComponent:V,container:K,isInFallback:X}=v;let te=!1;if(v.isHydrating)v.isHydrating=!1;else if(!L){te=A&&U.transition&&U.transition.mode==="out-in";let Oe=!1;te&&(A.transition.afterLeave=()=>{O===v.pendingId&&(h(U,K,o===E&&!Oe?_(A):o,0),co(T),X&&$.ssFallback&&($.ssFallback.el=null))}),A&&!v.isFallbackMountPending&&(m(A.el)===K&&(o=_(A),Oe=!0),p(A,V,v,!0),!te&&X&&$.ssFallback&&Mt(()=>$.ssFallback.el=null,v)),te||h(U,K,o,0)}v.isFallbackMountPending=!1,Ui(v,U),v.pendingBranch=null,v.isInFallback=!1;let ie=v.parent,F=!1;for(;ie;){if(ie.pendingBranch){ie.effects.push(...T),F=!0;break}ie=ie.parent}!F&&!te&&co(T),v.effects=[],C&&t&&t.pendingBranch&&M===t.pendingId&&(t.deps--,t.deps===0&&!k&&t.resolve()),yo($,"onResolve")},fallback(L){if(!v.pendingBranch)return;const{vnode:k,activeBranch:$,parentComponent:A,container:U,namespace:O}=v;yo(k,"onFallback");const T=_($),V=()=>{v.isFallbackMountPending=!1,v.isInFallback&&(d(null,L,U,T,A,null,O,a,l),Ui(v,L))},K=L.transition&&L.transition.mode==="out-in";K&&(v.isFallbackMountPending=!0,$.transition.afterLeave=V),v.isInFallback=!0,p($,A,null,!0),K||V()},move(L,k,$){v.activeBranch&&h(v.activeBranch,L,k,$),v.container=L},next(){return v.activeBranch&&_(v.activeBranch)},registerDep(L,k,$){const A=!!v.pendingBranch;A&&v.deps++;const U=L.vnode.el;L.asyncDep.catch(O=>{Wn(O,L,0)}).then(O=>{if(L.isUnmounted||v.isUnmounted||v.pendingId!==L.suspenseId)return;Ro(),L.asyncResolved=!0;const{vnode:T}=L;yl(L,O,!1),U&&(T.el=U);const V=!U&&L.subTree.el;k(L,T,m(U||L.subTree.el),U?null:_(L.subTree),v,r,$),V&&(T.placeholder=null,b(V)),$r(L,T.el),A&&--v.deps===0&&v.resolve()})},unmount(L,k){v.isUnmounted=!0,v.activeBranch&&p(v.activeBranch,s,L,k),v.pendingBranch&&p(v.pendingBranch,s,L,k)}};return v}function c4(e,t,s,n,i,o,r,a,l){const c=t.suspense=ju(t,n,s,e.parentNode,document.createElement("div"),null,i,o,r,a,!0),u=l(e,c.pendingBranch=t.ssContent,s,c,o,r);return c.deps===0&&c.resolve(!1,!0),u}function u4(e){const{shapeFlag:t,children:s}=e,n=t&32;e.ssContent=qu(n?s.default:s),e.ssFallback=n?qu(s.fallback):Ie(yt)}function qu(e){let t;if(we(e)){const s=ti&&e._c;s&&(e._d=!1,R()),e=e(),s&&(e._d=!0,t=qt,zu())}return he(e)&&(e=W3(e)),e=ns(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function Ku(e,t){t&&t.pendingBranch?he(e)?t.effects.push(...e):t.effects.push(e):co(e)}function Ui(e,t){e.activeBranch=t;const{vnode:s,parentComponent:n}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;s.el=i,n&&n.subTree===s&&(n.vnode.el=i,$r(n,i))}function d4(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ne=Symbol.for("v-fgt"),bn=Symbol.for("v-txt"),yt=Symbol.for("v-cmt"),ei=Symbol.for("v-stc"),So=[];let qt=null;function R(e=!1){So.push(qt=e?null:[])}function zu(){So.pop(),qt=So[So.length-1]||null}let ti=1;function To(e,t=!1){ti+=e,e<0&&qt&&t&&(qt.hasOnce=!0)}function Qu(e){return e.dynamicChildren=ti>0?qt||vi:null,zu(),ti>0&&qt&&qt.push(e),e}function P(e,t,s,n,i,o){return Qu(y(e,t,s,n,i,o,!0))}function xe(e,t,s,n,i){return Qu(Ie(e,t,s,n,i,!0))}function fn(e){return e?e.__v_isVNode===!0:!1}function Os(e,t){return e.type===t.type&&e.key===t.key}function f4(e){}const Wu=({key:e})=>e??null,Br=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Le(e)||pt(e)||we(e)?{i:Vt,r:e,k:t,f:!!s}:e:null);function y(e,t=null,s=null,n=0,i=null,o=e===Ne?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wu(t),ref:t&&Br(t),scopeId:Rr,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Vt};return a?(Cl(l,s),o&128&&e.normalize(l)):s&&(l.shapeFlag|=Le(s)?8:16),ti>0&&!r&&qt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&qt.push(l),l}const Ie=h4;function h4(e,t=null,s=null,n=0,i=null,o=!1){if((!e||e===mu)&&(e=yt),fn(e)){const a=js(e,t,!0);return s&&Cl(a,s),ti>0&&!o&&qt&&(a.shapeFlag&6?qt[qt.indexOf(e)]=a:qt.push(a)),a.patchFlag=-2,a}if(y4(e)&&(e=e.__vccOpts),t){t=Zu(t);let{class:a,style:l}=t;a&&!Le(a)&&(t.class=Fe(a)),qe(l)&&(lo(l)&&!he(l)&&(l=Ve({},l)),t.style=rt(l))}const r=Le(e)?1:Gr(e)?128:J1(e)?64:qe(e)?4:we(e)?2:0;return y(e,t,s,n,i,r,o,!0)}function Zu(e){return e?lo(e)||Au(e)?Ve({},e):e:null}function js(e,t,s=!1,n=!1){const{props:i,ref:o,patchFlag:r,children:a,transition:l}=e,c=t?Yu(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Wu(c),ref:t&&t.ref?s&&o?he(o)?o.concat(Br(t)):[o,Br(t)]:Br(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ne?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&js(e.ssContent),ssFallback:e.ssFallback&&js(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&ln(u,l.clone(u)),u}function Io(e=" ",t=0){return Ie(bn,null,e,t)}function jr(e,t){const s=Ie(ei,null,e);return s.staticCount=t,s}function ue(e="",t=!1){return t?(R(),xe(yt,null,e)):Ie(yt,null,e)}function ns(e){return e==null||typeof e=="boolean"?Ie(yt):he(e)?Ie(Ne,null,e.slice()):fn(e)?hn(e):Ie(bn,null,String(e))}function hn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:js(e)}function Cl(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(he(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Cl(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!Au(t)?t._ctx=Vt:i===3&&Vt&&(Vt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else we(t)?(t={default:t,_ctx:Vt},s=32):(t=String(t),n&64?(s=16,t=[Io(t)]):s=8);e.children=t,e.shapeFlag|=s}function Yu(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=Fe([t.class,n.class]));else if(i==="style")t.style=rt([t.style,n.style]);else if(Bn(i)){const o=t[i],r=n[i];r&&o!==r&&!(he(o)&&o.includes(r))?t[i]=o?[].concat(o,r):r:r==null&&o==null&&!or(i)&&(t[i]=r)}else i!==""&&(t[i]=n[i])}return t}function is(e,t,s,n=null){cs(e,t,7,[s,n])}const p4=Iu();let g4=0;function Ju(e,t,s){const n=e.type,i=(t?t.appContext:e.appContext)||p4,o={uid:g4++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Pa(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ku(n,i),emitsOptions:wu(n,i),emit:null,emitted:null,propsDefaults:$e,inheritAttrs:n.inheritAttrs,ctx:$e,data:$e,props:$e,attrs:$e,slots:$e,refs:$e,setupState:$e,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=z3.bind(null,o),e.ce&&e.ce(o),o}let Ft=null;const es=()=>Ft||Vt;let qr,Ni;{const e=dr(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};qr=t("__VUE_INSTANCE_SETTERS__",s=>Ft=s),Ni=t("__VUE_SSR_SETTERS__",s=>si=s)}const Di=e=>{const t=Ft;return qr(e),e.scope.on(),()=>{e.scope.off(),qr(t)}},Ro=()=>{Ft&&Ft.scope.off(),qr(null)};function Xu(e){return e.vnode.shapeFlag&4}let si=!1;function ed(e,t=!1,s=!1){t&&Ni(t);const{props:n,children:i}=e.vnode,o=Xu(e);X3(e,n,o,t),n4(e,i,s||t);const r=o?_4(e,t):void 0;return t&&Ni(!1),r}function _4(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ul);const{setup:n}=s;if(n){Vs();const i=e.setupContext=n.length>1?nd(e):null,o=Di(e),r=Qn(n,e,0,[e.props,i]),a=Na(r);if(Fs(),o(),(a||e.sp)&&!cn(e)&&tl(e),a){if(r.then(Ro,Ro),t)return r.then(l=>{yl(e,l,t)}).catch(l=>{Wn(l,e,0)});e.asyncDep=r}else yl(e,r,t)}else sd(e,t)}function yl(e,t,s){we(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:qe(t)&&(e.setupState=za(t)),sd(e,s)}let Kr,Sl;function td(e){Kr=e,Sl=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,R3))}}const m4=()=>!Kr;function sd(e,t,s){const n=e.type;if(!e.render){if(!t&&Kr&&!n.render){const i=n.template||fl(e).template;if(i){const{isCustomElement:o,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:l}=n,c=Ve(Ve({isCustomElement:o,delimiters:a},r),l);n.render=Kr(i,c)}}e.render=n.render||Dt,Sl&&Sl(e)}{const i=Di(e);Vs();try{F3(e)}finally{Fs(),i()}}}const E4={get(e,t){return jt(e,"get",""),e[t]}};function nd(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,E4),slots:e.slots,emit:e.emit,expose:t}}function wo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(za(N1(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Eo)return Eo[s](e)},has(t,s){return s in t||s in Eo}})):e.proxy}const v4=/(?:^|[-_])\w/g,C4=e=>e.replace(v4,t=>t.toUpperCase()).replace(/[-_]/g,"");function zr(e,t=!0){return we(e)?e.displayName||e.name:e.name||t&&e.__name}function id(e,t,s=!1){let n=zr(t);if(!n&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(n=i[1])}if(!n&&e){const i=o=>{for(const r in o)if(o[r]===t)return r};n=i(e.components)||e.parent&&i(e.parent.type.components)||i(e.appContext.components)}return n?C4(n):s?"App":"Anonymous"}function y4(e){return we(e)&&"__vccOpts"in e}const me=(e,t)=>L5(e,t,si);function od(e,t,s){try{To(-1);const n=arguments.length;return n===2?qe(t)&&!he(t)?fn(t)?Ie(e,null,[t]):Ie(e,t):Ie(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&fn(s)&&(s=[s]),Ie(e,t,s))}finally{To(1)}}function S4(){}function T4(e,t,s,n){const i=s[n];if(i&&rd(i,e))return i;const o=t();return o.memo=e.slice(),o.cacheIndex=n,s[n]=o}function rd(e,t){const s=e.memo;if(s.length!=t.length)return!1;for(let n=0;n<s.length;n++)if(Pt(s[n],t[n]))return!1;return ti>0&&qt&&qt.push(e),!0}const ad="3.5.35",I4=Dt,R4=B5,w4=bi,M4=K1,O4={createComponentInstance:Ju,setupComponent:ed,renderComponentRoot:Fr,setCurrentRenderingInstance:fo,isVNode:fn,normalizeVNode:ns,getComponentPublicInstance:wo,ensureValidVNode:al,pushWarningContext:N5,popWarningContext:D5},b4=null,L4=null,A4=null;/**
|
|
304
|
-
* @vue/runtime-dom v3.5.
|
|
305
|
+
`,...s3(i)),console.warn(...o)}js(),sl=!1}function t3(){let e=Wn[Wn.length-1];if(!e)return[];const t=[];for(;e;){const s=t[0];s&&s.vnode===e?s.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function s3(e){const t=[];return e.forEach((s,n)=>{t.push(...n===0?[]:[`
|
|
306
|
+
`],...n3(s))}),t}function n3({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,i=` at <${gd(e.component,e.type,n)}`,o=">"+s;return e.props?[i,...i3(e.props),o]:[i+o]}function i3(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(n=>{t.push(...Y1(n,e[n]))}),s.length>3&&t.push(" ..."),t}function Y1(e,t,s){return Ue(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:_t(t)?(t=Y1(e,Be(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):Oe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Be(t),s?t:[`${e}=`,t])}function o3(e,t){}const r3={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},a3={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Zn(e,t,s,n){try{return n?e(...n):e()}catch(i){Yn(i,t,s)}}function ys(e,t,s,n){if(Oe(e)){const i=Zn(e,t,s,n);return i&&Ba(i)&&i.catch(o=>{Yn(o,t,s)}),i}if(pe(e)){const i=[];for(let o=0;o<e.length;o++)i.push(ys(e[o],t,s,n));return i}}function Yn(e,t,s,n=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||Ge;if(t){let a=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const u=a.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,l,c)===!1)return}a=a.parent}if(o){Bs(),Zn(o,null,10,[e,l,c]),js();return}}l3(e,s,i,n,r)}function l3(e,t,s,n=!0,i=!1){if(i)throw e;console.error(e)}const Jt=[];let Ks=-1;const xi=[];let Mn=null,ki=0;const X1=Promise.resolve();let Sr=null;function tt(e){const t=Sr||X1;return e?t.then(this?e.bind(this):e):t}function c3(e){let t=Ks+1,s=Jt.length;for(;t<s;){const n=t+s>>>1,i=Jt[n],o=Eo(i);o<e||o===e&&i.flags&2?t=n+1:s=n}return t}function nl(e){if(!(e.flags&1)){const t=Eo(e),s=Jt[Jt.length-1];!s||!(e.flags&2)&&t>=Eo(s)?Jt.push(e):Jt.splice(c3(t),0,e),e.flags|=1,J1()}}function J1(){Sr||(Sr=X1.then(tu))}function mo(e){pe(e)?xi.push(...e):Mn&&e.id===-1?Mn.splice(ki+1,0,e):e.flags&1||(xi.push(e),e.flags|=1),J1()}function eu(e,t,s=Ks+1){for(;s<Jt.length;s++){const n=Jt[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;Jt.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Tr(e){if(xi.length){const t=[...new Set(xi)].sort((s,n)=>Eo(s)-Eo(n));if(xi.length=0,Mn){Mn.push(...t);return}for(Mn=t,ki=0;ki<Mn.length;ki++){const s=Mn[ki];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Mn=null,ki=0}}const Eo=e=>e.id==null?e.flags&2?-1:1/0:e.id;function tu(e){const t=kt;try{for(Ks=0;Ks<Jt.length;Ks++){const s=Jt[Ks];s&&!(s.flags&8)&&(s.flags&4&&(s.flags&=-2),Zn(s,s.i,s.i?15:14),s.flags&4||(s.flags&=-2))}}finally{for(;Ks<Jt.length;Ks++){const s=Jt[Ks];s&&(s.flags&=-2)}Ks=-1,Jt.length=0,Tr(),Sr=null,(Jt.length||xi.length)&&tu()}}let Ui,Ir=[];function su(e,t){var s,n;Ui=e,Ui?(Ui.enabled=!0,Ir.forEach(({event:i,args:o})=>Ui.emit(i,...o)),Ir=[]):typeof window<"u"&&window.HTMLElement&&!((n=(s=window.navigator)==null?void 0:s.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{su(o,t)}),setTimeout(()=>{Ui||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Ir=[])},3e3)):Ir=[]}let Ut=null,wr=null;function vo(e){const t=Ut;return Ut=e,wr=e&&e.type.__scopeId||null,t}function u3(e){wr=e}function d3(){wr=null}const f3=e=>ht;function ht(e,t=Ut,s){if(!t||e._n)return e;const n=(...i)=>{n._d&&Lo(-1);const o=vo(t);let r;try{r=e(...i)}finally{vo(o),n._d&&Lo(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function Ss(e,t){if(Ut===null)return e;const s=Ao(Ut),n=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,r,a,l=Ge]=t[i];o&&(Oe(o)&&(o={mounted:o,updated:o}),o.deep&&ln(r),n.push({dir:o,instance:s,value:r,oldValue:void 0,arg:a,modifiers:l}))}return e}function zs(e,t,s,n){const i=e.dirs,o=t&&t.dirs;for(let r=0;r<i.length;r++){const a=i[r];o&&(a.oldValue=o[r].value);let l=a.dir[n];l&&(Bs(),ys(l,s,8,[e.el,a,e,t]),js())}}function Rr(e,t){if(Nt){let s=Nt.provides;const n=Nt.parent&&Nt.parent.provides;n===s&&(s=Nt.provides=Object.create(n)),s[e]=t}}function Co(e,t,s=!1){const n=ls();if(n||Xn){let i=Xn?Xn._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return s&&Oe(t)?t.call(n&&n.proxy):t}}function h3(){return!!(ls()||Xn)}const nu=Symbol.for("v-scx"),iu=()=>Co(nu);function p3(e,t){return yo(e,null,t)}function g3(e,t){return yo(e,null,{flush:"post"})}function ou(e,t){return yo(e,null,{flush:"sync"})}function qt(e,t,s){return yo(e,t,s)}function yo(e,t,s=Ge){const{immediate:n,deep:i,flush:o,once:r}=s,a=$e({},s),l=t&&n||!t&&o!=="post";let c;if(Hi){if(o==="sync"){const p=iu();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=kt,p.resume=kt,p.pause=kt,p}}const u=Nt;a.call=(p,m,v)=>ys(p,u,m,v);let d=!1;o==="post"?a.scheduler=p=>{wt(p,u&&u.suspense)}:o!=="sync"&&(d=!0,a.scheduler=(p,m)=>{m?p():nl(p)}),a.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const h=X5(e,t,a);return Hi&&(c?c.push(h):l&&h()),h}function _3(e,t,s){const n=this.proxy,i=Ue(e)?e.includes(".")?ru(n,e):()=>n[e]:e.bind(n,n);let o;Oe(t)?o=t:(o=t.handler,s=t);const r=si(this),a=yo(i,o.bind(n),s);return r(),a}function ru(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;i<s.length&&n;i++)n=n[s[i]];return n}}const au=Symbol("_vte"),lu=e=>e.__isTeleport,So=e=>e&&(e.disabled||e.disabled===""),cu=e=>e&&(e.defer||e.defer===""),uu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,du=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,il=(e,t)=>{const s=e&&e.to;return Ue(s)?t?t(s):null:s},fu={name:"Teleport",__isTeleport:!0,process(e,t,s,n,i,o,r,a,l,c){const{mc:u,pc:d,pbc:h,o:{insert:p,querySelector:m,createText:v,createComment:O}}=c,w=So(t.props);let{shapeFlag:C,children:g,dynamicChildren:_}=t;if(e==null){const E=t.el=v(""),L=t.anchor=v("");p(E,s,n),p(L,s,n);const P=(x,$)=>{C&16&&u(g,x,$,i,o,r,a,l)},F=()=>{const x=t.target=il(t.props,m),$=hu(x,t,v,p);x&&(r!=="svg"&&uu(x)?r="svg":r!=="mathml"&&du(x)&&(r="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(x),w||(P(x,$),Or(t,!1)))};w&&(P(s,L),Or(t,!0)),cu(t.props)?(t.el.__isMounted=!1,wt(()=>{F(),delete t.el.__isMounted},o)):F()}else{if(cu(t.props)&&e.el.__isMounted===!1){wt(()=>{fu.process(e,t,s,n,i,o,r,a,l,c)},o);return}t.el=e.el,t.targetStart=e.targetStart;const E=t.anchor=e.anchor,L=t.target=e.target,P=t.targetAnchor=e.targetAnchor,F=So(e.props),x=F?s:L,$=F?E:P;if(r==="svg"||uu(L)?r="svg":(r==="mathml"||du(L))&&(r="mathml"),_?(h(e.dynamicChildren,_,x,i,o,r,a),wl(e,t,!0)):l||d(e,t,x,$,i,o,r,a,!1),w)F?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Mr(t,s,E,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const b=t.target=il(t.props,m);b&&Mr(t,b,null,c,0)}else F&&Mr(t,L,P,c,1);Or(t,w)}},remove(e,t,s,{um:n,o:{remove:i}},o){const{shapeFlag:r,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:h}=e;if(d&&(i(c),i(u)),o&&i(l),r&16){const p=o||!So(h);for(let m=0;m<a.length;m++){const v=a[m];n(v,t,s,p,!!v.dynamicChildren)}}},move:Mr,hydrate:m3};function Mr(e,t,s,{o:{insert:n},m:i},o=2){o===0&&n(e.targetAnchor,t,s);const{el:r,anchor:a,shapeFlag:l,children:c,props:u}=e,d=o===2;if(d&&n(r,t,s),(!d||So(u))&&l&16)for(let h=0;h<c.length;h++)i(c[h],t,s,2);d&&n(a,t,s)}function m3(e,t,s,n,i,o,{o:{nextSibling:r,parentNode:a,querySelector:l,insert:c,createText:u}},d){function h(v,O,w,C){O.anchor=d(r(v),O,a(v),s,n,i,o),O.targetStart=w,O.targetAnchor=C}const p=t.target=il(t.props,l),m=So(t.props);if(p){const v=p._lpa||p.firstChild;if(t.shapeFlag&16)if(m)h(e,t,v,v&&r(v));else{t.anchor=r(e);let O=v;for(;O;){if(O&&O.nodeType===8){if(O.data==="teleport start anchor")t.targetStart=O;else if(O.data==="teleport anchor"){t.targetAnchor=O,p._lpa=t.targetAnchor&&r(t.targetAnchor);break}}O=r(O)}t.targetAnchor||hu(p,t,u,c),d(v&&r(v),t,p,s,n,i,o)}Or(t,m)}else m&&t.shapeFlag&16&&h(e,t,e,r(e));return t.anchor&&r(t.anchor)}const E3=fu;function Or(e,t){const s=e.ctx;if(s&&s.ut){let n,i;for(t?(n=e.el,i=e.anchor):(n=e.targetStart,i=e.targetAnchor);n&&n!==i;)n.nodeType===1&&n.setAttribute("data-v-owner",s.uid),n=n.nextSibling;s.ut()}}function hu(e,t,s,n){const i=t.targetStart=s(""),o=t.targetAnchor=s("");return i[au]=o,e&&(n(i,e),n(o,e)),o}const cn=Symbol("_leaveCb"),br=Symbol("_enterCb");function ol(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ot(()=>{e.isMounted=!0}),On(()=>{e.isUnmounting=!0}),e}const Ts=[Function,Array],rl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ts,onEnter:Ts,onAfterEnter:Ts,onEnterCancelled:Ts,onBeforeLeave:Ts,onLeave:Ts,onAfterLeave:Ts,onLeaveCancelled:Ts,onBeforeAppear:Ts,onAppear:Ts,onAfterAppear:Ts,onAppearCancelled:Ts},pu=e=>{const t=e.subTree;return t.component?pu(t.component):t},v3={name:"BaseTransition",props:rl,setup(e,{slots:t}){const s=ls(),n=ol();return()=>{const i=t.default&&Lr(t.default(),!0);if(!i||!i.length)return;const o=gu(i),r=Be(e),{mode:a}=r;if(n.isLeaving)return al(o);const l=Eu(o);if(!l)return al(o);let c=Ni(l,r,n,s,d=>c=d);l.type!==yt&&un(l,c);let u=s.subTree&&Eu(s.subTree);if(u&&u.type!==yt&&!Us(u,l)&&pu(s).type!==yt){let d=Ni(u,r,n,s);if(un(u,d),a==="out-in"&&l.type!==yt)return n.isLeaving=!0,d.afterLeave=()=>{n.isLeaving=!1,s.job.flags&8||s.update(),delete d.afterLeave,u=void 0},al(o);a==="in-out"&&l.type!==yt?d.delayLeave=(h,p,m)=>{const v=mu(n,u);v[String(u.key)]=u,h[cn]=()=>{p(),h[cn]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{m(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function gu(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==yt){t=s;break}}return t}const _u=v3;function mu(e,t){const{leavingVNodes:s}=e;let n=s.get(t.type);return n||(n=Object.create(null),s.set(t.type,n)),n}function Ni(e,t,s,n,i){const{appear:o,mode:r,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:p,onAfterLeave:m,onLeaveCancelled:v,onBeforeAppear:O,onAppear:w,onAfterAppear:C,onAppearCancelled:g}=t,_=String(e.key),E=mu(s,e),L=(x,$)=>{x&&ys(x,n,9,$)},P=(x,$)=>{const b=$[1];L(x,$),pe(x)?x.every(I=>I.length<=1)&&b():x.length<=1&&b()},F={mode:r,persisted:a,beforeEnter(x){let $=l;if(!s.isMounted)if(o)$=O||l;else return;x[cn]&&x[cn](!0);const b=E[_];b&&Us(e,b)&&b.el[cn]&&b.el[cn](),L($,[x])},enter(x){let $=c,b=u,I=d;if(!s.isMounted)if(o)$=w||c,b=C||u,I=g||d;else return;let U=!1;const K=x[br]=ne=>{U||(U=!0,ne?L(I,[x]):L(b,[x]),F.delayedLeave&&F.delayedLeave(),x[br]=void 0)};$?P($,[x,K]):K()},leave(x,$){const b=String(e.key);if(x[br]&&x[br](!0),s.isUnmounting)return $();L(h,[x]);let I=!1;const U=x[cn]=K=>{I||(I=!0,$(),K?L(v,[x]):L(m,[x]),x[cn]=void 0,E[b]===e&&delete E[b])};E[b]=e,p?P(p,[x,U]):U()},clone(x){const $=Ni(x,t,s,n,i);return i&&i($),$}};return F}function al(e){if(To(e))return e=Qs(e),e.children=null,e}function Eu(e){if(!To(e))return lu(e.type)&&e.children?gu(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&Oe(s.default))return s.default()}}function un(e,t){e.shapeFlag&6&&e.component?(e.transition=t,un(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Lr(e,t=!1,s){let n=[],i=0;for(let o=0;o<e.length;o++){let r=e[o];const a=s==null?r.key:String(s)+String(r.key!=null?r.key:o);r.type===Ae?(r.patchFlag&128&&i++,n=n.concat(Lr(r.children,t,a))):(t||r.type!==yt)&&n.push(a!=null?Qs(r,{key:a}):r)}if(i>1)for(let o=0;o<n.length;o++)n[o].patchFlag=-2;return n}function Se(e,t){return Oe(e)?(()=>$e({name:e.name},t,{setup:e}))():e}function C3(){const e=ls();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function ll(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function y3(e){const t=ls(),s=K1(null);if(t){const i=t.refs===Ge?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>s.value,set:o=>s.value=o})}return s}const Ar=new WeakMap;function Di(e,t,s,n,i=!1){if(pe(e)){e.forEach((m,v)=>Di(m,t&&(pe(t)?t[v]:t),s,n,i));return}if(dn(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Di(e,t,s,n.component.subTree);return}const o=n.shapeFlag&4?Ao(n.component):n.el,r=i?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Ge?a.refs={}:a.refs,d=a.setupState,h=Be(d),p=d===Ge?wi:m=>Qe(h,m);if(c!=null&&c!==l){if(vu(t),Ue(c))u[c]=null,p(c)&&(d[c]=null);else if(_t(c)){c.value=null;const m=t;m.k&&(u[m.k]=null)}}if(Oe(l))Zn(l,a,12,[r,u]);else{const m=Ue(l),v=_t(l);if(m||v){const O=()=>{if(e.f){const w=m?p(l)?d[l]:u[l]:l.value;if(i)pe(w)&&Ga(w,o);else if(pe(w))w.includes(o)||w.push(o);else if(m)u[l]=[o],p(l)&&(d[l]=u[l]);else{const C=[o];l.value=C,e.k&&(u[e.k]=C)}}else m?(u[l]=r,p(l)&&(d[l]=r)):v&&(l.value=r,e.k&&(u[e.k]=r))};if(r){const w=()=>{O(),Ar.delete(e)};w.id=-1,Ar.set(e,w),wt(w,s)}else vu(e),O()}}}function vu(e){const t=Ar.get(e);t&&(t.flags|=8,Ar.delete(e))}let Cu=!1;const Pi=()=>{Cu||(console.error("Hydration completed but contains mismatches."),Cu=!0)},S3=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",T3=e=>e.namespaceURI.includes("MathML"),xr=e=>{if(e.nodeType===1){if(S3(e))return"svg";if(T3(e))return"mathml"}},Vi=e=>e.nodeType===8;function I3(e){const{mt:t,p:s,o:{patchProp:n,createText:i,nextSibling:o,parentNode:r,remove:a,insert:l,createComment:c}}=e,u=(g,_)=>{if(!_.hasChildNodes()){s(null,g,_),Tr(),_._vnode=g;return}d(_.firstChild,g,null,null,null),Tr(),_._vnode=g},d=(g,_,E,L,P,F=!1)=>{F=F||!!_.dynamicChildren;const x=Vi(g)&&g.data==="[",$=()=>v(g,_,E,L,P,x),{type:b,ref:I,shapeFlag:U,patchFlag:K}=_;let ne=g.nodeType;_.el=g,K===-2&&(F=!1,_.dynamicChildren=null);let te=null;switch(b){case bn:ne!==3?_.children===""?(l(_.el=i(""),r(g),g),te=g):te=$():(g.data!==_.children&&(Pi(),g.data=_.children),te=o(g));break;case yt:C(g)?(te=o(g),w(_.el=g.content.firstChild,g,E)):ne!==8||x?te=$():te=o(g);break;case ei:if(x&&(g=o(g),ne=g.nodeType),ne===1||ne===3){te=g;const he=!_.children.length;for(let Y=0;Y<_.staticCount;Y++)he&&(_.children+=te.nodeType===1?te.outerHTML:te.data),Y===_.staticCount-1&&(_.anchor=te),te=o(te);return x?o(te):te}else $();break;case Ae:x?te=m(g,_,E,L,P,F):te=$();break;default:if(U&1)(ne!==1||_.type.toLowerCase()!==g.tagName.toLowerCase())&&!C(g)?te=$():te=h(g,_,E,L,P,F);else if(U&6){_.slotScopeIds=P;const he=r(g);if(x?te=O(g):Vi(g)&&g.data==="teleport start"?te=O(g,g.data,"teleport end"):te=o(g),t(_,he,null,E,L,xr(he),F),dn(_)&&!_.type.__asyncResolved){let Y;x?(Y=Re(Ae),Y.anchor=te?te.previousSibling:he.lastChild):Y=g.nodeType===3?$i(""):Re("div"),Y.el=g,_.component.subTree=Y}}else U&64?ne!==8?te=$():te=_.type.hydrate(g,_,E,L,P,F,e,p):U&128&&(te=_.type.hydrate(g,_,E,L,xr(r(g)),P,F,e,d))}return I!=null&&Di(I,null,L,_),te},h=(g,_,E,L,P,F)=>{F=F||!!_.dynamicChildren;const{type:x,props:$,patchFlag:b,shapeFlag:I,dirs:U,transition:K}=_,ne=x==="input"||x==="option";if(ne||b!==-1){U&&zs(_,null,E,"created");let te=!1;if(C(g)){te=Xu(null,K)&&E&&E.vnode.props&&E.vnode.props.appear;const Y=g.content.firstChild;if(te){const De=Y.getAttribute("class");De&&(Y.$cls=De),K.beforeEnter(Y)}w(Y,g,E),_.el=g=Y}if(I&16&&!($&&($.innerHTML||$.textContent))){let Y=p(g.firstChild,_,g,E,L,P,F);for(;Y;){kr(g,1)||Pi();const De=Y;Y=Y.nextSibling,a(De)}}else if(I&8){let Y=_.children;Y[0]===`
|
|
307
|
+
`&&(g.tagName==="PRE"||g.tagName==="TEXTAREA")&&(Y=Y.slice(1));const{textContent:De}=g;De!==Y&&De!==Y.replace(/\r\n|\r/g,`
|
|
308
|
+
`)&&(kr(g,0)||Pi(),g.textContent=_.children)}if($){if(ne||!F||b&48){const Y=g.tagName.includes("-");for(const De in $)(ne&&(De.endsWith("value")||De==="indeterminate")||qn(De)&&!nn(De)||De[0]==="."||Y&&!nn(De))&&n(g,De,null,$[De],void 0,E)}else if($.onClick)n(g,"onClick",null,$.onClick,void 0,E);else if(b&4&&an($.style))for(const Y in $.style)$.style[Y]}let he;(he=$&&$.onVnodeBeforeMount)&&as(he,E,_),U&&zs(_,null,E,"beforeMount"),((he=$&&$.onVnodeMounted)||U||te)&&nd(()=>{he&&as(he,E,_),te&&K.enter(g),U&&zs(_,null,E,"mounted")},L)}return g.nextSibling},p=(g,_,E,L,P,F,x)=>{x=x||!!_.dynamicChildren;const $=_.children,b=$.length;for(let I=0;I<b;I++){const U=x?$[I]:$[I]=rs($[I]),K=U.type===bn;g?(K&&!x&&I+1<b&&rs($[I+1]).type===bn&&(l(i(g.data.slice(U.children.length)),E,o(g)),g.data=U.children),g=d(g,U,L,P,F,x)):K&&!U.children?l(U.el=i(""),E):(kr(E,1)||Pi(),s(null,U,E,null,L,P,xr(E),F))}return g},m=(g,_,E,L,P,F)=>{const{slotScopeIds:x}=_;x&&(P=P?P.concat(x):x);const $=r(g),b=p(o(g),_,$,E,L,P,F);return b&&Vi(b)&&b.data==="]"?o(_.anchor=b):(Pi(),l(_.anchor=c("]"),$,b),b)},v=(g,_,E,L,P,F)=>{if(kr(g.parentElement,1)||Pi(),_.el=null,F){const b=O(g);for(;;){const I=o(g);if(I&&I!==b)a(I);else break}}const x=o(g),$=r(g);return a(g),s(null,_,$,x,E,L,xr($),P),E&&(E.vnode.el=_.el,Gr(E,_.el)),x},O=(g,_="[",E="]")=>{let L=0;for(;g;)if(g=o(g),g&&Vi(g)&&(g.data===_&&L++,g.data===E)){if(L===0)return o(g);L--}return g},w=(g,_,E)=>{const L=_.parentNode;L&&L.replaceChild(g,_);let P=E;for(;P;)P.vnode.el===_&&(P.vnode.el=P.subTree.el=g),P=P.parent},C=g=>g.nodeType===1&&g.tagName==="TEMPLATE";return[u,d]}const yu="data-allow-mismatch",w3={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function kr(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(yu);)e=e.parentElement;const s=e&&e.getAttribute(yu);if(s==null)return!1;if(s==="")return!0;{const n=s.split(",");return t===0&&n.includes("children")?!0:n.includes(w3[t])}}const R3=dr().requestIdleCallback||(e=>setTimeout(e,1)),M3=dr().cancelIdleCallback||(e=>clearTimeout(e)),O3=(e=1e4)=>t=>{const s=R3(t,{timeout:e});return()=>M3(s)};function b3(e){const{top:t,left:s,bottom:n,right:i}=e.getBoundingClientRect(),{innerHeight:o,innerWidth:r}=window;return(t>0&&t<o||n>0&&n<o)&&(s>0&&s<r||i>0&&i<r)}const L3=e=>(t,s)=>{const n=new IntersectionObserver(i=>{for(const o of i)if(o.isIntersecting){n.disconnect(),t();break}},e);return s(i=>{if(i instanceof Element){if(b3(i))return t(),n.disconnect(),!1;n.observe(i)}}),()=>n.disconnect()},A3=e=>t=>{if(e){const s=matchMedia(e);if(s.matches)t();else return s.addEventListener("change",t,{once:!0}),()=>s.removeEventListener("change",t)}},x3=(e=[])=>(t,s)=>{Ue(e)&&(e=[e]);let n=!1;const i=r=>{n||(n=!0,o(),t(),r.target.dispatchEvent(new r.constructor(r.type,r)))},o=()=>{s(r=>{for(const a of e)r.removeEventListener(a,i)})};return s(r=>{for(const a of e)r.addEventListener(a,i,{once:!0})}),o};function k3(e,t){if(Vi(e)&&e.data==="["){let s=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(Vi(n))if(n.data==="]"){if(--s===0)break}else n.data==="["&&s++;n=n.nextSibling}}else t(e)}const dn=e=>!!e.type.__asyncLoader;function U3(e){Oe(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:n,delay:i=200,hydrate:o,timeout:r,suspensible:a=!0,onError:l}=e;let c=null,u,d=0;const h=()=>(d++,c=null,p()),p=()=>{let m;return c||(m=c=t().catch(v=>{if(v=v instanceof Error?v:new Error(String(v)),l)return new Promise((O,w)=>{l(v,()=>O(h()),()=>w(v),d+1)});throw v}).then(v=>m!==c&&c?c:(v&&(v.__esModule||v[Symbol.toStringTag]==="Module")&&(v=v.default),u=v,v)))};return Se({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(m,v,O){let w=!1;(v.bu||(v.bu=[])).push(()=>w=!0);const C=()=>{w||O()},g=o?()=>{const _=o(C,E=>k3(m,E));_&&(v.bum||(v.bum=[])).push(_)}:C;u?g():p().then(()=>!v.isUnmounted&&g())},get __asyncResolved(){return u},setup(){const m=Nt;if(ll(m),u)return()=>Ur(u,m);const v=g=>{c=null,Yn(g,m,13,!n)};if(a&&m.suspense||Hi)return p().then(g=>()=>Ur(g,m)).catch(g=>(v(g),()=>n?Re(n,{error:g}):null));const O=N(!1),w=N(),C=N(!!i);return i&&setTimeout(()=>{C.value=!1},i),r!=null&&setTimeout(()=>{if(!O.value&&!w.value){const g=new Error(`Async component timed out after ${r}ms.`);v(g),w.value=g}},r),p().then(()=>{O.value=!0,m.parent&&To(m.parent.vnode)&&m.parent.update()}).catch(g=>{v(g),w.value=g}),()=>{if(O.value&&u)return Ur(u,m);if(w.value&&n)return Re(n,{error:w.value});if(s&&!C.value)return Ur(s,m)}}})}function Ur(e,t){const{ref:s,props:n,children:i,ce:o}=t.vnode,r=Re(e,n,i);return r.ref=s,r.ce=o,delete t.vnode.ce,r}const To=e=>e.type.__isKeepAlive,N3={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const s=ls(),n=s.ctx;if(!n.renderer)return()=>{const C=t.default&&t.default();return C&&C.length===1?C[0]:C};const i=new Map,o=new Set;let r=null;const a=s.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=n,h=d("div");n.activate=(C,g,_,E,L)=>{const P=C.component;c(C,g,_,0,a),l(P.vnode,C,g,_,P,a,E,C.slotScopeIds,L),wt(()=>{P.isDeactivated=!1,P.a&&bi(P.a);const F=C.props&&C.props.onVnodeMounted;F&&as(F,P.parent,C)},a)},n.deactivate=C=>{const g=C.component;Br(g.m),Br(g.a),c(C,h,null,1,a),wt(()=>{g.da&&bi(g.da);const _=C.props&&C.props.onVnodeUnmounted;_&&as(_,g.parent,C),g.isDeactivated=!0},a)};function p(C){cl(C),u(C,s,a,!0)}function m(C){i.forEach((g,_)=>{const E=Wr(dn(g)?g.type.__asyncResolved||{}:g.type);E&&!C(E)&&v(_)})}function v(C){const g=i.get(C);g&&(!r||!Us(g,r))?p(g):r&&cl(r),i.delete(C),o.delete(C)}qt(()=>[e.include,e.exclude],([C,g])=>{C&&m(_=>Io(C,_)),g&&m(_=>!Io(g,_))},{flush:"post",deep:!0});let O=null;const w=()=>{O!=null&&(jr(s.subTree.type)?wt(()=>{i.set(O,Nr(s.subTree))},s.subTree.suspense):i.set(O,Nr(s.subTree)))};return ot(w),Pr(w),On(()=>{i.forEach(C=>{const{subTree:g,suspense:_}=s,E=Nr(g);if(C.type===E.type&&C.key===E.key){cl(E);const L=E.component.da;L&&wt(L,_);return}p(C)})}),()=>{if(O=null,!t.default)return r=null;const C=t.default(),g=C[0];if(C.length>1)return r=null,C;if(!pn(g)||!(g.shapeFlag&4)&&!(g.shapeFlag&128))return r=null,g;let _=Nr(g);if(_.type===yt)return r=null,_;const E=_.type,L=Wr(dn(_)?_.type.__asyncResolved||{}:E),{include:P,exclude:F,max:x}=e;if(P&&(!L||!Io(P,L))||F&&L&&Io(F,L))return _.shapeFlag&=-257,r=_,g;const $=_.key==null?E:_.key,b=i.get($);return _.el&&(_=Qs(_),g.shapeFlag&128&&(g.ssContent=_)),O=$,b?(_.el=b.el,_.component=b.component,_.transition&&un(_,_.transition),_.shapeFlag|=512,o.delete($),o.add($)):(o.add($),x&&o.size>parseInt(x,10)&&v(o.values().next().value)),_.shapeFlag|=256,r=_,jr(g.type)?g:_}}};function Io(e,t){return pe(e)?e.some(s=>Io(s,t)):Ue(e)?e.split(",").includes(t):Kp(e)?(e.lastIndex=0,e.test(t)):!1}function Su(e,t){Iu(e,"a",t)}function Tu(e,t){Iu(e,"da",t)}function Iu(e,t,s=Nt){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Dr(t,n,s),s){let i=s.parent;for(;i&&i.parent;)To(i.parent.vnode)&&D3(n,t,s,i),i=i.parent}}function D3(e,t,s,n){const i=Dr(t,e,n,!0);Ct(()=>{Ga(n[t],i)},s)}function cl(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Nr(e){return e.shapeFlag&128?e.ssContent:e}function Dr(e,t,s=Nt,n=!1){if(s){const i=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...r)=>{Bs();const a=si(s),l=ys(t,s,e,r);return a(),js(),l});return n?i.unshift(o):i.push(o),o}}const fn=e=>(t,s=Nt)=>{(!Hi||e==="sp")&&Dr(e,(...n)=>t(...n),s)},ul=fn("bm"),ot=fn("m"),dl=fn("bu"),Pr=fn("u"),On=fn("bum"),Ct=fn("um"),wu=fn("sp"),Ru=fn("rtg"),Mu=fn("rtc");function Ou(e,t=Nt){Dr("ec",e,t)}const fl="components",P3="directives";function Ee(e,t){return hl(fl,e,!0,t)||e}const bu=Symbol.for("v-ndc");function Vr(e){return Ue(e)?hl(fl,e,!1)||e:e||bu}function V3(e){return hl(P3,e)}function hl(e,t,s=!0,n=!1){const i=Ut||Nt;if(i){const o=i.type;if(e===fl){const a=Wr(o,!1);if(a&&(a===t||a===at(t)||a===zn(at(t))))return o}const r=Lu(i[e]||o[e],t)||Lu(i.appContext[e],t);return!r&&n?o:r}}function Lu(e,t){return e&&(e[t]||e[at(t)]||e[zn(at(t))])}function pt(e,t,s,n){let i;const o=s&&s[n],r=pe(e);if(r||Ue(e)){const a=r&&an(e);let l=!1,c=!1;a&&(l=!os(e),c=qs(e),e=gr(e)),i=new Array(e.length);for(let u=0,d=e.length;u<d;u++)i[u]=t(l?c?Ai(ks(e[u])):ks(e[u]):e[u],u,void 0,o&&o[u])}else if(typeof e=="number"){i=new Array(e);for(let a=0;a<e;a++)i[a]=t(a+1,a,void 0,o&&o[a])}else if(Xe(e))if(e[Symbol.iterator])i=Array.from(e,(a,l)=>t(a,l,void 0,o&&o[l]));else{const a=Object.keys(e);i=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];i[l]=t(e[u],u,l,o&&o[l])}}else i=[];return s&&(s[n]=i),i}function F3(e,t){for(let s=0;s<t.length;s++){const n=t[s];if(pe(n))for(let i=0;i<n.length;i++)e[n[i].name]=n[i].fn;else n&&(e[n.name]=n.key?(...i)=>{const o=n.fn(...i);return o&&(o.key=n.key),o}:n.fn)}return e}function hn(e,t,s={},n,i){if(Ut.ce||Ut.parent&&dn(Ut.parent)&&Ut.parent.ce){const c=Object.keys(s).length>0;return t!=="default"&&(s.name=t),R(),xe(Ae,null,[Re("slot",s,n&&n())],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),R();const r=o&&pl(o(s)),a=s.key||r&&r.key,l=xe(Ae,{key:(a&&!ns(a)?a:`_${t}`)+(!r&&n?"_fb":"")},r||(n?n():[]),r&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function pl(e){return e.some(t=>pn(t)?!(t.type===yt||t.type===Ae&&!pl(t.children)):!0)?e:null}function $3(e,t){const s={};for(const n in e)s[t&&/[A-Z]/.test(n)?`on:${n}`:Oi(n)]=e[n];return s}const gl=e=>e?ud(e)?Ao(e):gl(e.parent):null,wo=$e(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>gl(e.parent),$root:e=>gl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>vl(e),$forceUpdate:e=>e.f||(e.f=()=>{nl(e.update)}),$nextTick:e=>e.n||(e.n=tt.bind(e.proxy)),$watch:e=>_3.bind(e)}),_l=(e,t)=>e!==Ge&&!e.__isScriptSetup&&Qe(e,t),ml={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:o,accessCache:r,type:a,appContext:l}=e;if(t[0]!=="$"){const h=r[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return o[t]}else{if(_l(n,t))return r[t]=1,n[t];if(i!==Ge&&Qe(i,t))return r[t]=2,i[t];if(Qe(o,t))return r[t]=3,o[t];if(s!==Ge&&Qe(s,t))return r[t]=4,s[t];El&&(r[t]=0)}}const c=wo[t];let u,d;if(c)return t==="$attrs"&&jt(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(s!==Ge&&Qe(s,t))return r[t]=4,s[t];if(d=l.config.globalProperties,Qe(d,t))return d[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:o}=e;return _l(i,t)?(i[t]=s,!0):n!==Ge&&Qe(n,t)?(n[t]=s,!0):Qe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,props:o,type:r}},a){let l;return!!(s[a]||e!==Ge&&a[0]!=="$"&&Qe(e,a)||_l(t,a)||Qe(o,a)||Qe(n,a)||Qe(wo,a)||Qe(i.config.globalProperties,a)||(l=r.__cssModules)&&l[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Qe(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}},H3=$e({},ml,{get(e,t){if(t!==Symbol.unscopables)return ml.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Xp(t)}});function G3(){return null}function B3(){return null}function j3(e){}function q3(e){}function K3(){return null}function z3(){}function Q3(e,t){return null}function W3(){return Au().slots}function Z3(){return Au().attrs}function Au(e){const t=ls();return t.setupContext||(t.setupContext=pd(t))}function Ro(e){return pe(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}function Y3(e,t){const s=Ro(e);for(const n in t){if(n.startsWith("__skip"))continue;let i=s[n];i?pe(i)||Oe(i)?i=s[n]={type:i,default:t[n]}:i.default=t[n]:i===null&&(i=s[n]={default:t[n]}),i&&t[`__skip_${n}`]&&(i.skipFactory=!0)}return s}function X3(e,t){return!e||!t?e||t:pe(e)&&pe(t)?e.concat(t):$e({},Ro(e),Ro(t))}function J3(e,t){const s={};for(const n in e)t.includes(n)||Object.defineProperty(s,n,{enumerable:!0,get:()=>e[n]});return s}function e4(e){const t=ls();let s=e();return bl(),Ba(s)&&(s=s.catch(n=>{throw si(t),n})),[s,()=>si(t)]}let El=!0;function t4(e){const t=vl(e),s=e.proxy,n=e.ctx;El=!1,t.beforeCreate&&xu(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:p,updated:m,activated:v,deactivated:O,beforeDestroy:w,beforeUnmount:C,destroyed:g,unmounted:_,render:E,renderTracked:L,renderTriggered:P,errorCaptured:F,serverPrefetch:x,expose:$,inheritAttrs:b,components:I,directives:U,filters:K}=t;if(c&&s4(c,n,null),r)for(const he in r){const Y=r[he];Oe(Y)&&(n[he]=Y.bind(s))}if(i){const he=i.call(s,s);Xe(he)&&(e.data=Cs(he))}if(El=!0,o)for(const he in o){const Y=o[he],De=Oe(Y)?Y.bind(s,s):Oe(Y.get)?Y.get.bind(s,s):kt,st=!Oe(Y)&&Oe(Y.set)?Y.set.bind(s):kt,_e=me({get:De,set:st});Object.defineProperty(n,he,{enumerable:!0,configurable:!0,get:()=>_e.value,set:Lt=>_e.value=Lt})}if(a)for(const he in a)ku(a[he],n,s,he);if(l){const he=Oe(l)?l.call(s):l;Reflect.ownKeys(he).forEach(Y=>{Rr(Y,he[Y])})}u&&xu(u,e,"c");function te(he,Y){pe(Y)?Y.forEach(De=>he(De.bind(s))):Y&&he(Y.bind(s))}if(te(ul,d),te(ot,h),te(dl,p),te(Pr,m),te(Su,v),te(Tu,O),te(Ou,F),te(Mu,L),te(Ru,P),te(On,C),te(Ct,_),te(wu,x),pe($))if($.length){const he=e.exposed||(e.exposed={});$.forEach(Y=>{Object.defineProperty(he,Y,{get:()=>s[Y],set:De=>s[Y]=De,enumerable:!0})})}else e.exposed||(e.exposed={});E&&e.render===kt&&(e.render=E),b!=null&&(e.inheritAttrs=b),I&&(e.components=I),U&&(e.directives=U),x&&ll(e)}function s4(e,t,s=kt){pe(e)&&(e=Cl(e));for(const n in e){const i=e[n];let o;Xe(i)?"default"in i?o=Co(i.from||n,i.default,!0):o=Co(i.from||n):o=Co(i),_t(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[n]=o}}function xu(e,t,s){ys(pe(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function ku(e,t,s,n){let i=n.includes(".")?ru(s,n):()=>s[n];if(Ue(e)){const o=t[e];Oe(o)&&qt(i,o)}else if(Oe(e))qt(i,e.bind(s));else if(Xe(e))if(pe(e))e.forEach(o=>ku(o,t,s,n));else{const o=Oe(e.handler)?e.handler.bind(s):t[e.handler];Oe(o)&&qt(i,o,e)}}function vl(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,a=o.get(t);let l;return a?l=a:!i.length&&!s&&!n?l=t:(l={},i.length&&i.forEach(c=>Fr(l,c,r,!0)),Fr(l,t,r)),Xe(t)&&o.set(t,l),l}function Fr(e,t,s,n=!1){const{mixins:i,extends:o}=t;o&&Fr(e,o,s,!0),i&&i.forEach(r=>Fr(e,r,s,!0));for(const r in t)if(!(n&&r==="expose")){const a=n4[r]||s&&s[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const n4={data:Uu,props:Nu,emits:Nu,methods:Mo,computed:Mo,beforeCreate:es,created:es,beforeMount:es,mounted:es,beforeUpdate:es,updated:es,beforeDestroy:es,beforeUnmount:es,destroyed:es,unmounted:es,activated:es,deactivated:es,errorCaptured:es,serverPrefetch:es,components:Mo,directives:Mo,watch:o4,provide:Uu,inject:i4};function Uu(e,t){return t?e?function(){return $e(Oe(e)?e.call(this,this):e,Oe(t)?t.call(this,this):t)}:t:e}function i4(e,t){return Mo(Cl(e),Cl(t))}function Cl(e){if(pe(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function es(e,t){return e?[...new Set([].concat(e,t))]:t}function Mo(e,t){return e?$e(Object.create(null),e,t):t}function Nu(e,t){return e?pe(e)&&pe(t)?[...new Set([...e,...t])]:$e(Object.create(null),Ro(e),Ro(t??{})):t}function o4(e,t){if(!e)return t;if(!t)return e;const s=$e(Object.create(null),e);for(const n in t)s[n]=es(e[n],t[n]);return s}function Du(){return{app:null,config:{isNativeTag:wi,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let r4=0;function a4(e,t){return function(n,i=null){Oe(n)||(n=$e({},n)),i!=null&&!Xe(i)&&(i=null);const o=Du(),r=new WeakSet,a=[];let l=!1;const c=o.app={_uid:r4++,_component:n,_props:i,_container:null,_context:o,_instance:null,version:Ed,get config(){return o.config},set config(u){},use(u,...d){return r.has(u)||(u&&Oe(u.install)?(r.add(u),u.install(c,...d)):Oe(u)&&(r.add(u),u(c,...d))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,d){return d?(o.components[u]=d,c):o.components[u]},directive(u,d){return d?(o.directives[u]=d,c):o.directives[u]},mount(u,d,h){if(!l){const p=c._ceVNode||Re(n,i);return p.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),d&&t?t(p,u):e(p,u,h),l=!0,c._container=u,u.__vue_app__=c,Ao(p.component)}},onUnmount(u){a.push(u)},unmount(){l&&(ys(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return o.provides[u]=d,c},runWithContext(u){const d=Xn;Xn=c;try{return u()}finally{Xn=d}}};return c}}let Xn=null;function l4(e,t,s=Ge){const n=ls(),i=at(t),o=is(t),r=Pu(e,i),a=Q1((l,c)=>{let u,d=Ge,h;return ou(()=>{const p=e[i];Xt(u,p)&&(u=p,c())}),{get(){return l(),s.get?s.get(u):u},set(p){const m=s.set?s.set(p):p;if(!Xt(m,u)&&!(d!==Ge&&Xt(p,d)))return;const v=n.vnode.props;v&&(t in v||i in v||o in v)&&(`onUpdate:${t}`in v||`onUpdate:${i}`in v||`onUpdate:${o}`in v)||(u=p,c()),n.emit(`update:${t}`,m),Xt(p,m)&&Xt(p,d)&&!Xt(m,h)&&c(),d=p,h=m}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?r||Ge:a,done:!1}:{done:!0}}}},a}const Pu=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${at(t)}Modifiers`]||e[`${is(t)}Modifiers`];function c4(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||Ge;let i=s;const o=t.startsWith("update:"),r=o&&Pu(n,t.slice(7));r&&(r.trim&&(i=s.map(u=>Ue(u)?u.trim():u)),r.number&&(i=s.map(cr)));let a,l=n[a=Oi(t)]||n[a=Oi(at(t))];!l&&o&&(l=n[a=Oi(is(t))]),l&&ys(l,e,6,i);const c=n[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,ys(c,e,6,i)}}const u4=new WeakMap;function Vu(e,t,s=!1){const n=s?u4:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const o=e.emits;let r={},a=!1;if(!Oe(e)){const l=c=>{const u=Vu(c,t,!0);u&&(a=!0,$e(r,u))};!s&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(Xe(e)&&n.set(e,null),null):(pe(o)?o.forEach(l=>r[l]=null):$e(r,o),Xe(e)&&n.set(e,r),r)}function $r(e,t){return!e||!qn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Qe(e,t[0].toLowerCase()+t.slice(1))||Qe(e,is(t))||Qe(e,t))}function yC(){}function Hr(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[o],slots:r,attrs:a,emit:l,render:c,renderCache:u,props:d,data:h,setupState:p,ctx:m,inheritAttrs:v}=e,O=vo(e);let w,C;try{if(s.shapeFlag&4){const _=i||n,E=_;w=rs(c.call(E,_,u,d,p,h,m)),C=a}else{const _=t;w=rs(_.length>1?_(d,{attrs:a,slots:r,emit:l}):_(d,null)),C=t.props?a:f4(a)}}catch(_){bo.length=0,Yn(_,e,1),w=Re(yt)}let g=w;if(C&&v!==!1){const _=Object.keys(C),{shapeFlag:E}=g;_.length&&E&7&&(o&&_.some(Ha)&&(C=h4(C,o)),g=Qs(g,C,!1,!0))}return s.dirs&&(g=Qs(g,null,!1,!0),g.dirs=g.dirs?g.dirs.concat(s.dirs):s.dirs),s.transition&&un(g,s.transition),w=g,vo(O),w}function d4(e,t=!0){let s;for(let n=0;n<e.length;n++){const i=e[n];if(pn(i)){if(i.type!==yt||i.children==="v-if"){if(s)return;s=i}}else return}return s}const f4=e=>{let t;for(const s in e)(s==="class"||s==="style"||qn(s))&&((t||(t={}))[s]=e[s]);return t},h4=(e,t)=>{const s={};for(const n in e)(!Ha(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function p4(e,t,s){const{props:n,children:i,component:o}=e,{props:r,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&l>=0){if(l&1024)return!0;if(l&16)return n?Fu(n,r,c):!!r;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const h=u[d];if(r[h]!==n[h]&&!$r(c,h))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===r?!1:n?r?Fu(n,r,c):!0:!!r;return!1}function Fu(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const o=n[i];if(t[o]!==e[o]&&!$r(s,o))return!0}return!1}function Gr({vnode:e,parent:t},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=s,t=t.parent;else break}}const $u={},Hu=()=>Object.create($u),Gu=e=>Object.getPrototypeOf(e)===$u;function g4(e,t,s,n=!1){const i={},o=Hu();e.propsDefaults=Object.create(null),Bu(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);s?e.props=n?i:j1(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function _4(e,t,s,n){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,a=Be(i),[l]=e.propsOptions;let c=!1;if((n||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let h=u[d];if($r(e.emitsOptions,h))continue;const p=t[h];if(l)if(Qe(o,h))p!==o[h]&&(o[h]=p,c=!0);else{const m=at(h);i[m]=yl(l,a,m,p,e,!1)}else p!==o[h]&&(o[h]=p,c=!0)}}}else{Bu(e,t,i,o)&&(c=!0);let u;for(const d in a)(!t||!Qe(t,d)&&((u=is(d))===d||!Qe(t,u)))&&(l?s&&(s[d]!==void 0||s[u]!==void 0)&&(i[d]=yl(l,a,d,void 0,e,!0)):delete i[d]);if(o!==a)for(const d in o)(!t||!Qe(t,d))&&(delete o[d],c=!0)}c&&on(e.attrs,"set","")}function Bu(e,t,s,n){const[i,o]=e.propsOptions;let r=!1,a;if(t)for(let l in t){if(nn(l))continue;const c=t[l];let u;i&&Qe(i,u=at(l))?!o||!o.includes(u)?s[u]=c:(a||(a={}))[u]=c:$r(e.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,r=!0)}if(o){const l=Be(s),c=a||Ge;for(let u=0;u<o.length;u++){const d=o[u];s[d]=yl(i,l,d,c[d],e,!Qe(c,d))}}return r}function yl(e,t,s,n,i,o){const r=e[s];if(r!=null){const a=Qe(r,"default");if(a&&n===void 0){const l=r.default;if(r.type!==Function&&!r.skipFactory&&Oe(l)){const{propsDefaults:c}=i;if(s in c)n=c[s];else{const u=si(i);n=c[s]=l.call(null,t),u()}}else n=l;i.ce&&i.ce._setProp(s,n)}r[0]&&(o&&!a?n=!1:r[1]&&(n===""||n===is(s))&&(n=!0))}return n}const m4=new WeakMap;function ju(e,t,s=!1){const n=s?m4:t.propsCache,i=n.get(e);if(i)return i;const o=e.props,r={},a=[];let l=!1;if(!Oe(e)){const u=d=>{l=!0;const[h,p]=ju(d,t,!0);$e(r,h),p&&a.push(...p)};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return Xe(e)&&n.set(e,Ii),Ii;if(pe(o))for(let u=0;u<o.length;u++){const d=at(o[u]);qu(d)&&(r[d]=Ge)}else if(o)for(const u in o){const d=at(u);if(qu(d)){const h=o[u],p=r[d]=pe(h)||Oe(h)?{type:h}:$e({},h),m=p.type;let v=!1,O=!0;if(pe(m))for(let w=0;w<m.length;++w){const C=m[w],g=Oe(C)&&C.name;if(g==="Boolean"){v=!0;break}else g==="String"&&(O=!1)}else v=Oe(m)&&m.name==="Boolean";p[0]=v,p[1]=O,(v||Qe(p,"default"))&&a.push(d)}}const c=[r,a];return Xe(e)&&n.set(e,c),c}function qu(e){return e[0]!=="$"&&!nn(e)}const Sl=e=>e==="_"||e==="_ctx"||e==="$stable",Tl=e=>pe(e)?e.map(rs):[rs(e)],E4=(e,t,s)=>{if(t._n)return t;const n=ht((...i)=>Tl(t(...i)),s);return n._c=!1,n},Ku=(e,t,s)=>{const n=e._ctx;for(const i in e){if(Sl(i))continue;const o=e[i];if(Oe(o))t[i]=E4(i,o,n);else if(o!=null){const r=Tl(o);t[i]=()=>r}}},zu=(e,t)=>{const s=Tl(t);e.slots.default=()=>s},Qu=(e,t,s)=>{for(const n in t)(s||!Sl(n))&&(e[n]=t[n])},v4=(e,t,s)=>{const n=e.slots=Hu();if(e.vnode.shapeFlag&32){const i=t._;i?(Qu(n,t,s),s&&C1(n,"_",i,!0)):Ku(t,n)}else t&&zu(e,t)},C4=(e,t,s)=>{const{vnode:n,slots:i}=e;let o=!0,r=Ge;if(n.shapeFlag&32){const a=t._;a?s&&a===1?o=!1:Qu(i,t,s):(o=!t.$stable,Ku(t,i)),r=t}else t&&(zu(e,t),r={default:1});if(o)for(const a in i)!Sl(a)&&r[a]==null&&delete i[a]},wt=nd;function Wu(e){return Yu(e)}function Zu(e){return Yu(e,I3)}function Yu(e,t){const s=dr();s.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:r,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:p=kt,insertStaticContent:m}=e,v=(S,M,V,z=null,W=null,X=null,ue=void 0,ie=null,oe=!!M.dynamicChildren)=>{if(S===M)return;S&&!Us(S,M)&&(z=Fs(S),Lt(S,W,X,!0),S=null),M.patchFlag===-2&&(oe=!1,M.dynamicChildren=null);const{type:J,ref:we,shapeFlag:ge}=M;switch(J){case bn:O(S,M,V,z);break;case yt:w(S,M,V,z);break;case ei:S==null&&C(M,V,z,ue);break;case Ae:I(S,M,V,z,W,X,ue,ie,oe);break;default:ge&1?E(S,M,V,z,W,X,ue,ie,oe):ge&6?U(S,M,V,z,W,X,ue,ie,oe):(ge&64||ge&128)&&J.process(S,M,V,z,W,X,ue,ie,oe,ae)}we!=null&&W?Di(we,S&&S.ref,X,M||S,!M):we==null&&S&&S.ref!=null&&Di(S.ref,null,X,S,!0)},O=(S,M,V,z)=>{if(S==null)n(M.el=a(M.children),V,z);else{const W=M.el=S.el;M.children!==S.children&&c(W,M.children)}},w=(S,M,V,z)=>{S==null?n(M.el=l(M.children||""),V,z):M.el=S.el},C=(S,M,V,z)=>{[S.el,S.anchor]=m(S.children,M,V,z,S.el,S.anchor)},g=({el:S,anchor:M},V,z)=>{let W;for(;S&&S!==M;)W=h(S),n(S,V,z),S=W;n(M,V,z)},_=({el:S,anchor:M})=>{let V;for(;S&&S!==M;)V=h(S),i(S),S=V;i(M)},E=(S,M,V,z,W,X,ue,ie,oe)=>{if(M.type==="svg"?ue="svg":M.type==="math"&&(ue="mathml"),S==null)L(M,V,z,W,X,ue,ie,oe);else{const J=S.el&&S.el._isVueCE?S.el:null;try{J&&J._beginPatch(),x(S,M,W,X,ue,ie,oe)}finally{J&&J._endPatch()}}},L=(S,M,V,z,W,X,ue,ie)=>{let oe,J;const{props:we,shapeFlag:ge,transition:ve,dirs:be}=S;if(oe=S.el=r(S.type,X,we&&we.is,we),ge&8?u(oe,S.children):ge&16&&F(S.children,oe,null,z,W,Il(S,X),ue,ie),be&&zs(S,null,z,"created"),P(oe,S,S.scopeId,ue,z),we){for(const Ze in we)Ze!=="value"&&!nn(Ze)&&o(oe,Ze,null,we[Ze],X,z);"value"in we&&o(oe,"value",null,we.value,X),(J=we.onVnodeBeforeMount)&&as(J,z,S)}be&&zs(S,null,z,"beforeMount");const Ve=Xu(W,ve);Ve&&ve.beforeEnter(oe),n(oe,M,V),((J=we&&we.onVnodeMounted)||Ve||be)&&wt(()=>{J&&as(J,z,S),Ve&&ve.enter(oe),be&&zs(S,null,z,"mounted")},W)},P=(S,M,V,z,W)=>{if(V&&p(S,V),z)for(let X=0;X<z.length;X++)p(S,z[X]);if(W){let X=W.subTree;if(M===X||jr(X.type)&&(X.ssContent===M||X.ssFallback===M)){const ue=W.vnode;P(S,ue,ue.scopeId,ue.slotScopeIds,W.parent)}}},F=(S,M,V,z,W,X,ue,ie,oe=0)=>{for(let J=oe;J<S.length;J++){const we=S[J]=ie?Ln(S[J]):rs(S[J]);v(null,we,M,V,z,W,X,ue,ie)}},x=(S,M,V,z,W,X,ue)=>{const ie=M.el=S.el;let{patchFlag:oe,dynamicChildren:J,dirs:we}=M;oe|=S.patchFlag&16;const ge=S.props||Ge,ve=M.props||Ge;let be;if(V&&Jn(V,!1),(be=ve.onVnodeBeforeUpdate)&&as(be,V,M,S),we&&zs(M,S,V,"beforeUpdate"),V&&Jn(V,!0),(ge.innerHTML&&ve.innerHTML==null||ge.textContent&&ve.textContent==null)&&u(ie,""),J?$(S.dynamicChildren,J,ie,V,z,Il(M,W),X):ue||Y(S,M,ie,null,V,z,Il(M,W),X,!1),oe>0){if(oe&16)b(ie,ge,ve,V,W);else if(oe&2&&ge.class!==ve.class&&o(ie,"class",null,ve.class,W),oe&4&&o(ie,"style",ge.style,ve.style,W),oe&8){const Ve=M.dynamicProps;for(let Ze=0;Ze<Ve.length;Ze++){const Ke=Ve[Ze],At=ge[Ke],Tt=ve[Ke];(Tt!==At||Ke==="value")&&o(ie,Ke,At,Tt,W,V)}}oe&1&&S.children!==M.children&&u(ie,M.children)}else!ue&&J==null&&b(ie,ge,ve,V,W);((be=ve.onVnodeUpdated)||we)&&wt(()=>{be&&as(be,V,M,S),we&&zs(M,S,V,"updated")},z)},$=(S,M,V,z,W,X,ue)=>{for(let ie=0;ie<M.length;ie++){const oe=S[ie],J=M[ie],we=oe.el&&(oe.type===Ae||!Us(oe,J)||oe.shapeFlag&198)?d(oe.el):V;v(oe,J,we,null,z,W,X,ue,!0)}},b=(S,M,V,z,W)=>{if(M!==V){if(M!==Ge)for(const X in M)!nn(X)&&!(X in V)&&o(S,X,M[X],null,W,z);for(const X in V){if(nn(X))continue;const ue=V[X],ie=M[X];ue!==ie&&X!=="value"&&o(S,X,ie,ue,W,z)}"value"in V&&o(S,"value",M.value,V.value,W)}},I=(S,M,V,z,W,X,ue,ie,oe)=>{const J=M.el=S?S.el:a(""),we=M.anchor=S?S.anchor:a("");let{patchFlag:ge,dynamicChildren:ve,slotScopeIds:be}=M;be&&(ie=ie?ie.concat(be):be),S==null?(n(J,V,z),n(we,V,z),F(M.children||[],V,we,W,X,ue,ie,oe)):ge>0&&ge&64&&ve&&S.dynamicChildren&&S.dynamicChildren.length===ve.length?($(S.dynamicChildren,ve,V,W,X,ue,ie),(M.key!=null||W&&M===W.subTree)&&wl(S,M,!0)):Y(S,M,V,we,W,X,ue,ie,oe)},U=(S,M,V,z,W,X,ue,ie,oe)=>{M.slotScopeIds=ie,S==null?M.shapeFlag&512?W.ctx.activate(M,V,z,ue,oe):K(M,V,z,W,X,ue,oe):ne(S,M,oe)},K=(S,M,V,z,W,X,ue)=>{const ie=S.component=cd(S,z,W);if(To(S)&&(ie.ctx.renderer=ae),dd(ie,!1,ue),ie.asyncDep){if(W&&W.registerDep(ie,te,ue),!S.el){const oe=ie.subTree=Re(yt);w(null,oe,M,V),S.placeholder=oe.el}}else te(ie,S,M,V,W,X,ue)},ne=(S,M,V)=>{const z=M.component=S.component;if(p4(S,M,V))if(z.asyncDep&&!z.asyncResolved){he(z,M,V);return}else z.next=M,z.update();else M.el=S.el,z.vnode=M},te=(S,M,V,z,W,X,ue)=>{const ie=()=>{if(S.isMounted){let{next:ge,bu:ve,u:be,parent:Ve,vnode:Ze}=S;{const xt=Ju(S);if(xt){ge&&(ge.el=Ze.el,he(S,ge,ue)),xt.asyncDep.then(()=>{S.isUnmounted||ie()});return}}let Ke=ge,At;Jn(S,!1),ge?(ge.el=Ze.el,he(S,ge,ue)):ge=Ze,ve&&bi(ve),(At=ge.props&&ge.props.onVnodeBeforeUpdate)&&as(At,Ve,ge,Ze),Jn(S,!0);const Tt=Hr(S),$t=S.subTree;S.subTree=Tt,v($t,Tt,d($t.el),Fs($t),S,W,X),ge.el=Tt.el,Ke===null&&Gr(S,Tt.el),be&&wt(be,W),(At=ge.props&&ge.props.onVnodeUpdated)&&wt(()=>as(At,Ve,ge,Ze),W)}else{let ge;const{el:ve,props:be}=M,{bm:Ve,m:Ze,parent:Ke,root:At,type:Tt}=S,$t=dn(M);if(Jn(S,!1),Ve&&bi(Ve),!$t&&(ge=be&&be.onVnodeBeforeMount)&&as(ge,Ke,M),Jn(S,!0),ve&&nt){const xt=()=>{S.subTree=Hr(S),nt(ve,S.subTree,S,W,null)};$t&&Tt.__asyncHydrate?Tt.__asyncHydrate(ve,S,xt):xt()}else{At.ce&&At.ce._def.shadowRoot!==!1&&At.ce._injectChildStyle(Tt);const xt=S.subTree=Hr(S);v(null,xt,V,z,S,W,X),M.el=xt.el}if(Ze&&wt(Ze,W),!$t&&(ge=be&&be.onVnodeMounted)){const xt=M;wt(()=>as(ge,Ke,xt),W)}(M.shapeFlag&256||Ke&&dn(Ke.vnode)&&Ke.vnode.shapeFlag&256)&&S.a&&wt(S.a,W),S.isMounted=!0,M=V=z=null}};S.scope.on();const oe=S.effect=new lo(ie);S.scope.off();const J=S.update=oe.run.bind(oe),we=S.job=oe.runIfDirty.bind(oe);we.i=S,we.id=S.uid,oe.scheduler=()=>nl(we),Jn(S,!0),J()},he=(S,M,V)=>{M.component=S;const z=S.vnode.props;S.vnode=M,S.next=null,_4(S,M.props,z,V),C4(S,M.children,V),Bs(),eu(S),js()},Y=(S,M,V,z,W,X,ue,ie,oe=!1)=>{const J=S&&S.children,we=S?S.shapeFlag:0,ge=M.children,{patchFlag:ve,shapeFlag:be}=M;if(ve>0){if(ve&128){st(J,ge,V,z,W,X,ue,ie,oe);return}else if(ve&256){De(J,ge,V,z,W,X,ue,ie,oe);return}}be&8?(we&16&&Vs(J,W,X),ge!==J&&u(V,ge)):we&16?be&16?st(J,ge,V,z,W,X,ue,ie,oe):Vs(J,W,X,!0):(we&8&&u(V,""),be&16&&F(ge,V,z,W,X,ue,ie,oe))},De=(S,M,V,z,W,X,ue,ie,oe)=>{S=S||Ii,M=M||Ii;const J=S.length,we=M.length,ge=Math.min(J,we);let ve;for(ve=0;ve<ge;ve++){const be=M[ve]=oe?Ln(M[ve]):rs(M[ve]);v(S[ve],be,V,null,W,X,ue,ie,oe)}J>we?Vs(S,W,X,!0,!1,ge):F(M,V,z,W,X,ue,ie,oe,ge)},st=(S,M,V,z,W,X,ue,ie,oe)=>{let J=0;const we=M.length;let ge=S.length-1,ve=we-1;for(;J<=ge&&J<=ve;){const be=S[J],Ve=M[J]=oe?Ln(M[J]):rs(M[J]);if(Us(be,Ve))v(be,Ve,V,null,W,X,ue,ie,oe);else break;J++}for(;J<=ge&&J<=ve;){const be=S[ge],Ve=M[ve]=oe?Ln(M[ve]):rs(M[ve]);if(Us(be,Ve))v(be,Ve,V,null,W,X,ue,ie,oe);else break;ge--,ve--}if(J>ge){if(J<=ve){const be=ve+1,Ve=be<we?M[be].el:z;for(;J<=ve;)v(null,M[J]=oe?Ln(M[J]):rs(M[J]),V,Ve,W,X,ue,ie,oe),J++}}else if(J>ve)for(;J<=ge;)Lt(S[J],W,X,!0),J++;else{const be=J,Ve=J,Ze=new Map;for(J=Ve;J<=ve;J++){const Yt=M[J]=oe?Ln(M[J]):rs(M[J]);Yt.key!=null&&Ze.set(Yt.key,J)}let Ke,At=0;const Tt=ve-Ve+1;let $t=!1,xt=0;const et=new Array(Tt);for(J=0;J<Tt;J++)et[J]=0;for(J=be;J<=ge;J++){const Yt=S[J];if(At>=Tt){Lt(Yt,W,X,!0);continue}let ts;if(Yt.key!=null)ts=Ze.get(Yt.key);else for(Ke=Ve;Ke<=ve;Ke++)if(et[Ke-Ve]===0&&Us(Yt,M[Ke])){ts=Ke;break}ts===void 0?Lt(Yt,W,X,!0):(et[ts-Ve]=J+1,ts>=xt?xt=ts:$t=!0,v(Yt,M[ts],V,null,W,X,ue,ie,oe),At++)}const eo=$t?y4(et):Ii;for(Ke=eo.length-1,J=Tt-1;J>=0;J--){const Yt=Ve+J,ts=M[Yt],_i=M[Yt+1],Oa=Yt+1<we?_i.el||ed(_i):z;et[J]===0?v(null,ts,V,Oa,W,X,ue,ie,oe):$t&&(Ke<0||J!==eo[Ke]?_e(ts,V,Oa,2):Ke--)}}},_e=(S,M,V,z,W=null)=>{const{el:X,type:ue,transition:ie,children:oe,shapeFlag:J}=S;if(J&6){_e(S.component.subTree,M,V,z);return}if(J&128){S.suspense.move(M,V,z);return}if(J&64){ue.move(S,M,V,ae);return}if(ue===Ae){n(X,M,V);for(let ge=0;ge<oe.length;ge++)_e(oe[ge],M,V,z);n(S.anchor,M,V);return}if(ue===ei){g(S,M,V);return}if(z!==2&&J&1&&ie)if(z===0)ie.beforeEnter(X),n(X,M,V),wt(()=>ie.enter(X),W);else{const{leave:ge,delayLeave:ve,afterLeave:be}=ie,Ve=()=>{S.ctx.isUnmounted?i(X):n(X,M,V)},Ze=()=>{X._isLeaving&&X[cn](!0),ge(X,()=>{Ve(),be&&be()})};ve?ve(X,Ve,Ze):Ze()}else n(X,M,V)},Lt=(S,M,V,z=!1,W=!1)=>{const{type:X,props:ue,ref:ie,children:oe,dynamicChildren:J,shapeFlag:we,patchFlag:ge,dirs:ve,cacheIndex:be}=S;if(ge===-2&&(W=!1),ie!=null&&(Bs(),Di(ie,null,V,S,!0),js()),be!=null&&(M.renderCache[be]=void 0),we&256){M.ctx.deactivate(S);return}const Ve=we&1&&ve,Ze=!dn(S);let Ke;if(Ze&&(Ke=ue&&ue.onVnodeBeforeUnmount)&&as(Ke,M,S),we&6)ds(S.component,V,z);else{if(we&128){S.suspense.unmount(V,z);return}Ve&&zs(S,null,M,"beforeUnmount"),we&64?S.type.remove(S,M,V,ae,z):J&&!J.hasOnce&&(X!==Ae||ge>0&&ge&64)?Vs(J,M,V,!1,!0):(X===Ae&&ge&384||!W&&we&16)&&Vs(oe,M,V),z&&Os(S)}(Ze&&(Ke=ue&&ue.onVnodeUnmounted)||Ve)&&wt(()=>{Ke&&as(Ke,M,S),Ve&&zs(S,null,M,"unmounted")},V)},Os=S=>{const{type:M,el:V,anchor:z,transition:W}=S;if(M===Ae){Ft(V,z);return}if(M===ei){_(S);return}const X=()=>{i(V),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(S.shapeFlag&1&&W&&!W.persisted){const{leave:ue,delayLeave:ie}=W,oe=()=>ue(V,X);ie?ie(S.el,X,oe):oe()}else X()},Ft=(S,M)=>{let V;for(;S!==M;)V=h(S),i(S),S=V;i(M)},ds=(S,M,V)=>{const{bum:z,scope:W,job:X,subTree:ue,um:ie,m:oe,a:J}=S;Br(oe),Br(J),z&&bi(z),W.stop(),X&&(X.flags|=8,Lt(ue,S,M,V)),ie&&wt(ie,M),wt(()=>{S.isUnmounted=!0},M)},Vs=(S,M,V,z=!1,W=!1,X=0)=>{for(let ue=X;ue<S.length;ue++)Lt(S[ue],M,V,z,W)},Fs=S=>{if(S.shapeFlag&6)return Fs(S.component.subTree);if(S.shapeFlag&128)return S.suspense.next();const M=h(S.anchor||S.el),V=M&&M[au];return V?h(V):M};let en=!1;const $n=(S,M,V)=>{let z;S==null?M._vnode&&(Lt(M._vnode,null,null,!0),z=M._vnode.component):v(M._vnode||null,S,M,null,null,null,V),M._vnode=S,en||(en=!0,eu(z),Tr(),en=!1)},ae={p:v,um:Lt,m:_e,r:Os,mt:K,mc:F,pc:Y,pbc:$,n:Fs,o:e};let Te,nt;return t&&([Te,nt]=t(ae)),{render:$n,hydrate:Te,createApp:a4($n,Te)}}function Il({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Jn({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Xu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function wl(e,t,s=!1){const n=e.children,i=t.children;if(pe(n)&&pe(i))for(let o=0;o<n.length;o++){const r=n[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=Ln(i[o]),a.el=r.el),!s&&a.patchFlag!==-2&&wl(r,a)),a.type===bn&&(a.patchFlag!==-1?a.el=r.el:a.__elIndex=o+(e.type===Ae?1:0)),a.type===yt&&!a.el&&(a.el=r.el)}}function y4(e){const t=e.slice(),s=[0];let n,i,o,r,a;const l=e.length;for(n=0;n<l;n++){const c=e[n];if(c!==0){if(i=s[s.length-1],e[i]<c){t[n]=i,s.push(n);continue}for(o=0,r=s.length-1;o<r;)a=o+r>>1,e[s[a]]<c?o=a+1:r=a;c<e[s[o]]&&(o>0&&(t[n]=s[o-1]),s[o]=n)}}for(o=s.length,r=s[o-1];o-- >0;)s[o]=r,r=t[r];return s}function Ju(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ju(t)}function Br(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ed(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ed(t.subTree):null}const jr=e=>e.__isSuspense;let Rl=0;const S4={name:"Suspense",__isSuspense:!0,process(e,t,s,n,i,o,r,a,l,c){if(e==null)T4(t,s,n,i,o,r,a,l,c);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}I4(e,t,s,n,i,r,a,l,c)}},hydrate:w4,normalize:R4};function Oo(e,t){const s=e.props&&e.props[t];Oe(s)&&s()}function T4(e,t,s,n,i,o,r,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),h=e.suspense=td(e,i,n,t,d,s,o,r,a,l);c(null,h.pendingBranch=e.ssContent,d,null,n,h,o,r),h.deps>0?(Oo(e,"onPending"),Oo(e,"onFallback"),c(null,e.ssFallback,t,s,n,null,o,r),Fi(h,e.ssFallback)):h.resolve(!1,!0)}function I4(e,t,s,n,i,o,r,a,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const h=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:v,isInFallback:O,isHydrating:w}=d;if(v)d.pendingBranch=h,Us(v,h)?(l(v,h,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0?d.resolve():O&&(w||(l(m,p,s,n,i,null,o,r,a),Fi(d,p)))):(d.pendingId=Rl++,w?(d.isHydrating=!1,d.activeBranch=v):c(v,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),O?(l(null,h,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0?d.resolve():(l(m,p,s,n,i,null,o,r,a),Fi(d,p))):m&&Us(m,h)?(l(m,h,s,n,i,d,o,r,a),d.resolve(!0)):(l(null,h,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0&&d.resolve()));else if(m&&Us(m,h))l(m,h,s,n,i,d,o,r,a),Fi(d,h);else if(Oo(t,"onPending"),d.pendingBranch=h,h.shapeFlag&512?d.pendingId=h.component.suspenseId:d.pendingId=Rl++,l(null,h,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0)d.resolve();else{const{timeout:C,pendingId:g}=d;C>0?setTimeout(()=>{d.pendingId===g&&d.fallback(p)},C):C===0&&d.fallback(p)}}function td(e,t,s,n,i,o,r,a,l,c,u=!1){const{p:d,m:h,um:p,n:m,o:{parentNode:v,remove:O}}=c;let w;const C=M4(e);C&&t&&t.pendingBranch&&(w=t.pendingId,t.deps++);const g=e.props?ur(e.props.timeout):void 0,_=o,E={vnode:e,parent:t,parentComponent:s,namespace:r,container:n,hiddenContainer:i,deps:0,pendingId:Rl++,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(L=!1,P=!1){const{vnode:F,activeBranch:x,pendingBranch:$,pendingId:b,effects:I,parentComponent:U,container:K,isInFallback:ne}=E;let te=!1;E.isHydrating?E.isHydrating=!1:L||(te=x&&$.transition&&$.transition.mode==="out-in",te&&(x.transition.afterLeave=()=>{b===E.pendingId&&(h($,K,o===_?m(x):o,0),mo(I),ne&&F.ssFallback&&(F.ssFallback.el=null))}),x&&(v(x.el)===K&&(o=m(x)),p(x,U,E,!0),!te&&ne&&F.ssFallback&&wt(()=>F.ssFallback.el=null,E)),te||h($,K,o,0)),Fi(E,$),E.pendingBranch=null,E.isInFallback=!1;let he=E.parent,Y=!1;for(;he;){if(he.pendingBranch){he.effects.push(...I),Y=!0;break}he=he.parent}!Y&&!te&&mo(I),E.effects=[],C&&t&&t.pendingBranch&&w===t.pendingId&&(t.deps--,t.deps===0&&!P&&t.resolve()),Oo(F,"onResolve")},fallback(L){if(!E.pendingBranch)return;const{vnode:P,activeBranch:F,parentComponent:x,container:$,namespace:b}=E;Oo(P,"onFallback");const I=m(F),U=()=>{E.isInFallback&&(d(null,L,$,I,x,null,b,a,l),Fi(E,L))},K=L.transition&&L.transition.mode==="out-in";K&&(F.transition.afterLeave=U),E.isInFallback=!0,p(F,x,null,!0),K||U()},move(L,P,F){E.activeBranch&&h(E.activeBranch,L,P,F),E.container=L},next(){return E.activeBranch&&m(E.activeBranch)},registerDep(L,P,F){const x=!!E.pendingBranch;x&&E.deps++;const $=L.vnode.el;L.asyncDep.catch(b=>{Yn(b,L,0)}).then(b=>{if(L.isUnmounted||E.isUnmounted||E.pendingId!==L.suspenseId)return;L.asyncResolved=!0;const{vnode:I}=L;Ll(L,b,!1),$&&(I.el=$);const U=!$&&L.subTree.el;P(L,I,v($||L.subTree.el),$?null:m(L.subTree),E,r,F),U&&(I.placeholder=null,O(U)),Gr(L,I.el),x&&--E.deps===0&&E.resolve()})},unmount(L,P){E.isUnmounted=!0,E.activeBranch&&p(E.activeBranch,s,L,P),E.pendingBranch&&p(E.pendingBranch,s,L,P)}};return E}function w4(e,t,s,n,i,o,r,a,l){const c=t.suspense=td(t,n,s,e.parentNode,document.createElement("div"),null,i,o,r,a,!0),u=l(e,c.pendingBranch=t.ssContent,s,c,o,r);return c.deps===0&&c.resolve(!1,!0),u}function R4(e){const{shapeFlag:t,children:s}=e,n=t&32;e.ssContent=sd(n?s.default:s),e.ssFallback=n?sd(s.fallback):Re(yt)}function sd(e){let t;if(Oe(e)){const s=ti&&e._c;s&&(e._d=!1,R()),e=e(),s&&(e._d=!0,t=Kt,id())}return pe(e)&&(e=d4(e)),e=rs(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function nd(e,t){t&&t.pendingBranch?pe(e)?t.effects.push(...e):t.effects.push(e):mo(e)}function Fi(e,t){e.activeBranch=t;const{vnode:s,parentComponent:n}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;s.el=i,n&&n.subTree===s&&(n.vnode.el=i,Gr(n,i))}function M4(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ae=Symbol.for("v-fgt"),bn=Symbol.for("v-txt"),yt=Symbol.for("v-cmt"),ei=Symbol.for("v-stc"),bo=[];let Kt=null;function R(e=!1){bo.push(Kt=e?null:[])}function id(){bo.pop(),Kt=bo[bo.length-1]||null}let ti=1;function Lo(e,t=!1){ti+=e,e<0&&Kt&&t&&(Kt.hasOnce=!0)}function od(e){return e.dynamicChildren=ti>0?Kt||Ii:null,id(),ti>0&&Kt&&Kt.push(e),e}function k(e,t,s,n,i,o){return od(y(e,t,s,n,i,o,!0))}function xe(e,t,s,n,i){return od(Re(e,t,s,n,i,!0))}function pn(e){return e?e.__v_isVNode===!0:!1}function Us(e,t){return e.type===t.type&&e.key===t.key}function O4(e){}const rd=({key:e})=>e??null,qr=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Ue(e)||_t(e)||Oe(e)?{i:Ut,r:e,k:t,f:!!s}:e:null);function y(e,t=null,s=null,n=0,i=null,o=e===Ae?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&rd(t),ref:t&&qr(t),scopeId:wr,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ut};return a?(Ml(l,s),o&128&&e.normalize(l)):s&&(l.shapeFlag|=Ue(s)?8:16),ti>0&&!r&&Kt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Kt.push(l),l}const Re=b4;function b4(e,t=null,s=null,n=0,i=null,o=!1){if((!e||e===bu)&&(e=yt),pn(e)){const a=Qs(e,t,!0);return s&&Ml(a,s),ti>0&&!o&&Kt&&(a.shapeFlag&6?Kt[Kt.indexOf(e)]=a:Kt.push(a)),a.patchFlag=-2,a}if(P4(e)&&(e=e.__vccOpts),t){t=ad(t);let{class:a,style:l}=t;a&&!Ue(a)&&(t.class=Pe(a)),Xe(l)&&(_o(l)&&!pe(l)&&(l=$e({},l)),t.style=lt(l))}const r=Ue(e)?1:jr(e)?128:lu(e)?64:Xe(e)?4:Oe(e)?2:0;return y(e,t,s,n,i,r,o,!0)}function ad(e){return e?_o(e)||Gu(e)?$e({},e):e:null}function Qs(e,t,s=!1,n=!1){const{props:i,ref:o,patchFlag:r,children:a,transition:l}=e,c=t?ld(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&rd(c),ref:t&&t.ref?s&&o?pe(o)?o.concat(qr(t)):[o,qr(t)]:qr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ae?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Qs(e.ssContent),ssFallback:e.ssFallback&&Qs(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&un(u,l.clone(u)),u}function $i(e=" ",t=0){return Re(bn,null,e,t)}function Kr(e,t){const s=Re(ei,null,e);return s.staticCount=t,s}function le(e="",t=!1){return t?(R(),xe(yt,null,e)):Re(yt,null,e)}function rs(e){return e==null||typeof e=="boolean"?Re(yt):pe(e)?Re(Ae,null,e.slice()):pn(e)?Ln(e):Re(bn,null,String(e))}function Ln(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Qs(e)}function Ml(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(pe(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Ml(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!Gu(t)?t._ctx=Ut:i===3&&Ut&&(Ut.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Oe(t)?(t={default:t,_ctx:Ut},s=32):(t=String(t),n&64?(s=16,t=[$i(t)]):s=8);e.children=t,e.shapeFlag|=s}function ld(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=Pe([t.class,n.class]));else if(i==="style")t.style=lt([t.style,n.style]);else if(qn(i)){const o=t[i],r=n[i];r&&o!==r&&!(pe(o)&&o.includes(r))&&(t[i]=o?[].concat(o,r):r)}else i!==""&&(t[i]=n[i])}return t}function as(e,t,s,n=null){ys(e,t,7,[s,n])}const L4=Du();let A4=0;function cd(e,t,s){const n=e.type,i=(t?t.appContext:e.appContext)||L4,o={uid:A4++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new qa(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ju(n,i),emitsOptions:Vu(n,i),emit:null,emitted:null,propsDefaults:Ge,inheritAttrs:n.inheritAttrs,ctx:Ge,data:Ge,props:Ge,attrs:Ge,slots:Ge,refs:Ge,setupState:Ge,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=c4.bind(null,o),e.ce&&e.ce(o),o}let Nt=null;const ls=()=>Nt||Ut;let zr,Ol;{const e=dr(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};zr=t("__VUE_INSTANCE_SETTERS__",s=>Nt=s),Ol=t("__VUE_SSR_SETTERS__",s=>Hi=s)}const si=e=>{const t=Nt;return zr(e),e.scope.on(),()=>{e.scope.off(),zr(t)}},bl=()=>{Nt&&Nt.scope.off(),zr(null)};function ud(e){return e.vnode.shapeFlag&4}let Hi=!1;function dd(e,t=!1,s=!1){t&&Ol(t);const{props:n,children:i}=e.vnode,o=ud(e);g4(e,n,o,t),v4(e,i,s||t);const r=o?x4(e,t):void 0;return t&&Ol(!1),r}function x4(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ml);const{setup:n}=s;if(n){Bs();const i=e.setupContext=n.length>1?pd(e):null,o=si(e),r=Zn(n,e,0,[e.props,i]),a=Ba(r);if(js(),o(),(a||e.sp)&&!dn(e)&&ll(e),a){if(r.then(bl,bl),t)return r.then(l=>{Ll(e,l,t)}).catch(l=>{Yn(l,e,0)});e.asyncDep=r}else Ll(e,r,t)}else hd(e,t)}function Ll(e,t,s){Oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Xe(t)&&(e.setupState=tl(t)),hd(e,s)}let Qr,Al;function fd(e){Qr=e,Al=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,H3))}}const k4=()=>!Qr;function hd(e,t,s){const n=e.type;if(!e.render){if(!t&&Qr&&!n.render){const i=n.template||vl(e).template;if(i){const{isCustomElement:o,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:l}=n,c=$e($e({isCustomElement:o,delimiters:a},r),l);n.render=Qr(i,c)}}e.render=n.render||kt,Al&&Al(e)}{const i=si(e);Bs();try{t4(e)}finally{js(),i()}}}const U4={get(e,t){return jt(e,"get",""),e[t]}};function pd(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,U4),slots:e.slots,emit:e.emit,expose:t}}function Ao(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(tl(q1(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in wo)return wo[s](e)},has(t,s){return s in t||s in wo}})):e.proxy}const N4=/(?:^|[-_])\w/g,D4=e=>e.replace(N4,t=>t.toUpperCase()).replace(/[-_]/g,"");function Wr(e,t=!0){return Oe(e)?e.displayName||e.name:e.name||t&&e.__name}function gd(e,t,s=!1){let n=Wr(t);if(!n&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(n=i[1])}if(!n&&e){const i=o=>{for(const r in o)if(o[r]===t)return r};n=i(e.components)||e.parent&&i(e.parent.type.components)||i(e.appContext.components)}return n?D4(n):s?"App":"Anonymous"}function P4(e){return Oe(e)&&"__vccOpts"in e}const me=(e,t)=>Q5(e,t,Hi);function _d(e,t,s){try{Lo(-1);const n=arguments.length;return n===2?Xe(t)&&!pe(t)?pn(t)?Re(e,null,[t]):Re(e,t):Re(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&pn(s)&&(s=[s]),Re(e,t,s))}finally{Lo(1)}}function V4(){}function F4(e,t,s,n){const i=s[n];if(i&&md(i,e))return i;const o=t();return o.memo=e.slice(),o.cacheIndex=n,s[n]=o}function md(e,t){const s=e.memo;if(s.length!=t.length)return!1;for(let n=0;n<s.length;n++)if(Xt(s[n],t[n]))return!1;return ti>0&&Kt&&Kt.push(e),!0}const Ed="3.5.27",$4=kt,H4=a3,G4=Ui,B4=su,j4={createComponentInstance:cd,setupComponent:dd,renderComponentRoot:Hr,setCurrentRenderingInstance:vo,isVNode:pn,normalizeVNode:rs,getComponentPublicInstance:Ao,ensureValidVNode:pl,pushWarningContext:J5,popWarningContext:e3},q4=null,K4=null,z4=null;/**
|
|
309
|
+
* @vue/runtime-dom v3.5.27
|
|
305
310
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
306
311
|
* @license MIT
|
|
307
|
-
**/let Tl;const ld=typeof window<"u"&&window.trustedTypes;if(ld)try{Tl=ld.createPolicy("vue",{createHTML:e=>e})}catch{}const cd=Tl?e=>Tl.createHTML(e):e=>e,x4="http://www.w3.org/2000/svg",k4="http://www.w3.org/1998/Math/MathML",pn=typeof document<"u"?document:null,ud=pn&&pn.createElement("template"),dd={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?pn.createElementNS(x4,e):t==="mathml"?pn.createElementNS(k4,e):s?pn.createElement(e,{is:s}):pn.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>pn.createTextNode(e),createComment:e=>pn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,o){const r=s?s.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===o||!(i=i.nextSibling)););else{ud.innerHTML=cd(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=ud.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,s)}return[r?r.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Ln="transition",Mo="animation",Pi=Symbol("_vtc"),fd={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},hd=Ve({},Xa,fd),Il=(e=>(e.displayName="Transition",e.props=hd,e))((e,{slots:t})=>od(nu,gd(e),t)),ni=(e,t=[])=>{he(e)?e.forEach(s=>s(...t)):e&&e(...t)},pd=e=>e?he(e)?e.some(t=>t.length>1):e.length>1:!1;function gd(e){const t={};for(const T in e)T in fd||(t[T]=e[T]);if(e.css===!1)return t;const{name:s="v",type:n,duration:i,enterFromClass:o=`${s}-enter-from`,enterActiveClass:r=`${s}-enter-active`,enterToClass:a=`${s}-enter-to`,appearFromClass:l=o,appearActiveClass:c=r,appearToClass:u=a,leaveFromClass:d=`${s}-leave-from`,leaveActiveClass:h=`${s}-leave-active`,leaveToClass:p=`${s}-leave-to`}=e,_=U4(i),m=_&&_[0],b=_&&_[1],{onBeforeEnter:M,onEnter:C,onEnterCancelled:g,onLeave:E,onLeaveCancelled:v,onBeforeAppear:L=M,onAppear:k=C,onAppearCancelled:$=g}=t,A=(T,V,K,X)=>{T._enterCancelled=X,An(T,V?u:a),An(T,V?c:r),K&&K()},U=(T,V)=>{T._isLeaving=!1,An(T,d),An(T,p),An(T,h),V&&V()},O=T=>(V,K)=>{const X=T?k:C,te=()=>A(V,T,K);ni(X,[V,te]),_d(()=>{An(V,T?l:o),qs(V,T?u:a),pd(X)||md(V,n,m,te)})};return Ve(t,{onBeforeEnter(T){ni(M,[T]),qs(T,o),qs(T,r)},onBeforeAppear(T){ni(L,[T]),qs(T,l),qs(T,c)},onEnter:O(!1),onAppear:O(!0),onLeave(T,V){T._isLeaving=!0;const K=()=>U(T,V);qs(T,d),T._enterCancelled?(qs(T,h),wl(T)):(wl(T),qs(T,h)),_d(()=>{T._isLeaving&&(An(T,d),qs(T,p),pd(E)||md(T,n,b,K))}),ni(E,[T,K])},onEnterCancelled(T){A(T,!1,void 0,!0),ni(g,[T])},onAppearCancelled(T){A(T,!0,void 0,!0),ni($,[T])},onLeaveCancelled(T){U(T),ni(v,[T])}})}function U4(e){if(e==null)return null;if(qe(e))return[Rl(e.enter),Rl(e.leave)];{const t=Rl(e);return[t,t]}}function Rl(e){return ur(e)}function qs(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.add(s)),(e[Pi]||(e[Pi]=new Set)).add(t)}function An(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const s=e[Pi];s&&(s.delete(t),s.size||(e[Pi]=void 0))}function _d(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let N4=0;function md(e,t,s,n){const i=e._endId=++N4,o=()=>{i===e._endId&&n()};if(s!=null)return setTimeout(o,s);const{type:r,timeout:a,propCount:l}=Ed(e,t);if(!r)return n();const c=r+"end";let u=0;const d=()=>{e.removeEventListener(c,h),o()},h=p=>{p.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),e.addEventListener(c,h)}function Ed(e,t){const s=window.getComputedStyle(e),n=_=>(s[_]||"").split(", "),i=n(`${Ln}Delay`),o=n(`${Ln}Duration`),r=vd(i,o),a=n(`${Mo}Delay`),l=n(`${Mo}Duration`),c=vd(a,l);let u=null,d=0,h=0;t===Ln?r>0&&(u=Ln,d=r,h=o.length):t===Mo?c>0&&(u=Mo,d=c,h=l.length):(d=Math.max(r,c),u=d>0?r>c?Ln:Mo:null,h=u?u===Ln?o.length:l.length:0);const p=u===Ln&&/\b(?:transform|all)(?:,|$)/.test(n(`${Ln}Property`).toString());return{type:u,timeout:d,propCount:h,hasTransform:p}}function vd(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((s,n)=>Cd(s)+Cd(e[n])))}function Cd(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function wl(e){return(e?e.ownerDocument:document).body.offsetHeight}function D4(e,t,s){const n=e[Pi];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Qr=Symbol("_vod"),yd=Symbol("_vsh"),Ks={name:"show",beforeMount(e,{value:t},{transition:s}){e[Qr]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):Oo(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:n}){!t!=!s&&(n?t?(n.beforeEnter(e),Oo(e,!0),n.enter(e)):n.leave(e,()=>{Oo(e,!1)}):Oo(e,t))},beforeUnmount(e,{value:t}){Oo(e,t)}};function Oo(e,t){e.style.display=t?e[Qr]:"none",e[yd]=!t}function P4(){Ks.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Sd=Symbol("");function V4(e){const t=es();if(!t)return;const s=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>Wr(o,i))},n=()=>{const i=e(t.proxy);t.ce?Wr(t.ce,i):Ml(t.subTree,i),s(i)};il(()=>{co(n)}),lt(()=>{us(n,Dt,{flush:"post"});const i=new MutationObserver(n);i.observe(t.subTree.el.parentNode,{childList:!0}),wt(()=>i.disconnect())})}function Ml(e,t){if(e.shapeFlag&128){const s=e.suspense;e=s.activeBranch,s.pendingBranch&&!s.isHydrating&&s.effects.push(()=>{Ml(s.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Wr(e.el,t);else if(e.type===Ne)e.children.forEach(s=>Ml(s,t));else if(e.type===ei){let{el:s,anchor:n}=e;for(;s&&(Wr(s,t),s!==n);)s=s.nextSibling}}function Wr(e,t){if(e.nodeType===1){const s=e.style;let n="";for(const i in t){const o=Zp(t[i]);s.setProperty(`--${i}`,o),n+=`--${i}: ${o};`}s[Sd]=n}}const F4=/(?:^|;)\s*display\s*:/;function $4(e,t,s){const n=e.style,i=Le(s);let o=!1;if(s&&!i){if(t)if(Le(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();s[a]==null&&bo(n,a,"")}else for(const r in t)s[r]==null&&bo(n,r,"");for(const r in s){r==="display"&&(o=!0);const a=s[r];a!=null?G4(e,r,!Le(t)&&t?t[r]:void 0,a)||bo(n,r,a):bo(n,r,"")}}else if(i){if(t!==s){const r=n[Sd];r&&(s+=";"+r),n.cssText=s,o=F4.test(s)}}else t&&e.removeAttribute("style");Qr in e&&(e[Qr]=o?n.display:"",e[yd]&&(n.display="none"))}const Td=/\s*!important$/;function bo(e,t,s){if(he(s))s.forEach(n=>bo(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=H4(e,t);Td.test(s)?e.setProperty(ts(n),s.replace(Td,""),"important"):e[n]=s}}const Id=["Webkit","Moz","ms"],Ol={};function H4(e,t){const s=Ol[t];if(s)return s;let n=Xe(t);if(n!=="filter"&&n in e)return Ol[t]=n;n=qn(n);for(let i=0;i<Id.length;i++){const o=Id[i]+n;if(o in e)return Ol[t]=o}return t}function G4(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Le(n)&&s===n}const Rd="http://www.w3.org/1999/xlink";function wd(e,t,s,n,i,o=Qp(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Rd,t.slice(6,t.length)):e.setAttributeNS(Rd,t,s):s==null||o&&!h1(s)?e.removeAttribute(t):e.setAttribute(t,o?"":Bt(s)?String(s):s)}function Md(e,t,s,n,i){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?cd(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,l=s==null?e.type==="checkbox"?"on":"":String(s);(a!==l||!("_value"in e))&&(e.value=l),s==null&&e.removeAttribute(t),e._value=s;return}let r=!1;if(s===""||s==null){const a=typeof e[t];a==="boolean"?s=h1(s):s==null&&a==="string"?(s="",r=!0):a==="number"&&(s=0,r=!0)}try{e[t]=s}catch{}r&&e.removeAttribute(i||t)}function gn(e,t,s,n){e.addEventListener(t,s,n)}function B4(e,t,s,n){e.removeEventListener(t,s,n)}const Od=Symbol("_vei");function j4(e,t,s,n,i=null){const o=e[Od]||(e[Od]={}),r=o[t];if(n&&r)r.value=n;else{const[a,l]=q4(t);if(n){const c=o[t]=Q4(n,i);gn(e,a,c,l)}else r&&(B4(e,a,r,l),o[t]=void 0)}}const bd=/(?:Once|Passive|Capture)$/;function q4(e){let t;if(bd.test(e)){t={};let n;for(;n=e.match(bd);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ts(e.slice(2)),t]}let bl=0;const K4=Promise.resolve(),z4=()=>bl||(K4.then(()=>bl=0),bl=Date.now());function Q4(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const i=s.value;if(he(i)){const o=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{o.call(n),n._stopped=!0};const r=i.slice(),a=[n];for(let l=0;l<r.length&&!n._stopped;l++){const c=r[l];c&&cs(c,t,5,a)}}else cs(i,t,5,[n])};return s.value=e,s.attached=z4(),s}const Ld=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ad=(e,t,s,n,i,o)=>{const r=i==="svg";t==="class"?D4(e,n,r):t==="style"?$4(e,s,n):Bn(t)?or(t)||j4(e,t,s,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):W4(e,t,n,r))?(Md(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&wd(e,t,n,r,o,t!=="value")):e._isVueCE&&(Z4(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Le(n)))?Md(e,Xe(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),wd(e,t,n,r))};function W4(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ld(t)&&we(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Ld(t)&&Le(s)?!1:t in e}function Z4(e,t){const s=e._def.props;if(!s)return!1;const n=Xe(t);return Array.isArray(s)?s.some(i=>Xe(i)===n):Object.keys(s).some(i=>Xe(i)===n)}const xd={};function Vi(e,t,s){let n=Te(e,t);rr(n)&&(n=Ve({},n,t));class i extends Zr{constructor(r){super(n,r,s)}}return i.def=n,i}const Y4=(e,t)=>Vi(e,t,Yd),J4=typeof HTMLElement<"u"?HTMLElement:class{};class Zr extends J4{constructor(t,s={},n=Al){super(),this._def=t,this._props=s,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==Al?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Ve({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.assignedSlot||t.parentNode||t.host);)if(t instanceof Zr){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,at(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const s of t)this._setAttr(s.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(n,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:r}=n;let a;if(o&&!he(o))for(const l in o){const c=o[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=ur(this._props[l])),(a||(a=Object.create(null)))[Xe(l)]=!0)}this._numberProps=a,this._resolveProps(n),this.shadowRoot&&this._applyStyles(r),this._mount(n)},s=this._def.__asyncLoader;s?this._pendingResolve=s().then(n=>{n.configureApp=this._def.configureApp,t(this._def=n,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const s=this._instance&&this._instance.exposed;if(s)for(const n in s)ze(this,n)||Object.defineProperty(this,n,{get:()=>D(s[n])})}_resolveProps(t){const{props:s}=t,n=he(s)?s:Object.keys(s||{});for(const i of Object.keys(this))i[0]!=="_"&&n.includes(i)&&this._setProp(i,this[i]);for(const i of n.map(Xe))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(o){this._setProp(i,o,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const s=this.hasAttribute(t);let n=s?this.getAttribute(t):xd;const i=Xe(t);s&&this._numberProps&&this._numberProps[i]&&(n=ur(n)),this._setProp(i,n,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,s,n=!0,i=!1){if(s!==this._props[t]&&(this._dirty=!0,s===xd?delete this._props[t]:(this._props[t]=s,t==="key"&&this._app&&(this._app._ceVNode.key=s)),i&&this._instance&&this._update(),n)){const o=this._ob;o&&(this._processMutations(o.takeRecords()),o.disconnect()),s===!0?this.setAttribute(ts(t),""):typeof s=="string"||typeof s=="number"?this.setAttribute(ts(t),s+""):s||this.removeAttribute(ts(t)),o&&o.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Zd(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const s=Ie(this._def,Ve(t,this._props));return this._instance||(s.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const i=(o,r)=>{this.dispatchEvent(new CustomEvent(o,rr(r[0])?Ve({detail:r},r[0]):{detail:r}))};n.emit=(o,...r)=>{i(o,r),ts(o)!==o&&i(ts(o),r)},this._setParent()}),s}_applyStyles(t,s,n){if(!t)return;if(s){if(s===this._def||this._styleChildren.has(s))return;this._styleChildren.add(s)}const i=this._nonce,o=this.shadowRoot,r=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(o);let a=null;for(let l=t.length-1;l>=0;l--){const c=document.createElement("style");i&&c.setAttribute("nonce",i),c.textContent=t[l],o.insertBefore(c,a||r),a=c,l===0&&(n||this._styleAnchors.set(this._def,c),s&&this._styleAnchors.set(s,c))}}_getStyleAnchor(t){if(!t)return null;const s=this._styleAnchors.get(t);return s&&s.parentNode===this.shadowRoot?s:(s&&this._styleAnchors.delete(t),null)}_getRootStyleInsertionAnchor(t){for(let s=0;s<t.childNodes.length;s++){const n=t.childNodes[s];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){const t=this._slots={};let s;for(;s=this.firstChild;){const n=s.nodeType===1&&s.getAttribute("slot")||"default";(t[n]||(t[n]=[])).push(s),this.removeChild(s)}}_renderSlots(){const t=this._getSlots(),s=this._instance.type.__scopeId;for(let n=0;n<t.length;n++){const i=t[n],o=i.getAttribute("name")||"default",r=this._slots[o],a=i.parentNode;if(r)for(const l of r){if(s&&l.nodeType===1){const c=s+"-s",u=document.createTreeWalker(l,1);l.setAttribute(c,"");let d;for(;d=u.nextNode();)d.setAttribute(c,"")}a.insertBefore(l,i)}else for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const s=new Set;for(const n of t){const i=n.querySelectorAll("slot");for(let o=0;o<i.length;o++)s.add(i[o])}return Array.from(s)}_injectChildStyle(t,s){this._applyStyles(t.styles,t,s)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(t){}}function kd(e){const t=es(),s=t&&t.ce;return s||null}function X4(){const e=kd();return e&&e.shadowRoot}function e6(e="$style"){{const t=es();if(!t)return $e;const s=t.type.__cssModules;if(!s)return $e;const n=s[e];return n||$e}}const Ud=new WeakMap,Nd=new WeakMap,Yr=Symbol("_moveCb"),Dd=Symbol("_enterCb"),t6=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:Ve({},hd,{tag:String,moveClass:String}),setup(e,{slots:t}){const s=es(),n=Ja();let i,o;return Nr(()=>{if(!i.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!o6(i[0].el,s.vnode.el,r)){i=[];return}i.forEach(s6),i.forEach(n6);const a=i.filter(i6);wl(s.vnode.el),a.forEach(l=>{const c=l.el,u=c.style;qs(c,r),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[Yr]=h=>{h&&h.target!==c||(!h||h.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",d),c[Yr]=null,An(c,r))};c.addEventListener("transitionend",d)}),i=[]}),()=>{const r=He(e),a=gd(r);let l=r.tag||Ne;if(i=[],o)for(let c=0;c<o.length;c++){const u=o[c];u.el&&u.el instanceof Element&&(i.push(u),ln(u,Li(u,a,n,s)),Ud.set(u,Pd(u.el)))}o=t.default?Or(t.default()):[];for(let c=0;c<o.length;c++){const u=o[c];u.key!=null&&ln(u,Li(u,a,n,s))}return Ie(l,null,o)}}});function s6(e){const t=e.el;t[Yr]&&t[Yr](),t[Dd]&&t[Dd]()}function n6(e){Nd.set(e,Pd(e.el))}function i6(e){const t=Ud.get(e),s=Nd.get(e),n=t.left-s.left,i=t.top-s.top;if(n||i){const o=e.el,r=o.style,a=o.getBoundingClientRect();let l=1,c=1;return o.offsetWidth&&(l=a.width/o.offsetWidth),o.offsetHeight&&(c=a.height/o.offsetHeight),(!Number.isFinite(l)||l===0)&&(l=1),(!Number.isFinite(c)||c===0)&&(c=1),Math.abs(l-1)<.01&&(l=1),Math.abs(c-1)<.01&&(c=1),r.transform=r.webkitTransform=`translate(${n/l}px,${i/c}px)`,r.transitionDuration="0s",e}}function Pd(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function o6(e,t,s){const n=e.cloneNode(),i=e[Pi];i&&i.forEach(a=>{a.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),s.split(/\s+/).forEach(a=>a&&n.classList.add(a)),n.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(n);const{hasTransform:r}=Ed(n);return o.removeChild(n),r}const xn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return he(t)?s=>Ii(t,s):t};function r6(e){e.target.composing=!0}function Vd(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Cs=Symbol("_assign");function Fd(e,t,s){return t&&(e=e.trim()),s&&(e=cr(e)),e}const Lo={created(e,{modifiers:{lazy:t,trim:s,number:n}},i){e[Cs]=xn(i);const o=n||i.props&&i.props.type==="number";gn(e,t?"change":"input",r=>{r.target.composing||e[Cs](Fd(e.value,s,o))}),(s||o)&&gn(e,"change",()=>{e.value=Fd(e.value,s,o)}),t||(gn(e,"compositionstart",r6),gn(e,"compositionend",Vd),gn(e,"change",Vd))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:i,number:o}},r){if(e[Cs]=xn(r),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?cr(e.value):e.value,l=t??"";if(a===l)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(n&&t===s||i&&e.value.trim()===l)||(e.value=l)}},Ao={deep:!0,created(e,t,s){e[Cs]=xn(s),gn(e,"change",()=>{const n=e._modelValue,i=Fi(e),o=e.checked,r=e[Cs];if(he(n)){const a=fr(n,i),l=a!==-1;if(o&&!l)r(n.concat(i));else if(!o&&l){const c=[...n];c.splice(a,1),r(c)}}else if(jn(n)){const a=new Set(n);o?a.add(i):a.delete(i),r(a)}else r(Bd(e,o))})},mounted:$d,beforeUpdate(e,t,s){e[Cs]=xn(s),$d(e,t,s)}};function $d(e,{value:t,oldValue:s},n){e._modelValue=t;let i;if(he(t))i=fr(t,n.props.value)>-1;else if(jn(t))i=t.has(n.props.value);else{if(t===s)return;i=tn(t,Bd(e,!0))}e.checked!==i&&(e.checked=i)}const Ll={created(e,{value:t},s){e.checked=tn(t,s.props.value),e[Cs]=xn(s),gn(e,"change",()=>{e[Cs](Fi(e))})},beforeUpdate(e,{value:t,oldValue:s},n){e[Cs]=xn(n),t!==s&&(e.checked=tn(t,n.props.value))}},Hd={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const i=jn(t);gn(e,"change",()=>{const o=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>s?cr(Fi(r)):Fi(r));e[Cs](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,at(()=>{e._assigning=!1})}),e[Cs]=xn(n)},mounted(e,{value:t}){Gd(e,t)},beforeUpdate(e,t,s){e[Cs]=xn(s)},updated(e,{value:t}){e._assigning||Gd(e,t)}};function Gd(e,t){const s=e.multiple,n=he(t);if(!(s&&!n&&!jn(t))){for(let i=0,o=e.options.length;i<o;i++){const r=e.options[i],a=Fi(r);if(s)if(n){const l=typeof a;l==="string"||l==="number"?r.selected=t.some(c=>String(c)===String(a)):r.selected=fr(t,a)>-1}else r.selected=t.has(a);else if(tn(Fi(r),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Fi(e){return"_value"in e?e._value:e.value}function Bd(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const jd={created(e,t,s){Jr(e,t,s,null,"created")},mounted(e,t,s){Jr(e,t,s,null,"mounted")},beforeUpdate(e,t,s,n){Jr(e,t,s,n,"beforeUpdate")},updated(e,t,s,n){Jr(e,t,s,n,"updated")}};function qd(e,t){switch(e){case"SELECT":return Hd;case"TEXTAREA":return Lo;default:switch(t){case"checkbox":return Ao;case"radio":return Ll;default:return Lo}}}function Jr(e,t,s,n,i){const r=qd(e.tagName,s.props&&s.props.type)[i];r&&r(e,t,s,n)}function a6(){Lo.getSSRProps=({value:e})=>({value:e}),Ll.getSSRProps=({value:e},t)=>{if(t.props&&tn(t.props.value,e))return{checked:!0}},Ao.getSSRProps=({value:e},t)=>{if(he(e)){if(t.props&&fr(e,t.props.value)>-1)return{checked:!0}}else if(jn(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},jd.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const s=qd(t.type.toUpperCase(),t.props&&t.props.type);if(s.getSSRProps)return s.getSSRProps(e,t)}}const l6=["ctrl","shift","alt","meta"],c6={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>l6.some(s=>e[`${s}Key`]&&!t.includes(s))},ys=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=(i,...o)=>{for(let r=0;r<t.length;r++){const a=c6[t[r]];if(a&&a(i,t))return}return e(i,...o)})},u6={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},d6=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=i=>{if(!("key"in i))return;const o=ts(i.key);if(t.some(r=>r===o||u6[r]===o))return e(i)})},Kd=Ve({patchProp:Ad},dd);let xo,zd=!1;function Qd(){return xo||(xo=Vu(Kd))}function Wd(){return xo=zd?xo:Fu(Kd),zd=!0,xo}const Zd=(...e)=>{Qd().render(...e)},f6=(...e)=>{Wd().hydrate(...e)},Al=(...e)=>{const t=Qd().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=Xd(n);if(!i)return;const o=t._component;!we(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=s(i,!1,Jd(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t},Yd=(...e)=>{const t=Wd().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=Xd(n);if(i)return s(i,!0,Jd(i))},t};function Jd(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Xd(e){return Le(e)?document.querySelector(e):e}let ef=!1;const h6=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:nu,BaseTransitionPropsValidators:Xa,Comment:yt,DeprecationTypes:A4,EffectScope:Pa,ErrorCodes:G5,ErrorTypeStrings:R4,Fragment:Ne,KeepAlive:v3,ReactiveEffect:to,Static:ei,Suspense:r4,Teleport:s3,Text:bn,TrackOpTypes:A5,Transition:Il,TransitionGroup:t6,TriggerOpTypes:x5,VueElement:Zr,assertNumber:H5,callWithAsyncErrorHandling:cs,callWithErrorHandling:Qn,camelize:Xe,capitalize:qn,cloneVNode:js,compatUtils:L4,computed:me,createApp:Al,createBlock:xe,createCommentVNode:ue,createElementBlock:P,createElementVNode:y,createHydrationRenderer:Fu,createPropsRestProxy:P3,createRenderer:Vu,createSSRApp:Yd,createSlots:T3,createStaticVNode:jr,createTextVNode:Io,createVNode:Ie,customRef:V1,defineAsyncComponent:E3,defineComponent:Te,defineCustomElement:Vi,defineEmits:M3,defineExpose:O3,defineModel:A3,defineOptions:b3,defineProps:w3,defineSSRCustomElement:Y4,defineSlots:L3,devtools:w4,effect:e5,effectScope:Yp,getCurrentInstance:es,getCurrentScope:_1,getCurrentWatcher:k5,getTransitionRawChildren:Or,guardReactiveProps:Zu,h:od,handleError:Wn,hasInjectionContext:W5,hydrate:f6,hydrateOnIdle:f3,hydrateOnInteraction:_3,hydrateOnMediaQuery:g3,hydrateOnVisible:p3,initCustomFormatter:S4,initDirectivesForSSR:()=>{ef||(ef=!0,a6(),P4())},inject:Zn,isMemoSame:rd,isProxy:lo,isReactive:rn,isReadonly:Hs,isRef:pt,isRuntimeOnly:m4,isShallow:ss,isVNode:fn,markRaw:N1,mergeDefaults:N3,mergeModels:D3,mergeProps:Yu,nextTick:at,nodeOps:dd,normalizeClass:Fe,normalizeProps:Fp,normalizeStyle:rt,onActivated:uu,onBeforeMount:nl,onBeforeUnmount:On,onBeforeUpdate:il,onDeactivated:du,onErrorCaptured:_u,onMounted:lt,onRenderTracked:gu,onRenderTriggered:pu,onScopeDispose:Jp,onServerPrefetch:hu,onUnmounted:wt,onUpdated:Nr,onWatcherCleanup:$1,openBlock:R,patchProp:Ad,popScopeId:z5,provide:wr,proxyRefs:za,pushScopeId:K5,queuePostFlushCb:co,reactive:on,readonly:ao,ref:N,registerRuntimeCompiler:td,render:Zd,renderList:kt,renderSlot:dn,resolveComponent:ve,resolveDirective:S3,resolveDynamicComponent:Dr,resolveFilter:b4,resolveTransitionHooks:Li,setBlockTracking:To,setDevtoolsHook:M4,setTransitionHooks:ln,shallowReactive:U1,shallowReadonly:v5,shallowRef:D1,ssrContextKey:z1,ssrUtils:O4,stop:t5,toDisplayString:re,toHandlerKey:Ti,toHandlers:I3,toRaw:He,toRef:O5,toRefs:R5,toValue:S5,transformVNodeArgs:f4,triggerRef:y5,unref:D,useAttrs:U3,useCssModule:e6,useCssVars:V4,useHost:kd,useId:i3,useModel:K3,useSSRContext:Q1,useShadowRoot:X4,useSlots:k3,useTemplateRef:o3,useTransitionState:Ja,vModelCheckbox:Ao,vModelDynamic:jd,vModelRadio:Ll,vModelSelect:Hd,vModelText:Lo,vShow:Ks,version:ad,warn:I4,watch:us,watchEffect:Z5,watchPostEffect:Y5,watchSyncEffect:W1,withAsyncContext:V3,withCtx:gt,withDefaults:x3,withDirectives:ms,withKeys:d6,withMemo:T4,withModifiers:ys,withScopeId:Q5},Symbol.toStringTag,{value:"Module"}));/**
|
|
308
|
-
* @vue/compiler-core v3.5.
|
|
312
|
+
**/let xl;const vd=typeof window<"u"&&window.trustedTypes;if(vd)try{xl=vd.createPolicy("vue",{createHTML:e=>e})}catch{}const Cd=xl?e=>xl.createHTML(e):e=>e,Q4="http://www.w3.org/2000/svg",W4="http://www.w3.org/1998/Math/MathML",gn=typeof document<"u"?document:null,yd=gn&&gn.createElement("template"),Sd={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?gn.createElementNS(Q4,e):t==="mathml"?gn.createElementNS(W4,e):s?gn.createElement(e,{is:s}):gn.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>gn.createTextNode(e),createComment:e=>gn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>gn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,o){const r=s?s.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===o||!(i=i.nextSibling)););else{yd.innerHTML=Cd(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=yd.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,s)}return[r?r.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},An="transition",xo="animation",Gi=Symbol("_vtc"),Td={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Id=$e({},rl,Td),kl=(e=>(e.displayName="Transition",e.props=Id,e))((e,{slots:t})=>_d(_u,Rd(e),t)),ni=(e,t=[])=>{pe(e)?e.forEach(s=>s(...t)):e&&e(...t)},wd=e=>e?pe(e)?e.some(t=>t.length>1):e.length>1:!1;function Rd(e){const t={};for(const I in e)I in Td||(t[I]=e[I]);if(e.css===!1)return t;const{name:s="v",type:n,duration:i,enterFromClass:o=`${s}-enter-from`,enterActiveClass:r=`${s}-enter-active`,enterToClass:a=`${s}-enter-to`,appearFromClass:l=o,appearActiveClass:c=r,appearToClass:u=a,leaveFromClass:d=`${s}-leave-from`,leaveActiveClass:h=`${s}-leave-active`,leaveToClass:p=`${s}-leave-to`}=e,m=Z4(i),v=m&&m[0],O=m&&m[1],{onBeforeEnter:w,onEnter:C,onEnterCancelled:g,onLeave:_,onLeaveCancelled:E,onBeforeAppear:L=w,onAppear:P=C,onAppearCancelled:F=g}=t,x=(I,U,K,ne)=>{I._enterCancelled=ne,xn(I,U?u:a),xn(I,U?c:r),K&&K()},$=(I,U)=>{I._isLeaving=!1,xn(I,d),xn(I,p),xn(I,h),U&&U()},b=I=>(U,K)=>{const ne=I?P:C,te=()=>x(U,I,K);ni(ne,[U,te]),Md(()=>{xn(U,I?l:o),Ws(U,I?u:a),wd(ne)||Od(U,n,v,te)})};return $e(t,{onBeforeEnter(I){ni(w,[I]),Ws(I,o),Ws(I,r)},onBeforeAppear(I){ni(L,[I]),Ws(I,l),Ws(I,c)},onEnter:b(!1),onAppear:b(!0),onLeave(I,U){I._isLeaving=!0;const K=()=>$(I,U);Ws(I,d),I._enterCancelled?(Ws(I,h),Nl(I)):(Nl(I),Ws(I,h)),Md(()=>{I._isLeaving&&(xn(I,d),Ws(I,p),wd(_)||Od(I,n,O,K))}),ni(_,[I,K])},onEnterCancelled(I){x(I,!1,void 0,!0),ni(g,[I])},onAppearCancelled(I){x(I,!0,void 0,!0),ni(F,[I])},onLeaveCancelled(I){$(I),ni(E,[I])}})}function Z4(e){if(e==null)return null;if(Xe(e))return[Ul(e.enter),Ul(e.leave)];{const t=Ul(e);return[t,t]}}function Ul(e){return ur(e)}function Ws(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.add(s)),(e[Gi]||(e[Gi]=new Set)).add(t)}function xn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const s=e[Gi];s&&(s.delete(t),s.size||(e[Gi]=void 0))}function Md(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Y4=0;function Od(e,t,s,n){const i=e._endId=++Y4,o=()=>{i===e._endId&&n()};if(s!=null)return setTimeout(o,s);const{type:r,timeout:a,propCount:l}=bd(e,t);if(!r)return n();const c=r+"end";let u=0;const d=()=>{e.removeEventListener(c,h),o()},h=p=>{p.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),e.addEventListener(c,h)}function bd(e,t){const s=window.getComputedStyle(e),n=m=>(s[m]||"").split(", "),i=n(`${An}Delay`),o=n(`${An}Duration`),r=Ld(i,o),a=n(`${xo}Delay`),l=n(`${xo}Duration`),c=Ld(a,l);let u=null,d=0,h=0;t===An?r>0&&(u=An,d=r,h=o.length):t===xo?c>0&&(u=xo,d=c,h=l.length):(d=Math.max(r,c),u=d>0?r>c?An:xo:null,h=u?u===An?o.length:l.length:0);const p=u===An&&/\b(?:transform|all)(?:,|$)/.test(n(`${An}Property`).toString());return{type:u,timeout:d,propCount:h,hasTransform:p}}function Ld(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((s,n)=>Ad(s)+Ad(e[n])))}function Ad(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Nl(e){return(e?e.ownerDocument:document).body.offsetHeight}function X4(e,t,s){const n=e[Gi];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Zr=Symbol("_vod"),xd=Symbol("_vsh"),Zs={name:"show",beforeMount(e,{value:t},{transition:s}){e[Zr]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):ko(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:n}){!t!=!s&&(n?t?(n.beforeEnter(e),ko(e,!0),n.enter(e)):n.leave(e,()=>{ko(e,!1)}):ko(e,t))},beforeUnmount(e,{value:t}){ko(e,t)}};function ko(e,t){e.style.display=t?e[Zr]:"none",e[xd]=!t}function J4(){Zs.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const kd=Symbol("");function e6(e){const t=ls();if(!t)return;const s=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>Yr(o,i))},n=()=>{const i=e(t.proxy);t.ce?Yr(t.ce,i):Dl(t.subTree,i),s(i)};dl(()=>{mo(n)}),ot(()=>{qt(n,kt,{flush:"post"});const i=new MutationObserver(n);i.observe(t.subTree.el.parentNode,{childList:!0}),Ct(()=>i.disconnect())})}function Dl(e,t){if(e.shapeFlag&128){const s=e.suspense;e=s.activeBranch,s.pendingBranch&&!s.isHydrating&&s.effects.push(()=>{Dl(s.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Yr(e.el,t);else if(e.type===Ae)e.children.forEach(s=>Dl(s,t));else if(e.type===ei){let{el:s,anchor:n}=e;for(;s&&(Yr(s,t),s!==n);)s=s.nextSibling}}function Yr(e,t){if(e.nodeType===1){const s=e.style;let n="";for(const i in t){const o=h5(t[i]);s.setProperty(`--${i}`,o),n+=`--${i}: ${o};`}s[kd]=n}}const t6=/(?:^|;)\s*display\s*:/;function s6(e,t,s){const n=e.style,i=Ue(s);let o=!1;if(s&&!i){if(t)if(Ue(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();s[a]==null&&Xr(n,a,"")}else for(const r in t)s[r]==null&&Xr(n,r,"");for(const r in s)r==="display"&&(o=!0),Xr(n,r,s[r])}else if(i){if(t!==s){const r=n[kd];r&&(s+=";"+r),n.cssText=s,o=t6.test(s)}}else t&&e.removeAttribute("style");Zr in e&&(e[Zr]=o?n.display:"",e[xd]&&(n.display="none"))}const Ud=/\s*!important$/;function Xr(e,t,s){if(pe(s))s.forEach(n=>Xr(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=n6(e,t);Ud.test(s)?e.setProperty(is(n),s.replace(Ud,""),"important"):e[n]=s}}const Nd=["Webkit","Moz","ms"],Pl={};function n6(e,t){const s=Pl[t];if(s)return s;let n=at(t);if(n!=="filter"&&n in e)return Pl[t]=n;n=zn(n);for(let i=0;i<Nd.length;i++){const o=Nd[i]+n;if(o in e)return Pl[t]=o}return t}const Dd="http://www.w3.org/1999/xlink";function Pd(e,t,s,n,i,o=d5(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Dd,t.slice(6,t.length)):e.setAttributeNS(Dd,t,s):s==null||o&&!T1(s)?e.removeAttribute(t):e.setAttribute(t,o?"":ns(s)?String(s):s)}function Vd(e,t,s,n,i){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Cd(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,l=s==null?e.type==="checkbox"?"on":"":String(s);(a!==l||!("_value"in e))&&(e.value=l),s==null&&e.removeAttribute(t),e._value=s;return}let r=!1;if(s===""||s==null){const a=typeof e[t];a==="boolean"?s=T1(s):s==null&&a==="string"?(s="",r=!0):a==="number"&&(s=0,r=!0)}try{e[t]=s}catch{}r&&e.removeAttribute(i||t)}function _n(e,t,s,n){e.addEventListener(t,s,n)}function i6(e,t,s,n){e.removeEventListener(t,s,n)}const Fd=Symbol("_vei");function o6(e,t,s,n,i=null){const o=e[Fd]||(e[Fd]={}),r=o[t];if(n&&r)r.value=n;else{const[a,l]=r6(t);if(n){const c=o[t]=c6(n,i);_n(e,a,c,l)}else r&&(i6(e,a,r,l),o[t]=void 0)}}const $d=/(?:Once|Passive|Capture)$/;function r6(e){let t;if($d.test(e)){t={};let n;for(;n=e.match($d);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):is(e.slice(2)),t]}let Vl=0;const a6=Promise.resolve(),l6=()=>Vl||(a6.then(()=>Vl=0),Vl=Date.now());function c6(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;ys(u6(n,s.value),t,5,[n])};return s.value=e,s.attached=l6(),s}function u6(e,t){if(pe(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Hd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Gd=(e,t,s,n,i,o)=>{const r=i==="svg";t==="class"?X4(e,n,r):t==="style"?s6(e,s,n):qn(t)?Ha(t)||o6(e,t,s,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):d6(e,t,n,r))?(Vd(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Pd(e,t,n,r,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ue(n))?Vd(e,at(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Pd(e,t,n,r))};function d6(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Hd(t)&&Oe(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Hd(t)&&Ue(s)?!1:t in e}const Bd={};function Bi(e,t,s){let n=Se(e,t);rr(n)&&(n=$e({},n,t));class i extends Jr{constructor(r){super(n,r,s)}}return i.def=n,i}const f6=(e,t)=>Bi(e,t,lf),h6=typeof HTMLElement<"u"?HTMLElement:class{};class Jr extends h6{constructor(t,s={},n=$l){super(),this._def=t,this._props=s,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==$l?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow($e({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Jr){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,tt(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const s of t)this._setAttr(s.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(n,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:r}=n;let a;if(o&&!pe(o))for(const l in o){const c=o[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=ur(this._props[l])),(a||(a=Object.create(null)))[at(l)]=!0)}this._numberProps=a,this._resolveProps(n),this.shadowRoot&&this._applyStyles(r),this._mount(n)},s=this._def.__asyncLoader;s?this._pendingResolve=s().then(n=>{n.configureApp=this._def.configureApp,t(this._def=n,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const s=this._instance&&this._instance.exposed;if(s)for(const n in s)Qe(this,n)||Object.defineProperty(this,n,{get:()=>D(s[n])})}_resolveProps(t){const{props:s}=t,n=pe(s)?s:Object.keys(s||{});for(const i of Object.keys(this))i[0]!=="_"&&n.includes(i)&&this._setProp(i,this[i]);for(const i of n.map(at))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(o){this._setProp(i,o,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const s=this.hasAttribute(t);let n=s?this.getAttribute(t):Bd;const i=at(t);s&&this._numberProps&&this._numberProps[i]&&(n=ur(n)),this._setProp(i,n,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,s,n=!0,i=!1){if(s!==this._props[t]&&(this._dirty=!0,s===Bd?delete this._props[t]:(this._props[t]=s,t==="key"&&this._app&&(this._app._ceVNode.key=s)),i&&this._instance&&this._update(),n)){const o=this._ob;o&&(this._processMutations(o.takeRecords()),o.disconnect()),s===!0?this.setAttribute(is(t),""):typeof s=="string"||typeof s=="number"?this.setAttribute(is(t),s+""):s||this.removeAttribute(is(t)),o&&o.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),af(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const s=Re(this._def,$e(t,this._props));return this._instance||(s.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const i=(o,r)=>{this.dispatchEvent(new CustomEvent(o,rr(r[0])?$e({detail:r},r[0]):{detail:r}))};n.emit=(o,...r)=>{i(o,r),is(o)!==o&&i(is(o),r)},this._setParent()}),s}_applyStyles(t,s){if(!t)return;if(s){if(s===this._def||this._styleChildren.has(s))return;this._styleChildren.add(s)}const n=this._nonce;for(let i=t.length-1;i>=0;i--){const o=document.createElement("style");n&&o.setAttribute("nonce",n),o.textContent=t[i],this.shadowRoot.prepend(o)}}_parseSlots(){const t=this._slots={};let s;for(;s=this.firstChild;){const n=s.nodeType===1&&s.getAttribute("slot")||"default";(t[n]||(t[n]=[])).push(s),this.removeChild(s)}}_renderSlots(){const t=this._getSlots(),s=this._instance.type.__scopeId;for(let n=0;n<t.length;n++){const i=t[n],o=i.getAttribute("name")||"default",r=this._slots[o],a=i.parentNode;if(r)for(const l of r){if(s&&l.nodeType===1){const c=s+"-s",u=document.createTreeWalker(l,1);l.setAttribute(c,"");let d;for(;d=u.nextNode();)d.setAttribute(c,"")}a.insertBefore(l,i)}else for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const s=new Set;for(const n of t){const i=n.querySelectorAll("slot");for(let o=0;o<i.length;o++)s.add(i[o])}return Array.from(s)}_injectChildStyle(t){this._applyStyles(t.styles,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_removeChildStyle(t){}}function jd(e){const t=ls(),s=t&&t.ce;return s||null}function p6(){const e=jd();return e&&e.shadowRoot}function g6(e="$style"){{const t=ls();if(!t)return Ge;const s=t.type.__cssModules;if(!s)return Ge;const n=s[e];return n||Ge}}const qd=new WeakMap,Kd=new WeakMap,ea=Symbol("_moveCb"),zd=Symbol("_enterCb"),_6=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:$e({},Id,{tag:String,moveClass:String}),setup(e,{slots:t}){const s=ls(),n=ol();let i,o;return Pr(()=>{if(!i.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!C6(i[0].el,s.vnode.el,r)){i=[];return}i.forEach(m6),i.forEach(E6);const a=i.filter(v6);Nl(s.vnode.el),a.forEach(l=>{const c=l.el,u=c.style;Ws(c,r),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[ea]=h=>{h&&h.target!==c||(!h||h.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",d),c[ea]=null,xn(c,r))};c.addEventListener("transitionend",d)}),i=[]}),()=>{const r=Be(e),a=Rd(r);let l=r.tag||Ae;if(i=[],o)for(let c=0;c<o.length;c++){const u=o[c];u.el&&u.el instanceof Element&&(i.push(u),un(u,Ni(u,a,n,s)),qd.set(u,{left:u.el.offsetLeft,top:u.el.offsetTop}))}o=t.default?Lr(t.default()):[];for(let c=0;c<o.length;c++){const u=o[c];u.key!=null&&un(u,Ni(u,a,n,s))}return Re(l,null,o)}}});function m6(e){const t=e.el;t[ea]&&t[ea](),t[zd]&&t[zd]()}function E6(e){Kd.set(e,{left:e.el.offsetLeft,top:e.el.offsetTop})}function v6(e){const t=qd.get(e),s=Kd.get(e),n=t.left-s.left,i=t.top-s.top;if(n||i){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${n}px,${i}px)`,o.transitionDuration="0s",e}}function C6(e,t,s){const n=e.cloneNode(),i=e[Gi];i&&i.forEach(a=>{a.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),s.split(/\s+/).forEach(a=>a&&n.classList.add(a)),n.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(n);const{hasTransform:r}=bd(n);return o.removeChild(n),r}const kn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return pe(t)?s=>bi(t,s):t};function y6(e){e.target.composing=!0}function Qd(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Is=Symbol("_assign");function Wd(e,t,s){return t&&(e=e.trim()),s&&(e=cr(e)),e}const Uo={created(e,{modifiers:{lazy:t,trim:s,number:n}},i){e[Is]=kn(i);const o=n||i.props&&i.props.type==="number";_n(e,t?"change":"input",r=>{r.target.composing||e[Is](Wd(e.value,s,o))}),(s||o)&&_n(e,"change",()=>{e.value=Wd(e.value,s,o)}),t||(_n(e,"compositionstart",y6),_n(e,"compositionend",Qd),_n(e,"change",Qd))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:i,number:o}},r){if(e[Is]=kn(r),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?cr(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||i&&e.value.trim()===l)||(e.value=l))}},No={deep:!0,created(e,t,s){e[Is]=kn(s),_n(e,"change",()=>{const n=e._modelValue,i=ji(e),o=e.checked,r=e[Is];if(pe(n)){const a=fr(n,i),l=a!==-1;if(o&&!l)r(n.concat(i));else if(!o&&l){const c=[...n];c.splice(a,1),r(c)}}else if(Kn(n)){const a=new Set(n);o?a.add(i):a.delete(i),r(a)}else r(Jd(e,o))})},mounted:Zd,beforeUpdate(e,t,s){e[Is]=kn(s),Zd(e,t,s)}};function Zd(e,{value:t,oldValue:s},n){e._modelValue=t;let i;if(pe(t))i=fr(t,n.props.value)>-1;else if(Kn(t))i=t.has(n.props.value);else{if(t===s)return;i=In(t,Jd(e,!0))}e.checked!==i&&(e.checked=i)}const Fl={created(e,{value:t},s){e.checked=In(t,s.props.value),e[Is]=kn(s),_n(e,"change",()=>{e[Is](ji(e))})},beforeUpdate(e,{value:t,oldValue:s},n){e[Is]=kn(n),t!==s&&(e.checked=In(t,n.props.value))}},Yd={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const i=Kn(t);_n(e,"change",()=>{const o=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>s?cr(ji(r)):ji(r));e[Is](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,tt(()=>{e._assigning=!1})}),e[Is]=kn(n)},mounted(e,{value:t}){Xd(e,t)},beforeUpdate(e,t,s){e[Is]=kn(s)},updated(e,{value:t}){e._assigning||Xd(e,t)}};function Xd(e,t){const s=e.multiple,n=pe(t);if(!(s&&!n&&!Kn(t))){for(let i=0,o=e.options.length;i<o;i++){const r=e.options[i],a=ji(r);if(s)if(n){const l=typeof a;l==="string"||l==="number"?r.selected=t.some(c=>String(c)===String(a)):r.selected=fr(t,a)>-1}else r.selected=t.has(a);else if(In(ji(r),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ji(e){return"_value"in e?e._value:e.value}function Jd(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const ef={created(e,t,s){ta(e,t,s,null,"created")},mounted(e,t,s){ta(e,t,s,null,"mounted")},beforeUpdate(e,t,s,n){ta(e,t,s,n,"beforeUpdate")},updated(e,t,s,n){ta(e,t,s,n,"updated")}};function tf(e,t){switch(e){case"SELECT":return Yd;case"TEXTAREA":return Uo;default:switch(t){case"checkbox":return No;case"radio":return Fl;default:return Uo}}}function ta(e,t,s,n,i){const r=tf(e.tagName,s.props&&s.props.type)[i];r&&r(e,t,s,n)}function S6(){Uo.getSSRProps=({value:e})=>({value:e}),Fl.getSSRProps=({value:e},t)=>{if(t.props&&In(t.props.value,e))return{checked:!0}},No.getSSRProps=({value:e},t)=>{if(pe(e)){if(t.props&&fr(e,t.props.value)>-1)return{checked:!0}}else if(Kn(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},ef.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const s=tf(t.type.toUpperCase(),t.props&&t.props.type);if(s.getSSRProps)return s.getSSRProps(e,t)}}const T6=["ctrl","shift","alt","meta"],I6={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>T6.some(s=>e[`${s}Key`]&&!t.includes(s))},Dt=(e,t)=>{const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=(i,...o)=>{for(let r=0;r<t.length;r++){const a=I6[t[r]];if(a&&a(i,t))return}return e(i,...o)})},w6={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},R6=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=i=>{if(!("key"in i))return;const o=is(i.key);if(t.some(r=>r===o||w6[r]===o))return e(i)})},sf=$e({patchProp:Gd},Sd);let Do,nf=!1;function of(){return Do||(Do=Wu(sf))}function rf(){return Do=nf?Do:Zu(sf),nf=!0,Do}const af=(...e)=>{of().render(...e)},M6=(...e)=>{rf().hydrate(...e)},$l=(...e)=>{const t=of().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=uf(n);if(!i)return;const o=t._component;!Oe(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=s(i,!1,cf(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t},lf=(...e)=>{const t=rf().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=uf(n);if(i)return s(i,!0,cf(i))},t};function cf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function uf(e){return Ue(e)?document.querySelector(e):e}let df=!1;const O6=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:_u,BaseTransitionPropsValidators:rl,Comment:yt,DeprecationTypes:z4,EffectScope:qa,ErrorCodes:r3,ErrorTypeStrings:H4,Fragment:Ae,KeepAlive:N3,ReactiveEffect:lo,Static:ei,Suspense:S4,Teleport:E3,Text:bn,TrackOpTypes:W5,Transition:kl,TransitionGroup:_6,TriggerOpTypes:Z5,VueElement:Jr,assertNumber:o3,callWithAsyncErrorHandling:ys,callWithErrorHandling:Zn,camelize:at,capitalize:zn,cloneVNode:Qs,compatUtils:K4,computed:me,createApp:$l,createBlock:xe,createCommentVNode:le,createElementBlock:k,createElementVNode:y,createHydrationRenderer:Zu,createPropsRestProxy:J3,createRenderer:Wu,createSSRApp:lf,createSlots:F3,createStaticVNode:Kr,createTextVNode:$i,createVNode:Re,customRef:Q1,defineAsyncComponent:U3,defineComponent:Se,defineCustomElement:Bi,defineEmits:B3,defineExpose:j3,defineModel:z3,defineOptions:q3,defineProps:G3,defineSSRCustomElement:f6,defineSlots:K3,devtools:G4,effect:m5,effectScope:p5,getCurrentInstance:ls,getCurrentScope:R1,getCurrentWatcher:Y5,getTransitionRawChildren:Lr,guardReactiveProps:ad,h:_d,handleError:Yn,hasInjectionContext:h3,hydrate:M6,hydrateOnIdle:O3,hydrateOnInteraction:x3,hydrateOnMediaQuery:A3,hydrateOnVisible:L3,initCustomFormatter:V4,initDirectivesForSSR:()=>{df||(df=!0,S6(),J4())},inject:Co,isMemoSame:md,isProxy:_o,isReactive:an,isReadonly:qs,isRef:_t,isRuntimeOnly:k4,isShallow:os,isVNode:pn,markRaw:q1,mergeDefaults:Y3,mergeModels:X3,mergeProps:ld,nextTick:tt,nodeOps:Sd,normalizeClass:Pe,normalizeProps:s5,normalizeStyle:lt,onActivated:Su,onBeforeMount:ul,onBeforeUnmount:On,onBeforeUpdate:dl,onDeactivated:Tu,onErrorCaptured:Ou,onMounted:ot,onRenderTracked:Mu,onRenderTriggered:Ru,onScopeDispose:g5,onServerPrefetch:wu,onUnmounted:Ct,onUpdated:Pr,onWatcherCleanup:Z1,openBlock:R,patchProp:Gd,popScopeId:d3,provide:Rr,proxyRefs:tl,pushScopeId:u3,queuePostFlushCb:mo,reactive:Cs,readonly:go,ref:N,registerRuntimeCompiler:fd,render:af,renderList:pt,renderSlot:hn,resolveComponent:Ee,resolveDirective:V3,resolveDynamicComponent:Vr,resolveFilter:q4,resolveTransitionHooks:Ni,setBlockTracking:Lo,setDevtoolsHook:B4,setTransitionHooks:un,shallowReactive:j1,shallowReadonly:P5,shallowRef:K1,ssrContextKey:nu,ssrUtils:j4,stop:E5,toDisplayString:se,toHandlerKey:Oi,toHandlers:$3,toRaw:Be,toRef:K5,toRefs:B5,toValue:$5,transformVNodeArgs:O4,triggerRef:F5,unref:D,useAttrs:Z3,useCssModule:g6,useCssVars:e6,useHost:jd,useId:C3,useModel:l4,useSSRContext:iu,useShadowRoot:p6,useSlots:W3,useTemplateRef:y3,useTransitionState:ol,vModelCheckbox:No,vModelDynamic:ef,vModelRadio:Fl,vModelSelect:Yd,vModelText:Uo,vShow:Zs,version:Ed,warn:$4,watch:qt,watchEffect:p3,watchPostEffect:g3,watchSyncEffect:ou,withAsyncContext:e4,withCtx:ht,withDefaults:Q3,withDirectives:Ss,withKeys:R6,withMemo:F4,withModifiers:Dt,withScopeId:f3},Symbol.toStringTag,{value:"Module"}));/**
|
|
313
|
+
* @vue/compiler-core v3.5.27
|
|
309
314
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
310
315
|
* @license MIT
|
|
311
|
-
**/const ko=Symbol(""),Uo=Symbol(""),xl=Symbol(""),Xr=Symbol(""),tf=Symbol(""),ii=Symbol(""),sf=Symbol(""),nf=Symbol(""),kl=Symbol(""),Ul=Symbol(""),No=Symbol(""),Nl=Symbol(""),of=Symbol(""),Dl=Symbol(""),Pl=Symbol(""),Vl=Symbol(""),Fl=Symbol(""),$l=Symbol(""),Hl=Symbol(""),rf=Symbol(""),af=Symbol(""),ea=Symbol(""),ta=Symbol(""),Gl=Symbol(""),Bl=Symbol(""),Do=Symbol(""),Po=Symbol(""),jl=Symbol(""),ql=Symbol(""),p6=Symbol(""),Kl=Symbol(""),sa=Symbol(""),g6=Symbol(""),_6=Symbol(""),zl=Symbol(""),m6=Symbol(""),E6=Symbol(""),Ql=Symbol(""),lf=Symbol(""),$i={[ko]:"Fragment",[Uo]:"Teleport",[xl]:"Suspense",[Xr]:"KeepAlive",[tf]:"BaseTransition",[ii]:"openBlock",[sf]:"createBlock",[nf]:"createElementBlock",[kl]:"createVNode",[Ul]:"createElementVNode",[No]:"createCommentVNode",[Nl]:"createTextVNode",[of]:"createStaticVNode",[Dl]:"resolveComponent",[Pl]:"resolveDynamicComponent",[Vl]:"resolveDirective",[Fl]:"resolveFilter",[$l]:"withDirectives",[Hl]:"renderList",[rf]:"renderSlot",[af]:"createSlots",[ea]:"toDisplayString",[ta]:"mergeProps",[Gl]:"normalizeClass",[Bl]:"normalizeStyle",[Do]:"normalizeProps",[Po]:"guardReactiveProps",[jl]:"toHandlers",[ql]:"camelize",[p6]:"capitalize",[Kl]:"toHandlerKey",[sa]:"setBlockTracking",[g6]:"pushScopeId",[_6]:"popScopeId",[zl]:"withCtx",[m6]:"unref",[E6]:"isRef",[Ql]:"withMemo",[lf]:"isMemoSame"};function v6(e){Object.getOwnPropertySymbols(e).forEach(t=>{$i[t]=e[t]})}const ds={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function C6(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:ds}}function Vo(e,t,s,n,i,o,r,a=!1,l=!1,c=!1,u=ds){return e&&(a?(e.helper(ii),e.helper(Bi(e.inSSR,c))):e.helper(Gi(e.inSSR,c)),r&&e.helper($l)),{type:13,tag:t,props:s,children:n,patchFlag:i,dynamicProps:o,directives:r,isBlock:a,disableTracking:l,isComponent:c,loc:u}}function oi(e,t=ds){return{type:17,loc:t,elements:e}}function Ss(e,t=ds){return{type:15,loc:t,properties:e}}function Ot(e,t){return{type:16,loc:ds,key:Le(e)?Ue(e,!0):e,value:t}}function Ue(e,t=!1,s=ds,n=0){return{type:4,loc:s,content:e,isStatic:t,constType:t?3:n}}function bs(e,t=ds){return{type:8,loc:t,children:e}}function Ut(e,t=[],s=ds){return{type:14,loc:s,callee:e,arguments:t}}function Hi(e,t=void 0,s=!1,n=!1,i=ds){return{type:18,params:e,returns:t,newline:s,isSlot:n,loc:i}}function Wl(e,t,s,n=!0){return{type:19,test:e,consequent:t,alternate:s,newline:n,loc:ds}}function y6(e,t,s=!1,n=!1){return{type:20,index:e,value:t,needPauseTracking:s,inVOnce:n,needArraySpread:!1,loc:ds}}function S6(e){return{type:21,body:e,loc:ds}}function Gi(e,t){return e||t?kl:Ul}function Bi(e,t){return e||t?sf:nf}function Zl(e,{helper:t,removeHelper:s,inSSR:n}){e.isBlock||(e.isBlock=!0,s(Gi(n,e.isComponent)),t(ii),t(Bi(n,e.isComponent)))}const cf=new Uint8Array([123,123]),uf=new Uint8Array([125,125]);function df(e){return e>=97&&e<=122||e>=65&&e<=90}function fs(e){return e===32||e===10||e===9||e===12||e===13}function kn(e){return e===47||e===62||fs(e)}function na(e){const t=new Uint8Array(e.length);for(let s=0;s<e.length;s++)t[s]=e.charCodeAt(s);return t}const Kt={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class T6{constructor(t,s){this.stack=t,this.cbs=s,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=cf,this.delimiterClose=uf,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=cf,this.delimiterClose=uf}getPos(t){let s=1,n=t+1;const i=this.newlines.length;let o=-1;if(i>100){let r=-1,a=i;for(;r+1<a;){const l=r+a>>>1;this.newlines[l]<t?r=l:a=l}o=r}else for(let r=i-1;r>=0;r--)if(t>this.newlines[r]){o=r;break}return o>=0&&(s=o+2,n=t-this.newlines[o]),{column:n,line:s,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const s=this.index+1-this.delimiterOpen.length;s>this.sectionStart&&this.cbs.ontext(this.sectionStart,s),this.state=3,this.sectionStart=s}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const s=this.sequenceIndex===this.currentSequence.length;if(!(s?kn(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!s){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||fs(t)){const s=this.index-this.currentSequence.length;if(this.sectionStart<s){const n=this.index;this.index=s,this.cbs.ontext(this.sectionStart,s),this.index=n}this.sectionStart=s+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Kt.TitleEnd||this.currentSequence===Kt.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===Kt.Cdata[this.sequenceIndex]?++this.sequenceIndex===Kt.Cdata.length&&(this.state=28,this.currentSequence=Kt.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const s=this.buffer.charCodeAt(this.index);if(s===10&&this.newlines.push(this.index),s===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Kt.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,s){this.enterRCDATA(t,s),this.state=31}enterRCDATA(t,s){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=s}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):df(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){kn(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(kn(t)){const s=this.buffer.slice(this.sectionStart,this.index);s!=="template"&&this.enterRCDATA(na("</"+s),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){fs(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=df(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||fs(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):fs(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):fs(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||kn(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||kn(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||kn(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||kn(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||kn(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):fs(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):fs(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,s){(t===s||this.fastForwardTo(s))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(s===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){fs(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=Kt.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===Kt.ScriptEnd[3]?this.startSpecial(Kt.ScriptEnd,4):t===Kt.StyleEnd[3]?this.startSpecial(Kt.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Kt.TitleEnd[3]?this.startSpecial(Kt.TitleEnd,4):t===Kt.TextareaEnd[3]?this.startSpecial(Kt.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const s=this.buffer.charCodeAt(this.index);switch(s===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(s);break}case 2:{this.stateInterpolationOpen(s);break}case 3:{this.stateInterpolation(s);break}case 4:{this.stateInterpolationClose(s);break}case 31:{this.stateSpecialStartSequence(s);break}case 32:{this.stateInRCDATA(s);break}case 26:{this.stateCDATASequence(s);break}case 19:{this.stateInAttrValueDoubleQuotes(s);break}case 12:{this.stateInAttrName(s);break}case 13:{this.stateInDirName(s);break}case 14:{this.stateInDirArg(s);break}case 15:{this.stateInDynamicDirArg(s);break}case 16:{this.stateInDirModifier(s);break}case 28:{this.stateInCommentLike(s);break}case 27:{this.stateInSpecialComment(s);break}case 11:{this.stateBeforeAttrName(s);break}case 6:{this.stateInTagName(s);break}case 34:{this.stateInSFCRootTagName(s);break}case 9:{this.stateInClosingTagName(s);break}case 5:{this.stateBeforeTagName(s);break}case 17:{this.stateAfterAttrName(s);break}case 20:{this.stateInAttrValueSingleQuotes(s);break}case 18:{this.stateBeforeAttrValue(s);break}case 8:{this.stateBeforeClosingTagName(s);break}case 10:{this.stateAfterClosingTagName(s);break}case 29:{this.stateBeforeSpecialS(s);break}case 30:{this.stateBeforeSpecialT(s);break}case 21:{this.stateInAttrValueNoQuotes(s);break}case 7:{this.stateInSelfClosingTag(s);break}case 23:{this.stateInDeclaration(s);break}case 22:{this.stateBeforeDeclaration(s);break}case 25:{this.stateBeforeComment(s);break}case 24:{this.stateInProcessingInstruction(s);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===Kt.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,s){}}function ff(e,{compatConfig:t}){const s=t&&t[e];return e==="MODE"?s||3:s}function ri(e,t){const s=ff("MODE",t),n=ff(e,t);return s===3?n===!0:n!==!1}function Fo(e,t,s,...n){return ri(e,t)}function Yl(e){throw e}function hf(e){}function ot(e,t,s,n){const i=`https://vuejs.org/error-reference/#compiler-${e}`,o=new SyntaxError(String(i));return o.code=e,o.loc=t,o}const os=e=>e.type===4&&e.isStatic;function pf(e){switch(e){case"Teleport":case"teleport":return Uo;case"Suspense":case"suspense":return xl;case"KeepAlive":case"keep-alive":return Xr;case"BaseTransition":case"base-transition":return tf}}const I6=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Jl=e=>!I6.test(e),gf=/[A-Za-z_$\xA0-\uFFFF]/,R6=/[\.\?\w$\xA0-\uFFFF]/,w6=/\s+[.[]\s*|\s*[.[]\s+/g,_f=e=>e.type===4?e.content:e.loc.source,mf=e=>{const t=_f(e).trim().replace(w6,a=>a.trim());let s=0,n=[],i=0,o=0,r=null;for(let a=0;a<t.length;a++){const l=t.charAt(a);switch(s){case 0:if(l==="[")n.push(s),s=1,i++;else if(l==="(")n.push(s),s=2,o++;else if(!(a===0?gf:R6).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(n.push(s),s=3,r=l):l==="["?i++:l==="]"&&(--i||(s=n.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")n.push(s),s=3,r=l;else if(l==="(")o++;else if(l===")"){if(a===t.length-1)return!1;--o||(s=n.pop())}break;case 3:l===r&&(s=n.pop(),r=null);break}}return!i&&!o},M6=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,O6=e=>M6.test(_f(e));function Ts(e,t,s=!1){for(let n=0;n<e.props.length;n++){const i=e.props[n];if(i.type===7&&(s||i.exp)&&(Le(t)?i.name===t:t.test(i.name)))return i}}function ia(e,t,s=!1,n=!1){for(let i=0;i<e.props.length;i++){const o=e.props[i];if(o.type===6){if(s)continue;if(o.name===t&&(o.value||n))return o}else if(o.name==="bind"&&(o.exp||n)&&ai(o.arg,t))return o}}function ai(e,t){return!!(e&&os(e)&&e.content===t)}function b6(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Xl(e){return e.type===5||e.type===2}function Ef(e){return e.type===7&&e.name==="pre"}function L6(e){return e.type===7&&e.name==="slot"}function oa(e){return e.type===1&&e.tagType===3}function ra(e){return e.type===1&&e.tagType===2}const A6=new Set([Do,Po]);function vf(e,t=[]){if(e&&!Le(e)&&e.type===14){const s=e.callee;if(!Le(s)&&A6.has(s))return vf(e.arguments[0],t.concat(e))}return[e,t]}function aa(e,t,s){let n,i=e.type===13?e.props:e.arguments[2],o=[],r;if(i&&!Le(i)&&i.type===14){const a=vf(i);i=a[0],o=a[1],r=o[o.length-1]}if(i==null||Le(i))n=Ss([t]);else if(i.type===14){const a=i.arguments[0];!Le(a)&&a.type===15?Cf(t,a)||a.properties.unshift(t):i.callee===jl?n=Ut(s.helper(ta),[Ss([t]),i]):i.arguments.unshift(Ss([t])),!n&&(n=i)}else i.type===15?(Cf(t,i)||i.properties.unshift(t),n=i):(n=Ut(s.helper(ta),[Ss([t]),i]),r&&r.callee===Po&&(r=o[o.length-2]));e.type===13?r?r.arguments[0]=n:e.props=n:r?r.arguments[0]=n:e.arguments[2]=n}function Cf(e,t){let s=!1;if(e.key.type===4){const n=e.key.content;s=t.properties.some(i=>i.key.type===4&&i.key.content===n)}return s}function $o(e,t){return`_${t}_${e.replace(/[^\w]/g,(s,n)=>s==="-"?"_":e.charCodeAt(n).toString())}`}function x6(e){return e.type===14&&e.callee===Ql?e.arguments[1].returns:e}const k6=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function yf(e){for(let t=0;t<e.length;t++)if(!fs(e.charCodeAt(t)))return!1;return!0}function ec(e){return e.type===2&&yf(e.content)||e.type===12&&ec(e.content)}function Sf(e){return e.type===3||ec(e)}const Tf={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:Ci,isPreTag:Ci,isIgnoreNewlineTag:Ci,isCustomElement:Ci,onError:Yl,onWarn:hf,comments:!1,prefixIdentifiers:!1};let Qe=Tf,Ho=null,_n="",zt=null,Ge=null,rs="",mn=-1,li=-1,tc=0,Un=!1,sc=null;const ct=[],_t=new T6(ct,{onerr:En,ontext(e,t){la($t(e,t),e,t)},ontextentity(e,t,s){la(e,t,s)},oninterpolation(e,t){if(Un)return la($t(e,t),e,t);let s=e+_t.delimiterOpen.length,n=t-_t.delimiterClose.length;for(;fs(_n.charCodeAt(s));)s++;for(;fs(_n.charCodeAt(n-1));)n--;let i=$t(s,n);i.includes("&")&&(i=Qe.decodeEntities(i,!1)),nc({type:5,content:ua(i,!1,St(s,n)),loc:St(e,t)})},onopentagname(e,t){const s=$t(e,t);zt={type:1,tag:s,ns:Qe.getNamespace(s,ct[0],Qe.ns),tagType:0,props:[],children:[],loc:St(e-1,t),codegenNode:void 0}},onopentagend(e){Rf(e)},onclosetag(e,t){const s=$t(e,t);if(!Qe.isVoidTag(s)){let n=!1;for(let i=0;i<ct.length;i++)if(ct[i].tag.toLowerCase()===s.toLowerCase()){n=!0,i>0&&En(24,ct[0].loc.start.offset);for(let r=0;r<=i;r++){const a=ct.shift();ca(a,t,r<i)}break}n||En(23,wf(e,60))}},onselfclosingtag(e){const t=zt.tag;zt.isSelfClosing=!0,Rf(e),ct[0]&&ct[0].tag===t&&ca(ct.shift(),e)},onattribname(e,t){Ge={type:6,name:$t(e,t),nameLoc:St(e,t),value:void 0,loc:St(e)}},ondirname(e,t){const s=$t(e,t),n=s==="."||s===":"?"bind":s==="@"?"on":s==="#"?"slot":s.slice(2);if(!Un&&n===""&&En(26,e),Un||n==="")Ge={type:6,name:s,nameLoc:St(e,t),value:void 0,loc:St(e)};else if(Ge={type:7,name:n,rawName:s,exp:void 0,arg:void 0,modifiers:s==="."?[Ue("prop")]:[],loc:St(e)},n==="pre"){Un=_t.inVPre=!0,sc=zt;const i=zt.props;for(let o=0;o<i.length;o++)i[o].type===7&&(i[o]=B6(i[o]))}},ondirarg(e,t){if(e===t)return;const s=$t(e,t);if(Un&&!Ef(Ge))Ge.name+=s,ci(Ge.nameLoc,t);else{const n=s[0]!=="[";Ge.arg=ua(n?s:s.slice(1,-1),n,St(e,t),n?3:0)}},ondirmodifier(e,t){const s=$t(e,t);if(Un&&!Ef(Ge))Ge.name+="."+s,ci(Ge.nameLoc,t);else if(Ge.name==="slot"){const n=Ge.arg;n&&(n.content+="."+s,ci(n.loc,t))}else{const n=Ue(s,!0,St(e,t));Ge.modifiers.push(n)}},onattribdata(e,t){rs+=$t(e,t),mn<0&&(mn=e),li=t},onattribentity(e,t,s){rs+=e,mn<0&&(mn=t),li=s},onattribnameend(e){const t=Ge.loc.start.offset,s=$t(t,e);Ge.type===7&&(Ge.rawName=s),zt.props.some(n=>(n.type===7?n.rawName:n.name)===s)&&En(2,t)},onattribend(e,t){if(zt&&Ge){if(ci(Ge.loc,t),e!==0)if(rs.includes("&")&&(rs=Qe.decodeEntities(rs,!0)),Ge.type===6)Ge.name==="class"&&(rs=bf(rs).trim()),e===1&&!rs&&En(13,t),Ge.value={type:2,content:rs,loc:e===1?St(mn,li):St(mn-1,li+1)},_t.inSFCRoot&&zt.tag==="template"&&Ge.name==="lang"&&rs&&rs!=="html"&&_t.enterRCDATA(na("</template"),0);else{let s=0;Ge.exp=ua(rs,!1,St(mn,li),0,s),Ge.name==="for"&&(Ge.forParseResult=N6(Ge.exp));let n=-1;Ge.name==="bind"&&(n=Ge.modifiers.findIndex(i=>i.content==="sync"))>-1&&Fo("COMPILER_V_BIND_SYNC",Qe,Ge.loc,Ge.arg.loc.source)&&(Ge.name="model",Ge.modifiers.splice(n,1))}(Ge.type!==7||Ge.name!=="pre")&&zt.props.push(Ge)}rs="",mn=li=-1},oncomment(e,t){Qe.comments&&nc({type:3,content:$t(e,t),loc:St(e-4,t+3)})},onend(){const e=_n.length;for(let t=0;t<ct.length;t++)ca(ct[t],e-1),En(24,ct[t].loc.start.offset)},oncdata(e,t){ct[0].ns!==0?la($t(e,t),e,t):En(1,e-9)},onprocessinginstruction(e){(ct[0]?ct[0].ns:Qe.ns)===0&&En(21,e-1)}}),If=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,U6=/^\(|\)$/g;function N6(e){const t=e.loc,s=e.content,n=s.match(k6);if(!n)return;const[,i,o]=n,r=(d,h,p=!1)=>{const _=t.start.offset+h,m=_+d.length;return ua(d,!1,St(_,m),0,p?1:0)},a={source:r(o.trim(),s.indexOf(o,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(U6,"").trim();const c=i.indexOf(l),u=l.match(If);if(u){l=l.replace(If,"").trim();const d=u[1].trim();let h;if(d&&(h=s.indexOf(d,c+l.length),a.key=r(d,h,!0)),u[2]){const p=u[2].trim();p&&(a.index=r(p,s.indexOf(p,a.key?h+d.length:c+l.length),!0))}}return l&&(a.value=r(l,c,!0)),a}function $t(e,t){return _n.slice(e,t)}function Rf(e){_t.inSFCRoot&&(zt.innerLoc=St(e+1,e+1)),nc(zt);const{tag:t,ns:s}=zt;s===0&&Qe.isPreTag(t)&&tc++,Qe.isVoidTag(t)?ca(zt,e):(ct.unshift(zt),(s===1||s===2)&&(_t.inXML=!0)),zt=null}function la(e,t,s){{const o=ct[0]&&ct[0].tag;o!=="script"&&o!=="style"&&e.includes("&")&&(e=Qe.decodeEntities(e,!1))}const n=ct[0]||Ho,i=n.children[n.children.length-1];i&&i.type===2?(i.content+=e,ci(i.loc,s)):n.children.push({type:2,content:e,loc:St(t,s)})}function ca(e,t,s=!1){s?ci(e.loc,wf(t,60)):ci(e.loc,D6(t,62)+1),_t.inSFCRoot&&(e.children.length?e.innerLoc.end=Ve({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Ve({},e.innerLoc.start),e.innerLoc.source=$t(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:n,ns:i,children:o}=e;if(Un||(n==="slot"?e.tagType=2:Mf(e)?e.tagType=3:V6(e)&&(e.tagType=1)),_t.inRCDATA||(e.children=Of(o)),i===0&&Qe.isIgnoreNewlineTag(n)){const r=o[0];r&&r.type===2&&(r.content=r.content.replace(/^\r?\n/,""))}i===0&&Qe.isPreTag(n)&&tc--,sc===e&&(Un=_t.inVPre=!1,sc=null),_t.inXML&&(ct[0]?ct[0].ns:Qe.ns)===0&&(_t.inXML=!1);{const r=e.props;if(!_t.inSFCRoot&&ri("COMPILER_NATIVE_TEMPLATE",Qe)&&e.tag==="template"&&!Mf(e)){const l=ct[0]||Ho,c=l.children.indexOf(e);l.children.splice(c,1,...e.children)}const a=r.find(l=>l.type===6&&l.name==="inline-template");a&&Fo("COMPILER_INLINE_TEMPLATE",Qe,a.loc)&&e.children.length&&(a.value={type:2,content:$t(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:a.loc})}}function D6(e,t){let s=e;for(;_n.charCodeAt(s)!==t&&s<_n.length-1;)s++;return s}function wf(e,t){let s=e;for(;_n.charCodeAt(s)!==t&&s>=0;)s--;return s}const P6=new Set(["if","else","else-if","for","slot"]);function Mf({tag:e,props:t}){if(e==="template"){for(let s=0;s<t.length;s++)if(t[s].type===7&&P6.has(t[s].name))return!0}return!1}function V6({tag:e,props:t}){if(Qe.isCustomElement(e))return!1;if(e==="component"||F6(e.charCodeAt(0))||pf(e)||Qe.isBuiltInComponent&&Qe.isBuiltInComponent(e)||Qe.isNativeTag&&!Qe.isNativeTag(e))return!0;for(let s=0;s<t.length;s++){const n=t[s];if(n.type===6){if(n.name==="is"&&n.value){if(n.value.content.startsWith("vue:"))return!0;if(Fo("COMPILER_IS_ON_ELEMENT",Qe,n.loc))return!0}}else if(n.name==="bind"&&ai(n.arg,"is")&&Fo("COMPILER_IS_ON_ELEMENT",Qe,n.loc))return!0}return!1}function F6(e){return e>64&&e<91}const $6=/\r\n/g;function Of(e){const t=Qe.whitespace!=="preserve";let s=!1;for(let n=0;n<e.length;n++){const i=e[n];if(i.type===2)if(tc)i.content=i.content.replace($6,`
|
|
312
|
-
`);else if(
|
|
313
|
-
`+" ".repeat(
|
|
314
|
-
`,-1),l())),e.components.length&&(
|
|
315
|
-
`,0),l()),u||i("return "),e.codegenNode?
|
|
316
|
-
`,-1),e.hoists.length)){const d=[
|
|
317
|
-
`,-1)}tg(e.hoists,t),o(),i("return ")}function ic(e,t,{helper:s,push:n,newline:i,isTS:o}){const r=s(t==="filter"?Fl:t==="component"?Dl:Vl);for(let a=0;a<e.length;a++){let l=e[a];const c=l.endsWith("__self");c&&(l=l.slice(0,-6)),n(`const ${$o(l,t)} = ${r}(${JSON.stringify(l)}${c?", true":""})${o?"!":""}`),a<e.length-1&&i()}}function tg(e,t){if(!e.length)return;t.pure=!0;const{push:s,newline:n}=t;n();for(let i=0;i<e.length;i++){const o=e[i];o&&(s(`const _hoisted_${i+1} = `),Qt(o,t),n())}t.pure=!1}function oc(e,t){const s=e.length>3||!1;t.push("["),s&&t.indent(),Go(e,t,s),s&&t.deindent(),t.push("]")}function Go(e,t,s=!1,n=!0){const{push:i,newline:o}=t;for(let r=0;r<e.length;r++){const a=e[r];Le(a)?i(a,-3):he(a)?oc(a,t):Qt(a,t),r<e.length-1&&(s?(n&&i(","),o()):n&&i(", "))}}function Qt(e,t){if(Le(e)){t.push(e,-3);return}if(Bt(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:Qt(e.codegenNode,t);break;case 2:sg(e,t);break;case 4:Df(e,t);break;case 5:ng(e,t);break;case 12:Qt(e.codegenNode,t);break;case 8:Pf(e,t);break;case 3:og(e,t);break;case 13:rg(e,t);break;case 14:lg(e,t);break;case 15:cg(e,t);break;case 17:ug(e,t);break;case 18:dg(e,t);break;case 19:fg(e,t);break;case 20:hg(e,t);break;case 21:Go(e.body,t,!0,!1);break}}function sg(e,t){t.push(JSON.stringify(e.content),-3,e)}function Df(e,t){const{content:s,isStatic:n}=e;t.push(n?JSON.stringify(s):s,-3,e)}function ng(e,t){const{push:s,helper:n,pure:i}=t;i&&s(ha),s(`${n(ea)}(`),Qt(e.content,t),s(")")}function Pf(e,t){for(let s=0;s<e.children.length;s++){const n=e.children[s];Le(n)?t.push(n,-3):Qt(n,t)}}function ig(e,t){const{push:s}=t;if(e.type===8)s("["),Pf(e,t),s("]");else if(e.isStatic){const n=Jl(e.content)?e.content:JSON.stringify(e.content);s(n,-2,e)}else s(`[${e.content}]`,-3,e)}function og(e,t){const{push:s,helper:n,pure:i}=t;i&&s(ha),s(`${n(No)}(${JSON.stringify(e.content)})`,-3,e)}function rg(e,t){const{push:s,helper:n,pure:i}=t,{tag:o,props:r,children:a,patchFlag:l,dynamicProps:c,directives:u,isBlock:d,disableTracking:h,isComponent:p}=e;let _;l&&(_=String(l)),u&&s(n($l)+"("),d&&s(`(${n(ii)}(${h?"true":""}), `),i&&s(ha);const m=d?Bi(t.inSSR,p):Gi(t.inSSR,p);s(n(m)+"(",-2,e),Go(ag([o,r,a,_,c]),t),s(")"),d&&s(")"),u&&(s(", "),Qt(u,t),s(")"))}function ag(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(s=>s||"null")}function lg(e,t){const{push:s,helper:n,pure:i}=t,o=Le(e.callee)?e.callee:n(e.callee);i&&s(ha),s(o+"(",-2,e),Go(e.arguments,t),s(")")}function cg(e,t){const{push:s,indent:n,deindent:i,newline:o}=t,{properties:r}=e;if(!r.length){s("{}",-2,e);return}const a=r.length>1||!1;s(a?"{":"{ "),a&&n();for(let l=0;l<r.length;l++){const{key:c,value:u}=r[l];ig(c,t),s(": "),Qt(u,t),l<r.length-1&&(s(","),o())}a&&i(),s(a?"}":" }")}function ug(e,t){oc(e.elements,t)}function dg(e,t){const{push:s,indent:n,deindent:i}=t,{params:o,returns:r,body:a,newline:l,isSlot:c}=e;c&&s(`_${$i[zl]}(`),s("(",-2,e),he(o)?Go(o,t):o&&Qt(o,t),s(") => "),(l||a)&&(s("{"),n()),r?(l&&s("return "),he(r)?oc(r,t):Qt(r,t)):a&&Qt(a,t),(l||a)&&(i(),s("}")),c&&(e.isNonScopedSlot&&s(", undefined, true"),s(")"))}function fg(e,t){const{test:s,consequent:n,alternate:i,newline:o}=e,{push:r,indent:a,deindent:l,newline:c}=t;if(s.type===4){const d=!Jl(s.content);d&&r("("),Df(s,t),d&&r(")")}else r("("),Qt(s,t),r(")");o&&a(),t.indentLevel++,o||r(" "),r("? "),Qt(n,t),t.indentLevel--,o&&c(),o||r(" "),r(": ");const u=i.type===19;u||t.indentLevel++,Qt(i,t),u||t.indentLevel--,o&&l(!0)}function hg(e,t){const{push:s,helper:n,indent:i,deindent:o,newline:r}=t,{needPauseTracking:a,needArraySpread:l}=e;l&&s("[...("),s(`_cache[${e.index}] || (`),a&&(i(),s(`${n(sa)}(-1`),e.inVOnce&&s(", true"),s("),"),r(),s("(")),s(`_cache[${e.index}] = `),Qt(e.value,t),a&&(s(`).cacheIndex = ${e.index},`),r(),s(`${n(sa)}(1),`),r(),s(`_cache[${e.index}]`),o()),s(")"),l&&s(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const pg=Uf(/^(?:if|else|else-if)$/,(e,t,s)=>gg(e,t,s,(n,i,o)=>{const r=s.parent.children;let a=r.indexOf(n),l=0;for(;a-->=0;){const c=r[a];c&&c.type===9&&(l+=c.branches.length)}return()=>{if(o)n.codegenNode=Ff(i,l,s);else{const c=_g(n.codegenNode);c.alternate=Ff(i,l+n.branches.length-1,s)}}}));function gg(e,t,s,n){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;s.onError(ot(28,t.loc)),t.exp=Ue("true",!1,i)}if(t.name==="if"){const i=Vf(e,t),o={type:9,loc:G6(e.loc),branches:[i]};if(s.replaceNode(o),n)return n(o,i,!0)}else{const i=s.parent.children;let o=i.indexOf(e);for(;o-->=-1;){const r=i[o];if(r&&Sf(r)){s.removeNode(r);continue}if(r&&r.type===9){(t.name==="else-if"||t.name==="else")&&r.branches[r.branches.length-1].condition===void 0&&s.onError(ot(30,e.loc)),s.removeNode();const a=Vf(e,t);r.branches.push(a);const l=n&&n(r,a,!1);fa(a,s),l&&l(),s.currentNode=null}else s.onError(ot(30,e.loc));break}}}function Vf(e,t){const s=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:s&&!Ts(e,"for")?e.children:[e],userKey:ia(e,"key"),isTemplateIf:s}}function Ff(e,t,s){return e.condition?Wl(e.condition,$f(e,t,s),Ut(s.helper(No),['""',"true"])):$f(e,t,s)}function $f(e,t,s){const{helper:n}=s,i=Ot("key",Ue(`${t}`,!1,ds,2)),{children:o}=e,r=o[0];if(o.length!==1||r.type!==1)if(o.length===1&&r.type===11){const l=r.codegenNode;return aa(l,i,s),l}else{let l=64;return Vo(s,n(ko),Ss([i]),o,l,void 0,void 0,!0,!1,!1,e.loc)}else{const l=r.codegenNode,c=x6(l);return c.type===13&&Zl(c,s),aa(c,i,s),l}}function _g(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const mg=Uf("for",(e,t,s)=>{const{helper:n,removeHelper:i}=s;return Eg(e,t,s,o=>{const r=Ut(n(Hl),[o.source]),a=oa(e),l=Ts(e,"memo"),c=ia(e,"key",!1,!0);c&&c.type;let u=c&&(c.type===6?c.value?Ue(c.value.content,!0):void 0:c.exp);const d=u?Ot("key",u):null,h=o.source.type===4&&o.source.constType>0,p=h?64:c?128:256;return o.codegenNode=Vo(s,n(ko),void 0,r,p,void 0,void 0,!0,!h,!1,e.loc),()=>{let _;const{children:m}=o,b=m.length!==1||m[0].type!==1,M=ra(e)?e:a&&e.children.length===1&&ra(e.children[0])?e.children[0]:null;if(M?(_=M.codegenNode,a&&d&&aa(_,d,s)):b?_=Vo(s,n(ko),d?Ss([d]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(_=m[0].codegenNode,a&&d&&aa(_,d,s),_.isBlock!==!h&&(_.isBlock?(i(ii),i(Bi(s.inSSR,_.isComponent))):i(Gi(s.inSSR,_.isComponent))),_.isBlock=!h,_.isBlock?(n(ii),n(Bi(s.inSSR,_.isComponent))):n(Gi(s.inSSR,_.isComponent))),l){const C=Hi(rc(o.parseResult,[Ue("_cached")]));C.body=S6([bs(["const _memo = (",l.exp,")"]),bs(["if (_cached && _cached.el",...u?[" && _cached.key === ",u]:[],` && ${s.helperString(lf)}(_cached, _memo)) return _cached`]),bs(["const _item = ",_]),Ue("_item.memo = _memo"),Ue("return _item")]),r.arguments.push(C,Ue("_cache"),Ue(String(s.cached.length))),s.cached.push(null)}else r.arguments.push(Hi(rc(o.parseResult),_,!0))}})});function Eg(e,t,s,n){if(!t.exp){s.onError(ot(31,t.loc));return}const i=t.forParseResult;if(!i){s.onError(ot(32,t.loc));return}Hf(i);const{addIdentifiers:o,removeIdentifiers:r,scopes:a}=s,{source:l,value:c,key:u,index:d}=i,h={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:u,objectIndexAlias:d,parseResult:i,children:oa(e)?e.children:[e]};s.replaceNode(h),a.vFor++;const p=n&&n(h);return()=>{a.vFor--,p&&p()}}function Hf(e,t){e.finalized||(e.finalized=!0)}function rc({value:e,key:t,index:s},n=[]){return vg([e,t,s,...n])}function vg(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((s,n)=>s||Ue("_".repeat(n+1),!1))}const Gf=Ue("undefined",!1),Cg=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const s=Ts(e,"slot");if(s)return s.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},yg=(e,t,s,n)=>Hi(e,s,!1,!0,s.length?s[0].loc:n);function Sg(e,t,s=yg){t.helper(zl);const{children:n,loc:i}=e,o=[],r=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=Ts(e,"slot",!0);if(l){const{arg:b,exp:M}=l;b&&!os(b)&&(a=!0),o.push(Ot(b||Ue("default",!0),s(M,void 0,n,i)))}let c=!1,u=!1;const d=[],h=new Set;let p=0;for(let b=0;b<n.length;b++){const M=n[b];let C;if(!oa(M)||!(C=Ts(M,"slot",!0))){M.type!==3&&d.push(M);continue}if(l){t.onError(ot(37,C.loc));break}c=!0;const{children:g,loc:E}=M,{arg:v=Ue("default",!0),exp:L,loc:k}=C;let $;os(v)?$=v?v.content:"default":a=!0;const A=Ts(M,"for"),U=s(L,A,g,E);let O,T;if(O=Ts(M,"if"))a=!0,r.push(Wl(O.exp,pa(v,U,p++),Gf));else if(T=Ts(M,/^else(?:-if)?$/,!0)){let V=b,K;for(;V--&&(K=n[V],!!Sf(K)););if(K&&oa(K)&&Ts(K,/^(?:else-)?if$/)){let X=r[r.length-1];for(;X.alternate.type===19;)X=X.alternate;X.alternate=T.exp?Wl(T.exp,pa(v,U,p++),Gf):pa(v,U,p++)}else t.onError(ot(30,T.loc))}else if(A){a=!0;const V=A.forParseResult;V?(Hf(V),r.push(Ut(t.helper(Hl),[V.source,Hi(rc(V),pa(v,U),!0)]))):t.onError(ot(32,A.loc))}else{if($){if(h.has($)){t.onError(ot(38,k));continue}h.add($),$==="default"&&(u=!0)}o.push(Ot(v,U))}}if(!l){const b=(M,C)=>{const g=s(M,void 0,C,i);return t.compatConfig&&(g.isNonScopedSlot=!0),Ot("default",g)};c?d.length&&!d.every(ec)&&(u?t.onError(ot(39,d[0].loc)):o.push(b(void 0,d))):o.push(b(void 0,n))}const _=a?2:ga(e.children)?3:1;let m=Ss(o.concat(Ot("_",Ue(_+"",!1))),i);return r.length&&(m=Ut(t.helper(af),[m,oi(r)])),{slots:m,hasDynamicSlots:a}}function pa(e,t,s){const n=[Ot("name",e),Ot("fn",t)];return s!=null&&n.push(Ot("key",Ue(String(s),!0))),Ss(n)}function ga(e){for(let t=0;t<e.length;t++){const s=e[t];switch(s.type){case 1:if(s.tagType===2||ga(s.children))return!0;break;case 9:if(ga(s.branches))return!0;break;case 10:case 11:if(ga(s.children))return!0;break}}return!1}const Bf=new WeakMap,Tg=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:n,props:i}=e,o=e.tagType===1;let r=o?Ig(e,t):`"${n}"`;const a=qe(r)&&r.callee===Pl;let l,c,u=0,d,h,p,_=a||r===Uo||r===xl||!o&&(n==="svg"||n==="foreignObject"||n==="math");if(i.length>0){const m=jf(e,t,void 0,o,a);l=m.props,u=m.patchFlag,h=m.dynamicPropNames;const b=m.directives;p=b&&b.length?oi(b.map(M=>wg(M,t))):void 0,m.shouldUseBlock&&(_=!0)}if(e.children.length>0)if(r===Xr&&(_=!0,u|=1024),o&&r!==Uo&&r!==Xr){const{slots:b,hasDynamicSlots:M}=Sg(e,t);c=b,M&&(u|=1024)}else if(e.children.length===1&&r!==Uo){const b=e.children[0],M=b.type,C=M===5||M===8;C&&hs(b,t)===0&&(u|=1),C||M===2?c=b:c=e.children}else c=e.children;h&&h.length&&(d=Mg(h)),e.codegenNode=Vo(t,r,l,c,u===0?void 0:u,d,p,!!_,!1,o,e.loc)};function Ig(e,t,s=!1){let{tag:n}=e;const i=ac(n),o=ia(e,"is",!1,!0);if(o)if(i||ri("COMPILER_IS_ON_ELEMENT",t)){let a;if(o.type===6?a=o.value&&Ue(o.value.content,!0):(a=o.exp,a||(a=Ue("is",!1,o.arg.loc))),a)return Ut(t.helper(Pl),[a])}else o.type===6&&o.value.content.startsWith("vue:")&&(n=o.value.content.slice(4));const r=pf(n)||t.isBuiltInComponent(n);return r?(s||t.helper(r),r):(t.helper(Dl),t.components.add(n),$o(n,"component"))}function jf(e,t,s=e.props,n,i,o=!1){const{tag:r,loc:a,children:l}=e;let c=[];const u=[],d=[],h=l.length>0;let p=!1,_=0,m=!1,b=!1,M=!1,C=!1,g=!1,E=!1;const v=[],L=U=>{c.length&&(u.push(Ss(qf(c),a)),c=[]),U&&u.push(U)},k=()=>{t.scopes.vFor>0&&c.push(Ot(Ue("ref_for",!0),Ue("true")))},$=({key:U,value:O})=>{if(os(U)){const T=U.content,V=Bn(T);if(V&&(!n||i)&&T.toLowerCase()!=="onclick"&&T!=="onUpdate:modelValue"&&!en(T)&&(C=!0),V&&en(T)&&(E=!0),V&&O.type===14&&(O=O.arguments[0]),O.type===20||(O.type===4||O.type===8)&&hs(O,t)>0)return;T==="ref"?m=!0:T==="class"?b=!0:T==="style"?M=!0:T!=="key"&&!v.includes(T)&&v.push(T),n&&(T==="class"||T==="style")&&!v.includes(T)&&v.push(T)}else g=!0};for(let U=0;U<s.length;U++){const O=s[U];if(O.type===6){const{loc:T,name:V,nameLoc:K,value:X}=O;let te=!0;if(V==="ref"&&(m=!0,k()),V==="is"&&(ac(r)||X&&X.content.startsWith("vue:")||ri("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(Ot(Ue(V,!0,K),Ue(X?X.content:"",te,X?X.loc:T)))}else{const{name:T,arg:V,exp:K,loc:X,modifiers:te}=O,ie=T==="bind",F=T==="on";if(T==="slot"){n||t.onError(ot(40,X));continue}if(T==="once"||T==="memo"||T==="is"||ie&&ai(V,"is")&&(ac(r)||ri("COMPILER_IS_ON_ELEMENT",t))||F&&o)continue;if((ie&&ai(V,"key")||F&&h&&ai(V,"vue:before-update"))&&(p=!0),ie&&ai(V,"ref")&&k(),!V&&(ie||F)){if(g=!0,K)if(ie){if(L(),ri("COMPILER_V_BIND_OBJECT_ORDER",t)){u.unshift(K);continue}k(),L(),u.push(K)}else L({type:14,loc:X,callee:t.helper(jl),arguments:n?[K]:[K,"true"]});else t.onError(ot(ie?34:35,X));continue}ie&&te.some(Lt=>Lt.content==="prop")&&(_|=32);const Oe=t.directiveTransforms[T];if(Oe){const{props:Lt,needRuntime:Ye}=Oe(O,e,t);!o&&Lt.forEach($),F&&V&&!os(V)?L(Ss(Lt,a)):c.push(...Lt),Ye&&(d.push(O),Bt(Ye)&&Bf.set(O,Ye))}else Ap(T)||(d.push(O),h&&(p=!0))}}let A;if(u.length?(L(),u.length>1?A=Ut(t.helper(ta),u,a):A=u[0]):c.length&&(A=Ss(qf(c),a)),g?_|=16:(b&&!n&&(_|=2),M&&!n&&(_|=4),v.length&&(_|=8),C&&(_|=32)),!p&&(_===0||_===32)&&(m||E||d.length>0)&&(_|=512),!t.inSSR&&A)switch(A.type){case 15:let U=-1,O=-1,T=!1;for(let X=0;X<A.properties.length;X++){const te=A.properties[X].key;os(te)?te.content==="class"?U=X:te.content==="style"&&(O=X):te.isHandlerKey||(T=!0)}const V=A.properties[U],K=A.properties[O];T?A=Ut(t.helper(Do),[A]):(V&&!os(V.value)&&(V.value=Ut(t.helper(Gl),[V.value])),K&&(M||K.value.type===4&&K.value.content.trim()[0]==="["||K.value.type===17)&&(K.value=Ut(t.helper(Bl),[K.value])));break;case 14:break;default:A=Ut(t.helper(Do),[Ut(t.helper(Po),[A])]);break}return{props:A,directives:d,patchFlag:_,dynamicPropNames:v,shouldUseBlock:p}}function qf(e){const t=new Map,s=[];for(let n=0;n<e.length;n++){const i=e[n];if(i.key.type===8||!i.key.isStatic){s.push(i);continue}const o=i.key.content,r=t.get(o);r?(o==="style"||o==="class"||Bn(o))&&Rg(r,i):(t.set(o,i),s.push(i))}return s}function Rg(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=oi([e.value,t.value],e.loc)}function wg(e,t){const s=[],n=Bf.get(e);n?s.push(t.helperString(n)):(t.helper(Vl),t.directives.add(e.name),s.push($o(e.name,"directive")));const{loc:i}=e;if(e.exp&&s.push(e.exp),e.arg&&(e.exp||s.push("void 0"),s.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||s.push("void 0"),s.push("void 0"));const o=Ue("true",!1,i);s.push(Ss(e.modifiers.map(r=>Ot(r,o)),i))}return oi(s,e.loc)}function Mg(e){let t="[";for(let s=0,n=e.length;s<n;s++)t+=JSON.stringify(e[s]),s<n-1&&(t+=", ");return t+"]"}function ac(e){return e==="component"||e==="Component"}const Og=(e,t)=>{if(ra(e)){const{children:s,loc:n}=e,{slotName:i,slotProps:o}=bg(e,t),r=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let a=2;o&&(r[2]=o,a=3),s.length&&(r[3]=Hi([],s,!1,!1,n),a=4),t.scopeId&&!t.slotted&&(a=5),r.splice(a),e.codegenNode=Ut(t.helper(rf),r,n)}};function bg(e,t){let s='"default"',n;const i=[];for(let o=0;o<e.props.length;o++){const r=e.props[o];if(r.type===6)r.value&&(r.name==="name"?s=JSON.stringify(r.value.content):(r.name=Xe(r.name),i.push(r)));else if(r.name==="bind"&&ai(r.arg,"name")){if(r.exp)s=r.exp;else if(r.arg&&r.arg.type===4){const a=Xe(r.arg.content);s=r.exp=Ue(a,!1,r.arg.loc)}}else r.name==="bind"&&r.arg&&os(r.arg)&&(r.arg.content=Xe(r.arg.content)),i.push(r)}if(i.length>0){const{props:o,directives:r}=jf(e,t,i,!1,!1);n=o,r.length&&t.onError(ot(36,r[0].loc))}return{slotName:s,slotProps:n}}const Kf=(e,t,s,n)=>{const{loc:i,modifiers:o,arg:r}=e;!e.exp&&!o.length&&s.onError(ot(35,i));let a;if(r.type===4)if(r.isStatic){let d=r.content;d.startsWith("vue:")&&(d=`vnode-${d.slice(4)}`);const h=t.tagType!==0||d.startsWith("vnode")||!/[A-Z]/.test(d)?Ti(Xe(d)):`on:${d}`;a=Ue(h,!0,r.loc)}else a=bs([`${s.helperString(Kl)}(`,r,")"]);else a=r,a.children.unshift(`${s.helperString(Kl)}(`),a.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=s.cacheHandlers&&!l&&!s.inVOnce;if(l){const d=mf(l),h=!(d||O6(l)),p=l.content.includes(";");(h||c&&d)&&(l=bs([`${h?"$event":"(...args)"} => ${p?"{":"("}`,l,p?"}":")"]))}let u={props:[Ot(a,l||Ue("() => {}",!1,i))]};return n&&(u=n(u)),c&&(u.props[0].value=s.cache(u.props[0].value)),u.props.forEach(d=>d.key.isHandlerKey=!0),u},Lg=(e,t,s)=>{const{modifiers:n,loc:i}=e,o=e.arg;let{exp:r}=e;return r&&r.type===4&&!r.content.trim()&&(r=void 0),o.type!==4?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=o.content?`${o.content} || ""`:'""'),n.some(a=>a.content==="camel")&&(o.type===4?o.isStatic?o.content=Xe(o.content):o.content=`${s.helperString(ql)}(${o.content})`:(o.children.unshift(`${s.helperString(ql)}(`),o.children.push(")"))),s.inSSR||(n.some(a=>a.content==="prop")&&zf(o,"."),n.some(a=>a.content==="attr")&&zf(o,"^")),{props:[Ot(o,r)]}},zf=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Ag=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const s=e.children;let n,i=!1;for(let o=0;o<s.length;o++){const r=s[o];if(Xl(r)){i=!0;for(let a=o+1;a<s.length;a++){const l=s[a];if(Xl(l))n||(n=s[o]=bs([r],r.loc)),n.children.push(" + ",l),s.splice(a,1),a--;else{n=void 0;break}}}}if(!(!i||s.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(o=>o.type===7&&!t.directiveTransforms[o.name])&&e.tag!=="template")))for(let o=0;o<s.length;o++){const r=s[o];if(Xl(r)||r.type===8){const a=[];(r.type!==2||r.content!==" ")&&a.push(r),!t.ssr&&hs(r,t)===0&&a.push("1"),s[o]={type:12,content:r,loc:r.loc,codegenNode:Ut(t.helper(Nl),a)}}}}},Qf=new WeakSet,xg=(e,t)=>{if(e.type===1&&Ts(e,"once",!0))return Qf.has(e)||t.inVOnce||t.inSSR?void 0:(Qf.add(e),t.inVOnce=!0,t.helper(sa),()=>{t.inVOnce=!1;const s=t.currentNode;s.codegenNode&&(s.codegenNode=t.cache(s.codegenNode,!0,!0))})},Wf=(e,t,s)=>{const{exp:n,arg:i}=e;if(!n)return s.onError(ot(41,e.loc)),Bo();const o=n.loc.source.trim(),r=n.type===4?n.content:o,a=s.bindingMetadata[o];if(a==="props"||a==="props-aliased")return s.onError(ot(44,n.loc)),Bo();if(a==="literal-const"||a==="setup-const")return s.onError(ot(45,n.loc)),Bo();if(!r.trim()||!mf(n))return s.onError(ot(42,n.loc)),Bo();const l=i||Ue("modelValue",!0),c=i?os(i)?`onUpdate:${Xe(i.content)}`:bs(['"onUpdate:" + ',i]):"onUpdate:modelValue";let u;const d=s.isTS?"($event: any)":"$event";u=bs([`${d} => ((`,n,") = $event)"]);const h=[Ot(l,e.exp),Ot(c,u)];if(e.modifiers.length&&t.tagType===1){const p=e.modifiers.map(m=>m.content).map(m=>(Jl(m)?m:JSON.stringify(m))+": true").join(", "),_=i?os(i)?`${i.content}Modifiers`:bs([i,' + "Modifiers"']):"modelModifiers";h.push(Ot(_,Ue(`{ ${p} }`,!1,e.loc,2)))}return Bo(h)};function Bo(e=[]){return{props:e}}const kg=/[\w).+\-_$\]]/,Ug=(e,t)=>{ri("COMPILER_FILTERS",t)&&(e.type===5?_a(e.content,t):e.type===1&&e.props.forEach(s=>{s.type===7&&s.name!=="for"&&s.exp&&_a(s.exp,t)}))};function _a(e,t){if(e.type===4)Zf(e,t);else for(let s=0;s<e.children.length;s++){const n=e.children[s];typeof n=="object"&&(n.type===4?Zf(n,t):n.type===8?_a(e,t):n.type===5&&_a(n.content,t))}}function Zf(e,t){const s=e.content;let n=!1,i=!1,o=!1,r=!1,a=0,l=0,c=0,u=0,d,h,p,_,m=[];for(p=0;p<s.length;p++)if(h=d,d=s.charCodeAt(p),n)d===39&&h!==92&&(n=!1);else if(i)d===34&&h!==92&&(i=!1);else if(o)d===96&&h!==92&&(o=!1);else if(r)d===47&&h!==92&&(r=!1);else if(d===124&&s.charCodeAt(p+1)!==124&&s.charCodeAt(p-1)!==124&&!a&&!l&&!c)_===void 0?(u=p+1,_=s.slice(0,p).trim()):b();else{switch(d){case 34:i=!0;break;case 39:n=!0;break;case 96:o=!0;break;case 40:c++;break;case 41:c--;break;case 91:l++;break;case 93:l--;break;case 123:a++;break;case 125:a--;break}if(d===47){let M=p-1,C;for(;M>=0&&(C=s.charAt(M),C===" ");M--);(!C||!kg.test(C))&&(r=!0)}}_===void 0?_=s.slice(0,p).trim():u!==0&&b();function b(){m.push(s.slice(u,p).trim()),u=p+1}if(m.length){for(p=0;p<m.length;p++)_=Ng(_,m[p],t);e.content=_,e.ast=void 0}}function Ng(e,t,s){s.helper(Fl);const n=t.indexOf("(");if(n<0)return s.filters.add(t),`${$o(t,"filter")}(${e})`;{const i=t.slice(0,n),o=t.slice(n+1);return s.filters.add(i),`${$o(i,"filter")}(${e}${o!==")"?","+o:o}`}}const Yf=new WeakSet,Dg=(e,t)=>{if(e.type===1){const s=Ts(e,"memo");return!s||Yf.has(e)||t.inSSR?void 0:(Yf.add(e),()=>{const n=e.codegenNode||t.currentNode.codegenNode;n&&n.type===13&&(e.tagType!==1&&Zl(n,t),e.codegenNode=Ut(t.helper(Ql),[s.exp,Hi(void 0,n),"_cache",String(t.cached.length)]),t.cached.push(null))})}},Pg=(e,t)=>{if(e.type===1){for(const s of e.props)if(s.type===7&&s.name==="bind"&&(!s.exp||s.exp.type===4&&!s.exp.content.trim())&&s.arg){const n=s.arg;if(n.type!==4||!n.isStatic)t.onError(ot(53,n.loc)),s.exp=Ue("",!0,n.loc);else{const i=Xe(n.content);(gf.test(i[0])||i[0]==="-")&&(s.exp=Ue(i,!1,n.loc))}}}};function Vg(e){return[[Pg,xg,pg,Dg,mg,Ug,Og,Tg,Cg,Ag],{on:Kf,bind:Lg,model:Wf}]}function Fg(e,t={}){const s=t.onError||Yl,n=t.mode==="module";t.prefixIdentifiers===!0?s(ot(48)):n&&s(ot(49));const i=!1;t.cacheHandlers&&s(ot(50)),t.scopeId&&!n&&s(ot(51));const o=Ve({},t,{prefixIdentifiers:i}),r=Le(e)?q6(e,o):e,[a,l]=Vg();return W6(r,Ve({},o,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:Ve({},l,t.directiveTransforms||{})})),X6(r,o)}const $g=()=>({props:[]});/**
|
|
318
|
-
* @vue/compiler-dom v3.5.
|
|
316
|
+
**/const Po=Symbol(""),Vo=Symbol(""),Hl=Symbol(""),sa=Symbol(""),ff=Symbol(""),ii=Symbol(""),hf=Symbol(""),pf=Symbol(""),Gl=Symbol(""),Bl=Symbol(""),Fo=Symbol(""),jl=Symbol(""),gf=Symbol(""),ql=Symbol(""),Kl=Symbol(""),zl=Symbol(""),Ql=Symbol(""),Wl=Symbol(""),Zl=Symbol(""),_f=Symbol(""),mf=Symbol(""),na=Symbol(""),ia=Symbol(""),Yl=Symbol(""),Xl=Symbol(""),$o=Symbol(""),Ho=Symbol(""),Jl=Symbol(""),ec=Symbol(""),b6=Symbol(""),tc=Symbol(""),oa=Symbol(""),L6=Symbol(""),A6=Symbol(""),sc=Symbol(""),x6=Symbol(""),k6=Symbol(""),nc=Symbol(""),Ef=Symbol(""),qi={[Po]:"Fragment",[Vo]:"Teleport",[Hl]:"Suspense",[sa]:"KeepAlive",[ff]:"BaseTransition",[ii]:"openBlock",[hf]:"createBlock",[pf]:"createElementBlock",[Gl]:"createVNode",[Bl]:"createElementVNode",[Fo]:"createCommentVNode",[jl]:"createTextVNode",[gf]:"createStaticVNode",[ql]:"resolveComponent",[Kl]:"resolveDynamicComponent",[zl]:"resolveDirective",[Ql]:"resolveFilter",[Wl]:"withDirectives",[Zl]:"renderList",[_f]:"renderSlot",[mf]:"createSlots",[na]:"toDisplayString",[ia]:"mergeProps",[Yl]:"normalizeClass",[Xl]:"normalizeStyle",[$o]:"normalizeProps",[Ho]:"guardReactiveProps",[Jl]:"toHandlers",[ec]:"camelize",[b6]:"capitalize",[tc]:"toHandlerKey",[oa]:"setBlockTracking",[L6]:"pushScopeId",[A6]:"popScopeId",[sc]:"withCtx",[x6]:"unref",[k6]:"isRef",[nc]:"withMemo",[Ef]:"isMemoSame"};function U6(e){Object.getOwnPropertySymbols(e).forEach(t=>{qi[t]=e[t]})}const ps={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function N6(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:ps}}function Go(e,t,s,n,i,o,r,a=!1,l=!1,c=!1,u=ps){return e&&(a?(e.helper(ii),e.helper(Qi(e.inSSR,c))):e.helper(zi(e.inSSR,c)),r&&e.helper(Wl)),{type:13,tag:t,props:s,children:n,patchFlag:i,dynamicProps:o,directives:r,isBlock:a,disableTracking:l,isComponent:c,loc:u}}function oi(e,t=ps){return{type:17,loc:t,elements:e}}function ws(e,t=ps){return{type:15,loc:t,properties:e}}function Rt(e,t){return{type:16,loc:ps,key:Ue(e)?Ne(e,!0):e,value:t}}function Ne(e,t=!1,s=ps,n=0){return{type:4,loc:s,content:e,isStatic:t,constType:t?3:n}}function Ns(e,t=ps){return{type:8,loc:t,children:e}}function Ot(e,t=[],s=ps){return{type:14,loc:s,callee:e,arguments:t}}function Ki(e,t=void 0,s=!1,n=!1,i=ps){return{type:18,params:e,returns:t,newline:s,isSlot:n,loc:i}}function ic(e,t,s,n=!0){return{type:19,test:e,consequent:t,alternate:s,newline:n,loc:ps}}function D6(e,t,s=!1,n=!1){return{type:20,index:e,value:t,needPauseTracking:s,inVOnce:n,needArraySpread:!1,loc:ps}}function P6(e){return{type:21,body:e,loc:ps}}function zi(e,t){return e||t?Gl:Bl}function Qi(e,t){return e||t?hf:pf}function oc(e,{helper:t,removeHelper:s,inSSR:n}){e.isBlock||(e.isBlock=!0,s(zi(n,e.isComponent)),t(ii),t(Qi(n,e.isComponent)))}const vf=new Uint8Array([123,123]),Cf=new Uint8Array([125,125]);function yf(e){return e>=97&&e<=122||e>=65&&e<=90}function gs(e){return e===32||e===10||e===9||e===12||e===13}function Un(e){return e===47||e===62||gs(e)}function ra(e){const t=new Uint8Array(e.length);for(let s=0;s<e.length;s++)t[s]=e.charCodeAt(s);return t}const zt={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class V6{constructor(t,s){this.stack=t,this.cbs=s,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=vf,this.delimiterClose=Cf,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=vf,this.delimiterClose=Cf}getPos(t){let s=1,n=t+1;const i=this.newlines.length;let o=-1;if(i>100){let r=-1,a=i;for(;r+1<a;){const l=r+a>>>1;this.newlines[l]<t?r=l:a=l}o=r}else for(let r=i-1;r>=0;r--)if(t>this.newlines[r]){o=r;break}return o>=0&&(s=o+2,n=t-this.newlines[o]),{column:n,line:s,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const s=this.index+1-this.delimiterOpen.length;s>this.sectionStart&&this.cbs.ontext(this.sectionStart,s),this.state=3,this.sectionStart=s}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const s=this.sequenceIndex===this.currentSequence.length;if(!(s?Un(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!s){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||gs(t)){const s=this.index-this.currentSequence.length;if(this.sectionStart<s){const n=this.index;this.index=s,this.cbs.ontext(this.sectionStart,s),this.index=n}this.sectionStart=s+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===zt.TitleEnd||this.currentSequence===zt.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===zt.Cdata[this.sequenceIndex]?++this.sequenceIndex===zt.Cdata.length&&(this.state=28,this.currentSequence=zt.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const s=this.buffer.charCodeAt(this.index);if(s===10&&this.newlines.push(this.index),s===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===zt.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,s){this.enterRCDATA(t,s),this.state=31}enterRCDATA(t,s){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=s}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):yf(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){Un(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(Un(t)){const s=this.buffer.slice(this.sectionStart,this.index);s!=="template"&&this.enterRCDATA(ra("</"+s),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){gs(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=yf(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||gs(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):gs(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):gs(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||Un(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||Un(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||Un(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||Un(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||Un(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):gs(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):gs(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,s){(t===s||this.fastForwardTo(s))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(s===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){gs(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=zt.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===zt.ScriptEnd[3]?this.startSpecial(zt.ScriptEnd,4):t===zt.StyleEnd[3]?this.startSpecial(zt.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===zt.TitleEnd[3]?this.startSpecial(zt.TitleEnd,4):t===zt.TextareaEnd[3]?this.startSpecial(zt.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const s=this.buffer.charCodeAt(this.index);switch(s===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(s);break}case 2:{this.stateInterpolationOpen(s);break}case 3:{this.stateInterpolation(s);break}case 4:{this.stateInterpolationClose(s);break}case 31:{this.stateSpecialStartSequence(s);break}case 32:{this.stateInRCDATA(s);break}case 26:{this.stateCDATASequence(s);break}case 19:{this.stateInAttrValueDoubleQuotes(s);break}case 12:{this.stateInAttrName(s);break}case 13:{this.stateInDirName(s);break}case 14:{this.stateInDirArg(s);break}case 15:{this.stateInDynamicDirArg(s);break}case 16:{this.stateInDirModifier(s);break}case 28:{this.stateInCommentLike(s);break}case 27:{this.stateInSpecialComment(s);break}case 11:{this.stateBeforeAttrName(s);break}case 6:{this.stateInTagName(s);break}case 34:{this.stateInSFCRootTagName(s);break}case 9:{this.stateInClosingTagName(s);break}case 5:{this.stateBeforeTagName(s);break}case 17:{this.stateAfterAttrName(s);break}case 20:{this.stateInAttrValueSingleQuotes(s);break}case 18:{this.stateBeforeAttrValue(s);break}case 8:{this.stateBeforeClosingTagName(s);break}case 10:{this.stateAfterClosingTagName(s);break}case 29:{this.stateBeforeSpecialS(s);break}case 30:{this.stateBeforeSpecialT(s);break}case 21:{this.stateInAttrValueNoQuotes(s);break}case 7:{this.stateInSelfClosingTag(s);break}case 23:{this.stateInDeclaration(s);break}case 22:{this.stateBeforeDeclaration(s);break}case 25:{this.stateBeforeComment(s);break}case 24:{this.stateInProcessingInstruction(s);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===zt.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,s){}}function Sf(e,{compatConfig:t}){const s=t&&t[e];return e==="MODE"?s||3:s}function ri(e,t){const s=Sf("MODE",t),n=Sf(e,t);return s===3?n===!0:n!==!1}function Bo(e,t,s,...n){return ri(e,t)}function rc(e){throw e}function Tf(e){}function ct(e,t,s,n){const i=`https://vuejs.org/error-reference/#compiler-${e}`,o=new SyntaxError(String(i));return o.code=e,o.loc=t,o}const cs=e=>e.type===4&&e.isStatic;function If(e){switch(e){case"Teleport":case"teleport":return Vo;case"Suspense":case"suspense":return Hl;case"KeepAlive":case"keep-alive":return sa;case"BaseTransition":case"base-transition":return ff}}const F6=/^$|^\d|[^\$\w\xA0-\uFFFF]/,ac=e=>!F6.test(e),wf=/[A-Za-z_$\xA0-\uFFFF]/,$6=/[\.\?\w$\xA0-\uFFFF]/,H6=/\s+[.[]\s*|\s*[.[]\s+/g,Rf=e=>e.type===4?e.content:e.loc.source,Mf=e=>{const t=Rf(e).trim().replace(H6,a=>a.trim());let s=0,n=[],i=0,o=0,r=null;for(let a=0;a<t.length;a++){const l=t.charAt(a);switch(s){case 0:if(l==="[")n.push(s),s=1,i++;else if(l==="(")n.push(s),s=2,o++;else if(!(a===0?wf:$6).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(n.push(s),s=3,r=l):l==="["?i++:l==="]"&&(--i||(s=n.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")n.push(s),s=3,r=l;else if(l==="(")o++;else if(l===")"){if(a===t.length-1)return!1;--o||(s=n.pop())}break;case 3:l===r&&(s=n.pop(),r=null);break}}return!i&&!o},G6=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,B6=e=>G6.test(Rf(e));function Rs(e,t,s=!1){for(let n=0;n<e.props.length;n++){const i=e.props[n];if(i.type===7&&(s||i.exp)&&(Ue(t)?i.name===t:t.test(i.name)))return i}}function aa(e,t,s=!1,n=!1){for(let i=0;i<e.props.length;i++){const o=e.props[i];if(o.type===6){if(s)continue;if(o.name===t&&(o.value||n))return o}else if(o.name==="bind"&&(o.exp||n)&&ai(o.arg,t))return o}}function ai(e,t){return!!(e&&cs(e)&&e.content===t)}function j6(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function lc(e){return e.type===5||e.type===2}function Of(e){return e.type===7&&e.name==="pre"}function q6(e){return e.type===7&&e.name==="slot"}function la(e){return e.type===1&&e.tagType===3}function ca(e){return e.type===1&&e.tagType===2}const K6=new Set([$o,Ho]);function bf(e,t=[]){if(e&&!Ue(e)&&e.type===14){const s=e.callee;if(!Ue(s)&&K6.has(s))return bf(e.arguments[0],t.concat(e))}return[e,t]}function ua(e,t,s){let n,i=e.type===13?e.props:e.arguments[2],o=[],r;if(i&&!Ue(i)&&i.type===14){const a=bf(i);i=a[0],o=a[1],r=o[o.length-1]}if(i==null||Ue(i))n=ws([t]);else if(i.type===14){const a=i.arguments[0];!Ue(a)&&a.type===15?Lf(t,a)||a.properties.unshift(t):i.callee===Jl?n=Ot(s.helper(ia),[ws([t]),i]):i.arguments.unshift(ws([t])),!n&&(n=i)}else i.type===15?(Lf(t,i)||i.properties.unshift(t),n=i):(n=Ot(s.helper(ia),[ws([t]),i]),r&&r.callee===Ho&&(r=o[o.length-2]));e.type===13?r?r.arguments[0]=n:e.props=n:r?r.arguments[0]=n:e.arguments[2]=n}function Lf(e,t){let s=!1;if(e.key.type===4){const n=e.key.content;s=t.properties.some(i=>i.key.type===4&&i.key.content===n)}return s}function jo(e,t){return`_${t}_${e.replace(/[^\w]/g,(s,n)=>s==="-"?"_":e.charCodeAt(n).toString())}`}function z6(e){return e.type===14&&e.callee===nc?e.arguments[1].returns:e}const Q6=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function Af(e){for(let t=0;t<e.length;t++)if(!gs(e.charCodeAt(t)))return!1;return!0}function cc(e){return e.type===2&&Af(e.content)||e.type===12&&cc(e.content)}function xf(e){return e.type===3||cc(e)}const kf={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:wi,isPreTag:wi,isIgnoreNewlineTag:wi,isCustomElement:wi,onError:rc,onWarn:Tf,comments:!1,prefixIdentifiers:!1};let We=kf,qo=null,mn="",Qt=null,je=null,us="",En=-1,li=-1,uc=0,Nn=!1,dc=null;const dt=[],mt=new V6(dt,{onerr:vn,ontext(e,t){da(Pt(e,t),e,t)},ontextentity(e,t,s){da(e,t,s)},oninterpolation(e,t){if(Nn)return da(Pt(e,t),e,t);let s=e+mt.delimiterOpen.length,n=t-mt.delimiterClose.length;for(;gs(mn.charCodeAt(s));)s++;for(;gs(mn.charCodeAt(n-1));)n--;let i=Pt(s,n);i.includes("&")&&(i=We.decodeEntities(i,!1)),fc({type:5,content:ha(i,!1,St(s,n)),loc:St(e,t)})},onopentagname(e,t){const s=Pt(e,t);Qt={type:1,tag:s,ns:We.getNamespace(s,dt[0],We.ns),tagType:0,props:[],children:[],loc:St(e-1,t),codegenNode:void 0}},onopentagend(e){Nf(e)},onclosetag(e,t){const s=Pt(e,t);if(!We.isVoidTag(s)){let n=!1;for(let i=0;i<dt.length;i++)if(dt[i].tag.toLowerCase()===s.toLowerCase()){n=!0,i>0&&vn(24,dt[0].loc.start.offset);for(let r=0;r<=i;r++){const a=dt.shift();fa(a,t,r<i)}break}n||vn(23,Df(e,60))}},onselfclosingtag(e){const t=Qt.tag;Qt.isSelfClosing=!0,Nf(e),dt[0]&&dt[0].tag===t&&fa(dt.shift(),e)},onattribname(e,t){je={type:6,name:Pt(e,t),nameLoc:St(e,t),value:void 0,loc:St(e)}},ondirname(e,t){const s=Pt(e,t),n=s==="."||s===":"?"bind":s==="@"?"on":s==="#"?"slot":s.slice(2);if(!Nn&&n===""&&vn(26,e),Nn||n==="")je={type:6,name:s,nameLoc:St(e,t),value:void 0,loc:St(e)};else if(je={type:7,name:n,rawName:s,exp:void 0,arg:void 0,modifiers:s==="."?[Ne("prop")]:[],loc:St(e)},n==="pre"){Nn=mt.inVPre=!0,dc=Qt;const i=Qt.props;for(let o=0;o<i.length;o++)i[o].type===7&&(i[o]=ig(i[o]))}},ondirarg(e,t){if(e===t)return;const s=Pt(e,t);if(Nn&&!Of(je))je.name+=s,ci(je.nameLoc,t);else{const n=s[0]!=="[";je.arg=ha(n?s:s.slice(1,-1),n,St(e,t),n?3:0)}},ondirmodifier(e,t){const s=Pt(e,t);if(Nn&&!Of(je))je.name+="."+s,ci(je.nameLoc,t);else if(je.name==="slot"){const n=je.arg;n&&(n.content+="."+s,ci(n.loc,t))}else{const n=Ne(s,!0,St(e,t));je.modifiers.push(n)}},onattribdata(e,t){us+=Pt(e,t),En<0&&(En=e),li=t},onattribentity(e,t,s){us+=e,En<0&&(En=t),li=s},onattribnameend(e){const t=je.loc.start.offset,s=Pt(t,e);je.type===7&&(je.rawName=s),Qt.props.some(n=>(n.type===7?n.rawName:n.name)===s)&&vn(2,t)},onattribend(e,t){if(Qt&&je){if(ci(je.loc,t),e!==0)if(us.includes("&")&&(us=We.decodeEntities(us,!0)),je.type===6)je.name==="class"&&(us=Ff(us).trim()),e===1&&!us&&vn(13,t),je.value={type:2,content:us,loc:e===1?St(En,li):St(En-1,li+1)},mt.inSFCRoot&&Qt.tag==="template"&&je.name==="lang"&&us&&us!=="html"&&mt.enterRCDATA(ra("</template"),0);else{let s=0;je.exp=ha(us,!1,St(En,li),0,s),je.name==="for"&&(je.forParseResult=Z6(je.exp));let n=-1;je.name==="bind"&&(n=je.modifiers.findIndex(i=>i.content==="sync"))>-1&&Bo("COMPILER_V_BIND_SYNC",We,je.loc,je.arg.loc.source)&&(je.name="model",je.modifiers.splice(n,1))}(je.type!==7||je.name!=="pre")&&Qt.props.push(je)}us="",En=li=-1},oncomment(e,t){We.comments&&fc({type:3,content:Pt(e,t),loc:St(e-4,t+3)})},onend(){const e=mn.length;for(let t=0;t<dt.length;t++)fa(dt[t],e-1),vn(24,dt[t].loc.start.offset)},oncdata(e,t){dt[0].ns!==0?da(Pt(e,t),e,t):vn(1,e-9)},onprocessinginstruction(e){(dt[0]?dt[0].ns:We.ns)===0&&vn(21,e-1)}}),Uf=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,W6=/^\(|\)$/g;function Z6(e){const t=e.loc,s=e.content,n=s.match(Q6);if(!n)return;const[,i,o]=n,r=(d,h,p=!1)=>{const m=t.start.offset+h,v=m+d.length;return ha(d,!1,St(m,v),0,p?1:0)},a={source:r(o.trim(),s.indexOf(o,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(W6,"").trim();const c=i.indexOf(l),u=l.match(Uf);if(u){l=l.replace(Uf,"").trim();const d=u[1].trim();let h;if(d&&(h=s.indexOf(d,c+l.length),a.key=r(d,h,!0)),u[2]){const p=u[2].trim();p&&(a.index=r(p,s.indexOf(p,a.key?h+d.length:c+l.length),!0))}}return l&&(a.value=r(l,c,!0)),a}function Pt(e,t){return mn.slice(e,t)}function Nf(e){mt.inSFCRoot&&(Qt.innerLoc=St(e+1,e+1)),fc(Qt);const{tag:t,ns:s}=Qt;s===0&&We.isPreTag(t)&&uc++,We.isVoidTag(t)?fa(Qt,e):(dt.unshift(Qt),(s===1||s===2)&&(mt.inXML=!0)),Qt=null}function da(e,t,s){{const o=dt[0]&&dt[0].tag;o!=="script"&&o!=="style"&&e.includes("&")&&(e=We.decodeEntities(e,!1))}const n=dt[0]||qo,i=n.children[n.children.length-1];i&&i.type===2?(i.content+=e,ci(i.loc,s)):n.children.push({type:2,content:e,loc:St(t,s)})}function fa(e,t,s=!1){s?ci(e.loc,Df(t,60)):ci(e.loc,Y6(t,62)+1),mt.inSFCRoot&&(e.children.length?e.innerLoc.end=$e({},e.children[e.children.length-1].loc.end):e.innerLoc.end=$e({},e.innerLoc.start),e.innerLoc.source=Pt(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:n,ns:i,children:o}=e;if(Nn||(n==="slot"?e.tagType=2:Pf(e)?e.tagType=3:J6(e)&&(e.tagType=1)),mt.inRCDATA||(e.children=Vf(o)),i===0&&We.isIgnoreNewlineTag(n)){const r=o[0];r&&r.type===2&&(r.content=r.content.replace(/^\r?\n/,""))}i===0&&We.isPreTag(n)&&uc--,dc===e&&(Nn=mt.inVPre=!1,dc=null),mt.inXML&&(dt[0]?dt[0].ns:We.ns)===0&&(mt.inXML=!1);{const r=e.props;if(!mt.inSFCRoot&&ri("COMPILER_NATIVE_TEMPLATE",We)&&e.tag==="template"&&!Pf(e)){const l=dt[0]||qo,c=l.children.indexOf(e);l.children.splice(c,1,...e.children)}const a=r.find(l=>l.type===6&&l.name==="inline-template");a&&Bo("COMPILER_INLINE_TEMPLATE",We,a.loc)&&e.children.length&&(a.value={type:2,content:Pt(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:a.loc})}}function Y6(e,t){let s=e;for(;mn.charCodeAt(s)!==t&&s<mn.length-1;)s++;return s}function Df(e,t){let s=e;for(;mn.charCodeAt(s)!==t&&s>=0;)s--;return s}const X6=new Set(["if","else","else-if","for","slot"]);function Pf({tag:e,props:t}){if(e==="template"){for(let s=0;s<t.length;s++)if(t[s].type===7&&X6.has(t[s].name))return!0}return!1}function J6({tag:e,props:t}){if(We.isCustomElement(e))return!1;if(e==="component"||eg(e.charCodeAt(0))||If(e)||We.isBuiltInComponent&&We.isBuiltInComponent(e)||We.isNativeTag&&!We.isNativeTag(e))return!0;for(let s=0;s<t.length;s++){const n=t[s];if(n.type===6){if(n.name==="is"&&n.value){if(n.value.content.startsWith("vue:"))return!0;if(Bo("COMPILER_IS_ON_ELEMENT",We,n.loc))return!0}}else if(n.name==="bind"&&ai(n.arg,"is")&&Bo("COMPILER_IS_ON_ELEMENT",We,n.loc))return!0}return!1}function eg(e){return e>64&&e<91}const tg=/\r\n/g;function Vf(e){const t=We.whitespace!=="preserve";let s=!1;for(let n=0;n<e.length;n++){const i=e[n];if(i.type===2)if(uc)i.content=i.content.replace(tg,`
|
|
317
|
+
`);else if(Af(i.content)){const o=e[n-1]&&e[n-1].type,r=e[n+1]&&e[n+1].type;!o||!r||t&&(o===3&&(r===3||r===1)||o===1&&(r===3||r===1&&sg(i.content)))?(s=!0,e[n]=null):i.content=" "}else t&&(i.content=Ff(i.content))}return s?e.filter(Boolean):e}function sg(e){for(let t=0;t<e.length;t++){const s=e.charCodeAt(t);if(s===10||s===13)return!0}return!1}function Ff(e){let t="",s=!1;for(let n=0;n<e.length;n++)gs(e.charCodeAt(n))?s||(t+=" ",s=!0):(t+=e[n],s=!1);return t}function fc(e){(dt[0]||qo).children.push(e)}function St(e,t){return{start:mt.getPos(e),end:t==null?t:mt.getPos(t),source:t==null?t:Pt(e,t)}}function ng(e){return St(e.start.offset,e.end.offset)}function ci(e,t){e.end=mt.getPos(t),e.source=Pt(e.start.offset,t)}function ig(e){const t={type:6,name:e.rawName,nameLoc:St(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const s=e.exp.loc;s.end.offset<e.loc.end.offset&&(s.start.offset--,s.start.column--,s.end.offset++,s.end.column++),t.value={type:2,content:e.exp.content,loc:s}}return t}function ha(e,t=!1,s,n=0,i=0){return Ne(e,t,s,n)}function vn(e,t,s){We.onError(ct(e,St(t,t)))}function og(){mt.reset(),Qt=null,je=null,us="",En=-1,li=-1,dt.length=0}function rg(e,t){if(og(),mn=e,We=$e({},kf),t){let i;for(i in t)t[i]!=null&&(We[i]=t[i])}mt.mode=We.parseMode==="html"?1:We.parseMode==="sfc"?2:0,mt.inXML=We.ns===1||We.ns===2;const s=t&&t.delimiters;s&&(mt.delimiterOpen=ra(s[0]),mt.delimiterClose=ra(s[1]));const n=qo=N6([],e);return mt.parse(mn),n.loc=St(0,e.length),n.children=Vf(n.children),qo=null,n}function ag(e,t){pa(e,void 0,t,!!$f(e))}function $f(e){const t=e.children.filter(s=>s.type!==3);return t.length===1&&t[0].type===1&&!ca(t[0])?t[0]:null}function pa(e,t,s,n=!1,i=!1){const{children:o}=e,r=[];for(let u=0;u<o.length;u++){const d=o[u];if(d.type===1&&d.tagType===0){const h=n?0:_s(d,s);if(h>0){if(h>=2){d.codegenNode.patchFlag=-1,r.push(d);continue}}else{const p=d.codegenNode;if(p.type===13){const m=p.patchFlag;if((m===void 0||m===512||m===1)&&Gf(d,s)>=2){const v=Bf(d);v&&(p.props=s.hoist(v))}p.dynamicProps&&(p.dynamicProps=s.hoist(p.dynamicProps))}}}else if(d.type===12&&(n?0:_s(d,s))>=2){d.codegenNode.type===14&&d.codegenNode.arguments.length>0&&d.codegenNode.arguments.push("-1"),r.push(d);continue}if(d.type===1){const h=d.tagType===1;h&&s.scopes.vSlot++,pa(d,e,s,!1,i),h&&s.scopes.vSlot--}else if(d.type===11)pa(d,e,s,d.children.length===1,!0);else if(d.type===9)for(let h=0;h<d.branches.length;h++)pa(d.branches[h],e,s,d.branches[h].children.length===1,i)}let a=!1;if(r.length===o.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&pe(e.codegenNode.children))e.codegenNode.children=l(oi(e.codegenNode.children)),a=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!pe(e.codegenNode.children)&&e.codegenNode.children.type===15){const u=c(e.codegenNode,"default");u&&(u.returns=l(oi(u.returns)),a=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!pe(t.codegenNode.children)&&t.codegenNode.children.type===15){const u=Rs(e,"slot",!0),d=u&&u.arg&&c(t.codegenNode,u.arg);d&&(d.returns=l(oi(d.returns)),a=!0)}}if(!a)for(const u of r)u.codegenNode=s.cache(u.codegenNode);function l(u){const d=s.cache(u);return d.needArraySpread=!0,d}function c(u,d){if(u.children&&!pe(u.children)&&u.children.type===15){const h=u.children.properties.find(p=>p.key===d||p.key.content===d);return h&&h.value}}r.length&&s.transformHoist&&s.transformHoist(o,s,e)}function _s(e,t){const{constantCache:s}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const n=s.get(e);if(n!==void 0)return n;const i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(i.patchFlag===void 0){let r=3;const a=Gf(e,t);if(a===0)return s.set(e,0),0;a<r&&(r=a);for(let l=0;l<e.children.length;l++){const c=_s(e.children[l],t);if(c===0)return s.set(e,0),0;c<r&&(r=c)}if(r>1)for(let l=0;l<e.props.length;l++){const c=e.props[l];if(c.type===7&&c.name==="bind"&&c.exp){const u=_s(c.exp,t);if(u===0)return s.set(e,0),0;u<r&&(r=u)}}if(i.isBlock){for(let l=0;l<e.props.length;l++)if(e.props[l].type===7)return s.set(e,0),0;t.removeHelper(ii),t.removeHelper(Qi(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(zi(t.inSSR,i.isComponent))}return s.set(e,r),r}else return s.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return _s(e.content,t);case 4:return e.constType;case 8:let o=3;for(let r=0;r<e.children.length;r++){const a=e.children[r];if(Ue(a)||ns(a))continue;const l=_s(a,t);if(l===0)return 0;l<o&&(o=l)}return o;case 20:return 2;default:return 0}}const lg=new Set([Yl,Xl,$o,Ho]);function Hf(e,t){if(e.type===14&&!Ue(e.callee)&&lg.has(e.callee)){const s=e.arguments[0];if(s.type===4)return _s(s,t);if(s.type===14)return Hf(s,t)}return 0}function Gf(e,t){let s=3;const n=Bf(e);if(n&&n.type===15){const{properties:i}=n;for(let o=0;o<i.length;o++){const{key:r,value:a}=i[o],l=_s(r,t);if(l===0)return l;l<s&&(s=l);let c;if(a.type===4?c=_s(a,t):a.type===14?c=Hf(a,t):c=0,c===0)return c;c<s&&(s=c)}}return s}function Bf(e){const t=e.codegenNode;if(t.type===13)return t.props}function cg(e,{filename:t="",prefixIdentifiers:s=!1,hoistStatic:n=!1,hmr:i=!1,cacheHandlers:o=!1,nodeTransforms:r=[],directiveTransforms:a={},transformHoist:l=null,isBuiltInComponent:c=kt,isCustomElement:u=kt,expressionPlugins:d=[],scopeId:h=null,slotted:p=!0,ssr:m=!1,inSSR:v=!1,ssrCssVars:O="",bindingMetadata:w=Ge,inline:C=!1,isTS:g=!1,onError:_=rc,onWarn:E=Tf,compatConfig:L}){const P=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),F={filename:t,selfName:P&&zn(at(P[1])),prefixIdentifiers:s,hoistStatic:n,hmr:i,cacheHandlers:o,nodeTransforms:r,directiveTransforms:a,transformHoist:l,isBuiltInComponent:c,isCustomElement:u,expressionPlugins:d,scopeId:h,slotted:p,ssr:m,inSSR:v,ssrCssVars:O,bindingMetadata:w,inline:C,isTS:g,onError:_,onWarn:E,compatConfig:L,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(x){const $=F.helpers.get(x)||0;return F.helpers.set(x,$+1),x},removeHelper(x){const $=F.helpers.get(x);if($){const b=$-1;b?F.helpers.set(x,b):F.helpers.delete(x)}},helperString(x){return`_${qi[F.helper(x)]}`},replaceNode(x){F.parent.children[F.childIndex]=F.currentNode=x},removeNode(x){const $=F.parent.children,b=x?$.indexOf(x):F.currentNode?F.childIndex:-1;!x||x===F.currentNode?(F.currentNode=null,F.onNodeRemoved()):F.childIndex>b&&(F.childIndex--,F.onNodeRemoved()),F.parent.children.splice(b,1)},onNodeRemoved:kt,addIdentifiers(x){},removeIdentifiers(x){},hoist(x){Ue(x)&&(x=Ne(x)),F.hoists.push(x);const $=Ne(`_hoisted_${F.hoists.length}`,!1,x.loc,2);return $.hoisted=x,$},cache(x,$=!1,b=!1){const I=D6(F.cached.length,x,$,b);return F.cached.push(I),I}};return F.filters=new Set,F}function ug(e,t){const s=cg(e,t);ga(e,s),t.hoistStatic&&ag(e,s),t.ssr||dg(e,s),e.helpers=new Set([...s.helpers.keys()]),e.components=[...s.components],e.directives=[...s.directives],e.imports=s.imports,e.hoists=s.hoists,e.temps=s.temps,e.cached=s.cached,e.transformed=!0,e.filters=[...s.filters]}function dg(e,t){const{helper:s}=t,{children:n}=e;if(n.length===1){const i=$f(e);if(i&&i.codegenNode){const o=i.codegenNode;o.type===13&&oc(o,t),e.codegenNode=o}else e.codegenNode=n[0]}else if(n.length>1){let i=64;e.codegenNode=Go(t,s(Po),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}function fg(e,t){let s=0;const n=()=>{s--};for(;s<e.children.length;s++){const i=e.children[s];Ue(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=s,t.onNodeRemoved=n,ga(i,t))}}function ga(e,t){t.currentNode=e;const{nodeTransforms:s}=t,n=[];for(let o=0;o<s.length;o++){const r=s[o](e,t);if(r&&(pe(r)?n.push(...r):n.push(r)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Fo);break;case 5:t.ssr||t.helper(na);break;case 9:for(let o=0;o<e.branches.length;o++)ga(e.branches[o],t);break;case 10:case 11:case 1:case 0:fg(e,t);break}t.currentNode=e;let i=n.length;for(;i--;)n[i]()}function jf(e,t){const s=Ue(e)?n=>n===e:n=>e.test(n);return(n,i)=>{if(n.type===1){const{props:o}=n;if(n.tagType===3&&o.some(q6))return;const r=[];for(let a=0;a<o.length;a++){const l=o[a];if(l.type===7&&s(l.name)){o.splice(a,1),a--;const c=t(n,l,i);c&&r.push(c)}}return r}}}const _a="/*@__PURE__*/",qf=e=>`${qi[e]}: _${qi[e]}`;function hg(e,{mode:t="function",prefixIdentifiers:s=t==="module",sourceMap:n=!1,filename:i="template.vue.html",scopeId:o=null,optimizeImports:r=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:h=!1}){const p={mode:t,prefixIdentifiers:s,sourceMap:n,filename:i,scopeId:o,optimizeImports:r,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:u,isTS:d,inSSR:h,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(v){return`_${qi[v]}`},push(v,O=-2,w){p.code+=v},indent(){m(++p.indentLevel)},deindent(v=!1){v?--p.indentLevel:m(--p.indentLevel)},newline(){m(p.indentLevel)}};function m(v){p.push(`
|
|
318
|
+
`+" ".repeat(v),0)}return p}function pg(e,t={}){const s=hg(e,t);t.onContextCreated&&t.onContextCreated(s);const{mode:n,push:i,prefixIdentifiers:o,indent:r,deindent:a,newline:l,scopeId:c,ssr:u}=s,d=Array.from(e.helpers),h=d.length>0,p=!o&&n!=="module";gg(e,s);const v=u?"ssrRender":"render",w=(u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${v}(${w}) {`),r(),p&&(i("with (_ctx) {"),r(),h&&(i(`const { ${d.map(qf).join(", ")} } = _Vue
|
|
319
|
+
`,-1),l())),e.components.length&&(hc(e.components,"component",s),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(hc(e.directives,"directive",s),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),hc(e.filters,"filter",s),l()),e.temps>0){i("let ");for(let C=0;C<e.temps;C++)i(`${C>0?", ":""}_temp${C}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
|
|
320
|
+
`,0),l()),u||i("return "),e.codegenNode?Wt(e.codegenNode,s):i("null"),p&&(a(),i("}")),a(),i("}"),{ast:e,code:s.code,preamble:"",map:s.map?s.map.toJSON():void 0}}function gg(e,t){const{ssr:s,prefixIdentifiers:n,push:i,newline:o,runtimeModuleName:r,runtimeGlobalName:a,ssrRuntimeModuleName:l}=t,c=a,u=Array.from(e.helpers);if(u.length>0&&(i(`const _Vue = ${c}
|
|
321
|
+
`,-1),e.hoists.length)){const d=[Gl,Bl,Fo,jl,gf].filter(h=>u.includes(h)).map(qf).join(", ");i(`const { ${d} } = _Vue
|
|
322
|
+
`,-1)}_g(e.hoists,t),o(),i("return ")}function hc(e,t,{helper:s,push:n,newline:i,isTS:o}){const r=s(t==="filter"?Ql:t==="component"?ql:zl);for(let a=0;a<e.length;a++){let l=e[a];const c=l.endsWith("__self");c&&(l=l.slice(0,-6)),n(`const ${jo(l,t)} = ${r}(${JSON.stringify(l)}${c?", true":""})${o?"!":""}`),a<e.length-1&&i()}}function _g(e,t){if(!e.length)return;t.pure=!0;const{push:s,newline:n}=t;n();for(let i=0;i<e.length;i++){const o=e[i];o&&(s(`const _hoisted_${i+1} = `),Wt(o,t),n())}t.pure=!1}function pc(e,t){const s=e.length>3||!1;t.push("["),s&&t.indent(),Ko(e,t,s),s&&t.deindent(),t.push("]")}function Ko(e,t,s=!1,n=!0){const{push:i,newline:o}=t;for(let r=0;r<e.length;r++){const a=e[r];Ue(a)?i(a,-3):pe(a)?pc(a,t):Wt(a,t),r<e.length-1&&(s?(n&&i(","),o()):n&&i(", "))}}function Wt(e,t){if(Ue(e)){t.push(e,-3);return}if(ns(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:Wt(e.codegenNode,t);break;case 2:mg(e,t);break;case 4:Kf(e,t);break;case 5:Eg(e,t);break;case 12:Wt(e.codegenNode,t);break;case 8:zf(e,t);break;case 3:Cg(e,t);break;case 13:yg(e,t);break;case 14:Tg(e,t);break;case 15:Ig(e,t);break;case 17:wg(e,t);break;case 18:Rg(e,t);break;case 19:Mg(e,t);break;case 20:Og(e,t);break;case 21:Ko(e.body,t,!0,!1);break}}function mg(e,t){t.push(JSON.stringify(e.content),-3,e)}function Kf(e,t){const{content:s,isStatic:n}=e;t.push(n?JSON.stringify(s):s,-3,e)}function Eg(e,t){const{push:s,helper:n,pure:i}=t;i&&s(_a),s(`${n(na)}(`),Wt(e.content,t),s(")")}function zf(e,t){for(let s=0;s<e.children.length;s++){const n=e.children[s];Ue(n)?t.push(n,-3):Wt(n,t)}}function vg(e,t){const{push:s}=t;if(e.type===8)s("["),zf(e,t),s("]");else if(e.isStatic){const n=ac(e.content)?e.content:JSON.stringify(e.content);s(n,-2,e)}else s(`[${e.content}]`,-3,e)}function Cg(e,t){const{push:s,helper:n,pure:i}=t;i&&s(_a),s(`${n(Fo)}(${JSON.stringify(e.content)})`,-3,e)}function yg(e,t){const{push:s,helper:n,pure:i}=t,{tag:o,props:r,children:a,patchFlag:l,dynamicProps:c,directives:u,isBlock:d,disableTracking:h,isComponent:p}=e;let m;l&&(m=String(l)),u&&s(n(Wl)+"("),d&&s(`(${n(ii)}(${h?"true":""}), `),i&&s(_a);const v=d?Qi(t.inSSR,p):zi(t.inSSR,p);s(n(v)+"(",-2,e),Ko(Sg([o,r,a,m,c]),t),s(")"),d&&s(")"),u&&(s(", "),Wt(u,t),s(")"))}function Sg(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(s=>s||"null")}function Tg(e,t){const{push:s,helper:n,pure:i}=t,o=Ue(e.callee)?e.callee:n(e.callee);i&&s(_a),s(o+"(",-2,e),Ko(e.arguments,t),s(")")}function Ig(e,t){const{push:s,indent:n,deindent:i,newline:o}=t,{properties:r}=e;if(!r.length){s("{}",-2,e);return}const a=r.length>1||!1;s(a?"{":"{ "),a&&n();for(let l=0;l<r.length;l++){const{key:c,value:u}=r[l];vg(c,t),s(": "),Wt(u,t),l<r.length-1&&(s(","),o())}a&&i(),s(a?"}":" }")}function wg(e,t){pc(e.elements,t)}function Rg(e,t){const{push:s,indent:n,deindent:i}=t,{params:o,returns:r,body:a,newline:l,isSlot:c}=e;c&&s(`_${qi[sc]}(`),s("(",-2,e),pe(o)?Ko(o,t):o&&Wt(o,t),s(") => "),(l||a)&&(s("{"),n()),r?(l&&s("return "),pe(r)?pc(r,t):Wt(r,t)):a&&Wt(a,t),(l||a)&&(i(),s("}")),c&&(e.isNonScopedSlot&&s(", undefined, true"),s(")"))}function Mg(e,t){const{test:s,consequent:n,alternate:i,newline:o}=e,{push:r,indent:a,deindent:l,newline:c}=t;if(s.type===4){const d=!ac(s.content);d&&r("("),Kf(s,t),d&&r(")")}else r("("),Wt(s,t),r(")");o&&a(),t.indentLevel++,o||r(" "),r("? "),Wt(n,t),t.indentLevel--,o&&c(),o||r(" "),r(": ");const u=i.type===19;u||t.indentLevel++,Wt(i,t),u||t.indentLevel--,o&&l(!0)}function Og(e,t){const{push:s,helper:n,indent:i,deindent:o,newline:r}=t,{needPauseTracking:a,needArraySpread:l}=e;l&&s("[...("),s(`_cache[${e.index}] || (`),a&&(i(),s(`${n(oa)}(-1`),e.inVOnce&&s(", true"),s("),"),r(),s("(")),s(`_cache[${e.index}] = `),Wt(e.value,t),a&&(s(`).cacheIndex = ${e.index},`),r(),s(`${n(oa)}(1),`),r(),s(`_cache[${e.index}]`),o()),s(")"),l&&s(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const bg=jf(/^(?:if|else|else-if)$/,(e,t,s)=>Lg(e,t,s,(n,i,o)=>{const r=s.parent.children;let a=r.indexOf(n),l=0;for(;a-->=0;){const c=r[a];c&&c.type===9&&(l+=c.branches.length)}return()=>{if(o)n.codegenNode=Wf(i,l,s);else{const c=Ag(n.codegenNode);c.alternate=Wf(i,l+n.branches.length-1,s)}}}));function Lg(e,t,s,n){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;s.onError(ct(28,t.loc)),t.exp=Ne("true",!1,i)}if(t.name==="if"){const i=Qf(e,t),o={type:9,loc:ng(e.loc),branches:[i]};if(s.replaceNode(o),n)return n(o,i,!0)}else{const i=s.parent.children;let o=i.indexOf(e);for(;o-->=-1;){const r=i[o];if(r&&xf(r)){s.removeNode(r);continue}if(r&&r.type===9){(t.name==="else-if"||t.name==="else")&&r.branches[r.branches.length-1].condition===void 0&&s.onError(ct(30,e.loc)),s.removeNode();const a=Qf(e,t);r.branches.push(a);const l=n&&n(r,a,!1);ga(a,s),l&&l(),s.currentNode=null}else s.onError(ct(30,e.loc));break}}}function Qf(e,t){const s=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:s&&!Rs(e,"for")?e.children:[e],userKey:aa(e,"key"),isTemplateIf:s}}function Wf(e,t,s){return e.condition?ic(e.condition,Zf(e,t,s),Ot(s.helper(Fo),['""',"true"])):Zf(e,t,s)}function Zf(e,t,s){const{helper:n}=s,i=Rt("key",Ne(`${t}`,!1,ps,2)),{children:o}=e,r=o[0];if(o.length!==1||r.type!==1)if(o.length===1&&r.type===11){const l=r.codegenNode;return ua(l,i,s),l}else{let l=64;return Go(s,n(Po),ws([i]),o,l,void 0,void 0,!0,!1,!1,e.loc)}else{const l=r.codegenNode,c=z6(l);return c.type===13&&oc(c,s),ua(c,i,s),l}}function Ag(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const xg=jf("for",(e,t,s)=>{const{helper:n,removeHelper:i}=s;return kg(e,t,s,o=>{const r=Ot(n(Zl),[o.source]),a=la(e),l=Rs(e,"memo"),c=aa(e,"key",!1,!0);c&&c.type;let u=c&&(c.type===6?c.value?Ne(c.value.content,!0):void 0:c.exp);const d=c&&u?Rt("key",u):null,h=o.source.type===4&&o.source.constType>0,p=h?64:c?128:256;return o.codegenNode=Go(s,n(Po),void 0,r,p,void 0,void 0,!0,!h,!1,e.loc),()=>{let m;const{children:v}=o,O=v.length!==1||v[0].type!==1,w=ca(e)?e:a&&e.children.length===1&&ca(e.children[0])?e.children[0]:null;if(w?(m=w.codegenNode,a&&d&&ua(m,d,s)):O?m=Go(s,n(Po),d?ws([d]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(m=v[0].codegenNode,a&&d&&ua(m,d,s),m.isBlock!==!h&&(m.isBlock?(i(ii),i(Qi(s.inSSR,m.isComponent))):i(zi(s.inSSR,m.isComponent))),m.isBlock=!h,m.isBlock?(n(ii),n(Qi(s.inSSR,m.isComponent))):n(zi(s.inSSR,m.isComponent))),l){const C=Ki(gc(o.parseResult,[Ne("_cached")]));C.body=P6([Ns(["const _memo = (",l.exp,")"]),Ns(["if (_cached",...u?[" && _cached.key === ",u]:[],` && ${s.helperString(Ef)}(_cached, _memo)) return _cached`]),Ns(["const _item = ",m]),Ne("_item.memo = _memo"),Ne("return _item")]),r.arguments.push(C,Ne("_cache"),Ne(String(s.cached.length))),s.cached.push(null)}else r.arguments.push(Ki(gc(o.parseResult),m,!0))}})});function kg(e,t,s,n){if(!t.exp){s.onError(ct(31,t.loc));return}const i=t.forParseResult;if(!i){s.onError(ct(32,t.loc));return}Yf(i);const{addIdentifiers:o,removeIdentifiers:r,scopes:a}=s,{source:l,value:c,key:u,index:d}=i,h={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:u,objectIndexAlias:d,parseResult:i,children:la(e)?e.children:[e]};s.replaceNode(h),a.vFor++;const p=n&&n(h);return()=>{a.vFor--,p&&p()}}function Yf(e,t){e.finalized||(e.finalized=!0)}function gc({value:e,key:t,index:s},n=[]){return Ug([e,t,s,...n])}function Ug(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((s,n)=>s||Ne("_".repeat(n+1),!1))}const Xf=Ne("undefined",!1),Ng=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const s=Rs(e,"slot");if(s)return s.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Dg=(e,t,s,n)=>Ki(e,s,!1,!0,s.length?s[0].loc:n);function Pg(e,t,s=Dg){t.helper(sc);const{children:n,loc:i}=e,o=[],r=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=Rs(e,"slot",!0);if(l){const{arg:O,exp:w}=l;O&&!cs(O)&&(a=!0),o.push(Rt(O||Ne("default",!0),s(w,void 0,n,i)))}let c=!1,u=!1;const d=[],h=new Set;let p=0;for(let O=0;O<n.length;O++){const w=n[O];let C;if(!la(w)||!(C=Rs(w,"slot",!0))){w.type!==3&&d.push(w);continue}if(l){t.onError(ct(37,C.loc));break}c=!0;const{children:g,loc:_}=w,{arg:E=Ne("default",!0),exp:L,loc:P}=C;let F;cs(E)?F=E?E.content:"default":a=!0;const x=Rs(w,"for"),$=s(L,x,g,_);let b,I;if(b=Rs(w,"if"))a=!0,r.push(ic(b.exp,ma(E,$,p++),Xf));else if(I=Rs(w,/^else(?:-if)?$/,!0)){let U=O,K;for(;U--&&(K=n[U],!!xf(K)););if(K&&la(K)&&Rs(K,/^(?:else-)?if$/)){let ne=r[r.length-1];for(;ne.alternate.type===19;)ne=ne.alternate;ne.alternate=I.exp?ic(I.exp,ma(E,$,p++),Xf):ma(E,$,p++)}else t.onError(ct(30,I.loc))}else if(x){a=!0;const U=x.forParseResult;U?(Yf(U),r.push(Ot(t.helper(Zl),[U.source,Ki(gc(U),ma(E,$),!0)]))):t.onError(ct(32,x.loc))}else{if(F){if(h.has(F)){t.onError(ct(38,P));continue}h.add(F),F==="default"&&(u=!0)}o.push(Rt(E,$))}}if(!l){const O=(w,C)=>{const g=s(w,void 0,C,i);return t.compatConfig&&(g.isNonScopedSlot=!0),Rt("default",g)};c?d.length&&!d.every(cc)&&(u?t.onError(ct(39,d[0].loc)):o.push(O(void 0,d))):o.push(O(void 0,n))}const m=a?2:Ea(e.children)?3:1;let v=ws(o.concat(Rt("_",Ne(m+"",!1))),i);return r.length&&(v=Ot(t.helper(mf),[v,oi(r)])),{slots:v,hasDynamicSlots:a}}function ma(e,t,s){const n=[Rt("name",e),Rt("fn",t)];return s!=null&&n.push(Rt("key",Ne(String(s),!0))),ws(n)}function Ea(e){for(let t=0;t<e.length;t++){const s=e[t];switch(s.type){case 1:if(s.tagType===2||Ea(s.children))return!0;break;case 9:if(Ea(s.branches))return!0;break;case 10:case 11:if(Ea(s.children))return!0;break}}return!1}const Jf=new WeakMap,Vg=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:n,props:i}=e,o=e.tagType===1;let r=o?Fg(e,t):`"${n}"`;const a=Xe(r)&&r.callee===Kl;let l,c,u=0,d,h,p,m=a||r===Vo||r===Hl||!o&&(n==="svg"||n==="foreignObject"||n==="math");if(i.length>0){const v=eh(e,t,void 0,o,a);l=v.props,u=v.patchFlag,h=v.dynamicPropNames;const O=v.directives;p=O&&O.length?oi(O.map(w=>Hg(w,t))):void 0,v.shouldUseBlock&&(m=!0)}if(e.children.length>0)if(r===sa&&(m=!0,u|=1024),o&&r!==Vo&&r!==sa){const{slots:O,hasDynamicSlots:w}=Pg(e,t);c=O,w&&(u|=1024)}else if(e.children.length===1&&r!==Vo){const O=e.children[0],w=O.type,C=w===5||w===8;C&&_s(O,t)===0&&(u|=1),C||w===2?c=O:c=e.children}else c=e.children;h&&h.length&&(d=Gg(h)),e.codegenNode=Go(t,r,l,c,u===0?void 0:u,d,p,!!m,!1,o,e.loc)};function Fg(e,t,s=!1){let{tag:n}=e;const i=_c(n),o=aa(e,"is",!1,!0);if(o)if(i||ri("COMPILER_IS_ON_ELEMENT",t)){let a;if(o.type===6?a=o.value&&Ne(o.value.content,!0):(a=o.exp,a||(a=Ne("is",!1,o.arg.loc))),a)return Ot(t.helper(Kl),[a])}else o.type===6&&o.value.content.startsWith("vue:")&&(n=o.value.content.slice(4));const r=If(n)||t.isBuiltInComponent(n);return r?(s||t.helper(r),r):(t.helper(ql),t.components.add(n),jo(n,"component"))}function eh(e,t,s=e.props,n,i,o=!1){const{tag:r,loc:a,children:l}=e;let c=[];const u=[],d=[],h=l.length>0;let p=!1,m=0,v=!1,O=!1,w=!1,C=!1,g=!1,_=!1;const E=[],L=$=>{c.length&&(u.push(ws(th(c),a)),c=[]),$&&u.push($)},P=()=>{t.scopes.vFor>0&&c.push(Rt(Ne("ref_for",!0),Ne("true")))},F=({key:$,value:b})=>{if(cs($)){const I=$.content,U=qn(I);if(U&&(!n||i)&&I.toLowerCase()!=="onclick"&&I!=="onUpdate:modelValue"&&!nn(I)&&(C=!0),U&&nn(I)&&(_=!0),U&&b.type===14&&(b=b.arguments[0]),b.type===20||(b.type===4||b.type===8)&&_s(b,t)>0)return;I==="ref"?v=!0:I==="class"?O=!0:I==="style"?w=!0:I!=="key"&&!E.includes(I)&&E.push(I),n&&(I==="class"||I==="style")&&!E.includes(I)&&E.push(I)}else g=!0};for(let $=0;$<s.length;$++){const b=s[$];if(b.type===6){const{loc:I,name:U,nameLoc:K,value:ne}=b;let te=!0;if(U==="ref"&&(v=!0,P()),U==="is"&&(_c(r)||ne&&ne.content.startsWith("vue:")||ri("COMPILER_IS_ON_ELEMENT",t)))continue;c.push(Rt(Ne(U,!0,K),Ne(ne?ne.content:"",te,ne?ne.loc:I)))}else{const{name:I,arg:U,exp:K,loc:ne,modifiers:te}=b,he=I==="bind",Y=I==="on";if(I==="slot"){n||t.onError(ct(40,ne));continue}if(I==="once"||I==="memo"||I==="is"||he&&ai(U,"is")&&(_c(r)||ri("COMPILER_IS_ON_ELEMENT",t))||Y&&o)continue;if((he&&ai(U,"key")||Y&&h&&ai(U,"vue:before-update"))&&(p=!0),he&&ai(U,"ref")&&P(),!U&&(he||Y)){if(g=!0,K)if(he){if(L(),ri("COMPILER_V_BIND_OBJECT_ORDER",t)){u.unshift(K);continue}P(),L(),u.push(K)}else L({type:14,loc:ne,callee:t.helper(Jl),arguments:n?[K]:[K,"true"]});else t.onError(ct(he?34:35,ne));continue}he&&te.some(st=>st.content==="prop")&&(m|=32);const De=t.directiveTransforms[I];if(De){const{props:st,needRuntime:_e}=De(b,e,t);!o&&st.forEach(F),Y&&U&&!cs(U)?L(ws(st,a)):c.push(...st),_e&&(d.push(b),ns(_e)&&Jf.set(b,_e))}else Qp(I)||(d.push(b),h&&(p=!0))}}let x;if(u.length?(L(),u.length>1?x=Ot(t.helper(ia),u,a):x=u[0]):c.length&&(x=ws(th(c),a)),g?m|=16:(O&&!n&&(m|=2),w&&!n&&(m|=4),E.length&&(m|=8),C&&(m|=32)),!p&&(m===0||m===32)&&(v||_||d.length>0)&&(m|=512),!t.inSSR&&x)switch(x.type){case 15:let $=-1,b=-1,I=!1;for(let ne=0;ne<x.properties.length;ne++){const te=x.properties[ne].key;cs(te)?te.content==="class"?$=ne:te.content==="style"&&(b=ne):te.isHandlerKey||(I=!0)}const U=x.properties[$],K=x.properties[b];I?x=Ot(t.helper($o),[x]):(U&&!cs(U.value)&&(U.value=Ot(t.helper(Yl),[U.value])),K&&(w||K.value.type===4&&K.value.content.trim()[0]==="["||K.value.type===17)&&(K.value=Ot(t.helper(Xl),[K.value])));break;case 14:break;default:x=Ot(t.helper($o),[Ot(t.helper(Ho),[x])]);break}return{props:x,directives:d,patchFlag:m,dynamicPropNames:E,shouldUseBlock:p}}function th(e){const t=new Map,s=[];for(let n=0;n<e.length;n++){const i=e[n];if(i.key.type===8||!i.key.isStatic){s.push(i);continue}const o=i.key.content,r=t.get(o);r?(o==="style"||o==="class"||qn(o))&&$g(r,i):(t.set(o,i),s.push(i))}return s}function $g(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=oi([e.value,t.value],e.loc)}function Hg(e,t){const s=[],n=Jf.get(e);n?s.push(t.helperString(n)):(t.helper(zl),t.directives.add(e.name),s.push(jo(e.name,"directive")));const{loc:i}=e;if(e.exp&&s.push(e.exp),e.arg&&(e.exp||s.push("void 0"),s.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||s.push("void 0"),s.push("void 0"));const o=Ne("true",!1,i);s.push(ws(e.modifiers.map(r=>Rt(r,o)),i))}return oi(s,e.loc)}function Gg(e){let t="[";for(let s=0,n=e.length;s<n;s++)t+=JSON.stringify(e[s]),s<n-1&&(t+=", ");return t+"]"}function _c(e){return e==="component"||e==="Component"}const Bg=(e,t)=>{if(ca(e)){const{children:s,loc:n}=e,{slotName:i,slotProps:o}=jg(e,t),r=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let a=2;o&&(r[2]=o,a=3),s.length&&(r[3]=Ki([],s,!1,!1,n),a=4),t.scopeId&&!t.slotted&&(a=5),r.splice(a),e.codegenNode=Ot(t.helper(_f),r,n)}};function jg(e,t){let s='"default"',n;const i=[];for(let o=0;o<e.props.length;o++){const r=e.props[o];if(r.type===6)r.value&&(r.name==="name"?s=JSON.stringify(r.value.content):(r.name=at(r.name),i.push(r)));else if(r.name==="bind"&&ai(r.arg,"name")){if(r.exp)s=r.exp;else if(r.arg&&r.arg.type===4){const a=at(r.arg.content);s=r.exp=Ne(a,!1,r.arg.loc)}}else r.name==="bind"&&r.arg&&cs(r.arg)&&(r.arg.content=at(r.arg.content)),i.push(r)}if(i.length>0){const{props:o,directives:r}=eh(e,t,i,!1,!1);n=o,r.length&&t.onError(ct(36,r[0].loc))}return{slotName:s,slotProps:n}}const sh=(e,t,s,n)=>{const{loc:i,modifiers:o,arg:r}=e;!e.exp&&!o.length&&s.onError(ct(35,i));let a;if(r.type===4)if(r.isStatic){let d=r.content;d.startsWith("vue:")&&(d=`vnode-${d.slice(4)}`);const h=t.tagType!==0||d.startsWith("vnode")||!/[A-Z]/.test(d)?Oi(at(d)):`on:${d}`;a=Ne(h,!0,r.loc)}else a=Ns([`${s.helperString(tc)}(`,r,")"]);else a=r,a.children.unshift(`${s.helperString(tc)}(`),a.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=s.cacheHandlers&&!l&&!s.inVOnce;if(l){const d=Mf(l),h=!(d||B6(l)),p=l.content.includes(";");(h||c&&d)&&(l=Ns([`${h?"$event":"(...args)"} => ${p?"{":"("}`,l,p?"}":")"]))}let u={props:[Rt(a,l||Ne("() => {}",!1,i))]};return n&&(u=n(u)),c&&(u.props[0].value=s.cache(u.props[0].value)),u.props.forEach(d=>d.key.isHandlerKey=!0),u},qg=(e,t,s)=>{const{modifiers:n,loc:i}=e,o=e.arg;let{exp:r}=e;return r&&r.type===4&&!r.content.trim()&&(r=void 0),o.type!==4?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=o.content?`${o.content} || ""`:'""'),n.some(a=>a.content==="camel")&&(o.type===4?o.isStatic?o.content=at(o.content):o.content=`${s.helperString(ec)}(${o.content})`:(o.children.unshift(`${s.helperString(ec)}(`),o.children.push(")"))),s.inSSR||(n.some(a=>a.content==="prop")&&nh(o,"."),n.some(a=>a.content==="attr")&&nh(o,"^")),{props:[Rt(o,r)]}},nh=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Kg=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const s=e.children;let n,i=!1;for(let o=0;o<s.length;o++){const r=s[o];if(lc(r)){i=!0;for(let a=o+1;a<s.length;a++){const l=s[a];if(lc(l))n||(n=s[o]=Ns([r],r.loc)),n.children.push(" + ",l),s.splice(a,1),a--;else{n=void 0;break}}}}if(!(!i||s.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(o=>o.type===7&&!t.directiveTransforms[o.name])&&e.tag!=="template")))for(let o=0;o<s.length;o++){const r=s[o];if(lc(r)||r.type===8){const a=[];(r.type!==2||r.content!==" ")&&a.push(r),!t.ssr&&_s(r,t)===0&&a.push("1"),s[o]={type:12,content:r,loc:r.loc,codegenNode:Ot(t.helper(jl),a)}}}}},ih=new WeakSet,zg=(e,t)=>{if(e.type===1&&Rs(e,"once",!0))return ih.has(e)||t.inVOnce||t.inSSR?void 0:(ih.add(e),t.inVOnce=!0,t.helper(oa),()=>{t.inVOnce=!1;const s=t.currentNode;s.codegenNode&&(s.codegenNode=t.cache(s.codegenNode,!0,!0))})},oh=(e,t,s)=>{const{exp:n,arg:i}=e;if(!n)return s.onError(ct(41,e.loc)),zo();const o=n.loc.source.trim(),r=n.type===4?n.content:o,a=s.bindingMetadata[o];if(a==="props"||a==="props-aliased")return s.onError(ct(44,n.loc)),zo();if(a==="literal-const"||a==="setup-const")return s.onError(ct(45,n.loc)),zo();if(!r.trim()||!Mf(n))return s.onError(ct(42,n.loc)),zo();const l=i||Ne("modelValue",!0),c=i?cs(i)?`onUpdate:${at(i.content)}`:Ns(['"onUpdate:" + ',i]):"onUpdate:modelValue";let u;const d=s.isTS?"($event: any)":"$event";u=Ns([`${d} => ((`,n,") = $event)"]);const h=[Rt(l,e.exp),Rt(c,u)];if(e.modifiers.length&&t.tagType===1){const p=e.modifiers.map(v=>v.content).map(v=>(ac(v)?v:JSON.stringify(v))+": true").join(", "),m=i?cs(i)?`${i.content}Modifiers`:Ns([i,' + "Modifiers"']):"modelModifiers";h.push(Rt(m,Ne(`{ ${p} }`,!1,e.loc,2)))}return zo(h)};function zo(e=[]){return{props:e}}const Qg=/[\w).+\-_$\]]/,Wg=(e,t)=>{ri("COMPILER_FILTERS",t)&&(e.type===5?va(e.content,t):e.type===1&&e.props.forEach(s=>{s.type===7&&s.name!=="for"&&s.exp&&va(s.exp,t)}))};function va(e,t){if(e.type===4)rh(e,t);else for(let s=0;s<e.children.length;s++){const n=e.children[s];typeof n=="object"&&(n.type===4?rh(n,t):n.type===8?va(e,t):n.type===5&&va(n.content,t))}}function rh(e,t){const s=e.content;let n=!1,i=!1,o=!1,r=!1,a=0,l=0,c=0,u=0,d,h,p,m,v=[];for(p=0;p<s.length;p++)if(h=d,d=s.charCodeAt(p),n)d===39&&h!==92&&(n=!1);else if(i)d===34&&h!==92&&(i=!1);else if(o)d===96&&h!==92&&(o=!1);else if(r)d===47&&h!==92&&(r=!1);else if(d===124&&s.charCodeAt(p+1)!==124&&s.charCodeAt(p-1)!==124&&!a&&!l&&!c)m===void 0?(u=p+1,m=s.slice(0,p).trim()):O();else{switch(d){case 34:i=!0;break;case 39:n=!0;break;case 96:o=!0;break;case 40:c++;break;case 41:c--;break;case 91:l++;break;case 93:l--;break;case 123:a++;break;case 125:a--;break}if(d===47){let w=p-1,C;for(;w>=0&&(C=s.charAt(w),C===" ");w--);(!C||!Qg.test(C))&&(r=!0)}}m===void 0?m=s.slice(0,p).trim():u!==0&&O();function O(){v.push(s.slice(u,p).trim()),u=p+1}if(v.length){for(p=0;p<v.length;p++)m=Zg(m,v[p],t);e.content=m,e.ast=void 0}}function Zg(e,t,s){s.helper(Ql);const n=t.indexOf("(");if(n<0)return s.filters.add(t),`${jo(t,"filter")}(${e})`;{const i=t.slice(0,n),o=t.slice(n+1);return s.filters.add(i),`${jo(i,"filter")}(${e}${o!==")"?","+o:o}`}}const ah=new WeakSet,Yg=(e,t)=>{if(e.type===1){const s=Rs(e,"memo");return!s||ah.has(e)||t.inSSR?void 0:(ah.add(e),()=>{const n=e.codegenNode||t.currentNode.codegenNode;n&&n.type===13&&(e.tagType!==1&&oc(n,t),e.codegenNode=Ot(t.helper(nc),[s.exp,Ki(void 0,n),"_cache",String(t.cached.length)]),t.cached.push(null))})}},Xg=(e,t)=>{if(e.type===1){for(const s of e.props)if(s.type===7&&s.name==="bind"&&(!s.exp||s.exp.type===4&&!s.exp.content.trim())&&s.arg){const n=s.arg;if(n.type!==4||!n.isStatic)t.onError(ct(53,n.loc)),s.exp=Ne("",!0,n.loc);else{const i=at(n.content);(wf.test(i[0])||i[0]==="-")&&(s.exp=Ne(i,!1,n.loc))}}}};function Jg(e){return[[Xg,zg,bg,Yg,xg,Wg,Bg,Vg,Ng,Kg],{on:sh,bind:qg,model:oh}]}function e_(e,t={}){const s=t.onError||rc,n=t.mode==="module";t.prefixIdentifiers===!0?s(ct(48)):n&&s(ct(49));const i=!1;t.cacheHandlers&&s(ct(50)),t.scopeId&&!n&&s(ct(51));const o=$e({},t,{prefixIdentifiers:i}),r=Ue(e)?rg(e,o):e,[a,l]=Jg();return ug(r,$e({},o,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:$e({},l,t.directiveTransforms||{})})),pg(r,o)}const t_=()=>({props:[]});/**
|
|
323
|
+
* @vue/compiler-dom v3.5.27
|
|
319
324
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
320
325
|
* @license MIT
|
|
321
|
-
**/const
|
|
322
|
-
* vue v3.5.
|
|
326
|
+
**/const lh=Symbol(""),ch=Symbol(""),uh=Symbol(""),dh=Symbol(""),mc=Symbol(""),fh=Symbol(""),hh=Symbol(""),ph=Symbol(""),gh=Symbol(""),_h=Symbol("");U6({[lh]:"vModelRadio",[ch]:"vModelCheckbox",[uh]:"vModelText",[dh]:"vModelSelect",[mc]:"vModelDynamic",[fh]:"withModifiers",[hh]:"withKeys",[ph]:"vShow",[gh]:"Transition",[_h]:"TransitionGroup"});let Wi;function s_(e,t=!1){return Wi||(Wi=document.createElement("div")),t?(Wi.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,Wi.children[0].getAttribute("foo")):(Wi.innerHTML=e,Wi.textContent)}const n_={parseMode:"html",isVoidTag:u5,isNativeTag:e=>a5(e)||l5(e)||c5(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:s_,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return gh;if(e==="TransitionGroup"||e==="transition-group")return _h},getNamespace(e,t,s){let n=t?t.ns:s;if(t&&n===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(n=0);else t&&n===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(n=0);if(n===0){if(e==="svg")return 1;if(e==="math")return 2}return n}},i_=e=>{e.type===1&&e.props.forEach((t,s)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[s]={type:7,name:"bind",arg:Ne("style",!0,t.loc),exp:o_(t.value.content,t.loc),modifiers:[],loc:t.loc})})},o_=(e,t)=>{const s=S1(e);return Ne(JSON.stringify(s),!1,t,3)};function Dn(e,t){return ct(e,t)}const r_=(e,t,s)=>{const{exp:n,loc:i}=e;return n||s.onError(Dn(54,i)),t.children.length&&(s.onError(Dn(55,i)),t.children.length=0),{props:[Rt(Ne("innerHTML",!0,i),n||Ne("",!0))]}},a_=(e,t,s)=>{const{exp:n,loc:i}=e;return n||s.onError(Dn(56,i)),t.children.length&&(s.onError(Dn(57,i)),t.children.length=0),{props:[Rt(Ne("textContent",!0),n?_s(n,s)>0?n:Ot(s.helperString(na),[n],i):Ne("",!0))]}},l_=(e,t,s)=>{const n=oh(e,t,s);if(!n.props.length||t.tagType===1)return n;e.arg&&s.onError(Dn(59,e.arg.loc));const{tag:i}=t,o=s.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||o){let r=uh,a=!1;if(i==="input"||o){const l=aa(t,"type");if(l){if(l.type===7)r=mc;else if(l.value)switch(l.value.content){case"radio":r=lh;break;case"checkbox":r=ch;break;case"file":a=!0,s.onError(Dn(60,e.loc));break}}else j6(t)&&(r=mc)}else i==="select"&&(r=dh);a||(n.needRuntime=s.helper(r))}else s.onError(Dn(58,e.loc));return n.props=n.props.filter(r=>!(r.key.type===4&&r.key.content==="modelValue")),n},c_=hs("passive,once,capture"),u_=hs("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),d_=hs("left,right"),mh=hs("onkeyup,onkeydown,onkeypress"),f_=(e,t,s,n)=>{const i=[],o=[],r=[];for(let a=0;a<t.length;a++){const l=t[a].content;l==="native"&&Bo("COMPILER_V_ON_NATIVE",s)||c_(l)?r.push(l):d_(l)?cs(e)?mh(e.content.toLowerCase())?i.push(l):o.push(l):(i.push(l),o.push(l)):u_(l)?o.push(l):i.push(l)}return{keyModifiers:i,nonKeyModifiers:o,eventOptionModifiers:r}},Eh=(e,t)=>cs(e)&&e.content.toLowerCase()==="onclick"?Ne(t,!0):e.type!==4?Ns(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,h_=(e,t,s)=>sh(e,t,s,n=>{const{modifiers:i}=e;if(!i.length)return n;let{key:o,value:r}=n.props[0];const{keyModifiers:a,nonKeyModifiers:l,eventOptionModifiers:c}=f_(o,i,s,e.loc);if(l.includes("right")&&(o=Eh(o,"onContextmenu")),l.includes("middle")&&(o=Eh(o,"onMouseup")),l.length&&(r=Ot(s.helper(fh),[r,JSON.stringify(l)])),a.length&&(!cs(o)||mh(o.content.toLowerCase()))&&(r=Ot(s.helper(hh),[r,JSON.stringify(a)])),c.length){const u=c.map(zn).join("");o=cs(o)?Ne(`${o.content}${u}`,!0):Ns(["(",o,`) + "${u}"`])}return{props:[Rt(o,r)]}}),p_=(e,t,s)=>{const{exp:n,loc:i}=e;return n||s.onError(Dn(62,i)),{props:[],needRuntime:s.helper(ph)}},g_=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},__=[i_],m_={cloak:t_,html:r_,text:a_,model:l_,on:h_,show:p_};function E_(e,t={}){return e_(e,$e({},n_,t,{nodeTransforms:[g_,...__,...t.nodeTransforms||[]],directiveTransforms:$e({},m_,t.directiveTransforms||{}),transformHoist:null}))}/**
|
|
327
|
+
* vue v3.5.27
|
|
323
328
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
324
329
|
* @license MIT
|
|
325
|
-
**/const
|
|
326
|
-
`,
|
|
327
|
-
`]]]),
|
|
328
|
-
`]]]),
|
|
329
|
-
`]]]),
|
|
330
|
-
`]]]),
|
|
331
|
-
`]]]),
|
|
332
|
-
`]]]),
|
|
333
|
-
`]]]),
|
|
334
|
-
`]]]),
|
|
335
|
-
`]]]),
|
|
336
|
-
`]]]),
|
|
337
|
-
`]]]),
|
|
338
|
-
`]]]),
|
|
339
|
-
`]]]),
|
|
340
|
-
`]]]),
|
|
341
|
-
`]]]),
|
|
342
|
-
`]]]),
|
|
343
|
-
`]]]),
|
|
344
|
-
`]]]),
|
|
345
|
-
`]]]),
|
|
346
|
-
`]]]),
|
|
347
|
-
`
|
|
348
|
-
`]]]),
|
|
349
|
-
`]]]),
|
|
350
|
-
`]]]),
|
|
351
|
-
`]]]),
|
|
352
|
-
`]]]),
|
|
353
|
-
`]]]),
|
|
354
|
-
`]]]),
|
|
355
|
-
`]]]),
|
|
356
|
-
`]]])
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
`]]]),
|
|
360
|
-
`]]]),
|
|
361
|
-
`]]]),
|
|
362
|
-
`]]]),
|
|
363
|
-
`]]]),
|
|
364
|
-
`]]]),am=
|
|
365
|
-
`]]]),
|
|
366
|
-
`]]])
|
|
367
|
-
`,"<br>");const n=e.offsetWidth;Math.abs(t.offsetWidth-n)>1&&(t.style.width=`${n}px`,t.getBoundingClientRect());const i=21,o=36,r=5,a=18,l=i*r+a,c=t.scrollHeight,u=Math.max(1,Math.ceil(c/i));let d;u===1?d=o:u<=r?d=i*u+a:d=l,e.style.height=`${d}px`,s.style.height=`${d}px`,u>r?e.style.overflowY="auto":e.style.overflowY="hidden",yh!==d&&(yh=d,Ch())},ym=(e,t,s,n,i)=>{e.value=i||"",Ko(e,t,s)},Sh=(e,t,s,n)=>{var _;const i=ye().conversation.getOpenedConversation();if(!i)return;const o=e.value;if(!o.trim().length)return;const r=Ki?f.MentionedType.ALL:f.MentionedType.SINGAL,a=ye(),l=ft.value;let c;const u={};l?a.isQuoteMessageV2Enabled?(c=new f.TextMessage({content:o}),a.input.isQuoteInfoEnabledForMessageType(c.messageType)&&(u.quoteInfo={messageUId:l.messageUId,senderId:l.senderUserId,objectName:l.messageType},ft.value=null)):(c=new f.ReferenceMessage({content:o,referMsg:{...l.content},referMsgUserId:l.senderUserId,objName:l.messageType,referMsgUid:l.messageUId}),ft.value=null):c=new f.TextMessage({content:o}),u.isMentioned=Ki||qi.size>0,u.isMentioned&&(c.content.mentionedInfo={type:r,userIdList:Array.from(qi.keys())});const h=[f.MessageType.TEXT,f.MessageType.REFERENCE].includes(c.messageType),p=(_=f.getAppSettings())!=null&&_.messageSizeLimit?1500:5e3;if(h&&c.content.content.length>p){ye().alert("alert.send.message.maxcount",p);return}a.message.sendMessage(i,c,u,l),_h(),e.value="",Ko(e,t,s)},Sm=(e,t,s,n)=>{const i=e.target;hc||(e.preventDefault(),Sh(i,t,s))},Th=e=>{const t=e.clipboardData;if(!t||t.files.length===0)return;e.preventDefault();const s=ye(),n=s.conversation.getOpenedConversation(),i=Array.from(t.files);if(i.length>100){s.alert("alert.pickfiles.maxcount","100");return}const o=i.filter(r=>r.type!==""&&r.size>0);o.length!==0&&s.message.sendFiles(n,o)},Tm={class:"rc-input-provider"},Im={class:"rc-input-top-buttons"},Rm=["src","alt","onMouseenter","onClick"],wm={class:"rc-input-inner-wrapper"},Mm=["placeholder","enterkeyhint"],Om=["disabled"],bm=["src"],Lm={key:0},Am=["onClick"],xm=["src"],km=Re(Te({__name:"input-provider.ce",props:{conversation:{type:Object}},setup(e){const t=ye(),s=t.store.getCommandSwitch(Rt.AT_ALL),n=e,i=N(!1),o=N(null),r=()=>{i.value=_s(),C.value=t.input.menuList.filter(b).map(M)},a=Ze("input.placeholder"),l=N(""),c=N(),u=N(),d=N(),h=N(),p=N([]),_=N(null),m=N(null),b=ce=>!ce.filter||ce.filter(n.conversation),M=ce=>({...ce,label:Ze(ce.id).value}),C=N([]);C.value=t.input.menuList.filter(b).map(M);const g=me(()=>{const ce=[];return ce.push(...C.value),ce.sort((_e,et)=>(_e.order||0)-(et.order||0))}),E=ce=>o.value===ce.id&&ce.hoverIcon?ce.hoverIcon:ce.icon,v=me(()=>l.value.trim().length>0),L=()=>{hi(),p.value=[],_.value=null,m.value=null},k=ce=>{const _e=qo.value&&m.value===ce.id;L(),!_e&&(qo.value=!0,m.value=ce.id)},$=(ce,_e,et)=>{const nt=ma.value&&m.value===ce.id&&_.value===_e;L(),!(nt||et.length===0)&&(p.value=et,_.value=_e,m.value=ce.id,O())},A=(ce,_e)=>{if(p.value.some(nt=>nt.id===ce.id)){L(),U(ce,_e);return}if(ce.id===fi.EMOJI){_e.stopPropagation(),ye().statistic(di.INPUT_EMOJI_ENTRY_CLICK),k(ce);return}if(ce.submenu&&ce.submenu.length>0){_e.stopPropagation();const nt=ce.submenu.filter(b).map(M);$(ce,_e.currentTarget,nt);return}L(),U(ce,_e)},U=(ce,_e)=>{const{id:et}=ce;switch(et){case fi.PHOTO:t.emit(new ne(ge.TAKE_PHOTO_MODAL_EVENT));return;case fi.EMOJI:_e.stopPropagation(),ye().statistic(di.INPUT_EMOJI_ENTRY_CLICK),L(),qo.value=!0;return;case fi.IMAGES:Eh("image/jpg, image/png, image/jpeg, image/gif",nt=>t.message.sendFiles(n.conversation,nt));return;case fi.FILES:Eh("*/*",nt=>t.message.sendFiles(n.conversation,nt));return;default:t.emit(new ne(ge.INPUT_MENU_ITEM_CLICK,{id:et,conversation:n.conversation}),2);return}},O=()=>{!c.value||!_.value||(ma.value=!0,setTimeout(()=>{if(!c.value||!_.value||!u.value)return;const ce=_.value.getBoundingClientRect(),_e=u.value.getBoundingClientRect(),et=c.value,nt=ce.top-_e.top;et.style.bottom=`${_e.height-nt+8}px`,et.style.left=`${ce.left-_e.left}px`,et.style.right="auto"},0))},T=ce=>{pm(ce,De.value),L(),De.value&&(l.value=De.value.value)},V=ce=>{hm(ce,n.conversation),L()},K=ce=>{De.value&&(l.value=De.value.value),Cm(De.value,h.value,d.value,ce)},X=()=>{if(!De.value)return;const ce=De.value.value;Sh(De.value,h.value,d.value,u.value),De.value.value===""&&ce.trim().length>0&&(l.value="")},te=()=>{!v.value||!De.value||X()},ie=ce=>{var et;const _e=((et=De.value)==null?void 0:et.value)||"";Em(ce),vm(ce,h.value,d.value,u.value),ce.key==="Enter"&&!ce.shiftKey&&at(()=>{De.value&&De.value.value===""&&_e.trim().length>0&&(l.value="")})},F=ce=>{const[_e]=ce.detail;mh(_e,De.value)},Oe=async ce=>{var as,tt;const _e=(as=ce.data)==null?void 0:as.conversation,et=(tt=ce.data)==null?void 0:tt.focusInput,nt=(_e==null?void 0:_e.draft)||"";ft.value=null,L(),_h(),ym(De.value,h.value,d.value,u.value,nt),l.value=nt,_e&&et!==!1?De.value.focus():De.value&&De.value.blur()},Lt=ce=>{if(!ce.data)return;De.value.focus();const _e=De.value.value.length;De.value.setRangeText(ce.data,_e,_e,"end"),l.value=De.value.value,Ko(De.value,h.value,d.value)};us(ft,(ce,_e)=>{ce&&t.store.getCommandSwitch(Rt.PROMPT_SENDER_WHEN_QUOTE_MESSAGE)&&mh(ce.senderUserId,De.value,!0),ce&&De.value&&De.value.focus(),at(()=>{Ch()})});const Ye=ce=>{const _e=ce.target;c.value&&c.value.contains(_e)||_.value&&_.value.contains(_e)||L()},Et=()=>{r(),De.value&&h.value&&d.value&&u.value&&Ko(De.value,h.value,d.value)},ks=ce=>{if(!ft.value)return;ce.data.some(nt=>{var as;return nt.target.messageUId===((as=ft.value)==null?void 0:as.messageUId)})&&(ft.value=null)};return lt(()=>{var _e;r(),window.addEventListener("click",Ye),window.addEventListener("resize",Et),De.value.addEventListener("paste",Th);const ce=((_e=pe.value)==null?void 0:_e.draft)||"";De.value.value=ce,l.value=ce,t.addEventListener(ge.CONVERSATION_SELECTED,Oe),t.addEventListener(Z.SET_TEXTAREA_VALUE_EVENT,Lt),t.addEventListener(ge.MESSAGES_DELETED,ks)}),On(()=>{window.removeEventListener("click",Ye),window.removeEventListener("resize",Et),De.value.removeEventListener("paste",Th),t.removeEventListener(ge.CONVERSATION_SELECTED,Oe),t.removeEventListener(ge.MESSAGES_DELETED,ks)}),(ce,_e)=>{const et=ve("rc-emoji-panel-provider"),nt=ve("rc-at-users-panel-provider"),as=ve("rc-input-reply-bar");return R(),P("div",Tm,[D(qo)?(R(),xe(et,{key:0,class:"rc-input-emoji-panel",onInsertChat:_e[0]||(_e[0]=tt=>T(tt)),onSendImage:_e[1]||(_e[1]=tt=>V(tt))})):ue("",!0),ms(Ie(nt,{onAtUser:F,onAtAll:_e[2]||(_e[2]=tt=>D(fm)(D(De))),atAll:D(s),members:D(vn),style:{width:"100%","box-sizing":"border-box"}},null,8,["atAll","members"]),[[Ks,D(Ea)]]),y("div",Im,[(R(!0),P(Ne,null,kt(g.value,tt=>(R(),P("img",{class:"rc-input-menu-button",key:tt.id,src:E(tt),alt:tt.label,onMouseenter:Ht=>o.value=tt.id,onMouseleave:_e[3]||(_e[3]=Ht=>o.value=null),onClick:ys(Ht=>A(tt,Ht),["stop"])},null,40,Rm))),128))]),y("div",{class:"rc-input-wrapper",ref_key:"main",ref:u},[D(ft)?(R(),xe(as,{key:0,class:"replay-bar",username:D(ev),desc:D(JE),thumbnail:D(XE),onCancel:_e[4]||(_e[4]=tt=>ft.value=null)},null,8,["username","desc","thumbnail"])):ue("",!0),y("div",wm,[y("div",{class:"input-text-container",ref_key:"inputContainer",ref:d},[y("textarea",{ref_key:"textarea",ref:De,class:"textarea",placeholder:i.value?"":D(a),id:"textarea",name:"textarea",enterkeyhint:i.value?"send":void 0,onKeyup:_e[5]||(_e[5]=(...tt)=>D(vh)&&D(vh)(...tt)),onKeydown:ie,onInput:_e[6]||(_e[6]=tt=>K(tt))},null,40,Mm),y("div",{ref_key:"hiddenDom",ref:h,contenteditable:"",class:"hidden-dom"},null,512)],512),y("button",{class:Fe(["rc-input-send-button",{disabled:!v.value}]),disabled:!v.value,onClick:te},[y("img",{src:v.value?D(op):D(ip),alt:"send"},null,8,bm),i.value?ue("",!0):(R(),P("span",Lm,re(D(Ze)("input.send").value),1))],10,Om)]),ms(y("div",{class:"secondary-menu",ref_key:"secondarDOM",ref:c,onClick:_e[7]||(_e[7]=ys(()=>{},["stop"]))},[(R(!0),P(Ne,null,kt(p.value,tt=>(R(),P("div",{key:tt.id,class:"secondary-menu-item",onClick:Ht=>A(tt,Ht)},[y("img",{src:tt.icon,alt:"Icon"},null,8,xm),y("span",null,re(tt.label),1)],8,Am))),128))],512),[[Ks,D(ma)]])],512)])}}}),[["styles",[`.rc-input-provider{width:100%;height:100%;display:flex;flex-direction:column;background-color:#fff;align-items:center;justify-content:center;position:relative;z-index:2;padding:0 12px;box-sizing:border-box}.rc-input-emoji-panel,.rc-input-at-prompt{float:left;width:100%;max-height:248px;border-bottom:1px solid #efefef;border-top:1px solid #efefef}.rc-input-top-buttons{width:100%;display:flex;flex-direction:row;align-items:center;padding:8px 12px;gap:8px;box-sizing:border-box}.rc-input-menu-button{width:30px;height:30px;cursor:pointer;flex-shrink:0}.rc-input-wrapper{width:100%;max-width:100%;display:flex;flex-direction:column;border:1px solid #E4E7ED;border-radius:20px;margin:0 0 12px;box-sizing:border-box;background-color:#fff;position:relative}.rc-input-inner-wrapper{display:flex;flex-direction:row;align-items:flex-start;padding:8px;gap:8px;box-sizing:border-box}.input-text-container{background:none;flex:1;font-size:14px;overflow:hidden;line-height:21px;min-height:21px;border:none;border-radius:0;margin:0;overflow-y:hidden;box-sizing:border-box}.textarea{border:none;outline:none;background:none;min-height:21px;height:36px;max-height:105px;box-sizing:border-box;padding:9px 10px;width:100%;resize:none;word-wrap:break-word;font-size:14px;line-height:21px;overflow-y:hidden;margin-top:4px}.textarea::-webkit-scrollbar{width:4px}.textarea::-webkit-scrollbar-track{background:transparent;border-radius:3px}.textarea::-webkit-scrollbar-thumb{background:rgba(0,0,0,.2);border-radius:3px;transition:background .2s}.textarea::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.3)}.textarea{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.2) transparent}.hidden-dom{border:none;outline:none;background:none;line-height:21px;min-height:21px;height:21px;overflow:scroll;box-sizing:border-box;padding:0;width:100%;resize:none;font-size:14px;word-wrap:break-word;color:transparent;position:absolute;visibility:hidden}.rc-input-send-button{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px;padding:5px 16px;border:none;border-radius:30px;background-color:#ecf1ff;color:#0047ff;font-size:14px;cursor:pointer;flex-shrink:0;min-width:60px;height:28px;box-sizing:border-box;transition:background-color .2s,color .2s;margin:8px 0}.rc-input-send-button:hover:not(.disabled){background-color:#d0ddff}.rc-input-send-button.disabled{background-color:#f3f5fa;color:#ccc;cursor:not-allowed;border-radius:30px}.rc-input-send-button img{width:16px;height:16px;flex-shrink:0}.replay-bar{width:100%;padding:8px 8px 0;box-sizing:border-box}.secondary-menu{position:absolute;min-width:126px;background-color:#fff;border-radius:9px;box-shadow:0 0 4px #0000001a;padding:8px 4px;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;font-size:14px;color:#606060;z-index:1000}.secondary-menu-item{flex-direction:row;height:36px;width:100%;box-sizing:border-box;transition:background-color .2s;display:flex;align-items:center;font-size:12px;padding:5px 6px;border-radius:4px;cursor:pointer}.secondary-menu-item:hover{background-color:#d2e1fe}.secondary-menu-item img{width:18px;height:18px;margin-right:10px;flex-shrink:0}.secondary-menu-item span{white-space:nowrap}@media (max-width: 768px){.rc-input-provider{padding:0 8px}.rc-input-top-buttons{padding:8px 0;gap:6px}.rc-input-menu-button{width:28px;height:28px}.rc-input-wrapper{margin:0 0 8px;border-radius:20px}.rc-input-inner-wrapper{padding:6px;gap:6px}.rc-input-send-button{min-width:50px;font-size:12px}.rc-input-send-button span{display:none}}
|
|
368
|
-
`]]]),Um={class:"info"},Nm=["src"],Dm={class:"info-main"},Pm={class:"info-title-group"},Vm={class:"name"},Fm=["src"],$m={class:"member-count"},Hm={key:0,class:"typing-content"},Gm={class:"extension"},Bm=["src","onClick"],jm=Re(Te({__name:"conversation-detail-bar-provider.ce",props:{conversation:{type:Object,required:!0},showBack:{type:Boolean,default:!0}},setup(e){const t=e,s=me(()=>t.conversation.conversationType===f.ConversationType.GROUP),n=N(!1),i=()=>{n.value=_s()},o=()=>{var g;const C=ye();pe.value&&C.conversation.handleConversationDraft(pe.value,(g=De.value)==null?void 0:g.value),C.conversation.setOpenedConversation(null,!1)},r=ye(),a=r.store.getConversationExtension(),l=me(()=>a.filter(C=>!C.filter||C.filter(t.conversation))),c=C=>{r.emit(new ne(ge.CONVERSATION_EXTENSION_CLICK,{id:C.id,conversation:t.conversation}))},u=()=>{r.statistic(di.CONVERSATION_NAVI_CLICK),r.emit(new ne(ge.CONVERSATION_NAVI_CLICK,{...t.conversation}),2)};let d=null;const h=N(!1),p=N(!1),_=N(Ze("conversation.detail.bar.typing").value),m=C=>{const g=C.status.findIndex(v=>pe.value&&vt(v,pe.value));if(g===-1)return;const{list:E}=C.status[g];E.length!==0&&(d&&(clearTimeout(d),d=null,h.value=!1,_.value=""),p.value=E.some(v=>v.messageType===f.MessageType.TEXT),_.value=p.value?Ze("conversation.detail.bar.typing").value:Ze("conversation.detail.bar.typing.audio").value,h.value=!0,d=setTimeout(()=>{h.value=!1,_.value=""},5e3))},b=C=>{h.value=!1},M=C=>{if(!pe.value||s.value)return;const g=C.data,E=r.userId;g.some(L=>vt(L,pe.value)&&L.senderUserId!==E)&&(d&&(clearTimeout(d),d=null),h.value=!1,_.value="")};return lt(()=>{i(),window.addEventListener("resize",i),f.addEventListener(f.Events.TYPING_STATUS,m),ye().addEventListener(ge.CONVERSATION_SELECTED,b),ye().addEventListener(Z.RECV_NEW_MESSAGES,M)}),wt(()=>{window.removeEventListener("resize",i),f.removeEventListener(f.Events.TYPING_STATUS,m),ye().removeEventListener(ge.CONVERSATION_SELECTED,b),ye().removeEventListener(Z.RECV_NEW_MESSAGES,M)}),(C,g)=>{const E=ve("rc-icon-notification");return R(),P("div",{class:Fe(["rc-conversation-detail-bar",{"is-h5":n.value}])},[n.value&&e.showBack?(R(),P("div",{key:0,class:"back-button",onClick:o},[...g[0]||(g[0]=[y("span",{class:"back-icon"},"<",-1)])])):ue("",!0),y("div",Um,[y("img",{onClick:u,class:"icon",src:e.conversation.portraitUri,alt:"Conversation Icon"},null,8,Nm),y("div",Dm,[y("div",Pm,[y("span",Vm,re(e.conversation.name),1),e.conversation.notificationLevel===5?(R(),xe(E,{key:0})):ue("",!0),s.value?(R(),P(Ne,{key:1},[y("img",{class:"member-icon",src:D(up),alt:"Group Members Icon"},null,8,Fm),y("span",$m,re(e.conversation.memberCount),1)],64)):ue("",!0)])]),h.value&&!s.value?(R(),P("span",Hm,re(_.value),1)):ue("",!0)]),y("div",Gm,[(R(!0),P(Ne,null,kt(l.value,v=>(R(),P("img",{class:"extension-icon",src:v.icon,key:v.id,alt:"Extension Icon",onClick:L=>c(v)},null,8,Bm))),128))])],2)}}}),[["styles",[`.rc-conversation-detail-bar{width:100%;height:70px;display:flex;flex-direction:row;align-items:center;border-bottom:1px dashed #E4E7ED;position:relative;z-index:2;background-color:#fff}.info{display:flex;flex-direction:row;align-items:center;flex:1 1 auto;min-width:0}.info-main{flex:1 1 auto;min-width:0;overflow:hidden}.info-title-group{display:flex;align-items:center;min-width:0;max-width:100%}.icon{width:32px;height:32px;margin:0 10px 0 20px;flex-shrink:0}.name{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;color:#020814;font-weight:500}.member-icon{margin:0 4px 0 20px;width:12px;height:12px;flex-shrink:0}.member-count{font-size:12px;color:#bcbcbc;flex-shrink:0}.extension{margin:0 28px 0 10px;flex-shrink:0}.extension-icon{width:26px;height:26px;margin-right:10px;cursor:pointer}.typing-content{margin-left:5px;font-size:12px;color:#7c838e;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.back-button{width:20px;height:20px;display:flex;align-items:center;justify-content:center;font-size:20px;margin-left:5px;font-weight:500;color:#000;flex-shrink:0}.is-h5 .icon{margin-left:10px}.is-h5 .extension{margin-right:12px}.is-h5 .typing-content{display:none}
|
|
369
|
-
`]]]);var pc=(e=>(e.LEFT_JUSTIFYING="left-justifying",e.LEFT_RIGHT="left-right",e))(pc||{});const Ih={radius:20,layout:"left-right",backgroundColorForMyself:"#D2E1FE",backgroundColorForOthers:"#F3F5FA",textColorForMyself:"#020814",textColorForOthers:"#020814",showMyProfileInPrivateConversation:!0,showMyNameInPrivateConversation:!1,showMyProfileInGroupConversation:!0,showMyNameInGroupConversation:!1,showOthersProfileInPrivateConversation:!0,showOthersNameInPrivateConversation:!1,showOthersProfileInGroupConversation:!0,showOthersNameInGroupConversation:!0},qm=e=>({...e});class Km extends Is{constructor(s){super(s);q(this,"messageBubbleCfg",{});this.setMessageBubbleCfg(Ih)}_onInit(){}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this.setMessageBubbleCfg(Ih)}cloneMessageBubbleCfg(){return qm(this.messageBubbleCfg)}setMessageBubbleCfg(s){this.messageBubbleCfg={...this.messageBubbleCfg,...s}}}var Wt=(e=>(e.REPLY="message.menu.item.reply",e.MULTI_CHOICE="message.menu.item.multi.choice",e.COPY="message.menu.item.copy",e.FORWARD="message.menu.item.forward",e.DELETE="message.menu.item.delete",e.SPEECH_TO_TEXT="message.menu.item.speech.to.text",e.CANCEL_SPEECH_TO_TEXT="message.menu.item.cancel.speech.to.text",e.RECALL="message.menu.item.recall",e))(Wt||{});const Rh=[{id:"message.menu.item.recall",icon:Q0,filter:e=>e.messageDirection===f.MessageDirection.SEND&&e.sentStatus!==f.SentStatus.FAILED&&e.sentStatus!==f.SentStatus.SENDING},{id:"message.menu.item.reply",icon:V0,filter:e=>[f.MessageType.TEXT,f.MessageType.IMAGE,f.MessageType.FILE,f.MessageType.RICH_CONTENT,f.MessageType.REFERENCE].includes(e.messageType)&&e.sentStatus!==f.SentStatus.SENDING&&e.sentStatus!==f.SentStatus.FAILED},{id:"message.menu.item.copy",icon:P0,filter:e=>(e.messageType===f.MessageType.TEXT||e.messageType===f.MessageType.REFERENCE)&&!!navigator.clipboard},{id:"message.menu.item.forward",icon:Xc,filter:e=>[f.MessageType.TEXT,f.MessageType.IMAGE,f.MessageType.FILE,f.MessageType.RICH_CONTENT,f.MessageType.HQ_VOICE,f.MessageType.VOICE,f.MessageType.COMBINE,f.MessageType.COMBINE_V2,f.MessageType.GIF,f.MessageType.SIGHT,f.MessageType.FILE,f.MessageType.REFERENCE].includes(e.messageType)&&e.sentStatus!==f.SentStatus.SENDING&&e.sentStatus!==f.SentStatus.FAILED},{id:"message.menu.item.multi.choice",icon:F0},{id:"message.menu.item.delete",icon:Jc,filter:e=>e.sentStatus!==f.SentStatus.SENDING}],va=e=>e.map(t=>({...t}));class zm extends Is{constructor(){super(...arguments);q(this,"_menu",va(Rh));q(this,"_speechToTextStore")}_onInit(){}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this._menu=va(Rh)}setSpeechToTextStore(s){this._speechToTextStore=s}getMenu(s){var l,c;const n=((l=f.getAppSettings())==null?void 0:l.isSpeechToTextEnabled)||!1,i=[f.SentStatus.SENDING,f.SentStatus.FAILED].includes(s.sentStatus),o=s.messageType===f.MessageType.HQ_VOICE,r=((c=this._speechToTextStore)==null?void 0:c.hasConverted(s.messageUId||""))||!1;let a=this._menu.filter(u=>u.id==="message.menu.item.recall"&&Date.now()-s.sentTime>this.ctx.allowedToRecallTime*1e3||s.conversationType===f.ConversationType.SYSTEM&&u.id!=="message.menu.item.copy"&&u.id!=="message.menu.item.delete"?!1:!u.filter||u.filter(s));return n&&o&&!i&&(r?a.push({id:"message.menu.item.cancel.speech.to.text",icon:z0}):a.push({id:"message.menu.item.speech.to.text",icon:K0})),a}cloneMessageMenu(){return va(this._menu)}setMessageMenu(s){this._menu=va(s)}}const Qm={key:0,class:"checkbox"},Wm=["for"],Zm=["id","value"],Ym={class:"custom"},Jm=["src"],Xm=["data-message-uid","onMouseenter"],eE={class:"rc-kit-msg-bubble-status-row"},tE={key:0,class:"rc-kit-stt-converting"},sE={key:1,class:"rc-kit-stt-error"},nE={class:"rc-kit-stt-error-text"},iE={key:2,class:"rc-kit-stt-success"},oE={key:0,style:{padding:"5px"}},rE=450,aE=Re(Te({__name:"message-list-provider.ce",setup(e){const t=ye(),s=N(""),n=N({}),i=N({}),o=N({}),r=N({}),a=I=>n.value[I],l=I=>{const x=i.value[I]||t.speechToTextStore.getSTTText(I)||"";return x===""?Ce("message.speech.to.text.empty"):x},c=I=>{if(o.value[I])return!1;if(a(I))return!0;const G=t.speechToTextStore.getSTTText(I);return G?(n.value[I]="success",i.value[I]=G,!0):!1},u=I=>{const{messageUId:x,status:G,text:ee,errorCode:J}=I.data;o.value[x]||(n.value[x]=G,console.log("onSpeechToTextStateChange",x,G,ee,J),J&&(r.value[x]=J),G==="success"&&ee&&(i.value[x]=ee))},d=["time.format.sunday","time.format.monday","time.format.tueday","time.format.wedday","time.format.thurday","time.format.friday","time.format.satday"],h=I=>{const{year:x,month:G,day:ee,weekDay:J}=mi(I),ae=(Date.now()-I)/1e3/60/60/24;let Ae=Ce("time.format.full",x,G,ee);return new Date().toDateString()===new Date(I).toDateString()&&(Ae=Ce("time.format.today")),(new Date().toDateString()!==new Date(I).toDateString()&&ae<1||1<=ae&&ae<2)&&(Ae=Ce("time.format.yesterday")),2<=ae&&ae<7&&(Ae=Ce(d[J])),Ae},p=(I,x)=>typeof I=="string"?I:Number.isFinite(I.transactionId)?`tx-${I.transactionId}`:I.messageUId||`rc-kit-${x}`,_=me(()=>{const I=ke.value,x=[];for(let G=I.length-1;G>=0;G-=1){const ee=I[G];x.unshift(ee);const J=I[G-1];J?new Date(ee.sentTime).toDateString()!==new Date(J.sentTime).toDateString()&&x.unshift(h(ee.sentTime)):It||x.unshift(h(ee.sentTime))}return x}),m=I=>{var x,G;return I.messageDirection===f.MessageDirection.SEND?Ca.value:((x=pe.value)==null?void 0:x.conversationType)===f.ConversationType.GROUP?vn.value.find(J=>J.userId==I.senderUserId)||{name:I.senderUserId,userId:I.senderUserId,portraitUri:(G=pe.value)==null?void 0:G.portraitUri}:{name:pe.value.name,userId:pe.value.targetId,portraitUri:pe.value.portraitUri}},b=I=>{const x=m(I);t.emit(new ne(ge.CONVERSATION_ICON_CLICK,{conversation:{conversationType:I.conversationType,targetId:I.targetId,channelId:I.channelId},profile:x}),2)},M=N(0);let C=0;const g=t.store.getCommandSwitch(Rt.FOCUS_ON_LATEST_MESSAGE);let E=0;const v=I=>I.messageUId?`uid:${I.messageUId}`:I.transactionId!==void 0?`tid:${I.transactionId}`:I.messageId!==void 0?`mid:${I.messageId}`:[I.conversationType,I.targetId,I.channelId||"",I.senderUserId,I.messageType,I.sentTime].join(":"),L=(...I)=>{const x=[];I.forEach(J=>{x.push(...J)});const G=new Set,ee=[];for(let J=x.length-1;J>=0;J-=1){const ae=x[J],Ae=v(ae);G.has(Ae)||(G.add(Ae),ee.unshift(ae))}return ee},k=async(I,x)=>{const G={conversationType:pe.value.conversationType,targetId:pe.value.targetId,channelId:pe.value.channelId};if(x){const{code:At,list:Zt,hasMore:Js}=await t.message.reqHistories(G,I-1,!1);At===f.ErrorCode.SUCCESS&&(dt.value=Js,ke.value=L(Zt),await at(),gs())}const{scrollHeight:ee}=F.value,{code:J,list:ae,hasMore:Ae}=await t.message.reqHistories(G,I,!0);return J===f.ErrorCode.SUCCESS&&(ke.value=L(ae,ke.value),It=Ae,await at(),gs(),x?F.value.scrollTop=F.value.scrollHeight-ee:F.value.scrollTop=F.value.scrollHeight-F.value.offsetHeight),ke.value},$=async()=>{var Js,Fn;if(!pe.value)return;const{conversationType:I,targetId:x,channelId:G,unreadCount:ee}=pe.value,J={conversationType:I,targetId:x,channelId:G};if(ke.value.length=0,E=0,Zs=null,Pn.value=ee,f.electronExtension.enable()){const{data:Us}=await f.getFirstUnreadMessage(J);C=(Us==null?void 0:Us.sentTime)||0,g||(E=C)}const ae=!g&&E>0,Ae=await k(E,ae);if(g&&f.electronExtension.enable()&&ee){const Us=ee-Ae.length;M.value=Us<0?0:Us}const At=Ae.length,Zt=((Js=Ae[At-1])==null?void 0:Js.sentTime)||((Fn=pe.value.latestMessage)==null?void 0:Fn.sentTime)||Date.now();Pn.value?(await t.conversation.clearUnreadCountByTimestamp(J,Zt),await t.message.sendReadReceiptMessage(J,Ae)):f.electronExtension.enable()||await t.message.sendReadReceiptMessage(J,Ae)},A=(I,x)=>!0,U=N(),O=I=>{var ae,Ae,At,Zt;const x=(ae=U.value)==null?void 0:ae.showMyProfileInGroupConversation,G=(Ae=U.value)==null?void 0:Ae.showMyProfileInPrivateConversation,ee=(At=U.value)==null?void 0:At.showOthersProfileInGroupConversation,J=(Zt=U.value)==null?void 0:Zt.showOthersProfileInPrivateConversation;return I.messageDirection===f.MessageDirection.SEND&&I.conversationType===f.ConversationType.PRIVATE?!!G:I.messageDirection===f.MessageDirection.SEND&&I.conversationType===f.ConversationType.GROUP?!!x:I.messageDirection===f.MessageDirection.RECEIVE&&I.conversationType===f.ConversationType.PRIVATE?!!J:I.messageDirection===f.MessageDirection.RECEIVE&&I.conversationType===f.ConversationType.GROUP?!!ee:!1},T=I=>{var ae,Ae,At,Zt;const x=(ae=U.value)==null?void 0:ae.showMyNameInPrivateConversation,G=(Ae=U.value)==null?void 0:Ae.showMyNameInGroupConversation,ee=(At=U.value)==null?void 0:At.showOthersNameInGroupConversation,J=(Zt=U.value)==null?void 0:Zt.showOthersNameInPrivateConversation;return I.messageDirection===f.MessageDirection.SEND&&I.conversationType===f.ConversationType.PRIVATE?!!x:I.messageDirection===f.MessageDirection.SEND&&I.conversationType===f.ConversationType.GROUP?!!G:I.messageDirection===f.MessageDirection.RECEIVE&&I.conversationType===f.ConversationType.PRIVATE?!!J:I.messageDirection===f.MessageDirection.RECEIVE&&I.conversationType===f.ConversationType.GROUP?!!ee:!1},V=I=>{var x;return I.messageDirection===1&&((x=U.value)==null?void 0:x.layout)===pc.LEFT_RIGHT?"row-reverse":"row"},K=(I,x)=>{if(!U.value)return;const G=$n(U.value.textColorForOthers),ee=$n(U.value.backgroundColorForOthers),J=$n(U.value.textColorForMyself),ae=$n(U.value.backgroundColorForMyself);let Ae=G,At=ee,Zt=`${U.value.radius}px`;return I.messageDirection===f.MessageDirection.SEND&&(Ae=J,At=ae),[j.MessageType.IMAGE,j.MessageType.SIGHT,j.MessageType.GIF].includes(I.messageType)&&!I.quoteInfo&&(At=At+"00"),{color:Ae,backgroundColor:At,borderRadius:Zt}},X=I=>{var x;return I.messageDirection===1&&((x=U.value)==null?void 0:x.layout)==="left-right"},te=I=>{if(![j.SentStatus.SENDING,j.SentStatus.FAILED].includes(I.sentStatus))switch(I.messageType){case j.MessageType.IMAGE:t.emit(new ne(ge.MEDIA_MESSAGE_MODAL_EVENT,I));break;case j.MessageType.SIGHT:t.audioPlayer.pause(),t.emit(new ne(ge.MEDIA_MESSAGE_MODAL_EVENT,I));break;case j.MessageType.GIF:t.emit(new ne(ge.MEDIA_MESSAGE_MODAL_EVENT,I));break;case j.MessageType.COMBINE:case j.MessageType.COMBINE_V2:t.emit(new ne(ge.COMBINE_MESSAGE_MODAL_EVENT,I));break}},ie=N(),F=N(),Oe=N(),Lt=N([]),Ye=on({left:0,top:0,display:"none"}),Et=Mc(F),ks=N(),ce=N(!1),_e=()=>{ce.value=_s()},et=(I,x)=>{if(!ie.value)return 0;const G=ie.value.getBoundingClientRect(),ee=x-G.top;return G.height-ee<I?ee-I:ee},nt=(I,x)=>{if(!ie.value)return 0;const G=ie.value.getBoundingClientRect(),ee=x-G.left;return G.width-ee<I?ee-I:ee},as=async(I,x)=>{if(Ls.value)return;Gt();let G=x;"detail"in x&&Array.isArray(x.detail)&&x.detail[0]instanceof MouseEvent&&(G=x.detail[0]),ks.value=I;let ee=t.msgMenu.getMenu(I).map(J=>({id:J.id,icon:J.icon,label:Ce(J.id),message:I}));if(I.messageType===j.MessageType.HQ_VOICE&&I.messageUId){const J=c(I.messageUId),ae=ee.findIndex(Ae=>Ae.id===Wt.SPEECH_TO_TEXT||Ae.id===Wt.CANCEL_SPEECH_TO_TEXT);ae!==-1&&(J?ee[ae]={id:Wt.CANCEL_SPEECH_TO_TEXT,icon:ee[ae].icon,label:Ce(Wt.CANCEL_SPEECH_TO_TEXT),message:I}:ee[ae]={id:Wt.SPEECH_TO_TEXT,icon:ee[ae].icon,label:Ce(Wt.SPEECH_TO_TEXT),message:I})}Lt.value.splice(0,Lt.value.length,...ee),Ye.left=nt(Oe.value.clientWidth,G.clientX),Ye.display="block",await at(),Ye.top=et(Oe.value.clientHeight,G.clientY),Ye.left=nt(Oe.value.clientWidth,G.clientX)},tt=async(I,x)=>{switch(t.statistic(di.CONVERSATION_MESSAGE_OPTION_CLICK),I){case Wt.COPY:const G=x.content.content||"";if(!navigator.clipboard||!G)return;navigator.clipboard.writeText(G),t.emit(new ne(ge.TOAST_EVENT,{message:t.i18n.format("toast.copy.success"),showIcon:!0}));break;case Wt.DELETE:Uh([x]);break;case Wt.RECALL:nv([x]);break;case Wt.MULTI_CHOICE:Ls.value=!0;break;case Wt.REPLY:ft.value=x;break;case Wt.FORWARD:kh(Gn.SINGLE,[x]);break;case Wt.SPEECH_TO_TEXT:if(x.messageUId)if(delete o.value[x.messageUId],t.speechToTextStore.hasConverted(x.messageUId)){const J=t.speechToTextStore.getSTTText(x.messageUId)||"";n.value[x.messageUId]="success",i.value[x.messageUId]=J}else n.value[x.messageUId]="converting",await t.speechToTextStore.requestForMessage(x);break;case Wt.CANCEL_SPEECH_TO_TEXT:x.messageUId&&(o.value[x.messageUId]=!0,delete n.value[x.messageUId],delete i.value[x.messageUId]);break;default:t.emit(new ne(ge.MESSAGE_MENU_ITEM_CLICK,{id:I,message:x}));break}},Ht=()=>{Ye.display="none"};us(()=>Ye.display,I=>{I==="block"?Et.disableScroll():Et.enableScroll()});const Qi=(I,x)=>{I.sentStatus===j.SentStatus.FAILED?t.message.resendMessage(I):I.conversationType===f.ConversationType.GROUP&&(I.sentStatus===j.SentStatus.SENT||I.sentStatus===j.SentStatus.READ)&&t.readReceiptVersion===j.GroupReadReceiptVersion.V5&&(S.value=I.messageUId,Je(I,x))},Ws=N(!1),S=N(""),w=N(null),H=N([]),Y=N([]),Q=N(void 0),z=N(void 0),le=N(!1),oe=N(!1),se=N(!1),W=N(!1),fe=on({top:0,left:0,anchor:"top-right"}),de=N(null),Se=N(0),Me=N(0),Be=I=>{var er,Ee;if(!F.value||!ie.value)return;if(!I)if((er=w.value)!=null&&er.messageUId){const Ns=(Ee=F.value)==null?void 0:Ee.querySelector(`.rc-kit-msg-list-item[data-message-uid="${w.value.messageUId}"]`);if(Ns){const Yi=Ns.querySelector(".rc-kit-msg-sent-status")||Ns.querySelector(".rc-kit-message-sent-status");if(Yi)de.value=Yi,I=Yi;else{console.warn("[ReadReceipt] status element not found during update");return}}else{console.warn("[ReadReceipt] message item not found during update");return}}else return;const x=I.getBoundingClientRect(),G=ie.value.getBoundingClientRect(),ee=x.top-G.top,J=x.bottom-G.top,ae=x.left-G.left,Ae=x.right-G.left,At=G.height/2,Zt=344,Js=20,Fn=ee<At,Us=Ae+Js+Zt<=G.width;if(ae-Zt>=0)Fn?(fe.top=ee,fe.left=ae,fe.anchor="top-right"):(fe.top=J,fe.left=ae,fe.anchor="bottom-right");else if(Us)Fn?(fe.top=ee,fe.left=Ae+Js,fe.anchor="top-left"):(fe.top=J,fe.left=Ae+Js,fe.anchor="bottom-left");else{const Ns=G.width/2;Fn?(fe.top=ee,fe.left=Ns,fe.anchor="top-center"):(fe.top=J,fe.left=Ns,fe.anchor="bottom-center")}},Je=async(I,x)=>{var ee;if(Ht(),!I.messageUId||I.conversationType!==f.ConversationType.GROUP){console.log("[ReadReceipt] handleShowReadReceiptModal: invalid message",{messageUId:I.messageUId,conversationType:I.conversationType});return}w.value=I,H.value=[],Y.value=[],Q.value=void 0,z.value=void 0,le.value=!1,oe.value=!1,Se.value=0,Me.value=0,await at();let G=null;if(x&&x.target){const J=x.target;J&&typeof J.closest=="function"&&(G=J.closest(".rc-kit-msg-sent-status")||J.closest(".rc-kit-message-sent-status")),!G&&J&&(J.classList.contains("rc-kit-msg-sent-status")||J.classList.contains("rc-kit-message-sent-status"))&&(G=J)}if(!G){const J=(ee=F.value)==null?void 0:ee.querySelector(`.rc-kit-msg-list-item[data-message-uid="${I.messageUId}"]`);J&&(G=J.querySelector(".rc-kit-msg-sent-status")||J.querySelector(".rc-kit-message-sent-status"))}G?(de.value=G,Be(G)):(console.warn("[ReadReceipt] status element not found, using default position"),fe.top=ie.value?ie.value.clientHeight/2:0,fe.left=ie.value?ie.value.clientWidth/2:0,fe.anchor="top-left"),await Promise.all([We(I,!0),ht(I,!0)]),Ws.value=!0},We=async(I,x=!1)=>{if(!se.value){se.value=!0;try{const G={conversationType:I.conversationType,targetId:I.targetId,channelId:I.channelId},ee=15,{code:J,data:ae}=await t.message.getMessagesReadReceiptUsersByPageV5(G,I.messageUId,{pageToken:Q.value,count:ee,type:"read"});J===f.ErrorCode.SUCCESS&&ae?(H.value.push(...ae.users||[]),Q.value=ae.pageToken,Se.value=ae.totalCount||0,le.value=ae.totalCount&&ae.totalCount>H.value.length):console.warn("[ReadReceipt] loadReadUsers: failed",{code:J,data:ae})}catch(G){console.warn("[ReadReceipt] loadReadUsers error:",G)}finally{se.value=!1}}},ht=async(I,x=!1)=>{if(!W.value){W.value=!0;try{const G={conversationType:I.conversationType,targetId:I.targetId,channelId:I.channelId},ee=15,{code:J,data:ae}=await t.message.getMessagesReadReceiptUsersByPageV5(G,I.messageUId,{pageToken:z.value,count:ee,type:"unread"});J===f.ErrorCode.SUCCESS&&ae?(Y.value.push(...ae.users||[]),z.value=ae.pageToken,Me.value=ae.totalCount||0,oe.value=ae.totalCount&&ae.totalCount>Y.value.length):console.warn("[ReadReceipt] loadUnreadUsers: failed",{code:J,data:ae})}catch(G){console.warn("[ReadReceipt] loadUnreadUsers error:",G)}finally{W.value=!1}}},Tt=async(I,x)=>{if(!w.value)return;const G=I.scrollTop||0,ee=I.scrollHeight||0,J=I.clientHeight||0;ee-G-J<50&&(x==="read"&&le.value&&!se.value?await We(w.value,!1):x==="unread"&&oe.value&&!W.value&&await ht(w.value,!1))},ps=I=>{const[x,G]=I.detail;Tt(x,G)},Gt=()=>{console.log("[ReadReceipt] handleCloseReadReceiptModal"),Ws.value=!1,w.value=null,H.value=[],Y.value=[],Q.value=void 0,z.value=void 0,le.value=!1,oe.value=!1,Se.value=0,Me.value=0,de.value=null},Vn=I=>{Ws.value&&(I.target.closest(".read-receipt-popover")||Gt())};let Zs=null,It=!0,dt=N(!1);const Cn=N(1),Wi=N(0),Jo=N(0),Sc=N(),Xo=N(!0),Zi=N(!1),Tc=N(!1);let Ys=null;const Cv=()=>{Tc.value=!0,Zi.value=!0,Ys&&clearTimeout(Ys)},yv=()=>{Tc.value=!1,Ys&&clearTimeout(Ys),Ys=setTimeout(()=>{Zi.value=!1},1e3)},Sv=()=>{if(Et.isScrollDisabled||(Zi.value=!0,Ys&&clearTimeout(Ys),Tc.value||(Ys=setTimeout(()=>{Zi.value=!1},1e3)),!pe.value||ke.value.length===0))return;const I={conversationType:pe.value.conversationType,targetId:pe.value.targetId,channelId:pe.value.channelId},{scrollHeight:x,scrollTop:G,clientHeight:ee}=F.value;if(Xo.value=x-ee-G<=100,Jo.value=F.value.scrollTop*100/ee*Cn.value||0,G<=200&&!Zs){if(!It)return;Zs=setTimeout(async()=>{Tv(I,x)},1e3)}if(Ws.value&&Be(de.value),dt.value&&x-G-ee<=200&&!Zs){if(!dt.value)return;Zs=setTimeout(async()=>{Iv(I,ee)},1e3)}},Tv=async(I,x)=>{const{hasMore:G,code:ee,list:J}=await t.message.reqHistories(I,ke.value[0].sentTime,!0);if(ee===f.ErrorCode.SUCCESS){if(ke.value=[...J,...ke.value],It=G,M.value){const ae=M.value-J.length;M.value=ae<0?0:ae}await at(),gs(),F.value.scrollTop=F.value.scrollHeight-x,ke.value.length>300&&(ke.value.splice(300),await at(),gs(),dt.value=!0),I.conversationType===f.ConversationType.GROUP&&f.electronExtension.enable()&&await t.message.sendReadReceiptMessage(I,J)}Zs=null},Iv=async(I,x)=>{const{hasMore:G,code:ee,list:J}=await t.message.reqHistories(I,ke.value[ke.value.length-1].sentTime,!1);if(ee===0){ke.value=[...ke.value,...J],dt.value=G,Pn.value&&(f.electronExtension.enable()&&(await t.conversation.clearUnreadCountByTimestamp(I,J[J.length-1].sentTime),await t.message.sendReadReceiptMessage(I,J)),!f.electronExtension.enable()&&!G&&(await t.conversation.clearUnreadCountByTimestamp(I,J[J.length-1].sentTime),await t.message.sendReadReceiptMessage(I,J))),await at(),gs(),Jo.value=F.value.scrollTop*100/x*Cn.value||0;const ae=Sc.value.offsetHeight;ke.value.length>300&&(ke.value.splice(0,ke.value.length-300),await at(),gs(),F.value.scrollTop=F.value.scrollTop-(ae-Sc.value.offsetHeight))}Zs=null},Rv=I=>{if(Et.isScrollDisabled||!F.value)return;const x=I.detail[0];F.value.scrollTop=x*F.value.scrollHeight/100},gs=()=>{if(!F.value)return;const I=F.value.offsetHeight**2/F.value.scrollHeight,x=Math.floor(I*100)/100,G=Math.max(x,20),ee=x/(F.value.offsetHeight-x)/(G/(F.value.offsetHeight-G));Cn.value=Math.floor(ee*100)/100||1,Wi.value=x<F.value.offsetHeight?Math.floor(G):0},Ic=async()=>{if(await at(),!F.value)return;gs();const{scrollHeight:I,clientHeight:x}=F.value;F.value.scrollTop=Math.max(I-x,0),Xo.value=!0},wv=async()=>{if(!pe.value)return;const I={conversationType:pe.value.conversationType,targetId:pe.value.targetId,channelId:pe.value.channelId},{code:x,list:G,hasMore:ee}=await t.message.reqHistories(I,0,!0);if(x===f.ErrorCode.SUCCESS){ke.value.length=0,ke.value=G,It=ee,dt.value=!1,await at(),gs();const{scrollHeight:J,offsetHeight:ae}=F.value;if(F.value.scrollTop=J-ae,Jo.value=F.value.scrollTop*100/ae*Cn.value,await t.conversation.clearUnreadCountByTimestamp(I,G[G.length-1].sentTime),f.electronExtension.enable()){const{data:Ae}=await f.getFirstUnreadMessage(I);Ae&&Ae.sentTime>G[0].sentTime&&G.unshift(Ei(Ae))}await t.message.sendReadReceiptMessage(I,G)}},Mv=async()=>{if(!pe.value)return;const I={conversationType:pe.value.conversationType,channelId:pe.value.channelId,targetId:pe.value.targetId};M.value=0,dt.value=!0,gs();const x=await k(C,!0);x.length&&await t.message.sendReadReceiptMessage(I,x)},Rc=N(),Ov=us(xs,I=>{const x=As.value.length,G=[];I.forEach(ee=>{const J=ke.value.findIndex(ae=>ae.messageUId?ae.messageUId==ee:`${ae.transactionId}`==ee);J>-1&&G.push(ke.value[J])}),As.value.splice(0,x,...G)},{deep:!0}),bv=()=>{if(!ie.value||!F.value||!Rc.value)return;const I=ie.value.getBoundingClientRect().top,x=Rc.value.getBoundingClientRect().top-I,G=F.value.querySelectorAll(".rc-kit-msg-list-box");for(let ee=G.length-1;ee>=1&&G[ee].getBoundingClientRect().top-I>x;ee--){const ae=G[ee].querySelectorAll(".checkbox input");if(ae.length<=0)continue;Lv(ae)}zo.value=!zo.value},Lv=I=>{if(zo.value)I[0].checked=!0,xs.value.findIndex(G=>I[0].value===G)===-1&&xs.value.unshift(I[0].value);else{I[0].checked=!1;const x=xs.value.findIndex(G=>I[0].value===G);x>=0&&xs.value.splice(x,1)}},Bh=async I=>{I.data.forEach(x=>{const{target:G,recallMsg:ee}=x,J=ke.value.findIndex(ae=>ae.transactionId===G.transactionId||ae.messageUId&&ae.messageUId===G.messageUId);if(J!==-1)if(ee){ke.value.splice(J,1,ee);const ae=xs.value.findIndex(Ae=>Ae===ee.content.messageUId);if(ae===-1)return;xs.value.splice(ae,1)}else ke.value.splice(J,1)}),await at(),gs()},jh=I=>{const{message:x}=I.data,G=Sn(ke.value,ee=>ee.transactionId===x.transactionId);G!==-1&&ke.value.splice(G,1,{...x})},qh=I=>{I.data.forEach(x=>{if(vt(pe.value,x)){const G=Sn(ke.value,ae=>ae.messageUId?ae.messageUId===x.messageUId:ae.transactionId===x.transactionId);if(G===-1)return;const ee=ke.value[G].sentTime,J=JSON.parse(JSON.stringify(x));if(x.sentTime!==ee){ke.value.splice(G,1);const ae=Sn(ke.value,Ae=>Ae.sentTime<=x.sentTime);ke.value.splice(ae+1,0,J)}else ke.value.splice(G,1,J)}})},Av=I=>{t.emit(new ne(ge.MESSAGE_LINK_CLICK,I.detail[0]))},Kh=async I=>{if(!pe.value)return;const x={conversationType:pe.value.conversationType,targetId:pe.value.targetId,channelId:pe.value.channelId},G=[];if(I.data.forEach(async J=>{const ae=ke.value.findIndex(Ae=>Ae.messageUId===J.messageUId);vt(x,J)&&ae<0&&G.push(J)}),!G.length)return;if(!Xo.value||dt.value){dt.value=!0;return}ke.value=L(ke.value,G),Ic();const ee=G.length;setTimeout(async()=>{const{code:J}=await t.conversation.clearUnreadCountByTimestamp(x,G[ee-1].sentTime);J===f.ErrorCode.SUCCESS&&await t.message.sendReadReceiptMessage(x,G)},100)},zh=async I=>{if(dt.value){const{code:x,list:G,hasMore:ee}=await t.message.reqHistories({conversationType:pe.value.conversationType,targetId:pe.value.targetId,channelId:pe.value.channelId},0,!0);x===f.ErrorCode.SUCCESS&&(ke.value.length=0,ke.value=L(G),It=ee,dt.value=!1,Ic());return}I.data.forEach(async x=>{vt(pe.value,x)&&(ke.value=L(ke.value,[x]),ke.value.length>300&&ke.value.splice(0,ke.value.length-300),Ic())})},Qh=I=>{It=!0,dt.value=!1,Ls.value=!1,M.value=0,$()};let Ia=null;const xv=(I,x)=>{let G=null;return window&&"ResizeObserver"in window&&I&&(G=new ResizeObserver(x),G.observe(I)),G},Ra=I=>{Ls.value&&I.stopImmediatePropagation()},kv=()=>{F.value&&(gs(),Jo.value=F.value.scrollTop*100/F.value.offsetHeight*Cn.value||0)},Wh=async()=>{F.value&&(await at(),requestAnimationFrame(()=>{if(!F.value)return;const I=F.value,{scrollHeight:x,scrollTop:G,clientHeight:ee}=I,J=x-ee-G;(Xo.value||J<=rE)&&requestAnimationFrame(()=>{if(!F.value)return;const{scrollHeight:Ae,clientHeight:At}=F.value;F.value.scrollTop=Math.max(Ae-At,0),Xo.value=!0})}))};return lt(async()=>{window.addEventListener("click",Ht),window.addEventListener("click",Vn),_e(),window.addEventListener("resize",_e),window.addEventListener("resize",gs),t.addEventListener(ge.CONVERSATION_SELECTED,Qh),t.addEventListener(Z.RECV_NEW_MESSAGES,Kh),t.addEventListener(Z.INSERT_NEW_MESSAGES,zh),t.addEventListener(ge.MESSAGES_DELETED,Bh),t.addEventListener(Z.MESSAGE_STATE_CHANGE,qh),t.addEventListener(Z.FILE_UPLOAD_PROGRESS,jh),t.addEventListener(Z.SPEECH_TO_TEXT_STATE_CHANGE,u),t.addEventListener(Z.ADJUST_MESSAGE_LIST_SCROLL,Wh),$(),U.value=t.bubble.messageBubbleCfg,F.value&&(Ia=xv(F.value,kv))}),wt(()=>{Et.enableScroll(),Ys&&clearTimeout(Ys),t.removeEventListener(ge.CONVERSATION_SELECTED,Qh),t.removeEventListener(Z.RECV_NEW_MESSAGES,Kh),t.removeEventListener(Z.INSERT_NEW_MESSAGES,zh),t.removeEventListener(ge.MESSAGES_DELETED,Bh),t.removeEventListener(Z.MESSAGE_STATE_CHANGE,qh),t.removeEventListener(Z.FILE_UPLOAD_PROGRESS,jh),t.removeEventListener(Z.SPEECH_TO_TEXT_STATE_CHANGE,u),t.removeEventListener(Z.ADJUST_MESSAGE_LIST_SCROLL,Wh),window.removeEventListener("click",Ht),window.removeEventListener("click",Vn),window.removeEventListener("resize",_e),window.removeEventListener("resize",gs),Ov(),F.value&&(Ia==null||Ia.unobserve(F.value))}),(I,x)=>{var er;const G=ve("rc-message-time"),ee=ve("rc-grey-message-provider"),J=ve("rc-icon"),ae=ve("rc-message-sent-status"),Ae=ve("rc-quote-info-view-provider"),At=ve("rc-message-bubble"),Zt=ve("rc-scrollbar-thumb-provider"),Js=ve("rc-message-list-menu-item"),Fn=ve("rc-message-select"),Us=ve("rc-message-location"),Zh=ve("rc-read-receipt-modal");return D(pe)?(R(),P("div",{key:0,class:"rc-kit-msg-list",ref_key:"messageViewportRef",ref:ie},[y("div",{class:"rc-kit-msg-list-scroll",ref_key:"messageListRef",ref:F,onScroll:Sv},[y("div",{ref_key:"messageBoxRef",ref:Sc,style:{padding:"10px"}},[(R(!0),P(Ne,null,kt(_.value,(Ee,Ns)=>{var Yi;return R(),P("div",{class:"rc-kit-msg-list-box",key:p(Ee,Ns)},[typeof Ee!="string"&&Ee.sentStatus!==10&&D(Ls)&&!D(xh)(Ee.messageType)?(R(),P("div",Qm,[y("label",{for:Ee.messageUId||`${Ee.transactionId}`},[ms(y("input",{id:Ee.messageUId||`${Ee.transactionId}`,type:"checkbox","onUpdate:modelValue":x[0]||(x[0]=Yt=>pt(xs)?xs.value=Yt:null),value:Ee.messageUId||`${Ee.transactionId}`},null,8,Zm),[[Ao,D(xs)]]),y("span",Ym,[y("img",{src:D(e1),alt:"CHECKED_ICON"},null,8,Jm)])],8,Wm)])):ue("",!0),typeof Ee=="string"?(R(),xe(G,{key:1,class:"rc-kit-time-section",time:Ee},null,8,["time"])):(R(),P(Ne,{key:2},[D(xh)(Ee.messageType)?(R(),xe(ee,{key:0,class:"rc-kit-grey-message",onClickCapture:x[1]||(x[1]=Yt=>Ra(Yt)),message:Ee},null,8,["message"])):(R(),P("div",{key:1,class:"rc-kit-msg-list-item","data-message-uid":Ee.messageUId,style:rt({"flex-direction":V(Ee)}),onClickCapture:x[2]||(x[2]=Yt=>Ra(Yt)),onMouseenter:Yt=>s.value=Ee.messageUId,onMouseleave:x[3]||(x[3]=Yt=>s.value="")},[O(Ee)?(R(),xe(J,{key:0,class:"rc-kit-msg-avatar",url:m(Ee).portraitUri,width:32,height:32,style:rt({opacity:A(Ee,_.value[Ns-1])?1:0}),radius:50,onClick:Yt=>b(Ee),online:!1},null,8,["url","style","onClick"])):ue("",!0),y("div",{class:Fe(["rc-kit-msg-bubble-wrapper",{"rc-kit-msg-bubble-wrapper-right":X(Ee)}])},[y("div",eE,[D(Nh)(Ee)?(R(),xe(ae,{key:0,class:"rc-kit-msg-sent-status",type:0,message:Ee,onSentStatusClick:Yt=>Qi(Ee,Yt)},null,8,["message","onSentStatusClick"])):ue("",!0),Ie(At,{class:"rc-kit-msg-bubble",showname:T(Ee),align:X(Ee),message:Ee,"message-uid":Ee.messageUId,profile:m(Ee),"is-h5":ce.value,"bubble-color-style":K(Ee,A(Ee,_.value[Ns-1])),"menu-active":Ye.display==="block"&&((Yi=ks.value)==null?void 0:Yi.messageUId)===Ee.messageUId,"is-item-hover":s.value===Ee.messageUId,onSentStatusClick:Yt=>Qi(Ee),onMenuClick:Yt=>as(Ee,Yt),onContextmenu:ys(Yt=>as(Ee,Yt),["prevent"])},{default:gt(()=>[Ee.quoteInfo?(R(),xe(Ae,{key:0,"quote-info":Ee.quoteInfo},null,8,["quote-info"])):ue("",!0),(R(),xe(Dr(D(ya)(Ee.messageType)),{onLink:Av,onClick:Yt=>te(Ee),message:Ee},null,40,["onClick","message"]))]),_:2},1032,["showname","align","message","message-uid","profile","is-h5","bubble-color-style","menu-active","is-item-hover","onSentStatusClick","onMenuClick","onContextmenu"])]),Ee.messageType===D(j.MessageType).HQ_VOICE&&Ee.messageUId&&c(Ee.messageUId)?(R(),P("div",{key:0,class:Fe(["rc-kit-stt-status",{"rc-kit-stt-status-right":X(Ee)}])},[a(Ee.messageUId)==="converting"?(R(),P("div",tE,[...x[6]||(x[6]=[y("div",{class:"rc-kit-stt-loading"},[y("div",{class:"rc-kit-stt-loading-dot"}),y("div",{class:"rc-kit-stt-loading-dot"}),y("div",{class:"rc-kit-stt-loading-dot"})],-1)])])):a(Ee.messageUId)==="error"?(R(),P("div",sE,[Ie(J,{url:D(o1),radius:50,width:16,height:16,class:"rc-kit-stt-error-icon"},null,8,["url"]),y("span",nE,re(r.value[Ee.messageUId]===D(f.ErrorCode).SPEECH_TO_TEXT_MESSAGE_CONTENT_UNSUPPORTED?D(Ze)("message.speech.to.text.unsupported"):D(Ze)("message.speech.to.text.failed")),1)])):a(Ee.messageUId)==="success"?(R(),P("div",iE,re(l(Ee.messageUId)),1)):ue("",!0)],2)):ue("",!0)],2)],44,Xm))],64))])}),128))],512)],544),Wi.value?(R(),xe(Zt,{key:0,onHandlemove:Rv,onMouseenter:Cv,onMouseleave:yv,height:Wi.value,move:Jo.value,scrollheight:(er=F.value)==null?void 0:er.scrollHeight,ratio:Cn.value,style:rt({opacity:Zi.value?1:0,transition:"opacity 0.5s",pointerEvents:Zi.value?"auto":"none"})},null,8,["height","move","scrollheight","ratio","style"])):ue("",!0),ce.value&&Ye.display==="block"?(R(),P("div",{key:1,class:"rc-message-list-menu-mask",onClick:Ht})):ue("",!0),y("div",{class:"rc-message-list-menu",ref_key:"messageMenuRef",ref:Oe,style:rt({top:`${Ye.top}px`,left:`${Ye.left}px`,display:Ye.display})},[Lt.value.length>0?(R(),P("div",oE,[(R(!0),P(Ne,null,kt(Lt.value,Ee=>(R(),xe(Js,{icon:Ee.icon,id:Ee.id,label:Ee.label,onClick:Ns=>tt(Ee.id,Ee.message)},null,8,["icon","id","label","onClick"]))),256))])):ue("",!0)],4),D(Ls)?(R(),xe(Fn,{key:2,class:"rc-kit-select",selected:!!D(zo),onSelect:bv,ref_key:"DOMSelect",ref:Rc},null,8,["selected"])):ue("",!0),D(Pn)>0&&D(dt)?(R(),xe(Us,{key:3,onClickCapture:x[4]||(x[4]=Ee=>Ra(Ee)),count:D(Pn),direction:1,onLocation:wv},null,8,["count"])):ue("",!0),M.value>0&&D(g)?(R(),xe(Us,{key:4,onClickCapture:x[5]||(x[5]=Ee=>Ra(Ee)),count:M.value,direction:0,onLocation:Mv},null,8,["count"])):ue("",!0),Ws.value?(R(),xe(Zh,{key:5,message:w.value,visible:Ws.value,"read-users":H.value,"unread-count":Me.value,"read-count":Se.value,"unread-users":Y.value,"read-loading":se.value,"unread-loading":W.value,position:fe,onClose:Gt,onReadStatusScroll:ps},null,8,["message","visible","read-users","unread-count","read-count","unread-users","read-loading","unread-loading","position"])):ue("",!0)],512)):ue("",!0)}}}),[["styles",[`p{margin:0}ul,li{padding:0;margin:0;list-style:none}.rc-kit-msg-list{position:relative;overflow:hidden;height:100%;box-sizing:border-box}.rc-kit-msg-list-scroll{overflow-y:scroll;overflow-x:hidden;height:100%;scrollbar-width:none;box-sizing:border-box}.rc-kit-msg-list-scroll::-webkit-scrollbar{display:none}.rc-kit-msg-list-item{display:flex;flex:1;min-width:0}.rc-kit-grey-message{flex:1;text-align:center}.rc-kit-msg-avatar{padding:0 8px}.rc-kit-msg-bubble-wrapper{display:flex;flex-direction:column;max-width:70%;align-items:flex-start}.rc-kit-msg-bubble-wrapper-right{align-items:flex-end}.rc-kit-msg-bubble-status-row{display:flex;flex-direction:row;align-items:inherit;gap:4px;position:relative;min-width:0;max-width:100%}.rc-kit-msg-bubble{padding-bottom:10px;border-radius:8px 0;font-size:12px;line-height:16px;overflow:hidden;min-width:0;max-width:100%}@media (max-width: 768px){.rc-kit-msg-bubble{user-select:none;-webkit-user-select:none}}@media (min-width: 768px){.rc-kit-msg-sent-status{position:absolute;bottom:0;left:8px}}.rc-kit-msg-sent-status{width:18px;height:18px;display:flex;align-items:center;justify-content:center;flex-shrink:0;padding-bottom:10px}.rc-kit-stt-status{padding:9px;font-size:14px;line-height:18px;word-break:break-word;display:flex;flex-direction:column;box-sizing:border-box;border-radius:8px;background:#E3E7EF}.rc-kit-stt-status-right{align-items:flex-end;border-radius:8px}.rc-kit-stt-converting{display:flex;align-items:center}.rc-kit-stt-loading{display:block;font-size:0;color:#000;width:54px}.rc-kit-stt-loading .rc-kit-stt-loading-dot{display:inline-block;float:none;background-color:currentColor;border:0 solid currentColor;width:6px;height:6px;margin:4px;border-radius:100%;animation:ball-pulse 1s ease infinite}.rc-kit-stt-loading .rc-kit-stt-loading-dot:nth-child(1){animation-delay:-.2s}.rc-kit-stt-loading .rc-kit-stt-loading-dot:nth-child(2){animation-delay:-.1s}.rc-kit-stt-loading .rc-kit-stt-loading-dot:nth-child(3){animation-delay:0ms}@keyframes ball-pulse{0%,80%,to{transform:scale(0);opacity:.5}40%{transform:scale(1);opacity:1}}.rc-kit-stt-error{display:flex;align-items:center;gap:4px}.rc-kit-stt-error-text{color:#1d2129}.rc-kit-stt-success{color:#333;min-height:18px;line-height:18px;white-space:pre-wrap;display:block}.rc-message-list-menu{position:absolute;top:0;left:0;z-index:3;background-color:#fff;border-radius:9px;box-shadow:0 5px 16px #00000014;min-width:95px}.rc-message-list-menu-mask{position:absolute;top:0;left:0;z-index:2;width:100%;height:100%}.rc-kit-msg-list-box{display:flex;align-items:center}.rc-kit-time-section{width:100%}.rc-kit-msg-list-box .checkbox{margin-right:7px;align-self:flex-start}.rc-kit-msg-list-box .checkbox input[type=checkbox]{display:none}.rc-kit-msg-list-box .checkbox .custom{display:flex;width:16px;height:16px;border:1px solid #ABB8CB;border-radius:50%;background-color:#fff;font-size:0;justify-content:center;align-items:center;cursor:pointer}.rc-kit-msg-list-box .checkbox input[type=checkbox]:checked+.custom{background-color:#16d258;border-color:#16d258}.rc-kit-select{position:absolute;top:150px;left:0;width:100%;box-sizing:border-box;z-index:1}
|
|
370
|
-
`]]]),lE={class:"menu-list"},cE=["onClick"],uE=["src"],dE={class:"emoji-list"},fE=["onClick"],hE=["onClick"],pE=["src","width","height"],gE=Re(Te({__name:"emoji-panel-provider.ce",setup(e,{emit:t}){const s=t,n=ye(),i=N([]),o=n.input.cloneChatEmojiLibrary(),r=N(0),a=me(()=>[{icon:o.icon,index:0}].concat(...i.value.map((c,u)=>({icon:c.icon,index:u+1})))),l=me(()=>{if(r.value===0)return[];const c=i.value[r.value-1],{itemWidth:u,itemHeight:d,items:h}=c;return h.map(p=>({width:u,height:d,thumbnail:p.thumbnail,url:p.url,gif:p.gif}))});return lt(()=>{i.value=n.input.cloneImageEmojiLibraries()}),wt(()=>{}),(c,u)=>(R(),P("div",{class:"emoji-pannel-root",onClick:u[0]||(u[0]=d=>d.stopPropagation())},[y("div",lE,[(R(!0),P(Ne,null,kt(a.value,d=>(R(),P("div",{key:d.index,onClick:h=>r.value=d.index,class:Fe(d.index===r.value?"menu-button menu-button-selected":"menu-button")},[y("img",{src:d.icon,alt:"Emoji"},null,8,uE)],10,cE))),128))]),y("div",dE,[(R(!0),P(Ne,null,kt(D(o).chats,d=>ms((R(),P("div",{class:"chat-emoji-item",onClick:h=>{s("insert-chat",d)}},[y("span",null,re(d),1)],8,fE)),[[Ks,r.value===0]])),256)),r.value>0?(R(!0),P(Ne,{key:0},kt(l.value,(d,h)=>(R(),P("div",{class:"image-emoji-item",onClick:p=>s("send-image",d),key:h,style:rt(`width: ${d.width}px; height: ${d.height}px;`)},[y("img",{src:d.thumbnail,width:d.width,height:d.height,alt:"Emoji"},null,8,pE)],12,hE))),128)):ue("",!0)])]))}}),[["styles",[`.emoji-pannel-root{display:flex;flex-direction:column;width:100%;height:100%}.menu-list{height:48px;display:flex;flex-direction:row;align-items:center;padding:0 8px}.menu-button{width:32px;height:32px;cursor:pointer;border-radius:5px;margin-left:10px}.menu-button-selected{background-color:#e9f0fb}.menu-button img{width:28px;height:28px;margin:2px}.emoji-list{flex:1;overflow:auto;padding:4px 8px}.chat-emoji-item{display:inline-block;font-size:22px;width:30px;height:30px;cursor:pointer;text-align:center;line-height:30px;border-radius:4px}.chat-emoji-item:hover,.image-emoji-item:hover{background-color:#e9f0fb}.image-emoji-item{display:inline-block;padding:6px;border-radius:4px;cursor:pointer}
|
|
371
|
-
`]]]),
|
|
372
|
-
`]]]),
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
`]]]),
|
|
376
|
-
`]]
|
|
377
|
-
`]],["__scopeId","data-v-
|
|
378
|
-
`]]]),
|
|
379
|
-
`]]]),
|
|
380
|
-
`]]]),je={GREY_MESSAGE_PROVIDER:"rc-grey-message-provider",SCROLLBAR_PROVIDER:"rc-scrollbar-provider",SCROLLBAR_THUMB_PROVIDER:"rc-scrollbar-thumb-provider",MODAL_PROVIDER:"rc-modal-provider",MODAL_CONFIRM_PROVIDER:"rc-modal-confirm-provider",MODAL_ALERT_PROVIDER:"rc-modal-alert-provider",MODAL_FORWARDING_PROVIDER:"rc-modal-forwarding-provider",MODAL_DELETE_MESSAGE_PROVIDER:"rc-modal-delete-message-provider",MODAL_MEDIA_MESSAGE_PROVIDER:"rc-modal-media-message-provider",MODAL_COMBINE_MESSAGE_PROVIDER:"rc-modal-combine-message-provider",MODAL_TAKE_PHOTO_PROVIDER:"rc-modal-take-photo-provider",CONVERSATION_LIST_CONTAINER_PROVIDER:"rc-conversation-list-container-provider",CONVERSATION_LIST_PROVIDER:"rc-conversation-list-provider",CONVERSATION_DETAIL_PROVIDER:"rc-conversation-detail-provider",InputProvider:"rc-input-provider",MESSAGLISTPROVIDER:"rc-message-list-provider",CONVERSATION_DETAIL_BAR_PROVIDER:"rc-conversation-detail-bar-provider",EMOJI_PANEL_PROVIDER:"rc-emoji-panel-provider",MULTI_CHOICE_MENU_PROVIDER:"rc-multi-choice-menu-provider",AT_USERS_PANEL_PROVIDER:"rc-at-users-panel-provider",HQ_VOICE_MESSAGE_PROVIDER:"rc-hq-voice-message-privider",FileTransferCtrlProvider:"rc-file-transfer-ctrl-provider",APP_PROVIDER:"rc-imkit-app-provider",TOAST_PROVIDER:"rc-toast-provider",QUOTE_INFO_VIEW_PROVIDER:"rc-quote-info-view-provider"},zE={[je.GREY_MESSAGE_PROVIDER]:TE,[je.SCROLLBAR_PROVIDER]:am,[je.SCROLLBAR_THUMB_PROVIDER]:lm,[je.MODAL_PROVIDER]:j9,[je.MODAL_CONFIRM_PROVIDER]:W9,[je.MODAL_ALERT_PROVIDER]:e7,[je.MODAL_FORWARDING_PROVIDER]:m7,[je.MODAL_DELETE_MESSAGE_PROVIDER]:S7,[je.MODAL_MEDIA_MESSAGE_PROVIDER]:k7,[je.MODAL_TAKE_PHOTO_PROVIDER]:K7,[je.MODAL_COMBINE_MESSAGE_PROVIDER]:rm,[je.CONVERSATION_LIST_PROVIDER]:F9,[je.CONVERSATION_DETAIL_PROVIDER]:$E,[je.CONVERSATION_LIST_CONTAINER_PROVIDER]:qE,[je.InputProvider]:km,[je.MESSAGLISTPROVIDER]:aE,[je.CONVERSATION_DETAIL_BAR_PROVIDER]:jm,[je.EMOJI_PANEL_PROVIDER]:gE,[je.MULTI_CHOICE_MENU_PROVIDER]:_E,[je.AT_USERS_PANEL_PROVIDER]:vE,[je.HQ_VOICE_MESSAGE_PROVIDER]:CE,[je.FileTransferCtrlProvider]:OE,[je.APP_PROVIDER]:KE,[je.TOAST_PROVIDER]:kE,[je.QUOTE_INFO_VIEW_PROVIDER]:VE};let Ke;const gc=N(""),Mh=()=>{gc.value=ye().userId,wr(jo.CURRENT_USER_ID,gc),wr(jo.LANGUAGE,ao(ui))},Oh=N(!0),bh=N(!0);let _c=N(void 0);const pe=N(null),De=N(),Pn=N(0),vn=N([]),Ca=N(),QE=async e=>{const{status:t}=e.data;if(t===f.RCConnectionStatus.CONNECTED){const s=f.getCurrentUserId(),n=await Ke.appData.requestUserProfiles([s]);Ca.value=n[0]}},WE=async e=>{var r;const t=(r=e.data)==null?void 0:r.conversation;if(pe.value=t||null,vn.value.length=0,ye().audioPlayer.pause(),!t)return;const{conversationType:s,targetId:n}=t;if(s!==j.ConversationType.GROUP)return;const i=await Ke.appData.reqGroupMembers(n);if(i.length===0)return;const o=await Ke.appData.requestUserProfiles(i.map(a=>a.userId));!pe.value||!vt(t,pe.value)||vn.value.push(...o.filter(a=>a.userId!==Ke.userId).map(a=>{const l=i.findIndex(c=>c.userId===a.userId);return{userId:a.userId,nickname:i[l].nickname,name:a.name,portraitUri:a.portraitUri}}))},Lh=async()=>{pe.value=null,De.value&&(De.value.value=""),Pn.value=0,vn.value=[],gc.value=ye().userId};function ZE(e){Ke=e,e.logger,Ke.addEventListener(ge.CONVERSATION_SELECTED,WE),Ke.addEventListener(Z.CONNECTION_STATUS_CHANGE,QE),Ke.addEventListener(Z.DESTROY_USER_CACHE,Lh),Ke.addEventListener(Z.CONVERSATION_BAR_SWITCH_CHANGE,t=>{Oh.value=t.data}),Ke.addEventListener(Z.CONVERSATION_DETAIL_BACK_SWITCH_CHANGE,t=>{bh.value=t.data}),Ke.addEventListener(Z.CONVERSATION_BAR_TITLE_CHANGE,t=>{_c.value=t.data,console.log("conversationBarTitle====",_c.value)}),tv(Ke)}const ye=()=>Ke,Nt=N([]),ke=N([]),Ls=N(!1),As=N([]),xs=N([]),zo=N(!0);us(Ls,()=>{As.value=[],xs.value=[],zo.value=!0});const YE=me(()=>As.value.length),ft=N(null),Ah=e=>{const t=e.messageType;if(t===j.MessageType.TextMessage||t===j.MessageType.REFERENCE)return e.content.content;let s=`message-type.${t}`;return a_(s)||(s="message-type.unknown"),Ze(s).value},JE=me(()=>{if(!ft.value)return"";const e=Ah(ft.value);return ft.value.messageType===j.MessageType.FILE?e+` ${ft.value.content.name}`:e}),XE=me(()=>{if(!ft.value)return null;const{messageType:e,content:t}=ft.value;switch(e){case j.MessageType.IMAGE:case j.MessageType.SIGHT:return`data:image/png;base64,${t.content}`}return null}),ev=me(()=>ft.value?Ke.appData.getUserProfile(ft.value.senderUserId).name:""),pi=(e,t)=>{let s=document.body;e.modalContainerId&&document.getElementById(e.modalContainerId)&&(s=document.getElementById(e.modalContainerId)),s.appendChild(t)},tv=e=>{e.addEventListener(ge.CONFIRM_EVENT,t=>{const s=document.createElement(je.MODAL_CONFIRM_PROVIDER);s.addEventListener("cancel",()=>{t.sendResult(!1),s.remove()}),s.addEventListener("confirm",()=>{t.sendResult(!0),s.remove()}),pi(e,s)}),e.addEventListener(ge.ALERT_EVENT,t=>{const s=document.createElement(je.MODAL_ALERT_PROVIDER);s.addEventListener("cancel",n=>{s.remove()}),pi(e,s)}),e.addEventListener(ge.FORWARDING_EVENT,t=>{const s=document.createElement(je.MODAL_FORWARDING_PROVIDER);s.addEventListener("cancel",()=>{t.sendResult({type:Tn.CANCEL}),s.remove()}),s.addEventListener("confirm",n=>{t.sendResult({type:Tn.CONFIRM,list:n.detail[0].list}),s.remove()}),pi(e,s)}),e.addEventListener(ge.DELETE_MESSAGE_MODAL_EVENT,t=>{const s=document.createElement(je.MODAL_DELETE_MESSAGE_PROVIDER);s.addEventListener("cancel",()=>{t.sendResult({type:Tn.CANCEL}),s.remove()}),s.addEventListener("confirm",n=>{t.sendResult({type:Tn.CONFIRM}),s.remove()}),pi(e,s)}),e.addEventListener(ge.MEDIA_MESSAGE_MODAL_EVENT,t=>{var i,o,r,a;const s=document.createElement(je.MODAL_MEDIA_MESSAGE_PROVIDER);s.addEventListener("cancel",l=>{s.remove()}),s.addEventListener("download",l=>{e.emit(new ne(ge.DOWNLOAD_LINK_EVENT,t.data))});const n=((i=t.data.content)==null?void 0:i.sightUrl)||((o=t.data.content)==null?void 0:o.imageUri)||((r=t.data.content)==null?void 0:r.remoteUrl)||((a=t.data.content)==null?void 0:a.fileUrl);s.setAttribute("url",n),s.setAttribute("user-id",t.data.senderUserId),s.setAttribute("sent-time",`${t.data.sentTime}`),s.setAttribute("message-type",`${t.data.messageType}`),s.setAttribute("message-uid",`${t.data.messageUId}`),s.setAttribute("content",`${t.data.content.content}`),pi(e,s)}),e.addEventListener(ge.COMBINE_MESSAGE_MODAL_EVENT,t=>{const s=document.createElement(je.MODAL_COMBINE_MESSAGE_PROVIDER);s.addEventListener("cancel",r=>{e.audioPlayer.pause(),s.remove()}),s.addEventListener("download",r=>{e.emit(new ne(ge.DOWNLOAD_LINK_EVENT,r.detail[0]))});const n=t.data.content.remoteUrl||"";s.setAttribute("url",n);const i=t.data.content||{},o=t.data.messageType||j.MessageType.COMBINE_V2;s.setAttribute("content",JSON.stringify(i)),s.setAttribute("type",o),s.setAttribute("message-uid",`${t.data.messageUId}`),pi(e,s)}),e.addEventListener(ge.TAKE_PHOTO_MODAL_EVENT,t=>{const s=document.createElement(je.MODAL_TAKE_PHOTO_PROVIDER);s.addEventListener("cancel",n=>{s.remove()}),pi(e,s)}),e.addEventListener(ge.MESSAGE_LINK_CLICK,t=>{if(t.data.type==="mail"){location.href=`mailto:${t.data.address}`;return}window.open(t.data.address)}),e.addEventListener(Z.GROUP_MEMBERS_UPDATE,async t=>{if(!pe.value)return;const{groupId:s,members:n}=t.data,{conversationType:i,targetId:o}=pe.value;if(i!==j.ConversationType.GROUP||o!==t.data.groupId)return;const r=await Ke.appData.requestUserProfiles(n.map(a=>a.userId));!pe.value||pe.value.conversationType!==j.ConversationType.GROUP||pe.value.targetId!==s||vn.value.splice(0,vn.value.length,...r.filter(a=>a.userId!==Ke.userId).map((a,l)=>({userId:a.userId,nickname:n[l].nickname,name:a.name,portraitUri:a.portraitUri})))}),e.addEventListener(Z.CONVERSATION_ITEM_CHANGE,t=>{if(!pe.value)return;const s=t.data.find(n=>vt(n,pe.value));s&&(pe.value={...pe.value,...s})})},mc={[j.MessageType.TEXT]:Pe.TEXT_MESSAGE,[j.MessageType.IMAGE]:Pe.IMAGE_MESSAGE,[j.MessageType.SIGHT]:Pe.SIGHT_MESSAGE,[j.MessageType.FILE]:Pe.FILE_MESSAGE,[j.MessageType.REFERENCE]:Pe.REFERENCE_MESSAGE,[j.MessageType.COMBINE]:Pe.COMBINE_V2_MESSAGE,[j.MessageType.COMBINE_V2]:Pe.COMBINE_V2_MESSAGE,[j.MessageType.HQ_VOICE]:je.HQ_VOICE_MESSAGE_PROVIDER,[j.MessageType.GIF]:Pe.GIF_MESSAGE},Ec=new Map,vc=(e,t)=>{Ec.set(e,t)};vc("RC:RcCmd",e=>{if(console.log("message====",e),e.senderUserId===Ke.userId)return Ce("message.list.recall.by.self");const t=Ke.appData.getUserProfile(e.senderUserId).name;return Ce("message.list.recall.by.other",t)}),vc("RC:RcNtf",e=>{if(e.senderUserId===Ke.userId)return Ce("message.list.recall.by.self");const t=Ke.appData.getUserProfile(e.senderUserId).name;return Ce("message.list.recall.by.other",t)});const sv=(e,t)=>{mc[e]=t},ya=e=>mc[e]||"rc-unsupported-message",xh=e=>!mc[e],kh=async(e,t)=>{const s=new ne(ge.FORWARDING_EVENT,e);Ke.emit(s);const{type:n,list:i}=await s.awaitResult();if(n===Tn.CANCEL||!(i instanceof Array)||i.length===0)return!1;const o=i.map(r=>({conversationType:r.conversationType,targetId:r.targetId,channelId:r.channelId}));return e===Gn.SINGLE?o.forEach(r=>Ke.message.forward(r,t.slice())):o.forEach(r=>Ke.message.sendCombineMessage(r,t.slice())),Ke.emit(new ne(ge.TOAST_EVENT,{message:Ke.i18n.format("toast.forward.success"),showIcon:!0})),!0},Uh=async e=>{if(e.length===0)return;const t=e[0],s=new ne(ge.DELETE_MESSAGE_MODAL_EVENT,{messages:e});Ke.emit(s);const{type:n}=await s.awaitResult();n!==Tn.CANCEL&&(Ke.message.deleteMessages(t,e,!1),Ls.value=!1)},nv=async e=>{if(e.length===0)return;const t={conversationType:e[0].conversationType,targetId:e[0].targetId,channelId:e[0].channelId};Ke.message.deleteMessages(t,e,!0)},Nh=e=>{if(!e||e.messageType===j.MessageType.RECALL||e.messageType===j.MessageType.RECALL_NOTIFICATION_MESSAGE)return!1;const t=e.senderUserId===Ke.userId;return!!(Ke.store.getCommandSwitch(Rt.SHOW_MESSAGE_STATE)&&t||(e.sentStatus===j.SentStatus.FAILED||e.sentStatus===j.SentStatus.SENDING)&&t)},Cc=e=>{if(!e)return" ";const{messageType:t,content:s,senderUserId:n}=e;if(t===j.MessageType.TEXT||t===j.MessageType.REFERENCE)return s.content||" ";if(t===j.MessageType.RECALL||t===j.MessageType.RECALL_NOTIFICATION_MESSAGE){if(n===Ke.userId)return Ce("message.list.recall.by.self");const r=Ke.appData.getUserProfile(n).name;return Ce("message.list.recall.by.other",r)}if([j.MessageType.IMAGE,j.MessageType.GIF,j.MessageType.VOICE,j.MessageType.HQ_VOICE,j.MessageType.FILE,j.MessageType.SIGHT,j.MessageType.COMBINE,j.MessageType.COMBINE_V2].includes(t)){const r=`message-type.${t}`;return Ce(r)}if(!Ec.has(t))return Ce("message-type.unknown");const o=Ec.get(t);return me(()=>o(e,ui.value)).value};function Dh(e){return{messageUId:e.messageUId,objectName:e.messageType,senderId:e.senderUserId,status:it.LOADED,quoteMessage:e}}const Qo=30;class iv extends Is{constructor(s){super(s);q(this,"_sendQueue");q(this,"_uploadQueue");q(this,"_transactionIdCount",0);q(this,"_histories",new Map);q(this,"_v5Responded",new Set);q(this,"_messageQueue",[]);q(this,"_messageHandleTimer",null);q(this,"sendFiles",this._sendMultiMediaMessage.bind(this,l2));this._sendQueue=new wp(s),this._uploadQueue=new Mp(s)}_onInit(){f.electronExtension.enable()?(f.addEventListener(f.Events.MESSAGES,this._onRecvElectronMessage,this),this._handleElectronMessages()):f.addEventListener(f.Events.MESSAGES,this._onRecvMessages,this),f.addEventListener(f.Events.MESSAGE_RECEIPT_RESPONSE_V5,this._onV5ReceiptResponse.bind(this))}_onInitUserCache(){}_onDestroyUserCache(){this._histories.clear(),this._transactionIdCount=0,this._messageQueue.length=0,this._messageHandleTimer&&(clearTimeout(this._messageHandleTimer),this._messageHandleTimer=null)}destroy(){this._onDestroyUserCache(),this._sendQueue.destroy(),this._uploadQueue.destroy(),f.removeEventListener(f.Events.MESSAGES,this._onRecvElectronMessage,this),f.removeEventListener(f.Events.MESSAGES,this._onRecvMessages,this)}_createTransactionId(){return++this._transactionIdCount}_getExistCache(s){return this._histories.get(Ct(s))}_getOrCreateCache(s,n,i,o){const r=Ct(s);let a=this._histories.get(r);return a||(a={histories:[],startTime:0,endTime:n===0?f.getServerTime():n,hasMoreAfterEndTime:i,hasMoreBeforeStartTime:o},this._histories.set(r,a)),a}_push2Cache(s,...n){const{histories:i,startTime:o}=s;n.forEach(r=>{const a=i.findIndex(c=>r.messageUId&&c.messageUId?c.messageUId===r.messageUId:r.messageId&&c.messageId?c.messageId===r.messageId:!1);if(a!==-1)i.splice(a,1,r);else{const c=Sn(i,u=>u.sentTime<r.sentTime);c===-1?i.unshift(r):i.splice(c+1,0,r)}const l=r.sentTime+1;s.endTime=s.endTime===0?l:Math.max(s.endTime,l)}),o||(s.startTime=Math.min(...n.map(r=>r.sentTime))-1)}_unshift2Cache(s,...n){const{histories:i}=s;n.forEach(o=>{const r=i.findIndex(l=>l.messageUId===o.messageUId||l.sentTime>o.sentTime);r===-1?i.push(o):i[r].messageUId!==o.messageUId&&i.splice(r,0,o);const a=o.sentTime-1;s.startTime=s.startTime===0?a:Math.min(s.startTime,a)})}_onRecvElectronMessage(s){this._messageQueue.push(...s.messages)}_handleElectronMessages(){this._messageHandleTimer=setTimeout(()=>{if(this._messageQueue.length>0){const s=this._messageQueue.splice(0);this._handleMessages(s)}this._messageHandleTimer=null,this._handleElectronMessages()},60)}_onRecvMessages(s){this._handleMessages(s.messages)}_onV5ReceiptResponse(s){try{if(!s||!Array.isArray(s))return;s.forEach(n=>{const i=Ct(n.identifier);let o=this._histories.get(i);if(!o)return;const r=o.histories.findIndex(l=>l.messageUId===n.messageUId);if(r<0)return;const a={identifier:n.identifier,messageUId:n.messageUId,unreadCount:n.unreadCount,readCount:n.readCount,totalCount:n.totalCount};o.histories[r].kitReadReceiptInfo=a,this.ctx.dispatchEvent(new ne(Z.MESSAGE_STATE_CHANGE,[o.histories[r]]))})}catch(n){this.logger.warn(B.L_V5_RECEIPT_RESPONSE_E,`onV5ReceiptResponse error: ${n}`)}}async _sendReadReceiptMessageV5(s,n){if(this.ctx.readReceiptVersion!==j.GroupReadReceiptVersion.V5)return;const i=n.map(u=>u.messageUId),o=Array.from(new Set((i||[]).filter(Boolean)));if(o.length===0){this.logger.info(B.L_SEND_V5_RECEIPT_T,`sendV5Receipts ids size is 0, messageUIds: ${JSON.stringify(i)}`);return}const r=Ct(s),a=this._histories.get(r);if(!a||!a.histories.length)return;const l=new Set(o.filter(u=>{const d=a.histories.find(_=>_.messageUId===u);if(!d)return!1;const h=d.messageDirection===2,p=!this._v5Responded.has(u)&&d.sendReceipt!==!0&&d.needReceipt;return h&&p}));if(l.size===0){this.logger.info(B.L_SEND_V5_RECEIPT_T,"sendV5Receipts messageUIds size is 0");return}const c=Array.from(l);try{this.logger.info(B.L_SEND_V5_RECEIPT_T,`sendV5Receipts: ${JSON.stringify(c)}`);const u=await f.sendReadReceiptResponseV5(s,c);this.logger.info(B.L_SEND_V5_RECEIPT_R,`sendV5Receipts res: ${JSON.stringify(u)}`),c.forEach(d=>this._v5Responded.add(d)),this._markSendReceiptTrue(s,c)}catch(u){this.logger.warn(B.L_SEND_V5_RECEIPT_E,`sendV5Receipts error: ${u}`)}}_markSendReceiptTrue(s,n){try{if(!n||!n.length)return;const i=Ct(s),o=this._histories.get(i);if(!o)return;const r=new Set(n);o.histories.forEach(a=>{a.messageUId&&r.has(a.messageUId)&&(a.sendReceipt=!0)})}catch(i){this.logger.warn(B.L_SEND_V5_RECEIPT_E,`markSendReceiptTrue error: ${i}`)}}_handleMessages(s){const n=[];let i=[];s.forEach(async r=>{const a=Ei(r);if(f.electronExtension.enable()&&a.messageType===f.MessageType.RECALL&&(r.isPersited=!0),!r.isPersited||Hn(r)){n.push(a);return}if(a.messageType===f.MessageType.RECALL){const{messageUId:l}=a.content;let c=i.findIndex(u=>u.messageUId===l);if(c!==-1){i.splice(c,1,a);return}}i.push(a)}),i=this._handleNotifiedUIMessaages(i),i.filter(r=>r.messageType!==f.MessageType.RECALL).length&&this.ctx.dispatchEvent(new ne(Z.RECV_NEW_MESSAGES,i)),n.length&&this.ctx.emit(new ne(ge.UNSCHEDULED_MESSAGES,n))}_handleNotifiedUIMessaages(s){const n=new Map,i=new Set,o=new Set;return s.forEach(r=>{const a=Ct(r),l=this._getOrCreateCache(r,r.sentTime+1,!1,!0);let c;if(n.has(a))c=n.get(a).messages;else{c=[];const u={targetId:r.targetId,conversationType:r.conversationType,channelId:r.channelId};n.set(a,{conversation:u,messages:c})}if(r.messageType===f.MessageType.RECALL&&l.histories.length>0){const u=r.content.messageUId;o.add(u),i.add(l);const d=l.histories.findIndex(h=>h.messageUId===u);if(d!==-1){const[h]=l.histories.splice(d,1,r);r.sentTime=h.sentTime,this.ctx.emit(new ne(ge.MESSAGES_DELETED,[{target:h,recallMsg:r}]),1);return}}!l.hasMoreAfterEndTime&&r.messageType!==f.MessageType.RECALL&&(this._push2Cache(l,r),c.push(r))}),Array.from(n.entries()).forEach(([r,a])=>{this._checkAndFillQuoteInfo(a.conversation,a.messages)}),i.size>0&&[...i.values()].forEach(r=>{const a=r.histories.filter(l=>l.quoteInfo&&o.has(l.quoteInfo.messageUId));a.length!==0&&(a.forEach(l=>{l.quoteInfo.status=it.RECALLED,delete l.quoteInfo.quoteMessage}),this.ctx.dispatchEvent(new ne(Z.MESSAGE_STATE_CHANGE,a)))}),s}_ifTimeCoincides(s,n){return s.endTime>=n&&s.startTime<=n}async _requestHistoriesFromLib(s,n,i){const o=await f.getHistoryMessages(s,{timestamp:n,count:Qo,order:i?0:1});if(!o.isOk)return{code:o.code,hasMore:!0,list:[]};const{list:r,hasMore:a}=o.data;let l=await this._handleTransIAReceivedMessages(r,s);const c=this._getOrCreateCache(s,n,n!==0,!0);return!i&&n!==0&&c.startTime>n&&(c.startTime=n-1),(this._ifTimeCoincides(c,n)||r.length&&(this._ifTimeCoincides(c,r[0].sentTime)||this._ifTimeCoincides(c,r[r.length-1].sentTime)))&&(i?(l=l.reverse(),this._unshift2Cache(c,...l),c.hasMoreBeforeStartTime=a):(this._push2Cache(c,...l),c.hasMoreAfterEndTime=a)),{hasMore:a,list:l,code:f.ErrorCode.SUCCESS}}async _handleTransIAReceivedMessages(s,n){const i=s.map(o=>Ei(o));return this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5?await this._handleReadReceiptV5(n,i):i}async _handleReadReceiptV5(s,n){if(n.length===0)return[];try{const i=n.filter(a=>a.senderUserId===this.ctx.userId);if(i.length===0)return n;const o=i.map(a=>a.messageUId),{data:r}=await f.getMessageReadReceiptInfoV5(s,o);r&&r.length>0&&r.forEach(a=>{const l=n.findIndex(c=>c.messageUId===a.messageUId);l>-1&&(n[l].kitReadReceiptInfo=a)})}catch(i){this.logger.warn(B.L_HANDLE_READ_RECEIPT_V5_E,`_handleReadReceiptV5 error: ${i}`)}return n}async _reqHistoriesHandler(s,n=0,i=!0){var _;const o=this._getOrCreateCache(s,n,n!==0,!0),{histories:r,hasMoreAfterEndTime:a,hasMoreBeforeStartTime:l,startTime:c,endTime:u}=o;if(!a&&n===0&&i){const m=((_=r[r.length-1])==null?void 0:_.sentTime)||0;m>u&&(o.endTime=m+1),n=o.endTime}if(!this._ifTimeCoincides(o,n))return this._requestHistoriesFromLib(s,n,i);let d;if(i){const m=Sn(r,b=>b.sentTime<n);d=r.slice(0,m+1)}else{const m=r.findIndex(b=>b.sentTime>n);d=r.slice(m)}const h=i?l:a;if(d.length<Qo)return await this._reqHasMoreHistories(h,c,u,i,s,n,d);let p=i?d.slice(d.length-Qo):d.slice(0,Qo);return this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5&&s.conversationType===f.ConversationType.GROUP&&(await this._handleReadReceiptV5(s,p),p.forEach(m=>{const b=o.histories.findIndex(M=>M.messageUId===m.messageUId);b>-1&&m.kitReadReceiptInfo&&(o.histories[b].kitReadReceiptInfo=m.kitReadReceiptInfo)})),{hasMore:h||d.length>Qo,list:p,code:f.ErrorCode.SUCCESS}}async _reqHasMoreHistories(s,n,i,o,r,a=0,l=[]){if(s){const c=n===0?0:n+1,u=i===0?0:i-1,d=o?c:u,{code:h}=await this._requestHistoriesFromLib(r,d,o);return h===f.ErrorCode.SUCCESS?this._reqHistoriesHandler(r,a,o):{hasMore:s,list:l,code:h}}return{hasMore:s,list:l,code:f.ErrorCode.SUCCESS}}async reqHistories(s,n=0,i=!0){const o=await this._reqHistoriesHandler(s,n,i);return this._checkAndFillQuoteInfo(s,o.list),o}async sendMessage(s,n,i,o){if(Hn(s)||!Oc(s))return{code:Ps.INVALID_CONVERSATION};const r=this._createTransactionId();if(this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5){const u=[f.ConversationType.PRIVATE,f.ConversationType.GROUP].includes(s.conversationType),d=i==null?void 0:i.directionalUserIdList,h=Array.isArray(d)&&d.length>0,p=(i==null?void 0:i.isStatusMessage)===!0,_=n.isPersited!==!1;u&&!h&&!p&&_&&(i={needReceipt:!0,...i||{}})}const a=this._transBaseMessage2CachedMessage(s,n,r,i);if(o&&(i!=null&&i.quoteInfo)&&(a.quoteInfo=Dh(o)),j.isObject(a.content))try{a.content=Ma(a.content)}catch(u){this.logger.warn(B.A_SEND_MESSAGE_E,u.message)}if(a.isPersited){const u=this._getOrCreateCache(s,a.sentTime+1,!1,!0);u.hasMoreAfterEndTime&&(u.histories.length=0,u.startTime=a.sentTime,u.hasMoreBeforeStartTime=!0,u.hasMoreAfterEndTime=!1),this._push2Cache(u,a),this.ctx.dispatchEvent(new ne(Z.INSERT_NEW_MESSAGES,[a]))}const{code:l,data:c}=await this._sendQueue.push({conversation:s,message:a,options:i,transactionId:a.transactionId});return l!==f.ErrorCode.SUCCESS?a.sentStatus=f.SentStatus.FAILED:(this._updateCachedMessage(a,c),this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5&&a.conversationType===f.ConversationType.GROUP&&await this._handleReadReceiptV5(s,[a])),a.isPersited&&this.ctx.dispatchEvent(new ne(Z.MESSAGE_STATE_CHANGE,[a])),{code:l,message:c}}_updateCachedMessage(s,n){const{sentStatus:i,sentTime:o,messageUId:r,messageId:a}=n;s.sentStatus=i,s.sentTime=o,s.messageUId=r,s.messageId=a}async _sendMultiMediaMessage(s,n,i){if(i.length>99){this.ctx.alert("alert.pickfiles.maxcount","99");return}const o=[],r=[];for(let p of i)p.size>100*1024*1024||p.size===0?o.push(p):r.push(p);if(o.length>0&&this.ctx.emit(new ne(ge.FILE_SEND_FAILED_EVENT,o)),r.length===0)return;const a=await Promise.all(r.map(async p=>{const _=await s(p),m=this._transBaseMessage2CachedMessage(n,_,this._createTransactionId());return m.file=p,m.progress=0,m})),l=ft.value;a.length===1&&this.ctx.isQuoteMessageV2Enabled&&l&&this.ctx.input.isQuoteInfoEnabledForMessageType(a[0].messageType)&&(a[0].quoteInfo=Dh(l),ft.value=null);const c=this.ctx.status!==f.RCConnectionStatus.CONNECTED;c&&a.forEach(p=>{p.progress=-1,p.sentStatus=f.SentStatus.FAILED});const u=a[0],d=this._getOrCreateCache(n,u.sentTime+1,!1,!0);if(d.hasMoreAfterEndTime&&(d.histories.length=0,d.startTime=u.sentTime+1,d.hasMoreBeforeStartTime=!0,d.hasMoreAfterEndTime=!1),this._push2Cache(d,...a),this.ctx.dispatchEvent(new ne(Z.INSERT_NEW_MESSAGES,a)),c)return;const h=a.map(p=>this._uploadQueue.push({message:p,transactionId:p.transactionId}));for(let p of h){const{code:_,data:m}=await p,{message:b}=m;if(d.histories.findIndex(g=>g.transactionId===b.transactionId)===-1)continue;if(_!==f.ErrorCode.SUCCESS){b.progress=-1,b.sentStatus=f.SentStatus.FAILED,this.ctx.dispatchEvent(new ne(Z.MESSAGE_STATE_CHANGE,[b]));continue}const C=m.httpUrl;b.file=void 0,this._updateHttpUrl(b,C),this._push2SendQueue(b,b)}}_updateHttpUrl(s,n){switch(s.messageType){case f.MessageType.IMAGE:s.content.imageUri=n;break;case f.MessageType.GIF:s.content.remoteUrl=n;break;case f.MessageType.SIGHT:s.content.sightUrl=n;break;case f.MessageType.COMBINE_V2:s.content.remoteUrl=n;break;default:s.content.fileUrl=n;break}}async insertMessage(s,n,i){if(Hn(s)||!Oc(s))return{code:Ps.INVALID_CONVERSATION};const o=this._createTransactionId(),r=this._transBaseMessage2CachedMessage(s,n,o);if(r.isPersited){const a=this._getOrCreateCache(s,r.sentTime+1,!0,!0);let l=Sn(a.histories,c=>c.messageUId===r.messageUId||c.messageId===r.messageId);l!==-1?a.histories.splice(l,1,r):(l=Sn(a.histories,c=>c.sentTime<=r.sentTime),l===-1?a.histories.unshift(r):a.histories.splice(l,0,r)),this.ctx.dispatchEvent(new ne(Z.INSERT_NEW_MESSAGES,[r]))}if(f.electronExtension.enable()){const{code:a,data:l}=await f.electronExtension.insertMessage(s,r,i);return a===f.ErrorCode.SUCCESS&&(r.messageId=l.messageId),{code:a,message:r}}return{code:f.ErrorCode.SUCCESS,message:r}}_transBaseMessage2CachedMessage(s,n,i,o){const{conversationType:r,targetId:a,channelId:l}=s,{isCounted:c,isPersited:u,content:d,messageType:h}=n,p=this.ctx.userId;let _;if(h===f.MessageType.REFERENCE){const{referMsgUserId:b}=d,M=b!==p?j.MessageDirection.RECEIVE:j.MessageDirection.SEND;_=Ac(d,s,M)}else o!=null&&o.quoteInfo&&(_=Lc(o.quoteInfo));const m={transactionId:i,targetId:a,conversationType:r,messageDirection:1,messageType:h,sentTime:f.getServerTime(),isStatusMessage:o==null?void 0:o.isStatusMessage,isCounted:c,isPersited:u,content:d,channelId:l||"",senderUserId:p,receivedTime:0,messageUId:"",sentStatus:f.SentStatus.SENDING,isOffLineMessage:!1,canIncludeExpansion:(o==null?void 0:o.canIncludeExpansion)||!1,receivedStatus:0,isMentioned:o==null?void 0:o.isMentioned,expansion:o==null?void 0:o.expansion,quoteInfo:_};return this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5&&(m.kitReadReceiptInfo=void 0),m}async deleteMessages(s,n,i){if(n.length===0)return;const o=[],r=[],a=[];n.forEach(u=>{u.messageUId?(o.push(u),a.push(u.messageUId)):u.sentStatus===f.SentStatus.FAILED&&r.push(u)});const l=this._getExistCache(s),c=[];if(o.length){const{recallList:u}=await this._handleSentList(i,l,o,s);c.push(...u)}if(r.length&&l&&l.histories.length&&r.forEach(u=>{const d=l.histories.findIndex(h=>h.messageUId?h.messageUId===u.messageUId:h.transactionId===u.transactionId);if(d!==-1){const[h]=l.histories.splice(d,1);c.push({target:h})}}),c.length&&this.ctx.dispatchEvent(new ne(ge.MESSAGES_DELETED,c)),a.length&&l){const u=l.histories.filter(h=>h.quoteInfo&&a.includes(h.quoteInfo.messageUId));if(u.length===0)return;const d=i?it.RECALLED:it.DELETED;u.forEach(({quoteInfo:h})=>{delete h.quoteMessage,h.status=d}),this.ctx.dispatchEvent(new ne(Z.MESSAGE_STATE_CHANGE,u))}}getAllowedToRecallTime(){return this.ctx.allowedToRecallTime}async _handleSentList(s,n,i,o){const r=[],a=[],l=[];return s?(await Promise.all(i.map(u=>f.recallMessage(o,{messageUId:u.messageUId,sentTime:u.sentTime,isDelete:!1})))).forEach((u,d)=>{if(u.code===f.ErrorCode.SUCCESS){r.push(i[d]);return}a.push(i[d])}):(await f.deleteMessages(o,i.map(u=>({messageUId:u.messageUId,sentTime:u.sentTime,messageDirection:u.messageDirection})))).code===f.ErrorCode.SUCCESS?r.push(...i):a.push(...i),r.length&&n&&n.histories.length&&r.forEach(c=>{const u=n.histories.findIndex(d=>d.messageUId===c.messageUId);if(s){const d=this._trans2RecallMessage(c),[h]=n.histories.splice(u,1,d);l.push({target:h,recallMsg:d})}else{const[d]=n.histories.splice(u,1);l.push({target:d})}}),a.length&&this.ctx.alert("alert.delete.messages.partial.failure",a.length),{recallList:l}}_trans2RecallMessage(s){return{...s,messageType:f.MessageType.RECALL,content:{messageUid:s.messageUId,sentTime:s.sentTime,targetId:s.targetId,conversationType:s.conversationType,channelId:s.channelId},isMentioned:!1}}async forward(s,n){if(n.length===0)return;const{conversationType:i,targetId:o,channelId:r}=s,a=f.getServerTime(),l=n.map(u=>{const d={...u};return u.content.mentionedInfo&&delete u.content.mentionedInfo,delete d.quoteInfo,d.content=u.content,d.messageUId="",d.transactionId=this._createTransactionId(),d.conversationType=i,d.targetId=o,d.channelId=r||"",d.sentStatus=f.SentStatus.SENDING,d.messageDirection=1,d.sentTime=a,d.senderUserId=this.ctx.userId,d.readReceiptInfo&&delete d.readReceiptInfo,d.kitReadReceiptInfo&&(d.kitReadReceiptInfo=void 0),d}),c=this._getOrCreateCache(s,a+1,!1,!0);this._push2Cache(c,...l),this.ctx.dispatchEvent(new ne(Z.INSERT_NEW_MESSAGES,l)),l.forEach(u=>this._push2SendQueue(s,u))}async sendCombineMessage(s,n){if(n.length===0||Hn(s))return;const{conversationType:i,targetId:o}=n[0],r=[],a=this.ctx.userId,l=this.ctx.appData.getUserProfile(a).name,c=[];if(i===f.ConversationType.PRIVATE){const p=n.findIndex(m=>m.senderUserId===a),_=n.findIndex(m=>m.senderUserId!==a);p>-1&&c.push(l),_>-1&&c.push(this.ctx.appData.getUserProfile(o).name)}else c.push(this.ctx.appData.getGroupProfile(o).name);const u=n.map((p,_)=>{const m=p.content;delete m.user,delete m.extra,delete m.mentionedInfo;const{targetId:b,sentTime:M,messageType:C,senderUserId:g}=p;if(_<4){const E=this.ctx.appData.getUserProfile(g).name;let v=Ah(p);if(C===f.MessageType.FILE){const L=p.content.name;v=`${v}${L}`}r.push(`${E}: ${v}`.substring(0,1e3))}return{targetId:b,timestamp:M,objectName:C,content:m,fromUserId:g}}),d={summaryList:r,nameList:c,conversationType:i,msgNum:u.length},h=JSON.stringify(u);if(h.length>=120*1024){const p=`${Date.now()}-${Math.floor(Math.random()*Date.now())}.json`;d.jsonMsgKey=p;const _=new File([h],p,{type:"application/json"});this._sendMultiMediaMessage(async m=>new f.CombineV2Message(d),s,[_])}else d.msgList=u,this.sendMessage(s,new f.CombineV2Message(d))}async _push2SendQueue(s,n){const{code:i,data:o}=await this._sendQueue.push({conversation:s,message:n,transactionId:n.transactionId});if(i!==f.ErrorCode.SUCCESS)n.sentStatus=f.SentStatus.FAILED;else{const r=n.sentTime;if(this._updateCachedMessage(n,o),n.sentTime!==r){const a=this._getExistCache(s);if(a){const l=a.histories.findIndex(c=>c.transactionId===n.transactionId);if(l!==-1){a.histories.splice(l,1);const c=Sn(a.histories,u=>u.sentTime<=n.sentTime);a.histories.splice(c+1,0,n)}}}}this.ctx.dispatchEvent(new ne(Z.MESSAGE_STATE_CHANGE,[n]))}removeCachedMessages(s){this._histories.delete(Ct(s))}cancelMessageSent(s){const{transactionId:n,conversationType:i,targetId:o,channelId:r}=s,a={conversationType:i,targetId:o,channelId:r},l=this._getExistCache(a);if(!l)return;const c=l.histories.findIndex(d=>d.transactionId===n),u=l.histories[c];!u||u.sentStatus!==f.SentStatus.SENDING||typeof u.transactionId!="number"||(l.histories.splice(c,1),this.ctx.dispatchEvent(new ne(ge.MESSAGES_DELETED,[{target:s}])),this._uploadQueue.remove(n)||this._sendQueue.remove(n))}async resendMessage(s){const{transactionId:n,conversationType:i,targetId:o,channelId:r}=s,a={conversationType:i,targetId:o,channelId:r},l=this._getExistCache(a);if(!l)return;const c=l.histories.find(u=>u.transactionId===n);if(!(!c||c.sentStatus!==f.SentStatus.FAILED||typeof n!="number")){if(c.sentStatus=f.SentStatus.SENDING,c.file&&c.progress!==100){c.progress=0,this.ctx.emit(new ne(Z.MESSAGE_STATE_CHANGE,[c]));const{code:u,data:d}=await this._uploadQueue.push({message:c,transactionId:n});if(u!==f.ErrorCode.SUCCESS){c.sentStatus=f.SentStatus.FAILED,c.progress=-1,this.ctx.emit(new ne(Z.MESSAGE_STATE_CHANGE,[c]));return}c.file=void 0,this._updateHttpUrl(c,d.httpUrl)}this._push2SendQueue(c,c)}}async sendReadReceiptMessage(s,n){this.ctx.readReceiptVersion===j.GroupReadReceiptVersion.V5&&this._sendReadReceiptMessageV5(s,n)}getConversationLatestMessage(s){const n=this._getExistCache(s);if(!n)return null;const i=n.histories.length;return n.histories[i-1]}async getMessagesReadReceiptUsersByPageV5(s,n,i){if(this.ctx.readReceiptVersion!==j.GroupReadReceiptVersion.V5)return{code:f.ErrorCode.SUCCESS,data:null};try{const o=i.type==="read"?0:1,r={pageToken:i.pageToken,pageCount:i.count||20,readStatus:o,order:0};return await f.getMessagesReadReceiptUsersByPageV5(s,n,r)}catch(o){return this.logger.warn(B.L_GET_READ_RECEIPT_INFO_V5_E,`getMessagesReadReceiptUsersByPageV5 error: ${o}`),{code:f.ErrorCode.SUCCESS,data:null}}}_checkAndFillQuoteInfo(s,n){const i=n.filter(o=>{const{quoteInfo:r}=o;if(!r||o.messageType===f.MessageType.REFERENCE)return;const{status:a}=r;return a===it.LOADING||a===it.LOAD_ERROR});i.length!==0&&this._queryQuoteMessage(s,i)}async _queryQuoteMessage(s,n){if(n.length===0)return;const i=n.slice(0,20),o=await f.getMessagesByUIds({conversationIdentifier:s,messageUIds:i.map(a=>a.quoteInfo.messageUId)});if(!o.isOk)return i.forEach(a=>{a.quoteInfo.status=it.LOAD_ERROR}),this.ctx.dispatchEvent(new ne(Z.MESSAGE_STATE_CHANGE,i)),this._queryQuoteMessage(s,n.slice(20));const r=o.data;return i.forEach(a=>{const{code:l,message:c}=r.find(u=>u.messageUId===a.quoteInfo.messageUId);l===f.ErrorCode.SUCCESS&&c?c.messageType!==f.MessageType.RECALL_NOTIFICATION_MESSAGE?(a.quoteInfo.quoteMessage=c,a.quoteInfo.status=it.LOADED):a.quoteInfo.status=it.RECALLED:l===f.ErrorCode.RC_DB_DATA_NOT_FOUND?a.quoteInfo.status=it.DELETED:a.quoteInfo.status=it.LOAD_ERROR}),this.ctx.dispatchEvent(new ne(Z.MESSAGE_STATE_CHANGE,i)),this._queryQuoteMessage(s,n.slice(20))}}var Ph=(e=>(e.ADD_TOP="conversation.menu.item.add_top",e.REMOVE_TOP="conversation.menu.item.remove_top",e.MUTE="conversation.menu.item.mute",e.UNMUTE="conversation.menu.item.unmute",e.MARK_READ="conversation.menu.item.mark_read",e.MARK_UNREAD="conversation.menu.item.mark_unread",e.REMOVE="conversation.menu.item.remove",e))(Ph||{});const Vh=[{id:"conversation.menu.item.add_top",icon:W0,filter:e=>!e.isTop},{id:"conversation.menu.item.remove_top",icon:Z0,filter:e=>e.isTop},{id:"conversation.menu.item.mute",icon:J0,filter:e=>e.notificationLevel!==j.NotificationLevel.NOT_MESSAGE_NOTIFICATION},{id:"conversation.menu.item.unmute",icon:Y0,filter(e){return e.notificationLevel===j.NotificationLevel.NOT_MESSAGE_NOTIFICATION}},{id:"conversation.menu.item.remove",icon:X0}],Sa=e=>e.map(t=>({...t}));class ov extends Is{constructor(){super(...arguments);q(this,"_menu",Sa(Vh))}_onInit(){this.ctx.addEventListener(ge.CONVERSATION_MENU_ITEM_CLICK,this._onMenuItemClick,this)}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this._menu=Sa(Vh)}_onMenuItemClick(s){const{id:n,conversation:i}=s.data;switch(n){case"conversation.menu.item.add_top":this.ctx.conversation.setConversationToTop(i,!0);break;case"conversation.menu.item.remove_top":this.ctx.conversation.setConversationToTop(i,!1);break;case"conversation.menu.item.mute":this.ctx.conversation.setConversationNotificationLevel(i,j.NotificationLevel.NOT_MESSAGE_NOTIFICATION);break;case"conversation.menu.item.unmute":this.ctx.conversation.setConversationNotificationLevel(i,j.NotificationLevel.ALL_MESSAGE);break;case"conversation.menu.item.mark_read":this.ctx.conversation.markConversationReaded(i);break;case"conversation.menu.item.mark_unread":this.ctx.conversation.markConversationUnread(i);break;case"conversation.menu.item.remove":this.ctx.conversation.removeConversation(i);break}}getMenum(s){return this._menu.filter(n=>!n.filter||n.filter(s))}cloneConversationMenu(){return Sa(this._menu)}setConversationMenu(s){this._menu=Sa(s)}}class rv extends Is{constructor(){super(...arguments);q(this,"_audio",new Audio);q(this,"_status","stopped");q(this,"_progress",0);q(this,"_messageUId","");q(this,"_transactionId",0);q(this,"_onError",()=>{this._progress=0,this._status="stopped",this._dispatch()});q(this,"_onTimeUpdate",()=>{const{currentTime:s,duration:n}=this._audio;this._progress=Math.floor(s/n*100),this._status!=="stopped"&&this._dispatch()});q(this,"_onEnded",()=>{this._progress=100,this._status="stopped",this._dispatch()})}_onInitUserCache(){this._audio.addEventListener("ended",this._onEnded),this._audio.addEventListener("timeupdate",this._onTimeUpdate),this._audio.addEventListener("error",this._onError)}_onDestroyUserCache(){this._audio.removeEventListener("ended",this._onEnded),this._audio.removeEventListener("timeupdate",this._onTimeUpdate),this._audio.addEventListener("error",this._onError)}destroy(){throw new Error("Method not implemented.")}getCurrentState(){return{progress:this._progress,status:this._status,messageUId:this._messageUId,transactionId:this._transactionId}}_dispatch(){this.ctx.dispatchEvent(new ne(Z.AUDIO_PLAY_EVENT,this.getCurrentState()),!1)}play(s,n,i){if(this._messageUId&&this._messageUId===n||this._transactionId&&this._transactionId===i){this._status==="stopped"&&(this._audio.play(),this._status="playing",this._onTimeUpdate());return}this._status="playing",this._messageUId=n,this._transactionId=0,this._progress=0,this._audio.src=s,this._audio.play(),this._dispatch()}stop(){this._status="stopped",this._messageUId="",this._transactionId=0,this._progress=0,this._audio.src&&(this._audio.pause(),this._audio.src=""),this._dispatch()}pause(){this._status!=="stopped"&&(this._status="stopped",this._audio.pause(),this._dispatch())}}const zi=class zi{constructor(t,s){q(this,"cache",new Map);q(this,"convertingTTSList",new Set);q(this,"errorTTSList",new Set);q(this,"timers",new Map);Ji(this,Zo,t=>{var s,n,i,o;try{const{code:r,messageUId:a,sttInfo:l}=t||{};(s=this.logger)==null||s.info(B.L_STT_RESPONSE_R,`[STT] response: ${a}, code: ${r}`);const c=this.timers.get(a);if(c&&(clearTimeout(c),this.timers.delete(a)),r===f.ErrorCode.SUCCESS){const u=l.text;for(this.cache.set(a,u);this.cache.size>zi.MAX_CACHE_SIZE;){const d=this.cache.keys().next().value||"";this.cache.delete(d)}this.errorTTSList.delete(a),this.convertingTTSList.delete(a),(n=this.logger)==null||n.info(B.L_STT_RESPONSE_O,`[STT] success: ${a}`),this.dispatchStateChange(a,"success",u)}else this.convertingTTSList.delete(a),this.errorTTSList.add(a),(i=this.logger)==null||i.warn(B.L_STT_RESPONSE_E,`[STT] failed: code=${r}, uid=${a}`),this.dispatchStateChange(a,"error")}catch(r){(o=this.logger)==null||o.warn(B.L_STT_RESPONSE_E,`[STT] exception: ${r}`)}});this.logger=t,this.eventDispatcher=s,f.addEventListener(f.Events.SPEECH_TO_TEXT_RESPONSE,yn(this,Zo))}dispatchStateChange(t,s,n,i){this.eventDispatcher&&this.eventDispatcher.dispatchEvent(new ne(Z.SPEECH_TO_TEXT_STATE_CHANGE,{messageUId:t,status:s,text:n,errorCode:i}))}getSTTText(t){return this.cache.get(t)}isConverting(t){return this.convertingTTSList.has(t)}hasError(t){return this.errorTTSList.has(t)}hasConverted(t){return this.cache.has(t)}async requestForMessage(t){var i,o,r,a;const{messageUId:s}=t;if(this.cache.has(s)||this.convertingTTSList.has(s))return f.ErrorCode.SUCCESS;this.errorTTSList.delete(s),this.convertingTTSList.add(s),this.dispatchStateChange(s,"converting");const n={messageType:f.MessageType.HQ_VOICE,remoteUrl:t.content.remoteUrl,duration:t.content.duration,sampleRate:t.content.sampleRate,numberOfChannels:t.content.numberOfChannels};try{(i=this.logger)==null||i.info(B.L_STT_REQUEST_T,`[STT] request: ${s}, opts: ${JSON.stringify(n)}`);const{code:l,msg:c}=await f.requestSpeechToTextForMessage(s,n);if((o=this.logger)==null||o.info(B.L_STT_REQUEST_R,`[STT] request response: ${s}, code: ${l}`),l===f.ErrorCode.SUCCESS){const u=setTimeout(()=>{var d;this.timers.delete(s),this.convertingTTSList.has(s)&&(this.convertingTTSList.delete(s),this.errorTTSList.add(s),(d=this.logger)==null||d.warn(B.D,`[STT] timeout: ${s}`),this.dispatchStateChange(s,"error"))},zi.REQUEST_TIMEOUT);this.timers.set(s,u)}else this.convertingTTSList.delete(s),this.errorTTSList.add(s),(r=this.logger)==null||r.warn(B.L_STT_REQUEST_E,`[STT] request failed: code=${l}, uid=${s}, msg=${c}`),this.dispatchStateChange(s,"error",void 0,l);return l}catch(l){return this.convertingTTSList.delete(s),this.errorTTSList.add(s),(a=this.logger)==null||a.warn(B.L_STT_REQUEST_E,`[STT] request exception: ${l}`),this.dispatchStateChange(s,"error"),-1}}clearMemoryData(){this.cache.clear(),this.convertingTTSList.clear(),this.errorTTSList.clear(),this.timers.forEach(t=>clearTimeout(t)),this.timers.clear()}destroy(){f.removeEventListener(f.Events.SPEECH_TO_TEXT_RESPONSE,yn(this,Zo)),this.clearMemoryData()}};Zo=new WeakMap,q(zi,"MAX_CACHE_SIZE",200),q(zi,"REQUEST_TIMEOUT",3e4);let yc=zi;var ut=(e=>(e[e.NONE=0]="NONE",e[e.AT_ALL=1]="AT_ALL",e[e.AT_ME=2]="AT_ME",e))(ut||{});const av=30002;class lv extends Is{constructor(){super(...arguments);Ji(this,Ta);q(this,"_list",[]);q(this,"_messageQueue",[]);q(this,"_converNtfQueue",[]);q(this,"_pool",new Map);q(this,"_getRemoteConversationTimer",null);q(this,"_pullOfflineMessageFinished",!1);Ji(this,gi,new Map);Ji(this,_i,!1);Ji(this,Yo,!1);q(this,"_openedConversation",null);q(this,"_getRemoteConversationFinished",!1);q(this,"_handleQueueTimer");q(this,"_typingTime",null)}getOpenedConversation(){return this._openedConversation}setOpenedConversation(s,n=!0){this._setOpenedConversation(s,n)}_createCachedConversation(s){const n=Ct(s);if(this._pool.has(n))return this._pool.get(n);const i={key:n,targetId:s.targetId,conversationType:s.conversationType,channelId:s.channelId||"",name:"",portraitUri:"",draft:"",latestMessage:null,isTop:!1,notificationLevel:f.NotificationLevel.ALL_MESSAGE,unreadCount:0,updateTime:0,online:!1,memberCount:0,mentionedType:0,markReaded:!1,markUnread:!1};return this._pool.set(n,i),i}_onInit(){this.ctx.addEventListener(Z.USER_PROFILES_UPDATE,this._onUserProfilesUpdate,this),this.ctx.addEventListener(Z.GROUP_PROFILES_UPDATE,this._onGroupProfilesUpdate,this),this.ctx.addEventListener(Z.SYSTEM_PROFILES_UPDATE,this._onSystemProfilesUpdate,this),this.ctx.addEventListener(Z.INSERT_NEW_MESSAGES,this._onInsertNewMessages,this),this.ctx.addEventListener(ge.MESSAGES_DELETED,this._onDeleteMessages,this),this.ctx.addEventListener(Z.MESSAGE_STATE_CHANGE,this._onMessageStateChange,this),f.addEventListener(f.Events.SYNC_READ_STATUS,this._onSyncReadStatus,this),f.addEventListener(f.Events.CONVERSATION,this._onRecvConversationNtf,this),f.addEventListener(f.Events.PULL_OFFLINE_MESSAGE_FINISHED,this._onPullOfflineMessageFinished,this),f.addEventListener(f.Events.MESSAGE_RECEIPT_RESPONSE_V5,this._onV5ReceiptResponse.bind(this)),f.addEventListener(f.Events.CONNECTED,this._onConnected,this),f.addEventListener(f.Events.CONVERSATIONS_SYNCED,this._onConversationsSynced.bind(this)),f.electronExtension.enable()&&this.ctx.addEventListener(Z.RECV_NEW_MESSAGES,this._onRecvNewMessages,this)}_onInitUserCache(){yn(this,_i)||this._getMoreRemoteConversation(!0)}_onDestroyUserCache(){this._list.length=0,this._pool.clear(),this._openedConversation=null,this._getRemoteConversationFinished=!1,this._pullOfflineMessageFinished=!1,this._getRemoteConversationTimer&&(clearTimeout(this._getRemoteConversationTimer),this._getRemoteConversationTimer=null),this._handleQueueTimer&&(clearTimeout(this._handleQueueTimer),this._handleQueueTimer=null),this._clearTypingStatus(),tr(this,_i,!1),tr(this,Yo,!1)}destroy(){this._onDestroyUserCache(),this.ctx.removeEventListener(Z.USER_PROFILES_UPDATE,this._onUserProfilesUpdate,this),this.ctx.removeEventListener(Z.GROUP_PROFILES_UPDATE,this._onGroupProfilesUpdate,this),this.ctx.removeEventListener(Z.SYSTEM_PROFILES_UPDATE,this._onSystemProfilesUpdate,this),this.ctx.removeEventListener(Z.INSERT_NEW_MESSAGES,this._onInsertNewMessages,this),this.ctx.removeEventListener(ge.MESSAGES_DELETED,this._onDeleteMessages,this),this.ctx.removeEventListener(Z.MESSAGE_STATE_CHANGE,this._onMessageStateChange,this),f.removeEventListener(f.Events.SYNC_READ_STATUS,this._onSyncReadStatus,this),f.removeEventListener(f.Events.PULL_OFFLINE_MESSAGE_FINISHED,this._onPullOfflineMessageFinished,this),f.removeEventListener(f.Events.CONVERSATION,this._onRecvConversationNtf,this),f.removeEventListener(f.Events.MESSAGE_RECEIPT_RESPONSE_V5,this._onV5ReceiptResponse,this),f.removeEventListener(f.Events.CONNECTED,this._onConnected,this),f.removeEventListener(f.Events.CONVERSATIONS_SYNCED,this._onConversationsSynced.bind(this)),this.ctx.removeEventListener(Z.RECV_NEW_MESSAGES,this._onRecvNewMessages,this)}async _onDeleteMessages(s){const n=s.data,{target:i,recallMsg:o}=n[n.length-1],r=this._pool.get(Ct(i));if(!r)return;if(f.electronExtension.enable()&&o){const{conversationType:l,targetId:c,channelId:u}=o,{data:d}=await f.getConversation({conversationType:l,targetId:c,channelId:u});if(!d)return;d.conversationType===f.ConversationType.GROUP&&d.hasMentioned?r.mentionedType=ut.AT_ME:r.mentionedType=ut.NONE,this._paddingData(r,d),this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,[r]));return}const a=r.latestMessage;!a||a.transactionId!==i.transactionId&&a.messageUId!==i.messageUId||(r.latestMessage=o||this.ctx.message.getConversationLatestMessage(r),this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,[r])))}async _onInsertNewMessages(s){const n=s.data,i=n[n.length-1],o=Ct(i);let r=this._pool.get(o);r||(r=this._parseConversationList([{latestMessage:i,conversationType:i.conversationType,targetId:i.targetId,channelId:i.channelId,lastUnreadTime:0}])[0]),r.latestMessage=i,r.updateTime=i.sentTime,r.markReaded=!0,r.markUnread=!1,this._recalculatePosition(new Set([r]))}_onMessageStateChange(s){const n=s.data,i=[];n.forEach(o=>{const r=Ct(o),a=this._pool.get(r);a&&a.latestMessage&&(a.latestMessage.transactionId===o.transactionId||a.latestMessage.messageUId==o.messageUId)&&(a.latestMessage=o,i.push(a))}),i.length&&this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,i))}_getMentionedType(s,n){if(!n)return ut.NONE;const{type:i,userIdList:o}=n;return i===f.MentionedType.ALL?ut.AT_ALL:!o||!Array.isArray(o)?ut.NONE:o.includes(s)?ut.AT_ME:ut.NONE}_onUserProfilesUpdate(s){const n=[];s.data.forEach(i=>{const o=this._pool.get(Ct({conversationType:f.ConversationType.PRIVATE,targetId:i.userId}));o&&(o.name!==i.name||o.portraitUri!==i.portraitUri||o.online!==i.online)&&(o.name=i.name,o.portraitUri=i.portraitUri,o.online=i.online,n.push(o))}),n.length&&this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,n))}_onSystemProfilesUpdate(s){const n=[];s.data.forEach(i=>{const o=this._pool.get(Ct({conversationType:f.ConversationType.SYSTEM,targetId:i.systemId}));o&&(o.name!==i.name||o.portraitUri!==i.portraitUri)&&(o.name=i.name,o.portraitUri=i.portraitUri,n.push(o))}),n.length&&this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,n))}_onGroupProfilesUpdate(s){const n=s.data,i=[];n.forEach(o=>{const r={conversationType:f.ConversationType.GROUP,targetId:o.groupId},a=this._pool.get(Ct(r));a&&(a.name!==o.name||a.portraitUri!==o.portraitUri||a.memberCount!==o.memberCount)&&(a.name=o.name,a.portraitUri=o.portraitUri,a.memberCount=o.memberCount,i.push(a))}),i.length&&this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,i))}updateLatesMessageStatus(s){if(!(!s||s.length<=0)&&this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5){const n=s.filter(i=>i.conversationType===f.ConversationType.PRIVATE&&i.latestMessage&&i.latestMessage.senderUserId===this.ctx.userId);this._handleLatestReadReceiptInfoV5(n)}}async _onSyncReadStatus(s){const n={conversationType:s.conversationType,channelId:s.channelId||"",targetId:s.targetId},i=Ct(n);let o=this._pool.get(i);if(!o)return;const{code:r,data:a}=await f.getUnreadCount(n);if(r===f.ErrorCode.SUCCESS&&o.unreadCount!==a){if(o.mentionedType=ut.NONE,f.electronExtension.enable()){const{data:l}=await f.getConversation(n);o.mentionedType=l&&l.hasMentioned?ut.AT_ME:ut.NONE}o.unreadCount=a,this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,[o]))}}_onRecvConversationNtf(s){this._converNtfQueue.push(...s.conversationList)}_handleConversationNtf(s){const{conversation:n,updatedItems:i}=s,o=Ct(n);let r=0,a=this._pool.get(o);return a&&i?this._handleUpdatedItems(a,i,n):!a&&(i!=null&&i.latestMessage)?(n.conversationType===f.ConversationType.PRIVATE?a=this._transPriConversation(n):n.conversationType===f.ConversationType.GROUP?a=this._transGroupConversation(n):a=this._transSystemConversation(n),{changeType:2,conversation:a}):{changeType:r}}_handleUpdatedItems(s,n,i){var r,a,l,c,u;let o=0;if(n.isTop&&(s.isTop=n.isTop.val,o=Math.max(2,o)),n.notificationLevel&&(s.notificationLevel=n.notificationLevel.val,o=Math.max(1,o)),(r=n.latestMessage)!=null&&r.val&&(i.conversationType===f.ConversationType.GROUP&&i.hasMentioned?s.mentionedType=i.mentionedInfo.type===f.MentionedType.ALL?ut.AT_ALL:ut.AT_ME:s.mentionedType=ut.NONE,this._paddingData(s,i),s.markReaded&&i.unreadMessageCount&&(s.markReaded=!1),o=Math.max(2,o)),n.unreadMessageCount&&!((a=n.latestMessage)!=null&&a.val)&&(s.unreadCount=i.unreadMessageCount||0,s.markReaded&&s.unreadCount>0&&(s.markReaded=!1),o=Math.max(1,o)),n.hasMentioned&&!((l=n.latestMessage)!=null&&l.val)&&(i.conversationType===f.ConversationType.GROUP&&i.hasMentioned?s.mentionedType=((c=i.mentionedInfo)==null?void 0:c.type)===f.MentionedType.ALL?ut.AT_ALL:ut.AT_ME:s.mentionedType=ut.NONE,o=Math.max(1,o)),this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5)try{const d=`${s.conversationType}|${s.targetId}|${s.channelId||""}|${((u=s.latestMessage)==null?void 0:u.messageUId)||""}`,h=yn(this,gi).get(d);h&&(s.latestMessage.kitReadReceiptInfo=h,o=Math.max(1,o))}catch(d){this.logger.warn(B.L_HANDLE_READ_RECEIPT_V5_E,`handle Updated Items error: ${d}`)}return{changeType:o,conversation:s}}_paddingData(s,n){s.latestMessage=n.latestMessage?Ei(n.latestMessage):null,s.unreadCount=n.unreadMessageCount||0,s.isTop=!!n.isTop,f.electronExtension.enable()?(s.draft=n.draft||"",s.updateTime=n.operationTime||(n.latestMessage?n.latestMessage.sentTime:0)):s.updateTime=n.latestMessage?n.latestMessage.sentTime:0,n.notificationLevel&&(s.notificationLevel=n.notificationLevel)}_transPriConversation(s){const n=this.ctx.appData.getUserProfiles([s.targetId])[0],i=this._createCachedConversation(s);return i.name=n.name,i.portraitUri=n.portraitUri,i.online=n.online,this._paddingData(i,s),i}_transSystemConversation(s){const n=this.ctx.appData.getSystemProfiles([s.targetId])[0],i=this._createCachedConversation(s);return i.name=n.name,i.portraitUri=n.portraitUri,this._paddingData(i,s),i}_transGroupConversation(s){const n=this.ctx.appData.getGroupProfiles([s.targetId])[0],i=this._createCachedConversation(s);return i.name=n.name,i.portraitUri=n.portraitUri,i.memberCount=n.memberCount,s.hasMentioned?i.mentionedType=s.mentionedInfo.type===f.MentionedType.ALL?ut.AT_ALL:ut.AT_ME:i.mentionedType=ut.NONE,this._paddingData(i,s),i}_parseConversationList(s){const n=[];return s.forEach(i=>{const{targetId:o,conversationType:r,latestMessage:a}=i;switch(a&&this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5&&a.readReceiptInfo&&a.senderUserId===this.ctx.userId&&(a.sentStatus=f.SentStatus.READ),r){case f.ConversationType.PRIVATE:n.push(this._transPriConversation(i));return;case f.ConversationType.GROUP:n.push(this._transGroupConversation(i));return;case f.ConversationType.SYSTEM:n.push(this._transSystemConversation(i));return;default:this.logger.warn(B.L_PARSE_CONVERSATION_E,`unsupport conversation type: ${r}`);return}}),n}getCachedConversationList(){return this._list.slice()}_addToConversationList(s,n=!0){let i=this._list.findIndex(l=>vt(l,s));if(i>-1){if(!n)return{origin:i,current:i};this._list.splice(i,1)}const{isTop:o,updateTime:r}=s;let a=this._list.findIndex((l,c)=>o!==l.isTop?o:r!==l.updateTime?r>l.updateTime:i>-1&&c>=i);return a===-1&&(a=this._list.length),this._list.splice(a,0,s),{origin:i,current:a}}_onRecvNewMessages(s){this._messageQueue.push(...s.data)}_handleMessage(s){const n=this.ctx.userId;let i=0;const o=Ct(s),{content:r,conversationType:a,targetId:l,channelId:c,sentTime:u,isCounted:d,senderUserId:h}=s;let p=this._pool.get(o);if(!p){const _={latestMessage:s,conversationType:a,targetId:l,channelId:c,lastUnreadTime:0};a===f.ConversationType.PRIVATE?p=this._transPriConversation(_):a===f.ConversationType.GROUP?p=this._transGroupConversation(_):p=this._transSystemConversation(_),i=2}return a===f.ConversationType.GROUP&&p.mentionedType!==ut.AT_ME&&h!==n&&(p.mentionedType=Math.max(this._getMentionedType(n,r.mentionedInfo),p.mentionedType),i=Math.max(i,1)),u>=p.updateTime&&(p.latestMessage=s,p.updateTime=u,i=2),d&&h!==n&&(p.unreadCount+=1,p.markReaded=!1,i=Math.max(i,1)),{changeType:i,conversation:p}}_recalculatePosition(s){const n=[];[...s].sort((o,r)=>o.updateTime-r.updateTime).forEach(o=>{const{current:r}=this._addToConversationList(o);n.push({order:r,conversation:o})}),this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_ORDER_CHANGE,n))}async _getMoreRemoteConversation(s=!1,n=0){const i=n===0?30:200,{code:o,data:r}=await f.getConversationListByTimestamp({count:i,startTime:n});if(s&&this._pullOfflineMessageFinished)return;if(o!==f.ErrorCode.SUCCESS&&!s){this.logger.error(B.L_GET_CONVERSATION_E,`get conversation list failed: code = ${o}, count = ${i}, startTime = ${n}`),this._getRemoteConversationTimer=setTimeout(()=>this._getMoreRemoteConversation(s,n),1e3);return}this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5&&this._handleLatestReadReceiptInfoV5(r||[]);const a=r||[];if(a.length===0||s){this._onGetRemoteConversationListDone(s);return}n===0&&!s&&(this._list.length=0);const c=this._parseConversationList(a),u=r[r.length-1].operationTime;if(c.forEach(d=>this._addToConversationList(d,!1)),this.ctx.dispatchEvent(new ne(Z.CONVERSATION_LIST_RESET,this._list)),!u||s||f.electronExtension.enable()||a.length<i){this._onGetRemoteConversationListDone(s);return}this._getRemoteConversationTimer=setTimeout(()=>this._getMoreRemoteConversation(!1,u),300)}_onPullOfflineMessageFinished(){this._getRemoteConversationTimer&&(clearTimeout(this._getRemoteConversationTimer),this._getRemoteConversationTimer=null),this._handleQueueTimer&&(clearTimeout(this._handleQueueTimer),this._handleQueueTimer=null),this._pullOfflineMessageFinished?this._handleQueueDelay():this._getMoreRemoteConversation(!1),this._pullOfflineMessageFinished=!0}_onConnected(){Yh(this,Ta,Jh).call(this),!this._getRemoteConversationFinished&&!yn(this,_i)&&this._getMoreRemoteConversation(!0)}_onConversationsSynced(){tr(this,Yo,!0),this._pullOfflineMessageFinished||setTimeout(()=>this._getMoreRemoteConversation(!1),100)}async _handleLatestReadReceiptInfoV5(s){var r;const n=this._buildIdentifiersForLatest(s);if(!n.length)return;const i=100,o=[];for(let a=0;a<n.length;a+=i)o.push(n.slice(a,a+i));try{(await Promise.all(o.map(l=>f.getMessageReadReceiptInfoV5ByIdentifiers(l)))).forEach(l=>{((l==null?void 0:l.data)||[]).forEach(u=>{const d=(u==null?void 0:u.identifier)||{},h=`${d.conversationType}|${d.targetId}|${d.channelId||""}|${u.messageUId}`;yn(this,gi).set(h,u)})}),this._list.forEach(l=>{if(l.conversationType!==f.ConversationType.PRIVATE)return;const c=l.latestMessage;if(!(c!=null&&c.messageUId))return;const u=`${l.conversationType}|${l.targetId}|${l.channelId||""}|${c.messageUId}`,d=yn(this,gi).get(u);d&&(l.latestMessage.kitReadReceiptInfo=d,this._pool.set(l.key,l))})}catch(a){(r=this.logger)==null||r.warn(B.L_GET_READ_RECEIPT_INFO_V5_E,`getMessageReadReceip·tInfoV5ByIdentifiers error: ${a}`)}}_buildIdentifiersForLatest(s){const n=[];return s.forEach(i=>{const o=i.latestMessage;i.conversationType===f.ConversationType.PRIVATE&&(o==null?void 0:o.messageDirection)===f.MessageDirection.SEND&&(o!=null&&o.messageUId)&&n.push({identifier:{conversationType:i.conversationType,targetId:i.targetId,channelId:i.channelId},messageUId:o.messageUId})}),n}_onV5ReceiptResponse(s){if(this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5)try{if(!s||!Array.isArray(s))return;s.forEach(n=>{const i=(n==null?void 0:n.identifier)||{},o=`${i.conversationType}|${i.targetId}|${i.channelId||""}|${n.messageUId}`;yn(this,gi).set(o,n);const r=Ct({conversationType:i.conversationType,targetId:i.targetId,channelId:i.channelId}),a=this._pool.get(r);a&&a.latestMessage&&a.latestMessage.messageUId===(n==null?void 0:n.messageUId)&&(a.latestMessage.kitReadReceiptInfo=n,this._pool.set(r,a),this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,[a])),this.logger.debug(B.L_V5_RECEIPT_RESPONSE_O,`onV5ReceiptResponse success: ${JSON.stringify(a)}`))})}catch(n){this.logger.warn(B.L_V5_RECEIPT_RESPONSE_E,`onV5ReceiptResponse error: ${n}`)}}_onGetRemoteConversationListDone(s){s||(this._getRemoteConversationFinished=!0),this._handleQueue()}_handleQueueDelay(){this._handleQueueTimer||(this._handleQueueTimer=setTimeout(()=>{this._handleQueueTimer=null,this._handleQueue()},20))}_handleQueue(){if(this._messageQueue.length===0&&this._converNtfQueue.length===0){this._handleQueueDelay();return}if(this._list.length>=20&&!this._getRemoteConversationFinished)return;const s=new Set,n=new Set,i=new Set,o=Number.MAX_SAFE_INTEGER,r=20,a=Date.now(),l=c=>{const{changeType:u,conversation:d}=c;u===1?(i.add(d),s.add(d)):u===2&&(n.add(d),s.add(d))};if(this._handleMessageQueue(l,s,o,r,a),this._handleQueueNotify(l,s,o,r,a),n.size&&this._recalculatePosition(n),i.size){const c=[...i].filter(u=>!n.has(u));c.length&&this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,c))}this._handleQueueDelay()}_handleMessageQueue(s,n,i,o,r){for(;this._messageQueue.length&&Date.now()-r<o&&n.size<i;){const a=this._messageQueue[0];if(!this._getRemoteConversationFinished&&!a.isOffLineMessage)break;if(this._getRemoteConversationFinished&&a.isOffLineMessage){this._messageQueue.shift();continue}const l=Ei(this._messageQueue.shift());s(this._handleMessage(l))}}_handleQueueNotify(s,n,i,o,r){var a,l,c;if(!this._getRemoteConversationFinished){let u=0;for(;this._messageQueue.length===0&&u<this._converNtfQueue.length&&Date.now()-r<o&&n.size<i;){const d=this._converNtfQueue[u];if((a=d.updatedItems)!=null&&a.latestMessage){if(!d.updatedItems.latestMessage.val.isOffLineMessage)break;this._converNtfQueue.splice(u,1),s(this._handleConversationNtf(d));continue}u+=1}return}for(;this._messageQueue.length===0&&this._converNtfQueue.length&&Date.now()-r<o&&n.size<i;){const u=this._converNtfQueue.shift();(c=(l=u.updatedItems)==null?void 0:l.latestMessage)!=null&&c.val.isOffLineMessage||s(this._handleConversationNtf(u))}}async getMoreConversationList(s,n){let i=s?this._list.findIndex(l=>vt(l,s)):-1;i===-1?i=0:i=i+1;const o=i+(n||30),r=this._list.slice(i,o);return{hasMore:this._list.length>o||!this._getRemoteConversationFinished,code:f.ErrorCode.SUCCESS,list:r}}_alertImLibFailure(s){const n=s===av?"alert.imlib.failed.network":"alert.imlib.failed.generic";this.ctx.alert(n,s)}async removeConversation(s){const{code:n}=await f.removeConversation(s);if(n!==f.ErrorCode.SUCCESS){this._alertImLibFailure(n);return}const i=Ct(s),o=this._list.findIndex(l=>vt(l,s));if(o>-1){const[l]=this._list.splice(o,1);this._pool.delete(i),this.ctx.dispatchEvent(new ne(Z.CONVERSATIN_ITEM_REMOVE,[l])),l===this._openedConversation&&this._setOpenedConversation(null,!1)}if(!this.ctx.store.getCommandSwitch(Rt.DELETE_MESSAGES_WHILE_DELETE_CONVERSATION))return;this.ctx.message.removeCachedMessages(s);const a=f.getServerTime()+5e3;f.clearHistoryMessages(s,a),f.electronExtension.enable()&&f.electronExtension.deleteMessagesByTimestamp(s,a,!1)}async openConversation(s,n=!0){if(Hn(s))return{code:Ps.INVALID_CONVERSATION};if(!this._getRemoteConversationFinished||!this._pullOfflineMessageFinished)return{code:Ps.CONVERSATION_LIST_NOT_READY};if(this._openedConversation&&vt(this._openedConversation,s))return{code:f.ErrorCode.SUCCESS};const{targetId:i,conversationType:o,channelId:r=""}=s;let a=this._list.findIndex(c=>vt(c,s)),l=this._list[a];return l||([l]=this._parseConversationList([{targetId:i,conversationType:o,channelId:r,latestMessage:null,lastUnreadTime:0}]),l.updateTime=f.getServerTime(),this._recalculatePosition(new Set([l]))),this._setOpenedConversation(l,n),{code:f.ErrorCode.SUCCESS}}_setOpenedConversation(s,n=!0){this._clearTypingStatus(),this._openedConversation=s,this.ctx.emit(new ne(ge.CONVERSATION_SELECTED,{conversation:s,focusInput:n}),1)}async setConversationNotificationLevel(s,n){if(Hn(s))return{code:Ps.INVALID_CONVERSATION};const i=this._list.find(r=>vt(r,s));if(!i)return{code:f.ErrorCode.CONVER_GET_ERROR};if(i.notificationLevel===n)return{code:f.ErrorCode.SUCCESS};const{code:o}=await f.setConversationNotificationLevel(s,n);return o!==f.ErrorCode.SUCCESS?(this._alertImLibFailure(o),{code:o}):(i.notificationLevel=n,this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,[i])),{code:o})}async setConversationToTop(s,n){if(Hn(s))return{code:Ps.INVALID_CONVERSATION};n=!!n;const i=this._list.find(r=>vt(r,s));if(!i)return{code:f.ErrorCode.CONVER_GET_ERROR};if(i.isTop===n)return{code:f.ErrorCode.SUCCESS};const{code:o}=await f.setConversationToTop(s,n);return o!==f.ErrorCode.SUCCESS?(this._alertImLibFailure(o),{code:o}):(i.isTop=n,this._recalculatePosition(new Set([i])),{code:o})}async markConversationReaded(s){var o;const{data:n}=await f.getFirstUnreadMessage(s);await this.clearUnreadCountByTimestamp(s,((o=s.latestMessage)==null?void 0:o.sentTime)||Date.now());const i=[];n&&i.push(Ei(n)),s.latestMessage&&i.push(s.latestMessage),this.ctx.message.sendReadReceiptMessage(s,i)}markConversationUnread(s){s.markReaded=!1,s.markUnread=!0,this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,[s]))}getCachedConversationByKey(s){return this._pool.get(s)}async clearUnreadCountByTimestamp(s,n){const i=this.getCachedConversationByKey(Ct(s));if(!f.electronExtension.enable())await f.clearMessagesUnreadStatus(s),i.unreadCount=0,i.mentionedType=ut.NONE,i.markReaded=!0,i.markUnread=!1;else{await f.clearUnreadCountByTimestamp(s,n);const{data:o}=await f.getUnreadCount(s);i.unreadCount=o,i.markReaded=!0,i.markUnread=!1,i.mentionedType=ut.NONE}return this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_CHANGE,[i])),await f.sendSyncReadStatusMessage(s,n+1||Date.now()),{code:f.ErrorCode.SUCCESS}}async handleConversationDraft(s,n){if(!s)return;const{data:i}=await f.getTextMessageDraft(s);if(i===n)return;const o=Ct(s);let r=this._pool.get(o);if(n){const{code:l}=await f.saveTextMessageDraft(s,n);if(l!==f.ErrorCode.SUCCESS||!r)return;r.draft=n,r.updateTime=f.getServerTime();const{current:c}=this._addToConversationList(r);this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_ORDER_CHANGE,[{order:c,conversation:r}]));return}if(await f.clearTextMessageDraft(s),!r)return;r.draft="",r.latestMessage&&(r.updateTime=r.latestMessage.sentTime);const{current:a}=this._addToConversationList(r);this.ctx.dispatchEvent(new ne(Z.CONVERSATION_ITEM_ORDER_CHANGE,[{order:a,conversation:r}]))}updateLastReadTime(s,n){if(!this.ctx.conversationStore)return;const{conversationType:i,targetId:o,channelId:r=""}=s,a=this.ctx.conversationStore.get(i,o,r);n>a.lastReadTime&&this.ctx.conversationStore.set(i,o,{lastReadTime:n},r)}getLastReadTime(s){if(!this.ctx.conversationStore)return 0;const{conversationType:n,targetId:i,channelId:o=""}=s;return this.ctx.conversationStore.get(n,i,o).lastReadTime||0}sendTypingStatus(s=f.MessageType.TEXT){!this._openedConversation||this._openedConversation.conversationType!==f.ConversationType.PRIVATE||this._typingTime||(this._typingTime=setTimeout(()=>{this._typingTime=null},5e3),f.sendTypingStatusMessage(this._openedConversation,s))}_clearTypingStatus(){this._typingTime&&(clearTimeout(this._typingTime),this._typingTime=null)}}gi=new WeakMap,_i=new WeakMap,Yo=new WeakMap,Ta=new WeakSet,Jh=function(){const{isConversationListIncludeUltraGroup:s}=f.getAppSettings()||{};tr(this,_i,!!s)};const cv=e=>({...e}),Fh={radius:20,portraitSize:"large",topBackgroundColor:"#EFF4FF",hoverBackgroundColor:"#F3F5FA",activeBackgroundColor:"#D2E1FE"};class uv extends Is{constructor(s){super(s);q(this,"conversationItemCfg",{});this.setConversationItemCfg(Fh)}_onInit(){}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this.setConversationItemCfg(Fh)}cloneConversationItemCfg(){return cv(this.conversationItemCfg)}setConversationItemCfg(s){this.conversationItemCfg={...this.conversationItemCfg,...s}}}class dv extends xc{constructor(s,n,i,o){super();q(this,"store");q(this,"conversationStore",null);q(this,"i18n");q(this,"appData");q(this,"message");q(this,"conversation");q(this,"conversationItem");q(this,"input");q(this,"bubble");q(this,"audioPlayer");q(this,"conversationMenu");q(this,"msgMenu");q(this,"speechToTextStore");q(this,"_stat");q(this,"_originUserId","");q(this,"_readReceiptVersion");q(this,"_status",j.RCConnectionStatus.DISCONNECTED);q(this,"isElectronRuntime",!1);q(this,"modalContainerId","");q(this,"allowedToRecallTime");q(this,"allowedToReEditTime");this.context=s,this.logger=n,this._emittor=i,this._stat=new uc(s),this.modalContainerId=o.modalContainerId||"",this.allowedToRecallTime=o.allowedToRecallTime||120,this.allowedToReEditTime=o.allowedToReEditTime||60,this.store=new d2(n),this.i18n=new Rp(this),this.audioPlayer=new rv(this),this.appData=new Ip(this,o.hooks),this.message=new iv(this),this.conversation=new lv(this),this.conversationItem=new uv(this),this.input=new dm(this),this.bubble=new Km(this),this.conversationMenu=new ov(this),this.msgMenu=new zm(this),this.speechToTextStore=new yc(n,this),this.msgMenu.setSpeechToTextStore(this.speechToTextStore),o.language&&this.i18n.setLanguage(o.language),f.addEventListener(f.Events.CONNECTED,this._onConnected,this),f.addEventListener(f.Events.DISCONNECT,this._onDisconnected,this),f.addEventListener(f.Events.SUSPEND,this._onSuspend,this),f.addEventListener(f.Events.CONNECTING,this._onConnecting,this)}get readReceiptVersion(){return this._readReceiptVersion}get userId(){return this._originUserId}get isQuoteMessageV2Enabled(){return this.store.getCommandSwitch(Rt.USE_QUOTE_MESSAGE_V2)}get status(){return this._status}_onConnecting(){this._status=j.RCConnectionStatus.CONNECTING,this.dispatchEvent(new Xi(j.RCConnectionStatus.CONNECTING))}_onDisconnected(s){this._status=j.RCConnectionStatus.DISCONNECTED,this.dispatchEvent(new Xi(j.RCConnectionStatus.DISCONNECTED,s))}_onSuspend(s){this._status=j.RCConnectionStatus.SUSPENDED,this.dispatchEvent(new Xi(j.RCConnectionStatus.SUSPENDED,s))}_onConnected(){var n;this._status=j.RCConnectionStatus.CONNECTED,this._readReceiptVersion=(n=f.getAppSettings())==null?void 0:n.readReceiptVersion;const s=f.getCurrentUserId();if(this._originUserId===s){this.dispatchEvent(new Xi(j.RCConnectionStatus.CONNECTED));return}this._originUserId&&this._originUserId!==s&&(this._originUserId=s,this.dispatchEvent(new ne(Z.DESTROY_USER_CACHE),!1)),this._originUserId=s,this.dispatchEvent(new ne(Z.INIT_USER_CACHE),!1),this.dispatchEvent(new Xi(j.RCConnectionStatus.CONNECTED)),this.conversationStore=new _2(window,this.getAppkey(),this.userId,this.logger)}destroy(){f.removeEventListener(f.Events.CONNECTED,this._onConnected,this),f.removeEventListener(f.Events.DISCONNECT,this._onDisconnected,this),f.removeEventListener(f.Events.SUSPEND,this._onSuspend,this),f.removeEventListener(f.Events.CONNECTING,this._onConnecting,this),this.i18n.destroy(),this.appData.destroy(),this.message.destroy(),this.conversation.destroy(),this.input.destroy(),this.bubble.destroy(),this.conversationMenu.destroy(),this.msgMenu.destroy(),this.speechToTextStore.destroy(),this._originUserId="",this._readReceiptVersion=void 0}alert(s,...n){this.emit(new ne(ge.ALERT_EVENT,this.i18n.format(s,...n)))}confirm(s,...n){const i=new ne(ge.CONFIRM_EVENT,this.i18n.format(s,...n));return this.emit(i),i.awaitResult()}emit(s,n=0){const i=s.clone(n!==0);this._emittor.dispatchEvent(i,!1),!(n===2||n===0&&i.isDefaultPrevented())&&this.dispatchEvent(s)}getAppkey(){return this.context.getAppkey()}statistic(s){this._stat.report(s)}}const fv=["src"],hv={class:"progress"},pv={class:"time"},gv=Re(Te({__name:"hq-voice-message.ce",props:{value:{type:Object},isQuote:{type:Boolean}},setup(e){const t=e,s=t.value,n=t.isQuote||!1,i=h=>`${Math.max(0,Math.floor(h))}s`,o=me(()=>i(s.duration)),r=pp,a=gp;s.isOwner;const l=new Array(20).fill(0).map(h=>(Math.floor(Math.random()*9)+3)*2),c=me(()=>Math.floor(s.progress/100*20)||-1),u=me(()=>s.playing?a:r),d=()=>s.toggle();return(h,p)=>(R(),P("div",null,[y("div",{class:Fe(["voice",{"is-quote":D(n)}])},[y("img",{src:u.value,alt:"Button Icon",class:"control",onClick:d},null,8,fv),y("div",hv,[(R(!0),P(Ne,null,kt(D(l),(_,m)=>(R(),P("div",{class:Fe(["line",{active:c.value>=m}]),style:rt({height:_+"px"})},null,6))),256))]),y("div",pv,re(o.value),1)],2)]))}}),[["styles",[`.voice{display:flex;align-items:center;padding:20px;gap:10px}.voice.is-quote{padding:0;gap:6px}.voice .control{width:20px;height:20px;cursor:pointer}.voice.is-quote .control{width:16px;height:16px}.voice .progress{height:22px;display:flex;align-items:center}.voice .progress .line{margin-right:4px;width:3px;border-radius:3px;animation:bounce-in 2s;background:#020814}.voice .progress .line.active{transition:all .5s;background:#0047FF}.voice.is-quote .progress{height:16px}.voice.is-quote .progress .line{margin-right:2px;width:2px}.voice .time{font-size:14px}.voice.is-quote .time{font-size:12px}
|
|
381
|
-
`]]])
|
|
330
|
+
**/const vh=Object.create(null);function v_(e,t){if(!Ue(e))if(e.nodeType)e=e.innerHTML;else return kt;const s=Yp(e,t),n=vh[s];if(n)return n;if(e[0]==="#"){const a=document.querySelector(e);e=a?a.innerHTML:""}const i=$e({hoistStatic:!0,onError:void 0,onWarn:kt},t);!i.isCustomElement&&typeof customElements<"u"&&(i.isCustomElement=a=>!!customElements.get(a));const{code:o}=E_(e,i),r=new Function("Vue",o)(O6);return r._rc=!0,vh[s]=r}fd(v_);const C_=N("ltr"),ui=N("zh_CN");function y_(e){e.addEventListener(Z.LANGUAGE_CHANGE,t=>{ui.value=t.data.lang,C_.value=t.data.direction})}function Je(e,...t){return me(()=>Ce(e,...t))}function Ce(e,...t){const s=Hs[ui.value].entries[e];return s?t.length===0?s:s.replace(/\{\d+\}/g,(n,i)=>t[parseInt(n.substring(1,n.length-1),10)].toString()):e}function S_(e){return!!Hs[ui.value].entries[e]}const T_=["src"],I_={key:0,class:"rc-icon-online"},w_=Se({__name:"icon.ce",props:{url:{type:String,require:!0},online:{type:Boolean,require:!0},width:{type:Number,require:!0},height:{type:Number,require:!0},radius:{type:Number,require:!0}},setup(e){const t=e;return(s,n)=>(R(),k("div",{class:"rc-icon",style:lt({width:`${t.width}px`,height:`${t.height}px`,borderRadius:`${t.radius}%`})},[y("img",{class:"author",src:t.url,alt:"icon"},null,8,T_),t.online?(R(),k("span",I_)):le("",!0)],4))}}),R_=`.author{border:none;margin:0;padding:0;width:100%;height:100%}.rc-icon{font-size:0;overflow:hidden}.rc-icon-online{display:block;width:7px;height:7px;border-radius:50%;background-color:#46db7a;border:.8px solid #FFFFFF;position:absolute;right:0;bottom:5px}
|
|
331
|
+
`,Ie=(e,t)=>{const s=e.__vccOpts||e;for(const[n,i]of t)s[n]=i;return s},M_=Ie(w_,[["styles",[R_]]]),O_={class:"rc-icon-notification"},b_=["src"],L_=Ie(Se({__name:"icon-notification.ce",setup(e){return(t,s)=>(R(),k("div",O_,[y("img",{src:D(Ip),alt:"icon-notification"},null,8,b_)]))}}),[["styles",[`.rc-icon-notification{margin-left:5px;display:flex;align-items:center}
|
|
332
|
+
`]]]),A_={class:"rc-icon-notification"},x_=["src"],k_=Ie(Se({__name:"icon-top.ce",setup(e){return(t,s)=>(R(),k("div",A_,[y("img",{src:D(wp),alt:"icon-notification"},null,8,x_)]))}}),[["styles",[`.rc-icon-notification{margin-left:5px;display:flex;align-items:center}
|
|
333
|
+
`]]]),U_={class:"rc-conversation-label"},N_=Ie(Se({__name:"conversation-label.ce",props:{name:{type:String}},setup(e){const t=e;return(s,n)=>(R(),k("div",U_,se(t.name),1))}}),[["styles",[`.rc-conversation-label{color:#41464f;font-weight:400;font-size:14px;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}
|
|
334
|
+
`]]]),D_={class:"rc-conversation-latest-message"},P_={class:"content content-webkit-display content-moz-display"},V_=Ie(Se({__name:"conversation-latest-message.ce",props:{message:{type:String,required:!0}},setup(e){const t=e;return(s,n)=>(R(),k("div",D_,[y("span",P_,se(t.message),1)]))}}),[["styles",[`.rc-conversation-latest-message{color:#7c838e;font-weight:400;font-size:12px;display:flex}.content-moz-display{display:-moz-box;-moz-line-clamp:1!important;-moz-box-orient:vertical}.content-webkit-display{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.content{overflow:hidden;text-overflow:ellipsis;flex:1;line-height:18px;word-break:break-all;word-wrap:break-word}
|
|
335
|
+
`]]]),F_={class:"rc-kit-conversation-unread"},$_=Ie(Se({__name:"conversation-unread.ce",props:{count:{type:Number,require:!0,default:0},notification:{type:Number,require:!0,default:-1},markunread:{type:Boolean,require:!0,default:!1}},setup(e){const t=e,s=()=>t.count>99?"99+":t.count>0?t.count:1;return(n,i)=>(R(),k("div",F_,[t.count||t.markunread?(R(),k("div",{key:0,class:Pe([{active:t.notification==5},"unread-box"])},[y("span",{class:Pe([{active:t.count>99},"message-count"])},se(s()),3)],2)):le("",!0)]))}}),[["styles",[`.rc-kit-conversation-unread{display:flex;align-items:center;justify-content:center;margin-top:4px}.unread-box{background-color:#ff5a50;font-size:10px;color:#fff;border-radius:12px;text-align:center}.unread-box.active{background-color:#e4e8ef;color:#41464f}.message-count{display:block;line-height:16px;min-width:16px;height:16px}.message-count.active{padding:0 5px}
|
|
336
|
+
`]]]),H_={class:"rc-conversation-list-item-avatar"},G_={class:"conversation-info"},B_={class:"info-block",style:{"align-items":"center"}},j_={style:{"max-width":"50%"}},q_={class:"rc-time-icon-container"},K_=["src"],z_={class:"info-block"},Q_={key:0,class:"rc-kit-conversation-draft"},W_={class:"draft"},Z_={key:1,class:"rc-kit-conversation-group"},Y_={key:0,class:"mentioned"},X_={key:1},J_=Ie(Se({__name:"conversation-list-item.ce",props:{message:{type:String},time:{type:String},conversation:{type:Object},statusEnable:{type:[Boolean,null]},name:{type:String},draft:{type:[Boolean,null]},selected:{type:[Boolean,null]},rightClicked:{type:[Boolean,null]}},emits:["menu-click"],setup(e,{emit:t}){const s=e,n=t,i=O=>{n("menu-click",O),o.value=!0};let o=N(!1);const r=me(()=>s.rightClicked&&o.value),a=ye(),l=a.conversationItem.conversationItemCfg,c=me(()=>{const O=l,w={};return O.radius!==void 0&&(w.borderRadius=`${O.radius}px`),w["--rc-item-selected-bg"]=Gn(O.activeBackgroundColor),w["--rc-item-top-bg"]=Gn(O.topBackgroundColor),w["--rc-item-hover-bg"]=s.selected?w["--rc-item-selected-bg"]:Gn(O.hoverBackgroundColor),w}),u=me(()=>l.portraitSize==="small"?32:40),d=Je("conv.mentioned.me.msg"),h=Je("conv.draft.msg"),p=me(()=>{var O,w;return((O=s.conversation.latestMessage)==null?void 0:O.sentStatus)===j.SentStatus.FAILED||((w=s.conversation.latestMessage)==null?void 0:w.sentStatus)===j.SentStatus.SENDING}),m=me(()=>a.store.getCommandSwitch(ut.SHOW_MESSAGE_STATE)&&a.readReceiptVersion===j.GroupReadReceiptVersion.V5&&!p.value?s.conversation.conversationType!==j.ConversationType.GROUP:!0),v=me(()=>!s.statusEnable||!m.value||!s.conversation.latestMessage||s.draft?!1:p.value?!0:!s.conversation.unreadCount&&!s.conversation.markUnread);return(O,w)=>{const C=Ee("rc-icon"),g=Ee("rc-conversation-label"),_=Ee("rc-icon-top"),E=Ee("rc-icon-notification"),L=Ee("rc-conversation-time"),P=Ee("rc-message-sent-status"),F=Ee("rc-conversation-latest-message"),x=Ee("rc-conversation-unread");return R(),k("div",{class:Pe(["rc-conversation-list-item",{"active-top":s.conversation.isTop,"active-selected":s.selected&&!s.rightClicked,"active-right-clicked":s.rightClicked}]),style:lt(c.value)},[y("div",H_,[Re(C,{class:"rc-icon",width:u.value,height:u.value,radius:50,url:s.conversation.portraitUri,online:s.conversation.online},null,8,["width","height","url","online"])]),y("div",G_,[y("div",B_,[y("div",j_,[Re(g,{name:s.conversation.name},null,8,["name"])]),s.conversation.isTop?(R(),xe(_,{key:0})):le("",!0),s.conversation.notificationLevel===5?(R(),xe(E,{key:1})):le("",!0),y("div",q_,[Re(L,{class:"rc-conversation-time",time:s.time},null,8,["time"]),y("div",{class:"hover-menu-icon",onClick:Dt(i,["stop"])},[y("img",{width:16,height:16,src:r.value?D(o1):D(i1),alt:"HOVER_MENU_ICON"},null,8,K_)])])]),y("div",z_,[s.draft?(R(),k("div",Q_,[y("span",W_,se(D(h)),1)])):le("",!0),s.conversation.conversationType===D(j.ConversationType).GROUP&&!s.draft?(R(),k("div",Z_,[s.conversation.mentionedType?(R(),k("span",Y_,se(D(d)),1)):le("",!0),s.name?(R(),k("span",X_,se(s.name)+": ",1)):le("",!0)])):le("",!0),v.value?(R(),xe(P,{key:2,class:"rc-message-sent-status",type:1,message:s.conversation.latestMessage},null,8,["message"])):le("",!0),s.message||e.conversation.draft?(R(),xe(F,{key:3,class:"rc-conversation-latest-message",message:s.draft?e.conversation.draft:s.message,mentioned:s.conversation.mentionedType},null,8,["message","mentioned"])):le("",!0),v.value?le("",!0):(R(),xe(x,{key:4,markunread:s.conversation.markUnread,count:s.conversation.unreadCount,notification:s.conversation.notificationLevel},null,8,["markunread","count","notification"]))])])],6)}}}),[["styles",[`.rc-message-sent-status{margin-right:5px;margin-top:2px}.rc-conversation-list-item{display:flex;height:78px;align-items:center;padding:0 14px 0 10px;border-radius:5px;cursor:pointer;margin-top:6px}@media (max-width: 768px){.rc-conversation-list-item{user-select:none;-webkit-user-select:none}}.rc-conversation-list-item-avatar{width:40px;height:40px;display:flex;justify-content:center;align-items:center;flex-shrink:0}.rc-conversation-list-item.active-top{background-color:var(--rc-item-top-bg)}.rc-conversation-list-item.active-selected{background-color:var(--rc-item-selected-bg)}.rc-conversation-list-item.active-right-clicked{background-color:#f1f1f1!important}.rc-conversation-list-item:hover{background-color:var(--rc-item-hover-bg)}.rc-conversation-list-item .conversation-info{margin-left:8px;flex:1 1 auto;overflow:hidden;height:44px}.rc-conversation-list-item .conversation-info .info-block{font-size:12px;display:flex}.rc-conversation-latest-message{flex:1;overflow:hidden;min-height:18px;margin:4px 15px 0 0}.rc-icon{position:relative;font-size:0px}.rc-kit-conversation-group{color:#7c838e;line-height:18px;margin-top:4px}.mentioned{color:#d45f5f;margin-right:5px}.rc-kit-conversation-draft{margin-top:4px}.rc-kit-conversation-draft .draft{color:#d45f5f;margin-right:5px}.rc-time-icon-container{display:flex;justify-content:flex-end;min-width:16px;margin-left:auto}.hover-menu-icon{display:none;cursor:pointer;width:16px;height:16px}@media (min-width: 769px){.rc-conversation-list-item:hover .hover-menu-icon,.rc-conversation-list-item.active-right-clicked .hover-menu-icon{display:block}.rc-conversation-list-item:hover .rc-conversation-time,.rc-conversation-list-item.active-right-clicked .rc-conversation-time{display:none}}
|
|
337
|
+
`]]]),e9={class:"rc-conversation-list-menu-item"},t9=["src"],s9={class:"content"},n9=Ie(Se({__name:"conversation-list-menu-item.ce",props:{id:{type:String},icon:{type:String},label:{type:String}},setup(e){const t=e;return(s,n)=>(R(),k("div",e9,[y("img",{src:t.icon,alt:"Icon"},null,8,t9),y("div",s9,[y("span",null,se(e.label),1)])]))}}),[["styles",[`.rc-conversation-list-menu-item{display:flex;align-items:center;font-size:12px;padding:5px 6px;border-radius:4px;cursor:pointer}.rc-conversation-list-menu-item:hover{background-color:#d2e1fe}.content{flex:auto;padding-left:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
338
|
+
`]]]),i9={class:"rc-conversation-time"},o9=Ie(Se({__name:"conversation-time.ce",props:{time:{type:String}},setup(e){const t=e;return(s,n)=>(R(),k("div",i9,[y("span",null,se(t.time),1)]))}}),[["styles",[`.rc-conversation-time{color:#a1a1a1;font-weight:400;font-size:12px;line-height:19px;flex:1;text-align:right}
|
|
339
|
+
`]]]),r9={class:"rc-conversation-loading"},a9={class:"content"},l9=Ie(Se({__name:"conversation-loading.ce",setup(e){const t=Je("conv.loading.msg");return(s,n)=>(R(),k("div",r9,[y("span",a9,se(D(t)),1)]))}}),[["styles",[`.rc-conversation-loading{height:30px}.rc-conversation-loading .content{display:block;text-align:center;line-height:30px}
|
|
340
|
+
`]]]),c9=["src"],u9={class:"count"},d9=["src"],f9=Ie(Se({__name:"message-location.ce",props:{count:{type:Number,require:!0},direction:{type:Number,require:!0}},setup(e,{emit:t}){const s=e,n=t;return(i,o)=>(R(),k("div",{class:Pe(["rc-kit-location",{top:s.direction===0,bottom:s.direction===1}])},[s.direction===0?(R(),k("div",{key:0,class:"forward-icon",onClick:o[0]||(o[0]=r=>n("location"))},[y("img",{style:{transform:"rotate(180deg)"},src:D(d1),alt:"TRIANGLE_ICON"},null,8,c9)])):le("",!0),y("div",u9,se(s.count),1),s.direction===1?(R(),k("div",{key:1,class:"forward-icon",onClick:o[1]||(o[1]=r=>n("location"))},[y("img",{src:D(d1),alt:"TRIANGLE_ICON"},null,8,d9)])):le("",!0)],2))}}),[["styles",[`.rc-kit-location{position:absolute;right:16px;background-color:#fff;border-radius:20px}.rc-kit-location.top{top:30px}.rc-kit-location.bottom{bottom:30px}.rc-kit-location div{font-size:16px;line-height:33px;text-align:center;width:33px;height:33px;border-radius:50%;box-sizing:border-box;margin:3px;overflow:hidden}.rc-kit-location .count{color:#fff;background-color:#09f}.rc-kit-location .forward-icon{border:1px solid #0099FF;cursor:pointer;display:flex;align-items:center;justify-content:center}
|
|
341
|
+
`]]]),h9=["cx","cy"],p9=["cx","cy","stroke-width","stroke-dashoffset","transform"],g9=["src"],_9={key:2,class:"rc-kit-read-receipt-tooltip"},m9={class:"rc-kit-tooltip-content"},Pn=16,E9=7,v9=1.2,Ch=5.2,C9=Ie(Se({__name:"message-sent-status.ce",props:{message:{type:Object},type:{type:Number}},emits:["sent-status-click"],setup(e,{emit:t}){const s=e,n=ye(),i=t,o=me(()=>n.readReceiptVersion===f.GroupReadReceiptVersion.V5),r=Ch/2,a=Ch,l=2*Math.PI*r,c=me(()=>n.readReceiptVersion===f.GroupReadReceiptVersion.V5&&s.message.conversationType===f.ConversationType.GROUP),u=me(()=>d.value===f.SentStatus.FAILED||c.value),d=me(()=>{let g=s.message.sentStatus;if(n.readReceiptVersion===f.GroupReadReceiptVersion.V5&&(s.message.conversationType===f.ConversationType.PRIVATE&&s.message.kitReadReceiptInfo&&(g=(s.message.kitReadReceiptInfo.readCount||0)>0?f.SentStatus.READ:f.SentStatus.SENT),s.message.conversationType===f.ConversationType.GROUP&&s.message.kitReadReceiptInfo)){const _=s.message.kitReadReceiptInfo;if(_){const E=_.readCount||0,L=_.unreadCount||0;E===0&&(g=f.SentStatus.SENT),E===E+L&&(g=f.SentStatus.READ)}}return g}),h=g=>{g.stopPropagation(),(d.value===f.SentStatus.FAILED||c.value)&&i("sent-status-click",s.message,g)},p=me(()=>{if(n.readReceiptVersion!==f.GroupReadReceiptVersion.V5||s.message.conversationType!==f.ConversationType.GROUP||s.message.sentStatus===10||s.message.sentStatus===20)return!1;const g=s.message.kitReadReceiptInfo;if(!g)return!1;const _=g.totalCount||0,E=g.readCount||0,L=g.unreadCount||0;return _>0&&E>0&&E<E+L}),m=me(()=>{if(!p.value)return 0;const g=s.message.kitReadReceiptInfo;if(!g)return 0;const _=g.totalCount||0,E=g.readCount||0;return _===0?0:E/_}),v=me(()=>l*(1-m.value)),O=me(()=>!(n.readReceiptVersion!==f.GroupReadReceiptVersion.V5||s.message.conversationType!==f.ConversationType.GROUP||s.message.sentStatus===10||s.message.sentStatus===20)),w=me(()=>{if(!O.value)return"";const g=s.message.kitReadReceiptInfo,_=[];if(!g)return _.push(Ce("message.list.read-receipt.tooltip.all-unread")),_.join(", ");const E=g.readCount||0,L=g.unreadCount||0;return E===0?_.push(Ce("message.list.read-receipt.tooltip.all-unread")):E===E+L?_.push(Ce("message.list.read-receipt.tooltip.all-read")):(_.push(Ce("message.list.read-receipt.tooltip.read-count",E)),_.push(Ce("message.list.read-receipt.tooltip.unread-count",L))),_.join(", ")}),C=()=>{let g=_1;switch(d.value){case 10:g=s.type?Np:Pp;break;case 20:g=g1;break;case 30:g=s.type?_1:Dp;break;case 50:g=Up;break}return g};return(g,_)=>o.value?(R(),k("div",{key:0,class:Pe(["rc-kit-message-sent-status",{"rc-kit-has-tooltip":O.value}]),onClick:h,style:lt({cursor:u.value?"pointer":"default"})},[p.value?(R(),k("svg",{key:0,width:Pn,height:Pn,class:"rc-kit-read-receipt-pie"},[y("circle",{cx:Pn/2,cy:Pn/2,r:E9,fill:"none",stroke:"#46DB7A","stroke-width":v9},null,8,h9),m.value>0?(R(),k("circle",{key:0,cx:Pn/2,cy:Pn/2,r,fill:"none",stroke:"#46DB7A","stroke-width":D(a),"stroke-dasharray":l,"stroke-dashoffset":v.value,class:"rc-kit-pie-inner",transform:`rotate(-90 ${Pn/2} ${Pn/2})`},null,8,p9)):le("",!0)])):(R(),k("img",{key:1,src:C(),class:Pe({"rc-kit-sending":d.value===10}),alt:"status"},null,10,g9)),O.value&&w.value?(R(),k("div",_9,[y("div",m9,se(w.value),1),_[0]||(_[0]=y("div",{class:"rc-kit-tooltip-arrow"},null,-1))])):le("",!0)],6)):le("",!0)}}),[["styles",[`.rc-kit-message-sent-status{display:flex;align-items:center;font-size:0;position:relative;margin-top:4px}.rc-kit-read-receipt-pie{width:16px;height:16px;display:block}.rc-kit-pie-inner{transition:stroke-dashoffset .3s ease}.rc-kit-message-sent-status img{display:inline-block;vertical-align:middle}.rc-kit-message-sent-status img.rc-kit-sending{animation:rc-kit-rotate 1s linear infinite!important;transform-origin:center center;will-change:transform}@keyframes rc-kit-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.rc-kit-read-receipt-tooltip{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%);z-index:1000;pointer-events:none;white-space:nowrap;opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease}.rc-kit-has-tooltip:hover .rc-kit-read-receipt-tooltip{opacity:1;visibility:visible}.rc-kit-tooltip-content{background-color:#fff;border-radius:4px;padding:6px 12px;font-size:12px;color:#333;box-shadow:0 2px 8px #00000026;line-height:1.5}.rc-kit-tooltip-arrow{position:absolute;bottom:-5px;left:50%;transform:translate(-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #fff}
|
|
342
|
+
`]]]),y9={key:0,class:"nickname"},S9={class:"time"},T9={class:"message-content-wrapper"},I9={class:"message-actions-wrapper"},w9=["src"],R9=["src"],M9=Ie(Se({__name:"message-bubble.ce",props:{showname:{type:[Boolean,null]},reaction:{type:Boolean},align:{type:[Boolean,null]},message:{type:Object},profile:{type:Object},bubbleColorStyle:{type:Object},menuActive:{type:Boolean},reactionBoardActive:{type:Boolean},isH5:{type:Boolean},isItemHover:{type:Boolean},showSentStatus:{type:Boolean}},emits:["menu-click","reaction-click","sent-status-click"],setup(e,{emit:t}){const s=N(!1),n=N(!1),i=e,o=t,r=(d,h)=>{o("sent-status-click",h)},a=d=>{o("menu-click",d)},l=d=>{o("reaction-click",d)},c=["time.format.sunday","time.format.monday","time.format.tueday","time.format.wedday","time.format.thurday","time.format.friday","time.format.satday"],u=d=>{const{year:h,month:p,day:m,hour:v,minute:O,weekDay:w}=Si(d),C=new Date,g=new Date(d);if(C.toDateString()===g.toDateString())return`${v}:${O}`;const E=new Date(C);if(E.setDate(E.getDate()-1),E.toDateString()===g.toDateString())return`${Ce("time.format.yesterday")} ${v}:${O}`;if(C.getFullYear()===g.getFullYear()){const F=new Date(C);return F.setDate(F.getDate()-7),g>F?`${Ce(c[w])} ${v}:${O}`:`${p}/${m} ${v}:${O}`}return`${h}/${p}/${m}`};return(d,h)=>{const p=Ee("rc-message-sent-status");return R(),k("div",{class:Pe(["rc-message-bubble-root",{"rc-message-bubble-align-right":i.align}])},[y("p",{class:Pe(["name",{align:i.align}])},[i.showname?(R(),k("span",y9,se(e.profile.nickname||e.profile.name),1)):le("",!0),y("span",S9,se(u(e.message.sentTime)),1)],2),y("div",T9,[y("div",{class:"message-body-wrapper",style:lt(e.bubbleColorStyle)},[hn(d.$slots,"default")],4),y("div",I9,[i.isH5?le("",!0):(R(),k("div",{key:0,class:Pe(["hover-menu-icon",{"hover-menu-icon-active":i.menuActive||i.reactionBoardActive||i.isItemHover}])},[y("img",{width:20,height:20,src:i.menuActive||s.value?D(o1):D(i1),onMouseenter:h[0]||(h[0]=m=>s.value=!0),onMouseleave:h[1]||(h[1]=m=>s.value=!1),onClick:Dt(a,["stop"])},null,40,w9),i.reaction&&e.message.sentStatus===D(f.SentStatus).SENT?(R(),k("img",{key:0,width:20,height:20,src:i.reactionBoardActive||n.value?D(B0):D(G0),onMouseenter:h[2]||(h[2]=m=>n.value=!0),onMouseleave:h[3]||(h[3]=m=>n.value=!1),onClick:Dt(l,["stop"])},null,40,R9)):le("",!0)],2)),i.showSentStatus?(R(),xe(p,{key:1,class:"rc-kit-msg-sent-status",type:0,message:e.message,onSentStatusClick:r},null,8,["message"])):le("",!0)])])],2)}}}),[["styles",[`.rc-message-bubble-root{display:flex;flex-direction:column;align-items:flex-start;max-width:100%}.rc-message-bubble-align-right{align-items:flex-end}p{margin:0 0 5px;line-height:16px;padding:0;word-break:break-word}.message-body-wrapper{font-size:14px;min-width:0;max-width:100%}.name{font-size:12px;color:#41464f;max-width:100%}.nickname{margin-right:8px}.align{text-align:right}.time{display:inline-block;font-weight:400;color:#7c838e}.message-content-wrapper{display:flex;align-items:flex-start;max-width:100%}.rc-message-bubble-align-right .message-content-wrapper{flex-direction:row-reverse}.message-actions-wrapper{display:flex;flex-direction:column;align-self:stretch;justify-content:flex-start;align-items:flex-start;flex-shrink:0;margin:0 4px}.rc-message-bubble-align-right .message-actions-wrapper{align-items:flex-end}.rc-kit-msg-sent-status{width:18px;height:18px;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:auto}.hover-menu-icon{visibility:hidden;cursor:pointer;display:flex;align-items:center;gap:4px;margin:0;flex-shrink:0}.rc-message-bubble-root:hover .hover-menu-icon,.hover-menu-icon-active{visibility:visible}
|
|
343
|
+
`]]]),O9={class:"rc-message-list-menu-item"},b9=["src"],L9={class:"content"},A9=Ie(Se({__name:"message-list-menu-item.ce",props:{id:{type:String},icon:{type:String},label:{type:String}},setup(e){const t=e;return(s,n)=>(R(),k("div",O9,[y("img",{src:t.icon,alt:"icon"},null,8,b9),y("div",L9,[y("span",null,se(e.label),1)])]))}}),[["styles",[`.rc-message-list-menu-item{display:flex;align-items:center;font-size:12px;padding:6px;border-radius:5px;cursor:pointer}.rc-message-list-menu-item:hover{background-color:#d2e1fe}.content{flex:auto;padding-left:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
|
344
|
+
`]]]),x9={class:"rc-msg-time"},k9={class:"date"},U9=Ie(Se({__name:"message-time.ce",props:{time:{type:String}},setup(e){return(t,s)=>(R(),k("div",x9,[y("span",k9,se(e.time),1)]))}}),[["styles",[`.rc-msg-time{text-align:center}.date{display:inline-block;font-size:12px;line-height:20px;padding:0 12px;color:#7c838e;border-radius:20px}
|
|
345
|
+
`]]]),N9={class:"rc-kit-select"},D9=Ie(Se({__name:"message-select.ce",props:{selected:{type:[Boolean,null]}},setup(e,{emit:t}){const s=e,n=t,i=me(()=>s.selected?Ce("message.list.select"):Ce("message.list.unselect"));return(o,r)=>(R(),k("div",N9,[r[1]||(r[1]=y("span",{class:"line"},null,-1)),y("span",{class:"btn",onClick:r[0]||(r[0]=a=>n("select"))},se(i.value),1)]))}}),[["styles",[`.rc-kit-select .line{display:block;width:100%;border:1px dashed #E4E7ED}.rc-kit-select .btn{position:absolute;padding:0 12px;line-height:34px;color:#41464f;background-color:#e3e7ef;border-radius:10px;font-size:14px;display:inline-block;margin-left:68px;z-index:2;top:-16px;cursor:pointer}
|
|
346
|
+
`]]]);var ms=(e=>(e[e.MESSAGE_LIST=0]="MESSAGE_LIST",e[e.QUOTE_INFO=1]="QUOTE_INFO",e))(ms||{});const P9={key:0},V9=["onClick"],F9=["onClick"],$9={key:1},yh=Ie(Se({__name:"text-message.ce",props:{message:{type:Object},position:{type:Number}},setup(e,{emit:t}){const s=e.position===ms.QUOTE_INFO,n=e.message.content,i=t,o=I2(n.content||"");return(r,a)=>D(o).type===0?(R(),k("p",{key:0,class:Pe({"is-quote":s})},se(e.message.content.content||""),3)):(R(),k("p",{key:1,class:Pe({"is-quote":s})},[(R(!0),k(Ae,null,pt(D(o).content,(l,c)=>(R(),k("span",{key:c},[D(o).position.includes(c+1)?(R(),k("span",P9,[l.type==="mail"?(R(),k("a",{key:0,onClick:u=>i("link",{type:"mail",address:l.content}),href:"javascript:;"},se(l.content),9,V9)):(R(),k("a",{key:1,onClick:u=>i("link",{type:"url",address:l.content}),href:"javascript:;"},se(l.content),9,F9))])):(R(),k("span",$9,se(l.content),1))]))),128))],2))}}),[["styles",[`p{margin:0;padding:20px;word-break:break-word;font-size:14px;line-height:22px;white-space:pre-wrap}p.is-quote{padding:0;font-size:12px;line-height:1.2}a{color:#020814}a:hover{color:#0047ff}
|
|
347
|
+
`]]]),H9=["src"],G9=Ie(Se({__name:"image-message.ce",props:{message:{type:Object},position:{type:Number}},setup(e){const s=e.position===ms.QUOTE_INFO,n=()=>{ye().dispatch(new ee(Z.ADJUST_MESSAGE_LIST_SCROLL))},i=()=>{n()},o=()=>{n()};return(r,a)=>{var c;const l=Ee("rc-file-transfer-ctrl-provider");return R(),k("div",{class:Pe(["image-message-wrapper",{"has-quote":(!!e.message.quoteInfo||((c=e.message.reactions)==null?void 0:c.length)>0)&&!s}])},[Re(l,{message:e.message,position:e.position},{default:ht(()=>[y("img",{class:Pe(["thumbnail",{"is-quote":s}]),src:D(T2)(e.message.content.content),alt:"Image",onLoad:i,onError:o},null,42,H9),a[0]||(a[0]=y("div",{slot:"marked",class:"marked"},null,-1))]),_:1},8,["message","position"])],2)}}}),[["styles",[`.image-message-wrapper{display:block}.image-message-wrapper.has-quote{padding:20px}.thumbnail,.marked{width:247px;max-height:400px;border-radius:10px;border:1px solid #E4E7ED}.thumbnail.is-quote{width:auto;max-width:100%;max-height:30px;border-radius:4px}.marked{background-color:#0009;height:100%}
|
|
348
|
+
`]]]),B9=Ie(Se({__name:"unsupported-message.ce",props:{message:{type:Object},position:{type:Number}},setup(e){const t=Ce("message-type.unknown");return(s,n)=>(R(),k("p",null,se(D(t)),1))}}),[["styles",[`p{margin:0;padding:0;word-break:break-word}
|
|
349
|
+
`]]]),j9={class:"wraper"},q9=["src","alt"],K9={key:0,class:"sight-mask"},z9=["src"],Q9={key:1,class:"time"},W9=Ie(Se({__name:"sight-message.ce",props:{message:{type:Object},position:{type:Number}},setup(e){const t=e,s=t.position===ms.QUOTE_INFO,n=me(()=>t.message.sentStatus===f.SentStatus.SENT),i=()=>{ye().dispatch(new ee(Z.ADJUST_MESSAGE_LIST_SCROLL))},o=()=>{i()},r=()=>{i()};return(a,l)=>{var u;const c=Ee("rc-file-transfer-ctrl-provider");return R(),k("div",{class:Pe(["sight-message-container",{"has-quote":(!!e.message.quoteInfo||((u=e.message.reactions)==null?void 0:u.length)>0)&&!s}])},[Re(c,{message:e.message,position:e.position},{default:ht(()=>[y("div",{class:Pe(["rc-kit-sight-message",{"is-quote":s}])},[y("div",j9,[y("img",{src:"data:image/png;base64,"+e.message.content.content,alt:e.message.content.name,onerror:r,onLoad:o},null,40,q9),!s&&n.value?(R(),k("div",K9,[y("img",{class:"play-icon",src:D(kp)},null,8,z9)])):le("",!0),s?le("",!0):(R(),k("span",Q9,se(D(_2)(Math.floor(e.message.content.duration))),1))])],2),l[0]||(l[0]=y("div",{slot:"marked"},null,-1))]),_:1},8,["message","position"])],2)}}}),[["styles",[`.sight-message-container{display:block}.sight-message-container.has-quote{padding:20px}.sight-message-container.has-quote .rc-kit-sight-message{text-align:left}.rc-kit-sight-message{text-align:center}.rc-kit-sight-message.is-quote .wraper>img{max-width:100%;max-height:30px;border-radius:4px}.wraper{position:relative;display:inline-block}.wraper .time{position:absolute;bottom:8px;right:6px;color:#fff;font-size:14px;z-index:2}.wraper>img{max-width:200px;border-radius:10px;border:1px solid #E4E7ED;vertical-align:bottom}.wraper .sight-mask{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;border-radius:10px;z-index:1}.wraper .sight-mask .play-icon{width:36px;height:36px;border:none}.marked{background-color:#0009;height:100%}
|
|
350
|
+
`]]]),Z9={class:"icon"},Y9=["src"],X9={class:"desc"},J9=["title"],e8={class:"size"},t8=Ie(Se({__name:"file-message.ce",props:{message:{type:Object},position:{type:Number}},setup(e){const t=e,s=vs()?10:40,n=vs()?5:8,i=t.position===ms.QUOTE_INFO,o=me(()=>D0(t.message.content.name));return(r,a)=>{const l=Ee("rc-file-transfer-ctrl-provider");return R(),k("div",{class:Pe(["file-message",{"is-quote":i}])},[y("div",Z9,[Re(l,{message:e.message,position:e.position},{default:ht(()=>[y("img",{class:"file-message-icon",src:o.value,alt:"File Icon"},null,8,Y9)]),_:1},8,["message","position"])]),y("div",X9,[y("div",{class:"name",title:e.message.content.name},se(D(E2)(e.message.content.name,D(s),D(n))),9,J9),y("span",e8,se(D(m2)(e.message.content.size)),1)])],2)}}}),[["styles",[`@charset "UTF-8";.file-message{display:flex;align-items:center;padding:20px}.file-message.is-quote{padding:0;font-size:12px;max-width:100%}.file-message.is-quote .icon,.file-message.is-quote .file-message-icon{width:24px;height:24px}.file-message.is-quote .desc{font-size:12px;line-height:1.2;min-width:0;flex:1}.file-message.is-quote .name{max-width:none}.icon{position:relative;width:44px;height:44px;flex-shrink:0}.file-message-icon{width:44px;height:44px;display:block;object-fit:contain}.desc{font-size:12px;line-height:18px;padding:0 6px}.name{max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#020814}@media (max-width: 768px){.name{max-width:200px}}.size{color:#7c838e}
|
|
351
|
+
`]]]),s8={class:"combine-message"},n8={class:"title"},i8={class:"summary-content"},o8=Ie(Se({__name:"combine-v2-message.ce",props:{message:{type:Object},position:{type:Number}},setup(e){const t=e.message.content,{summaryList:s,conversationType:n,nameList:i}=t,o=me(()=>!n||!i?"":n===f.ConversationType.PRIVATE?i.length===2?Je("private.combine-msg.title",...i).value:Je("private.combine-msg.signal.title",...i).value:Je("group.combine-msg.title").value),r=me(()=>(s||[]).map(a=>a.replace(/\n/g," ")).slice(0,4).join(`
|
|
352
|
+
`));return(a,l)=>(R(),k("div",s8,[y("div",n8,se(o.value),1),y("pre",i8,se(r.value),1),l[0]||(l[0]=y("div",{class:"separator"},[y("div",null,"聊天记录")],-1))]))}}),[["styles",[`.combine-message{padding:20px}.title{font-size:16px;padding-bottom:12px;max-width:350px;word-wrap:break-word;word-break:break-all;text-overflow:ellipsis;color:#020814}.summary-content{font-family:inherit;font-size:14px;line-height:20px;overflow:hidden;color:#41464f;max-width:350px;margin:0;white-space:pre-wrap;word-wrap:break-word;word-break:break-all;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical}.separator{border-top:1px solid #E4E7ED;padding-top:20px;margin-top:10px;font-size:14px;color:#41464f}
|
|
353
|
+
`]]]),r8=["src"],a8=Ie(Se({__name:"gif-message.ce",props:{message:{type:Object},position:{type:Number}},setup(e){const t=e,s=N(),n=t.position===ms.QUOTE_INFO,i=()=>{ye().dispatch(new ee(Z.ADJUST_MESSAGE_LIST_SCROLL))},o=()=>{i()},r=()=>{s.value.src=p1,i()};return(a,l)=>{var u;const c=Ee("rc-file-transfer-ctrl-provider");return R(),k("div",{class:Pe(["gif-message-container",{"has-quote":(!!t.message.quoteInfo||((u=t.message.reactions)==null?void 0:u.length)>0)&&!n}])},[Re(c,{message:t.message,position:e.position},{default:ht(()=>[y("div",{class:Pe(["gif-message-box",{"is-quote":n}])},[y("img",{ref_key:"imgRef",ref:s,style:{"max-width":"100%"},src:t.message.content.remoteUrl,onerror:r,onLoad:o,alt:"Git Image"},null,40,r8)],2)]),_:1},8,["message","position"])],2)}}}),[["styles",[`.gif-message-container{display:block}.gif-message-container.has-quote{padding:20px}.gif-message-box{width:247px;height:247px;display:flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid #E4E7ED;overflow:hidden}.gif-message-box.is-quote{width:auto;height:30px;max-width:100%;border-radius:4px}
|
|
354
|
+
`]]]),l8={class:"rc-react-user"},c8=Ie(Se({__name:"reaction.ce",props:{reaction:{type:Object},showusers:{type:Boolean},names:{type:Array},align:{type:Boolean}},emits:["reaction-click","detail-click"],setup(e,{emit:t}){const s=e,n=me(()=>s.reaction.totalCount>99?"99+":s.reaction.totalCount),i=t,o=N(null),r=N(null),a=N(!1);let l=null;const c=()=>{const p=r.value;if(!p){a.value=!1;return}a.value=p.scrollWidth>p.clientWidth},u=()=>{l==null||l.disconnect();const p=o.value;p&&(l=new ResizeObserver(c),l.observe(p),c())};qt(()=>s.names,async()=>{await tt(),c()}),qt(()=>s.showusers,async p=>{p?(await tt(),u()):(l==null||l.disconnect(),a.value=!1)}),ot(()=>{s.showusers&&u()}),Ct(()=>{l==null||l.disconnect()});const d=()=>{i("reaction-click",s.reaction)},h=()=>{i("detail-click",s.reaction)};return(p,m)=>(R(),k("div",{class:Pe(["rc-reaction",{"rc-reaction-active":s.reaction.hasCurrentUserReacted}])},[y("span",{class:"rc-reaction-emoji",onClick:Dt(d,["stop"])},se(s.reaction.reactionId),1),e.showusers?e.names&&e.names.length>0?(R(),k("div",{key:1,class:"rc-reaction-users",ref_key:"usersRef",ref:o},[y("div",{class:"rc-reaction-users-text",ref_key:"usersTextRef",ref:r},[(R(!0),k(Ae,null,pt(e.names,(v,O)=>(R(),k(Ae,null,[y("span",l8,se(v),1),$i(se(O<e.names.length-1?",":""),1)],64))),256))],512),a.value?(R(),k("span",{key:0,onClick:Dt(h,["stop"]),class:"rc-reaction-users-count"},se(D(Je)("reaction.total.users",n.value)),1)):le("",!0)],512)):le("",!0):(R(),k("span",{key:0,class:"rc-reaction-count",onClick:Dt(h,["stop"])},se(n.value),1))],2))}}),[["styles",[`.rc-reaction{display:inline-flex;align-items:center;padding:2px 8px;border-radius:20px;background-color:#f0f0f0;font-size:10px;color:#565960;cursor:pointer;line-height:20px;-webkit-user-select:none;user-select:none;max-width:350px;overflow:hidden}.rc-reaction-active{border:1px solid #0047FFCC;background-color:#bed4ff}.rc-reaction-emoji{border-right:1px solid #A6A6A6;padding-right:6px;margin-right:6px;font-size:14px;line-height:14px;flex-shrink:0}.rc-reaction-count{font-size:12px;color:#565960}.rc-reaction-count:hover{color:#0047ff}.rc-reaction-users{display:flex;align-items:center;flex-shrink:1;min-width:0;overflow:hidden}.rc-reaction-users-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.rc-reaction-users-count{flex-shrink:0}.rc-react-user{padding:0;margin:0;white-space:nowrap}.rc-react-user:hover{color:#0047ff}
|
|
355
|
+
`]]]),u8=Ie(Se({__name:"modal-dialog.ce",props:{width:{type:Number},height:{type:Number,default:-1}},setup(e){const t=e,s=N(!1),n=me(()=>{const o={width:s.value?"80%":`${t.width}px`,margin:s.value?"0 auto":""};return t.height!==-1&&(o.height=`${t.height}px`),o}),i=()=>{s.value=vs()};return ot(()=>{i(),window.addEventListener("resize",i)}),Ct(()=>{window.removeEventListener("resize",i)}),(o,r)=>(R(),k("div",{onClick:r[0]||(r[0]=a=>a.stopPropagation()),style:lt(n.value),class:"rc-kit-modal-dialog"},[hn(o.$slots,"header"),hn(o.$slots,"content"),hn(o.$slots,"footer")],4))}}),[["styles",[`.rc-kit-modal-dialog{background-color:#fff;border-radius:5px}
|
|
356
|
+
`]]]),d8={class:"read-receipt-content"},f8={class:"read-receipt-column"},h8={class:"read-receipt-title"},p8={class:"read-receipt-list-wrapper"},g8={class:"read-receipt-ul"},_8={class:"read-receipt-info"},m8={class:"read-receipt-name"},E8={key:0,class:"read-receipt-time"},v8={class:"read-receipt-column"},C8={class:"read-receipt-title"},y8={class:"read-receipt-list-wrapper"},S8={class:"read-receipt-ul"},T8={class:"read-receipt-info"},I8={class:"read-receipt-name"},w8=Ie(Se({__name:"read-receipt-modal.ce",props:{message:{type:[Object,null]},visible:{type:Boolean},readUsers:{type:Array},unreadUsers:{type:Array},readCount:{type:Number},unreadCount:{type:Number},readLoading:{type:Boolean},unreadLoading:{type:Boolean},position:{type:Object}},emits:["close","read-status-scroll"],setup(e,{emit:t}){const s=e,n=t,i=ye(),o=N(),r=N(0),a=N(0),l=N(1),c=N(),u=N(0),d=N(0),h=N(1),p=()=>{if(!o.value)return;const b=o.value.offsetHeight**2/o.value.scrollHeight,I=Math.floor(b*100)/100,U=Math.max(I,20),K=I/(o.value.offsetHeight-I)/(U/(o.value.offsetHeight-U));l.value=Math.floor(K*100)/100||1,r.value=I<o.value.offsetHeight?Math.floor(U):0},m=()=>{if(!c.value)return;const b=c.value.offsetHeight**2/c.value.scrollHeight,I=Math.floor(b*100)/100,U=Math.max(I,20),K=I/(c.value.offsetHeight-I)/(U/(c.value.offsetHeight-U));h.value=Math.floor(K*100)/100||1,u.value=I<c.value.offsetHeight?Math.floor(U):0},v=b=>{if(!o.value)return;const I=b.detail[0];o.value.scrollTop=I*o.value.scrollHeight/100},O=b=>{if(!c.value)return;const I=b.detail[0];c.value.scrollTop=I*c.value.scrollHeight/100};let w=null,C=null;const g=()=>{p(),m()},_=()=>{o.value&&!w&&(w=new ResizeObserver(()=>{p()}),w.observe(o.value)),c.value&&!C&&(C=new ResizeObserver(()=>{m()}),C.observe(c.value))},E=()=>{w==null||w.disconnect(),w=null,C==null||C.disconnect(),C=null};qt([()=>s.visible,()=>s.readUsers,()=>s.unreadUsers],async([b])=>{b?(await tt(),_(),p(),m()):E()},{deep:!0});const L=b=>{if(!s.visible)return;b.target.closest(".read-receipt-popover")||n("close")};ot(()=>{window.addEventListener("resize",g),window.addEventListener("click",L),s.visible&&tt(()=>{_()})}),On(()=>{E(),window.removeEventListener("resize",g),window.removeEventListener("click",L)});const P=me(()=>{if(!s.position)return{};const b=s.position.anchor||"top-right";let I="";return b==="top-right"?I="translateX(-100%)":b==="bottom-right"?I="translate(-100%, -100%)":b==="top-left"?I="":b==="top-center"?I="translateX(-50%)":b==="bottom-center"?I="translate(-50%, -100%)":I="translateY(-100%)",{top:`${s.position.top}px`,left:`${s.position.left}px`,...I?{transform:I}:{}}}),F=(b,I=10)=>b.length<=I?b:b.substring(0,I)+"...",x=b=>{const{hour:I,minute:U}=Si(b);return`${I}:${U}`},$=(b,I)=>{if(!b||!b.target){console.warn("[ReadReceiptModal] Invalid scroll event:",b);return}const U=b.target,{scrollHeight:K,offsetHeight:ne,scrollTop:te}=U;I==="read"&&o.value?a.value=te*100/ne*l.value||0:I==="unread"&&c.value&&(d.value=te*100/ne*h.value||0),n("read-status-scroll",{scrollTop:te,scrollHeight:K,clientHeight:ne},I)};return(b,I)=>{var ne,te;const U=Ee("rc-icon"),K=Ee("rc-scrollbar-thumb-provider");return e.visible?(R(),k("div",{key:0,class:"read-receipt-popover",style:lt(P.value),onClick:I[2]||(I[2]=Dt(()=>{},["stop"]))},[y("div",d8,[y("div",f8,[y("div",h8,se(D(Ce)("message.list.read-receipt.tooltip.read-count",e.readCount)),1),y("div",p8,[y("div",{class:"read-receipt-list",ref_key:"readListRef",ref:o,onScroll:I[0]||(I[0]=he=>$(he,"read"))},[y("ul",g8,[(R(!0),k(Ae,null,pt(e.readUsers,he=>(R(),k("li",{key:he.userId,class:"read-receipt-item"},[Re(U,{url:D(i).appData.getUserProfile(he.userId).portraitUri,radius:50,width:20,height:20,online:!1},null,8,["url"]),y("div",_8,[y("p",m8,se(F(D(i).appData.getUserProfile(he.userId).name)),1),he.timestamp?(R(),k("p",E8,se(x(he.timestamp)),1)):le("",!0)])]))),128))])],544),r.value?(R(),xe(K,{key:0,onHandlemove:v,height:r.value,move:a.value,scrollheight:(ne=o.value)==null?void 0:ne.scrollHeight,ratio:l.value},null,8,["height","move","scrollheight","ratio"])):le("",!0)])]),y("div",v8,[y("div",C8,se(D(Ce)("message.list.read-receipt.tooltip.unread-count",e.unreadCount)),1),y("div",y8,[y("div",{class:"read-receipt-list",ref_key:"unreadListRef",ref:c,onScroll:I[1]||(I[1]=he=>$(he,"unread"))},[y("ul",S8,[(R(!0),k(Ae,null,pt(e.unreadUsers,he=>(R(),k("li",{key:he.userId,class:"read-receipt-item"},[Re(U,{url:D(i).appData.getUserProfile(he.userId).portraitUri,radius:50,width:20,height:20,online:!1},null,8,["url"]),y("div",T8,[y("p",I8,se(F(D(i).appData.getUserProfile(he.userId).name)),1)])]))),128))])],544),u.value?(R(),xe(K,{key:0,onHandlemove:O,height:u.value,move:d.value,scrollheight:(te=c.value)==null?void 0:te.scrollHeight,ratio:h.value},null,8,["height","move","scrollheight","ratio"])):le("",!0)])])])],4)):le("",!0)}}}),[["styles",[`.read-receipt-popover{position:absolute;background-color:#fff;border-radius:6px;box-shadow:0 5px 16px #00000014;width:344px;z-index:4}.read-receipt-content{display:flex;flex-direction:row;max-height:420px}.read-receipt-column{flex:1;display:flex;flex-direction:column;border-right:1px solid #E5E5E5}.read-receipt-column:last-child{border-right:none}.read-receipt-title{padding:15px 12px 6px;font-size:14px;color:#0e1012}.read-receipt-list-wrapper{flex:1;position:relative;max-height:380px;overflow:hidden}.read-receipt-list{height:100%;overflow-y:scroll;padding:0 0 10px;scrollbar-width:none}.read-receipt-list::-webkit-scrollbar{display:none}.read-receipt-ul{padding:0;margin:0;list-style:none}.read-receipt-item{display:flex;align-items:center;padding:4px 12px}.read-receipt-item:last-child{border-bottom:none}.read-receipt-info{margin-left:4px;flex:1;min-width:0;display:flex;align-items:center;gap:8px}.read-receipt-name{font-size:12px;color:#0e1012;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.read-receipt-time{color:#85909c;font-size:11px;margin:0;flex-shrink:0}.read-receipt-time img{width:12px;height:12px}
|
|
357
|
+
`]]]),R8={class:"rc-imkit-connection-status-content"},M8={key:0,class:"rc-connection-loading-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"},O8={class:"rc-imkit-connection-status-text"},b8=Ie(Se({__name:"connection-status.ce",props:{visible:{type:Boolean},status:{type:Number},code:{type:null}},setup(e){const t=e,s=me(()=>t.status===f.RCConnectionStatus.CONNECTING||t.status===f.RCConnectionStatus.SUSPENDED),n=me(()=>t.status===f.RCConnectionStatus.DISCONNECTED?Ce("connection.status.disconnected"):s.value?Ce("connection.status.connecting"):Ce("connection.status.suspended")),i=me(()=>s.value?"is-warning":"is-error");return(o,r)=>(R(),xe(kl,{name:"rc-status-fade"},{default:ht(()=>[e.visible?(R(),k("div",{key:0,class:Pe(["rc-imkit-connection-status",i.value])},[y("div",R8,[s.value?(R(),k("svg",M8,[...r[0]||(r[0]=[y("path",{d:"M512 1024c-282.7776 0-512-229.2224-512-512s229.2224-512 512-512 512 229.2224 512 512-229.2224 512-512 512z m0-921.6c-225.8944 0-409.6 183.7056-409.6 409.6s183.7056 409.6 409.6 409.6 409.6-183.7056 409.6-409.6-183.7056-409.6-409.6-409.6z",fill:"#0047FF",opacity:"0.3"},null,-1),y("path",{d:"M512 1024C229.2224 1024 0 794.7776 0 512c0-28.2624 22.9376-51.2 51.2-51.2s51.2 22.9376 51.2 51.2c0 225.8944 183.7056 409.6 409.6 409.6s409.6-183.7056 409.6-409.6c0-225.8944-183.7056-409.6-409.6-409.6-28.2624 0-51.2-22.9376-51.2-51.2s22.9376-51.2 51.2-51.2c282.7776 0 512 229.2224 512 512s-229.2224 512-512 512z",fill:"#0047FF"},null,-1)])])):le("",!0),y("span",O8,se(n.value),1)])],2)):le("",!0)]),_:1}))}}),[["styles",[`.rc-imkit-connection-status{position:absolute;top:70px;left:0;right:0;width:100%;height:46px;display:flex;align-items:center;justify-content:center;z-index:100;box-sizing:border-box}.rc-imkit-connection-status-content{display:flex;align-items:center;justify-content:center;gap:8px}.rc-imkit-connection-status-text{font-size:16px;color:#020814;line-height:20px}.rc-imkit-connection-status.is-error{background-color:#ffd5d5}.rc-imkit-connection-status.is-warning{background-color:#e7eeff}.rc-connection-loading-icon{animation:rc-status-spin 1s linear infinite;flex-shrink:0}@keyframes rc-status-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.rc-status-fade-enter-active,.rc-status-fade-leave-active{transition:opacity .3s ease-in-out,transform .3s ease-in-out}.rc-status-fade-enter-from,.rc-status-fade-leave-to{opacity:0;transform:translateY(-10px)}.rc-status-fade-enter-to,.rc-status-fade-leave-from{opacity:1;transform:translateY(0)}
|
|
358
|
+
`]]]),L8={class:"empty"},A8=["src"],x8=Ie(Se({__name:"conversation-empty.ce",props:{desc:{type:String,required:!0}},setup(e){return(t,s)=>(R(),k("div",L8,[y("img",{src:D(f1),alt:"Conversation Empty"},null,8,A8),y("span",null,se(e.desc),1)]))}}),[["styles",[`.empty{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;line-height:24px;background:#fcfcfc;color:#b3b3b3;font-size:16px}.empty img{margin-bottom:10px;width:60px;height:60px}
|
|
359
|
+
`]]]),k8={class:"empty"},U8=["src"],N8=Ie(Se({__name:"conversation-list-empty.ce",props:{desc:{type:String,required:!0}},setup(e){return(t,s)=>(R(),k("div",k8,[y("img",{src:D(f1),alt:"Conversation Empty"},null,8,U8),y("span",null,se(e.desc),1)]))}}),[["styles",[`.empty{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;line-height:24px;background:#FFFFFF;color:#b3b3b3;font-size:16px}.empty img{margin-bottom:10px;width:60px;height:60px}
|
|
360
|
+
`]]]),D8={class:"rc-multi-choice-menu",style:{height:"100px"}},P8={class:"icon-wrapper"},V8=["src"],F8={class:"selected-count"},$8={class:"icon-wrapper"},H8=["src"],G8={class:"button-label"},B8={class:"icon-wrapper"},j8=["src"],q8={class:"button-label"},K8=Ie(Se({__name:"multi-choice-menu.ce",props:{count:{type:Number,required:!0}},setup(e,{emit:t}){const s=N(!1),n=N(!1),i=N(!1),o=e,r=t,a=d=>{o.count!==0&&r(d)},l=me(()=>Ce("multi-choice.menu.selected-count",o.count.toString())),c=Je("multi-choice.menu.forward-item-by-item"),u=Je("multi-choice.menu.delete");return(d,h)=>(R(),k("div",D8,[y("div",{onClick:h[0]||(h[0]=p=>r("cancel")),class:"button cancel",onMouseenter:h[1]||(h[1]=p=>s.value=!0),onMouseleave:h[2]||(h[2]=p=>s.value=!1)},[y("div",P8,[y("img",{src:s.value?D(lp):D(h1),alt:"Cancel"},null,8,V8)])],32),y("span",F8,se(l.value),1),y("div",{onClick:h[3]||(h[3]=p=>a("forward")),class:Pe(["button forward",{disabled:o.count===0}]),onMouseenter:h[4]||(h[4]=p=>n.value=!0),onMouseleave:h[5]||(h[5]=p=>n.value=!1)},[y("div",$8,[y("img",{src:n.value&&o.count>0?D(rp):D(c1),alt:"Forward",style:lt({opacity:o.count===0?.4:1})},null,12,H8)]),y("span",G8,se(D(c)),1)],34),y("div",{onClick:h[6]||(h[6]=p=>a("delete")),class:Pe(["button delete",{disabled:o.count===0}]),onMouseenter:h[7]||(h[7]=p=>i.value=!0),onMouseleave:h[8]||(h[8]=p=>i.value=!1)},[y("div",B8,[y("img",{src:i.value&&o.count>0?D(ap):D(l1),alt:"Delete",style:lt({opacity:o.count===0?.4:1})},null,12,j8)]),y("span",q8,se(D(u)),1)],34)]))}}),[["styles",[`.rc-multi-choice-menu{height:50px;background-color:#fff;display:flex;flex-direction:row;align-items:center;justify-content:center;border-top:1px solid #E4E7ED;font-size:14px;color:#000;padding:0 16px}.selected-count{flex:1 auto;margin-left:24px}.button{display:flex;flex-direction:column;align-items:center;cursor:pointer;margin-left:32px}.button.disabled{cursor:not-allowed}.button.disabled .button-label{color:#c4c4c4}.button:first-child{margin-left:0}.icon-wrapper{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:4px;background-color:transparent;transition:background-color .2s;background-color:#f3f5fa;margin-bottom:4px}.button img{width:20px;height:20px}.cancel .icon-wrapper{background-color:#fff;width:30px;height:30px}.button.forward:hover .icon-wrapper{background-color:#d0ddff}.button.delete:hover .icon-wrapper{background-color:#ffe5e5}.button.cancel:hover .icon-wrapper{background-color:#d0ddff}
|
|
361
|
+
`]]]),Fe={ICON:"rc-icon",ICON_NOTIFICATION:"rc-icon-notification",ICON_TOP:"rc-icon-top",CONVERSATION_LABEL:"rc-conversation-label",CONVERSATION_LATEST_MESSAGE:"rc-conversation-latest-message",CONVERSATION_UNREAD:"rc-conversation-unread",CONVERSATION_LIST_ITEM:"rc-conversation-list-item",CONVERSATION_TIME:"rc-conversation-time",CONVERSATION_LOADING:"rc-conversation-loading",CONVERSATION_LIST_MENU_ITEM:"rc-conversation-list-menu-item",CONVERSATION_EMPTY:"rc-conversation-empty",CONVERSATION_LIST_EMPTY:"rc-conversation-list-empty",MESSAGE_BUBBLE:"rc-message-bubble",MESSAGE_LIST_MENU_ITEM:"rc-message-list-menu-item",MESSAGE_TIME:"rc-message-time",MESSAGE_SELECT:"rc-message-select",MODAL_DIALOG:"rc-modal-dialog",TEXT_MESSAGE:"rc-text-message",IMAGE_MESSAGE:"rc-image-message",UNSUPPORTED_MESSAGE:"rc-unsupported-message",SIGHT_MESSAGE:"rc-sight-message",FILE_MESSAGE:"rc-file-message",REFERENCE_MESSAGE:"rc-reference-message",COMBINE_V2_MESSAGE:"rc-combine-v2-message",GIF_MESSAGE:"rc-gif-message",MULTI_CHOICE_MENU:"rc-multi-choice-menu",MESSAGE_LOCATION:"rc-message-location",MESSAGE_SENT_STATUS:"rc-message-sent-status",CONNECTION_STATUS:"rc-connection-status",READ_RECEIPT_MODAL:"rc-read-receipt-modal",REACTION:"rc-reaction"},z8={[Fe.ICON]:M_,[Fe.ICON_NOTIFICATION]:L_,[Fe.ICON_TOP]:k_,[Fe.CONVERSATION_LABEL]:N_,[Fe.CONVERSATION_LATEST_MESSAGE]:V_,[Fe.CONVERSATION_UNREAD]:$_,[Fe.CONVERSATION_LIST_ITEM]:J_,[Fe.CONVERSATION_TIME]:o9,[Fe.CONVERSATION_LOADING]:l9,[Fe.CONVERSATION_LIST_MENU_ITEM]:n9,[Fe.CONVERSATION_EMPTY]:x8,[Fe.CONVERSATION_LIST_EMPTY]:N8,[Fe.MESSAGE_BUBBLE]:M9,[Fe.MESSAGE_LIST_MENU_ITEM]:A9,[Fe.MESSAGE_TIME]:U9,[Fe.MODAL_DIALOG]:u8,[Fe.MESSAGE_SELECT]:D9,[Fe.TEXT_MESSAGE]:yh,[Fe.IMAGE_MESSAGE]:G9,[Fe.UNSUPPORTED_MESSAGE]:B9,[Fe.SIGHT_MESSAGE]:W9,[Fe.FILE_MESSAGE]:t8,[Fe.REFERENCE_MESSAGE]:yh,[Fe.COMBINE_V2_MESSAGE]:o8,[Fe.GIF_MESSAGE]:a8,[Fe.MULTI_CHOICE_MENU]:K8,[Fe.MESSAGE_LOCATION]:f9,[Fe.MESSAGE_SENT_STATUS]:C9,[Fe.CONNECTION_STATUS]:b8,[Fe.READ_RECEIPT_MODAL]:w8,[Fe.REACTION]:c8};var di=(e=>(e.CONVERSATION_LIST_ITEM_CLICK="ConversationList-Item-Click",e.CONVERSATION_LIST_ITEM_OPTION_CLICK="ConversationList-Item-Option-Click",e.CONVERSATION_NAVI_CLICK="Conversation-Navi-Click",e.CONVERSATION_MESSAGE_OPTION_CLICK="Conversation-Message-Option-Click",e.INPUT_EMOJI_ENTRY_CLICK="Input-Emoji-Entry-Click",e.CONVERSATION_INPUT_EXTEND_CLICK="Conversation-InputExtend-Click",e))(di||{});const Xo=class Xo{constructor(t){B(this,"logger");this.logger=t.createLogger("IMKit","IM")}report(t){Xo._reported.has(t)||(Xo._reported.add(t),this.logger.record(`IMKit-${t}-S`))}};B(Xo,"_reported",new Set);let Ec=Xo;const Q8={class:"rc-conversation-list"},W8=Ie(Se({__name:"conversation-list-provider.ce",setup(e){const t=ye(),s=N(),n=N(null),i=N(!1),o=N(!1),r=N(null),a=N(null),l=Cs({left:0,top:0,display:"none"}),c=N([]),u=["time.format.sunday","time.format.monday","time.format.tueday","time.format.wedday","time.format.thurday","time.format.friday","time.format.satday"],d=Je("conversation.list.empty.desc");qt(()=>l.display,b=>{var I,U,K,ne;b==="block"?(U=(I=r.value)==null?void 0:I.disableScroll)==null||U.call(I):(ne=(K=r.value)==null?void 0:K.enableScroll)==null||ne.call(K)});const h=b=>{const{year:I,month:U,day:K,hour:ne,minute:te,weekDay:he}=Si(b),Y=(Date.now()-b)/1e3/60/60/24;return new Date().toDateString()===new Date(b).toDateString()?`${ne}:${te}`:new Date().toDateString()!==new Date(b).toDateString()&&Y<1||1<=Y&&Y<2?Ce("time.format.yesterday"):2<=Y&&Y<7?Ce(u[he]):Ce("time.format.full",I,U,K)},p=()=>{i.value=vs()},m=async b=>{const I=bt.value.length;bt.value.splice(0,I,...b.data),o.value=bt.value.length>=30,!f.electronExtension.enable()&&t.conversation.updateLatesMessageStatus(bt.value)},v=b=>{b.data.forEach(I=>{const U=bt.value.findIndex(K=>vt(I.conversation,K));U!==-1&&bt.value.splice(U,1),bt.value.splice(I.order,0,JSON.parse(JSON.stringify(I.conversation))),ce.value&&vt(I.conversation,ce.value)&&(Vn.value=I.conversation.unreadCount)})},O=b=>{b.data.forEach(I=>{const U=bt.value.findIndex(K=>vt(I,K));U!==-1&&bt.value.splice(U,1,JSON.parse(JSON.stringify(I))),ce.value&&vt(I,ce.value)&&(Vn.value=I.unreadCount)})},w=b=>{b.data.forEach(I=>{const U=bt.value.findIndex(K=>vt(I,K));U!==-1&&bt.value.splice(U,1)})},C=async(b,I)=>{var De,st,_e,Lt,Os,Ft;I.preventDefault();const U=t.conversationMenu.getMenum(b).map(ds=>({id:ds.id,icon:ds.icon,label:Ce(ds.id),target:b.key}));if(c.value.splice(0,c.value.length,...U),a.value=b.key,l.display="block",await tt(),!n.value||!s.value||!r.value)return;const K=(st=(De=r.value).getViewportRect)==null?void 0:st.call(De),ne=(Lt=(_e=r.value).getViewportSize)==null?void 0:Lt.call(_e),te=(Ft=(Os=r.value).getScrollPosition)==null?void 0:Ft.call(Os);if(!K||!ne||!te)return;const he=I.clientX-K.left+te.left,Y=I.clientY-K.top+te.top;l.top=L(s.value.clientHeight,Y,ne.height,te.top),l.left=P(s.value.clientWidth,he,ne.width,te.left)},g=async(b,I)=>{var K;if(I.preventDefault(),l.display="none",a.value=null,ce.value&&t.conversation.handleConversationDraft(ce.value,(K=He.value)==null?void 0:K.value),b.markUnread&&(b.markUnread=!1,b.markReaded=!0),b.conversationType===j.ConversationType.SYSTEM){const ne=new ee(fe.BEFORE_SYSTEM_CONVERSATION_OPEN,b);if(t.emit(ne,2),ne.isDefaultPrevented())return}else t.statistic(di.CONVERSATION_LIST_ITEM_CLICK);const{code:U}=await t.conversation.openConversation(b);U===Gs.CONVERSATION_LIST_NOT_READY&&t.alert("alert.conversation.list.not.ready")},_=(b,I)=>{t.statistic(di.CONVERSATION_LIST_ITEM_OPTION_CLICK);const U=t.conversation.getCachedConversationByKey(I);t.emit(new ee(fe.CONVERSATION_MENU_ITEM_CLICK,{id:b,conversation:U})),l.display="none",a.value=null},E=async()=>{if(!o.value)return;const b=bt.value[bt.value.length-1],{hasMore:I,code:U,list:K}=await t.conversation.getMoreConversationList(b);U===0&&(bt.value=[...bt.value,...K],o.value=I),!f.electronExtension.enable()&&t.conversation.updateLatesMessageStatus([...K])},L=(b,I,U,K)=>{if(l){const ne=I-K;return U-ne<b?I-b:I}return 0},P=(b,I,U,K)=>{if(l){const ne=I-K;return U-ne<b?I-b:I}return 0},F=b=>{b.button===0&&(l.display="none",a.value=null)},x=b=>!b||b.senderUserId==ye().userId||b.messageType===j.MessageType.RECALL||b.messageType===j.MessageType.RECALL_NOTIFICATION_MESSAGE?"":b.conversationType===j.ConversationType.SYSTEM?t.appData.getSystemProfiles([b.targetId])[0].name:t.appData.getUserProfile(b.senderUserId).name,$=b=>ce.value?!vt(ce.value,b)&&!!b.draft:!!b.draft;return ot(async()=>{p(),window.addEventListener("resize",p),document.body.addEventListener("mouseup",F,!1),window.addEventListener("blur",F,!1),t.addEventListener(Z.CONVERSATION_LIST_RESET,m),t.addEventListener(Z.CONVERSATION_ITEM_ORDER_CHANGE,v),t.addEventListener(Z.CONVERSATION_ITEM_CHANGE,O),t.addEventListener(Z.CONVERSATIN_ITEM_REMOVE,w),bt.value=t.conversation.getCachedConversationList()}),Ct(()=>{window.removeEventListener("resize",p),document.body.removeEventListener("mouseup",F,!1),window.removeEventListener("blur",F,!1),t.removeEventListener(Z.CONVERSATION_LIST_RESET,m),t.removeEventListener(Z.CONVERSATION_ITEM_ORDER_CHANGE,v),t.removeEventListener(Z.CONVERSATION_ITEM_CHANGE,O),t.removeEventListener(Z.CONVERSATIN_ITEM_REMOVE,w)}),(b,I)=>{const U=Ee("rc-conversation-list-menu-item"),K=Ee("rc-conversation-list-item"),ne=Ee("rc-conversation-loading"),te=Ee("rc-scrollbar-provider"),he=Ee("rc-conversation-list-empty");return D(bt).length>0?(R(),xe(te,{key:0,ref_key:"scrollbar",ref:r,onLoading:E},{default:ht(()=>[y("div",{class:"rc-conversation-wrap",ref_key:"conversationWrapRef",ref:n},[i.value&&l.display==="block"?(R(),k("div",{key:0,class:"rc-conversation-list-menu-mask",onClick:I[0]||(I[0]=Y=>F({button:0}))})):le("",!0),y("div",{class:"rc-conversation-list-menu",ref_key:"conversationMenuRef",ref:s,style:lt({top:`${l.top}px`,left:`${l.left}px`,display:l.display})},[(R(!0),k(Ae,null,pt(c.value,Y=>(R(),xe(U,{icon:Y.icon,id:Y.id,label:Y.label,onClick:De=>_(Y.id,Y.target)},null,8,["icon","id","label","onClick"]))),256))],4),y("div",Q8,[(R(!0),k(Ae,null,pt(D(bt),Y=>(R(),xe(K,{message:D(wa)(Y.latestMessage),time:h(Y.updateTime),key:Y.key,conversation:Y,draft:$(Y),statusEnable:D(qh)(Y.latestMessage),name:x(Y.latestMessage),selected:D(ce)?D(vt)(Y,D(ce)):!1,rightClicked:a.value===Y.key,onContextmenu:Dt(De=>C(Y,De),["prevent"]),onMenuClick:De=>C(Y,De.detail[0]),onClick:De=>g(Y,De)},null,8,["message","time","conversation","draft","statusEnable","name","selected","rightClicked","onContextmenu","onMenuClick","onClick"]))),128)),o.value?(R(),xe(ne,{key:0})):le("",!0)])],512)]),_:1},512)):(R(),xe(he,{key:1,desc:D(d)},null,8,["desc"]))}}}),[["styles",[`:host{display:block;height:100%}.rc-conversation-wrap{padding:0 10px;position:relative}.rc-conversation-list-menu{position:absolute;top:0;left:0;z-index:101;padding:7px 4px;background-color:#fff;border-radius:6px;box-shadow:0 4px 15.9px #0000001c;min-width:95px}.rc-conversation-list-menu-mask{position:absolute;top:0;left:0;z-index:2;width:100%;height:100%}
|
|
362
|
+
`]]]),Z8=`.rc-kit-modal-provider{background-color:#00000080;position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:center;z-index:10000000;overflow:hidden}
|
|
363
|
+
`,Y8={},X8={class:"rc-kit-modal-provider"};function J8(e,t){return R(),k("div",X8,[hn(e.$slots,"default")])}const e7=Ie(Y8,[["render",J8],["styles",[Z8]]]),t7={class:"modal-confirm-provider"},s7={class:"rc-kit-modal-dialog-header",slot:"header"},n7={class:"rc-kit-modal-dialog-content",slot:"content"},i7={class:"rc-kit-modal-dialog-footer",slot:"footer"},o7=Ie(Se({__name:"modal-confirm-provider.ce",setup(e,{emit:t}){const s=t,n=ye(),i=N(""),o=Ce("dialog.tips.msg"),r=Ce("dialog.cancel.msg"),a=Ce("dialog.confirm.msg"),l=d=>{s("cancel")},c=d=>{s("confirm")},u=d=>{i.value=d.data};return ot(()=>{n.addEventListener(fe.CONFIRM_EVENT,u)}),Ct(()=>{n.removeEventListener(fe.CONFIRM_EVENT,u)}),(d,h)=>{const p=Ee("rc-modal-dialog"),m=Ee("rc-modal-provider");return R(),k("div",t7,[Re(m,{onClick:l},{default:ht(()=>[Re(p,{width:286},{default:ht(()=>[y("div",s7,se(D(o)),1),y("div",n7,se(i.value),1),y("div",i7,[y("button",{class:"cancel",onClick:l},se(D(r)),1),y("button",{class:"confirm",onClick:c},se(D(a)),1)])]),_:1})]),_:1})])}}}),[["styles",[`.rc-kit-modal-dialog-header{font-size:14px;border-bottom:1px solid #EAEAEA;padding:10px 30px;line-height:20px}.rc-kit-modal-dialog-content{font-size:12px;padding:15px 30px}.rc-kit-modal-dialog-footer{display:flex;justify-content:center;padding:20px}.rc-kit-modal-dialog-footer button{min-width:70px;text-decoration:none;border-radius:3px;outline:none;font-size:12px;padding:5px 15px;border:0;margin:0 23px;cursor:pointer}.rc-kit-modal-dialog-footer .cancel{border:1px solid #DEDEDE;background-color:#f5f5f5}.rc-kit-modal-dialog-footer .confirm{border:1px solid #0099FF;background-color:#09f;color:#fff}
|
|
364
|
+
`]]]),r7={class:"modal-alert-provider"},a7={class:"rc-kit-modal-dialog-header",slot:"header"},l7={class:"rc-kit-modal-dialog-content",slot:"content"},c7={class:"rc-kit-modal-dialog-footer",slot:"footer"},u7=Ie(Se({__name:"modal-alert-provider.ce",setup(e,{emit:t}){const s=t,n=ye(),i=N(""),o=Ce("dialog.tips.msg"),r=Ce("dialog.cancel.msg"),a=c=>{s("cancel")},l=c=>{i.value=c.data};return ot(()=>{n.addEventListener(fe.ALERT_EVENT,l)}),Ct(()=>{n.removeEventListener(fe.ALERT_EVENT,l)}),(c,u)=>{const d=Ee("rc-modal-dialog"),h=Ee("rc-modal-provider");return R(),k("div",r7,[Re(h,{onClick:a},{default:ht(()=>[Re(d,{width:286,onCancel:a},{default:ht(()=>[y("div",a7,se(D(o)),1),y("div",l7,se(i.value),1),y("div",c7,[y("button",{class:"cancel",onClick:a},se(D(r)),1)])]),_:1})]),_:1})])}}}),[["styles",[`.rc-kit-modal-dialog-header{font-size:14px;border-bottom:1px solid #EAEAEA;padding:10px 30px;line-height:20px}.rc-kit-modal-dialog-content{font-size:12px;padding:15px 30px}.rc-kit-modal-dialog-footer{display:flex;justify-content:center;padding:20px}.rc-kit-modal-dialog-footer button{min-width:70px;text-decoration:none;border-radius:3px;outline:none;font-size:12px;padding:5px 15px;border:0;margin:0 23px;cursor:pointer}.rc-kit-modal-dialog-footer .cancel{border:1px solid #DEDEDE;background-color:#f5f5f5}.rc-kit-modal-dialog-footer .confirm{border:1px solid #0099FF;background-color:#09f;color:#fff}
|
|
365
|
+
`]]]),d7={class:"modal-forwarding-provider"},f7={class:"rc-kit-modal-dialog-header",slot:"header"},h7={class:"rc-kit-modal-dialog-content",slot:"content"},p7={class:"search"},g7=["placeholder"],_7=["src"],m7={class:"list"},E7=["onClick"],v7=["for"],C7=["id","value"],y7={class:"custom"},S7=["src"],T7={class:"conversation"},I7={class:"name"},w7={class:"rc-kit-modal-dialog-footer",slot:"footer"},R7=["disabled"],M7=Ie(Se({__name:"modal-forwarding-provider.ce",setup(e,{emit:t}){const s=t,n=N(""),i=N([]),o=N([]),r=Ce("dialog.forwarding.msg"),a=Ce("dialog.cancel.msg"),l=Ce("dialog.forwarding.confirm"),c=Ce("input.placeholder.search");let u=null;const d=()=>bt.value.filter(w=>[f.ConversationType.PRIVATE,f.ConversationType.GROUP].includes(w.conversationType)&&w.name.includes(n.value)),h=()=>{u||(u=setTimeout(()=>{o.value=d(),clearTimeout(u),u=null},500))},p=w=>{s("cancel")},m=w=>{i.value.length!==0&&s("confirm",{list:i.value})},v=w=>{const C=i.value.findIndex(g=>g.key===w.key);if(C>-1){i.value.splice(C,1);return}i.value.push(w)},O=w=>i.value.some(C=>C.key===w.key);return ot(()=>{o.value.splice(0,o.value.length,...d())}),(w,C)=>{const g=Ee("rc-icon"),_=Ee("rc-modal-dialog"),E=Ee("rc-modal-provider");return R(),k("div",d7,[Re(E,{onClick:p},{default:ht(()=>[Re(_,{width:520,height:450},{default:ht(()=>[y("div",f7,se(D(r)),1),y("div",h7,[y("div",p7,[Ss(y("input",{class:"search-input","onUpdate:modelValue":C[0]||(C[0]=L=>n.value=L),type:"text",placeholder:D(c),onInput:h},null,40,g7),[[Uo,n.value]]),y("img",{class:"search-icon",src:D(Rp),alt:"SEARCH_ICON"},null,8,_7)]),y("div",m7,[(R(!0),k(Ae,null,pt(o.value,L=>(R(),k("div",{class:Pe(["list-item",{"is-selected":O(L)}]),key:L.key,onClick:P=>v(L)},[y("div",{class:"checkbox",onClick:C[2]||(C[2]=Dt(()=>{},["stop"]))},[y("label",{for:L.key},[Ss(y("input",{id:L.key,type:"checkbox","onUpdate:modelValue":C[1]||(C[1]=P=>i.value=P),value:L},null,8,C7),[[No,i.value]]),y("span",y7,[y("img",{src:D(u1),alt:"CHECKED_ICON"},null,8,S7)])],8,v7)]),y("div",T7,[Re(g,{class:"profile",width:32,height:32,radius:50,url:L.portraitUri,online:!1},null,8,["url"]),y("span",I7,se(L.name),1)])],10,E7))),128))])]),y("div",w7,[y("button",{class:"cancel",onClick:p},se(D(a)),1),y("button",{class:"confirm",disabled:i.value.length===0,onClick:m},se(D(l)),9,R7)])]),_:1})]),_:1})])}}}),[["styles",[`input{border:0;padding:0;outline:none}.modal-forwarding-provider .rc-kit-modal-provider{background-color:#00000080}.modal-forwarding-provider .rc-kit-modal-dialog{width:520px;height:450px;display:flex;flex-direction:column;max-height:450px;overflow:hidden}@media (max-width: 768px){.modal-forwarding-provider .rc-kit-modal-dialog{width:80%!important;height:450px}.rc-kit-modal-dialog-header{width:auto;padding-left:20px;padding-right:20px}.search .search-input{width:100%;max-width:400px}}.rc-kit-modal-dialog-header{font-size:18px;padding:40px 0 20px;line-height:20px;text-align:center;width:500px;margin:0 auto;flex-shrink:0}.rc-kit-modal-dialog-content{padding:0;flex:1;flex-direction:column;overflow:hidden}.rc-kit-modal-dialog-content .search{font-size:14px;margin:0 20px 16px;position:relative;flex-shrink:0}.search .search-input{padding:8px 28px 8px 30px;border:.5px solid #E4E7ED;background-color:#fff;width:100%;box-sizing:border-box;border-radius:30px;font-size:14px;color:#41464f}.search .search-input::placeholder{color:#41464f}.search .search-icon{position:absolute;top:8px;left:10px}.list{min-height:0;padding:0 20px;overflow-y:auto;overflow-x:hidden;background-color:#fff;font-size:12px;height:214px}.list-item{display:flex;align-items:center;border-radius:8px;margin-bottom:3px;cursor:pointer;padding:6px 10px;background-color:transparent}.list-item:hover{background-color:#f3f5fa}.list-item.is-selected,.list-item.is-selected:hover{background-color:#d2e1fe}.list .conversation{display:flex;align-items:center;overflow:hidden;min-width:0}.list .conversation .profile{padding:0 6px;flex-shrink:0}.list .conversation .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:14px;font-weight:500;color:#41464f}.list-item .checkbox{flex-shrink:0}.list-item .checkbox input[type=checkbox]{display:none}.list-item .checkbox .custom{display:flex;width:14px;height:14px;border:1px solid #0000001A;border-radius:50%;background-color:#fff;font-size:0;justify-content:center;align-items:center;cursor:pointer}.list-item .checkbox input[type=checkbox]:checked+.custom{background-color:#16d258;border-color:#16d258}.list-item .checkbox input[type=checkbox]:checked+.custom img{display:block;width:11px}.list-item .checkbox .custom img{display:none}.rc-kit-modal-dialog-content{font-size:14px;text-align:center}.rc-kit-modal-dialog-footer{display:flex;justify-content:center;padding:30px 0 40px}.rc-kit-modal-dialog-footer button{min-width:70px;text-decoration:none;border-radius:4px;outline:none;font-size:16px;border:0;margin:0 15px;cursor:pointer;width:110px;height:36px;background-color:#f3f5fa}.rc-kit-modal-dialog-footer .cancel{color:#020814}.rc-kit-modal-dialog-footer .confirm{color:#fff;background-color:#0047ff}.rc-kit-modal-dialog-footer .confirm:disabled{color:#ccc;background-color:#f3f5fa;cursor:not-allowed}.cancel:hover{background-color:#e3e7ef}.confirm:hover:not(:disabled){background-color:#366eff}
|
|
366
|
+
`]]]),O7={class:"modal-delete-provider"},b7={class:"rc-kit-modal-dialog-header",slot:"header"},L7={class:"rc-kit-modal-dialog-content",slot:"content"},A7={class:"rc-kit-modal-dialog-footer",slot:"footer"},x7=Ie(Se({__name:"modal-delete-message-provider.ce",props:{recallEnable:{type:String}},setup(e,{emit:t}){const s=t,n=N(!1),i=Ce("dialog.delete.msg"),o=Ce("dialog.delete.msg.content"),r=Ce("dialog.cancel.msg"),a=Ce("dialog.delete.msg.confirm"),l=u=>{s("cancel")},c=u=>{s("confirm",n.value)};return(u,d)=>{const h=Ee("rc-modal-dialog"),p=Ee("rc-modal-provider");return R(),k("div",O7,[Re(p,{onClick:l},{default:ht(()=>[Re(h,{width:392},{default:ht(()=>[y("div",b7,se(D(i)),1),y("div",L7,se(D(o)),1),y("div",A7,[y("button",{class:"cancel",onClick:l},se(D(r)),1),y("button",{class:"confirm",onClick:c},se(D(a)),1)])]),_:1})]),_:1})])}}}),[["styles",[`.rc-kit-modal-dialog-header{font-size:18px;padding:40px 0 20px;line-height:20px;text-align:center;font-weight:500}.rc-kit-modal-dialog-content{font-size:14px;text-align:center}.rc-kit-modal-dialog-footer{display:flex;justify-content:center;padding:30px 0 40px}.rc-kit-modal-dialog-footer button{min-width:70px;text-decoration:none;border-radius:4px;outline:none;font-size:16px;border:0;margin:0 15px;cursor:pointer;width:110px;height:36px;background-color:#f3f5fa}.rc-kit-modal-dialog-footer .cancel{color:#020814}.rc-kit-modal-dialog-footer .confirm{color:#ff5a50}.cancel:hover,.confirm:hover{background-color:#e3e7ef}.content-check{display:flex;margin-top:15px;align-items:center}.checkbox input[type=checkbox]{display:none}.checkbox .custom{display:flex;width:15px;height:15px;border:1px solid #ABB8CB;border-radius:3px;background-color:#fff;font-size:0;justify-content:center;align-items:center;cursor:pointer;margin-right:7px;box-sizing:border-box}.checkbox input[type=checkbox]:checked+.custom{background-color:#09f;border-color:#09f}
|
|
367
|
+
`]]]),k7={class:"modal-media-message-provider"},U7={class:"media-message-container"},N7={class:"menu"},D7=["src"],P7=["src"],V7=["src"],F7=["src"],$7={class:"loading-spinner-svg",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40"},H7=["src"],G7=["poster","src"],B7=Ie(Se({__name:"modal-media-message-provider.ce",props:{url:{type:String},userId:{type:String},sentTime:{type:String},messageType:{type:String},messageUid:{type:String},content:{type:String}},setup(e,{emit:t}){const s=t,n=e,i=_=>{s("cancel")},o=N(50),r=N(80),a=N(!1),l=N(!1),c=N(!1),u=N(!1),d=(_,E)=>{if(E.stopPropagation(),n.messageType===j.MessageType.SIGHT){if(r.value+_>100||r.value+_<50)return;r.value=r.value+_}else{if(v.value&&O.value&&(g.value=v.value.clientHeight>O.value.clientHeight),o.value+_>70||o.value+_<10)return;o.value=o.value+_}},h=()=>{s("download")},p=N(!0),m=_=>{_.data.forEach(E=>{const{recallMsg:L}=E;L&&L.content.messageUId===n.messageUid&&(ye().alert("alert.message-deleted"),s("cancel"))})},v=N(),O=N(),w=()=>{p.value=!1,v.value.src=p1,v.value.style.width="100px",v.value.style.height="100px"},C=()=>{p.value=!1,v.value&&O.value&&(g.value=v.value.clientHeight>O.value.clientHeight)},g=N(!1);return ot(()=>{ye().addEventListener(fe.MESSAGES_DELETED,m)}),Ct(()=>{ye().removeEventListener(fe.MESSAGES_DELETED,m)}),(_,E)=>{const L=Ee("rc-modal-provider");return R(),k("div",k7,[Re(L,{onClick:i},{default:ht(()=>[y("div",U7,[y("div",{class:"media-message-header",onClick:E[10]||(E[10]=P=>P.stopPropagation())},[y("div",N7,[y("div",{class:"btn-wrapper",onMouseenter:E[1]||(E[1]=P=>a.value=!0),onMouseleave:E[2]||(E[2]=P=>a.value=!1)},[y("img",{class:"btn",onClick:E[0]||(E[0]=P=>d(5,P)),src:a.value?D(W0):D(Q0),alt:"MODAL_UP_ICON"},null,8,D7)],32),y("div",{class:"btn-wrapper",onMouseenter:E[4]||(E[4]=P=>l.value=!0),onMouseleave:E[5]||(E[5]=P=>l.value=!1)},[y("img",{class:"btn",onClick:E[3]||(E[3]=P=>d(-5,P)),src:l.value?D(Y0):D(Z0),alt:"MODAL_DOWN_ICON"},null,8,P7)],32),y("div",{class:"btn-wrapper",onMouseenter:E[6]||(E[6]=P=>c.value=!0),onMouseleave:E[7]||(E[7]=P=>c.value=!1)},[y("img",{class:"btn",onClick:h,src:c.value?D(X0):D(H0),alt:"MODAL_DOWNLOAD_ICON"},null,8,V7)],32),y("div",{class:"btn-wrapper",onMouseenter:E[8]||(E[8]=P=>u.value=!0),onMouseleave:E[9]||(E[9]=P=>u.value=!1)},[y("img",{class:"btn",onClick:i,src:u.value?D(a1):D(r1),alt:"MODAL_CLOSE_ICON"},null,8,F7)],32)])]),n.messageType===D(j.MessageType).IMAGE||n.messageType===D(j.MessageType).GIF?(R(),k("div",{key:0,class:Pe(["media-message-box",{"self-start":g.value}]),ref_key:"boxRef",ref:O,style:{"max-height":"calc(100% - 54px)"}},[y("div",{class:"media-message",style:lt({width:`${o.value}%`})},[Ss((R(),k("svg",$7,[...E[13]||(E[13]=[y("path",{d:"M512 1024c-282.7776 0-512-229.2224-512-512s229.2224-512 512-512 512 229.2224 512 512-229.2224 512-512 512z m0-921.6c-225.8944 0-409.6 183.7056-409.6 409.6s183.7056 409.6 409.6 409.6 409.6-183.7056 409.6-409.6-183.7056-409.6-409.6-409.6z",fill:"#ffffff",opacity:"0.3"},null,-1),y("path",{d:"M512 1024C229.2224 1024 0 794.7776 0 512c0-28.2624 22.9376-51.2 51.2-51.2s51.2 22.9376 51.2 51.2c0 225.8944 183.7056 409.6 409.6 409.6s409.6-183.7056 409.6-409.6c0-225.8944-183.7056-409.6-409.6-409.6-28.2624 0-51.2-22.9376-51.2-51.2s22.9376-51.2 51.2-51.2c282.7776 0 512 229.2224 512 512s-229.2224 512-512 512z",fill:"#ffffff"},null,-1)])],512)),[[Zs,p.value]]),Ss(y("img",{style:{width:"100%"},ref_key:"imgRef",ref:v,onClick:E[11]||(E[11]=P=>P.stopPropagation()),src:n.url,onLoad:C,onError:w,alt:"image"},null,40,H7),[[Zs,!p.value]])],4)],2)):le("",!0),n.messageType===D(j.MessageType).SIGHT?(R(),k("div",{key:1,class:"media-message-box",ref_key:"boxRef",ref:O,style:{"max-height":"calc(100% - 54px)"}},[y("div",{class:"media-message",style:lt({height:`${r.value}%`})},[y("video",{poster:`data:image/png;base64,${n.content}`,style:{height:"100%"},onClick:E[12]||(E[12]=P=>P.stopPropagation()),src:n.url,controls:""},[...E[14]||(E[14]=[y("track",{kind:"subtitles"},null,-1),y("track",{kind:"description"},null,-1)])],8,G7)],4)],512)):le("",!0)])]),_:1})])}}}),[["styles",[`p{margin:0;padding:0}.modal-media-message-provider :deep(.rc-kit-modal-provider){background-color:#00000080}.media-message-container{width:100%;height:100%;display:flex;flex-direction:column;position:relative}.media-message-box{width:100%;flex:1;overflow-y:auto;display:flex;justify-content:center;align-items:center;min-height:0}.media-message-box.self-start{align-items:self-start}.media-message-header{width:100%;height:54px;display:flex;justify-content:flex-end;align-items:center;padding:0 25px;background-color:#fff;box-sizing:border-box;z-index:2;flex-shrink:0}.media-message{width:50%;font-size:0;display:flex;justify-content:center;z-index:1;max-width:100%}.loading-spinner-svg{animation:spin 1s linear infinite;margin:20px auto}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.menu{display:flex;align-items:center;gap:24px;z-index:2}.btn-wrapper{width:30px;height:30px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:8px;transition:background-color .2s}.btn-wrapper:hover{background-color:#d0ddff}.btn{width:30px;height:30px;cursor:pointer;display:block}video,img{max-width:100%;max-height:100%}
|
|
368
|
+
`]]]),j7={class:"rc-take-photo-provider"},q7={class:"take-photo-header"},K7=["src"],z7=["srcObject"],Q7=["src"],W7={key:0,class:"message"},Z7={key:1,class:"floating-buttons"},Y7=["src"],X7={class:"button-text"},J7=["src"],em=["src"],tm={key:2,class:"button-text"},sm=Ie(Se({__name:"modal-take-photo-provider.ce",setup(e,{emit:t}){const s=t,n=N(),i=N(),o=N(),r=N(null),a=N(""),l=N(!1);let c=null,u=null;const d=N(""),h=me(()=>d.value?Je("take-photo.msg.camera-startup-failure",d.value).value:r.value?"":Je("take-photo.msg.camera-starting").value),p=()=>{a.value&&(URL.revokeObjectURL(a.value),a.value=""),c=null,O(),s("cancel")},m=async()=>{URL.revokeObjectURL(a.value),a.value="",c=null,await tt()},v=async()=>{if(u)return u;try{u=navigator.mediaDevices.getUserMedia({video:{width:960,height:720,aspectRatio:4/3}}),r.value=await u}catch(E){d.value=E.message}},O=async()=>{if(u){const E=await u;E==null||E.getTracks().forEach(L=>L.stop())}r.value&&r.value.getTracks().forEach(E=>E.stop()),n.value&&(n.value.srcObject=null),u=null,r.value=null},w=()=>new Promise(E=>{const L=document.createElement("canvas"),P=n.value,{width:F,height:x}=P;L.width=F,L.height=x,L.getContext("2d").drawImage(P,0,0,F,x),L.toBlob(b=>E(b),"image/jpg",1)}),C=async()=>{c=await w(),a.value=URL.createObjectURL(c),await tt(),_()},g=()=>{const E=ye();E.message.sendFiles(E.conversation.getOpenedConversation(),[new File([c],`screenshot-${Date.now()}.jpg`,{type:"image/jpg"})]),p(),s("cancel")},_=()=>{const E=n.value,L=i.value,P=o.value;if(!L)return;const{scrollWidth:F,scrollHeight:x}=L,$=4/3;let b=F,I=F/$;I>x&&(I=x,b=x*$),E&&(E.width=b,E.height=I),P&&(P.width=b,P.height=I),console.log("resize",b,I,n.value,i.value)};return ot(async()=>{ye().addEventListener(fe.CONVERSATION_SELECTED,p),window.addEventListener("resize",_),await v(),await tt(),n.value&&n.value.addEventListener("loadedmetadata",_),_()}),Ct(()=>{ye().removeEventListener(fe.CONVERSATION_SELECTED,p),window.removeEventListener("resize",_),n.value&&n.value.removeEventListener("loadedmetadata",_),O()}),(E,L)=>{const P=Ee("rc-modal-provider");return R(),k("div",j7,[Re(P,{onClick:p},{default:ht(()=>[y("div",{class:"take-photo-container",onClick:L[3]||(L[3]=F=>F.stopPropagation())},[y("div",q7,[y("div",{class:"btn-wrapper",onMouseenter:L[0]||(L[0]=F=>l.value=!0),onMouseleave:L[1]||(L[1]=F=>l.value=!1)},[y("img",{class:"btn",onClick:p,src:l.value?D(a1):D(r1),alt:"Close Icon"},null,8,K7)],32)]),y("div",{class:"video-container",ref_key:"videoContainer",ref:i},[Ss(y("video",{ref_key:"videoDom",ref:n,playsinline:"",srcObject:r.value,autoplay:""},null,8,z7),[[Zs,!a.value&&r.value]]),Ss(y("img",{ref_key:"imageDom",ref:o,src:a.value,alt:"Photo"},null,8,Q7),[[Zs,a.value]]),r.value?le("",!0):(R(),k("span",W7,se(h.value),1)),r.value?(R(),k("div",Z7,[a.value?(R(),k("div",{key:0,class:"floating-button retry-button",onClick:m},[y("img",{src:D(Op),alt:"Retry Icon"},null,8,Y7),y("span",X7,se(D(Je)("take-photo.retry-btn.label")),1)])):le("",!0),y("div",{class:"floating-button action-button",onClick:L[2]||(L[2]=F=>a.value?g():C())},[a.value?(R(),k("img",{key:1,src:D(J0),alt:"Send Icon"},null,8,em)):(R(),k("img",{key:0,class:"camera-icon",src:D(bp),alt:"Camera Icon"},null,8,J7)),a.value?(R(),k("span",tm,se(D(Je)("take-photo.send-btn.label")),1)):le("",!0)])])):le("",!0)],512)])]),_:1})])}}}),[["styles",[`.rc-take-photo-provider :deep(.rc-kit-modal-provider){background-color:#00000080}.take-photo-container{width:100%;height:100%;display:flex;flex-direction:column;position:relative;background:#00000080}.take-photo-header{width:100%;height:54px;display:flex;justify-content:flex-end;align-items:center;padding:0 25px;background-color:#fff;box-sizing:border-box;z-index:2;flex-shrink:0}.btn-wrapper{width:30px;height:30px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:8px;transition:background-color .2s}.btn-wrapper:hover{background-color:#d0ddff}.btn{width:30px;height:30px;cursor:pointer;display:block}.video-container{width:100%;display:flex;justify-content:center;align-items:center;min-height:0;position:relative;flex:1;overflow:hidden}.message{color:#a1a1a1;font-size:14px;margin:0 auto;position:absolute;z-index:1}.video-container video,.video-container img{object-fit:contain;width:auto;height:auto;max-width:80%;max-height:80%}.floating-buttons{position:absolute;bottom:12%;display:flex;align-items:center;gap:20px;z-index:3}.floating-button{width:78px;height:34px;border-radius:30px;background-color:#0047ff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .2s;color:#fff;font-size:14px}.floating-button img{width:14px;height:14px;display:block}.retry-button img{width:14px;height:14px}.floating-button .camera-icon{width:20px;height:20px}.button-text{margin-left:4px}
|
|
369
|
+
`]]]),nm={class:"rc-imkit-combine-header"},im={class:"title"},om={class:"rc-imkit-combine-body"},rm={key:0,class:"rc-imkit-combine-body-iframe"},am={key:0,class:"loading"},lm=["src"],cm={style:{padding:"10px 20px"}},um={key:1,class:"rc-kit-msg-list-item",style:{"flex-direction":"row"}},dm=["onClick"],fm={class:"name"},hm={class:"message-body-wrapper"},pm={class:"footer"},gm={class:"time"},_m=Ie(Se({__name:"modal-combine-provider.ce",props:{url:{type:String},content:{type:String},type:{type:String},messageUid:{type:String}},setup(e,{emit:t}){const s=t,n=e,i=N(JSON.parse(n.content)),o=N(!0),r=["time.format.sunday","time.format.monday","time.format.tueday","time.format.wedday","time.format.thurday","time.format.friday","time.format.satday"],a=C=>{const{year:g,month:_,day:E,weekDay:L}=Si(C),P=(Date.now()-C)/1e3/60/60/24;let F=Ce("time.format.full",g,_,E);return new Date().toDateString()===new Date(C).toDateString()&&(F=Ce("time.format.today")),(new Date().toDateString()!==new Date(C).toDateString()&&P<1||1<=P&&P<2)&&(F=Ce("time.format.yesterday")),2<=P&&P<7&&(F=Ce(r[L])),F},l=me(()=>{const C=i.value.msgList,g=[];if(C){for(let _=C.length-1;_>=0;_-=1){const E=C[_];g.unshift(E);const L=C[_-1];L?new Date(E.timestamp).toDateString()!==new Date(L.timestamp).toDateString()&&g.unshift(a(E.timestamp)):g.unshift(a(E.timestamp))}return g}}),c=C=>ye().appData.getUserProfile(C.fromUserId),u=me(()=>!i.value||!i.value.conversationType||!i.value.nameList?"":i.value.conversationType===f.ConversationType.PRIVATE?i.value.nameList.length===2?Je("private.combine-msg.title",...i.value.nameList).value:Je("private.combine-msg.signal.title",...i.value.nameList).value:Je("group.combine-msg.title").value),d=C=>{const{hour:g,minute:_}=Si(C);return`${g}:${_}`},h=C=>{switch(C.objectName){case f.MessageType.IMAGE:case f.MessageType.SIGHT:const g={senderUserId:C.fromUserId,sentTime:C.timestamp,messageType:C.objectName,content:C.content};ye().emit(new ee(fe.MEDIA_MESSAGE_MODAL_EVENT,g));break;case f.MessageType.COMBINE:case f.MessageType.COMBINE_V2:ye().emit(new ee(fe.COMBINE_MESSAGE_MODAL_EVENT,C));break}},p=C=>{const g={messageType:C.objectName,content:C.content,senderUserId:C.fromUserId,targetId:C.targetId,channelId:"",conversationType:1,sentTime:0,receivedTime:0,messageUId:"",messageDirection:1,isPersited:!0,isCounted:!0,isOffLineMessage:!1,canIncludeExpansion:!0,receivedStatus:1};s("download",g)},m=C=>{ye().emit(new ee(fe.MESSAGE_LINK_CLICK,C.detail[0]))},v=C=>{s("cancel")},O=()=>{o.value=!1},w=C=>{C.data.forEach(g=>{const{recallMsg:_}=g;_&&_.content.messageUId===n.messageUid&&(ye().alert("alert.message-deleted"),s("cancel"))})};return ot(()=>{i.value.remoteUrl&&fetch(i.value.remoteUrl).then(C=>C.json()).then(C=>{i.value.msgList=C}),ye().addEventListener(fe.MESSAGES_DELETED,w)}),Ct(()=>{ye().removeEventListener(fe.MESSAGES_DELETED,w)}),(C,g)=>{const _=Ee("rc-message-time"),E=Ee("rc-icon"),L=Ee("rc-scrollbar-provider");return R(),k("div",{class:"modal-combine-provider",onClick:v},[y("div",{class:"rc-imkit-combine-box",onClick:g[0]||(g[0]=P=>P.stopPropagation())},[y("div",nm,[y("div",im,se(u.value),1),y("span",{class:"close",onClick:v},"x")]),y("div",om,[n.type===D(f.MessageType).COMBINE?(R(),k("div",rm,[o.value?(R(),k("div",am,"加载中.....")):le("",!0),y("iframe",{class:"rc-imkit-iframe",src:n.url,title:"Iframe",onLoad:O},null,40,lm)])):(R(),xe(L,{key:1},{default:ht(()=>[y("div",cm,[(R(!0),k(Ae,null,pt(l.value,P=>(R(),k("div",null,[typeof P=="string"?(R(),xe(_,{key:0,style:{"margin-bottom":"10px"},time:P},null,8,["time"])):(R(),k("div",um,[Re(E,{class:"rc-kit-msg-avatar",url:c(P).portraitUri,width:32,height:32,radius:50,online:!1},null,8,["url"]),y("div",{class:"rc-kit-msg-bubble",onClick:F=>h(P)},[y("p",fm,se(c(P).name),1),y("div",hm,[(R(),xe(Vr(D(Ia)(P.objectName)),{onDownload:F=>p(P),onLink:m,userId:P.fromUserId,position:D(ms).MESSAGE_LIST,message:{...P,messageType:P.objectName,messageDirection:D(f.MessageDirection).RECEIVE,messageUId:`${P.timestamp}`}},null,40,["onDownload","userId","position","message"]))]),y("div",pm,[y("span",gm,se(d(P.timestamp)),1)])],8,dm)]))]))),256))])]),_:1}))])])])}}}),[["styles",[`.modal-combine-provider{flex-direction:column;position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;background-color:#00000080}.rc-imkit-combine-body-iframe{height:100%;background-color:#fff}.rc-imkit-combine-box{background-color:#e6ecf3;height:70%;width:50%;box-shadow:0 10px 16px #0003;display:flex;flex-direction:column;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:8px;overflow:hidden}.rc-imkit-combine-header{background-color:#fff;position:relative}.title{text-align:center;line-height:19px;font-size:12px;padding:11px 0}.close{position:absolute;top:50%;right:15px;padding:0 5px;transform:translateY(-50%);cursor:pointer}.rc-imkit-combine-body{flex:1;overflow:hidden}.loading{font-size:18px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.rc-imkit-iframe{height:100%;width:100%;overflow:scroll;border:0}.rc-kit-msg-list-item{display:flex;width:100%;font-size:12px;margin-bottom:20px}.rc-kit-msg-avatar{padding:0 8px}.rc-kit-msg-bubble{padding:0 10px 8px 12px;border-radius:0 8px 8px;font-size:12px;line-height:16px;background-color:#fff}p{margin:0 0 5px;line-height:16px;padding:0;word-break:break-word;font-size:12px}.name{font-weight:500;font-size:12px}.footer{text-align:right;margin-top:5px;font-size:10px;display:flex;align-items:center;flex-direction:row-reverse}.time{display:inline-block;margin-left:7px;font-size:12px;color:#7b87a5}
|
|
370
|
+
`]]]),mm=Ie(Se({__name:"scrollbar-provider.ce",setup(e,{expose:t,emit:s}){const n=ye(),i=s,o=N(),r=N(),a=N(),l=N(1),c=N(0),u=N(0),d=N(!1),h=N(!1);let p=null,m=null;const v=Dc(r),O=()=>{if(!r.value)return;const U=r.value.offsetHeight,K=U**2/r.value.scrollHeight,ne=Math.max(K,20);l.value=K/(U-K)/(ne/(U-ne)),c.value=K<U?Math.floor(ne):0},w=U=>{if(typeof U!="number"){console.warn("value must be a number");return}r!=null&&r.value&&(r.value.scrollTop=U)},C=()=>{var U;return(U=r.value)==null?void 0:U.getBoundingClientRect()},g=()=>r.value?{width:r.value.clientWidth,height:r.value.clientHeight}:{width:0,height:0},_=()=>r.value?{left:r.value.scrollLeft,top:r.value.scrollTop}:{left:0,top:0},E=()=>{h.value=!0,d.value=!0,m&&clearTimeout(m)},L=()=>{h.value=!1,m&&clearTimeout(m),m=setTimeout(()=>{d.value=!1},1e3)},P=U=>{if(v.isScrollDisabled||!r.value)return;const K=U.detail[0];r.value.scrollTop=K*r.value.scrollHeight/100},F=()=>{if(v.isScrollDisabled||(d.value=!0,m&&clearTimeout(m),h.value||(m=setTimeout(()=>{d.value=!1},1e3)),!r.value))return;const{offsetHeight:U,scrollHeight:K,scrollTop:ne}=r.value;u.value=Math.floor(ne*100/U*l.value),K/(U+ne)<=1.2&&(p||(p=setTimeout(async()=>{i("loading"),p=null,clearTimeout(p)},1e3)))};qt(()=>l.value,U=>{if(!r.value)return;const{offsetHeight:K,scrollTop:ne}=r.value;u.value=Math.floor(ne*100/K*l.value)});let x=null,$=null;const b=(U,K)=>{let ne=null;return window&&"ResizeObserver"in window&&U&&(ne=new ResizeObserver(K),ne.observe(U)),ne},I=()=>{w(0)};return t({disableScroll:v.disableScroll,enableScroll:v.enableScroll,setScrollTop:w,getViewportRect:C,getViewportSize:g,getScrollPosition:_}),ot(()=>{window.addEventListener("resize",O),x=b(a.value,O),$=b(r.value,O),n.addEventListener(Z.DESTROY_USER_CACHE,I)}),On(()=>{window.removeEventListener("resize",O),x==null||x.unobserve(a.value),$==null||$.unobserve(r.value),v.enableScroll(),m&&clearTimeout(m)}),(U,K)=>{var te;const ne=Ee("rc-scrollbar-thumb-provider");return R(),k("div",{ref_key:"scrollbarRef",ref:o,class:"rc-kit-scrollbar"},[y("div",{ref_key:"wrapRef",ref:r,class:"wrap",onScroll:F},[y("div",{ref_key:"resizeRef",ref:a,style:{"min-height":"100%"}},[hn(U.$slots,"default")],512)],544),c.value?(R(),xe(ne,{key:0,onHandlemove:P,onMouseenter:E,onMouseleave:L,height:c.value,move:u.value,scrollheight:(te=r.value)==null?void 0:te.scrollHeight,ratio:l.value,style:lt({opacity:d.value?1:0,transition:"opacity 0.5s",pointerEvents:d.value?"auto":"none"})},null,8,["height","move","scrollheight","ratio","style"])):le("",!0)],512)}}}),[["styles",[`:host{display:block;height:100%}.rc-kit-scrollbar{overflow:hidden;position:relative;height:100%}.wrap{overflow-y:scroll;height:100%;scrollbar-width:none}.wrap::-webkit-scrollbar{display:none}
|
|
371
|
+
`]]]),Em=Ie(Se({__name:"scrollbar-thumb-provider.ce",props:{height:{type:Number,require:!0,default:0},move:{type:Number,require:!0,default:0},scrollheight:{type:Number,require:!0,default:0},ratio:{type:Number,require:!0,default:1}},setup(e,{emit:t}){const s=t,n=e,i=me(()=>({height:`${n.height}px`,transform:`translateY(${n.move}%)`})),o=me(()=>a.value.offsetHeight**2/n.scrollheight/n.ratio/r.value.offsetHeight),r=N(),a=N();let l=!1,c;const u=N({}),d=w=>{var g;if(w.stopPropagation(),w.ctrlKey||[1,2].includes(w.button))return;(g=window.getSelection())==null||g.removeAllRanges(),m(w);const C=w.currentTarget;C&&(u.value.Y=w.clientY-C.getBoundingClientRect().top)},h=w=>{if(!r.value||!a.value)return;const C=Math.abs(w.target.getBoundingClientRect().top-w.clientY),g=r.value.offsetHeight/2,_=(C-g)*100*o.value/a.value.offsetHeight;s("handlemove",_)},p=()=>{document.onselectstart!==c&&(document.onselectstart=c)},m=w=>{w.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",v),document.addEventListener("mouseup",O),c=document.onselectstart,document.onselectstart=()=>!1},v=w=>{if(!a.value||!r.value||l===!1)return;const C=u.value.Y;if(!C)return;const g=(a.value.getBoundingClientRect().top-w.clientY)*-1,_=r.value.offsetHeight-C,E=(g-_)*100*o.value/a.value.offsetHeight;s("handlemove",E)},O=()=>{l=!1,u.value.Y=0,document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",O),p()};return On(()=>{p(),document.removeEventListener("mouseup",O)}),(w,C)=>(R(),k("div",{ref_key:"instance",ref:a,class:"rc-kit-scrollbar-bar",onMousedown:h},[y("div",{ref_key:"thumb",ref:r,style:lt(i.value),onMousedown:d,class:"rc-kit-scrollbar-thumb"},null,36)],544))}}),[["styles",[`.rc-kit-scrollbar-bar{position:absolute;right:2px;bottom:0;z-index:1;border-radius:4px;width:6px;top:0}.rc-kit-scrollbar-thumb{width:100%;position:relative;cursor:pointer;border-radius:inherit;background-color:#909399;opacity:.3}.rc-kit-scrollbar-thumb:hover{background-color:#909399;opacity:.5}
|
|
372
|
+
`]]]);var fi=(e=>(e.PHOTO="input.menu.item.photo",e.IMAGES="input.menu.item.images",e.FILES="input.menu.item.files",e.EMOJI="input.menu.item.emoji",e.PLUS="input.menu.item.plus",e))(fi||{});const vm="RCKitChatEmojiLibraryID";var Sh=(e=>(e[e.SECONDARY_MENU=0]="SECONDARY_MENU",e[e.LEFT=1]="LEFT",e))(Sh||{});const vc={items:[{id:"input.menu.item.emoji",order:0,icon:vp,hoverIcon:P0},{id:"input.menu.item.images",order:1,icon:Ep,hoverIcon:V0},{id:"input.menu.item.files",order:2,icon:Cp,hoverIcon:F0},{id:"input.menu.item.photo",order:3,icon:mp,hoverIcon:$0,filter:()=>(location.protocol==="https:"||location.protocol==="file"||location.hostname==="localhost")&&!vs()}]},Cc=e=>({items:e.items.map(t=>({id:t.id,order:t.order,icon:t.icon,hoverIcon:t.hoverIcon,filter:t.filter,submenu:t.submenu?t.submenu.map(s=>({id:s.id,order:s.order,icon:s.icon,filter:s.filter,submenu:s.submenu})):void 0}))}),Cm={icon:Tp,chats:["😁","😂","😃","😄","😅","😆","😇","😈","😉","😊","😋","😌","😍","😎","😏","😐","😑","😒","😓","😔","😕","😖","😗","😘","😙","😚","😛","😜","😝","😞","😟","😠","😡","😢","😣","😤","😥","😦","😧","😨","😩","😪","😫","😬","😭","😮","😯","😰","😱","😲","😳","😴","😵","😶","😷","😸","😹","😺","😻","😼","😽","😾","😿","🙀","🙁","🙂","🙃","🙄","🙅","🙆","🙇","🙈","🙉","🙊","🙋","🙌","🙍","🙎","🙏","🤐","🤑","🤒","🤓","🤔","🤕","🤖","🤗","🤘","🤙","🤚","🤛","🤜","🤝","🤞","🤟","🤠","🤡","🤢","🤣","🤤","🤥","🤦","🤧","🤨","🤩","🤪","🤫","🤬","🤭","🤮","🤯"]},Th=e=>({icon:e.icon,chats:[...e.chats]}),Ih=e=>e.map(t=>({id:t.id,icon:t.icon,itemWidth:t.itemWidth,itemHeight:t.itemHeight,items:t.items.map(s=>({...s})),order:t.order}));class ym extends Ls{constructor(s){super(s);B(this,"_menu",Cc(vc));B(this,"quoteEnableList",[f.MessageType.TEXT,f.MessageType.IMAGE,f.MessageType.SIGHT,f.MessageType.FILE,f.MessageType.GIF,f.MessageType.LOCATION,f.MessageType.HQ_VOICE]);B(this,"menuList",[]);B(this,"chatEmojis",Th(Cm));B(this,"imageEmojis",[]);this.setInputMenu(vc)}_onInit(){}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this.chatEmojis.chats.length=0,this.imageEmojis.length=0,this.setInputMenu(vc)}cloneInputMenu(){return Cc(this._menu)}setInputMenu(s){this._menu=Cc(s),this._resetMenu()}_resetMenu(){this.menuList.length=0;const{items:s}=this._menu,n=(i,o)=>i.order-o.order;this.menuList.splice(0,this.menuList.length,...s.sort(n))}cloneChatEmojiLibrary(){return Th(this.chatEmojis)}setChatEmojiLibrary(s){this.chatEmojis.chats.splice(0,this.chatEmojis.chats.length,...s.chats),this.chatEmojis.icon=s.icon}cloneImageEmojiLibraries(){return Ih(this.imageEmojis)}setImageEmojiLibraries(s){const n=Ih(s).sort((i,o)=>i.order-o.order);this.imageEmojis.splice(0,this.imageEmojis.length,...n)}addImageEmoji(s,n,i){throw new Error("TODO: addImageEmoji")}setQuoteEnableMessageTypeList(s){this.quoteEnableList.splice(0,this.quoteEnableList.length,...s)}isQuoteInfoEnabledForMessageType(s){return this.ctx.isQuoteMessageV2Enabled&&this.quoteEnableList.includes(s)}getQuoteEnableMessageTypeList(){return this.quoteEnableList.slice()}}const Ca=N(!1),Qo=N(!1),ya=N(!1),Zi=new Map;let Yi=!1;const wh=()=>{Yi=!1,Zi.clear()},Rh=(e,t,s=!1)=>{const i=Ys.value.find(a=>a.userId===e);if(!i)return;hi();const o=i.nickname||i.name;Zi.set(e,new RegExp(`@${o}`)),t.focus();const r=s?`@${o} `:`${o} `;t.setRangeText(r,t.selectionStart,t.selectionEnd,"end")},Sm=e=>{Yi=!0,hi(),e.focus(),e.setRangeText(`${Ce("input.mentioned.all")} `,e.selectionStart,e.selectionEnd,"end")},hi=()=>{Ca.value=!1,Qo.value=!1,ya.value=!1},Tm=(e,t)=>{hi();const{detail:s}=e,{url:n,thumbnail:i,gif:o}=s;let r;if(o){const{size:u,width:d,height:h}=o;r=new f.GIFMessage({gifDataSize:u,width:d,height:h,remoteUrl:n})}else r=new f.ImageMessage({content:i,imageUri:n});const a=ye();let l={};const c=Vt.value;c&&a.isQuoteMessageV2Enabled&&a.input.isQuoteInfoEnabledForMessageType(r.messageType)&&(l.quoteInfo={messageUId:c.messageUId,senderId:c.senderUserId,objectName:c.messageType},Vt.value=null),ye().message.sendMessage(t,r,l,c)},Im=(e,t)=>{t.focus(),t.setRangeText(e.detail,t.selectionStart,t.selectionEnd,"end"),hi(),ye().conversation.sendTypingStatus()},wm=(e,t)=>{const s=document.createElement("input");s.type="file",s.accept=e,s.multiple=!0,s.onchange=()=>{t(Array.from(s.files||[]))},s.addEventListener("cancel",()=>{t([])}),s.click()},Rm=(e,t)=>{console.log(">>>> pickFileOnSafari >>>> pickFileOnSafari >>>>");const s=document.createElement("input");s.type="file",s.accept=e,s.multiple=!0,s.style.position="fixed",s.style.left="-9999px",s.style.top="-9999px",s.style.width="1px",s.style.height="1px",s.style.opacity="0",s.style.pointerEvents="none",document.body.appendChild(s);let n=!1;const i=[],o=()=>{for(const d of i)globalThis.clearTimeout(d);i.length=0},r=()=>{o(),globalThis.removeEventListener("focus",u,!0),s.onchange=null,s.removeEventListener("cancel",c),s.parentNode&&s.remove()},a=()=>Array.from(s.files||[]),l=()=>{if(n)return;const d=a();d.length!==0&&(n=!0,r(),t(d))},c=()=>{n||(n=!0,r(),t([]))},u=()=>{o();const d=[0,50,100,200,400,700,1100,1700,2500];for(const h of d)i.push(globalThis.setTimeout(()=>l,h));i.push(globalThis.setTimeout(()=>{a().length>0||c()},2800))};s.value="",globalThis.addEventListener("focus",u,!0),s.onchange=l,s.addEventListener("cancel",c),s.click()};function Mm(){if(!("GestureEvent"in window))return!1;const t=navigator.userAgent,s=/Safari/.test(t)&&!/Chrome|CriOS|Edg|FxiOS|OPiOS/i.test(t),n=!!navigator.vendor&&navigator.vendor.indexOf("Apple")>-1;return s&&n}const Mh=Mm()?Rm:wm;let yc=!1;const Om=e=>{switch(e.key){case"Backspace":hi();break;case"Shift":yc=!0;break}},bm=(e,t,s,n)=>{e.key==="Enter"&&xm(e,t,s)},Oh=e=>{e.key==="Shift"&&(yc=!1)},Lm=(e,t,s,n)=>{const i=e.value;Wo(e,t,s);const o=n.data??"";if(n.inputType==="insertText"&&o.includes("@")){const a=ye().conversation.getOpenedConversation();(a==null?void 0:a.conversationType)===f.ConversationType.GROUP&&(hi(),ya.value=!0)}else ya.value=!1;if(Zi.forEach((a,l)=>{a.test(i)||Zi.delete(l)}),Yi){const a=`@${Ce("input.mentioned.all")}`;i.includes(a)||(Yi=!1)}ye().conversation.sendTypingStatus()},bh=()=>{requestAnimationFrame(()=>{ye().dispatch(new ee(Z.ADJUST_MESSAGE_LIST_SCROLL))})};let Lh=-1;const Wo=(e,t,s)=>{t.innerHTML=e.value.replaceAll(/\n$/g,"<br>.").replaceAll(`
|
|
373
|
+
`,"<br>");const n=e.offsetWidth;Math.abs(t.offsetWidth-n)>1&&(t.style.width=`${n}px`,t.getBoundingClientRect());const i=21,o=36,r=5,a=18,l=i*r+a,c=t.scrollHeight,u=Math.max(1,Math.ceil(c/i));let d;u===1?d=o:u<=r?d=i*u+a:d=l,e.style.height=`${d}px`,s.style.height=`${d}px`,u>r?e.style.overflowY="auto":e.style.overflowY="hidden",Lh!==d&&(Lh=d,bh())},Am=(e,t,s,n,i)=>{e.value=i||"",Wo(e,t,s)},Ah=(e,t,s,n)=>{var m;const i=ye().conversation.getOpenedConversation();if(!i)return;const o=e.value;if(!o.trim().length)return;const r=Yi?f.MentionedType.ALL:f.MentionedType.SINGAL,a=ye(),l=Vt.value;let c;const u={};l?a.isQuoteMessageV2Enabled?(c=new f.TextMessage({content:o}),a.input.isQuoteInfoEnabledForMessageType(c.messageType)&&(u.quoteInfo={messageUId:l.messageUId,senderId:l.senderUserId,objectName:l.messageType},Vt.value=null)):(c=new f.ReferenceMessage({content:o,referMsg:{...l.content},referMsgUserId:l.senderUserId,objName:l.messageType,referMsgUid:l.messageUId}),Vt.value=null):c=new f.TextMessage({content:o}),u.isMentioned=Yi||Zi.size>0,u.isMentioned&&(c.content.mentionedInfo={type:r,userIdList:Array.from(Zi.keys())});const h=[f.MessageType.TEXT,f.MessageType.REFERENCE].includes(c.messageType),p=(m=f.getAppSettings())!=null&&m.messageSizeLimit?1500:5e3;if(h&&c.content.content.length>p){ye().alert("alert.send.message.maxcount",p);return}a.message.sendMessage(i,c,u,l),wh(),e.value="",Wo(e,t,s)},xm=(e,t,s,n)=>{const i=e.target;yc||(e.preventDefault(),Ah(i,t,s))},xh=e=>{const t=e.clipboardData;if(!t||t.files.length===0)return;e.preventDefault();const s=ye(),n=s.conversation.getOpenedConversation(),i=Array.from(t.files);if(i.length>100){s.alert("alert.pickfiles.maxcount","100");return}const o=i.filter(r=>r.type!==""&&r.size>0);o.length!==0&&s.message.sendFiles(n,o)},km={class:"rc-input-provider"},Um={class:"rc-input-top-buttons"},Nm=["src","alt","onMouseenter","onClick"],Dm={class:"rc-input-inner-wrapper"},Pm=["placeholder","enterkeyhint"],Vm=["disabled"],Fm=["src"],$m={key:0},Hm=["onClick"],Gm=["src"],Bm=Ie(Se({__name:"input-provider.ce",props:{conversation:{type:Object}},setup(e){const t=ye(),s=t.store.getCommandSwitch(ut.AT_ALL),n=e,i=N(!1),o=N(null),r=()=>{i.value=vs(),C.value=t.input.menuList.filter(O).map(w)},a=Je("input.placeholder"),l=N(""),c=N(),u=N(),d=N(),h=N(),p=N([]),m=N(null),v=N(null),O=ae=>!ae.filter||ae.filter(n.conversation),w=ae=>({...ae,label:Je(ae.id).value}),C=N([]);C.value=t.input.menuList.filter(O).map(w);const g=me(()=>{const ae=[];return ae.push(...C.value),ae.sort((Te,nt)=>(Te.order||0)-(nt.order||0))}),_=ae=>o.value===ae.id&&ae.hoverIcon?ae.hoverIcon:ae.icon,E=me(()=>l.value.trim().length>0),L=()=>{var ae;return{value:((ae=He.value)==null?void 0:ae.value)||""}},P=()=>{t.emit(new ee(fe.INPUT_TEXTAREA_CHANGE,L()),2)},F=()=>{var Te;const ae=((Te=He.value)==null?void 0:Te.value)||"";l.value!==ae&&(l.value=ae,P())},x=()=>{t.emit(new ee(fe.INPUT_TEXTAREA_FOCUS,L()),2)},$=()=>{t.emit(new ee(fe.INPUT_TEXTAREA_BLUR,L()),2)},b=()=>{hi(),p.value=[],m.value=null,v.value=null},I=ae=>{const Te=Qo.value&&v.value===ae.id;b(),!Te&&(Qo.value=!0,v.value=ae.id)},U=(ae,Te,nt)=>{const S=Ca.value&&v.value===ae.id&&m.value===Te;b(),!(S||nt.length===0)&&(p.value=nt,m.value=Te,v.value=ae.id,te())},K=(ae,Te)=>{if(p.value.some(S=>S.id===ae.id)){b(),ne(ae,Te);return}if(ae.id===fi.EMOJI){Te.stopPropagation(),ye().statistic(di.INPUT_EMOJI_ENTRY_CLICK),I(ae);return}if(ae.submenu&&ae.submenu.length>0){Te.stopPropagation();const S=ae.submenu.filter(O).map(w);U(ae,Te.currentTarget,S);return}b(),ne(ae,Te)},ne=(ae,Te)=>{const{id:nt}=ae;switch(nt){case fi.PHOTO:t.emit(new ee(fe.TAKE_PHOTO_MODAL_EVENT));return;case fi.EMOJI:Te.stopPropagation(),ye().statistic(di.INPUT_EMOJI_ENTRY_CLICK),b(),Qo.value=!0;return;case fi.IMAGES:Mh("image/jpg, image/png, image/jpeg, image/gif",S=>t.message.sendFiles(n.conversation,S));return;case fi.FILES:Mh("*/*",S=>t.message.sendFiles(n.conversation,S));return;default:t.emit(new ee(fe.INPUT_MENU_ITEM_CLICK,{id:nt,conversation:n.conversation}),2);return}},te=()=>{!c.value||!m.value||(Ca.value=!0,setTimeout(()=>{if(!c.value||!m.value||!u.value)return;const ae=m.value.getBoundingClientRect(),Te=u.value.getBoundingClientRect(),nt=c.value,S=ae.top-Te.top;nt.style.bottom=`${Te.height-S+8}px`,nt.style.left=`${ae.left-Te.left}px`,nt.style.right="auto"},0))},he=ae=>{Im(ae,He.value),b(),F()},Y=ae=>{Tm(ae,n.conversation),b()},De=ae=>{Lm(He.value,h.value,d.value,ae),F()},st=()=>{if(!He.value)return;const ae=He.value.value;Ah(He.value,h.value,d.value,u.value),He.value.value===""&&ae.trim().length>0&&F()},_e=()=>{!E.value||!He.value||st()},Lt=ae=>{var nt;const Te=((nt=He.value)==null?void 0:nt.value)||"";Om(ae),bm(ae,h.value,d.value,u.value),ae.key==="Enter"&&!ae.shiftKey&&tt(()=>{He.value&&He.value.value===""&&Te.trim().length>0&&F()})},Os=ae=>{const[Te]=ae.detail;Rh(Te,He.value),F()},Ft=()=>{Sm(He.value),F()},ds=async ae=>{var M,V;const Te=(M=ae.data)==null?void 0:M.conversation,nt=(V=ae.data)==null?void 0:V.focusInput,S=(Te==null?void 0:Te.draft)||"";Vt.value=null,b(),wh(),Am(He.value,h.value,d.value,u.value,S),F(),Te&&nt!==!1?He.value.focus():He.value&&He.value.blur()},Vs=ae=>{if(!ae.data)return;He.value.focus();const Te=He.value.value.length;He.value.setRangeText(ae.data,Te,Te,"end"),F(),Wo(He.value,h.value,d.value)};qt(Vt,(ae,Te)=>{ae&&t.store.getCommandSwitch(ut.PROMPT_SENDER_WHEN_QUOTE_MESSAGE)&&Rh(ae.senderUserId,He.value,!0),ae&&He.value&&He.value.focus(),tt(()=>{bh()})});const Fs=ae=>{const Te=ae.target;c.value&&c.value.contains(Te)||m.value&&m.value.contains(Te)||b()},en=()=>{r(),He.value&&h.value&&d.value&&u.value&&Wo(He.value,h.value,d.value)},$n=ae=>{if(!Vt.value)return;ae.data.some(S=>{var M;return S.target.messageUId===((M=Vt.value)==null?void 0:M.messageUId)})&&(Vt.value=null)};return ot(()=>{var Te;r(),window.addEventListener("click",Fs),window.addEventListener("resize",en),He.value.addEventListener("paste",xh);const ae=((Te=ce.value)==null?void 0:Te.draft)||"";He.value.value=ae,F(),t.addEventListener(fe.CONVERSATION_SELECTED,ds),t.addEventListener(Z.SET_TEXTAREA_VALUE_EVENT,Vs),t.addEventListener(fe.MESSAGES_DELETED,$n)}),On(()=>{window.removeEventListener("click",Fs),window.removeEventListener("resize",en),He.value.removeEventListener("paste",xh),t.removeEventListener(fe.CONVERSATION_SELECTED,ds),t.removeEventListener(fe.MESSAGES_DELETED,$n)}),(ae,Te)=>{const nt=Ee("rc-emoji-panel-provider"),S=Ee("rc-at-users-panel-provider"),M=Ee("rc-reply-preview-bar");return R(),k("div",km,[D(Qo)?(R(),xe(nt,{key:0,class:"rc-input-emoji-panel",onInsertChat:Te[0]||(Te[0]=V=>he(V)),onSendImage:Te[1]||(Te[1]=V=>Y(V))})):le("",!0),Ss(Re(S,{onAtUser:Os,onAtAll:Ft,atAll:D(s),members:D(Ys),style:{width:"100%","box-sizing":"border-box"}},null,8,["atAll","members"]),[[Zs,D(ya)]]),y("div",Um,[(R(!0),k(Ae,null,pt(g.value,V=>(R(),k("img",{class:"rc-input-menu-button",key:V.id,src:_(V),alt:V.label,onMouseenter:z=>o.value=V.id,onMouseleave:Te[2]||(Te[2]=z=>o.value=null),onClick:Dt(z=>K(V,z),["stop"])},null,40,Nm))),128))]),y("div",{class:"rc-input-wrapper",ref_key:"main",ref:u},[D(Xi)?(R(),xe(M,{key:0,class:"replay-bar",username:D(Xi).username,message:D(Xi).message,"preview-text":D(Xi).previewText,thumbnail:D(Xi).thumbnail,cancel:D(Xi).cancel},null,8,["username","message","preview-text","thumbnail","cancel"])):le("",!0),y("div",Dm,[y("div",{class:"input-text-container",ref_key:"inputContainer",ref:d},[y("textarea",{ref_key:"textarea",ref:He,class:"textarea",placeholder:i.value?"":D(a),id:"textarea",name:"textarea",enterkeyhint:i.value?"send":void 0,onKeyup:Te[3]||(Te[3]=(...V)=>D(Oh)&&D(Oh)(...V)),onKeydown:Lt,onFocus:x,onBlur:$,onInput:Te[4]||(Te[4]=V=>De(V))},null,40,Pm),y("div",{ref_key:"hiddenDom",ref:h,contenteditable:"",class:"hidden-dom"},null,512)],512),y("button",{class:Pe(["rc-input-send-button",{disabled:!E.value}]),disabled:!E.value,onClick:_e},[y("img",{src:E.value?D(Sp):D(yp),alt:"send"},null,8,Fm),i.value?le("",!0):(R(),k("span",$m,se(D(Je)("input.send").value),1))],10,Vm)]),Ss(y("div",{class:"secondary-menu",ref_key:"secondarDOM",ref:c,onClick:Te[5]||(Te[5]=Dt(()=>{},["stop"]))},[(R(!0),k(Ae,null,pt(p.value,V=>(R(),k("div",{key:V.id,class:"secondary-menu-item",onClick:z=>K(V,z)},[y("img",{src:V.icon,alt:"Icon"},null,8,Gm),y("span",null,se(V.label),1)],8,Hm))),128))],512),[[Zs,D(Ca)]])],512)])}}}),[["styles",[`.rc-input-provider{width:100%;height:100%;display:flex;flex-direction:column;background-color:#fff;align-items:center;justify-content:center;position:relative;z-index:2;padding:0 12px;box-sizing:border-box}.rc-input-emoji-panel,.rc-input-at-prompt{float:left;width:100%;max-height:248px;border-bottom:1px solid #efefef;border-top:1px solid #efefef}.rc-input-top-buttons{width:100%;display:flex;flex-direction:row;align-items:center;padding:8px 12px;gap:8px;box-sizing:border-box}.rc-input-menu-button{width:30px;height:30px;cursor:pointer;flex-shrink:0}.rc-input-wrapper{width:100%;max-width:100%;display:flex;flex-direction:column;border:1px solid #E4E7ED;border-radius:20px;margin:0 0 12px;box-sizing:border-box;background-color:#fff;position:relative}.rc-input-inner-wrapper{display:flex;flex-direction:row;align-items:flex-start;padding:8px;gap:8px;box-sizing:border-box}.input-text-container{background:none;flex:1;font-size:14px;overflow:hidden;line-height:21px;min-height:21px;border:none;border-radius:0;margin:0;overflow-y:hidden;box-sizing:border-box}.textarea{border:none;outline:none;background:none;min-height:21px;height:36px;max-height:105px;box-sizing:border-box;padding:9px 10px;width:100%;resize:none;word-wrap:break-word;font-size:14px;line-height:21px;overflow-y:hidden;margin-top:4px}.textarea::-webkit-scrollbar{width:4px}.textarea::-webkit-scrollbar-track{background:transparent;border-radius:3px}.textarea::-webkit-scrollbar-thumb{background:rgba(0,0,0,.2);border-radius:3px;transition:background .2s}.textarea::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.3)}.textarea{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.2) transparent}.hidden-dom{border:none;outline:none;background:none;line-height:21px;min-height:21px;height:21px;overflow:scroll;box-sizing:border-box;padding:0;width:100%;resize:none;font-size:14px;word-wrap:break-word;color:transparent;position:absolute;visibility:hidden}.rc-input-send-button{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px;padding:5px 16px;border:none;border-radius:30px;background-color:#ecf1ff;color:#0047ff;font-size:14px;cursor:pointer;flex-shrink:0;min-width:60px;height:28px;box-sizing:border-box;transition:background-color .2s,color .2s;margin:8px 0}.rc-input-send-button:hover:not(.disabled){background-color:#d0ddff}.rc-input-send-button.disabled{background-color:#f3f5fa;color:#ccc;cursor:not-allowed;border-radius:30px}.rc-input-send-button img{width:16px;height:16px;flex-shrink:0}.replay-bar{width:100%;padding:8px 8px 0;box-sizing:border-box}.secondary-menu{position:absolute;min-width:126px;background-color:#fff;border-radius:9px;box-shadow:0 0 4px #0000001a;padding:8px 4px;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;font-size:14px;color:#606060;z-index:1000}.secondary-menu-item{flex-direction:row;height:36px;width:100%;box-sizing:border-box;transition:background-color .2s;display:flex;align-items:center;font-size:12px;padding:5px 6px;border-radius:4px;cursor:pointer}.secondary-menu-item:hover{background-color:#d2e1fe}.secondary-menu-item img{width:18px;height:18px;margin-right:10px;flex-shrink:0}.secondary-menu-item span{white-space:nowrap}@media (max-width: 768px){.rc-input-provider{padding:0 8px}.rc-input-top-buttons{padding:8px 0;gap:6px}.rc-input-menu-button{width:28px;height:28px}.rc-input-wrapper{margin:0 0 8px;border-radius:20px}.rc-input-inner-wrapper{padding:6px;gap:6px}.rc-input-send-button{min-width:50px;font-size:12px}.rc-input-send-button span{display:none}}
|
|
374
|
+
`]]]),jm={class:"info"},qm=["src"],Km={class:"info-main"},zm={class:"info-title-group"},Qm={class:"name"},Wm=["src"],Zm={class:"member-count"},Ym={key:0,class:"typing-content"},Xm={class:"extension"},Jm=["src","onClick"],eE=Ie(Se({__name:"conversation-detail-bar-provider.ce",props:{conversation:{type:Object,required:!0},showBack:{type:Boolean,default:!0}},setup(e){const t=e,s=me(()=>t.conversation.conversationType===f.ConversationType.GROUP),n=N(!1),i=()=>{n.value=vs()},o=()=>{var g;const C=ye();ce.value&&C.conversation.handleConversationDraft(ce.value,(g=He.value)==null?void 0:g.value),C.conversation.setOpenedConversation(null,!1)},r=ye(),a=r.store.getConversationExtension(),l=me(()=>a.filter(C=>!C.filter||C.filter(t.conversation))),c=C=>{r.emit(new ee(fe.CONVERSATION_EXTENSION_CLICK,{id:C.id,conversation:t.conversation}))},u=()=>{r.statistic(di.CONVERSATION_NAVI_CLICK),r.emit(new ee(fe.CONVERSATION_NAVI_CLICK,{...t.conversation}),2)};let d=null;const h=N(!1),p=N(!1),m=N(Je("conversation.detail.bar.typing").value),v=C=>{const g=C.status.findIndex(E=>ce.value&&vt(E,ce.value));if(g===-1)return;const{list:_}=C.status[g];_.length!==0&&(d&&(clearTimeout(d),d=null,h.value=!1,m.value=""),p.value=_.some(E=>E.messageType===f.MessageType.TEXT),m.value=p.value?Je("conversation.detail.bar.typing").value:Je("conversation.detail.bar.typing.audio").value,h.value=!0,d=setTimeout(()=>{h.value=!1,m.value=""},5e3))},O=C=>{h.value=!1},w=C=>{if(!ce.value||s.value)return;const g=C.data,_=r.userId;g.some(L=>vt(L,ce.value)&&L.senderUserId!==_)&&(d&&(clearTimeout(d),d=null),h.value=!1,m.value="")};return ot(()=>{i(),window.addEventListener("resize",i),f.addEventListener(f.Events.TYPING_STATUS,v),ye().addEventListener(fe.CONVERSATION_SELECTED,O),ye().addEventListener(Z.RECV_NEW_MESSAGES,w)}),Ct(()=>{window.removeEventListener("resize",i),f.removeEventListener(f.Events.TYPING_STATUS,v),ye().removeEventListener(fe.CONVERSATION_SELECTED,O),ye().removeEventListener(Z.RECV_NEW_MESSAGES,w)}),(C,g)=>{const _=Ee("rc-icon-notification");return R(),k("div",{class:Pe(["rc-conversation-detail-bar",{"is-h5":n.value}])},[n.value&&e.showBack?(R(),k("div",{key:0,class:"back-button",onClick:o},[...g[0]||(g[0]=[y("span",{class:"back-icon"},"<",-1)])])):le("",!0),y("div",jm,[y("img",{onClick:u,class:"icon",src:e.conversation.portraitUri,alt:"Conversation Icon"},null,8,qm),y("div",Km,[y("div",zm,[y("span",Qm,se(e.conversation.name),1),e.conversation.notificationLevel===5?(R(),xe(_,{key:0})):le("",!0),s.value?(R(),k(Ae,{key:1},[y("img",{class:"member-icon",src:D(Mp),alt:"Group Members Icon"},null,8,Wm),y("span",Zm,se(e.conversation.memberCount),1)],64)):le("",!0)])]),h.value&&!s.value?(R(),k("span",Ym,se(m.value),1)):le("",!0)]),y("div",Xm,[(R(!0),k(Ae,null,pt(l.value,E=>(R(),k("img",{class:"extension-icon",src:E.icon,key:E.id,alt:"Extension Icon",onClick:L=>c(E)},null,8,Jm))),128))])],2)}}}),[["styles",[`.rc-conversation-detail-bar{width:100%;height:70px;display:flex;flex-direction:row;align-items:center;border-bottom:1px dashed #E4E7ED;position:relative;z-index:2;background-color:#fff}.info{display:flex;flex-direction:row;align-items:center;flex:1 1 auto;min-width:0}.info-main{flex:1 1 auto;min-width:0;overflow:hidden}.info-title-group{display:flex;align-items:center;min-width:0;max-width:100%}.icon{width:32px;height:32px;margin:0 10px 0 20px;flex-shrink:0}.name{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;color:#020814;font-weight:500}.member-icon{margin:0 4px 0 20px;width:12px;height:12px;flex-shrink:0}.member-count{font-size:12px;color:#bcbcbc;flex-shrink:0}.extension{margin:0 28px 0 10px;flex-shrink:0}.extension-icon{width:26px;height:26px;margin-right:10px;cursor:pointer}.typing-content{margin-left:5px;font-size:12px;color:#7c838e;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.back-button{width:20px;height:20px;display:flex;align-items:center;justify-content:center;font-size:20px;margin-left:5px;font-weight:500;color:#000;flex-shrink:0}.is-h5 .icon{margin-left:10px}.is-h5 .extension{margin-right:12px}.is-h5 .typing-content{display:none}
|
|
375
|
+
`]]]);var Sc=(e=>(e.LEFT_JUSTIFYING="left-justifying",e.LEFT_RIGHT="left-right",e))(Sc||{});const kh={radius:20,layout:"left-right",backgroundColorForMyself:"#D2E1FE",backgroundColorForOthers:"#F3F5FA",textColorForMyself:"#020814",textColorForOthers:"#020814",showMyProfileInPrivateConversation:!0,showMyNameInPrivateConversation:!1,showMyProfileInGroupConversation:!0,showMyNameInGroupConversation:!1,showOthersProfileInPrivateConversation:!0,showOthersNameInPrivateConversation:!1,showOthersProfileInGroupConversation:!0,showOthersNameInGroupConversation:!0},tE=e=>({...e});class sE extends Ls{constructor(s){super(s);B(this,"messageBubbleCfg",{});this.setMessageBubbleCfg(kh)}_onInit(){}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this.setMessageBubbleCfg(kh)}cloneMessageBubbleCfg(){return tE(this.messageBubbleCfg)}setMessageBubbleCfg(s){this.messageBubbleCfg={...this.messageBubbleCfg,...s}}}var Zt=(e=>(e.REPLY="message.menu.item.reply",e.MULTI_CHOICE="message.menu.item.multi.choice",e.COPY="message.menu.item.copy",e.FORWARD="message.menu.item.forward",e.DELETE="message.menu.item.delete",e.SPEECH_TO_TEXT="message.menu.item.speech.to.text",e.CANCEL_SPEECH_TO_TEXT="message.menu.item.cancel.speech.to.text",e.RECALL="message.menu.item.recall",e))(Zt||{});const Uh=[{id:"message.menu.item.recall",icon:dp,filter:e=>e.messageDirection===f.MessageDirection.SEND&&e.sentStatus!==f.SentStatus.FAILED&&e.sentStatus!==f.SentStatus.SENDING},{id:"message.menu.item.reply",icon:tp,filter:e=>[f.MessageType.TEXT,f.MessageType.IMAGE,f.MessageType.FILE,f.MessageType.RICH_CONTENT,f.MessageType.REFERENCE].includes(e.messageType)&&e.sentStatus!==f.SentStatus.SENDING&&e.sentStatus!==f.SentStatus.FAILED},{id:"message.menu.item.copy",icon:ep,filter:e=>(e.messageType===f.MessageType.TEXT||e.messageType===f.MessageType.REFERENCE)&&!!navigator.clipboard},{id:"message.menu.item.forward",icon:c1,filter:e=>[f.MessageType.TEXT,f.MessageType.IMAGE,f.MessageType.FILE,f.MessageType.RICH_CONTENT,f.MessageType.HQ_VOICE,f.MessageType.VOICE,f.MessageType.COMBINE,f.MessageType.COMBINE_V2,f.MessageType.GIF,f.MessageType.SIGHT,f.MessageType.FILE,f.MessageType.REFERENCE].includes(e.messageType)&&e.sentStatus!==f.SentStatus.SENDING&&e.sentStatus!==f.SentStatus.FAILED},{id:"message.menu.item.multi.choice",icon:sp},{id:"message.menu.item.delete",icon:l1,filter:e=>e.sentStatus!==f.SentStatus.SENDING}],Sa=e=>e.map(t=>({...t}));class nE extends Ls{constructor(){super(...arguments);B(this,"_menu",Sa(Uh));B(this,"_speechToTextStore")}_onInit(){}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this._menu=Sa(Uh)}setSpeechToTextStore(s){this._speechToTextStore=s}getMenu(s){var l,c;const n=((l=f.getAppSettings())==null?void 0:l.isSpeechToTextEnabled)||!1,i=[f.SentStatus.SENDING,f.SentStatus.FAILED].includes(s.sentStatus),o=s.messageType===f.MessageType.HQ_VOICE,r=((c=this._speechToTextStore)==null?void 0:c.hasConverted(s.messageUId||""))||!1;let a=this._menu.filter(u=>u.id==="message.menu.item.recall"&&Date.now()-s.sentTime>this.ctx.allowedToRecallTime*1e3||s.conversationType===f.ConversationType.SYSTEM&&u.id!=="message.menu.item.copy"&&u.id!=="message.menu.item.delete"?!1:!u.filter||u.filter(s));return n&&o&&!i&&(r?a.push({id:"message.menu.item.cancel.speech.to.text",icon:up}):a.push({id:"message.menu.item.speech.to.text",icon:cp})),a}cloneMessageMenu(){return Sa(this._menu)}setMessageMenu(s){this._menu=Sa(s)}}const iE={key:0,class:"checkbox"},oE=["for"],rE=["id","value"],aE={class:"custom"},lE=["src"],cE=["data-message-uid","onMouseenter"],uE={key:0,class:"rc-kit-stt-converting"},dE={key:1,class:"rc-kit-stt-error"},fE={class:"rc-kit-stt-error-text"},hE={key:2,class:"rc-kit-stt-success"},pE={key:0,style:{padding:"5px"}},gE=["onClick"],_E=450,mE=Ie(Se({__name:"message-list-provider.ce",setup(e){const t=ye(),s=t.isMessageReactionEnabled,n=N(""),i=N({}),o=N({}),r=N({}),a=N({}),l=T=>i.value[T],c=T=>{const A=o.value[T]||t.speechToTextStore.getSTTText(T)||"";return A===""?Ce("message.speech.to.text.empty"):A},u=T=>{if(r.value[T])return!1;if(l(T))return!0;const H=t.speechToTextStore.getSTTText(T);return H?(i.value[T]="success",o.value[T]=H,!0):!1},d=T=>{const{messageUId:A,status:H,text:Q,errorCode:q}=T.data;r.value[A]||(i.value[A]=H,console.log("onSpeechToTextStateChange",A,H,Q,q),q&&(a.value[A]=q),H==="success"&&Q&&(o.value[A]=Q))},h=["time.format.sunday","time.format.monday","time.format.tueday","time.format.wedday","time.format.thurday","time.format.friday","time.format.satday"],p=T=>{const{year:A,month:H,day:Q,weekDay:q}=Si(T),re=(Date.now()-T)/1e3/60/60/24;let Me=Ce("time.format.full",A,H,Q);return new Date().toDateString()===new Date(T).toDateString()&&(Me=Ce("time.format.today")),(new Date().toDateString()!==new Date(T).toDateString()&&re<1||1<=re&&re<2)&&(Me=Ce("time.format.yesterday")),2<=re&&re<7&&(Me=Ce(h[q])),Me},m=(T,A)=>typeof T=="string"?T:Number.isFinite(T.transactionId)?`tx-${T.transactionId}`:T.messageUId||`rc-kit-${A}`,v=me(()=>{const T=ke.value,A=[];for(let H=T.length-1;H>=0;H-=1){const Q=T[H];A.unshift(Q);const q=T[H-1];q?new Date(Q.sentTime).toDateString()!==new Date(q.sentTime).toDateString()&&A.unshift(p(Q.sentTime)):vi||A.unshift(p(Q.sentTime))}return A}),O=T=>{var A,H;return T.messageDirection===f.MessageDirection.SEND?Ta.value:((A=ce.value)==null?void 0:A.conversationType)===f.ConversationType.GROUP?Ys.value.find(q=>q.userId==T.senderUserId)||{name:T.senderUserId,userId:T.senderUserId,portraitUri:(H=ce.value)==null?void 0:H.portraitUri}:{name:ce.value.name,userId:ce.value.targetId,portraitUri:ce.value.portraitUri}},w=T=>{const A=O(T);t.emit(new ee(fe.CONVERSATION_ICON_CLICK,{conversation:{conversationType:T.conversationType,targetId:T.targetId,channelId:T.channelId},profile:A}),2)},C=N(0);let g=0;const _=t.store.getCommandSwitch(ut.FOCUS_ON_LATEST_MESSAGE);let E=0;const L=T=>typeof T.messageId=="number"&&!Number.isNaN(T.messageId),P=T=>typeof T.transactionId=="number"&&!Number.isNaN(T.transactionId),F=(T,A)=>P(T)&&P(A)?T.transactionId===A.transactionId:T.messageUId&&A.messageUId?T.messageUId===A.messageUId:L(T)&&L(A)?T.messageId===A.messageId:!1,x=(...T)=>{const A=[];return T.forEach(H=>{H.forEach(Q=>{const q=A.findIndex(re=>F(re,Q));q===-1?A.push(Q):A.splice(q,1,Q)})}),A},$=async(T,A)=>{const H={conversationType:ce.value.conversationType,targetId:ce.value.targetId,channelId:ce.value.channelId};if(A){const{code:Ye,list:It,hasMore:ss}=await t.message.reqHistories(H,T-1,!1);Ye===f.ErrorCode.SUCCESS&&(fs.value=ss,ke.value=x(It),await tt(),Es())}const{scrollHeight:Q}=_e.value,{code:q,list:re,hasMore:Me}=await t.message.reqHistories(H,T,!0);return q===f.ErrorCode.SUCCESS&&(ke.value=x(re,ke.value),vi=Me,await tt(),Es(),A?_e.value.scrollTop=_e.value.scrollHeight-Q:_e.value.scrollTop=_e.value.scrollHeight-_e.value.offsetHeight),ke.value},b=async()=>{var ss,bs;if(!ce.value)return;const{conversationType:T,targetId:A,channelId:H,unreadCount:Q}=ce.value,q={conversationType:T,targetId:A,channelId:H};if(ke.value.length=0,E=0,Ei=null,Vn.value=Q,f.electronExtension.enable()){const{data:Ht}=await f.getFirstUnreadMessage(q);g=(Ht==null?void 0:Ht.sentTime)||0,_||(E=g)}const re=!_&&E>0,Me=await $(E,re);if(_&&f.electronExtension.enable()&&Q){const Ht=Q-Me.length;C.value=Ht<0?0:Ht}const Ye=Me.length,It=((ss=Me[Ye-1])==null?void 0:ss.sentTime)||((bs=ce.value.latestMessage)==null?void 0:bs.sentTime)||Date.now();Vn.value?(await t.conversation.clearUnreadCountByTimestamp(q,It),await t.message.sendReadReceiptMessage(q,Me)):f.electronExtension.enable()||await t.message.sendReadReceiptMessage(q,Me)},I=(T,A)=>!0,U=N(),K=T=>{var re,Me,Ye,It;const A=(re=U.value)==null?void 0:re.showMyProfileInGroupConversation,H=(Me=U.value)==null?void 0:Me.showMyProfileInPrivateConversation,Q=(Ye=U.value)==null?void 0:Ye.showOthersProfileInGroupConversation,q=(It=U.value)==null?void 0:It.showOthersProfileInPrivateConversation;return T.messageDirection===f.MessageDirection.SEND&&T.conversationType===f.ConversationType.PRIVATE?!!H:T.messageDirection===f.MessageDirection.SEND&&T.conversationType===f.ConversationType.GROUP?!!A:T.messageDirection===f.MessageDirection.RECEIVE&&T.conversationType===f.ConversationType.PRIVATE?!!q:T.messageDirection===f.MessageDirection.RECEIVE&&T.conversationType===f.ConversationType.GROUP?!!Q:!1},ne=T=>{var re,Me,Ye,It;const A=(re=U.value)==null?void 0:re.showMyNameInPrivateConversation,H=(Me=U.value)==null?void 0:Me.showMyNameInGroupConversation,Q=(Ye=U.value)==null?void 0:Ye.showOthersNameInGroupConversation,q=(It=U.value)==null?void 0:It.showOthersNameInPrivateConversation;return T.messageDirection===f.MessageDirection.SEND&&T.conversationType===f.ConversationType.PRIVATE?!!A:T.messageDirection===f.MessageDirection.SEND&&T.conversationType===f.ConversationType.GROUP?!!H:T.messageDirection===f.MessageDirection.RECEIVE&&T.conversationType===f.ConversationType.PRIVATE?!!q:T.messageDirection===f.MessageDirection.RECEIVE&&T.conversationType===f.ConversationType.GROUP?!!Q:!1},te=T=>{var A;return T.messageDirection===1&&((A=U.value)==null?void 0:A.layout)===Sc.LEFT_RIGHT?"row-reverse":"row"},he=(T,A)=>{var ss;if(!U.value)return;const H=Gn(U.value.textColorForOthers),Q=Gn(U.value.backgroundColorForOthers),q=Gn(U.value.textColorForMyself),re=Gn(U.value.backgroundColorForMyself);let Me=H,Ye=Q,It=`${U.value.radius}px`;return T.messageDirection===f.MessageDirection.SEND&&(Me=q,Ye=re),[j.MessageType.IMAGE,j.MessageType.SIGHT,j.MessageType.GIF].includes(T.messageType)&&!T.quoteInfo&&!(((ss=T.reactions)==null?void 0:ss.length)>0)&&(Ye=Ye+"00"),{color:Me,backgroundColor:Ye,borderRadius:It}},Y=T=>{var A;return T.messageDirection===1&&((A=U.value)==null?void 0:A.layout)==="left-right"},De=T=>{if(![j.SentStatus.SENDING,j.SentStatus.FAILED].includes(T.sentStatus))switch(T.messageType){case j.MessageType.IMAGE:t.emit(new ee(fe.MEDIA_MESSAGE_MODAL_EVENT,T));break;case j.MessageType.SIGHT:t.audioPlayer.pause(),t.emit(new ee(fe.MEDIA_MESSAGE_MODAL_EVENT,T));break;case j.MessageType.GIF:t.emit(new ee(fe.MEDIA_MESSAGE_MODAL_EVENT,T));break;case j.MessageType.COMBINE:case j.MessageType.COMBINE_V2:t.emit(new ee(fe.COMBINE_MESSAGE_MODAL_EVENT,T));break}},st=N(),_e=N(),Lt=N(),Os=N([]),Ft=Cs({left:0,top:0,display:"none"}),ds=Dc(_e),Vs=N(),Fs=N(!1),en=()=>{Fs.value=vs()},$n=T=>{let A=T;return"detail"in T&&Array.isArray(T.detail)&&T.detail[0]instanceof MouseEvent&&(A=T.detail[0]),A},ae=T=>{var Q;const A=T.target,H=A==null?void 0:A.getRootNode();if(H instanceof ShadowRoot)return(Q=H.querySelector(".message-body-wrapper"))==null?void 0:Q.getBoundingClientRect()},Te=(T,A,H,Q)=>{if(!st.value)return{left:0,top:0};const q=st.value.getBoundingClientRect(),re=H.target,Me=re==null?void 0:re.getBoundingClientRect(),Ye=ae(H),It=4,ss=10,bs=Math.max(0,q.height-A-ss);if(!Me){const yi=H.clientX-q.left,de=H.clientY-q.top;return{left:Math.max(0,Math.min(yi,q.width-T)),top:Math.max(0,Math.min(de,bs))}}let Ht=Q?Me.left-q.left-T-It:Me.right-q.left+It,Hn=((Ye==null?void 0:Ye.top)??Me.top)-q.top;return Ht+T>q.width&&(Ht=q.width-T),Ht<0&&(Ht=0),Hn>bs&&(Hn=bs),Hn<0&&(Hn=0),{left:Ht,top:Hn}},nt=async(T,A)=>{if(Ms.value)return;mi(),ie();const H=$n(A);Vs.value=T;let Q=t.msgMenu.getMenu(T).map(re=>({id:re.id,icon:re.icon,label:Ce(re.id),message:T}));if(T.messageType===j.MessageType.HQ_VOICE&&T.messageUId){const re=u(T.messageUId),Me=Q.findIndex(Ye=>Ye.id===Zt.SPEECH_TO_TEXT||Ye.id===Zt.CANCEL_SPEECH_TO_TEXT);Me!==-1&&(re?Q[Me]={id:Zt.CANCEL_SPEECH_TO_TEXT,icon:Q[Me].icon,label:Ce(Zt.CANCEL_SPEECH_TO_TEXT),message:T}:Q[Me]={id:Zt.SPEECH_TO_TEXT,icon:Q[Me].icon,label:Ce(Zt.SPEECH_TO_TEXT),message:T})}Os.value.splice(0,Os.value.length,...Q),Ft.display="block",await tt();const q=Te(Lt.value.clientWidth,Lt.value.clientHeight,H,Y(T));Ft.top=q.top,Ft.left=q.left},S=async(T,A)=>{switch(t.statistic(di.CONVERSATION_MESSAGE_OPTION_CLICK),T){case Zt.COPY:const H=A.content.content||"";if(!navigator.clipboard||!H)return;navigator.clipboard.writeText(H),t.emit(new ee(fe.TOAST_EVENT,{message:t.i18n.format("toast.copy.success"),showIcon:!0}));break;case Zt.DELETE:jh([A]);break;case Zt.RECALL:Tv([A]);break;case Zt.MULTI_CHOICE:Ms.value=!0;break;case Zt.REPLY:Vt.value=A;break;case Zt.FORWARD:Bh(jn.SINGLE,[A]);break;case Zt.SPEECH_TO_TEXT:if(A.messageUId)if(delete r.value[A.messageUId],t.speechToTextStore.hasConverted(A.messageUId)){const q=t.speechToTextStore.getSTTText(A.messageUId)||"";i.value[A.messageUId]="success",o.value[A.messageUId]=q}else i.value[A.messageUId]="converting",await t.speechToTextStore.requestForMessage(A);break;case Zt.CANCEL_SPEECH_TO_TEXT:A.messageUId&&(r.value[A.messageUId]=!0,delete i.value[A.messageUId],delete o.value[A.messageUId]);break;default:t.emit(new ee(fe.MESSAGE_MENU_ITEM_CLICK,{id:T,message:A}));break}},M=()=>{Ft.display="none",Vs.value=void 0},V=N(),z=Cs({left:0,top:0,display:"none"}),W=N(),X=me(()=>t.input.chatEmojis.chats),ue=async(T,A)=>{if(Ms.value)return;M(),mi();const H=$n(A);W.value=T,z.display="grid",await tt(),V.value&&(V.value.scrollTop=0);const Q=V.value.offsetWidth,q=V.value.offsetHeight,re=Te(Q,q,H,Y(T));z.top=re.top,z.left=re.left},ie=()=>{z.display="none",W.value=void 0},oe=T=>{const A=W.value;if(!A)return;const H=A.reactions.find(({reactionId:q})=>q===T),Q=!!H&&H.hasCurrentUserReacted;t.message.updateMessageReaction(A,T,Q),ie()};qt(()=>Ft.display,T=>{T==="block"?ds.disableScroll():ds.enableScroll()});const J=(T,A)=>{T.sentStatus===j.SentStatus.FAILED?(M(),ie(),mi(),t.message.resendMessage(T)):T.conversationType===f.ConversationType.GROUP&&(T.sentStatus===j.SentStatus.SENT||T.sentStatus===j.SentStatus.READ)&&t.readReceiptVersion===f.GroupReadReceiptVersion.V5&&(ge.value=T.messageUId,Zv(T,A))},we=N(!1),ge=N(""),ve=N(null),be=N([]),Ve=N([]),Ze=N(void 0),Ke=N(void 0),At=N(!1),Tt=N(!1),$t=N(!1),xt=N(!1),et=Cs({top:0,left:0,anchor:"top-right"}),eo=N(null),Yt=T=>{var re,Me;if(!T)return null;const A=T.querySelector(".rc-kit-msg-sent-status");if(A)return A;const H=T.querySelector(".rc-kit-message-sent-status");if(H)return H;const Q=T.querySelector("rc-message-bubble"),q=(re=Q==null?void 0:Q.shadowRoot)==null?void 0:re.querySelector(".rc-kit-msg-sent-status");return q||((Me=Q==null?void 0:Q.shadowRoot)==null?void 0:Me.querySelector(".rc-kit-message-sent-status"))},ts=N(0),_i=N(0),Oa=T=>{var yi,de;if(!_e.value||!st.value)return;if(!T)if((yi=ve.value)!=null&&yi.messageUId){const $s=(de=_e.value)==null?void 0:de.querySelector(`.rc-kit-msg-list-item[data-message-uid="${ve.value.messageUId}"]`);if($s){const io=Yt($s);if(io)eo.value=io,T=io;else{console.warn("[ReadReceipt] status element not found during update");return}}else{console.warn("[ReadReceipt] message item not found during update");return}}else return;const A=T.getBoundingClientRect(),H=st.value.getBoundingClientRect(),Q=A.top-H.top,q=A.bottom-H.top,re=A.left-H.left,Me=A.right-H.left,Ye=H.height/2,It=344,ss=20,bs=Q<Ye,Ht=Me+ss+It<=H.width;if(re-It>=0)bs?(et.top=Q,et.left=re,et.anchor="top-right"):(et.top=q,et.left=re,et.anchor="bottom-right");else if(Ht)bs?(et.top=Q,et.left=Me+ss,et.anchor="top-left"):(et.top=q,et.left=Me+ss,et.anchor="bottom-left");else{const $s=H.width/2;bs?(et.top=Q,et.left=$s,et.anchor="top-center"):(et.top=q,et.left=$s,et.anchor="bottom-center")}},Zv=async(T,A)=>{var Q;if(M(),ie(),!T.messageUId||T.conversationType!==f.ConversationType.GROUP){console.log("[ReadReceipt] handleShowReadReceiptModal: invalid message",{messageUId:T.messageUId,conversationType:T.conversationType});return}ve.value=T,be.value=[],Ve.value=[],Ze.value=void 0,Ke.value=void 0,At.value=!1,Tt.value=!1,ts.value=0,_i.value=0,await tt();let H=null;if(A&&A.target){const q=A.target;q&&typeof q.closest=="function"&&(H=q.closest(".rc-kit-msg-sent-status")||q.closest(".rc-kit-message-sent-status")),!H&&q&&(q.classList.contains("rc-kit-msg-sent-status")||q.classList.contains("rc-kit-message-sent-status"))&&(H=q)}if(!H){const q=(Q=_e.value)==null?void 0:Q.querySelector(`.rc-kit-msg-list-item[data-message-uid="${T.messageUId}"]`);q&&(H=Yt(q))}H?(eo.value=H,Oa(H)):(console.warn("[ReadReceipt] status element not found, using default position"),et.top=st.value?st.value.clientHeight/2:0,et.left=st.value?st.value.clientWidth/2:0,et.anchor="top-left"),await Promise.all([Jh(T,!0),e2(T,!0)]),we.value=!0},Jh=async(T,A=!1)=>{if(!$t.value){$t.value=!0;try{const H={conversationType:T.conversationType,targetId:T.targetId,channelId:T.channelId},Q=15,{code:q,data:re}=await t.message.getMessagesReadReceiptUsersByPageV5(H,T.messageUId,{pageToken:Ze.value,count:Q,type:"read"});q===f.ErrorCode.SUCCESS&&re?(be.value.push(...re.users||[]),Ze.value=re.pageToken,ts.value=re.totalCount||0,At.value=re.totalCount&&re.totalCount>be.value.length):console.warn("[ReadReceipt] loadReadUsers: failed",{code:q,data:re})}catch(H){console.warn("[ReadReceipt] loadReadUsers error:",H)}finally{$t.value=!1}}},e2=async(T,A=!1)=>{if(!xt.value){xt.value=!0;try{const H={conversationType:T.conversationType,targetId:T.targetId,channelId:T.channelId},Q=15,{code:q,data:re}=await t.message.getMessagesReadReceiptUsersByPageV5(H,T.messageUId,{pageToken:Ke.value,count:Q,type:"unread"});q===f.ErrorCode.SUCCESS&&re?(Ve.value.push(...re.users||[]),Ke.value=re.pageToken,_i.value=re.totalCount||0,Tt.value=re.totalCount&&re.totalCount>Ve.value.length):console.warn("[ReadReceipt] loadUnreadUsers: failed",{code:q,data:re})}catch(H){console.warn("[ReadReceipt] loadUnreadUsers error:",H)}finally{xt.value=!1}}},Yv=async(T,A)=>{if(!ve.value)return;const H=T.scrollTop||0,Q=T.scrollHeight||0,q=T.clientHeight||0;Q-H-q<50&&(A==="read"&&At.value&&!$t.value?await Jh(ve.value,!1):A==="unread"&&Tt.value&&!xt.value&&await e2(ve.value,!1))},Xv=T=>{const[A,H]=T.detail;Yv(A,H)},mi=()=>{we.value=!1,ve.value=null,be.value=[],Ve.value=[],Ze.value=void 0,Ke.value=void 0,At.value=!1,Tt.value=!1,ts.value=0,_i.value=0,eo.value=null},t2=T=>{we.value&&(T.target.closest(".read-receipt-popover")||mi())};let Ei=null,vi=!0,fs=N(!1);const to=N(1),Ac=N(0),tr=N(0),Ci=N(),so=N(!0),no=N(!1),xc=N(!1);let tn=null;const Jv=()=>{xc.value=!0,no.value=!0,tn&&clearTimeout(tn)},eC=()=>{xc.value=!1,tn&&clearTimeout(tn),tn=setTimeout(()=>{no.value=!1},1e3)},tC=()=>{if(ds.isScrollDisabled||(ie(),mi(),no.value=!0,tn&&clearTimeout(tn),xc.value||(tn=setTimeout(()=>{no.value=!1},1e3)),!ce.value||ke.value.length===0))return;const T={conversationType:ce.value.conversationType,targetId:ce.value.targetId,channelId:ce.value.channelId},{scrollHeight:A,scrollTop:H,clientHeight:Q}=_e.value;if(so.value=A-Q-H<=100,tr.value=_e.value.scrollTop*100/Q*to.value||0,H<=200&&!Ei){if(!vi)return;Ei=setTimeout(async()=>{sC(T,A)},1e3)}if(fs.value&&A-H-Q<=200&&!Ei){if(!fs.value)return;Ei=setTimeout(async()=>{nC(T,Q)},1e3)}},sC=async(T,A)=>{const{hasMore:H,code:Q,list:q}=await t.message.reqHistories(T,ke.value[0].sentTime,!0);if(Q===f.ErrorCode.SUCCESS){if(ke.value=[...q,...ke.value],vi=H,C.value){const re=C.value-q.length;C.value=re<0?0:re}await tt(),Es(),_e.value.scrollTop=_e.value.scrollHeight-A,ke.value.length>300&&(ke.value.splice(300),await tt(),Es(),fs.value=!0),T.conversationType===f.ConversationType.GROUP&&f.electronExtension.enable()&&await t.message.sendReadReceiptMessage(T,q)}Ei=null},nC=async(T,A)=>{const{hasMore:H,code:Q,list:q}=await t.message.reqHistories(T,ke.value[ke.value.length-1].sentTime,!1);if(Q===0){ke.value=[...ke.value,...q],fs.value=H,Vn.value&&(f.electronExtension.enable()&&(await t.conversation.clearUnreadCountByTimestamp(T,q[q.length-1].sentTime),await t.message.sendReadReceiptMessage(T,q)),!f.electronExtension.enable()&&!H&&(await t.conversation.clearUnreadCountByTimestamp(T,q[q.length-1].sentTime),await t.message.sendReadReceiptMessage(T,q))),await tt(),Es(),tr.value=_e.value.scrollTop*100/A*to.value||0;const re=Ci.value.offsetHeight;ke.value.length>300&&(ke.value.splice(0,ke.value.length-300),await tt(),Es(),_e.value.scrollTop=_e.value.scrollTop-(re-Ci.value.offsetHeight))}Ei=null},iC=T=>{if(ds.isScrollDisabled||!_e.value)return;const A=T.detail[0];_e.value.scrollTop=A*_e.value.scrollHeight/100},Es=()=>{if(!_e.value)return;const T=_e.value.offsetHeight**2/_e.value.scrollHeight,A=Math.floor(T*100)/100,H=Math.max(A,20),Q=A/(_e.value.offsetHeight-A)/(H/(_e.value.offsetHeight-H));to.value=Math.floor(Q*100)/100||1,Ac.value=A<_e.value.offsetHeight?Math.floor(H):0},kc=async()=>{if(await tt(),!_e.value)return;Es();const{scrollHeight:T,clientHeight:A}=_e.value;_e.value.scrollTop=Math.max(T-A,0),so.value=!0},oC=async()=>{if(!ce.value)return;const T={conversationType:ce.value.conversationType,targetId:ce.value.targetId,channelId:ce.value.channelId},{code:A,list:H,hasMore:Q}=await t.message.reqHistories(T,0,!0);if(A===f.ErrorCode.SUCCESS){ke.value.length=0,ke.value=H,vi=Q,fs.value=!1,await tt(),Es();const{scrollHeight:q,offsetHeight:re}=_e.value;if(_e.value.scrollTop=q-re,tr.value=_e.value.scrollTop*100/re*to.value,await t.conversation.clearUnreadCountByTimestamp(T,H[H.length-1].sentTime),f.electronExtension.enable()){const{data:Me}=await f.getFirstUnreadMessage(T);Me&&Me.sentTime>H[0].sentTime&&H.unshift(Ti(Me))}await t.message.sendReadReceiptMessage(T,H)}},rC=async()=>{if(!ce.value)return;const T={conversationType:ce.value.conversationType,channelId:ce.value.channelId,targetId:ce.value.targetId};C.value=0,fs.value=!0,Es();const A=await $(g,!0);A.length&&await t.message.sendReadReceiptMessage(T,A)},Uc=N(),aC=qt(Ps,T=>{const A=Ds.value.length,H=[];T.forEach(Q=>{const q=ke.value.findIndex(re=>re.messageUId?re.messageUId==Q:`${re.transactionId}`==Q);q>-1&&H.push(ke.value[q])}),Ds.value.splice(0,A,...H)},{deep:!0}),lC=()=>{if(!st.value||!_e.value||!Uc.value)return;const T=st.value.getBoundingClientRect().top,A=Uc.value.getBoundingClientRect().top-T,H=_e.value.querySelectorAll(".rc-kit-msg-list-box");for(let Q=H.length-1;Q>=1&&H[Q].getBoundingClientRect().top-T>A;Q--){const re=H[Q].querySelectorAll(".checkbox input");if(re.length<=0)continue;cC(re)}Zo.value=!Zo.value},cC=T=>{if(Zo.value)T[0].checked=!0,Ps.value.findIndex(H=>T[0].value===H)===-1&&Ps.value.unshift(T[0].value);else{T[0].checked=!1;const A=Ps.value.findIndex(H=>T[0].value===H);A>=0&&Ps.value.splice(A,1)}},s2=async T=>{T.data.forEach(A=>{const{target:H,recallMsg:Q}=A,q=ke.value.findIndex(re=>re.transactionId===H.transactionId||re.messageUId&&re.messageUId===H.messageUId);if(q!==-1)if(Q){ke.value.splice(q,1,Q);const re=Ps.value.findIndex(Me=>Me===Q.content.messageUId);if(re===-1)return;Ps.value.splice(re,1)}else ke.value.splice(q,1)}),await tt(),Es()},n2=T=>{const{message:A}=T.data,H=yn(ke.value,Q=>Q.transactionId===A.transactionId);H!==-1&&ke.value.splice(H,1,{...A})},uC=()=>{if(!_e.value||fs.value)return!1;const{scrollHeight:T,scrollTop:A,clientHeight:H}=_e.value;return T-H-A<=100},i2=T=>{const A=uC();let H=!1;T.data.forEach(Q=>{if(vt(ce.value,Q)){const q=yn(ke.value,Ye=>F(Ye,Q));if(q===-1)return;const re=ke.value[q].sentTime,Me=JSON.parse(JSON.stringify(Q));if(Q.sentTime!==re){ke.value.splice(q,1);const Ye=yn(ke.value,It=>It.sentTime<=Q.sentTime);ke.value.splice(Ye+1,0,Me)}else ke.value.splice(q,1,Me);H=!0}}),A&&H&&(so.value=!0,xa())},dC=T=>{t.emit(new ee(fe.MESSAGE_LINK_CLICK,T.detail[0]))},o2=async T=>{if(!ce.value)return;const A={conversationType:ce.value.conversationType,targetId:ce.value.targetId,channelId:ce.value.channelId},H=[];if(T.data.forEach(async q=>{if(!vt(A,q))return;ke.value.findIndex(Me=>F(Me,q))<0?H.push(q):ke.value=x(ke.value,[q])}),!H.length)return;if(!so.value||fs.value){fs.value=!0;return}ke.value=x(ke.value,H),kc();const Q=H.length;setTimeout(async()=>{const{code:q}=await t.conversation.clearUnreadCountByTimestamp(A,H[Q-1].sentTime);q===f.ErrorCode.SUCCESS&&await t.message.sendReadReceiptMessage(A,H)},100)},r2=async T=>{if(fs.value){const{code:A,list:H,hasMore:Q}=await t.message.reqHistories({conversationType:ce.value.conversationType,targetId:ce.value.targetId,channelId:ce.value.channelId},0,!0);A===f.ErrorCode.SUCCESS&&(ke.value.length=0,ke.value=x(H),vi=Q,fs.value=!1,kc());return}T.data.forEach(async A=>{vt(ce.value,A)&&(ke.value=x(ke.value,[A]),ke.value.length>300&&ke.value.splice(0,ke.value.length-300),kc())})},a2=T=>{vi=!0,fs.value=!1,Ms.value=!1,C.value=0,b()};let ba=null,La=null;const l2=(T,A)=>{let H=null;return window&&"ResizeObserver"in window&&T&&(H=new ResizeObserver(A),H.observe(T)),H},Aa=T=>{Ms.value&&T.stopImmediatePropagation()},fC=()=>{_e.value&&(Es(),tr.value=_e.value.scrollTop*100/_e.value.offsetHeight*to.value||0)},xa=async()=>{_e.value&&(await tt(),requestAnimationFrame(()=>{if(!_e.value)return;const T=_e.value,{scrollHeight:A,scrollTop:H,clientHeight:Q}=T,q=A-Q-H;(so.value||q<=_E)&&requestAnimationFrame(()=>{if(!_e.value)return;const{scrollHeight:Me,clientHeight:Ye}=_e.value;_e.value.scrollTop=Math.max(Me-Ye,0),so.value=!0})}))},c2=()=>{M(),ie(),mi()};return ot(async()=>{window.addEventListener("click",M),window.addEventListener("click",ie),window.addEventListener("click",t2),en(),window.addEventListener("resize",en),window.addEventListener("resize",Es),window.addEventListener("resize",c2),t.addEventListener(fe.CONVERSATION_SELECTED,a2),t.addEventListener(Z.RECV_NEW_MESSAGES,o2),t.addEventListener(Z.INSERT_NEW_MESSAGES,r2),t.addEventListener(fe.MESSAGES_DELETED,s2),t.addEventListener(Z.MESSAGE_STATE_CHANGE,i2),t.addEventListener(Z.FILE_UPLOAD_PROGRESS,n2),t.addEventListener(Z.SPEECH_TO_TEXT_STATE_CHANGE,d),t.addEventListener(Z.ADJUST_MESSAGE_LIST_SCROLL,xa),b(),U.value=t.bubble.messageBubbleCfg,_e.value&&(ba=l2(_e.value,fC)),Ci.value&&(La=l2(Ci.value,xa))}),Ct(()=>{ds.enableScroll(),tn&&clearTimeout(tn),t.removeEventListener(fe.CONVERSATION_SELECTED,a2),t.removeEventListener(Z.RECV_NEW_MESSAGES,o2),t.removeEventListener(Z.INSERT_NEW_MESSAGES,r2),t.removeEventListener(fe.MESSAGES_DELETED,s2),t.removeEventListener(Z.MESSAGE_STATE_CHANGE,i2),t.removeEventListener(Z.FILE_UPLOAD_PROGRESS,n2),t.removeEventListener(Z.SPEECH_TO_TEXT_STATE_CHANGE,d),t.removeEventListener(Z.ADJUST_MESSAGE_LIST_SCROLL,xa),window.removeEventListener("click",M),window.removeEventListener("click",ie),window.removeEventListener("click",t2),window.removeEventListener("resize",en),window.removeEventListener("resize",Es),window.removeEventListener("resize",c2),aC(),_e.value&&(ba==null||ba.unobserve(_e.value)),Ci.value&&(La==null||La.unobserve(Ci.value))}),(T,A)=>{var yi;const H=Ee("rc-message-time"),Q=Ee("rc-grey-message-provider"),q=Ee("rc-icon"),re=Ee("rc-quote-info-view-provider"),Me=Ee("rc-message-reactions-provider"),Ye=Ee("rc-message-bubble"),It=Ee("rc-scrollbar-thumb-provider"),ss=Ee("rc-message-list-menu-item"),bs=Ee("rc-message-select"),Ht=Ee("rc-message-location"),Hn=Ee("rc-read-receipt-modal");return D(ce)?(R(),k("div",{key:0,class:"rc-kit-msg-list",ref_key:"messageViewportRef",ref:st},[y("div",{class:"rc-kit-msg-list-scroll",ref_key:"messageListRef",ref:_e,onScroll:tC},[y("div",{ref_key:"messageBoxRef",ref:Ci,style:{padding:"10px"}},[(R(!0),k(Ae,null,pt(v.value,(de,$s)=>{var io,u2;return R(),k("div",{class:"rc-kit-msg-list-box",key:m(de,$s)},[typeof de!="string"&&de.sentStatus!==10&&D(Ms)&&!D(Gh)(de.messageType)?(R(),k("div",iE,[y("label",{for:de.messageUId||`${de.transactionId}`},[Ss(y("input",{id:de.messageUId||`${de.transactionId}`,type:"checkbox","onUpdate:modelValue":A[0]||(A[0]=Gt=>_t(Ps)?Ps.value=Gt:null),value:de.messageUId||`${de.transactionId}`},null,8,rE),[[No,D(Ps)]]),y("span",aE,[y("img",{src:D(u1),alt:"CHECKED_ICON"},null,8,lE)])],8,oE)])):le("",!0),typeof de=="string"?(R(),xe(H,{key:1,class:"rc-kit-time-section",time:de},null,8,["time"])):(R(),k(Ae,{key:2},[D(Gh)(de.messageType)?(R(),xe(Q,{key:0,class:"rc-kit-grey-message",onClickCapture:A[1]||(A[1]=Gt=>Aa(Gt)),position:D(ms).MESSAGE_LIST,message:de},null,8,["position","message"])):(R(),k("div",{key:1,class:"rc-kit-msg-list-item","data-message-uid":de.messageUId,style:lt({"flex-direction":te(de)}),onClickCapture:A[2]||(A[2]=Gt=>Aa(Gt)),onMouseenter:Gt=>n.value=de.messageUId,onMouseleave:A[3]||(A[3]=Gt=>n.value="")},[K(de)?(R(),xe(q,{key:0,class:"rc-kit-msg-avatar",url:O(de).portraitUri,width:32,height:32,style:lt({opacity:I(de,v.value[$s-1])?1:0}),radius:50,onClick:Gt=>w(de),online:!1},null,8,["url","style","onClick"])):le("",!0),y("div",{class:Pe(["rc-kit-msg-bubble-wrapper",{"rc-kit-msg-bubble-wrapper-right":Y(de)}])},[Re(Ye,{class:"rc-kit-msg-bubble",showname:ne(de),align:Y(de),message:de,reaction:D(s),"message-uid":de.messageUId,profile:O(de),"is-h5":Fs.value,"show-sent-status":D(qh)(de),"bubble-color-style":he(de,I(de,v.value[$s-1])),"menu-active":Ft.display==="block"&&((io=Vs.value)==null?void 0:io.messageUId)===de.messageUId,"reaction-board-active":z.display!=="none"&&((u2=W.value)==null?void 0:u2.messageUId)===de.messageUId,"is-item-hover":n.value===de.messageUId,onSentStatusClick:Gt=>J(de,Gt),onMenuClick:Gt=>nt(de,Gt),onReactionClick:Gt=>ue(de,Gt),onContextmenu:Dt(Gt=>nt(de,Gt),["prevent"])},{default:ht(()=>[de.quoteInfo?(R(),xe(re,{key:0,"quote-info":de.quoteInfo},null,8,["quote-info"])):le("",!0),(R(),xe(Vr(D(Ia)(de.messageType)),{onLink:dC,onClick:Gt=>De(de),message:de,position:D(ms).MESSAGE_LIST},null,40,["onClick","message","position"])),D(s)&&de.reactions.length?(R(),xe(Me,{key:1,reactions:de.reactions,align:Y(de),message:de},null,8,["reactions","align","message"])):le("",!0)]),_:2},1032,["showname","align","message","reaction","message-uid","profile","is-h5","show-sent-status","bubble-color-style","menu-active","reaction-board-active","is-item-hover","onSentStatusClick","onMenuClick","onReactionClick","onContextmenu"]),de.messageType===D(j.MessageType).HQ_VOICE&&de.messageUId&&u(de.messageUId)?(R(),k("div",{key:0,class:Pe(["rc-kit-stt-status",{"rc-kit-stt-status-right":Y(de)}])},[l(de.messageUId)==="converting"?(R(),k("div",uE,[...A[6]||(A[6]=[y("div",{class:"rc-kit-stt-loading"},[y("div",{class:"rc-kit-stt-loading-dot"}),y("div",{class:"rc-kit-stt-loading-dot"}),y("div",{class:"rc-kit-stt-loading-dot"})],-1)])])):l(de.messageUId)==="error"?(R(),k("div",dE,[Re(q,{url:D(g1),radius:50,width:16,height:16,class:"rc-kit-stt-error-icon"},null,8,["url"]),y("span",fE,se(a.value[de.messageUId]===D(f.ErrorCode).SPEECH_TO_TEXT_MESSAGE_CONTENT_UNSUPPORTED?D(Je)("message.speech.to.text.unsupported"):D(Je)("message.speech.to.text.failed")),1)])):l(de.messageUId)==="success"?(R(),k("div",hE,se(c(de.messageUId)),1)):le("",!0)],2)):le("",!0)],2)],44,cE))],64))])}),128))],512)],544),Ac.value?(R(),xe(It,{key:0,onHandlemove:iC,onMouseenter:Jv,onMouseleave:eC,height:Ac.value,move:tr.value,scrollheight:(yi=_e.value)==null?void 0:yi.scrollHeight,ratio:to.value,style:lt({opacity:no.value?1:0,transition:"opacity 0.5s",pointerEvents:no.value?"auto":"none"})},null,8,["height","move","scrollheight","ratio","style"])):le("",!0),Fs.value&&Ft.display==="block"?(R(),k("div",{key:1,class:"rc-message-list-menu-mask",onClick:M})):le("",!0),y("div",{class:"rc-message-list-menu",ref_key:"messageMenuRef",ref:Lt,style:lt({top:`${Ft.top}px`,left:`${Ft.left}px`,display:Ft.display})},[Os.value.length>0?(R(),k("div",pE,[(R(!0),k(Ae,null,pt(Os.value,de=>(R(),xe(ss,{icon:de.icon,id:de.id,label:de.label,onClick:$s=>S(de.id,de.message)},null,8,["icon","id","label","onClick"]))),256))])):le("",!0)],4),y("div",{class:"rc-reaction-panel",ref_key:"reactionPanelRef",ref:V,onMouseleave:ie,style:lt({top:`${z.top}px`,left:`${z.left}px`,display:z.display})},[(R(!0),k(Ae,null,pt(X.value,de=>(R(),k("span",{key:de,class:"rc-reaction-emoji-item",onClick:$s=>oe(de)},se(de),9,gE))),128))],36),D(Ms)?(R(),xe(bs,{key:2,class:"rc-kit-select",selected:!!D(Zo),onSelect:lC,ref_key:"DOMSelect",ref:Uc},null,8,["selected"])):le("",!0),D(Vn)>0&&D(fs)?(R(),xe(Ht,{key:3,onClickCapture:A[4]||(A[4]=de=>Aa(de)),count:D(Vn),direction:1,onLocation:oC},null,8,["count"])):le("",!0),C.value>0&&D(_)?(R(),xe(Ht,{key:4,onClickCapture:A[5]||(A[5]=de=>Aa(de)),count:C.value,direction:0,onLocation:rC},null,8,["count"])):le("",!0),we.value?(R(),xe(Hn,{key:5,message:ve.value,visible:we.value,"read-users":be.value,"unread-count":_i.value,"read-count":ts.value,"unread-users":Ve.value,"read-loading":$t.value,"unread-loading":xt.value,position:et,onClose:mi,onReadStatusScroll:Xv},null,8,["message","visible","read-users","unread-count","read-count","unread-users","read-loading","unread-loading","position"])):le("",!0)],512)):le("",!0)}}}),[["styles",[`p{margin:0}ul,li{padding:0;margin:0;list-style:none}.rc-kit-msg-list{position:relative;overflow:hidden;height:100%;box-sizing:border-box}.rc-kit-msg-list-scroll{overflow-y:scroll;overflow-x:hidden;height:100%;scrollbar-width:none;box-sizing:border-box}.rc-kit-msg-list-scroll::-webkit-scrollbar{display:none}.rc-kit-msg-list-item{display:flex;flex:1;min-width:0}.rc-kit-grey-message{flex:1;text-align:center}.rc-kit-msg-avatar{padding:0 8px}.rc-kit-msg-bubble-wrapper{display:flex;flex-direction:column;max-width:70%;align-items:flex-start}.rc-kit-msg-bubble-wrapper-right{align-items:flex-end}.rc-kit-msg-bubble{border-radius:8px 0;font-size:12px;line-height:16px;overflow:visible;min-width:0;max-width:100%}@media (max-width: 768px){.rc-kit-msg-bubble{user-select:none;-webkit-user-select:none}}.rc-kit-stt-status{padding:9px;font-size:14px;line-height:18px;word-break:break-word;display:flex;flex-direction:column;box-sizing:border-box;border-radius:8px;background:#E3E7EF}.rc-kit-stt-status-right{align-items:flex-end;border-radius:8px}.rc-kit-stt-converting{display:flex;align-items:center}.rc-kit-stt-loading{display:block;font-size:0;color:#000;width:54px}.rc-kit-stt-loading .rc-kit-stt-loading-dot{display:inline-block;float:none;background-color:currentColor;border:0 solid currentColor;width:6px;height:6px;margin:4px;border-radius:100%;animation:ball-pulse 1s ease infinite}.rc-kit-stt-loading .rc-kit-stt-loading-dot:nth-child(1){animation-delay:-.2s}.rc-kit-stt-loading .rc-kit-stt-loading-dot:nth-child(2){animation-delay:-.1s}.rc-kit-stt-loading .rc-kit-stt-loading-dot:nth-child(3){animation-delay:0ms}@keyframes ball-pulse{0%,80%,to{transform:scale(0);opacity:.5}40%{transform:scale(1);opacity:1}}.rc-kit-stt-error{display:flex;align-items:center;gap:4px}.rc-kit-stt-error-text{color:#1d2129}.rc-kit-stt-success{color:#333;min-height:18px;line-height:18px;white-space:pre-wrap;display:block}.rc-message-list-menu{position:absolute;top:0;left:0;z-index:3;background-color:#fff;border-radius:9px;box-shadow:0 5px 16px #00000014;min-width:95px}.rc-message-list-menu-mask{position:absolute;top:0;left:0;z-index:2;width:100%;height:100%}.rc-kit-msg-list-box{display:flex;align-items:center;margin-bottom:10px}.rc-kit-msg-list-box:last-child{margin-bottom:0}.rc-kit-time-section{width:100%}.rc-kit-msg-list-box .checkbox{margin-right:7px;align-self:flex-start}.rc-kit-msg-list-box .checkbox input[type=checkbox]{display:none}.rc-kit-msg-list-box .checkbox .custom{display:flex;width:16px;height:16px;border:1px solid #ABB8CB;border-radius:50%;background-color:#fff;font-size:0;justify-content:center;align-items:center;cursor:pointer}.rc-kit-msg-list-box .checkbox input[type=checkbox]:checked+.custom{background-color:#16d258;border-color:#16d258}.rc-kit-select{position:absolute;top:150px;left:0;width:100%;box-sizing:border-box;z-index:1}.rc-reaction-panel{position:absolute;top:0;left:0;z-index:3;display:grid;grid-template-columns:repeat(10,32px);gap:4px;background-color:#fff;border-radius:9px;box-shadow:0 5px 16px #00000014;width:376px;height:196px;padding:8px;overflow-y:auto;box-sizing:border-box}.rc-reaction-emoji-item{display:flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:20px;border-radius:6px;cursor:pointer}.rc-reaction-emoji-item:hover{background-color:#f2f3f5}
|
|
376
|
+
`]]]),EE={class:"menu-list"},vE=["onClick"],CE=["src"],yE={class:"emoji-list"},SE=["onClick"],TE=["onClick"],IE=["src","width","height"],wE=Ie(Se({__name:"emoji-panel-provider.ce",setup(e,{emit:t}){const s=t,n=ye(),i=N([]),o=n.input.cloneChatEmojiLibrary(),r=N(0),a=me(()=>[{icon:o.icon,index:0}].concat(...i.value.map((c,u)=>({icon:c.icon,index:u+1})))),l=me(()=>{if(r.value===0)return[];const c=i.value[r.value-1],{itemWidth:u,itemHeight:d,items:h}=c;return h.map(p=>({width:u,height:d,thumbnail:p.thumbnail,url:p.url,gif:p.gif}))});return ot(()=>{i.value=n.input.cloneImageEmojiLibraries()}),Ct(()=>{}),(c,u)=>(R(),k("div",{class:"emoji-pannel-root",onClick:u[0]||(u[0]=d=>d.stopPropagation())},[y("div",EE,[(R(!0),k(Ae,null,pt(a.value,d=>(R(),k("div",{key:d.index,onClick:h=>r.value=d.index,class:Pe(d.index===r.value?"menu-button menu-button-selected":"menu-button")},[y("img",{src:d.icon,alt:"Emoji"},null,8,CE)],10,vE))),128))]),y("div",yE,[(R(!0),k(Ae,null,pt(D(o).chats,d=>Ss((R(),k("div",{class:"chat-emoji-item",onClick:h=>{s("insert-chat",d)}},[y("span",null,se(d),1)],8,SE)),[[Zs,r.value===0]])),256)),r.value>0?(R(!0),k(Ae,{key:0},pt(l.value,(d,h)=>(R(),k("div",{class:"image-emoji-item",onClick:p=>s("send-image",d),key:h,style:lt(`width: ${d.width}px; height: ${d.height}px;`)},[y("img",{src:d.thumbnail,width:d.width,height:d.height,alt:"Emoji"},null,8,IE)],12,TE))),128)):le("",!0)])]))}}),[["styles",[`.emoji-pannel-root{display:flex;flex-direction:column;width:100%;height:100%}.menu-list{height:48px;display:flex;flex-direction:row;align-items:center;padding:0 8px}.menu-button{width:32px;height:32px;cursor:pointer;border-radius:5px;margin-left:10px}.menu-button-selected{background-color:#e9f0fb}.menu-button img{width:28px;height:28px;margin:2px}.emoji-list{flex:1;overflow:auto;padding:4px 8px}.chat-emoji-item{display:inline-block;font-size:22px;width:30px;height:30px;cursor:pointer;text-align:center;line-height:30px;border-radius:4px}.chat-emoji-item:hover,.image-emoji-item:hover{background-color:#e9f0fb}.image-emoji-item{display:inline-block;padding:6px;border-radius:4px;cursor:pointer}
|
|
377
|
+
`]]]),RE=Se({__name:"multi-choice-menu-provider.ce",setup(e){const t=()=>Ms.value=!1,s=async i=>{if(Ds.value.length<=0)return;if(Ds.value.length>100){ye().alert("alert.forward.over.length");return}const o=[],r=[f.MessageType.TEXT,f.MessageType.IMAGE,f.MessageType.FILE,f.MessageType.RICH_CONTENT,f.MessageType.HQ_VOICE,f.MessageType.VOICE,f.MessageType.COMBINE,f.MessageType.COMBINE_V2,f.MessageType.GIF,f.MessageType.SIGHT,f.MessageType.FILE,f.MessageType.REFERENCE];if(i===jn.MERGE){const l=r.length-1;r.splice(l,1)}if(Ds.value.sort((l,c)=>l.sentTime-c.sentTime),Ds.value.forEach((l,c)=>{r.includes(l.messageType)&&l.sentStatus!==f.SentStatus.SENDING&&l.sentStatus!==f.SentStatus.FAILED||o.push(c+1)}),o.length>0){ye().alert("alert.forward.not.supported",`${o.join(",")}`);return}await Bh(i,Ds.value)&&t()},n=async()=>{if(Ds.value.length>100){ye().alert("alert.delete.over.length");return}await jh(Ds.value)};return(i,o)=>{const r=Ee("rc-multi-choice-menu");return R(),xe(r,{count:D(Cv),onForward:o[0]||(o[0]=a=>s(D(jn).SINGLE)),onMergeForward:o[1]||(o[1]=a=>s(D(jn).MERGE)),onCancel:t,onDelete:n},null,8,["count"])}}}),ME=["onClick"],OE=["src"],bE=Ie(Se({__name:"at-users-panel-provider.ce",props:{members:{type:Array},atAll:{type:Boolean}},setup(e,{emit:t}){const s=Je("conv.mentioned.all.msg"),n=t;return(i,o)=>(R(),k("div",{class:"at-users-panel",onClick:o[1]||(o[1]=r=>r.stopPropagation())},[e.atAll?(R(),k("div",{key:0,class:"div-item",onClick:o[0]||(o[0]=r=>n("at-all"))},se(D(s)),1)):le("",!0),(R(!0),k(Ae,null,pt(e.members,r=>(R(),k("div",{class:"div-item",key:r.userId,onClick:a=>n("at-user",r.userId)},[r.portraitUri?(R(),k("img",{key:0,class:"icon",src:r.portraitUri,alt:"User Portrait"},null,8,OE)):le("",!0),y("span",null,se(r.nickname||r.name),1)],8,ME))),128))]))}}),[["styles",[`.at-users-panel{width:100%;align-items:center;max-height:124px;overflow:scroll;border-top:1px solid #efefef}.div-item{display:flex;flex-direction:row;align-items:center;padding:8px 20px;cursor:pointer;font-size:12px}.div-item:hover{background-color:#e9f0fb;border-radius:8px}.icon{margin-right:10px;width:24px;height:24px;border-radius:50%}
|
|
378
|
+
`]]]),LE=Se({__name:"hq-voice-message-provider.ce",props:{message:{type:Object},position:{type:Number}},setup(e){const t=ye(),s=e,n=s.message,i=n.content,o=i.duration,r=i.remoteUrl,a=N(0),l=N(!1),c=n.messageDirection===f.MessageDirection.SEND,u=m=>{d(m.data)},d=m=>{const{status:v,progress:O,messageUId:w,transactionId:C}=m,{messageUId:g,transactionId:_}=n;if(g&&g===w||C&&C===_){l.value=v==="playing",a.value=O===100?0:O||0;return}a.value=0,l.value=!1},h=()=>{l.value?t.audioPlayer.pause():t.audioPlayer.play(r,s.message.messageUId,s.message.transactionId)},p=Cs({duration:o,isOwner:c,playing:l,progress:a,position:s.position,toggle:h});return ot(()=>{t.addEventListener(Z.AUDIO_PLAY_EVENT,u);const m=t.audioPlayer.getCurrentState();d(m)}),Ct(()=>{t.removeEventListener(Z.AUDIO_PLAY_EVENT,u)}),(m,v)=>{const O=Ee("rc-hq-voice-message");return R(),xe(O,{duration:p.duration,"is-owner":p.isOwner,playing:p.playing,position:p.position,progress:p.progress,toggle:p.toggle},null,8,["duration","is-owner","playing","position","progress","toggle"])}}}),AE={class:"rc-kit-grey-message"},xE={class:"grey-message"},kE=Ie(Se({__name:"grey-message-provider.ce",props:{message:{type:Object},position:{type:Number}},setup(e){const t=Je("message.list.reedit"),s=e,n=N(""),i=N(""),o=N(0);let r=null;const a=N(!0),l=async()=>{if(!He.value)return;const c=He.value.value.length?`
|
|
379
|
+
${i.value}`:i.value;ye().dispatch(new ee(Z.SET_TEXTAREA_VALUE_EVENT,c))};return ul(async()=>{var d;if(f.electronExtension.enable()){const{code:h,data:p}=await f.getMessage(s.message.messageUId);h===f.ErrorCode.SUCCESS&&p&&((d=p.content)!=null&&d.originalMessageContent)&&(n.value=p.content.originalObjectName||p.content.originalMessageContent.originalObjectName||"",i.value=p.content.recallContent||p.content.originalMessageContent.recallContent||"",o.value=p.content.recallTime||p.content.originalMessageContent.recallTime||"")}const c=Date.now()-o.value,u=ye().allowedToReEditTime;c>1e3*u&&(a.value=!1),!r&&n.value===f.MessageType.TEXT&&a.value&&(r=setTimeout(()=>{a.value=!1,clearTimeout(r),r=null},1e3*u-c))}),Ct(()=>{r&&(clearTimeout(r),r=null)}),(c,u)=>(R(),k("div",AE,[y("div",xE,[$i(se(D(wa)(s.message))+" ",1),a.value&&n.value===D(f.MessageType).TEXT&&D(f.electronExtension).enable()?(R(),k("span",{key:0,class:"reedit",onClick:l},se(D(t)),1)):le("",!0)])]))}}),[["styles",[`.grey-message{display:inline-block;color:#41464f;margin:0 auto;padding:8px;background-color:#f3f5fa;border:none;border-radius:6px;font-size:12px;line-height:20px}.reedit{color:#337ecc;font-size:14px;font-weight:700;cursor:pointer;margin-left:3px}.reedit:hover{color:#09f}
|
|
380
|
+
`]]]),UE={class:"content"},NE={key:0,class:"marked"},DE={width:"23",height:"23",viewBox:"0 0 23 23",fill:"none",xmlns:"http://www.w3.org/2000/svg"},PE=["stroke-dasharray","stroke-dashoffset"],Nh=8,VE=Ie(Se({__name:"file-transfer-ctrl-provider.ce",props:{message:{type:Object},position:{type:Number}},setup(e){const t=e,s=me(()=>t.position===ms.QUOTE_INFO?!1:t.message.messageType===f.MessageType.FILE&&t.message.sentStatus!==j.SentStatus.SENDING&&t.message.sentStatus!==j.SentStatus.FAILED),n=me(()=>t.message.file&&t.message.progress===-1),i=me(()=>t.message.file&&typeof t.message.progress=="number"&&t.message.progress>=0&&t.message.progress<100),o=Math.floor(2*Math.PI*Nh),r=me(()=>(100-(t.message.progress||0))*o/100),a=()=>{ye().emit(new ee(fe.DOWNLOAD_LINK_EVENT,t.message))},l=()=>ye().message.cancelMessageSent(t.message),c=()=>ye().message.resendMessage(t.message);return(u,d)=>(R(),k("div",UE,[hn(u.$slots,"default"),s.value||n.value||i.value?(R(),k("div",NE,[hn(u.$slots,"marked")])):le("",!0),s.value?(R(),k("div",{key:1,class:"btn",onClick:Dt(a,["stop"])},[...d[0]||(d[0]=[Kr('<svg width="23" height="22" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg"><circle opacity="0.5" cx="11.5437" cy="10.7852" r="7" fill="black"></circle><path fill-rule="evenodd" clip-rule="evenodd" d="M14.4617 9.54688L11.5749 14.5469L8.68817 9.54687L11.0749 9.54687L11.0749 6.66123L12.0749 6.66123L12.0749 9.54687L14.4617 9.54688Z" fill="white"></path><mask id="path-3-outside-1_2560_1087" maskUnits="userSpaceOnUse" x="1.74341" y="0.96875" width="20" height="20" fill="white"><rect fill="white" x="1.74341" y="0.96875" width="20" height="20"></rect><path d="M20.344 10.7691C20.344 15.6293 16.404 19.5694 11.5437 19.5694C6.68344 19.5694 2.74341 15.6293 2.74341 10.7691C2.74341 5.90878 6.68344 1.96875 11.5437 1.96875C16.404 1.96875 20.344 5.90878 20.344 10.7691ZM4.33424 10.7691C4.33424 14.7507 7.56203 17.9785 11.5437 17.9785C15.5254 17.9785 18.7532 14.7507 18.7532 10.7691C18.7532 6.78737 15.5254 3.55958 11.5437 3.55958C7.56203 3.55958 4.33424 6.78737 4.33424 10.7691Z"></path></mask><path d="M20.344 10.7691C20.344 15.6293 16.404 19.5694 11.5437 19.5694C6.68344 19.5694 2.74341 15.6293 2.74341 10.7691C2.74341 5.90878 6.68344 1.96875 11.5437 1.96875C16.404 1.96875 20.344 5.90878 20.344 10.7691ZM4.33424 10.7691C4.33424 14.7507 7.56203 17.9785 11.5437 17.9785C15.5254 17.9785 18.7532 14.7507 18.7532 10.7691C18.7532 6.78737 15.5254 3.55958 11.5437 3.55958C7.56203 3.55958 4.33424 6.78737 4.33424 10.7691Z" fill="white" fill-opacity="0.6"></path><path d="M20.344 10.7691C20.344 15.6293 16.404 19.5694 11.5437 19.5694C6.68344 19.5694 2.74341 15.6293 2.74341 10.7691C2.74341 5.90878 6.68344 1.96875 11.5437 1.96875C16.404 1.96875 20.344 5.90878 20.344 10.7691ZM4.33424 10.7691C4.33424 14.7507 7.56203 17.9785 11.5437 17.9785C15.5254 17.9785 18.7532 14.7507 18.7532 10.7691C18.7532 6.78737 15.5254 3.55958 11.5437 3.55958C7.56203 3.55958 4.33424 6.78737 4.33424 10.7691Z" stroke="white" stroke-opacity="0.2" stroke-width="1.04019" mask="url(#path-3-outside-1_2560_1087)"></path></svg>',1)])])):le("",!0),n.value?(R(),k("div",{key:2,class:"btn",onClick:Dt(c,["stop"])},[...d[1]||(d[1]=[Kr('<svg width="23" height="22" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg"><circle opacity="0.5" cx="11.6465" cy="10.7852" r="10.7383" transform="rotate(-180 11.6465 10.7852)" fill="black"></circle><path fill-rule="evenodd" clip-rule="evenodd" d="M8.72876 12.0234L11.6155 7.02344L14.5023 12.0234L12.1155 12.0234L12.1155 14.9091L11.1155 14.9091L11.1155 12.0234L8.72876 12.0234Z" fill="white"></path><mask id="path-3-outside-1_2560_1183" maskUnits="userSpaceOnUse" x="1.44678" y="0.601561" width="20" height="20" fill="black"><rect fill="white" x="1.44678" y="0.601561" width="20" height="20"></rect><path d="M2.84616 10.8013C2.84616 5.94098 6.78619 2.00094 11.6465 2.00094C16.5067 2.00094 20.4468 5.94098 20.4468 10.8013C20.4468 15.6615 16.5067 19.6016 11.6465 19.6016C6.78619 19.6016 2.84616 15.6615 2.84616 10.8013ZM18.8559 10.8013C18.8559 6.81957 15.6282 3.59177 11.6465 3.59177C7.66478 3.59177 4.43699 6.81957 4.43699 10.8013C4.43699 14.7829 7.66478 18.0107 11.6465 18.0107C15.6282 18.0107 18.8559 14.7829 18.8559 10.8013Z"></path></mask><path d="M2.84616 10.8013C2.84616 5.94098 6.78619 2.00094 11.6465 2.00094C16.5067 2.00094 20.4468 5.94098 20.4468 10.8013C20.4468 15.6615 16.5067 19.6016 11.6465 19.6016C6.78619 19.6016 2.84616 15.6615 2.84616 10.8013ZM18.8559 10.8013C18.8559 6.81957 15.6282 3.59177 11.6465 3.59177C7.66478 3.59177 4.43699 6.81957 4.43699 10.8013C4.43699 14.7829 7.66478 18.0107 11.6465 18.0107C15.6282 18.0107 18.8559 14.7829 18.8559 10.8013Z" fill="black" fill-opacity="0.6"></path><path d="M2.84616 10.8013C2.84616 5.94098 6.78619 2.00094 11.6465 2.00094C16.5067 2.00094 20.4468 5.94098 20.4468 10.8013C20.4468 15.6615 16.5067 19.6016 11.6465 19.6016C6.78619 19.6016 2.84616 15.6615 2.84616 10.8013ZM18.8559 10.8013C18.8559 6.81957 15.6282 3.59177 11.6465 3.59177C7.66478 3.59177 4.43699 6.81957 4.43699 10.8013C4.43699 14.7829 7.66478 18.0107 11.6465 18.0107C15.6282 18.0107 18.8559 14.7829 18.8559 10.8013Z" stroke="white" stroke-opacity="0.2" stroke-width="1.04019" mask="url(#path-3-outside-1_2560_1183)"></path></svg>',1)])])):le("",!0),i.value?(R(),k("div",{key:3,class:"btn",onClick:Dt(l,["stop"])},[(R(),k("svg",DE,[d[2]||(d[2]=Kr('<circle opacity="0.5" cx="11.605" cy="11.7227" r="10.7383" fill="black"></circle><mask id="path-2-outside-1_2560_1174" maskUnits="userSpaceOnUse" x="1.80469" y="1.90625" width="20" height="20" fill="black"><rect fill="white" x="1.80469" y="1.90625" width="20" height="20"></rect><path d="M20.4053 11.7066C20.4053 16.5668 16.4653 20.5069 11.605 20.5069C6.74472 20.5069 2.80469 16.5668 2.80469 11.7066C2.80469 6.84628 6.74472 2.90625 11.605 2.90625C16.4653 2.90625 20.4053 6.84628 20.4053 11.7066ZM4.39552 11.7066C4.39552 15.6882 7.62331 18.916 11.605 18.916C15.5867 18.916 18.8145 15.6882 18.8145 11.7066C18.8145 7.72487 15.5867 4.49708 11.605 4.49708C7.62331 4.49708 4.39552 7.72487 4.39552 11.7066Z"></path></mask><path d="M20.4053 11.7066C20.4053 16.5668 16.4653 20.5069 11.605 20.5069C6.74472 20.5069 2.80469 16.5668 2.80469 11.7066C2.80469 6.84628 6.74472 2.90625 11.605 2.90625C16.4653 2.90625 20.4053 6.84628 20.4053 11.7066ZM4.39552 11.7066C4.39552 15.6882 7.62331 18.916 11.605 18.916C15.5867 18.916 18.8145 15.6882 18.8145 11.7066C18.8145 7.72487 15.5867 4.49708 11.605 4.49708C7.62331 4.49708 4.39552 7.72487 4.39552 11.7066Z" fill="black" fill-opacity="0.6"></path><path d="M20.4053 11.7066C20.4053 16.5668 16.4653 20.5069 11.605 20.5069C6.74472 20.5069 2.80469 16.5668 2.80469 11.7066C2.80469 6.84628 6.74472 2.90625 11.605 2.90625C16.4653 2.90625 20.4053 6.84628 20.4053 11.7066ZM4.39552 11.7066C4.39552 15.6882 7.62331 18.916 11.605 18.916C15.5867 18.916 18.8145 15.6882 18.8145 11.7066C18.8145 7.72487 15.5867 4.49708 11.605 4.49708C7.62331 4.49708 4.39552 7.72487 4.39552 11.7066Z" stroke="white" stroke-opacity="0.2" stroke-width="1.04019" mask="url(#path-2-outside-1_2560_1174)"></path>',4)),y("circle",{class:"progress-bar",cx:"11.605",cy:"11.7227",r:Nh,fill:"none",stroke:"white","stroke-width":"1.9","stroke-dasharray":D(o),"stroke-dashoffset":r.value,transform:"rotate(-90, 11.605, 11.7227)"},null,8,PE),d[3]||(d[3]=y("rect",{x:"13.905",y:"8.1875",width:"1.74414",height:"8.24933",transform:"rotate(45 13.905 8.1875)",fill:"white"},null,-1)),d[4]||(d[4]=y("rect",{x:"8.07178",y:"9.42188",width:"1.74414",height:"8.24933",transform:"rotate(-45 8.07178 9.42188)",fill:"white"},null,-1))]))])):le("",!0)]))}}),[["styles",[`:host{display:inline-block;vertical-align:bottom}.content{position:relative;display:inline-block;width:auto;height:auto;line-height:0}.marked{position:absolute;top:0;left:0;width:100%;height:100%}.btn{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:22px;cursor:pointer}
|
|
381
|
+
`]]]),FE={key:0,class:"rc-kit-toast"},$E={class:"rc-kit-toast-content"},HE={key:0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},GE={class:"rc-kit-toast-text"},BE=Ie(Se({__name:"toast-provider.ce",setup(e){const t=ye(),s=N(!1),n=N(""),i=N(!0);let o=null;const r=l=>{o&&(clearTimeout(o),o=null),n.value=l.message,i.value=l.showIcon!==!1,s.value=!0,o=setTimeout(()=>{s.value=!1,o=null},3e3)},a=l=>{r(l.data)};return ot(()=>{t.addEventListener(fe.TOAST_EVENT,a)}),Ct(()=>{o&&clearTimeout(o),t.removeEventListener(fe.TOAST_EVENT,a)}),(l,c)=>(R(),xe(kl,{name:"toast-fade"},{default:ht(()=>[s.value?(R(),k("div",FE,[y("div",$E,[i.value?(R(),k("svg",HE,[...c[0]||(c[0]=[y("circle",{cx:"12",cy:"12",r:"12",fill:"#46DB7A"},null,-1),y("path",{d:"M7.24951 13.2507L10.2495 16.2507L17.2495 9.25073",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):le("",!0),y("span",GE,se(n.value),1)])])):le("",!0)]),_:1}))}}),[["styles",[`.rc-kit-toast[data-v-e1032a29]{position:absolute;top:70px;left:0;right:0;width:100%;height:46px;background-color:#c9f5d8;display:flex;align-items:center;justify-content:center;z-index:100}.rc-kit-toast-content[data-v-e1032a29]{display:flex;align-items:center;justify-content:center;gap:8px}.rc-kit-toast-text[data-v-e1032a29]{font-size:16px;color:#020814;line-height:20px}.toast-fade-enter-active[data-v-e1032a29]{transition:opacity .3s ease-in,transform .3s ease-in}.toast-fade-leave-active[data-v-e1032a29]{transition:opacity .3s ease-out,transform .3s ease-out}.toast-fade-enter-from[data-v-e1032a29],.toast-fade-leave-to[data-v-e1032a29]{opacity:0;transform:translateY(-10px)}.toast-fade-enter-to[data-v-e1032a29],.toast-fade-leave-from[data-v-e1032a29]{opacity:1;transform:translateY(0)}
|
|
382
|
+
`]],["__scopeId","data-v-e1032a29"]]),jE={class:"view-box"},qE={class:"user-name"},KE={class:"message-content"},zE={key:1},QE=Ie(Se({__name:"quote-info-view-provider.ce",props:{quoteInfo:{type:Object}},setup(e){const t=e,s=me(()=>{var l,c,u,d;const a=t.quoteInfo.senderId;if(a===((l=Ta.value)==null?void 0:l.userId))return((c=Ta.value)==null?void 0:c.name)||a;if(((u=ce.value)==null?void 0:u.conversationType)===f.ConversationType.GROUP){const h=Ys.value.find(p=>p.userId===a);return(h==null?void 0:h.name)||a}return((d=ce.value)==null?void 0:d.name)||a}),n=me(()=>{const{status:a}=t.quoteInfo;switch(a){case rt.LOADING:return Ce("quote.status.loading");case rt.DELETED:return Ce("quote.status.deleted");case rt.RECALLED:return Ce("quote.status.recalled");case rt.LOAD_ERROR:return Ce("quote.status.load-error");default:return""}}),i=me(()=>t.quoteInfo.quoteMessage?Ia(t.quoteInfo.quoteMessage.messageType):""),o=me(()=>t.quoteInfo.quoteMessage?Ia(t.quoteInfo.quoteMessage.messageType)!=="rc-unsupported-message":!1),r=me(()=>t.quoteInfo.quoteMessage?wa(t.quoteInfo.quoteMessage):"");return(a,l)=>(R(),k("div",jE,[l[0]||(l[0]=y("div",{class:"view-box-prefix"},null,-1)),y("div",qE,se(s.value)+":",1),y("div",KE,[e.quoteInfo.status!==D(rt).LOADED?(R(),k(Ae,{key:0},[$i(se(n.value),1)],64)):(R(),k(Ae,{key:1},[o.value?(R(),xe(Vr(i.value),{key:0,message:e.quoteInfo.quoteMessage,position:D(ms).QUOTE_INFO},null,8,["message","position"])):(R(),k("span",zE,se(r.value),1))],64))])]))}}),[["styles",[`.view-box[data-v-30e1d496]{display:flex;align-items:center;padding:20px;font-size:12px;color:#020814;position:relative}.view-box .view-box-prefix[data-v-30e1d496]{background-color:#020814;width:1px;height:10px;flex-shrink:0}.view-box .user-name[data-v-30e1d496]{margin-left:8px;margin-right:8px;flex-shrink:0}.view-box .message-content[data-v-30e1d496]{flex:1;overflow:hidden;line-height:1;min-width:0;display:flex;align-items:center}.view-box .message-content[data-v-30e1d496]>*{max-width:100%;flex-shrink:1}.view-box .message-content>span[data-v-30e1d496]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.view-box[data-v-30e1d496]:after{content:"";position:absolute;bottom:0;left:20px;right:20px;height:1px;background-color:#0000001a}
|
|
383
|
+
`]],["__scopeId","data-v-30e1d496"]]),WE={key:0,class:"rc-message-reactions"},ZE=Ie(Se({__name:"message-reactions-provider.ce",props:{reactions:{type:Array},message:{type:Object},align:{type:Boolean}},setup(e){const t=ye(),s=t.isShowMessageReactUsersEnabled,n=Cs(new Map);if(s){const r=async()=>{const a=e.message.conversationType===j.ConversationType.GROUP?e.message.targetId:void 0,l=new Set;e.reactions.forEach(u=>{u.users.forEach(d=>l.add(d))});const c=await t.appData.requestUserViewProfiles(Array.from(l),a);n.clear(),e.reactions.forEach(u=>{const d=u.users.map(h=>{const p=c.get(h);return p.nickname||p.name});n.set(u,d)})};qt(()=>e.reactions,r),r()}const i=r=>{const a=r.detail[0];a&&t.message.updateMessageReaction(e.message,a.reactionId,a.hasCurrentUserReacted)},o=r=>{const a=r.detail[0];a&&t.emit(new ee(fe.REACTIONS_DETAIL_EVENT,{message:e.message,reactionId:a.reactionId}))};return(r,a)=>{const l=Ee("rc-reaction");return e.reactions.length?(R(),k("div",WE,[(R(!0),k(Ae,null,pt(e.reactions,c=>(R(),xe(l,{key:c.reactionId,reaction:c,showusers:D(s),names:n.get(c),align:e.align,onReactionClick:i,onDetailClick:o},null,8,["reaction","showusers","names","align"]))),128))])):le("",!0)}}}),[["styles",[`.rc-message-reactions{display:flex;flex-wrap:wrap;gap:4px;padding:0 20px 20px;max-width:100%}
|
|
384
|
+
`]]]),YE={class:"modal-reactions-detail-provider"},XE={class:"reactions-detail-header"},JE={class:"reactions-detail-body"},ev={class:"reactions-tab-list"},tv=["onClick"],sv={class:"tab-emoji"},nv={class:"tab-count"},iv=["src"],ov={class:"user-name"},rv={key:0,class:"reactions-user-loading"},av=Ie(Se({__name:"modal-reactions-detail-provider.ce",props:{reactions:{type:String},messageUid:{type:String},initialReactionId:{type:String}},emits:["cancel"],setup(e,{emit:t}){var O;const s=e,n=t,i=ye(),o=N(),r=me(()=>{try{return JSON.parse(s.reactions)}catch{return[]}}),a=N(s.initialReactionId||((O=r.value[0])==null?void 0:O.reactionId)||""),l=N(!1),c=N([]),u=N(""),d=me(()=>u.value.length>0),h=async(w,C=!1)=>{if(!ce.value||C&&l.value)return;l.value=!0;const[g]=await Promise.all([f.getMessageReactionUsers({conversationIdentifier:{conversationType:ce.value.conversationType,targetId:ce.value.targetId},messageUId:s.messageUid,reactionId:w,count:50,pageToken:C?u.value:void 0}),new Promise(E=>setTimeout(E,300))]);if(a.value!==w)return;if(l.value=!1,!g.isOk){i.alert("alert.imlib.failed.generic",g.code);return}const _=(g.data.users||[]).map(E=>{var P;if(((P=ce.value)==null?void 0:P.conversationType)===f.ConversationType.GROUP){const F=Ys.value.find(x=>x.userId===E.userId);if(F)return{userId:E.userId,name:F.nickname||F.name,portraitUri:F.portraitUri||""}}const L=i.appData.getUserProfile(E.userId);return{userId:E.userId,name:L.name||E.userId,portraitUri:L.portraitUri||""}});C?c.value.push(..._):c.value=_,u.value=g.data.pageToken},p=w=>{a.value!==w&&(a.value=w,c.value=[],u.value="",l.value=!1,h(w))},m=()=>{if(!d.value||l.value)return;const w=o.value;w&&w.scrollTop+w.clientHeight>=w.scrollHeight-20&&h(a.value,!0)},v=()=>{n("cancel")};return ot(()=>{a.value&&h(a.value)}),(w,C)=>{const g=Ee("rc-modal-provider");return R(),k("div",YE,[Re(g,{onClick:v},{default:ht(()=>[y("div",{class:"reactions-detail-panel",onClick:C[0]||(C[0]=Dt(()=>{},["stop"]))},[y("div",XE,se(D(Ce)("reaction.detail.title")),1),y("div",JE,[y("div",ev,[(R(!0),k(Ae,null,pt(r.value,_=>(R(),k("div",{key:_.reactionId,class:Pe(["reactions-tab-item",{"reactions-tab-item-active":a.value===_.reactionId}]),onClick:E=>p(_.reactionId)},[y("span",sv,se(_.reactionId),1),y("span",nv,se(_.totalCount>99?"99+":_.totalCount),1)],10,tv))),128))]),y("div",{class:"reactions-user-list",ref_key:"userListRef",ref:o,onScroll:m},[(R(!0),k(Ae,null,pt(c.value,_=>(R(),k("div",{key:_.userId,class:"reactions-user-item"},[y("img",{class:"user-avatar",src:_.portraitUri,alt:""},null,8,iv),y("span",ov,se(_.name),1)]))),128)),l.value?(R(),k("div",rv,se(D(Ce)("reaction.detail.loading")),1)):le("",!0)],544)])])]),_:1})])}}}),[["styles",[`.reactions-detail-panel{background:#FFFFFF;border-radius:6px;width:520px;height:460px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 4px 24px #00000026}.reactions-detail-header{padding:16px 20px;font-size:16px;font-weight:500;color:#020814;text-align:center;border-bottom:1px solid #E5E5E5;flex-shrink:0}.reactions-detail-body{display:flex;flex:1;min-height:0}.reactions-tab-list{width:120px;border-right:1px solid #E5E5E5;overflow-y:auto;flex-shrink:0;padding:12px 16px;display:flex;flex-direction:column;gap:8px}.reactions-tab-item{display:flex;align-items:center;justify-content:center;gap:4px;padding:6px 12px;border-radius:14px;cursor:pointer;font-size:14px;color:#41464f;background-color:#f3f5fa;white-space:nowrap}.reactions-tab-item:hover{background-color:#e3e7ef}.reactions-tab-item-active{background-color:#0047ff;color:#fff}.tab-emoji{font-size:16px}.tab-count{font-size:12px}.reactions-user-list{flex:1;overflow-y:auto;padding:12px 0}.reactions-user-loading{padding:20px;text-align:center;color:#7c838e;font-size:14px}.reactions-user-item{display:flex;align-items:center;gap:12px;padding:10px 20px}.user-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;flex-shrink:0;background-color:#e5e5e5}.user-name{font-size:14px;color:#41464f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
385
|
+
`]]]),lv={class:"rc-kit-app-inner"},cv=Ie(Se({__name:"conversation-detail-provider.ce",setup(e){Ph();const t=N(!1),s=me(()=>Fh.value),n=()=>{t.value=vs()},i=Je("conversation.empty.desc"),o=me(()=>ce.value&&ce.value.conversationType===j.ConversationType.SYSTEM),r=N(0),a=N(0),l=ye().store.getCommandSwitch(ut.SHOW_CONNECTION_STATUS),c=u=>{const{status:d,code:h}=u.data;r.value=d,a.value=h};return ot(()=>{n(),window.addEventListener("resize",n),ye().addEventListener(Z.CONNECTION_STATUS_CHANGE,c,this)}),Ct(()=>{window.removeEventListener("resize",n),ye().removeEventListener(Z.CONNECTION_STATUS_CHANGE,c,this)}),(u,d)=>{const h=Ee("rc-connection-status"),p=Ee("rc-conversation-empty"),m=Ee("rc-conversation-detail-bar-provider"),v=Ee("rc-toast-provider"),O=Ee("rc-message-list-provider"),w=Ee("rc-input-provider"),C=Ee("rc-multi-choice-menu-provider");return R(),k("div",{class:Pe(["rc-kit-app-wrapper-right",{"is-h5":t.value}])},[y("div",lv,[Re(h,{visible:r.value!==D(j.RCConnectionStatus).CONNECTED&&D(l),status:r.value,code:a.value},null,8,["visible","status","code"]),D(ce)?(R(),k(Ae,{key:1},[Re(m,{conversation:D(ce),"show-back":s.value},null,8,["conversation","show-back"]),Re(v),Re(O,{class:"rc-kit-msg-list"}),Ss(Re(w,{conversation:D(ce)},null,8,["conversation"]),[[Zs,!D(Ms)&&!o.value]]),D(Ms)?(R(),xe(C,{key:0})):le("",!0)],64)):(R(),xe(p,{key:0,style:{width:"100%",height:"100%"},desc:D(i)},null,8,["desc"]))])],2)}}}),[["styles",[`:host{display:block;height:100%}.rc-kit-app-wrapper-right{width:100%;height:100%;position:relative}.rc-kit-app-inner{width:100%;height:100%;min-width:600px;display:flex;flex-direction:column}.rc-kit-app-wrapper-right.is-h5 .rc-kit-app-inner{min-width:350px}.rc-kit-msg-list{flex:1 1 auto;overflow:hidden;background-color:#fff;position:relative}.rc-kit-app-inner{position:relative}.camera-screen{flex:1 auto}
|
|
386
|
+
`]]]),uv={key:0,class:"rc-kit-app-conv-bar"},dv={class:"bar-content"},fv={class:"bar-title"},hv={class:"rc-kit-app-conv"},pv=Ie(Se({__name:"conversation-list-container-provider.ce",setup(e){Ph();const t=N(!1),s=()=>{t.value=vs()},n=me(()=>Vh.value);return ot(()=>{s(),window.addEventListener("resize",s)}),Ct(()=>{window.removeEventListener("resize",s)}),(i,o)=>{const r=Ee("rc-conversation-list-provider");return R(),k("div",{class:Pe(["rc-kit-app-wrapper-left",{"is-h5":t.value}])},[t.value&&n.value?(R(),k("div",uv,[y("div",dv,[y("span",fv,se(D(Rc)||D(Ce)("conversation.list.bar.title")),1)])])):le("",!0),y("div",hv,[Re(r)])],2)}}}),[["styles",[`:host{display:block;height:100%}.rc-kit-app-wrapper-left{min-width:312px;width:312px;height:100%;display:flex;flex-direction:column}.rc-kit-app-wrapper-left.is-h5{min-width:0;width:100%}.bar-content{width:100%;height:68px;display:flex;flex-direction:row;align-items:center;position:relative;z-index:2;background-color:#fff;border-bottom:1px solid #efefef}.bar-title{font-size:16px;font-weight:500;color:#000;margin:0 20px}.rc-kit-app-conv{flex:auto;overflow:hidden}
|
|
387
|
+
`]]]),gv=Ie(Se({__name:"rc-imkit-app.ce",setup(e){const t=N(!1),s=me(()=>ce.value!==null),n=()=>{t.value=vs()};return ot(()=>{n(),window.addEventListener("resize",n)}),Ct(()=>{window.removeEventListener("resize",n)}),(i,o)=>{const r=Ee("rc-conversation-list-container-provider"),a=Ee("rc-conversation-detail-provider");return R(),k("div",{class:Pe(["rc-kit-app",{"is-h5":t.value}])},[!t.value||!s.value?(R(),xe(r,{key:0,class:"list"})):le("",!0),!t.value||s.value?(R(),xe(a,{key:1,class:"detail"})):le("",!0)],2)}}}),[["styles",[`:host{display:block;height:100%}.rc-kit-app{width:100%;height:100%;display:flex;flex-direction:row;position:relative}.rc-kit-app.is-h5{flex-direction:column}.detail{flex:1 auto;overflow:hidden}.list{border-right:1px solid #E4E7ED}.rc-kit-app.is-h5 .list{border-right:none;border-bottom:1px solid #E4E7ED;height:100%}
|
|
388
|
+
`]]]),qe={GREY_MESSAGE_PROVIDER:"rc-grey-message-provider",SCROLLBAR_PROVIDER:"rc-scrollbar-provider",SCROLLBAR_THUMB_PROVIDER:"rc-scrollbar-thumb-provider",MODAL_PROVIDER:"rc-modal-provider",MODAL_CONFIRM_PROVIDER:"rc-modal-confirm-provider",MODAL_ALERT_PROVIDER:"rc-modal-alert-provider",MODAL_FORWARDING_PROVIDER:"rc-modal-forwarding-provider",MODAL_DELETE_MESSAGE_PROVIDER:"rc-modal-delete-message-provider",MODAL_MEDIA_MESSAGE_PROVIDER:"rc-modal-media-message-provider",MODAL_COMBINE_MESSAGE_PROVIDER:"rc-modal-combine-message-provider",MODAL_TAKE_PHOTO_PROVIDER:"rc-modal-take-photo-provider",CONVERSATION_LIST_CONTAINER_PROVIDER:"rc-conversation-list-container-provider",CONVERSATION_LIST_PROVIDER:"rc-conversation-list-provider",CONVERSATION_DETAIL_PROVIDER:"rc-conversation-detail-provider",InputProvider:"rc-input-provider",MESSAGLISTPROVIDER:"rc-message-list-provider",CONVERSATION_DETAIL_BAR_PROVIDER:"rc-conversation-detail-bar-provider",EMOJI_PANEL_PROVIDER:"rc-emoji-panel-provider",MULTI_CHOICE_MENU_PROVIDER:"rc-multi-choice-menu-provider",AT_USERS_PANEL_PROVIDER:"rc-at-users-panel-provider",HQ_VOICE_MESSAGE_PROVIDER:"rc-hq-voice-message-privider",FileTransferCtrlProvider:"rc-file-transfer-ctrl-provider",APP_PROVIDER:"rc-imkit-app-provider",TOAST_PROVIDER:"rc-toast-provider",QUOTE_INFO_VIEW_PROVIDER:"rc-quote-info-view-provider",MESSAGE_REACTIONS_PROVIDER:"rc-message-reactions-provider",MODAL_REACTIONS_DETAIL_PROVIDER:"rc-modal-reactions-detail-provider"},_v={[qe.GREY_MESSAGE_PROVIDER]:kE,[qe.SCROLLBAR_PROVIDER]:mm,[qe.SCROLLBAR_THUMB_PROVIDER]:Em,[qe.MODAL_PROVIDER]:e7,[qe.MODAL_CONFIRM_PROVIDER]:o7,[qe.MODAL_ALERT_PROVIDER]:u7,[qe.MODAL_FORWARDING_PROVIDER]:M7,[qe.MODAL_DELETE_MESSAGE_PROVIDER]:x7,[qe.MODAL_MEDIA_MESSAGE_PROVIDER]:B7,[qe.MODAL_TAKE_PHOTO_PROVIDER]:sm,[qe.MODAL_COMBINE_MESSAGE_PROVIDER]:_m,[qe.CONVERSATION_LIST_PROVIDER]:W8,[qe.CONVERSATION_DETAIL_PROVIDER]:cv,[qe.CONVERSATION_LIST_CONTAINER_PROVIDER]:pv,[qe.InputProvider]:Bm,[qe.MESSAGLISTPROVIDER]:mE,[qe.CONVERSATION_DETAIL_BAR_PROVIDER]:eE,[qe.EMOJI_PANEL_PROVIDER]:wE,[qe.MULTI_CHOICE_MENU_PROVIDER]:RE,[qe.AT_USERS_PANEL_PROVIDER]:bE,[qe.HQ_VOICE_MESSAGE_PROVIDER]:LE,[qe.FileTransferCtrlProvider]:VE,[qe.APP_PROVIDER]:gv,[qe.TOAST_PROVIDER]:BE,[qe.QUOTE_INFO_VIEW_PROVIDER]:QE,[qe.MESSAGE_REACTIONS_PROVIDER]:ZE,[qe.MODAL_REACTIONS_DETAIL_PROVIDER]:av},Dh="f52b2de77a980e6cace432162d9b84f18e66f80f",Tc="5.42.0";var Ic=(e=>(e.LANGUAGE="WEB_IM_KIT_ENV.LANGUAGE",e.CURRENT_USER_ID="WEB_IM_KIT_ENV.CURRENT_USER_ID",e))(Ic||{});let ze;const wc=N(""),Ph=()=>{wc.value=ye().userId,Rr(Ic.CURRENT_USER_ID,wc),Rr(Ic.LANGUAGE,go(ui))},Vh=N(!0),Fh=N(!0);let Rc=N(void 0);const ce=N(null),He=N(),Vn=N(0),Ys=N([]),Ta=N(),mv=async e=>{const{status:t}=e.data;if(t===f.RCConnectionStatus.CONNECTED){const s=f.getCurrentUserId(),n=await ze.appData.requestUserProfiles([s]);Ta.value=n[0]}},Ev=async e=>{var r;const t=(r=e.data)==null?void 0:r.conversation;if(ce.value=t||null,Ys.value.length=0,ye().audioPlayer.pause(),!t)return;const{conversationType:s,targetId:n}=t;if(s!==j.ConversationType.GROUP)return;const i=await ze.appData.reqGroupMembers(n);if(i.length===0)return;const o=await ze.appData.requestUserProfiles(i.map(a=>a.userId));!ce.value||!vt(t,ce.value)||Ys.value.push(...o.filter(a=>a.userId!==ze.userId).map(a=>{const l=i.findIndex(c=>c.userId===a.userId);return{userId:a.userId,nickname:i[l].nickname,name:a.name,portraitUri:a.portraitUri}}))},$h=async()=>{ce.value=null,He.value&&(He.value.value=""),Vn.value=0,Ys.value=[],wc.value=ye().userId};function vv(e){ze=e,e.logger,ze.addEventListener(fe.CONVERSATION_SELECTED,Ev),ze.addEventListener(Z.CONNECTION_STATUS_CHANGE,mv),ze.addEventListener(Z.DESTROY_USER_CACHE,$h),ze.addEventListener(Z.CONVERSATION_BAR_SWITCH_CHANGE,t=>{Vh.value=t.data}),ze.addEventListener(Z.CONVERSATION_DETAIL_BACK_SWITCH_CHANGE,t=>{Fh.value=t.data}),ze.addEventListener(Z.CONVERSATION_BAR_TITLE_CHANGE,t=>{Rc.value=t.data,console.log("conversationBarTitle====",Rc.value)}),yv(ze)}const ye=()=>ze,bt=N([]),ke=N([]),Ms=N(!1),Ds=N([]),Ps=N([]),Zo=N(!0);qt(Ms,()=>{Ds.value=[],Ps.value=[],Zo.value=!0});const Cv=me(()=>Ds.value.length),Vt=N(null),Hh=e=>{const t=e.messageType;if(t===j.MessageType.TextMessage||t===j.MessageType.REFERENCE)return e.content.content;let s=`message-type.${t}`;return S_(s)?Je(s).value:wa(e)},Xi=me(()=>{if(!Vt.value)return null;const e=Vt.value,{messageType:t,content:s}=e;let n=Hh(e);t===j.MessageType.FILE&&(n+=` ${s.name}`);let i;(t===j.MessageType.IMAGE||t===j.MessageType.SIGHT)&&(i=`data:image/png;base64,${s.content}`);const o=ze.appData.getUserProfile(Vt.value.senderUserId).name;return Cs({previewText:n,thumbnail:i,username:o,message:e,cancel(){Vt.value=null}})}),Fn=(e,t)=>{let s=document.body;e.modalContainerId&&document.getElementById(e.modalContainerId)&&(s=document.getElementById(e.modalContainerId)),s.appendChild(t)},yv=e=>{e.addEventListener(fe.CONFIRM_EVENT,t=>{const s=document.createElement(qe.MODAL_CONFIRM_PROVIDER);s.addEventListener("cancel",()=>{t.sendResult(!1),s.remove()}),s.addEventListener("confirm",()=>{t.sendResult(!0),s.remove()}),Fn(e,s)}),e.addEventListener(fe.ALERT_EVENT,t=>{const s=document.createElement(qe.MODAL_ALERT_PROVIDER);s.addEventListener("cancel",n=>{s.remove()}),Fn(e,s)}),e.addEventListener(fe.FORWARDING_EVENT,t=>{const s=document.createElement(qe.MODAL_FORWARDING_PROVIDER);s.addEventListener("cancel",()=>{t.sendResult({type:Sn.CANCEL}),s.remove()}),s.addEventListener("confirm",n=>{t.sendResult({type:Sn.CONFIRM,list:n.detail[0].list}),s.remove()}),Fn(e,s)}),e.addEventListener(fe.DELETE_MESSAGE_MODAL_EVENT,t=>{const s=document.createElement(qe.MODAL_DELETE_MESSAGE_PROVIDER);s.addEventListener("cancel",()=>{t.sendResult({type:Sn.CANCEL}),s.remove()}),s.addEventListener("confirm",n=>{t.sendResult({type:Sn.CONFIRM}),s.remove()}),Fn(e,s)}),e.addEventListener(fe.MEDIA_MESSAGE_MODAL_EVENT,t=>{var i,o,r,a;const s=document.createElement(qe.MODAL_MEDIA_MESSAGE_PROVIDER);s.addEventListener("cancel",l=>{s.remove()}),s.addEventListener("download",l=>{e.emit(new ee(fe.DOWNLOAD_LINK_EVENT,t.data))});const n=((i=t.data.content)==null?void 0:i.sightUrl)||((o=t.data.content)==null?void 0:o.imageUri)||((r=t.data.content)==null?void 0:r.remoteUrl)||((a=t.data.content)==null?void 0:a.fileUrl);s.setAttribute("url",n),s.setAttribute("user-id",t.data.senderUserId),s.setAttribute("sent-time",`${t.data.sentTime}`),s.setAttribute("message-type",`${t.data.messageType}`),s.setAttribute("message-uid",`${t.data.messageUId}`),s.setAttribute("content",`${t.data.content.content}`),Fn(e,s)}),e.addEventListener(fe.COMBINE_MESSAGE_MODAL_EVENT,t=>{const s=document.createElement(qe.MODAL_COMBINE_MESSAGE_PROVIDER);s.addEventListener("cancel",r=>{e.audioPlayer.pause(),s.remove()}),s.addEventListener("download",r=>{e.emit(new ee(fe.DOWNLOAD_LINK_EVENT,r.detail[0]))});const n=t.data.content.remoteUrl||"";s.setAttribute("url",n);const i=t.data.content||{},o=t.data.messageType||j.MessageType.COMBINE_V2;s.setAttribute("content",JSON.stringify(i)),s.setAttribute("type",o),s.setAttribute("message-uid",`${t.data.messageUId}`),Fn(e,s)}),e.addEventListener(fe.TAKE_PHOTO_MODAL_EVENT,t=>{const s=document.createElement(qe.MODAL_TAKE_PHOTO_PROVIDER);s.addEventListener("cancel",n=>{s.remove()}),Fn(e,s)}),e.addEventListener(fe.REACTIONS_DETAIL_EVENT,t=>{const s=document.createElement(qe.MODAL_REACTIONS_DETAIL_PROVIDER);s.addEventListener("cancel",()=>{s.remove()}),s.setAttribute("message-uid",t.data.message.messageUId),s.setAttribute("initial-reaction-id",t.data.reactionId),s.setAttribute("reactions",JSON.stringify(t.data.message.reactions)),Fn(e,s)}),e.addEventListener(fe.MESSAGE_LINK_CLICK,t=>{if(t.data.type==="mail"){location.href=`mailto:${t.data.address}`;return}window.open(t.data.address)}),e.addEventListener(Z.GROUP_MEMBERS_UPDATE,async t=>{if(!ce.value)return;const{groupId:s,members:n}=t.data,{conversationType:i,targetId:o}=ce.value;if(i!==j.ConversationType.GROUP||o!==t.data.groupId)return;const r=await ze.appData.requestUserProfiles(n.map(a=>a.userId));!ce.value||ce.value.conversationType!==j.ConversationType.GROUP||ce.value.targetId!==s||Ys.value.splice(0,Ys.value.length,...r.filter(a=>a.userId!==ze.userId).map((a,l)=>({userId:a.userId,nickname:n[l].nickname,name:a.name,portraitUri:a.portraitUri})))}),e.addEventListener(Z.CONVERSATION_ITEM_CHANGE,t=>{if(!ce.value)return;const s=t.data.find(n=>vt(n,ce.value));s&&(ce.value={...ce.value,...s})})},Mc={[j.MessageType.TEXT]:Fe.TEXT_MESSAGE,[j.MessageType.IMAGE]:Fe.IMAGE_MESSAGE,[j.MessageType.SIGHT]:Fe.SIGHT_MESSAGE,[j.MessageType.FILE]:Fe.FILE_MESSAGE,[j.MessageType.REFERENCE]:Fe.REFERENCE_MESSAGE,[j.MessageType.COMBINE]:Fe.COMBINE_V2_MESSAGE,[j.MessageType.COMBINE_V2]:Fe.COMBINE_V2_MESSAGE,[j.MessageType.HQ_VOICE]:qe.HQ_VOICE_MESSAGE_PROVIDER,[j.MessageType.GIF]:Fe.GIF_MESSAGE},Oc=new Map,bc=(e,t)=>{Oc.set(e,t)};bc("RC:RcCmd",e=>{if(e.senderUserId===ze.userId)return Ce("message.list.recall.by.self");const t=ze.appData.getUserProfile(e.senderUserId).name;return Ce("message.list.recall.by.other",t)}),bc("RC:RcNtf",e=>{if(e.senderUserId===ze.userId)return Ce("message.list.recall.by.self");const t=ze.appData.getUserProfile(e.senderUserId).name;return Ce("message.list.recall.by.other",t)});const Sv=(e,t)=>{Mc[e]=t},Ia=e=>Mc[e]||"rc-unsupported-message",Gh=e=>!Mc[e],Bh=async(e,t)=>{const s=new ee(fe.FORWARDING_EVENT,e);ze.emit(s);const{type:n,list:i}=await s.awaitResult();if(n===Sn.CANCEL||!(i instanceof Array)||i.length===0)return!1;const o=i.map(r=>({conversationType:r.conversationType,targetId:r.targetId,channelId:r.channelId}));return e===jn.SINGLE?o.forEach(r=>ze.message.forward(r,t.slice())):o.forEach(r=>ze.message.sendCombineMessage(r,t.slice())),ze.emit(new ee(fe.TOAST_EVENT,{message:ze.i18n.format("toast.forward.success"),showIcon:!0})),!0},jh=async e=>{if(e.length===0)return;const t=e[0],s=new ee(fe.DELETE_MESSAGE_MODAL_EVENT,{messages:e});ze.emit(s);const{type:n}=await s.awaitResult();n!==Sn.CANCEL&&(ze.message.deleteMessages(t,e,!1),Ms.value=!1)},Tv=async e=>{if(e.length===0)return;const t={conversationType:e[0].conversationType,targetId:e[0].targetId,channelId:e[0].channelId};ze.message.deleteMessages(t,e,!0)},qh=e=>{if(!e||e.messageType===j.MessageType.RECALL||e.messageType===j.MessageType.RECALL_NOTIFICATION_MESSAGE)return!1;const t=e.senderUserId===ze.userId;return!!(ze.store.getCommandSwitch(ut.SHOW_MESSAGE_STATE)&&t||(e.sentStatus===j.SentStatus.FAILED||e.sentStatus===j.SentStatus.SENDING)&&t)},wa=e=>{if(!e)return" ";const{messageType:t,content:s,senderUserId:n}=e;if(t===j.MessageType.TEXT||t===j.MessageType.REFERENCE)return s.content||" ";if(t===j.MessageType.RECALL||t===j.MessageType.RECALL_NOTIFICATION_MESSAGE){if(n===ze.userId)return Ce("message.list.recall.by.self");const r=ze.appData.getUserProfile(n).name;return Ce("message.list.recall.by.other",r)}if([j.MessageType.IMAGE,j.MessageType.GIF,j.MessageType.VOICE,j.MessageType.HQ_VOICE,j.MessageType.FILE,j.MessageType.SIGHT,j.MessageType.COMBINE,j.MessageType.COMBINE_V2].includes(t)){const r=`message-type.${t}`;return Ce(r)}if(!Oc.has(t))return Ce("message-type.unknown");const o=Oc.get(t);return me(()=>o(e,ui.value)).value};function Kh(e){return{messageUId:e.messageUId,objectName:e.messageType,senderId:e.senderUserId,status:rt.LOADED,quoteMessage:e}}const Iv=(e,t)=>{const{hasCurrentUserReacted:s,users:n,...i}=e,o=s?[t,...n.map(a=>a.userId).filter(a=>a!==t)]:n.map(a=>a.userId);return{hasCurrentUserReacted:s,users:o.slice(0,10),...i}},Yo=30;class wv extends Ls{constructor(s){super(s);B(this,"_sendQueue");B(this,"_uploadQueue");B(this,"_transactionIdCount",0);B(this,"_histories",new Map);B(this,"_v5Responded",new Set);B(this,"_messageQueue",[]);B(this,"_messageHandleTimer",null);B(this,"sendFiles",this._sendMultiMediaMessage.bind(this,S2));this._sendQueue=new Bp(s),this._uploadQueue=new jp(s)}_onInit(){f.electronExtension.enable()?(f.addEventListener(f.Events.MESSAGES,this._onRecvElectronMessage,this),this._handleElectronMessages()):f.addEventListener(f.Events.MESSAGES,this._onRecvMessages,this),f.addEventListener(f.Events.MESSAGE_RECEIPT_RESPONSE_V5,this._onV5ReceiptResponse,this),f.addEventListener(f.Events.MESSAGE_REACTION_CHANGED,this._onMessageReactionChanged,this)}_onInitUserCache(){}_onDestroyUserCache(){this._histories.clear(),this._transactionIdCount=0,this._messageQueue.length=0,this._messageHandleTimer&&(clearTimeout(this._messageHandleTimer),this._messageHandleTimer=null)}destroy(){this._onDestroyUserCache(),this._sendQueue.destroy(),this._uploadQueue.destroy(),f.removeEventListener(f.Events.MESSAGE_RECEIPT_RESPONSE_V5,this._onV5ReceiptResponse,this),f.removeEventListener(f.Events.MESSAGE_REACTION_CHANGED,this._onMessageReactionChanged,this),f.removeEventListener(f.Events.MESSAGES,this._onRecvElectronMessage,this),f.removeEventListener(f.Events.MESSAGES,this._onRecvMessages,this)}_createTransactionId(){return++this._transactionIdCount}_getExistCache(s){return this._histories.get(gt(s))}_getOrCreateCache(s,n,i,o){const r=gt(s);let a=this._histories.get(r);return a||(a={histories:[],startTime:0,endTime:n===0?f.getServerTime():n,hasMoreAfterEndTime:i,hasMoreBeforeStartTime:o},this._histories.set(r,a)),a}_emitBeforeSendMessage(s,n,i){const o={conversation:s,message:n,options:i};return this.ctx.emitMutable(new ee(fe.BEFORE_SEND_MESSAGE,o)),o}_isSameMessage(s,n){return s.messageUId&&n.messageUId?s.messageUId===n.messageUId:s.messageId&&n.messageId?s.messageId===n.messageId:!1}_push2Cache(s,...n){const{histories:i,startTime:o}=s;n.forEach(r=>{const a=i.findIndex(c=>this._isSameMessage(c,r));if(a!==-1)i.splice(a,1,r);else{const c=yn(i,u=>u.sentTime<r.sentTime);c===-1?i.unshift(r):i.splice(c+1,0,r)}const l=r.sentTime+1;s.endTime=s.endTime===0?l:Math.max(s.endTime,l)}),o||(s.startTime=Math.min(...n.map(r=>r.sentTime))-1)}_unshift2Cache(s,...n){const{histories:i}=s;n.forEach(o=>{const r=i.findIndex(l=>this._isSameMessage(l,o));if(r!==-1)i.splice(r,1,o);else{const l=i.findIndex(c=>c.sentTime>o.sentTime);l===-1?i.push(o):i.splice(l,0,o)}const a=o.sentTime-1;s.startTime=s.startTime===0?a:Math.min(s.startTime,a)})}_onRecvElectronMessage(s){this._messageQueue.push(...s.messages)}_handleElectronMessages(){this._messageHandleTimer=setTimeout(()=>{if(this._messageQueue.length>0){const s=this._messageQueue.splice(0);this._handleMessages(s)}this._messageHandleTimer=null,this._handleElectronMessages()},60)}_onRecvMessages(s){this._handleMessages(s.messages)}_onMessageReactionChanged(s){if(!this.ctx.isMessageReactionEnabled)return;const n=this.ctx.isShowMessageReactUsersEnabled,{reactions:i}=s,o=new Set,r=new Map;i.forEach(a=>{const{messageUId:l,conversationIdentifier:c,reactionId:u,operationType:d,totalCount:h,users:p}=a,m=gt(c),v=this._histories.get(m);if(!v)return;const O=v.histories.find(E=>E.messageUId===l);if(!O)return;if(o.add(O),d===f.MessageReactionOperationType.CLEARED){O.reactions.length=0;return}const w=this.ctx.userId,C=O.reactions,g=C.findIndex(E=>E.reactionId===u),_=O.reactions[g];if(d===f.MessageReactionOperationType.ADDED){const E=(_==null?void 0:_.hasCurrentUserReacted)||p.some(P=>P.userId===w),L=E?[w]:[];((_==null?void 0:_.users)||[]).concat(p.map(({userId:P})=>P)).forEach(P=>{L.length>=10||L.includes(P)||L.push(P)}),_?(_.totalCount=h,_.hasCurrentUserReacted=E,_.users=L):C.push({reactionId:u,totalCount:h,hasCurrentUserReacted:E,messageUId:l,users:L,reactionTime:p[0].reactionTime})}else if(d===f.MessageReactionOperationType.REMOVED){if(!_)return;if(h===0){C.splice(g,1);return}_.totalCount=h,p.forEach(({userId:E})=>{const L=_.users.findIndex(P=>P===E);if(L!==-1&&(_.users.splice(L,1),n&&_.users.length<10&&_.totalCount>=10)){const P=r.get(m)||{identifier:c,msgSet:new Set};P.msgSet.add(O),r.set(m,P),o.delete(O)}}),_.hasCurrentUserReacted=_.users.includes(w)}}),o.size>0&&this.ctx.dispatch(new ee(Z.MESSAGE_STATE_CHANGE,Array.from(o))),r.size>0&&[...r.values()].forEach(({identifier:a,msgSet:l})=>{this._checkAndFillReactions(a,Array.from(l))})}_onV5ReceiptResponse(s){try{if(!s||!Array.isArray(s))return;s.forEach(n=>{const i=gt(n.identifier);let o=this._histories.get(i);if(!o)return;const r=o.histories.findIndex(l=>l.messageUId===n.messageUId);if(r<0)return;const a={identifier:n.identifier,messageUId:n.messageUId,unreadCount:n.unreadCount,readCount:n.readCount,totalCount:n.totalCount};o.histories[r].kitReadReceiptInfo=a,this.ctx.dispatch(new ee(Z.MESSAGE_STATE_CHANGE,[o.histories[r]]))})}catch(n){this.logger.warn(G.L_V5_RECEIPT_RESPONSE_E,`onV5ReceiptResponse error: ${n}`)}}async _sendReadReceiptMessageV5(s,n){if(this.ctx.readReceiptVersion!==f.GroupReadReceiptVersion.V5)return;const i=n.map(u=>u.messageUId),o=Array.from(new Set((i||[]).filter(Boolean)));if(o.length===0){this.logger.info(G.L_SEND_V5_RECEIPT_T,`sendV5Receipts ids size is 0, messageUIds: ${JSON.stringify(i)}`);return}const r=gt(s),a=this._histories.get(r);if(!a||!a.histories.length)return;const l=new Set(o.filter(u=>{const d=a.histories.find(m=>m.messageUId===u);if(!d)return!1;const h=d.messageDirection===2,p=!this._v5Responded.has(u)&&d.sendReceipt!==!0&&d.needReceipt;return h&&p}));if(l.size===0){this.logger.info(G.L_SEND_V5_RECEIPT_T,"sendV5Receipts messageUIds size is 0");return}const c=Array.from(l);try{this.logger.info(G.L_SEND_V5_RECEIPT_T,`sendV5Receipts: ${JSON.stringify(c)}`);const u=await f.sendReadReceiptResponseV5(s,c);this.logger.info(G.L_SEND_V5_RECEIPT_R,`sendV5Receipts res: ${JSON.stringify(u)}`),c.forEach(d=>this._v5Responded.add(d)),this._markSendReceiptTrue(s,c)}catch(u){this.logger.warn(G.L_SEND_V5_RECEIPT_E,`sendV5Receipts error: ${u}`)}}_markSendReceiptTrue(s,n){try{if(!n||!n.length)return;const i=gt(s),o=this._histories.get(i);if(!o)return;const r=new Set(n);o.histories.forEach(a=>{a.messageUId&&r.has(a.messageUId)&&(a.sendReceipt=!0)})}catch(i){this.logger.warn(G.L_SEND_V5_RECEIPT_E,`markSendReceiptTrue error: ${i}`)}}_handleMessages(s){const n=[];let i=[];s.forEach(async r=>{const a=Ti(r);if(f.electronExtension.enable()&&a.messageType===f.MessageType.RECALL&&(r.isPersited=!0),!r.isPersited||Bn(r)){n.push(a);return}if(a.messageType===f.MessageType.RECALL){const{messageUId:l}=a.content;let c=i.findIndex(u=>u.messageUId===l);if(c!==-1){i.splice(c,1,a);return}}i.push(a)}),i=this._handleNotifiedUIMessaages(i),i.filter(r=>r.messageType!==f.MessageType.RECALL).length&&this.ctx.dispatch(new ee(Z.RECV_NEW_MESSAGES,i)),n.length&&this.ctx.emit(new ee(fe.UNSCHEDULED_MESSAGES,n))}_handleNotifiedUIMessaages(s){const n=new Map,i=new Set,o=new Set;return s.forEach(r=>{const a=gt(r),l=this._getOrCreateCache(r,r.sentTime+1,!1,!0);let c;if(n.has(a))c=n.get(a).messages;else{c=[];const u={targetId:r.targetId,conversationType:r.conversationType,channelId:r.channelId};n.set(a,{conversation:u,messages:c})}if(r.messageType===f.MessageType.RECALL&&l.histories.length>0){const u=r.content.messageUId;o.add(u),i.add(l);const d=l.histories.findIndex(h=>h.messageUId===u);if(d!==-1){const[h]=l.histories.splice(d,1,r);r.sentTime=h.sentTime,this.ctx.emit(new ee(fe.MESSAGES_DELETED,[{target:h,recallMsg:r}]),1);return}}!l.hasMoreAfterEndTime&&r.messageType!==f.MessageType.RECALL&&(this._push2Cache(l,r),c.push(r))}),Array.from(n.entries()).forEach(([r,a])=>{this._checkAndFillQuoteInfo(a.conversation,a.messages),this._checkAndFillReactions(a.conversation,a.messages)}),i.size>0&&[...i.values()].forEach(r=>{const a=r.histories.filter(l=>l.quoteInfo&&o.has(l.quoteInfo.messageUId));a.length!==0&&(a.forEach(l=>{l.quoteInfo.status=rt.RECALLED,delete l.quoteInfo.quoteMessage}),this.ctx.dispatch(new ee(Z.MESSAGE_STATE_CHANGE,a)))}),s}_ifTimeCoincides(s,n){return s.endTime>=n&&s.startTime<=n}async _requestHistoriesFromLib(s,n,i){const o=await f.getHistoryMessages(s,{timestamp:n,count:Yo,order:i?0:1});if(!o.isOk)return{code:o.code,hasMore:!0,list:[]};const{list:r,hasMore:a}=o.data;let l=await this._handleTransIAReceivedMessages(r,s);const c=this._getOrCreateCache(s,n,n!==0,!0);return!i&&n!==0&&c.startTime>n&&(c.startTime=n-1),(this._ifTimeCoincides(c,n)||r.length&&(this._ifTimeCoincides(c,r[0].sentTime)||this._ifTimeCoincides(c,r[r.length-1].sentTime)))&&(i?(l=l.reverse(),this._unshift2Cache(c,...l),c.hasMoreBeforeStartTime=a):(this._push2Cache(c,...l),c.hasMoreAfterEndTime=a)),{hasMore:a,list:l,code:f.ErrorCode.SUCCESS}}async _handleTransIAReceivedMessages(s,n){const i=s.map(o=>Ti(o));return this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5?await this._handleReadReceiptV5(n,i):i}async _handleReadReceiptV5(s,n){if(n.length===0)return[];try{const i=n.filter(a=>a.senderUserId===this.ctx.userId);if(i.length===0)return n;const o=i.map(a=>a.messageUId),{data:r}=await f.getMessageReadReceiptInfoV5(s,o);r&&r.length>0&&r.forEach(a=>{const l=n.findIndex(c=>c.messageUId===a.messageUId);l>-1&&(n[l].kitReadReceiptInfo=a)})}catch(i){this.logger.warn(G.L_HANDLE_READ_RECEIPT_V5_E,`_handleReadReceiptV5 error: ${i}`)}return n}async _reqHistoriesHandler(s,n=0,i=!0){var m;const o=this._getOrCreateCache(s,n,n!==0,!0),{histories:r,hasMoreAfterEndTime:a,hasMoreBeforeStartTime:l,startTime:c,endTime:u}=o;if(!a&&n===0&&i){const v=((m=r[r.length-1])==null?void 0:m.sentTime)||0;v>u&&(o.endTime=v+1),n=o.endTime}if(!this._ifTimeCoincides(o,n))return this._requestHistoriesFromLib(s,n,i);let d;if(i){const v=yn(r,O=>O.sentTime<n);d=r.slice(0,v+1)}else{const v=r.findIndex(O=>O.sentTime>n);d=r.slice(v)}const h=i?l:a;if(d.length<Yo)return await this._reqHasMoreHistories(h,c,u,i,s,n,d);let p=i?d.slice(d.length-Yo):d.slice(0,Yo);return this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5&&s.conversationType===f.ConversationType.GROUP&&(await this._handleReadReceiptV5(s,p),p.forEach(v=>{const O=o.histories.findIndex(w=>w.messageUId===v.messageUId);O>-1&&v.kitReadReceiptInfo&&(o.histories[O].kitReadReceiptInfo=v.kitReadReceiptInfo)})),{hasMore:h||d.length>Yo,list:p,code:f.ErrorCode.SUCCESS}}async _reqHasMoreHistories(s,n,i,o,r,a=0,l=[]){if(s){const c=n===0?0:n+1,u=i===0?0:i-1,d=o?c:u,{code:h}=await this._requestHistoriesFromLib(r,d,o);return h===f.ErrorCode.SUCCESS?this._reqHistoriesHandler(r,a,o):{hasMore:s,list:l,code:h}}return{hasMore:s,list:l,code:f.ErrorCode.SUCCESS}}async reqHistories(s,n=0,i=!0){const o=await this._reqHistoriesHandler(s,n,i);return this._checkAndFillQuoteInfo(s,o.list),this._checkAndFillReactions(s,o.list),o}async sendMessage(s,n,i,o){if(Bn(s)||!Pc(s))return{code:Gs.INVALID_CONVERSATION};const r=this._createTransactionId();if(this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5){const d=[f.ConversationType.PRIVATE,f.ConversationType.GROUP].includes(s.conversationType),h=i==null?void 0:i.directionalUserIdList,p=Array.isArray(h)&&h.length>0,m=(i==null?void 0:i.isStatusMessage)===!0,v=n.isPersited!==!1;d&&!p&&!m&&v&&(i={needReceipt:!0,...i||{}})}const a=this._emitBeforeSendMessage(s,n,i);n=a.message,i=a.options;const l=this._transBaseMessage2CachedMessage(s,n,r,i);if(o&&(i!=null&&i.quoteInfo)&&(l.quoteInfo=Kh(o)),j.isObject(l.content))try{l.content=Ua(l.content)}catch(d){this.logger.warn(G.A_SEND_MESSAGE_E,d.message)}if(l.isPersited){const d=this._getOrCreateCache(s,l.sentTime+1,!1,!0);d.hasMoreAfterEndTime&&(d.histories.length=0,d.startTime=l.sentTime,d.hasMoreBeforeStartTime=!0,d.hasMoreAfterEndTime=!1),this._push2Cache(d,l),this.ctx.dispatch(new ee(Z.INSERT_NEW_MESSAGES,[l]))}const{code:c,data:u}=await this._sendQueue.push({conversation:s,message:l,options:i,transactionId:l.transactionId});return c!==f.ErrorCode.SUCCESS?l.sentStatus=f.SentStatus.FAILED:(this._updateCachedMessage(l,u),this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5&&l.conversationType===f.ConversationType.GROUP&&await this._handleReadReceiptV5(s,[l])),l.isPersited&&this.ctx.dispatch(new ee(Z.MESSAGE_STATE_CHANGE,[l])),{code:c,message:u}}_updateCachedMessage(s,n){const{sentStatus:i,sentTime:o,messageUId:r,messageId:a}=n;s.sentStatus=i,s.sentTime=o,s.messageUId=r,s.messageId=a}async _sendMultiMediaMessage(s,n,i){if(i.length>99){this.ctx.alert("alert.pickfiles.maxcount","99");return}const o=[],r=[];for(let m of i)m.size>100*1024*1024||m.size===0?o.push(m):r.push(m);if(o.length>0&&this.ctx.emit(new ee(fe.FILE_SEND_FAILED_EVENT,o)),r.length===0)return;const a=new Map,l=await Promise.all(r.map(async m=>{const v=await s(m),O=this._emitBeforeSendMessage(n,v),w=this._transBaseMessage2CachedMessage(n,O.message,this._createTransactionId(),O.options);return a.set(w.transactionId,O.options),w.file=m,w.progress=0,w})),c=Vt.value;l.length===1&&this.ctx.isQuoteMessageV2Enabled&&c&&this.ctx.input.isQuoteInfoEnabledForMessageType(l[0].messageType)&&(l[0].quoteInfo=Kh(c),Vt.value=null);const u=this.ctx.status!==f.RCConnectionStatus.CONNECTED;u&&l.forEach(m=>{m.progress=-1,m.sentStatus=f.SentStatus.FAILED});const d=l[0],h=this._getOrCreateCache(n,d.sentTime+1,!1,!0);if(h.hasMoreAfterEndTime&&(h.histories.length=0,h.startTime=d.sentTime+1,h.hasMoreBeforeStartTime=!0,h.hasMoreAfterEndTime=!1),this._push2Cache(h,...l),this.ctx.dispatch(new ee(Z.INSERT_NEW_MESSAGES,l)),u)return;const p=l.map(m=>this._uploadQueue.push({message:m,transactionId:m.transactionId}));for(let m of p){const{code:v,data:O}=await m,{message:w}=O;if(h.histories.findIndex(_=>_.transactionId===w.transactionId)===-1)continue;if(v!==f.ErrorCode.SUCCESS){w.progress=-1,w.sentStatus=f.SentStatus.FAILED,this.ctx.dispatch(new ee(Z.MESSAGE_STATE_CHANGE,[w]));continue}const g=O.httpUrl;w.file=void 0,this._updateHttpUrl(w,g),this._push2SendQueue(w,w,a.get(w.transactionId))}}_updateHttpUrl(s,n){switch(s.messageType){case f.MessageType.IMAGE:s.content.imageUri=n;break;case f.MessageType.GIF:s.content.remoteUrl=n;break;case f.MessageType.SIGHT:s.content.sightUrl=n;break;case f.MessageType.COMBINE_V2:s.content.remoteUrl=n;break;default:s.content.fileUrl=n;break}}async insertMessage(s,n,i){if(Bn(s)||!Pc(s))return{code:Gs.INVALID_CONVERSATION};const o=this._createTransactionId(),r=this._transBaseMessage2CachedMessage(s,n,o);if(r.isPersited){const a=this._getOrCreateCache(s,r.sentTime+1,!0,!0);let l=yn(a.histories,c=>c.messageUId===r.messageUId||c.messageId===r.messageId);l!==-1?a.histories.splice(l,1,r):(l=yn(a.histories,c=>c.sentTime<=r.sentTime),l===-1?a.histories.unshift(r):a.histories.splice(l,0,r)),this.ctx.dispatch(new ee(Z.INSERT_NEW_MESSAGES,[r]))}if(f.electronExtension.enable()){const{code:a,data:l}=await f.electronExtension.insertMessage(s,r,i);return a===f.ErrorCode.SUCCESS&&(r.messageId=l.messageId),{code:a,message:r}}return{code:f.ErrorCode.SUCCESS,message:r}}_transBaseMessage2CachedMessage(s,n,i,o){const{conversationType:r,targetId:a,channelId:l}=s,{isCounted:c,isPersited:u,content:d,messageType:h}=n,p=this.ctx.userId;let m;if(h===f.MessageType.REFERENCE){const{referMsgUserId:O}=d,w=O!==p?f.MessageDirection.RECEIVE:f.MessageDirection.SEND;m=$c(d,s,w)}else o!=null&&o.quoteInfo&&(m=Fc(o.quoteInfo));const v={transactionId:i,targetId:a,conversationType:r,messageDirection:1,messageType:h,sentTime:f.getServerTime(),isStatusMessage:o==null?void 0:o.isStatusMessage,isCounted:c,isPersited:u,content:d,channelId:l||"",senderUserId:p,receivedTime:0,messageUId:"",sentStatus:f.SentStatus.SENDING,isOffLineMessage:!1,canIncludeExpansion:(o==null?void 0:o.canIncludeExpansion)||!1,receivedStatus:0,isMentioned:o==null?void 0:o.isMentioned,expansion:o==null?void 0:o.expansion,quoteInfo:m,reactions:[]};return this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5&&(v.kitReadReceiptInfo=void 0),v}async deleteMessages(s,n,i){if(n.length===0)return;const o=[],r=[],a=[];n.forEach(u=>{u.messageUId?(o.push(u),a.push(u.messageUId)):u.sentStatus===f.SentStatus.FAILED&&r.push(u)});const l=this._getExistCache(s),c=[];if(o.length){const{recallList:u}=await this._handleSentList(i,l,o,s);c.push(...u)}if(r.length&&l&&l.histories.length&&r.forEach(u=>{const d=l.histories.findIndex(h=>h.messageUId?h.messageUId===u.messageUId:h.transactionId===u.transactionId);if(d!==-1){const[h]=l.histories.splice(d,1);c.push({target:h})}}),c.length&&this.ctx.dispatch(new ee(fe.MESSAGES_DELETED,c)),a.length&&l){const u=l.histories.filter(h=>h.quoteInfo&&a.includes(h.quoteInfo.messageUId));if(u.length===0)return;const d=i?rt.RECALLED:rt.DELETED;u.forEach(({quoteInfo:h})=>{delete h.quoteMessage,h.status=d}),this.ctx.dispatch(new ee(Z.MESSAGE_STATE_CHANGE,u))}}getAllowedToRecallTime(){return this.ctx.allowedToRecallTime}async _handleSentList(s,n,i,o){const r=[],a=[],l=[];return s?(await Promise.all(i.map(u=>f.recallMessage(o,{messageUId:u.messageUId,sentTime:u.sentTime,isDelete:!1})))).forEach((u,d)=>{if(u.code===f.ErrorCode.SUCCESS){r.push(i[d]);return}a.push(i[d])}):(await f.deleteMessages(o,i.map(u=>({messageUId:u.messageUId,sentTime:u.sentTime,messageDirection:u.messageDirection})))).code===f.ErrorCode.SUCCESS?r.push(...i):a.push(...i),r.length&&n&&n.histories.length&&r.forEach(c=>{const u=n.histories.findIndex(d=>d.messageUId===c.messageUId);if(s){const d=this._trans2RecallMessage(c),[h]=n.histories.splice(u,1,d);l.push({target:h,recallMsg:d})}else{const[d]=n.histories.splice(u,1);l.push({target:d})}}),a.length&&this.ctx.alert("alert.delete.messages.partial.failure",a.length),{recallList:l}}_trans2RecallMessage(s){return{...s,messageType:f.MessageType.RECALL,content:{messageUid:s.messageUId,sentTime:s.sentTime,targetId:s.targetId,conversationType:s.conversationType,channelId:s.channelId},isMentioned:!1}}async forward(s,n){if(n.length===0)return;const{conversationType:i,targetId:o,channelId:r}=s,a=f.getServerTime(),l=new Map,c=n.map(d=>{const h={...d};d.content.mentionedInfo&&delete d.content.mentionedInfo,delete h.quoteInfo,h.hasReactions=!1,h.reactions=[],h.content=d.content,h.messageUId="",h.transactionId=this._createTransactionId(),h.conversationType=i,h.targetId=o,h.channelId=r||"",h.sentStatus=f.SentStatus.SENDING,h.messageDirection=1,h.sentTime=a,h.senderUserId=this.ctx.userId,h.readReceiptInfo&&delete h.readReceiptInfo,h.kitReadReceiptInfo&&(h.kitReadReceiptInfo=void 0);const p=this._emitBeforeSendMessage(s,new f.BaseMessage(h.messageType,h.content,h.isPersited,h.isCounted));return h.content=p.message.content,h.isPersited=p.message.isPersited,h.isCounted=p.message.isCounted,l.set(h.transactionId,p.options),h}),u=this._getOrCreateCache(s,a+1,!1,!0);this._push2Cache(u,...c),this.ctx.dispatch(new ee(Z.INSERT_NEW_MESSAGES,c)),c.forEach(d=>this._push2SendQueue(s,d,l.get(d.transactionId)))}async sendCombineMessage(s,n){if(n.length===0||Bn(s))return;const{conversationType:i,targetId:o}=n[0],r=[],a=this.ctx.userId,l=this.ctx.appData.getUserProfile(a).name,c=[];if(i===f.ConversationType.PRIVATE){const p=n.findIndex(v=>v.senderUserId===a),m=n.findIndex(v=>v.senderUserId!==a);p>-1&&c.push(l),m>-1&&c.push(this.ctx.appData.getUserProfile(o).name)}else c.push(this.ctx.appData.getGroupProfile(o).name);const u=n.map((p,m)=>{const v=p.content;delete v.user,delete v.extra,delete v.mentionedInfo;const{targetId:O,sentTime:w,messageType:C,senderUserId:g}=p;if(m<4){const _=this.ctx.appData.getUserProfile(g).name;let E=Hh(p);if(C===f.MessageType.FILE){const L=p.content.name;E=`${E}${L}`}r.push(`${_}: ${E}`.substring(0,1e3))}return{targetId:O,timestamp:w,objectName:C,content:v,fromUserId:g}}),d={summaryList:r,nameList:c,conversationType:i,msgNum:u.length},h=JSON.stringify(u);if(h.length>=120*1024){const p=`${Date.now()}-${Math.floor(Math.random()*Date.now())}.json`;d.jsonMsgKey=p;const m=new File([h],p,{type:"application/json"});this._sendMultiMediaMessage(async v=>new f.CombineV2Message(d),s,[m])}else d.msgList=u,this.sendMessage(s,new f.CombineV2Message(d))}async _push2SendQueue(s,n,i){const{code:o,data:r}=await this._sendQueue.push({conversation:s,message:n,options:i,transactionId:n.transactionId});if(o!==f.ErrorCode.SUCCESS)n.sentStatus=f.SentStatus.FAILED;else{const a=n.sentTime;if(this._updateCachedMessage(n,r),n.sentTime!==a){const l=this._getExistCache(s);if(l){const c=l.histories.findIndex(u=>u.transactionId===n.transactionId);if(c!==-1){l.histories.splice(c,1);const u=yn(l.histories,d=>d.sentTime<=n.sentTime);l.histories.splice(u+1,0,n)}}}}this.ctx.dispatch(new ee(Z.MESSAGE_STATE_CHANGE,[n]))}removeCachedMessages(s){this._histories.delete(gt(s))}cancelMessageSent(s){const{transactionId:n,conversationType:i,targetId:o,channelId:r}=s,a={conversationType:i,targetId:o,channelId:r},l=this._getExistCache(a);if(!l)return;const c=l.histories.findIndex(d=>d.transactionId===n),u=l.histories[c];!u||u.sentStatus!==f.SentStatus.SENDING||typeof u.transactionId!="number"||(l.histories.splice(c,1),this.ctx.dispatch(new ee(fe.MESSAGES_DELETED,[{target:s}])),this._uploadQueue.remove(n)||this._sendQueue.remove(n))}async resendMessage(s){const{transactionId:n,conversationType:i,targetId:o,channelId:r}=s,a={conversationType:i,targetId:o,channelId:r},l=this._getExistCache(a);if(!l)return;const c=l.histories.find(d=>d.transactionId===n);if(!c||c.sentStatus!==f.SentStatus.FAILED||typeof n!="number")return;if(c.sentStatus=f.SentStatus.SENDING,c.file&&c.progress!==100){c.progress=0,this.ctx.emit(new ee(Z.MESSAGE_STATE_CHANGE,[c]));const{code:d,data:h}=await this._uploadQueue.push({message:c,transactionId:n});if(d!==f.ErrorCode.SUCCESS){c.sentStatus=f.SentStatus.FAILED,c.progress=-1,this.ctx.emit(new ee(Z.MESSAGE_STATE_CHANGE,[c]));return}c.file=void 0,this._updateHttpUrl(c,h.httpUrl)}const u=this._emitBeforeSendMessage(a,new f.BaseMessage(c.messageType,c.content,c.isPersited,c.isCounted));c.content=u.message.content,c.isPersited=u.message.isPersited,c.isCounted=u.message.isCounted,this._push2SendQueue(c,c,u.options)}async sendReadReceiptMessage(s,n){this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5&&this._sendReadReceiptMessageV5(s,n)}getConversationLatestMessage(s){const n=this._getExistCache(s);if(!n)return null;const i=n.histories.length;return n.histories[i-1]}async getMessagesReadReceiptUsersByPageV5(s,n,i){if(this.ctx.readReceiptVersion!==f.GroupReadReceiptVersion.V5)return{code:f.ErrorCode.SUCCESS,data:null};try{const o=i.type==="read"?0:1,r={pageToken:i.pageToken,pageCount:i.count||20,readStatus:o,order:0};return await f.getMessagesReadReceiptUsersByPageV5(s,n,r)}catch(o){return this.logger.warn(G.L_GET_READ_RECEIPT_INFO_V5_E,`getMessagesReadReceiptUsersByPageV5 error: ${o}`),{code:f.ErrorCode.SUCCESS,data:null}}}_checkAndFillQuoteInfo(s,n){const i=n.filter(o=>{const{quoteInfo:r}=o;if(!r||o.messageType===f.MessageType.REFERENCE)return!1;const{status:a}=r;return a===rt.LOADING||a===rt.LOAD_ERROR});i.length!==0&&this._queryQuoteMessage(s,i)}async _queryQuoteMessage(s,n){if(n.length===0)return;const i=n.slice(0,20),o=await f.getMessagesByUIds({conversationIdentifier:s,messageUIds:i.map(a=>a.quoteInfo.messageUId)});if(!o.isOk)return i.forEach(a=>{a.quoteInfo.status=rt.LOAD_ERROR}),this.ctx.dispatch(new ee(Z.MESSAGE_STATE_CHANGE,i)),this._queryQuoteMessage(s,n.slice(20));const r=o.data;return i.forEach(a=>{const{code:l,message:c}=r.find(u=>u.messageUId===a.quoteInfo.messageUId);l===f.ErrorCode.SUCCESS&&c?c.messageType!==f.MessageType.RECALL_NOTIFICATION_MESSAGE?(a.quoteInfo.quoteMessage=c,a.quoteInfo.status=rt.LOADED):a.quoteInfo.status=rt.RECALLED:l===f.ErrorCode.RC_DB_DATA_NOT_FOUND?a.quoteInfo.status=rt.DELETED:a.quoteInfo.status=rt.LOAD_ERROR}),this.ctx.dispatch(new ee(Z.MESSAGE_STATE_CHANGE,i)),this._queryQuoteMessage(s,n.slice(20))}_checkAndFillReactions(s,n){if(!this.ctx.isMessageReactionEnabled)return;const i=n.filter(o=>{const{hasReactions:r,reactions:a}=o;return!(!r||a.length>0)});i.length!==0&&this._batchGetMessageReactionsSummay(s,i)}async _batchGetMessageReactionsSummay(s,n){if(n.length===0)return;const i=n.slice(0,100),o=await f.batchGetMessageReactionSummaries({conversationIdentifier:s,messageUIds:i.map(r=>r.messageUId)});if(o.isOk){const r=this.ctx.userId;i.forEach(a=>{const c=(o.data[a.messageUId]||[]).map(u=>Iv(u,r));a.reactions=c}),this.ctx.dispatch(new ee(Z.MESSAGE_STATE_CHANGE,i))}return this._batchGetMessageReactionsSummay(s,n.slice(100))}async updateMessageReaction(s,n,i){if(s.sentStatus!==f.SentStatus.SENT)return;const o={conversationType:s.conversationType,targetId:s.targetId,channelId:s.channelId},r=s.messageUId,a={conversationIdentifier:o,messageUId:r,reactionId:n},{code:l,isOk:c}=await(i?f.removeMessageReaction(a):f.addMessageReaction(a));if(!c){const p=!i&&(l===26323||l===26324)?"alert.reaction.limit.reached":"alert.reaction.failed";this.ctx.alert(p);return}const u=s.reactions.find(p=>p.reactionId===n),d=Math.max(((u==null?void 0:u.totalCount)||0)+(i?-1:1),0),h={messageUId:r,reactionId:n,operationType:i?f.MessageReactionOperationType.REMOVED:f.MessageReactionOperationType.ADDED,conversationIdentifier:o,totalCount:d,users:[{userId:this.ctx.userId,reactionTime:Date.now()}]};this._onMessageReactionChanged({reactions:[h]})}}var zh=(e=>(e.ADD_TOP="conversation.menu.item.add_top",e.REMOVE_TOP="conversation.menu.item.remove_top",e.MUTE="conversation.menu.item.mute",e.UNMUTE="conversation.menu.item.unmute",e.MARK_READ="conversation.menu.item.mark_read",e.MARK_UNREAD="conversation.menu.item.mark_unread",e.REMOVE="conversation.menu.item.remove",e))(zh||{});const Qh=[{id:"conversation.menu.item.add_top",icon:fp,filter:e=>!e.isTop},{id:"conversation.menu.item.remove_top",icon:hp,filter:e=>e.isTop},{id:"conversation.menu.item.mute",icon:gp,filter:e=>e.notificationLevel!==j.NotificationLevel.NOT_MESSAGE_NOTIFICATION},{id:"conversation.menu.item.unmute",icon:pp,filter(e){return e.notificationLevel===j.NotificationLevel.NOT_MESSAGE_NOTIFICATION}},{id:"conversation.menu.item.remove",icon:_p}],Ra=e=>e.map(t=>({...t}));class Rv extends Ls{constructor(){super(...arguments);B(this,"_menu",Ra(Qh))}_onInit(){this.ctx.addEventListener(fe.CONVERSATION_MENU_ITEM_CLICK,this._onMenuItemClick,this)}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this._menu=Ra(Qh)}_onMenuItemClick(s){const{id:n,conversation:i}=s.data;switch(n){case"conversation.menu.item.add_top":this.ctx.conversation.setConversationToTop(i,!0);break;case"conversation.menu.item.remove_top":this.ctx.conversation.setConversationToTop(i,!1);break;case"conversation.menu.item.mute":this.ctx.conversation.setConversationNotificationLevel(i,j.NotificationLevel.NOT_MESSAGE_NOTIFICATION);break;case"conversation.menu.item.unmute":this.ctx.conversation.setConversationNotificationLevel(i,j.NotificationLevel.ALL_MESSAGE);break;case"conversation.menu.item.mark_read":this.ctx.conversation.markConversationReaded(i);break;case"conversation.menu.item.mark_unread":this.ctx.conversation.markConversationUnread(i);break;case"conversation.menu.item.remove":this.ctx.conversation.removeConversation(i);break}}getMenum(s){return this._menu.filter(n=>!n.filter||n.filter(s))}cloneConversationMenu(){return Ra(this._menu)}setConversationMenu(s){this._menu=Ra(s)}}class Mv extends Ls{constructor(){super(...arguments);B(this,"_audio",new Audio);B(this,"_status","stopped");B(this,"_progress",0);B(this,"_messageUId","");B(this,"_transactionId",0);B(this,"_onError",()=>{this._progress=0,this._status="stopped",this._dispatch()});B(this,"_onTimeUpdate",()=>{const{currentTime:s,duration:n}=this._audio;this._progress=Math.floor(s/n*100),this._status!=="stopped"&&this._dispatch()});B(this,"_onEnded",()=>{this._progress=100,this._status="stopped",this._dispatch()})}_onInitUserCache(){this._audio.addEventListener("ended",this._onEnded),this._audio.addEventListener("timeupdate",this._onTimeUpdate),this._audio.addEventListener("error",this._onError)}_onDestroyUserCache(){this._audio.removeEventListener("ended",this._onEnded),this._audio.removeEventListener("timeupdate",this._onTimeUpdate),this._audio.addEventListener("error",this._onError)}destroy(){throw new Error("Method not implemented.")}getCurrentState(){return{progress:this._progress,status:this._status,messageUId:this._messageUId,transactionId:this._transactionId}}_dispatch(){this.ctx.dispatch(new ee(Z.AUDIO_PLAY_EVENT,this.getCurrentState()),!1)}play(s,n,i){if(this._messageUId&&this._messageUId===n||this._transactionId&&this._transactionId===i){this._status==="stopped"&&(this._audio.play(),this._status="playing",this._onTimeUpdate());return}this._status="playing",this._messageUId=n,this._transactionId=0,this._progress=0,this._audio.src=s,this._audio.play(),this._dispatch()}stop(){this._status="stopped",this._messageUId="",this._transactionId=0,this._progress=0,this._audio.src&&(this._audio.pause(),this._audio.src=""),this._dispatch()}pause(){this._status!=="stopped"&&(this._status="stopped",this._audio.pause(),this._dispatch())}}const Ji=class Ji{constructor(t,s){B(this,"cache",new Map);B(this,"convertingTTSList",new Set);B(this,"errorTTSList",new Set);B(this,"timers",new Map);oo(this,Jo,t=>{var s,n,i,o;try{const{code:r,messageUId:a,sttInfo:l}=t||{};(s=this.logger)==null||s.info(G.L_STT_RESPONSE_R,`[STT] response: ${a}, code: ${r}`);const c=this.timers.get(a);if(c&&(clearTimeout(c),this.timers.delete(a)),r===f.ErrorCode.SUCCESS){const u=l.text;for(this.cache.set(a,u);this.cache.size>Ji.MAX_CACHE_SIZE;){const d=this.cache.keys().next().value||"";this.cache.delete(d)}this.errorTTSList.delete(a),this.convertingTTSList.delete(a),(n=this.logger)==null||n.info(G.L_STT_RESPONSE_O,`[STT] success: ${a}`),this.dispatchStateChange(a,"success",u)}else this.convertingTTSList.delete(a),this.errorTTSList.add(a),(i=this.logger)==null||i.warn(G.L_STT_RESPONSE_E,`[STT] failed: code=${r}, uid=${a}`),this.dispatchStateChange(a,"error")}catch(r){(o=this.logger)==null||o.warn(G.L_STT_RESPONSE_E,`[STT] exception: ${r}`)}});this.logger=t,this.eventDispatcher=s,f.addEventListener(f.Events.SPEECH_TO_TEXT_RESPONSE,Cn(this,Jo))}dispatchStateChange(t,s,n,i){this.eventDispatcher&&this.eventDispatcher.dispatch(new ee(Z.SPEECH_TO_TEXT_STATE_CHANGE,{messageUId:t,status:s,text:n,errorCode:i}))}getSTTText(t){return this.cache.get(t)}isConverting(t){return this.convertingTTSList.has(t)}hasError(t){return this.errorTTSList.has(t)}hasConverted(t){return this.cache.has(t)}async requestForMessage(t){var i,o,r,a;const{messageUId:s}=t;if(this.cache.has(s)||this.convertingTTSList.has(s))return f.ErrorCode.SUCCESS;this.errorTTSList.delete(s),this.convertingTTSList.add(s),this.dispatchStateChange(s,"converting");const n={messageType:f.MessageType.HQ_VOICE,remoteUrl:t.content.remoteUrl,duration:t.content.duration,sampleRate:t.content.sampleRate,numberOfChannels:t.content.numberOfChannels};try{(i=this.logger)==null||i.info(G.L_STT_REQUEST_T,`[STT] request: ${s}, opts: ${JSON.stringify(n)}`);const{code:l,msg:c}=await f.requestSpeechToTextForMessage(s,n);if((o=this.logger)==null||o.info(G.L_STT_REQUEST_R,`[STT] request response: ${s}, code: ${l}`),l===f.ErrorCode.SUCCESS){const u=setTimeout(()=>{var d;this.timers.delete(s),this.convertingTTSList.has(s)&&(this.convertingTTSList.delete(s),this.errorTTSList.add(s),(d=this.logger)==null||d.warn(G.D,`[STT] timeout: ${s}`),this.dispatchStateChange(s,"error"))},Ji.REQUEST_TIMEOUT);this.timers.set(s,u)}else this.convertingTTSList.delete(s),this.errorTTSList.add(s),(r=this.logger)==null||r.warn(G.L_STT_REQUEST_E,`[STT] request failed: code=${l}, uid=${s}, msg=${c}`),this.dispatchStateChange(s,"error",void 0,l);return l}catch(l){return this.convertingTTSList.delete(s),this.errorTTSList.add(s),(a=this.logger)==null||a.warn(G.L_STT_REQUEST_E,`[STT] request exception: ${l}`),this.dispatchStateChange(s,"error"),-1}}clearMemoryData(){this.cache.clear(),this.convertingTTSList.clear(),this.errorTTSList.clear(),this.timers.forEach(t=>clearTimeout(t)),this.timers.clear()}destroy(){f.removeEventListener(f.Events.SPEECH_TO_TEXT_RESPONSE,Cn(this,Jo)),this.clearMemoryData()}};Jo=new WeakMap,B(Ji,"MAX_CACHE_SIZE",200),B(Ji,"REQUEST_TIMEOUT",3e4);let Lc=Ji;var ft=(e=>(e[e.NONE=0]="NONE",e[e.AT_ALL=1]="AT_ALL",e[e.AT_ME=2]="AT_ME",e))(ft||{});const Ov=30002;class bv extends Ls{constructor(){super(...arguments);oo(this,Ma);B(this,"_list",[]);B(this,"_messageQueue",[]);B(this,"_converNtfQueue",[]);B(this,"_pool",new Map);B(this,"_getRemoteConversationTimer",null);B(this,"_pullOfflineMessageFinished",!1);oo(this,pi,new Map);oo(this,gi,!1);oo(this,er,!1);B(this,"_openedConversation",null);B(this,"_getRemoteConversationFinished",!1);B(this,"_handleQueueTimer");B(this,"_typingTime",null)}getOpenedConversation(){return this._openedConversation}setOpenedConversation(s,n=!0){this._setOpenedConversation(s,n)}_createCachedConversation(s){const n=gt(s);if(this._pool.has(n))return this._pool.get(n);const i={key:n,targetId:s.targetId,conversationType:s.conversationType,channelId:s.channelId||"",name:"",portraitUri:"",draft:"",latestMessage:null,isTop:!1,notificationLevel:f.NotificationLevel.ALL_MESSAGE,unreadCount:0,updateTime:0,online:!1,memberCount:0,mentionedType:0,markReaded:!1,markUnread:!1};return this._pool.set(n,i),i}_onInit(){this.ctx.addEventListener(Z.USER_PROFILES_UPDATE,this._onUserProfilesUpdate,this),this.ctx.addEventListener(Z.GROUP_PROFILES_UPDATE,this._onGroupProfilesUpdate,this),this.ctx.addEventListener(Z.SYSTEM_PROFILES_UPDATE,this._onSystemProfilesUpdate,this),this.ctx.addEventListener(Z.INSERT_NEW_MESSAGES,this._onInsertNewMessages,this),this.ctx.addEventListener(fe.MESSAGES_DELETED,this._onDeleteMessages,this),this.ctx.addEventListener(Z.MESSAGE_STATE_CHANGE,this._onMessageStateChange,this),f.addEventListener(f.Events.SYNC_READ_STATUS,this._onSyncReadStatus,this),f.addEventListener(f.Events.CONVERSATION,this._onRecvConversationNtf,this),f.addEventListener(f.Events.PULL_OFFLINE_MESSAGE_FINISHED,this._onPullOfflineMessageFinished,this),f.addEventListener(f.Events.MESSAGE_RECEIPT_RESPONSE_V5,this._onV5ReceiptResponse.bind(this)),f.addEventListener(f.Events.CONNECTED,this._onConnected,this),f.addEventListener(f.Events.CONVERSATIONS_SYNCED,this._onConversationsSynced.bind(this)),f.electronExtension.enable()&&this.ctx.addEventListener(Z.RECV_NEW_MESSAGES,this._onRecvNewMessages,this)}_onInitUserCache(){Cn(this,gi)||this._getMoreRemoteConversation(!0)}_onDestroyUserCache(){this._list.length=0,this._pool.clear(),this._openedConversation=null,this._getRemoteConversationFinished=!1,this._pullOfflineMessageFinished=!1,this._getRemoteConversationTimer&&(clearTimeout(this._getRemoteConversationTimer),this._getRemoteConversationTimer=null),this._handleQueueTimer&&(clearTimeout(this._handleQueueTimer),this._handleQueueTimer=null),this._clearTypingStatus(),sr(this,gi,!1),sr(this,er,!1)}destroy(){this._onDestroyUserCache(),this.ctx.removeEventListener(Z.USER_PROFILES_UPDATE,this._onUserProfilesUpdate,this),this.ctx.removeEventListener(Z.GROUP_PROFILES_UPDATE,this._onGroupProfilesUpdate,this),this.ctx.removeEventListener(Z.SYSTEM_PROFILES_UPDATE,this._onSystemProfilesUpdate,this),this.ctx.removeEventListener(Z.INSERT_NEW_MESSAGES,this._onInsertNewMessages,this),this.ctx.removeEventListener(fe.MESSAGES_DELETED,this._onDeleteMessages,this),this.ctx.removeEventListener(Z.MESSAGE_STATE_CHANGE,this._onMessageStateChange,this),f.removeEventListener(f.Events.SYNC_READ_STATUS,this._onSyncReadStatus,this),f.removeEventListener(f.Events.PULL_OFFLINE_MESSAGE_FINISHED,this._onPullOfflineMessageFinished,this),f.removeEventListener(f.Events.CONVERSATION,this._onRecvConversationNtf,this),f.removeEventListener(f.Events.MESSAGE_RECEIPT_RESPONSE_V5,this._onV5ReceiptResponse,this),f.removeEventListener(f.Events.CONNECTED,this._onConnected,this),f.removeEventListener(f.Events.CONVERSATIONS_SYNCED,this._onConversationsSynced.bind(this)),this.ctx.removeEventListener(Z.RECV_NEW_MESSAGES,this._onRecvNewMessages,this)}async _onDeleteMessages(s){const n=s.data,{target:i,recallMsg:o}=n[n.length-1],r=this._pool.get(gt(i));if(!r)return;if(f.electronExtension.enable()&&o){const{conversationType:l,targetId:c,channelId:u}=o,{data:d}=await f.getConversation({conversationType:l,targetId:c,channelId:u});if(!d)return;d.conversationType===f.ConversationType.GROUP&&d.hasMentioned?r.mentionedType=ft.AT_ME:r.mentionedType=ft.NONE,this._paddingData(r,d),this.ctx.dispatch(new ee(Z.CONVERSATION_ITEM_CHANGE,[r]));return}const a=r.latestMessage;!a||a.transactionId!==i.transactionId&&a.messageUId!==i.messageUId||(r.latestMessage=o||this.ctx.message.getConversationLatestMessage(r),this.ctx.dispatch(new ee(Z.CONVERSATION_ITEM_CHANGE,[r])))}async _onInsertNewMessages(s){const n=s.data,i=n[n.length-1],o=gt(i);let r=this._pool.get(o);r||(r=this._parseConversationList([{latestMessage:i,conversationType:i.conversationType,targetId:i.targetId,channelId:i.channelId,lastUnreadTime:0}])[0]),r.latestMessage=i,r.updateTime=i.sentTime,r.markReaded=!0,r.markUnread=!1,this._recalculatePosition(new Set([r]))}_onMessageStateChange(s){const n=s.data,i=[];n.forEach(o=>{const r=gt(o),a=this._pool.get(r);a&&a.latestMessage&&(a.latestMessage.transactionId===o.transactionId||a.latestMessage.messageUId==o.messageUId)&&(a.latestMessage=o,i.push(a))}),i.length&&this.ctx.dispatch(new ee(Z.CONVERSATION_ITEM_CHANGE,i))}_getMentionedType(s,n){if(!n)return ft.NONE;const{type:i,userIdList:o}=n;return i===f.MentionedType.ALL?ft.AT_ALL:!o||!Array.isArray(o)?ft.NONE:o.includes(s)?ft.AT_ME:ft.NONE}_onUserProfilesUpdate(s){const n=[];s.data.forEach(i=>{const o=this._pool.get(gt({conversationType:f.ConversationType.PRIVATE,targetId:i.userId}));o&&(o.name!==i.name||o.portraitUri!==i.portraitUri||o.online!==i.online)&&(o.name=i.name,o.portraitUri=i.portraitUri,o.online=i.online,n.push(o))}),n.length&&this.ctx.dispatch(new ee(Z.CONVERSATION_ITEM_CHANGE,n))}_onSystemProfilesUpdate(s){const n=[];s.data.forEach(i=>{const o=this._pool.get(gt({conversationType:f.ConversationType.SYSTEM,targetId:i.systemId}));o&&(o.name!==i.name||o.portraitUri!==i.portraitUri)&&(o.name=i.name,o.portraitUri=i.portraitUri,n.push(o))}),n.length&&this.ctx.dispatch(new ee(Z.CONVERSATION_ITEM_CHANGE,n))}_onGroupProfilesUpdate(s){const n=s.data,i=[];n.forEach(o=>{const r={conversationType:f.ConversationType.GROUP,targetId:o.groupId},a=this._pool.get(gt(r));a&&(a.name!==o.name||a.portraitUri!==o.portraitUri||a.memberCount!==o.memberCount)&&(a.name=o.name,a.portraitUri=o.portraitUri,a.memberCount=o.memberCount,i.push(a))}),i.length&&this.ctx.dispatch(new ee(Z.CONVERSATION_ITEM_CHANGE,i))}updateLatesMessageStatus(s){if(!(!s||s.length<=0)&&this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5){const n=s.filter(i=>i.conversationType===f.ConversationType.PRIVATE&&i.latestMessage&&i.latestMessage.senderUserId===this.ctx.userId);this._handleLatestReadReceiptInfoV5(n)}}async _onSyncReadStatus(s){const n={conversationType:s.conversationType,channelId:s.channelId||"",targetId:s.targetId},i=gt(n);let o=this._pool.get(i);if(!o)return;const{code:r,data:a}=await f.getUnreadCount(n);if(r===f.ErrorCode.SUCCESS&&o.unreadCount!==a){if(o.mentionedType=ft.NONE,f.electronExtension.enable()){const{data:l}=await f.getConversation(n);o.mentionedType=l&&l.hasMentioned?ft.AT_ME:ft.NONE}o.unreadCount=a,this.ctx.dispatch(new ee(Z.CONVERSATION_ITEM_CHANGE,[o]))}}_onRecvConversationNtf(s){this._converNtfQueue.push(...s.conversationList)}_handleConversationNtf(s){const{conversation:n,updatedItems:i}=s,o=gt(n);let r=0,a=this._pool.get(o);return a&&i?this._handleUpdatedItems(a,i,n):!a&&(i!=null&&i.latestMessage)?(n.conversationType===f.ConversationType.PRIVATE?a=this._transPriConversation(n):n.conversationType===f.ConversationType.GROUP?a=this._transGroupConversation(n):a=this._transSystemConversation(n),{changeType:2,conversation:a}):{changeType:r}}_handleUpdatedItems(s,n,i){var r,a,l,c,u;let o=0;if(n.isTop&&(s.isTop=n.isTop.val,o=Math.max(2,o)),n.notificationLevel&&(s.notificationLevel=n.notificationLevel.val,o=Math.max(1,o)),(r=n.latestMessage)!=null&&r.val&&(i.conversationType===f.ConversationType.GROUP&&i.hasMentioned?s.mentionedType=i.mentionedInfo.type===f.MentionedType.ALL?ft.AT_ALL:ft.AT_ME:s.mentionedType=ft.NONE,this._paddingData(s,i),s.markReaded&&i.unreadMessageCount&&(s.markReaded=!1),o=Math.max(2,o)),n.unreadMessageCount&&!((a=n.latestMessage)!=null&&a.val)&&(s.unreadCount=i.unreadMessageCount||0,s.markReaded&&s.unreadCount>0&&(s.markReaded=!1),o=Math.max(1,o)),n.hasMentioned&&!((l=n.latestMessage)!=null&&l.val)&&(i.conversationType===f.ConversationType.GROUP&&i.hasMentioned?s.mentionedType=((c=i.mentionedInfo)==null?void 0:c.type)===f.MentionedType.ALL?ft.AT_ALL:ft.AT_ME:s.mentionedType=ft.NONE,o=Math.max(1,o)),this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5)try{const d=`${s.conversationType}|${s.targetId}|${s.channelId||""}|${((u=s.latestMessage)==null?void 0:u.messageUId)||""}`,h=Cn(this,pi).get(d);h&&(s.latestMessage.kitReadReceiptInfo=h,o=Math.max(1,o))}catch(d){this.logger.warn(G.L_HANDLE_READ_RECEIPT_V5_E,`handle Updated Items error: ${d}`)}return{changeType:o,conversation:s}}_paddingData(s,n){s.latestMessage=n.latestMessage?Ti(n.latestMessage):null,s.unreadCount=n.unreadMessageCount||0,s.isTop=!!n.isTop,f.electronExtension.enable()?(s.draft=n.draft||"",s.updateTime=n.operationTime||(n.latestMessage?n.latestMessage.sentTime:0)):s.updateTime=n.latestMessage?n.latestMessage.sentTime:0,n.notificationLevel&&(s.notificationLevel=n.notificationLevel)}_transPriConversation(s){const n=this.ctx.appData.getUserProfiles([s.targetId])[0],i=this._createCachedConversation(s);return i.name=n.name,i.portraitUri=n.portraitUri,i.online=n.online,this._paddingData(i,s),i}_transSystemConversation(s){const n=this.ctx.appData.getSystemProfiles([s.targetId])[0],i=this._createCachedConversation(s);return i.name=n.name,i.portraitUri=n.portraitUri,this._paddingData(i,s),i}_transGroupConversation(s){const n=this.ctx.appData.getGroupProfiles([s.targetId])[0],i=this._createCachedConversation(s);return i.name=n.name,i.portraitUri=n.portraitUri,i.memberCount=n.memberCount,s.hasMentioned?i.mentionedType=s.mentionedInfo.type===f.MentionedType.ALL?ft.AT_ALL:ft.AT_ME:i.mentionedType=ft.NONE,this._paddingData(i,s),i}_parseConversationList(s){const n=[];return s.forEach(i=>{const{targetId:o,conversationType:r,latestMessage:a}=i;switch(a&&this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5&&a.readReceiptInfo&&a.senderUserId===this.ctx.userId&&(a.sentStatus=f.SentStatus.READ),r){case f.ConversationType.PRIVATE:n.push(this._transPriConversation(i));return;case f.ConversationType.GROUP:n.push(this._transGroupConversation(i));return;case f.ConversationType.SYSTEM:n.push(this._transSystemConversation(i));return;default:this.logger.warn(G.L_PARSE_CONVERSATION_E,`unsupport conversation type: ${r}`);return}}),n}getCachedConversationList(){return this._list.slice()}_addToConversationList(s,n=!0){let i=this._list.findIndex(l=>vt(l,s));if(i>-1){if(!n)return{origin:i,current:i};this._list.splice(i,1)}const{isTop:o,updateTime:r}=s;let a=this._list.findIndex((l,c)=>o!==l.isTop?o:r!==l.updateTime?r>l.updateTime:i>-1&&c>=i);return a===-1&&(a=this._list.length),this._list.splice(a,0,s),{origin:i,current:a}}_onRecvNewMessages(s){this._messageQueue.push(...s.data)}_handleMessage(s){const n=this.ctx.userId;let i=0;const o=gt(s),{content:r,conversationType:a,targetId:l,channelId:c,sentTime:u,isCounted:d,senderUserId:h}=s;let p=this._pool.get(o);if(!p){const m={latestMessage:s,conversationType:a,targetId:l,channelId:c,lastUnreadTime:0};a===f.ConversationType.PRIVATE?p=this._transPriConversation(m):a===f.ConversationType.GROUP?p=this._transGroupConversation(m):p=this._transSystemConversation(m),i=2}return a===f.ConversationType.GROUP&&p.mentionedType!==ft.AT_ME&&h!==n&&(p.mentionedType=Math.max(this._getMentionedType(n,r.mentionedInfo),p.mentionedType),i=Math.max(i,1)),u>=p.updateTime&&(p.latestMessage=s,p.updateTime=u,i=2),d&&h!==n&&(p.unreadCount+=1,p.markReaded=!1,i=Math.max(i,1)),{changeType:i,conversation:p}}_recalculatePosition(s){const n=[];[...s].sort((o,r)=>o.updateTime-r.updateTime).forEach(o=>{const{current:r}=this._addToConversationList(o);n.push({order:r,conversation:o})}),this.ctx.dispatch(new ee(Z.CONVERSATION_ITEM_ORDER_CHANGE,n))}async _getMoreRemoteConversation(s=!1,n=0){const i=n===0?30:200,{code:o,data:r}=await f.getConversationListByTimestamp({count:i,startTime:n});if(s&&this._pullOfflineMessageFinished)return;if(o!==f.ErrorCode.SUCCESS&&!s){this.logger.error(G.L_GET_CONVERSATION_E,`get conversation list failed: code = ${o}, count = ${i}, startTime = ${n}`),this._getRemoteConversationTimer=setTimeout(()=>this._getMoreRemoteConversation(s,n),1e3);return}this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5&&this._handleLatestReadReceiptInfoV5(r||[]);const a=r||[];if(a.length===0||s){this._onGetRemoteConversationListDone(s);return}n===0&&!s&&(this._list.length=0);const c=this._parseConversationList(a),u=r[r.length-1].operationTime;if(c.forEach(d=>this._addToConversationList(d,!1)),this.ctx.dispatch(new ee(Z.CONVERSATION_LIST_RESET,this._list)),!u||s||f.electronExtension.enable()||a.length<i){this._onGetRemoteConversationListDone(s);return}this._getRemoteConversationTimer=setTimeout(()=>this._getMoreRemoteConversation(!1,u),300)}_onPullOfflineMessageFinished(){this._getRemoteConversationTimer&&(clearTimeout(this._getRemoteConversationTimer),this._getRemoteConversationTimer=null),this._handleQueueTimer&&(clearTimeout(this._handleQueueTimer),this._handleQueueTimer=null),this._pullOfflineMessageFinished?this._handleQueueDelay():this._getMoreRemoteConversation(!1),this._pullOfflineMessageFinished=!0}_onConnected(){d2(this,Ma,f2).call(this),!this._getRemoteConversationFinished&&!Cn(this,gi)&&this._getMoreRemoteConversation(!0)}_onConversationsSynced(){sr(this,er,!0),this._pullOfflineMessageFinished||setTimeout(()=>this._getMoreRemoteConversation(!1),100)}async _handleLatestReadReceiptInfoV5(s){var r;const n=this._buildIdentifiersForLatest(s);if(!n.length)return;const i=100,o=[];for(let a=0;a<n.length;a+=i)o.push(n.slice(a,a+i));try{(await Promise.all(o.map(l=>f.getMessageReadReceiptInfoV5ByIdentifiers(l)))).forEach(l=>{((l==null?void 0:l.data)||[]).forEach(u=>{const d=(u==null?void 0:u.identifier)||{},h=`${d.conversationType}|${d.targetId}|${d.channelId||""}|${u.messageUId}`;Cn(this,pi).set(h,u)})}),this._list.forEach(l=>{if(l.conversationType!==f.ConversationType.PRIVATE)return;const c=l.latestMessage;if(!(c!=null&&c.messageUId))return;const u=`${l.conversationType}|${l.targetId}|${l.channelId||""}|${c.messageUId}`,d=Cn(this,pi).get(u);d&&(l.latestMessage.kitReadReceiptInfo=d,this._pool.set(l.key,l))})}catch(a){(r=this.logger)==null||r.warn(G.L_GET_READ_RECEIPT_INFO_V5_E,`getMessageReadReceip·tInfoV5ByIdentifiers error: ${a}`)}}_buildIdentifiersForLatest(s){const n=[];return s.forEach(i=>{const o=i.latestMessage;i.conversationType===f.ConversationType.PRIVATE&&(o==null?void 0:o.messageDirection)===f.MessageDirection.SEND&&(o!=null&&o.messageUId)&&n.push({identifier:{conversationType:i.conversationType,targetId:i.targetId,channelId:i.channelId},messageUId:o.messageUId})}),n}_onV5ReceiptResponse(s){if(this.ctx.readReceiptVersion===f.GroupReadReceiptVersion.V5)try{if(!s||!Array.isArray(s))return;s.forEach(n=>{const i=(n==null?void 0:n.identifier)||{},o=`${i.conversationType}|${i.targetId}|${i.channelId||""}|${n.messageUId}`;Cn(this,pi).set(o,n);const r=gt({conversationType:i.conversationType,targetId:i.targetId,channelId:i.channelId}),a=this._pool.get(r);a&&a.latestMessage&&a.latestMessage.messageUId===(n==null?void 0:n.messageUId)&&(a.latestMessage.kitReadReceiptInfo=n,this._pool.set(r,a),this.ctx.dispatch(new ee(Z.CONVERSATION_ITEM_CHANGE,[a])),this.logger.debug(G.L_V5_RECEIPT_RESPONSE_O,`onV5ReceiptResponse success: ${JSON.stringify(a)}`))})}catch(n){this.logger.warn(G.L_V5_RECEIPT_RESPONSE_E,`onV5ReceiptResponse error: ${n}`)}}_onGetRemoteConversationListDone(s){s||(this._getRemoteConversationFinished=!0),this._handleQueue()}_handleQueueDelay(){this._handleQueueTimer||(this._handleQueueTimer=setTimeout(()=>{this._handleQueueTimer=null,this._handleQueue()},20))}_handleQueue(){if(this._messageQueue.length===0&&this._converNtfQueue.length===0){this._handleQueueDelay();return}if(this._list.length>=20&&!this._getRemoteConversationFinished)return;const s=new Set,n=new Set,i=new Set,o=Number.MAX_SAFE_INTEGER,r=20,a=Date.now(),l=c=>{const{changeType:u,conversation:d}=c;u===1?(i.add(d),s.add(d)):u===2&&(n.add(d),s.add(d))};if(this._handleMessageQueue(l,s,o,r,a),this._handleQueueNotify(l,s,o,r,a),n.size&&this._recalculatePosition(n),i.size){const c=[...i].filter(u=>!n.has(u));c.length&&this.ctx.dispatch(new ee(Z.CONVERSATION_ITEM_CHANGE,c))}this._handleQueueDelay()}_handleMessageQueue(s,n,i,o,r){for(;this._messageQueue.length&&Date.now()-r<o&&n.size<i;){const a=this._messageQueue[0];if(!this._getRemoteConversationFinished&&!a.isOffLineMessage)break;if(this._getRemoteConversationFinished&&a.isOffLineMessage){this._messageQueue.shift();continue}const l=Ti(this._messageQueue.shift());s(this._handleMessage(l))}}_handleQueueNotify(s,n,i,o,r){var a,l,c;if(!this._getRemoteConversationFinished){let u=0;for(;this._messageQueue.length===0&&u<this._converNtfQueue.length&&Date.now()-r<o&&n.size<i;){const d=this._converNtfQueue[u];if((a=d.updatedItems)!=null&&a.latestMessage){if(!d.updatedItems.latestMessage.val.isOffLineMessage)break;this._converNtfQueue.splice(u,1),s(this._handleConversationNtf(d));continue}u+=1}return}for(;this._messageQueue.length===0&&this._converNtfQueue.length&&Date.now()-r<o&&n.size<i;){const u=this._converNtfQueue.shift();(c=(l=u.updatedItems)==null?void 0:l.latestMessage)!=null&&c.val.isOffLineMessage||s(this._handleConversationNtf(u))}}async getMoreConversationList(s,n){let i=s?this._list.findIndex(l=>vt(l,s)):-1;i===-1?i=0:i=i+1;const o=i+(n||30),r=this._list.slice(i,o);return{hasMore:this._list.length>o||!this._getRemoteConversationFinished,code:f.ErrorCode.SUCCESS,list:r}}_alertImLibFailure(s){const n=s===Ov?"alert.imlib.failed.network":"alert.imlib.failed.generic";this.ctx.alert(n,s)}async removeConversation(s){const{code:n}=await f.removeConversation(s);if(n!==f.ErrorCode.SUCCESS){this._alertImLibFailure(n);return}const i=gt(s),o=this._list.findIndex(l=>vt(l,s));if(o>-1){const[l]=this._list.splice(o,1);this._pool.delete(i),this.ctx.dispatch(new ee(Z.CONVERSATIN_ITEM_REMOVE,[l])),l===this._openedConversation&&this._setOpenedConversation(null,!1)}if(!this.ctx.store.getCommandSwitch(ut.DELETE_MESSAGES_WHILE_DELETE_CONVERSATION))return;this.ctx.message.removeCachedMessages(s);const a=f.getServerTime()+5e3;f.clearHistoryMessages(s,a),f.electronExtension.enable()&&f.electronExtension.deleteMessagesByTimestamp(s,a,!1)}async openConversation(s,n=!0){if(Bn(s))return{code:Gs.INVALID_CONVERSATION};if(!this._getRemoteConversationFinished||!this._pullOfflineMessageFinished)return{code:Gs.CONVERSATION_LIST_NOT_READY};if(this._openedConversation&&vt(this._openedConversation,s))return{code:f.ErrorCode.SUCCESS};const{targetId:i,conversationType:o,channelId:r=""}=s;let a=this._list.findIndex(c=>vt(c,s)),l=this._list[a];return l||([l]=this._parseConversationList([{targetId:i,conversationType:o,channelId:r,latestMessage:null,lastUnreadTime:0}]),l.updateTime=f.getServerTime(),this._recalculatePosition(new Set([l]))),this._setOpenedConversation(l,n),{code:f.ErrorCode.SUCCESS}}_setOpenedConversation(s,n=!0){this._clearTypingStatus(),this._openedConversation=s,this.ctx.emit(new ee(fe.CONVERSATION_SELECTED,{conversation:s,focusInput:n}),1)}async setConversationNotificationLevel(s,n){if(Bn(s))return{code:Gs.INVALID_CONVERSATION};const i=this._list.find(r=>vt(r,s));if(!i)return{code:f.ErrorCode.CONVER_GET_ERROR};if(i.notificationLevel===n)return{code:f.ErrorCode.SUCCESS};const{code:o}=await f.setConversationNotificationLevel(s,n);return o!==f.ErrorCode.SUCCESS?(this._alertImLibFailure(o),{code:o}):(i.notificationLevel=n,this.ctx.dispatch(new ee(Z.CONVERSATION_ITEM_CHANGE,[i])),{code:o})}async setConversationToTop(s,n){if(Bn(s))return{code:Gs.INVALID_CONVERSATION};n=!!n;const i=this._list.find(r=>vt(r,s));if(!i)return{code:f.ErrorCode.CONVER_GET_ERROR};if(i.isTop===n)return{code:f.ErrorCode.SUCCESS};const{code:o}=await f.setConversationToTop(s,n);return o!==f.ErrorCode.SUCCESS?(this._alertImLibFailure(o),{code:o}):(i.isTop=n,this._recalculatePosition(new Set([i])),{code:o})}async markConversationReaded(s){var o;const{data:n}=await f.getFirstUnreadMessage(s);await this.clearUnreadCountByTimestamp(s,((o=s.latestMessage)==null?void 0:o.sentTime)||Date.now());const i=[];n&&i.push(Ti(n)),s.latestMessage&&i.push(s.latestMessage),this.ctx.message.sendReadReceiptMessage(s,i)}markConversationUnread(s){s.markReaded=!1,s.markUnread=!0,this.ctx.dispatch(new ee(Z.CONVERSATION_ITEM_CHANGE,[s]))}getCachedConversationByKey(s){return this._pool.get(s)}async clearUnreadCountByTimestamp(s,n){const i=this.getCachedConversationByKey(gt(s));if(!f.electronExtension.enable())await f.clearMessagesUnreadStatus(s),i.unreadCount=0,i.mentionedType=ft.NONE,i.markReaded=!0,i.markUnread=!1;else{await f.clearUnreadCountByTimestamp(s,n);const{data:o}=await f.getUnreadCount(s);i.unreadCount=o,i.markReaded=!0,i.markUnread=!1,i.mentionedType=ft.NONE}return this.ctx.dispatch(new ee(Z.CONVERSATION_ITEM_CHANGE,[i])),await f.sendSyncReadStatusMessage(s,n+1||Date.now()),{code:f.ErrorCode.SUCCESS}}async handleConversationDraft(s,n){if(!s)return;const{data:i}=await f.getTextMessageDraft(s);if(i===n)return;const o=gt(s);let r=this._pool.get(o);if(n){const{code:l}=await f.saveTextMessageDraft(s,n);if(l!==f.ErrorCode.SUCCESS||!r)return;r.draft=n,r.updateTime=f.getServerTime();const{current:c}=this._addToConversationList(r);this.ctx.dispatch(new ee(Z.CONVERSATION_ITEM_ORDER_CHANGE,[{order:c,conversation:r}]));return}if(await f.clearTextMessageDraft(s),!r)return;r.draft="",r.latestMessage&&(r.updateTime=r.latestMessage.sentTime);const{current:a}=this._addToConversationList(r);this.ctx.dispatch(new ee(Z.CONVERSATION_ITEM_ORDER_CHANGE,[{order:a,conversation:r}]))}updateLastReadTime(s,n){if(!this.ctx.conversationStore)return;const{conversationType:i,targetId:o,channelId:r=""}=s,a=this.ctx.conversationStore.get(i,o,r);n>a.lastReadTime&&this.ctx.conversationStore.set(i,o,{lastReadTime:n},r)}getLastReadTime(s){if(!this.ctx.conversationStore)return 0;const{conversationType:n,targetId:i,channelId:o=""}=s;return this.ctx.conversationStore.get(n,i,o).lastReadTime||0}sendTypingStatus(s=f.MessageType.TEXT){!this._openedConversation||this._openedConversation.conversationType!==f.ConversationType.PRIVATE||this._typingTime||(this._typingTime=setTimeout(()=>{this._typingTime=null},5e3),f.sendTypingStatusMessage(this._openedConversation,s))}_clearTypingStatus(){this._typingTime&&(clearTimeout(this._typingTime),this._typingTime=null)}}pi=new WeakMap,gi=new WeakMap,er=new WeakMap,Ma=new WeakSet,f2=function(){const{isConversationListIncludeUltraGroup:s}=f.getAppSettings()||{};sr(this,gi,!!s)};const Lv=e=>({...e}),Wh={radius:20,portraitSize:"large",topBackgroundColor:"#EFF4FF",hoverBackgroundColor:"#F3F5FA",activeBackgroundColor:"#D2E1FE"};class Av extends Ls{constructor(s){super(s);B(this,"conversationItemCfg",{});this.setConversationItemCfg(Wh)}_onInit(){}_onInitUserCache(){}_onDestroyUserCache(){}destroy(){this.setConversationItemCfg(Wh)}cloneConversationItemCfg(){return Lv(this.conversationItemCfg)}setConversationItemCfg(s){this.conversationItemCfg={...this.conversationItemCfg,...s}}}class xv extends Hc{constructor(s,n,i,o){super();B(this,"store");B(this,"conversationStore",null);B(this,"i18n");B(this,"appData");B(this,"message");B(this,"conversation");B(this,"conversationItem");B(this,"input");B(this,"bubble");B(this,"audioPlayer");B(this,"conversationMenu");B(this,"msgMenu");B(this,"speechToTextStore");B(this,"_stat");B(this,"_originUserId","");B(this,"_readReceiptVersion");B(this,"_status",j.RCConnectionStatus.DISCONNECTED);B(this,"isElectronRuntime",!1);B(this,"modalContainerId","");B(this,"allowedToRecallTime");B(this,"allowedToReEditTime");this.context=s,this.logger=n,this._emittor=i,this._stat=new Ec(s),this.modalContainerId=o.modalContainerId||"",this.allowedToRecallTime=o.allowedToRecallTime||120,this.allowedToReEditTime=o.allowedToReEditTime||60,this.store=new w2(n),this.i18n=new Gp(this),this.audioPlayer=new Mv(this),this.appData=new Hp(this,o.hooks),this.message=new wv(this),this.conversation=new bv(this),this.conversationItem=new Av(this),this.input=new ym(this),this.bubble=new sE(this),this.conversationMenu=new Rv(this),this.msgMenu=new nE(this),this.speechToTextStore=new Lc(n,this),this.msgMenu.setSpeechToTextStore(this.speechToTextStore),o.language&&this.i18n.setLanguage(o.language),f.addEventListener(f.Events.CONNECTED,this._onConnected,this),f.addEventListener(f.Events.DISCONNECT,this._onDisconnected,this),f.addEventListener(f.Events.SUSPEND,this._onSuspend,this),f.addEventListener(f.Events.CONNECTING,this._onConnecting,this)}get readReceiptVersion(){return this._readReceiptVersion}get userId(){return this._originUserId}get isQuoteMessageV2Enabled(){return this.store.getCommandSwitch(ut.USE_QUOTE_MESSAGE_V2)}get isMessageReactionEnabled(){return this.store.getCommandSwitch(ut.MESSAGE_REACTION_ENABLED)}get isShowMessageReactUsersEnabled(){return this.store.getCommandSwitch(ut.SHOW_MESSAGE_REACT_USERS)}get status(){return this._status}_onConnecting(){this._status=j.RCConnectionStatus.CONNECTING,this.dispatch(new ro(j.RCConnectionStatus.CONNECTING))}_onDisconnected(s){this._status=j.RCConnectionStatus.DISCONNECTED,this.dispatch(new ro(j.RCConnectionStatus.DISCONNECTED,s))}_onSuspend(s){this._status=j.RCConnectionStatus.SUSPENDED,this.dispatch(new ro(j.RCConnectionStatus.SUSPENDED,s))}_onConnected(){var n;this._status=j.RCConnectionStatus.CONNECTED,this._readReceiptVersion=(n=f.getAppSettings())==null?void 0:n.readReceiptVersion;const s=f.getCurrentUserId();if(this._originUserId===s){this.dispatch(new ro(j.RCConnectionStatus.CONNECTED));return}this._originUserId&&this._originUserId!==s&&(this._originUserId=s,this.dispatch(new ee(Z.DESTROY_USER_CACHE),!1)),this._originUserId=s,this.dispatch(new ee(Z.INIT_USER_CACHE),!1),this.dispatch(new ro(j.RCConnectionStatus.CONNECTED)),this.conversationStore=new L2(window,this.getAppkey(),this.userId,this.logger)}destroy(){f.removeEventListener(f.Events.CONNECTED,this._onConnected,this),f.removeEventListener(f.Events.DISCONNECT,this._onDisconnected,this),f.removeEventListener(f.Events.SUSPEND,this._onSuspend,this),f.removeEventListener(f.Events.CONNECTING,this._onConnecting,this),this.i18n.destroy(),this.appData.destroy(),this.message.destroy(),this.conversation.destroy(),this.input.destroy(),this.bubble.destroy(),this.conversationMenu.destroy(),this.msgMenu.destroy(),this.speechToTextStore.destroy(),this._originUserId="",this._readReceiptVersion=void 0}alert(s,...n){this.emit(new ee(fe.ALERT_EVENT,this.i18n.format(s,...n)))}confirm(s,...n){const i=new ee(fe.CONFIRM_EVENT,this.i18n.format(s,...n));return this.emit(i),i.awaitResult()}emit(s,n=0){const i=s.clone(n!==0);this._emittor.dispatch(i,!1),!(n===2||n===0&&i.isDefaultPrevented())&&this.dispatch(s)}emitMutable(s){this._emittor.dispatch(s,!1)}getAppkey(){return this.context.getAppkey()}statistic(s){this._stat.report(s)}}const kv=["src"],Uv={class:"progress"},Nv={class:"time"},Dv=Ie(Se({__name:"hq-voice-message.ce",props:{isOwner:{type:Boolean},playing:{type:Boolean},progress:{type:Number},duration:{type:Number},toggle:{type:Function},position:{type:Number}},setup(e){const t=e,s=t.position===ms.QUOTE_INFO,n=u=>`${Math.max(0,Math.floor(u))}s`,i=me(()=>n(t.duration)),o=Ap,r=xp;t.isOwner;const a=new Array(20).fill(0).map(u=>(Math.floor(Math.random()*9)+3)*2),l=me(()=>Math.floor(t.progress/100*20)||-1),c=me(()=>t.playing?r:o);return(u,d)=>(R(),k("div",null,[y("div",{class:Pe(["voice",{"is-quote":s}])},[y("img",{src:c.value,alt:"Button Icon",class:"control",onClick:d[0]||(d[0]=h=>e.toggle())},null,8,kv),y("div",Uv,[(R(!0),k(Ae,null,pt(D(a),(h,p)=>(R(),k("div",{class:Pe(["line",{active:l.value>=p}]),style:lt({height:h+"px"})},null,6))),256))]),y("div",Nv,se(i.value),1)],2)]))}}),[["styles",[`.voice{display:flex;align-items:center;padding:20px;gap:10px}.voice.is-quote{padding:0;gap:6px}.voice .control{width:20px;height:20px;cursor:pointer}.voice.is-quote .control{width:16px;height:16px}.voice .progress{height:22px;display:flex;align-items:center}.voice .progress .line{margin-right:4px;width:3px;border-radius:3px;animation:bounce-in 2s;background:#020814}.voice .progress .line.active{transition:all .5s;background:#0047FF}.voice.is-quote .progress{height:16px}.voice.is-quote .progress .line{margin-right:2px;width:2px}.voice .time{font-size:14px}.voice.is-quote .time{font-size:12px}
|
|
389
|
+
`]]]),Pv={class:"replay-bar"},Vv={class:"content"},Fv=["src"],$v={class:"message-desc"},Hv={class:"desc"},Gv={class:"reply-prefix"},Bv={class:"desc-text"},jv=["src"],qv=Ie(Se({__name:"reply-preview-bar.ce",props:{message:{type:Object},username:{type:String},previewText:{type:String},thumbnail:{type:String},cancel:{type:Function}},setup(e){const t=e,s=N(!1),n=me(()=>Je("input.reply.prefix").value+t.username);return(i,o)=>(R(),k("div",Pv,[y("div",Vv,[y("div",{class:"cancel-btn",onClick:o[0]||(o[0]=r=>t.cancel()),onMouseenter:o[1]||(o[1]=r=>s.value=!0),onMouseleave:o[2]||(o[2]=r=>s.value=!1)},[y("img",{src:s.value?D(Lp):D(h1),alt:"Cancel"},null,8,Fv)],32),y("div",$v,[y("div",Hv,[y("span",Gv,se(n.value)+":",1),y("span",Bv,se(t.previewText),1),t.thumbnail?(R(),k("img",{key:0,class:"thumbnail",src:t.thumbnail,alt:"Thumbnail Image"},null,8,jv)):le("",!0)])])])]))}}),[["styles",[`.replay-bar{display:flex;flex-direction:row;align-items:center;border-radius:8px;height:36px;padding-top:8px;width:100%;max-width:100%;overflow:hidden}.content{margin-left:8px;box-sizing:border-box;width:calc(100% - 66px);flex:1;display:flex;height:100%;background-color:#f3f5fa;border-radius:10px;font-size:14px;color:#020814}.message-desc{flex:1;display:flex;box-sizing:border-box;flex-direction:column;justify-content:center;width:calc(100% - 120px);padding-right:10px;margin-left:4px;overflow:hidden}.username{color:#09f;margin-bottom:2px;width:100%;overflow:hidden;text-overflow:ellipsis}.desc{color:#020814;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;display:flex;align-items:center;gap:4px}.reply-prefix{flex-shrink:0}.desc-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thumbnail{flex-shrink:0;height:24px;width:auto;max-width:100px;border:none;padding:0;box-sizing:border-box;object-fit:contain;vertical-align:middle}.cancel-btn{display:flex;width:24px;margin-left:10px;flex-direction:column;justify-content:center;vertical-align:middle;cursor:pointer;img {border-radius: 8px;}}.cancel-btn svg path{fill:#0e1012;stroke:#0e1012}
|
|
390
|
+
`]]]);var Zh=(e=>(e.HQVoiceMessageComponent="rc-hq-voice-message",e.ReplyPreviewBarComponent="rc-reply-preview-bar",e))(Zh||{});const Yh={"rc-hq-voice-message":Dv,"rc-reply-preview-bar":qv};var Xh=(e=>(e.HQVoiceMessageComponent="HQVoiceMessageComponent",e.ReplyPreviewBarComponent="ReplyPreviewBarComponent",e))(Xh||{});class Kv{constructor(t){B(this,"logger");B(this,"_customMessageComponents",{});B(this,"_overrideAbleComponents",{...Yh});B(this,"_overrideCtx");this.ctx=t,this.logger=t.logger,this._overrideCtx={computed:me,ref:N,reactive:Cs,getLanguage:()=>ui.value,getCurrentUserId:()=>this.ctx.userId},y_(t),vv(t)}registerCustomElement(t,s){const n=Zh[t];if(!n){this.logger.error(G.A_REGISTER_CUSTOM_ELEMENT_O,`Tag is either illegal or cannot be rewritten: OverrideAbleComponentTag[${t}]`);return}this.logger.info(G.A_REGISTER_CUSTOM_ELEMENT_O,`tag: ${n}`),this.ctx.statistic(`Override_${t}`);const i=Yh[n],o=n.replace(/^rc-/,"rc-override-");this._overrideAbleComponents[o]=i;const r=this._overrideCtx;this._overrideAbleComponents[n]={props:{...i.props},setup(a){return s.setup(a,r)},template:s.template.replace(/rc-origin/g,o),styles:s.styles}}registerDOMElements(){this.logger.info(G.L_REGISTER_DOM_ELEMENTS_O),Object.entries(this._overrideAbleComponents).forEach(([t,s])=>{customElements.get(t)||customElements.define(t,Bi(s))}),Object.entries(z8).forEach(([t,s])=>{customElements.get(t)||customElements.define(t,Bi(s))}),Object.entries(this._customMessageComponents).forEach(([t,s])=>{customElements.get(t)||customElements.define(t,s)}),Object.entries(_v).forEach(([t,s])=>{customElements.get(t)||customElements.define(t,Bi(s))})}registerMessageType(t,s){const n=f.registerMessageType(t,!!s.isPersited,!!s.isCounted,s.searchProps,!!s.isStatusMessage);if(s.digest&&bc(t,s.digest),s.component){const{component:i}=s,o=`rc-custom-${i.tag}`;Sv(t,o);const r=this._overrideCtx,{setup:a,styles:l,template:c}=i;this._customMessageComponents[o]=Bi({props:["message","position"],setup(u){return a(u,r)},styles:l,template:c})}return n}destroy(){$h(),ui.value="zh_CN"}}var zv=Object.defineProperty,Qv=Object.getOwnPropertyDescriptor,Mt=(e,t,s,n)=>{for(var i=n>1?void 0:n?Qv(t,s):t,o=e.length-1,r;o>=0;o--)(r=e[o])&&(i=(n?r(t,s,i):r(i))||i);return n&&i&&zv(t,s,i),i};function Xs(e){return function(t,s,n){const i=n.value;n.value=function(...o){if(this._isReady){this._logger.error(e,`RCKitApplication.${s} must be called before 'ready'`);return}return i.apply(this,o)}}}function Js(e){return function(t,s,n){const i=n.value;n.value=function(...o){if(!this._isReady){this._logger.error(e,`'RCKitApplication.${s}' failed: not ready yet.`);return}return i.apply(this,o)}}}class Et extends Hc{constructor(s,n,i){super();B(this,"_ctx");B(this,"_uiModule");B(this,"_isReady",!1);this.context=s,this._logger=n,this._ctx=new xv(this.context,n,this,i),this._uiModule=new Kv(this._ctx),this.context.ondestroy=this._onIMDestroy.bind(this)}_onIMDestroy(){this.destroy()}setCommandSwitch(s,n){this._ctx.store.setCommandSwitch(s,n)}getCommandSwitch(s){return this._ctx.store.getCommandSwitch(s)}setConversationBarSwitch(s){this._ctx.store.setConversationBarSwitch(s),this._ctx.dispatch(new ee(Z.CONVERSATION_BAR_SWITCH_CHANGE,s))}setConversationDetailBackSwitch(s){this._ctx.store.setConversationDetailBackSwitch(s),this._ctx.dispatch(new ee(Z.CONVERSATION_DETAIL_BACK_SWITCH_CHANGE,s))}setConversationBarTitle(s){this._ctx.store.setConversationBarTitle(s),this._ctx.dispatch(new ee(Z.CONVERSATION_BAR_TITLE_CHANGE,s))}registerCustomElement(s,n){this._uiModule.registerCustomElement(s,n)}registerMessageType(s,n){return this._uiModule.registerMessageType(s,n)}cloneLanguageEntries(s){return this._ctx.i18n.cloneLanguageEntries(s)}registerLanguagePack(s,n,i="ltr"){this._ctx.i18n.registerLanguagePack(s,n,i)}setLanguage(s){this._ctx.i18n.setLanguage(s)}getLanguage(){return this._ctx.i18n.getLanguage()}getSupportedLanguages(){return this._ctx.i18n.getSupportedLanguages()}setPushConfigHook(s){this._ctx.store.setPushConfigHook(s)}updateUserProfile(s){this._ctx.appData.updateUserProfile(s)}updateGroupProfile(s){this._ctx.appData.updateGroupProfile(s)}updateUserOnlineStatus(s,n){this._ctx.appData.updateUserOnlineStatus(s,n)}updateGroupMembers(s,n){this._ctx.appData.updateGroupMembers(s,n)}addGroupMembers(s,n){this._ctx.appData.addGroupMembers(s,n)}removeGroupMembers(s,n){this._ctx.appData.removeGroupMembers(s,n)}cloneConversationMenu(){return this._ctx.conversationMenu.cloneConversationMenu()}setConversationMenu(s){this._ctx.conversationMenu.setConversationMenu(s)}cloneMessageMenu(){return this._ctx.msgMenu.cloneMessageMenu()}setMessageMenu(s){this._ctx.msgMenu.setMessageMenu(s)}openConversation(s,n=!0){return this._ctx.conversation.openConversation(s,n)}removeConversation(s){return this._ctx.conversation.removeConversation(s)}getOpenedConversation(){const s=this._ctx.conversation.getOpenedConversation();return s?{...s}:null}setConversationExtension(s){this._ctx.store.setConversationExtension(s)}cloneInputMenu(){return this._ctx.input.cloneInputMenu()}setInputMenu(s){this._ctx.input.setInputMenu(s)}cloneMessageBubbleCfg(){return this._ctx.bubble.cloneMessageBubbleCfg()}setMessageBubbleCfg(s){this._ctx.bubble.setMessageBubbleCfg(s)}cloneConversationItemCfg(){return this._ctx.conversationItem.cloneConversationItemCfg()}setConversationItemCfg(s){this._ctx.conversationItem.setConversationItemCfg(s)}cloneImageEmojiLibraries(){return this._ctx.input.cloneImageEmojiLibraries()}setImageEmojiLibraries(s){this._ctx.input.setImageEmojiLibraries(s)}cloneChatEmojiLibrary(){return this._ctx.input.cloneChatEmojiLibrary()}setChatEmojiLibrary(s){this._ctx.input.setChatEmojiLibrary(s)}setQuoteEnableMessageTypeList(s){this._ctx.input.setQuoteEnableMessageTypeList(s)}getQuoteEnableMessageTypeList(){return this._ctx.input.getQuoteEnableMessageTypeList()}sendMessage(s,n,i){return this._ctx.message.sendMessage(s,n,i)}insertMessage(s,n){return this._ctx.message.insertMessage(s,n)}ready(){if(this._isReady){this._logger.warn(G.A_READY_O,"RCKitApplication repeat call 'ready()'");return}this._logger.info(G.A_READY_O,"RCKitApplication 'ready'"),this._uiModule.registerDOMElements(),this._isReady=!0}ifReady(){return this._isReady}getCurrentUserId(){return this._ctx.userId}destroy(){this.removeAllEventListeners(),this._ctx.destroy(),this._uiModule.destroy()}}Mt([Xs(G.A_SET_COMMAND_SWITCH_O)],Et.prototype,"setCommandSwitch",1),Mt([Xs(G.A_REGISTER_CUSTOM_ELEMENT_O)],Et.prototype,"registerCustomElement",1),Mt([Xs(G.A_REGISTER_MESSAGE_TYPE_O)],Et.prototype,"registerMessageType",1),Mt([Xs(G.A_REGISTER_LANGUAGE_PACK_O)],Et.prototype,"registerLanguagePack",1),Mt([Js(G.A_UPDATE_USER_PROFILE_E)],Et.prototype,"updateUserProfile",1),Mt([Js(G.A_UPDATE_GROUP_PROFILE_E)],Et.prototype,"updateGroupProfile",1),Mt([Js(G.A_UPDATE_USER_ONLINE_STATE_E)],Et.prototype,"updateUserOnlineStatus",1),Mt([Js(G.A_UPDATE_GROUP_MEMBERS_E)],Et.prototype,"updateGroupMembers",1),Mt([Js(G.A_ADD_GROUP_MEMBERS_E)],Et.prototype,"addGroupMembers",1),Mt([Js(G.A_REMOVE_GROUP_MEMBERS_E)],Et.prototype,"removeGroupMembers",1),Mt([Js(G.A_OPEN_CONVERSATION_E)],Et.prototype,"openConversation",1),Mt([Js(G.A_REMOVE_CONVERSATION_E)],Et.prototype,"removeConversation",1),Mt([Xs(G.A_SET_CONVERSATION_EXTENSION_E)],Et.prototype,"setConversationExtension",1),Mt([Xs(G.A_SET_INPUT_MENU_E)],Et.prototype,"setInputMenu",1),Mt([Xs(G.A_SET_MESSAGE_BUBBLE_CFG_E)],Et.prototype,"setMessageBubbleCfg",1),Mt([Xs(G.A_SET_CONVERSATION_ITEM_CFG_E)],Et.prototype,"setConversationItemCfg",1),Mt([Xs(G.A_SET_CHAT_EMOJI_LIBRARY_E)],Et.prototype,"setChatEmojiLibrary",1),Mt([Xs(G.A_SET_QUOTE_ENABLE_MESSAGE_TYPE_LIST_O)],Et.prototype,"setQuoteEnableMessageTypeList",1),Mt([Js(G.A_SEND_MESSAGE_E)],Et.prototype,"sendMessage",1),Mt([Js(G.A_INSERT_MESSAGE_E)],Et.prototype,"insertMessage",1),j.VersionManage.add("IMKit",Tc);const Wv={tag:"IMKit",verify(e){return e.tag==="browser"&&typeof customElements<"u"},setup(e,t,s){const n=e.createLogger("IMKit","IM");return s.logLevel&&n.setOutputLevel(s.logLevel),n.warn(G.A_INIT_O,`Commit: ${Dh}, Version: ${Tc}`),new Et(e,n,s)}};Le.RCKIT_COMMIT_VERSION=Dh,Le.RCKIT_VERSION=Tc,Le.RCKitApplication=Et,Le.RCKitBubbleLayout=Sc,Le.RCKitChatEmojiLibraryID=vm,Le.RCKitCommand=ut,Le.RCKitConversationMenuID=zh,Le.RCKitEvent=ee,Le.RCKitEvents=fe,Le.RCKitInputMenuID=fi,Le.RCKitInputMenuPosition=Sh,Le.RCKitInstaller=Wv,Le.RCKitMentionedType=ft,Le.RCKitMessageComponentRenderPosition=ms,Le.RCKitMessageMenuID=Zt,Le.RCKitModalBtnType=Sn,Le.RCKitModalForwardingType=jn,Le.RCKitOverrideAbleComponent=Xh,Le.isMobileDevice=vs,Object.defineProperty(Le,Symbol.toStringTag,{value:"Module"})});
|