dootask/public/js/build/app.1e00fc89.js
2026-07-20 14:21:51 +00:00

597 lines
823 KiB
JavaScript
Vendored
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var Xn=Object.defineProperty;var Zn=(e,s,t)=>s in e?Xn(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t;var S=(e,s,t)=>(Zn(e,typeof s!="symbol"?s+"":s,t),t);import{v as er}from"./jquery.99163cb9.js";import{v as tr,a as sr,b as ir}from"./dayjs.0bb0f368.js";import{v as nr}from"./localforage.6e50a401.js";import{M as sn}from"./markdown-it.0450edb4.js";import{H as wt}from"./highlight.js.cbbfb885.js";import{m as rr}from"./markdown-it-link-attributes.e1d5d151.js";import{m as or}from"./@traptitech.acea8861.js";import{V as E}from"./vue.adba9046.js";import{m as z,a as pt,V as Nt}from"./vuex.cc7cb26e.js";import{_ as D,c as ar,V as lr,d as cr,n as ur,l as dr,W as hr,p as pr,r as fr}from"./openpgp_hi.15f91b1d.js";import{a as ot}from"./axios.37c7f908.js";import{m as mr}from"./mitt.1ea0a2a3.js";import{Q as ie,E as Xe}from"./quill-hi.ca2ea0cc.js";import"./quill-mention-hi.4eeb5a2d.js";import{i as gr,V as ee}from"./view-design-hi.f1128b4d.js";import{h as _r}from"./html-to-md.f297036e.js";import{D as vr}from"./quill-delta.385a10bf.js";import{l as Qt}from"./lodash.8fcd6fd4.js";import{V as ft}from"./vue-router.2d566cd7.js";import{V as yr}from"./vue-clipboard2.fd43a5bc.js";import{D as wr}from"./vuedraggable.f464b992.js";import{V as $r}from"./vue-resize-observer.5af23a43.js";import{e as Le}from"./element-sea.f8a64907.js";import"./@babel.9410f858.js";import"./mdurl.ce6c1dd8.js";import"./uc.micro.8d343c98.js";import"./entities.48a44fec.js";import"./linkify-it.c5e8196e.js";import"./punycode.js.4b3f125a.js";import"./parchment.d5c5924e.js";import"./eventemitter3.78b735ad.js";import"./lodash-es.76e3a28b.js";import"./fast-diff.f17881f3.js";import"./lodash.clonedeep.3cc09a31.js";import"./lodash.isequal.dbdc2157.js";import"./clipboard.37b37361.js";import"./sortablejs.3488b922.js";import"./deepmerge.cecf392e.js";import"./resize-observer-polyfill.5d591c5f.js";import"./throttle-debounce.7c3948b2.js";import"./babel-helper-vue-jsx-merge-props.5ed215c3.js";import"./normalize-wheel.2a034b9f.js";import"./async-validator.dca2b951.js";import"./babel-runtime.4773988a.js";import"./core-js.314b4a1d.js";var kr={contextKeyPattern:/^\[([a-z][a-z0-9_]*)]\.([\s\S]+)$/,languageList:{zh:"\u7B80\u4F53\u4E2D\u6587","zh-CHT":"\u7E41\u9AD4\u4E2D\u6587",en:"English",ko:"\uD55C\uAD6D\uC5B4",ja:"\u65E5\u672C\u8A9E",de:"Deutsch",fr:"Fran\xE7ais",id:"Indonesia",ru:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439 \u044F\u0437\u044B\u043A"},replaceArgumentsLanguage(e,s){let t=1;return e.replace(/\(\*\)/g,()=>this.getArgumentLanguage(s[t++]))},getArgumentLanguage(e){return e===null||typeof e=="undefined"||typeof e=="object"?"":e},normalizeArgumentsLanguage(e){return e.replace(/\(%[TM]\d+\)/g,"(*)")},stripContextLanguageKey(e){var s;return typeof e!="string"?e:((s=e.match(this.contextKeyPattern))==null?void 0:s[2])||e},getLanguage(){let e=window.localStorage.getItem("__system:languageName__");if(typeof e=="string"&&typeof this.languageList[e]!="undefined")return e;e="en";let s=((window.navigator.language||navigator.userLanguage)+"").toLowerCase();switch(s){case"zh":case"cn":case"zh-cn":e="zh";break;case"zh-tw":case"zh-tr":case"zh-hk":case"zh-cnt":case"zh-cht":e="zh-CHT";break;default:typeof this.languageList[s]!="undefined"&&(e=s);break}return this.saveLanguage(e),e},saveLanguage(e){window.localStorage.setItem("__system:languageName__",e)}};const me=kr,ve=me.languageList,M=me.getLanguage(),be=new Map,nn=new Map;typeof window.LANGUAGE_DATA=="undefined"&&(window.LANGUAGE_DATA={});function br(){if(typeof window.LANGUAGE_DATA=="undefined"||typeof window.LANGUAGE_DATA.key=="undefined")return;const e=window.LANGUAGE_DATA.key||[];delete window.LANGUAGE_DATA.key,e.forEach((s,t)=>{if(/\(%[TM]\d+\)/.test(s)){const i=me.normalizeArgumentsLanguage(s),n=new Set;s.replace(/\(%M(\d+)\)/g,(r,o)=>{n.add(o)});for(let r in window.LANGUAGE_DATA)typeof ve[r]!="undefined"&&nn.set(`${i}-${r}`,{text:window.LANGUAGE_DATA[r][t],translateArguments:n})}else for(let i in window.LANGUAGE_DATA){if(typeof ve[i]=="undefined")continue;const n=window.LANGUAGE_DATA[i][t];(n||me.stripContextLanguageKey(s)===s)&&be.set(`${s}-${i}`,n||s)}})}function iv(e){!$A.isArray(e)||e.forEach(s=>{const{key:t,general:i}=s;if(!!t){if(i)for(let n in window.LANGUAGE_DATA)typeof ve[n]!="undefined"&&be.set(`${t}-${n}`,i);for(let n in s)n==="key"||n==="general"||be.set(`${t}-${n}`,s[n])}})}function Ar(e,s=!1){e!==void 0&&(s?(me.saveLanguage(e),(async()=>{var t;await $A.IDBDel("callAt"),(t=$A.Electron)==null||t.sendMessage("recreatePreloadPool"),$A.reloadUrl()})()):$A.modalConfirm({content:"\u5207\u6362\u8BED\u8A00\u9700\u8981\u5237\u65B0\u540E\u751F\u6548\uFF0C\u662F\u5426\u786E\u5B9A\u5237\u65B0\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>Ar(e,!0)}))}function Xt(){return me.getLanguage()}function Bt(e){if(typeof e!="string"||!e)return e;const s=me.stripContextLanguageKey(e),t=s===e?[e]:[e,s];if(arguments.length>1){for(const n of t){const r=`${n}-${M}`,o=nn.get(r);if(!!(o!=null&&o.text))return o.text.replace(/\(%[TM](\d+)\)/g,(a,l)=>{const c=me.getArgumentLanguage(arguments[l]);return o.translateArguments.has(l)?Bt(String(c)):c})}e=me.replaceArgumentsLanguage(s,arguments)}else{for(const n of t){const r=be.get(`${n}-${M}`);if(r)return r}e=s}const i=`${e}-${M}`;return be.has(i)?be.get(i):(window.systemInfo.debug==="yes"&&setTimeout(n=>{try{let r="__language:Undefined__",o=JSON.parse(window.localStorage.getItem(r)||"[]");$A.isArray(o)||(o=[]),o.findIndex(a=>a==e)===-1&&(o.push(e),window.localStorage.setItem(r,JSON.stringify(o)))}catch{}},10),be.set(i,e),e)}const rn=(()=>{let e=!1,s=null,t=null,i=null;const n=o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=()=>{if(e||(($A.isEEUIApp||$A.isElectron)&&(s=window.location.origin+"/"),!s))return;t=$A.mainUrl();const o=n(t),l=["images/"].map(c=>n(c));i=new RegExp(`${o}(${l.join("|")})`),e=!0};return o=>(r(),!s||!/\.(jpe?g|webp|png|gif|icns|ico|svg)$/i.test(o)?o:i.test(o)?o.replace(t,s):o)})(),Oe=e=>{if(!e)return!1;try{return new URL(e).hostname=="localhost"}catch{return!1}},ce=nr,we=tr,Cr=sr,Sr=ir;(function(e,s,t){e.systemInfo=e.systemInfo||{},e.modalTransferIndex=1e3,ce.config({name:"DooTask",storeName:"common"}),s.extend({isArray(i){return typeof i=="object"&&Object.prototype.toString.call(i).toLowerCase()=="[object array]"&&typeof i.length=="number"},normalizeIntArray(i){return this.isArray(i)?[...new Set(i.map(n=>parseInt(n)).filter(n=>n>0))]:[]},isJson(i){return typeof i=="object"&&Object.prototype.toString.call(i).toLowerCase()=="[object object]"&&typeof i.length=="undefined"},inArray(i,n,r=!1){return this.isArray(n)?r?!!n.find(o=>o&&o.indexOf("*")&&new RegExp("^"+o.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*")+"$","g").test(i)?!0:o==i):n.includes(i):!1},randNum(i,n){let r=n-i,o=Math.random();return i+Math.round(o*r)},last(i){let n=!1;return typeof i=="object"&&i.length>0&&(n=i[i.length-1]),n},strExists(i,n,r=!1){return i+="",n+="",r!==!0&&(i=i.toLowerCase(),n=n.toLowerCase()),i.indexOf(n)!==-1},leftExists(i,n,r=!1){return i+="",n+="",r!==!0&&(i=i.toLowerCase(),n=n.toLowerCase()),i.substring(0,n.length)===n},leftDelete(i,n,r=!1){return i+="",n+="",this.leftExists(i,n,r)&&(i=i.substring(n.length)),i||""},rightExists(i,n,r=!1){return i+="",n+="",r!==!0&&(i=i.toLowerCase(),n=n.toLowerCase()),i.substring(i.length-n.length)===n},rightDelete(i,n,r=!1){return i+="",n+="",this.rightExists(i,n,r)&&(i=i.substring(0,i.length-n.length)),i||""},getMiddle(i,n=null,r=null){return i=i.toString(),this.isHave(n)&&this.strExists(i,n)&&(i=i.substring(i.indexOf(n)+n.length)),this.isHave(r)&&this.strExists(i,r)&&(i=i.substring(0,i.indexOf(r))),i},subString(i,n,r){return i+="",this.isHave(r)||(r=i.length),i.substring(n,r)},randomString(i){i=i||32;let n="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678oOLl9gqVvUuI1",r=n.length,o="";for(let a=0;a<i;a++)o+=n.charAt(Math.floor(Math.random()*r));return o},isHave(i,n=!1){if(i===null||i==="null"||i===t||i==="undefined"||!i)return!1;if(n){if(Array.isArray(i))return i.length>0;if(typeof i=="object"&&i.constructor===Object)return Object.keys(i).length>0}return!0},isTrue(i){const n=typeof i;return n==="boolean"?i===!0:n==="number"?i===1:n==="string"?i.toLowerCase()==="true"||i==="1":!1},runNum(i,n=null){let r=Number(i);if(r+""=="NaN"&&(r=0),n&&/^[0-9]*[1-9][0-9]*$/.test(n)&&(r=r.toFixed(n),r.indexOf(".")<0)){r+=".";for(let a=0;a<n;a++)r+="0"}return r},zeroFill(i,n,r=!1){return r?`${i}`.padEnd(n,"0"):`${i}`.padStart(n,"0")},isMobile(i){return/^1([3456789])\d{9}$/.test(i)},isEmail(i){return/^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*\.)+[a-zA-Z]*)$/i.test(i)},getDistance(i,n,r,o){let a=3.14159265359,l=6.28318530712,c=.01745329252,d=63706935e-1,h,u,p,g,_,v,y,w;return h=i*c,u=n*c,p=r*c,g=o*c,y=h-p,y>a?y=l-y:y<-a&&(y=l+y),_=d*Math.cos(u)*y,v=d*(u-g),w=Math.sqrt(_*_+v*v).toFixed(0),w},setTile(i){document.title=i;let n=navigator.userAgent.toLowerCase();if(/iphone|ipad|ipod/.test(n)){let r=document.createElement("iframe");r.style.display="none",r.setAttribute("src","/favicon.ico");let o=function(){setTimeout(function(){r.removeEventListener("load",o),document.body.removeChild(r)},0)};r.addEventListener("load",o),document.body.appendChild(r)}},cloneJSON(i,n=!1){if(n===!0)return $A.jsonParse($A.jsonStringify(i));try{return structuredClone(i)}catch{return typeof i!="object"||i===null?i:$A.jsonParse($A.jsonStringify(i))}},jsonParse(i,n=t){if(i===null)return n||{};if(typeof i=="object")return i;try{return JSON.parse(i.replace(/\n/g,"\\n").replace(/\r/g,"\\r"))}catch{return n||{}}},jsonStringify(i,n=t){if(typeof i!="object")return i;try{return JSON.stringify(i)}catch{return n||""}},resize(i,n){let r=$A(i);if(r.length===0)return;let o=parseInt(r.outerHeight()),a=parseInt(r.outerWidth()),l=setInterval(()=>{r.length===0&&clearInterval(l);let c=parseInt(r.outerHeight()),d=parseInt(r.outerWidth());(o!==c||a!==d)&&(o=c,a=d,$A.openLog&&console.log(a,o),typeof n=="function"&&n())},250)},screenOrientation(){return $A(e).width()-$A(e).height()>50?"landscape":"portrait"},isIos(){let i=typeof e!="undefined"&&e.navigator.userAgent.toLowerCase();return i&&/iphone|ipad|ipod|ios/.test(i)},isIpad(){let i=typeof e!="undefined"&&e.navigator.userAgent.toLowerCase();return i&&/ipad/.test(i)},isAndroid(){let i=typeof e!="undefined"&&e.navigator.userAgent.toLowerCase();return i&&i.indexOf("android")>0},isWeixin(){return(typeof e!="undefined"&&e.navigator.userAgent.toLowerCase()).match(/MicroMessenger/i)+""=="micromessenger"},isChrome(){return(typeof e!="undefined"&&e.navigator.userAgent.toLowerCase()).match(/Chrome/i)+""=="chrome"},isDesktop(){return!(typeof e!="undefined"&&e.navigator.userAgent).match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)},getObject(i,n,r=""){let o;if(typeof n=="string")o=n.replace(/,/g,"|").replace(/\./g,"|").split("|");else if(Array.isArray(n))o=n;else return r;let a=i;for(let l=0;l<o.length;l++){let c=o[l];if(a==null)return r;typeof c=="string"&&/^\d+$/.test(c)&&(c=parseInt(c,10)),a=a[c]}return a===t?r:a},count(i){try{if(typeof i=="undefined")return 0;if(typeof i=="number"&&(i+=""),typeof i.length=="number")return i.length;{let n=0,r;for(r in i)n++;return n}}catch{return 0}},stringLength(i){return typeof i=="number"||typeof i=="string"?(i+"").length:0},arrayLength(i){if(i)try{return i.length}catch{return 0}return 0},objImplode(i){if(i===null)return"";let n="";return $A.each(i,(r,o)=>{o!==null&&(typeof o=="object"&&this.count(o)>0?n+=this.objImplode(o):n+=String(o))}),n.replace(/\s/g,"").replace(/undefined/g,"")},urlParameter(i){const n=this.urlParameterAll();return typeof i=="undefined"?n:n[i]},urlParameterAll(){const i=e.location.search||e.location.hash||"",n=i.indexOf("?"),r=n!==-1?i.substring(n+1).split("&"):[],o={};for(let a=0;a<r.length;a++){const l=r[a].split("=");l.length===2&&(o[l[0]]=l[1])}return o},removeURLParameter(i,n){if(n instanceof Array)return n.forEach(r=>{i=$A.removeURLParameter(i,r)}),i;try{const r=new URL(i);return r.searchParams.delete(n),r.toString()}catch{const o=i.split("?");if(o.length>=2){const a=encodeURIComponent(n)+"=",l=o[1].split(/[&;]/g);for(let c=l.length;c-- >0;)l[c].lastIndexOf(a,0)!==-1&&l.splice(c,1);return o[0]+(l.length>0?"?"+l.join("&"):"")}return i}},urlAddParams(i,n){if(!$A.isJson(n))return i;try{const r=new URL(i);for(let o in n)!n.hasOwnProperty(o)||r.searchParams.set(o,n[o]);return r.toString()}catch{i&&(i=this.removeURLParameter(i,Object.keys(n))),i+="",i+=i.indexOf("?")===-1?"?":"";for(let o in n)!n.hasOwnProperty(o)||(i+="&"+o+"="+encodeURIComponent(n[o]));return this.rightDelete(i.replace("?&","?"),"?")}},urlReplaceHash(i,n=t){n===t&&(n=i,i=e.location.href),i=i||e.location.href;try{const r=new URL(i);return n=String(n||""),n&&n.startsWith("#")&&(n=n.substring(1)),r.hash=n,r.toString()}catch{if(!n)return i.replace(/#.*$/,"");const o=n.startsWith("#")?n:"#"+n;return i.includes("#")?i.replace(/#.*$/,o):i+o}},reloadUrl(){if($A.isEEUIApp&&$A.isAndroid()){let i=e.location.href,n="_=",r=new RegExp(n+"\\d+"),o=$A.dayjs().valueOf();if(i.indexOf(n)>-1)i=i.replace(r,n+o);else if(i.indexOf("?")>-1){let a=i.split("?");a[1]?i=a[0]+"?"+n+o+"&"+a[1]:i=a[0]+"?"+n+o}else i.indexOf("#")>-1?i=i.split("#")[0]+"?"+n+o+location.hash:i=i+"?"+n+o;$A.eeuiAppSetUrl(i)}else e.location.reload()},stringConnect(...i){let n=null,r="";return i.forEach(o=>{n===null?n=o:o&&(o&&r&&(r+=n),r+=o)}),r},objEquals(i,n){let r=i instanceof Object,o=n instanceof Object;if(!r||!o)return i===n;if(Object.keys(i).length!==Object.keys(n).length)return!1;for(let a in i)if(i.hasOwnProperty(a)){let l=i[a]instanceof Object,c=n[a]instanceof Object;if(l&&c){if(!this.objEquals(i[a],n[a]))return!1}else if(i[a]!=n[a])return!1}return!0},insert2Input(i,n){if(i===null||typeof i!="object")return;typeof i.length=="number"&&i.length>0&&(i=i[0]);let r=typeof i.$el=="object"?$A(i.$el):$A(i);if(r.length===0)return;let o=r[0];if(o.tagName!="INPUT"&&o.tagName!="TEXTAREA"&&(r.find("input").length===0?r=r.find("textarea"):r=r.find("input")),r.length===0||(o=r[0],o.tagName!="INPUT"&&o.tagName!="TEXTAREA"))return;let a=r.val(),{selectionStart:l,selectionEnd:c}=o;r.val(`${a.substring(0,l)}${n}${a.substring(c,a.length)}`),o.dispatchEvent(new Event("input")),setTimeout(()=>{if(o.setSelectionRange){let d=a.substring(0,l).length+n.length;o.focus(),o.setSelectionRange(d,d)}},10)},inputNumberLimit(i,n=null,r=null){if(i===null||typeof i!="object")return;i&&typeof i.target=="object"&&(i=i.target);let o=null;if(i&&typeof i.$el=="object"?o=i.$el:typeof i.length=="number"&&i.length>0?o=i[0]:i&&(i.nodeType===1||i.tagName)&&(o=i),!o)return;let a=$A(o);if(a.length===0||(o.tagName!="INPUT"&&o.tagName!="TEXTAREA"&&(a.find("input").length===0?a=a.find("textarea"):a=a.find("input")),a.length===0)||(o=a[0],o.tagName!="INPUT"&&o.tagName!="TEXTAREA"))return;let l=parseFloat(a.val());isNaN(l)||(n!==null&&l<n&&(l=n),r!==null&&l>r&&(l=r),a.val(l),o.dispatchEvent(new Event("input")))},iOSKeyboardFixer(){!this.isIos()||(document.body.scrollTop=document.body.scrollTop+1,document.body.scrollTop=document.body.scrollTop-1)},loadScript(i){return new Promise(async(n,r)=>{if(i=$A.originUrl(i),this.rightExists(i,".css"))return n(this.loadCss(i));let o=0;for(;this.__loadScript[i]==="loading";)if(await new Promise(l=>setTimeout(l,1e3)),o++,o>30)return r("\u52A0\u8F7D\u8D85\u65F6");if(this.__loadScript[i]==="loaded")return n(!1);this.__loadScript[i]="loading";const a=document.createElement("script");a.type="text/javascript",a.readyState?a.onreadystatechange=()=>{(a.readyState==="loaded"||a.readyState==="complete")&&(a.onreadystatechange=null,this.__loadScript[i]="loaded",n(!0))}:(a.onload=()=>{this.__loadScript[i]="loaded",n(!0)},a.onerror=l=>{this.__loadScript[i]="error",r(l)}),this.rightExists(i,".js")?a.src=i+"?hash="+e.systemInfo.version:a.src=i,document.head?document.head.appendChild(a):document.body.appendChild(a)})},loadScriptS(i){return new Promise(n=>{let r=0;const o=()=>{++r<i.length?this.loadScript(i[r]).finally(o):n()};this.loadScript(i[0]).finally(o)})},__loadScript:{},loadCss(i){return new Promise(async(n,r)=>{if(i=$A.originUrl(i),this.rightExists(i,".js"))return n(this.loadScript(i));let o=0;for(;this.__loadCss[i]==="loading";)if(await new Promise(l=>setTimeout(l,1e3)),o++,o>30)return r("\u52A0\u8F7D\u8D85\u65F6");if(this.__loadCss[i]==="loaded")return n(!1);this.__loadCss[i]="loading";const a=document.createElement("link");a.readyState?a.onreadystatechange=()=>{(a.readyState=="loaded"||a.readyState=="complete")&&(a.onreadystatechange=null,this.__loadCss[i]="loaded",n(!0))}:(a.onload=()=>{this.__loadCss[i]="loaded",n(!0)},a.onerror=l=>{this.__loadCss[i]="error",r(l)}),a.rel="stylesheet",this.rightExists(i,".css")?a.href=i+"?hash="+e.systemInfo.version:a.href=i,document.getElementsByTagName("head").item(0).appendChild(a)})},loadCssS(i){return new Promise(n=>{let r=0;const o=()=>{++r<i.length?this.loadCss(i[r]).finally(o):n()};this.loadCss(i[0]).finally(o)})},__loadCss:{},loadIframe(i,n=0){return new Promise(async(r,o)=>{i=$A.originUrl(i);let a=0;for(;this.__loadIframe[i]==="loading";)if(await new Promise(c=>setTimeout(c,1e3)),a++,a>30)return o("\u52A0\u8F7D\u8D85\u65F6");if(this.__loadIframe[i]==="loaded")return r(!1);this.__loadIframe[i]="loading";const l=document.createElement("iframe");l.style.display="none",l.src=i,l.onload=()=>{this.__loadIframe[i]="loaded",r(!0),n>0&&setTimeout(()=>{document.body.removeChild(l),delete this.__loadIframe[i]},n)},l.onerror=c=>{this.__loadIframe[i]="error",o(c)},document.body.appendChild(l)})},loadIframes(i){return new Promise(n=>{let r=0;const o=()=>{++r<i.length?this.loadIframe(i[r]).finally(o):n()};this.loadIframe(i[0]).finally(o)})},__loadIframe:{},bytesToSize(i){if(i===0)return"0 B";let n=1024,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(i)/Math.log(n));return typeof r[o]=="undefined"?"0 B":$A.runNum(i/Math.pow(n,o),2)+" "+r[o]},html2Escape(i){return!i||i==""?"":i.replace(/[<>&"]/g,function(n){return{"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;"}[n]})},getDomain(i){const n=/http(s)?:\/\/([^\/]+)/i,r=`${i}`.match(n);return(r!=null&&r.length>0?r[2]:"").toLowerCase()},getProtocol(i){try{return new URL(i).protocol}catch{return""}},scrollToView(i,n){if(!!i){if(typeof n=="undefined"||n===!0?n={block:"start",inline:"nearest"}:n===!1&&(n={block:"end",inline:"nearest"}),typeof n.scrollMode!="undefined"&&typeof e.scrollIntoView=="function"){e.scrollIntoView(i,n);return}try{i.scrollIntoView(n)}catch{typeof e.scrollIntoView=="function"&&e.scrollIntoView(i,n)}}},scrollIntoViewIfNeeded(i=null,n=!1){if(!!i)if(!n&&typeof i.scrollIntoViewIfNeeded=="function")i.scrollIntoViewIfNeeded();else{const r={block:"nearest",inline:"nearest"};n&&(r.behavior="smooth"),$A.scrollToView(i,r)}},addClassWithTimeout(i,n,r){!i||!n||!r||(i.classList.add(n),setTimeout(()=>{!i||i.classList.remove(n)},r))},scrollIntoAndShake(i,n=!0){if(!i)return;(Array.isArray(i)?i:[i]).forEach(o=>{o&&(n&&$A.scrollIntoViewIfNeeded(o),$A.addClassWithTimeout(o,"common-shake",800))})},scaleToScale(i,n,r,o=t){const a=r,l=typeof o=="undefined"?r:o;let c,d;return i>0&&n>0?(i/n>=a/l?i>a?(c=a,d=n*a/i):(c=i,d=n):n>l?(d=l,c=i*l/n):(c=i,d=n),{width:parseInt(c),height:parseInt(d)}):{width:i,height:n}},scrollPreventThrough(i){if(!i||i.getAttribute("data-prevent-through")==="yes")return;i.setAttribute("data-prevent-through","yes");let n=null;i.addEventListener("touchstart",function(r){n=Math.floor(r.targetTouches[0].clientY)}),i.addEventListener("touchmove",function(r){let o=Math.floor(r.targetTouches[0].clientY),a=i.scrollTop,l=i.scrollHeight,c=i.clientHeight;(a<=0&&o-n>0||a>=l-c&&o-n<0)&&r.preventDefault()},!1)},getAttr(i,n,r=""){return i?i.getAttribute(n):r},sortObject(i,n=[]){return Object.keys(i).sort().reduce(function(r,o){return n.includes(o)||(r[o]=i[o]),r},{})},extractImageParameter(i){const n=i.match(/\s+src=(["'])([^'"]*)\1/i),r=i.match(/\s+width=(["'])([^'"]*)\1/i),o=i.match(/\s+height=(["'])([^'"]*)\1/i);return{src:n?n[2]:null,width:$A.runNum(r?r[2]:0),height:$A.runNum(o?o[2]:0),original:i}},extractImageParameterAll(i){return(i.match(/<img\s+[^>]*?>/g)||[]).map(r=>this.extractImageParameter(r))},cutString(i,n,r=0,o="..."){const a=[...i];if(n<0&&(n=Math.max(a.length+n,0)),r<0&&(r=Math.max(a.length+r,0)),n===0||r>=a.length)return"";const l=a.slice(r,r+n);return r+n<a.length?l.join("")+o:l.join("")},getLastSameElements(i,n){return i.slice(-i.filter((r,o)=>r===n[n.length-i.length+o]).length)},async findElementWithRetry(i,n=3,r=500){for(let o=1;o<=n;o++){const a=i();if(a)return a;o<n&&await new Promise(l=>setTimeout(l,r))}throw new Error(`Element not found after ${n} attempts`)},async waitForCondition(i,n=300,r=3e3){const o=Date.now();for(;Date.now()-o<r;){if(i())return!0;await new Promise(a=>setTimeout(a,n))}throw new Error("\u7B49\u5F85\u6761\u4EF6\u8D85\u65F6")},repeatWithCount(i,n,r=0,o=0){if(typeof i!="function")return()=>{};let a=0,l=null;const c=()=>{l&&(clearTimeout(l),l=null)},d=()=>{if(a>=o){c();return}try{if(i(a)===!0){c();return}}catch(h){c(),console.error("Error in callback function:",h);return}a++,l=setTimeout(d,r)};return l=setTimeout(d,n),c},generateBase64Image(i,n=1,r=0,o=0){return new Promise(a=>{let l=document.createElement("canvas"),c=l.getContext("2d"),d=new Image;d.crossOrigin="Anonymous",d.onload=()=>{let h=d.width,u=d.height;if((r>0||o>0)&&h>0&&u>0){const g=h/u;if(r>0&&o>0){if(h>r||u>o){const _=r/h,v=o/u,y=Math.min(_,v);h=Math.round(h*y),u=Math.round(u*y)}}else r>0&&h>r?(h=r,u=Math.round(h/g)):o>0&&u>o&&(u=o,h=Math.round(u*g))}l.width=h,l.height=u,c.drawImage(d,0,0,h,u);let p="png";$A.rightExists(i,"jpg")||$A.rightExists(i,"jpeg")?p="jpeg":$A.rightExists(i,"webp")?p="webp":$A.rightExists(i,"git")&&(p="git"),a(l.toDataURL(`image/${p}`,n)),l=null,d=null,c=null},d.src=i})},isFullScreen(){const i=$A(e).width(),n=$A(e).height(),r=e.screen.width,o=e.screen.height,a=i>n?i:n,l=i>n?n:i,c=r>o?r:o,d=r>o?o:r,h=Math.abs(a-c),u=Math.abs(l-d);return h<=1&&u<=1}}),s.extend({__IDBTimer:{},async IDBTest(){try{return $A.isIos()&&await ce.setItem("__test__",$A.dayjs().valueOf()),$A.openLog&&console.log("IDBTest OK"),!0}catch(i){return $A.openLog?(console.error("IDBTest Error: ",i),$A.modalWarning({content:i.message,onOk:()=>{$A.reloadUrl()}})):$A.reloadUrl(),!1}},IDBSave(i,n,r=100){typeof this.__IDBTimer[i]!="undefined"&&(clearTimeout(this.__IDBTimer[i]),delete this.__IDBTimer[i]),this.__IDBTimer[i]=setTimeout(async o=>{await ce.setItem(i,n),delete this.__IDBTimer[i]},r)},IDBDel(i){return ce.removeItem(i)},IDBSet(i,n){return ce.setItem(i,n)},IDBRemove(i){return ce.removeItem(i)},async IDBClear(i=[]){if(!i||!i.length)return ce.clear();const n={};await Promise.all(i.map(async r=>{n[r]=await this.IDBValue(r)})),await ce.clear(),await Promise.all(Object.entries(n).filter(([,r])=>r!==null&&r!==t).map(([r,o])=>this.IDBSet(r,o)))},IDBValue(i){return ce.getItem(i)},async IDBString(i,n=""){const r=await this.IDBValue(i);return typeof r=="string"||typeof r=="number"?r:n},async IDBInt(i,n=0){const r=await this.IDBValue(i);return typeof r=="number"?r:n},async IDBBoolean(i,n=!1){const r=await this.IDBValue(i);return typeof r=="boolean"?r:n},async IDBArray(i,n=[]){const r=await this.IDBValue(i);return this.isArray(r)?r:n},async IDBJson(i,n={}){const r=await this.IDBValue(i);return this.isJson(r)?r:n}}),s.extend({setStorage(i,n){return this.__operationStorage(i,n)},getStorageValue(i){return this.__operationStorage(i)},getStorageString(i,n=""){let r=this.__operationStorage(i);return typeof r=="string"||typeof r=="number"?r:n},getStorageInt(i,n=0){let r=this.__operationStorage(i);return typeof r=="number"?r:n},getStorageBoolean(i,n=!1){let r=this.__operationStorage(i);return typeof r=="boolean"?r:n},getStorageArray(i,n=[]){let r=this.__operationStorage(i);return this.isArray(r)?r:n},getStorageJson(i,n={}){let r=this.__operationStorage(i);return this.isJson(r)?r:n},existsStorage(i){return this.__operationStorage(i)!==null},__operationStorage(i,n){if(!i)return;let r="__state__";const o=i.split(".");if(o.length>1){const a=o.shift();r="__state:"+a+"__",i=o.join(".")}if(typeof n=="undefined")return this.__loadFromlLocal(i,null,r);this.__savaToLocal(i,n,r)},__savaToLocal(i,n,r){try{typeof r=="undefined"&&(r="__seller__");let o=e.localStorage[r];o?o=JSON.parse(o):o={},o[i]=n,e.localStorage[r]=JSON.stringify(o)}catch{}},__loadFromlLocal(i,n,r){try{typeof r=="undefined"&&(r="__seller__");let o=e.localStorage[r];return!o||(o=JSON.parse(o),!o||typeof o[i]=="undefined")?n:o[i]}catch{return n}}}),s.extend({setSessionStorage(i,n){return this.__operationSessionStorage(i,n)},getSessionStorageValue(i){return this.__operationSessionStorage(i)},getSessionStorageString(i,n=""){let r=this.__operationSessionStorage(i);return typeof r=="string"||typeof r=="number"?r:n},getSessionStorageInt(i,n=0){let r=this.__operationSessionStorage(i);return typeof r=="number"?r:n},__operationSessionStorage(i,n){if(!i)return;let r="__state__";if(i.substring(0,5)==="cache"&&(r="__state:"+i+"__"),typeof n=="undefined")return this.__loadFromSession(i,"",r);this.__savaToSession(i,n,r)},__savaToSession(i,n,r){try{typeof r=="undefined"&&(r="__seller__");let o=e.sessionStorage.getItem(r);o?o=JSON.parse(o):o={},o[i]=n,e.sessionStorage.setItem(r,JSON.stringify(o))}catch{}},__loadFromSession(i,n,r){try{typeof r=="undefined"&&(r="__seller__");let o=e.sessionStorage.getItem(r);return!o||(o=JSON.parse(o),!o||typeof o[i]=="undefined")?n:o[i]}catch{return n}}}),s.extend({serializeObject(i,n){if(typeof i=="string")return i;let r=[],o="&";n=n||[];let a;function l(d){if(n.length>0){let h="";for(let u=0;u<n.length;u++)u===0?h+=n[u]:h+="["+encodeURIComponent(n[u])+"]";return h+"["+encodeURIComponent(d)+"]"}else return encodeURIComponent(d)}function c(d){return encodeURIComponent(d)}for(let d in i)if(i.hasOwnProperty(d)){let h;if(Array.isArray(i[d])){h=[];for(let u=0;u<i[d].length;u++)!Array.isArray(i[d][u])&&typeof i[d][u]=="object"?(a=n.slice(),a.push(d),a.push(u+""),h.push(s.serializeObject(i[d][u],a))):h.push(l(d)+"[]="+c(i[d][u]));h.length>0&&r.push(h.join(o))}else i[d]===null?r.push(l(d)+"="):typeof i[d]=="object"?(a=n.slice(),a.push(d),h=s.serializeObject(i[d],a),h!==""&&r.push(h)):typeof i[d]!="undefined"&&i[d]!==""?r.push(l(d)+"="+c(i[d])):i[d]===""&&r.push(l(d))}return r.join(o)},globalAjaxOptions:{},ajaxSetup(i){i.type&&(i.method=i.type),s.each(i,function(n,r){s.globalAjaxOptions[n]=r})},_jsonpRequests:0,ihttp(i){let n={method:"GET",data:!1,async:!0,cache:!0,user:"",password:"",headers:{},xhrFields:{},statusCode:{},processData:!0,dataType:"text",contentType:"application/x-www-form-urlencoded",timeout:0};const r=["beforeSend","error","complete","success","statusCode"];i.type&&(i.method=i.type),s.each(s.globalAjaxOptions,function(p,g){r.indexOf(p)<0&&(n[p]=g)});function o(p,g,_){let v=arguments;p&&s(document).trigger(p,g),_&&(_ in s.globalAjaxOptions&&s.globalAjaxOptions[_](v[3],v[4],v[5],v[6]),i[_]&&i[_](v[3],v[4],v[5],v[6]))}s.each(n,function(p,g){p in i||(i[p]=g)}),i.url||(i.url=e.location.toString());let a=i.url.indexOf("?")>=0?"&":"?",l=i.method.toUpperCase();if((l==="GET"||l==="HEAD"||l==="OPTIONS"||l==="DELETE")&&i.data){let p;typeof i.data=="string"?i.data.indexOf("?")>=0?p=i.data.split("?")[1]:p=i.data:p=s.serializeObject(i.data),p.length&&(i.url+=a+p,a==="?"&&(a="&"))}if(i.dataType==="json"&&i.url.indexOf("callback=")>=0){let p="__jsonp_"+Date.now()+s._jsonpRequests++,g,_=i.url.split("callback="),v=_[0]+"callback="+p;if(_[1].indexOf("&")>=0){let w=_[1].split("&").filter(function(b){return b.indexOf("=")>0}).join("&");w.length>0&&(v+="&"+w)}let y=document.createElement("script");y.type="text/javascript",y.onerror=function(){clearTimeout(g),o(t,t,"error",null,"scripterror"),o("ajaxComplete ajax:complete",{scripterror:!0},"complete",null,"scripterror")},y.src=v,e[p]=function(w){clearTimeout(g),o(t,t,"success",w),y.parentNode.removeChild(y),y=null,delete e[p]},document.querySelector("head").appendChild(y),i.timeout>0&&(g=setTimeout(function(){y.parentNode.removeChild(y),y=null,o(t,t,"error",null,"timeout")},i.timeout));return}(l==="GET"||l==="HEAD"||l==="OPTIONS"||l==="DELETE")&&i.cache===!1&&(i.url+=a+"_nocache="+Date.now());const c=new XMLHttpRequest,d=Date.now();c.requestUrl=i.url,c.requestParameters=i,c.open(l,i.url,i.async,i.user,i.password);let h=null;if((l==="POST"||l==="PUT"||l==="PATCH")&&i.data)if(i.processData)if([ArrayBuffer,Blob,Document,FormData].indexOf(i.data.constructor)>=0)h=i.data;else{let g="---------------------------"+Date.now().toString(16);i.contentType==="multipart/form-data"?c.setRequestHeader("Content-Type","multipart/form-data; boundary="+g):c.setRequestHeader("Content-Type",i.contentType),h="";let _=s.serializeObject(i.data);if(i.contentType==="multipart/form-data"){g="---------------------------"+Date.now().toString(16),_=_.split("&");let v=[];for(let y=0;y<_.length;y++)v.push('Content-Disposition: form-data; name="'+_[y].split("=")[0]+`"\r
\r
`+_[y].split("=")[1]+`\r
`);h="--"+g+`\r
`+v.join("--"+g+`\r
`)+"--"+g+`--\r
`}else h=_}else h=i.data;i.headers&&s.each(i.headers,function(p,g){c.setRequestHeader(p,g)}),typeof i.crossDomain=="undefined"&&(i.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(i.url)&&RegExp.$2!==e.location.host),i.crossDomain||c.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.xhrFields&&s.each(i.xhrFields,function(p,g){c[p]=g});let u;return c.onload=function(p){if(u&&clearTimeout(u),c.status>=200&&c.status<300||c.status===0){const g=Date.now()-d,_=C=>{try{return c.getResponseHeader(C)}catch{return null}},v=_("Date"),y=_("Last-Modified"),w=_("Age");c.timeData={serverDate:v,lastModified:y,age:w,duration:g};let b;if(i.dataType==="json")try{b=JSON.parse(c.responseText),o("ajaxSuccess ajax:success",{xhr:c},"success",b,c.status,c)}catch(C){console.error(C),o("ajaxError ajax:error",{xhr:c,parseerror:!0},"error",c,"parseerror")}else b=c.responseType==="text"||c.responseType===""?c.responseText:c.response,o("ajaxSuccess ajax:success",{xhr:c},"success",b,c.status,c)}else o("ajaxError ajax:error",{xhr:c},"error",c,c.status);i.statusCode&&(s.globalAjaxOptions.statusCode&&s.globalAjaxOptions.statusCode[c.status]&&s.globalAjaxOptions.statusCode[c.status](c),i.statusCode[c.status]&&i.statusCode[c.status](c)),o("ajaxComplete ajax:complete",{xhr:c},"complete",c,c.status)},c.onerror=function(p){u&&clearTimeout(u),o("ajaxError ajax:error",{xhr:c},"error",c,c.status),o("ajaxComplete ajax:complete",{xhr:c,error:!0},"complete",c,"error")},o("ajaxStart ajax:start",{xhr:c},"start",c),o(t,t,"beforeSend",c),i.timeout>0&&(c.onabort=function(){u&&clearTimeout(u)},u=setTimeout(function(){c.abort(),o("ajaxError ajax:error",{xhr:c,timeout:!0},"error",c,"timeout"),o("ajaxComplete ajax:complete",{xhr:c,timeout:!0},"complete",c,"timeout")},i.timeout)),c.send(h),c}}),s.extend({ajaxc(i){if(!i||typeof i.url=="undefined")return!1;typeof i.data=="undefined"&&(i.data={}),typeof i.cache=="undefined"&&(i.cache=!1),typeof i.method=="undefined"&&(i.method="GET"),typeof i.timeout=="undefined"&&(i.timeout=3e4),typeof i.dataType=="undefined"&&(i.dataType="json"),typeof i.before=="undefined"&&(i.before=()=>{}),typeof i.complete=="undefined"&&(i.complete=()=>{}),typeof i.after=="undefined"&&(i.after=()=>{}),typeof i.success=="undefined"&&(i.success=()=>{}),typeof i.error=="undefined"&&(i.error=()=>{}),typeof i.header=="undefined"&&(i.header={});const n=$A.randomString(16);i.before(),$A.__ajaxList.push({key:n,id:i.requestId||null,url:i.url,request:$A.ihttp({url:i.url,data:i.data,cache:i.cache,headers:i.header,method:i.method.toUpperCase(),contentType:"OPTIONS",crossDomain:!0,dataType:i.dataType,timeout:i.timeout,success:function(r,o,a){$A.__ajaxList=$A.__ajaxList.filter(l=>l.key!==n),i.complete(),i.success(r,o,a),i.after(!0)},error:function(r,o){$A.__ajaxList=$A.__ajaxList.filter(a=>a.key!==n),i.complete(),i.error(r,o),i.after(!1)}})})},ajaxcCancel(i){if(!i)return 0;let n=0;return $A.__ajaxList.forEach((r,o)=>{r.id===i&&(n++,r.request&&r.request.abort())}),n>0&&($A.__ajaxList=$A.__ajaxList.filter(r=>r.id!==i)),n},__ajaxList:[]}),we.extend(Cr),we.extend(Sr),s.extend({dayjs(i=t){return/^\d{13,}$/.test(i)?we(Number(i)):/^\d{10,}$/.test(i)?we(Number(i)*1e3):(i===null&&(i=0),we(i))},daytz(i=t){const n=$A.dayjs(i);return $A.timezoneDifference?n.subtract($A.timezoneDifference,"hour"):n},updateTimezone(i=t){if(typeof i!="undefined"&&($A.timezoneName=i),!$A.timezoneName)return $A.timezoneDifference=0;const n=$A.daytz().startOf("hour"),r=n.tz($A.timezoneName);return $A.timezoneDifference=n.startOf("hour").diff(r.format("YYYY-MM-DD HH:mm:ss"),"hour")},timezoneName:null,timezoneDifference:0,newDateString(i,n="YYYY-MM-DD HH:mm:ss",r=null){if(i===null)return i;if(i instanceof we||i instanceof Date)return $A.dayjs(i).format(n);if($A.isDateString(i))return r===null||r==="times"||/_at$/i.test(r)?$A.dayjs(i).format(n):i;if($A.isJson(i)){i=Object.assign({},i);for(let o in i)!i.hasOwnProperty(o)||(i[o]=$A.newDateString(i[o],n,o))}else $A.isArray(i)&&(i=Object.assign([],i),i.forEach((o,a)=>{i[a]=$A.newDateString(o,n,r)}));return i},newTimestamp(i){if(i===null)return i;if(i instanceof we||i instanceof Date||$A.isDateString(i))i=$A.dayjs(i).unix();else if($A.isJson(i)){i=Object.assign({},i);for(let n in i)!i.hasOwnProperty(n)||(i[n]=$A.newTimestamp(i[n]))}else $A.isArray(i)&&(i=Object.assign([],i),i.forEach((n,r)=>{i[r]=$A.newTimestamp(n)}));return i},isDateString(i){return typeof i=="string"&&/^\d{4}[/-]\d{2}[/-]\d{2}(\s+\d{2}(:\d{2}(:\d{2})?)?)?$/i.test(i)},secondsToTime(i){let n="";i<0&&(n="-",i=-i);let r;const o=Math.floor(i/86400),a=Math.floor(i%86400/3600),l=Math.floor(i%86400%3600/60),c=Math.floor(i%86400%3600%60);return o>0?a>0?r=o+"d,"+$A.zeroFill(a,2)+"h":l>0?r=o+"d,"+$A.zeroFill(l,2)+"min":c>0?r=o+"d,"+$A.zeroFill(c,2)+"s":r=o+"d":a>0?r=$A.zeroFill(a,2)+":"+$A.zeroFill(l,2)+":"+$A.zeroFill(c,2):l>0?r=$A.zeroFill(l,2)+":"+$A.zeroFill(c,2):c>0&&(r=$A.zeroFill(c,2)+"s"),n+r},timeFormat(i){const n=$A.daytz(),r=$A.dayjs(i);return n.format("YYYY-MM-DD")===r.format("YYYY-MM-DD")?r.format("HH:mm"):n.clone().subtract(1,"day").format("YYYY-MM-DD")===r.format("YYYY-MM-DD")?`${$A.L("\u6628\u5929")} ${r.format("HH:mm")}`:n.year()===r.year()?r.format("MM-DD"):r.format("YYYY-MM-DD")||""},countDownFormat(i,n){i=$A.daytz(i),n=$A.dayjs(n);const r=n.diff(i,"second");return r==0?"0s":Math.abs(r)<86400*7?$A.secondsToTime(r):$A.timeFormat(n)}}),s.extend({sortDay(i,n){return i===n?0:($A.dayjs(i).valueOf()||0)-($A.dayjs(n).valueOf()||0)},sortFloat(i,n){return i===n?0:(parseFloat(i)||0)-(parseFloat(n)||0)}}),e.$A=s})(window,window.$=window.jQuery=er);(function(e){const s=e.$A;s.extend({eeuiModule(t="eeui"){return typeof requireModuleJs=="function"?requireModuleJs(t):null},eeuiModulePromise(t="eeui"){return new Promise((i,n)=>{try{const r=$A.eeuiModule(t);if(!r)return n({msg:"module not found"});i(r)}catch(r){n({msg:r.message})}})},eeuiAppVersion(){var t;return(t=$A.eeuiModule())==null?void 0:t.getVersion()},eeuiAppLocalVersion(){var t;return(t=$A.eeuiModule())==null?void 0:t.getLocalVersion()},eeuiAppAlert(t,i){var n;typeof i!="function"&&(i=r=>{}),(n=$A.eeuiModule())==null||n.alert(t,i)},eeuiAppToast(t){var i;(i=$A.eeuiModule())==null||i.toast(t)},eeuiAppRewriteUrl(t){var i;return(i=$A.eeuiModule())==null?void 0:i.rewriteUrl(t)},eeuiAppGetPageInfo(t){var i;return(i=$A.eeuiModule())==null?void 0:i.getPageInfo(t||"")},eeuiAppOpenPage(t,i){var n;typeof i!="function"&&(i=r=>{}),typeof t.callback=="function"&&(i=t.callback,delete t.callback),(n=$A.eeuiModule())==null||n.openPage(Object.assign({softInputMode:"resize"},t),i)},eeuiAppOpenWeb(t){var i;(i=$A.eeuiModule())==null||i.openWeb(t)},eeuiAppSetPageBackPressed(t,i){var n;typeof i!="function"&&(i=r=>{}),(n=$A.eeuiModule())==null||n.setPageBackPressed(t,i)},eeuiAppGoDesktop(){var t;(t=$A.eeuiModule())==null||t.goDesktop()},eeuiAppKeepScreenOn(){var t;(t=$A.eeuiModule())==null||t.keepScreenOn()},eeuiAppKeepScreenOff(){var t;(t=$A.eeuiModule())==null||t.keepScreenOff()},eeuiAppKeyboardHide(){var t;(t=$A.eeuiModule())==null||t.keyboardHide()},eeuiAppSendMessage(t){var i;(i=$A.eeuiModule("webview"))==null||i.sendMessage(t)},eeuiAppSetUrl(t){var i;(i=$A.eeuiModule("webview"))==null||i.setUrl(t)},eeuiAppGetWebviewSnapshot(t){var i;(i=$A.eeuiModule("webview"))==null||i.createSnapshot(t)},eeuiAppShowWebviewSnapshot(){var t;(t=$A.eeuiModule("webview"))==null||t.showSnapshot()},eeuiAppHideWebviewSnapshot(){var t;(t=$A.eeuiModule("webview"))==null||t.hideSnapshot()},eeuiAppScan(t){var i;(i=$A.eeuiModule())==null||i.openScaner({},n=>{switch(n.status){case"success":t(n.text);break}})},eeuiAppCheckUpdate(){var t;(t=$A.eeuiModule())==null||t.checkUpdate()},eeuiAppGetThemeName(){var t;return(t=$A.eeuiModule())==null?void 0:t.getThemeName()},eeuiAppKeyboardStatus(){var t;return(t=$A.eeuiModule())==null?void 0:t.keyboardStatus()},eeuiAppSetVariate(t,i){var n;(n=$A.eeuiModule())==null||n.setVariate(t,i)},eeuiAppGetVariate(t,i=""){var n;return(n=$A.eeuiModule())==null?void 0:n.getVariate(t,i)},eeuiAppSetCachesString(t,i,n=0){var r;(r=$A.eeuiModule())==null||r.setCachesString(t,i,n)},eeuiAppGetCachesString(t,i=""){var n;return(n=$A.eeuiModule())==null?void 0:n.getCachesString(t,i)},eeuiAppSetHapticBackEnabled(t){$A.eeuiModule("webview").setHapticBackEnabled(t)},eeuiAppSetDisabledUserLongClickSelect(t){const i=$A.eeuiModule("webview");if($A.__disabledUserLongClickSelectTimer&&clearTimeout($A.__disabledUserLongClickSelectTimer),!/^\d+$/.test(t)){i.setDisabledUserLongClickSelect(t);return}i.setDisabledUserLongClickSelect(!0),$A.__disabledUserLongClickSelectTimer=setTimeout(()=>{$A.__disabledUserLongClickSelectTimer=null,i.setDisabledUserLongClickSelect(!1)},t)},__disabledUserLongClickSelectTimer:null,eeuiAppCopyText(t){var i;(i=$A.eeuiModule())==null||i.copyText(t)},eeuiAppSetScrollDisabled(t){var i;t?$A.__setScrollDisabledNum++:$A.__setScrollDisabledNum--,(i=$A.eeuiModule("webview"))==null||i.setScrollEnabled($A.__setScrollDisabledNum<=0)},__setScrollDisabledNum:0,eeuiAppShakeToEditEnabled(t){var i,n;t?(i=$A.eeuiModule())==null||i.shakeToEditOn():(n=$A.eeuiModule())==null||n.shakeToEditOff()},eeuiAppGetLatestPhoto(t=60,i=10){return new Promise(async(n,r)=>{try{const o=await $A.eeuiModule(),a=i>0?setTimeout(()=>{r({msg:"timeout"})},i*1e3):null;o.getLatestPhoto(l=>{if(a&&clearTimeout(a),l.status!=="success"||l.thumbnail.width<10||!l.thumbnail.base64||l.original.width<10||!l.original.path)return r({msg:l.error||"no photo"});if(t>0&&l.created+t<$A.dayjs().unix())return r({msg:"photo expired"});if($A.__latestPhotoCreated&&$A.__latestPhotoCreated===l.created)return r({msg:"photo expired"});$A.__latestPhotoCreated=l.created,n(l)})}catch(o){r(o)}})},__latestPhotoCreated:null,eeuiAppUploadPhoto(t,i=30){return new Promise(async(n,r)=>{try{const o=await $A.eeuiModulePromise(),a=i>0?setTimeout(()=>{r({msg:"timeout"})},i*1e3):null;if(!$A.isJson(t))return r({msg:"params error"});let l=null;typeof t.onReady!="undefined"&&(l=t.onReady,delete t.onReady),o.uploadPhoto(t,c=>{if(c.status==="ready"){typeof l=="function"&&l(c.id);return}if(a&&clearTimeout(a),c.status!=="success")return r({msg:c.error||"upload failed"});if(c.data.ret!==1)return r({msg:c.data.msg||"upload failed"});n(c.data.data)})}catch(o){r(o)}})},eeuiAppCancelUploadPhoto(t){return new Promise(async(i,n)=>{try{(await $A.eeuiModulePromise()).cancelUploadPhoto(t,o=>{if(o.status!=="success")return n({msg:o.error||"cancel failed"});i(o)})}catch(r){n(r)}})},eeuiAppGetSafeAreaInsets(){return new Promise(async(t,i)=>{try{(await $A.eeuiModulePromise()).getSafeAreaInsets(r=>{if(r.status!=="success")return i({msg:r.error||"get failed"});t(r)})}catch(n){i(n)}})},eeuiAppConvertLanguage(){return{zh:"zh-Hans","zh-CHT":"zh-Hant"}[M]||M},eeuiAppGetDeviceInfo(){return new Promise(async(t,i)=>{try{(await $A.eeuiModulePromise()).getDeviceInfo(r=>{if(r.status!=="success")return i({msg:r.error||"get failed"});t(r)})}catch(n){i(n)}})},eeuiAppIsWindowed(){return new Promise(async t=>{try{const i=await $A.eeuiModulePromise();t(i.isFullscreen()===!1||i.isFullscreen()===0)}catch{t(!1)}})}}),e.$A=s})(window);const on={dashboard:{route:{name:"manage-dashboard"}},messenger:{route:{name:"manage-messenger"}},calendar:{route:{name:"manage-calendar"}},files:{route:{name:"manage-file"}},application:{route:{name:"manage-application"}},project_list:{route:{name:"manage-project"}},setting_personal:{route:{name:"manage-setting-personal"}},setting_checkin:{route:{name:"manage-setting-checkin"}},setting_language:{route:{name:"manage-setting-language"}},setting_theme:{route:{name:"manage-setting-theme"}},setting_keyboard:{route:{name:"manage-setting-keyboard"}},setting_license:{route:{name:"manage-setting-license"}},setting_password:{route:{name:"manage-setting-password"}},setting_email:{route:{name:"manage-setting-email"}},setting_system:{route:{name:"manage-setting-system",query:{tab:"setting"}}},setting_device:{route:{name:"manage-setting-device"}},setting_version:{route:{name:"manage-setting-version"}},setting_delete:{route:{name:"manage-setting-delete"}},setting_system_task_priority:{route:{name:"manage-setting-system",query:{tab:"taskPriority"}}},setting_system_column_template:{route:{name:"manage-setting-system",query:{tab:"columnTemplate"}}},setting_system_file:{route:{name:"manage-setting-system",query:{tab:"fileSetting"}}}};function an(e){return Object.prototype.hasOwnProperty.call(on,e)}function ln(e){var t;const s=on[e];return s&&s.route&&typeof window!="undefined"&&((t=window.$A)==null?void 0:t.goForward)?(window.$A.goForward({name:s.route.name,...s.route.params?{params:{...s.route.params}}:{},...s.route.query?{query:{...s.route.query}}:{}}),!0):!1}typeof window!="undefined"&&(window.__openDeepLink=e=>ln(e));const q={mdi:null,mds:null,processAiAction:e=>e.replace(/:::ai-action\{([^}]+)\}:::/g,(s,t)=>{var y;const i={};t.replace(/(\w+)="([^"]+)"/g,(w,b,C)=>{i[b]=C});const n=i.type||"",r=i.status||"";if(r){const b=((y={description:{applied:`\u2713 ${$A.L("\u5DF2\u91C7\u7EB3")}`,dismissed:`\u2717 ${$A.L("\u5DF2\u5FFD\u7565")}`},subtasks:{applied:`\u2713 ${$A.L("\u5DF2\u521B\u5EFA")}`,dismissed:`\u2717 ${$A.L("\u5DF2\u5FFD\u7565")}`},assignee:{applied:`\u2713 ${$A.L("\u5DF2\u6307\u6D3E")}`,dismissed:`\u2717 ${$A.L("\u5DF2\u5FFD\u7565")}`},similar:{applied:`\u2713 ${$A.L("\u5DF2\u5173\u8054")}`,dismissed:`\u2717 ${$A.L("\u5DF2\u5FFD\u7565")}`}}[n])==null?void 0:y[r])||(r==="applied"?`\u2713 ${$A.L("\u5DF2\u91C7\u7EB3")}`:`\u2717 ${$A.L("\u5DF2\u5FFD\u7565")}`);return`<span class="ai-status ${r==="applied"?"ai-status-applied":"ai-status-dismissed"}">${b}</span>`}const o=i.task||"",a=i.msg||"",l=i.userid||"",c=i.related||"",d={description:[$A.L("\u91C7\u7EB3\u63CF\u8FF0"),$A.L("\u5FFD\u7565")],subtasks:[$A.L("\u521B\u5EFA\u5B50\u4EFB\u52A1"),$A.L("\u5FFD\u7565")],assignee:[$A.L("\u6307\u6D3E"),$A.L("\u5FFD\u7565")],similar:[$A.L("\u5173\u8054"),$A.L("\u5FFD\u7565")]},[h,u]=d[n]||[$A.L("\u91C7\u7EB3"),$A.L("\u5FFD\u7565")];let p=[];l&&p.push(`userid=${l}`),c&&p.push(`related=${c}`);const g=p.length>0?"?"+p.join("&"):"",_=`dootask://ai-apply/${n}/${o}/${a}${g}`,v=`dootask://ai-dismiss/${n}/${o}/${a}${g}`;return`<span class="ai-action-buttons"><a href="${_}" class="ai-btn ai-btn-apply">\u2713 ${h}</a> <a href="${v}" class="ai-btn ai-btn-dismiss">\u2717 ${u}</a></span>`}),processDeepLinks:e=>e.replace(/\[([^\]\n]+)\]\(dootask:\/\/link\/([a-z_]+)(?:\?[^)\s]*)?\)/g,(s,t,i)=>{if(!an(i))return t;const n=t.replace(/[&<>"]/g,r=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"})[r]);return`<a href="dootask://link/${i}" class="ai-deeplink-chip">${n}</a>`}),formatMsg:e=>{const s=e.match(/<body[^>]*>([\s\S]*?)<\/body>/i);s&&(e=s[1]),e=e.replace(/<(link|script|style)[^>]*>[\s\S]*?<\/\1>|<(link|script|style)[^>]*\/?>/gi,"");const t=/<img\s+[^>]*?>/g,i=e.match(t);if(i){const n={};i.forEach(r=>{n[r]=`<div class="no-size-image-box">${r}</div>`});for(const[r,o]of Object.entries(n))e=e.replace(r,o)}return e=e.replace(/<a\s+([^>]*)>/gi,(n,r)=>r.includes("target=")?n.replace(/target=(['"])[^'"]*\1/i,'target="_blank"'):`<a ${r} target="_blank" rel="noopener noreferrer">`),e},highlightBlock:(e,s="")=>`<pre class="code-block-wrapper"><div class="code-block-header"><span class="code-block-header__lang">${s}</span><span class="code-block-header__copy">${$A.L("\u590D\u5236")}</span></div><code class="hljs code-block-body ${s}">${e}</code></pre>`,extractTextWithDOMParser(e){try{const t=new DOMParser().parseFromString(e,"text/html");let i="";const n=document.createTreeWalker(t.body||t.documentElement,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:function(o){if(o.nodeType===Node.TEXT_NODE)return NodeFilter.FILTER_ACCEPT;if(o.nodeType===Node.ELEMENT_NODE){const a=o.tagName.toLowerCase();if(["p","div","br","h1","h2","h3","h4","h5","h6"].includes(a))return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP}});let r;for(;r=n.nextNode();)if(r.nodeType===Node.TEXT_NODE)i+=r.textContent;else{const o=r.tagName.toLowerCase();["p","div","h1","h2","h3","h4","h5","h6"].includes(o)?i&&!i.endsWith(`
`)&&(i+=`
`):o==="br"&&(i+=`
`)}return i.trim()}catch{return e.replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'").trim()}},detectMarkdownSyntaxWeight(e){if(!e)return!1;const s=[{regex:/^#{1,6}\s+.+$/m,weight:.4},{regex:/```[\s\S]*?```/,weight:.4},{regex:/\[[^\]]+\]\([^)]+\)/,weight:.3},{regex:/!\[[^\]]*\]\([^)]+\)/,weight:.3},{regex:/\*\*[^*\s][^*]*[^*\s]\*\*/,weight:.2},{regex:/__[^_\s][^_]*[^_\s]__/,weight:.2},{regex:/~~[^~\s][^~]*[^~\s]~~/,weight:.2},{regex:/`[^`\s][^`]*[^`\s]`/,weight:.15},{regex:/^[-*+]\s+.+$/m,weight:.1},{regex:/^\d+\.\s+.+$/m,weight:.1},{regex:/^>\s+.+$/m,weight:.1}];let t=0;return s.forEach(i=>{i.regex.test(e)&&(t+=i.weight)}),t}},ut={escapeHtml(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")},validateInput(e,s){return!e||typeof e!="string"?"":e.length>s?e.substring(0,s)+"...":e},clearEmptyReasoning(e){return e.replace(/:::\s*reasoning\s*[\r\n]*\s*:::/g,"")},initReasoningPlugin(e){e.block.ruler.before("fence","reasoning",(s,t,i,n)=>{const r=s.bMarks[t]+s.tShift[t],o=s.eMarks[t];if(!s.src.slice(r,o).trim().match(/^:::\s*reasoning(?:\s+(\S+))?$/))return!1;if(n)return!0;let c=t+1,d=[];for(;c<i;){const u=s.bMarks[c]+s.tShift[c],p=s.eMarks[c];if(s.src.slice(u,p).trim()===":::")break;d.push(s.getLines(c,c+1,s.tShift[c],!0)),c++}let h=s.push("reasoning_open","div",1);return h.attrs=[["class","apply-reasoning"]],h=s.push("reasoning_label_open","div",1),h.attrs=[["class","reasoning-label"]],h=s.push("text","",0),h.content=$A.L("\u601D\u8003\u8FC7\u7A0B"),s.push("reasoning_label_close","div",-1),h=s.push("reasoning_content_open","div",1),h.attrs=[["class","reasoning-content"]],d.length>0&&s.md.block.parse(d.join(`
`),s.md,s.env,s.tokens),s.push("reasoning_content_close","div",-1),s.push("reasoning_close","div",-1),s.line=c+1,!0})}};function xr(e){const s=/^>\s*<tool-use>Tool:\s*([^<]+)<\/tool-use>\s*$/,t=e.split(`
`),i=[];let n=[];const r=a=>{if(a.length===0)return"";if(a.length===1)return`> <tool-use>Tool: ${a[0]}</tool-use>`;const l=[];let c=a[0],d=1;for(let h=1;h<a.length;h++)a[h]===c?d++:(l.push(d>1?`${c} x ${d}`:c),c=a[h],d=1);return l.push(d>1?`${c} x ${d}`:c),`> <tool-use>Tool: ${l.join(", ")}</tool-use>`};let o=[];for(let a=0;a<t.length;a++){const l=t[a],c=l.match(s);c?(o=[],n.push(c[1].trim())):l.trim()===""&&n.length>0?o.push(l):(n.length>0&&(i.push(r(n)),n=[]),i.push(...o),o=[],i.push(l))}return n.length>0&&i.push(r(n)),i.push(...o),i.join(`
`)}function Pt(e){return e==="..."?'<div class="input-blink"></div>':(q.mdi===null&&(q.mdi=new sn({html:!0,breaks:!0,linkify:!1,typographer:!0,highlight(s,t){if(!!(t&&wt.getLanguage(t))){const n=t!=null?t:"";return q.highlightBlock(wt.highlight(s,{language:n}).value,n)}return q.highlightBlock(wt.highlightAuto(s).value,"")}}),q.mdi.use(rr,{attrs:{target:"_blank",rel:"noopener noreferrer"}}),q.mdi.use(or,{blockClass:"katexmath-block rounded-md p-[10px]",errorColor:" #cc0000"}),ut.initReasoningPlugin(q.mdi)),e=ut.clearEmptyReasoning(e),e=xr(e),e=q.processAiAction(e),e=q.processDeepLinks(e),e=q.mdi.render(e),q.formatMsg(e))}function Tr(e){return q.mds===null&&(q.mds=sn(),ut.initReasoningPlugin(q.mds)),e=ut.clearEmptyReasoning(e),q.mds.render(e)}function Ir(e){if(!e||e==="")return!1;const s=e.replace(/<p>/g,`
`).replace(/(^|\s+)```([\s\S]*)```/gm,"");if(/<\/(strong|s|em|u|ol|ul|li|blockquote|pre|img|a)>/i.test(s)||/<span[^>]+?class="mention"[^>]*?>/i.test(s))return!1;const t=q.extractTextWithDOMParser(e);return q.detectMarkdownSyntaxWeight(t)>=.3}(function(e){const s=e.$A;s.extend({apiUrl(t){if(t=="privacy"){const i=$A.getDomain(e.systemInfo.apiUrl);if(i==""||i=="public")return"https://www.dootask.com/privacy.html";t="../privacy.html"}if(t.substring(0,2)==="//"||t.substring(0,7)==="http://"||t.substring(0,8)==="https://"||t.substring(0,6)==="ftp://"||t.substring(0,1)==="/")return t;for(typeof e.systemInfo.apiUrl=="string"?t=e.systemInfo.apiUrl+t:t=e.location.origin+"/api/"+t;t.indexOf("/../")!==-1;)t=t.replace(/\/(((?!\/).)*)\/\.\.\//,"/");return t},mainUrl(t=null){return t||(t=""),t.substring(0,2)==="//"||t.substring(0,7)==="http://"||t.substring(0,8)==="https://"||t.substring(0,6)==="ftp://"||t.substring(0,1)==="/"?t:$A.apiUrl(`../${t}`)},mainDomain(){return $A.getDomain($A.mainUrl())},removeMainUrlPrefix(t){t=t+"";const i=$A.getDomain(t),n=$A.mainDomain();return i&&n&&i===n?t.replace(/^https?:\/\/[^\/]+/,""):t},originUrl(t){if(t.substring(0,2)==="//"||t.substring(0,7)==="http://"||t.substring(0,8)==="https://"||t.substring(0,6)==="ftp://"||t.substring(0,1)==="/")return t;for(typeof e.systemInfo.origin=="string"?t=e.systemInfo.origin+t:t=e.location.origin+"/"+t;t.indexOf("/../")!==-1;)t=t.replace(/\/(((?!\/).)*)\/\.\.\//,"/");return t},onlinePreviewUrl(t,i){return $A.mainUrl(`online/preview/${t}?key=${i}&version=${e.systemInfo.version}&__=${$A.dayjs().valueOf()}`)},projectParameterTemplate(t){return{project_id:t,menuInit:!1,menuType:"column",chat:!1,showMy:!0,showHelp:!0,showUndone:!0,showCompleted:!1,completedTask:!1}},timeOptionShortcuts(){const t=$A.daytz().startOf("day").toDate();return[{text:$A.L("\u4ECA\u5929"),value(){return[t,$A.daytz().endOf("day").toDate()]}},{text:$A.L("\u660E\u5929"),value(){return[t,$A.daytz().add(1,"day").endOf("day").toDate()]}},{text:$A.L("\u672C\u5468"),value(){return[t,$A.daytz().endOf("week").toDate()]}},{text:$A.L("\u672C\u6708"),value(){return[t,$A.daytz().endOf("month").toDate()]}},{text:$A.L("(*)\u5929",3),value(){return[t,$A.daytz().add(2,"day").endOf("day").toDate()]}},{text:$A.L("(*)\u5929",5),value(){return[t,$A.daytz().add(4,"day").endOf("day").toDate()]}},{text:$A.L("(*)\u5929",7),value(){return[t,$A.daytz().add(6,"day").endOf("day").toDate()]}}]},dialogTags(t){let i=[];return t.type=="group"&&["project","task"].includes(t.group_type)&&$A.isJson(t.group_info)&&(t.group_type=="task"&&t.group_info.complete_at&&i.push({color:"success",text:"\u5DF2\u5B8C\u6210"}),t.group_info.deleted_at?i.push({color:"red",text:"\u5DF2\u5220\u9664"}):t.group_info.archived_at&&i.push({color:"default",text:"\u5DF2\u5F52\u6863"})),i},dialogCompleted(t){return this.dialogTags(t).find(({color:i})=>i=="success")},getDialogNum(t){return t&&((t.silence?0:t.unread)||t.mention||t.mark_unread)||0},getDialogUnread(t,i){return t&&((i||!t.silence?t.unread:0)||t.mark_unread)||0},getDialogMention(t){return(t==null?void 0:t.mention)||0},getMsgTextPreview({type:t,text:i},n=null){if(!i)return"";if(t==="md"){if(i=i.replace(/<\/?tool-use[^>]*>/g,""),i=i.replace(/:::\s*reasoning[\s\S]*?:::/g,""),/:::\s*reasoning\s+/.test(i))return $A.L("\u601D\u8003\u4E2D...");let r="";const o=i.match(/^#{1,2}\s+(.+)/m);o&&(r=o[1].trim()),r?i=r:i=Tr(i)}return i=i.replace(/<img\s+class="emoticon"[^>]*?alt="(\S+)"[^>]*?>/g,"[$1]"),i=i.replace(/<img\s+class="emoticon"[^>]*?>/g,`[${$A.L("\u52A8\u753B\u8868\u60C5")}]`),n?i=i.replace(/<img\s+class="browse"[^>]*?src="(\S+)"[^>]*?>/g,function(r,o){const a=$A.extractImageParameter(r);if(a.width&&a.height){const l=$A.imageRatioHandle({src:a.src,width:a.width,height:a.height,crops:{ratio:2,percentage:"80x0"},scaleSize:40});o=l.src,n=`${n}" style="width:${l.width}px;height:${l.height}px`}return`[image:${o}]`}):i=i.replace(/<img\s+class="browse"[^>]*?>/g,`[${$A.L("\u56FE\u7247")}]`),i=i.replace(/<\/p><p>/g,"</p> <p>").replace(/<[^>]+>/g,"").replace(/&nbsp;/g," ").replace(/&quot;/g,'"').replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/\s+/g," "),n?(i=i.replace(/\[image:(.*?)\]/g,`<img class="${n}" src="$1">`),i=i.replace(/\{\{RemoteURL\}\}/g,this.apiUrl("../"))):i=$A.cutString(i,50),i},formatMsgBasic(t){if(!t)return t;if($A.isJson(t))for(let i in t)!t.hasOwnProperty(i)||(t[i]=$A.formatMsgBasic(t[i]));else $A.isArray(t)?t.forEach((i,n)=>{t[n]=$A.formatMsgBasic(i)}):typeof t=="string"&&(t=t.replace(/\{\{RemoteURL\}\}/g,this.apiUrl("../")));return t},formatTextMsg(t,i){if(!t)return"";const n=new RegExp(`<span class="mention user" data-id="${i}">`,"g");return t=t.trim().replace(/(\n\x20*){3,}/g,`
`),t=t.replace(/&nbsp;/g," "),t=t.replace(/<p><\/p>/g,"<p><br/></p>"),t=t.replace(/\{\{RemoteURL\}\}/g,$A.mainUrl()),t=t.replace(n,`<span class="mention me" data-id="${i}">`),/https?:\/\//.test(t)&&(t=t.split(/(<[^>]*>)/g).map(o=>(o&&!/<[^>]*>/.test(o)&&(o=o.replace(/(^|[^'"])((https?:\/\/)((\w|=|\?|\.|\/|&|-|:|\+|%|;|#|@|,|!)+))/g,'$1<a href="$2" target="_blank">$2</a>')),o)).join("")),$A.extractImageParameterAll(t).some(o=>{if(o.src&&o.width&&o.height){const a=$A.imageRatioHandle({src:o.src,width:o.width,height:o.height,crops:{ratio:5,percentage:"320x0"},scaleSize:o.original.indexOf("emoticon")>-1?150:220}),l=o.original.replace(/\s+width=/," original-width=").replace(/\s+height=/," original-height=").replace(/\s+src=(["'])([^'"]*)\1/i,` style="width:${a.width}px;height:${a.height}px" src="${rn(a.src)}"`);t=t.replace(o.original,l)}else t=t.replace(o.original,`<div class="no-size-image-box">${o.original}</div>`)}),t},getTextImagesInfo(t){const i=$A.mainUrl(),n=t.match(new RegExp("<img[^>]*?>","g")),r=[];if(n){const o=new RegExp(`src=(["'])([^'"]*)\\1`),a=new RegExp('(original-)?width="(\\d+)"'),l=new RegExp('(original-)?height="(\\d+)"');n.some(c=>{const d=c.match(o),h=c.match(a),u=c.match(l);d&&r.push({src:d[2].replace(/\{\{RemoteURL\}\}/g,i),width:h?h[2]:-1,height:u?u[2]:-1})})}return r},getMergeForwardTitle(t){const i=t.sender_names||[];return i.length===0?$A.L("\u804A\u5929\u8BB0\u5F55"):i.length===1?$A.L("(*)\u7684\u804A\u5929\u8BB0\u5F55",i[0]):t.sender_total>2?$A.L("(*)\u548C(*)\u7B49\u4EBA\u7684\u804A\u5929\u8BB0\u5F55",i[0],i[1]):$A.L("(*)\u548C(*)\u7684\u804A\u5929\u8BB0\u5F55",i[0],i[1])},getMsgSimpleDesc(t,i=null){if(!$A.isJson(t))return"";switch(t.type){case"text":return $A.getMsgTextPreview(t.msg,i);case"longtext":return t.msg.desc?$A.cutString(t.msg.desc,50):"["+$A.L("\u957F\u6587\u672C")+"]";case"vote":return`[${$A.L("\u6295\u7968")}]`+$A.getMsgTextPreview(t.msg,i);case"word-chain":return`[${$A.L("\u63A5\u9F99")}]`+$A.getMsgTextPreview(t.msg,i);case"record":return`[${$A.L("\u8BED\u97F3")}]`;case"location":return`[${$A.L("\u4F4D\u7F6E")}] ${$A.cutString(t.msg.title,50)}`;case"meeting":return`[${$A.L("\u4F1A\u8BAE")}] ${$A.cutString(t.msg.name,50)}`;case"file":return $A.fileMsgSimpleDesc(t.msg,i);case"tag":return`[${$A.L(t.msg.action==="remove"?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8")}] ${$A.getMsgSimpleDesc(t.msg.data)}`;case"top":return`[${$A.L(t.msg.action==="remove"?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876")}] ${$A.getMsgSimpleDesc(t.msg.data)}`;case"todo":return`[${$A.L(t.msg.action==="remove"?"\u53D6\u6D88\u5F85\u529E":t.msg.action==="done"?"\u5B8C\u6210":"\u8BBE\u5F85\u529E")}] ${$A.getMsgSimpleDesc(t.msg.data)}`;case"notice":const n=t.msg.source==="api"?t.msg.notice:$A.L(t.msg.notice);return $A.cutString(n,50);case"merge-forward":return`[${$A.L("\u804A\u5929\u8BB0\u5F55")}] ${$A.cutString($A.getMergeForwardTitle(t.msg),50)}`;case"template":return $A.templateMsgSimpleDesc(t.msg);case"preview":return t.msg.preview;default:return`[${$A.L("\u672A\u77E5\u7684\u6D88\u606F")}]`}},fileMsgSimpleDesc(t,i=null){if(t.type=="img"){if(i){const n=$A.imageRatioHandle({src:t.thumb,width:parseInt(t.width),height:parseInt(t.height),crops:{ratio:2,percentage:"80x0"},scaleSize:40});return`<img class="${i}" style="width:${n.width}px;height:${n.height}px" src="${n.src}">`}return`[${$A.L("\u56FE\u7247")}]`}else if(t.ext=="mp4")return`[${$A.L("\u89C6\u9891")}]`;return`[${$A.L("\u6587\u4EF6")}] ${$A.cutString(t.name,50)}`},templateMsgSimpleDesc(t){if(t.title_raw)return t.title_raw;if(t.type==="task_list"&&$A.arrayLength(t.list)===1)return(t.source==="api"?t.title:$A.L(t.title))+": "+$A.cutString(t.list[0].name,50);if(t.title)return t.source==="api"?t.title:$A.L(t.title);if(t.type==="content"&&typeof t.content=="string"&&t.content!==""){const i=t.source==="api"?t.content:$A.L(t.content);return $A.cutString(i,50)}return $A.L("\u672A\u77E5\u7684\u6D88\u606F")},getFileName(t){let i=t.name||"",n=t.ext||"";return n!=""&&(i+="."+n),i},isDooServer(){const t=$A.mainDomain();return/dootask\.com$/.test(t)||/hitosea\.com$/.test(t)||/^127\.0\.0\.1/.test(t)||/^(10)\./.test(t)||/^(172)\.(1[6-9]|2[0-9]|3[0-1])\./.test(t)||/^(192)\.(168)\./.test(t)},thumbRestore(t){return`${t}`.replace(/_thumb\.(png|jpg|jpeg)$/,"").replace(/\/crop\/([^\/]+)$/,"")},dataHasFolder(t){const{items:i}=t;if(i){for(const n of i)if(n.kind==="directory"||n.kind==="file"&&n.webkitGetAsEntry().isDirectory)return!0}return!1},imageRatioHandle(t){if(!$A.isJson(t.crops))return t;if($A.imageRatioJudge(t.src)){t.src=$A.thumbRestore(t.src)+"/crop/"+Object.keys(t.crops).map(n=>`${n}:${t.crops[n]}`).join(",");const i=$A.imageRatioExceed(t.width,t.height,t.crops.ratio);i>0&&(t.width>t.height?t.width=t.height*i:t.height=t.width*i)}if(t.scaleSize){const i=$A.scaleToScale(t.width,t.height,t.scaleSize);t.width=i.width,t.height=i.height}return t},imageRatioJudge(t){return/\.(png|jpg|jpeg)$/.test(t)?$A.getDomain(t)==$A.mainDomain():!1},imageRatioExceed(t,i,n,r=.5){return t&&i&&n&&(t/i>n+r||i/t>n+r)?n:0},filterInvalidLine(t){return t?`${t}`.replace(/^(<p>\s*<\/p>)+|(<p>\s*<\/p>)+$/gi,"").replace(/^(<p><br\/*><\/p>)+|(<p><br\/*><\/p>)+$/gi,""):""},loadVConsole(t=void 0){if(typeof t=="string"){switch(t){case"log.o":return $A.IDBSet("logOpen","open").then(i=>{$A.loadVConsole()}),!0;case"log.c":return $A.IDBSet("logOpen","close").then(i=>{$A.loadVConsole()}),!0}return!1}$A.IDBString("logOpen").then(i=>{typeof e.vConsole!="undefined"&&(e.vConsole.destroy(),e.vConsole=null),$A.openLog=i==="open",$A.openLog&&$A.loadScript("js/vconsole.min.js").then(n=>{e.vConsole=new e.VConsole({onReady:()=>{console.log("VConsole: onReady")},onClearLog:()=>{console.log("VConsole: onClearLog")}})}).catch(n=>{$A.modalError("VConsole \u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01")})})},reportExtractTime(t){const i=/(?:.*?)(?:\[([^\[\]]*)\]\s*)?(?:\[([^\[\]]*)\]\s*)?$/,n=t.match(i);if(!n)return"";const r=`${n[1]||""}`.replace(/^\s*\((.*)\)\s*$/,"$1"),o=`${n[2]||""}`.replace(/^\s*\((.*)\)\s*$/,"$1");return o&&r?`${o} (${r})`:o||r||""},generateColorVarStyle(t,i=[],n="custom-color",r=null){if(typeof t!="string"||!/^#([0-9a-fA-F]{6})$/.test(t))return r;const o=parseInt(t.substring(1,3),16),a=parseInt(t.substring(3,5),16),l=parseInt(t.substring(5,7),16);return $A.isJson(r)||(r={}),i.forEach(c=>{if(typeof c=="number"&&c>=0&&c<=100){const d=Math.round(c/100*100)/100;r[`--${n}-${c}`]=`rgba(${o}, ${a}, ${l}, ${d})`}}),r[`--${n}-100`]=t,r},convertWorkflow(t){let i=null,n=t,r=null;if($A.isJson(t)&&(n=t.flow_item_name,n.indexOf("|")===-1&&(n.complete_at?n=$A.L("\u5DF2\u5B8C\u6210"):n=$A.L("\u672A\u5B8C\u6210"))),n&&n.indexOf("|")!==-1){const o=`${n}||`.split("|");i=o[0],n=o[1],r=o[2]}return{status:i,name:n,color:r}}}),s.extend({modalConfig(t){return typeof t=="undefined"?t={content:"Undefined"}:typeof t=="string"&&(t={content:t}),t.title=t.title||(typeof t.render=="undefined"?$A.modalTranslation("\u6E29\u99A8\u63D0\u793A",t.language):""),t.content=t.content||"",t.okText=t.okText||$A.modalTranslation("\u786E\u5B9A",t.language),t.cancelText=t.cancelText||$A.modalTranslation("\u53D6\u6D88",t.language),t.language!==!1&&(delete t.language,t.title=$A.L(t.title),t.content=$A.L(t.content),t.okText=$A.L(t.okText),t.cancelText=$A.L(t.cancelText)),t},modalTranslation(t,i){return i!==!1?t:$A.L(t)},modalInput(t,i=0){if(i>0){setTimeout(()=>{$A.modalInput(t)},i);return}typeof t=="string"&&(t={title:t});let n="modalInput_"+$A.randomString(6),r={type:t.type||"text",value:t.value,placeholder:$A.L(t.placeholder),elementId:n};$A.isJson(t.inputProps)&&(r=Object.assign(r,t.inputProps));const o=()=>new Promise((l,c)=>{if(!t.onOk){c();return}const d=t.onOk(t.value);if(!d){l();return}d.then?d.then(h=>{h&&$A.messageSuccess(h),l()}).catch(h=>{h&&$A.messageError(h),c()}):(typeof d=="string"&&$A.messageError(d),c())}),a=()=>{typeof t.onCancel=="function"&&t.onCancel()};$A.eeuiAppKeyboardHide(),$A.Modal.confirm({render:l=>l("div",[l("div",{style:{fontSize:"16px",fontWeight:"500",marginBottom:"20px"}},$A.L(t.title)),l("Input",{props:r,on:{input:c=>{t.value=c},"on-enter":c=>{r.type!=="textarea"&&$A(c.target).parents(".ivu-modal-body").find(".ivu-btn-primary").click()}}})]),onOk:o,onCancel:a,loading:!0,okText:$A.L(t.okText||"\u786E\u5B9A"),cancelText:$A.L(t.cancelText||"\u53D6\u6D88"),okType:t.okType||"primary",cancelType:t.cancelType||"text"}),setTimeout(()=>{document.getElementById(n)&&document.getElementById(n).focus()})},modalConfirm(t,i=0){if(t!==!1){if(i>0){setTimeout(()=>{$A.modalConfirm(t)},i);return}if(t=$A.modalConfig(t),t.loading){const{onOk:n}=t;t.onOk=()=>new Promise((r,o)=>{if(!n){o();return}const a=n();if(!a){r();return}a.then?a.then(l=>{l&&$A.messageSuccess(l),r()}).catch(l=>{l&&$A.messageError(l),o()}):(typeof a=="string"&&$A.messageError(a),o())})}$A.eeuiAppKeyboardHide(),$A.Modal.confirm($A.modalConfig(t))}},modalSuccess(t,i=0){if(t!==!1){if(i>0){setTimeout(()=>{$A.modalSuccess(t)},i);return}$A.eeuiAppKeyboardHide(),$A.Modal.success($A.modalConfig(t))}},modalInfo(t,i=0){if(t!==!1){if(i>0){setTimeout(()=>{$A.modalInfo(t)},i);return}$A.eeuiAppKeyboardHide(),$A.Modal.info($A.modalConfig(t))}},modalWarning(t,i=0){if(t!==!1&&!($A.isJson(t)&&t.content===!1)){if(i>0){setTimeout(()=>{$A.modalWarning(t)},i);return}$A.eeuiAppKeyboardHide(),$A.Modal.warning($A.modalConfig(t))}},modalError(t,i=0){if(t!==!1&&!($A.isJson(t)&&t.content===!1)){if(i>0){setTimeout(()=>{$A.modalError(t)},i);return}$A.eeuiAppKeyboardHide(),$A.Modal.error($A.modalConfig(t))}},modalAlert(t){t!==!1&&($A.eeuiAppKeyboardHide(),alert($A.L(t)))},messageSuccess(t){$A.Message.success($A.L(t))},messageInfo(t){$A.Message.info($A.L(t))},messageWarning(t){t!==!1&&$A.Message.warning($A.L(t))},messageError(t){t!==!1&&$A.Message.error($A.L(t))},noticeConfig(t){return typeof t=="undefined"?t={desc:"Undefined"}:typeof t=="string"&&(t={desc:t}),t.title=$A.L(t.title||(typeof t.render=="undefined"?"\u6E29\u99A8\u63D0\u793A":"")),t.desc=$A.L(t.desc||""),t},noticeSuccess(t){t!==!1&&$A.Notice.success($A.noticeConfig(t))},noticeWarning(t){t!==!1&&$A.Notice.warning($A.noticeConfig(t))},noticeError(t){t!==!1&&(typeof t=="string"&&(t={desc:t,duration:6}),$A.Notice.error($A.noticeConfig(t)))}}),s.extend({dark:{utils:{supportMode(){let t=typeof e!="undefined"&&e.navigator.userAgent.toLowerCase();return`${t.match(/Chrome/i)}`=="chrome"?"chrome":`${t.match(/Webkit/i)}`=="webkit"?"webkit":null},defaultFilter(){return"-webkit-filter: invert(100%) hue-rotate(180deg) contrast(90%) !important; filter: invert(100%) hue-rotate(180deg) contrast(90%) !important;"},reverseFilter(){return"-webkit-filter: invert(100%) hue-rotate(180deg) contrast(100%) !important; filter: invert(100%) hue-rotate(180deg) contrast(100%) !important;"},noneFilter(){return"-webkit-filter: none !important; filter: none !important;"},addStyle(t,i,n){i=i||"style";let r=document;if(r.getElementById(t))return;let a=r.createElement(i);a.rel="stylesheet",a.id=t,i==="style"?a.innerHTML=n:a.href=n,document.head.appendChild(a)},getClassList(t){return t.classList||[]},addClass(t,i){return this.getClassList(t).add(i),this},removeClass(t,i){return this.getClassList(t).remove(i),this},hasClass(t,i){return this.getClassList(t).contains(i)},hasElementById(t){return document.getElementById(t)},removeElementById(t){let i=document.getElementById(t);i&&i.parentNode.removeChild(i)}},createDarkStyle(){this.utils.addStyle("dark-mode-style","style",`
@media screen {
html {
${this.utils.defaultFilter()}
will-change: transform;
}
/* Default Reverse rule */
img,
video,
iframe,
canvas,
[style*="background:url"],
[style*="background: url"],
[style*="background-image:url"],
[style*="background-image: url"],
[background],
.emoji-original,
.no-dark-content,
.no-dark-before:before {
${this.utils.reverseFilter()}
will-change: transform;
}
.no-dark-content img,
.no-dark-content video,
.no-dark-content iframe,
.no-dark-content canvas,
.no-dark-content [style*="background:url"],
.no-dark-content [style*="background: url"],
.no-dark-content [style*="background-image:url"],
.no-dark-content [style*="background-image: url"],
.no-dark-content [background] {
${this.utils.noneFilter()}
}
.fullscreen-mode img,
.fullscreen-mode video,
.fullscreen-mode iframe,
.fullscreen-mode canvas {
${this.utils.noneFilter()}
}
/* Text contrast */
html {
text-shadow: 0 0 0 !important;
}
/* Full screen */
.no-filter,
:-webkit-full-screen,
:-webkit-full-screen *,
:-moz-full-screen,
:-moz-full-screen *,
:fullscreen,
:fullscreen * {
${this.utils.noneFilter()}
}
/* Page background */
html {
min-width: 100%;
min-height: 100%;
}
html[data-platform="desktop"] {
background-color: #0D0D0D;
}
.child-view {
background-color: #fff;
}
.page-login {
background-color: #f8f8f8;
}
}
@media print {
.no-print {
display: none !important;
}
}`)},enableDarkMode(){!this.utils.supportMode()||this.isDarkEnabled()||(this.createDarkStyle(),this.utils.addClass(document.body,"dark-mode-reverse"))},disableDarkMode(){!this.isDarkEnabled()||(this.utils.removeElementById("dark-mode-style"),this.utils.removeClass(document.body,"dark-mode-reverse"))},autoDarkMode(){let t=e.matchMedia&&e.matchMedia("(prefers-color-scheme: dark)").matches;$A.isEEUIApp&&(t=$A.eeuiAppGetThemeName()==="dark"),t?this.enableDarkMode():this.disableDarkMode()},isDarkEnabled(){return this.utils.hasClass(document.body,"dark-mode-reverse")}}}),e.$A=s})(window);var Dr=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("transition",{attrs:{name:"fade"}},[e.floatSpinnerLoad>0?t("div",{staticClass:"common-float-spinner"},[t("Loading",{staticClass:"common-float-circular"})],1):e._e()])},Er=[];function A(e,s,t,i,n,r,o,a){var l=typeof e=="function"?e.options:e;s&&(l.render=s,l.staticRenderFns=t,l._compiled=!0),i&&(l.functional=!0),r&&(l._scopeId="data-v-"+r);var c;if(o?(c=function(u){u=u||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!u&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(u=__VUE_SSR_CONTEXT__),n&&n.call(this,u),u&&u._registeredComponents&&u._registeredComponents.add(o)},l._ssrRegister=c):n&&(c=a?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(p,g){return c.call(g),d(p,g)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:e,options:l}}const Lr={name:"FloatSpinner",computed:{...z(["floatSpinnerLoad"])}},Zt={};var Mr=A(Lr,Dr,Er,!1,Pr,null,null,null);function Pr(e){for(let s in Zt)this[s]=Zt[s]}var jr=function(){return Mr.exports}();const T=mr();var Rr=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"common-right-bottom"},[e.showSSO?t("div",{staticClass:"common-right-bottom-link",on:{click:e.useSSOLogin}},[e._v(" "+e._s(e.$L("\u4F7F\u7528 SSO \u767B\u5F55"))+" ")]):e._e(),e.showDown&&e.clientDownloadUrl?t("a",{staticClass:"common-right-bottom-link",attrs:{href:e.clientDownloadUrl,target:"_blank"}},[t("Icon",{attrs:{type:"md-download"}}),e._v(" "+e._s(e.$L("\u5BA2\u6237\u7AEF\u4E0B\u8F7D"))+" ")],1):e._e(),e.showPrivacy?t("a",{staticClass:"common-right-bottom-link",attrs:{target:"_blank",href:e.$A.apiUrl("privacy")}},[e._v(" \u300A"+e._s(e.$L("\u9690\u79C1\u653F\u7B56"))+"\u300B ")]):e._e(),t("Modal",{attrs:{closable:!1,"mask-closable":!1,"class-name":"common-right-bottom-notification"},model:{value:e.updateShow,callback:function(i){e.updateShow=i},expression:"updateShow"}},[t("div",{attrs:{slot:"header"},slot:"header"},[t("div",{staticClass:"notification-head"},[t("div",{staticClass:"notification-title"},[e._v(e._s(e.$L("\u53D1\u73B0\u65B0\u7248\u672C")))]),t("Tag",{attrs:{color:"volcano"}},[e._v("v"+e._s(e.systemVersion)+" -> v"+e._s(e.updateVersion))])],1),e.$Platform==="mac"?t("div",{staticClass:"notification-tip"},[e._v(e._s(e.$L("\u79BB\u6700\u65B0\u7248\u672C\u53EA\u6709\u4E00\u6B65\u4E4B\u9065\u4E86\uFF01\u91CD\u65B0\u542F\u52A8\u5E94\u7528\u5373\u53EF\u5B8C\u6210\u66F4\u65B0\u3002")))]):e._e()]),t("Scrollbar",{attrs:{"class-name":"notification-body"}},[t("VMPreview",{attrs:{value:e.updateNote}})],1),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default"},on:{click:function(i){e.updateShow=!1}}},[e._v(e._s(e.$L("\u7A0D\u540E")))]),t("Button",{attrs:{type:"primary",loading:e.updateIng},on:{click:e.updateQuitAndInstall}},[e._v(e._s(e.$L(e.$Platform==="mac"?"\u91CD\u65B0\u542F\u52A8":"\u7ACB\u5373\u5347\u7EA7")))])],1)],1)],1)},Or=[];const zr=()=>D(()=>import("./preview.34bf3582.js"),["js/build/preview.34bf3582.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),Ur={name:"RightBottom",components:{VMPreview:zr},data(){return{loadIng:0,apiVersion:"",systemVersion:window.systemInfo.version,updateVersion:"",updateNote:"",updateShow:!1,updateBottomShow:!1,updateIng:!1}},mounted(){this.prefetchResources(),this.checkVersion(),this.$Electron&&(T.on("updateNotification",this.onUpdateShow),this.$Electron.listener("updateDownloaded",e=>{this.$store.state.clientNewVersion=e.version,this.updateVersion=e.version,this.updateNote=e.releaseNotes||this.$L("\u6CA1\u6709\u66F4\u65B0\u63CF\u8FF0\u3002"),this.updateShow=!$A.strExists(this.updateNote,`[${this.updateVersion}-Silence]`)})),T.on("openDownloadClient",this.openDownloadClient)},beforeDestroy(){T.off("updateNotification",this.onUpdateShow),T.off("openDownloadClient",this.openDownloadClient)},watch:{updateShow(e){e&&(this.updateBottomShow=!0)}},computed:{...z(["clientDownloadUrl"]),showSSO(){return this.$isSoftware&&["login"].includes(this.routeName)},showDown(){return this.$Electron||this.$isEEUIApp||this.windowTouch?!1:this.routeName==="login"},showPrivacy(){return $A.isDooServer()&&this.$isEEUIApp&&["login"].includes(this.routeName)}},methods:{onUpdateShow(){this.updateShow=!0},openDownloadClient(){this.clientDownloadUrl&&window.open(this.clientDownloadUrl,"_blank")},isNotServer(){let e=$A.getDomain(window.systemInfo.apiUrl);return this.$isSoftware&&(e==""||e=="public")},prefetchResources(){this.isNotServer()||this.$Electron&&$A.$isSubElectron||ot.get($A.apiUrl("system/prefetch")).then(({status:e,data:s})=>{e===200&&s.forEach(t=>{const i=document.createElement("link");i.rel="prefetch",i.href=t,i.onload=()=>{document.head.removeChild(i)},i.onerror=()=>{document.head.removeChild(i)},document.head.appendChild(i)})}).catch(e=>{})},checkVersion(){this.isNotServer()||(ot.get($A.apiUrl("system/version")).then(({status:e,data:s})=>{e===200&&(this.apiVersion=s.version||"",this.compareVersion(this.apiVersion,"0.19.0")===-1&&$A.modalWarning({title:"\u6E29\u99A8\u63D0\u793A",message:`\u670D\u52A1\u5668\uFF08${$A.mainDomain()}\uFF09\u63A5\u53E3\u7248\u672C\u8FC7\u4F4E\uFF0C\u90E8\u5206\u529F\u80FD\u53EF\u80FD\u65E0\u6CD5\u6B63\u5E38\u4F7F\u7528\u3002`}),this.$Electron?this.$Electron.sendMessage("updateCheckAndDownload",{apiVersion:this.apiVersion}):this.getDownloadUrl(s.publish))}).catch(e=>{}),this.__checkVersion&&clearTimeout(this.__checkVersion),this.__checkVersion=setTimeout(this.checkVersion,600*1e3))},getDownloadUrl(e){if(!!$A.isJson(e))switch(e.provider){case"generic":this.$store.state.clientDownloadUrl=`${e.url}/latest`;break;case"github":(async s=>{let t="cacheAppdown::"+this.apiVersion,i=await $A.IDBJson(t),n=600;if(i.time&&i.time+n>$A.dayjs().unix()){this.$store.state.clientDownloadUrl=i.data.html_url;return}this.loadIng>0||(this.loadIng++,ot.get(`https://api.github.com/repos/${e.owner}/${e.repo}/releases`).then(({status:r,data:o})=>{this.loadIng--,r===200&&$A.isArray(o)&&(i.time=$A.dayjs().unix(),i.data=o.find(({tag_name:a})=>this.compareVersion(this.tagVersion(a),this.apiVersion)===0)||{},$A.IDBSave(t,i),this.$store.state.clientDownloadUrl=i.data.html_url)}).catch(()=>{this.loadIng--}))})();break}},updateQuitAndInstall(){this.updateIng=!0,setTimeout(()=>{this.$Electron.sendMessage("updateQuitAndInstall",{updateTitle:this.$L("\u6B63\u5728\u5B89\u88C5\u66F4\u65B0\uFF0C\u8BF7\u7A0D\u5019...")})},301)},useSSOLogin(){T.emit("useSSOLogin",!0)},tagVersion(e){return e?$A.leftDelete(e.toLowerCase(),"v"):""},compareVersion(e,s){let t=0,i=0;if(e===s)return 0;const n=(r,o)=>{let a=o;for(;r[a]!=="."&&a<r.length;)a++;return a};for(;t<e.length&&i<s.length;){const r=n(e,t),o=n(s,i),a=+e.substr(t,r-t),l=+s.substr(i,o-i);if(a!==l)return a>l?1:-1;t=r+1,i=o+1}for(;t<e.length;){const r=n(e,t);if(+e.substr(t,r-t)>0)return 1;t=r+1}for(;i<s.length;){const r=n(s,i);if(+s.substr(i,r-i)>0)return-1;i=r+1}return 0}}},es={};var Nr=A(Ur,Rr,Or,!1,Br,null,null,null);function Br(e){for(let s in es)this[s]=es[s]}var Fr=function(){return Nr.exports}(),Hr=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("Modal",{attrs:{mask:!1,"mask-closable":!1,"footer-hide":!0,"transition-names":["",""],"class-name":e.viewMode==="desktop"?"common-preview-image-view":"common-preview-image-swipe",fullscreen:""},model:{value:e.show,callback:function(i){e.show=i},expression:"show"}},[e.list.length>0?[e.viewVideo?t("PreviewVideoView",{attrs:{item:e.viewVideo}}):e.viewMode==="desktop"?t("PreviewImageView",{attrs:{"initial-index":e.index,"url-list":e.list,infinite:""}}):e.viewMode==="mobile"?t("PreviewImageSwipe",{attrs:{"initial-index":e.index,"url-list":e.list},on:{"on-destroy":function(i){e.show=!1}}}):e._e()]:e._e()],2)},Wr=[];const Vr=()=>D(()=>import("./video.105dbff2.js"),["js/build/video.105dbff2.js","js/build/video.6c8ed952.css","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),Yr=()=>D(()=>import("./view.33980d5b.js"),["js/build/view.33980d5b.js","js/build/view.344e05c9.css","js/build/element-sea.f8a64907.js","js/build/vue.adba9046.js","js/build/@babel.9410f858.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/jquery.99163cb9.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js"]),qr=()=>D(()=>import("./swipe.83ba844d.js"),["js/build/swipe.83ba844d.js","js/build/swipe.7b577070.css","js/build/openpgp_hi.15f91b1d.js","js/build/photoswipe.a7142509.js","js/build/photoswipe.0fb72215.css","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),Kr={name:"PreviewImage",components:{PreviewVideoView:Vr,PreviewImageSwipe:qr,PreviewImageView:Yr},props:{value:{type:Boolean,default:!1},index:{type:Number,default:0},list:{type:Array,default:()=>[]},mode:{type:String,default:null}},data(){return{show:this.value}},watch:{value(e){this.show=e},show(e){this.value!==e&&this.$emit("input",e)}},computed:{viewVideo(){return this.list.length===0?!1:this.list.find(({src:s})=>/\.mp4$/i.test(s))||!1},viewMode(){return this.mode?this.mode:this.windowTouch?"mobile":"desktop"}}},ts={};var Gr=A(Kr,Hr,Wr,!1,Jr,null,null,null);function Jr(e){for(let s in ts)this[s]=ts[s]}var Qr=function(){return Gr.exports}(),Xr=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("PreviewImage",{attrs:{index:e.previewImageIndex,list:e.previewImageList},model:{value:e.show,callback:function(i){e.show=i},expression:"show"}})},Zr=[];const eo={name:"PreviewImageState",components:{PreviewImage:Qr},computed:{...z(["previewImageIndex","previewImageList"])},data(){return{show:!1}},watch:{show(e){e?this.$store.state.previewImageIndex=Math.min(Math.max(this.$store.state.previewImageIndex,0),this.$store.state.previewImageList.length-1):(this.$store.state.previewImageIndex=0,this.$store.state.previewImageList=[])},previewImageList(e){if(e.length>0)if($A.isEEUIApp||$A.isElectron){let s=Math.min(Math.max(this.$store.state.previewImageIndex,0),this.$store.state.previewImageList.length-1),t=e.map(r=>$A.isJson(r)?r.src:r),i=50;if(t.length>i){const r=[];let o=0;for(;r.length<i&&o<i;){let a=s-o,l=s+o+1;a>=0&&r.unshift(t[a]),l<t.length&&r.push(t[l]),o++}s=r.findIndex(a=>a===t[s]),t=r}const n=t.find(r=>/\.mp4$/i.test(r));n?this.videoPreview(n):this.imagePreview(s,t)}else this.show=!0}},methods:{videoPreview(e){$A.isEEUIApp?$A.eeuiAppSendMessage({language:$A.eeuiAppConvertLanguage(),action:"videoPreview",path:e}):$A.isElectron&&this.$Electron.sendMessage("openMediaViewer",{type:"video",lang:M,video:e})},imagePreview(e,s){$A.isEEUIApp?$A.eeuiAppSendMessage({language:$A.eeuiAppConvertLanguage(),action:"picturePreview",position:e,paths:s}):$A.isElectron&&this.$Electron.sendMessage("openMediaViewer",{type:"image",lang:M,currentIndex:e,images:s})}}},ss={};var to=A(eo,Xr,Zr,!1,so,null,null,null);function so(e){for(let s in ss)this[s]=ss[s]}var io=function(){return to.exports}(),no=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("Modal",{attrs:{value:e.show,width:416,closable:!1,"mask-closable":!1,"footer-hide":!0}},[t("div",{staticClass:"ivu-modal-confirm"},[t("div",{staticClass:"ivu-modal-confirm-head"},[t("div",{staticClass:"ivu-modal-confirm-head-icon ivu-modal-confirm-head-icon-error"},[t("Icon",{attrs:{type:"ios-close-circle"}})],1),t("div",{staticClass:"ivu-modal-confirm-head-title"},[e._v(e._s(e.$L("\u6E29\u99A8\u63D0\u793A")))])]),t("div",{staticClass:"ivu-modal-confirm-body"},[t("div",[e._v(e._s(e.ajaxAuthException))])]),e.$isSubElectron?t("div",{staticClass:"ivu-modal-confirm-footer"},[t("Button",{attrs:{type:"text"},on:{click:e.onClose}},[e._v(e._s(e.$L("\u5173\u95ED\u7A97\u53E3")))]),t("Button",{attrs:{type:"primary"},on:{click:e.onRefresh}},[e._v(e._s(e.$L("\u5237\u65B0")))])],1):t("div",{staticClass:"ivu-modal-confirm-footer"},[t("Button",{attrs:{type:"primary"},on:{click:e.onConfirm}},[e._v(e._s(e.$L("\u786E\u5B9A")))])],1)])])},ro=[];const oo={name:"AuthException",computed:{...z(["ajaxAuthException"]),show(){return this.routePath!=="/login"&&!!this.ajaxAuthException}},methods:{onClose(){window.close()},onRefresh(){$A.reloadUrl()},onConfirm(){this.$store.state.ajaxAuthException=null,this.$store.dispatch("logout")}}},is={};var ao=A(oo,no,ro,!1,lo,null,null,null);function lo(e){for(let s in is)this[s]=is[s]}var co=function(){return ao.exports}(),uo=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"common-network-exception"},[e.type==="alert"?[e.show?t("Alert",{attrs:{type:"error","show-icon":"",closable:""},on:{"on-close":e.onClose}},[e._v(e._s(e.$L("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8BBE\u7F6E\u3002")))]):e._e()]:e.type==="modal"?[t("Modal",{attrs:{value:e.show,width:416,closable:!1,"mask-closable":!1,"footer-hide":!0}},[t("div",{staticClass:"ivu-modal-confirm"},[t("div",{staticClass:"ivu-modal-confirm-head"},[t("div",{staticClass:"ivu-modal-confirm-head-icon ivu-modal-confirm-head-icon-error"},[t("Icon",{attrs:{type:"ios-close-circle"}})],1),t("div",{staticClass:"ivu-modal-confirm-head-title"},[e._v(e._s(e.$L("\u6E29\u99A8\u63D0\u793A")))])]),t("div",{staticClass:"ivu-modal-confirm-body"},[t("div",[e._v(e._s(e.ajaxNetworkException))])]),t("div",{staticClass:"ivu-modal-confirm-footer"},[t("Button",{attrs:{type:"text"},on:{click:e.onClose}},[e._v(e._s(e.$L("\u5FFD\u7565")))]),t("Button",{attrs:{type:"primary",loading:e.loadIng},on:{click:e.onCheck}},[e._v(e._s(e.$L("\u68C0\u67E5")))])],1)])])]:e._e()],2)},ho=[];const po={name:"NetworkException",props:{type:{type:String,default:"modal"}},data(){return{timer:null,checkIng:!1,loadIng:!1}},beforeDestroy(){this.onClose()},computed:{...z(["ajaxNetworkException"]),show(){return!!this.ajaxNetworkException}},watch:{show(e){this.timer&&clearInterval(this.timer),e&&(this.timer=setInterval(this.checkNetwork,3e3))}},methods:{isNotServer(){let e=$A.getDomain(window.systemInfo.apiUrl);return this.$isSoftware&&(e==""||e=="public")},async callNetwork(){if(this.isNotServer()){this.onClose();return}await this.$store.dispatch("call",{url:"system/setting"}),this.onClose()},async checkNetwork(){if(!this.checkIng){this.checkIng=!0;try{await this.callNetwork()}catch{}this.checkIng=!1}},async onCheck(){if(!this.loadIng){this.loadIng=!0;try{await this.callNetwork()}catch{$A.messageError("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25")}this.loadIng=!1}},onClose(){this.$store.state.ajaxNetworkException=null}}},ns={};var fo=A(po,uo,ho,!1,mo,null,null,null);function mo(e){for(let s in ns)this[s]=ns[s]}var go=function(){return fo.exports}(),_o=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.show?t("div",{staticClass:"common-guide"},[t("img",{attrs:{src:e.src,width:"100%"}}),t("div",[t("Button",{attrs:{type:"default",size:"large"},on:{click:function(i){e.show=!1}}},[e._v(e._s(e.$L("\u5FCD\u5FC3\u62D2\u7EDD")))])],1)]):e._e()},vo=[];const yo={name:"GuidePage",data(){return{show:!1,src:""}},mounted(){this.src=$.apiUrl("../images/other/guide.png")},watch:{$route:{handler(e){this.show=!1,navigator.userAgent.indexOf("MicroMessenger")!==-1&&e.name=="manage-project-invite"&&(this.show=!0)},immediate:!0}}},rs={};var wo=A(yo,_o,vo,!1,$o,null,null,null);function $o(e){for(let s in rs)this[s]=rs[s]}var ko=function(){return wo.exports}(),bo=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"task-menu-icon",on:{click:e.handleClick}},[e.loadIng&&e.showLoad?t("div",{staticClass:"loading"},[t("Loading")],1):[e.task.complete_at?t("Icon",{staticClass:"completed",attrs:{type:e.completedIcon}}):t("Icon",{staticClass:"uncomplete",attrs:{type:e.icon}})]],2)},Ao=[];const Co={name:"TaskMenu",props:{task:{type:Object,default:()=>({})},loadStatus:{type:Boolean,default:!1},colorShow:{type:Boolean,default:!0},operationShow:{type:Boolean,default:!0},updateBefore:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String,default:"small"},placement:{type:String,default:"bottom"},icon:{type:String,default:"md-radio-button-off"},completedIcon:{type:String,default:"md-checkmark-circle"},projectId:{type:Number,default:0},showLoad:{type:Boolean,default:!0}},computed:{...z(["loads","taskFlows"]),...pt(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)}},methods:{handleClick(e){this.$store.state.taskOperation={event:e,task:this.task,loadStatus:this.loadStatus,colorShow:this.colorShow,operationShow:this.operationShow,updateBefore:this.updateBefore,disabled:this.disabled,size:this.size,placement:this.placement,projectId:this.projectId,onUpdate:s=>{this.$emit("on-update",s)}}},updateTask(e){if(this.loadIng)return;Object.keys(e).forEach(t=>this.$set(this.task,t,e[t]));const s=Object.assign(e,{task_id:this.task.id});this.$store.dispatch("taskUpdate",s).then(({data:t,msg:i})=>{$A.messageSuccess(i),this.$store.dispatch("saveTaskBrowse",s.task_id),this.$emit("on-update",t)}).catch(({msg:t})=>{$A.modalError(t),this.$store.dispatch("getTaskOne",s.task_id).catch(()=>{})})}}},os={};var So=A(Co,bo,Ao,!1,xo,null,null,null);function xo(e){for(let s in os)this[s]=os[s]}var To=function(){return So.exports}(),Io=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"common-user-select",class:e.warpClass},[e.module?e._e():t("ul",[e._l(e.values,function(i){return[i?t("li",{key:i,on:{click:e.onSelection}},[t("UserAvatar",{attrs:{userid:i,size:e.avatarSize,"show-icon":e.avatarIcon,"show-name":e.avatarName}})],1):e._e()]}),!e.disabled&&(e.addIcon||e.values.length===0)?t("li",{staticClass:"add-icon",style:e.addStyle,on:{click:e.onSelection}}):e._e()],2),t("Modal",{attrs:{"class-name":"common-user-select-modal","mask-closable":!1,closable:!e.isFullscreen,fullscreen:e.isFullscreen,"footer-hide":e.isFullscreen,width:"640"},scopedSlots:e._u([{key:"header",fn:function(){return[e.isFullscreen?t("div",{staticClass:"user-modal-header"},[t("div",{staticClass:"user-modal-close",on:{click:function(i){e.showModal=!1}}},[e._v(e._s(e.$L("\u5173\u95ED")))]),t("div",{staticClass:"user-modal-title"},[t("span",{ref:"headerTitle",on:{click:e.onClickTitle}},[e._v(e._s(e.localTitle))])]),t("div",{ref:"headerSubmit",staticClass:"user-modal-submit",on:{click:e.onSubmit}},[e.submittIng>0?t("div",{staticClass:"submit-loading"},[t("Loading")],1):e._e(),e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.selects.length>0?[e._v(" ("+e._s(e.selects.length)),e.multipleMax?t("span",[e._v("/"+e._s(e.multipleMax))]):e._e(),e._v(") ")]:e._e()],2)]):t("div",{staticClass:"ivu-modal-header-inner"},[e._v(e._s(e.localTitle))])]},proxy:!0},{key:"close",fn:function(){return[t("i",{staticClass:"ivu-icon ivu-icon-ios-close"})]},proxy:!0},{key:"footer",fn:function(){return[t("Button",{attrs:{type:"primary",loading:e.submittIng>0},on:{click:e.onSubmit}},[e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.selects.length>0?[e._v(" ("+e._s(e.selects.length)),e.multipleMax?t("span",[e._v("/"+e._s(e.multipleMax))]):e._e(),e._v(") ")]:e._e()],2)]},proxy:!0}]),model:{value:e.showModal,callback:function(i){e.showModal=i},expression:"showModal"}},[t("div",{staticClass:"user-modal-search"},[e.selects.length>0?t("Scrollbar",{ref:"selected",staticClass:"search-selected",attrs:{"enable-x":"","enable-y":!1}},[t("ul",e._l(e.formatSelect(e.selects),function(i){return t("li",{key:i.userid,attrs:{"data-id":i.userid},on:{click:function(n){return n.stopPropagation(),e.onRemoveItem(i.userid)}}},[i.type=="group"?[i.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:i.avatar,size:32}}):i.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):i.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):i.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):i.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:t("UserAvatar",{attrs:{userid:i.userid}})],2)}),0)]):e._e(),t("div",{staticClass:"search-input"},[t("div",{staticClass:"search-pre"},[e.loadIng>0?t("Loading"):t("Icon",{attrs:{type:"ios-search"}})],1),t("Form",{staticClass:"search-form",attrs:{action:"javascript:void(0)"},nativeOn:{submit:function(i){return i.preventDefault(),e.$A.eeuiAppKeyboardHide.apply(null,arguments)}}},[t("Input",{attrs:{type:"search",placeholder:e.localPlaceholder,clearable:""},on:{"on-keydown":e.onKeydown,"on-keyup":e.onKeyup},model:{value:e.searchKey,callback:function(i){e.searchKey=i},expression:"searchKey"}})],1)],1)],1),e.isWhole?t("ul",{staticClass:"user-modal-switch"},e._l(e.switchItems,function(i){return t("li",{key:i.key,class:{active:e.switchActive===i.key},on:{click:function(n){e.switchActive=i.key}}},[e._v(e._s(e.$L(i.label))+" ")])}),0):e._e(),e.lists.length>0?t("Scrollbar",{staticClass:"user-modal-list"},[e.switchActive=="project"?t("ul",{staticClass:"user-modal-project"},e._l(e.lists,function(i){return t("li",{key:i.id,class:e.selectClass(i.userid_list),on:{click:function(n){return e.onSelectMultiple(i.userid_list)}}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon(i.userid_list)}}),t("div",{staticClass:"user-modal-avatar"},[t("i",{staticClass:"taskfont icon-avatar"},[e._v("\uE6F9")]),t("div",{staticClass:"project-name"},[t("div",{staticClass:"label"},[e._v(e._s(i.name))]),t("div",{staticClass:"subtitle"},[e._v(" "+e._s(i.userid_list.length)+" "+e._s(e.$L("\u9879\u76EE\u6210\u5458"))+" "),t("em",{staticClass:"all"},[e._v(e._s(e.$L("\u5DF2\u5168\u9009")))]),t("em",{staticClass:"some"},[e._v(e._s(e.$L("\u5DF2\u9009\u90E8\u5206")))])])])])],1)}),0):[e.showSelectAll||e.switchActive=="contact"?t("ul",{staticClass:"sticky-top"},[t("li",{staticClass:"select-view",class:e.selectClass("all")},[e.showSelectAll?t("div",{staticClass:"user-modal-label",on:{click:e.onSelectAll}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon("all")}}),t("span",[e._v(e._s(e.$L("\u5168\u9009")))])],1):e._e(),e.switchActive=="contact"?t("div",{staticClass:"user-modal-view"},[t("RadioGroup",{attrs:{type:"button","button-style":"solid"},model:{value:e.contactViewMode,callback:function(i){e.contactViewMode=i},expression:"contactViewMode"}},[t("Radio",{attrs:{label:"list"}},[e._v(e._s(e.$L("\u5217\u8868\u89C6\u56FE")))]),t("Radio",{attrs:{label:"department"}},[e._v(e._s(e.$L("\u90E8\u95E8\u89C6\u56FE")))])],1)],1):e._e()])]):e._e(),e._l(e.convertTwoList(e.lists),function(i){return[i.name!==null?t("ul",{key:`${i.id}-sticky`,staticClass:"sticky-top"},[t("li",{class:e.selectClass(i.userid_list)},[t("div",{staticClass:"user-modal-label",on:{click:function(n){return e.onSelectMultiple(i.userid_list)}}},[t("Icon",{staticClass:"user-modal-icon",attrs:{type:e.selectIcon(i.userid_list)}}),t("span",[e._v(e._s(i.name))])],1),t("div",{staticClass:"user-modal-view"},[e._v(e._s(i.list.length)+" "+e._s(e.$L("\u90E8\u95E8\u6210\u5458")))])])]):e._e(),t("ul",{key:`${i.id}-list`},e._l(i.list,function(n){return t("li",{key:n.userid,class:{selected:e.selects.includes(n.userid),disabled:e.isNoChoice(n.userid)},on:{click:function(r){return e.onSelectItem(n)}}},[e.selects.includes(n.userid)?t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-checkmark-circle"}}):e.isNoChoice(n.userid)?t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-remove-circle-outline"}}):t("Icon",{staticClass:"user-modal-icon",attrs:{type:"ios-radio-button-off"}}),n.type=="group"?t("div",{staticClass:"user-modal-avatar"},[n.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:n.avatar,size:40}}):n.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):n.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):n.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):n.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}}),t("div",{staticClass:"avatar-name"},[t("span",[e._v(e._s(n.name))])])],1):t("UserAvatar",{staticClass:"user-modal-avatar",attrs:{userid:n.userid,size:40,"show-name":""}})],1)}),0)]})]],2):t("div",{staticClass:"user-modal-empty"},[e.waitIng>0?t("Loading"):[t("div",{staticClass:"empty-icon"},[t("Icon",{attrs:{type:"ios-cafe-outline"}})],1),t("div",{staticClass:"empty-text"},[e._v(e._s(e.$L("\u6682\u65E0\u7ED3\u679C")))])]],2)],1)],1)},Do=[];const Eo={name:"UserSelect",props:{value:{type:[String,Number,Array],default:()=>[]},uncancelable:{type:Array,default:()=>[]},disabledChoice:{type:Array,default:()=>[]},projectId:{type:Number,default:0},noProjectId:{type:Number,default:0},dialogId:{type:Number,default:0},showBot:{type:Boolean,default:!1},showDisable:{type:Boolean,default:!1},multipleMax:{type:Number},avatarSize:{type:Number,default:28},avatarIcon:{type:Boolean,default:!0},avatarName:{type:Boolean,default:!1},addIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!1},title:{type:String},placeholder:{type:String},showSelectAll:{type:Boolean,default:!0},showDialog:{type:Boolean,default:!1},module:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},onlyGroup:{type:Boolean,default:!1},beforeSubmit:Function},data(){return{switchItems:[{key:"recent",label:"\u6700\u8FD1"},{key:"contact",label:"\u901A\u8BAF\u5F55"},{key:"project",label:"\u9879\u76EE\u6210\u5458"}],switchActive:"recent",contactViewMode:"list",loadIng:0,waitIng:0,submittIng:0,backspaceDelete:!1,values:[],selects:[],callback:null,closeCallback:null,recents:[],contacts:[],projects:[],showModal:!1,searchKey:null,searchCache:[]}},async mounted(){this.contactViewMode=await $A.IDBString("userSelectContactViewMode",this.contactViewMode)},watch:{value:{handler(e){typeof e=="number"?this.$emit("input",e>0?[e]:[]):typeof e=="string"&&(e=e.indexOf(",")>-1?e.split(","):[e],this.$emit("input",e.map(s=>$A.runNum(s)).filter(s=>s>0))),this.values=e},immediate:!0},isWhole:{handler(e){e||this.onlyGroup?this.switchActive="recent":this.switchActive="contact"},immediate:!0},showModal(e){e?(this.searchBefore(),this.upTitleWidth()):(this.searchKey="",this.closeCallback&&this.closeCallback()),this.$emit("on-show-change",e),$A.eeuiAppSetScrollDisabled(e&&this.windowPortrait)},searchKey(){this.searchBefore()},switchActive(){this.searchBefore()},contactViewMode(e){$A.IDBSet("userSelectContactViewMode",e)},isFullscreen(e){e&&this.upTitleWidth()},"selects.length"(){this.upTitleWidth()}},computed:{...z(["cacheDialogs"]),isFullscreen({windowWidth:e}){return e<576},isWhole({projectId:e,noProjectId:s,dialogId:t,onlyGroup:i}){return e===0&&s===0&&t===0&&!i},lists({switchActive:e,searchKey:s,recents:t,contacts:i,projects:n}){switch(e){case"recent":return s?t.filter(r=>$A.strExists(`${r.name} ${r.email} ${r.pinyin}`,s)):t;case"contact":return i;case"project":return n}return[]},isSelectAll({lists:e,selects:s}){return e.length>0&&e.filter(t=>s.includes(t.userid)).length===e.length},warpClass(){return{"select-module":this.module,"select-border":this.border,"select-whole":this.isWhole,"select-disabled":this.disabled}},addStyle({avatarSize:e}){return{width:e+"px",height:e+"px"}},localTitle({title:e}){return e===void 0?this.$L("\u9009\u62E9\u4F1A\u5458"):e},localPlaceholder({placeholder:e}){return e===void 0?this.$L("\u641C\u7D22"):e}},methods:{upTitleWidth(){!this.isFullscreen||this.$nextTick(()=>{const e=this.$refs.headerTitle,s=this.$refs.headerSubmit;e&&s&&(e.style.width=this.windowWidth-s.clientWidth*2+"px")})},isUncancelable(e){return this.uncancelable.length===0?!1:this.uncancelable.includes(e)},isDisabled(e){return this.disabledChoice.length===0?!1:this.disabledChoice.includes(e)},isNoChoice(e){return this.isUncancelable(e)||this.isDisabled(e)},formatSelect(e){return e.map(s=>$A.leftExists(s,"d:")?this.recents.find(t=>t.userid===s):{type:"user",userid:s})},convertTwoList(e){if(this.switchActive==="contact"&&this.contactViewMode==="department"){const s=new Map,t=[];return e.forEach(i=>{i.department_info&&i.department_info.length>0?i.department_info.forEach(n=>{s.has(n.id)||s.set(n.id,{id:n.id,name:n.name,list:[]}),s.get(n.id).list.push(i)}):t.push(i)}),t.length>0&&s.set(0,{id:0,name:this.$L("\u9ED8\u8BA4\u90E8\u95E8"),list:t}),Array.from(s.values()).map(i=>({...i,userid_list:i.list.map(n=>n.userid)}))}return[{id:0,name:null,list:e}]},selectIcon(e){if(e==="all")return this.isSelectAll?"ios-checkmark-circle":"ios-radio-button-off";if($A.isArray(e)&&e.length>0){const s=e.filter(t=>this.selects.includes(t)).length;if(s===e.length)return"ios-checkmark-circle";if(s>0)return"ios-remove-circle"}return"ios-radio-button-off"},selectClass(e){switch(this.selectIcon(e)){case"ios-checkmark-circle":return"selected";case"ios-remove-circle":return"somed"}return""},searchBefore(){!this.showModal||(this.switchActive==="recent"?this.searchRecent():this.switchActive==="contact"?this.searchContact():this.switchActive==="project"&&this.searchProject())},searchRecent(){this.recents=this.cacheDialogs.filter(e=>this.onlyGroup&&e.type!="group"||e.name===void 0||e.dialog_delete===1||!this.showBot&&e.bot?!1:this.showDialog||e.type==="user").sort((e,s)=>e.top_at||s.top_at?$A.sortDay(s.top_at,e.top_at):e.todo_num>0||s.todo_num>0?$A.sortFloat(s.todo_num,e.todo_num):$A.sortDay(s.last_at,e.last_at)).map(({id:e,name:s,pinyin:t,email:i,type:n,group_type:r,avatar:o,dialog_user:a})=>({name:s,pinyin:t,email:i,type:n,group_type:r,avatar:o,userid:n==="user"?a.userid:`d:${e}`}))},searchContact(){const e=this.searchKey,s=this.searchCache.find(t=>t.type==="contact"&&t.key==e);s&&(this.contacts=s.data,!s.more)||(this.waitIng++,setTimeout(()=>{if(this.searchKey!=e){this.waitIng--;return}setTimeout(()=>{this.loadIng++},300),this.searchRequest(e,1,()=>{this.loadIng--,this.waitIng--})},this.searchCache.length>0?300:0))},searchRequest(e,s,t){this.$store.dispatch("call",{url:"users/search",data:{keys:{key:e,project_id:this.projectId,no_project_id:this.noProjectId,dialog_id:this.dialogId,bot:this.showBot&&e?2:0,disable:this.showDisable&&e?2:0},page:s,pagesize:100,with_department:1}}).then(({data:i})=>{if(this.searchKey!=e){t();return}const n=i.data.map(a=>Object.assign(a,{type:"user"}));i.current_page>1&&n.unshift(...this.contacts),this.contacts=n;const r=this.searchCache.findIndex(a=>a.type==="contact"&&a.key==e),o={type:"contact",key:e,data:n,time:$A.dayjs().unix(),more:i.current_page<i.last_page};if(r>-1?this.searchCache.splice(r,1,o):this.searchCache.push(o),!o.more){t();return}i.current_page%5===0?$A.modalConfirm({content:"\u6570\u636E\u5DF2\u8D85\u8FC7"+i.to+"\u6761\uFF0C\u662F\u5426\u7EE7\u7EED\u52A0\u8F7D\uFF1F",onOk:()=>{this.searchRequest(e,i.current_page+1,t)},onCancel:t}):this.searchRequest(e,i.current_page+1,t)}).catch(({msg:i})=>{s===1&&(this.contacts=[]),$A.messageWarning(i),t()})},searchProject(){const e=this.searchKey,s=this.searchCache.find(t=>t.type==="project"&&t.key==e);s&&(this.projects=s.data,!s.more)||(this.waitIng++,setTimeout(()=>{if(this.searchKey!=e){this.waitIng--;return}setTimeout(()=>{this.loadIng++},300),this.$store.dispatch("call",{url:"project/lists",data:{type:"team",keys:{name:e},getuserid:"yes",getstatistics:"no"}}).then(({data:t})=>{if(this.searchKey!=e)return;const i=t.data.map(o=>Object.assign(o,{type:"project"}));this.projects=i;const n=this.searchCache.findIndex(o=>o.type==="project"&&o.key==e),r={type:"project",key:e,data:i,time:$A.dayjs().unix(),more:!1};n>-1?this.searchCache.splice(n,1,r):this.searchCache.push(r)}).catch(({msg:t})=>{this.projects=[],$A.messageWarning(t)}).finally(t=>{this.loadIng--,this.waitIng--})},this.searchCache.length>0?300:0))},onSelection(e=null,s=null){this.disabled||this.$nextTick(t=>{this.selects=$A.cloneJSON(this.values),this.callback=typeof e=="function"?e:null,this.closeCallback=typeof s=="function"?s:null,this.showModal=!0})},onSelectItem({userid:e}){if(this.selects.includes(e)){if(this.isUncancelable(e))return;this.selects=this.selects.filter(s=>s!=e)}else{if(this.isDisabled(e))return;if(this.multipleMax&&this.selects.length>=this.multipleMax){if(this.multipleMax>1){$A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF");return}this.selects=[]}this.selects.push(e),this.$nextTick(()=>{$A.scrollIntoViewIfNeeded(this.$refs.selected.querySelector(`li[data-id="${e}"]`),!0)})}},onSelectMultiple(e){switch(this.selectIcon(e)){case"ios-checkmark-circle":const s=e.filter(i=>!this.isUncancelable(i));s.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u53D6\u6D88"),this.selects=this.selects.filter(i=>!s.includes(i));break;default:const t=e.filter(i=>!this.isDisabled(i));t.length!=e.length&&$A.messageWarning("\u90E8\u5206\u6210\u5458\u7981\u6B62\u9009\u62E9"),this.selects=this.selects.concat(t.filter(i=>!this.selects.includes(i))),this.multipleMax&&this.selects.length>this.multipleMax&&($A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF"),this.selects=this.selects.slice(0,this.multipleMax));break}},onSelectAll(){if(this.isSelectAll){this.selects=$A.cloneJSON(this.uncancelable);return}this.lists.some(e=>{if(this.isDisabled(e.userid))return!1;if(this.multipleMax&&this.selects.length>=this.multipleMax)return $A.messageWarning("\u5DF2\u8D85\u8FC7\u6700\u5927\u9009\u62E9\u6570\u91CF"),!0;this.selects.includes(e.userid)||this.selects.push(e.userid)})},onRemoveItem(e){this.isUncancelable(e)||(this.selects=this.selects.filter(s=>s!=e))},onClickTitle(){const e=this.$refs.headerTitle,s=document.createRange();s.setStart(e,0),s.setEnd(e,e.childNodes.length||0);const t=s.getBoundingClientRect().width;Math.floor(t)>Math.floor(e.offsetWidth)&&$A.modalInfo({title:this.$L("\u5168\u6807\u9898"),content:this.localTitle,language:!1})},onSubmit(){if(this.submittIng>0)return;const e=$A.cloneJSON(this.values);this.values=$A.cloneJSON(this.selects),this.$emit("input",this.values),this.$emit("on-submit",this.values);const s=this.callback||this.beforeSubmit;if(!s){this.hide();return}const t=s(this.values);t&&t.then?(this.submittIng++,t.then(()=>{this.hide()}).catch(()=>{this.values=e,this.$emit("input",this.values)}).finally(()=>{this.submittIng--})):this.hide()},onKeydown(e){e.isComposing||e.key==="Process"||(this.backspaceDelete=e.key==="Backspace"&&!this.searchKey&&this.selects.length>0)},onKeyup(e){if(!(e.isComposing||e.key==="Process")&&e.key==="Backspace"&&this.backspaceDelete)for(let s=this.selects.length-1;s>=0;s--){const t=this.selects[s];if(!this.isUncancelable(t)){this.onRemoveItem(t);break}}},show(){this.onSelection()},hide(){this.showModal=!1}}},as={};var Lo=A(Eo,Io,Do,!1,Mo,null,null,null);function Mo(e){for(let s in as)this[s]=as[s]}var Ft=function(){return Lo.exports}(),Po=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"task-move",style:e.$A.generateColorVarStyle(e.task.flow_item_color,[10],"flow-item-custom-color")},[t("Cascader",{attrs:{data:e.cascaderData,clearable:!1,placeholder:e.$L("\u8BF7\u9009\u62E9\u9879\u76EE"),"load-data":e.cascaderLoadData,filterable:""},on:{"on-visible-change":function(i){e.cascaderShow=!e.cascaderShow}},model:{value:e.cascader,callback:function(i){e.cascader=i},expression:"cascader"}}),t("div",{staticClass:"task-move-content"},[t("div",{staticClass:"task-move-content-old"},[t("div",{staticClass:"task-move-title"},[e._v(e._s(e.beforeTitle))]),t("div",{staticClass:"task-move-row"},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u72B6\u6001"))+":")]),t("div",{staticClass:"flow"},[e.task.flow_item_name?t("span",{class:e.task.flow_item_status},[e._v(e._s(e.task.flow_item_name))]):e.task.complete_at?t("span",{staticClass:"end"},[e._v(e._s(e.$L("\u5DF2\u5B8C\u6210")))]):t("span",{staticClass:"start"},[e._v(e._s(e.$L("\u672A\u5B8C\u6210")))])])]),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u8D1F\u8D23\u4EBA"))+":")]),t("UserSelect",{staticClass:"item-content user",attrs:{"avatar-size":28,"project-id":e.task.project_id,"add-icon":!1,disabled:""},model:{value:e.ownerUserids,callback:function(i){e.ownerUserids=i},expression:"ownerUserids"}})],1),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u534F\u52A9\u4EBA"))+":")]),t("UserSelect",{staticClass:"item-content user",attrs:{"avatar-size":28,"project-id":e.task.project_id,"add-icon":!1,disabled:""},model:{value:e.assistUserids,callback:function(i){e.assistUserids=i},expression:"assistUserids"}})],1)]),t("div",{staticClass:"task-move-content-new"},[t("div",{staticClass:"task-move-title"},[e._v(e._s(e.afterTitle))]),t("div",{staticClass:"task-move-row"},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u72B6\u6001"))+":")]),t("TaskMenu",{ref:`taskMenu_${e.task.id}`,attrs:{task:e.tasks,"project-id":e.cascader[0],"color-show":!1,"operation-show":!1,"load-status":e.task.loading===!0,placement:"bottom-start"},on:{"on-update":e.onStatusUpdate}}),e.updateData.flow.flow_item_name?t("div",{staticClass:"flow"},[t("span",{class:e.updateData.flow.flow_item_status,on:{click:function(i){return i.stopPropagation(),e.openMenu(i,e.tasks)}}},[e._v(e._s(e.updateData.flow.flow_item_name))])]):e._e()],1),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u8D1F\u8D23\u4EBA"))+":")]),t("div",[t("UserSelect",{staticClass:"item-content user",attrs:{"multiple-max":10,"avatar-size":28,"project-id":e.cascader[0],"disabled-choice":e.updateData.assist_userids,"add-icon":!1},model:{value:e.updateData.owner_userids,callback:function(i){e.$set(e.updateData,"owner_userids",i)},expression:"updateData.owner_userids"}})],1)]),t("div",{staticClass:"task-move-row",class:{"not-flex":e.windowPortrait}},[t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u534F\u52A9\u4EBA"))+":")]),t("div",[t("UserSelect",{staticClass:"item-content user",attrs:{"multiple-max":10,"avatar-size":28,"project-id":e.cascader[0],"disabled-choice":e.updateData.owner_userids,"add-icon":!1},model:{value:e.updateData.assist_userids,callback:function(i){e.$set(e.updateData,"assist_userids",i)},expression:"updateData.assist_userids"}})],1)])])]),t("div",{staticClass:"ivu-modal-footer"},[t("div",{staticClass:"adaption"},[t("Button",{attrs:{type:"default"},on:{click:e.close}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Button",{attrs:{type:"primary",loading:e.loadIng>0},on:{click:e.onConfirm}},[e._v(e._s(e.confirmText))])],1)])],1)},jo=[];const Ro={name:"TaskMove",components:{TaskMenu:To,UserSelect:Ft},props:{value:{type:Boolean,default:!1},task:{type:Object,default:!1},type:{type:String,default:"move",validator:e=>["move","copy"].includes(e)}},data(){return{tasks:{},cascader:[],cascaderShow:!1,cascaderData:[],cascaderValue:"",cascaderLoading:0,cascaderAlready:[],loadIng:0,flowItemId:0,ownerUserids:[],assistUserids:[],updateData:{flow:{},owner_userids:[],assist_userids:[]}}},async mounted(){this.initData()},computed:{...z(["cacheProjects","cacheColumns"]),isCopy(){return this.type==="copy"},beforeTitle(){return this.$L(this.isCopy?"\u590D\u5236\u524D":"\u79FB\u52A8\u524D")},afterTitle(){return this.$L(this.isCopy?"\u590D\u5236\u540E":"\u79FB\u52A8\u540E")},confirmText(){return this.$L(this.isCopy?"\u590D\u5236":"\u786E\u5B9A")}},watch:{cascader(e){var t,i;this.tasks.flow_item_id=this.flowItemId,e[0]!=this.task.project_id?(this.updateData.flow.flow_item_id=0,this.updateData.flow.flow_item_name="",this.updateData.flow.flow_item_status=""):(this.updateData.flow.flow_item_id=this.flowItemId,this.updateData.flow.flow_item_name=this.task.flow_item_name,this.updateData.flow.flow_item_status=this.task.flow_item_status);const s=((i=(t=this.cacheProjects.find(n=>n.id==e[0]))==null?void 0:t.project_user)==null?void 0:i.map(n=>n.userid))||[];this.updateData.owner_userids=(this.task.task_user||[]).filter(n=>n.owner&&s.indexOf(n.userid)!==-1).sort((n,r)=>n.id-r.id).map(n=>n.userid),this.updateData.assist_userids=(this.task.task_user||[]).filter(n=>!n.owner&&s.indexOf(n.userid)!==-1).sort((n,r)=>n.id-r.id).map(n=>n.userid)}},methods:{initData(){this.flowItemId=this.task.flow_item_id,this.cascader=[this.task.project_id,this.task.column_id],this.ownerUserids=(this.task.task_user||[]).filter(s=>s.owner).sort((s,t)=>s.id-t.id).map(s=>s.userid),this.assistUserids=(this.task.task_user||[]).filter(s=>!s.owner).sort((s,t)=>s.id-t.id).map(s=>s.userid),this.tasks=JSON.parse(JSON.stringify(this.task));const e=$A.cloneJSON(this.cacheProjects).sort((s,t)=>s.top_at||t.top_at?$A.sortDay(t.top_at,s.top_at):t.id-s.id);this.cascaderData=e.map(s=>{const t=this.cacheColumns.filter(({project_id:n})=>n==s.id).map(n=>({value:n.id,label:n.name})),i={value:s.id,label:s.name,children:t};return t.length==0&&(i.loading=!1),i})},cascaderLoadData(e,s){e.loading=!0,this.$store.dispatch("getColumns",e.value).then(t=>{e.children=t.map(i=>({value:i.id,label:i.name})),e.loading=!1,s()}).catch(()=>{e.loading=!1,s()})},async onConfirm(){if(!this.isCopy&&this.task.project_id==this.cascader[0]&&this.task.column_id==this.cascader[1]){$A.messageError(this.$L("\u672A\u53D8\u66F4\u79FB\u52A8\u9879"));return}this.loadIng++;const e={task_id:this.task.id,project_id:this.cascader[0],column_id:this.cascader[1],flow_item_id:this.updateData.flow.flow_item_id||0,owner:this.updateData.owner_userids,assist:this.updateData.assist_userids};!this.updateData.flow.flow_item_id&&this.updateData.flow.flow_item_status&&(e.completed=this.updateData.flow.complete_at?1:0),this.$store.dispatch("call",{url:this.isCopy?"project/task/copy":"project/task/move",data:e}).then(({data:s,msg:t})=>{this.loadIng--,this.$store.dispatch("saveTask",s),$A.messageSuccess(t),this.close()}).catch(({msg:s,ret:t})=>{this.loadIng--,t==102?$A.messageError("\u8BF7\u9009\u62E9\u79FB\u52A8\u540E\u72B6\u6001"):$A.modalError(s)})},close(){this.$emit("input",!this.value)},openMenu(e,s){const t=this.$refs[`taskMenu_${s.id}`];t&&t.handleClick(e)},onStatusUpdate(e){e.flow_item_id||(this.updateData.flow.flow_item_name?(e.flow_item_status="",e.flow_item_name=""):(e.flow_item_status=e.complete_at?"end":"start",e.flow_item_name=this.$L(e.complete_at?"\u8F6C\u4E3A\u5DF2\u5B8C\u6210":"\u8F6C\u4E3A\u672A\u5B8C\u6210"))),this.tasks.flow_item_id=e.flow_item_id,this.updateData.flow=e}}},ls={};var Oo=A(Ro,Po,jo,!1,zo,null,null,null);function zo(e){for(let s in ls)this[s]=ls[s]}var Uo=function(){return Oo.exports}(),No=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"common-circle",style:e.style,attrs:{"data-id":e.percent}},[t("svg",{attrs:{viewBox:"0 0 28 28"}},[t("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[t("path",{staticClass:"common-circle-path",attrs:{d:"M-500-100h997V48h-997z"}}),t("g",{attrs:{"fill-rule":"nonzero"}},[t("path",{staticClass:"common-circle-g-path-ring",attrs:{"stroke-width":"3",d:"M14 25.5c6.351 0 11.5-5.149 11.5-11.5S20.351 2.5 14 2.5 2.5 7.649 2.5 14 7.649 25.5 14 25.5z"}}),t("path",{staticClass:"common-circle-g-path-core",attrs:{d:e.arc(e.args)}})])])])])},Bo=[];const Fo={name:"WCircle",props:{percent:{type:Number,default:0},size:{type:Number,default:120}},computed:{style(){let{size:e}=this;return this.isNumeric(e)&&(e+="px"),{width:e,height:e}},args(){const{percent:e}=this;let s=Math.min(360,360/100*e);return s==360?s=0:s==0&&(s=360),{x:14,y:14,r:14,start:360,end:s}}},methods:{isNumeric(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)},point(e,s,t,i){return[(e+Math.sin(i)*t).toFixed(2),(s-Math.cos(i)*t).toFixed(2)]},full(e,s,t,i){return i<=0?`M ${e-t} ${s} A ${t} ${t} 0 1 1 ${e+t} ${s} A ${t} ${t} 1 1 1 ${e-t} ${s} Z`:`M ${e-t} ${s} A ${t} ${t} 0 1 1 ${e+t} ${s} A ${t} ${t} 1 1 1 ${e-t} ${s} M ${e-i} ${s} A ${i} ${i} 0 1 1 ${e+i} ${s} A ${i} ${i} 1 1 1 ${e-i} ${s} Z`},part(e,s,t,i,n,r){const[o,a]=[n/360*2*Math.PI,r/360*2*Math.PI],l=[this.point(e,s,i,o),this.point(e,s,t,o),this.point(e,s,t,a),this.point(e,s,i,a)],c=a-o>Math.PI?"1":"0";return`M ${l[0][0]} ${l[0][1]} L ${l[1][0]} ${l[1][1]} A ${t} ${t} 0 ${c} 1 ${l[2][0]} ${l[2][1]} L ${l[3][0]} ${l[3][1]} A ${i} ${i} 0 ${c} 0 ${l[0][0]} ${l[0][1]} Z`},arc(e){const{x:s=0,y:t=0}=e;let{R:i=0,r:n=0,start:r,end:o}=e;return[i,n]=[Math.max(i,n),Math.min(i,n)],i<=0?"":r!==+r||o!==+o?this.full(s,t,i,n):Math.abs(r-o)<1e-6?"":Math.abs(r-o)%360<1e-6?this.full(s,t,i,n):([r,o]=[r%360,o%360],r>o&&(o+=360),this.part(s,t,i,n,r,o))}}},cs={};var Ho=A(Fo,No,Bo,!1,Wo,null,null,null);function Wo(e){for(let s in cs)this[s]=cs[s]}var Vo=function(){return Ho.exports}();var Yo=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"markdown-body dialog-markdown",domProps:{innerHTML:e._s(e.html)},on:{click:e.onCLick}})},qo=[];const Ko={name:"DialogMarkdown",props:{text:{type:String,default:""},beforeNavigate:{type:Function,default:null}},data(){return{mdi:null}},mounted(){this.copyCodeBlock()},updated(){this.copyCodeBlock()},computed:{html({text:e}){return Pt(e)}},methods:{copyCodeBlock(){this.$el.querySelectorAll(".code-block-wrapper").forEach(s=>{const t=s.querySelector(".code-block-header__copy"),i=s.querySelector(".code-block-body");t&&i&&t.getAttribute("data-copy")!=="click"&&(t.setAttribute("data-copy","click"),t.addEventListener("click",()=>{var n,r,o;(n=navigator.clipboard)!=null&&n.writeText?navigator.clipboard.writeText((r=i.textContent)!=null?r:""):this.copyContent({text:(o=i.textContent)!=null?o:"",origin:!0})}))})},copyContent(e){const s={origin:!0,...e};let t;s.origin?t=document.createElement("textarea"):t=document.createElement("input"),t.setAttribute("readonly","readonly"),t.value=s.text,document.body.appendChild(t),t.select(),document.execCommand("copy")&&document.execCommand("copy"),document.body.removeChild(t)},onCLick(e){const s=e.target;if(s.tagName==="A"){const t=s.getAttribute("href");if(t&&t.startsWith("dootask://")){e.preventDefault(),e.stopPropagation(),this.handleDooTaskLink(t);return}}this.$emit("click",e)},handleDooTaskLink(e){var l,c,d,h,u;if(e.startsWith("dootask://link/")){this.handleDeepLink(e);return}if(e.startsWith("dootask://ai-apply/")){this.handleAiApply(e);return}if(e.startsWith("dootask://ai-dismiss/")){this.handleAiDismiss(e);return}const s=e.match(/^dootask:\/\/(\w+)\/([^/]+)(?:\/(\d+))?$/);if(!s)return;const[,t,i,n]=s,r=/^\d+$/.test(i),o=r?parseInt(i,10):null,a=n?parseInt(n,10):null;switch(t){case"task":(l=this.beforeNavigate)==null||l.call(this),this.$store.dispatch("openTask",{id:a&&a>0?a:o});break;case"project":(c=this.beforeNavigate)==null||c.call(this),this.goForward({name:"manage-project",params:{projectId:o}});break;case"file":r?((d=this.beforeNavigate)==null||d.call(this),this.goForward({name:"manage-file",params:{folderId:0,fileId:null,shakeId:o}}),this.$store.state.fileShakeId=o,setTimeout(()=>{this.$store.state.fileShakeId=0},600)):window.open($A.mainUrl("single/file/"+i));break;case"contact":(h=this.beforeNavigate)==null||h.call(this),this.$store.dispatch("openDialogUserid",o).catch(({msg:p})=>{$A.modalError(p)});break;case"message":(u=this.beforeNavigate)==null||u.call(this),this.$store.dispatch("openDialog",o).then(()=>{a&&(this.$store.state.dialogSearchMsgId=a)}).catch(({msg:p})=>{$A.modalError(p)});break}},handleDeepLink(e){var t;const s=e.match(/^dootask:\/\/link\/([a-z_]+)/);!s||!an(s[1])||((t=this.beforeNavigate)==null||t.call(this),ln(s[1]))},handleAiApply(e){const s=e.match(/^dootask:\/\/ai-apply\/(\w+)\/(\d+)\/(\d+)(?:\?(.*))?$/);if(!s)return;const[,t,i,n,r]=s,o=new URLSearchParams(r||""),a={task_id:parseInt(i,10),msg_id:parseInt(n,10),type:t};t==="assignee"&&o.get("userid")&&(a.userid=parseInt(o.get("userid"),10)),t==="similar"&&o.get("related")&&(a.related=parseInt(o.get("related"),10)),this.$store.dispatch("applyAiSuggestion",a).then(({data:l})=>{l.msg&&this.$store.dispatch("saveDialogMsg",l.msg),this.applyAiSuggestionByType(l.type,l.task_id,l.result,o)}).catch(({msg:l})=>{$A.modalError(l)})},applyAiSuggestionByType(e,s,t,i){var n;switch(e){case"description":this.$store.dispatch("taskUpdate",{task_id:s,content:Pt(t.content)}).then(()=>{$A.messageSuccess("\u5E94\u7528\u6210\u529F")}).catch(({msg:d})=>{$A.modalError(d)});break;case"subtasks":this.createSubtasksSequentially(s,t.content||[]);break;case"assignee":const r=i.get("userid");if(!r||isNaN(parseInt(r,10))){$A.modalError("\u8BF7\u9009\u62E9\u8D1F\u8D23\u4EBA");return}const o=parseInt(r,10),a=this.$store.state.cacheTasks.find(d=>d.id===s),l=((n=a==null?void 0:a.task_user)==null?void 0:n.filter(d=>d.owner===1).map(d=>d.userid))||[],c=[...new Set([...l,o])];this.$store.dispatch("taskUpdate",{task_id:s,owner:c}).then(()=>{$A.messageSuccess("\u5E94\u7528\u6210\u529F")}).catch(({msg:d})=>{$A.modalError(d)});break;case"similar":$A.messageSuccess("\u5E94\u7528\u6210\u529F");break;default:$A.modalError("\u672A\u77E5\u7684\u5EFA\u8BAE\u7C7B\u578B")}},createSubtasksSequentially(e,s){if(!s||s.length===0){$A.modalError("\u6CA1\u6709\u6709\u6548\u7684\u5B50\u4EFB\u52A1");return}const t=s.length,i=n=>{if(n>=t){$A.messageSuccess("\u5E94\u7528\u6210\u529F");return}const r=s[n];if(!r||typeof r!="string"||!r.trim()){i(n+1);return}this.$store.dispatch("taskAddSub",{task_id:e,name:r.trim()}).then(()=>{i(n+1)}).catch(({msg:o})=>{console.warn(`\u521B\u5EFA\u5B50\u4EFB\u52A1\u5931\u8D25: ${r}`,o),i(n+1)})};i(0)},handleAiDismiss(e){const s=e.match(/^dootask:\/\/ai-dismiss\/(\w+)\/(\d+)\/(\d+)(\?.*)?$/);if(!s)return;const[,t,i,n,r]=s,o=new URLSearchParams(r||""),a={task_id:parseInt(i,10),msg_id:parseInt(n,10),type:t};t==="assignee"&&o.get("userid")&&(a.userid=parseInt(o.get("userid"),10)),t==="similar"&&o.get("related")&&(a.related=parseInt(o.get("related"),10)),this.$store.dispatch("dismissAiSuggestion",a).then(({data:l})=>{l.msg&&this.$store.dispatch("saveDialogMsg",l.msg),$A.messageSuccess(this.$L("\u5DF2\u5FFD\u7565"))}).catch(({msg:l})=>{$A.modalError(l)})}}},us={};var Go=A(Ko,Yo,qo,!1,Jo,null,null,null);function Jo(e){for(let s in us)this[s]=us[s]}var J=function(){return Go.exports}(),nv=Object.freeze(Object.defineProperty({__proto__:null,default:J},Symbol.toStringTag,{value:"Module"})),Qo=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-text no-dark-content"},[e.isOverdueMsg?t("div",{staticClass:"content-overdue"},[e._v(e._s(e.$L("\u6B64\u6D88\u606F\u5DF2\u7ECF\u8FC7\u671F")))]):e.msg.type==="md"?t("DialogMarkdown",{attrs:{text:e.msg.text},on:{click:e.viewText}}):t("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.msg.text,e.userId))},on:{click:e.viewText}}),e.translation?[t("div",{staticClass:"content-divider"},[t("span"),t("div",{staticClass:"divider-label translation-label",on:{click:e.viewText}},[e._v(e._s(e.translation.label))]),t("span")]),e.msg.type==="md"?t("DialogMarkdown",{staticClass:"content-translation",attrs:{text:e.translation.content}}):t("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.translation.content,e.userId))}})]:e._e()],2)},Xo=[];const Zo={components:{DialogMarkdown:J},props:{msgId:Number,msg:Object,createdAt:String},computed:{...z(["cacheTranslations","cacheTranslationLanguage"]),translation({cacheTranslations:e,msgId:s,cacheTranslationLanguage:t}){const i=e.find(n=>n.key===`msg-${s}`&&n.language===t);return i||null},isOverdueMsg({msg:e,createdAt:s}){return e.text==="..."&&$A.dayjs(s).isBefore($A.daytz().subtract(10,"minute"))}},methods:{viewText(e){this.$emit("viewText",e)}}},ds={};var ea=A(Zo,Qo,Xo,!1,ta,null,null,null);function ta(e){for(let s in ds)this[s]=ds[s]}var sa=function(){return ea.exports}(),ia=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-text no-dark-content"},[e.msg.type==="md"?t("DialogMarkdown",{attrs:{text:e.msg.text},on:{click:e.viewText}}):t("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.msg.text,e.userId))},on:{click:e.viewText}}),t("div",{staticClass:"content-longtext-footer"},[t("span",{on:{click:e.downFile}},[e._v(e._s(e.$L("\u67E5\u770B\u8BE6\u60C5")))])])],1)},na=[];const ra={components:{DialogMarkdown:J},props:{msgId:Number,msg:Object},methods:{viewText(e){this.$emit("viewText",e)},downFile(){this.$emit("downFile")}}},hs={};var oa=A(ra,ia,na,!1,aa,null,null,null);function aa(e){for(let s in hs)this[s]=hs[s]}var la=function(){return oa.exports}(),ca=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{class:`content-file ${e.msg.type}`},[t("div",{staticClass:"dialog-file"},[e.msg.type==="img"?t("img",{staticClass:"file-img",style:e.imageStyle(e.msg),attrs:{src:e.imageSrc(e.msg)},on:{click:e.viewFile}}):e.isVideoFile(e.msg)?t("div",{staticClass:"file-video",style:e.imageStyle(e.msg),on:{click:e.viewFile}},[e.msg.thumb?t("img",{attrs:{src:e.msg.thumb}}):t("video",{attrs:{width:e.imageStyle(e.msg,"width"),height:e.imageStyle(e.msg,"height")}},[t("source",{attrs:{src:e.msg.path,type:"video/mp4"}})]),e._m(0)]):t("div",{staticClass:"file-box",on:{click:e.downFile}},[t("img",{staticClass:"file-thumb",attrs:{src:e.msg.thumb}}),t("div",{staticClass:"file-info"},[t("div",{staticClass:"file-name"},[e._v(e._s(e.msg.name))]),t("div",{staticClass:"file-size"},[e._v(e._s(e.$A.bytesToSize(e.msg.size)))])])]),e.msg.percentage?t("div",{staticClass:"file-percentage"},[t("span",{style:e.fileStyle(e.msg.percentage)})]):e._e()])])},ua=[function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"file-play"},[t("div",{staticClass:"play-icon no-dark-content"},[t("i",{staticClass:"taskfont"},[e._v("\uE745")])])])}];const da={props:{msg:Object},methods:{viewFile(){this.$emit("viewFile")},downFile(){this.$emit("downFile")},fileStyle(e){return e?{width:`${e}%`}:{}},imageStyle({width:e,height:s,thumb:t},i="style"){if(e&&s){const n=$A.imageRatioExceed(e,s,3);$A.imageRatioJudge(t)&&n>0&&(e>s?e=s*n:s=e*n);let r=220,o=220,a=e,l=s;return(e>r||s>o)&&(e>s?(a=r,l=s*(r/e)):(a=e*(o/s),l=o)),i==="width"?a:i==="height"?l:{width:a+"px",height:l+"px"}}return i==="width"||i==="height"?0:{}},imageSrc({width:e,height:s,thumb:t}){const i=$A.imageRatioExceed(e,s,3);return $A.imageRatioJudge(t)&&i>0&&(t=$A.thumbRestore(t)+`/crop/ratio:${i},percentage:320x0`),t},isVideoFile(e){return e.type==="file"&&e.ext==="mp4"&&e.width>0&&e.height>0}}},ps={};var ha=A(da,ca,ua,!1,pa,null,null,null);function pa(e){for(let s in ps)this[s]=ps[s]}var fa=function(){return ha.exports}(),ma=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-record no-dark-content"},[t("div",{staticClass:"dialog-record",class:{playing:e.audioPlaying===e.msg.path},style:e.recordStyle(e.msg),on:{click:e.playRecord}},[t("div",{staticClass:"record-time"},[e._v(e._s(e.recordDuration(e.msg.duration)))]),t("div",{staticClass:"record-icon taskfont"})]),e.msg.text?[e._m(0),t("div",{staticClass:"content-additional"},[e._v(e._s(e.msg.text))])]:e._e(),e.translation?[t("div",{staticClass:"content-divider"},[t("span"),t("div",{staticClass:"divider-label translation-label",on:{click:e.viewText}},[e._v(e._s(e.translation.label))]),t("span")]),t("div",{staticClass:"content-additional"},[e._v(e._s(e.translation.content))])]:e._e()],2)},ga=[function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-divider"},[t("span",{staticClass:"divider-full"})])}];const _a={props:{msgId:Number,msg:Object},computed:{...z(["audioPlaying","cacheTranslations","cacheTranslationLanguage"]),translation({cacheTranslations:e,msgId:s,cacheTranslationLanguage:t}){const i=e.find(n=>n.key===`msg-${s}`&&n.language===t);return i||null}},methods:{playRecord(){this.$emit("playRecord")},recordStyle(e){const{duration:s}=e;return{width:50+Math.min(180,Math.floor(s/200))+"px"}},recordDuration(e){const s=Math.floor(e/6e4),t=Math.floor(e/1e3)%60;return s>0?`${s}:${t}\u2033`:`${Math.max(1,t)}\u2033`},viewText(e){this.$emit("viewText",e)}}},fs={};var va=A(_a,ma,ga,!1,ya,null,null,null);function ya(e){for(let s in fs)this[s]=fs[s]}var wa=function(){return va.exports}(),$a=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-location no-dark-content"},[t("div",{staticClass:"location-title"},[e._v(e._s(e.msg.title))]),e.msg.address?t("div",{staticClass:"location-address"},[e._v(e._s(e.msg.address))]):e._e(),t("div",{staticClass:"location-preview",style:e.imageStyle(e.msg)})])},ka=[];const ba={props:{msg:Object},methods:{imageStyle({width:e,height:s,thumb:t}){if(!t)return{};const i={backgroundImage:`url(${t})`};if(e&&s){const n=$A.scaleToScale(e,s,600);i.backgroundSize=`${n.width}px ${n.height}px`}return i}}},ms={};var Aa=A(ba,$a,ka,!1,Ca,null,null,null);function Ca(e){for(let s in ms)this[s]=ms[s]}var Sa=function(){return Aa.exports}(),xa=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-meeting no-dark-content"},[t("ul",{staticClass:"dialog-meeting",class:{"meeting-end":!!e.msg.end_at}},[t("li",[t("em",[e._v(e._s(e.$L("\u4F1A\u8BAE\u4E3B\u9898")))]),e._v(" "+e._s(e.msg.name)+" ")]),t("li",[t("em",[e._v(e._s(e.$L("\u4F1A\u8BAE\u521B\u5EFA\u4EBA")))]),t("UserAvatar",{attrs:{userid:e.msg.userid,"show-icon":!1,"show-name":!0}})],1),t("li",[t("em",[e._v(e._s(e.$L("\u9891\u9053ID")))]),e._v(" "+e._s(e.channelID(e.msg.meetingid))+" ")]),e.msg.end_at?t("li",{staticClass:"meeting-operation"},[e._v(" "+e._s(e.$L("\u4F1A\u8BAE\u5DF2\u7ED3\u675F"))+" ")]):t("li",{staticClass:"meeting-operation",on:{click:e.openMeeting}},[e._v(" "+e._s(e.$L("\u70B9\u51FB\u52A0\u5165\u4F1A\u8BAE"))+" "),t("i",{staticClass:"taskfont"},[e._v("\uE68B")])])])])},Ta=[];const Ia={props:{msg:Object},methods:{openMeeting(){this.$emit("openMeeting")},channelID(e){return e.replace(/^(.{3})(.{3})(.*)$/,"$1 $2 $3")}}},gs={};var Da=A(Ia,xa,Ta,!1,Ea,null,null,null);function Ea(e){for(let s in gs)this[s]=gs[s]}var La=function(){return Da.exports}(),Ma=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-text content-word-chain no-dark-content"},[t("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.msg.text,e.userId))}}),t("ul",{class:{expand:e.unfoldWordChainData.indexOf(e.msgId)!==-1}},[e._l((e.msg.list||[]).filter(function(i){return i.type=="case"}),function(i){return t("li",[e._v(" "+e._s(e.$L("[example_label].\u4F8B"))+" "+e._s(i.text)+" ")])}),e._l((e.msg.list||[]).filter(function(i){return i.type!="case"&&i.text}),function(i,n){return t("li",[n==2&&e.msg.list.length>4?t("span",{staticClass:"expand",on:{click:e.unfoldWordChain}},[e._v(" ..."+e._s(e.$L("\u5C55\u5F00"))+"... ")]):e._e(),t("span",{class:{shrink:n>=2&&e.msg.list.length>4}},[e._v(" "+e._s(n+1)+". "+e._s(i.text)+" ")])])}),t("li",{staticClass:"participate",on:{click:e.onWordChain}},[e._v(" "+e._s(e.$L("\u53C2\u4E0E\u63A5\u9F99"))+" "),t("i",{staticClass:"taskfont"},[e._v("\uE703")])])],2)])},Pa=[];const ja={props:{msg:Object,msgId:Number,unfoldWordChainData:Array},methods:{unfoldWordChain(){this.$emit("unfoldWordChain")},onWordChain(){this.$emit("onWordChain")}}},_s={};var Ra=A(ja,Ma,Pa,!1,Oa,null,null,null);function Oa(e){for(let s in _s)this[s]=_s[s]}var za=function(){return Ra.exports}(),Ua=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-text content-word-vote no-dark-content"},[t("div",{staticClass:"vote-msg-head"},[t("i",{staticClass:"taskfont"},[e._v("\uE7FD")]),t("em",[e._v(e._s(e.$L("\u6295\u7968")))]),t("span",[e._v(e._s(e.msg.multiple==1?e.$L("\u591A\u9009"):e.$L("\u5355\u9009")))]),t("span",[e._v(e._s(e.msg.anonymous==1?e.$L("\u533F\u540D"):e.$L("\u5B9E\u540D")))])]),t("pre",{domProps:{innerHTML:e._s(e.$A.formatTextMsg(e.msg.text,e.userId))}}),(e.msg.votes||[]).filter(function(i){return i.userid==e.userId}).length==0?[e.msg.multiple==0?t("RadioGroup",{attrs:{vertical:""},model:{value:e.voteData[e.msg.uuid],callback:function(i){e.$set(e.voteData,e.msg.uuid,i)},expression:"voteData[msg.uuid]"}},e._l(e.msg.list||[],function(i,n){return t("Radio",{key:n,attrs:{label:i.id}},[e._v(" "+e._s(i.text)+" ")])}),1):t("CheckboxGroup",{model:{value:e.voteData[e.msg.uuid],callback:function(i){e.$set(e.voteData,e.msg.uuid,i)},expression:"voteData[msg.uuid]"}},e._l(e.msg.list||[],function(i,n){return t("Checkbox",{key:n,attrs:{label:i.id}},[e._v(" "+e._s(i.text)+" ")])}),1),t("div",{staticClass:"btn-row"},[(e.voteData[e.msg.uuid]||[]).length==0?t("Button",{staticClass:"ivu-btn-grey",attrs:{disabled:""}},[e._v(e._s(e.$L("\u8BF7\u9009\u62E9\u540E\u6295\u7968")))]):t("Button",{staticClass:"no-dark-content",attrs:{type:"warning",loading:e.msg._loadIng>0},on:{click:function(i){return e.onVote("vote")}}},[e._v(e._s(e.$L("\u7ACB\u5373\u6295\u7968")))])],1)]:[t("div",{staticClass:"vote-result-body"},[t("ul",e._l(e.msg.list||[],function(i){return t("li",[t("div",{staticClass:"vote-option-title"},[e._v(e._s(i.text))]),t("div",{staticClass:"ticket-num"},[t("span",[e._v(e._s(e.getVoteProgress(e.msg,i.id).num)+e._s(e.$L("[vote_unit].\u7968")))]),t("span",[e._v(e._s(e.getVoteProgress(e.msg,i.id).progress+"%"))])]),t("Progress",{attrs:{percent:Number(e.getVoteProgress(e.msg,i.id).progress),"stroke-width":5,"hide-info":""}}),e.msg.anonymous==0?t("div",{staticClass:"avatar-row"},[e._l((e.msg.votes||[]).filter(function(n){return n.votes.indexOf(i.id)!=-1}),function(n){return[t("UserAvatar",{attrs:{userid:n.userid,size:18}})]})],2):e._e()],1)}),0)]),e.msg.state==1&&e.msg.userid==e.userId?t("div",{staticClass:"btn-row"},[t("Button",{attrs:{type:"warning",loading:e.msg._loadIng>0},on:{click:function(i){return e.onVote("again")}}},[e._v(e._s(e.$L("\u518D\u6B21\u53D1\u9001")))]),t("Button",{attrs:{type:"warning",loading:e.msg._loadIng>0},on:{click:function(i){return e.onVote("finish")}}},[e._v(e._s(e.$L("\u7ED3\u675F\u6295\u7968")))])],1):e._e()]],2)},Na=[];const Ba={props:{msg:Object,voteData:Object},methods:{getVoteProgress(e,s){const t=e.votes.filter(n=>(n.votes||"").indexOf(s)!=-1).length,i=t?(t/e.votes.length*100).toFixed(2):"0.00";return{num:t,progress:i}},onVote(e){this.$emit("onVote",e)}}},vs={};var Fa=A(Ba,Ua,Na,!1,Ha,null,null,null);function Ha(e){for(let s in vs)this[s]=vs[s]}var Wa=function(){return Fa.exports}(),Va=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[e._v(" "+e._s(e.$L("\u60A8\u597D\uFF0C\u6211\u662F\u673A\u5668\u4EBA"))+"\uFF1A"+e._s(e.msg.data.nickname)+"\uFF0C"+e._s(e.$L("\u6211\u7684\u673A\u5668\u4EBAID\u662F"))+"\uFF1A"+e._s(e.msg.data.userid)+"\uFF0C"+e._s(e.$L("\u4F60\u53EF\u4EE5\u53D1\u9001"))+" "),t("span",{staticClass:"mark-color mark-set"},[e._v("/help")]),e._v(" "+e._s(e.$L("\u67E5\u770B\u6211\u652F\u6301\u4EC0\u4E48\u547D\u4EE4"))+"\u3002 ")])},Ya=[];const qa={props:{msg:Object},data(){return{}},computed:{},methods:{}},ys={};var Ka=A(qa,Va,Ya,!1,Ga,null,null,null);function Ga(e){for(let s in ys)this[s]=ys[s]}var Ja=function(){return Ka.exports}(),Qa=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},Xa=[];const Za={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{IDLabel(){return this.msg.manager?this.$L("\u673A\u5668\u4EBAID"):""},content(){return["### {{\u60A8\u53EF\u4EE5\u901A\u8FC7\u53D1\u9001\u4EE5\u4E0B\u547D\u4EE4\u6765\u63A7\u5236\u6211}}","","| {{\u547D\u4EE4}} | {{\u8BF4\u660E}} |","| ------ | ------ |",this.msg.manager?"| ~/list~ | {{\u673A\u5668\u4EBA\u5217\u8868}} |":null,this.msg.manager?"| ~/newbot ({{\u673A\u5668\u4EBA\u540D\u79F0}})~ | {{\u521B\u5EFA\u673A\u5668\u4EBA}} |":null,this.msg.manager?null:"| ~/info~ | {{\u67E5\u770B\u673A\u5668\u4EBA\u8BE6\u60C5}} |","","### {{\u4FEE\u6539\u673A\u5668\u4EBA}}","","| {{\u547D\u4EE4}} | {{\u8BF4\u660E}} |","| ------ | ------ |","| ~/setname:IDLabel: ({{\u673A\u5668\u4EBA\u540D\u79F0}})~ | {{\u4FEE\u6539\u673A\u5668\u4EBA\u540D\u79F0}} |","| ~/deletebot:IDLabel:~ | {{\u5220\u9664\u673A\u5668\u4EBA}} |","| ~/clearday:IDLabel: ({{\u5929\u6570}})~ | {{\u8BBE\u7F6E\u4FDD\u7559\u6D88\u606F\u65F6\u95F4\uFF08\u9ED8\u8BA430\u5929\uFF09}} |","| ~/webhook:IDLabel: [url]~ | {{\u8BBE\u7F6E\u6D88\u606FWebhook\uFF08\u8BE6\u60C5\u8BF7\u770B API\u63A5\u53E3\u6587\u6863\uFF09}} |","","### {{\u673A\u5668\u4EBA\u8BBE\u7F6E}}","","| {{\u547D\u4EE4}} | {{\u8BF4\u660E}} |","| ------ | ------ |","| ~/token:IDLabel:~ | {{\u751F\u6210Token\u4EE4\u724C}} |","| ~/revoke:IDLabel:~ | {{\u64A4\u9500\u673A\u5668\u4EBAToken\u4EE4\u724C}} |","","### {{\u4F1A\u8BDD\u7BA1\u7406}}","","| {{\u547D\u4EE4}} | {{\u8BF4\u660E}} |","| ------ | ------ |","| ~/dialog:IDLabel: [{{\u641C\u7D22\u5173\u952E\u8BCD}}]~ | {{\u67E5\u770B\u4F1A\u8BDDID}} |","","### {{API\u63A5\u53E3\u6587\u6863}}","","| {{\u547D\u4EE4}} | {{\u8BF4\u660E}} |","| ------ | ------ |","| ~/api~ | {{\u67E5\u770B\u63A5\u53E3\u5217\u8868}} |"].filter(Boolean).map(e=>e.replace(/~([^~]+)~/g,(s,t)=>'<span class="mark-color mark-set">'+t+"</span>").replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t)).replace(/:IDLabel:/g," {"+this.IDLabel+"}")).join(`
`)}}},ws={};var el=A(Za,Qa,Xa,!1,tl,null,null,null);function tl(e){for(let s in ws)this[s]=ws[s]}var sl=function(){return el.exports}(),il=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},nl=[];const rl={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u6211\u7684\u673A\u5668\u4EBA}}","","| ID | {{\u540D\u79F0}} | {{\u6E05\u7406\u65F6\u95F4}} | Webhook |","| ------ | ------ | ------ | ------ |",...this.msg.data.map(e=>"| "+e.userid+" | "+e.nickname+" | "+e.clear_day+" | "+(e.webhook_url?"\u221A":"")+" |")].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
`)}},methods:{}},$s={};var ol=A(rl,il,nl,!1,al,null,null,null);function al(e){for(let s in $s)this[s]=$s[s]}var ll=function(){return ol.exports}(),cl=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},ul=[];const dl={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u673A\u5668\u4EBA\u8BE6\u60C5}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |","| {{\u4FDD\u7559\u6D88\u606F\u65F6\u95F4}} | "+this.msg.data.clear_day+" |","| {{\u6700\u540E\u4E00\u6B21\u6E05\u7406\u65F6\u95F4}} | "+this.msg.data.clear_at+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
`)}},methods:{}},ks={};var hl=A(dl,cl,ul,!1,pl,null,null,null);function pl(e){for(let s in ks)this[s]=ks[s]}var fl=function(){return hl.exports}(),ml=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},gl=[];const _l={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u521B\u5EFA\u6210\u529F}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
`)}},methods:{}},bs={};var vl=A(_l,ml,gl,!1,yl,null,null,null);function yl(e){for(let s in bs)this[s]=bs[s]}var wl=function(){return vl.exports}(),$l=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},kl=[];const bl={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u8BBE\u7F6E\u540D\u79F0\u6210\u529F}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
`)}},methods:{}},As={};var Al=A(bl,$l,kl,!1,Cl,null,null,null);function Cl(e){for(let s in As)this[s]=As[s]}var Sl=function(){return Al.exports}(),xl=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},Tl=[];const Il={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u5220\u9664\u6210\u529F}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
`)}},methods:{}},Cs={};var Dl=A(Il,xl,Tl,!1,El,null,null,null);function El(e){for(let s in Cs)this[s]=Cs[s]}var Ll=function(){return Dl.exports}(),Ml=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},Pl=[];const jl={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u751F\u6210Token\u4EE4\u724C}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| <span style='white-space:nowrap;'>{{\u673A\u5668\u4EBAID}}</span> | "+this.msg.data.userid+" |","| <span style='white-space:nowrap;'>{{\u673A\u5668\u4EBA\u540D\u79F0}}</span> | "+this.msg.data.nickname+" |","| Token | "+this.msg.data.token+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
`)}},methods:{}},Ss={};var Rl=A(jl,Ml,Pl,!1,Ol,null,null,null);function Ol(e){for(let s in Ss)this[s]=Ss[s]}var zl=function(){return Rl.exports}(),Ul=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},Nl=[];const Bl={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u64A4\u9500\u673A\u5668\u4EBAToken\u4EE4\u724C}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
`)}},methods:{}},xs={};var Fl=A(Bl,Ul,Nl,!1,Hl,null,null,null);function Hl(e){for(let s in xs)this[s]=xs[s]}var Wl=function(){return Fl.exports}(),Vl=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},Yl=[];const ql={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u8BBE\u7F6EWebhook\u5730\u5740}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |","| {{Webhook\u5730\u5740}} | "+this.msg.data.webhook_url+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
`)}},methods:{}},Ts={};var Kl=A(ql,Vl,Yl,!1,Gl,null,null,null);function Gl(e){for(let s in Ts)this[s]=Ts[s]}var Jl=function(){return Kl.exports}(),Ql=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},Xl=[];const Zl={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u8BBE\u7F6E\u4FDD\u7559\u6D88\u606F\u65F6\u95F4}}","","| {{\u5C5E\u6027}} | {{\u7ED3\u679C}} |","| ------ | ------ |","| {{\u673A\u5668\u4EBAID}} | "+this.msg.data.userid+" |","| {{\u673A\u5668\u4EBA\u540D\u79F0}} | "+this.msg.data.nickname+" |","| {{\u6E05\u7406\u5468\u671F}} | "+this.msg.data.clear_day+" {{\u5929}} |","| {{\u4E0B\u6B21\u6E05\u7406}} | "+this.msg.data.clear_at+" |"].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
`)}},methods:{}},Is={};var ec=A(Zl,Ql,Xl,!1,tc,null,null,null);function tc(e){for(let s in Is)this[s]=Is[s]}var sc=function(){return ec.exports}(),ic=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},nc=[];const rc={components:{DialogMarkdown:J},props:{msg:Object},data(){return{}},computed:{content(){return["### {{\u673A\u5668\u4EBA}} "+this.msg.data.nickname+" (ID:"+this.msg.data.userid+") {{\u5DF2\u52A0\u5165\u7684\u4F1A\u8BDD}}\uFF1A","","| {{\u4F1A\u8BDDID}} | {{\u4F1A\u8BDD\u540D\u79F0}} |","| ------ | ------ |",...this.msg.data.list.map(e=>"| "+e.id+" | "+e.name+(e.type==="user"?"{{ (\u4E2A\u4EBA)}}":"")+" |")].map(e=>e.replace(/\{\{([^}]+)\}\}/g,(s,t)=>this.$L(t))).join(`
`)}},methods:{}},Ds={};var oc=A(rc,ic,nc,!1,ac,null,null,null);function ac(e){for(let s in Ds)this[s]=Ds[s]}var lc=function(){return oc.exports}(),cc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("DialogMarkdown",{attrs:{text:e.content}})},uc=[];const dc={components:{DialogMarkdown:J},props:{msg:Object},data(){return{isChinese:/^zh/.test(M),chineseTemplate:`
## API \u4F7F\u7528\u8BF4\u660E
---
## \u4E00\u3001\u673A\u5668\u4EBA\u4E3B\u52A8\u53D1\u9001\u6D88\u606F
<details>
<summary>
<span style="font-size:1.25em;font-weight:bold;padding-left:8px">\u53D1\u9001\u6587\u672C\u6D88\u606F\u63A5\u53E3</span>
</summary>
<br>
**\u529F\u80FD\u8BF4\u660E**\uFF1A\u5F00\u53D1\u8005\u53EF\u4EE5\u901A\u8FC7\u8C03\u7528\u6B64API\u63A5\u53E3\uFF0C\u8BA9\u673A\u5668\u4EBA\u4E3B\u52A8\u5411\u6307\u5B9A\u7684\u5BF9\u8BDD\uFF08\u7FA4\u7EC4\u6216\u79C1\u804A\uFF09\u53D1\u9001\u6587\u672C\u6D88\u606F\u3002\u8FD9\u662F\u4E00\u4E2A\u4E3B\u52A8\u63A8\u9001\u63A5\u53E3\uFF0C\u9002\u7528\u4E8E\u673A\u5668\u4EBA\u9700\u8981\u5B9A\u65F6\u901A\u77E5\u3001\u544A\u8B66\u63D0\u9192\u7B49\u4E3B\u52A8\u53D1\u9001\u6D88\u606F\u7684\u573A\u666F\u3002
#### \u63A5\u53E3\u4FE1\u606F
| \u5C5E\u6027 | \u7ED3\u679C |
|------|------|
| **\u8BF7\u6C42\u65B9\u5F0F** | POST |
| **\u63A5\u53E3\u5730\u5740** | \`{{sendApiUrl}}\` |
| **\u8BA4\u8BC1\u65B9\u5F0F** | \u901A\u8FC7\u8BF7\u6C42\u5934\u4E2D\u7684 version \u548C token \u8FDB\u884C\u8BA4\u8BC1 |
| **\u8D85\u65F6\u65F6\u95F4** | 30\u79D2 |
#### \u8BF7\u6C42\u5934
| \u53C2\u6570\u540D | \u503C | \u5FC5\u586B | \u8BF4\u660E |
|--------|-----|------|------|
| \`version\` | \`{{version}}\` | \u221A | \u7CFB\u7EDF\u7248\u672C\u53F7 |
| \`token\` | \u673A\u5668\u4EBAToken | \u221A | \u673A\u5668\u4EBA\u7684\u8BBF\u95EE\u4EE4\u724C\uFF0C\u53EF\u5728\u673A\u5668\u4EBA\u8BBE\u7F6E\u4E2D\u83B7\u53D6 |
#### \u8BF7\u6C42\u53C2\u6570
| \u53C2\u6570\u540D | \u8BF4\u660E | \u7C7B\u578B | \u5FC5\u586B | \u793A\u4F8B\u503C |
|--------|------|------|------|--------|
| \`dialog_id\` | \u5BF9\u8BDDID | string | \u221A | |
| \`text\` | \u6D88\u606F\u5185\u5BB9 | string | \u221A | |
| \`text_type\` | \u6587\u672C\u7C7B\u578B | string | | html \u6216 md |
| \`key\` | \u6D88\u606F\u552F\u4E00\u6807\u8BC6 | string | | \u7559\u7A7A\u5219\u81EA\u52A8\u751F\u6210 |
| \`silence\` | \u9759\u9ED8\u6A21\u5F0F | string | | yes \u6216 no |
| \`reply_id\` | \u56DE\u590D\u6D88\u606FID | string | | |
</details>
---
## \u4E8C\u3001Webhook \u4E8B\u4EF6\u63A8\u9001
**\u529F\u80FD\u8BF4\u660E**\uFF1A\u5F53\u7279\u5B9A\u4E8B\u4EF6\u53D1\u751F\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5411\u673A\u5668\u4EBA\u914D\u7F6E\u7684 Webhook \u5730\u5740\u53D1\u9001 POST \u8BF7\u6C42\uFF0C\u63A8\u9001\u4E8B\u4EF6\u6570\u636E\u3002\u8FD9\u662F\u4E00\u4E2A\u88AB\u52A8\u63A5\u6536\u673A\u5236\uFF0C\u9002\u7528\u4E8E\u673A\u5668\u4EBA\u9700\u8981\u54CD\u5E94\u7528\u6237\u6D88\u606F\u3001\u76D1\u542C\u7FA4\u7EC4\u4E8B\u4EF6\u7B49\u573A\u666F\u3002
**\u91CD\u8981\u63D0\u793A**\uFF1A
- \u8BF7\u786E\u4FDD Webhook \u5730\u5740\u53EF\u6B63\u5E38\u8BBF\u95EE\uFF0C\u4E14\u80FD\u5728\u8D85\u65F6\u65F6\u95F4\u5185\u54CD\u5E94
- \u5EFA\u8BAE\u5BF9\u63A8\u9001\u7684\u6570\u636E\u8FDB\u884C\u7B7E\u540D\u9A8C\u8BC1\uFF0C\u786E\u4FDD\u6570\u636E\u6765\u6E90\u53EF\u4FE1
- Webhook \u63A5\u53E3\u5E94\u5C3D\u5FEB\u8FD4\u56DE\u54CD\u5E94\uFF08200 OK\uFF09\uFF0C\u590D\u6742\u4E1A\u52A1\u903B\u8F91\u5EFA\u8BAE\u5F02\u6B65\u5904\u7406
<details>
<summary>
<span style="font-size:1.25em;font-weight:bold;padding-left:8px">\u63A5\u6536\u6D88\u606F\u4E8B\u4EF6\uFF08<code>message</code>\uFF09</span>
</summary>
<br>
**\u89E6\u53D1\u65F6\u673A**\uFF1A\u5F53\u673A\u5668\u4EBA\u5728\u5BF9\u8BDD\u4E2D\u6536\u5230\u65B0\u6D88\u606F\u65F6\uFF08\u5305\u62EC\u88AB@\u63D0\u53CA\u6216\u79C1\u804A\u6D88\u606F\uFF09\uFF0C\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u63A8\u9001\u5230\u914D\u7F6E\u7684 Webhook \u5730\u5740\u3002
**\u8D85\u65F6\u65F6\u95F4**\uFF1A30\u79D2
**\u4F7F\u7528\u573A\u666F**\uFF1A\u667A\u80FD\u95EE\u7B54\u3001\u5173\u952E\u8BCD\u56DE\u590D\u3001\u6D88\u606F\u8BB0\u5F55\u3001\u81EA\u52A8\u5BA2\u670D\u7B49
#### \u63A8\u9001\u53C2\u6570
| \u53C2\u6570\u540D | \u8BF4\u660E | \u7C7B\u578B |
|--------|------|------|
| \`event\` | \u4E8B\u4EF6\u7C7B\u578B\uFF0C\u56FA\u5B9A\u503C \`message\` | string |
| \`text\` | \u6D88\u606F\u7684\u6587\u672C\u5185\u5BB9 | string |
| \`reply_text\` | \u5982\u679C\u662F\u56DE\u590D\u6D88\u606F\uFF0C\u5219\u5305\u542B\u88AB\u56DE\u590D\u6D88\u606F\u7684\u6587\u672C\u5185\u5BB9 | string |
| \`token\` | \u673A\u5668\u4EBAToken | string |
| \`session_id\` | \u4F1A\u8BDDID {{sessionDesc}} | string |
| \`dialog_id\` | \u5BF9\u8BDDID | string |
| \`dialog_type\` | \u5BF9\u8BDD\u7C7B\u578B | string |
| \`msg_id\` | \u6D88\u606FID | string |
| \`msg_uid\` | \u6D88\u606F\u53D1\u9001\u4EBA\u7684\u7528\u6237ID | string |
| \`msg_user\` | \u6D88\u606F\u53D1\u9001\u4EBA\u7684\u8BE6\u7EC6\u4FE1\u606F\uFF08\u6635\u79F0\u3001\u5934\u50CF\u7B49\uFF09 | object |
| \`mention\` | \u673A\u5668\u4EBA\u662F\u5426\u88AB@\u63D0\u53CA | boolean |
| \`bot_uid\` | \u673A\u5668\u4EBAID | string |
| \`version\` | \u7CFB\u7EDF\u7248\u672C | string |
</details>
<details>
<summary>
<span style="font-size:1.25em;font-weight:bold;padding-left:8px">\u6253\u5F00\u4F1A\u8BDD\u4E8B\u4EF6\uFF08<code>dialog_open</code>\uFF09</span>
</summary>
<br>
**\u89E6\u53D1\u65F6\u673A**\uFF1A\u5F53\u7528\u6237\u6253\u5F00\u4E0E\u673A\u5668\u4EBA\u7684\u4F1A\u8BDD\u7A97\u53E3\u65F6\uFF08\u9996\u6B21\u6253\u5F00\u6216\u91CD\u65B0\u8FDB\u5165\uFF09\uFF0C\u7CFB\u7EDF\u4F1A\u63A8\u9001\u6B64\u4E8B\u4EF6\u3002
**\u8D85\u65F6\u65F6\u95F4**\uFF1A10\u79D2
**\u4F7F\u7528\u573A\u666F**\uFF1A\u6B22\u8FCE\u8BED\u3001\u83DC\u5355\u5C55\u793A\u3001\u4F1A\u8BDD\u521D\u59CB\u5316\u3001\u7528\u6237\u884C\u4E3A\u7EDF\u8BA1\u7B49
#### \u63A8\u9001\u53C2\u6570
| \u53C2\u6570\u540D | \u8BF4\u660E | \u7C7B\u578B |
|--------|------|------|
| \`event\` | \u4E8B\u4EF6\u7C7B\u578B\uFF0C\u56FA\u5B9A\u503C \`dialog_open\` | string |
| \`dialog_id\` | \u5BF9\u8BDDID | number |
| \`dialog_type\` | \u5BF9\u8BDD\u7C7B\u578B | string |
| \`group_type\` | \u7FA4\u7EC4\u7C7B\u578B\uFF08\u4EC5\u7FA4\u7EC4\u5BF9\u8BDD\u65F6\u6709\u503C\uFF09 | string |
| \`dialog_name\` | \u5BF9\u8BDD\u540D\u79F0\uFF08\u7FA4\u7EC4\u540D\u79F0\u6216\u7528\u6237\u6635\u79F0\uFF09 | string |
| \`member\` | \u6253\u5F00\u4F1A\u8BDD\u7684\u6210\u5458\u4FE1\u606F | object |
| \`operator\` | \u64CD\u4F5C\u4EBA\u4FE1\u606F\uFF08\u901A\u5E38\u4E0E member \u76F8\u540C\uFF09 | object |
</details>
<details>
<summary>
<span style="font-size:1.25em;font-weight:bold;padding-left:8px">\u6210\u5458\u52A0\u5165\u4E8B\u4EF6\uFF08<code>member_join</code>\uFF09</span>
</summary>
<br>
**\u89E6\u53D1\u65F6\u673A**\uFF1A\u5F53\u65B0\u6210\u5458\u52A0\u5165\u673A\u5668\u4EBA\u6240\u5728\u7684\u7FA4\u7EC4\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u63A8\u9001\u6B64\u4E8B\u4EF6\u3002
**\u8D85\u65F6\u65F6\u95F4**\uFF1A10\u79D2
**\u4F7F\u7528\u573A\u666F**\uFF1A\u65B0\u6210\u5458\u6B22\u8FCE\u8BED\u3001\u7FA4\u89C4\u5219\u63D0\u9192\u3001\u81EA\u52A8\u5206\u914D\u6743\u9650\u3001\u6210\u5458\u7EDF\u8BA1\u7B49
#### \u63A8\u9001\u53C2\u6570
| \u53C2\u6570\u540D | \u8BF4\u660E | \u7C7B\u578B |
|--------|------|------|
| \`event\` | \u4E8B\u4EF6\u7C7B\u578B\uFF0C\u56FA\u5B9A\u503C \`member_join\` | string |
| \`dialog_id\` | \u7FA4\u7EC4\u5BF9\u8BDDID | number |
| \`dialog_type\` | \u5BF9\u8BDD\u7C7B\u578B\uFF0C\u6B64\u5904\u56FA\u5B9A\u4E3A \`group\` | string |
| \`group_type\` | \u7FA4\u7EC4\u7C7B\u578B | string |
| \`dialog_name\` | \u7FA4\u7EC4\u540D\u79F0 | string |
| \`member\` | \u52A0\u5165\u7684\u6210\u5458\u4FE1\u606F\uFF08\u6635\u79F0\u3001ID\u7B49\uFF09 | object |
| \`operator\` | \u64CD\u4F5C\u4EBA\u4FE1\u606F\uFF08\u9080\u8BF7\u4EBA\uFF0C\u5982\u679C\u662F\u81EA\u5DF1\u52A0\u5165\u5219\u4E0E member \u76F8\u540C\uFF09 | object |
</details>
<details>
<summary>
<span style="font-size:1.25em;font-weight:bold;padding-left:8px">\u6210\u5458\u9000\u51FA\u4E8B\u4EF6\uFF08<code>member_leave</code>\uFF09</span>
</summary>
<br>
**\u89E6\u53D1\u65F6\u673A**\uFF1A\u5F53\u6210\u5458\u9000\u51FA\u6216\u88AB\u79FB\u51FA\u673A\u5668\u4EBA\u6240\u5728\u7684\u7FA4\u7EC4\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u63A8\u9001\u6B64\u4E8B\u4EF6\u3002
**\u8D85\u65F6\u65F6\u95F4**\uFF1A10\u79D2
**\u4F7F\u7528\u573A\u666F**\uFF1A\u6210\u5458\u53D8\u52A8\u8BB0\u5F55\u3001\u6743\u9650\u6E05\u7406\u3001\u79BB\u804C\u63D0\u9192\u3001\u6210\u5458\u7EDF\u8BA1\u7B49
#### \u63A8\u9001\u53C2\u6570
| \u53C2\u6570\u540D | \u8BF4\u660E | \u7C7B\u578B |
|--------|------|------|
| \`event\` | \u4E8B\u4EF6\u7C7B\u578B\uFF0C\u56FA\u5B9A\u503C \`member_leave\` | string |
| \`dialog_id\` | \u7FA4\u7EC4\u5BF9\u8BDDID | number |
| \`dialog_type\` | \u5BF9\u8BDD\u7C7B\u578B\uFF0C\u6B64\u5904\u56FA\u5B9A\u4E3A \`group\` | string |
| \`group_type\` | \u7FA4\u7EC4\u7C7B\u578B | string |
| \`dialog_name\` | \u7FA4\u7EC4\u540D\u79F0 | string |
| \`member\` | \u9000\u51FA\u7684\u6210\u5458\u4FE1\u606F\uFF08\u6635\u79F0\u3001ID\u7B49\uFF09 | object |
| \`operator\` | \u64CD\u4F5C\u4EBA\u4FE1\u606F\uFF08\u8E22\u51FA\u8005\uFF0C\u5982\u679C\u662F\u81EA\u5DF1\u9000\u51FA\u5219\u4E0E member \u76F8\u540C\uFF09 | object |
</details>
---
**\u63D0\u793A**\uFF1A\u8BF7\u59A5\u5584\u4FDD\u7BA1\u673A\u5668\u4EBA Token\uFF0C\u786E\u4FDD Webhook \u63A5\u53E3\u7A33\u5B9A\u53EF\u7528\u5E76\u53CA\u65F6\u54CD\u5E94\u3002\u66F4\u591A\u5E2E\u52A9\u8BF7\u53D1\u9001 <span class="mark-color mark-set">/help</span> \u547D\u4EE4\u67E5\u770B\u3002
`,englishTemplate:`
## API Documentation
---
## 1. Bot Proactive Message Sending
<details>
<summary>
<span style="font-size:1.25em;font-weight:bold;padding-left:8px">Send Text Message API</span>
</summary>
<br>
**Description**: Developers can call this API to allow the bot to proactively send text messages to specified conversations (groups or private chats). This is a proactive push interface, suitable for scenarios where the bot needs to send scheduled notifications, alerts, and other proactive messages.
#### API Information
| Property | Value |
|------|------|
| **Request Method** | POST |
| **API Endpoint** | \`{{sendApiUrl}}\` |
| **Authentication** | Authenticate via version and token in request headers |
| **Timeout** | 30 seconds |
#### Request Headers
| Parameter | Value | Required | Description |
|--------|-----|------|------|
| \`version\` | \`{{version}}\` | \u221A | System version number |
| \`token\` | Bot Token | \u221A | Bot access token, available in bot settings |
#### Request Parameters
| Parameter | Description | Type | Required | Example |
|--------|------|------|------|--------|
| \`dialog_id\` | Dialog ID | string | \u221A | |
| \`text\` | Message content | string | \u221A | |
| \`text_type\` | Text type | string | | html or md |
| \`key\` | Unique message identifier | string | | Auto-generated if left empty |
| \`silence\` | Silent mode | string | | yes or no |
| \`reply_id\` | Reply message ID | string | | |
</details>
---
## 2. Webhook Event Push
**Description**: When specific events occur, the system will automatically send POST requests to the Webhook URL configured for the bot, pushing event data. This is a passive receiving mechanism, suitable for scenarios where the bot needs to respond to user messages, monitor group events, etc.
**Important Notes**:
- Ensure the Webhook URL is accessible and can respond within the timeout period
- Recommend verifying the signature of pushed data to ensure the source is trustworthy
- Webhook interface should return a response (200 OK) as quickly as possible; complex business logic should be handled asynchronously
<details>
<summary>
<span style="font-size:1.25em;font-weight:bold;padding-left:8px">Message Received Event (<code>message</code>)</span>
</summary>
<br>
**Trigger Timing**: When the bot receives a new message in a conversation (including being @mentioned or private messages), the system will automatically push to the configured Webhook URL.
**Timeout**: 30 seconds
**Use Cases**: Intelligent Q&A, keyword replies, message logging, automatic customer service, etc.
#### Push Parameters
| Parameter | Description | Type |
|--------|------|------|
| \`event\` | Event type, fixed value \`message\` | string |
| \`text\` | Text content of the message | string |
| \`reply_text\` | If it's a reply message, contains the text content of the replied message | string |
| \`token\` | Bot Token | string |
| \`session_id\` | Session ID {{sessionDesc}} | string |
| \`dialog_id\` | Dialog ID | string |
| \`dialog_type\` | Dialog type | string |
| \`msg_id\` | Message ID | string |
| \`msg_uid\` | User ID of message sender | string |
| \`msg_user\` | Detailed information of message sender (nickname, avatar, etc.) | object |
| \`mention\` | Whether the bot was @mentioned | boolean |
| \`bot_uid\` | Bot ID | string |
| \`version\` | System version | string |
</details>
<details>
<summary>
<span style="font-size:1.25em;font-weight:bold;padding-left:8px">Dialog Open Event (<code>dialog_open</code>)</span>
</summary>
<br>
**Trigger Timing**: When a user opens a conversation window with the bot (first time or re-entry), the system will push this event.
**Timeout**: 10 seconds
**Use Cases**: Welcome messages, menu display, session initialization, user behavior statistics, etc.
#### Push Parameters
| Parameter | Description | Type |
|--------|------|------|
| \`event\` | Event type, fixed value \`dialog_open\` | string |
| \`dialog_id\` | Dialog ID | number |
| \`dialog_type\` | Dialog type | string |
| \`group_type\` | Group type (only for group conversations) | string |
| \`dialog_name\` | Dialog name (group name or user nickname) | string |
| \`member\` | Information of member opening the session | object |
| \`operator\` | Operator information (usually same as member) | object |
</details>
<details>
<summary>
<span style="font-size:1.25em;font-weight:bold;padding-left:8px">Member Join Event (<code>member_join</code>)</span>
</summary>
<br>
**Trigger Timing**: When a new member joins a group where the bot is present, the system will push this event.
**Timeout**: 10 seconds
**Use Cases**: New member welcome messages, group rules reminders, automatic permission assignment, member statistics, etc.
#### Push Parameters
| Parameter | Description | Type |
|--------|------|------|
| \`event\` | Event type, fixed value \`member_join\` | string |
| \`dialog_id\` | Group dialog ID | number |
| \`dialog_type\` | Dialog type, fixed as \`group\` | string |
| \`group_type\` | Group type | string |
| \`dialog_name\` | Group name | string |
| \`member\` | Information of joining member (nickname, ID, etc.) | object |
| \`operator\` | Operator information (inviter, same as member if self-joined) | object |
</details>
<details>
<summary>
<span style="font-size:1.25em;font-weight:bold;padding-left:8px">Member Leave Event (<code>member_leave</code>)</span>
</summary>
<br>
**Trigger Timing**: When a member leaves or is removed from a group where the bot is present, the system will push this event.
**Timeout**: 10 seconds
**Use Cases**: Member change records, permission cleanup, departure reminders, member statistics, etc.
#### Push Parameters
| Parameter | Description | Type |
|--------|------|------|
| \`event\` | Event type, fixed value \`member_leave\` | string |
| \`dialog_id\` | Group dialog ID | number |
| \`dialog_type\` | Dialog type, fixed as \`group\` | string |
| \`group_type\` | Group type | string |
| \`dialog_name\` | Group name | string |
| \`member\` | Information of leaving member (nickname, ID, etc.) | object |
| \`operator\` | Operator information (remover, same as member if self-left) | object |
</details>
---
**Tip**: Please keep the bot Token secure, ensure the Webhook interface is stable and responds promptly. For more help, send the <span class="mark-color mark-set">/help</span> command.
`}},computed:{content(){const e={sendApiUrl:$A.apiUrl("dialog/msg/sendtext"),version:this.msg.version,sessionDesc:/^(ai-|user-session-)/.test(this.msg.email)?"":` <span style='color:#999;padding-left:4px;'>(${this.$L("\u8BE5\u673A\u5668\u4EBA\u4E0D\u652F\u6301")})</span>`};return(this.isChinese?this.chineseTemplate:this.englishTemplate).replace(/\{\{([^}]+)\}\}/g,(t,i)=>e[i]||i).trim()}},methods:{}},Es={};var hc=A(dc,cc,uc,!1,pc,null,null,null);function pc(e){for(let s in Es)this[s]=Es[s]}var fc=function(){return hc.exports}(),mc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"open-approve-details",attrs:{"data-id":e.msg.data.id}},[t("b",[e._v(e._s(e.$L("(*)\u63D0\u4EA4\u7684\u300C(*)\u300D\u5F85\u4F60\u5BA1\u6279",e.msg.data.nickname,e.$L(e.msg.data.proc_def_name))))]),t("div",{staticClass:"cause"},[t("p",[e._v(e._s(e.$L("\u72B6\u6001"))+"\uFF1A"),t("b",[e._v(e._s(e.$L(e.statusText)))])]),t("p",[e._v(e._s(e.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),t("span",{staticClass:"mark-color"},[e._v("@"+e._s(e.msg.data.nickname))]),e._v(" "+e._s(e.msg.data.department))]),t("b",[e._v(e._s(e.$L("\u8BE6\u60C5")))]),e.msg.data.type?t("p",[e._v(e._s(e.$L("\u7C7B\u578B"))+"\uFF1A"+e._s(e.$L(e.msg.data.type)))]):e._e(),e.msg.data.start_time?t("p",[e._v(e._s(e.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.start_time)),e.msg.data.start_day_of_week?[e._v(" ("+e._s(e.$L(e.msg.data.start_day_of_week))+")")]:e._e()],2):e._e(),e.msg.data.end_time?t("p",[e._v(e._s(e.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.end_time)),e.msg.data.end_day_of_week?[e._v(" ("+e._s(e.$L(e.msg.data.end_day_of_week))+")")]:e._e()],2):e._e(),e.msg.data.description?t("p",[e._v(e._s(e.$L("\u4E8B\u7531"))+"\uFF1A"+e._s(e.msg.data.description))]):e._e(),e.msg.data.thumb?t("p",{domProps:{innerHTML:e._s(e.imageHtml(e.msg.data.thumb))}}):e._e()])])},gc=[];const _c={props:{msg:Object},data(){return{}},computed:{statusText({msg:e}){switch(e.action){case"pass":return"\u5DF2\u540C\u610F";case"refuse":return"\u5DF2\u62D2\u7EDD";case"withdraw":return"\u5DF2\u64A4\u9500";default:return"\u5F85\u5BA1\u6279"}}},methods:{imageHtml(e){const s=$A.imageRatioHandle({src:e.url,width:e.width,height:e.height,crops:{ratio:5,percentage:"320x0"},scaleSize:220});return`<img src="${s.src}" width="${s.width}" height="${s.height}" />`}}},Ls={};var vc=A(_c,mc,gc,!1,yc,null,null,null);function yc(e){for(let s in Ls)this[s]=Ls[s]}var wc=function(){return vc.exports}(),$c=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"open-approve-details",attrs:{"data-id":e.msg.data.id}},[t("b",[e._v(e._s(e.$L("\u6284\u9001(*)\u63D0\u4EA4\u7684\u300C(*)\u300D\u8BB0\u5F55",e.msg.data.nickname,e.$L(e.msg.data.proc_def_name))))]),t("div",{staticClass:"cause"},[t("p",[e._v(e._s(e.$L("\u72B6\u6001"))+"\uFF1A"),t("b",[e._v(e._s(e.msg.is_finished?e.$L("\u5DF2\u5B8C\u6210"):e.$L("\u5BA1\u6279\u4E2D")))])]),t("p",[e._v(e._s(e.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),t("span",{staticClass:"mark-color"},[e._v("@"+e._s(e.msg.data.nickname))]),e._v(" "+e._s(e.msg.data.department))]),t("b",[e._v(e._s(e.$L("\u8BE6\u60C5")))]),e.msg.data.type?t("p",[e._v(e._s(e.$L("\u7C7B\u578B"))+"\uFF1A"+e._s(e.$L(e.msg.data.type)))]):e._e(),e.msg.data.start_time?t("p",[e._v(e._s(e.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.start_time)),e.msg.data.start_day_of_week?[e._v(" ("+e._s(e.$L(e.msg.data.start_day_of_week))+")")]:e._e()],2):e._e(),e.msg.data.end_time?t("p",[e._v(e._s(e.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.end_time)),e.msg.data.end_day_of_week?[e._v(" ("+e._s(e.$L(e.msg.data.end_day_of_week))+")")]:e._e()],2):e._e(),e.msg.data.description?t("p",[e._v(e._s(e.$L("\u4E8B\u7531"))+"\uFF1A"+e._s(e.msg.data.description))]):e._e()])])},kc=[];const bc={props:{msg:Object},data(){return{}},computed:{},methods:{}},Ms={};var Ac=A(bc,$c,kc,!1,Cc,null,null,null);function Cc(e){for(let s in Ms)this[s]=Ms[s]}var Sc=function(){return Ac.exports}(),xc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"open-approve-details",attrs:{"data-id":e.msg.data.id}},[t("b",[e._v(e._s(e.$L("(*)\u8BC4\u8BBA\u4E86(*)\u7684\u300C(*)\u300D\u5BA1\u6279",e.msg.data.comment_nickname,e.msg.data.nickname,e.$L(e.msg.data.proc_def_name))))]),t("div",{staticClass:"cause"},[t("p",[e._v(e._s(e.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),t("span",{staticClass:"mark-color"},[e._v("@"+e._s(e.msg.data.nickname))]),e._v(" "+e._s(e.msg.data.department))]),t("b",[e._v(e._s(e.$L("\u8BC4\u8BBA\u5185\u5BB9")))]),t("p",[e._v(e._s(e.msg.data.comment_content))]),e.msg.data.thumb?t("p",{domProps:{innerHTML:e._s(e.imageHtml(e.msg.data.thumb))}}):e._e()])])},Tc=[];const Ic={props:{msg:Object},data(){return{}},methods:{imageHtml(e){const s=$A.imageRatioHandle({src:e.url,width:e.width,height:e.height,crops:{ratio:5,percentage:"320x0"},scaleSize:220});return`<img src="${s.src}" width="${s.width}" height="${s.height}" />`}}},Ps={};var Dc=A(Ic,xc,Tc,!1,Ec,null,null,null);function Ec(e){for(let s in Ps)this[s]=Ps[s]}var Lc=function(){return Dc.exports}(),Mc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"open-approve-details",attrs:{"data-id":e.msg.data.id}},[t("b",[e._v(e._s(e.title))]),t("div",{staticClass:"cause"},[t("p",[e._v(e._s(e.$L("\u72B6\u6001"))+"\uFF1A"),t("b",[e._v(e._s(e.$L(e.statusText)))])]),t("p",[e._v(e._s(e.$L("\u7533\u8BF7\u4EBA"))+"\uFF1A"),t("span",{staticClass:"mark-color"},[e._v("@"+e._s(e.msg.data.start_nickname))]),e._v(" "+e._s(e.msg.data.department))]),t("b",[e._v(e._s(e.$L("\u8BE6\u60C5")))]),e.msg.data.type?t("p",[e._v(e._s(e.$L("\u7C7B\u578B"))+"\uFF1A"+e._s(e.$L(e.msg.data.type)))]):e._e(),e.msg.data.start_time?t("p",[e._v(e._s(e.$L("\u5F00\u59CB\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.start_time)),e.msg.data.start_day_of_week?[e._v(" ("+e._s(e.$L(e.msg.data.start_day_of_week))+")")]:e._e()],2):e._e(),e.msg.data.end_time?t("p",[e._v(e._s(e.$L("\u7ED3\u675F\u65F6\u95F4"))+"\uFF1A"+e._s(e.msg.data.end_time)),e.msg.data.end_day_of_week?[e._v(" ("+e._s(e.$L(e.msg.data.end_day_of_week))+")")]:e._e()],2):e._e(),e.msg.data.description?t("p",[e._v(e._s(e.$L("\u4E8B\u7531"))+"\uFF1A"+e._s(e.msg.data.description))]):e._e()])])},Pc=[];const jc={props:{msg:Object},data(){return{}},computed:{title({msg:e}){const s=this.$L(e.data.proc_def_name);return e.action==="pass"?this.$L("\u60A8\u53D1\u8D77\u7684\u300C(*)\u300D\u5DF2\u901A\u8FC7",s):this.$L("\u60A8\u53D1\u8D77\u7684\u300C(*)\u300D\u88AB(*)\u62D2\u7EDD",s,e.data.nickname)},statusText({msg:e}){switch(e.action){case"pass":return"\u5DF2\u901A\u8FC7";case"refuse":return"\u5DF2\u62D2\u7EDD";case"withdraw":return"\u5DF2\u64A4\u9500";default:return"\u5904\u7406\u4E2D"}}},methods:{}},js={};var Rc=A(jc,Mc,Pc,!1,Oc,null,null,null);function Oc(e){for(let s in js)this[s]=js[s]}var zc=function(){return Rc.exports}(),Uc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t("p",[e._v(e._s(e.$L(e.msg.title)))]),t("p",[e._v("\xA0")]),e._l(e.msg.list,function(i,n){return t("p",{key:n},[t("span",{staticClass:"mention task",attrs:{"data-id":i.id}},[e._v("#"+e._s(i.name))])])})],2)},Nc=[];const Bc={props:{msg:Object},data(){return{}},computed:{},methods:{}},Rs={};var Fc=A(Bc,Uc,Nc,!1,Hc,null,null,null);function Hc(e){for(let s in Rs)this[s]=Rs[s]}var Wc=function(){return Fc.exports}(),Vc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t("p",[t("b",[e._v(e._s(e.$L(e.msg.title)))])]),t("p",[e._v("\xA0")]),t("p",[e._v(e._s(e.$L("\u6587\u4EF6\u540D"))+": "+e._s(e.msg.name))]),t("p",[e._v(e._s(e.$L("\u6587\u4EF6\u5927\u5C0F"))+": "+e._s(e.$A.bytesToSize(e.msg.size)))]),t("p",{staticStyle:{"margin-top":"10px"}},[t("Button",{staticClass:"no-dark-content",attrs:{to:e.msg.url,target:"_blank",type:"warning"}},[e._v(e._s(e.$L("\u7ACB\u5373\u4E0B\u8F7D")))])],1)])},Yc=[];const qc={props:{msg:Object},data(){return{}},computed:{},methods:{}},Os={};var Kc=A(qc,Vc,Yc,!1,Gc,null,null,null);function Gc(e){for(let s in Os)this[s]=Os[s]}var Jc=function(){return Kc.exports}(),Qc=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",e._l(e.items,function(i,n){return t("p",{key:n,style:i.style},[e._v(e._s(i.content))])}),0)},Xc=[];const Zc={props:{msg:Object},data(){return{}},computed:{items({msg:e}){const{content:s}=e;return $A.isArray(s)?s.map(t=>this.formatContent(t)):[this.formatContent(s)]}},methods:{formatContent(e){return $A.isJson(e)?{content:e.language===!1||this.msg.source==="api"?e.content:this.$L(e.content),style:e.style||{}}:{content:this.$L(e),style:{}}}}},zs={};var eu=A(Zc,Qc,Xc,!1,tu,null,null,null);function tu(e){for(let s in zs)this[s]=zs[s]}var su=function(){return eu.exports}(),iu=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.isBot?t("div",[e._v(" "+e._s(e.$L("\u4E0D\u652F\u6301\u7684\u6307\u4EE4"))+" "),t("span",{staticClass:"warning-color"},[e._v(e._s(e.msg.type))]),e._v("\uFF0C"+e._s(e.$L("\u4F60\u53EF\u4EE5\u53D1\u9001"))+" "),t("span",{staticClass:"mark-color mark-set"},[e._v("/help")]),e._v(" "+e._s(e.$L("\u67E5\u770B\u5E2E\u52A9\u83DC\u5355"))+"\u3002 ")]):t("div",[e._v(" "+e._s(e.$L("\u672A\u77E5\u7684\u6D88\u606F"))+" ")])},nu=[];const ru={props:{msg:Object},data(){return{}},computed:{isBot(){return/^\//.test(this.msg.type)}},methods:{}},Us={};var ou=A(ru,iu,nu,!1,au,null,null,null);function au(e){for(let s in Us)this[s]=Us[s]}var lu=function(){return ou.exports}(),cu=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{class:`content-template no-dark-content ${e.msg.type}`,on:{click:e.viewText}},[t(e.currentTemplate,{tag:"component",attrs:{msg:e.msg}})],1)},uu=[];const du={props:{msg:Object},data(){return{}},computed:{currentTemplate(){switch(this.msg.type){case"/hello":return Ja;case"/help":return sl;case"/list":return ll;case"/info":return fl;case"/newbot":return wl;case"/setname":return Sl;case"/deletebot":return Ll;case"/token":return zl;case"/revoke":return Wl;case"/webhook":return Jl;case"/clearday":return sc;case"/dialog":return lc;case"/api":return fc;case"approve_reviewer":return wc;case"approve_notifier":return Sc;case"approve_comment_notifier":return Lc;case"approve_submitter":return zc;case"task_list":return Wc;case"file_download":return Jc;case"content":return su;default:return lu}}},methods:{viewText(e){this.$emit("viewText",e)}}},Ns={};var hu=A(du,cu,uu,!1,pu,null,null,null);function pu(e){for(let s in Ns)this[s]=Ns[s]}var fu=function(){return hu.exports}(),mu=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-merge-forward",on:{click:e.openDetail}},[t("div",{staticClass:"merge-title"},[e._v(e._s(e.mergeTitle))]),t("div",{staticClass:"merge-list"},e._l(e.displayList,function(i,n){return t("div",{key:n,staticClass:"merge-item"},[t("UserAvatar",{attrs:{userid:i.userid,"show-icon":!1,"show-name":!0,size:14}}),t("span",{staticClass:"item-colon"},[e._v(":")]),t("span",{staticClass:"item-desc",domProps:{innerHTML:e._s(e.$A.getMsgSimpleDesc(i))}})],1)}),0),t("div",{staticClass:"merge-footer"},[e._v(e._s(e.$L("\u5171(*)\u6761\u6D88\u606F",e.msg.count||0)))])])},gu=[];const _u={name:"MergeForwardMsg",props:{msg:{type:Object,default:()=>({})}},computed:{displayList(){var e;return((e=this.msg)==null?void 0:e.preview)||[]},mergeTitle(){return $A.getMergeForwardTitle(this.msg)}},methods:{openDetail(){this.$emit("on-view-detail",this.msg)}}},Bs={};var vu=A(_u,mu,gu,!1,yu,null,null,null);function yu(e){for(let s in Bs)this[s]=Bs[s]}var wu=function(){return vu.exports}(),$u=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-loading"},[e.error===!0?t("Icon",{attrs:{type:"ios-alert-outline"}}):t("Loading")],1)},ku=[];const bu={props:{error:Boolean}},Fs={};var Au=A(bu,$u,ku,!1,Cu,null,null,null);function Cu(e){for(let s in Fs)this[s]=Fs[s]}var Su=function(){return Au.exports}(),xu=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"content-unknown"},[e._v(e._s(e.$L("\u672A\u77E5\u7684\u6D88\u606F")))])},Tu=[];const Iu={},Hs={};var Du=A(Iu,xu,Tu,!1,Eu,null,null,null);function Eu(e){for(let s in Hs)this[s]=Hs[s]}var Lu=function(){return Du.exports}(),Mu=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"dialog-view",class:e.viewClass,attrs:{"data-id":e.msgData.id}},[e.dialogType==="group"?t("div",{staticClass:"dialog-username",on:{pointerdown:function(i){return e.handleOperation(i,"mention")}}},[t("UserAvatar",{attrs:{userid:e.msgData.userid,"show-icon":!1,"show-name":!0,"name-text":e.msgData.userid===-1&&e.msgData.msg.nickname||"","click-open-detail":e.msgData.userid!==-1}})],1):e._e(),t("div",{staticClass:"dialog-head",class:e.headClass,on:{click:e.handleClick,pointerdown:function(i){return e.handleOperation(i,"operateMsg")}}},[!e.hideReply&&e.msgData.reply_id&&e.showReplyData(e.msgData.msg.reply_data)?t("div",{staticClass:"dialog-reply no-dark-content",class:e.replyClass,on:{click:e.viewReply}},[t("div",{staticClass:"reply-avatar"},[t("UserAvatar",{attrs:{userid:e.msgData.msg.reply_data.userid,"show-icon":!1,"show-name":!0,"name-text":e.msgData.msg.reply_data.userid===-1&&e.msgData.msg.reply_data.msg&&e.msgData.msg.reply_data.msg.nickname||""}})],1),t("div",{staticClass:"reply-desc",domProps:{innerHTML:e._s(e.$A.getMsgSimpleDesc(e.msgData.msg.reply_data,"image-preview"))}})]):e._e(),!e.hideForward&&e.msgData.forward_id&&e.showForwardData(e.msgData.msg.forward_data)?t("div",{staticClass:"dialog-reply no-dark-content",on:{click:function(i){e.msgData.msg.forward_data.userid!==-1&&e.openDialog(e.msgData.msg.forward_data.userid)}}},[t("div",{staticClass:"reply-avatar"},[t("UserAvatar",{attrs:{userid:e.msgData.msg.forward_data.userid,"show-icon":!1,"show-name":!0}})],1)]):e._e(),t("div",{ref:"content",staticClass:"dialog-content",class:e.contentClass},[e.msgData.type==="text"?t("TextMsg",{attrs:{msgId:e.msgData.id,msg:e.msgData.msg,createdAt:e.msgData.created_at},on:{viewText:e.viewText}}):e.msgData.type==="longtext"?t("LongTextMsg",{attrs:{msgId:e.msgData.id,msg:e.msgData.msg},on:{viewText:e.viewText,downFile:e.downFile}}):e.msgData.type==="file"?t("FileMsg",{attrs:{msg:e.msgData.msg},on:{viewFile:e.viewFile,downFile:e.downFile}}):e.msgData.type==="record"?t("RecordMsg",{attrs:{msgId:e.msgData.id,msg:e.msgData.msg},on:{viewText:e.viewText,playRecord:e.playRecord}}):e.msgData.type==="location"?t("LocationMsg",{attrs:{msg:e.msgData.msg}}):e.msgData.type==="meeting"?t("MeetingMsg",{attrs:{msg:e.msgData.msg},on:{openMeeting:e.openMeeting}}):e.msgData.type==="word-chain"?t("WordChainMsg",{attrs:{msg:e.msgData.msg,msgId:e.msgData.id,unfoldWordChainData:e.unfoldWordChainData},on:{unfoldWordChain:function(i){return e.unfoldWordChain(e.msgData)},onWordChain:e.onWordChain}}):e.msgData.type==="vote"?t("VoteMsg",{attrs:{msg:e.msgData.msg,voteData:e.voteData},on:{onVote:function(i){return e.onVote(i,e.msgData)}}}):e.msgData.type==="merge-forward"?t("MergeForwardMsg",{attrs:{msg:e.msgData.msg},on:{"on-view-detail":e.onMergeForwardDetail}}):e.msgData.type==="template"?t("TemplateMsg",{attrs:{msg:e.msgData.msg},on:{viewText:e.viewText}}):e.isLoading?t("LoadMsg",{attrs:{error:e.msgData.error}}):t("UnknownMsg")],1),e.$A.arrayLength(e.msgData.emoji)>0?t("ul",{staticClass:"dialog-emoji"},e._l(e.msgData.emoji,function(i,n){return t("li",{key:n,class:{hasme:i.userids.includes(e.userId)}},[t("div",{staticClass:"emoji-symbol no-dark-content",on:{click:function(r){return e.onEmoji(i.symbol)}}},[e._v(e._s(i.symbol))]),t("div",{staticClass:"emoji-users",on:{click:function(r){return e.onShowEmojiUser(i)}}},[t("ul",[e._l(e.sortEmojiUser(i.userids),function(r,o){return[o<e.emojiUsersNum?t("li",{key:`emoji-user-li-${o}-${r}`},[t("UserAvatar",{attrs:{userid:r,"show-name":"","show-icon":!1}})],1):o==e.emojiUsersNum?t("li",{key:`emoji-user-more-${o}`},[e._v(e._s(e.$L("+(*)\u4F4D",i.userids.length-e.emojiUsersNum)))]):e._e()]})],2)])])}),0):e._e()]),t("div",{staticClass:"dialog-foot"},[!e.hideReply&&e.msgData.reply_num>0?t("div",{staticClass:"reply",on:{click:e.replyList}},[t("i",{staticClass:"taskfont"},[e._v("\uE6EB")]),e._v(" "+e._s(e.$L("(*)\u6761\u56DE\u590D",e.msgData.reply_num))+" ")]):e._e(),e.msgData.tag?t("div",{staticClass:"tag",on:{click:e.openTag}},[t("i",{staticClass:"taskfont"},[e._v("\uE61E")])]):e._e(),e.msgData.todo?t("div",{staticClass:"todo",class:{todo_done:e.msgData.todo_done},on:{click:e.openTodo}},[t("EPopover",{ref:"todo",attrs:{"popper-class":"dialog-wrapper-read-poptip dialog-wrapper-todo-poptip",placement:e.isRightMsg?"bottom-end":"bottom-start"},model:{value:e.todoShow,callback:function(i){e.todoShow=i},expression:"todoShow"}},[t("div",{staticClass:"read-poptip-content",class:{"is-tab":e.todoNarrow}},[e.todoNarrow?t("div",{staticClass:"todo-tabbar"},[t("span",{staticClass:"todo-tab",class:{on:e.todoTab==="undone"},on:{click:function(i){i.stopPropagation(),e.todoTab="undone"}}},[e._v(e._s(e.$L("\u5F85\u529E"))+" "),t("em",[e._v(e._s(e.todoUndoneList.length))])]),t("span",{staticClass:"todo-tab",class:{on:e.todoTab==="done"},on:{click:function(i){i.stopPropagation(),e.todoTab="done"}}},[e._v(e._s(e.$L("\u5B8C\u6210"))+" "),t("em",[e._v(e._s(e.todoDoneList.length))])]),t("span",{staticClass:"space"}),e.todoTab==="undone"?t("Button",{attrs:{type:"primary",size:"small"},on:{click:function(i){return i.stopPropagation(),e.handleTodoAdd.apply(null,arguments)}}},[e._v(e._s(e.$L("\u6DFB\u52A0")))]):e._e()],1):e._e(),!e.todoNarrow||e.todoTab==="done"?t("Scrollbar",{attrs:{"class-name":"read"}},[e.todoNarrow?e._e():t("div",{staticClass:"read-title"},[t("em",[e._v(e._s(e.todoDoneList.length))]),e._v(" "+e._s(e.$L("\u5B8C\u6210"))+" ")]),e.todoDoneList.length?t("ul",e._l(e.todoDoneList,function(i){return t("li",{key:`todo-done-${i.userid}`},[t("UserAvatar",{attrs:{userid:i.userid,size:26,showName:""}})],1)}),0):t("div",{staticClass:"read-empty"},[t("Icon",{attrs:{type:"ios-checkmark-circle-outline"}}),t("p",[e._v(e._s(e.$L("\u6682\u65E0\u5B8C\u6210")))])],1)]):e._e(),!e.todoNarrow||e.todoTab==="undone"?t("Scrollbar",{attrs:{"class-name":"unread"}},[e.todoNarrow?e._e():t("div",{staticClass:"read-title"},[t("em",[e._v(e._s(e.todoUndoneList.length))]),e._v(" "+e._s(e.$L("\u5F85\u529E"))+" "),t("span",{staticClass:"space"}),t("Button",{attrs:{type:"primary",size:"small"},on:{click:function(i){return i.stopPropagation(),e.handleTodoAdd.apply(null,arguments)}}},[e._v(e._s(e.$L("\u6DFB\u52A0")))])],1),e.todoUndoneList.length?t("ul",e._l(e.todoUndoneList,function(i){return t("li",{key:`todo-undone-${i.userid}`},[t("UserAvatar",{attrs:{userid:i.userid,size:26,showName:""}}),t("span",{staticClass:"todo-remind",on:{click:function(n){n.stopPropagation()}}},[t("DatePicker",{attrs:{open:e.todoRemindOpenUserid===i.userid,value:e.todoRemindOpenUserid===i.userid?e.todoRemindEditing:i.remind_at,type:"datetime",format:"yyyy-MM-dd HH:mm",editable:!1,transfer:""},on:{"on-change":function(n){return e.todoRemindEditing=n},"on-ok":function(n){return e.confirmTodoRemind(i)},"on-clear":function(n){return e.cancelTodoRemind(i)},"on-open-change":function(n){!n&&e.todoRemindOpenUserid===i.userid&&(e.todoRemindOpenUserid=0)}}},[i.remind_at?t("span",{staticClass:"todo-remind-time",on:{click:function(n){return n.stopPropagation(),e.openTodoRemind(i)}}},[t("Icon",{attrs:{type:"ios-alarm-outline"}}),e._v(" "+e._s(e.todoRemindFormat(i.remind_at))+" ")],1):t("Icon",{staticClass:"todo-remind-add",attrs:{type:"ios-clock-outline"},on:{click:function(n){return n.stopPropagation(),e.openTodoRemind(i)}}})],1)],1)],1)}),0):t("div",{staticClass:"read-empty"},[t("Icon",{attrs:{type:"ios-list-box-outline"}}),t("p",[e._v(e._s(e.$L("\u6682\u65E0\u5F85\u529E")))])],1)]):e._e()],1),t("div",{staticClass:"popover-reference",attrs:{slot:"reference"},slot:"reference"})]),e.todoLoad>0?t("Loading"):t("i",{staticClass:"taskfont"},[e._v("\uE7B7")])],1):e._e(),e.msgData.modify?t("div",{staticClass:"modify"},[t("i",{staticClass:"taskfont"},[e._v("\uE779")])]):e._e(),e.msgData.error===!0?t("div",{staticClass:"error",on:{click:e.onError}},[t("Icon",{attrs:{type:"ios-alert"}})],1):e.isLoading?t("Loading",{attrs:{delay:300}}):[e.timeShow?t("div",{staticClass:"time",on:{click:function(i){e.timeShow=!1}}},[e._v(e._s(e.msgData.created_at))]):t("div",{staticClass:"time",attrs:{title:e.msgData.created_at},on:{click:function(i){e.timeShow=!0}}},[e._v(e._s(e.$A.timeFormat(e.msgData.created_at)))]),e.hidePercentage?e._e():[e.dialogType==="group"?t("div",{staticClass:"percent",on:{click:e.openReadPercentage}},[t("EPopover",{ref:"percent",attrs:{"popper-class":"dialog-wrapper-read-poptip",placement:e.isRightMsg?"bottom-end":"bottom-start"},model:{value:e.percentageShow,callback:function(i){e.percentageShow=i},expression:"percentageShow"}},[t("div",{staticClass:"read-poptip-content"},[t("Scrollbar",{attrs:{"class-name":"read"}},[t("div",{staticClass:"read-title"},[t("em",[e._v(e._s(e.readList.length))]),e._v(" "+e._s(e.$L("\u5DF2\u8BFB"))+" ")]),t("ul",e._l(e.readList,function(i){return t("li",{key:`read-${i.userid}`},[t("UserAvatar",{attrs:{userid:i.userid,size:26,showName:""}})],1)}),0)]),t("Scrollbar",{attrs:{"class-name":"unread"}},[t("div",{staticClass:"read-title"},[t("em",[e._v(e._s(e.unreadList.length))]),e._v(" "+e._s(e.$L("\u672A\u8BFB"))+" ")]),t("ul",e._l(e.unreadList,function(i){return t("li",{key:`unread-${i.userid}`},[t("UserAvatar",{attrs:{userid:i.userid,size:26,showName:""}})],1)}),0)])],1),t("div",{staticClass:"popover-reference",attrs:{slot:"reference"},slot:"reference"})]),e.percentageLoad>0?t("Loading"):t("WCircle",{attrs:{percent:e.msgData.percentage,size:14}})],1):e.msgData.percentage===100?t("Icon",{staticClass:"done",attrs:{type:"md-done-all"}}):t("Icon",{staticClass:"done",attrs:{type:"md-checkmark"}})]]],2)])},Pu=[];const Se=Object.freeze({emoticon:/^<img\s+class="emoticon"[^>]*?>$/,threeEmoji:/^\s*<p>\s*([\uD800-\uDBFF][\uDC00-\uDFFF]){3}\s*<\/p>\s*$/,twoEmoji:/^\s*<p>\s*([\uD800-\uDBFF][\uDC00-\uDFFF]){2}\s*<\/p>\s*$/,oneEmoji:/^\s*<p>\s*[\uD800-\uDBFF][\uDC00-\uDFFF]\s*<\/p>\s*$/,emojiRange:/^\s*<p>\s*([\uD800-\uDBFF][\uDC00-\uDFFF]){1,3}\s*<\/p>\s*$/}),ju={name:"DialogView",components:{UnknownMsg:Lu,LoadMsg:Su,MergeForwardMsg:wu,TemplateMsg:fu,VoteMsg:Wa,WordChainMsg:za,MeetingMsg:La,LocationMsg:Sa,RecordMsg:wa,LongTextMsg:la,TextMsg:sa,FileMsg:fa,WCircle:Vo},props:{msgData:{type:Object,default:()=>({})},dialogType:{type:String,default:""},hidePercentage:{type:Boolean,default:!1},hideReply:{type:Boolean,default:!1},hideForward:{type:Boolean,default:!1},operateVisible:{type:Boolean,default:!1},operateAction:{type:Boolean,default:!1},pointerMouse:{type:Boolean,default:!1},isRightMsg:{type:Boolean,default:!1}},data(){return{timeShow:!1,operateEnter:!1,percentageLoad:0,percentageShow:!1,percentageList:[],todoLoad:0,todoShow:!1,todoList:[],todoTab:"undone",todoRemindOpenUserid:0,todoRemindEditing:"",emojiUsersNum:5,voteData:{},dotClicks:[],unfoldWordChainData:[]}},mounted(){this.emojiUsersNum=Math.min(6,Math.max(2,Math.floor((this.windowWidth-180)/52))),Object.keys(this.voteData).length===0&&(this.voteData=JSON.parse(window.localStorage.getItem("__cache:vote__"))||{}),this.unfoldWordChainData.length===0&&(this.unfoldWordChainData=JSON.parse(window.localStorage.getItem("__cache:unfoldWordChain__"))||[])},beforeDestroy(){var e;this.$store.dispatch("audioStop",(e=this.msgData.msg)==null?void 0:e.path)},computed:{...z(["loads"]),...pt(["isLoad"]),isLoading(){return this.msgData.created_at?this.isLoad(`msg-${this.msgData.id}`):!0},readList({userId:e}){return this.percentageList.filter(({userid:s,read_at:t})=>s!=e&&t)},unreadList({userId:e}){return this.percentageList.filter(({userid:s,read_at:t})=>s!=e&&!t)},todoDoneList(){return this.todoList.filter(({done_at:e})=>e)},todoUndoneList(){return this.todoList.filter(({done_at:e})=>!e)},todoNarrow(){return this.windowWidth<=500},viewClass(){const{msgData:e}=this,s=[];return e.type&&s.push(e.type),s},headClass(){const{msgData:e,operateAction:s}=this,{id:t,reply_id:i,type:n,msg:r,emoji:o,dot:a}=e,l=[];return s&&l.push("operating"),a&&!this.dotClicks.includes(t)&&l.push("dot"),i===0&&$A.arrayLength(o)===0&&n==="text"&&(Se.emoticon.test(r.text)||Se.emojiRange.test(r.text))&&l.push("transparent"),l},replyClass(){const e=[];return(this.operateEnter||this.pointerMouse)&&e.push("user-select-auto"),e},contentClass(){const{type:e,msg:s}=this.msgData,t=[];if((this.operateEnter||this.pointerMouse)&&t.push("user-select-auto"),e==="text"&&(s==null?void 0:s.text)){const i=s.text;Se.emoticon.test(i)?t.push("an-emoticon"):Se.threeEmoji.test(i)?t.push("three-emoji"):Se.twoEmoji.test(i)?t.push("two-emoji"):Se.oneEmoji.test(i)&&t.push("an-emoji")}return t}},watch:{operateAction(e){this.operateEnter=!1,e&&setTimeout(s=>this.operateEnter=!0,500)},voteData:{handler(e){const s=JSON.parse(window.localStorage.getItem("__cache:vote__"))||{};for(const t in e)s[t]=e[t];Object.keys(s).length>0&&window.localStorage.setItem("__cache:vote__",JSON.stringify(s))},deep:!0}},methods:{handleOperation({currentTarget:e},s){this.$store.commit("longpress/set",{type:s,data:this.msgData,element:e})},handleClick(){this.msgData.dot&&(this.dotClicks.push(this.msgData.id),this.$store.dispatch("dialogMsgDot",this.msgData))},openTag(){!this.msgData.tag||(this.$store.dispatch("showSpinner",600),this.$store.dispatch("getUserData",this.msgData.tag).then(e=>{$A.messageInfo(`\u6807\u6CE8\u4EBA\u5458\uFF1A${e.nickname} (ID: ${e.userid})`)}).catch(e=>{$A.messageError("\u6807\u6CE8\u4EBA\u5458\u4E0D\u5B58\u5728")}).finally(e=>{this.$store.dispatch("hiddenSpinner")}))},openTodo(){if(!(this.todoLoad>0)){if(this.todoShow){this.todoShow=!1;return}this.todoLoad++,this.$store.dispatch("call",{url:"dialog/msg/todolist",data:{msg_id:this.msgData.id}}).then(({data:e})=>{this.todoList=e}).catch(()=>{this.todoList=[]}).finally(e=>{setTimeout(()=>{this.todoLoad--,this.todoTab="undone",this.todoShow=!0},100)})}},todoRemindFormat(e){return e?$A.dayjs(e).format("MM-DD HH:mm"):""},openTodoRemind(e){this.todoRemindEditing=e.remind_at||"",this.todoRemindOpenUserid=e.userid},confirmTodoRemind(e){this.todoRemindOpenUserid=0,this.setTodoRemind(e,this.todoRemindEditing)},cancelTodoRemind(e){this.todoRemindOpenUserid=0,e.remind_at&&$A.modalConfirm({title:"\u53D6\u6D88\u63D0\u9192",content:"\u786E\u5B9A\u53D6\u6D88\u8BE5\u6210\u5458\u7684\u63D0\u9192\u65F6\u95F4\u5417\uFF1F",onOk:()=>{this.setTodoRemind(e,"")}})},setTodoRemind(e,s){if(e._remindLoading)return;this.$set(e,"_remindLoading",!0);const t=s?$A.dayjs(s).second(0).format("YYYY-MM-DD HH:mm:ss"):"";this.$store.dispatch("call",{method:"post",url:"dialog/msg/todoremind",data:{msg_id:this.msgData.id,userids:[e.userid],remind_at:t}}).then(({msg:i})=>{this.$set(e,"remind_at",t||null),$A.messageSuccess(i)}).catch(({msg:i})=>{$A.messageError(i)}).finally(()=>{this.$set(e,"_remindLoading",!1)})},handleTodoAdd(){this.$refs.todo.doClose(),this.$emit("on-other",{event:"todoAdd",data:{msg_id:this.msgData.id,userids:this.todoList.map(({userid:e})=>e)}})},openReadPercentage(){if(!(this.percentageLoad>0)){if(this.percentageShow){this.percentageShow=!1;return}this.percentageLoad++,this.$store.dispatch("call",{url:"dialog/msg/readlist",data:{msg_id:this.msgData.id}}).then(({data:e})=>{this.percentageList=e}).catch(()=>{this.percentageList=[]}).finally(e=>{setTimeout(()=>{this.percentageLoad--,this.percentageShow=!0},100)})}},playRecord(){this.operateVisible||!this.msgData.created_at||this.$store.dispatch("audioPlay",this.msgData.msg.path)},openMeeting(){this.operateVisible||T.emit("addMeeting",{type:"join",name:this.msgData.msg.name,meetingid:this.msgData.msg.meetingid,meetingdisabled:!0})},openDialog(e){this.$store.dispatch("openDialogUserid",e).catch(({msg:s})=>{$A.modalError(s)})},showReplyData(e){return $A.isJson(e)?e.userid:!1},showForwardData(e){return $A.isJson(e)?e.show&&e.userid:!1},viewReply(){this.$emit("on-view-reply",{msg_id:this.msgData.id,reply_id:this.msgData.reply_id})},viewText(e){this.$emit("on-view-text",e,this.$refs.content)},viewFile(){!this.msgData.created_at||this.$emit("on-view-file",this.msgData)},downFile(){!this.msgData.created_at||this.$emit("on-down-file",this.msgData)},replyList(){this.$emit("on-reply-list",{msg_id:this.msgData.id})},onError(){this.$emit("on-error",this.msgData)},onEmoji(e){this.$emit("on-emoji",{msg_id:this.msgData.id,symbol:e})},onShowEmojiUser(e){this.$emit("on-show-emoji-user",e)},onMergeForwardDetail(e){this.$emit("on-merge-forward-detail",{msgId:this.msgData.id,msgData:e})},sortEmojiUser(e){const s=e.filter(i=>i==this.userId),t=e.filter(i=>i!=this.userId);return s.concat(t)},unfoldWordChain(e){if(this.unfoldWordChainData.indexOf(e.id)==-1){const s=JSON.parse(window.localStorage.getItem("__cache:unfoldWordChain__"))||[];s.push(e.id),window.localStorage.setItem("__cache:unfoldWordChain__",JSON.stringify(s)),this.unfoldWordChainData.push(e.id)}},onWordChain(){this.$store.state.dialogDroupWordChain={type:"participate",dialog_id:this.msgData.dialog_id,msgData:this.msgData}},onVote(e,s){if(e!="vote"){$A.modalConfirm({content:e=="finish"?"\u786E\u5B9A\u7ED3\u675F\u6295\u7968\uFF1F":"\u518D\u6B21\u53D1\u9001\u6295\u7968\uFF1F",cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A",onOk:()=>{this.submitVote(e,s)}});return}this.submitVote(e,s)},submitVote(e,s){this.$set(s.msg,"_loadIng",1),this.$store.dispatch("call",{url:"dialog/msg/vote",method:"post",data:{dialog_id:s.dialog_id,uuid:s.msg.uuid,vote:this.voteData[s.msg.uuid]||[],type:e}}).then(({data:t})=>{e=="again"&&$A.messageSuccess("\u5DF2\u53D1\u9001"),t.forEach(i=>{this.$store.dispatch("saveDialogMsg",i)})}).catch(({msg:t})=>{$A.modalError(t)}).finally(t=>{this.$set(s.msg,"_loadIng",0)})}}},Ws={};var Ru=A(ju,Mu,Pu,!1,Ou,null,null,null);function Ou(e){for(let s in Ws)this[s]=Ws[s]}var zu=function(){return Ru.exports}(),Uu=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{class:e.classArray},[e.isUnreadStart?t("div",{staticClass:"dialog-unread-label"},[t("em"),t("span",[e._v(e._s(e.$L("\u4EE5\u4E0B\u4E3A\u65B0\u6D88\u606F")))]),t("em")]):e._e(),e.source.type==="tag"?t("div",{staticClass:"dialog-tag",on:{click:e.onViewTag}},[t("div",{staticClass:"tag-user"},[t("UserAvatar",{attrs:{userid:e.source.userid,"show-name":!0,"show-icon":!1}})],1),e._v(" "+e._s(e.$L(e.source.msg.action==="remove"?"\u53D6\u6D88\u6807\u6CE8":"\u6807\u6CE8\u4E86"))+' "'+e._s(e.$A.getMsgSimpleDesc(e.source.msg.data))+'" ')]):e.source.type==="top"?t("div",{staticClass:"dialog-top",on:{click:e.onViewTag}},[t("div",{staticClass:"tag-user"},[t("UserAvatar",{attrs:{userid:e.source.userid,"show-name":!0,"show-icon":!1}})],1),e._v(" "+e._s(e.$L(e.source.msg.action==="remove"?"\u53D6\u6D88\u7F6E\u9876":"\u7F6E\u9876\u4E86"))+' "'+e._s(e.$A.getMsgSimpleDesc(e.source.msg.data))+'" ')]):e.source.type==="todo"?t("div",{staticClass:"dialog-todo",on:{click:e.onViewTodo}},[t("div",{staticClass:"no-dark-content"},[e.source.msg.action==="done"&&e.todoDoneDisplayList(e.source.msg.data).length>0?t("div",{staticClass:"todo-users"},e._l(e.todoDoneDisplayList(e.source.msg.data),function(i,n){return t("div",{key:`todo-done-${i.type}-${i.value}-${n}`,staticClass:"todo-user"},[i.type==="user"?t("UserAvatar",{attrs:{userid:i.value,"show-name":!0,"show-icon":!1}}):t("span",[e._v(e._s(i.value))])],1)}),0):t("div",{staticClass:"todo-user"},[t("UserAvatar",{attrs:{userid:e.source.userid,"show-name":!0,"show-icon":!1}})],1),e._v(" "+e._s(e.$L(e.source.msg.action==="remove"?"\u53D6\u6D88\u5F85\u529E":e.source.msg.action==="done"?"\u5B8C\u6210":"\u8BBE\u5F85\u529E"))+' "'+e._s(e.$A.getMsgSimpleDesc(e.source.msg.data))+'" '),e.source.msg.action==="add"&&e.formatTodoUser(e.source.msg.data).length>0?t("div",{staticClass:"todo-users"},[t("span",[e._v(e._s(e.$L("[todo_target].\u7ED9")))]),e._l(e.formatTodoUser(e.source.msg.data),function(i,n){return[n<3?t("div",{staticClass:"todo-user"},[t("UserAvatar",{attrs:{userid:i,"show-name":!0,"show-icon":!1}})],1):n==3?t("div",{staticClass:"todo-user"},[e._v("+"+e._s(e.formatTodoUser(e.source.msg.data).length-3))]):e._e()]})],2):e._e()])]):e.source.type==="notice"?t("div",{staticClass:"dialog-notice"},[e._v(" "+e._s(e.source.msg.source==="api"?e.source.msg.notice:e.$L(e.source.msg.notice))+" ")]):e.source.type==="withdraw"?t("div",{staticClass:"dialog-withdraw"},[e._v(" "+e._s(e.$L("\u4F60\u64A4\u56DE\u4E86\u4E00\u6761\u6D88\u606F"))+" "),t("em",{staticClass:"withdraw-re-edit",on:{click:e.onWithdrawReEdit}},[e._v(e._s(e.$L("\u91CD\u65B0\u7F16\u8F91")))])]):[e.multiSelectMode&&e.isSelectableMsg?t("div",{staticClass:"dialog-multi-check",on:{click:function(i){return i.stopPropagation(),e.onMultiSelectToggle.apply(null,arguments)}}},[t("Icon",{class:{checked:e.isSelected},attrs:{type:e.isSelected?"ios-checkmark-circle":"ios-radio-button-off"}})],1):e._e(),t("div",{staticClass:"dialog-avatar",on:{pointerdown:e.handleOperation}},[e.source.userid===-1?t("div",{staticClass:"ai-assistant-avatar"},[t("svg",{staticClass:"no-dark-content",attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M385.80516777 713.87417358c-12.76971517 0-24.13100586-7.79328205-28.82575409-19.62404756l-48.91927648-123.9413531c-18.40341303-46.75969229-55.77360888-84.0359932-102.53330118-102.53330117l-123.94135309-48.91927649c-11.83076552-4.69474822-19.62404757-16.05603892-19.62404757-28.8257541s7.79328205-24.13100586 19.62404757-28.82575407l123.94135309-48.91927649c46.75969229-18.40341303 84.0359932-55.77360888 102.53330118-102.53330119l48.91927648-123.94135308c4.69474822-11.83076552 16.05603892-19.62404757 28.8257541-19.62404757s24.13100586 7.79328205 28.82575408 19.62404757l48.91927648 123.94135308c18.40341303 46.75969229 55.77360888 84.0359932 102.53330118 102.53330119l123.94135309 48.91927649c11.83076552 4.69474822 19.62404757 16.05603892 19.62404757 28.82575407 0 12.76971517-7.79328205 24.13100586-19.62404757 28.8257541l-123.94135309 48.91927649c-46.75969229 18.40341303-84.0359932 55.77360888-102.53330118 102.53330117l-48.91927648 123.9413531c-4.69474822 11.83076552-16.14993388 19.62404757-28.82575408 19.62404756zM177.45224165 390.12433614l50.89107073 20.0935224c62.62794129 24.69437565 112.67395736 74.74039171 137.368333 137.36833299l20.09352239 50.89107073 20.0935224-50.89107073c24.69437565-62.62794129 74.74039171-112.67395736 137.368333-137.36833299l50.89107072-20.0935224-50.89107073-20.09352239c-62.62794129-24.69437565-112.67395736-74.74039171-137.36833299-137.36833301l-20.09352239-50.89107074-20.0935224 50.89107074c-24.69437565 62.62794129-74.74039171 112.67395736-137.368333 137.36833301l-50.89107073 20.09352239zM771.33789183 957.62550131c-12.76971517 0-24.13100586-7.79328205-28.82575409-19.62404758l-26.6661699-67.6043744c-8.63833672-21.87752672-26.10280012-39.34199011-47.98032684-47.98032684l-67.60437441-26.6661699c-11.83076552-4.69474822-19.62404757-16.05603892-19.62404757-28.82575409s7.79328205-24.13100586 19.62404757-28.82575409l67.60437441-26.6661699c21.87752672-8.63833672 39.34199011-26.10280012 47.98032684-47.98032685l26.6661699-67.6043744c4.69474822-11.83076552 16.05603892-19.62404757 28.82575409-19.62404757s24.13100586 7.79328205 28.82575409 19.62404757l26.66616991 67.6043744c8.63833672 21.87752672 26.10280012 39.34199011 47.98032684 47.98032685l67.6043744 26.6661699c11.83076552 4.69474822 19.62404757 16.05603892 19.62404757 28.82575409s-7.79328205 24.13100586-19.62404757 28.82575409l-67.6043744 26.6661699c-21.87752672 8.63833672-39.34199011 26.10280012-47.98032684 47.98032684l-26.66616991 67.6043744c-4.69474822 11.83076552-16.14993388 19.62404757-28.82575409 19.62404758z m-75.58544639-190.70067281c33.61439727 14.83540438 60.75004201 41.87715415 75.49155143 75.49155143 14.83540438-33.61439727 41.87715415-60.75004201 75.49155142-75.49155143-33.61439727-14.83540438-60.75004201-41.87715415-75.49155142-75.49155143-14.74150942 33.61439727-41.87715415 60.75004201-75.49155143 75.49155143z"}})])]):t("UserAvatar",{attrs:{userid:e.source.userid,size:30,"click-open-detail":""}})],1),t("DialogView",{attrs:{"msg-data":e.source,"dialog-type":e.dialogData.type,"hide-percentage":e.hidePercentage,"hide-reply":e.hideReply,"hide-forward":e.hideForward,"operate-visible":e.operateVisible,"operate-action":e.operateVisible&&e.source.id===e.operateItem.id,"pointer-mouse":e.pointerMouse,"is-right-msg":e.isRightMsg},on:{"on-view-reply":e.onViewReply,"on-view-text":e.onViewText,"on-view-file":e.onViewFile,"on-down-file":e.onDownFile,"on-reply-list":e.onReplyList,"on-error":e.onError,"on-emoji":e.onEmoji,"on-other":e.onOther,"on-show-emoji-user":e.onShowEmojiUser,"on-merge-forward-detail":e.onMergeForwardDetail}})]],2)},Nu=[];const Bu={name:"DialogItem",components:{DialogView:zu},props:{source:{type:Object,default(){return{}}},dialogData:{type:Object,default(){return{}}},operateVisible:{type:Boolean,default:!1},operateItem:{type:Object,default(){return{}}},pointerMouse:{type:Boolean,default:!1},simpleView:{type:Boolean,default:!1},isMyDialog:{type:Boolean,default:!1},msgId:{type:Number,default:0},unreadOne:{type:Number,default:0},scrollIng:{type:Number,default:0},readEnabled:{type:Boolean,default:!1},multiSelectMode:{type:Boolean,default:!1},selectedMsgIdsSet:{type:Set,default:()=>new Set}},computed:{...z(["userId"]),isRightMsg(){return this.source.userid==this.$store.state.userId},isReply(){return this.simpleView||this.msgId===this.source.id},isNoRead(){return this.isRightMsg||this.source.read_at},isUnreadStart(){return this.unreadOne===this.source.id&&this.source.id>0},hidePercentage(){return this.simpleView||this.isMyDialog||this.isReply},hideReply(){return this.simpleView||this.msgId>0},hideForward(){return this.simpleView||this.msgId>0},isSelected(){return this.multiSelectMode&&this.selectedMsgIdsSet.has(this.source.id)},isSelectableMsg(){return!["tag","top","todo","notice","withdraw","word-chain","vote","template"].includes(this.source.type)},classArray(){return{"dialog-item":!0,"reply-item":this.isReply,"unread-start":this.isUnreadStart,self:this.isRightMsg,"multi-select-mode":this.multiSelectMode,"multi-selected":this.isSelected}}},watch:{readEnabled(){this.msgRead()},windowActive(){this.msgRead()},scrollIng(){this.msgRead()}},methods:{msgRead(){var e;this.isNoRead||!this.readEnabled||!this.windowActive||!((e=this.$el)!=null&&e.parentNode.classList.contains("item-enter"))||this.$store.dispatch("dialogMsgRead",this.source)},formatTodoUser(e){if($A.isJson(e)){const{userids:s}=e;if(s)return s.split(",")}return[]},formatTodoDoneUser(e){return $A.isJson(e)&&$A.isArray(e.done_userids)?e.done_userids:[]},todoDoneDisplayList(e){const s=this.formatTodoDoneUser(e);if(s.length===0)return[];const t=s.slice(0,3).map(i=>({type:"user",value:i}));return s.length>3&&t.push({type:"extra",value:`+${s.length-3}`}),t},onViewTag(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},onViewTodo(){this.onViewReply({msg_id:this.source.id,reply_id:this.source.msg.data.id})},handleOperation({currentTarget:e}){this.$store.commit("longpress/set",{type:"mention",data:this.source,element:e})},onMultiSelectToggle(){this.dispatch("on-multi-select-toggle",this.source.id)},onViewReply(e){this.dispatch("on-view-reply",e)},onViewText(e,s){this.dispatch("on-view-text",e,s)},onViewFile(e){this.dispatch("on-view-file",e)},onDownFile(e){this.dispatch("on-down-file",e)},onReplyList(e){this.dispatch("on-reply-list",e)},onError(e){this.dispatch("on-error",e)},onEmoji(e){this.dispatch("on-emoji",e)},onOther(e){this.dispatch("on-other",e)},onShowEmojiUser(e){this.dispatch("on-show-emoji-user",e)},onMergeForwardDetail(e){this.dispatch("on-merge-forward-detail",e)},onWithdrawReEdit(){this.dispatch("on-withdraw-re-edit",this.source)},dispatch(e,...s){if(this.isReply){this.$emit(e,...s);return}let t=this.$parent,i=t.$options.name;for(;t&&(!i||i!=="virtual-list");)t=t.$parent,t&&(i=t.$options.name);t&&t.$emit(e,...s)}}},Vs={};var Fu=A(Bu,Uu,Nu,!1,Hu,null,null,null);function Hu(e){for(let s in Vs)this[s]=Vs[s]}var Wu=function(){return Fu.exports}();const Vu=ie.import("core/module"),Gt=class extends Vu{constructor(s,t={}){super(s,{...Gt.DEFAULTS,...t}),this.lastRange=null,this.debounceTimer=null,this.setupEventListeners()}setupEventListeners(){this.quill.on(Xe.events.SELECTION_CHANGE,(s,t,i)=>{this.handleSelectionChange(s,t,i)}),this.quill.on(Xe.events.TEXT_CHANGE,(s,t,i)=>{setTimeout(()=>{const n=this.quill.getSelection();this.handleSelectionChange(n,this.lastRange,i)},0)})}handleSelectionChange(s,t,i){this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{this.processSelectionChange(s,t,i),this.lastRange=s,this.debounceTimer=null},this.options.immediate?0:100)}processSelectionChange(s,t,i){if(this.options.onSelectionChange&&this.options.onSelectionChange(s,t,i),s&&s.length>=this.options.minLength){const n=this.quill.getText(s.index,s.length);this.options.onTextSelected&&this.options.onTextSelected(n,s,i),this.quill.emitter.emit("text-selected",{text:n,range:s,source:i})}else(!s||s.length===0)&&t&&t.length>0&&(this.options.onSelectionCleared&&this.options.onSelectionCleared(t,i),this.quill.emitter.emit("selection-cleared",{previousRange:t,source:i}))}getSelectedText(){const s=this.quill.getSelection();return s&&s.length>0?this.quill.getText(s.index,s.length):null}hasSelection(){const s=this.quill.getSelection();return!!(s&&s.length>0)}selectText(s,t){this.quill.setSelection(s,t,Xe.sources.API)}clearSelection(){const s=this.quill.getSelection();s&&this.quill.setSelection(s.index,0,Xe.sources.API)}destroy(){this.debounceTimer&&clearTimeout(this.debounceTimer)}};let ze=Gt;S(ze,"DEFAULTS",{immediate:!0,minLength:1,onTextSelected:null,onSelectionCleared:null,onSelectionChange:null});ie.register("modules/selectionPlugin",ze);typeof module!="undefined"&&module.exports&&(module.exports=ze);var Yu=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"chat-emoji-wrapper",on:{click:function(i){i.stopPropagation()}}},[t("div",{staticClass:"chat-emoji-box"},[e.type==="emosearch"?t("div",{staticClass:"chat-emoji-emosearch"},[t("Input",{attrs:{clearable:"",placeholder:e.$L("\u641C\u7D22\u8868\u60C5")},model:{value:e.emosearchKey,callback:function(i){e.emosearchKey=i},expression:"emosearchKey"}},[t("Icon",{class:{"icon-loading":e.emosearchLoad},attrs:{slot:"prefix",type:e.emosearchLoad?"ios-loading":"ios-search"},slot:"prefix"})],1)],1):e.type==="emoji"?t("div",{staticClass:"chat-emoji-nav"},e._l(e.emojiNavList,function(i){var n;return t("div",{key:i.type,class:(n={},n[`i-${i.name}`]=!0,n.active=i.type===e.emojiNavActive,n),domProps:{innerHTML:e._s(i.content)},on:{click:function(r){e.emojiNavActive=i.type}}})}),0):e._e(),t("Scrollbar",[t("ul",{class:[e.type,"no-dark-content"]},[e._l(e.list,function(i,n){return t("li",{key:n,on:{click:function(r){return e.onSelect(r,i)}}},[i.type==="emoticon"?t("Imgs",{attrs:{src:i.src,title:i.name,alt:i.name}}):t("span",{attrs:{title:i.name},domProps:{innerHTML:e._s(i.html)}})],1)}),e.type==="emoji"?[t("li",{staticClass:"delete-placeholder"}),t("li",{staticClass:"delete-placeholder"})]:e._e()],2)])],1),e.showEmojiDelete&&e.type==="emoji"?t("div",{staticClass:"chat-emoji-delete-btn",on:{click:e.onDelete}},[t("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",stroke:"currentColor",fill:"currentColor"}},[t("path",{attrs:{d:"M889.202 167.878H343.626c-22.574 0-45.15 11.28-60.202 26.322L76.484 457.442c-22.576 30.084-22.576 67.688 0 94.016l206.94 263.236c15.052 18.802 37.628 30.084 60.202 30.084h545.572c41.39 0 75.252-33.842 75.252-75.208V243.092c-0.002-41.37-33.864-75.214-75.248-75.214z m3.76 601.69H347.39l-206.94-263.24 203.176-263.236h549.336v526.476z"}}),t("path",{attrs:{d:"M410.164 641.746c0 11.292 3.764 18.822 11.306 26.352 15.07 11.292 33.918 11.292 45.224 0l113.06-112.934 113.058 112.934c7.536 3.766 11.306 7.526 22.612 7.526s18.842-7.526 22.612-11.292c3.77-7.53 7.536-15.06 7.536-22.588 0-7.53 0-15.06-7.536-22.586l-113.058-112.94 113.058-112.934c3.77-3.766 7.536-11.296 7.536-18.822 0-15.062-15.072-26.352-22.612-30.118l-3.766-3.764h-3.77c-7.536 0-15.076 0-22.612 7.53l-113.058 112.934-116.83-120.466c-3.77-3.766-11.306-7.532-18.842-7.532-11.306 0-18.846 3.766-26.382 11.296-3.766 7.532-7.536 15.056-7.536 22.588 0 11.296 3.764 18.822 7.536 22.588l113.06 120.466-113.06 112.934c-3.766 3.772-7.536 11.298-7.536 18.828z"}})])]):e._e(),e.onlyEmoji?e._e():t("div",{staticClass:"chat-emoji-menu-wrap"},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.showEmojiMenuScrollLeftBtn,expression:"showEmojiMenuScrollLeftBtn"}],staticClass:"left-btn",on:{click:function(i){return e.onEmojiMenuScroll("left")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE72D")])]),t("ul",{ref:"chatEmojiMenuRef",staticClass:"chat-emoji-menu",on:{scroll:e.onHandleScroll}},[t("li",{class:{active:e.type==="emosearch"},on:{click:function(i){e.type="emosearch"}}},[t("i",{staticClass:"taskfont"},[e._v("\uE6F8")])]),t("li",{class:{active:e.type==="emoji"},on:{click:function(i){e.type="emoji"}}},[t("span",{staticClass:"no-dark-content"},[e._v("\u{1F600}")])]),e._l(e.emoticonData,function(i,n){return t("li",{key:n,class:{active:e.type==="emoticon"&&e.emoticonPath==i.path},on:{click:function(r){return e.onEmoticon(i.path)}}},[t("Imgs",{attrs:{title:i.name,alt:i.name,src:i.src}})],1)})],2),t("span",{directives:[{name:"show",rawName:"v-show",value:e.showEmojiMenuScrollRightBtn,expression:"showEmojiMenuScrollRightBtn"}],staticClass:"right-btn",on:{click:function(i){return e.onEmojiMenuScroll("right")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE733")])])])])},qu=[];const Ku={name:"ChatEmoji",props:{searchKey:{type:String,default:""},onlyEmoji:{type:Boolean,default:!1},showEmojiDelete:{type:Boolean,default:!1}},data(){return{type:"emoji",emojiNavActive:"p",emojiNavList:[{type:"p",name:"people",content:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z" /></svg>'},{type:"n",name:"nature",content:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z" /></svg>
`},{type:"d",name:"food",content:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z" /></svg>'},{type:"s",name:"symbols",content:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z" /></svg>'},{type:"a",name:"activity",content:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z" /></svg>'},{type:"t",name:"travel",content:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z" /></svg>'},{type:"o",name:"objects",content:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path d="M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z" /></svg>'},{type:"f",name:"flags",content:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z" /></svg>'}],emoticonPath:"",emosearchKey:"",emosearchCache:null,emosearchLoad:!1,emosearchTimer:null,emosearchList:[],emojiData:[],emoticonData:[],emojiMenuScrollLeft:0}},mounted(){var e;this.initData(),(e=this.$store)!=null&&e.state.windowPortrait||this.onMonitorWheel()},watch:{type(){this.onEmosearch()},emosearchKey(){this.onEmosearch()},searchKey:{handler(e){this.emosearchKey=e},immediate:!0}},computed:{list(){if(this.type==="emoji")return this.emojiData.filter(e=>e.category===this.emojiNavActive);if(this.type==="emosearch")return this.emosearchList;if(this.type==="emoticon"){const e=this.emoticonData.find(({path:s})=>s===this.emoticonPath);if(e)return e.list}return[]},showEmojiMenuScrollLeftBtn(){return this.emojiMenuScrollLeft>34},showEmojiMenuScrollRightBtn(){var s;const e=this.$refs.chatEmojiMenuRef;if(e){const t=((s=e==null?void 0:e.querySelector("li"))==null?void 0:s.offsetWidth)||48;return this.emojiMenuScrollLeft<e.scrollWidth-e.clientWidth-t}return this.emojiMenuScrollLeft<=100}},methods:{initData(){$A.loadScriptS(["js/emoji.all.js","js/emoticon.all.js"]).then(e=>{const s=$A.mainUrl("images/emoticon");$A.isArray(window.emojiData)&&(this.emojiData=window.emojiData.sort(function(t,i){return $A.sortFloat(t.emoji_order,i.emoji_order)}).map(t=>({type:"emoji",name:t.name,category:t.category,html:t.code_decimal}))),$A.isArray(window.emoticonData)&&(this.emoticonData=window.emoticonData.map(t=>Object.assign(t,{src:`${s}/${t.path}/${t.icon}`,list:t.list.map(i=>Object.assign(i,{type:"emoticon",asset:`images/emoticon/${t.path}/${i.path}`,src:`${s}/${t.path}/${i.path}`}))})))})},onEmosearch(){this.type!=="emosearch"||this.emosearchCache===this.emosearchKey||(this.emosearchCache=this.emosearchKey,this.emosearchLoad=!0,this.emosearchTimer&&clearTimeout(this.emosearchTimer),this.emosearchTimer=setTimeout(e=>{this.$store.dispatch("call",{url:"dialog/sticker/search",data:{key:this.emosearchKey}}).then(({data:s})=>{this.emosearchList=[];const t=s.list;t.length>0&&(this.emosearchList=t.map(i=>({type:"emoticon",asset:"emosearch",name:i.name,src:i.src,height:i.height,width:i.width}))),this.emosearchList.length===0&&$A.messageWarning("\u6CA1\u6709\u641C\u7D22\u5230\u4EFB\u4F55\u8868\u60C5")}).catch(s=>{this.emosearchList=[],$A.messageWarning("\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A")}).finally(s=>{this.emosearchLoad=!1})},300))},onEmoticon(e){this.type="emoticon",this.emoticonPath=e},onSelect(e,s){s.type==="emoji"?this.$emit("on-select",{type:"emoji",text:e.target.innerText}):this.$emit("on-select",s)},onDelete(){this.$emit("on-delete")},onMonitorWheel(){const e=this.$refs.chatEmojiMenuRef;e==null||e.addEventListener("wheel",s=>{Math.abs(s.deltaY)<10&&s.deltaMode===0||(s.preventDefault(),e.scrollLeft=e.scrollLeft+s.deltaY)})},onEmojiMenuScroll(e){const s=this.$refs.chatEmojiMenuRef,t=s.offsetWidth-68,i=e=="right"?s.scrollLeft+t:s.scrollLeft-t;s.scrollTo({left:i,behavior:"smooth"})},onHandleScroll(e){this.emojiMenuScrollLeft=e.target.scrollLeft}}},Ys={};var Gu=A(Ku,Yu,qu,!1,Ju,null,null,null);function Ju(e){for(let s in Ys)this[s]=Ys[s]}var cn=function(){return Gu.exports}();const qs="ontouchend"in document;var Qu={bind(e,s){let t=!1;e.__touchEvent__={start:i=>{i.preventDefault(),t=!0,s.value("down",i,e)},move:i=>{t&&s.value("move",i,e)},end:i=>{t&&(t=!1,s.value("up",i,e))},click:i=>{s.value("click",i,e)}},qs?(e.addEventListener("touchstart",e.__touchEvent__.start),e.addEventListener("touchmove",e.__touchEvent__.move),e.addEventListener("touchend",e.__touchEvent__.end)):(e.addEventListener("mousedown",e.__touchEvent__.start,{passive:!1}),document.addEventListener("mousemove",e.__touchEvent__.move),document.addEventListener("mouseup",e.__touchEvent__.end)),e.addEventListener("click",e.__touchEvent__.click)},update(){},unbind(e){qs?(e.removeEventListener("touchstart",e.__touchEvent__.start),e.removeEventListener("touchmove",e.__touchEvent__.move),e.removeEventListener("touchend",e.__touchEvent__.end)):(e.removeEventListener("mousedown",e.__touchEvent__.start),document.removeEventListener("mousemove",e.__touchEvent__.move),document.removeEventListener("mouseup",e.__touchEvent__.end)),e.removeEventListener("click",e.__touchEvent__.click),delete e.__touchEvent__}};const Ks="ontouchend"in document;var Xu={bind(e,s){if(Ks){const t={move:!1,time:0,x:0,y:0};e.__touchEvent__={start:i=>{i.preventDefault(),t.move=!1,t.time=$A.dayjs().valueOf(),t.x=i.touches?i.touches[0].clientX:i.clientX,t.y=i.touches?i.touches[0].clientY:i.clientY},move:i=>{if(t.time>0){const n=i.touches?i.touches[0].clientX:i.clientX,r=i.touches?i.touches[0].clientY:i.clientY;(Math.abs(n-t.x)>5||Math.abs(r-t.y)>5)&&(t.move=!0)}},end:i=>{t.time>0&&(!t.move&&$A.dayjs().valueOf()-t.time<300&&s.value(i,e),t.time=0)}},e.addEventListener("touchstart",e.__touchEvent__.start),e.addEventListener("touchmove",e.__touchEvent__.move),e.addEventListener("touchend",e.__touchEvent__.end)}else e.__clickEvent__=t=>{t.preventDefault(),s.value(t,e)},e.addEventListener("click",e.__clickEvent__)},update(){},unbind(e){Ks?(e.removeEventListener("touchstart",e.__touchEvent__.start),e.removeEventListener("touchmove",e.__touchEvent__.move),e.removeEventListener("touchend",e.__touchEvent__.end),delete e.__touchEvent__):(e.removeEventListener("click",e.__clickEvent__),delete e.__clickEvent__)}};function xe(e){return e===void 0&&(e=document.body),e===!0?document.body:e instanceof window.Node?e:document.querySelector(e)}const un={inserted(e,{value:s},t){if(e.dataset&&e.dataset.transfer!=="true")return!1;e.className=e.className?e.className+" v-transfer-dom":"v-transfer-dom";const i=e.parentNode;if(!i)return;const n=document.createComment("");let r=!1;s!==!1&&(i.replaceChild(n,e),xe(s).appendChild(e),r=!0),e.__transferDomData||(e.__transferDomData={parentNode:i,home:n,target:xe(s),hasMovedOut:r})},componentUpdated(e,{value:s}){if(e.dataset&&e.dataset.transfer!=="true")return!1;const t=e.__transferDomData;if(!t)return;const i=t.parentNode,n=t.home,r=t.hasMovedOut;!r&&s?(i.replaceChild(n,e),xe(s).appendChild(e),e.__transferDomData=Object.assign({},e.__transferDomData,{hasMovedOut:!0,target:xe(s)})):r&&s===!1?(i.replaceChild(e,n),e.__transferDomData=Object.assign({},e.__transferDomData,{hasMovedOut:!1,target:xe(s)})):s&&xe(s).appendChild(e)},unbind(e){if(e.dataset&&e.dataset.transfer!=="true")return!1;e.className=e.className.replace("v-transfer-dom",""),e.__transferDomData&&(e.__transferDomData.hasMovedOut===!0&&e.__transferDomData.parentNode&&e.__transferDomData.parentNode.appendChild(e),e.__transferDomData=null)}};var dn={bind(e,s,t){function i(n){if(e.contains(n.target))return!1;s.expression&&s.value(n)}e.__vueClickOutside__=i,document.addEventListener("click",i)},update(){},unbind(e,s){document.removeEventListener("click",e.__vueClickOutside__),delete e.__vueClickOutside__}};const Gs="ontouchend"in document,Zu={bind:function(e,s){let t="default",i=!1,n=null,r=500,o=null,a=s.value,l=!1;if($A.isJson(s.value)&&(r=s.value.delay||500,o=typeof s.value.touchend=="function"?s.value.touchend:o,a=typeof s.value.callback=="function"?s.value.callback:a,l=s.value.preventEndEvent||!1),typeof a!="function")throw"callback must be a function";e.__longpressContextmenu__=c=>{c.preventDefault(),c.stopPropagation(),t==="default"&&a(c,e)},e.addEventListener("contextmenu",e.__longpressContextmenu__),Gs&&(e.__longpressStart__=c=>{c.type==="click"&&c.button!==0||(t="touch",i=!1,n===null&&(n=setTimeout(()=>{t==="touch"&&(i=!0,a(c.touches[0],e))},r)))},e.__longpressCancel__=c=>{n!==null&&(clearTimeout(n),n=null),t="default"},e.__longpressEnd__=c=>{typeof o=="function"&&o(c,i),i&&l&&(c.preventDefault(),c.stopPropagation()),e.__longpressCancel__(c)},e.__longpressClick__=c=>{i&&(c.preventDefault(),c.stopPropagation()),e.__longpressCancel__(c)},e.addEventListener("touchstart",e.__longpressStart__),e.addEventListener("click",e.__longpressClick__),e.addEventListener("touchmove",e.__longpressCancel__),e.addEventListener("touchcancel",e.__longpressCancel__),e.addEventListener("touchend",e.__longpressEnd__))},unbind(e){e.removeEventListener("contextmenu",e.__longpressContextmenu__),delete e.__longpressContextmenu__,Gs&&(e.removeEventListener("touchstart",e.__longpressStart__),e.removeEventListener("click",e.__longpressClick__),e.removeEventListener("touchmove",e.__longpressCancel__),e.removeEventListener("touchcancel",e.__longpressCancel__),e.removeEventListener("touchend",e.__longpressEnd__),delete e.__longpressStart__,delete e.__longpressClick__,delete e.__longpressCancel__,delete e.__longpressEnd__)}},De=[];function ed(e){if(De.length===0)return!0;const s=De.indexOf(e);return s===-1?!1:s===De.length-1}const hn=e=>{const s=De.indexOf(e);s!==-1&&De.splice(s,1)},Js=e=>{hn(e),De.push(e)};function rv(){return new Promise(e=>{const s=new E({render(n){return n(gr.exports.Modal,{class:"chat-emoji-one-modal",props:{fullscreen:!0,footerHide:!0},on:{"on-visible-change":r=>{r||setTimeout(o=>{document.body.removeChild(this.$el)},500)}}},[n(cn,{attrs:{onlyEmoji:!0},on:{"on-select":r=>{this.$children[0].visible=!1,r.type==="emoji"&&e(r.text)}}})])}}),t=s.$mount();document.body.appendChild(t.$el);const i=s.$children[0];i.visible=!0,i.$el.lastChild.addEventListener("click",({target:n})=>{n.classList.contains("ivu-modal-body")&&(i.visible=!1)})})}const Ee=(e,s=60,t="...")=>{const i=(e||"").trim();if(!i)return"";const n=Array.from(i);return n.length<=s?i:n.slice(0,s).join("")+t},Qs=(e,s=null,t=!1)=>{if(!e)return"";const i=typeof e=="string"?e:JSON.stringify(e);if(t){const o=_r(i).trim();return s?Ee(o,s):o}if(typeof window=="undefined"||!window.document){const o=i.replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim();return s?Ee(o,s):o}const n=document.createElement("div");n.innerHTML=i;const r=(n.textContent||n.innerText||"").replace(/\s+/g," ").trim();return s?Ee(r,s):r},Xs={dooai:"Doo AI",openai:"ChatGPT",claude:"Claude",deepseek:"DeepSeek",gemini:"Gemini",grok:"Grok",ollama:"Ollama",zhipu:"\u667A\u8C31\u6E05\u8A00",qianwen:"\u901A\u4E49\u5343\u95EE",wenxin:"\u6587\u5FC3\u4E00\u8A00"},td=`\u4F60\u662F\u4E00\u540D\u6C9F\u901A\u52A9\u624B\uFF0C\u5E2E\u52A9\u7528\u6237\u7F16\u5199\u5373\u65F6\u6D88\u606F\u3002
\u5199\u4F5C\u8981\u6C42\uFF1A
1. \u751F\u6210\u7B80\u77ED\u3001\u5F97\u4F53\u7684\u6D88\u606F\uFF0C\u8BED\u6C14\u7B26\u5408\u4E1A\u52A1\u6C9F\u901A\u573A\u666F
2. \u53EF\u4F7F\u7528 Markdown \u57FA\u7840\u683C\u5F0F\uFF08\u52A0\u7C97\u3001\u5217\u8868\uFF09\uFF0C\u4F46\u4E0D\u8981\u8F93\u51FA\u4EE3\u7801\u5757\u6216 JSON
3. \u5982\u6709\u5F15\u7528\u5185\u5BB9\u6216\u8349\u7A3F\uFF0C\u81EA\u7136\u547C\u5E94\u76F8\u5173\u8981\u70B9
4. \u9ED8\u8BA4\u751F\u6210\u7B80\u77ED\u6D88\u606F\uFF08\u4E00\u5230\u51E0\u53E5\u8BDD\uFF09\uFF0C\u4EC5\u5728\u7528\u6237\u660E\u786E\u8981\u6C42\u65F6\u624D\u5199\u957F
\u8F93\u51FA\u89C4\u8303\uFF1A
- \u4EC5\u8FD4\u56DE\u53EF\u76F4\u63A5\u53D1\u9001\u7684\u6D88\u606F\u5185\u5BB9
- \u7981\u6B62\u6DFB\u52A0\u989D\u5916\u8BF4\u660E\u6216\u5F15\u5BFC\u8BED`,ov=`\u4F60\u662F\u4E00\u4E2A\u4E13\u4E1A\u7684\u4EFB\u52A1\u7BA1\u7406\u4E13\u5BB6\uFF0C\u64C5\u957F\u5C06\u60F3\u6CD5\u548C\u9700\u6C42\u8F6C\u5316\u4E3A\u6E05\u6670\u3001\u53EF\u6267\u884C\u7684\u9879\u76EE\u4EFB\u52A1\u3002
\u4EFB\u52A1\u751F\u6210\u8981\u6C42\uFF1A
1. \u6839\u636E\u8F93\u5165\u5185\u5BB9\u5206\u6790\u5E76\u751F\u6210\u5408\u9002\u7684\u4EFB\u52A1\u6807\u9898\u548C\u8BE6\u7EC6\u63CF\u8FF0
2. \u6807\u9898\u8981\u7B80\u6D01\u660E\u4E86\uFF0C\u51C6\u786E\u6982\u62EC\u4EFB\u52A1\u6838\u5FC3\u76EE\u6807\uFF0C\u957F\u5EA6\u63A7\u5236\u57288-30\u4E2A\u5B57\u7B26
3. \u63CF\u8FF0\u9700\u8986\u76D6\u4EFB\u52A1\u80CC\u666F\u3001\u5177\u4F53\u8981\u6C42\u3001\u4EA4\u4ED8\u6807\u51C6\u3001\u98CE\u9669\u63D0\u793A\u7B49\u5173\u952E\u4FE1\u606F
4. \u63CF\u8FF0\u5185\u5BB9\u4F7F\u7528Markdown\u683C\u5F0F\uFF0C\u5408\u7406\u7EC4\u7EC7\u6807\u9898\u3001\u5217\u8868\u3001\u52A0\u7C97\u7B49\u7ED3\u6784
5. \u5185\u5BB9\u9700\u9002\u914D\u9879\u76EE\u7BA1\u7406\u7CFB\u7EDF\uFF0C\u8868\u8FF0\u4E13\u4E1A\u3001\u903B\u8F91\u6E05\u6670\uFF0C\u5E76\u4E0E\u7528\u6237\u8F93\u5165\u8BED\u8A00\u4FDD\u6301\u4E00\u81F4
6. \u6839\u636E\u4EFB\u52A1\u590D\u6742\u5EA6\u7075\u6D3B\u8C03\u6574\u63CF\u8FF0\u957F\u5EA6\uFF0C\u7B80\u5355\u4EFB\u52A1\u4FDD\u6301\u7B80\u6D01\uFF0C\u590D\u6742\u4EFB\u52A1\u53EF\u9002\u5F53\u5C55\u5F00
7. \u5F53\u4EFB\u52A1\u5177\u6709\u591A\u4E2A\u6267\u884C\u6B65\u9AA4\u3001\u9636\u6BB5\u6216\u534F\u4F5C\u89D2\u8272\u65F6\uFF0C\u8BF7\u62C6\u89E3\u51FA 2-6 \u4E2A\u5173\u952E\u5B50\u4EFB\u52A1\uFF1B\u5982\u65E0\u5FC5\u8981\uFF0C\u53EF\u8FD4\u56DE\u7A7A\u6570\u7EC4
8. \u5B50\u4EFB\u52A1\u5E94\u805A\u7126\u5355\u4E00\u53EF\u6267\u884C\u52A8\u4F5C\uFF0C\u540D\u79F0\u63A7\u5236\u57288-30\u4E2A\u5B57\u7B26\u5185\uFF0C\u907F\u514D\u91CD\u590D\u548C\u542B\u7CCA\u8868\u8FF0
\u8FD4\u56DE\u683C\u5F0F\u8981\u6C42\uFF1A
\u5FC5\u987B\u4E25\u683C\u6309\u7167\u4EE5\u4E0B JSON \u7ED3\u6784\u8FD4\u56DE\uFF0C\u7981\u6B62\u8F93\u51FA\u989D\u5916\u6587\u5B57\u6216 Markdown \u4EE3\u7801\u5757\u6807\u8BB0\uFF1B\u5373\u4F7F\u67D0\u9879\u4E3A\u7A7A\uFF0C\u4E5F\u4FDD\u7559\u5BF9\u5E94\u5B57\u6BB5\uFF1A
{
"title": "\u4EFB\u52A1\u6807\u9898",
"content": "\u4EFB\u52A1\u7684\u8BE6\u7EC6\u63CF\u8FF0\u5185\u5BB9\uFF0C\u4F7F\u7528Markdown\u683C\u5F0F\uFF0C\u6839\u636E\u5B9E\u9645\u60C5\u51B5\u7EC4\u7EC7\u7ED3\u6784",
"subtasks": [
"\u5B50\u4EFB\u52A1\u540D\u79F01",
"\u5B50\u4EFB\u52A1\u540D\u79F02"
]
}
\u5185\u5BB9\u683C\u5F0F\u5EFA\u8BAE\uFF08\u975E\u5F3A\u5236\uFF09\uFF1A
- \u53EF\u4EE5\u4F7F\u7528\u6807\u9898\u3001\u5217\u8868\u3001\u52A0\u7C97\u7B49Markdown\u683C\u5F0F
- \u53EF\u4EE5\u5305\u542B\u4EFB\u52A1\u80CC\u666F\u3001\u5177\u4F53\u8981\u6C42\u3001\u9A8C\u6536\u6807\u51C6\u7B49\u90E8\u5206
- \u6839\u636E\u4EFB\u52A1\u6027\u8D28\u7075\u6D3B\u7EC4\u7EC7\u5185\u5BB9\u7ED3\u6784
- \u4EC5\u5728\u786E\u6709\u5FC5\u8981\u65F6\u751F\u6210\u5B50\u4EFB\u52A1\uFF0C\u5E76\u786E\u4FDD\u6BCF\u4E2A\u5B50\u4EFB\u52A1\u90FD\u662F\u72EC\u7ACB\u3001\u53EF\u6267\u884C\u3001\u4FBF\u4E8E\u8FFD\u8E2A\u7684\u52A8\u4F5C
- \u82E5\u7528\u6237\u660E\u786E\u8981\u6C42\u7B80\u6D01\u6216\u7B80\u5355\uFF0C\u4FDD\u6301\u63CF\u8FF0\u7D27\u51D1\uFF0C\u907F\u514D\u6DFB\u52A0\u5197\u4F59\u6BB5\u843D\u6216\u91CD\u590D\u4FE1\u606F
\u4E0A\u4E0B\u6587\u4FE1\u606F\u5904\u7406\u6307\u5357\uFF1A
- \u5982\u679C\u5DF2\u6709\u6807\u9898\u548C\u5185\u5BB9\uFF0C\u4F18\u5148\u8003\u8651\u4F18\u5316\u6539\u8FDB\u800C\u975E\u5B8C\u5168\u91CD\u5199
- \u5982\u679C\u4F7F\u7528\u4E86\u4EFB\u52A1\u6A21\u677F\uFF0C\u4E25\u683C\u6309\u7167\u6A21\u677F\u7684\u7ED3\u6784\u548C\u683C\u5F0F\u8981\u6C42\u751F\u6210
- \u5982\u679C\u5DF2\u8BBE\u7F6E\u8D1F\u8D23\u4EBA\u6216\u65F6\u95F4\u8BA1\u5212\uFF0C\u5728\u4EFB\u52A1\u63CF\u8FF0\u4E2D\u4F53\u73B0\u76F8\u5173\u8981\u6C42
- \u6839\u636E\u4F18\u5148\u7EA7\u7B49\u7EA7\u8C03\u6574\u4EFB\u52A1\u7684\u7D27\u6025\u7A0B\u5EA6\u548C\u8BE6\u7EC6\u7A0B\u5EA6
\u6CE8\u610F\u4E8B\u9879\uFF1A
- \u6807\u9898\u8981\u4F53\u73B0\u4EFB\u52A1\u7684\u6838\u5FC3\u52A8\u4F5C\u548C\u76EE\u6807
- \u63CF\u8FF0\u8981\u5305\u542B\u8DB3\u591F\u7684\u7EC6\u8282\u8BA9\u6267\u884C\u8005\u7406\u89E3\u4EFB\u52A1
- \u5982\u679C\u6D89\u53CA\u6280\u672F\u5F00\u53D1\uFF0C\u8981\u660E\u786E\u6280\u672F\u8981\u6C42\u548C\u5B9E\u73B0\u65B9\u6848
- \u5982\u679C\u6D89\u53CA\u8BBE\u8BA1\uFF0C\u8981\u8BF4\u660E\u8BBE\u8BA1\u8981\u6C42\u548C\u671F\u671B\u6548\u679C
- \u5982\u679C\u6D89\u53CA\u6D4B\u8BD5\uFF0C\u8981\u660E\u786E\u6D4B\u8BD5\u8303\u56F4\u548C\u9A8C\u6536\u6807\u51C6`,av=`\u4F60\u662F\u4E00\u540D\u8D44\u6DF1\u7684\u9879\u76EE\u89C4\u5212\u987E\u95EE\uFF0C\u5E2E\u52A9\u56E2\u961F\u5FEB\u901F\u642D\u5EFA\u7B26\u5408\u9700\u6C42\u7684\u9879\u76EE\u3002
\u751F\u6210\u8981\u6C42\uFF1A
1. \u4EA7\u51FA\u4E00\u4E2A\u7B80\u6D01\u3001\u6709\u8FA8\u8BC6\u5EA6\u7684\u9879\u76EE\u540D\u79F0\uFF08\u4E0D\u8D85\u8FC718\u4E2A\u6C49\u5B57\u621636\u4E2A\u5B57\u7B26\uFF09
2. \u7ED9\u51FA 3 - 8 \u4E2A\u9879\u76EE\u4EFB\u52A1\u5217\u8868\uFF0C\u7528\u4E8E\u770B\u677F\u5217\u6216\u9636\u6BB5\u5206\u7EC4
3. \u4EFB\u52A1\u5217\u8868\u540D\u79F0\u4FDD\u6301 4 - 12 \u4E2A\u5B57\u7B26\uFF0C\u805A\u7126\u9636\u6BB5\u6216\u8D23\u4EFB\u5212\u5206\uFF0C\u907F\u514D\u5197\u957F\u63CF\u8FF0
4. \u7ED3\u5408\u7528\u6237\u63CF\u8FF0\u7684\u4E1A\u52A1\u7279\u5F81\uFF0C\u5FC5\u8981\u65F6\u53EF\u5305\u542B\u91CC\u7A0B\u7891\u6216\u4EA4\u4ED8\u8282\u70B9
5. \u5C3D\u91CF\u53C2\u8003\u4E0A\u4E0B\u6587\u63D0\u4F9B\u7684\u73B0\u6709\u5185\u5BB9\u6216\u6A21\u677F\uFF0C\u4E0D\u8981\u4E0E\u4E4B\u5B8C\u5168\u91CD\u590D
\u8F93\u51FA\u683C\u5F0F\uFF1A
\u5FC5\u987B\u4E25\u683C\u8FD4\u56DE JSON\uFF0C\u7981\u6B62\u643A\u5E26\u989D\u5916\u8BF4\u660E\u6216 Markdown \u4EE3\u7801\u5757\uFF0C\u7ED3\u6784\u5982\u4E0B\uFF1A
{
"name": "\u9879\u76EE\u540D\u79F0",
"columns": ["\u5217\u88681", "\u5217\u88682", "\u5217\u88683"]
}
\u6821\u9A8C\u6807\u51C6\uFF1A
- \u5217\u8868\u540D\u79F0\u5E94\u5F53\u4E92\u4E0D\u91CD\u590D\u4E14\u8BED\u4E49\u660E\u786E
- \u82E5\u4E0A\u4E0B\u6587\u5305\u542B\u5DF2\u6709\u540D\u79F0\u6216\u5217\u8868\uFF0C\u8BF7\u5728\u6B64\u57FA\u7840\u4E0A\u8FED\u4EE3\u4F18\u5316`,lv=`\u4F60\u662F\u4E00\u540D\u8D44\u6DF1\u56E2\u961F\u7BA1\u7406\u6559\u7EC3\uFF0C\u9700\u8981\u6839\u636E\u63D0\u4F9B\u7684\u5468\u62A5/\u65E5\u62A5\u8349\u7A3F\u8FDB\u884C\u6574\u7406\u3002
\u5DE5\u4F5C\u76EE\u6807\uFF1A
1. \u63D0\u53D6\u5E76\u5F52\u7EB3\u5DF2\u5B8C\u6210\u4E8B\u9879\u7684\u6210\u679C\u3001\u5F71\u54CD\u548C\u91CF\u5316\u6570\u636E
2. \u68B3\u7406\u4E0B\u5468\u671F/\u6B21\u65E5\u7684\u8BA1\u5212\uFF0C\u786E\u4FDD\u6BCF\u6761\u8BA1\u5212\u90FD\u662F\u53EF\u6267\u884C\u52A8\u4F5C
3. \u66B4\u9732\u5B58\u5728\u7684\u98CE\u9669\u3001\u963B\u585E\u4EE5\u53CA\u9700\u8981\u7BA1\u7406\u8005\u534F\u52A9\u7684\u4E8B\u9879
4. \u82E5\u4E0A\u4E0B\u6587\u63D0\u5230\u5173\u6CE8\u91CD\u70B9\u6216\u7279\u6B8A\u53D7\u4F17\uFF0C\u9700\u5728\u63CF\u8FF0\u4E2D\u660E\u786E\u56DE\u5E94
\u8F93\u51FA\u8981\u6C42\uFF1A
- \u4F7F\u7528 Markdown \u7F16\u5199\uFF0C\u81F3\u5C11\u5305\u542B\u4EE5\u4E0B\u4E00\u7EA7\u6807\u9898\uFF1A## \u672C\u5468\u671F\u5B8C\u6210\u3001## \u4E0B\u5468\u671F\u8BA1\u5212\u3001## \u98CE\u9669\u4E0E\u652F\u6301
- \u6BCF\u4E2A\u7AE0\u8282\u4F7F\u7528\u6709\u5E8F\u6216\u65E0\u5E8F\u5217\u8868\uFF0C\u4FDD\u6301\u8BED\u53E5\u7B80\u6D01\u3001\u53EF\u5EA6\u91CF
- \u82E5\u539F\u6587\u5305\u542B\u6570\u636E\u6216\u91CC\u7A0B\u7891\uFF0C\u4FDD\u7559\u5E76\u7A81\u51FA\u8FD9\u4E9B\u6570\u5B57
- \u82E5\u67D0\u4E00\u7AE0\u8282\u6CA1\u6709\u4FE1\u606F\uFF0C\u8BF7\u8F93\u51FA\u201C\u6682\u65E0\u201D\u800C\u975E\u7559\u7A7A`,cv=`\u4F60\u662F\u4E00\u540D\u7ECF\u9A8C\u4E30\u5BCC\u7684\u56E2\u961F\u7BA1\u7406\u987E\u95EE\uFF0C\u64C5\u957F\u9605\u8BFB\u548C\u5206\u6790\u5458\u5DE5\u63D0\u4EA4\u7684\u5DE5\u4F5C\u6C47\u62A5\uFF0C\u80FD\u591F\u5FEB\u901F\u63D0\u70BC\u91CD\u70B9\u5E76\u7ED9\u51FA\u53EF\u6267\u884C\u5EFA\u8BAE\u3002
\u8F93\u51FA\u8981\u6C42\uFF1A
1. \u4F7F\u7528\u7B80\u6D01\u7684 Markdown \u7ED3\u6784\uFF08\u6807\u9898\u3001\u65E0\u5E8F\u5217\u8868\u3001\u5F15\u7528\u7B49\uFF09\uFF0C\u4E0D\u8981\u4F7F\u7528\u4EE3\u7801\u5757\u6216 JSON
2. \u5148\u7ED9\u51FA\u6574\u4F53\u6982\u89C8\uFF0C\u518D\u5217\u51FA\u5177\u4F53\u4EAE\u70B9\u3001\u98CE\u9669\u6216\u95EE\u9898\uFF0C\u4EE5\u53CA\u660E\u786E\u7684\u6539\u8FDB\u5EFA\u8BAE
3. \u5982\u6709\u6570\u636E\u6216\u76EE\u6807\uFF0C\u5E94\u8BC4\u4F30\u5176\u5B8C\u6210\u60C5\u51B5\u548C\u540E\u7EED\u8DDF\u8FDB\u8981\u70B9
4. \u8BED\u6C14\u4FDD\u6301\u4E13\u4E1A\u3001\u5BA2\u89C2\u3001\u4E2D\u7ACB\uFF0C\u4E0D\u8FC7\u5EA6\u5938\u8D5E\u6216\u6279\u8BC4
5. \u6839\u636E\u6C47\u62A5\u5185\u5BB9\u7684\u590D\u6742\u5EA6\u8C03\u6574\u5206\u6790\u7BC7\u5E45\uFF0C\u4FDD\u6301\u7D27\u51D1\u3001\u907F\u514D\u5197\u4F59`,uv=`\u4F60\u662F\u4E00\u4E2A\u667A\u80FD\u641C\u7D22\u52A9\u624B\uFF0C\u5E2E\u52A9\u7528\u6237\u641C\u7D22\u548C\u6574\u7406\u4FE1\u606F\u3002
\u4F60\u53EF\u4EE5\u4F7F\u7528 intelligent_search \u5DE5\u5177\u6765\u641C\u7D22\u4EFB\u52A1\u3001\u9879\u76EE\u3001\u6587\u4EF6\u548C\u8054\u7CFB\u4EBA\u3002
\u8BF7\u6839\u636E\u7528\u6237\u7684\u641C\u7D22\u9700\u6C42\uFF1A
1. \u8C03\u7528\u641C\u7D22\u5DE5\u5177\u83B7\u53D6\u76F8\u5173\u7ED3\u679C
2. \u5BF9\u641C\u7D22\u7ED3\u679C\u8FDB\u884C\u5206\u7C7B\u6574\u7406
3. \u4EE5\u6E05\u6670\u7684\u683C\u5F0F\u5448\u73B0\u7ED9\u7528\u6237
4. \u5982\u6709\u9700\u8981\uFF0C\u53EF\u4EE5\u8FDB\u884C\u591A\u6B21\u641C\u7D22\u4EE5\u83B7\u53D6\u66F4\u5168\u9762\u7684\u7ED3\u679C`,sd=`\u4F60\u662F DooTask\uFF08\u4EFB\u52A1 / \u9879\u76EE / \u6D88\u606F / \u65E5\u5386 / \u6587\u4EF6 / \u6C47\u62A5\uFF09\u7684 AI \u52A9\u624B\u3002
- \u56DE\u7B54\u7B80\u6D01\u3001\u53EF\u6267\u884C
- \u5BF9\u8BDD\u4E2D\u4EE5 [\u5F53\u524D\u9875\u9762] / [\u9875\u9762\u5207\u6362] \u5F00\u5934\u7684 system \u6D88\u606F\u6807\u8BB0\u7528\u6237\u5F53\u524D\u573A\u666F\uFF1B\u6D89\u53CA\u5177\u4F53\u4EFB\u52A1\u3001\u9879\u76EE\u3001\u6210\u5458\u3001\u7EDF\u8BA1\u6216\u6700\u65B0\u72B6\u6001\u65F6\u8C03\u7528\u5DE5\u5177\u83B7\u53D6\uFF0C\u4E0D\u8981\u6839\u636E\u9875\u9762\u6807\u9898\u6216\u5386\u53F2\u5BF9\u8BDD\u81C6\u6D4B\u7EC6\u8282
- \u4E0D\u786E\u5B9A\u5C31\u76F4\u8BF4\u4E0D\u77E5\u9053`,id="{{SYSTEM_OPTIONAL_PROMPTS}}",nd=e=>`\u8F93\u51FA\u8BED\u8A00\u7B56\u7565\uFF1A
- \u9ED8\u8BA4\u4F7F\u7528 ${e} \u8F93\u51FA\u3002
- \u5373\u4F7F\u4E0A\u4E0B\u6587\u6216\u5F15\u7528\u5305\u542B\u5176\u4ED6\u8BED\u8A00\uFF0C\u4E5F\u4FDD\u6301 ${e} \u8F93\u51FA\u3002
- \u4EC5\u5F53\u6211\u660E\u786E\u6307\u5B9A\u5176\u4ED6\u8BED\u8A00\u65F6\uFF0C\u624D\u5207\u6362\u5230\u8BE5\u8BED\u8A00\u3002`,pn=e=>{if(typeof e!="string"||!e)return e;const s=ve[M]||M||"",t=s?`
${nd(s)}`:"";return`${e}${t}
${id}`},rd=e=>{if(typeof e!="string")return[];const s=e.trim();if(s.startsWith("["))try{const i=JSON.parse(s);if(Array.isArray(i))return i.filter(n=>!(n!=null&&n.hidden)).map(n=>{var r,o,a,l;return{value:String((o=(r=n==null?void 0:n.id)!=null?r:n==null?void 0:n.value)!=null?o:"").trim(),label:String((l=(a=n==null?void 0:n.name)!=null?a:n==null?void 0:n.label)!=null?l:"").trim()}}).filter(n=>n.value).map(n=>({value:n.value,label:n.label||n.value}))}catch{}return e.split(`
`).filter(i=>i.trim()).map(i=>{const[n,r]=i.split("|").map(o=>o.trim());return{value:n,label:r||n}},[]).filter(i=>i.value)},dv=e=>{if(!e)return null;const s=String(e).trim();if(!s)return null;const t=[s],i=s.match(/```(?:json)?\s*([\s\S]*?)```/i);i&&i[1]&&t.push(i[1].trim());const n=s.indexOf("{"),r=s.lastIndexOf("}");n!==-1&&r!==-1&&r>n&&t.push(s.slice(n,r+1));for(const o of t)if(!!o)try{return JSON.parse(o)}catch{}return null},Zs=50,ei="chat-input-history";var od={data(){return{historyList:[],historyIndex:0,historyCurrent:""}},methods:{refreshHistoryContext(){this.historyCurrent="",this.historyList=[],this.historyIndex=0,this.loadInputHistory()},async loadInputHistory(){try{const e=await $A.IDBValue(ei);Array.isArray(e)?this.historyList=e:e&&typeof e=="object"?this.historyList=Object.values(e).filter(s=>typeof s=="string"):this.historyList=[]}catch{this.historyList=[]}this.historyIndex=this.historyList.length},persistInputHistory(e){if(!e||$A.filterInvalidLine(e)==="")return;const s=Array.isArray(this.historyList)?[...this.historyList]:[];if(s[s.length-1]===e){this.historyIndex=s.length,this.historyCurrent="";return}const i=s.indexOf(e);i!==-1&&s.splice(i,1),s.push(e),s.length>Zs&&s.splice(0,s.length-Zs),this.historyList=s,this.historyIndex=s.length,this.historyCurrent="",$A.IDBSet(ei,s).catch(()=>{})},applyHistoryContent(e){!this.quill||(e?this.setContent(e):this.quill.setText(""),this._content=e||"",this.$emit("input",this._content),this.$nextTick(()=>{const s=this.quill.getLength();this.quill.setSelection(Math.max(s-1,0),0)}))},navigateHistory(e,s){if(!this.quill||!this.historyList.length||!s||s.length!==0)return!0;if(e==="up")return s.index>0?!0:(this.historyIndex===this.historyList.length&&(this.historyCurrent=this.value),this.historyIndex>0?this.historyIndex--:this.historyIndex=0,this.applyHistoryContent(this.historyList[this.historyIndex]||""),!1);if(e==="down"){const t=Math.max(this.quill.getLength()-1,0);return s.index<t||this.historyIndex===this.historyList.length?!0:(this.historyIndex<this.historyList.length-1?(this.historyIndex++,this.applyHistoryContent(this.historyList[this.historyIndex]||"")):(this.historyIndex=this.historyList.length,this.applyHistoryContent(this.historyCurrent||"")),!1)}return!0}}},ad=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.hidePopover,expression:"hidePopover"}],staticClass:"chat-input-box",class:e.boxClass},[t("div",{staticClass:"chat-input-quick-emoji"},[t("EPopover",{ref:"emojiQuickRef",attrs:{visibleArrow:!1,transition:"",placement:"top-end",popperClass:"chat-quick-emoji-popover"},model:{value:e.emojiQuickShow,callback:function(i){e.emojiQuickShow=i},expression:"emojiQuickShow"}},[t("div",{attrs:{slot:"reference"},slot:"reference"}),t("Scrollbar",{ref:"emojiWrapper",attrs:{tag:"ul","enable-x":!0,"enable-y":!1,"touch-content-blur":!1,"class-name":"chat-quick-emoji-wrapper scrollbar-hidden"}},e._l(e.emojiQuickItems,function(i,n){return t("li",{key:n,on:{click:function(r){return e.onEmojiQuick(i)}}},[t("Imgs",{attrs:{title:i.name,alt:i.name,src:i.src}})],1)}),0)],1)],1),t("div",{staticClass:"chat-input-toolbar"},[t("EPopover",{ref:"toolbarRef",attrs:{visibleArrow:!1,transition:"",placement:"top-start",popperClass:"chat-input-toolbar-popover"},model:{value:e.selectedText,callback:function(i){e.selectedText=i},expression:"selectedText"}},[t("div",{attrs:{slot:"reference"},slot:"reference"}),t("ul",{staticClass:"chat-input-toolbar-menu"},e._l(e.tools,function(i,n){return t("li",{directives:[{name:"touchmouse",rawName:"v-touchmouse",value:e.onMenu,expression:"onMenu"}],key:n,attrs:{"data-label":i.label,"data-type":i.type}},[t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(i.icon)}})])}),0)])],1),t("div",{ref:"inputWrapper",staticClass:"chat-input-wrapper"},[e.quoteData?t("div",{staticClass:"chat-quote"},[e.quoteUpdate?t("div",{staticClass:"quote-label"},[e._v(e._s(e.$L("\u7F16\u8F91\u6D88\u606F")))]):t("UserAvatar",{attrs:{userid:e.quoteData.userid,userResult:e.onQuoteUserResult,"show-icon":!1,"show-name":!0}}),t("div",{staticClass:"quote-desc no-dark-content"},[e._v(e._s(e.$A.getMsgSimpleDesc(e.quoteData)))]),t("i",{directives:[{name:"touchclick",rawName:"v-touchclick",value:e.onTouchClick,expression:"onTouchClick"}],staticClass:"taskfont",attrs:{"data-action":"cancel-quote"}},[e._v("\uE6E5")])],1):e._e(),t("div",{ref:"editor",staticClass:"no-dark-content user-select-auto",on:{click:function(i){return i.stopPropagation(),e.onClickEditor.apply(null,arguments)},paste:e.handlePaste}}),t("div",{staticClass:"chat-space"},[t("input",{staticClass:"space-input",on:{focus:e.onSpaceInputFocus}})]),t("ul",{staticClass:"chat-toolbar",on:{click:function(i){i.stopPropagation()}}},[t("li",[e.emojiBottom?t("ETooltip",{ref:"emojiTip",attrs:{disabled:e.$isEEUIApp||e.windowTouch||e.showEmoji,placement:"top",enterable:!1,content:e.$L("\u8868\u60C5")}},[t("i",{staticClass:"taskfont",on:{click:function(i){e.showEmoji=!e.showEmoji}}},[e._v("\uE7AD")])]):t("EPopover",{ref:"emoji",attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-emoji-popover"},model:{value:e.showEmoji,callback:function(i){e.showEmoji=i},expression:"showEmoji"}},[t("ETooltip",{ref:"emojiTip",attrs:{slot:"reference",disabled:e.$isEEUIApp||e.windowTouch||e.showEmoji,placement:"top",enterable:!1,content:e.$L("\u8868\u60C5")},slot:"reference"},[t("i",{staticClass:"taskfont"},[e._v("\uE7AD")])]),e.showEmoji?t("ChatEmoji",{attrs:{searchKey:e.emojiQuickKey},on:{"on-select":e.onSelectEmoji}}):e._e()],1)],1),t("li",[t("ETooltip",{attrs:{placement:"top",disabled:e.$isEEUIApp||e.windowTouch,enterable:!1,content:e.$L("\u9009\u62E9\u6210\u5458")}},[t("i",{staticClass:"taskfont",on:{click:function(i){return e.onToolbar("user")}}},[e._v("\uE78F")])])],1),t("li",[t("ETooltip",{attrs:{placement:"top",disabled:e.$isEEUIApp||e.windowTouch,enterable:!1,content:e.$L("\u9009\u62E9\u4EFB\u52A1")}},[t("i",{staticClass:"taskfont",on:{click:function(i){return e.onToolbar("task")}}},[e._v("\uE7D6")])])],1),t("li",[t("EPopover",{ref:"more",attrs:{visibleArrow:!1,placement:"top",popperClass:"chat-input-more-popover"},model:{value:e.showMore,callback:function(i){e.showMore=i},expression:"showMore"}},[t("ETooltip",{ref:"moreTip",attrs:{slot:"reference",disabled:e.$isEEUIApp||e.windowTouch||e.showMore,placement:"top",enterable:!1,content:e.$L("\u5C55\u5F00")},slot:"reference"},[t("i",{staticClass:"taskfont"},[e._v("\uE790")])]),e.isAiBot?[t("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return e.onToolbar("file")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE7C0")]),t("em",[e._v(e._s(e.$L("\u4E0A\u4F20\u6587\u4EF6")))])])]:[e.maybePhotoShow?t("div",{staticClass:"chat-input-popover-item maybe-photo",on:{click:function(i){return e.onToolbar("maybe-photo")}}},[t("span",{style:{maxWidth:e.maybePhotoStyle.width}},[e._v(e._s(e.$L("\u53EF\u80FD\u8981\u53D1\u7684\u7167\u7247"))+":")]),t("div",{staticClass:"photo-preview",style:e.maybePhotoStyle})]):e._e(),e.recordReady?t("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return e.onToolbar("meeting")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE7C1")]),t("em",[e._v(e._s(e.$L("\u65B0\u4F1A\u8BAE")))])]):e._e(),e.canCall?t("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return e.onToolbar("call")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE7BA")]),t("em",[e._v(e._s(e.$L("\u62E8\u6253\u7535\u8BDD")))])]):e._e(),t("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return e.onToolbar("image")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE7BC")]),t("em",[e._v(e._s(e.$L("\u53D1\u9001\u56FE\u7247")))])]),t("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return e.onToolbar("file")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE7C0")]),t("em",[e._v(e._s(e.$L("\u4E0A\u4F20\u6587\u4EF6")))])]),e.canAnon?t("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return e.onToolbar("anon")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE690")]),t("em",[e._v(e._s(e.$L("\u533F\u540D\u6D88\u606F")))])]):e._e(),e.dialogData.type=="group"?t("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return e.onToolbar("word-chain")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE80A")]),t("em",[e._v(e._s(e.$L("\u53D1\u8D77\u63A5\u9F99")))])]):e._e(),e.dialogData.type=="group"?t("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return e.onToolbar("vote")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE7FD")]),t("em",[e._v(e._s(e.$L("\u53D1\u8D77\u6295\u7968")))])]):e._e()],e.dialogId>0?t("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return e.onToolbar("ai")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE8A1")]),t("em",[e._v(e._s(e.$L("AI \u751F\u6210")))])]):e._e(),t("div",{ref:"moreFull",staticClass:"chat-input-popover-item",on:{click:function(i){return e.onToolbar("full")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE6A7")]),t("em",[e._v(e._s(e.$L("\u5168\u5C4F\u8F93\u5165")))])])],2)],1),t("li",{directives:[{name:"touchmouse",rawName:"v-touchmouse",value:e.clickSend,expression:"clickSend"},{name:"longpress",rawName:"v-longpress",value:e.onShowMenu,expression:"onShowMenu"}],ref:"chatSend",staticClass:"chat-send",class:e.sendClass},[t("EPopover",{ref:"menu",attrs:{visibleArrow:!1,trigger:"manual",placement:"top",popperClass:"chat-input-more-popover"},model:{value:e.showMenu,callback:function(i){e.showMenu=i},expression:"showMenu"}},[t("ETooltip",{ref:"sendTip",attrs:{slot:"reference",placement:"top",disabled:e.$isEEUIApp||e.windowTouch||e.showMenu,enterable:!1,content:e.$L(e.sendContent)},slot:"reference"},[e.loading?t("div",[t("div",{staticClass:"chat-load"},[t("Loading")],1)]):t("div",[t("transition",{attrs:{name:"mobile-send"}},[e.sendClass==="recorder"?t("i",{staticClass:"taskfont"},[e._v("\uE609")]):e._e()]),t("transition",{attrs:{name:"mobile-send"}},[e.sendClass!=="recorder"?t("i",{staticClass:"taskfont"},[e._v("\uE606")]):e._e()])],1)]),t("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return e.onSend("silence")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE7D7")]),t("em",[e._v(e._s(e.$L("\u65E0\u58F0\u53D1\u9001")))])]),t("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return e.onSend("md")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE647")]),t("em",[e._v(e._s(e.$L("MD \u683C\u5F0F\u53D1\u9001")))])]),t("div",{staticClass:"chat-input-popover-item",on:{click:function(i){return e.onSend("normal")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE71B")]),t("em",[e._v(e._s(e.$L("\u666E\u901A\u683C\u5F0F\u53D1\u9001")))])])],1)],1)]),t("div",{staticClass:"chat-record",class:e.recordClassName},[t("div",{staticClass:"record-convert",on:{click:function(i){return e.stopRecord(!1,!0)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE628")])]),t("div",{staticClass:"record-recwave"},[t("div",{ref:"recwave"})]),t("div",{staticClass:"record-remove",on:{click:function(i){return e.stopRecord(!0)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE787")]),t("i",{staticClass:"taskfont"},[e._v("\uE702")])])]),t("div",{staticClass:"chat-cover",on:{click:function(i){return i.stopPropagation(),e.onClickCover.apply(null,arguments)}}})]),e.emojiBottom&&e.showEmoji?t("ChatEmoji",{attrs:{searchKey:e.emojiQuickKey,showEmojiDelete:""},on:{"on-select":e.onSelectEmoji,"on-delete":e.onEmojiDelete}}):e._e(),t("transition",{attrs:{name:"fade"}},[e.recordShow?t("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],staticClass:"chat-input-record-transfer",class:e.recordClassName,style:e.recordStyle,attrs:{"data-transfer":!0},on:{click:e.stopRecord}},[e.recordDuration>0?t("div",{staticClass:"record-duration"},[e._v(e._s(e.recordFormatDuration))]):t("div",{staticClass:"record-loading"},[t("Loading",{attrs:{type:"pure"}})],1),t("div",{staticClass:"record-cancel",on:{click:function(i){return i.stopPropagation(),e.stopRecord(!0)}}},[e._v(e._s(e.$L(e.recordFormatTip)))])]):e._e()]),t("transition",{attrs:{name:"fade"}},[e.recordConvertIng?t("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],staticClass:"chat-input-convert-transfer",style:e.recordConvertStyle,attrs:{"data-transfer":!0}},[t("div",{staticClass:"convert-box"},[t("div",{staticClass:"convert-body"},[t("div",{staticClass:"convert-content"},[e.recordConvertSetting?t("div",{staticClass:"convert-setting"},[t("i",{staticClass:"taskfont",class:{active:!!e.recordConvertTranslate},on:{click:function(i){return e.convertSetting(i)}}},[e._v("\uE795")])]):e._e(),t("div",{staticClass:"convert-input"},[t("Input",{staticClass:"convert-result no-dark-content",attrs:{type:"textarea",rows:1,autosize:{minRows:1,maxRows:5},placeholder:e.recordConvertStatus===0?"...":"",disabled:e.recordConvertStatus!==1},on:{"on-focus":function(i){e.recordConvertFocus=!0},"on-blur":function(i){e.recordConvertFocus=!1}},model:{value:e.recordConvertResult,callback:function(i){e.recordConvertResult=i},expression:"recordConvertResult"}})],1)])]),t("ul",{staticClass:"convert-footer",style:e.recordConvertFooterStyle},[t("li",{directives:[{name:"touchclick",rawName:"v-touchclick",value:e.onTouchClick,expression:"onTouchClick"}],attrs:{"data-action":"record-convert-cancel"}},[t("i",{staticClass:"taskfont"},[e._v("\uE637")]),t("span",[e._v(e._s(e.$L("\u53D6\u6D88")))])]),t("li",{directives:[{name:"touchclick",rawName:"v-touchclick",value:e.onTouchClick,expression:"onTouchClick"}],attrs:{"data-action":"record-convert-voice"}},[t("i",{staticClass:"taskfont voice"},[e._v("\uE793")]),t("span",[e._v(e._s(e.$L("\u53D1\u9001\u539F\u8BED\u97F3")))])]),t("li",{directives:[{name:"touchclick",rawName:"v-touchclick",value:e.onTouchClick,expression:"onTouchClick"}],attrs:{"data-action":"record-convert-result"}},[e.recordConvertStatus===0?t("i",{staticClass:"send"},[t("Loading")],1):e.recordConvertStatus===2?t("i",{staticClass:"taskfont error"},[e._v("\uE665")]):t("i",{staticClass:"taskfont send"},[e._v("\uE684")])])])])]):e._e()]),t("Modal",{attrs:{"mask-closable":!1,beforeClose:e.onFullBeforeClose,"class-name":"chat-input-full-input","footer-hide":"",fullscreen:""},model:{value:e.fullInput,callback:function(i){e.fullInput=i},expression:"fullInput"}},[t("div",{staticClass:"chat-input-box",style:e.chatInputBoxStyle},[t("div",{staticClass:"chat-input-wrapper"},[t("div",{ref:"editorFull",staticClass:"no-dark-content"})]),t("ul",{staticClass:"chat-input-menu",class:{activation:e.fullSelected}},e._l(e.tools,function(i,n){return t("li",{directives:[{name:"touchmouse",rawName:"v-touchmouse",value:e.onMenu,expression:"onMenu"}],key:n,attrs:{"data-label":i.label,"data-type":i.type}},[t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(i.icon)}})])}),0)]),t("i",{staticClass:"taskfont",attrs:{slot:"close"},slot:"close"},[e._v("\uE6AB")])])],1)},ld=[];const ti={},cd={name:"ChatInput",components:{ChatEmoji:cn},directives:{touchmouse:Qu,touchclick:Xu,TransferDom:un,clickoutside:dn,longpress:Zu},mixins:[od],props:{value:{type:[String,Number],default:""},dialogId:{type:Number,default:0},taskId:{type:Number,default:0},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},disabledRecord:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emojiBottom:{type:Boolean,default:!1},sendMenu:{type:Boolean,default:!0},simpleMode:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},toolbar:{type:Array,default:()=>["bold","strike","italic","underline","blockquote","link",{list:"ordered"},{list:"bullet"},{list:"check"}]},maxlength:{type:Number},defaultMenuOrientation:{type:String,default:"top"},replyMsgAutoMention:{type:Boolean,default:!0}},data(){return{quill:null,isFocus:!1,rangeIndex:0,rangeLength:0,_content:"",_options:{},mentionMode:"",maybePhotoShow:!1,maybePhotoData:{},maybePhotoStyle:{},userList:null,userCache:null,taskList:null,taskSearchList:{},fileList:{},reportList:{},taskSearchKey:"",showMenu:!1,showMore:!1,showEmoji:!1,emojiQuickShow:!1,emojiQuickKey:"",emojiQuickItems:[],recordReady:!1,recordRec:null,recordBlob:null,recordWave:null,recordInter:null,recordState:"stop",recordDuration:0,recordIndex:window.modalTransferIndex,recordConvertIng:!1,recordConvertFocus:!1,recordConvertSetting:!1,recordConvertStatus:0,recordConvertResult:"",recordConvertTranslate:"",touchStart:{},touchFocus:!1,touchLimitX:!1,touchLimitY:!1,pasteClean:!0,changeLoad:0,isSpecVersion:this.checkIOSVersion(),emojiTimer:null,scrollTimer:null,textTimer:null,fileTimer:null,reportTimer:null,taskSearchTimer:null,moreTimer:null,selectTimer:null,selectRange:null,selectedText:!1,fullInput:!1,fullQuill:null,fullSelected:!1,fullSelection:null,tools:[{label:"bold",type:"",icon:"&#xe891;"},{label:"strike",type:"",icon:"&#xe892;"},{label:"italic",type:"",icon:"&#xe896;"},{label:"underline",type:"",icon:"&#xe88e;"},{label:"blockquote",type:"",icon:"&#xe88d;"},{label:"link",type:"",icon:"&#xe885;"},{label:"list",type:"ordered",icon:"&#xe886;"},{label:"list",type:"bullet",icon:"&#xe894;"},{label:"list",type:"unchecked",icon:"&#xe88c;"}],iOSDevices:$A.isIos()}},created(){Js(this._uid)},mounted(){this.init(),this.refreshHistoryContext(),this.recordInter=setInterval(e=>{this.recordState==="ing"&&(this.__recordDuration&&this.__recordDuration===this.recordDuration?(this.__recordDuration=null,this.stopRecord(!0),$A.messageWarning("\u5F55\u97F3\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")):this.__recordDuration=this.recordDuration)},1e3),this.$isEEUIApp&&(window.__onPermissionRequest=(e,s)=>{e==="recordAudio"&&s===!1&&this.stopRecord(!0)}),$A.loadScript("js/emoticon.all.js")},beforeDestroy(){var e;hn(this._uid),this.quill&&((e=this.quill.getModule("mention"))==null||e.hideMentionList(),this.quill=null),this.recordRec&&(this.recordRec=null),this.recordConvertIng&&(this.recordConvertIng=!1),this.recordInter&&clearInterval(this.recordInter)},computed:{...z(["cacheProjects","cacheTasks","cacheUserBasic","cacheDialogs","dialogMsgs","cacheKeyboard","keyboardShow","keyboardHeight","isModKey","safeAreaSize","viewportHeight"]),...pt(["getDialogDraft","getDialogQuote"]),isEnterSend({cacheKeyboard:e}){return this.$isEEUIApp?e.send_button_app==="enter":e.send_button_desktop==="enter"},isAiBot({dialogData:e}){return!e.bot||e.type!=="user"?!1:/^ai-(.*?)@bot\.system/.test(e.email)},canCall(){return this.dialogData.type==="user"&&!this.dialogData.bot&&this.$isEEUIApp},canAnon(){return this.dialogData.type==="user"&&!this.dialogData.bot},recordShow(){const{recordState:e}=this;return["ready","ing"].includes(e)},recordStyle(){const{windowScrollY:e,recordIndex:s}=this,t={zIndex:s};return e>0&&(t.marginTop=e/2+"px"),t},recordConvertStyle(){const{recordIndex:e}=this;return{zIndex:e}},recordConvertFooterStyle(){const{recordConvertFocus:e,keyboardShow:s,keyboardHeight:t}=this;return e&&s&&t>120&&$A.isIos()?{alignItems:"flex-start",transform:"translateY(12px)"}:{}},boxClass(){const e=[];return this.recordShow&&(this.recordState==="ing"&&this.recordDuration>0?e.push("record-progress"):e.push("record-ready")),this.simpleMode&&e.push("simple-mode"),this.showMenu&&e.push("show-menu"),this.showMore&&e.push("show-more"),this.showEmoji&&e.push("show-emoji"),this.mentionMode&&e.push(this.mentionMode),e},sendClass(){return $A.filterInvalidLine(this.value)?"sender":this.recordReady?"recorder":""},sendContent(){return this.tempHiddenSendTip(),this.sendClass==="recorder"?"\u957F\u6309\u5F55\u97F3":"\u53D1\u9001"},recordFormatDuration(){const{recordDuration:e}=this;let s=Math.floor(e/6e4),t=Math.floor(e/1e3)%60,i=("00"+e%1e3).substr(-2);return s<10&&(s=`0${s}`),t<10&&(t=`0${t}`),`${s}:${t}\u2033${i}`},recordClassName({touchLimitX:e,touchLimitY:s}){return s?"cancel":e?"convert":""},recordFormatTip({touchLimitX:e,touchLimitY:s}){return s?"\u677E\u5F00\u53D6\u6D88":e?"\u8F6C\u6587\u5B57":"\u5411\u4E0A\u6ED1\u52A8\u53D6\u6D88"},dialogData(){return this.dialogId>0?this.cacheDialogs.find(({id:e})=>e==this.dialogId)||{}:{}},draftId(){return this.dialogId||`t_${this.taskId}`},draftData(){var e;return((e=this.getDialogDraft(this.draftId))==null?void 0:e.content)||""},quoteData(){var e;return((e=this.getDialogQuote(this.dialogId))==null?void 0:e.content)||null},quoteUpdate(){var e;return((e=this.getDialogQuote(this.dialogId))==null?void 0:e.type)==="update"},chatInputBoxStyle({iOSDevices:e,fullInput:s,keyboardShow:t,viewportHeight:i,safeAreaSize:n}){const r={};return e&&s&&t&&i>0&&$A.isIos()?r.height=Math.max(100,i-70-n.top)+"px":r.paddingBottom=`${n.bottom}px`,r}},watch:{value(e){this.quill&&(e&&e!==this._content?(this._content=e,this.setContent(e)):e||this.quill.setText("")),this.simpleMode||this.$store.dispatch("saveDialogDraft",{id:this.draftId,content:e})},disabled(e){var s;(s=this.quill)==null||s.enable(!e)},dialogId(){this.selectRange=null,this.userList=null,this.userCache=null,this.taskList=null,this.taskSearchList={},this.fileList={},this.reportList={},this.loadInputDraft(),this.refreshHistoryContext()},taskId(){this.selectRange=null,this.userList=null,this.userCache=null,this.taskList=null,this.taskSearchList={},this.fileList={},this.reportList={},this.loadInputDraft(),this.refreshHistoryContext()},draftData(){this.isFocus||this.loadInputDraft()},quoteData(){this.quoteChanged=!0},showMenu(e){e&&(this.showMore=!1,this.showEmoji=!1,this.emojiQuickShow=!1)},showMore(e){if(this.maybePhotoShow=!1,e){if(this.showMenu=!1,this.showEmoji=!1,this.emojiQuickShow=!1,this.isAiBot)return;$A.eeuiAppGetLatestPhoto().then(({thumbnail:s,original:t})=>{const i=Math.min(120,Math.max(100,this.$refs.moreFull.clientWidth));this.maybePhotoStyle={width:i+"px",height:i+"px",backgroundImage:`url(${s.base64})`},this.maybePhotoData={thumbnail:s,original:t},this.maybePhotoShow=!0,this.$nextTick(()=>{var n;(n=this.$refs.more)==null||n.updatePopper()})}).catch(s=>{})}},showEmoji(e){if(this.emojiBottom&&(e?this.quill.enable(!1):this.disabled||this.quill.enable(!0)),e){let s=this.value.replace(/&nbsp;/g," ").replace(/<[^>]+>/g,"");if(s&&s.indexOf(" ")===-1&&s.length>=1&&s.length<=8?this.emojiQuickKey=s:this.emojiQuickKey="",this.showMenu=!1,this.showMore=!1,this.emojiQuickShow=!1,this.quill){const t=this.quill.selection.savedRange;this.rangeIndex=t?t.index:0,this.rangeLength=t?t.length:0}}else this.rangeLength=0,this.rangeIndex>0&&this.quill.setSelection(this.rangeIndex)},emojiQuickShow(e){e&&(this.showMenu=!1,this.showMore=!1,this.showEmoji=!1)},isFocus(e){this.scrollTimer&&clearInterval(this.scrollTimer),e?(this.$emit("on-focus"),this.hidePopover(),this.isSpecVersion||this.windowPortrait&&(this.scrollTimer=setInterval(()=>{var s;(s=this.quill)!=null&&s.hasFocus()?this.windowScrollY>0&&$A.scrollIntoViewIfNeeded(this.$refs.editor):clearInterval(this.scrollTimer)},200))):this.$emit("on-blur")},recordState(e){e==="ing"?this.recordWave=window.Recorder.FrequencyHistogramView({elem:this.$refs.recwave,lineCount:90,position:0,minHeight:1,stripeEnable:!1}):(this.recordWave=null,this.$refs.recwave.innerHTML=""),this.$emit("on-record-state",e)},recordShow(e){e&&(this.recordIndex=++window.modalTransferIndex)},recordConvertIng(e){e?this.recordIndex=++window.modalTransferIndex:this.recordConvertSetting=!1},fullInput(e){var s;(s=this.quill)==null||s.enable(!e)},windowScrollY(e){this.fullInput&&e>0&&window.scrollTo(0,0)},keyboardShow(e){var s;!e&&this.isFocus&&(this.isFocus=!1,(s=this.quill)==null||s.blur())},selectRange(e){e!=null&&e.index&&(ti[this.draftId]=e.index)}},methods:{init(){var s;this._options=Object.assign({theme:"bubble",bubbleTooltipTop:!0,formats:["bold","strike","italic","underline","blockquote","list","link","image","mention"],readOnly:!1,placeholder:this.placeholder,modules:{toolbar:!1,keyboard:this.simpleMode?{}:{bindings:{"enter-short":{key:"Enter",shortKey:!0,handler:t=>this.isEnterSend?!0:(this.onSend(),!1)},enter:{key:"Enter",shiftKey:!1,handler:t=>this.isEnterSend?(this.onSend(),!1):!0},esc:{key:"Escape",shiftKey:!1,handler:t=>this.emojiQuickShow?(this.emojiQuickShow=!1,!1):!0},"history-up":{key:38,handler:t=>this.navigateHistory("up",t)},"history-down":{key:40,handler:t=>this.navigateHistory("down",t)}}},selectionPlugin:{onTextSelected:t=>{this.$isEEUIApp||this.windowTouch||(this.selectedText=!!t.trim())},onSelectionCleared:()=>{this.selectedText=!1}},mention:this.quillMention()}},this.options),this.quill=new ie(this.$refs.editor,this._options),this.quill.enable(!this.disabled),this.value?this.setContent(this.value):this.loadInputDraft(),this.quill.on("selection-change",t=>{if(!!this.inputActivated()){if(t)this.selectRange=t;else if(this.selectRange&&document.activeElement&&/(ql-editor|ql-clipboard)/.test(document.activeElement.className)){this.selectTimer&&clearTimeout(this.selectTimer),this.selectTimer=setTimeout(i=>{this.quill.setSelection(this.selectRange.index,this.selectRange.length)},100);return}this.isFocus=!!t}}),this.quill.on("text-change",t=>{if(this.isFocus){const{index:i}=this.quill.getSelection();if(this.quill.getText(i-1,1)==="\r"){this.quill.insertText(i,`
`),this.quill.deleteText(i-1,1);return}}this.textTimer?clearTimeout(this.textTimer):this.changeLoad++,this.textTimer=setTimeout(i=>{this.textTimer=null,this.changeLoad--,this.maxlength>0&&this.quill.getLength()>this.maxlength&&this.quill.deleteText(this.maxlength,this.quill.getLength());const n=this.$refs.editor.firstChild.innerHTML;this.updateEmojiQuick(n),this._content=n,this.$emit("input",this._content)},100)}),this.quill.clipboard.addMatcher(Node.ELEMENT_NODE,(t,i)=>(this.pasteClean&&(i.ops=i.ops.map(n=>{const r={insert:n.insert};return n.attributes&&["bold","strike","italic","underline","list","blockquote","link"].some(o=>{n.attributes[o]&&(typeof r.attributes=="undefined"&&(r.attributes={}),r.attributes[o]=n.attributes[o])}),r})),i)),this.quill.clipboard.addMatcher(["span.mention","a.mention"],(t,i)=>{if(!this.pasteClean)return i;const n=this.extractMentionData(t);return n===null?i:new vr([{insert:{mention:n}}])});const e=this.quill.getModule("toolbar");if((s=e==null?void 0:e.handlers)!=null&&s.link&&e.addHandler("link",t=>{t?$A.modalInput({title:"\u63D2\u5165\u94FE\u63A5",placeholder:"\u8BF7\u8F93\u5165\u5B8C\u6574\u7684\u94FE\u63A5\u5730\u5740",onOk:i=>{if(!i)return!1;this.quill.format("link",i)}}):this.quill.format("link",!1)}),this.$nextTick(t=>{this.$isEEUIApp&&this.cacheKeyboard.send_button_app==="enter"&&this.quill.root.setAttribute("enterkeyhint","send")}),this.$emit("on-ready",this.quill),!this.disabledRecord){const t=/^zh/.test(M)?"zh-CN":"en-US";$A.loadScriptS(["js/recorder/recorder.mp3.min.js","js/recorder/lib.fft.js","js/recorder/frequency.histogram.view.js",`js/recorder/i18n/${t}.js`]).then(i=>{typeof window.Recorder=="function"&&(window.Recorder.i18n.lang=t,this.recordRec=window.Recorder({type:"mp3",bitRate:64,sampleRate:32e3,audioTrackSet:{noiseSuppression:!0,echoCancellation:!0},disableEnvInFix:!1,onProcess:(n,r,o,a,l,c)=>{var d;(d=this.recordWave)==null||d.input(n[n.length-1],r,a),this.recordDuration=o,o>=3*60*1e3&&this.stopRecord(!1)}}),window.Recorder.Support()&&(this.recordReady=!0),window.systemInfo.debug!=="yes"&&(window.Recorder.CLog=function(){}))})}},quillMention(){return{allowedChars:/^\S*$/,mentionDenotationChars:["@","#","~","%","/"],defaultMenuOrientation:this.defaultMenuOrientation,isolateCharacter:!0,positioningStrategy:"fixed",dataAttributes:["tip"],renderItem:e=>{if(e.disabled===!0)return`<div class="mention-item-disabled">${e.value}</div>`;const s=`<div class="mention-item-name" title="${e.value}">${e.value}</div>`,t=e.tip?`<div class="mention-item-tip" title="${e.tip}">${e.tip}</div>`:"";if(e.id===0)return`<div class="mention-item-at">@</div>${s}${t}`;if(e.avatar){const i=e.bot?'<div class="taskfont mention-item-bot">&#xe68c;</div>':"";return`<div class="mention-item-img${e.online?" online":""}"><img src="${e.avatar}"/><em></em></div>${i}${s}${t}`}return`${s}${t}`},renderLoading:()=>"Loading...",onSelect:function(e,s){var t;if(e.denotationChar==="/"&&e.tip){const i=this.mentionCharPos,n=this.cursorPos;if(typeof i=="number"&&typeof n=="number"&&n>=i&&(this.quill.deleteText(i,n-i,ie.sources.USER),this.quill.setSelection(i,0,ie.sources.USER)),["@","#","~","%"].includes(e.tip))this.openMenu(e.tip);else{const r=e.tip.endsWith(" ")?e.tip:`${e.tip} `,o=typeof i=="number"?i:((t=this.quill.getSelection(!0))==null?void 0:t.index)||0;this.quill.insertText(o,r,ie.sources.USER),this.quill.setSelection(o+r.length,0,ie.sources.USER)}return}s(e)},source:(e,s,t)=>{const i={"@":"user-mention","#":"task-mention","~":"file-mention","%":"report-mention","/":"slash-mention"},n=i[t]||"file-mention",r=document.getElementsByClassName("ql-mention-list-container");for(let a=0;a<r.length;a++)r[a].classList.remove(...Object.values(i)),r[a].classList.add(n),r[a].style.zIndex=window.modalTransferIndex+1e3;let o=null;this.getMentionSource(t,e,a=>{const l=[];a.some(c=>{let d=c.list;e&&(d=d.filter(({id:h,value:u,key:p})=>/^\d+$/.test(e)&&h&&h==e?!0:$A.strExists(p||u,e))),d.length>0&&(c.label&&l.push(...c.label),l.push(...d))}),$A.jsonStringify(l.map(({id:c})=>c))!==o&&(o=$A.jsonStringify(l.map(({id:c})=>c)),s(l,e))})}}},extractMentionData(e){let s=e.getAttribute("data-denotation-char"),t=e.getAttribute("data-id")||e.getAttribute("href"),i=e.getAttribute("data-value");if(!s||!i){const r=(e.textContent||e.innerText||"").match(/^([@#~%])(.*)$/);r&&(s=s||r[1],i=i||r[2])}return!s||!t||!i?null:{denotationChar:s,id:t,value:i}},updateEmojiQuick(e){if(!this.isFocus||!e){this.emojiQuickShow=!1;return}this.emojiTimer&&clearTimeout(this.emojiTimer),this.emojiTimer=setTimeout(s=>{if(this.emojiTimer=null,/<img/i.test(e)){this.emojiQuickShow=!1;return}if(e=e.replace(/&nbsp;/g," ").replace(/<[^>]+>/g,""),e&&e.indexOf(" ")===-1&&e.length>=1&&e.length<=8&&$A.isArray(window.emoticonData)){this.emojiQuickItems=[];const t=$A.mainUrl("images/emoticon");if(window.emoticonData.some(i=>{let n=0;if(i.list.some(r=>{const o=[r.name];if(r.key&&o.push(...`${r.key}`.split(" ")),o.includes(e)&&(this.emojiQuickItems.push(Object.assign(r,{type:"emoticon",asset:`images/emoticon/${i.path}/${r.path}`,name:r.name,src:`${t}/${i.path}/${r.path}`})),++n>=2))return!0}),this.emojiQuickItems.length>=20)return!0}),this.emojiQuickItems.length>0){this.$refs.emojiWrapper.$el.style.maxWidth=`${Math.min(500,this.$refs.inputWrapper.clientWidth)}px`,this.$nextTick(i=>{this.emojiQuickShow=!0,this.$refs.emojiQuickRef.updatePopper()});return}}this.emojiQuickShow=!1},100)},inputActivated(){return!this.fullInput&&ed(this._uid)},getEditor(){return this.fullInput?this.fullQuill:this.quill},getText(){return this.quill?`${this.quill.getText()}`.replace(/^\s+|\s+$/g,""):""},insertText(e){if(this.quill){const{index:s}=this.quill.getSelection(!0);this.quill.insertText(s,e)}},setText(e){this.quill&&this.quill.setText(e)},setContent(e){this.quill&&this.quill.setContents(this.quill.clipboard.convert({html:e}))},setPasteMode(e){this.pasteClean=e},loadInputDraft(){if(this.simpleMode||!this.draftData){this.$emit("input","");return}this.pasteClean=!1,this.$emit("input",this.draftData),this.$nextTick(e=>this.pasteClean=!0)},onClickEditor(){this.clearSearchKey(),this.updateEmojiQuick(this.value),!this.isFocus&&this.focus(),Js(this._uid)},clearSearchKey(){this.$parent.$options.name==="DialogWrapper"&&(this.$store.state.messengerSearchKey.dialog!=""||this.$store.state.messengerSearchKey.contacts!="")&&setTimeout(e=>{this.$parent.onActive()},10),this.$store.state.messengerSearchKey={dialog:"",contacts:""}},focus(){this.$nextTick(()=>{var s;const e=this.getEditor();if(e){if(!((s=this.selectRange)!=null&&s.index)){const t=e.getLength();e.setSelection(Math.min(ti[this.draftId]||t,t))}e.focus()}})},blur(){this.$nextTick(()=>{var e;(e=this.getEditor())==null||e.blur()})},clickSend(e,s){var t;if(!this.loading)switch(e){case"down":if(this.touchFocus=(t=this.quill)==null?void 0:t.hasFocus(),this.touchLimitX=!1,this.touchLimitY=!1,this.touchStart=s.type==="touchstart"?s.touches[0]:s,(s.button===void 0||s.button===0)&&this.startRecord())return;s.button===2&&this.onShowMenu();break;case"move":const i=s.type==="touchmove"?s.touches[0]:s;this.touchLimitX=(this.touchStart.clientX-i.clientX)/window.innerWidth>.1,this.touchLimitY=(this.touchStart.clientY-i.clientY)/window.innerHeight>.1;break;case"up":if(this.showMenu||this.stopRecord(this.touchLimitY,this.touchLimitX)||this.touchLimitY||this.touchLimitX)return;this.onSend();break;case"click":this.showMenu&&(this.tempHiddenSendTip(),this.showMenu=!1),this.touchFocus&&(this.quill.blur(),this.quill.focus());break}},onShowMenu(){this.sendClass==="recorder"||!this.sendMenu||(this.showMenu=!0)},onSend(e="auto"){this.emojiTimer&&clearTimeout(this.emojiTimer),this.emojiQuickShow=!1,setTimeout(s=>{if($A.filterInvalidLine(this.value)==="")return;this.hidePopover("send"),this.rangeIndex=0,this.clearSearchKey(),e==="auto"&&(e=Ir(this.value)?"md":""),e==="normal"&&(e="");const t=this.value;this.persistInputHistory(t),e?this.$emit("on-send",null,e):this.$emit("on-send")},this.changeLoad>0?100:0)},startRecord(){return this.sendClass==="recorder"?(this.$store.dispatch("audioStop",!0),this.recordDuration=0,this.recordState="ready",this.$nextTick(e=>{this.recordRec.open(s=>{this.recordState==="ready"?(this.recordState="ing",this.recordBlob=null,setTimeout(t=>{this.recordState=="stop"?this.recordRec.close():this.recordRec.start()},300)):this.recordRec.close()},s=>{this.recordState="stop",$A.messageError(s||"\u6253\u5F00\u5F55\u97F3\u5931\u8D25")})}),!0):!1},stopRecord(e,s=!1){switch(this.recordState){case"ing":return this.recordState="stop",this.recordRec.stop((t,i)=>{this.recordRec.close(),e!==!0&&(i<600?$A.messageWarning("\u8BF4\u8BDD\u65F6\u95F4\u592A\u77ED"):(this.recordBlob=t,this.recordDuration=i,s===!0?(this.blur(),this.convertRecord()):this.uploadRecord()))},t=>{this.recordRec.close(),$A.messageError(t||"\u5F55\u97F3\u5931\u8D25")}),!0;case"ready":return this.recordState="stop",!0;default:return this.recordState="stop",!1}},hidePopover(e){this.showMenu=!1,this.showMore=!1,e!=="send"&&(this.showEmoji=!1,this.emojiQuickShow=!1)},onClickCover(){this.hidePopover(),this.$nextTick(e=>{var s;(s=this.quill)==null||s.focus()})},onTouchClick(e,s){var i;let t=s.getAttribute("data-action");switch(t==="children"&&(t=(i=e.target)==null?void 0:i.getAttribute("data-action")),t){case"cancel-quote":this.cancelQuote();break;case"record-convert-cancel":this.recordConvertIng=!1;break;case"record-convert-voice":this.convertSend("voice");break;case"record-convert-result":this.convertSend("result");break}},convertRecord(){if(this.recordBlob===null){this.recordConvertIng=!1;return}this.recordConvertResult="",this.recordConvertStatus=0,this.recordConvertIng=!0;const e=new FileReader;e.onloadend=()=>{this.$store.dispatch("call",{url:"dialog/msg/convertrecord",data:{dialog_id:this.dialogId,base64:e.result,duration:this.recordDuration,translate:this.recordConvertTranslate},method:"post"}).then(({data:s})=>{s?(this.recordConvertStatus=1,this.recordConvertResult=s,this.recordConvertSetting=!0):(this.recordConvertStatus=2,this.recordConvertResult=this.$L("\u8F6C\u6587\u5B57\u5931\u8D25"))}).catch(({msg:s})=>{this.recordConvertStatus=2,this.recordConvertResult=s})},e.readAsDataURL(this.recordBlob)},async convertSetting(e){if(this.recordConvertStatus!==1){$A.messageWarning("\u8BF7\u7A0D\u540E\u518D\u8BD5...");return}await this.$nextTick();const s=Object.keys(ve).map(t=>({label:ve[t],value:t}));s.unshift({label:this.$L("\u9009\u62E9\u7FFB\u8BD1\u7ED3\u679C"),value:"",disabled:!0},{label:this.$L("\u4E0D\u7FFB\u8BD1\u7ED3\u679C"),value:"",divided:!0}),this.$store.commit("menu/operation",{event:e,list:s,active:this.recordConvertTranslate,language:!1,onUpdate:t=>{this.recordConvertTranslate=t,this.convertRecord()}})},convertSend(e){!this.recordConvertIng||(e==="voice"?(this.uploadRecord(),this.recordConvertIng=!1):this.recordConvertStatus===1?(this.$emit("on-send",this.recordConvertResult),this.recordConvertIng=!1):this.recordConvertStatus===2&&this.convertRecord())},uploadRecord(){if(this.recordBlob===null)return;const e=new FileReader;e.onloadend=()=>{this.$emit("on-record",{type:this.recordBlob.type,base64:e.result,duration:this.recordDuration})},e.readAsDataURL(this.recordBlob)},onEmojiQuick(e){e.type==="online"?this.$emit("on-send",`<img src="${e.src}"/>`):this.$emit("on-send",`<img class="emoticon" data-asset="${e.asset}" data-name="${e.name}" src="${e.src}"/>`),this.$emit("input",""),this.emojiQuickShow=!1,this.focus()},onSelectEmoji(e){!this.quill||(e.type==="emoji"?(this.quill.insertText(this.rangeIndex,e.text),this.rangeIndex+=e.text.length,this.rangeLength=0,this.quill.setSelection(this.rangeIndex,0,"silent"),this.windowLandscape&&!this.isModKey&&(this.showEmoji=!1)):e.type==="emoticon"&&(this.$emit("on-send",`<img class="emoticon" data-asset="${e.asset}" data-name="${e.name}" src="${e.src}"/>`),e.asset==="emosearch"&&this.$emit("input",""),this.windowLandscape&&!this.isModKey&&(this.showEmoji=!1)))},onEmojiDelete(){var s;if(!this.quill)return;const e=((s=this.quill.selection)==null?void 0:s.savedRange)||this.quill.getSelection();if(e&&typeof e.index=="number"&&(this.rangeIndex=e.index,this.rangeLength=e.length||0),this.rangeLength>0)this.quill.deleteText(this.rangeIndex,this.rangeLength),this.rangeLength=0;else if(this.rangeIndex>0){const t=this.getPreviousGraphemeLength(this.rangeIndex);t>0&&(this.quill.deleteText(this.rangeIndex-t,t),this.rangeIndex-=t)}this.quill.setSelection(this.rangeIndex,0,"silent")},getPreviousGraphemeLength(e){if(!this.quill||e<=0)return 0;const s=this.quill.getText(0,e);if(!s)return 0;if(typeof Intl!="undefined"&&typeof Intl.Segmenter=="function"){this.graphemeSegmenter||(this.graphemeSegmenter=new Intl.Segmenter(void 0,{granularity:"grapheme"}));let o;for(const a of this.graphemeSegmenter.segment(s))o=a;if(o&&o.segment)return o.segment.length}const t=Math.min(e,8),i=this.quill.getText(e-t,t);if(!i)return 0;const r=Array.from(i).pop();return r?r.length:0},onToolbar(e){switch(this.hidePopover(),e){case"user":this.openMenu("@");break;case"task":this.openMenu("#");break;case"ai":this.onMessageAI();break;case"maybe-photo":this.$emit("on-file",{type:"photo",msg:{type:"img",filename:this.maybePhotoData.original.name,path:this.maybePhotoData.original.path,width:this.maybePhotoData.original.width,height:this.maybePhotoData.original.height,thumb:this.maybePhotoData.thumbnail.base64}});break;case"meeting":T.emit("addMeeting",{type:"create",dialog_id:this.dialogId,userids:[this.userId]});break;case"full":this.onFullInput();break;case"image":case"file":case"call":case"anon":this.$emit("on-more",e);break;case"word-chain":this.$store.state.dialogDroupWordChain={type:"create",dialog_id:this.dialogId};break;case"vote":this.$store.state.dialogGroupVote={type:"create",dialog_id:this.dialogId};break}},onMessageAI(){if(!this.disabled){if(!this.dialogId){$A.messageWarning("\u5F53\u524D\u672A\u9009\u62E9\u4F1A\u8BDD");return}T.emit("openAIAssistant",{sessionKey:"chat-message",title:this.$L("AI \u6D88\u606F\u52A9\u624B"),placeholder:this.$L("\u8BF7\u7B80\u8981\u63CF\u8FF0\u6D88\u606F\u7684\u4E3B\u9898\u3001\u8BED\u6C14\u6216\u8981\u70B9\uFF0CAI \u5C06\u751F\u6210\u5B8C\u6574\u6D88\u606F"),onBeforeSend:this.handleMessageAIBeforeSend,onApply:this.handleMessageAIApply})}},handleMessageAIBeforeSend(e=[]){const s=[["system",pn(td)]];let t=this.buildMessageAssistantContext();return t&&($A.getObject(e,[0,0])==="human"&&(t+=`
----
\u8BF7\u6839\u636E\u4EE5\u4E0A\u4FE1\u606F\uFF0C\u7ED3\u5408\u4EE5\u4E0B\u7528\u6237\u8F93\u5165\u7684\u5185\u5BB9\u751F\u6210\u6D88\u606F\uFF1A++++`),s.push(["human",t])),e.length>0&&s.push(...e),s},handleMessageAIApply({rawOutput:e}){if(!e){$A.messageWarning("AI \u672A\u751F\u6210\u5185\u5BB9");return}const s=Pt(e);this.$emit("input",s),this.$nextTick(()=>this.focus())},buildMessageAssistantContext(){var r,o,a;const e=[],s=[];if((r=this.dialogData)!=null&&r.name&&s.push(`\u540D\u79F0\uFF1A${Ee(this.dialogData.name,60)}`),(o=this.dialogData)!=null&&o.type){const l={group:this.$L("\u7FA4\u804A"),user:this.$L("\u5355\u804A")};s.push(`\u7C7B\u578B\uFF1A${l[this.dialogData.type]||this.dialogData.type}`)}(a=this.dialogData)!=null&&a.group_type&&s.push(`\u5206\u7C7B\uFF1A${Ee(this.dialogData.group_type,60)}`),s.length&&(e.push("## \u4F1A\u8BDD\u4FE1\u606F"),e.push(...s));const t=this.collectDialogMemberNames();t.length&&(e.push("## \u4F1A\u8BDD\u6210\u5458"),e.push(t.join("\uFF0C")));const i=this.collectRecentMessages();if(i.length&&(e.push("## \u6700\u8FD1\u6D88\u606F"),i.forEach(({sender:l,summary:c})=>{if(c){const d=l||this.$L("\u6210\u5458");e.push(`- ${d}\uFF1A${c}`)}})),this.quoteData){const l=this.getMessageSummaryText(this.quoteData);if(l){e.push("## \u5F15\u7528\u6D88\u606F");const c=this.resolveUserNickname(this.quoteData.userid);e.push(c?`${c}\uFF1A${l}`:l)}}const n=Qs(this.value,500);return n&&(e.push("## \u5F53\u524D\u8349\u7A3F"),e.push(n)),e.join(`
`)},collectDialogMemberNames(e=10){var o,a,l,c;if(!this.dialogId)return[];const s=[],t=new Set,i=d=>{const h=Ee((d||"").trim(),30);!h||t.has(h)||(t.add(h),s.push(h))};(o=this.dialogData)!=null&&o.dialog_user&&i(this.dialogData.dialog_user.nickname||this.dialogData.dialog_user.name);const n=this.dialogMsgs.filter(d=>d.dialog_id==this.dialogId);for(let d=n.length-1;d>=0&&s.length<e;d--)i(this.resolveUserNickname(n[d].userid));const r=(c=(l=(a=this.$store)==null?void 0:a.state)==null?void 0:l.userInfo)==null?void 0:c.userid;return r&&i(this.resolveUserNickname(r)),s.slice(0,e)},collectRecentMessages(e=15){if(!this.dialogId)return[];const s=this.dialogMsgs.filter(n=>n.dialog_id==this.dialogId);if(s.length===0)return[];const t=s.slice().sort((n,r)=>n.id-r.id),i=[];for(let n=t.length-1;n>=0&&i.length<e;n--){const r=t[n],o=this.getMessageSummaryText(r);!o||i.unshift({sender:this.resolveUserNickname(r.userid)||this.$L("\u6210\u5458"),summary:o})}return i},getMessageSummaryText(e){if(!e)return"";try{const s=$A.getMsgSimpleDesc(e);return Qs(s||"",300)}catch{return""}},resolveUserNickname(e){var i,n,r;if(!e)return"";const s=(n=(i=this.$store)==null?void 0:i.state)==null?void 0:n.userInfo;if(s&&s.userid==e)return s.nickname||s.username||s.name||"";const t=this.cacheUserBasic.find(o=>o.userid==e);return t?t.nickname||t.name||t.username||"":((r=this.dialogData)==null?void 0:r.dialog_user)&&this.dialogData.dialog_user.userid==e&&(this.dialogData.dialog_user.nickname||this.dialogData.dialog_user.name)||""},onFullInput(){this.disabled||(this.fullInput=!this.fullInput,this.fullInput&&this.$nextTick(e=>{this.fullQuill=new ie(this.$refs.editorFull,Object.assign({theme:"bubble",readOnly:!1,placeholder:this.placeholder,modules:{toolbar:!1,selectionPlugin:{onTextSelected:s=>{this.fullSelected=!!s.trim()},onSelectionCleared:()=>{this.fullSelected=!1}},mention:this.quillMention()}},this.options)),this.fullQuill.on("selection-change",s=>{s?this.fullSelection=s:this.fullSelection&&document.activeElement&&/(ql-editor|ql-clipboard)/.test(document.activeElement.className)&&(this.selectTimer&&clearTimeout(this.selectTimer),this.selectTimer=setTimeout(t=>{this.fullQuill.setSelection(this.fullSelection.index,this.fullSelection.length)},100))}),this.fullQuill.enable(!0),this.$refs.editorFull.firstChild.innerHTML=this.$refs.editor.firstChild.innerHTML,this.$nextTick(s=>{this.fullQuill.setSelection(this.fullQuill.getLength()),this.fullQuill.focus()})}))},onFullBeforeClose(){return new Promise(e=>{var s;(s=this.$refs.editorFull)!=null&&s.firstChild&&(this.$refs.editor.firstChild.innerHTML=this.$refs.editorFull.firstChild.innerHTML),e()})},onMenu(e,s,t){if(e!=="up")return;const i=this.getEditor(),{length:n}=i.getSelection(!0);if(n===0){$A.messageWarning("\u8BF7\u9009\u62E9\u6587\u5B57\u540E\u518D\u64CD\u4F5C");return}switch(t.getAttribute("data-label")){case"bold":i.format("bold",!i.getFormat().bold);break;case"strike":i.format("strike",!i.getFormat().strike);break;case"italic":i.format("italic",!i.getFormat().italic);break;case"underline":i.format("underline",!i.getFormat().underline);break;case"blockquote":i.format("blockquote",!i.getFormat().blockquote);break;case"link":if(i.getFormat().link){i.format("link",!1);return}$A.modalInput({title:"\u63D2\u5165\u94FE\u63A5",placeholder:"\u8BF7\u8F93\u5165\u5B8C\u6574\u7684\u94FE\u63A5\u5730\u5740",onOk:a=>{if(!a)return!1;i.format("link",a)}});break;case"list":const o=t.getAttribute("data-type")||"";i.format("list",i.getFormat().list===o?!1:o);break}},setQuote(e,s="reply"){if(this.dialogId<=0)return;const t=this.dialogMsgs.find(i=>i.id==e&&i.dialog_id==this.dialogId);if(!t){this.$store.dispatch("removeDialogQuote",this.dialogId);return}this.$store.dispatch("saveDialogQuote",{id:this.dialogId,type:s==="update"?"update":"reply",content:t})},cancelQuote(){if(this.quoteUpdate)this.$emit("input","");else if(this.quoteData){const{firstChild:e}=this.$refs.editor;if(e&&e.querySelectorAll("img").length===0){const s=e.querySelectorAll("span.mention");if(s.length===1){const t=s[0];if(t.getAttribute("data-id")==this.quoteData.userid){const i=t.parentNode;i.normalize(),Array.from(i.childNodes).filter(r=>r.nodeType!==Node.TEXT_NODE||!/^\s*$/.test(r.textContent)).length===1&&t.remove()}}e.innerText.replace(/\s/g,"")||this.$emit("input","")}}this.setQuote(0)},onQuoteUserResult(e){var s;!this.quoteChanged||(this.quoteChanged=!1,!(this.dialogData.type!=="group"||this.quoteUpdate||!this.quoteData||!this.replyMsgAutoMention||e.userid===-1||this.userId===e.userid||this.quoteData.userid!==e.userid)&&(new RegExp(`<span[^>]+?class="mention"[^>]+?data-id="${e.userid}"[^>]*?>`).test((s=this.$refs.editor.firstChild)==null?void 0:s.innerHTML)||this.addMention({denotationChar:"@",id:e.userid,value:e.nickname})))},onSpaceInputFocus(){var e;this.selectRange&&((e=this.quill)==null||e.setSelection(this.selectRange.index,this.selectRange.length))},openMenu(e){if(!!this.quill)if(this.value.length===0||this.value.endsWith("<p><br></p>"))this.quill.getModule("mention").openMenu(e);else{let s=this.value.replace(/<[^>]+>/g,"");s.length===0||s.endsWith(" ")?this.quill.getModule("mention").openMenu(e):this.quill.getModule("mention").openMenu(` ${e}`)}},addMention(e){if(!this.quill||!this.inputActivated())return;const{index:s}=this.quill.getSelection(!0);this.quill.insertEmbed(s,"mention",e,ie.sources.USER),this.quill.insertText(s+1," ",ie.sources.USER),this.quill.setSelection(s+2,ie.sources.USER)},getProjectId(){let e=null;if(this.dialogId>0){if(e=this.cacheProjects.find(({dialog_id:s})=>s==this.dialogId),e)return e.id;if(e=this.cacheTasks.find(({dialog_id:s})=>s==this.dialogId),e)return e.project_id}else if(this.taskId>0&&(e=this.cacheTasks.find(({id:s})=>s==this.taskId),e))return e.project_id;return 0},getMentionSource(e,s,t){switch(e){case"@":this.mentionMode="user-mention";const i=_=>{this.getMoreUser(s,_.map(v=>v.id)).then(v=>{let y=this.cacheDialogs.filter((w,b)=>w.type=="user"&&w.bot==0&&w.last_at);y.sort((w,b)=>w.last_at>b.last_at?-1:w.last_at<b.last_at?1:0),y=y.filter((w,b)=>b<5),v.forEach(w=>{w.last_at="1990-01-01 00:00:00",y.forEach(b=>{var C;((C=b.dialog_user)==null?void 0:C.userid)==w.id&&(w.last_at=b.last_at)})}),v.sort((w,b)=>w.last_at>b.last_at?-1:w.last_at<b.last_at?1:0),this.userList=_,this.userCache=[],v.length>0?(_.length>2&&this.userCache.push({label:null,list:[{id:0,value:this.$L("\u6240\u6709\u4EBA.All"),tip:""}]}),this.userCache.push({label:[{id:0,value:this.$L("\u7FA4\u5185\u6210\u5458"),className:"sticky-top",disabled:!0}],list:_},{label:[{id:0,value:this.$L("\u7FA4\u5916\u6210\u5458"),className:"sticky-top",disabled:!0}],list:v})):_.length>2?this.userCache.push({label:null,list:[{id:0,value:this.$L("\u6240\u6709\u4EBA.All"),tip:""}]},{label:[{id:0,value:this.$L("\u7FA4\u6210\u5458"),className:"sticky-top",disabled:!0}],list:_}):this.userCache.push({label:null,list:_}),t(this.userCache)})};if(this.dialogData.people&&$A.arrayLength(this.userList)!==this.dialogData.people&&(this.userList=null,this.userCache=null),this.userCache!==null&&t(this.userCache),this.userList!==null){i(this.userList);return}const n=[];if(this.dialogId>0)this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:this.dialogId,getuser:1}}).then(({data:_})=>{this.cacheDialogs.find(({id:v})=>v==this.dialogId)&&this.$store.dispatch("saveDialog",{id:this.dialogId,people:_.length,people_user:_.filter(v=>!v.bot).length,people_bot:_.filter(v=>v.bot).length}),_.length>0&&n.push(..._.map(v=>({id:v.userid,value:v.nickname,avatar:v.userimg,online:v.online,bot:v.bot,key:`${v.nickname} ${v.email} ${v.pinyin}`}))),i(n)}).catch(_=>{i(n)});else if(this.taskId>0){const _=this.cacheTasks.find(({id:v})=>v==this.taskId);_&&$A.isArray(_.task_user)&&_.task_user.some(v=>{const y=this.cacheUserBasic.find(({userid:w})=>w==v.userid);y&&n.push({id:y.userid,value:y.nickname,avatar:y.userimg,online:y.online,bot:y.bot,key:`${y.nickname} ${y.email} ${y.pinyin}`})}),i(n)}break;case"#":this.mentionMode="task-mention";const r=(s||"").trim();this.taskSearchKey=r;const o=_=>{const v=Array.isArray(_)?_:[];if(!r)return v;const y=Array.isArray(this.taskSearchList[r])?this.taskSearchList[r]:[];if(y.length===0)return v;const w=new Set;v.forEach(C=>{(C.list||[]).forEach(N=>w.add(N.id))});const b=[];return y.forEach(C=>{w.has(C.id)||(w.add(C.id),b.push({id:C.id,value:C.name,tip:C.complete_at?this.$L("\u5DF2\u5B8C\u6210"):null}))}),b.length===0?v:[...v,{label:[{id:0,value:this.$L("\u5176\u4ED6\u4EFB\u52A1"),className:"sticky-top",disabled:!0}],list:b}]},a=_=>t(o(_||[]));if(this.taskList!==null)a(this.taskList);else{const _=y=>{this.taskList=[],y.length>0&&(y=y.map(Y=>({id:Y.id,value:Y.name,tip:Y.complete_at?this.$L("\u5DF2\u5B8C\u6210"):null})).splice(0,100),this.taskList.push({label:[{id:0,value:this.$L("\u9879\u76EE\u4EFB\u52A1"),className:"sticky-top",disabled:!0}],list:y}));const{overdue:w,today:b,todo:C}=this.$store.getters.dashboardTask,N=[...w,...b,...C];let O=this.$store.getters.transforTasks(N);O.length>0&&(O=[...O].sort((Y,je)=>$A.sortDay(Y.end_at||"2099-12-31 23:59:59",je.end_at||"2099-12-31 23:59:59")).slice(0,100),this.taskList.push({label:[{id:0,value:this.$L("\u6211\u7684\u5F85\u5B8C\u6210\u4EFB\u52A1"),className:"sticky-top",disabled:!0}],list:O.map(Y=>({id:Y.id,value:Y.name}))}));let K=this.$store.getters.assistTask||[];K.length>0&&(K=[...K].sort((Y,je)=>$A.sortDay(Y.end_at||"2099-12-31 23:59:59",je.end_at||"2099-12-31 23:59:59")).slice(0,100),this.taskList.push({label:[{id:0,value:this.$L("\u6211\u534F\u52A9\u7684\u4EFB\u52A1"),className:"sticky-top",disabled:!0}],list:K.map(Y=>({id:Y.id,value:Y.name}))})),a(this.taskList)},v=this.getProjectId();v>0?this.$store.dispatch("getTaskForProject",v).then(y=>{const w=this.cacheTasks.filter(b=>b.archived_at?!1:b.project_id==v&&b.parent_id===0&&!b.archived_at).sort((b,C)=>$A.sortDay(C.complete_at||"2099-12-31 23:59:59",b.complete_at||"2099-12-31 23:59:59"));w.length>0?_(w):_([])}).catch(y=>{_([])}):_([])}if(r){if(Array.isArray(this.taskSearchList[r]))return;this.taskSearchTimer&&clearTimeout(this.taskSearchTimer),this.taskSearchTimer=setTimeout(async _=>{var w;if(this.taskSearchKey!==r)return;const v=(w=await this.$store.dispatch("call",{url:"project/task/lists",data:{keys:{name:r},parent_id:-1,scope:"all_project",pagesize:50}}).catch(b=>{}))==null?void 0:w.data;if(this.taskSearchKey!==r)return;const y=$A.getObject(v,"data")||[];this.taskSearchList[r]=y.map(b=>({id:b.id,name:b.name,complete_at:b.complete_at})),a(this.taskList)},300)}break;case"~":if(this.mentionMode="file-mention",$A.isArray(this.fileList[s])){t(this.fileList[s]);return}this.fileTimer&&clearTimeout(this.fileTimer),this.fileTimer=setTimeout(async _=>{var w;const v=[],y=(w=await this.$store.dispatch("searchFiles",s).catch(b=>{}))==null?void 0:w.data;y&&(v.push({label:[{id:0,value:this.$L("\u6587\u4EF6\u5206\u4EAB\u67E5\u770B"),className:"sticky-top",disabled:!0}],list:y.filter(b=>b.type!=="folder").map(b=>({id:b.id,value:b.ext?`${b.name}.${b.ext}`:b.name}))}),this.fileList[s]=v),t(v)},300);break;case"%":if(this.mentionMode="report-mention",$A.isArray(this.reportList[s])){t(this.reportList[s]);return}this.reportTimer&&clearTimeout(this.reportTimer),this.reportTimer=setTimeout(async _=>{var C,N;const v=[];let y=2;const w=(C=await this.$store.dispatch("call",{url:"report/my",data:{keys:{key:s}}}).catch(O=>{}))==null?void 0:C.data;w&&(v.push({label:[{id:0,value:this.$L("\u6211\u7684\u62A5\u544A"),className:"sticky-top",disabled:!0}],list:w.data.map(O=>({id:O.id,value:O.title}))}),y--);const b=(N=await this.$store.dispatch("call",{url:"report/receive",data:{keys:{key:s}}}).catch(O=>{}))==null?void 0:N.data;b&&(v.push({label:[{id:0,value:this.$L("\u6536\u5230\u7684\u62A5\u544A"),className:"sticky-top",disabled:!0}],list:b.data.map(O=>({id:O.id,value:O.title}))}),y--),y===0&&(this.reportList[s]=v),t(v)},300);break;case"/":this.mentionMode="slash-mention";const l=this.isSlashAtLineStart(),c=this.dialogData.type==="user"&&this.dialogData.bot,d=c&&this.dialogData.bot==this.userId,h=c&&this.dialogData.email==="bot-manager@bot.system",u=l&&(d||h),g=[{label:u?[{id:0,value:this.$L("\u5FEB\u6377\u83DC\u5355"),className:"sticky-top",disabled:!0}]:null,list:[{id:"mention",value:this.$L("\u63D0\u53CA"),tip:"@"},{id:"task",value:this.$L("\u4EFB\u52A1"),tip:"#"},{id:"file",value:this.$L("\u6587\u4EF6"),tip:"~"},{id:"report",value:this.$L("\u5DE5\u4F5C\u62A5\u544A"),tip:"%"}]}];if(u){const _=[];h&&_.push({id:"list",value:this.$L("\u6211\u7684\u673A\u5668\u4EBA"),tip:"/list"},{id:"newbot",value:this.$L("\u65B0\u5EFA\u673A\u5668\u4EBA"),tip:"/newbot"}),_.push({id:"help",value:this.$L("\u5E2E\u52A9\u6307\u4EE4"),tip:"/help"},{id:"api",value:this.$L("API\u63A5\u53E3\u6587\u6863"),tip:"/api"},{id:"info",value:this.$L("\u673A\u5668\u4EBA\u4FE1\u606F"),tip:"/info"},{id:"setname",value:this.$L("\u8BBE\u7F6E\u540D\u79F0"),tip:"/setname"},{id:"deletebot",value:this.$L("\u5220\u9664\u673A\u5668\u4EBA"),tip:"/deletebot"},{id:"token",value:this.$L("\u673A\u5668\u4EBAToken"),tip:"/token"},{id:"revoke",value:this.$L("\u66F4\u65B0Token"),tip:"/revoke"},{id:"clearday",value:this.$L("\u8BBE\u7F6E\u4FDD\u7559\u6D88\u606F\u65F6\u95F4"),tip:"/clearday"},{id:"webhook",value:this.$L("\u8BBE\u7F6EWebhook"),tip:"/webhook"},{id:"dialog",value:this.$L("\u5BF9\u8BDD\u5217\u8868"),tip:"/dialog"}),g.push({label:[{id:0,value:this.$L("\u673A\u5668\u4EBA\u547D\u4EE4"),className:"sticky-top",disabled:!0}],list:_})}t(g);break;default:t([]);break}},isSlashAtLineStart(){const e=this.getEditor(),s=e==null?void 0:e.getModule("mention"),t=s==null?void 0:s.mentionCharPos;if(!e||typeof t!="number"||Math.max(0,e.getLength()-1)>100)return!1;const n=e.getText(0,t)||"";return Math.max(n.lastIndexOf(`
`),n.lastIndexOf("\r"))>=0?!1:n.trim().length===0},getMoreUser(e,s){return new Promise(t=>{const{owner_id:i,type:n}=this.dialogData,r=n==="group"&&[0,this.userId].includes(i);this.taskId>0||r?(this.moreTimer&&clearTimeout(this.moreTimer),this.moreTimer=setTimeout(o=>{this.$store.dispatch("call",{url:"users/search",data:{keys:{key:e,bot:2},state:1,take:30}}).then(({data:a})=>{const l=a.filter(c=>!s.includes(c.userid));t(l.map(c=>({id:c.userid,value:c.nickname,avatar:c.userimg,online:!!c.online,bot:!!c.bot,key:`${c.nickname} ${c.email} ${c.pinyin}`})))}).catch(a=>{t([])})},this.userCache===null?0:600)):t([])})},checkIOSVersion(){let s=(window&&window.navigator&&window.navigator.userAgent).match(/OS ((\d+_?){2,3})\s/i);const i=(s?s[1].replace(/_/g,"."):"unknown").split(".");return+i[0]==11&&+i[1]>=0&&+i[1]<3},handlePaste(e){const s=Array.prototype.slice.call(e.clipboardData.files);s.filter(i=>!$A.leftExists(i.type,"image/")).length>0&&(e.preventDefault(),this.$emit("on-file",s))},updateTools(){var s,t,i,n;this.showEmoji&&((s=this.$refs.emoji)==null||s.updatePopper()),this.showMore&&((t=this.$refs.more)==null||t.updatePopper()),this.showMenu&&((i=this.$refs.menu)==null||i.updatePopper());const e=(n=this.quill)==null?void 0:n.getModule("mention");e.isOpen&&e.setMentionContainerPosition()},tempHiddenSendTip(){const{sendTip:e}=this.$refs;e&&e.$refs.popper&&(e.$refs.popper.style.visibility="hidden",e.showPopper=!1,setTimeout(s=>{e.$refs.popper&&(e.$refs.popper.style.visibility="visible")},300))}}},si={};var ud=A(cd,ad,ld,!1,dd,null,null,null);function dd(e){for(let s in si)this[s]=si[s]}var hd=function(){return ud.exports}(),pd=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("Modal",{attrs:{title:e.title,"class-name":"common-user-select-modal forwarder-message-modal","mask-closable":!1,width:"420"},scopedSlots:e._u([{key:"footer",fn:function(){return[t("Button",{attrs:{type:"primary",loading:e.loading},on:{click:e.onSubmit}},[e._v(" "+e._s(e.$L("\u786E\u5B9A"))+" "),e.forwardTo.length>0?[e._v("("+e._s(e.forwardTo.length)+")")]:e._e()],2)]},proxy:!0}]),model:{value:e.show,callback:function(i){e.show=i},expression:"show"}},[t("div",{staticClass:"user-modal-search"},[t("Scrollbar",{staticClass:"search-selected",attrs:{"enable-x":"","enable-y":!1}},[t("ul",e._l(e.forwardTo,function(i){return t("li",{attrs:{"data-id":i.userid}},[i.type=="group"?t("div",{staticClass:"user-modal-avatar",attrs:{title:i.name}},[i.avatar?t("EAvatar",{staticClass:"img-avatar",attrs:{src:i.avatar,size:32}}):i.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):i.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):i.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):i.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}}),e.forwardTo.length==1?t("div",{staticClass:"avatar-name"},[t("span",[e._v(e._s(i.name))])]):e._e()],1):t("UserAvatar",{attrs:{userid:i.userid,size:32,"show-name":e.forwardTo.length==1}})],1)}),0)])],1),t("div",{staticClass:"twice-affirm-body-extend"},[t("div",{staticClass:"forwarder-wrapper-body"},[e.isMultiMode?t("div",{staticClass:"forward-mode-select"},[t("RadioGroup",{attrs:{size:"small"},model:{value:e.forwardMode,callback:function(i){e.forwardMode=i},expression:"forwardMode"}},[t("Radio",{attrs:{label:"one-by-one"}},[e._v(e._s(e.$L("\u9010\u6761\u8F6C\u53D1")))]),t("Radio",{attrs:{label:"merge"}},[e._v(e._s(e.$L("\u5408\u5E76\u8F6C\u53D1")))])],1)],1):e._e(),e.isMultiMode?t("div",{staticClass:"dialog-wrapper inde-list"},[t("Scrollbar",{attrs:{"class-name":"dialog-scroller"}},[e.forwardMode==="merge"?[t("div",{staticClass:"merge-forward-preview"},[t("div",{staticClass:"merge-preview-title"},[e._v(e._s(e.$L("\u804A\u5929\u8BB0\u5F55")))]),e._l(e.previewMsgList,function(i,n){return t("div",{key:i.id,staticClass:"merge-preview-item"},[t("UserAvatar",{attrs:{userid:i.userid,"show-icon":!1,"show-name":!0,size:16}}),t("span",{staticClass:"preview-desc",domProps:{innerHTML:e._s(e.$A.getMsgSimpleDesc(i))}})],1)}),t("div",{staticClass:"merge-preview-count"},[e._v(e._s(e.$L("\u5171(*)\u6761\u6D88\u606F",e.msgIds.length)))])],2)]:e._l(e.previewMsgList,function(i){return t("DialogItem",{key:i.id,attrs:{source:i,simpleView:""},on:{"on-view-text":e.onViewText,"on-view-file":e.onViewFile,"on-down-file":e.onDownFile,"on-emoji":e.onEmoji,"on-other":e.onOther}})})],2)],1):e.msgDetail?t("div",{staticClass:"dialog-wrapper inde-list"},[t("Scrollbar",{attrs:{"class-name":"dialog-scroller"}},[t("DialogItem",{attrs:{source:e.msgDetail,simpleView:""},on:{"on-view-text":e.onViewText,"on-view-file":e.onViewFile,"on-down-file":e.onDownFile,"on-emoji":e.onEmoji,"on-other":e.onOther}})],1)],1):e._e(),t("div",{staticClass:"leave-message"},[e.dialogId>0?t("ChatInput",{attrs:{"dialog-id":e.dialogId,"emoji-bottom":e.windowPortrait,maxlength:2e5,placeholder:e.placeholder||e.$L("\u7559\u8A00"),disabled:e.loading,"disabled-record":"","simple-mode":""},model:{value:e.message,callback:function(i){e.message=i},expression:"message"}}):t("Input",{attrs:{type:"textarea",autosize:{minRows:1,maxRows:3},maxlength:2e5,placeholder:e.placeholder||e.$L("\u7559\u8A00"),disabled:e.loading,clearable:""},model:{value:e.message,callback:function(i){e.message=i},expression:"message"}})],1),t("ul",{staticClass:"radio-group"},[e.aiUser.length>0?t("li",{class:{selected:e.ainew}},[t("Icon",{staticClass:"radio-icon",attrs:{type:e.ainew?"ios-checkmark-circle":"ios-radio-button-off"},on:{click:e.onAinew}}),t("span",{staticClass:"radio-label",on:{click:e.onAinew}},[e._v(e._s(e.$L("AI\u5F00\u542F\u65B0\u4F1A\u8BDD")))])],1):e._e(),!e.senderHidden&&e.forwardMode!=="merge"?t("li",{class:{selected:!e.sender}},[t("Icon",{staticClass:"radio-icon",attrs:{type:e.sender?"ios-radio-button-off":"ios-checkmark-circle"},on:{click:e.onSender}}),t("span",{staticClass:"radio-label",on:{click:e.onSender}},[e._v(e._s(e.$L("\u4E0D\u663E\u793A\u539F\u53D1\u9001\u8005\u4FE1\u606F")))])],1):e._e()])])])])},fd=[];const md={components:{ChatInput:hd,DialogItem:Wu},props:{value:{type:Boolean,default:!1},title:{type:String,default:""},placeholder:{type:String,default:null},senderHidden:{type:Boolean,default:!1},beforeSubmit:Function,dialogId:{type:Number,default:0},forwardTo:{type:Array,default:()=>[]},msgDetail:{type:Object,default:null},msgIds:{type:Array,default:()=>[]},msgList:{type:Array,default:()=>[]}},data(){return{show:!1,loading:!1,message:"",forwardMode:"one-by-one",ainew:$A.getStorageBoolean("forwarder.ainew",!0),sender:$A.getStorageBoolean("forwarder.sender",!0)}},computed:{...z(["cacheUserBasic"]),isMultiMode(){return this.msgIds&&this.msgIds.length>0},previewMsgList(){return this.isMultiMode?this.msgList.slice(0,this.forwardMode==="merge"?4:10):[]},aiUser({forwardTo:e,cacheUserBasic:s}){return e.filter(i=>i.type!=="group").filter(i=>{const n=s.find(r=>r.userid===i.userid);return n&&n.bot&&/^ai-(.*?)@bot\.system/.test(n.email)})}},watch:{value(e){this.show=e},ainew(e){$A.setStorage("forwarder.ainew",e)},sender(e){$A.setStorage("forwarder.sender",e)},show(e){this.$emit("input",e),e||(this.loading=!1,this.message="")}},methods:{onViewText(...e){this.$emit("on-view-text",...e)},onViewFile(...e){this.$emit("on-view-file",...e)},onDownFile(...e){this.$emit("on-down-file",...e)},onEmoji(...e){this.$emit("on-emoji",...e)},onOther(...e){this.$emit("on-other",...e)},onAinew(){this.loading||(this.ainew=!this.ainew)},onSender(){this.loading||(this.sender=!this.sender)},async onSubmit(){if(this.loading)return;if(!this.beforeSubmit){this.hide();return}const e={message:this.message};this.isMultiMode&&(e.forward_mode=this.forwardMode),this.senderHidden||(e.sender=this.sender),this.loading=!0;try{await this.onAiNew()}catch{this.loading=!1;return}const s=this.beforeSubmit(e);s&&s.then?s.then(()=>{this.hide()}).catch(t=>{}).finally(()=>{this.loading=!1}):(this.loading=!1,this.hide())},onAiNew(){return new Promise((e,s)=>{if(this.aiUser.length===0||!this.ainew)return e();(async()=>{try{for(const i of this.aiUser)await this.$store.dispatch("call",{url:"dialog/session/create",data:{userid:i.userid}}),await this.$store.dispatch("clearDialogMsgs",{id:this.dialogId});e()}catch(i){$A.modalError({language:!1,content:this.$L("AI\u5F00\u542F\u65B0\u4F1A\u8BDD\u5931\u8D25")+`: ${i.msg||"Unknown Error"}`}),s(i)}})()})},hide(){this.show=!1}}},ii={};var gd=A(md,pd,fd,!1,_d,null,null,null);function _d(e){for(let s in ii)this[s]=ii[s]}var vd=function(){return gd.exports}(),yd=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[t("UserSelect",{ref:"forwardSelect",attrs:{title:e.title,"show-bot":e.showBot,"multiple-max":e.userMaxSelect,"before-submit":e.onSelectBefore,"show-select-all":!1,"show-dialog":"",module:""}}),t("ForwardConfirm",{ref:"forwardConfirm",attrs:{title:e.confirmTitle,placeholder:e.confirmPlaceholder,"sender-hidden":e.senderHidden,"before-submit":e.onConfirmBefore,"dialog-id":e.forwardDialogId,"forward-to":e.forwardTo,"msg-detail":e.msgDetail,"msg-ids":e.msgIds,"msg-list":e.msgList},model:{value:e.confirmShow,callback:function(i){e.confirmShow=i},expression:"confirmShow"}})],1)},wd=[];const $d={name:"Forwarder",components:{UserSelect:Ft,ForwardConfirm:vd},props:{title:{type:String,default:"Forward"},confirmTitle:{type:String,default:"Forward Confirm"},confirmPlaceholder:{type:String,default:null},senderHidden:{type:Boolean,default:!1},showBot:{type:Boolean,default:!0},userMaxSelect:{type:Number,default:50},beforeSubmit:Function,msgDetail:{type:Object,default:null},msgIds:{type:Array,default:()=>[]},msgList:{type:Array,default:()=>[]}},data(){return{confirmShow:!1,forwardDialogId:0,forwardTo:[]}},methods:{onSelection(){this.$refs.forwardSelect.onSelection()},onSelectBefore(){return new Promise((e,s)=>{if(this.forwardTo=this.$refs.forwardSelect.formatSelect(this.$refs.forwardSelect.selects),this.forwardTo.length===0)$A.messageError("\u8BF7\u9009\u62E9\u5BF9\u8BDD\u6216\u6210\u5458");else{if(this.forwardDialogId=0,this.forwardTo.length===1){const{type:t,userid:i}=this.forwardTo[0];t==="group"&&/^d:/.test(i)&&(this.forwardDialogId=parseInt(i.replace(/^d:/,"")))}this.confirmShow=!0}s()})},onConfirmBefore(e){return new Promise((s,t)=>{const i=this.$refs.forwardSelect.selects;if(i.length===0){$A.messageError("\u8BF7\u9009\u62E9\u5BF9\u8BDD\u6216\u6210\u5458"),t();return}e.dialogids=i.filter(o=>$A.leftExists(o,"d:")).map(o=>o.replace("d:","")),e.userids=i.filter(o=>!$A.leftExists(o,"d:")),this.msgIds&&this.msgIds.length>0?e.msg_ids=this.msgIds:this.msgDetail&&(e.msg_id=this.msgDetail.id);const n=()=>{this.$refs.forwardSelect.hide(),s()};if(!this.beforeSubmit){n();return}const r=this.beforeSubmit(e);r&&r.then?r.then(n).catch(t):n()})}}},ni={};var kd=A($d,yd,wd,!1,bd,null,null,null);function bd(e){for(let s in ni)this[s]=ni[s]}var Ad=function(){return kd.exports}(),Cd=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",[t("EDropdown",{ref:"dropdown",staticClass:"general-operation-dropdown",style:e.styles,attrs:{trigger:"click",disabled:e.disabled,size:e.size,placement:e.placement},on:{command:e.dropTask,"visible-change":e.visibleChange}},[t("div",{ref:"icon",staticClass:"general-operation-icon"}),t("EDropdownMenu",{ref:"dropdownMenu",staticClass:"general-operation-more-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[t("li",{staticClass:"general-operation-more-warp",class:e.size},[t("ul",[e.flow?e.turns.length>0?e._l(e.turns,function(i){return t("EDropdownItem",{key:i.id,style:e.$A.generateColorVarStyle(i.color,[10],"flow-item-custom-color"),attrs:{command:`turn::${i.id}`}},[t("div",{staticClass:"item flow"},[i.id==e.task.flow_item_id&&e.flow.auto_assign!==!0?t("Icon",{staticClass:"check",attrs:{type:"md-checkmark-circle-outline"}}):t("Icon",{attrs:{type:"md-radio-button-off"}}),t("div",{staticClass:"flow-name",class:i.status},[e._v(e._s(i.name))])],1)])}):[e.task.complete_at?t("EDropdownItem",{attrs:{command:"uncomplete"}},[t("div",{staticClass:"item red"},[t("Icon",{attrs:{type:"md-checkmark-circle-outline"}}),e._v(e._s(e.$L("\u6807\u8BB0\u672A\u5B8C\u6210"))+" ")],1)]):t("EDropdownItem",{attrs:{command:"complete"}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"md-radio-button-off"}}),e._v(e._s(e.$L("\u5B8C\u6210"))+" ")],1)])]:t("EDropdownItem",{staticClass:"load-flow",attrs:{disabled:""}},[t("div",{staticClass:"load-flow-warp"},[t("Loading")],1)]),e.task.parent_id===0?[e.operationShow?[t("EDropdownItem",{attrs:{command:"favorite",divided:""}},[t("div",{staticClass:"item",class:{favorited:e.isFavorited}},[t("i",{staticClass:"taskfont movefont"},[e._v("\uE683")]),e._v(e._s(e.$L(e.isFavorited?"\u53D6\u6D88\u6536\u85CF":"\u6536\u85CF"))+" ")])]),t("EDropdownItem",{attrs:{command:"send"}},[t("div",{staticClass:"item"},[t("i",{staticClass:"taskfont movefont"},[e._v("\uE629")]),e._v(e._s(e.$L("\u53D1\u9001"))+" ")])]),t("EDropdownItem",{attrs:{command:"archived"}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"ios-filing"}}),e._v(e._s(e.$L(e.task.archived_at?"\u8FD8\u539F\u5F52\u6863":"\u5F52\u6863"))+" ")],1)]),t("EDropdownItem",{attrs:{command:"move"}},[t("div",{staticClass:"item"},[t("i",{staticClass:"taskfont movefont"},[e._v("\uE7FC")]),e._v(e._s(e.$L("\u79FB\u52A8"))+" ")])]),t("EDropdownItem",{attrs:{command:"copy"}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"ios-copy"}}),e._v(e._s(e.$L("\u590D\u5236"))+" ")],1)]),t("EDropdownItem",{attrs:{command:"remove"}},[t("div",{staticClass:"item hover-del"},[t("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("\u5220\u9664"))+" ")],1)])]:e._e(),e.colorShow?e._l(e.taskColorList,function(i,n){return t("EDropdownItem",{key:"c_"+n,attrs:{divided:n==0,command:i}},[t("div",{staticClass:"item"},[t("i",{staticClass:"taskfont",style:{color:i.primary||"#ddd"},domProps:{innerHTML:e._s(i.color==(e.task.color||"")?"&#xe61d;":"&#xe61c;")}}),e._v(e._s(e.$L(i.name))+" ")])])}):e._e()]:e.operationShow?[t("EDropdownItem",{attrs:{command:"upgrade",divided:e.turns.length>0}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"md-arrow-round-up"}}),e._v(e._s(e.$L("\u5347\u4E3B\u4EFB\u52A1"))+" ")],1)]),t("EDropdownItem",{attrs:{command:"remove"}},[t("div",{staticClass:"item hover-del"},[t("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("\u5220\u9664"))+" ")],1)])]:e._e()],2)])])],1),t("Modal",{attrs:{title:e.$L("\u79FB\u52A8\u4EFB\u52A1"),"mask-closable":!1,width:"540px","footer-hide":""},model:{value:e.moveTaskShow,callback:function(i){e.moveTaskShow=i},expression:"moveTaskShow"}},[t("TaskMove",{ref:"addTask",attrs:{task:e.task},model:{value:e.moveTaskShow,callback:function(i){e.moveTaskShow=i},expression:"moveTaskShow"}})],1),t("Modal",{attrs:{title:e.$L("\u590D\u5236\u4EFB\u52A1"),"mask-closable":!1,width:"540px","footer-hide":""},model:{value:e.copyTaskShow,callback:function(i){e.copyTaskShow=i},expression:"copyTaskShow"}},[t("TaskMove",{attrs:{task:e.task,type:"copy"},model:{value:e.copyTaskShow,callback:function(i){e.copyTaskShow=i},expression:"copyTaskShow"}})],1),t("Forwarder",{ref:"forwarder",attrs:{title:e.$L("\u53D1\u9001\u4EFB\u52A1"),"confirm-title":e.$L("\u786E\u8BA4\u53D1\u9001"),"confirm-placeholder":e.$L("\u9644\u8A00"),"multiple-max":50,"before-submit":e.onSendTask,"sender-hidden":""}})],1)},Sd=[];const xd={name:"TaskOperation",components:{Forwarder:Ad,TaskMove:Uo},data(){return{task:{},loadStatus:!1,colorShow:!0,operationShow:!0,updateBefore:!1,disabled:!1,size:"small",placement:"bottom",projectId:0,onUpdate:null,element:null,target:null,styles:{},moveTaskShow:!1,copyTaskShow:!1,isFavorited:!1}},beforeDestroy(){this.target&&this.target.removeEventListener("scroll",this.handlerEventListeners)},computed:{...z(["loads","taskOperation","taskColorList","taskFlows","taskFlowItems"]),...pt(["isLoad"]),loadIng(){return this.loadStatus?!0:this.isLoad(`task-${this.task.id}`)},flow(){const e=this.taskFlows.find(({task_id:s})=>s==this.task.id);return e||this.taskFlows.find(({flow_item_id:s})=>s==this.task.flow_item_id)},turns(){if(!this.flow)return[];let e=this.taskFlowItems.find(({id:s})=>s==this.flow.flow_item_id);return e?this.taskFlowItems.filter(({id:s})=>e.turns.includes(s)):[]}},watch:{taskOperation(e){if(e.event&&e.task){if(this.$refs.dropdown.visible&&this.element===e.event.target){this.hide();return}const s=e.event.target.getBoundingClientRect();this.styles={left:`${s.left}px`,top:`${s.top}px`,width:`${s.width}px`,height:`${s.height}px`},this.task=e.task,this.loadStatus=typeof e.loadStatus=="undefined"?!1:e.loadStatus,this.colorShow=typeof e.colorShow=="undefined"?!0:e.colorShow,this.operationShow=typeof e.operationShow=="undefined"?!0:e.operationShow,this.updateBefore=typeof e.updateBefore=="undefined"?!1:e.updateBefore,this.disabled=typeof e.disabled=="undefined"?!1:e.disabled,this.size=typeof e.size=="undefined"?"small":e.size,this.placement=typeof e.placement=="undefined"?"bottom":e.placement,this.projectId=typeof e.projectId=="undefined"?0:e.projectId,this.onUpdate=typeof e.onUpdate=="function"?e.onUpdate:null,this.checkFavoriteStatus(),this.$refs.icon.focus(),this.updatePopper(),this.show(),this.$store.dispatch("getTaskFlow",{task_id:this.task.id,project_id:this.projectId}).finally(this.updatePopper),this.setupEventListeners(e.event)}else this.hide()}},methods:{show(){this.$refs.dropdown.show()},hide(){this.$refs.dropdown.hide()},dropTask(e){const s=this.task,t=i=>{i?this.$store.dispatch("saveTaskCompleteTemp",s.id):this.$store.dispatch("forgetTaskCompleteTemp",s.id)};if($A.isJson(e)){e.name&&this.updateTask({color:e.color}).catch(()=>{});return}if($A.leftExists(e,"turn::")){let i=$A.leftDelete(e,"turn::");if(i==this.task.flow_item_id)return;let n=this.taskFlowItems.find(({id:l})=>l==this.flow.flow_item_id)||{},r=this.taskFlowItems.find(({id:l})=>l==i)||{},o=n.status!=="end"&&r.status==="end",a=n.status==="end"&&r.status!=="end";this.updateBefore&&(o?t(!0):a&&t(!1)),this.updateTask({flow_item_id:i,flow_item_status:r.status,flow_item_name:r.name}).then(()=>{o?t(!0):a&&t(!1)}).catch(()=>{o?t(!1):a&&t(!0)});return}switch(e){case"complete":if(this.task.complete_at)return;this.updateBefore&&t(!0),this.updateTask({complete_at:$A.daytz().format("YYYY-MM-DD HH:mm:ss")}).then(()=>{t(!0)}).catch(i=>{var n;t(!1),i&&i.ret===-4005&&((n=i.data)==null?void 0:n.flow_items)&&this.showFlowItemSelector(i.data.flow_items,"complete")});break;case"uncomplete":if(!this.task.complete_at)return;this.updateBefore&&t(!1),this.updateTask({complete_at:!1}).then(()=>{t(!1)}).catch(i=>{var n;t(!0),i&&i.ret===-4006&&((n=i.data)==null?void 0:n.flow_items)&&this.showFlowItemSelector(i.data.flow_items,"uncomplete")});break;case"favorite":this.toggleFavorite();break;case"send":this.$refs.forwarder.onSelection();break;case"upgrade":this.upgradeSubtask();break;case"archived":case"remove":this.archivedOrRemoveTask(e);break;case"move":this.moveTaskShow=!0;break;case"copy":this.copyTaskShow=!0;break}},updateTask(e){return new Promise((s,t)=>{if(this.loadIng){t();return}const i=Object.assign(e,{task_id:this.task.id});if(!this.operationShow){typeof this.onUpdate=="function"&&this.onUpdate(i),t();return}Object.keys(e).forEach(n=>this.$set(this.task,n,e[n])),this.$store.dispatch("taskUpdate",i).then(({data:n,msg:r})=>{$A.messageSuccess(r),s(),this.$store.dispatch("saveTaskBrowse",i.task_id),typeof this.onUpdate=="function"&&this.onUpdate(n)}).catch(n=>{if(n&&(n.ret===-4005||n.ret===-4006)){this.$store.dispatch("getTaskOne",i.task_id).catch(()=>{}),t(n);return}$A.modalError(n==null?void 0:n.msg),this.$store.dispatch("getTaskOne",i.task_id).catch(()=>{}),t(n)})})},upgradeSubtask(){this.loadIng||$A.modalConfirm({title:"\u5347\u7EA7\u4E3A\u4E3B\u4EFB\u52A1",content:`\u4F60\u786E\u5B9A\u8981\u5C06\u5B50\u4EFB\u52A1\u3010${this.task.name}\u3011\u5347\u7EA7\u4E3A\u4E3B\u4EFB\u52A1\u5417\uFF1F`,loading:!0,onOk:()=>{if(!this.loadIng)return new Promise(e=>{this.$store.dispatch("taskConvertToMain",this.task.id).then(({data:s,msg:t})=>{var i;$A.messageSuccess(t),this.hide(),this.$store.dispatch("openTask",((i=s==null?void 0:s.task)==null?void 0:i.id)||this.task.id),e()}).catch(({msg:s})=>{$A.modalError(s),e()})})}})},showFlowItemSelector(e,s){const t=e.map(i=>({label:i.name,value:i.id,color:i.color}));this.$store.commit("menu/operation",{event:{target:this.$refs.icon},list:t,size:"large",onUpdate:i=>{if(i){const n=e.find(r=>r.id===i);if(n){const r={flow_item_id:i,flow_item_status:n.status,flow_item_name:n.name};s==="complete"?r.complete_at=$A.daytz().format("YYYY-MM-DD HH:mm:ss"):r.complete_at=!1,this.updateTask(r).catch(()=>{})}}}})},archivedOrRemoveTask(e){let s="removeTask",t="\u5220\u9664",i={task_id:this.task.id},n=this.task.parent_id>0?"\u5B50\u4EFB\u52A1":"\u4EFB\u52A1";e=="archived"&&(s="archivedTask",t="\u5F52\u6863",this.task.archived_at&&(t="\u8FD8\u539F\u5F52\u6863",i={task_id:this.task.id,type:"recovery"})),$A.modalConfirm({title:t+n,content:"\u4F60\u786E\u5B9A\u8981"+t+n+"\u3010"+this.task.name+"\u3011\u5417\uFF1F",loading:!0,onOk:()=>{if(!this.loadIng)return new Promise((r,o)=>{this.$store.dispatch(s,i).then(({msg:a})=>{r(a),this.$store.dispatch("saveTaskBrowse",i.task_id)}).catch(({msg:a})=>{o(a)})})}})},visibleChange(e){this.visible=e},updatePopper(){this.$nextTick(this.$refs.dropdownMenu.updatePopper)},setupEventListeners(e){this.element=e.target;let s=this.getScrollParent(this.element);if((s===window.document.body||s===window.document.documentElement)&&(s=window),this.target){if(this.target===s)return;this.target.removeEventListener("scroll",this.handlerEventListeners)}this.target=s,this.target.addEventListener("scroll",this.handlerEventListeners)},handlerEventListeners(e){if(!this.visible||!this.element)return;const s=e.target.getBoundingClientRect(),t=this.element.getBoundingClientRect();if(t.top<s.top||t.top>s.top+s.height){this.hide();return}this.styles={left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`},this.updatePopper()},getScrollParent(e){const s=e.parentNode;return s?s===window.document?window.document.body.scrollTop||window.document.body.scrollLeft?window.document.body:window.document.documentElement:["scroll","auto"].indexOf(this.getStyleComputedProperty(s,"overflow"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(s,"overflow-x"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(s,"overflow-y"))!==-1?s:this.getScrollParent(e.parentNode):e},getStyleComputedProperty(e,s){return!e||!(e instanceof HTMLElement)?null:window.getComputedStyle(e,null)[s]},onSendTask({dialogids:e,userids:s,message:t}){return new Promise((i,n)=>{this.$store.dispatch("call",{url:"dialog/msg/sendtaskid",data:{dialogids:e,userids:s,leave_message:t,task_id:this.task.id}}).then(({data:r,msg:o})=>{this.$store.dispatch("saveDialogMsg",r.msgs),this.$store.dispatch("updateDialogLastMsg",r.msgs),$A.messageSuccess(o),i()}).catch(({msg:r})=>{$A.modalError(r),n()})})},checkFavoriteStatus(){!this.task.id||this.$store.dispatch("checkFavoriteStatus",{type:"task",id:this.task.id}).then(({data:e})=>{this.isFavorited=e.favorited||!1}).catch(()=>{this.isFavorited=!1})},toggleFavorite(){!this.task.id||this.$store.dispatch("toggleFavorite",{type:"task",id:this.task.id}).then(({data:e})=>{this.isFavorited=e.favorited,this.hide()})}}},ri={};var Td=A(xd,Cd,Sd,!1,Id,null,null,null);function Id(e){for(let s in ri)this[s]=ri[s]}var Dd=function(){return Td.exports}(),Ed=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"meeting-player"},[t("div",{staticClass:"player",attrs:{id:e.id}},[t("div",{staticClass:"player-bg",style:e.playerStyle})]),t("ETooltip",{attrs:{disabled:e.$isEEUIApp||e.windowTouch||!e.username}},[t("div",{attrs:{slot:"content"},slot:"content"},[e._v(" "+e._s(e.username)+" ")]),t("div",{staticClass:"meeting-avatar"},[e.userid?t("UserAvatar",{attrs:{userid:e.userid,size:36,borderWidth:2}}):e.tourist.userimg?t("div",{staticClass:"common-avatar avatar-wrapper"},[t("div",{staticClass:"avatar-box online"},[t("em"),t("EAvatar",{attrs:{size:36,src:e.tourist.userimg}})],1)]):e._e()],1)]),t("div",{staticClass:"player-state"},[e.audio?e._e():t("i",{staticClass:"taskfont"},[e._v("\uE7C7")]),e.video?e._e():t("i",{staticClass:"taskfont"},[e._v("\uE7C8")])])],1)},Ld=[];const Md={name:"MeetingPlayer",props:{id:{type:String,default:()=>"meeting-player-"+Math.round(Math.random()*1e4)},player:{type:Object,default:()=>({})},isLocal:{type:Boolean,default:!1}},data(){return{timer:null,tourist:{uid:"",nickname:"",userimg:""}}},mounted(){this.timer=setInterval(e=>{this.audio&&!this.player.audioTrack.isPlaying&&this.play("audio"),this.video&&!this.player.videoTrack.isPlaying&&this.play("video")},3e3)},beforeDestroy(){clearInterval(this.timer)},computed:{...z(["cacheUserBasic"]),userid(){return this.player.uid?(this.player.uid+"").indexOf("88888")!==-1?(this.getTouristInfo(),0):parseInt((this.player.uid+"").substring(6))||0:0},username(){if(this.userid){const e=this.cacheUserBasic.find(({userid:s})=>s==this.userid);return e?e.nickname:""}return this.tourist.nickname||""},playerStyle(){const e=this.cacheUserBasic.find(({userid:s})=>s==this.userid);return e&&e.userimg?{backgroundImage:`url("${e.userimg}")`}:this.tourist.userimg?{backgroundImage:`url("${this.tourist.userimg}")`}:null},audio(){return!!this.player.audioTrack},video(){return!!this.player.videoTrack}},watch:{audio:{handler(e){e&&this.play("audio")},immediate:!0},video:{handler(e){e&&this.play("video")},immediate:!0}},methods:{play(e){this.$nextTick(s=>{try{e==="audio"?!this.isLocal&&this.player.audioTrack.play():e==="video"&&this.player.videoTrack.play(this.id)}catch(t){console.log("Meeting Player Error",t)}})},getTouristInfo(){this.$store.dispatch("call",{url:"users/meeting/tourist",data:{tourist_id:this.player.uid}}).then(({data:e})=>{this.tourist=e}).catch(({msg:e})=>{$A.modalError(e)})}}},oi={};var Pd=A(Md,Ed,Ld,!1,jd,null,null,null);function jd(e){for(let s in oi)this[s]=oi[s]}var Rd=function(){return Pd.exports}(),Od=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{ref:"floatDrag",style:e.dragStyle,on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.mouseDown.apply(null,arguments)}}},[e._t("default")],2)},zd=[];const Ud={name:"DragBallComponent",props:{id:{type:String,default:""},distanceRight:{type:Number,default:0},distanceBottom:{type:Number,default:100},isScrollHidden:{type:Boolean,default:!1},isCanDraggable:{type:Boolean,default:!0},zIndex:{type:Number,default:50}},data(){return{clientWidth:null,clientHeight:null,top:0,left:0,timer:null,currentTop:0,isMoving:!1,record:{}}},created(){this.clientWidth=document.documentElement.clientWidth,this.clientHeight=document.documentElement.clientHeight},mounted(){this.id&&($A.isJson(window._DragBallComponent)||(window._DragBallComponent={})),this.isCanDraggable&&this.$nextTick(()=>{this.id&&$A.isJson(window._DragBallComponent[this.id])?(this.left=window._DragBallComponent[this.id].left,this.top=window._DragBallComponent[this.id].top):(this.left=this.clientWidth-this.floatDrag.offsetWidth-this.distanceRight,this.top=this.clientHeight-this.floatDrag.offsetHeight-this.distanceBottom),this.initDraggable()}),this.isScrollHidden&&window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.handleResize)},beforeDestroy(){this.id&&(window._DragBallComponent[this.id]={left:this.left,top:this.top}),window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleResize)},computed:{dragStyle(){return{left:this.left+"px",top:this.top+"px",zIndex:this.zIndex,position:"fixed"}},floatDrag(){return this.$refs.floatDrag}},methods:{handleScroll(){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{this.handleScrollEnd()},200),this.currentTop=document.documentElement.scrollTop||document.body.scrollTop,this.left>this.clientWidth/2?this.left=this.clientWidth+this.floatDrag.offsetWidth:this.left=-this.floatDrag.offsetWidth},handleScrollEnd(){(document.documentElement.scrollTop||document.body.scrollTop)===this.currentTop&&(this.left>this.clientWidth/2?this.left=this.clientWidth-this.floatDrag.offsetWidth:this.left=0,clearTimeout(this.timer))},handleResize(){this.clientWidth=document.documentElement.clientWidth,this.clientHeight=document.documentElement.clientHeight,this.$nextTick(this.checkDraggablePosition)},initDraggable(){this.floatDrag.addEventListener("touchstart",this.toucheStart),this.floatDrag.addEventListener("touchmove",this.touchMove),this.floatDrag.addEventListener("touchend",this.touchEnd)},mouseDown(e){this.record={time:$A.dayjs().valueOf(),top:this.floatDrag.offsetTop,left:this.floatDrag.offsetLeft,x:e.clientX-this.floatDrag.offsetLeft,y:e.clientY-this.floatDrag.offsetTop},this.floatDrag.style.transition="none",this.canClick=!1,document.onmousemove=s=>{let t=s.clientX-this.record.x,i=s.clientY-this.record.y;t<0?t=0:t>window.innerWidth-this.floatDrag.offsetWidth&&(t=window.innerWidth-this.floatDrag.offsetWidth),i<0?i=0:i>window.innerHeight-this.floatDrag.offsetHeight&&(i=window.innerHeight-this.floatDrag.offsetHeight),this.left=t,this.top=i},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null,this.checkDraggablePosition(),this.floatDrag.style.transition="all 0.3s",(Math.abs(this.record.top-this.floatDrag.offsetTop)<5&&Math.abs(this.record.left-this.floatDrag.offsetLeft)<5||$A.dayjs().valueOf()-this.record.time<200)&&this.$emit("on-click")}},toucheStart(){this.canClick=!1,this.floatDrag.style.transition="none"},touchMove(e){if(this.canClick=!0,e.targetTouches.length===1){let s=event.targetTouches[0],t=s.clientX-this.floatDrag.offsetWidth/2,i=s.clientY-this.floatDrag.offsetHeight/2;t<0?t=0:t>window.innerWidth-this.floatDrag.offsetWidth&&(t=window.innerWidth-this.floatDrag.offsetWidth),i<0?i=0:i>window.innerHeight-this.floatDrag.offsetHeight&&(i=window.innerHeight-this.floatDrag.offsetHeight),this.left=t,this.top=i}},touchEnd(){!this.canClick||(this.floatDrag.style.transition="all 0.3s",this.checkDraggablePosition())},checkDraggablePosition(){this.left+this.floatDrag.offsetWidth/2>=this.clientWidth/2?this.left=this.clientWidth-this.floatDrag.offsetWidth:this.left=0,this.top<0&&(this.top=0),this.top+this.floatDrag.offsetHeight>=this.clientHeight&&(this.top=this.clientHeight-this.floatDrag.offsetHeight)}}},ai={};var Nd=A(Ud,Od,zd,!1,Bd,null,null,null);function Bd(e){for(let s in ai)this[s]=ai[s]}var Fd=function(){return Nd.exports}();const Hd={UNEXPECTED_ERROR:{zh:"\u65E0\u6CD5\u5904\u7406\u7684\u3001\u975E\u9884\u671F\u7684\u9519\u8BEF\uFF0C\u901A\u5E38\u8FD9\u4E2A\u9519\u8BEF\u4F1A\u6709\u5177\u4F53\u7684\u9519\u8BEF\u63D0\u793A\u3002","zh-CHT":"\u7121\u6CD5\u8655\u7406\u7684\u3001\u975E\u9810\u671F\u7684\u932F\u8AA4\uFF0C\u901A\u5E38\u9019\u500B\u932F\u8AA4\u6703\u6709\u5177\u9AD4\u7684\u932F\u8AA4\u63D0\u793A\u3002",en:"An unhandled, unexpected error. This error usually comes with a specific error message.",ko:"\uCC98\uB9AC\uB418\uC9C0 \uC54A\uC740 \uC608\uAE30\uCE58 \uC54A\uC740 \uC624\uB958\uC785\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uC774 \uC624\uB958\uC5D0\uB294 \uAD6C\uCCB4\uC801\uC778 \uC624\uB958 \uBA54\uC2DC\uC9C0\uAC00 \uD3EC\uD568\uB429\uB2C8\uB2E4.",ja:"\u51E6\u7406\u3067\u304D\u306A\u3044\u4E88\u671F\u3057\u306A\u3044\u30A8\u30E9\u30FC\u3067\u3059\u3002\u901A\u5E38\u3001\u3053\u306E\u30A8\u30E9\u30FC\u306B\u306F\u5177\u4F53\u7684\u306A\u30A8\u30E9\u30FC\u30E1\u30C3\u30BB\u30FC\u30B8\u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059\u3002",de:"Ein unbehandelter, unerwarteter Fehler. Dieser Fehler enth\xE4lt normalerweise eine spezifische Fehlermeldung.",fr:"Une erreur inattendue et non g\xE9r\xE9e. Cette erreur est g\xE9n\xE9ralement accompagn\xE9e d'un message d'erreur sp\xE9cifique.",id:"Kesalahan tak terduga dan tidak tertangani. Kesalahan ini biasanya disertai dengan pesan kesalahan spesifik.",ru:"\u041D\u0435\u043E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u043D\u043D\u0430\u044F, \u043D\u0435\u043E\u0436\u0438\u0434\u0430\u043D\u043D\u0430\u044F \u043E\u0448\u0438\u0431\u043A\u0430. \u041E\u0431\u044B\u0447\u043D\u043E \u044D\u0442\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 \u0441\u043E\u043F\u0440\u043E\u0432\u043E\u0436\u0434\u0430\u0435\u0442\u0441\u044F \u043A\u043E\u043D\u043A\u0440\u0435\u0442\u043D\u044B\u043C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435\u043C \u043E\u0431 \u043E\u0448\u0438\u0431\u043A\u0435."},UNEXPECTED_RESPONSE:{zh:"\u670D\u52A1\u7AEF\u8FD4\u56DE\u4E86\u975E\u9884\u671F\u7684\u54CD\u5E94\u3002\u8FD9\u4E2A\u9519\u8BEF\u901A\u5E38\u662F\u5728\u7F51\u7EDC\u95EE\u9898\u5BFC\u81F4\u5BA2\u6237\u7AEF\u4E0E\u670D\u52A1\u7AEF\u72B6\u6001\u4E0D\u4E00\u81F4\u65F6\u629B\u51FA\u3002","zh-CHT":"\u670D\u52D9\u7AEF\u8FD4\u56DE\u4E86\u975E\u9810\u671F\u7684\u97FF\u61C9\u3002\u9019\u500B\u932F\u8AA4\u901A\u5E38\u662F\u5728\u7DB2\u7D61\u554F\u984C\u5C0E\u81F4\u5BA2\u6236\u7AEF\u8207\u670D\u52D9\u7AEF\u72C0\u614B\u4E0D\u4E00\u81F4\u6642\u62CB\u51FA\u3002",en:"The server returned an unexpected response. This error usually occurs when network issues cause inconsistency between client and server states.",ko:"\uC11C\uBC84\uAC00 \uC608\uAE30\uCE58 \uC54A\uC740 \uC751\uB2F5\uC744 \uBC18\uD658\uD588\uC2B5\uB2C8\uB2E4. \uC774 \uC624\uB958\uB294 \uC77C\uBC18\uC801\uC73C\uB85C \uB124\uD2B8\uC6CC\uD06C \uBB38\uC81C\uB85C \uC778\uD574 \uD074\uB77C\uC774\uC5B8\uD2B8\uC640 \uC11C\uBC84 \uC0C1\uD0DC\uAC00 \uBD88\uC77C\uCE58\uD560 \uB54C \uBC1C\uC0DD\uD569\uB2C8\uB2E4.",ja:"\u30B5\u30FC\u30D0\u30FC\u304B\u3089\u4E88\u671F\u3057\u306A\u3044\u5FDC\u7B54\u304C\u8FD4\u3055\u308C\u307E\u3057\u305F\u3002\u3053\u306E\u30A8\u30E9\u30FC\u306F\u901A\u5E38\u3001\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u306E\u554F\u984C\u306B\u3088\u3063\u3066\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u3068\u30B5\u30FC\u30D0\u30FC\u306E\u72B6\u614B\u304C\u4E00\u81F4\u3057\u306A\u3044\u5834\u5408\u306B\u767A\u751F\u3057\u307E\u3059\u3002",de:"Der Server hat eine unerwartete Antwort zur\xFCckgegeben. Dieser Fehler tritt normalerweise auf, wenn Netzwerkprobleme zu Inkonsistenzen zwischen Client- und Serverzust\xE4nden f\xFChren.",fr:"Le serveur a renvoy\xE9 une r\xE9ponse inattendue. Cette erreur survient g\xE9n\xE9ralement lorsque des probl\xE8mes de r\xE9seau causent une incoh\xE9rence entre les \xE9tats du client et du serveur.",id:"Server mengembalikan respons yang tidak terduga. Kesalahan ini biasanya terjadi ketika masalah jaringan menyebabkan ketidaksesuaian antara status klien dan server.",ru:"\u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u0435\u0440\u043D\u0443\u043B \u043D\u0435\u043E\u0436\u0438\u0434\u0430\u043D\u043D\u044B\u0439 \u043E\u0442\u0432\u0435\u0442. \u042D\u0442\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 \u043E\u0431\u044B\u0447\u043D\u043E \u0432\u043E\u0437\u043D\u0438\u043A\u0430\u0435\u0442, \u043A\u043E\u0433\u0434\u0430 \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u044B \u0441 \u0441\u0435\u0442\u044C\u044E \u0432\u044B\u0437\u044B\u0432\u0430\u044E\u0442 \u043D\u0435\u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u043C\u0435\u0436\u0434\u0443 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F\u043C\u0438 \u043A\u043B\u0438\u0435\u043D\u0442\u0430 \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430."},INVALID_PARAMS:{zh:"\u975E\u6CD5\u53C2\u6570\u3002","zh-CHT":"\u975E\u6CD5\u53C3\u6578\u3002",en:"Invalid parameters.",ko:"\uC798\uBABB\uB41C \uB9E4\uAC1C\uBCC0\uC218\uC785\uB2C8\uB2E4.",ja:"\u7121\u52B9\u306A\u30D1\u30E9\u30E1\u30FC\u30BF\u3067\u3059\u3002",de:"Ung\xFCltige Parameter.",fr:"Param\xE8tres invalides.",id:"Parameter tidak valid.",ru:"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B."},NOT_SUPPORTED:{zh:"\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u3002","zh-CHT":"\u700F\u89BD\u5668\u4E0D\u652F\u6301\u3002",en:"Browser not supported.",ko:"\uBE0C\uB77C\uC6B0\uC800\uAC00 \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",ja:"\u30D6\u30E9\u30A6\u30B6\u306F\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",de:"Der Browser wird nicht unterst\xFCtzt.",fr:"Le navigateur n'est pas pris en charge.",id:"Browser tidak didukung.",ru:"\u0411\u0440\u0430\u0443\u0437\u0435\u0440 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F."},INVALID_OPERATION:{zh:"\u975E\u6CD5\u64CD\u4F5C\uFF0C\u901A\u5E38\u662F\u56E0\u4E3A\u5728\u5F53\u524D\u72B6\u6001\u4E0D\u80FD\u8FDB\u884C\u8BE5\u64CD\u4F5C\u3002","zh-CHT":"\u975E\u6CD5\u64CD\u4F5C\uFF0C\u901A\u5E38\u662F\u56E0\u70BA\u5728\u7576\u524D\u72C0\u614B\u4E0D\u80FD\u9032\u884C\u8A72\u64CD\u4F5C\u3002",en:"Invalid operation, usually because the operation cannot be performed in the current state.",ko:"\uC798\uBABB\uB41C \uC791\uC5C5\uC785\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uD604\uC7AC \uC0C1\uD0DC\uC5D0\uC11C \uD574\uB2F9 \uC791\uC5C5\uC744 \uC218\uD589\uD560 \uC218 \uC5C6\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4.",ja:"\u7121\u52B9\u306A\u64CD\u4F5C\u3067\u3059\u3002\u901A\u5E38\u306F\u3001\u73FE\u5728\u306E\u72B6\u614B\u3067\u64CD\u4F5C\u3092\u5B9F\u884C\u3067\u304D\u306A\u3044\u305F\u3081\u3067\u3059\u3002",de:"Ung\xFCltiger Vorgang, normalerweise weil der Vorgang im aktuellen Zustand nicht durchgef\xFChrt werden kann.",fr:"Op\xE9ration invalide, g\xE9n\xE9ralement parce que l'op\xE9ration ne peut pas \xEAtre effectu\xE9e dans l'\xE9tat actuel.",id:"Operasi tidak valid. Biasanya karena operasi tidak dapat dilakukan dalam status saat ini.",ru:"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u0430\u044F \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044F, \u043E\u0431\u044B\u0447\u043D\u043E \u043F\u043E\u0442\u043E\u043C\u0443, \u0447\u0442\u043E \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044F \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0430 \u0432 \u0442\u0435\u043A\u0443\u0449\u0435\u043C \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0438."},OPERATION_ABORTED:{zh:"\u64CD\u4F5C\u4E2D\u6B62\uFF0C\u901A\u5E38\u662F\u56E0\u4E3A\u7F51\u7EDC\u8D28\u91CF\u5DEE\u6216\u8FDE\u63A5\u65AD\u5F00\u5BFC\u81F4\u4E0E\u8BED\u97F3\u670D\u52A1\u5668\u901A\u4FE1\u5931\u8D25\u3002","zh-CHT":"\u64CD\u4F5C\u4E2D\u6B62\uFF0C\u901A\u5E38\u662F\u56E0\u70BA\u7DB2\u7D61\u8CEA\u91CF\u5DEE\u6216\u9023\u63A5\u65B7\u958B\u5C0E\u81F4\u8207\u8A9E\u97F3\u670D\u52D9\u5668\u901A\u4FE1\u5931\u6557\u3002",en:"Operation aborted, usually due to communication failure with the voice server caused by poor network quality or disconnection.",ko:"\uC791\uC5C5\uC774 \uC911\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uB124\uD2B8\uC6CC\uD06C \uD488\uC9C8\uC774 \uB098\uC058\uAC70\uB098 \uC5F0\uACB0\uC774 \uB04A\uC5B4\uC838 \uC74C\uC131 \uC11C\uBC84\uC640 \uD1B5\uC2E0\uC5D0 \uC2E4\uD328\uD588\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4.",ja:"\u64CD\u4F5C\u304C\u4E2D\u6B62\u3055\u308C\u307E\u3057\u305F\u3002\u901A\u5E38\u306F\u3001\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u54C1\u8CEA\u304C\u60AA\u3044\u304B\u3001\u63A5\u7D9A\u304C\u5207\u65AD\u3055\u308C\u305F\u305F\u3081\u3001\u97F3\u58F0\u30B5\u30FC\u30D0\u30FC\u3068\u306E\u901A\u4FE1\u306B\u5931\u6557\u3057\u305F\u305F\u3081\u3067\u3059\u3002",de:"Vorgang abgebrochen, normalerweise aufgrund von Kommunikationsfehlern mit dem Sprachserver aufgrund von schlechter Netzwerkqualit\xE4t oder Verbindungsunterbrechung.",fr:"Op\xE9ration annul\xE9e, g\xE9n\xE9ralement en raison d'une d\xE9faillance de communication avec le serveur vocal due \xE0 une mauvaise qualit\xE9 du r\xE9seau ou \xE0 une d\xE9connexion.",id:"Operasi dibatalkan. Biasanya karena komunikasi dengan server suara gagal karena kualitas jaringan yang buruk atau koneksi yang terputus.",ru:"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F \u043E\u0442\u043C\u0435\u043D\u0435\u043D\u0430, \u043E\u0431\u044B\u0447\u043D\u043E \u0438\u0437-\u0437\u0430 \u0441\u0431\u043E\u044F \u0441\u0432\u044F\u0437\u0438 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043E\u043C \u0433\u043E\u043B\u043E\u0441\u0430 \u0438\u0437-\u0437\u0430 \u043F\u043B\u043E\u0445\u043E\u0433\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u0435\u0442\u0438 \u0438\u043B\u0438 \u0440\u0430\u0437\u0440\u044B\u0432\u0430 \u0441\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u044F."},WEB_SECURITY_RESTRICT:{zh:"\u6D4F\u89C8\u5668\u5B89\u5168\u7B56\u7565\u9650\u5236\u3002","zh-CHT":"\u700F\u89BD\u5668\u5B89\u5168\u7B56\u7565\u9650\u5236\u3002",en:"Browser security policy restriction.",ko:"\uBE0C\uB77C\uC6B0\uC800 \uBCF4\uC548 \uC815\uCC45 \uC81C\uD55C\uC785\uB2C8\uB2E4.",ja:"\u30D6\u30E9\u30A6\u30B6\u306E\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u30DD\u30EA\u30B7\u30FC\u5236\u9650\u3067\u3059\u3002",de:"Einschr\xE4nkung der Browser-Sicherheitsrichtlinie.",fr:"Restriction de la politique de s\xE9curit\xE9 du navigateur.",id:"Pembatasan kebijakan keamanan browser.",ru:"\u041E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u0438\u0435 \u043F\u043E\u043B\u0438\u0442\u0438\u043A\u0438 \u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u043E\u0441\u0442\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430."},NO_ACTIVE_STATUS:{zh:"\u8BED\u97F3\u9879\u76EE\u672A\u6FC0\u6D3B\u6216\u88AB\u7981\u7528\u3002","zh-CHT":"\u8A9E\u97F3\u9805\u76EE\u672A\u6FC0\u6D3B\u6216\u88AB\u7981\u7528\u3002",en:"Voice project is not activated or has been disabled.",ko:"\uC74C\uC131 \uD504\uB85C\uC81D\uD2B8\uAC00 \uD65C\uC131\uD654\uB418\uC9C0 \uC54A\uC558\uAC70\uB098 \uBE44\uD65C\uC131\uD654\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",ja:"\u97F3\u58F0\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u304C\u30A2\u30AF\u30C6\u30A3\u30D6\u5316\u3055\u308C\u3066\u3044\u306A\u3044\u304B\u3001\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002",de:"Sprachprojekt ist nicht aktiviert oder wurde deaktiviert.",fr:"Le projet vocal n'est pas activ\xE9 ou a \xE9t\xE9 d\xE9sactiv\xE9.",id:"Proyek suara tidak diaktifkan atau dinonaktifkan.",ru:"\u041F\u0440\u043E\u0435\u043A\u0442 \u0433\u043E\u043B\u043E\u0441\u0430 \u043D\u0435 \u0430\u043A\u0442\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D \u0438\u043B\u0438 \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D."},NETWORK_TIMEOUT:{zh:"\u8BF7\u6C42\u8D85\u65F6\uFF0C\u901A\u5E38\u662F\u56E0\u4E3A\u7F51\u7EDC\u8D28\u91CF\u5DEE\u6216\u8FDE\u63A5\u65AD\u5F00\u5BFC\u81F4\u4E0E\u8BED\u97F3\u670D\u52A1\u5668\u901A\u4FE1\u5931\u8D25\u3002","zh-CHT":"\u8ACB\u6C42\u8D85\u6642\uFF0C\u901A\u5E38\u662F\u56E0\u70BA\u7DB2\u7D61\u8CEA\u91CF\u5DEE\u6216\u9023\u63A5\u65B7\u958B\u5C0E\u81F4\u8207\u8A9E\u97F3\u670D\u52D9\u5668\u901A\u4FE1\u5931\u6557\u3002",en:"Request timeout, usually due to communication failure with the voice server caused by poor network quality or disconnection.",ko:"\uC694\uCCAD\uC774 \uC2DC\uAC04 \uCD08\uACFC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uB124\uD2B8\uC6CC\uD06C \uD488\uC9C8\uC774 \uB098\uC058\uAC70\uB098 \uC5F0\uACB0\uC774 \uB04A\uC5B4\uC838 \uC74C\uC131 \uC11C\uBC84\uC640 \uD1B5\uC2E0\uC5D0 \uC2E4\uD328\uD588\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4.",ja:"\u30EA\u30AF\u30A8\u30B9\u30C8\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F\u3002\u901A\u5E38\u306F\u3001\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u54C1\u8CEA\u304C\u60AA\u3044\u304B\u3001\u63A5\u7D9A\u304C\u5207\u65AD\u3055\u308C\u305F\u305F\u3081\u3001\u97F3\u58F0\u30B5\u30FC\u30D0\u30FC\u3068\u306E\u901A\u4FE1\u306B\u5931\u6557\u3057\u305F\u305F\u3081\u3067\u3059\u3002",de:"Anforderungstimeout, normalerweise aufgrund von Kommunikationsfehlern mit dem Sprachserver aufgrund von schlechter Netzwerkqualit\xE4t oder Verbindungsunterbrechung.",fr:"D\xE9lai d'attente de la requ\xEAte d\xE9pass\xE9, g\xE9n\xE9ralement en raison d'une d\xE9faillance de communication avec le serveur vocal due \xE0 une mauvaise qualit\xE9 du r\xE9seau ou \xE0 une d\xE9connexion.",id:"Waktu permintaan habis. Biasanya karena komunikasi dengan server suara gagal karena kualitas jaringan yang buruk atau koneksi yang terputus.",ru:"\u0412\u0440\u0435\u043C\u044F \u0437\u0430\u043F\u0440\u043E\u0441\u0430 \u0438\u0441\u0442\u0435\u043A\u043B\u043E. \u041E\u0431\u044B\u0447\u043D\u043E \u0438\u0437-\u0437\u0430 \u0441\u0431\u043E\u044F \u0441\u0432\u044F\u0437\u0438 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043E\u043C \u0433\u043E\u043B\u043E\u0441\u0430 \u0438\u0437-\u0437\u0430 \u043F\u043B\u043E\u0445\u043E\u0433\u043E \u043A\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u0435\u0442\u0438 \u0438\u043B\u0438 \u0440\u0430\u0437\u0440\u044B\u0432\u0430 \u0441\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u044F."},NETWORK_RESPONSE_ERROR:{zh:"\u54CD\u5E94\u9519\u8BEF\uFF0C\u4E00\u822C\u662F\u72B6\u6001\u7801\u975E\u6CD5\u3002","zh-CHT":"\u97FF\u61C9\u932F\u8AA4\uFF0C\u4E00\u822C\u662F\u72C0\u614B\u78BC\u975E\u6CD5\u3002",en:"Response error, usually due to invalid status code.",ko:"\uC751\uB2F5 \uC624\uB958\uC785\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uC0C1\uD0DC \uCF54\uB4DC\uAC00 \uC798\uBABB\uB418\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4.",ja:"\u30EC\u30B9\u30DD\u30F3\u30B9\u30A8\u30E9\u30FC\u3067\u3059\u3002\u901A\u5E38\u306F\u3001\u30B9\u30C6\u30FC\u30BF\u30B9\u30B3\u30FC\u30C9\u304C\u7121\u52B9\u3067\u3042\u308B\u305F\u3081\u3067\u3059\u3002",de:"Antwortfehler, normalerweise aufgrund eines ung\xFCltigen Statuscodes.",fr:"Erreur de r\xE9ponse, g\xE9n\xE9ralement en raison d'un code de statut invalide.",id:"Kesalahan respons. Biasanya karena kode status tidak valid.",ru:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u0442\u0432\u0435\u0442\u0430, \u043E\u0431\u044B\u0447\u043D\u043E \u0438\u0437-\u0437\u0430 \u043D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u043E\u0433\u043E \u043A\u043E\u0434\u0430 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u044F."},NETWORK_ERROR:{zh:"\u65E0\u6CD5\u5B9A\u4F4D\u7684\u7F51\u7EDC\u9519\u8BEF\u3002","zh-CHT":"\u7121\u6CD5\u5B9A\u4F4D\u7684\u7DB2\u7D61\u932F\u8AA4\u3002",en:"Unlocatable network error.",ko:"\uC704\uCE58\uD560 \uC218 \uC5C6\uB294 \uB124\uD2B8\uC6CC\uD06C \uC624\uB958\uC785\uB2C8\uB2E4.",ja:"\u7279\u5B9A\u3067\u304D\u306A\u3044\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u30A8\u30E9\u30FC\u3067\u3059\u3002",de:"Nicht lokalisierbarer Netzwerkfehler.",fr:"Erreur r\xE9seau non localisable.",id:"Kesalahan jaringan yang tidak dapat ditemukan.",ru:"\u041D\u0435\u043B\u043E\u043A\u0430\u043B\u0438\u0437\u0443\u0435\u043C\u0430\u044F \u043E\u0448\u0438\u0431\u043A\u0430 \u0441\u0435\u0442\u0438."},WS_ABORT:{zh:"\u8BF7\u6C42\u8BED\u97F3\u670D\u52A1\u5668\u8FC7\u7A0B\u4E2D WebSocket \u65AD\u5F00\u3002","zh-CHT":"\u8ACB\u6C42\u8A9E\u97F3\u670D\u52D9\u5668\u904E\u7A0B\u4E2D WebSocket \u65B7\u958B\u3002",en:"WebSocket disconnected during voice server request.",ko:"\uC74C\uC131 \uC11C\uBC84 \uC694\uCCAD \uC911 WebSocket \uC5F0\uACB0\uC774 \uB04A\uC5B4\uC84C\uC2B5\uB2C8\uB2E4.",ja:"\u97F3\u58F0\u30B5\u30FC\u30D0\u30FC\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u4E2D\u306BWebSocket\u304C\u5207\u65AD\u3055\u308C\u307E\u3057\u305F\u3002",de:"WebSocket wurde w\xE4hrend der Anfrage an den Sprachserver getrennt.",fr:"La connexion WebSocket a \xE9t\xE9 interrompue pendant la requ\xEAte au serveur vocal.",id:"Koneksi WebSocket terputus selama permintaan server suara.",ru:"\u0421\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u0435 WebSocket \u0431\u044B\u043B\u043E \u043F\u0440\u0435\u0440\u0432\u0430\u043D\u043E \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u0437\u0430\u043F\u0440\u043E\u0441\u0430 \u043A \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0433\u043E\u043B\u043E\u0441\u0430."},WS_DISCONNECT:{zh:"\u8BF7\u6C42\u8BED\u97F3\u670D\u52A1\u5668\u524D\uFF0CWebSocket \u5C31\u5DF2\u7ECF\u65AD\u5F00\u3002","zh-CHT":"\u8ACB\u6C42\u8A9E\u97F3\u670D\u52D9\u5668\u524D\uFF0CWebSocket \u5C31\u5DF2\u7D93\u65B7\u958B\u3002",en:"WebSocket was already disconnected before requesting the voice server.",ko:"\uC74C\uC131 \uC11C\uBC84\uB97C \uC694\uCCAD\uD558\uAE30 \uC804\uC5D0 WebSocket \uC5F0\uACB0\uC774 \uC774\uBBF8 \uB04A\uC5B4\uC84C\uC2B5\uB2C8\uB2E4.",ja:"\u97F3\u58F0\u30B5\u30FC\u30D0\u30FC\u3092\u30EA\u30AF\u30A8\u30B9\u30C8\u3059\u308B\u524D\u306B\u3001WebSocket\u304C\u3059\u3067\u306B\u5207\u65AD\u3055\u308C\u3066\u3044\u307E\u3057\u305F\u3002",de:"WebSocket wurde bereits vor der Anfrage an den Sprachserver getrennt.",fr:"La connexion WebSocket \xE9tait d\xE9j\xE0 interrompue avant de demander le serveur vocal.",id:"Koneksi WebSocket sudah terputus sebelum meminta server suara.",ru:"\u0421\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u0435 WebSocket \u0443\u0436\u0435 \u0431\u044B\u043B\u043E \u0440\u0430\u0437\u043E\u0440\u0432\u0430\u043D\u043E \u0434\u043E \u0437\u0430\u043F\u0440\u043E\u0441\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0433\u043E\u043B\u043E\u0441\u0430."},WS_ERR:{zh:"WebSocket \u8FDE\u63A5\u53D1\u751F\u9519\u8BEF\u3002","zh-CHT":"WebSocket \u9023\u63A5\u767C\u751F\u932F\u8AA4\u3002",en:"WebSocket connection error occurred.",ko:"WebSocket \uC5F0\uACB0 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.",ja:"WebSocket\u63A5\u7D9A\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002",de:"WebSocket-Verbindungsfehler ist aufgetreten.",fr:"Une erreur de connexion WebSocket s'est produite.",id:"Kesalahan koneksi WebSocket terjadi.",ru:"\u041F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430 \u0441\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u044F WebSocket."},ENUMERATE_DEVICES_FAILED:{zh:"\u679A\u4E3E\u672C\u5730\u8BBE\u5907\u5931\u8D25\uFF0C\u4E00\u822C\u662F\u7531\u4E8E\u6D4F\u89C8\u5668\u9650\u5236\u3002","zh-CHT":"\u679A\u8209\u672C\u5730\u8A2D\u5099\u5931\u6557\uFF0C\u4E00\u822C\u662F\u7531\u65BC\u700F\u89BD\u5668\u9650\u5236\u3002",en:"Failed to enumerate local devices, usually due to browser restrictions.",ko:"\uB85C\uCEEC \uC7A5\uCE58\uB97C \uC5F4\uAC70\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uBE0C\uB77C\uC6B0\uC800 \uC81C\uD55C\uC73C\uB85C \uC778\uD574 \uBC1C\uC0DD\uD569\uB2C8\uB2E4.",ja:"\u30ED\u30FC\u30AB\u30EB\u30C7\u30D0\u30A4\u30B9\u306E\u5217\u6319\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u901A\u5E38\u306F\u3001\u30D6\u30E9\u30A6\u30B6\u306E\u5236\u9650\u306B\u3088\u308B\u3082\u306E\u3067\u3059\u3002",de:"Auflistung lokaler Ger\xE4te fehlgeschlagen, normalerweise aufgrund von Browser-Einschr\xE4nkungen.",fr:"\xC9chec de l'\xE9num\xE9ration des p\xE9riph\xE9riques locaux, g\xE9n\xE9ralement en raison de restrictions de navigateur.",id:"Gagal menghitung perangkat lokal. Biasanya karena pembatasan browser.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0435\u0440\u0435\u0447\u0438\u0441\u043B\u0438\u0442\u044C \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u044B\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430, \u043E\u0431\u044B\u0447\u043D\u043E \u0438\u0437-\u0437\u0430 \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u0438\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430."},DEVICE_NOT_FOUND:{zh:"\u65E0\u6CD5\u627E\u5230\u6307\u5B9A\u8BBE\u5907\u3002","zh-CHT":"\u7121\u6CD5\u627E\u5230\u6307\u5B9A\u8A2D\u5099\u3002",en:"Specified device not found.",ko:"\uC9C0\uC815\uB41C \uC7A5\uCE58\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",ja:"\u6307\u5B9A\u3055\u308C\u305F\u30C7\u30D0\u30A4\u30B9\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002",de:"Das angegebene Ger\xE4t wurde nicht gefunden.",fr:"Le p\xE9riph\xE9rique sp\xE9cifi\xE9 n'a pas \xE9t\xE9 trouv\xE9.",id:"Perangkat yang ditentukan tidak ditemukan.",ru:"\u0423\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E."},TRACK_IS_DISABLED:{zh:"\u8F68\u9053\u88AB\u7981\u7528\uFF0C\u901A\u5E38\u56E0\u4E3A\u8F68\u9053\u8BBE\u7F6E\u4E86 Track.setEnabled(false)\u3002","zh-CHT":"\u8ECC\u9053\u88AB\u7981\u7528\uFF0C\u901A\u5E38\u662F\u56E0\u70BA\u8ECC\u9053\u8A2D\u5B9A\u4E86 Track.setEnabled(false)\u3002",en:"Track is disabled, usually because Track.setEnabled(false) was set.",ko:"\uD2B8\uB799\uC774 \uBE44\uD65C\uC131\uD654\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uC77C\uBC18\uC801\uC73C\uB85C \uD2B8\uB799\uC5D0 Track.setEnabled(false)\uAC00 \uC124\uC815\uB418\uC5C8\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4.",ja:"\u30C8\u30E9\u30C3\u30AF\u304C\u7121\u52B9\u306B\u306A\u3063\u3066\u3044\u307E\u3059\u3002\u901A\u5E38\u306F\u3001\u30C8\u30E9\u30C3\u30AF\u306BTrack.setEnabled(false)\u304C\u8A2D\u5B9A\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3067\u3059\u3002",de:"Die Spur ist deaktiviert, normalerweise weil Track.setEnabled(false) gesetzt wurde.",fr:"La piste est d\xE9sactiv\xE9e, g\xE9n\xE9ralement parce que Track.setEnabled(false) a \xE9t\xE9 d\xE9fini.",id:"Trek dinonaktifkan. Biasanya karena trek memiliki Track.setEnabled(false).",ru:"\u0422\u0440\u0435\u043A \u043E\u0442\u043A\u043B\u044E\u0447\u0435\u043D, \u043E\u0431\u044B\u0447\u043D\u043E \u043F\u043E\u0442\u043E\u043C\u0443, \u0447\u0442\u043E Track.setEnabled(false) \u0431\u044B\u043B \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D."},SHARE_AUDIO_NOT_ALLOWED:{zh:"\u5C4F\u5E55\u5171\u4EAB\u97F3\u9891\u65F6\u7EC8\u7AEF\u7528\u6237\u6CA1\u6709\u70B9\u51FB\u5206\u4EAB\u97F3\u9891\u3002","zh-CHT":"\u87A2\u5E55\u5171\u4EAB\u97F3\u983B\u6642\u7D42\u7AEF\u7528\u6236\u6C92\u6709\u9EDE\u64CA\u5206\u4EAB\u97F3\u983B\u3002",en:"End user did not click to share audio during screen sharing.",ko:"\uD654\uBA74 \uACF5\uC720 \uC911\uC5D0 \uC0AC\uC6A9\uC790\uAC00 \uC624\uB514\uC624 \uACF5\uC720\uB97C \uD074\uB9AD\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.",ja:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30A7\u30A2\u30EA\u30F3\u30B0\u4E2D\u306B\u3001\u30A8\u30F3\u30C9\u30E6\u30FC\u30B6\u30FC\u304C\u30AA\u30FC\u30C7\u30A3\u30AA\u3092\u5171\u6709\u3059\u308B\u3053\u3068\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u306A\u304B\u3063\u305F\u305F\u3081\u3067\u3059\u3002",de:"Der Endbenutzer hat w\xE4hrend der Bildschirmfreigabe nicht auf Audio-Freigabe geklickt.",fr:"L'utilisateur final n'a pas cliqu\xE9 sur le partage audio pendant le partage d'\xE9cran.",id:"Pengguna akhir tidak mengklik bagikan audio selama berbagi layar.",ru:"\u041A\u043E\u043D\u0435\u0447\u043D\u044B\u0439 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u043D\u0435 \u043D\u0430\u0436\u0430\u043B \u043D\u0430 \u043A\u043D\u043E\u043F\u043A\u0443 \xAB\u041F\u043E\u0434\u0435\u043B\u0438\u0442\u044C\u0441\u044F \u0430\u0443\u0434\u0438\u043E\xBB \u0432\u043E \u0432\u0440\u0435\u043C\u044F \u043E\u0431\u043C\u0435\u043D\u0430 \u044D\u043A\u0440\u0430\u043D\u043E\u043C."},CHROME_PLUGIN_NO_RESPONSE:{zh:"Chrome \u5C4F\u5E55\u5171\u4EAB\u63D2\u4EF6\u65E0\u54CD\u5E94\u3002","zh-CHT":"Chrome \u87A2\u5E55\u5171\u4EAB\u63D2\u4EF6\u7121\u97FF\u61C9\u3002",en:"Chrome screen sharing plugin not responding.",ko:"\uD06C\uB86C \uD654\uBA74 \uACF5\uC720 \uD50C\uB7EC\uADF8\uC778\uC774 \uC751\uB2F5\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",ja:"Chrome\u306E\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30A7\u30A2\u30EA\u30F3\u30B0\u30D7\u30E9\u30B0\u30A4\u30F3\u304C\u5FDC\u7B54\u3057\u3066\u3044\u307E\u305B\u3093\u3002",de:"Chrome-Bildschirmfreigabe-Plug-in reagiert nicht.",fr:"Le plug-in de partage d'\xE9cran Chrome ne r\xE9pond pas.",id:"Plugin berbagi layar Chrome tidak merespons.",ru:"\u041F\u043B\u0430\u0433\u0438\u043D \u0434\u043B\u044F \u043E\u0431\u043C\u0435\u043D\u0430 \u044D\u043A\u0440\u0430\u043D\u043E\u043C Chrome \u043D\u0435 \u043E\u0442\u0432\u0435\u0447\u0430\u0435\u0442."},CHROME_PLUGIN_NOT_INSTALL:{zh:"Chrome \u5C4F\u5E55\u5171\u4EAB\u63D2\u4EF6\u6CA1\u6709\u5B89\u88C5\u3002","zh-CHT":"Chrome \u87A2\u5E55\u5171\u4EAB\u63D2\u4EF6\u6C92\u6709\u5B89\u88DD\u3002",en:"Chrome screen sharing plugin not installed.",ko:"\uD06C\uB86C \uD654\uBA74 \uACF5\uC720 \uD50C\uB7EC\uADF8\uC778\uC774 \uC124\uCE58\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.",ja:"Chrome\u306E\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30A7\u30A2\u30EA\u30F3\u30B0\u30D7\u30E9\u30B0\u30A4\u30F3\u304C\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",de:"Chrome-Bildschirmfreigabe-Plug-in nicht installiert.",fr:"Le plug-in de partage d'\xE9cran Chrome n'est pas install\xE9.",id:"Plugin berbagi layar Chrome tidak terinstal.",ru:"\u041F\u043B\u0430\u0433\u0438\u043D \u0434\u043B\u044F \u043E\u0431\u043C\u0435\u043D\u0430 \u044D\u043A\u0440\u0430\u043D\u043E\u043C Chrome \u043D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D."},MEDIA_OPTION_INVALID:{zh:"\u4E0D\u652F\u6301\u7684\u5A92\u4F53\u91C7\u96C6\u7684\u53C2\u6570\u3002","zh-CHT":"\u4E0D\u652F\u6301\u7684\u5A92\u9AD4\u63A1\u96C6\u7684\u53C3\u6578\u3002",en:"Unsupported media capture parameters.",ko:"\uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uBBF8\uB514\uC5B4 \uCEA1\uCC98 \uB9E4\uAC1C\uBCC0\uC218\uC785\uB2C8\uB2E4.",ja:"\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u306A\u3044\u30E1\u30C7\u30A3\u30A2\u30AD\u30E3\u30D7\u30C1\u30E3\u30D1\u30E9\u30E1\u30FC\u30BF\u3067\u3059\u3002",de:"Nicht unterst\xFCtzte Medienaufnahmeparameter.",fr:"Param\xE8tres de capture de m\xE9dias non pris en charge.",id:"Parameter pengambilan media tidak didukung.",ru:"\u041D\u0435\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u0437\u0430\u0445\u0432\u0430\u0442\u0430 \u043C\u0435\u0434\u0438\u0430."},CONSTRAINT_NOT_SATISFIED:{zh:"\u4E0D\u652F\u6301\u7684\u5A92\u4F53\u91C7\u96C6\u7684\u53C2\u6570\u3002","zh-CHT":"\u4E0D\u652F\u6301\u7684\u5A92\u9AD4\u63A1\u96C6\u7684\u53C3\u6578\u3002",en:"Unsupported media capture parameters.",ko:"\uC9C0\uC6D0\uB418\uC9C0 \uC54A\uB294 \uBBF8\uB514\uC5B4 \uCEA1\uCC98 \uB9E4\uAC1C\uBCC0\uC218\uC785\uB2C8\uB2E4.",ja:"\u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u306A\u3044\u30E1\u30C7\u30A3\u30A2\u30AD\u30E3\u30D7\u30C1\u30E3\u30D1\u30E9\u30E1\u30FC\u30BF\u3067\u3059\u3002",de:"Nicht unterst\xFCtzte Medienaufnahmeparameter.",fr:"Param\xE8tres de capture de m\xE9dias non pris en charge.",id:"Parameter pengambilan media tidak didukung.",ru:"\u041D\u0435\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u0437\u0430\u0445\u0432\u0430\u0442\u0430 \u043C\u0435\u0434\u0438\u0430."},PERMISSION_DENIED:{zh:"\u83B7\u53D6\u5A92\u4F53\u8BBE\u5907\u6743\u9650\u88AB\u62D2\u7EDD\u3002","zh-CHT":"\u83B7\u53D6\u5A92\u9AD4\u8A2D\u5099\u6B0A\u9650\u88AB\u62D2\u7D55\u3002",en:"Permission to access media devices was denied.",ko:"\uBBF8\uB514\uC5B4 \uC7A5\uCE58\uC5D0 \uB300\uD55C \uAD8C\uD55C\uC774 \uAC70\uBD80\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",ja:"\u30E1\u30C7\u30A3\u30A2\u30C7\u30D0\u30A4\u30B9\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u6A29\u9650\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002",de:"Die Erlaubnis zum Zugriff auf Medien-Ger\xE4te wurde verweigert.",fr:"L'autorisation d'acc\xE9der aux p\xE9riph\xE9riques multim\xE9dias a \xE9t\xE9 refus\xE9e.",id:"Izin mengakses perangkat media ditolak.",ru:"\u0414\u043E\u0441\u0442\u0443\u043F \u043A \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0430\u043C \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430 \u0431\u044B\u043B \u0437\u0430\u043F\u0440\u0435\u0449\u0435\u043D."},NOT_READABLE:{zh:"\u7528\u6237\u5DF2\u7ECF\u6388\u6743\uFF0C\u4F46\u5A92\u4F53\u8BBE\u5907\u65E0\u6CD5\u8BBF\u95EE\u3002","zh-CHT":"\u7528\u6236\u5DF2\u7D93\u6388\u6B0A\uFF0C\u4F46\u5A92\u9AD4\u8A2D\u5099\u7121\u6CD5\u5B58\u53D6\u3002",en:"User has authorized, but media device cannot be accessed.",ko:"\uC0AC\uC6A9\uC790\uAC00 \uC774\uBBF8 \uAD8C\uD55C\uC744 \uBD80\uC5EC\uD588\uC9C0\uB9CC \uBBF8\uB514\uC5B4 \uC7A5\uCE58\uC5D0 \uC561\uC138\uC2A4\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",ja:"\u30E6\u30FC\u30B6\u30FC\u306F\u3059\u3067\u306B\u6A29\u9650\u3092\u4ED8\u4E0E\u3057\u3066\u3044\u307E\u3059\u304C\u3001\u30E1\u30C7\u30A3\u30A2\u30C7\u30D0\u30A4\u30B9\u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u305B\u3093\u3002",de:"Der Benutzer hat bereits die Erlaubnis erteilt, aber das Medien-Ger\xE4t kann nicht zug\xE4nglich gemacht werden.",fr:"L'utilisateur a d\xE9j\xE0 autoris\xE9 l'acc\xE8s, mais le p\xE9riph\xE9rique multim\xE9dia ne peut pas \xEAtre acc\xE9d\xE9.",id:"Pengguna telah memberikan izin, tetapi perangkat media tidak dapat diakses.",ru:"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u0443\u0436\u0435 \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u0438\u043B \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u0435, \u043D\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E."},FETCH_AUDIO_FILE_FAILED:{zh:"\u4E0B\u8F7D\u5728\u7EBF\u97F3\u9891\u6587\u4EF6\u5931\u8D25\u3002","zh-CHT":"\u4E0B\u8F09\u5728\u7DDA\u97F3\u983B\u6587\u4EF6\u5931\u6557\u3002",en:"Failed to download online audio file.",ko:"\uC628\uB77C\uC778 \uC624\uB514\uC624 \uD30C\uC77C \uB2E4\uC6B4\uB85C\uB4DC\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30AA\u30F3\u30E9\u30A4\u30F3\u30AA\u30FC\u30C7\u30A3\u30AA\u30D5\u30A1\u30A4\u30EB\u306E\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Herunterladen der Online-Audio-Datei fehlgeschlagen.",fr:"\xC9chec du t\xE9l\xE9chargement du fichier audio en ligne.",id:"Gagal mengunduh file audio online.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043A\u0430\u0447\u0430\u0442\u044C \u0444\u0430\u0439\u043B \u0430\u0443\u0434\u0438\u043E \u043E\u043D\u043B\u0430\u0439\u043D."},READ_LOCAL_AUDIO_FILE_ERROR:{zh:"\u8BFB\u53D6\u672C\u5730\u97F3\u9891\u6587\u4EF6\u5931\u8D25\u3002","zh-CHT":"\u8B80\u53D6\u672C\u5730\u97F3\u983B\u6587\u4EF6\u5931\u6557\u3002",en:"Failed to read local audio file.",ko:"\uB85C\uCEEC \uC624\uB514\uC624 \uD30C\uC77C \uC77D\uAE30\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30ED\u30FC\u30AB\u30EB\u30AA\u30FC\u30C7\u30A3\u30AA\u30D5\u30A1\u30A4\u30EB\u306E\u8AAD\u307F\u53D6\u308A\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Lokale Audio-Datei konnte nicht gelesen werden.",fr:"\xC9chec de la lecture du fichier audio local.",id:"Gagal membaca file audio lokal.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C \u043B\u043E\u043A\u0430\u043B\u044C\u043D\u044B\u0439 \u0444\u0430\u0439\u043B \u0430\u0443\u0434\u0438\u043E."},DECODE_AUDIO_FILE_FAILED:{zh:"\u97F3\u9891\u6587\u4EF6\u89E3\u7801\u5931\u8D25\uFF0C\u53EF\u80FD\u662F\u56E0\u4E3A\u97F3\u9891\u6587\u4EF6\u7684\u7F16\u7801\u683C\u5F0F\u662F\u6D4F\u89C8\u5668 WebAudio \u4E0D\u652F\u6301\u7684\u7F16\u7801\u683C\u5F0F\u3002","zh-CHT":"\u97F3\u983B\u6587\u4EF6\u89E3\u78BC\u5931\u6557\uFF0C\u53EF\u80FD\u662F\u56E0\u70BA\u97F3\u983B\u6587\u4EF6\u7684\u7DE8\u78BC\u683C\u5F0F\u662F\u700F\u89BD\u5668 WebAudio \u4E0D\u652F\u6301\u7684\u7DE8\u78BC\u683C\u5F0F\u3002",en:"Failed to decode audio file, possibly because the audio file encoding format is not supported by browser WebAudio.",ko:"\uC624\uB514\uC624 \uD30C\uC77C \uB514\uCF54\uB529\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 WebAudio\uC5D0\uC11C \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 \uC624\uB514\uC624 \uD30C\uC77C \uC778\uCF54\uB529 \uD615\uC2DD \uB54C\uBB38\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4.",ja:"\u30AA\u30FC\u30C7\u30A3\u30AA\u30D5\u30A1\u30A4\u30EB\u306E\u30C7\u30B3\u30FC\u30C9\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u30D6\u30E9\u30A6\u30B6\u306EWebAudio\u304C\u30B5\u30DD\u30FC\u30C8\u3057\u3066\u3044\u306A\u3044\u30AA\u30FC\u30C7\u30A3\u30AA\u30D5\u30A1\u30A4\u30EB\u306E\u30A8\u30F3\u30B3\u30FC\u30C9\u5F62\u5F0F\u3067\u3042\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002",de:"Audio-Datei konnte nicht decodiert werden, m\xF6glicherweise weil das Audio-Datei-Codec-Format vom Browser-WebAudio nicht unterst\xFCtzt wird.",fr:"\xC9chec de la d\xE9codage du fichier audio, probablement parce que le format de codage du fichier audio n'est pas pris en charge par le navigateur WebAudio.",id:"Gagal mendekode file audio. Mungkin karena format enkode file audio tidak didukung oleh WebAudio browser.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0434\u0435\u043A\u043E\u0434\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0444\u0430\u0439\u043B \u0430\u0443\u0434\u0438\u043E, \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u0444\u043E\u0440\u043C\u0430\u0442 \u043A\u043E\u0434\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F \u0444\u0430\u0439\u043B\u0430 \u0430\u0443\u0434\u0438\u043E \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043E\u043C WebAudio."},UID_CONFLICT:{zh:"\u540C\u4E00\u4E2A\u9891\u9053\u5185 UID \u91CD\u590D\u3002","zh-CHT":"\u540C\u4E00\u500B\u983B\u9053\u5167 UID \u91CD\u8907\u3002",en:"Duplicate UID within the same channel.",ko:"\uAC19\uC740 \uCC44\uB110 \uB0B4\uC5D0\uC11C UID\uAC00 \uC911\uBCF5\uB429\uB2C8\uB2E4.",ja:"\u540C\u3058\u30C1\u30E3\u30F3\u30CD\u30EB\u5185\u3067UID\u304C\u91CD\u8907\u3057\u3066\u3044\u307E\u3059\u3002",de:"Doppelte UID innerhalb des gleichen Kanals.",fr:"UID en double dans le m\xEAme canal.",id:"UID ganda dalam saluran yang sama.",ru:"\u0414\u0443\u0431\u043B\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435 UID \u0432 \u043E\u0434\u043D\u043E\u043C \u0438 \u0442\u043E\u043C \u0436\u0435 \u043A\u0430\u043D\u0430\u043B\u0435."},INVALID_UINT_UID_FROM_STRING_UID:{zh:"String UID \u5206\u914D\u670D\u52A1\u8FD4\u56DE\u4E86\u975E\u6CD5\u7684 int UID\u3002","zh-CHT":"String UID \u5206\u914D\u670D\u52D9\u8FD4\u56DE\u4E86\u975E\u6CD5\u7684 int UID\u3002",en:"String UID allocation service returned an invalid int UID.",ko:"\uBB38\uC790\uC5F4 UID \uD560\uB2F9 \uC11C\uBE44\uC2A4\uAC00 \uC798\uBABB\uB41C \uC815\uC218 UID\uB97C \uBC18\uD658\uD588\uC2B5\uB2C8\uB2E4.",ja:"String UID\u5272\u308A\u5F53\u3066\u30B5\u30FC\u30D3\u30B9\u304C\u7121\u52B9\u306Aint UID\u3092\u8FD4\u3057\u307E\u3057\u305F\u3002",de:"String-UID-Zuweisungsdienst hat eine ung\xFCltige int-UID zur\xFCckgegeben.",fr:"Le service d'allocation d'UID de cha\xEEne a retourn\xE9 un UID entier non valide.",id:"Layanan alokasi UID string mengembalikan UID int yang tidak valid.",ru:"\u0421\u043B\u0443\u0436\u0431\u0430 \u0440\u0430\u0441\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0438\u044F UID \u0441\u0442\u0440\u043E\u043A\u0438 \u0432\u0435\u0440\u043D\u0443\u043B\u0430 \u043D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u0446\u0435\u043B\u043E\u0447\u0438\u0441\u043B\u0435\u043D\u043D\u044B\u0439 UID."},CAN_NOT_GET_PROXY_SERVER:{zh:"\u65E0\u6CD5\u83B7\u53D6\u4E91\u4EE3\u7406\u670D\u52A1\u5730\u5740\u3002","zh-CHT":"\u7121\u6CD5\u83B7\u53D6\u96F2\u4EE3\u7406\u670D\u52D9\u5730\u5740\u3002",en:"Unable to get cloud proxy server address.",ko:"\uD074\uB77C\uC6B0\uB4DC \uD504\uB85D\uC2DC \uC11C\uBC84 \uC8FC\uC18C\uB97C \uAC00\uC838\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",ja:"\u30AF\u30E9\u30A6\u30C9\u30D7\u30ED\u30AD\u30B7\u30B5\u30FC\u30D0\u30FC\u306E\u30A2\u30C9\u30EC\u30B9\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002",de:"Cloud-Proxy-Server-Adresse kann nicht abgerufen werden.",fr:"Impossible d'obtenir l'adresse du serveur proxy cloud.",id:"Tidak dapat mendapatkan alamat server proxy cloud.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043F\u0440\u043E\u043A\u0441\u0438 \u043E\u0431\u043B\u0430\u0447\u043D\u044B\u0445 \u0443\u0441\u043B\u0443\u0433."},CAN_NOT_GET_GATEWAY_SERVER:{zh:"\u65E0\u6CD5\u83B7\u53D6\u8BED\u97F3\u670D\u52A1\u5668\u5730\u5740\u3002","zh-CHT":"\u7121\u6CD5\u83B7\u53D6\u8A9E\u97F3\u670D\u52D9\u5668\u5730\u5740\u3002",en:"Unable to get voice server address.",ko:"\uC74C\uC131 \uC11C\uBC84 \uC8FC\uC18C\uB97C \uAC00\uC838\uC62C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",ja:"\u97F3\u58F0\u30B5\u30FC\u30D0\u30FC\u306E\u30A2\u30C9\u30EC\u30B9\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002",de:"Sprachserver-Adresse kann nicht abgerufen werden.",fr:"Impossible d'obtenir l'adresse du serveur vocal.",id:"Tidak dapat mendapatkan alamat server suara.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0433\u043E\u043B\u043E\u0441\u0430."},INVALID_LOCAL_TRACK:{zh:"\u4F20\u5165\u4E86\u975E\u6CD5\u7684 LocalTrack\u3002","zh-CHT":"\u50B3\u5165\u4E86\u975E\u6CD5\u7684 LocalTrack\u3002",en:"Invalid LocalTrack passed.",ko:"\uC798\uBABB\uB41C \uB85C\uCEEC \uD2B8\uB799\uC774 \uC804\uB2EC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",ja:"\u7121\u52B9\u306ALocalTrack\u304C\u6E21\u3055\u308C\u307E\u3057\u305F\u3002",de:"Ung\xFCltiger LocalTrack \xFCbergeben.",fr:"Piste locale invalide transmise.",id:"Trek lokal tidak valid dilewatkan.",ru:"\u041F\u0435\u0440\u0435\u0434\u0430\u043D \u043D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 LocalTrack."},CAN_NOT_PUBLISH_MULTIPLE_VIDEO_TRACKS:{zh:"\u4E00\u4E2A Client \u53D1\u5E03\u591A\u4E2A\u89C6\u9891\u8F68\u9053\u3002","zh-CHT":"\u4E00\u500B Client \u767C\u5E03\u591A\u500B\u8996\u983B\u8ECC\u9053\u3002",en:"A Client publishing multiple video tracks.",ko:"\uD074\uB77C\uC774\uC5B8\uD2B8\uAC00 \uC5EC\uB7EC \uBE44\uB514\uC624 \uD2B8\uB799\uC744 \uBC1C\uD589\uD569\uB2C8\uB2E4.",ja:"\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u304C\u8907\u6570\u306E\u30D3\u30C7\u30AA\u30C8\u30E9\u30C3\u30AF\u3092\u516C\u958B\u3057\u3066\u3044\u307E\u3059\u3002",de:"Ein Client ver\xF6ffentlicht mehrere Videospuren.",fr:"Un client publie plusieurs pistes vid\xE9o.",id:"Klien menerbitkan beberapa trek video.",ru:"\u041A\u043B\u0438\u0435\u043D\u0442 \u043F\u0443\u0431\u043B\u0438\u043A\u0443\u0435\u0442 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0432\u0438\u0434\u0435\u043E\u0434\u043E\u0440\u043E\u0436\u0435\u043A."},INVALID_REMOTE_USER:{zh:"\u975E\u6CD5\u7684\u8FDC\u7AEF\u7528\u6237\uFF0C\u53EF\u80FD\u662F\u8FDC\u7AEF\u7528\u6237\u4E0D\u5728\u9891\u9053\u5185\u6216\u8FD8\u672A\u53D1\u5E03\u4EFB\u4F55\u5A92\u4F53\u8F68\u9053\u3002","zh-CHT":"\u975E\u6CD5\u7684\u9060\u7AEF\u7528\u6236\uFF0C\u53EF\u80FD\u662F\u9060\u7AEF\u7528\u6236\u4E0D\u5728\u983B\u9053\u5167\u6216\u9084\u672A\u767C\u5E03\u4EFB\u4F55\u5A92\u9AD4\u8ECC\u9053\u3002",en:"Invalid remote user, possibly because the remote user is not in the channel or has not published any media tracks.",ko:"\uC798\uBABB\uB41C \uC6D0\uACA9 \uC0AC\uC6A9\uC790\uC785\uB2C8\uB2E4. \uC6D0\uACA9 \uC0AC\uC6A9\uC790\uAC00 \uCC44\uB110\uC5D0 \uC788\uC9C0 \uC54A\uAC70\uB098 \uBBF8\uB514\uC5B4 \uD2B8\uB799\uC744 \uBC1C\uD589\uD558\uC9C0 \uC54A\uC558\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",ja:"\u7121\u52B9\u306A\u30EA\u30E2\u30FC\u30C8\u30E6\u30FC\u30B6\u30FC\u3067\u3059\u3002\u30EA\u30E2\u30FC\u30C8\u30E6\u30FC\u30B6\u30FC\u304C\u30C1\u30E3\u30F3\u30CD\u30EB\u306B\u3044\u306A\u3044\u304B\u3001\u30E1\u30C7\u30A3\u30A2\u30C8\u30E9\u30C3\u30AF\u3092\u516C\u958B\u3057\u3066\u3044\u306A\u3044\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002",de:"Ung\xFCltiger Remote-Benutzer, m\xF6glicherweise weil der Remote-Benutzer sich nicht im Kanal befindet oder noch keine Medien-Spuren ver\xF6ffentlicht hat.",fr:"Utilisateur distant invalide, probablement parce que l'utilisateur distant n'est pas dans le canal ou n'a pas publi\xE9 de pistes multim\xE9dias.",id:"Pengguna jarak jauh tidak valid. Mungkin karena pengguna jarak jauh tidak berada di saluran atau belum menerbitkan trek media apa pun.",ru:"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u0443\u0434\u0430\u043B\u0435\u043D\u043D\u044B\u0439 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C, \u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043F\u043E\u0442\u043E\u043C\u0443 \u0447\u0442\u043E \u0443\u0434\u0430\u043B\u0435\u043D\u043D\u044B\u0439 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u043D\u0435 \u043D\u0430\u0445\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u043A\u0430\u043D\u0430\u043B\u0435 \u0438\u043B\u0438 \u0435\u0449\u0435 \u043D\u0435 \u043E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u043B \u043D\u0438 \u043E\u0434\u043D\u043E\u0439 \u0434\u043E\u0440\u043E\u0436\u043A\u0438 \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430."},REMOTE_USER_IS_NOT_PUBLISHED:{zh:"\u8FDC\u7AEF\u7528\u6237\u5DF2\u53D1\u5E03\u4E86\u97F3\u9891\u6216\u89C6\u9891\u8F68\u9053\uFF0C\u4F46\u4E0D\u662F\u4E0E\u4F60\u7684\u8BA2\u9605\u64CD\u4F5C\u6240\u6307\u5B9A\u7684\u7C7B\u578B\u4E0D\u7B26\u3002","zh-CHT":"\u9060\u7AEF\u7528\u6236\u5DF2\u767C\u5E03\u4E86\u97F3\u983B\u6216\u8996\u983B\u8ECC\u9053\uFF0C\u4F46\u4E0D\u662F\u8207\u4F60\u7684\u8A02\u95B1\u64CD\u4F5C\u6240\u6307\u5B9A\u7684\u985E\u578B\u4E0D\u7B26\u3002",en:"Remote user has published audio or video tracks, but not of the type specified by your subscription operation.",ko:"\uC6D0\uACA9 \uC0AC\uC6A9\uC790\uAC00 \uC624\uB514\uC624 \uB610\uB294 \uBE44\uB514\uC624 \uD2B8\uB799\uC744 \uBC1C\uD589\uD588\uC9C0\uB9CC \uAD6C\uB3C5 \uC791\uC5C5\uC5D0\uC11C \uC9C0\uC815\uD55C \uC720\uD615\uACFC \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",ja:"\u30EA\u30E2\u30FC\u30C8\u30E6\u30FC\u30B6\u30FC\u306F\u30AA\u30FC\u30C7\u30A3\u30AA\u307E\u305F\u306F\u30D3\u30C7\u30AA\u30C8\u30E9\u30C3\u30AF\u3092\u516C\u958B\u3057\u3066\u3044\u307E\u3059\u304C\u3001\u30B5\u30D6\u30B9\u30AF\u30EA\u30D7\u30B7\u30E7\u30F3\u64CD\u4F5C\u3067\u6307\u5B9A\u3055\u308C\u305F\u30BF\u30A4\u30D7\u3068\u4E00\u81F4\u3057\u307E\u305B\u3093\u3002",de:"Der Remote-Benutzer hat Audio- oder Videospuren ver\xF6ffentlicht, aber nicht vom Typ, der durch Ihren Abonnementvorgang angegeben wurde.",fr:"L'utilisateur distant a publi\xE9 des pistes audio ou vid\xE9o, mais pas du type sp\xE9cifi\xE9 par votre op\xE9ration d'abonnement.",id:"Pengguna jarak jauh telah menerbitkan trek audio atau video, tetapi tidak sesuai dengan jenis yang ditentukan oleh operasi berlangganan Anda.",ru:"\u0423\u0434\u0430\u043B\u0435\u043D\u043D\u044B\u0439 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u043E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u043B \u0430\u0443\u0434\u0438\u043E- \u0438\u043B\u0438 \u0432\u0438\u0434\u0435\u043E\u0434\u043E\u0440\u043E\u0436\u043A\u0438, \u043D\u043E \u043D\u0435 \u0442\u043E\u0433\u043E \u0442\u0438\u043F\u0430, \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0443\u043A\u0430\u0437\u0430\u043D \u0432 \u0432\u0430\u0448\u0435\u0439 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438."},ERR_TOO_MANY_BROADCASTERS:{zh:"\u9891\u9053\u5185\u4E3B\u64AD\u4EBA\u6570\u8D85\u8FC7\u4E0A\u9650\u3002","zh-CHT":"\u983B\u9053\u5167\u4E3B\u64AD\u4EBA\u6578\u8D85\u904E\u4E0A\u9650\u3002",en:"Number of broadcasters in the channel exceeds the limit.",ko:"\uCC44\uB110 \uB0B4 \uBC29\uC1A1\uC790 \uC218\uB294 \uC81C\uD55C\uC744 \uCD08\uACFC\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30C1\u30E3\u30F3\u30CD\u30EB\u5185\u306E\u30D6\u30ED\u30FC\u30C9\u30AD\u30E3\u30B9\u30BF\u30FC\u306E\u6570\u304C\u4E0A\u9650\u3092\u8D85\u3048\u3066\u3044\u307E\u3059\u3002",de:"Die Anzahl der Broadcaster im Kanal \xFCberschreitet das Limit.",fr:"Le nombre de diffuseurs dans le canal d\xE9passe la limite.",id:"Jumlah penyiar di saluran melebihi batas.",ru:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0432\u0435\u0449\u0430\u0442\u0435\u043B\u0435\u0439 \u0432 \u043A\u0430\u043D\u0430\u043B\u0435 \u043F\u0440\u0435\u0432\u044B\u0448\u0430\u0435\u0442 \u043F\u0440\u0435\u0434\u0435\u043B."},ERR_TOO_MANY_SUBSCRIBERS:{zh:"\u5F53\u524D\u7528\u6237\u8BA2\u9605\u7684\u4E3B\u64AD\u4EBA\u6570\u8D85\u8FC7\u4E0A\u9650\u3002","zh-CHT":"\u7576\u524D\u7528\u6236\u8A02\u95B1\u7684\u4E3B\u64AD\u4EBA\u6578\u8D85\u904E\u4E0A\u9650\u3002",en:"Number of subscribers to the current user's channel exceeds the limit.",ko:"\uD604\uC7AC \uC0AC\uC6A9\uC790\uC758 \uCC44\uB110 \uAD6C\uB3C5\uC790 \uC218\uB294 \uC81C\uD55C\uC744 \uCD08\uACFC\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u73FE\u5728\u306E\u30E6\u30FC\u30B6\u30FC\u306E\u30C1\u30E3\u30F3\u30CD\u30EB\u306E\u30B5\u30D6\u30B9\u30AF\u30E9\u30A4\u30D0\u30FC\u6570\u304C\u4E0A\u9650\u3092\u8D85\u3048\u3066\u3044\u307E\u3059\u3002",de:"Die Anzahl der Abonnenten des aktuellen Benutzers \xFCberschreitet das Limit.",fr:"Le nombre d'abonn\xE9s du canal de l'utilisateur actuel d\xE9passe la limite.",id:"Jumlah pelanggan saluran pengguna saat ini melebihi batas.",ru:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043F\u043E\u0434\u043F\u0438\u0441\u0447\u0438\u043A\u043E\u0432 \u043A\u0430\u043D\u0430\u043B\u0430 \u0442\u0435\u043A\u0443\u0449\u0435\u0433\u043E \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u043F\u0440\u0435\u0432\u044B\u0448\u0430\u0435\u0442 \u043F\u0440\u0435\u0434\u0435\u043B."},LIVE_STREAMING_TASK_CONFLICT:{zh:"\u63A8\u6D41\u4EFB\u52A1\u5DF2\u7ECF\u5B58\u5728\u3002","zh-CHT":"\u63A8\u6D41\u4EFB\u52D9\u5DF2\u7D93\u5B58\u5728\u3002",en:"Live streaming task already exists.",ko:"\uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D \uC791\uC5C5\uC774 \uC774\uBBF8 \uC874\uC7AC\uD569\uB2C8\uB2E4.",ja:"\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u30BF\u30B9\u30AF\u304C\u3059\u3067\u306B\u5B58\u5728\u3057\u307E\u3059\u3002",de:"Live-Streaming-Aufgabe existiert bereits.",fr:"La t\xE2che de diffusion en direct existe d\xE9j\xE0.",id:"Tugas streaming langsung sudah ada.",ru:"\u0417\u0430\u0434\u0430\u0447\u0430 \u043F\u0440\u044F\u043C\u043E\u0439 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442."},LIVE_STREAMING_INVALID_ARGUMENT:{zh:"\u63A8\u6D41\u53C2\u6570\u9519\u8BEF\u3002","zh-CHT":"\u63A8\u6D41\u53C3\u6578\u932F\u8AA4\u3002",en:"Invalid live streaming argument.",ko:"\uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D \uC778\uC218\uAC00 \uC798\uBABB\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",ja:"\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u5F15\u6570\u304C\u7121\u52B9\u3067\u3059\u3002",de:"Ung\xFCltiger Live-Streaming-Parameter.",fr:"Argument de diffusion en direct invalide.",id:"Argumen streaming langsung tidak valid.",ru:"\u041D\u0435\u0434\u043E\u043F\u0443\u0441\u0442\u0438\u043C\u044B\u0439 \u0430\u0440\u0433\u0443\u043C\u0435\u043D\u0442 \u043F\u0440\u044F\u043C\u043E\u0439 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438."},LIVE_STREAMING_INTERNAL_SERVER_ERROR:{zh:"\u63A8\u6D41\u670D\u52A1\u5668\u5185\u90E8\u9519\u8BEF\u3002","zh-CHT":"\u63A8\u6D41\u670D\u52D9\u5668\u5185\u90E8\u932F\u8AA4\u3002",en:"Live streaming server internal error.",ko:"\uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D \uC11C\uBC84 \uB0B4\uBD80 \uC624\uB958\uC785\uB2C8\uB2E4.",ja:"\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u30B5\u30FC\u30D0\u30FC\u306E\u5185\u90E8\u30A8\u30E9\u30FC\u3067\u3059\u3002",de:"Interner Fehler des Live-Streaming-Servers.",fr:"Erreur interne du serveur de diffusion en direct.",id:"Kesalahan internal server streaming langsung.",ru:"\u0412\u043D\u0443\u0442\u0440\u0435\u043D\u043D\u044F\u044F \u043E\u0448\u0438\u0431\u043A\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043F\u0440\u044F\u043C\u043E\u0439 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438."},LIVE_STREAMING_PUBLISH_STREAM_NOT_AUTHORIZED:{zh:"\u63A8\u6D41 URL \u88AB\u5360\u7528\u3002","zh-CHT":"\u63A8\u6D41 URL \u88AB\u4F54\u7528\u3002",en:"Live streaming URL is occupied.",ko:"\uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D URL\uC774 \uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC785\uB2C8\uB2E4.",ja:"\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0URL\u306F\u3059\u3067\u306B\u5360\u6709\u3055\u308C\u3066\u3044\u307E\u3059\u3002",de:"Live-Streaming-URL ist besetzt.",fr:"L'URL de diffusion en direct est occup\xE9e.",id:"URL streaming langsung sudah digunakan.",ru:"URL \u043F\u0440\u044F\u043C\u043E\u0439 \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u0438 \u0443\u0436\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F."},LIVE_STREAMING_CDN_ERROR:{zh:"\u63A8\u6D41\u7684\u76EE\u6807 CDN \u51FA\u73B0\u9519\u8BEF\u5BFC\u81F4\u63A8\u6D41\u5931\u8D25\u3002","zh-CHT":"\u63A8\u6D41\u7684\u76EE\u6A19 CDN \u51FA\u73FE\u932F\u8AA4\u5C0E\u81F4\u63A8\u6D41\u5931\u6557\u3002",en:"Live streaming failed due to error in target CDN.",ko:"\uB300\uC0C1 CDN\uC5D0\uC11C \uC624\uB958\uAC00 \uBC1C\uC0DD\uD558\uC5EC \uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30BF\u30FC\u30B2\u30C3\u30C8CDN\u306E\u30A8\u30E9\u30FC\u306B\u3088\u308A\u3001\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Live-Streaming fehlgeschlagen aufgrund eines Fehlers im Ziel-CDN.",fr:"La diffusion en direct a \xE9chou\xE9 en raison d'une erreur dans le CDN cible.",id:"Streaming langsung gagal karena kesalahan di CDN target.",ru:"\u041F\u0440\u044F\u043C\u0430\u044F \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F \u043D\u0435 \u0443\u0434\u0430\u043B\u0430\u0441\u044C \u0438\u0437-\u0437\u0430 \u043E\u0448\u0438\u0431\u043A\u0438 \u0432 \u0446\u0435\u043B\u0435\u0432\u043E\u043C CDN."},LIVE_STREAMING_INVALID_RAW_STREAM:{zh:"\u63A8\u6D41\u8D85\u65F6\u3002","zh-CHT":"\u63A8\u6D41\u8D85\u6642\u3002",en:"Live streaming timed out.",ko:"\uB77C\uC774\uBE0C \uC2A4\uD2B8\uB9AC\uBC0D\uC774 \uC2DC\uAC04 \uCD08\uACFC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",ja:"\u30E9\u30A4\u30D6\u30B9\u30C8\u30EA\u30FC\u30DF\u30F3\u30B0\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F\u3002",de:"Live-Streaming hat einen Timeout erreicht.",fr:"La diffusion en direct a expir\xE9.",id:"Streaming langsung telah kedaluwarsa.",ru:"\u041F\u0440\u044F\u043C\u0430\u044F \u0442\u0440\u0430\u043D\u0441\u043B\u044F\u0446\u0438\u044F timed out."},CROSS_CHANNEL_WAIT_STATUS_ERROR:{zh:"\u7B49\u5F85 RTCClient.on(channel-media-relay-state) \u56DE\u8C03\u51FA\u9519\u3002","zh-CHT":"\u7B49\u5F85 RTCClient.on(channel-media-relay-state) \u56DE\u8ABF\u51FA\u932F\u3002",en:"Error waiting for RTCClient.on(channel-media-relay-state) callback.",ko:"RTCClient.on(channel-media-relay-state) \uCF5C\uBC31\uC744 \uAE30\uB2E4\uB9AC\uB294 \uB3D9\uC548 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.",ja:"RTCClient.on(channel-media-relay-state)\u30B3\u30FC\u30EB\u30D0\u30C3\u30AF\u3092\u5F85\u6A5F\u4E2D\u306B\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002",de:"Fehler beim Warten auf den RTCClient.on(channel-media-relay-state)-R\xFCckruf.",fr:"Erreur lors de l'attente du rappel RTCClient.on(channel-media-relay-state).",id:"Kesalahan saat menunggu panggilan balik RTCClient.on(channel-media-relay-state).",ru:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u0438 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0438 \u043E\u0431\u0440\u0430\u0442\u043D\u043E\u0433\u043E \u0432\u044B\u0437\u043E\u0432\u0430 RTCClient.on(channel-media-relay-state)."},CROSS_CHANNEL_FAILED_JOIN_SRC:{zh:"\u53D1\u8D77\u8DE8\u9891\u9053\u8F6C\u53D1\u5A92\u4F53\u6D41\u8BF7\u6C42\u5931\u8D25\u3002","zh-CHT":"\u767C\u8D77\u8DE8\u983B\u9053\u8F49\u767C\u5A92\u9AD4\u6D41\u8ACB\u6C42\u5931\u6557\u3002",en:"Failed to initiate cross-channel media stream forwarding request.",ko:"\uCC44\uB110 \uAC04 \uBBF8\uB514\uC5B4 \uC2A4\uD2B8\uB9BC \uC804\uB2EC \uC694\uCCAD\uC744 \uC2DC\uC791\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30C1\u30E3\u30F3\u30CD\u30EB\u9593\u30E1\u30C7\u30A3\u30A2\u30B9\u30C8\u30EA\u30FC\u30E0\u8EE2\u9001\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u958B\u59CB\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Fehler beim Initiieren einer Anfrage zur Weiterleitung von Medienstr\xF6men zwischen Kan\xE4len.",fr:"\xC9chec de l'initialisation de la demande de transfert de flux multim\xE9dia entre canaux.",id:"Gagal memulai permintaan pengalihan aliran media antar saluran.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u043D\u0438\u0446\u0438\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0441 \u043D\u0430 \u043F\u0435\u0440\u0435\u0441\u044B\u043B\u043A\u0443 \u043F\u043E\u0442\u043E\u043A\u0430 \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430 \u043C\u0435\u0436\u0434\u0443 \u043A\u0430\u043D\u0430\u043B\u0430\u043C\u0438."},CROSS_CHANNEL_FAILED_JOIN_DEST:{zh:"\u63A5\u53D7\u8DE8\u9891\u9053\u8F6C\u53D1\u5A92\u4F53\u6D41\u8BF7\u6C42\u5931\u8D25\u3002","zh-CHT":"\u63A5\u53D7\u8DE8\u983B\u9053\u8F49\u767C\u5A92\u9AD4\u6D41\u8ACB\u6C42\u5931\u6557\u3002",en:"Failed to accept cross-channel media stream forwarding request.",ko:"\uCC44\uB110 \uAC04 \uBBF8\uB514\uC5B4 \uC2A4\uD2B8\uB9BC \uC804\uB2EC \uC694\uCCAD\uC744 \uC218\uB77D\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30C1\u30E3\u30F3\u30CD\u30EB\u9593\u30E1\u30C7\u30A3\u30A2\u30B9\u30C8\u30EA\u30FC\u30E0\u8EE2\u9001\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u53D7\u3051\u5165\u308C\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Fehler beim Akzeptieren einer Anfrage zur Weiterleitung von Medienstr\xF6men zwischen Kan\xE4len.",fr:"\xC9chec de l'acceptation de la demande de transfert de flux multim\xE9dia entre canaux.",id:"Gagal menerima permintaan pengalihan aliran media antar saluran.",ru:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0440\u0438\u043D\u044F\u0442\u044C \u0437\u0430\u043F\u0440\u043E\u0441 \u043D\u0430 \u043F\u0435\u0440\u0435\u0441\u044B\u043B\u043A\u0443 \u043F\u043E\u0442\u043E\u043A\u0430 \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430 \u043C\u0435\u0436\u0434\u0443 \u043A\u0430\u043D\u0430\u043B\u0430\u043C\u0438."},CROSS_CHANNEL_FAILED_PACKET_SENT_TO_DEST:{zh:"\u670D\u52A1\u5668\u63A5\u6536\u8DE8\u9891\u9053\u8F6C\u53D1\u5A92\u4F53\u6D41\u5931\u8D25\u3002","zh-CHT":"\u670D\u52D9\u5668\u63A5\u6536\u8DE8\u983B\u9053\u8F49\u767C\u5A92\u9AD4\u6D41\u5931\u6557\u3002",en:"Server failed to receive cross-channel forwarded media stream.",ko:"\uC11C\uBC84\uAC00 \uCC44\uB110 \uAC04 \uC804\uB2EC\uB41C \uBBF8\uB514\uC5B4 \uC2A4\uD2B8\uB9BC\uC744 \uC218\uC2E0\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",ja:"\u30B5\u30FC\u30D0\u30FC\u304C\u30C1\u30E3\u30F3\u30CD\u30EB\u9593\u8EE2\u9001\u3055\u308C\u305F\u30E1\u30C7\u30A3\u30A2\u30B9\u30C8\u30EA\u30FC\u30E0\u306E\u53D7\u4FE1\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",de:"Server konnte den zwischen Kan\xE4len weitergeleiteten Medienstrom nicht empfangen.",fr:"Le serveur n'a pas pu recevoir le flux multim\xE9dia transf\xE9r\xE9 entre canaux.",id:"Server gagal menerima aliran media yang dikirimkan antar saluran.",ru:"\u0421\u0435\u0440\u0432\u0435\u0440 \u043D\u0435 \u0441\u043C\u043E\u0433 \u043F\u0440\u0438\u043D\u044F\u0442\u044C \u043F\u043E\u0442\u043E\u043A \u043C\u0443\u043B\u044C\u0442\u0438\u043C\u0435\u0434\u0438\u0430, \u043F\u0435\u0440\u0435\u0441\u043B\u0430\u043D\u043D\u044B\u0439 \u043C\u0435\u0436\u0434\u0443 \u043A\u0430\u043D\u0430\u043B\u0430\u043C\u0438."},CROSS_CHANNEL_SERVER_ERROR_RESPONSE:{zh:"\u670D\u52A1\u5668\u54CD\u5E94\u51FA\u9519\u3002","zh-CHT":"\u670D\u52D9\u5668\u97FF\u61C9\u51FA\u932F\u3002",en:"Server response error.",ko:"\uC11C\uBC84 \uC751\uB2F5 \uC624\uB958\uC785\uB2C8\uB2E4.",ja:"\u30B5\u30FC\u30D0\u30FC\u306E\u30EC\u30B9\u30DD\u30F3\u30B9\u30A8\u30E9\u30FC\u3067\u3059\u3002",de:"Server-Antwortfehler.",fr:"Erreur de r\xE9ponse du serveur.",id:"Kesalahan respons server.",ru:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u0442\u0432\u0435\u0442\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430."}},$t=(e,s)=>{const t=Hd[e];return t?t[s]||t.en:null};var Wd=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"meeting-warp"},[t("Modal",{attrs:{title:e.$L(e.addData.type==="join"?"\u52A0\u5165\u4F1A\u8BAE":"\u65B0\u4F1A\u8BAE"),"mask-closable":!1,closable:!e.addData.sharekey},model:{value:e.addShow,callback:function(i){e.addShow=i},expression:"addShow"}},[t("Form",e._b({ref:"addForm",attrs:{model:e.addData,rules:e.addRule},nativeOn:{submit:function(i){i.preventDefault()}}},"Form",e.formOptions,!1),[e.addData.type==="join"?[e.addData.name?t("FormItem",{attrs:{prop:"userids",label:e.$L("\u4F1A\u8BAE\u4E3B\u9898")}},[t("Input",{attrs:{disabled:""},model:{value:e.addData.name,callback:function(i){e.$set(e.addData,"name",i)},expression:"addData.name"}})],1):e._e(),e.addData.sharekey?t("FormItem",{attrs:{prop:"username",label:e.$L("\u4F60\u7684\u59D3\u540D")}},[t("Input",{attrs:{placeholder:e.$L("\u8BF7\u8F93\u5165\u4F60\u7684\u59D3\u540D")},model:{value:e.addData.username,callback:function(i){e.$set(e.addData,"username",i)},expression:"addData.username"}})],1):e._e(),t("FormItem",{attrs:{prop:"meetingid",label:e.$L("\u4F1A\u8BAE\u9891\u9053ID")}},[t("Input",{attrs:{disabled:e.addData.meetingdisabled===!0,placeholder:e.$L("\u8BF7\u8F93\u5165\u4F1A\u8BAE\u9891\u9053ID")},model:{value:e.addData.meetingid,callback:function(i){e.$set(e.addData,"meetingid",i)},expression:"addData.meetingid"}})],1)]:[t("FormItem",{attrs:{prop:"name",label:e.$L("\u4F1A\u8BAE\u4E3B\u9898")}},[t("Input",{attrs:{maxlength:50,placeholder:e.$L("\u9009\u586B")},model:{value:e.addData.name,callback:function(i){e.$set(e.addData,"name",i)},expression:"addData.name"}})],1),t("FormItem",{attrs:{prop:"userids",label:e.$L("\u9080\u8BF7\u6210\u5458")}},[t("UserSelect",{attrs:{uncancelable:[e.userId],"multiple-max":20,title:e.$L("\u9009\u62E9\u9080\u8BF7\u6210\u5458")},model:{value:e.addData.userids,callback:function(i){e.$set(e.addData,"userids",i)},expression:"addData.userids"}})],1)],t("FormItem",{attrs:{prop:"tracks"}},[t("CheckboxGroup",{model:{value:e.addData.tracks,callback:function(i){e.$set(e.addData,"tracks",i)},expression:"addData.tracks"}},[t("Checkbox",{attrs:{label:"audio"}},[t("span",[e._v(e._s(e.$L("\u9EA6\u514B\u98CE")))])]),t("Checkbox",{attrs:{label:"video"}},[t("span",[e._v(e._s(e.$L("\u6444\u50CF\u5934")))])])],1)],1)],2),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e.addData.sharekey?e._e():t("Button",{attrs:{type:"default"},on:{click:function(i){e.addShow=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Button",{attrs:{type:"primary",loading:e.loadIng>0},on:{click:e.onSubmit}},[e._v(e._s(e.$L(e.addData.type==="join"?"\u52A0\u5165\u4F1A\u8BAE":"\u5F00\u59CB\u4F1A\u8BAE")))])],1)],1),t("Modal",{ref:"meetingModal",attrs:{title:e.addData.name,mask:!1,"mask-closable":!1,closable:!1,"transition-names":["",""],beforeClose:e.onClose,"class-name":`meeting-manager${e.meetingMini?" meeting-hidden":""}`,"ignore-remove-last":e.meetingMini,fullscreen:""},model:{value:e.meetingShow,callback:function(i){e.meetingShow=i},expression:"meetingShow"}},[t("ul",[e.localUser.uid?t("li",[t("Player",{attrs:{player:e.localUser,isLocal:""}})],1):e._e(),e._l(e.remoteUsers,function(i){return t("li",[t("Player",{attrs:{player:i}})],1)})],2),t("div",{staticClass:"adaption meeting-button-group",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"primary",loading:e.audioLoad},on:{click:e.onAudio}},[t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(e.localUser.audioTrack?"&#xe7c3;":"&#xe7c7;")}})]),t("Button",{attrs:{type:"primary",loading:e.videoLoad},on:{click:e.onVideo}},[t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(e.localUser.videoTrack?"&#xe7c1;":"&#xe7c8;")}})]),e.windowPortrait?[t("Button",{attrs:{type:"primary",loading:e.linkCopyLoad},on:{click:function(i){return e.onInvitation("open")}}},[t("i",{staticClass:"taskfont"},[e._v("\uE646")])]),e.addData.sharekey?e._e():t("Button",{attrs:{type:"primary"},on:{click:function(i){e.meetingMini=!0}}},[t("i",{staticClass:"taskfont"},[e._v("\uE656")])]),t("Button",{attrs:{type:"warning",loading:e.loadIng>0},on:{click:e.onClose}},[t("i",{staticClass:"taskfont"},[e._v("\uE612")])])]:[t("Button",{attrs:{type:"primary"},on:{click:function(i){return e.onInvitation("open")}}},[e._v(e._s(e.$L("\u9080\u8BF7")))]),e.addData.sharekey?e._e():t("Button",{attrs:{type:"primary"},on:{click:function(i){e.meetingMini=!0}}},[e._v(e._s(e.$L("\u6700\u5C0F\u5316")))]),t("Button",{attrs:{type:"warning",loading:e.loadIng>0},on:{click:e.onClose}},[e._v(e._s(e.$L("\u79BB\u5F00\u4F1A\u8BAE")))])]],2)]),e.meetingMini?t("DragBallComponent",{attrs:{id:"meetingDragBall","z-index":3e3},on:{"on-click":function(i){e.meetingMini=!1}}},[t("div",{staticClass:"meeting-drag-ball"},[t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(e.localUser.audioTrack?"&#xe7c3;":"&#xe7c7;")}}),t("i",{staticClass:"taskfont",domProps:{innerHTML:e._s(e.localUser.videoTrack?"&#xe7c1;":"&#xe7c8;")}}),t("em",[e._v(e._s(e.$L("\u4F1A\u8BAE\u4E2D")))])])]):e._e(),t("Modal",{attrs:{title:e.$L("\u9080\u8BF7\u52A0\u5165"),"mask-closable":!1},model:{value:e.invitationShow,callback:function(i){e.invitationShow=i},expression:"invitationShow"}},[t("Form",e._b({ref:"invitationForm",attrs:{model:e.invitationData},nativeOn:{submit:function(i){i.preventDefault()}}},"Form",e.formOptions,!1),[t("FormItem",{attrs:{prop:"userids",label:e.$L("\u9080\u8BF7\u6210\u5458")}},[t("UserSelect",{attrs:{"multiple-max":20,title:e.$L("\u9009\u62E9\u9080\u8BF7\u6210\u5458")},model:{value:e.invitationData.userids,callback:function(i){e.$set(e.invitationData,"userids",i)},expression:"invitationData.userids"}})],1)],1),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default",loading:e.linkCopyLoad},on:{click:e.linkCopy}},[e._v(e._s(e.$L("\u590D\u5236\u94FE\u63A5")))]),t("Button",{attrs:{type:"primary",loading:e.invitationLoad},on:{click:function(i){return e.onInvitation("submit")}}},[e._v(e._s(e.$L("\u53D1\u9001\u9080\u8BF7")))])],1)],1)],1)},Vd=[];const Yd={name:"MeetingManager",components:{UserSelect:Ft,DragBallComponent:Fd,Player:Rd},props:{id:{type:String,default:()=>"meeting-player-"+Math.round(Math.random()*1e4)}},data(){return{loadIng:0,addShow:!1,addData:{userids:[],tracks:["audio"]},addRule:{username:[{required:!0,message:this.$L("\u8BF7\u8F93\u5165\u4F60\u7684\u59D3\u540D\uFF01"),trigger:"change"}]},invitationShow:!1,invitationLoad:!1,invitationData:{userids:[]},meetingShow:!1,meetingMini:!1,audioLoad:!1,videoLoad:!1,agoraClient:null,remoteUsers:[],localUser:{uid:null,audioTrack:null,videoTrack:null},linkCopyLoad:!1}},computed:{...z(["meetingWindow","appMeetingShow","formOptions","userToken"])},mounted(){T.on("addMeeting",this.onAdd)},beforeDestroy(){T.off("addMeeting",this.onAdd)},watch:{meetingMini(e){e||(this.$refs.meetingModal.modalIndex=this.$refs.meetingModal.handleGetModalIndex())},meetingWindow:{handler(e){switch(e.type){case"add":this.addShow=e.show;break;case"join":case"direct":this.addShow=e.show,this.addData.type="join",e.meetingNickname&&(this.addData.username=e.meetingNickname),e.meetingAvatar&&(this.addData.userimg=e.meetingAvatar),$A.runNum(e.meetingAudio)&&!this.addData.tracks.includes("audio")&&this.addData.tracks.push("audio"),$A.runNum(e.meetingVideo)&&!this.addData.tracks.includes("video")&&this.addData.tracks.push("video"),e.meetingSharekey&&(this.addData.sharekey=e.meetingSharekey,this.addData.meetingid=e.meetingid||"",this.addData.meetingdisabled=!!e.meetingSharekey),e.type==="direct"&&this.onOpen(!0);break;case"invitation":this.invitationShow=e.show,this.invitationLoad=!1,this.invitationData.meetingid=e.meetingid;break;case"error":this.addShow=e.show,this.invitationShow=e.show,this.invitationLoad=!1,$A.modalError("\u52A0\u5165\u4F1A\u8BAE\u5931\u8D25");break}},immediate:!0}},methods:{onAdd(e){e=$A.isJson(e)?e:{},/^\d+$/.test(e.dialog_id)&&(this.loadIng++,this.$store.dispatch("call",{url:"dialog/user",data:{dialog_id:e.dialog_id}}).then(({data:s})=>{this.$set(this.addData,"userids",s.filter(t=>!t.bot).map(t=>t.userid))}).finally(s=>{this.loadIng--}),delete e.dialog_id),$A.isArray(e.userids)||(e.userids=[]),this.userId&&!e.userids.includes(this.userId)&&e.userids.push(this.userId),$A.isArray(e.tracks)?e.tracks.includes("audio")||e.tracks.push("audio"):e.tracks=["audio"],this.addData=e,this.addShow=!0},onSubmit(){this.$refs.addForm.validate(e=>{e&&this.onOpen()})},async onOpen(e=!1){let s=!1;if($A.isEEUIApp)s=this.appMeetingShow;else if($A.Electron){const i=await $A.Electron.sendAsync("getChildWindow","meeting-window");if(i){const n=await $A.Electron.sendAsync("getChildWindow",null);s=(n==null?void 0:n.id)!==i.id}}else s=this.meetingShow;if(s){$A.modalWarning({content:"\u6B63\u5728\u4F1A\u8BAE\u4E2D\uFF0C\u65E0\u6CD5\u8FDB\u5165\u5176\u4ED6\u4F1A\u8BAE\u5BA4",onOk:this.onBeforeClose});return}const t=i=>{e?i?this.$store.dispatch("showSpinner"):this.$store.dispatch("hiddenSpinner",600):i?this.loadIng++:this.loadIng--};t(!0),this.$store.dispatch("call",{url:"users/meeting/open",data:this.addData}).then(({data:i})=>{if(this.$set(this.addData,"name",i.name),this.$set(this.addData,"meetingid",i.meetingid),this.$set(this.localUser,"nickname",i.nickname),this.$set(this.localUser,"userimg",i.userimg),this.$store.dispatch("saveDialogMsg",i.msgs),this.$store.dispatch("updateDialogLastMsg",i.msgs),delete i.name,delete i.msgs,$A.isEEUIApp){t(!0),this.loadNum=0,this.loadTimer&&clearInterval(this.loadTimer),this.loadTimer=setInterval(()=>{this.addShow&&++this.loadNum<10||(clearInterval(this.loadTimer),t(!1))},1e3),$A.eeuiAppSendMessage({action:"startMeeting",meetingParams:{name:this.addData.name,token:i.token,channel:i.channel,uuid:i.uid,appid:i.appid,avatar:i.userimg,username:i.nickname,video:this.addData.tracks.includes("video"),audio:this.addData.tracks.includes("audio"),meetingid:i.meetingid,sharelink:i.sharelink,alert:{title:this.$L("\u6E29\u99A8\u63D0\u793A"),message:this.$L("\u786E\u5B9A\u8981\u79BB\u5F00\u4F1A\u8BAE\u5417\uFF1F"),cancel:this.$L("\u7EE7\u7EED"),confirm:this.$L("\u9000\u51FA")}}});return}if($A.Electron&&!this.addData.sharekey){t(!0),this.$store.dispatch("call",{url:"users/meeting/link",data:{meetingid:i.meetingid}}).then(n=>{const r=$A.urlAddParams($A.removeMainUrlPrefix(n.data),{type:"direct",nickname:i.nickname,avatar:i.userimg,audio:this.addData.tracks.includes("audio")?1:0,video:this.addData.tracks.includes("video")?1:0,token:this.userToken});this.$store.dispatch("openWindow",{name:"meeting-window",path:r,mode:"window",title:this.addData.name,titleFixed:!0}),this.addShow=!1}).catch(({msg:n})=>{$A.modalError({content:n,onOk:this.onBeforeClose})}).finally(n=>{t(!1)});return}t(!0),$A.loadScript("js/AgoraRTC_N-4.17.0.js").then(n=>{this.join(i)}).catch(n=>{$A.modalError({content:"\u4F1A\u8BAE\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01",onOk:this.onBeforeClose})}).finally(n=>{t(!1)})}).catch(({msg:i})=>{$A.modalError({content:i,onOk:this.onBeforeClose})}).finally(i=>{t(!1)})},onAudio(){this.localUser.audioTrack?this.closeAudio():this.openAudio()},onVideo(){this.localUser.videoTrack?this.closeVideo():this.openVideo()},onInvitation(e){if(e==="open"){if(this.addData.sharekey&&!this.userId){this.linkCopy();return}this.invitationData={userids:[],meetingid:this.addData.meetingid},this.invitationShow=!0}else if(e==="submit"){if(this.invitationData.userids.length===0){$A.modalWarning("\u8BF7\u9009\u62E9\u9080\u8BF7\u6210\u5458");return}this.invitationLoad=!0,this.$store.dispatch("call",{url:"users/meeting/invitation",data:this.invitationData}).then(({data:s,msg:t})=>{this.invitationShow=!1,this.$store.dispatch("saveDialogMsg",s.msgs),this.$store.dispatch("updateDialogLastMsg",s.msgs),$A.messageSuccess(t)}).catch(({msg:s})=>{$A.modalError(s)}).finally(s=>{this.invitationLoad=!1})}},onClose(){return new Promise(e=>{$A.modalConfirm({content:"\u786E\u5B9A\u8981\u79BB\u5F00\u4F1A\u8BAE\u5417\uFF1F",cancelText:"\u7EE7\u7EED",okText:"\u9000\u51FA",onOk:async()=>{await this.onBeforeClose(),e()}})})},async onBeforeClose(){try{await this.leave()}catch(e){console.error(e)}$A.isSubElectron?this.$Electron.sendMessage("windowDestroy"):this.addData.sharekey&&(this.addShow=!0)},linkCopy(){this.linkCopyLoad=!0,this.$store.dispatch("call",{url:"users/meeting/link",data:{meetingid:this.addData.meetingid||this.invitationData.meetingid,sharekey:this.addData.sharekey}}).then(({data:e})=>{this.copyText({text:e,success:"\u5DF2\u590D\u5236\u4F1A\u8BAE\u9080\u8BF7\u94FE\u63A5",error:"\u590D\u5236\u5931\u8D25"}),this.invitationShow=!1}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.linkCopyLoad=!1})},async join(e){this.loadIng++;try{AgoraRTC.onMicrophoneChanged=async t=>{var i,n,r;if(t.state==="ACTIVE")(i=this.localUser.audioTrack)==null||i.setDevice(t.device.deviceId);else if(t.device.label===((n=this.localUser.audioTrack)==null?void 0:n.getTrackLabel())){const o=await AgoraRTC.getMicrophones();o[0]&&((r=this.localUser.audioTrack)==null||r.setDevice(o[0].deviceId))}},AgoraRTC.onCameraChanged=async t=>{var i,n,r;if(t.state==="ACTIVE")(i=this.localUser.videoTrack)==null||i.setDevice(t.device.deviceId);else if(t.device.label===((n=this.localUser.videoTrack)==null?void 0:n.getTrackLabel())){const o=await AgoraRTC.getCameras();o[0]&&((r=this.localUser.videoTrack)==null||r.setDevice(o[0].deviceId))}},AgoraRTC.onAutoplayFailed=()=>{$A.messageWarning("\u70B9\u51FB\u5C4F\u5E55\u5F00\u59CB\u4F1A\u8BAE")},AgoraRTC.setLogLevel(window.systemInfo.debug==="yes"?0:3),this.agoraClient=AgoraRTC.createClient({mode:"rtc",codec:"vp8"}),this.agoraClient.on("user-joined",this.handleUserJoined),this.agoraClient.on("user-left",this.handleUserLeft),this.agoraClient.on("user-published",this.handleUserPublished),this.agoraClient.on("user-unpublished",this.handleUserUnpublished);const s=[];try{this.localUser.uid=await this.agoraClient.join(e.appid,e.channel,e.token,e.uid),await Promise.all(["audio","video"].map(async t=>{if(!this.addData.tracks.includes(t))return;const i=t==="audio"?AgoraRTC.createMicrophoneAudioTrack:AgoraRTC.createCameraVideoTrack,n=`${t}Track`;try{this.localUser[n]=await i(),s.push(this.localUser[n])}catch(r){if(r.code==="DEVICE_NOT_FOUND")console.warn(`${t} device not found:`,r);else throw r}})),s.length>0&&await this.agoraClient.publish(s),this.meetingShow=!0}catch(t){console.error(t),$A.modalError({language:!1,content:$t(t.code,M)||this.$L("\u4F1A\u8BAE\u7EC4\u4EF6\u52A0\u8F7D\u5931\u8D25\uFF01"),onOk:this.onBeforeClose})}}catch{}this.addShow=!1,this.loadIng--},async leave(){this.loadIng++;try{["audioTrack","videoTrack"].some(e=>{var s,t;(s=this.localUser[e])==null||s.stop(),(t=this.localUser[e])==null||t.close()}),this.localUser={uid:null,audioTrack:null,videoTrack:null},this.remoteUsers=[],await this.agoraClient.leave()}catch{}this.meetingShow=!1,this.loadIng--},async openAudio(){if(!(this.audioLoad||this.localUser.audioTrack)){this.audioLoad=!0;try{this.localUser.audioTrack=await AgoraRTC.createMicrophoneAudioTrack(),await this.agoraClient.publish([this.localUser.audioTrack])}catch(e){$A.modalError({language:!1,content:$t(e.code,M)||this.$L("\u5F00\u542F\u9EA6\u514B\u98CE\u5931\u8D25\uFF01")})}finally{this.audioLoad=!1}}},async closeAudio(){this.audioLoad||!this.localUser.audioTrack||(this.audioLoad=!0,await this.agoraClient.unpublish([this.localUser.audioTrack]),this.localUser.audioTrack.stop(),this.localUser.audioTrack.close(),this.localUser.audioTrack=null,this.audioLoad=!1)},async openVideo(){if(!(this.videoLoad||this.localUser.videoTrack)){this.videoLoad=!0;try{this.localUser.videoTrack=await AgoraRTC.createCameraVideoTrack(),await this.agoraClient.publish([this.localUser.videoTrack])}catch(e){$A.modalError({language:!1,content:$t(e.code,M)||this.$L("\u5F00\u542F\u6444\u50CF\u5934\u5931\u8D25\uFF01")})}finally{this.videoLoad=!1}}},async closeVideo(){this.videoLoad||!this.localUser.videoTrack||(this.videoLoad=!0,await this.agoraClient.unpublish([this.localUser.videoTrack]),this.localUser.videoTrack.stop(),this.localUser.videoTrack.close(),this.localUser.videoTrack=null,this.videoLoad=!1)},async handleUserJoined(e){if(e.uid==this.localUser.uid)return;const s=this.remoteUsers.findIndex(t=>t.uid==e.uid);s>-1?this.remoteUsers.splice(s,1,e):this.remoteUsers.push(e)},async handleUserLeft(e){const s=this.remoteUsers.findIndex(t=>t.uid==e.uid);s>-1&&this.remoteUsers.splice(s,1)},async handleUserPublished(e,s){this.remoteUsers.find(i=>i.uid==e.uid)&&await this.agoraClient.subscribe(e,s)},async handleUserUnpublished(e,s){this.remoteUsers.find(i=>i.uid==e.uid)&&await this.agoraClient.unsubscribe(e,s)}}},li={};var qd=A(Yd,Wd,Vd,!1,Kd,null,null,null);function Kd(e){for(let s in li)this[s]=li[s]}var Gd=function(){return qd.exports}();const Ue=/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g,Jd=e=>(Ue.lastIndex=0,Ue.test(e));function mt(e,s="emoji-original",t="span"){if(typeof e!="string")return"";if((!s||typeof s!="string")&&(s="emoji-original"),(!t||typeof t!="string")&&(t="span"),!Jd(e))return e;Ue.lastIndex=0;let i="",n=0,r;for(;(r=Ue.exec(e))!==null;)r.index>n&&(i+=e.substring(n,r.index)),i+=`<${t} class="${s}">${r[0]}</${t}>`,n=Ue.lastIndex;return n<e.length&&(i+=e.substring(n)),i}var I={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Ce,table:Ce,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};I._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/;I._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;I.def=V(I.def).replace("label",I._label).replace("title",I._title).getRegex();I.bullet=/(?:[*+-]|\d{1,9}\.)/;I.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/;I.item=V(I.item,"gm").replace(/bull/g,I.bullet).getRegex();I.list=V(I.list).replace(/bull/g,I.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+I.def.source+")").getRegex();I._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";I._comment=/<!--(?!-?>)[\s\S]*?-->/;I.html=V(I.html,"i").replace("comment",I._comment).replace("tag",I._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();I.paragraph=V(I._paragraph).replace("hr",I.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",I._tag).getRegex();I.blockquote=V(I.blockquote).replace("paragraph",I.paragraph).getRegex();I.normal=oe({},I);I.gfm=oe({},I.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/});I.pedantic=oe({},I.normal,{html:V(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",I._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:Ce,paragraph:V(I.normal._paragraph).replace("hr",I.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",I.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});function _e(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||j.defaults,this.rules=I.normal,this.options.pedantic?this.rules=I.pedantic:this.options.gfm&&(this.rules=I.gfm)}_e.rules=I;_e.lex=function(e,s){var t=new _e(s);return t.lex(e)};_e.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,`
`).replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,`
`),this.token(e,!0)};_e.prototype.token=function(e,s){e=e.replace(/^ +$/gm,"");for(var t,i,n,r,o,a,l,c,d,h,u,p,g,_,v,y;e;){if((n=this.rules.newline.exec(e))&&(e=e.substring(n[0].length),n[0].length>1&&this.tokens.push({type:"space"})),n=this.rules.code.exec(e)){var w=this.tokens[this.tokens.length-1];e=e.substring(n[0].length),w&&w.type==="paragraph"?w.text+=`
`+n[0].trimRight():(n=n[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?n:gn(n,`
`)}));continue}if(n=this.rules.fences.exec(e)){e=e.substring(n[0].length),this.tokens.push({type:"code",lang:n[2]?n[2].trim():n[2],text:n[3]||""});continue}if(n=this.rules.heading.exec(e)){e=e.substring(n[0].length),this.tokens.push({type:"heading",depth:n[1].length,text:n[2]});continue}if((n=this.rules.nptable.exec(e))&&(a={type:"table",header:et(n[1].replace(/^ *| *\| *$/g,"")),align:n[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:n[3]?n[3].replace(/\n$/,"").split(`
`):[]},a.header.length===a.align.length)){for(e=e.substring(n[0].length),u=0;u<a.align.length;u++)/^ *-+: *$/.test(a.align[u])?a.align[u]="right":/^ *:-+: *$/.test(a.align[u])?a.align[u]="center":/^ *:-+ *$/.test(a.align[u])?a.align[u]="left":a.align[u]=null;for(u=0;u<a.cells.length;u++)a.cells[u]=et(a.cells[u],a.header.length);this.tokens.push(a);continue}if(n=this.rules.hr.exec(e)){e=e.substring(n[0].length),this.tokens.push({type:"hr"});continue}if(n=this.rules.blockquote.exec(e)){e=e.substring(n[0].length),this.tokens.push({type:"blockquote_start"}),n=n[0].replace(/^ *> ?/gm,""),this.token(n,s),this.tokens.push({type:"blockquote_end"});continue}if(n=this.rules.list.exec(e)){for(e=e.substring(n[0].length),r=n[2],_=r.length>1,l={type:"list_start",ordered:_,start:_?+r:"",loose:!1},this.tokens.push(l),n=n[0].match(this.rules.item),c=[],t=!1,g=n.length,u=0;u<g;u++)a=n[u],h=a.length,a=a.replace(/^ *([*+-]|\d+\.) */,""),~a.indexOf(`
`)&&(h-=a.length,a=this.options.pedantic?a.replace(/^ {1,4}/gm,""):a.replace(new RegExp("^ {1,"+h+"}","gm"),"")),u!==g-1&&(o=I.bullet.exec(n[u+1])[0],(r.length>1?o.length===1:o.length>1||this.options.smartLists&&o!==r)&&(e=n.slice(u+1).join(`
`)+e,u=g-1)),i=t||/\n\n(?!\s*$)/.test(a),u!==g-1&&(t=a.charAt(a.length-1)===`
`,i||(i=t)),i&&(l.loose=!0),v=/^\[[ xX]\] /.test(a),y=void 0,v&&(y=a[1]!==" ",a=a.replace(/^\[[ xX]\] +/,"")),d={type:"list_item_start",task:v,checked:y,loose:i},c.push(d),this.tokens.push(d),this.token(a,!1),this.tokens.push({type:"list_item_end"});if(l.loose)for(g=c.length,u=0;u<g;u++)c[u].loose=!0;this.tokens.push({type:"list_end"});continue}if(n=this.rules.html.exec(e)){e=e.substring(n[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&(n[1]==="pre"||n[1]==="script"||n[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):P(n[0]):n[0]});continue}if(s&&(n=this.rules.def.exec(e))){e=e.substring(n[0].length),n[3]&&(n[3]=n[3].substring(1,n[3].length-1)),p=n[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[p]||(this.tokens.links[p]={href:n[2],title:n[3]});continue}if((n=this.rules.table.exec(e))&&(a={type:"table",header:et(n[1].replace(/^ *| *\| *$/g,"")),align:n[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:n[3]?n[3].replace(/\n$/,"").split(`
`):[]},a.header.length===a.align.length)){for(e=e.substring(n[0].length),u=0;u<a.align.length;u++)/^ *-+: *$/.test(a.align[u])?a.align[u]="right":/^ *:-+: *$/.test(a.align[u])?a.align[u]="center":/^ *:-+ *$/.test(a.align[u])?a.align[u]="left":a.align[u]=null;for(u=0;u<a.cells.length;u++)a.cells[u]=et(a.cells[u].replace(/^ *\| *| *\| *$/g,""),a.header.length);this.tokens.push(a);continue}if(n=this.rules.lheading.exec(e)){e=e.substring(n[0].length),this.tokens.push({type:"heading",depth:n[2].charAt(0)==="="?1:2,text:n[1]});continue}if(s&&(n=this.rules.paragraph.exec(e))){e=e.substring(n[0].length),this.tokens.push({type:"paragraph",text:n[1].charAt(n[1].length-1)===`
`?n[1].slice(0,-1):n[1]});continue}if(n=this.rules.text.exec(e)){e=e.substring(n[0].length),this.tokens.push({type:"text",text:n[0]});continue}if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}return this.tokens};var x={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ce,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Ce,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};x._punctuation=`!"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~`;x.em=V(x.em).replace(/punctuation/g,x._punctuation).getRegex();x._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;x._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;x._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;x.autolink=V(x.autolink).replace("scheme",x._scheme).replace("email",x._email).getRegex();x._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;x.tag=V(x.tag).replace("comment",I._comment).replace("attribute",x._attribute).getRegex();x._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;x._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/;x._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;x.link=V(x.link).replace("label",x._label).replace("href",x._href).replace("title",x._title).getRegex();x.reflink=V(x.reflink).replace("label",x._label).getRegex();x.normal=oe({},x);x.pedantic=oe({},x.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:V(/^!?\[(label)\]\((.*?)\)/).replace("label",x._label).getRegex(),reflink:V(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",x._label).getRegex()});x.gfm=oe({},x.normal,{escape:V(x.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/});x.gfm.url=V(x.gfm.url,"i").replace("email",x.gfm._extended_email).getRegex();x.breaks=oe({},x.gfm,{br:V(x.br).replace("{2,}","*").getRegex(),text:V(x.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function Q(e,s){if(this.options=s||j.defaults,this.links=e,this.rules=x.normal,this.renderer=this.options.renderer||new U,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=x.pedantic:this.options.gfm&&(this.options.breaks?this.rules=x.breaks:this.rules=x.gfm)}Q.rules=x;Q.output=function(e,s,t){var i=new Q(s,t);return i.output(e)};Q.prototype.output=function(e){for(var s="",t,i,n,r,o,a;e;){if(o=this.rules.escape.exec(e)){e=e.substring(o[0].length),s+=P(o[1]);continue}if(o=this.rules.tag.exec(e)){!this.inLink&&/^<a /i.test(o[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(o[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(o[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(o[0])&&(this.inRawBlock=!1),e=e.substring(o[0].length),s+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):P(o[0]):o[0];continue}if(o=this.rules.link.exec(e)){var l=Zd(o[2],"()");if(l>-1){var c=4+o[1].length+l;o[2]=o[2].substring(0,l),o[0]=o[0].substring(0,c).trim(),o[3]=""}e=e.substring(o[0].length),this.inLink=!0,n=o[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n),t?(n=t[1],r=t[3]):r=""):r=o[3]?o[3].slice(1,-1):"",n=n.trim().replace(/^<([\s\S]*)>$/,"$1"),s+=this.outputLink(o,{href:Q.escapes(n),title:Q.escapes(r)}),this.inLink=!1;continue}if((o=this.rules.reflink.exec(e))||(o=this.rules.nolink.exec(e))){if(e=e.substring(o[0].length),t=(o[2]||o[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){s+=o[0].charAt(0),e=o[0].substring(1)+e;continue}this.inLink=!0,s+=this.outputLink(o,t),this.inLink=!1;continue}if(o=this.rules.strong.exec(e)){e=e.substring(o[0].length),s+=this.renderer.strong(this.output(o[4]||o[3]||o[2]||o[1]));continue}if(o=this.rules.em.exec(e)){e=e.substring(o[0].length),s+=this.renderer.em(this.output(o[6]||o[5]||o[4]||o[3]||o[2]||o[1]));continue}if(o=this.rules.code.exec(e)){e=e.substring(o[0].length),s+=this.renderer.codespan(P(o[2].trim(),!0));continue}if(o=this.rules.br.exec(e)){e=e.substring(o[0].length),s+=this.renderer.br();continue}if(o=this.rules.del.exec(e)){e=e.substring(o[0].length),s+=this.renderer.del(this.output(o[1]));continue}if(o=this.rules.autolink.exec(e)){e=e.substring(o[0].length),o[2]==="@"?(i=P(this.mangle(o[1])),n="mailto:"+i):(i=P(o[1]),n=i),s+=this.renderer.link(n,null,i);continue}if(!this.inLink&&(o=this.rules.url.exec(e))){if(o[2]==="@")i=P(o[0]),n="mailto:"+i;else{do a=o[0],o[0]=this.rules._backpedal.exec(o[0])[0];while(a!==o[0]);i=P(o[0]),o[1]==="www."?n="http://"+i:n=i}e=e.substring(o[0].length),s+=this.renderer.link(n,null,i);continue}if(o=this.rules.text.exec(e)){e=e.substring(o[0].length),this.inRawBlock?s+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):P(o[0]):o[0]):s+=this.renderer.text(P(this.smartypants(o[0]))),s=s.replace(/\n+/g,"<br/>");continue}if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}return s};Q.escapes=function(e){return e&&e.replace(Q.rules._escapes,"$1")};Q.prototype.outputLink=function(e,s){var t=s.href,i=s.title?P(s.title):null;return e[0].charAt(0)!=="!"?this.renderer.link(t,i,this.output(e[1])):this.renderer.image(t,i,P(e[1]))};Q.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026"):e};Q.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var s="",t=e.length,i=0,n;i<t;i++)n=e.charCodeAt(i),Math.random()>.5&&(n="x"+n.toString(16)),s+="&#"+n+";";return s};function U(e){this.options=e||j.defaults}U.prototype.code=function(e,s,t){var i=(s||"").match(/\S*/)[0];if(this.options.highlight){var n=this.options.highlight(e,i);n!=null&&n!==e&&(t=!0,e=n)}return i?'<pre><code class="'+this.options.langPrefix+P(i,!0)+'">'+(t?e:P(e,!0))+`</code></pre>
`:"<pre><code>"+(t?e:P(e,!0))+"</code></pre>"};U.prototype.blockquote=function(e){return`<blockquote>
`+e+`</blockquote>
`};U.prototype.html=function(e){return e};U.prototype.heading=function(e,s,t,i){return this.options.headerIds?"<h"+s+' id="'+this.options.headerPrefix+i.slug(t)+'">'+e+"</h"+s+`>
`:"<h"+s+">"+e+"</h"+s+`>
`};U.prototype.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`};U.prototype.list=function(e,s,t){var i=s?"ol":"ul",n=s&&t!==1?' start="'+t+'"':"";return"<"+i+n+`>
`+e+"</"+i+`>
`};U.prototype.listitem=function(e){const s=/\<input.+\>/;let t="";return s.test(e)&&(t="list-item-checkbox",/checked/.test(e)&&(t+=" list-item-checkbox-checked")),`<li class="${t} ">${e}</li>
`};U.prototype.checkbox=function(e){return"<input "+(e?"checked ":"")+'disabled type="checkbox"'+(this.options.xhtml?" /":"")+"> "};U.prototype.paragraph=function(e){return"<p>"+e+`</p>
`};U.prototype.table=function(e,s){return s&&(s="<tbody>"+s+"</tbody>"),`<table>
<thead>
`+e+`</thead>
`+s+`</table>
`};U.prototype.tablerow=function(e){return`<tr>
`+e+`</tr>
`};U.prototype.tablecell=function(e,s){var t=s.header?"th":"td",i=s.align?"<"+t+' align="'+s.align+'">':"<"+t+">";return i+e+"</"+t+`>
`};U.prototype.strong=function(e){return"<strong>"+e+"</strong>"};U.prototype.em=function(e){return"<em>"+e+"</em>"};U.prototype.codespan=function(e){return"<code>"+e+"</code>"};U.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"};U.prototype.del=function(e){return"<del>"+e+"</del>"};U.prototype.link=function(e,s,t){if(e=mn(this.options.sanitize,this.options.baseUrl,e),e===null)return t;var i='<a href="'+P(e)+'"';return s&&(i+=' title="'+s+'"'),i+=">"+t+"</a>",i};U.prototype.image=function(e,s,t){if(e=mn(this.options.sanitize,this.options.baseUrl,e),e===null)return t;var i='<img src="'+e+'" alt="'+t+'"';return s&&(i+=' title="'+s+'"'),i+=this.options.xhtml?"/>":">",i};U.prototype.text=function(e){return e};function le(){}le.prototype.strong=le.prototype.em=le.prototype.codespan=le.prototype.del=le.prototype.text=function(e){return e};le.prototype.link=le.prototype.image=function(e,s,t){return""+t};le.prototype.br=function(){return""};function re(e){this.tokens=[],this.token=null,this.options=e||j.defaults,this.options.renderer=this.options.renderer||new U,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new Ht}re.parse=function(e,s){var t=new re(s);return t.parse(e)};re.prototype.parse=function(e){this.inline=new Q(e.links,this.options),this.inlineText=new Q(e.links,oe({},this.options,{renderer:new le})),this.tokens=e.reverse();for(var s="";this.next();)s+=this.tok();return s};re.prototype.next=function(){return this.token=this.tokens.pop(),this.token};re.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0};re.prototype.parseText=function(){for(var e=this.token.text;this.peek().type==="text";)e+=`
`+this.next().text;return this.inline.output(e)};re.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,fn(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{var e="",s="",t,i,n,r;for(n="",t=0;t<this.token.header.length;t++)n+=this.renderer.tablecell(this.inline.output(this.token.header[t]),{header:!0,align:this.token.align[t]});for(e+=this.renderer.tablerow(n),t=0;t<this.token.cells.length;t++){for(i=this.token.cells[t],n="",r=0;r<i.length;r++)n+=this.renderer.tablecell(this.inline.output(i[r]),{header:!1,align:this.token.align[r]});s+=this.renderer.tablerow(n)}return this.renderer.table(e,s)}case"blockquote_start":{for(s="";this.next().type!=="blockquote_end";)s+=this.tok();return this.renderer.blockquote(s)}case"list_start":{s="";for(var o=this.token.ordered,a=this.token.start;this.next().type!=="list_end";)s+=this.tok();return this.renderer.list(s,o,a)}case"list_item_start":{s="";var l=this.token.loose,c=this.token.checked,d=this.token.task;for(this.token.task&&(s+=this.renderer.checkbox(c));this.next().type!=="list_item_end";)s+=!l&&this.token.type==="text"?this.parseText():this.tok();return this.renderer.listitem(s,d,c)}case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:{var h='Token with "'+this.token.type+'" type was not found.';if(this.options.silent)console.log(h);else throw new Error(h)}}};function Ht(){this.seen={}}Ht.prototype.slug=function(e){var s=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(s)){var t=s;do this.seen[t]++,s=t+"-"+this.seen[t];while(this.seen.hasOwnProperty(s))}return this.seen[s]=0,s};function P(e,s){if(s){if(P.escapeTest.test(e))return e.replace(P.escapeReplace,function(t){return P.replacements[t]})}else if(P.escapeTestNoEncode.test(e))return e.replace(P.escapeReplaceNoEncode,function(t){return P.replacements[t]});return e}P.escapeTest=/[&<>"']/;P.escapeReplace=/[&<>"']/g;P.replacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};P.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/;P.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;function fn(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,function(s,t){return t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function V(e,s){return e=e.source||e,s=s||"",{replace:function(t,i){return i=i.source||i,i=i.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,i),this},getRegex:function(){return new RegExp(e,s)}}}function mn(e,s,t){if(e){try{var i=decodeURIComponent(fn(t)).replace(/[^\w:]/g,"").toLowerCase()}catch{return null}if(i.indexOf("javascript:")===0||i.indexOf("vbscript:")===0||i.indexOf("data:")===0)return null}s&&!Xd.test(t)&&(t=Qd(s,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}function Qd(e,s){return Ze[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?Ze[" "+e]=e+"/":Ze[" "+e]=gn(e,"/",!0)),e=Ze[" "+e],s.slice(0,2)==="//"?e.replace(/:[\s\S]*/,":")+s:s.charAt(0)==="/"?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+s:e+s}var Ze={},Xd=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Ce(){}Ce.exec=Ce;function oe(e){for(var s=1,t,i;s<arguments.length;s++){t=arguments[s];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}function et(e,s){var t=e.replace(/\|/g,function(r,o,a){for(var l=!1,c=o;--c>=0&&a[c]==="\\";)l=!l;return l?"|":" |"}),i=t.split(/ \|/),n=0;if(i.length>s)i.splice(s);else for(;i.length<s;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(/\\\|/g,"|");return i}function gn(e,s,t){if(e.length===0)return"";for(var i=0;i<e.length;){var n=e.charAt(e.length-i-1);if(n===s&&!t)i++;else if(n!==s&&t)i++;else break}return e.substr(0,e.length-i)}function Zd(e,s){if(e.indexOf(s[1])===-1)return-1;for(var t=0,i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===s[0])t++;else if(e[i]===s[1]&&(t--,t<0))return i;return-1}function ci(e){e&&e.sanitize&&!e.silent&&console.warn("index(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function j(e,s,t){if(typeof e=="undefined"||e===null)throw new Error("index(): input parameter is undefined or null");if(typeof e!="string")throw new Error("index(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(t||typeof s=="function"){t||(t=s,s=null),s=oe({},j.defaults,s||{}),ci(s);var i=s.highlight,n,r,o=0;try{n=_e.lex(e,s)}catch(l){return t(l)}r=n.length;var a=function(l){if(l)return s.highlight=i,t(l);var c;try{c=re.parse(n,s)}catch(d){l=d}return s.highlight=i,l?t(l):t(null,c)};if(!i||i.length<3||(delete s.highlight,!r))return a();for(;o<n.length;o++)(function(l){return l.type!=="code"?--r||a():i(l.text,l.lang,function(c,d){if(c)return a(c);if(d==null||d===l.text)return--r||a();l.text=d,l.escaped=!0,--r||a()})})(n[o]);return}try{return s&&(s=oe({},j.defaults,s)),ci(s),re.parse(_e.lex(e,s),s)}catch(l){if(l.message+=`
Please report this to https://github.com/markedjs/marked.`,(s||j.defaults).silent)return"<p>An error occurred:</p><pre>"+P(l.message+"",!0)+"</pre>";throw l}}j.options=j.setOptions=function(e){return oe(j.defaults,e),j};j.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new U,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}};j.defaults=j.getDefaults();j.Parser=re;j.parser=re.parse;j.Renderer=U;j.TextRenderer=le;j.Lexer=_e;j.lexer=_e.lex;j.InlineLexer=Q;j.inlineLexer=Q.output;j.Slugger=Ht;j.parse=j;const eh=new j.Renderer;var th=j.setOptions({renderer:eh,gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0}),sh=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"vmpreview-nostyle",domProps:{innerHTML:e._s(e.html)}})},ih=[];const nh={name:"VMPreviewNostyle",props:{value:{default:""}},data(){return{html:""}},mounted(){this.translateMarkdown()},methods:{translateMarkdown(){this.html=th(this.value,{sanitize:!1}).replace(/href="/gi,'target="_blank" href="')}},watch:{value(){this.translateMarkdown()}}},ui={};var rh=A(nh,sh,ih,!1,oh,null,null,null);function oh(e){for(let s in ui)this[s]=ui[s]}var ah=function(){return rh.exports}(),lh=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"project-invite-warp"},[t("Modal",{attrs:{title:e.$L("\u52A0\u5165\u9879\u76EE"),"mask-closable":!1},model:{value:e.show,callback:function(i){e.show=i},expression:"show"}},[e.loadIng>0?t("div",{staticClass:"invite-load"},[t("Loading",{staticClass:"invite-load-icon"})],1):e.project.id>0?t("div",{staticClass:"invite-content"},[t("p",{staticClass:"invite-title",attrs:{slot:"title"},domProps:{innerHTML:e._s(e.transformEmojiToHtml(e.project.name))},slot:"title"}),e.project.desc?t("div",{staticClass:"invite-desc user-select-auto"},[t("VMPreviewNostyle",{attrs:{value:e.project.desc}})],1):t("div",[e._v(e._s(e.$L("\u6682\u65E0\u4ECB\u7ECD")))])]):t("div",[t("p",[e._v(e._s(e.$L("\u9080\u8BF7\u5730\u5740\u4E0D\u5B58\u5728\u6216\u5DF2\u88AB\u5220\u9664\uFF01")))])]),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e.already?[e.project.id>0?t("Button",{attrs:{type:"default"},on:{click:function(i){e.show=!1}}},[e._v(e._s(e.$L("\u5173\u95ED")))]):e._e(),e.already?t("Button",{attrs:{type:"success",icon:"md-checkmark-circle-outline"},on:{click:e.goProject}},[e._v(e._s(e.$L("\u5DF2\u52A0\u5165")))]):e._e()]:e.project.id>0?[e.project.id>0?t("Button",{attrs:{disabled:e.joinLoad>0,type:"default"},on:{click:function(i){e.show=!1}}},[e._v(e._s(e.$L("\u53D6\u6D88")))]):e._e(),t("Button",{attrs:{type:"primary",loading:e.joinLoad>0},on:{click:e.joinProject}},[e._v(e._s(e.$L("\u52A0\u5165\u9879\u76EE")))])]:[t("Button",{attrs:{type:"default"},on:{click:function(i){e.show=!1}}},[e._v(e._s(e.$L("\u5173\u95ED")))])]],2)])],1)},ch=[];const uh={name:"ProjectInvite",components:{VMPreviewNostyle:ah},data(){return{show:!1,code:"",loadIng:0,joinLoad:0,already:!1,project:{}}},mounted(){T.on("openProjectInvite",this.open)},beforeDestroy(){T.off("openProjectInvite",this.open)},methods:{transformEmojiToHtml:mt,open(e){this.code=e,this.show=!0,this.getData()},getData(){this.loadIng++,this.already=!1,this.project={},this.$store.dispatch("call",{url:"project/invite/info",data:{code:this.code}}).then(({data:e})=>{this.already=e.already,this.project=e.project}).catch(()=>{this.project={}}).finally(e=>{this.loadIng--})},joinProject(){this.joinLoad++,this.$store.dispatch("call",{url:"project/invite/join",data:{code:this.code}}).then(({data:e})=>{this.already=e.already,this.project=e.project,this.goProject()}).catch(({msg:e})=>{$A.modalError(e)}).finally(e=>{this.joinLoad--})},goProject(){this.show=!1,this.$nextTick(()=>{$A.goForward({name:"manage-project",params:{projectId:this.project.id}})})}}},di={};var dh=A(uh,lh,ch,!1,hh,"6b7b835e",null,null);function hh(e){for(let s in di)this[s]=di[s]}var ph=function(){return dh.exports}(),fh=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.show&&e.userid>0?t("transition",{attrs:{name:"mobile-notify"}},[t("div",{staticClass:"mobile-notification",class:{show:e.show},style:e.notifyStyle,on:{click:function(i){return i.stopPropagation(),e.onClick.apply(null,arguments)},touchstart:e.onTouchstart,touchmove:e.onTouchmove}},[t("UserAvatar",{attrs:{userid:e.userid,size:40,"show-name":"","name-text":e.title}}),t("div",{staticClass:"notification-desc no-dark-content"},[e._v(e._s(e.desc))])],1)]):e._e()},mh=[];const gh={name:"MobileNotification",data(){return{userid:0,title:"",desc:"",duration:6e3,callback:null,show:!1,timer:null,startY:0}},mounted(){T.on("openMobileNotification",this.open)},beforeDestroy(){T.off("openMobileNotification",this.open),this.timer&&clearTimeout(this.timer),this.show=!1},computed:{...z(["safeAreaSize"]),notifyStyle({windowScrollY:e,safeAreaSize:s}){return{marginTop:e+s.top+"px"}}},methods:{open(e){!$A.isJson(e)||(this.userid=e.userid||0,this.title=e.title||"",this.desc=e.desc||"",this.duration=typeof e.duration=="number"?e.duration:6e3,this.callback=typeof e.callback=="function"?e.callback:null,this.show=!0,this.timer&&clearTimeout(this.timer),this.duration>0&&(this.timer=setTimeout(this.close,this.duration)),$A.eeuiAppSendMessage({action:"setVibrate"}))},close(){this.show=!1},onClick(){this.close(),typeof this.callback=="function"&&this.callback()},onTouchstart(e){this.startY=e.touches[0].clientY},onTouchmove(e){this.startY>0&&this.startY-e.touches[0].clientY>10&&(this.startY=0,this.close())}}},hi={};var _h=A(gh,fh,mh,!1,vh,null,null,null);function vh(e){for(let s in hi)this[s]=hi[s]}var yh=function(){return _h.exports}(),wh=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"mobile-back"},[e.isVisible&&e.x>20?t("div",{staticClass:"back-semicircle",style:e.style}):e._e()])},$h=[];const kh={name:"MobileBack",data(){return{x:0,y:0,isVisible:!1,isTouched:!1,isScrolling:void 0,touchesStart:{}}},created(){this.appAndroidEvents()},mounted(){document.addEventListener("touchstart",this.touchstart),document.addEventListener("touchmove",this.touchmove,{passive:!1}),document.addEventListener("touchend",this.touchend)},beforeDestroy(){document.removeEventListener("touchstart",this.touchstart),document.removeEventListener("touchmove",this.touchmove),document.removeEventListener("touchend",this.touchend)},computed:{...z(["fileLists","messengerSearchKey","mobileTabbar"]),style(){const s=Math.max(135,this.y)+this.windowScrollY,t=this.windowHeight-135;return{top:Math.min(s,t)+"px"}},fileFolderId(){const{folderId:e}=this.$route.params;return parseInt(/^\d+$/.test(e)?e:0)}},watch:{isVisible(e){this.$store.state.touchBackInProgress=e}},methods:{getXY(e){const s=e.touches[0];this.x=s.clientX,this.y=s.clientY},touchstart(e){this.getXY(e),this.isTouched=this.canBack()&&this.x<20,this.isScrolling=void 0,this.touchesStart.x=e.type==="touchstart"?e.targetTouches[0].pageX:e.pageX,this.touchesStart.y=e.type==="touchstart"?e.targetTouches[0].pageY:e.pageY},touchmove(e){if(!this.isTouched)return;const s=e.type==="touchmove"?e.targetTouches[0].pageX:e.pageX,t=e.type==="touchmove"?e.targetTouches[0].pageY:e.pageY;if(typeof this.isScrolling=="undefined"){const i=Math.abs(t-this.touchesStart.y),n=Math.abs(s-this.touchesStart.x)*1.5;this.isScrolling=i>n}if(this.isScrolling){this.isTouched=!1;return}this.isVisible=!0,this.getXY(e),e.preventDefault()},touchend(){this.x>90&&this.isVisible&&this.onBack(),this.x=0,this.isVisible=!1},canBack(){if(!this.mobileTabbar||this.$Modal.visibleList().length>0||this.fileFolderId>0)return!0;if(this.routeName==="manage-messenger"){if(this.$route.params.dialogAction==="contacts"){if(this.messengerSearchKey.contacts)return!0}else if(this.messengerSearchKey.dialog)return!0}return!1},onBack(){if(this.$store.commit("menu/operation",{}),!this.$Modal.removeLast()){if(this.routeName==="manage-file"){if(this.fileFolderId>0){const e=this.fileLists.find(({id:s,permission:t})=>s==this.fileFolderId&&t>-1);if(e){const s=this.fileLists.find(({id:t,permission:i})=>t==e.pid&&i>-1);if(s){this.goForward({name:"manage-file",params:{folderId:s.id,fileId:null}});return}}this.goForward({name:"manage-file"});return}this.goForward({name:"manage-application"},!0);return}if(this.routeName==="manage-messenger"){if(this.$route.params.dialogAction==="contacts"){if(this.messengerSearchKey.contacts){this.$store.state.messengerSearchKey.contacts="";return}}else if(this.messengerSearchKey.dialog){this.$store.state.messengerSearchKey.dialog="";return}}this.goBack()}},appAndroidEvents(){this.$isEEUIApp&&$A.isAndroid()&&$A.eeuiAppSetPageBackPressed({pageName:"firstPage"},e=>{this.canBack()?this.onBack():$A.eeuiAppGoDesktop()})}}},pi={};var bh=A(kh,wh,$h,!1,Ah,null,null,null);function Ah(e){for(let s in pi)this[s]=pi[s]}var Ch=function(){return bh.exports}(),Sh=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("EDropdown",{ref:"dropdown",staticClass:"general-operation-dropdown",style:e.styles,attrs:{trigger:"click",placement:"bottom",size:e.size},on:{command:e.onCommand,"visible-change":e.visibleChange}},[t("div",{ref:"icon",staticClass:"general-operation-icon"}),t("EDropdownMenu",{ref:"dropdownMenu",staticClass:"general-operation-more-dropdown menu-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[t("li",{staticClass:"general-operation-more-warp",class:e.size},[t("ul",{style:e.ulStyle},e._l(e.list,function(i,n){return t("EDropdownItem",{key:n,attrs:{command:i.value,divided:!!i.divided,disabled:e.active===i.value&&!e.activeClick||!!i.disabled}},[t("div",{staticClass:"item-box",class:i.className,style:i.style},[t("div",{staticClass:"item"},[i.prefix?t("div",{staticClass:"item-prefix",domProps:{innerHTML:e._s(i.prefix)}}):e._e(),t("div",{staticClass:"item-label"},[e._v(e._s(e.language?e.$L(i.label):i.label))])]),e.tickShow?t("div",{staticClass:"tick"},[e.active===i.value&&!i.disabled?t("i",{staticClass:"taskfont"},[e._v("\uE684")]):e._e()]):e._e()])])}),1)])])],1)},xh=[];const Th={data(){return{visible:!1,list:[],size:"small",active:"",activeClick:!1,onVisibleChange:null,onUpdate:null,scrollHide:!0,tickShow:!0,maxHeight:0,language:!0,scrollTarget:null,menuTarget:null,styles:{}}},beforeDestroy(){this.removeEventListeners()},computed:{...z(["menuOperation"]),ulStyle({maxHeight:e}){return e>0?{maxHeight:`${e}px`}:{}}},watch:{menuOperation(e){if(e.event&&e.list){if(this.$refs.dropdown.visible&&this.menuTarget===e.event.target){this.hide();return}const s=e.event.target.getBoundingClientRect();this.styles={left:`${s.left}px`,top:`${s.top+this.windowScrollY}px`,width:`${s.width}px`,height:`${s.height}px`},this.list=e.list,this.size=["small","medium","large"].includes(e.size)?e.size:"small",this.active=e.active&&this.list.find(t=>t.value===e.active)?e.active:"",this.activeClick=typeof e.activeClick=="boolean"?e.activeClick:!1,this.onVisibleChange=typeof e.onVisibleChange=="function"?e.onVisibleChange:null,this.onUpdate=typeof e.onUpdate=="function"?e.onUpdate:null,this.scrollHide=typeof e.scrollHide=="boolean"?e.scrollHide:!0,this.tickShow=typeof e.tickShow=="boolean"?e.tickShow:typeof e.active!="undefined",this.maxHeight=typeof e.maxHeight=="number"?e.maxHeight:0,this.language=typeof e.language=="boolean"?e.language:!0,this.$refs.icon.focus(),this.show(),this.updatePopper(),this.setupEventListeners(e.event)}else this.hide()},windowScrollY(){if(!this.visible||!this.menuTarget)return;const e=this.menuTarget.getBoundingClientRect();this.styles={left:`${e.left}px`,top:`${e.top+this.windowScrollY}px`,width:`${e.width}px`,height:`${e.height}px`},this.updatePopper()},visible(e){e||this.removeEventListeners(),typeof this.onVisibleChange=="function"&&this.onVisibleChange(e)}},methods:{show(){this.$refs.dropdown.show()},hide(){this.$refs.dropdown.hide()},onCommand(e){this.hide(),typeof this.onUpdate=="function"&&this.onUpdate(e)},visibleChange(e){this.visible=e},updatePopper(){setTimeout(()=>{this.$refs.dropdownMenu.updatePopper()},0)},setupEventListeners(e){this.menuTarget=e.target;let s=this.getScrollParent(this.menuTarget);if((s===window.document.body||s===window.document.documentElement)&&(s=window),this.scrollTarget){if(this.scrollTarget===s)return;this.scrollTarget.removeEventListener("scroll",this.handlerEventListeners)}this.scrollTarget=s,this.scrollTarget.addEventListener("scroll",this.handlerEventListeners)},removeEventListeners(){this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.handlerEventListeners),this.scrollTarget=null)},handlerEventListeners(e){if(!this.visible||!this.menuTarget)return;if(this.scrollHide){this.hide();return}const s=e.target.getBoundingClientRect(),t=this.menuTarget.getBoundingClientRect();if(t.top<s.top||t.top>s.top+s.height){this.hide();return}this.styles={left:`${t.left}px`,top:`${t.top+this.windowScrollY}px`,width:`${t.width}px`,height:`${t.height}px`},this.updatePopper()},getScrollParent(e){const s=e.parentNode;return s?s===window.document?window.document.body.scrollTop||window.document.body.scrollLeft?window.document.body:window.document.documentElement:["scroll","auto"].indexOf(this.getStyleComputedProperty(s,"overflow"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(s,"overflow-x"))!==-1||["scroll","auto"].indexOf(this.getStyleComputedProperty(s,"overflow-y"))!==-1?s:this.getScrollParent(e.parentNode):e},getStyleComputedProperty(e,s){return!e||!(e instanceof HTMLElement)?null:window.getComputedStyle(e,null)[s]}}},fi={};var Ih=A(Th,Sh,xh,!1,Dh,null,null,null);function Dh(e){for(let s in fi)this[s]=fi[s]}var Eh=function(){return Ih.exports}();const Lh={data(){return{isCtrlCommandPressed:!1}},created(){this.handlePointerdown=this.handlePointerdown.bind(this),this.handlePointerup=this.handlePointerup.bind(this)},mounted(){document.addEventListener("pointerdown",this.handlePointerdown),document.addEventListener("pointerup",this.handlePointerup)},beforeDestroy(){document.removeEventListener("pointerdown",this.handlePointerdown),document.removeEventListener("pointerup",this.handlePointerup)},methods:{handlePointerdown(e){(e.ctrlKey||e.metaKey)&&(this.isCtrlCommandPressed=!0)},handlePointerup(e){!e.ctrlKey&&!e.metaKey&&(this.isCtrlCommandPressed=!1)}}};function Mh(e,s,t){$A.isJson(s)||(s={});const i=e+"::"+encodeURIComponent(new URLSearchParams($A.sortObject(s,["page","pagesize","timerange"])).toString()),n=t.callAt.find(r=>r.key===i)||{};return n.__last=$A.dayjs().unix(),typeof n.key=="undefined"&&(n.key=i,n.updated=0,n.deleted=0,t.callAt.push(n),$A.IDBSet("callAt",t.callAt).catch(r=>{})),this.get=()=>(s.timerange=s.timerange||`${n.updated||0},${n.deleted||0}`,s),this.save=({total:r,current_page:o,deleted_id:a})=>new Promise(async l=>{if(o!==1)return;let c=!1;const d=n.__last||$A.dayjs().unix();r>0&&(n.updated=d,c=!0),$A.isArray(a)&&a.length>0?(n.deleted=d,c=!0):a=[],$A.isEEUIApp&&(c=t.isFirstPage),c&&($A.isSubElectron||$A.isEEUIApp&&!t.isFirstPage||await $A.IDBSet("callAt",t.callAt)),l(a)}),this}function kt(e,s,t){return new Mh(e,s,t)}function Ph(e,s=!0){return e&&(s?e=String(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/\n/g,"$"):e=String(e).replace(/\-/g,"+").replace(/\_/g,"/").replace(/\$/g,`
`)),e}const jh={retry:5,interval:3*1e3};class _n{constructor(s,t=jh){this.url=s,this.es=null,this.options=t,this.retry=t.retry,this.timer=null}_onOpen(){window.systemInfo.debug==="yes"&&console.log("SSE open: "+this.url)}_onMessage(s,t){return i=>{this.retry=this.options.retry,typeof t=="function"&&t(s,i)}}_onError(s,t,i){return()=>{window.systemInfo.debug==="yes"&&console.log("SSE retry: "+this.url),this.es&&(this._removeAllEvent(s,t,i),this.unsunscribe()),this.retry>0?(this.retry--,this.timer=setTimeout(()=>{this.subscribe(s,t,i)},this.options.interval)):typeof i=="function"&&i()}}_removeAllEvent(s,t,i){s=$A.isArray(s)?s:[s],this.es.removeEventListener("open",this._onOpen),s.some(n=>{this.es.removeEventListener(n,this._onMessage(n,t))}),this.es.removeEventListener("error",this._onError(s,t,i))}subscribe(s,t,i){s=$A.isArray(s)?s:[s],this.es=new EventSource(this.url),this.es.addEventListener("open",this._onOpen),s.some(n=>{this.es.addEventListener(n,this._onMessage(n,t))}),this.es.addEventListener("error",this._onError(s,t,i))}unsunscribe(){this.es&&(this.es.close(),this.es=null),this.timer&&clearTimeout(this.timer),window.systemInfo.debug==="yes"&&console.log("SSE cancel: "+this.url)}}function Rh(e,s){if(e.role!==s.role||e.name!==s.name||!Oh(e,s)||dt(e)!==dt(s))return!1;const t=Object.keys(e.props),i=Object.keys(s.props);return t.length===i.length&&t.every(n=>e.props[n]===s.props[n])}function dt(e){return e.box.cursor==="pointer"}function Oh(e,s){return e.active===s.active&&e.checked===s.checked&&e.disabled===s.disabled&&e.expanded===s.expanded&&e.invalid===s.invalid&&e.selected===s.selected&&e.level===s.level&&e.pressed===s.pressed}var Te;function vn(e){let s=Te==null?void 0:Te.get(e);return s===void 0&&(s=e.replace(/[\u200b\u00ad]/g,"").trim().replace(/\s+/g," "),Te==null||Te.set(e,s)),s}function mi(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function zh(e,s){const t=e.length,i=s.length;let n=0,r=0;const o=Array(t+1).fill(null).map(()=>Array(i+1).fill(0));for(let a=1;a<=t;a++)for(let l=1;l<=i;l++)e[a-1]===s[l-1]&&(o[a][l]=o[a-1][l-1]+1,o[a][l]>n&&(n=o[a][l],r=a));return e.slice(r-n,r)}function Uh(e){return yn(e)?"'"+e.replace(/'/g,"''")+"'":e}function bt(e){return yn(e)?'"'+e.replace(/[\\"\x00-\x1f\x7f-\x9f]/g,s=>{switch(s){case"\\":return"\\\\";case'"':return'\\"';case"\b":return"\\b";case"\f":return"\\f";case`
`:return"\\n";case"\r":return"\\r";case" ":return"\\t";default:const t=s.charCodeAt(0);return"\\x"+t.toString(16).padStart(2,"0")}})+'"':e}function yn(e){return!!(e.length===0||/^\s|\s$/.test(e)||/[\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\x9f]/.test(e)||/^-/.test(e)||/[\n:](\s|$)/.test(e)||/\s#/.test(e)||/[\n\r]/.test(e)||/^[&*\],?!>|@"'#%]/.test(e)||/[{}`]/.test(e)||/^\[/.test(e)||!isNaN(Number(e))||["y","n","yes","no","true","false","on","off","null"].includes(e.toLowerCase()))}var Nh={};function Je(e){if(e.parentElement)return e.parentElement;if(!!e.parentNode&&e.parentNode.nodeType===11&&e.parentNode.host)return e.parentNode.host}function Bh(e){let s=e;for(;s.parentNode;)s=s.parentNode;if(s.nodeType===11||s.nodeType===9)return s}function Fh(e){for(;e.parentElement;)e=e.parentElement;return Je(e)}function tt(e,s,t){for(;e;){const i=e.closest(s);if(t&&i!==t&&(i==null?void 0:i.contains(t)))return;if(i)return i;e=Fh(e)}}function ye(e,s){const t=s==="::before"?Be:s==="::after"?Fe:Ne;if(t&&t.has(e))return t.get(e);const i=e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,s):void 0;return t==null||t.set(e,i),i}function wn(e,s){if(s=s!=null?s:ye(e),!s)return!0;if(Element.prototype.checkVisibility&&Nh.browserNameForWorkarounds!=="webkit"){if(!e.checkVisibility())return!1}else{const t=e.closest("details,summary");if(t!==e&&(t==null?void 0:t.nodeName)==="DETAILS"&&!t.open)return!1}return s.visibility==="visible"}function ht(e){const s=ye(e);if(!s)return{visible:!0,inline:!1};const t=s.cursor;if(s.display==="contents"){for(let n=e.firstChild;n;n=n.nextSibling){if(n.nodeType===1&&jt(n))return{visible:!0,inline:!1,cursor:t};if(n.nodeType===3&&$n(n))return{visible:!0,inline:!0,cursor:t}}return{visible:!1,inline:!1,cursor:t}}if(!wn(e,s))return{cursor:t,visible:!1,inline:!1};const i=e.getBoundingClientRect();return{cursor:t,visible:i.width>0&&i.height>0,inline:s.display==="inline"}}function jt(e){return ht(e).visible}function $n(e){const s=e.ownerDocument.createRange();s.selectNode(e);const t=s.getBoundingClientRect();return t.width>0&&t.height>0}function H(e){const s=e.tagName;return typeof s=="string"?s.toUpperCase():e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}var Ne,Be,Fe,kn=0;function Hh(){++kn,Ne!=null||(Ne=new Map),Be!=null||(Be=new Map),Fe!=null||(Fe=new Map)}function Wh(){--kn||(Ne=void 0,Be=void 0,Fe=void 0)}var F=function(e,s,t){return e>=s&&e<=t};function Z(e){return F(e,48,57)}function gi(e){return Z(e)||F(e,65,70)||F(e,97,102)}function Vh(e){return F(e,65,90)}function Yh(e){return F(e,97,122)}function qh(e){return Vh(e)||Yh(e)}function Kh(e){return e>=128}function at(e){return qh(e)||Kh(e)||e===95}function _i(e){return at(e)||Z(e)||e===45}function Gh(e){return F(e,0,8)||e===11||F(e,14,31)||e===127}function lt(e){return e===10}function ue(e){return lt(e)||e===9||e===32}var Jh=1114111,Wt=class extends Error{constructor(e){super(e),this.name="InvalidCharacterError"}};function Qh(e){const s=[];for(let t=0;t<e.length;t++){let i=e.charCodeAt(t);if(i===13&&e.charCodeAt(t+1)===10&&(i=10,t++),(i===13||i===12)&&(i=10),i===0&&(i=65533),F(i,55296,56319)&&F(e.charCodeAt(t+1),56320,57343)){const n=i-55296,r=e.charCodeAt(t+1)-56320;i=Math.pow(2,16)+n*Math.pow(2,10)+r,t++}s.push(i)}return s}function W(e){if(e<=65535)return String.fromCharCode(e);e-=Math.pow(2,16);const s=Math.floor(e/Math.pow(2,10))+55296,t=e%Math.pow(2,10)+56320;return String.fromCharCode(s)+String.fromCharCode(t)}function Xh(e){const s=Qh(e);let t=-1;const i=[];let n;const r=function(k){return k>=s.length?-1:s[k]},o=function(k){if(k===void 0&&(k=1),k>3)throw"Spec Error: no more than three codepoints of lookahead.";return r(t+k)},a=function(k){return k===void 0&&(k=1),t+=k,n=r(t),!0},l=function(){return t-=1,!0},c=function(k){return k===void 0&&(k=n),k===-1},d=function(){if(h(),a(),ue(n)){for(;ue(o());)a();return new bn}else{if(n===34)return g();if(n===35)if(_i(o())||y(o(1),o(2))){const k=new vp("");return b(o(1),o(2),o(3))&&(k.type="id"),k.value=K(),k}else return new X(n);else return n===36?o()===61?(a(),new pp):new X(n):n===39?g():n===40?new cp:n===41?new An:n===42?o()===61?(a(),new fp):new X(n):n===43?O()?(l(),u()):new X(n):n===44?new np:n===45?O()?(l(),u()):o(1)===45&&o(2)===62?(a(2),new tp):C()?(l(),p()):new X(n):n===46?O()?(l(),u()):new X(n):n===58?new sp:n===59?new ip:n===60?o(1)===33&&o(2)===45&&o(3)===45?(a(3),new ep):new X(n):n===64?b(o(1),o(2),o(3))?new _p(K()):new X(n):n===91?new ap:n===92?w()?(l(),p()):new X(n):n===93?new lp:n===94?o()===61?(a(),new hp):new X(n):n===123?new rp:n===124?o()===61?(a(),new dp):o()===124?(a(),new mp):new X(n):n===125?new op:n===126?o()===61?(a(),new up):new X(n):Z(n)?(l(),u()):at(n)?(l(),p()):c()?new gp:new X(n)}},h=function(){for(;o(1)===47&&o(2)===42;)for(a(2);;)if(a(),n===42&&o()===47){a();break}else if(c())return},u=function(){const k=Y();if(b(o(1),o(2),o(3))){const L=new kp;return L.value=k.value,L.repr=k.repr,L.type=k.type,L.unit=K(),L}else if(o()===37){a();const L=new $p;return L.value=k.value,L.repr=k.repr,L}else{const L=new wp;return L.value=k.value,L.repr=k.repr,L.type=k.type,L}},p=function(){const k=K();if(k.toLowerCase()==="url"&&o()===40){for(a();ue(o(1))&&ue(o(2));)a();return o()===34||o()===39?new ct(k):ue(o())&&(o(2)===34||o(2)===39)?new ct(k):_()}else return o()===40?(a(),new ct(k)):new Cn(k)},g=function(k){k===void 0&&(k=n);let L="";for(;a();){if(n===k||c())return new Sn(L);if(lt(n))return l(),new Zh;n===92?c(o())||(lt(o())?a():L+=W(v())):L+=W(n)}throw new Error("Internal error")},_=function(){const k=new yp("");for(;ue(o());)a();if(c(o()))return k;for(;a();){if(n===41||c())return k;if(ue(n)){for(;ue(o());)a();return o()===41||c(o())?(a(),k):(vt(),new At)}else{if(n===34||n===39||n===40||Gh(n))return vt(),new At;if(n===92)if(w())k.value+=W(v());else return vt(),new At;else k.value+=W(n)}}throw new Error("Internal error")},v=function(){if(a(),gi(n)){const k=[n];for(let se=0;se<5&&gi(o());se++)a(),k.push(n);ue(o())&&a();let L=parseInt(k.map(function(se){return String.fromCharCode(se)}).join(""),16);return L>Jh&&(L=65533),L}else return c()?65533:n},y=function(k,L){return!(k!==92||lt(L))},w=function(){return y(n,o())},b=function(k,L,se){return k===45?at(L)||L===45||y(L,se):at(k)?!0:k===92?y(k,L):!1},C=function(){return b(n,o(1),o(2))},N=function(k,L,se){return k===43||k===45?!!(Z(L)||L===46&&Z(se)):k===46?!!Z(L):!!Z(k)},O=function(){return N(n,o(1),o(2))},K=function(){let k="";for(;a();)if(_i(n))k+=W(n);else if(w())k+=W(v());else return l(),k;throw new Error("Internal parse error")},Y=function(){let k="",L="integer";for((o()===43||o()===45)&&(a(),k+=W(n));Z(o());)a(),k+=W(n);if(o(1)===46&&Z(o(2)))for(a(),k+=W(n),a(),k+=W(n),L="number";Z(o());)a(),k+=W(n);const se=o(1),yt=o(2),Jn=o(3);if((se===69||se===101)&&Z(yt))for(a(),k+=W(n),a(),k+=W(n),L="number";Z(o());)a(),k+=W(n);else if((se===69||se===101)&&(yt===43||yt===45)&&Z(Jn))for(a(),k+=W(n),a(),k+=W(n),a(),k+=W(n),L="number";Z(o());)a(),k+=W(n);const Qn=je(k);return{type:L,value:Qn,repr:k}},je=function(k){return+k},vt=function(){for(;a();){if(n===41||c())return;w()&&v()}};let Jt=0;for(;!c(o());)if(i.push(d()),Jt++,Jt>s.length*2)throw new Error("I'm infinite-looping!");return i}var B=class{constructor(){S(this,"tokenType","");S(this,"value")}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}},Zh=class extends B{constructor(){super(...arguments);S(this,"tokenType","BADSTRING")}},At=class extends B{constructor(){super(...arguments);S(this,"tokenType","BADURL")}},bn=class extends B{constructor(){super(...arguments);S(this,"tokenType","WHITESPACE")}toString(){return"WS"}toSource(){return" "}},ep=class extends B{constructor(){super(...arguments);S(this,"tokenType","CDO")}toSource(){return"<!--"}},tp=class extends B{constructor(){super(...arguments);S(this,"tokenType","CDC")}toSource(){return"-->"}},sp=class extends B{constructor(){super(...arguments);S(this,"tokenType",":")}},ip=class extends B{constructor(){super(...arguments);S(this,"tokenType",";")}},np=class extends B{constructor(){super(...arguments);S(this,"tokenType",",")}},Me=class extends B{constructor(){super(...arguments);S(this,"value","");S(this,"mirror","")}},rp=class extends Me{constructor(){super();S(this,"tokenType","{");this.value="{",this.mirror="}"}},op=class extends Me{constructor(){super();S(this,"tokenType","}");this.value="}",this.mirror="{"}},ap=class extends Me{constructor(){super();S(this,"tokenType","[");this.value="[",this.mirror="]"}},lp=class extends Me{constructor(){super();S(this,"tokenType","]");this.value="]",this.mirror="["}},cp=class extends Me{constructor(){super();S(this,"tokenType","(");this.value="(",this.mirror=")"}},An=class extends Me{constructor(){super();S(this,"tokenType",")");this.value=")",this.mirror="("}},up=class extends B{constructor(){super(...arguments);S(this,"tokenType","~=")}},dp=class extends B{constructor(){super(...arguments);S(this,"tokenType","|=")}},hp=class extends B{constructor(){super(...arguments);S(this,"tokenType","^=")}},pp=class extends B{constructor(){super(...arguments);S(this,"tokenType","$=")}},fp=class extends B{constructor(){super(...arguments);S(this,"tokenType","*=")}},mp=class extends B{constructor(){super(...arguments);S(this,"tokenType","||")}},gp=class extends B{constructor(){super(...arguments);S(this,"tokenType","EOF")}toSource(){return""}},X=class extends B{constructor(s){super();S(this,"tokenType","DELIM");S(this,"value","");this.value=W(s)}toString(){return"DELIM("+this.value+")"}toJSON(){const s=this.constructor.prototype.constructor.prototype.toJSON.call(this);return s.value=this.value,s}toSource(){return this.value==="\\"?`\\
`:this.value}},Pe=class extends B{constructor(){super(...arguments);S(this,"value","")}ASCIIMatch(s){return this.value.toLowerCase()===s.toLowerCase()}toJSON(){const s=this.constructor.prototype.constructor.prototype.toJSON.call(this);return s.value=this.value,s}},Cn=class extends Pe{constructor(s){super();S(this,"tokenType","IDENT");this.value=s}toString(){return"IDENT("+this.value+")"}toSource(){return Qe(this.value)}},ct=class extends Pe{constructor(s){super();S(this,"tokenType","FUNCTION");S(this,"mirror");this.value=s,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return Qe(this.value)+"("}},_p=class extends Pe{constructor(s){super();S(this,"tokenType","AT-KEYWORD");this.value=s}toString(){return"AT("+this.value+")"}toSource(){return"@"+Qe(this.value)}},vp=class extends Pe{constructor(s){super();S(this,"tokenType","HASH");S(this,"type");this.value=s,this.type="unrestricted"}toString(){return"HASH("+this.value+")"}toJSON(){const s=this.constructor.prototype.constructor.prototype.toJSON.call(this);return s.value=this.value,s.type=this.type,s}toSource(){return this.type==="id"?"#"+Qe(this.value):"#"+bp(this.value)}},Sn=class extends Pe{constructor(s){super();S(this,"tokenType","STRING");this.value=s}toString(){return'"'+xn(this.value)+'"'}},yp=class extends Pe{constructor(s){super();S(this,"tokenType","URL");this.value=s}toString(){return"URL("+this.value+")"}toSource(){return'url("'+xn(this.value)+'")'}},wp=class extends B{constructor(){super();S(this,"tokenType","NUMBER");S(this,"type");S(this,"repr");this.type="integer",this.repr=""}toString(){return this.type==="integer"?"INT("+this.value+")":"NUMBER("+this.value+")"}toJSON(){const s=super.toJSON();return s.value=this.value,s.type=this.type,s.repr=this.repr,s}toSource(){return this.repr}},$p=class extends B{constructor(){super();S(this,"tokenType","PERCENTAGE");S(this,"repr");this.repr=""}toString(){return"PERCENTAGE("+this.value+")"}toJSON(){const s=this.constructor.prototype.constructor.prototype.toJSON.call(this);return s.value=this.value,s.repr=this.repr,s}toSource(){return this.repr+"%"}},kp=class extends B{constructor(){super();S(this,"tokenType","DIMENSION");S(this,"type");S(this,"repr");S(this,"unit");this.type="integer",this.repr="",this.unit=""}toString(){return"DIM("+this.value+","+this.unit+")"}toJSON(){const s=this.constructor.prototype.constructor.prototype.toJSON.call(this);return s.value=this.value,s.type=this.type,s.repr=this.repr,s.unit=this.unit,s}toSource(){const s=this.repr;let t=Qe(this.unit);return t[0].toLowerCase()==="e"&&(t[1]==="-"||F(t.charCodeAt(1),48,57))&&(t="\\65 "+t.slice(1,t.length)),s+t}};function Qe(e){e=""+e;let s="";const t=e.charCodeAt(0);for(let i=0;i<e.length;i++){const n=e.charCodeAt(i);if(n===0)throw new Wt("Invalid character: the input contains U+0000.");F(n,1,31)||n===127||i===0&&F(n,48,57)||i===1&&F(n,48,57)&&t===45?s+="\\"+n.toString(16)+" ":n>=128||n===45||n===95||F(n,48,57)||F(n,65,90)||F(n,97,122)?s+=e[i]:s+="\\"+e[i]}return s}function bp(e){e=""+e;let s="";for(let t=0;t<e.length;t++){const i=e.charCodeAt(t);if(i===0)throw new Wt("Invalid character: the input contains U+0000.");i>=128||i===45||i===95||F(i,48,57)||F(i,65,90)||F(i,97,122)?s+=e[t]:s+="\\"+i.toString(16)+" "}return s}function xn(e){e=""+e;let s="";for(let t=0;t<e.length;t++){const i=e.charCodeAt(t);if(i===0)throw new Wt("Invalid character: the input contains U+0000.");F(i,1,31)||i===127?s+="\\"+i.toString(16)+" ":i===34||i===92?s+="\\"+e[t]:s+=e[t]}return s}function vi(e){return e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")}var yi="article:not([role]), aside:not([role]), main:not([role]), nav:not([role]), section:not([role]), [role=article], [role=complementary], [role=main], [role=navigation], [role=region]",Ap=[["aria-atomic",void 0],["aria-busy",void 0],["aria-controls",void 0],["aria-current",void 0],["aria-describedby",void 0],["aria-details",void 0],["aria-dropeffect",void 0],["aria-flowto",void 0],["aria-grabbed",void 0],["aria-hidden",void 0],["aria-keyshortcuts",void 0],["aria-label",["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"]],["aria-labelledby",["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"]],["aria-live",void 0],["aria-owns",void 0],["aria-relevant",void 0],["aria-roledescription",["generic"]]];function Tn(e,s){return Ap.some(([t,i])=>!(i!=null&&i.includes(s||""))&&e.hasAttribute(t))}function In(e){return!Number.isNaN(Number(String(e.getAttribute("tabindex"))))}function Cp(e){return!Nn(e)&&(Sp(e)||In(e))}function Sp(e){const s=H(e);return["BUTTON","DETAILS","SELECT","TEXTAREA"].includes(s)?!0:s==="A"||s==="AREA"?e.hasAttribute("href"):s==="INPUT"?!e.hidden:!1}var Ct={A:e=>e.hasAttribute("href")?"link":null,AREA:e=>e.hasAttribute("href")?"link":null,ARTICLE:()=>"article",ASIDE:()=>"complementary",BLOCKQUOTE:()=>"blockquote",BUTTON:()=>"button",CAPTION:()=>"caption",CODE:()=>"code",DATALIST:()=>"listbox",DD:()=>"definition",DEL:()=>"deletion",DETAILS:()=>"group",DFN:()=>"term",DIALOG:()=>"dialog",DT:()=>"term",EM:()=>"emphasis",FIELDSET:()=>"group",FIGURE:()=>"figure",FOOTER:e=>tt(e,yi)?null:"contentinfo",FORM:e=>vi(e)?"form":null,H1:()=>"heading",H2:()=>"heading",H3:()=>"heading",H4:()=>"heading",H5:()=>"heading",H6:()=>"heading",HEADER:e=>tt(e,yi)?null:"banner",HR:()=>"separator",HTML:()=>"document",IMG:e=>e.getAttribute("alt")===""&&!e.getAttribute("title")&&!Tn(e)&&!In(e)?"presentation":"img",INPUT:e=>{const s=e.type.toLowerCase();if(s==="search")return e.hasAttribute("list")?"combobox":"searchbox";if(["email","tel","text","url",""].includes(s)){const t=gt(e,e.getAttribute("list"))[0];return t&&H(t)==="DATALIST"?"combobox":"textbox"}return s==="hidden"?null:s==="file"?"button":Gp[s]||"textbox"},INS:()=>"insertion",LI:()=>"listitem",MAIN:()=>"main",MARK:()=>"mark",MATH:()=>"math",MENU:()=>"list",METER:()=>"meter",NAV:()=>"navigation",OL:()=>"list",OPTGROUP:()=>"group",OPTION:()=>"option",OUTPUT:()=>"status",P:()=>"paragraph",PROGRESS:()=>"progressbar",SEARCH:()=>"search",SECTION:e=>vi(e)?"region":null,SELECT:e=>e.hasAttribute("multiple")||e.size>1?"listbox":"combobox",STRONG:()=>"strong",SUB:()=>"subscript",SUP:()=>"superscript",SVG:()=>"img",TABLE:()=>"table",TBODY:()=>"rowgroup",TD:e=>{const s=tt(e,"table"),t=s?Vt(s):"";return t==="grid"||t==="treegrid"?"gridcell":"cell"},TEXTAREA:()=>"textbox",TFOOT:()=>"rowgroup",TH:e=>{const s=e.getAttribute("scope");if(s==="col"||s==="colgroup")return"columnheader";if(s==="row"||s==="rowgroup")return"rowheader";const t=e.nextElementSibling,i=e.previousElementSibling,n=!!e.parentElement&&H(e.parentElement)==="TR"?e.parentElement:void 0;if(!t&&!i){if(n){const r=tt(n,"table");if(r&&r.rows.length<=1)return null}return"columnheader"}return wi(t)&&wi(i)?"columnheader":$i(t)||$i(i)?"rowheader":"columnheader"},THEAD:()=>"rowgroup",TIME:()=>"time",TR:()=>"row",UL:()=>"list"};function wi(e){return!!e&&H(e)==="TH"}function $i(e){var s;return!e||H(e)!=="TD"?!1:!!(((s=e.textContent)==null?void 0:s.trim())||e.children.length>0)}var xp={DD:["DL","DIV"],DIV:["DL"],DT:["DL","DIV"],LI:["OL","UL"],TBODY:["TABLE"],TD:["TR"],TFOOT:["TABLE"],TH:["TR"],THEAD:["TABLE"],TR:["THEAD","TBODY","TFOOT","TABLE"]};function ki(e){var i;const s=((i=Ct[H(e)])==null?void 0:i.call(Ct,e))||"";if(!s)return null;let t=e;for(;t;){const n=Je(t),r=xp[H(t)];if(!r||!n||!r.includes(H(n)))break;const o=Vt(n);if((o==="none"||o==="presentation")&&!Dn(n,o))return o;t=n}return s}var Tp=["alert","alertdialog","application","article","banner","blockquote","button","caption","cell","checkbox","code","columnheader","combobox","complementary","contentinfo","definition","deletion","dialog","directory","document","emphasis","feed","figure","form","generic","grid","gridcell","group","heading","img","insertion","link","list","listbox","listitem","log","main","mark","marquee","math","meter","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","paragraph","presentation","progressbar","radio","radiogroup","region","row","rowgroup","rowheader","scrollbar","search","searchbox","separator","slider","spinbutton","status","strong","subscript","superscript","switch","tab","table","tablist","tabpanel","term","textbox","time","timer","toolbar","tooltip","tree","treegrid","treeitem"];function Vt(e){return(e.getAttribute("role")||"").split(" ").map(t=>t.trim()).find(t=>Tp.includes(t))||null}function Dn(e,s){return Tn(e,s)||Cp(e)}function ne(e){const s=Vt(e);if(!s)return ki(e);if(s==="none"||s==="presentation"){const t=ki(e);if(Dn(e,t))return t}return s}function En(e){return e===null?void 0:e.toLowerCase()==="true"}function Ln(e){return["STYLE","SCRIPT","NOSCRIPT","TEMPLATE"].includes(H(e))}function pe(e){if(Ln(e))return!0;const s=ye(e),t=e.nodeName==="SLOT";if((s==null?void 0:s.display)==="contents"&&!t){for(let n=e.firstChild;n;n=n.nextSibling)if(n.nodeType===1&&!pe(n)||n.nodeType===3&&$n(n))return!1;return!0}return!(e.nodeName==="OPTION"&&!!e.closest("select"))&&!t&&!wn(e,s)?!0:Mn(e)}function Mn(e){let s=ae==null?void 0:ae.get(e);if(s===void 0){if(s=!1,e.parentElement&&e.parentElement.shadowRoot&&!e.assignedSlot&&(s=!0),!s){const t=ye(e);s=!t||t.display==="none"||En(e.getAttribute("aria-hidden"))===!0}if(!s){const t=Je(e);t&&(s=Mn(t))}ae==null||ae.set(e,s)}return s}function gt(e,s){if(!s)return[];const t=Bh(e);if(!t)return[];try{const i=s.split(" ").filter(r=>!!r),n=[];for(const r of i){const o=t.querySelector("#"+CSS.escape(r));o&&!n.includes(o)&&n.push(o)}return n}catch{return[]}}function de(e){return e.trim()}function Ip(e){return e.split("\xA0").map(s=>s.replace(/\r\n/g,`
`).replace(/[\u200b\u00ad]/g,"").replace(/\s\s*/g," ")).join("\xA0").trim()}function bi(e,s){const t=[...e.querySelectorAll(s)];for(const i of gt(e,e.getAttribute("aria-owns")))i.matches(s)&&t.push(i),t.push(...i.querySelectorAll(s));return t}function He(e,s){const t=s==="::before"?qe:s==="::after"?Ke:Ye;if(t!=null&&t.has(e))return t==null?void 0:t.get(e);const i=ye(e,s);let n;if(i){const r=i.content;r&&r!=="none"&&r!=="normal"&&i.display!=="none"&&i.visibility!=="hidden"&&(n=Dp(e,r,!!s))}return s&&n!==void 0&&((i==null?void 0:i.display)||"inline")!=="inline"&&(n=" "+n+" "),t&&t.set(e,n),n}function Dp(e,s,t){if(!(!s||s==="none"||s==="normal"))try{let i=Xh(s).filter(a=>!(a instanceof bn));const n=i.findIndex(a=>a instanceof X&&a.value==="/");if(n!==-1)i=i.slice(n+1);else if(!t)return;const r=[];let o=0;for(;o<i.length;)if(i[o]instanceof Sn)r.push(i[o].value),o++;else if(o+2<i.length&&i[o]instanceof ct&&i[o].value==="attr"&&i[o+1]instanceof Cn&&i[o+2]instanceof An){const a=i[o+1].value;r.push(e.getAttribute(a)||""),o+=3}else return;return r.join("")}catch{}}function Ep(e){const s=e.getAttribute("aria-labelledby");if(s===null)return null;const t=gt(e,s);return t.length?t:null}function Lp(e,s){const t=["button","cell","checkbox","columnheader","gridcell","heading","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"].includes(e),i=s&&["","caption","code","contentinfo","definition","deletion","emphasis","insertion","list","listitem","mark","none","paragraph","presentation","region","row","rowgroup","section","strong","subscript","superscript","table","term","time"].includes(e);return t||i}function Mp(e,s){const t=s?Ve:We;let i=t==null?void 0:t.get(e);return i===void 0&&(i="",["caption","code","definition","deletion","emphasis","generic","insertion","mark","paragraph","presentation","strong","subscript","suggestion","superscript","term","time"].includes(ne(e)||"")||(i=Ip(fe(e,{includeHidden:s,visitedElements:new Set,embeddedInTargetElement:"self"}))),t==null||t.set(e,i)),i}var Pp=["application","checkbox","columnheader","combobox","gridcell","listbox","radiogroup","rowheader","searchbox","slider","spinbutton","switch","textbox","tree"];function jp(e){const s=e.getAttribute("aria-invalid");return!s||s.trim()===""||s.toLocaleLowerCase()==="false"?"false":s==="true"||s==="grammar"||s==="spelling"?s:"true"}function fe(e,s){var l,c,d,h;if(s.visitedElements.has(e))return"";const t={...s,embeddedInTargetElement:s.embeddedInTargetElement==="self"?"descendant":s.embeddedInTargetElement};if(!s.includeHidden){const u=!!((l=s.embeddedInLabelledBy)!=null&&l.hidden)||!!((c=s.embeddedInDescribedBy)!=null&&c.hidden)||!!((d=s.embeddedInNativeTextAlternative)!=null&&d.hidden)||!!((h=s.embeddedInLabel)!=null&&h.hidden);if(Ln(e)||!u&&pe(e))return s.visitedElements.add(e),""}const i=Ep(e);if(!s.embeddedInLabelledBy){const u=(i||[]).map(p=>fe(p,{...s,embeddedInLabelledBy:{element:p,hidden:pe(p)},embeddedInDescribedBy:void 0,embeddedInTargetElement:void 0,embeddedInLabel:void 0,embeddedInNativeTextAlternative:void 0})).join(" ");if(u)return u}const n=ne(e)||"",r=H(e);if(!!s.embeddedInLabel||!!s.embeddedInLabelledBy||s.embeddedInTargetElement==="descendant"){const u=[...e.labels||[]].includes(e),p=(i||[]).includes(e);if(!u&&!p){if(n==="textbox")return s.visitedElements.add(e),r==="INPUT"||r==="TEXTAREA"?e.value:e.textContent||"";if(["combobox","listbox"].includes(n)){s.visitedElements.add(e);let g;if(r==="SELECT")g=[...e.selectedOptions],!g.length&&e.options.length&&g.push(e.options[0]);else{const _=n==="combobox"?bi(e,"*").find(v=>ne(v)==="listbox"):e;g=_?bi(_,'[aria-selected="true"]').filter(v=>ne(v)==="option"):[]}return!g.length&&r==="INPUT"?e.value:g.map(_=>fe(_,t)).join(" ")}if(["progressbar","scrollbar","slider","spinbutton","meter"].includes(n))return s.visitedElements.add(e),e.hasAttribute("aria-valuetext")?e.getAttribute("aria-valuetext")||"":e.hasAttribute("aria-valuenow")?e.getAttribute("aria-valuenow")||"":e.getAttribute("value")||"";if(["menu"].includes(n))return s.visitedElements.add(e),""}}const o=e.getAttribute("aria-label")||"";if(de(o))return s.visitedElements.add(e),o;if(!["presentation","none"].includes(n)){if(r==="INPUT"&&["button","submit","reset"].includes(e.type)){s.visitedElements.add(e);const u=e.value||"";return de(u)?u:e.type==="submit"?"Submit":e.type==="reset"?"Reset":e.getAttribute("title")||""}if(r==="INPUT"&&e.type==="file"){s.visitedElements.add(e);const u=e.labels||[];return u.length&&!s.embeddedInLabelledBy?Re(u,s):"Choose File"}if(r==="INPUT"&&e.type==="image"){s.visitedElements.add(e);const u=e.labels||[];if(u.length&&!s.embeddedInLabelledBy)return Re(u,s);const p=e.getAttribute("alt")||"";if(de(p))return p;const g=e.getAttribute("title")||"";return de(g)?g:"Submit"}if(!i&&r==="BUTTON"){s.visitedElements.add(e);const u=e.labels||[];if(u.length)return Re(u,s)}if(!i&&r==="OUTPUT"){s.visitedElements.add(e);const u=e.labels||[];return u.length?Re(u,s):e.getAttribute("title")||""}if(!i&&(r==="TEXTAREA"||r==="SELECT"||r==="INPUT")){s.visitedElements.add(e);const u=e.labels||[];if(u.length)return Re(u,s);const p=r==="INPUT"&&["text","password","search","tel","email","url"].includes(e.type)||r==="TEXTAREA",g=e.getAttribute("placeholder")||"",_=e.getAttribute("title")||"";return!p||_?_:g}if(!i&&r==="FIELDSET"){s.visitedElements.add(e);for(let p=e.firstElementChild;p;p=p.nextElementSibling)if(H(p)==="LEGEND")return fe(p,{...t,embeddedInNativeTextAlternative:{element:p,hidden:pe(p)}});return e.getAttribute("title")||""}if(!i&&r==="FIGURE"){s.visitedElements.add(e);for(let p=e.firstElementChild;p;p=p.nextElementSibling)if(H(p)==="FIGCAPTION")return fe(p,{...t,embeddedInNativeTextAlternative:{element:p,hidden:pe(p)}});return e.getAttribute("title")||""}if(r==="IMG"){s.visitedElements.add(e);const u=e.getAttribute("alt")||"";return de(u)?u:e.getAttribute("title")||""}if(r==="TABLE"){s.visitedElements.add(e);for(let p=e.firstElementChild;p;p=p.nextElementSibling)if(H(p)==="CAPTION")return fe(p,{...t,embeddedInNativeTextAlternative:{element:p,hidden:pe(p)}});const u=e.getAttribute("summary")||"";if(u)return u}if(r==="AREA"){s.visitedElements.add(e);const u=e.getAttribute("alt")||"";return de(u)?u:e.getAttribute("title")||""}if(r==="SVG"||e.ownerSVGElement){s.visitedElements.add(e);for(let u=e.firstElementChild;u;u=u.nextElementSibling)if(H(u)==="TITLE"&&u.ownerSVGElement)return fe(u,{...t,embeddedInLabelledBy:{element:u,hidden:pe(u)}})}if(e.ownerSVGElement&&r==="A"){const u=e.getAttribute("xlink:title")||"";if(de(u))return s.visitedElements.add(e),u}}const a=r==="SUMMARY"&&!["presentation","none"].includes(n);if(Lp(n,s.embeddedInTargetElement==="descendant")||a||!!s.embeddedInLabelledBy||!!s.embeddedInDescribedBy||!!s.embeddedInLabel||!!s.embeddedInNativeTextAlternative){s.visitedElements.add(e);const u=Rp(e,t);if(s.embeddedInTargetElement==="self"?de(u):u)return u}if(!["presentation","none"].includes(n)||r==="IFRAME"){s.visitedElements.add(e);const u=e.getAttribute("title")||"";if(de(u))return u}return s.visitedElements.add(e),""}function Rp(e,s){const t=[],i=(r,o)=>{var a;if(!(o&&r.assignedSlot))if(r.nodeType===1){const l=((a=ye(r))==null?void 0:a.display)||"inline";let c=fe(r,s);(l!=="inline"||r.nodeName==="BR")&&(c=" "+c+" "),t.push(c)}else r.nodeType===3&&t.push(r.textContent||"")};t.push(He(e,"::before")||"");const n=He(e);if(n!==void 0)t.push(n);else{const r=e.nodeName==="SLOT"?e.assignedNodes():[];if(r.length)for(const o of r)i(o,!1);else{for(let o=e.firstChild;o;o=o.nextSibling)i(o,!0);if(e.shadowRoot)for(let o=e.shadowRoot.firstChild;o;o=o.nextSibling)i(o,!0);for(const o of gt(e,e.getAttribute("aria-owns")))i(o,!0)}}return t.push(He(e,"::after")||""),t.join("")}var Pn=["gridcell","option","row","tab","rowheader","columnheader","treeitem"];function Op(e){return H(e)==="OPTION"?e.selected:Pn.includes(ne(e)||"")?En(e.getAttribute("aria-selected"))===!0:!1}var jn=["checkbox","menuitemcheckbox","option","radio","switch","menuitemradio","treeitem"];function zp(e){const s=Up(e,!0);return s==="error"?!1:s}function Up(e,s){const t=H(e);if(s&&t==="INPUT"&&e.indeterminate)return"mixed";if(t==="INPUT"&&["checkbox","radio"].includes(e.type))return e.checked;if(jn.includes(ne(e)||"")){const i=e.getAttribute("aria-checked");return i==="true"?!0:s&&i==="mixed"?"mixed":!1}return"error"}var Rn=["button"];function Np(e){if(Rn.includes(ne(e)||"")){const s=e.getAttribute("aria-pressed");if(s==="true")return!0;if(s==="mixed")return"mixed"}return!1}var On=["application","button","checkbox","combobox","gridcell","link","listbox","menuitem","row","rowheader","tab","treeitem","columnheader","menuitemcheckbox","menuitemradio","rowheader","switch"];function Bp(e){if(H(e)==="DETAILS")return e.open;if(On.includes(ne(e)||"")){const s=e.getAttribute("aria-expanded");return s===null?void 0:s==="true"}}var zn=["heading","listitem","row","treeitem"];function Fp(e){const s={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6}[H(e)];if(s)return s;if(zn.includes(ne(e)||"")){const t=e.getAttribute("aria-level"),i=t===null?Number.NaN:Number(t);if(Number.isInteger(i)&&i>=1)return i}return 0}var Un=["application","button","composite","gridcell","group","input","link","menuitem","scrollbar","separator","tab","checkbox","columnheader","combobox","grid","listbox","menu","menubar","menuitemcheckbox","menuitemradio","option","radio","radiogroup","row","rowheader","searchbox","select","slider","spinbutton","switch","tablist","textbox","toolbar","tree","treegrid","treeitem"];function Hp(e){return Nn(e)||Bn(e)}function Nn(e){return["BUTTON","INPUT","SELECT","TEXTAREA","OPTION","OPTGROUP"].includes(H(e))&&(e.hasAttribute("disabled")||Wp(e)||Vp(e))}function Wp(e){return H(e)==="OPTION"&&!!e.closest("OPTGROUP[DISABLED]")}function Vp(e){const s=e==null?void 0:e.closest("FIELDSET[DISABLED]");if(!s)return!1;const t=s.querySelector(":scope > LEGEND");return!t||!t.contains(e)}function Bn(e,s=!1){if(!e)return!1;if(s||Un.includes(ne(e)||"")){const t=(e.getAttribute("aria-disabled")||"").toLowerCase();return t==="true"?!0:t==="false"?!1:Bn(Je(e),!0)}return!1}function Re(e,s){return[...e].map(t=>fe(t,{...s,embeddedInLabel:{element:t,hidden:pe(t)},embeddedInNativeTextAlternative:void 0,embeddedInLabelledBy:void 0,embeddedInDescribedBy:void 0,embeddedInTargetElement:void 0})).filter(t=>!!t).join(" ")}function Yp(e){const s=Ge;let t=e,i;const n=[];for(;t;t=Je(t)){const r=s.get(t);if(r!==void 0){i=r;break}n.push(t);const o=ye(t);if(!o){i=!0;break}const a=o.pointerEvents;if(a){i=a!=="none";break}}i===void 0&&(i=!0);for(const r of n)s.set(r,i);return i}var We,Ve,ae,Ye,qe,Ke,Ge,Fn=0;function qp(){Hh(),++Fn,We!=null||(We=new Map),Ve!=null||(Ve=new Map),ae!=null||(ae=new Map),Ye!=null||(Ye=new Map),qe!=null||(qe=new Map),Ke!=null||(Ke=new Map),Ge!=null||(Ge=new Map)}function Kp(){--Fn||(We=void 0,Ve=void 0,ae=void 0,Ye=void 0,qe=void 0,Ke=void 0,Ge=void 0),Wh()}var Gp={button:"button",checkbox:"checkbox",image:"button",number:"spinbutton",radio:"radio",range:"slider",reset:"button",submit:"button"},Jp=0;function Hn(e){const s=e.boxes;return e.mode==="ai"?{visibility:"ariaOrVisible",refs:"interactable",refPrefix:e.refPrefix,includeGenericRole:!0,renderActive:!e.doNotRenderActive,renderCursorPointer:!0,renderBoxes:s}:e.mode==="autoexpect"?{visibility:"ariaAndVisible",refs:"none",renderBoxes:s}:e.mode==="codegen"?{visibility:"aria",refs:"none",renderStringsAsRegex:!0,renderBoxes:s}:{visibility:"aria",refs:"none",renderBoxes:s}}function Qp(e,s){const t=Hn(s),i=new Set,n={root:{role:"fragment",name:"",children:[],props:{},box:ht(e),receivesPointerEvents:!0},elements:new Map,refs:new Map,iframeRefs:[]};Rt(n.root,e);const r=(a,l,c)=>{if(i.has(l))return;if(i.add(l),l.nodeType===Node.TEXT_NODE&&l.nodeValue){if(!c)return;const _=l.nodeValue;a.role!=="textbox"&&_&&a.children.push(l.nodeValue||"");return}if(l.nodeType!==Node.ELEMENT_NODE)return;const d=l,h=!pe(d);let u=h;if(t.visibility==="ariaOrVisible"&&(u=h||jt(d)),t.visibility==="ariaAndVisible"&&(u=h&&jt(d)),t.visibility==="aria"&&!u)return;const p=[];if(d.hasAttribute("aria-owns")){const _=d.getAttribute("aria-owns").split(/\s+/);for(const v of _){const y=e.ownerDocument.getElementById(v);y&&p.push(y)}}const g=u?Xp(d,t):null;g&&(g.ref&&(n.elements.set(g.ref,d),n.refs.set(d,g.ref),g.role==="iframe"&&n.iframeRefs.push(g.ref)),a.children.push(g)),o(g||a,d,p,u)};function o(a,l,c,d){var g;const u=(((g=ye(l))==null?void 0:g.display)||"inline")!=="inline"||l.nodeName==="BR"?" ":"";u&&a.children.push(u),a.children.push(He(l,"::before")||"");const p=l.nodeName==="SLOT"?l.assignedNodes():[];if(p.length)for(const _ of p)r(a,_,d);else{for(let _=l.firstChild;_;_=_.nextSibling)_.assignedSlot||r(a,_,d);if(l.shadowRoot)for(let _=l.shadowRoot.firstChild;_;_=_.nextSibling)r(a,_,d)}for(const _ of c)r(a,_,d);if(a.children.push(He(l,"::after")||""),u&&a.children.push(u),a.children.length===1&&a.name===a.children[0]&&(a.children=[]),a.role==="link"&&l.hasAttribute("href")){const _=l.getAttribute("href");a.props.url=_}if(a.role==="textbox"&&l.hasAttribute("placeholder")&&l.getAttribute("placeholder")!==a.name){const _=l.getAttribute("placeholder");a.props.placeholder=_}}qp();try{r(n.root,e,!0)}finally{Kp()}return ef(n.root),Zp(n.root),n}function Ai(e,s){var n;if(s.refs==="none"||s.refs==="interactable"&&(!e.box.visible||!e.receivesPointerEvents))return;const t=Yn(e);let i=t._ariaRef;(!i||i.role!==e.role||i.name!==e.name)&&(i={role:e.role,name:e.name,ref:((n=s.refPrefix)!=null?n:"")+"e"+ ++Jp},t._ariaRef=i),e.ref=i.ref}function Xp(e,s){var c;const t=e.ownerDocument.activeElement===e;if(e.nodeName==="IFRAME"){const d={role:"iframe",name:"",children:[],props:{},box:ht(e),receivesPointerEvents:!0,active:t};return Rt(d,e),Ai(d,s),d}const i=s.includeGenericRole?"generic":null,n=(c=ne(e))!=null?c:i;if(!n||n==="presentation"||n==="none")return null;const r=vn(Mp(e,!1)||""),o=Yp(e),a=ht(e);if(n==="generic"&&a.inline&&e.childNodes.length===1&&e.childNodes[0].nodeType===Node.TEXT_NODE)return null;const l={role:n,name:r,children:[],props:{},box:a,receivesPointerEvents:o,active:t};if(Rt(l,e),Ai(l,s),jn.includes(n)&&(l.checked=zp(e)),Un.includes(n)&&(l.disabled=Hp(e)),On.includes(n)&&(l.expanded=Bp(e)),Pp.includes(n)){const d=jp(e);l.invalid=d==="false"?!1:d==="true"?!0:d}return zn.includes(n)&&(l.level=Fp(e)),Rn.includes(n)&&(l.pressed=Np(e)),Pn.includes(n)&&(l.selected=Op(e)),(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&e.type!=="checkbox"&&e.type!=="radio"&&e.type!=="file"&&(l.children=[e.value]),l}function Zp(e){const s=t=>{const i=[];for(const r of t.children||[]){if(typeof r=="string"){i.push(r);continue}const o=s(r);i.push(...o)}return t.role==="generic"&&!t.name&&i.length<=1&&i.every(r=>typeof r!="string"&&!!r.ref)?i:(t.children=i,[t])};s(e)}function ef(e){const s=(i,n)=>{if(!i.length)return;const r=vn(i.join(""));r&&n.push(r),i.length=0},t=i=>{const n=[],r=[];for(const o of i.children||[])typeof o=="string"?r.push(o):(s(r,n),t(o),n.push(o));s(r,n),i.children=n.length?n:[],i.children.length===1&&i.children[0]===i.name&&(i.children=[])};t(e)}function Wn(e,s=new Map){e!=null&&e.ref&&s.set(e.ref,e);for(const t of(e==null?void 0:e.children)||[])typeof t!="string"&&Wn(t,s);return s}function tf(e,s){var r;const t=Wn(s==null?void 0:s.root),i=new Map,n=(o,a)=>{let l=o.children.length===(a==null?void 0:a.children.length)&&Rh(o,a),c=l;for(let d=0;d<o.children.length;d++){const h=o.children[d],u=a==null?void 0:a.children[d];if(typeof h=="string")l&&(l=h===u),c&&(c=h===u);else{let p=typeof u!="string"?u:void 0;h.ref&&(p=t.get(h.ref));const g=n(h,p);(!p||!g&&!h.ref||p!==u)&&(c=!1),l&&(l=g&&p===u)}}return i.set(o,l?"same":c?"skip":"changed"),l};return n(e.root,t.get((r=s==null?void 0:s.root)==null?void 0:r.ref)),i}function sf(e,s){const t=[],i=n=>{const r=s.get(n);if(r!=="same")if(r==="skip")for(const o of n.children)typeof o!="string"&&i(o);else t.push(n)};for(const n of e)typeof n=="string"?t.push(n):i(n);return t}function st(e){return" ".repeat(e)}function nf(e,s,t){const i=Hn(s),n=[],r={},o=i.renderStringsAsRegex?of:()=>!0,a=i.renderStringsAsRegex?rf:g=>g;let l=e.root.role==="fragment"?e.root.children:[e.root];const c=tf(e,t);t&&(l=sf(l,c));const d=(g,_)=>{if(s.depth&&_>s.depth)return;const v=bt(a(g));v&&n.push(st(_)+"- text: "+v)},h=(g,_)=>{let v=g.role;if(g.name&&g.name.length<=900){const y=a(g.name);if(y){const w=y.startsWith("/")&&y.endsWith("/")?y:JSON.stringify(y);v+=" "+w}}if(g.checked==="mixed"&&(v+=" [checked=mixed]"),g.checked===!0&&(v+=" [checked]"),g.disabled&&(v+=" [disabled]"),g.expanded&&(v+=" [expanded]"),g.active&&i.renderActive&&(v+=" [active]"),(g.invalid==="grammar"||g.invalid==="spelling")&&(v+=` [invalid=${g.invalid}]`),g.invalid===!0&&(v+=" [invalid]"),g.level&&(v+=` [level=${g.level}]`),g.pressed==="mixed"&&(v+=" [pressed=mixed]"),g.pressed===!0&&(v+=" [pressed]"),g.selected===!0&&(v+=" [selected]"),g.ref&&(v+=` [ref=${g.ref}]`,_&&dt(g)&&(v+=" [cursor=pointer]")),i.renderBoxes){const y=Yn(g);if(y){const w=y.getBoundingClientRect();v+=` [box=${Math.round(w.x)},${Math.round(w.y)},${Math.round(w.width)},${Math.round(w.height)}]`}}return v},u=g=>(g==null?void 0:g.children.length)===1&&typeof g.children[0]=="string"&&!Object.keys(g.props).length?g.children[0]:void 0,p=(g,_,v)=>{if(s.depth&&_>s.depth)return;if(g.role==="iframe"&&g.ref&&(r[g.ref]=_),c.get(g)==="same"&&g.ref){n.push(st(_)+`- ref=${g.ref} [unchanged]`);return}const y=!!t&&!_,w=st(_)+"- "+(y?"<changed> ":"")+Uh(h(g,v)),b=u(g),C=!!s.depth&&_===s.depth;if(!b&&(!g.children.length||C)&&!Object.keys(g.props).length)n.push(w);else if(b!==void 0)o(g,b)?n.push(w+": "+bt(a(b))):n.push(w);else{n.push(w+":");for(const[K,Y]of Object.entries(g.props))n.push(st(_+1)+"- /"+K+": "+bt(Y));const O=!!g.ref&&v&&dt(g);for(const K of g.children)typeof K=="string"?d(o(g,K)?K:"",_+1):p(K,_+1,v&&!O)}};for(const g of l)typeof g=="string"?d(g,0):p(g,0,!!i.renderCursorPointer);return{text:n.join(`
`),iframeDepths:r}}function rf(e){const s=[{regex:/\b[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\b/,replacement:"[0-9a-fA-F-]+"},{regex:/\b[\d,.]+[bkmBKM]+\b/,replacement:"[\\d,.]+[bkmBKM]+"},{regex:/\b\d+[hmsp]+\b/,replacement:"\\d+[hmsp]+"},{regex:/\b[\d,.]+[hmsp]+\b/,replacement:"[\\d,.]+[hmsp]+"},{regex:/\b\d+,\d+\b/,replacement:"\\d+,\\d+"},{regex:/\b\d+\.\d{2,}\b/,replacement:"\\d+\\.\\d+"},{regex:/\b\d{2,}\.\d+\b/,replacement:"\\d+\\.\\d+"},{regex:/\b\d{2,}\b/,replacement:"\\d+"}];let t="",i=0;const n=new RegExp(s.map(r=>"("+r.regex.source+")").join("|"),"g");return e.replace(n,(r,...o)=>{const a=o[o.length-2],l=o.slice(0,-2);t+=mi(e.slice(i,a));for(let c=0;c<l.length;c++)if(l[c]){const{replacement:d}=s[c];t+=d;break}return i=a+r.length,r}),t?(t+=mi(e.slice(i)),String(new RegExp(t))):e}function of(e,s){if(!s.length)return!1;if(!e.name)return!0;const t=s.length<=200&&e.name.length<=200?zh(s,e.name):"";let i=s;for(;t&&i.includes(t);)i=i.replace(t,"");return i.trim().length/s.length>.1}var Vn=Symbol("element");function Yn(e){return e[Vn]}function Rt(e,s){e[Vn]=s}function af(e,s){const t=Object.assign({mode:"ai"},s||{}),i=Qp(e||document.body,t);return{text:nf(i,t).text,elements:i.elements,refs:i.refs}}const lf={button:"button",a:"link",input:e=>{var t;switch(((t=e.type)==null?void 0:t.toLowerCase())||"text"){case"checkbox":return"checkbox";case"radio":return"radio";case"submit":case"reset":case"button":return"button";case"search":return"searchbox";case"range":return"slider";case"number":return"spinbutton";default:return"textbox"}},textarea:"textbox",select:"combobox",option:"option",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",img:"img",nav:"navigation",main:"main",article:"article",li:"listitem",td:"cell",th:"columnheader"};function St(e,s={}){var h;const t=(h=e==null?void 0:e.state)==null?void 0:h.routeName,i=s.doc||document,n=s.include_elements!==!1,r=s.interactive_only||!1,o=s.max_elements||50,a=s.offset||0,l=s.container||null,c=s.query||"",d={page_type:t||"unknown",page_url:i.location&&i.location.href||window.location.href,page_title:i.title,timestamp:Date.now(),elements:[],element_count:0,total_count:0,offset:a,has_more:!1,available_actions:cf(t,e)};if(n){const u=qn({doc:i,interactiveOnly:r,maxElements:o,offset:a,container:l,query:c});d.elements=u.elements,d.element_count=u.elements.length,d.total_count=u.totalCount,d.has_more=u.hasMore,d.ref_map=u.refMap,d.snapshot=u.snapshot,d.refElements=u.refElements,c&&(d.query=c,d.keyword_matched=u.keywordMatched)}return d}function cf(e,s){var r;const t=[{name:"navigate_to_dashboard",description:"\u8DF3\u8F6C\u5230\u4EEA\u8868\u76D8"},{name:"navigate_to_messenger",description:"\u8DF3\u8F6C\u5230\u6D88\u606F\u9875\u9762"},{name:"navigate_to_calendar",description:"\u8DF3\u8F6C\u5230\u65E5\u5386\u9875\u9762"},{name:"navigate_to_files",description:"\u8DF3\u8F6C\u5230\u6587\u4EF6\u7BA1\u7406\u9875\u9762"}],i=[];(((r=s==null?void 0:s.state)==null?void 0:r.microApps)||[]).some(o=>o&&o.isOpen)&&i.push({name:"close_app",description:"\u5173\u95ED\u5F53\u524D\u6253\u5F00\u7684\u5E94\u7528\u7A97\u53E3"});const n=[];switch(e){case"manage-project":n.push({name:"open_task",description:"\u6253\u5F00\u4EFB\u52A1\u8BE6\u60C5",params:{task_id:"\u4EFB\u52A1ID"}});break;case"manage-messenger":n.push({name:"open_dialog",description:"\u6253\u5F00/\u5207\u6362\u5BF9\u8BDD",params:{dialog_id:"\u5BF9\u8BDDID",msg_id:"(\u53EF\u9009)\u8DF3\u8F6C\u5230\u6307\u5B9A\u6D88\u606F"}});break;case"manage-file":n.push({name:"open_folder",description:"\u6253\u5F00\u6587\u4EF6\u5939",params:{folder_id:"\u6587\u4EF6\u5939ID"}},{name:"open_file",description:"\u6253\u5F00\u6587\u4EF6\u9884\u89C8",params:{file_id:"\u6587\u4EF6ID"}});break;case"manage-dashboard":n.push({name:"open_project",description:"\u6253\u5F00/\u5207\u6362\u5230\u9879\u76EE",params:{project_id:"\u9879\u76EEID"}},{name:"open_task",description:"\u6253\u5F00\u4EFB\u52A1\u8BE6\u60C5",params:{task_id:"\u4EFB\u52A1ID"}});break;default:n.push({name:"open_project",description:"\u6253\u5F00/\u5207\u6362\u5230\u9879\u76EE",params:{project_id:"\u9879\u76EEID"}},{name:"open_task",description:"\u6253\u5F00\u4EFB\u52A1\u8BE6\u60C5",params:{task_id:"\u4EFB\u52A1ID"}},{name:"open_dialog",description:"\u6253\u5F00\u5BF9\u8BDD",params:{dialog_id:"\u5BF9\u8BDDID"}})}return[...i,...n,...t]}function qn(e={}){const{doc:s=document,maxElements:t=50,offset:i=0,container:n=null,query:r=""}=e,o={elements:[],refMap:{},refElements:new Map,snapshot:"",totalCount:0,hasMore:!1,keywordMatched:!1};let a=s.body||s.documentElement||s;if(n&&(a=s.querySelector(n),!a))return o;let l;try{l=af(a,{mode:"ai"})}catch{return o}const c=l.elements||new Map,d=[];for(const[w,b]of c.entries()){if(!b||!b.isConnected)continue;const C=uf(b);!C||(C.ref=w,d.push(C))}let h=d,u=!1;if(r){const w=r.toLowerCase();h=d.filter(b=>(b.name||"").toLowerCase().includes(w)||(b.placeholder||"").toLowerCase().includes(w)||(b.aria_label||"").toLowerCase().includes(w)||(b.title||"").toLowerCase().includes(w)),u=h.length>0,h.length===0&&(h=d)}const p=h.length,g=Math.min(i+t,p),_=g<p,v=[],y={};for(let w=i;w<g;w++){const b=h[w];v.push(b),y[b.ref]={role:b.role,name:b.name}}return{elements:v,refMap:y,refElements:c,snapshot:l.text,totalCount:p,hasMore:_,keywordMatched:u}}function uf(e,s){const t=e.tagName.toLowerCase(),i=df(e),n=hf(e),r=pf(e),o={role:i,tag:t,name:n||void 0,selector:r};e.id&&(o.id=e.id),e.type&&(t==="input"||t==="button")&&(o.input_type=e.type),e.placeholder&&(o.placeholder=e.placeholder),e.value&&(t==="input"||t==="textarea")&&(o.value=e.value.substring(0,50)),e.href&&t==="a"&&(o.href=e.href),e.checked!==void 0&&(o.checked=e.checked),e.title&&(o.title=e.title);const a=e.getAttribute("aria-label");return a&&(o.aria_label=a),o}function df(e){const s=e.getAttribute("role");if(s)return s;const t=e.tagName.toLowerCase(),i=lf[t];return typeof i=="function"?i(e):typeof i=="string"?i:e.onclick||e.hasAttribute("onclick")||e.style.cursor==="pointer"||(e.ownerDocument.defaultView||window).getComputedStyle(e).cursor==="pointer"?"button":"generic"}function hf(e){const s=e.getAttribute("aria-label");if(s)return s.trim().substring(0,100);const t=e.getAttribute("aria-labelledby");if(t){const n=e.ownerDocument.getElementById(t);if(n)return xt(n).substring(0,100)}if(e.id){const n=e.ownerDocument.querySelector(`label[for="${e.id}"]`);if(n)return xt(n).substring(0,100)}const i=xt(e);return i?i.substring(0,100):e.title?e.title.substring(0,100):e.placeholder?e.placeholder.substring(0,100):e.alt?e.alt.substring(0,100):e.value&&(e.tagName==="INPUT"||e.tagName==="BUTTON")?e.value.substring(0,100):""}function xt(e){const s=e.cloneNode(!0);s.querySelectorAll('script, style, [hidden], [aria-hidden="true"]').forEach(i=>i.remove());let t=s.textContent||s.innerText||"";return t=t.replace(/\s+/g," ").trim(),t}function pf(e){if(e.id)return`#${e.id}`;const s=[];let t=e,i=0;for(;t&&t!==e.ownerDocument.body&&i<5;){let n=t.tagName.toLowerCase();if(t.className&&typeof t.className=="string"){const r=t.className.split(" ").filter(o=>o&&!o.startsWith("ivu-")&&!o.includes("--")&&!o.includes("active")&&!o.includes("hover")).slice(0,2);r.length&&(n+="."+r.join("."))}t.getAttribute("role")?n+=`[role="${t.getAttribute("role")}"]`:t.getAttribute("data-id")?n+=`[data-id="${t.getAttribute("data-id")}"]`:t.getAttribute("name")&&(n+=`[name="${t.getAttribute("name")}"]`),s.unshift(n),t=t.parentElement,i++}return s.join(" > ")}async function ff(e,s,t,i=10){var r;if(!s||!t||t.length===0)return[];const n=t.filter(o=>o.name&&o.name.trim()).map(o=>({ref:o.ref,name:o.name}));if(n.length===0)return[];try{const o=await e.dispatch("call",{url:"assistant/match_elements",method:"post",data:{query:s,elements:n,top_k:i}}),a=(r=o==null?void 0:o.data)==null?void 0:r.matches;if(a&&a.length>0){const l=a.map(c=>c.element.ref);return t.filter(c=>l.includes(c.ref)).sort((c,d)=>l.indexOf(c.ref)-l.indexOf(d.ref))}}catch{}return[]}typeof window!="undefined"&&(window.__testPageContext=(e={})=>{let s=document;if(e.frameSrc){const n=[...document.querySelectorAll("iframe")].find(r=>(r.src||"").includes(e.frameSrc));n&&n.contentDocument&&(s=n.contentDocument)}const t={page_url:s.location&&s.location.href||window.location.href,page_title:s.title,timestamp:Date.now()},i=qn({doc:s,interactiveOnly:e.interactive_only||!1,maxElements:e.max_elements||50,offset:e.offset||0,container:e.container||null});return t.elements=i.elements,t.element_count=i.elements.length,t.total_count=i.totalCount,t.offset=e.offset||0,t.has_more=i.hasMore,t.ref_map=i.refMap,t});const mf="iframe.micro-app-iframe-container";function gf(e){return typeof e=="string"&&/^iframe/i.test(e)}function _f(e){var t;const s=(((t=e==null?void 0:e.state)==null?void 0:t.microApps)||[]).filter(i=>i&&i.isOpen);return s.length?s.reduce((i,n)=>(n.lastOpenAt||0)>(i.lastOpenAt||0)?n:i):null}function vf(e){if(!e||!e.url)return null;const s=[...document.querySelectorAll(mf)];if(!s.length)return null;let t=s.find(i=>i.src===e.url);if(t)return t;try{const i=new URL(e.url,location.href).href;if(t=s.find(n=>{try{return new URL(n.src,location.href).href===i}catch{return!1}}),t)return t}catch{}return s.length===1?s[0]:null}function Kn(e,s="auto"){const t={kind:"main",scope:"main",doc:document,appName:null,label:"\u4E3B\u754C\u9762",reachable:!0,frameKey:"main"};if(s==="main")return t;const i=_f(e);if(!i)return s==="app"?{kind:"app",scope:"app",appName:null,appTitle:"",reachable:!1,reason:"no_app",frameKey:null}:t;if(!gf(i.type))return{...t,appName:i.name,appTitle:i.title||i.name};const n={kind:"app",scope:"app",appName:i.name,appTitle:i.title||i.name,frameKey:`app:${i.name}@${i.lastOpenAt||0}`},r=vf(i);if(!r)return{...n,reachable:!1,reason:"not_ready"};try{const o=r.contentDocument;return o&&o.body&&o.body.children.length>0?{...n,reachable:!0,doc:o,label:`\u5FAE\u5E94\u7528\u300C${n.appTitle}\u300D`}:{...n,reachable:!1,reason:"not_ready"}}catch{return{...n,reachable:!1,reason:"cross_origin"}}}const Ci=e=>new Promise(s=>setTimeout(s,e));function Ae(e,s){return new Error(`${e}: ${s}`)}function yf(e){return!e||e.matches&&e.matches("input, textarea")||e.isContentEditable?e:e.querySelector&&e.querySelector('input, textarea, [contenteditable="true"], [contenteditable=""]')||e}function Ot(e,s){const t=s.InputEvent||s.Event;e.dispatchEvent(new t("input",{bubbles:!0})),e.dispatchEvent(new s.Event("change",{bubbles:!0}))}function Si(e,s,t){const i=yf(e),n=s==null?"":String(s),r=(i.tagName||"").toLowerCase();if(i.isContentEditable){i.focus();const c=t.getSelection&&t.getSelection();if(c){const h=i.ownerDocument.createRange();h.selectNodeContents(i),c.removeAllRanges(),c.addRange(h)}if(i.ownerDocument.execCommand&&i.ownerDocument.execCommand("insertText",!1,n)||(i.textContent=n),Ot(i,t),n&&!(i.textContent||"").includes(n))throw Ae("value_not_applied","\u5BCC\u6587\u672C\u5199\u5165\u672A\u751F\u6548");return{success:!0,action:"type",value:n}}if(r!=="input"&&r!=="textarea")throw Ae("unsupported_widget","\u5143\u7D20\u4E0D\u53EF\u8F93\u5165\u6587\u672C");i.focus();const o=r==="textarea"?t.HTMLTextAreaElement.prototype:t.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(o,"value"),l=a&&a.set;if(l?l.call(i,n):i.value=n,Ot(i,t),i.dispatchEvent(new t.Event("blur",{bubbles:!0})),i.value!==n)throw Ae("value_not_applied","\u5199\u5165\u540E\u56DE\u8BFB\u4E0D\u4E00\u81F4");return{success:!0,action:"type",value:n}}function wf(e){if(typeof e.focus=="function")try{e.focus()}catch{}return e.click(),{success:!0,action:"click"}}async function $f(e,s,t,i){const n=s==null?"":String(s);if((e.tagName||"").toLowerCase()==="select"){const h=[...e.options].find(u=>u.value===n||(u.textContent||"").trim()===n||(u.textContent||"").includes(n));if(!h)throw Ae("unsupported_widget",`\u539F\u751F select \u65E0\u9009\u9879 ${n}`);return e.value=h.value,Ot(e,i),{success:!0,action:"select",value:n}}e.click(),await Ci(180);const o='[role="option"], [role="gridcell"], [role="menuitemradio"], .ivu-select-item, li[role]',a=[...t.querySelectorAll(o)].filter(h=>h.offsetParent!==null||h.getClientRects().length),l=a.find(h=>(h.textContent||"").trim()===n),c=a.find(h=>(h.textContent||"").trim().includes(n)),d=l||c;if(!d)throw Ae("unsupported_widget",`\u4E0B\u62C9\u672A\u6E32\u67D3\u5339\u914D\u9879 ${n}`);return d.click(),await Ci(80),{success:!0,action:"select",value:n}}function kf(e){const s=e.matches&&e.matches('input[type="checkbox"], input[type="radio"]')?e:e.querySelector&&e.querySelector('input[type="checkbox"], input[type="radio"]');return s?!!s.checked:(e.getAttribute&&e.getAttribute("aria-checked"))==="true"}function Tt(e,s){const t=e.matches&&e.matches('input[type="checkbox"], input[type="radio"]')?e:e.querySelector&&e.querySelector('input[type="checkbox"], input[type="radio"]');if(t)return!!t.checked!==s&&t.click(),{success:!0,action:s?"check":"uncheck",checked:!!t.checked};const i=e.getAttribute&&e.getAttribute("aria-checked");if(i!=null)return i==="true"!==s&&e.click(),{success:!0,action:s?"check":"uncheck"};throw Ae("unsupported_widget","\u975E\u590D\u9009/\u5355\u9009\u5143\u7D20")}function bf(){return{name:"web",async perform(e,s,t,i){const n=i&&i.win||e.ownerDocument.defaultView||window,r=i&&i.doc||e.ownerDocument;switch(s){case"click":return wf(e);case"type":case"fill":return Si(e,t,n);case"clear":return Si(e,"",n);case"select":return $f(e,t,r,n);case"check":return Tt(e,!0);case"uncheck":return Tt(e,!1);case"toggle":return Tt(e,!kf(e));case"focus":return e.focus(),{success:!0,action:"focus"};case"scroll":return e.scrollIntoView({behavior:"smooth",block:"center"}),{success:!0,action:"scroll"};case"hover":return e.dispatchEvent(new n.MouseEvent("mouseenter",{bubbles:!0})),e.dispatchEvent(new n.MouseEvent("mouseover",{bubbles:!0})),{success:!0,action:"hover"};default:throw Ae("not_actionable",`\u4E0D\u652F\u6301\u7684\u64CD\u4F5C: ${s}`)}}}}function Af(){return!!(typeof window!="undefined"&&window.$A&&window.$A.isElectron&&window.electron&&typeof window.electron.sendAsync=="function")}function Cf(e){const s=e.getBoundingClientRect();return{x:Math.round(s.left+s.width/2),y:Math.round(s.top+s.height/2)}}function Sf(e,s){try{if(typeof e.select=="function"){e.select();return}if(e.isContentEditable){const t=s.getSelection&&s.getSelection();if(t){const i=e.ownerDocument.createRange();i.selectNodeContents(e),t.removeAllRanges(),t.addRange(i)}}}catch{}}function xf(e){const s=(t,i)=>window.electron.sendAsync("pageInput",Object.assign({op:t},i));return{name:"electron",async perform(t,i,n,r){const o=r&&r.win||t.ownerDocument.defaultView||window;try{if(i==="type"||i==="fill"||i==="clear"){const a=i==="clear"||n==null?"":String(n);typeof t.focus=="function"&&t.focus(),Sf(t,o),await s("insertText",{text:a});const l=t.value!=null?t.value:t.textContent||"";if(a&&l!==a&&!(l||"").includes(a))throw new Error("value_not_applied: \u53EF\u4FE1\u8F93\u5165\u56DE\u8BFB\u4E0D\u4E00\u81F4");return{success:!0,action:"type",value:a,backend:"electron"}}if(i==="click"){const{x:a,y:l}=Cf(t);return await s("click",{x:a,y:l}),{success:!0,action:"click",backend:"electron"}}}catch{return e().perform(t,i,n,r)}return e().perform(t,i,n,r)}}}let It=null,Dt=null;function Tf(){return Af()?(Dt||(Dt=xf(()=>xi())),Dt):xi()}function xi(){return It||(It=bf()),It}function If(e,s){return new Df(e,s)}class Df{constructor(s,t){this.store=s,this.router=t,this.actionHandlers={open_task:this.openTask.bind(this),open_dialog:this.openDialog.bind(this),open_project:this.openProject.bind(this),open_file:this.openFile.bind(this),open_folder:this.openFolder.bind(this),navigate_to_dashboard:this.navigateToDashboard.bind(this),navigate_to_messenger:this.navigateToMessenger.bind(this),navigate_to_calendar:this.navigateToCalendar.bind(this),navigate_to_files:this.navigateToFiles.bind(this),close_app:this.closeApp.bind(this),goto_task:this.openTask.bind(this),goto_project:this.openProject.bind(this),goto_dialog:this.openDialog.bind(this),navigate_to_task:this.openTask.bind(this),navigate_to_project:this.openProject.bind(this),navigate_to_dialog:this.openDialog.bind(this)}}async executeAction(s,t={}){const{normalizedAction:i,extractedParams:n}=this.parseActionName(s),r={...n,...t},o=this.actionHandlers[i];if(!o)throw new Error(`\u4E0D\u652F\u6301\u7684\u64CD\u4F5C: ${s}\u3002\u652F\u6301\u7684\u64CD\u4F5C: ${Object.keys(this.actionHandlers).join(", ")}`);try{const a=await o(r);return{success:!0,action:i,result:a}}catch(a){throw new Error(`\u6267\u884C\u64CD\u4F5C\u5931\u8D25: ${a.message}`)}}parseActionName(s){const t=[{regex:/^(open_task|goto_task|navigate_to_task)_(\d+)$/,paramName:"task_id"},{regex:/^(open_project|goto_project|navigate_to_project)_(\d+)$/,paramName:"project_id"},{regex:/^(open_dialog|goto_dialog|navigate_to_dialog)_(\d+)$/,paramName:"dialog_id"},{regex:/^(open_file)_(\d+)$/,paramName:"file_id"},{regex:/^(open_folder)_(\d+)$/,paramName:"folder_id"}];for(const{regex:i,paramName:n}of t){const r=s.match(i);if(r)return{normalizedAction:r[1],extractedParams:{[n]:parseInt(r[2],10)}}}return{normalizedAction:s,extractedParams:{}}}async openTask(s){const t=s.task_id;if(!t)throw new Error("\u7F3A\u5C11 task_id \u53C2\u6570");return this.store.dispatch("openTask",t),{opened:!0,task_id:t}}async openDialog(s){const t=s.dialog_id;if(!t)throw new Error("\u7F3A\u5C11 dialog_id \u53C2\u6570");const i=s.msg_id?{dialog_id:t,search_msg_id:s.msg_id}:t;return this.store.dispatch("openDialog",i),{opened:!0,dialog_id:t}}async openProject(s){const t=s.project_id;if(!t)throw new Error("\u7F3A\u5C11 project_id \u53C2\u6570");return window.$A.goForward({name:"manage-project",params:{projectId:t}}),{navigated:!0,project_id:t}}async openFile(s){const t=s.file_id;if(!t)throw new Error("\u7F3A\u5C11 file_id \u53C2\u6570");return window.$A.goForward({name:"manage-file",params:{fileId:t}}),{navigated:!0,file_id:t}}async openFolder(s){const t=s.folder_id;if(!t)throw new Error("\u7F3A\u5C11 folder_id \u53C2\u6570");return window.$A.goForward({name:"manage-file",params:{folderId:t,fileId:null}}),{navigated:!0,folder_id:t}}async navigateToDashboard(){return window.$A.goForward({name:"manage-dashboard"}),{navigated:!0,page:"dashboard"}}async navigateToMessenger(){return window.$A.goForward({name:"manage-messenger"}),{navigated:!0,page:"messenger"}}async navigateToCalendar(){return window.$A.goForward({name:"manage-calendar"}),{navigated:!0,page:"calendar"}}async navigateToFiles(){return window.$A.goForward({name:"manage-file"}),{navigated:!0,page:"files"}}async closeApp(){var t,i;if(!(((i=(t=this.store)==null?void 0:t.state)==null?void 0:i.microApps)||[]).some(n=>n&&n.isOpen))throw new Error("\u5F53\u524D\u6CA1\u6709\u6253\u5F00\u7684\u5E94\u7528");return T.emit("observeMicroApp:close"),{closed:!0}}setRefMap(s,t=null){this.currentRefElements=s instanceof Map?s:null,this.currentContext=t}resolveContextDoc(){const s=this.currentContext;if(!s||s.kind==="main"||s.frameKey==="main")return document;const t=Kn(this.store,s.scope||"auto");if(t.frameKey!==s.frameKey||!t.reachable||!t.doc)throw new Error("\u9875\u9762\u4E0A\u4E0B\u6587\u5DF2\u53D8\u66F4\uFF08\u7528\u6237\u5207\u6362\u4E86\u5E94\u7528\u6216\u5237\u65B0\u4E86\u9875\u9762\uFF09\uFF0C\u8BF7\u91CD\u65B0\u83B7\u53D6\u9875\u9762\u4E0A\u4E0B\u6587\u540E\u518D\u64CD\u4F5C");return t.doc}async executeElementAction(s,t,i){const n=this.resolveContextDoc(),r=this.findElement(s,n);if(!r)throw new Error(`element_not_found: \u627E\u4E0D\u5230\u5143\u7D20 ${s}\uFF08\u53EF\u80FD\u9875\u9762\u5DF2\u53D8\u66F4\uFF0C\u8BF7\u91CD\u65B0\u83B7\u53D6\u9875\u9762\u4E0A\u4E0B\u6587\uFF09`);const o=r.ownerDocument.defaultView||window;this.backend||(this.backend=Tf());const a=await this.backend.perform(r,t,i,{doc:n,win:o,elementUid:s});return Object.assign({element:s},a)}findElement(s,t=document){let i=null;if(s.startsWith("@")?i=s.slice(1):s.startsWith("ref=")?i=s.slice(4):/^e\d+$/.test(s)&&(i=s),i&&this.currentRefElements){const n=this.currentRefElements.get(i);if(n&&n.isConnected)return n;if(n&&!n.isConnected)return null}try{const n=t.querySelector(s);if(n)return n}catch{}return null}delay(s){return new Promise(t=>setTimeout(t,s))}}function Ef(e={}){return new Lf(e)}class Lf{constructor(s){this.store=s.store,this.router=s.router,this.executor=null}ensureExecutor(){return this.executor||(this.executor=If(this.store,this.router)),this.executor}async handleRequest(s,t){switch(s){case"get_page_context":return this.getPageContext(t);case"execute_action":return this.executeAction(t);case"execute_element_action":return this.executeElementAction(t);default:throw new Error(`\u672A\u77E5\u7684\u64CD\u4F5C\u7C7B\u578B: ${s}`)}}async getPageContext(s){this.ensureExecutor();const t=(s==null?void 0:s.include_elements)!==!1,i=(s==null?void 0:s.interactive_only)||!1,n=(s==null?void 0:s.max_elements)||100,r=(s==null?void 0:s.query)||"",o=(s==null?void 0:s.offset)||0,a=(s==null?void 0:s.container)||null,l=(s==null?void 0:s.scope)||"auto",c=Kn(this.store,l);if(c.kind==="app"&&!c.reachable){const u=c.reason==="cross_origin"?"\u5F53\u524D\u5E94\u7528\u4E3A\u8DE8\u6E90\u9875\u9762\uFF0C\u65E0\u6CD5\u8BFB\u53D6\u5176\u5185\u90E8\u5143\u7D20":c.reason==="no_app"?"\u5F53\u524D\u6CA1\u6709\u6253\u5F00\u4EFB\u4F55\u5FAE\u5E94\u7528":"\u5F53\u524D\u5E94\u7528\u5C1A\u672A\u52A0\u8F7D\u5B8C\u6210",p=St(this.store,{include_elements:!1});return p.elements=[],p.element_count=0,p.total_count=0,p.has_more=!1,p.frame={scope:"app",app_name:c.appName||null,operable:!1,reachable:!1,reason:c.reason},p.hint=`${u}\u3002\u53EF\u6539\u7528\u4E3B\u754C\u9762\uFF08scope=main\uFF09\u64CD\u4F5C\uFF0C\u6216\u6539\u7528\u6570\u636E\u547D\u4EE4\u5B8C\u6210\u3002`,this.executor.setRefMap(new Map,null),p}const d=c.doc||document;let h=St(this.store,{doc:d,include_elements:t,interactive_only:i,max_elements:n,offset:o,container:a,query:r});if(r&&!h.keyword_matched){const u=St(this.store,{doc:d,include_elements:!0,interactive_only:i,max_elements:200,offset:0,container:a});if(u.elements.length>0){const p=await ff(this.store,r,u.elements,10);if(p.length>0){h.elements=p,h.element_count=p.length,h.total_count=p.length,h.has_more=!1,h.vector_matched=!0,h.refElements=u.refElements,h.ref_map={};for(const g of p)g.ref&&(h.ref_map[g.ref]={role:g.role,name:g.name})}}}return h.frame={scope:c.scope,app_name:c.appName||null,operable:!0},h.refElements&&this.executor&&this.executor.setRefMap(h.refElements,c),delete h.refElements,h}async executeAction(s){this.ensureExecutor();const t=s==null?void 0:s.name,i=(s==null?void 0:s.params)||{};if(!t)throw new Error("\u7F3A\u5C11\u64CD\u4F5C\u540D\u79F0");return this.executor.executeAction(t,i)}async executeElementAction(s){this.ensureExecutor();const t=s==null?void 0:s.element_uid,i=s==null?void 0:s.action,n=s==null?void 0:s.value;if(!t||!i)throw new Error("\u7F3A\u5C11\u5FC5\u8981\u53C2\u6570");return this.executor.executeElementAction(t,i,n)}}var Mf=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("transition",{attrs:{name:"fade"}},[e.visible?t("div",{staticClass:"ai-float-button-wrapper",class:e.wrapperClass,style:e.wrapperStyle,on:{mouseenter:e.onMouseEnter,mouseleave:e.onMouseLeave}},[t("div",{ref:"floatBtn",staticClass:"ai-float-button",class:e.btnClass,style:e.btnStyle,on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onMouseDown.apply(null,arguments)},touchstart:function(i){return i.stopPropagation(),e.onTouchStart.apply(null,arguments)}}},[t("svg",{staticClass:"ai-float-button-icon no-dark-content",attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M385.80516777 713.87417358c-12.76971517 0-24.13100586-7.79328205-28.82575409-19.62404756l-48.91927648-123.9413531c-18.40341303-46.75969229-55.77360888-84.0359932-102.53330118-102.53330117l-123.94135309-48.91927649c-11.83076552-4.69474822-19.62404757-16.05603892-19.62404757-28.8257541s7.79328205-24.13100586 19.62404757-28.82575407l123.94135309-48.91927649c46.75969229-18.40341303 84.0359932-55.77360888 102.53330118-102.53330119l48.91927648-123.94135308c4.69474822-11.83076552 16.05603892-19.62404757 28.8257541-19.62404757s24.13100586 7.79328205 28.82575408 19.62404757l48.91927648 123.94135308c18.40341303 46.75969229 55.77360888 84.0359932 102.53330118 102.53330119l123.94135309 48.91927649c11.83076552 4.69474822 19.62404757 16.05603892 19.62404757 28.82575407 0 12.76971517-7.79328205 24.13100586-19.62404757 28.8257541l-123.94135309 48.91927649c-46.75969229 18.40341303-84.0359932 55.77360888-102.53330118 102.53330117l-48.91927648 123.9413531c-4.69474822 11.83076552-16.14993388 19.62404757-28.82575408 19.62404756zM177.45224165 390.12433614l50.89107073 20.0935224c62.62794129 24.69437565 112.67395736 74.74039171 137.368333 137.36833299l20.09352239 50.89107073 20.0935224-50.89107073c24.69437565-62.62794129 74.74039171-112.67395736 137.368333-137.36833299l50.89107072-20.0935224-50.89107073-20.09352239c-62.62794129-24.69437565-112.67395736-74.74039171-137.36833299-137.36833301l-20.09352239-50.89107074-20.0935224 50.89107074c-24.69437565 62.62794129-74.74039171 112.67395736-137.368333 137.36833301l-50.89107073 20.09352239zM771.33789183 957.62550131c-12.76971517 0-24.13100586-7.79328205-28.82575409-19.62404758l-26.6661699-67.6043744c-8.63833672-21.87752672-26.10280012-39.34199011-47.98032684-47.98032684l-67.60437441-26.6661699c-11.83076552-4.69474822-19.62404757-16.05603892-19.62404757-28.82575409s7.79328205-24.13100586 19.62404757-28.82575409l67.60437441-26.6661699c21.87752672-8.63833672 39.34199011-26.10280012 47.98032684-47.98032685l26.6661699-67.6043744c4.69474822-11.83076552 16.05603892-19.62404757 28.82575409-19.62404757s24.13100586 7.79328205 28.82575409 19.62404757l26.66616991 67.6043744c8.63833672 21.87752672 26.10280012 39.34199011 47.98032684 47.98032685l67.6043744 26.6661699c11.83076552 4.69474822 19.62404757 16.05603892 19.62404757 28.82575409s-7.79328205 24.13100586-19.62404757 28.82575409l-67.6043744 26.6661699c-21.87752672 8.63833672-39.34199011 26.10280012-47.98032684 47.98032684l-26.66616991 67.6043744c-4.69474822 11.83076552-16.14993388 19.62404757-28.82575409 19.62404758z m-75.58544639-190.70067281c33.61439727 14.83540438 60.75004201 41.87715415 75.49155143 75.49155143 14.83540438-33.61439727 41.87715415-60.75004201 75.49155142-75.49155143-33.61439727-14.83540438-60.75004201-41.87715415-75.49155142-75.49155143-14.74150942 33.61439727-41.87715415 60.75004201-75.49155143 75.49155143z"}})])])]):e._e()])},Pf=[];const jf={name:"AIAssistantFloatButton",data(){return{position:{x:24,y:24,fromRight:!0,fromBottom:!0,collapsed:!1},dragging:!1,positionLoaded:!1,cacheKey:"aiAssistant.floatButtonPosition",btnSize:44,collapsedHeight:48,collapseThreshold:12,collapseDelayDesktop:1e3,collapseDelayMobile:5e3,collapseTimer:null,record:{},operationModule:null,operationSessionId:null}},computed:{...z(["microAppsIds"]),aiInstalled(){var e;return(e=this.microAppsIds)==null?void 0:e.includes("ai")},visible(){var e;return this.aiInstalled&&this.userId>0&&this.positionLoaded&&this.routeName!=="login"&&!((e=this.$parent)!=null&&e.showModal)},collapsed(){return this.position.collapsed},clientWidth(){return this.windowWidth||document.documentElement.clientWidth},clientHeight(){return this.windowHeight||document.documentElement.clientHeight},wrapperWidth(){return this.btnSize+this.position.x},wrapperLeft(){return this.position.fromRight?this.clientWidth-this.wrapperWidth:0},wrapperTop(){return(this.position.fromBottom?this.clientHeight-this.btnSize/2-this.position.y:this.position.y+this.btnSize/2)-this.wrapperHeight/2},wrapperClass(){return{"is-left":!this.position.fromRight,"is-right":this.position.fromRight,"is-dragging":this.dragging,"is-collapsed":this.collapsed}},wrapperHeight(){return this.collapsed?this.collapsedHeight:this.btnSize},wrapperStyle(){var e;return{left:`${this.wrapperLeft}px`,top:`${this.wrapperTop}px`,width:`${this.wrapperWidth}px`,height:`${this.wrapperHeight}px`,zIndex:((e=this.$parent)==null?void 0:e.topZIndex)||2e3}},btnClass(){return{"is-collapsed":this.collapsed}},btnStyle(){return this.collapsed?{transform:"translateX(0)"}:{transform:`translateX(${this.position.fromRight?-this.position.x:this.position.x}px)`}}},mounted(){this.loadPosition(),window.addEventListener("resize",this.onResize),T.on("openAIAssistantGlobal",this.onClick),T.on("aiAssistantClosed",this.onAssistantClosed),T.on("aiOperationRequest",this.onOperationRequest),this.initOperationModule()},beforeDestroy(){window.removeEventListener("resize",this.onResize),T.off("openAIAssistantGlobal",this.onClick),T.off("aiAssistantClosed",this.onAssistantClosed),T.off("aiOperationRequest",this.onOperationRequest),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("contextmenu",this.onContextMenu),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd),document.removeEventListener("touchcancel",this.onTouchEnd),this.clearCollapseTimer(),this.destroyOperationModule()},methods:{async loadPosition(){var e;try{const s=await $A.IDBString(this.cacheKey);if(s){const t=JSON.parse(s);if(t&&typeof t.x=="number"&&typeof t.y=="number"){this.position={...t,collapsed:(e=t.collapsed)!=null?e:!1},this.$nextTick(()=>{this.checkBounds(),this.positionLoaded=!0,this.scheduleCollapse()});return}}}catch{}this.position=this.windowPortrait?{x:12,y:Math.max(Math.round(this.clientHeight/4),100),fromRight:!0,fromBottom:!0,collapsed:!1}:{x:24,y:100,fromRight:!0,fromBottom:!0,collapsed:!1},this.positionLoaded=!0,this.scheduleCollapse()},savePosition(){$A.IDBSave(this.cacheKey,JSON.stringify(this.position))},updatePositionFromCoords(e,s){const t=e+this.btnSize/2,i=s+this.btnSize/2,n=t>=this.clientWidth/2,r=i>=this.clientHeight/2,o=n?this.clientWidth-this.btnSize-e:e,a=r?this.clientHeight-this.btnSize-s:s;this.position={x:o,y:a,fromRight:n,fromBottom:r,collapsed:this.position.collapsed}},onMouseDown(e){if(e.button!==0)return;if(this.clearCollapseTimer(),this.collapsed){this.onClick();return}const s=this.$refs.floatBtn.getBoundingClientRect();this.record={time:Date.now(),startLeft:s.left,startTop:s.top,offsetX:e.clientX-s.left,offsetY:e.clientY-s.top},this.dragging=!0,document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("contextmenu",this.onContextMenu)},onContextMenu(){this.dragging&&this.onMouseUp()},onMouseMove(e){if(!this.dragging)return;const s=12;let t=e.clientX-this.record.offsetX,i=e.clientY-this.record.offsetY;t=Math.max(s,Math.min(t,this.clientWidth-this.btnSize-s)),i=Math.max(s,Math.min(i,this.clientHeight-this.btnSize-s)),this.updatePositionFromCoords(t,i)},onMouseUp(){document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("contextmenu",this.onContextMenu);const e=this.$refs.floatBtn.getBoundingClientRect(),s=Math.abs(e.left-this.record.startLeft)+Math.abs(e.top-this.record.startTop),t=Date.now()-this.record.time;this.savePosition(),this.dragging=!1,s<5&&t<200&&this.onClick(),this.scheduleCollapse()},onTouchStart(e){if(e.touches.length!==1)return;this.clearCollapseTimer();const s=e.touches[0],t=this.$refs.floatBtn.getBoundingClientRect();this.record={time:Date.now(),startLeft:t.left,startTop:t.top,offsetX:s.clientX-t.left,offsetY:s.clientY-t.top,startCollapsed:this.collapsed},this.dragging=!0,document.addEventListener("touchmove",this.onTouchMove,{passive:!1}),document.addEventListener("touchend",this.onTouchEnd),document.addEventListener("touchcancel",this.onTouchEnd)},onTouchMove(e){if(!this.dragging||e.touches.length!==1)return;e.preventDefault();const s=e.touches[0];this.position.collapsed&&(this.position.collapsed=!1);let t=s.clientX-this.record.offsetX,i=s.clientY-this.record.offsetY;const n=this.btnSize/3,r=this.btnSize-n;t=Math.max(-r,Math.min(t,this.clientWidth-n)),i=Math.max(-r,Math.min(i,this.clientHeight-n)),this.updatePositionFromCoords(t,i)},onTouchEnd(){if(document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd),document.removeEventListener("touchcancel",this.onTouchEnd),!this.dragging)return;const e=this.$refs.floatBtn.getBoundingClientRect(),s=Math.abs(e.left-this.record.startLeft)+Math.abs(e.top-this.record.startTop),t=Date.now()-this.record.time;if(this.dragging=!1,s<5&&t<200){this.record.startCollapsed?(this.position.collapsed=!1,this.position.x=12,this.scheduleCollapse()):this.onClick(),this.savePosition();return}this.position.x<12?this.position.collapsed=!0:(this.position.x=12,this.scheduleCollapse()),this.savePosition()},onMouseEnter(){this.clearCollapseTimer(),this.collapsed&&(this.position.collapsed=!1,this.savePosition())},onMouseLeave(){this.dragging||this.scheduleCollapse()},scheduleCollapse(){if(this.clearCollapseTimer(),this.windowPortrait||this.position.x<=this.collapseThreshold){const e=this.windowPortrait?this.collapseDelayMobile:this.collapseDelayDesktop;this.collapseTimer=setTimeout(()=>{this.position.collapsed=!0,this.savePosition()},e)}},clearCollapseTimer(){this.collapseTimer&&(clearTimeout(this.collapseTimer),this.collapseTimer=null)},checkBounds(){const s=this.clientWidth-this.btnSize-12,t=this.clientHeight-this.btnSize-12;this.position.x=Math.max(12,Math.min(this.position.x,s)),this.position.y=Math.max(12,Math.min(this.position.y,t))},onResize(){this.$nextTick(()=>{this.checkBounds()})},onClick(){this.enableOperationModule(),T.emit("openAIAssistant",{displayMode:"chat",sessionKey:"global",showApplyButton:!1,onDynamicSystem:()=>this.operationSessionId?`\u9875\u9762\u64CD\u4F5C\u4F1A\u8BDD operation_session_id=${this.operationSessionId}\u3002
\u5F53\u8C03\u7528\u9700\u8981\u7ED1\u5B9A\u5F53\u524D\u9875\u9762\u64CD\u4F5C\u4F1A\u8BDD\u7684\u5DE5\u5177\u65F6\uFF0C\u4F20\u5165\u8BE5 ID\uFF1B\u666E\u901A\u56DE\u7B54\u4E0D\u8981\u63D0\u53CA\u5B83\uFF0C\u4E0D\u8981\u4FEE\u6539\u6216\u81C6\u9020\u5B83\u3002`:null})},onAssistantClosed(){this.disableOperationModule()},initOperationModule(){this.operationModule||(this.operationModule=Ef({store:this.$store,router:this.$router}))},enableOperationModule(){this.operationSessionId=$A.getSessionStorageString("userWsFd")||null},disableOperationModule(){this.operationSessionId=null},destroyOperationModule(){this.operationModule=null,this.operationSessionId=null},async onOperationRequest(e){const{requestId:s,action:t,payload:i}=e||{};if(!(!s||!t)){this.operationModule||this.initOperationModule();try{const n=await this.operationModule.handleRequest(t,i);this.$store.dispatch("websocketSend",{type:"operationResult",data:{requestId:s,success:!0,result:n}}).catch(r=>{})}catch(n){this.$store.dispatch("websocketSend",{type:"operationResult",data:{requestId:s,success:!1,error:(n==null?void 0:n.message)||"\u64CD\u4F5C\u6267\u884C\u5931\u8D25"}}).catch(r=>{})}}}}},Ti={};var Rf=A(jf,Mf,Pf,!1,Of,null,null,null);function Of(e){for(let s in Ti)this[s]=Ti[s]}var zf=function(){return Rf.exports}(),Uf=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.displayMode==="chat"?t("div",{directives:[{name:"transfer-dom",rawName:"v-transfer-dom"}],attrs:{"data-transfer":!0}},[t("transition",{attrs:{name:"fade"}},[e.visible&&e.isMobile?t("div",{staticClass:"ai-assistant-chat-mask",style:{zIndex:e.zIndex-1}}):e._e()]),t("transition",{attrs:{name:"fade"}},[e.visible?t("div",{ref:"chatWindow",staticClass:"ai-assistant-chat",class:{"is-fullscreen":e.effectiveFullscreen,"is-mobile-fullscreen":e.isMobile},style:e.chatStyle},[e.isMobile?e._e():t("div",{staticClass:"ai-assistant-fullscreen",on:{click:e.toggleFullscreen}},[e.isFullscreen?t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"}},[t("polyline",{attrs:{points:"4 10 10 10 10 4"}}),t("polyline",{attrs:{points:"14 4 14 10 20 10"}}),t("polyline",{attrs:{points:"10 20 10 14 4 14"}}),t("polyline",{attrs:{points:"20 14 14 14 14 20"}})]):t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"}},[t("polyline",{attrs:{points:"5 9 5 5 9 5"}}),t("polyline",{attrs:{points:"19 9 19 5 15 5"}}),t("polyline",{attrs:{points:"5 15 5 19 9 19"}}),t("polyline",{attrs:{points:"19 15 19 19 15 19"}})])]),t("Icon",{staticClass:"ai-assistant-close",attrs:{type:"ios-close"},on:{click:e.onClose}}),t("div",{staticClass:"ai-assistant-drag-handle",on:{dblclick:e.toggleFullscreen,mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onDragMouseDown.apply(null,arguments)}}},[e._t("header")],2),e._t("default"),e.effectiveFullscreen?e._e():[t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-n",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"n")}}}),t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-s",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"s")}}}),t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-e",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"e")}}}),t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-w",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"w")}}}),t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-ne",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"ne")}}}),t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-nw",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"nw")}}}),t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-se",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"se")}}}),t("div",{staticClass:"ai-assistant-resize-handle ai-assistant-resize-sw",on:{mousedown:function(i){return i.stopPropagation(),i.preventDefault(),e.onResizeMouseDown(i,"sw")}}})]],2):e._e()]),t("Modal",{attrs:{mask:!1,"mask-closable":!1,"footer-hide":!0,"transition-names":["",""],beforeClose:e.onAssistClose,"class-name":"ai-assistant-assist"},model:{value:e.visible,callback:function(i){e.visible=i},expression:"visible"}})],1):t("Modal",{attrs:{width:e.shouldCreateNewSession?"440px":"600px","mask-closable":!1,"footer-hide":!0,"class-name":"ai-assistant-modal"},scopedSlots:e._u([{key:"header",fn:function(){return[e._t("header")]},proxy:!0}],null,!0),model:{value:e.visible,callback:function(i){e.visible=i},expression:"visible"}},[e._t("default")],2)},Nf=[];const Bf={name:"AssistantModal",directives:{TransferDom:un},props:{value:{type:Boolean,default:!1},displayMode:{type:String,default:"modal"},shouldCreateNewSession:{type:Boolean,default:!1},zIndex:{type:Number,default:2e3}},data(){return{position:{x:24,y:24,fromRight:!0,fromBottom:!0},dragging:!1,positionLoaded:!1,cacheKey:"aiAssistant.chatPosition",sizeCacheKey:"aiAssistant.chatSize",windowSize:{width:460,height:600},customSize:{width:null,height:null},minSize:{width:380,height:400},maxSize:{width:800,height:900},record:{},resizing:!1,resizeDirection:null,resizeRecord:{},isFullscreen:!1}},computed:{visible:{get(){return this.value},set(e){this.$emit("input",e)}},clientWidth(){return this.windowWidth},clientHeight(){return this.windowHeight},isMobile(){return this.windowWidth<576},effectiveFullscreen(){return this.isFullscreen||this.isMobile},left(){return this.position.fromRight?this.clientWidth-this.windowSize.width-this.position.x:this.position.x},top(){return this.position.fromBottom?this.clientHeight-this.windowSize.height-this.position.y:this.position.y},chatStyle(){if(!this.positionLoaded)return{opacity:0,zIndex:this.zIndex};if(this.effectiveFullscreen)return{zIndex:this.zIndex};const e={left:`${this.left}px`,top:`${this.top}px`,zIndex:this.zIndex};return this.customSize.width&&(e.width=`${this.customSize.width}px`),this.customSize.height&&(e.height=`${this.customSize.height}px`),e}},watch:{visible(e){e&&this.displayMode==="chat"?this.$nextTick(()=>{this.updateWindowSize()}):e||(this.isFullscreen=!1)},windowWidth(){this.onViewportChange()},windowHeight(){this.onViewportChange()}},mounted(){this.loadSizeAndPosition(),document.addEventListener("keydown",this.onGlobalEscFullscreen,!0)},beforeDestroy(){document.removeEventListener("keydown",this.onGlobalEscFullscreen,!0),document.removeEventListener("mousemove",this.onDragMouseMove),document.removeEventListener("mouseup",this.onDragMouseUp),document.removeEventListener("mousemove",this.onResizeMouseMove),document.removeEventListener("mouseup",this.onResizeMouseUp),document.removeEventListener("contextmenu",this.onContextMenu)},methods:{updateWindowSize(){const e=this.$refs.chatWindow;e&&(this.windowSize={width:e.offsetWidth,height:e.offsetHeight})},async loadPosition(){try{const e=await $A.IDBString(this.cacheKey);if(e){const s=JSON.parse(e);if(s&&typeof s.x=="number"&&typeof s.y=="number"){this.position=s,this.$nextTick(()=>{this.checkBounds(),this.positionLoaded=!0});return}}}catch{}this.position={x:24,y:24,fromRight:!0,fromBottom:!0},this.positionLoaded=!0},savePosition(){$A.IDBSave(this.cacheKey,JSON.stringify(this.position))},updatePositionFromCoords(e,s){const t=e+this.windowSize.width/2,i=s+this.windowSize.height/2,n=t>=this.clientWidth/2,r=i>=this.clientHeight/2,o=n?this.clientWidth-this.windowSize.width-e:e,a=r?this.clientHeight-this.windowSize.height-s:s;this.position={x:o,y:a,fromRight:n,fromBottom:r}},onDragMouseDown(e){e.button!==0||this.effectiveFullscreen||(this.updateWindowSize(),this.record={offsetX:e.clientX-this.left,offsetY:e.clientY-this.top},this.dragging=!0,document.addEventListener("mousemove",this.onDragMouseMove),document.addEventListener("mouseup",this.onDragMouseUp),document.addEventListener("contextmenu",this.onContextMenu))},toggleFullscreen(){this.isMobile||(this.isFullscreen=!this.isFullscreen)},onContextMenu(){this.dragging&&this.onDragMouseUp(),this.resizing&&this.onResizeMouseUp()},onDragMouseMove(e){if(!this.dragging)return;const s=12;let t=e.clientX-this.record.offsetX,i=e.clientY-this.record.offsetY;t=Math.max(s,Math.min(t,this.clientWidth-this.windowSize.width-s)),i=Math.max(s,Math.min(i,this.clientHeight-this.windowSize.height-s)),this.updatePositionFromCoords(t,i)},onDragMouseUp(){document.removeEventListener("mousemove",this.onDragMouseMove),document.removeEventListener("mouseup",this.onDragMouseUp),document.removeEventListener("contextmenu",this.onContextMenu),this.savePosition(),this.dragging=!1},onResizeMouseDown(e,s){e.button===0&&(this.updateWindowSize(),this.resizeDirection=s,this.resizeRecord={startX:e.clientX,startY:e.clientY,startWidth:this.windowSize.width,startHeight:this.windowSize.height,startLeft:this.left,startTop:this.top},this.resizing=!0,document.addEventListener("mousemove",this.onResizeMouseMove),document.addEventListener("mouseup",this.onResizeMouseUp),document.addEventListener("contextmenu",this.onContextMenu))},onResizeMouseMove(e){if(!this.resizing)return;const s=this.resizeDirection,t=e.clientX-this.resizeRecord.startX,i=e.clientY-this.resizeRecord.startY;let n=this.resizeRecord.startWidth,r=this.resizeRecord.startHeight,o=this.resizeRecord.startLeft,a=this.resizeRecord.startTop;s.includes("e")&&(n=this.resizeRecord.startWidth+t),s.includes("w")&&(n=this.resizeRecord.startWidth-t,o=this.resizeRecord.startLeft+t),s.includes("s")&&(r=this.resizeRecord.startHeight+i),s.includes("n")&&(r=this.resizeRecord.startHeight-i,a=this.resizeRecord.startTop+i);const l=12,c=Math.min(this.maxSize.width,this.clientWidth-l*2),d=Math.min(this.maxSize.height,this.clientHeight-l*2);if(n=Math.max(this.minSize.width,Math.min(n,c)),r=Math.max(this.minSize.height,Math.min(r,d)),s.includes("w")){const h=n-this.resizeRecord.startWidth;o=this.resizeRecord.startLeft-h}if(s.includes("n")){const h=r-this.resizeRecord.startHeight;a=this.resizeRecord.startTop-h}o=Math.max(l,Math.min(o,this.clientWidth-n-l)),a=Math.max(l,Math.min(a,this.clientHeight-r-l)),this.customSize.width=n,this.customSize.height=r,this.windowSize.width=n,this.windowSize.height=r,this.updatePositionFromCoords(o,a)},onResizeMouseUp(){document.removeEventListener("mousemove",this.onResizeMouseMove),document.removeEventListener("mouseup",this.onResizeMouseUp),document.removeEventListener("contextmenu",this.onContextMenu),this.saveSize(),this.savePosition(),this.resizing=!1,this.resizeDirection=null},async loadSizeAndPosition(){await this.loadSize(),await this.loadPosition()},async loadSize(){try{const e=await $A.IDBString(this.sizeCacheKey);if(e){const s=JSON.parse(e);s&&typeof s.width=="number"&&typeof s.height=="number"&&(this.customSize={width:Math.max(this.minSize.width,Math.min(s.width,this.maxSize.width)),height:Math.max(this.minSize.height,Math.min(s.height,this.maxSize.height))},this.windowSize.width=this.customSize.width,this.windowSize.height=this.customSize.height)}}catch{}},saveSize(){this.customSize.width&&this.customSize.height&&$A.IDBSave(this.sizeCacheKey,JSON.stringify(this.customSize))},checkBounds(){const s=this.clientWidth-this.windowSize.width-12,t=this.clientHeight-this.windowSize.height-12;this.position.x=Math.max(12,Math.min(this.position.x,s)),this.position.y=Math.max(12,Math.min(this.position.y,t))},onViewportChange(){this.constrainSizeToScreen(),this.checkBounds()},constrainSizeToScreen(){const s=this.clientWidth-24,t=this.clientHeight-12*2;this.customSize.width&&this.customSize.width>s&&(this.customSize.width=Math.max(this.minSize.width,s),this.windowSize.width=this.customSize.width),this.customSize.height&&this.customSize.height>t&&(this.customSize.height=Math.max(this.minSize.height,t),this.windowSize.height=this.customSize.height)},onGlobalEscFullscreen(e){e.key!=="Escape"&&e.keyCode!==27||this.displayMode==="chat"&&this.visible&&this.isFullscreen&&(e.stopImmediatePropagation(),e.preventDefault(),this.isFullscreen=!1)},onAssistClose(){return new Promise(()=>{this.onClose()})},prepareForNavigate(){if(this.displayMode!=="chat"){this.$emit("input",!1);return}this.isMobile?this.$emit("input",!1):this.isFullscreen&&(this.isFullscreen=!1)},onClose(){this.$emit("input",!1)}}},Ii={};var Ff=A(Bf,Uf,Nf,!1,Hf,null,null,null);function Hf(e){for(let s in Ii)this[s]=Ii[s]}var Wf=function(){return Ff.exports}(),Vf=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("span",{staticClass:"prompt-image-wrapper",on:{click:e.showPreview}},[e.imageUrl?t("img",{staticClass:"prompt-image-thumb",attrs:{src:e.imageUrl,alt:"uploaded image"}}):t("span",{staticClass:"prompt-image-placeholder"},[t("i",{staticClass:"taskfont"},[e._v("\uE6EF")])])])},Yf=[];const qf={name:"PromptImage",props:{imageId:{type:String,required:!0},getImage:{type:Function,required:!0}},data(){return{imageUrl:null,loading:!0}},mounted(){this.loadImage()},methods:{async loadImage(){try{const e=await this.getImage(this.imageId);this.imageUrl=e}catch(e){console.warn("[PromptImage] \u52A0\u8F7D\u56FE\u7247\u5931\u8D25:",e)}finally{this.loading=!1}},showPreview(){this.imageUrl&&this.$store.dispatch("previewImage",this.imageUrl)}}},Di={};var Kf=A(qf,Vf,Yf,!1,Gf,"52916529",null,null);function Gf(e){for(let s in Di)this[s]=Di[s]}var Jf=function(){return Kf.exports}();function Qf(e,s={}){const t=e.state.taskId;if(t>0)return Ei(e,t);const i=e.state.dialogModalShow,n=e.state.dialogId;if(i&&n>0)return zt(e,n);switch(e.state.routeName){case"manage-dashboard":return te("dashboard","\u5DE5\u4F5C\u4EEA\u8868\u76D8");case"manage-project":return Zf(e);case"manage-messenger":return em(e);case"manage-calendar":return te("calendar","\u65E5\u5386\u9875");case"manage-file":return te("file-list","\u6587\u4EF6\u5217\u8868\u9875");case"single-task":case"single-task-content":return Ei(e,s.taskId);case"single-dialog":return zt(e,s.dialogId);case"single-file":return Li(s.codeOrFileId);case"single-file-task":return Li(s.fileId);case"single-report-edit":return Mi(s.reportEditId,"\u5DE5\u4F5C\u6C47\u62A5\u7F16\u8F91");case"single-report-detail":return Mi(s.reportDetailId,"\u5DE5\u4F5C\u6C47\u62A5\u8BE6\u60C5");default:return null}}function Xf(e,s){if(!e)return"";const t=s?"[\u9875\u9762\u5207\u6362]":"[\u5F53\u524D\u9875\u9762]",i=[],n=e.entity;n&&(n.id!==void 0&&n.id!==null&&n.id!==""&&i.push(`${n.type}_id=${n.id}`),n.name&&i.push(`\u540D\u79F0:${n.name}`),n.dialogType&&i.push(`\u5BF9\u8BDD\u7C7B\u578B:${n.dialogType}`));const r=i.length?`(${i.join(",")})`:"";return`${t} ${e.pageLabel}${r}`}function te(e,s,t=null){return{contextKey:e,pageLabel:s,entity:t}}function Ei(e,s){const t=Number(s);if(!t)return te("task","\u4EFB\u52A1\u8BE6\u60C5\u9875");const i=(e.state.cacheTasks||[]).find(n=>n.id===t);return te(`task:${t}`,"\u4EFB\u52A1\u8BE6\u60C5\u9875",{type:"task",id:t,name:(i==null?void 0:i.name)||""})}function zt(e,s){const t=Number(s);if(!t)return te("dialog","\u5BF9\u8BDD\u9875");const i=(e.state.cacheDialogs||[]).find(n=>n.id===t);return te(`dialog:${t}`,"\u5BF9\u8BDD\u9875",{type:"dialog",id:t,name:(i==null?void 0:i.name)||"",dialogType:tm(i==null?void 0:i.type)})}function Zf(e){const s=e.getters.projectData;return s!=null&&s.id?te(`project:${s.id}`,"\u9879\u76EE\u8BE6\u60C5\u9875",{type:"project",id:s.id,name:s.name||""}):te("project-list","\u9879\u76EE\u5217\u8868\u9875")}function em(e){const s=e.state.dialogId;return s?zt(e,s):te("messenger","\u6D88\u606F\u5217\u8868\u9875")}function Li(e){return e?te(`file:${e}`,"\u6587\u4EF6\u9875",{type:"file",id:e,name:""}):te("file","\u6587\u4EF6\u9875")}function Mi(e,s){return e?te(`report:${e}`,s,{type:"report",id:e,name:""}):te("report",s)}function tm(e){return e?e==="group"?"\u7FA4\u804A":e==="user"?"\u79C1\u804A":String(e):""}const m={task:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 11l3 3L22 4"/><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"/></svg>',list:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><line x1="3" y1="6" x2="3.01" y2="6"/><line x1="3" y1="12" x2="3.01" y2="12"/><line x1="3" y1="18" x2="3.01" y2="18"/></svg>',search:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>',calendar:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>',document:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/></svg>',plus:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>',message:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>',chart:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="18" y1="20" x2="18" y2="10"/><line x1="12" y1="20" x2="12" y2="4"/><line x1="6" y1="20" x2="6" y2="14"/></svg>',alert:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>',folder:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/></svg>',edit:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/></svg>',user:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>',send:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="22" y1="2" x2="11" y2="13"/><polygon points="22 2 15 22 11 13 2 9 22 2"/></svg>',clock:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>',check:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="20 6 9 17 4 12"/></svg>',flag:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"/><line x1="4" y1="22" x2="4" y2="15"/></svg>',clipboard:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/><rect x="8" y="2" width="8" height="4" rx="1" ry="1"/><line x1="8" y1="10" x2="16" y2="10"/><line x1="8" y1="14" x2="16" y2="14"/><line x1="8" y1="18" x2="13" y2="18"/></svg>',link:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M10 13a5 5 0 0 1 0-7l1-1a5 5 0 0 1 7 7l-1 1"/><path d="M14 11a5 5 0 0 1 0 7l-1 1a5 5 0 0 1-7-7l1-1"/></svg>'};function sm(e){return typeof e=="string"?e:M&&M.includes("zh")?e.zh:e.en}const f={QUERY:"query",ACTION:"action",SYNC:"sync",REVIEW:"review"};function it(e){const s=[...e];for(let t=s.length-1;t>0;t--){const i=Math.floor(Math.random()*(t+1));[s[t],s[i]]=[s[i],s[t]]}return s}function Pi(e,s){if(e.length<=s)return e;const t=[...e];for(let i=0;i<s;i++){const n=i+Math.floor(Math.random()*(t.length-i));[t[i],t[n]]=[t[n],t[i]]}return t.slice(0,s)}function Et(e){const s=Math.floor(Math.random()*4)+3;return im(e,s).map(i=>({text:sm(i.text),svg:i.svg}))}function im(e,s){const t=Array.isArray(e)?e.filter(Boolean):[];if(t.length<=s)return it(t);const i=[],n=new Set,r=t.filter(v=>v&&v.pin),o=t.filter(v=>!(v!=null&&v.pin)),a=Math.min(r.length,s);Pi(it(r),a).forEach(v=>{i.push(v),n.add(v)});let c=s-i.length;if(c<=0)return i;const d=new Set(i.map(v=>v.type).filter(Boolean)),h=o.filter(v=>!n.has(v)),u=new Map;if(h.forEach(v=>{const y=v.type||f.QUERY;u.has(y)||u.set(y,[]),u.get(y).push(v)}),it(Array.from(u.keys()).filter(v=>!d.has(v))).forEach(v=>{if(c<=0)return;const y=u.get(v)||[];if(y.length===0)return;const w=y[Math.floor(Math.random()*y.length)];i.push(w),n.add(w),d.add(v),c--}),c<=0)return i;const g=h.filter(v=>!n.has(v)),_=Pi(it(g),c);return i.concat(_)}function nm(e,s={}){if(e.state.taskId>0)return Et(Lt());const i=e.state.dialogModalShow,n=e.state.dialogId;if(i&&n>0)return Et(ji());const r=e.state.routeName,a={"manage-dashboard":rm,"manage-project":om,"manage-messenger":am,"manage-calendar":lm,"manage-file":cm,"single-task":Lt,"single-task-content":Lt,"single-dialog":ji,"single-file":um,"single-file-task":dm,"single-report-edit":hm,"single-report-detail":pm}[r],l=a?a(e,s):fm(e);return Et(l)}function rm(e){const s=e.getters.dashboardTask||{},t=[],i=s.overdue_count||0,n=s.today_count||0,r=(s.today||[]).filter(a=>a.name),o=r.length>0?r[Math.floor(Math.random()*r.length)].name:null;return i>0&&t.push({text:{zh:`\u5217\u51FA\u6211\u7684 ${i} \u4E2A\u903E\u671F\u4EFB\u52A1`,en:`List my ${i} overdue tasks`},svg:m.alert,type:f.QUERY,pin:!0}),n>0&&t.push({text:{zh:"\u4ECA\u5929\u5230\u671F\u4EFB\u52A1\u6709\u54EA\u4E9B\uFF1F",en:"What tasks are due today?"},svg:m.calendar,type:f.QUERY,pin:!0}),t.push({text:{zh:"\u6309\u4F18\u5148\u7EA7\u6392\u4ECA\u5929\u4EFB\u52A1",en:"Prioritize my tasks for today"},svg:m.flag,type:f.ACTION},{text:{zh:"\u6C47\u603B\u903E\u671F\u4EFB\u52A1\u5E76\u7ED9\u65B9\u6848",en:"Summarize overdue tasks with actions"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u672C\u5468\u5230\u671F\u4EFB\u52A1\u6709\u54EA\u4E9B\uFF1F",en:"What tasks are due this week?"},svg:m.list,type:f.QUERY},{text:{zh:"\u627E\u51FA\u6700\u8FD1\u505C\u6EDE\u7684\u4EFB\u52A1",en:"Find recently stalled tasks"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u54EA\u4E9B\u4EFB\u52A1\u7F3A\u8D1F\u8D23\u4EBA\u6216\u622A\u6B62\uFF1F",en:"Which tasks lack owner or due date?"},svg:m.edit,type:f.REVIEW},{text:{zh:"\u6211\u9700\u8981\u534F\u52A9\u7684\u4EFB\u52A1\u6E05\u5355",en:"Tasks that need my assistance"},svg:m.user,type:f.QUERY},{text:{zh:"\u751F\u6210\u4ECA\u65E5\u5DE5\u4F5C\u540C\u6B65\u6587\u6848",en:"Draft today status update"},svg:m.message,type:f.SYNC},{text:{zh:"\u751F\u6210\u672C\u5468\u5468\u62A5\u8349\u7A3F",en:"Generate weekly report draft"},svg:m.document,type:f.SYNC},{text:{zh:"\u6309\u9879\u76EE\u6C47\u603B\u672A\u5B8C\u6210\u4EFB\u52A1",en:"Summarize my pending tasks by project"},svg:m.folder,type:f.QUERY},{text:{zh:"\u672A\u67657\u5929\u5230\u671F\u4EFB\u52A1\u6E05\u5355",en:"Tasks due in the next 7 days"},svg:m.calendar,type:f.QUERY},{text:{zh:"\u672C\u5468\u5DF2\u5B8C\u6210\u4EFB\u52A1\u56DE\u987E",en:"Review tasks completed this week"},svg:m.clipboard,type:f.REVIEW},{text:{zh:"\u627E\u51FA\u65E0\u63CF\u8FF0\u7684\u4EFB\u52A1",en:"Find tasks missing descriptions"},svg:m.edit,type:f.REVIEW},{text:{zh:"\u5B50\u4EFB\u52A1\u672A\u5B8C\u6210\u7684\u4E3B\u4EFB\u52A1",en:"Parent tasks with incomplete subtasks"},svg:m.task,type:f.REVIEW},{text:{zh:"\u641C\u7D22\u201C\u98CE\u9669/\u5EF6\u671F/\u963B\u585E\u201D",en:"Search \u201Crisk/delay/blocker\u201D"},svg:m.search,type:f.QUERY},{text:{zh:"\u5E2E\u6211\u5217\u51FA\u4ECA\u59293\u4E2A\u76EE\u6807",en:"List my 3 key goals for today"},svg:m.flag,type:f.ACTION},o?{text:{zh:`\u603B\u7ED3\u300C${o}\u300D\u7684\u8FDB\u5C55`,en:`Summarize progress of "${o}"`},svg:m.clipboard,type:f.REVIEW}:null,{text:{zh:"\u751F\u6210\u7ED9\u8001\u677F\u7684\u7B80\u77ED\u8FDB\u5EA6",en:"Draft a short status update for my manager"},svg:m.send,type:f.SYNC}),t.filter(Boolean)}function om(e){return(e.getters.projectData||{}).id?[{text:{zh:"\u9879\u76EE\u672A\u5B8C\u6210\u4EFB\u52A1\u6E05\u5355",en:"List incomplete tasks in this project"},svg:m.list,type:f.QUERY},{text:{zh:"\u9879\u76EE\u903E\u671F\u4EFB\u52A1\u4E0E\u539F\u56E0\u6982\u89C8",en:"Overdue tasks & reasons overview"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u67E5\u770B\u9879\u76EE\u770B\u677F\u5217\u914D\u7F6E",en:"View board columns configuration"},svg:m.list,type:f.QUERY},{text:{zh:"\u6210\u5458\u8D1F\u8F7D\u4E0E\u5206\u914D\u5EFA\u8BAE",en:"Member workload & assignment suggestions"},svg:m.chart,type:f.REVIEW},{text:{zh:"\u521B\u5EFA\u4EFB\u52A1\u5E76\u6307\u6D3E\u8D1F\u8D23\u4EBA",en:"Create a task and assign an owner"},svg:m.plus,type:f.ACTION},{text:{zh:"\u628A\u9700\u6C42\u62C6\u6210\u53EF\u6267\u884C\u4EFB\u52A1",en:"Break a requirement into tasks"},svg:m.edit,type:f.ACTION},{text:{zh:"\u6C47\u603B\u9879\u76EE\u98CE\u9669\u4E0E\u963B\u585E\u9879",en:"Summarize risks and blockers"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u751F\u6210\u672C\u5468\u9879\u76EE\u63A8\u8FDB\u7B80\u62A5",en:"Generate this week project update"},svg:m.document,type:f.SYNC},{text:{zh:"\u641C\u7D22\u9879\u76EE\u76F8\u5173\u8D44\u6599",en:"Search project related docs"},svg:m.search,type:f.QUERY},{text:{zh:"\u67E5\u770B\u9879\u76EE\u6210\u5458\u5217\u8868\u4E0E\u89D2\u8272",en:"View project members and roles"},svg:m.user,type:f.QUERY},{text:{zh:"\u672C\u9879\u76EE\u672C\u5468\u5230\u671F\u4EFB\u52A1",en:"Tasks due this week in this project"},svg:m.calendar,type:f.QUERY},{text:{zh:"\u672C\u9879\u76EE\u7F3A\u8D1F\u8D23\u4EBA\u4EFB\u52A1",en:"Tasks missing an owner in this project"},svg:m.user,type:f.REVIEW},{text:{zh:"\u672C\u9879\u76EE\u65E0\u622A\u6B62\u4EFB\u52A1",en:"Tasks without due date in this project"},svg:m.clock,type:f.REVIEW},{text:{zh:"\u6309\u770B\u677F\u5217\u7EDF\u8BA1\u4EFB\u52A1\u91CF",en:"Task counts by board column"},svg:m.chart,type:f.REVIEW},{text:{zh:"\u6309\u6210\u5458\u7EDF\u8BA1\u4EFB\u52A1\u8D1F\u8F7D",en:"Task workload by member"},svg:m.chart,type:f.REVIEW},{text:{zh:"\u4F18\u5316\u9879\u76EE\u63CF\u8FF0\u4E0E\u76EE\u6807",en:"Improve project description and goals"},svg:m.edit,type:f.ACTION},{text:{zh:"\u751F\u6210\u9879\u76EE\u98CE\u9669\u63D0\u9192\u6587\u6848",en:"Draft a project risk reminder"},svg:m.message,type:f.SYNC},{text:{zh:"\u628A\u903E\u671F\u4EFB\u52A1\u6574\u7406\u6210\u8DDF\u8FDB\u6E05\u5355",en:"Turn overdue tasks into a follow-up checklist"},svg:m.clipboard,type:f.ACTION},{text:{zh:"\u751F\u6210\u9879\u76EE\u5468\u4F1A\u540C\u6B65\u7A3F",en:"Draft a weekly project meeting update"},svg:m.clipboard,type:f.SYNC}]:[{text:{zh:"\u6211\u53C2\u4E0E\u7684\u9879\u76EE\u6709\u54EA\u4E9B\uFF1F",en:"Which projects am I involved in?"},svg:m.folder,type:f.QUERY},{text:{zh:"\u6309\u5173\u952E\u8BCD\u641C\u7D22\u9879\u76EE",en:"Search projects by keyword"},svg:m.search,type:f.QUERY},{text:{zh:"\u54EA\u4E9B\u9879\u76EE\u903E\u671F\u6700\u4E25\u91CD\uFF1F",en:"Which projects have the most overdue tasks?"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u5BF9\u6BD4\u9879\u76EE\u5065\u5EB7\u5EA6",en:"Compare project health"},svg:m.chart,type:f.REVIEW},{text:{zh:"\u751F\u6210\u9879\u76EE\u6982\u89C8\u7B80\u62A5",en:"Generate a project overview brief"},svg:m.document,type:f.SYNC},{text:{zh:"\u5E2E\u6211\u521B\u5EFA\u4E00\u4E2A\u65B0\u9879\u76EE",en:"Help me create a new project"},svg:m.plus,type:f.ACTION},{text:{zh:"\u67E5\u770B\u6211\u8D1F\u8D23\u7684\u9879\u76EE",en:"List projects I own"},svg:m.user,type:f.QUERY},{text:{zh:"\u67E5\u770B\u5DF2\u5F52\u6863\u9879\u76EE",en:"View archived projects"},svg:m.folder,type:f.QUERY},{text:{zh:"\u521B\u5EFA\u4E2A\u4EBA\u9879\u76EE\uFF08\u4E2A\u4EBA\u5F85\u529E\uFF09",en:"Create a personal project (personal to-dos)"},svg:m.plus,type:f.ACTION},{text:{zh:"\u65B0\u5EFA\u9879\u76EE\u5E76\u8BBE\u7F6E\u770B\u677F\u5217",en:"Create a project with default columns"},svg:m.plus,type:f.ACTION},{text:{zh:"\u751F\u6210\u672C\u5468\u9879\u76EE\u5468\u4F1A\u63D0\u7EB2",en:"Generate weekly project meeting outline"},svg:m.clipboard,type:f.SYNC},{text:{zh:"\u627E\u51FA\u6700\u4E45\u672A\u66F4\u65B0\u9879\u76EE",en:"Find least recently updated projects"},svg:m.alert,type:f.REVIEW}]}function am(e){const s=e.state.dialogId,t=e.state.cacheDialogs||[],i=t.find(l=>l.id===s),n=t.filter(l=>l.type==="user"&&l.name&&!l.bot),r=n.length>0?n[Math.floor(Math.random()*n.length)].name:null,o=t.filter(l=>l.type==="group"&&l.name),a=o.length>0?o[Math.floor(Math.random()*o.length)].name:null;return i?[{text:{zh:"\u603B\u7ED3\u8FD1\u671F\u5BF9\u8BDD\u8981\u70B9\u4E0E\u7ED3\u8BBA",en:"Summarize recent chat highlights"},svg:m.document,type:f.REVIEW},{text:{zh:"\u63D0\u53D6\u5BF9\u8BDD\u5F85\u529E\u5E76\u5EFA\u4EFB\u52A1",en:"Extract to-dos and create tasks"},svg:m.task,type:f.ACTION},{text:{zh:"\u5217\u51FA\u5BF9\u8BDD\u91CC\u7684\u6587\u4EF6\u4E0E\u94FE\u63A5",en:"List files and links in this chat"},svg:m.link,type:f.QUERY},{text:{zh:"\u641C\u7D22\u5BF9\u8BDD\u5173\u952E\u8BCD\u5E76\u6458\u8981",en:"Search chat keyword with context"},svg:m.search,type:f.QUERY},{text:{zh:"\u7ED9\u6211\u4E09\u79CD\u63A8\u8FDB\u56DE\u590D\u7248\u672C",en:"Give 3 reply options to move forward"},svg:m.message,type:f.SYNC},{text:{zh:"\u751F\u6210\u4F1A\u8BAE\u7EAA\u8981\uFF08\u53EF\u76F4\u63A5\u53D1\uFF09",en:"Generate meeting notes to send"},svg:m.clipboard,type:f.SYNC},{text:{zh:"\u5217\u51FA\u672C\u5BF9\u8BDD\u5F85\u529E\uFF08TODO\uFF09",en:"List to-dos in this chat"},svg:m.clipboard,type:f.QUERY},{text:{zh:"\u5217\u51FA\u672C\u5BF9\u8BDD\u6587\u4EF6\uFF08File\uFF09",en:"List files in this chat"},svg:m.folder,type:f.QUERY},{text:{zh:"\u5217\u51FA\u672C\u5BF9\u8BDD\u4F1A\u8BAE\u7EAA\u8981",en:"List meeting notes in this chat"},svg:m.clipboard,type:f.REVIEW},{text:{zh:"\u628A\u884C\u52A8\u6E05\u5355\u53D1\u5230\u5BF9\u8BDD",en:"Send action list to this chat"},svg:m.send,type:f.SYNC},{text:{zh:"\u751F\u6210\u5F85\u786E\u8BA4\u95EE\u9898\u6E05\u5355",en:"Generate questions to confirm"},svg:m.alert,type:f.SYNC},{text:{zh:"\u8BC6\u522B\u672A\u51B3\u95EE\u9898\u5E76\u7ED9\u63A8\u8FDB\u8BDD\u672F",en:"Find open issues and draft follow-ups"},svg:m.message,type:f.SYNC},{text:{zh:"\u628A\u5F85\u529E\u5EFA\u4EFB\u52A1\u5E76\u5EFA\u8BAE\u8D1F\u8D23\u4EBA",en:"Create tasks from to-dos with owner suggestions"},svg:m.task,type:f.ACTION},{text:{zh:"\u56DE\u987E\u672C\u5BF9\u8BDD\u5173\u952E\u51B3\u5B9A",en:"Review key decisions in this chat"},svg:m.clipboard,type:f.REVIEW}]:[{text:{zh:"\u6309\u540D\u79F0\u627E\u5BF9\u8BDD",en:"Find a chat by name"},svg:m.search,type:f.QUERY},{text:{zh:"\u6309\u540D\u5B57/\u90AE\u7BB1\u627E\u4EBA",en:"Find a person by name/email"},svg:m.user,type:f.QUERY},{text:r?{zh:`\u7ED9 ${r} \u53D1\u9001\u4E00\u6761\u6D88\u606F`,en:`Send a message to ${r}`}:{zh:"\u7ED9\u67D0\u4EBA\u53D1\u9001\u4E00\u6761\u6D88\u606F",en:"Send a message to someone"},svg:m.send,type:f.ACTION},{text:{zh:"\u641C\u7D22\u5173\u952E\u8BCD\u6D88\u606F",en:"Search messages by keyword"},svg:m.search,type:f.QUERY},{text:{zh:"\u751F\u6210\u793C\u8C8C\u50AC\u529E\u8BDD\u672F",en:"Draft a polite follow-up message"},svg:m.edit,type:f.SYNC},{text:{zh:"\u751F\u6210\u8FDB\u5EA6\u540C\u6B65\u6587\u6848",en:"Draft a progress update message"},svg:m.document,type:f.SYNC},r?{text:{zh:`\u56DE\u987E\u4E0E ${r} \u6700\u8FD1\u5BF9\u8BDD\u8981\u70B9`,en:`Review highlights with ${r}`},svg:m.clipboard,type:f.REVIEW}:null,r?{text:{zh:`\u628A\u4E0E ${r} \u804A\u5929\u6574\u7406\u6210\u5F85\u529E`,en:`Turn chat with ${r} into to-dos`},svg:m.clipboard,type:f.ACTION}:null,r?{text:{zh:`\u7ED9 ${r} \u5199\u786E\u8BA4\u53E3\u5F84`,en:`Draft a confirmation message to ${r}`},svg:m.message,type:f.SYNC}:null,r?{text:{zh:`\u7ED9 ${r} \u5199\u50AC\u529E\u6D88\u606F\uFF08\u59D4\u5A49\u7248\uFF09`,en:`Draft a gentle follow-up to ${r}`},svg:m.edit,type:f.SYNC}:null,a?{text:{zh:`\u7ED9\u300C${a}\u300D\u53D1\u8FDB\u5EA6\u540C\u6B65`,en:`Send a progress update to "${a}"`},svg:m.send,type:f.SYNC}:null,{text:{zh:"\u641C\u7D22\u4F1A\u8BAE\u7EAA\u8981\u6D88\u606F",en:"Search meeting notes messages"},svg:m.search,type:f.QUERY},{text:{zh:"\u641C\u7D22\u5F85\u529E\u76F8\u5173\u6D88\u606F",en:"Search to-do related messages"},svg:m.search,type:f.QUERY},{text:{zh:"\u6574\u7406\u6700\u8FD1\u6C9F\u901A\u5F85\u529E",en:"Summarize my recent communication to-dos"},svg:m.clipboard,type:f.REVIEW}].filter(Boolean)}function lm(){return[{text:{zh:"\u4ECA\u5929\u5230\u671F\u4EFB\u52A1\u6E05\u5355",en:"Tasks due today"},svg:m.calendar,type:f.QUERY},{text:{zh:"\u672C\u5468\u5230\u671F\u4EFB\u52A1\u6E05\u5355",en:"Tasks due this week"},svg:m.list,type:f.QUERY},{text:{zh:"\u4E0B\u5468\u4EFB\u52A1\u5B89\u6392\u5EFA\u8BAE",en:"Suggestions for next week plan"},svg:m.clock,type:f.ACTION},{text:{zh:"\u622A\u6B62\u65E5\u671F\u51B2\u7A81\u6392\u67E5",en:"Check due-date conflicts"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u903E\u671F\u4EFB\u52A1\u600E\u4E48\u91CD\u6392\u671F",en:"Reschedule overdue tasks"},svg:m.calendar,type:f.ACTION},{text:{zh:"\u672A\u6765\u4E24\u5468\u98CE\u9669\u9884\u8B66\u70B9",en:"Risks in the next two weeks"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u751F\u6210\u4E0B\u5468\u5DE5\u4F5C\u8BA1\u5212\u8349\u6848",en:"Draft next week work plan"},svg:m.document,type:f.SYNC},{text:{zh:"\u672C\u6708\u4EFB\u52A1\u6982\u89C8\uFF08\u5230\u671F/\u5B8C\u6210\uFF09",en:"Monthly task overview (due/completed)"},svg:m.chart,type:f.REVIEW},{text:{zh:"\u672A\u676530\u5929\u5230\u671F\u4EFB\u52A1",en:"Tasks due in the next 30 days"},svg:m.calendar,type:f.QUERY},{text:{zh:"\u672C\u5468\u6BCF\u5929\u8BE5\u505A\u4EC0\u4E48\uFF08\u65F6\u95F4\u5757\uFF09",en:"Daily plan suggestion for this week"},svg:m.clock,type:f.ACTION},{text:{zh:"\u627E\u51FA\u540C\u4E00\u5929\u4EFB\u52A1\u8FC7\u591A\u7684\u65E5\u671F",en:"Find days with too many tasks"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u751F\u6210\u5468\u8BA1\u5212\u540C\u6B65\u7ED9\u56E2\u961F",en:"Draft weekly plan update to the team"},svg:m.send,type:f.SYNC},{text:{zh:"\u641C\u7D22\u201C\u4E0B\u5468\u201D\u76F8\u5173\u4EFB\u52A1\u6D88\u606F",en:"Search \u201Cnext week\u201D in tasks/messages"},svg:m.search,type:f.QUERY}]}function cm(e){const t=((e.getters.dashboardTask||{}).today||[]).filter(n=>n.name),i=t.length>0?t[Math.floor(Math.random()*t.length)].name:null;return[{text:{zh:"\u641C\u7D22\u6587\u4EF6\uFF08\u540D\u79F0/\u5173\u952E\u8BCD\uFF09",en:"Search files by name/keyword"},svg:m.search,type:f.QUERY},{text:{zh:"\u67E5\u770B\u5171\u4EAB\u6587\u4EF6\u5217\u8868",en:"View shared files"},svg:m.folder,type:f.QUERY},{text:i?{zh:`\u67E5\u627E\u300C${i}\u300D\u7684\u9644\u4EF6`,en:`Find attachments of "${i}"`}:{zh:"\u67E5\u627E\u67D0\u4E2A\u4EFB\u52A1\u7684\u9644\u4EF6",en:"Find attachments of a task"},svg:m.task,type:f.QUERY},{text:{zh:"\u9605\u8BFB\u6587\u4EF6\u5E76\u603B\u7ED3\u8981\u70B9",en:"Read a file and summarize"},svg:m.document,type:f.REVIEW},{text:{zh:"\u4ECE\u6587\u4EF6\u63D0\u53D6\u884C\u52A8\u9879\u6E05\u5355",en:"Extract action items from files"},svg:m.clipboard,type:f.ACTION},{text:{zh:"\u751F\u6210\u6587\u4EF6\u8F6C\u53D1\u8BF4\u660E\u6587\u6848",en:"Draft a file sharing note"},svg:m.send,type:f.SYNC},{text:{zh:"\u641C\u7D22\u9879\u76EE\u76F8\u5173\u8D44\u6599",en:"Search project related docs"},svg:m.search,type:f.QUERY},{text:{zh:"\u641C\u7D22\u201C\u9700\u6C42/PRD/\u65B9\u6848\u201D\u6587\u4EF6",en:"Search \u201CPRD/spec/design\u201D files"},svg:m.search,type:f.QUERY},{text:{zh:"\u641C\u7D22\u201C\u4F1A\u8BAE\u7EAA\u8981/\u590D\u76D8\u201D\u6587\u4EF6",en:"Search meeting notes/retrospective files"},svg:m.search,type:f.QUERY},{text:{zh:"\u5BF9\u6BD4\u4E24\u4EFD\u76F8\u4F3C\u6587\u4EF6\u5DEE\u5F02",en:"Compare differences between similar files"},svg:m.document,type:f.REVIEW},{text:{zh:"\u628A\u6587\u4EF6\u8981\u70B9\u5199\u6210\u4EFB\u52A1\u63CF\u8FF0",en:"Turn file highlights into a task description"},svg:m.edit,type:f.ACTION},{text:{zh:"\u4ECE\u6587\u4EF6\u63D0\u53D6\u98CE\u9669\u4E0E\u5F85\u786E\u8BA4\u70B9",en:"Extract risks and questions to confirm"},svg:m.alert,type:f.REVIEW},i?{text:{zh:`\u627E\u4E0E\u300C${i}\u300D\u76F8\u5173\u7684\u6587\u4EF6`,en:`Find files related to "${i}"`},svg:m.search,type:f.QUERY}:null].filter(Boolean)}function Lt(){return[{text:{zh:"\u8865\u5168\u4EFB\u52A1\u4FE1\u606F\u4E0E\u9A8C\u6536\u6807\u51C6",en:"Fill task details and acceptance criteria"},svg:m.edit,type:f.ACTION},{text:{zh:"\u628A\u4EFB\u52A1\u62C6\u6210\u5B50\u4EFB\u52A1\u6E05\u5355",en:"Break down into subtasks"},svg:m.list,type:f.ACTION},{text:{zh:"\u7ACB\u523B\u6DFB\u52A0\u4E00\u4E2A\u5B50\u4EFB\u52A1",en:"Add a subtask now"},svg:m.plus,type:f.ACTION},{text:{zh:"\u8C03\u6574\u8D1F\u8D23\u4EBA/\u534F\u52A9\u4EBA",en:"Adjust owner/assignees"},svg:m.user,type:f.ACTION},{text:{zh:"\u4FEE\u6539\u5F00\u59CB\u4E0E\u622A\u6B62\u65F6\u95F4",en:"Change start and due dates"},svg:m.clock,type:f.ACTION},{text:{zh:"\u628A\u4EFB\u52A1\u79FB\u52A8\u5230\u770B\u677F\u5217",en:"Move task to a board column"},svg:m.list,type:f.ACTION},{text:{zh:"\u5C06\u4EFB\u52A1\u6807\u8BB0\u4E3A\u5B8C\u6210",en:"Mark this task as complete"},svg:m.check,type:f.ACTION},{text:{zh:"\u751F\u6210\u4EFB\u52A1\u8FDB\u5C55\u540C\u6B65\u6587\u6848",en:"Draft a task progress update"},svg:m.message,type:f.SYNC},{text:{zh:"\u67E5\u770B\u8FD9\u4E2A\u4EFB\u52A1\u7684\u9644\u4EF6\u5217\u8868",en:"View task attachments"},svg:m.folder,type:f.QUERY},{text:{zh:"\u67E5\u770B\u5B50\u4EFB\u52A1\u8FDB\u5EA6\u4E0E\u5B8C\u6210\u7387",en:"View subtask progress and completion rate"},svg:m.chart,type:f.REVIEW},{text:{zh:"\u64A4\u9500\u5DF2\u5B8C\u6210\u72B6\u6001",en:"Undo completion status"},svg:m.alert,type:f.ACTION},{text:{zh:"\u6574\u7406\u4EFB\u52A1\u63CF\u8FF0\u4E3A\u8981\u70B9\u7248",en:"Rewrite task description into key points"},svg:m.clipboard,type:f.REVIEW},{text:{zh:"\u751F\u6210\u9A8C\u6536\u68C0\u67E5\u6E05\u5355",en:"Generate acceptance checklist"},svg:m.check,type:f.REVIEW},{text:{zh:"\u57FA\u4E8E\u4EFB\u52A1\u5199\u4E00\u6761\u50AC\u529E\u6D88\u606F",en:"Draft a follow-up message for this task"},svg:m.send,type:f.SYNC},{text:{zh:"\u641C\u7D22\u4E0E\u8BE5\u4EFB\u52A1\u76F8\u5173\u8D44\u6599",en:"Search docs/messages related to this task"},svg:m.search,type:f.QUERY}]}function ji(){return[{text:{zh:"\u603B\u7ED3\u5BF9\u8BDD\u91CD\u70B9\u4E0E\u5F85\u529E",en:"Summarize highlights and to-dos"},svg:m.document,type:f.REVIEW},{text:{zh:"\u63D0\u53D6\u5F85\u529E\u5E76\u521B\u5EFA\u4EFB\u52A1",en:"Extract to-dos and create tasks"},svg:m.task,type:f.ACTION},{text:{zh:"\u5217\u51FA\u5BF9\u8BDD\u4E2D\u7684\u6587\u4EF6",en:"List files in this chat"},svg:m.folder,type:f.QUERY},{text:{zh:"\u5E2E\u6211\u5199\u63A8\u8FDB\u56DE\u590D",en:"Draft a reply to move forward"},svg:m.message,type:f.SYNC},{text:{zh:"\u751F\u6210\u5BF9\u8BDD\u7EAA\u8981\u6458\u8981",en:"Generate chat summary notes"},svg:m.clipboard,type:f.SYNC},{text:{zh:"\u641C\u7D22\u5BF9\u8BDD\u5173\u952E\u8BCD\u5E76\u7ED3\u8BBA",en:"Search keyword and summarize findings"},svg:m.search,type:f.QUERY},{text:{zh:"\u5217\u51FA\u672C\u5BF9\u8BDD\u5F85\u529E\uFF08TODO\uFF09",en:"List to-dos in this chat"},svg:m.clipboard,type:f.QUERY},{text:{zh:"\u5217\u51FA\u672C\u5BF9\u8BDD\u4F1A\u8BAE\u7EAA\u8981",en:"List meeting notes in this chat"},svg:m.clipboard,type:f.REVIEW},{text:{zh:"\u628A\u884C\u52A8\u6E05\u5355\u53D1\u5230\u5BF9\u8BDD",en:"Send action list to this chat"},svg:m.send,type:f.SYNC},{text:{zh:"\u751F\u6210\u5F85\u786E\u8BA4\u95EE\u9898\u6E05\u5355",en:"Generate questions to confirm"},svg:m.alert,type:f.SYNC},{text:{zh:"\u628A\u5F85\u529E\u5EFA\u4EFB\u52A1\u5E76\u5EFA\u8BAE\u8D1F\u8D23\u4EBA",en:"Create tasks from to-dos with owner suggestions"},svg:m.task,type:f.ACTION}]}function um(){return[{text:{zh:"\u603B\u7ED3\u6587\u4EF6\u8981\u70B9\u4E0E\u7ED3\u8BBA",en:"Summarize key points and conclusions"},svg:m.document,type:f.REVIEW},{text:{zh:"\u4ECE\u6587\u4EF6\u63D0\u53D6\u4EFB\u52A1\u6E05\u5355",en:"Extract tasks from this file"},svg:m.task,type:f.ACTION},{text:{zh:"\u751F\u6210\u6587\u4EF6\u5206\u4EAB\u8BF4\u660E",en:"Draft a file sharing note"},svg:m.send,type:f.SYNC},{text:{zh:"\u641C\u7D22\u76F8\u4F3C\u6587\u4EF6\u5E76\u5BF9\u6BD4",en:"Find similar files and compare"},svg:m.search,type:f.REVIEW},{text:{zh:"\u67E5\u627E\u5173\u8054\u7684\u4EFB\u52A1/\u9879\u76EE",en:"Find related tasks/projects"},svg:m.list,type:f.QUERY},{text:{zh:"\u5217\u51FA\u9700\u8981\u786E\u8BA4\u7684\u95EE\u9898",en:"List questions to clarify"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u67E5\u770B\u6587\u4EF6\u8BE6\u60C5\uFF08\u5927\u5C0F/\u6765\u6E90\uFF09",en:"View file details (size/source)"},svg:m.document,type:f.QUERY},{text:{zh:"\u63D0\u53D6\u5173\u952E\u6BB5\u843D\u6458\u8981",en:"Extract key paragraphs summary"},svg:m.clipboard,type:f.REVIEW},{text:{zh:"\u4ECE\u6587\u4EF6\u63D0\u53D6\u98CE\u9669\u4E0E\u5F85\u786E\u8BA4\u70B9",en:"Extract risks and questions to confirm"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u628A\u6587\u4EF6\u5185\u5BB9\u5199\u6210\u6C47\u62A5\u7D20\u6750",en:"Turn file content into report material"},svg:m.document,type:f.SYNC},{text:{zh:"\u641C\u7D22\u4E0E\u8BE5\u6587\u4EF6\u76F8\u5173\u7684\u6D88\u606F",en:"Search messages related to this file"},svg:m.search,type:f.QUERY}]}function dm(){return[{text:{zh:"\u67E5\u770B\u8BE5\u4EFB\u52A1\u5168\u90E8\u9644\u4EF6",en:"View all attachments"},svg:m.folder,type:f.QUERY},{text:{zh:"\u603B\u7ED3\u9644\u4EF6\u8981\u70B9\u4E0E\u98CE\u9669",en:"Summarize attachment highlights and risks"},svg:m.document,type:f.REVIEW},{text:{zh:"\u4ECE\u9644\u4EF6\u63D0\u53D6\u884C\u52A8\u9879",en:"Extract action items from attachments"},svg:m.clipboard,type:f.ACTION},{text:{zh:"\u7528\u9644\u4EF6\u5185\u5BB9\u5B8C\u5584\u4EFB\u52A1\u63CF\u8FF0",en:"Improve task description from attachments"},svg:m.edit,type:f.ACTION},{text:{zh:"\u751F\u6210\u9A8C\u6536\u68C0\u67E5\u6E05\u5355",en:"Generate acceptance checklist"},svg:m.check,type:f.REVIEW},{text:{zh:"\u57FA\u4E8E\u9644\u4EF6\u62C6\u5206\u5B50\u4EFB\u52A1",en:"Create subtasks based on attachments"},svg:m.plus,type:f.ACTION},{text:{zh:"\u628A\u9644\u4EF6\u6458\u8981\u5199\u5165\u4EFB\u52A1\u63CF\u8FF0",en:"Write attachment summary into task description"},svg:m.edit,type:f.ACTION},{text:{zh:"\u9644\u4EF6\u5185\u5BB9\u751F\u6210\u5B50\u4EFB\u52A1\u5E76\u6392\u5E8F",en:"Generate and prioritize subtasks from attachments"},svg:m.list,type:f.ACTION},{text:{zh:"\u4ECE\u9644\u4EF6\u751F\u6210\u9A8C\u6536\u6807\u51C6\u8349\u7A3F",en:"Draft acceptance criteria from attachments"},svg:m.check,type:f.REVIEW},{text:{zh:"\u57FA\u4E8E\u9644\u4EF6\u5217\u51FA\u7591\u95EE\u6E05\u5355",en:"List questions based on attachments"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u628A\u9644\u4EF6\u8981\u70B9\u5199\u6210\u540C\u6B65\u6587\u6848",en:"Draft an update message from attachment highlights"},svg:m.send,type:f.SYNC}]}function hm(){return[{text:{zh:"\u57FA\u4E8E\u672C\u5468\u4EFB\u52A1\u751F\u6210\u5468\u62A5",en:"Generate weekly report from tasks"},svg:m.document,type:f.SYNC},{text:{zh:"\u57FA\u4E8E\u4ECA\u5929\u4EFB\u52A1\u751F\u6210\u65E5\u62A5",en:"Generate daily report from tasks"},svg:m.calendar,type:f.SYNC},{text:{zh:"\u67E5\u770B\u6211\u4E0A\u5468\u7684\u6C47\u62A5",en:"View my last week's report"},svg:m.search,type:f.QUERY},{text:{zh:"\u6C47\u603B\u672C\u5468\u5DF2\u5B8C\u6210\u4E8B\u9879",en:"Summarize completed items this week"},svg:m.check,type:f.REVIEW},{text:{zh:"\u6C47\u603B\u672C\u5468\u672A\u5B8C\u6210\u4E0E\u539F\u56E0",en:"Summarize unfinished items and reasons"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u8865\u5145\u98CE\u9669\u4E0E\u9700\u8981\u652F\u6301",en:"Add risks and needed support"},svg:m.alert,type:f.SYNC},{text:{zh:"\u751F\u6210\u4E0B\u5468\u8BA1\u5212\u4E0E\u91CD\u70B9",en:"Generate next week plan and focus"},svg:m.list,type:f.SYNC},{text:{zh:"\u6DA6\u8272\u4E3A\u66F4\u4E13\u4E1A\u8868\u8FBE",en:"Polish for more professional tone"},svg:m.edit,type:f.ACTION},{text:{zh:"\u63D0\u4EA4\u6C47\u62A5\u7ED9\u6307\u5B9A\u540C\u4E8B",en:"Submit report to specified people"},svg:m.send,type:f.ACTION},{text:{zh:"\u67E5\u770B\u6211\u6700\u8FD1\u7684\u5468\u62A5\u5217\u8868",en:"View my recent weekly reports"},svg:m.search,type:f.QUERY},{text:{zh:"\u67E5\u770B\u6211\u6700\u8FD1\u7684\u65E5\u62A5\u5217\u8868",en:"View my recent daily reports"},svg:m.search,type:f.QUERY},{text:{zh:"\u751F\u6210\u7BA1\u7406\u5C42\u7248\u672C\u5468\u62A5",en:"Generate an executive version weekly report"},svg:m.document,type:f.SYNC},{text:{zh:"\u63D0\u70BC\u672C\u5468\u4EAE\u70B9\u6210\u679C\uFF08\u53EF\u91CF\u5316\uFF09",en:"Extract highlights this week (quantifiable)"},svg:m.clipboard,type:f.REVIEW},{text:{zh:"\u672C\u5468\u6700\u5927\u98CE\u9669\u4E0E\u5E94\u5BF9\u52A8\u4F5C",en:"Top risks this week and mitigation actions"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u628A\u5468\u62A5\u6539\u5199\u6210\u7FA4\u53D1\u7248\u672C",en:"Rewrite weekly report for group sharing"},svg:m.message,type:f.SYNC},{text:{zh:"\u63D0\u4EA4\u524D\u68C0\u67E5\u7ED3\u6784\u4E0E\u91CD\u70B9",en:"Check structure and key points before submitting"},svg:m.clipboard,type:f.REVIEW},{text:{zh:"\u81EA\u52A8\u8865\u672A\u5B8C\u6210\u539F\u56E0\u4E0E\u8BA1\u5212",en:"Auto-fill unfinished reasons and next steps"},svg:m.edit,type:f.SYNC},{text:{zh:"\u751F\u6210\u9700\u8981\u534F\u52A9\u4E8B\u9879\u6E05\u5355",en:"Generate a list of help needed"},svg:m.user,type:f.SYNC}]}function pm(){return[{text:{zh:"\u603B\u7ED3\u8FD9\u4EFD\u6C47\u62A5\u5173\u952E\u70B9",en:"Summarize key points of this report"},svg:m.document,type:f.REVIEW},{text:{zh:"\u63D0\u53D6\u6C47\u62A5\u91CC\u7684\u5F85\u529E\u4E8B\u9879",en:"Extract action items from this report"},svg:m.clipboard,type:f.ACTION},{text:{zh:"\u627E\u51FA\u6C47\u62A5\u63D0\u5230\u7684\u4EFB\u52A1",en:"Find tasks mentioned in this report"},svg:m.task,type:f.QUERY},{text:{zh:"\u751F\u6210\u4E00\u6761\u56DE\u590D\u8BC4\u8BBA\u6587\u6848",en:"Draft a reply/comment"},svg:m.message,type:f.SYNC},{text:{zh:"\u6807\u8BB0\u4E3A\u5DF2\u8BFB",en:"Mark as read"},svg:m.check,type:f.ACTION},{text:{zh:"\u6807\u8BB0\u4E3A\u672A\u8BFB",en:"Mark as unread"},svg:m.alert,type:f.ACTION},{text:{zh:"\u67E5\u770BTA\u7684\u5176\u4ED6\u6C47\u62A5",en:"View other reports from this person"},svg:m.list,type:f.QUERY},{text:{zh:"\u628A\u6C47\u62A5\u6574\u7406\u6210\u8DDF\u8FDB\u6E05\u5355",en:"Turn this report into a follow-up checklist"},svg:m.clipboard,type:f.ACTION},{text:{zh:"\u751F\u6210\u9700\u8981\u8FFD\u95EE\u76845\u4E2A\u95EE\u9898",en:"Generate 5 follow-up questions"},svg:m.alert,type:f.SYNC},{text:{zh:"\u628A\u5F85\u529E\u8F6C\u6210\u4EFB\u52A1\u5E76\u5EFA\u8BAE\u8D1F\u8D23\u4EBA",en:"Convert action items to tasks with owner suggestions"},svg:m.task,type:f.ACTION},{text:{zh:"\u603B\u7ED3\u98CE\u9669\u70B9\u5E76\u7ED9\u51FA\u5EFA\u8BAE",en:"Summarize risks and give suggestions"},svg:m.alert,type:f.REVIEW},{text:{zh:"\u67E5\u770B\u5BF9\u65B9\u672C\u5468/\u4E0A\u5468\u6C47\u62A5",en:"View this person\u2019s reports this/last week"},svg:m.search,type:f.QUERY},{text:{zh:"\u67E5\u627E\u6C47\u62A5\u76F8\u5173\u4EFB\u52A1\u8BE6\u60C5",en:"Find details of related tasks"},svg:m.search,type:f.QUERY}]}function fm(e){var n;const t=(((n=e==null?void 0:e.state)==null?void 0:n.cacheDialogs)||[]).filter(r=>r.type==="user"&&r.name&&!r.bot),i=t.length>0?t[Math.floor(Math.random()*t.length)].name:null;return[{text:{zh:"\u6211\u6709\u54EA\u4E9B\u672A\u5B8C\u6210\u4EFB\u52A1\uFF1F",en:"What tasks do I have pending?"},svg:m.task,type:f.QUERY},{text:{zh:"\u5168\u5C40\u667A\u80FD\u641C\u7D22\uFF08\u4EFB\u52A1/\u9879\u76EE/\u6587\u4EF6\uFF09",en:"Global smart search (tasks/projects/files)"},svg:m.search,type:f.QUERY},{text:{zh:"\u5E2E\u6211\u521B\u5EFA\u4E00\u4E2A\u4EFB\u52A1",en:"Help me create a task"},svg:m.plus,type:f.ACTION},{text:{zh:"\u67E5\u770B\u6211\u7684\u9879\u76EE\u5217\u8868",en:"View my projects"},svg:m.folder,type:f.QUERY},{text:{zh:"\u5E2E\u6211\u5199\u4E00\u4EFD\u5DE5\u4F5C\u6C47\u62A5",en:"Help me write a work report"},svg:m.document,type:f.SYNC},{text:i?{zh:`\u7ED9 ${i} \u53D1\u6D88\u606F\u5E76\u8BF4\u660E\u80CC\u666F`,en:`Send a message to ${i} with context`}:{zh:"\u7ED9\u67D0\u4EBA\u53D1\u6D88\u606F\u5E76\u8BF4\u660E\u80CC\u666F",en:"Send a message with context"},svg:m.send,type:f.SYNC},{text:{zh:"\u67E5\u770B\u672A\u8BFB\u7684\u5DE5\u4F5C\u6C47\u62A5",en:"View unread work reports"},svg:m.alert,type:f.QUERY},{text:{zh:"\u4E00\u952E\u6807\u8BB0\u672A\u8BFB\u4E3A\u5DF2\u8BFB",en:"Mark all unread reports as read"},svg:m.check,type:f.ACTION},{text:{zh:'\u641C\u7D22"\u98CE\u9669/\u5EF6\u671F/\u963B\u585E"\u5185\u5BB9',en:'Search "risk/delay/blocker" content'},svg:m.search,type:f.QUERY},{text:{zh:"\u521B\u5EFA\u9879\u76EE\u5E76\u8BBE\u7F6E\u770B\u677F\u5217",en:"Create a project with board columns"},svg:m.plus,type:f.ACTION},{text:{zh:"\u628A\u4E00\u4E2A\u60F3\u6CD5\u62C6\u6210\u4EFB\u52A1\u8BA1\u5212",en:"Turn an idea into a task plan"},svg:m.edit,type:f.ACTION},{text:{zh:"\u627E\u51FA\u6211\u6700\u8BE5\u5148\u505A\u76843\u4EF6\u4E8B",en:"Find the top 3 things I should do first"},svg:m.flag,type:f.REVIEW},{text:i?{zh:`\u7ED9 ${i} \u51993\u4E2A\u6D88\u606F\u7248\u672C`,en:`Draft 3 message options to ${i}`}:{zh:"\u7ED9\u67D0\u4EBA\u51993\u4E2A\u6D88\u606F\u7248\u672C",en:"Draft 3 message options to someone"},svg:m.message,type:f.SYNC}]}var mm=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("AssistantModal",{ref:"assistantModal",attrs:{displayMode:e.displayMode,shouldCreateNewSession:e.shouldCreateNewSession,zIndex:e.topZIndex},model:{value:e.showModal,callback:function(i){e.showModal=i},expression:"showModal"}},[t("div",{staticClass:"ai-assistant-header",attrs:{slot:"header"},slot:"header"},[t("div",{staticClass:"ai-assistant-header-title"},[t("i",{staticClass:"taskfont"},[e._v("\uE8A1")]),t("span",[e._v(e._s(e.modalTitle||e.$L("AI \u52A9\u624B")))])]),t("div",{staticClass:"ai-assistant-header-actions"},[e.sessionEnabled&&(e.responses.length>0||e.hasSessionHistory)?t("div",{staticClass:"ai-assistant-header-btn",attrs:{title:e.$L("\u65B0\u5EFA\u4F1A\u8BDD")},on:{click:function(i){return e.createNewSession()}}},[t("i",{staticClass:"taskfont"},[e._v("\uE6F2")])]):e._e(),e.sessionEnabled&&e.hasSessionHistory?t("Dropdown",{attrs:{trigger:"click",placement:"bottom-end",transfer:!0,"z-index":e.topZIndex+1},on:{"on-visible-change":e.onHistoryVisibleChange}},[t("div",{staticClass:"ai-assistant-header-btn",attrs:{title:e.$L("\u5386\u53F2\u4F1A\u8BDD")}},[t("i",{staticClass:"taskfont"},[e._v("\uE6E8")])]),t("DropdownMenu",{staticClass:"ai-assistant-history-menu",attrs:{slot:"list"},slot:"list"},[e._l(e.currentSessionList,function(i){return t("DropdownItem",{key:i.id,class:{active:i.id===e.currentSessionId},nativeOn:{click:function(n){return e.loadSession(i.id)}}},[t("div",{staticClass:"history-item",on:{mouseleave:e.resetDeleteConfirm}},[t("div",{staticClass:"history-item-content"},[t("div",{staticClass:"history-item-title"},[e._v(e._s(i.title))]),e.confirmingDeleteId===i.id?t("div",{staticClass:"history-item-delete history-item-delete-confirm",attrs:{title:e.$L("\u786E\u8BA4\u5220\u9664")},on:{click:function(n){return n.stopPropagation(),e.deleteSession(i.id)}}},[t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"}},[t("path",{attrs:{d:"M20 6 9 17l-5-5"}})])]):t("div",{staticClass:"history-item-delete",attrs:{title:e.$L("\u5220\u9664")},on:{click:function(n){return n.stopPropagation(),e.askDeleteSession(i.id)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE6E5")])])]),t("span",{staticClass:"history-item-time"},[e._v(e._s(e.formatSessionTime(i.updatedAt)))])])])}),t("DropdownItem",{attrs:{divided:""},nativeOn:{click:function(i){return e.clearSessionHistory.apply(null,arguments)}}},[t("div",{staticClass:"history-clear"},[e._v(" "+e._s(e.$L("\u6E05\u7A7A\u5386\u53F2\u8BB0\u5F55"))+" ")])])],2)],1):e._e()],1)]),t("div",{staticClass:"ai-assistant-content",class:{"ai-assistant-content-dragging":e.isDragging},on:{dragenter:function(i){return i.preventDefault(),e.onDragEnter.apply(null,arguments)},dragover:function(i){i.preventDefault()},dragleave:e.onDragLeave,drop:function(i){return i.preventDefault(),e.onDrop.apply(null,arguments)}}},[e.isDragging?t("div",{staticClass:"ai-assistant-drop-overlay"},[t("div",{staticClass:"ai-assistant-drop-hint"},[t("i",{staticClass:"taskfont"},[e._v("\uE7BC")]),t("span",[e._v(e._s(e.$L("\u677E\u5F00\u4EE5\u4E0A\u4F20\u56FE\u7247")))])])]):e._e(),e.visibleResponses.length?t("div",{ref:"responseContainer",staticClass:"ai-assistant-output"},e._l(e.visibleResponses,function(i){return t("div",{key:i.localId,staticClass:"ai-assistant-output-item"},[t("div",{staticClass:"ai-assistant-output-apply"},[i.status==="error"?[t("span",{staticClass:"ai-assistant-output-error"},[e._v(e._s(e.$L("\u53D1\u9001\u5931\u8D25")))])]:i.rawOutput&&i.status!=="streaming"?[e.showApplyButton?t("Button",{staticClass:"ai-assistant-apply-btn",attrs:{type:"primary",size:"small",loading:i.applyLoading},on:{click:function(n){return e.applyResponse(i)}}},[e._v(" "+e._s(e.applyButtonText||e.$L("\u5E94\u7528\u6B64\u5185\u5BB9"))+" ")]):e._e()]:!i.rawOutput||i.status==="streaming"?[t("Icon",{staticClass:"ai-assistant-output-icon icon-loading",attrs:{type:"ios-loading"}}),e.loadingText&&!i.rawOutput?t("span",{staticClass:"ai-assistant-output-status"},[e._v(e._s(e.loadingText))]):e._e()]:e._e()],2),t("div",{staticClass:"ai-assistant-output-meta"},[t("span",{staticClass:"ai-assistant-output-model"},[e._v(e._s(i.modelLabel||i.model))])]),i.prompt?t("div",{staticClass:"ai-assistant-output-question-wrap"},[e.editingIndex===e.responses.indexOf(i)?t("div",{staticClass:"ai-assistant-question-editor"},[t("Input",{ref:"editInputRef",refInFor:!0,attrs:{type:"textarea",autosize:{minRows:1,maxRows:6},maxlength:e.inputMaxlength||500},on:{"on-keydown":e.onEditKeydown},nativeOn:{compositionstart:function(n){e.isComposing=!0},compositionend:function(n){e.isComposing=!1}},model:{value:e.editingValue,callback:function(n){e.editingValue=n},expression:"editingValue"}}),t("div",{staticClass:"ai-assistant-question-editor-btns"},[t("Button",{attrs:{size:"small"},on:{click:e.cancelEditQuestion}},[e._v(e._s(e.$L("\u53D6\u6D88")))]),t("Button",{attrs:{type:"primary",size:"small",loading:e.loadIng>0},on:{click:e.submitEditedQuestion}},[e._v(e._s(e.$L("\u53D1\u9001")))])],1)],1):e._l([e.parsePromptContent(i.prompt)],function(n,r){return[t("div",{staticClass:"ai-assistant-output-question"},[n.images.length?t("div",{staticClass:"ai-assistant-output-question-images"},e._l(n.images,function(o,a){return t("PromptImage",{key:"img"+a,attrs:{"image-id":o.imageId,"get-image":e.getImageFromCache}})}),1):e._e(),t("div",{staticClass:"ai-assistant-output-question-content"},[t("span",{staticClass:"ai-assistant-output-question-text",class:{"is-expanded":e.expandedQuestionIds.includes(i.localId)},on:{click:function(o){return e.toggleQuestionExpand(i.localId)}}},[e._v(e._s(n.text))]),t("span",{staticClass:"ai-assistant-output-question-edit",attrs:{title:e.$L("\u7F16\u8F91\u95EE\u9898")},on:{click:function(o){e.startEditQuestion(e.responses.indexOf(i))}}},[t("svg",{attrs:{viewBox:"0 0 20 20",fill:"currentColor"}},[t("path",{attrs:{d:"M11.331 3.568a3.61 3.61 0 0 1 4.973.128l.128.135a3.61 3.61 0 0 1 0 4.838l-.128.135-6.292 6.29c-.324.324-.558.561-.79.752l-.235.177q-.309.21-.65.36l-.23.093c-.181.066-.369.114-.585.159l-.765.135-2.394.399c-.142.024-.294.05-.422.06-.1.007-.233.01-.378-.026l-.149-.049a1.1 1.1 0 0 1-.522-.474l-.046-.094a1.1 1.1 0 0 1-.074-.526c.01-.129.035-.28.06-.423l.398-2.394.134-.764a4 4 0 0 1 .16-.586l.093-.23q.15-.342.36-.65l.176-.235c.19-.232.429-.466.752-.79l6.291-6.292zm-5.485 7.36c-.35.35-.533.535-.66.688l-.11.147a2.7 2.7 0 0 0-.24.433l-.062.155c-.04.11-.072.225-.106.394l-.127.717-.398 2.393-.001.002h.003l2.393-.399.717-.126c.169-.034.284-.065.395-.105l.153-.062q.228-.1.433-.241l.148-.11c.153-.126.338-.31.687-.66l4.988-4.988-3.226-3.226zm9.517-6.291a2.28 2.28 0 0 0-3.053-.157l-.173.157-.364.363L15 8.226l.363-.363.157-.174a2.28 2.28 0 0 0 0-2.878z"}})])])])])]})],2):e._e(),i.rawOutput?t("DialogMarkdown",{staticClass:"ai-assistant-output-markdown no-dark-content",attrs:{text:i.displayOutput||i.rawOutput,"before-navigate":e.onMarkdownNavigate}}):t("div",{staticClass:"ai-assistant-output-placeholder"},[e._v(" "+e._s(i.status==="error"?i.error||e.$L("\u53D1\u9001\u5931\u8D25"):e.$L("\u7B49\u5F85 AI \u56DE\u590D..."))+" ")]),i.rawOutput&&i.status==="completed"?t("div",{staticClass:"ai-assistant-output-feedback"},[t("span",{staticClass:"ai-assistant-feedback-btn",attrs:{title:e.$L("\u590D\u5236")},on:{click:function(n){return e.copyResponse(i)}}},[t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.0"}},[t("rect",{attrs:{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}}),t("path",{attrs:{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}})])]),t("span",{class:["ai-assistant-feedback-btn",{active:i.feedback==="like"}],attrs:{title:e.$L("\u6709\u5E2E\u52A9")},on:{click:function(n){return e.submitFeedback(i,"like")}}},[t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.0"}},[t("path",{attrs:{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"}}),t("path",{attrs:{d:"M7 10v12"}})])]),t("span",{class:["ai-assistant-feedback-btn ai-assistant-feedback-btn-down",{active:i.feedback==="dislike"}],attrs:{title:e.$L("\u6CA1\u5E2E\u52A9")},on:{click:function(n){return e.submitFeedback(i,"dislike")}}},[t("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.0"}},[t("path",{attrs:{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z"}}),t("path",{attrs:{d:"M17 14V2"}})])]),i.createdAt?t("span",{staticClass:"ai-assistant-output-time",attrs:{title:e.$A.dayjs(i.createdAt).format("YYYY-MM-DD HH:mm:ss")}},[e._v(e._s(e.formatResponseTime(i.createdAt)))]):e._e()]):e._e()],1)}),0):e.displayMode==="chat"?t("div",{staticClass:"ai-assistant-welcome",on:{click:e.onFocus}},[t("div",{staticClass:"ai-assistant-welcome-icon"},[t("svg",{staticClass:"no-dark-content",attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M385.80516777 713.87417358c-12.76971517 0-24.13100586-7.79328205-28.82575409-19.62404756l-48.91927648-123.9413531c-18.40341303-46.75969229-55.77360888-84.0359932-102.53330118-102.53330117l-123.94135309-48.91927649c-11.83076552-4.69474822-19.62404757-16.05603892-19.62404757-28.8257541s7.79328205-24.13100586 19.62404757-28.82575407l123.94135309-48.91927649c46.75969229-18.40341303 84.0359932-55.77360888 102.53330118-102.53330119l48.91927648-123.94135308c4.69474822-11.83076552 16.05603892-19.62404757 28.8257541-19.62404757s24.13100586 7.79328205 28.82575408 19.62404757l48.91927648 123.94135308c18.40341303 46.75969229 55.77360888 84.0359932 102.53330118 102.53330119l123.94135309 48.91927649c11.83076552 4.69474822 19.62404757 16.05603892 19.62404757 28.82575407 0 12.76971517-7.79328205 24.13100586-19.62404757 28.8257541l-123.94135309 48.91927649c-46.75969229 18.40341303-84.0359932 55.77360888-102.53330118 102.53330117l-48.91927648 123.9413531c-4.69474822 11.83076552-16.14993388 19.62404757-28.82575408 19.62404756zM177.45224165 390.12433614l50.89107073 20.0935224c62.62794129 24.69437565 112.67395736 74.74039171 137.368333 137.36833299l20.09352239 50.89107073 20.0935224-50.89107073c24.69437565-62.62794129 74.74039171-112.67395736 137.368333-137.36833299l50.89107072-20.0935224-50.89107073-20.09352239c-62.62794129-24.69437565-112.67395736-74.74039171-137.36833299-137.36833301l-20.09352239-50.89107074-20.0935224 50.89107074c-24.69437565 62.62794129-74.74039171 112.67395736-137.368333 137.36833301l-50.89107073 20.09352239zM771.33789183 957.62550131c-12.76971517 0-24.13100586-7.79328205-28.82575409-19.62404758l-26.6661699-67.6043744c-8.63833672-21.87752672-26.10280012-39.34199011-47.98032684-47.98032684l-67.60437441-26.6661699c-11.83076552-4.69474822-19.62404757-16.05603892-19.62404757-28.82575409s7.79328205-24.13100586 19.62404757-28.82575409l67.60437441-26.6661699c21.87752672-8.63833672 39.34199011-26.10280012 47.98032684-47.98032685l26.6661699-67.6043744c4.69474822-11.83076552 16.05603892-19.62404757 28.82575409-19.62404757s24.13100586 7.79328205 28.82575409 19.62404757l26.66616991 67.6043744c8.63833672 21.87752672 26.10280012 39.34199011 47.98032684 47.98032685l67.6043744 26.6661699c11.83076552 4.69474822 19.62404757 16.05603892 19.62404757 28.82575409s-7.79328205 24.13100586-19.62404757 28.82575409l-67.6043744 26.6661699c-21.87752672 8.63833672-39.34199011 26.10280012-47.98032684 47.98032684l-26.66616991 67.6043744c-4.69474822 11.83076552-16.14993388 19.62404757-28.82575409 19.62404758z m-75.58544639-190.70067281c33.61439727 14.83540438 60.75004201 41.87715415 75.49155143 75.49155143 14.83540438-33.61439727 41.87715415-60.75004201 75.49155142-75.49155143-33.61439727-14.83540438-60.75004201-41.87715415-75.49155142-75.49155143-14.74150942 33.61439727-41.87715415 60.75004201-75.49155143 75.49155143z"}})])]),t("div",{staticClass:"ai-assistant-welcome-title"},[e._v(" "+e._s(e.$L("\u6B22\u8FCE\u4F7F\u7528 AI \u52A9\u624B"))+" ")]),t("div",{staticClass:"ai-assistant-welcome-prompts"},e._l(e.displayWelcomePrompts,function(i,n){return t("div",{key:n,staticClass:"ai-assistant-prompt-card",on:{click:function(r){return e.onPromptClick(i)}}},[i.svg?t("span",{staticClass:"ai-assistant-prompt-icon no-dark-content",domProps:{innerHTML:e._s(i.svg)}}):e._e(),t("span",[e._v(e._s(i.text))])])}),0)]):e._e(),t("div",{staticClass:"ai-assistant-input"},[e.pendingImages.length?t("div",{staticClass:"ai-assistant-images"},e._l(e.pendingImages,function(i){return t("div",{key:i.id,staticClass:"ai-assistant-image-item"},[t("img",{attrs:{src:i.dataUrl,alt:"preview"}}),t("div",{staticClass:"ai-assistant-image-remove",on:{click:function(n){return e.removeImage(i.id)}}},[t("i",{staticClass:"taskfont"},[e._v("\uE6E5")])])])}),0):e._e(),t("Input",{ref:"inputRef",attrs:{type:"textarea",placeholder:e.inputPlaceholder||e.$L("\u8BF7\u8F93\u5165\u4F60\u7684\u95EE\u9898..."),rows:e.inputRows||1,autosize:e.inputAutosize||{minRows:1,maxRows:6},maxlength:e.inputMaxlength||500},on:{"on-keydown":e.onInputKeydown},nativeOn:{compositionstart:function(i){e.isComposing=!0},compositionend:function(i){e.isComposing=!1},paste:function(i){return e.onPaste.apply(null,arguments)}},model:{value:e.inputValue,callback:function(i){e.inputValue=i},expression:"inputValue"}}),t("input",{ref:"imageInput",staticStyle:{display:"none"},attrs:{type:"file",accept:"image/*",multiple:""},on:{change:e.onImageSelect}}),t("div",{staticClass:"ai-assistant-footer"},[t("div",{staticClass:"ai-assistant-footer-models"},[t("Select",{attrs:{placeholder:e.$L("\u9009\u62E9\u6A21\u578B"),loading:e.modelsLoading,disabled:e.modelsLoading||e.modelGroups.length===0,"not-found-text":e.$L("\u6682\u65E0\u53EF\u7528\u6A21\u578B"),transfer:"","z-index":e.topZIndex+1},model:{value:e.inputModel,callback:function(i){e.inputModel=i},expression:"inputModel"}},e._l(e.modelGroups,function(i){return t("OptionGroup",{key:i.type,attrs:{label:i.label}},e._l(i.options,function(n){return t("Option",{key:n.id,attrs:{value:n.id}},[e._v(" "+e._s(n.label)+" ")])}),1)}),1)],1),t("div",{staticClass:"ai-assistant-footer-btns"},[t("div",{staticClass:"ai-assistant-image-btn",attrs:{title:e.$L("\u4E0A\u4F20\u56FE\u7247")},on:{click:e.triggerImageSelect}},[t("i",{staticClass:"taskfont"},[e._v("\uE7BC")])]),e.submitButtonText?t("Button",{attrs:{type:"primary",shape:"circle",icon:"md-arrow-up",loading:e.loadIng>0},on:{click:e.onSubmit}},[e._v(e._s(e.submitButtonText))]):t("Button",{attrs:{type:"primary",shape:"circle",icon:"md-arrow-up",loading:e.loadIng>0},on:{click:e.onSubmit}})],1)])],1)])])},gm=[];const _m={name:"AIAssistant",components:{AssistantModal:Wf,DialogMarkdown:J,PromptImage:Jf},floatButtonInstance:null,data(){return{displayMode:"modal",showModal:!1,closing:!1,loadIng:0,pendingAutoSubmit:!1,autoSubmitTimer:null,confirmingDeleteId:null,confirmingDeleteTimer:null,modalTitle:null,applyButtonText:null,submitButtonText:null,showApplyButton:!0,loadingText:null,inputValue:"",inputPlaceholder:null,inputRows:null,inputAutosize:null,inputMaxlength:null,applyHook:null,beforeSendHook:null,renderHook:null,dynamicSystemHook:null,inputModel:"",modelGroups:[],modelMap:{},modelsFirstLoad:!0,modelsLoading:!1,modelCacheKey:"aiAssistant.model",cachedModelId:"",isComposing:!1,responses:[],responseSeed:1,maxResponses:50,contextWindowSize:10,activeSSEClients:[],sessionEnabled:!1,sessionStore:[],currentSessionKey:"default",currentSessionId:null,sessionCacheKeyPrefix:"aiAssistant.sessions",maxSessionsPerKey:20,sessionStoreLoaded:!1,displayWelcomePrompts:[],editingIndex:-1,editingValue:"",expandedQuestionIds:[],inputHistoryList:[],inputHistoryIndex:0,inputHistoryCurrent:"",inputHistoryCacheKey:"aiAssistant.inputHistory",inputHistoryLimit:50,pendingImages:[],imageIdSeed:0,maxImages:5,imageCacheKeyPrefix:"aiAssistant.images",imageCache:{},serverImageMap:{},isDragging:!1,dragCounter:0,topZIndex:(window.modalTransferIndex||1e3)+1e3,zIndexTimer:null}},created(){this.refreshWelcomePromptsDebounced=Qt.exports.debounce(()=>{var e;this.displayWelcomePrompts=nm(this.$store,((e=this.$route)==null?void 0:e.params)||{})},100),this.saveSessionStoreDebouncedMap={}},mounted(){T.on("openAIAssistant",this.onOpenAIAssistant),this.loadCachedModel(),this.loadInputHistory(),this.mountFloatButton(),this.startZIndexTimer(2e4)},beforeDestroy(){var e;T.off("openAIAssistant",this.onOpenAIAssistant),this.clearActiveSSEClients(),this.clearAutoSubmitTimer(),this.resetDeleteConfirm(),this.unmountFloatButton(),(e=this.refreshWelcomePromptsDebounced)==null||e.cancel(),this.stopZIndexTimer()},computed:{selectedModelOption({modelMap:e,inputModel:s}){return e[s]||null},visibleResponses(){return this.responses.filter(e=>e.role!=="system")},shouldCreateNewSession(){return this.visibleResponses.length===0},currentSessionList(){return this.sessionStore||[]},hasSessionHistory(){return this.currentSessionList.length>0},welcomePromptsKey(){var r;const e=this.$store.state.routeName,s=this.$store.state.dialogId,t=(r=this.$store.getters.projectData)==null?void 0:r.id,i=this.$store.state.taskId,n=this.$store.state.dialogModalShow;return`${e}|${s}|${t}|${i}|${n}`}},watch:{inputModel(e){this.saveModelCache(e)},welcomePromptsKey:{handler(){var e;(e=this.refreshWelcomePromptsDebounced)==null||e.call(this)},immediate:!0},showModal(e){e?this.startZIndexTimer(5e3):(this.startZIndexTimer(2e4),T.emit("aiAssistantClosed"))}},methods:{onFocus(){var e;(e=this.$refs.inputRef)==null||e.focus()},onPromptClick(e){!e||!e.text||(this.inputValue=e.text,this.$nextTick(()=>{this.onFocus()}))},mountFloatButton(){const e=E.extend(zf);this.$options.floatButtonInstance=new e({parent:this}),this.$options.floatButtonInstance.$mount(),document.body.appendChild(this.$options.floatButtonInstance.$el)},unmountFloatButton(){this.$options.floatButtonInstance&&(this.$options.floatButtonInstance.$destroy(),this.$options.floatButtonInstance.$el&&this.$options.floatButtonInstance.$el.parentNode&&this.$options.floatButtonInstance.$el.parentNode.removeChild(this.$options.floatButtonInstance.$el),this.$options.floatButtonInstance=null)},onOpenAIAssistant(e){$A.isJson(e)||(e={});const s=e.displayMode==="chat"?"chat":"modal";let t=0;this.showModal&&this.displayMode==="chat"&&s==="modal"&&(this.showModal=!1,t=50),setTimeout(()=>{this.doOpenAssistant(e,s)},t)},async doOpenAssistant(e,s){this.displayMode=s,this.inputValue=e.value||"",this.inputPlaceholder=e.placeholder||null,this.inputRows=e.rows||null,this.inputAutosize=e.autosize||null,this.inputMaxlength=e.maxlength||null,this.applyHook=e.onApply||null,this.beforeSendHook=e.onBeforeSend||null,this.dynamicSystemHook=e.onDynamicSystem||null,this.modalTitle=e.title||null,this.applyButtonText=e.applyButtonText||null,this.submitButtonText=e.submitButtonText||null,this.showApplyButton=e.showApplyButton!==!1,this.loadingText=e.loadingText||null,this.renderHook=e.onRender||null,this.pendingAutoSubmit=!!e.autoSubmit,await this.initSession(e.sessionKey),this.showModal=!0,this.fetchModelOptions(),this.clearAutoSubmitTimer(),this.$nextTick(()=>{this.scheduleAutoSubmit(),this.scrollResponsesToBottom(),this.onFocus()})},async loadCachedModel(){try{this.cachedModelId=await $A.IDBString(this.modelCacheKey)||""}catch{this.cachedModelId=""}},saveModelCache(e){!e||($A.IDBSave(this.modelCacheKey,e),this.cachedModelId=e)},async fetchModelOptions(){const e=this.modelsFirstLoad;e&&(this.modelsFirstLoad=!1,this.modelsLoading=!0);try{const{data:s}=await this.$store.dispatch("call",{url:"assistant/models"});this.normalizeModelOptions(s)}catch(s){if(this.modelGroups.length>0)return;$A.modalError({content:(s==null?void 0:s.msg)||"\u83B7\u53D6\u6A21\u578B\u5217\u8868\u5931\u8D25",onOk:t=>{this.showModal=!1}})}finally{e&&(this.modelsLoading=!1)}},normalizeModelOptions(e){const s=[],t={};$A.isJson(e)&&Object.keys(e).forEach(n=>{const r=n.match(/^(.*?)_models$/);if(!r)return;const o=r[1],a=e[n],l=a?rd(a):[];if(!l.length)return;const c=e[`${o}_model`]||"",d=Xs[o]||o,h={type:o,label:d,defaultModel:c,options:l.map(u=>{const p=`${o}:${u.value}`,g=Object.assign({},u,{id:p,type:o});return t[p]=g,g})};s.push(h)});const i=Object.keys(Xs);s.sort((n,r)=>{const o=i.indexOf(n.type),a=i.indexOf(r.type);return o===-1&&a===-1?n.label.localeCompare(r.label):o===-1?1:a===-1?-1:o-a}),this.modelGroups=s,this.modelMap=t,this.ensureSelectedModel()},ensureSelectedModel(){if(this.inputModel&&this.modelMap[this.inputModel])return;if(this.cachedModelId&&this.modelMap[this.cachedModelId]){this.inputModel=this.cachedModelId;return}for(const s of this.modelGroups)if(s.defaultModel){const t=s.options.find(i=>i.value===s.defaultModel);if(t){this.inputModel=t.id;return}}const e=this.modelGroups.find(s=>s.options.length>0);e?this.inputModel=e.options[0].id:this.inputModel=""},onMarkdownNavigate(){const e=this.$refs.assistantModal;e&&typeof e.prepareForNavigate=="function"?e.prepareForNavigate():this.showModal=!1},onInputKeydown(e){if(!this.isComposing){if(!e.shiftKey&&e.key==="Enter"){e.preventDefault(),this.onSubmit();return}e.key==="ArrowUp"?this.navigateInputHistory("up")||e.preventDefault():e.key==="ArrowDown"&&(this.navigateInputHistory("down")||e.preventDefault())}},async onSubmit(){if(this.loadIng>0)return;const e=(this.inputValue||"").trim();if(!e)return;await this._doSendQuestion(e)&&(this.inputValue="",this.clearPendingImages())},async _doSendQuestion(e){const s=this.selectedModelOption;if(!s)return $A.messageWarning("\u8BF7\u9009\u62E9\u6A21\u578B"),!1;this.loadIng++;let t=null;try{this.sessionEnabled&&!this.beforeSendHook&&this.injectWeakPromptIfNeeded();const i=await this.collectBaseContext(e),n=await this.buildPayloadData(i),r=this.buildCurrentContent(e),o=await this.processContentForStorage(r);t=this.createResponseEntry({modelOption:s,prompt:o}),this.scrollResponsesToBottom();const a=await this.fetchStreamKey({model_type:s.type,model_name:s.value,context:n});return this.persistInputHistory(e),this.startStream(a,t),!0}catch(i){const n=(i==null?void 0:i.msg)||"\u53D1\u9001\u5931\u8D25";return t&&this.markResponseError(t,n),$A.modalError(n),!1}finally{this.loadIng--}},async buildPayloadData(e){const s=this.normalizeContextEntries(e);if(typeof this.beforeSendHook!="function")return s;try{const t=s.map(o=>o.slice()),i=this.beforeSendHook(t),n=i&&typeof i.then=="function"?await i:i,r=this.normalizeContextEntries(n);if(r.length)return r}catch(t){console.warn("[AIAssistant] onBeforeSend error:",t)}return s},async restorePromptImages(e){if(!e||typeof e!="string")return e||"";const s=this.parsePromptContent(e);if(s.images.length===0)return s.text;const t=[];for(const i of s.images){const n=await this.getImageFromCache(i.imageId);n&&t.push({type:"image_url",image_url:{url:n}})}return s.text&&t.push({type:"text",text:s.text}),t.length>0?t:s.text},async collectBaseContext(e){const s=(r,o,a)=>{if(!(typeof a=="undefined"||a===null))if(typeof a=="string"){const l=a.trim();if(!l)return;r.push([o,l])}else Array.isArray(a)&&a.length>0&&r.push([o,a])},t=[];if(this.sessionEnabled&&!this.beforeSendHook&&(s(t,"system",pn(sd)),typeof this.dynamicSystemHook=="function"))try{const r=this.dynamicSystemHook();r&&s(t,"system",String(r))}catch(r){console.warn("[AIAssistant] dynamicSystemHook error:",r)}const i=Number(this.contextWindowSize)||0,n=i>0?this.responses.slice(-i):this.responses;for(const r of n){if(r.role==="system"){s(t,"system",r.content);continue}if(r.prompt){const o=await this.restorePromptImages(r.prompt);s(t,"human",o)}r.rawOutput&&s(t,"assistant",r.rawOutput)}if(e&&String(e).trim()){const r=this.buildCurrentContent(e);s(t,"human",r)}return t},findLastSystemEntry(e){for(let s=this.responses.length-1;s>=0;s--){const t=this.responses[s];if(t.role==="system"&&(!e||t.systemKind===e))return t}return null},injectWeakPromptIfNeeded(){var n;let e=null;try{e=Qf(this.$store,((n=this.$route)==null?void 0:n.params)||{})}catch(r){console.warn("[AIAssistant] buildWeakPrompt error:",r);return}if(!e||!e.contextKey)return;const s=this.findLastSystemEntry("pageContext");if(s&&s.contextKey===e.contextKey)return;const i=Xf(e,!!s);!i||this.responses.push({localId:this.responseSeed++,role:"system",systemKind:"pageContext",contextKey:e.contextKey,content:i})},buildCurrentContent(e){const s=String(e).trim();if(!this.pendingImages.length)return s;const t=[];for(const i of this.pendingImages)t.push({type:"image_url",image_url:{url:i.dataUrl}});return s&&t.push({type:"text",text:s}),t},normalizeContextEntries(e){if(!Array.isArray(e))return[];const s=[];return e.forEach(t=>{if(!Array.isArray(t)||t.length<2)return;const[i,n]=t,r=typeof i=="string"?i.trim():"";if(Array.isArray(n)){r&&n.length>0&&s.push([r,n]);return}const o=typeof n=="string"?n.trim():String(n!=null?n:"").trim();if(!r||!o)return;const a=s[s.length-1];if(a&&a[0]===r&&typeof a[1]=="string"&&a[1].slice(-4)==="++++"){const c=a[1].slice(0,-4);a[1]=c?`${c}
${o}`:o;return}s.push([r,o])}),s},async fetchStreamKey({model_type:e,model_name:s,context:t}){const i=/zh/i.test(Xt())?"zh":"en",n={model_type:e,model_name:s,context:JSON.stringify(t||[]),locale:i,session_id:this.currentSessionId||""},{data:r}=await this.$store.dispatch("call",{url:"assistant/auth",method:"post",data:n}),o=(r==null?void 0:r.stream_key)||"";if(!o)throw new Error("\u83B7\u53D6 stream_key \u5931\u8D25");return o},startStream(e,s){if(!e)throw new Error("\u83B7\u53D6 stream_key \u5931\u8D25");const t={sessionKey:this.currentSessionKey,sessionId:this.currentSessionId,localId:s.localId};this.clearOwnerSSEClients(t.sessionKey,t.sessionId);const i=new _n($A.mainUrl(`ai/invoke/stream/${e}`));return this.registerSSEClient(i,t),i.subscribe(["append","replace","done"],(n,r)=>{switch(n){case"append":case"replace":this.handleStreamChunk(t,n,r);break;case"done":this.handleStreamDone(t,i,r);break}},()=>{this.handleStreamFailed(t,i)}),i},locateStreamTarget(e){if(this.currentSessionKey===e.sessionKey&&this.currentSessionId===e.sessionId)return{entry:this.responses.find(s=>s.localId===e.localId)||null,isCurrent:!0,session:null};if(this.currentSessionKey===e.sessionKey){const s=this.sessionStore.find(i=>i.id===e.sessionId)||null;return{entry:s&&(s.responses||[]).find(i=>i.localId===e.localId)||null,isCurrent:!1,session:s}}return{entry:null,isCurrent:!1,session:null}},handleStreamDone(e,s,t){const i=this.parseStreamPayload(t),n=this.locateStreamTarget(e),r=n.isCurrent&&this.shouldStickToBottom();n.entry&&(i&&i.error?this.markResponseError(n.entry,i.error):n.entry.status!=="error"&&(n.entry.status="completed")),this.releaseSSEClient(s),this.persistStreamTarget(n),r&&this.scrollResponsesToBottom()},handleStreamFailed(e,s){const t=this.locateStreamTarget(e);t.entry&&["streaming","waiting"].includes(t.entry.status)&&this.markResponseError(t.entry,this.$L("\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")),this.releaseSSEClient(s),this.persistStreamTarget(t)},persistStreamTarget(e){e.isCurrent?this.saveCurrentSession():e.session&&(e.session.updatedAt=Date.now(),this.saveSessionStore(e.session.id))},handleStreamChunk(e,s,t){const i=this.locateStreamTarget(e),n=i.entry;if(!n)return;const r=i.isCurrent&&this.shouldStickToBottom(),o=this.parseStreamPayload(t),a=this.resolveStreamContent(o);s==="replace"?n.rawOutput=a:n.rawOutput+=a,this.updateResponseDisplayOutput(n),n.status="streaming",i.isCurrent&&r&&this.scrollResponsesToBottom()},parseStreamPayload(e){if(!e||!e.data)return{};try{return JSON.parse(e.data)}catch{return{}}},resolveStreamContent(e){return!e||typeof e!="object"?"":typeof e.content=="string"?e.content:typeof e.c=="string"?e.c:""},registerSSEClient(e,s={}){!e||this.activeSSEClients.push({sse:e,sessionKey:s.sessionKey,sessionId:s.sessionId,localId:s.localId})},releaseSSEClient(e){const s=this.activeSSEClients.findIndex(t=>t.sse===e);s>-1&&this.activeSSEClients.splice(s,1),e.unsunscribe()},clearActiveSSEClients(){this.activeSSEClients.forEach(e=>{try{e.sse.unsunscribe()}catch{}}),this.activeSSEClients=[]},clearOwnerSSEClients(e,s){this.activeSSEClients=this.activeSSEClients.filter(t=>{if(t.sessionKey===e&&t.sessionId===s){this.cancelStreamOwner(t);try{t.sse.unsunscribe()}catch{}return!1}return!0})},cancelStreamOwner(e){const s=this.locateStreamTarget({sessionKey:e.sessionKey,sessionId:e.sessionId,localId:e.localId});s.entry&&["streaming","waiting"].includes(s.entry.status)&&(this.markResponseError(s.entry,this.$L("\u5DF2\u53D6\u6D88")),this.persistStreamTarget(s))},clearAutoSubmitTimer(){this.autoSubmitTimer&&(clearTimeout(this.autoSubmitTimer),this.autoSubmitTimer=null)},scheduleAutoSubmit(){if(!this.pendingAutoSubmit)return;const e=()=>{if(!!this.pendingAutoSubmit){if(this.canAutoSubmit()){this.pendingAutoSubmit=!1,this.clearAutoSubmitTimer(),this.onSubmit();return}this.autoSubmitTimer=setTimeout(e,200)}};this.clearAutoSubmitTimer(),this.autoSubmitTimer=setTimeout(e,0)},canAutoSubmit(){return!this.modelsLoading&&!!this.selectedModelOption&&this.responses.length===0&&this.loadIng===0},createResponseEntry({modelOption:e,prompt:s}){const t={localId:this.responseSeed++,id:null,model:e.value,modelLabel:e.label,type:e.type,prompt:s.trim(),rawOutput:"",displayOutput:"",status:"waiting",error:"",applyLoading:!1,feedback:"",createdAt:Date.now()};return this.responses.push(t),this.responses.length>this.maxResponses&&this.responses.shift(),t},markResponseError(e,s){e.status="error",e.error=s},applyResponse(e){if(!e||e.applyLoading)return;if(!e.rawOutput){$A.messageWarning("\u6682\u65E0\u53EF\u7528\u5185\u5BB9");return}if(typeof this.applyHook!="function"){this.closeAssistant();return}e.applyLoading=!0;const s=this.buildResponsePayload(e,!0);try{const t=this.applyHook(s);t&&typeof t.then=="function"?t.then(()=>{this.closeAssistant()}).catch(i=>{$A.modalError((i==null?void 0:i.msg)||"\u5E94\u7528\u5931\u8D25")}).finally(()=>{e.applyLoading=!1}):(this.closeAssistant(),e.applyLoading=!1)}catch(t){e.applyLoading=!1,$A.modalError((t==null?void 0:t.msg)||"\u5E94\u7528\u9519\u8BEF")}},buildResponsePayload(e,s=!1){return e?{model:e.model,type:e.type,prompt:e.prompt,rawOutput:s?this.removeReasoningSections(e.rawOutput):e.rawOutput}:{model:"",type:"",prompt:"",rawOutput:""}},removeReasoningSections(e){return typeof e!="string"?e:e.replace(/:::\s*reasoning[\s\S]*?:::/gi,"").trim()},extractSourceIds(e){if(typeof e!="string"||!e)return[];const t=this.removeReasoningSections(e).match(/(?:参考|References?)\s*[:]\s*(.+?)\s*$/im);if(!t)return[];const i=t[1].match(/[a-z0-9][\w-]*(?:\.[a-z0-9][\w-]*)+/gi)||[];return[...new Set(i)].slice(0,10)},copyResponse(e){const s=this.removeReasoningSections((e==null?void 0:e.displayOutput)||(e==null?void 0:e.rawOutput))||"";!s||this.copyText(s)},async submitFeedback(e,s){if(!e||e.feedbackLoading)return;const t=e.feedback===s?"":s,i=e.feedback;this.$set(e,"feedback",t),this.$set(e,"feedbackLoading",!0);try{await this.$store.dispatch("call",{url:"assistant/feedback/save",method:"post",data:{session_key:this.currentSessionKey,session_id:this.currentSessionId||"",local_id:e.localId,feedback:t,prompt:this.parsePromptContent(e.prompt).text.substring(0,1e3),answer:(this.removeReasoningSections(e.rawOutput)||"").substring(0,2e3),source_ids:this.extractSourceIds(e.rawOutput),model:e.model}}),this.$set(e,"feedbackLoading",!1),this.saveCurrentSession()}catch(n){this.$set(e,"feedback",i),this.$set(e,"feedbackLoading",!1),$A.messageError((n==null?void 0:n.msg)||"\u53CD\u9988\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}},updateResponseDisplayOutput(e){if(!!e){if(typeof this.renderHook!="function"){e.displayOutput=e.rawOutput;return}try{const s=this.buildResponsePayload(e),t=this.renderHook(s);if(t&&typeof t.then=="function"){console.warn("[AIAssistant] onRender should be synchronous"),e.displayOutput=e.rawOutput;return}e.displayOutput=typeof t=="string"?t:e.rawOutput}catch(s){console.warn("[AIAssistant] onRender error:",s),e.displayOutput=e.rawOutput}}},closeAssistant(){this.closing||(this.closing=!0,this.pendingAutoSubmit=!1,this.clearAutoSubmitTimer(),this.resetInputHistoryNavigation(),this.clearPendingImages(),this.showModal=!1,setTimeout(()=>{this.closing=!1},300))},scrollResponsesToBottom(){this.$nextTick(()=>{const e=this.$refs.responseContainer;e&&e.scrollHeight&&(e.scrollTop=e.scrollHeight)})},shouldStickToBottom(e=20){const s=this.$refs.responseContainer;if(!s)return!0;const t=s.scrollTop+s.clientHeight,i=s.scrollHeight-t;return Number.isNaN(i)?!0:i<=e},async loadSessionStore(e){try{const{data:s}=await this.$store.dispatch("call",{url:"assistant/session/list",data:{session_key:e||this.currentSessionKey}});Array.isArray(s)?(s.forEach(t=>{Array.isArray(t.responses)&&t.responses.forEach(i=>{(i.status==="streaming"||i.status==="waiting")&&(i.status="error",i.error=i.error||this.$L("\u4F1A\u8BDD\u4E2D\u65AD")),i.feedbackLoading=!1}),t.images&&Object.assign(this.serverImageMap,t.images)}),this.sessionStore=s):this.sessionStore=[]}catch(s){console.warn("[AIAssistant] \u52A0\u8F7D\u4F1A\u8BDD\u5931\u8D25:",s),this.sessionStore=[]}this.sessionStoreLoaded=!0},sanitizeResponsesForPersist(e){return(e||[]).map(s=>{const{feedbackLoading:t,...i}=s;return i.status==="streaming"||i.status==="waiting"?{...i,status:"error",error:i.error||this.$L("\u4F1A\u8BDD\u4E2D\u65AD")}:i})},async saveSessionStore(e=this.currentSessionId){if(!e)return;const s=this.sessionStore.find(n=>n.id===e);if(!s)return;const t=[],i=this.extractImageIdsFromSession(s);for(const n of i)!this.serverImageMap[n]&&this.imageCache[n]&&t.push({imageId:n,dataUrl:this.imageCache[n]});try{const{data:n}=await this.$store.dispatch("call",{url:"assistant/session/save",method:"post",data:{session_key:this.currentSessionKey,session_id:s.id,title:s.title||"",data:this.sanitizeResponsesForPersist(s.responses),new_images:t}});n!=null&&n.image_urls&&Object.assign(this.serverImageMap,n.image_urls)}catch(n){console.warn("[AIAssistant] \u4FDD\u5B58\u4F1A\u8BDD\u5931\u8D25:",n)}},generateSessionId(){return`session-${Date.now()}-${Math.random().toString(36).substr(2,9)}`},generateSessionTitle(e){var n;if(!e||e.length===0)return this.$L("\u65B0\u4F1A\u8BDD");const s=((n=e.find(r=>r.role!=="system"&&r.prompt))==null?void 0:n.prompt)||"";if(!s)return this.$L("\u65B0\u4F1A\u8BDD");const t=this.parsePromptContent(s).text;if(!t)return this.$L("\u65B0\u4F1A\u8BDD");const i=t.trim().substring(0,20);return i.length<t.trim().length?`${i}...`:i},getSessionList(){return this.sessionStore||[]},async initSession(e){if(!e){this.sessionEnabled=!1,this.currentSessionKey="default",this.currentSessionId=null,this.responses=[],this.sessionStoreLoaded=!1;return}const s=this.sessionEnabled&&this.currentSessionKey!==e;s&&this.responses.length>0&&this.saveCurrentSession(),this.sessionEnabled=!0,(s||this.currentSessionKey!==e||!this.sessionStoreLoaded)&&(this.currentSessionKey=e,await this.loadSessionStore(e),s&&(this.currentSessionId=null,this.responses=[])),this.currentSessionId||(this.currentSessionId=this.generateSessionId(),this.responses=[])},createNewSession(e=!0){e&&this.responses.length>0&&this.saveCurrentSession(),this.currentSessionId=this.generateSessionId(),this.responses=[]},saveCurrentSession(){if(!this.sessionEnabled||!this.currentSessionId||this.responses.length===0)return;Array.isArray(this.sessionStore)||(this.sessionStore=[]);const e=this.sessionStore.findIndex(t=>t.id===this.currentSessionId),s={id:this.currentSessionId,title:this.generateSessionTitle(this.responses),responses:JSON.parse(JSON.stringify(this.responses)),createdAt:e>-1?this.sessionStore[e].createdAt:Date.now(),updatedAt:Date.now()};e>-1?this.sessionStore.splice(e,1,s):this.sessionStore.unshift(s),this.sessionStore.length>this.maxSessionsPerKey&&this.sessionStore.splice(this.maxSessionsPerKey),this.saveSessionStoreDebounced(this.currentSessionId)},saveSessionStoreDebounced(e){if(!e)return;let s=this.saveSessionStoreDebouncedMap[e];s||(s=Qt.exports.debounce(()=>{this.saveSessionStore(e)},2e3),this.saveSessionStoreDebouncedMap[e]=s),s()},loadSession(e){const t=this.getSessionList().find(i=>i.id===e);t&&(this.currentSessionId!==e&&this.responses.length>0&&this.saveCurrentSession(),this.currentSessionId=t.id,this.responses=JSON.parse(JSON.stringify(t.responses)),this.syncResponseSeed(),this.scrollResponsesToBottom())},syncResponseSeed(){if(this.responses.length===0)return;const e=this.responses.reduce((s,t)=>Math.max(s,t.localId||0),0);e>=this.responseSeed&&(this.responseSeed=e+1)},askDeleteSession(e){this.confirmingDeleteId=e,clearTimeout(this.confirmingDeleteTimer),this.confirmingDeleteTimer=setTimeout(()=>{this.resetDeleteConfirm()},3e3)},resetDeleteConfirm(){this.confirmingDeleteId=null,clearTimeout(this.confirmingDeleteTimer),this.confirmingDeleteTimer=null},onHistoryVisibleChange(){this.resetDeleteConfirm()},deleteSession(e){this.resetDeleteConfirm();const s=this.sessionStore.findIndex(t=>t.id===e);if(s>-1){const t=this.sessionStore[s];this.clearSessionImageCache(t),this.sessionStore.splice(s,1),this.$store.dispatch("call",{url:"assistant/session/delete",method:"post",data:{session_key:this.currentSessionKey,session_id:e}}).catch(i=>console.warn("[AIAssistant] \u5220\u9664\u4F1A\u8BDD\u5931\u8D25:",i)),this.currentSessionId===e&&this.createNewSession(!1)}},clearSessionHistory(){$A.modalConfirm({title:this.$L("\u6E05\u7A7A\u5386\u53F2\u4F1A\u8BDD"),content:this.$L("\u786E\u5B9A\u8981\u6E05\u7A7A\u6240\u6709\u5386\u53F2\u4F1A\u8BDD\u5417\uFF1F"),onOk:()=>{this.serverImageMap={},this.imageCache={},this.sessionStore=[],this.$store.dispatch("call",{url:"assistant/session/delete",method:"post",data:{session_key:this.currentSessionKey,clear_all:!0}}).catch(e=>console.warn("[AIAssistant] \u6E05\u7A7A\u4F1A\u8BDD\u5931\u8D25:",e)),this.createNewSession(!1)}})},formatResponseTime(e){if(!e)return"";const s=$A.daytz(),t=$A.dayjs(e),i=t.format("HH:mm");if(s.format("YYYY-MM-DD")===t.format("YYYY-MM-DD"))return i;const n=s.subtract((s.day()+6)%7,"day").startOf("day");if(t.valueOf()>=n.valueOf()&&t.valueOf()<=s.valueOf()){const r={zh:"zh-CN","zh-CHT":"zh-TW"},o=Xt(),a=r[o]||o||"en";return`${new Intl.DateTimeFormat(a,{weekday:"short"}).format(t.toDate())} ${i}`}return s.year()===t.year()?t.format("MM-DD HH:mm"):t.format("YYYY-MM-DD")},formatSessionTime(e){const s=$A.daytz(),t=$A.dayjs(e);return s.format("YYYY-MM-DD")===t.format("YYYY-MM-DD")?this.$L("\u4ECA\u5929")+" "+t.format("HH:mm"):s.subtract(1,"day").format("YYYY-MM-DD")===t.format("YYYY-MM-DD")?this.$L("\u6628\u5929")+" "+t.format("HH:mm"):s.year()===t.year()?t.format("MM-DD HH:mm"):t.format("YYYY-MM-DD HH:mm")},async loadInputHistory(){try{const e=await $A.IDBValue(this.inputHistoryCacheKey);Array.isArray(e)?this.inputHistoryList=e:this.inputHistoryList=[]}catch{this.inputHistoryList=[]}this.inputHistoryIndex=this.inputHistoryList.length,this.inputHistoryCurrent=""},persistInputHistory(e){const s=(e||"").trim();if(!s)return;const t=Array.isArray(this.inputHistoryList)?[...this.inputHistoryList]:[];if(t[t.length-1]===s){this.inputHistoryIndex=t.length,this.inputHistoryCurrent="";return}const i=t.indexOf(s);i!==-1&&t.splice(i,1),t.push(s),t.length>this.inputHistoryLimit&&t.splice(0,t.length-this.inputHistoryLimit),this.inputHistoryList=t,this.inputHistoryIndex=t.length,this.inputHistoryCurrent="",$A.IDBSet(this.inputHistoryCacheKey,t).catch(()=>{})},resetInputHistoryNavigation(){this.inputHistoryIndex=this.inputHistoryList.length,this.inputHistoryCurrent=""},navigateInputHistory(e){var r,o;if(!this.inputHistoryList.length)return!0;const s=(o=(r=this.$refs.inputRef)==null?void 0:r.$el)==null?void 0:o.querySelector("textarea");if(!s)return!0;const t=s.selectionStart,i=s.selectionEnd,n=this.inputValue||"";if(t!==i)return!0;if(e==="up"){if(n.substring(0,t).includes(`
`))return!0;if(this.inputHistoryIndex===this.inputHistoryList.length&&(this.inputHistoryCurrent=n),this.inputHistoryIndex>0)return this.inputHistoryIndex--,this.inputValue=this.inputHistoryList[this.inputHistoryIndex]||"",this.$nextTick(()=>{var c,d;const l=(d=(c=this.$refs.inputRef)==null?void 0:c.$el)==null?void 0:d.querySelector("textarea");l==null||l.setSelectionRange(0,0)}),!1}else if(e==="down")return n.substring(t).includes(`
`)||this.inputHistoryIndex>=this.inputHistoryList.length?!0:(this.inputHistoryIndex<this.inputHistoryList.length-1?(this.inputHistoryIndex++,this.inputValue=this.inputHistoryList[this.inputHistoryIndex]||""):(this.inputHistoryIndex=this.inputHistoryList.length,this.inputValue=this.inputHistoryCurrent||""),this.$nextTick(()=>{var c,d;const l=(d=(c=this.$refs.inputRef)==null?void 0:c.$el)==null?void 0:d.querySelector("textarea");if(l){const h=(this.inputValue||"").length;l.setSelectionRange(h,h)}}),!1);return!0},toggleQuestionExpand(e){if(e==null)return;const s=this.expandedQuestionIds.indexOf(e);s===-1?this.expandedQuestionIds.push(e):this.expandedQuestionIds.splice(s,1)},startEditQuestion(e){e<0||e>=this.responses.length||this.loadIng>0||(this.editingIndex=e,this.editingValue=this.responses[e].prompt||"",this.$nextTick(()=>{const s=this.$refs.editInputRef,t=Array.isArray(s)?s[0]:s;t&&typeof t.focus=="function"&&t.focus()}))},cancelEditQuestion(){this.editingIndex=-1,this.editingValue=""},onEditKeydown(e){e.key==="Escape"?(e.preventDefault(),this.cancelEditQuestion()):e.key==="Enter"&&!e.shiftKey&&!this.isComposing&&(e.preventDefault(),this.submitEditedQuestion())},async submitEditedQuestion(){if(this.editingIndex<0||this.loadIng>0)return;const e=(this.editingValue||"").trim();if(!e){$A.messageWarning("\u8BF7\u8F93\u5165\u95EE\u9898");return}this.responses.splice(this.editingIndex),this.editingIndex=-1,this.editingValue="",await this._doSendQuestion(e)},updateTopZIndex(){this.topZIndex=(window.modalTransferIndex||1e3)+1e3},startZIndexTimer(e){this.stopZIndexTimer(),this.updateTopZIndex(),this.zIndexTimer=setInterval(()=>{this.updateTopZIndex()},e)},stopZIndexTimer(){this.zIndexTimer&&(clearInterval(this.zIndexTimer),this.zIndexTimer=null)},triggerImageSelect(){this.$refs.imageInput&&this.$refs.imageInput.click()},async onImageSelect(e){const s=e.target.files;await this.handleImageFiles(s),e.target.value=""},async handleImageFiles(e){if(!e||e.length===0)return;const s=this.maxImages-this.pendingImages.length;if(s<=0){$A.messageWarning(`\u6700\u591A\u4E0A\u4F20 ${this.maxImages} \u5F20\u56FE\u7247`);return}const t=Array.from(e).slice(0,s);for(const i of t)if(!!i.type.startsWith("image/"))try{const n=await this.compressImageForAI(i);this.pendingImages.push({id:++this.imageIdSeed,dataUrl:n,file:i})}catch(n){console.warn("[AIAssistant] \u56FE\u7247\u538B\u7F29\u5931\u8D25:",n)}},onDragEnter(e){var s,t;(t=(s=e.dataTransfer)==null?void 0:s.types)!=null&&t.includes("Files")&&(this.dragCounter++,this.isDragging=!0)},onDragLeave(){this.dragCounter--,this.dragCounter<=0&&(this.dragCounter=0,this.isDragging=!1)},async onDrop(e){var t;this.dragCounter=0,this.isDragging=!1;const s=(t=e.dataTransfer)==null?void 0:t.files;if(s&&s.length>0){const i=Array.from(s).filter(n=>n.type.startsWith("image/"));await this.handleImageFiles(i)}},async onPaste(e){var i;const s=(i=e.clipboardData)==null?void 0:i.items;if(!s)return;const t=[];for(const n of s)if(n.type.startsWith("image/")){const r=n.getAsFile();r&&t.push(r)}t.length>0&&(e.preventDefault(),await this.handleImageFiles(t))},async compressImageForAI(e){const s=await this.fileToDataUrl(e);return this.resizeDataUrl(s,1568,!0)},fileToDataUrl(e){return new Promise((s,t)=>{const i=new FileReader;i.onload=()=>s(i.result),i.onerror=()=>t(new Error("\u6587\u4EF6\u8BFB\u53D6\u5931\u8D25")),i.readAsDataURL(e)})},removeImage(e){const s=this.pendingImages.findIndex(t=>t.id===e);s!==-1&&this.pendingImages.splice(s,1)},clearPendingImages(){this.pendingImages=[]},generateImageCacheId(){const e=Date.now(),s=Math.random().toString(36).substr(2,6);return`${e}_${s}`},saveImageToCache(e,s){this.imageCache[e]=s},resizeDataUrl(e,s,t=!1){return new Promise((i,n)=>{if(!e||typeof e!="string"){n(new Error("\u65E0\u6548\u7684\u56FE\u7247\u6570\u636E"));return}const r=new Image;r.onload=()=>{let{width:o,height:a}=r;const l=o>s||a>s;if(!l&&!t){i(e);return}if(l){const h=Math.min(s/o,s/a);o=Math.round(o*h),a=Math.round(a*h)}const c=document.createElement("canvas");c.width=o,c.height=a;const d=c.getContext("2d");d.fillStyle="#FFFFFF",d.fillRect(0,0,o,a),d.drawImage(r,0,0,o,a),i(c.toDataURL("image/jpeg",.8))},r.onerror=()=>n(new Error("\u56FE\u7247\u52A0\u8F7D\u5931\u8D25")),r.src=e})},async getImageFromCache(e){return this.imageCache[e]?this.imageCache[e]:this.serverImageMap[e]?this.serverImageMap[e]:null},deleteImageCache(e){delete this.imageCache[e],delete this.serverImageMap[e]},extractImageIdsFromSession(e){const s=[];if(!(e!=null&&e.responses))return s;for(const t of e.responses)if(t.role!=="system"&&t.prompt){const i=this.parsePromptContent(t.prompt);for(const n of i.images)s.push(n.imageId)}return s},clearSessionImageCache(e){const s=this.extractImageIdsFromSession(e);for(const t of s)this.deleteImageCache(t)},async processContentForStorage(e){var t;if(typeof e=="string")return e;if(!Array.isArray(e))return String(e);const s=[];for(const i of e)if(i.type==="text")s.push(i.text||"");else if(i.type==="image_url"&&((t=i.image_url)==null?void 0:t.url)){const n=this.generateImageCacheId();await this.saveImageToCache(n,i.image_url.url),s.push(`[IMG:${n}]`)}return s.join(" ")},parsePromptContent(e){const s={images:[],text:""};if(!e||typeof e!="string")return s.text=e||"",s;const t=/\[IMG:([^\]]+)\]/g,i=[];let n=0,r;for(;(r=t.exec(e))!==null;)s.images.push({imageId:r[1]}),r.index>n&&i.push(e.slice(n,r.index)),n=r.index+r[0].length;return n<e.length&&i.push(e.slice(n)),s.text=i.join("").trim(),s}}},Ri={};var vm=A(_m,mm,gm,!1,ym,null,null,null);function ym(e){for(let s in Ri)this[s]=Ri[s]}var wm=function(){return vm.exports}(),$m=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("ModalAlive",{attrs:{"class-name":"user-tags-manage-modal",title:e.$L("\u4E2A\u6027\u6807\u7B7E\u7BA1\u7406"),"mask-closable":!1,"footer-hide":!0,width:"520",closable:!0},model:{value:e.visible,callback:function(i){e.visible=i},expression:"visible"}},[t("div",{staticClass:"tag-modal-container"},[t("div",{staticClass:"tag-modal-form"},[t("Input",{attrs:{maxlength:20,disabled:e.pending.add,placeholder:e.$L("\u8BF7\u8F93\u5165\u4E2A\u6027\u6807\u7B7E")},on:{"on-keydown":e.onAddKeydown},model:{value:e.newTagName,callback:function(i){e.newTagName=i},expression:"newTagName"}},[t("Button",{attrs:{slot:"append",type:"primary",loading:e.pending.add},on:{click:e.handleAdd},slot:"append"},[e._v(e._s(e.$L("\u6DFB\u52A0")))])],1)],1),t("div",{staticClass:"tag-modal-body"},[e.loading>0&&e.tags.length===0?t("div",{staticClass:"tag-loading"},[t("Loading")],1):e.tags.length===0?t("div",{staticClass:"tag-empty"},[t("Icon",{attrs:{type:"ios-pricetags-outline",size:"32"}}),t("p",[e._v(e._s(e.$L("\u8FD8\u6CA1\u6709\u4E2A\u6027\u6807\u7B7E\uFF0C\u5FEB\u6765\u6DFB\u52A0\u5427~")))])],1):t("ul",{staticClass:"tag-list"},e._l(e.tags,function(i){return t("li",{key:i.id,staticClass:"tag-item",class:{"is-editing":e.editId===i.id}},[t("div",{staticClass:"tag-item-main"},[e.editId!==i.id?t("div",{staticClass:"tag-name"},[t("div",{staticClass:"tag-pill",class:{"is-recognized":i.recognized}},[e._v(e._s(i.name))])]):t("div",{staticClass:"tag-name edit"},[t("Input",{ref:"editInput",refInFor:!0,attrs:{size:"small",maxlength:20,disabled:e.isPending(i.id,"edit")},on:{"on-keydown":function(n){return e.onEditKeydown(n,i)}},model:{value:e.editName,callback:function(n){e.editName=n},expression:"editName"}})],1),t("div",{staticClass:"tag-actions"},[t("Button",{staticClass:"recognize-btn",attrs:{type:"text",size:"small",loading:e.isPending(i.id,"recognize")},on:{click:function(n){return e.toggleRecognize(i)}}},[t("Icon",{attrs:{type:"md-thumbs-up"}}),i.recognition_total>0?t("span",[e._v(e._s(i.recognition_total))]):e._e(),t("span",{staticClass:"recognize-text"},[e._v(e._s(e.$L("\u8BA4\u53EF")))])],1),e.editId===i.id?[t("Button",{attrs:{type:"primary",size:"small",loading:e.isPending(i.id,"edit")},on:{click:function(n){return e.confirmEdit(i)}}},[e._v(e._s(e.$L("\u4FDD\u5B58")))]),t("Button",{attrs:{type:"text",size:"small"},on:{click:e.cancelEdit}},[e._v(e._s(e.$L("\u53D6\u6D88")))])]:[i.can_edit?t("Button",{attrs:{type:"text",size:"small"},on:{click:function(n){return e.startEdit(i)}}},[e._v(e._s(e.$L("\u7F16\u8F91")))]):e._e(),i.can_delete?t("Button",{attrs:{type:"text",size:"small",loading:e.isPending(i.id,"delete")},on:{click:function(n){return e.confirmDelete(i)}}},[e._v(e._s(e.$L("\u5220\u9664")))]):e._e()]],2)]),i.created_by_name?t("div",{staticClass:"tag-meta-info"},[t("span",[e._v(e._s(e.$L("\u7531(*)\u521B\u5EFA",i.created_by_name)))])]):e._e()])}),0)]),e.total>0?t("div",{staticClass:"tag-modal-footer"},[t("span",[e._v(e._s(e.$L("\u5F53\u524D\u5171(*)\u4E2A\u6807\u7B7E",e.total)))])]):e._e()])])},km=[];const bm={name:"UserTagsModal",props:{value:{type:Boolean,default:!1},userid:{type:Number,required:!0}},data(){return{visible:this.value,loading:0,tags:[],newTagName:"",editId:null,editName:"",pending:{add:!1,tagId:null,type:""}}},computed:{userId(){return this.$store.state.userId},total(){return this.tags.length}},watch:{value(e){this.visible=e,e&&this.openModal()},visible(e){this.$emit("input",e),e||this.resetInlineState()},userid(){this.visible&&this.loadTags()}},methods:{openModal(){this.resetInlineState(),this.loadTags()},resetInlineState(){this.newTagName="",this.editId=null,this.editName="",this.pending={add:!1,tagId:null,type:""}},setPending(e,s=null){e==="add"?this.pending.add=!0:(this.pending.tagId=s,this.pending.type=e)},clearPending(e){e==="add"?this.pending.add=!1:this.pending.type===e&&(this.pending.tagId=null,this.pending.type="")},isPending(e,s){return this.pending.tagId===e&&this.pending.type===s},loadTags(){!this.userid||(this.loading++,this.$store.dispatch("call",{url:"users/tags/lists",data:{userid:this.userid}}).then(({data:e})=>{this.applyTagData(e)}).catch(({msg:e})=>{$A.modalError(e||this.$L("\u52A0\u8F7D\u5931\u8D25"))}).finally(()=>{this.loading--}))},applyTagData(e){const s=Array.isArray(e==null?void 0:e.list)?e.list:[];this.tags=s;const t=Array.isArray(e==null?void 0:e.top)?e.top:s.slice(0,10),i=typeof(e==null?void 0:e.total)=="number"?e.total:s.length;this.emitUpdated({list:s,top:t,total:i})},emitUpdated(e){this.$emit("updated",e),this.$store.dispatch("saveUserExtra",{userid:this.userid,data:{personal_tags:Array.isArray(e==null?void 0:e.top)?e.top:[],personal_tags_total:typeof(e==null?void 0:e.total)=="number"?e.total:Array.isArray(e==null?void 0:e.top)?e.top.length:0}})},onAddKeydown(e){e.isComposing||e.key==="Process"||e.keyCode===229||e.keyCode===13&&this.handleAdd()},onEditKeydown(e,s){e.isComposing||e.key==="Process"||e.keyCode===229||e.keyCode===13&&this.confirmEdit(s)},handleAdd(){const e=this.newTagName.trim();if(!e){$A.messageError(this.$L("\u8BF7\u8F93\u5165\u4E2A\u6027\u6807\u7B7E"));return}if(e.length>20){$A.messageError(this.$L("\u6807\u7B7E\u540D\u79F0\u6700\u591A\u53EA\u80FD\u8BBE\u7F6E(*)\u4E2A\u5B57",20));return}this.pending.add||(this.setPending("add"),this.$store.dispatch("call",{url:"users/tags/add",method:"post",data:{userid:this.userid,name:e}}).then(({data:s,msg:t})=>{this.applyTagData(s),this.newTagName="",t&&$A.messageSuccess(t)}).catch(({msg:s})=>{$A.modalError(s||this.$L("\u6DFB\u52A0\u5931\u8D25"))}).finally(()=>{this.clearPending("add")}))},startEdit(e){this.editId=e.id,this.editName=e.name,this.$nextTick(()=>{const s=this.$refs.editInput;s&&s.focus?s.focus():Array.isArray(s)&&s.length>0&&s[0].focus&&s[0].focus()})},cancelEdit(){this.editId=null,this.editName=""},confirmEdit(e){const s=this.editName.trim();if(!s){$A.messageError(this.$L("\u8BF7\u8F93\u5165\u4E2A\u6027\u6807\u7B7E"));return}if(s.length>20){$A.messageError(this.$L("\u6807\u7B7E\u540D\u79F0\u6700\u591A\u53EA\u80FD\u8BBE\u7F6E(*)\u4E2A\u5B57",20));return}if(s===e.name){this.cancelEdit();return}this.isPending(e.id,"edit")||(this.setPending("edit",e.id),this.$store.dispatch("call",{url:"users/tags/update",method:"post",data:{tag_id:e.id,name:s}}).then(({data:t,msg:i})=>{this.applyTagData(t),this.cancelEdit(),i&&$A.messageSuccess(i)}).catch(({msg:t})=>{$A.modalError(t||this.$L("\u4FDD\u5B58\u5931\u8D25"))}).finally(()=>{this.clearPending("edit")}))},confirmDelete(e){this.isPending(e.id,"delete")||$A.modalConfirm({title:this.$L("\u5220\u9664\u6807\u7B7E"),content:this.$L("\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6807\u7B7E\u5417\uFF1F"),onOk:()=>{this.deleteTag(e)}})},deleteTag(e){this.setPending("delete",e.id),this.$store.dispatch("call",{url:"users/tags/delete",method:"post",data:{tag_id:e.id}}).then(({data:s,msg:t})=>{this.applyTagData(s),t&&$A.messageSuccess(t)}).catch(({msg:s})=>{$A.modalError(s||this.$L("\u5220\u9664\u5931\u8D25"))}).finally(()=>{this.clearPending("delete")})},toggleRecognize(e){this.isPending(e.id,"recognize")||(this.setPending("recognize",e.id),this.$store.dispatch("call",{url:"users/tags/recognize",method:"post",data:{tag_id:e.id}}).then(({data:s,msg:t})=>{this.applyTagData(s),t&&$A.messageSuccess(t)}).catch(({msg:s})=>{$A.modalError(s||this.$L("\u64CD\u4F5C\u5931\u8D25"))}).finally(()=>{this.clearPending("recognize")}))}}},Oi={};var Am=A(bm,$m,km,!1,Cm,"2d506187",null,null);function Cm(e){for(let s in Oi)this[s]=Oi[s]}var Sm=function(){return Am.exports}(),xm=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("Modal",{attrs:{title:e.$L("\u5171\u540C\u7FA4\u7EC4")+" ("+e.$L("(*)\u4E2A",e.totalCount)+")","footer-hide":!0,width:"500"},model:{value:e.visibleProxy,callback:function(i){e.visibleProxy=i},expression:"visibleProxy"}},[t("div",{staticClass:"common-dialog-content"},[e.loading>0&&e.list.length===0?t("div",{staticClass:"loading-wrapper"},[t("Loading")],1):e.list.length===0?t("div",{staticClass:"empty-wrapper"},[t("div",{staticClass:"empty-content"},[t("Icon",{attrs:{type:"ios-people-outline",size:"48"}}),t("p",[e._v(e._s(e.$L("\u6682\u65E0\u5171\u540C\u7FA4\u7EC4")))])],1)]):t("div",{staticClass:"dialog-list"},[e._l(e.list,function(i){return t("div",{key:i.id,staticClass:"dialog-item",on:{click:function(n){return e.onEnterDialog(i)}}},[t("div",{staticClass:"dialog-avatar"},[i.avatar?t("EAvatar",{attrs:{src:i.avatar,size:42}}):i.group_type=="department"?t("i",{staticClass:"taskfont icon-avatar department"},[e._v("\uE75C")]):i.group_type=="project"?t("i",{staticClass:"taskfont icon-avatar project"},[e._v("\uE6F9")]):i.group_type=="task"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):i.group_type=="okr"?t("i",{staticClass:"taskfont icon-avatar task"},[e._v("\uE6F4")]):t("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})],1),t("div",{staticClass:"dialog-info"},[t("div",{staticClass:"dialog-name",domProps:{innerHTML:e._s(e.transformEmojiToHtml(i.name))}}),t("div",{staticClass:"dialog-meta"},[t("span",{staticClass:"member-count"},[e._v(e._s(e.$L("(*) \u4EBA",i.people||0)))]),i.last_at?t("span",{staticClass:"last-time"},[e._v(e._s(e.$A.timeFormat(i.last_at)))]):e._e()])]),t("Icon",{staticClass:"enter-icon",attrs:{type:"ios-arrow-forward"}})],1)}),e.hasMore?t("div",{staticClass:"load-more-wrapper"},[t("Button",{attrs:{type:"primary",loading:e.loading>0},on:{click:function(i){return e.loadList(!0)}}},[e._v(e._s(e.$L("\u52A0\u8F7D\u66F4\u591A")))])],1):e._e()],2)])])},Tm=[];const Im={name:"CommonDialogModal",props:{value:{type:Boolean,default:!1},targetUserId:{type:[Number,String],required:!0},totalCount:{type:[Number,String],default:0}},data(){return{list:[],page:1,hasMore:!1,loading:0}},computed:{visibleProxy:{get(){return this.value},set(e){this.$emit("input",e)}}},watch:{visibleProxy(e){e&&this.list.length===0&&this.loadList(!1)},targetUserId(){this.list=[],this.page=1,this.hasMore=!1}},methods:{transformEmojiToHtml:mt,loadList(e=!1){if(!this.targetUserId)return;this.loading++;const s=e?this.page+1:1;this.$store.dispatch("call",{url:"dialog/common/list",data:{target_userid:this.targetUserId,page:s}}).then(({data:t})=>{const i=e?[...this.list,...t.data]:t.data;this.list=Array.isArray(i)?i:[],this.page=t.current_page||s,this.hasMore=!!t.next_page_url}).catch(({msg:t})=>{$A.modalError(t||this.$L("\u52A0\u8F7D\u5931\u8D25"))}).finally(()=>{this.loading--})},onEnterDialog(e){this.$emit("open-chat",e)}}},zi={};var Dm=A(Im,xm,Tm,!1,Em,"9c2e14d8",null,null);function Em(e){for(let s in zi)this[s]=zi[s]}var Lm=function(){return Dm.exports}(),Mm=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("Modal",{attrs:{"class-name":"user-works-modal",title:e.$L("\u9879\u76EE\u4E0E\u4EFB\u52A1"),"footer-hide":!0,width:"560"},model:{value:e.visibleProxy,callback:function(i){e.visibleProxy=i},expression:"visibleProxy"}},[e.activeTab!=="projects"?t("RadioGroup",{staticClass:"task-owner-filter",attrs:{type:"button",size:"small"},on:{"on-change":e.onOwnerChange},model:{value:e.taskOwner,callback:function(i){e.taskOwner=i},expression:"taskOwner"}},[t("Radio",{attrs:{label:"all"}},[e._v(e._s(e.$L("\u5168\u90E8")))]),t("Radio",{attrs:{label:"1"}},[e._v(e._s(e.$L("\u8D1F\u8D23")))]),t("Radio",{attrs:{label:"0"}},[e._v(e._s(e.$L("\u534F\u4F5C")))])],1):e._e(),t("Tabs",{staticClass:"user-works-tabs",model:{value:e.activeTab,callback:function(i){e.activeTab=i},expression:"activeTab"}},[t("TabPane",{attrs:{label:e.projectsTabLabel,name:"projects"}},[t("div",{staticClass:"user-works-content"},[e.projects.loading>0&&e.projects.list.length===0?t("div",{staticClass:"loading-wrapper"},[t("Loading")],1):e.projects.list.length===0?t("div",{staticClass:"empty-wrapper"},[t("div",{staticClass:"empty-content"},[t("Icon",{attrs:{type:"ios-folder-outline",size:"48"}}),t("p",[e._v(e._s(e.$L("\u6682\u65E0\u9879\u76EE")))])],1)]):t("div",{staticClass:"works-list"},[e._l(e.projects.list,function(i){return t("div",{key:i.id,staticClass:"works-item",on:{click:function(n){return e.onOpenProject(i)}}},[t("div",{staticClass:"works-icon project"},[t("i",{staticClass:"taskfont"},[e._v("\uE6F9")])]),t("div",{staticClass:"works-info"},[t("div",{staticClass:"works-name",domProps:{innerHTML:e._s(e.transformEmojiToHtml(i.name))}}),t("div",{staticClass:"works-meta"},[t("span",{staticClass:"role-badge",class:e.ownerClass(i.owner)},[e._v(e._s(e.ownerText(i.owner)))]),t("span",{staticClass:"works-stat"},[e._v(e._s(e.$L("\u4EFB\u52A1"))+" "+e._s(i.task_complete||0)+"/"+e._s(i.task_num||0))])])]),t("Icon",{staticClass:"enter-icon",attrs:{type:"ios-arrow-forward"}})],1)}),e.projects.hasMore?t("div",{staticClass:"load-more-wrapper"},[t("Button",{attrs:{type:"primary",loading:e.projects.loading>0},on:{click:function(i){return e.loadProjects(!0)}}},[e._v(e._s(e.$L("\u52A0\u8F7D\u66F4\u591A")))])],1):e._e()],2)])]),e._l(e.taskTabs,function(i){return t("TabPane",{key:i.key,attrs:{label:e.taskTabLabel(i.key),name:i.key}},[t("div",{staticClass:"user-works-content tasks"},[e.tabState(i.key).loading>0&&e.tabState(i.key).list.length===0?t("div",{staticClass:"loading-wrapper"},[t("Loading")],1):e.tabState(i.key).list.length===0?t("div",{staticClass:"empty-wrapper"},[t("div",{staticClass:"empty-content"},[t("Icon",{attrs:{type:"ios-list-box-outline",size:"48"}}),t("p",[e._v(e._s(e.$L("\u6682\u65E0\u4EFB\u52A1")))])],1)]):t("div",{staticClass:"works-list"},[e._l(e.tabState(i.key).list,function(n){return t("div",{key:n.id,staticClass:"works-item",on:{click:function(r){return e.onOpenTask(n)}}},[t("div",{staticClass:"works-icon task",class:{completed:!!n.complete_at}},[t("i",{staticClass:"taskfont"},[e._v("\uE6F4")])]),t("div",{staticClass:"works-info"},[t("div",{staticClass:"works-name",class:{completed:!!n.complete_at},domProps:{innerHTML:e._s(e.transformEmojiToHtml(n.name))}}),t("div",{staticClass:"works-meta"},[n.flow_item_name?t("span",{staticClass:"flow-name",class:n.flow_item_status,style:e.$A.generateColorVarStyle(n.flow_item_color,[10],"flow-item-custom-color")},[e._v(e._s(n.flow_item_name))]):n.complete_at?t("span",{staticClass:"flow-name end"},[e._v(e._s(e.$L("\u5DF2\u5B8C\u6210")))]):e._e(),t("span",{staticClass:"role-badge",class:n.owner?"owner":"assist"},[e._v(e._s(n.owner?e.$L("\u8D1F\u8D23"):e.$L("\u534F\u4F5C")))]),n.project_name?t("span",{staticClass:"works-project"},[e._v(e._s(n.project_name))]):e._e(),n.end_at?t("span",{staticClass:"works-time",class:{overdue:n.overdue}},[e._v(e._s(e.$A.timeFormat(n.end_at)))]):e._e()])]),t("Icon",{staticClass:"enter-icon",attrs:{type:"ios-arrow-forward"}})],1)}),e.tabState(i.key).hasMore?t("div",{staticClass:"load-more-wrapper"},[t("Button",{attrs:{type:"primary",loading:e.tabState(i.key).loading>0},on:{click:function(n){return e.loadTasks(i.key,!0)}}},[e._v(e._s(e.$L("\u52A0\u8F7D\u66F4\u591A")))])],1):e._e()],2)])])})],2)],1)},Pm=[];const $e=()=>({list:[],page:1,hasMore:!1,loading:0,total:null}),jm={name:"UserWorksModal",props:{value:{type:Boolean,default:!1},targetUserId:{type:[Number,String],required:!0}},data(){return{activeTab:"projects",taskOwner:"all",taskTabs:[{key:"todo",status:"uncompleted"},{key:"done",status:"completed"}],counts:{project:null,todo:null,done:null},projects:$e(),todo:$e(),done:$e()}},computed:{visibleProxy:{get(){return this.value},set(e){this.$emit("input",e)}},projectsTabLabel(){return this.withCount(this.$L("\u9879\u76EE"),this.counts.project)}},watch:{visibleProxy(e){e&&this.loadInitial()},activeTab(e){e!=="projects"&&this.tabState(e).list.length===0&&this.tabState(e).loading===0&&this.loadTasks(e,!1)},targetUserId(){this.resetState(),this.visibleProxy&&this.loadInitial()}},methods:{transformEmojiToHtml:mt,tabState(e){return this[e]},withCount(e,s){return s==null?e:`${e} (${s})`},taskTabLabel(e){const s=e==="todo"?this.$L("\u5F85\u529E"):this.$L("\u5DF2\u5B8C\u6210");return this.withCount(s,this.counts[e])},resetState(){this.counts={project:null,todo:null,done:null},this.projects=$e(),this.todo=$e(),this.done=$e()},loadInitial(){this.loadCounts(),this.loadActive()},loadActive(){if(this.activeTab==="projects")this.projects.list.length===0&&this.projects.loading===0&&this.loadProjects(!1);else{const e=this.tabState(this.activeTab);e.list.length===0&&e.loading===0&&this.loadTasks(this.activeTab,!1)}},loadCounts(){if(!this.targetUserId)return;const e={userid:this.targetUserId};this.taskOwner!=="all"&&(e.owner=this.taskOwner),this.$store.dispatch("call",{url:"project/user/counts",data:e}).then(({data:s})=>{this.counts={project:typeof s.project=="number"?s.project:0,todo:typeof s.todo=="number"?s.todo:0,done:typeof s.done=="number"?s.done:0}}).catch(()=>{})},loadProjects(e=!1){if(!this.targetUserId)return;this.projects.loading++;const s=e?this.projects.page+1:1;this.$store.dispatch("call",{url:"project/user/projects",data:{userid:this.targetUserId,page:s}}).then(({data:t})=>{const i=Array.isArray(t.data)?t.data:[];this.projects.list=e?[...this.projects.list,...i]:i,this.projects.page=t.current_page||s,this.projects.hasMore=!!t.next_page_url,this.projects.total=typeof t.total=="number"?t.total:i.length,this.counts.project=this.projects.total}).catch(({msg:t})=>{$A.modalError(t||this.$L("\u52A0\u8F7D\u5931\u8D25"))}).finally(()=>{this.projects.loading--})},loadTasks(e,s=!1){if(!this.targetUserId)return;const t=this.tabState(e),i=this.taskTabs.find(o=>o.key===e);t.loading++;const n=s?t.page+1:1,r={userid:this.targetUserId,page:n,keys:{status:i.status}};this.taskOwner!=="all"&&(r.owner=this.taskOwner),this.$store.dispatch("call",{url:"project/user/tasks",data:r}).then(({data:o})=>{const a=(Array.isArray(o.data)?o.data:[]).map(l=>this.normalizeFlow(l));t.list=s?[...t.list,...a]:a,t.page=o.current_page||n,t.hasMore=!!o.next_page_url,t.total=typeof o.total=="number"?o.total:a.length,this.counts[e]=t.total}).catch(({msg:o})=>{$A.modalError(o||this.$L("\u52A0\u8F7D\u5931\u8D25"))}).finally(()=>{t.loading--})},onOwnerChange(){this.taskTabs.forEach(e=>{this[e.key]=$e()}),this.loadCounts(),this.loadActive()},normalizeFlow(e){if(e.flow_item_name&&e.flow_item_name.indexOf("|")!==-1){const s=$A.convertWorkflow(e.flow_item_name);e.flow_item_status=s.status,e.flow_item_name=s.name,e.flow_item_color=s.color}return e},ownerText(e){return e===1?this.$L("\u8D1F\u8D23\u4EBA"):e===2?this.$L("\u7BA1\u7406\u5458"):this.$L("\u6210\u5458")},ownerClass(e){return e===1?"owner":e===2?"deputy":"member"},onOpenProject(e){$A.goForward({name:"manage-project",params:{projectId:e.id}}),this.$emit("navigate")},onOpenTask(e){this.$store.dispatch("openTask",e)}}},Ui={};var Rm=A(jm,Mm,Pm,!1,Om,"79698690",null,null);function Om(e){for(let s in Ui)this[s]=Ui[s]}var zm=function(){return Rm.exports}(),Um=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("ModalAlive",{attrs:{"class-name":"common-user-detail-modal",fullscreen:e.isFullscreen,"mask-closable":!1,"footer-hide":!0,width:"480"},model:{value:e.showModal,callback:function(i){e.showModal=i},expression:"showModal"}},[t("div",{staticClass:"user-detail-body"},[t("div",{staticClass:"profile-header"},[t("div",{staticClass:"cover-photo",style:{"--user-cover-photo":`url(${e.userData.userimg||""})`}}),t("div",{staticClass:"profile-avatar"},[t("UserAvatar",{attrs:{userid:e.userData.userid,size:96,"show-state-dot":!1},on:{"on-click":e.onOpenAvatar}})],1)]),t("div",{staticClass:"profile-content"},[t("div",{staticClass:"user-info-top"},[t("h1",{staticClass:"username"},[e._v(" "+e._s(e.userData.nickname)+" ")]),t("div",{staticClass:"meta"},[t("span",{staticClass:"common-dialog",on:{click:function(i){e.commonDialogShow=!0}}},[e._v(e._s(e.$L(e.userId==e.userData.userid?"\u6211\u7684\u7FA4\u7EC4":"\u5171\u540C\u7FA4\u7EC4"))+":"),t("em",[e._v(e._s(e.$L("(*)\u4E2A",e.commonDialog.total)))])]),e.worksVisible?[t("span",{staticClass:"separator"},[e._v("|")]),t("span",{staticClass:"common-dialog works-entry",on:{click:function(i){e.worksModalShow=!0}}},[e._v(e._s(e.$L("\u9879\u76EE\u4E0E\u4EFB\u52A1")))])]:e._e(),t("span",{staticClass:"separator"},[e._v("|")]),t("span",{attrs:{title:e.lineAtDisplay.title}},[e._v(e._s(e.$L("\u6700\u540E\u5728\u7EBF"))+": "+e._s(e.lineAtDisplay.text))])],2)]),t("div",{staticClass:"profile-actions"},[t("Button",{on:{click:e.onOpenDialog}},[t("i",{staticClass:"taskfont"},[e._v("\uE6EB")]),e._v(e._s(e.$L("\u5F00\u59CB\u804A\u5929")))]),t("Button",{on:{click:e.onCreateGroup}},[t("i",{staticClass:"taskfont"},[e._v("\uE63F")]),e._v(e._s(e.$L("\u521B\u5EFA\u7FA4\u7EC4")))])],1),e.userData.introduction?t("div",{staticClass:"profile-bio"},[t("p",[e._v(e._s(e.userData.introduction))])]):e._e(),t("div",{staticClass:"profile-information"},[t("h2",[e._v(e._s(e.$L("\u4E2A\u4EBA\u4FE1\u606F")))]),t("ul",[t("li",[t("Icon",{attrs:{type:"ios-briefcase-outline"}}),t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u804C\u4F4D/\u804C\u79F0")))]),t("span",{staticClass:"value"},[e._v(e._s(e.userData.profession||"-"))])],1),t("li",[t("Icon",{attrs:{type:"ios-people-outline"}}),t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u90E8\u95E8")))]),t("span",{staticClass:"value"},[e._v(e._s(e.userData.department_name||"-"))])],1),t("li",[t("Icon",{attrs:{type:"ios-mail-outline"}}),t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u90AE\u7BB1")))]),t("span",{staticClass:"value",class:{clickable:e.userData.email},on:{click:e.onOpenEmail}},[e._v(e._s(e.userData.email||"-"))])],1),t("li",[t("Icon",{attrs:{type:"ios-call-outline"}}),t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u7535\u8BDD")))]),t("span",{staticClass:"value",class:{clickable:e.userData.tel},on:{click:e.onOpenTel}},[e._v(e._s(e.userData.tel||"-"))])],1),e.userData.birthday?t("li",[t("Icon",{attrs:{type:"ios-calendar-outline"}}),t("span",{staticClass:"label"},[e._v(e._s(e.$L("\u751F\u65E5")))]),t("span",{staticClass:"value"},[e._v(e._s(e.userData.birthday||"-"))])],1):e._e()]),t("div",{staticClass:"profile-tags"},[e.displayTags.length?t("div",{staticClass:"tags-list"},[e._l(e.displayTags,function(i){return t("Button",{key:i.id,attrs:{type:i.recognized?"primary":"default"},on:{click:e.onOpenTagsModal}},[e._v(" "+e._s(i.name)+" "),i.recognition_total>0?t("span",{staticClass:"recognition-total"},[e._v(e._s(i.recognition_total))]):e._e()])}),t("Button",{staticClass:"manage-tags-btn icon",attrs:{type:"dashed"},on:{click:e.onOpenTagsModal}},[t("Icon",{attrs:{type:"ios-settings-outline"}}),e._v(" "+e._s(e.$L("\u7BA1\u7406"))+" ")],1)],2):t("div",{staticClass:"tags-empty"},[t("Button",{staticClass:"add-tag-btn",attrs:{type:"dashed",icon:"md-add"},on:{click:e.onOpenTagsModal}},[e._v(e._s(e.$L("\u6DFB\u52A0\u6807\u7B7E")))])],1)])])])]),e.userData.userid?t("UserTagsModal",{attrs:{userid:e.userData.userid},on:{updated:e.onTagsUpdated},model:{value:e.tagModalVisible,callback:function(i){e.tagModalVisible=i},expression:"tagModalVisible"}}):e._e(),t("CommonDialogModal",{attrs:{"target-user-id":e.userData.userid,"total-count":e.commonDialog.total||0},on:{"open-chat":e.onOpenCommonDialogChat},model:{value:e.commonDialogShow,callback:function(i){e.commonDialogShow=i},expression:"commonDialogShow"}}),e.worksVisible&&e.userData.userid?t("UserWorksModal",{attrs:{"target-user-id":e.userData.userid},on:{navigate:e.onHide},model:{value:e.worksModalShow,callback:function(i){e.worksModalShow=i},expression:"worksModalShow"}}):e._e()],1)},Nm=[];const Bm={name:"UserDetail",components:{UserTagsModal:Sm,CommonDialogModal:Lm,UserWorksModal:zm},data(){return{userData:{userid:0},showModal:!1,tagModalVisible:!1,commonDialog:{userid:null,total:null,list:[],page:1,has_more:!1},commonDialogShow:!1,commonDialogLoading:0,worksModalShow:!1}},mounted(){T.on("openUser",this.onShow)},beforeDestroy(){T.off("openUser",this.onShow)},watch:{...z(["cacheUserBasic"]),commonDialogShow(){!this.commonDialogShow||this.commonDialog.list.length>0||this.loadCommonDialogList(!1)}},computed:{isFullscreen({windowWidth:e}){return e<576},displayTags(){return Array.isArray(this.userData.personal_tags)?this.userData.personal_tags:[]},personalTagTotal(){return typeof this.userData.personal_tags_total=="number"?this.userData.personal_tags_total:this.displayTags.length},commonDialogList(){return this.commonDialog.list||[]},worksVisible(){return!!this.userData.works_visible},lineAtDisplay({userData:e}){const s=e.line_at;if(!s)return{text:"-",title:""};const t=$A.daytz(),i=$A.dayjs(s),n=i.format("YYYY-MM-DD HH:mm"),r=t.unix()-i.unix();let o;return r<60?o=this.$L("\u521A\u521A"):r<3600?o=this.$L("(*)\u5206\u949F\u524D",Math.floor(r/60)):r<3600*24?o=this.$L("(*)\u5C0F\u65F6\u524D",Math.floor(r/3600)):r<3600*24*7?o=this.$L("(*)\u5929\u524D",Math.floor(r/86400)):i.isAfter(t.clone().subtract(1,"month"))?o=i.format("MM-DD HH:mm"):o=i.format("YYYY-MM-DD"),{text:o,title:n}}},methods:{transformEmojiToHtml:mt,onShow(e){!/^\d+$/.test(e)||(this.$store.dispatch("showSpinner",600),Promise.all([this.$store.dispatch("getUserData",e).catch(()=>null),this.$store.dispatch("getUserExtra",e).catch(()=>null)]).then(([s,t])=>{const i=$A.isJson(s)?s:{},n=$A.isJson(t)?t:{};this.userData=Object.assign({},i,n),this.ensureTagDefaults(),this.showModal=!0,this.loadCommonDialogCount()}).finally(s=>{this.$store.dispatch("hiddenSpinner")}))},onHide(){this.showModal=!1,this.tagModalVisible=!1,this.commonDialogShow=!1,this.worksModalShow=!1},onOpenAvatar(){this.$store.dispatch("previewImage",this.userData.userimg)},onOpenDialog(){this.$store.dispatch("openDialogUserid",this.userData.userid).then(e=>{this.onHide()}).catch(({msg:e})=>{$A.modalError(e)})},onCreateGroup(){const e=[this.$store.state.userId];this.userData.userid&&this.$store.state.userId!=this.userData.userid&&e.push(this.userData.userid),T.emit("createGroup",e),this.onHide()},ensureTagDefaults(){Array.isArray(this.userData.personal_tags)||this.$set(this.userData,"personal_tags",[]),typeof this.userData.personal_tags_total!="number"&&this.$set(this.userData,"personal_tags_total",this.userData.personal_tags.length)},onOpenTagsModal(){!this.userData.userid||(this.tagModalVisible=!0)},onTagsUpdated({top:e,total:s}){this.$set(this.userData,"personal_tags",Array.isArray(e)?e:[]),this.$set(this.userData,"personal_tags_total",typeof s=="number"?s:this.userData.personal_tags.length)},loadCommonDialogCount(){const e=this.userData.userid,s=this.commonDialog.userid;if(!e){this.commonDialog={...this.commonDialog,userid:e||null,total:null,list:[],page:1,has_more:!1};return}s!==e&&(this.commonDialog={...this.commonDialog,userid:e,total:null,list:[],page:1,has_more:!1});const i=(this.$store.state.dialogCommonCountCache||{})[String(e)];i&&typeof i.total!="undefined"&&(this.commonDialog={...this.commonDialog,total:i.total}),this.$store.dispatch("call",{url:"dialog/common/list",data:{target_userid:e,only_count:"yes"}}).then(({data:n})=>{if(e!==this.userData.userid)return;const r=Number(n.total),o=Number.isNaN(r)?0:r;this.commonDialog={...this.commonDialog,userid:e,total:o,list:[],page:1,has_more:!1},this.$store.commit("common/dialog/count/save",{userid:e,total:o})})},loadCommonDialogList(e=!1){this.commonDialogLoading++;const s=this.userData.userid;this.$store.dispatch("call",{url:"dialog/common/list",data:{target_userid:s,page:e?this.commonDialog.page+1:1}}).then(({data:t})=>{s===this.userData.userid&&(this.commonDialog={...this.commonDialog,list:e?[...this.commonDialog.list,...t.data]:t.data,total:t.total,page:t.current_page,has_more:!!t.next_page_url})}).catch(({msg:t})=>{$A.modalError(t||this.$L("\u52A0\u8F7D\u5931\u8D25"))}).finally(()=>{this.commonDialogLoading--})},onOpenCommonDialogChat(e){this.$store.dispatch("openDialog",e.id).then(()=>{this.onHide()}).catch(({msg:s})=>{$A.modalError(s)})},onOpenEmail(){!this.userData.email||$A.modalConfirm({content:`\u662F\u5426\u53D1\u9001\u90AE\u4EF6\u7ED9 ${this.userData.nickname}\uFF1F`,onOk:()=>{window.open(`mailto:${this.userData.email}`)}})},onOpenTel(){!this.userData.tel||$A.modalConfirm({content:`\u662F\u5426\u62E8\u6253\u7535\u8BDD\u7ED9 ${this.userData.nickname}\uFF1F`,onOk:()=>{$A.isEEUIApp()?$A.eeuiAppSendMessage({action:"callTel",tel:this.userData.tel}):window.open(`tel:${this.userData.tel}`)}})}}},Ni={};var Fm=A(Bm,Um,Nm,!1,Hm,null,null,null);function Hm(e){for(let s in Ni)this[s]=Ni[s]}var Wm=function(){return Fm.exports}(),Vm=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"app-view",attrs:{id:"app"}},[t("div",{staticClass:"child-status-bar"}),t("keep-alive",[t("router-view",{staticClass:"child-view",on:{"~hook:mounted":function(i){return e.onRouterViewMounted.apply(null,arguments)}}})],1),t("div",{staticClass:"child-navigation-bar"}),t("TaskOperation"),t("MeetingManager"),t("ProjectInvite"),t("DropdownMenu"),t("FloatSpinner"),t("RightBottom"),t("PreviewImageState"),t("AuthException"),t("GuidePage"),t("UserDetail"),t("AIAssistant"),e.isFirstPage?t("MobileBack"):e._e(),e.isFirstPage?t("MobileNotification"):e._e(),e.windowLandscape?t("NetworkException"):e._e()],1)},Ym=[];const qm={mixins:[Lh],components:{AIAssistant:wm,UserDetail:Wm,MobileBack:Ch,MobileNotification:yh,AuthException:co,MeetingManager:Gd,ProjectInvite:ph,DropdownMenu:Eh,TaskOperation:Dd,NetworkException:go,PreviewImageState:io,RightBottom:Fr,FloatSpinner:jr,GuidePage:ko},data(){return{appInter:null,appActivated:!0,countDown:Math.min(30,60-$A.daytz().second()),lastCheckUpgradeYmd:$A.daytz().format("YYYY-MM-DD")}},created(){this.electronEvents(),this.eeuiEvents(),this.otherEvents()},mounted(){this.appInter=setInterval(this.appTimerHandler,1e3),$A.loadVConsole()},beforeDestroy(){this.appInter&&clearInterval(this.appInter)},computed:{...z(["ws","themeConf","windowOrientation","safeAreaSize","isFirstPage","mobileTabbar","themeName"]),statusColor({routeName:e,windowLandscape:s}){return e?s?"#f4f5f7":["login","manage-messenger","manage-project"].includes(e)||e.startsWith("manage-setting")?"#f8f8f8":null:null},navigationColor({routeName:e,windowLandscape:s,mobileTabbar:t}){return e?s?"#f4f5f7":["login","manage-messenger","manage-project","manage-setting"].includes(e)||t?"#f8f8f8":null:null},rootStyle(){return{"--window-width":`${this.windowWidth}px`,"--window-height":`${this.windowHeight}px`,"--window-scroll-y":`${this.windowScrollY}px`,"--status-bar-height":`${this.safeAreaSize.top}px`,"--status-bar-color":this.statusColor||"#ffffff","--navigation-bar-height":`${this.safeAreaSize.bottom}px`,"--navigation-bar-color":this.navigationColor||"#ffffff"}}},watch:{$route:{handler({name:e,path:s,params:t}){this.$store.state.routeName=e,this.$store.state.routePath=s,this.$store.state.mobileTabbar=e==="manage-project"&&!/^\d+$/.test(t.projectId)||["manage-dashboard","manage-messenger","manage-application"].includes(e)},immediate:!0},routePath:{handler(e){e&&this.userId>0&&(e=e.replace(/^\/manage\/file\/\d+\/(\d+)$/,"/single/file/$1"),this.$store.dispatch("websocketPath",e))},immediate:!0},userId:{handler(){this.$store.dispatch("websocketConnection"),this.$isEEUIApp&&(this.umengAliasTimer&&clearTimeout(this.umengAliasTimer),this.userId>0?($A.eeuiAppSendMessage({action:"initApp",apiUrl:$A.apiUrl(""),userid:this.userId,token:this.userToken,language:M,userAgent:window.navigator.userAgent}),$A.eeuiAppGetDeviceInfo().then(async e=>{let s=e.deviceName||e.modelName;e.systemName==="Android"&&($A.strExists(e.modelName,e.brand)?s=e.modelName:s=e.brand+" "+e.model),await this.$store.dispatch("call",{url:"users/device/edit",data:{device_name:s,app_brand:e.brand,app_model:e.model,app_os:e.systemName+" "+e.systemVersion}})}).catch(console.log),this.umengAliasTimer=setTimeout(e=>{this.umengAliasTimer=null,$A.eeuiAppSendMessage({action:"setUmengAlias",url:$A.apiUrl("users/umeng/alias")})},6e3)):$A.eeuiAppSendMessage({action:"delUmengAlias",url:$A.apiUrl("users/umeng/alias")}))},immediate:!0},rootStyle:{handler(e){for(const s in e)document.documentElement.style.setProperty(s,e[s])},immediate:!0},windowTouch:{handler(e){e?$A("body").addClass("window-touch"):$A("body").removeClass("window-touch")},immediate:!0},windowOrientation:{handler(e){$A("body").removeClass(["window-landscape","window-portrait"]),$A("body").addClass("window-"+e)},immediate:!0},isCtrlCommandPressed:{handler(e){this.$store.state.isModKey=e},immediate:!0},windowActive(e){if(!e){this.$store.dispatch("audioStop",!0);return}this.autoTheme(),$A.updateTimezone(),this.__windowTimer&&clearTimeout(this.__windowTimer),this.__timeoutTimer&&clearTimeout(this.__timeoutTimer),this.__windowTimer=setTimeout(async()=>{try{await this.$store.dispatch("call",{url:"users/socket/status"}),await new Promise((s,t)=>{this.$store.dispatch("websocketSend",{type:"handshake",callback:(i,n)=>{n?s():t(new Error("Handshake failed"))}}),this.__timeoutTimer=setTimeout(()=>t(new Error("Handshake timeout")),6e3)})}catch{await this.$store.dispatch("websocketConnection")}},600)}},methods:{appTimerHandler(){this.searchEnter(),this.countDown--,this.countDown<=0&&(this.countDown=Math.min(30,60-$A.daytz().second()),this.$store.dispatch("todayAndOverdue"))},searchEnter(){let e=$A(".search-container");if(e.length===0||e.attr("data-enter-init")==="init")return;e.attr("data-enter-init","init");let s=e.find("button[type='button']"),t=null;s.length!==0&&(s.each((i,n)=>{$A(n).text().indexOf("\u641C\u7D22")&&(t=$A(n))}),t!==null&&e.find("input.ivu-input").keydown(function(i){i.keyCode==13&&(t.hasClass("ivu-btn-loading")||t.click())}))},autoTheme(){this.themeConf==="auto"&&this.$store.dispatch("synchTheme")},onRouterViewMounted(){document.documentElement.setAttribute("data-platform",$A.isElectron?"desktop":$A.isEEUIApp?"app":"web")},getUrlMethodType(e){if(this.isCtrlCommandPressed||this.isApplicationProtocol(e)||this.isMeetingUrlStrict(e)||this.isDownloadUrl(e))return 1;if($A.getDomain(e)==$A.mainDomain())try{const{pathname:s,searchParams:t}=new URL(e);if(/^\/meeting\/\d+\/\S+$/.test(s)){const i=s.split("/")[2];return T.emit("addMeeting",{type:"join",meetingid:i,meetingdisabled:!0}),2}if(/^\/manage\/project\/invite/.test(s)){const i=s.split("/"),n=i.length>4?i[4]:t.get("code");return T.emit("openProjectInvite",{code:n}),2}}catch{}return 0},isDownloadUrl(e){if($A.getDomain(e)==$A.mainDomain())try{const{pathname:s,searchParams:t}=new URL(e);if(["/uploads","/api/dialog/msg/download","/api/project/task/filedown","/api/file/download/pack","/api/project/task/down","/api/system/checkin/down"].some(n=>$A.leftExists(s,n))||$A.leftExists(s,"/api/file/content")&&t.get("down")==="yes")return!0}catch{}return!1},isApplicationProtocol(e){const s=["thunder:","ed2k:","magnet:","weixin:","alipays:","mqq:","dingtalk:","baidumap:","iosamap:","androidamap:","tel:","sms:","mailto:","market:","intent:","taobao:","tmall:","jd:","pinduoduo:","vnd.youtube:","zhihu:","bilibili:","snssdk1128:","kwai:","fb:","twitter:","instagram:","linkedin:"],t=`${e}`.toLowerCase();return s.some(i=>t.startsWith(i))},isMeetingUrlStrict(e){const s=["zoom.us","meeting.tencent.com","teams.microsoft.com","meet.google.com","meeting.feishu.cn","meeting.dingtalk.com","webex.com","bluejeans.com","goto.com","gotomeeting.com","8x8.vc","meet.jit.si","jitsi.baidu.com","whereby.com","lifesize.com","starleaf.com","classroomscreen.com","bigbluebutton.org","matrix.to","meetings.vonage.com","voovmeeting.com","skype.com","maps.google.com","maps.apple.com","amap.com","map.baidu.com","map.qq.com","mapurl.cn","alipay.com","pay.weixin.qq.com","paypal.com/cgi-bin","checkout.stripe.com","pay.google.com","pay.qq.com","pay.baidu.com","apps.apple.com","play.google.com","itunes.apple.com","apps.samsung.com","microsoft.com/store","amazon.com/apps","apk.qq.com","app.mi.com","app.hicloud.com","pan.baidu.com","aliyundrive.com","drive.google.com","onedrive.live.com","xunlei.com","wx.qq.com","im.qq.com","web.whatsapp.com","web.telegram.org","discord.com/channels","messenger.com/call","workspace.dingtalk.com","douyin.com/live","live.kuaishou.com","live.bilibili.com","douyu.com/room","yy.com/x/","inke.cn/live","facebook.com/live","instagram.com/live","youtube.com/live","twitch.tv/live"],t=`${e}`.toLowerCase();return s.some(i=>t.indexOf(i)!==-1)},electronEvents(){!this.$Electron||(window.__onBeforeUnload=()=>{if(this.$store.dispatch("onBeforeUnload"),this.$Modal.removeLast())return!0},this.$Electron.sendMessage("registerCloseInterceptor"),window.__onBeforeOpenWindow=({url:e})=>{const s=this.getUrlMethodType(e);return s===2?!0:s===1?this.isDownloadUrl(e)?(this.$store.dispatch("downUrl",e),!0):!1:(this.$store.dispatch("openWindow",e),!0)},this.$Electron.listener("browserWindowBlur",e=>{this.$store.state.windowActive=!1}),this.$Electron.listener("browserWindowFocus",e=>{this.$store.state.windowActive=!0}),this.$Electron.listener("systemThemeChanged",e=>{this.autoTheme()}),this.$Electron.listener("openDownloadWindow",e=>{$A.Electron.request({action:"openDownloadWindow",language:M,theme:this.themeName})}),$A.bindScreenshotKey(this.$store.state.cacheKeyboard),this.$Electron.sendMessage("setMenuLanguage",{copy:this.$L("\u590D\u5236"),back:this.$L("\u540E\u9000"),forward:this.$L("\u524D\u8FDB"),reload:this.$L("\u91CD\u65B0\u52A0\u8F7D"),print:this.$L("\u6253\u5370"),openInBrowser:this.$L("\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00"),openInDefaultBrowser:this.$L("\u9ED8\u8BA4\u6D4F\u89C8\u5668\u6253\u5F00"),saveImageAs:this.$L("\u56FE\u7247\u5B58\u50A8\u4E3A..."),copyImage:this.$L("\u590D\u5236\u56FE\u7247"),copyEmailAddress:this.$L("\u590D\u5236\u7535\u5B50\u90AE\u4EF6\u5730\u5740"),copyLinkAddress:this.$L("\u590D\u5236\u94FE\u63A5\u5730\u5740"),copyImageAddress:this.$L("\u590D\u5236\u56FE\u7247\u5730\u5740"),moveToNewWindow:this.$L("\u5C06\u6807\u7B7E\u9875\u79FB\u81F3\u65B0\u7A97\u53E3"),failedToSaveImage:this.$L("\u56FE\u7247\u4FDD\u5B58\u5931\u8D25"),theImageFailedToSave:this.$L("\u56FE\u7247\u65E0\u6CD5\u4FDD\u5B58")}))},eeuiEvents(){!this.$isEEUIApp||(setTimeout(()=>{this.appActivated&&$A.eeuiAppHideWebviewSnapshot()},500),window.__onAppActive=async()=>{if(this.appActivated=!0,!await $A.IDBTest())return;this.autoTheme(),$A.updateTimezone(),$A.eeuiAppHideWebviewSnapshot(),this.$store.dispatch("safeAreaInsets");const e=$A.daytz().format("YYYY-MM-DD");this.lastCheckUpgradeYmd!=e&&(this.lastCheckUpgradeYmd=e,$A.eeuiAppCheckUpdate())},window.__onAppDeactive=()=>{this.appActivated=!1,setTimeout(()=>{this.appActivated||$A.eeuiAppGetWebviewSnapshot(e=>{!e||this.appActivated||$A.eeuiAppShowWebviewSnapshot()})},500)},window.__onPagePause=()=>{this.$store.state.windowActive=!1,this.$store.dispatch("getBasicData",-1)},window.__onPageResume=e=>{this.$store.state.windowActive=!0,e>0?this.$store.dispatch("getBasicData",600):this.autoTheme()},window.__onCreateTarget=e=>{const s=this.getUrlMethodType(e);if(s!==2){if(s===1){$A.eeuiAppOpenWeb(e);return}this.$store.dispatch("openAppChildPage",{pageType:"app",pageTitle:" ",url:"web.js",params:{url:e}})}},window.__onMeetingEvent=e=>{if(!!$A.isJson(e))switch(e.act){case"getInfo":const s=(e.uuid+"").indexOf("88888")!==-1;this.$store.dispatch("call",{url:s?"users/meeting/tourist":"users/basic",data:{userid:s?e.uuid:(e.uuid+"").substring(6),tourist_id:e.uuid}}).then(({data:t})=>{var i,n;$A.eeuiAppSendMessage({action:"updateMeetingInfo",infos:{uuid:e.uuid,avatar:s?t==null?void 0:t.userimg:(i=t[0])==null?void 0:i.userimg,username:s?t==null?void 0:t.nickname:(n=t[0])==null?void 0:n.nickname}})}).catch(({msg:t})=>{$A.modalError(t)});break;case"success":this.$store.dispatch("closeMeetingWindow","add");break;case"invent":this.$store.dispatch("showMeetingWindow",{type:"invitation",meetingid:e.meetingid});break;case"endMeeting":break;case"error":this.$store.dispatch("closeMeetingWindow","error");break;case"status":this.$store.state.appMeetingShow=e.status;break}},window.__onKeyboardStatus=e=>{$A.isJson(e)||(e=$A.jsonParse(decodeURIComponent(e))),$A.isJson(e)&&(this.$store.state.keyboardShow=e.keyboardType==="show",this.$store.state.keyboardHeight=e.keyboardHeight,$A.eeuiAppShakeToEditEnabled(this.$store.state.keyboardShow))},window.__onNotificationPermissionStatus=e=>{this.$store.state.appNotificationPermission=$A.runNum(e)==1},window.__handleLink=e=>{this.goForward({path:(e||"").indexOf("/")!==0?"/"+e:e})},$A.eeuiAppSendMessage({action:"windowSize",width:this.windowWidth,height:this.windowHeight}),$A.eeuiAppSetHapticBackEnabled(!1),$A.eeuiAppSetCachesString("languageWebBack",this.$L("\u540E\u9000")),$A.eeuiAppSetCachesString("languageWebForward",this.$L("\u524D\u8FDB")),$A.eeuiAppSetCachesString("languageWebBrowser",this.$L("\u6D4F\u89C8\u5668\u6253\u5F00")),$A.eeuiAppSetCachesString("languageWebRefresh",this.$L("\u5237\u65B0")),$A.eeuiAppSetCachesString("updateDefaultTitle",this.$L("\u53D1\u73B0\u65B0\u7248\u672C")),$A.eeuiAppSetCachesString("updateDefaultContent",this.$L("\u6682\u65E0\u66F4\u65B0\u4ECB\u7ECD\uFF01")),$A.eeuiAppSetCachesString("updateDefaultCancelText",this.$L("\u4EE5\u540E\u518D\u8BF4")),$A.eeuiAppSetCachesString("updateDefaultUpdateText",this.$L("\u7ACB\u5373\u66F4\u65B0")))},otherEvents(){if(!this.$isSoftware){const e="hidden"in document?"hidden":"webkitHidden"in document?"webkitHidden":"mozHidden"in document?"mozHidden":null,s=e.replace(/hidden/i,"visibilitychange");document.addEventListener(s,()=>{this.$store.state.windowActive=!document[e]})}}}},Bi={};var Km=A(qm,Vm,Ym,!1,Gm,"ce7552e4",null,null);function Gm(e){for(let s in Bi)this[s]=Bi[s]}var Jm=function(){return Km.exports}(),Qm=[{name:"index",path:"/",component:()=>D(()=>import("./index.580a6231.js"),["js/build/index.580a6231.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"pro",path:"/pro",component:()=>D(()=>import("./pro.7c6964be.js"),["js/build/pro.7c6964be.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"meeting",path:"/meeting/:meetingId?/:sharekey?",component:()=>D(()=>import("./meeting.e128bdbb.js"),["js/build/meeting.e128bdbb.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage",path:"/manage",component:()=>D(()=>import("./manage.86e7e711.js"),["js/build/manage.86e7e711.js","js/build/manage.9f03272d.css","js/build/vuex.cc7cb26e.js","js/build/SearchButton.7ef0096e.js","js/build/CheckinExport.4adb8d2d.js","js/build/CheckinExport.a228f52c.css","js/build/index.978d6d4c.js","js/build/ImgUpload.be73943e.js","js/build/chunkedUpload.b0e8368a.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/file.5e8166ad.js","js/build/TaskDetail.c2a72552.js","js/build/TaskDetail.0724974a.css","js/build/add.c5913792.js","js/build/add.90416dbc.css","js/build/DialogWrapper.d635cc01.js","js/build/vue-virtual-scroll-list-hi.74ad83f0.js","js/build/@babel.9410f858.js","js/build/vue.adba9046.js","js/build/lodash.8fcd6fd4.js","js/build/webhook.378987f3.js","js/build/TEditor.37a62d41.js","js/build/tinymce.498510f2.js","js/build/jquery.99163cb9.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/ReportEdit.8c2fafce.js","js/build/ReportDetail.103bd043.js","js/build/index.4ff51c76.js","js/build/index.9742549c.css","js/build/@micro-zoe.39406924.js","js/build/notification-koro1.99b93615.js","js/build/DepartmentOwnerView.40de0e2f.js","js/build/DepartmentOwnerView.9cbc9146.css"]),children:[{name:"manage-dashboard",path:"dashboard",component:()=>D(()=>import("./dashboard.80e25fd2.js"),["js/build/dashboard.80e25fd2.js","js/build/vuex.cc7cb26e.js","js/build/DepartmentOwnerView.40de0e2f.js","js/build/DepartmentOwnerView.9cbc9146.css","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-calendar",path:"calendar",component:()=>D(()=>import("./calendar.b1e80cc6.js"),["js/build/calendar.b1e80cc6.js","js/build/tui-calendar-hi.8947f8cc.js","js/build/tui-calendar-hi.058e41e5.css","js/build/tui-date-picker.6a34ee03.js","js/build/@babel.9410f858.js","js/build/tui-time-picker.1ebb7768.js","js/build/vuex.cc7cb26e.js","js/build/jquery.99163cb9.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-messenger",path:"messenger/:dialogAction?",component:()=>D(()=>import("./messenger.9062208c.js"),["js/build/messenger.9062208c.js","js/build/vuex.cc7cb26e.js","js/build/DialogWrapper.d635cc01.js","js/build/chunkedUpload.b0e8368a.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/index.978d6d4c.js","js/build/vue-virtual-scroll-list-hi.74ad83f0.js","js/build/@babel.9410f858.js","js/build/vue.adba9046.js","js/build/lodash.8fcd6fd4.js","js/build/ImgUpload.be73943e.js","js/build/webhook.378987f3.js","js/build/jquery.99163cb9.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting",path:"setting",component:()=>D(()=>import("./index.ff3f17d5.js"),["js/build/index.ff3f17d5.js","js/build/index.274f71f0.css","js/build/vuex.cc7cb26e.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"]),children:[{name:"manage-setting-personal",path:"personal",component:()=>D(()=>import("./personal.2f41dc17.js"),["js/build/personal.2f41dc17.js","js/build/personal.b6ea18df.css","js/build/ImgUpload.be73943e.js","js/build/chunkedUpload.b0e8368a.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/vuex.cc7cb26e.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-checkin",path:"checkin",component:()=>D(()=>import("./checkin.c10b2ea3.js"),["js/build/checkin.c10b2ea3.js","js/build/checkin.2fa0bfae.css","js/build/ImgUpload.be73943e.js","js/build/chunkedUpload.b0e8368a.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-language",path:"language",component:()=>D(()=>import("./language.35b5c05b.js"),["js/build/language.35b5c05b.js","js/build/vuex.cc7cb26e.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-theme",path:"theme",component:()=>D(()=>import("./theme.0384609c.js"),["js/build/theme.0384609c.js","js/build/vuex.cc7cb26e.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-keyboard",path:"keyboard",component:()=>D(()=>import("./keyboard.43e9f0c8.js"),["js/build/keyboard.43e9f0c8.js","js/build/keyboard.d0fc45b2.css","js/build/vuex.cc7cb26e.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-license",path:"license",component:()=>D(()=>import("./license.4c9366a6.js"),["js/build/license.4c9366a6.js","js/build/license.e50534d0.css","js/build/vuex.cc7cb26e.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-password",path:"password",component:()=>D(()=>import("./password.d27c336b.js"),["js/build/password.d27c336b.js","js/build/vuex.cc7cb26e.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-email",path:"email",component:()=>D(()=>import("./email.7917046e.js"),["js/build/email.7917046e.js","js/build/vuex.cc7cb26e.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-system",path:"system",component:()=>D(()=>import("./system.c6accb76.js"),["js/build/system.c6accb76.js","js/build/vuex.cc7cb26e.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-device",path:"device",component:()=>D(()=>import("./device.59222249.js"),["js/build/device.59222249.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-version",path:"version",component:()=>D(()=>import("./version.d93de6c0.js"),["js/build/version.d93de6c0.js","js/build/version.b2e280f3.css","js/build/preview.34bf3582.js","js/build/openpgp_hi.15f91b1d.js","js/build/index.40a8e116.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-setting-delete",path:"delete",component:()=>D(()=>import("./delete.065d4ffc.js"),["js/build/delete.065d4ffc.js","js/build/vuex.cc7cb26e.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])}]},{name:"manage-project-invite",path:"project/invite/:inviteId?",component:()=>D(()=>import("./projectInvite.20f68e91.js"),["js/build/projectInvite.20f68e91.js","js/build/projectInvite.83f6f5bf.css","js/build/vuex.cc7cb26e.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-project",path:"project/:projectId",component:()=>D(()=>import("./project.95b67b38.js"),["js/build/project.95b67b38.js","js/build/vuex.cc7cb26e.js","js/build/lodash.8fcd6fd4.js","js/build/@babel.9410f858.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/add.c5913792.js","js/build/add.90416dbc.css","js/build/SearchButton.7ef0096e.js","js/build/index.978d6d4c.js","js/build/DepartmentOwnerView.40de0e2f.js","js/build/DepartmentOwnerView.9cbc9146.css","js/build/jquery.99163cb9.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-file",path:"file/:folderId?/:fileId?",component:()=>D(()=>import("./file.588ec774.js"),["js/build/file.588ec774.js","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/lodash.8fcd6fd4.js","js/build/@babel.9410f858.js","js/build/file.5e8166ad.js","js/build/index.978d6d4c.js","js/build/chunkedUpload.b0e8368a.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/jquery.99163cb9.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"manage-application",path:"application",component:()=>D(()=>import("./application.f7cea0dc.js"),["js/build/application.f7cea0dc.js","js/build/application.29cc7ef9.css","js/build/vuex.cc7cb26e.js","js/build/index.978d6d4c.js","js/build/CheckinExport.4adb8d2d.js","js/build/CheckinExport.a228f52c.css","js/build/SearchButton.7ef0096e.js","js/build/ImgUpload.be73943e.js","js/build/chunkedUpload.b0e8368a.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/IFrame.02468084.js","js/build/checkin.c10b2ea3.js","js/build/checkin.2fa0bfae.css","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/webhook.378987f3.js"])}]},{name:"single-file-msg",path:"/single/file/msg/:msgId",component:()=>D(()=>import("./fileMsg.d2d44c58.js"),["js/build/fileMsg.d2d44c58.js","js/build/fileMsg.ca2fe73a.css","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/IFrame.02468084.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-file-task",path:"/single/file/task/:fileId",component:()=>D(()=>import("./fileTask.9f9c1b4d.js"),["js/build/fileTask.9f9c1b4d.js","js/build/fileTask.584e53db.css","js/build/openpgp_hi.15f91b1d.js","js/build/IFrame.02468084.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-file",path:"/single/file/:codeOrFileId",component:()=>D(()=>import("./file.01abc19f.js"),["js/build/file.01abc19f.js","js/build/file.faa69c59.css","js/build/FileContent.60bd2228.js","js/build/FileContent.b41606aa.css","js/build/openpgp_hi.15f91b1d.js","js/build/IFrame.02468084.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js","js/build/FilePreview.54755748.js"])},{name:"single-task-content",path:"/single/task/content/:taskId",component:()=>D(()=>import("./taskContent.6d8080e2.js"),["js/build/taskContent.6d8080e2.js","js/build/taskContent.e7e754e7.css","js/build/TEditor.37a62d41.js","js/build/tinymce.498510f2.js","js/build/@babel.9410f858.js","js/build/ImgUpload.be73943e.js","js/build/chunkedUpload.b0e8368a.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/vuex.cc7cb26e.js","js/build/jquery.99163cb9.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-task",path:"/single/task/:taskId",component:()=>D(()=>import("./task.d5c37ed4.js"),["js/build/task.d5c37ed4.js","js/build/task.a4c33b20.css","js/build/TaskDetail.c2a72552.js","js/build/TaskDetail.0724974a.css","js/build/vuex.cc7cb26e.js","js/build/add.c5913792.js","js/build/add.90416dbc.css","js/build/DialogWrapper.d635cc01.js","js/build/chunkedUpload.b0e8368a.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/index.978d6d4c.js","js/build/vue-virtual-scroll-list-hi.74ad83f0.js","js/build/@babel.9410f858.js","js/build/vue.adba9046.js","js/build/lodash.8fcd6fd4.js","js/build/ImgUpload.be73943e.js","js/build/webhook.378987f3.js","js/build/TEditor.37a62d41.js","js/build/tinymce.498510f2.js","js/build/jquery.99163cb9.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-dialog",path:"/single/dialog/:dialogId",component:()=>D(()=>import("./dialog.b74a2f48.js"),["js/build/dialog.b74a2f48.js","js/build/dialog.f35a7a2e.css","js/build/DialogWrapper.d635cc01.js","js/build/vuex.cc7cb26e.js","js/build/chunkedUpload.b0e8368a.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/index.978d6d4c.js","js/build/vue-virtual-scroll-list-hi.74ad83f0.js","js/build/@babel.9410f858.js","js/build/vue.adba9046.js","js/build/lodash.8fcd6fd4.js","js/build/ImgUpload.be73943e.js","js/build/webhook.378987f3.js","js/build/jquery.99163cb9.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-apps",path:"/single/apps/:name",component:()=>D(()=>import("./apps.2030d910.js"),["js/build/apps.2030d910.js","js/build/vuex.cc7cb26e.js","js/build/index.4ff51c76.js","js/build/index.9742549c.css","js/build/vue.adba9046.js","js/build/@babel.9410f858.js","js/build/view-design-hi.f1128b4d.js","js/build/@micro-zoe.39406924.js","js/build/DialogWrapper.d635cc01.js","js/build/chunkedUpload.b0e8368a.js","js/build/axios.37c7f908.js","js/build/spark-md5.0443325f.js","js/build/index.978d6d4c.js","js/build/vue-virtual-scroll-list-hi.74ad83f0.js","js/build/lodash.8fcd6fd4.js","js/build/ImgUpload.be73943e.js","js/build/webhook.378987f3.js","js/build/jquery.99163cb9.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/openpgp_hi.15f91b1d.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/html-to-md.f297036e.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-valid-email",path:"/single/valid/email",component:()=>D(()=>import("./validEmail.1418f72c.js"),["js/build/validEmail.1418f72c.js","js/build/validEmail.6e361ca9.css","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-report-edit",path:"/single/report/edit/:reportEditId",component:()=>D(()=>import("./reportEdit.2aa9f7ff.js"),["js/build/reportEdit.2aa9f7ff.js","js/build/reportEdit.6962c3d0.css","js/build/ReportEdit.8c2fafce.js","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"single-report-detail",path:"/single/report/detail/:reportDetailId",component:()=>D(()=>import("./reportDetail.3610d7d0.js"),["js/build/reportDetail.3610d7d0.js","js/build/reportDetail.1d7536d4.css","js/build/ReportDetail.103bd043.js","js/build/openpgp_hi.15f91b1d.js","js/build/vuex.cc7cb26e.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"token",path:"/token",component:()=>D(()=>import("./token.e7055b1d.js"),["js/build/token.e7055b1d.js","js/build/token.85beaced.css","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"login",path:"/login",component:()=>D(()=>import("./login.56675f3b.js"),["js/build/login.56675f3b.js","js/build/vuex.cc7cb26e.js","js/build/@chenfengyuan.dfd1ecb7.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"preload",path:"/preload",component:()=>D(()=>import("./preload.c09e44bf.js"),["js/build/preload.c09e44bf.js","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])},{name:"404",path:"*",component:()=>D(()=>import("./404.f30a44ec.js"),["js/build/404.f30a44ec.js","js/build/404.d686a01f.css","js/build/jquery.99163cb9.js","js/build/@babel.9410f858.js","js/build/dayjs.0bb0f368.js","js/build/localforage.6e50a401.js","js/build/markdown-it.0450edb4.js","js/build/mdurl.ce6c1dd8.js","js/build/uc.micro.8d343c98.js","js/build/entities.48a44fec.js","js/build/linkify-it.c5e8196e.js","js/build/punycode.js.4b3f125a.js","js/build/highlight.js.cbbfb885.js","js/build/markdown-it-link-attributes.e1d5d151.js","js/build/@traptitech.acea8861.js","js/build/vue.adba9046.js","js/build/vuex.cc7cb26e.js","js/build/openpgp_hi.15f91b1d.js","js/build/axios.37c7f908.js","js/build/mitt.1ea0a2a3.js","js/build/quill-hi.ca2ea0cc.js","js/build/parchment.d5c5924e.js","js/build/quill-delta.385a10bf.js","js/build/fast-diff.f17881f3.js","js/build/lodash.clonedeep.3cc09a31.js","js/build/lodash.isequal.dbdc2157.js","js/build/eventemitter3.78b735ad.js","js/build/lodash-es.76e3a28b.js","js/build/quill-mention-hi.4eeb5a2d.js","js/build/view-design-hi.f1128b4d.js","js/build/html-to-md.f297036e.js","js/build/lodash.8fcd6fd4.js","js/build/vue-router.2d566cd7.js","js/build/vue-clipboard2.fd43a5bc.js","js/build/clipboard.37b37361.js","js/build/vuedraggable.f464b992.js","js/build/sortablejs.3488b922.js","js/build/vue-resize-observer.5af23a43.js","js/build/element-sea.f8a64907.js","js/build/deepmerge.cecf392e.js","js/build/resize-observer-polyfill.5d591c5f.js","js/build/throttle-debounce.7c3948b2.js","js/build/babel-helper-vue-jsx-merge-props.5ed215c3.js","js/build/normalize-wheel.2a034b9f.js","js/build/async-validator.dca2b951.js","js/build/babel-runtime.4773988a.js","js/build/core-js.314b4a1d.js"])}];const nt=$A(window).width(),Xm=$A(window).height(),Mt=$A.screenOrientation(),Zm=$A.isFullScreen();var eg={clientId:"",cacheVersion:"v17",windowActive:!0,windowScrollY:0,safeAreaSize:{top:0,bottom:0,data:null},viewportHeight:0,windowTouch:"ontouchend"in document,windowWidth:nt,windowHeight:Xm,isFirstPage:!1,windowOrientation:Mt,windowLandscape:Mt==="landscape",windowPortrait:Mt==="portrait",windowIsFullScreen:Zm,formOptions:{class:nt>576?"":"form-label-weight-bold",labelPosition:nt>576?"right":"top",labelWidth:nt>576?"auto":""},keyboardShow:!1,keyboardHeight:0,isModKey:!1,appNotificationPermission:!0,audioPlaying:null,routeName:null,routePath:null,routeHistorys:[],routeHistoryLast:{},routeLoading:0,mobileTabbar:!1,callAt:[],loads:[],loadDashboardTasks:null,loadUserBasic:!1,loadProjects:0,loadDialogs:0,loadDialogAuto:!1,loadDialogLatestId:0,floatSpinnerTimer:[],floatSpinnerLoad:0,touchBackInProgress:!1,cacheUserWait:[],cacheUserBasic:[],cacheUserExtra:{},cacheCalendarView:null,cacheDialogs:[],cacheProjects:[],cacheColumns:[],cacheTasks:[],cacheProjectParameter:[],cacheDepartmentOwnerIds:[],departmentOwnerProjectViewEnabled:!1,departmentOwnerViewRestored:!1,departmentOwnerProjectsRefreshing:!1,departmentOwnerReadonlyUrls:["project/lists","project/one","project/column/lists","project/task/lists","project/task/one","project/task/content","project/task/content_history","project/task/files","project/task/fileinfo","project/task/subdata","project/task/related","project/flow/list","project/log/lists","project/tag/list"],cacheEmojis:[],cacheServerUrl:"",cacheKeyboard:{},ajaxAuthException:null,ajaxNetworkException:null,ws:null,wsCall:{},wsTimeout:null,wsRandom:0,wsOpenNum:0,userInfo:{},userId:0,userToken:"",userIsAdmin:!1,userAvatar:{},dialogId:0,dialogMsgId:0,dialogMsgKeep:30,dialogSearchMsgId:0,dialogIns:[],dialogMsgs:[],dialogTodos:[],dialogMsgTops:[],dialogHistory:[],dialogDrafts:[],dialogQuotes:[],dialogWithdraws:[],dialogMsgTransfer:{time:0},dialogSseList:[],dialogDroupWordChain:{},dialogGroupVote:{},dialogModalShow:!1,dialogCommonCountCache:{},messengerSearchKey:{dialog:"",contacts:""},readLoadNum:0,readTimeout:null,readWaitData:{},fileLists:[],fileLinks:[],filePackLists:[],fileShakeId:0,projectId:0,projectTotal:0,projectLoad:0,taskId:0,taskCompleteTemps:[],taskContents:[],taskFiles:[],taskLogs:[],taskOperation:{},taskRelatedCache:{},taskArchiveView:0,taskTemplates:[],taskLatestId:0,taskOneLoad:{},taskFlows:[],taskFlowItems:[],taskPriority:[],columnTemplate:[],columnColorList:[{name:"\u9ED8\u8BA4",color:""},{name:"\u84DD\u8272",color:"#51abea"},{name:"\u7EFF\u8272",color:"#73b45c"},{name:"\u9EC4\u8272",color:"#f2d86d"},{name:"\u6A59\u8272",color:"#faaa6c"},{name:"\u7EA2\u8272",color:"#ff7070"},{name:"\u7D2B\u8272",color:"#b583e3"},{name:"\u7C89\u8272",color:"#ff819c"},{name:"\u9752\u8272",color:"#3ad1c8"},{name:"\u68D5\u8272",color:"#947364"},{name:"\u7070\u8272",color:"#999999"},{name:"\u6DF1\u84DD",color:"#2b5caa"},{name:"\u6DF1\u7EFF",color:"#1a7f5a"},{name:"\u91D1\u8272",color:"#ffd700"},{name:"\u6E56\u84DD",color:"#00bcd4"}],taskColorList:[{name:"\u9ED8\u8BA4",color:"",primary:""},{name:"\u9EC4\u8272",color:"#fffae6",primary:"#f2d86d"},{name:"\u84DD\u8272",color:"#e5f5ff",primary:"#51abea"},{name:"\u7EFF\u8272",color:"#ecffe5",primary:"#73b45c"},{name:"\u7C89\u8272",color:"#ffeaee",primary:"#ff819c"},{name:"\u7D2B\u8272",color:"#f6ecff",primary:"#b583e3"},{name:"\u7070\u8272",color:"#f3f3f3",primary:"#999999"}],themeConf:window.localStorage.getItem("__system:themeConf__"),themeName:null,themeList:[{name:"\u8DDF\u968F\u7CFB\u7EDF",value:"auto"},{name:"\u660E\u4EAE",value:"light"},{name:"\u6697\u9ED1",value:"dark"}],clientNewVersion:null,clientDownloadUrl:"",previewImageIndex:0,previewImageList:[],reportUnreadNumber:0,apiKeyData:{},localKeyPair:{},localKeyLock:!1,systemConfig:{},meetingWindow:{show:!1,type:"",meetingid:0},appMeetingShow:!1,cacheTranslationLanguage:"",cacheTranslations:[],menuOperation:{},longpressData:{type:"",data:null,element:null},microApps:[],microAppsInstalled:[],microAppsIds:[],microAppsMenus:[],mcpServerStatus:{running:"stopped"}},tg={isLoad(e){return function(s){const t=e.loads.find(i=>i.key===s);return!!(t&&t.num>0)}},isMessengerPage(e){return e.routeName==="manage-messenger"},projectData(e){if(e.projectId>0){let s=e.cacheProjects.find(({id:t})=>t==e.projectId);if(s){let t=e.cacheProjectParameter.find(({project_id:i})=>i==e.projectId);return t||(t=$A.projectParameterTemplate(e.projectId),e.cacheProjectParameter.push(t)),t.menuType===void 0&&(t.menuType="column"),s.cacheParameter=t,s}}return{cacheParameter:{}}},taskData(e){let s=e.taskId;if(s==0&&(s=$A.runNum(window.__taskId)),s>0){window.__taskId=s;const t=e.cacheTasks.find(({id:i})=>i==s);if(t)return t}return{}},transforTasks(e){return function(s){return s.filter(({parent_id:t})=>!(t>0&&s.find(({id:i})=>i==t))).map(t=>{if(t.parent_id>0){const i=e.cacheTasks.find(({id:n})=>n==t.parent_id);return i?Object.assign({},i,{id:t.id,parent_id:t.parent_id,name:t.name,start_at:t.start_at,end_at:t.end_at,complete_at:t.complete_at,_time:t._time,flow_item_id:t.flow_item_id,flow_item_name:t.flow_item_name,flow_item_status:t.flow_item_status,sub_top:!0,sub_my:[]}):Object.assign({},t,{sub_top:!0,sub_my:[]})}else return Object.assign({},t,{sub_top:!1,sub_my:s.filter(({parent_id:i})=>i==t.id)})})}},dashboardTask(e){const s=$A.daytz().startOf("day"),t=$A.daytz().endOf("day"),i=$A.daytz(),n=(a,l=!0)=>a.archived_at||a.complete_at&&l===!0||a.start_at&&$A.dayjs(a.start_at)>i?!1:a.owner==1;let r=e.cacheTasks.filter(a=>n(a));if(e.taskCompleteTemps.length>0){let a=e.cacheTasks.filter(l=>e.taskCompleteTemps.includes(l.id)&&n(l,!1));a.length>0&&(a.length,r=$A.cloneJSON(r),r.push(...a))}const o={overdue:[],today:[],todo:[],overdue_count:0,today_count:0,todo_count:0};return r.forEach(a=>{const l=e.taskCompleteTemps.includes(a.id);if(a.end_at&&$A.dayjs(a.end_at)<=i)o.overdue.push(a),l||o.overdue_count++;else if(a.end_at){const c=$A.dayjs(a.end_at);s<=c&&c<=t?(o.today.push(a),l||o.today_count++):(o.todo.push(a),l||o.todo_count++)}else o.todo.push(a),l||o.todo_count++}),o},assistTask(e){const s=(i,n=!0)=>i.archived_at||i.complete_at&&n===!0?!1:i.assist&&i.owner===0;let t=e.cacheTasks.filter(i=>s(i));if(e.taskCompleteTemps.length>0){const i=e.cacheTasks.filter(n=>e.taskCompleteTemps.includes(n.id)&&s(n,!1));i.length>0&&(t=$A.cloneJSON(t),t.push(...i))}return t.sort((i,n)=>{const r=i.end_at?$A.dayjs(i.end_at):$A.dayjs("2099-12-31 23:59:59"),o=n.end_at?$A.dayjs(n.end_at):$A.dayjs("2099-12-31 23:59:59");return r-o})},getDialogDraft:e=>s=>e.dialogDrafts.find(i=>i.id===s)||null,tagDialogDraft:e=>s=>{const t=e.dialogDrafts.find(i=>i.id===s);return!!(t!=null&&t.tag)},getDialogQuote:e=>s=>e.dialogQuotes.find(i=>i.id===s)||null,filterMicroAppsMenus:e=>e.microAppsMenus.filter(s=>s.location==="application"),filterMicroAppsMenusAdmin:e=>e.microAppsMenus.filter(s=>s.location==="application/admin"),filterMicroAppsMenusMain:e=>e.microAppsMenus.filter(s=>s.location==="main/menu")};const he={timer:{},subTemp:null},Ie={timer:{},expire:5*60*1e3,schedule(e,s){this.timer[s.id]&&clearTimeout(this.timer[s.id]),this.timer[s.id]=setTimeout(()=>{delete this.timer[s.id],e("withdraw/remove",s.id)},Math.max(0,s.time+this.expire-new Date().getTime()))}};var sg={preload({state:e}){var s;window.addEventListener("resize",()=>{const t=$A(window).width(),i=$A(window).height(),n=$A.screenOrientation();e.windowTouch="ontouchend"in document,e.windowWidth=t,e.windowHeight=i,e.windowOrientation=n,e.windowLandscape=n==="landscape",e.windowPortrait=n==="portrait",e.windowIsFullScreen=$A.isFullScreen(),e.formOptions={class:t>576?"":"form-label-weight-bold",labelPosition:t>576?"right":"top",labelWidth:t>576?"auto":""},$A.eeuiAppSendMessage({action:"windowSize",width:t,height:i})}),window.addEventListener("scroll",()=>{e.windowScrollY=window.scrollY}),window.addEventListener("message",({data:t})=>{t=$A.jsonParse(t),t.action==="eeuiAppSendMessage"&&($A.isArray(t.data)?t.data:[t.data]).forEach(n=>{$A.eeuiAppSendMessage(n)})}),window.addEventListener("fullscreenchange",()=>{document.fullscreenElement?$A("body").addClass("fullscreen-mode"):$A("body").removeClass("fullscreen-mode")}),(s=window.visualViewport)==null||s.addEventListener("resize",()=>{e.viewportHeight=window.visualViewport.height||0})},init({state:e,dispatch:s}){return new Promise(async t=>{const i=$A.urlParameterAll(),n={language:"__system:languageName__",theme:"__system:themeConf__",userid:"__system:userId__",token:"__system:userToken__"},r={userid:0,token:null};if(Object.entries(n).forEach(([c,d])=>{i[c]&&(window.localStorage.setItem(d,i[c]),c==="userid"&&(r.userid=$A.runNum(i[c])),c==="token"&&(r.token=i[c]))}),Object.keys(n).some(c=>i[c])){const c=$A.removeURLParameter(window.location.href,Object.keys(n));window.history.replaceState(null,"",c)}if(r.userid>0&&r.token){const c=await $A.IDBJson("userInfo");await $A.IDBSet("userInfo",Object.assign(c,r))}let o=null;const a=await $A.IDBString("clearCache");a&&(a==="handle"&&(o="handleClearCache"),await $A.IDBRemove("clearCache"),await $A.IDBSet("cacheVersion","clear"));const l=await $A.IDBString("cacheVersion");l&&l!==e.cacheVersion?await s("handleClearCache"):await s("handleReadCache"),await s("synchTheme"),await s("handleKeyboard"),e.clientId||(e.clientId=$A.randomString(6),await $A.IDBSet("clientId",e.clientId)),s("call",{url:"users/key/client",data:{client_id:e.clientId},encrypt:!1}).then(({data:c})=>{e.apiKeyData=c}),s("systemSetting"),await $A.loadScriptS(["js/jsencrypt.min.js","js/scroll-into-view.min.js","language/web/key.js",`language/web/${M}.js`,`language/iview/${M}.js`]),br(),t(o)})},safeAreaInsets({state:e}){return new Promise(s=>{if(!e.isFirstPage)return s(null);$A.eeuiAppGetSafeAreaInsets().then(async t=>{var n,r,o,a;t.top=t.top||((r=(n=e.safeAreaSize)==null?void 0:n.data)==null?void 0:r.top)||0,t.bottom=t.bottom||((a=(o=e.safeAreaSize)==null?void 0:o.data)==null?void 0:a.bottom)||0;const i=t.height/window.outerHeight;e.safeAreaSize={top:Math.round(t.top/i*100)/100,bottom:Math.round(t.bottom/i*100)/100,data:t},s(e.safeAreaSize)}).catch(t=>{console.warn(t),s(null)})})},call({state:e,dispatch:s},t){var r;$A.isJson(t)||(t={url:t});const i={"Content-Type":"application/json",language:M,token:e.userToken,fd:$A.getSessionStorageString("userWsFd"),version:window.systemInfo.version||"0.0.1",platform:$A.Platform};if(!e.userToken&&((r=e.meetingWindow)==null?void 0:r.meetingSharekey)&&(i.sharekey=e.meetingWindow.meetingSharekey),$A.isJson(t.header)?t.header=Object.assign(i,t.header):t.header=i,e.systemConfig.e2e_message==="open"&&t.encrypt===void 0&&$A.inArray(t.url,["users/login","users/editpass","users/operation","users/delete/account","system/license","users/bot/*","dialog/msg/*"],!0)&&(t.encrypt=!0),t.departmentOwner!==!1&&e.systemConfig.department_owner_project_view==="open"&&e.departmentOwnerProjectViewEnabled&&e.departmentOwnerReadonlyUrls.includes(t.url)&&(e.cacheDepartmentOwnerIds||[]).length>0&&($A.isJson(t.data)||(t.data={}),t.data.department_owner_ids===void 0&&(t.data.department_owner_ids=e.cacheDepartmentOwnerIds.join(","))),t.encrypt){const o=window.navigator.userAgent;(window.systemInfo.debug==="yes"||/Windows NT 5.1|Windows XP/.test(o)||o.indexOf("Windows NT 6.0")!==-1||o.indexOf("Windows NT 6.1")!==-1||o.indexOf("Windows NT 6.2")!==-1)&&(t.encrypt=!1)}t.url=$A.apiUrl(t.url),t.data=$A.newDateString(t.data);const n=$A.cloneJSON(t);return new Promise(async(o,a)=>{if(/^https?:\/\/public\//.test(t.url)){a({ret:-1,data:{},msg:"No server address"});return}const l=[];if(t.encrypt===!0&&(t.data&&e.apiKeyData.type==="pgp"&&(l.push(`encrypt_type=${e.apiKeyData.type};encrypt_id=${e.apiKeyData.id}`),t.method="post",t.data={encrypted:await s("pgpEncryptApi",t.data)}),l.push("client_type=pgp;client_key="+(await s("pgpGetLocalKey")).publicKeyB64)),l.length>0&&(t.header.encrypt=l.join(";")),t.method==="post"&&(t.data=JSON.stringify(t.data)),t.spinner===!0||typeof t.spinner=="number"&&t.spinner>0){const{before:c,complete:d}=t;t.before=()=>{s("showSpinner",typeof t.spinner=="number"?t.spinner:0),typeof c=="function"&&c()},t.complete=()=>{s("hiddenSpinner"),typeof d=="function"&&d()}}t.success=async(c,d,h)=>{if(!$A.isJson(c)){console.log(c,d,h),a({ret:-1,data:{},msg:$A.L("\u8FD4\u56DE\u53C2\u6570\u9519\u8BEF")});return}t.encrypt===!0&&c.encrypted&&(c=await s("pgpDecryptApi",c.encrypted));const{ret:u,data:p,msg:g}=c;if(u===-1&&(e.userId=0,t.checkAuth!==!1)){e.ajaxAuthException=g||$A.L("\u8BF7\u767B\u5F55\u540E\u7EE7\u7EED..."),a(Object.assign(c,{msg:!1}));return}if(u===-2&&t.checkNick!==!1){s("userEditInput","nickname").then(()=>{s("call",n).then(o).catch(a)}).catch(_=>{a({ret:-1,data:p,msg:_||$A.L("\u8BF7\u8BBE\u7F6E\u6635\u79F0")})});return}if(u===-3&&t.checkTel!==!1){s("userEditInput","tel").then(()=>{s("call",n).then(o).catch(a)}).catch(_=>{a({ret:-1,data:p,msg:_||$A.L("\u8BF7\u8BBE\u7F6E\u8054\u7CFB\u7535\u8BDD")})});return}if(u===1){o({data:p,msg:g,xhr:h});return}a({ret:u,data:p,msg:g||$A.L("\u672A\u77E5\u9519\u8BEF")}),u===-4001?s("forgetProject",{id:p.project_id}):u===-4002?(p.force===1&&(e.taskArchiveView=0),s("forgetTask",{id:p.task_id})):u===-4003?s("forgetDialog",{id:p.dialog_id}):u===-4004&&s("getTaskForParent",p.task_id).catch(()=>{})},t.error=async(c,d)=>{const h={ret:-1,data:{},msg:$A.L("\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002")};if(window.navigator.onLine===!1||d===0&&c.readyState===4){if(n.method!=="post"&&n.networkFailureRetry!==!1){await new Promise(p=>setTimeout(p,1e3)),s("call",Object.assign(n,{networkFailureRetry:!1})).then(o).catch(a);return}h.ret=-1001,h.msg=t.checkNetwork!==!1?!1:$A.L("\u7F51\u7EDC\u5F02\u5E38\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"),t.checkNetwork!==!1&&$A.Ready!==!1&&(e.ajaxNetworkException=$A.L("\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8BBE\u7F6E\u3002"))}a(h),console.error(c,d)},$A.ajaxc(t)})},callCancel({state:e},s){return new Promise((t,i)=>{$A.ajaxcCancel(s)?t():i()})},systemSetting({dispatch:e,state:s}){return new Promise((t,i)=>{switch(s.systemConfig.__state){case"success":t(s.systemConfig);break;case"loading":setTimeout(n=>{e("systemSetting").then(t).catch(i)},100);break;default:s.systemConfig.__state="loading",e("call",{url:"system/setting"}).then(({data:n})=>{s.systemConfig=Object.assign(n,{timezoneDifference:$A.updateTimezone(n.server_timezone),__state:"success"}),t(s.systemConfig)}).catch(n=>{s.systemConfig.__state="error",i()});break}})},downUrl({state:e},s){if(!s)return;let t=s,i=!0;if($A.isJson(s)&&(t=s.url,i=!!s.token),i){let n={token:e.userToken};$A.isJson(s)&&(t=s.url,n=s.params||{}),t=$A.urlAddParams(t,n)}$A.Electron?($A.Electron.request({action:"openDownloadWindow",language:M,theme:e.themeName}),$A.Electron.request({action:"createDownload",url:t})):$A.isEEUIApp?$A.eeuiAppOpenWeb(t):window.open(t)},filePos({state:e,getters:s,dispatch:t},i){if($A.isSubElectron){$A.syncDispatch("filePos",i),$A.Electron.sendMessage("mainWindowActive");return}t("openTask",0),(!s.isMessengerPage||e.windowPortrait)&&t("openDialog",0),$A.goForward({name:"manage-file",params:i})},toggleProjectParameter({commit:e,state:s},t){$A.syncDispatch("toggleProjectParameter",t);let i=t,n=null,r=s.projectId;if($A.isJson(t)&&(i=t.key,n=t.value,r=t.project_id),r){let o=s.cacheProjectParameter.findIndex(l=>l.project_id==r);o===-1&&(e("project/parameter/push",$A.projectParameterTemplate(r)),o=s.cacheProjectParameter.findIndex(l=>l.project_id==r));const a=s.cacheProjectParameter[o];$A.isJson(i)||(i={[i]:n||!a[i]}),e("project/parameter/splice",{index:o,data:Object.assign(a,i)})}},setTheme({state:e,dispatch:s},t){return new Promise(function(i){if(t===void 0){i(!1);return}if(!$A.dark.utils.supportMode()){$A.isEEUIApp?$A.modalWarning("\u4EC5Android\u8BBE\u7F6E\u652F\u6301\u4E3B\u9898\u529F\u80FD"):$A.modalWarning("\u4EC5\u5BA2\u6237\u7AEF\u6216Chrome\u6D4F\u89C8\u5668\u652F\u6301\u4E3B\u9898\u529F\u80FD"),i(!1);return}s("synchTheme",{mode:t}),i(!0)})},synchTheme({state:e,dispatch:s},{mode:t,...i}={}){switch($A.syncDispatch("synchTheme",{...i,mode:t}),typeof t=="undefined"?t=e.themeConf:e.themeConf=t,t){case"dark":$A.dark.enableDarkMode();break;case"light":$A.dark.disableDarkMode();break;default:e.themeConf="auto",$A.dark.autoDarkMode();break}e.themeName=$A.dark.isDarkEnabled()?"dark":"light",window.localStorage.setItem("__system:themeConf__",e.themeConf),$A.isEEUIApp?$A.eeuiAppSendMessage({action:"updateTheme",themeName:e.themeName,themeDefault:{theme:{dark:"#131313",light:"#f8f8f8"},nav:{dark:"#cdcdcd",light:"#232323"}}}):$A.isElectron&&$A.Electron.sendMessage("setStore",{key:"themeConf",value:e.themeConf})},async getBasicData({state:e,dispatch:s},t){if(typeof t=="number"){window.__getBasicDataTimer&&clearTimeout(window.__getBasicDataTimer),t>-1&&(window.__getBasicDataTimer=setTimeout(r=>s("getBasicData",null),t));return}const i=e.userId+$A.dayjs().unix();if(window.__getBasicDataKey===i)return;window.__getBasicDataKey=i,s("getDialogAuto").catch(()=>{}),s("getDialogTodo",0).catch(()=>{}),s("getTaskPriority",1e3),s("getReportUnread",1e3),s("getProjectsForDepartmentOwnerView").catch(()=>{}),s("getTaskForDashboard"),s("dialogMsgRead"),s("updateMicroAppsStatus");const n=Object.values(e.userAvatar).map(({userid:r})=>r).filter(r=>r>0);[...new Set(n)].some(r=>s("getUserBasic",{userid:r}))},getReportUnread({state:e,dispatch:s},t){window.__getReportUnread&&clearTimeout(window.__getReportUnread),window.__getReportUnread=setTimeout(()=>{e.userId===0?e.reportUnreadNumber=0:s("call",{url:"report/unread"}).then(({data:i})=>{e.reportUnreadNumber=i.total||0}).catch(i=>{})},typeof t=="number"?t:1e3)},getUserInfo({dispatch:e}){return new Promise(function(s,t){e("call",{url:"users/info"}).then(i=>{e("saveUserInfo",i.data),s(i)}).catch(i=>{console.warn(i),t(i)})})},getUserExtra({state:e,dispatch:s},t){return new Promise(async(i,n)=>{if(!t){n({msg:"userid missing"});return}const r=e.cacheUserExtra||{},o=r[`${t}`],a=Date.now();if(o&&o.data&&a-o.updatedAt<3e4){i(o.data);return}try{const{data:l}=await s("call",{url:"users/extra",data:{userid:t}});e.cacheUserExtra=Object.assign({},r,{[`${t}`]:{data:l,updatedAt:Date.now()}}),i(l)}catch(l){n(l)}})},saveUserExtra({state:e},s){var r;const t=$A.runNum(s==null?void 0:s.userid);if(!t||!$A.isJson(s==null?void 0:s.data))return;const i=e.cacheUserExtra||{},n=((r=i[`${t}`])==null?void 0:r.data)||{};e.cacheUserExtra=Object.assign({},i,{[`${t}`]:{data:Object.assign({},n,s.data),updatedAt:Date.now()}})},saveUserInfoBase({state:e,dispatch:s},t){return new Promise(async i=>{const n=$A.cloneJSON(t);n.userid=$A.runNum(n.userid),n.token=n.userid>0?n.token||e.userToken:"",e.userInfo=n,e.userId=n.userid,e.userToken=n.token,e.userIsAdmin=$A.inArray("admin",n.identity),$A.isSubElectron||$A.isEEUIApp&&!e.isFirstPage||await $A.IDBSet("userInfo",e.userInfo),$A.eeuiAppSendMessage({action:"userChatList",language:$A.eeuiAppConvertLanguage(),url:$A.mainUrl("api/users/share/list")+`?token=${e.userToken}`}),$A.eeuiAppSendMessage({action:"userUploadUrl",dirUrl:$A.mainUrl("api/file/content/upload")+`?token=${e.userToken}`,chatUrl:$A.mainUrl("api/dialog/msg/sendfiles")+`?token=${e.userToken}`}),i()})},saveUserInfo({commit:e,state:s,dispatch:t},i){return new Promise(async n=>{await t("saveUserInfoBase",i),t("getBasicData",null),s.userId>0&&(e("user/save",s.cacheUserBasic.filter(({userid:r})=>r!==s.userId)),t("saveUserBasic",s.userInfo)),n()})},getUserBasic({state:e,dispatch:s},t){if(e.loadUserBasic===!0){t&&e.cacheUserWait.push(t);return}let i=$A.dayjs().unix(),n=$A.cloneJSON(e.cacheUserWait);t&&t.userid&&n.push(t),e.cacheUserWait=[];let r=[],o=0;n.some(a=>{let l=e.cacheUserBasic.find(({userid:c})=>c==a.userid);if(l&&i-l._time<=30)return setTimeout(()=>{T.emit("userActive",{type:"cache",data:l})},o+=5),!1;r.push(a)}),r.length!==0&&(r.length>30&&(e.cacheUserWait=r.slice(30),r=r.slice(0,30)),e.loadUserBasic=!0,s("call",{url:"users/basic",data:{userid:[...new Set(r.map(({userid:a})=>a))]},checkAuth:!1}).then(a=>{i=$A.dayjs().unix(),r.forEach(l=>{let c=a.data.find(({userid:d})=>d==l.userid)||Object.assign(l,{email:""});c._time=i,s("saveUserBasic",c)}),e.loadUserBasic=!1,s("getUserBasic")}).catch(a=>{console.warn(a),e.loadUserBasic=!1,s("getUserBasic")}))},getUserData({state:e,dispatch:s},t){return new Promise(async(i,n)=>{let r=e.cacheUserBasic.find(o=>o.userid==t);if(!r)try{const{data:o}=await s("call",{url:"users/basic",data:{userid:[t]},checkAuth:!1});r=o.find(a=>a.userid==t)}catch{}r?i($A.cloneJSON(r)):n()})},saveUserBasic({commit:e,state:s},t){$A.syncDispatch("saveUserBasic",t);const i=s.cacheUserBasic.findIndex(({userid:n})=>n==t.userid);i>-1?(t=Object.assign({},s.cacheUserBasic[i],t),e("user/splice",{index:i,data:t})):e("user/push",t),T.emit("userActive",{type:"cache",data:t})},editUserBot({dispatch:e},s){return new Promise((t,i)=>{let n=0;s.dialog_id&&(n=s.dialog_id,delete s.dialog_id),e("call",{url:"users/bot/edit",data:s,method:"post"}).then(({data:r,msg:o})=>{e("saveUserBasic",{userid:r.id,nickname:r.name,userimg:r.avatar}),n&&e("saveDialog",{id:n,name:r.name}),t({data:r,msg:o})}).catch(i)})},userEditInput({dispatch:e},s){return new Promise(function(t,i){let n="";if(s==="nickname")n="\u6635\u79F0";else if(s==="tel")n="\u8054\u7CFB\u7535\u8BDD";else{i("\u53C2\u6570\u9519\u8BEF");return}setTimeout(r=>{$A.modalInput({title:`\u8BBE\u7F6E${n}`,placeholder:`\u8BF7\u8F93\u5165\u60A8\u7684${n}`,okText:"\u4FDD\u5B58",onOk:o=>o?new Promise((a,l)=>{e("call",{url:"users/editdata",data:{[s]:o},checkNick:!1,checkTel:!1}).then(()=>{e("getUserInfo").finally(c=>{a(),t()})}).catch(({msg:c})=>{l(c)})}):`\u8BF7\u8F93\u5165${n}`,onCancel:o=>i})},100)})},getDepartmentList({dispatch:e}){return new Promise((s,t)=>{const i=(n,r=0,o=0,a=[])=>{let l=[];return n.some(c=>{if(c.parent_id==r){const d=Object.assign({},c,{chains:a.concat([c.name]),level:o+1});l.push(d);const h=i(n,c.id,o+1,a.concat([c.name]));l=l.concat(h)}}),l};e("call",{url:"users/department/list"}).then(({data:n})=>{s(i(n,0,1))}).catch(t)})},logout({state:e,dispatch:s},t=!0){return new Promise(async i=>{try{await s("call",{url:"users/logout",timeout:6e3})}catch(n){console.log(n)}s("handleClearCache",{}).then(()=>{let n=["/","/login"].includes(window.location.pathname)?"":encodeURIComponent(window.location.href);t===!1&&(n=null),$A.goForward({name:"login",query:n?{from:n}:{}},!0),i()})})},handleKeyboard({state:e},s){return new Promise(t=>{window.localStorage.getItem("__system:keyboardConf__")||(window.localStorage.setItem("__system:keyboardConf__",window.localStorage.getItem("__keyboard:data__")),window.localStorage.removeItem("__keyboard:data__"));const i=$A.isJson(s)?s:$A.jsonParse(window.localStorage.getItem("__system:keyboardConf__"))||{};i.screenshot_key=(i.screenshot_key||"").trim().toLowerCase(),i.send_button_app=i.send_button_app||"button",i.send_button_desktop=i.send_button_desktop||"enter",window.localStorage.setItem("__system:keyboardConf__",$A.jsonStringify(i)),e.cacheKeyboard=i,t(i)})},handleClearCache({state:e,dispatch:s},t){return new Promise(async i=>{e.loadDashboardTasks=null;const n=["themeConf","languageName","keyboardConf"],r=n.reduce((l,c)=>({...l,[c]:window.localStorage.getItem(`__system:${c}__`)}),{});window.localStorage.clear(),n.forEach(l=>window.localStorage.setItem(`__system:${l}__`,r[l]));const o=["clientId","cacheServerUrl","cacheCalendarView","cacheProjectParameter","cacheLoginEmail","cacheFileSort","cacheTranslationLanguage","cacheTranslations","cacheEmojis","userInfo","mcpServerStatus","aiAssistant.model","aiAssistant.sessions"];await $A.IDBClear(o),await $A.IDBSet("cacheVersion",e.cacheVersion);const a=await $A.IDBJson("userInfo");await s("saveUserInfoBase",$A.isJson(t)?t:a),await s("handleReadCache"),e.ajaxAuthException=null,i()})},handleReadCache({state:e,commit:s}){return new Promise(async t=>{const i={string:["clientId","cacheServerUrl","cacheCalendarView","cacheTranslationLanguage"],array:["cacheUserBasic","cacheProjects","cacheDepartmentOwnerIds","cacheColumns","cacheTasks","cacheProjectParameter","cacheTranslations","dialogMsgs","dialogDrafts","dialogQuotes","dialogWithdraws","fileLists","callAt","cacheEmojis","cacheDialogs","microAppsIds","microAppsMenus"],json:["userInfo","taskRelatedCache","dialogCommonCountCache","mcpServerStatus"]},n=$A.IDBValue("departmentOwnerProjectViewEnabled"),r=await Promise.all([...i.string.map(u=>$A.IDBString(u)),...i.array.map(u=>$A.IDBArray(u)),...i.json.map(u=>$A.IDBJson(u))]),o=await n;[...i.string,...i.array,...i.json].forEach((u,p)=>{u==="cacheDepartmentOwnerIds"?s("department/owner/ids/save",r[p]):e[u]=r[p]});const a=typeof o=="boolean"?o:(e.cacheDepartmentOwnerIds||[]).length>0;s("department/owner/enabled/save",a),e.cacheDialogs=e.cacheDialogs.map(u=>({...u,loading:!1})),e.dialogDrafts=e.dialogDrafts.filter(u=>!!u.content).map(u=>({...u,tag:!!u.content}));const l=new Date().getTime(),c=e.dialogWithdraws.length;e.dialogWithdraws=e.dialogWithdraws.filter(u=>u.time&&l-u.time<Ie.expire),e.dialogWithdraws.forEach(u=>Ie.schedule(s,u)),e.dialogWithdraws.length!==c&&$A.IDBSave("dialogWithdraws",e.dialogWithdraws),typeof ve[e.cacheTranslationLanguage]=="undefined"&&(e.cacheTranslationLanguage=M),e.userInfo.userid&&(e.userId=e.userInfo.userid=$A.runNum(e.userInfo.userid),e.userToken=e.userInfo.token,e.userIsAdmin=$A.inArray("admin",e.userInfo.identity));const d=(e.userInfo.managed_departments||[]).map(u=>parseInt(u.id)).filter(u=>u>0);let h=(e.cacheDepartmentOwnerIds||[]).map(u=>parseInt(u)).filter(u=>d.includes(u));h.length===0&&(h=d),s("department/owner/ids/save",[...new Set(h)]),h.length===0&&s("department/owner/enabled/save",!1),e.cacheServerUrl&&(window.systemInfo.apiUrl=e.cacheServerUrl),t()})},onBeforeUnload(){$A.isSubElectron&&he.subTemp&&($A.syncDispatch("saveDialogDraft",he.subTemp),he.subTemp=null)},scrollBottom({state:e},s){if(!s)return;const t=s.getBoundingClientRect();!t||window.scrollTo({top:t.bottom+e.safeAreaSize.bottom,behavior:"smooth"})},userUrl({state:e},s){return new Promise(t=>{if($A.getDomain(s)==$A.mainDomain()&&Oe(window.location))try{const n=new URL(s);if(/^\/(single|meeting)\//.test(n.pathname)){const r=new URL(window.location);return r.hash=n.pathname+n.search,t(r.toString())}}catch{}const i={language:M,theme:e.themeConf,userid:e.userId};($A.getDomain(s)==$A.mainDomain()||Oe(s))&&(i.token=e.userToken),t($A.urlAddParams(s,i))})},openAppMapPage({dispatch:e},s){return new Promise(t=>{const i=$A.L("\u5B9A\u4F4D\u7B7E\u5230"),n=$A.randomString(6),r={title:i,label:$A.L("\u9009\u62E9\u9644\u8FD1\u5730\u70B9"),placeholder:$A.L("\u641C\u7D22\u5730\u70B9"),noresult:$A.L("\u9644\u8FD1\u6CA1\u6709\u627E\u5230\u5730\u70B9"),errtip:$A.L("\u5B9A\u4F4D\u5931\u8D25"),selectclose:"true",channel:n};$A.eeuiAppSetVariate(`location::${n}`,"");const o=$A.urlAddParams(window.location.origin+"/tools/map/index.html",Object.assign(r,s||{}));e("openAppChildPage",{pageType:"app",pageTitle:i,url:"web.js",params:{titleFixed:!0,hiddenDone:!0,url:o},callback:({status:a})=>{if(a==="pause"){const l=$A.jsonParse($A.eeuiAppGetVariate(`location::${n}`));if(l.point){if($A.eeuiAppSetVariate(`location::${n}`,""),l.distance>s.radius){$A.modalError(`\u4F60\u9009\u62E9\u7684\u4F4D\u7F6E\u300C${l.title}\u300D\u4E0D\u5728\u7B7E\u5230\u8303\u56F4\u5185`);return}t(l)}}}})})},async openAppChildPage({dispatch:e},s){s.params.url=await e("userUrl",s.params.url),typeof s.params.allowAccess=="undefined"&&(s.params.allowAccess=Oe(s.params.url)),typeof s.params.showProgress=="undefined"&&(s.params.showProgress=!Oe(s.params.url)),$A.eeuiAppOpenPage(s)},async openWindow({dispatch:e},s){typeof s=="string"&&(s={path:s});const t=$A.getDomain(s.path);t&&t!==$A.mainDomain()?s.webPreferences=Object.assign({contextIsolation:!1},s.webPreferences):s.path=await e("userUrl",s.path),$A.Electron.sendMessage("openWindow",{name:s.name,url:s.path,mode:s.mode,title:s.title,titleFixed:s.titleFixed,width:s.width,height:s.height,minWidth:s.minWidth,minHeight:s.minHeight,userAgent:s.userAgent,force:s.force,webPreferences:s.webPreferences})},saveFile({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveFile",i),$A.isArray(i))i.forEach(n=>{t("saveFile",n)});else if($A.isJson(i)){let n={_load:!1,_edit:!1};const r=s.fileLists.findIndex(({id:o})=>o==i.id);r>-1?e("file/splice",{index:r,data:Object.assign(n,s.fileLists[r],i)}):e("file/push",Object.assign(n,i))}},forgetFile({commit:e,state:s,dispatch:t},i){$A.syncDispatch("forgetFile",i),($A.isArray(i.id)?i.id:[i.id]).some(r=>{e("file/save",s.fileLists.filter(o=>o.id!=r)),s.fileLists.some(o=>{o.pid==r&&t("forgetFile",o)})})},packProgress({state:e,dispatch:s},t){$A.syncDispatch("packProgress",t);const i=e.filePackLists.findIndex(({name:n})=>n==t.name);i>-1?e.filePackLists[i].progress=t.progress:e.filePackLists.push(t)},getFiles({commit:e,state:s,dispatch:t},i){const n=typeof i=="object"&&i!==null?i.pid:i,r=typeof i=="object"&&i!==null?i.scope:void 0;return new Promise(function(o,a){t("call",{url:"file/lists",data:r?{pid:n,scope:r}:{pid:n}}).then(l=>{const c=l.data.map(({id:h})=>h),d=s.userId;e("file/save",s.fileLists.filter(h=>h.pid!=n||c.includes(h.id)?!0:n>0?!1:r==="mine"?h.userid!=d:r==="shared"?!(h.userid!=d||h.share):!1)),t("saveFile",l.data),o(l)}).catch(l=>{console.warn(l),a(l)})})},searchFiles({state:e,dispatch:s},t){return $A.isJson(t)||(t={key:t}),new Promise(function(i,n){s("call",{url:"file/search",data:t}).then(r=>{s("saveFile",r.data),i(r)}).catch(r=>{console.warn(r),n(r)})})},normalizeDepartmentOwnerIds({state:e},s){const t=(e.userInfo.managed_departments||[]).map(i=>parseInt(i.id));return $A.isArray(s)||(s=[]),[...new Set(s.map(i=>parseInt(i)).filter(i=>i>0&&t.includes(i)))]},async getProjectsForDepartmentOwnerView({state:e,dispatch:s,commit:t}){if(await s("systemSetting").catch(()=>{}),e.systemConfig.department_owner_project_view!=="open"){t("department/owner/ids/save",[]),t("department/owner/enabled/save",!1),s("getProjectByQueue");return}const i=await s("restoreDepartmentOwnerView");if(i.enabled&&i.ids.length>0){await s("getProjects",{__replace:!0,department_owner_ids:i.ids.join(",")});return}s("getProjectByQueue")},async restoreDepartmentOwnerView({state:e,dispatch:s,commit:t}){if(e.departmentOwnerViewRestored)return{enabled:e.departmentOwnerProjectViewEnabled,ids:e.cacheDepartmentOwnerIds||[]};if(e.systemConfig.department_owner_project_view!=="open")return t("department/owner/ids/save",[]),t("department/owner/enabled/save",!1),{enabled:!1,ids:[]};e.departmentOwnerViewRestored=!0;const i=(e.userInfo.managed_departments||[]).map(o=>parseInt(o.id)).filter(o=>o>0);let n=await s("normalizeDepartmentOwnerIds",e.cacheDepartmentOwnerIds);n.length===0&&(n=[...new Set(i)]);const r=e.departmentOwnerProjectViewEnabled&&n.length>0;return t("department/owner/ids/save",n),t("department/owner/enabled/save",r),r&&(e.departmentOwnerProjectsRefreshing=!0),{enabled:r,ids:n}},async setDepartmentOwnerIds({state:e,dispatch:s,commit:t},i){const n=$A.isJson(i);let r=n?i.ids:i,o=n&&typeof i.projectViewEnabled=="boolean"?i.projectViewEnabled:e.departmentOwnerProjectViewEnabled;e.systemConfig.department_owner_project_view!=="open"&&(r=[],o=!1);let a=await s("normalizeDepartmentOwnerIds",r);e.systemConfig.department_owner_project_view==="open"&&a.length===0&&(a=(e.userInfo.managed_departments||[]).map(p=>parseInt(p.id)).filter(p=>p>0)),a=[...new Set(a)],o=o&&a.length>0;const l=(e.cacheDepartmentOwnerIds||[]).slice().sort().join(","),c=a.slice().sort().join(","),d=l!==c,h=e.departmentOwnerProjectViewEnabled!==o;if(!d&&!h)return;let u=null;(h||o&&d)&&(e.departmentOwnerProjectsRefreshing=!0,u=await s("refreshDepartmentOwnerProjects",{ownerIds:a,enabled:o})),t("department/owner/ids/save",a),t("department/owner/enabled/save",o),u!=null&&u.route&&$A.goForward(u.route)},async refreshDepartmentOwnerProjects({state:e,dispatch:s},t={}){const i=e.routeName==="manage-project"?e.projectId:0,n=typeof t.enabled=="boolean"?t.enabled:e.departmentOwnerProjectViewEnabled;let r=t.ownerIds||e.cacheDepartmentOwnerIds;r=(r||[]).map(a=>parseInt(a)).filter(a=>a>0);const o=n?r.join(","):"";e.departmentOwnerProjectsRefreshing=!0,e.callAt=e.callAt.filter(a=>{const l=String(a.key);return!l.startsWith("projects::")&&!l.startsWith("tasks::")});try{if(await s("getProjects",{__replace:!0,department_owner_ids:o}),i>0){if(!e.cacheProjects.find(({id:l})=>l==i)){const l=$A.cloneJSON(e.cacheProjects).sort((c,d)=>c.top_at||d.top_at?$A.sortDay(d.top_at,c.top_at):d.id-c.id).find(({id:c})=>c);return{route:l?{name:"manage-project",params:{projectId:l.id}}:{name:"manage-dashboard"}}}await s("getProjectOne",{project_id:i,department_owner_ids:o}).catch(()=>{}),await s("getTaskForProject",{project_id:i,department_owner_ids:o}).catch(()=>{})}}finally{e.departmentOwnerProjectsRefreshing=!1}},saveProject({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveProject",i),$A.isArray(i))i.forEach(n=>{t("saveProject",n)});else if($A.isJson(i)){typeof i.project_column!="undefined"&&(t("saveColumn",i.project_column),delete i.project_column);const n=s.cacheProjects.findIndex(({id:r})=>r==i.id);n>-1?e("project/splice",{index:n,data:Object.assign({},s.cacheProjects[n],i)}):(typeof i.project_user=="undefined"&&(i.project_user=[]),e("project/push",i),s.projectTotal++),s.cacheDialogs.some(r=>{if(r.type=="group"&&r.group_type=="project"&&r.group_info&&r.group_info.id==i.id){i.name!==void 0&&(r.name=i.name);for(let o in r.group_info)!r.group_info.hasOwnProperty(o)||i[o]===void 0||(r.group_info[o]=i[o])}})}},forgetProject({commit:e,state:s,dispatch:t},i){$A.syncDispatch("forgetProject",i);const n=$A.isArray(i.id)?i.id:[i.id];if(n.some(r=>{const o=s.cacheProjects.findIndex(a=>a.id==r);o>-1&&(t("forgetTask",{id:s.cacheTasks.filter(a=>a.project_id==i.id).map(a=>a.id)}),t("forgetColumn",{id:s.cacheColumns.filter(a=>a.project_id==i.id).map(a=>a.id)}),e("project/splice",{index:o}),s.projectTotal=Math.max(0,s.projectTotal-1))}),n.includes(s.projectId)){const r=$A.cloneJSON(s.cacheProjects).sort((o,a)=>o.top_at||a.top_at?$A.sortDay(a.top_at,o.top_at):a.id-o.id).find(({id:o})=>o&&o!=i.id);r?$A.goForward({name:"manage-project",params:{projectId:r.id}}):$A.goForward({name:"manage-dashboard"})}},getProjects({state:e,dispatch:s},t){$A.isJson(t)||(t={});const i=t.__replace===!0;return delete t.__replace,e.systemConfig.department_owner_project_view!=="open"?delete t.department_owner_ids:t.department_owner_ids===void 0&&(e.departmentOwnerProjectViewEnabled&&(e.cacheDepartmentOwnerIds||[]).length>0?t.department_owner_ids=e.cacheDepartmentOwnerIds.join(","):delete t.department_owner_ids),i&&(e.callAt=e.callAt.filter(n=>!String(n.key).startsWith("projects::")),$A.IDBSet("callAt",e.callAt).catch(()=>{})),new Promise(function(n,r){if(e.userId===0){e.cacheProjects=[],r({msg:"Parameter error"});return}const o=kt("projects",t,e);setTimeout(()=>{e.loadProjects++},2e3),s("call",{url:"project/lists",data:o.get()}).then(({data:a})=>{i&&(e.cacheProjects=[]),s("saveProject",a.data),o.save(a).then(l=>s("forgetProject",{id:l})),e.projectTotal=a.total_all,n(a)}).catch(a=>{console.warn(a),r(a)}).finally(a=>{i&&(e.departmentOwnerProjectsRefreshing=!1),e.loadProjects--})})},getProjectByQueue({dispatch:e},s=null){if(window.__getProjectByQueueTimer&&clearTimeout(window.__getProjectByQueueTimer),typeof s=="number"){window.__getProjectByQueueTimer=setTimeout(t=>e("getProjectByQueue",null),s);return}e("getProjects").catch(()=>{})},getProjectOne({state:e,dispatch:s},t){return new Promise(function(i,n){const r=$A.isJson(t)?{...t}:{project_id:t},o=r.project_id;if($A.runNum(o)===0){n({msg:"Parameter error"});return}e.projectLoad++,s("call",{url:"project/one",data:r}).then(a=>{setTimeout(()=>{e.projectLoad--},10),s("saveProject",a.data),i(a)}).catch(a=>{console.warn(a),e.projectLoad--,n(a)})})},archivedProject({state:e,dispatch:s},t){return new Promise(function(i,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}s("call",{url:"project/archived",data:{project_id:t}}).then(r=>{s("forgetProject",{id:t}),i(r)}).catch(r=>{console.warn(r),s("getProjectOne",t).catch(()=>{}),n(r)})})},removeProject({state:e,dispatch:s},t){return new Promise(function(i,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}s("call",{url:"project/remove",data:{project_id:t}}).then(r=>{s("forgetProject",{id:t}),i(r)}).catch(r=>{console.warn(r),s("getProjectOne",t).catch(()=>{}),n(r)})})},exitProject({state:e,dispatch:s},t){return new Promise(function(i,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}s("call",{url:"project/exit",data:{project_id:t}}).then(r=>{s("forgetProject",{id:t}),i(r)}).catch(r=>{console.warn(r),s("getProjectOne",t).catch(()=>{}),n(r)})})},saveColumn({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveColumn",i),$A.isArray(i))i.forEach(n=>{t("saveColumn",n)});else if($A.isJson(i)){const n=s.cacheColumns.findIndex(({id:r})=>r==i.id);n>-1?e("project/column/splice",{index:n,data:Object.assign({},s.cacheColumns[n],i)}):e("project/column/push",i)}},forgetColumn({commit:e,state:s,dispatch:t},i){$A.syncDispatch("forgetColumn",i);const n=$A.isArray(i.id)?i.id:[i.id],r=[];n.some(o=>{const a=s.cacheColumns.findIndex(l=>l.id==o);a>-1&&(t("forgetTask",{id:s.cacheTasks.filter(l=>l.column_id==i.id).map(l=>l.id)}),r.push(s.cacheColumns[a].project_id),e("project/column/splice",{index:a}))}),Array.from(new Set(r)).some(o=>t("getProjectOne",o).catch(()=>{}))},getColumns({commit:e,state:s,dispatch:t},i){return new Promise(function(n,r){if(s.userId===0){s.cacheColumns=[],r({msg:"Parameter error"});return}s.projectLoad++,t("call",{url:"project/column/lists",data:{project_id:i}}).then(({data:o})=>{s.projectLoad--;const a=o.data.map(({id:l})=>l);if(e("project/column/save",s.cacheColumns.filter(l=>l.project_id!=i||a.includes(l.id))),t("saveColumn",o.data),n(o.data),s.cacheColumns.filter(l=>l.project_id==i).length===1){const l=s.cacheProjectParameter.find(c=>c.project_id==i)||{};(typeof l.menuInit=="undefined"||l.menuInit===!1)&&t("toggleProjectParameter",{project_id:i,key:{menuInit:!0,menuType:"table"}})}}).catch(o=>{console.warn(o),s.projectLoad--,r(o)})})},removeColumn({state:e,dispatch:s},t){return new Promise(function(i,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}s("call",{url:"project/column/remove",data:{column_id:t}}).then(r=>{s("forgetColumn",{id:t}),i(r)}).catch(r=>{console.warn(r),n(r)})})},saveTask({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveTask",i),$A.isArray(i))i.forEach(n=>{t("saveTask",n)});else if($A.isJson(i)){if(i._time=$A.dayjs().unix(),i.flow_item_name&&i.flow_item_name.indexOf("|")!==-1){const o=$A.convertWorkflow(i.flow_item_name);i.flow_item_status=o.status,i.flow_item_name=o.name,i.flow_item_color=o.color}typeof i.archived_at!="undefined"&&s.cacheTasks.filter(o=>o.parent_id==i.id).some(o=>{t("saveTask",Object.assign(o,{archived_at:i.archived_at,archived_userid:i.archived_userid}))});let n={};typeof i.update_marking!="undefined"&&(n=$A.isJson(i.update_marking)?i.update_marking:{},delete i.update_marking);const r=s.cacheTasks.findIndex(({id:o})=>o==i.id);r>-1?e("task/splice",{index:r,data:Object.assign({},s.cacheTasks[r],i)}):e("task/push",i),(n.is_update_maintask===!0||i.parent_id>0&&s.cacheTasks.findIndex(({id:o})=>o==i.parent_id)===-1)&&t("getTaskOne",i.parent_id).catch(()=>{}),n.is_update_project===!0&&t("getProjectOne",i.project_id).catch(()=>{}),n.is_update_content===!0&&t("getTaskContent",i.id),n.is_update_subtask===!0&&t("getTaskForParent",i.id).catch(()=>{}),s.cacheDialogs.some(o=>{if(o.name===void 0||o.dialog_delete===1)return!1;if(o.type=="group"&&o.group_type=="task"&&o.group_info&&o.group_info.id==i.id){i.name!==void 0&&(o.name=i.name);for(let a in o.group_info)!o.group_info.hasOwnProperty(a)||i[a]===void 0||(o.group_info[a]=i[a])}})}},forgetTask({commit:e,state:s,dispatch:t},i){$A.syncDispatch("forgetTask",i);const n=($A.isArray(i.id)?i.id:[i.id]).filter(a=>a!=s.taskArchiveView),r=[],o=[];n.some(a=>{const l=s.cacheTasks.findIndex(c=>c.id==a);l>-1&&(s.cacheTasks[l].parent_id&&r.push(s.cacheTasks[l].parent_id),o.push(s.cacheTasks[l].project_id),e("task/splice",{index:l})),s.cacheTasks.filter(c=>c.parent_id==a).some(c=>{let d=s.cacheTasks.findIndex(h=>h.id==c.id);d>-1&&(o.push(c.project_id),e("task/splice",{index:d}))})}),Array.from(new Set(r)).some(a=>t("getTaskOne",a).catch(()=>{})),Array.from(new Set(o)).some(a=>t("getProjectOne",a).catch(()=>{})),n.includes(s.taskId)&&(s.taskId=0)},todayAndOverdue({state:e,dispatch:s}){const t=$A.daytz(),i=t.format("YYYY-MM-DD");e.cacheTasks.some(n=>{if(!n.end_at)return!1;const r={},o=$A.dayjs(n.end_at);!n.today&&o.format("YYYY-MM-DD")==i&&(r.today=!0),!n.overdue&&o<t&&(r.overdue=!0),Object.keys(r).length>0&&s("saveTask",Object.assign(n,r))})},increaseTaskMsgNum({state:e,commit:s},t){$A.syncDispatch("increaseTaskMsgNum",t);const i=e.cacheTasks.findIndex(n=>n.dialog_id===t.id);if(i!==-1){const n=$A.cloneJSON(e.cacheTasks[i]);n.msg_num++,s("task/splice",{index:i,data:n})}},increaseMsgReplyNum({state:e,commit:s},t){$A.syncDispatch("increaseMsgReplyNum",t);const i=e.dialogMsgs.findIndex(n=>n.id==t.id);if(i!==-1){const n=$A.cloneJSON(e.dialogMsgs[i]);n.reply_num++,s("message/splice",{index:i,data:n})}},decrementMsgReplyNum({state:e,commit:s},t){$A.syncDispatch("decrementMsgReplyNum",t);const i=e.dialogMsgs.findIndex(n=>n.id==t.id);if(i!==-1){const n=$A.cloneJSON(e.dialogMsgs[i]);n.reply_num--,s("message/splice",{index:i,data:n})}},getTasks({state:e,dispatch:s},t){$A.isJson(t)||(t={}),t.department_owner_ids===void 0&&(e.departmentOwnerProjectViewEnabled&&(e.cacheDepartmentOwnerIds||[]).length>0?t.department_owner_ids=e.cacheDepartmentOwnerIds.join(","):delete t.department_owner_ids);const i=kt("tasks",t,e);return new Promise(function(n,r){if(e.userId===0){e.cacheTasks=[],r({msg:"Parameter error"});return}t.project_id&&e.projectLoad++,s("call",{url:"project/task/lists",data:i.get()}).then(({data:o})=>{t.project_id&&e.projectLoad--,s("saveTask",o.data),i.save(o).then(a=>s("forgetTask",{id:a})),o.next_page_url?(t.page=o.current_page+1,o.current_page%30===0?$A.modalConfirm({content:"\u6570\u636E\u5DF2\u8D85\u8FC7"+o.to+"\u6761\uFF0C\u662F\u5426\u7EE7\u7EED\u52A0\u8F7D\uFF1F",onOk:()=>{s("getTasks",t).then(n).catch(r)},onCancel:()=>{n()}}):s("getTasks",t).then(n).catch(r)):n()}).catch(o=>{console.warn(o),r(o),t.project_id&&e.projectLoad--})})},getTaskOne({state:e,dispatch:s},t){return new Promise(function(i,n){if(/^\d+$/.test(t)&&(t={task_id:t}),$A.runNum(t.task_id)===0){n({msg:"Parameter error"});return}if($A.isArray(e.taskOneLoad[t.task_id])){e.taskOneLoad[t.task_id].push({resolve:i,reject:n});return}e.taskOneLoad[t.task_id]=[],s("call",{url:"project/task/one",data:t}).then(r=>{s("saveTask",r.data),i(r),e.taskOneLoad[t.task_id].some(o=>{o.resolve(r)})}).catch(r=>{console.warn(r),n(r),e.taskOneLoad[t.task_id].some(o=>{o.reject(r)})}).finally(r=>{delete e.taskOneLoad[t.task_id]})})},getTaskSubData({state:e,dispatch:s},t){if(!t)return;const i=e.cacheTasks.find(({id:n})=>n==t);!i||s("call",{url:"project/task/subdata",data:{task_id:t}}).then(({data:n})=>{s("saveTask",Object.assign(i,n))}).catch(n=>{console.warn(n)})},getTaskForDashboard({state:e,dispatch:s},t){if(window.__getTaskForDashboard&&clearTimeout(window.__getTaskForDashboard),typeof t=="number"){t>-1&&(window.__getTaskForDashboard=setTimeout(i=>s("getTaskForDashboard",null),t));return}e.loadDashboardTasks!==!0&&(e.loadDashboardTasks=!0,s("getTasks",null).finally(i=>{e.loadDashboardTasks=!1}))},getTaskForProject({state:e,dispatch:s},t){return new Promise(function(i,n){const r=$A.isJson(t)?{...t}:{project_id:t};s("getTasks",r).then(i).catch(n)})},getTaskForParent({state:e,dispatch:s},t){return new Promise(function(i,n){s("getTasks",{parent_id:t}).then(i).catch(n)})},removeTask({state:e,dispatch:s},t){return new Promise(function(i,n){if($A.runNum(t.task_id)===0){n({msg:"Parameter error"});return}s("setLoad",{key:`task-${t.task_id}`,delay:300}),s("call",{url:"project/task/remove",data:t}).then(r=>{e.taskArchiveView=0,s("forgetTask",{id:t.task_id}),i(r)}).catch(r=>{console.warn(r),s("getTaskOne",t.task_id).catch(()=>{}),n(r)}).finally(r=>{s("cancelLoad",`task-${t.task_id}`)})})},archivedTask({state:e,dispatch:s},t){return new Promise(function(i,n){if(/^\d+$/.test(t)&&(t={task_id:t}),$A.runNum(t.task_id)===0){n({msg:"Parameter error"});return}s("setLoad",{key:`task-${t.task_id}`,delay:300}),s("call",{url:"project/task/archived",data:t}).then(r=>{s("saveTask",r.data),i(r)}).catch(r=>{console.warn(r),s("getTaskOne",t.task_id).catch(()=>{}),n(r)}).finally(r=>{s("cancelLoad",`task-${t.task_id}`)})})},taskConvertToMain({dispatch:e},s){return new Promise(function(t,i){if(/^\d+$/.test(s)&&(s={task_id:s}),$A.runNum(s.task_id)===0){i({msg:"Parameter error"});return}e("setLoad",{key:`task-${s.task_id}`,delay:300}),e("call",{url:"project/task/upgrade",data:s}).then(n=>{const{task:r,parent:o}=n.data||{};r&&e("saveTask",r),o&&e("saveTask",o),t(n)}).catch(n=>{console.warn(n),e("getTaskOne",s.task_id).catch(()=>{}),i(n)}).finally(n=>{e("cancelLoad",`task-${s.task_id}`)})})},getTaskContent({state:e,dispatch:s},t){$A.runNum(t)!==0&&(s("setLoad",{key:`task-${t}`,delay:1200}),s("call",{url:"project/task/content",data:{task_id:t}}).then(i=>{s("saveTaskContent",i.data)}).catch(i=>{console.warn(i)}).finally(i=>{s("cancelLoad",`task-${t}`)}))},saveTaskContent({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveTaskContent",i),$A.isArray(i))i.forEach(n=>{t("saveTaskContent",n)});else if($A.isJson(i)){const n=s.taskContents.findIndex(({task_id:r})=>r==i.task_id);n>-1?e("task/content/splice",{index:n,data:Object.assign({},s.taskContents[n],i)}):e("task/content/push",i)}},getTaskFiles({state:e,dispatch:s},t){$A.runNum(t)!==0&&s("call",{url:"project/task/files",data:{task_id:t}}).then(i=>{i.data.forEach(n=>{const r=e.taskFiles.findIndex(({id:o})=>o==n.id);r>-1?e.taskFiles.splice(r,1,n):e.taskFiles.push(n)}),s("saveTask",{id:t,file_num:i.data.length})}).catch(i=>{console.warn(i)})},forgetTaskFile({state:e,dispatch:s},t){($A.isArray(t)?t:[t]).some(n=>{const r=e.taskFiles.findIndex(o=>o.id==n);r>-1&&e.taskFiles.splice(r,1)})},openTask({state:e,dispatch:s},t){let i=t;if($A.isJson(t)&&(t.parent_id>0?i=t.parent_id:i=t.id),$A.isSubElectron){i>0?$A.Electron.sendMessage("updateWindow",{name:`task-${i}`,path:`/single/task/${i}`}):$A.Electron.sendMessage("windowClose");return}e.taskId>0&&T.emit("handleMoveTop","taskModal"),e.taskArchiveView=i,e.taskId=i,i>0?s("getTaskOne",{task_id:i,archived:"all"}).then(()=>{s("getTaskContent",i),s("getTaskFiles",i),s("getTaskForParent",i).catch(()=>{}),s("saveTaskBrowse",i)}).catch(({msg:n})=>{$A.modalWarning({content:n,onOk:()=>{e.taskId=0}})}):e.taskOperation={}},taskAdd({state:e,dispatch:s},t){return new Promise(function(i,n){const r=$A.cloneJSON($A.newDateString(t));$A.isArray(r.column_id)&&(r.column_id=r.column_id.find(o=>o)),s("call",{url:"project/task/add",data:r,spinner:600,method:"post"}).then(o=>{o.data.is_visible===1&&s("addTaskSuccess",o.data),e.taskLatestId=o.data.id,i(o)}).catch(o=>{console.warn(o),n(o)})})},getTaskRelated({state:e,commit:s,dispatch:t},i){return i=parseInt(i,10),i?new Promise((n,r)=>{t("call",{url:"project/task/related",data:{task_id:i}}).then(({data:o})=>{const a=(o.list||[]).map(l=>({...l,mention:!!l.mention,mentioned_by:!!l.mentioned_by}));s("task/related/save",{taskId:i,list:a,updatedAt:Date.now()}),n(a)}).catch(r)}):Promise.resolve([])},deleteTaskRelated({commit:e,dispatch:s},{taskId:t,relatedTaskId:i}){return new Promise((n,r)=>{s("call",{url:"project/task/related/delete",data:{task_id:t,related_task_id:i}}).then(({msg:o})=>{e("task/related/clear",t),e("task/related/clear",i),n(o)}).catch(r)})},taskAddSub({dispatch:e},s){return new Promise(function(t,i){e("call",{url:"project/task/addsub",data:s,spinner:600}).then(n=>{e("addTaskSuccess",n.data),t(n)}).catch(n=>{console.warn(n),i(n)})})},addTaskSuccess({dispatch:e},s){typeof s.new_column!="undefined"&&(e("saveColumn",s.new_column),delete s.new_column),e("saveTask",s),e("getTaskSubData",s.parent_id),e("getProjectOne",s.project_id).catch(()=>{})},taskUpdate({state:e,dispatch:s},t){return new Promise(function(i,n){s("taskBeforeUpdate",t).then(({post:r})=>{s("setLoad",{key:`task-${r.task_id}`,delay:300}),s("call",{url:"project/task/update",data:r,method:"post"}).then(o=>{s("saveTask",o.data),s("getTaskSubData",o.data.parent_id),i(o)}).catch(o=>{console.warn(o),s("getTaskOne",r.task_id).catch(()=>{}),n(o)}).finally(o=>{s("cancelLoad",`task-${r.task_id}`)})}).catch(n)})},taskBeforeUpdate({state:e,dispatch:s},t){return new Promise(function(i,n){let r=$A.cloneJSON($A.newDateString(t)),o="\u6E29\u99A8\u63D0\u793A",a=null;if(typeof r.times!="undefined"){t.times[0]===!1&&(a="\u4F60\u786E\u5B9A\u8981\u53D6\u6D88\u4EFB\u52A1\u65F6\u95F4\u5417\uFF1F");const l=e.cacheTasks.find(({id:c})=>c==r.task_id);o=l.parent_id>0?"\u66F4\u65B0\u5B50\u4EFB\u52A1":"\u66F4\u65B0\u4E3B\u4EFB\u52A1",l&&(l.parent_id>0?r.times[0]&&e.cacheTasks.some(c=>{if(c.id!=l.parent_id)return!1;if(!c.end_at)return a="\u4E3B\u4EFB\u52A1\u6CA1\u6709\u8BBE\u7F6E\u65F6\u95F4\uFF0C\u8BBE\u7F6E\u5B50\u4EFB\u52A1\u5C06\u540C\u6B65\u8BBE\u7F6E\u4E3B\u4EFB\u52A1",!0;let d=$A.dayjs(r.times[0]).unix(),h=$A.dayjs(r.times[1]).unix(),u=$A.dayjs(c.start_at).unix(),p=$A.dayjs(c.end_at).unix();if(d<u)return a="\u65B0\u8BBE\u7F6E\u7684\u5B50\u4EFB\u52A1\u5F00\u59CB\u65F6\u95F4\u5728\u4E3B\u4EFB\u52A1\u65F6\u95F4\u4E4B\u5916\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u4E3B\u4EFB\u52A1",!0;if(h>p)return a="\u65B0\u8BBE\u7F6E\u7684\u5B50\u4EFB\u52A1\u7ED3\u675F\u65F6\u95F4\u5728\u4E3B\u4EFB\u52A1\u65F6\u95F4\u4E4B\u5916\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u4E3B\u4EFB\u52A1",!0}):e.cacheTasks.some(c=>{if(c.parent_id!=l.id||!c.end_at)return!1;let d=$A.dayjs(r.times[0]).unix(),h=$A.dayjs(r.times[1]).unix(),u=$A.dayjs(l.start_at).unix(),p=$A.dayjs(l.end_at).unix(),g=$A.dayjs(c.start_at).unix(),_=$A.dayjs(c.end_at).unix();if(u==g&&p==_)return!1;if(!r.times[0])return a=`\u5B50\u4EFB\u52A1\uFF08${c.name}\uFF09\u5DF2\u8BBE\u7F6E\u65F6\u95F4\uFF0C\u6E05\u9664\u4E3B\u4EFB\u52A1\u65F6\u95F4\u540E\u5C06\u540C\u6B65\u6E05\u9664\u5B50\u4EFB\u52A1\u7684\u65F6\u95F4`,!0;if(d>g)return a=`\u65B0\u8BBE\u7F6E\u7684\u5F00\u59CB\u65F6\u95F4\u5728\u5B50\u4EFB\u52A1\uFF08${c.name}\uFF09\u65F6\u95F4\u4E4B\u5185\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u5B50\u4EFB\u52A1`,!0;if(h<_)return a=`\u65B0\u8BBE\u7F6E\u7684\u7ED3\u675F\u65F6\u95F4\u5728\u5B50\u4EFB\u52A1\uFF08${c.name}\uFF09\u65F6\u95F4\u4E4B\u5185\uFF0C\u4FEE\u6539\u540E\u5C06\u540C\u6B65\u4FEE\u6539\u5B50\u4EFB\u52A1`,!0}))}if(a===null){i({confirm:!1,post:r});return}$A.modalConfirm({title:o,content:a,onOk:()=>{i({confirm:!0,post:r})},onCancel:()=>{n({msg:!1})}})})},getTaskFlow({state:e,dispatch:s},{task_id:t,project_id:i}){return new Promise(function(n,r){s("call",{url:"project/task/flow",data:{task_id:t,project_id:i||0}}).then(o=>{let a=e.cacheTasks.find(({id:d})=>d==t),{data:l}=o;l.turns.some(d=>{const h=e.taskFlowItems.findIndex(({id:u})=>u==d.id);h>-1?e.taskFlowItems.splice(h,1,d):e.taskFlowItems.push(d),a&&a.flow_item_id==d.id&&a.flow_item_name!=d.name&&e.cacheTasks.filter(({flow_item_id:u})=>u==d.id).some(u=>{s("saveTask",{id:u.id,flow_item_name:`${d.status}|${d.name}|${d.color}`})})}),delete l.turns;const c=e.taskFlows.findIndex(({task_id:d})=>d==l.task_id);c>-1?e.taskFlows.splice(c,1,l):e.taskFlows.push(l),n(o)}).catch(o=>{console.warn(o),r(o)})})},getTaskPriority({state:e,dispatch:s},t){window.__getTaskPriority&&clearTimeout(window.__getTaskPriority),window.__getTaskPriority=setTimeout(()=>{s("call",{url:"system/priority"}).then(i=>{e.taskPriority=i.data}).catch(i=>{console.warn(i)})},typeof t=="number"?t:1e3)},getColumnTemplate({state:e,dispatch:s}){return new Promise(function(t,i){s("call",{url:"system/column/template"}).then(n=>{e.columnTemplate=n.data,t(n)}).catch(n=>{console.warn(n),i(n)})})},saveTaskCompleteTemp({state:e},s){/^\d+$/.test(s)&&!e.taskCompleteTemps.includes(s)&&e.taskCompleteTemps.push(s)},forgetTaskCompleteTemp({state:e},s){s===!0?e.taskCompleteTemps=[]:/^\d+$/.test(s)&&(e.taskCompleteTemps=e.taskCompleteTemps.filter(t=>t!=s))},saveTaskBrowse({dispatch:e},s){e("call",{url:"users/task/browse_save",data:{task_id:s}}).catch(t=>{console.warn("\u4FDD\u5B58\u4EFB\u52A1\u6D4F\u89C8\u5386\u53F2\u5931\u8D25:",t)})},getTaskBrowseHistory({dispatch:e},s=20){return e("call",{url:"users/task/browse",data:{limit:s},method:"get"})},getRecentBrowseHistory({dispatch:e},s={}){return e("call",{url:"users/recent/browse",data:s,method:"get"})},removeRecentBrowseRecord({dispatch:e},s){return e("call",{url:"users/recent/delete",data:{id:s},method:"post"})},taskDefaultTime({state:e,dispatch:s},t){return new Promise(async i=>{$A.isArray(t)&&t.length===2&&/\s+(00:00|23:59)$/.test(t[0])&&/\s+(00:00|23:59)$/.test(t[1])&&(t[0]=await s("taskDefaultStartTime",t[0]),t[1]=await s("taskDefaultEndTime",t[1])),i(t)})},taskDefaultStartTime({state:e},s){return new Promise(t=>{/(\s|^)([0-2]\d):([0-5]\d)(:\d{1,2})*$/.test(s)&&(s=s.replace(/(\s|^)([0-2]\d):([0-5]\d)(:\d{1,2})*$/,"$1"+e.systemConfig.task_default_time[0])),t(s)})},taskDefaultEndTime({state:e},s){return new Promise(t=>{/(\s|^)([0-2]\d):([0-5]\d)(:\d{1,2})*$/.test(s)&&(s=s.replace(/(\s|^)([0-2]\d):([0-5]\d)(:\d{1,2})*$/,"$1"+e.systemConfig.task_default_time[1])),t(s)})},async updateTaskTemplates({state:e,dispatch:s},t){const i=(e.cacheProjects||[]).find(({id:r})=>r==t);if(i&&i.task_template_share==="close"){const{data:r}=await s("call",{url:"project/task/template_list",data:{project_id:t||0}});e.taskTemplates=Array.isArray(r)?r:[];return}const{data:n}=await s("call",{url:"project/task/template_visible",data:{current_project_id:t||0}});e.taskTemplates=Array.isArray(n)?n:[]},checkFavoriteStatus({dispatch:e},{type:s,id:t}){return e("call",{url:"users/favorite/check",data:{type:s,id:t},method:"get"})},toggleFavorite({dispatch:e},{type:s,id:t}){return new Promise((i,n)=>{e("call",{url:"users/favorite/toggle",data:{type:s,id:t},method:"post"}).then(r=>{i(r);const{data:o,msg:a}=r;if(!o.favorited){$A.messageSuccess(a);return}$A.Message.success({duration:5,render:l=>l("span",[l("span",$A.L(a)),l("a",{style:{marginLeft:"8px"},on:{click:()=>{const c=o&&typeof o.remark=="string"?o.remark:"";$A.modalInput({title:$A.L("\u4FEE\u6539\u5907\u6CE8"),placeholder:$A.L("\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8"),okText:$A.L("\u4FDD\u5B58"),value:c,onOk:d=>{const h=typeof d=="string"?d.trim():"";return h?new Promise((u,p)=>{e("call",{url:"users/favorite/remark",data:{type:s,id:t,remark:h},method:"post"}).then(({msg:g})=>{$A.messageSuccess(g||$A.L("\u64CD\u4F5C\u6210\u529F")),u()}).catch(({msg:g})=>{p(g||$A.L("\u64CD\u4F5C\u5931\u8D25"))})}):$A.L("\u8BF7\u8F93\u5165\u4FEE\u6539\u5907\u6CE8")}})}}},$A.L("\u4FEE\u6539\u5907\u6CE8"))])})}).catch(({msg:r})=>{$A.modalError(r||this.$L("\u64CD\u4F5C\u5931\u8D25")),n()})})},checkFavoritesStatus({dispatch:e},{type:s,items:t}){if(!Array.isArray(t)||t.length===0)return Promise.resolve([]);const i=t.map(n=>e("checkFavoriteStatus",{type:s,id:n.id}).then(({data:r})=>({id:n.id,favorited:r.favorited||!1})).catch(()=>({id:n.id,favorited:!1})));return Promise.all(i)},saveDialog({commit:e,state:s,dispatch:t},i){var n;if($A.syncDispatch("saveDialog",i),$A.isArray(i))i.forEach(r=>{t("saveDialog",r)});else if($A.isJson(i)){i.id=parseInt(i.id);const r=s.cacheDialogs.findIndex(({id:a})=>a==i.id);let o=!1;if(typeof i.last_force!="undefined"&&(o=!0,delete i.last_force),r>-1){const a=s.cacheDialogs[r],l=i.user_ms,c=a.user_ms||0;l<c&&(typeof i.unread!="undefined"&&delete i.unread,typeof i.unread_one!="undefined"&&delete i.unread_one,typeof i.mention!="undefined"&&delete i.mention,typeof i.mention_ids!="undefined"&&delete i.mention_ids),i.unread_one&&(n=s.dialogMsgs.find(d=>d.id==i.unread_one))!=null&&n.read_at&&delete i.unread_one,i.mention_ids&&(i.mention_ids=i.mention_ids.filter(d=>{var h;return!((h=s.dialogMsgs.find(u=>u.id==d))!=null&&h.read_at)})),!o&&i.last_at&&a.last_at&&$A.dayjs(i.last_at)<$A.dayjs(a.last_at)&&(delete i.last_at,delete i.last_msg),e("dialog/splice",{index:r,data:Object.assign({},a,i)})}else e("dialog/push",i)}},updateDialogLastMsg({state:e,dispatch:s},t){if($A.syncDispatch("updateDialogLastMsg",t),$A.isArray(t))t.forEach(i=>{s("updateDialogLastMsg",i)});else if($A.isJson(t))if(e.cacheDialogs.findIndex(({id:n})=>n==t.dialog_id)>-1){const n={id:t.dialog_id,last_msg:t,last_at:t.created_at||$A.daytz().format("YYYY-MM-DD HH:mm:ss")};t.mtype=="tag"&&(n.has_tag=!0),t.mtype=="todo"&&(n.has_todo=!0),t.mtype=="image"&&(n.has_image=!0),t.mtype=="file"&&(n.has_file=!0),t.link&&(n.has_link=!0),s("saveDialog",n)}else s("getDialogOne",t.dialog_id).catch(()=>{})},getDialogAuto({state:e,dispatch:s}){return new Promise(function(t,i){if(e.loadDialogAuto){i({msg:"Loading"});return}setTimeout(n=>{e.loadDialogs++},2e3),e.loadDialogAuto=!0,s("getDialogs").then(t).catch(i).finally(n=>{e.loadDialogs--,e.loadDialogAuto=!1})})},getDialogs({state:e,dispatch:s},t){return new Promise(function(i,n){if(e.userId===0){e.cacheDialogs=[],n({msg:"Parameter error"});return}$A.isJson(t)||(t={}),typeof t.page=="undefined"&&(t.page=1),typeof t.pagesize=="undefined"&&(t.pagesize=20);const r=kt("dialogs",t,e);s("call",{url:"dialog/lists",data:r.get()}).then(({data:o})=>{s("saveDialog",o.data),r.save(o).then(a=>s("forgetDialog",{id:a})),o.current_page===1&&s("getDialogLatestMsgs",o.data.map(({id:a})=>a)),o.next_page_url&&o.current_page<5?(t.page++,s("getDialogs",t).then(i).catch(n)):(i(),s("getDialogBeyonds"))}).catch(o=>{console.warn(o),n(o)})})},async getDialogBeyonds({state:e,dispatch:s}){const t=await $A.IDBString("dialogBeyond"),i=$A.daytz().format("YYYY-MM-DD HH");if(t==i)return;await $A.IDBSet("dialogBeyond",i);const n=a=>e.cacheDialogs.filter(a).sort((l,c)=>$A.sortDay(l.last_at,c.last_at)).find(({id:l})=>l>0),r=n(({unread:a,last_at:l})=>a>0&&l),o=n(({todo_num:a,last_at:l})=>a>0&&l);s("call",{url:"dialog/beyond",data:{unread_at:r?r.last_at:$A.dayjs().unix(),todo_at:o?o.last_at:$A.dayjs().unix()}}).then(({data:a})=>{s("saveDialog",a)})},getDialogOne({state:e,dispatch:s},t){return new Promise(function(i,n){if($A.runNum(t)===0){n({msg:"Parameter error"});return}s("call",{url:"dialog/one",data:{dialog_id:t}}).then(r=>{s("saveDialog",r.data),i(r)}).catch(r=>{console.warn(r),n(r)})})},getDialogTodo({commit:e,state:s,dispatch:t},i){t("call",{url:"dialog/todo",data:{dialog_id:i}}).then(({data:n})=>{$A.arrayLength(n)>0?(i>0&&(t("saveDialog",{id:i,todo_num:$A.arrayLength(n)}),e("dialog/todo/save",s.dialogTodos.filter(r=>r.dialog_id!=i))),t("saveDialogTodo",n)):i>0&&t("saveDialog",{id:i,todo_num:0})}).catch(console.warn)},getDialogMsgTop({state:e,dispatch:s},t){s("call",{url:"dialog/msg/topinfo",data:{dialog_id:t}}).then(({data:i})=>{$A.isJson(i)&&s("saveDialogMsgTop",i)}).catch(console.warn)},openDialog({state:e,dispatch:s},t){return new Promise(async(i,n)=>{let r,o,a;if($A.isJson(t)&&(r=t.single,o=t.search_msg_id,a=t.dialog_msg_id,t=t.dialog_id),r=typeof r=="boolean"?r:$A.isSubElectron,o=/^\d+$/.test(o)?parseInt(o):0,a=/^\d+$/.test(a)?parseInt(a):0,t=/^\d+$/.test(t)?parseInt(t):0,t>0&&e.cacheDialogs.findIndex(l=>l.id==t)===-1){s("showSpinner",300);try{await s("getDialogOne",t)}catch(l){n(l);return}finally{s("hiddenSpinner")}}if($A.Electron&&r){s("openDialogNewWindow",t),i();return}e.dialogModalShow?T.emit("handleMoveTop","dialogModal"):e.dialogId===t&&(e.dialogId=0),requestAnimationFrame(l=>{e.dialogSearchMsgId=o,e.dialogMsgId=a,e.dialogId=t,i()})})},openDialogUserid({state:e,dispatch:s},t){return new Promise((i,n)=>{const r=e.cacheDialogs.find(o=>o.type!=="user"||!o.dialog_user?!1:o.dialog_user.userid===t);if(r)return s("openDialog",r.id).then(i).catch(n);s("call",{url:"dialog/open/user",data:{userid:t},spinner:600}).then(async({data:o})=>{s("saveDialog",o),s("openDialog",o.id).then(i).catch(n)}).catch(o=>{console.warn(o),n(o)})})},openDialogEvent({state:e,dispatch:s},t){return new Promise((i,n)=>{if(!t){n({msg:"Parameter error"});return}s("call",{url:"dialog/open/event",data:{dialog_id:t}}).catch(r=>{console.warn(r),n(r)})})},openDialogNewWindow({state:e,dispatch:s},t){if($A.runNum(t)<=0)return;const i=e.cacheDialogs.find(({id:n})=>n===t)||{};s("openWindow",{name:`dialog-${t}`,path:`/single/dialog/${t}`,mode:"window",title:i.name,width:Math.min(window.screen.availWidth,1024),height:Math.min(window.screen.availHeight,768)})},forgetDialog({commit:e,state:s,dispatch:t},i){$A.syncDispatch("forgetDialog",i);const n=$A.isArray(i.id)?i.id:[i.id];n.some(r=>{$A.isJson(r)&&(r=r.id);const o=s.cacheDialogs.findIndex(a=>a.id==r);o>-1&&(t("forgetDialogMsg",{id:s.dialogMsgs.filter(a=>a.dialog_id==i.id).map(a=>a.id)}),e("dialog/splice",{index:o}))}),n.includes(s.dialogId)&&(s.dialogId=0)},saveInDialog({commit:e,state:s,dispatch:t},i){$A.syncDispatch("saveInDialog",i);const n=s.dialogIns.findIndex(a=>a.uid==i.uid);n>-1?e("dialog/in/splice",{index:n,data:Object.assign({},s.dialogIns[n],i)}):e("dialog/in/push",i);const r=5e3,o=500;if(e("dialog/history/save",s.dialogHistory.filter(a=>a!=i.dialog_id)),e("dialog/history/push",i.dialog_id),s.dialogMsgs.length>r&&s.dialogHistory.length>o){const a=s.dialogHistory.slice().reverse(),l=[],c=[];a.forEach(d=>{l.length<o||s.dialogIns.findIndex(h=>h.dialog_id==d)>-1?l.push(d):c.push(d)}),c.length>0&&e("message/save",s.dialogMsgs.filter(d=>!c.includes(d.dialog_id))),e("dialog/history/save",l)}},forgetInDialog({state:e,commit:s},t){$A.syncDispatch("forgetInDialog",t);const i=e.dialogIns.findIndex(n=>n.uid==t.uid);i>-1&&s("dialog/in/splice",{index:i})},closeDialog({state:e,commit:s},t){if($A.syncDispatch("closeDialog",t),!/^\d+$/.test(t.id))return;s("draft/tag",t.id);const i=e.dialogMsgs.filter(n=>n.dialog_id==t.id);if(i.length>e.dialogMsgKeep){const n=i.sort((r,o)=>o.id-r.id).splice(e.dialogMsgKeep).map(r=>r.id);s("message/save",e.dialogMsgs.filter(r=>!n.includes(r.id)))}},clearDialogMsgs({state:e,commit:s},t){$A.syncDispatch("clearDialogMsgs",t),/^\d+$/.test(t.id)&&s("message/save",e.dialogMsgs.filter(i=>i.dialog_id!=t.id))},saveDialogTodo({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveDialogTodo",i),$A.isArray(i))i.forEach(n=>{t("saveDialogTodo",n)});else if($A.isJson(i)){const n=s.dialogTodos.findIndex(r=>r.id==i.id);n>-1?e("dialog/todo/splice",{index:n,data:Object.assign({},s.dialogTodos[n],i)}):e("dialog/todo/push",i)}},forgetDialogTodoForMsgId({state:e,commit:s},t){$A.syncDispatch("forgetDialogTodoForMsgId",t);const i=e.dialogTodos.findIndex(n=>n.msg_id==t.id);i>-1&&s("dialog/todo/splice",{index:i})},saveDialogMsgTop({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveDialogMsgTop",i),$A.isArray(i))i.forEach(n=>{t("saveDialogMsgTop",n)});else if($A.isJson(i)){e("dialog/msg/top/save",s.dialogMsgTops.filter(r=>r.dialog_id!=i.dialog_id));const n=s.dialogMsgTops.findIndex(r=>r.id==i.id);n>-1?e("dialog/msg/top/splice",{index:n,data:Object.assign({},s.dialogMsgTops[n],i)}):e("dialog/msg/top/push",i)}},forgetDialogMsgTopForMsgId({state:e,commit:s},t){$A.syncDispatch("forgetDialogMsgTopForMsgId",t);const i=e.dialogMsgTops.findIndex(n=>n.msg_id==t.id);i>-1&&s("dialog/msg/top/splice",{index:i})},saveDialogDraft({commit:e},{id:s,content:t,immediate:i=!1,...n}){if($A.isSubElectron){he.subTemp={id:s,content:t,immediate:!0};return}$A.syncDispatch("saveDialogDraft",{...n,id:s,content:t,immediate:i}),he.timer[s]&&(clearTimeout(he.timer[s]),delete he.timer[s]),he.timer[s]=setTimeout(()=>{e("draft/set",{id:s,content:t}),delete he.timer[s]},i||!t?0:600)},saveDialogQuote({commit:e},s){e("quote/set",s)},removeDialogQuote({commit:e},s){e("quote/remove",s)},saveDialogWithdraw({commit:e},s){s=Object.assign({time:new Date().getTime()},s),$A.syncDispatch("saveDialogWithdraw",s),e("withdraw/set",s),Ie.schedule(e,s)},forgetDialogWithdraw({commit:e},s){$A.syncDispatch("forgetDialogWithdraw",s),Ie.timer[s.id]&&(clearTimeout(Ie.timer[s.id]),delete Ie.timer[s.id]),e("withdraw/remove",s.id)},saveDialogMsg({commit:e,state:s,dispatch:t},i){if($A.syncDispatch("saveDialogMsg",i),$A.isArray(i)){i.forEach(o=>{t("saveDialogMsg",o)});return}i.type=="notice"&&(i.estimateSize=42);const n=s.dialogMsgs.findIndex(({id:o})=>o==i.id);if(n>-1){const o=s.dialogMsgs[n];o.read_at&&delete i.read_at,i=Object.assign({},o,i),e("message/splice",{index:n,data:i})}else e("message/push",i);const r=s.cacheDialogs.find(({id:o})=>o==i.dialog_id);if(r){let o=!1;!i.read_at&&i.userid!=s.userId&&!s.dialogIns.find(({dialog_id:a})=>a==r.id)&&(r.unread_one?r.unread_one=Math.min(r.unread_one,i.id):r.unread_one=i.id,o=!0),r.last_msg&&r.last_msg.id==i.id&&(r.last_msg=Object.assign({},r.last_msg,i),o=!0),o&&t("saveDialog",r)}},forgetDialogMsg({commit:e,state:s,dispatch:t},i){$A.syncDispatch("forgetDialogMsg",i),($A.isArray(i.id)?i.id:[i.id]).some(r=>{const o=s.dialogMsgs.findIndex(a=>a.id==r);if(o>-1){const a=s.dialogMsgs[o];t("decrementMsgReplyNum",{id:a.reply_id}),t("audioStop",$A.getObject(a,"msg.path")),e("message/splice",{index:o})}}),t("forgetDialogTodoForMsgId",i),t("forgetDialogMsgTopForMsgId",i)},getDialogMsgs({commit:e,state:s,dispatch:t,getters:i},n){return new Promise((r,o)=>{let a=u=>{},l=u=>{},c=!1,d=!1;typeof n.save_before!="undefined"&&(a=typeof n.save_before=="function"?n.save_before:u=>{},delete n.save_before),typeof n.save_after!="undefined"&&(l=typeof n.save_after=="function"?n.save_after:u=>{},delete n.save_after),typeof n.clear_before!="undefined"&&(c=typeof n.clear_before=="boolean"?n.clear_before:!1,delete n.clear_before),typeof n.spinner!="undefined"&&(d=n.spinner,delete n.spinner);const h=`msg::${n.dialog_id}-${n.msg_id}-${n.msg_type||""}`;if(i.isLoad(h)){o({msg:"Loading"});return}t("setLoad",h),c&&e("message/save",s.dialogMsgs.filter(({dialog_id:u})=>u!==n.dialog_id)),n.pagesize=25,t("call",{url:"dialog/msg/list",data:n,spinner:d,complete:u=>t("cancelLoad",h)}).then(u=>{a();const p=u.data;if($A.isJson(p.dialog)){const g=p.list.map(({id:_})=>_);e("message/save",s.dialogMsgs.filter(_=>_.dialog_id!=n.dialog_id||g.includes(_.id)||$A.dayjs(_.created_at).unix()>=p.time)),t("saveDialog",p.dialog)}$A.isArray(p.todo)&&(e("dialog/todo/save",s.dialogTodos.filter(g=>g.dialog_id!=n.dialog_id)),t("saveDialogTodo",p.todo)),$A.isJson(p.top)&&t("saveDialogMsgTop",p.top),t("saveDialogMsg",p.list),r(u),l()}).catch(u=>{console.warn(u),o(u)}).finally(u=>{if(n.prev_id){const p=s.dialogMsgs.find(({prev_id:g})=>g==n.prev_id);p&&(p.prev_id=0)}if(n.next_id){const p=s.dialogMsgs.find(({next_id:g})=>g==n.next_id);p&&(p.next_id=0)}})})},getDialogLatestMsgs({state:e,dispatch:s},t=[]){return new Promise(function(i,n){if(e.userId===0){n({msg:"Parameter error"});return}if(!$A.isArray(t)){n({msg:"Parameter is not array"});return}if(t.length===0){i();return}const r=t.slice(5),o=t.slice(0,5);s("call",{method:"post",url:"dialog/msg/latest",data:{dialogs:o.map(a=>{var l;return{id:a,latest_id:((l=e.dialogMsgs.sort((c,d)=>d.id-c.id).find(({dialog_id:c})=>c==a))==null?void 0:l.id)||0}}),take:e.dialogMsgKeep}}).then(({data:a})=>{s("saveDialogMsg",a.data),r.length>0?s("getDialogLatestMsgs",r).then(i).catch(n):i()}).catch(a=>{n(a)})})},dialogMsgRead({state:e,dispatch:s},t){if($A.isJson(t)){if(t.userid==e.userId||t.read_at)return;t.read_at=$A.daytz().format("YYYY-MM-DD HH:mm:ss"),e.readWaitData[t.id]=e.readWaitData[t.id]||0;const i=e.cacheDialogs.find(({id:n})=>n==t.dialog_id);if(i){let n=!1;if(t.id==i.unread_one&&(i.unread_one=0,n=!0),$A.isArray(i.mention_ids)){const r=i.mention_ids.findIndex(o=>o==t.id);r>-1&&(i.mention_ids.splice(r,1),n=!0)}n&&(s("saveDialog",i),e.readWaitData[t.id]=t.dialog_id)}}clearTimeout(e.readTimeout),e.readTimeout=setTimeout(i=>{if(e.readTimeout=null,e.userId===0){t&&(t.read_at=null);return}const n=Object.entries(e.readWaitData);if(n.length===0){t&&(t.read_at=null);return}const r=Object.fromEntries(n.slice(0,100));e.readWaitData=Object.fromEntries(n.slice(100)),s("call",{method:"post",url:"dialog/msg/read",data:{id:r}}).then(({data:o})=>{Object.entries(r).filter(([a,l])=>/^\d+$/.test(l)).forEach(([a,l])=>{e.dialogMsgs.filter(c=>c.dialog_id==l&&c.id>=a).forEach(c=>{c.read_at=$A.daytz().format("YYYY-MM-DD HH:mm:ss")})}),s("saveDialog",o)}).catch(o=>{Object.keys(r).forEach(a=>{const l=e.dialogMsgs.find(c=>c.id==a);l&&(l.read_at=null)}),e.readWaitData=Object.assign(e.readWaitData,r)}).finally(o=>{e.readLoadNum++})},50)},dialogMsgDot({state:e,dispatch:s},t){!$A.isJson(t)||!t.dot||(t.dot=0,s("call",{url:"dialog/msg/dot",data:{id:t.id}}).then(({data:i})=>{s("saveDialog",i)}))},dialogMsgMark({state:e,dispatch:s},t){return new Promise((i,n)=>{s("call",{url:"dialog/msg/mark",data:t}).then(r=>{typeof t.after_msg_id!="undefined"&&e.dialogMsgs.some(o=>{o.dialog_id==t.dialog_id&&o.id>=t.after_msg_id&&(o.read_at=$A.daytz().format("YYYY-MM-DD HH:mm:ss"))}),s("saveDialog",r.data),i(r)}).catch(r=>{n(r)})})},streamMsgSubscribe({state:e,dispatch:s},t){if(/^https?:\/\//i.test(t)||(t=$A.mainUrl(t.substring(1))),e.dialogSseList.find(n=>n.streamUrl==t))return;const i=new _n(t);i.subscribe(["append","replace","done"],(n,r)=>{switch(n){case"append":case"replace":const o=$A.jsonParse(r.data);s("streamMsgData",{type:n,id:r.lastEventId,text:o.content});break;case"done":const a=e.dialogSseList.findIndex(l=>i===l.sse);a>-1&&e.dialogSseList.splice(a,1),i.unsunscribe();break}}),e.dialogSseList.push({sse:i,streamUrl:t,time:$A.dayjs().unix()}),e.dialogSseList.length>10&&e.dialogSseList.shift().sse.close()},streamMsgData({state:e},s){$A.syncDispatch("streamMsgData",s),T.emit("streamMsgData",s)},saveTranslation({state:e},s){if(!$A.isJson(s))return;const t=e.cacheTranslations.find(i=>i.key==s.key&&i.language==s.language);if(t)t.content=s.content;else{const i=ve[s.language]||s.language;e.cacheTranslations.push(Object.assign(s,{label:i}))}$A.IDBSave("cacheTranslations",e.cacheTranslations.slice(-200))},removeTranslation({state:e},s){e.cacheTranslations=e.cacheTranslations.filter(t=>t.key!=s),$A.IDBSave("cacheTranslations",e.cacheTranslations.slice(-200))},setTranslationLanguage({state:e},s){e.cacheTranslationLanguage=s,$A.IDBSave("cacheTranslationLanguage",s)},setLoad({state:e,dispatch:s},t){if($A.isJson(t)){setTimeout(n=>{s("setLoad",t.key)},t.delay||0);return}const i=e.loads.find(n=>n.key==t);i?i.num++:e.loads.push({key:t,num:1})},cancelLoad({state:e},s){const t=e.loads.find(i=>i.key==s);t?t.num--:e.loads.push({key:s,num:-1})},showSpinner({state:e},s){const t=$A.randomString(6);e.floatSpinnerTimer.push({id:t,timer:setTimeout(i=>{e.floatSpinnerTimer=e.floatSpinnerTimer.filter(n=>n.id!==t),e.floatSpinnerLoad++},typeof s=="number"?s:0)})},hiddenSpinner({state:e,dispatch:s},t){if(typeof t=="number"){setTimeout(n=>{s("hiddenSpinner")},t);return}const i=e.floatSpinnerTimer.shift();i?clearTimeout(i.timer):e.floatSpinnerLoad--},previewImage({state:e},s){if($A.isJson(s)||(s={index:0,list:[s]}),s.list=s.list.map(t=>($A.isJson(t)?t.src=$A.thumbRestore(t.src):t=$A.thumbRestore(t),t)),typeof s.index=="string"){const t=$A.thumbRestore(s.index);s.index=Math.max(0,s.list.findIndex(i=>$A.isJson(i)?i.src==t:i==t))}e.previewImageIndex=s.index,e.previewImageList=s.list},audioPlay({state:e,dispatch:s},t){const i=document.getElementById("__audio_play_element__");if(i&&(i.pause(),i.src="",i.parentNode.removeChild(i)),!t||t===e.audioPlaying){e.audioPlaying=null;return}const n=document.createElement("audio");n.id=e.audioPlayId="__audio_play_element__",n.controls=!1,n.loop=!1,n.volume=1,n.src=e.audioPlaying=t,n.onended=r=>{s("audioStop",n.src)},document.body.appendChild(n),n.play().then(r=>{})},audioStop({state:e},s){const t=document.getElementById("__audio_play_element__");!t||(t.src===s||s===!0)&&(t.pause(),t.src="",t.parentNode.removeChild(t),e.audioPlaying=null)},websocketConnection({state:e,dispatch:s,commit:t}){if(clearTimeout(e.wsTimeout),e.ws&&(e.ws.close(),e.ws=null),e.userId===0)return;typeof window.wsInfo=="undefined"&&(window.wsInfo={msgCount:0,repeatCount:0,lastTime:0,lastData:null});let i=$A.mainUrl("ws");i=i.replace("https://","wss://"),i=i.replace("http://","ws://"),i+=`?action=web&token=${e.userToken}&language=${M}&platform=${$A.Platform}`;const n=$A.openLog,r=$A.randomString(16);e.wsRandom=r,e.ws=new WebSocket(i),e.ws.onopen=async o=>{n&&console.log("[WS] Open",o,$A.daytz().format("YYYY-MM-DD HH:mm:ss")),e.wsOpenNum++,!(window.systemInfo.debug==="yes"||e.systemConfig.e2e_message!=="open")&&s("websocketSend",{type:"encrypt",data:{type:"pgp",key:(await s("pgpGetLocalKey")).publicKeyB64}})},e.ws.onclose=async o=>{n&&console.log("[WS] Close",o,$A.daytz().format("YYYY-MM-DD HH:mm:ss")),e.ws=null,clearTimeout(e.wsTimeout),e.wsTimeout=setTimeout(()=>{r===e.wsRandom&&s("websocketConnection")},3e3)},e.ws.onerror=async o=>{n&&console.log("[WS] Error",o,$A.daytz().format("YYYY-MM-DD HH:mm:ss")),e.ws=null,clearTimeout(e.wsTimeout),e.wsTimeout=setTimeout(()=>{r===e.wsRandom&&s("websocketConnection")},3e3)},e.ws.onmessage=async o=>{if($A.inArray(e.routeName,["preload","404"])){n&&console.log("[WS] Preload",o);return}if($A.dayjs().unix()-window.wsInfo.lastTime<3&&window.wsInfo.lastData===o.data){console.log("[WS] Repeat",o,window.wsInfo.repeatCount),window.wsInfo.repeatCount++;return}window.wsInfo.msgCount++,window.wsInfo.lastTime=$A.dayjs().unix(),window.wsInfo.lastData=o.data,n&&console.log("[WS] Message",o);let a=$A.jsonParse(o.data);a.type==="encrypt"&&a.encrypted&&(a=await s("pgpDecryptApi",a.encrypted));const l=$A.formatMsgBasic(a),{type:c,msgId:d}=l;switch(c){case"open":$A.setSessionStorage("userWsFd",l.data.fd);break;case"receipt":typeof e.wsCall[d]=="function"&&e.wsCall[d](l.body,!0),delete e.wsCall[d];break;case"line":T.emit("userActive",{type:"line",data:l.data});break;case"msgStream":if($A.isSubElectron)return;s("streamMsgSubscribe",l.stream_url);break;case"operation":T.emit("aiOperationRequest",l.data);break;default:if(d&&s("websocketSend",{type:"receipt",msgId:d}).catch(h=>{}),T.emit("websocketMsg",l),$A.isSubElectron)return;switch(c){case"dialog":(function(h){const{mode:u,silence:p,data:g}=h,{dialog_id:_}=g;switch(u){case"delete":if(s("forgetDialogMsg",g),e.cacheDialogs.find(({id:C})=>C==_)){const C={id:_,last_msg:g.last_msg,last_at:g.last_msg?g.last_msg.created_at:$A.daytz().format("YYYY-MM-DD HH:mm:ss"),last_force:!0};g.update_read?s("call",{url:"dialog/msg/unread",data:{dialog_id:_}}).then(({data:N})=>{s("saveDialog",Object.assign(C,N))}).catch(()=>{}):s("saveDialog",C)}break;case"add":case"chat":const y=u==="add";if(!e.dialogMsgs.find(({id:C})=>C==g.id)&&(s("increaseTaskMsgNum",{id:g.dialog_id}),s("increaseMsgReplyNum",{id:g.reply_id}),y)){if(g.userid!==e.userId){const C=e.cacheDialogs.find(({id:N})=>N==_);if(C){const N={id:_,unread:C.unread+1,mention:C.mention,user_at:g.user_at,user_ms:g.user_ms};g.mention&&N.mention++,s("saveDialog",N)}}T.emit("dialogMsgPush",{silence:p,data:g})}const w=(C,N)=>{if(N>5||e.dialogMsgs.find(({id:O})=>O==C.id)){s("saveDialogMsg",C),y&&s("updateDialogLastMsg",C);return}setTimeout(()=>w(C,N+1),50)};w(g,0);break;case"update":case"readed":const b=(C,N)=>{if(e.dialogMsgs.find(({id:O})=>O==C.id)){s("saveDialogMsg",C),typeof C.todo!="undefined"&&s("getDialogTodo",_);return}N<=5&&setTimeout(O=>{b(C,++N)},500)};b(g,0);break;case"groupAdd":case"groupJoin":case"groupRestore":s("getDialogOne",g.id).catch(()=>{});break;case"groupUpdate":e.cacheDialogs.find(({id:C})=>C==g.id)&&s("saveDialog",g);break;case"groupExit":case"groupDelete":s("forgetDialog",g);break;case"updateTopMsg":s("saveDialog",{id:g.dialog_id,top_msg_id:g.top_msg_id,top_userid:g.top_userid}),s("getDialogMsgTop",_);break}})(l);break;case"project":(function(h){const{action:u,data:p}=h;switch(u){case"add":case"update":case"recovery":s("saveProject",p);break;case"detail":s("getProjectOne",p.id).catch(()=>{}),s("getTaskForProject",p.id).catch(()=>{});break;case"delete":case"archived":s("forgetProject",p);break;case"sort":s("getTaskForProject",p.id).catch(()=>{});break}})(l);break;case"projectColumn":(function(h){const{action:u,data:p}=h;switch(u){case"add":case"update":case"recovery":s("saveColumn",p);break;case"delete":s("forgetColumn",p);break}})(l);break;case"projectTask":(function(h){const{action:u,data:p}=h;switch(u){case"add":case"restore":s("addTaskSuccess",p);break;case"update":case"archived":case"recovery":s("saveTask",p);break;case"dialog":s("saveTask",p),s("getDialogOne",p.dialog_id).catch(()=>{});break;case"upload":s("getTaskFiles",p.task_id);break;case"filedelete":s("forgetTaskFile",p.id);break;case"delete":s("forgetTask",p);break;case"relation":T.emit("taskRelationUpdate",p.id);break}})(l);break;case"file":(function(h){const{action:u,data:p}=h;switch(u){case"add":case"update":s("saveFile",p);break;case"delete":s("forgetFile",p);break;case"compress":s("packProgress",p);break}})(l);break;case"report":(function({action:h}){h=="unreadUpdate"&&s("getReportUnread",1e3)})(l);break;case"appBadge":t("appBadges/set",l.data||{});break}break}}},websocketSend({state:e},s){return new Promise((t,i)=>{var l;if(!$A.isJson(s)){i();return}const{type:n,data:r,callback:o}=s;let a;if(!e.ws){typeof o=="function"&&o(null,!1),i();return}typeof o=="function"&&(a=n+"_"+$A.randomString(3),e.wsCall[a]=o);try{(l=e.ws)==null||l.send(JSON.stringify({type:n,msgId:a,data:r})),t()}catch(c){typeof o=="function"&&o(null,!1),i(c)}})},websocketPath({state:e,dispatch:s},t){clearTimeout(e.wsPathTimeout),e.wsPathValue=t,e.wsPathTimeout=setTimeout(()=>{e.wsPathValue==t&&s("websocketSend",{type:"path",data:{path:t}}).catch(i=>{})},1e3)},websocketClose({state:e}){e.ws&&(e.ws.close(),e.ws=null)},pgpGenerate({state:e}){return new Promise(async s=>{const t=await ar({type:"ecc",curve:"curve25519",passphrase:e.clientId,userIDs:[{name:"doo",email:"admin@admin.com"}]});t.publicKeyB64=Ph(t.publicKey.replace(/\s*-----(BEGIN|END) PGP PUBLIC KEY BLOCK-----\s*/g,"")),s(t)})},pgpGetLocalKey({state:e,dispatch:s}){return new Promise(async t=>{if(e.localKeyPair.privateKey)return t(e.localKeyPair);for(;e.localKeyLock===!0;)await new Promise(i=>setTimeout(i,100));if(e.localKeyPair.privateKey)return t(e.localKeyPair);e.localKeyLock=!0,e.localKeyPair=await s("pgpGenerate"),e.localKeyLock=!1,t(e.localKeyPair)})},pgpEncrypt({state:e,dispatch:s},t){return new Promise(async i=>{$A.isJson(t)||(t={message:t});const n=t.message||t.text,r=t.publicKey||t.key||(await s("pgpGetLocalKey")).publicKey,o=await lr({armoredKey:r}),a=await cr({message:await ur({text:n}),encryptionKeys:o});i(a)})},pgpDecrypt({state:e,dispatch:s},t){return new Promise(async i=>{$A.isJson(t)||(t={encrypted:t});const n=t.encrypted||t.text,r=t.privateKey||t.key||(await s("pgpGetLocalKey")).privateKey,o=await dr({privateKey:await hr({armoredKey:r}),passphrase:t.passphrase||e.clientId}),{data:a}=await pr({message:await fr({armoredMessage:n}),decryptionKeys:o});i(a)})},pgpEncryptApi({state:e,dispatch:s},t){return new Promise(i=>{t=$A.jsonStringify(t),s("pgpEncrypt",{message:t,publicKey:e.apiKeyData.key}).then(n=>{i(n.replace(/\s*-----(BEGIN|END) PGP MESSAGE-----\s*/g,""))})})},pgpDecryptApi({state:e,dispatch:s},t){return new Promise(i=>{s("pgpDecrypt",{encrypted:`-----BEGIN PGP MESSAGE-----
`+t+`
-----END PGP MESSAGE-----`}).then(n=>{i($A.jsonParse(n))})})},closeMeetingWindow({state:e},s){e.meetingWindow={show:!1,type:s,meetingid:0}},showMeetingWindow({state:e},s){e.meetingWindow=Object.assign(s,{show:s.type!=="direct"})},async openMicroApp({state:e},s){if(!s||!$A.isJson(s)||!s.id||!s.name||!s.url)return;let t=s.id;if(e.microAppsIds.includes(t)||(t=e.microAppsIds.find(o=>typeof o=="string"&&o.endsWith(t))||null),!t){$A.modalWarning(`\u5E94\u7528\u300C${s.id}\u300D\u672A\u5B89\u88C5`);return}if(s.skip_base_menu!==!0){const o=e.microAppsMenus.find(a=>(a==null?void 0:a.id)===t)||null;$A.isJson(o)&&(s=Object.assign({},o,s))}const i=new URL($A.mainUrl()),n=s.url.replace(/^\/+/,"").replace(/^\:(\d+)/ig,(o,a)=>i.protocol+"//"+i.hostname+":"+a).replace(/\{window[._]location[._](\w+)}/ig,(o,a)=>{if(a in i)return i[a]}).replace(/\{system_base_url}/g,i.origin),r={id:t,key:typeof s.key=="string"?s.key:"",name:s.name,title:s.label||s.title||s.name,url:$A.mainUrl(n),type:s.type||s.url_type,background:s.background||null,capsule:$A.isJson(s.capsule)?s.capsule:{},transparent:typeof s.transparent=="boolean"?s.transparent:!1,disable_scope_css:typeof s.disable_scope_css=="boolean"?s.disable_scope_css:!1,auto_dark_theme:typeof s.auto_dark_theme=="boolean"?s.auto_dark_theme:!0,keep_alive:typeof s.keep_alive=="boolean"?s.keep_alive:!0,immersive:typeof s.immersive=="boolean"?s.immersive:!1,badge_clear_on_open:typeof s.badge_clear_on_open=="boolean"?s.badge_clear_on_open:!1,props:$A.isJson(s.props)?s.props:{}};r.url=r.url.replace(/\{user_id}/g,e.userId).replace(/\{user_nickname}/g,encodeURIComponent(e.userInfo.nickname)).replace(/\{user_email}/g,encodeURIComponent(e.userInfo.email)).replace(/\{user_avatar}/g,encodeURIComponent(e.userInfo.userimg)).replace(/\{user_token}/g,encodeURIComponent(e.userToken)).replace(/\{system_theme}/g,e.themeName).replace(/\{system_lang}/g,M),T.emit("observeMicroApp:open",r)},isMicroAppInstalled({state:e},s){return new Promise(t=>{if(!s){t(!1);return}t(!!e.microAppsIds.includes(s))})},async updateMicroAppsStatus({commit:e,state:s,dispatch:t}){const{data:{code:i,data:n}}=await ot.get($A.mainUrl("appstore/api/v1/internal/installed"),{headers:{Token:s.userToken,Language:M}});if(i===200){let r=Array.isArray(n)?n:[];try{const{data:o}=await t("call",{url:"system/microapp_menu?type=get"});$A.isArray(o)&&o.length>0&&(o.forEach(a=>{a.menu_items.forEach(l=>{l.icon=l.icon||$A.mainUrl("images/application/appstore-default.svg")})}),r=r.concat(o))}catch{}e("microApps/data",r||[]);try{const{data:o}=await t("call",{url:"apps/badge/list"});e("appBadges/hydrateMap",o||{})}catch{}}},async toggleMcpServer({state:e,commit:s}){e.mcpServerStatus.running==="running"?s("mcp/server/status",{running:"stopped"}):s("mcp/server/status",{running:"running"})},applyAiSuggestion({},e){return this.dispatch("call",{url:"project/task/ai_apply",data:e})},dismissAiSuggestion({},e){return this.dispatch("call",{url:"project/task/ai_dismiss",data:e})}},ig={"route/loading":function(e,s){s?e.routeLoading++:e.routeLoading--},"user/push":function(e,s){e.cacheUserBasic.push(s),$A.IDBSave("cacheUserBasic",e.cacheUserBasic,600)},"user/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.cacheUserBasic.splice(s,i):e.cacheUserBasic.splice(s,i,t),$A.IDBSave("cacheUserBasic",e.cacheUserBasic,600)},"user/save":function(e,s){e.cacheUserBasic=s,$A.IDBSave("cacheUserBasic",e.cacheUserBasic,600)},"common/dialog/count/save":function(e,{userid:s,total:t,updatedAt:i=Date.now()}){if(!s)return;const n=String(s),r=Object.assign({},e.dialogCommonCountCache),o=Number(t);r[n]={total:Number.isNaN(o)?0:o,updated_at:i},e.dialogCommonCountCache=r,$A.IDBSave("dialogCommonCountCache",e.dialogCommonCountCache,600)},"common/dialog/count/clear":function(e,s){if(typeof s=="number"||typeof s=="string"){const t=Object.assign({},e.dialogCommonCountCache);delete t[String(s)],e.dialogCommonCountCache=t}else e.dialogCommonCountCache={};$A.IDBSave("dialogCommonCountCache",e.dialogCommonCountCache,600)},"message/push":function(e,s){e.dialogMsgs.push(s),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)},"message/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.dialogMsgs.splice(s,i):e.dialogMsgs.splice(s,i,t),$A.IDBSave("dialogMsgs",e.dialogMsgs,600)},"message/save":function(e,s){e.dialogMsgs=s,$A.IDBSave("dialogMsgs",e.dialogMsgs,600)},"task/push":function(e,s){e.cacheTasks.push(s),$A.IDBSave("cacheTasks",e.cacheTasks,600)},"task/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.cacheTasks.splice(s,i):e.cacheTasks.splice(s,i,t),$A.IDBSave("cacheTasks",e.cacheTasks,600)},"task/content/push":function(e,s){e.taskContents.push(s)},"task/content/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.taskContents.splice(s,i):e.taskContents.splice(s,i,t)},"task/related/save":function(e,{taskId:s,list:t,updatedAt:i=Date.now()}){const n=Object.assign({},e.taskRelatedCache);n[s]={list:t,updated_at:i},e.taskRelatedCache=n,$A.IDBSave("taskRelatedCache",e.taskRelatedCache,600)},"task/related/clear":function(e,s){if(typeof s=="number"||typeof s=="string"){const t=Object.assign({},e.taskRelatedCache);delete t[s],e.taskRelatedCache=t}else e.taskRelatedCache={};$A.IDBSave("taskRelatedCache",e.taskRelatedCache,600)},"dialog/push":function(e,s){e.cacheDialogs.push(s),$A.IDBSave("cacheDialogs",e.cacheDialogs,600)},"dialog/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.cacheDialogs.splice(s,i):e.cacheDialogs.splice(s,i,t),$A.IDBSave("cacheDialogs",e.cacheDialogs,600)},"dialog/in/push":function(e,s){e.dialogIns.push(s)},"dialog/in/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.dialogIns.splice(s,i):e.dialogIns.splice(s,i,t)},"dialog/history/push":function(e,s){e.dialogHistory.push(s)},"dialog/history/save":function(e,s){e.dialogHistory=s},"dialog/msg/top/push":function(e,s){e.dialogMsgTops.push(s)},"dialog/msg/top/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.dialogMsgTops.splice(s,i):e.dialogMsgTops.splice(s,i,t)},"dialog/msg/top/save":function(e,s){e.dialogMsgTops=s},"dialog/todo/push":function(e,s){e.dialogTodos.push(s)},"dialog/todo/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.dialogTodos.splice(s,i):e.dialogTodos.splice(s,i,t)},"dialog/todo/save":function(e,s){e.dialogTodos=s},"project/push":function(e,s){e.cacheProjects.push(s),$A.IDBSave("cacheProjects",e.cacheProjects)},"project/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.cacheProjects.splice(s,i):e.cacheProjects.splice(s,i,t),$A.IDBSave("cacheProjects",e.cacheProjects)},"project/column/push":function(e,s){e.cacheColumns.push(s),$A.IDBSave("cacheColumns",e.cacheColumns)},"project/column/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.cacheColumns.splice(s,i):e.cacheColumns.splice(s,i,t),$A.IDBSave("cacheColumns",e.cacheColumns)},"project/column/save":function(e,s){e.cacheColumns=s,$A.IDBSave("cacheColumns",e.cacheColumns)},"project/parameter/push":function(e,s){e.cacheProjectParameter.push(s),$A.IDBSave("cacheProjectParameter",e.cacheProjectParameter)},"project/parameter/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.cacheProjectParameter.splice(s,i):e.cacheProjectParameter.splice(s,i,t),$A.IDBSave("cacheProjectParameter",e.cacheProjectParameter)},"department/owner/ids/save":function(e,s){e.cacheDepartmentOwnerIds=$A.normalizeIntArray(s),$A.IDBSet("cacheDepartmentOwnerIds",e.cacheDepartmentOwnerIds).catch(()=>{})},"department/owner/enabled/save":function(e,s){e.departmentOwnerProjectViewEnabled=s===!0,$A.IDBSet("departmentOwnerProjectViewEnabled",e.departmentOwnerProjectViewEnabled).catch(()=>{})},"file/push":function(e,s){e.fileLists.push(s),$A.IDBSave("fileLists",e.fileLists,600)},"file/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.fileLists.splice(s,i):e.fileLists.splice(s,i,t),$A.IDBSave("fileLists",e.fileLists,600)},"file/save":function(e,s){e.fileLists=s,$A.IDBSave("fileLists",e.fileLists,600)},"draft/set":function(e,{id:s,content:t}){const i=e.dialogDrafts.findIndex(r=>r.id===s),n={id:s,content:$A.filterInvalidLine(t),time:new Date().getTime()};i===-1&&!n.content||(e.dialogId==s?n.tag=i!==-1?e.dialogDrafts[i].tag:!1:n.tag=!!n.content,i!==-1?e.dialogDrafts.splice(i,1,n):e.dialogDrafts.push(n),$A.IDBSave("dialogDrafts",e.dialogDrafts))},"draft/tag":function(e,s){if(e.dialogId==s)return;const t=e.dialogDrafts.findIndex(i=>i.id===s);t!==-1&&(e.dialogDrafts[t].tag=!!e.dialogDrafts[t].content,$A.IDBSave("dialogDrafts",e.dialogDrafts))},"quote/set":function(e,{id:s,type:t,content:i}){const n=e.dialogQuotes.findIndex(o=>o.id===s),r={id:s,type:t,content:i,time:new Date().getTime()};n===-1&&!r.content||(n!==-1?e.dialogQuotes.splice(n,1,r):e.dialogQuotes.push(r),$A.IDBSave("dialogQuotes",e.dialogQuotes))},"quote/remove":function(e,s){const t=e.dialogQuotes.findIndex(i=>i.id===s);t!==-1&&(e.dialogQuotes.splice(t,1),$A.IDBSave("dialogQuotes",e.dialogQuotes))},"withdraw/set":function(e,s){const t=e.dialogWithdraws.findIndex(i=>i.id===s.id);t!==-1?e.dialogWithdraws.splice(t,1,s):e.dialogWithdraws.push(s),$A.IDBSave("dialogWithdraws",e.dialogWithdraws)},"withdraw/remove":function(e,s){const t=e.dialogWithdraws.findIndex(i=>i.id===s);t!==-1&&(e.dialogWithdraws.splice(t,1),$A.IDBSave("dialogWithdraws",e.dialogWithdraws))},"longpress/set":function(e,{type:s,data:t,element:i}){e.longpressData={type:s,data:t,element:i}},"longpress/clear":function(e){e.longpressData={type:"",data:null,element:null}},"menu/operation":function(e,s){e.menuOperation=s||{}},"microApps/push":function(e,s){e.microApps.push(s)},"microApps/update":function(e,{name:s,data:t}){const i=e.microApps.find(n=>n.name==s);i&&Object.assign(i,t)},"microApps/keepAlive":function(e,s){const t=e.microApps.filter(i=>i.keep_alive);t.length<=s||t.sort((i,n)=>i.lastOpenAt-n.lastOpenAt).slice(0,t.length-s).forEach(i=>{i.keepAliveBackup=!0,i.keep_alive=!1})},"microApps/splice":function(e,{index:s,data:t,count:i=1}){typeof t=="undefined"?e.microApps.splice(s,i):e.microApps.splice(s,i,t)},"microApps/data":function(e,s){e.userIsAdmin&&s.unshift({id:"appstore",version:"1.0.0",menu_items:[{location:"application/admin",label:$A.L("\u5E94\u7528\u5546\u5E97"),icon:$A.mainUrl("images/application/appstore.svg"),url:"appstore/internal?language={system_lang}&theme={system_theme}",disable_scope_css:!0,auto_dark_theme:!1,capsule:{visible:!0,top:18,right:18}}]});const t=e.microAppsInstalled.filter(n=>!s.some(r=>r.id===n.id)).map(n=>({type:"uninstall",id:n.id}));e.microAppsInstalled.forEach(n=>{const r=s.find(o=>o.id===n.id);r&&(n.version!==r.version?t.push({type:"update",id:n.id}):n.install_at!==r.install_at&&t.push({type:"reinstall",id:n.id}))}),e.microAppsInstalled=s,T.emit("observeMicroApp:updatedOrUninstalled",t);const i=[];s.forEach(n=>{Array.isArray(n.menu_items)&&n.menu_items.length>0&&i.push(...n.menu_items.map(r=>Object.assign({},r,{id:n.id})))}),i.forEach(n=>{let r=n.id;i.filter(o=>o.id===n.id).length>1&&(r+="_"+`${n.url}`.replace(/^https?:\/\/.*?\//,"").replace(/[^a-zA-Z0-9]/g,"_")),i.find(o=>o.name===r)&&(r+="_"+$A.randomString(8)),n.name=r}),$A.IDBSave("microAppsIds",e.microAppsIds=s.map(n=>n.id)),$A.IDBSave("microAppsMenus",e.microAppsMenus=i)},"mcp/server/status":function(e,s){$A.IDBSave("mcpServerStatus",e.mcpServerStatus=s)}};const ng=Object.freeze({count:0,dot:!1});var rg={namespaced:!0,state:()=>({map:{}}),mutations:{set(e,{appid:s,menu_key:t,count:i,dot:n}){if(!s)return;const r=t||"";e.map[s]||E.set(e.map,s,{}),E.set(e.map[s],r,{count:Number(i)||0,dot:!!n})},hydrateMap(e,s){const t={};s&&typeof s=="object"&&Object.keys(s).forEach(i=>{const n=s[i];!i||!n||typeof n!="object"||Object.keys(n).forEach(r=>{const o=n[r]||{},a=Number(o.count)||0,l=!!o.dot;(a>0||l)&&(t[i]||(t[i]={}),t[i][r||""]={count:a,dot:l})})}),e.map=t},clearMenu(e,{appid:s,menu_key:t}){const i=t||"";s&&e.map[s]&&E.delete(e.map[s],i)},clearApp(e,s){s&&e.map[s]&&E.delete(e.map,s)}},getters:{badge:e=>(s,t)=>e.map[s]&&e.map[s][t||""]||ng,totalCount:e=>{let s=0;return Object.keys(e.map).forEach(t=>{Object.keys(e.map[t]).forEach(i=>{s+=Number(e.map[t][i].count)||0})}),s},anyDot:e=>Object.keys(e.map).some(s=>Object.keys(e.map[s]).some(t=>!!e.map[s][t].dot)),applicationCount:(e,s,t)=>(Number(t.reportUnreadNumber)||0)+s.totalCount,applicationDot:(e,s)=>s.anyDot}};E.use(Nt);var ge=new Nt.Store({state:eg,getters:tg,mutations:ig,actions:sg,modules:{appBadges:rg}}),og={computed:{...z(["windowWidth","windowHeight","windowActive","windowScrollY","windowTouch","windowLandscape","windowPortrait","userId","userToken","routeName","routePath"])}};var ag=function(){var e=this,s=e.$createElement;return e._self._c,e._e()},lg=[];const cg={name:"PageTitle",props:{title:{type:[String,Number],default:""}},data(){return{pagePath:""}},activated(){this.updateTitle()},watch:{title:{handler(){this.initTitle()},immediate:!0}},methods:{initTitle(){this.pagePath=this.$route.path,this.updateTitle()},updateTitle(){if(this.pagePath=="")return;let e=this.title,{title:s}=document;e!==s&&this.pagePath===this.$route.path&&this.setPageTile(e)},setPageTile(e){document.title=e}}},Fi={};var ug=A(cg,ag,lg,!1,dg,null,null,null);function dg(e){for(let s in Fi)this[s]=Fi[s]}var hg=function(){return ug.exports}(),pg=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.visible?t("ETooltip",{attrs:{disabled:e.$isEEUIApp||e.windowTouch||e.content=="",content:e.content}},[e.type==="svg"?t("svg",{staticClass:"common-loading",attrs:{viewBox:"25 25 50 50"}},[t("circle",{staticClass:"common-path",attrs:{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"5","stroke-miterlimit":"10"}})]):t("div",{staticClass:"common-pureing"})]):e._e()},fg=[];const mg={name:"Loading",props:{type:{type:String,default:"svg"},content:{type:[String,Number],default:""},delay:{type:Number,default:0}},data(){return{visible:this.delay===0,timer:null}},mounted(){this.delay>0&&(this.timer=setTimeout(e=>{this.visible=!0},this.delay))},beforeDestroy(){this.timer&&clearTimeout(this.timer)}},Hi={};var gg=A(mg,pg,fg,!1,_g,null,null,null);function _g(e){for(let s in Hi)this[s]=Hi[s]}var vg=function(){return gg.exports}(),yg=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("ETooltip",{attrs:{content:e.tipText,placement:e.placement,effect:e.tooltipTheme,delay:e.delay,disabled:e.$isEEUIApp||e.windowTouch||!e.showTooltip||e.disabled,"max-width":e.tooltipMaxWidth,transfer:""}},[t("span",{ref:"content",staticClass:"common-auto-tip",on:{mouseenter:e.handleTooltipIn,click:e.onClick}},[e.existSlot?[e._t("default")]:[e._v(e._s(e.content))]],2)])},wg=[];const $g={name:"AutoTip",props:{content:{type:[String,Number],default:""},placement:{default:"bottom"},tooltipTheme:{default:"dark"},tooltipMaxWidth:{type:[String,Number],default:300},delay:{type:Number,default:100},disabled:{type:Boolean,default:!1}},data(){return{showTooltip:!1,tooltipContent:""}},computed:{tipText(){const{content:e,tooltipContent:s}=this;return e||s||""},existSlot(){return!(typeof this.$slots.default=="undefined"||this.$slots.default.length<1)}},methods:{handleTooltipIn(){const e=this.$refs.content;if(!e)return;let s=document.createRange();s.setStart(e,0),s.setEnd(e,e.childNodes.length||0);const t=s.getBoundingClientRect().width;if(this.showTooltip=Math.floor(t)>Math.floor(e.offsetWidth),this.showTooltip&&this.existSlot){const i=this.$slots.default.map(n=>n.text?n.text:n.elm.innerText?n.elm.innerText:"");this.tooltipContent=i.join("")}s=null},onClick(e){this.$emit("on-click",e)}}},Wi={};var kg=A($g,yg,wg,!1,bg,null,null,null);function bg(e){for(let s in Wi)this[s]=Wi[s]}var Ag=function(){return kg.exports}(),Cg=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"common-tag-input",class:{focus:e.isFocus},on:{paste:function(i){return e.pasteText(i)},click:e.focus}},[t("Draggable",{attrs:{list:e.disSource,animation:150,tag:"ul",draggable:".column-item"}},e._l(e.disSource,function(i,n){return t("div",{key:i,staticClass:"tags-item column-item"},[t("span",{staticClass:"tags-content",on:{click:function(r){return r.stopPropagation(),e.edit(e.disSource,n)}}},[e._v(e._s(i))]),t("span",{staticClass:"tags-del",on:{click:function(r){return r.stopPropagation(),e.delTag(n)}}},[e._v("\xD7")])])}),0),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],ref:"myTextarea",staticClass:"tags-input",style:{minWidth:e.minWidth+"px"},attrs:{placeholder:e.tis||e.placeholderText,enterkeyhint:e.enterkeyhint,disabled:e.disabled,readonly:e.readonly},domProps:{value:e.content},on:{keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.downEnter(i)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"delete",[8,46],i.key,["Backspace","Delete","Del"])?null:e.onBackspace(i)}],keyup:e.onKeyup,focus:e.onFocus,blur:e.onBlur,input:function(i){i.target.composing||(e.content=i.target.value)}}}),e._v(" "),e.showPlaceholder||e.tis!==""?t("span",{ref:"myPlaceholder",staticClass:"tags-placeholder"},[e._v(e._s(e.tis||e.placeholderText))]):e._e()],1)},Sg=[];const xg={name:"TagInput",components:{Draggable:wr},props:{value:{default:""},cut:{default:","},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},placeholder:{default:""},max:{default:0},enterkeyhint:{type:String,default:""}},data(){return{minWidth:80,tis:"",tisTimeout:null,showPlaceholder:!0,content:"",disSource:this.parseValue(this.value),isFocus:!1,editShow:!1,editData:{index:0,disSource:[],name:""},addRule:{name:[{required:!0,message:this.$L("\u8BF7\u586B\u5199\u540D\u79F0\uFF01"),trigger:"change"}]}}},mounted(){this.wayMinWidth()},watch:{placeholder(){this.wayMinWidth()},value(e){this.disSource=this.parseValue(e)},disSource(e){this.$emit("input",e.join(this.joinChar())),this.$emit("on-change")}},computed:{placeholderText(){return this.disSource.length>0?"":this.placeholder}},methods:{normalizedCuts(){return(Array.isArray(this.cut)?this.cut:[this.cut]).filter(s=>typeof s=="string"&&s.length>0)},cutPattern(){const e=this.normalizedCuts();if(e.length===0)return null;const s=e.map(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return new RegExp(s.join("|"),"g")},joinChar(){return this.normalizedCuts()[0]||","},parseValue(e){const s=[];return typeof e!="string"||e===""||e.split(this.joinChar()).forEach(t=>{const i=t.trim();i&&s.indexOf(i)===-1&&s.push(i)}),s},splitByCuts(e){const s=this.cutPattern();return s?e.split(s):[e]},showTis(e){this.tis=e,clearTimeout(this.tisTimeout),this.tisTimeout=setTimeout(()=>{this.tis=""},2e3)},edit(e,s){this.editData.disSource=e,this.editData.index=s,this.editData.name=e[s]+"",$A.modalInput({title:"\u7F16\u8F91",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",okText:"\u786E\u5B9A",value:e[s]+"",onOk:t=>{const i=(t||"").trim();if(!i)return"\u8BF7\u8F93\u5165\u540D\u79F0";const n=this.disSource.indexOf(i);return n!==-1&&n!==this.editData.index?"\u8BE5\u6807\u7B7E\u5DF2\u5B58\u5728":(this.editData.name=i,this.editData.disSource[this.editData.index]=i,this.$set(this.disSource,this.editData.index,i),!1)}})},focus(e){const s=this.$refs.myTextarea;s.focus(e);const{cursor:t}=e||{};if(t){const i=s.value.length;switch(t){case"start":s.setSelectionRange(0,0);break;case"end":s.setSelectionRange(i,i);break;default:s.setSelectionRange(0,i)}}},wayMinWidth(){this.showPlaceholder=!0,this.$nextTick(()=>{this.$refs.myPlaceholder&&(this.minWidth=Math.max(this.minWidth,this.$refs.myPlaceholder.offsetWidth)),setTimeout(()=>{try{this.minWidth=Math.max(this.minWidth,this.$refs.myPlaceholder.offsetWidth),this.showPlaceholder=!1}catch{}$A(this.$refs.myPlaceholder).is(":visible")||this.wayMinWidth()},500)})},pasteText(e){e.preventDefault();let s=(e.clipboardData||window.clipboardData).getData("text");if(!!s)for(const t of this.splitByCuts(s)){const i=t.trim();if(!!i&&this.addTag(!1,i)===!1)break}},downEnter(e){e.isComposing||e.key==="Process"||e.keyCode===229||(e.preventDefault(),this.addTag(e,this.content),this.$nextTick(()=>{this.$emit("on-enter",e)}))},onBackspace(e){e.isComposing||e.key==="Process"||e.keyCode===229||this.delTag(!1)},onFocus(e){this.isFocus=!0,this.$emit("on-focus",e)},onBlur(e){this.isFocus=!1,this.addTag(!1,this.content),this.$emit("on-blur",e)},onKeyup(e){e.keyCode!==13&&this.addTag(e,this.content),this.$emit("on-keyup",e)},addTag(e,s){const t=e===!1||e.keyCode===13;let i;if(t)i=s.trim();else{if(s==="")return!0;let n=null;for(const r of this.normalizedCuts())if(r.length<=s.length&&s.substring(s.length-r.length)===r){n=r;break}if(n===null)return!0;i=s.substring(0,s.length-n.length).trim()}return i===""?(this.content="",!0):this.max>0&&this.disSource.length>=this.max?(this.content="",this.showTis(this.$L("\u6700\u591A\u53EA\u80FD\u6DFB\u52A0(*)\u4E2A",this.max)),!1):this.disSource.indexOf(i)!==-1?(this.content="",this.showTis(this.$L("\u8BE5\u6807\u7B7E\u5DF2\u5B58\u5728")),!0):(this.disSource.push(i),this.content="",!0)},delTag(e){if(e===!1){if(this.content!=="")return;e=this.disSource.length-1}this.disSource.splice(e,1),this.focus()}}},Vi={};var Tg=A(xg,Cg,Sg,!1,Ig,null,null,null);function Ig(e){for(let s in Vi)this[s]=Vi[s]}var Dg=function(){return Tg.exports}(),Eg=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"td-action",style:e.tdStyle,attrs:{"data-width":e.width,"data-height":e.height}},[t("div",{directives:[{name:"resize",rawName:"v-resize",value:e.onResize,expression:"onResize"}],ref:"action",staticClass:"td-action-container",class:{"td-action-menu":e.menu.length>0},on:{mouseenter:e.handleIn}},[e._t("default"),e._l(e.menu,function(i,n){return i.hidden!==!0?t("ETooltip",{key:n,attrs:{placement:"top",disabled:e.$isEEUIApp||e.windowTouch||!i.title,content:i.title,enterable:!1,"open-delay":600}},[i.children&&i.children.length>0?t("EDropdown",{staticClass:"menu-dropdown",attrs:{size:"medium",trigger:"click"},on:{command:e.onClick}},[i.label?t("a",{style:i.style||{},attrs:{href:i.href||"javascript:void(0)",target:i.target||"_self"}},[e._v(e._s(i.label))]):e.isAliIcon(i.icon)?t("i",{staticClass:"taskfont menu-icon",style:i.style||{},domProps:{innerHTML:e._s(i.icon)}}):t("Icon",{staticClass:"menu-icon",style:i.style||{},attrs:{type:i.icon}}),t("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(i.children,function(r,o){return r.hidden!==!0?t("EDropdownItem",{key:o,style:r.style||{},attrs:{command:r.action,disabled:!!r.disabled,divided:!!r.divided}},[t("div",[e._v(e._s(r.title))])]):e._e()}),1)],1):i.label?t("a",{style:i.style||{},attrs:{href:i.href||"javascript:void(0)",target:i.target||"_self"},on:{click:function(r){return e.onClick(i.action)}}},[e._v(e._s(i.label))]):e.isAliIcon(i.icon)?t("i",{staticClass:"taskfont menu-icon",style:i.style||{},domProps:{innerHTML:e._s(i.icon)},on:{click:function(r){return e.onClick(i.action)}}}):t("Icon",{staticClass:"menu-icon",style:i.style||{},attrs:{type:i.icon},on:{click:function(r){return e.onClick(i.action)}}})],1):e._e()})],2)])},Lg=[];E.use($r);const Mg={name:"TableAction",props:{column:{type:Object,default:()=>({})},autoWidth:{type:Boolean,default:!0},minWidth:{type:Number,default:80},align:{type:String,default:""},menu:{type:Array,default:()=>[]}},data(){return{width:0,height:0}},mounted(){this.onUpdate()},activated(){this.onUpdate()},beforeUpdate(){this.onUpdate()},computed:{tdStyle(){const e={},{align:s}=this;switch(s.toLowerCase()){case"left":e.justifyContent="flex-start";break;case"center":e.justifyContent="center";break;case"right":e.justifyContent="flex-end";break}return e}},methods:{isAliIcon(e){return $A.leftExists(e,"&#")},handleIn(){var e;((e=this.$refs.action)==null?void 0:e.offsetWidth)!=this.width&&this.onUpdate()},onUpdate(){this.onResize({width:this.$refs.action.offsetWidth,height:this.$refs.action.offsetHeight})},onResize({width:e,height:s}){if(!this.autoWidth)return;$A(".ivu-table-column-"+this.column.__id).each((i,n)=>{let r=$A(n).find(".td-action-container");r.length>0&&(e=Math.max(e,r[0].offsetWidth),s=Math.max(s,r[0].offsetHeight))}),this.width=e,this.height=s;let t=Math.max(this.minWidth,this.width+26);this.column.minWidth&&(t=Math.max(this.column.minWidth,t)),this.column.maxWidth&&(t=Math.min(this.column.maxWidth,t)),t!=this.column.width&&this.$nextTick(()=>{this.$set(this.column,"width",t)})},onClick(e){this.$emit("action",e)}}},Yi={};var Pg=A(Mg,Eg,Lg,!1,jg,null,null,null);function jg(e){for(let s in Yi)this[s]=Yi[s]}var Rg=function(){return Pg.exports}(),Og=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"quick-edit",class:[e.alwaysIcon?"quick-always":""]},[e.isEdit?t("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.onClickOut,expression:"onClickOut"}],staticClass:"quick-input"},[e.isTag?t("TagInput",{ref:"input",attrs:{disabled:e.isLoad,enterkeyhint:"done"},on:{"on-keydown":e.onKeydown,"on-blur":e.onBlur},model:{value:e.content,callback:function(i){e.content=i},expression:"content"}}):t("Input",{ref:"input",attrs:{disabled:e.isLoad,parser:e.parser,enterkeyhint:"done"},on:{"on-keydown":e.onKeydown,"on-blur":e.onBlur},model:{value:e.content,callback:function(i){e.content=i},expression:"content"}}),e.isLoad?t("div",{staticClass:"quick-loading"},[t("Loading")],1):e._e()],1):[t("div",{staticClass:"quick-text",attrs:{title:e.attrTitle}},[e._t("default")],2),e.disabled?e._e():t("Icon",{staticClass:"quick-icon",attrs:{type:"ios-create-outline"},on:{click:function(i){return i.stopPropagation(),e.onEdit.apply(null,arguments)}}})]],2)},zg=[];const Ug={name:"QuickEdit",directives:{clickoutside:dn},props:{value:{},autoEdit:{},isTag:{type:Boolean,default:!1},alwaysIcon:{type:Boolean,default:!1},clickOutSide:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},parser:{type:Function},attrTitle:{type:String,default:""}},data(){return{isLoad:!1,isEdit:!1,content:""}},mounted(){this.autoEdit===!0&&this.onEdit()},watch:{autoEdit(e){e===!0&&setTimeout(this.onEdit,0)}},methods:{onEditChange(e){this.isEdit=e,this.$emit("on-edit-change",e)},onEdit(){this.content=this.value,this.onEditChange(!0),this.$nextTick(()=>{this.$refs.input.focus({cursor:"all"})})},onKeydown(e){e.keyCode===13?this.onEnter():e.keyCode===27&&(e.preventDefault(),e.stopPropagation(),this.isEdit=!1,this.isLoad=!1)},onEnter(){if(this.content==this.value){this.onEditChange(!1);return}this.isLoad||(this.isLoad=!0,this.$emit("input",this.content),this.$emit("on-update",this.content,()=>{this.onEditChange(!1),this.isLoad=!1}))},onClickOut(){!this.clickOutSide||this.onEnter()},onBlur(){this.clickOutSide||!this.isEdit||this.onEnter()}}},qi={};var Ng=A(Ug,Og,zg,!1,Bg,null,null,null);function Bg(e){for(let s in qi)this[s]=qi[s]}var Fg=function(){return Ng.exports}(),Hg={props:{userid:{type:[String,Number],default:""},size:{type:[String,Number],default:"default"},showIcon:{type:Boolean,default:!0},showName:{type:Boolean,default:!1},showStateDot:{type:Boolean,default:!0},nameText:{type:String,default:""},borderWidth:{type:Number,default:0},borderColor:{type:String,default:""},clickOpenDetail:{type:Boolean,default:!1},userResult:{default:null}}},Wg=function(){var e=this,s=e.$createElement,t=e._self._c||s;return e.user?t("div",{staticClass:"avatar-wrapper common-avatar",class:{"avatar-pointer":e.clickOpenDetail},on:{click:e.onClickOpen}},[e.showIcon?t("div",{class:e.boxClass,style:e.boxStyle,attrs:{title:e.showName?void 0:e.user.nickname}},[e.showStateDot&&!e.user.disable_at?t("em",{style:e.spotStyle}):e._e(),e.showImg?t("EAvatar",{ref:"avatar",class:{"avatar-default":e.isDefault},attrs:{src:e.user.userimg,size:e.avatarSize,error:e.onError}},[t("span",{staticClass:"avatar-char",style:e.spotStyle},[e._v(e._s(e.nickname))])]):t("EAvatar",{staticClass:"avatar-text",attrs:{size:e.avatarSize}},[t("span",{staticClass:"avatar-char",style:e.spotStyle},[e._v(e._s(e.nickname))])])],1):e._e(),e.showName?t("div",{staticClass:"avatar-name",style:e.nameStyle},[e.user.bot?t("div",{staticClass:"taskfont bot"},[e._v("\uE68C")]):e._e(),e._t("name-prefix"),t("span",[e._v(e._s(e.nameText||e.user.nickname))])],2):e._e()]):e._e()},Vg=[];const Yg={name:"UserAvatar",mixins:[Hg],data(){return{user:null}},mounted(){this.getData(),T.on("userActive",this.userActive),this.$store.state.userAvatar[this._uid]=this.$props},beforeDestroy(){T.off("userActive",this.userActive),this.$store.state.userAvatar[this._uid]!==void 0&&delete this.$store.state.userAvatar[this._uid]},computed:{boxClass(){return{"avatar-box":!0,online:this.$store.state.userId===this.userid||this.user.online||this.isBot,disabled:this.user.disable_at,deleted:this.user.delete_at}},boxStyle(){const e={},{borderWidth:s,borderColor:t}=this;return s>0&&(e.border=s+"px solid "+(t||"#ffffff")),e},spotStyle(){let{borderWidth:e,size:s}=this;return s==="default"&&(s=32),e>0&&(s-=e),s==32?{}:{transform:"scale("+Math.min(1.25,s/32)+")"}},nameStyle(){const{showIcon:e}=this,{delete_at:s,disable_at:t}=this.user,i={};return e||(i.marginLeft=0),(s||t)&&(i.opacity=.8),i},avatarSize(){let{borderWidth:e,size:s}=this;return s==="default"&&(s=32),e>0?s-e*2:s},showImg(){const{userimg:e}=this.user;return e?!$A.rightExists(e,"/avatar.png"):!1},isDefault(){const{userimg:e}=this.user;return $A.strExists(e,"/avatar")},isBot(){return!!(this.user&&this.user.bot)},nickname(){const{nickname:e}=this.user;if(!e)return"D";let s=e.substring(0,2);return/^[\u4e00-\u9fa5]+$/.test(s)&&(s=s.substring(0,1)),s||"D"}},watch:{userid(){this.getData()}},methods:{userActive({type:e,data:s}){s.userid==this.userid&&(e==="line"?this.user&&this.$set(this.user,"online",s.online):this.setUser(s))},getData(){if(!this.$store.state.userId)return;if(this.userid===-1){this.setUser({userid:-1,nickname:this.$L("AI \u52A9\u624B"),bot:!1,userimg:$A.mainUrl("images/avatar/default_assistant.png"),online:!1});return}const e=this.$store.state.cacheUserBasic.find(({userid:s})=>s==this.userid);e&&this.setUser(e),this.$store.dispatch("getUserBasic",{userid:this.userid})},setUser(e){try{this.user&&this.user.userimg!=e.userimg&&this.$refs.avatar&&(this.$refs.avatar.$data.isImageExist=!0)}catch{}this.user=e,typeof this.userResult=="function"&&this.userResult(e)},onClickOpen(){this.clickOpenDetail?T.emit("openUser",this.userid):this.$emit("on-click",this.userid)},openDialog(){this.$store.dispatch("openDialogUserid",this.userid).catch(({msg:e})=>{$A.modalError(e)})},onError(){return!0}}},Ki={};var qg=A(Yg,Wg,Vg,!1,Kg,null,null,null);function Kg(e){for(let s in Ki)this[s]=Ki[s]}var Gg=function(){return qg.exports}(),Jg=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("img",{attrs:{src:e.processedSrc,alt:e.alt}})},Qg=[];const Xg={props:{src:{type:String,required:!0},alt:{type:String,default:""}},computed:{processedSrc({src:e}){return rn(e)}}},Gi={};var Zg=A(Xg,Jg,Qg,!1,e_,null,null,null);function e_(e){for(let s in Gi)this[s]=Gi[s]}var t_=function(){return Zg.exports}(),s_=function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("img",{attrs:{src:e.srcValue,alt:e.alt},on:{"~error":function(i){return e.onError.apply(null,arguments)}}})},i_=[];const n_={name:"ImgView",props:{src:{default:""},errorSrc:{default:""},alt:{default:""}},computed:{srcValue({src:e}){return this.toSrc(e)}},methods:{toSrc(e){return e.substring(0,10)==="data:image"||e.substring(0,2)==="//"||e.substring(0,7)==="http://"||e.substring(0,8)==="https://"||e.substring(0,6)==="ftp://"||e.substring(0,1)==="/"?e:$A.mainUrl(e)},onError(e){!this.errorSrc||(e.target.src=this.toSrc(this.errorSrc))}}},Ji={};var r_=A(n_,s_,i_,!1,o_,null,null,null);function o_(e){for(let s in Ji)this[s]=Ji[s]}var a_=function(){return r_.exports}();function G(e){return parseInt(e,10)||0}const ke=typeof window!="undefined"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch);function Qi(e){return e?getComputedStyle(e):{}}function rt(e,s){if(e)for(const t in s){let i=s[t];typeof i=="number"&&(i=`${i}px`),e.style[t]=i}return e}var l_={name:"Scrollbar",props:{tag:{type:String,default:"div"},className:{type:String,default:""},enableX:{type:Boolean,default:!1},enableY:{type:Boolean,default:!0},hideBar:{type:Boolean,default:!1},minSize:{type:Number,default:20},touchContentBlur:{type:Boolean,default:!0}},data(){return{isReady:!1,scrollingX:!1,scrollingY:!1,moveingX:!1,moveingY:!1,containerWidth:null,containerHeight:null,contentWidth:null,contentHeight:null,contentOverflow:{x:null,y:null},thumbYHeight:null,thumbYTop:null,thumbXWidth:null,thumbXLeft:null,lastScrollTop:0,lastScrollLeft:0,timeouts:{}}},computed:{containerClass(){const e=["scrollbar-container"];return ke?e.push("scrollbar-touch"):e.push("scrollbar-desktop"),this.contentWidth>this.containerWidth&&this.contentOverflow.x!=="hidden"&&this.enableX&&e.push("scrollbar-active-x"),this.contentHeight>this.containerHeight&&this.contentOverflow.y!=="hidden"&&this.enableY&&e.push("scrollbar-active-y"),this.scrollingX&&e.push("scrollbar-scrolling-x"),this.scrollingY&&e.push("scrollbar-scrolling-y"),this.moveingX&&e.push("scrollbar-moveing-x"),this.moveingY&&e.push("scrollbar-moveing-y"),(this.hideBar||!this.isReady)&&e.push("scrollbar-hidebar"),e},contentClass({className:e,enableX:s,enableY:t}){const i=["scrollbar-content"];return e&&i.push(e),s||i.push("scrollbar-disable-x"),t||i.push("scrollbar-disable-y"),i}},mounted(){this.$nextTick(()=>{this.updateBase()})},updated(){this.$nextTick(()=>{this.updateGeometry(!1)})},methods:{scrollInfo(){const e=$A(this.$refs.content),s=Math.round(e.innerHeight()),t=e.scrollTop(),i=this.$refs.content.scrollHeight;return{scale:t/(i-s),scrollY:t,scrollE:i-s-t}},scrollElement(){return this.$refs.content},querySelector(e){return this.$refs.content&&this.$refs.content.querySelector(e)},updateBase(){if(ke)return;const e=Qi(this.$refs.container),s=Qi(this.$refs.content);rt(this.$refs.trackX,{left:G(e.paddingLeft)+G(s.marginLeft),right:G(e.paddingRight)+G(s.marginRight),bottom:G(e.paddingBottom)+G(s.marginBottom)}),rt(this.$refs.trackY,{top:G(e.paddingTop)+G(s.marginTop),bottom:G(e.paddingBottom)+G(s.marginBottom),right:G(e.paddingRight)+G(s.marginRight)}),this.contentOverflow={x:s.overflowX,y:s.overflowY}},updateGeometry(e){if(ke)return;const s=this.$refs.content;if(!s)return;const t=Math.floor(s.scrollTop),i=s.getBoundingClientRect();this.containerWidth=Math.round(i.width),this.containerHeight=Math.round(i.height),this.contentWidth=s.scrollWidth,this.contentHeight=s.scrollHeight,this.thumbXWidth=Math.max(G(this.containerWidth*this.containerWidth/this.contentWidth),this.minSize),this.thumbXLeft=G(s.scrollLeft*(this.containerWidth-this.thumbXWidth)/(this.contentWidth-this.containerWidth)),this.thumbYHeight=Math.max(G(this.containerHeight*this.containerHeight/this.contentHeight),this.minSize),this.thumbYTop=G(t*(this.containerHeight-this.thumbYHeight)/(this.contentHeight-this.containerHeight)),rt(this.$refs.thumbX,{left:this.thumbXLeft,width:this.thumbXWidth}),rt(this.$refs.thumbY,{top:this.thumbYTop,height:this.thumbYHeight}),e&&(this.scrollingX=this.lastScrollLeft!==s.scrollLeft,this.scrollingY=this.lastScrollTop!==s.scrollTop,this.lastScrollTop=s.scrollTop,this.lastScrollLeft=s.scrollLeft,this.timeouts.scroll&&clearTimeout(this.timeouts.scroll),this.timeouts.scroll=setTimeout(()=>{this.scrollingX=!1,this.scrollingY=!1},1e3))},onContainerMouseMove(){var e;(e=this.$store)!=null&&e.state.windowTouch||setTimeout(()=>{this.isReady||(this.updateGeometry(!0),this.isReady=!0)},300)},onContentTouchStart(e){if(!this.touchContentBlur)return;const s=document.activeElement;s&&s.blur()},onContentScroll(e){this.updateGeometry(!0),this.$emit("on-scroll",e),this.isReady=!0},onContentMouseenter(){this.updateBase(),this.updateGeometry(!1)},onTrackXMouseDown(e){if(ke)return;const s=this.$refs.content,t=this.$refs.trackX.getBoundingClientRect(),n=e.pageX-window.scrollX-t.left>this.thumbXLeft?1:-1;s.scrollLeft+=n*this.containerWidth,this.updateGeometry(!0),e.stopPropagation()},onTrackYMouseDown(e){if(ke)return;const s=this.$refs.content,t=this.$refs.trackY.getBoundingClientRect(),n=e.pageY-window.scrollY-t.top>this.thumbYTop?1:-1;s.scrollTop+=n*this.containerHeight,this.updateGeometry(!0),e.stopPropagation()},onThumbXMouseDown(e){if(ke)return;const s=this.$refs.content,t=s.getBoundingClientRect(),i=s.scrollLeft,n=e.pageX-window.scrollX,r=a=>{const l=a.pageX-n;s.scrollLeft=i+l*this.contentWidth/t.width},o=()=>{this.timeouts.moveX=setTimeout(()=>{this.moveingX=!1},100),document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",o)};this.moveingX=!0,this.timeouts.moveX&&clearTimeout(this.timeouts.moveX),document.addEventListener("mousemove",r),document.addEventListener("mouseup",o),e.preventDefault(),e.stopPropagation()},onThumbYMouseDown(e){if(ke)return;const s=this.$refs.content,t=s.getBoundingClientRect(),i=s.scrollTop,n=e.pageY-window.scrollY,r=a=>{const l=a.pageY-n;s.scrollTop=i+l*this.contentHeight/t.height},o=()=>{this.timeouts.moveY=setTimeout(()=>{this.moveingY=!1},100),document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",o)};this.moveingY=!0,this.timeouts.moveY&&clearTimeout(this.timeouts.moveY),document.addEventListener("mousemove",r),document.addEventListener("mouseup",o),e.preventDefault(),e.stopPropagation()}},render(e){return e("div",{ref:"container",class:this.containerClass,on:{"~mousemove":this.onContainerMouseMove}},[e(this.tag,{ref:"content",class:this.contentClass,on:{touchstart:this.onContentTouchStart,scroll:this.onContentScroll,mouseenter:this.onContentMouseenter}},this.$slots.default),e("div",{ref:"trackX",class:"scrollbar-track-x",on:{mousedown:this.onTrackXMouseDown}},[e("div",{ref:"thumbX",class:"scrollbar-thumb-x",on:{mousedown:this.onThumbXMouseDown}})]),e("div",{ref:"trackY",class:"scrollbar-track-y",on:{mousedown:this.onTrackYMouseDown}},[e("div",{ref:"thumbY",class:"scrollbar-thumb-y",on:{mousedown:this.onThumbYMouseDown}})])])}};const _t=!!(window&&window.process&&window.process.type&&window.electron),Yt=window&&window.navigator&&/eeui/i.test(window.navigator.userAgent),qt=_t||Yt;var Zi;(Zi=document.getElementById("app"))==null||Zi.setAttribute("data-preload","false");E.use(Nt);E.use(ft);E.use(yr,{config:{autoSetContainer:!0}});E.use(ee,{modal:{checkEscClose:!0}});E.component("PageTitle",hg);E.component("Loading",vg);E.component("AutoTip",Ag);E.component("TagInput",Dg);E.component("TableAction",Rg);E.component("QuickEdit",Fg);E.component("UserAvatar",Gg);E.component("Imgs",t_);E.component("ImgView",a_);E.component("Scrollbar",l_);E.component("EAvatar",Le.exports.Avatar);E.component("ETooltip",Le.exports.Tooltip);E.component("EPopover",Le.exports.Popover);E.component("EDropdown",Le.exports.Dropdown);E.component("EDropdownMenu",Le.exports.DropdownMenu);E.component("EDropdownItem",Le.exports.DropdownItem);const c_=ft.prototype.push;ft.prototype.push=function(s){return c_.call(this,s).catch(t=>t)};const Ut=Oe(window.location)?"hash":"history",Kt=new ft({mode:Ut,routes:Qm});ee.LoadingBar.config({color:"#3fcc25",failedColor:"#ff0000"});Kt.beforeEach((e,s,t)=>{qt||(ee.LoadingBar._timer&&clearTimeout(ee.LoadingBar._timer),ee.LoadingBar._timer=setTimeout(i=>{ee.LoadingBar._load=!0,ee.LoadingBar.start()},300)),ge.commit("route/loading",!0),t()});Kt.afterEach(()=>{qt||(ee.LoadingBar._timer&&clearTimeout(ee.LoadingBar._timer),ee.LoadingBar._load===!0&&(ee.LoadingBar._load=!1,ee.LoadingBar.finish())),ge.commit("route/loading",!1)});ee.Message.config({duration:2.5});E.prototype.goForward=function(e,s,t=!0){if($A.Ready&&$A.isSubElectron&&t){$A.Electron.sendMessage("broadcastCommand",{channel:"goForward",payload:{route:e,isReplace:s}}),$A.Electron.sendMessage("mainWindowActive");return}if(typeof e=="string")if($A.strExists(e,"/")){if(/^https?:\/\//.test(e))if($A.getDomain(e)===$A.mainDomain())e=e.replace(/^https?:\/\/[^\/]+/,"");else{s?window.location.replace(e):window.location.href=e;return}e={path:e}}else e={name:e};R.$store.state.routeHistorys.length===0&&R.$store.state.routeHistorys.push(R.$route);const i=s?"replace":"push";R.$router[i](e).then(n=>{if(s)R.$store.state.routeHistorys.pop(),R.$store.state.routeHistorys.push(n);else{const r=R.$store.state.routeHistorys.push(n);r>120&&R.$store.state.routeHistorys.splice(r-100),R.$store.state.routeHistoryLast=r>=2?R.$store.state.routeHistorys[r-2]:{}}}).catch(n=>console.warn("\u8DEF\u7531\u8DF3\u8F6C\u5931\u8D25:",n))};E.prototype.goBack=function(){if(R.$store.state.routeHistorys.length>1){R.$router.back(),R.$store.state.routeHistorys.pop();const e=R.$store.state.routeHistorys.length;R.$store.state.routeHistoryLast=e>=2?R.$store.state.routeHistorys[e-2]:{}}else R.$router.replace({path:"/"}).catch(e=>{}),R.$store.state.routeHistorys=[],R.$store.state.routeHistoryLast={}};E.prototype.copyText=function(e){if($A.isJson(e)||(e={text:e,success:"\u590D\u5236\u6210\u529F",error:"\u590D\u5236\u5931\u8D25"}),$A.isEEUIApp){$A.eeuiAppCopyText(e.text),e.success&&$A.messageSuccess(e.success);return}R.$copyText(e.text).then(s=>{e.success&&$A.messageSuccess(e.success)}).catch(s=>{e.error&&$A.messageError(e.error)})};$A.L=Bt;$A.Ready=!1;$A.Electron=null;$A.Platform="web";$A.isMainElectron=!1;$A.isSubElectron=!1;$A.isEEUIApp=Yt;$A.isElectron=_t;$A.isSoftware=qt;$A.openLog=!1;_t?($A.Electron=window.electron,$A.Platform=/macintosh|mac os x/i.test(navigator.userAgent)?"mac":"win",$A.isMainElectron=/\s+MainTaskWindow\//.test(window.navigator.userAgent),$A.isSubElectron=/\s+SubTaskWindow\//.test(window.navigator.userAgent)):Yt&&($A.Platform=/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?"ios":"android");const Gn=$A.randomString(6)+"_"+Date.now().toString();$A.syncPauses=new Map;$A.syncDispatch=(e,s)=>{var t;return!$A.Ready||!_t||$A.syncPauses.has(e)||!$A.isJson(s)?!1:s.__sync__===!0?(delete s.__sync__,!1):((t=$A.Electron)==null||t.sendMessage("broadcastCommand",{channel:"syncDispatch",payload:{dispatchId:Gn,action:e,data:s}}),!0)};var en;(en=$A.Electron)==null||en.listener("syncDispatch",async({dispatchId:e,action:s,data:t})=>{!$A.Ready||Gn!==e&&(!$A.isJson(t)||(t.__sync__=!0,await ge.dispatch(s,t)))});var tn;(tn=$A.Electron)==null||tn.listener("goForward",({route:e,isReplace:s})=>{!$A.Ready||$A.goForward(e,s,!1)});$A.bindScreenshotKey=e=>{let s="";const t=(e.screenshot_key||"").trim().toLowerCase();t&&(s=/macintosh|mac os x/i.test(navigator.userAgent)?"command":"ctrl",s=`${s}+shift+${t.toLowerCase()}`),$A.Electron.sendMessage("bindScreenshotKey",{key:s})};E.prototype.$A=$A;E.prototype.$L=Bt;E.prototype.$Electron=$A.Electron;E.prototype.$Platform=$A.Platform;E.prototype.$isMainElectron=$A.isMainElectron;E.prototype.$isSubElectron=$A.isSubElectron;E.prototype.$isEEUIApp=$A.isEEUIApp;E.prototype.$isSoftware=$A.isSoftware;E.config.productionTip=!1;E.mixin(og);let R;const Xi=async()=>{const e=await ge.dispatch("init");R=new E({router:Kt,store:ge,render:s=>s(Jm),template:"<App/>"}).$mount("#app"),$A.apiCall=(...s)=>ge.dispatch("call",...s),$A.goForward=R.goForward,$A.goBack=R.goBack,$A.Message=R.$Message,$A.Notice=R.$Notice,$A.Modal=R.$Modal,$A.Ready=!0,e==="handleClearCache"&&$A.messageSuccess("\u6E05\u9664\u6210\u529F"),typeof window.LANGUAGE_DATA[`i_${M}`]!="undefined"&&ee.locale(window.LANGUAGE_DATA[`i_${M}`])},u_=async()=>{var s,t;if((s=document.getElementById("app"))==null||s.setAttribute("data-preload","true"),$A.isEEUIApp){const i=new Date().getTime();for(;typeof requireModuleJs!="function"&&(await new Promise(r=>setTimeout(r,200)),!(new Date().getTime()-i>15*1e3)););if(typeof requireModuleJs!="function"){const r=$A.L("\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u542F\u8F6F\u4EF6"),o=document.querySelector(".app-view-loading");o?o.innerHTML=`<span style="color:#f00;font-size:18px;">${r}</span>`:alert(r);return}const n=$A.eeuiAppGetPageInfo()||{};ge.state.isFirstPage=n.pageName==="firstPage",await ge.dispatch("safeAreaInsets")}if(await ge.dispatch("preload"),window.location[Ut==="hash"?"hash":"pathname"].replace(/^[#\/\s]+/,"")!=="preload"){await Xi();return}(t=document.querySelector(".app-view-loading"))==null||t.setAttribute("data-visible","false"),window.__initializeApp=async i=>{if(/^https?:\/\//.test(i)){let n=$A.mainDomain();n==="public"&&(n=$A.getDomain(await $A.IDBString("cacheServerUrl")));const r=$A.getDomain(i);if(r!==n&&r!==window.location.host){window.location.href=i;return}i=i.replace(/^https?:\/\/[^\/]+/,"")}Ut==="hash"&&(i=`#/${i.replace(/^[#\/\s]+/,"")}`),window.history.replaceState(null,"",i),await Xi()}};u_().catch(e=>{});export{dv as A,hd as C,Wu as D,Ad as F,Pt as M,go as N,av as P,Fg as Q,lv as R,uv as S,ov as T,Ft as U,ah as V,th as a,Qs as b,Zu as c,un as d,T as e,Sm as f,ve as g,To as h,cv as i,Xu as j,Oe as k,M as l,Hg as m,A as n,rv as o,iv as p,Ar as q,ut as r,ge as s,mt as t,nv as u,pn as w};