/*! For license information please see 380.js.LICENSE.txt */ (self.webpackChunkDooTask=self.webpackChunkDooTask||[]).push([[380],{8251:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});var r="ontouchend"in document;const i={bind:function(t,e){var n=500,i=e.value;if($A.isJson(e.value)&&(n=e.value.delay||500,i=e.value.callback),"function"!=typeof i)throw"callback must be a function";if(!r)return t.__longpressContextmenu__=function(e){e.preventDefault(),e.stopPropagation(),i(e,t)},void t.addEventListener("contextmenu",t.__longpressContextmenu__);var o=null,a=!1;t.__longpressStart__=function(e){"click"===e.type&&0!==e.button||(a=!1,null===o&&(o=setTimeout((function(){a=!0,i(e.touches[0],t)}),n)))},t.__longpressCancel__=function(t){null!==o&&(clearTimeout(o),o=null)},t.__longpressClick__=function(e){a&&(e.preventDefault(),e.stopPropagation()),t.__longpressCancel__(e)},t.addEventListener("touchstart",t.__longpressStart__),t.addEventListener("click",t.__longpressClick__),t.addEventListener("touchmove",t.__longpressCancel__),t.addEventListener("touchend",t.__longpressCancel__),t.addEventListener("touchcancel",t.__longpressCancel__)},unbind:function(t){if(!r)return t.removeEventListener("contextmenu",t.__longpressContextmenu__),void delete t.__longpressContextmenu__;t.removeEventListener("touchstart",t.__longpressStart__),t.removeEventListener("click",t.__longpressClick__),t.removeEventListener("touchmove",t.__longpressCancel__),t.removeEventListener("touchend",t.__longpressCancel__),t.removeEventListener("touchcancel",t.__longpressCancel__),delete t.__longpressStart__,delete t.__longpressClick__,delete t.__longpressCancel__}}},92307:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(1519),i=n.n(r)()((function(t){return t[1]}));i.push([t.id,'.component-resize-line[data-v-5a37a7e8]{cursor:col-resize}@media (max-width:768px){.component-resize-line[data-v-5a37a7e8]{display:none}}.component-resize-line.resizing[data-v-5a37a7e8]:after{bottom:0;content:"";cursor:col-resize;left:0;position:fixed;right:0;top:0;z-index:99999}.component-resize-line.bottom[data-v-5a37a7e8],.component-resize-line.bottom[data-v-5a37a7e8]:after{cursor:row-resize}',""]);const o=i},96486:function(t,e,n){var r;t=n.nmd(t),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",u="__lodash_placeholder__",s=16,l=32,c=64,f=128,h=256,d=1/0,p=9007199254740991,v=NaN,_=4294967295,m=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",l],["partialRight",c],["rearg",h]],g="[object Arguments]",y="[object Array]",b="[object Boolean]",w="[object Date]",x="[object Error]",k="[object Function]",$="[object GeneratorFunction]",S="[object Map]",L="[object Number]",I="[object Object]",C="[object Promise]",A="[object RegExp]",z="[object Set]",O="[object String]",E="[object Symbol]",j="[object WeakMap]",D="[object ArrayBuffer]",F="[object DataView]",T="[object Float32Array]",M="[object Float64Array]",P="[object Int8Array]",U="[object Int16Array]",B="[object Int32Array]",R="[object Uint8Array]",N="[object Uint8ClampedArray]",W="[object Uint16Array]",Z="[object Uint32Array]",K=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,Y=RegExp(q.source),J=RegExp(G.source),X=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,tt=/<%=([\s\S]+?)%>/g,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nt=/^\w*$/,rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,it=/[\\^$.*+?()[\]{}|]/g,ot=RegExp(it.source),at=/^\s+/,ut=/\s/,st=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,lt=/\{\n\/\* \[wrapped with (.+)\] \*/,ct=/,? & /,ft=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/[()=,{}\[\]\/\s]/,dt=/\\(\\)?/g,pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vt=/\w*$/,_t=/^[-+]0x[0-9a-f]+$/i,mt=/^0b[01]+$/i,gt=/^\[object .+?Constructor\]$/,yt=/^0o[0-7]+$/i,bt=/^(?:0|[1-9]\d*)$/,wt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xt=/($^)/,kt=/['\n\r\u2028\u2029\\]/g,$t="\\ud800-\\udfff",St="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Lt="\\u2700-\\u27bf",It="a-z\\xdf-\\xf6\\xf8-\\xff",Ct="A-Z\\xc0-\\xd6\\xd8-\\xde",At="\\ufe0e\\ufe0f",zt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ot="['’]",Et="["+$t+"]",jt="["+zt+"]",Dt="["+St+"]",Ft="\\d+",Tt="["+Lt+"]",Mt="["+It+"]",Pt="[^"+$t+zt+Ft+Lt+It+Ct+"]",Ut="\\ud83c[\\udffb-\\udfff]",Bt="[^"+$t+"]",Rt="(?:\\ud83c[\\udde6-\\uddff]){2}",Nt="[\\ud800-\\udbff][\\udc00-\\udfff]",Wt="["+Ct+"]",Zt="\\u200d",Kt="(?:"+Mt+"|"+Pt+")",Ht="(?:"+Wt+"|"+Pt+")",Vt="(?:['’](?:d|ll|m|re|s|t|ve))?",qt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Gt="(?:"+Dt+"|"+Ut+")"+"?",Yt="["+At+"]?",Jt=Yt+Gt+("(?:"+Zt+"(?:"+[Bt,Rt,Nt].join("|")+")"+Yt+Gt+")*"),Xt="(?:"+[Tt,Rt,Nt].join("|")+")"+Jt,Qt="(?:"+[Bt+Dt+"?",Dt,Rt,Nt,Et].join("|")+")",te=RegExp(Ot,"g"),ee=RegExp(Dt,"g"),ne=RegExp(Ut+"(?="+Ut+")|"+Qt+Jt,"g"),re=RegExp([Wt+"?"+Mt+"+"+Vt+"(?="+[jt,Wt,"$"].join("|")+")",Ht+"+"+qt+"(?="+[jt,Wt+Kt,"$"].join("|")+")",Wt+"?"+Kt+"+"+Vt,Wt+"+"+qt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ft,Xt].join("|"),"g"),ie=RegExp("["+Zt+$t+St+At+"]"),oe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ae=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ue=-1,se={};se[T]=se[M]=se[P]=se[U]=se[B]=se[R]=se[N]=se[W]=se[Z]=!0,se[g]=se[y]=se[D]=se[b]=se[F]=se[w]=se[x]=se[k]=se[S]=se[L]=se[I]=se[A]=se[z]=se[O]=se[j]=!1;var le={};le[g]=le[y]=le[D]=le[F]=le[b]=le[w]=le[T]=le[M]=le[P]=le[U]=le[B]=le[S]=le[L]=le[I]=le[A]=le[z]=le[O]=le[E]=le[R]=le[N]=le[W]=le[Z]=!0,le[x]=le[k]=le[j]=!1;var ce={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fe=parseFloat,he=parseInt,de="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pe="object"==typeof self&&self&&self.Object===Object&&self,ve=de||pe||Function("return this")(),_e=e&&!e.nodeType&&e,me=_e&&t&&!t.nodeType&&t,ge=me&&me.exports===_e,ye=ge&&de.process,be=function(){try{var t=me&&me.require&&me.require("util").types;return t||ye&&ye.binding&&ye.binding("util")}catch(t){}}(),we=be&&be.isArrayBuffer,xe=be&&be.isDate,ke=be&&be.isMap,$e=be&&be.isRegExp,Se=be&&be.isSet,Le=be&&be.isTypedArray;function Ie(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ce(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i-1}function De(t,e,n){for(var r=-1,i=null==t?0:t.length;++r-1;);return n}function rn(t,e){for(var n=t.length;n--&&We(e,t[n],0)>-1;);return n}function on(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var an=qe({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),un=qe({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(t){return"\\"+ce[t]}function ln(t){return ie.test(t)}function cn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function fn(t,e){return function(n){return t(e(n))}}function hn(t,e){for(var n=-1,r=t.length,i=0,o=[];++n",""":'"',"'":"'"});var yn=function t(e){var n,r=(e=null==e?ve:yn.defaults(ve.Object(),e,yn.pick(ve,ae))).Array,ut=e.Date,$t=e.Error,St=e.Function,Lt=e.Math,It=e.Object,Ct=e.RegExp,At=e.String,zt=e.TypeError,Ot=r.prototype,Et=St.prototype,jt=It.prototype,Dt=e["__core-js_shared__"],Ft=Et.toString,Tt=jt.hasOwnProperty,Mt=0,Pt=(n=/[^.]+$/.exec(Dt&&Dt.keys&&Dt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ut=jt.toString,Bt=Ft.call(It),Rt=ve._,Nt=Ct("^"+Ft.call(Tt).replace(it,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wt=ge?e.Buffer:i,Zt=e.Symbol,Kt=e.Uint8Array,Ht=Wt?Wt.allocUnsafe:i,Vt=fn(It.getPrototypeOf,It),qt=It.create,Gt=jt.propertyIsEnumerable,Yt=Ot.splice,Jt=Zt?Zt.isConcatSpreadable:i,Xt=Zt?Zt.iterator:i,Qt=Zt?Zt.toStringTag:i,ne=function(){try{var t=po(It,"defineProperty");return t({},"",{}),t}catch(t){}}(),ie=e.clearTimeout!==ve.clearTimeout&&e.clearTimeout,ce=ut&&ut.now!==ve.Date.now&&ut.now,de=e.setTimeout!==ve.setTimeout&&e.setTimeout,pe=Lt.ceil,_e=Lt.floor,me=It.getOwnPropertySymbols,ye=Wt?Wt.isBuffer:i,be=e.isFinite,Be=Ot.join,qe=fn(It.keys,It),bn=Lt.max,wn=Lt.min,xn=ut.now,kn=e.parseInt,$n=Lt.random,Sn=Ot.reverse,Ln=po(e,"DataView"),In=po(e,"Map"),Cn=po(e,"Promise"),An=po(e,"Set"),zn=po(e,"WeakMap"),On=po(It,"create"),En=zn&&new zn,jn={},Dn=Ro(Ln),Fn=Ro(In),Tn=Ro(Cn),Mn=Ro(An),Pn=Ro(zn),Un=Zt?Zt.prototype:i,Bn=Un?Un.valueOf:i,Rn=Un?Un.toString:i;function Nn(t){if(iu(t)&&!Va(t)&&!(t instanceof Hn)){if(t instanceof Kn)return t;if(Tt.call(t,"__wrapped__"))return No(t)}return new Kn(t)}var Wn=function(){function t(){}return function(e){if(!ru(e))return{};if(qt)return qt(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function Zn(){}function Kn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function Hn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=_,this.__views__=[]}function Vn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function cr(t,e,n,r,o,a){var u,s=1&e,l=2&e,c=4&e;if(n&&(u=o?n(t,r,o,a):n(t)),u!==i)return u;if(!ru(t))return t;var f=Va(t);if(f){if(u=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Tt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!s)return Oi(t,u)}else{var h=mo(t),d=h==k||h==$;if(Ja(t))return Si(t,s);if(h==I||h==g||d&&!o){if(u=l||d?{}:yo(t),!s)return l?function(t,e){return Ei(t,_o(t),e)}(t,function(t,e){return t&&Ei(e,Fu(e),t)}(u,t)):function(t,e){return Ei(t,vo(t),e)}(t,ar(u,t))}else{if(!le[h])return o?t:{};u=function(t,e,n){var r=t.constructor;switch(e){case D:return Li(t);case b:case w:return new r(+t);case F:return function(t,e){var n=e?Li(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case T:case M:case P:case U:case B:case R:case N:case W:case Z:return Ii(t,n);case S:return new r;case L:case O:return new r(t);case A:return function(t){var e=new t.constructor(t.source,vt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case z:return new r;case E:return i=t,Bn?It(Bn.call(i)):{}}var i}(t,h,s)}}a||(a=new Jn);var p=a.get(t);if(p)return p;a.set(t,u),lu(t)?t.forEach((function(r){u.add(cr(r,e,n,r,t,a))})):ou(t)&&t.forEach((function(r,i){u.set(i,cr(r,e,n,i,t,a))}));var v=f?i:(c?l?ao:oo:l?Fu:Du)(t);return Ae(v||t,(function(r,i){v&&(r=t[i=r]),rr(u,i,cr(r,e,n,i,t,a))})),u}function fr(t,e,n){var r=n.length;if(null==t)return!r;for(t=It(t);r--;){var o=n[r],a=e[o],u=t[o];if(u===i&&!(o in t)||!a(u))return!1}return!0}function hr(t,e,n){if("function"!=typeof t)throw new zt(o);return Do((function(){t.apply(i,n)}),e)}function dr(t,e,n,r){var i=-1,o=je,a=!0,u=t.length,s=[],l=e.length;if(!u)return s;n&&(e=Fe(e,Qe(n))),r?(o=De,a=!1):e.length>=200&&(o=en,a=!1,e=new Yn(e));t:for(;++i-1},qn.prototype.set=function(t,e){var n=this.__data__,r=ir(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(In||qn),string:new Vn}},Gn.prototype.delete=function(t){var e=fo(this,t).delete(t);return this.size-=e?1:0,e},Gn.prototype.get=function(t){return fo(this,t).get(t)},Gn.prototype.has=function(t){return fo(this,t).has(t)},Gn.prototype.set=function(t,e){var n=fo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(t){return this.__data__.set(t,a),this},Yn.prototype.has=function(t){return this.__data__.has(t)},Jn.prototype.clear=function(){this.__data__=new qn,this.size=0},Jn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Jn.prototype.get=function(t){return this.__data__.get(t)},Jn.prototype.has=function(t){return this.__data__.has(t)},Jn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!In||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(t,e),this.size=n.size,this};var pr=Fi(xr),vr=Fi(kr,!0);function _r(t,e){var n=!0;return pr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function mr(t,e,n){for(var r=-1,o=t.length;++r0&&n(u)?e>1?yr(u,e-1,n,r,i):Te(i,u):r||(i[i.length]=u)}return i}var br=Ti(),wr=Ti(!0);function xr(t,e){return t&&br(t,e,Du)}function kr(t,e){return t&&wr(t,e,Du)}function $r(t,e){return Ee(e,(function(e){return tu(t[e])}))}function Sr(t,e){for(var n=0,r=(e=wi(e,t)).length;null!=t&&ne}function Ar(t,e){return null!=t&&Tt.call(t,e)}function zr(t,e){return null!=t&&e in It(t)}function Or(t,e,n){for(var o=n?De:je,a=t[0].length,u=t.length,s=u,l=r(u),c=1/0,f=[];s--;){var h=t[s];s&&e&&(h=Fe(h,Qe(e))),c=wn(h.length,c),l[s]=!n&&(e||a>=120&&h.length>=120)?new Yn(s&&h):i}h=t[0];var d=-1,p=l[0];t:for(;++d=u?s:s*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}))}function Vr(t,e,n){for(var r=-1,i=e.length,o={};++r-1;)u!==t&&Yt.call(u,s,1),Yt.call(t,s,1);return t}function Gr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;wo(i)?Yt.call(t,i,1):di(t,i)}}return t}function Yr(t,e){return t+_e($n()*(e-t+1))}function Jr(t,e){var n="";if(!t||e<1||e>p)return n;do{e%2&&(n+=t),(e=_e(e/2))&&(t+=t)}while(e);return n}function Xr(t,e){return Fo(Ao(t,e,as),t+"")}function Qr(t){return Qn(Wu(t))}function ti(t,e){var n=Wu(t);return Po(n,lr(e,0,n.length))}function ei(t,e,n,r){if(!ru(t))return t;for(var o=-1,a=(e=wi(e,t)).length,u=a-1,s=t;null!=s&&++oo?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=r(o);++i>>1,a=t[o];null!==a&&!fu(a)&&(n?a<=e:a=200){var l=e?null:Ji(t);if(l)return dn(l);a=!1,i=en,s=new Yn}else s=e?[]:u;t:for(;++r=r?t:oi(t,e,n)}var $i=ie||function(t){return ve.clearTimeout(t)};function Si(t,e){if(e)return t.slice();var n=t.length,r=Ht?Ht(n):new t.constructor(n);return t.copy(r),r}function Li(t){var e=new t.constructor(t.byteLength);return new Kt(e).set(new Kt(t)),e}function Ii(t,e){var n=e?Li(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ci(t,e){if(t!==e){var n=t!==i,r=null===t,o=t==t,a=fu(t),u=e!==i,s=null===e,l=e==e,c=fu(e);if(!s&&!c&&!a&&t>e||a&&u&&l&&!s&&!c||r&&u&&l||!n&&l||!o)return 1;if(!r&&!a&&!c&&t1?n[o-1]:i,u=o>2?n[2]:i;for(a=t.length>3&&"function"==typeof a?(o--,a):i,u&&xo(n[0],n[1],u)&&(a=o<3?i:a,o=1),e=It(e);++r-1?o[a?e[u]:u]:i}}function Ri(t){return io((function(e){var n=e.length,r=n,a=Kn.prototype.thru;for(t&&e.reverse();r--;){var u=e[r];if("function"!=typeof u)throw new zt(o);if(a&&!s&&"wrapper"==so(u))var s=new Kn([],!0)}for(r=s?r:n;++r1&&y.reverse(),d&&cs))return!1;var c=a.get(t),f=a.get(e);if(c&&f)return c==e&&f==t;var h=-1,d=!0,p=2&n?new Yn:i;for(a.set(t,e),a.set(e,t);++h-1&&t%1==0&&t1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(st,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ae(m,(function(n){var r="_."+n[0];e&n[1]&&!je(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(lt);return e?e[1].split(ct):[]}(r),n)))}function Mo(t){var e=0,n=0;return function(){var r=xn(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Po(t,e){var n=-1,r=t.length,o=r-1;for(e=e===i?r:e;++n1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,sa(t,n)}));function va(t){var e=Nn(t);return e.__chain__=!0,e}function _a(t,e){return e(t)}var ma=io((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return sr(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Hn&&wo(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:_a,args:[o],thisArg:i}),new Kn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(o)}));var ga=ji((function(t,e,n){Tt.call(t,n)?++t[n]:ur(t,n,1)}));var ya=Bi(Ho),ba=Bi(Vo);function wa(t,e){return(Va(t)?Ae:pr)(t,co(e,3))}function xa(t,e){return(Va(t)?ze:vr)(t,co(e,3))}var ka=ji((function(t,e,n){Tt.call(t,n)?t[n].push(e):ur(t,n,[e])}));var $a=Xr((function(t,e,n){var i=-1,o="function"==typeof e,a=Ga(t)?r(t.length):[];return pr(t,(function(t){a[++i]=o?Ie(e,t,n):Er(t,e,n)})),a})),Sa=ji((function(t,e,n){ur(t,n,e)}));function La(t,e){return(Va(t)?Fe:Rr)(t,co(e,3))}var Ia=ji((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var Ca=Xr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&xo(t,e[0],e[1])?e=[]:n>2&&xo(e[0],e[1],e[2])&&(e=[e[0]]),Hr(t,yr(e,1),[])})),Aa=ce||function(){return ve.Date.now()};function za(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Qi(t,f,i,i,i,i,e)}function Oa(t,e){var n;if("function"!=typeof e)throw new zt(o);return t=mu(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var Ea=Xr((function(t,e,n){var r=1;if(n.length){var i=hn(n,lo(Ea));r|=l}return Qi(t,r,e,n,i)})),ja=Xr((function(t,e,n){var r=3;if(n.length){var i=hn(n,lo(ja));r|=l}return Qi(e,r,t,n,i)}));function Da(t,e,n){var r,a,u,s,l,c,f=0,h=!1,d=!1,p=!0;if("function"!=typeof t)throw new zt(o);function v(e){var n=r,o=a;return r=a=i,f=e,s=t.apply(o,n)}function _(t){return f=t,l=Do(g,e),h?v(t):s}function m(t){var n=t-c;return c===i||n>=e||n<0||d&&t-f>=u}function g(){var t=Aa();if(m(t))return y(t);l=Do(g,function(t){var n=e-(t-c);return d?wn(n,u-(t-f)):n}(t))}function y(t){return l=i,p&&r?v(t):(r=a=i,s)}function b(){var t=Aa(),n=m(t);if(r=arguments,a=this,c=t,n){if(l===i)return _(c);if(d)return $i(l),l=Do(g,e),v(c)}return l===i&&(l=Do(g,e)),s}return e=yu(e)||0,ru(n)&&(h=!!n.leading,u=(d="maxWait"in n)?bn(yu(n.maxWait)||0,e):u,p="trailing"in n?!!n.trailing:p),b.cancel=function(){l!==i&&$i(l),f=0,r=c=a=l=i},b.flush=function(){return l===i?s:y(Aa())},b}var Fa=Xr((function(t,e){return hr(t,1,e)})),Ta=Xr((function(t,e,n){return hr(t,yu(e)||0,n)}));function Ma(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new zt(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ma.Cache||Gn),n}function Pa(t){if("function"!=typeof t)throw new zt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ma.Cache=Gn;var Ua=xi((function(t,e){var n=(e=1==e.length&&Va(e[0])?Fe(e[0],Qe(co())):Fe(yr(e,1),Qe(co()))).length;return Xr((function(r){for(var i=-1,o=wn(r.length,n);++i=e})),Ha=jr(function(){return arguments}())?jr:function(t){return iu(t)&&Tt.call(t,"callee")&&!Gt.call(t,"callee")},Va=r.isArray,qa=we?Qe(we):function(t){return iu(t)&&Ir(t)==D};function Ga(t){return null!=t&&nu(t.length)&&!tu(t)}function Ya(t){return iu(t)&&Ga(t)}var Ja=ye||ys,Xa=xe?Qe(xe):function(t){return iu(t)&&Ir(t)==w};function Qa(t){if(!iu(t))return!1;var e=Ir(t);return e==x||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!uu(t)}function tu(t){if(!ru(t))return!1;var e=Ir(t);return e==k||e==$||"[object AsyncFunction]"==e||"[object Proxy]"==e}function eu(t){return"number"==typeof t&&t==mu(t)}function nu(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=p}function ru(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function iu(t){return null!=t&&"object"==typeof t}var ou=ke?Qe(ke):function(t){return iu(t)&&mo(t)==S};function au(t){return"number"==typeof t||iu(t)&&Ir(t)==L}function uu(t){if(!iu(t)||Ir(t)!=I)return!1;var e=Vt(t);if(null===e)return!0;var n=Tt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ft.call(n)==Bt}var su=$e?Qe($e):function(t){return iu(t)&&Ir(t)==A};var lu=Se?Qe(Se):function(t){return iu(t)&&mo(t)==z};function cu(t){return"string"==typeof t||!Va(t)&&iu(t)&&Ir(t)==O}function fu(t){return"symbol"==typeof t||iu(t)&&Ir(t)==E}var hu=Le?Qe(Le):function(t){return iu(t)&&nu(t.length)&&!!se[Ir(t)]};var du=qi(Br),pu=qi((function(t,e){return t<=e}));function vu(t){if(!t)return[];if(Ga(t))return cu(t)?_n(t):Oi(t);if(Xt&&t[Xt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Xt]());var e=mo(t);return(e==S?cn:e==z?dn:Wu)(t)}function _u(t){return t?(t=yu(t))===d||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function mu(t){var e=_u(t),n=e%1;return e==e?n?e-n:e:0}function gu(t){return t?lr(mu(t),0,_):0}function yu(t){if("number"==typeof t)return t;if(fu(t))return v;if(ru(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ru(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Xe(t);var n=mt.test(t);return n||yt.test(t)?he(t.slice(2),n?2:8):_t.test(t)?v:+t}function bu(t){return Ei(t,Fu(t))}function wu(t){return null==t?"":fi(t)}var xu=Di((function(t,e){if(Lo(e)||Ga(e))Ei(e,Du(e),t);else for(var n in e)Tt.call(e,n)&&rr(t,n,e[n])})),ku=Di((function(t,e){Ei(e,Fu(e),t)})),$u=Di((function(t,e,n,r){Ei(e,Fu(e),t,r)})),Su=Di((function(t,e,n,r){Ei(e,Du(e),t,r)})),Lu=io(sr);var Iu=Xr((function(t,e){t=It(t);var n=-1,r=e.length,o=r>2?e[2]:i;for(o&&xo(e[0],e[1],o)&&(r=1);++n1),e})),Ei(t,ao(t),n),r&&(n=cr(n,7,no));for(var i=e.length;i--;)di(n,e[i]);return n}));var Uu=io((function(t,e){return null==t?{}:function(t,e){return Vr(t,e,(function(e,n){return zu(t,n)}))}(t,e)}));function Bu(t,e){if(null==t)return{};var n=Fe(ao(t),(function(t){return[t]}));return e=co(e),Vr(t,n,(function(t,n){return e(t,n[0])}))}var Ru=Xi(Du),Nu=Xi(Fu);function Wu(t){return null==t?[]:tn(t,Du(t))}var Zu=Pi((function(t,e,n){return e=e.toLowerCase(),t+(n?Ku(e):e)}));function Ku(t){return Qu(wu(t).toLowerCase())}function Hu(t){return(t=wu(t))&&t.replace(wt,an).replace(ee,"")}var Vu=Pi((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),qu=Pi((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Gu=Mi("toLowerCase");var Yu=Pi((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Ju=Pi((function(t,e,n){return t+(n?" ":"")+Qu(e)}));var Xu=Pi((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Qu=Mi("toUpperCase");function ts(t,e,n){return t=wu(t),(e=n?i:e)===i?function(t){return oe.test(t)}(t)?function(t){return t.match(re)||[]}(t):function(t){return t.match(ft)||[]}(t):t.match(e)||[]}var es=Xr((function(t,e){try{return Ie(t,i,e)}catch(t){return Qa(t)?t:new $t(t)}})),ns=io((function(t,e){return Ae(e,(function(e){e=Bo(e),ur(t,e,Ea(t[e],t))})),t}));function rs(t){return function(){return t}}var is=Ri(),os=Ri(!0);function as(t){return t}function us(t){return Mr("function"==typeof t?t:cr(t,1))}var ss=Xr((function(t,e){return function(n){return Er(n,t,e)}})),ls=Xr((function(t,e){return function(n){return Er(t,n,e)}}));function cs(t,e,n){var r=Du(e),i=$r(e,r);null!=n||ru(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=$r(e,Du(e)));var o=!(ru(n)&&"chain"in n&&!n.chain),a=tu(t);return Ae(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=Oi(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Te([this.value()],arguments))})})),t}function fs(){}var hs=Ki(Fe),ds=Ki(Oe),ps=Ki(Ue);function vs(t){return ko(t)?Ve(Bo(t)):function(t){return function(e){return Sr(e,t)}}(t)}var _s=Vi(),ms=Vi(!0);function gs(){return[]}function ys(){return!1}var bs=Zi((function(t,e){return t+e}),0),ws=Yi("ceil"),xs=Zi((function(t,e){return t/e}),1),ks=Yi("floor");var $s,Ss=Zi((function(t,e){return t*e}),1),Ls=Yi("round"),Is=Zi((function(t,e){return t-e}),0);return Nn.after=function(t,e){if("function"!=typeof e)throw new zt(o);return t=mu(t),function(){if(--t<1)return e.apply(this,arguments)}},Nn.ary=za,Nn.assign=xu,Nn.assignIn=ku,Nn.assignInWith=$u,Nn.assignWith=Su,Nn.at=Lu,Nn.before=Oa,Nn.bind=Ea,Nn.bindAll=ns,Nn.bindKey=ja,Nn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Va(t)?t:[t]},Nn.chain=va,Nn.chunk=function(t,e,n){e=(n?xo(t,e,n):e===i)?1:bn(mu(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var a=0,u=0,s=r(pe(o/e));ao?0:o+n),(r=r===i||r>o?o:mu(r))<0&&(r+=o),r=n>r?0:gu(r);n>>0)?(t=wu(t))&&("string"==typeof e||null!=e&&!su(e))&&!(e=fi(e))&&ln(t)?ki(_n(t),0,n):t.split(e,n):[]},Nn.spread=function(t,e){if("function"!=typeof t)throw new zt(o);return e=null==e?0:bn(mu(e),0),Xr((function(n){var r=n[e],i=ki(n,0,e);return r&&Te(i,r),Ie(t,this,i)}))},Nn.tail=function(t){var e=null==t?0:t.length;return e?oi(t,1,e):[]},Nn.take=function(t,e,n){return t&&t.length?oi(t,0,(e=n||e===i?1:mu(e))<0?0:e):[]},Nn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?oi(t,(e=r-(e=n||e===i?1:mu(e)))<0?0:e,r):[]},Nn.takeRightWhile=function(t,e){return t&&t.length?vi(t,co(e,3),!1,!0):[]},Nn.takeWhile=function(t,e){return t&&t.length?vi(t,co(e,3)):[]},Nn.tap=function(t,e){return e(t),t},Nn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new zt(o);return ru(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Da(t,e,{leading:r,maxWait:e,trailing:i})},Nn.thru=_a,Nn.toArray=vu,Nn.toPairs=Ru,Nn.toPairsIn=Nu,Nn.toPath=function(t){return Va(t)?Fe(t,Bo):fu(t)?[t]:Oi(Uo(wu(t)))},Nn.toPlainObject=bu,Nn.transform=function(t,e,n){var r=Va(t),i=r||Ja(t)||hu(t);if(e=co(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:ru(t)&&tu(o)?Wn(Vt(t)):{}}return(i?Ae:xr)(t,(function(t,r,i){return e(n,t,r,i)})),n},Nn.unary=function(t){return za(t,1)},Nn.union=ia,Nn.unionBy=oa,Nn.unionWith=aa,Nn.uniq=function(t){return t&&t.length?hi(t):[]},Nn.uniqBy=function(t,e){return t&&t.length?hi(t,co(e,2)):[]},Nn.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?hi(t,i,e):[]},Nn.unset=function(t,e){return null==t||di(t,e)},Nn.unzip=ua,Nn.unzipWith=sa,Nn.update=function(t,e,n){return null==t?t:pi(t,e,bi(n))},Nn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:pi(t,e,bi(n),r)},Nn.values=Wu,Nn.valuesIn=function(t){return null==t?[]:tn(t,Fu(t))},Nn.without=la,Nn.words=ts,Nn.wrap=function(t,e){return Ba(bi(e),t)},Nn.xor=ca,Nn.xorBy=fa,Nn.xorWith=ha,Nn.zip=da,Nn.zipObject=function(t,e){return gi(t||[],e||[],rr)},Nn.zipObjectDeep=function(t,e){return gi(t||[],e||[],ei)},Nn.zipWith=pa,Nn.entries=Ru,Nn.entriesIn=Nu,Nn.extend=ku,Nn.extendWith=$u,cs(Nn,Nn),Nn.add=bs,Nn.attempt=es,Nn.camelCase=Zu,Nn.capitalize=Ku,Nn.ceil=ws,Nn.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=yu(n))==n?n:0),e!==i&&(e=(e=yu(e))==e?e:0),lr(yu(t),e,n)},Nn.clone=function(t){return cr(t,4)},Nn.cloneDeep=function(t){return cr(t,5)},Nn.cloneDeepWith=function(t,e){return cr(t,5,e="function"==typeof e?e:i)},Nn.cloneWith=function(t,e){return cr(t,4,e="function"==typeof e?e:i)},Nn.conformsTo=function(t,e){return null==e||fr(t,e,Du(e))},Nn.deburr=Hu,Nn.defaultTo=function(t,e){return null==t||t!=t?e:t},Nn.divide=xs,Nn.endsWith=function(t,e,n){t=wu(t),e=fi(e);var r=t.length,o=n=n===i?r:lr(mu(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},Nn.eq=Wa,Nn.escape=function(t){return(t=wu(t))&&J.test(t)?t.replace(G,un):t},Nn.escapeRegExp=function(t){return(t=wu(t))&&ot.test(t)?t.replace(it,"\\$&"):t},Nn.every=function(t,e,n){var r=Va(t)?Oe:_r;return n&&xo(t,e,n)&&(e=i),r(t,co(e,3))},Nn.find=ya,Nn.findIndex=Ho,Nn.findKey=function(t,e){return Re(t,co(e,3),xr)},Nn.findLast=ba,Nn.findLastIndex=Vo,Nn.findLastKey=function(t,e){return Re(t,co(e,3),kr)},Nn.floor=ks,Nn.forEach=wa,Nn.forEachRight=xa,Nn.forIn=function(t,e){return null==t?t:br(t,co(e,3),Fu)},Nn.forInRight=function(t,e){return null==t?t:wr(t,co(e,3),Fu)},Nn.forOwn=function(t,e){return t&&xr(t,co(e,3))},Nn.forOwnRight=function(t,e){return t&&kr(t,co(e,3))},Nn.get=Au,Nn.gt=Za,Nn.gte=Ka,Nn.has=function(t,e){return null!=t&&go(t,e,Ar)},Nn.hasIn=zu,Nn.head=Go,Nn.identity=as,Nn.includes=function(t,e,n,r){t=Ga(t)?t:Wu(t),n=n&&!r?mu(n):0;var i=t.length;return n<0&&(n=bn(i+n,0)),cu(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&We(t,e,n)>-1},Nn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:mu(n);return i<0&&(i=bn(r+i,0)),We(t,e,i)},Nn.inRange=function(t,e,n){return e=_u(e),n===i?(n=e,e=0):n=_u(n),function(t,e,n){return t>=wn(e,n)&&t=-9007199254740991&&t<=p},Nn.isSet=lu,Nn.isString=cu,Nn.isSymbol=fu,Nn.isTypedArray=hu,Nn.isUndefined=function(t){return t===i},Nn.isWeakMap=function(t){return iu(t)&&mo(t)==j},Nn.isWeakSet=function(t){return iu(t)&&"[object WeakSet]"==Ir(t)},Nn.join=function(t,e){return null==t?"":Be.call(t,e)},Nn.kebabCase=Vu,Nn.last=Qo,Nn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=mu(n))<0?bn(r+o,0):wn(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):Ne(t,Ke,o,!0)},Nn.lowerCase=qu,Nn.lowerFirst=Gu,Nn.lt=du,Nn.lte=pu,Nn.max=function(t){return t&&t.length?mr(t,as,Cr):i},Nn.maxBy=function(t,e){return t&&t.length?mr(t,co(e,2),Cr):i},Nn.mean=function(t){return He(t,as)},Nn.meanBy=function(t,e){return He(t,co(e,2))},Nn.min=function(t){return t&&t.length?mr(t,as,Br):i},Nn.minBy=function(t,e){return t&&t.length?mr(t,co(e,2),Br):i},Nn.stubArray=gs,Nn.stubFalse=ys,Nn.stubObject=function(){return{}},Nn.stubString=function(){return""},Nn.stubTrue=function(){return!0},Nn.multiply=Ss,Nn.nth=function(t,e){return t&&t.length?Kr(t,mu(e)):i},Nn.noConflict=function(){return ve._===this&&(ve._=Rt),this},Nn.noop=fs,Nn.now=Aa,Nn.pad=function(t,e,n){t=wu(t);var r=(e=mu(e))?vn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Hi(_e(i),n)+t+Hi(pe(i),n)},Nn.padEnd=function(t,e,n){t=wu(t);var r=(e=mu(e))?vn(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var o=$n();return wn(t+o*(e-t+fe("1e-"+((o+"").length-1))),e)}return Yr(t,e)},Nn.reduce=function(t,e,n){var r=Va(t)?Me:Ge,i=arguments.length<3;return r(t,co(e,4),n,i,pr)},Nn.reduceRight=function(t,e,n){var r=Va(t)?Pe:Ge,i=arguments.length<3;return r(t,co(e,4),n,i,vr)},Nn.repeat=function(t,e,n){return e=(n?xo(t,e,n):e===i)?1:mu(e),Jr(wu(t),e)},Nn.replace=function(){var t=arguments,e=wu(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Nn.result=function(t,e,n){var r=-1,o=(e=wi(e,t)).length;for(o||(o=1,t=i);++rp)return[];var n=_,r=wn(t,_);e=co(e),t-=_;for(var i=Je(r,e);++n=a)return t;var s=n-vn(r);if(s<1)return r;var l=u?ki(u,0,s).join(""):t.slice(0,s);if(o===i)return l+r;if(u&&(s+=l.length-s),su(o)){if(t.slice(s).search(o)){var c,f=l;for(o.global||(o=Ct(o.source,wu(vt.exec(o))+"g")),o.lastIndex=0;c=o.exec(f);)var h=c.index;l=l.slice(0,h===i?s:h)}}else if(t.indexOf(fi(o),s)!=s){var d=l.lastIndexOf(o);d>-1&&(l=l.slice(0,d))}return l+r},Nn.unescape=function(t){return(t=wu(t))&&Y.test(t)?t.replace(q,gn):t},Nn.uniqueId=function(t){var e=++Mt;return wu(t)+e},Nn.upperCase=Xu,Nn.upperFirst=Qu,Nn.each=wa,Nn.eachRight=xa,Nn.first=Go,cs(Nn,($s={},xr(Nn,(function(t,e){Tt.call(Nn.prototype,e)||($s[e]=t)})),$s),{chain:!1}),Nn.VERSION="4.17.21",Ae(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Nn[t].placeholder=Nn})),Ae(["drop","take"],(function(t,e){Hn.prototype[t]=function(n){n=n===i?1:bn(mu(n),0);var r=this.__filtered__&&!e?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,_),type:t+(r.__dir__<0?"Right":"")}),r},Hn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ae(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Hn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:co(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Ae(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Hn.prototype[t]=function(){return this[n](1).value()[0]}})),Ae(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Hn.prototype[t]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(as)},Hn.prototype.find=function(t){return this.filter(t).head()},Hn.prototype.findLast=function(t){return this.reverse().find(t)},Hn.prototype.invokeMap=Xr((function(t,e){return"function"==typeof t?new Hn(this):this.map((function(n){return Er(n,t,e)}))})),Hn.prototype.reject=function(t){return this.filter(Pa(co(t)))},Hn.prototype.slice=function(t,e){t=mu(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Hn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=mu(e))<0?n.dropRight(-e):n.take(e-t)),n)},Hn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Hn.prototype.toArray=function(){return this.take(_)},xr(Hn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=Nn[r?"take"+("last"==e?"Right":""):e],a=r||/^find/.test(e);o&&(Nn.prototype[e]=function(){var e=this.__wrapped__,u=r?[1]:arguments,s=e instanceof Hn,l=u[0],c=s||Va(e),f=function(t){var e=o.apply(Nn,Te([t],u));return r&&h?e[0]:e};c&&n&&"function"==typeof l&&1!=l.length&&(s=c=!1);var h=this.__chain__,d=!!this.__actions__.length,p=a&&!h,v=s&&!d;if(!a&&c){e=v?e:new Hn(this);var _=t.apply(e,u);return _.__actions__.push({func:_a,args:[f],thisArg:i}),new Kn(_,h)}return p&&v?t.apply(this,u):(_=this.thru(f),p?r?_.value()[0]:_.value():_)})})),Ae(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Ot[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Nn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Va(i)?i:[],t)}return this[n]((function(n){return e.apply(Va(n)?n:[],t)}))}})),xr(Hn.prototype,(function(t,e){var n=Nn[e];if(n){var r=n.name+"";Tt.call(jn,r)||(jn[r]=[]),jn[r].push({name:e,func:n})}})),jn[Ni(i,2).name]=[{name:"wrapper",func:i}],Hn.prototype.clone=function(){var t=new Hn(this.__wrapped__);return t.__actions__=Oi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Oi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Oi(this.__views__),t},Hn.prototype.reverse=function(){if(this.__filtered__){var t=new Hn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Hn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Va(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},Nn.prototype.plant=function(t){for(var e,n=this;n instanceof Zn;){var r=No(n);r.__index__=0,r.__values__=i,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},Nn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Hn){var e=t;return this.__actions__.length&&(e=new Hn(this)),(e=e.reverse()).__actions__.push({func:_a,args:[ra],thisArg:i}),new Kn(e,this.__chain__)}return this.thru(ra)},Nn.prototype.toJSON=Nn.prototype.valueOf=Nn.prototype.value=function(){return _i(this.__wrapped__,this.__actions__)},Nn.prototype.first=Nn.prototype.head,Xt&&(Nn.prototype[Xt]=function(){return this}),Nn}();ve._=yn,(r=function(){return yn}.call(e,n,e,t))===i||(t.exports=r)}.call(this)},81034:(t,e,n)=>{"use strict";n.d(e,{Z:()=>f});const r={name:"ResizeLine",props:{value:{},min:{type:Number,default:100},max:{type:Number,default:600},placement:{validator:function(t){return["right","bottom"].includes(t)},default:"bottom"},reverse:{type:Boolean,default:!1},beforeResize:Function},data:function(){return{resizing:!1,mouseX:0,mouseY:0,offset:{},tmpSize:void 0}},mounted:function(){document.documentElement.addEventListener("mousemove",this.handleMove,!0),document.documentElement.addEventListener("mouseup",this.handleUp,!0)},methods:{resizeDown:function(t){var e=this;if(this.beforeResize){var n=this.beforeResize();n&&n.then?n.then((function(n){e.handleDown(t)})):this.handleDown(t)}else this.handleDown(t)},handleDown:function(t){this.mouseX=t.pageX||t.clientX+document.documentElement.scrollLeft,this.mouseY=t.pageY||t.clientY+document.documentElement.scrollTop,this.offset={left:t.target.offsetLeft,top:t.target.offsetTop},this.resizing=!0,"number"==typeof this.value&&(this.tmpSize=this.value),this.$emit("on-change",{event:"down"})},handleMove:function(t){if(this.resizing){var e,n=(t.pageX||t.clientX+document.documentElement.scrollLeft)-this.mouseX,r=(t.pageY||t.clientY+document.documentElement.scrollTop)-this.mouseY;if("number"==typeof this.tmpSize)e="bottom"==this.placement?this.reverse?this.tmpSize-r:this.tmpSize+r:this.reverse?this.tmpSize-n:this.tmpSize+n,this.min>0&&(e=Math.max(this.min,e)),this.max>0&&(e=Math.min(this.max,e)),this.$emit("input",e);this.$emit("on-change",{event:"move",diff:{x:n,y:r},offset:this.offset})}},handleUp:function(){this.resizing&&(this.resizing=!1,this.tmpSize=void 0,this.$emit("on-change",{event:"up"}))}}};var i=n(93379),o=n.n(i),a=n(92307),u={insert:"head",singleton:!1};o()(a.Z,u);a.Z.locals;var s=n(51900);const l={name:"DrawerOverlayView",components:{ResizeLine:(0,s.Z)(r,(function(){var t=this;return(0,t._self._c)("div",{staticClass:"component-resize-line",class:[t.resizing?"resizing":"",t.placement],on:{mousedown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.resizeDown.apply(null,arguments))}}})}),[],!1,null,"5a37a7e8",null).exports},props:{placement:{validator:function(t){return["right","bottom"].includes(t)},default:"bottom"},size:{type:[Number,String],default:"100%"},minSize:{type:Number,default:300},resize:{type:Boolean,default:!0}},data:function(){return{dynamicSize:0}},computed:{bodyStyle:function(){var t=this.dynamicSize;return t="".concat(t,t<=100?"%":"px"),"right"==this.placement?{width:t,height:"100%"}:{width:"100%",height:t}}},watch:{size:{handler:function(t){this.dynamicSize=parseInt(t)},immediate:!0}},methods:{onClose:function(){this.$emit("on-close")},beforeResize:function(){var t=this;return new Promise((function(e){t.dynamicSize<=100&&t.updateSize(),e()}))},onChangeResize:function(t){"up"===t.event&&this.updateSize()},updateSize:function(){"bottom"===this.placement?this.dynamicSize=this.$refs.body.clientHeight:this.dynamicSize=this.$refs.body.clientWidth}}};const c={name:"DrawerOverlay",components:{DrawerOverlayView:(0,s.Z)(l,(function(){var t=this,e=t._self._c;return e("div",{ref:"body",staticClass:"overlay-body",style:t.bodyStyle},[e("div",{staticClass:"overlay-close"},[e("a",{attrs:{href:"javascript:void(0)"},on:{click:function(e){return e.stopPropagation(),t.onClose.apply(null,arguments)}}},[e("svg",{staticClass:"icon fill-current",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 26 26",fill:"none",role:"img"}},[e("path",{attrs:{d:"M8.28596 6.51819C7.7978 6.03003 7.00634 6.03003 6.51819 6.51819C6.03003 7.00634 6.03003 7.7978 6.51819 8.28596L11.2322 13L6.51819 17.714C6.03003 18.2022 6.03003 18.9937 6.51819 19.4818C7.00634 19.97 7.7978 19.97 8.28596 19.4818L13 14.7678L17.714 19.4818C18.2022 19.97 18.9937 19.97 19.4818 19.4818C19.97 18.9937 19.97 18.2022 19.4818 17.714L14.7678 13L19.4818 8.28596C19.97 7.7978 19.97 7.00634 19.4818 6.51819C18.9937 6.03003 18.2022 6.03003 17.714 6.51819L13 11.2322L8.28596 6.51819Z",fill:"currentColor"}})])])]),t._v(" "),t.resize?e("ResizeLine",{staticClass:"overlay-resize",attrs:{placement:t.placement,min:t.minSize,max:0,reverse:!0,beforeResize:t.beforeResize},on:{"on-change":t.onChangeResize},model:{value:t.dynamicSize,callback:function(e){t.dynamicSize=e},expression:"dynamicSize"}}):t._e(),t._v(" "),e("div",{staticClass:"overlay-content"},[t._t("default")],2)],1)}),[],!1,null,null,null).exports},props:{value:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},escClosable:{type:Boolean,default:!0},placement:{validator:function(t){return["right","bottom"].includes(t)},default:"bottom"},size:{type:[Number,String],default:"100%"},minSize:{type:Number,default:300},resize:{type:Boolean,default:!0},className:{type:String},beforeClose:Function},data:function(){return{show:this.value}},watch:{value:function(t){this.show=t},show:function(t){this.value!==t&&this.$emit("input",t)}},computed:{modalClass:function(){return this.className?"common-drawer-overlay ".concat(this.className," ").concat(this.placement):"common-drawer-overlay ".concat(this.placement)}},methods:{onClose:function(){this.$refs.modal.close()}}};const f=(0,s.Z)(c,(function(){var t=this,e=t._self._c;return e("Modal",{ref:"modal",attrs:{closable:t.escClosable,"mask-closable":t.maskClosable,"footer-hide":!0,"transition-names":[t.$A.isAndroid()?"":"drawer-slide-".concat(t.placement),""],beforeClose:t.beforeClose,fullscreen:"","class-name":t.modalClass},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e("DrawerOverlayView",{attrs:{placement:t.placement,size:t.size,minSize:t.minSize,resize:t.resize},on:{"on-close":t.onClose}},[t._t("default")],2)],1)}),[],!1,null,null,null).exports},60935:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(80641);const i={name:"UserInput",props:{value:{type:[String,Number,Array],default:""},uncancelable:{type:Array,default:function(){return[]}},disabledChoice:{type:Array,default:function(){return[]}},placeholder:{default:""},size:{default:"default"},transfer:{type:Boolean,default:!0},multipleMax:{type:Number},maxHiddenInput:{type:Boolean,default:!0},maxHiddenSelect:{type:Boolean,default:!1},projectId:{type:Number,default:0},noProjectId:{type:Number,default:0},dialogId:{type:Number,default:0},showBot:{type:Boolean,default:!1}},data:function(){return{loadIng:0,selects:[],list:[],multipleCheck:!1,searchKey:null,searchHistory:[],subscribe:null}},mounted:function(){var t=this;this.subscribe=r.Store.subscribe("cacheUserActive",(function(e){var n=t.list.findIndex((function(t){return t.userid==e.userid}));n>-1&&(t.$set(t.list,n,Object.assign({},t.list[n],e)),t.handleSelectData())}))},beforeDestroy:function(){this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},computed:{maxHiddenClass:function(){var t=this.multipleMax,e=this.maxHiddenInput,n=this.selects;return t&&e&&n.length>=t?"hidden-input":""}},watch:{value:{handler:function(){var t=this,e=this._tmpId=$A.randomString(6);setTimeout((function(){e===t._tmpId&&t.valueChange()}),10)},immediate:!0},selects:function(t){this.$emit("input",t),this.maxHiddenSelect&&t.length>=this.maxHiddenSelect&&this.$refs.select&&this.$refs.select.hideMenu(),this.calcMultipleSelect()}},methods:{searchUser:function(t){var e=this;"string"!=typeof t&&(t=""),this.searchKey=t;var n=this.searchHistory.find((function(e){return e.key==t}));n&&(this.list=n.data,this.calcMultipleSelect()),n||this.loadIng++,setTimeout((function(){e.searchKey==t?e.$store.dispatch("call",{url:"users/search",data:{keys:{key:t,project_id:e.projectId,no_project_id:e.noProjectId,dialog_id:e.dialogId,bot:e.showBot?2:0},take:50}}).then((function(n){var r=n.data;e.list=r,e.calcMultipleSelect();var i=e.searchHistory.findIndex((function(e){return e.key==t})),o={key:t,data:r,time:$A.Time()};i>-1?e.searchHistory.splice(i,1,o):e.searchHistory.push(o)})).catch((function(t){var n=t.msg;e.list=[],e.calcMultipleSelect(),$A.messageWarning(n)})).finally((function(t){n||e.loadIng--})):n||e.loadIng--}),this.searchHistory.length>0?300:0)},isDisabled:function(t){return 0!==this.disabledChoice.length&&this.disabledChoice.includes(t)},openChange:function(t){t&&this.$nextTick(this.searchUser),this.calcMultipleSelect()},remoteMethod:function(){},valueChange:function(){var t=this;this.selects!=this.value&&($A.isArray(this.value)?this.selects=$A.cloneJSON(this.value):this.value?this.selects=[this.value]:this.selects=[],this.selects.some((function(e){t.list.find((function(t){return t.userid==e}))||(t.list.push({userid:e,nickname:e}),t.calcMultipleSelect(),t.$store.dispatch("getUserBasic",{userid:e}))})))},handleSelectData:function(){var t=this;this.__handleSelectTimeout&&clearTimeout(this.__handleSelectTimeout),this.__handleSelectTimeout=setTimeout((function(){if(t.$refs.select){var e=t.$refs.select.getValue();e&&e.some((function(e){var n=t.list.find((function(t){return t.userid==e.value}));n&&(t.$set(e,"label",n.nickname),t.$set(e,"avatar",n.userimg))}))}}),100)},calcMultipleSelect:function(){var t=this;this.multipleMax&&this.list.length>0?(this.calcMultipleTime&&clearTimeout(this.calcMultipleTime),this.calcMultipleTime=setTimeout((function(e){var n=!0;t.$refs.select.selectOptions.some((function(e){var r=e.componentInstance;t.selects.includes(r.value)||(n=!1)})),t.multipleCheck=n}),10)):this.multipleCheck=!1},onMultipleChange:function(t){var e=this;if(t){var n=this.multipleMax-this.selects.length;this.$refs.select.selectOptions.some((function(t){var r=t.componentInstance;if(e.multipleMax&&n<=0)return e.$nextTick((function(t){$A.messageWarning("已超过最大选择数量"),e.multipleCheck=!1})),!0;e.selects.includes(r.value)||(r.select(),n--)}))}else this.selects=[]}}};const o=(0,n(51900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",{class:["common-user",t.maxHiddenClass]},[e("Select",{ref:"select",attrs:{transfer:t.transfer,placeholder:t.placeholder,size:t.size,loading:t.loadIng>0,"loading-text":t.$L("加载中..."),"default-label":t.value,"default-event-object":!0,"multiple-max":t.multipleMax,"multiple-uncancelable":t.uncancelable,"remote-method":t.remoteMethod,multiple:"",filterable:"","transfer-class-name":"common-user-transfer"},on:{"on-query-change":t.searchUser,"on-open-change":t.openChange},model:{value:t.selects,callback:function(e){t.selects=e},expression:"selects"}},[t.multipleMax?e("div",{staticClass:"user-drop-prepend",attrs:{slot:"drop-prepend"},slot:"drop-prepend"},[e("div",{staticClass:"user-drop-text"},[t._v("\n "+t._s(t.$L("最多只能选择"+t.multipleMax+"个"))+"\n "),t.selects.length?e("em",[t._v("("+t._s(t.$L("已选".concat(t.selects.length,"个")))+")")]):t._e()]),t._v(" "),e("Checkbox",{staticClass:"user-drop-check",on:{"on-change":t.onMultipleChange},model:{value:t.multipleCheck,callback:function(e){t.multipleCheck=e},expression:"multipleCheck"}})],1):t._e(),t._v(" "),t._t("option-prepend"),t._v(" "),t._l(t.list,(function(n,r){return e("Option",{key:r,attrs:{value:n.userid,"key-value":n.email,label:n.nickname,avatar:n.userimg,disabled:t.isDisabled(n.userid)}},[e("div",{staticClass:"user-input-option"},[e("div",{staticClass:"user-input-avatar"},[e("EAvatar",{staticClass:"avatar",attrs:{src:n.userimg}})],1),t._v(" "),n.bot?e("div",{staticClass:"taskfont user-input-bot"},[t._v("")]):t._e(),t._v(" "),e("div",{staticClass:"user-input-nickname"},[t._v(t._s(n.nickname))]),t._v(" "),e("div",{staticClass:"user-input-userid"},[t._v("ID: "+t._s(n.userid))])])])}))],2),t._v(" "),t.loadIng>0?e("div",{staticClass:"common-user-loading"},[e("Loading")],1):t._e()],1)}),[],!1,null,null,null).exports},9994:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var r=n(60935),i=n(20629);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e0||e.todo_num>0?e.todo_num-t.todo_num:$A.Date(e.last_at)-$A.Date(t.last_at)}))}})};const c=(0,n(51900).Z)(l,(function(){var t=this,e=t._self._c;return e("Form",{ref:"forwardForm",attrs:{model:t.value,"label-width":"auto"},nativeOn:{submit:function(t){t.preventDefault()}}},[e("FormItem",{attrs:{prop:"dialogids",label:t.$L("最近聊天")}},[e("Select",{staticClass:"dialog-wrapper-dialogids",attrs:{placeholder:t.$L("选择转发最近聊天"),"multiple-max":20,multiple:"",filterable:"","transfer-class-name":"dialog-wrapper-forward"},model:{value:t.value.dialogids,callback:function(e){t.$set(t.value,"dialogids",e)},expression:"value.dialogids"}},[e("div",{staticClass:"forward-drop-prepend",attrs:{slot:"drop-prepend"},slot:"drop-prepend"},[t._v(t._s(t.$L("最多只能选择20个")))]),t._v(" "),t._l(t.dialogList,(function(n,r){return e("Option",{key:r,attrs:{value:n.id,"key-value":n.name,label:n.name}},[e("div",{staticClass:"forward-option"},[e("div",{staticClass:"forward-avatar"},["group"==n.type?["department"==n.group_type?e("i",{staticClass:"taskfont icon-avatar department"},[t._v("")]):"project"==n.group_type?e("i",{staticClass:"taskfont icon-avatar project"},[t._v("")]):"task"==n.group_type?e("i",{staticClass:"taskfont icon-avatar task"},[t._v("")]):e("Icon",{staticClass:"icon-avatar",attrs:{type:"ios-people"}})]:n.dialog_user?e("div",{staticClass:"user-avatar"},[e("UserAvatar",{attrs:{userid:n.dialog_user.userid,size:26}})],1):e("Icon",{staticClass:"icon-avatar",attrs:{type:"md-person"}})],2),t._v(" "),e("div",{staticClass:"forward-name"},[t._v(t._s(n.name))])])])}))],2)],1),t._v(" "),e("FormItem",{attrs:{prop:"userids",label:t.$L("指定成员")}},[e("UserInput",{attrs:{"multiple-max":20,placeholder:"(".concat(t.$L("或"),") ").concat(t.$L("选择转发指定成员"))},model:{value:t.value.userids,callback:function(e){t.$set(t.value,"userids",e)},expression:"value.userids"}})],1)],1)}),[],!1,null,null,null).exports},80380:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>b});var r=n(20629),i=n(96486),o=n(60935),a=n(81034),u=n(82478),s=n(8251),l=n(9994);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(u&&s){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;L(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:C(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function v(t,e,n,r,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return void n(t)}u.done?e(s):Promise.resolve(s).then(r,i)}function _(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){v(o,r,i,a,u,"next",t)}function u(t){v(o,r,i,a,u,"throw",t)}a(void 0)}))}}var m={sort:null,mode:null};const g={components:{DialogSelect:l.Z,PreviewImage:u.Z,FilePreview:function(){return n.e(889).then(n.bind(n,36889))},DrawerOverlay:a.Z,UserInput:o.Z,FileContent:function(){return n.e(156).then(n.bind(n,13156))}},directives:{longpress:s.Z},data:function(){return{loadIng:0,searchKey:"",searchTimeout:null,types:[{value:"folder",label:"新建文件夹",name:"文件夹"},{value:"upload",label:"上传文件",name:null,divided:!0},{value:"updir",label:"上传文件夹",name:null},{value:"document",label:"文本",name:"文本",divided:!0},{value:"drawio",label:"图表",name:"图表"},{value:"mind",label:"思维导图",name:"导图"},{value:"word",label:"Word 文档",name:"Word",divided:!0},{value:"excel",label:"Excel 工作表",name:"Excel"},{value:"ppt",label:"PPT 演示文稿",name:"PPT"}],tableMode:"",columns:[],shareShow:!1,shareInfo:{id:0,userid:0,permission:1},shareList:[],shareLoad:0,sendShow:!1,sendLoad:!1,sendData:{dialogids:[],userids:[]},linkShow:!1,linkData:{},linkLoad:0,fileShow:!1,fileInfo:{permission:-1},imageShow:!1,imageIndex:0,imageList:[],uploadDir:!1,uploadIng:0,uploadShow:!1,uploadList:[],uploadFormat:[],uploadAccept:"",maxSize:1024e3,contextMenuItem:{},contextMenuVisible:!1,contextMenuStyles:{top:0,left:0},shearIds:[],selectIds:[],dialogDrag:!1,pasteShow:!1,pasteFile:[],pasteItem:[]}},beforeRouteEnter:function(t,e,n){return _(p().mark((function t(){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,$A.IDBJson("cacheFileSort");case 2:return m.sort=t.sent,t.next=5,$A.IDBString("fileTableMode");case 5:m.mode=t.sent,n();case 7:case"end":return t.stop()}}),t)})))()},created:function(){var t=this;this.tableMode=m.mode,this.columns=[{type:"selection",width:50,align:"right"},{title:this.$L("文件名"),key:"name",minWidth:300,sortable:!0,render:function(e,n){var r=n.row,i=[];if(!/^\d+$/.test(r.id))return i.push(e("Input",{props:{elementId:"input_"+r.id,value:r.newname,autofocus:!0,disabled:!!r._load},style:{width:"auto"},on:{"on-change":function(t){r.newname=t.target.value},"on-blur":function(){var e=t.fileLists.find((function(t){return t.id==r.id}));e&&(e.newname=r.newname,t.onBlur(e))},"on-enter":function(){var e=t.fileLists.find((function(t){return t.id==r.id}));e&&(e.newname=r.newname,t.onEnter(e))}}})),e("div",{class:"file-nbox"},[e("div",{class:"no-dark-before file-name file-icon ".concat(r.type)},i)]);i.push(e("QuickEdit",{props:{value:r.name,autoEdit:!!r._edit,clickOutSide:!1},on:{"on-edit-change":function(e){var n=t.fileLists.find((function(t){return t.id==r.id}));n&&setTimeout((function(){t.setEdit(n.id,e)}),100)},"on-update":function(e,n){var i=t.fileLists.find((function(t){return t.id==r.id}));i&&(i.newname=e,t.onEnter(i)),n()}}},[e("AutoTip",{props:{placement:"right"}},$A.getFileName(r))]));var o=[];r.share?r.userid!=t.userId?o.push(e("UserAvatar",{props:{userid:r.userid,size:20}})):o.push(e("i",{class:"taskfont",domProps:{innerHTML:""}})):t.isParentShare&&o.push(e("UserAvatar",{props:{userid:r.created_id,size:20}},[r.created_id!=r.userid?e("p",[e("strong",t.$L("成员创建于")+": "+r.created_at)]):e("p",t.$L("所有者创建")+": "+r.created_at)]));var a=t.shearIds.includes(r.id)?" shear":"",u=r.share?" share":"";return e("div",{class:"file-nbox".concat(a),attrs:{"data-id":r.id}},[e("div",{class:"no-dark-before file-name file-icon ".concat(r.type).concat(u)},i),o])}},{title:this.$L("大小"),key:"size",width:110,resizable:!0,sortable:!0,render:function(t,e){var n=e.row;return"folder"==n.type?t("div","-"):t("AutoTip",$A.bytesToSize(n.size))}},{title:this.$L("类型"),key:"type",width:110,resizable:!0,sortable:!0,render:function(e,n){var r=n.row,i=t.types.find((function(t){var e=t.value,n=t.name;return e==r.type&&n}));return i?e("AutoTip",t.$L(i.name)):e("div",(r.ext||r.type).toUpperCase())}},{title:this.$L("所有者"),key:"userid",width:130,resizable:!0,sortable:!0,render:function(t,e){return t("UserAvatar",{props:{size:18,userid:e.row.userid,showIcon:!1,showName:!0}})}},{title:this.$L("最后修改"),key:"updated_at",width:168,resizable:!0,sortable:!0}].map((function(t){return t.key===m.sort.key&&(t.sortType=m.sort.order),t}))},mounted:function(){!this.tableMode&&this.$isEEUiApp&&(this.tableMode="block"),this.uploadAccept=this.uploadFormat.map((function(t){return"."+t})).join(",")},activated:function(){this.getFileList()},computed:h(h({},(0,r.rn)(["userIsAdmin","userInfo","fileLists","wsOpenNum"])),{},{pid:function(){var t=this.$route.params.folderId;return parseInt(/^\d+$/.test(t)?t:0)},fid:function(){var t=this.$route.params.fileId;return parseInt(/^\d+$/.test(t)?t:0)},actionUrl:function(){return $A.apiUrl("file/content/upload?pid="+this.pid)},headers:function(){return{fd:$A.getSessionStorageString("userWsFd"),token:this.userToken}},shareAlready:function(){var t=this.shareList?this.shareList.map((function(t){return t.userid})):[];return this.shareInfo.userid&&t.push(this.shareInfo.userid),t},fileList:function(){var t=this.fileLists,e=this.searchKey,n=this.pid,r=this.selectIds,o=$A.cloneJSON((0,i.sortBy)(t.filter((function(t){return e?-1!==t.name.indexOf(e):t.pid==n})),(function(t){return("folder"==t.type?"a":"b")+t.name})));return o.map((function(t){return t._checked=r.includes(t.id),t}))},shearFirst:function(){var t=this.fileLists,e=this.shearIds;return 0===e.length?null:t.find((function(t){return t.id==e[0]}))},navigator:function(){for(var t=this.pid,e=this.fileLists,n=[];t>0;){var r=e.find((function(e){var n=e.id,r=e.permission;return n==t&&r>-1}));r?(n.unshift(r),t=r.pid):t=0}return n},isPreview:function(){return this.windowSmall||0===this.fileInfo.permission},isParentShare:function(){return!!this.navigator.find((function(t){return t.share}))},pasteTitle:function(){var t=this.pasteItem,e=t.find((function(t){return"image"==t.type})),n=t.find((function(t){return"image"!=t.type}));return e&&n?"上传文件/图片":e?"上传图片":"上传文件"},pasteWrapperClass:function(){return this.pasteItem.find((function(t){return"image"!==t.type}))?["multiple"]:[]},tableHeight:function(){return this.windowLarge?Math.max(300,this.windowHeight-160):Math.max(300,this.windowHeight-200)}}),watch:{pid:function(){this.searchKey="",this.selectIds=[],this.getFileList()},fid:function(){this.openFileJudge()},tableMode:function(t){$A.IDBSave("fileTableMode",t)},fileShow:function(t){t||(this.browseFile(0),this.windowSmall&&$A.onBlur(!0))},imageShow:function(t){t||this.browseFile(0)},navigator:{handler:function(){var t=this;this.$nextTick((function(e){t.$refs["nav_".concat(t.pid)]&&$A.scrollToView(t.$refs["nav_".concat(t.pid)][0],!1)}))},immediate:!0},selectIds:{handler:function(t){t.length>0&&(this.shearIds=[])},deep:!0},shearIds:{handler:function(t){t.length>0&&(this.selectIds=[])},deep:!0},wsOpenNum:function(t){var e=this;t<=1||(this.wsOpenTimeout&&clearTimeout(this.wsOpenTimeout),this.wsOpenTimeout=setTimeout((function(){"manage-file"==e.$route.name&&e.getFileList()}),5e3))}},methods:{getFileList:function(){var t=this;"manage-file"===this.$route.name&&(this.loadIng++,this.$store.dispatch("getFiles",this.pid).then(_(p().mark((function e(){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loadIng--,t.openFileJudge(),e.next=4,$A.IDBSet("fileFolderId",t.pid);case 4:case"end":return e.stop()}}),e)})))).catch((function(e){var n=e.msg;t.loadIng--,$A.modalError({content:n,onOk:function(){t.browseFolder(0)}})})))},addFile:function(t){if(t){if("upload"==t)return this.uploadDir=!1,void this.$refs.fileUpload.handleClick();if("updir"==t)return this.uploadDir=!0,void this.$refs.dirUpload.handleClick();var e=$A.randomString(8);this.fileLists.push({_edit:!0,pid:this.pid,id:e,type:t,name:"",newname:this.$L("未命名")}),this.autoBlur(e)}},handleLongpress:function(t,e){var n=$A.getAttr(e,"data-id"),r=this.fileList.find((function(t){return t.id==n}));r&&this.handleRightClick(t,r)},handleContextmenu:function(t){this.windowLarge&&this.handleRightClick(t)},handleRightClick:function(t,e,n){var r=this;this.contextMenuItem=$A.isJson(e)?e:{},this.contextMenuVisible&&this.handleClickContextMenuOutside(),this.$nextTick((function(){var e=r.$refs.fileWrapper.getBoundingClientRect();r.contextMenuStyles={left:"".concat(t.clientX-e.left,"px"),top:"".concat(t.clientY-e.top,"px")},!0===n&&(r.contextMenuStyles.top="".concat(t.target.clientHeight+t.target.offsetTop-5,"px")),r.contextMenuVisible=!0}))},browseFolder:function(t){t>0?this.goForward({name:"manage-file",params:{folderId:t,fileId:null}}):(this.searchKey="",this.goForward({name:"manage-file"}))},browseFile:function(t){t>0?this.goForward({name:"manage-file",params:{folderId:this.pid,fileId:t}}):this.browseFolder(this.pid)},openFileJudge:function(){var t=this;if("manage-file"!==this.$route.name)return this.fileShow=!1,void(this.imageShow=!1);if(this.fid<=0)return this.fileShow=!1,void(this.imageShow=!1);var e=this.fileList.find((function(e){return e.id===t.fid}));if(!e)return this.fileShow=!1,void(this.imageShow=!1);if(e.image_url){var n=this.fileList.filter((function(t){return!!t.image_url}));if(n.length>0)return this.imageIndex=n.findIndex((function(t){var n=t.id;return e.id===n})),this.imageList=n.map((function(t){return t.image_width?{src:t.image_url,width:t.image_width,height:t.image_height}:t.image_url})),void(this.imageShow=!0)}this.$Electron||this.$isEEUiApp?this.openFileSingle(e):(this.fileInfo=e,this.fileShow=!0)},openFileSingle:function(t){var e="/single/file/".concat(t.id);this.$Electron?this.$Electron.sendMessage("windowRouter",{name:"file-".concat(t.id),path:e,userAgent:"/hideenOfficeTitle/",force:!1,config:{title:$A.getFileName(t),titleFixed:!0,parent:null,width:Math.min(window.screen.availWidth,1440),height:Math.min(window.screen.availHeight,900)},webPreferences:{nodeIntegrationInSubFrames:"drawio"===t.type}}):this.$isEEUiApp?$A.eeuiAppOpenPage({pageType:"app",pageTitle:$A.getFileName(t),url:"web.js",params:{titleFixed:!0,url:$A.rightDelete(window.location.href,window.location.hash)+"#".concat(e)}}):window.open($A.apiUrl("..".concat(e))),this.browseFile(0)},clickRow:function(t,e){"selection"==e.type?this.dropFile(t,"select"):this.dropFile(t,"open")},handleContextMenu:function(t,e){this.handleRightClick(e,this.fileLists.find((function(e){return e.id===t.id}))||{})},handleContextClick:function(t){$A.leftExists(t,"new:")?this.addFile($A.leftDelete(t,"new:")):this.dropFile(this.contextMenuItem,t)},handleClickContextMenuOutside:function(){this.contextMenuVisible=!1},handleVisibleChangeMenu:function(t){var e=this.fileLists.find((function(t){return!!t._highlight}));e&&this.$set(e,"_highlight",!1),t&&this.contextMenuItem.id&&this.$set(this.contextMenuItem,"_highlight",!0)},dropFile:function(t,e){var n=this;switch(e){case"open":case"openCheckMenu":if("openCheckMenu"===e&&this.contextMenuVisible)return;if(this.fileList.findIndex((function(t){return!0===t._edit}))>-1)return;if(t._load)return;"folder"==t.type?this.browseFolder(t.id):this.browseFile(t.id);break;case"upperFolder":this.searchKey="",this.browseFolder(t.pid);break;case"select":var r=this.selectIds.findIndex((function(e){return e==t.id}));r>-1?this.selectIds.splice(r,1):this.selectIds.push(t.id);break;case"rename":this.setEdit(t.id,!0),this.autoBlur(t.id);break;case"copy":this.$store.dispatch("call",{url:"file/copy",data:{id:t.id}}).then((function(t){var e=t.data,r=t.msg;$A.messageSuccess(r),n.$store.dispatch("saveFile",e)})).catch((function(t){var e=t.msg;$A.modalError(e)}));break;case"shear":this.shearIds=[t.id];break;case"shearSelect":this.shearIds=$A.cloneJSON(this.selectIds);break;case"send":this.sendData={dialogids:[],userids:[],file_id:t.id},this.sendShow=!0;break;case"share":this.shareInfo={id:t.id,userid:t.userid,permission:1},this.shareList=[],this.shareShow=!0,this.getShare();break;case"outshare":$A.modalConfirm({content:"你确定要退出【"+t.name+"】共享成员吗?",loading:!0,onOk:function(){return new Promise((function(e,r){n.$store.dispatch("call",{url:"file/share/out",data:{id:t.id}}).then((function(r){var i=r.msg;e(i),n.$store.dispatch("forgetFile",t.id)})).catch((function(t){var e=t.msg;r(e)}))}))}});break;case"link":this.linkData={id:t.id,name:t.name},this.linkShow=!0,this.linkGet();break;case"download":if(!t.ext)return;$A.modalConfirm({title:"下载文件",content:"".concat(t.name,".").concat(t.ext," (").concat($A.bytesToSize(t.size),")"),okText:"立即下载",onOk:function(){n.$store.dispatch("downUrl",$A.apiUrl("file/content?id=".concat(t.id,"&down=yes")))}});break;case"delete":this.deleteFile([t.id])}},onSendFile:function(){var t=this;0!==$A.arrayLength(this.sendData.dialogids)||0!==$A.arrayLength(this.sendData.userids)?(this.sendLoad=!0,this.$store.dispatch("call",{url:"dialog/msg/sendfileid",data:this.sendData}).then((function(e){var n=e.data,r=e.msg;t.sendShow=!1,t.$store.dispatch("saveDialogMsg",n.msgs),t.$store.dispatch("updateDialogLastMsg",n.msgs),$A.messageSuccess(r)})).catch((function(t){var e=t.msg;$A.modalError(e)})).finally((function(e){t.sendLoad=!1}))):$A.messageWarning("请选择转发对话或成员")},linkGet:function(t){var e=this;this.linkLoad++,this.$store.dispatch("call",{url:"file/link",data:{id:this.linkData.id,refresh:!0===t?"yes":"no"}}).then((function(t){var n=t.data;e.linkData=Object.assign(n,{id:e.linkData.id,name:e.linkData.name}),e.linkFocus()})).catch((function(t){var n=t.msg;e.linkShow=!1,$A.modalError(n)})).finally((function(t){e.linkLoad--}))},linkCopy:function(){this.linkData.url&&(this.linkFocus(),this.$copyText(this.linkData.url).then((function(t){$A.messageSuccess("复制成功")})).catch((function(t){$A.messageError("复制失败")})))},linkFocus:function(){var t=this;this.$nextTick((function(e){t.$refs.linkInput.focus({cursor:"all"})}))},shearTo:function(){var t=this;if(0!=this.shearIds.length){if(this.isParentShare){var e=this.fileLists.find((function(e){var n=e.id;return e.share&&t.shearIds.includes(n)}));if(e)return void $A.modalError("".concat(e.name," 当前正在共享,无法移动到另一个共享文件夹内"))}this.$store.dispatch("call",{url:"file/move",data:{ids:this.shearIds,pid:this.pid}}).then((function(e){var n=e.data,r=e.msg;$A.messageSuccess(r),t.shearIds=[],t.$store.dispatch("saveFile",n)})).catch((function(t){var e=t.msg;$A.modalError(e)}))}},deleteFile:function(t){var e=this;if(0!==t.length){var n=this.fileLists.find((function(e){return e.id==t[0]}))||{},r=!t.find((function(t){return e.fileLists.find((function(e){return"folder"!=e.type&&e.id==t}))}))?"文件夹":"文件",i="【".concat(n.name,"】等").concat(t.length,"个").concat(r);1===t.length&&(i="【".concat(n.name,"】").concat(r)),$A.modalConfirm({title:"删除"+r,content:"你确定要删除"+i+"吗?",loading:!0,onOk:function(){return new Promise((function(n,r){e.$store.dispatch("call",{url:"file/remove",data:{ids:t}}).then((function(r){var i=r.msg;n(i),e.$store.dispatch("forgetFile",t),e.selectIds=e.selectIds.filter((function(e){return!t.includes(e)}))})).catch((function(t){var e=t.msg;r(e)}))}))}})}},autoBlur:function(t){var e=this;this.$nextTick((function(){if(e.$refs["input_"+t])e.$refs["input_"+t][0].focus({cursor:"all"});else if(document.getElementById("input_"+t)){var n=document.getElementById("input_"+t),r=n.value.length;n.focus(),n.setSelectionRange(0,r)}}))},onBlur:function(t){this.fileLists.find((function(e){var n=e.id,r=e._edit;return n==t.id&&!r}))||this.onEnter(t)},onKeyup:function(t,e){if(13===t.keyCode)this.onEnter(e);else if(27===t.keyCode){!/^\d+$/.test(e.id)?(e.newname="",this.$store.dispatch("forgetFile",e.id)):(this.setLoad(e.id,!1),this.setEdit(e.id,!1))}},onEnter:function(t){var e=this,n=!/^\d+$/.test(t.id);t.newname?t.newname!=t.name?t._load||(this.setLoad(t.id,!0),this.$store.dispatch("call",{url:"file/add",data:{id:n?0:t.id,pid:t.pid,name:t.newname,type:t.type}}).then((function(r){var i=r.data,o=r.msg;$A.messageSuccess(o),e.setLoad(t.id,!1),e.setEdit(t.id,!1),e.$store.dispatch("saveFile",i),n&&(e.$store.dispatch("forgetFile",t.id),e.shakeFile(i.id))})).catch((function(r){var i=r.msg;$A.modalError(i),e.setLoad(t.id,!1),n&&e.$store.dispatch("forgetFile",t.id)}))):this.setEdit(t.id,!1):n?this.$store.dispatch("forgetFile",t.id):this.setEdit(t.id,!1)},setEdit:function(t,e){var n=this.$store.state.fileLists.find((function(e){return e.id==t}));n&&(this.$set(n,"_edit",e),e&&this.$set(n,"newname",n.name))},setLoad:function(t,e){var n=this.$store.state.fileLists.find((function(e){return e.id==t}));n&&this.$set(n,"_load",e)},onSearchFocus:function(){var t=this;this.$nextTick((function(){t.$refs.searchInput.focus({cursor:"end"})}))},onSearchChange:function(){var t=this;this.searchTimeout&&clearTimeout(this.searchTimeout),""!=this.searchKey.trim()&&(this.searchTimeout=setTimeout((function(){t.loadIng++,t.$store.dispatch("searchFiles",t.searchKey.trim()).then((function(){t.loadIng--})).catch((function(){t.loadIng--}))}),600))},getShare:function(){var t=this;this.shareLoad++,this.$store.dispatch("call",{url:"file/share",data:{id:this.shareInfo.id}}).then((function(e){var n=e.data;n.id==t.shareInfo.id&&(t.shareList=n.list.map((function(t){return t._permission=t.permission,t})))})).catch((function(e){var n=e.msg;t.shareShow=!1,$A.modalError(n)})).finally((function(e){t.shareLoad--}))},onShare:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];0!=this.shareInfo.userids.length?(this.shareLoad++,this.$store.dispatch("call",{url:"file/share/update",data:Object.assign(this.shareInfo,{force:!0===e?1:0})}).then((function(e){var n=e.data,r=e.msg;$A.messageSuccess(r),t.$store.dispatch("saveFile",n),t.$set(t.shareInfo,"userids",[]),t.getShare()})).catch((function(e){var n=e.ret,r=e.msg;-3001===n?$A.modalConfirm({content:"此文件夹内已有共享文件夹,子文件的共享状态将被取消,是否继续?",onOk:function(){t.onShare(!0)}}):$A.modalError(r)})).finally((function(e){t.shareLoad--}))):$A.messageWarning("请选择共享成员")},upShare:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!0!==t.loading&&(t.loading=!0,this.$store.dispatch("call",{url:"file/share/update",data:{id:this.shareInfo.id,userids:[t.userid],permission:t.permission,force:!0===n?1:0}}).then((function(n){var r=n.data,i=n.msg;if(t.loading=!1,t._permission=t.permission,$A.messageSuccess(i),e.$store.dispatch("saveFile",r),-1===t.permission){var o=e.shareList.findIndex((function(e){return e.userid==t.userid}));o>-1&&e.shareList.splice(o,1)}})).catch((function(n){var r=n.ret,i=n.msg;t.loading=!1,-3001===r?$A.modalConfirm({content:"此文件夹内已有共享文件夹,子文件的共享状态将被取消,是否继续?",onOk:function(){e.upShare(t,!0)},onCancel:function(){t.permission=t._permission}}):(t.permission=t._permission,$A.modalError(i))})))},uploadName:function(t){return $A.getObject(t,"response.data.full_name")||t.name},handleTableSort:function(t){var e=t.key,n=t.order;$A.IDBSave("cacheFileSort",["asc","desc"].includes(n)?{key:e,order:n}:{})},handleTableSelect:function(t){this.selectIds=t.map((function(t){return t.id}))},clearSelect:function(){this.selectIds=[]},clearShear:function(){this.shearIds=[]},shakeFile:function(t){var e=this;this.$nextTick((function(n){var r=$A(e.$el).find('[data-id="'.concat(t,'"]'));r.length>0&&($A.scrollIntoViewIfNeeded(r[0]),$A(r[0]).addClass("common-shake"),setTimeout((function(t){return $A(r[0]).removeClass("common-shake")}),800))}))},pasteDragNext:function(t,e){var n=this,r="drag"===e?t.dataTransfer.files:t.clipboardData.files;(r=Array.prototype.slice.call(r)).length>0&&(t.preventDefault(),this.pasteFile=[],this.pasteItem=[],r.some((function(t){var e={type:$A.getMiddle(t.type,null,"/"),name:t.name,size:t.size,result:null};if("image"===e.type){var r=new FileReader;r.readAsDataURL(t),r.onload=function(r){var i=r.target;e.result=i.result,n.pasteFile.push(t),n.pasteItem.push(e),n.pasteShow=!0}}else n.pasteFile.push(t),n.pasteItem.push(e),n.pasteShow=!0})))},filePasteDrag:function(t,e){this.dialogDrag=!1,this.pasteDragNext(t,e)},fileDragOver:function(t,e){var n=this,r=this.__dialogDrag=$A.randomString(8);if(t){if("move"===e.dataTransfer.effectAllowed)return;this.dialogDrag=!0}else setTimeout((function(){r===n.__dialogDrag&&(n.dialogDrag=t)}),150)},pasteSend:function(){var t=this,e=[];this.pasteFile.some((function(n){e.find((function(t){return t===n.name}))||(e.push(n.name),t.$refs.fileUpload.upload(n))}))},fileBeforeClose:function(){var t=this;return new Promise((function(e){t.$refs.fileContent?t.$refs.fileContent.equalContent?e():$A.modalConfirm({content:"修改的内容尚未保存,确定要放弃修改吗?",cancelText:"取消",okText:"放弃",onOk:function(){e()}}):e()}))},uploadUpdate:function(t){var e=this;t.forEach((function(t){var n=e.uploadList.findIndex((function(e){return e.uid==t.uid}));n>-1?e.uploadList.splice(n,1,t):e.uploadList.unshift(t)}))},uploadClear:function(){this.uploadList=this.uploadList.filter((function(t){return"finished"!==t.status})),this.$refs.fileUpload.clearFiles(),this.$refs.dirUpload.clearFiles()},uploadPercentageParse:function(t){return parseInt(t,10)},handleProgress:function(t,e,n){void 0===e._uploadIng&&(e._uploadIng=!0,this.uploadIng++),this.uploadUpdate(n)},handleSuccess:function(t,e,n){this.uploadIng--,this.uploadUpdate(n),1===t.ret?this.$store.dispatch("saveFile",t.data):$A.modalWarning({title:"上传失败",content:"文件 "+e.name+" 上传失败,"+t.msg})},handleError:function(t,e,n){this.uploadIng--,this.uploadUpdate(n)},handleFormatError:function(t){this.uploadDir||$A.modalWarning({title:"文件格式不正确",content:"文件 "+t.name+" 格式不正确,仅支持上传:"+this.uploadFormat.join(",")})},handleMaxSize:function(t){$A.modalWarning({title:"超出文件大小限制",content:"文件 "+t.name+" 太大,不能超过:"+$A.bytesToSize(1024*this.maxSize)+"。"})},handleBeforeUpload:function(){return this.uploadShow=!0,!0}}},y=g;const b=(0,n(51900).Z)(y,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-file"},[e("PageTitle",{attrs:{title:t.$L("文件")}}),t._v(" "),e("div",{ref:"fileWrapper",staticClass:"file-wrapper"},[e("div",{staticClass:"file-head"},[e("div",{staticClass:"file-nav"},[e("h1",[t._v(t._s(t.$L("文件")))]),t._v(" "),0==t.loadIng?e("div",{staticClass:"file-refresh",on:{click:t.getFileList}},[e("i",{staticClass:"taskfont"},[t._v("")])]):t._e()]),t._v(" "),t.uploadList.length>0?e("div",{staticClass:"file-status",on:{click:function(e){t.uploadShow=!0}}},[t.uploadList.find((function(t){return"finished"!==t.status}))?e("Loading"):e("Button",{attrs:{shape:"circle",icon:"md-checkmark"}})],1):t._e(),t._v(" "),e("div",{class:["file-search",t.searchKey?"has-value":""],on:{click:t.onSearchFocus,mouseenter:t.onSearchFocus}},[e("Input",{ref:"searchInput",attrs:{suffix:"ios-search",placeholder:t.$L("搜索名称")},on:{"on-change":t.onSearchChange},model:{value:t.searchKey,callback:function(e){t.searchKey=e},expression:"searchKey"}})],1),t._v(" "),e("div",{staticClass:"file-add"},[e("Button",{attrs:{shape:"circle",icon:"md-add"},on:{click:function(e){return e.stopPropagation(),t.handleRightClick(e,null,!0)}}})],1)]),t._v(" "),e("div",{staticClass:"file-navigator"},[e("ul",{staticClass:"scrollbar-hidden"},[e("li",{on:{click:function(e){return t.browseFolder(0)}}},[e("span",[t._v(t._s(t.$L("全部文件")))])]),t._v(" "),t.searchKey?e("li",[t._v(t._s(t.$L("搜索"))+' "'+t._s(t.searchKey)+'"')]):t._l(t.navigator,(function(n){return e("li",{ref:"nav_".concat(n.id),refInFor:!0,on:{click:function(e){return t.browseFolder(n.id)}}},[n.share?e("i",{staticClass:"taskfont"},[t._v("")]):t._e(),t._v(" "),e("span",{attrs:{title:n.name}},[t._v(t._s(n.name))]),t._v(" "),n.share&&0==n.permission?e("span",{staticClass:"readonly"},[t._v(t._s(t.$L("只读")))]):t._e()])}))],2),t._v(" "),t.shearFirst?[e("Button",{attrs:{disabled:t.shearFirst.pid==t.pid,size:"small",type:"primary"},on:{click:t.shearTo}},[e("div",{staticClass:"file-shear"},[e("span",[t._v(t._s(t.$L("粘贴")))]),t._v('\n "'),e("em",[t._v(t._s(t.shearFirst.name))]),t._v('"\n '),t.shearIds.length>1?e("span",[t._v(t._s(t.$L("等"))+t._s(t.shearIds.length)+t._s(t.$L("个文件")))]):t._e()])]),t._v(" "),e("Button",{attrs:{type:"primary",size:"small"},on:{click:t.clearShear}},[t._v(t._s(t.$L("取消剪切")))])]:t.selectIds.length>0?[e("Button",{attrs:{size:"small",type:"info"},on:{click:function(e){return t.handleContextClick("shearSelect")}}},[e("Icon",{attrs:{type:"ios-cut"}}),t._v("\n "+t._s(t.$L("剪切"))+"\n ")],1),t._v(" "),e("Button",{attrs:{size:"small",type:"error"},on:{click:function(e){return t.deleteFile(t.selectIds)}}},[e("Icon",{attrs:{type:"ios-trash"}}),t._v("\n "+t._s(t.$L("删除"))+"\n ")],1),t._v(" "),e("Button",{attrs:{type:"primary",size:"small"},on:{click:t.clearSelect}},[t._v(t._s(t.$L("取消选择")))])]:t._e(),t._v(" "),t.loadIng>0?e("div",{staticClass:"nav-load"},[e("Loading")],1):t._e(),t._v(" "),e("div",{staticClass:"flex-full"}),t._v(" "),e("div",{class:["switch-button",t.tableMode]},[e("div",{on:{click:function(e){t.tableMode="table"}}},[e("i",{staticClass:"taskfont"},[t._v("")])]),t._v(" "),e("div",{on:{click:function(e){t.tableMode="block"}}},[e("i",{staticClass:"taskfont"},[t._v("")])])])],2),t._v(" "),e("div",{staticClass:"file-drag",on:{drop:function(e){return e.preventDefault(),t.filePasteDrag(e,"drag")},dragover:function(e){return e.preventDefault(),t.fileDragOver(!0,e)},dragleave:function(e){return e.preventDefault(),t.fileDragOver(!1,e)}}},["block"===t.tableMode?[0==t.fileList.length&&0==t.loadIng?e("div",{staticClass:"file-no",on:{contextmenu:function(e){return e.preventDefault(),t.handleContextmenu.apply(null,arguments)}}},[e("i",{staticClass:"taskfont"},[t._v("")]),t._v(" "),e("p",[t._v(t._s(t.$L("没有任何文件")))])]):e("div",{staticClass:"file-list",on:{contextmenu:function(e){return e.preventDefault(),t.handleContextmenu.apply(null,arguments)}}},[e("ul",t._l(t.fileList,(function(n){return e("li",{directives:[{name:"longpress",rawName:"v-longpress",value:t.handleLongpress,expression:"handleLongpress"}],class:{shear:t.shearIds.includes(n.id),highlight:t.selectIds.includes(n.id),operate:t.contextMenuVisible&&n.id===t.contextMenuItem.id},attrs:{"data-id":n.id},on:{click:function(e){return t.dropFile(n,"openCheckMenu")}}},[e("div",{staticClass:"file-check",class:{"file-checked":t.selectIds.includes(n.id)},on:{click:function(e){return e.stopPropagation(),t.dropFile(n,"select")}}},[e("Checkbox",{attrs:{value:t.selectIds.includes(n.id)}})],1),t._v(" "),e("div",{staticClass:"file-menu",on:{click:function(e){return e.stopPropagation(),t.handleRightClick(e,n)}}},[e("Icon",{attrs:{type:"ios-more"}})],1),t._v(" "),e("div",{class:"no-dark-before file-icon ".concat(n.type).concat(n.share?" share":"")},[n.share?[n.userid!=t.userId?e("UserAvatar",{staticClass:"share-avatar",attrs:{userid:n.userid,size:20}},[e("p",[t._v(t._s(t.$L("共享权限"))+": "+t._s(t.$L(1==n.permission?"读/写":"只读")))])]):e("div",{staticClass:"share-icon no-dark-content"},[e("i",{staticClass:"taskfont"},[t._v("")])])]:t.isParentShare?[e("UserAvatar",{staticClass:"share-avatar",attrs:{userid:n.created_id,size:20}},[n.created_id!=n.userid?e("p",[e("strong",[t._v(t._s(t.$L("成员创建于"))+": "+t._s(n.created_at))])]):e("p",[t._v(t._s(t.$L("所有者创建于"))+": "+t._s(n.created_at))])])]:t._e()],2),t._v(" "),n._edit?e("div",{staticClass:"file-input"},[e("Input",{ref:"input_"+n.id,refInFor:!0,attrs:{size:"small",disabled:!!n._load},on:{"on-blur":function(e){return t.onBlur(n)},"on-keyup":function(e){return t.onKeyup(e,n)}},model:{value:n.newname,callback:function(e){t.$set(n,"newname",e)},expression:"item.newname"}}),t._v(" "),n._load?e("div",{staticClass:"file-load"},[e("Loading")],1):t._e()],1):e("div",{staticClass:"file-name",attrs:{title:n.name}},[t._v(t._s(t.$A.getFileName(n)))])])})),0)])]:e("div",{staticClass:"file-table",on:{contextmenu:function(e){return e.preventDefault(),t.handleContextmenu.apply(null,arguments)}}},[e("Table",{attrs:{columns:t.columns,data:t.fileList,height:t.tableHeight,"no-data-text":t.$L("没有任何文件"),"context-menu":"",stripe:""},on:{"on-cell-click":t.clickRow,"on-contextmenu":t.handleContextMenu,"on-select":t.handleTableSelect,"on-select-cancel":t.handleTableSelect,"on-select-all-cancel":t.handleTableSelect,"on-select-all":t.handleTableSelect,"on-sort-change":t.handleTableSort}})],1),t._v(" "),t.dialogDrag?e("div",{staticClass:"drag-over",on:{click:function(e){t.dialogDrag=!1}}},[e("div",{staticClass:"drag-text"},[t._v(t._s(t.$L("拖动到这里发送")))])]):t._e()],2),t._v(" "),e("div",{staticClass:"file-menu",style:t.contextMenuStyles},[e("Dropdown",{attrs:{trigger:"custom",visible:t.contextMenuVisible,"transfer-class-name":"page-file-dropdown-menu",transfer:""},on:{"on-click":t.handleContextClick,"on-clickoutside":t.handleClickContextMenuOutside,"on-visible-change":t.handleVisibleChangeMenu}},[e("DropdownMenu",{attrs:{slot:"list"},slot:"list"},[t.contextMenuItem.id?[e("DropdownItem",{staticClass:"item-open",attrs:{name:"open"}},[t._v("\n "+t._s(t.$L("打开"))+"\n "),e("div",{staticClass:"open-name"},[t._v("“"+t._s(t.contextMenuItem.name)+"”")])]),t._v(" "),t.searchKey?e("DropdownItem",{staticClass:"item-open",attrs:{name:"upperFolder"}},[t._v("\n "+t._s(t.$L("在上层文件夹中显示"))+"\n ")]):t._e(),t._v(" "),e("DropdownItem",{attrs:{name:"select"}},[t._v(t._s(t.$L(t.selectIds.includes(t.contextMenuItem.id)?"取消选择":"选择")))]),t._v(" "),e("Dropdown",{attrs:{placement:"right-start",transfer:""}},[e("DropdownItem",{attrs:{divided:"",name:"new:"},nativeOn:{click:function(t){t.stopPropagation()}}},[e("div",{staticClass:"arrow-forward-item"},[t._v(t._s(t.$L("新建"))),e("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),t._v(" "),e("DropdownMenu",{staticClass:"page-file-dropdown-menu",attrs:{slot:"list"},slot:"list"},t._l(t.types,(function(n,r){return n.label?e("DropdownItem",{key:r,attrs:{divided:!!n.divided,name:"new:".concat(n.value)}},[e("div",{class:"no-dark-before file-item file-icon ".concat(n.value)},[t._v(t._s(t.$L(n.label)))])]):t._e()})),1)],1),t._v(" "),e("DropdownItem",{attrs:{name:"rename",divided:""}},[t._v(t._s(t.$L("重命名")))]),t._v(" "),e("DropdownItem",{attrs:{name:"copy",disabled:"folder"==t.contextMenuItem.type}},[t._v(t._s(t.$L("复制")))]),t._v(" "),e("DropdownItem",{attrs:{name:"shear",disabled:t.contextMenuItem.userid!=t.userId}},[t._v(t._s(t.$L("剪切")))]),t._v(" "),t.contextMenuItem.userid==t.userId?e("DropdownItem",{attrs:{name:"share",divided:""}},[t._v(t._s(t.$L("共享")))]):t.contextMenuItem.share?e("DropdownItem",{attrs:{name:"outshare",divided:""}},[t._v(t._s(t.$L("退出共享")))]):t._e(),t._v(" "),e("DropdownItem",{attrs:{name:"send",disabled:"folder"==t.contextMenuItem.type}},[t._v(t._s(t.$L("发送")))]),t._v(" "),e("DropdownItem",{attrs:{name:"link",divided:t.contextMenuItem.userid!=t.userId&&!t.contextMenuItem.share,disabled:"folder"==t.contextMenuItem.type}},[t._v(t._s(t.$L("链接")))]),t._v(" "),e("DropdownItem",{attrs:{name:"download",disabled:""==t.contextMenuItem.ext}},[t._v(t._s(t.$L("下载")))]),t._v(" "),e("DropdownItem",{staticStyle:{color:"red"},attrs:{name:"delete",divided:""}},[t._v(t._s(t.$L("删除")))])]:t._l(t.types,(function(n,r){return n.label?e("DropdownItem",{key:r,attrs:{divided:!!n.divided,name:"new:".concat(n.value)}},[e("div",{class:"no-dark-before file-item file-icon ".concat(n.value)},[t._v(t._s(t.$L(n.label)))])]):t._e()}))],2)],1)],1)]),t._v(" "),t.uploadShow&&t.uploadList.length>0?e("div",{staticClass:"file-upload-list"},[e("div",{staticClass:"upload-wrap"},[e("div",{staticClass:"title"},[t._v("\n "+t._s(t.$L("上传列表"))+" ("+t._s(t.uploadList.length)+")\n "),t.uploadList.find((function(t){return"finished"===t.status}))?e("em",{on:{click:t.uploadClear}},[t._v(t._s(t.$L("清空已完成")))]):t._e()]),t._v(" "),e("ul",{staticClass:"content"},t._l(t.uploadList,(function(n,r){return r<100?e("li",{key:r},[e("AutoTip",{staticClass:"file-name"},[t._v(t._s(t.uploadName(n)))]),t._v(" "),"finished"===n.status&&n.response&&1!==n.response.ret?e("AutoTip",{staticClass:"file-error"},[t._v(t._s(n.response.msg))]):e("Progress",{attrs:{percent:t.uploadPercentageParse(n.percentage),"stroke-width":5}}),t._v(" "),e("Icon",{staticClass:"file-close",attrs:{type:"ios-close-circle-outline"},on:{click:function(e){return t.uploadList.splice(r,1)}}})],1):t._e()})),0),t._v(" "),e("Icon",{staticClass:"close",attrs:{type:"md-close"},on:{click:function(e){t.uploadShow=!1}}})],1)]):t._e(),t._v(" "),e("Upload",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"fileUpload",attrs:{name:"files",action:t.actionUrl,headers:t.headers,multiple:!0,webkitdirectory:!1,format:t.uploadFormat,accept:t.uploadAccept,"show-upload-list":!1,"max-size":t.maxSize,"on-progress":t.handleProgress,"on-success":t.handleSuccess,"on-error":t.handleError,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize,"before-upload":t.handleBeforeUpload}}),t._v(" "),e("Upload",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"dirUpload",attrs:{name:"files",action:t.actionUrl,headers:t.headers,multiple:!0,webkitdirectory:!0,format:t.uploadFormat,accept:t.uploadAccept,"show-upload-list":!1,"max-size":t.maxSize,"on-progress":t.handleProgress,"on-success":t.handleSuccess,"on-error":t.handleError,"on-format-error":t.handleFormatError,"on-exceeded-size":t.handleMaxSize,"before-upload":t.handleBeforeUpload}}),t._v(" "),e("Modal",{attrs:{title:t.$L("共享设置"),"mask-closable":!1,"footer-hide":""},model:{value:t.shareShow,callback:function(e){t.shareShow=e},expression:"shareShow"}},[e("Form",{staticClass:"page-file-share-form",attrs:{model:t.shareInfo,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[e("FormItem",{staticClass:"share-userid",attrs:{prop:"userids"}},[e("UserInput",{attrs:{disabledChoice:t.shareAlready,"multiple-max":100,placeholder:t.$L("选择共享成员")},model:{value:t.shareInfo.userids,callback:function(e){t.$set(t.shareInfo,"userids",e)},expression:"shareInfo.userids"}},[e("Option",{attrs:{slot:"option-prepend",value:0,label:t.$L("所有人"),disabled:t.shareAlready.includes(0)},slot:"option-prepend"},[e("div",{staticClass:"user-input-option"},[e("div",{staticClass:"user-input-avatar"},[e("EAvatar",{staticClass:"avatar",attrs:{icon:"el-icon-s-custom"}})],1),t._v(" "),e("div",{staticClass:"user-input-nickname"},[t._v(t._s(t.$L("所有人")))]),t._v(" "),e("div",{staticClass:"user-input-userid"},[t._v("All")])])])],1)],1),t._v(" "),e("FormItem",[e("Select",{attrs:{placeholder:t.$L("权限")},model:{value:t.shareInfo.permission,callback:function(e){t.$set(t.shareInfo,"permission",e)},expression:"shareInfo.permission"}},[e("Option",{attrs:{value:1}},[t._v(t._s(t.$L("读/写")))]),t._v(" "),e("Option",{attrs:{value:0}},[t._v(t._s(t.$L("只读")))])],1)],1),t._v(" "),e("FormItem",[e("Button",{attrs:{type:"primary",loading:t.shareLoad>0},on:{click:t.onShare}},[t._v(t._s(t.$L("共享")))])],1)],1),t._v(" "),t.shareList.length>0?e("div",[e("div",{staticClass:"page-file-share-title"},[t._v(t._s(t.$L("已共享成员"))+":")]),t._v(" "),e("ul",{staticClass:"page-file-share-list"},t._l(t.shareList,(function(n){return e("li",[0==n.userid?e("div",{staticClass:"all-avatar"},[e("EAvatar",{staticClass:"avatar-text",attrs:{icon:"el-icon-s-custom"}}),t._v(" "),e("span",{staticClass:"avatar-name"},[t._v(t._s(t.$L("所有人")))])],1):e("UserAvatar",{attrs:{size:32,userid:n.userid,showName:"",tooltipDisabled:""}}),t._v(" "),e("Select",{attrs:{placeholder:t.$L("权限")},on:{"on-change":function(e){return t.upShare(n)}},model:{value:n.permission,callback:function(e){t.$set(n,"permission",e)},expression:"item.permission"}},[e("Option",{attrs:{value:1}},[t._v(t._s(t.$L("读/写")))]),t._v(" "),e("Option",{attrs:{value:0}},[t._v(t._s(t.$L("只读")))]),t._v(" "),e("Option",{staticClass:"delete",attrs:{value:-1}},[t._v(t._s(t.$L("删除")))])],1)],1)})),0)]):t._e()],1),t._v(" "),e("Modal",{attrs:{title:t.$L("发送文件"),"mask-closable":!1},model:{value:t.sendShow,callback:function(e){t.sendShow=e},expression:"sendShow"}},[e("DialogSelect",{model:{value:t.sendData,callback:function(e){t.sendData=e},expression:"sendData"}}),t._v(" "),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(e){t.sendShow=!1}}},[t._v(t._s(t.$L("取消")))]),t._v(" "),e("Button",{attrs:{type:"primary",loading:t.sendLoad},on:{click:t.onSendFile}},[t._v(t._s(t.$L("发送文件")))])],1)],1),t._v(" "),e("Modal",{attrs:{title:t.$L("文件链接"),"mask-closable":!1},model:{value:t.linkShow,callback:function(e){t.linkShow=e},expression:"linkShow"}},[e("div",[e("div",{staticStyle:{margin:"-10px 0 8px"}},[t._v(t._s(t.$L("文件名称"))+": "+t._s(t.linkData.name))]),t._v(" "),e("Input",{ref:"linkInput",attrs:{type:"textarea",rows:3,readonly:""},on:{"on-focus":t.linkFocus},model:{value:t.linkData.url,callback:function(e){t.$set(t.linkData,"url",e)},expression:"linkData.url"}}),t._v(" "),e("div",{staticClass:"form-tip",staticStyle:{"padding-top":"6px"}},[t._v(t._s(t.$L("可通过此链接浏览文件。"))),e("a",{attrs:{href:"javascript:void(0)"},on:{click:t.linkCopy}},[t._v(t._s(t.$L("点击复制链接")))])])],1),t._v(" "),e("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[e("Button",{attrs:{type:"default"},on:{click:function(e){t.linkShow=!1}}},[t._v(t._s(t.$L("取消")))]),t._v(" "),e("Poptip",{staticStyle:{"margin-left":"8px"},attrs:{confirm:"",placement:"bottom",transfer:""},on:{"on-ok":function(e){return t.linkGet(!0)}}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("p",[e("strong",[t._v(t._s(t.$L("注意:刷新将导致原来的链接失效!")))])])]),t._v(" "),e("Button",{attrs:{type:"primary",loading:t.linkLoad>0}},[t._v(t._s(t.$L("刷新")))])],1)],1)]),t._v(" "),e("DrawerOverlay",{staticClass:"page-file-drawer",attrs:{beforeClose:t.fileBeforeClose,"mask-closable":!1},model:{value:t.fileShow,callback:function(e){t.fileShow=e},expression:"fileShow"}},[t.isPreview?e("FilePreview",{attrs:{file:t.fileInfo}}):e("FileContent",{ref:"fileContent",attrs:{file:t.fileInfo},model:{value:t.fileShow,callback:function(e){t.fileShow=e},expression:"fileShow"}})],1),t._v(" "),e("PreviewImage",{attrs:{index:t.imageIndex,list:t.imageList},model:{value:t.imageShow,callback:function(e){t.imageShow=e},expression:"imageShow"}}),t._v(" "),e("Modal",{attrs:{title:t.$L(t.pasteTitle),"cancel-text":t.$L("取消"),"ok-text":t.$L("立即上传"),"enter-ok":!0},on:{"on-ok":t.pasteSend},model:{value:t.pasteShow,callback:function(e){t.pasteShow=e},expression:"pasteShow"}},[e("ul",{staticClass:"dialog-wrapper-paste",class:t.pasteWrapperClass},t._l(t.pasteItem,(function(n){return e("li",["image"==n.type?e("img",{attrs:{src:n.result}}):e("div",[t._v(t._s(t.$L("文件"))+": "+t._s(n.name)+" ("+t._s(t.$A.bytesToSize(n.size))+")")])])})),0)])],1)}),[],!1,null,null,null).exports}}]);